diff --git a/glide.lock b/glide.lock index a6da0deb8..b55b95f48 100644 --- a/glide.lock +++ b/glide.lock @@ -1,8 +1,8 @@ hash: c867da102c81c3ad5b5b7e9016f1b020fe22311da8f3532b65a0a2832f0b0b3c -updated: 2016-10-20T15:12:14.214670168+09:00 +updated: 2017-03-12T18:50:39.127225917+01:00 imports: - name: github.com/aws/aws-sdk-go - version: 1a651d9028d1203f4a0ba9fee91b207536cd4ca2 + version: 819b71cf8430e434c1eee7e7e8b0f2b8870be899 subpackages: - aws - aws/awserr @@ -16,10 +16,10 @@ imports: - aws/credentials/stscreds - aws/defaults - aws/ec2metadata + - aws/endpoints - aws/request - aws/session - aws/signer/v4 - - private/endpoints - private/protocol - private/protocol/ec2query - private/protocol/json/jsonutil @@ -35,6 +35,7 @@ imports: - service/elb - service/kms - service/route53 + - service/s3 - service/sts - name: github.com/coreos/coreos-cloudinit version: 3c68e2e67d2ea077e2b79383c0ad313770c62ca2 diff --git a/glide.yaml b/glide.yaml index d4e466b3c..1d06abd07 100644 --- a/glide.yaml +++ b/glide.yaml @@ -1,7 +1,7 @@ package: github.com/coreos/kube-aws import: - package: github.com/aws/aws-sdk-go - version: ^1.4.19 + version: ^1.7.8 subpackages: - aws - aws/awserr diff --git a/vendor/github.com/aws/aws-sdk-go/.travis.yml b/vendor/github.com/aws/aws-sdk-go/.travis.yml index b76546d20..02c93210a 100644 --- a/vendor/github.com/aws/aws-sdk-go/.travis.yml +++ b/vendor/github.com/aws/aws-sdk-go/.travis.yml @@ -3,13 +3,13 @@ language: go sudo: false go: - - 1.4 - 1.5 - 1.6 - 1.7 + - 1.8 - tip -# Use Go 1.5's vendoring experiment for 1.5 tests. 1.4 tests will use the tip of the dependencies repo. +# Use Go 1.5's vendoring experiment for 1.5 tests. env: - GO15VENDOREXPERIMENT=1 diff --git a/vendor/github.com/aws/aws-sdk-go/.yardopts b/vendor/github.com/aws/aws-sdk-go/.yardopts deleted file mode 100644 index 07724e4bd..000000000 --- a/vendor/github.com/aws/aws-sdk-go/.yardopts +++ /dev/null @@ -1,7 +0,0 @@ ---plugin go --e doc-src/plugin/plugin.rb --m markdown --o doc/api ---title "AWS SDK for Go" -aws/**/*.go -service/**/*.go diff --git a/vendor/github.com/aws/aws-sdk-go/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go/CHANGELOG.md index 62e1b2daf..f4f5f83e7 100644 --- a/vendor/github.com/aws/aws-sdk-go/CHANGELOG.md +++ b/vendor/github.com/aws/aws-sdk-go/CHANGELOG.md @@ -1,3 +1,651 @@ +Release v1.7.8 (2017-03-10) +=== + +Service Client Updates +--- +* `service/codedeploy`: Updates service paginators + * Add paginators for Codedeploy +* `service/emr`: Updates service API, documentation, and paginators + * This release includes support for instance fleets in Amazon EMR. + +Release v1.7.7 (2017-03-09) +=== + +Service Client Updates +--- +* `service/apigateway`: Updates service API, documentation, and paginators + * API Gateway has added support for ACM certificates on custom domain names. Both Amazon-issued certificates and uploaded third-part certificates are supported. +* `service/clouddirectory`: Updates service API, documentation, and paginators + * Introduces a new Cloud Directory API that enables you to retrieve all available parent paths for any type of object (a node, leaf node, policy node, and index node) in a hierarchy. + +Release v1.7.6 (2017-03-09) +=== + +Service Client Updates +--- +* `service/organizations`: Updates service documentation and examples + * Doc-only Update for Organizations: Add SDK Code Snippets +* `service/workdocs`: Adds new service + * The Administrative SDKs for Amazon WorkDocs provides full administrator level access to WorkDocs site resources, allowing developers to integrate their applications to manage WorkDocs users, content and permissions programmatically + +Release v1.7.5 (2017-03-08) +=== + +Service Client Updates +--- +* `aws/endpoints`: Updated Regions and Endpoints metadata. +* `service/rds`: Updates service API and documentation + * Add support to using encrypted clusters as cross-region replication masters. Update CopyDBClusterSnapshot API to support encrypted cross region copy of Aurora cluster snapshots. + +Release v1.7.4 (2017-03-06) +=== + +Service Client Updates +--- +* `service/budgets`: Updates service API and paginators + * When creating or editing a budget via the AWS Budgets API you can define notifications that are sent to subscribers when the actual or forecasted value for cost or usage exceeds the notificationThreshold associated with the budget notification object. Starting today, the maximum allowed value for the notificationThreshold was raised from 100 to 300. This change was made to give you more flexibility when setting budget notifications. +* `service/cloudtrail`: Updates service documentation and paginators + * Doc-only update for AWSCloudTrail: Updated links/descriptions +* `aws/endpoints`: Updated Regions and Endpoints metadata. +* `service/opsworkscm`: Updates service API, documentation, and paginators + * OpsWorks for Chef Automate has added a new field "AssociatePublicIpAddress" to the CreateServer request, "CloudFormationStackArn" to the Server model and "TERMINATED" server state. + + +Release v1.7.3 (2017-02-28) +=== + +Service Client Updates +--- +* `service/mturk`: Renaming service + * service/mechanicalturkrequesterservice was renamed to service/mturk. Be sure to change any references of the old client to the new. + +Release v1.7.2 (2017-02-28) +=== + +Service Client Updates +--- +* `service/dynamodb`: Updates service API and documentation + * Release notes: Time to Live (TTL) is a feature that allows you to define when items in a table expire and can be purged from the database, so that you don't have to track expired data and delete it manually. With TTL enabled on a DynamoDB table, you can set a timestamp for deletion on a per-item basis, allowing you to limit storage usage to only those records that are relevant. +* `service/iam`: Updates service API, documentation, and paginators + * This release adds support for AWS Organizations service control policies (SCPs) to SimulatePrincipalPolicy operation. If there are SCPs associated with the simulated user's account, their effect on the result is captured in the OrganizationDecisionDetail element in the EvaluationResult. +* `service/mechanicalturkrequesterservice`: Adds new service + * Amazon Mechanical Turk is a web service that provides an on-demand, scalable, human workforce to complete jobs that humans can do better than computers, for example, recognizing objects in photos. +* `service/organizations`: Adds new service + * AWS Organizations is a web service that enables you to consolidate your multiple AWS accounts into an organization and centrally manage your accounts and their resources. +* `service/dynamodbstreams`: Updates service API, documentation, and paginators +* `service/waf`: Updates service API, documentation, and paginators + * Aws WAF - For GetSampledRequests action, changed max number of samples from 100 to 500. +* `service/wafregional`: Updates service API, documentation, and paginators + +Release v1.7.1 (2017-02-24) +=== + +Service Client Updates +--- +* `service/elasticsearchservice`: Updates service API, documentation, paginators, and examples + * Added three new API calls to existing Amazon Elasticsearch service to expose Amazon Elasticsearch imposed limits to customers. + +Release v1.7.0 (2017-02-23) +=== + +Service Client Updates +--- +* `service/ec2`: Updates service API + * New EC2 I3 instance type + +SDK Bug +--- +* `service/s3/s3manager`: Adding support for SSE (#1097) + * Fixes SSE fields not being applied to a part during multi part upload. + +SDK Feature +--- +* `aws/session`: Add support for AssumeRoles with MFA (#1088) + * Adds support for assuming IAM roles with MFA enabled. A TokenProvider func was added to stscreds.AssumeRoleProvider that will be called each time the role's credentials need to be refreshed. A basic token provider that sources the MFA token from stdin as stscreds.StdinTokenProvider. +* `aws/session`: Update SDK examples and docs to use session.Must (#1099) + * Updates the SDK's example and docs to use session.Must where possible to highlight its usage as apposed to session error checking that is most cases errors will be terminal to the application anyways. +Release v1.6.27 (2017-02-22) +=== + +Service Client Updates +--- +* `service/clouddirectory`: Updates service documentation + * ListObjectAttributes documentation updated based on forum feedback +* `service/elasticbeanstalk`: Updates service API, documentation, and paginators + * Elastic Beanstalk adds support for creating and managing custom platform. +* `service/gamelift`: Updates service API, documentation, and paginators + * Allow developers to configure global queues for creating GameSessions. Allow PlayerData on PlayerSessions to store player-specific data. +* `service/route53`: Updates service API, documentation, and examples + * Added support for operations CreateVPCAssociationAuthorization and DeleteVPCAssociationAuthorization to throw a ConcurrentModification error when a conflicting modification occurs in parallel to the authorizations in place for a given hosted zone. + +Release v1.6.26 (2017-02-21) +=== + +Service Client Updates +--- +* `service/ec2`: Updates service API and documentation + * Added the billingProduct parameter to the RegisterImage API. + +Release v1.6.25 (2017-02-17) +=== + +Service Client Updates +--- +* `service/directconnect`: Updates service API, documentation, and paginators + * This update will introduce the ability for Direct Connect customers to take advantage of Link Aggregation (LAG). This allows you to bundle many individual physical interfaces into a single logical interface, referred to as a LAG. This makes administration much simpler as the majority of configuration is done on the LAG while you are free to add or remove physical interfaces from the bundle as bandwidth demand increases or decreases. A concrete example of the simplification added by LAG is that customers need only a single BGP session as opposed to one session per physical connection. + +Release v1.6.24 (2017-02-16) +=== + +Service Client Updates +--- +* `service/cognitoidentity`: Updates service API, documentation, and paginators + * Allow createIdentityPool and updateIdentityPool API to set server side token check value on identity pool +* `service/configservice`: Updates service API and documentation + * AWS Config now supports a new test mode for the PutEvaluations API. Set the TestMode parameter to true in your custom rule to verify whether your AWS Lambda function will deliver evaluation results to AWS Config. No updates occur to your existing evaluations, and evaluation results are not sent to AWS Config. + +Release v1.6.23 (2017-02-15) +=== + +Service Client Updates +--- +* `service/kms`: Updates service API, documentation, paginators, and examples + * his release of AWS Key Management Service introduces the ability to tag keys. Tagging keys can help you organize your keys and track your KMS costs in the cost allocation report. This release also increases the maximum length of a key ID to accommodate ARNs that include a long key alias. + +Release v1.6.22 (2017-02-14) +=== + +Service Client Updates +--- +* `service/ec2`: Updates service API, documentation, and paginators + * Adds support for the new Modify Volumes apis. + +Release v1.6.21 (2017-02-11) +=== + +Service Client Updates +--- +* `service/storagegateway`: Updates service API, documentation, and paginators + * File gateway mode in AWS Storage gateway provides access to objects in S3 as files on a Network File System (NFS) mount point. This is done by creating Nfs file shares using existing APIs CreateNfsFileShare. Using the feature in this update, the customer can restrict the clients that have read/write access to the gateway by specifying the list of clients as a list of IP addresses or CIDR blocks. This list can be specified using the API CreateNfsFileShare while creating new file shares, or UpdateNfsFileShare while update existing file shares. To find out the list of clients that have access, the existing API DescribeNfsFileShare will now output the list of clients that have access. + +Release v1.6.20 (2017-02-09) +=== + +Service Client Updates +--- +* `service/ec2`: Updates service API and documentation + * This feature allows customers to associate an IAM profile to running instances that do not have any. +* `service/rekognition`: Updates service API and documentation + * DetectFaces and IndexFaces operations now return an estimate of the age of the face as an age range. + +SDK Features +--- +* `aws/endpoints`: Add option to resolve unknown endpoints (#1074) +Release v1.6.19 (2017-02-08) +=== + +Service Client Updates +--- +* `aws/endpoints`: Updated Regions and Endpoints metadata. +* `service/glacier`: Updates service examples + * Doc Update +* `service/lexruntimeservice`: Adds new service + * Preview release + +SDK Bug Fixes +--- +* `private/protocol/json`: Fixes json to throw an error if a float number is (+/-)Inf and NaN (#1068) +* `private/model/api`: Fix documentation error listing (#1067) + +SDK Features +--- +* `private/model`: Add service response error code generation (#1061) + +Release v1.6.18 (2017-01-27) +=== + +Service Client Updates +--- +* `service/clouddirectory`: Adds new service + * Amazon Cloud Directory is a highly scalable, high performance, multi-tenant directory service in the cloud. Its web-based directories make it easy for you to organize and manage application resources such as users, groups, locations, devices, policies, and the rich relationships between them. +* `service/codedeploy`: Updates service API, documentation, and paginators + * This release of AWS CodeDeploy introduces support for blue/green deployments. In a blue/green deployment, the current set of instances in a deployment group is replaced by new instances that have the latest application revision installed on them. After traffic is rerouted behind a load balancer to the replacement instances, the original instances can be terminated automatically or kept running for other uses. +* `service/ec2`: Updates service API and documentation + * Adds instance health check functionality to replace unhealthy EC2 Spot fleet instances with fresh ones. +* `service/rds`: Updates service API and documentation + * Snapshot Engine Version Upgrade + +Release v1.6.17 (2017-01-25) +=== + +Service Client Updates +--- +* `service/elbv2`: Updates service API, documentation, and paginators + * Application Load Balancers now support native Internet Protocol version 6 (IPv6) in an Amazon Virtual Private Cloud (VPC). With this ability, clients can now connect to the Application Load Balancer in a dual-stack mode via either IPv4 or IPv6. +* `service/rds`: Updates service API and documentation + * Cross Region Read Replica Copying (CreateDBInstanceReadReplica) + +Release v1.6.16 (2017-01-24) +=== + +Service Client Updates +--- +* `service/codebuild`: Updates service documentation and paginators + * Documentation updates +* `service/codecommit`: Updates service API, documentation, and paginators + * AWS CodeCommit now includes the option to view the differences between a commit and its parent commit from within the console. You can view the differences inline (Unified view) or side by side (Split view). To view information about the differences between a commit and something other than its parent, you can use the AWS CLI and the get-differences and get-blob commands, or you can use the GetDifferences and GetBlob APIs. +* `service/ecs`: Updates service API and documentation + * Amazon ECS now supports a state for container instances that can be used to drain a container instance in preparation for maintenance or cluster scale down. + +Release v1.6.15 (2017-01-20) +=== + +Service Client Updates +--- +* `service/acm`: Updates service API, documentation, and paginators + * Update for AWS Certificate Manager: Updated response elements for DescribeCertificate API in support of managed renewal +* `service/health`: Updates service documentation + +Release v1.6.14 (2017-01-19) +=== + +Service Client Updates +--- +* `service/ec2`: Updates service API, documentation, and paginators + * Amazon EC2 Spot instances now support dedicated tenancy, providing the ability to run Spot instances single-tenant manner on physically isolated hardware within a VPC to satisfy security, privacy, or other compliance requirements. Dedicated Spot instances can be requested using RequestSpotInstances and RequestSpotFleet. + +Release v1.6.13 (2017-01-18) +=== + +Service Client Updates +--- +* `service/rds`: Updates service API, documentation, and paginators + +Release v1.6.12 (2017-01-17) +=== + +Service Client Updates +--- +* `service/dynamodb`: Updates service API, documentation, and paginators + * Tagging Support for Amazon DynamoDB Tables and Indexes +* `aws/endpoints`: Updated Regions and Endpoints metadata. +* `service/glacier`: Updates service API, paginators, and examples + * Doc-only Update for Glacier: Added code snippets +* `service/polly`: Updates service documentation and examples + * Doc-only update for Amazon Polly -- added snippets +* `service/rekognition`: Updates service documentation and paginators + * Added code samples to Rekognition reference topics. +* `service/route53`: Updates service API and paginators + * Add ca-central-1 and eu-west-2 enum values to CloudWatchRegion enum + +Release v1.6.11 (2017-01-16) +=== + +Service Client Updates +--- +* `service/configservice`: Updates service API, documentation, and paginators +* `service/costandusagereportservice`: Adds new service + * The AWS Cost and Usage Report Service API allows you to enable and disable the Cost & Usage report, as well as modify the report name, the data granularity, and the delivery preferences. +* `service/dynamodb`: Updates service API, documentation, and examples + * Snippets for the DynamoDB API. +* `service/elasticache`: Updates service API, documentation, and examples + * Adds new code examples. +* `aws/endpoints`: Updated Regions and Endpoints metadata. + +Release v1.6.10 (2017-01-04) +=== + +Service Client Updates +--- +* `service/configservice`: Updates service API and documentation + * AWSConfig is planning to add support for OversizedConfigurationItemChangeNotification message type in putConfigRule. After this release customers can use/write rules based on OversizedConfigurationItemChangeNotification mesage type. +* `service/efs`: Updates service API, documentation, and examples + * Doc-only Update for EFS: Added code snippets +* `service/iam`: Updates service documentation and examples +* `service/lambda`: Updates service documentation and examples + * Doc only updates for Lambda: Added code snippets +* `service/marketplacecommerceanalytics`: Updates service API and documentation + * Added support for data set disbursed_amount_by_instance_hours, with historical data available starting 2012-09-04. New data is published to this data set every 30 days. +* `service/rds`: Updates service documentation + * Updated documentation for CopyDBSnapshot. +* `service/rekognition`: Updates service documentation and examples + * Doc-only Update for Rekognition: Added code snippets +* `service/snowball`: Updates service examples +* `service/dynamodbstreams`: Updates service API and examples + * Doc-only Update for DynamoDB Streams: Added code snippets + +SDK Feature +--- +* `private/model/api`: Increasing the readability of code generated files. (#1024) +Release v1.6.9 (2016-12-30) +=== + +Service Client Updates +--- +* `service/codedeploy`: Updates service API and documentation + * CodeDeploy will support Iam Session Arns in addition to Iam User Arns for on premise host authentication. +* `service/ecs`: Updates service API and documentation + * Amazon EC2 Container Service (ECS) now supports the ability to customize the placement of tasks on container instances. +* `aws/endpoints`: Updated Regions and Endpoints metadata. + +Release v1.6.8 (2016-12-22) +=== + +Service Client Updates +--- +* `service/apigateway`: Updates service API and documentation + * Amazon API Gateway is adding support for generating SDKs in more languages. This update introduces two new operations used to dynamically discover these SDK types and what configuration each type accepts. +* `service/directoryservice`: Updates service documentation + * Added code snippets for the DS SDKs +* `service/elasticbeanstalk`: Updates service API and documentation +* `service/iam`: Updates service API and documentation + * Adds service-specific credentials to IAM service to make it easier to onboard CodeCommit customers. These are username/password credentials that work with a single service. +* `service/kms`: Updates service API, documentation, and examples + * Update docs and add SDK examples + +Release v1.6.7 (2016-12-22) +=== + +Service Client Updates +--- +* `service/ecr`: Updates service API and documentation +* `aws/endpoints`: Updated Regions and Endpoints metadata. +* `service/rds`: Updates service API and documentation + * Cross Region Encrypted Snapshot Copying (CopyDBSnapshot) + +Release v1.6.6 (2016-12-20) +=== + +Service Client Updates +--- +* `aws/endpoints`: Updated Regions and Endpoints metadata. +* `service/firehose`: Updates service API, documentation, and examples + * Processing feature enables users to process and modify records before Amazon Firehose delivers them to destinations. +* `service/route53`: Updates service API and documentation + * Enum updates for eu-west-2 and ca-central-1 +* `service/storagegateway`: Updates service API, documentation, and examples + * File gateway is a new mode in the AWS Storage Gateway that support a file interface into S3, alongside the current block-based volume and VTL storage. File gateway combines a service and virtual software appliance, enabling you to store and retrieve objects in Amazon S3 using industry standard file protocols such as NFS. The software appliance, or gateway, is deployed into your on-premises environment as a virtual machine (VM) running on VMware ESXi. The gateway provides access to objects in S3 as files on a Network File System (NFS) mount point. + +Release v1.6.5 (2016-12-19) +=== + +Service Client Updates +--- +* `service/cloudformation`: Updates service documentation + * Minor doc update for CloudFormation. +* `service/cloudtrail`: Updates service paginators +* `service/cognitoidentity`: Updates service API and documentation + * We are adding Groups to Cognito user pools. Developers can perform CRUD operations on groups, add and remove users from groups, list users in groups, etc. We are adding fine-grained role-based access control for Cognito identity pools. Developers can configure an identity pool to get the IAM role from an authenticated user's token, or they can configure rules that will map a user to a different role +* `service/applicationdiscoveryservice`: Updates service API and documentation + * Adds new APIs to group discovered servers into Applications with get summary and neighbors. Includes additional filters for ListConfigurations and DescribeAgents API. +* `service/inspector`: Updates service API, documentation, and examples + * Doc-only Update for Inspector: Adding SDK code snippets for Inspector +* `service/sqs`: Updates service documentation + +SDK Bug Fixes +--- +* `aws/request`: Add PriorRequestNotComplete to throttle retry codes (#1011) + * Fixes: Not retrying when PriorRequestNotComplete #1009 + +SDK Feature +--- +* `private/model/api`: Adds crosslinking to service documentation (#1010) + +Release v1.6.4 (2016-12-15) +=== + +Service Client Updates +--- +* `service/cognitoidentityprovider`: Updates service API and documentation +* `aws/endpoints`: Updated Regions and Endpoints metadata. +* `service/ssm`: Updates service API and documentation + * This will provide customers with access to the Patch Baseline and Patch Compliance APIs. + +SDK Bug Fixes +--- +* `service/route53`: Fix URL path cleaning for Route53 API requests (#1006) + * Fixes: SerializationError when using Route53 ChangeResourceRecordSets #1005 +* `aws/request`: Add PriorRequestNotComplete to throttle retry codes (#1002) + * Fixes: Not retrying when PriorRequestNotComplete #1001 + +Release v1.6.3 (2016-12-14) +=== + +Service Client Updates +--- +* `service/batch`: Adds new service + * AWS Batch is a batch computing service that lets customers define queues and compute environments and then submit work as batch jobs. +* `service/databasemigrationservice`: Updates service API and documentation + * Adds support for SSL enabled Oracle endpoints and task modification. +* `service/elasticbeanstalk`: Updates service documentation +* `aws/endpoints`: Updated Regions and Endpoints metadata. +* `service/cloudwatchlogs`: Updates service API and documentation + * Add support for associating LogGroups with AWSTagris tags +* `service/marketplacecommerceanalytics`: Updates service API and documentation + * Add new enum to DataSetType: sales_compensation_billed_revenue +* `service/rds`: Updates service documentation + * Doc-only Update for RDS: New versions available in CreateDBInstance +* `service/sts`: Updates service documentation + * Adding Code Snippet Examples for SDKs for STS + +SDK Bug Fixes +--- +* `aws/request`: Fix retrying timeout requests (#981) + * Fixes: Requests Retrying is broken if the error was caused due to a client timeout #947 +* `aws/request`: Fix for Go 1.8 request incorrectly sent with body (#991) + * Fixes: service/route53: ListHostedZones hangs and then fails with go1.8 #984 +* private/protocol/rest: Use RawPath instead of Opaque (#993) + * Fixes: HTTP2 request failing with REST protocol services, e.g AWS X-Ray +* private/model/api: Generate REST-JSON JSONVersion correctly (#998) + * Fixes: REST-JSON protocol service code missing JSONVersion metadata. + +Release v1.6.2 (2016-12-08) +=== + +Service Client Updates +--- +* `service/cloudfront`: Add lambda function associations to cache behaviors +* `service/codepipeline`: This is a doc-only update request to incorporate some recent minor revisions to the doc content. +* `service/rds`: Updates service API and documentation +* `service/wafregional`: With this new feature, customers can use AWS WAF directly on Application Load Balancers in a VPC within available regions to protect their websites and web services from malicious attacks such as SQL injection, Cross Site Scripting, bad bots, etc. + +Release v1.6.1 (2016-12-07) +=== + +Service Client Updates +--- +* `service/config`: Updates service API +* `service/s3`: Updates service API +* `service/sqs`: Updates service API and documentation + +Release v1.6.0 (2016-12-06) +=== + +Service Client Updates +--- +* `service/config`: Updates service API and documentation +* `service/ec2`: Updates service API +* `service/sts`: Updates service API, documentation, and examples + +SDK Bug Fixes +--- +* private/protocol/xml/xmlutil: Fix SDK XML unmarshaler #975 + * Fixes GetBucketACL Grantee required type always nil. #916 + +SDK Feature +--- +* aws/endpoints: Add endpoint metadata to SDK #961 + * Adds Region and Endpoint metadata to the SDK. This allows you to enumerate regions and endpoint metadata based on a defined model embedded in the SDK. + +Release v1.5.13 (2016-12-01) +=== + +Service Client Updates +--- +* `service/apigateway`: Updates service API and documentation +* `service/appstream`: Adds new service +* `service/codebuild`: Adds new service +* `service/directconnect`: Updates service API and documentation +* `service/ec2`: Adds new service +* `service/elasticbeanstalk`: Updates service API and documentation +* `service/health`: Adds new service +* `service/lambda`: Updates service API and documentation +* `service/opsworkscm`: Adds new service +* `service/pinpoint`: Adds new service +* `service/shield`: Adds new service +* `service/ssm`: Updates service API and documentation +* `service/states`: Adds new service +* `service/xray`: Adds new service + +Release v1.5.12 (2016-11-30) +=== + +Service Client Updates +--- +* `service/lightsail`: Adds new service +* `service/polly`: Adds new service +* `service/rekognition`: Adds new service +* `service/snowball`: Updates service API and documentation + +Release v1.5.11 (2016-11-29) +=== + +Service Client Updates +--- +`service/s3`: Updates service API and documentation + +Release v1.5.10 (2016-11-22) +=== + +Service Client Updates +--- +* `service/cloudformation`: Updates service API and documentation +* `service/glacier`: Updates service API, documentation, and examples +* `service/route53`: Updates service API and documentation +* `service/s3`: Updates service API and documentation + +SDK Bug Fixes +--- +* `private/protocol/xml/xmlutil`: Fixes xml marshaler to unmarshal properly +into tagged fields +[#916](https://github.com/aws/aws-sdk-go/issues/916) + +Release v1.5.9 (2016-11-22) +=== + +Service Client Updates +--- +* `service/cloudtrail`: Updates service API and documentation +* `service/ecs`: Updates service API and documentation + +Release v1.5.8 (2016-11-18) +=== + +Service Client Updates +--- +* `service/application-autoscaling`: Updates service API and documentation +* `service/elasticmapreduce`: Updates service API and documentation +* `service/elastictranscoder`: Updates service API, documentation, and examples +* `service/gamelift`: Updates service API and documentation +* `service/lambda`: Updates service API and documentation + +Release v1.5.7 (2016-11-18) +=== + +Service Client Updates +--- +* `service/apigateway`: Updates service API and documentation +* `service/meteringmarketplace`: Updates service API and documentation +* `service/monitoring`: Updates service API and documentation +* `service/sqs`: Updates service API, documentation, and examples + +Release v1.5.6 (2016-11-16) +=== + +Service Client Updates +--- +`service/route53`: Updates service API and documentation +`service/servicecatalog`: Updates service API and documentation + +Release v1.5.5 (2016-11-15) +=== + +Service Client Updates +--- +* `service/ds`: Updates service API and documentation +* `service/elasticache`: Updates service API and documentation +* `service/kinesis`: Updates service API and documentation + +Release v1.5.4 (2016-11-15) +=== + +Service Client Updates +--- +* `service/cognito-idp`: Updates service API and documentation + +Release v1.5.3 (2016-11-11) +=== + +Service Client Updates +--- +* `service/cloudformation`: Updates service documentation and examples +* `service/logs`: Updates service API and documentation + +Release v1.5.2 (2016-11-03) +=== + +Service Client Updates +--- +* `service/directconnect`: Updates service API and documentation + +Release v1.5.1 (2016-11-02) +=== + +Service Client Updates +--- +* `service/email`: Updates service API and documentation + +Release v1.5.0 (2016-11-01) +=== + +Service Client Updates +--- +* `service/cloudformation`: Updates service API and documentation +* `service/ecr`: Updates service paginators + +SDK Feature Updates +--- +* `private/model/api`: Add generated setters for API parameters (#918) + * Adds setters to the SDK's API parameter types, and are a convenience method that reduce the need to use `aws.String` and like utility. + +Release v1.4.22 (2016-10-25) +=== + +Service Client Updates +--- +* `service/elasticloadbalancingv2`: Updates service documentation. +* `service/autoscaling`: Updates service documentation. + +Release v1.4.21 (2016-10-24) +=== + +Service Client Updates +--- +* `service/sms`: AWS Server Migration Service (SMS) is an agentless service which makes it easier and faster for you to migrate thousands of on-premises workloads to AWS. AWS SMS allows you to automate, schedule, and track incremental replications of live server volumes, making it easier for you to coordinate large-scale server migrations. +* `service/ecs`: Updates documentation. + +SDK Feature Updates +--- +* `private/models/api`: Improve code generation of documentation. + +Release v1.4.20 (2016-10-20) +=== + +Service Client Updates +--- +* `service/budgets`: Adds new service, AWS Budgets. +* `service/waf`: Updates service documentation. + Release v1.4.19 (2016-10-18) === @@ -15,7 +663,7 @@ Service Client Updates SDK Feature Updates --- * `service/dynamodb/dynamodbattribute`: Add UnmarshalListOfMaps #897 - * Adds support for unmarshalling a list of maps. This is useful for unmarshalling the DynamoDB AttributeValue list of maps returned by APIs like Query and Scan. + * Adds support for unmarshaling a list of maps. This is useful for unmarshaling the DynamoDB AttributeValue list of maps returned by APIs like Query and Scan. Release v1.4.18 (2016-10-17) === diff --git a/vendor/github.com/aws/aws-sdk-go/CHANGELOG_PENDING.md b/vendor/github.com/aws/aws-sdk-go/CHANGELOG_PENDING.md new file mode 100644 index 000000000..e69de29bb diff --git a/vendor/github.com/aws/aws-sdk-go/CONTRIBUTING.md b/vendor/github.com/aws/aws-sdk-go/CONTRIBUTING.md new file mode 100644 index 000000000..81edbfaeb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/CONTRIBUTING.md @@ -0,0 +1,122 @@ +Contributing to the AWS SDK for Go + +We work hard to provide a high-quality and useful SDK, and we greatly value +feedback and contributions from our community. Whether it's a bug report, +new feature, correction, or additional documentation, we welcome your issues +and pull requests. Please read through this document before submitting any +issues or pull requests to ensure we have all the necessary information to +effectively respond to your bug report or contribution. + + +## Filing Bug Reports + +You can file bug reports against the SDK on the [GitHub issues][issues] page. + +If you are filing a report for a bug or regression in the SDK, it's extremely +helpful to provide as much information as possible when opening the original +issue. This helps us reproduce and investigate the possible bug without having +to wait for this extra information to be provided. Please read the following +guidelines prior to filing a bug report. + +1. Search through existing [issues][] to ensure that your specific issue has + not yet been reported. If it is a common issue, it is likely there is + already a bug report for your problem. + +2. Ensure that you have tested the latest version of the SDK. Although you + may have an issue against an older version of the SDK, we cannot provide + bug fixes for old versions. It's also possible that the bug may have been + fixed in the latest release. + +3. Provide as much information about your environment, SDK version, and + relevant dependencies as possible. For example, let us know what version + of Go you are using, which and version of the operating system, and the + the environment your code is running in. e.g Container. + +4. Provide a minimal test case that reproduces your issue or any error + information you related to your problem. We can provide feedback much + more quickly if we know what operations you are calling in the SDK. If + you cannot provide a full test case, provide as much code as you can + to help us diagnose the problem. Any relevant information should be provided + as well, like whether this is a persistent issue, or if it only occurs + some of the time. + + +## Submitting Pull Requests + +We are always happy to receive code and documentation contributions to the SDK. +Please be aware of the following notes prior to opening a pull request: + +1. The SDK is released under the [Apache license][license]. Any code you submit + will be released under that license. For substantial contributions, we may + ask you to sign a [Contributor License Agreement (CLA)][cla]. + +2. If you would like to implement support for a significant feature that is not + yet available in the SDK, please talk to us beforehand to avoid any + duplication of effort. + +3. Wherever possible, pull requests should contain tests as appropriate. + Bugfixes should contain tests that exercise the corrected behavior (i.e., the + test should fail without the bugfix and pass with it), and new features + should be accompanied by tests exercising the feature. + +4. Pull requests that contain failing tests will not be merged until the test + failures are addressed. Pull requests that cause a significant drop in the + SDK's test coverage percentage are unlikely to be merged until tests have + been added. + +### Testing + +To run the tests locally, running the `make unit` command will `go get` the +SDK's testing dependencies, and run vet, link and unit tests for the SDK. + +``` +make unit +``` + +Standard go testing functionality is supported as well. To test SDK code that +is tagged with `codegen` you'll need to set the build tag in the go test +command. The `make unit` command will do this automatically. + +``` +go test -tags codegen ./private/... +``` + +See the `Makefile` for additional testing tags that can be used in testing. + +To test on multiple platform the SDK includes several DockerFiles under the +`awstesting/sandbox` folder, and associated make recipes to to execute +unit testing within environments configured for specific Go versions. + +``` +make sandbox-test-go18 +``` + +To run all sandbox environments use the following make recipe + +``` +# Optionally update the Go tip that will be used during the batch testing +make update-aws-golang-tip + +# Run all SDK tests for supported Go versions in sandboxes +make sandbox-test +``` + +In addition the sandbox environment include make recipes for interactive modes +so you can run command within the Docker container and context of the SDK. + +``` +make sandbox-go18 +``` + +### Changelog + +You can see all release changes in the `CHANGELOG.md` file at the root of the +repository. The release notes added to this file will contain service client +updates, and major SDK changes. + +[issues]: https://github.com/aws/aws-sdk-go/issues +[pr]: https://github.com/aws/aws-sdk-go/pulls +[license]: http://aws.amazon.com/apache2.0/ +[cla]: http://en.wikipedia.org/wiki/Contributor_License_Agreement +[releasenotes]: https://github.com/aws/aws-sdk-go/releases + diff --git a/vendor/github.com/aws/aws-sdk-go/Gemfile b/vendor/github.com/aws/aws-sdk-go/Gemfile deleted file mode 100644 index 2fb295a1a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/Gemfile +++ /dev/null @@ -1,6 +0,0 @@ -source 'https://rubygems.org' - -gem 'yard', git: 'git://github.com/lsegal/yard', ref: '5025564a491e1b7c6192632cba2802202ca08449' -gem 'yard-go', git: 'git://github.com/jasdel/yard-go', ref: 'e78e1ef7cdf5e0f3266845b26bb4fd64f1dd6f85' -gem 'rdiscount' - diff --git a/vendor/github.com/aws/aws-sdk-go/Makefile b/vendor/github.com/aws/aws-sdk-go/Makefile index ab086cbb0..fc2bc0cef 100644 --- a/vendor/github.com/aws/aws-sdk-go/Makefile +++ b/vendor/github.com/aws/aws-sdk-go/Makefile @@ -2,12 +2,14 @@ LINTIGNOREDOT='awstesting/integration.+should not use dot imports' LINTIGNOREDOC='service/[^/]+/(api|service|waiters)\.go:.+(comment on exported|should have comment or be unexported)' LINTIGNORECONST='service/[^/]+/(api|service|waiters)\.go:.+(type|struct field|const|func) ([^ ]+) should be ([^ ]+)' LINTIGNORESTUTTER='service/[^/]+/(api|service)\.go:.+(and that stutters)' -LINTIGNOREINFLECT='service/[^/]+/(api|service)\.go:.+method .+ should be ' +LINTIGNOREINFLECT='service/[^/]+/(api|errors|service)\.go:.+(method|const) .+ should be ' LINTIGNOREINFLECTS3UPLOAD='service/s3/s3manager/upload\.go:.+struct field SSEKMSKeyId should be ' LINTIGNOREDEPS='vendor/.+\.go' +UNIT_TEST_TAGS="example codegen" -SDK_WITH_VENDOR_PKGS=$(shell go list ./... | grep -v "/vendor/src") +SDK_WITH_VENDOR_PKGS=$(shell go list -tags ${UNIT_TEST_TAGS} ./... | grep -v "/vendor/src") SDK_ONLY_PKGS=$(shell go list ./... | grep -v "/vendor/") +SDK_UNIT_TEST_ONLY_PKGS=$(shell go list -tags ${UNIT_TEST_TAGS} ./... | grep -v "/vendor/") SDK_GO_1_4=$(shell go version | grep "go1.4") SDK_GO_1_5=$(shell go version | grep "go1.5") SDK_GO_VERSION=$(shell go version | awk '''{print $$3}''' | tr -d '''\n''') @@ -43,19 +45,19 @@ gen-protocol-test: go generate ./private/protocol/... gen-endpoints: - go generate ./private/endpoints + go generate ./models/endpoints/ build: @echo "go build SDK and vendor packages" - @go build -tags example,codegen ${SDK_ONLY_PKGS} + @go build ${SDK_ONLY_PKGS} unit: get-deps-tests build verify @echo "go test SDK and vendor packages" - @go test -tags example,codegen $(SDK_ONLY_PKGS) + @go test -tags ${UNIT_TEST_TAGS} $(SDK_UNIT_TEST_ONLY_PKGS) unit-with-race-cover: get-deps-tests build verify @echo "go test SDK and vendor packages" - @go test -tags example,codegen -race -cpu=1,2,4 $(SDK_ONLY_PKGS) + @go test -tags ${UNIT_TEST_TAGS} -race -cpu=1,2,4 $(SDK_UNIT_TEST_ONLY_PKGS) integration: get-deps-tests integ-custom smoke-tests performance @@ -68,35 +70,53 @@ smoke-tests: get-deps-tests performance: get-deps-tests AWS_TESTING_LOG_RESULTS=${log-detailed} AWS_TESTING_REGION=$(region) AWS_TESTING_DB_TABLE=$(table) gucumber -go-tags "integration" ./awstesting/performance -sandbox-tests: sandbox-test-go14 sandbox-test-go15 sandbox-test-go15-novendorexp sandbox-test-go16 sandbox-test-go17 sandbox-test-gotip +sandbox-tests: sandbox-test-go15 sandbox-test-go15-novendorexp sandbox-test-go16 sandbox-test-go17 sandbox-test-go18 sandbox-test-gotip -sandbox-test-go14: - docker build -f ./awstesting/sandbox/Dockerfile.test.go1.4 -t "aws-sdk-go-1.4" . - docker run -t aws-sdk-go-1.4 - -sandbox-test-go15: +sandbox-build-go15: docker build -f ./awstesting/sandbox/Dockerfile.test.go1.5 -t "aws-sdk-go-1.5" . +sandbox-go15: sandbox-build-go15 + docker run -i -t aws-sdk-go-1.5 bash +sandbox-test-go15: sandbox-build-go15 docker run -t aws-sdk-go-1.5 -sandbox-test-go15-novendorexp: +sandbox-build-go15-novendorexp: docker build -f ./awstesting/sandbox/Dockerfile.test.go1.5-novendorexp -t "aws-sdk-go-1.5-novendorexp" . +sandbox-go15-novendorexp: sandbox-build-go15-novendorexp + docker run -i -t aws-sdk-go-1.5-novendorexp bash +sandbox-test-go15-novendorexp: sandbox-build-go15-novendorexp docker run -t aws-sdk-go-1.5-novendorexp -sandbox-test-go16: +sandbox-build-go16: docker build -f ./awstesting/sandbox/Dockerfile.test.go1.6 -t "aws-sdk-go-1.6" . +sandbox-go16: sandbox-build-go16 + docker run -i -t aws-sdk-go-1.6 bash +sandbox-test-go16: sandbox-build-go16 docker run -t aws-sdk-go-1.6 -sandbox-test-go17: +sandbox-build-go17: docker build -f ./awstesting/sandbox/Dockerfile.test.go1.7 -t "aws-sdk-go-1.7" . +sandbox-go17: sandbox-build-go17 + docker run -i -t aws-sdk-go-1.7 bash +sandbox-test-go17: sandbox-build-go17 docker run -t aws-sdk-go-1.7 -sandbox-test-gotip: +sandbox-build-go18: + docker build -f ./awstesting/sandbox/Dockerfile.test.go1.8 -t "aws-sdk-go-1.8" . +sandbox-go18: sandbox-build-go18 + docker run -i -t aws-sdk-go-1.8 bash +sandbox-test-go18: sandbox-build-go18 + docker run -t aws-sdk-go-1.8 + +sandbox-build-gotip: @echo "Run make update-aws-golang-tip, if this test fails because missing aws-golang:tip container" docker build -f ./awstesting/sandbox/Dockerfile.test.gotip -t "aws-sdk-go-tip" . +sandbox-gotip: sandbox-build-gotip + docker run -i -t aws-sdk-go-tip bash +sandbox-test-gotip: sandbox-build-gotip docker run -t aws-sdk-go-tip update-aws-golang-tip: - docker build -f ./awstesting/sandbox/Dockerfile.golang-tip -t "aws-golang:tip" . + docker build --no-cache=true -f ./awstesting/sandbox/Dockerfile.golang-tip -t "aws-golang:tip" . verify: get-deps-verify lint vet @@ -128,6 +148,7 @@ get-deps-tests: go get github.com/gucumber/gucumber/cmd/gucumber go get github.com/stretchr/testify go get github.com/smartystreets/goconvey + go get golang.org/x/net/html get-deps-verify: @echo "go get SDK verification utilities" diff --git a/vendor/github.com/aws/aws-sdk-go/README.md b/vendor/github.com/aws/aws-sdk-go/README.md index b4d302e31..8247981b7 100644 --- a/vendor/github.com/aws/aws-sdk-go/README.md +++ b/vendor/github.com/aws/aws-sdk-go/README.md @@ -17,7 +17,7 @@ If you are using Go 1.5 with the `GO15VENDOREXPERIMENT=1` vendoring flag, or 1.6 go get -u github.com/aws/aws-sdk-go -Otherwise if your Go environment does not have vendoring support enabled, or you do not want to include the vendored SDK's dependencies you can use the following command to retrieve the SDK and its non-testing dependencies using `go get`. +Otherwise if your Go environment does not have vendoring support enabled, or you do not want to include the vendored SDK's dependencies you can use the following command to retrieve the SDK and its non-testing dependencies using `go get`. go get -u github.com/aws/aws-sdk-go/aws/... go get -u github.com/aws/aws-sdk-go/service/... @@ -25,12 +25,27 @@ Otherwise if your Go environment does not have vendoring support enabled, or you If you're looking to retrieve just the SDK without any dependencies use the following command. go get -d github.com/aws/aws-sdk-go/ - + These two processes will still include the `vendor` folder and it should be deleted if its not going to be used by your environment. rm -rf $GOPATH/src/github.com/aws/aws-sdk-go/vendor +## Getting Help + +Please use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests. +* Ask a question on [StackOverflow](http://stackoverflow.com/) and tag it with the [`aws-sdk-go`](http://stackoverflow.com/questions/tagged/aws-sdk-go) tag. +* Come join the AWS SDK for Go community chat on [gitter](https://gitter.im/aws/aws-sdk-go). +* Open a support ticket with [AWS Support](http://docs.aws.amazon.com/awssupport/latest/user/getting-started.html). +* If you think you may of found a bug, please open an [issue](https://github.com/aws/aws-sdk-go/issues/new). + +## Opening Issues + +If you encounter a bug with the AWS SDK for Go we would like to hear about it. Search the [existing issues]( https://github.com/aws/aws-sdk-go/issues) and see if others are also experiencing the issue before opening a new issue. Please include the version of AWS SDK for Go, Go language, and OS you’re using. Please also include repro case when appropriate. + +The GitHub issues are intended for bug reports and feature requests. For help and questions with using AWS SDK for GO please make use of the resources listed in the [Getting Help]( https://github.com/aws/aws-sdk-go#getting-help) section. Keeping the list of open issues lean will help us respond in a timely manner. + ## Reference Documentation + [`Getting Started Guide`](https://aws.amazon.com/sdk-for-go/) - This document is a general introduction how to configure and make requests with the SDK. If this is your first time using the SDK, this documentation and the API documentation will help you get started. This document focuses on the syntax and behavior of the SDK. The [Service Developer Guide](https://aws.amazon.com/documentation/) will help you get started using specific AWS services. [`SDK API Reference Documentation`](https://docs.aws.amazon.com/sdk-for-go/api/) - Use this document to look up all API operation input and output parameters for AWS services supported by the SDK. The API reference also includes documentation of the SDK, and examples how to using the SDK, service client API operations, and API operation require parameters. @@ -84,10 +99,15 @@ import ( ) func main() { + sess, err := session.NewSession() + if err != nil { + panic(err) + } + // Create an EC2 service object in the "us-west-2" region // Note that you can also configure your region globally by // exporting the AWS_REGION environment variable - svc := ec2.New(session.New(), &aws.Config{Region: aws.String("us-west-2")}) + svc := ec2.New(sess, &aws.Config{Region: aws.String("us-west-2")}) // Call the DescribeInstances Operation resp, err := svc.DescribeInstances(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/prettify.go b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/prettify.go index fc38172fe..710eb432f 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/prettify.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/prettify.go @@ -61,6 +61,12 @@ func prettify(v reflect.Value, indent int, buf *bytes.Buffer) { buf.WriteString("\n" + strings.Repeat(" ", indent) + "}") case reflect.Slice: + strtype := v.Type().String() + if strtype == "[]uint8" { + fmt.Fprintf(buf, " len %d", v.Len()) + break + } + nl, id, id2 := "", "", "" if v.Len() > 3 { nl, id, id2 = "\n", strings.Repeat(" ", indent), strings.Repeat(" ", indent+2) diff --git a/vendor/github.com/aws/aws-sdk-go/aws/client/client.go b/vendor/github.com/aws/aws-sdk-go/aws/client/client.go index 7c0e7d9dd..17fc76a0f 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/client/client.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/client/client.go @@ -11,9 +11,11 @@ import ( // A Config provides configuration to a service client instance. type Config struct { - Config *aws.Config - Handlers request.Handlers - Endpoint, SigningRegion string + Config *aws.Config + Handlers request.Handlers + Endpoint string + SigningRegion string + SigningName string } // ConfigProvider provides a generic way for a service client to receive @@ -22,6 +24,13 @@ type ConfigProvider interface { ClientConfig(serviceName string, cfgs ...*aws.Config) Config } +// ConfigNoResolveEndpointProvider same as ConfigProvider except it will not +// resolve the endpoint automatically. The service client's endpoint must be +// provided via the aws.Config.Endpoint field. +type ConfigNoResolveEndpointProvider interface { + ClientConfigNoResolveEndpoint(cfgs ...*aws.Config) Config +} + // A Client implements the base client request and response handling // used by all service clients. type Client struct { diff --git a/vendor/github.com/aws/aws-sdk-go/aws/config.go b/vendor/github.com/aws/aws-sdk-go/aws/config.go index 34c2bab33..f5a7c3792 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/config.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/config.go @@ -5,6 +5,7 @@ import ( "time" "github.com/aws/aws-sdk-go/aws/credentials" + "github.com/aws/aws-sdk-go/aws/endpoints" ) // UseServiceDefaultRetries instructs the config to use the service's own @@ -21,9 +22,9 @@ type RequestRetryer interface{} // // // Create Session with MaxRetry configuration to be shared by multiple // // service clients. -// sess, err := session.NewSession(&aws.Config{ +// sess := session.Must(session.NewSession(&aws.Config{ // MaxRetries: aws.Int(3), -// }) +// })) // // // Create S3 service client with a specific Region. // svc := s3.New(sess, &aws.Config{ @@ -48,6 +49,10 @@ type Config struct { // endpoint for a client. Endpoint *string + // The resolver to use for looking up endpoints for AWS service clients + // to use based on region. + EndpointResolver endpoints.Resolver + // The region to send requests to. This parameter is required and must // be configured globally or on a per-client basis unless otherwise // noted. A full list of regions is found in the "Regions and Endpoints" @@ -149,7 +154,8 @@ type Config struct { // the EC2Metadata overriding the timeout for default credentials chain. // // Example: - // sess, err := session.NewSession(aws.NewConfig().WithEC2MetadataDiableTimeoutOverride(true)) + // sess := session.Must(session.NewSession(aws.NewConfig() + // .WithEC2MetadataDiableTimeoutOverride(true))) // // svc := s3.New(sess) // @@ -169,7 +175,7 @@ type Config struct { // // Only supported with. // - // sess, err := session.NewSession() + // sess := session.Must(session.NewSession()) // // svc := s3.New(sess, &aws.Config{ // UseDualStack: aws.Bool(true), @@ -182,6 +188,21 @@ type Config struct { // the delay of a request see the aws/client.DefaultRetryer and // aws/request.Retryer. SleepDelay func(time.Duration) + + // DisableRestProtocolURICleaning will not clean the URL path when making rest protocol requests. + // Will default to false. This would only be used for empty directory names in s3 requests. + // + // Example: + // sess := session.Must(session.NewSession(&aws.Config{ + // DisableRestProtocolURICleaning: aws.Bool(true), + // })) + // + // svc := s3.New(sess) + // out, err := svc.GetObject(&s3.GetObjectInput { + // Bucket: aws.String("bucketname"), + // Key: aws.String("//foo//bar//moo"), + // }) + DisableRestProtocolURICleaning *bool } // NewConfig returns a new Config pointer that can be chained with builder @@ -189,9 +210,9 @@ type Config struct { // // // Create Session with MaxRetry configuration to be shared by multiple // // service clients. -// sess, err := session.NewSession(aws.NewConfig(). +// sess := session.Must(session.NewSession(aws.NewConfig(). // WithMaxRetries(3), -// ) +// )) // // // Create S3 service client with a specific Region. // svc := s3.New(sess, aws.NewConfig(). @@ -222,6 +243,13 @@ func (c *Config) WithEndpoint(endpoint string) *Config { return c } +// WithEndpointResolver sets a config EndpointResolver value returning a +// Config pointer for chaining. +func (c *Config) WithEndpointResolver(resolver endpoints.Resolver) *Config { + c.EndpointResolver = resolver + return c +} + // WithRegion sets a config Region value returning a Config pointer for // chaining. func (c *Config) WithRegion(region string) *Config { @@ -344,6 +372,10 @@ func mergeInConfig(dst *Config, other *Config) { dst.Endpoint = other.Endpoint } + if other.EndpointResolver != nil { + dst.EndpointResolver = other.EndpointResolver + } + if other.Region != nil { dst.Region = other.Region } @@ -403,6 +435,10 @@ func mergeInConfig(dst *Config, other *Config) { if other.SleepDelay != nil { dst.SleepDelay = other.SleepDelay } + + if other.DisableRestProtocolURICleaning != nil { + dst.DisableRestProtocolURICleaning = other.DisableRestProtocolURICleaning + } } // Copy will return a shallow copy of the Config object. If any additional diff --git a/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers.go b/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers.go index 8e12f82b0..8a7bafc78 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers.go @@ -71,7 +71,7 @@ var reStatusCode = regexp.MustCompile(`^(\d{3})`) // ValidateReqSigHandler is a request handler to ensure that the request's // signature doesn't expire before it is sent. This can happen when a request -// is built and signed signficantly before it is sent. Or signficant delays +// is built and signed signficantly before it is sent. Or significant delays // occur whne retrying requests that would cause the signature to expire. var ValidateReqSigHandler = request.NamedHandler{ Name: "core.ValidateReqSigHandler", diff --git a/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers_test.go b/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers_test.go index ec9d78fa1..799285198 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers_test.go @@ -161,7 +161,9 @@ func setupContentLengthTestServer(t *testing.T, hasContentLength bool, contentLe server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { _, ok := r.Header["Content-Length"] assert.Equal(t, hasContentLength, ok, "expect content length to be set, %t", hasContentLength) - assert.Equal(t, contentLength, r.ContentLength) + if hasContentLength { + assert.Equal(t, contentLength, r.ContentLength) + } b, err := ioutil.ReadAll(r.Body) assert.NoError(t, err) diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go index aa9d689a0..c39749524 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go @@ -111,7 +111,7 @@ func (m *EC2RoleProvider) Retrieve() (credentials.Value, error) { }, nil } -// A ec2RoleCredRespBody provides the shape for unmarshalling credential +// A ec2RoleCredRespBody provides the shape for unmarshaling credential // request responses. type ec2RoleCredRespBody struct { // Success State diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider.go index 30c847ae2..b84062332 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider.go @@ -1,7 +1,81 @@ -// Package stscreds are credential Providers to retrieve STS AWS credentials. -// -// STS provides multiple ways to retrieve credentials which can be used when making -// future AWS service API operation calls. +/* +Package stscreds are credential Providers to retrieve STS AWS credentials. + +STS provides multiple ways to retrieve credentials which can be used when making +future AWS service API operation calls. + +The SDK will ensure that per instance of credentials.Credentials all requests +to refresh the credentials will be synchronized. But, the SDK is unable to +ensure synchronous usage of the AssumeRoleProvider if the value is shared +between multiple Credentials, Sessions or service clients. + +Assume Role + +To assume an IAM role using STS with the SDK you can create a new Credentials +with the SDKs's stscreds package. + + // Initial credentials loaded from SDK's default credential chain. Such as + // the environment, shared credentials (~/.aws/credentials), or EC2 Instance + // Role. These credentials will be used to to make the STS Assume Role API. + sess := session.Must(session.NewSession()) + + // Create the credentials from AssumeRoleProvider to assume the role + // referenced by the "myRoleARN" ARN. + creds := stscreds.NewCredentials(sess, "myRoleArn") + + // Create service client value configured for credentials + // from assumed role. + svc := s3.New(sess, &aws.Config{Credentials: creds}) + +Assume Role with static MFA Token + +To assume an IAM role with a MFA token you can either specify a MFA token code +directly or provide a function to prompt the user each time the credentials +need to refresh the role's credentials. Specifying the TokenCode should be used +for short lived operations that will not need to be refreshed, and when you do +not want to have direct control over the user provides their MFA token. + +With TokenCode the AssumeRoleProvider will be not be able to refresh the role's +credentials. + + // Create the credentials from AssumeRoleProvider to assume the role + // referenced by the "myRoleARN" ARN using the MFA token code provided. + creds := stscreds.NewCredentials(sess, "myRoleArn", func(p *stscreds.AssumeRoleProvider) { + p.SerialNumber = aws.String("myTokenSerialNumber") + p.TokenCode = aws.String("00000000") + }) + + // Create service client value configured for credentials + // from assumed role. + svc := s3.New(sess, &aws.Config{Credentials: creds}) + +Assume Role with MFA Token Provider + +To assume an IAM role with MFA for longer running tasks where the credentials +may need to be refreshed setting the TokenProvider field of AssumeRoleProvider +will allow the credential provider to prompt for new MFA token code when the +role's credentials need to be refreshed. + +The StdinTokenProvider function is available to prompt on stdin to retrieve +the MFA token code from the user. You can also implement custom prompts by +satisfing the TokenProvider function signature. + +Using StdinTokenProvider with multiple AssumeRoleProviders, or Credentials will +have undesirable results as the StdinTokenProvider will not be synchronized. A +single Credentials with an AssumeRoleProvider can be shared safely. + + // Create the credentials from AssumeRoleProvider to assume the role + // referenced by the "myRoleARN" ARN. Prompting for MFA token from stdin. + creds := stscreds.NewCredentials(sess, "myRoleArn", func(p *stscreds.AssumeRoleProvider) { + p.SerialNumber = aws.String("myTokenSerialNumber") + p.TokenProvider = stscreds.StdinTokenProvider + }) + + // Create service client value configured for credentials + // from assumed role. + svc := s3.New(sess, &aws.Config{Credentials: creds}) + +*/ package stscreds import ( @@ -9,11 +83,31 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/client" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/service/sts" ) +// StdinTokenProvider will prompt on stdout and read from stdin for a string value. +// An error is returned if reading from stdin fails. +// +// Use this function go read MFA tokens from stdin. The function makes no attempt +// to make atomic prompts from stdin across multiple gorouties. +// +// Using StdinTokenProvider with multiple AssumeRoleProviders, or Credentials will +// have undesirable results as the StdinTokenProvider will not be synchronized. A +// single Credentials with an AssumeRoleProvider can be shared safely +// +// Will wait forever until something is provided on the stdin. +func StdinTokenProvider() (string, error) { + var v string + fmt.Printf("Assume Role MFA token code: ") + _, err := fmt.Scanln(&v) + + return v, err +} + // ProviderName provides a name of AssumeRole provider const ProviderName = "AssumeRoleProvider" @@ -27,8 +121,15 @@ type AssumeRoler interface { var DefaultDuration = time.Duration(15) * time.Minute // AssumeRoleProvider retrieves temporary credentials from the STS service, and -// keeps track of their expiration time. This provider must be used explicitly, -// as it is not included in the credentials chain. +// keeps track of their expiration time. +// +// This credential provider will be used by the SDKs default credential change +// when shared configuration is enabled, and the shared config or shared credentials +// file configure assume role. See Session docs for how to do this. +// +// AssumeRoleProvider does not provide any synchronization and it is not safe +// to share this value across multiple Credentials, Sessions, or service clients +// without also sharing the same Credentials instance. type AssumeRoleProvider struct { credentials.Expiry @@ -65,8 +166,23 @@ type AssumeRoleProvider struct { // assumed requires MFA (that is, if the policy includes a condition that tests // for MFA). If the role being assumed requires MFA and if the TokenCode value // is missing or expired, the AssumeRole call returns an "access denied" error. + // + // If SerialNumber is set and neither TokenCode nor TokenProvider are also + // set an error will be returned. TokenCode *string + // Async method of providing MFA token code for assuming an IAM role with MFA. + // The value returned by the function will be used as the TokenCode in the Retrieve + // call. See StdinTokenProvider for a provider that prompts and reads from stdin. + // + // This token provider will be called when ever the assumed role's + // credentials need to be refreshed when SerialNumber is also set and + // TokenCode is not set. + // + // If both TokenCode and TokenProvider is set, TokenProvider will be used and + // TokenCode is ignored. + TokenProvider func() (string, error) + // ExpiryWindow will allow the credentials to trigger refreshing prior to // the credentials actually expiring. This is beneficial so race conditions // with expiring credentials do not cause request to fail unexpectedly @@ -85,6 +201,10 @@ type AssumeRoleProvider struct { // // Takes a Config provider to create the STS client. The ConfigProvider is // satisfied by the session.Session type. +// +// It is safe to share the returned Credentials with multiple Sessions and +// service clients. All access to the credentials and refreshing them +// will be synchronized. func NewCredentials(c client.ConfigProvider, roleARN string, options ...func(*AssumeRoleProvider)) *credentials.Credentials { p := &AssumeRoleProvider{ Client: sts.New(c), @@ -103,7 +223,11 @@ func NewCredentials(c client.ConfigProvider, roleARN string, options ...func(*As // AssumeRoleProvider. The credentials will expire every 15 minutes and the // role will be named after a nanosecond timestamp of this operation. // -// Takes an AssumeRoler which can be satisfiede by the STS client. +// Takes an AssumeRoler which can be satisfied by the STS client. +// +// It is safe to share the returned Credentials with multiple Sessions and +// service clients. All access to the credentials and refreshing them +// will be synchronized. func NewCredentialsWithClient(svc AssumeRoler, roleARN string, options ...func(*AssumeRoleProvider)) *credentials.Credentials { p := &AssumeRoleProvider{ Client: svc, @@ -139,12 +263,25 @@ func (p *AssumeRoleProvider) Retrieve() (credentials.Value, error) { if p.Policy != nil { input.Policy = p.Policy } - if p.SerialNumber != nil && p.TokenCode != nil { - input.SerialNumber = p.SerialNumber - input.TokenCode = p.TokenCode + if p.SerialNumber != nil { + if p.TokenCode != nil { + input.SerialNumber = p.SerialNumber + input.TokenCode = p.TokenCode + } else if p.TokenProvider != nil { + input.SerialNumber = p.SerialNumber + code, err := p.TokenProvider() + if err != nil { + return credentials.Value{ProviderName: ProviderName}, err + } + input.TokenCode = aws.String(code) + } else { + return credentials.Value{ProviderName: ProviderName}, + awserr.New("AssumeRoleTokenNotAvailable", + "assume role with MFA enabled, but neither TokenCode nor TokenProvider are set", nil) + } } - roleOutput, err := p.Client.AssumeRole(input) + roleOutput, err := p.Client.AssumeRole(input) if err != nil { return credentials.Value{ProviderName: ProviderName}, err } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider_test.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider_test.go index 6bd6e9197..4c0212a01 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider_test.go @@ -1,6 +1,7 @@ package stscreds import ( + "fmt" "testing" "time" @@ -10,9 +11,13 @@ import ( ) type stubSTS struct { + TestInput func(*sts.AssumeRoleInput) } func (s *stubSTS) AssumeRole(input *sts.AssumeRoleInput) (*sts.AssumeRoleOutput, error) { + if s.TestInput != nil { + s.TestInput(input) + } expiry := time.Now().Add(60 * time.Minute) return &sts.AssumeRoleOutput{ Credentials: &sts.Credentials{ @@ -40,6 +45,95 @@ func TestAssumeRoleProvider(t *testing.T) { assert.Equal(t, "assumedSessionToken", creds.SessionToken, "Expect session token to match") } +func TestAssumeRoleProvider_WithTokenCode(t *testing.T) { + stub := &stubSTS{ + TestInput: func(in *sts.AssumeRoleInput) { + assert.Equal(t, "0123456789", *in.SerialNumber) + assert.Equal(t, "code", *in.TokenCode) + }, + } + p := &AssumeRoleProvider{ + Client: stub, + RoleARN: "roleARN", + SerialNumber: aws.String("0123456789"), + TokenCode: aws.String("code"), + } + + creds, err := p.Retrieve() + assert.Nil(t, err, "Expect no error") + + assert.Equal(t, "roleARN", creds.AccessKeyID, "Expect access key ID to be reflected role ARN") + assert.Equal(t, "assumedSecretAccessKey", creds.SecretAccessKey, "Expect secret access key to match") + assert.Equal(t, "assumedSessionToken", creds.SessionToken, "Expect session token to match") +} + +func TestAssumeRoleProvider_WithTokenProvider(t *testing.T) { + stub := &stubSTS{ + TestInput: func(in *sts.AssumeRoleInput) { + assert.Equal(t, "0123456789", *in.SerialNumber) + assert.Equal(t, "code", *in.TokenCode) + }, + } + p := &AssumeRoleProvider{ + Client: stub, + RoleARN: "roleARN", + SerialNumber: aws.String("0123456789"), + TokenProvider: func() (string, error) { + return "code", nil + }, + } + + creds, err := p.Retrieve() + assert.Nil(t, err, "Expect no error") + + assert.Equal(t, "roleARN", creds.AccessKeyID, "Expect access key ID to be reflected role ARN") + assert.Equal(t, "assumedSecretAccessKey", creds.SecretAccessKey, "Expect secret access key to match") + assert.Equal(t, "assumedSessionToken", creds.SessionToken, "Expect session token to match") +} + +func TestAssumeRoleProvider_WithTokenProviderError(t *testing.T) { + stub := &stubSTS{ + TestInput: func(in *sts.AssumeRoleInput) { + assert.Fail(t, "API request should not of been called") + }, + } + p := &AssumeRoleProvider{ + Client: stub, + RoleARN: "roleARN", + SerialNumber: aws.String("0123456789"), + TokenProvider: func() (string, error) { + return "", fmt.Errorf("error occurred") + }, + } + + creds, err := p.Retrieve() + assert.Error(t, err) + + assert.Empty(t, creds.AccessKeyID) + assert.Empty(t, creds.SecretAccessKey) + assert.Empty(t, creds.SessionToken) +} + +func TestAssumeRoleProvider_MFAWithNoToken(t *testing.T) { + stub := &stubSTS{ + TestInput: func(in *sts.AssumeRoleInput) { + assert.Fail(t, "API request should not of been called") + }, + } + p := &AssumeRoleProvider{ + Client: stub, + RoleARN: "roleARN", + SerialNumber: aws.String("0123456789"), + } + + creds, err := p.Retrieve() + assert.Error(t, err) + + assert.Empty(t, creds.AccessKeyID) + assert.Empty(t, creds.SecretAccessKey) + assert.Empty(t, creds.SessionToken) +} + func BenchmarkAssumeRoleProvider(b *testing.B) { stub := &stubSTS{} p := &AssumeRoleProvider{ diff --git a/vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults.go b/vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults.go index 8dbbf670e..0ef55040a 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults.go @@ -19,8 +19,8 @@ import ( "github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds" "github.com/aws/aws-sdk-go/aws/credentials/endpointcreds" "github.com/aws/aws-sdk-go/aws/ec2metadata" + "github.com/aws/aws-sdk-go/aws/endpoints" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/endpoints" ) // A Defaults provides a collection of default values for SDK clients. @@ -56,7 +56,8 @@ func Config() *aws.Config { WithMaxRetries(aws.UseServiceDefaultRetries). WithLogger(aws.NewDefaultLogger()). WithLogLevel(aws.LogOff). - WithSleepDelay(time.Sleep) + WithSleepDelay(time.Sleep). + WithEndpointResolver(endpoints.DefaultResolver()) } // Handlers returns the default request handlers. @@ -120,11 +121,14 @@ func ecsCredProvider(cfg aws.Config, handlers request.Handlers, uri string) cred } func ec2RoleProvider(cfg aws.Config, handlers request.Handlers) credentials.Provider { - endpoint, signingRegion := endpoints.EndpointForRegion(ec2metadata.ServiceName, - aws.StringValue(cfg.Region), true, false) + resolver := cfg.EndpointResolver + if resolver == nil { + resolver = endpoints.DefaultResolver() + } + e, _ := resolver.EndpointFor(endpoints.Ec2metadataServiceID, "") return &ec2rolecreds.EC2RoleProvider{ - Client: ec2metadata.NewClient(cfg, handlers, endpoint, signingRegion), + Client: ec2metadata.NewClient(cfg, handlers, e.URL, e.SigningRegion), ExpiryWindow: 5 * time.Minute, } } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults_test.go b/vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults_test.go index 68226743f..bea61dea8 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults_test.go @@ -36,4 +36,9 @@ func TestDefaultEC2RoleProvider(t *testing.T) { ec2Provider, ok := provider.(*ec2rolecreds.EC2RoleProvider) assert.NotNil(t, ec2Provider) assert.True(t, ok) + + fmt.Println(ec2Provider.Client.Endpoint) + + assert.Equal(t, fmt.Sprintf("http://169.254.169.254/latest"), + ec2Provider.Client.Endpoint) } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go index e5755d11b..984407a58 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go @@ -133,7 +133,7 @@ func (c *EC2Metadata) Available() bool { return true } -// An EC2IAMInfo provides the shape for unmarshalling +// An EC2IAMInfo provides the shape for unmarshaling // an IAM info from the metadata API type EC2IAMInfo struct { Code string @@ -142,7 +142,7 @@ type EC2IAMInfo struct { InstanceProfileID string } -// An EC2InstanceIdentityDocument provides the shape for unmarshalling +// An EC2InstanceIdentityDocument provides the shape for unmarshaling // an instance identity document type EC2InstanceIdentityDocument struct { DevpayProductCodes []string `json:"devpayProductCodes"` diff --git a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/decode.go b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/decode.go new file mode 100644 index 000000000..74f72de07 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/decode.go @@ -0,0 +1,133 @@ +package endpoints + +import ( + "encoding/json" + "fmt" + "io" + + "github.com/aws/aws-sdk-go/aws/awserr" +) + +type modelDefinition map[string]json.RawMessage + +// A DecodeModelOptions are the options for how the endpoints model definition +// are decoded. +type DecodeModelOptions struct { + SkipCustomizations bool +} + +// Set combines all of the option functions together. +func (d *DecodeModelOptions) Set(optFns ...func(*DecodeModelOptions)) { + for _, fn := range optFns { + fn(d) + } +} + +// DecodeModel unmarshals a Regions and Endpoint model definition file into +// a endpoint Resolver. If the file format is not supported, or an error occurs +// when unmarshaling the model an error will be returned. +// +// Casting the return value of this func to a EnumPartitions will +// allow you to get a list of the partitions in the order the endpoints +// will be resolved in. +// +// resolver, err := endpoints.DecodeModel(reader) +// +// partitions := resolver.(endpoints.EnumPartitions).Partitions() +// for _, p := range partitions { +// // ... inspect partitions +// } +func DecodeModel(r io.Reader, optFns ...func(*DecodeModelOptions)) (Resolver, error) { + var opts DecodeModelOptions + opts.Set(optFns...) + + // Get the version of the partition file to determine what + // unmarshaling model to use. + modelDef := modelDefinition{} + if err := json.NewDecoder(r).Decode(&modelDef); err != nil { + return nil, newDecodeModelError("failed to decode endpoints model", err) + } + + var version string + if b, ok := modelDef["version"]; ok { + version = string(b) + } else { + return nil, newDecodeModelError("endpoints version not found in model", nil) + } + + if version == "3" { + return decodeV3Endpoints(modelDef, opts) + } + + return nil, newDecodeModelError( + fmt.Sprintf("endpoints version %s, not supported", version), nil) +} + +func decodeV3Endpoints(modelDef modelDefinition, opts DecodeModelOptions) (Resolver, error) { + b, ok := modelDef["partitions"] + if !ok { + return nil, newDecodeModelError("endpoints model missing partitions", nil) + } + + ps := partitions{} + if err := json.Unmarshal(b, &ps); err != nil { + return nil, newDecodeModelError("failed to decode endpoints model", err) + } + + if opts.SkipCustomizations { + return ps, nil + } + + // Customization + for i := 0; i < len(ps); i++ { + p := &ps[i] + custAddEC2Metadata(p) + custAddS3DualStack(p) + custRmIotDataService(p) + } + + return ps, nil +} + +func custAddS3DualStack(p *partition) { + if p.ID != "aws" { + return + } + + s, ok := p.Services["s3"] + if !ok { + return + } + + s.Defaults.HasDualStack = boxedTrue + s.Defaults.DualStackHostname = "{service}.dualstack.{region}.{dnsSuffix}" + + p.Services["s3"] = s +} + +func custAddEC2Metadata(p *partition) { + p.Services["ec2metadata"] = service{ + IsRegionalized: boxedFalse, + PartitionEndpoint: "aws-global", + Endpoints: endpoints{ + "aws-global": endpoint{ + Hostname: "169.254.169.254/latest", + Protocols: []string{"http"}, + }, + }, + } +} + +func custRmIotDataService(p *partition) { + delete(p.Services, "data.iot") +} + +type decodeModelError struct { + awsError +} + +func newDecodeModelError(msg string, err error) decodeModelError { + return decodeModelError{ + awsError: awserr.New("DecodeEndpointsModelError", msg, err), + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/decode_test.go b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/decode_test.go new file mode 100644 index 000000000..319390721 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/decode_test.go @@ -0,0 +1,117 @@ +package endpoints + +import ( + "strings" + "testing" +) + +func TestDecodeEndpoints_V3(t *testing.T) { + const v3Doc = ` +{ + "version": 3, + "partitions": [ + { + "defaults": { + "hostname": "{service}.{region}.{dnsSuffix}", + "protocols": [ + "https" + ], + "signatureVersions": [ + "v4" + ] + }, + "dnsSuffix": "amazonaws.com", + "partition": "aws", + "partitionName": "AWS Standard", + "regionRegex": "^(us|eu|ap|sa|ca)\\-\\w+\\-\\d+$", + "regions": { + "ap-northeast-1": { + "description": "Asia Pacific (Tokyo)" + } + }, + "services": { + "acm": { + "endpoints": { + "ap-northeast-1": {} + } + }, + "s3": { + "endpoints": { + "ap-northeast-1": {} + } + } + } + } + ] +}` + + resolver, err := DecodeModel(strings.NewReader(v3Doc)) + if err != nil { + t.Fatalf("expected no error, got %v", err) + } + + endpoint, err := resolver.EndpointFor("acm", "ap-northeast-1") + if err != nil { + t.Fatalf("failed to resolve endpoint, %v", err) + } + + if a, e := endpoint.URL, "https://acm.ap-northeast-1.amazonaws.com"; a != e { + t.Errorf("expected %q URL got %q", e, a) + } + + p := resolver.(partitions)[0] + + s3Defaults := p.Services["s3"].Defaults + if a, e := s3Defaults.HasDualStack, boxedTrue; a != e { + t.Errorf("expect s3 service to have dualstack enabled") + } + if a, e := s3Defaults.DualStackHostname, "{service}.dualstack.{region}.{dnsSuffix}"; a != e { + t.Errorf("expect s3 dualstack host pattern to be %q, got %q", e, a) + } + + ec2metaEndpoint := p.Services["ec2metadata"].Endpoints["aws-global"] + if a, e := ec2metaEndpoint.Hostname, "169.254.169.254/latest"; a != e { + t.Errorf("expect ec2metadata host to be %q, got %q", e, a) + } +} + +func TestDecodeEndpoints_NoPartitions(t *testing.T) { + const doc = `{ "version": 3 }` + + resolver, err := DecodeModel(strings.NewReader(doc)) + if err == nil { + t.Fatalf("expected error") + } + + if resolver != nil { + t.Errorf("expect resolver to be nil") + } +} + +func TestDecodeEndpoints_UnsupportedVersion(t *testing.T) { + const doc = `{ "version": 2 }` + + resolver, err := DecodeModel(strings.NewReader(doc)) + if err == nil { + t.Fatalf("expected error decoding model") + } + + if resolver != nil { + t.Errorf("expect resolver to be nil") + } +} + +func TestDecodeModelOptionsSet(t *testing.T) { + var actual DecodeModelOptions + actual.Set(func(o *DecodeModelOptions) { + o.SkipCustomizations = true + }) + + expect := DecodeModelOptions{ + SkipCustomizations: true, + } + + if actual != expect { + t.Errorf("expect %v options got %v", expect, actual) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go new file mode 100644 index 000000000..93536df0f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go @@ -0,0 +1,2093 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package endpoints + +import ( + "regexp" +) + +// Partition identifiers +const ( + AwsPartitionID = "aws" // AWS Standard partition. + AwsCnPartitionID = "aws-cn" // AWS China partition. + AwsUsGovPartitionID = "aws-us-gov" // AWS GovCloud (US) partition. +) + +// AWS Standard partition's regions. +const ( + ApNortheast1RegionID = "ap-northeast-1" // Asia Pacific (Tokyo). + ApNortheast2RegionID = "ap-northeast-2" // Asia Pacific (Seoul). + ApSouth1RegionID = "ap-south-1" // Asia Pacific (Mumbai). + ApSoutheast1RegionID = "ap-southeast-1" // Asia Pacific (Singapore). + ApSoutheast2RegionID = "ap-southeast-2" // Asia Pacific (Sydney). + CaCentral1RegionID = "ca-central-1" // Canada (Central). + EuCentral1RegionID = "eu-central-1" // EU (Frankfurt). + EuWest1RegionID = "eu-west-1" // EU (Ireland). + EuWest2RegionID = "eu-west-2" // EU (London). + SaEast1RegionID = "sa-east-1" // South America (Sao Paulo). + UsEast1RegionID = "us-east-1" // US East (N. Virginia). + UsEast2RegionID = "us-east-2" // US East (Ohio). + UsWest1RegionID = "us-west-1" // US West (N. California). + UsWest2RegionID = "us-west-2" // US West (Oregon). +) + +// AWS China partition's regions. +const ( + CnNorth1RegionID = "cn-north-1" // China (Beijing). +) + +// AWS GovCloud (US) partition's regions. +const ( + UsGovWest1RegionID = "us-gov-west-1" // AWS GovCloud (US). +) + +// Service identifiers +const ( + AcmServiceID = "acm" // Acm. + ApigatewayServiceID = "apigateway" // Apigateway. + ApplicationAutoscalingServiceID = "application-autoscaling" // ApplicationAutoscaling. + Appstream2ServiceID = "appstream2" // Appstream2. + AutoscalingServiceID = "autoscaling" // Autoscaling. + BatchServiceID = "batch" // Batch. + BudgetsServiceID = "budgets" // Budgets. + ClouddirectoryServiceID = "clouddirectory" // Clouddirectory. + CloudformationServiceID = "cloudformation" // Cloudformation. + CloudfrontServiceID = "cloudfront" // Cloudfront. + CloudhsmServiceID = "cloudhsm" // Cloudhsm. + CloudsearchServiceID = "cloudsearch" // Cloudsearch. + CloudtrailServiceID = "cloudtrail" // Cloudtrail. + CodebuildServiceID = "codebuild" // Codebuild. + CodecommitServiceID = "codecommit" // Codecommit. + CodedeployServiceID = "codedeploy" // Codedeploy. + CodepipelineServiceID = "codepipeline" // Codepipeline. + CognitoIdentityServiceID = "cognito-identity" // CognitoIdentity. + CognitoIdpServiceID = "cognito-idp" // CognitoIdp. + CognitoSyncServiceID = "cognito-sync" // CognitoSync. + ConfigServiceID = "config" // Config. + CurServiceID = "cur" // Cur. + DatapipelineServiceID = "datapipeline" // Datapipeline. + DevicefarmServiceID = "devicefarm" // Devicefarm. + DirectconnectServiceID = "directconnect" // Directconnect. + DiscoveryServiceID = "discovery" // Discovery. + DmsServiceID = "dms" // Dms. + DsServiceID = "ds" // Ds. + DynamodbServiceID = "dynamodb" // Dynamodb. + Ec2ServiceID = "ec2" // Ec2. + Ec2metadataServiceID = "ec2metadata" // Ec2metadata. + EcrServiceID = "ecr" // Ecr. + EcsServiceID = "ecs" // Ecs. + ElasticacheServiceID = "elasticache" // Elasticache. + ElasticbeanstalkServiceID = "elasticbeanstalk" // Elasticbeanstalk. + ElasticfilesystemServiceID = "elasticfilesystem" // Elasticfilesystem. + ElasticloadbalancingServiceID = "elasticloadbalancing" // Elasticloadbalancing. + ElasticmapreduceServiceID = "elasticmapreduce" // Elasticmapreduce. + ElastictranscoderServiceID = "elastictranscoder" // Elastictranscoder. + EmailServiceID = "email" // Email. + EsServiceID = "es" // Es. + EventsServiceID = "events" // Events. + FirehoseServiceID = "firehose" // Firehose. + GameliftServiceID = "gamelift" // Gamelift. + GlacierServiceID = "glacier" // Glacier. + HealthServiceID = "health" // Health. + IamServiceID = "iam" // Iam. + ImportexportServiceID = "importexport" // Importexport. + InspectorServiceID = "inspector" // Inspector. + IotServiceID = "iot" // Iot. + KinesisServiceID = "kinesis" // Kinesis. + KinesisanalyticsServiceID = "kinesisanalytics" // Kinesisanalytics. + KmsServiceID = "kms" // Kms. + LambdaServiceID = "lambda" // Lambda. + LightsailServiceID = "lightsail" // Lightsail. + LogsServiceID = "logs" // Logs. + MachinelearningServiceID = "machinelearning" // Machinelearning. + MarketplacecommerceanalyticsServiceID = "marketplacecommerceanalytics" // Marketplacecommerceanalytics. + MeteringMarketplaceServiceID = "metering.marketplace" // MeteringMarketplace. + MobileanalyticsServiceID = "mobileanalytics" // Mobileanalytics. + MonitoringServiceID = "monitoring" // Monitoring. + MturkRequesterServiceID = "mturk-requester" // MturkRequester. + OpsworksServiceID = "opsworks" // Opsworks. + OpsworksCmServiceID = "opsworks-cm" // OpsworksCm. + OrganizationsServiceID = "organizations" // Organizations. + PinpointServiceID = "pinpoint" // Pinpoint. + PollyServiceID = "polly" // Polly. + RdsServiceID = "rds" // Rds. + RedshiftServiceID = "redshift" // Redshift. + RekognitionServiceID = "rekognition" // Rekognition. + Route53ServiceID = "route53" // Route53. + Route53domainsServiceID = "route53domains" // Route53domains. + RuntimeLexServiceID = "runtime.lex" // RuntimeLex. + S3ServiceID = "s3" // S3. + SdbServiceID = "sdb" // Sdb. + ServicecatalogServiceID = "servicecatalog" // Servicecatalog. + ShieldServiceID = "shield" // Shield. + SmsServiceID = "sms" // Sms. + SnowballServiceID = "snowball" // Snowball. + SnsServiceID = "sns" // Sns. + SqsServiceID = "sqs" // Sqs. + SsmServiceID = "ssm" // Ssm. + StatesServiceID = "states" // States. + StoragegatewayServiceID = "storagegateway" // Storagegateway. + StreamsDynamodbServiceID = "streams.dynamodb" // StreamsDynamodb. + StsServiceID = "sts" // Sts. + SupportServiceID = "support" // Support. + SwfServiceID = "swf" // Swf. + WafServiceID = "waf" // Waf. + WafRegionalServiceID = "waf-regional" // WafRegional. + WorkdocsServiceID = "workdocs" // Workdocs. + WorkspacesServiceID = "workspaces" // Workspaces. + XrayServiceID = "xray" // Xray. +) + +// DefaultResolver returns an Endpoint resolver that will be able +// to resolve endpoints for: AWS Standard, AWS China, and AWS GovCloud (US). +// +// Casting the return value of this func to a EnumPartitions will +// allow you to get a list of the partitions in the order the endpoints +// will be resolved in. +// +// resolver := endpoints.DefaultResolver() +// partitions := resolver.(endpoints.EnumPartitions).Partitions() +// for _, p := range partitions { +// // ... inspect partitions +// } +func DefaultResolver() Resolver { + return defaultPartitions +} + +var defaultPartitions = partitions{ + awsPartition, + awscnPartition, + awsusgovPartition, +} + +// AwsPartition returns the Resolver for AWS Standard. +func AwsPartition() Partition { + return awsPartition.Partition() +} + +var awsPartition = partition{ + ID: "aws", + Name: "AWS Standard", + DNSSuffix: "amazonaws.com", + RegionRegex: regionRegex{ + Regexp: func() *regexp.Regexp { + reg, _ := regexp.Compile("^(us|eu|ap|sa|ca)\\-\\w+\\-\\d+$") + return reg + }(), + }, + Defaults: endpoint{ + Hostname: "{service}.{region}.{dnsSuffix}", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + Regions: regions{ + "ap-northeast-1": region{ + Description: "Asia Pacific (Tokyo)", + }, + "ap-northeast-2": region{ + Description: "Asia Pacific (Seoul)", + }, + "ap-south-1": region{ + Description: "Asia Pacific (Mumbai)", + }, + "ap-southeast-1": region{ + Description: "Asia Pacific (Singapore)", + }, + "ap-southeast-2": region{ + Description: "Asia Pacific (Sydney)", + }, + "ca-central-1": region{ + Description: "Canada (Central)", + }, + "eu-central-1": region{ + Description: "EU (Frankfurt)", + }, + "eu-west-1": region{ + Description: "EU (Ireland)", + }, + "eu-west-2": region{ + Description: "EU (London)", + }, + "sa-east-1": region{ + Description: "South America (Sao Paulo)", + }, + "us-east-1": region{ + Description: "US East (N. Virginia)", + }, + "us-east-2": region{ + Description: "US East (Ohio)", + }, + "us-west-1": region{ + Description: "US West (N. California)", + }, + "us-west-2": region{ + Description: "US West (Oregon)", + }, + }, + Services: services{ + "acm": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "apigateway": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "application-autoscaling": service{ + Defaults: endpoint{ + Hostname: "autoscaling.{region}.amazonaws.com", + Protocols: []string{"http", "https"}, + CredentialScope: credentialScope{ + Service: "application-autoscaling", + }, + }, + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "appstream2": service{ + Defaults: endpoint{ + Protocols: []string{"https"}, + CredentialScope: credentialScope{ + Service: "appstream", + }, + }, + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "autoscaling": service{ + Defaults: endpoint{ + Protocols: []string{"http", "https"}, + }, + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "batch": service{ + + Endpoints: endpoints{ + "us-east-1": endpoint{}, + }, + }, + "budgets": service{ + PartitionEndpoint: "aws-global", + IsRegionalized: boxedFalse, + + Endpoints: endpoints{ + "aws-global": endpoint{ + Hostname: "budgets.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + }, + }, + }, + "clouddirectory": service{ + + Endpoints: endpoints{ + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "cloudformation": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "cloudfront": service{ + PartitionEndpoint: "aws-global", + IsRegionalized: boxedFalse, + + Endpoints: endpoints{ + "aws-global": endpoint{ + Hostname: "cloudfront.amazonaws.com", + Protocols: []string{"http", "https"}, + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + }, + }, + }, + "cloudhsm": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "cloudsearch": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "cloudtrail": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "codebuild": service{ + + Endpoints: endpoints{ + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "codecommit": service{ + + Endpoints: endpoints{ + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "codedeploy": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "codepipeline": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "cognito-identity": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "cognito-idp": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "cognito-sync": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "config": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "cur": service{ + + Endpoints: endpoints{ + "us-east-1": endpoint{}, + }, + }, + "datapipeline": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "devicefarm": service{ + + Endpoints: endpoints{ + "us-west-2": endpoint{}, + }, + }, + "directconnect": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "discovery": service{ + + Endpoints: endpoints{ + "us-west-2": endpoint{}, + }, + }, + "dms": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "ds": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "dynamodb": service{ + Defaults: endpoint{ + Protocols: []string{"http", "https"}, + }, + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "local": endpoint{ + Hostname: "localhost:8000", + Protocols: []string{"http"}, + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + }, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "ec2": service{ + Defaults: endpoint{ + Protocols: []string{"http", "https"}, + }, + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "ec2metadata": service{ + PartitionEndpoint: "aws-global", + IsRegionalized: boxedFalse, + + Endpoints: endpoints{ + "aws-global": endpoint{ + Hostname: "169.254.169.254/latest", + Protocols: []string{"http"}, + }, + }, + }, + "ecr": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "ecs": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "elasticache": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "elasticbeanstalk": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "elasticfilesystem": service{ + + Endpoints: endpoints{ + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "elasticloadbalancing": service{ + Defaults: endpoint{ + Protocols: []string{"http", "https"}, + }, + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "elasticmapreduce": service{ + Defaults: endpoint{ + SSLCommonName: "{region}.{service}.{dnsSuffix}", + Protocols: []string{"http", "https"}, + }, + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{ + SSLCommonName: "{service}.{region}.{dnsSuffix}", + }, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{ + SSLCommonName: "{service}.{region}.{dnsSuffix}", + }, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "elastictranscoder": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "email": service{ + + Endpoints: endpoints{ + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "es": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "events": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "firehose": service{ + + Endpoints: endpoints{ + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "gamelift": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "glacier": service{ + Defaults: endpoint{ + Protocols: []string{"http", "https"}, + }, + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "health": service{ + + Endpoints: endpoints{ + "us-east-1": endpoint{}, + }, + }, + "iam": service{ + PartitionEndpoint: "aws-global", + IsRegionalized: boxedFalse, + + Endpoints: endpoints{ + "aws-global": endpoint{ + Hostname: "iam.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + }, + }, + }, + "importexport": service{ + PartitionEndpoint: "aws-global", + IsRegionalized: boxedFalse, + + Endpoints: endpoints{ + "aws-global": endpoint{ + Hostname: "importexport.amazonaws.com", + SignatureVersions: []string{"v2", "v4"}, + CredentialScope: credentialScope{ + Region: "us-east-1", + Service: "IngestionService", + }, + }, + }, + }, + "inspector": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "iot": service{ + Defaults: endpoint{ + CredentialScope: credentialScope{ + Service: "execute-api", + }, + }, + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "kinesis": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "kinesisanalytics": service{ + + Endpoints: endpoints{ + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "kms": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "lambda": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "lightsail": service{ + + Endpoints: endpoints{ + "us-east-1": endpoint{}, + }, + }, + "logs": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "machinelearning": service{ + + Endpoints: endpoints{ + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + }, + }, + "marketplacecommerceanalytics": service{ + + Endpoints: endpoints{ + "us-east-1": endpoint{}, + }, + }, + "metering.marketplace": service{ + Defaults: endpoint{ + CredentialScope: credentialScope{ + Service: "aws-marketplace", + }, + }, + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "mobileanalytics": service{ + + Endpoints: endpoints{ + "us-east-1": endpoint{}, + }, + }, + "monitoring": service{ + Defaults: endpoint{ + Protocols: []string{"http", "https"}, + }, + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "mturk-requester": service{ + IsRegionalized: boxedFalse, + + Endpoints: endpoints{ + "sandbox": endpoint{ + Hostname: "mturk-requester-sandbox.us-east-1.amazonaws.com", + }, + "us-east-1": endpoint{}, + }, + }, + "opsworks": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "opsworks-cm": service{ + + Endpoints: endpoints{ + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "organizations": service{ + PartitionEndpoint: "aws-global", + IsRegionalized: boxedFalse, + + Endpoints: endpoints{ + "aws-global": endpoint{ + Hostname: "organizations.us-east-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + }, + }, + }, + "pinpoint": service{ + Defaults: endpoint{ + CredentialScope: credentialScope{ + Service: "mobiletargeting", + }, + }, + Endpoints: endpoints{ + "us-east-1": endpoint{}, + }, + }, + "polly": service{ + + Endpoints: endpoints{ + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "rds": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{ + SSLCommonName: "{service}.{dnsSuffix}", + }, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "redshift": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "rekognition": service{ + + Endpoints: endpoints{ + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "route53": service{ + PartitionEndpoint: "aws-global", + IsRegionalized: boxedFalse, + + Endpoints: endpoints{ + "aws-global": endpoint{ + Hostname: "route53.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + }, + }, + }, + "route53domains": service{ + + Endpoints: endpoints{ + "us-east-1": endpoint{}, + }, + }, + "runtime.lex": service{ + Defaults: endpoint{ + CredentialScope: credentialScope{ + Service: "lex", + }, + }, + Endpoints: endpoints{ + "us-east-1": endpoint{}, + }, + }, + "s3": service{ + PartitionEndpoint: "us-east-1", + IsRegionalized: boxedTrue, + Defaults: endpoint{ + Protocols: []string{"http", "https"}, + SignatureVersions: []string{"s3v4"}, + + HasDualStack: boxedTrue, + DualStackHostname: "{service}.dualstack.{region}.{dnsSuffix}", + }, + Endpoints: endpoints{ + "ap-northeast-1": endpoint{ + Hostname: "s3-ap-northeast-1.amazonaws.com", + SignatureVersions: []string{"s3", "s3v4"}, + }, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{ + Hostname: "s3-ap-southeast-1.amazonaws.com", + SignatureVersions: []string{"s3", "s3v4"}, + }, + "ap-southeast-2": endpoint{ + Hostname: "s3-ap-southeast-2.amazonaws.com", + SignatureVersions: []string{"s3", "s3v4"}, + }, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{ + Hostname: "s3-eu-west-1.amazonaws.com", + SignatureVersions: []string{"s3", "s3v4"}, + }, + "eu-west-2": endpoint{}, + "s3-external-1": endpoint{ + Hostname: "s3-external-1.amazonaws.com", + SignatureVersions: []string{"s3", "s3v4"}, + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + }, + "sa-east-1": endpoint{ + Hostname: "s3-sa-east-1.amazonaws.com", + SignatureVersions: []string{"s3", "s3v4"}, + }, + "us-east-1": endpoint{ + Hostname: "s3.amazonaws.com", + SignatureVersions: []string{"s3", "s3v4"}, + }, + "us-east-2": endpoint{}, + "us-west-1": endpoint{ + Hostname: "s3-us-west-1.amazonaws.com", + SignatureVersions: []string{"s3", "s3v4"}, + }, + "us-west-2": endpoint{ + Hostname: "s3-us-west-2.amazonaws.com", + SignatureVersions: []string{"s3", "s3v4"}, + }, + }, + }, + "sdb": service{ + Defaults: endpoint{ + Protocols: []string{"http", "https"}, + SignatureVersions: []string{"v2"}, + }, + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-west-1": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{ + Hostname: "sdb.amazonaws.com", + }, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "servicecatalog": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "shield": service{ + IsRegionalized: boxedFalse, + Defaults: endpoint{ + SSLCommonName: "Shield.us-east-1.amazonaws.com", + Protocols: []string{"https"}, + }, + Endpoints: endpoints{ + "us-east-1": endpoint{}, + }, + }, + "sms": service{ + + Endpoints: endpoints{ + "ap-southeast-2": endpoint{}, + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + }, + }, + "snowball": service{ + + Endpoints: endpoints{ + "ap-south-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "sns": service{ + Defaults: endpoint{ + Protocols: []string{"http", "https"}, + }, + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "sqs": service{ + Defaults: endpoint{ + SSLCommonName: "{region}.queue.{dnsSuffix}", + Protocols: []string{"http", "https"}, + }, + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{ + SSLCommonName: "queue.{dnsSuffix}", + }, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "ssm": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "states": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "storagegateway": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "streams.dynamodb": service{ + Defaults: endpoint{ + Protocols: []string{"http", "http", "https", "https"}, + CredentialScope: credentialScope{ + Service: "dynamodb", + }, + }, + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "local": endpoint{ + Hostname: "localhost:8000", + Protocols: []string{"http"}, + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + }, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "sts": service{ + PartitionEndpoint: "aws-global", + Defaults: endpoint{ + Hostname: "sts.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + }, + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{ + Hostname: "sts.ap-northeast-2.amazonaws.com", + CredentialScope: credentialScope{ + Region: "ap-northeast-2", + }, + }, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "aws-global": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "support": service{ + + Endpoints: endpoints{ + "us-east-1": endpoint{}, + }, + }, + "swf": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "waf": service{ + PartitionEndpoint: "aws-global", + IsRegionalized: boxedFalse, + + Endpoints: endpoints{ + "aws-global": endpoint{ + Hostname: "waf.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + }, + }, + }, + "waf-regional": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "workdocs": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "workspaces": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + "xray": service{ + + Endpoints: endpoints{ + "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, + "ap-south-1": endpoint{}, + "ap-southeast-1": endpoint{}, + "ap-southeast-2": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, + }, +} + +// AwsCnPartition returns the Resolver for AWS China. +func AwsCnPartition() Partition { + return awscnPartition.Partition() +} + +var awscnPartition = partition{ + ID: "aws-cn", + Name: "AWS China", + DNSSuffix: "amazonaws.com.cn", + RegionRegex: regionRegex{ + Regexp: func() *regexp.Regexp { + reg, _ := regexp.Compile("^cn\\-\\w+\\-\\d+$") + return reg + }(), + }, + Defaults: endpoint{ + Hostname: "{service}.{region}.{dnsSuffix}", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + Regions: regions{ + "cn-north-1": region{ + Description: "China (Beijing)", + }, + }, + Services: services{ + "autoscaling": service{ + Defaults: endpoint{ + Protocols: []string{"http", "https"}, + }, + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "cloudformation": service{ + + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "cloudtrail": service{ + + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "config": service{ + + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "directconnect": service{ + + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "dynamodb": service{ + Defaults: endpoint{ + Protocols: []string{"http", "https"}, + }, + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "ec2": service{ + Defaults: endpoint{ + Protocols: []string{"http", "https"}, + }, + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "ec2metadata": service{ + PartitionEndpoint: "aws-global", + IsRegionalized: boxedFalse, + + Endpoints: endpoints{ + "aws-global": endpoint{ + Hostname: "169.254.169.254/latest", + Protocols: []string{"http"}, + }, + }, + }, + "elasticache": service{ + + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "elasticbeanstalk": service{ + + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "elasticloadbalancing": service{ + Defaults: endpoint{ + Protocols: []string{"http", "https"}, + }, + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "elasticmapreduce": service{ + Defaults: endpoint{ + Protocols: []string{"http", "https"}, + }, + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "events": service{ + + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "glacier": service{ + Defaults: endpoint{ + Protocols: []string{"http", "https"}, + }, + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "iam": service{ + PartitionEndpoint: "aws-cn-global", + IsRegionalized: boxedFalse, + + Endpoints: endpoints{ + "aws-cn-global": endpoint{ + Hostname: "iam.cn-north-1.amazonaws.com.cn", + CredentialScope: credentialScope{ + Region: "cn-north-1", + }, + }, + }, + }, + "kinesis": service{ + + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "logs": service{ + + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "monitoring": service{ + Defaults: endpoint{ + Protocols: []string{"http", "https"}, + }, + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "rds": service{ + + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "redshift": service{ + + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "s3": service{ + Defaults: endpoint{ + Protocols: []string{"http", "https"}, + SignatureVersions: []string{"s3v4"}, + }, + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "sns": service{ + Defaults: endpoint{ + Protocols: []string{"http", "https"}, + }, + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "sqs": service{ + Defaults: endpoint{ + SSLCommonName: "{region}.queue.{dnsSuffix}", + Protocols: []string{"http", "https"}, + }, + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "storagegateway": service{ + + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "streams.dynamodb": service{ + Defaults: endpoint{ + Protocols: []string{"http", "http", "https", "https"}, + CredentialScope: credentialScope{ + Service: "dynamodb", + }, + }, + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "sts": service{ + + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + "swf": service{ + + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + }, + }, + }, +} + +// AwsUsGovPartition returns the Resolver for AWS GovCloud (US). +func AwsUsGovPartition() Partition { + return awsusgovPartition.Partition() +} + +var awsusgovPartition = partition{ + ID: "aws-us-gov", + Name: "AWS GovCloud (US)", + DNSSuffix: "amazonaws.com", + RegionRegex: regionRegex{ + Regexp: func() *regexp.Regexp { + reg, _ := regexp.Compile("^us\\-gov\\-\\w+\\-\\d+$") + return reg + }(), + }, + Defaults: endpoint{ + Hostname: "{service}.{region}.{dnsSuffix}", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + Regions: regions{ + "us-gov-west-1": region{ + Description: "AWS GovCloud (US)", + }, + }, + Services: services{ + "autoscaling": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{ + Protocols: []string{"http", "https"}, + }, + }, + }, + "cloudformation": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, + "cloudhsm": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, + "cloudtrail": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, + "config": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, + "directconnect": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, + "dynamodb": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, + "ec2": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, + "ec2metadata": service{ + PartitionEndpoint: "aws-global", + IsRegionalized: boxedFalse, + + Endpoints: endpoints{ + "aws-global": endpoint{ + Hostname: "169.254.169.254/latest", + Protocols: []string{"http"}, + }, + }, + }, + "elasticache": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, + "elasticloadbalancing": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{ + Protocols: []string{"http", "https"}, + }, + }, + }, + "elasticmapreduce": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{ + Protocols: []string{"http", "https"}, + }, + }, + }, + "glacier": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{ + Protocols: []string{"http", "https"}, + }, + }, + }, + "iam": service{ + PartitionEndpoint: "aws-us-gov-global", + IsRegionalized: boxedFalse, + + Endpoints: endpoints{ + "aws-us-gov-global": endpoint{ + Hostname: "iam.us-gov.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-gov-west-1", + }, + }, + }, + }, + "kinesis": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, + "kms": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, + "logs": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, + "monitoring": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, + "rds": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, + "redshift": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, + "s3": service{ + Defaults: endpoint{ + SignatureVersions: []string{"s3", "s3v4"}, + }, + Endpoints: endpoints{ + "fips-us-gov-west-1": endpoint{ + Hostname: "s3-fips-us-gov-west-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-gov-west-1", + }, + }, + "us-gov-west-1": endpoint{ + Hostname: "s3-us-gov-west-1.amazonaws.com", + Protocols: []string{"http", "https"}, + }, + }, + }, + "snowball": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, + "sns": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{ + Protocols: []string{"http", "https"}, + }, + }, + }, + "sqs": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{ + SSLCommonName: "{region}.queue.{dnsSuffix}", + Protocols: []string{"http", "https"}, + }, + }, + }, + "streams.dynamodb": service{ + Defaults: endpoint{ + CredentialScope: credentialScope{ + Service: "dynamodb", + }, + }, + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, + "sts": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, + "swf": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, + }, +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/doc.go b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/doc.go new file mode 100644 index 000000000..a0e9bc454 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/doc.go @@ -0,0 +1,66 @@ +// Package endpoints provides the types and functionality for defining regions +// and endpoints, as well as querying those definitions. +// +// The SDK's Regions and Endpoints metadata is code generated into the endpoints +// package, and is accessible via the DefaultResolver function. This function +// returns a endpoint Resolver will search the metadata and build an associated +// endpoint if one is found. The default resolver will search all partitions +// known by the SDK. e.g AWS Standard (aws), AWS China (aws-cn), and +// AWS GovCloud (US) (aws-us-gov). +// . +// +// Enumerating Regions and Endpoint Metadata +// +// Casting the Resolver returned by DefaultResolver to a EnumPartitions interface +// will allow you to get access to the list of underlying Partitions with the +// Partitions method. This is helpful if you want to limit the SDK's endpoint +// resolving to a single partition, or enumerate regions, services, and endpoints +// in the partition. +// +// resolver := endpoints.DefaultResolver() +// partitions := resolver.(endpoints.EnumPartitions).Partitions() +// +// for _, p := range partitions { +// fmt.Println("Regions for", p.Name) +// for id, _ := range p.Regions() { +// fmt.Println("*", id) +// } +// +// fmt.Println("Services for", p.Name) +// for id, _ := range p.Services() { +// fmt.Println("*", id) +// } +// } +// +// Using Custom Endpoints +// +// The endpoints package also gives you the ability to use your own logic how +// endpoints are resolved. This is a great way to define a custom endpoint +// for select services, without passing that logic down through your code. +// +// If a type implements the Resolver interface it can be used to resolve +// endpoints. To use this with the SDK's Session and Config set the value +// of the type to the EndpointsResolver field of aws.Config when initializing +// the session, or service client. +// +// In addition the ResolverFunc is a wrapper for a func matching the signature +// of Resolver.EndpointFor, converting it to a type that satisfies the +// Resolver interface. +// +// +// myCustomResolver := func(service, region string, optFns ...func(*endpoints.Options)) (endpoints.ResolvedEndpoint, error) { +// if service == endpoints.S3ServiceID { +// return endpoints.ResolvedEndpoint{ +// URL: "s3.custom.endpoint.com", +// SigningRegion: "custom-signing-region", +// }, nil +// } +// +// return endpoints.DefaultResolver().EndpointFor(service, region, optFns...) +// } +// +// sess := session.Must(session.NewSession(&aws.Config{ +// Region: aws.String("us-west-2"), +// EndpointResolver: endpoints.ResolverFunc(myCustomResolver), +// })) +package endpoints diff --git a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/endpoints.go b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/endpoints.go new file mode 100644 index 000000000..37e19ab00 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/endpoints.go @@ -0,0 +1,397 @@ +package endpoints + +import ( + "fmt" + "regexp" + + "github.com/aws/aws-sdk-go/aws/awserr" +) + +// Options provide the configuration needed to direct how the +// endpoints will be resolved. +type Options struct { + // DisableSSL forces the endpoint to be resolved as HTTP. + // instead of HTTPS if the service supports it. + DisableSSL bool + + // Sets the resolver to resolve the endpoint as a dualstack endpoint + // for the service. If dualstack support for a service is not known and + // StrictMatching is not enabled a dualstack endpoint for the service will + // be returned. This endpoint may not be valid. If StrictMatching is + // enabled only services that are known to support dualstack will return + // dualstack endpoints. + UseDualStack bool + + // Enables strict matching of services and regions resolved endpoints. + // If the partition doesn't enumerate the exact service and region an + // error will be returned. This option will prevent returning endpoints + // that look valid, but may not resolve to any real endpoint. + StrictMatching bool + + // Enables resolving a service endpoint based on the region provided if the + // service does not exist. The service endpoint ID will be used as the service + // domain name prefix. By default the endpoint resolver requires the service + // to be known when resolving endpoints. + // + // If resolving an endpoint on the partition list the provided region will + // be used to determine which partition's domain name pattern to the service + // endpoint ID with. If both the service and region are unkonwn and resolving + // the endpoint on partition list an UnknownEndpointError error will be returned. + // + // If resolving and endpoint on a partition specific resolver that partition's + // domain name pattern will be used with the service endpoint ID. If both + // region and service do not exist when resolving an endpoint on a specific + // partition the partition's domain pattern will be used to combine the + // endpoint and region together. + // + // This option is ignored if StrictMatching is enabled. + ResolveUnknownService bool +} + +// Set combines all of the option functions together. +func (o *Options) Set(optFns ...func(*Options)) { + for _, fn := range optFns { + fn(o) + } +} + +// DisableSSLOption sets the DisableSSL options. Can be used as a functional +// option when resolving endpoints. +func DisableSSLOption(o *Options) { + o.DisableSSL = true +} + +// UseDualStackOption sets the UseDualStack option. Can be used as a functional +// option when resolving endpoints. +func UseDualStackOption(o *Options) { + o.UseDualStack = true +} + +// StrictMatchingOption sets the StrictMatching option. Can be used as a functional +// option when resolving endpoints. +func StrictMatchingOption(o *Options) { + o.StrictMatching = true +} + +// ResolveUnknownServiceOption sets the ResolveUnknownService option. Can be used +// as a functional option when resolving endpoints. +func ResolveUnknownServiceOption(o *Options) { + o.ResolveUnknownService = true +} + +// A Resolver provides the interface for functionality to resolve endpoints. +// The build in Partition and DefaultResolver return value satisfy this interface. +type Resolver interface { + EndpointFor(service, region string, opts ...func(*Options)) (ResolvedEndpoint, error) +} + +// ResolverFunc is a helper utility that wraps a function so it satisfies the +// Resolver interface. This is useful when you want to add additional endpoint +// resolving logic, or stub out specific endpoints with custom values. +type ResolverFunc func(service, region string, opts ...func(*Options)) (ResolvedEndpoint, error) + +// EndpointFor wraps the ResolverFunc function to satisfy the Resolver interface. +func (fn ResolverFunc) EndpointFor(service, region string, opts ...func(*Options)) (ResolvedEndpoint, error) { + return fn(service, region, opts...) +} + +var schemeRE = regexp.MustCompile("^([^:]+)://") + +// AddScheme adds the HTTP or HTTPS schemes to a endpoint URL if there is no +// scheme. If disableSSL is true HTTP will set HTTP instead of the default HTTPS. +// +// If disableSSL is set, it will only set the URL's scheme if the URL does not +// contain a scheme. +func AddScheme(endpoint string, disableSSL bool) string { + if !schemeRE.MatchString(endpoint) { + scheme := "https" + if disableSSL { + scheme = "http" + } + endpoint = fmt.Sprintf("%s://%s", scheme, endpoint) + } + + return endpoint +} + +// EnumPartitions a provides a way to retrieve the underlying partitions that +// make up the SDK's default Resolver, or any resolver decoded from a model +// file. +// +// Use this interface with DefaultResolver and DecodeModels to get the list of +// Partitions. +type EnumPartitions interface { + Partitions() []Partition +} + +// A Partition provides the ability to enumerate the partition's regions +// and services. +type Partition struct { + id string + p *partition +} + +// ID returns the identifier of the partition. +func (p *Partition) ID() string { return p.id } + +// EndpointFor attempts to resolve the endpoint based on service and region. +// See Options for information on configuring how the endpoint is resolved. +// +// If the service cannot be found in the metadata the UnknownServiceError +// error will be returned. This validation will occur regardless if +// StrictMatching is enabled. To enable resolving unknown services set the +// "ResolveUnknownService" option to true. When StrictMatching is disabled +// this option allows the partition resolver to resolve a endpoint based on +// the service endpoint ID provided. +// +// When resolving endpoints you can choose to enable StrictMatching. This will +// require the provided service and region to be known by the partition. +// If the endpoint cannot be strictly resolved an error will be returned. This +// mode is useful to ensure the endpoint resolved is valid. Without +// StrictMatching enabled the endpoint returned my look valid but may not work. +// StrictMatching requires the SDK to be updated if you want to take advantage +// of new regions and services expansions. +// +// Errors that can be returned. +// * UnknownServiceError +// * UnknownEndpointError +func (p *Partition) EndpointFor(service, region string, opts ...func(*Options)) (ResolvedEndpoint, error) { + return p.p.EndpointFor(service, region, opts...) +} + +// Regions returns a map of Regions indexed by their ID. This is useful for +// enumerating over the regions in a partition. +func (p *Partition) Regions() map[string]Region { + rs := map[string]Region{} + for id := range p.p.Regions { + rs[id] = Region{ + id: id, + p: p.p, + } + } + + return rs +} + +// Services returns a map of Service indexed by their ID. This is useful for +// enumerating over the services in a partition. +func (p *Partition) Services() map[string]Service { + ss := map[string]Service{} + for id := range p.p.Services { + ss[id] = Service{ + id: id, + p: p.p, + } + } + + return ss +} + +// A Region provides information about a region, and ability to resolve an +// endpoint from the context of a region, given a service. +type Region struct { + id, desc string + p *partition +} + +// ID returns the region's identifier. +func (r *Region) ID() string { return r.id } + +// ResolveEndpoint resolves an endpoint from the context of the region given +// a service. See Partition.EndpointFor for usage and errors that can be returned. +func (r *Region) ResolveEndpoint(service string, opts ...func(*Options)) (ResolvedEndpoint, error) { + return r.p.EndpointFor(service, r.id, opts...) +} + +// Services returns a list of all services that are known to be in this region. +func (r *Region) Services() map[string]Service { + ss := map[string]Service{} + for id, s := range r.p.Services { + if _, ok := s.Endpoints[r.id]; ok { + ss[id] = Service{ + id: id, + p: r.p, + } + } + } + + return ss +} + +// A Service provides information about a service, and ability to resolve an +// endpoint from the context of a service, given a region. +type Service struct { + id string + p *partition +} + +// ID returns the identifier for the service. +func (s *Service) ID() string { return s.id } + +// ResolveEndpoint resolves an endpoint from the context of a service given +// a region. See Partition.EndpointFor for usage and errors that can be returned. +func (s *Service) ResolveEndpoint(region string, opts ...func(*Options)) (ResolvedEndpoint, error) { + return s.p.EndpointFor(s.id, region, opts...) +} + +// Endpoints returns a map of Endpoints indexed by their ID for all known +// endpoints for a service. +func (s *Service) Endpoints() map[string]Endpoint { + es := map[string]Endpoint{} + for id := range s.p.Services[s.id].Endpoints { + es[id] = Endpoint{ + id: id, + serviceID: s.id, + p: s.p, + } + } + + return es +} + +// A Endpoint provides information about endpoints, and provides the ability +// to resolve that endpoint for the service, and the region the endpoint +// represents. +type Endpoint struct { + id string + serviceID string + p *partition +} + +// ID returns the identifier for an endpoint. +func (e *Endpoint) ID() string { return e.id } + +// ServiceID returns the identifier the endpoint belongs to. +func (e *Endpoint) ServiceID() string { return e.serviceID } + +// ResolveEndpoint resolves an endpoint from the context of a service and +// region the endpoint represents. See Partition.EndpointFor for usage and +// errors that can be returned. +func (e *Endpoint) ResolveEndpoint(opts ...func(*Options)) (ResolvedEndpoint, error) { + return e.p.EndpointFor(e.serviceID, e.id, opts...) +} + +// A ResolvedEndpoint is an endpoint that has been resolved based on a partition +// service, and region. +type ResolvedEndpoint struct { + // The endpoint URL + URL string + + // The region that should be used for signing requests. + SigningRegion string + + // The service name that should be used for signing requests. + SigningName string + + // The signing method that should be used for signing requests. + SigningMethod string +} + +// So that the Error interface type can be included as an anonymous field +// in the requestError struct and not conflict with the error.Error() method. +type awsError awserr.Error + +// A EndpointNotFoundError is returned when in StrictMatching mode, and the +// endpoint for the service and region cannot be found in any of the partitions. +type EndpointNotFoundError struct { + awsError + Partition string + Service string + Region string +} + +//// NewEndpointNotFoundError builds and returns NewEndpointNotFoundError. +//func NewEndpointNotFoundError(p, s, r string) EndpointNotFoundError { +// return EndpointNotFoundError{ +// awsError: awserr.New("EndpointNotFoundError", "unable to find endpoint", nil), +// Partition: p, +// Service: s, +// Region: r, +// } +//} +// +//// Error returns string representation of the error. +//func (e EndpointNotFoundError) Error() string { +// extra := fmt.Sprintf("partition: %q, service: %q, region: %q", +// e.Partition, e.Service, e.Region) +// return awserr.SprintError(e.Code(), e.Message(), extra, e.OrigErr()) +//} +// +//// String returns the string representation of the error. +//func (e EndpointNotFoundError) String() string { +// return e.Error() +//} + +// A UnknownServiceError is returned when the service does not resolve to an +// endpoint. Includes a list of all known services for the partition. Returned +// when a partition does not support the service. +type UnknownServiceError struct { + awsError + Partition string + Service string + Known []string +} + +// NewUnknownServiceError builds and returns UnknownServiceError. +func NewUnknownServiceError(p, s string, known []string) UnknownServiceError { + return UnknownServiceError{ + awsError: awserr.New("UnknownServiceError", + "could not resolve endpoint for unknown service", nil), + Partition: p, + Service: s, + Known: known, + } +} + +// String returns the string representation of the error. +func (e UnknownServiceError) Error() string { + extra := fmt.Sprintf("partition: %q, service: %q", + e.Partition, e.Service) + if len(e.Known) > 0 { + extra += fmt.Sprintf(", known: %v", e.Known) + } + return awserr.SprintError(e.Code(), e.Message(), extra, e.OrigErr()) +} + +// String returns the string representation of the error. +func (e UnknownServiceError) String() string { + return e.Error() +} + +// A UnknownEndpointError is returned when in StrictMatching mode and the +// service is valid, but the region does not resolve to an endpoint. Includes +// a list of all known endpoints for the service. +type UnknownEndpointError struct { + awsError + Partition string + Service string + Region string + Known []string +} + +// NewUnknownEndpointError builds and returns UnknownEndpointError. +func NewUnknownEndpointError(p, s, r string, known []string) UnknownEndpointError { + return UnknownEndpointError{ + awsError: awserr.New("UnknownEndpointError", + "could not resolve endpoint", nil), + Partition: p, + Service: s, + Region: r, + Known: known, + } +} + +// String returns the string representation of the error. +func (e UnknownEndpointError) Error() string { + extra := fmt.Sprintf("partition: %q, service: %q, region: %q", + e.Partition, e.Service, e.Region) + if len(e.Known) > 0 { + extra += fmt.Sprintf(", known: %v", e.Known) + } + return awserr.SprintError(e.Code(), e.Message(), extra, e.OrigErr()) +} + +// String returns the string representation of the error. +func (e UnknownEndpointError) String() string { + return e.Error() +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/endpoints_test.go b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/endpoints_test.go new file mode 100644 index 000000000..8877d7bd4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/endpoints_test.go @@ -0,0 +1,244 @@ +package endpoints + +import "testing" + +func TestEnumDefaultPartitions(t *testing.T) { + resolver := DefaultResolver() + enum, ok := resolver.(EnumPartitions) + + if ok != true { + t.Fatalf("resolver must satisfy EnumPartition interface") + } + + ps := enum.Partitions() + + if a, e := len(ps), len(defaultPartitions); a != e { + t.Errorf("expected %d partitions, got %d", e, a) + } +} + +func TestEnumDefaultRegions(t *testing.T) { + expectPart := defaultPartitions[0] + partEnum := defaultPartitions[0].Partition() + + regEnum := partEnum.Regions() + + if a, e := len(regEnum), len(expectPart.Regions); a != e { + t.Errorf("expected %d regions, got %d", e, a) + } +} + +func TestEnumPartitionServices(t *testing.T) { + expectPart := testPartitions[0] + partEnum := testPartitions[0].Partition() + + if a, e := partEnum.ID(), "part-id"; a != e { + t.Errorf("expect %q partition ID, got %q", e, a) + } + + svcEnum := partEnum.Services() + + if a, e := len(svcEnum), len(expectPart.Services); a != e { + t.Errorf("expected %d regions, got %d", e, a) + } +} + +func TestEnumRegionServices(t *testing.T) { + p := testPartitions[0].Partition() + + rs := p.Regions() + + if a, e := len(rs), 2; a != e { + t.Errorf("expect %d regions got %d", e, a) + } + + if _, ok := rs["us-east-1"]; !ok { + t.Errorf("expect us-east-1 region to be found, was not") + } + if _, ok := rs["us-west-2"]; !ok { + t.Errorf("expect us-west-2 region to be found, was not") + } + + r := rs["us-east-1"] + + if a, e := r.ID(), "us-east-1"; a != e { + t.Errorf("expect %q region ID, got %q", e, a) + } + + ss := r.Services() + if a, e := len(ss), 1; a != e { + t.Errorf("expect %d services for us-east-1, got %d", e, a) + } + + if _, ok := ss["service1"]; !ok { + t.Errorf("expect service1 service to be found, was not") + } + + resolved, err := r.ResolveEndpoint("service1") + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + if a, e := resolved.URL, "https://service1.us-east-1.amazonaws.com"; a != e { + t.Errorf("expect %q resolved URL, got %q", e, a) + } +} + +func TestEnumServicesEndpoints(t *testing.T) { + p := testPartitions[0].Partition() + + ss := p.Services() + + if a, e := len(ss), 5; a != e { + t.Errorf("expect %d regions got %d", e, a) + } + + if _, ok := ss["service1"]; !ok { + t.Errorf("expect service1 region to be found, was not") + } + if _, ok := ss["service2"]; !ok { + t.Errorf("expect service2 region to be found, was not") + } + + s := ss["service1"] + if a, e := s.ID(), "service1"; a != e { + t.Errorf("expect %q service ID, got %q", e, a) + } + + resolved, err := s.ResolveEndpoint("us-west-2") + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + if a, e := resolved.URL, "https://service1.us-west-2.amazonaws.com"; a != e { + t.Errorf("expect %q resolved URL, got %q", e, a) + } +} + +func TestEnumEndpoints(t *testing.T) { + p := testPartitions[0].Partition() + s := p.Services()["service1"] + + es := s.Endpoints() + if a, e := len(es), 2; a != e { + t.Errorf("expect %d endpoints for service2, got %d", e, a) + } + if _, ok := es["us-east-1"]; !ok { + t.Errorf("expect us-east-1 to be found, was not") + } + + e := es["us-east-1"] + if a, e := e.ID(), "us-east-1"; a != e { + t.Errorf("expect %q endpoint ID, got %q", e, a) + } + if a, e := e.ServiceID(), "service1"; a != e { + t.Errorf("expect %q service ID, got %q", e, a) + } + + resolved, err := e.ResolveEndpoint() + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + if a, e := resolved.URL, "https://service1.us-east-1.amazonaws.com"; a != e { + t.Errorf("expect %q resolved URL, got %q", e, a) + } +} + +func TestResolveEndpointForPartition(t *testing.T) { + enum := testPartitions.Partitions()[0] + + expected, err := testPartitions.EndpointFor("service1", "us-east-1") + + actual, err := enum.EndpointFor("service1", "us-east-1") + if err != nil { + t.Fatalf("unexpected error, %v", err) + } + + if expected != actual { + t.Errorf("expect resolved endpoint to be %v, but got %v", expected, actual) + } +} + +func TestAddScheme(t *testing.T) { + cases := []struct { + In string + Expect string + DisableSSL bool + }{ + { + In: "https://example.com", + Expect: "https://example.com", + }, + { + In: "example.com", + Expect: "https://example.com", + }, + { + In: "http://example.com", + Expect: "http://example.com", + }, + { + In: "example.com", + Expect: "http://example.com", + DisableSSL: true, + }, + { + In: "https://example.com", + Expect: "https://example.com", + DisableSSL: true, + }, + } + + for i, c := range cases { + actual := AddScheme(c.In, c.DisableSSL) + if actual != c.Expect { + t.Errorf("%d, expect URL to be %q, got %q", i, c.Expect, actual) + } + } +} + +func TestResolverFunc(t *testing.T) { + var resolver Resolver + + resolver = ResolverFunc(func(s, r string, opts ...func(*Options)) (ResolvedEndpoint, error) { + return ResolvedEndpoint{ + URL: "https://service.region.dnssuffix.com", + SigningRegion: "region", + SigningName: "service", + }, nil + }) + + resolved, err := resolver.EndpointFor("service", "region", func(o *Options) { + o.DisableSSL = true + }) + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + if a, e := resolved.URL, "https://service.region.dnssuffix.com"; a != e { + t.Errorf("expect %q endpoint URL, got %q", e, a) + } + + if a, e := resolved.SigningRegion, "region"; a != e { + t.Errorf("expect %q region, got %q", e, a) + } + if a, e := resolved.SigningName, "service"; a != e { + t.Errorf("expect %q signing name, got %q", e, a) + } +} + +func TestOptionsSet(t *testing.T) { + var actual Options + actual.Set(DisableSSLOption, UseDualStackOption, StrictMatchingOption) + + expect := Options{ + DisableSSL: true, + UseDualStack: true, + StrictMatching: true, + } + + if actual != expect { + t.Errorf("expect %v options got %v", expect, actual) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/example_test.go b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/example_test.go new file mode 100644 index 000000000..007fed2f9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/example_test.go @@ -0,0 +1,66 @@ +package endpoints_test + +import ( + "fmt" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/endpoints" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/s3" + "github.com/aws/aws-sdk-go/service/sqs" +) + +func ExampleEnumPartitions() { + resolver := endpoints.DefaultResolver() + partitions := resolver.(endpoints.EnumPartitions).Partitions() + + for _, p := range partitions { + fmt.Println("Regions for", p.ID()) + for id := range p.Regions() { + fmt.Println("*", id) + } + + fmt.Println("Services for", p.ID()) + for id := range p.Services() { + fmt.Println("*", id) + } + } +} + +func ExampleResolverFunc() { + myCustomResolver := func(service, region string, optFns ...func(*endpoints.Options)) (endpoints.ResolvedEndpoint, error) { + if service == endpoints.S3ServiceID { + return endpoints.ResolvedEndpoint{ + URL: "s3.custom.endpoint.com", + SigningRegion: "custom-signing-region", + }, nil + } + + return endpoints.DefaultResolver().EndpointFor(service, region, optFns...) + } + + sess := session.Must(session.NewSession(&aws.Config{ + Region: aws.String("us-west-2"), + EndpointResolver: endpoints.ResolverFunc(myCustomResolver), + })) + + // Create the S3 service client with the shared session. This will + // automatically use the S3 custom endpoint configured in the custom + // endpoint resolver wrapping the default endpoint resolver. + s3Svc := s3.New(sess) + // Operation calls will be made to the custom endpoint. + s3Svc.GetObject(&s3.GetObjectInput{ + Bucket: aws.String("myBucket"), + Key: aws.String("myObjectKey"), + }) + + // Create the SQS service client with the shared session. This will + // fallback to the default endpoint resolver because the customization + // passes any non S3 service endpoint resolve to the default resolver. + sqsSvc := sqs.New(sess) + // Operation calls will be made to the default endpoint for SQS for the + // region configured. + sqsSvc.ReceiveMessage(&sqs.ReceiveMessageInput{ + QueueUrl: aws.String("my-queue-url"), + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/v3model.go b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/v3model.go new file mode 100644 index 000000000..13d968a24 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/v3model.go @@ -0,0 +1,303 @@ +package endpoints + +import ( + "fmt" + "regexp" + "strconv" + "strings" +) + +type partitions []partition + +func (ps partitions) EndpointFor(service, region string, opts ...func(*Options)) (ResolvedEndpoint, error) { + var opt Options + opt.Set(opts...) + + for i := 0; i < len(ps); i++ { + if !ps[i].canResolveEndpoint(service, region, opt.StrictMatching) { + continue + } + + return ps[i].EndpointFor(service, region, opts...) + } + + // If loose matching fallback to first partition format to use + // when resolving the endpoint. + if !opt.StrictMatching && len(ps) > 0 { + return ps[0].EndpointFor(service, region, opts...) + } + + return ResolvedEndpoint{}, NewUnknownEndpointError("all partitions", service, region, []string{}) +} + +// Partitions satisfies the EnumPartitions interface and returns a list +// of Partitions representing each partition represented in the SDK's +// endpoints model. +func (ps partitions) Partitions() []Partition { + parts := make([]Partition, 0, len(ps)) + for i := 0; i < len(ps); i++ { + parts = append(parts, ps[i].Partition()) + } + + return parts +} + +type partition struct { + ID string `json:"partition"` + Name string `json:"partitionName"` + DNSSuffix string `json:"dnsSuffix"` + RegionRegex regionRegex `json:"regionRegex"` + Defaults endpoint `json:"defaults"` + Regions regions `json:"regions"` + Services services `json:"services"` +} + +func (p partition) Partition() Partition { + return Partition{ + id: p.ID, + p: &p, + } +} + +func (p partition) canResolveEndpoint(service, region string, strictMatch bool) bool { + s, hasService := p.Services[service] + _, hasEndpoint := s.Endpoints[region] + + if hasEndpoint && hasService { + return true + } + + if strictMatch { + return false + } + + return p.RegionRegex.MatchString(region) +} + +func (p partition) EndpointFor(service, region string, opts ...func(*Options)) (resolved ResolvedEndpoint, err error) { + var opt Options + opt.Set(opts...) + + s, hasService := p.Services[service] + if !(hasService || opt.ResolveUnknownService) { + // Only return error if the resolver will not fallback to creating + // endpoint based on service endpoint ID passed in. + return resolved, NewUnknownServiceError(p.ID, service, serviceList(p.Services)) + } + + e, hasEndpoint := s.endpointForRegion(region) + if !hasEndpoint && opt.StrictMatching { + return resolved, NewUnknownEndpointError(p.ID, service, region, endpointList(s.Endpoints)) + } + + defs := []endpoint{p.Defaults, s.Defaults} + return e.resolve(service, region, p.DNSSuffix, defs, opt), nil +} + +func serviceList(ss services) []string { + list := make([]string, 0, len(ss)) + for k := range ss { + list = append(list, k) + } + return list +} +func endpointList(es endpoints) []string { + list := make([]string, 0, len(es)) + for k := range es { + list = append(list, k) + } + return list +} + +type regionRegex struct { + *regexp.Regexp +} + +func (rr *regionRegex) UnmarshalJSON(b []byte) (err error) { + // Strip leading and trailing quotes + regex, err := strconv.Unquote(string(b)) + if err != nil { + return fmt.Errorf("unable to strip quotes from regex, %v", err) + } + + rr.Regexp, err = regexp.Compile(regex) + if err != nil { + return fmt.Errorf("unable to unmarshal region regex, %v", err) + } + return nil +} + +type regions map[string]region + +type region struct { + Description string `json:"description"` +} + +type services map[string]service + +type service struct { + PartitionEndpoint string `json:"partitionEndpoint"` + IsRegionalized boxedBool `json:"isRegionalized,omitempty"` + Defaults endpoint `json:"defaults"` + Endpoints endpoints `json:"endpoints"` +} + +func (s *service) endpointForRegion(region string) (endpoint, bool) { + if s.IsRegionalized == boxedFalse { + return s.Endpoints[s.PartitionEndpoint], region == s.PartitionEndpoint + } + + if e, ok := s.Endpoints[region]; ok { + return e, true + } + + // Unable to find any matching endpoint, return + // blank that will be used for generic endpoint creation. + return endpoint{}, false +} + +type endpoints map[string]endpoint + +type endpoint struct { + Hostname string `json:"hostname"` + Protocols []string `json:"protocols"` + CredentialScope credentialScope `json:"credentialScope"` + + // Custom fields not modeled + HasDualStack boxedBool `json:"-"` + DualStackHostname string `json:"-"` + + // Signature Version not used + SignatureVersions []string `json:"signatureVersions"` + + // SSLCommonName not used. + SSLCommonName string `json:"sslCommonName"` +} + +const ( + defaultProtocol = "https" + defaultSigner = "v4" +) + +var ( + protocolPriority = []string{"https", "http"} + signerPriority = []string{"v4", "v2"} +) + +func getByPriority(s []string, p []string, def string) string { + if len(s) == 0 { + return def + } + + for i := 0; i < len(p); i++ { + for j := 0; j < len(s); j++ { + if s[j] == p[i] { + return s[j] + } + } + } + + return s[0] +} + +func (e endpoint) resolve(service, region, dnsSuffix string, defs []endpoint, opts Options) ResolvedEndpoint { + var merged endpoint + for _, def := range defs { + merged.mergeIn(def) + } + merged.mergeIn(e) + e = merged + + hostname := e.Hostname + + // Offset the hostname for dualstack if enabled + if opts.UseDualStack && e.HasDualStack == boxedTrue { + hostname = e.DualStackHostname + } + + u := strings.Replace(hostname, "{service}", service, 1) + u = strings.Replace(u, "{region}", region, 1) + u = strings.Replace(u, "{dnsSuffix}", dnsSuffix, 1) + + scheme := getEndpointScheme(e.Protocols, opts.DisableSSL) + u = fmt.Sprintf("%s://%s", scheme, u) + + signingRegion := e.CredentialScope.Region + if len(signingRegion) == 0 { + signingRegion = region + } + signingName := e.CredentialScope.Service + if len(signingName) == 0 { + signingName = service + } + + return ResolvedEndpoint{ + URL: u, + SigningRegion: signingRegion, + SigningName: signingName, + SigningMethod: getByPriority(e.SignatureVersions, signerPriority, defaultSigner), + } +} + +func getEndpointScheme(protocols []string, disableSSL bool) string { + if disableSSL { + return "http" + } + + return getByPriority(protocols, protocolPriority, defaultProtocol) +} + +func (e *endpoint) mergeIn(other endpoint) { + if len(other.Hostname) > 0 { + e.Hostname = other.Hostname + } + if len(other.Protocols) > 0 { + e.Protocols = other.Protocols + } + if len(other.SignatureVersions) > 0 { + e.SignatureVersions = other.SignatureVersions + } + if len(other.CredentialScope.Region) > 0 { + e.CredentialScope.Region = other.CredentialScope.Region + } + if len(other.CredentialScope.Service) > 0 { + e.CredentialScope.Service = other.CredentialScope.Service + } + if len(other.SSLCommonName) > 0 { + e.SSLCommonName = other.SSLCommonName + } + if other.HasDualStack != boxedBoolUnset { + e.HasDualStack = other.HasDualStack + } + if len(other.DualStackHostname) > 0 { + e.DualStackHostname = other.DualStackHostname + } +} + +type credentialScope struct { + Region string `json:"region"` + Service string `json:"service"` +} + +type boxedBool int + +func (b *boxedBool) UnmarshalJSON(buf []byte) error { + v, err := strconv.ParseBool(string(buf)) + if err != nil { + return err + } + + if v { + *b = boxedTrue + } else { + *b = boxedFalse + } + + return nil +} + +const ( + boxedBoolUnset boxedBool = iota + boxedFalse + boxedTrue +) diff --git a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/v3model_codegen.go b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/v3model_codegen.go new file mode 100644 index 000000000..1e7369dbf --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/v3model_codegen.go @@ -0,0 +1,334 @@ +// +build codegen + +package endpoints + +import ( + "fmt" + "io" + "reflect" + "strings" + "text/template" + "unicode" +) + +// A CodeGenOptions are the options for code generating the endpoints into +// Go code from the endpoints model definition. +type CodeGenOptions struct { + // Options for how the model will be decoded. + DecodeModelOptions DecodeModelOptions +} + +// Set combines all of the option functions together +func (d *CodeGenOptions) Set(optFns ...func(*CodeGenOptions)) { + for _, fn := range optFns { + fn(d) + } +} + +// CodeGenModel given a endpoints model file will decode it and attempt to +// generate Go code from the model definition. Error will be returned if +// the code is unable to be generated, or decoded. +func CodeGenModel(modelFile io.Reader, outFile io.Writer, optFns ...func(*CodeGenOptions)) error { + var opts CodeGenOptions + opts.Set(optFns...) + + resolver, err := DecodeModel(modelFile, func(d *DecodeModelOptions) { + *d = opts.DecodeModelOptions + }) + if err != nil { + return err + } + + tmpl := template.Must(template.New("tmpl").Funcs(funcMap).Parse(v3Tmpl)) + if err := tmpl.ExecuteTemplate(outFile, "defaults", resolver); err != nil { + return fmt.Errorf("failed to execute template, %v", err) + } + + return nil +} + +func toSymbol(v string) string { + out := []rune{} + for _, c := range strings.Title(v) { + if !(unicode.IsNumber(c) || unicode.IsLetter(c)) { + continue + } + + out = append(out, c) + } + + return string(out) +} + +func quoteString(v string) string { + return fmt.Sprintf("%q", v) +} + +func regionConstName(p, r string) string { + return toSymbol(p) + toSymbol(r) +} + +func partitionGetter(id string) string { + return fmt.Sprintf("%sPartition", toSymbol(id)) +} + +func partitionVarName(id string) string { + return fmt.Sprintf("%sPartition", strings.ToLower(toSymbol(id))) +} + +func listPartitionNames(ps partitions) string { + names := []string{} + switch len(ps) { + case 1: + return ps[0].Name + case 2: + return fmt.Sprintf("%s and %s", ps[0].Name, ps[1].Name) + default: + for i, p := range ps { + if i == len(ps)-1 { + names = append(names, "and "+p.Name) + } else { + names = append(names, p.Name) + } + } + return strings.Join(names, ", ") + } +} + +func boxedBoolIfSet(msg string, v boxedBool) string { + switch v { + case boxedTrue: + return fmt.Sprintf(msg, "boxedTrue") + case boxedFalse: + return fmt.Sprintf(msg, "boxedFalse") + default: + return "" + } +} + +func stringIfSet(msg, v string) string { + if len(v) == 0 { + return "" + } + + return fmt.Sprintf(msg, v) +} + +func stringSliceIfSet(msg string, vs []string) string { + if len(vs) == 0 { + return "" + } + + names := []string{} + for _, v := range vs { + names = append(names, `"`+v+`"`) + } + + return fmt.Sprintf(msg, strings.Join(names, ",")) +} + +func endpointIsSet(v endpoint) bool { + return !reflect.DeepEqual(v, endpoint{}) +} + +func serviceSet(ps partitions) map[string]struct{} { + set := map[string]struct{}{} + for _, p := range ps { + for id := range p.Services { + set[id] = struct{}{} + } + } + + return set +} + +var funcMap = template.FuncMap{ + "ToSymbol": toSymbol, + "QuoteString": quoteString, + "RegionConst": regionConstName, + "PartitionGetter": partitionGetter, + "PartitionVarName": partitionVarName, + "ListPartitionNames": listPartitionNames, + "BoxedBoolIfSet": boxedBoolIfSet, + "StringIfSet": stringIfSet, + "StringSliceIfSet": stringSliceIfSet, + "EndpointIsSet": endpointIsSet, + "ServicesSet": serviceSet, +} + +const v3Tmpl = ` +{{ define "defaults" -}} +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package endpoints + +import ( + "regexp" +) + + {{ template "partition consts" . }} + + {{ range $_, $partition := . }} + {{ template "partition region consts" $partition }} + {{ end }} + + {{ template "service consts" . }} + + {{ template "endpoint resolvers" . }} +{{- end }} + +{{ define "partition consts" }} + // Partition identifiers + const ( + {{ range $_, $p := . -}} + {{ ToSymbol $p.ID }}PartitionID = {{ QuoteString $p.ID }} // {{ $p.Name }} partition. + {{ end -}} + ) +{{- end }} + +{{ define "partition region consts" }} + // {{ .Name }} partition's regions. + const ( + {{ range $id, $region := .Regions -}} + {{ ToSymbol $id }}RegionID = {{ QuoteString $id }} // {{ $region.Description }}. + {{ end -}} + ) +{{- end }} + +{{ define "service consts" }} + // Service identifiers + const ( + {{ $serviceSet := ServicesSet . -}} + {{ range $id, $_ := $serviceSet -}} + {{ ToSymbol $id }}ServiceID = {{ QuoteString $id }} // {{ ToSymbol $id }}. + {{ end -}} + ) +{{- end }} + +{{ define "endpoint resolvers" }} + // DefaultResolver returns an Endpoint resolver that will be able + // to resolve endpoints for: {{ ListPartitionNames . }}. + // + // Casting the return value of this func to a EnumPartitions will + // allow you to get a list of the partitions in the order the endpoints + // will be resolved in. + // + // resolver := endpoints.DefaultResolver() + // partitions := resolver.(endpoints.EnumPartitions).Partitions() + // for _, p := range partitions { + // // ... inspect partitions + // } + func DefaultResolver() Resolver { + return defaultPartitions + } + + var defaultPartitions = partitions{ + {{ range $_, $partition := . -}} + {{ PartitionVarName $partition.ID }}, + {{ end }} + } + + {{ range $_, $partition := . -}} + {{ $name := PartitionGetter $partition.ID -}} + // {{ $name }} returns the Resolver for {{ $partition.Name }}. + func {{ $name }}() Partition { + return {{ PartitionVarName $partition.ID }}.Partition() + } + var {{ PartitionVarName $partition.ID }} = {{ template "gocode Partition" $partition }} + {{ end }} +{{ end }} + +{{ define "default partitions" }} + func DefaultPartitions() []Partition { + return []partition{ + {{ range $_, $partition := . -}} + // {{ ToSymbol $partition.ID}}Partition(), + {{ end }} + } + } +{{ end }} + +{{ define "gocode Partition" -}} +partition{ + {{ StringIfSet "ID: %q,\n" .ID -}} + {{ StringIfSet "Name: %q,\n" .Name -}} + {{ StringIfSet "DNSSuffix: %q,\n" .DNSSuffix -}} + RegionRegex: {{ template "gocode RegionRegex" .RegionRegex }}, + {{ if EndpointIsSet .Defaults -}} + Defaults: {{ template "gocode Endpoint" .Defaults }}, + {{- end }} + Regions: {{ template "gocode Regions" .Regions }}, + Services: {{ template "gocode Services" .Services }}, +} +{{- end }} + +{{ define "gocode RegionRegex" -}} +regionRegex{ + Regexp: func() *regexp.Regexp{ + reg, _ := regexp.Compile({{ QuoteString .Regexp.String }}) + return reg + }(), +} +{{- end }} + +{{ define "gocode Regions" -}} +regions{ + {{ range $id, $region := . -}} + "{{ $id }}": {{ template "gocode Region" $region }}, + {{ end -}} +} +{{- end }} + +{{ define "gocode Region" -}} +region{ + {{ StringIfSet "Description: %q,\n" .Description -}} +} +{{- end }} + +{{ define "gocode Services" -}} +services{ + {{ range $id, $service := . -}} + "{{ $id }}": {{ template "gocode Service" $service }}, + {{ end }} +} +{{- end }} + +{{ define "gocode Service" -}} +service{ + {{ StringIfSet "PartitionEndpoint: %q,\n" .PartitionEndpoint -}} + {{ BoxedBoolIfSet "IsRegionalized: %s,\n" .IsRegionalized -}} + {{ if EndpointIsSet .Defaults -}} + Defaults: {{ template "gocode Endpoint" .Defaults -}}, + {{- end }} + {{ if .Endpoints -}} + Endpoints: {{ template "gocode Endpoints" .Endpoints }}, + {{- end }} +} +{{- end }} + +{{ define "gocode Endpoints" -}} +endpoints{ + {{ range $id, $endpoint := . -}} + "{{ $id }}": {{ template "gocode Endpoint" $endpoint }}, + {{ end }} +} +{{- end }} + +{{ define "gocode Endpoint" -}} +endpoint{ + {{ StringIfSet "Hostname: %q,\n" .Hostname -}} + {{ StringIfSet "SSLCommonName: %q,\n" .SSLCommonName -}} + {{ StringSliceIfSet "Protocols: []string{%s},\n" .Protocols -}} + {{ StringSliceIfSet "SignatureVersions: []string{%s},\n" .SignatureVersions -}} + {{ if or .CredentialScope.Region .CredentialScope.Service -}} + CredentialScope: credentialScope{ + {{ StringIfSet "Region: %q,\n" .CredentialScope.Region -}} + {{ StringIfSet "Service: %q,\n" .CredentialScope.Service -}} + }, + {{- end }} + {{ BoxedBoolIfSet "HasDualStack: %s,\n" .HasDualStack -}} + {{ StringIfSet "DualStackHostname: %q,\n" .DualStackHostname -}} + +} +{{- end }} +` diff --git a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/v3model_test.go b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/v3model_test.go new file mode 100644 index 000000000..1385cb427 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/v3model_test.go @@ -0,0 +1,354 @@ +package endpoints + +import ( + "encoding/json" + "regexp" + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestUnmarshalRegionRegex(t *testing.T) { + var input = []byte(` +{ + "regionRegex": "^(us|eu|ap|sa|ca)\\-\\w+\\-\\d+$" +}`) + + p := partition{} + err := json.Unmarshal(input, &p) + assert.NoError(t, err) + + expectRegexp, err := regexp.Compile(`^(us|eu|ap|sa|ca)\-\w+\-\d+$`) + assert.NoError(t, err) + + assert.Equal(t, expectRegexp.String(), p.RegionRegex.Regexp.String()) +} + +func TestUnmarshalRegion(t *testing.T) { + var input = []byte(` +{ + "aws-global": { + "description": "AWS partition-global endpoint" + }, + "us-east-1": { + "description": "US East (N. Virginia)" + } +}`) + + rs := regions{} + err := json.Unmarshal(input, &rs) + assert.NoError(t, err) + + assert.Len(t, rs, 2) + r, ok := rs["aws-global"] + assert.True(t, ok) + assert.Equal(t, "AWS partition-global endpoint", r.Description) + + r, ok = rs["us-east-1"] + assert.True(t, ok) + assert.Equal(t, "US East (N. Virginia)", r.Description) +} + +func TestUnmarshalServices(t *testing.T) { + var input = []byte(` +{ + "acm": { + "endpoints": { + "us-east-1": {} + } + }, + "apigateway": { + "isRegionalized": true, + "endpoints": { + "us-east-1": {}, + "us-west-2": {} + } + }, + "notRegionalized": { + "isRegionalized": false, + "endpoints": { + "us-east-1": {}, + "us-west-2": {} + } + } +}`) + + ss := services{} + err := json.Unmarshal(input, &ss) + assert.NoError(t, err) + + assert.Len(t, ss, 3) + s, ok := ss["acm"] + assert.True(t, ok) + assert.Len(t, s.Endpoints, 1) + assert.Equal(t, boxedBoolUnset, s.IsRegionalized) + + s, ok = ss["apigateway"] + assert.True(t, ok) + assert.Len(t, s.Endpoints, 2) + assert.Equal(t, boxedTrue, s.IsRegionalized) + + s, ok = ss["notRegionalized"] + assert.True(t, ok) + assert.Len(t, s.Endpoints, 2) + assert.Equal(t, boxedFalse, s.IsRegionalized) +} + +func TestUnmarshalEndpoints(t *testing.T) { + var inputs = []byte(` +{ + "aws-global": { + "hostname": "cloudfront.amazonaws.com", + "protocols": [ + "http", + "https" + ], + "signatureVersions": [ "v4" ], + "credentialScope": { + "region": "us-east-1", + "service": "serviceName" + }, + "sslCommonName": "commonName" + }, + "us-east-1": {} +}`) + + es := endpoints{} + err := json.Unmarshal(inputs, &es) + assert.NoError(t, err) + + assert.Len(t, es, 2) + s, ok := es["aws-global"] + assert.True(t, ok) + assert.Equal(t, "cloudfront.amazonaws.com", s.Hostname) + assert.Equal(t, []string{"http", "https"}, s.Protocols) + assert.Equal(t, []string{"v4"}, s.SignatureVersions) + assert.Equal(t, credentialScope{"us-east-1", "serviceName"}, s.CredentialScope) + assert.Equal(t, "commonName", s.SSLCommonName) +} + +func TestEndpointResolve(t *testing.T) { + defs := []endpoint{ + { + Hostname: "{service}.{region}.{dnsSuffix}", + SignatureVersions: []string{"v2"}, + SSLCommonName: "sslCommonName", + }, + { + Hostname: "other-hostname", + Protocols: []string{"http"}, + CredentialScope: credentialScope{ + Region: "signing_region", + Service: "signing_service", + }, + }, + } + + e := endpoint{ + Hostname: "{service}.{region}.{dnsSuffix}", + Protocols: []string{"http", "https"}, + SignatureVersions: []string{"v4"}, + SSLCommonName: "new sslCommonName", + } + + resolved := e.resolve("service", "region", "dnsSuffix", + defs, Options{}, + ) + + assert.Equal(t, "https://service.region.dnsSuffix", resolved.URL) + assert.Equal(t, "signing_service", resolved.SigningName) + assert.Equal(t, "signing_region", resolved.SigningRegion) + assert.Equal(t, "v4", resolved.SigningMethod) +} + +func TestEndpointMergeIn(t *testing.T) { + expected := endpoint{ + Hostname: "other hostname", + Protocols: []string{"http"}, + SignatureVersions: []string{"v4"}, + SSLCommonName: "ssl common name", + CredentialScope: credentialScope{ + Region: "region", + Service: "service", + }, + } + + actual := endpoint{} + actual.mergeIn(endpoint{ + Hostname: "other hostname", + Protocols: []string{"http"}, + SignatureVersions: []string{"v4"}, + SSLCommonName: "ssl common name", + CredentialScope: credentialScope{ + Region: "region", + Service: "service", + }, + }) + + assert.Equal(t, expected, actual) +} + +var testPartitions = partitions{ + partition{ + ID: "part-id", + Name: "partitionName", + DNSSuffix: "amazonaws.com", + RegionRegex: regionRegex{ + Regexp: func() *regexp.Regexp { + reg, _ := regexp.Compile("^(us|eu|ap|sa|ca)\\-\\w+\\-\\d+$") + return reg + }(), + }, + Defaults: endpoint{ + Hostname: "{service}.{region}.{dnsSuffix}", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + Regions: regions{ + "us-east-1": region{ + Description: "region description", + }, + "us-west-2": region{}, + }, + Services: services{ + "s3": service{}, + "service1": service{ + Endpoints: endpoints{ + "us-east-1": {}, + "us-west-2": { + HasDualStack: boxedTrue, + DualStackHostname: "{service}.dualstack.{region}.{dnsSuffix}", + }, + }, + }, + "service2": service{}, + "httpService": service{ + Defaults: endpoint{ + Protocols: []string{"http"}, + }, + }, + "globalService": service{ + IsRegionalized: boxedFalse, + PartitionEndpoint: "aws-global", + Endpoints: endpoints{ + "aws-global": endpoint{ + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + Hostname: "globalService.amazonaws.com", + }, + }, + }, + }, + }, +} + +func TestResolveEndpoint(t *testing.T) { + resolved, err := testPartitions.EndpointFor("service2", "us-west-2") + + assert.NoError(t, err) + assert.Equal(t, "https://service2.us-west-2.amazonaws.com", resolved.URL) + assert.Equal(t, "us-west-2", resolved.SigningRegion) + assert.Equal(t, "service2", resolved.SigningName) +} + +func TestResolveEndpoint_DisableSSL(t *testing.T) { + resolved, err := testPartitions.EndpointFor("service2", "us-west-2", DisableSSLOption) + + assert.NoError(t, err) + assert.Equal(t, "http://service2.us-west-2.amazonaws.com", resolved.URL) + assert.Equal(t, "us-west-2", resolved.SigningRegion) + assert.Equal(t, "service2", resolved.SigningName) +} + +func TestResolveEndpoint_UseDualStack(t *testing.T) { + resolved, err := testPartitions.EndpointFor("service1", "us-west-2", UseDualStackOption) + + assert.NoError(t, err) + assert.Equal(t, "https://service1.dualstack.us-west-2.amazonaws.com", resolved.URL) + assert.Equal(t, "us-west-2", resolved.SigningRegion) + assert.Equal(t, "service1", resolved.SigningName) +} + +func TestResolveEndpoint_HTTPProtocol(t *testing.T) { + resolved, err := testPartitions.EndpointFor("httpService", "us-west-2") + + assert.NoError(t, err) + assert.Equal(t, "http://httpService.us-west-2.amazonaws.com", resolved.URL) + assert.Equal(t, "us-west-2", resolved.SigningRegion) + assert.Equal(t, "httpService", resolved.SigningName) +} + +func TestResolveEndpoint_UnknownService(t *testing.T) { + _, err := testPartitions.EndpointFor("unknownservice", "us-west-2") + + assert.Error(t, err) + + _, ok := err.(UnknownServiceError) + assert.True(t, ok, "expect error to be UnknownServiceError") +} + +func TestResolveEndpoint_ResolveUnknownService(t *testing.T) { + resolved, err := testPartitions.EndpointFor("unknown-service", "us-region-1", + ResolveUnknownServiceOption) + + assert.NoError(t, err) + + assert.Equal(t, "https://unknown-service.us-region-1.amazonaws.com", resolved.URL) + assert.Equal(t, "us-region-1", resolved.SigningRegion) + assert.Equal(t, "unknown-service", resolved.SigningName) +} + +func TestResolveEndpoint_UnknownMatchedRegion(t *testing.T) { + resolved, err := testPartitions.EndpointFor("service2", "us-region-1") + + assert.NoError(t, err) + assert.Equal(t, "https://service2.us-region-1.amazonaws.com", resolved.URL) + assert.Equal(t, "us-region-1", resolved.SigningRegion) + assert.Equal(t, "service2", resolved.SigningName) +} + +func TestResolveEndpoint_UnknownRegion(t *testing.T) { + resolved, err := testPartitions.EndpointFor("service2", "unknownregion") + + assert.NoError(t, err) + assert.Equal(t, "https://service2.unknownregion.amazonaws.com", resolved.URL) + assert.Equal(t, "unknownregion", resolved.SigningRegion) + assert.Equal(t, "service2", resolved.SigningName) +} + +func TestResolveEndpoint_StrictPartitionUnknownEndpoint(t *testing.T) { + _, err := testPartitions[0].EndpointFor("service2", "unknownregion", StrictMatchingOption) + + assert.Error(t, err) + + _, ok := err.(UnknownEndpointError) + assert.True(t, ok, "expect error to be UnknownEndpointError") +} + +func TestResolveEndpoint_StrictPartitionsUnknownEndpoint(t *testing.T) { + _, err := testPartitions.EndpointFor("service2", "us-region-1", StrictMatchingOption) + + assert.Error(t, err) + + _, ok := err.(UnknownEndpointError) + assert.True(t, ok, "expect error to be UnknownEndpointError") +} + +func TestResolveEndpoint_NotRegionalized(t *testing.T) { + resolved, err := testPartitions.EndpointFor("globalService", "us-west-2") + + assert.NoError(t, err) + assert.Equal(t, "https://globalService.amazonaws.com", resolved.URL) + assert.Equal(t, "us-east-1", resolved.SigningRegion) + assert.Equal(t, "globalService", resolved.SigningName) +} + +func TestResolveEndpoint_AwsGlobal(t *testing.T) { + resolved, err := testPartitions.EndpointFor("globalService", "aws-global") + + assert.NoError(t, err) + assert.Equal(t, "https://globalService.amazonaws.com", resolved.URL) + assert.Equal(t, "us-east-1", resolved.SigningRegion) + assert.Equal(t, "globalService", resolved.SigningName) +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/http_request_retry_test.go b/vendor/github.com/aws/aws-sdk-go/aws/request/http_request_retry_test.go index fc0f46fb2..2ce9ef4c3 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/http_request_retry_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/request/http_request_retry_test.go @@ -24,7 +24,7 @@ func TestRequestCancelRetry(t *testing.T) { s.Handlers.UnmarshalError.Clear() s.Handlers.Send.PushFront(func(r *request.Request) { reqNum++ - r.Error = errors.New("net/http: canceled") + r.Error = errors.New("net/http: request canceled") }) out := &testData{} r := s.NewRequest(&request.Operation{Name: "Operation"}, nil, out) diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/request.go b/vendor/github.com/aws/aws-sdk-go/aws/request/request.go index 8ef9715c6..77312bb66 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/request.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/request/request.go @@ -4,6 +4,7 @@ import ( "bytes" "fmt" "io" + "net" "net/http" "net/url" "reflect" @@ -55,6 +56,8 @@ type Operation struct { HTTPMethod string HTTPPath string *Paginator + + BeforePresignFn func(r *Request) error } // Paginator keeps track of pagination configuration for an API operation. @@ -149,6 +152,15 @@ func (r *Request) SetReaderBody(reader io.ReadSeeker) { func (r *Request) Presign(expireTime time.Duration) (string, error) { r.ExpireTime = expireTime r.NotHoist = false + + if r.Operation.BeforePresignFn != nil { + r = r.copy() + err := r.Operation.BeforePresignFn(r) + if err != nil { + return "", err + } + } + r.Sign() if r.Error != nil { return "", r.Error @@ -234,7 +246,82 @@ func (r *Request) ResetBody() { } r.safeBody = newOffsetReader(r.Body, r.BodyStart) - r.HTTPRequest.Body = r.safeBody + + // Go 1.8 tightened and clarified the rules code needs to use when building + // requests with the http package. Go 1.8 removed the automatic detection + // of if the Request.Body was empty, or actually had bytes in it. The SDK + // always sets the Request.Body even if it is empty and should not actually + // be sent. This is incorrect. + // + // Go 1.8 did add a http.NoBody value that the SDK can use to tell the http + // client that the request really should be sent without a body. The + // Request.Body cannot be set to nil, which is preferable, because the + // field is exported and could introduce nil pointer dereferences for users + // of the SDK if they used that field. + // + // Related golang/go#18257 + l, err := computeBodyLength(r.Body) + if err != nil { + r.Error = awserr.New("SerializationError", "failed to compute request body size", err) + return + } + + if l == 0 { + r.HTTPRequest.Body = noBodyReader + } else if l > 0 { + r.HTTPRequest.Body = r.safeBody + } else { + // Hack to prevent sending bodies for methods where the body + // should be ignored by the server. Sending bodies on these + // methods without an associated ContentLength will cause the + // request to socket timeout because the server does not handle + // Transfer-Encoding: chunked bodies for these methods. + // + // This would only happen if a aws.ReaderSeekerCloser was used with + // a io.Reader that was not also an io.Seeker. + switch r.Operation.HTTPMethod { + case "GET", "HEAD", "DELETE": + r.HTTPRequest.Body = noBodyReader + default: + r.HTTPRequest.Body = r.safeBody + } + } +} + +// Attempts to compute the length of the body of the reader using the +// io.Seeker interface. If the value is not seekable because of being +// a ReaderSeekerCloser without an unerlying Seeker -1 will be returned. +// If no error occurs the length of the body will be returned. +func computeBodyLength(r io.ReadSeeker) (int64, error) { + seekable := true + // Determine if the seeker is actually seekable. ReaderSeekerCloser + // hides the fact that a io.Readers might not actually be seekable. + switch v := r.(type) { + case aws.ReaderSeekerCloser: + seekable = v.IsSeeker() + case *aws.ReaderSeekerCloser: + seekable = v.IsSeeker() + } + if !seekable { + return -1, nil + } + + curOffset, err := r.Seek(0, 1) + if err != nil { + return 0, err + } + + endOffset, err := r.Seek(0, 2) + if err != nil { + return 0, err + } + + _, err = r.Seek(curOffset, 0) + if err != nil { + return 0, err + } + + return endOffset - curOffset, nil } // GetBody will return an io.ReadSeeker of the Request's underlying @@ -286,7 +373,7 @@ func (r *Request) Send() error { r.Handlers.Send.Run(r) if r.Error != nil { - if strings.Contains(r.Error.Error(), "net/http: request canceled") { + if !shouldRetryCancel(r) { return r.Error } @@ -334,6 +421,17 @@ func (r *Request) Send() error { return nil } +// copy will copy a request which will allow for local manipulation of the +// request. +func (r *Request) copy() *Request { + req := &Request{} + *req = *r + req.Handlers = r.Handlers.Copy() + op := *r.Operation + req.Operation = &op + return req +} + // AddToUserAgent adds the string to the end of the request's current user agent. func AddToUserAgent(r *Request, s string) { curUA := r.HTTPRequest.Header.Get("User-Agent") @@ -342,3 +440,26 @@ func AddToUserAgent(r *Request, s string) { } r.HTTPRequest.Header.Set("User-Agent", s) } + +func shouldRetryCancel(r *Request) bool { + awsErr, ok := r.Error.(awserr.Error) + timeoutErr := false + errStr := r.Error.Error() + if ok { + err := awsErr.OrigErr() + netErr, netOK := err.(net.Error) + timeoutErr = netOK && netErr.Temporary() + if urlErr, ok := err.(*url.Error); !timeoutErr && ok { + errStr = urlErr.Err.Error() + } + } + + // There can be two types of canceled errors here. + // The first being a net.Error and the other being an error. + // If the request was timed out, we want to continue the retry + // process. Otherwise, return the canceled error. + return timeoutErr || + (errStr != "net/http: request canceled" && + errStr != "net/http: request canceled while waiting for connection") + +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_5_test.go b/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_5_test.go new file mode 100644 index 000000000..91b4e7b3b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_5_test.go @@ -0,0 +1,11 @@ +// +build !go1.6 + +package request_test + +import ( + "errors" + + "github.com/aws/aws-sdk-go/aws/awserr" +) + +var errTimeout = awserr.New("foo", "bar", errors.New("net/http: request canceled Timeout")) diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_6_test.go b/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_6_test.go index afa0d9468..d0314abe9 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_6_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_6_test.go @@ -3,22 +3,24 @@ package request_test import ( + "errors" "testing" "github.com/stretchr/testify/assert" "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/client" "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/endpoints" ) // go version 1.4 and 1.5 do not return an error. Version 1.5 will url encode // the uri while 1.4 will not func TestRequestInvalidEndpoint(t *testing.T) { - endpoint, _ := endpoints.NormalizeEndpoint("localhost:80 ", "test-service", "test-region", false, false) + endpoint := "http://localhost:90 " + r := request.New( aws.Config{}, metadata.ClientInfo{Endpoint: endpoint}, @@ -31,3 +33,19 @@ func TestRequestInvalidEndpoint(t *testing.T) { assert.Error(t, r.Error) } + +type timeoutErr struct { + error +} + +var errTimeout = awserr.New("foo", "bar", &timeoutErr{ + errors.New("net/http: request canceled"), +}) + +func (e *timeoutErr) Timeout() bool { + return true +} + +func (e *timeoutErr) Temporary() bool { + return true +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_7.go b/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_7.go new file mode 100644 index 000000000..1323af900 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_7.go @@ -0,0 +1,21 @@ +// +build !go1.8 + +package request + +import "io" + +// NoBody is an io.ReadCloser with no bytes. Read always returns EOF +// and Close always returns nil. It can be used in an outgoing client +// request to explicitly signal that a request has zero bytes. +// An alternative, however, is to simply set Request.Body to nil. +// +// Copy of Go 1.8 NoBody type from net/http/http.go +type noBody struct{} + +func (noBody) Read([]byte) (int, error) { return 0, io.EOF } +func (noBody) Close() error { return nil } +func (noBody) WriteTo(io.Writer) (int64, error) { return 0, nil } + +// Is an empty reader that will trigger the Go HTTP client to not include +// and body in the HTTP request. +var noBodyReader = noBody{} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_7_test.go b/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_7_test.go new file mode 100644 index 000000000..ca6150cb0 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_7_test.go @@ -0,0 +1,24 @@ +// +build !go1.8 + +package request + +import ( + "net/http" + "strings" + "testing" +) + +func TestResetBody_WithEmptyBody(t *testing.T) { + r := Request{ + HTTPRequest: &http.Request{}, + } + + reader := strings.NewReader("") + r.Body = reader + + r.ResetBody() + + if a, e := r.HTTPRequest.Body, (noBody{}); a != e { + t.Errorf("expected request body to be set to reader, got %#v", r.HTTPRequest.Body) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_8.go b/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_8.go new file mode 100644 index 000000000..8b963f4de --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_8.go @@ -0,0 +1,9 @@ +// +build go1.8 + +package request + +import "net/http" + +// Is a http.NoBody reader instructing Go HTTP client to not include +// and body in the HTTP request. +var noBodyReader = http.NoBody diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_8_test.go b/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_8_test.go new file mode 100644 index 000000000..6a3aba68f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_8_test.go @@ -0,0 +1,25 @@ +// +build go1.8 + +package request + +import ( + "net/http" + "strings" + "testing" +) + +func TestResetBody_WithEmptyBody(t *testing.T) { + r := Request{ + HTTPRequest: &http.Request{}, + } + + reader := strings.NewReader("") + r.Body = reader + + r.ResetBody() + + if a, e := r.HTTPRequest.Body, http.NoBody; a != e { + t.Errorf("expected request body to be set to reader, got %#v", + r.HTTPRequest.Body) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/request_internal_test.go b/vendor/github.com/aws/aws-sdk-go/aws/request/request_internal_test.go new file mode 100644 index 000000000..660f4d49e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/request/request_internal_test.go @@ -0,0 +1,20 @@ +package request + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestCopy(t *testing.T) { + handlers := Handlers{} + op := &Operation{} + op.HTTPMethod = "Foo" + req := &Request{} + req.Operation = op + req.Handlers = handlers + + r := req.copy() + assert.NotEqual(t, req, r) + assert.Equal(t, req.Operation.HTTPMethod, r.Operation.HTTPMethod) +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/request_resetbody_test.go b/vendor/github.com/aws/aws-sdk-go/aws/request/request_resetbody_test.go new file mode 100644 index 000000000..4efc5057d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/request/request_resetbody_test.go @@ -0,0 +1,58 @@ +package request + +import ( + "bytes" + "net/http" + "strings" + "testing" + + "github.com/aws/aws-sdk-go/aws" +) + +func TestResetBody_WithBodyContents(t *testing.T) { + r := Request{ + HTTPRequest: &http.Request{}, + } + + reader := strings.NewReader("abc") + r.Body = reader + + r.ResetBody() + + if v, ok := r.HTTPRequest.Body.(*offsetReader); !ok || v == nil { + t.Errorf("expected request body to be set to reader, got %#v", + r.HTTPRequest.Body) + } +} + +func TestResetBody_ExcludeUnseekableBodyByMethod(t *testing.T) { + cases := []struct { + Method string + IsNoBody bool + }{ + {"GET", true}, + {"HEAD", true}, + {"DELETE", true}, + {"PUT", false}, + {"PATCH", false}, + {"POST", false}, + } + + reader := aws.ReadSeekCloser(bytes.NewBuffer([]byte("abc"))) + + for i, c := range cases { + r := Request{ + HTTPRequest: &http.Request{}, + Operation: &Operation{ + HTTPMethod: c.Method, + }, + } + + r.SetReaderBody(reader) + + if a, e := r.HTTPRequest.Body == noBodyReader, c.IsNoBody; a != e { + t.Errorf("%d, expect body to be set to noBody(%t), but was %t", i, e, a) + } + } + +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/request_test.go b/vendor/github.com/aws/aws-sdk-go/aws/request/request_test.go index 16bdd6159..213dcdb8e 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/request_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/request/request_test.go @@ -3,12 +3,13 @@ package request_test import ( "bytes" "encoding/json" - "errors" "fmt" "io" "io/ioutil" "net/http" + "net/http/httptest" "runtime" + "strconv" "testing" "time" @@ -19,6 +20,7 @@ import ( "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/awstesting" + "github.com/aws/aws-sdk-go/private/protocol/rest" ) type testData struct { @@ -313,7 +315,7 @@ func TestRequestRecoverTimeoutWithNilBody(t *testing.T) { {StatusCode: 200, Body: body(`{"data":"valid"}`)}, } errors := []error{ - errors.New("timeout"), nil, + errTimeout, nil, } s := awstesting.NewClient(aws.NewConfig().WithMaxRetries(10)) @@ -349,7 +351,7 @@ func TestRequestRecoverTimeoutWithNilResponse(t *testing.T) { {StatusCode: 200, Body: body(`{"data":"valid"}`)}, } errors := []error{ - errors.New("timeout"), + errTimeout, nil, } @@ -378,3 +380,61 @@ func TestRequestRecoverTimeoutWithNilResponse(t *testing.T) { assert.Equal(t, 1, int(r.RetryCount)) assert.Equal(t, "valid", out.Data) } + +func TestRequest_NoBody(t *testing.T) { + cases := []string{ + "GET", "HEAD", "DELETE", + "PUT", "POST", "PATCH", + } + + for i, c := range cases { + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if v := r.TransferEncoding; len(v) > 0 { + t.Errorf("%d, expect no body sent with Transfer-Encoding, %v", i, v) + } + + outMsg := []byte(`{"Value": "abc"}`) + + if b, err := ioutil.ReadAll(r.Body); err != nil { + t.Fatalf("%d, expect no error reading request body, got %v", i, err) + } else if n := len(b); n > 0 { + t.Errorf("%d, expect no request body, got %d bytes", i, n) + } + + w.Header().Set("Content-Length", strconv.Itoa(len(outMsg))) + if _, err := w.Write(outMsg); err != nil { + t.Fatalf("%d, expect no error writing server response, got %v", i, err) + } + })) + + s := awstesting.NewClient(&aws.Config{ + Region: aws.String("mock-region"), + MaxRetries: aws.Int(0), + Endpoint: aws.String(server.URL), + DisableSSL: aws.Bool(true), + }) + s.Handlers.Build.PushBack(rest.Build) + s.Handlers.Validate.Clear() + s.Handlers.Unmarshal.PushBack(unmarshal) + s.Handlers.UnmarshalError.PushBack(unmarshalError) + + in := struct { + Bucket *string `location:"uri" locationName:"bucket"` + Key *string `location:"uri" locationName:"key"` + }{ + Bucket: aws.String("mybucket"), Key: aws.String("myKey"), + } + + out := struct { + Value *string + }{} + + r := s.NewRequest(&request.Operation{ + Name: "OpName", HTTPMethod: c, HTTPPath: "/{bucket}/{key+}", + }, &in, &out) + + if err := r.Send(); err != nil { + t.Fatalf("%d, expect no error sending request, got %v", i, err) + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/retryer.go b/vendor/github.com/aws/aws-sdk-go/aws/request/retryer.go index 8cc8b015a..ebd60ccc4 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/retryer.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/request/retryer.go @@ -38,6 +38,7 @@ var throttleCodes = map[string]struct{}{ "RequestThrottled": {}, "LimitExceededException": {}, // Deleting 10+ DynamoDb tables at once "TooManyRequestsException": {}, // Lambda functions + "PriorRequestNotComplete": {}, // Route53 } // credsExpiredCodes is a collection of error codes which signify the credentials diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/doc.go b/vendor/github.com/aws/aws-sdk-go/aws/session/doc.go index 097d3237b..9975e320c 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/session/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/session/doc.go @@ -45,16 +45,16 @@ region, and profile loaded from the environment and shared config automatically. Requires the AWS_PROFILE to be set, or "default" is used. // Create Session - sess, err := session.NewSession() + sess := session.Must(session.NewSession()) // Create a Session with a custom region - sess, err := session.NewSession(&aws.Config{Region: aws.String("us-east-1")}) + sess := session.Must(session.NewSession(&aws.Config{ + Region: aws.String("us-east-1"), + })) // Create a S3 client instance from a session - sess, err := session.NewSession() - if err != nil { - // Handle Session creation error - } + sess := session.Must(session.NewSession()) + svc := s3.New(sess) Create Session With Option Overrides @@ -66,24 +66,26 @@ through code instead of being driven by environment variables only. Use NewSessionWithOptions when you want to provide the config profile, or override the shared config state (AWS_SDK_LOAD_CONFIG). - // Equivalent to session.New - sess, err := session.NewSessionWithOptions(session.Options{}) + // Equivalent to session.NewSession() + sess := session.Must(session.NewSessionWithOptions(session.Options{ + // Options + })) // Specify profile to load for the session's config - sess, err := session.NewSessionWithOptions(session.Options{ + sess := session.Must(session.NewSessionWithOptions(session.Options{ Profile: "profile_name", - }) + })) // Specify profile for config and region for requests - sess, err := session.NewSessionWithOptions(session.Options{ + sess := session.Must(session.NewSessionWithOptions(session.Options{ Config: aws.Config{Region: aws.String("us-east-1")}, Profile: "profile_name", - }) + })) // Force enable Shared Config support - sess, err := session.NewSessionWithOptions(session.Options{ + sess := session.Must(session.NewSessionWithOptions(session.Options{ SharedConfigState: SharedConfigEnable, - }) + })) Adding Handlers @@ -93,7 +95,8 @@ handler logs every request and its payload made by a service client: // Create a session, and add additional handlers for all service // clients created with the Session to inherit. Adds logging handler. - sess, err := session.NewSession() + sess := session.Must(session.NewSession()) + sess.Handlers.Send.PushFront(func(r *request.Request) { // Log every request made and its payload logger.Println("Request: %s/%s, Payload: %s", @@ -138,15 +141,14 @@ the other two fields are also provided. Assume Role values allow you to configure the SDK to assume an IAM role using a set of credentials provided in a config file via the source_profile field. -Both "role_arn" and "source_profile" are required. The SDK does not support -assuming a role with MFA token Via the Session's constructor. You can use the -stscreds.AssumeRoleProvider credentials provider to specify custom -configuration and support for MFA. +Both "role_arn" and "source_profile" are required. The SDK supports assuming +a role with MFA token if the session option AssumeRoleTokenProvider +is set. role_arn = arn:aws:iam:::role/ source_profile = profile_with_creds external_id = 1234 - mfa_serial = not supported! + mfa_serial = role_session_name = session_name Region is the region the SDK should use for looking up AWS service endpoints @@ -154,6 +156,37 @@ and signing requests. region = us-east-1 +Assume Role with MFA token + +To create a session with support for assuming an IAM role with MFA set the +session option AssumeRoleTokenProvider to a function that will prompt for the +MFA token code when the SDK assumes the role and refreshes the role's credentials. +This allows you to configure the SDK via the shared config to assumea role +with MFA tokens. + +In order for the SDK to assume a role with MFA the SharedConfigState +session option must be set to SharedConfigEnable, or AWS_SDK_LOAD_CONFIG +environment variable set. + +The shared configuration instructs the SDK to assume an IAM role with MFA +when the mfa_serial configuration field is set in the shared config +(~/.aws/config) or shared credentials (~/.aws/credentials) file. + +If mfa_serial is set in the configuration, the SDK will assume the role, and +the AssumeRoleTokenProvider session option is not set an an error will +be returned when creating the session. + + sess := session.Must(session.NewSessionWithOptions(session.Options{ + AssumeRoleTokenProvider: stscreds.StdinTokenProvider, + })) + + // Create service client value configured for credentials + // from assumed role. + svc := s3.New(sess) + +To setup assume role outside of a session see the stscrds.AssumeRoleProvider +documentation. + Environment Variables When a Session is created several environment variables can be set to adjust diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/session.go b/vendor/github.com/aws/aws-sdk-go/aws/session/session.go index 602f4e1ef..42ab3632e 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/session/session.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/session/session.go @@ -10,8 +10,8 @@ import ( "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/credentials/stscreds" "github.com/aws/aws-sdk-go/aws/defaults" + "github.com/aws/aws-sdk-go/aws/endpoints" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/endpoints" ) // A Session provides a central location to create service clients from and @@ -34,17 +34,17 @@ type Session struct { // If the AWS_SDK_LOAD_CONFIG environment is set to a truthy value, the New // method could now encounter an error when loading the configuration. When // The environment variable is set, and an error occurs, New will return a -// session that will fail all requests reporting the error that occured while +// session that will fail all requests reporting the error that occurred while // loading the session. Use NewSession to get the error when creating the // session. // // If the AWS_SDK_LOAD_CONFIG environment variable is set to a truthy value // the shared config file (~/.aws/config) will also be loaded, in addition to -// the shared credentials file (~/.aws/config). Values set in both the +// the shared credentials file (~/.aws/credentials). Values set in both the // shared config, and shared credentials will be taken from the shared // credentials file. // -// Deprecated: Use NewSession functiions to create sessions instead. NewSession +// Deprecated: Use NewSession functions to create sessions instead. NewSession // has the same functionality as New except an error can be returned when the // func is called instead of waiting to receive an error until a request is made. func New(cfgs ...*aws.Config) *Session { @@ -52,14 +52,14 @@ func New(cfgs ...*aws.Config) *Session { envCfg := loadEnvConfig() if envCfg.EnableSharedConfig { - s, err := newSession(envCfg, cfgs...) + s, err := newSession(Options{}, envCfg, cfgs...) if err != nil { // Old session.New expected all errors to be discovered when // a request is made, and would report the errors then. This // needs to be replicated if an error occurs while creating // the session. msg := "failed to create session with AWS_SDK_LOAD_CONFIG enabled. " + - "Use session.NewSession to handle errors occuring during session creation." + "Use session.NewSession to handle errors occurring during session creation." // Session creation failed, need to report the error and prevent // any requests from succeeding. @@ -73,7 +73,7 @@ func New(cfgs ...*aws.Config) *Session { return s } - return oldNewSession(cfgs...) + return deprecatedNewSession(cfgs...) } // NewSession returns a new Session created from SDK defaults, config files, @@ -83,18 +83,18 @@ func New(cfgs ...*aws.Config) *Session { // // If the AWS_SDK_LOAD_CONFIG environment variable is set to a truthy value // the shared config file (~/.aws/config) will also be loaded in addition to -// the shared credentials file (~/.aws/config). Values set in both the +// the shared credentials file (~/.aws/credentials). Values set in both the // shared config, and shared credentials will be taken from the shared // credentials file. Enabling the Shared Config will also allow the Session // to be built with retrieving credentials with AssumeRole set in the config. // // See the NewSessionWithOptions func for information on how to override or -// control through code how the Session will be created. Such as specifing the +// control through code how the Session will be created. Such as specifying the // config profile, and controlling if shared config is enabled or not. func NewSession(cfgs ...*aws.Config) (*Session, error) { envCfg := loadEnvConfig() - return newSession(envCfg, cfgs...) + return newSession(Options{}, envCfg, cfgs...) } // SharedConfigState provides the ability to optionally override the state @@ -124,7 +124,7 @@ type Options struct { // Provides config values for the SDK to use when creating service clients // and making API requests to services. Any value set in with this field // will override the associated value provided by the SDK defaults, - // environment or config files where relevent. + // environment or config files where relevant. // // If not set, configuration values from from SDK defaults, environment, // config will be used. @@ -147,6 +147,26 @@ type Options struct { // will allow you to override the AWS_SDK_LOAD_CONFIG environment variable // and enable or disable the shared config functionality. SharedConfigState SharedConfigState + + // When the SDK's shared config is configured to assume a role with MFA + // this option is required in order to provide the mechanism that will + // retrieve the MFA token. There is no default value for this field. If + // it is not set an error will be returned when creating the session. + // + // This token provider will be called when ever the assumed role's + // credentials need to be refreshed. Within the context of service clients + // all sharing the same session the SDK will ensure calls to the token + // provider are atomic. When sharing a token provider across multiple + // sessions additional synchronization logic is needed to ensure the + // token providers do not introduce race conditions. It is recommend to + // share the session where possible. + // + // stscreds.StdinTokenProvider is a basic implementation that will prompt + // from stdin for the MFA token code. + // + // This field is only used if the shared configuration is enabled, and + // the config enables assume role wit MFA via the mfa_serial field. + AssumeRoleTokenProvider func() (string, error) } // NewSessionWithOptions returns a new Session created from SDK defaults, config files, @@ -155,29 +175,29 @@ type Options struct { // // If the AWS_SDK_LOAD_CONFIG environment variable is set to a truthy value // the shared config file (~/.aws/config) will also be loaded in addition to -// the shared credentials file (~/.aws/config). Values set in both the +// the shared credentials file (~/.aws/credentials). Values set in both the // shared config, and shared credentials will be taken from the shared // credentials file. Enabling the Shared Config will also allow the Session // to be built with retrieving credentials with AssumeRole set in the config. // // // Equivalent to session.New -// sess, err := session.NewSessionWithOptions(session.Options{}) +// sess := session.Must(session.NewSessionWithOptions(session.Options{})) // // // Specify profile to load for the session's config -// sess, err := session.NewSessionWithOptions(session.Options{ +// sess := session.Must(session.NewSessionWithOptions(session.Options{ // Profile: "profile_name", -// }) +// })) // // // Specify profile for config and region for requests -// sess, err := session.NewSessionWithOptions(session.Options{ +// sess := session.Must(session.NewSessionWithOptions(session.Options{ // Config: aws.Config{Region: aws.String("us-east-1")}, // Profile: "profile_name", -// }) +// })) // // // Force enable Shared Config support -// sess, err := session.NewSessionWithOptions(session.Options{ +// sess := session.Must(session.NewSessionWithOptions(session.Options{ // SharedConfigState: SharedConfigEnable, -// }) +// })) func NewSessionWithOptions(opts Options) (*Session, error) { var envCfg envConfig if opts.SharedConfigState == SharedConfigEnable { @@ -197,7 +217,7 @@ func NewSessionWithOptions(opts Options) (*Session, error) { envCfg.EnableSharedConfig = true } - return newSession(envCfg, &opts.Config) + return newSession(opts, envCfg, &opts.Config) } // Must is a helper function to ensure the Session is valid and there was no @@ -215,13 +235,18 @@ func Must(sess *Session, err error) *Session { return sess } -func oldNewSession(cfgs ...*aws.Config) *Session { +func deprecatedNewSession(cfgs ...*aws.Config) *Session { cfg := defaults.Config() handlers := defaults.Handlers() // Apply the passed in configs so the configuration can be applied to the // default credential chain cfg.MergeIn(cfgs...) + if cfg.EndpointResolver == nil { + // An endpoint resolver is required for a session to be able to provide + // endpoints for service client configurations. + cfg.EndpointResolver = endpoints.DefaultResolver() + } cfg.Credentials = defaults.CredChain(cfg, handlers) // Reapply any passed in configs to override credentials if set @@ -237,7 +262,7 @@ func oldNewSession(cfgs ...*aws.Config) *Session { return s } -func newSession(envCfg envConfig, cfgs ...*aws.Config) (*Session, error) { +func newSession(opts Options, envCfg envConfig, cfgs ...*aws.Config) (*Session, error) { cfg := defaults.Config() handlers := defaults.Handlers() @@ -261,7 +286,9 @@ func newSession(envCfg envConfig, cfgs ...*aws.Config) (*Session, error) { return nil, err } - mergeConfigSrcs(cfg, userCfg, envCfg, sharedCfg, handlers) + if err := mergeConfigSrcs(cfg, userCfg, envCfg, sharedCfg, handlers, opts); err != nil { + return nil, err + } s := &Session{ Config: cfg, @@ -273,7 +300,7 @@ func newSession(envCfg envConfig, cfgs ...*aws.Config) (*Session, error) { return s, nil } -func mergeConfigSrcs(cfg, userCfg *aws.Config, envCfg envConfig, sharedCfg sharedConfig, handlers request.Handlers) { +func mergeConfigSrcs(cfg, userCfg *aws.Config, envCfg envConfig, sharedCfg sharedConfig, handlers request.Handlers, sessOpts Options) error { // Merge in user provided configuration cfg.MergeIn(userCfg) @@ -297,6 +324,11 @@ func mergeConfigSrcs(cfg, userCfg *aws.Config, envCfg envConfig, sharedCfg share cfgCp.Credentials = credentials.NewStaticCredentialsFromCreds( sharedCfg.AssumeRoleSource.Creds, ) + if len(sharedCfg.AssumeRole.MFASerial) > 0 && sessOpts.AssumeRoleTokenProvider == nil { + // AssumeRole Token provider is required if doing Assume Role + // with MFA. + return AssumeRoleTokenProviderNotSetError{} + } cfg.Credentials = stscreds.NewCredentials( &Session{ Config: &cfgCp, @@ -306,11 +338,16 @@ func mergeConfigSrcs(cfg, userCfg *aws.Config, envCfg envConfig, sharedCfg share func(opt *stscreds.AssumeRoleProvider) { opt.RoleSessionName = sharedCfg.AssumeRole.RoleSessionName + // Assume role with external ID if len(sharedCfg.AssumeRole.ExternalID) > 0 { opt.ExternalID = aws.String(sharedCfg.AssumeRole.ExternalID) } - // MFA not supported + // Assume role with MFA + if len(sharedCfg.AssumeRole.MFASerial) > 0 { + opt.SerialNumber = aws.String(sharedCfg.AssumeRole.MFASerial) + opt.TokenProvider = sessOpts.AssumeRoleTokenProvider + } }, ) } else if len(sharedCfg.Creds.AccessKeyID) > 0 { @@ -331,6 +368,33 @@ func mergeConfigSrcs(cfg, userCfg *aws.Config, envCfg envConfig, sharedCfg share }) } } + + return nil +} + +// AssumeRoleTokenProviderNotSetError is an error returned when creating a session when the +// MFAToken option is not set when shared config is configured load assume a +// role with an MFA token. +type AssumeRoleTokenProviderNotSetError struct{} + +// Code is the short id of the error. +func (e AssumeRoleTokenProviderNotSetError) Code() string { + return "AssumeRoleTokenProviderNotSetError" +} + +// Message is the description of the error +func (e AssumeRoleTokenProviderNotSetError) Message() string { + return fmt.Sprintf("assume role with MFA enabled, but AssumeRoleTokenProvider session option not set.") +} + +// OrigErr is the underlying error that caused the failure. +func (e AssumeRoleTokenProviderNotSetError) OrigErr() error { + return nil +} + +// Error satisfies the error interface. +func (e AssumeRoleTokenProviderNotSetError) Error() string { + return awserr.SprintError(e.Code(), e.Message(), "", nil) } type credProviderError struct { @@ -375,19 +439,67 @@ func (s *Session) Copy(cfgs ...*aws.Config) *Session { // configure the service client instances. Passing the Session to the service // client's constructor (New) will use this method to configure the client. func (s *Session) ClientConfig(serviceName string, cfgs ...*aws.Config) client.Config { + // Backwards compatibility, the error will be eaten if user calls ClientConfig + // directly. All SDK services will use ClientconfigWithError. + cfg, _ := s.clientConfigWithErr(serviceName, cfgs...) + + return cfg +} + +func (s *Session) clientConfigWithErr(serviceName string, cfgs ...*aws.Config) (client.Config, error) { + s = s.Copy(cfgs...) + + var resolved endpoints.ResolvedEndpoint + var err error + + region := aws.StringValue(s.Config.Region) + + if endpoint := aws.StringValue(s.Config.Endpoint); len(endpoint) != 0 { + resolved.URL = endpoints.AddScheme(endpoint, aws.BoolValue(s.Config.DisableSSL)) + resolved.SigningRegion = region + } else { + resolved, err = s.Config.EndpointResolver.EndpointFor( + serviceName, region, + func(opt *endpoints.Options) { + opt.DisableSSL = aws.BoolValue(s.Config.DisableSSL) + opt.UseDualStack = aws.BoolValue(s.Config.UseDualStack) + + // Support the condition where the service is modeled but its + // endpoint metadata is not available. + opt.ResolveUnknownService = true + }, + ) + } + + return client.Config{ + Config: s.Config, + Handlers: s.Handlers, + Endpoint: resolved.URL, + SigningRegion: resolved.SigningRegion, + SigningName: resolved.SigningName, + }, err +} + +// ClientConfigNoResolveEndpoint is the same as ClientConfig with the exception +// that the EndpointResolver will not be used to resolve the endpoint. The only +// endpoint set must come from the aws.Config.Endpoint field. +func (s *Session) ClientConfigNoResolveEndpoint(cfgs ...*aws.Config) client.Config { s = s.Copy(cfgs...) - endpoint, signingRegion := endpoints.NormalizeEndpoint( - aws.StringValue(s.Config.Endpoint), - serviceName, - aws.StringValue(s.Config.Region), - aws.BoolValue(s.Config.DisableSSL), - aws.BoolValue(s.Config.UseDualStack), - ) + + var resolved endpoints.ResolvedEndpoint + + region := aws.StringValue(s.Config.Region) + + if ep := aws.StringValue(s.Config.Endpoint); len(ep) > 0 { + resolved.URL = endpoints.AddScheme(ep, aws.BoolValue(s.Config.DisableSSL)) + resolved.SigningRegion = region + } return client.Config{ Config: s.Config, Handlers: s.Handlers, - Endpoint: endpoint, - SigningRegion: signingRegion, + Endpoint: resolved.URL, + SigningRegion: resolved.SigningRegion, + SigningName: resolved.SigningName, } } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/session_test.go b/vendor/github.com/aws/aws-sdk-go/aws/session/session_test.go index f8a8ae4b3..877af02e5 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/session/session_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/session/session_test.go @@ -94,7 +94,7 @@ func TestSessionClientConfig(t *testing.T) { cfg := s.ClientConfig("s3", &aws.Config{Region: aws.String("us-west-2")}) assert.Equal(t, "https://s3-us-west-2.amazonaws.com", cfg.Endpoint) - assert.Empty(t, cfg.SigningRegion) + assert.Equal(t, "us-west-2", cfg.SigningRegion) assert.Equal(t, "us-west-2", *cfg.Config.Region) } @@ -257,17 +257,7 @@ func TestNewSessionWithOptions_Overrides(t *testing.T) { } } -func TestSesisonAssumeRole(t *testing.T) { - oldEnv := initSessionTestEnv() - defer popEnv(oldEnv) - - os.Setenv("AWS_REGION", "us-east-1") - os.Setenv("AWS_SDK_LOAD_CONFIG", "1") - os.Setenv("AWS_SHARED_CREDENTIALS_FILE", testConfigFilename) - os.Setenv("AWS_PROFILE", "assume_role_w_creds") - - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - const respMsg = ` +const assumeRoleRespMsg = ` @@ -286,7 +276,18 @@ func TestSesisonAssumeRole(t *testing.T) { ` - w.Write([]byte(fmt.Sprintf(respMsg, time.Now().Add(15*time.Minute).Format("2006-01-02T15:04:05Z")))) + +func TestSesisonAssumeRole(t *testing.T) { + oldEnv := initSessionTestEnv() + defer popEnv(oldEnv) + + os.Setenv("AWS_REGION", "us-east-1") + os.Setenv("AWS_SDK_LOAD_CONFIG", "1") + os.Setenv("AWS_SHARED_CREDENTIALS_FILE", testConfigFilename) + os.Setenv("AWS_PROFILE", "assume_role_w_creds") + + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + w.Write([]byte(fmt.Sprintf(assumeRoleRespMsg, time.Now().Add(15*time.Minute).Format("2006-01-02T15:04:05Z")))) })) s, err := NewSession(&aws.Config{Endpoint: aws.String(server.URL), DisableSSL: aws.Bool(true)}) @@ -299,6 +300,65 @@ func TestSesisonAssumeRole(t *testing.T) { assert.Contains(t, creds.ProviderName, "AssumeRoleProvider") } +func TestSessionAssumeRole_WithMFA(t *testing.T) { + oldEnv := initSessionTestEnv() + defer popEnv(oldEnv) + + os.Setenv("AWS_REGION", "us-east-1") + os.Setenv("AWS_SDK_LOAD_CONFIG", "1") + os.Setenv("AWS_SHARED_CREDENTIALS_FILE", testConfigFilename) + os.Setenv("AWS_PROFILE", "assume_role_w_creds") + + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + assert.Equal(t, r.FormValue("SerialNumber"), "0123456789") + assert.Equal(t, r.FormValue("TokenCode"), "tokencode") + + w.Write([]byte(fmt.Sprintf(assumeRoleRespMsg, time.Now().Add(15*time.Minute).Format("2006-01-02T15:04:05Z")))) + })) + + customProviderCalled := false + sess, err := NewSessionWithOptions(Options{ + Profile: "assume_role_w_mfa", + Config: aws.Config{ + Region: aws.String("us-east-1"), + Endpoint: aws.String(server.URL), + DisableSSL: aws.Bool(true), + }, + SharedConfigState: SharedConfigEnable, + AssumeRoleTokenProvider: func() (string, error) { + customProviderCalled = true + + return "tokencode", nil + }, + }) + assert.NoError(t, err) + + creds, err := sess.Config.Credentials.Get() + assert.NoError(t, err) + assert.True(t, customProviderCalled) + + assert.Equal(t, "AKID", creds.AccessKeyID) + assert.Equal(t, "SECRET", creds.SecretAccessKey) + assert.Equal(t, "SESSION_TOKEN", creds.SessionToken) + assert.Contains(t, creds.ProviderName, "AssumeRoleProvider") +} + +func TestSessionAssumeRole_WithMFA_NoTokenProvider(t *testing.T) { + oldEnv := initSessionTestEnv() + defer popEnv(oldEnv) + + os.Setenv("AWS_REGION", "us-east-1") + os.Setenv("AWS_SDK_LOAD_CONFIG", "1") + os.Setenv("AWS_SHARED_CREDENTIALS_FILE", testConfigFilename) + os.Setenv("AWS_PROFILE", "assume_role_w_creds") + + _, err := NewSessionWithOptions(Options{ + Profile: "assume_role_w_mfa", + SharedConfigState: SharedConfigEnable, + }) + assert.Equal(t, err, AssumeRoleTokenProviderNotSetError{}) +} + func TestSessionAssumeRole_DisableSharedConfig(t *testing.T) { // Backwards compatibility with Shared config disabled // assume role should not be built into the config. diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/shared_config_test.go b/vendor/github.com/aws/aws-sdk-go/aws/session/shared_config_test.go index 1a164d46d..3a07b8d97 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/session/shared_config_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/session/shared_config_test.go @@ -212,6 +212,16 @@ func TestLoadSharedConfigFromFile(t *testing.T) { }, }, }, + { + Profile: "assume_role_w_mfa", + Expected: sharedConfig{ + AssumeRole: assumeRoleConfig{ + RoleARN: "assume_role_role_arn", + SourceProfile: "complete_creds", + MFASerial: "0123456789", + }, + }, + }, { Profile: "does_not_exists", Err: SharedConfigProfileNotExistsError{Profile: "does_not_exists"}, diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/testdata/shared_config b/vendor/github.com/aws/aws-sdk-go/aws/session/testdata/shared_config index e41fe2137..8705608e1 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/session/testdata/shared_config +++ b/vendor/github.com/aws/aws-sdk-go/aws/session/testdata/shared_config @@ -43,6 +43,11 @@ role_arn = partial_assume_role_role_arn role_arn = assume_role_role_arn source_profile = complete_creds +[assume_role_w_mfa] +role_arn = assume_role_role_arn +source_profile = complete_creds +mfa_serial = 0123456789 + [assume_role_invalid_source_profile] role_arn = assume_role_invalid_source_profile_role_arn source_profile = profile_not_exists diff --git a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/functional_1_4_test.go b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/functional_1_4_test.go deleted file mode 100644 index e559838b8..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/functional_1_4_test.go +++ /dev/null @@ -1,40 +0,0 @@ -// +build !go1.5 - -package v4_test - -import ( - "fmt" - "net/http" - "testing" - "time" - - "github.com/aws/aws-sdk-go/aws/signer/v4" - "github.com/aws/aws-sdk-go/awstesting/unit" - "github.com/stretchr/testify/assert" -) - -func TestStandaloneSign(t *testing.T) { - creds := unit.Session.Config.Credentials - signer := v4.NewSigner(creds) - - for _, c := range standaloneSignCases { - host := fmt.Sprintf("%s.%s.%s.amazonaws.com", - c.SubDomain, c.Region, c.Service) - - req, err := http.NewRequest("GET", fmt.Sprintf("https://%s", host), nil) - assert.NoError(t, err) - - req.URL.Path = c.OrigURI - req.URL.RawQuery = c.OrigQuery - req.URL.Opaque = fmt.Sprintf("//%s%s", host, c.EscapedURI) - opaqueURI := req.URL.Opaque - - _, err = signer.Sign(req, nil, c.Service, c.Region, time.Unix(0, 0)) - assert.NoError(t, err) - - actual := req.Header.Get("Authorization") - assert.Equal(t, c.ExpSig, actual) - assert.Equal(t, c.OrigURI, req.URL.Path) - assert.Equal(t, opaqueURI, req.URL.Opaque) - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/functional_1_5_test.go b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/functional_1_5_test.go index 6f0d549d5..2d4621c64 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/functional_1_5_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/functional_1_5_test.go @@ -38,3 +38,30 @@ func TestStandaloneSign(t *testing.T) { assert.Equal(t, c.EscapedURI, req.URL.EscapedPath()) } } + +func TestStandaloneSign_RawPath(t *testing.T) { + creds := unit.Session.Config.Credentials + signer := v4.NewSigner(creds) + + for _, c := range standaloneSignCases { + host := fmt.Sprintf("https://%s.%s.%s.amazonaws.com", + c.SubDomain, c.Region, c.Service) + + req, err := http.NewRequest("GET", host, nil) + assert.NoError(t, err) + + // URL.EscapedPath() will be used by the signer to get the + // escaped form of the request's URI path. + req.URL.Path = c.OrigURI + req.URL.RawPath = c.EscapedURI + req.URL.RawQuery = c.OrigQuery + + _, err = signer.Sign(req, nil, c.Service, c.Region, time.Unix(0, 0)) + assert.NoError(t, err) + + actual := req.Header.Get("Authorization") + assert.Equal(t, c.ExpSig, actual) + assert.Equal(t, c.OrigURI, req.URL.Path) + assert.Equal(t, c.EscapedURI, req.URL.EscapedPath()) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/functional_test.go b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/functional_test.go index f86293a60..9b6b0be24 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/functional_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/functional_test.go @@ -42,13 +42,15 @@ func TestPresignHandler(t *testing.T) { assert.NoError(t, err) + expectedHost := "bucket.s3.mock-region.amazonaws.com" expectedDate := "19700101T000000Z" expectedHeaders := "content-disposition;host;x-amz-acl" - expectedSig := "b2754ba8ffeb74a40b94767017e24c4672107d6d5a894648d5d332ca61f5ffe4" + expectedSig := "2d76a414208c0eac2a23ef9c834db9635ecd5a0fbb447a00ad191f82d854f55b" expectedCred := "AKID/19700101/mock-region/s3/aws4_request" u, _ := url.Parse(urlstr) urlQ := u.Query() + assert.Equal(t, expectedHost, u.Host) assert.Equal(t, expectedSig, urlQ.Get("X-Amz-Signature")) assert.Equal(t, expectedCred, urlQ.Get("X-Amz-Credential")) assert.Equal(t, expectedHeaders, urlQ.Get("X-Amz-SignedHeaders")) @@ -71,9 +73,10 @@ func TestPresignRequest(t *testing.T) { assert.NoError(t, err) + expectedHost := "bucket.s3.mock-region.amazonaws.com" expectedDate := "19700101T000000Z" expectedHeaders := "content-disposition;host;x-amz-acl;x-amz-content-sha256" - expectedSig := "0d200ba61501d752acd06f39ef4dbe7d83ffd5ea15978dc3476dfc00b8eb574e" + expectedSig := "a5b2b500dfbf2eab5b4f55bec3e3752e04536ea1d5c047aa93bc9f1130a72cd2" expectedCred := "AKID/19700101/mock-region/s3/aws4_request" expectedHeaderMap := http.Header{ "x-amz-acl": []string{"public-read"}, @@ -83,6 +86,7 @@ func TestPresignRequest(t *testing.T) { u, _ := url.Parse(urlstr) urlQ := u.Query() + assert.Equal(t, expectedHost, u.Host) assert.Equal(t, expectedSig, urlQ.Get("X-Amz-Signature")) assert.Equal(t, expectedCred, urlQ.Get("X-Amz-Credential")) assert.Equal(t, expectedHeaders, urlQ.Get("X-Amz-SignedHeaders")) diff --git a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/uri_path_1_4.go b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/uri_path_1_4.go deleted file mode 100644 index 796604121..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/uri_path_1_4.go +++ /dev/null @@ -1,24 +0,0 @@ -// +build !go1.5 - -package v4 - -import ( - "net/url" - "strings" -) - -func getURIPath(u *url.URL) string { - var uri string - - if len(u.Opaque) > 0 { - uri = "/" + strings.Join(strings.Split(u.Opaque, "/")[3:], "/") - } else { - uri = u.Path - } - - if len(uri) == 0 { - uri = "/" - } - - return uri -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4.go b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4.go index 986530b40..98bfe742b 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4.go @@ -42,6 +42,14 @@ // the URL.Opaque or URL.RawPath. The SDK will use URL.Opaque first and then // call URL.EscapedPath() if Opaque is not set. // +// If signing a request intended for HTTP2 server, and you're using Go 1.6.2 +// through 1.7.4 you should use the URL.RawPath as the pre-escaped form of the +// request URL. https://github.com/golang/go/issues/16847 points to a bug in +// Go pre 1.8 that failes to make HTTP2 requests using absolute URL in the HTTP +// message. URL.Opaque generally will force Go to make requests with absolute URL. +// URL.RawPath does not do this, but RawPath must be a valid escaping of Path +// or url.EscapedPath will ignore the RawPath escaping. +// // Test `TestStandaloneSign` provides a complete example of using the signer // outside of the SDK and pre-escaping the URI path. package v4 @@ -79,8 +87,9 @@ const ( var ignoredHeaders = rules{ blacklist{ mapRule{ - "Authorization": struct{}{}, - "User-Agent": struct{}{}, + "Authorization": struct{}{}, + "User-Agent": struct{}{}, + "X-Amzn-Trace-Id": struct{}{}, }, }, } @@ -171,6 +180,16 @@ type Signer struct { // http://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html DisableURIPathEscaping bool + // Disales the automatical setting of the HTTP request's Body field with the + // io.ReadSeeker passed in to the signer. This is useful if you're using a + // custom wrapper around the body for the io.ReadSeeker and want to preserve + // the Body value on the Request.Body. + // + // This does run the risk of signing a request with a body that will not be + // sent in the request. Need to ensure that the underlying data of the Body + // values are the same. + DisableRequestBodyOverwrite bool + // currentTimeFn returns the time value which represents the current time. // This value should only be used for testing. If it is nil the default // time.Now will be used. @@ -300,6 +319,10 @@ func (v4 Signer) signWithBody(r *http.Request, body io.ReadSeeker, service, regi DisableURIPathEscaping: v4.DisableURIPathEscaping, } + for key := range ctx.Query { + sort.Strings(ctx.Query[key]) + } + if ctx.isRequestSigned() { ctx.Time = currentTimeFn() ctx.handlePresignRemoval() @@ -317,7 +340,7 @@ func (v4 Signer) signWithBody(r *http.Request, body io.ReadSeeker, service, regi // If the request is not presigned the body should be attached to it. This // prevents the confusion of wanting to send a signed request without // the body the request was signed for attached. - if !ctx.isPresign { + if !(v4.DisableRequestBodyOverwrite || ctx.isPresign) { var reader io.ReadCloser if body != nil { var ok bool @@ -412,6 +435,10 @@ func signSDKRequestWithCurrTime(req *request.Request, curTimeFn func() time.Time // S3 service should not have any escaping applied v4.DisableURIPathEscaping = true } + // Prevents setting the HTTPRequest's Body. Since the Body could be + // wrapped in a custom io.Closer that we do not want to be stompped + // on top of by the signer. + v4.DisableRequestBodyOverwrite = true }) signingTime := req.Time diff --git a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4_test.go b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4_test.go index cf7a9acbc..72763fd09 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4_test.go @@ -101,6 +101,28 @@ func TestPresignRequest(t *testing.T) { assert.Equal(t, expectedTarget, q.Get("X-Amz-Target")) } +func TestPresignBodyWithArrayRequest(t *testing.T) { + req, body := buildRequest("dynamodb", "us-east-1", "{}") + req.URL.RawQuery = "Foo=z&Foo=o&Foo=m&Foo=a" + + signer := buildSigner() + signer.Presign(req, body, "dynamodb", "us-east-1", 300*time.Second, time.Unix(0, 0)) + + expectedDate := "19700101T000000Z" + expectedHeaders := "content-length;content-type;host;x-amz-meta-other-header;x-amz-meta-other-header_with_underscore" + expectedSig := "fef6002062400bbf526d70f1a6456abc0fb2e213fe1416012737eebd42a62924" + expectedCred := "AKID/19700101/us-east-1/dynamodb/aws4_request" + expectedTarget := "prefix.Operation" + + q := req.URL.Query() + assert.Equal(t, expectedSig, q.Get("X-Amz-Signature")) + assert.Equal(t, expectedCred, q.Get("X-Amz-Credential")) + assert.Equal(t, expectedHeaders, q.Get("X-Amz-SignedHeaders")) + assert.Equal(t, expectedDate, q.Get("X-Amz-Date")) + assert.Empty(t, q.Get("X-Amz-Meta-Other-Header")) + assert.Equal(t, expectedTarget, q.Get("X-Amz-Target")) +} + func TestSignRequest(t *testing.T) { req, body := buildRequest("dynamodb", "us-east-1", "{}") signer := buildSigner() @@ -384,6 +406,67 @@ func TestSignWithRequestBody_Overwrite(t *testing.T) { assert.Equal(t, http.StatusOK, resp.StatusCode) } +func TestBuildCanonicalRequest(t *testing.T) { + req, body := buildRequest("dynamodb", "us-east-1", "{}") + req.URL.RawQuery = "Foo=z&Foo=o&Foo=m&Foo=a" + ctx := &signingCtx{ + ServiceName: "dynamodb", + Region: "us-east-1", + Request: req, + Body: body, + Query: req.URL.Query(), + Time: time.Now(), + ExpireTime: 5 * time.Second, + } + + ctx.buildCanonicalString() + expected := "https://example.org/bucket/key-._~,!@#$%^&*()?Foo=z&Foo=o&Foo=m&Foo=a" + assert.Equal(t, expected, ctx.Request.URL.String()) +} + +func TestSignWithBody_ReplaceRequestBody(t *testing.T) { + creds := credentials.NewStaticCredentials("AKID", "SECRET", "SESSION") + req, seekerBody := buildRequest("dynamodb", "us-east-1", "{}") + req.Body = ioutil.NopCloser(bytes.NewReader([]byte{})) + + s := NewSigner(creds) + origBody := req.Body + + _, err := s.Sign(req, seekerBody, "dynamodb", "us-east-1", time.Now()) + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + if req.Body == origBody { + t.Errorf("expeect request body to not be origBody") + } + + if req.Body == nil { + t.Errorf("expect request body to be changed but was nil") + } +} + +func TestSignWithBody_NoReplaceRequestBody(t *testing.T) { + creds := credentials.NewStaticCredentials("AKID", "SECRET", "SESSION") + req, seekerBody := buildRequest("dynamodb", "us-east-1", "{}") + req.Body = ioutil.NopCloser(bytes.NewReader([]byte{})) + + s := NewSigner(creds, func(signer *Signer) { + signer.DisableRequestBodyOverwrite = true + }) + + origBody := req.Body + + _, err := s.Sign(req, seekerBody, "dynamodb", "us-east-1", time.Now()) + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + if req.Body != origBody { + t.Errorf("expeect request body to not be chagned") + } +} + func BenchmarkPresignRequest(b *testing.B) { signer := buildSigner() req, body := buildRequest("dynamodb", "us-east-1", "{}") diff --git a/vendor/github.com/aws/aws-sdk-go/aws/types.go b/vendor/github.com/aws/aws-sdk-go/aws/types.go index fa014b49e..0e2d864e1 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/types.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/types.go @@ -5,7 +5,13 @@ import ( "sync" ) -// ReadSeekCloser wraps a io.Reader returning a ReaderSeekerCloser +// ReadSeekCloser wraps a io.Reader returning a ReaderSeekerCloser. Should +// only be used with an io.Reader that is also an io.Seeker. Doing so may +// cause request signature errors, or request body's not sent for GET, HEAD +// and DELETE HTTP methods. +// +// Deprecated: Should only be used with io.ReadSeeker. If using for +// S3 PutObject to stream content use s3manager.Uploader instead. func ReadSeekCloser(r io.Reader) ReaderSeekerCloser { return ReaderSeekerCloser{r} } @@ -44,6 +50,12 @@ func (r ReaderSeekerCloser) Seek(offset int64, whence int) (int64, error) { return int64(0), nil } +// IsSeeker returns if the underlying reader is also a seeker. +func (r ReaderSeekerCloser) IsSeeker() bool { + _, ok := r.r.(io.Seeker) + return ok +} + // Close closes the ReaderSeekerCloser. // // If the ReaderSeekerCloser is not an io.Closer nothing will be done. @@ -102,5 +114,5 @@ func (b *WriteAtBuffer) WriteAt(p []byte, pos int64) (n int, err error) { func (b *WriteAtBuffer) Bytes() []byte { b.m.Lock() defer b.m.Unlock() - return b.buf[:len(b.buf):len(b.buf)] + return b.buf } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/version.go b/vendor/github.com/aws/aws-sdk-go/aws/version.go index b1e963f35..c72118ab1 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/version.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.4.19" +const SDKVersion = "1.7.8" diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/assert.go b/vendor/github.com/aws/aws-sdk-go/awstesting/assert.go index 10ad72767..5494dc711 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/assert.go +++ b/vendor/github.com/aws/aws-sdk-go/awstesting/assert.go @@ -8,6 +8,7 @@ import ( "reflect" "regexp" "sort" + "strings" "testing" ) @@ -39,6 +40,8 @@ func AssertURL(t *testing.T, expect, actual string, msgAndArgs ...interface{}) b return AssertQuery(t, expectURL.Query().Encode(), actualURL.Query().Encode(), msgAndArgs...) } +var queryMapKey = regexp.MustCompile("(.*?)\\.[0-9]+\\.key") + // AssertQuery verifies the expect HTTP query string matches the actual. func AssertQuery(t *testing.T, expect, actual string, msgAndArgs ...interface{}) bool { expectQ, err := url.ParseQuery(expect) @@ -46,7 +49,7 @@ func AssertQuery(t *testing.T, expect, actual string, msgAndArgs ...interface{}) t.Errorf(errMsg("unable to parse expected Query", err, msgAndArgs)) return false } - actualQ, err := url.ParseQuery(expect) + actualQ, err := url.ParseQuery(actual) if err != nil { t.Errorf(errMsg("unable to parse actual Query", err, msgAndArgs)) return false @@ -57,11 +60,35 @@ func AssertQuery(t *testing.T, expect, actual string, msgAndArgs ...interface{}) return false } + keys := map[string][]string{} + for key, v := range expectQ { + if queryMapKey.Match([]byte(key)) { + submatch := queryMapKey.FindStringSubmatch(key) + keys[submatch[1]] = append(keys[submatch[1]], v...) + } + } + + for k, v := range keys { + // clear all keys that have prefix + for key := range expectQ { + if strings.HasPrefix(key, k) { + delete(expectQ, key) + } + } + + sort.Strings(v) + for i, value := range v { + expectQ[fmt.Sprintf("%s.%d.key", k, i+1)] = []string{value} + } + } + for k, expectQVals := range expectQ { sort.Strings(expectQVals) actualQVals := actualQ[k] sort.Strings(actualQVals) - equal(t, expectQVals, actualQVals, msgAndArgs...) + if !equal(t, expectQVals, actualQVals, msgAndArgs...) { + return false + } } return true diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/assert_test.go b/vendor/github.com/aws/aws-sdk-go/awstesting/assert_test.go index 45903a5d3..f72abfb20 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/assert_test.go +++ b/vendor/github.com/aws/aws-sdk-go/awstesting/assert_test.go @@ -62,3 +62,28 @@ func TestAssertXML(t *testing.T) { } } } + +func TestAssertQuery(t *testing.T) { + cases := []struct { + e, a string + asserts bool + }{ + { + e: `Action=OperationName&Version=2014-01-01&Foo=val1&Bar=val2`, + a: `Action=OperationName&Version=2014-01-01&Foo=val2&Bar=val3`, + asserts: false, + }, + { + e: `Action=OperationName&Version=2014-01-01&Foo=val1&Bar=val2`, + a: `Action=OperationName&Version=2014-01-01&Foo=val1&Bar=val2`, + asserts: true, + }, + } + + for i, c := range cases { + mockT := &testing.T{} + if awstesting.AssertQuery(mockT, c.e, c.a) != c.asserts { + t.Error("Assert Query result was not expected.", i) + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/client.go index ca64a4478..539639d8b 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/client.go +++ b/vendor/github.com/aws/aws-sdk-go/awstesting/client.go @@ -16,5 +16,9 @@ func NewClient(cfgs ...*aws.Config) *client.Client { def := defaults.Get() def.Config.MergeIn(cfgs...) + if v := aws.StringValue(def.Config.Endpoint); len(v) > 0 { + info.Endpoint = v + } + return client.New(*def.Config, info, def.Handlers) } diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/client.go index 30921c332..28f9067b1 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/client.go +++ b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/client.go @@ -4,6 +4,8 @@ package iotdataplane import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/awstesting/integration/smoke" "github.com/aws/aws-sdk-go/service/iot" @@ -20,6 +22,7 @@ func init() { return } + fmt.Println("IOT Data endpoint:", *result.EndpointAddress) gucumber.World["client"] = iotdataplane.New(smoke.Session, aws.NewConfig(). WithEndpoint(*result.EndpointAddress)) }) diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/mock/mock.go b/vendor/github.com/aws/aws-sdk-go/awstesting/mock/mock.go index 9f1800745..1bc9290dc 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/mock/mock.go +++ b/vendor/github.com/aws/aws-sdk-go/awstesting/mock/mock.go @@ -11,15 +11,17 @@ import ( ) // Session is a mock session which is used to hit the mock server -var Session = session.Must(session.NewSession(&aws.Config{ - DisableSSL: aws.Bool(true), - Endpoint: aws.String(server.URL[7:]), -})) +var Session = func() *session.Session { + // server is the mock server that simply writes a 200 status back to the client + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusOK) + })) -// server is the mock server that simply writes a 200 status back to the client -var server = httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusOK) -})) + return session.Must(session.NewSession(&aws.Config{ + DisableSSL: aws.Bool(true), + Endpoint: aws.String(server.URL), + })) +}() // NewMockClient creates and initializes a client that will connect to the // mock server diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.golang-tip b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.golang-tip index 70148d532..6d51663f6 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.golang-tip +++ b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.golang-tip @@ -3,8 +3,7 @@ # https://github.com/docker-library/golang/blob/master/1.6/wheezy/Dockerfile FROM buildpack-deps:wheezy-scm -ENV GOLANG_VERSION tip -ENV GOLANG_SRC_REPO_URL https://go.googlesource.com/go +ENV GOLANG_SRC_REPO_URL https://github.com/golang/go ENV GOLANG_BOOTSTRAP_URL https://storage.googleapis.com/golang/go1.4.3.linux-amd64.tar.gz ENV GOLANG_BOOTSTRAP_SHA256 ce3140662f45356eb78bc16a88fc7cfb29fb00e18d7c632608245b789b2086d2 diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.4 b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.4 index e048ed567..eda0a97c6 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.4 +++ b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.4 @@ -3,5 +3,9 @@ FROM golang:1.4 ADD . /go/src/github.com/aws/aws-sdk-go +RUN apt-get update && apt-get install -y --no-install-recommends \ + vim \ + && rm -rf /var/list/apt/lists/* + WORKDIR /go/src/github.com/aws/aws-sdk-go CMD ["make", "get-deps", "unit"] diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.5 b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.5 index 010381c79..6d8710999 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.5 +++ b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.5 @@ -3,6 +3,10 @@ FROM golang:1.5 ADD . /go/src/github.com/aws/aws-sdk-go +RUN apt-get update && apt-get install -y --no-install-recommends \ + vim \ + && rm -rf /var/list/apt/lists/* + ENV GO15VENDOREXPERIMENT="1" WORKDIR /go/src/github.com/aws/aws-sdk-go diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.6 b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.6 index 541a83735..c62290594 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.6 +++ b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.6 @@ -3,5 +3,9 @@ FROM golang:1.6 ADD . /go/src/github.com/aws/aws-sdk-go +RUN apt-get update && apt-get install -y --no-install-recommends \ + vim \ + && rm -rf /var/list/apt/lists/* + WORKDIR /go/src/github.com/aws/aws-sdk-go CMD ["make", "unit"] diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.7 b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.7 index aed4408a8..11db3be39 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.7 +++ b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.7 @@ -3,5 +3,9 @@ FROM golang:1.7 ADD . /go/src/github.com/aws/aws-sdk-go +RUN apt-get update && apt-get install -y --no-install-recommends \ + vim \ + && rm -rf /var/list/apt/lists/* + WORKDIR /go/src/github.com/aws/aws-sdk-go CMD ["make", "unit"] diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.8 b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.8 new file mode 100644 index 000000000..c13c2c3b1 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.8 @@ -0,0 +1,11 @@ +FROM ubuntu:12.04 +FROM golang:1.8 + +ADD . /go/src/github.com/aws/aws-sdk-go + +RUN apt-get update && apt-get install -y --no-install-recommends \ + vim \ + && rm -rf /var/list/apt/lists/* + +WORKDIR /go/src/github.com/aws/aws-sdk-go +CMD ["make", "unit"] diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.gotip b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.gotip index 9758279f9..b6d2c9ee2 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.gotip +++ b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.gotip @@ -3,5 +3,9 @@ FROM aws-golang:tip ADD . /go/src/github.com/aws/aws-sdk-go +RUN apt-get update && apt-get install -y --no-install-recommends \ + vim \ + && rm -rf /var/list/apt/lists/* + WORKDIR /go/src/github.com/aws/aws-sdk-go CMD ["make", "unit"] diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/package_service.html b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/package_service.html index 20e1a948c..ff35832e3 100644 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/package_service.html +++ b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/package_service.html @@ -72,11 +72,13 @@

Operations ▾

{{node_html $ .Decl false | sanitize}}
{{end}} {{range .Methods}} - {{if (and (ne .Name "String") (ne .Name "GoString")) }} - {{if (ne .Name "Validate") }} + {{ if (not (is_setter $.PDoc.Name .)) }} + {{ if (not (is_paginator .)) }} + {{ if (ne .Name "Validate") }} {{$name_html := html .Name}} -
{{node_html $ .Decl false | sanitize}}
+
{{client_html $ .Decl false | sanitize}}
+ {{end}} {{end}} {{end}} {{end}} @@ -86,32 +88,30 @@

Operations ▾

{{noteTitle $marker | html}}s
{{end}} {{end}} - - - - - - + + {{ if $.HasPaginators }} +
+ +
+

Paginators ▾

+ {{range .Types -}} + {{$tname_html := html .Name}} + {{range .Methods -}} + {{if is_paginator . -}} + {{$name_html := html .Name}} +
{{client_html $ .Decl false | sanitize}}
+ {{end }} + {{ end }} + {{ end }} +
+
+ {{ end }}
@@ -184,11 +192,18 @@

Inter {{with .Consts}} -

Constants

- {{range .}} -
{{node_html $ .Decl true}}
- {{comment_html .Doc}} - {{end}} +
+ +
+

Constants ▾

+ {{range .}} +
{{node_html $ .Decl true}}
+ {{comment_html .Doc}} + {{end}} +
+
{{end}} {{with .Vars}}

Variables

diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/pkglist.html b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/pkglist.html index 1ef53927a..68c2a8055 100644 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/pkglist.html +++ b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/pkglist.html @@ -6,18 +6,19 @@
+
diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/style.css b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/style.css index cb5837e1f..baea871e5 100644 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/style.css +++ b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/style.css @@ -10,6 +10,23 @@ a > img { padding-top:8px; } +.packages { + margin:0; + padding:0; + display:inline; + text-align: left; + width: 100%; + list-style-type: none; +} +.packages li { + margin: 0; + line-height: 1.25; + font-size: larger; +} +.packages li:nth-child(odd) { + background-color: #eee; +} + body { margin: 0; font-family: HelveticaNeueBold,Helvetica,Helvetica,Arial,sans-serif; @@ -66,11 +83,6 @@ ol { display: inherit; margin: 20px; } -.packages { - margin: 0px; - text-align: left; - width: 100%; -} pre { background: #EFEFEF; padding: 10px; @@ -766,8 +778,6 @@ a.error { div#mobile_container { display:inline-block; width: 100%; - padding-left:20px; - padding-top:10px; } } @@ -818,6 +828,8 @@ a.error { content:""; height: 5px; width:30px; + padding-left:20px; + padding-top:10px; } } diff --git a/vendor/github.com/aws/aws-sdk-go/example/aws/endpoints/customEndpoint/README.md b/vendor/github.com/aws/aws-sdk-go/example/aws/endpoints/customEndpoint/README.md new file mode 100644 index 000000000..8c22c3439 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/example/aws/endpoints/customEndpoint/README.md @@ -0,0 +1,6 @@ +Custom Endpoint Example +=== + +This example provides examples on how you can provide custom endpoints, and logic to how endpoints are resolved by the SDK. + +The example creates multiple clients with different endpoint configuraiton. From a custom endpoint resolver that wraps the defeault resolver so that any S3 service client created uses the custom endpoint, to how you can provide your own logic to a single service's endpoint resolving. diff --git a/vendor/github.com/aws/aws-sdk-go/example/aws/endpoints/customEndpoint/customEndpoint.go b/vendor/github.com/aws/aws-sdk-go/example/aws/endpoints/customEndpoint/customEndpoint.go new file mode 100644 index 000000000..6163172cc --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/example/aws/endpoints/customEndpoint/customEndpoint.go @@ -0,0 +1,77 @@ +// +build example + +package main + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/endpoints" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/dynamodb" + "github.com/aws/aws-sdk-go/service/s3" + "github.com/aws/aws-sdk-go/service/sqs" +) + +func main() { + defaultResolver := endpoints.DefaultResolver() + s3CustResolverFn := func(service, region string, optFns ...func(*endpoints.Options)) (endpoints.ResolvedEndpoint, error) { + if service == "s3" { + return endpoints.ResolvedEndpoint{ + URL: "s3.custom.endpoint.com", + SigningRegion: "custom-signing-region", + }, nil + } + + return defaultResolver.EndpointFor(service, region, optFns...) + } + sess := session.Must(session.NewSessionWithOptions(session.Options{ + Config: aws.Config{ + Region: aws.String("us-west-2"), + EndpointResolver: endpoints.ResolverFunc(s3CustResolverFn), + }, + })) + + // Create the S3 service client with the shared session. This will + // automatically use the S3 custom endpoint configured in the custom + // endpoint resolver wrapping the default endpoint resolver. + s3Svc := s3.New(sess) + // Operation calls will be made to the custom endpoint. + s3Svc.GetObject(&s3.GetObjectInput{ + Bucket: aws.String("myBucket"), + Key: aws.String("myObjectKey"), + }) + + // Create the SQS service client with the shared session. This will + // fallback to the default endpoint resolver because the customization + // passes any non S3 service endpoint resolve to the default resolver. + sqsSvc := sqs.New(sess) + // Operation calls will be made to the default endpoint for SQS for the + // region configured. + sqsSvc.ReceiveMessage(&sqs.ReceiveMessageInput{ + QueueUrl: aws.String("my-queue-url"), + }) + + // Create a DynamoDB service client that will use a custom endpoint + // resolver that overrides the shared session's. This is useful when + // custom endpoints are generated, or multiple endpoints are switched on + // by a region value. + ddbCustResolverFn := func(service, region string, optFns ...func(*endpoints.Options)) (endpoints.ResolvedEndpoint, error) { + return endpoints.ResolvedEndpoint{ + URL: "dynamodb.custom.endpoint", + SigningRegion: "custom-signing-region", + }, nil + } + ddbSvc := dynamodb.New(sess, &aws.Config{ + EndpointResolver: endpoints.ResolverFunc(ddbCustResolverFn), + }) + // Operation calls will be made to the custom endpoint set in the + // ddCustResolverFn. + ddbSvc.ListTables(&dynamodb.ListTablesInput{}) + + // Setting Config's Endpoint will override the EndpointResolver. Forcing + // the service clien to make all operation to the endpoint specified + // the in the config. + ddbSvcLocal := dynamodb.New(sess, &aws.Config{ + Endpoint: aws.String("http://localhost:8088"), + }) + ddbSvcLocal.ListTables(&dynamodb.ListTablesInput{}) +} diff --git a/vendor/github.com/aws/aws-sdk-go/example/aws/endpoints/enumEndpoints/README.md b/vendor/github.com/aws/aws-sdk-go/example/aws/endpoints/enumEndpoints/README.md new file mode 100644 index 000000000..b3aab9d15 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/example/aws/endpoints/enumEndpoints/README.md @@ -0,0 +1,37 @@ +Enumerate Regions and Endpoints Example +=== + +Demostrates how the SDK's endpoints can be enumerated over to discover regions, services, and endpoints defined by the SDK's Regions and Endpoints metadata. + +Usage +--- + +The following parameters can be used to enumerate the SDK's partition metadata. + +Example: + + go run enumEndpoints.go -p aws -services -r us-west-2 + +Output: + + Services with endpoint us-west-2 in aws: + ec2 + dynamodb + s3 + ... + +CLI parameters +--- + +``` + -p=id partition id, e.g: aws + -r=id region id, e.g: us-west-2 + -s=id service id, e.g: s3 + + -partitions Lists all partitions. + -regions Lists all regions in a partition. Requires partition ID. + If service ID is also provided will show endpoints for a service. + -services Lists all services in a partition. Requires partition ID. + If region ID is also provided, will show services available in that region. +``` + diff --git a/vendor/github.com/aws/aws-sdk-go/example/aws/endpoints/enumEndpoints/enumEndpoints.go b/vendor/github.com/aws/aws-sdk-go/example/aws/endpoints/enumEndpoints/enumEndpoints.go new file mode 100644 index 000000000..431070121 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/example/aws/endpoints/enumEndpoints/enumEndpoints.go @@ -0,0 +1,126 @@ +// +build example + +package main + +import ( + "flag" + "fmt" + "os" + + "github.com/aws/aws-sdk-go/aws/endpoints" +) + +// Demostrates how the SDK's endpoints can be enumerated over to discover +// regions, services, and endpoints defined by the SDK's Regions and Endpoints +// metadata. +// +// Usage: +// -p=id partition id, e.g: aws +// -r=id region id, e.g: us-west-2 +// -s=id service id, e.g: s3 +// +// -partitions Lists all partitions. +// -regions Lists all regions in a partition. Requires partition ID. +// If service ID is also provided will show endpoints for a service. +// -services Lists all services in a partition. Requires partition ID. +// If region ID is also provided, will show services available in that region. +// +// Example: +// go run enumEndpoints.go -p aws -services -r us-west-2 +// +// Output: +// Services with endpoint us-west-2 in aws: +// ... +func main() { + var partitionID, regionID, serviceID string + flag.StringVar(&partitionID, "p", "", "Partition ID") + flag.StringVar(®ionID, "r", "", "Region ID") + flag.StringVar(&serviceID, "s", "", "Service ID") + + var cmdPartitions, cmdRegions, cmdServices bool + flag.BoolVar(&cmdPartitions, "partitions", false, "Lists partitions.") + flag.BoolVar(&cmdRegions, "regions", false, "Lists regions of a partition. Requires partition ID to be provided. Will filter by a service if '-s' is set.") + flag.BoolVar(&cmdServices, "services", false, "Lists services for a partition. Requires partition ID to be provided. Will filter by a region if '-r' is set.") + flag.Parse() + + partitions := endpoints.DefaultResolver().(endpoints.EnumPartitions).Partitions() + + if cmdPartitions { + printPartitions(partitions) + } + + if !(cmdRegions || cmdServices) { + return + } + + p, ok := findPartition(partitions, partitionID) + if !ok { + fmt.Fprintf(os.Stderr, "Partition %q not found", partitionID) + os.Exit(1) + } + + if cmdRegions { + printRegions(p, serviceID) + } + + if cmdServices { + printServices(p, regionID) + } +} + +func printPartitions(ps []endpoints.Partition) { + fmt.Println("Partitions:") + for _, p := range ps { + fmt.Println(p.ID()) + } +} + +func printRegions(p endpoints.Partition, serviceID string) { + if len(serviceID) != 0 { + s, ok := p.Services()[serviceID] + if !ok { + fmt.Fprintf(os.Stderr, "service %q does not exist in partition %q", serviceID, p.ID()) + os.Exit(1) + } + es := s.Endpoints() + fmt.Printf("Endpoints for %s in %s:\n", serviceID, p.ID()) + for _, e := range es { + r, _ := e.ResolveEndpoint() + fmt.Printf("%s: %s\n", e.ID(), r.URL) + } + + } else { + rs := p.Regions() + fmt.Printf("Regions in %s:\n", p.ID()) + for _, r := range rs { + fmt.Println(r.ID()) + } + } +} + +func printServices(p endpoints.Partition, endpointID string) { + ss := p.Services() + + if len(endpointID) > 0 { + fmt.Printf("Services with endpoint %s in %s:\n", endpointID, p.ID()) + } else { + fmt.Printf("Services in %s:\n", p.ID()) + } + + for id, s := range ss { + if _, ok := s.Endpoints()[endpointID]; !ok && len(endpointID) > 0 { + continue + } + fmt.Println(id) + } +} + +func findPartition(ps []endpoints.Partition, partitionID string) (endpoints.Partition, bool) { + for _, p := range ps { + if p.ID() == partitionID { + return p, true + } + } + + return endpoints.Partition{}, false +} diff --git a/vendor/github.com/aws/aws-sdk-go/example/aws/request/handleServiceErrorCodes/handleServiceErrorCodes.go b/vendor/github.com/aws/aws-sdk-go/example/aws/request/handleServiceErrorCodes/handleServiceErrorCodes.go index 1e36634cb..ee1da3a63 100644 --- a/vendor/github.com/aws/aws-sdk-go/example/aws/request/handleServiceErrorCodes/handleServiceErrorCodes.go +++ b/vendor/github.com/aws/aws-sdk-go/example/aws/request/handleServiceErrorCodes/handleServiceErrorCodes.go @@ -32,10 +32,7 @@ func main() { if len(os.Args) < 3 { exitErrorf("Usage: %s ", filepath.Base(os.Args[0])) } - sess, err := session.NewSession() - if err != nil { - exitErrorf("failed to create session,", err) - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) resp, err := svc.GetObject(&s3.GetObjectInput{ @@ -54,13 +51,13 @@ func main() { // http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { - case "NoSuchBucket": + case s3.ErrCodeNoSuchBucket: exitErrorf("bucket %s does not exist", os.Args[1]) - case "NoSuchKey": + case s3.ErrCodeNoSuchKey: exitErrorf("object with key %s does not exist in bucket %s", os.Args[2], os.Args[1]) } } - exitErrorf("unknown error occured, %v", err) + exitErrorf("unknown error occurred, %v", err) } defer resp.Body.Close() diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/dynamodb/scanItems/scanItems.go b/vendor/github.com/aws/aws-sdk-go/example/service/dynamodb/scanItems/scanItems.go index 9f527c194..5fec4269d 100644 --- a/vendor/github.com/aws/aws-sdk-go/example/service/dynamodb/scanItems/scanItems.go +++ b/vendor/github.com/aws/aws-sdk-go/example/service/dynamodb/scanItems/scanItems.go @@ -24,7 +24,7 @@ func main() { exitWithError(fmt.Errorf("failed to load config, %v", err)) } - // Create the config specifiing the Region for the DynamoDB table. + // Create the config specifying the Region for the DynamoDB table. // If Config.Region is not set the region must come from the shared // config or AWS_REGION environment variable. awscfg := &aws.Config{} @@ -33,10 +33,7 @@ func main() { } // Create the session that the DynamoDB service will use. - sess, err := session.NewSession(awscfg) - if err != nil { - exitWithError(fmt.Errorf("failed to create session, %v", err)) - } + sess := session.Must(session.NewSession(awscfg)) // Create the DynamoDB service client to make the query request with. svc := dynamodb.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/dynamodb/unitTest/README.md b/vendor/github.com/aws/aws-sdk-go/example/service/dynamodb/unitTest/README.md new file mode 100644 index 000000000..48c1275eb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/example/service/dynamodb/unitTest/README.md @@ -0,0 +1,49 @@ +# Example +You can instantiate `*dynamodb.DynamoDB` and pass that as a parameter to all +methods connecting to DynamoDB, or as `unitTest` demonstrates, create your own +`type` and pass it along as a field. + +## Test-compatible DynamoDB field +If you use `*dynamodb.DynamoDB` as a field, you will be unable to unit test it, +as documented in #88. Cast it instead as `dynamodbiface.DynamoDBAPI`: +```go +type ItemGetter struct { + DynamoDB dynamodbiface.DynamoDBAPI +} +``` + +## Querying actual DynamoDB +You'll need an `*aws.Config` and `*session.Session` for these to work correctly: +```go +// Setup +var getter = new(ItemGetter) +var config *aws.Config = &aws.Config{Region: aws.String("us-west-2"),} +var sess *session.Session = session.NewSession(config) +var svc *dynamodb.DynamoDB = dynamodb.New() +getter.DynamoDB = dynamodbiface.DynamoDBAPI(svc) +// Finally +getter.DynamoDB.GetItem(/* ... */) +``` + +## Querying in tests +Construct a `fakeDynamoDB` and add the necessary methods for each of those +structs (custom ones for `ItemGetter` and [whatever methods you're using for +DynamoDB](https://github.com/aws/aws-sdk-go/blob/master/service/dynamodb/dynamodbiface/interface.go)), +and you're good to go! +```go +type fakeDynamoDB struct { + dynamodbiface.DynamoDBAPI +} +var getter = new(ItemGetter) +getter.DynamoDB = &fakeDynamoDB{} +// And to run it (assuming you've mocked fakeDynamoDB.GetItem) +getter.DynamoDB.GetItem(/* ... */) +``` + +## Output +``` +$ go test -cover +PASS +coverage: 100.0% of statements +ok _/Users/shatil/workspace/aws-sdk-go/example/service/dynamodb/unitTest 0.008s +``` diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/dynamodb/unitTest/unitTest.go b/vendor/github.com/aws/aws-sdk-go/example/service/dynamodb/unitTest/unitTest.go new file mode 100644 index 000000000..74e65f90a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/example/service/dynamodb/unitTest/unitTest.go @@ -0,0 +1,41 @@ +// +build example + +// Package unitTest demonstrates how to unit test, without needing to pass a +// connector to every function, code that uses DynamoDB. +package unitTest + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/dynamodb" + "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute" + "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface" +) + +// ItemGetter can be assigned a DynamoDB connector like: +// svc := dynamodb.DynamoDB(sess) +// getter.DynamoDB = dynamodbiface.DynamoDBAPI(svc) +type ItemGetter struct { + DynamoDB dynamodbiface.DynamoDBAPI +} + +// Get a value from a DynamoDB table containing entries like: +// {"id": "my primary key", "value": "valuable value"} +func (ig *ItemGetter) Get(id string) (value string) { + var input = &dynamodb.GetItemInput{ + Key: map[string]*dynamodb.AttributeValue{ + "id": { + S: aws.String(id), + }, + }, + TableName: aws.String("my_table"), + AttributesToGet: []*string{ + aws.String("value"), + }, + } + if output, err := ig.DynamoDB.GetItem(input); err == nil { + if _, ok := output.Item["value"]; ok { + dynamodbattribute.Unmarshal(output.Item["value"], &value) + } + } + return +} diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/dynamodb/unitTest/unitTest_test.go b/vendor/github.com/aws/aws-sdk-go/example/service/dynamodb/unitTest/unitTest_test.go new file mode 100644 index 000000000..83078acc3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/example/service/dynamodb/unitTest/unitTest_test.go @@ -0,0 +1,59 @@ +// +build example + +// Unit tests for package unitTest. +package unitTest + +import ( + "errors" + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/dynamodb" + "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface" +) + +// A fakeDynamoDB instance. During testing, instatiate ItemGetter, then simply +// assign an instance of fakeDynamoDB to it. +type fakeDynamoDB struct { + dynamodbiface.DynamoDBAPI + payload map[string]string // Store expected return values + err error +} + +// Mock GetItem such that the output returned carries values identical to input. +func (fd *fakeDynamoDB) GetItem(input *dynamodb.GetItemInput) (*dynamodb.GetItemOutput, error) { + output := new(dynamodb.GetItemOutput) + output.Item = make(map[string]*dynamodb.AttributeValue) + for key, value := range fd.payload { + output.Item[key] = &dynamodb.AttributeValue{ + S: aws.String(value), + } + } + return output, fd.err +} + +func TestItemGetterGet(t *testing.T) { + expectedKey := "expected key" + expectedValue := "expected value" + getter := new(ItemGetter) + getter.DynamoDB = &fakeDynamoDB{ + payload: map[string]string{"id": expectedKey, "value": expectedValue}, + } + if actualValue := getter.Get(expectedKey); actualValue != expectedValue { + t.Errorf("Expected %q but got %q", expectedValue, actualValue) + } +} + +// When DynamoDB.GetItem returns a non-nil error, expect an empty string. +func TestItemGetterGetFail(t *testing.T) { + expectedKey := "expected key" + expectedValue := "expected value" + getter := new(ItemGetter) + getter.DynamoDB = &fakeDynamoDB{ + payload: map[string]string{"id": expectedKey, "value": expectedValue}, + err: errors.New("any error"), + } + if actualValue := getter.Get(expectedKey); len(actualValue) > 0 { + t.Errorf("Expected %q but got %q", expectedValue, actualValue) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/ec2/filterInstances/filter_ec2_by_tag.go b/vendor/github.com/aws/aws-sdk-go/example/service/ec2/filterInstances/filter_ec2_by_tag.go index f83e942b4..c01946dca 100644 --- a/vendor/github.com/aws/aws-sdk-go/example/service/ec2/filterInstances/filter_ec2_by_tag.go +++ b/vendor/github.com/aws/aws-sdk-go/example/service/ec2/filterInstances/filter_ec2_by_tag.go @@ -18,10 +18,7 @@ import ( // Usage: // filter_ec2_by_tag func main() { - sess, err := session.NewSession() - if err != nil { - log.Fatalf("failed to create session %v\n", err) - } + sess := session.Must(session.NewSession()) nameFilter := os.Args[1] awsRegion := "us-east-1" diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/s3/concatObjects/concatObjects.go b/vendor/github.com/aws/aws-sdk-go/example/service/s3/concatObjects/concatObjects.go index 5c5982636..47cba6072 100644 --- a/vendor/github.com/aws/aws-sdk-go/example/service/s3/concatObjects/concatObjects.go +++ b/vendor/github.com/aws/aws-sdk-go/example/service/s3/concatObjects/concatObjects.go @@ -86,11 +86,11 @@ func main() { UploadId: output.UploadId, MultipartUpload: &s3.CompletedMultipartUpload{ Parts: []*s3.CompletedPart{ - &s3.CompletedPart{ + { ETag: foo, PartNumber: aws.Int64(1), }, - &s3.CompletedPart{ + { ETag: bar, PartNumber: aws.Int64(2), }, diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjects/listObjects.go b/vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjects/listObjects.go index 75ea4c501..3ed5eed07 100644 --- a/vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjects/listObjects.go +++ b/vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjects/listObjects.go @@ -20,16 +20,12 @@ func main() { return } - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) i := 0 - err = svc.ListObjectsPages(&s3.ListObjectsInput{ + err := svc.ListObjectsPages(&s3.ListObjectsInput{ Bucket: &os.Args[1], }, func(p *s3.ListObjectsOutput, last bool) (shouldContinue bool) { fmt.Println("Page,", i) diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/s3/putObjectAcl/README.md b/vendor/github.com/aws/aws-sdk-go/example/service/s3/putObjectAcl/README.md new file mode 100644 index 000000000..8a696bea7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/example/service/s3/putObjectAcl/README.md @@ -0,0 +1,40 @@ +# Example + +putObjectAcl is an example using the AWS SDK for Go to put an ACL on an S3 object. + +# Usage + +```sh +putBucketAcl + -region // required + -bucket // required + -key // required + -owner-name + -owner-id + -grantee-type // required + -uri + -email + -user-id + -display-name +``` + +```sh +go run -tags example putObjectAcl.go + -bucket + -key + -owner-name + -owner-id + -grantee-type + -user-id +``` + +Depending on the type is used depends on which of the three, `uri`, `email`, or `user-id`, needs to be used. +* `s3.TypeCanonicalUser`: `user-id` or `display-name` must be used +* `s3.TypeAmazonCustomerByEmail`: `email` must be used +* `s3.TypeGroup`: `uri` must be used + +Output: +``` +success { +} nil +``` diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/s3/putObjectAcl/putObjectAcl.go b/vendor/github.com/aws/aws-sdk-go/example/service/s3/putObjectAcl/putObjectAcl.go new file mode 100644 index 000000000..c61fea6f7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/example/service/s3/putObjectAcl/putObjectAcl.go @@ -0,0 +1,89 @@ +package main + +import ( + "flag" + "fmt" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/s3" +) + +// Put an ACL on an S3 object +// +// Usage: +// putBucketAcl +// -region // required +// -bucket // required +// -key // required +// -owner-name +// -owner-id +// -grantee-type // required +// -uri +// -email +// -user-id +func main() { + regionPtr := flag.String("region", "", "region of your request") + bucketPtr := flag.String("bucket", "", "name of your bucket") + keyPtr := flag.String("key", "", "of your object") + ownerNamePtr := flag.String("owner-name", "", "of your request") + ownerIDPtr := flag.String("owner-id", "", "of your request") + granteeTypePtr := flag.String("grantee-type", "", "of your request") + uriPtr := flag.String("uri", "", "of your grantee type") + emailPtr := flag.String("email", "", "of your grantee type") + userPtr := flag.String("user-id", "", "of your grantee type") + displayNamePtr := flag.String("display-name", "", "of your grantee type") + flag.Parse() + + // Based off the type, fields must be excluded. + switch *granteeTypePtr { + case s3.TypeCanonicalUser: + emailPtr, uriPtr = nil, nil + if *displayNamePtr == "" { + displayNamePtr = nil + } + + if *userPtr == "" { + userPtr = nil + } + case s3.TypeAmazonCustomerByEmail: + uriPtr, userPtr = nil, nil + case s3.TypeGroup: + emailPtr, userPtr = nil, nil + } + + sess := session.Must(session.NewSession(&aws.Config{ + Region: regionPtr, + })) + + svc := s3.New(sess) + + resp, err := svc.PutObjectAcl(&s3.PutObjectAclInput{ + Bucket: bucketPtr, + Key: keyPtr, + AccessControlPolicy: &s3.AccessControlPolicy{ + Owner: &s3.Owner{ + DisplayName: ownerNamePtr, + ID: ownerIDPtr, + }, + Grants: []*s3.Grant{ + { + Grantee: &s3.Grantee{ + Type: granteeTypePtr, + DisplayName: displayNamePtr, + URI: uriPtr, + EmailAddress: emailPtr, + ID: userPtr, + }, + Permission: aws.String(s3.BucketLogsPermissionFullControl), + }, + }, + }, + }) + + if err != nil { + fmt.Println("failed", err) + } else { + fmt.Println("success", resp) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/sqs/mockingClientsForTests/README.md b/vendor/github.com/aws/aws-sdk-go/example/service/sqs/mockingClientsForTests/README.md new file mode 100644 index 000000000..7564f32e3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/example/service/sqs/mockingClientsForTests/README.md @@ -0,0 +1,9 @@ +# Example + +This example shows how the SDK's API interfaces can be used by your code intead of the concrete service client type directly. Using this pattern allows you to mock out your code's usage of the SDK's service client for testing. + +# Usage + +Use the `go test` tool to verify the `Queue` type's `GetMessages` function correctly unmarshals the SQS message responses. + +`go test ./` diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/sqs/mockingClientsForTests/ifaceExample.go b/vendor/github.com/aws/aws-sdk-go/example/service/sqs/mockingClientsForTests/ifaceExample.go new file mode 100644 index 000000000..ab748743c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/example/service/sqs/mockingClientsForTests/ifaceExample.go @@ -0,0 +1,77 @@ +package main + +import ( + "encoding/json" + "fmt" + "os" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/sqs" + "github.com/aws/aws-sdk-go/service/sqs/sqsiface" +) + +func main() { + if len(os.Args) < 2 { + fmt.Fprintln(os.Stderr, "Queue URL required.") + os.Exit(1) + } + + sess := session.Must(session.NewSession()) + + q := Queue{ + Client: sqs.New(sess), + URL: os.Args[1], + } + + msgs, err := q.GetMessages(20) + if err != nil { + fmt.Fprintln(os.Stderr, err.Error()) + os.Exit(1) + } + + fmt.Println("Messages:") + for _, msg := range msgs { + fmt.Printf("%s>%s: %s\n", msg.From, msg.To, msg.Msg) + } +} + +// Queue provides the ability to handle SQS messages. +type Queue struct { + Client sqsiface.SQSAPI + URL string +} + +// Message is a concrete representation of the SQS message +type Message struct { + From string `json:"from"` + To string `json:"to"` + Msg string `json:"msg"` +} + +// GetMessages returns the parsed messages from SQS if any. If an error +// occurs that error will be returned. +func (q *Queue) GetMessages(waitTimeout int64) ([]Message, error) { + params := sqs.ReceiveMessageInput{ + QueueUrl: aws.String(q.URL), + } + if waitTimeout > 0 { + params.WaitTimeSeconds = aws.Int64(waitTimeout) + } + resp, err := q.Client.ReceiveMessage(¶ms) + if err != nil { + return nil, fmt.Errorf("failed to get messages, %v", err) + } + + msgs := make([]Message, len(resp.Messages)) + for i, msg := range resp.Messages { + parsedMsg := Message{} + if err := json.Unmarshal([]byte(aws.StringValue(msg.Body)), &parsedMsg); err != nil { + return nil, fmt.Errorf("failed to unmarshal message, %v", err) + } + + msgs[i] = parsedMsg + } + + return msgs, nil +} diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/sqs/mockingClientsForTests/ifaceExample_test.go b/vendor/github.com/aws/aws-sdk-go/example/service/sqs/mockingClientsForTests/ifaceExample_test.go new file mode 100644 index 000000000..bd781b946 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/example/service/sqs/mockingClientsForTests/ifaceExample_test.go @@ -0,0 +1,63 @@ +package main + +import ( + "fmt" + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/sqs" + "github.com/aws/aws-sdk-go/service/sqs/sqsiface" +) + +type mockedReceiveMsgs struct { + sqsiface.SQSAPI + Resp sqs.ReceiveMessageOutput +} + +func (m mockedReceiveMsgs) ReceiveMessage(in *sqs.ReceiveMessageInput) (*sqs.ReceiveMessageOutput, error) { + // Only need to return mocked response output + return &m.Resp, nil +} + +func TestQueueGetMessage(t *testing.T) { + cases := []struct { + Resp sqs.ReceiveMessageOutput + Expected []Message + }{ + { // Case 1, expect parsed responses + Resp: sqs.ReceiveMessageOutput{ + Messages: []*sqs.Message{ + {Body: aws.String(`{"from":"user_1","to":"room_1","msg":"Hello!"}`)}, + {Body: aws.String(`{"from":"user_2","to":"room_1","msg":"Hi user_1 :)"}`)}, + }, + }, + Expected: []Message{ + {From: "user_1", To: "room_1", Msg: "Hello!"}, + {From: "user_2", To: "room_1", Msg: "Hi user_1 :)"}, + }, + }, + { // Case 2, not messages returned + Resp: sqs.ReceiveMessageOutput{}, + Expected: []Message{}, + }, + } + + for i, c := range cases { + q := Queue{ + Client: mockedReceiveMsgs{Resp: c.Resp}, + URL: fmt.Sprintf("mockURL_%d", i), + } + msgs, err := q.GetMessages(20) + if err != nil { + t.Fatalf("%d, unexpected error, %v", i, err) + } + if a, e := len(msgs), len(c.Expected); a != e { + t.Fatalf("%d, expected %d messages, got %d", i, e, a) + } + for j, msg := range msgs { + if a, e := msg, c.Expected[j]; a != e { + t.Errorf("%d, expected %v message, got %v", i, e, a) + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/api-2.json index a71e7d461..56f498cc2 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/api-2.json @@ -8,7 +8,8 @@ "serviceAbbreviation":"ACM", "serviceFullName":"AWS Certificate Manager", "signatureVersion":"v4", - "targetPrefix":"CertificateManager" + "targetPrefix":"CertificateManager", + "uid":"acm-2015-12-08" }, "operations":{ "AddTagsToCertificate":{ @@ -203,7 +204,8 @@ "SignatureAlgorithm":{"shape":"String"}, "InUseBy":{"shape":"InUseList"}, "FailureReason":{"shape":"FailureReason"}, - "Type":{"shape":"CertificateType"} + "Type":{"shape":"CertificateType"}, + "RenewalSummary":{"shape":"RenewalSummary"} } }, "CertificateStatus":{ @@ -272,13 +274,22 @@ "min":1, "pattern":"^(\\*\\.)?(((?!-)[A-Za-z0-9-]{0,62}[A-Za-z0-9])\\.)+((?!-)[A-Za-z0-9-]{1,62}[A-Za-z0-9])$" }, + "DomainStatus":{ + "type":"string", + "enum":[ + "PENDING_VALIDATION", + "SUCCESS", + "FAILED" + ] + }, "DomainValidation":{ "type":"structure", "required":["DomainName"], "members":{ "DomainName":{"shape":"DomainNameString"}, "ValidationEmails":{"shape":"ValidationEmailList"}, - "ValidationDomain":{"shape":"DomainNameString"} + "ValidationDomain":{"shape":"DomainNameString"}, + "ValidationStatus":{"shape":"DomainStatus"} } }, "DomainValidationList":{ @@ -456,6 +467,26 @@ "Tags":{"shape":"TagList"} } }, + "RenewalStatus":{ + "type":"string", + "enum":[ + "PENDING_AUTO_RENEWAL", + "PENDING_VALIDATION", + "SUCCESS", + "FAILED" + ] + }, + "RenewalSummary":{ + "type":"structure", + "required":[ + "RenewalStatus", + "DomainValidationOptions" + ], + "members":{ + "RenewalStatus":{"shape":"RenewalStatus"}, + "DomainValidationOptions":{"shape":"DomainValidationList"} + } + }, "RequestCertificateRequest":{ "type":"structure", "required":["DomainName"], diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/docs-2.json index 6d7ecc540..53d2b32a1 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/docs-2.json @@ -4,11 +4,11 @@ "operations": { "AddTagsToCertificate": "

Adds one or more tags to an ACM Certificate. Tags are labels that you can use to identify and organize your AWS resources. Each tag consists of a key and an optional value. You specify the certificate on input by its Amazon Resource Name (ARN). You specify the tag by using a key-value pair.

You can apply a tag to just one certificate if you want to identify a specific characteristic of that certificate, or you can apply the same tag to multiple certificates if you want to filter for a common relationship among those certificates. Similarly, you can apply the same tag to multiple resources if you want to specify a relationship among those resources. For example, you can add the same tag to an ACM Certificate and an Elastic Load Balancing load balancer to indicate that they are both used by the same website. For more information, see Tagging ACM Certificates.

To remove one or more tags, use the RemoveTagsFromCertificate action. To view all of the tags that have been applied to the certificate, use the ListTagsForCertificate action.

", "DeleteCertificate": "

Deletes an ACM Certificate and its associated private key. If this action succeeds, the certificate no longer appears in the list of ACM Certificates that can be displayed by calling the ListCertificates action or be retrieved by calling the GetCertificate action. The certificate will not be available for use by other AWS services.

You cannot delete an ACM Certificate that is being used by another AWS service. To delete a certificate that is in use, the certificate association must first be removed.

", - "DescribeCertificate": "

Returns a list of the fields contained in the specified ACM Certificate. For example, this action returns the certificate status, a flag that indicates whether the certificate is associated with any other AWS service, and the date at which the certificate request was created. You specify the ACM Certificate on input by its Amazon Resource Name (ARN).

", + "DescribeCertificate": "

Returns detailed metadata about the specified ACM Certificate.

", "GetCertificate": "

Retrieves an ACM Certificate and certificate chain for the certificate specified by an ARN. The chain is an ordered list of certificates that contains the root certificate, intermediate certificates of subordinate CAs, and the ACM Certificate. The certificate and certificate chain are base64 encoded. If you want to decode the certificate chain to see the individual certificate fields, you can use OpenSSL.

Currently, ACM Certificates can be used only with Elastic Load Balancing and Amazon CloudFront.

", "ImportCertificate": "

Imports an SSL/TLS certificate into AWS Certificate Manager (ACM) to use with ACM's integrated AWS services.

ACM does not provide managed renewal for certificates that you import.

For more information about importing certificates into ACM, including the differences between certificates that you import and those that ACM provides, see Importing Certificates in the AWS Certificate Manager User Guide.

To import a certificate, you must provide the certificate and the matching private key. When the certificate is not self-signed, you must also provide a certificate chain. You can omit the certificate chain when importing a self-signed certificate.

The certificate, private key, and certificate chain must be PEM-encoded. For more information about converting these items to PEM format, see Importing Certificates Troubleshooting in the AWS Certificate Manager User Guide.

To import a new certificate, omit the CertificateArn field. Include this field only when you want to replace a previously imported certificate.

This operation returns the Amazon Resource Name (ARN) of the imported certificate.

", "ListCertificates": "

Retrieves a list of ACM Certificates and the domain name for each. You can optionally filter the list to return only the certificates that match the specified status.

", - "ListTagsForCertificate": "

Lists the tags that have been applied to the ACM Certificate. Use the certificate ARN to specify the certificate. To add a tag to an ACM Certificate, use the AddTagsToCertificate action. To delete a tag, use the RemoveTagsFromCertificate action.

", + "ListTagsForCertificate": "

Lists the tags that have been applied to the ACM Certificate. Use the certificate's Amazon Resource Name (ARN) to specify the certificate. To add a tag to an ACM Certificate, use the AddTagsToCertificate action. To delete a tag, use the RemoveTagsFromCertificate action.

", "RemoveTagsFromCertificate": "

Remove one or more tags from an ACM Certificate. A tag consists of a key-value pair. If you do not specify the value portion of the tag when calling this function, the tag will be removed regardless of value. If you specify a value, the tag is removed only if it is associated with the specified value.

To add tags to a certificate, use the AddTagsToCertificate action. To view all of the tags that have been applied to a specific ACM Certificate, use the ListTagsForCertificate action.

", "RequestCertificate": "

Requests an ACM Certificate for use with other AWS services. To request an ACM Certificate, you must specify the fully qualified domain name (FQDN) for your site. You can also specify additional FQDNs if users can reach your site by using other names. For each domain name you specify, email is sent to the domain owner to request approval to issue the certificate. After receiving approval from the domain owner, the ACM Certificate is issued. For more information, see the AWS Certificate Manager User Guide.

", "ResendValidationEmail": "

Resends the email that requests domain ownership validation. The domain owner or an authorized representative must approve the ACM Certificate before it can be issued. The certificate can be approved by clicking a link in the mail to navigate to the Amazon certificate approval website and then clicking I Approve. However, the validation email can be blocked by spam filters. Therefore, if you do not receive the original mail, you can request that the mail be resent within 72 hours of requesting the ACM Certificate. If more than 72 hours have elapsed since your original request or since your last attempt to resend validation mail, you must request a new certificate.

" @@ -26,11 +26,11 @@ "CertificateDetail$CertificateArn": "

The Amazon Resource Name (ARN) of the certificate. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "CertificateSummary$CertificateArn": "

Amazon Resource Name (ARN) of the certificate. This is of the form:

arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

", "DeleteCertificateRequest$CertificateArn": "

String that contains the ARN of the ACM Certificate to be deleted. This must be of the form:

arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

", - "DescribeCertificateRequest$CertificateArn": "

String that contains an ACM Certificate ARN. The ARN must be of the form:

arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

", + "DescribeCertificateRequest$CertificateArn": "

The Amazon Resource Name (ARN) of the ACM Certificate. The ARN must have the following form:

arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

", "GetCertificateRequest$CertificateArn": "

String that contains a certificate ARN in the following format:

arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

", "ImportCertificateRequest$CertificateArn": "

The Amazon Resource Name (ARN) of an imported certificate to replace. To import a new certificate, omit this field.

", "ImportCertificateResponse$CertificateArn": "

The Amazon Resource Name (ARN) of the imported certificate.

", - "ListTagsForCertificateRequest$CertificateArn": "

String that contains the ARN of the ACM Certificate for which you want to list the tags. This must be of the form:

arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

", + "ListTagsForCertificateRequest$CertificateArn": "

String that contains the ARN of the ACM Certificate for which you want to list the tags. This has the following form:

arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

", "RemoveTagsFromCertificateRequest$CertificateArn": "

String that contains the ARN of the ACM Certificate with one or more tags that you want to remove. This must be of the form:

arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

", "RequestCertificateResponse$CertificateArn": "

String that contains the ARN of the issued certificate. This must be of the form:

arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012

", "ResendValidationEmailRequest$CertificateArn": "

String that contains the ARN of the requested certificate. The certificate ARN is generated and returned by the RequestCertificate action as soon as the request is made. By default, using this parameter causes email to be sent to all top-level domains you specified in the certificate request.

The ARN must be of the form:

arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012

" @@ -61,9 +61,9 @@ } }, "CertificateDetail": { - "base": "

Contains detailed metadata about an ACM Certificate. This structure is returned in the response to a DescribeCertificate request.

", + "base": "

Contains metadata about an ACM certificate. This structure is returned in the response to a DescribeCertificate request.

", "refs": { - "DescribeCertificateResponse$Certificate": "

Contains a CertificateDetail structure that lists the fields of an ACM Certificate.

" + "DescribeCertificateResponse$Certificate": "

Metadata about an ACM certificate.

" } }, "CertificateStatus": { @@ -125,17 +125,23 @@ "CertificateDetail$DomainName": "

The fully qualified domain name for the certificate, such as www.example.com or example.com.

", "CertificateSummary$DomainName": "

Fully qualified domain name (FQDN), such as www.example.com or example.com, for the certificate.

", "DomainList$member": null, - "DomainValidation$DomainName": "

Fully Qualified Domain Name (FQDN) of the form www.example.com or example.com.

", - "DomainValidation$ValidationDomain": "

The base validation domain that acts as the suffix of the email addresses that are used to send the emails.

", - "DomainValidationOption$DomainName": "

Fully Qualified Domain Name (FQDN) of the certificate being requested.

", - "DomainValidationOption$ValidationDomain": "

The domain to which validation email is sent. This is the base validation domain that will act as the suffix of the email addresses. This must be the same as the DomainName value or a superdomain of the DomainName value. For example, if you requested a certificate for site.subdomain.example.com and specify a ValidationDomain of subdomain.example.com, ACM sends email to the domain registrant, technical contact, and administrative contact in WHOIS for the base domain and the following five addresses:

  • admin@subdomain.example.com

  • administrator@subdomain.example.com

  • hostmaster@subdomain.example.com

  • postmaster@subdomain.example.com

  • webmaster@subdomain.example.com

", - "RequestCertificateRequest$DomainName": "

Fully qualified domain name (FQDN), such as www.example.com, of the site you want to secure with an ACM Certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com.

", - "ResendValidationEmailRequest$Domain": "

The Fully Qualified Domain Name (FQDN) of the certificate that needs to be validated.

", + "DomainValidation$DomainName": "

A fully qualified domain name (FQDN) in the certificate. For example, www.example.com or example.com.

", + "DomainValidation$ValidationDomain": "

The domain name that ACM used to send domain validation emails.

", + "DomainValidationOption$DomainName": "

A fully qualified domain name (FQDN) in the certificate request.

", + "DomainValidationOption$ValidationDomain": "

The domain name that you want ACM to use to send you validation emails. This domain name is the suffix of the email addresses that you want ACM to use. This must be the same as the DomainName value or a superdomain of the DomainName value. For example, if you request a certificate for testing.example.com, you can specify example.com for this value. In that case, ACM sends domain validation emails to the following five addresses:

  • admin@example.com

  • administrator@example.com

  • hostmaster@example.com

  • postmaster@example.com

  • webmaster@example.com

", + "RequestCertificateRequest$DomainName": "

Fully qualified domain name (FQDN), such as www.example.com, of the site that you want to secure with an ACM Certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com.

", + "ResendValidationEmailRequest$Domain": "

The fully qualified domain name (FQDN) of the certificate that needs to be validated.

", "ResendValidationEmailRequest$ValidationDomain": "

The base validation domain that will act as the suffix of the email addresses that are used to send the emails. This must be the same as the Domain value or a superdomain of the Domain value. For example, if you requested a certificate for site.subdomain.example.com and specify a ValidationDomain of subdomain.example.com, ACM sends email to the domain registrant, technical contact, and administrative contact in WHOIS and the following five addresses:

  • admin@subdomain.example.com

  • administrator@subdomain.example.com

  • hostmaster@subdomain.example.com

  • postmaster@subdomain.example.com

  • webmaster@subdomain.example.com

" } }, + "DomainStatus": { + "base": null, + "refs": { + "DomainValidation$ValidationStatus": "

The validation status of the domain name.

" + } + }, "DomainValidation": { - "base": "

Structure that contains the domain name, the base validation domain to which validation email is sent, and the email addresses used to validate the domain identity.

", + "base": "

Contains information about the validation of each domain name in the certificate.

", "refs": { "DomainValidationList$member": null } @@ -143,11 +149,12 @@ "DomainValidationList": { "base": null, "refs": { - "CertificateDetail$DomainValidationOptions": "

Contains information about the email address or addresses used for domain validation. This field exists only when the certificate type is AMAZON_ISSUED.

" + "CertificateDetail$DomainValidationOptions": "

Contains information about the initial validation of each domain name that occurs as a result of the RequestCertificate request. This field exists only when the certificate type is AMAZON_ISSUED.

", + "RenewalSummary$DomainValidationOptions": "

Contains information about the validation of each domain name in the certificate, as it pertains to ACM's managed renewal. This is different from the initial validation that occurs as a result of the RequestCertificate request. This field exists only when the certificate type is AMAZON_ISSUED.

" } }, "DomainValidationOption": { - "base": "

This structure is used in the request object of the RequestCertificate action.

", + "base": "

Contains information about the domain names that you want ACM to use to send you emails to validate your ownership of the domain.

", "refs": { "DomainValidationOptionList$member": null } @@ -155,7 +162,7 @@ "DomainValidationOptionList": { "base": null, "refs": { - "RequestCertificateRequest$DomainValidationOptions": "

The base validation domain that will act as the suffix of the email addresses that are used to send the emails. This must be the same as the Domain value or a superdomain of the Domain value. For example, if you requested a certificate for test.example.com and specify DomainValidationOptions of example.com, ACM sends email to the domain registrant, technical contact, and administrative contact in WHOIS and the following five addresses:

  • admin@example.com

  • administrator@example.com

  • hostmaster@example.com

  • postmaster@example.com

  • webmaster@example.com

" + "RequestCertificateRequest$DomainValidationOptions": "

The domain name that you want ACM to use to send you emails to validate your ownership of the domain.

" } }, "FailureReason": { @@ -271,6 +278,18 @@ "refs": { } }, + "RenewalStatus": { + "base": null, + "refs": { + "RenewalSummary$RenewalStatus": "

The status of ACM's managed renewal of the certificate.

" + } + }, + "RenewalSummary": { + "base": "

Contains information about the status of ACM's managed renewal for the certificate. This structure exists only when the certificate type is AMAZON_ISSUED.

", + "refs": { + "CertificateDetail$RenewalSummary": "

Contains information about the status of ACM's managed renewal for the certificate. This field exists only when the certificate type is AMAZON_ISSUED.

" + } + }, "RequestCertificateRequest": { "base": null, "refs": { @@ -372,7 +391,7 @@ "ValidationEmailList": { "base": null, "refs": { - "DomainValidation$ValidationEmails": "

A list of contact address for the domain registrant.

" + "DomainValidation$ValidationEmails": "

A list of email addresses that ACM used to send domain validation emails.

" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/paginators-1.json index 036e35849..611eb86d2 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/paginators-1.json @@ -1,10 +1,10 @@ { "pagination": { "ListCertificates": { - "limit_key": "MaxItems", "input_token": "NextToken", + "limit_key": "MaxItems", "output_token": "NextToken", "result_key": "CertificateSummaryList" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/api-2.json index ffc19650c..2c5d5fb79 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/api-2.json @@ -5,7 +5,8 @@ "endpointPrefix":"apigateway", "protocol":"rest-json", "serviceFullName":"Amazon API Gateway", - "signatureVersion":"v4" + "signatureVersion":"v4", + "uid":"apigateway-2015-07-09" }, "operations":{ "CreateApiKey":{ @@ -79,6 +80,42 @@ {"shape":"ServiceUnavailableException"} ] }, + "CreateDocumentationPart":{ + "name":"CreateDocumentationPart", + "http":{ + "method":"POST", + "requestUri":"/restapis/{restapi_id}/documentation/parts", + "responseCode":201 + }, + "input":{"shape":"CreateDocumentationPartRequest"}, + "output":{"shape":"DocumentationPart"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ConflictException"}, + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"LimitExceededException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "CreateDocumentationVersion":{ + "name":"CreateDocumentationVersion", + "http":{ + "method":"POST", + "requestUri":"/restapis/{restapi_id}/documentation/versions", + "responseCode":201 + }, + "input":{"shape":"CreateDocumentationVersionRequest"}, + "output":{"shape":"DocumentationVersion"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ConflictException"}, + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"LimitExceededException"}, + {"shape":"TooManyRequestsException"} + ] + }, "CreateDomainName":{ "name":"CreateDomainName", "http":{ @@ -179,7 +216,8 @@ {"shape":"UnauthorizedException"}, {"shape":"TooManyRequestsException"}, {"shape":"LimitExceededException"}, - {"shape":"ConflictException"} + {"shape":"ConflictException"}, + {"shape":"NotFoundException"} ] }, "CreateUsagePlanKey":{ @@ -273,6 +311,38 @@ {"shape":"TooManyRequestsException"} ] }, + "DeleteDocumentationPart":{ + "name":"DeleteDocumentationPart", + "http":{ + "method":"DELETE", + "requestUri":"/restapis/{restapi_id}/documentation/parts/{part_id}", + "responseCode":202 + }, + "input":{"shape":"DeleteDocumentationPartRequest"}, + "errors":[ + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"ConflictException"}, + {"shape":"BadRequestException"} + ] + }, + "DeleteDocumentationVersion":{ + "name":"DeleteDocumentationVersion", + "http":{ + "method":"DELETE", + "requestUri":"/restapis/{restapi_id}/documentation/versions/{doc_version}", + "responseCode":202 + }, + "input":{"shape":"DeleteDocumentationVersionRequest"}, + "errors":[ + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"BadRequestException"}, + {"shape":"ConflictException"}, + {"shape":"TooManyRequestsException"} + ] + }, "DeleteDomainName":{ "name":"DeleteDomainName", "http":{ @@ -644,6 +714,64 @@ {"shape":"ServiceUnavailableException"} ] }, + "GetDocumentationPart":{ + "name":"GetDocumentationPart", + "http":{ + "method":"GET", + "requestUri":"/restapis/{restapi_id}/documentation/parts/{part_id}" + }, + "input":{"shape":"GetDocumentationPartRequest"}, + "output":{"shape":"DocumentationPart"}, + "errors":[ + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "GetDocumentationParts":{ + "name":"GetDocumentationParts", + "http":{ + "method":"GET", + "requestUri":"/restapis/{restapi_id}/documentation/parts" + }, + "input":{"shape":"GetDocumentationPartsRequest"}, + "output":{"shape":"DocumentationParts"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "GetDocumentationVersion":{ + "name":"GetDocumentationVersion", + "http":{ + "method":"GET", + "requestUri":"/restapis/{restapi_id}/documentation/versions/{doc_version}" + }, + "input":{"shape":"GetDocumentationVersionRequest"}, + "output":{"shape":"DocumentationVersion"}, + "errors":[ + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "GetDocumentationVersions":{ + "name":"GetDocumentationVersions", + "http":{ + "method":"GET", + "requestUri":"/restapis/{restapi_id}/documentation/versions" + }, + "input":{"shape":"GetDocumentationVersionsRequest"}, + "output":{"shape":"DocumentationVersions"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"} + ] + }, "GetDomainName":{ "name":"GetDomainName", "http":{ @@ -862,6 +990,33 @@ {"shape":"TooManyRequestsException"} ] }, + "GetSdkType":{ + "name":"GetSdkType", + "http":{ + "method":"GET", + "requestUri":"/sdktypes/{sdktype_id}" + }, + "input":{"shape":"GetSdkTypeRequest"}, + "output":{"shape":"SdkType"}, + "errors":[ + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "GetSdkTypes":{ + "name":"GetSdkTypes", + "http":{ + "method":"GET", + "requestUri":"/sdktypes" + }, + "input":{"shape":"GetSdkTypesRequest"}, + "output":{"shape":"SdkTypes"}, + "errors":[ + {"shape":"UnauthorizedException"}, + {"shape":"TooManyRequestsException"} + ] + }, "GetStage":{ "name":"GetStage", "http":{ @@ -963,7 +1118,8 @@ {"shape":"BadRequestException"}, {"shape":"UnauthorizedException"}, {"shape":"TooManyRequestsException"}, - {"shape":"ConflictException"} + {"shape":"ConflictException"}, + {"shape":"NotFoundException"} ] }, "ImportApiKeys":{ @@ -984,6 +1140,22 @@ {"shape":"ConflictException"} ] }, + "ImportDocumentationParts":{ + "name":"ImportDocumentationParts", + "http":{ + "method":"PUT", + "requestUri":"/restapis/{restapi_id}/documentation/parts" + }, + "input":{"shape":"ImportDocumentationPartsRequest"}, + "output":{"shape":"DocumentationPartIds"}, + "errors":[ + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"BadRequestException"}, + {"shape":"LimitExceededException"}, + {"shape":"TooManyRequestsException"} + ] + }, "ImportRestApi":{ "name":"ImportRestApi", "http":{ @@ -1212,6 +1384,39 @@ {"shape":"ServiceUnavailableException"} ] }, + "UpdateDocumentationPart":{ + "name":"UpdateDocumentationPart", + "http":{ + "method":"PATCH", + "requestUri":"/restapis/{restapi_id}/documentation/parts/{part_id}" + }, + "input":{"shape":"UpdateDocumentationPartRequest"}, + "output":{"shape":"DocumentationPart"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"LimitExceededException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "UpdateDocumentationVersion":{ + "name":"UpdateDocumentationVersion", + "http":{ + "method":"PATCH", + "requestUri":"/restapis/{restapi_id}/documentation/versions/{doc_version}" + }, + "input":{"shape":"UpdateDocumentationVersionRequest"}, + "output":{"shape":"DocumentationVersion"}, + "errors":[ + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"BadRequestException"}, + {"shape":"TooManyRequestsException"} + ] + }, "UpdateDomainName":{ "name":"UpdateDomainName", "http":{ @@ -1406,6 +1611,7 @@ "id":{"shape":"String"}, "value":{"shape":"String"}, "name":{"shape":"String"}, + "customerId":{"shape":"String"}, "description":{"shape":"String"}, "enabled":{"shape":"Boolean"}, "createdDate":{"shape":"Timestamp"}, @@ -1553,6 +1759,13 @@ "error":{"httpStatusCode":409}, "exception":true }, + "ContentHandlingStrategy":{ + "type":"string", + "enum":[ + "CONVERT_TO_BINARY", + "CONVERT_TO_TEXT" + ] + }, "CreateApiKeyRequest":{ "type":"structure", "members":{ @@ -1561,7 +1774,8 @@ "enabled":{"shape":"Boolean"}, "generateDistinctId":{"shape":"Boolean"}, "value":{"shape":"String"}, - "stageKeys":{"shape":"ListOfStageKeys"} + "stageKeys":{"shape":"ListOfStageKeys"}, + "customerId":{"shape":"String"} } }, "CreateAuthorizerRequest":{ @@ -1608,10 +1822,7 @@ }, "CreateDeploymentRequest":{ "type":"structure", - "required":[ - "restApiId", - "stageName" - ], + "required":["restApiId"], "members":{ "restApiId":{ "shape":"String", @@ -1626,21 +1837,50 @@ "variables":{"shape":"MapOfStringToString"} } }, - "CreateDomainNameRequest":{ + "CreateDocumentationPartRequest":{ "type":"structure", "required":[ - "domainName", - "certificateName", - "certificateBody", - "certificatePrivateKey", - "certificateChain" + "restApiId", + "location", + "properties" ], + "members":{ + "restApiId":{ + "shape":"String", + "location":"uri", + "locationName":"restapi_id" + }, + "location":{"shape":"DocumentationPartLocation"}, + "properties":{"shape":"String"} + } + }, + "CreateDocumentationVersionRequest":{ + "type":"structure", + "required":[ + "restApiId", + "documentationVersion" + ], + "members":{ + "restApiId":{ + "shape":"String", + "location":"uri", + "locationName":"restapi_id" + }, + "documentationVersion":{"shape":"String"}, + "stageName":{"shape":"String"}, + "description":{"shape":"String"} + } + }, + "CreateDomainNameRequest":{ + "type":"structure", + "required":["domainName"], "members":{ "domainName":{"shape":"String"}, "certificateName":{"shape":"String"}, "certificateBody":{"shape":"String"}, "certificatePrivateKey":{"shape":"String"}, - "certificateChain":{"shape":"String"} + "certificateChain":{"shape":"String"}, + "certificateArn":{"shape":"String"} } }, "CreateModelRequest":{ @@ -1689,7 +1929,9 @@ "members":{ "name":{"shape":"String"}, "description":{"shape":"String"}, - "cloneFrom":{"shape":"String"} + "version":{"shape":"String"}, + "cloneFrom":{"shape":"String"}, + "binaryMediaTypes":{"shape":"ListOfString"} } }, "CreateStageRequest":{ @@ -1710,7 +1952,8 @@ "description":{"shape":"String"}, "cacheClusterEnabled":{"shape":"Boolean"}, "cacheClusterSize":{"shape":"CacheClusterSize"}, - "variables":{"shape":"MapOfStringToString"} + "variables":{"shape":"MapOfStringToString"}, + "documentationVersion":{"shape":"String"} } }, "CreateUsagePlanKeyRequest":{ @@ -1820,6 +2063,44 @@ } } }, + "DeleteDocumentationPartRequest":{ + "type":"structure", + "required":[ + "restApiId", + "documentationPartId" + ], + "members":{ + "restApiId":{ + "shape":"String", + "location":"uri", + "locationName":"restapi_id" + }, + "documentationPartId":{ + "shape":"String", + "location":"uri", + "locationName":"part_id" + } + } + }, + "DeleteDocumentationVersionRequest":{ + "type":"structure", + "required":[ + "restApiId", + "documentationVersion" + ], + "members":{ + "restApiId":{ + "shape":"String", + "location":"uri", + "locationName":"restapi_id" + }, + "documentationVersion":{ + "shape":"String", + "location":"uri", + "locationName":"doc_version" + } + } + }, "DeleteDomainNameRequest":{ "type":"structure", "required":["domainName"], @@ -2060,11 +2341,87 @@ } } }, + "DocumentationPart":{ + "type":"structure", + "members":{ + "id":{"shape":"String"}, + "location":{"shape":"DocumentationPartLocation"}, + "properties":{"shape":"String"} + } + }, + "DocumentationPartIds":{ + "type":"structure", + "members":{ + "ids":{"shape":"ListOfString"}, + "warnings":{"shape":"ListOfString"} + } + }, + "DocumentationPartLocation":{ + "type":"structure", + "required":["type"], + "members":{ + "type":{"shape":"DocumentationPartType"}, + "path":{"shape":"String"}, + "method":{"shape":"String"}, + "statusCode":{"shape":"DocumentationPartLocationStatusCode"}, + "name":{"shape":"String"} + } + }, + "DocumentationPartLocationStatusCode":{ + "type":"string", + "pattern":"^([1-5]\\d\\d|\\*|\\s*)$" + }, + "DocumentationPartType":{ + "type":"string", + "enum":[ + "API", + "AUTHORIZER", + "MODEL", + "RESOURCE", + "METHOD", + "PATH_PARAMETER", + "QUERY_PARAMETER", + "REQUEST_HEADER", + "REQUEST_BODY", + "RESPONSE", + "RESPONSE_HEADER", + "RESPONSE_BODY" + ] + }, + "DocumentationParts":{ + "type":"structure", + "members":{ + "position":{"shape":"String"}, + "items":{ + "shape":"ListOfDocumentationPart", + "locationName":"item" + } + } + }, + "DocumentationVersion":{ + "type":"structure", + "members":{ + "version":{"shape":"String"}, + "createdDate":{"shape":"Timestamp"}, + "description":{"shape":"String"} + } + }, + "DocumentationVersions":{ + "type":"structure", + "members":{ + "position":{"shape":"String"}, + "items":{ + "shape":"ListOfDocumentationVersion", + "locationName":"item" + } + } + }, "DomainName":{ "type":"structure", "members":{ "domainName":{"shape":"String"}, "certificateName":{"shape":"String"}, + "certificateArn":{"shape":"String"}, "certificateUploadDate":{"shape":"Timestamp"}, "distributionDomainName":{"shape":"String"} } @@ -2156,7 +2513,7 @@ "locationName":"api_Key" }, "includeValue":{ - "shape":"Boolean", + "shape":"NullableBoolean", "location":"querystring", "locationName":"includeValue" } @@ -2180,8 +2537,13 @@ "location":"querystring", "locationName":"name" }, + "customerId":{ + "shape":"String", + "location":"querystring", + "locationName":"customerId" + }, "includeValues":{ - "shape":"Boolean", + "shape":"NullableBoolean", "location":"querystring", "locationName":"includeValues" } @@ -2333,6 +2695,101 @@ } } }, + "GetDocumentationPartRequest":{ + "type":"structure", + "required":[ + "restApiId", + "documentationPartId" + ], + "members":{ + "restApiId":{ + "shape":"String", + "location":"uri", + "locationName":"restapi_id" + }, + "documentationPartId":{ + "shape":"String", + "location":"uri", + "locationName":"part_id" + } + } + }, + "GetDocumentationPartsRequest":{ + "type":"structure", + "required":["restApiId"], + "members":{ + "restApiId":{ + "shape":"String", + "location":"uri", + "locationName":"restapi_id" + }, + "type":{ + "shape":"DocumentationPartType", + "location":"querystring", + "locationName":"type" + }, + "nameQuery":{ + "shape":"String", + "location":"querystring", + "locationName":"name" + }, + "path":{ + "shape":"String", + "location":"querystring", + "locationName":"path" + }, + "position":{ + "shape":"String", + "location":"querystring", + "locationName":"position" + }, + "limit":{ + "shape":"NullableInteger", + "location":"querystring", + "locationName":"limit" + } + } + }, + "GetDocumentationVersionRequest":{ + "type":"structure", + "required":[ + "restApiId", + "documentationVersion" + ], + "members":{ + "restApiId":{ + "shape":"String", + "location":"uri", + "locationName":"restapi_id" + }, + "documentationVersion":{ + "shape":"String", + "location":"uri", + "locationName":"doc_version" + } + } + }, + "GetDocumentationVersionsRequest":{ + "type":"structure", + "required":["restApiId"], + "members":{ + "restApiId":{ + "shape":"String", + "location":"uri", + "locationName":"restapi_id" + }, + "position":{ + "shape":"String", + "location":"querystring", + "locationName":"position" + }, + "limit":{ + "shape":"NullableInteger", + "location":"querystring", + "locationName":"limit" + } + } + }, "GetDomainNameRequest":{ "type":"structure", "required":["domainName"], @@ -2664,6 +3121,32 @@ } } }, + "GetSdkTypeRequest":{ + "type":"structure", + "required":["id"], + "members":{ + "id":{ + "shape":"String", + "location":"uri", + "locationName":"sdktype_id" + } + } + }, + "GetSdkTypesRequest":{ + "type":"structure", + "members":{ + "position":{ + "shape":"String", + "location":"querystring", + "locationName":"position" + }, + "limit":{ + "shape":"NullableInteger", + "location":"querystring", + "locationName":"limit" + } + } + }, "GetStageRequest":{ "type":"structure", "required":[ @@ -2836,6 +3319,32 @@ }, "payload":"body" }, + "ImportDocumentationPartsRequest":{ + "type":"structure", + "required":[ + "restApiId", + "body" + ], + "members":{ + "restApiId":{ + "shape":"String", + "location":"uri", + "locationName":"restapi_id" + }, + "mode":{ + "shape":"PutMode", + "location":"querystring", + "locationName":"mode" + }, + "failOnWarnings":{ + "shape":"Boolean", + "location":"querystring", + "locationName":"failonwarnings" + }, + "body":{"shape":"Blob"} + }, + "payload":"body" + }, "ImportRestApiRequest":{ "type":"structure", "required":["body"], @@ -2864,6 +3373,7 @@ "requestParameters":{"shape":"MapOfStringToString"}, "requestTemplates":{"shape":"MapOfStringToString"}, "passthroughBehavior":{"shape":"String"}, + "contentHandling":{"shape":"ContentHandlingStrategy"}, "cacheNamespace":{"shape":"String"}, "cacheKeyParameters":{"shape":"ListOfString"}, "integrationResponses":{"shape":"MapOfIntegrationResponse"} @@ -2875,7 +3385,8 @@ "statusCode":{"shape":"StatusCode"}, "selectionPattern":{"shape":"String"}, "responseParameters":{"shape":"MapOfStringToString"}, - "responseTemplates":{"shape":"MapOfStringToString"} + "responseTemplates":{"shape":"MapOfStringToString"}, + "contentHandling":{"shape":"ContentHandlingStrategy"} } }, "IntegrationType":{ @@ -2929,6 +3440,14 @@ "type":"list", "member":{"shape":"Deployment"} }, + "ListOfDocumentationPart":{ + "type":"list", + "member":{"shape":"DocumentationPart"} + }, + "ListOfDocumentationVersion":{ + "type":"list", + "member":{"shape":"DocumentationVersion"} + }, "ListOfDomainName":{ "type":"list", "member":{"shape":"DomainName"} @@ -2953,6 +3472,14 @@ "type":"list", "member":{"shape":"RestApi"} }, + "ListOfSdkConfigurationProperty":{ + "type":"list", + "member":{"shape":"SdkConfigurationProperty"} + }, + "ListOfSdkType":{ + "type":"list", + "member":{"shape":"SdkType"} + }, "ListOfStage":{ "type":"list", "member":{"shape":"Stage"} @@ -3035,6 +3562,7 @@ "authorizationType":{"shape":"String"}, "authorizerId":{"shape":"String"}, "apiKeyRequired":{"shape":"NullableBoolean"}, + "operationName":{"shape":"String"}, "requestParameters":{"shape":"MapOfStringToBoolean"}, "requestModels":{"shape":"MapOfStringToString"}, "methodResponses":{"shape":"MapOfMethodResponse"}, @@ -3162,7 +3690,8 @@ "requestTemplates":{"shape":"MapOfStringToString"}, "passthroughBehavior":{"shape":"String"}, "cacheNamespace":{"shape":"String"}, - "cacheKeyParameters":{"shape":"ListOfString"} + "cacheKeyParameters":{"shape":"ListOfString"}, + "contentHandling":{"shape":"ContentHandlingStrategy"} } }, "PutIntegrationResponseRequest":{ @@ -3196,7 +3725,8 @@ }, "selectionPattern":{"shape":"String"}, "responseParameters":{"shape":"MapOfStringToString"}, - "responseTemplates":{"shape":"MapOfStringToString"} + "responseTemplates":{"shape":"MapOfStringToString"}, + "contentHandling":{"shape":"ContentHandlingStrategy"} } }, "PutMethodRequest":{ @@ -3226,6 +3756,7 @@ "authorizationType":{"shape":"String"}, "authorizerId":{"shape":"String"}, "apiKeyRequired":{"shape":"Boolean"}, + "operationName":{"shape":"String"}, "requestParameters":{"shape":"MapOfStringToBoolean"}, "requestModels":{"shape":"MapOfStringToString"} } @@ -3343,7 +3874,9 @@ "name":{"shape":"String"}, "description":{"shape":"String"}, "createdDate":{"shape":"Timestamp"}, - "warnings":{"shape":"ListOfString"} + "version":{"shape":"String"}, + "warnings":{"shape":"ListOfString"}, + "binaryMediaTypes":{"shape":"ListOfString"} } }, "RestApis":{ @@ -3356,6 +3889,16 @@ } } }, + "SdkConfigurationProperty":{ + "type":"structure", + "members":{ + "name":{"shape":"String"}, + "friendlyName":{"shape":"String"}, + "description":{"shape":"String"}, + "required":{"shape":"Boolean"}, + "defaultValue":{"shape":"String"} + } + }, "SdkResponse":{ "type":"structure", "members":{ @@ -3373,6 +3916,25 @@ }, "payload":"body" }, + "SdkType":{ + "type":"structure", + "members":{ + "id":{"shape":"String"}, + "friendlyName":{"shape":"String"}, + "description":{"shape":"String"}, + "configurationProperties":{"shape":"ListOfSdkConfigurationProperty"} + } + }, + "SdkTypes":{ + "type":"structure", + "members":{ + "position":{"shape":"String"}, + "items":{ + "shape":"ListOfSdkType", + "locationName":"item" + } + } + }, "ServiceUnavailableException":{ "type":"structure", "members":{ @@ -3399,6 +3961,7 @@ "cacheClusterStatus":{"shape":"CacheClusterStatus"}, "methodSettings":{"shape":"MapOfMethodSettings"}, "variables":{"shape":"MapOfStringToString"}, + "documentationVersion":{"shape":"String"}, "createdDate":{"shape":"Timestamp"}, "lastUpdatedDate":{"shape":"Timestamp"} } @@ -3630,6 +4193,46 @@ "patchOperations":{"shape":"ListOfPatchOperation"} } }, + "UpdateDocumentationPartRequest":{ + "type":"structure", + "required":[ + "restApiId", + "documentationPartId" + ], + "members":{ + "restApiId":{ + "shape":"String", + "location":"uri", + "locationName":"restapi_id" + }, + "documentationPartId":{ + "shape":"String", + "location":"uri", + "locationName":"part_id" + }, + "patchOperations":{"shape":"ListOfPatchOperation"} + } + }, + "UpdateDocumentationVersionRequest":{ + "type":"structure", + "required":[ + "restApiId", + "documentationVersion" + ], + "members":{ + "restApiId":{ + "shape":"String", + "location":"uri", + "locationName":"restapi_id" + }, + "documentationVersion":{ + "shape":"String", + "location":"uri", + "locationName":"doc_version" + }, + "patchOperations":{"shape":"ListOfPatchOperation"} + } + }, "UpdateDomainNameRequest":{ "type":"structure", "required":["domainName"], @@ -3883,7 +4486,8 @@ "description":{"shape":"String"}, "apiStages":{"shape":"ListOfApiStage"}, "throttle":{"shape":"ThrottleSettings"}, - "quota":{"shape":"QuotaSettings"} + "quota":{"shape":"QuotaSettings"}, + "productCode":{"shape":"String"} } }, "UsagePlanKey":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/docs-2.json index c2fbd26c7..3465ed277 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/docs-2.json @@ -6,6 +6,8 @@ "CreateAuthorizer": "

Adds a new Authorizer resource to an existing RestApi resource.

", "CreateBasePathMapping": "

Creates a new BasePathMapping resource.

", "CreateDeployment": "

Creates a Deployment resource, which makes a specified RestApi callable over the internet.

", + "CreateDocumentationPart": null, + "CreateDocumentationVersion": null, "CreateDomainName": "

Creates a new domain name.

", "CreateModel": "

Adds a new Model resource to an existing RestApi resource.

", "CreateResource": "

Creates a Resource resource.

", @@ -18,6 +20,8 @@ "DeleteBasePathMapping": "

Deletes the BasePathMapping resource.

", "DeleteClientCertificate": "

Deletes the ClientCertificate resource.

", "DeleteDeployment": "

Deletes a Deployment resource. Deleting a deployment will only succeed if there are no Stage resources associated with it.

", + "DeleteDocumentationPart": null, + "DeleteDocumentationVersion": null, "DeleteDomainName": "

Deletes the DomainName resource.

", "DeleteIntegration": "

Represents a delete integration.

", "DeleteIntegrationResponse": "

Represents a delete integration response.

", @@ -43,6 +47,10 @@ "GetClientCertificates": "

Gets a collection of ClientCertificate resources.

", "GetDeployment": "

Gets information about a Deployment resource.

", "GetDeployments": "

Gets information about a Deployments collection.

", + "GetDocumentationPart": null, + "GetDocumentationParts": null, + "GetDocumentationVersion": null, + "GetDocumentationVersions": null, "GetDomainName": "

Represents a domain name that is contained in a simpler, more intuitive URL that can be called.

", "GetDomainNames": "

Represents a collection of DomainName resources.

", "GetExport": "

Exports a deployed version of a RestApi in a specified format.

", @@ -58,6 +66,8 @@ "GetRestApi": "

Lists the RestApi resource in the collection.

", "GetRestApis": "

Lists the RestApis resources for your collection.

", "GetSdk": "

Generates a client SDK for a RestApi and Stage.

", + "GetSdkType": null, + "GetSdkTypes": null, "GetStage": "

Gets information about a Stage resource.

", "GetStages": "

Gets information about one or more Stage resources.

", "GetUsage": "

Gets the usage data of a usage plan in a specified time interval.

", @@ -66,6 +76,7 @@ "GetUsagePlanKeys": "

Gets all the usage plan keys representing the API keys added to a specified usage plan.

", "GetUsagePlans": "

Gets all the usage plans of the caller's account.

", "ImportApiKeys": "

Import API keys from an external source, such as a CSV-formatted file.

", + "ImportDocumentationParts": null, "ImportRestApi": "

A feature of the Amazon API Gateway control service for creating a new API from an external API definition file.

", "PutIntegration": "

Represents a put integration.

", "PutIntegrationResponse": "

Represents a put integration.

", @@ -80,6 +91,8 @@ "UpdateBasePathMapping": "

Changes information about the BasePathMapping resource.

", "UpdateClientCertificate": "

Changes information about an ClientCertificate resource.

", "UpdateDeployment": "

Changes information about a Deployment resource.

", + "UpdateDocumentationPart": null, + "UpdateDocumentationVersion": null, "UpdateDomainName": "

Changes information about the DomainName resource.

", "UpdateIntegration": "

Represents an update integration.

", "UpdateIntegrationResponse": "

Represents an update integration response.

", @@ -105,7 +118,7 @@ } }, "ApiKeyIds": { - "base": "

The identifier of an API key used to reference an API key in a usage plan.

", + "base": "

The identifier of an ApiKey used in a UsagePlan.

", "refs": { } }, @@ -133,9 +146,9 @@ } }, "AuthorizerType": { - "base": "

The authorizer type. the only current value is TOKEN.

", + "base": "

The authorizer type. the current value is TOKEN for a Lambda function or COGNITO_USER_POOLS for an Amazon Cognito Your User Pool.

", "refs": { - "Authorizer$type": "

[Required] The type of the authorizer. Currently, the only valid type is TOKEN.

", + "Authorizer$type": "

[Required] The type of the authorizer. Currently, the valid type is TOKEN for a Lambda function or COGNITO_USER_POOLS for an Amazon Cognito user pool.

", "CreateAuthorizerRequest$type": "

[Required] The type of the authorizer.

" } }, @@ -165,6 +178,7 @@ "refs": { "ExportResponse$body": "

The binary blob response to GetExport, which contains the export.

", "ImportApiKeysRequest$body": "

The payload of the POST request to import API keys. For the payload format, see API Key File Format.

", + "ImportDocumentationPartsRequest$body": "

[Required] Raw byte array representing the to-be-imported documentation parts. To import from a Swagger file, this is a JSON object.

", "ImportRestApiRequest$body": "

The POST request body containing external API definitions. Currently, only Swagger definition JSON files are supported.

", "PutRestApiRequest$body": "

The PUT request body containing external API definitions. Currently, only Swagger definition JSON files are supported.

", "SdkResponse$body": "

The binary blob response to GetSdk, which contains the generated SDK.

" @@ -177,10 +191,9 @@ "CreateApiKeyRequest$enabled": "

Specifies whether the ApiKey can be used by callers.

", "CreateApiKeyRequest$generateDistinctId": "

Specifies whether (true) or not (false) the key identifier is distinct from the created API key value.

", "CreateStageRequest$cacheClusterEnabled": "

Whether cache clustering is enabled for the stage.

", - "GetApiKeyRequest$includeValue": "

A boolean flag to specify whether (true) or not (false) the result contains the key value.

", - "GetApiKeysRequest$includeValues": "

A boolean flag to specify whether (true) or not (false) the result contains key values.

", "GetModelRequest$flatten": "

A query parameter of a Boolean value to resolve (true) all external model references and returns a flattened model schema or not (false) The default is false.

", "ImportApiKeysRequest$failOnWarnings": "

A query parameter to indicate whether to rollback ApiKey importation (true) or not (false) when error is encountered.

", + "ImportDocumentationPartsRequest$failOnWarnings": "

A query parameter to specify whether to rollback the documentation importation (true) or not (false) when a warning is encountered. The default value is false.

", "ImportRestApiRequest$failOnWarnings": "

A query parameter to indicate whether to rollback the API creation (true) or not (false) when a warning is encountered. The default value is false.

", "MethodSetting$metricsEnabled": "

Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this setting is /{method_setting_key}/metrics/enabled, and the value is a Boolean.

", "MethodSetting$dataTraceEnabled": "

Specifies whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is /{method_setting_key}/logging/dataTrace, and the value is a Boolean.

", @@ -190,6 +203,7 @@ "MethodSnapshot$apiKeyRequired": "

Specifies whether the method requires a valid ApiKey.

", "PutMethodRequest$apiKeyRequired": "

Specifies whether the method required a valid ApiKey.

", "PutRestApiRequest$failOnWarnings": "

A query parameter to indicate whether to rollback the API update (true) or not (false) when a warning is encountered. The default value is false.

", + "SdkConfigurationProperty$required": "

A boolean flag of an SdkType configuration property to indicate if the associated SDK configuration property is required (true) or not (false).

", "Stage$cacheClusterEnabled": "

Specifies whether a cache cluster is enabled for the stage.

" } }, @@ -223,6 +237,15 @@ "refs": { } }, + "ContentHandlingStrategy": { + "base": null, + "refs": { + "Integration$contentHandling": "

Specifies how to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

  • CONVERT_TO_BINARY: Converts a request payload from a Base64-encoded string to the corresponding binary blob.

  • CONVERT_TO_TEXT: Converts a request payload from a binary blob to a Base64-encoded string.

If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the passthroughBehaviors is configured to support payload pass-through.

", + "IntegrationResponse$contentHandling": "

Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

  • CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.

  • CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.

", + "PutIntegrationRequest$contentHandling": "

Specifies how to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

  • CONVERT_TO_BINARY: Converts a request payload from a Base64-encoded string to the corresponding binary blob.

  • CONVERT_TO_TEXT: Converts a request payload from a binary blob to a Base64-encoded string.

If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the passthroughBehaviors is configured to support payload pass-through.

", + "PutIntegrationResponseRequest$contentHandling": "

Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

  • CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.

  • CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.

" + } + }, "CreateApiKeyRequest": { "base": "

Request to create an ApiKey resource.

", "refs": { @@ -243,6 +266,16 @@ "refs": { } }, + "CreateDocumentationPartRequest": { + "base": "

Creates a new documentation part of a given API.

", + "refs": { + } + }, + "CreateDocumentationVersionRequest": { + "base": "

Creates a new documentation version of a given API.

", + "refs": { + } + }, "CreateDomainNameRequest": { "base": "

A request to create a new domain name.

", "refs": { @@ -303,6 +336,16 @@ "refs": { } }, + "DeleteDocumentationPartRequest": { + "base": "

Deletes an existing documentation part of an API.

", + "refs": { + } + }, + "DeleteDocumentationVersionRequest": { + "base": "

Deletes an existing documentation version of an API.

", + "refs": { + } + }, "DeleteDomainNameRequest": { "base": "

A request to delete the DomainName resource.

", "refs": { @@ -369,6 +412,53 @@ "refs": { } }, + "DocumentationPart": { + "base": "

A documentation part for a targeted API entity.

A documentation part consists of a content map (properties) and a target (location). The target specifies an API entity to which the documentation content applies. The supported API entity types are API, AUTHORIZER, MODEL, RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. Valid location fields depend on the API entity type. All valid fields are not required.

The content map is a JSON string of API-specific key-value pairs. Although an API can use any shape for the content map, only the Swagger-compliant documentation fields will be injected into the associated API entity definition in the exported Swagger definition file.

", + "refs": { + "ListOfDocumentationPart$member": null + } + }, + "DocumentationPartIds": { + "base": "

A collection of the imported DocumentationPart identifiers.

This is used to return the result when documentation parts in an external (e.g., Swagger) file are imported into Amazon API Gateway
", + "refs": { + } + }, + "DocumentationPartLocation": { + "base": "

Specifies the target API entity to which the documentation applies.

", + "refs": { + "CreateDocumentationPartRequest$location": "

[Required] The location of the targeted API entity of the to-be-created documentation part.

", + "DocumentationPart$location": "

The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.

" + } + }, + "DocumentationPartLocationStatusCode": { + "base": null, + "refs": { + "DocumentationPartLocation$statusCode": "

The HTTP status code of a response. It is a valid field for the API entity types of RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. The default value is * for any status code. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other location attributes, the child entity's statusCode attribute must match that of the parent entity exactly.

" + } + }, + "DocumentationPartType": { + "base": null, + "refs": { + "DocumentationPartLocation$type": "

The type of API entity to which the documentation content applies. It is a valid and required field for API entity types of API, AUTHORIZER, MODEL, RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. Content inheritance does not apply to any entity of the API, AUTHROZER, METHOD, MODEL, REQUEST_BODY, or RESOURCE type.

", + "GetDocumentationPartsRequest$type": "

The type of API entities of the to-be-retrieved documentation parts.

" + } + }, + "DocumentationParts": { + "base": "

The collection of documentation parts of an API.

", + "refs": { + } + }, + "DocumentationVersion": { + "base": "

A snapshot of the documentation of an API.

Publishing API documentation involves creating a documentation version associated with an API stage and exporting the versioned documentation to an external (e.g., Swagger) file.

", + "refs": { + "ListOfDocumentationVersion$member": null + } + }, + "DocumentationVersions": { + "base": "

The collection of documentation snapshots of an API.

Use the DocumentationVersions to manage documentation snapshots associated with various API stages.

", + "refs": { + } + }, "DomainName": { "base": "

Represents a domain name that is contained in a simpler, more intuitive URL that can be called.

", "refs": { @@ -462,6 +552,26 @@ "refs": { } }, + "GetDocumentationPartRequest": { + "base": "

Gets a specified documentation part of a given API.

", + "refs": { + } + }, + "GetDocumentationPartsRequest": { + "base": "

Gets the documentation parts of an API. The result may be filtered by the type, name, or path of API entities (targets).

", + "refs": { + } + }, + "GetDocumentationVersionRequest": { + "base": "

Gets a documentation snapshot of an API.

", + "refs": { + } + }, + "GetDocumentationVersionsRequest": { + "base": "

Gets the documentation versions of an API.

", + "refs": { + } + }, "GetDomainNameRequest": { "base": "

Request to get the name of a DomainName resource.

", "refs": { @@ -537,6 +647,16 @@ "refs": { } }, + "GetSdkTypeRequest": { + "base": "

Get an SdkType instance.

", + "refs": { + } + }, + "GetSdkTypesRequest": { + "base": "

Get the SdkTypes collection.

", + "refs": { + } + }, "GetStageRequest": { "base": "

Requests Amazon API Gateway to get information about a Stage resource.

", "refs": { @@ -577,6 +697,11 @@ "refs": { } }, + "ImportDocumentationPartsRequest": { + "base": "

Import documentation parts from an external (e.g., Swagger) definition file.

", + "refs": { + } + }, "ImportRestApiRequest": { "base": "

A POST request to import an API to Amazon API Gateway using an input of an API definition file.

", "refs": { @@ -595,7 +720,7 @@ } }, "Integration": { - "base": "

Represents an HTTP, AWS, or Mock integration.

In the API Gateway console, the built-in Lambda integration is an AWS integration.
", + "base": "

Represents an HTTP, HTTP_PROXY, AWS, AWS_PROXY, or Mock integration.

In the API Gateway console, the built-in Lambda integration is an AWS integration.
", "refs": { "Method$methodIntegration": "

Gets the method's integration responsible for passing the client-submitted request to the back end and performing necessary transformations to make the request compliant with the back end.

Example:

Request

GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com Content-Length: 117 X-Amz-Date: 20160613T213210Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
Response

The successful response returns a 200 OK status code and a payload similar to the following:

{ \"_links\": { \"curies\": [ { \"href\": \"http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html\", \"name\": \"integration\", \"templated\": true }, { \"href\": \"http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html\", \"name\": \"integrationresponse\", \"templated\": true } ], \"self\": { \"href\": \"/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration\" }, \"integration:delete\": { \"href\": \"/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration\" }, \"integration:responses\": { \"href\": \"/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200\", \"name\": \"200\", \"title\": \"200\" }, \"integration:update\": { \"href\": \"/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration\" }, \"integrationresponse:put\": { \"href\": \"/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/{status_code}\", \"templated\": true } }, \"cacheKeyParameters\": [], \"cacheNamespace\": \"0cjtch\", \"credentials\": \"arn:aws:iam::123456789012:role/apigAwsProxyRole\", \"httpMethod\": \"POST\", \"passthroughBehavior\": \"WHEN_NO_MATCH\", \"requestTemplates\": { \"application/json\": \"{\\n \\\"a\\\": \\\"$input.params('operand1')\\\",\\n \\\"b\\\": \\\"$input.params('operand2')\\\", \\n \\\"op\\\": \\\"$input.params('operator')\\\" \\n}\" }, \"type\": \"AWS\", \"uri\": \"arn:aws:apigateway:us-west-2:lambda:path//2015-03-31/functions/arn:aws:lambda:us-west-2:123456789012:function:Calc/invocations\", \"_embedded\": { \"integration:responses\": { \"_links\": { \"self\": { \"href\": \"/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200\", \"name\": \"200\", \"title\": \"200\" }, \"integrationresponse:delete\": { \"href\": \"/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200\" }, \"integrationresponse:update\": { \"href\": \"/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200\" } }, \"responseParameters\": { \"method.response.header.operator\": \"integration.response.body.op\", \"method.response.header.operand_2\": \"integration.response.body.b\", \"method.response.header.operand_1\": \"integration.response.body.a\" }, \"responseTemplates\": { \"application/json\": \"#set($res = $input.path('$'))\\n{\\n \\\"result\\\": \\\"$res.a, $res.b, $res.op => $res.c\\\",\\n \\\"a\\\" : \\\"$res.a\\\",\\n \\\"b\\\" : \\\"$res.b\\\",\\n \\\"op\\\" : \\\"$res.op\\\",\\n \\\"c\\\" : \\\"$res.c\\\"\\n}\" }, \"selectionPattern\": \"\", \"statusCode\": \"200\" } } }

" } @@ -621,7 +746,7 @@ "ListOfARNs": { "base": null, "refs": { - "Authorizer$providerARNs": "

A list of the provider ARNs of the authorizer.

", + "Authorizer$providerARNs": "

A list of the provider ARNs of the authorizer. For an TOKEN authorizer, this is not defined. For authorizers of the COGNITO_USER_POOLS type, each element corresponds to a user pool ARN of this format: arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}.

", "CreateAuthorizerRequest$providerARNs": "

A list of the Cognito Your User Pool authorizer's provider ARNs.

" } }, @@ -662,6 +787,18 @@ "Deployments$items": "

The current page of any Deployment resources in the collection of deployment resources.

" } }, + "ListOfDocumentationPart": { + "base": null, + "refs": { + "DocumentationParts$items": "

The current page of DocumentationPart resources in the DocumentationParts collection.

" + } + }, + "ListOfDocumentationVersion": { + "base": null, + "refs": { + "DocumentationVersions$items": "

The current page of DocumentationVersion items from the DocumentationVersions collection of an API.

" + } + }, "ListOfDomainName": { "base": null, "refs": { @@ -689,6 +826,8 @@ "UpdateBasePathMappingRequest$patchOperations": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

", "UpdateClientCertificateRequest$patchOperations": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

", "UpdateDeploymentRequest$patchOperations": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

", + "UpdateDocumentationPartRequest$patchOperations": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

", + "UpdateDocumentationVersionRequest$patchOperations": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

", "UpdateDomainNameRequest$patchOperations": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

", "UpdateIntegrationRequest$patchOperations": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

", "UpdateIntegrationResponseRequest$patchOperations": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

", @@ -714,6 +853,18 @@ "RestApis$items": "

An array of links to the current page of RestApi resources.

" } }, + "ListOfSdkConfigurationProperty": { + "base": null, + "refs": { + "SdkType$configurationProperties": "

A list of configuration properties of an SdkType.

" + } + }, + "ListOfSdkType": { + "base": null, + "refs": { + "SdkTypes$items": "

The set of SdkType items that comprise this view of the SdkTypes collection.

" + } + }, "ListOfStage": { "base": null, "refs": { @@ -734,10 +885,14 @@ "ApiKeyIds$ids": "

A list of all the ApiKey identifiers.

", "ApiKeyIds$warnings": "

A list of warning messages.

", "ApiKeys$warnings": "

A list of warning messages logged during the import of API keys when the failOnWarnings option is set to true.

", + "CreateRestApiRequest$binaryMediaTypes": "

The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.

", + "DocumentationPartIds$ids": "

A list of the returned documentation part identifiers.

", + "DocumentationPartIds$warnings": "

A list of warning messages reported during import of documentation parts.

", "Integration$cacheKeyParameters": "

Specifies the integration's cache key parameters.

", "MapOfStringToList$value": null, "PutIntegrationRequest$cacheKeyParameters": "

Specifies a put integration input's cache key parameters.

", - "RestApi$warnings": "

The warning messages reported when failonwarnings is turned on during API import.

" + "RestApi$warnings": "

The warning messages reported when failonwarnings is turned on during API import.

", + "RestApi$binaryMediaTypes": "

The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.

" } }, "ListOfUsage": { @@ -897,6 +1052,8 @@ "base": null, "refs": { "CreateDeploymentRequest$cacheClusterEnabled": "

Enables a cache cluster for the Stage resource specified in the input.

", + "GetApiKeyRequest$includeValue": "

A boolean flag to specify whether (true) or not (false) the result contains the key value.

", + "GetApiKeysRequest$includeValues": "

A boolean flag to specify whether (true) or not (false) the result contains key values.

", "MapOfStringToBoolean$value": null, "Method$apiKeyRequired": "

A boolean flag specifying whether a valid ApiKey is required to invoke this method.

" } @@ -911,10 +1068,13 @@ "GetBasePathMappingsRequest$limit": "

The maximum number of BasePathMapping resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.

", "GetClientCertificatesRequest$limit": "

The maximum number of ClientCertificate resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.

", "GetDeploymentsRequest$limit": "

The maximum number of Deployment resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.

", + "GetDocumentationPartsRequest$limit": "

The size of the paged results.

", + "GetDocumentationVersionsRequest$limit": "

The page size of the returned documentation versions.

", "GetDomainNamesRequest$limit": "

The maximum number of DomainName resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.

", "GetModelsRequest$limit": "

The maximum number of models in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.

", "GetResourcesRequest$limit": "

The maximum number of Resource resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.

", "GetRestApisRequest$limit": "

The maximum number of RestApi resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.

", + "GetSdkTypesRequest$limit": "

The maximum number of SdkType instances to be returned.

", "GetUsagePlanKeysRequest$limit": "

A query parameter specifying the maximum number usage plan keys returned by the GET request.

", "GetUsagePlansRequest$limit": "

The number of UsagePlan resources to be returned as the result.

", "GetUsageRequest$limit": "

The maximum number of results to be returned.

" @@ -967,6 +1127,7 @@ "PutMode": { "base": null, "refs": { + "ImportDocumentationPartsRequest$mode": "

A query parameter to indicate whether to overwrite (OVERWRITE) any existing DocumentationParts definition or to merge (MERGE) the new definition into the existing one. The default value is MERGE.

", "PutRestApiRequest$mode": "

The mode query parameter to specify the update mode. Valid values are \"merge\" and \"overwrite\". By default, the update mode is \"merge\".

" } }, @@ -1010,11 +1171,28 @@ "refs": { } }, + "SdkConfigurationProperty": { + "base": "

A configuration property of an SDK type.

", + "refs": { + "ListOfSdkConfigurationProperty$member": null + } + }, "SdkResponse": { "base": "

The binary blob response to GetSdk, which contains the generated SDK.

", "refs": { } }, + "SdkType": { + "base": "

A type of SDK that API Gateway can generate.

", + "refs": { + "ListOfSdkType$member": null + } + }, + "SdkTypes": { + "base": "

The collection of SdkType instances.

", + "refs": { + } + }, "ServiceUnavailableException": { "base": null, "refs": { @@ -1060,6 +1238,7 @@ "ApiKey$id": "

The identifier of the API Key.

", "ApiKey$value": "

The value of the API Key.

", "ApiKey$name": "

The name of the API Key.

", + "ApiKey$customerId": "

An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.

", "ApiKey$description": "

The description of the API Key.

", "ApiKeys$position": null, "ApiStage$apiId": "

API Id of the associated API stage in a usage plan.

", @@ -1067,10 +1246,10 @@ "Authorizer$id": "

The identifier for the authorizer resource.

", "Authorizer$name": "

[Required] The name of the authorizer.

", "Authorizer$authType": "

Optional customer-defined field, used in Swagger imports/exports. Has no functional impact.

", - "Authorizer$authorizerUri": "

[Required] Specifies the authorizer's Uniform Resource Identifier (URI). For TOKEN authorizers, this must be a well-formed Lambda function URI. The URI should be of the form arn:aws:apigateway:{region}:lambda:path/{service_api}. Region is used to determine the right endpoint. In this case, path is used to indicate that the remaining substring in the URI should be treated as the path to the resource, including the initial /. For Lambda functions, this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations

", + "Authorizer$authorizerUri": "

[Required] Specifies the authorizer's Uniform Resource Identifier (URI). For TOKEN authorizers, this must be a well-formed Lambda function URI, for example, arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations. In general, the URI has this form arn:aws:apigateway:{region}:lambda:path/{service_api}, where {region} is the same as the region hosting the Lambda function, path indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial /. For Lambda functions, this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations.

", "Authorizer$authorizerCredentials": "

Specifies the credentials required for the authorizer, if any. Two options are available. To specify an IAM role for Amazon API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.

", - "Authorizer$identitySource": "

[Required] The source of the identity in an incoming request. For TOKEN authorizers, this value is a mapping expression with the same syntax as integration parameter mappings. The only valid source for tokens is 'header', so the expression should match 'method.request.header.[headerName]'. The value of the header '[headerName]' will be interpreted as the incoming token.

", - "Authorizer$identityValidationExpression": "

A validation expression for the incoming identity. For TOKEN authorizers, this value should be a regular expression. The incoming token from the client is matched against this expression, and will proceed if the token matches. If the token doesn't match, the client receives a 401 Unauthorized response.

", + "Authorizer$identitySource": "

[Required] The source of the identity in an incoming request. For a TOKEN authorizer, this value is a mapping expression with the same syntax as integration parameter mappings. The only valid source for tokens is 'header', so the expression should match 'method.request.header.[headerName]'. The value of the header '[headerName]' will be interpreted as the incoming token. For COGNITO_USER_POOLS authorizers, this property is used.

", + "Authorizer$identityValidationExpression": "

A validation expression for the incoming identity. For TOKEN authorizers, this value should be a regular expression. The incoming token from the client is matched against this expression, and will proceed if the token matches. If the token doesn't match, the client receives a 401 Unauthorized response.

", "Authorizers$position": null, "BadRequestException$message": null, "BasePathMapping$basePath": "

The base path name that callers of the API must provide as part of the URL after the domain name.

", @@ -1085,6 +1264,7 @@ "CreateApiKeyRequest$name": "

The name of the ApiKey.

", "CreateApiKeyRequest$description": "

The description of the ApiKey.

", "CreateApiKeyRequest$value": "

Specifies a value of the API key.

", + "CreateApiKeyRequest$customerId": "

An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.

", "CreateAuthorizerRequest$restApiId": "

The RestApi identifier under which the Authorizer will be created.

", "CreateAuthorizerRequest$name": "

[Required] The name of the authorizer.

", "CreateAuthorizerRequest$authType": "

Optional customer-defined field, used in Swagger imports/exports. Has no functional impact.

", @@ -1100,11 +1280,18 @@ "CreateDeploymentRequest$stageName": "

The name of the Stage resource for the Deployment resource to create.

", "CreateDeploymentRequest$stageDescription": "

The description of the Stage resource for the Deployment resource to create.

", "CreateDeploymentRequest$description": "

The description for the Deployment resource to create.

", - "CreateDomainNameRequest$domainName": "

The name of the DomainName resource.

", - "CreateDomainNameRequest$certificateName": "

The name of the certificate.

", - "CreateDomainNameRequest$certificateBody": "

The body of the server certificate provided by your certificate authority.

", - "CreateDomainNameRequest$certificatePrivateKey": "

Your certificate's private key.

", - "CreateDomainNameRequest$certificateChain": "

The intermediate certificates and optionally the root certificate, one after the other without any blank lines. If you include the root certificate, your certificate chain must start with intermediate certificates and end with the root certificate. Use the intermediate certificates that were provided by your certificate authority. Do not include any intermediaries that are not in the chain of trust path.

", + "CreateDocumentationPartRequest$restApiId": "

[Required] The identifier of an API of the to-be-created documentation part.

", + "CreateDocumentationPartRequest$properties": "

[Required] The new documentation content map of the targeted API entity. Enclosed key-value pairs are API-specific, but only Swagger-compliant key-value pairs can be exported and, hence, published.

", + "CreateDocumentationVersionRequest$restApiId": "

[Required] Specifies the API identifier of the to-be-created documentation version.

", + "CreateDocumentationVersionRequest$documentationVersion": "

[Required] The version identifier of the new snapshot.

", + "CreateDocumentationVersionRequest$stageName": "

The stage name to be associated with the new documentation snapshot.

", + "CreateDocumentationVersionRequest$description": "

A description about the new documentation snapshot.

", + "CreateDomainNameRequest$domainName": "

(Required) The name of the DomainName resource.

", + "CreateDomainNameRequest$certificateName": "

The user-friendly name of the certificate.

", + "CreateDomainNameRequest$certificateBody": "

[Deprecated] The body of the server certificate provided by your certificate authority.

", + "CreateDomainNameRequest$certificatePrivateKey": "

[Deprecated] Your certificate's private key.

", + "CreateDomainNameRequest$certificateChain": "

[Deprecated] The intermediate certificates and optionally the root certificate, one after the other without any blank lines. If you include the root certificate, your certificate chain must start with intermediate certificates and end with the root certificate. Use the intermediate certificates that were provided by your certificate authority. Do not include any intermediaries that are not in the chain of trust path.

", + "CreateDomainNameRequest$certificateArn": "

The reference to an AWS-managed certificate. AWS Certificate Manager is the only supported source.

", "CreateModelRequest$restApiId": "

The RestApi identifier under which the Model will be created.

", "CreateModelRequest$name": "

The name of the model.

", "CreateModelRequest$description": "

The description of the model.

", @@ -1115,11 +1302,13 @@ "CreateResourceRequest$pathPart": "

The last path segment for this resource.

", "CreateRestApiRequest$name": "

The name of the RestApi.

", "CreateRestApiRequest$description": "

The description of the RestApi.

", + "CreateRestApiRequest$version": "

A version identifier for the API.

", "CreateRestApiRequest$cloneFrom": "

The ID of the RestApi that you want to clone from.

", "CreateStageRequest$restApiId": "

The identifier of the RestApi resource for the Stage resource to create.

", "CreateStageRequest$stageName": "

The name for the Stage resource.

", "CreateStageRequest$deploymentId": "

The identifier of the Deployment resource for the Stage resource.

", "CreateStageRequest$description": "

The description of the Stage resource.

", + "CreateStageRequest$documentationVersion": "

The version of the associated API documentation.

", "CreateUsagePlanKeyRequest$usagePlanId": "

The Id of the UsagePlan resource representing the usage plan containing the to-be-created UsagePlanKey resource representing a plan customer.

", "CreateUsagePlanKeyRequest$keyId": "

The identifier of a UsagePlanKey resource for a plan customer.

", "CreateUsagePlanKeyRequest$keyType": "

The type of a UsagePlanKey resource for a plan customer.

", @@ -1133,6 +1322,10 @@ "DeleteClientCertificateRequest$clientCertificateId": "

The identifier of the ClientCertificate resource to be deleted.

", "DeleteDeploymentRequest$restApiId": "

The identifier of the RestApi resource for the Deployment resource to delete.

", "DeleteDeploymentRequest$deploymentId": "

The identifier of the Deployment resource to delete.

", + "DeleteDocumentationPartRequest$restApiId": "

[Required] Specifies the identifier of an API of the to-be-deleted documentation part.

", + "DeleteDocumentationPartRequest$documentationPartId": "

[Required] The identifier of the to-be-deleted documentation part.

", + "DeleteDocumentationVersionRequest$restApiId": "

[Required] The identifier of an API of a to-be-deleted documentation snapshot.

", + "DeleteDocumentationVersionRequest$documentationVersion": "

[Required] The version identifier of a to-be-deleted documentation snapshot.

", "DeleteDomainNameRequest$domainName": "

The name of the DomainName resource to be deleted.

", "DeleteIntegrationRequest$restApiId": "

Specifies a delete integration request's API identifier.

", "DeleteIntegrationRequest$resourceId": "

Specifies a delete integration request's resource identifier.

", @@ -1159,8 +1352,18 @@ "Deployment$id": "

The identifier for the deployment resource.

", "Deployment$description": "

The description for the deployment resource.

", "Deployments$position": null, + "DocumentationPart$id": "

The DocumentationPart identifier, generated by Amazon API Gateway when the DocumentationPart is created.

", + "DocumentationPart$properties": "

A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., \"{ \\\"description\\\": \\\"The API does ...\\\" }\". Only Swagger-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a Swagger extension of x-amazon-apigateway-documentation.

", + "DocumentationPartLocation$path": "

The URL path of the target. It is a valid field for the API entity types of RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. The default value is / for the root resource. When an applicable child entity inherits the content of another entity of the same type with more general specifications of the other location attributes, the child entity's path attribute must match that of the parent entity as a prefix.

", + "DocumentationPartLocation$method": "

The HTTP verb of a method. It is a valid field for the API entity types of METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. The default value is * for any method. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other location attributes, the child entity's method attribute must match that of the parent entity exactly.

", + "DocumentationPartLocation$name": "

The name of the targeted API entity. It is a valid and required field for the API entity types of AUTHORIZER, MODEL, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY and RESPONSE_HEADER. It is an invalid field for any other entity type.

", + "DocumentationParts$position": null, + "DocumentationVersion$version": "

The version identifier of the API documentation snapshot.

", + "DocumentationVersion$description": "

The description of the API documentation snapshot.

", + "DocumentationVersions$position": null, "DomainName$domainName": "

The name of the DomainName resource.

", "DomainName$certificateName": "

The name of the certificate.

", + "DomainName$certificateArn": "

The reference to an AWS-managed certificate. AWS Certificate Manager is the only supported source.

", "DomainName$distributionDomainName": "

The domain name of the Amazon CloudFront distribution. For more information, see the Amazon CloudFront documentation.

", "DomainNames$position": null, "ExportResponse$contentType": "

The content-type header value in the HTTP response. This will correspond to a valid 'accept' type in the request.

", @@ -1173,6 +1376,7 @@ "GetApiKeyRequest$apiKey": "

The identifier of the ApiKey resource.

", "GetApiKeysRequest$position": "

The position of the current ApiKeys resource to get information about.

", "GetApiKeysRequest$nameQuery": "

The name of queried API keys.

", + "GetApiKeysRequest$customerId": "

The identifier of a customer in AWS Marketplace or an external system, such as a developer portal.

", "GetAuthorizerRequest$restApiId": "

The RestApi identifier for the Authorizer resource.

", "GetAuthorizerRequest$authorizerId": "

The identifier of the Authorizer resource.

", "GetAuthorizersRequest$restApiId": "

The RestApi identifier for the Authorizers resource.

", @@ -1187,6 +1391,16 @@ "GetDeploymentRequest$deploymentId": "

The identifier of the Deployment resource to get information about.

", "GetDeploymentsRequest$restApiId": "

The identifier of the RestApi resource for the collection of Deployment resources to get information about.

", "GetDeploymentsRequest$position": "

The position of the current Deployment resource in the collection to get information about.

", + "GetDocumentationPartRequest$restApiId": "

[Required] The identifier of an API of the to-be-retrieved documentation part.

", + "GetDocumentationPartRequest$documentationPartId": "

[Required] The identifier of the to-be-retrieved documentation part.

", + "GetDocumentationPartsRequest$restApiId": "

[Required] The identifier of the API of the to-be-retrieved documentation parts.

", + "GetDocumentationPartsRequest$nameQuery": "

The name of API entities of the to-be-retrieved documentation parts.

", + "GetDocumentationPartsRequest$path": "

The path of API entities of the to-be-retrieved documentation parts.

", + "GetDocumentationPartsRequest$position": "

The position of the to-be-retrieved documentation part in the DocumentationParts collection.

", + "GetDocumentationVersionRequest$restApiId": "

[Required] The identifier of the API of the to-be-retrieved documentation snapshot.

", + "GetDocumentationVersionRequest$documentationVersion": "

[Required] The version identifier of the to-be-retrieved documentation snapshot.

", + "GetDocumentationVersionsRequest$restApiId": "

[Required] The identifier of an API of the to-be-retrieved documentation versions.

", + "GetDocumentationVersionsRequest$position": "

The position of the returned DocumentationVersion in the DocumentationVersions collection.

", "GetDomainNameRequest$domainName": "

The name of the DomainName resource.

", "GetDomainNamesRequest$position": "

The position of the current domain names to get information about.

", "GetExportRequest$restApiId": "

The identifier of the RestApi to be exported.

", @@ -1220,6 +1434,8 @@ "GetSdkRequest$restApiId": "

The identifier of the RestApi that the SDK will use.

", "GetSdkRequest$stageName": "

The name of the Stage that the SDK will use.

", "GetSdkRequest$sdkType": "

The language for the generated SDK. Currently javascript, android, and objectivec (for iOS) are supported.

", + "GetSdkTypeRequest$id": "

The identifier of the queried SdkType instance.

", + "GetSdkTypesRequest$position": "

The position of the last fetched element in the SdkTypes collection.

", "GetStageRequest$restApiId": "

The identifier of the RestApi resource for the Stage resource to get information about.

", "GetStageRequest$stageName": "

The name of the Stage resource to get information about.

", "GetStagesRequest$restApiId": "

The stages' API identifiers.

", @@ -1237,8 +1453,9 @@ "GetUsageRequest$startDate": "

The starting date (e.g., 2016-01-01) of the usage data.

", "GetUsageRequest$endDate": "

The ending date (e.g., 2016-12-31) of the usage data.

", "GetUsageRequest$position": "

Position

", + "ImportDocumentationPartsRequest$restApiId": "

[Required] The identifier of an API of the to-be-imported documentation parts.

", "Integration$httpMethod": "

Specifies the integration's HTTP method type.

", - "Integration$uri": "

Specifies the integration's Uniform Resource Identifier (URI). For HTTP integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification. For AWS integrations, the URI should be of the form arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}. Region, subdomain and service are used to determine the right endpoint. For AWS services that use the Action= query string parameter, service_api should be a valid action for the desired service. For RESTful AWS service APIs, path is used to indicate that the remaining substring in the URI should be treated as the path to the resource, including the initial /.

", + "Integration$uri": "

Specifies the integration's Uniform Resource Identifier (URI). For HTTP integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification. For AWS integrations, the URI should be of the form arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}. Region, subdomain and service are used to determine the right endpoint. For AWS services that use the Action= query string parameter, service_api should be a valid action for the desired service. For RESTful AWS service APIs, path is used to indicate that the remaining substring in the URI should be treated as the path to the resource, including the initial /.

", "Integration$credentials": "

Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for Amazon API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::\\*:user/\\*. To use resource-based permissions on supported AWS services, specify null.

", "Integration$passthroughBehavior": "

Specifies how the method request body of an unmapped content type will be passed through the integration request to the back end without transformation. A content type is unmapped if no mapping template is defined in the integration or the content type does not match any of the mapped content types, as specified in requestTemplates. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and NEVER.

  • WHEN_NO_MATCH passes the method request body through the integration request to the back end without transformation when the method request content type does not match any content type associated with the mapping templates defined in the integration request.
  • WHEN_NO_TEMPLATES passes the method request body through the integration request to the back end without transformation when no mapping template is defined in the integration request. If a template is defined when this option is selected, the method request of an unmapped content-type will be rejected with an HTTP 415 Unsupported Media Type response.
  • NEVER rejects the method request with an HTTP 415 Unsupported Media Type response when either the method request content type does not match any content type associated with the mapping templates defined in the integration request or no mapping template is defined in the integration request.
", "Integration$cacheNamespace": "

Specifies the integration's cache namespace.

", @@ -1261,6 +1478,7 @@ "Method$httpMethod": "

The method's HTTP verb.

", "Method$authorizationType": "

The method's authorization type.

", "Method$authorizerId": "

The identifier of an Authorizer to use on this method. The authorizationType must be CUSTOM.

", + "Method$operationName": "

A human-friendly operation identifier for the method. For example, you can assign the operationName of ListPets for the GET /pets method in PetStore example.

", "MethodSetting$loggingLevel": "

Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is /{method_setting_key}/logging/loglevel, and the available levels are OFF, ERROR, and INFO.

", "MethodSnapshot$authorizationType": "

Specifies the type of authorization used for the method.

", "Model$id": "

The identifier for the model resource.

", @@ -1291,6 +1509,7 @@ "PutMethodRequest$httpMethod": "

Specifies the method request's HTTP method type.

", "PutMethodRequest$authorizationType": "

Specifies the type of authorization used for the method.

", "PutMethodRequest$authorizerId": "

Specifies the identifier of an Authorizer to use on this Method, if the type is CUSTOM.

", + "PutMethodRequest$operationName": "

A human-friendly operation identifier for the method. For example, you can assign the operationName of ListPets for the GET /pets method in PetStore example.

", "PutMethodResponseRequest$restApiId": "

The RestApi identifier for the Method resource.

", "PutMethodResponseRequest$resourceId": "

The Resource identifier for the Method resource.

", "PutMethodResponseRequest$httpMethod": "

The HTTP verb of the Method resource.

", @@ -1303,15 +1522,25 @@ "RestApi$id": "

The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.

", "RestApi$name": "

The API's name.

", "RestApi$description": "

The API's description.

", + "RestApi$version": "

A version identifier for the API.

", "RestApis$position": null, + "SdkConfigurationProperty$name": "

The name of a an SdkType configuration property.

", + "SdkConfigurationProperty$friendlyName": "

The user-friendly name of an SdkType configuration property.

", + "SdkConfigurationProperty$description": "

The description of an SdkType configuration property.

", + "SdkConfigurationProperty$defaultValue": "

The default value of an SdkType configuration property.

", "SdkResponse$contentType": "

The content-type header value in the HTTP response.

", "SdkResponse$contentDisposition": "

The content-disposition header value in the HTTP response.

", + "SdkType$id": "

The identifier of an SdkType instance.

", + "SdkType$friendlyName": "

The user-friendly name of an SdkType instance.

", + "SdkType$description": "

The description of an SdkType.

", + "SdkTypes$position": null, "ServiceUnavailableException$retryAfterSeconds": null, "ServiceUnavailableException$message": null, "Stage$deploymentId": "

The identifier of the Deployment that the stage points to.

", "Stage$clientCertificateId": "

The identifier of a client certificate for an API stage.

", "Stage$stageName": "

The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to Amazon API Gateway.

", "Stage$description": "

The stage's description.

", + "Stage$documentationVersion": "

The version of the associated API documentation.

", "StageKey$restApiId": "

A list of Stage resources that are associated with the ApiKey resource.

", "StageKey$stageName": "

The stage name in the RestApi that the stage key references.

", "Template$value": "

The Apache Velocity Template Language (VTL) template content used for the template resource.

", @@ -1341,6 +1570,10 @@ "UpdateClientCertificateRequest$clientCertificateId": "

The identifier of the ClientCertificate resource to be updated.

", "UpdateDeploymentRequest$restApiId": "

The replacement identifier of the RestApi resource for the Deployment resource to change information about.

", "UpdateDeploymentRequest$deploymentId": "

The replacement identifier for the Deployment resource to change information about.

", + "UpdateDocumentationPartRequest$restApiId": "

[Required] The identifier of an API of the to-be-updated documentation part.

", + "UpdateDocumentationPartRequest$documentationPartId": "

[Required] The identifier of the to-be-updated documentation part.

", + "UpdateDocumentationVersionRequest$restApiId": "

[Required] The identifier of an API of the to-be-updated documentation version.

", + "UpdateDocumentationVersionRequest$documentationVersion": "

[Required] The version identifier of the to-be-updated documentation version.

", "UpdateDomainNameRequest$domainName": "

The name of the DomainName resource to be changed.

", "UpdateIntegrationRequest$restApiId": "

Represents an update integration request's API identifier.

", "UpdateIntegrationRequest$resourceId": "

Represents an update integration request's resource identifier.

", @@ -1371,6 +1604,7 @@ "UsagePlan$id": "

The identifier of a UsagePlan resource.

", "UsagePlan$name": "

The name of a usage plan.

", "UsagePlan$description": "

The description of a usage plan.

", + "UsagePlan$productCode": "

The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.

", "UsagePlanKey$id": "

The Id of a usage plan key.

", "UsagePlanKey$type": "

The type of a usage plan key. Currently, the valid key type is API_KEY.

", "UsagePlanKey$value": "

The value of a usage plan key.

", @@ -1415,15 +1649,16 @@ "Timestamp": { "base": null, "refs": { - "ApiKey$createdDate": "

The date when the API Key was created, in ISO 8601 format.

", - "ApiKey$lastUpdatedDate": "

When the API Key was last updated, in ISO 8601 format.

", - "ClientCertificate$createdDate": "

The date when the client certificate was created, in ISO 8601 format.

", - "ClientCertificate$expirationDate": "

The date when the client certificate will expire, in ISO 8601 format.

", + "ApiKey$createdDate": "

The timestamp when the API Key was created.

", + "ApiKey$lastUpdatedDate": "

The timestamp when the API Key was last updated.

", + "ClientCertificate$createdDate": "

The timestamp when the client certificate was created.

", + "ClientCertificate$expirationDate": "

The timestamp when the client certificate will expire.

", "Deployment$createdDate": "

The date and time that the deployment resource was created.

", - "DomainName$certificateUploadDate": "

The date when the certificate was uploaded, in ISO 8601 format.

", - "RestApi$createdDate": "

The date when the API was created, in ISO 8601 format.

", - "Stage$createdDate": "

The date and time that the stage was created, in ISO 8601 format.

", - "Stage$lastUpdatedDate": "

The date and time that information about the stage was last updated, in ISO 8601 format.

" + "DocumentationVersion$createdDate": "

The date when the API documentation snapshot is created.

", + "DomainName$certificateUploadDate": "

The timestamp when the certificate was uploaded.

", + "RestApi$createdDate": "

The timestamp when the API was created.

", + "Stage$createdDate": "

The timestamp when the stage was created.

", + "Stage$lastUpdatedDate": "

The timestamp when the stage last updated.

" } }, "TooManyRequestsException": { @@ -1472,6 +1707,16 @@ "refs": { } }, + "UpdateDocumentationPartRequest": { + "base": "

Updates an existing documentation part of a given API.

", + "refs": { + } + }, + "UpdateDocumentationVersionRequest": { + "base": "

Updates an existing documentation version of an API.

", + "refs": { + } + }, "UpdateDomainNameRequest": { "base": "

A request to change information about the DomainName resource.

", "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/paginators-1.json index 7a6965ba6..8c972ac2a 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/paginators-1.json @@ -2,69 +2,69 @@ "pagination": { "GetApiKeys": { "input_token": "position", - "output_token": "position", "limit_key": "limit", + "output_token": "position", "result_key": "items" }, "GetBasePathMappings": { "input_token": "position", - "output_token": "position", "limit_key": "limit", + "output_token": "position", "result_key": "items" }, "GetClientCertificates": { "input_token": "position", - "output_token": "position", "limit_key": "limit", + "output_token": "position", "result_key": "items" }, "GetDeployments": { "input_token": "position", - "output_token": "position", "limit_key": "limit", + "output_token": "position", "result_key": "items" }, "GetDomainNames": { "input_token": "position", - "output_token": "position", "limit_key": "limit", + "output_token": "position", "result_key": "items" }, "GetModels": { "input_token": "position", - "output_token": "position", "limit_key": "limit", + "output_token": "position", "result_key": "items" }, "GetResources": { "input_token": "position", - "output_token": "position", "limit_key": "limit", + "output_token": "position", "result_key": "items" }, "GetRestApis": { "input_token": "position", - "output_token": "position", "limit_key": "limit", + "output_token": "position", "result_key": "items" }, "GetUsage": { "input_token": "position", - "output_token": "position", "limit_key": "limit", + "output_token": "position", "result_key": "items" }, - "GetUsagePlans": { + "GetUsagePlanKeys": { "input_token": "position", - "output_token": "position", "limit_key": "limit", + "output_token": "position", "result_key": "items" }, - "GetUsagePlanKeys": { + "GetUsagePlans": { "input_token": "position", - "output_token": "position", "limit_key": "limit", + "output_token": "position", "result_key": "items" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/api-2.json index 236a81354..9c6fba780 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/api-2.json @@ -8,7 +8,8 @@ "serviceFullName":"Application Auto Scaling", "signatureVersion":"v4", "signingName":"application-autoscaling", - "targetPrefix":"AnyScaleFrontendService" + "targetPrefix":"AnyScaleFrontendService", + "uid":"application-autoscaling-2016-02-06" }, "operations":{ "DeleteScalingPolicy":{ @@ -365,7 +366,8 @@ "type":"string", "enum":[ "ecs:service:DesiredCount", - "ec2:spot-fleet-request:TargetCapacity" + "ec2:spot-fleet-request:TargetCapacity", + "elasticmapreduce:instancegroup:InstanceCount" ] }, "ScalableTarget":{ @@ -466,6 +468,7 @@ "type":"string", "enum":[ "ecs", + "elasticmapreduce", "ec2" ] }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/docs-2.json index 16cf8c446..98dcd9be1 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/docs-2.json @@ -1,14 +1,14 @@ { "version": "2.0", - "service": "

Application Auto Scaling is a general purpose Auto Scaling service for supported elastic AWS resources. With Application Auto Scaling, you can automatically scale your AWS resources, with an experience similar to that of Auto Scaling.

Application Auto Scaling supports scaling the following AWS resources:

  • Amazon ECS services

  • Amazon EC2 Spot fleet instances

You can use Application Auto Scaling to accomplish the following tasks:

  • Define scaling policies for automatically adjusting your AWS resources

  • Scale your resources in response to CloudWatch alarms

  • View history of your scaling events

Application Auto Scaling is available in the following regions:

  • us-east-1

  • us-west-1

  • us-west-2

  • ap-southeast-1

  • ap-southeast-2

  • ap-northeast-1

  • eu-central-1

  • eu-west-1

", + "service": "

With Application Auto Scaling, you can automatically scale your AWS resources. The experience similar to that of Auto Scaling. You can use Application Auto Scaling to accomplish the following tasks:

  • Define scaling policies to automatically scale your AWS resources

  • Scale your resources in response to CloudWatch alarms

  • View the history of your scaling events

Application Auto Scaling can scale the following AWS resources:

For a list of supported regions, see AWS Regions and Endpoints: Application Auto Scaling in the AWS General Reference.

", "operations": { - "DeleteScalingPolicy": "

Deletes an Application Auto Scaling scaling policy that was previously created. If you are no longer using a scaling policy, you can delete it with this operation.

Deleting a policy deletes the underlying alarm action, but does not delete the CloudWatch alarm associated with the scaling policy, even if it no longer has an associated action.

To create a new scaling policy or update an existing one, see PutScalingPolicy.

", - "DeregisterScalableTarget": "

Deregisters a scalable target that was previously registered. If you are no longer using a scalable target, you can delete it with this operation. When you deregister a scalable target, all of the scaling policies that are associated with that scalable target are deleted.

To create a new scalable target or update an existing one, see RegisterScalableTarget.

", - "DescribeScalableTargets": "

Provides descriptive information for scalable targets with a specified service namespace.

You can filter the results in a service namespace with the ResourceIds and ScalableDimension parameters.

To create a new scalable target or update an existing one, see RegisterScalableTarget. If you are no longer using a scalable target, you can deregister it with DeregisterScalableTarget.

", - "DescribeScalingActivities": "

Provides descriptive information for scaling activities with a specified service namespace for the previous six weeks.

You can filter the results in a service namespace with the ResourceId and ScalableDimension parameters.

Scaling activities are triggered by CloudWatch alarms that are associated with scaling policies. To view the existing scaling policies for a service namespace, see DescribeScalingPolicies. To create a new scaling policy or update an existing one, see PutScalingPolicy.

", - "DescribeScalingPolicies": "

Provides descriptive information for scaling policies with a specified service namespace.

You can filter the results in a service namespace with the ResourceId, ScalableDimension, and PolicyNames parameters.

To create a new scaling policy or update an existing one, see PutScalingPolicy. If you are no longer using a scaling policy, you can delete it with DeleteScalingPolicy.

", - "PutScalingPolicy": "

Creates or updates a policy for an existing Application Auto Scaling scalable target. Each scalable target is identified by service namespace, a resource ID, and a scalable dimension, and a scaling policy applies to a scalable target that is identified by those three attributes. You cannot create a scaling policy without first registering a scalable target with RegisterScalableTarget.

To update an existing policy, use the existing policy name and set the parameters you want to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request.

You can view the existing scaling policies for a service namespace with DescribeScalingPolicies. If you are no longer using a scaling policy, you can delete it with DeleteScalingPolicy.

", - "RegisterScalableTarget": "

Registers or updates a scalable target. A scalable target is a resource that can be scaled out or in with Application Auto Scaling. After you have registered a scalable target, you can use this operation to update the minimum and maximum values for your scalable dimension.

After you register a scalable target with Application Auto Scaling, you can create and apply scaling policies to it with PutScalingPolicy. You can view the existing scaling policies for a service namespace with DescribeScalableTargets. If you are no longer using a scalable target, you can deregister it with DeregisterScalableTarget.

" + "DeleteScalingPolicy": "

Deletes the specified Application Auto Scaling scaling policy.

Deleting a policy deletes the underlying alarm action, but does not delete the CloudWatch alarm associated with the scaling policy, even if it no longer has an associated action.

To create a scaling policy or update an existing one, see PutScalingPolicy.

", + "DeregisterScalableTarget": "

Deregisters a scalable target.

Deregistering a scalable target deletes the scaling policies that are associated with it.

To create a scalable target or update an existing one, see RegisterScalableTarget.

", + "DescribeScalableTargets": "

Provides descriptive information about the scalable targets in the specified namespace.

You can filter the results using the ResourceIds and ScalableDimension parameters.

To create a scalable target or update an existing one, see RegisterScalableTarget. If you are no longer using a scalable target, you can deregister it using DeregisterScalableTarget.

", + "DescribeScalingActivities": "

Provides descriptive information about the scaling activities in the specified namespace from the previous six weeks.

You can filter the results using the ResourceId and ScalableDimension parameters.

Scaling activities are triggered by CloudWatch alarms that are associated with scaling policies. To view the scaling policies for a service namespace, see DescribeScalingPolicies. To create a scaling policy or update an existing one, see PutScalingPolicy.

", + "DescribeScalingPolicies": "

Provides descriptive information about the scaling policies in the specified namespace.

You can filter the results using the ResourceId, ScalableDimension, and PolicyNames parameters.

To create a scaling policy or update an existing one, see PutScalingPolicy. If you are no longer using a scaling policy, you can delete it using DeleteScalingPolicy.

", + "PutScalingPolicy": "

Creates or updates a policy for an Application Auto Scaling scalable target.

Each scalable target is identified by a service namespace, resource ID, and scalable dimension. A scaling policy applies to the scalable target identified by those three attributes. You cannot create a scaling policy without first registering a scalable target using RegisterScalableTarget.

To update a policy, specify its policy name and the parameters that you want to change. Any parameters that you don't specify are not changed by this update request.

You can view the scaling policies for a service namespace using DescribeScalingPolicies. If you are no longer using a scaling policy, you can delete it using DeleteScalingPolicy.

", + "RegisterScalableTarget": "

Registers or updates a scalable target. A scalable target is a resource that Application Auto Scaling can scale out or scale in. After you have registered a scalable target, you can use this operation to update the minimum and maximum values for your scalable dimension.

After you register a scalable target, you can create and apply scaling policies using PutScalingPolicy. You can view the scaling policies for a service namespace using DescribeScalableTargets. If you are no longer using a scalable target, you can deregister it using DeregisterScalableTarget.

" }, "shapes": { "AdjustmentType": { @@ -18,7 +18,7 @@ } }, "Alarm": { - "base": "

An object representing a CloudWatch alarm associated with a scaling policy.

", + "base": "

Represents a CloudWatch alarm associated with a scaling policy.

", "refs": { "Alarms$member": null } @@ -26,7 +26,7 @@ "Alarms": { "base": null, "refs": { - "ScalingPolicy$Alarms": "

The CloudWatch alarms that are associated with the scaling policy.

" + "ScalingPolicy$Alarms": "

The CloudWatch alarms associated with the scaling policy.

" } }, "ConcurrentUpdateException": { @@ -125,9 +125,9 @@ "MaxResults": { "base": null, "refs": { - "DescribeScalableTargetsRequest$MaxResults": "

The maximum number of scalable target results returned by DescribeScalableTargets in paginated output. When this parameter is used, DescribeScalableTargets returns up to MaxResults results in a single page along with a NextToken response element. The remaining results of the initial request can be seen by sending another DescribeScalableTargets request with the returned NextToken value. This value can be between 1 and 50. If this parameter is not used, then DescribeScalableTargets returns up to 50 results and a NextToken value, if applicable.

", - "DescribeScalingActivitiesRequest$MaxResults": "

The maximum number of scaling activity results returned by DescribeScalingActivities in paginated output. When this parameter is used, DescribeScalingActivities returns up to MaxResults results in a single page along with a NextToken response element. The remaining results of the initial request can be seen by sending another DescribeScalingActivities request with the returned NextToken value. This value can be between 1 and 50. If this parameter is not used, then DescribeScalingActivities returns up to 50 results and a NextToken value, if applicable.

", - "DescribeScalingPoliciesRequest$MaxResults": "

The maximum number of scaling policy results returned by DescribeScalingPolicies in paginated output. When this parameter is used, DescribeScalingPolicies returns up to MaxResults results in a single page along with a NextToken response element. The remaining results of the initial request can be seen by sending another DescribeScalingPolicies request with the returned NextToken value. This value can be between 1 and 50. If this parameter is not used, then DescribeScalingPolicies returns up to 50 results and a NextToken value, if applicable.

" + "DescribeScalableTargetsRequest$MaxResults": "

The maximum number of scalable target results. This value can be between 1 and 50. The default value is 50.

If this parameter is used, the operation returns up to MaxResults results at a time, along with a NextToken value. To get the next set of results, include the NextToken value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a NextToken value, if applicable.

", + "DescribeScalingActivitiesRequest$MaxResults": "

The maximum number of scalable target results. This value can be between 1 and 50. The default value is 50.

If this parameter is used, the operation returns up to MaxResults results at a time, along with a NextToken value. To get the next set of results, include the NextToken value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a NextToken value, if applicable.

", + "DescribeScalingPoliciesRequest$MaxResults": "

The maximum number of scalable target results. This value can be between 1 and 50. The default value is 50.

If this parameter is used, the operation returns up to MaxResults results at a time, along with a NextToken value. To get the next set of results, include the NextToken value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a NextToken value, if applicable.

" } }, "MetricAggregationType": { @@ -164,7 +164,7 @@ "PolicyType": { "base": null, "refs": { - "PutScalingPolicyRequest$PolicyType": "

The policy type. If you are creating a new policy, this parameter is required. If you are updating an existing policy, this parameter is not required.

", + "PutScalingPolicyRequest$PolicyType": "

The policy type. If you are creating a new policy, this parameter is required. If you are updating a policy, this parameter is not required.

", "ScalingPolicy$PolicyType": "

The scaling policy type.

" } }, @@ -191,10 +191,10 @@ "ResourceCapacity": { "base": null, "refs": { - "RegisterScalableTargetRequest$MinCapacity": "

The minimum value for this scalable target to scale in to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.

", - "RegisterScalableTargetRequest$MaxCapacity": "

The maximum value for this scalable target to scale out to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.

", - "ScalableTarget$MinCapacity": "

The minimum value for this scalable target to scale in to in response to scaling activities.

", - "ScalableTarget$MaxCapacity": "

The maximum value for this scalable target to scale out to in response to scaling activities.

" + "RegisterScalableTargetRequest$MinCapacity": "

The minimum value to scale to in response to a scale in event. This parameter is required if you are registering a scalable target and optional if you are updating one.

", + "RegisterScalableTargetRequest$MaxCapacity": "

The maximum value to scale to in response to a scale out event. This parameter is required if you are registering a scalable target and optional if you are updating one.

", + "ScalableTarget$MinCapacity": "

The minimum value to scale to in response to a scale in event.

", + "ScalableTarget$MaxCapacity": "

The maximum value to scale to in response to a scale out event.

" } }, "ResourceId": { @@ -202,53 +202,53 @@ "refs": { "Alarm$AlarmName": "

The name of the alarm.

", "Alarm$AlarmARN": "

The Amazon Resource Name (ARN) of the alarm.

", - "ScalingActivity$ActivityId": "

The unique identifier string for the scaling activity.

" + "ScalingActivity$ActivityId": "

The unique identifier of the scaling activity.

" } }, "ResourceIdMaxLen1600": { "base": null, "refs": { - "DeleteScalingPolicyRequest$PolicyName": "

The name of the scaling policy to delete.

", - "DeleteScalingPolicyRequest$ResourceId": "

The resource type and unique identifier string for the resource associated with the scaling policy. For Amazon ECS services, the resource type is services, and the identifier is the cluster name and service name; for example, service/default/sample-webapp. For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.

", - "DeregisterScalableTargetRequest$ResourceId": "

The resource type and unique identifier string for the resource associated with the scalable target. For Amazon ECS services, the resource type is services, and the identifier is the cluster name and service name; for example, service/default/sample-webapp. For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.

", - "DescribeScalingActivitiesRequest$ResourceId": "

The resource type and unique identifier string for the resource associated with the scaling activity. For Amazon ECS services, the resource type is services, and the identifier is the cluster name and service name; for example, service/default/sample-webapp. For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. If you specify a scalable dimension, you must also specify a resource ID.

", - "DescribeScalingPoliciesRequest$ResourceId": "

The unique resource identifier string of the scalable target that the scaling policy is associated with. For Amazon ECS services, the resource type is services, and the identifier is the cluster name and service name; for example, service/default/sample-webapp. For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. If you specify a scalable dimension, you must also specify a resource ID.

", - "PutScalingPolicyRequest$ResourceId": "

The unique resource identifier string for the scalable target that this scaling policy applies to. For Amazon ECS services, the resource type is services, and the identifier is the cluster name and service name; for example, service/default/sample-webapp. For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.

", + "DeleteScalingPolicyRequest$PolicyName": "

The name of the scaling policy.

", + "DeleteScalingPolicyRequest$ResourceId": "

The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier.

  • ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/default/sample-webapp.

  • Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.

  • EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.

", + "DeregisterScalableTargetRequest$ResourceId": "

The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier.

  • ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/default/sample-webapp.

  • Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.

  • EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.

", + "DescribeScalingActivitiesRequest$ResourceId": "

The identifier of the resource associated with the scaling activity. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID.

  • ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/default/sample-webapp.

  • Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.

  • EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.

", + "DescribeScalingPoliciesRequest$ResourceId": "

The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID.

  • ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/default/sample-webapp.

  • Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.

  • EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.

", + "PutScalingPolicyRequest$ResourceId": "

The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier.

  • ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/default/sample-webapp.

  • Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.

  • EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.

", "PutScalingPolicyResponse$PolicyARN": "

The Amazon Resource Name (ARN) of the resulting scaling policy.

", - "RegisterScalableTargetRequest$ResourceId": "

The resource type and unique identifier string for the resource to associate with the scalable target. For Amazon ECS services, the resource type is services, and the identifier is the cluster name and service name; for example, service/default/sample-webapp. For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.

", - "RegisterScalableTargetRequest$RoleARN": "

The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.

", + "RegisterScalableTargetRequest$ResourceId": "

The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier.

  • ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/default/sample-webapp.

  • Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.

  • EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.

", + "RegisterScalableTargetRequest$RoleARN": "

The ARN of an IAM role that allows Application Auto Scaling to modify the scalable target on your behalf. This parameter is required when you register a scalable target and optional when you update one.

", "ResourceIdsMaxLen1600$member": null, - "ScalableTarget$ResourceId": "

The resource type and unique identifier string for the resource associated with the scalable target. For Amazon ECS services, the resource type is services, and the identifier is the cluster name and service name; for example, service/default/sample-webapp. For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.

", - "ScalableTarget$RoleARN": "

The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.

", - "ScalingActivity$ResourceId": "

The resource type and unique identifier string for the resource associated with the scaling activity. For Amazon ECS services, the resource type is services, and the identifier is the cluster name and service name; for example, service/default/sample-webapp. For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.

", + "ScalableTarget$ResourceId": "

The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier.

  • ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/default/sample-webapp.

  • Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.

  • EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.

", + "ScalableTarget$RoleARN": "

The ARN of an IAM role that allows Application Auto Scaling to modify the scalable target on your behalf.

", + "ScalingActivity$ResourceId": "

The identifier of the resource associated with the scaling activity. This string consists of the resource type and unique identifier.

  • ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/default/sample-webapp.

  • Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.

  • EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.

", "ScalingPolicy$PolicyARN": "

The Amazon Resource Name (ARN) of the scaling policy.

", - "ScalingPolicy$ResourceId": "

The resource type and unique identifier string for the resource associated with the scaling policy. For Amazon ECS services, the resource type is services, and the identifier is the cluster name and service name; for example, service/default/sample-webapp. For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.

" + "ScalingPolicy$ResourceId": "

The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier.

  • ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/default/sample-webapp.

  • Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.

  • EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.

" } }, "ResourceIdsMaxLen1600": { "base": null, "refs": { - "DescribeScalableTargetsRequest$ResourceIds": "

The resource type and unique identifier string for the resource associated with the scalable target. For Amazon ECS services, the resource type is services, and the identifier is the cluster name and service name; for example, service/default/sample-webapp. For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. If you specify a scalable dimension, you must also specify a resource ID.

", + "DescribeScalableTargetsRequest$ResourceIds": "

The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID.

  • ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/default/sample-webapp.

  • Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.

  • EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.

", "DescribeScalingPoliciesRequest$PolicyNames": "

The names of the scaling policies to describe.

" } }, "ScalableDimension": { "base": null, "refs": { - "DeleteScalingPolicyRequest$ScalableDimension": "

The scalable dimension associated with the scaling policy. The scalable dimension contains the service namespace, resource type, and scaling property, such as ecs:service:DesiredCount for the desired task count of an Amazon ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon EC2 Spot fleet request.

", - "DeregisterScalableTargetRequest$ScalableDimension": "

The scalable dimension associated with the scalable target. The scalable dimension contains the service namespace, resource type, and scaling property, such as ecs:service:DesiredCount for the desired task count of an Amazon ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon EC2 Spot fleet request.

", - "DescribeScalableTargetsRequest$ScalableDimension": "

The scalable dimension associated with the scalable target. The scalable dimension contains the service namespace, resource type, and scaling property, such as ecs:service:DesiredCount for the desired task count of an Amazon ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon EC2 Spot fleet request. If you specify a scalable dimension, you must also specify a resource ID.

", - "DescribeScalingActivitiesRequest$ScalableDimension": "

The scalable dimension associated with the scaling activity. The scalable dimension contains the service namespace, resource type, and scaling property, such as ecs:service:DesiredCount for the desired task count of an Amazon ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon EC2 Spot fleet request. If you specify a scalable dimension, you must also specify a resource ID.

", - "DescribeScalingPoliciesRequest$ScalableDimension": "

The scalable dimension of the scalable target that the scaling policy is associated with. The scalable dimension contains the service namespace, resource type, and scaling property, such as ecs:service:DesiredCount for the desired task count of an Amazon ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon EC2 Spot fleet request. If you specify a scalable dimension, you must also specify a resource ID.

", - "PutScalingPolicyRequest$ScalableDimension": "

The scalable dimension of the scalable target that this scaling policy applies to. The scalable dimension contains the service namespace, resource type, and scaling property, such as ecs:service:DesiredCount for the desired task count of an Amazon ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon EC2 Spot fleet request.

", - "RegisterScalableTargetRequest$ScalableDimension": "

The scalable dimension associated with the scalable target. The scalable dimension contains the service namespace, resource type, and scaling property, such as ecs:service:DesiredCount for the desired task count of an Amazon ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon EC2 Spot fleet request.

", - "ScalableTarget$ScalableDimension": "

The scalable dimension associated with the scalable target. The scalable dimension contains the service namespace, resource type, and scaling property, such as ecs:service:DesiredCount for the desired task count of an Amazon ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon EC2 Spot fleet request.

", - "ScalingActivity$ScalableDimension": "

The scalable dimension associated with the scaling activity. The scalable dimension contains the service namespace, resource type, and scaling property, such as ecs:service:DesiredCount for the desired task count of an Amazon ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon EC2 Spot fleet request.

", - "ScalingPolicy$ScalableDimension": "

The scalable dimension associated with the scaling policy. The scalable dimension contains the service namespace, resource type, and scaling property, such as ecs:service:DesiredCount for the desired task count of an Amazon ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon EC2 Spot fleet request.

" + "DeleteScalingPolicyRequest$ScalableDimension": "

The scalable dimension. This string consists of the service namespace, resource type, and scaling property.

  • ecs:service:DesiredCount - The desired task count of an ECS service.

  • ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.

  • elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group.

", + "DeregisterScalableTargetRequest$ScalableDimension": "

The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property.

  • ecs:service:DesiredCount - The desired task count of an ECS service.

  • ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.

  • elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group.

", + "DescribeScalableTargetsRequest$ScalableDimension": "

The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID.

  • ecs:service:DesiredCount - The desired task count of an ECS service.

  • ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.

  • elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group.

", + "DescribeScalingActivitiesRequest$ScalableDimension": "

The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID.

  • ecs:service:DesiredCount - The desired task count of an ECS service.

  • ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.

  • elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group.

", + "DescribeScalingPoliciesRequest$ScalableDimension": "

The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID.

  • ecs:service:DesiredCount - The desired task count of an ECS service.

  • ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.

  • elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group.

", + "PutScalingPolicyRequest$ScalableDimension": "

The scalable dimension. This string consists of the service namespace, resource type, and scaling property.

  • ecs:service:DesiredCount - The desired task count of an ECS service.

  • ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.

  • elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group.

", + "RegisterScalableTargetRequest$ScalableDimension": "

The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property.

  • ecs:service:DesiredCount - The desired task count of an ECS service.

  • ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.

  • elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group.

", + "ScalableTarget$ScalableDimension": "

The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property.

  • ecs:service:DesiredCount - The desired task count of an ECS service.

  • ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.

  • elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group.

", + "ScalingActivity$ScalableDimension": "

The scalable dimension. This string consists of the service namespace, resource type, and scaling property.

  • ecs:service:DesiredCount - The desired task count of an ECS service.

  • ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.

  • elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group.

", + "ScalingPolicy$ScalableDimension": "

The scalable dimension. This string consists of the service namespace, resource type, and scaling property.

  • ecs:service:DesiredCount - The desired task count of an ECS service.

  • ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.

  • elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group.

" } }, "ScalableTarget": { - "base": "

An object representing a scalable target.

", + "base": "

Represents a scalable target.

", "refs": { "ScalableTargets$member": null } @@ -266,7 +266,7 @@ } }, "ScalingActivity": { - "base": "

An object representing a scaling activity.

", + "base": "

Represents a scaling activity.

", "refs": { "ScalingActivities$member": null } @@ -290,7 +290,7 @@ } }, "ScalingPolicy": { - "base": "

An object representing a scaling policy.

", + "base": "

Represents a scaling policy.

", "refs": { "ScalingPolicies$member": null } @@ -298,20 +298,20 @@ "ServiceNamespace": { "base": null, "refs": { - "DeleteScalingPolicyRequest$ServiceNamespace": "

The namespace for the AWS service that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

", - "DeregisterScalableTargetRequest$ServiceNamespace": "

The namespace for the AWS service that the scalable target is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

", - "DescribeScalableTargetsRequest$ServiceNamespace": "

The namespace for the AWS service that the scalable target is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

", - "DescribeScalingActivitiesRequest$ServiceNamespace": "

The namespace for the AWS service that the scaling activity is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

", - "DescribeScalingPoliciesRequest$ServiceNamespace": "

The AWS service namespace of the scalable target that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

", - "PutScalingPolicyRequest$ServiceNamespace": "

The AWS service namespace of the scalable target that this scaling policy applies to. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

", - "RegisterScalableTargetRequest$ServiceNamespace": "

The namespace for the AWS service that the scalable target is associated with. For Amazon ECS services, the namespace value is ecs. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

", - "ScalableTarget$ServiceNamespace": "

The namespace for the AWS service that the scalable target is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

", - "ScalingActivity$ServiceNamespace": "

The namespace for the AWS service that the scaling activity is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

", - "ScalingPolicy$ServiceNamespace": "

The namespace for the AWS service that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

" + "DeleteScalingPolicyRequest$ServiceNamespace": "

The namespace of the AWS service. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

", + "DeregisterScalableTargetRequest$ServiceNamespace": "

The namespace of the AWS service. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

", + "DescribeScalableTargetsRequest$ServiceNamespace": "

The namespace of the AWS service. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

", + "DescribeScalingActivitiesRequest$ServiceNamespace": "

The namespace of the AWS service. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

", + "DescribeScalingPoliciesRequest$ServiceNamespace": "

The namespace of the AWS service. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

", + "PutScalingPolicyRequest$ServiceNamespace": "

The namespace of the AWS service. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

", + "RegisterScalableTargetRequest$ServiceNamespace": "

The namespace of the AWS service. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

", + "ScalableTarget$ServiceNamespace": "

The namespace of the AWS service. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

", + "ScalingActivity$ServiceNamespace": "

The namespace of the AWS service. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

", + "ScalingPolicy$ServiceNamespace": "

The namespace of the AWS service. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

" } }, "StepAdjustment": { - "base": "

An object representing a step adjustment for a StepScalingPolicyConfiguration. Describes an adjustment based on the difference between the value of the aggregated CloudWatch metric and the breach threshold that you've defined for the alarm.

For the following examples, suppose that you have an alarm with a breach threshold of 50:

  • If you want the adjustment to be triggered when the metric is greater than or equal to 50 and less than 60, specify a lower bound of 0 and an upper bound of 10.

  • If you want the adjustment to be triggered when the metric is greater than 40 and less than or equal to 50, specify a lower bound of -10 and an upper bound of 0.

There are a few rules for the step adjustments for your step policy:

  • The ranges of your step adjustments can't overlap or have a gap.

  • At most one step adjustment can have a null lower bound. If one step adjustment has a negative lower bound, then there must be a step adjustment with a null lower bound.

  • At most one step adjustment can have a null upper bound. If one step adjustment has a positive upper bound, then there must be a step adjustment with a null upper bound.

  • The upper and lower bound can't be null in the same step adjustment.

", + "base": "

Represents a step adjustment for a StepScalingPolicyConfiguration. Describes an adjustment based on the difference between the value of the aggregated CloudWatch metric and the breach threshold that you've defined for the alarm.

For the following examples, suppose that you have an alarm with a breach threshold of 50:

  • To trigger the adjustment when the metric is greater than or equal to 50 and less than 60, specify a lower bound of 0 and an upper bound of 10.

  • To trigger the adjustment when the metric is greater than 40 and less than or equal to 50, specify a lower bound of -10 and an upper bound of 0.

There are a few rules for the step adjustments for your step policy:

  • The ranges of your step adjustments can't overlap or have a gap.

  • At most one step adjustment can have a null lower bound. If one step adjustment has a negative lower bound, then there must be a step adjustment with a null lower bound.

  • At most one step adjustment can have a null upper bound. If one step adjustment has a positive upper bound, then there must be a step adjustment with a null upper bound.

  • The upper and lower bound can't be null in the same step adjustment.

", "refs": { "StepAdjustments$member": null } @@ -323,9 +323,9 @@ } }, "StepScalingPolicyConfiguration": { - "base": "

An object representing a step scaling policy configuration.

", + "base": "

Represents a step scaling policy configuration.

", "refs": { - "PutScalingPolicyRequest$StepScalingPolicyConfiguration": "

The configuration for the step scaling policy. If you are creating a new policy, this parameter is required. If you are updating an existing policy, this parameter is not required. For more information, see StepScalingPolicyConfiguration and StepAdjustment.

", + "PutScalingPolicyRequest$StepScalingPolicyConfiguration": "

The configuration for the step scaling policy. If you are creating a new policy, this parameter is required. If you are updating a policy, this parameter is not required. For more information, see StepScalingPolicyConfiguration and StepAdjustment.

", "ScalingPolicy$StepScalingPolicyConfiguration": "

The configuration for the step scaling policy.

" } }, @@ -346,12 +346,12 @@ "XmlString": { "base": null, "refs": { - "DescribeScalableTargetsRequest$NextToken": "

The NextToken value returned from a previous paginated DescribeScalableTargets request. Pagination continues from the end of the previous results that returned the NextToken value. This value is null when there are no more results to return.

", - "DescribeScalableTargetsResponse$NextToken": "

The NextToken value to include in a future DescribeScalableTargets request. When the results of a DescribeScalableTargets request exceed MaxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", - "DescribeScalingActivitiesRequest$NextToken": "

The NextToken value returned from a previous paginated DescribeScalingActivities request. Pagination continues from the end of the previous results that returned the NextToken value. This value is null when there are no more results to return.

", - "DescribeScalingActivitiesResponse$NextToken": "

The NextToken value to include in a future DescribeScalingActivities request. When the results of a DescribeScalingActivities request exceed MaxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", - "DescribeScalingPoliciesRequest$NextToken": "

The NextToken value returned from a previous paginated DescribeScalingPolicies request. Pagination continues from the end of the previous results that returned the NextToken value. This value is null when there are no more results to return.

", - "DescribeScalingPoliciesResponse$NextToken": "

The NextToken value to include in a future DescribeScalingPolicies request. When the results of a DescribeScalingPolicies request exceed MaxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeScalableTargetsRequest$NextToken": "

The token for the next set of results.

", + "DescribeScalableTargetsResponse$NextToken": "

The token required to get the next set of results. This value is null if there are no more results to return.

", + "DescribeScalingActivitiesRequest$NextToken": "

The token for the next set of results.

", + "DescribeScalingActivitiesResponse$NextToken": "

The token required to get the next set of results. This value is null if there are no more results to return.

", + "DescribeScalingPoliciesRequest$NextToken": "

The token for the next set of results.

", + "DescribeScalingPoliciesResponse$NextToken": "

The token required to get the next set of results. This value is null if there are no more results to return.

", "ScalingActivity$Description": "

A simple description of what action the scaling activity intends to accomplish.

", "ScalingActivity$Cause": "

A simple description of what caused the scaling activity to happen.

", "ScalingActivity$StatusMessage": "

A simple message about the current status of the scaling activity.

", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/appstream/2016-12-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/appstream/2016-12-01/api-2.json new file mode 100644 index 000000000..563a31fa7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/appstream/2016-12-01/api-2.json @@ -0,0 +1,820 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2016-12-01", + "endpointPrefix":"appstream2", + "jsonVersion":"1.1", + "protocol":"json", + "serviceFullName":"Amazon AppStream", + "signatureVersion":"v4", + "signingName":"appstream", + "targetPrefix":"PhotonAdminProxyService", + "uid":"appstream-2016-12-01" + }, + "operations":{ + "AssociateFleet":{ + "name":"AssociateFleet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateFleetRequest"}, + "output":{"shape":"AssociateFleetResult"}, + "errors":[ + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "CreateFleet":{ + "name":"CreateFleet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateFleetRequest"}, + "output":{"shape":"CreateFleetResult"}, + "errors":[ + {"shape":"ResourceAlreadyExistsException"}, + {"shape":"ResourceNotAvailableException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"LimitExceededException"}, + {"shape":"InvalidRoleException"} + ] + }, + "CreateStack":{ + "name":"CreateStack", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateStackRequest"}, + "output":{"shape":"CreateStackResult"}, + "errors":[ + {"shape":"LimitExceededException"}, + {"shape":"ResourceAlreadyExistsException"} + ] + }, + "CreateStreamingURL":{ + "name":"CreateStreamingURL", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateStreamingURLRequest"}, + "output":{"shape":"CreateStreamingURLResult"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceNotAvailableException"}, + {"shape":"OperationNotPermittedException"} + ] + }, + "DeleteFleet":{ + "name":"DeleteFleet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteFleetRequest"}, + "output":{"shape":"DeleteFleetResult"}, + "errors":[ + {"shape":"ResourceInUseException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DeleteStack":{ + "name":"DeleteStack", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteStackRequest"}, + "output":{"shape":"DeleteStackResult"}, + "errors":[ + {"shape":"ResourceInUseException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DescribeFleets":{ + "name":"DescribeFleets", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeFleetsRequest"}, + "output":{"shape":"DescribeFleetsResult"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ] + }, + "DescribeImages":{ + "name":"DescribeImages", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeImagesRequest"}, + "output":{"shape":"DescribeImagesResult"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ] + }, + "DescribeSessions":{ + "name":"DescribeSessions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeSessionsRequest"}, + "output":{"shape":"DescribeSessionsResult"} + }, + "DescribeStacks":{ + "name":"DescribeStacks", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeStacksRequest"}, + "output":{"shape":"DescribeStacksResult"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ] + }, + "DisassociateFleet":{ + "name":"DisassociateFleet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociateFleetRequest"}, + "output":{"shape":"DisassociateFleetResult"}, + "errors":[ + {"shape":"ResourceInUseException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ExpireSession":{ + "name":"ExpireSession", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ExpireSessionRequest"}, + "output":{"shape":"ExpireSessionResult"} + }, + "ListAssociatedFleets":{ + "name":"ListAssociatedFleets", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAssociatedFleetsRequest"}, + "output":{"shape":"ListAssociatedFleetsResult"} + }, + "ListAssociatedStacks":{ + "name":"ListAssociatedStacks", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAssociatedStacksRequest"}, + "output":{"shape":"ListAssociatedStacksResult"} + }, + "StartFleet":{ + "name":"StartFleet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartFleetRequest"}, + "output":{"shape":"StartFleetResult"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"LimitExceededException"} + ] + }, + "StopFleet":{ + "name":"StopFleet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopFleetRequest"}, + "output":{"shape":"StopFleetResult"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ] + }, + "UpdateFleet":{ + "name":"UpdateFleet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateFleetRequest"}, + "output":{"shape":"UpdateFleetResult"}, + "errors":[ + {"shape":"ResourceInUseException"}, + {"shape":"LimitExceededException"}, + {"shape":"InvalidRoleException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "UpdateStack":{ + "name":"UpdateStack", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateStackRequest"}, + "output":{"shape":"UpdateStackResult"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"} + ] + } + }, + "shapes":{ + "Application":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "DisplayName":{"shape":"String"}, + "IconURL":{"shape":"String"}, + "LaunchPath":{"shape":"String"}, + "LaunchParameters":{"shape":"String"}, + "Enabled":{"shape":"Boolean"}, + "Metadata":{"shape":"Metadata"} + } + }, + "Applications":{ + "type":"list", + "member":{"shape":"Application"} + }, + "Arn":{ + "type":"string", + "pattern":"^arn:aws:[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}$" + }, + "AssociateFleetRequest":{ + "type":"structure", + "required":[ + "FleetName", + "StackName" + ], + "members":{ + "FleetName":{"shape":"String"}, + "StackName":{"shape":"String"} + } + }, + "AssociateFleetResult":{ + "type":"structure", + "members":{ + } + }, + "Boolean":{"type":"boolean"}, + "ComputeCapacity":{ + "type":"structure", + "required":["DesiredInstances"], + "members":{ + "DesiredInstances":{"shape":"Integer"} + } + }, + "ComputeCapacityStatus":{ + "type":"structure", + "required":["Desired"], + "members":{ + "Desired":{"shape":"Integer"}, + "Running":{"shape":"Integer"}, + "InUse":{"shape":"Integer"}, + "Available":{"shape":"Integer"} + } + }, + "CreateFleetRequest":{ + "type":"structure", + "required":[ + "Name", + "ImageName", + "InstanceType", + "ComputeCapacity" + ], + "members":{ + "Name":{"shape":"Name"}, + "ImageName":{"shape":"String"}, + "InstanceType":{"shape":"String"}, + "ComputeCapacity":{"shape":"ComputeCapacity"}, + "VpcConfig":{"shape":"VpcConfig"}, + "MaxUserDurationInSeconds":{"shape":"Integer"}, + "DisconnectTimeoutInSeconds":{"shape":"Integer"}, + "Description":{"shape":"Description"}, + "DisplayName":{"shape":"DisplayName"} + } + }, + "CreateFleetResult":{ + "type":"structure", + "members":{ + "Fleet":{"shape":"Fleet"} + } + }, + "CreateStackRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"String"}, + "Description":{"shape":"Description"}, + "DisplayName":{"shape":"DisplayName"} + } + }, + "CreateStackResult":{ + "type":"structure", + "members":{ + "Stack":{"shape":"Stack"} + } + }, + "CreateStreamingURLRequest":{ + "type":"structure", + "required":[ + "StackName", + "FleetName", + "UserId" + ], + "members":{ + "StackName":{"shape":"String"}, + "FleetName":{"shape":"String"}, + "UserId":{"shape":"UserId"}, + "ApplicationId":{"shape":"String"}, + "Validity":{"shape":"Long"}, + "SessionContext":{"shape":"String"} + } + }, + "CreateStreamingURLResult":{ + "type":"structure", + "members":{ + "StreamingURL":{"shape":"String"}, + "Expires":{"shape":"Timestamp"} + } + }, + "DeleteFleetRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"String"} + } + }, + "DeleteFleetResult":{ + "type":"structure", + "members":{ + } + }, + "DeleteStackRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"String"} + } + }, + "DeleteStackResult":{ + "type":"structure", + "members":{ + } + }, + "DescribeFleetsRequest":{ + "type":"structure", + "members":{ + "Names":{"shape":"StringList"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeFleetsResult":{ + "type":"structure", + "members":{ + "Fleets":{"shape":"FleetList"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeImagesRequest":{ + "type":"structure", + "members":{ + "Names":{"shape":"StringList"} + } + }, + "DescribeImagesResult":{ + "type":"structure", + "members":{ + "Images":{"shape":"ImageList"} + } + }, + "DescribeSessionsRequest":{ + "type":"structure", + "required":[ + "StackName", + "FleetName" + ], + "members":{ + "StackName":{"shape":"String"}, + "FleetName":{"shape":"String"}, + "UserId":{"shape":"UserId"}, + "NextToken":{"shape":"String"}, + "Limit":{"shape":"Integer"} + } + }, + "DescribeSessionsResult":{ + "type":"structure", + "members":{ + "Sessions":{"shape":"SessionList"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeStacksRequest":{ + "type":"structure", + "members":{ + "Names":{"shape":"StringList"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeStacksResult":{ + "type":"structure", + "members":{ + "Stacks":{"shape":"StackList"}, + "NextToken":{"shape":"String"} + } + }, + "Description":{ + "type":"string", + "max":256 + }, + "DisassociateFleetRequest":{ + "type":"structure", + "required":[ + "FleetName", + "StackName" + ], + "members":{ + "FleetName":{"shape":"String"}, + "StackName":{"shape":"String"} + } + }, + "DisassociateFleetResult":{ + "type":"structure", + "members":{ + } + }, + "DisplayName":{ + "type":"string", + "max":100 + }, + "ErrorMessage":{"type":"string"}, + "ExpireSessionRequest":{ + "type":"structure", + "required":["SessionId"], + "members":{ + "SessionId":{"shape":"String"} + } + }, + "ExpireSessionResult":{ + "type":"structure", + "members":{ + } + }, + "Fleet":{ + "type":"structure", + "required":[ + "Arn", + "Name", + "ImageName", + "InstanceType", + "ComputeCapacityStatus", + "State" + ], + "members":{ + "Arn":{"shape":"Arn"}, + "Name":{"shape":"String"}, + "DisplayName":{"shape":"String"}, + "Description":{"shape":"String"}, + "ImageName":{"shape":"String"}, + "InstanceType":{"shape":"String"}, + "ComputeCapacityStatus":{"shape":"ComputeCapacityStatus"}, + "MaxUserDurationInSeconds":{"shape":"Integer"}, + "DisconnectTimeoutInSeconds":{"shape":"Integer"}, + "State":{"shape":"FleetState"}, + "VpcConfig":{"shape":"VpcConfig"}, + "CreatedTime":{"shape":"Timestamp"}, + "FleetErrors":{"shape":"FleetErrors"} + } + }, + "FleetError":{ + "type":"structure", + "members":{ + "ErrorCode":{"shape":"FleetErrorCode"}, + "ErrorMessage":{"shape":"String"} + } + }, + "FleetErrorCode":{ + "type":"string", + "enum":[ + "IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION", + "IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION", + "IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION", + "NETWORK_INTERFACE_LIMIT_EXCEEDED", + "INTERNAL_SERVICE_ERROR", + "IAM_SERVICE_ROLE_IS_MISSING", + "SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES", + "IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION", + "SUBNET_NOT_FOUND", + "IMAGE_NOT_FOUND", + "INVALID_SUBNET_CONFIGURATION" + ] + }, + "FleetErrors":{ + "type":"list", + "member":{"shape":"FleetError"} + }, + "FleetList":{ + "type":"list", + "member":{"shape":"Fleet"} + }, + "FleetState":{ + "type":"string", + "enum":[ + "STARTING", + "RUNNING", + "STOPPING", + "STOPPED" + ] + }, + "Image":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"String"}, + "Arn":{"shape":"Arn"}, + "BaseImageArn":{"shape":"Arn"}, + "DisplayName":{"shape":"String"}, + "State":{"shape":"ImageState"}, + "Visibility":{"shape":"VisibilityType"}, + "Platform":{"shape":"PlatformType"}, + "Description":{"shape":"String"}, + "StateChangeReason":{"shape":"ImageStateChangeReason"}, + "Applications":{"shape":"Applications"}, + "CreatedTime":{"shape":"Timestamp"} + } + }, + "ImageList":{ + "type":"list", + "member":{"shape":"Image"} + }, + "ImageState":{ + "type":"string", + "enum":[ + "PENDING", + "AVAILABLE", + "FAILED", + "DELETING" + ] + }, + "ImageStateChangeReason":{ + "type":"structure", + "members":{ + "Code":{"shape":"ImageStateChangeReasonCode"}, + "Message":{"shape":"String"} + } + }, + "ImageStateChangeReasonCode":{ + "type":"string", + "enum":[ + "INTERNAL_ERROR", + "IMAGE_BUILDER_NOT_AVAILABLE" + ] + }, + "Integer":{"type":"integer"}, + "InvalidRoleException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "LimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ListAssociatedFleetsRequest":{ + "type":"structure", + "required":["StackName"], + "members":{ + "StackName":{"shape":"String"}, + "NextToken":{"shape":"String"} + } + }, + "ListAssociatedFleetsResult":{ + "type":"structure", + "members":{ + "Names":{"shape":"StringList"}, + "NextToken":{"shape":"String"} + } + }, + "ListAssociatedStacksRequest":{ + "type":"structure", + "required":["FleetName"], + "members":{ + "FleetName":{"shape":"String"}, + "NextToken":{"shape":"String"} + } + }, + "ListAssociatedStacksResult":{ + "type":"structure", + "members":{ + "Names":{"shape":"StringList"}, + "NextToken":{"shape":"String"} + } + }, + "Long":{"type":"long"}, + "Metadata":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"String"} + }, + "Name":{ + "type":"string", + "pattern":"^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,100}$" + }, + "OperationNotPermittedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "PlatformType":{ + "type":"string", + "enum":["WINDOWS"] + }, + "ResourceAlreadyExistsException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ResourceInUseException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ResourceNotAvailableException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "Session":{ + "type":"structure", + "required":[ + "Id", + "UserId", + "StackName", + "FleetName", + "State" + ], + "members":{ + "Id":{"shape":"String"}, + "UserId":{"shape":"UserId"}, + "StackName":{"shape":"String"}, + "FleetName":{"shape":"String"}, + "State":{"shape":"SessionState"} + } + }, + "SessionList":{ + "type":"list", + "member":{"shape":"Session"} + }, + "SessionState":{ + "type":"string", + "enum":[ + "ACTIVE", + "PENDING", + "EXPIRED" + ] + }, + "Stack":{ + "type":"structure", + "required":["Name"], + "members":{ + "Arn":{"shape":"Arn"}, + "Name":{"shape":"String"}, + "Description":{"shape":"String"}, + "DisplayName":{"shape":"String"}, + "CreatedTime":{"shape":"Timestamp"} + } + }, + "StackList":{ + "type":"list", + "member":{"shape":"Stack"} + }, + "StartFleetRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"String"} + } + }, + "StartFleetResult":{ + "type":"structure", + "members":{ + } + }, + "StopFleetRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"String"} + } + }, + "StopFleetResult":{ + "type":"structure", + "members":{ + } + }, + "String":{ + "type":"string", + "min":1 + }, + "StringList":{ + "type":"list", + "member":{"shape":"String"} + }, + "SubnetIdList":{ + "type":"list", + "member":{"shape":"String"}, + "min":1 + }, + "Timestamp":{"type":"timestamp"}, + "UpdateFleetRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "ImageName":{"shape":"String"}, + "Name":{"shape":"String"}, + "InstanceType":{"shape":"String"}, + "ComputeCapacity":{"shape":"ComputeCapacity"}, + "VpcConfig":{"shape":"VpcConfig"}, + "MaxUserDurationInSeconds":{"shape":"Integer"}, + "DisconnectTimeoutInSeconds":{"shape":"Integer"}, + "DeleteVpcConfig":{"shape":"Boolean"}, + "Description":{"shape":"Description"}, + "DisplayName":{"shape":"DisplayName"} + } + }, + "UpdateFleetResult":{ + "type":"structure", + "members":{ + "Fleet":{"shape":"Fleet"} + } + }, + "UpdateStackRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "DisplayName":{"shape":"DisplayName"}, + "Description":{"shape":"Description"}, + "Name":{"shape":"String"} + } + }, + "UpdateStackResult":{ + "type":"structure", + "members":{ + "Stack":{"shape":"Stack"} + } + }, + "UserId":{ + "type":"string", + "max":32, + "min":2 + }, + "VisibilityType":{ + "type":"string", + "enum":[ + "PUBLIC", + "PRIVATE" + ] + }, + "VpcConfig":{ + "type":"structure", + "required":["SubnetIds"], + "members":{ + "SubnetIds":{"shape":"SubnetIdList"} + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/appstream/2016-12-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/appstream/2016-12-01/docs-2.json new file mode 100644 index 000000000..24c800321 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/appstream/2016-12-01/docs-2.json @@ -0,0 +1,565 @@ +{ + "version": "2.0", + "service": "Amazon AppStream 2.0

API documentation for Amazon AppStream 2.0.

", + "operations": { + "AssociateFleet": "

Associate a fleet to a stack.

", + "CreateFleet": "

Creates a new fleet.

", + "CreateStack": "

Create a new stack.

", + "CreateStreamingURL": "

Creates a URL to start an AppStream 2.0 streaming session for a user. By default, the URL is valid only for 1 minute from the time that it is generated.

", + "DeleteFleet": "

Deletes a fleet.

", + "DeleteStack": "

Deletes the stack. After this operation completes, the environment can no longer be activated, and any reservations made for the stack are released.

", + "DescribeFleets": "

If fleet names are provided, this operation describes the specified fleets; otherwise, all the fleets in the account are described.

", + "DescribeImages": "

Describes the images. If a list of names is not provided, all images in your account are returned. This operation does not return a paginated result.

", + "DescribeSessions": "

Describes the streaming sessions for a stack and a fleet. If a user ID is provided, this operation returns streaming sessions for only that user. Pass this value for the nextToken parameter in a subsequent call to this operation to retrieve the next set of items.

", + "DescribeStacks": "

If stack names are not provided, this operation describes the specified stacks; otherwise, all stacks in the account are described. Pass the nextToken value in a subsequent call to this operation to retrieve the next set of items.

", + "DisassociateFleet": "

Disassociates a fleet from a stack.

", + "ExpireSession": "

This operation immediately stops a streaming session.

", + "ListAssociatedFleets": "

Lists all fleets associated with the stack.

", + "ListAssociatedStacks": "

Lists all stacks to which the specified fleet is associated.

", + "StartFleet": "

Starts a fleet.

", + "StopFleet": "

Stops a fleet.

", + "UpdateFleet": "

Updates an existing fleet. All the attributes except the fleet name can be updated in the STOPPED state. Only ComputeCapacity and ImageName can be updated in any other state.

", + "UpdateStack": "

Updates the specified fields in the stack with the specified name.

" + }, + "shapes": { + "Application": { + "base": "

An entry for a single application in the application catalog.

", + "refs": { + "Applications$member": null + } + }, + "Applications": { + "base": null, + "refs": { + "Image$Applications": "

The applications associated with an image.

" + } + }, + "Arn": { + "base": null, + "refs": { + "Fleet$Arn": "

The ARN for the fleet.

", + "Image$Arn": "

The ARN for the image.

", + "Image$BaseImageArn": "

The source image ARN from which this image was created.

", + "Stack$Arn": "

The ARN of the stack.

" + } + }, + "AssociateFleetRequest": { + "base": null, + "refs": { + } + }, + "AssociateFleetResult": { + "base": null, + "refs": { + } + }, + "Boolean": { + "base": null, + "refs": { + "Application$Enabled": "

An application can be disabled after image creation if there is a problem.

", + "UpdateFleetRequest$DeleteVpcConfig": "

Delete the VPC association for the specified fleet.

" + } + }, + "ComputeCapacity": { + "base": "

The capacity configuration for the fleet.

", + "refs": { + "CreateFleetRequest$ComputeCapacity": "

The parameters for the capacity allocated to the fleet.

", + "UpdateFleetRequest$ComputeCapacity": "

The parameters for the capacity allocated to the fleet.

" + } + }, + "ComputeCapacityStatus": { + "base": "

The capacity information for the fleet.

", + "refs": { + "Fleet$ComputeCapacityStatus": "

The capacity information for the fleet.

" + } + }, + "CreateFleetRequest": { + "base": "

Contains the parameters for the new fleet to create.

", + "refs": { + } + }, + "CreateFleetResult": { + "base": null, + "refs": { + } + }, + "CreateStackRequest": { + "base": null, + "refs": { + } + }, + "CreateStackResult": { + "base": null, + "refs": { + } + }, + "CreateStreamingURLRequest": { + "base": null, + "refs": { + } + }, + "CreateStreamingURLResult": { + "base": null, + "refs": { + } + }, + "DeleteFleetRequest": { + "base": null, + "refs": { + } + }, + "DeleteFleetResult": { + "base": null, + "refs": { + } + }, + "DeleteStackRequest": { + "base": null, + "refs": { + } + }, + "DeleteStackResult": { + "base": null, + "refs": { + } + }, + "DescribeFleetsRequest": { + "base": null, + "refs": { + } + }, + "DescribeFleetsResult": { + "base": null, + "refs": { + } + }, + "DescribeImagesRequest": { + "base": null, + "refs": { + } + }, + "DescribeImagesResult": { + "base": null, + "refs": { + } + }, + "DescribeSessionsRequest": { + "base": null, + "refs": { + } + }, + "DescribeSessionsResult": { + "base": null, + "refs": { + } + }, + "DescribeStacksRequest": { + "base": null, + "refs": { + } + }, + "DescribeStacksResult": { + "base": null, + "refs": { + } + }, + "Description": { + "base": null, + "refs": { + "CreateFleetRequest$Description": "

The description of the fleet.

", + "CreateStackRequest$Description": "

The description displayed to end users on the AppStream 2.0 portal.

", + "UpdateFleetRequest$Description": "

The description displayed to end users on the AppStream 2.0 portal.

", + "UpdateStackRequest$Description": "

The description displayed to end users on the AppStream 2.0 portal.

" + } + }, + "DisassociateFleetRequest": { + "base": null, + "refs": { + } + }, + "DisassociateFleetResult": { + "base": null, + "refs": { + } + }, + "DisplayName": { + "base": null, + "refs": { + "CreateFleetRequest$DisplayName": "

The display name of the fleet.

", + "CreateStackRequest$DisplayName": "

The name displayed to end users on the AppStream 2.0 portal.

", + "UpdateFleetRequest$DisplayName": "

The name displayed to end users on the AppStream 2.0 portal.

", + "UpdateStackRequest$DisplayName": "

The name displayed to end users on the AppStream 2.0 portal.

" + } + }, + "ErrorMessage": { + "base": null, + "refs": { + "InvalidRoleException$Message": null, + "LimitExceededException$Message": null, + "OperationNotPermittedException$Message": null, + "ResourceAlreadyExistsException$Message": null, + "ResourceInUseException$Message": null, + "ResourceNotAvailableException$Message": null, + "ResourceNotFoundException$Message": null + } + }, + "ExpireSessionRequest": { + "base": null, + "refs": { + } + }, + "ExpireSessionResult": { + "base": null, + "refs": { + } + }, + "Fleet": { + "base": "

Contains the parameters for a fleet.

", + "refs": { + "CreateFleetResult$Fleet": "

The details for the created fleet.

", + "FleetList$member": null, + "UpdateFleetResult$Fleet": "

A list of fleet details.

" + } + }, + "FleetError": { + "base": "

The details of the fleet error.

", + "refs": { + "FleetErrors$member": null + } + }, + "FleetErrorCode": { + "base": null, + "refs": { + "FleetError$ErrorCode": "

The error code for the fleet error.

" + } + }, + "FleetErrors": { + "base": null, + "refs": { + "Fleet$FleetErrors": "

The list of fleet errors is appended to this list.

" + } + }, + "FleetList": { + "base": "

A list of fleets.

", + "refs": { + "DescribeFleetsResult$Fleets": "

The list of fleet details.

" + } + }, + "FleetState": { + "base": null, + "refs": { + "Fleet$State": "

The current state for the fleet.

" + } + }, + "Image": { + "base": "

New streaming instances are booted from images. The image stores the application catalog and is connected to fleets.

", + "refs": { + "ImageList$member": null + } + }, + "ImageList": { + "base": null, + "refs": { + "DescribeImagesResult$Images": "

The list of images.

" + } + }, + "ImageState": { + "base": null, + "refs": { + "Image$State": "

The image starts in the PENDING state, and then moves to AVAILABLE if image creation succeeds and FAILED if image creation has failed.

" + } + }, + "ImageStateChangeReason": { + "base": "

The reason why the last state change occurred.

", + "refs": { + "Image$StateChangeReason": "

The reason why the last state change occurred.

" + } + }, + "ImageStateChangeReasonCode": { + "base": null, + "refs": { + "ImageStateChangeReason$Code": "

The state change reason code of the image.

" + } + }, + "Integer": { + "base": null, + "refs": { + "ComputeCapacity$DesiredInstances": "

The desired number of streaming instances.

", + "ComputeCapacityStatus$Desired": "

The desired number of streaming instances.

", + "ComputeCapacityStatus$Running": "

The total number of simultaneous streaming instances that are running.

", + "ComputeCapacityStatus$InUse": "

The number of instances that are being used for streaming.

", + "ComputeCapacityStatus$Available": "

The number of currently available instances that can be used to stream sessions.

", + "CreateFleetRequest$MaxUserDurationInSeconds": "

The maximum time up to which a streaming session can run.

", + "CreateFleetRequest$DisconnectTimeoutInSeconds": "

The time after disconnection when a session is considered to have ended. If a user who got disconnected reconnects within this timeout interval, the user is connected back to his/her previous session.

", + "DescribeSessionsRequest$Limit": "

The size of each page of results. The default value is 20 and the maximum supported value is 50.

", + "Fleet$MaxUserDurationInSeconds": "

The maximum time during which a streaming session can run.

", + "Fleet$DisconnectTimeoutInSeconds": "

The time after disconnection when a session is considered to have ended. When a user reconnects after a disconnection, the user is connected to the same session and instance within this time interval.

", + "UpdateFleetRequest$MaxUserDurationInSeconds": "

The maximum time during which a streaming session can run.

", + "UpdateFleetRequest$DisconnectTimeoutInSeconds": "

The time after disconnection when a session is considered to have ended. When the user reconnects after a disconnection, the user is connected to the same instance within this time interval.

" + } + }, + "InvalidRoleException": { + "base": "

The specified role is invalid.

", + "refs": { + } + }, + "LimitExceededException": { + "base": "

The requested limit exceeds the permitted limit for an account.

", + "refs": { + } + }, + "ListAssociatedFleetsRequest": { + "base": null, + "refs": { + } + }, + "ListAssociatedFleetsResult": { + "base": "

The response from a successful operation.

", + "refs": { + } + }, + "ListAssociatedStacksRequest": { + "base": null, + "refs": { + } + }, + "ListAssociatedStacksResult": { + "base": "

The response from a successful operation.

", + "refs": { + } + }, + "Long": { + "base": null, + "refs": { + "CreateStreamingURLRequest$Validity": "

The validity duration of the URL in seconds. After this duration, the URL returned by this operation becomes invalid.

" + } + }, + "Metadata": { + "base": null, + "refs": { + "Application$Metadata": "

Additional attributes that describes the application.

" + } + }, + "Name": { + "base": null, + "refs": { + "CreateFleetRequest$Name": "

A unique identifier for the fleet.

" + } + }, + "OperationNotPermittedException": { + "base": "

The attempted operation is not permitted.

", + "refs": { + } + }, + "PlatformType": { + "base": null, + "refs": { + "Image$Platform": "

The operating system platform of the image.

" + } + }, + "ResourceAlreadyExistsException": { + "base": "

The specified resource already exists.

", + "refs": { + } + }, + "ResourceInUseException": { + "base": "

The specified resource is in use.

", + "refs": { + } + }, + "ResourceNotAvailableException": { + "base": "

The specified resource exists and is not in use, but isn't available.

", + "refs": { + } + }, + "ResourceNotFoundException": { + "base": "

The specified resource was not found.

", + "refs": { + } + }, + "Session": { + "base": "

Contains the parameters for a streaming session.

", + "refs": { + "SessionList$member": null + } + }, + "SessionList": { + "base": "

List of sessions.

", + "refs": { + "DescribeSessionsResult$Sessions": "

The list of streaming sessions.

" + } + }, + "SessionState": { + "base": "

Possible values for the state of a streaming session.

", + "refs": { + "Session$State": "

The current state of the streaming session.

" + } + }, + "Stack": { + "base": "

Details about a stack.

", + "refs": { + "CreateStackResult$Stack": "

The details for the created stack.

", + "StackList$member": null, + "UpdateStackResult$Stack": "

A list of stack details.

" + } + }, + "StackList": { + "base": "

A list of stacks.

", + "refs": { + "DescribeStacksResult$Stacks": "

The list of stack details.

" + } + }, + "StartFleetRequest": { + "base": null, + "refs": { + } + }, + "StartFleetResult": { + "base": null, + "refs": { + } + }, + "StopFleetRequest": { + "base": null, + "refs": { + } + }, + "StopFleetResult": { + "base": null, + "refs": { + } + }, + "String": { + "base": null, + "refs": { + "Application$Name": "

The unique identifier for the application.

", + "Application$DisplayName": "

The name of the application shown to the end users.

", + "Application$IconURL": "

The URL for the application icon. This URL may be time-limited.

", + "Application$LaunchPath": "

The path to the application executable in the instance.

", + "Application$LaunchParameters": "

A list of arguments that are passed to the application at launch.

", + "AssociateFleetRequest$FleetName": "

The name of the fleet to associate.

", + "AssociateFleetRequest$StackName": "

The name of the stack to which the fleet is associated.

", + "CreateFleetRequest$ImageName": "

Unique name of the image used by the fleet.

", + "CreateFleetRequest$InstanceType": "

The instance type of compute resources for the fleet. Fleet instances are launched from this instance type.

", + "CreateStackRequest$Name": "

The unique identifier for this stack.

", + "CreateStreamingURLRequest$StackName": "

The stack for which the URL is generated.

", + "CreateStreamingURLRequest$FleetName": "

The fleet for which the URL is generated.

", + "CreateStreamingURLRequest$ApplicationId": "

The ID of the application that must be launched after the session starts.

", + "CreateStreamingURLRequest$SessionContext": "

The sessionContext of the streaming URL.

", + "CreateStreamingURLResult$StreamingURL": "

The URL to start the AppStream 2.0 streaming session.

", + "DeleteFleetRequest$Name": "

The name of the fleet to be deleted.

", + "DeleteStackRequest$Name": "

The name of the stack to delete.

", + "DescribeFleetsRequest$NextToken": "

The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

", + "DescribeFleetsResult$NextToken": "

The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.

", + "DescribeSessionsRequest$StackName": "

The name of the stack for which to list sessions.

", + "DescribeSessionsRequest$FleetName": "

The name of the fleet for which to list sessions.

", + "DescribeSessionsRequest$NextToken": "

The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

", + "DescribeSessionsResult$NextToken": "

The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.

", + "DescribeStacksRequest$NextToken": "

The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

", + "DescribeStacksResult$NextToken": "

The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.

", + "DisassociateFleetRequest$FleetName": "

The name of the fleet to disassociate.

", + "DisassociateFleetRequest$StackName": "

The name of the stack with which the fleet is associated.

", + "ExpireSessionRequest$SessionId": "

The unique identifier of the streaming session to be stopped.

", + "Fleet$Name": "

The name of the fleet.

", + "Fleet$DisplayName": "

The name displayed to end users on the AppStream 2.0 portal.

", + "Fleet$Description": "

The description displayed to end users on the AppStream 2.0 portal.

", + "Fleet$ImageName": "

The image used by the fleet.

", + "Fleet$InstanceType": "

The instance type of compute resources for the fleet. The fleet instances are launched from this instance type.

", + "FleetError$ErrorMessage": "

The error message generated when the fleet has errors.

", + "Image$Name": "

The unique identifier for the image.

", + "Image$DisplayName": "

The display name for the image.

", + "Image$Description": "

A meaningful description for the image.

", + "ImageStateChangeReason$Message": "

The state change reason message to the end user.

", + "ListAssociatedFleetsRequest$StackName": "

The name of the stack whose associated fleets are listed.

", + "ListAssociatedFleetsRequest$NextToken": "

The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

", + "ListAssociatedFleetsResult$NextToken": "

The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.

", + "ListAssociatedStacksRequest$FleetName": "

The name of the fleet whose associated stacks are listed.

", + "ListAssociatedStacksRequest$NextToken": "

The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

", + "ListAssociatedStacksResult$NextToken": "

The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.

", + "Metadata$key": null, + "Metadata$value": null, + "Session$Id": "

The unique ID for a streaming session.

", + "Session$StackName": "

The name of the stack for which the streaming session was created.

", + "Session$FleetName": "

The name of the fleet for which the streaming session was created.

", + "Stack$Name": "

The unique identifier of the stack.

", + "Stack$Description": "

A meaningful description for the stack.

", + "Stack$DisplayName": "

A display name for the stack.

", + "StartFleetRequest$Name": "

The name of the fleet to start.

", + "StopFleetRequest$Name": "

The name of the fleet to stop.

", + "StringList$member": null, + "SubnetIdList$member": null, + "UpdateFleetRequest$ImageName": "

The image name from which a fleet is created.

", + "UpdateFleetRequest$Name": "

The name of the fleet.

", + "UpdateFleetRequest$InstanceType": "

The instance type of compute resources for the fleet. Fleet instances are launched from this instance type.

", + "UpdateStackRequest$Name": "

The name of the stack to update.

" + } + }, + "StringList": { + "base": null, + "refs": { + "DescribeFleetsRequest$Names": "

The fleet names to describe. Use null to describe all the fleets for the AWS account.

", + "DescribeImagesRequest$Names": "

A specific list of images to describe.

", + "DescribeStacksRequest$Names": "

The stack names to describe. Use null to describe all the stacks for the AWS account.

", + "ListAssociatedFleetsResult$Names": "

The names of associated fleets.

", + "ListAssociatedStacksResult$Names": "

The names of associated stacks.

" + } + }, + "SubnetIdList": { + "base": "

A list of subnet IDs.

", + "refs": { + "VpcConfig$SubnetIds": "

The list of subnets to which a network interface is established from the fleet instance.

" + } + }, + "Timestamp": { + "base": null, + "refs": { + "CreateStreamingURLResult$Expires": "

Elapsed seconds after the Unix epoch, at which time this URL expires.

", + "Fleet$CreatedTime": "

The time at which the fleet was created.

", + "Image$CreatedTime": "

The timestamp when the image was created.

", + "Stack$CreatedTime": "

The timestamp when the stack was created.

" + } + }, + "UpdateFleetRequest": { + "base": null, + "refs": { + } + }, + "UpdateFleetResult": { + "base": null, + "refs": { + } + }, + "UpdateStackRequest": { + "base": null, + "refs": { + } + }, + "UpdateStackResult": { + "base": null, + "refs": { + } + }, + "UserId": { + "base": null, + "refs": { + "CreateStreamingURLRequest$UserId": "

A unique user ID for whom the URL is generated.

", + "DescribeSessionsRequest$UserId": "

The user for whom to list sessions. Use null to describe all the sessions for the stack and fleet.

", + "Session$UserId": "

The identifier of the user for whom the session was created.

" + } + }, + "VisibilityType": { + "base": null, + "refs": { + "Image$Visibility": "

The visibility of an image to the user; images can be public or private.

" + } + }, + "VpcConfig": { + "base": "

The VPC in which the fleet is launched.

", + "refs": { + "CreateFleetRequest$VpcConfig": "

The VPC configuration for the fleet.

", + "Fleet$VpcConfig": "

The VPC configuration for the fleet.

", + "UpdateFleetRequest$VpcConfig": "

The VPC configuration for the fleet.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/appstream/2016-12-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/appstream/2016-12-01/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/appstream/2016-12-01/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/appstream/2016-12-01/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/appstream/2016-12-01/waiters-2.json new file mode 100644 index 000000000..6672ceed3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/appstream/2016-12-01/waiters-2.json @@ -0,0 +1,55 @@ +{ + "version": 2, + "waiters": { + "FleetStarted": { + "delay": 30, + "maxAttempts": 40, + "operation": "DescribeFleets", + "acceptors": [ + { + "state": "success", + "matcher": "pathAll", + "argument": "fleets[].state", + "expected": "ACTIVE" + }, + { + "state": "failure", + "matcher": "pathAny", + "argument": "fleets[].state", + "expected": "PENDING_DEACTIVATE" + }, + { + "state": "failure", + "matcher": "pathAny", + "argument": "fleets[].state", + "expected": "INACTIVE" + } + ] + }, + "FleetStopped": { + "delay": 30, + "maxAttempts": 40, + "operation": "DescribeFleets", + "acceptors": [ + { + "state": "success", + "matcher": "pathAll", + "argument": "fleets[].state", + "expected": "INACTIVE" + }, + { + "state": "failure", + "matcher": "pathAny", + "argument": "fleets[].state", + "expected": "PENDING_ACTIVATE" + }, + { + "state": "failure", + "matcher": "pathAny", + "argument": "fleets[].state", + "expected": "ACTIVE" + } + ] + } + } +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/api-2.json index 66c679011..50d41e7e6 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/api-2.json @@ -6,6 +6,7 @@ "protocol":"query", "serviceFullName":"Auto Scaling", "signatureVersion":"v4", + "uid":"autoscaling-2011-01-01", "xmlNamespace":"http://autoscaling.amazonaws.com/doc/2011-01-01/" }, "operations":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/docs-2.json index df4e3595e..9509d0de7 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/docs-2.json @@ -2,13 +2,13 @@ "version": "2.0", "service": "Auto Scaling

Auto Scaling is designed to automatically launch or terminate EC2 instances based on user-defined policies, schedules, and health checks. Use this service in conjunction with the Amazon CloudWatch and Elastic Load Balancing services.

", "operations": { - "AttachInstances": "

Attaches one or more EC2 instances to the specified Auto Scaling group.

When you attach instances, Auto Scaling increases the desired capacity of the group by the number of instances being attached. If the number of instances being attached plus the desired capacity of the group exceeds the maximum size of the group, the operation fails.

If there is a Classic load balancer attached to your Auto Scaling group, the instances are also registered with the load balancer. If there are target groups attached to your Auto Scaling group, the instances are also registered with the target groups.

For more information, see Attach EC2 Instances to Your Auto Scaling Group in the Auto Scaling User Guide.

", - "AttachLoadBalancerTargetGroups": "

Attaches one or more target groups to the specified Auto Scaling group.

To describe the target groups for an Auto Scaling group, use DescribeLoadBalancerTargetGroups. To detach the target group from the Auto Scaling group, use DetachLoadBalancerTargetGroups.

For more information, see Attach a Load Balancer to Your Auto Scaling Group in the Auto Scaling User Guide.

", - "AttachLoadBalancers": "

Attaches one or more Classic load balancers to the specified Auto Scaling group.

To attach an Application load balancer instead, see AttachLoadBalancerTargetGroups.

To describe the load balancers for an Auto Scaling group, use DescribeLoadBalancers. To detach the load balancer from the Auto Scaling group, use DetachLoadBalancers.

For more information, see Attach a Load Balancer to Your Auto Scaling Group in the Auto Scaling User Guide.

", - "CompleteLifecycleAction": "

Completes the lifecycle action for the specified token or instance with the specified result.

This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:

  1. (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.

  2. (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.

  3. Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.

  4. If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.

  5. If you finish before the timeout period ends, complete the lifecycle action.

For more information, see Auto Scaling Lifecycle in the Auto Scaling User Guide.

", - "CreateAutoScalingGroup": "

Creates an Auto Scaling group with the specified name and attributes.

If you exceed your maximum limit of Auto Scaling groups, which by default is 20 per region, the call fails. For information about viewing and updating this limit, see DescribeAccountLimits.

For more information, see Auto Scaling Groups in the Auto Scaling User Guide.

", - "CreateLaunchConfiguration": "

Creates a launch configuration.

If you exceed your maximum limit of launch configurations, which by default is 100 per region, the call fails. For information about viewing and updating this limit, see DescribeAccountLimits.

For more information, see Launch Configurations in the Auto Scaling User Guide.

", - "CreateOrUpdateTags": "

Creates or updates tags for the specified Auto Scaling group.

When you specify a tag with a key that already exists, the operation overwrites the previous tag definition, and you do not get an error message.

For more information, see Tagging Auto Scaling Groups and Instances in the Auto Scaling User Guide.

", + "AttachInstances": "

Attaches one or more EC2 instances to the specified Auto Scaling group.

When you attach instances, Auto Scaling increases the desired capacity of the group by the number of instances being attached. If the number of instances being attached plus the desired capacity of the group exceeds the maximum size of the group, the operation fails.

If there is a Classic load balancer attached to your Auto Scaling group, the instances are also registered with the load balancer. If there are target groups attached to your Auto Scaling group, the instances are also registered with the target groups.

For more information, see Attach EC2 Instances to Your Auto Scaling Group in the Auto Scaling User Guide.

", + "AttachLoadBalancerTargetGroups": "

Attaches one or more target groups to the specified Auto Scaling group.

To describe the target groups for an Auto Scaling group, use DescribeLoadBalancerTargetGroups. To detach the target group from the Auto Scaling group, use DetachLoadBalancerTargetGroups.

For more information, see Attach a Load Balancer to Your Auto Scaling Group in the Auto Scaling User Guide.

", + "AttachLoadBalancers": "

Attaches one or more Classic load balancers to the specified Auto Scaling group.

To attach an Application load balancer instead, see AttachLoadBalancerTargetGroups.

To describe the load balancers for an Auto Scaling group, use DescribeLoadBalancers. To detach the load balancer from the Auto Scaling group, use DetachLoadBalancers.

For more information, see Attach a Load Balancer to Your Auto Scaling Group in the Auto Scaling User Guide.

", + "CompleteLifecycleAction": "

Completes the lifecycle action for the specified token or instance with the specified result.

This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:

  1. (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.

  2. (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.

  3. Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.

  4. If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.

  5. If you finish before the timeout period ends, complete the lifecycle action.

For more information, see Auto Scaling Lifecycle in the Auto Scaling User Guide.

", + "CreateAutoScalingGroup": "

Creates an Auto Scaling group with the specified name and attributes.

If you exceed your maximum limit of Auto Scaling groups, which by default is 20 per region, the call fails. For information about viewing and updating this limit, see DescribeAccountLimits.

For more information, see Auto Scaling Groups in the Auto Scaling User Guide.

", + "CreateLaunchConfiguration": "

Creates a launch configuration.

If you exceed your maximum limit of launch configurations, which by default is 100 per region, the call fails. For information about viewing and updating this limit, see DescribeAccountLimits.

For more information, see Launch Configurations in the Auto Scaling User Guide.

", + "CreateOrUpdateTags": "

Creates or updates tags for the specified Auto Scaling group.

When you specify a tag with a key that already exists, the operation overwrites the previous tag definition, and you do not get an error message.

For more information, see Tagging Auto Scaling Groups and Instances in the Auto Scaling User Guide.

", "DeleteAutoScalingGroup": "

Deletes the specified Auto Scaling group.

If the group has instances or scaling activities in progress, you must specify the option to force the deletion in order for it to succeed.

If the group has policies, deleting the group deletes the policies, the underlying alarm actions, and any alarm that no longer has an associated action.

To remove instances from the Auto Scaling group before deleting it, call DetachInstances with the list of instances and the option to decrement the desired capacity so that Auto Scaling does not launch replacement instances.

To terminate all instances before deleting the Auto Scaling group, call UpdateAutoScalingGroup and set the minimum size and desired capacity of the Auto Scaling group to zero.

", "DeleteLaunchConfiguration": "

Deletes the specified launch configuration.

The launch configuration must not be attached to an Auto Scaling group. When this call completes, the launch configuration is no longer available for use.

", "DeleteLifecycleHook": "

Deletes the specified lifecycle hook.

If there are any outstanding lifecycle actions, they are completed first (ABANDON for launching instances, CONTINUE for terminating instances).

", @@ -34,24 +34,24 @@ "DescribeScheduledActions": "

Describes the actions scheduled for your Auto Scaling group that haven't run. To describe the actions that have already run, use DescribeScalingActivities.

", "DescribeTags": "

Describes the specified tags.

You can use filters to limit the results. For example, you can query for the tags for a specific Auto Scaling group. You can specify multiple values for a filter. A tag must match at least one of the specified values for it to be included in the results.

You can also specify multiple filters. The result includes information for a particular tag only if it matches all the filters. If there's no match, no special message is returned.

", "DescribeTerminationPolicyTypes": "

Describes the termination policies supported by Auto Scaling.

", - "DetachInstances": "

Removes one or more instances from the specified Auto Scaling group.

After the instances are detached, you can manage them independently from the rest of the Auto Scaling group.

If you do not specify the option to decrement the desired capacity, Auto Scaling launches instances to replace the ones that are detached.

If there is a Classic load balancer attached to the Auto Scaling group, the instances are deregistered from the load balancer. If there are target groups attached to the Auto Scaling group, the instances are deregistered from the target groups.

For more information, see Detach EC2 Instances from Your Auto Scaling Group in the Auto Scaling User Guide.

", + "DetachInstances": "

Removes one or more instances from the specified Auto Scaling group.

After the instances are detached, you can manage them independently from the rest of the Auto Scaling group.

If you do not specify the option to decrement the desired capacity, Auto Scaling launches instances to replace the ones that are detached.

If there is a Classic load balancer attached to the Auto Scaling group, the instances are deregistered from the load balancer. If there are target groups attached to the Auto Scaling group, the instances are deregistered from the target groups.

For more information, see Detach EC2 Instances from Your Auto Scaling Group in the Auto Scaling User Guide.

", "DetachLoadBalancerTargetGroups": "

Detaches one or more target groups from the specified Auto Scaling group.

", "DetachLoadBalancers": "

Detaches one or more Classic load balancers from the specified Auto Scaling group.

Note that this operation detaches only Classic load balancers. If you have Application load balancers, use DetachLoadBalancerTargetGroups instead.

When you detach a load balancer, it enters the Removing state while deregistering the instances in the group. When all instances are deregistered, then you can no longer describe the load balancer using DescribeLoadBalancers. Note that the instances remain running.

", "DisableMetricsCollection": "

Disables group metrics for the specified Auto Scaling group.

", - "EnableMetricsCollection": "

Enables group metrics for the specified Auto Scaling group. For more information, see Monitoring Your Auto Scaling Groups and Instances in the Auto Scaling User Guide.

", - "EnterStandby": "

Moves the specified instances into Standby mode.

For more information, see Auto Scaling Lifecycle in the Auto Scaling User Guide.

", + "EnableMetricsCollection": "

Enables group metrics for the specified Auto Scaling group. For more information, see Monitoring Your Auto Scaling Groups and Instances in the Auto Scaling User Guide.

", + "EnterStandby": "

Moves the specified instances into Standby mode.

For more information, see Auto Scaling Lifecycle in the Auto Scaling User Guide.

", "ExecutePolicy": "

Executes the specified policy.

", - "ExitStandby": "

Moves the specified instances out of Standby mode.

For more information, see Auto Scaling Lifecycle in the Auto Scaling User Guide.

", - "PutLifecycleHook": "

Creates or updates a lifecycle hook for the specified Auto Scaling Group.

A lifecycle hook tells Auto Scaling that you want to perform an action on an instance that is not actively in service; for example, either when the instance launches or before the instance terminates.

This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:

  1. (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.

  2. (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.

  3. Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.

  4. If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.

  5. If you finish before the timeout period ends, complete the lifecycle action.

For more information, see Auto Scaling Lifecycle in the Auto Scaling User Guide.

If you exceed your maximum limit of lifecycle hooks, which by default is 50 per Auto Scaling group, the call fails. For information about updating this limit, see AWS Service Limits in the Amazon Web Services General Reference.

", - "PutNotificationConfiguration": "

Configures an Auto Scaling group to send notifications when specified events take place. Subscribers to the specified topic can have messages delivered to an endpoint such as a web server or an email address.

This configuration overwrites any existing configuration.

For more information see Getting SNS Notifications When Your Auto Scaling Group Scales in the Auto Scaling User Guide.

", + "ExitStandby": "

Moves the specified instances out of Standby mode.

For more information, see Auto Scaling Lifecycle in the Auto Scaling User Guide.

", + "PutLifecycleHook": "

Creates or updates a lifecycle hook for the specified Auto Scaling Group.

A lifecycle hook tells Auto Scaling that you want to perform an action on an instance that is not actively in service; for example, either when the instance launches or before the instance terminates.

This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:

  1. (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.

  2. (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.

  3. Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.

  4. If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.

  5. If you finish before the timeout period ends, complete the lifecycle action.

For more information, see Auto Scaling Lifecycle Hooks in the Auto Scaling User Guide.

If you exceed your maximum limit of lifecycle hooks, which by default is 50 per Auto Scaling group, the call fails. For information about updating this limit, see AWS Service Limits in the Amazon Web Services General Reference.

", + "PutNotificationConfiguration": "

Configures an Auto Scaling group to send notifications when specified events take place. Subscribers to the specified topic can have messages delivered to an endpoint such as a web server or an email address.

This configuration overwrites any existing configuration.

For more information see Getting SNS Notifications When Your Auto Scaling Group Scales in the Auto Scaling User Guide.

", "PutScalingPolicy": "

Creates or updates a policy for an Auto Scaling group. To update an existing policy, use the existing policy name and set the parameters you want to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request.

If you exceed your maximum limit of step adjustments, which by default is 20 per region, the call fails. For information about updating this limit, see AWS Service Limits in the Amazon Web Services General Reference.

", - "PutScheduledUpdateGroupAction": "

Creates or updates a scheduled scaling action for an Auto Scaling group. When updating a scheduled scaling action, if you leave a parameter unspecified, the corresponding value remains unchanged in the affected Auto Scaling group.

For more information, see Scheduled Scaling in the Auto Scaling User Guide.

", - "RecordLifecycleActionHeartbeat": "

Records a heartbeat for the lifecycle action associated with the specified token or instance. This extends the timeout by the length of time defined using PutLifecycleHook.

This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:

  1. (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.

  2. (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.

  3. Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.

  4. If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.

  5. If you finish before the timeout period ends, complete the lifecycle action.

For more information, see Auto Scaling Lifecycle in the Auto Scaling User Guide.

", - "ResumeProcesses": "

Resumes the specified suspended Auto Scaling processes, or all suspended process, for the specified Auto Scaling group.

For more information, see Suspending and Resuming Auto Scaling Processes in the Auto Scaling User Guide.

", - "SetDesiredCapacity": "

Sets the size of the specified Auto Scaling group.

For more information about desired capacity, see What Is Auto Scaling? in the Auto Scaling User Guide.

", - "SetInstanceHealth": "

Sets the health status of the specified instance.

For more information, see Health Checks in the Auto Scaling User Guide.

", - "SetInstanceProtection": "

Updates the instance protection settings of the specified instances.

For more information, see Instance Protection in the Auto Scaling User Guide.

", - "SuspendProcesses": "

Suspends the specified Auto Scaling processes, or all processes, for the specified Auto Scaling group.

Note that if you suspend either the Launch or Terminate process types, it can prevent other process types from functioning properly.

To resume processes that have been suspended, use ResumeProcesses.

For more information, see Suspending and Resuming Auto Scaling Processes in the Auto Scaling User Guide.

", + "PutScheduledUpdateGroupAction": "

Creates or updates a scheduled scaling action for an Auto Scaling group. When updating a scheduled scaling action, if you leave a parameter unspecified, the corresponding value remains unchanged.

For more information, see Scheduled Scaling in the Auto Scaling User Guide.

", + "RecordLifecycleActionHeartbeat": "

Records a heartbeat for the lifecycle action associated with the specified token or instance. This extends the timeout by the length of time defined using PutLifecycleHook.

This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:

  1. (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.

  2. (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.

  3. Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.

  4. If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.

  5. If you finish before the timeout period ends, complete the lifecycle action.

For more information, see Auto Scaling Lifecycle in the Auto Scaling User Guide.

", + "ResumeProcesses": "

Resumes the specified suspended Auto Scaling processes, or all suspended process, for the specified Auto Scaling group.

For more information, see Suspending and Resuming Auto Scaling Processes in the Auto Scaling User Guide.

", + "SetDesiredCapacity": "

Sets the size of the specified Auto Scaling group.

For more information about desired capacity, see What Is Auto Scaling? in the Auto Scaling User Guide.

", + "SetInstanceHealth": "

Sets the health status of the specified instance.

For more information, see Health Checks in the Auto Scaling User Guide.

", + "SetInstanceProtection": "

Updates the instance protection settings of the specified instances.

For more information, see Instance Protection in the Auto Scaling User Guide.

", + "SuspendProcesses": "

Suspends the specified Auto Scaling processes, or all processes, for the specified Auto Scaling group.

Note that if you suspend either the Launch or Terminate process types, it can prevent other process types from functioning properly.

To resume processes that have been suspended, use ResumeProcesses.

For more information, see Suspending and Resuming Auto Scaling Processes in the Auto Scaling User Guide.

", "TerminateInstanceInAutoScalingGroup": "

Terminates the specified instance and optionally adjusts the desired group size.

This call simply makes a termination request. The instance is not terminated immediately.

", "UpdateAutoScalingGroup": "

Updates the configuration for the specified Auto Scaling group.

To update an Auto Scaling group with a launch configuration with InstanceMonitoring set to False, you must first disable the collection of group metrics. Otherwise, you will get an error. If you have previously enabled the collection of group metrics, you can disable it using DisableMetricsCollection.

The new settings are registered upon the completion of this call. Any launch configuration settings take effect on any triggers after this call returns. Scaling activities that are currently in progress aren't affected.

Note the following:

  • If you specify a new value for MinSize without specifying a value for DesiredCapacity, and the new MinSize is larger than the current size of the group, we implicitly call SetDesiredCapacity to set the size of the group to the new value of MinSize.

  • If you specify a new value for MaxSize without specifying a value for DesiredCapacity, and the new MaxSize is smaller than the current size of the group, we implicitly call SetDesiredCapacity to set the size of the group to the new value of MaxSize.

  • All other optional parameters are left unchanged if not specified.

" }, @@ -131,7 +131,7 @@ "AssociatePublicIpAddress": { "base": null, "refs": { - "CreateLaunchConfigurationType$AssociatePublicIpAddress": "

Used for groups that launch instances into a virtual private cloud (VPC). Specifies whether to assign a public IP address to each instance. For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling User Guide.

If you specify this parameter, be sure to specify at least one subnet when you create your group.

Default: If the instance is launched into a default subnet, the default is true. If the instance is launched into a nondefault subnet, the default is false. For more information, see Supported Platforms in the Amazon Elastic Compute Cloud User Guide.

", + "CreateLaunchConfigurationType$AssociatePublicIpAddress": "

Used for groups that launch instances into a virtual private cloud (VPC). Specifies whether to assign a public IP address to each instance. For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling User Guide.

If you specify this parameter, be sure to specify at least one subnet when you create your group.

Default: If the instance is launched into a default subnet, the default is true. If the instance is launched into a nondefault subnet, the default is false. For more information, see Supported Platforms in the Amazon Elastic Compute Cloud User Guide.

", "LaunchConfiguration$AssociatePublicIpAddress": "

[EC2-VPC] Indicates whether to assign a public IP address to each instance.

" } }, @@ -317,10 +317,10 @@ "base": null, "refs": { "AutoScalingGroup$DefaultCooldown": "

The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.

", - "CreateAutoScalingGroupType$DefaultCooldown": "

The amount of time, in seconds, after a scaling activity completes before another scaling activity can start. The default is 300.

For more information, see Auto Scaling Cooldowns in the Auto Scaling User Guide.

", - "PutScalingPolicyType$Cooldown": "

The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. If this parameter is not specified, the default cooldown period for the group applies.

This parameter is not supported unless the policy type is SimpleScaling.

For more information, see Auto Scaling Cooldowns in the Auto Scaling User Guide.

", + "CreateAutoScalingGroupType$DefaultCooldown": "

The amount of time, in seconds, after a scaling activity completes before another scaling activity can start. The default is 300.

For more information, see Auto Scaling Cooldowns in the Auto Scaling User Guide.

", + "PutScalingPolicyType$Cooldown": "

The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. If this parameter is not specified, the default cooldown period for the group applies.

This parameter is not supported unless the policy type is SimpleScaling.

For more information, see Auto Scaling Cooldowns in the Auto Scaling User Guide.

", "ScalingPolicy$Cooldown": "

The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.

", - "UpdateAutoScalingGroupType$DefaultCooldown": "

The amount of time, in seconds, after a scaling activity completes before another scaling activity can start. The default is 300.

For more information, see Auto Scaling Cooldowns in the Auto Scaling User Guide.

" + "UpdateAutoScalingGroupType$DefaultCooldown": "

The amount of time, in seconds, after a scaling activity completes before another scaling activity can start. The default is 300.

For more information, see Auto Scaling Cooldowns in the Auto Scaling User Guide.

" } }, "CreateAutoScalingGroupType": { @@ -586,15 +586,15 @@ "GlobalTimeout": { "base": null, "refs": { - "LifecycleHook$GlobalTimeout": "

The maximum time, in seconds, that an instance can remain in a Pending:Wait or Terminating:Wait state. The default is 172800 seconds (48 hours).

" + "LifecycleHook$GlobalTimeout": "

The maximum time, in seconds, that an instance can remain in a Pending:Wait or Terminating:Wait state. The maximum is 172800 seconds (48 hours) or 100 times HeartbeatTimeout, whichever is smaller.

" } }, "HealthCheckGracePeriod": { "base": null, "refs": { "AutoScalingGroup$HealthCheckGracePeriod": "

The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service.

", - "CreateAutoScalingGroupType$HealthCheckGracePeriod": "

The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service. During this time, any health check failures for the instance are ignored. The default is 0.

This parameter is required if you are adding an ELB health check.

For more information, see Health Checks in the Auto Scaling User Guide.

", - "UpdateAutoScalingGroupType$HealthCheckGracePeriod": "

The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service. The default is 0.

For more information, see Health Checks in the Auto Scaling User Guide.

" + "CreateAutoScalingGroupType$HealthCheckGracePeriod": "

The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service. During this time, any health check failures for the instance are ignored. The default is 0.

This parameter is required if you are adding an ELB health check.

For more information, see Health Checks in the Auto Scaling User Guide.

", + "UpdateAutoScalingGroupType$HealthCheckGracePeriod": "

The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service. The default is 0.

For more information, see Health Checks in the Auto Scaling User Guide.

" } }, "HeartbeatTimeout": { @@ -607,7 +607,7 @@ "HonorCooldown": { "base": null, "refs": { - "ExecutePolicyType$HonorCooldown": "

If this parameter is true, Auto Scaling waits for the cooldown period to complete before executing the policy. Otherwise, Auto Scaling executes the policy without waiting for the cooldown period to complete.

This parameter is not supported if the policy type is StepScaling.

For more information, see Auto Scaling Cooldowns in the Auto Scaling User Guide.

", + "ExecutePolicyType$HonorCooldown": "

If this parameter is true, Auto Scaling waits for the cooldown period to complete before executing the policy. Otherwise, Auto Scaling executes the policy without waiting for the cooldown period to complete.

This parameter is not supported if the policy type is StepScaling.

For more information, see Auto Scaling Cooldowns in the Auto Scaling User Guide.

", "SetDesiredCapacityType$HonorCooldown": "

By default, SetDesiredCapacity overrides any cooldown period associated with the Auto Scaling group. Specify True to make Auto Scaling to wait for the cool-down period associated with the Auto Scaling group to complete before initiating a scaling activity to set your Auto Scaling group to its new capacity.

" } }, @@ -705,7 +705,7 @@ } }, "LifecycleHook": { - "base": "

Describes a lifecycle hook, which tells Auto Scaling that you want to perform an action when an instance launches or terminates. When you have a lifecycle hook in place, the Auto Scaling group will either:

  • Pause the instance after it launches, but before it is put into service

  • Pause the instance as it terminates, but before it is fully terminated

For more information, see Auto Scaling Lifecycle in the Auto Scaling User Guide.

", + "base": "

Describes a lifecycle hook, which tells Auto Scaling that you want to perform an action when an instance launches or terminates. When you have a lifecycle hook in place, the Auto Scaling group will either:

  • Pause the instance after it launches, but before it is put into service

  • Pause the instance as it terminates, but before it is fully terminated

For more information, see Auto Scaling Lifecycle in the Auto Scaling User Guide.

", "refs": { "LifecycleHooks$member": null } @@ -745,7 +745,7 @@ "refs": { "AttachLoadBalancersType$LoadBalancerNames": "

One or more load balancer names.

", "AutoScalingGroup$LoadBalancerNames": "

One or more load balancers associated with the group.

", - "CreateAutoScalingGroupType$LoadBalancerNames": "

One or more Classic load balancers. To specify an Application load balancer, use TargetGroupARNs instead.

For more information, see Using a Load Balancer With an Auto Scaling Group in the Auto Scaling User Guide.

", + "CreateAutoScalingGroupType$LoadBalancerNames": "

One or more Classic load balancers. To specify an Application load balancer, use TargetGroupARNs instead.

For more information, see Using a Load Balancer With an Auto Scaling Group in the Auto Scaling User Guide.

", "DetachLoadBalancersType$LoadBalancerNames": "

One or more load balancer names.

" } }, @@ -881,7 +881,7 @@ "NotificationTargetResourceName": { "base": null, "refs": { - "PutLifecycleHookType$NotificationTargetARN": "

The ARN of the notification target that Auto Scaling will use to notify you when an instance is in the transition state for the lifecycle hook. This target can be either an SQS queue or an SNS topic. If you specify an empty string, this overrides the current ARN.

The notification messages sent to the target include the following information:

  • AutoScalingGroupName. The name of the Auto Scaling group.

  • AccountId. The AWS account ID.

  • LifecycleTransition. The lifecycle hook type.

  • LifecycleActionToken. The lifecycle action token.

  • EC2InstanceId. The EC2 instance ID.

  • LifecycleHookName. The name of the lifecycle hook.

  • NotificationMetadata. User-defined information.

This operation uses the JSON format when sending notifications to an Amazon SQS queue, and an email key/value pair format when sending notifications to an Amazon SNS topic.

When you specify a notification target, Auto Scaling sends it a test message. Test messages contains the following additional key/value pair: \"Event\": \"autoscaling:TEST_NOTIFICATION\".

" + "PutLifecycleHookType$NotificationTargetARN": "

The ARN of the notification target that Auto Scaling will use to notify you when an instance is in the transition state for the lifecycle hook. This target can be either an SQS queue or an SNS topic. If you specify an empty string, this overrides the current ARN.

This operation uses the JSON format when sending notifications to an Amazon SQS queue, and an email key/value pair format when sending notifications to an Amazon SNS topic.

When you specify a notification target, Auto Scaling sends it a test message. Test messages contains the following additional key/value pair: \"Event\": \"autoscaling:TEST_NOTIFICATION\".

" } }, "NumberOfAutoScalingGroups": { @@ -933,7 +933,7 @@ } }, "ProcessType": { - "base": "

Describes a process type.

For more information, see Auto Scaling Processes in the Auto Scaling User Guide.

", + "base": "

Describes a process type.

For more information, see Auto Scaling Processes in the Auto Scaling User Guide.

", "refs": { "Processes$member": null } @@ -1169,7 +1169,7 @@ "SpotPrice": { "base": null, "refs": { - "CreateLaunchConfigurationType$SpotPrice": "

The maximum hourly price to be paid for any Spot Instance launched to fulfill the request. Spot Instances are launched when the price you specify exceeds the current Spot market price. For more information, see Launching Spot Instances in Your Auto Scaling Group in the Auto Scaling User Guide.

", + "CreateLaunchConfigurationType$SpotPrice": "

The maximum hourly price to be paid for any Spot Instance launched to fulfill the request. Spot Instances are launched when the price you specify exceeds the current Spot market price. For more information, see Launching Spot Instances in Your Auto Scaling Group in the Auto Scaling User Guide.

", "LaunchConfiguration$SpotPrice": "

The price to bid when launching Spot Instances.

" } }, @@ -1234,7 +1234,7 @@ "Tags": { "base": null, "refs": { - "CreateAutoScalingGroupType$Tags": "

One or more tags.

For more information, see Tagging Auto Scaling Groups and Instances in the Auto Scaling User Guide.

", + "CreateAutoScalingGroupType$Tags": "

One or more tags.

For more information, see Tagging Auto Scaling Groups and Instances in the Auto Scaling User Guide.

", "CreateOrUpdateTagsType$Tags": "

One or more tags.

", "DeleteTagsType$Tags": "

One or more tags.

" } @@ -1262,9 +1262,9 @@ "base": null, "refs": { "AutoScalingGroup$TerminationPolicies": "

The termination policies for the group.

", - "CreateAutoScalingGroupType$TerminationPolicies": "

One or more termination policies used to select the instance to terminate. These policies are executed in the order that they are listed.

For more information, see Controlling Which Instances Auto Scaling Terminates During Scale In in the Auto Scaling User Guide.

", + "CreateAutoScalingGroupType$TerminationPolicies": "

One or more termination policies used to select the instance to terminate. These policies are executed in the order that they are listed.

For more information, see Controlling Which Instances Auto Scaling Terminates During Scale In in the Auto Scaling User Guide.

", "DescribeTerminationPolicyTypesAnswer$TerminationPolicyTypes": "

The termination policies supported by Auto Scaling (OldestInstance, OldestLaunchConfiguration, NewestInstance, ClosestToNextInstanceHour, and Default).

", - "UpdateAutoScalingGroupType$TerminationPolicies": "

A standalone termination policy or a list of termination policies used to select the instance to terminate. The policies are executed in the order that they are listed.

For more information, see Controlling Which Instances Auto Scaling Terminates During Scale In in the Auto Scaling User Guide.

" + "UpdateAutoScalingGroupType$TerminationPolicies": "

A standalone termination policy or a list of termination policies used to select the instance to terminate. The policies are executed in the order that they are listed.

For more information, see Controlling Which Instances Auto Scaling Terminates During Scale In in the Auto Scaling User Guide.

" } }, "TimestampType": { @@ -1277,8 +1277,8 @@ "DescribeScheduledActionsType$EndTime": "

The latest scheduled start time to return. If scheduled action names are provided, this parameter is ignored.

", "LaunchConfiguration$CreatedTime": "

The creation date and time for the launch configuration.

", "PutScheduledUpdateGroupActionType$Time": "

This parameter is deprecated.

", - "PutScheduledUpdateGroupActionType$StartTime": "

The time for this action to start, in \"YYYY-MM-DDThh:mm:ssZ\" format in UTC/GMT only (for example, 2014-06-01T00:00:00Z).

If you try to schedule your action in the past, Auto Scaling returns an error message.

When StartTime and EndTime are specified with Recurrence, they form the boundaries of when the recurring action starts and stops.

", - "PutScheduledUpdateGroupActionType$EndTime": "

The time for this action to end.

", + "PutScheduledUpdateGroupActionType$StartTime": "

The time for this action to start, in \"YYYY-MM-DDThh:mm:ssZ\" format in UTC/GMT only (for example, 2014-06-01T00:00:00Z).

If you specify Recurrence and StartTime, Auto Scaling performs the action at this time, and then performs the action based on the specified recurrence.

If you try to schedule your action in the past, Auto Scaling returns an error message.

", + "PutScheduledUpdateGroupActionType$EndTime": "

The time for the recurring schedule to end. Auto Scaling does not perform the action after this time.

", "ScheduledUpdateGroupAction$Time": "

This parameter is deprecated.

", "ScheduledUpdateGroupAction$StartTime": "

The date and time that the action is scheduled to begin. This date and time can be up to one month in the future.

When StartTime and EndTime are specified with Recurrence, they form the boundaries of when the recurring action will start and stop.

", "ScheduledUpdateGroupAction$EndTime": "

The date and time that the action is scheduled to end. This date and time can be up to one month in the future.

" @@ -1342,7 +1342,7 @@ "XmlStringMaxLen1600": { "base": null, "refs": { - "CreateLaunchConfigurationType$IamInstanceProfile": "

The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.

EC2 instances launched with an IAM role will automatically have AWS security credentials available. You can use IAM roles with Auto Scaling to automatically enable applications running on your EC2 instances to securely access other AWS resources. For more information, see Launch Auto Scaling Instances with an IAM Role in the Auto Scaling User Guide.

", + "CreateLaunchConfigurationType$IamInstanceProfile": "

The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.

EC2 instances launched with an IAM role will automatically have AWS security credentials available. You can use IAM roles with Auto Scaling to automatically enable applications running on your EC2 instances to securely access other AWS resources. For more information, see Launch Auto Scaling Instances with an IAM Role in the Auto Scaling User Guide.

", "LaunchConfiguration$IamInstanceProfile": "

The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.

", "TerminationPolicies$member": null } @@ -1352,8 +1352,8 @@ "refs": { "AutoScalingInstanceDetails$InstanceId": "

The ID of the instance.

", "CompleteLifecycleActionType$InstanceId": "

The ID of the instance.

", - "CreateAutoScalingGroupType$InstanceId": "

The ID of the instance used to create a launch configuration for the group. Alternatively, specify a launch configuration instead of an EC2 instance.

When you specify an ID of an instance, Auto Scaling creates a new launch configuration and associates it with the group. This launch configuration derives its attributes from the specified instance, with the exception of the block device mapping.

For more information, see Create an Auto Scaling Group Using an EC2 Instance in the Auto Scaling User Guide.

", - "CreateLaunchConfigurationType$InstanceId": "

The ID of the instance to use to create the launch configuration.

The new launch configuration derives attributes from the instance, with the exception of the block device mapping.

To create a launch configuration with a block device mapping or override any other instance attributes, specify them as part of the same request.

For more information, see Create a Launch Configuration Using an EC2 Instance in the Auto Scaling User Guide.

", + "CreateAutoScalingGroupType$InstanceId": "

The ID of the instance used to create a launch configuration for the group. Alternatively, specify a launch configuration instead of an EC2 instance.

When you specify an ID of an instance, Auto Scaling creates a new launch configuration and associates it with the group. This launch configuration derives its attributes from the specified instance, with the exception of the block device mapping.

For more information, see Create an Auto Scaling Group Using an EC2 Instance in the Auto Scaling User Guide.

", + "CreateLaunchConfigurationType$InstanceId": "

The ID of the instance to use to create the launch configuration.

The new launch configuration derives attributes from the instance, with the exception of the block device mapping.

To create a launch configuration with a block device mapping or override any other instance attributes, specify them as part of the same request.

For more information, see Create a Launch Configuration Using an EC2 Instance in the Auto Scaling User Guide.

", "Instance$InstanceId": "

The ID of the instance.

", "InstanceIds$member": null, "RecordLifecycleActionHeartbeatType$InstanceId": "

The ID of the instance.

", @@ -1365,8 +1365,8 @@ "base": null, "refs": { "AutoScalingGroup$VPCZoneIdentifier": "

One or more subnet IDs, if applicable, separated by commas.

If you specify VPCZoneIdentifier and AvailabilityZones, ensure that the Availability Zones of the subnets match the values for AvailabilityZones.

", - "CreateAutoScalingGroupType$VPCZoneIdentifier": "

A comma-separated list of subnet identifiers for your virtual private cloud (VPC).

If you specify subnets and Availability Zones with this call, ensure that the subnets' Availability Zones match the Availability Zones specified.

For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling User Guide.

", - "UpdateAutoScalingGroupType$VPCZoneIdentifier": "

The ID of the subnet, if you are launching into a VPC. You can specify several subnets in a comma-separated list.

When you specify VPCZoneIdentifier with AvailabilityZones, ensure that the subnets' Availability Zones match the values you specify for AvailabilityZones.

For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling User Guide.

" + "CreateAutoScalingGroupType$VPCZoneIdentifier": "

A comma-separated list of subnet identifiers for your virtual private cloud (VPC).

If you specify subnets and Availability Zones with this call, ensure that the subnets' Availability Zones match the Availability Zones specified.

For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling User Guide.

", + "UpdateAutoScalingGroupType$VPCZoneIdentifier": "

The ID of the subnet, if you are launching into a VPC. You can specify several subnets in a comma-separated list.

When you specify VPCZoneIdentifier with AvailabilityZones, ensure that the subnets' Availability Zones match the values you specify for AvailabilityZones.

For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling User Guide.

" } }, "XmlStringMaxLen255": { @@ -1424,9 +1424,9 @@ "ProcessNames$member": null, "ProcessType$ProcessName": "

One of the following processes:

  • Launch

  • Terminate

  • AddToLoadBalancer

  • AlarmNotification

  • AZRebalance

  • HealthCheck

  • ReplaceUnhealthy

  • ScheduledActions

", "PutScalingPolicyType$PolicyName": "

The name of the policy.

", - "PutScalingPolicyType$AdjustmentType": "

The adjustment type. Valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.

For more information, see Dynamic Scaling in the Auto Scaling User Guide.

", + "PutScalingPolicyType$AdjustmentType": "

The adjustment type. Valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.

For more information, see Dynamic Scaling in the Auto Scaling User Guide.

", "PutScheduledUpdateGroupActionType$ScheduledActionName": "

The name of this scaling action.

", - "PutScheduledUpdateGroupActionType$Recurrence": "

The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. For more information, see Cron in Wikipedia.

When StartTime and EndTime are specified with Recurrence, they form the boundaries of when the recurring action will start and stop.

", + "PutScheduledUpdateGroupActionType$Recurrence": "

The recurring schedule for this action, in Unix cron syntax format. For more information, see Cron in Wikipedia.

", "ResourceContentionFault$message": "

", "ResourceInUseFault$message": "

", "ScalingActivityInProgressFault$message": "

", @@ -1445,9 +1445,9 @@ "base": null, "refs": { "AutoScalingGroup$HealthCheckType": "

The service to use for the health checks. The valid values are EC2 and ELB.

", - "AutoScalingInstanceDetails$LifecycleState": "

The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Auto Scaling User Guide.

", + "AutoScalingInstanceDetails$LifecycleState": "

The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Auto Scaling User Guide.

", "AutoScalingInstanceDetails$HealthStatus": "

The last reported health status of this instance. \"Healthy\" means that the instance is healthy and should remain in service. \"Unhealthy\" means that the instance is unhealthy and Auto Scaling should terminate and replace it.

", - "CreateAutoScalingGroupType$HealthCheckType": "

The service to use for the health checks. The valid values are EC2 and ELB.

By default, health checks use Amazon EC2 instance status checks to determine the health of an instance. For more information, see Health Checks in the Auto Scaling User Guide.

", + "CreateAutoScalingGroupType$HealthCheckType": "

The service to use for the health checks. The valid values are EC2 and ELB.

By default, health checks use Amazon EC2 instance status checks to determine the health of an instance. For more information, see Health Checks in the Auto Scaling User Guide.

", "Instance$HealthStatus": "

The last reported health status of the instance. \"Healthy\" means that the instance is healthy and should remain in service. \"Unhealthy\" means that the instance is unhealthy and Auto Scaling should terminate and replace it.

", "PutScalingPolicyType$MetricAggregationType": "

The aggregation type for the CloudWatch metrics. Valid values are Minimum, Maximum, and Average. If the aggregation type is null, the value is treated as Average.

This parameter is not supported if the policy type is SimpleScaling.

", "ScalingPolicy$MetricAggregationType": "

The aggregation type for the CloudWatch metrics. Valid values are Minimum, Maximum, and Average.

", @@ -1465,7 +1465,7 @@ "XmlStringMaxLen64": { "base": null, "refs": { - "CreateLaunchConfigurationType$PlacementTenancy": "

The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware and can only be launched into a VPC.

You must set the value of this parameter to dedicated if want to launch Dedicated Instances into a shared tenancy VPC (VPC with instance placement tenancy attribute set to default).

If you specify this parameter, be sure to specify at least one subnet when you create your group.

For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling User Guide.

Valid values: default | dedicated

", + "CreateLaunchConfigurationType$PlacementTenancy": "

The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware and can only be launched into a VPC.

You must set the value of this parameter to dedicated if want to launch Dedicated Instances into a shared tenancy VPC (VPC with instance placement tenancy attribute set to default).

If you specify this parameter, be sure to specify at least one subnet when you create your group.

For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling User Guide.

Valid values: default | dedicated

", "LaunchConfiguration$PlacementTenancy": "

The tenancy of the instance, either default or dedicated. An instance with dedicated tenancy runs in an isolated, single-tenant hardware and can only be launched into a VPC.

", "PolicyTypes$member": null, "PutScalingPolicyType$PolicyType": "

The policy type. Valid values are SimpleScaling and StepScaling. If the policy type is null, the value is treated as SimpleScaling.

", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/batch/2016-08-10/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/batch/2016-08-10/api-2.json new file mode 100644 index 000000000..a4004f71d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/batch/2016-08-10/api-2.json @@ -0,0 +1,885 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2016-08-10", + "endpointPrefix":"batch", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceAbbreviation":"AWS Batch", + "serviceFullName":"AWS Batch", + "signatureVersion":"v4", + "uid":"batch-2016-08-10" + }, + "operations":{ + "CancelJob":{ + "name":"CancelJob", + "http":{ + "method":"POST", + "requestUri":"/v1/canceljob" + }, + "input":{"shape":"CancelJobRequest"}, + "output":{"shape":"CancelJobResponse"}, + "errors":[ + {"shape":"ClientException"}, + {"shape":"ServerException"} + ] + }, + "CreateComputeEnvironment":{ + "name":"CreateComputeEnvironment", + "http":{ + "method":"POST", + "requestUri":"/v1/createcomputeenvironment" + }, + "input":{"shape":"CreateComputeEnvironmentRequest"}, + "output":{"shape":"CreateComputeEnvironmentResponse"}, + "errors":[ + {"shape":"ClientException"}, + {"shape":"ServerException"} + ] + }, + "CreateJobQueue":{ + "name":"CreateJobQueue", + "http":{ + "method":"POST", + "requestUri":"/v1/createjobqueue" + }, + "input":{"shape":"CreateJobQueueRequest"}, + "output":{"shape":"CreateJobQueueResponse"}, + "errors":[ + {"shape":"ClientException"}, + {"shape":"ServerException"} + ] + }, + "DeleteComputeEnvironment":{ + "name":"DeleteComputeEnvironment", + "http":{ + "method":"POST", + "requestUri":"/v1/deletecomputeenvironment" + }, + "input":{"shape":"DeleteComputeEnvironmentRequest"}, + "output":{"shape":"DeleteComputeEnvironmentResponse"}, + "errors":[ + {"shape":"ClientException"}, + {"shape":"ServerException"} + ] + }, + "DeleteJobQueue":{ + "name":"DeleteJobQueue", + "http":{ + "method":"POST", + "requestUri":"/v1/deletejobqueue" + }, + "input":{"shape":"DeleteJobQueueRequest"}, + "output":{"shape":"DeleteJobQueueResponse"}, + "errors":[ + {"shape":"ClientException"}, + {"shape":"ServerException"} + ] + }, + "DeregisterJobDefinition":{ + "name":"DeregisterJobDefinition", + "http":{ + "method":"POST", + "requestUri":"/v1/deregisterjobdefinition" + }, + "input":{"shape":"DeregisterJobDefinitionRequest"}, + "output":{"shape":"DeregisterJobDefinitionResponse"}, + "errors":[ + {"shape":"ClientException"}, + {"shape":"ServerException"} + ] + }, + "DescribeComputeEnvironments":{ + "name":"DescribeComputeEnvironments", + "http":{ + "method":"POST", + "requestUri":"/v1/describecomputeenvironments" + }, + "input":{"shape":"DescribeComputeEnvironmentsRequest"}, + "output":{"shape":"DescribeComputeEnvironmentsResponse"}, + "errors":[ + {"shape":"ClientException"}, + {"shape":"ServerException"} + ] + }, + "DescribeJobDefinitions":{ + "name":"DescribeJobDefinitions", + "http":{ + "method":"POST", + "requestUri":"/v1/describejobdefinitions" + }, + "input":{"shape":"DescribeJobDefinitionsRequest"}, + "output":{"shape":"DescribeJobDefinitionsResponse"}, + "errors":[ + {"shape":"ClientException"}, + {"shape":"ServerException"} + ] + }, + "DescribeJobQueues":{ + "name":"DescribeJobQueues", + "http":{ + "method":"POST", + "requestUri":"/v1/describejobqueues" + }, + "input":{"shape":"DescribeJobQueuesRequest"}, + "output":{"shape":"DescribeJobQueuesResponse"}, + "errors":[ + {"shape":"ClientException"}, + {"shape":"ServerException"} + ] + }, + "DescribeJobs":{ + "name":"DescribeJobs", + "http":{ + "method":"POST", + "requestUri":"/v1/describejobs" + }, + "input":{"shape":"DescribeJobsRequest"}, + "output":{"shape":"DescribeJobsResponse"}, + "errors":[ + {"shape":"ClientException"}, + {"shape":"ServerException"} + ] + }, + "ListJobs":{ + "name":"ListJobs", + "http":{ + "method":"POST", + "requestUri":"/v1/listjobs" + }, + "input":{"shape":"ListJobsRequest"}, + "output":{"shape":"ListJobsResponse"}, + "errors":[ + {"shape":"ClientException"}, + {"shape":"ServerException"} + ] + }, + "RegisterJobDefinition":{ + "name":"RegisterJobDefinition", + "http":{ + "method":"POST", + "requestUri":"/v1/registerjobdefinition" + }, + "input":{"shape":"RegisterJobDefinitionRequest"}, + "output":{"shape":"RegisterJobDefinitionResponse"}, + "errors":[ + {"shape":"ClientException"}, + {"shape":"ServerException"} + ] + }, + "SubmitJob":{ + "name":"SubmitJob", + "http":{ + "method":"POST", + "requestUri":"/v1/submitjob" + }, + "input":{"shape":"SubmitJobRequest"}, + "output":{"shape":"SubmitJobResponse"}, + "errors":[ + {"shape":"ClientException"}, + {"shape":"ServerException"} + ] + }, + "TerminateJob":{ + "name":"TerminateJob", + "http":{ + "method":"POST", + "requestUri":"/v1/terminatejob" + }, + "input":{"shape":"TerminateJobRequest"}, + "output":{"shape":"TerminateJobResponse"}, + "errors":[ + {"shape":"ClientException"}, + {"shape":"ServerException"} + ] + }, + "UpdateComputeEnvironment":{ + "name":"UpdateComputeEnvironment", + "http":{ + "method":"POST", + "requestUri":"/v1/updatecomputeenvironment" + }, + "input":{"shape":"UpdateComputeEnvironmentRequest"}, + "output":{"shape":"UpdateComputeEnvironmentResponse"}, + "errors":[ + {"shape":"ClientException"}, + {"shape":"ServerException"} + ] + }, + "UpdateJobQueue":{ + "name":"UpdateJobQueue", + "http":{ + "method":"POST", + "requestUri":"/v1/updatejobqueue" + }, + "input":{"shape":"UpdateJobQueueRequest"}, + "output":{"shape":"UpdateJobQueueResponse"}, + "errors":[ + {"shape":"ClientException"}, + {"shape":"ServerException"} + ] + } + }, + "shapes":{ + "Boolean":{"type":"boolean"}, + "CEState":{ + "type":"string", + "enum":[ + "ENABLED", + "DISABLED" + ] + }, + "CEStatus":{ + "type":"string", + "enum":[ + "CREATING", + "UPDATING", + "DELETING", + "DELETED", + "VALID", + "INVALID" + ] + }, + "CEType":{ + "type":"string", + "enum":[ + "MANAGED", + "UNMANAGED" + ] + }, + "CRType":{ + "type":"string", + "enum":[ + "EC2", + "SPOT" + ] + }, + "CancelJobRequest":{ + "type":"structure", + "required":[ + "jobId", + "reason" + ], + "members":{ + "jobId":{"shape":"String"}, + "reason":{"shape":"String"} + } + }, + "CancelJobResponse":{ + "type":"structure", + "members":{ + } + }, + "ClientException":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "ComputeEnvironmentDetail":{ + "type":"structure", + "required":[ + "computeEnvironmentName", + "computeEnvironmentArn", + "ecsClusterArn" + ], + "members":{ + "computeEnvironmentName":{"shape":"String"}, + "computeEnvironmentArn":{"shape":"String"}, + "ecsClusterArn":{"shape":"String"}, + "type":{"shape":"CEType"}, + "state":{"shape":"CEState"}, + "status":{"shape":"CEStatus"}, + "statusReason":{"shape":"String"}, + "computeResources":{"shape":"ComputeResource"}, + "serviceRole":{"shape":"String"} + } + }, + "ComputeEnvironmentDetailList":{ + "type":"list", + "member":{"shape":"ComputeEnvironmentDetail"} + }, + "ComputeEnvironmentOrder":{ + "type":"structure", + "required":[ + "order", + "computeEnvironment" + ], + "members":{ + "order":{"shape":"Integer"}, + "computeEnvironment":{"shape":"String"} + } + }, + "ComputeEnvironmentOrders":{ + "type":"list", + "member":{"shape":"ComputeEnvironmentOrder"} + }, + "ComputeResource":{ + "type":"structure", + "required":[ + "type", + "minvCpus", + "maxvCpus", + "instanceTypes", + "subnets", + "securityGroupIds", + "instanceRole" + ], + "members":{ + "type":{"shape":"CRType"}, + "minvCpus":{"shape":"Integer"}, + "maxvCpus":{"shape":"Integer"}, + "desiredvCpus":{"shape":"Integer"}, + "instanceTypes":{"shape":"StringList"}, + "subnets":{"shape":"StringList"}, + "securityGroupIds":{"shape":"StringList"}, + "ec2KeyPair":{"shape":"String"}, + "instanceRole":{"shape":"String"}, + "tags":{"shape":"TagsMap"}, + "bidPercentage":{"shape":"Integer"}, + "spotIamFleetRole":{"shape":"String"} + } + }, + "ComputeResourceUpdate":{ + "type":"structure", + "members":{ + "minvCpus":{"shape":"Integer"}, + "maxvCpus":{"shape":"Integer"}, + "desiredvCpus":{"shape":"Integer"} + } + }, + "ContainerDetail":{ + "type":"structure", + "members":{ + "image":{"shape":"String"}, + "vcpus":{"shape":"Integer"}, + "memory":{"shape":"Integer"}, + "command":{"shape":"StringList"}, + "jobRoleArn":{"shape":"String"}, + "volumes":{"shape":"Volumes"}, + "environment":{"shape":"EnvironmentVariables"}, + "mountPoints":{"shape":"MountPoints"}, + "readonlyRootFilesystem":{"shape":"Boolean"}, + "ulimits":{"shape":"Ulimits"}, + "privileged":{"shape":"Boolean"}, + "user":{"shape":"String"}, + "exitCode":{"shape":"Integer"}, + "reason":{"shape":"String"}, + "containerInstanceArn":{"shape":"String"} + } + }, + "ContainerOverrides":{ + "type":"structure", + "members":{ + "vcpus":{"shape":"Integer"}, + "memory":{"shape":"Integer"}, + "command":{"shape":"StringList"}, + "environment":{"shape":"EnvironmentVariables"} + } + }, + "ContainerProperties":{ + "type":"structure", + "required":[ + "image", + "vcpus", + "memory" + ], + "members":{ + "image":{"shape":"String"}, + "vcpus":{"shape":"Integer"}, + "memory":{"shape":"Integer"}, + "command":{"shape":"StringList"}, + "jobRoleArn":{"shape":"String"}, + "volumes":{"shape":"Volumes"}, + "environment":{"shape":"EnvironmentVariables"}, + "mountPoints":{"shape":"MountPoints"}, + "readonlyRootFilesystem":{"shape":"Boolean"}, + "privileged":{"shape":"Boolean"}, + "ulimits":{"shape":"Ulimits"}, + "user":{"shape":"String"} + } + }, + "CreateComputeEnvironmentRequest":{ + "type":"structure", + "required":[ + "computeEnvironmentName", + "type", + "serviceRole" + ], + "members":{ + "computeEnvironmentName":{"shape":"String"}, + "type":{"shape":"CEType"}, + "state":{"shape":"CEState"}, + "computeResources":{"shape":"ComputeResource"}, + "serviceRole":{"shape":"String"} + } + }, + "CreateComputeEnvironmentResponse":{ + "type":"structure", + "members":{ + "computeEnvironmentName":{"shape":"String"}, + "computeEnvironmentArn":{"shape":"String"} + } + }, + "CreateJobQueueRequest":{ + "type":"structure", + "required":[ + "jobQueueName", + "priority", + "computeEnvironmentOrder" + ], + "members":{ + "jobQueueName":{"shape":"String"}, + "state":{"shape":"JQState"}, + "priority":{"shape":"Integer"}, + "computeEnvironmentOrder":{"shape":"ComputeEnvironmentOrders"} + } + }, + "CreateJobQueueResponse":{ + "type":"structure", + "required":[ + "jobQueueName", + "jobQueueArn" + ], + "members":{ + "jobQueueName":{"shape":"String"}, + "jobQueueArn":{"shape":"String"} + } + }, + "DeleteComputeEnvironmentRequest":{ + "type":"structure", + "required":["computeEnvironment"], + "members":{ + "computeEnvironment":{"shape":"String"} + } + }, + "DeleteComputeEnvironmentResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteJobQueueRequest":{ + "type":"structure", + "required":["jobQueue"], + "members":{ + "jobQueue":{"shape":"String"} + } + }, + "DeleteJobQueueResponse":{ + "type":"structure", + "members":{ + } + }, + "DeregisterJobDefinitionRequest":{ + "type":"structure", + "required":["jobDefinition"], + "members":{ + "jobDefinition":{"shape":"String"} + } + }, + "DeregisterJobDefinitionResponse":{ + "type":"structure", + "members":{ + } + }, + "DescribeComputeEnvironmentsRequest":{ + "type":"structure", + "members":{ + "computeEnvironments":{"shape":"StringList"}, + "maxResults":{"shape":"Integer"}, + "nextToken":{"shape":"String"} + } + }, + "DescribeComputeEnvironmentsResponse":{ + "type":"structure", + "members":{ + "computeEnvironments":{"shape":"ComputeEnvironmentDetailList"}, + "nextToken":{"shape":"String"} + } + }, + "DescribeJobDefinitionsRequest":{ + "type":"structure", + "members":{ + "jobDefinitions":{"shape":"StringList"}, + "maxResults":{"shape":"Integer"}, + "jobDefinitionName":{"shape":"String"}, + "status":{"shape":"String"}, + "nextToken":{"shape":"String"} + } + }, + "DescribeJobDefinitionsResponse":{ + "type":"structure", + "members":{ + "jobDefinitions":{"shape":"JobDefinitionList"}, + "nextToken":{"shape":"String"} + } + }, + "DescribeJobQueuesRequest":{ + "type":"structure", + "members":{ + "jobQueues":{"shape":"StringList"}, + "maxResults":{"shape":"Integer"}, + "nextToken":{"shape":"String"} + } + }, + "DescribeJobQueuesResponse":{ + "type":"structure", + "members":{ + "jobQueues":{"shape":"JobQueueDetailList"}, + "nextToken":{"shape":"String"} + } + }, + "DescribeJobsRequest":{ + "type":"structure", + "required":["jobs"], + "members":{ + "jobs":{"shape":"StringList"} + } + }, + "DescribeJobsResponse":{ + "type":"structure", + "members":{ + "jobs":{"shape":"JobDetailList"} + } + }, + "EnvironmentVariables":{ + "type":"list", + "member":{"shape":"KeyValuePair"} + }, + "Host":{ + "type":"structure", + "members":{ + "sourcePath":{"shape":"String"} + } + }, + "Integer":{"type":"integer"}, + "JQState":{ + "type":"string", + "enum":[ + "ENABLED", + "DISABLED" + ] + }, + "JQStatus":{ + "type":"string", + "enum":[ + "CREATING", + "UPDATING", + "DELETING", + "DELETED", + "VALID", + "INVALID" + ] + }, + "JobDefinition":{ + "type":"structure", + "required":[ + "jobDefinitionName", + "jobDefinitionArn", + "revision", + "type" + ], + "members":{ + "jobDefinitionName":{"shape":"String"}, + "jobDefinitionArn":{"shape":"String"}, + "revision":{"shape":"Integer"}, + "status":{"shape":"String"}, + "type":{"shape":"String"}, + "parameters":{"shape":"ParametersMap"}, + "containerProperties":{"shape":"ContainerProperties"} + } + }, + "JobDefinitionList":{ + "type":"list", + "member":{"shape":"JobDefinition"} + }, + "JobDefinitionType":{ + "type":"string", + "enum":["container"] + }, + "JobDependency":{ + "type":"structure", + "members":{ + "jobId":{"shape":"String"} + } + }, + "JobDependencyList":{ + "type":"list", + "member":{"shape":"JobDependency"} + }, + "JobDetail":{ + "type":"structure", + "required":[ + "jobName", + "jobId", + "jobQueue", + "status", + "startedAt", + "jobDefinition" + ], + "members":{ + "jobName":{"shape":"String"}, + "jobId":{"shape":"String"}, + "jobQueue":{"shape":"String"}, + "status":{"shape":"JobStatus"}, + "statusReason":{"shape":"String"}, + "createdAt":{"shape":"Long"}, + "startedAt":{"shape":"Long"}, + "stoppedAt":{"shape":"Long"}, + "dependsOn":{"shape":"JobDependencyList"}, + "jobDefinition":{"shape":"String"}, + "parameters":{"shape":"ParametersMap"}, + "container":{"shape":"ContainerDetail"} + } + }, + "JobDetailList":{ + "type":"list", + "member":{"shape":"JobDetail"} + }, + "JobQueueDetail":{ + "type":"structure", + "required":[ + "jobQueueName", + "jobQueueArn", + "state", + "priority", + "computeEnvironmentOrder" + ], + "members":{ + "jobQueueName":{"shape":"String"}, + "jobQueueArn":{"shape":"String"}, + "state":{"shape":"JQState"}, + "status":{"shape":"JQStatus"}, + "statusReason":{"shape":"String"}, + "priority":{"shape":"Integer"}, + "computeEnvironmentOrder":{"shape":"ComputeEnvironmentOrders"} + } + }, + "JobQueueDetailList":{ + "type":"list", + "member":{"shape":"JobQueueDetail"} + }, + "JobStatus":{ + "type":"string", + "enum":[ + "SUBMITTED", + "PENDING", + "RUNNABLE", + "STARTING", + "RUNNING", + "SUCCEEDED", + "FAILED" + ] + }, + "JobSummary":{ + "type":"structure", + "required":[ + "jobId", + "jobName" + ], + "members":{ + "jobId":{"shape":"String"}, + "jobName":{"shape":"String"} + } + }, + "JobSummaryList":{ + "type":"list", + "member":{"shape":"JobSummary"} + }, + "KeyValuePair":{ + "type":"structure", + "members":{ + "name":{"shape":"String"}, + "value":{"shape":"String"} + } + }, + "ListJobsRequest":{ + "type":"structure", + "required":["jobQueue"], + "members":{ + "jobQueue":{"shape":"String"}, + "jobStatus":{"shape":"JobStatus"}, + "maxResults":{"shape":"Integer"}, + "nextToken":{"shape":"String"} + } + }, + "ListJobsResponse":{ + "type":"structure", + "required":["jobSummaryList"], + "members":{ + "jobSummaryList":{"shape":"JobSummaryList"}, + "nextToken":{"shape":"String"} + } + }, + "Long":{"type":"long"}, + "MountPoint":{ + "type":"structure", + "members":{ + "containerPath":{"shape":"String"}, + "readOnly":{"shape":"Boolean"}, + "sourceVolume":{"shape":"String"} + } + }, + "MountPoints":{ + "type":"list", + "member":{"shape":"MountPoint"} + }, + "ParametersMap":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"String"} + }, + "RegisterJobDefinitionRequest":{ + "type":"structure", + "required":[ + "jobDefinitionName", + "type" + ], + "members":{ + "jobDefinitionName":{"shape":"String"}, + "type":{"shape":"JobDefinitionType"}, + "parameters":{"shape":"ParametersMap"}, + "containerProperties":{"shape":"ContainerProperties"} + } + }, + "RegisterJobDefinitionResponse":{ + "type":"structure", + "required":[ + "jobDefinitionName", + "jobDefinitionArn", + "revision" + ], + "members":{ + "jobDefinitionName":{"shape":"String"}, + "jobDefinitionArn":{"shape":"String"}, + "revision":{"shape":"Integer"} + } + }, + "ServerException":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true + }, + "String":{"type":"string"}, + "StringList":{ + "type":"list", + "member":{"shape":"String"} + }, + "SubmitJobRequest":{ + "type":"structure", + "required":[ + "jobName", + "jobQueue", + "jobDefinition" + ], + "members":{ + "jobName":{"shape":"String"}, + "jobQueue":{"shape":"String"}, + "dependsOn":{"shape":"JobDependencyList"}, + "jobDefinition":{"shape":"String"}, + "parameters":{"shape":"ParametersMap"}, + "containerOverrides":{"shape":"ContainerOverrides"} + } + }, + "SubmitJobResponse":{ + "type":"structure", + "required":[ + "jobName", + "jobId" + ], + "members":{ + "jobName":{"shape":"String"}, + "jobId":{"shape":"String"} + } + }, + "TagsMap":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"String"} + }, + "TerminateJobRequest":{ + "type":"structure", + "required":[ + "jobId", + "reason" + ], + "members":{ + "jobId":{"shape":"String"}, + "reason":{"shape":"String"} + } + }, + "TerminateJobResponse":{ + "type":"structure", + "members":{ + } + }, + "Ulimit":{ + "type":"structure", + "required":[ + "hardLimit", + "name", + "softLimit" + ], + "members":{ + "hardLimit":{"shape":"Integer"}, + "name":{"shape":"String"}, + "softLimit":{"shape":"Integer"} + } + }, + "Ulimits":{ + "type":"list", + "member":{"shape":"Ulimit"} + }, + "UpdateComputeEnvironmentRequest":{ + "type":"structure", + "required":["computeEnvironment"], + "members":{ + "computeEnvironment":{"shape":"String"}, + "state":{"shape":"CEState"}, + "computeResources":{"shape":"ComputeResourceUpdate"}, + "serviceRole":{"shape":"String"} + } + }, + "UpdateComputeEnvironmentResponse":{ + "type":"structure", + "members":{ + "computeEnvironmentName":{"shape":"String"}, + "computeEnvironmentArn":{"shape":"String"} + } + }, + "UpdateJobQueueRequest":{ + "type":"structure", + "required":["jobQueue"], + "members":{ + "jobQueue":{"shape":"String"}, + "state":{"shape":"JQState"}, + "priority":{"shape":"Integer"}, + "computeEnvironmentOrder":{"shape":"ComputeEnvironmentOrders"} + } + }, + "UpdateJobQueueResponse":{ + "type":"structure", + "members":{ + "jobQueueName":{"shape":"String"}, + "jobQueueArn":{"shape":"String"} + } + }, + "Volume":{ + "type":"structure", + "members":{ + "host":{"shape":"Host"}, + "name":{"shape":"String"} + } + }, + "Volumes":{ + "type":"list", + "member":{"shape":"Volume"} + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/batch/2016-08-10/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/batch/2016-08-10/docs-2.json new file mode 100644 index 000000000..2f6f21529 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/batch/2016-08-10/docs-2.json @@ -0,0 +1,596 @@ +{ + "version": "2.0", + "service": "

AWS Batch enables you to run batch computing workloads on the AWS Cloud. Batch computing is a common way for developers, scientists, and engineers to access large amounts of compute resources, and AWS Batch removes the undifferentiated heavy lifting of configuring and managing the required infrastructure. AWS Batch will be familiar to users of traditional batch computing software. This service can efficiently provision resources in response to jobs submitted in order to eliminate capacity constraints, reduce compute costs, and deliver results quickly.

As a fully managed service, AWS Batch enables developers, scientists, and engineers to run batch computing workloads of any scale. AWS Batch automatically provisions compute resources and optimizes the workload distribution based on the quantity and scale of the workloads. With AWS Batch, there is no need to install or manage batch computing software, which allows you to focus on analyzing results and solving problems. AWS Batch reduces operational complexities, saves time, and reduces costs, which makes it easy for developers, scientists, and engineers to run their batch jobs in the AWS Cloud.

", + "operations": { + "CancelJob": "

Cancels jobs in an AWS Batch job queue. Jobs that are in the SUBMITTED, PENDING, or RUNNABLE state are cancelled. Jobs that have progressed to STARTING or RUNNING are not cancelled (but the API operation still succeeds, even if no jobs are cancelled); these jobs must be terminated with the TerminateJob operation.

", + "CreateComputeEnvironment": "

Creates an AWS Batch compute environment. You can create MANAGED or UNMANAGEDcompute environments.

In a managed compute environment, AWS Batch manages the compute resources within the environment, based on the compute resources that you specify. Instances launched into a managed compute environment use the latest Amazon ECS-optimized AMI. You can choose to use Amazon EC2 On-Demand instances in your managed compute environment, or you can use Amazon EC2 Spot instances that only launch when the Spot bid price is below a specified percentage of the On-Demand price.

In an unmanaged compute environment, you can manage your own compute resources. This provides more compute resource configuration options, such as using a custom AMI, but you must ensure that your AMI meets the Amazon ECS container instance AMI specification. For more information, see Container Instance AMIs in the Amazon EC2 Container Service Developer Guide. After you have created your unmanaged compute environment, you can use the DescribeComputeEnvironments operation to find the Amazon ECS cluster that is associated with it and then manually launch your container instances into that Amazon ECS cluster. For more information, see Launching an Amazon ECS Container Instance in the Amazon EC2 Container Service Developer Guide.

", + "CreateJobQueue": "

Creates an AWS Batch job queue. When you create a job queue, you associate one or more compute environments to the queue and assign an order of preference for the compute environments.

You also set a priority to the job queue that determines the order in which the AWS Batch scheduler places jobs onto its associated compute environments. For example, if a compute environment is associated with more than one job queue, the job queue with a higher priority is given preference for scheduling jobs to that compute environment.

", + "DeleteComputeEnvironment": "

Deletes an AWS Batch compute environment.

Before you can delete a compute environment, you must set its state to DISABLED with the UpdateComputeEnvironment API operation and disassociate it from any job queues with the UpdateJobQueue API operation.

", + "DeleteJobQueue": "

Deletes the specified job queue. You must first disable submissions for a queue with the UpdateJobQueue operation and terminate any jobs that have not completed with the TerminateJob.

It is not necessary to disassociate compute environments from a queue before submitting a DeleteJobQueue request.

", + "DeregisterJobDefinition": "

Deregisters an AWS Batch job definition.

", + "DescribeComputeEnvironments": "

Describes one or more of your compute environments.

If you are using an unmanaged compute environment, you can use the DescribeComputeEnvironment operation to determine the ecsClusterArn that you should launch your Amazon ECS container instances into.

", + "DescribeJobDefinitions": "

Describes a list of job definitions. You can specify a status (such as ACTIVE) to only return job definitions that match that status.

", + "DescribeJobQueues": "

Describes one or more of your job queues.

", + "DescribeJobs": "

Describes a list of AWS Batch jobs.

", + "ListJobs": "

Returns a list of task jobs for a specified job queue. You can filter the results by job status with the jobStatus parameter.

", + "RegisterJobDefinition": "

Registers an AWS Batch job definition.

", + "SubmitJob": "

Submits an AWS Batch job from a job definition. Parameters specified during SubmitJob override parameters defined in the job definition.

", + "TerminateJob": "

Terminates jobs in a job queue. Jobs that are in the STARTING or RUNNING state are terminated, which causes them to transition to FAILED. Jobs that have not progressed to the STARTING state are cancelled.

", + "UpdateComputeEnvironment": "

Updates an AWS Batch compute environment.

", + "UpdateJobQueue": "

Updates a job queue.

" + }, + "shapes": { + "Boolean": { + "base": null, + "refs": { + "ContainerDetail$readonlyRootFilesystem": "

When this parameter is true, the container is given read-only access to its root file system.

", + "ContainerDetail$privileged": "

When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user).

", + "ContainerProperties$readonlyRootFilesystem": "

When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ReadonlyRootfs in the Create a container section of the Docker Remote API and the --read-only option to docker run.

", + "ContainerProperties$privileged": "

When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user). This parameter maps to Privileged in the Create a container section of the Docker Remote API and the --privileged option to docker run.

", + "MountPoint$readOnly": "

If this value is true, the container has read-only access to the volume; otherwise, the container can write to the volume. The default value is false.

" + } + }, + "CEState": { + "base": null, + "refs": { + "ComputeEnvironmentDetail$state": "

The state of the compute environment. The valid values are ENABLED or DISABLED. An ENABLED state indicates that you can register instances with the compute environment and that the associated instances can accept jobs.

", + "CreateComputeEnvironmentRequest$state": "

The state of the compute environment. If the state is ENABLED, then the compute environment accepts jobs from a queue and can scale out automatically based on queues.

", + "UpdateComputeEnvironmentRequest$state": "

The state of the compute environment. Compute environments in the ENABLED state can accept jobs from a queue and scale in or out automatically based on the workload demand of its associated queues.

" + } + }, + "CEStatus": { + "base": null, + "refs": { + "ComputeEnvironmentDetail$status": "

The current status of the compute environment (for example, CREATING or VALID).

" + } + }, + "CEType": { + "base": null, + "refs": { + "ComputeEnvironmentDetail$type": "

The type of the compute environment.

", + "CreateComputeEnvironmentRequest$type": "

The type of the compute environment.

" + } + }, + "CRType": { + "base": null, + "refs": { + "ComputeResource$type": "

The type of compute environment.

" + } + }, + "CancelJobRequest": { + "base": null, + "refs": { + } + }, + "CancelJobResponse": { + "base": null, + "refs": { + } + }, + "ClientException": { + "base": "

These errors are usually caused by a client action, such as using an action or resource on behalf of a user that doesn't have permission to use the action or resource, or specifying an identifier that is not valid.

", + "refs": { + } + }, + "ComputeEnvironmentDetail": { + "base": "

An object representing an AWS Batch compute environment.

", + "refs": { + "ComputeEnvironmentDetailList$member": null + } + }, + "ComputeEnvironmentDetailList": { + "base": null, + "refs": { + "DescribeComputeEnvironmentsResponse$computeEnvironments": "

The list of compute environments.

" + } + }, + "ComputeEnvironmentOrder": { + "base": "

The order in which compute environments are tried for job placement within a queue. Compute environments are tried in ascending order. For example, if two compute environments are associated with a job queue, the compute environment with a lower order integer value is tried for job placement first.

", + "refs": { + "ComputeEnvironmentOrders$member": null + } + }, + "ComputeEnvironmentOrders": { + "base": null, + "refs": { + "CreateJobQueueRequest$computeEnvironmentOrder": "

The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler uses this parameter to determine which compute environment should execute a given job. Compute environments must be in the VALID state before you can associate them with a job queue. You can associate up to 3 compute environments with a job queue.

", + "JobQueueDetail$computeEnvironmentOrder": "

The compute environments that are attached to the job queue and the order in which job placement is preferred. Compute environments are selected for job placement in ascending order.

", + "UpdateJobQueueRequest$computeEnvironmentOrder": "

Details the set of compute environments mapped to a job queue and their order relative to each other. This is one of the parameters used by the job scheduler to determine which compute environment should execute a given job.

" + } + }, + "ComputeResource": { + "base": "

An object representing an AWS Batch compute resource.

", + "refs": { + "ComputeEnvironmentDetail$computeResources": "

The compute resources defined for the compute environment.

", + "CreateComputeEnvironmentRequest$computeResources": "

Details of the compute resources managed by the compute environment. This parameter is required for managed compute environments.

" + } + }, + "ComputeResourceUpdate": { + "base": "

An object representing the attributes of a compute environment that can be updated.

", + "refs": { + "UpdateComputeEnvironmentRequest$computeResources": "

Details of the compute resources managed by the compute environment. Required for a managed compute environment.

" + } + }, + "ContainerDetail": { + "base": "

An object representing the details of a container that is part of a job.

", + "refs": { + "JobDetail$container": "

An object representing the details of the container that is associated with the job.

" + } + }, + "ContainerOverrides": { + "base": "

The overrides that should be sent to a container.

", + "refs": { + "SubmitJobRequest$containerOverrides": "

A list of container overrides in JSON format that specify the name of a container in the specified job definition and the overrides it should receive. You can override the default command for a container (that is specified in the job definition or the Docker image) with a command override. You can also override existing environment variables (that are specified in the job definition or Docker image) on a container or add new environment variables to it with an environment override.

" + } + }, + "ContainerProperties": { + "base": "

Container properties are used in job definitions to describe the container that is launched as part of a job.

", + "refs": { + "JobDefinition$containerProperties": "

An object with various properties specific to container-based jobs.

", + "RegisterJobDefinitionRequest$containerProperties": "

An object with various properties specific for container-based jobs. This parameter is required if the type parameter is container.

" + } + }, + "CreateComputeEnvironmentRequest": { + "base": null, + "refs": { + } + }, + "CreateComputeEnvironmentResponse": { + "base": null, + "refs": { + } + }, + "CreateJobQueueRequest": { + "base": null, + "refs": { + } + }, + "CreateJobQueueResponse": { + "base": null, + "refs": { + } + }, + "DeleteComputeEnvironmentRequest": { + "base": null, + "refs": { + } + }, + "DeleteComputeEnvironmentResponse": { + "base": null, + "refs": { + } + }, + "DeleteJobQueueRequest": { + "base": null, + "refs": { + } + }, + "DeleteJobQueueResponse": { + "base": null, + "refs": { + } + }, + "DeregisterJobDefinitionRequest": { + "base": null, + "refs": { + } + }, + "DeregisterJobDefinitionResponse": { + "base": null, + "refs": { + } + }, + "DescribeComputeEnvironmentsRequest": { + "base": null, + "refs": { + } + }, + "DescribeComputeEnvironmentsResponse": { + "base": null, + "refs": { + } + }, + "DescribeJobDefinitionsRequest": { + "base": null, + "refs": { + } + }, + "DescribeJobDefinitionsResponse": { + "base": null, + "refs": { + } + }, + "DescribeJobQueuesRequest": { + "base": null, + "refs": { + } + }, + "DescribeJobQueuesResponse": { + "base": null, + "refs": { + } + }, + "DescribeJobsRequest": { + "base": null, + "refs": { + } + }, + "DescribeJobsResponse": { + "base": null, + "refs": { + } + }, + "EnvironmentVariables": { + "base": null, + "refs": { + "ContainerDetail$environment": "

The environment variables to pass to a container.

", + "ContainerOverrides$environment": "

The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the job definition.

", + "ContainerProperties$environment": "

The environment variables to pass to a container. This parameter maps to Env in the Create a container section of the Docker Remote API and the --env option to docker run.

We do not recommend using plain text environment variables for sensitive information, such as credential data.

" + } + }, + "Host": { + "base": "

The contents of the host parameter determine whether your data volume persists on the host container instance and where it is stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume, but the data is not guaranteed to persist after the containers associated with it stop running.

", + "refs": { + "Volume$host": "

The contents of the host parameter determine whether your data volume persists on the host container instance and where it is stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume, but the data is not guaranteed to persist after the containers associated with it stop running.

" + } + }, + "Integer": { + "base": null, + "refs": { + "ComputeEnvironmentOrder$order": "

The order of the compute environment.

", + "ComputeResource$minvCpus": "

The minimum number of EC2 vCPUs that an environment should maintain.

", + "ComputeResource$maxvCpus": "

The maximum number of EC2 vCPUs that an environment can reach.

", + "ComputeResource$desiredvCpus": "

The desired number of EC2 vCPUS in the compute environment.

", + "ComputeResource$bidPercentage": "

The minimum percentage that a Spot Instance price must be when compared with the On-Demand price for that instance type before instances are launched. For example, if your bid percentage is 20%, then the Spot price must be below 20% of the current On-Demand price for that EC2 instance.

", + "ComputeResourceUpdate$minvCpus": "

The minimum number of EC2 vCPUs that an environment should maintain.

", + "ComputeResourceUpdate$maxvCpus": "

The maximum number of EC2 vCPUs that an environment can reach.

", + "ComputeResourceUpdate$desiredvCpus": "

The desired number of EC2 vCPUS in the compute environment.

", + "ContainerDetail$vcpus": "

The number of VCPUs allocated for the job.

", + "ContainerDetail$memory": "

The number of MiB of memory reserved for the job.

", + "ContainerDetail$exitCode": "

The exit code to return upon completion.

", + "ContainerOverrides$vcpus": "

The number of vCPUs to reserve for the container. This value overrides the value set in the job definition.

", + "ContainerOverrides$memory": "

The number of MiB of memory reserved for the job. This value overrides the value set in the job definition.

", + "ContainerProperties$vcpus": "

The number of vCPUs reserved for the container. This parameter maps to CpuShares in the Create a container section of the Docker Remote API and the --cpu-shares option to docker run. Each vCPU is equivalent to 1,024 CPU shares.

", + "ContainerProperties$memory": "

The hard limit (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed. This parameter maps to Memory in the Create a container section of the Docker Remote API and the --memory option to docker run.

", + "CreateJobQueueRequest$priority": "

The priority of the job queue. Job queues with a higher priority (or a lower integer value for the priority parameter) are evaluated first when associated with same compute environment. Priority is determined in ascending order, for example, a job queue with a priority value of 1 is given scheduling preference over a job queue with a priority value of 10.

", + "DescribeComputeEnvironmentsRequest$maxResults": "

The maximum number of cluster results returned by DescribeComputeEnvironments in paginated output. When this parameter is used, DescribeComputeEnvironments only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another DescribeComputeEnvironments request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then DescribeComputeEnvironments returns up to 100 results and a nextToken value if applicable.

", + "DescribeJobDefinitionsRequest$maxResults": "

The maximum number of results returned by DescribeJobDefinitions in paginated output. When this parameter is used, DescribeJobDefinitions only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another DescribeJobDefinitions request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then DescribeJobDefinitions returns up to 100 results and a nextToken value if applicable.

", + "DescribeJobQueuesRequest$maxResults": "

The maximum number of results returned by DescribeJobQueues in paginated output. When this parameter is used, DescribeJobQueues only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another DescribeJobQueues request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then DescribeJobQueues returns up to 100 results and a nextToken value if applicable.

", + "JobDefinition$revision": "

The revision of the job definition.

", + "JobQueueDetail$priority": "

The priority of the job queue.

", + "ListJobsRequest$maxResults": "

The maximum number of results returned by ListJobs in paginated output. When this parameter is used, ListJobs only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListJobs request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListJobs returns up to 100 results and a nextToken value if applicable.

", + "RegisterJobDefinitionResponse$revision": "

The revision of the job definition.

", + "Ulimit$hardLimit": "

The hard limit for the ulimit type.

", + "Ulimit$softLimit": "

The soft limit for the ulimit type.

", + "UpdateJobQueueRequest$priority": "

The priority of the job queue. Job queues with a higher priority (or a lower integer value for the priority parameter) are evaluated first when associated with same compute environment. Priority is determined in ascending order, for example, a job queue with a priority value of 1 is given scheduling preference over a job queue with a priority value of 10.

" + } + }, + "JQState": { + "base": null, + "refs": { + "CreateJobQueueRequest$state": "

The state of the job queue. If the job queue state is ENABLED, it is able to accept jobs.

", + "JobQueueDetail$state": "

Describes the ability of the queue to accept new jobs.

", + "UpdateJobQueueRequest$state": "

Describes the queue's ability to accept new jobs.

" + } + }, + "JQStatus": { + "base": null, + "refs": { + "JobQueueDetail$status": "

The status of the job queue (for example, CREATING or VALID).

" + } + }, + "JobDefinition": { + "base": "

An object representing an AWS Batch job definition.

", + "refs": { + "JobDefinitionList$member": null + } + }, + "JobDefinitionList": { + "base": null, + "refs": { + "DescribeJobDefinitionsResponse$jobDefinitions": "

The list of job definitions.

" + } + }, + "JobDefinitionType": { + "base": null, + "refs": { + "RegisterJobDefinitionRequest$type": "

The type of job definition.

" + } + }, + "JobDependency": { + "base": "

An object representing an AWS Batch job dependency.

", + "refs": { + "JobDependencyList$member": null + } + }, + "JobDependencyList": { + "base": null, + "refs": { + "JobDetail$dependsOn": "

A list of job names or IDs on which this job depends.

", + "SubmitJobRequest$dependsOn": "

A list of job names or IDs on which this job depends. A job can depend upon a maximum of 100 jobs.

" + } + }, + "JobDetail": { + "base": "

An object representing an AWS Batch job.

", + "refs": { + "JobDetailList$member": null + } + }, + "JobDetailList": { + "base": null, + "refs": { + "DescribeJobsResponse$jobs": "

The list of jobs.

" + } + }, + "JobQueueDetail": { + "base": "

An object representing the details of an AWS Batch job queue.

", + "refs": { + "JobQueueDetailList$member": null + } + }, + "JobQueueDetailList": { + "base": null, + "refs": { + "DescribeJobQueuesResponse$jobQueues": "

The list of job queues.

" + } + }, + "JobStatus": { + "base": null, + "refs": { + "JobDetail$status": "

The current status for the job.

", + "ListJobsRequest$jobStatus": "

The job status with which to filter jobs in the specified queue.

" + } + }, + "JobSummary": { + "base": "

An object representing summary details of a job.

", + "refs": { + "JobSummaryList$member": null + } + }, + "JobSummaryList": { + "base": null, + "refs": { + "ListJobsResponse$jobSummaryList": "

A list of job summaries that match the request.

" + } + }, + "KeyValuePair": { + "base": "

A key-value pair object.

", + "refs": { + "EnvironmentVariables$member": null + } + }, + "ListJobsRequest": { + "base": null, + "refs": { + } + }, + "ListJobsResponse": { + "base": null, + "refs": { + } + }, + "Long": { + "base": null, + "refs": { + "JobDetail$createdAt": "

The Unix timestamp for when the job was created (when the task entered the PENDING state).

", + "JobDetail$startedAt": "

The Unix timestamp for when the job was started (when the task transitioned from the PENDING state to the RUNNING state).

", + "JobDetail$stoppedAt": "

The Unix timestamp for when the job was stopped (when the task transitioned from the RUNNING state to the STOPPED state).

" + } + }, + "MountPoint": { + "base": "

Details on a volume mount point that is used in a job's container properties.

", + "refs": { + "MountPoints$member": null + } + }, + "MountPoints": { + "base": null, + "refs": { + "ContainerDetail$mountPoints": "

The mount points for data volumes in your container.

", + "ContainerProperties$mountPoints": "

The mount points for data volumes in your container. This parameter maps to Volumes in the Create a container section of the Docker Remote API and the --volume option to docker run.

" + } + }, + "ParametersMap": { + "base": null, + "refs": { + "JobDefinition$parameters": "

Default parameters or parameter substitution placeholders that are set in the job definition. Parameters are specified as a key-value pair mapping. Parameters in a SubmitJob request override any corresponding parameter defaults from the job definition.

", + "JobDetail$parameters": "

Additional parameters passed to the job that replace parameter substitution placeholders or override any corresponding parameter defaults from the job definition.

", + "RegisterJobDefinitionRequest$parameters": "

Default parameter substitution placeholders to set in the job definition. Parameters are specified as a key-value pair mapping. Parameters in a SubmitJob request override any corresponding parameter defaults from the job definition.

", + "SubmitJobRequest$parameters": "

Additional parameters passed to the job that replace parameter substitution placeholders that are set in the job definition. Parameters are specified as a key and value pair mapping. Parameters in a SubmitJob request override any corresponding parameter defaults from the job definition.

" + } + }, + "RegisterJobDefinitionRequest": { + "base": null, + "refs": { + } + }, + "RegisterJobDefinitionResponse": { + "base": null, + "refs": { + } + }, + "ServerException": { + "base": "

These errors are usually caused by a server issue.

", + "refs": { + } + }, + "String": { + "base": null, + "refs": { + "CancelJobRequest$jobId": "

A list of up to 100 job IDs to cancel.

", + "CancelJobRequest$reason": "

A message to attach to the job that explains the reason for cancelling it. This message is returned by future DescribeJobs operations on the job. This message is also recorded in the AWS Batch activity logs.

", + "ClientException$message": null, + "ComputeEnvironmentDetail$computeEnvironmentName": "

The name of the compute environment.

", + "ComputeEnvironmentDetail$computeEnvironmentArn": "

The Amazon Resource Name (ARN) of the compute environment.

", + "ComputeEnvironmentDetail$ecsClusterArn": "

The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster used by the compute environment.

", + "ComputeEnvironmentDetail$statusReason": "

A short, human-readable string to provide additional details about the current status of the compute environment.

", + "ComputeEnvironmentDetail$serviceRole": "

The service role associated with the compute environment that allows AWS Batch to make calls to AWS API operations on your behalf.

", + "ComputeEnvironmentOrder$computeEnvironment": "

The Amazon Resource Name (ARN) of the compute environment.

", + "ComputeResource$ec2KeyPair": "

The EC2 key pair that is used for instances launched in the compute environment.

", + "ComputeResource$instanceRole": "

The Amazon ECS instance role applied to Amazon EC2 instances in a compute environment.

", + "ComputeResource$spotIamFleetRole": "

The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied to a SPOT compute environment.

", + "ContainerDetail$image": "

The image used to start the container.

", + "ContainerDetail$jobRoleArn": "

The Amazon Resource Name (ARN) associated with the job upon execution.

", + "ContainerDetail$user": "

The user name to use inside the container.

", + "ContainerDetail$reason": "

A short (255 max characters) human-readable string to provide additional details about a running or stopped container.

", + "ContainerDetail$containerInstanceArn": "

The Amazon Resource Name (ARN) of the container instance on which the container is running.

", + "ContainerProperties$image": "

The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with repository-url/image:tag . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the Create a container section of the Docker Remote API and the IMAGE parameter of docker run.

  • Images in Amazon ECR repositories use the full registry and repository URI (for example, 012345678910.dkr.ecr.<region-name>.amazonaws.com/<repository-name>).

  • Images in official repositories on Docker Hub use a single name (for example, ubuntu or mongo).

  • Images in other repositories on Docker Hub are qualified with an organization name (for example, amazon/amazon-ecs-agent).

  • Images in other online repositories are qualified further by a domain name (for example, quay.io/assemblyline/ubuntu).

", + "ContainerProperties$jobRoleArn": "

The Amazon Resource Name (ARN) of the IAM role that the container can assume for AWS permissions.

", + "ContainerProperties$user": "

The user name to use inside the container. This parameter maps to User in the Create a container section of the Docker Remote API and the --user option to docker run.

", + "CreateComputeEnvironmentRequest$computeEnvironmentName": "

The name for your compute environment. Up to 128 letters (uppercase and lowercase), numbers, and underscores are allowed.

", + "CreateComputeEnvironmentRequest$serviceRole": "

The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf.

", + "CreateComputeEnvironmentResponse$computeEnvironmentName": "

The name of the compute environment.

", + "CreateComputeEnvironmentResponse$computeEnvironmentArn": "

The Amazon Resource Name (ARN) of the compute environment.

", + "CreateJobQueueRequest$jobQueueName": "

The name of the job queue.

", + "CreateJobQueueResponse$jobQueueName": "

The name of the job queue.

", + "CreateJobQueueResponse$jobQueueArn": "

The Amazon Resource Name (ARN) of the job queue.

", + "DeleteComputeEnvironmentRequest$computeEnvironment": "

The name or Amazon Resource Name (ARN) of the compute environment to delete.

", + "DeleteJobQueueRequest$jobQueue": "

The short name or full Amazon Resource Name (ARN) of the queue to delete.

", + "DeregisterJobDefinitionRequest$jobDefinition": "

The name and revision (name:revision) or full Amazon Resource Name (ARN) of the job definition to deregister.

", + "DescribeComputeEnvironmentsRequest$nextToken": "

The nextToken value returned from a previous paginated DescribeComputeEnvironments request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

", + "DescribeComputeEnvironmentsResponse$nextToken": "

The nextToken value to include in a future DescribeComputeEnvironments request. When the results of a DescribeJobDefinitions request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeJobDefinitionsRequest$jobDefinitionName": "

The name of the job definition to describe.

", + "DescribeJobDefinitionsRequest$status": "

The status with which to filter job definitions.

", + "DescribeJobDefinitionsRequest$nextToken": "

The nextToken value returned from a previous paginated DescribeJobDefinitions request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

", + "DescribeJobDefinitionsResponse$nextToken": "

The nextToken value to include in a future DescribeJobDefinitions request. When the results of a DescribeJobDefinitions request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeJobQueuesRequest$nextToken": "

The nextToken value returned from a previous paginated DescribeJobQueues request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

", + "DescribeJobQueuesResponse$nextToken": "

The nextToken value to include in a future DescribeJobQueues request. When the results of a DescribeJobQueues request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", + "Host$sourcePath": "

The path on the host container instance that is presented to the container. If this parameter is empty, then the Docker daemon has assigned a host path for you. If the host parameter contains a sourcePath file location, then the data volume persists at the specified location on the host container instance until you delete it manually. If the sourcePath value does not exist on the host container instance, the Docker daemon creates it. If the location does exist, the contents of the source path folder are exported.

", + "JobDefinition$jobDefinitionName": "

The name of the job definition.

", + "JobDefinition$jobDefinitionArn": "

The Amazon Resource Name (ARN) for the job definition.

", + "JobDefinition$status": "

The status of the job definition.

", + "JobDefinition$type": "

The type of job definition.

", + "JobDependency$jobId": "

The job ID of the AWS Batch job associated with this dependency.

", + "JobDetail$jobName": "

The name of the job.

", + "JobDetail$jobId": "

The ID for the job.

", + "JobDetail$jobQueue": "

The Amazon Resource Name (ARN) of the job queue with which the job is associated.

", + "JobDetail$statusReason": "

A short, human-readable string to provide additional details about the current status of the job.

", + "JobDetail$jobDefinition": "

The job definition that is used by this job.

", + "JobQueueDetail$jobQueueName": "

The name of the job queue.

", + "JobQueueDetail$jobQueueArn": "

The Amazon Resource Name (ARN) of the job queue.

", + "JobQueueDetail$statusReason": "

A short, human-readable string to provide additional details about the current status of the job queue.

", + "JobSummary$jobId": "

The ID of the job.

", + "JobSummary$jobName": "

The name of the job.

", + "KeyValuePair$name": "

The name of the key value pair. For environment variables, this is the name of the environment variable.

", + "KeyValuePair$value": "

The value of the key value pair. For environment variables, this is the value of the environment variable.

", + "ListJobsRequest$jobQueue": "

The name or full Amazon Resource Name (ARN) of the job queue with which to list jobs.

", + "ListJobsRequest$nextToken": "

The nextToken value returned from a previous paginated ListJobs request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

", + "ListJobsResponse$nextToken": "

The nextToken value to include in a future ListJobs request. When the results of a ListJobs request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", + "MountPoint$containerPath": "

The path on the container at which to mount the host volume.

", + "MountPoint$sourceVolume": "

The name of the volume to mount.

", + "ParametersMap$key": null, + "ParametersMap$value": null, + "RegisterJobDefinitionRequest$jobDefinitionName": "

The name of the job definition to register.

", + "RegisterJobDefinitionResponse$jobDefinitionName": "

The name of the job definition.

", + "RegisterJobDefinitionResponse$jobDefinitionArn": "

The Amazon Resource Name (ARN) of the job definition.

", + "ServerException$message": null, + "StringList$member": null, + "SubmitJobRequest$jobName": "

The name of the job.

", + "SubmitJobRequest$jobQueue": "

The job queue into which the job will be submitted. You can specify either the name or the Amazon Resource Name (ARN) of the queue.

", + "SubmitJobRequest$jobDefinition": "

The job definition used by this job. This value can be either a name:revision or the Amazon Resource Name (ARN) for the job definition.

", + "SubmitJobResponse$jobName": "

The name of the job.

", + "SubmitJobResponse$jobId": "

The unique identifier for the job.

", + "TagsMap$key": null, + "TagsMap$value": null, + "TerminateJobRequest$jobId": "

Job IDs to be terminated. Up to 100 jobs can be specified.

", + "TerminateJobRequest$reason": "

A message to attach to the job that explains the reason for cancelling it. This message is returned by future DescribeJobs operations on the job. This message is also recorded in the AWS Batch activity logs.

", + "Ulimit$name": "

The type of the ulimit.

", + "UpdateComputeEnvironmentRequest$computeEnvironment": "

The name or full Amazon Resource Name (ARN) of the compute environment to update.

", + "UpdateComputeEnvironmentRequest$serviceRole": "

The name or full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to ECS, Auto Scaling, and EC2 on your behalf.

", + "UpdateComputeEnvironmentResponse$computeEnvironmentName": "

The name of compute environment.

", + "UpdateComputeEnvironmentResponse$computeEnvironmentArn": "

The Amazon Resource Name (ARN) of the compute environment.

", + "UpdateJobQueueRequest$jobQueue": "

The name or the Amazon Resource Name (ARN) of the job queue.

", + "UpdateJobQueueResponse$jobQueueName": "

The name of the job queue.

", + "UpdateJobQueueResponse$jobQueueArn": "

The Amazon Resource Name (ARN) of the job queue.

", + "Volume$name": "

The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. This name is referenced in the sourceVolume parameter of container definition mountPoints.

" + } + }, + "StringList": { + "base": null, + "refs": { + "ComputeResource$instanceTypes": "

The instances types that may launched.

", + "ComputeResource$subnets": "

The VPC subnets into which the compute resources are launched.

", + "ComputeResource$securityGroupIds": "

The EC2 security group that is associated with instances launched in the compute environment.

", + "ContainerDetail$command": "

The command that is passed to the container.

", + "ContainerOverrides$command": "

The command to send to the container that overrides the default command from the Docker image or the job definition.

", + "ContainerProperties$command": "

The command that is passed to the container. This parameter maps to Cmd in the Create a container section of the Docker Remote API and the COMMAND parameter to docker run. For more information, see https://docs.docker.com/engine/reference/builder/#cmd.

", + "DescribeComputeEnvironmentsRequest$computeEnvironments": "

A list of up to 100 compute environment names or full Amazon Resource Name (ARN) entries.

", + "DescribeJobDefinitionsRequest$jobDefinitions": "

A space-separated list of up to 100 job definition names or full Amazon Resource Name (ARN) entries.

", + "DescribeJobQueuesRequest$jobQueues": "

A list of up to 100 queue names or full queue Amazon Resource Name (ARN) entries.

", + "DescribeJobsRequest$jobs": "

A space-separated list of up to 100 job IDs.

" + } + }, + "SubmitJobRequest": { + "base": null, + "refs": { + } + }, + "SubmitJobResponse": { + "base": null, + "refs": { + } + }, + "TagsMap": { + "base": null, + "refs": { + "ComputeResource$tags": "

Key-value pair tags to be applied to resources that are launched in the compute environment.

" + } + }, + "TerminateJobRequest": { + "base": null, + "refs": { + } + }, + "TerminateJobResponse": { + "base": null, + "refs": { + } + }, + "Ulimit": { + "base": "

The ulimit settings to pass to the container.

", + "refs": { + "Ulimits$member": null + } + }, + "Ulimits": { + "base": null, + "refs": { + "ContainerDetail$ulimits": "

A list of ulimit values to set in the container.

", + "ContainerProperties$ulimits": "

A list of ulimits to set in the container. This parameter maps to Ulimits in the Create a container section of the Docker Remote API and the --ulimit option to docker run.

" + } + }, + "UpdateComputeEnvironmentRequest": { + "base": null, + "refs": { + } + }, + "UpdateComputeEnvironmentResponse": { + "base": null, + "refs": { + } + }, + "UpdateJobQueueRequest": { + "base": null, + "refs": { + } + }, + "UpdateJobQueueResponse": { + "base": null, + "refs": { + } + }, + "Volume": { + "base": "

A data volume used in a job's container properties.

", + "refs": { + "Volumes$member": null + } + }, + "Volumes": { + "base": null, + "refs": { + "ContainerDetail$volumes": "

A list of volumes associated with the job.

", + "ContainerProperties$volumes": "

A list of data volumes used in a job.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/batch/2016-08-10/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/batch/2016-08-10/examples-1.json new file mode 100644 index 000000000..ddaaf42d1 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/batch/2016-08-10/examples-1.json @@ -0,0 +1,589 @@ +{ + "version": "1.0", + "examples": { + "CancelJob": [ + { + "input": { + "jobId": "1d828f65-7a4d-42e8-996d-3b900ed59dc4", + "reason": "Cancelling job." + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example cancels a job with the specified job ID.", + "id": "to-cancel-a-job-1481152314733", + "title": "To cancel a job" + } + ], + "CreateComputeEnvironment": [ + { + "input": { + "type": "MANAGED", + "computeEnvironmentName": "C4OnDemand", + "computeResources": { + "type": "EC2", + "desiredvCpus": 48, + "ec2KeyPair": "id_rsa", + "instanceRole": "ecsInstanceRole", + "instanceTypes": [ + "c4.large", + "c4.xlarge", + "c4.2xlarge", + "c4.4xlarge", + "c4.8xlarge" + ], + "maxvCpus": 128, + "minvCpus": 0, + "securityGroupIds": [ + "sg-cf5093b2" + ], + "subnets": [ + "subnet-220c0e0a", + "subnet-1a95556d", + "subnet-978f6dce" + ], + "tags": { + "Name": "Batch Instance - C4OnDemand" + } + }, + "serviceRole": "arn:aws:iam::012345678910:role/AWSBatchServiceRole", + "state": "ENABLED" + }, + "output": { + "computeEnvironmentArn": "arn:aws:batch:us-east-1:012345678910:compute-environment/C4OnDemand", + "computeEnvironmentName": "C4OnDemand" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a managed compute environment with specific C4 instance types that are launched on demand. The compute environment is called C4OnDemand.", + "id": "to-create-a-managed-ec2-compute-environment-1481152600017", + "title": "To create a managed EC2 compute environment" + }, + { + "input": { + "type": "MANAGED", + "computeEnvironmentName": "M4Spot", + "computeResources": { + "type": "SPOT", + "bidPercentage": 20, + "desiredvCpus": 4, + "ec2KeyPair": "id_rsa", + "instanceRole": "ecsInstanceRole", + "instanceTypes": [ + "m4" + ], + "maxvCpus": 128, + "minvCpus": 0, + "securityGroupIds": [ + "sg-cf5093b2" + ], + "spotIamFleetRole": "arn:aws:iam::012345678910:role/aws-ec2-spot-fleet-role", + "subnets": [ + "subnet-220c0e0a", + "subnet-1a95556d", + "subnet-978f6dce" + ], + "tags": { + "Name": "Batch Instance - M4Spot" + } + }, + "serviceRole": "arn:aws:iam::012345678910:role/AWSBatchServiceRole", + "state": "ENABLED" + }, + "output": { + "computeEnvironmentArn": "arn:aws:batch:us-east-1:012345678910:compute-environment/M4Spot", + "computeEnvironmentName": "M4Spot" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a managed compute environment with the M4 instance type that is launched when the Spot bid price is at or below 20% of the On-Demand price for the instance type. The compute environment is called M4Spot.", + "id": "to-create-a-managed-ec2-spot-compute-environment-1481152844190", + "title": "To create a managed EC2 Spot compute environment" + } + ], + "CreateJobQueue": [ + { + "input": { + "computeEnvironmentOrder": [ + { + "computeEnvironment": "M4Spot", + "order": 1 + } + ], + "jobQueueName": "LowPriority", + "priority": 10, + "state": "ENABLED" + }, + "output": { + "jobQueueArn": "arn:aws:batch:us-east-1:012345678910:job-queue/LowPriority", + "jobQueueName": "LowPriority" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a job queue called LowPriority that uses the M4Spot compute environment.", + "id": "to-create-a-job-queue-with-a-single-compute-environment-1481152967946", + "title": "To create a job queue with a single compute environment" + }, + { + "input": { + "computeEnvironmentOrder": [ + { + "computeEnvironment": "C4OnDemand", + "order": 1 + }, + { + "computeEnvironment": "M4Spot", + "order": 2 + } + ], + "jobQueueName": "HighPriority", + "priority": 1, + "state": "ENABLED" + }, + "output": { + "jobQueueArn": "arn:aws:batch:us-east-1:012345678910:job-queue/HighPriority", + "jobQueueName": "HighPriority" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a job queue called HighPriority that uses the C4OnDemand compute environment with an order of 1 and the M4Spot compute environment with an order of 2.", + "id": "to-create-a-job-queue-with-multiple-compute-environments-1481153027051", + "title": "To create a job queue with multiple compute environments" + } + ], + "DeleteComputeEnvironment": [ + { + "input": { + "computeEnvironment": "P2OnDemand" + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes the P2OnDemand compute environment.", + "id": "to-delete-a-compute-environment-1481153105644", + "title": "To delete a compute environment" + } + ], + "DeleteJobQueue": [ + { + "input": { + "jobQueue": "GPGPU" + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes the GPGPU job queue.", + "id": "to-delete-a-job-queue-1481153508134", + "title": "To delete a job queue" + } + ], + "DeregisterJobDefinition": [ + { + "input": { + "jobDefinition": "sleep10" + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deregisters a job definition called sleep10.", + "id": "to-deregister-a-job-definition-1481153579565", + "title": "To deregister a job definition" + } + ], + "DescribeComputeEnvironments": [ + { + "input": { + "computeEnvironments": [ + "P2OnDemand" + ] + }, + "output": { + "computeEnvironments": [ + { + "type": "MANAGED", + "computeEnvironmentArn": "arn:aws:batch:us-east-1:012345678910:compute-environment/P2OnDemand", + "computeEnvironmentName": "P2OnDemand", + "computeResources": { + "type": "EC2", + "desiredvCpus": 48, + "ec2KeyPair": "id_rsa", + "instanceRole": "ecsInstanceRole", + "instanceTypes": [ + "p2" + ], + "maxvCpus": 128, + "minvCpus": 0, + "securityGroupIds": [ + "sg-cf5093b2" + ], + "subnets": [ + "subnet-220c0e0a", + "subnet-1a95556d", + "subnet-978f6dce" + ], + "tags": { + "Name": "Batch Instance - P2OnDemand" + } + }, + "ecsClusterArn": "arn:aws:ecs:us-east-1:012345678910:cluster/P2OnDemand_Batch_2c06f29d-d1fe-3a49-879d-42394c86effc", + "serviceRole": "arn:aws:iam::012345678910:role/AWSBatchServiceRole", + "state": "ENABLED", + "status": "VALID", + "statusReason": "ComputeEnvironment Healthy" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the P2OnDemand compute environment.", + "id": "to-describe-a-compute-environment-1481153713334", + "title": "To describe a compute environment" + } + ], + "DescribeJobDefinitions": [ + { + "input": { + "status": "ACTIVE" + }, + "output": { + "jobDefinitions": [ + { + "type": "container", + "containerProperties": { + "command": [ + "sleep", + "60" + ], + "environment": [ + + ], + "image": "busybox", + "memory": 128, + "mountPoints": [ + + ], + "ulimits": [ + + ], + "vcpus": 1, + "volumes": [ + + ] + }, + "jobDefinitionArn": "arn:aws:batch:us-east-1:012345678910:job-definition/sleep60:1", + "jobDefinitionName": "sleep60", + "revision": 1, + "status": "ACTIVE" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes all of your active job definitions.", + "id": "to-describe-active-job-definitions-1481153895831", + "title": "To describe active job definitions" + } + ], + "DescribeJobQueues": [ + { + "input": { + "jobQueues": [ + "HighPriority" + ] + }, + "output": { + "jobQueues": [ + { + "computeEnvironmentOrder": [ + { + "computeEnvironment": "arn:aws:batch:us-east-1:012345678910:compute-environment/C4OnDemand", + "order": 1 + } + ], + "jobQueueArn": "arn:aws:batch:us-east-1:012345678910:job-queue/HighPriority", + "jobQueueName": "HighPriority", + "priority": 1, + "state": "ENABLED", + "status": "VALID", + "statusReason": "JobQueue Healthy" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the HighPriority job queue.", + "id": "to-describe-a-job-queue-1481153995804", + "title": "To describe a job queue" + } + ], + "DescribeJobs": [ + { + "input": { + "jobs": [ + "24fa2d7a-64c4-49d2-8b47-f8da4fbde8e9" + ] + }, + "output": { + "jobs": [ + { + "container": { + "command": [ + "sleep", + "60" + ], + "containerInstanceArn": "arn:aws:ecs:us-east-1:012345678910:container-instance/5406d7cd-58bd-4b8f-9936-48d7c6b1526c", + "environment": [ + + ], + "exitCode": 0, + "image": "busybox", + "memory": 128, + "mountPoints": [ + + ], + "ulimits": [ + + ], + "vcpus": 1, + "volumes": [ + + ] + }, + "createdAt": 1480460782010, + "dependsOn": [ + + ], + "jobDefinition": "sleep60", + "jobId": "24fa2d7a-64c4-49d2-8b47-f8da4fbde8e9", + "jobName": "example", + "jobQueue": "arn:aws:batch:us-east-1:012345678910:job-queue/HighPriority", + "parameters": { + }, + "startedAt": 1480460816500, + "status": "SUCCEEDED", + "stoppedAt": 1480460880699 + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes a job with the specified job ID.", + "id": "to-describe-a-specific-job-1481154090490", + "title": "To describe a specific job" + } + ], + "ListJobs": [ + { + "input": { + "jobQueue": "HighPriority" + }, + "output": { + "jobSummaryList": [ + { + "jobId": "e66ff5fd-a1ff-4640-b1a2-0b0a142f49bb", + "jobName": "example" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example lists the running jobs in the HighPriority job queue.", + "id": "to-list-running-jobs-1481154202164", + "title": "To list running jobs" + }, + { + "input": { + "jobQueue": "HighPriority", + "jobStatus": "SUBMITTED" + }, + "output": { + "jobSummaryList": [ + { + "jobId": "68f0c163-fbd4-44e6-9fd1-25b14a434786", + "jobName": "example" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example lists jobs in the HighPriority job queue that are in the SUBMITTED job status.", + "id": "to-list-submitted-jobs-1481154251623", + "title": "To list submitted jobs" + } + ], + "RegisterJobDefinition": [ + { + "input": { + "type": "container", + "containerProperties": { + "command": [ + "sleep", + "10" + ], + "image": "busybox", + "memory": 128, + "vcpus": 1 + }, + "jobDefinitionName": "sleep10" + }, + "output": { + "jobDefinitionArn": "arn:aws:batch:us-east-1:012345678910:job-definition/sleep10:1", + "jobDefinitionName": "sleep10", + "revision": 1 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example registers a job definition for a simple container job.", + "id": "to-register-a-job-definition-1481154325325", + "title": "To register a job definition" + } + ], + "SubmitJob": [ + { + "input": { + "jobDefinition": "sleep60", + "jobName": "example", + "jobQueue": "HighPriority" + }, + "output": { + "jobId": "876da822-4198-45f2-a252-6cea32512ea8", + "jobName": "example" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example submits a simple container job called example to the HighPriority job queue.", + "id": "to-submit-a-job-to-a-queue-1481154481673", + "title": "To submit a job to a queue" + } + ], + "TerminateJob": [ + { + "input": { + "jobId": "61e743ed-35e4-48da-b2de-5c8333821c84", + "reason": "Terminating job." + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example terminates a job with the specified job ID.", + "id": "to-terminate-a-job-1481154558276", + "title": "To terminate a job" + } + ], + "UpdateComputeEnvironment": [ + { + "input": { + "computeEnvironment": "P2OnDemand", + "state": "DISABLED" + }, + "output": { + "computeEnvironmentArn": "arn:aws:batch:us-east-1:012345678910:compute-environment/P2OnDemand", + "computeEnvironmentName": "P2OnDemand" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example disables the P2OnDemand compute environment so it can be deleted.", + "id": "to-update-a-compute-environment-1481154702731", + "title": "To update a compute environment" + } + ], + "UpdateJobQueue": [ + { + "input": { + "jobQueue": "GPGPU", + "state": "DISABLED" + }, + "output": { + "jobQueueArn": "arn:aws:batch:us-east-1:012345678910:job-queue/GPGPU", + "jobQueueName": "GPGPU" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example disables a job queue so that it can be deleted.", + "id": "to-update-a-job-queue-1481154806981", + "title": "To update a job queue" + } + ] + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/budgets/2016-10-20/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/budgets/2016-10-20/api-2.json new file mode 100755 index 000000000..72ac95c64 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/budgets/2016-10-20/api-2.json @@ -0,0 +1,697 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2016-10-20", + "endpointPrefix":"budgets", + "jsonVersion":"1.1", + "protocol":"json", + "serviceAbbreviation":"AWSBudgets", + "serviceFullName":"AWS Budgets", + "signatureVersion":"v4", + "targetPrefix":"AWSBudgetServiceGateway", + "uid":"budgets-2016-10-20" + }, + "operations":{ + "CreateBudget":{ + "name":"CreateBudget", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateBudgetRequest"}, + "output":{"shape":"CreateBudgetResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"InternalErrorException"}, + {"shape":"CreationLimitExceededException"}, + {"shape":"DuplicateRecordException"} + ] + }, + "CreateNotification":{ + "name":"CreateNotification", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateNotificationRequest"}, + "output":{"shape":"CreateNotificationResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"NotFoundException"}, + {"shape":"CreationLimitExceededException"}, + {"shape":"DuplicateRecordException"} + ] + }, + "CreateSubscriber":{ + "name":"CreateSubscriber", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateSubscriberRequest"}, + "output":{"shape":"CreateSubscriberResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"CreationLimitExceededException"}, + {"shape":"DuplicateRecordException"}, + {"shape":"NotFoundException"} + ] + }, + "DeleteBudget":{ + "name":"DeleteBudget", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteBudgetRequest"}, + "output":{"shape":"DeleteBudgetResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"NotFoundException"} + ] + }, + "DeleteNotification":{ + "name":"DeleteNotification", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteNotificationRequest"}, + "output":{"shape":"DeleteNotificationResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"InternalErrorException"}, + {"shape":"NotFoundException"} + ] + }, + "DeleteSubscriber":{ + "name":"DeleteSubscriber", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteSubscriberRequest"}, + "output":{"shape":"DeleteSubscriberResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"NotFoundException"} + ] + }, + "DescribeBudget":{ + "name":"DescribeBudget", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeBudgetRequest"}, + "output":{"shape":"DescribeBudgetResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"NotFoundException"} + ] + }, + "DescribeBudgets":{ + "name":"DescribeBudgets", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeBudgetsRequest"}, + "output":{"shape":"DescribeBudgetsResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"NotFoundException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"ExpiredNextTokenException"} + ] + }, + "DescribeNotificationsForBudget":{ + "name":"DescribeNotificationsForBudget", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeNotificationsForBudgetRequest"}, + "output":{"shape":"DescribeNotificationsForBudgetResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"NotFoundException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"ExpiredNextTokenException"} + ] + }, + "DescribeSubscribersForNotification":{ + "name":"DescribeSubscribersForNotification", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeSubscribersForNotificationRequest"}, + "output":{"shape":"DescribeSubscribersForNotificationResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"NotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"ExpiredNextTokenException"} + ] + }, + "UpdateBudget":{ + "name":"UpdateBudget", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateBudgetRequest"}, + "output":{"shape":"UpdateBudgetResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"NotFoundException"} + ] + }, + "UpdateNotification":{ + "name":"UpdateNotification", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateNotificationRequest"}, + "output":{"shape":"UpdateNotificationResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"NotFoundException"} + ] + }, + "UpdateSubscriber":{ + "name":"UpdateSubscriber", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateSubscriberRequest"}, + "output":{"shape":"UpdateSubscriberResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"NotFoundException"} + ] + } + }, + "shapes":{ + "AccountId":{ + "type":"string", + "max":12, + "min":12 + }, + "Budget":{ + "type":"structure", + "required":[ + "BudgetName", + "BudgetLimit", + "CostTypes", + "TimeUnit", + "TimePeriod", + "BudgetType" + ], + "members":{ + "BudgetName":{"shape":"BudgetName"}, + "BudgetLimit":{"shape":"Spend"}, + "CostFilters":{"shape":"CostFilters"}, + "CostTypes":{"shape":"CostTypes"}, + "TimeUnit":{"shape":"TimeUnit"}, + "TimePeriod":{"shape":"TimePeriod"}, + "CalculatedSpend":{"shape":"CalculatedSpend"}, + "BudgetType":{"shape":"BudgetType"} + } + }, + "BudgetName":{ + "type":"string", + "max":100, + "pattern":"[^:]+" + }, + "BudgetType":{ + "type":"string", + "enum":[ + "USAGE", + "COST" + ] + }, + "Budgets":{ + "type":"list", + "member":{"shape":"Budget"} + }, + "CalculatedSpend":{ + "type":"structure", + "required":["ActualSpend"], + "members":{ + "ActualSpend":{"shape":"Spend"}, + "ForecastedSpend":{"shape":"Spend"} + } + }, + "ComparisonOperator":{ + "type":"string", + "enum":[ + "GREATER_THAN", + "LESS_THAN", + "EQUAL_TO" + ] + }, + "CostFilters":{ + "type":"map", + "key":{"shape":"GenericString"}, + "value":{"shape":"DimensionValues"} + }, + "CostTypes":{ + "type":"structure", + "required":[ + "IncludeTax", + "IncludeSubscription", + "UseBlended" + ], + "members":{ + "IncludeTax":{"shape":"GenericBoolean"}, + "IncludeSubscription":{"shape":"GenericBoolean"}, + "UseBlended":{"shape":"GenericBoolean"} + } + }, + "CreateBudgetRequest":{ + "type":"structure", + "required":[ + "AccountId", + "Budget" + ], + "members":{ + "AccountId":{"shape":"AccountId"}, + "Budget":{"shape":"Budget"}, + "NotificationsWithSubscribers":{"shape":"NotificationWithSubscribersList"} + } + }, + "CreateBudgetResponse":{ + "type":"structure", + "members":{ + } + }, + "CreateNotificationRequest":{ + "type":"structure", + "required":[ + "AccountId", + "BudgetName", + "Notification", + "Subscribers" + ], + "members":{ + "AccountId":{"shape":"AccountId"}, + "BudgetName":{"shape":"BudgetName"}, + "Notification":{"shape":"Notification"}, + "Subscribers":{"shape":"Subscribers"} + } + }, + "CreateNotificationResponse":{ + "type":"structure", + "members":{ + } + }, + "CreateSubscriberRequest":{ + "type":"structure", + "required":[ + "AccountId", + "BudgetName", + "Notification", + "Subscriber" + ], + "members":{ + "AccountId":{"shape":"AccountId"}, + "BudgetName":{"shape":"BudgetName"}, + "Notification":{"shape":"Notification"}, + "Subscriber":{"shape":"Subscriber"} + } + }, + "CreateSubscriberResponse":{ + "type":"structure", + "members":{ + } + }, + "CreationLimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"errorMessage"} + }, + "exception":true + }, + "DeleteBudgetRequest":{ + "type":"structure", + "required":[ + "AccountId", + "BudgetName" + ], + "members":{ + "AccountId":{"shape":"AccountId"}, + "BudgetName":{"shape":"BudgetName"} + } + }, + "DeleteBudgetResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteNotificationRequest":{ + "type":"structure", + "required":[ + "AccountId", + "BudgetName", + "Notification" + ], + "members":{ + "AccountId":{"shape":"AccountId"}, + "BudgetName":{"shape":"BudgetName"}, + "Notification":{"shape":"Notification"} + } + }, + "DeleteNotificationResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteSubscriberRequest":{ + "type":"structure", + "required":[ + "AccountId", + "BudgetName", + "Notification", + "Subscriber" + ], + "members":{ + "AccountId":{"shape":"AccountId"}, + "BudgetName":{"shape":"BudgetName"}, + "Notification":{"shape":"Notification"}, + "Subscriber":{"shape":"Subscriber"} + } + }, + "DeleteSubscriberResponse":{ + "type":"structure", + "members":{ + } + }, + "DescribeBudgetRequest":{ + "type":"structure", + "required":[ + "AccountId", + "BudgetName" + ], + "members":{ + "AccountId":{"shape":"AccountId"}, + "BudgetName":{"shape":"BudgetName"} + } + }, + "DescribeBudgetResponse":{ + "type":"structure", + "members":{ + "Budget":{"shape":"Budget"} + } + }, + "DescribeBudgetsRequest":{ + "type":"structure", + "required":["AccountId"], + "members":{ + "AccountId":{"shape":"AccountId"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"GenericString"} + } + }, + "DescribeBudgetsResponse":{ + "type":"structure", + "members":{ + "Budgets":{"shape":"Budgets"}, + "NextToken":{"shape":"GenericString"} + } + }, + "DescribeNotificationsForBudgetRequest":{ + "type":"structure", + "required":[ + "AccountId", + "BudgetName" + ], + "members":{ + "AccountId":{"shape":"AccountId"}, + "BudgetName":{"shape":"BudgetName"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"GenericString"} + } + }, + "DescribeNotificationsForBudgetResponse":{ + "type":"structure", + "members":{ + "Notifications":{"shape":"Notifications"}, + "NextToken":{"shape":"GenericString"} + } + }, + "DescribeSubscribersForNotificationRequest":{ + "type":"structure", + "required":[ + "AccountId", + "BudgetName", + "Notification" + ], + "members":{ + "AccountId":{"shape":"AccountId"}, + "BudgetName":{"shape":"BudgetName"}, + "Notification":{"shape":"Notification"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"GenericString"} + } + }, + "DescribeSubscribersForNotificationResponse":{ + "type":"structure", + "members":{ + "Subscribers":{"shape":"Subscribers"}, + "NextToken":{"shape":"GenericString"} + } + }, + "DimensionValues":{ + "type":"list", + "member":{"shape":"GenericString"} + }, + "DuplicateRecordException":{ + "type":"structure", + "members":{ + "Message":{"shape":"errorMessage"} + }, + "exception":true + }, + "ExpiredNextTokenException":{ + "type":"structure", + "members":{ + "Message":{"shape":"errorMessage"} + }, + "exception":true + }, + "GenericBoolean":{"type":"boolean"}, + "GenericString":{"type":"string"}, + "GenericTimestamp":{"type":"timestamp"}, + "InternalErrorException":{ + "type":"structure", + "members":{ + "Message":{"shape":"errorMessage"} + }, + "exception":true + }, + "InvalidNextTokenException":{ + "type":"structure", + "members":{ + "Message":{"shape":"errorMessage"} + }, + "exception":true + }, + "InvalidParameterException":{ + "type":"structure", + "members":{ + "Message":{"shape":"errorMessage"} + }, + "exception":true + }, + "MaxResults":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, + "NotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"errorMessage"} + }, + "exception":true + }, + "Notification":{ + "type":"structure", + "required":[ + "NotificationType", + "ComparisonOperator", + "Threshold" + ], + "members":{ + "NotificationType":{"shape":"NotificationType"}, + "ComparisonOperator":{"shape":"ComparisonOperator"}, + "Threshold":{"shape":"NotificationThreshold"} + } + }, + "NotificationThreshold":{ + "type":"double", + "max":300, + "min":0.1 + }, + "NotificationType":{ + "type":"string", + "enum":[ + "ACTUAL", + "FORECASTED" + ] + }, + "NotificationWithSubscribers":{ + "type":"structure", + "required":[ + "Notification", + "Subscribers" + ], + "members":{ + "Notification":{"shape":"Notification"}, + "Subscribers":{"shape":"Subscribers"} + } + }, + "NotificationWithSubscribersList":{ + "type":"list", + "member":{"shape":"NotificationWithSubscribers"}, + "max":5 + }, + "Notifications":{ + "type":"list", + "member":{"shape":"Notification"} + }, + "NumericValue":{ + "type":"string", + "pattern":"[0-9]*(\\.)?[0-9]+" + }, + "Spend":{ + "type":"structure", + "required":[ + "Amount", + "Unit" + ], + "members":{ + "Amount":{"shape":"NumericValue"}, + "Unit":{"shape":"GenericString"} + } + }, + "Subscriber":{ + "type":"structure", + "required":[ + "SubscriptionType", + "Address" + ], + "members":{ + "SubscriptionType":{"shape":"SubscriptionType"}, + "Address":{"shape":"GenericString"} + } + }, + "Subscribers":{ + "type":"list", + "member":{"shape":"Subscriber"}, + "max":11, + "min":1 + }, + "SubscriptionType":{ + "type":"string", + "enum":[ + "SNS", + "EMAIL" + ] + }, + "TimePeriod":{ + "type":"structure", + "required":[ + "Start", + "End" + ], + "members":{ + "Start":{"shape":"GenericTimestamp"}, + "End":{"shape":"GenericTimestamp"} + } + }, + "TimeUnit":{ + "type":"string", + "enum":[ + "MONTHLY", + "QUARTERLY", + "ANNUALLY" + ] + }, + "UpdateBudgetRequest":{ + "type":"structure", + "required":[ + "AccountId", + "NewBudget" + ], + "members":{ + "AccountId":{"shape":"AccountId"}, + "NewBudget":{"shape":"Budget"} + } + }, + "UpdateBudgetResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateNotificationRequest":{ + "type":"structure", + "required":[ + "AccountId", + "BudgetName", + "OldNotification", + "NewNotification" + ], + "members":{ + "AccountId":{"shape":"AccountId"}, + "BudgetName":{"shape":"BudgetName"}, + "OldNotification":{"shape":"Notification"}, + "NewNotification":{"shape":"Notification"} + } + }, + "UpdateNotificationResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateSubscriberRequest":{ + "type":"structure", + "required":[ + "AccountId", + "BudgetName", + "Notification", + "OldSubscriber", + "NewSubscriber" + ], + "members":{ + "AccountId":{"shape":"AccountId"}, + "BudgetName":{"shape":"BudgetName"}, + "Notification":{"shape":"Notification"}, + "OldSubscriber":{"shape":"Subscriber"}, + "NewSubscriber":{"shape":"Subscriber"} + } + }, + "UpdateSubscriberResponse":{ + "type":"structure", + "members":{ + } + }, + "errorMessage":{"type":"string"} + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/budgets/2016-10-20/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/budgets/2016-10-20/docs-2.json new file mode 100755 index 000000000..4babb56f9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/budgets/2016-10-20/docs-2.json @@ -0,0 +1,416 @@ +{ + "version": "2.0", + "service": "All public APIs for AWS Budgets", + "operations": { + "CreateBudget": "Create a new budget", + "CreateNotification": "Create a new Notification with subscribers for a budget", + "CreateSubscriber": "Create a new Subscriber for a notification", + "DeleteBudget": "Delete a budget and related notifications", + "DeleteNotification": "Delete a notification and related subscribers", + "DeleteSubscriber": "Delete a Subscriber for a notification", + "DescribeBudget": "Get a single budget", + "DescribeBudgets": "Get all budgets for an account", + "DescribeNotificationsForBudget": "Get notifications of a budget", + "DescribeSubscribersForNotification": "Get subscribers of a notification", + "UpdateBudget": "Update the information of a budget already created", + "UpdateNotification": "Update the information about a notification already created", + "UpdateSubscriber": "Update a subscriber" + }, + "shapes": { + "AccountId": { + "base": "Account Id of the customer. It should be a 12 digit number.", + "refs": { + "CreateBudgetRequest$AccountId": null, + "CreateNotificationRequest$AccountId": null, + "CreateSubscriberRequest$AccountId": null, + "DeleteBudgetRequest$AccountId": null, + "DeleteNotificationRequest$AccountId": null, + "DeleteSubscriberRequest$AccountId": null, + "DescribeBudgetRequest$AccountId": null, + "DescribeBudgetsRequest$AccountId": null, + "DescribeNotificationsForBudgetRequest$AccountId": null, + "DescribeSubscribersForNotificationRequest$AccountId": null, + "UpdateBudgetRequest$AccountId": null, + "UpdateNotificationRequest$AccountId": null, + "UpdateSubscriberRequest$AccountId": null + } + }, + "Budget": { + "base": "AWS Budget model", + "refs": { + "Budgets$member": null, + "CreateBudgetRequest$Budget": null, + "DescribeBudgetResponse$Budget": null, + "UpdateBudgetRequest$NewBudget": null + } + }, + "BudgetName": { + "base": "A string represents the budget name. No \":\" character is allowed.", + "refs": { + "Budget$BudgetName": null, + "CreateNotificationRequest$BudgetName": null, + "CreateSubscriberRequest$BudgetName": null, + "DeleteBudgetRequest$BudgetName": null, + "DeleteNotificationRequest$BudgetName": null, + "DeleteSubscriberRequest$BudgetName": null, + "DescribeBudgetRequest$BudgetName": null, + "DescribeNotificationsForBudgetRequest$BudgetName": null, + "DescribeSubscribersForNotificationRequest$BudgetName": null, + "UpdateNotificationRequest$BudgetName": null, + "UpdateSubscriberRequest$BudgetName": null + } + }, + "BudgetType": { + "base": "The type of a budget. Can be COST or USAGE.", + "refs": { + "Budget$BudgetType": null + } + }, + "Budgets": { + "base": "A list of budgets", + "refs": { + "DescribeBudgetsResponse$Budgets": null + } + }, + "CalculatedSpend": { + "base": "A structure holds the actual and forecasted spend for a budget.", + "refs": { + "Budget$CalculatedSpend": null + } + }, + "ComparisonOperator": { + "base": "The comparison operator of a notification. Currently we support less than, equal to and greater than.", + "refs": { + "Notification$ComparisonOperator": null + } + }, + "CostFilters": { + "base": "A map represents the cost filters applied to the budget.", + "refs": { + "Budget$CostFilters": null + } + }, + "CostTypes": { + "base": "This includes the options for getting the cost of a budget.", + "refs": { + "Budget$CostTypes": null + } + }, + "CreateBudgetRequest": { + "base": "Request of CreateBudget", + "refs": { + } + }, + "CreateBudgetResponse": { + "base": "Response of CreateBudget", + "refs": { + } + }, + "CreateNotificationRequest": { + "base": "Request of CreateNotification", + "refs": { + } + }, + "CreateNotificationResponse": { + "base": "Response of CreateNotification", + "refs": { + } + }, + "CreateSubscriberRequest": { + "base": "Request of CreateSubscriber", + "refs": { + } + }, + "CreateSubscriberResponse": { + "base": "Response of CreateSubscriber", + "refs": { + } + }, + "CreationLimitExceededException": { + "base": "The exception is thrown when customer tries to create a record (e.g. budget), but the number this record already exceeds the limitation.", + "refs": { + } + }, + "DeleteBudgetRequest": { + "base": "Request of DeleteBudget", + "refs": { + } + }, + "DeleteBudgetResponse": { + "base": "Response of DeleteBudget", + "refs": { + } + }, + "DeleteNotificationRequest": { + "base": "Request of DeleteNotification", + "refs": { + } + }, + "DeleteNotificationResponse": { + "base": "Response of DeleteNotification", + "refs": { + } + }, + "DeleteSubscriberRequest": { + "base": "Request of DeleteSubscriber", + "refs": { + } + }, + "DeleteSubscriberResponse": { + "base": "Response of DeleteSubscriber", + "refs": { + } + }, + "DescribeBudgetRequest": { + "base": "Request of DescribeBudget", + "refs": { + } + }, + "DescribeBudgetResponse": { + "base": "Response of DescribeBudget", + "refs": { + } + }, + "DescribeBudgetsRequest": { + "base": "Request of DescribeBudgets", + "refs": { + } + }, + "DescribeBudgetsResponse": { + "base": "Response of DescribeBudgets", + "refs": { + } + }, + "DescribeNotificationsForBudgetRequest": { + "base": "Request of DescribeNotificationsForBudget", + "refs": { + } + }, + "DescribeNotificationsForBudgetResponse": { + "base": "Response of GetNotificationsForBudget", + "refs": { + } + }, + "DescribeSubscribersForNotificationRequest": { + "base": "Request of DescribeSubscribersForNotification", + "refs": { + } + }, + "DescribeSubscribersForNotificationResponse": { + "base": "Response of DescribeSubscribersForNotification", + "refs": { + } + }, + "DimensionValues": { + "base": null, + "refs": { + "CostFilters$value": null + } + }, + "DuplicateRecordException": { + "base": "The exception is thrown when customer tries to create a record (e.g. budget) that already exists.", + "refs": { + } + }, + "ExpiredNextTokenException": { + "base": "This exception is thrown if the paging token is expired - past its TTL", + "refs": { + } + }, + "GenericBoolean": { + "base": "A generic boolean value.", + "refs": { + "CostTypes$IncludeTax": null, + "CostTypes$IncludeSubscription": null, + "CostTypes$UseBlended": null + } + }, + "GenericString": { + "base": "A generic String.", + "refs": { + "CostFilters$key": null, + "DescribeBudgetsRequest$NextToken": null, + "DescribeBudgetsResponse$NextToken": null, + "DescribeNotificationsForBudgetRequest$NextToken": null, + "DescribeNotificationsForBudgetResponse$NextToken": null, + "DescribeSubscribersForNotificationRequest$NextToken": null, + "DescribeSubscribersForNotificationResponse$NextToken": null, + "DimensionValues$member": null, + "Spend$Unit": null, + "Subscriber$Address": null + } + }, + "GenericTimestamp": { + "base": "A generic timestamp. In Java it is transformed to a Date object.", + "refs": { + "TimePeriod$Start": null, + "TimePeriod$End": null + } + }, + "InternalErrorException": { + "base": "This exception is thrown on an unknown internal failure.", + "refs": { + } + }, + "InvalidNextTokenException": { + "base": "This exception is thrown if paging token signature didn't match the token, or the paging token isn't for this request", + "refs": { + } + }, + "InvalidParameterException": { + "base": "This exception is thrown if any request is given an invalid parameter. E.g., if a required Date field is null.", + "refs": { + } + }, + "MaxResults": { + "base": "An integer to represent how many entries should a pagianted response contains. Maxium is set to 100.", + "refs": { + "DescribeBudgetsRequest$MaxResults": null, + "DescribeNotificationsForBudgetRequest$MaxResults": null, + "DescribeSubscribersForNotificationRequest$MaxResults": null + } + }, + "NotFoundException": { + "base": "This exception is thrown if a requested entity is not found. E.g., if a budget id doesn't exist for an account ID.", + "refs": { + } + }, + "Notification": { + "base": "Notification model. Each budget may contain multiple notifications with different settings.", + "refs": { + "CreateNotificationRequest$Notification": null, + "CreateSubscriberRequest$Notification": null, + "DeleteNotificationRequest$Notification": null, + "DeleteSubscriberRequest$Notification": null, + "DescribeSubscribersForNotificationRequest$Notification": null, + "NotificationWithSubscribers$Notification": null, + "Notifications$member": null, + "UpdateNotificationRequest$OldNotification": null, + "UpdateNotificationRequest$NewNotification": null, + "UpdateSubscriberRequest$Notification": null + } + }, + "NotificationThreshold": { + "base": "The threshold of the a notification. It should be a number between 0 and 100.", + "refs": { + "Notification$Threshold": null + } + }, + "NotificationType": { + "base": "The type of a notification. It should be ACTUAL or FORECASTED.", + "refs": { + "Notification$NotificationType": null + } + }, + "NotificationWithSubscribers": { + "base": "A structure to relate notification and a list of subscribers who belong to the notification.", + "refs": { + "NotificationWithSubscribersList$member": null + } + }, + "NotificationWithSubscribersList": { + "base": "A list of Notifications, each with a list of subscribers.", + "refs": { + "CreateBudgetRequest$NotificationsWithSubscribers": null + } + }, + "Notifications": { + "base": "A list of notifications.", + "refs": { + "DescribeNotificationsForBudgetResponse$Notifications": null + } + }, + "NumericValue": { + "base": "A string to represent NumericValue.", + "refs": { + "Spend$Amount": null + } + }, + "Spend": { + "base": "A structure represent either a cost spend or usage spend. Contains an amount and a unit.", + "refs": { + "Budget$BudgetLimit": null, + "CalculatedSpend$ActualSpend": null, + "CalculatedSpend$ForecastedSpend": null + } + }, + "Subscriber": { + "base": "Subscriber model. Each notification may contain multiple subscribers with different addresses.", + "refs": { + "CreateSubscriberRequest$Subscriber": null, + "DeleteSubscriberRequest$Subscriber": null, + "Subscribers$member": null, + "UpdateSubscriberRequest$OldSubscriber": null, + "UpdateSubscriberRequest$NewSubscriber": null + } + }, + "Subscribers": { + "base": "A list of subscribers.", + "refs": { + "CreateNotificationRequest$Subscribers": null, + "DescribeSubscribersForNotificationResponse$Subscribers": null, + "NotificationWithSubscribers$Subscribers": null + } + }, + "SubscriptionType": { + "base": "The subscription type of the subscriber. It can be SMS or EMAIL.", + "refs": { + "Subscriber$SubscriptionType": null + } + }, + "TimePeriod": { + "base": "A time period indicated the start date and end date of a budget.", + "refs": { + "Budget$TimePeriod": null + } + }, + "TimeUnit": { + "base": "The time unit of the budget. e.g. weekly, monthly, etc.", + "refs": { + "Budget$TimeUnit": null + } + }, + "UpdateBudgetRequest": { + "base": "Request of UpdateBudget", + "refs": { + } + }, + "UpdateBudgetResponse": { + "base": "Response of UpdateBudget", + "refs": { + } + }, + "UpdateNotificationRequest": { + "base": "Request of UpdateNotification", + "refs": { + } + }, + "UpdateNotificationResponse": { + "base": "Response of UpdateNotification", + "refs": { + } + }, + "UpdateSubscriberRequest": { + "base": "Request of UpdateSubscriber", + "refs": { + } + }, + "UpdateSubscriberResponse": { + "base": "Response of UpdateSubscriber", + "refs": { + } + }, + "errorMessage": { + "base": "The error message the exception carries.", + "refs": { + "CreationLimitExceededException$Message": null, + "DuplicateRecordException$Message": null, + "ExpiredNextTokenException$Message": null, + "InternalErrorException$Message": null, + "InvalidNextTokenException$Message": null, + "InvalidParameterException$Message": null, + "NotFoundException$Message": null + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/budgets/2016-10-20/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/budgets/2016-10-20/examples-1.json new file mode 100755 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/budgets/2016-10-20/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/budgets/2016-10-20/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/budgets/2016-10-20/paginators-1.json new file mode 100644 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/budgets/2016-10-20/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2016-05-10/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2016-05-10/api-2.json new file mode 100644 index 000000000..caa7383be --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2016-05-10/api-2.json @@ -0,0 +1,3033 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2016-05-10", + "endpointPrefix":"clouddirectory", + "protocol":"rest-json", + "serviceFullName":"Amazon CloudDirectory", + "signatureVersion":"v4", + "signingName":"clouddirectory", + "uid":"clouddirectory-2016-05-10" + }, + "operations":{ + "AddFacetToObject":{ + "name":"AddFacetToObject", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/object/facets", + "responseCode":200 + }, + "input":{"shape":"AddFacetToObjectRequest"}, + "output":{"shape":"AddFacetToObjectResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"FacetValidationException"} + ] + }, + "ApplySchema":{ + "name":"ApplySchema", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/schema/apply", + "responseCode":200 + }, + "input":{"shape":"ApplySchemaRequest"}, + "output":{"shape":"ApplySchemaResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidAttachmentException"} + ] + }, + "AttachObject":{ + "name":"AttachObject", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/object/attach", + "responseCode":200 + }, + "input":{"shape":"AttachObjectRequest"}, + "output":{"shape":"AttachObjectResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"LinkNameAlreadyInUseException"}, + {"shape":"InvalidAttachmentException"}, + {"shape":"ValidationException"} + ] + }, + "AttachPolicy":{ + "name":"AttachPolicy", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/policy/attach", + "responseCode":200 + }, + "input":{"shape":"AttachPolicyRequest"}, + "output":{"shape":"AttachPolicyResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"InvalidArnException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"NotPolicyException"} + ] + }, + "AttachToIndex":{ + "name":"AttachToIndex", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/index/attach", + "responseCode":200 + }, + "input":{"shape":"AttachToIndexRequest"}, + "output":{"shape":"AttachToIndexResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"LinkNameAlreadyInUseException"}, + {"shape":"IndexedAttributeMissingException"}, + {"shape":"NotIndexException"} + ] + }, + "BatchRead":{ + "name":"BatchRead", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/batchread", + "responseCode":200 + }, + "input":{"shape":"BatchReadRequest"}, + "output":{"shape":"BatchReadResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"} + ] + }, + "BatchWrite":{ + "name":"BatchWrite", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/batchwrite", + "responseCode":200 + }, + "input":{"shape":"BatchWriteRequest"}, + "output":{"shape":"BatchWriteResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"BatchWriteException"} + ] + }, + "CreateDirectory":{ + "name":"CreateDirectory", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/directory/create", + "responseCode":200 + }, + "input":{"shape":"CreateDirectoryRequest"}, + "output":{"shape":"CreateDirectoryResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryAlreadyExistsException"}, + {"shape":"InvalidArnException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "CreateFacet":{ + "name":"CreateFacet", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/facet/create", + "responseCode":200 + }, + "input":{"shape":"CreateFacetRequest"}, + "output":{"shape":"CreateFacetResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"FacetAlreadyExistsException"}, + {"shape":"InvalidRuleException"} + ] + }, + "CreateIndex":{ + "name":"CreateIndex", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/index", + "responseCode":200 + }, + "input":{"shape":"CreateIndexRequest"}, + "output":{"shape":"CreateIndexResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"FacetValidationException"}, + {"shape":"LinkNameAlreadyInUseException"}, + {"shape":"UnsupportedIndexTypeException"} + ] + }, + "CreateObject":{ + "name":"CreateObject", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/object", + "responseCode":200 + }, + "input":{"shape":"CreateObjectRequest"}, + "output":{"shape":"CreateObjectResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"InvalidArnException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"FacetValidationException"}, + {"shape":"LinkNameAlreadyInUseException"}, + {"shape":"UnsupportedIndexTypeException"} + ] + }, + "CreateSchema":{ + "name":"CreateSchema", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/schema/create", + "responseCode":200 + }, + "input":{"shape":"CreateSchemaRequest"}, + "output":{"shape":"CreateSchemaResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"SchemaAlreadyExistsException"}, + {"shape":"AccessDeniedException"} + ] + }, + "DeleteDirectory":{ + "name":"DeleteDirectory", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/directory", + "responseCode":200 + }, + "input":{"shape":"DeleteDirectoryRequest"}, + "output":{"shape":"DeleteDirectoryResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"DirectoryNotDisabledException"}, + {"shape":"InternalServiceException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryDeletedException"}, + {"shape":"RetryableConflictException"} + ] + }, + "DeleteFacet":{ + "name":"DeleteFacet", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/facet/delete", + "responseCode":200 + }, + "input":{"shape":"DeleteFacetRequest"}, + "output":{"shape":"DeleteFacetResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"FacetNotFoundException"}, + {"shape":"FacetInUseException"} + ] + }, + "DeleteObject":{ + "name":"DeleteObject", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/object/delete", + "responseCode":200 + }, + "input":{"shape":"DeleteObjectRequest"}, + "output":{"shape":"DeleteObjectResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ObjectNotDetachedException"} + ] + }, + "DeleteSchema":{ + "name":"DeleteSchema", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/schema", + "responseCode":200 + }, + "input":{"shape":"DeleteSchemaRequest"}, + "output":{"shape":"DeleteSchemaResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"StillContainsLinksException"} + ] + }, + "DetachFromIndex":{ + "name":"DetachFromIndex", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/index/detach", + "responseCode":200 + }, + "input":{"shape":"DetachFromIndexRequest"}, + "output":{"shape":"DetachFromIndexResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ObjectAlreadyDetachedException"}, + {"shape":"NotIndexException"} + ] + }, + "DetachObject":{ + "name":"DetachObject", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/object/detach", + "responseCode":200 + }, + "input":{"shape":"DetachObjectRequest"}, + "output":{"shape":"DetachObjectResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DetachPolicy":{ + "name":"DetachPolicy", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/policy/detach", + "responseCode":200 + }, + "input":{"shape":"DetachPolicyRequest"}, + "output":{"shape":"DetachPolicyResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"InvalidArnException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"NotPolicyException"} + ] + }, + "DisableDirectory":{ + "name":"DisableDirectory", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/directory/disable", + "responseCode":200 + }, + "input":{"shape":"DisableDirectoryRequest"}, + "output":{"shape":"DisableDirectoryResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"DirectoryDeletedException"}, + {"shape":"InternalServiceException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RetryableConflictException"} + ] + }, + "EnableDirectory":{ + "name":"EnableDirectory", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/directory/enable", + "responseCode":200 + }, + "input":{"shape":"EnableDirectoryRequest"}, + "output":{"shape":"EnableDirectoryResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"DirectoryDeletedException"}, + {"shape":"InternalServiceException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RetryableConflictException"} + ] + }, + "GetDirectory":{ + "name":"GetDirectory", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/directory/get", + "responseCode":200 + }, + "input":{"shape":"GetDirectoryRequest"}, + "output":{"shape":"GetDirectoryResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"} + ] + }, + "GetFacet":{ + "name":"GetFacet", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/facet", + "responseCode":200 + }, + "input":{"shape":"GetFacetRequest"}, + "output":{"shape":"GetFacetResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"FacetNotFoundException"} + ] + }, + "GetObjectInformation":{ + "name":"GetObjectInformation", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/object/information", + "responseCode":200 + }, + "input":{"shape":"GetObjectInformationRequest"}, + "output":{"shape":"GetObjectInformationResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "GetSchemaAsJson":{ + "name":"GetSchemaAsJson", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/schema/json", + "responseCode":200 + }, + "input":{"shape":"GetSchemaAsJsonRequest"}, + "output":{"shape":"GetSchemaAsJsonResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "ListAppliedSchemaArns":{ + "name":"ListAppliedSchemaArns", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/schema/applied", + "responseCode":200 + }, + "input":{"shape":"ListAppliedSchemaArnsRequest"}, + "output":{"shape":"ListAppliedSchemaArnsResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidNextTokenException"} + ] + }, + "ListAttachedIndices":{ + "name":"ListAttachedIndices", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/object/indices", + "responseCode":200 + }, + "input":{"shape":"ListAttachedIndicesRequest"}, + "output":{"shape":"ListAttachedIndicesResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ListDevelopmentSchemaArns":{ + "name":"ListDevelopmentSchemaArns", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/schema/development", + "responseCode":200 + }, + "input":{"shape":"ListDevelopmentSchemaArnsRequest"}, + "output":{"shape":"ListDevelopmentSchemaArnsResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidNextTokenException"} + ] + }, + "ListDirectories":{ + "name":"ListDirectories", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/directory/list", + "responseCode":200 + }, + "input":{"shape":"ListDirectoriesRequest"}, + "output":{"shape":"ListDirectoriesResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InvalidNextTokenException"} + ] + }, + "ListFacetAttributes":{ + "name":"ListFacetAttributes", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/facet/attributes", + "responseCode":200 + }, + "input":{"shape":"ListFacetAttributesRequest"}, + "output":{"shape":"ListFacetAttributesResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"FacetNotFoundException"}, + {"shape":"InvalidNextTokenException"} + ] + }, + "ListFacetNames":{ + "name":"ListFacetNames", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/facet/list", + "responseCode":200 + }, + "input":{"shape":"ListFacetNamesRequest"}, + "output":{"shape":"ListFacetNamesResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidNextTokenException"} + ] + }, + "ListIndex":{ + "name":"ListIndex", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/index/targets", + "responseCode":200 + }, + "input":{"shape":"ListIndexRequest"}, + "output":{"shape":"ListIndexResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"NotIndexException"} + ] + }, + "ListObjectAttributes":{ + "name":"ListObjectAttributes", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/object/attributes", + "responseCode":200 + }, + "input":{"shape":"ListObjectAttributesRequest"}, + "output":{"shape":"ListObjectAttributesResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"InvalidArnException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidNextTokenException"} + ] + }, + "ListObjectChildren":{ + "name":"ListObjectChildren", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/object/children", + "responseCode":200 + }, + "input":{"shape":"ListObjectChildrenRequest"}, + "output":{"shape":"ListObjectChildrenResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"InvalidArnException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"NotNodeException"} + ] + }, + "ListObjectParentPaths":{ + "name":"ListObjectParentPaths", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/object/parentpaths", + "responseCode":200 + }, + "input":{"shape":"ListObjectParentPathsRequest"}, + "output":{"shape":"ListObjectParentPathsResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ListObjectParents":{ + "name":"ListObjectParents", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/object/parent", + "responseCode":200 + }, + "input":{"shape":"ListObjectParentsRequest"}, + "output":{"shape":"ListObjectParentsResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"InvalidArnException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"CannotListParentOfRootException"} + ] + }, + "ListObjectPolicies":{ + "name":"ListObjectPolicies", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/object/policy", + "responseCode":200 + }, + "input":{"shape":"ListObjectPoliciesRequest"}, + "output":{"shape":"ListObjectPoliciesResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidNextTokenException"} + ] + }, + "ListPolicyAttachments":{ + "name":"ListPolicyAttachments", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/policy/attachment", + "responseCode":200 + }, + "input":{"shape":"ListPolicyAttachmentsRequest"}, + "output":{"shape":"ListPolicyAttachmentsResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"InvalidArnException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"NotPolicyException"} + ] + }, + "ListPublishedSchemaArns":{ + "name":"ListPublishedSchemaArns", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/schema/published", + "responseCode":200 + }, + "input":{"shape":"ListPublishedSchemaArnsRequest"}, + "output":{"shape":"ListPublishedSchemaArnsResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidNextTokenException"} + ] + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/tags", + "responseCode":200 + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidTaggingRequestException"} + ] + }, + "LookupPolicy":{ + "name":"LookupPolicy", + "http":{ + "method":"POST", + "requestUri":"/amazonclouddirectory/2017-01-11/policy/lookup", + "responseCode":200 + }, + "input":{"shape":"LookupPolicyRequest"}, + "output":{"shape":"LookupPolicyResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"InvalidArnException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "PublishSchema":{ + "name":"PublishSchema", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/schema/publish", + "responseCode":200 + }, + "input":{"shape":"PublishSchemaRequest"}, + "output":{"shape":"PublishSchemaResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"SchemaAlreadyPublishedException"} + ] + }, + "PutSchemaFromJson":{ + "name":"PutSchemaFromJson", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/schema/json", + "responseCode":200 + }, + "input":{"shape":"PutSchemaFromJsonRequest"}, + "output":{"shape":"PutSchemaFromJsonResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InvalidSchemaDocException"}, + {"shape":"InvalidRuleException"} + ] + }, + "RemoveFacetFromObject":{ + "name":"RemoveFacetFromObject", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/object/facets/delete", + "responseCode":200 + }, + "input":{"shape":"RemoveFacetFromObjectRequest"}, + "output":{"shape":"RemoveFacetFromObjectResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"FacetValidationException"} + ] + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/tags/add", + "responseCode":200 + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidTaggingRequestException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/tags/remove", + "responseCode":200 + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidTaggingRequestException"} + ] + }, + "UpdateFacet":{ + "name":"UpdateFacet", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/facet", + "responseCode":200 + }, + "input":{"shape":"UpdateFacetRequest"}, + "output":{"shape":"UpdateFacetResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InvalidFacetUpdateException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"FacetNotFoundException"}, + {"shape":"InvalidRuleException"} + ] + }, + "UpdateObjectAttributes":{ + "name":"UpdateObjectAttributes", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/object/update", + "responseCode":200 + }, + "input":{"shape":"UpdateObjectAttributesRequest"}, + "output":{"shape":"UpdateObjectAttributesResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"DirectoryNotEnabledException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"FacetValidationException"} + ] + }, + "UpdateSchema":{ + "name":"UpdateSchema", + "http":{ + "method":"PUT", + "requestUri":"/amazonclouddirectory/2017-01-11/schema/update", + "responseCode":200 + }, + "input":{"shape":"UpdateSchemaRequest"}, + "output":{"shape":"UpdateSchemaResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidArnException"}, + {"shape":"RetryableConflictException"}, + {"shape":"ValidationException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"} + ] + } + }, + "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":403}, + "exception":true + }, + "AddFacetToObjectRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "SchemaFacet", + "ObjectReference" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "SchemaFacet":{"shape":"SchemaFacet"}, + "ObjectAttributeList":{"shape":"AttributeKeyAndValueList"}, + "ObjectReference":{"shape":"ObjectReference"} + } + }, + "AddFacetToObjectResponse":{ + "type":"structure", + "members":{ + } + }, + "ApplySchemaRequest":{ + "type":"structure", + "required":[ + "PublishedSchemaArn", + "DirectoryArn" + ], + "members":{ + "PublishedSchemaArn":{"shape":"Arn"}, + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + } + } + }, + "ApplySchemaResponse":{ + "type":"structure", + "members":{ + "AppliedSchemaArn":{"shape":"Arn"}, + "DirectoryArn":{"shape":"Arn"} + } + }, + "Arn":{"type":"string"}, + "Arns":{ + "type":"list", + "member":{"shape":"Arn"} + }, + "AttachObjectRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "ParentReference", + "ChildReference", + "LinkName" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "ParentReference":{"shape":"ObjectReference"}, + "ChildReference":{"shape":"ObjectReference"}, + "LinkName":{"shape":"LinkName"} + } + }, + "AttachObjectResponse":{ + "type":"structure", + "members":{ + "AttachedObjectIdentifier":{"shape":"ObjectIdentifier"} + } + }, + "AttachPolicyRequest":{ + "type":"structure", + "required":[ + "PolicyReference", + "ObjectReference" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "PolicyReference":{"shape":"ObjectReference"}, + "ObjectReference":{"shape":"ObjectReference"} + } + }, + "AttachPolicyResponse":{ + "type":"structure", + "members":{ + } + }, + "AttachToIndexRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "IndexReference", + "TargetReference" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "IndexReference":{"shape":"ObjectReference"}, + "TargetReference":{"shape":"ObjectReference"} + } + }, + "AttachToIndexResponse":{ + "type":"structure", + "members":{ + "AttachedObjectIdentifier":{"shape":"ObjectIdentifier"} + } + }, + "AttributeKey":{ + "type":"structure", + "required":[ + "SchemaArn", + "FacetName", + "Name" + ], + "members":{ + "SchemaArn":{"shape":"Arn"}, + "FacetName":{"shape":"FacetName"}, + "Name":{"shape":"AttributeName"} + } + }, + "AttributeKeyAndValue":{ + "type":"structure", + "required":[ + "Key", + "Value" + ], + "members":{ + "Key":{"shape":"AttributeKey"}, + "Value":{"shape":"TypedAttributeValue"} + } + }, + "AttributeKeyAndValueList":{ + "type":"list", + "member":{"shape":"AttributeKeyAndValue"} + }, + "AttributeKeyList":{ + "type":"list", + "member":{"shape":"AttributeKey"} + }, + "AttributeName":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^[a-zA-Z0-9._-]*$" + }, + "BatchAddFacetToObject":{ + "type":"structure", + "required":[ + "SchemaFacet", + "ObjectAttributeList", + "ObjectReference" + ], + "members":{ + "SchemaFacet":{"shape":"SchemaFacet"}, + "ObjectAttributeList":{"shape":"AttributeKeyAndValueList"}, + "ObjectReference":{"shape":"ObjectReference"} + } + }, + "BatchAddFacetToObjectResponse":{ + "type":"structure", + "members":{ + } + }, + "BatchAttachObject":{ + "type":"structure", + "required":[ + "ParentReference", + "ChildReference", + "LinkName" + ], + "members":{ + "ParentReference":{"shape":"ObjectReference"}, + "ChildReference":{"shape":"ObjectReference"}, + "LinkName":{"shape":"LinkName"} + } + }, + "BatchAttachObjectResponse":{ + "type":"structure", + "members":{ + "attachedObjectIdentifier":{"shape":"ObjectIdentifier"} + } + }, + "BatchCreateObject":{ + "type":"structure", + "required":[ + "SchemaFacet", + "ObjectAttributeList", + "ParentReference", + "LinkName", + "BatchReferenceName" + ], + "members":{ + "SchemaFacet":{"shape":"SchemaFacetList"}, + "ObjectAttributeList":{"shape":"AttributeKeyAndValueList"}, + "ParentReference":{"shape":"ObjectReference"}, + "LinkName":{"shape":"LinkName"}, + "BatchReferenceName":{"shape":"BatchReferenceName"} + } + }, + "BatchCreateObjectResponse":{ + "type":"structure", + "members":{ + "ObjectIdentifier":{"shape":"ObjectIdentifier"} + } + }, + "BatchDeleteObject":{ + "type":"structure", + "required":["ObjectReference"], + "members":{ + "ObjectReference":{"shape":"ObjectReference"} + } + }, + "BatchDeleteObjectResponse":{ + "type":"structure", + "members":{ + } + }, + "BatchDetachObject":{ + "type":"structure", + "required":[ + "ParentReference", + "LinkName", + "BatchReferenceName" + ], + "members":{ + "ParentReference":{"shape":"ObjectReference"}, + "LinkName":{"shape":"LinkName"}, + "BatchReferenceName":{"shape":"BatchReferenceName"} + } + }, + "BatchDetachObjectResponse":{ + "type":"structure", + "members":{ + "detachedObjectIdentifier":{"shape":"ObjectIdentifier"} + } + }, + "BatchListObjectAttributes":{ + "type":"structure", + "required":["ObjectReference"], + "members":{ + "ObjectReference":{"shape":"ObjectReference"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"NumberResults"} + } + }, + "BatchListObjectAttributesResponse":{ + "type":"structure", + "members":{ + "Attributes":{"shape":"AttributeKeyAndValueList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "BatchListObjectChildren":{ + "type":"structure", + "required":["ObjectReference"], + "members":{ + "ObjectReference":{"shape":"ObjectReference"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"NumberResults"} + } + }, + "BatchListObjectChildrenResponse":{ + "type":"structure", + "members":{ + "Children":{"shape":"LinkNameToObjectIdentifierMap"}, + "NextToken":{"shape":"NextToken"} + } + }, + "BatchOperationIndex":{"type":"integer"}, + "BatchReadException":{ + "type":"structure", + "members":{ + "Type":{"shape":"BatchReadExceptionType"}, + "Message":{"shape":"ExceptionMessage"} + } + }, + "BatchReadExceptionType":{ + "type":"string", + "enum":[ + "ValidationException", + "InvalidArnException", + "ResourceNotFoundException", + "InvalidNextTokenException", + "AccessDeniedException", + "NotNodeException" + ] + }, + "BatchReadOperation":{ + "type":"structure", + "members":{ + "ListObjectAttributes":{"shape":"BatchListObjectAttributes"}, + "ListObjectChildren":{"shape":"BatchListObjectChildren"} + } + }, + "BatchReadOperationList":{ + "type":"list", + "member":{"shape":"BatchReadOperation"} + }, + "BatchReadOperationResponse":{ + "type":"structure", + "members":{ + "SuccessfulResponse":{"shape":"BatchReadSuccessfulResponse"}, + "ExceptionResponse":{"shape":"BatchReadException"} + } + }, + "BatchReadOperationResponseList":{ + "type":"list", + "member":{"shape":"BatchReadOperationResponse"} + }, + "BatchReadRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "Operations" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "Operations":{"shape":"BatchReadOperationList"}, + "ConsistencyLevel":{ + "shape":"ConsistencyLevel", + "location":"header", + "locationName":"x-amz-consistency-level" + } + } + }, + "BatchReadResponse":{ + "type":"structure", + "members":{ + "Responses":{"shape":"BatchReadOperationResponseList"} + } + }, + "BatchReadSuccessfulResponse":{ + "type":"structure", + "members":{ + "ListObjectAttributes":{"shape":"BatchListObjectAttributesResponse"}, + "ListObjectChildren":{"shape":"BatchListObjectChildrenResponse"} + } + }, + "BatchReferenceName":{"type":"string"}, + "BatchRemoveFacetFromObject":{ + "type":"structure", + "required":[ + "SchemaFacet", + "ObjectReference" + ], + "members":{ + "SchemaFacet":{"shape":"SchemaFacet"}, + "ObjectReference":{"shape":"ObjectReference"} + } + }, + "BatchRemoveFacetFromObjectResponse":{ + "type":"structure", + "members":{ + } + }, + "BatchUpdateObjectAttributes":{ + "type":"structure", + "required":[ + "ObjectReference", + "AttributeUpdates" + ], + "members":{ + "ObjectReference":{"shape":"ObjectReference"}, + "AttributeUpdates":{"shape":"ObjectAttributeUpdateList"} + } + }, + "BatchUpdateObjectAttributesResponse":{ + "type":"structure", + "members":{ + "ObjectIdentifier":{"shape":"ObjectIdentifier"} + } + }, + "BatchWriteException":{ + "type":"structure", + "members":{ + "Index":{"shape":"BatchOperationIndex"}, + "Type":{"shape":"BatchWriteExceptionType"}, + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "BatchWriteExceptionType":{ + "type":"string", + "enum":[ + "InternalServiceException", + "ValidationException", + "InvalidArnException", + "LinkNameAlreadyInUseException", + "StillContainsLinksException", + "FacetValidationException", + "ObjectNotDetachedException", + "ResourceNotFoundException", + "AccessDeniedException" + ] + }, + "BatchWriteOperation":{ + "type":"structure", + "members":{ + "CreateObject":{"shape":"BatchCreateObject"}, + "AttachObject":{"shape":"BatchAttachObject"}, + "DetachObject":{"shape":"BatchDetachObject"}, + "UpdateObjectAttributes":{"shape":"BatchUpdateObjectAttributes"}, + "DeleteObject":{"shape":"BatchDeleteObject"}, + "AddFacetToObject":{"shape":"BatchAddFacetToObject"}, + "RemoveFacetFromObject":{"shape":"BatchRemoveFacetFromObject"} + } + }, + "BatchWriteOperationList":{ + "type":"list", + "member":{"shape":"BatchWriteOperation"} + }, + "BatchWriteOperationResponse":{ + "type":"structure", + "members":{ + "CreateObject":{"shape":"BatchCreateObjectResponse"}, + "AttachObject":{"shape":"BatchAttachObjectResponse"}, + "DetachObject":{"shape":"BatchDetachObjectResponse"}, + "UpdateObjectAttributes":{"shape":"BatchUpdateObjectAttributesResponse"}, + "DeleteObject":{"shape":"BatchDeleteObjectResponse"}, + "AddFacetToObject":{"shape":"BatchAddFacetToObjectResponse"}, + "RemoveFacetFromObject":{"shape":"BatchRemoveFacetFromObjectResponse"} + } + }, + "BatchWriteOperationResponseList":{ + "type":"list", + "member":{"shape":"BatchWriteOperationResponse"} + }, + "BatchWriteRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "Operations" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "Operations":{"shape":"BatchWriteOperationList"} + } + }, + "BatchWriteResponse":{ + "type":"structure", + "members":{ + "Responses":{"shape":"BatchWriteOperationResponseList"} + } + }, + "BinaryAttributeValue":{"type":"blob"}, + "Bool":{"type":"boolean"}, + "BooleanAttributeValue":{"type":"boolean"}, + "CannotListParentOfRootException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "ConsistencyLevel":{ + "type":"string", + "enum":[ + "SERIALIZABLE", + "EVENTUAL" + ] + }, + "CreateDirectoryRequest":{ + "type":"structure", + "required":[ + "Name", + "SchemaArn" + ], + "members":{ + "Name":{"shape":"DirectoryName"}, + "SchemaArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + } + } + }, + "CreateDirectoryResponse":{ + "type":"structure", + "required":[ + "DirectoryArn", + "Name", + "ObjectIdentifier", + "AppliedSchemaArn" + ], + "members":{ + "DirectoryArn":{"shape":"DirectoryArn"}, + "Name":{"shape":"DirectoryName"}, + "ObjectIdentifier":{"shape":"ObjectIdentifier"}, + "AppliedSchemaArn":{"shape":"Arn"} + } + }, + "CreateFacetRequest":{ + "type":"structure", + "required":[ + "SchemaArn", + "Name", + "ObjectType" + ], + "members":{ + "SchemaArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "Name":{"shape":"FacetName"}, + "Attributes":{"shape":"FacetAttributeList"}, + "ObjectType":{"shape":"ObjectType"} + } + }, + "CreateFacetResponse":{ + "type":"structure", + "members":{ + } + }, + "CreateIndexRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "OrderedIndexedAttributeList", + "IsUnique" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "OrderedIndexedAttributeList":{"shape":"AttributeKeyList"}, + "IsUnique":{"shape":"Bool"}, + "ParentReference":{"shape":"ObjectReference"}, + "LinkName":{"shape":"LinkName"} + } + }, + "CreateIndexResponse":{ + "type":"structure", + "members":{ + "ObjectIdentifier":{"shape":"ObjectIdentifier"} + } + }, + "CreateObjectRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "SchemaFacets" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "SchemaFacets":{"shape":"SchemaFacetList"}, + "ObjectAttributeList":{"shape":"AttributeKeyAndValueList"}, + "ParentReference":{"shape":"ObjectReference"}, + "LinkName":{"shape":"LinkName"} + } + }, + "CreateObjectResponse":{ + "type":"structure", + "members":{ + "ObjectIdentifier":{"shape":"ObjectIdentifier"} + } + }, + "CreateSchemaRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"SchemaName"} + } + }, + "CreateSchemaResponse":{ + "type":"structure", + "members":{ + "SchemaArn":{"shape":"Arn"} + } + }, + "Date":{"type":"timestamp"}, + "DatetimeAttributeValue":{"type":"timestamp"}, + "DeleteDirectoryRequest":{ + "type":"structure", + "required":["DirectoryArn"], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + } + } + }, + "DeleteDirectoryResponse":{ + "type":"structure", + "required":["DirectoryArn"], + "members":{ + "DirectoryArn":{"shape":"Arn"} + } + }, + "DeleteFacetRequest":{ + "type":"structure", + "required":[ + "SchemaArn", + "Name" + ], + "members":{ + "SchemaArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "Name":{"shape":"FacetName"} + } + }, + "DeleteFacetResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteObjectRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "ObjectReference" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "ObjectReference":{"shape":"ObjectReference"} + } + }, + "DeleteObjectResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteSchemaRequest":{ + "type":"structure", + "required":["SchemaArn"], + "members":{ + "SchemaArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + } + } + }, + "DeleteSchemaResponse":{ + "type":"structure", + "members":{ + "SchemaArn":{"shape":"Arn"} + } + }, + "DetachFromIndexRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "IndexReference", + "TargetReference" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "IndexReference":{"shape":"ObjectReference"}, + "TargetReference":{"shape":"ObjectReference"} + } + }, + "DetachFromIndexResponse":{ + "type":"structure", + "members":{ + "DetachedObjectIdentifier":{"shape":"ObjectIdentifier"} + } + }, + "DetachObjectRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "ParentReference", + "LinkName" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "ParentReference":{"shape":"ObjectReference"}, + "LinkName":{"shape":"LinkName"} + } + }, + "DetachObjectResponse":{ + "type":"structure", + "members":{ + "DetachedObjectIdentifier":{"shape":"ObjectIdentifier"} + } + }, + "DetachPolicyRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "PolicyReference", + "ObjectReference" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "PolicyReference":{"shape":"ObjectReference"}, + "ObjectReference":{"shape":"ObjectReference"} + } + }, + "DetachPolicyResponse":{ + "type":"structure", + "members":{ + } + }, + "Directory":{ + "type":"structure", + "members":{ + "Name":{"shape":"DirectoryName"}, + "DirectoryArn":{"shape":"DirectoryArn"}, + "State":{"shape":"DirectoryState"}, + "CreationDateTime":{"shape":"Date"} + } + }, + "DirectoryAlreadyExistsException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "DirectoryArn":{"type":"string"}, + "DirectoryDeletedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "DirectoryList":{ + "type":"list", + "member":{"shape":"Directory"} + }, + "DirectoryName":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^[a-zA-Z0-9._-]*$" + }, + "DirectoryNotDisabledException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "DirectoryNotEnabledException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "DirectoryState":{ + "type":"string", + "enum":[ + "ENABLED", + "DISABLED", + "DELETED" + ] + }, + "DisableDirectoryRequest":{ + "type":"structure", + "required":["DirectoryArn"], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + } + } + }, + "DisableDirectoryResponse":{ + "type":"structure", + "required":["DirectoryArn"], + "members":{ + "DirectoryArn":{"shape":"Arn"} + } + }, + "EnableDirectoryRequest":{ + "type":"structure", + "required":["DirectoryArn"], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + } + } + }, + "EnableDirectoryResponse":{ + "type":"structure", + "required":["DirectoryArn"], + "members":{ + "DirectoryArn":{"shape":"Arn"} + } + }, + "ExceptionMessage":{"type":"string"}, + "Facet":{ + "type":"structure", + "members":{ + "Name":{"shape":"FacetName"}, + "ObjectType":{"shape":"ObjectType"} + } + }, + "FacetAlreadyExistsException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "FacetAttribute":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"AttributeName"}, + "AttributeDefinition":{"shape":"FacetAttributeDefinition"}, + "AttributeReference":{"shape":"FacetAttributeReference"}, + "RequiredBehavior":{"shape":"RequiredAttributeBehavior"} + } + }, + "FacetAttributeDefinition":{ + "type":"structure", + "required":["Type"], + "members":{ + "Type":{"shape":"FacetAttributeType"}, + "DefaultValue":{"shape":"TypedAttributeValue"}, + "IsImmutable":{"shape":"Bool"}, + "Rules":{"shape":"RuleMap"} + } + }, + "FacetAttributeList":{ + "type":"list", + "member":{"shape":"FacetAttribute"} + }, + "FacetAttributeReference":{ + "type":"structure", + "required":[ + "TargetFacetName", + "TargetAttributeName" + ], + "members":{ + "TargetFacetName":{"shape":"FacetName"}, + "TargetAttributeName":{"shape":"AttributeName"} + } + }, + "FacetAttributeType":{ + "type":"string", + "enum":[ + "STRING", + "BINARY", + "BOOLEAN", + "NUMBER", + "DATETIME" + ] + }, + "FacetAttributeUpdate":{ + "type":"structure", + "members":{ + "Attribute":{"shape":"FacetAttribute"}, + "Action":{"shape":"UpdateActionType"} + } + }, + "FacetAttributeUpdateList":{ + "type":"list", + "member":{"shape":"FacetAttributeUpdate"} + }, + "FacetInUseException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "FacetName":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^[a-zA-Z0-9._-]*$" + }, + "FacetNameList":{ + "type":"list", + "member":{"shape":"FacetName"} + }, + "FacetNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "FacetValidationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "GetDirectoryRequest":{ + "type":"structure", + "required":["DirectoryArn"], + "members":{ + "DirectoryArn":{ + "shape":"DirectoryArn", + "location":"header", + "locationName":"x-amz-data-partition" + } + } + }, + "GetDirectoryResponse":{ + "type":"structure", + "required":["Directory"], + "members":{ + "Directory":{"shape":"Directory"} + } + }, + "GetFacetRequest":{ + "type":"structure", + "required":[ + "SchemaArn", + "Name" + ], + "members":{ + "SchemaArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "Name":{"shape":"FacetName"} + } + }, + "GetFacetResponse":{ + "type":"structure", + "members":{ + "Facet":{"shape":"Facet"} + } + }, + "GetObjectInformationRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "ObjectReference" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "ObjectReference":{"shape":"ObjectReference"}, + "ConsistencyLevel":{ + "shape":"ConsistencyLevel", + "location":"header", + "locationName":"x-amz-consistency-level" + } + } + }, + "GetObjectInformationResponse":{ + "type":"structure", + "members":{ + "SchemaFacets":{"shape":"SchemaFacetList"}, + "ObjectIdentifier":{"shape":"ObjectIdentifier"} + } + }, + "GetSchemaAsJsonRequest":{ + "type":"structure", + "required":["SchemaArn"], + "members":{ + "SchemaArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + } + } + }, + "GetSchemaAsJsonResponse":{ + "type":"structure", + "members":{ + "Name":{"shape":"SchemaName"}, + "Document":{"shape":"SchemaJsonDocument"} + } + }, + "IndexAttachment":{ + "type":"structure", + "members":{ + "IndexedAttributes":{"shape":"AttributeKeyAndValueList"}, + "ObjectIdentifier":{"shape":"ObjectIdentifier"} + } + }, + "IndexAttachmentList":{ + "type":"list", + "member":{"shape":"IndexAttachment"} + }, + "IndexedAttributeMissingException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InternalServiceException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":500}, + "exception":true + }, + "InvalidArnException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidAttachmentException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidFacetUpdateException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidNextTokenException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidRuleException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidSchemaDocException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidTaggingRequestException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "LimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "LinkName":{ + "type":"string", + "max":64 + }, + "LinkNameAlreadyInUseException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "LinkNameToObjectIdentifierMap":{ + "type":"map", + "key":{"shape":"LinkName"}, + "value":{"shape":"ObjectIdentifier"} + }, + "ListAppliedSchemaArnsRequest":{ + "type":"structure", + "required":["DirectoryArn"], + "members":{ + "DirectoryArn":{"shape":"Arn"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"NumberResults"} + } + }, + "ListAppliedSchemaArnsResponse":{ + "type":"structure", + "members":{ + "SchemaArns":{"shape":"Arns"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListAttachedIndicesRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "TargetReference" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "TargetReference":{"shape":"ObjectReference"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"NumberResults"}, + "ConsistencyLevel":{ + "shape":"ConsistencyLevel", + "location":"header", + "locationName":"x-amz-consistency-level" + } + } + }, + "ListAttachedIndicesResponse":{ + "type":"structure", + "members":{ + "IndexAttachments":{"shape":"IndexAttachmentList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListDevelopmentSchemaArnsRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"NumberResults"} + } + }, + "ListDevelopmentSchemaArnsResponse":{ + "type":"structure", + "members":{ + "SchemaArns":{"shape":"Arns"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListDirectoriesRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"NumberResults"}, + "state":{"shape":"DirectoryState"} + } + }, + "ListDirectoriesResponse":{ + "type":"structure", + "required":["Directories"], + "members":{ + "Directories":{"shape":"DirectoryList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListFacetAttributesRequest":{ + "type":"structure", + "required":[ + "SchemaArn", + "Name" + ], + "members":{ + "SchemaArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "Name":{"shape":"FacetName"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"NumberResults"} + } + }, + "ListFacetAttributesResponse":{ + "type":"structure", + "members":{ + "Attributes":{"shape":"FacetAttributeList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListFacetNamesRequest":{ + "type":"structure", + "required":["SchemaArn"], + "members":{ + "SchemaArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"NumberResults"} + } + }, + "ListFacetNamesResponse":{ + "type":"structure", + "members":{ + "FacetNames":{"shape":"FacetNameList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListIndexRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "IndexReference" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "RangesOnIndexedValues":{"shape":"ObjectAttributeRangeList"}, + "IndexReference":{"shape":"ObjectReference"}, + "MaxResults":{"shape":"NumberResults"}, + "NextToken":{"shape":"NextToken"}, + "ConsistencyLevel":{ + "shape":"ConsistencyLevel", + "location":"header", + "locationName":"x-amz-consistency-level" + } + } + }, + "ListIndexResponse":{ + "type":"structure", + "members":{ + "IndexAttachments":{"shape":"IndexAttachmentList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListObjectAttributesRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "ObjectReference" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "ObjectReference":{"shape":"ObjectReference"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"NumberResults"}, + "ConsistencyLevel":{ + "shape":"ConsistencyLevel", + "location":"header", + "locationName":"x-amz-consistency-level" + } + } + }, + "ListObjectAttributesResponse":{ + "type":"structure", + "members":{ + "Attributes":{"shape":"AttributeKeyAndValueList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListObjectChildrenRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "ObjectReference" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "ObjectReference":{"shape":"ObjectReference"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"NumberResults"}, + "ConsistencyLevel":{ + "shape":"ConsistencyLevel", + "location":"header", + "locationName":"x-amz-consistency-level" + } + } + }, + "ListObjectChildrenResponse":{ + "type":"structure", + "members":{ + "Children":{"shape":"LinkNameToObjectIdentifierMap"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListObjectParentPathsRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "ObjectReference" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "ObjectReference":{"shape":"ObjectReference"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"NumberResults"} + } + }, + "ListObjectParentPathsResponse":{ + "type":"structure", + "members":{ + "PathToObjectIdentifiersList":{"shape":"PathToObjectIdentifiersList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListObjectParentsRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "ObjectReference" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "ObjectReference":{"shape":"ObjectReference"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"NumberResults"}, + "ConsistencyLevel":{ + "shape":"ConsistencyLevel", + "location":"header", + "locationName":"x-amz-consistency-level" + } + } + }, + "ListObjectParentsResponse":{ + "type":"structure", + "members":{ + "Parents":{"shape":"ObjectIdentifierToLinkNameMap"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListObjectPoliciesRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "ObjectReference" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "ObjectReference":{"shape":"ObjectReference"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"NumberResults"}, + "ConsistencyLevel":{ + "shape":"ConsistencyLevel", + "location":"header", + "locationName":"x-amz-consistency-level" + } + } + }, + "ListObjectPoliciesResponse":{ + "type":"structure", + "members":{ + "AttachedPolicyIds":{"shape":"ObjectIdentifierList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListPolicyAttachmentsRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "PolicyReference" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "PolicyReference":{"shape":"ObjectReference"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"NumberResults"}, + "ConsistencyLevel":{ + "shape":"ConsistencyLevel", + "location":"header", + "locationName":"x-amz-consistency-level" + } + } + }, + "ListPolicyAttachmentsResponse":{ + "type":"structure", + "members":{ + "ObjectIdentifiers":{"shape":"ObjectIdentifierList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListPublishedSchemaArnsRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"NumberResults"} + } + }, + "ListPublishedSchemaArnsResponse":{ + "type":"structure", + "members":{ + "SchemaArns":{"shape":"Arns"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{"shape":"Arn"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"TagsNumberResults"} + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "members":{ + "Tags":{"shape":"TagList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "LookupPolicyRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "ObjectReference" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "ObjectReference":{"shape":"ObjectReference"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"NumberResults"} + } + }, + "LookupPolicyResponse":{ + "type":"structure", + "members":{ + "PolicyToPathList":{"shape":"PolicyToPathList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "NextToken":{"type":"string"}, + "NotIndexException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "NotNodeException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "NotPolicyException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "NumberAttributeValue":{"type":"string"}, + "NumberResults":{ + "type":"integer", + "min":1 + }, + "ObjectAlreadyDetachedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "ObjectAttributeAction":{ + "type":"structure", + "members":{ + "ObjectAttributeActionType":{"shape":"UpdateActionType"}, + "ObjectAttributeUpdateValue":{"shape":"TypedAttributeValue"} + } + }, + "ObjectAttributeRange":{ + "type":"structure", + "members":{ + "AttributeKey":{"shape":"AttributeKey"}, + "Range":{"shape":"TypedAttributeValueRange"} + } + }, + "ObjectAttributeRangeList":{ + "type":"list", + "member":{"shape":"ObjectAttributeRange"} + }, + "ObjectAttributeUpdate":{ + "type":"structure", + "members":{ + "ObjectAttributeKey":{"shape":"AttributeKey"}, + "ObjectAttributeAction":{"shape":"ObjectAttributeAction"} + } + }, + "ObjectAttributeUpdateList":{ + "type":"list", + "member":{"shape":"ObjectAttributeUpdate"} + }, + "ObjectIdentifier":{"type":"string"}, + "ObjectIdentifierList":{ + "type":"list", + "member":{"shape":"ObjectIdentifier"} + }, + "ObjectIdentifierToLinkNameMap":{ + "type":"map", + "key":{"shape":"ObjectIdentifier"}, + "value":{"shape":"LinkName"} + }, + "ObjectNotDetachedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "ObjectReference":{ + "type":"structure", + "members":{ + "Selector":{"shape":"SelectorObjectReference"} + } + }, + "ObjectType":{ + "type":"string", + "enum":[ + "NODE", + "LEAF_NODE", + "POLICY", + "INDEX" + ] + }, + "PathString":{"type":"string"}, + "PathToObjectIdentifiers":{ + "type":"structure", + "members":{ + "Path":{"shape":"PathString"}, + "ObjectIdentifiers":{"shape":"ObjectIdentifierList"} + } + }, + "PathToObjectIdentifiersList":{ + "type":"list", + "member":{"shape":"PathToObjectIdentifiers"} + }, + "PolicyAttachment":{ + "type":"structure", + "members":{ + "PolicyId":{"shape":"ObjectIdentifier"}, + "ObjectIdentifier":{"shape":"ObjectIdentifier"}, + "PolicyType":{"shape":"PolicyType"} + } + }, + "PolicyAttachmentList":{ + "type":"list", + "member":{"shape":"PolicyAttachment"} + }, + "PolicyToPath":{ + "type":"structure", + "members":{ + "Path":{"shape":"PathString"}, + "Policies":{"shape":"PolicyAttachmentList"} + } + }, + "PolicyToPathList":{ + "type":"list", + "member":{"shape":"PolicyToPath"} + }, + "PolicyType":{"type":"string"}, + "PublishSchemaRequest":{ + "type":"structure", + "required":[ + "DevelopmentSchemaArn", + "Version" + ], + "members":{ + "DevelopmentSchemaArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "Version":{"shape":"Version"}, + "Name":{"shape":"SchemaName"} + } + }, + "PublishSchemaResponse":{ + "type":"structure", + "members":{ + "PublishedSchemaArn":{"shape":"Arn"} + } + }, + "PutSchemaFromJsonRequest":{ + "type":"structure", + "required":[ + "SchemaArn", + "Document" + ], + "members":{ + "SchemaArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "Document":{"shape":"SchemaJsonDocument"} + } + }, + "PutSchemaFromJsonResponse":{ + "type":"structure", + "members":{ + "Arn":{"shape":"Arn"} + } + }, + "RangeMode":{ + "type":"string", + "enum":[ + "FIRST", + "LAST", + "LAST_BEFORE_MISSING_VALUES", + "INCLUSIVE", + "EXCLUSIVE" + ] + }, + "RemoveFacetFromObjectRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "SchemaFacet", + "ObjectReference" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "SchemaFacet":{"shape":"SchemaFacet"}, + "ObjectReference":{"shape":"ObjectReference"} + } + }, + "RemoveFacetFromObjectResponse":{ + "type":"structure", + "members":{ + } + }, + "RequiredAttributeBehavior":{ + "type":"string", + "enum":[ + "REQUIRED_ALWAYS", + "NOT_REQUIRED" + ] + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "RetryableConflictException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "Rule":{ + "type":"structure", + "members":{ + "Type":{"shape":"RuleType"}, + "Parameters":{"shape":"RuleParameterMap"} + } + }, + "RuleKey":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^[a-zA-Z0-9._-]*$" + }, + "RuleMap":{ + "type":"map", + "key":{"shape":"RuleKey"}, + "value":{"shape":"Rule"} + }, + "RuleParameterKey":{"type":"string"}, + "RuleParameterMap":{ + "type":"map", + "key":{"shape":"RuleParameterKey"}, + "value":{"shape":"RuleParameterValue"} + }, + "RuleParameterValue":{"type":"string"}, + "RuleType":{ + "type":"string", + "enum":[ + "BINARY_LENGTH", + "NUMBER_COMPARISON", + "STRING_FROM_SET", + "STRING_LENGTH" + ] + }, + "SchemaAlreadyExistsException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "SchemaAlreadyPublishedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "SchemaFacet":{ + "type":"structure", + "members":{ + "SchemaArn":{"shape":"Arn"}, + "FacetName":{"shape":"FacetName"} + } + }, + "SchemaFacetList":{ + "type":"list", + "member":{"shape":"SchemaFacet"} + }, + "SchemaJsonDocument":{"type":"string"}, + "SchemaName":{ + "type":"string", + "max":32, + "min":1, + "pattern":"^[a-zA-Z0-9._-]*$" + }, + "SelectorObjectReference":{"type":"string"}, + "StillContainsLinksException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "StringAttributeValue":{"type":"string"}, + "Tag":{ + "type":"structure", + "members":{ + "Key":{"shape":"TagKey"}, + "Value":{"shape":"TagValue"} + } + }, + "TagKey":{"type":"string"}, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"} + }, + "TagList":{ + "type":"list", + "member":{"shape":"Tag"} + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "Tags" + ], + "members":{ + "ResourceArn":{"shape":"Arn"}, + "Tags":{"shape":"TagList"} + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{"type":"string"}, + "TagsNumberResults":{ + "type":"integer", + "min":50 + }, + "TypedAttributeValue":{ + "type":"structure", + "members":{ + "StringValue":{"shape":"StringAttributeValue"}, + "BinaryValue":{"shape":"BinaryAttributeValue"}, + "BooleanValue":{"shape":"BooleanAttributeValue"}, + "NumberValue":{"shape":"NumberAttributeValue"}, + "DatetimeValue":{"shape":"DatetimeAttributeValue"} + } + }, + "TypedAttributeValueRange":{ + "type":"structure", + "required":[ + "StartMode", + "EndMode" + ], + "members":{ + "StartMode":{"shape":"RangeMode"}, + "StartValue":{"shape":"TypedAttributeValue"}, + "EndMode":{"shape":"RangeMode"}, + "EndValue":{"shape":"TypedAttributeValue"} + } + }, + "UnsupportedIndexTypeException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "TagKeys" + ], + "members":{ + "ResourceArn":{"shape":"Arn"}, + "TagKeys":{"shape":"TagKeyList"} + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateActionType":{ + "type":"string", + "enum":[ + "CREATE_OR_UPDATE", + "DELETE" + ] + }, + "UpdateFacetRequest":{ + "type":"structure", + "required":[ + "SchemaArn", + "Name" + ], + "members":{ + "SchemaArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "Name":{"shape":"FacetName"}, + "AttributeUpdates":{"shape":"FacetAttributeUpdateList"}, + "ObjectType":{"shape":"ObjectType"} + } + }, + "UpdateFacetResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateObjectAttributesRequest":{ + "type":"structure", + "required":[ + "DirectoryArn", + "ObjectReference", + "AttributeUpdates" + ], + "members":{ + "DirectoryArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "ObjectReference":{"shape":"ObjectReference"}, + "AttributeUpdates":{"shape":"ObjectAttributeUpdateList"} + } + }, + "UpdateObjectAttributesResponse":{ + "type":"structure", + "members":{ + "ObjectIdentifier":{"shape":"ObjectIdentifier"} + } + }, + "UpdateSchemaRequest":{ + "type":"structure", + "required":[ + "SchemaArn", + "Name" + ], + "members":{ + "SchemaArn":{ + "shape":"Arn", + "location":"header", + "locationName":"x-amz-data-partition" + }, + "Name":{"shape":"SchemaName"} + } + }, + "UpdateSchemaResponse":{ + "type":"structure", + "members":{ + "SchemaArn":{"shape":"Arn"} + } + }, + "ValidationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "Version":{ + "type":"string", + "max":10, + "min":1, + "pattern":"^[a-zA-Z0-9._-]*$" + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2016-05-10/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2016-05-10/docs-2.json new file mode 100644 index 000000000..57b0c22b0 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2016-05-10/docs-2.json @@ -0,0 +1,1654 @@ +{ + "version": "2.0", + "service": "Amazon Cloud Directory

Amazon Cloud Directory is a component of the AWS Directory Service that simplifies the development and management of cloud-scale web, mobile and IoT applications. This guide describes the Cloud Directory operations that you can call programatically and includes detailed information on data types and errors. For information about AWS Directory Services features, see AWS Directory Service and the AWS Directory Service Administration Guide.

", + "operations": { + "AddFacetToObject": "

Adds a new Facet to an object.

", + "ApplySchema": "

Copies input published schema into Directory with same name and version as that of published schema .

", + "AttachObject": "

Attaches an existing object to another object. An object can be accessed in two ways:

  1. Using the path

  2. Using ObjectIdentifier

", + "AttachPolicy": "

Attaches a policy object to a regular object. An object can have a limited number of attached policies.

", + "AttachToIndex": "

Attaches the specified object to the specified index.

", + "BatchRead": "

Performs all the read operations in a batch.

", + "BatchWrite": "

Performs all the write operations in a batch. Either all the operations succeed or none. Batch writes supports only object-related operations.

", + "CreateDirectory": "

Creates a Directory by copying the published schema into the directory. A directory cannot be created without a schema.

", + "CreateFacet": "

Creates a new Facet in a schema. Facet creation is allowed only in development or applied schemas.

", + "CreateIndex": "

Creates an index object. See Indexing for more information.

", + "CreateObject": "

Creates an object in a Directory. Additionally attaches the object to a parent, if a parent reference and LinkName is specified. An object is simply a collection of Facet attributes. You can also use this API call to create a policy object, if the facet from which you create the object is a policy facet.

", + "CreateSchema": "

Creates a new schema in a development state. A schema can exist in three phases:

  • Development: This is a mutable phase of the schema. All new schemas are in the development phase. Once the schema is finalized, it can be published.

  • Published: Published schemas are immutable and have a version associated with them.

  • Applied: Applied schemas are mutable in a way that allows you to add new schema facets. You can also add new, nonrequired attributes to existing schema facets. You can apply only published schemas to directories.

", + "DeleteDirectory": "

Deletes a directory. Only disabled directories can be deleted. A deleted directory cannot be undone. Exercise extreme caution when deleting directories.

", + "DeleteFacet": "

Deletes a given Facet. All attributes and Rules associated with the facet will be deleted. Only development schema facets are allowed deletion.

", + "DeleteObject": "

Deletes an object and its associated attributes. Only objects with no children and no parents can be deleted.

", + "DeleteSchema": "

Deletes a given schema. Schemas in a development and published state can only be deleted.

", + "DetachFromIndex": "

Detaches the specified object from the specified index.

", + "DetachObject": "

Detaches a given object from the parent object. The object that is to be detached from the parent is specified by the link name.

", + "DetachPolicy": "

Detaches a policy from an object.

", + "DisableDirectory": "

Disables the specified directory. Disabled directories cannot be read or written to. Only enabled directories can be disabled. Disabled directories may be reenabled.

", + "EnableDirectory": "

Enables the specified directory. Only disabled directories can be enabled. Once enabled, the directory can then be read and written to.

", + "GetDirectory": "

Retrieves metadata about a directory.

", + "GetFacet": "

Gets details of the Facet, such as Facet Name, Attributes, Rules, or ObjectType. You can call this on all kinds of schema facets -- published, development, or applied.

", + "GetObjectInformation": "

Retrieves metadata about an object.

", + "GetSchemaAsJson": "

Retrieves a JSON representation of the schema. See JSON Schema Format for more information.

", + "ListAppliedSchemaArns": "

Lists schemas applied to a directory.

", + "ListAttachedIndices": "

Lists indices attached to an object.

", + "ListDevelopmentSchemaArns": "

Retrieves the ARNs of schemas in the development state.

", + "ListDirectories": "

Lists directories created within an account.

", + "ListFacetAttributes": "

Retrieves attributes attached to the facet.

", + "ListFacetNames": "

Retrieves the names of facets that exist in a schema.

", + "ListIndex": "

Lists objects attached to the specified index.

", + "ListObjectAttributes": "

Lists all attributes associated with an object.

", + "ListObjectChildren": "

Returns a paginated list of child objects associated with a given object.

", + "ListObjectParentPaths": "

Retrieves all available parent paths for any object type such as node, leaf node, policy node, and index node objects. For more information about objects, see Directory Structure.

Use this API to evaluate all parents for an object. The call returns all objects from the root of the directory up to the requested object. The API returns the number of paths based on user-defined MaxResults, in case there are multiple paths to the parent. The order of the paths and nodes returned is consistent among multiple API calls unless the objects are deleted or moved. Paths not leading to directory root are ignored from the target object.

", + "ListObjectParents": "

Lists parent objects associated with a given object in pagination fashion.

", + "ListObjectPolicies": "

Returns policies attached to an object in pagination fashion.

", + "ListPolicyAttachments": "

Returns all of the ObjectIdentifiers to which a given policy is attached.

", + "ListPublishedSchemaArns": "

Retrieves published schema ARNs.

", + "ListTagsForResource": "

Returns tags for a resource. Tagging is currently supported only for directories with a limit of 50 tags per directory. All 50 tags are returned for a given directory with this API call.

", + "LookupPolicy": "

Lists all policies from the root of the Directory to the object specified. If there are no policies present, an empty list is returned. If policies are present, and if some objects don't have the policies attached, it returns the ObjectIdentifier for such objects. If policies are present, it returns ObjectIdentifier, policyId, and policyType. Paths that don't lead to the root from the target object are ignored.

", + "PublishSchema": "

Publishes a development schema with a version. If description and attributes are specified, PublishSchema overrides the development schema description and attributes. If not, the development schema description and attributes are used.

", + "PutSchemaFromJson": "

Allows a schema to be updated using JSON upload. Only available for development schemas. See JSON Schema Format for more information.

", + "RemoveFacetFromObject": "

Removes the specified facet from the specified object.

", + "TagResource": "

API for adding tags to a resource.

", + "UntagResource": "

API for removing tags from a resource.

", + "UpdateFacet": "

Does the following:

  1. Adds new Attributes, Rules, or ObjectTypes.

  2. Updates existing Attributes, Rules, or ObjectTypes.

  3. Deletes existing Attributes, Rules, or ObjectTypes.

", + "UpdateObjectAttributes": "

Updates a given object's attributes.

", + "UpdateSchema": "

Updates the schema name with a new name. Only development schema names can be updated.

" + }, + "shapes": { + "AccessDeniedException": { + "base": "

Access denied. Check your permissions.

", + "refs": { + } + }, + "AddFacetToObjectRequest": { + "base": null, + "refs": { + } + }, + "AddFacetToObjectResponse": { + "base": null, + "refs": { + } + }, + "ApplySchemaRequest": { + "base": null, + "refs": { + } + }, + "ApplySchemaResponse": { + "base": null, + "refs": { + } + }, + "Arn": { + "base": null, + "refs": { + "AddFacetToObjectRequest$DirectoryArn": "

ARN associated with the Directory where the object resides. For more information, see arns.

", + "ApplySchemaRequest$PublishedSchemaArn": "

Published schema ARN that needs to be copied. For more information, see arns.

", + "ApplySchemaRequest$DirectoryArn": "

ARN associated with the Directory into which the schema is copied. For more information, see arns.

", + "ApplySchemaResponse$AppliedSchemaArn": "

Applied schema ARN associated with the copied schema in the Directory. You can use this ARN to describe the schema information applied on this directory. For more information, see arns.

", + "ApplySchemaResponse$DirectoryArn": "

ARN associated with the Directory. For more information, see arns.

", + "Arns$member": null, + "AttachObjectRequest$DirectoryArn": "

ARN associated with the Directory where both objects reside. For more information, see arns.

", + "AttachPolicyRequest$DirectoryArn": "

ARN associated with the Directory where both objects reside. For more information, see arns.

", + "AttachToIndexRequest$DirectoryArn": "

The ARN of the directory where the object and index exist.

", + "AttributeKey$SchemaArn": "

The ARN of the schema that contains the facet and attribute.

", + "BatchReadRequest$DirectoryArn": "

ARN associated with the Directory. For more information, see arns.

", + "BatchWriteRequest$DirectoryArn": "

ARN associated with the Directory. For more information, see arns.

", + "CreateDirectoryRequest$SchemaArn": "

ARN of the published schema that will be copied into the data Directory. For more information, see arns.

", + "CreateDirectoryResponse$AppliedSchemaArn": "

ARN of the published schema in the Directory. Once a published schema is copied into the directory, it has its own ARN which is referred to applied schema ARN. For more information, see arns.

", + "CreateFacetRequest$SchemaArn": "

Schema ARN in which the new Facet will be created. For more information, see arns.

", + "CreateIndexRequest$DirectoryArn": "

The ARN of the directory where the index should be created.

", + "CreateObjectRequest$DirectoryArn": "

ARN associated with the Directory in which the object will be created. For more information, see arns.

", + "CreateSchemaResponse$SchemaArn": "

ARN associated with the schema. For more information, see arns.

", + "DeleteDirectoryRequest$DirectoryArn": "

The ARN of the directory to delete.

", + "DeleteDirectoryResponse$DirectoryArn": "

The ARN of the deleted directory.

", + "DeleteFacetRequest$SchemaArn": "

ARN associated with the Facet. For more information, see arns.

", + "DeleteObjectRequest$DirectoryArn": "

ARN associated with the Directory where the object resides. For more information, see arns.

", + "DeleteSchemaRequest$SchemaArn": "

ARN of the development schema. For more information, see arns.

", + "DeleteSchemaResponse$SchemaArn": "

Input ARN that is returned as part of the response. For more information, see arns.

", + "DetachFromIndexRequest$DirectoryArn": "

The ARN of the directory the index and object exist in.

", + "DetachObjectRequest$DirectoryArn": "

ARN associated with the Directory where objects reside. For more information, see arns.

", + "DetachPolicyRequest$DirectoryArn": "

ARN associated with the Directory where both objects reside. For more information, see arns.

", + "DisableDirectoryRequest$DirectoryArn": "

The ARN of the directory to disable.

", + "DisableDirectoryResponse$DirectoryArn": "

The ARN of the directory that has been disabled.

", + "EnableDirectoryRequest$DirectoryArn": "

The ARN of the directory to enable.

", + "EnableDirectoryResponse$DirectoryArn": "

The ARN of the enabled directory.

", + "GetFacetRequest$SchemaArn": "

ARN associated with the Facet. For more information, see arns.

", + "GetObjectInformationRequest$DirectoryArn": "

The ARN of the directory being retrieved.

", + "GetSchemaAsJsonRequest$SchemaArn": "

The ARN of the schema to retrieve.

", + "ListAppliedSchemaArnsRequest$DirectoryArn": "

The ARN of the directory you are listing.

", + "ListAttachedIndicesRequest$DirectoryArn": "

The ARN of the directory.

", + "ListFacetAttributesRequest$SchemaArn": "

The ARN of the schema where the facet resides.

", + "ListFacetNamesRequest$SchemaArn": "

The ARN to retrieve facet names from.

", + "ListIndexRequest$DirectoryArn": "

The ARN of the directory that the index exists in.

", + "ListObjectAttributesRequest$DirectoryArn": "

ARN associated with the Directory where the object resides. For more information, see arns.

", + "ListObjectChildrenRequest$DirectoryArn": "

ARN associated with the Directory where the object resides. For more information, see arns.

", + "ListObjectParentPathsRequest$DirectoryArn": "

The ARN of the directory to which the parent path applies.

", + "ListObjectParentsRequest$DirectoryArn": "

ARN associated with the Directory where the object resides. For more information, see arns.

", + "ListObjectPoliciesRequest$DirectoryArn": "

ARN associated with the Directory where objects reside. For more information, see arns.

", + "ListPolicyAttachmentsRequest$DirectoryArn": "

ARN associated with the Directory where objects reside. For more information, see arns.

", + "ListTagsForResourceRequest$ResourceArn": "

ARN of the resource. Tagging is only supported for directories.

", + "LookupPolicyRequest$DirectoryArn": "

ARN associated with the Directory. For more information, see arns.

", + "PublishSchemaRequest$DevelopmentSchemaArn": "

ARN associated with the development schema. For more information, see arns.

", + "PublishSchemaResponse$PublishedSchemaArn": "

ARN associated with the published schema. For more information, see arns.

", + "PutSchemaFromJsonRequest$SchemaArn": "

The ARN of the schema to update.

", + "PutSchemaFromJsonResponse$Arn": "

The ARN of the schema to update.

", + "RemoveFacetFromObjectRequest$DirectoryArn": "

The ARN of the directory in which the object resides.

", + "SchemaFacet$SchemaArn": "

The ARN of the schema that contains the facet.

", + "TagResourceRequest$ResourceArn": "

ARN of the resource. Tagging is only supported for directories.

", + "UntagResourceRequest$ResourceArn": "

ARN of the resource. Tagging is only supported for directories.

", + "UpdateFacetRequest$SchemaArn": "

ARN associated with the Facet. For more information, see arns.

", + "UpdateObjectAttributesRequest$DirectoryArn": "

ARN associated with the Directory where the object resides. For more information, see arns.

", + "UpdateSchemaRequest$SchemaArn": "

ARN of the development schema. For more information, see arns.

", + "UpdateSchemaResponse$SchemaArn": "

ARN associated with the updated schema. For more information, see arns.

" + } + }, + "Arns": { + "base": null, + "refs": { + "ListAppliedSchemaArnsResponse$SchemaArns": "

The ARNs of schemas that are applied to the directory.

", + "ListDevelopmentSchemaArnsResponse$SchemaArns": "

The ARNs of retrieved development schemas.

", + "ListPublishedSchemaArnsResponse$SchemaArns": "

The ARNs of published schemas.

" + } + }, + "AttachObjectRequest": { + "base": null, + "refs": { + } + }, + "AttachObjectResponse": { + "base": null, + "refs": { + } + }, + "AttachPolicyRequest": { + "base": null, + "refs": { + } + }, + "AttachPolicyResponse": { + "base": null, + "refs": { + } + }, + "AttachToIndexRequest": { + "base": null, + "refs": { + } + }, + "AttachToIndexResponse": { + "base": null, + "refs": { + } + }, + "AttributeKey": { + "base": "

A unique identifier for an attribute.

", + "refs": { + "AttributeKeyAndValue$Key": "

The key of the attribute.

", + "AttributeKeyList$member": null, + "ObjectAttributeRange$AttributeKey": "

The key of the attribute the attribute range covers.

", + "ObjectAttributeUpdate$ObjectAttributeKey": "

The key of the attribute being updated.

" + } + }, + "AttributeKeyAndValue": { + "base": "

The combination of an attribute key and an attribute value.

", + "refs": { + "AttributeKeyAndValueList$member": null + } + }, + "AttributeKeyAndValueList": { + "base": null, + "refs": { + "AddFacetToObjectRequest$ObjectAttributeList": "

Attributes on the facet you are adding to the object.

", + "BatchAddFacetToObject$ObjectAttributeList": "

The attributes to set on the object.

", + "BatchCreateObject$ObjectAttributeList": "

Attribute map, which contains an attribute ARN as the key and attribute value as the map value.

", + "BatchListObjectAttributesResponse$Attributes": "

Attributes map associated with the object. AttributeArn is the key; attribute value is the value.

", + "CreateObjectRequest$ObjectAttributeList": "

Attribute map whose attribute ARN contains the key and attribute value as the map value.

", + "IndexAttachment$IndexedAttributes": "

The indexed attribute values.

", + "ListObjectAttributesResponse$Attributes": "

Attributes map associated with the object. AttributeArn is the key, and attribute value is the value.

" + } + }, + "AttributeKeyList": { + "base": null, + "refs": { + "CreateIndexRequest$OrderedIndexedAttributeList": "

Specifies the Attributes that should be indexed on. Currently only a single attribute is supported.

" + } + }, + "AttributeName": { + "base": null, + "refs": { + "AttributeKey$Name": "

The name of the attribute.

", + "FacetAttribute$Name": "

The name of the facet attribute.

", + "FacetAttributeReference$TargetAttributeName": "

Target attribute name associated with the facet reference. See Attribute References for more information.

" + } + }, + "BatchAddFacetToObject": { + "base": "

Represents the output of a batch add facet to object operation.

", + "refs": { + "BatchWriteOperation$AddFacetToObject": "

Batch operation adding a facet to an object.

" + } + }, + "BatchAddFacetToObjectResponse": { + "base": "

The result of a batch add facet to object operation.

", + "refs": { + "BatchWriteOperationResponse$AddFacetToObject": "

Result of an add facet to object batch operation.

" + } + }, + "BatchAttachObject": { + "base": "

Represents the output of an AttachObject operation.

", + "refs": { + "BatchWriteOperation$AttachObject": "

Attaches an object to a Directory.

" + } + }, + "BatchAttachObjectResponse": { + "base": "

Represents the output batch AttachObject response operation.

", + "refs": { + "BatchWriteOperationResponse$AttachObject": "

Attaches an object to a Directory.

" + } + }, + "BatchCreateObject": { + "base": "

Represents the output of a CreateObject operation.

", + "refs": { + "BatchWriteOperation$CreateObject": "

Creates an object.

" + } + }, + "BatchCreateObjectResponse": { + "base": "

Represents the output of a CreateObject response operation.

", + "refs": { + "BatchWriteOperationResponse$CreateObject": "

Creates an object in a Directory.

" + } + }, + "BatchDeleteObject": { + "base": "

Represents the output of a DeleteObject operation.

", + "refs": { + "BatchWriteOperation$DeleteObject": "

Deletes an object in a Directory.

" + } + }, + "BatchDeleteObjectResponse": { + "base": "

Represents the output of a DeleteObject response operation.

", + "refs": { + "BatchWriteOperationResponse$DeleteObject": "

Deletes an object in a Directory.

" + } + }, + "BatchDetachObject": { + "base": "

Represents the output of a DetachObject operation.

", + "refs": { + "BatchWriteOperation$DetachObject": "

Detaches an object from a Directory.

" + } + }, + "BatchDetachObjectResponse": { + "base": "

Represents the output of a DetachObject response operation.

", + "refs": { + "BatchWriteOperationResponse$DetachObject": "

Detaches an object from a Directory.

" + } + }, + "BatchListObjectAttributes": { + "base": "

Represents the output of a ListObjectAttributes operation.

", + "refs": { + "BatchReadOperation$ListObjectAttributes": "

Lists all attributes associated with an object.

" + } + }, + "BatchListObjectAttributesResponse": { + "base": "

Represents the output of a ListObjectAttributes response operation.

", + "refs": { + "BatchReadSuccessfulResponse$ListObjectAttributes": "

Lists all attributes associated with an object.

" + } + }, + "BatchListObjectChildren": { + "base": "

Represents the output of a ListObjectChildren operation.

", + "refs": { + "BatchReadOperation$ListObjectChildren": "

Returns a paginated list of child objects that are associated with a given object.

" + } + }, + "BatchListObjectChildrenResponse": { + "base": "

Represents the output of a ListObjectChildren response operation.

", + "refs": { + "BatchReadSuccessfulResponse$ListObjectChildren": "

Returns a paginated list of child objects associated with a given object.

" + } + }, + "BatchOperationIndex": { + "base": null, + "refs": { + "BatchWriteException$Index": null + } + }, + "BatchReadException": { + "base": "

Batch Read Exception structure, which contains exception type and message.

", + "refs": { + "BatchReadOperationResponse$ExceptionResponse": "

Identifies which operation in a batch has failed.

" + } + }, + "BatchReadExceptionType": { + "base": null, + "refs": { + "BatchReadException$Type": "

Type of exception, such as InvalidArnException.

" + } + }, + "BatchReadOperation": { + "base": "

Represents the output of a BatchRead operation.

", + "refs": { + "BatchReadOperationList$member": null + } + }, + "BatchReadOperationList": { + "base": null, + "refs": { + "BatchReadRequest$Operations": "

List of operations that are part of the batch.

" + } + }, + "BatchReadOperationResponse": { + "base": "

Represents the output of a BatchRead response operation.

", + "refs": { + "BatchReadOperationResponseList$member": null + } + }, + "BatchReadOperationResponseList": { + "base": null, + "refs": { + "BatchReadResponse$Responses": "

List of all the responses for each batch read.

" + } + }, + "BatchReadRequest": { + "base": null, + "refs": { + } + }, + "BatchReadResponse": { + "base": null, + "refs": { + } + }, + "BatchReadSuccessfulResponse": { + "base": "

Represents the output of a BatchRead success response operation.

", + "refs": { + "BatchReadOperationResponse$SuccessfulResponse": "

Identifies which operation in a batch has succeeded.

" + } + }, + "BatchReferenceName": { + "base": null, + "refs": { + "BatchCreateObject$BatchReferenceName": "

The batch reference name. See Batches for more information.

", + "BatchDetachObject$BatchReferenceName": "

The batch reference name. See Batches for more information.

" + } + }, + "BatchRemoveFacetFromObject": { + "base": "

Batch operation to remove a facet from an object.

", + "refs": { + "BatchWriteOperation$RemoveFacetFromObject": "

Batch operation removing a facet from an object.

" + } + }, + "BatchRemoveFacetFromObjectResponse": { + "base": "

Empty result representing success.

", + "refs": { + "BatchWriteOperationResponse$RemoveFacetFromObject": "

Result of a batch remove facet from object operation.

" + } + }, + "BatchUpdateObjectAttributes": { + "base": "

Represents the output of a BatchUpdate operation.

", + "refs": { + "BatchWriteOperation$UpdateObjectAttributes": "

Update a given object's attributes.

" + } + }, + "BatchUpdateObjectAttributesResponse": { + "base": "

Represents the output of a BatchUpdate response operation.

", + "refs": { + "BatchWriteOperationResponse$UpdateObjectAttributes": "

Updates a given object’s attributes.

" + } + }, + "BatchWriteException": { + "base": "

A BatchWrite exception has occurred.

", + "refs": { + } + }, + "BatchWriteExceptionType": { + "base": null, + "refs": { + "BatchWriteException$Type": null + } + }, + "BatchWriteOperation": { + "base": "

Represents the output of a BatchWrite operation.

", + "refs": { + "BatchWriteOperationList$member": null + } + }, + "BatchWriteOperationList": { + "base": null, + "refs": { + "BatchWriteRequest$Operations": "

List of operations that are part of the batch.

" + } + }, + "BatchWriteOperationResponse": { + "base": "

Represents the output of a BatchWrite response operation.

", + "refs": { + "BatchWriteOperationResponseList$member": null + } + }, + "BatchWriteOperationResponseList": { + "base": null, + "refs": { + "BatchWriteResponse$Responses": "

List of all the responses for each batch write.

" + } + }, + "BatchWriteRequest": { + "base": null, + "refs": { + } + }, + "BatchWriteResponse": { + "base": null, + "refs": { + } + }, + "BinaryAttributeValue": { + "base": null, + "refs": { + "TypedAttributeValue$BinaryValue": "

A binary data value.

" + } + }, + "Bool": { + "base": null, + "refs": { + "CreateIndexRequest$IsUnique": "

Indicates whether objects with the same indexed attribute value can be added to the index.

", + "FacetAttributeDefinition$IsImmutable": "

Whether the attribute is mutable or not.

" + } + }, + "BooleanAttributeValue": { + "base": null, + "refs": { + "TypedAttributeValue$BooleanValue": "

A Boolean data value.

" + } + }, + "CannotListParentOfRootException": { + "base": "

Cannot list the parents of a Directory root.

", + "refs": { + } + }, + "ConsistencyLevel": { + "base": null, + "refs": { + "BatchReadRequest$ConsistencyLevel": "

Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object.

", + "GetObjectInformationRequest$ConsistencyLevel": "

The consistency level at which to retrieve the object information.

", + "ListAttachedIndicesRequest$ConsistencyLevel": "

The consistency level to use for this operation.

", + "ListIndexRequest$ConsistencyLevel": "

The consistency level to execute the request at.

", + "ListObjectAttributesRequest$ConsistencyLevel": "

Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object.

", + "ListObjectChildrenRequest$ConsistencyLevel": "

Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object.

", + "ListObjectParentsRequest$ConsistencyLevel": "

Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object.

", + "ListObjectPoliciesRequest$ConsistencyLevel": "

Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object.

", + "ListPolicyAttachmentsRequest$ConsistencyLevel": "

Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object.

" + } + }, + "CreateDirectoryRequest": { + "base": null, + "refs": { + } + }, + "CreateDirectoryResponse": { + "base": null, + "refs": { + } + }, + "CreateFacetRequest": { + "base": null, + "refs": { + } + }, + "CreateFacetResponse": { + "base": null, + "refs": { + } + }, + "CreateIndexRequest": { + "base": null, + "refs": { + } + }, + "CreateIndexResponse": { + "base": null, + "refs": { + } + }, + "CreateObjectRequest": { + "base": null, + "refs": { + } + }, + "CreateObjectResponse": { + "base": null, + "refs": { + } + }, + "CreateSchemaRequest": { + "base": null, + "refs": { + } + }, + "CreateSchemaResponse": { + "base": null, + "refs": { + } + }, + "Date": { + "base": null, + "refs": { + "Directory$CreationDateTime": "

The date and time when the directory was created.

" + } + }, + "DatetimeAttributeValue": { + "base": null, + "refs": { + "TypedAttributeValue$DatetimeValue": "

A date and time value.

" + } + }, + "DeleteDirectoryRequest": { + "base": null, + "refs": { + } + }, + "DeleteDirectoryResponse": { + "base": null, + "refs": { + } + }, + "DeleteFacetRequest": { + "base": null, + "refs": { + } + }, + "DeleteFacetResponse": { + "base": null, + "refs": { + } + }, + "DeleteObjectRequest": { + "base": null, + "refs": { + } + }, + "DeleteObjectResponse": { + "base": null, + "refs": { + } + }, + "DeleteSchemaRequest": { + "base": null, + "refs": { + } + }, + "DeleteSchemaResponse": { + "base": null, + "refs": { + } + }, + "DetachFromIndexRequest": { + "base": null, + "refs": { + } + }, + "DetachFromIndexResponse": { + "base": null, + "refs": { + } + }, + "DetachObjectRequest": { + "base": null, + "refs": { + } + }, + "DetachObjectResponse": { + "base": null, + "refs": { + } + }, + "DetachPolicyRequest": { + "base": null, + "refs": { + } + }, + "DetachPolicyResponse": { + "base": null, + "refs": { + } + }, + "Directory": { + "base": "

Directory structure that includes the directory name and directory ARN.

", + "refs": { + "DirectoryList$member": null, + "GetDirectoryResponse$Directory": "

Metadata about the directory.

" + } + }, + "DirectoryAlreadyExistsException": { + "base": "

Indicates that a Directory could not be created due to a naming conflict. Choose a different name and try again.

", + "refs": { + } + }, + "DirectoryArn": { + "base": null, + "refs": { + "CreateDirectoryResponse$DirectoryArn": "

ARN associated with the Directory. For more information, see arns.

", + "Directory$DirectoryArn": "

ARN associated with the directory. For more information, see arns.

", + "GetDirectoryRequest$DirectoryArn": "

The ARN of the directory.

" + } + }, + "DirectoryDeletedException": { + "base": "

A directory that has been deleted has been attempted to be accessed. Note: The requested resource will eventually cease to exist.

", + "refs": { + } + }, + "DirectoryList": { + "base": null, + "refs": { + "ListDirectoriesResponse$Directories": "

Lists all directories associated with your account in pagination fashion.

" + } + }, + "DirectoryName": { + "base": null, + "refs": { + "CreateDirectoryRequest$Name": "

Name of the Directory. Should be unique per account, per region.

", + "CreateDirectoryResponse$Name": "

Name of the Directory.

", + "Directory$Name": "

The name of the directory.

" + } + }, + "DirectoryNotDisabledException": { + "base": "

An operation can only operate on a disabled directory.

", + "refs": { + } + }, + "DirectoryNotEnabledException": { + "base": "

An operation can only operate on a directory that is not enabled.

", + "refs": { + } + }, + "DirectoryState": { + "base": null, + "refs": { + "Directory$State": "

The state of the directory. Can be either Enabled, Disabled, or Deleted.

", + "ListDirectoriesRequest$state": "

The state of the directories in the list. Can be either Enabled, Disabled, or Deleted.

" + } + }, + "DisableDirectoryRequest": { + "base": null, + "refs": { + } + }, + "DisableDirectoryResponse": { + "base": null, + "refs": { + } + }, + "EnableDirectoryRequest": { + "base": null, + "refs": { + } + }, + "EnableDirectoryResponse": { + "base": null, + "refs": { + } + }, + "ExceptionMessage": { + "base": null, + "refs": { + "AccessDeniedException$Message": null, + "BatchReadException$Message": "

Exception message associated with the failure.

", + "BatchWriteException$Message": null, + "CannotListParentOfRootException$Message": null, + "DirectoryAlreadyExistsException$Message": null, + "DirectoryDeletedException$Message": null, + "DirectoryNotDisabledException$Message": null, + "DirectoryNotEnabledException$Message": null, + "FacetAlreadyExistsException$Message": null, + "FacetInUseException$Message": null, + "FacetNotFoundException$Message": null, + "FacetValidationException$Message": null, + "IndexedAttributeMissingException$Message": null, + "InternalServiceException$Message": null, + "InvalidArnException$Message": null, + "InvalidAttachmentException$Message": null, + "InvalidFacetUpdateException$Message": null, + "InvalidNextTokenException$Message": null, + "InvalidRuleException$Message": null, + "InvalidSchemaDocException$Message": null, + "InvalidTaggingRequestException$Message": null, + "LimitExceededException$Message": null, + "LinkNameAlreadyInUseException$Message": null, + "NotIndexException$Message": null, + "NotNodeException$Message": null, + "NotPolicyException$Message": null, + "ObjectAlreadyDetachedException$Message": null, + "ObjectNotDetachedException$Message": null, + "ResourceNotFoundException$Message": null, + "RetryableConflictException$Message": null, + "SchemaAlreadyExistsException$Message": null, + "SchemaAlreadyPublishedException$Message": null, + "StillContainsLinksException$Message": null, + "UnsupportedIndexTypeException$Message": null, + "ValidationException$Message": null + } + }, + "Facet": { + "base": "

A structure that contains Name, ARN, Attributes, Rules, and ObjectTypes.

", + "refs": { + "GetFacetResponse$Facet": "

Facet structure associated with the facet.

" + } + }, + "FacetAlreadyExistsException": { + "base": "

A facet with the same name already exists.

", + "refs": { + } + }, + "FacetAttribute": { + "base": "

Attribute associated with the Facet.

", + "refs": { + "FacetAttributeList$member": null, + "FacetAttributeUpdate$Attribute": "

The attribute to update.

" + } + }, + "FacetAttributeDefinition": { + "base": "

A facet attribute definition. See Attribute References for more information.

", + "refs": { + "FacetAttribute$AttributeDefinition": "

A facet attribute consists of either a definition or a reference. This structure contains the attribute definition. See Attribute References for more information.

" + } + }, + "FacetAttributeList": { + "base": null, + "refs": { + "CreateFacetRequest$Attributes": "

Attributes associated with the Facet.e

", + "ListFacetAttributesResponse$Attributes": "

The attributes attached to the facet.

" + } + }, + "FacetAttributeReference": { + "base": "

Facet attribute reference that specifies the attribute definition which contains attribute facet name and attribute name.

", + "refs": { + "FacetAttribute$AttributeReference": "

Attribute reference associated with the attribute. See Attribute References for more information.

" + } + }, + "FacetAttributeType": { + "base": null, + "refs": { + "FacetAttributeDefinition$Type": "

The type of the attribute.

" + } + }, + "FacetAttributeUpdate": { + "base": "

A structure that contains information used to update an attribute.

", + "refs": { + "FacetAttributeUpdateList$member": null + } + }, + "FacetAttributeUpdateList": { + "base": null, + "refs": { + "UpdateFacetRequest$AttributeUpdates": "

List of attributes that need to be updated in a given schema Facet. Each attribute is followed by AttributeAction, which specifies the type of update operation to perform.

" + } + }, + "FacetInUseException": { + "base": "

Occurs when deleting a facet that contains an attribute which is a target to an attribute reference in a different facet.

", + "refs": { + } + }, + "FacetName": { + "base": null, + "refs": { + "AttributeKey$FacetName": "

The name of the facet the attribute exists within.

", + "CreateFacetRequest$Name": "

Name of the Facet, which is unique for a given schema.

", + "DeleteFacetRequest$Name": "

The name of the facet to delete.

", + "Facet$Name": "

The name of the Facet.

", + "FacetAttributeReference$TargetFacetName": "

Target facet name associated with the facet reference. See Attribute References for more information.

", + "FacetNameList$member": null, + "GetFacetRequest$Name": "

The name of the facet to retrieve.

", + "ListFacetAttributesRequest$Name": "

The name of the facet whose attributes will be retrieved.

", + "SchemaFacet$FacetName": "

The name of the facet.

", + "UpdateFacetRequest$Name": "

" + } + }, + "FacetNameList": { + "base": null, + "refs": { + "ListFacetNamesResponse$FacetNames": "

The names of facets that exist within the schema.

" + } + }, + "FacetNotFoundException": { + "base": "

The specified Facet could not be found.

", + "refs": { + } + }, + "FacetValidationException": { + "base": "

The Facet you provided was not well formed or could not be validated with the schema.

", + "refs": { + } + }, + "GetDirectoryRequest": { + "base": null, + "refs": { + } + }, + "GetDirectoryResponse": { + "base": null, + "refs": { + } + }, + "GetFacetRequest": { + "base": null, + "refs": { + } + }, + "GetFacetResponse": { + "base": null, + "refs": { + } + }, + "GetObjectInformationRequest": { + "base": null, + "refs": { + } + }, + "GetObjectInformationResponse": { + "base": null, + "refs": { + } + }, + "GetSchemaAsJsonRequest": { + "base": null, + "refs": { + } + }, + "GetSchemaAsJsonResponse": { + "base": null, + "refs": { + } + }, + "IndexAttachment": { + "base": "

Represents an index and an attached object.

", + "refs": { + "IndexAttachmentList$member": null + } + }, + "IndexAttachmentList": { + "base": null, + "refs": { + "ListAttachedIndicesResponse$IndexAttachments": "

The indices attached to the specified object.

", + "ListIndexResponse$IndexAttachments": "

The objects and indexed values attached to the index.

" + } + }, + "IndexedAttributeMissingException": { + "base": "

An object has been attempted to be attached to an object that does not have the appropriate attribute value.

", + "refs": { + } + }, + "InternalServiceException": { + "base": "

Indicates a problem that must be resolved by Amazon Web Services. This might be a transient error in which case you can retry your request until it succeeds. Otherwise, go to the AWS Service Health Dashboard site to see if there are any operational issues with the service.

", + "refs": { + } + }, + "InvalidArnException": { + "base": "

Indicates that the provided ARN value is not valid.

", + "refs": { + } + }, + "InvalidAttachmentException": { + "base": "

Indicates that an attempt to attach an object with the same link name or to apply a schema with same name has occurred. Rename the link or the schema and then try again.

", + "refs": { + } + }, + "InvalidFacetUpdateException": { + "base": "

An attempt to modify a Facet resulted in an invalid schema exception.

", + "refs": { + } + }, + "InvalidNextTokenException": { + "base": "

Indicates that the NextToken value is not valid.

", + "refs": { + } + }, + "InvalidRuleException": { + "base": "

Occurs when any of the rule parameter keys or values are invalid.

", + "refs": { + } + }, + "InvalidSchemaDocException": { + "base": "

Indicates that the provided SchemaDoc value is not valid.

", + "refs": { + } + }, + "InvalidTaggingRequestException": { + "base": "

Can occur for multiple reasons such as when you tag a resource that doesn’t exist or if you specify a higher number of tags for a resource than the allowed limit. Allowed limit is 50 tags per resource.

", + "refs": { + } + }, + "LimitExceededException": { + "base": "

Indicates limits are exceeded. See Limits for more information.

", + "refs": { + } + }, + "LinkName": { + "base": null, + "refs": { + "AttachObjectRequest$LinkName": "

Link name with which the child object is attached to the parent.

", + "BatchAttachObject$LinkName": "

The name of the link.

", + "BatchCreateObject$LinkName": "

The name of the link.

", + "BatchDetachObject$LinkName": "

The name of the link.

", + "CreateIndexRequest$LinkName": "

The name of the link between the parent object and the index object.

", + "CreateObjectRequest$LinkName": "

The name of link that is used to attach this object to a parent.

", + "DetachObjectRequest$LinkName": "

Link name associated with the object that needs to be detached.

", + "LinkNameToObjectIdentifierMap$key": null, + "ObjectIdentifierToLinkNameMap$value": null + } + }, + "LinkNameAlreadyInUseException": { + "base": "

Indicates that a link could not be created due to a naming conflict. Choose a different name and then try again.

", + "refs": { + } + }, + "LinkNameToObjectIdentifierMap": { + "base": null, + "refs": { + "BatchListObjectChildrenResponse$Children": "

Children structure, which is a map with key as the LinkName and ObjectIdentifier as the value.

", + "ListObjectChildrenResponse$Children": "

Children structure, which is a map with key as the LinkName and ObjectIdentifier as the value.

" + } + }, + "ListAppliedSchemaArnsRequest": { + "base": null, + "refs": { + } + }, + "ListAppliedSchemaArnsResponse": { + "base": null, + "refs": { + } + }, + "ListAttachedIndicesRequest": { + "base": null, + "refs": { + } + }, + "ListAttachedIndicesResponse": { + "base": null, + "refs": { + } + }, + "ListDevelopmentSchemaArnsRequest": { + "base": null, + "refs": { + } + }, + "ListDevelopmentSchemaArnsResponse": { + "base": null, + "refs": { + } + }, + "ListDirectoriesRequest": { + "base": null, + "refs": { + } + }, + "ListDirectoriesResponse": { + "base": null, + "refs": { + } + }, + "ListFacetAttributesRequest": { + "base": null, + "refs": { + } + }, + "ListFacetAttributesResponse": { + "base": null, + "refs": { + } + }, + "ListFacetNamesRequest": { + "base": null, + "refs": { + } + }, + "ListFacetNamesResponse": { + "base": null, + "refs": { + } + }, + "ListIndexRequest": { + "base": null, + "refs": { + } + }, + "ListIndexResponse": { + "base": null, + "refs": { + } + }, + "ListObjectAttributesRequest": { + "base": null, + "refs": { + } + }, + "ListObjectAttributesResponse": { + "base": null, + "refs": { + } + }, + "ListObjectChildrenRequest": { + "base": null, + "refs": { + } + }, + "ListObjectChildrenResponse": { + "base": null, + "refs": { + } + }, + "ListObjectParentPathsRequest": { + "base": null, + "refs": { + } + }, + "ListObjectParentPathsResponse": { + "base": null, + "refs": { + } + }, + "ListObjectParentsRequest": { + "base": null, + "refs": { + } + }, + "ListObjectParentsResponse": { + "base": null, + "refs": { + } + }, + "ListObjectPoliciesRequest": { + "base": null, + "refs": { + } + }, + "ListObjectPoliciesResponse": { + "base": null, + "refs": { + } + }, + "ListPolicyAttachmentsRequest": { + "base": null, + "refs": { + } + }, + "ListPolicyAttachmentsResponse": { + "base": null, + "refs": { + } + }, + "ListPublishedSchemaArnsRequest": { + "base": null, + "refs": { + } + }, + "ListPublishedSchemaArnsResponse": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceRequest": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceResponse": { + "base": null, + "refs": { + } + }, + "LookupPolicyRequest": { + "base": null, + "refs": { + } + }, + "LookupPolicyResponse": { + "base": null, + "refs": { + } + }, + "NextToken": { + "base": null, + "refs": { + "BatchListObjectAttributes$NextToken": "

The pagination token.

", + "BatchListObjectAttributesResponse$NextToken": "

The pagination token.

", + "BatchListObjectChildren$NextToken": "

The pagination token.

", + "BatchListObjectChildrenResponse$NextToken": "

The pagination token.

", + "ListAppliedSchemaArnsRequest$NextToken": "

The pagination token.

", + "ListAppliedSchemaArnsResponse$NextToken": "

The pagination token.

", + "ListAttachedIndicesRequest$NextToken": "

The pagination token.

", + "ListAttachedIndicesResponse$NextToken": "

The pagination token.

", + "ListDevelopmentSchemaArnsRequest$NextToken": "

The pagination token.

", + "ListDevelopmentSchemaArnsResponse$NextToken": "

The pagination token.

", + "ListDirectoriesRequest$NextToken": "

The pagination token.

", + "ListDirectoriesResponse$NextToken": "

The pagination token.

", + "ListFacetAttributesRequest$NextToken": "

The pagination token.

", + "ListFacetAttributesResponse$NextToken": "

The pagination token.

", + "ListFacetNamesRequest$NextToken": "

The pagination token.

", + "ListFacetNamesResponse$NextToken": "

The pagination token.

", + "ListIndexRequest$NextToken": "

The pagination token.

", + "ListIndexResponse$NextToken": "

The pagination token.

", + "ListObjectAttributesRequest$NextToken": "

The pagination token.

", + "ListObjectAttributesResponse$NextToken": "

The pagination token.

", + "ListObjectChildrenRequest$NextToken": "

The pagination token.

", + "ListObjectChildrenResponse$NextToken": "

The pagination token.

", + "ListObjectParentPathsRequest$NextToken": "

The pagination token.

", + "ListObjectParentPathsResponse$NextToken": "

The pagination token.

", + "ListObjectParentsRequest$NextToken": "

The pagination token.

", + "ListObjectParentsResponse$NextToken": "

The pagination token.

", + "ListObjectPoliciesRequest$NextToken": "

The pagination token.

", + "ListObjectPoliciesResponse$NextToken": "

The pagination token.

", + "ListPolicyAttachmentsRequest$NextToken": "

The pagination token.

", + "ListPolicyAttachmentsResponse$NextToken": "

The pagination token.

", + "ListPublishedSchemaArnsRequest$NextToken": "

The pagination token.

", + "ListPublishedSchemaArnsResponse$NextToken": "

The pagination token.

", + "ListTagsForResourceRequest$NextToken": "

The pagination token. This is for future use. Currently pagination is not supported for tagging.

", + "ListTagsForResourceResponse$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "LookupPolicyRequest$NextToken": "

The token to request the next page of results.

", + "LookupPolicyResponse$NextToken": "

The pagination token.

" + } + }, + "NotIndexException": { + "base": "

Indicates the requested operation can only operate on index objects.

", + "refs": { + } + }, + "NotNodeException": { + "base": "

Occurs when any invalid operations are performed on an object which is not a node, such as calling ListObjectChildren for a leaf node object.

", + "refs": { + } + }, + "NotPolicyException": { + "base": "

Indicates the requested operation can only operate on policy objects.

", + "refs": { + } + }, + "NumberAttributeValue": { + "base": null, + "refs": { + "TypedAttributeValue$NumberValue": "

A number data value.

" + } + }, + "NumberResults": { + "base": null, + "refs": { + "BatchListObjectAttributes$MaxResults": "

Maximum number of items to be retrieved in a single call. This is an approximate number.

", + "BatchListObjectChildren$MaxResults": "

Maximum number of items to be retrieved in a single call. This is an approximate number.

", + "ListAppliedSchemaArnsRequest$MaxResults": "

The maximum number of results to retrieve.

", + "ListAttachedIndicesRequest$MaxResults": "

The maximum number of results to retrieve.

", + "ListDevelopmentSchemaArnsRequest$MaxResults": "

The maximum number of results to retrieve.

", + "ListDirectoriesRequest$MaxResults": "

The maximum number of results to retrieve.

", + "ListFacetAttributesRequest$MaxResults": "

The maximum number of results to retrieve.

", + "ListFacetNamesRequest$MaxResults": "

The maximum number of results to retrieve

", + "ListIndexRequest$MaxResults": "

The maximum number of results to retrieve from the index.

", + "ListObjectAttributesRequest$MaxResults": "

Maximum number of items to be retrieved in a single call. This is an approximate number.

", + "ListObjectChildrenRequest$MaxResults": "

Maximum number of items to be retrieved in a single call. This is an approximate number.

", + "ListObjectParentPathsRequest$MaxResults": "

Maximum number of items to be retrieved in a single call. This is an approximate number.

", + "ListObjectParentsRequest$MaxResults": "

Maximum number of items to be retrieved in a single call. This is an approximate number.

", + "ListObjectPoliciesRequest$MaxResults": "

Maximum number of items to be retrieved in a single call. This is an approximate number.

", + "ListPolicyAttachmentsRequest$MaxResults": "

Maximum number of items to be retrieved in a single call. This is an approximate number.

", + "ListPublishedSchemaArnsRequest$MaxResults": "

The maximum number of results to retrieve.

", + "LookupPolicyRequest$MaxResults": "

Maximum number of items to be retrieved in a single call. This is an approximate number.

" + } + }, + "ObjectAlreadyDetachedException": { + "base": "

Indicates the object is not attached to the index.

", + "refs": { + } + }, + "ObjectAttributeAction": { + "base": "

The action to take on the object attribute.

", + "refs": { + "ObjectAttributeUpdate$ObjectAttributeAction": "

The action to perform as part of the attribute update.

" + } + }, + "ObjectAttributeRange": { + "base": "

A range of attributes.

", + "refs": { + "ObjectAttributeRangeList$member": null + } + }, + "ObjectAttributeRangeList": { + "base": null, + "refs": { + "ListIndexRequest$RangesOnIndexedValues": "

Specifies the ranges of indexed values that you want to query.

" + } + }, + "ObjectAttributeUpdate": { + "base": "

Structure that contains attribute update information.

", + "refs": { + "ObjectAttributeUpdateList$member": null + } + }, + "ObjectAttributeUpdateList": { + "base": null, + "refs": { + "BatchUpdateObjectAttributes$AttributeUpdates": "

Attributes update structure.

", + "UpdateObjectAttributesRequest$AttributeUpdates": "

Attributes update structure.

" + } + }, + "ObjectIdentifier": { + "base": null, + "refs": { + "AttachObjectResponse$AttachedObjectIdentifier": "

Attached ObjectIdentifier, which is the child ObjectIdentifier.

", + "AttachToIndexResponse$AttachedObjectIdentifier": "

The ObjectIdentifier of the object that was attached to the index.

", + "BatchAttachObjectResponse$attachedObjectIdentifier": "

The ObjectIdentifier of the object that has been attached.

", + "BatchCreateObjectResponse$ObjectIdentifier": "

ID associated with the object.

", + "BatchDetachObjectResponse$detachedObjectIdentifier": "

The ObjectIdentifier of the detached object.

", + "BatchUpdateObjectAttributesResponse$ObjectIdentifier": "

ID associated with the object.

", + "CreateDirectoryResponse$ObjectIdentifier": "

The root object node of the created directory.

", + "CreateIndexResponse$ObjectIdentifier": "

The ObjectIdentifier of the index created by this operation.

", + "CreateObjectResponse$ObjectIdentifier": "

Identifier associated with the object.

", + "DetachFromIndexResponse$DetachedObjectIdentifier": "

The ObjectIdentifier of the object that was detached from the index.

", + "DetachObjectResponse$DetachedObjectIdentifier": "

The ObjectIdentifier that was detached from the object.

", + "GetObjectInformationResponse$ObjectIdentifier": "

The ObjectIdentifier of the specified object.

", + "IndexAttachment$ObjectIdentifier": "

The ObjectIdentifier of the object attached to the index.

", + "LinkNameToObjectIdentifierMap$value": null, + "ObjectIdentifierList$member": null, + "ObjectIdentifierToLinkNameMap$key": null, + "PolicyAttachment$PolicyId": "

The ID of PolicyAttachment.

", + "PolicyAttachment$ObjectIdentifier": "

The ObjectIdentifier associated with PolicyAttachment.

", + "UpdateObjectAttributesResponse$ObjectIdentifier": "

ObjectIdentifier of the updated object.

" + } + }, + "ObjectIdentifierList": { + "base": null, + "refs": { + "ListObjectPoliciesResponse$AttachedPolicyIds": "

List of policy ObjectIdentifiers, that are attached to the object.

", + "ListPolicyAttachmentsResponse$ObjectIdentifiers": "

List of ObjectIdentifiers to which the policy is attached.

", + "PathToObjectIdentifiers$ObjectIdentifiers": "

Lists ObjectIdentifiers starting from directory root to the object in the request.

" + } + }, + "ObjectIdentifierToLinkNameMap": { + "base": null, + "refs": { + "ListObjectParentsResponse$Parents": "

Parent structure, which is a map with key as the ObjectIdentifier and LinkName as the value.

" + } + }, + "ObjectNotDetachedException": { + "base": "

Indicates the requested operation cannot be completed because the object has not been detached from the tree.

", + "refs": { + } + }, + "ObjectReference": { + "base": "

Reference that identifies an object.

", + "refs": { + "AddFacetToObjectRequest$ObjectReference": "

A reference to the object you are adding the specified facet to.

", + "AttachObjectRequest$ParentReference": "

Parent object reference.

", + "AttachObjectRequest$ChildReference": "

Child object reference to be attached to the object.

", + "AttachPolicyRequest$PolicyReference": "

Reference associated with the policy object.

", + "AttachPolicyRequest$ObjectReference": "

Reference that identifies the object to which the policy will be attached.

", + "AttachToIndexRequest$IndexReference": "

A reference to the index that you are attaching the object to.

", + "AttachToIndexRequest$TargetReference": "

A reference to the object that you are attaching to the index.

", + "BatchAddFacetToObject$ObjectReference": "

A reference to the object being mutated.

", + "BatchAttachObject$ParentReference": "

Parent object reference.

", + "BatchAttachObject$ChildReference": "

Child object reference to be attached to the object.

", + "BatchCreateObject$ParentReference": "

If specified, the parent reference to which this object will be attached.

", + "BatchDeleteObject$ObjectReference": "

Reference that identifies the object.

", + "BatchDetachObject$ParentReference": "

Parent reference from which the object with the specified link name is detached.

", + "BatchListObjectAttributes$ObjectReference": "

Reference of the object whose attributes need to be listed.

", + "BatchListObjectChildren$ObjectReference": "

Reference of the object for which child objects are being listed.

", + "BatchRemoveFacetFromObject$ObjectReference": "

A reference to the object whose facet will be removed.

", + "BatchUpdateObjectAttributes$ObjectReference": "

Reference that identifies the object.

", + "CreateIndexRequest$ParentReference": "

A reference to the parent object that contains the index object.

", + "CreateObjectRequest$ParentReference": "

If specified, the parent reference to which this object will be attached.

", + "DeleteObjectRequest$ObjectReference": "

Reference that identifies the object.

", + "DetachFromIndexRequest$IndexReference": "

A reference to the index object.

", + "DetachFromIndexRequest$TargetReference": "

A reference to the object being detached from the index.

", + "DetachObjectRequest$ParentReference": "

Parent reference from which the object with the specified link name is detached.

", + "DetachPolicyRequest$PolicyReference": "

Reference that identifies the policy object.

", + "DetachPolicyRequest$ObjectReference": "

Reference that identifies the object whose policy object will be detached.

", + "GetObjectInformationRequest$ObjectReference": "

A reference to the object.

", + "ListAttachedIndicesRequest$TargetReference": "

A reference to the object to that has indices attached.

", + "ListIndexRequest$IndexReference": "

The reference to the index to list.

", + "ListObjectAttributesRequest$ObjectReference": "

Reference that identifies the object whose attributes will be listed.

", + "ListObjectChildrenRequest$ObjectReference": "

Reference that identifies the object for which child objects are being listed.

", + "ListObjectParentPathsRequest$ObjectReference": "

Reference that identifies the object whose parent paths are listed.

", + "ListObjectParentsRequest$ObjectReference": "

Reference that identifies the object for which parent objects are being listed.

", + "ListObjectPoliciesRequest$ObjectReference": "

Reference that identifies the object for which policies will be listed.

", + "ListPolicyAttachmentsRequest$PolicyReference": "

Reference that identifies the policy object.

", + "LookupPolicyRequest$ObjectReference": "

Reference that identifies the object whose policies will be looked up.

", + "RemoveFacetFromObjectRequest$ObjectReference": "

A reference to the object to remove the facet from.

", + "UpdateObjectAttributesRequest$ObjectReference": "

Reference that identifies the object.

" + } + }, + "ObjectType": { + "base": null, + "refs": { + "CreateFacetRequest$ObjectType": "

Specifies whether a given object created from this facet is of type Node, Leaf Node, Policy or Index.

  • Node: Can have multiple children but one parent.

  • Leaf Node: Cannot have children but can have multiple parents.

  • Policy: Allows you to store a policy document and policy type. For more information, see Policies.

  • Index: Can be created with the Index API.

", + "Facet$ObjectType": "

Object type associated with the facet. See CreateFacetRequest$ObjectType for more details.

", + "UpdateFacetRequest$ObjectType": "

Object type associated with the facet. See CreateFacetRequest$ObjectType for more details.

" + } + }, + "PathString": { + "base": null, + "refs": { + "PathToObjectIdentifiers$Path": "

The path used to identify the object starting from directory root.

", + "PolicyToPath$Path": "

The path that is referenced from the root.

" + } + }, + "PathToObjectIdentifiers": { + "base": "

Returns the path to the ObjectIdentifiers associated with the directory.

", + "refs": { + "PathToObjectIdentifiersList$member": null + } + }, + "PathToObjectIdentifiersList": { + "base": null, + "refs": { + "ListObjectParentPathsResponse$PathToObjectIdentifiersList": "

Returns the path to the ObjectIdentifiers associated with the directory.

" + } + }, + "PolicyAttachment": { + "base": "

Contains the PolicyType, PolicyId, and the ObjectIdentifier to which it is attached.

", + "refs": { + "PolicyAttachmentList$member": null + } + }, + "PolicyAttachmentList": { + "base": null, + "refs": { + "PolicyToPath$Policies": "

List of policy objects.

" + } + }, + "PolicyToPath": { + "base": "

Used when a regular object exists in a Directory and you want to find all of the policies associated with that object and the parent to that object.

", + "refs": { + "PolicyToPathList$member": null + } + }, + "PolicyToPathList": { + "base": null, + "refs": { + "LookupPolicyResponse$PolicyToPathList": "

Provides list of path to policies. Policies contain PolicyId, ObjectIdentifier, and PolicyType.

" + } + }, + "PolicyType": { + "base": null, + "refs": { + "PolicyAttachment$PolicyType": "

The type of policy that can be associated with PolicyAttachment.

" + } + }, + "PublishSchemaRequest": { + "base": null, + "refs": { + } + }, + "PublishSchemaResponse": { + "base": null, + "refs": { + } + }, + "PutSchemaFromJsonRequest": { + "base": null, + "refs": { + } + }, + "PutSchemaFromJsonResponse": { + "base": null, + "refs": { + } + }, + "RangeMode": { + "base": null, + "refs": { + "TypedAttributeValueRange$StartMode": "

Inclusive or exclusive range start.

", + "TypedAttributeValueRange$EndMode": "

Inclusive or exclusive range end.

" + } + }, + "RemoveFacetFromObjectRequest": { + "base": null, + "refs": { + } + }, + "RemoveFacetFromObjectResponse": { + "base": null, + "refs": { + } + }, + "RequiredAttributeBehavior": { + "base": null, + "refs": { + "FacetAttribute$RequiredBehavior": "

The required behavior of the FacetAttribute.

" + } + }, + "ResourceNotFoundException": { + "base": "

The specified resource could not be found.

", + "refs": { + } + }, + "RetryableConflictException": { + "base": "

Occurs when a conflict with a previous successful write is detected. For example, if a write operation occurs on an object and then an attempt is made to read the object using “SERIALIZABLE” consistency, this exception may result. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.

", + "refs": { + } + }, + "Rule": { + "base": "

Contains an ARN and parameters associated with the rule.

", + "refs": { + "RuleMap$value": null + } + }, + "RuleKey": { + "base": null, + "refs": { + "RuleMap$key": null + } + }, + "RuleMap": { + "base": null, + "refs": { + "FacetAttributeDefinition$Rules": "

Validation rules attached to the attribute definition.

" + } + }, + "RuleParameterKey": { + "base": null, + "refs": { + "RuleParameterMap$key": null + } + }, + "RuleParameterMap": { + "base": null, + "refs": { + "Rule$Parameters": "

Min and max parameters associated with the rule.

" + } + }, + "RuleParameterValue": { + "base": null, + "refs": { + "RuleParameterMap$value": null + } + }, + "RuleType": { + "base": null, + "refs": { + "Rule$Type": "

The type of attribute validation rule.

" + } + }, + "SchemaAlreadyExistsException": { + "base": "

Indicates that a schema could not be created due to a naming conflict. Please select a different name and then try again.

", + "refs": { + } + }, + "SchemaAlreadyPublishedException": { + "base": "

Indicates a schema is already published.

", + "refs": { + } + }, + "SchemaFacet": { + "base": "

A facet.

", + "refs": { + "AddFacetToObjectRequest$SchemaFacet": "

Identifiers for the facet that you are adding to the object.

", + "BatchAddFacetToObject$SchemaFacet": "

Represents the facet being added to the object.

", + "BatchRemoveFacetFromObject$SchemaFacet": "

The facet to remove from the object.

", + "RemoveFacetFromObjectRequest$SchemaFacet": "

The facet to remove.

", + "SchemaFacetList$member": null + } + }, + "SchemaFacetList": { + "base": null, + "refs": { + "BatchCreateObject$SchemaFacet": "

List of FacetArns that will be associated with the object. For more information, see arns.

", + "CreateObjectRequest$SchemaFacets": "

List of facet ARNs to be associated with the object. For more information, see arns.

", + "GetObjectInformationResponse$SchemaFacets": "

The facets attached to the specified object.

" + } + }, + "SchemaJsonDocument": { + "base": null, + "refs": { + "GetSchemaAsJsonResponse$Document": "

The JSON representation of the schema document.

", + "PutSchemaFromJsonRequest$Document": "

The replacement JSON schema.

" + } + }, + "SchemaName": { + "base": null, + "refs": { + "CreateSchemaRequest$Name": "

Name associated with the schema. This is unique to each account and in each region.

", + "GetSchemaAsJsonResponse$Name": "

The name of the retrieved schema.

", + "PublishSchemaRequest$Name": "

New name under which the schema will be published. If this is not provided, the development schema is considered.

", + "UpdateSchemaRequest$Name": "

Name of the schema.

" + } + }, + "SelectorObjectReference": { + "base": null, + "refs": { + "ObjectReference$Selector": "

Allows you to specify an object. You can identify an object in one of the following ways:

  • $ObjectIdentifier - Identifies the object by ObjectIdentifier

  • /some/path - Identifies the object based on path

  • #SomeBatchReference - Identifies the object in a batch call

" + } + }, + "StillContainsLinksException": { + "base": "

The object could not be deleted because links still exist. Remove the links and then try the operation again.

", + "refs": { + } + }, + "StringAttributeValue": { + "base": null, + "refs": { + "TypedAttributeValue$StringValue": "

A string data value.

" + } + }, + "Tag": { + "base": "

Tag structure which contains tag key and value.

", + "refs": { + "TagList$member": null + } + }, + "TagKey": { + "base": null, + "refs": { + "Tag$Key": "

Key associated with the tag.

", + "TagKeyList$member": null + } + }, + "TagKeyList": { + "base": null, + "refs": { + "UntagResourceRequest$TagKeys": "

Keys of the tag that needs to be removed from the resource.

" + } + }, + "TagList": { + "base": null, + "refs": { + "ListTagsForResourceResponse$Tags": "

List of tag key value pairs associated with the response.

", + "TagResourceRequest$Tags": "

List of tag key value pairs.

" + } + }, + "TagResourceRequest": { + "base": null, + "refs": { + } + }, + "TagResourceResponse": { + "base": null, + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "Tag$Value": "

Value associated with the tag.

" + } + }, + "TagsNumberResults": { + "base": null, + "refs": { + "ListTagsForResourceRequest$MaxResults": "

The MaxResults parameter sets the maximum number of results returned in a single page. This is for future use and is not supported currently.

" + } + }, + "TypedAttributeValue": { + "base": "

Represents the data for a typed attribute. You can set one, and only one, of the elements. Each attribute in an item is a name-value pair. Attributes have a single value.

", + "refs": { + "AttributeKeyAndValue$Value": "

The value of the attribute.

", + "FacetAttributeDefinition$DefaultValue": "

The default value of the attribute (if configured).

", + "ObjectAttributeAction$ObjectAttributeUpdateValue": "

The value that you want to update to.

", + "TypedAttributeValueRange$StartValue": "

The value to start the range at.

", + "TypedAttributeValueRange$EndValue": "

The attribute value to terminate the range at.

" + } + }, + "TypedAttributeValueRange": { + "base": "

A range of attribute values.

", + "refs": { + "ObjectAttributeRange$Range": "

The range of attribute values being selected.

" + } + }, + "UnsupportedIndexTypeException": { + "base": "

Indicates the requested index type is not supported.

", + "refs": { + } + }, + "UntagResourceRequest": { + "base": null, + "refs": { + } + }, + "UntagResourceResponse": { + "base": null, + "refs": { + } + }, + "UpdateActionType": { + "base": null, + "refs": { + "FacetAttributeUpdate$Action": "

The action to perform when updating the attribute.

", + "ObjectAttributeAction$ObjectAttributeActionType": "

Type can be either Update or Delete.

" + } + }, + "UpdateFacetRequest": { + "base": null, + "refs": { + } + }, + "UpdateFacetResponse": { + "base": null, + "refs": { + } + }, + "UpdateObjectAttributesRequest": { + "base": null, + "refs": { + } + }, + "UpdateObjectAttributesResponse": { + "base": null, + "refs": { + } + }, + "UpdateSchemaRequest": { + "base": null, + "refs": { + } + }, + "UpdateSchemaResponse": { + "base": null, + "refs": { + } + }, + "ValidationException": { + "base": "

Indicates your request is malformed in some manner. See the exception message.

", + "refs": { + } + }, + "Version": { + "base": null, + "refs": { + "PublishSchemaRequest$Version": "

Version under which the schema will be published.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2016-05-10/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2016-05-10/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2016-05-10/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2016-05-10/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2016-05-10/paginators-1.json new file mode 100644 index 000000000..3a3890c98 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2016-05-10/paginators-1.json @@ -0,0 +1,84 @@ +{ + "pagination": { + "ListAppliedSchemaArns": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListAttachedIndices": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListDevelopmentSchemaArns": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListDirectories": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListFacetAttributes": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListFacetNames": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListIndex": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListObjectAttributes": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListObjectChildren": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListObjectParentPaths": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListObjectParents": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListObjectPolicies": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListPolicyAttachments": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListPublishedSchemaArns": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListTagsForResource": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "LookupPolicy": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/api-2.json index 543361ebe..1a923accf 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/api-2.json @@ -6,6 +6,7 @@ "protocol":"query", "serviceFullName":"AWS CloudFormation", "signatureVersion":"v4", + "uid":"cloudformation-2010-05-15", "xmlNamespace":"http://cloudformation.amazonaws.com/doc/2010-05-15/" }, "operations":{ @@ -186,7 +187,8 @@ }, "errors":[ {"shape":"InvalidChangeSetStatusException"}, - {"shape":"ChangeSetNotFoundException"} + {"shape":"ChangeSetNotFoundException"}, + {"shape":"InsufficientCapabilitiesException"} ] }, "GetStackPolicy":{ @@ -211,7 +213,10 @@ "output":{ "shape":"GetTemplateOutput", "resultWrapper":"GetTemplateResult" - } + }, + "errors":[ + {"shape":"ChangeSetNotFoundException"} + ] }, "GetTemplateSummary":{ "name":"GetTemplateSummary", @@ -237,6 +242,30 @@ "resultWrapper":"ListChangeSetsResult" } }, + "ListExports":{ + "name":"ListExports", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListExportsInput"}, + "output":{ + "shape":"ListExportsOutput", + "resultWrapper":"ListExportsResult" + } + }, + "ListImports":{ + "name":"ListImports", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListImportsInput"}, + "output":{ + "shape":"ListImportsOutput", + "resultWrapper":"ListImportsResult" + } + }, "ListStackResources":{ "name":"ListStackResources", "http":{ @@ -425,6 +454,13 @@ "Description":{"shape":"Description"} } }, + "ChangeSetType":{ + "type":"string", + "enum":[ + "CREATE", + "UPDATE" + ] + }, "ChangeSource":{ "type":"string", "enum":[ @@ -453,7 +489,8 @@ "required":["StackName"], "members":{ "StackName":{"shape":"StackNameOrId"}, - "RoleARN":{"shape":"RoleARN"} + "RoleARN":{"shape":"RoleARN"}, + "ResourcesToSkip":{"shape":"ResourcesToSkip"} } }, "ContinueUpdateRollbackOutput":{ @@ -480,13 +517,15 @@ "Tags":{"shape":"Tags"}, "ChangeSetName":{"shape":"ChangeSetName"}, "ClientToken":{"shape":"ClientToken"}, - "Description":{"shape":"Description"} + "Description":{"shape":"Description"}, + "ChangeSetType":{"shape":"ChangeSetType"} } }, "CreateChangeSetOutput":{ "type":"structure", "members":{ - "Id":{"shape":"ChangeSetId"} + "Id":{"shape":"ChangeSetId"}, + "StackId":{"shape":"StackId"} } }, "CreateStackInput":{ @@ -692,6 +731,20 @@ "OBSOLETE" ] }, + "Export":{ + "type":"structure", + "members":{ + "ExportingStackId":{"shape":"StackId"}, + "Name":{"shape":"ExportName"}, + "Value":{"shape":"ExportValue"} + } + }, + "ExportName":{"type":"string"}, + "ExportValue":{"type":"string"}, + "Exports":{ + "type":"list", + "member":{"shape":"Export"} + }, "GetStackPolicyInput":{ "type":"structure", "required":["StackName"], @@ -707,15 +760,17 @@ }, "GetTemplateInput":{ "type":"structure", - "required":["StackName"], "members":{ - "StackName":{"shape":"StackName"} + "StackName":{"shape":"StackName"}, + "ChangeSetName":{"shape":"ChangeSetNameOrId"}, + "TemplateStage":{"shape":"TemplateStage"} } }, "GetTemplateOutput":{ "type":"structure", "members":{ - "TemplateBody":{"shape":"TemplateBody"} + "TemplateBody":{"shape":"TemplateBody"}, + "StagesAvailable":{"shape":"StageList"} } }, "GetTemplateSummaryInput":{ @@ -735,9 +790,14 @@ "CapabilitiesReason":{"shape":"CapabilitiesReason"}, "ResourceTypes":{"shape":"ResourceTypes"}, "Version":{"shape":"Version"}, - "Metadata":{"shape":"Metadata"} + "Metadata":{"shape":"Metadata"}, + "DeclaredTransforms":{"shape":"TransformsList"} } }, + "Imports":{ + "type":"list", + "member":{"shape":"StackName"} + }, "InsufficientCapabilitiesException":{ "type":"structure", "members":{ @@ -789,6 +849,34 @@ "NextToken":{"shape":"NextToken"} } }, + "ListExportsInput":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"} + } + }, + "ListExportsOutput":{ + "type":"structure", + "members":{ + "Exports":{"shape":"Exports"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListImportsInput":{ + "type":"structure", + "required":["ExportName"], + "members":{ + "ExportName":{"shape":"ExportName"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListImportsOutput":{ + "type":"structure", + "members":{ + "Imports":{"shape":"Imports"}, + "NextToken":{"shape":"NextToken"} + } + }, "ListStackResourcesInput":{ "type":"structure", "required":["StackName"], @@ -981,6 +1069,10 @@ "RequiresRecreation":{"shape":"RequiresRecreation"} } }, + "ResourceToSkip":{ + "type":"string", + "pattern":"[a-zA-Z0-9]+|[a-zA-Z][-a-zA-Z0-9]*\\.[a-zA-Z0-9]+" + }, "ResourceType":{ "type":"string", "max":256, @@ -990,6 +1082,10 @@ "type":"list", "member":{"shape":"ResourceType"} }, + "ResourcesToSkip":{ + "type":"list", + "member":{"shape":"ResourceToSkip"} + }, "RetainResources":{ "type":"list", "member":{"shape":"LogicalResourceId"} @@ -1037,6 +1133,7 @@ "members":{ "StackId":{"shape":"StackId"}, "StackName":{"shape":"StackName"}, + "ChangeSetId":{"shape":"ChangeSetId"}, "Description":{"shape":"Description"}, "Parameters":{"shape":"Parameters"}, "CreationTime":{"shape":"CreationTime"}, @@ -1188,7 +1285,8 @@ "UPDATE_ROLLBACK_IN_PROGRESS", "UPDATE_ROLLBACK_FAILED", "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS", - "UPDATE_ROLLBACK_COMPLETE" + "UPDATE_ROLLBACK_COMPLETE", + "REVIEW_IN_PROGRESS" ] }, "StackStatusFilter":{ @@ -1222,6 +1320,10 @@ "type":"list", "member":{"shape":"Stack"} }, + "StageList":{ + "type":"list", + "member":{"shape":"TemplateStage"} + }, "Tag":{ "type":"structure", "members":{ @@ -1253,6 +1355,13 @@ "type":"list", "member":{"shape":"TemplateParameter"} }, + "TemplateStage":{ + "type":"string", + "enum":[ + "Original", + "Processed" + ] + }, "TemplateURL":{ "type":"string", "max":1024, @@ -1263,6 +1372,11 @@ "min":1 }, "Timestamp":{"type":"timestamp"}, + "TransformName":{"type":"string"}, + "TransformsList":{ + "type":"list", + "member":{"shape":"TransformName"} + }, "UpdateStackInput":{ "type":"structure", "required":["StackName"], @@ -1305,7 +1419,8 @@ "Parameters":{"shape":"TemplateParameters"}, "Description":{"shape":"Description"}, "Capabilities":{"shape":"Capabilities"}, - "CapabilitiesReason":{"shape":"CapabilitiesReason"} + "CapabilitiesReason":{"shape":"CapabilitiesReason"}, + "DeclaredTransforms":{"shape":"TransformsList"} } }, "Version":{"type":"string"} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/docs-2.json index a4b2aa123..b4e0c3375 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/docs-2.json @@ -1,10 +1,10 @@ { "version": "2.0", - "service": "AWS CloudFormation

AWS CloudFormation enables you to create and manage AWS infrastructure deployments predictably and repeatedly. AWS CloudFormation helps you leverage AWS products such as Amazon EC2, EBS, Amazon SNS, ELB, and Auto Scaling to build highly-reliable, highly scalable, cost effective applications without worrying about creating and configuring the underlying AWS infrastructure.

With AWS CloudFormation, you declare all of your resources and dependencies in a template file. The template defines a collection of resources as a single unit called a stack. AWS CloudFormation creates and deletes all member resources of the stack together and manages all dependencies between the resources for you.

For more information about this product, go to the CloudFormation Product Page.

Amazon CloudFormation makes use of other AWS products. If you need additional technical information about a specific AWS product, you can find the product's technical documentation at http://docs.aws.amazon.com/.

", + "service": "AWS CloudFormation

AWS CloudFormation allows you to create and manage AWS infrastructure deployments predictably and repeatedly. You can use AWS CloudFormation to leverage AWS products, such as Amazon Elastic Compute Cloud, Amazon Elastic Block Store, Amazon Simple Notification Service, Elastic Load Balancing, and Auto Scaling to build highly-reliable, highly scalable, cost-effective applications without creating or configuring the underlying AWS infrastructure.

With AWS CloudFormation, you declare all of your resources and dependencies in a template file. The template defines a collection of resources as a single unit called a stack. AWS CloudFormation creates and deletes all member resources of the stack together and manages all dependencies between the resources for you.

For more information about AWS CloudFormation, see the AWS CloudFormation Product Page.

Amazon CloudFormation makes use of other AWS products. For additional technical information about a specific AWS product, see its technical documentation.

", "operations": { "CancelUpdateStack": "

Cancels an update on the specified stack. If the call completes successfully, the stack rolls back the update and reverts to the previous stack configuration.

You can cancel only stacks that are in the UPDATE_IN_PROGRESS state.

", "ContinueUpdateRollback": "

For a specified stack that is in the UPDATE_ROLLBACK_FAILED state, continues rolling it back to the UPDATE_ROLLBACK_COMPLETE state. Depending on the cause of the failure, you can manually fix the error and continue the rollback. By continuing the rollback, you can return your stack to a working state (the UPDATE_ROLLBACK_COMPLETE state), and then try to update the stack again.

A stack goes into the UPDATE_ROLLBACK_FAILED state when AWS CloudFormation cannot roll back all changes after a failed stack update. For example, you might have a stack that is rolling back to an old database instance that was deleted outside of AWS CloudFormation. Because AWS CloudFormation doesn't know the database was deleted, it assumes that the database instance still exists and attempts to roll back to it, causing the update rollback to fail.

", - "CreateChangeSet": "

Creates a list of changes for a stack. AWS CloudFormation generates the change set by comparing the stack's information with the information that you submit. A change set can help you understand which resources AWS CloudFormation will change and how it will change them before you update your stack. Change sets allow you to check before you make a change so that you don't delete or replace critical resources.

AWS CloudFormation doesn't make any changes to the stack when you create a change set. To make the specified changes, you must execute the change set by using the ExecuteChangeSet action.

After the call successfully completes, AWS CloudFormation starts creating the change set. To check the status of the change set, use the DescribeChangeSet action.

", + "CreateChangeSet": "

Creates a list of changes for a stack. AWS CloudFormation generates the change set by comparing the template's information with the information that you submit. A change set can help you understand which resources AWS CloudFormation will change, and how it will change them, before you update your stack. Change sets allow you to check before making a change to avoid deleting or replacing critical resources.

AWS CloudFormation doesn't make any changes to the stack when you create a change set. To make the specified changes, you must execute the change set by using the ExecuteChangeSet action.

After the call successfully completes, AWS CloudFormation starts creating the change set. To check the status of the change set, use the DescribeChangeSet action.

", "CreateStack": "

Creates a stack as specified in the template. After the call completes successfully, the stack creation starts. You can check the status of the stack via the DescribeStacks API.

", "DeleteChangeSet": "

Deletes the specified change set. Deleting change sets ensures that no one executes the wrong change set.

If the call successfully completes, AWS CloudFormation successfully deleted the change set.

", "DeleteStack": "

Deletes a specified stack. Once the call completes successfully, stack deletion starts. Deleted stacks do not show up in the DescribeStacks API if the deletion has been completed successfully.

", @@ -20,6 +20,8 @@ "GetTemplate": "

Returns the template body for a specified stack. You can get the template for running or deleted stacks.

For deleted stacks, GetTemplate returns the template for up to 90 days after the stack has been deleted.

If the template does not exist, a ValidationError is returned.

", "GetTemplateSummary": "

Returns information about a new or existing template. The GetTemplateSummary action is useful for viewing parameter information, such as default parameter values and parameter types, before you create or update a stack.

You can use the GetTemplateSummary action when you submit a template, or you can get template information for a running or deleted stack.

For deleted stacks, GetTemplateSummary returns the template information for up to 90 days after the stack has been deleted. If the template does not exist, a ValidationError is returned.

", "ListChangeSets": "

Returns the ID and status of each active change set for a stack. For example, AWS CloudFormation lists change sets that are in the CREATE_IN_PROGRESS or CREATE_PENDING state.

", + "ListExports": "

Lists all exported output values in the account and region in which you call this action. Use this action to see the exported output values that you can import into other stacks. To import values, use the Fn::ImportValue function.

For more information, see AWS CloudFormation Export Stack Output Values.

", + "ListImports": "

Lists all stacks that are importing an exported output value. To modify or remove an exported output value, first use this action to see which stacks are using it. To see the exported output values in your account, see ListExports.

For more information about importing an exported output value, see the Fn::ImportValue function.

", "ListStackResources": "

Returns descriptions of all resources of the specified stack.

For deleted stacks, ListStackResources returns resource information for up to 90 days after the stack has been deleted.

", "ListStacks": "

Returns the summary information for stacks whose status matches the specified StackStatusFilter. Summary information for stacks that have been deleted is kept for 90 days after the stack is deleted. If no StackStatusFilter is specified, summary information for all stacks is returned (including existing stacks and stacks that have been deleted).

", "SetStackPolicy": "

Sets a stack policy for a specified stack.

", @@ -110,7 +112,8 @@ "refs": { "ChangeSetSummary$ChangeSetId": "

The ID of the change set.

", "CreateChangeSetOutput$Id": "

The Amazon Resource Name (ARN) of the change set.

", - "DescribeChangeSetOutput$ChangeSetId": "

The ARN of the change set.

" + "DescribeChangeSetOutput$ChangeSetId": "

The ARN of the change set.

", + "Stack$ChangeSetId": "

The unique ID of the change set.

" } }, "ChangeSetName": { @@ -126,7 +129,8 @@ "refs": { "DeleteChangeSetInput$ChangeSetName": "

The name or Amazon Resource Name (ARN) of the change set that you want to delete.

", "DescribeChangeSetInput$ChangeSetName": "

The name or Amazon Resource Name (ARN) of the change set that you want to describe.

", - "ExecuteChangeSetInput$ChangeSetName": "

The name or ARN of the change set that you want use to update the specified stack.

" + "ExecuteChangeSetInput$ChangeSetName": "

The name or ARN of the change set that you want use to update the specified stack.

", + "GetTemplateInput$ChangeSetName": "

The name or Amazon Resource Name (ARN) of a change set for which AWS CloudFormation returns the associated template. If you specify a name, you must also specify the StackName.

" } }, "ChangeSetNotFoundException": { @@ -160,6 +164,12 @@ "ChangeSetSummaries$member": null } }, + "ChangeSetType": { + "base": null, + "refs": { + "CreateChangeSetInput$ChangeSetType": "

The type of change set operation. To create a change set for a new stack, specify CREATE. To create a change set for an existing stack, specify UPDATE.

If you create a change set for a new stack, AWS Cloudformation creates a stack with a unique stack ID, but no template or resources. The stack will be in the REVIEW_IN_PROGRESS state until you execute the change set.

By default, AWS CloudFormation specifies UPDATE. You can't use the UPDATE type to create a change set for a new stack or the CREATE type to create a change set for an existing stack.

" + } + }, "ChangeSource": { "base": null, "refs": { @@ -366,6 +376,31 @@ "DescribeChangeSetOutput$ExecutionStatus": "

If the change set execution status is AVAILABLE, you can execute the change set. If you can’t execute the change set, the status indicates why. For example, a change set might be in an UNAVAILABLE state because AWS CloudFormation is still creating it or in an OBSOLETE state because the stack was already updated.

" } }, + "Export": { + "base": "

The Export structure describes the exported output values for a stack.

", + "refs": { + "Exports$member": null + } + }, + "ExportName": { + "base": null, + "refs": { + "Export$Name": "

The name of exported output value. Use this name and the Fn::ImportValue function to import the associated value into other stacks. The name is defined in the Export field in the associated stack's Outputs section.

", + "ListImportsInput$ExportName": "

The name of the exported output value. AWS CloudFormation returns the stack names that are importing this value.

" + } + }, + "ExportValue": { + "base": null, + "refs": { + "Export$Value": "

The value of the exported output, such as a resource physical ID. This value is defined in the Export field in the associated stack's Outputs section.

" + } + }, + "Exports": { + "base": null, + "refs": { + "ListExportsOutput$Exports": "

The output for the ListExports action.

" + } + }, "GetStackPolicyInput": { "base": "

The input for the GetStackPolicy action.

", "refs": { @@ -396,6 +431,12 @@ "refs": { } }, + "Imports": { + "base": null, + "refs": { + "ListImportsOutput$Imports": "

A list of stack names that are importing the specified exported output value.

" + } + }, "InsufficientCapabilitiesException": { "base": "

The template contains resources with capabilities that were not specified in the Capabilities parameter.

", "refs": { @@ -440,6 +481,26 @@ "refs": { } }, + "ListExportsInput": { + "base": null, + "refs": { + } + }, + "ListExportsOutput": { + "base": null, + "refs": { + } + }, + "ListImportsInput": { + "base": null, + "refs": { + } + }, + "ListImportsOutput": { + "base": null, + "refs": { + } + }, "ListStackResourcesInput": { "base": "

The input for the ListStackResource action.

", "refs": { @@ -494,6 +555,10 @@ "DescribeStacksOutput$NextToken": "

If the output exceeds 1 MB in size, a string that identifies the next page of stacks. If no additional page exists, this value is null.

", "ListChangeSetsInput$NextToken": "

A string (provided by the ListChangeSets response output) that identifies the next page of change sets that you want to retrieve.

", "ListChangeSetsOutput$NextToken": "

If the output exceeds 1 MB, a string that identifies the next page of change sets. If there is no additional page, this value is null.

", + "ListExportsInput$NextToken": "

A string (provided by the ListExports response output) that identifies the next page of exported output values that you asked to retrieve.

", + "ListExportsOutput$NextToken": "

If the output exceeds 100 exported output values, a string that identifies the next page of exports. If there is no additional page, this value is null.

", + "ListImportsInput$NextToken": "

A string (provided by the ListImports response output) that identifies the next page of stacks that are importing the specified exported output value.

", + "ListImportsOutput$NextToken": "

A string that identifies the next page of exports. If there is no additional page, this value is null.

", "ListStackResourcesInput$NextToken": "

A string that identifies the next page of stack resources that you want to retrieve.

", "ListStackResourcesOutput$NextToken": "

If the output exceeds 1 MB, a string that identifies the next page of stack resources. If no additional page exists, this value is null.

", "ListStacksInput$NextToken": "

A string that identifies the next page of stacks that you want to retrieve.

", @@ -706,6 +771,12 @@ "ResourceChangeDetail$Target": "

A ResourceTargetDefinition structure that describes the field that AWS CloudFormation will change and whether the resource will be recreated.

" } }, + "ResourceToSkip": { + "base": null, + "refs": { + "ResourcesToSkip$member": null + } + }, "ResourceType": { "base": null, "refs": { @@ -726,6 +797,12 @@ "UpdateStackInput$ResourceTypes": "

The template resource types that you have permissions to work with for this update stack action, such as AWS::EC2::Instance, AWS::EC2::*, or Custom::MyCustomInstance.

If the list of resource types doesn't include a resource that you're updating, the stack update fails. By default, AWS CloudFormation grants permissions to all resource types. AWS Identity and Access Management (IAM) uses this parameter for AWS CloudFormation-specific condition keys in IAM policies. For more information, see Controlling Access with AWS Identity and Access Management.

" } }, + "ResourcesToSkip": { + "base": null, + "refs": { + "ContinueUpdateRollbackInput$ResourcesToSkip": "

A list of the logical IDs of the resources that AWS CloudFormation skips during the continue update rollback operation. You can specify only resources that are in the UPDATE_FAILED state because a rollback failed. You can't specify resources that are in the UPDATE_FAILED state for other reasons, for example, because an update was canceled. To check why a resource update failed, use the DescribeStackResources action, and view the resource status reason.

Specify this property to skip rolling back resources that AWS CloudFormation can't successfully roll back. We recommend that you troubleshoot resources before skipping them. AWS CloudFormation sets the status of the specified resources to UPDATE_COMPLETE and continues to roll back the stack. After the rollback is complete, the state of the skipped resources will be inconsistent with the state of the resources in the stack template. Before performing another stack update, you must update the stack or resources to be consistent with each other. If you don't, subsequent stack updates might fail, and the stack will become unrecoverable.

Specify the minimum number of resources required to successfully roll back your stack. For example, a failed resource update might cause dependent resources to fail. In this case, it might not be necessary to skip the dependent resources.

To specify resources in a nested stack, use the following format: NestedStackName.ResourceLogicalID. You can specify a nested stack resource (the logical ID of an AWS::CloudFormation::Stack resource) only if it's in one of the following states: DELETE_IN_PROGRESS, DELETE_COMPLETE, or DELETE_FAILED.

" + } + }, "RetainResources": { "base": null, "refs": { @@ -736,7 +813,7 @@ "base": null, "refs": { "ContinueUpdateRollbackInput$RoleARN": "

The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that AWS CloudFormation assumes to roll back the stack. AWS CloudFormation uses the role's credentials to make calls on your behalf. AWS CloudFormation always uses this role for all future operations on the stack. As long as users have permission to operate on the stack, AWS CloudFormation uses this role even if the users don't have permission to pass it. Ensure that the role grants least privilege.

If you don't specify a value, AWS CloudFormation uses the role that was previously associated with the stack. If no role is available, AWS CloudFormation uses a temporary session that is generated from your user credentials.

", - "CreateChangeSetInput$RoleARN": "

The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that AWS CloudFormation assumes when executing the change set. AWS CloudFormation uses the role's credentials to make calls on your behalf. AWS CloudFormation always uses this role for all future operations on the stack. As long as users have permission to operate on the stack, AWS CloudFormation uses this role even if the users don't have permission to pass it. Ensure that the role grants least privilege.

If you don't specify a value, AWS CloudFormation uses the role that was previously associated with the stack. If no role is available, AWS CloudFormation uses a temporary session that is generated from your user credentials.

", + "CreateChangeSetInput$RoleARN": "

The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that AWS CloudFormation assumes when executing the change set. AWS CloudFormation uses the role's credentials to make calls on your behalf. AWS CloudFormation uses this role for all future operations on the stack. As long as users have permission to operate on the stack, AWS CloudFormation uses this role even if the users don't have permission to pass it. Ensure that the role grants least privilege.

If you don't specify a value, AWS CloudFormation uses the role that was previously associated with the stack. If no role is available, AWS CloudFormation uses a temporary session that is generated from your user credentials.

", "CreateStackInput$RoleARN": "

The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that AWS CloudFormation assumes to create the stack. AWS CloudFormation uses the role's credentials to make calls on your behalf. AWS CloudFormation always uses this role for all future operations on the stack. As long as users have permission to operate on the stack, AWS CloudFormation uses this role even if the users don't have permission to pass it. Ensure that the role grants least privilege.

If you don't specify a value, AWS CloudFormation uses the role that was previously associated with the stack. If no role is available, AWS CloudFormation uses a temporary session that is generated from your user credentials.

", "DeleteStackInput$RoleARN": "

The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that AWS CloudFormation assumes to delete the stack. AWS CloudFormation uses the role's credentials to make calls on your behalf.

If you don't specify a value, AWS CloudFormation uses the role that was previously associated with the stack. If no role is available, AWS CloudFormation uses a temporary session that is generated from your user credentials.

", "Stack$RoleARN": "

The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that is associated with the stack. During a stack operation, AWS CloudFormation uses this role's credentials to make calls on your behalf.

", @@ -781,8 +858,10 @@ "base": null, "refs": { "ChangeSetSummary$StackId": "

The ID of the stack with which the change set is associated.

", + "CreateChangeSetOutput$StackId": "

The unique ID of the stack.

", "CreateStackOutput$StackId": "

Unique identifier of the stack.

", "DescribeChangeSetOutput$StackId": "

The ARN of the stack that is associated with the change set.

", + "Export$ExportingStackId": "

The stack that contains the exported output name and value.

", "Stack$StackId": "

Unique identifier of the stack.

", "StackEvent$StackId": "

The unique ID name of the instance of the stack.

", "StackResource$StackId": "

Unique identifier of the stack.

", @@ -805,6 +884,7 @@ "DescribeStacksInput$StackName": "

The name or the unique stack ID that is associated with the stack, which are not always interchangeable:

  • Running stacks: You can specify either the stack's name or its unique stack ID.

  • Deleted stacks: You must specify the unique stack ID.

Default: There is no default value.

", "GetStackPolicyInput$StackName": "

The name or unique stack ID that is associated with the stack whose policy you want to get.

", "GetTemplateInput$StackName": "

The name or the unique stack ID that is associated with the stack, which are not always interchangeable:

  • Running stacks: You can specify either the stack's name or its unique stack ID.

  • Deleted stacks: You must specify the unique stack ID.

Default: There is no default value.

", + "Imports$member": null, "ListStackResourcesInput$StackName": "

The name or the unique stack ID that is associated with the stack, which are not always interchangeable:

  • Running stacks: You can specify either the stack's name or its unique stack ID.

  • Deleted stacks: You must specify the unique stack ID.

Default: There is no default value.

", "SetStackPolicyInput$StackName": "

The name or unique stack ID that you want to associate a policy with.

", "Stack$StackName": "

The name associated with the stack.

", @@ -818,7 +898,7 @@ "StackNameOrId": { "base": null, "refs": { - "ContinueUpdateRollbackInput$StackName": "

The name or the unique ID of the stack that you want to continue rolling back.

", + "ContinueUpdateRollbackInput$StackName": "

The name or the unique ID of the stack that you want to continue rolling back.

Don't specify the name of a nested stack (a stack that was created by using the AWS::CloudFormation::Stack resource). Instead, use this operation on the parent stack (the stack that contains the AWS::CloudFormation::Stack resource).

", "CreateChangeSetInput$StackName": "

The name or the unique ID of the stack for which you are creating a change set. AWS CloudFormation generates the change set by comparing this stack's information with the information that you submit, such as a modified template or different parameter input values.

", "DeleteChangeSetInput$StackName": "

If you specified the name of a change set to delete, specify the stack name or ID (ARN) that is associated with it.

", "DescribeChangeSetInput$StackName": "

If you specified the name of a change set, specify the stack name or ID (ARN) of the change set you want to describe.

", @@ -926,6 +1006,12 @@ "DescribeStacksOutput$Stacks": "

A list of stack structures.

" } }, + "StageList": { + "base": null, + "refs": { + "GetTemplateOutput$StagesAvailable": "

The stage of the template that you can retrieve. For stacks, the Original and Processed templates are always available. For change sets, the Original template is always available. After AWS CloudFormation finishes creating the change set, the Processed template becomes available.

" + } + }, "Tag": { "base": "

The Tag type enables you to specify a key-value pair that can be used to store information about an AWS CloudFormation stack.

", "refs": { @@ -984,6 +1070,13 @@ "ValidateTemplateOutput$Parameters": "

A list of TemplateParameter structures.

" } }, + "TemplateStage": { + "base": null, + "refs": { + "GetTemplateInput$TemplateStage": "

For templates that include transforms, the stage of the template that AWS CloudFormation returns. To get the user-submitted template, specify Original. To get the template after AWS CloudFormation has processed all transforms, specify Processed.

If the template doesn't include transforms, Original and Processed return the same template. By default, AWS CloudFormation specifies Original.

", + "StageList$member": null + } + }, "TemplateURL": { "base": null, "refs": { @@ -1011,6 +1104,19 @@ "StackResourceSummary$LastUpdatedTimestamp": "

Time the status was updated.

" } }, + "TransformName": { + "base": null, + "refs": { + "TransformsList$member": null + } + }, + "TransformsList": { + "base": null, + "refs": { + "GetTemplateSummaryOutput$DeclaredTransforms": "

A list of the transforms that are declared in the template.

", + "ValidateTemplateOutput$DeclaredTransforms": "

A list of the transforms that are declared in the template.

" + } + }, "UpdateStackInput": { "base": "

The input for an UpdateStack action.

", "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/examples-1.json index 0ea7e3b0b..e78026263 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/examples-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/examples-1.json @@ -1,5 +1,158 @@ { "version": "1.0", "examples": { + "CancelUpdateStack": [ + { + "input": { + "StackName": "MyStack" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example cancels an update of the specified stack.", + "id": "to-cancel-a-stack-update-that-is-in-progress-1472747085196", + "title": "To cancel a stack update in progress" + } + ], + "UpdateStack": [ + { + "input": { + "NotificationARNs": [ + + ], + "Parameters": [ + { + "ParameterKey": "KeyPairName", + "ParameterValue": "ExampleKeyPair" + }, + { + "ParameterKey": "SubnetIDs", + "ParameterValue": "ExampleSubnetID1, ExampleSubnetID2" + } + ], + "ResourceTypes": [ + + ], + "StackName": "MyStack", + "Tags": [ + + ], + "TemplateURL": "https://s3.amazonaws.com/example/updated.template" + }, + "output": { + "StackId": "" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example updates the template and input parameters for the specified stack.", + "id": "to-update-an-aws-cloudformation-stack-1472841931621", + "title": "To update an AWS CloudFormation stack" + }, + { + "input": { + "NotificationARNs": [ + + ], + "Parameters": [ + { + "ParameterKey": "KeyPairName", + "UsePreviousValue": true + }, + { + "ParameterKey": "SubnetIDs", + "ParameterValue": "SampleSubnetID1, UpdatedSampleSubnetID2" + } + ], + "ResourceTypes": [ + + ], + "StackName": "MyStack", + "Tags": [ + + ], + "TemplateURL": "https://s3.amazonaws.com/example/updated.template" + }, + "output": { + "StackId": "" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example updates only the the specified parameter value for the specified stack. If you don't specify a parameter value, AWS CloudFormation uses the default value from the template.", + "id": "to-update-an-aws-cloudformation-stack-1472841931621", + "title": "To update an AWS CloudFormation stack" + }, + { + "input": { + "Capabilities": [ + + ], + "NotificationARNs": [ + "arn:aws:sns:use-east-1:123456789012:mytopic1", + "arn:aws:sns:us-east-1:123456789012:mytopic2" + ], + "Parameters": [ + + ], + "ResourceTypes": [ + + ], + "StackName": "MyStack", + "Tags": [ + + ], + "TemplateURL": "https://s3.amazonaws.com/example/updated.template", + "UsePreviousTemplate": true + }, + "output": { + "StackId": "" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example adds two stack notification topics to the specified stack.", + "id": "to-update-an-aws-cloudformation-stack-1472841931621", + "title": "To update an AWS CloudFormation stack" + } + ], + "ValidateTemplate": [ + { + "input": { + "TemplateBody": "MyTemplate.json" + }, + "output": { + "Capabilities": [ + + ], + "CapabilitiesReason": "", + "Description": "AWS CloudFormation Example Template S3_Bucket: An example template that shows how to create a publicly-accessible S3 bucket. IMPORTANT: This template creates an S3 bucket. You will be billed for the AWS resources used if you create a stack from this template.", + "Parameters": [ + + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example validates the specified template.", + "id": "to-validate-an-aws-cloudformation-template-1472839072307", + "title": "To validate an AWS CloudFormation template" + } + ] } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/waiters-2.json index f3a5cde1c..260e4b2da 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/waiters-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/waiters-2.json @@ -25,51 +25,39 @@ "description": "Wait until stack status is CREATE_COMPLETE.", "acceptors": [ { + "argument": "Stacks[].StackStatus", "expected": "CREATE_COMPLETE", "matcher": "pathAll", - "state": "success", - "argument": "Stacks[].StackStatus" + "state": "success" }, { + "argument": "Stacks[].StackStatus", "expected": "CREATE_FAILED", "matcher": "pathAny", - "state": "failure", - "argument": "Stacks[].StackStatus" + "state": "failure" }, { + "argument": "Stacks[].StackStatus", "expected": "DELETE_COMPLETE", "matcher": "pathAny", - "argument": "Stacks[].StackStatus", "state": "failure" }, { - "expected": "DELETE_IN_PROGRESS", - "matcher": "pathAny", "argument": "Stacks[].StackStatus", - "state": "failure" - }, - { "expected": "DELETE_FAILED", "matcher": "pathAny", - "argument": "Stacks[].StackStatus", "state": "failure" }, { - "expected": "ROLLBACK_COMPLETE", - "matcher": "pathAny", - "state": "failure", - "argument": "Stacks[].StackStatus" - }, - { + "argument": "Stacks[].StackStatus", "expected": "ROLLBACK_FAILED", "matcher": "pathAny", - "state": "failure", - "argument": "Stacks[].StackStatus" + "state": "failure" }, { - "expected": "ROLLBACK_IN_PROGRESS", - "matcher": "pathAny", "argument": "Stacks[].StackStatus", + "expected": "ROLLBACK_COMPLETE", + "matcher": "pathAny", "state": "failure" }, { @@ -86,25 +74,19 @@ "description": "Wait until stack status is DELETE_COMPLETE.", "acceptors": [ { + "argument": "Stacks[].StackStatus", "expected": "DELETE_COMPLETE", "matcher": "pathAll", - "state": "success", - "argument": "Stacks[].StackStatus" + "state": "success" }, { "expected": "ValidationError", "matcher": "error", "state": "success" }, - { - "expected": "DELETE_FAILED", - "matcher": "pathAny", - "state": "failure", - "argument": "Stacks[].StackStatus" - }, { "argument": "Stacks[].StackStatus", - "expected": "CREATE_COMPLETE", + "expected": "DELETE_FAILED", "matcher": "pathAny", "state": "failure" }, @@ -114,60 +96,12 @@ "matcher": "pathAny", "state": "failure" }, - { - "argument": "Stacks[].StackStatus", - "expected": "CREATE_IN_PROGRESS", - "matcher": "pathAny", - "state": "failure" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "ROLLBACK_COMPLETE", - "matcher": "pathAny", - "state": "failure" - }, { "argument": "Stacks[].StackStatus", "expected": "ROLLBACK_FAILED", "matcher": "pathAny", "state": "failure" }, - { - "argument": "Stacks[].StackStatus", - "expected": "ROLLBACK_IN_PROGRESS", - "matcher": "pathAny", - "state": "failure" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "UPDATE_COMPLETE", - "matcher": "pathAny", - "state": "failure" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "UPDATE_COMPLETE_CLEANUP_IN_PROGRESS", - "matcher": "pathAny", - "state": "failure" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "UPDATE_IN_PROGRESS", - "matcher": "pathAny", - "state": "failure" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "UPDATE_ROLLBACK_COMPLETE", - "matcher": "pathAny", - "state": "failure" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS", - "matcher": "pathAny", - "state": "failure" - }, { "argument": "Stacks[].StackStatus", "expected": "UPDATE_ROLLBACK_FAILED", @@ -189,10 +123,10 @@ "description": "Wait until stack status is UPDATE_COMPLETE.", "acceptors": [ { + "argument": "Stacks[].StackStatus", "expected": "UPDATE_COMPLETE", "matcher": "pathAll", - "state": "success", - "argument": "Stacks[].StackStatus" + "state": "success" }, { "expected": "UPDATE_FAILED", @@ -200,29 +134,17 @@ "state": "failure", "argument": "Stacks[].StackStatus" }, - { - "expected": "UPDATE_ROLLBACK_COMPLETE", - "matcher": "pathAny", - "state": "failure", - "argument": "Stacks[].StackStatus" - }, - { - "expected": "UPDATE_ROLLBACK_FAILED", - "matcher": "pathAny", - "state": "failure", - "argument": "Stacks[].StackStatus" - }, { "argument": "Stacks[].StackStatus", - "expected": "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS", + "expected": "UPDATE_ROLLBACK_FAILED", "matcher": "pathAny", "state": "failure" }, { - "argument": "Stacks[].StackStatus", - "expected": "UPDATE_ROLLBACK_IN_PROGRESS", + "expected": "UPDATE_ROLLBACK_COMPLETE", "matcher": "pathAny", - "state": "failure" + "state": "failure", + "argument": "Stacks[].StackStatus" }, { "expected": "ValidationError", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/api-2.json index 19f4fd4f3..549e4efd8 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"cloudfront-2016-01-28", "apiVersion":"2016-01-28", "endpointPrefix":"cloudfront", "globalEndpoint":"cloudfront.amazonaws.com", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-08-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-08-01/api-2.json index 44a720e07..d9d838f55 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-08-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-08-01/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"cloudfront-2016-08-01", "apiVersion":"2016-08-01", "endpointPrefix":"cloudfront", "globalEndpoint":"cloudfront.amazonaws.com", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-08-20/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-08-20/api-2.json index 9f3afa963..a8f3caf4c 100755 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-08-20/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-08-20/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"cloudfront-2016-08-20", "apiVersion":"2016-08-20", "endpointPrefix":"cloudfront", "globalEndpoint":"cloudfront.amazonaws.com", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-09-07/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-09-07/api-2.json index c45fc9cc8..ec9b60af4 100755 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-09-07/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-09-07/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"cloudfront-2016-09-07", "apiVersion":"2016-09-07", "endpointPrefix":"cloudfront", "globalEndpoint":"cloudfront.amazonaws.com", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-09-29/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-09-29/api-2.json index 7f699063e..b905c836f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-09-29/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-09-29/api-2.json @@ -7,7 +7,8 @@ "protocol":"rest-xml", "serviceAbbreviation":"CloudFront", "serviceFullName":"Amazon CloudFront", - "signatureVersion":"v4" + "signatureVersion":"v4", + "uid":"cloudfront-2016-09-07" }, "operations":{ "CreateCloudFrontOriginAccessIdentity":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-11-25/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-11-25/api-2.json new file mode 100644 index 000000000..3c644ead1 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-11-25/api-2.json @@ -0,0 +1,2665 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2016-11-25", + "endpointPrefix":"cloudfront", + "globalEndpoint":"cloudfront.amazonaws.com", + "protocol":"rest-xml", + "serviceAbbreviation":"CloudFront", + "serviceFullName":"Amazon CloudFront", + "signatureVersion":"v4", + "uid":"cloudfront-2016-11-25" + }, + "operations":{ + "CreateCloudFrontOriginAccessIdentity":{ + "name":"CreateCloudFrontOriginAccessIdentity2016_11_25", + "http":{ + "method":"POST", + "requestUri":"/2016-11-25/origin-access-identity/cloudfront", + "responseCode":201 + }, + "input":{"shape":"CreateCloudFrontOriginAccessIdentityRequest"}, + "output":{"shape":"CreateCloudFrontOriginAccessIdentityResult"}, + "errors":[ + {"shape":"CloudFrontOriginAccessIdentityAlreadyExists"}, + {"shape":"MissingBody"}, + {"shape":"TooManyCloudFrontOriginAccessIdentities"}, + {"shape":"InvalidArgument"}, + {"shape":"InconsistentQuantities"} + ] + }, + "CreateDistribution":{ + "name":"CreateDistribution2016_11_25", + "http":{ + "method":"POST", + "requestUri":"/2016-11-25/distribution", + "responseCode":201 + }, + "input":{"shape":"CreateDistributionRequest"}, + "output":{"shape":"CreateDistributionResult"}, + "errors":[ + {"shape":"CNAMEAlreadyExists"}, + {"shape":"DistributionAlreadyExists"}, + {"shape":"InvalidOrigin"}, + {"shape":"InvalidOriginAccessIdentity"}, + {"shape":"AccessDenied"}, + {"shape":"TooManyTrustedSigners"}, + {"shape":"TrustedSignerDoesNotExist"}, + {"shape":"InvalidViewerCertificate"}, + {"shape":"InvalidMinimumProtocolVersion"}, + {"shape":"MissingBody"}, + {"shape":"TooManyDistributionCNAMEs"}, + {"shape":"TooManyDistributions"}, + {"shape":"InvalidDefaultRootObject"}, + {"shape":"InvalidRelativePath"}, + {"shape":"InvalidErrorCode"}, + {"shape":"InvalidResponseCode"}, + {"shape":"InvalidArgument"}, + {"shape":"InvalidRequiredProtocol"}, + {"shape":"NoSuchOrigin"}, + {"shape":"TooManyOrigins"}, + {"shape":"TooManyCacheBehaviors"}, + {"shape":"TooManyCookieNamesInWhiteList"}, + {"shape":"InvalidForwardCookies"}, + {"shape":"TooManyHeadersInForwardedValues"}, + {"shape":"InvalidHeadersForS3Origin"}, + {"shape":"InconsistentQuantities"}, + {"shape":"TooManyCertificates"}, + {"shape":"InvalidLocationCode"}, + {"shape":"InvalidGeoRestrictionParameter"}, + {"shape":"InvalidProtocolSettings"}, + {"shape":"InvalidTTLOrder"}, + {"shape":"InvalidWebACLId"}, + {"shape":"TooManyOriginCustomHeaders"}, + {"shape":"TooManyQueryStringParameters"}, + {"shape":"InvalidQueryStringParameters"}, + {"shape":"TooManyDistributionsWithLambdaAssociations"}, + {"shape":"TooManyLambdaFunctionAssociations"}, + {"shape":"InvalidLambdaFunctionAssociation"} + ] + }, + "CreateDistributionWithTags":{ + "name":"CreateDistributionWithTags2016_11_25", + "http":{ + "method":"POST", + "requestUri":"/2016-11-25/distribution?WithTags", + "responseCode":201 + }, + "input":{"shape":"CreateDistributionWithTagsRequest"}, + "output":{"shape":"CreateDistributionWithTagsResult"}, + "errors":[ + {"shape":"CNAMEAlreadyExists"}, + {"shape":"DistributionAlreadyExists"}, + {"shape":"InvalidOrigin"}, + {"shape":"InvalidOriginAccessIdentity"}, + {"shape":"AccessDenied"}, + {"shape":"TooManyTrustedSigners"}, + {"shape":"TrustedSignerDoesNotExist"}, + {"shape":"InvalidViewerCertificate"}, + {"shape":"InvalidMinimumProtocolVersion"}, + {"shape":"MissingBody"}, + {"shape":"TooManyDistributionCNAMEs"}, + {"shape":"TooManyDistributions"}, + {"shape":"InvalidDefaultRootObject"}, + {"shape":"InvalidRelativePath"}, + {"shape":"InvalidErrorCode"}, + {"shape":"InvalidResponseCode"}, + {"shape":"InvalidArgument"}, + {"shape":"InvalidRequiredProtocol"}, + {"shape":"NoSuchOrigin"}, + {"shape":"TooManyOrigins"}, + {"shape":"TooManyCacheBehaviors"}, + {"shape":"TooManyCookieNamesInWhiteList"}, + {"shape":"InvalidForwardCookies"}, + {"shape":"TooManyHeadersInForwardedValues"}, + {"shape":"InvalidHeadersForS3Origin"}, + {"shape":"InconsistentQuantities"}, + {"shape":"TooManyCertificates"}, + {"shape":"InvalidLocationCode"}, + {"shape":"InvalidGeoRestrictionParameter"}, + {"shape":"InvalidProtocolSettings"}, + {"shape":"InvalidTTLOrder"}, + {"shape":"InvalidWebACLId"}, + {"shape":"TooManyOriginCustomHeaders"}, + {"shape":"InvalidTagging"}, + {"shape":"TooManyQueryStringParameters"}, + {"shape":"InvalidQueryStringParameters"}, + {"shape":"TooManyDistributionsWithLambdaAssociations"}, + {"shape":"TooManyLambdaFunctionAssociations"}, + {"shape":"InvalidLambdaFunctionAssociation"} + ] + }, + "CreateInvalidation":{ + "name":"CreateInvalidation2016_11_25", + "http":{ + "method":"POST", + "requestUri":"/2016-11-25/distribution/{DistributionId}/invalidation", + "responseCode":201 + }, + "input":{"shape":"CreateInvalidationRequest"}, + "output":{"shape":"CreateInvalidationResult"}, + "errors":[ + {"shape":"AccessDenied"}, + {"shape":"MissingBody"}, + {"shape":"InvalidArgument"}, + {"shape":"NoSuchDistribution"}, + {"shape":"BatchTooLarge"}, + {"shape":"TooManyInvalidationsInProgress"}, + {"shape":"InconsistentQuantities"} + ] + }, + "CreateStreamingDistribution":{ + "name":"CreateStreamingDistribution2016_11_25", + "http":{ + "method":"POST", + "requestUri":"/2016-11-25/streaming-distribution", + "responseCode":201 + }, + "input":{"shape":"CreateStreamingDistributionRequest"}, + "output":{"shape":"CreateStreamingDistributionResult"}, + "errors":[ + {"shape":"CNAMEAlreadyExists"}, + {"shape":"StreamingDistributionAlreadyExists"}, + {"shape":"InvalidOrigin"}, + {"shape":"InvalidOriginAccessIdentity"}, + {"shape":"AccessDenied"}, + {"shape":"TooManyTrustedSigners"}, + {"shape":"TrustedSignerDoesNotExist"}, + {"shape":"MissingBody"}, + {"shape":"TooManyStreamingDistributionCNAMEs"}, + {"shape":"TooManyStreamingDistributions"}, + {"shape":"InvalidArgument"}, + {"shape":"InconsistentQuantities"} + ] + }, + "CreateStreamingDistributionWithTags":{ + "name":"CreateStreamingDistributionWithTags2016_11_25", + "http":{ + "method":"POST", + "requestUri":"/2016-11-25/streaming-distribution?WithTags", + "responseCode":201 + }, + "input":{"shape":"CreateStreamingDistributionWithTagsRequest"}, + "output":{"shape":"CreateStreamingDistributionWithTagsResult"}, + "errors":[ + {"shape":"CNAMEAlreadyExists"}, + {"shape":"StreamingDistributionAlreadyExists"}, + {"shape":"InvalidOrigin"}, + {"shape":"InvalidOriginAccessIdentity"}, + {"shape":"AccessDenied"}, + {"shape":"TooManyTrustedSigners"}, + {"shape":"TrustedSignerDoesNotExist"}, + {"shape":"MissingBody"}, + {"shape":"TooManyStreamingDistributionCNAMEs"}, + {"shape":"TooManyStreamingDistributions"}, + {"shape":"InvalidArgument"}, + {"shape":"InconsistentQuantities"}, + {"shape":"InvalidTagging"} + ] + }, + "DeleteCloudFrontOriginAccessIdentity":{ + "name":"DeleteCloudFrontOriginAccessIdentity2016_11_25", + "http":{ + "method":"DELETE", + "requestUri":"/2016-11-25/origin-access-identity/cloudfront/{Id}", + "responseCode":204 + }, + "input":{"shape":"DeleteCloudFrontOriginAccessIdentityRequest"}, + "errors":[ + {"shape":"AccessDenied"}, + {"shape":"InvalidIfMatchVersion"}, + {"shape":"NoSuchCloudFrontOriginAccessIdentity"}, + {"shape":"PreconditionFailed"}, + {"shape":"CloudFrontOriginAccessIdentityInUse"} + ] + }, + "DeleteDistribution":{ + "name":"DeleteDistribution2016_11_25", + "http":{ + "method":"DELETE", + "requestUri":"/2016-11-25/distribution/{Id}", + "responseCode":204 + }, + "input":{"shape":"DeleteDistributionRequest"}, + "errors":[ + {"shape":"AccessDenied"}, + {"shape":"DistributionNotDisabled"}, + {"shape":"InvalidIfMatchVersion"}, + {"shape":"NoSuchDistribution"}, + {"shape":"PreconditionFailed"} + ] + }, + "DeleteStreamingDistribution":{ + "name":"DeleteStreamingDistribution2016_11_25", + "http":{ + "method":"DELETE", + "requestUri":"/2016-11-25/streaming-distribution/{Id}", + "responseCode":204 + }, + "input":{"shape":"DeleteStreamingDistributionRequest"}, + "errors":[ + {"shape":"AccessDenied"}, + {"shape":"StreamingDistributionNotDisabled"}, + {"shape":"InvalidIfMatchVersion"}, + {"shape":"NoSuchStreamingDistribution"}, + {"shape":"PreconditionFailed"} + ] + }, + "GetCloudFrontOriginAccessIdentity":{ + "name":"GetCloudFrontOriginAccessIdentity2016_11_25", + "http":{ + "method":"GET", + "requestUri":"/2016-11-25/origin-access-identity/cloudfront/{Id}" + }, + "input":{"shape":"GetCloudFrontOriginAccessIdentityRequest"}, + "output":{"shape":"GetCloudFrontOriginAccessIdentityResult"}, + "errors":[ + {"shape":"NoSuchCloudFrontOriginAccessIdentity"}, + {"shape":"AccessDenied"} + ] + }, + "GetCloudFrontOriginAccessIdentityConfig":{ + "name":"GetCloudFrontOriginAccessIdentityConfig2016_11_25", + "http":{ + "method":"GET", + "requestUri":"/2016-11-25/origin-access-identity/cloudfront/{Id}/config" + }, + "input":{"shape":"GetCloudFrontOriginAccessIdentityConfigRequest"}, + "output":{"shape":"GetCloudFrontOriginAccessIdentityConfigResult"}, + "errors":[ + {"shape":"NoSuchCloudFrontOriginAccessIdentity"}, + {"shape":"AccessDenied"} + ] + }, + "GetDistribution":{ + "name":"GetDistribution2016_11_25", + "http":{ + "method":"GET", + "requestUri":"/2016-11-25/distribution/{Id}" + }, + "input":{"shape":"GetDistributionRequest"}, + "output":{"shape":"GetDistributionResult"}, + "errors":[ + {"shape":"NoSuchDistribution"}, + {"shape":"AccessDenied"} + ] + }, + "GetDistributionConfig":{ + "name":"GetDistributionConfig2016_11_25", + "http":{ + "method":"GET", + "requestUri":"/2016-11-25/distribution/{Id}/config" + }, + "input":{"shape":"GetDistributionConfigRequest"}, + "output":{"shape":"GetDistributionConfigResult"}, + "errors":[ + {"shape":"NoSuchDistribution"}, + {"shape":"AccessDenied"} + ] + }, + "GetInvalidation":{ + "name":"GetInvalidation2016_11_25", + "http":{ + "method":"GET", + "requestUri":"/2016-11-25/distribution/{DistributionId}/invalidation/{Id}" + }, + "input":{"shape":"GetInvalidationRequest"}, + "output":{"shape":"GetInvalidationResult"}, + "errors":[ + {"shape":"NoSuchInvalidation"}, + {"shape":"NoSuchDistribution"}, + {"shape":"AccessDenied"} + ] + }, + "GetStreamingDistribution":{ + "name":"GetStreamingDistribution2016_11_25", + "http":{ + "method":"GET", + "requestUri":"/2016-11-25/streaming-distribution/{Id}" + }, + "input":{"shape":"GetStreamingDistributionRequest"}, + "output":{"shape":"GetStreamingDistributionResult"}, + "errors":[ + {"shape":"NoSuchStreamingDistribution"}, + {"shape":"AccessDenied"} + ] + }, + "GetStreamingDistributionConfig":{ + "name":"GetStreamingDistributionConfig2016_11_25", + "http":{ + "method":"GET", + "requestUri":"/2016-11-25/streaming-distribution/{Id}/config" + }, + "input":{"shape":"GetStreamingDistributionConfigRequest"}, + "output":{"shape":"GetStreamingDistributionConfigResult"}, + "errors":[ + {"shape":"NoSuchStreamingDistribution"}, + {"shape":"AccessDenied"} + ] + }, + "ListCloudFrontOriginAccessIdentities":{ + "name":"ListCloudFrontOriginAccessIdentities2016_11_25", + "http":{ + "method":"GET", + "requestUri":"/2016-11-25/origin-access-identity/cloudfront" + }, + "input":{"shape":"ListCloudFrontOriginAccessIdentitiesRequest"}, + "output":{"shape":"ListCloudFrontOriginAccessIdentitiesResult"}, + "errors":[ + {"shape":"InvalidArgument"} + ] + }, + "ListDistributions":{ + "name":"ListDistributions2016_11_25", + "http":{ + "method":"GET", + "requestUri":"/2016-11-25/distribution" + }, + "input":{"shape":"ListDistributionsRequest"}, + "output":{"shape":"ListDistributionsResult"}, + "errors":[ + {"shape":"InvalidArgument"} + ] + }, + "ListDistributionsByWebACLId":{ + "name":"ListDistributionsByWebACLId2016_11_25", + "http":{ + "method":"GET", + "requestUri":"/2016-11-25/distributionsByWebACLId/{WebACLId}" + }, + "input":{"shape":"ListDistributionsByWebACLIdRequest"}, + "output":{"shape":"ListDistributionsByWebACLIdResult"}, + "errors":[ + {"shape":"InvalidArgument"}, + {"shape":"InvalidWebACLId"} + ] + }, + "ListInvalidations":{ + "name":"ListInvalidations2016_11_25", + "http":{ + "method":"GET", + "requestUri":"/2016-11-25/distribution/{DistributionId}/invalidation" + }, + "input":{"shape":"ListInvalidationsRequest"}, + "output":{"shape":"ListInvalidationsResult"}, + "errors":[ + {"shape":"InvalidArgument"}, + {"shape":"NoSuchDistribution"}, + {"shape":"AccessDenied"} + ] + }, + "ListStreamingDistributions":{ + "name":"ListStreamingDistributions2016_11_25", + "http":{ + "method":"GET", + "requestUri":"/2016-11-25/streaming-distribution" + }, + "input":{"shape":"ListStreamingDistributionsRequest"}, + "output":{"shape":"ListStreamingDistributionsResult"}, + "errors":[ + {"shape":"InvalidArgument"} + ] + }, + "ListTagsForResource":{ + "name":"ListTagsForResource2016_11_25", + "http":{ + "method":"GET", + "requestUri":"/2016-11-25/tagging" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResult"}, + "errors":[ + {"shape":"AccessDenied"}, + {"shape":"InvalidArgument"}, + {"shape":"InvalidTagging"}, + {"shape":"NoSuchResource"} + ] + }, + "TagResource":{ + "name":"TagResource2016_11_25", + "http":{ + "method":"POST", + "requestUri":"/2016-11-25/tagging?Operation=Tag", + "responseCode":204 + }, + "input":{"shape":"TagResourceRequest"}, + "errors":[ + {"shape":"AccessDenied"}, + {"shape":"InvalidArgument"}, + {"shape":"InvalidTagging"}, + {"shape":"NoSuchResource"} + ] + }, + "UntagResource":{ + "name":"UntagResource2016_11_25", + "http":{ + "method":"POST", + "requestUri":"/2016-11-25/tagging?Operation=Untag", + "responseCode":204 + }, + "input":{"shape":"UntagResourceRequest"}, + "errors":[ + {"shape":"AccessDenied"}, + {"shape":"InvalidArgument"}, + {"shape":"InvalidTagging"}, + {"shape":"NoSuchResource"} + ] + }, + "UpdateCloudFrontOriginAccessIdentity":{ + "name":"UpdateCloudFrontOriginAccessIdentity2016_11_25", + "http":{ + "method":"PUT", + "requestUri":"/2016-11-25/origin-access-identity/cloudfront/{Id}/config" + }, + "input":{"shape":"UpdateCloudFrontOriginAccessIdentityRequest"}, + "output":{"shape":"UpdateCloudFrontOriginAccessIdentityResult"}, + "errors":[ + {"shape":"AccessDenied"}, + {"shape":"IllegalUpdate"}, + {"shape":"InvalidIfMatchVersion"}, + {"shape":"MissingBody"}, + {"shape":"NoSuchCloudFrontOriginAccessIdentity"}, + {"shape":"PreconditionFailed"}, + {"shape":"InvalidArgument"}, + {"shape":"InconsistentQuantities"} + ] + }, + "UpdateDistribution":{ + "name":"UpdateDistribution2016_11_25", + "http":{ + "method":"PUT", + "requestUri":"/2016-11-25/distribution/{Id}/config" + }, + "input":{"shape":"UpdateDistributionRequest"}, + "output":{"shape":"UpdateDistributionResult"}, + "errors":[ + {"shape":"AccessDenied"}, + {"shape":"CNAMEAlreadyExists"}, + {"shape":"IllegalUpdate"}, + {"shape":"InvalidIfMatchVersion"}, + {"shape":"MissingBody"}, + {"shape":"NoSuchDistribution"}, + {"shape":"PreconditionFailed"}, + {"shape":"TooManyDistributionCNAMEs"}, + {"shape":"InvalidDefaultRootObject"}, + {"shape":"InvalidRelativePath"}, + {"shape":"InvalidErrorCode"}, + {"shape":"InvalidResponseCode"}, + {"shape":"InvalidArgument"}, + {"shape":"InvalidOriginAccessIdentity"}, + {"shape":"TooManyTrustedSigners"}, + {"shape":"TrustedSignerDoesNotExist"}, + {"shape":"InvalidViewerCertificate"}, + {"shape":"InvalidMinimumProtocolVersion"}, + {"shape":"InvalidRequiredProtocol"}, + {"shape":"NoSuchOrigin"}, + {"shape":"TooManyOrigins"}, + {"shape":"TooManyCacheBehaviors"}, + {"shape":"TooManyCookieNamesInWhiteList"}, + {"shape":"InvalidForwardCookies"}, + {"shape":"TooManyHeadersInForwardedValues"}, + {"shape":"InvalidHeadersForS3Origin"}, + {"shape":"InconsistentQuantities"}, + {"shape":"TooManyCertificates"}, + {"shape":"InvalidLocationCode"}, + {"shape":"InvalidGeoRestrictionParameter"}, + {"shape":"InvalidTTLOrder"}, + {"shape":"InvalidWebACLId"}, + {"shape":"TooManyOriginCustomHeaders"}, + {"shape":"TooManyQueryStringParameters"}, + {"shape":"InvalidQueryStringParameters"}, + {"shape":"TooManyDistributionsWithLambdaAssociations"}, + {"shape":"TooManyLambdaFunctionAssociations"}, + {"shape":"InvalidLambdaFunctionAssociation"} + ] + }, + "UpdateStreamingDistribution":{ + "name":"UpdateStreamingDistribution2016_11_25", + "http":{ + "method":"PUT", + "requestUri":"/2016-11-25/streaming-distribution/{Id}/config" + }, + "input":{"shape":"UpdateStreamingDistributionRequest"}, + "output":{"shape":"UpdateStreamingDistributionResult"}, + "errors":[ + {"shape":"AccessDenied"}, + {"shape":"CNAMEAlreadyExists"}, + {"shape":"IllegalUpdate"}, + {"shape":"InvalidIfMatchVersion"}, + {"shape":"MissingBody"}, + {"shape":"NoSuchStreamingDistribution"}, + {"shape":"PreconditionFailed"}, + {"shape":"TooManyStreamingDistributionCNAMEs"}, + {"shape":"InvalidArgument"}, + {"shape":"InvalidOriginAccessIdentity"}, + {"shape":"TooManyTrustedSigners"}, + {"shape":"TrustedSignerDoesNotExist"}, + {"shape":"InconsistentQuantities"} + ] + } + }, + "shapes":{ + "AccessDenied":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":403}, + "exception":true + }, + "ActiveTrustedSigners":{ + "type":"structure", + "required":[ + "Enabled", + "Quantity" + ], + "members":{ + "Enabled":{"shape":"boolean"}, + "Quantity":{"shape":"integer"}, + "Items":{"shape":"SignerList"} + } + }, + "AliasList":{ + "type":"list", + "member":{ + "shape":"string", + "locationName":"CNAME" + } + }, + "Aliases":{ + "type":"structure", + "required":["Quantity"], + "members":{ + "Quantity":{"shape":"integer"}, + "Items":{"shape":"AliasList"} + } + }, + "AllowedMethods":{ + "type":"structure", + "required":[ + "Quantity", + "Items" + ], + "members":{ + "Quantity":{"shape":"integer"}, + "Items":{"shape":"MethodsList"}, + "CachedMethods":{"shape":"CachedMethods"} + } + }, + "AwsAccountNumberList":{ + "type":"list", + "member":{ + "shape":"string", + "locationName":"AwsAccountNumber" + } + }, + "BatchTooLarge":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":413}, + "exception":true + }, + "CNAMEAlreadyExists":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "CacheBehavior":{ + "type":"structure", + "required":[ + "PathPattern", + "TargetOriginId", + "ForwardedValues", + "TrustedSigners", + "ViewerProtocolPolicy", + "MinTTL" + ], + "members":{ + "PathPattern":{"shape":"string"}, + "TargetOriginId":{"shape":"string"}, + "ForwardedValues":{"shape":"ForwardedValues"}, + "TrustedSigners":{"shape":"TrustedSigners"}, + "ViewerProtocolPolicy":{"shape":"ViewerProtocolPolicy"}, + "MinTTL":{"shape":"long"}, + "AllowedMethods":{"shape":"AllowedMethods"}, + "SmoothStreaming":{"shape":"boolean"}, + "DefaultTTL":{"shape":"long"}, + "MaxTTL":{"shape":"long"}, + "Compress":{"shape":"boolean"}, + "LambdaFunctionAssociations":{"shape":"LambdaFunctionAssociations"} + } + }, + "CacheBehaviorList":{ + "type":"list", + "member":{ + "shape":"CacheBehavior", + "locationName":"CacheBehavior" + } + }, + "CacheBehaviors":{ + "type":"structure", + "required":["Quantity"], + "members":{ + "Quantity":{"shape":"integer"}, + "Items":{"shape":"CacheBehaviorList"} + } + }, + "CachedMethods":{ + "type":"structure", + "required":[ + "Quantity", + "Items" + ], + "members":{ + "Quantity":{"shape":"integer"}, + "Items":{"shape":"MethodsList"} + } + }, + "CertificateSource":{ + "type":"string", + "enum":[ + "cloudfront", + "iam", + "acm" + ] + }, + "CloudFrontOriginAccessIdentity":{ + "type":"structure", + "required":[ + "Id", + "S3CanonicalUserId" + ], + "members":{ + "Id":{"shape":"string"}, + "S3CanonicalUserId":{"shape":"string"}, + "CloudFrontOriginAccessIdentityConfig":{"shape":"CloudFrontOriginAccessIdentityConfig"} + } + }, + "CloudFrontOriginAccessIdentityAlreadyExists":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "CloudFrontOriginAccessIdentityConfig":{ + "type":"structure", + "required":[ + "CallerReference", + "Comment" + ], + "members":{ + "CallerReference":{"shape":"string"}, + "Comment":{"shape":"string"} + } + }, + "CloudFrontOriginAccessIdentityInUse":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "CloudFrontOriginAccessIdentityList":{ + "type":"structure", + "required":[ + "Marker", + "MaxItems", + "IsTruncated", + "Quantity" + ], + "members":{ + "Marker":{"shape":"string"}, + "NextMarker":{"shape":"string"}, + "MaxItems":{"shape":"integer"}, + "IsTruncated":{"shape":"boolean"}, + "Quantity":{"shape":"integer"}, + "Items":{"shape":"CloudFrontOriginAccessIdentitySummaryList"} + } + }, + "CloudFrontOriginAccessIdentitySummary":{ + "type":"structure", + "required":[ + "Id", + "S3CanonicalUserId", + "Comment" + ], + "members":{ + "Id":{"shape":"string"}, + "S3CanonicalUserId":{"shape":"string"}, + "Comment":{"shape":"string"} + } + }, + "CloudFrontOriginAccessIdentitySummaryList":{ + "type":"list", + "member":{ + "shape":"CloudFrontOriginAccessIdentitySummary", + "locationName":"CloudFrontOriginAccessIdentitySummary" + } + }, + "CookieNameList":{ + "type":"list", + "member":{ + "shape":"string", + "locationName":"Name" + } + }, + "CookieNames":{ + "type":"structure", + "required":["Quantity"], + "members":{ + "Quantity":{"shape":"integer"}, + "Items":{"shape":"CookieNameList"} + } + }, + "CookiePreference":{ + "type":"structure", + "required":["Forward"], + "members":{ + "Forward":{"shape":"ItemSelection"}, + "WhitelistedNames":{"shape":"CookieNames"} + } + }, + "CreateCloudFrontOriginAccessIdentityRequest":{ + "type":"structure", + "required":["CloudFrontOriginAccessIdentityConfig"], + "members":{ + "CloudFrontOriginAccessIdentityConfig":{ + "shape":"CloudFrontOriginAccessIdentityConfig", + "locationName":"CloudFrontOriginAccessIdentityConfig", + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"} + } + }, + "payload":"CloudFrontOriginAccessIdentityConfig" + }, + "CreateCloudFrontOriginAccessIdentityResult":{ + "type":"structure", + "members":{ + "CloudFrontOriginAccessIdentity":{"shape":"CloudFrontOriginAccessIdentity"}, + "Location":{ + "shape":"string", + "location":"header", + "locationName":"Location" + }, + "ETag":{ + "shape":"string", + "location":"header", + "locationName":"ETag" + } + }, + "payload":"CloudFrontOriginAccessIdentity" + }, + "CreateDistributionRequest":{ + "type":"structure", + "required":["DistributionConfig"], + "members":{ + "DistributionConfig":{ + "shape":"DistributionConfig", + "locationName":"DistributionConfig", + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"} + } + }, + "payload":"DistributionConfig" + }, + "CreateDistributionResult":{ + "type":"structure", + "members":{ + "Distribution":{"shape":"Distribution"}, + "Location":{ + "shape":"string", + "location":"header", + "locationName":"Location" + }, + "ETag":{ + "shape":"string", + "location":"header", + "locationName":"ETag" + } + }, + "payload":"Distribution" + }, + "CreateDistributionWithTagsRequest":{ + "type":"structure", + "required":["DistributionConfigWithTags"], + "members":{ + "DistributionConfigWithTags":{ + "shape":"DistributionConfigWithTags", + "locationName":"DistributionConfigWithTags", + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"} + } + }, + "payload":"DistributionConfigWithTags" + }, + "CreateDistributionWithTagsResult":{ + "type":"structure", + "members":{ + "Distribution":{"shape":"Distribution"}, + "Location":{ + "shape":"string", + "location":"header", + "locationName":"Location" + }, + "ETag":{ + "shape":"string", + "location":"header", + "locationName":"ETag" + } + }, + "payload":"Distribution" + }, + "CreateInvalidationRequest":{ + "type":"structure", + "required":[ + "DistributionId", + "InvalidationBatch" + ], + "members":{ + "DistributionId":{ + "shape":"string", + "location":"uri", + "locationName":"DistributionId" + }, + "InvalidationBatch":{ + "shape":"InvalidationBatch", + "locationName":"InvalidationBatch", + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"} + } + }, + "payload":"InvalidationBatch" + }, + "CreateInvalidationResult":{ + "type":"structure", + "members":{ + "Location":{ + "shape":"string", + "location":"header", + "locationName":"Location" + }, + "Invalidation":{"shape":"Invalidation"} + }, + "payload":"Invalidation" + }, + "CreateStreamingDistributionRequest":{ + "type":"structure", + "required":["StreamingDistributionConfig"], + "members":{ + "StreamingDistributionConfig":{ + "shape":"StreamingDistributionConfig", + "locationName":"StreamingDistributionConfig", + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"} + } + }, + "payload":"StreamingDistributionConfig" + }, + "CreateStreamingDistributionResult":{ + "type":"structure", + "members":{ + "StreamingDistribution":{"shape":"StreamingDistribution"}, + "Location":{ + "shape":"string", + "location":"header", + "locationName":"Location" + }, + "ETag":{ + "shape":"string", + "location":"header", + "locationName":"ETag" + } + }, + "payload":"StreamingDistribution" + }, + "CreateStreamingDistributionWithTagsRequest":{ + "type":"structure", + "required":["StreamingDistributionConfigWithTags"], + "members":{ + "StreamingDistributionConfigWithTags":{ + "shape":"StreamingDistributionConfigWithTags", + "locationName":"StreamingDistributionConfigWithTags", + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"} + } + }, + "payload":"StreamingDistributionConfigWithTags" + }, + "CreateStreamingDistributionWithTagsResult":{ + "type":"structure", + "members":{ + "StreamingDistribution":{"shape":"StreamingDistribution"}, + "Location":{ + "shape":"string", + "location":"header", + "locationName":"Location" + }, + "ETag":{ + "shape":"string", + "location":"header", + "locationName":"ETag" + } + }, + "payload":"StreamingDistribution" + }, + "CustomErrorResponse":{ + "type":"structure", + "required":["ErrorCode"], + "members":{ + "ErrorCode":{"shape":"integer"}, + "ResponsePagePath":{"shape":"string"}, + "ResponseCode":{"shape":"string"}, + "ErrorCachingMinTTL":{"shape":"long"} + } + }, + "CustomErrorResponseList":{ + "type":"list", + "member":{ + "shape":"CustomErrorResponse", + "locationName":"CustomErrorResponse" + } + }, + "CustomErrorResponses":{ + "type":"structure", + "required":["Quantity"], + "members":{ + "Quantity":{"shape":"integer"}, + "Items":{"shape":"CustomErrorResponseList"} + } + }, + "CustomHeaders":{ + "type":"structure", + "required":["Quantity"], + "members":{ + "Quantity":{"shape":"integer"}, + "Items":{"shape":"OriginCustomHeadersList"} + } + }, + "CustomOriginConfig":{ + "type":"structure", + "required":[ + "HTTPPort", + "HTTPSPort", + "OriginProtocolPolicy" + ], + "members":{ + "HTTPPort":{"shape":"integer"}, + "HTTPSPort":{"shape":"integer"}, + "OriginProtocolPolicy":{"shape":"OriginProtocolPolicy"}, + "OriginSslProtocols":{"shape":"OriginSslProtocols"} + } + }, + "DefaultCacheBehavior":{ + "type":"structure", + "required":[ + "TargetOriginId", + "ForwardedValues", + "TrustedSigners", + "ViewerProtocolPolicy", + "MinTTL" + ], + "members":{ + "TargetOriginId":{"shape":"string"}, + "ForwardedValues":{"shape":"ForwardedValues"}, + "TrustedSigners":{"shape":"TrustedSigners"}, + "ViewerProtocolPolicy":{"shape":"ViewerProtocolPolicy"}, + "MinTTL":{"shape":"long"}, + "AllowedMethods":{"shape":"AllowedMethods"}, + "SmoothStreaming":{"shape":"boolean"}, + "DefaultTTL":{"shape":"long"}, + "MaxTTL":{"shape":"long"}, + "Compress":{"shape":"boolean"}, + "LambdaFunctionAssociations":{"shape":"LambdaFunctionAssociations"} + } + }, + "DeleteCloudFrontOriginAccessIdentityRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"string", + "location":"uri", + "locationName":"Id" + }, + "IfMatch":{ + "shape":"string", + "location":"header", + "locationName":"If-Match" + } + } + }, + "DeleteDistributionRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"string", + "location":"uri", + "locationName":"Id" + }, + "IfMatch":{ + "shape":"string", + "location":"header", + "locationName":"If-Match" + } + } + }, + "DeleteStreamingDistributionRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"string", + "location":"uri", + "locationName":"Id" + }, + "IfMatch":{ + "shape":"string", + "location":"header", + "locationName":"If-Match" + } + } + }, + "Distribution":{ + "type":"structure", + "required":[ + "Id", + "ARN", + "Status", + "LastModifiedTime", + "InProgressInvalidationBatches", + "DomainName", + "ActiveTrustedSigners", + "DistributionConfig" + ], + "members":{ + "Id":{"shape":"string"}, + "ARN":{"shape":"string"}, + "Status":{"shape":"string"}, + "LastModifiedTime":{"shape":"timestamp"}, + "InProgressInvalidationBatches":{"shape":"integer"}, + "DomainName":{"shape":"string"}, + "ActiveTrustedSigners":{"shape":"ActiveTrustedSigners"}, + "DistributionConfig":{"shape":"DistributionConfig"} + } + }, + "DistributionAlreadyExists":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "DistributionConfig":{ + "type":"structure", + "required":[ + "CallerReference", + "Origins", + "DefaultCacheBehavior", + "Comment", + "Enabled" + ], + "members":{ + "CallerReference":{"shape":"string"}, + "Aliases":{"shape":"Aliases"}, + "DefaultRootObject":{"shape":"string"}, + "Origins":{"shape":"Origins"}, + "DefaultCacheBehavior":{"shape":"DefaultCacheBehavior"}, + "CacheBehaviors":{"shape":"CacheBehaviors"}, + "CustomErrorResponses":{"shape":"CustomErrorResponses"}, + "Comment":{"shape":"string"}, + "Logging":{"shape":"LoggingConfig"}, + "PriceClass":{"shape":"PriceClass"}, + "Enabled":{"shape":"boolean"}, + "ViewerCertificate":{"shape":"ViewerCertificate"}, + "Restrictions":{"shape":"Restrictions"}, + "WebACLId":{"shape":"string"}, + "HttpVersion":{"shape":"HttpVersion"}, + "IsIPV6Enabled":{"shape":"boolean"} + } + }, + "DistributionConfigWithTags":{ + "type":"structure", + "required":[ + "DistributionConfig", + "Tags" + ], + "members":{ + "DistributionConfig":{"shape":"DistributionConfig"}, + "Tags":{"shape":"Tags"} + } + }, + "DistributionList":{ + "type":"structure", + "required":[ + "Marker", + "MaxItems", + "IsTruncated", + "Quantity" + ], + "members":{ + "Marker":{"shape":"string"}, + "NextMarker":{"shape":"string"}, + "MaxItems":{"shape":"integer"}, + "IsTruncated":{"shape":"boolean"}, + "Quantity":{"shape":"integer"}, + "Items":{"shape":"DistributionSummaryList"} + } + }, + "DistributionNotDisabled":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "DistributionSummary":{ + "type":"structure", + "required":[ + "Id", + "ARN", + "Status", + "LastModifiedTime", + "DomainName", + "Aliases", + "Origins", + "DefaultCacheBehavior", + "CacheBehaviors", + "CustomErrorResponses", + "Comment", + "PriceClass", + "Enabled", + "ViewerCertificate", + "Restrictions", + "WebACLId", + "HttpVersion", + "IsIPV6Enabled" + ], + "members":{ + "Id":{"shape":"string"}, + "ARN":{"shape":"string"}, + "Status":{"shape":"string"}, + "LastModifiedTime":{"shape":"timestamp"}, + "DomainName":{"shape":"string"}, + "Aliases":{"shape":"Aliases"}, + "Origins":{"shape":"Origins"}, + "DefaultCacheBehavior":{"shape":"DefaultCacheBehavior"}, + "CacheBehaviors":{"shape":"CacheBehaviors"}, + "CustomErrorResponses":{"shape":"CustomErrorResponses"}, + "Comment":{"shape":"string"}, + "PriceClass":{"shape":"PriceClass"}, + "Enabled":{"shape":"boolean"}, + "ViewerCertificate":{"shape":"ViewerCertificate"}, + "Restrictions":{"shape":"Restrictions"}, + "WebACLId":{"shape":"string"}, + "HttpVersion":{"shape":"HttpVersion"}, + "IsIPV6Enabled":{"shape":"boolean"} + } + }, + "DistributionSummaryList":{ + "type":"list", + "member":{ + "shape":"DistributionSummary", + "locationName":"DistributionSummary" + } + }, + "EventType":{ + "type":"string", + "enum":[ + "viewer-request", + "viewer-response", + "origin-request", + "origin-response" + ] + }, + "ForwardedValues":{ + "type":"structure", + "required":[ + "QueryString", + "Cookies" + ], + "members":{ + "QueryString":{"shape":"boolean"}, + "Cookies":{"shape":"CookiePreference"}, + "Headers":{"shape":"Headers"}, + "QueryStringCacheKeys":{"shape":"QueryStringCacheKeys"} + } + }, + "GeoRestriction":{ + "type":"structure", + "required":[ + "RestrictionType", + "Quantity" + ], + "members":{ + "RestrictionType":{"shape":"GeoRestrictionType"}, + "Quantity":{"shape":"integer"}, + "Items":{"shape":"LocationList"} + } + }, + "GeoRestrictionType":{ + "type":"string", + "enum":[ + "blacklist", + "whitelist", + "none" + ] + }, + "GetCloudFrontOriginAccessIdentityConfigRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"string", + "location":"uri", + "locationName":"Id" + } + } + }, + "GetCloudFrontOriginAccessIdentityConfigResult":{ + "type":"structure", + "members":{ + "CloudFrontOriginAccessIdentityConfig":{"shape":"CloudFrontOriginAccessIdentityConfig"}, + "ETag":{ + "shape":"string", + "location":"header", + "locationName":"ETag" + } + }, + "payload":"CloudFrontOriginAccessIdentityConfig" + }, + "GetCloudFrontOriginAccessIdentityRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"string", + "location":"uri", + "locationName":"Id" + } + } + }, + "GetCloudFrontOriginAccessIdentityResult":{ + "type":"structure", + "members":{ + "CloudFrontOriginAccessIdentity":{"shape":"CloudFrontOriginAccessIdentity"}, + "ETag":{ + "shape":"string", + "location":"header", + "locationName":"ETag" + } + }, + "payload":"CloudFrontOriginAccessIdentity" + }, + "GetDistributionConfigRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"string", + "location":"uri", + "locationName":"Id" + } + } + }, + "GetDistributionConfigResult":{ + "type":"structure", + "members":{ + "DistributionConfig":{"shape":"DistributionConfig"}, + "ETag":{ + "shape":"string", + "location":"header", + "locationName":"ETag" + } + }, + "payload":"DistributionConfig" + }, + "GetDistributionRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"string", + "location":"uri", + "locationName":"Id" + } + } + }, + "GetDistributionResult":{ + "type":"structure", + "members":{ + "Distribution":{"shape":"Distribution"}, + "ETag":{ + "shape":"string", + "location":"header", + "locationName":"ETag" + } + }, + "payload":"Distribution" + }, + "GetInvalidationRequest":{ + "type":"structure", + "required":[ + "DistributionId", + "Id" + ], + "members":{ + "DistributionId":{ + "shape":"string", + "location":"uri", + "locationName":"DistributionId" + }, + "Id":{ + "shape":"string", + "location":"uri", + "locationName":"Id" + } + } + }, + "GetInvalidationResult":{ + "type":"structure", + "members":{ + "Invalidation":{"shape":"Invalidation"} + }, + "payload":"Invalidation" + }, + "GetStreamingDistributionConfigRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"string", + "location":"uri", + "locationName":"Id" + } + } + }, + "GetStreamingDistributionConfigResult":{ + "type":"structure", + "members":{ + "StreamingDistributionConfig":{"shape":"StreamingDistributionConfig"}, + "ETag":{ + "shape":"string", + "location":"header", + "locationName":"ETag" + } + }, + "payload":"StreamingDistributionConfig" + }, + "GetStreamingDistributionRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"string", + "location":"uri", + "locationName":"Id" + } + } + }, + "GetStreamingDistributionResult":{ + "type":"structure", + "members":{ + "StreamingDistribution":{"shape":"StreamingDistribution"}, + "ETag":{ + "shape":"string", + "location":"header", + "locationName":"ETag" + } + }, + "payload":"StreamingDistribution" + }, + "HeaderList":{ + "type":"list", + "member":{ + "shape":"string", + "locationName":"Name" + } + }, + "Headers":{ + "type":"structure", + "required":["Quantity"], + "members":{ + "Quantity":{"shape":"integer"}, + "Items":{"shape":"HeaderList"} + } + }, + "HttpVersion":{ + "type":"string", + "enum":[ + "http1.1", + "http2" + ] + }, + "IllegalUpdate":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InconsistentQuantities":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidArgument":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidDefaultRootObject":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidErrorCode":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidForwardCookies":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidGeoRestrictionParameter":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidHeadersForS3Origin":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidIfMatchVersion":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidLambdaFunctionAssociation":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidLocationCode":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidMinimumProtocolVersion":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidOrigin":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidOriginAccessIdentity":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidProtocolSettings":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidQueryStringParameters":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidRelativePath":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidRequiredProtocol":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidResponseCode":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidTTLOrder":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidTagging":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidViewerCertificate":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidWebACLId":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "Invalidation":{ + "type":"structure", + "required":[ + "Id", + "Status", + "CreateTime", + "InvalidationBatch" + ], + "members":{ + "Id":{"shape":"string"}, + "Status":{"shape":"string"}, + "CreateTime":{"shape":"timestamp"}, + "InvalidationBatch":{"shape":"InvalidationBatch"} + } + }, + "InvalidationBatch":{ + "type":"structure", + "required":[ + "Paths", + "CallerReference" + ], + "members":{ + "Paths":{"shape":"Paths"}, + "CallerReference":{"shape":"string"} + } + }, + "InvalidationList":{ + "type":"structure", + "required":[ + "Marker", + "MaxItems", + "IsTruncated", + "Quantity" + ], + "members":{ + "Marker":{"shape":"string"}, + "NextMarker":{"shape":"string"}, + "MaxItems":{"shape":"integer"}, + "IsTruncated":{"shape":"boolean"}, + "Quantity":{"shape":"integer"}, + "Items":{"shape":"InvalidationSummaryList"} + } + }, + "InvalidationSummary":{ + "type":"structure", + "required":[ + "Id", + "CreateTime", + "Status" + ], + "members":{ + "Id":{"shape":"string"}, + "CreateTime":{"shape":"timestamp"}, + "Status":{"shape":"string"} + } + }, + "InvalidationSummaryList":{ + "type":"list", + "member":{ + "shape":"InvalidationSummary", + "locationName":"InvalidationSummary" + } + }, + "ItemSelection":{ + "type":"string", + "enum":[ + "none", + "whitelist", + "all" + ] + }, + "KeyPairIdList":{ + "type":"list", + "member":{ + "shape":"string", + "locationName":"KeyPairId" + } + }, + "KeyPairIds":{ + "type":"structure", + "required":["Quantity"], + "members":{ + "Quantity":{"shape":"integer"}, + "Items":{"shape":"KeyPairIdList"} + } + }, + "LambdaFunctionAssociation":{ + "type":"structure", + "members":{ + "LambdaFunctionARN":{"shape":"string"}, + "EventType":{"shape":"EventType"} + } + }, + "LambdaFunctionAssociationList":{ + "type":"list", + "member":{ + "shape":"LambdaFunctionAssociation", + "locationName":"LambdaFunctionAssociation" + } + }, + "LambdaFunctionAssociations":{ + "type":"structure", + "required":["Quantity"], + "members":{ + "Quantity":{"shape":"integer"}, + "Items":{"shape":"LambdaFunctionAssociationList"} + } + }, + "ListCloudFrontOriginAccessIdentitiesRequest":{ + "type":"structure", + "members":{ + "Marker":{ + "shape":"string", + "location":"querystring", + "locationName":"Marker" + }, + "MaxItems":{ + "shape":"string", + "location":"querystring", + "locationName":"MaxItems" + } + } + }, + "ListCloudFrontOriginAccessIdentitiesResult":{ + "type":"structure", + "members":{ + "CloudFrontOriginAccessIdentityList":{"shape":"CloudFrontOriginAccessIdentityList"} + }, + "payload":"CloudFrontOriginAccessIdentityList" + }, + "ListDistributionsByWebACLIdRequest":{ + "type":"structure", + "required":["WebACLId"], + "members":{ + "Marker":{ + "shape":"string", + "location":"querystring", + "locationName":"Marker" + }, + "MaxItems":{ + "shape":"string", + "location":"querystring", + "locationName":"MaxItems" + }, + "WebACLId":{ + "shape":"string", + "location":"uri", + "locationName":"WebACLId" + } + } + }, + "ListDistributionsByWebACLIdResult":{ + "type":"structure", + "members":{ + "DistributionList":{"shape":"DistributionList"} + }, + "payload":"DistributionList" + }, + "ListDistributionsRequest":{ + "type":"structure", + "members":{ + "Marker":{ + "shape":"string", + "location":"querystring", + "locationName":"Marker" + }, + "MaxItems":{ + "shape":"string", + "location":"querystring", + "locationName":"MaxItems" + } + } + }, + "ListDistributionsResult":{ + "type":"structure", + "members":{ + "DistributionList":{"shape":"DistributionList"} + }, + "payload":"DistributionList" + }, + "ListInvalidationsRequest":{ + "type":"structure", + "required":["DistributionId"], + "members":{ + "DistributionId":{ + "shape":"string", + "location":"uri", + "locationName":"DistributionId" + }, + "Marker":{ + "shape":"string", + "location":"querystring", + "locationName":"Marker" + }, + "MaxItems":{ + "shape":"string", + "location":"querystring", + "locationName":"MaxItems" + } + } + }, + "ListInvalidationsResult":{ + "type":"structure", + "members":{ + "InvalidationList":{"shape":"InvalidationList"} + }, + "payload":"InvalidationList" + }, + "ListStreamingDistributionsRequest":{ + "type":"structure", + "members":{ + "Marker":{ + "shape":"string", + "location":"querystring", + "locationName":"Marker" + }, + "MaxItems":{ + "shape":"string", + "location":"querystring", + "locationName":"MaxItems" + } + } + }, + "ListStreamingDistributionsResult":{ + "type":"structure", + "members":{ + "StreamingDistributionList":{"shape":"StreamingDistributionList"} + }, + "payload":"StreamingDistributionList" + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["Resource"], + "members":{ + "Resource":{ + "shape":"ResourceARN", + "location":"querystring", + "locationName":"Resource" + } + } + }, + "ListTagsForResourceResult":{ + "type":"structure", + "required":["Tags"], + "members":{ + "Tags":{"shape":"Tags"} + }, + "payload":"Tags" + }, + "LocationList":{ + "type":"list", + "member":{ + "shape":"string", + "locationName":"Location" + } + }, + "LoggingConfig":{ + "type":"structure", + "required":[ + "Enabled", + "IncludeCookies", + "Bucket", + "Prefix" + ], + "members":{ + "Enabled":{"shape":"boolean"}, + "IncludeCookies":{"shape":"boolean"}, + "Bucket":{"shape":"string"}, + "Prefix":{"shape":"string"} + } + }, + "Method":{ + "type":"string", + "enum":[ + "GET", + "HEAD", + "POST", + "PUT", + "PATCH", + "OPTIONS", + "DELETE" + ] + }, + "MethodsList":{ + "type":"list", + "member":{ + "shape":"Method", + "locationName":"Method" + } + }, + "MinimumProtocolVersion":{ + "type":"string", + "enum":[ + "SSLv3", + "TLSv1" + ] + }, + "MissingBody":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "NoSuchCloudFrontOriginAccessIdentity":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "NoSuchDistribution":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "NoSuchInvalidation":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "NoSuchOrigin":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "NoSuchResource":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "NoSuchStreamingDistribution":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "Origin":{ + "type":"structure", + "required":[ + "Id", + "DomainName" + ], + "members":{ + "Id":{"shape":"string"}, + "DomainName":{"shape":"string"}, + "OriginPath":{"shape":"string"}, + "CustomHeaders":{"shape":"CustomHeaders"}, + "S3OriginConfig":{"shape":"S3OriginConfig"}, + "CustomOriginConfig":{"shape":"CustomOriginConfig"} + } + }, + "OriginCustomHeader":{ + "type":"structure", + "required":[ + "HeaderName", + "HeaderValue" + ], + "members":{ + "HeaderName":{"shape":"string"}, + "HeaderValue":{"shape":"string"} + } + }, + "OriginCustomHeadersList":{ + "type":"list", + "member":{ + "shape":"OriginCustomHeader", + "locationName":"OriginCustomHeader" + } + }, + "OriginList":{ + "type":"list", + "member":{ + "shape":"Origin", + "locationName":"Origin" + }, + "min":1 + }, + "OriginProtocolPolicy":{ + "type":"string", + "enum":[ + "http-only", + "match-viewer", + "https-only" + ] + }, + "OriginSslProtocols":{ + "type":"structure", + "required":[ + "Quantity", + "Items" + ], + "members":{ + "Quantity":{"shape":"integer"}, + "Items":{"shape":"SslProtocolsList"} + } + }, + "Origins":{ + "type":"structure", + "required":["Quantity"], + "members":{ + "Quantity":{"shape":"integer"}, + "Items":{"shape":"OriginList"} + } + }, + "PathList":{ + "type":"list", + "member":{ + "shape":"string", + "locationName":"Path" + } + }, + "Paths":{ + "type":"structure", + "required":["Quantity"], + "members":{ + "Quantity":{"shape":"integer"}, + "Items":{"shape":"PathList"} + } + }, + "PreconditionFailed":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":412}, + "exception":true + }, + "PriceClass":{ + "type":"string", + "enum":[ + "PriceClass_100", + "PriceClass_200", + "PriceClass_All" + ] + }, + "QueryStringCacheKeys":{ + "type":"structure", + "required":["Quantity"], + "members":{ + "Quantity":{"shape":"integer"}, + "Items":{"shape":"QueryStringCacheKeysList"} + } + }, + "QueryStringCacheKeysList":{ + "type":"list", + "member":{ + "shape":"string", + "locationName":"Name" + } + }, + "ResourceARN":{ + "type":"string", + "pattern":"arn:aws:cloudfront::[0-9]+:.*" + }, + "Restrictions":{ + "type":"structure", + "required":["GeoRestriction"], + "members":{ + "GeoRestriction":{"shape":"GeoRestriction"} + } + }, + "S3Origin":{ + "type":"structure", + "required":[ + "DomainName", + "OriginAccessIdentity" + ], + "members":{ + "DomainName":{"shape":"string"}, + "OriginAccessIdentity":{"shape":"string"} + } + }, + "S3OriginConfig":{ + "type":"structure", + "required":["OriginAccessIdentity"], + "members":{ + "OriginAccessIdentity":{"shape":"string"} + } + }, + "SSLSupportMethod":{ + "type":"string", + "enum":[ + "sni-only", + "vip" + ] + }, + "Signer":{ + "type":"structure", + "members":{ + "AwsAccountNumber":{"shape":"string"}, + "KeyPairIds":{"shape":"KeyPairIds"} + } + }, + "SignerList":{ + "type":"list", + "member":{ + "shape":"Signer", + "locationName":"Signer" + } + }, + "SslProtocol":{ + "type":"string", + "enum":[ + "SSLv3", + "TLSv1", + "TLSv1.1", + "TLSv1.2" + ] + }, + "SslProtocolsList":{ + "type":"list", + "member":{ + "shape":"SslProtocol", + "locationName":"SslProtocol" + } + }, + "StreamingDistribution":{ + "type":"structure", + "required":[ + "Id", + "ARN", + "Status", + "DomainName", + "ActiveTrustedSigners", + "StreamingDistributionConfig" + ], + "members":{ + "Id":{"shape":"string"}, + "ARN":{"shape":"string"}, + "Status":{"shape":"string"}, + "LastModifiedTime":{"shape":"timestamp"}, + "DomainName":{"shape":"string"}, + "ActiveTrustedSigners":{"shape":"ActiveTrustedSigners"}, + "StreamingDistributionConfig":{"shape":"StreamingDistributionConfig"} + } + }, + "StreamingDistributionAlreadyExists":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "StreamingDistributionConfig":{ + "type":"structure", + "required":[ + "CallerReference", + "S3Origin", + "Comment", + "TrustedSigners", + "Enabled" + ], + "members":{ + "CallerReference":{"shape":"string"}, + "S3Origin":{"shape":"S3Origin"}, + "Aliases":{"shape":"Aliases"}, + "Comment":{"shape":"string"}, + "Logging":{"shape":"StreamingLoggingConfig"}, + "TrustedSigners":{"shape":"TrustedSigners"}, + "PriceClass":{"shape":"PriceClass"}, + "Enabled":{"shape":"boolean"} + } + }, + "StreamingDistributionConfigWithTags":{ + "type":"structure", + "required":[ + "StreamingDistributionConfig", + "Tags" + ], + "members":{ + "StreamingDistributionConfig":{"shape":"StreamingDistributionConfig"}, + "Tags":{"shape":"Tags"} + } + }, + "StreamingDistributionList":{ + "type":"structure", + "required":[ + "Marker", + "MaxItems", + "IsTruncated", + "Quantity" + ], + "members":{ + "Marker":{"shape":"string"}, + "NextMarker":{"shape":"string"}, + "MaxItems":{"shape":"integer"}, + "IsTruncated":{"shape":"boolean"}, + "Quantity":{"shape":"integer"}, + "Items":{"shape":"StreamingDistributionSummaryList"} + } + }, + "StreamingDistributionNotDisabled":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "StreamingDistributionSummary":{ + "type":"structure", + "required":[ + "Id", + "ARN", + "Status", + "LastModifiedTime", + "DomainName", + "S3Origin", + "Aliases", + "TrustedSigners", + "Comment", + "PriceClass", + "Enabled" + ], + "members":{ + "Id":{"shape":"string"}, + "ARN":{"shape":"string"}, + "Status":{"shape":"string"}, + "LastModifiedTime":{"shape":"timestamp"}, + "DomainName":{"shape":"string"}, + "S3Origin":{"shape":"S3Origin"}, + "Aliases":{"shape":"Aliases"}, + "TrustedSigners":{"shape":"TrustedSigners"}, + "Comment":{"shape":"string"}, + "PriceClass":{"shape":"PriceClass"}, + "Enabled":{"shape":"boolean"} + } + }, + "StreamingDistributionSummaryList":{ + "type":"list", + "member":{ + "shape":"StreamingDistributionSummary", + "locationName":"StreamingDistributionSummary" + } + }, + "StreamingLoggingConfig":{ + "type":"structure", + "required":[ + "Enabled", + "Bucket", + "Prefix" + ], + "members":{ + "Enabled":{"shape":"boolean"}, + "Bucket":{"shape":"string"}, + "Prefix":{"shape":"string"} + } + }, + "Tag":{ + "type":"structure", + "required":["Key"], + "members":{ + "Key":{"shape":"TagKey"}, + "Value":{"shape":"TagValue"} + } + }, + "TagKey":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + }, + "TagKeyList":{ + "type":"list", + "member":{ + "shape":"TagKey", + "locationName":"Key" + } + }, + "TagKeys":{ + "type":"structure", + "members":{ + "Items":{"shape":"TagKeyList"} + } + }, + "TagList":{ + "type":"list", + "member":{ + "shape":"Tag", + "locationName":"Tag" + } + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "Resource", + "Tags" + ], + "members":{ + "Resource":{ + "shape":"ResourceARN", + "location":"querystring", + "locationName":"Resource" + }, + "Tags":{ + "shape":"Tags", + "locationName":"Tags", + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"} + } + }, + "payload":"Tags" + }, + "TagValue":{ + "type":"string", + "max":256, + "min":0, + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + }, + "Tags":{ + "type":"structure", + "members":{ + "Items":{"shape":"TagList"} + } + }, + "TooManyCacheBehaviors":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "TooManyCertificates":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "TooManyCloudFrontOriginAccessIdentities":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "TooManyCookieNamesInWhiteList":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "TooManyDistributionCNAMEs":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "TooManyDistributions":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "TooManyDistributionsWithLambdaAssociations":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "TooManyHeadersInForwardedValues":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "TooManyInvalidationsInProgress":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "TooManyLambdaFunctionAssociations":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "TooManyOriginCustomHeaders":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "TooManyOrigins":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "TooManyQueryStringParameters":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "TooManyStreamingDistributionCNAMEs":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "TooManyStreamingDistributions":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "TooManyTrustedSigners":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "TrustedSignerDoesNotExist":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "TrustedSigners":{ + "type":"structure", + "required":[ + "Enabled", + "Quantity" + ], + "members":{ + "Enabled":{"shape":"boolean"}, + "Quantity":{"shape":"integer"}, + "Items":{"shape":"AwsAccountNumberList"} + } + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "Resource", + "TagKeys" + ], + "members":{ + "Resource":{ + "shape":"ResourceARN", + "location":"querystring", + "locationName":"Resource" + }, + "TagKeys":{ + "shape":"TagKeys", + "locationName":"TagKeys", + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"} + } + }, + "payload":"TagKeys" + }, + "UpdateCloudFrontOriginAccessIdentityRequest":{ + "type":"structure", + "required":[ + "CloudFrontOriginAccessIdentityConfig", + "Id" + ], + "members":{ + "CloudFrontOriginAccessIdentityConfig":{ + "shape":"CloudFrontOriginAccessIdentityConfig", + "locationName":"CloudFrontOriginAccessIdentityConfig", + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"} + }, + "Id":{ + "shape":"string", + "location":"uri", + "locationName":"Id" + }, + "IfMatch":{ + "shape":"string", + "location":"header", + "locationName":"If-Match" + } + }, + "payload":"CloudFrontOriginAccessIdentityConfig" + }, + "UpdateCloudFrontOriginAccessIdentityResult":{ + "type":"structure", + "members":{ + "CloudFrontOriginAccessIdentity":{"shape":"CloudFrontOriginAccessIdentity"}, + "ETag":{ + "shape":"string", + "location":"header", + "locationName":"ETag" + } + }, + "payload":"CloudFrontOriginAccessIdentity" + }, + "UpdateDistributionRequest":{ + "type":"structure", + "required":[ + "DistributionConfig", + "Id" + ], + "members":{ + "DistributionConfig":{ + "shape":"DistributionConfig", + "locationName":"DistributionConfig", + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"} + }, + "Id":{ + "shape":"string", + "location":"uri", + "locationName":"Id" + }, + "IfMatch":{ + "shape":"string", + "location":"header", + "locationName":"If-Match" + } + }, + "payload":"DistributionConfig" + }, + "UpdateDistributionResult":{ + "type":"structure", + "members":{ + "Distribution":{"shape":"Distribution"}, + "ETag":{ + "shape":"string", + "location":"header", + "locationName":"ETag" + } + }, + "payload":"Distribution" + }, + "UpdateStreamingDistributionRequest":{ + "type":"structure", + "required":[ + "StreamingDistributionConfig", + "Id" + ], + "members":{ + "StreamingDistributionConfig":{ + "shape":"StreamingDistributionConfig", + "locationName":"StreamingDistributionConfig", + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"} + }, + "Id":{ + "shape":"string", + "location":"uri", + "locationName":"Id" + }, + "IfMatch":{ + "shape":"string", + "location":"header", + "locationName":"If-Match" + } + }, + "payload":"StreamingDistributionConfig" + }, + "UpdateStreamingDistributionResult":{ + "type":"structure", + "members":{ + "StreamingDistribution":{"shape":"StreamingDistribution"}, + "ETag":{ + "shape":"string", + "location":"header", + "locationName":"ETag" + } + }, + "payload":"StreamingDistribution" + }, + "ViewerCertificate":{ + "type":"structure", + "members":{ + "CloudFrontDefaultCertificate":{"shape":"boolean"}, + "IAMCertificateId":{"shape":"string"}, + "ACMCertificateArn":{"shape":"string"}, + "SSLSupportMethod":{"shape":"SSLSupportMethod"}, + "MinimumProtocolVersion":{"shape":"MinimumProtocolVersion"}, + "Certificate":{ + "shape":"string", + "deprecated":true + }, + "CertificateSource":{ + "shape":"CertificateSource", + "deprecated":true + } + } + }, + "ViewerProtocolPolicy":{ + "type":"string", + "enum":[ + "allow-all", + "https-only", + "redirect-to-https" + ] + }, + "boolean":{"type":"boolean"}, + "integer":{"type":"integer"}, + "long":{"type":"long"}, + "string":{"type":"string"}, + "timestamp":{"type":"timestamp"} + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-11-25/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-11-25/docs-2.json new file mode 100644 index 000000000..de255b727 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-11-25/docs-2.json @@ -0,0 +1,1435 @@ +{ + "version": "2.0", + "service": "Amazon CloudFront

This is the Amazon CloudFront API Reference. This guide is for developers who need detailed information about the CloudFront API actions, data types, and errors. For detailed information about CloudFront features and their associated API calls, see the Amazon CloudFront Developer Guide.

", + "operations": { + "CreateCloudFrontOriginAccessIdentity": "

Creates a new origin access identity. If you're using Amazon S3 for your origin, you can use an origin access identity to require users to access your content using a CloudFront URL instead of the Amazon S3 URL. For more information about how to use origin access identities, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.

", + "CreateDistribution": "

Creates a new web distribution. Send a GET request to the /CloudFront API version/distribution/distribution ID resource.

", + "CreateDistributionWithTags": "

Create a new distribution with tags.

", + "CreateInvalidation": "

Create a new invalidation.

", + "CreateStreamingDistribution": "

Creates a new RMTP distribution. An RTMP distribution is similar to a web distribution, but an RTMP distribution streams media files using the Adobe Real-Time Messaging Protocol (RTMP) instead of serving files using HTTP.

To create a new web distribution, submit a POST request to the CloudFront API version/distribution resource. The request body must include a document with a StreamingDistributionConfig element. The response echoes the StreamingDistributionConfig element and returns other information about the RTMP distribution.

To get the status of your request, use the GET StreamingDistribution API action. When the value of Enabled is true and the value of Status is Deployed, your distribution is ready. A distribution usually deploys in less than 15 minutes.

For more information about web distributions, see Working with RTMP Distributions in the Amazon CloudFront Developer Guide.

Beginning with the 2012-05-05 version of the CloudFront API, we made substantial changes to the format of the XML document that you include in the request body when you create or update a web distribution or an RTMP distribution, and when you invalidate objects. With previous versions of the API, we discovered that it was too easy to accidentally delete one or more values for an element that accepts multiple values, for example, CNAMEs and trusted signers. Our changes for the 2012-05-05 release are intended to prevent these accidental deletions and to notify you when there's a mismatch between the number of values you say you're specifying in the Quantity element and the number of values specified.

", + "CreateStreamingDistributionWithTags": "

Create a new streaming distribution with tags.

", + "DeleteCloudFrontOriginAccessIdentity": "

Delete an origin access identity.

", + "DeleteDistribution": "

Delete a distribution.

", + "DeleteStreamingDistribution": "

Delete a streaming distribution. To delete an RTMP distribution using the CloudFront API, perform the following steps.

To delete an RTMP distribution using the CloudFront API:

  1. Disable the RTMP distribution.

  2. Submit a GET Streaming Distribution Config request to get the current configuration and the Etag header for the distribution.

  3. Update the XML document that was returned in the response to your GET Streaming Distribution Config request to change the value of Enabled to false.

  4. Submit a PUT Streaming Distribution Config request to update the configuration for your distribution. In the request body, include the XML document that you updated in Step 3. Then set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GET Streaming Distribution Config request in Step 2.

  5. Review the response to the PUT Streaming Distribution Config request to confirm that the distribution was successfully disabled.

  6. Submit a GET Streaming Distribution Config request to confirm that your changes have propagated. When propagation is complete, the value of Status is Deployed.

  7. Submit a DELETE Streaming Distribution request. Set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GET Streaming Distribution Config request in Step 2.

  8. Review the response to your DELETE Streaming Distribution request to confirm that the distribution was successfully deleted.

For information about deleting a distribution using the CloudFront console, see Deleting a Distribution in the Amazon CloudFront Developer Guide.

", + "GetCloudFrontOriginAccessIdentity": "

Get the information about an origin access identity.

", + "GetCloudFrontOriginAccessIdentityConfig": "

Get the configuration information about an origin access identity.

", + "GetDistribution": "

Get the information about a distribution.

", + "GetDistributionConfig": "

Get the configuration information about a distribution.

", + "GetInvalidation": "

Get the information about an invalidation.

", + "GetStreamingDistribution": "

Gets information about a specified RTMP distribution, including the distribution configuration.

", + "GetStreamingDistributionConfig": "

Get the configuration information about a streaming distribution.

", + "ListCloudFrontOriginAccessIdentities": "

Lists origin access identities.

", + "ListDistributions": "

List distributions.

", + "ListDistributionsByWebACLId": "

List the distributions that are associated with a specified AWS WAF web ACL.

", + "ListInvalidations": "

Lists invalidation batches.

", + "ListStreamingDistributions": "

List streaming distributions.

", + "ListTagsForResource": "

List tags for a CloudFront resource.

", + "TagResource": "

Add tags to a CloudFront resource.

", + "UntagResource": "

Remove tags from a CloudFront resource.

", + "UpdateCloudFrontOriginAccessIdentity": "

Update an origin access identity.

", + "UpdateDistribution": "

Update a distribution.

", + "UpdateStreamingDistribution": "

Update a streaming distribution.

" + }, + "shapes": { + "AccessDenied": { + "base": "

Access denied.

", + "refs": { + } + }, + "ActiveTrustedSigners": { + "base": "

A complex type that lists the AWS accounts, if any, that you included in the TrustedSigners complex type for this distribution. These are the accounts that you want to allow to create signed URLs for private content.

The Signer complex type lists the AWS account number of the trusted signer or self if the signer is the AWS account that created the distribution. The Signer element also includes the IDs of any active CloudFront key pairs that are associated with the trusted signer's AWS account. If no KeyPairId element appears for a Signer, that signer can't create signed URLs.

For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.

", + "refs": { + "Distribution$ActiveTrustedSigners": "

CloudFront automatically adds this element to the response only if you've set up the distribution to serve private content with signed URLs. The element lists the key pair IDs that CloudFront is aware of for each trusted signer. The Signer child element lists the AWS account number of the trusted signer (or an empty Self element if the signer is you). The Signer element also includes the IDs of any active key pairs associated with the trusted signer's AWS account. If no KeyPairId element appears for a Signer, that signer can't create working signed URLs.

", + "StreamingDistribution$ActiveTrustedSigners": "

A complex type that lists the AWS accounts, if any, that you included in the TrustedSigners complex type for this distribution. These are the accounts that you want to allow to create signed URLs for private content.

The Signer complex type lists the AWS account number of the trusted signer or self if the signer is the AWS account that created the distribution. The Signer element also includes the IDs of any active CloudFront key pairs that are associated with the trusted signer's AWS account. If no KeyPairId element appears for a Signer, that signer can't create signed URLs.

For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.

" + } + }, + "AliasList": { + "base": null, + "refs": { + "Aliases$Items": "

A complex type that contains the CNAME aliases, if any, that you want to associate with this distribution.

" + } + }, + "Aliases": { + "base": "

A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.

", + "refs": { + "DistributionConfig$Aliases": "

A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.

", + "DistributionSummary$Aliases": "

A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.

", + "StreamingDistributionConfig$Aliases": "

A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.

", + "StreamingDistributionSummary$Aliases": "

A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.

" + } + }, + "AllowedMethods": { + "base": "

A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. There are three choices:

  • CloudFront forwards only GET and HEAD requests.

  • CloudFront forwards only GET, HEAD, and OPTIONS requests.

  • CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests.

If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or to your custom origin so users can't perform operations that you don't want them to. For example, you might not want users to have permissions to delete objects from your origin.

", + "refs": { + "CacheBehavior$AllowedMethods": null, + "DefaultCacheBehavior$AllowedMethods": null + } + }, + "AwsAccountNumberList": { + "base": null, + "refs": { + "TrustedSigners$Items": "

Optional: A complex type that contains trusted signers for this cache behavior. If Quantity is 0, you can omit Items.

" + } + }, + "BatchTooLarge": { + "base": null, + "refs": { + } + }, + "CNAMEAlreadyExists": { + "base": null, + "refs": { + } + }, + "CacheBehavior": { + "base": "

A complex type that describes how CloudFront processes requests.

You must create at least as many cache behaviors (including the default cache behavior) as you have origins if you want CloudFront to distribute objects from all of the origins. Each cache behavior specifies the one origin from which you want CloudFront to get objects. If you have two origins and only the default cache behavior, the default cache behavior will cause CloudFront to get objects from one of the origins, but the other origin is never used.

For the current limit on the number of cache behaviors that you can add to a distribution, see Amazon CloudFront Limits in the AWS General Reference.

If you don't want to specify any cache behaviors, include only an empty CacheBehaviors element. Don't include an empty CacheBehavior element, or CloudFront returns a MalformedXML error.

To delete all cache behaviors in an existing distribution, update the distribution configuration and include only an empty CacheBehaviors element.

To add, change, or remove one or more cache behaviors, update the distribution configuration and specify all of the cache behaviors that you want to include in the updated distribution.

For more information about cache behaviors, see Cache Behaviors in the Amazon CloudFront Developer Guide.

", + "refs": { + "CacheBehaviorList$member": null + } + }, + "CacheBehaviorList": { + "base": null, + "refs": { + "CacheBehaviors$Items": "

Optional: A complex type that contains cache behaviors for this distribution. If Quantity is 0, you can omit Items.

" + } + }, + "CacheBehaviors": { + "base": "

A complex type that contains zero or more CacheBehavior elements.

", + "refs": { + "DistributionConfig$CacheBehaviors": "

A complex type that contains zero or more CacheBehavior elements.

", + "DistributionSummary$CacheBehaviors": "

A complex type that contains zero or more CacheBehavior elements.

" + } + }, + "CachedMethods": { + "base": "

A complex type that controls whether CloudFront caches the response to requests using the specified HTTP methods. There are two choices:

  • CloudFront caches responses to GET and HEAD requests.

  • CloudFront caches responses to GET, HEAD, and OPTIONS requests.

If you pick the second choice for your Amazon S3 Origin, you may need to forward Access-Control-Request-Method, Access-Control-Request-Headers, and Origin headers for the responses to be cached correctly.

", + "refs": { + "AllowedMethods$CachedMethods": null + } + }, + "CertificateSource": { + "base": null, + "refs": { + "ViewerCertificate$CertificateSource": "

This field is deprecated. You can use one of the following: [ACMCertificateArn, IAMCertificateId, or CloudFrontDefaultCertificate].

" + } + }, + "CloudFrontOriginAccessIdentity": { + "base": "

CloudFront origin access identity.

", + "refs": { + "CreateCloudFrontOriginAccessIdentityResult$CloudFrontOriginAccessIdentity": "

The origin access identity's information.

", + "GetCloudFrontOriginAccessIdentityResult$CloudFrontOriginAccessIdentity": "

The origin access identity's information.

", + "UpdateCloudFrontOriginAccessIdentityResult$CloudFrontOriginAccessIdentity": "

The origin access identity's information.

" + } + }, + "CloudFrontOriginAccessIdentityAlreadyExists": { + "base": "

If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.

", + "refs": { + } + }, + "CloudFrontOriginAccessIdentityConfig": { + "base": "

Origin access identity configuration. Send a GET request to the /CloudFront API version/CloudFront/identity ID/config resource.

", + "refs": { + "CloudFrontOriginAccessIdentity$CloudFrontOriginAccessIdentityConfig": "

The current configuration information for the identity.

", + "CreateCloudFrontOriginAccessIdentityRequest$CloudFrontOriginAccessIdentityConfig": "

The current configuration information for the identity.

", + "GetCloudFrontOriginAccessIdentityConfigResult$CloudFrontOriginAccessIdentityConfig": "

The origin access identity's configuration information.

", + "UpdateCloudFrontOriginAccessIdentityRequest$CloudFrontOriginAccessIdentityConfig": "

The identity's configuration information.

" + } + }, + "CloudFrontOriginAccessIdentityInUse": { + "base": null, + "refs": { + } + }, + "CloudFrontOriginAccessIdentityList": { + "base": "

Lists the origin access identities for CloudFront.Send a GET request to the /CloudFront API version/origin-access-identity/cloudfront resource. The response includes a CloudFrontOriginAccessIdentityList element with zero or more CloudFrontOriginAccessIdentitySummary child elements. By default, your entire list of origin access identities is returned in one single page. If the list is long, you can paginate it using the MaxItems and Marker parameters.

", + "refs": { + "ListCloudFrontOriginAccessIdentitiesResult$CloudFrontOriginAccessIdentityList": "

The CloudFrontOriginAccessIdentityList type.

" + } + }, + "CloudFrontOriginAccessIdentitySummary": { + "base": "

Summary of the information about a CloudFront origin access identity.

", + "refs": { + "CloudFrontOriginAccessIdentitySummaryList$member": null + } + }, + "CloudFrontOriginAccessIdentitySummaryList": { + "base": null, + "refs": { + "CloudFrontOriginAccessIdentityList$Items": "

A complex type that contains one CloudFrontOriginAccessIdentitySummary element for each origin access identity that was created by the current AWS account.

" + } + }, + "CookieNameList": { + "base": null, + "refs": { + "CookieNames$Items": "

A complex type that contains one Name element for each cookie that you want CloudFront to forward to the origin for this cache behavior.

" + } + }, + "CookieNames": { + "base": "

A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which ones. For more information about forwarding cookies to the origin, see How CloudFront Forwards, Caches, and Logs Cookies in the Amazon CloudFront Developer Guide.

", + "refs": { + "CookiePreference$WhitelistedNames": "

Required if you specify whitelist for the value of Forward:. A complex type that specifies how many different cookies you want CloudFront to forward to the origin for this cache behavior and, if you want to forward selected cookies, the names of those cookies.

If you specify all or none for the value of Forward, omit WhitelistedNames. If you change the value of Forward from whitelist to all or none and you don't delete the WhitelistedNames element and its child elements, CloudFront deletes them automatically.

For the current limit on the number of cookie names that you can whitelist for each cache behavior, see Amazon CloudFront Limits in the AWS General Reference.

" + } + }, + "CookiePreference": { + "base": "

A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which ones. For more information about forwarding cookies to the origin, see How CloudFront Forwards, Caches, and Logs Cookies in the Amazon CloudFront Developer Guide.

", + "refs": { + "ForwardedValues$Cookies": "

A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which ones. For more information about forwarding cookies to the origin, see How CloudFront Forwards, Caches, and Logs Cookies in the Amazon CloudFront Developer Guide.

" + } + }, + "CreateCloudFrontOriginAccessIdentityRequest": { + "base": "

The request to create a new origin access identity.

", + "refs": { + } + }, + "CreateCloudFrontOriginAccessIdentityResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "CreateDistributionRequest": { + "base": "

The request to create a new distribution.

", + "refs": { + } + }, + "CreateDistributionResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "CreateDistributionWithTagsRequest": { + "base": "

The request to create a new distribution with tags.

", + "refs": { + } + }, + "CreateDistributionWithTagsResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "CreateInvalidationRequest": { + "base": "

The request to create an invalidation.

", + "refs": { + } + }, + "CreateInvalidationResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "CreateStreamingDistributionRequest": { + "base": "

The request to create a new streaming distribution.

", + "refs": { + } + }, + "CreateStreamingDistributionResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "CreateStreamingDistributionWithTagsRequest": { + "base": "

The request to create a new streaming distribution with tags.

", + "refs": { + } + }, + "CreateStreamingDistributionWithTagsResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "CustomErrorResponse": { + "base": "

A complex type that controls:

  • Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.

  • How long CloudFront caches HTTP status codes in the 4xx and 5xx range.

For more information about custom error pages, see Customizing Error Responses in the Amazon CloudFront Developer Guide.

", + "refs": { + "CustomErrorResponseList$member": null + } + }, + "CustomErrorResponseList": { + "base": null, + "refs": { + "CustomErrorResponses$Items": "

A complex type that contains a CustomErrorResponse element for each HTTP status code for which you want to specify a custom error page and/or a caching duration.

" + } + }, + "CustomErrorResponses": { + "base": "

A complex type that controls:

  • Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.

  • How long CloudFront caches HTTP status codes in the 4xx and 5xx range.

For more information about custom error pages, see Customizing Error Responses in the Amazon CloudFront Developer Guide.

", + "refs": { + "DistributionConfig$CustomErrorResponses": "

A complex type that controls the following:

  • Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.

  • How long CloudFront caches HTTP status codes in the 4xx and 5xx range.

For more information about custom error pages, see Customizing Error Responses in the Amazon CloudFront Developer Guide.

", + "DistributionSummary$CustomErrorResponses": "

A complex type that contains zero or more CustomErrorResponses elements.

" + } + }, + "CustomHeaders": { + "base": "

A complex type that contains the list of Custom Headers for each origin.

", + "refs": { + "Origin$CustomHeaders": "

A complex type that contains names and values for the custom headers that you want.

" + } + }, + "CustomOriginConfig": { + "base": "

A customer origin.

", + "refs": { + "Origin$CustomOriginConfig": "

A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead.

" + } + }, + "DefaultCacheBehavior": { + "base": "

A complex type that describes the default cache behavior if you do not specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements. You must create exactly one default cache behavior.

", + "refs": { + "DistributionConfig$DefaultCacheBehavior": "

A complex type that describes the default cache behavior if you do not specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements. You must create exactly one default cache behavior.

", + "DistributionSummary$DefaultCacheBehavior": "

A complex type that describes the default cache behavior if you do not specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements. You must create exactly one default cache behavior.

" + } + }, + "DeleteCloudFrontOriginAccessIdentityRequest": { + "base": "

Deletes a origin access identity.

", + "refs": { + } + }, + "DeleteDistributionRequest": { + "base": "

This action deletes a web distribution. To delete a web distribution using the CloudFront API, perform the following steps.

To delete a web distribution using the CloudFront API:

  1. Disable the web distribution

  2. Submit a GET Distribution Config request to get the current configuration and the Etag header for the distribution.

  3. Update the XML document that was returned in the response to your GET Distribution Config request to change the value of Enabled to false.

  4. Submit a PUT Distribution Config request to update the configuration for your distribution. In the request body, include the XML document that you updated in Step 3. Set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GET Distribution Config request in Step 2.

  5. Review the response to the PUT Distribution Config request to confirm that the distribution was successfully disabled.

  6. Submit a GET Distribution request to confirm that your changes have propagated. When propagation is complete, the value of Status is Deployed.

  7. Submit a DELETE Distribution request. Set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GET Distribution Config request in Step 6.

  8. Review the response to your DELETE Distribution request to confirm that the distribution was successfully deleted.

For information about deleting a distribution using the CloudFront console, see Deleting a Distribution in the Amazon CloudFront Developer Guide.

", + "refs": { + } + }, + "DeleteStreamingDistributionRequest": { + "base": "

The request to delete a streaming distribution.

", + "refs": { + } + }, + "Distribution": { + "base": "

The distribution's information.

", + "refs": { + "CreateDistributionResult$Distribution": "

The distribution's information.

", + "CreateDistributionWithTagsResult$Distribution": "

The distribution's information.

", + "GetDistributionResult$Distribution": "

The distribution's information.

", + "UpdateDistributionResult$Distribution": "

The distribution's information.

" + } + }, + "DistributionAlreadyExists": { + "base": "

The caller reference you attempted to create the distribution with is associated with another distribution.

", + "refs": { + } + }, + "DistributionConfig": { + "base": "

A distribution configuration.

", + "refs": { + "CreateDistributionRequest$DistributionConfig": "

The distribution's configuration information.

", + "Distribution$DistributionConfig": "

The current configuration information for the distribution. Send a GET request to the /CloudFront API version/distribution ID/config resource.

", + "DistributionConfigWithTags$DistributionConfig": "

A distribution configuration.

", + "GetDistributionConfigResult$DistributionConfig": "

The distribution's configuration information.

", + "UpdateDistributionRequest$DistributionConfig": "

The distribution's configuration information.

" + } + }, + "DistributionConfigWithTags": { + "base": "

A distribution Configuration and a list of tags to be associated with the distribution.

", + "refs": { + "CreateDistributionWithTagsRequest$DistributionConfigWithTags": "

The distribution's configuration information.

" + } + }, + "DistributionList": { + "base": "

A distribution list.

", + "refs": { + "ListDistributionsByWebACLIdResult$DistributionList": "

The DistributionList type.

", + "ListDistributionsResult$DistributionList": "

The DistributionList type.

" + } + }, + "DistributionNotDisabled": { + "base": null, + "refs": { + } + }, + "DistributionSummary": { + "base": "

A summary of the information about a CloudFront distribution.

", + "refs": { + "DistributionSummaryList$member": null + } + }, + "DistributionSummaryList": { + "base": null, + "refs": { + "DistributionList$Items": "

A complex type that contains one DistributionSummary element for each distribution that was created by the current AWS account.

" + } + }, + "EventType": { + "base": null, + "refs": { + "LambdaFunctionAssociation$EventType": "

Specifies the event type that triggers a Lambda function invocation. Valid values are:

  • viewer-request

  • origin-request

  • viewer-response

  • origin-response

" + } + }, + "ForwardedValues": { + "base": "

A complex type that specifies how CloudFront handles query strings and cookies.

", + "refs": { + "CacheBehavior$ForwardedValues": "

A complex type that specifies how CloudFront handles query strings and cookies.

", + "DefaultCacheBehavior$ForwardedValues": "

A complex type that specifies how CloudFront handles query strings and cookies.

" + } + }, + "GeoRestriction": { + "base": "

A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using MaxMind GeoIP databases.

", + "refs": { + "Restrictions$GeoRestriction": null + } + }, + "GeoRestrictionType": { + "base": null, + "refs": { + "GeoRestriction$RestrictionType": "

The method that you want to use to restrict distribution of your content by country:

  • none: No geo restriction is enabled, meaning access to content is not restricted by client geo location.

  • blacklist: The Location elements specify the countries in which you do not want CloudFront to distribute your content.

  • whitelist: The Location elements specify the countries in which you want CloudFront to distribute your content.

" + } + }, + "GetCloudFrontOriginAccessIdentityConfigRequest": { + "base": "

The origin access identity's configuration information. For more information, see CloudFrontOriginAccessIdentityConfigComplexType.

", + "refs": { + } + }, + "GetCloudFrontOriginAccessIdentityConfigResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "GetCloudFrontOriginAccessIdentityRequest": { + "base": "

The request to get an origin access identity's information.

", + "refs": { + } + }, + "GetCloudFrontOriginAccessIdentityResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "GetDistributionConfigRequest": { + "base": "

The request to get a distribution configuration.

", + "refs": { + } + }, + "GetDistributionConfigResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "GetDistributionRequest": { + "base": "

The request to get a distribution's information.

", + "refs": { + } + }, + "GetDistributionResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "GetInvalidationRequest": { + "base": "

The request to get an invalidation's information.

", + "refs": { + } + }, + "GetInvalidationResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "GetStreamingDistributionConfigRequest": { + "base": "

To request to get a streaming distribution configuration.

", + "refs": { + } + }, + "GetStreamingDistributionConfigResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "GetStreamingDistributionRequest": { + "base": "

The request to get a streaming distribution's information.

", + "refs": { + } + }, + "GetStreamingDistributionResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "HeaderList": { + "base": null, + "refs": { + "Headers$Items": "

A complex type that contains one Name element for each header that you want CloudFront to forward to the origin and to vary on for this cache behavior. If Quantity is 0, omit Items.

" + } + }, + "Headers": { + "base": "

A complex type that specifies the headers that you want CloudFront to forward to the origin for this cache behavior.

For the headers that you specify, CloudFront also caches separate versions of a specified object based on the header values in viewer requests. For example, suppose viewer requests for logo.jpg contain a custom Product header that has a value of either Acme or Apex, and you configure CloudFront to cache your content based on values in the Product header. CloudFront forwards the Product header to the origin and caches the response from the origin once for each header value. For more information about caching based on header values, see How CloudFront Forwards and Caches Headers in the Amazon CloudFront Developer Guide.

", + "refs": { + "ForwardedValues$Headers": "

A complex type that specifies the Headers, if any, that you want CloudFront to vary upon for this cache behavior.

" + } + }, + "HttpVersion": { + "base": null, + "refs": { + "DistributionConfig$HttpVersion": "

(Optional) Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The default value for new web distributions is http2. Viewers that don't support HTTP/2 automatically use an earlier HTTP version.

For viewers and CloudFront to use HTTP/2, viewers must support TLS 1.2 or later, and must support Server Name Identification (SNI).

In general, configuring CloudFront to communicate with viewers using HTTP/2 reduces latency. You can improve performance by optimizing for HTTP/2. For more information, do an Internet search for \"http/2 optimization.\"

", + "DistributionSummary$HttpVersion": "

Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The default value for new web distributions is http2. Viewers that don't support HTTP/2 will automatically use an earlier version.

" + } + }, + "IllegalUpdate": { + "base": "

Origin and CallerReference cannot be updated.

", + "refs": { + } + }, + "InconsistentQuantities": { + "base": "

The value of Quantity and the size of Items do not match.

", + "refs": { + } + }, + "InvalidArgument": { + "base": "

The argument is invalid.

", + "refs": { + } + }, + "InvalidDefaultRootObject": { + "base": "

The default root object file name is too big or contains an invalid character.

", + "refs": { + } + }, + "InvalidErrorCode": { + "base": null, + "refs": { + } + }, + "InvalidForwardCookies": { + "base": "

Your request contains forward cookies option which doesn't match with the expectation for the whitelisted list of cookie names. Either list of cookie names has been specified when not allowed or list of cookie names is missing when expected.

", + "refs": { + } + }, + "InvalidGeoRestrictionParameter": { + "base": null, + "refs": { + } + }, + "InvalidHeadersForS3Origin": { + "base": null, + "refs": { + } + }, + "InvalidIfMatchVersion": { + "base": "

The If-Match version is missing or not valid for the distribution.

", + "refs": { + } + }, + "InvalidLambdaFunctionAssociation": { + "base": "

The specified Lambda function association is invalid.

", + "refs": { + } + }, + "InvalidLocationCode": { + "base": null, + "refs": { + } + }, + "InvalidMinimumProtocolVersion": { + "base": null, + "refs": { + } + }, + "InvalidOrigin": { + "base": "

The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.

", + "refs": { + } + }, + "InvalidOriginAccessIdentity": { + "base": "

The origin access identity is not valid or doesn't exist.

", + "refs": { + } + }, + "InvalidProtocolSettings": { + "base": "

You cannot specify SSLv3 as the minimum protocol version if you only want to support only clients that support Server Name Indication (SNI).

", + "refs": { + } + }, + "InvalidQueryStringParameters": { + "base": null, + "refs": { + } + }, + "InvalidRelativePath": { + "base": "

The relative path is too big, is not URL-encoded, or does not begin with a slash (/).

", + "refs": { + } + }, + "InvalidRequiredProtocol": { + "base": "

This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol in your request, or omit the RequiredProtocols element from your distribution configuration.

", + "refs": { + } + }, + "InvalidResponseCode": { + "base": null, + "refs": { + } + }, + "InvalidTTLOrder": { + "base": null, + "refs": { + } + }, + "InvalidTagging": { + "base": null, + "refs": { + } + }, + "InvalidViewerCertificate": { + "base": null, + "refs": { + } + }, + "InvalidWebACLId": { + "base": null, + "refs": { + } + }, + "Invalidation": { + "base": "

An invalidation.

", + "refs": { + "CreateInvalidationResult$Invalidation": "

The invalidation's information.

", + "GetInvalidationResult$Invalidation": "

The invalidation's information. For more information, see Invalidation Complex Type.

" + } + }, + "InvalidationBatch": { + "base": "

An invalidation batch.

", + "refs": { + "CreateInvalidationRequest$InvalidationBatch": "

The batch information for the invalidation.

", + "Invalidation$InvalidationBatch": "

The current invalidation information for the batch request.

" + } + }, + "InvalidationList": { + "base": "

The InvalidationList complex type describes the list of invalidation objects. For more information about invalidation, see Invalidating Objects (Web Distributions Only) in the Amazon CloudFront Developer Guide.

", + "refs": { + "ListInvalidationsResult$InvalidationList": "

Information about invalidation batches.

" + } + }, + "InvalidationSummary": { + "base": "

A summary of an invalidation request.

", + "refs": { + "InvalidationSummaryList$member": null + } + }, + "InvalidationSummaryList": { + "base": null, + "refs": { + "InvalidationList$Items": "

A complex type that contains one InvalidationSummary element for each invalidation batch created by the current AWS account.

" + } + }, + "ItemSelection": { + "base": null, + "refs": { + "CookiePreference$Forward": "

Specifies which cookies to forward to the origin for this cache behavior: all, none, or the list of cookies specified in the WhitelistedNames complex type.

Amazon S3 doesn't process cookies. When the cache behavior is forwarding requests to an Amazon S3 origin, specify none for the Forward element.

" + } + }, + "KeyPairIdList": { + "base": null, + "refs": { + "KeyPairIds$Items": "

A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber.

For more information, see ActiveTrustedSigners.

" + } + }, + "KeyPairIds": { + "base": "

A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber.

For more information, see ActiveTrustedSigners.

", + "refs": { + "Signer$KeyPairIds": "

A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber.

" + } + }, + "LambdaFunctionAssociation": { + "base": "

A complex type that contains a Lambda function association.

", + "refs": { + "LambdaFunctionAssociationList$member": null + } + }, + "LambdaFunctionAssociationList": { + "base": null, + "refs": { + "LambdaFunctionAssociations$Items": "

Optional: A complex type that contains LambdaFunctionAssociation items for this cache behavior. If Quantity is 0, you can omit Items.

" + } + }, + "LambdaFunctionAssociations": { + "base": "

A complex type that specifies a list of Lambda functions associations for a cache behavior.

If you want to invoke one or more Lambda functions triggered by requests that match the PathPattern of the cache behavior, specify the applicable values for Quantity and Items. Note that there can be up to 4 LambdaFunctionAssociation items in this list (one for each possible value of EventType) and each EventType can be associated with the Lambda function only once.

If you don't want to invoke any Lambda functions for the requests that match PathPattern, specify 0 for Quantity and omit Items.

", + "refs": { + "CacheBehavior$LambdaFunctionAssociations": "

A complex type that contains zero or more Lambda function associations for a cache behavior.

", + "DefaultCacheBehavior$LambdaFunctionAssociations": "

A complex type that contains zero or more Lambda function associations for a cache behavior.

" + } + }, + "ListCloudFrontOriginAccessIdentitiesRequest": { + "base": "

The request to list origin access identities.

", + "refs": { + } + }, + "ListCloudFrontOriginAccessIdentitiesResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "ListDistributionsByWebACLIdRequest": { + "base": "

The request to list distributions that are associated with a specified AWS WAF web ACL.

", + "refs": { + } + }, + "ListDistributionsByWebACLIdResult": { + "base": "

The response to a request to list the distributions that are associated with a specified AWS WAF web ACL.

", + "refs": { + } + }, + "ListDistributionsRequest": { + "base": "

The request to list your distributions.

", + "refs": { + } + }, + "ListDistributionsResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "ListInvalidationsRequest": { + "base": "

The request to list invalidations.

", + "refs": { + } + }, + "ListInvalidationsResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "ListStreamingDistributionsRequest": { + "base": "

The request to list your streaming distributions.

", + "refs": { + } + }, + "ListStreamingDistributionsResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "ListTagsForResourceRequest": { + "base": "

The request to list tags for a CloudFront resource.

", + "refs": { + } + }, + "ListTagsForResourceResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "LocationList": { + "base": null, + "refs": { + "GeoRestriction$Items": "

A complex type that contains a Location element for each country in which you want CloudFront either to distribute your content (whitelist) or not distribute your content (blacklist).

The Location element is a two-letter, uppercase country code for a country that you want to include in your blacklist or whitelist. Include one Location element for each country.

CloudFront and MaxMind both use ISO 3166 country codes. For the current list of countries and the corresponding codes, see ISO 3166-1-alpha-2 code on the International Organization for Standardization website. You can also refer to the country list in the CloudFront console, which includes both country names and codes.

" + } + }, + "LoggingConfig": { + "base": "

A complex type that controls whether access logs are written for the distribution.

", + "refs": { + "DistributionConfig$Logging": "

A complex type that controls whether access logs are written for the distribution.

For more information about logging, see Access Logs in the Amazon CloudFront Developer Guide.

" + } + }, + "Method": { + "base": null, + "refs": { + "MethodsList$member": null + } + }, + "MethodsList": { + "base": null, + "refs": { + "AllowedMethods$Items": "

A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.

", + "CachedMethods$Items": "

A complex type that contains the HTTP methods that you want CloudFront to cache responses to.

" + } + }, + "MinimumProtocolVersion": { + "base": null, + "refs": { + "ViewerCertificate$MinimumProtocolVersion": "

Specify the minimum version of the SSL/TLS protocol that you want CloudFront to use for HTTPS connections between viewers and CloudFront: SSLv3 or TLSv1. CloudFront serves your objects only to viewers that support SSL/TLS version that you specify and later versions. The TLSv1 protocol is more secure, so we recommend that you specify SSLv3 only if your users are using browsers or devices that don't support TLSv1. Note the following:

  • If you specify <CloudFrontDefaultCertificate>true<CloudFrontDefaultCertificate>, the minimum SSL protocol version is TLSv1 and can't be changed.

  • If you're using a custom certificate (if you specify a value for ACMCertificateArn or for IAMCertificateId) and if you're using SNI (if you specify sni-only for SSLSupportMethod), you must specify TLSv1 for MinimumProtocolVersion.

" + } + }, + "MissingBody": { + "base": "

This operation requires a body. Ensure that the body is present and the Content-Type header is set.

", + "refs": { + } + }, + "NoSuchCloudFrontOriginAccessIdentity": { + "base": "

The specified origin access identity does not exist.

", + "refs": { + } + }, + "NoSuchDistribution": { + "base": "

The specified distribution does not exist.

", + "refs": { + } + }, + "NoSuchInvalidation": { + "base": "

The specified invalidation does not exist.

", + "refs": { + } + }, + "NoSuchOrigin": { + "base": "

No origin exists with the specified Origin Id.

", + "refs": { + } + }, + "NoSuchResource": { + "base": null, + "refs": { + } + }, + "NoSuchStreamingDistribution": { + "base": "

The specified streaming distribution does not exist.

", + "refs": { + } + }, + "Origin": { + "base": "

A complex type that describes the Amazon S3 bucket or the HTTP server (for example, a web server) from which CloudFront gets your files. You must create at least one origin.

For the current limit on the number of origins that you can create for a distribution, see Amazon CloudFront Limits in the AWS General Reference.

", + "refs": { + "OriginList$member": null + } + }, + "OriginCustomHeader": { + "base": "

A complex type that contains HeaderName and HeaderValue elements, if any, for this distribution.

", + "refs": { + "OriginCustomHeadersList$member": null + } + }, + "OriginCustomHeadersList": { + "base": null, + "refs": { + "CustomHeaders$Items": "

Optional: A list that contains one OriginCustomHeader element for each custom header that you want CloudFront to forward to the origin. If Quantity is 0, omit Items.

" + } + }, + "OriginList": { + "base": null, + "refs": { + "Origins$Items": "

A complex type that contains origins for this distribution.

" + } + }, + "OriginProtocolPolicy": { + "base": null, + "refs": { + "CustomOriginConfig$OriginProtocolPolicy": "

The origin protocol policy to apply to your origin.

" + } + }, + "OriginSslProtocols": { + "base": "

A complex type that contains information about the SSL/TLS protocols that CloudFront can use when establishing an HTTPS connection with your origin.

", + "refs": { + "CustomOriginConfig$OriginSslProtocols": "

The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS.

" + } + }, + "Origins": { + "base": "

A complex type that contains information about origins for this distribution.

", + "refs": { + "DistributionConfig$Origins": "

A complex type that contains information about origins for this distribution.

", + "DistributionSummary$Origins": "

A complex type that contains information about origins for this distribution.

" + } + }, + "PathList": { + "base": null, + "refs": { + "Paths$Items": "

A complex type that contains a list of the paths that you want to invalidate.

" + } + }, + "Paths": { + "base": "

A complex type that contains information about the objects that you want to invalidate. For more information, see Specifying the Objects to Invalidate in the Amazon CloudFront Developer Guide.

", + "refs": { + "InvalidationBatch$Paths": "

A complex type that contains information about the objects that you want to invalidate. For more information, see Specifying the Objects to Invalidate in the Amazon CloudFront Developer Guide.

" + } + }, + "PreconditionFailed": { + "base": "

The precondition given in one or more of the request-header fields evaluated to false.

", + "refs": { + } + }, + "PriceClass": { + "base": null, + "refs": { + "DistributionConfig$PriceClass": "

The price class that corresponds with the maximum price that you want to pay for CloudFront service. If you specify PriceClass_All, CloudFront responds to requests for your objects from all CloudFront edge locations.

If you specify a price class other than PriceClass_All, CloudFront serves your objects from the CloudFront edge location that has the lowest latency among the edge locations in your price class. Viewers who are in or near regions that are excluded from your specified price class may encounter slower performance.

For more information about price classes, see Choosing the Price Class for a CloudFront Distribution in the Amazon CloudFront Developer Guide. For information about CloudFront pricing, including how price classes map to CloudFront regions, see Amazon CloudFront Pricing.

", + "DistributionSummary$PriceClass": null, + "StreamingDistributionConfig$PriceClass": "

A complex type that contains information about price class for this streaming distribution.

", + "StreamingDistributionSummary$PriceClass": null + } + }, + "QueryStringCacheKeys": { + "base": null, + "refs": { + "ForwardedValues$QueryStringCacheKeys": "

A complex type that contains information about the query string parameters that you want CloudFront to use for caching for this cache behavior.

" + } + }, + "QueryStringCacheKeysList": { + "base": null, + "refs": { + "QueryStringCacheKeys$Items": "

(Optional) A list that contains the query string parameters that you want CloudFront to use as a basis for caching for this cache behavior. If Quantity is 0, you can omit Items.

" + } + }, + "ResourceARN": { + "base": null, + "refs": { + "ListTagsForResourceRequest$Resource": "

An ARN of a CloudFront resource.

", + "TagResourceRequest$Resource": "

An ARN of a CloudFront resource.

", + "UntagResourceRequest$Resource": "

An ARN of a CloudFront resource.

" + } + }, + "Restrictions": { + "base": "

A complex type that identifies ways in which you want to restrict distribution of your content.

", + "refs": { + "DistributionConfig$Restrictions": null, + "DistributionSummary$Restrictions": null + } + }, + "S3Origin": { + "base": "

A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.

", + "refs": { + "StreamingDistributionConfig$S3Origin": "

A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.

", + "StreamingDistributionSummary$S3Origin": "

A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.

" + } + }, + "S3OriginConfig": { + "base": "

A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.

", + "refs": { + "Origin$S3OriginConfig": "

A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.

" + } + }, + "SSLSupportMethod": { + "base": null, + "refs": { + "ViewerCertificate$SSLSupportMethod": "

If you specify a value for ACMCertificateArn or for IAMCertificateId, you must also specify how you want CloudFront to serve HTTPS requests: using a method that works for all clients or one that works for most clients:

  • vip: CloudFront uses dedicated IP addresses for your content and can respond to HTTPS requests from any viewer. However, you must request permission to use this feature, and you incur additional monthly charges.

  • sni-only: CloudFront can respond to HTTPS requests from viewers that support Server Name Indication (SNI). All modern browsers support SNI, but some browsers still in use don't support SNI. If some of your users' browsers don't support SNI, we recommend that you do one of the following:

    • Use the vip option (dedicated IP addresses) instead of sni-only.

    • Use the CloudFront SSL/TLS certificate instead of a custom certificate. This requires that you use the CloudFront domain name of your distribution in the URLs for your objects, for example, https://d111111abcdef8.cloudfront.net/logo.png.

    • If you can control which browser your users use, upgrade the browser to one that supports SNI.

    • Use HTTP instead of HTTPS.

Do not specify a value for SSLSupportMethod if you specified <CloudFrontDefaultCertificate>true<CloudFrontDefaultCertificate>.

For more information, see Using Alternate Domain Names and HTTPS in the Amazon CloudFront Developer Guide.

" + } + }, + "Signer": { + "base": "

A complex type that lists the AWS accounts that were included in the TrustedSigners complex type, as well as their active CloudFront key pair IDs, if any.

", + "refs": { + "SignerList$member": null + } + }, + "SignerList": { + "base": null, + "refs": { + "ActiveTrustedSigners$Items": "

A complex type that contains one Signer complex type for each trusted signer that is specified in the TrustedSigners complex type.

For more information, see ActiveTrustedSigners.

" + } + }, + "SslProtocol": { + "base": null, + "refs": { + "SslProtocolsList$member": null + } + }, + "SslProtocolsList": { + "base": null, + "refs": { + "OriginSslProtocols$Items": "

A list that contains allowed SSL/TLS protocols for this distribution.

" + } + }, + "StreamingDistribution": { + "base": "

A streaming distribution.

", + "refs": { + "CreateStreamingDistributionResult$StreamingDistribution": "

The streaming distribution's information.

", + "CreateStreamingDistributionWithTagsResult$StreamingDistribution": "

The streaming distribution's information.

", + "GetStreamingDistributionResult$StreamingDistribution": "

The streaming distribution's information.

", + "UpdateStreamingDistributionResult$StreamingDistribution": "

The streaming distribution's information.

" + } + }, + "StreamingDistributionAlreadyExists": { + "base": null, + "refs": { + } + }, + "StreamingDistributionConfig": { + "base": "

The RTMP distribution's configuration information.

", + "refs": { + "CreateStreamingDistributionRequest$StreamingDistributionConfig": "

The streaming distribution's configuration information.

", + "GetStreamingDistributionConfigResult$StreamingDistributionConfig": "

The streaming distribution's configuration information.

", + "StreamingDistribution$StreamingDistributionConfig": "

The current configuration information for the RTMP distribution.

", + "StreamingDistributionConfigWithTags$StreamingDistributionConfig": "

A streaming distribution Configuration.

", + "UpdateStreamingDistributionRequest$StreamingDistributionConfig": "

The streaming distribution's configuration information.

" + } + }, + "StreamingDistributionConfigWithTags": { + "base": "

A streaming distribution Configuration and a list of tags to be associated with the streaming distribution.

", + "refs": { + "CreateStreamingDistributionWithTagsRequest$StreamingDistributionConfigWithTags": "

The streaming distribution's configuration information.

" + } + }, + "StreamingDistributionList": { + "base": "

A streaming distribution list.

", + "refs": { + "ListStreamingDistributionsResult$StreamingDistributionList": "

The StreamingDistributionList type.

" + } + }, + "StreamingDistributionNotDisabled": { + "base": null, + "refs": { + } + }, + "StreamingDistributionSummary": { + "base": "

A summary of the information for an Amazon CloudFront streaming distribution.

", + "refs": { + "StreamingDistributionSummaryList$member": null + } + }, + "StreamingDistributionSummaryList": { + "base": null, + "refs": { + "StreamingDistributionList$Items": "

A complex type that contains one StreamingDistributionSummary element for each distribution that was created by the current AWS account.

" + } + }, + "StreamingLoggingConfig": { + "base": "

A complex type that controls whether access logs are written for this streaming distribution.

", + "refs": { + "StreamingDistributionConfig$Logging": "

A complex type that controls whether access logs are written for the streaming distribution.

" + } + }, + "Tag": { + "base": "

A complex type that contains Tag key and Tag value.

", + "refs": { + "TagList$member": null + } + }, + "TagKey": { + "base": "

A string that contains Tag key.

The string length should be between 1 and 128 characters. Valid characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.

", + "refs": { + "Tag$Key": "

A string that contains Tag key.

The string length should be between 1 and 128 characters. Valid characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.

", + "TagKeyList$member": null + } + }, + "TagKeyList": { + "base": null, + "refs": { + "TagKeys$Items": "

A complex type that contains Tag key elements.

" + } + }, + "TagKeys": { + "base": "

A complex type that contains zero or more Tag elements.

", + "refs": { + "UntagResourceRequest$TagKeys": "

A complex type that contains zero or more Tag key elements.

" + } + }, + "TagList": { + "base": null, + "refs": { + "Tags$Items": "

A complex type that contains Tag elements.

" + } + }, + "TagResourceRequest": { + "base": "

The request to add tags to a CloudFront resource.

", + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "Tag$Value": "

A string that contains an optional Tag value.

The string length should be between 0 and 256 characters. Valid characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.

" + } + }, + "Tags": { + "base": "

A complex type that contains zero or more Tag elements.

", + "refs": { + "DistributionConfigWithTags$Tags": "

A complex type that contains zero or more Tag elements.

", + "ListTagsForResourceResult$Tags": "

A complex type that contains zero or more Tag elements.

", + "StreamingDistributionConfigWithTags$Tags": "

A complex type that contains zero or more Tag elements.

", + "TagResourceRequest$Tags": "

A complex type that contains zero or more Tag elements.

" + } + }, + "TooManyCacheBehaviors": { + "base": "

You cannot create more cache behaviors for the distribution.

", + "refs": { + } + }, + "TooManyCertificates": { + "base": "

You cannot create anymore custom SSL/TLS certificates.

", + "refs": { + } + }, + "TooManyCloudFrontOriginAccessIdentities": { + "base": "

Processing your request would cause you to exceed the maximum number of origin access identities allowed.

", + "refs": { + } + }, + "TooManyCookieNamesInWhiteList": { + "base": "

Your request contains more cookie names in the whitelist than are allowed per cache behavior.

", + "refs": { + } + }, + "TooManyDistributionCNAMEs": { + "base": "

Your request contains more CNAMEs than are allowed per distribution.

", + "refs": { + } + }, + "TooManyDistributions": { + "base": "

Processing your request would cause you to exceed the maximum number of distributions allowed.

", + "refs": { + } + }, + "TooManyDistributionsWithLambdaAssociations": { + "base": "

Processing your request would cause the maximum number of distributions with Lambda function associations per owner to be exceeded.

", + "refs": { + } + }, + "TooManyHeadersInForwardedValues": { + "base": null, + "refs": { + } + }, + "TooManyInvalidationsInProgress": { + "base": "

You have exceeded the maximum number of allowable InProgress invalidation batch requests, or invalidation objects.

", + "refs": { + } + }, + "TooManyLambdaFunctionAssociations": { + "base": "

Your request contains more Lambda function associations than are allowed per distribution.

", + "refs": { + } + }, + "TooManyOriginCustomHeaders": { + "base": null, + "refs": { + } + }, + "TooManyOrigins": { + "base": "

You cannot create more origins for the distribution.

", + "refs": { + } + }, + "TooManyQueryStringParameters": { + "base": null, + "refs": { + } + }, + "TooManyStreamingDistributionCNAMEs": { + "base": null, + "refs": { + } + }, + "TooManyStreamingDistributions": { + "base": "

Processing your request would cause you to exceed the maximum number of streaming distributions allowed.

", + "refs": { + } + }, + "TooManyTrustedSigners": { + "base": "

Your request contains more trusted signers than are allowed per distribution.

", + "refs": { + } + }, + "TrustedSignerDoesNotExist": { + "base": "

One or more of your trusted signers do not exist.

", + "refs": { + } + }, + "TrustedSigners": { + "base": "

A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content.

If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, see Serving Private Content through CloudFront in the Amazon Amazon CloudFront Developer Guide.

If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items.

To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.

For more information about updating the distribution configuration, see DistributionConfig .

", + "refs": { + "CacheBehavior$TrustedSigners": "

A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content.

If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, see Serving Private Content through CloudFront in the Amazon Amazon CloudFront Developer Guide.

If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items.

To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.

", + "DefaultCacheBehavior$TrustedSigners": "

A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content.

If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, see Serving Private Content through CloudFront in the Amazon Amazon CloudFront Developer Guide.

If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items.

To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.

", + "StreamingDistributionConfig$TrustedSigners": "

A complex type that specifies any AWS accounts that you want to permit to create signed URLs for private content. If you want the distribution to use signed URLs, include this element; if you want the distribution to use public URLs, remove this element. For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.

", + "StreamingDistributionSummary$TrustedSigners": "

A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items.If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.

" + } + }, + "UntagResourceRequest": { + "base": "

The request to remove tags from a CloudFront resource.

", + "refs": { + } + }, + "UpdateCloudFrontOriginAccessIdentityRequest": { + "base": "

The request to update an origin access identity.

", + "refs": { + } + }, + "UpdateCloudFrontOriginAccessIdentityResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "UpdateDistributionRequest": { + "base": "

The request to update a distribution.

", + "refs": { + } + }, + "UpdateDistributionResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "UpdateStreamingDistributionRequest": { + "base": "

The request to update a streaming distribution.

", + "refs": { + } + }, + "UpdateStreamingDistributionResult": { + "base": "

The returned result of the corresponding request.

", + "refs": { + } + }, + "ViewerCertificate": { + "base": "

A complex type that specifies the following:

  • Which SSL/TLS certificate to use when viewers request objects using HTTPS

  • Whether you want CloudFront to use dedicated IP addresses or SNI when you're using alternate domain names in your object names

  • The minimum protocol version that you want CloudFront to use when communicating with viewers

For more information, see Using an HTTPS Connection to Access Your Objects in the Amazon Amazon CloudFront Developer Guide.

", + "refs": { + "DistributionConfig$ViewerCertificate": null, + "DistributionSummary$ViewerCertificate": null + } + }, + "ViewerProtocolPolicy": { + "base": null, + "refs": { + "CacheBehavior$ViewerProtocolPolicy": "

The protocol that viewers can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. You can specify the following options:

  • allow-all: Viewers can use HTTP or HTTPS.

  • redirect-to-https: If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL.

  • https-only: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).

For more information about requiring the HTTPS protocol, see Using an HTTPS Connection to Access Your Objects in the Amazon CloudFront Developer Guide.

The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects' cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see Specifying How Long Objects and Errors Stay in a CloudFront Edge Cache (Expiration) in the Amazon CloudFront Developer Guide.

", + "DefaultCacheBehavior$ViewerProtocolPolicy": "

The protocol that viewers can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. You can specify the following options:

  • allow-all: Viewers can use HTTP or HTTPS.

  • redirect-to-https: If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL.

  • https-only: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).

For more information about requiring the HTTPS protocol, see Using an HTTPS Connection to Access Your Objects in the Amazon CloudFront Developer Guide.

The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects' cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see Specifying How Long Objects and Errors Stay in a CloudFront Edge Cache (Expiration) in the Amazon CloudFront Developer Guide.

" + } + }, + "boolean": { + "base": null, + "refs": { + "ActiveTrustedSigners$Enabled": "

Enabled is true if any of the AWS accounts listed in the TrustedSigners complex type for this RTMP distribution have active CloudFront key pairs. If not, Enabled is false.

For more information, see ActiveTrustedSigners.

", + "CacheBehavior$SmoothStreaming": "

Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true; if not, specify false. If you specify true for SmoothStreaming, you can still distribute other content using this cache behavior if the content matches the value of PathPattern.

", + "CacheBehavior$Compress": "

Whether you want CloudFront to automatically compress certain files for this cache behavior. If so, specify true; if not, specify false. For more information, see Serving Compressed Files in the Amazon CloudFront Developer Guide.

", + "CloudFrontOriginAccessIdentityList$IsTruncated": "

A flag that indicates whether more origin access identities remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more items in the list.

", + "DefaultCacheBehavior$SmoothStreaming": "

Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true; if not, specify false. If you specify true for SmoothStreaming, you can still distribute other content using this cache behavior if the content matches the value of PathPattern.

", + "DefaultCacheBehavior$Compress": "

Whether you want CloudFront to automatically compress certain files for this cache behavior. If so, specify true; if not, specify false. For more information, see Serving Compressed Files in the Amazon CloudFront Developer Guide.

", + "DistributionConfig$Enabled": "

Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket.

If you do not want to enable logging when you create a distribution, or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements.

If you specify false for Enabled but you specify values for Bucket and Prefix, the values are automatically deleted.

", + "DistributionConfig$IsIPV6Enabled": "

If you want CloudFront to respond to IPv6 DNS requests with an IPv6 address for your distribution, specify true. If you specify false, CloudFront responds to IPv6 DNS requests with the DNS response code NOERROR and with no IP addresses. This allows viewers to submit a second request, for an IPv4 address for your distribution.

In general, you should enable IPv6 if you have users on IPv6 networks who want to access your content. However, if you're using signed URLs or signed cookies to restrict access to your content, and if you're using a custom policy that includes the IpAddress parameter to restrict the IP addresses that can access your content, do not enable IPv6. If you want to restrict access to some content by IP address and not restrict access to other content (or restrict access but not by IP address), you can create two distributions. For more information, see Creating a Signed URL Using a Custom Policy in the Amazon CloudFront Developer Guide.

If you're using an Amazon Route 53 alias resource record set to route traffic to your CloudFront distribution, you need to create a second alias resource record set when both of the following are true:

  • You enable IPv6 for the distribution

  • You're using alternate domain names in the URLs for your objects

For more information, see Routing Traffic to an Amazon CloudFront Web Distribution by Using Your Domain Name in the Amazon Route 53 Developer Guide.

If you created a CNAME resource record set, either with Amazon Route 53 or with another DNS service, you don't need to make any changes. A CNAME record will route traffic to your distribution regardless of the IP address format of the viewer request.

", + "DistributionList$IsTruncated": "

A flag that indicates whether more distributions remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more distributions in the list.

", + "DistributionSummary$Enabled": "

Whether the distribution is enabled to accept user requests for content.

", + "DistributionSummary$IsIPV6Enabled": "

Whether CloudFront responds to IPv6 DNS requests with an IPv6 address for your distribution.

", + "ForwardedValues$QueryString": "

Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior and cache based on the query string parameters. CloudFront behavior depends on the value of QueryString and on the values that you specify for QueryStringCacheKeys, if any:

If you specify true for QueryString and you don't specify any values for QueryStringCacheKeys, CloudFront forwards all query string parameters to the origin and caches based on all query string parameters. Depending on how many query string parameters and values you have, this can adversely affect performance because CloudFront must forward more requests to the origin.

If you specify true for QueryString and you specify one or more values for QueryStringCacheKeys, CloudFront forwards all query string parameters to the origin, but it only caches based on the query string parameters that you specify.

If you specify false for QueryString, CloudFront doesn't forward any query string parameters to the origin, and doesn't cache based on query string parameters.

For more information, see Configuring CloudFront to Cache Based on Query String Parameters in the Amazon CloudFront Developer Guide.

", + "InvalidationList$IsTruncated": "

A flag that indicates whether more invalidation batch requests remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more invalidation batches in the list.

", + "LoggingConfig$Enabled": "

Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a distribution or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket, prefix, and IncludeCookies, the values are automatically deleted.

", + "LoggingConfig$IncludeCookies": "

Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you do not want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies.

", + "StreamingDistributionConfig$Enabled": "

Whether the streaming distribution is enabled to accept user requests for content.

", + "StreamingDistributionList$IsTruncated": "

A flag that indicates whether more streaming distributions remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more distributions in the list.

", + "StreamingDistributionSummary$Enabled": "

Whether the distribution is enabled to accept end user requests for content.

", + "StreamingLoggingConfig$Enabled": "

Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a streaming distribution or if you want to disable logging for an existing streaming distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket and Prefix, the values are automatically deleted.

", + "TrustedSigners$Enabled": "

Specifies whether you want to require viewers to use signed URLs to access the files specified by PathPattern and TargetOriginId.

", + "ViewerCertificate$CloudFrontDefaultCertificate": null + } + }, + "integer": { + "base": null, + "refs": { + "ActiveTrustedSigners$Quantity": "

A complex type that contains one Signer complex type for each trusted signer specified in the TrustedSigners complex type.

For more information, see ActiveTrustedSigners.

", + "Aliases$Quantity": "

The number of CNAME aliases, if any, that you want to associate with this distribution.

", + "AllowedMethods$Quantity": "

The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for GET and HEAD requests), 3 (for GET, HEAD, and OPTIONS requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests).

", + "CacheBehaviors$Quantity": "

The number of cache behaviors for this distribution.

", + "CachedMethods$Quantity": "

The number of HTTP methods for which you want CloudFront to cache responses. Valid values are 2 (for caching responses to GET and HEAD requests) and 3 (for caching responses to GET, HEAD, and OPTIONS requests).

", + "CloudFrontOriginAccessIdentityList$MaxItems": "

The maximum number of origin access identities you want in the response body.

", + "CloudFrontOriginAccessIdentityList$Quantity": "

The number of CloudFront origin access identities that were created by the current AWS account.

", + "CookieNames$Quantity": "

The number of different cookies that you want CloudFront to forward to the origin for this cache behavior.

", + "CustomErrorResponse$ErrorCode": "

The HTTP status code for which you want to specify a custom error page and/or a caching duration.

", + "CustomErrorResponses$Quantity": "

The number of HTTP status codes for which you want to specify a custom error page and/or a caching duration. If Quantity is 0, you can omit Items.

", + "CustomHeaders$Quantity": "

The number of custom headers, if any, for this distribution.

", + "CustomOriginConfig$HTTPPort": "

The HTTP port the custom origin listens on.

", + "CustomOriginConfig$HTTPSPort": "

The HTTPS port the custom origin listens on.

", + "Distribution$InProgressInvalidationBatches": "

The number of invalidation batches currently in progress.

", + "DistributionList$MaxItems": "

The value you provided for the MaxItems request parameter.

", + "DistributionList$Quantity": "

The number of distributions that were created by the current AWS account.

", + "GeoRestriction$Quantity": "

When geo restriction is enabled, this is the number of countries in your whitelist or blacklist. Otherwise, when it is not enabled, Quantity is 0, and you can omit Items.

", + "Headers$Quantity": "

The number of different headers that you want CloudFront to forward to the origin for this cache behavior. You can configure each cache behavior in a web distribution to do one of the following:

  • Forward all headers to your origin: Specify 1 for Quantity and * for Name.

    If you configure CloudFront to forward all headers to your origin, CloudFront doesn't cache the objects associated with this cache behavior. Instead, it sends every request to the origin.

  • Forward a whitelist of headers you specify: Specify the number of headers that you want to forward, and specify the header names in Name elements. CloudFront caches your objects based on the values in all of the specified headers. CloudFront also forwards the headers that it forwards by default, but it caches your objects based only on the headers that you specify.

  • Forward only the default headers: Specify 0 for Quantity and omit Items. In this configuration, CloudFront doesn't cache based on the values in the request headers.

", + "InvalidationList$MaxItems": "

The value that you provided for the MaxItems request parameter.

", + "InvalidationList$Quantity": "

The number of invalidation batches that were created by the current AWS account.

", + "KeyPairIds$Quantity": "

The number of active CloudFront key pairs for AwsAccountNumber.

For more information, see ActiveTrustedSigners.

", + "LambdaFunctionAssociations$Quantity": "

The number of Lambda function associations for this cache behavior.

", + "OriginSslProtocols$Quantity": "

The number of SSL/TLS protocols that you want to allow CloudFront to use when establishing an HTTPS connection with this origin.

", + "Origins$Quantity": "

The number of origins for this distribution.

", + "Paths$Quantity": "

The number of objects that you want to invalidate.

", + "QueryStringCacheKeys$Quantity": "

The number of whitelisted query string parameters for this cache behavior.

", + "StreamingDistributionList$MaxItems": "

The value you provided for the MaxItems request parameter.

", + "StreamingDistributionList$Quantity": "

The number of streaming distributions that were created by the current AWS account.

", + "TrustedSigners$Quantity": "

The number of trusted signers for this cache behavior.

" + } + }, + "long": { + "base": null, + "refs": { + "CacheBehavior$MinTTL": "

The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. For more information, see Specifying How Long Objects and Errors Stay in a CloudFront Edge Cache (Expiration) in the Amazon Amazon CloudFront Developer Guide.

You must specify 0 for MinTTL if you configure CloudFront to forward all headers to your origin (under Headers, if you specify 1 for Quantity and * for Name).

", + "CacheBehavior$DefaultTTL": "

The default amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. For more information, see Specifying How Long Objects and Errors Stay in a CloudFront Edge Cache (Expiration) in the Amazon CloudFront Developer Guide.

", + "CacheBehavior$MaxTTL": "

The maximum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. For more information, see Specifying How Long Objects and Errors Stay in a CloudFront Edge Cache (Expiration) in the Amazon CloudFront Developer Guide.

", + "CustomErrorResponse$ErrorCachingMinTTL": "

The minimum amount of time, in seconds, that you want CloudFront to cache the HTTP status code specified in ErrorCode. When this time period has elapsed, CloudFront queries your origin to see whether the problem that caused the error has been resolved and the requested object is now available.

If you don't want to specify a value, include an empty element, <ErrorCachingMinTTL>, in the XML document.

For more information, see Customizing Error Responses in the Amazon CloudFront Developer Guide.

", + "DefaultCacheBehavior$MinTTL": "

The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. For more information, see Specifying How Long Objects and Errors Stay in a CloudFront Edge Cache (Expiration) in the Amazon Amazon CloudFront Developer Guide.

You must specify 0 for MinTTL if you configure CloudFront to forward all headers to your origin (under Headers, if you specify 1 for Quantity and * for Name).

", + "DefaultCacheBehavior$DefaultTTL": "

The default amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. For more information, see Specifying How Long Objects and Errors Stay in a CloudFront Edge Cache (Expiration) in the Amazon CloudFront Developer Guide.

", + "DefaultCacheBehavior$MaxTTL": null + } + }, + "string": { + "base": null, + "refs": { + "AccessDenied$Message": null, + "AliasList$member": null, + "AwsAccountNumberList$member": null, + "BatchTooLarge$Message": null, + "CNAMEAlreadyExists$Message": null, + "CacheBehavior$PathPattern": "

The pattern (for example, images/*.jpg) that specifies which requests to apply the behavior to. When CloudFront receives a viewer request, the requested path is compared with path patterns in the order in which cache behaviors are listed in the distribution.

You can optionally include a slash (/) at the beginning of the path pattern. For example, /images/*.jpg. CloudFront behavior is the same with or without the leading /.

The path pattern for the default cache behavior is * and cannot be changed. If the request for an object does not match the path pattern for any cache behaviors, CloudFront applies the behavior in the default cache behavior.

For more information, see Path Pattern in the Amazon CloudFront Developer Guide.

", + "CacheBehavior$TargetOriginId": "

The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.

", + "CloudFrontOriginAccessIdentity$Id": "

The ID for the origin access identity. For example: E74FTE3AJFJ256A.

", + "CloudFrontOriginAccessIdentity$S3CanonicalUserId": "

The Amazon S3 canonical user ID for the origin access identity, used when giving the origin access identity read permission to an object in Amazon S3.

", + "CloudFrontOriginAccessIdentityAlreadyExists$Message": null, + "CloudFrontOriginAccessIdentityConfig$CallerReference": "

A unique number that ensures the request can't be replayed.

If the CallerReference is new (no matter the content of the CloudFrontOriginAccessIdentityConfig object), a new origin access identity is created.

If the CallerReference is a value already sent in a previous identity request, and the content of the CloudFrontOriginAccessIdentityConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request.

If the CallerReference is a value you already sent in a previous request to create an identity, but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.

", + "CloudFrontOriginAccessIdentityConfig$Comment": "

Any comments you want to include about the origin access identity.

", + "CloudFrontOriginAccessIdentityInUse$Message": null, + "CloudFrontOriginAccessIdentityList$Marker": "

Use this when paginating results to indicate where to begin in your list of origin access identities. The results include identities in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last identity on that page).

", + "CloudFrontOriginAccessIdentityList$NextMarker": "

If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your origin access identities where they left off.

", + "CloudFrontOriginAccessIdentitySummary$Id": "

The ID for the origin access identity. For example: E74FTE3AJFJ256A.

", + "CloudFrontOriginAccessIdentitySummary$S3CanonicalUserId": "

The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.

", + "CloudFrontOriginAccessIdentitySummary$Comment": "

The comment for this origin access identity, as originally specified when created.

", + "CookieNameList$member": null, + "CreateCloudFrontOriginAccessIdentityResult$Location": "

The fully qualified URI of the new origin access identity just created. For example: https://cloudfront.amazonaws.com/2010-11-01/origin-access-identity/cloudfront/E74FTE3AJFJ256A.

", + "CreateCloudFrontOriginAccessIdentityResult$ETag": "

The current version of the origin access identity created.

", + "CreateDistributionResult$Location": "

The fully qualified URI of the new distribution resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/distribution/EDFDVBD632BHDS5.

", + "CreateDistributionResult$ETag": "

The current version of the distribution created.

", + "CreateDistributionWithTagsResult$Location": "

The fully qualified URI of the new distribution resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/distribution/EDFDVBD632BHDS5.

", + "CreateDistributionWithTagsResult$ETag": "

The current version of the distribution created.

", + "CreateInvalidationRequest$DistributionId": "

The distribution's id.

", + "CreateInvalidationResult$Location": "

The fully qualified URI of the distribution and invalidation batch request, including the Invalidation ID.

", + "CreateStreamingDistributionResult$Location": "

The fully qualified URI of the new streaming distribution resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/streaming-distribution/EGTXBD79H29TRA8.

", + "CreateStreamingDistributionResult$ETag": "

The current version of the streaming distribution created.

", + "CreateStreamingDistributionWithTagsResult$Location": "

The fully qualified URI of the new streaming distribution resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/streaming-distribution/EGTXBD79H29TRA8.

", + "CreateStreamingDistributionWithTagsResult$ETag": null, + "CustomErrorResponse$ResponsePagePath": "

The path to the custom error page that you want CloudFront to return to a viewer when your origin returns the HTTP status code specified by ErrorCode, for example, /4xx-errors/403-forbidden.html. If you want to store your objects and your custom error pages in different locations, your distribution must include a cache behavior for which the following is true:

  • The value of PathPattern matches the path to your custom error messages. For example, suppose you saved custom error pages for 4xx errors in an Amazon S3 bucket in a directory named /4xx-errors. Your distribution must include a cache behavior for which the path pattern routes requests for your custom error pages to that location, for example, /4xx-errors/*.

  • The value of TargetOriginId specifies the value of the ID element for the origin that contains your custom error pages.

If you specify a value for ResponsePagePath, you must also specify a value for ResponseCode. If you don't want to specify a value, include an empty element, <ResponsePagePath>, in the XML document.

We recommend that you store custom error pages in an Amazon S3 bucket. If you store custom error pages on an HTTP server and the server starts to return 5xx errors, CloudFront can't get the files that you want to return to viewers because the origin server is unavailable.

", + "CustomErrorResponse$ResponseCode": "

The HTTP status code that you want CloudFront to return to the viewer along with the custom error page. There are a variety of reasons that you might want CloudFront to return a status code different from the status code that your origin returned to CloudFront, for example:

  • Some Internet devices (some firewalls and corporate proxies, for example) intercept HTTP 4xx and 5xx and prevent the response from being returned to the viewer. If you substitute 200, the response typically won't be intercepted.

  • If you don't care about distinguishing among different client errors or server errors, you can specify 400 or 500 as the ResponseCode for all 4xx or 5xx errors.

  • You might want to return a 200 status code (OK) and static website so your customers don't know that your website is down.

If you specify a value for ResponseCode, you must also specify a value for ResponsePagePath. If you don't want to specify a value, include an empty element, <ResponseCode>, in the XML document.

", + "DefaultCacheBehavior$TargetOriginId": "

The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.

", + "DeleteCloudFrontOriginAccessIdentityRequest$Id": "

The origin access identity's ID.

", + "DeleteCloudFrontOriginAccessIdentityRequest$IfMatch": "

The value of the ETag header you received from a previous GET or PUT request. For example: E2QWRUHAPOMQZL.

", + "DeleteDistributionRequest$Id": "

The distribution ID.

", + "DeleteDistributionRequest$IfMatch": "

The value of the ETag header that you received when you disabled the distribution. For example: E2QWRUHAPOMQZL.

", + "DeleteStreamingDistributionRequest$Id": "

The distribution ID.

", + "DeleteStreamingDistributionRequest$IfMatch": "

The value of the ETag header that you received when you disabled the streaming distribution. For example: E2QWRUHAPOMQZL.

", + "Distribution$Id": "

The identifier for the distribution. For example: EDFDVBD632BHDS5.

", + "Distribution$ARN": "

The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID.

", + "Distribution$Status": "

This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated to all CloudFront edge locations.

", + "Distribution$DomainName": "

The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.

", + "DistributionAlreadyExists$Message": null, + "DistributionConfig$CallerReference": "

A unique value (for example, a date-time stamp) that ensures that the request can't be replayed.

If the value of CallerReference is new (regardless of the content of the DistributionConfig object), CloudFront creates a new distribution.

If CallerReference is a value you already sent in a previous request to create a distribution, and if the content of the DistributionConfig is identical to the original request (ignoring white space), CloudFront returns the same the response that it returned to the original request.

If CallerReference is a value you already sent in a previous request to create a distribution but the content of the DistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.

", + "DistributionConfig$DefaultRootObject": "

The object that you want CloudFront to request from your origin (for example, index.html) when a viewer requests the root URL for your distribution (http://www.example.com) instead of an object in your distribution (http://www.example.com/product-description.html). Specifying a default root object avoids exposing the contents of your distribution.

Specify only the object name, for example, index.html. Do not add a / before the object name.

If you don't want to specify a default root object when you create a distribution, include an empty DefaultRootObject element.

To delete the default root object from an existing distribution, update the distribution configuration and include an empty DefaultRootObject element.

To replace the default root object, update the distribution configuration and specify the new object.

For more information about the default root object, see Creating a Default Root Object in the Amazon CloudFront Developer Guide.

", + "DistributionConfig$Comment": "

Any comments you want to include about the distribution.

If you don't want to specify a comment, include an empty Comment element.

To delete an existing comment, update the distribution configuration and include an empty Comment element.

To add or change a comment, update the distribution configuration and specify the new comment.

", + "DistributionConfig$WebACLId": "

A unique identifier that specifies the AWS WAF web ACL, if any, to associate with this distribution.

AWS WAF is a web application firewall that lets you monitor the HTTP and HTTPS requests that are forwarded to CloudFront, and lets you control access to your content. Based on conditions that you specify, such as the IP addresses that requests originate from or the values of query strings, CloudFront responds to requests either with the requested content or with an HTTP 403 status code (Forbidden). You can also configure CloudFront to return a custom error page when a request is blocked. For more information about AWS WAF, see the AWS WAF Developer Guide.

", + "DistributionList$Marker": "

The value you provided for the Marker request parameter.

", + "DistributionList$NextMarker": "

If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your distributions where they left off.

", + "DistributionNotDisabled$Message": null, + "DistributionSummary$Id": "

The identifier for the distribution. For example: EDFDVBD632BHDS5.

", + "DistributionSummary$ARN": "

The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID.

", + "DistributionSummary$Status": "

The current status of the distribution. When the status is Deployed, the distribution's information is propagated to all CloudFront edge locations.

", + "DistributionSummary$DomainName": "

The domain name that corresponds to the distribution. For example: d604721fxaaqy9.cloudfront.net.

", + "DistributionSummary$Comment": "

The comment originally specified when this distribution was created.

", + "DistributionSummary$WebACLId": "

The Web ACL Id (if any) associated with the distribution.

", + "GetCloudFrontOriginAccessIdentityConfigRequest$Id": "

The identity's ID.

", + "GetCloudFrontOriginAccessIdentityConfigResult$ETag": "

The current version of the configuration. For example: E2QWRUHAPOMQZL.

", + "GetCloudFrontOriginAccessIdentityRequest$Id": "

The identity's ID.

", + "GetCloudFrontOriginAccessIdentityResult$ETag": "

The current version of the origin access identity's information. For example: E2QWRUHAPOMQZL.

", + "GetDistributionConfigRequest$Id": "

The distribution's ID.

", + "GetDistributionConfigResult$ETag": "

The current version of the configuration. For example: E2QWRUHAPOMQZL.

", + "GetDistributionRequest$Id": "

The distribution's ID.

", + "GetDistributionResult$ETag": "

The current version of the distribution's information. For example: E2QWRUHAPOMQZL.

", + "GetInvalidationRequest$DistributionId": "

The distribution's ID.

", + "GetInvalidationRequest$Id": "

The identifier for the invalidation request, for example, IDFDVBD632BHDS5.

", + "GetStreamingDistributionConfigRequest$Id": "

The streaming distribution's ID.

", + "GetStreamingDistributionConfigResult$ETag": "

The current version of the configuration. For example: E2QWRUHAPOMQZL.

", + "GetStreamingDistributionRequest$Id": "

The streaming distribution's ID.

", + "GetStreamingDistributionResult$ETag": "

The current version of the streaming distribution's information. For example: E2QWRUHAPOMQZL.

", + "HeaderList$member": null, + "IllegalUpdate$Message": null, + "InconsistentQuantities$Message": null, + "InvalidArgument$Message": null, + "InvalidDefaultRootObject$Message": null, + "InvalidErrorCode$Message": null, + "InvalidForwardCookies$Message": null, + "InvalidGeoRestrictionParameter$Message": null, + "InvalidHeadersForS3Origin$Message": null, + "InvalidIfMatchVersion$Message": null, + "InvalidLambdaFunctionAssociation$Message": null, + "InvalidLocationCode$Message": null, + "InvalidMinimumProtocolVersion$Message": null, + "InvalidOrigin$Message": null, + "InvalidOriginAccessIdentity$Message": null, + "InvalidProtocolSettings$Message": null, + "InvalidQueryStringParameters$Message": null, + "InvalidRelativePath$Message": null, + "InvalidRequiredProtocol$Message": null, + "InvalidResponseCode$Message": null, + "InvalidTTLOrder$Message": null, + "InvalidTagging$Message": null, + "InvalidViewerCertificate$Message": null, + "InvalidWebACLId$Message": null, + "Invalidation$Id": "

The identifier for the invalidation request. For example: IDFDVBD632BHDS5.

", + "Invalidation$Status": "

The status of the invalidation request. When the invalidation batch is finished, the status is Completed.

", + "InvalidationBatch$CallerReference": "

A value that you specify to uniquely identify an invalidation request. CloudFront uses the value to prevent you from accidentally resubmitting an identical request. Whenever you create a new invalidation request, you must specify a new value for CallerReference and change other values in the request as applicable. One way to ensure that the value of CallerReference is unique is to use a timestamp, for example, 20120301090000.

If you make a second invalidation request with the same value for CallerReference, and if the rest of the request is the same, CloudFront doesn't create a new invalidation request. Instead, CloudFront returns information about the invalidation request that you previously created with the same CallerReference.

If CallerReference is a value you already sent in a previous invalidation batch request but the content of any Path is different from the original request, CloudFront returns an InvalidationBatchAlreadyExists error.

", + "InvalidationList$Marker": "

The value that you provided for the Marker request parameter.

", + "InvalidationList$NextMarker": "

If IsTruncated is true, this element is present and contains the value that you can use for the Marker request parameter to continue listing your invalidation batches where they left off.

", + "InvalidationSummary$Id": "

The unique ID for an invalidation request.

", + "InvalidationSummary$Status": "

The status of an invalidation request.

", + "KeyPairIdList$member": null, + "LambdaFunctionAssociation$LambdaFunctionARN": "

The ARN of the Lambda function.

", + "ListCloudFrontOriginAccessIdentitiesRequest$Marker": "

Use this when paginating results to indicate where to begin in your list of origin access identities. The results include identities in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last identity on that page).

", + "ListCloudFrontOriginAccessIdentitiesRequest$MaxItems": "

The maximum number of origin access identities you want in the response body.

", + "ListDistributionsByWebACLIdRequest$Marker": "

Use Marker and MaxItems to control pagination of results. If you have more than MaxItems distributions that satisfy the request, the response includes a NextMarker element. To get the next page of results, submit another request. For the value of Marker, specify the value of NextMarker from the last response. (For the first request, omit Marker.)

", + "ListDistributionsByWebACLIdRequest$MaxItems": "

The maximum number of distributions that you want CloudFront to return in the response body. The maximum and default values are both 100.

", + "ListDistributionsByWebACLIdRequest$WebACLId": "

The ID of the AWS WAF web ACL that you want to list the associated distributions. If you specify \"null\" for the ID, the request returns a list of the distributions that aren't associated with a web ACL.

", + "ListDistributionsRequest$Marker": "

Use this when paginating results to indicate where to begin in your list of distributions. The results include distributions in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last distribution on that page).

", + "ListDistributionsRequest$MaxItems": "

The maximum number of distributions you want in the response body.

", + "ListInvalidationsRequest$DistributionId": "

The distribution's ID.

", + "ListInvalidationsRequest$Marker": "

Use this parameter when paginating results to indicate where to begin in your list of invalidation batches. Because the results are returned in decreasing order from most recent to oldest, the most recent results are on the first page, the second page will contain earlier results, and so on. To get the next page of results, set Marker to the value of the NextMarker from the current page's response. This value is the same as the ID of the last invalidation batch on that page.

", + "ListInvalidationsRequest$MaxItems": "

The maximum number of invalidation batches that you want in the response body.

", + "ListStreamingDistributionsRequest$Marker": "

The value that you provided for the Marker request parameter.

", + "ListStreamingDistributionsRequest$MaxItems": "

The value that you provided for the MaxItems request parameter.

", + "LocationList$member": null, + "LoggingConfig$Bucket": "

The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.

", + "LoggingConfig$Prefix": "

An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.

", + "MissingBody$Message": null, + "NoSuchCloudFrontOriginAccessIdentity$Message": null, + "NoSuchDistribution$Message": null, + "NoSuchInvalidation$Message": null, + "NoSuchOrigin$Message": null, + "NoSuchResource$Message": null, + "NoSuchStreamingDistribution$Message": null, + "Origin$Id": "

A unique identifier for the origin. The value of Id must be unique within the distribution.

When you specify the value of TargetOriginId for the default cache behavior or for another cache behavior, you indicate the origin to which you want the cache behavior to route requests by specifying the value of the Id element for that origin. When a request matches the path pattern for that cache behavior, CloudFront routes the request to the specified origin. For more information, see Cache Behavior Settings in the Amazon CloudFront Developer Guide.

", + "Origin$DomainName": "

Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com.

Constraints for Amazon S3 origins:

  • If you configured Amazon S3 Transfer Acceleration for your bucket, do not specify the s3-accelerate endpoint for DomainName.

  • The bucket name must be between 3 and 63 characters long (inclusive).

  • The bucket name must contain only lowercase characters, numbers, periods, underscores, and dashes.

  • The bucket name must not contain adjacent periods.

Custom Origins: The DNS domain name for the HTTP server from which you want CloudFront to get objects for this origin, for example, www.example.com.

Constraints for custom origins:

  • DomainName must be a valid DNS name that contains only a-z, A-Z, 0-9, dot (.), hyphen (-), or underscore (_) characters.

  • The name cannot exceed 128 characters.

", + "Origin$OriginPath": "

An optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. When you include the OriginPath element, specify the directory name, beginning with a /. CloudFront appends the directory name to the value of DomainName, for example, example.com/production. Do not include a / at the end of the directory name.

For example, suppose you've specified the following values for your distribution:

  • DomainName: An Amazon S3 bucket named myawsbucket.

  • OriginPath: /production

  • CNAME: example.com

When a user enters example.com/index.html in a browser, CloudFront sends a request to Amazon S3 for myawsbucket/production/index.html.

When a user enters example.com/acme/index.html in a browser, CloudFront sends a request to Amazon S3 for myawsbucket/production/acme/index.html.

", + "OriginCustomHeader$HeaderName": "

The name of a header that you want CloudFront to forward to your origin. For more information, see Forwarding Custom Headers to Your Origin (Web Distributions Only) in the Amazon Amazon CloudFront Developer Guide.

", + "OriginCustomHeader$HeaderValue": "

The value for the header that you specified in the HeaderName field.

", + "PathList$member": null, + "PreconditionFailed$Message": null, + "QueryStringCacheKeysList$member": null, + "S3Origin$DomainName": "

The DNS name of the Amazon S3 origin.

", + "S3Origin$OriginAccessIdentity": "

The CloudFront origin access identity to associate with the RTMP distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket through CloudFront.

If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element.

To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element.

To replace the origin access identity, update the distribution configuration and specify the new origin access identity.

For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content in the Amazon Amazon CloudFront Developer Guide.

", + "S3OriginConfig$OriginAccessIdentity": "

The CloudFront origin access identity to associate with the origin. Use an origin access identity to configure the origin so that viewers can only access objects in an Amazon S3 bucket through CloudFront. The format of the value is:

origin-access-identity/CloudFront/ID-of-origin-access-identity

where ID-of-origin-access-identity is the value that CloudFront returned in the ID element when you created the origin access identity.

If you want viewers to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element.

To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element.

To replace the origin access identity, update the distribution configuration and specify the new origin access identity.

For more information about the origin access identity, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.

", + "Signer$AwsAccountNumber": "

An AWS account that is included in the TrustedSigners complex type for this RTMP distribution. Valid values include:

  • self, which is the AWS account used to create the distribution.

  • An AWS account number.

", + "StreamingDistribution$Id": "

The identifier for the RTMP distribution. For example: EGTXBD79EXAMPLE.

", + "StreamingDistribution$ARN": null, + "StreamingDistribution$Status": "

The current status of the RTMP distribution. When the status is Deployed, the distribution's information is propagated to all CloudFront edge locations.

", + "StreamingDistribution$DomainName": "

The domain name that corresponds to the streaming distribution. For example: s5c39gqb8ow64r.cloudfront.net.

", + "StreamingDistributionAlreadyExists$Message": null, + "StreamingDistributionConfig$CallerReference": "

A unique number that ensures that the request can't be replayed. If the CallerReference is new (no matter the content of the StreamingDistributionConfig object), a new streaming distribution is created. If the CallerReference is a value that you already sent in a previous request to create a streaming distribution, and the content of the StreamingDistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value that you already sent in a previous request to create a streaming distribution but the content of the StreamingDistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.

", + "StreamingDistributionConfig$Comment": "

Any comments you want to include about the streaming distribution.

", + "StreamingDistributionList$Marker": "

The value you provided for the Marker request parameter.

", + "StreamingDistributionList$NextMarker": "

If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your RTMP distributions where they left off.

", + "StreamingDistributionNotDisabled$Message": null, + "StreamingDistributionSummary$Id": "

The identifier for the distribution. For example: EDFDVBD632BHDS5.

", + "StreamingDistributionSummary$ARN": "

The ARN (Amazon Resource Name) for the streaming distribution. For example: arn:aws:cloudfront::123456789012:streaming-distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID.

", + "StreamingDistributionSummary$Status": "

Indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.

", + "StreamingDistributionSummary$DomainName": "

The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.

", + "StreamingDistributionSummary$Comment": "

The comment originally specified when this distribution was created.

", + "StreamingLoggingConfig$Bucket": "

The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.

", + "StreamingLoggingConfig$Prefix": "

An optional string that you want CloudFront to prefix to the access log filenames for this streaming distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.

", + "TooManyCacheBehaviors$Message": null, + "TooManyCertificates$Message": null, + "TooManyCloudFrontOriginAccessIdentities$Message": null, + "TooManyCookieNamesInWhiteList$Message": null, + "TooManyDistributionCNAMEs$Message": null, + "TooManyDistributions$Message": null, + "TooManyDistributionsWithLambdaAssociations$Message": null, + "TooManyHeadersInForwardedValues$Message": null, + "TooManyInvalidationsInProgress$Message": null, + "TooManyLambdaFunctionAssociations$Message": null, + "TooManyOriginCustomHeaders$Message": null, + "TooManyOrigins$Message": null, + "TooManyQueryStringParameters$Message": null, + "TooManyStreamingDistributionCNAMEs$Message": null, + "TooManyStreamingDistributions$Message": null, + "TooManyTrustedSigners$Message": null, + "TrustedSignerDoesNotExist$Message": null, + "UpdateCloudFrontOriginAccessIdentityRequest$Id": "

The identity's id.

", + "UpdateCloudFrontOriginAccessIdentityRequest$IfMatch": "

The value of the ETag header that you received when retrieving the identity's configuration. For example: E2QWRUHAPOMQZL.

", + "UpdateCloudFrontOriginAccessIdentityResult$ETag": "

The current version of the configuration. For example: E2QWRUHAPOMQZL.

", + "UpdateDistributionRequest$Id": "

The distribution's id.

", + "UpdateDistributionRequest$IfMatch": "

The value of the ETag header that you received when retrieving the distribution's configuration. For example: E2QWRUHAPOMQZL.

", + "UpdateDistributionResult$ETag": "

The current version of the configuration. For example: E2QWRUHAPOMQZL.

", + "UpdateStreamingDistributionRequest$Id": "

The streaming distribution's id.

", + "UpdateStreamingDistributionRequest$IfMatch": "

The value of the ETag header that you received when retrieving the streaming distribution's configuration. For example: E2QWRUHAPOMQZL.

", + "UpdateStreamingDistributionResult$ETag": "

The current version of the configuration. For example: E2QWRUHAPOMQZL.

", + "ViewerCertificate$IAMCertificateId": null, + "ViewerCertificate$ACMCertificateArn": null, + "ViewerCertificate$Certificate": "

Include one of these values to specify the following:

  • Whether you want viewers to use HTTP or HTTPS to request your objects.

  • If you want viewers to use HTTPS, whether you're using an alternate domain name such as example.com or the CloudFront domain name for your distribution, such as d111111abcdef8.cloudfront.net.

  • If you're using an alternate domain name, whether AWS Certificate Manager (ACM) provided the certificate, or you purchased a certificate from a third-party certificate authority and imported it into ACM or uploaded it to the IAM certificate store.

You must specify one (and only one) of the three values. Do not specify false for CloudFrontDefaultCertificate.

If you want viewers to use HTTP to request your objects: Specify the following value:

<CloudFrontDefaultCertificate>true<CloudFrontDefaultCertificate>

In addition, specify allow-all for ViewerProtocolPolicy for all of your cache behaviors.

If you want viewers to use HTTPS to request your objects: Choose the type of certificate that you want to use based on whether you're using an alternate domain name for your objects or the CloudFront domain name:

  • If you're using an alternate domain name, such as example.com: Specify one of the following values, depending on whether ACM provided your certificate or you purchased your certificate from third-party certificate authority:

    • <ACMCertificateArn>ARN for ACM SSL/TLS certificate<ACMCertificateArn> where ARN for ACM SSL/TLS certificate is the ARN for the ACM SSL/TLS certificate that you want to use for this distribution.

    • <IAMCertificateId>IAM certificate ID<IAMCertificateId> where IAM certificate ID is the ID that IAM returned when you added the certificate to the IAM certificate store.

    If you specify ACMCertificateArn or IAMCertificateId, you must also specify a value for SSLSupportMethod.

    If you choose to use an ACM certificate or a certificate in the IAM certificate store, we recommend that you use only an alternate domain name in your object URLs (https://example.com/logo.jpg). If you use the domain name that is associated with your CloudFront distribution (https://d111111abcdef8.cloudfront.net/logo.jpg) and the viewer supports SNI, then CloudFront behaves normally. However, if the browser does not support SNI, the user's experience depends on the value that you choose for SSLSupportMethod:

    • vip: The viewer displays a warning because there is a mismatch between the CloudFront domain name and the domain name in your SSL/TLS certificate.

    • sni-only: CloudFront drops the connection with the browser without returning the object.

  • If you're using the CloudFront domain name for your distribution, such as d111111abcdef8.cloudfront.net : Specify the following value:

    <CloudFrontDefaultCertificate>true<CloudFrontDefaultCertificate>

    If you want viewers to use HTTPS, you must also specify one of the following values in your cache behaviors:

    • <ViewerProtocolPolicy>https-only<ViewerProtocolPolicy>

    • <ViewerProtocolPolicy>redirect-to-https<ViewerProtocolPolicy>

    You can also optionally require that CloudFront use HTTPS to communicate with your origin by specifying one of the following values for the applicable origins:

    • <OriginProtocolPolicy>https-only<OriginProtocolPolicy>

    • <OriginProtocolPolicy>match-viewer<OriginProtocolPolicy>

    For more information, see Using Alternate Domain Names and HTTPS in the Amazon CloudFront Developer Guide.

" + } + }, + "timestamp": { + "base": null, + "refs": { + "Distribution$LastModifiedTime": "

The date and time the distribution was last modified.

", + "DistributionSummary$LastModifiedTime": "

The date and time the distribution was last modified.

", + "Invalidation$CreateTime": "

The date and time the invalidation request was first made.

", + "InvalidationSummary$CreateTime": null, + "StreamingDistribution$LastModifiedTime": "

The date and time that the distribution was last modified.

", + "StreamingDistributionSummary$LastModifiedTime": "

The date and time the distribution was last modified.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-11-25/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-11-25/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-11-25/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-11-25/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-11-25/paginators-1.json new file mode 100644 index 000000000..51fbb907f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-11-25/paginators-1.json @@ -0,0 +1,32 @@ +{ + "pagination": { + "ListCloudFrontOriginAccessIdentities": { + "input_token": "Marker", + "output_token": "CloudFrontOriginAccessIdentityList.NextMarker", + "limit_key": "MaxItems", + "more_results": "CloudFrontOriginAccessIdentityList.IsTruncated", + "result_key": "CloudFrontOriginAccessIdentityList.Items" + }, + "ListDistributions": { + "input_token": "Marker", + "output_token": "DistributionList.NextMarker", + "limit_key": "MaxItems", + "more_results": "DistributionList.IsTruncated", + "result_key": "DistributionList.Items" + }, + "ListInvalidations": { + "input_token": "Marker", + "output_token": "InvalidationList.NextMarker", + "limit_key": "MaxItems", + "more_results": "InvalidationList.IsTruncated", + "result_key": "InvalidationList.Items" + }, + "ListStreamingDistributions": { + "input_token": "Marker", + "output_token": "StreamingDistributionList.NextMarker", + "limit_key": "MaxItems", + "more_results": "StreamingDistributionList.IsTruncated", + "result_key": "StreamingDistributionList.Items" + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-11-25/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-11-25/waiters-2.json new file mode 100644 index 000000000..edd74b2a3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-11-25/waiters-2.json @@ -0,0 +1,47 @@ +{ + "version": 2, + "waiters": { + "DistributionDeployed": { + "delay": 60, + "operation": "GetDistribution", + "maxAttempts": 25, + "description": "Wait until a distribution is deployed.", + "acceptors": [ + { + "expected": "Deployed", + "matcher": "path", + "state": "success", + "argument": "Distribution.Status" + } + ] + }, + "InvalidationCompleted": { + "delay": 20, + "operation": "GetInvalidation", + "maxAttempts": 30, + "description": "Wait until an invalidation has completed.", + "acceptors": [ + { + "expected": "Completed", + "matcher": "path", + "state": "success", + "argument": "Invalidation.Status" + } + ] + }, + "StreamingDistributionDeployed": { + "delay": 60, + "operation": "GetStreamingDistribution", + "maxAttempts": 25, + "description": "Wait until a streaming distribution is deployed.", + "acceptors": [ + { + "expected": "Deployed", + "matcher": "path", + "state": "success", + "argument": "StreamingDistribution.Status" + } + ] + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudhsm/2014-05-30/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudhsm/2014-05-30/api-2.json index d4cfcbaf6..5cc5def58 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudhsm/2014-05-30/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudhsm/2014-05-30/api-2.json @@ -8,7 +8,8 @@ "serviceAbbreviation":"CloudHSM", "serviceFullName":"Amazon CloudHSM", "signatureVersion":"v4", - "targetPrefix":"CloudHsmFrontendService" + "targetPrefix":"CloudHsmFrontendService", + "uid":"cloudhsm-2014-05-30" }, "operations":{ "AddTagsToResource":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearch/2013-01-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearch/2013-01-01/api-2.json index eca143ce1..e17e3c67b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearch/2013-01-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearch/2013-01-01/api-2.json @@ -6,7 +6,8 @@ "serviceFullName":"Amazon CloudSearch", "signatureVersion":"v4", "xmlNamespace":"http://cloudsearch.amazonaws.com/doc/2013-01-01/", - "protocol":"query" + "protocol":"query", + "uid":"cloudsearch-2013-01-01" }, "operations":{ "BuildSuggesters":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearchdomain/2013-01-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearchdomain/2013-01-01/api-2.json index 3d36fc2b3..e22e35ec2 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearchdomain/2013-01-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearchdomain/2013-01-01/api-2.json @@ -7,7 +7,8 @@ "protocol":"rest-json", "serviceFullName":"Amazon CloudSearch Domain", "signatureVersion":"v4", - "signingName":"cloudsearch" + "signingName":"cloudsearch", + "uid":"cloudsearchdomain-2013-01-01" }, "operations":{ "Search":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/api-2.json index 8dbc6db4a..ccbc6476d 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/api-2.json @@ -8,7 +8,8 @@ "serviceAbbreviation":"CloudTrail", "serviceFullName":"AWS CloudTrail", "signatureVersion":"v4", - "targetPrefix":"com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101" + "targetPrefix":"com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101", + "uid":"cloudtrail-2013-11-01" }, "operations":{ "AddTags":{ @@ -93,6 +94,22 @@ ], "idempotent":true }, + "GetEventSelectors":{ + "name":"GetEventSelectors", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetEventSelectorsRequest"}, + "output":{"shape":"GetEventSelectorsResponse"}, + "errors":[ + {"shape":"TrailNotFoundException"}, + {"shape":"InvalidTrailNameException"}, + {"shape":"UnsupportedOperationException"}, + {"shape":"OperationNotPermittedException"} + ], + "idempotent":true + }, "GetTrailStatus":{ "name":"GetTrailStatus", "http":{ @@ -158,6 +175,24 @@ ], "idempotent":true }, + "PutEventSelectors":{ + "name":"PutEventSelectors", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutEventSelectorsRequest"}, + "output":{"shape":"PutEventSelectorsResponse"}, + "errors":[ + {"shape":"TrailNotFoundException"}, + {"shape":"InvalidTrailNameException"}, + {"shape":"InvalidHomeRegionException"}, + {"shape":"InvalidEventSelectorsException"}, + {"shape":"UnsupportedOperationException"}, + {"shape":"OperationNotPermittedException"} + ], + "idempotent":true + }, "RemoveTags":{ "name":"RemoveTags", "http":{ @@ -308,6 +343,21 @@ "KmsKeyId":{"shape":"String"} } }, + "DataResource":{ + "type":"structure", + "members":{ + "Type":{"shape":"String"}, + "Values":{"shape":"DataResourceValues"} + } + }, + "DataResourceValues":{ + "type":"list", + "member":{"shape":"String"} + }, + "DataResources":{ + "type":"list", + "member":{"shape":"DataResource"} + }, "Date":{"type":"timestamp"}, "DeleteTrailRequest":{ "type":"structure", @@ -340,15 +390,41 @@ "EventId":{"shape":"String"}, "EventName":{"shape":"String"}, "EventTime":{"shape":"Date"}, + "EventSource":{"shape":"String"}, "Username":{"shape":"String"}, "Resources":{"shape":"ResourceList"}, "CloudTrailEvent":{"shape":"String"} } }, + "EventSelector":{ + "type":"structure", + "members":{ + "ReadWriteType":{"shape":"ReadWriteType"}, + "IncludeManagementEvents":{"shape":"Boolean"}, + "DataResources":{"shape":"DataResources"} + } + }, + "EventSelectors":{ + "type":"list", + "member":{"shape":"EventSelector"} + }, "EventsList":{ "type":"list", "member":{"shape":"Event"} }, + "GetEventSelectorsRequest":{ + "type":"structure", + "members":{ + "TrailName":{"shape":"String"} + } + }, + "GetEventSelectorsResponse":{ + "type":"structure", + "members":{ + "TrailARN":{"shape":"String"}, + "EventSelectors":{"shape":"EventSelectors"} + } + }, "GetTrailStatusRequest":{ "type":"structure", "required":["Name"], @@ -408,6 +484,12 @@ }, "exception":true }, + "InvalidEventSelectorsException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "InvalidHomeRegionException":{ "type":"structure", "members":{ @@ -553,7 +635,8 @@ "EventName", "Username", "ResourceType", - "ResourceName" + "ResourceName", + "EventSource" ] }, "LookupAttributesList":{ @@ -608,6 +691,28 @@ "type":"list", "member":{"shape":"PublicKey"} }, + "PutEventSelectorsRequest":{ + "type":"structure", + "members":{ + "TrailName":{"shape":"String"}, + "EventSelectors":{"shape":"EventSelectors"} + } + }, + "PutEventSelectorsResponse":{ + "type":"structure", + "members":{ + "TrailARN":{"shape":"String"}, + "EventSelectors":{"shape":"EventSelectors"} + } + }, + "ReadWriteType":{ + "type":"string", + "enum":[ + "ReadOnly", + "WriteOnly", + "All" + ] + }, "RemoveTagsRequest":{ "type":"structure", "required":["ResourceId"], @@ -726,7 +831,8 @@ "LogFileValidationEnabled":{"shape":"Boolean"}, "CloudWatchLogsLogGroupArn":{"shape":"String"}, "CloudWatchLogsRoleArn":{"shape":"String"}, - "KmsKeyId":{"shape":"String"} + "KmsKeyId":{"shape":"String"}, + "HasCustomEventSelectors":{"shape":"Boolean"} } }, "TrailAlreadyExistsException":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/docs-2.json index a947f46b8..da65e0af8 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/docs-2.json @@ -1,15 +1,17 @@ { "version": "2.0", - "service": "AWS CloudTrail

This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.

CloudTrail is a web service that records AWS API calls for your AWS account and delivers log files to an Amazon S3 bucket. The recorded information includes the identity of the user, the start time of the AWS API call, the source IP address, the request parameters, and the response elements returned by the service.

As an alternative to the API, you can use one of the AWS SDKs, which consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to AWSCloudTrail. For example, the SDKs take care of cryptographically signing requests, managing errors, and retrying requests automatically. For information about the AWS SDKs, including how to download and install them, see the Tools for Amazon Web Services page.

See the CloudTrail User Guide for information about the data that is included with each AWS API call listed in the log files.

", + "service": "AWS CloudTrail

This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.

CloudTrail is a web service that records AWS API calls for your AWS account and delivers log files to an Amazon S3 bucket. The recorded information includes the identity of the user, the start time of the AWS API call, the source IP address, the request parameters, and the response elements returned by the service.

As an alternative to the API, you can use one of the AWS SDKs, which consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to AWSCloudTrail. For example, the SDKs take care of cryptographically signing requests, managing errors, and retrying requests automatically. For information about the AWS SDKs, including how to download and install them, see the Tools for Amazon Web Services page.

See the AWS CloudTrail User Guide for information about the data that is included with each AWS API call listed in the log files.

", "operations": { - "AddTags": "

Adds one or more tags to a trail, up to a limit of 10. Tags must be unique per trail. Overwrites an existing tag's value when a new value is specified for an existing tag key. If you specify a key without a value, the tag will be created with the specified key and a value of null. You can tag a trail that applies to all regions only from the region in which the trail was created (that is, from its home region).

", + "AddTags": "

Adds one or more tags to a trail, up to a limit of 50. Tags must be unique per trail. Overwrites an existing tag's value when a new value is specified for an existing tag key. If you specify a key without a value, the tag will be created with the specified key and a value of null. You can tag a trail that applies to all regions only from the region in which the trail was created (that is, from its home region).

", "CreateTrail": "

Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket. A maximum of five trails can exist in a region, irrespective of the region in which they were created.

", "DeleteTrail": "

Deletes a trail. This operation must be called from the region in which the trail was created. DeleteTrail cannot be called on the shadow trails (replicated trails in other regions) of a trail that is enabled in all regions.

", "DescribeTrails": "

Retrieves settings for the trail associated with the current region for your account.

", + "GetEventSelectors": "

Describes the settings for the event selectors that you configured for your trail. The information returned for your event selectors includes the following:

  • The S3 objects that you are logging for data events.

  • If your event selector includes management events.

  • If your event selector includes read-only events, write-only events, or all.

For more information, see Logging Data and Management Events for Trails in the AWS CloudTrail User Guide.

", "GetTrailStatus": "

Returns a JSON-formatted list of information about the specified trail. Fields include information on delivery errors, Amazon SNS and Amazon S3 errors, and start and stop logging times for each trail. This operation returns trail status from a single region. To return trail status from all regions, you must call the operation on each region.

", "ListPublicKeys": "

Returns all public keys whose private keys were used to sign the digest files within the specified time range. The public key is needed to validate digest files that were signed with its corresponding private key.

CloudTrail uses different private/public key pairs per region. Each digest file is signed with a private key unique to its region. Therefore, when you validate a digest file from a particular region, you must look in the same region for its corresponding public key.

", "ListTags": "

Lists the tags for the trail in the current region.

", - "LookupEvents": "

Looks up API activity events captured by CloudTrail that create, update, or delete resources in your account. Events for a region can be looked up for the times in which you had CloudTrail turned on in that region during the last seven days. Lookup supports five different attributes: time range (defined by a start time and end time), user name, event name, resource type, and resource name. All attributes are optional. The maximum number of attributes that can be specified in any one lookup request are time range and one other attribute. The default number of results returned is 10, with a maximum of 50 possible. The response includes a token that you can use to get the next page of results.

The rate of lookup requests is limited to one per second per account. If this limit is exceeded, a throttling error occurs.

Events that occurred during the selected time range will not be available for lookup if CloudTrail logging was not enabled when the events occurred.

", + "LookupEvents": "

Looks up API activity events captured by CloudTrail that create, update, or delete resources in your account. Events for a region can be looked up for the times in which you had CloudTrail turned on in that region during the last seven days. Lookup supports the following attributes:

  • Event ID

  • Event name

  • Event source

  • Resource name

  • Resource type

  • User name

All attributes are optional. The default number of results returned is 10, with a maximum of 50 possible. The response includes a token that you can use to get the next page of results.

The rate of lookup requests is limited to one per second per account. If this limit is exceeded, a throttling error occurs.

Events that occurred during the selected time range will not be available for lookup if CloudTrail logging was not enabled when the events occurred.

", + "PutEventSelectors": "

Configures an event selector for your trail. Use event selectors to specify whether you want your trail to log management and/or data events. When an event occurs in your account, CloudTrail evaluates the event selectors in all trails. For each trail, if the event matches any event selector, the trail processes and logs the event. If the event doesn't match any event selector, the trail doesn't log the event.

Example

  1. You create an event selector for a trail and specify that you want write-only events.

  2. The EC2 GetConsoleOutput and RunInstances API operations occur in your account.

  3. CloudTrail evaluates whether the events match your event selectors.

  4. The RunInstances is a write-only event and it matches your event selector. The trail logs the event.

  5. The GetConsoleOutput is a read-only event but it doesn't match your event selector. The trail doesn't log the event.

The PutEventSelectors operation must be called from the region in which the trail was created; otherwise, an InvalidHomeRegionException is thrown.

You can configure up to five event selectors for each trail. For more information, see Logging Data and Management Events for Trails in the AWS CloudTrail User Guide.

", "RemoveTags": "

Removes the specified tags from a trail.

", "StartLogging": "

Starts the recording of AWS API calls and log file delivery for a trail. For a trail that is enabled in all regions, this operation must be called from the region in which the trail was created. This operation cannot be called on the shadow trails (replicated trails in other regions) of a trail that is enabled in all regions.

", "StopLogging": "

Suspends the recording of AWS API calls and log file delivery for the specified trail. Under most circumstances, there is no need to use this action. You can update a trail without stopping it first. This action is the only way to stop recording. For a trail enabled in all regions, this operation must be called from the region in which the trail was created, or an InvalidHomeRegionException will occur. This operation cannot be called on the shadow trails (replicated trails in other regions) of a trail enabled in all regions.

", @@ -36,10 +38,12 @@ "CreateTrailResponse$IsMultiRegionTrail": "

Specifies whether the trail exists in one region or in all regions.

", "CreateTrailResponse$LogFileValidationEnabled": "

Specifies whether log file integrity validation is enabled.

", "DescribeTrailsRequest$includeShadowTrails": "

Specifies whether to include shadow trails in the response. A shadow trail is the replication in a region of a trail that was created in a different region. The default is true.

", + "EventSelector$IncludeManagementEvents": "

Specify if you want your event selector to include management events for your trail.

For more information, see Management Events in the AWS CloudTrail User Guide.

By default, the value is true.

", "GetTrailStatusResponse$IsLogging": "

Whether the CloudTrail is currently logging AWS API calls.

", "Trail$IncludeGlobalServiceEvents": "

Set to True to include AWS API calls from AWS global services such as IAM. Otherwise, False.

", "Trail$IsMultiRegionTrail": "

Specifies whether the trail belongs only to one region or exists in all regions.

", "Trail$LogFileValidationEnabled": "

Specifies whether log file validation is enabled.

", + "Trail$HasCustomEventSelectors": "

Specifies if the trail has custom event selectors.

", "UpdateTrailRequest$IncludeGlobalServiceEvents": "

Specifies whether the trail is publishing events from global services such as IAM to the log files.

", "UpdateTrailRequest$IsMultiRegionTrail": "

Specifies whether the trail applies only to the current region or to all regions. The default is false. If the trail exists only in the current region and this value is set to true, shadow trails (replications of the trail) will be created in the other regions. If the trail exists in all regions and this value is set to false, the trail will remain in the region where it was created, and its shadow trails in other regions will be deleted.

", "UpdateTrailRequest$EnableLogFileValidation": "

Specifies whether log file validation is enabled. The default is false.

When you disable log file integrity validation, the chain of digest files is broken after one hour. CloudTrail will not create digest files for log files that were delivered during a period in which log file integrity validation was disabled. For example, if you enable log file integrity validation at noon on January 1, disable it at noon on January 2, and re-enable it at noon on January 10, digest files will not be created for the log files delivered from noon on January 2 to noon on January 10. The same applies whenever you stop CloudTrail logging or delete a trail.

", @@ -74,6 +78,24 @@ "refs": { } }, + "DataResource": { + "base": "

The Amazon S3 objects that you specify in your event selectors for your trail to log data events. Data events are object-level API operations that access S3 objects, such as GetObject, DeleteObject, and PutObject. You can specify up to 250 S3 buckets and object prefixes for a trail.

Example

  1. You create an event selector for a trail and specify an S3 bucket and an empty prefix, such as arn:aws:s3:::bucket-1/.

  2. You upload an image file to bucket-1.

  3. The PutObject API operation occurs on an object in the S3 bucket that you specified in the event selector. The trail processes and logs the event.

  4. You upload another image file to a different S3 bucket named arn:aws:s3:::bucket-2.

  5. The event occurs on an object in an S3 bucket that you didn't specify in the event selector. The trail doesn’t log the event.

", + "refs": { + "DataResources$member": null + } + }, + "DataResourceValues": { + "base": null, + "refs": { + "DataResource$Values": "

A list of ARN-like strings for the specified S3 objects.

To log data events for all objects in an S3 bucket, specify the bucket and an empty object prefix such as arn:aws:s3:::bucket-1/. The trail logs data events for all objects in this S3 bucket.

To log data events for specific objects, specify the S3 bucket and object prefix such as arn:aws:s3:::bucket-1/example-images. The trail logs data events for objects in this S3 bucket that match the prefix.

" + } + }, + "DataResources": { + "base": null, + "refs": { + "EventSelector$DataResources": "

CloudTrail supports logging only data events for S3 objects. You can specify up to 250 S3 buckets and object prefixes for a trail.

For more information, see Data Events in the AWS CloudTrail User Guide.

" + } + }, "Date": { "base": null, "refs": { @@ -118,12 +140,36 @@ "EventsList$member": null } }, + "EventSelector": { + "base": "

Use event selectors to specify whether you want your trail to log management and/or data events. When an event occurs in your account, CloudTrail evaluates the event selector for all trails. For each trail, if the event matches any event selector, the trail processes and logs the event. If the event doesn't match any event selector, the trail doesn't log the event.

You can configure up to five event selectors for a trail.

", + "refs": { + "EventSelectors$member": null + } + }, + "EventSelectors": { + "base": null, + "refs": { + "GetEventSelectorsResponse$EventSelectors": "

The event selectors that are configured for the trail.

", + "PutEventSelectorsRequest$EventSelectors": "

Specifies the settings for your event selectors. You can configure up to five event selectors for a trail.

", + "PutEventSelectorsResponse$EventSelectors": "

Specifies the event selectors configured for your trail.

" + } + }, "EventsList": { "base": null, "refs": { "LookupEventsResponse$Events": "

A list of events returned based on the lookup attributes specified and the CloudTrail event. The events list is sorted by time. The most recent event is listed first.

" } }, + "GetEventSelectorsRequest": { + "base": null, + "refs": { + } + }, + "GetEventSelectorsResponse": { + "base": null, + "refs": { + } + }, "GetTrailStatusRequest": { "base": "

The name of a trail about which you want the current status.

", "refs": { @@ -159,6 +205,11 @@ "refs": { } }, + "InvalidEventSelectorsException": { + "base": "

This exception is thrown when the PutEventSelectors operation is called with an invalid number of event selectors, data resources, or an invalid value for a parameter:

  • Specify a valid number of event selectors (1 to 5) for a trail.

  • Specify a valid number of data resources (1 to 250) for an event selector.

  • Specify a valid value for a parameter. For example, specifying the ReadWriteType parameter with a value of read-only is invalid.

", + "refs": { + } + }, "InvalidHomeRegionException": { "base": "

This exception is thrown when an operation is called on a trail from a region other than the region in which the trail was created.

", "refs": { @@ -322,6 +373,22 @@ "ListPublicKeysResponse$PublicKeyList": "

Contains an array of PublicKey objects.

The returned public keys may have validity time ranges that overlap.

" } }, + "PutEventSelectorsRequest": { + "base": null, + "refs": { + } + }, + "PutEventSelectorsResponse": { + "base": null, + "refs": { + } + }, + "ReadWriteType": { + "base": null, + "refs": { + "EventSelector$ReadWriteType": "

Specify if you want your trail to log read-only events, write-only events, or all. For example, the EC2 GetConsoleOutput is a read-only API operation and RunInstances is a write-only API operation.

By default, the value is All.

" + } + }, "RemoveTagsRequest": { "base": "

Specifies the tags to remove from a trail.

", "refs": { @@ -407,7 +474,7 @@ "CreateTrailRequest$SnsTopicName": "

Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.

", "CreateTrailRequest$CloudWatchLogsLogGroupArn": "

Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.

", "CreateTrailRequest$CloudWatchLogsRoleArn": "

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.

", - "CreateTrailRequest$KmsKeyId": "

Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be a an alias name prefixed by \"alias/\", a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.

Examples:

  • alias/MyAliasName

  • arn:aws:kms:us-east-1:123456789012:alias/MyAliasName

  • arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • 12345678-1234-1234-1234-123456789012

", + "CreateTrailRequest$KmsKeyId": "

Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be an alias name prefixed by \"alias/\", a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.

Examples:

  • alias/MyAliasName

  • arn:aws:kms:us-east-1:123456789012:alias/MyAliasName

  • arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • 12345678-1234-1234-1234-123456789012

", "CreateTrailResponse$Name": "

Specifies the name of the trail.

", "CreateTrailResponse$S3BucketName": "

Specifies the name of the Amazon S3 bucket designated for publishing log files.

", "CreateTrailResponse$S3KeyPrefix": "

Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files.

", @@ -417,11 +484,16 @@ "CreateTrailResponse$CloudWatchLogsLogGroupArn": "

Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.

", "CreateTrailResponse$CloudWatchLogsRoleArn": "

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.

", "CreateTrailResponse$KmsKeyId": "

Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the format:

arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

", - "DeleteTrailRequest$Name": "

Specifies the name or the CloudTrail ARN of the trail to be deleted. The format of a trail ARN is:

arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

", + "DataResource$Type": "

The resource type in which you want to log data events. You can specify only the following value: AWS::S3::Object.

", + "DataResourceValues$member": null, + "DeleteTrailRequest$Name": "

Specifies the name or the CloudTrail ARN of the trail to be deleted. The format of a trail ARN is: arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

", "Event$EventId": "

The CloudTrail ID of the event returned.

", "Event$EventName": "

The name of the event returned.

", + "Event$EventSource": "

The AWS service that the request was made to.

", "Event$Username": "

A user name or role name of the requester that called the API in the event returned.

", "Event$CloudTrailEvent": "

A JSON string that contains a representation of the event returned.

", + "GetEventSelectorsRequest$TrailName": "

Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements:

  • Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)

  • Start with a letter or number, and end with a letter or number

  • Be between 3 and 128 characters

  • Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid.

  • Not be in IP address format (for example, 192.168.5.4)

If you specify a trail ARN, it must be in the format:

arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

", + "GetEventSelectorsResponse$TrailARN": "

The specified trail ARN that has the event selectors.

", "GetTrailStatusRequest$Name": "

Specifies the name or the CloudTrail ARN of the trail for which you are requesting status. To get the status of a shadow trail (a replication of the trail in another region), you must specify its ARN. The format of a trail ARN is:

arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

", "GetTrailStatusResponse$LatestDeliveryError": "

Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver log files to the designated bucket. For more information see the topic Error Responses in the Amazon S3 API Reference.

This error occurs only when there is a problem with the destination S3 bucket and will not occur for timeouts. To resolve the issue, create a new bucket and call UpdateTrail to specify the new bucket, or fix the existing objects so that CloudTrail can again write to the bucket.

", "GetTrailStatusResponse$LatestNotificationError": "

Displays any Amazon SNS error that CloudTrail encountered when attempting to send a notification. For more information about Amazon SNS errors, see the Amazon SNS Developer Guide.

", @@ -439,6 +511,8 @@ "ListTagsResponse$NextToken": "

Reserved for future use.

", "LookupAttribute$AttributeValue": "

Specifies a value for the specified AttributeKey.

", "PublicKey$Fingerprint": "

The fingerprint of the public key.

", + "PutEventSelectorsRequest$TrailName": "

Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements:

  • Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)

  • Start with a letter or number, and end with a letter or number

  • Be between 3 and 128 characters

  • Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid.

  • Not be in IP address format (for example, 192.168.5.4)

If you specify a trail ARN, it must be in the format:

arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

", + "PutEventSelectorsResponse$TrailARN": "

Specifies the ARN of the trail that was updated with event selectors. The format of a trail ARN is:

arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

", "RemoveTagsRequest$ResourceId": "

Specifies the ARN of the trail from which tags should be removed. The format of a trail ARN is:

arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

", "Resource$ResourceType": "

The type of a resource referenced by the event returned. When the resource type cannot be determined, null is returned. Some examples of resource types are: Instance for EC2, Trail for CloudTrail, DBInstance for RDS, and AccessKey for IAM. For a list of resource types supported for event lookup, see Resource Types Supported for Event Lookup.

", "Resource$ResourceName": "

The name of the resource referenced by the event returned. These are user-created names whose values will depend on the environment. For example, the resource name might be \"auto-scaling-test-group\" for an Auto Scaling Group or \"i-1234567\" for an EC2 Instance.

", @@ -465,7 +539,7 @@ "UpdateTrailRequest$SnsTopicName": "

Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.

", "UpdateTrailRequest$CloudWatchLogsLogGroupArn": "

Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.

", "UpdateTrailRequest$CloudWatchLogsRoleArn": "

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.

", - "UpdateTrailRequest$KmsKeyId": "

Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be a an alias name prefixed by \"alias/\", a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.

Examples:

  • alias/MyAliasName

  • arn:aws:kms:us-east-1:123456789012:alias/MyAliasName

  • arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • 12345678-1234-1234-1234-123456789012

", + "UpdateTrailRequest$KmsKeyId": "

Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be an alias name prefixed by \"alias/\", a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.

Examples:

  • alias/MyAliasName

  • arn:aws:kms:us-east-1:123456789012:alias/MyAliasName

  • arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • 12345678-1234-1234-1234-123456789012

", "UpdateTrailResponse$Name": "

Specifies the name of the trail.

", "UpdateTrailResponse$S3BucketName": "

Specifies the name of the Amazon S3 bucket designated for publishing log files.

", "UpdateTrailResponse$S3KeyPrefix": "

Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files.

", @@ -484,14 +558,14 @@ } }, "TagsLimitExceededException": { - "base": "

The number of tags per trail has exceeded the permitted amount. Currently, the limit is 10.

", + "base": "

The number of tags per trail has exceeded the permitted amount. Currently, the limit is 50.

", "refs": { } }, "TagsList": { "base": "

A list of tags.

", "refs": { - "AddTagsRequest$TagsList": "

Contains a list of CloudTrail tags, up to a limit of 10.

", + "AddTagsRequest$TagsList": "

Contains a list of CloudTrail tags, up to a limit of 50

", "RemoveTagsRequest$TagsList": "

Specifies a list of tags to be removed.

", "ResourceTag$TagsList": null } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/paginators-1.json index a11f43616..868fef815 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/paginators-1.json @@ -2,6 +2,12 @@ "pagination": { "DescribeTrails": { "result_key": "trailList" + }, + "LookupEvents": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "Events" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codebuild/2016-10-06/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codebuild/2016-10-06/api-2.json new file mode 100644 index 000000000..a5428d752 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/codebuild/2016-10-06/api-2.json @@ -0,0 +1,702 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2016-10-06", + "endpointPrefix":"codebuild", + "jsonVersion":"1.1", + "protocol":"json", + "serviceFullName":"AWS CodeBuild", + "signatureVersion":"v4", + "targetPrefix":"CodeBuild_20161006", + "uid":"codebuild-2016-10-06" + }, + "operations":{ + "BatchGetBuilds":{ + "name":"BatchGetBuilds", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"BatchGetBuildsInput"}, + "output":{"shape":"BatchGetBuildsOutput"}, + "errors":[ + {"shape":"InvalidInputException"} + ] + }, + "BatchGetProjects":{ + "name":"BatchGetProjects", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"BatchGetProjectsInput"}, + "output":{"shape":"BatchGetProjectsOutput"}, + "errors":[ + {"shape":"InvalidInputException"} + ] + }, + "CreateProject":{ + "name":"CreateProject", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateProjectInput"}, + "output":{"shape":"CreateProjectOutput"}, + "errors":[ + {"shape":"InvalidInputException"}, + {"shape":"ResourceAlreadyExistsException"}, + {"shape":"AccountLimitExceededException"} + ] + }, + "DeleteProject":{ + "name":"DeleteProject", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteProjectInput"}, + "output":{"shape":"DeleteProjectOutput"}, + "errors":[ + {"shape":"InvalidInputException"} + ] + }, + "ListBuilds":{ + "name":"ListBuilds", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListBuildsInput"}, + "output":{"shape":"ListBuildsOutput"}, + "errors":[ + {"shape":"InvalidInputException"} + ] + }, + "ListBuildsForProject":{ + "name":"ListBuildsForProject", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListBuildsForProjectInput"}, + "output":{"shape":"ListBuildsForProjectOutput"}, + "errors":[ + {"shape":"InvalidInputException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ListCuratedEnvironmentImages":{ + "name":"ListCuratedEnvironmentImages", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListCuratedEnvironmentImagesInput"}, + "output":{"shape":"ListCuratedEnvironmentImagesOutput"} + }, + "ListProjects":{ + "name":"ListProjects", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListProjectsInput"}, + "output":{"shape":"ListProjectsOutput"}, + "errors":[ + {"shape":"InvalidInputException"} + ] + }, + "StartBuild":{ + "name":"StartBuild", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartBuildInput"}, + "output":{"shape":"StartBuildOutput"}, + "errors":[ + {"shape":"InvalidInputException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccountLimitExceededException"} + ] + }, + "StopBuild":{ + "name":"StopBuild", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopBuildInput"}, + "output":{"shape":"StopBuildOutput"}, + "errors":[ + {"shape":"InvalidInputException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "UpdateProject":{ + "name":"UpdateProject", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateProjectInput"}, + "output":{"shape":"UpdateProjectOutput"}, + "errors":[ + {"shape":"InvalidInputException"}, + {"shape":"ResourceNotFoundException"} + ] + } + }, + "shapes":{ + "AccountLimitExceededException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "ArtifactNamespace":{ + "type":"string", + "enum":[ + "NONE", + "BUILD_ID" + ] + }, + "ArtifactPackaging":{ + "type":"string", + "enum":[ + "NONE", + "ZIP" + ] + }, + "ArtifactsType":{ + "type":"string", + "enum":[ + "CODEPIPELINE", + "S3", + "NO_ARTIFACTS" + ] + }, + "BatchGetBuildsInput":{ + "type":"structure", + "required":["ids"], + "members":{ + "ids":{"shape":"BuildIds"} + } + }, + "BatchGetBuildsOutput":{ + "type":"structure", + "members":{ + "builds":{"shape":"Builds"}, + "buildsNotFound":{"shape":"BuildIds"} + } + }, + "BatchGetProjectsInput":{ + "type":"structure", + "required":["names"], + "members":{ + "names":{"shape":"ProjectNames"} + } + }, + "BatchGetProjectsOutput":{ + "type":"structure", + "members":{ + "projects":{"shape":"Projects"}, + "projectsNotFound":{"shape":"ProjectNames"} + } + }, + "Boolean":{"type":"boolean"}, + "Build":{ + "type":"structure", + "members":{ + "id":{"shape":"NonEmptyString"}, + "arn":{"shape":"NonEmptyString"}, + "startTime":{"shape":"Timestamp"}, + "endTime":{"shape":"Timestamp"}, + "currentPhase":{"shape":"String"}, + "buildStatus":{"shape":"StatusType"}, + "sourceVersion":{"shape":"NonEmptyString"}, + "projectName":{"shape":"NonEmptyString"}, + "phases":{"shape":"BuildPhases"}, + "source":{"shape":"ProjectSource"}, + "artifacts":{"shape":"BuildArtifacts"}, + "environment":{"shape":"ProjectEnvironment"}, + "logs":{"shape":"LogsLocation"}, + "timeoutInMinutes":{"shape":"WrapperInt"}, + "buildComplete":{"shape":"Boolean"}, + "initiator":{"shape":"String"} + } + }, + "BuildArtifacts":{ + "type":"structure", + "members":{ + "location":{"shape":"String"}, + "sha256sum":{"shape":"String"}, + "md5sum":{"shape":"String"} + } + }, + "BuildIds":{ + "type":"list", + "member":{"shape":"NonEmptyString"}, + "max":100, + "min":1 + }, + "BuildPhase":{ + "type":"structure", + "members":{ + "phaseType":{"shape":"BuildPhaseType"}, + "phaseStatus":{"shape":"StatusType"}, + "startTime":{"shape":"Timestamp"}, + "endTime":{"shape":"Timestamp"}, + "durationInSeconds":{"shape":"WrapperLong"}, + "contexts":{"shape":"PhaseContexts"} + } + }, + "BuildPhaseType":{ + "type":"string", + "enum":[ + "SUBMITTED", + "PROVISIONING", + "DOWNLOAD_SOURCE", + "INSTALL", + "PRE_BUILD", + "BUILD", + "POST_BUILD", + "UPLOAD_ARTIFACTS", + "FINALIZING", + "COMPLETED" + ] + }, + "BuildPhases":{ + "type":"list", + "member":{"shape":"BuildPhase"} + }, + "Builds":{ + "type":"list", + "member":{"shape":"Build"} + }, + "ComputeType":{ + "type":"string", + "enum":[ + "BUILD_GENERAL1_SMALL", + "BUILD_GENERAL1_MEDIUM", + "BUILD_GENERAL1_LARGE" + ] + }, + "CreateProjectInput":{ + "type":"structure", + "required":[ + "name", + "source", + "artifacts", + "environment" + ], + "members":{ + "name":{"shape":"ProjectName"}, + "description":{"shape":"ProjectDescription"}, + "source":{"shape":"ProjectSource"}, + "artifacts":{"shape":"ProjectArtifacts"}, + "environment":{"shape":"ProjectEnvironment"}, + "serviceRole":{"shape":"NonEmptyString"}, + "timeoutInMinutes":{"shape":"TimeOut"}, + "encryptionKey":{"shape":"NonEmptyString"}, + "tags":{"shape":"TagList"} + } + }, + "CreateProjectOutput":{ + "type":"structure", + "members":{ + "project":{"shape":"Project"} + } + }, + "DeleteProjectInput":{ + "type":"structure", + "required":["name"], + "members":{ + "name":{"shape":"NonEmptyString"} + } + }, + "DeleteProjectOutput":{ + "type":"structure", + "members":{ + } + }, + "EnvironmentImage":{ + "type":"structure", + "members":{ + "name":{"shape":"String"}, + "description":{"shape":"String"} + } + }, + "EnvironmentImages":{ + "type":"list", + "member":{"shape":"EnvironmentImage"} + }, + "EnvironmentLanguage":{ + "type":"structure", + "members":{ + "language":{"shape":"LanguageType"}, + "images":{"shape":"EnvironmentImages"} + } + }, + "EnvironmentLanguages":{ + "type":"list", + "member":{"shape":"EnvironmentLanguage"} + }, + "EnvironmentPlatform":{ + "type":"structure", + "members":{ + "platform":{"shape":"PlatformType"}, + "languages":{"shape":"EnvironmentLanguages"} + } + }, + "EnvironmentPlatforms":{ + "type":"list", + "member":{"shape":"EnvironmentPlatform"} + }, + "EnvironmentType":{ + "type":"string", + "enum":["LINUX_CONTAINER"] + }, + "EnvironmentVariable":{ + "type":"structure", + "required":[ + "name", + "value" + ], + "members":{ + "name":{"shape":"NonEmptyString"}, + "value":{"shape":"String"} + } + }, + "EnvironmentVariables":{ + "type":"list", + "member":{"shape":"EnvironmentVariable"} + }, + "InvalidInputException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "KeyInput":{ + "type":"string", + "max":127, + "min":1, + "pattern":"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=@+\\\\-]*)$" + }, + "LanguageType":{ + "type":"string", + "enum":[ + "JAVA", + "PYTHON", + "NODE_JS", + "RUBY", + "GOLANG", + "DOCKER", + "ANDROID", + "BASE" + ] + }, + "ListBuildsForProjectInput":{ + "type":"structure", + "required":["projectName"], + "members":{ + "projectName":{"shape":"NonEmptyString"}, + "sortOrder":{"shape":"SortOrderType"}, + "nextToken":{"shape":"String"} + } + }, + "ListBuildsForProjectOutput":{ + "type":"structure", + "members":{ + "ids":{"shape":"BuildIds"}, + "nextToken":{"shape":"String"} + } + }, + "ListBuildsInput":{ + "type":"structure", + "members":{ + "sortOrder":{"shape":"SortOrderType"}, + "nextToken":{"shape":"String"} + } + }, + "ListBuildsOutput":{ + "type":"structure", + "members":{ + "ids":{"shape":"BuildIds"}, + "nextToken":{"shape":"String"} + } + }, + "ListCuratedEnvironmentImagesInput":{ + "type":"structure", + "members":{ + } + }, + "ListCuratedEnvironmentImagesOutput":{ + "type":"structure", + "members":{ + "platforms":{"shape":"EnvironmentPlatforms"} + } + }, + "ListProjectsInput":{ + "type":"structure", + "members":{ + "sortBy":{"shape":"ProjectSortByType"}, + "sortOrder":{"shape":"SortOrderType"}, + "nextToken":{"shape":"NonEmptyString"} + } + }, + "ListProjectsOutput":{ + "type":"structure", + "members":{ + "nextToken":{"shape":"String"}, + "projects":{"shape":"ProjectNames"} + } + }, + "LogsLocation":{ + "type":"structure", + "members":{ + "groupName":{"shape":"String"}, + "streamName":{"shape":"String"}, + "deepLink":{"shape":"String"} + } + }, + "NonEmptyString":{ + "type":"string", + "min":1 + }, + "PhaseContext":{ + "type":"structure", + "members":{ + "statusCode":{"shape":"String"}, + "message":{"shape":"String"} + } + }, + "PhaseContexts":{ + "type":"list", + "member":{"shape":"PhaseContext"} + }, + "PlatformType":{ + "type":"string", + "enum":[ + "DEBIAN", + "AMAZON_LINUX", + "UBUNTU" + ] + }, + "Project":{ + "type":"structure", + "members":{ + "name":{"shape":"ProjectName"}, + "arn":{"shape":"String"}, + "description":{"shape":"ProjectDescription"}, + "source":{"shape":"ProjectSource"}, + "artifacts":{"shape":"ProjectArtifacts"}, + "environment":{"shape":"ProjectEnvironment"}, + "serviceRole":{"shape":"NonEmptyString"}, + "timeoutInMinutes":{"shape":"TimeOut"}, + "encryptionKey":{"shape":"NonEmptyString"}, + "tags":{"shape":"TagList"}, + "created":{"shape":"Timestamp"}, + "lastModified":{"shape":"Timestamp"} + } + }, + "ProjectArtifacts":{ + "type":"structure", + "required":["type"], + "members":{ + "type":{"shape":"ArtifactsType"}, + "location":{"shape":"String"}, + "path":{"shape":"String"}, + "namespaceType":{"shape":"ArtifactNamespace"}, + "name":{"shape":"String"}, + "packaging":{"shape":"ArtifactPackaging"} + } + }, + "ProjectDescription":{ + "type":"string", + "max":255, + "min":0 + }, + "ProjectEnvironment":{ + "type":"structure", + "required":[ + "type", + "image", + "computeType" + ], + "members":{ + "type":{"shape":"EnvironmentType"}, + "image":{"shape":"NonEmptyString"}, + "computeType":{"shape":"ComputeType"}, + "environmentVariables":{"shape":"EnvironmentVariables"} + } + }, + "ProjectName":{ + "type":"string", + "max":255, + "min":2, + "pattern":"[A-Za-z0-9][A-Za-z0-9\\-_]{1,254}" + }, + "ProjectNames":{ + "type":"list", + "member":{"shape":"NonEmptyString"}, + "max":100, + "min":1 + }, + "ProjectSortByType":{ + "type":"string", + "enum":[ + "NAME", + "CREATED_TIME", + "LAST_MODIFIED_TIME" + ] + }, + "ProjectSource":{ + "type":"structure", + "required":["type"], + "members":{ + "type":{"shape":"SourceType"}, + "location":{"shape":"String"}, + "buildspec":{"shape":"String"}, + "auth":{"shape":"SourceAuth"} + } + }, + "Projects":{ + "type":"list", + "member":{"shape":"Project"} + }, + "ResourceAlreadyExistsException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "SortOrderType":{ + "type":"string", + "enum":[ + "ASCENDING", + "DESCENDING" + ] + }, + "SourceAuth":{ + "type":"structure", + "required":["type"], + "members":{ + "type":{"shape":"SourceAuthType"}, + "resource":{"shape":"String"} + } + }, + "SourceAuthType":{ + "type":"string", + "enum":["OAUTH"] + }, + "SourceType":{ + "type":"string", + "enum":[ + "CODECOMMIT", + "CODEPIPELINE", + "GITHUB", + "S3" + ] + }, + "StartBuildInput":{ + "type":"structure", + "required":["projectName"], + "members":{ + "projectName":{"shape":"NonEmptyString"}, + "sourceVersion":{"shape":"String"}, + "artifactsOverride":{"shape":"ProjectArtifacts"}, + "environmentVariablesOverride":{"shape":"EnvironmentVariables"}, + "buildspecOverride":{"shape":"String"}, + "timeoutInMinutesOverride":{"shape":"TimeOut"} + } + }, + "StartBuildOutput":{ + "type":"structure", + "members":{ + "build":{"shape":"Build"} + } + }, + "StatusType":{ + "type":"string", + "enum":[ + "SUCCEEDED", + "FAILED", + "FAULT", + "TIMED_OUT", + "IN_PROGRESS", + "STOPPED" + ] + }, + "StopBuildInput":{ + "type":"structure", + "required":["id"], + "members":{ + "id":{"shape":"NonEmptyString"} + } + }, + "StopBuildOutput":{ + "type":"structure", + "members":{ + "build":{"shape":"Build"} + } + }, + "String":{"type":"string"}, + "Tag":{ + "type":"structure", + "members":{ + "key":{"shape":"KeyInput"}, + "value":{"shape":"ValueInput"} + } + }, + "TagList":{ + "type":"list", + "member":{"shape":"Tag"}, + "max":50, + "min":0 + }, + "TimeOut":{ + "type":"integer", + "max":480, + "min":1 + }, + "Timestamp":{"type":"timestamp"}, + "UpdateProjectInput":{ + "type":"structure", + "required":["name"], + "members":{ + "name":{"shape":"NonEmptyString"}, + "description":{"shape":"ProjectDescription"}, + "source":{"shape":"ProjectSource"}, + "artifacts":{"shape":"ProjectArtifacts"}, + "environment":{"shape":"ProjectEnvironment"}, + "serviceRole":{"shape":"NonEmptyString"}, + "timeoutInMinutes":{"shape":"TimeOut"}, + "encryptionKey":{"shape":"NonEmptyString"}, + "tags":{"shape":"TagList"} + } + }, + "UpdateProjectOutput":{ + "type":"structure", + "members":{ + "project":{"shape":"Project"} + } + }, + "ValueInput":{ + "type":"string", + "max":255, + "min":1, + "pattern":"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=@+\\\\-]*)$" + }, + "WrapperInt":{"type":"integer"}, + "WrapperLong":{"type":"long"} + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codebuild/2016-10-06/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codebuild/2016-10-06/docs-2.json new file mode 100644 index 000000000..774f1344d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/codebuild/2016-10-06/docs-2.json @@ -0,0 +1,529 @@ +{ + "version": "2.0", + "service": "AWS CodeBuild

AWS CodeBuild is a fully managed build service in the cloud. AWS CodeBuild compiles your source code, runs unit tests, and produces artifacts that are ready to deploy. AWS CodeBuild eliminates the need to provision, manage, and scale your own build servers. It provides prepackaged build environments for the most popular programming languages and build tools, such as Apach Maven, Gradle, and more. You can also fully customize build environments in AWS CodeBuild to use your own build tools. AWS CodeBuild scales automatically to meet peak build requests, and you pay only for the build time you consume. For more information about AWS CodeBuild, see the AWS CodeBuild User Guide.

AWS CodeBuild supports these operations:

  • BatchGetProjects: Gets information about one or more build projects. A build project defines how AWS CodeBuild will run a build. This includes information such as where to get the source code to build, the build environment to use, the build commands to run, and where to store the build output. A build environment represents a combination of operating system, programming language runtime, and tools that AWS CodeBuild will use to run a build. Also, you can add tags to build projects to help manage your resources and costs.

  • CreateProject: Creates a build project.

  • DeleteProject: Deletes a build project.

  • ListProjects: Gets a list of build project names, with each build project name representing a single build project.

  • UpdateProject: Changes the settings of an existing build project.

  • BatchGetBuilds: Gets information about one or more builds.

  • ListBuilds: Gets a list of build IDs, with each build ID representing a single build.

  • ListBuildsForProject: Gets a list of build IDs for the specified build project, with each build ID representing a single build.

  • StartBuild: Starts running a build.

  • StopBuild: Attempts to stop running a build.

  • ListCuratedEnvironmentImages: Gets information about Docker images that are managed by AWS CodeBuild.

", + "operations": { + "BatchGetBuilds": "

Gets information about builds.

", + "BatchGetProjects": "

Gets information about build projects.

", + "CreateProject": "

Creates a build project.

", + "DeleteProject": "

Deletes a build project.

", + "ListBuilds": "

Gets a list of build IDs, with each build ID representing a single build.

", + "ListBuildsForProject": "

Gets a list of build IDs for the specified build project, with each build ID representing a single build.

", + "ListCuratedEnvironmentImages": "

Gets information about Docker images that are managed by AWS CodeBuild.

", + "ListProjects": "

Gets a list of build project names, with each build project name representing a single build project.

", + "StartBuild": "

Starts running a build.

", + "StopBuild": "

Attempts to stop running a build.

", + "UpdateProject": "

Changes the settings of a build project.

" + }, + "shapes": { + "AccountLimitExceededException": { + "base": "

An AWS service limit was exceeded for the calling AWS account.

", + "refs": { + } + }, + "ArtifactNamespace": { + "base": null, + "refs": { + "ProjectArtifacts$namespaceType": "

Along with path and name, the pattern that AWS CodeBuild will use to determine the name and location to store the output artifact, as follows:

  • If type is set to CODEPIPELINE, then AWS CodePipeline will ignore this value if specified. This is because AWS CodePipeline manages its build output names instead of AWS CodeBuild.

  • If type is set to NO_ARTIFACTS, then this value will be ignored if specified, because no build output will be produced.

  • If type is set to S3, then valid values include:

    • BUILD_ID: Include the build ID in the location of the build output artifact.

    • NONE: Do not include the build ID. This is the default if namespaceType is not specified.

For example, if path is set to MyArtifacts, namespaceType is set to BUILD_ID, and name is set to MyArtifact.zip, then the output artifact would be stored in MyArtifacts/build-ID/MyArtifact.zip.

" + } + }, + "ArtifactPackaging": { + "base": null, + "refs": { + "ProjectArtifacts$packaging": "

The type of build output artifact to create, as follows:

  • If type is set to CODEPIPELINE, then AWS CodePipeline will ignore this value if specified. This is because AWS CodePipeline manages its build output artifacts instead of AWS CodeBuild.

  • If type is set to NO_ARTIFACTS, then this value will be ignored if specified, because no build output will be produced.

  • If type is set to S3, valid values include:

    • NONE: AWS CodeBuild will create in the output bucket a folder containing the build output. This is the default if packaging is not specified.

    • ZIP: AWS CodeBuild will create in the output bucket a ZIP file containing the build output.

" + } + }, + "ArtifactsType": { + "base": null, + "refs": { + "ProjectArtifacts$type": "

The type of build output artifact. Valid values include:

  • CODEPIPELINE: The build project will have build output generated through AWS CodePipeline.

  • NO_ARTIFACTS: The build project will not produce any build output.

  • S3: The build project will store build output in Amazon Simple Storage Service (Amazon S3).

" + } + }, + "BatchGetBuildsInput": { + "base": null, + "refs": { + } + }, + "BatchGetBuildsOutput": { + "base": null, + "refs": { + } + }, + "BatchGetProjectsInput": { + "base": null, + "refs": { + } + }, + "BatchGetProjectsOutput": { + "base": null, + "refs": { + } + }, + "Boolean": { + "base": null, + "refs": { + "Build$buildComplete": "

Whether the build has finished. True if completed; otherwise, false.

" + } + }, + "Build": { + "base": "

Information about a build.

", + "refs": { + "Builds$member": null, + "StartBuildOutput$build": "

Information about the build to be run.

", + "StopBuildOutput$build": "

Information about the build.

" + } + }, + "BuildArtifacts": { + "base": "

Information about build output artifacts.

", + "refs": { + "Build$artifacts": "

Information about the output artifacts for the build.

" + } + }, + "BuildIds": { + "base": null, + "refs": { + "BatchGetBuildsInput$ids": "

The IDs of the builds.

", + "BatchGetBuildsOutput$buildsNotFound": "

The IDs of builds for which information could not be found.

", + "ListBuildsForProjectOutput$ids": "

A list of build IDs for the specified build project, with each build ID representing a single build.

", + "ListBuildsOutput$ids": "

A list of build IDs, with each build ID representing a single build.

" + } + }, + "BuildPhase": { + "base": "

Information about a stage for a build.

", + "refs": { + "BuildPhases$member": null + } + }, + "BuildPhaseType": { + "base": null, + "refs": { + "BuildPhase$phaseType": "

The name of the build phase. Valid values include:

  • BUILD: Core build activities typically occur in this build phase.

  • COMPLETED: The build has been completed.

  • DOWNLOAD_SOURCE: Source code is being downloaded in this build phase.

  • FINALIZING: The build process is completing in this build phase.

  • INSTALL: Installation activities typically occur in this build phase.

  • POST_BUILD: Post-build activities typically occur in this build phase.

  • PRE_BUILD: Pre-build activities typically occur in this build phase.

  • PROVISIONING: The build environment is being set up.

  • SUBMITTED: The build has been submitted.

  • UPLOAD_ARTIFACTS: Build output artifacts are being uploaded to the output location.

" + } + }, + "BuildPhases": { + "base": null, + "refs": { + "Build$phases": "

Information about all previous build phases that are completed and information about any current build phase that is not yet complete.

" + } + }, + "Builds": { + "base": null, + "refs": { + "BatchGetBuildsOutput$builds": "

Information about the requested builds.

" + } + }, + "ComputeType": { + "base": null, + "refs": { + "ProjectEnvironment$computeType": "

Information about the compute resources the build project will use. Available values include:

  • BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds.

  • BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds.

  • BUILD_GENERAL1_LARGE: Use up to 15 GB memory and 8 vCPUs for builds.

" + } + }, + "CreateProjectInput": { + "base": null, + "refs": { + } + }, + "CreateProjectOutput": { + "base": null, + "refs": { + } + }, + "DeleteProjectInput": { + "base": null, + "refs": { + } + }, + "DeleteProjectOutput": { + "base": null, + "refs": { + } + }, + "EnvironmentImage": { + "base": "

Information about a Docker image that is managed by AWS CodeBuild.

", + "refs": { + "EnvironmentImages$member": null + } + }, + "EnvironmentImages": { + "base": null, + "refs": { + "EnvironmentLanguage$images": "

The list of Docker images that are related by the specified programming language.

" + } + }, + "EnvironmentLanguage": { + "base": "

A set of Docker images that are related by programming language and are managed by AWS CodeBuild.

", + "refs": { + "EnvironmentLanguages$member": null + } + }, + "EnvironmentLanguages": { + "base": null, + "refs": { + "EnvironmentPlatform$languages": "

The list of programming languages that are available for the specified platform.

" + } + }, + "EnvironmentPlatform": { + "base": "

A set of Docker images that are related by platform and are managed by AWS CodeBuild.

", + "refs": { + "EnvironmentPlatforms$member": null + } + }, + "EnvironmentPlatforms": { + "base": null, + "refs": { + "ListCuratedEnvironmentImagesOutput$platforms": "

Information about supported platforms for Docker images that are managed by AWS CodeBuild.

" + } + }, + "EnvironmentType": { + "base": null, + "refs": { + "ProjectEnvironment$type": "

The type of build environment to use for related builds.

" + } + }, + "EnvironmentVariable": { + "base": "

Information about an environment variable for a build project or a build.

", + "refs": { + "EnvironmentVariables$member": null + } + }, + "EnvironmentVariables": { + "base": null, + "refs": { + "ProjectEnvironment$environmentVariables": "

A set of environment variables to make available to builds for this build project.

", + "StartBuildInput$environmentVariablesOverride": "

A set of environment variables that overrides, for this build only, the latest ones already defined in the build project.

" + } + }, + "InvalidInputException": { + "base": "

The input value that was provided is not valid.

", + "refs": { + } + }, + "KeyInput": { + "base": null, + "refs": { + "Tag$key": "

The tag's key.

" + } + }, + "LanguageType": { + "base": null, + "refs": { + "EnvironmentLanguage$language": "

The programming language for the Docker images.

" + } + }, + "ListBuildsForProjectInput": { + "base": null, + "refs": { + } + }, + "ListBuildsForProjectOutput": { + "base": null, + "refs": { + } + }, + "ListBuildsInput": { + "base": null, + "refs": { + } + }, + "ListBuildsOutput": { + "base": null, + "refs": { + } + }, + "ListCuratedEnvironmentImagesInput": { + "base": null, + "refs": { + } + }, + "ListCuratedEnvironmentImagesOutput": { + "base": null, + "refs": { + } + }, + "ListProjectsInput": { + "base": null, + "refs": { + } + }, + "ListProjectsOutput": { + "base": null, + "refs": { + } + }, + "LogsLocation": { + "base": "

Information about build logs in Amazon CloudWatch Logs.

", + "refs": { + "Build$logs": "

Information about the build's logs in Amazon CloudWatch Logs.

" + } + }, + "NonEmptyString": { + "base": null, + "refs": { + "Build$id": "

The unique ID for the build.

", + "Build$arn": "

The Amazon Resource Name (ARN) of the build.

", + "Build$sourceVersion": "

Any version identifier for the version of the source code to be built.

", + "Build$projectName": "

The name of the build project.

", + "BuildIds$member": null, + "CreateProjectInput$serviceRole": "

The ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.

", + "CreateProjectInput$encryptionKey": "

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts.

You can specify either the CMK's Amazon Resource Name (ARN) or, if available, the CMK's alias (using the format alias/alias-name ).

", + "DeleteProjectInput$name": "

The name of the build project.

", + "EnvironmentVariable$name": "

The name or key of the environment variable.

", + "ListBuildsForProjectInput$projectName": "

The name of the build project.

", + "ListProjectsInput$nextToken": "

During a previous call, if there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a next token. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

", + "Project$serviceRole": "

The ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.

", + "Project$encryptionKey": "

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts.

This is expressed either as the CMK's Amazon Resource Name (ARN) or, if specified, the CMK's alias (using the format alias/alias-name ).

", + "ProjectEnvironment$image": "

The ID of the Docker image to use for this build project.

", + "ProjectNames$member": null, + "StartBuildInput$projectName": "

The name of the build project to start running a build.

", + "StopBuildInput$id": "

The ID of the build.

", + "UpdateProjectInput$name": "

The name of the build project.

You cannot change a build project's name.

", + "UpdateProjectInput$serviceRole": "

The replacement ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.

", + "UpdateProjectInput$encryptionKey": "

The replacement AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts.

You can specify either the CMK's Amazon Resource Name (ARN) or, if available, the CMK's alias (using the format alias/alias-name ).

" + } + }, + "PhaseContext": { + "base": "

Additional information about a build phase that has an error. You can use this information to help troubleshoot a failed build.

", + "refs": { + "PhaseContexts$member": null + } + }, + "PhaseContexts": { + "base": null, + "refs": { + "BuildPhase$contexts": "

Additional information about a build phase, especially to help troubleshoot a failed build.

" + } + }, + "PlatformType": { + "base": null, + "refs": { + "EnvironmentPlatform$platform": "

The platform's name.

" + } + }, + "Project": { + "base": "

Information about a build project.

", + "refs": { + "CreateProjectOutput$project": "

Information about the build project that was created.

", + "Projects$member": null, + "UpdateProjectOutput$project": "

Information about the build project that was changed.

" + } + }, + "ProjectArtifacts": { + "base": "

Information about the build output artifacts for the build project.

", + "refs": { + "CreateProjectInput$artifacts": "

Information about the build output artifacts for the build project.

", + "Project$artifacts": "

Information about the build output artifacts for the build project.

", + "StartBuildInput$artifactsOverride": "

Build output artifact settings that override, for this build only, the latest ones already defined in the build project.

", + "UpdateProjectInput$artifacts": "

Information to be changed about the build output artifacts for the build project.

" + } + }, + "ProjectDescription": { + "base": null, + "refs": { + "CreateProjectInput$description": "

A description that makes the build project easy to identify.

", + "Project$description": "

A description that makes the build project easy to identify.

", + "UpdateProjectInput$description": "

A new or replacement description of the build project.

" + } + }, + "ProjectEnvironment": { + "base": "

Information about the build environment of the build project.

", + "refs": { + "Build$environment": "

Information about the build environment for this build.

", + "CreateProjectInput$environment": "

Information about the build environment for the build project.

", + "Project$environment": "

Information about the build environment for this build project.

", + "UpdateProjectInput$environment": "

Information to be changed about the build environment for the build project.

" + } + }, + "ProjectName": { + "base": null, + "refs": { + "CreateProjectInput$name": "

The name of the build project.

", + "Project$name": "

The name of the build project.

" + } + }, + "ProjectNames": { + "base": null, + "refs": { + "BatchGetProjectsInput$names": "

The names of the build projects.

", + "BatchGetProjectsOutput$projectsNotFound": "

The names of build projects for which information could not be found.

", + "ListProjectsOutput$projects": "

The list of build project names, with each build project name representing a single build project.

" + } + }, + "ProjectSortByType": { + "base": null, + "refs": { + "ListProjectsInput$sortBy": "

The criterion to be used to list build project names. Valid values include:

  • CREATED_TIME: List the build project names based on when each build project was created.

  • LAST_MODIFIED_TIME: List the build project names based on when information about each build project was last changed.

  • NAME: List the build project names based on each build project's name.

Use sortOrder to specify in what order to list the build project names based on the preceding criteria.

" + } + }, + "ProjectSource": { + "base": "

Information about the build input source code for the build project.

", + "refs": { + "Build$source": "

Information about the source code to be built.

", + "CreateProjectInput$source": "

Information about the build input source code for the build project.

", + "Project$source": "

Information about the build input source code for this build project.

", + "UpdateProjectInput$source": "

Information to be changed about the build input source code for the build project.

" + } + }, + "Projects": { + "base": null, + "refs": { + "BatchGetProjectsOutput$projects": "

Information about the requested build projects.

" + } + }, + "ResourceAlreadyExistsException": { + "base": "

The specified AWS resource cannot be created, because an AWS resource with the same settings already exists.

", + "refs": { + } + }, + "ResourceNotFoundException": { + "base": "

The specified AWS resource cannot be found.

", + "refs": { + } + }, + "SortOrderType": { + "base": null, + "refs": { + "ListBuildsForProjectInput$sortOrder": "

The order to list build IDs. Valid values include:

  • ASCENDING: List the build IDs in ascending order by build ID.

  • DESCENDING: List the build IDs in descending order by build ID.

", + "ListBuildsInput$sortOrder": "

The order to list build IDs. Valid values include:

  • ASCENDING: List the build IDs in ascending order by build ID.

  • DESCENDING: List the build IDs in descending order by build ID.

", + "ListProjectsInput$sortOrder": "

The order in which to list build projects. Valid values include:

  • ASCENDING: List the build project names in ascending order.

  • DESCENDING: List the build project names in descending order.

Use sortBy to specify the criterion to be used to list build project names.

" + } + }, + "SourceAuth": { + "base": "

Information about the authorization settings for AWS CodeBuild to access the source code to be built.

This information is for the AWS CodeBuild console's use only. Your code should not get or set this information directly (unless the build project's source type value is GITHUB).

", + "refs": { + "ProjectSource$auth": "

Information about the authorization settings for AWS CodeBuild to access the source code to be built.

This information is for the AWS CodeBuild console's use only. Your code should not get or set this information directly (unless the build project's source type value is GITHUB).

" + } + }, + "SourceAuthType": { + "base": null, + "refs": { + "SourceAuth$type": "

The authorization type to use. The only valid value is OAUTH, which represents the OAuth authorization type.

" + } + }, + "SourceType": { + "base": null, + "refs": { + "ProjectSource$type": "

The type of repository that contains the source code to be built. Valid values include:

  • CODECOMMIT: The source code is in an AWS CodeCommit repository.

  • CODEPIPELINE: The source code settings are specified in the source action of a pipeline in AWS CodePipeline.

  • GITHUB: The source code is in a GitHub repository.

  • S3: The source code is in an Amazon Simple Storage Service (Amazon S3) input bucket.

" + } + }, + "StartBuildInput": { + "base": null, + "refs": { + } + }, + "StartBuildOutput": { + "base": null, + "refs": { + } + }, + "StatusType": { + "base": null, + "refs": { + "Build$buildStatus": "

The current status of the build. Valid values include:

  • FAILED: The build failed.

  • FAULT: The build faulted.

  • IN_PROGRESS: The build is still in progress.

  • STOPPED: The build stopped.

  • SUCCEEDED: The build succeeded.

  • TIMED_OUT: The build timed out.

", + "BuildPhase$phaseStatus": "

The current status of the build phase. Valid values include:

  • FAILED: The build phase failed.

  • FAULT: The build phase faulted.

  • IN_PROGRESS: The build phase is still in progress.

  • STOPPED: The build phase stopped.

  • SUCCEEDED: The build phase succeeded.

  • TIMED_OUT: The build phase timed out.

" + } + }, + "StopBuildInput": { + "base": null, + "refs": { + } + }, + "StopBuildOutput": { + "base": null, + "refs": { + } + }, + "String": { + "base": null, + "refs": { + "Build$currentPhase": "

The current build phase.

", + "Build$initiator": "

The entity that started the build. Valid values include:

  • If AWS CodePipeline started the build, the pipeline's name (for example, codepipeline/my-demo-pipeline).

  • If an AWS Identity and Access Management (IAM) user started the build, the user's name (for example MyUserName).

  • If the Jenkins plugin for AWS CodeBuild started the build, the string CodeBuild-Jenkins-Plugin.

", + "BuildArtifacts$location": "

Information about the location of the build artifacts.

", + "BuildArtifacts$sha256sum": "

The SHA-256 hash of the build artifact.

You can use this hash along with a checksum tool to confirm both file integrity and authenticity.

This value is available only if the build project's packaging value is set to ZIP.

", + "BuildArtifacts$md5sum": "

The MD5 hash of the build artifact.

You can use this hash along with a checksum tool to confirm both file integrity and authenticity.

This value is available only if the build project's packaging value is set to ZIP.

", + "EnvironmentImage$name": "

The name of the Docker image.

", + "EnvironmentImage$description": "

The description of the Docker image.

", + "EnvironmentVariable$value": "

The value of the environment variable.

", + "ListBuildsForProjectInput$nextToken": "

During a previous call, if there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a next token. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

", + "ListBuildsForProjectOutput$nextToken": "

If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a next token. To get the next batch of items in the list, call this operation again, adding the next token to the call.

", + "ListBuildsInput$nextToken": "

During a previous call, if there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a next token. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

", + "ListBuildsOutput$nextToken": "

If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a next token. To get the next batch of items in the list, call this operation again, adding the next token to the call.

", + "ListProjectsOutput$nextToken": "

If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a next token. To get the next batch of items in the list, call this operation again, adding the next token to the call.

", + "LogsLocation$groupName": "

The name of the Amazon CloudWatch Logs group for the build logs.

", + "LogsLocation$streamName": "

The name of the Amazon CloudWatch Logs stream for the build logs.

", + "LogsLocation$deepLink": "

The URL to an individual build log in Amazon CloudWatch Logs.

", + "PhaseContext$statusCode": "

The status code for the context of the build phase.

", + "PhaseContext$message": "

An explanation of the build phase's context. This explanation might include a command ID and an exit code.

", + "Project$arn": "

The Amazon Resource Name (ARN) of the build project.

", + "ProjectArtifacts$location": "

Information about the build output artifact location, as follows:

  • If type is set to CODEPIPELINE, then AWS CodePipeline will ignore this value if specified. This is because AWS CodePipeline manages its build output locations instead of AWS CodeBuild.

  • If type is set to NO_ARTIFACTS, then this value will be ignored if specified, because no build output will be produced.

  • If type is set to S3, this is the name of the output bucket.

", + "ProjectArtifacts$path": "

Along with namespaceType and name, the pattern that AWS CodeBuild will use to name and store the output artifact, as follows:

  • If type is set to CODEPIPELINE, then AWS CodePipeline will ignore this value if specified. This is because AWS CodePipeline manages its build output names instead of AWS CodeBuild.

  • If type is set to NO_ARTIFACTS, then this value will be ignored if specified, because no build output will be produced.

  • If type is set to S3, this is the path to the output artifact. If path is not specified, then path will not be used.

For example, if path is set to MyArtifacts, namespaceType is set to NONE, and name is set to MyArtifact.zip, then the output artifact would be stored in the output bucket at MyArtifacts/MyArtifact.zip.

", + "ProjectArtifacts$name": "

Along with path and namespaceType, the pattern that AWS CodeBuild will use to name and store the output artifact, as follows:

  • If type is set to CODEPIPELINE, then AWS CodePipeline will ignore this value if specified. This is because AWS CodePipeline manages its build output names instead of AWS CodeBuild.

  • If type is set to NO_ARTIFACTS, then this value will be ignored if specified, because no build output will be produced.

  • If type is set to S3, this is the name of the output artifact object.

For example, if path is set to MyArtifacts, namespaceType is set to BUILD_ID, and name is set to MyArtifact.zip, then the output artifact would be stored in MyArtifacts/build-ID/MyArtifact.zip.

", + "ProjectSource$location": "

Information about the location of the source code to be built. Valid values include:

  • For source code settings that are specified in the source action of a pipeline in AWS CodePipeline, location should not be specified. If it is specified, AWS CodePipeline will ignore it. This is because AWS CodePipeline uses the settings in a pipeline's source action instead of this value.

  • For source code in an AWS CodeCommit repository, the HTTPS clone URL to the repository that contains the source code and the build spec (for example, https://git-codecommit.region-ID.amazonaws.com/v1/repos/repo-name ).

  • For source code in an Amazon Simple Storage Service (Amazon S3) input bucket, the path to the ZIP file that contains the source code (for example, bucket-name/path/to/object-name.zip)

  • For source code in a GitHub repository, instead of specifying a value here, you connect your AWS account to your GitHub account. To do this, use the AWS CodeBuild console to begin creating a build project, and follow the on-screen instructions to complete the connection. (After you have connected to your GitHub account, you do not need to finish creating the build project, and you may then leave the AWS CodeBuild console.) To instruct AWS CodeBuild to then use this connection, in the source object, set the auth object's type value to OAUTH.

", + "ProjectSource$buildspec": "

The build spec declaration to use for the builds in this build project.

If this value is not specified, a build spec must be included along with the source code to be built.

", + "SourceAuth$resource": "

The resource value that applies to the specified authorization type.

", + "StartBuildInput$sourceVersion": "

A version of the build input to be built, for this build only. If not specified, the latest version will be used. If specified, must be one of:

  • For AWS CodeCommit or GitHub: the commit ID to use.

  • For Amazon Simple Storage Service (Amazon S3): the version ID of the object representing the build input ZIP file to use.

", + "StartBuildInput$buildspecOverride": "

A build spec declaration that overrides, for this build only, the latest one already defined in the build project.

" + } + }, + "Tag": { + "base": "

A tag, consisting of a key and a value.

This tag is available for use by AWS services that support tags in AWS CodeBuild.

", + "refs": { + "TagList$member": null + } + }, + "TagList": { + "base": null, + "refs": { + "CreateProjectInput$tags": "

A set of tags for this build project.

These tags are available for use by AWS services that support AWS CodeBuild build project tags.

", + "Project$tags": "

The tags for this build project.

These tags are available for use by AWS services that support AWS CodeBuild build project tags.

", + "UpdateProjectInput$tags": "

The replacement set of tags for this build project.

These tags are available for use by AWS services that support AWS CodeBuild build project tags.

" + } + }, + "TimeOut": { + "base": null, + "refs": { + "CreateProjectInput$timeoutInMinutes": "

How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until timing out any build that has not been marked as completed. The default is 60 minutes.

", + "Project$timeoutInMinutes": "

How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before timing out any related build that did not get marked as completed. The default is 60 minutes.

", + "StartBuildInput$timeoutInMinutesOverride": "

The number of build timeout minutes, from 5 to 480 (8 hours), that overrides, for this build only, the latest setting already defined in the build project.

", + "UpdateProjectInput$timeoutInMinutes": "

The replacement value in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before timing out any related build that did not get marked as completed.

" + } + }, + "Timestamp": { + "base": null, + "refs": { + "Build$startTime": "

When the build process started, expressed in Unix time format.

", + "Build$endTime": "

When the build process ended, expressed in Unix time format.

", + "BuildPhase$startTime": "

When the build phase started, expressed in Unix time format.

", + "BuildPhase$endTime": "

When the build phase ended, expressed in Unix time format.

", + "Project$created": "

When the build project was created, expressed in Unix time format.

", + "Project$lastModified": "

When the build project's settings were last modified, expressed in Unix time format.

" + } + }, + "UpdateProjectInput": { + "base": null, + "refs": { + } + }, + "UpdateProjectOutput": { + "base": null, + "refs": { + } + }, + "ValueInput": { + "base": null, + "refs": { + "Tag$value": "

The tag's value.

" + } + }, + "WrapperInt": { + "base": null, + "refs": { + "Build$timeoutInMinutes": "

How long, in minutes, for AWS CodeBuild to wait before timing out this build if it does not get marked as completed.

" + } + }, + "WrapperLong": { + "base": null, + "refs": { + "BuildPhase$durationInSeconds": "

How long, in seconds, between the starting and ending times of the build's phase.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codebuild/2016-10-06/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codebuild/2016-10-06/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/codebuild/2016-10-06/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codebuild/2016-10-06/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codebuild/2016-10-06/paginators-1.json new file mode 100644 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/codebuild/2016-10-06/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/api-2.json index 0dde5d30f..fb4f9d36b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/api-2.json @@ -8,7 +8,8 @@ "serviceAbbreviation":"CodeCommit", "serviceFullName":"AWS CodeCommit", "signatureVersion":"v4", - "targetPrefix":"CodeCommit_20150413" + "targetPrefix":"CodeCommit_20150413", + "uid":"codecommit-2015-04-13" }, "operations":{ "BatchGetRepositories":{ @@ -93,6 +94,29 @@ {"shape":"EncryptionKeyUnavailableException"} ] }, + "GetBlob":{ + "name":"GetBlob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetBlobInput"}, + "output":{"shape":"GetBlobOutput"}, + "errors":[ + {"shape":"RepositoryNameRequiredException"}, + {"shape":"InvalidRepositoryNameException"}, + {"shape":"RepositoryDoesNotExistException"}, + {"shape":"BlobIdRequiredException"}, + {"shape":"InvalidBlobIdException"}, + {"shape":"BlobIdDoesNotExistException"}, + {"shape":"EncryptionIntegrityChecksFailedException"}, + {"shape":"EncryptionKeyAccessDeniedException"}, + {"shape":"EncryptionKeyDisabledException"}, + {"shape":"EncryptionKeyNotFoundException"}, + {"shape":"EncryptionKeyUnavailableException"}, + {"shape":"FileTooLargeException"} + ] + }, "GetBranch":{ "name":"GetBranch", "http":{ @@ -137,6 +161,33 @@ {"shape":"EncryptionKeyUnavailableException"} ] }, + "GetDifferences":{ + "name":"GetDifferences", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetDifferencesInput"}, + "output":{"shape":"GetDifferencesOutput"}, + "errors":[ + {"shape":"RepositoryNameRequiredException"}, + {"shape":"RepositoryDoesNotExistException"}, + {"shape":"InvalidRepositoryNameException"}, + {"shape":"InvalidContinuationTokenException"}, + {"shape":"InvalidMaxResultsException"}, + {"shape":"InvalidCommitIdException"}, + {"shape":"CommitRequiredException"}, + {"shape":"InvalidCommitException"}, + {"shape":"CommitDoesNotExistException"}, + {"shape":"InvalidPathException"}, + {"shape":"PathDoesNotExistException"}, + {"shape":"EncryptionIntegrityChecksFailedException"}, + {"shape":"EncryptionKeyAccessDeniedException"}, + {"shape":"EncryptionKeyDisabledException"}, + {"shape":"EncryptionKeyNotFoundException"}, + {"shape":"EncryptionKeyUnavailableException"} + ] + }, "GetRepository":{ "name":"GetRepository", "http":{ @@ -346,6 +397,26 @@ "repositoriesNotFound":{"shape":"RepositoryNotFoundList"} } }, + "BlobIdDoesNotExistException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "BlobIdRequiredException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "BlobMetadata":{ + "type":"structure", + "members":{ + "blobId":{"shape":"ObjectId"}, + "path":{"shape":"Path"}, + "mode":{"shape":"Mode"} + } + }, "BranchDoesNotExistException":{ "type":"structure", "members":{ @@ -380,6 +451,14 @@ }, "exception":true }, + "ChangeTypeEnum":{ + "type":"string", + "enum":[ + "A", + "M", + "D" + ] + }, "CloneUrlHttp":{"type":"string"}, "CloneUrlSsh":{"type":"string"}, "Commit":{ @@ -412,6 +491,13 @@ }, "exception":true }, + "CommitName":{"type":"string"}, + "CommitRequiredException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "CreateBranchInput":{ "type":"structure", "required":[ @@ -454,6 +540,18 @@ "repositoryId":{"shape":"RepositoryId"} } }, + "Difference":{ + "type":"structure", + "members":{ + "beforeBlob":{"shape":"BlobMetadata"}, + "afterBlob":{"shape":"BlobMetadata"}, + "changeType":{"shape":"ChangeTypeEnum"} + } + }, + "DifferenceList":{ + "type":"list", + "member":{"shape":"Difference"} + }, "Email":{"type":"string"}, "EncryptionIntegrityChecksFailedException":{ "type":"structure", @@ -486,6 +584,30 @@ }, "exception":true }, + "FileTooLargeException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "GetBlobInput":{ + "type":"structure", + "required":[ + "repositoryName", + "blobId" + ], + "members":{ + "repositoryName":{"shape":"RepositoryName"}, + "blobId":{"shape":"ObjectId"} + } + }, + "GetBlobOutput":{ + "type":"structure", + "required":["content"], + "members":{ + "content":{"shape":"blob"} + } + }, "GetBranchInput":{ "type":"structure", "members":{ @@ -517,6 +639,29 @@ "commit":{"shape":"Commit"} } }, + "GetDifferencesInput":{ + "type":"structure", + "required":[ + "repositoryName", + "afterCommitSpecifier" + ], + "members":{ + "repositoryName":{"shape":"RepositoryName"}, + "beforeCommitSpecifier":{"shape":"CommitName"}, + "afterCommitSpecifier":{"shape":"CommitName"}, + "beforePath":{"shape":"Path"}, + "afterPath":{"shape":"Path"}, + "MaxResults":{"shape":"Limit"}, + "NextToken":{"shape":"NextToken"} + } + }, + "GetDifferencesOutput":{ + "type":"structure", + "members":{ + "differences":{"shape":"DifferenceList"}, + "NextToken":{"shape":"NextToken"} + } + }, "GetRepositoryInput":{ "type":"structure", "required":["repositoryName"], @@ -532,6 +677,7 @@ }, "GetRepositoryTriggersInput":{ "type":"structure", + "required":["repositoryName"], "members":{ "repositoryName":{"shape":"RepositoryName"} } @@ -543,12 +689,24 @@ "triggers":{"shape":"RepositoryTriggersList"} } }, + "InvalidBlobIdException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "InvalidBranchNameException":{ "type":"structure", "members":{ }, "exception":true }, + "InvalidCommitException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "InvalidCommitIdException":{ "type":"structure", "members":{ @@ -561,12 +719,24 @@ }, "exception":true }, + "InvalidMaxResultsException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "InvalidOrderException":{ "type":"structure", "members":{ }, "exception":true }, + "InvalidPathException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "InvalidRepositoryDescriptionException":{ "type":"structure", "members":{ @@ -622,6 +792,10 @@ "exception":true }, "LastModifiedDate":{"type":"timestamp"}, + "Limit":{ + "type":"integer", + "box":true + }, "ListBranchesInput":{ "type":"structure", "required":["repositoryName"], @@ -671,6 +845,7 @@ "exception":true }, "Message":{"type":"string"}, + "Mode":{"type":"string"}, "Name":{"type":"string"}, "NextToken":{"type":"string"}, "ObjectId":{"type":"string"}, @@ -685,8 +860,19 @@ "type":"list", "member":{"shape":"ObjectId"} }, + "Path":{"type":"string"}, + "PathDoesNotExistException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "PutRepositoryTriggersInput":{ "type":"structure", + "required":[ + "repositoryName", + "triggers" + ], "members":{ "repositoryName":{"shape":"RepositoryName"}, "triggers":{"shape":"RepositoryTriggersList"} @@ -738,7 +924,7 @@ "type":"string", "max":100, "min":1, - "pattern":"[\\\\w\\\\.-]+" + "pattern":"[\\w\\.-]+" }, "RepositoryNameExistsException":{ "type":"structure", @@ -779,6 +965,11 @@ }, "RepositoryTrigger":{ "type":"structure", + "required":[ + "name", + "destinationArn", + "events" + ], "members":{ "name":{"shape":"RepositoryTriggerName"}, "destinationArn":{"shape":"Arn"}, @@ -862,6 +1053,10 @@ }, "TestRepositoryTriggersInput":{ "type":"structure", + "required":[ + "repositoryName", + "triggers" + ], "members":{ "repositoryName":{"shape":"RepositoryName"}, "triggers":{"shape":"RepositoryTriggersList"} @@ -911,6 +1106,7 @@ "email":{"shape":"Email"}, "date":{"shape":"Date"} } - } + }, + "blob":{"type":"blob"} } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/docs-2.json index 317a852a2..b58b35ec7 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/docs-2.json @@ -1,21 +1,23 @@ { "version": "2.0", - "service": "AWS CodeCommit

This is the AWS CodeCommit API Reference. This reference provides descriptions of the operations and data types for AWS CodeCommit API.

You can use the AWS CodeCommit API to work with the following objects:

  • Repositories, by calling the following:
    • BatchGetRepositories, which returns information about one or more repositories associated with your AWS account
    • CreateRepository, which creates an AWS CodeCommit repository
    • DeleteRepository, which deletes an AWS CodeCommit repository
    • GetRepository, which returns information about a specified repository
    • ListRepositories, which lists all AWS CodeCommit repositories associated with your AWS account
    • UpdateRepositoryDescription, which sets or updates the description of the repository
    • UpdateRepositoryName, which changes the name of the repository. If you change the name of a repository, no other users of that repository will be able to access it until you send them the new HTTPS or SSH URL to use.
  • Branches, by calling the following:
    • CreateBranch, which creates a new branch in a specified repository
    • GetBranch, which returns information about a specified branch
    • ListBranches, which lists all branches for a specified repository
    • UpdateDefaultBranch, which changes the default branch for a repository
  • Information about committed code in a repository, by calling the following:
    • GetCommit, which returns information about a commit, including commit messages and committer information.
  • Triggers, by calling the following:
    • GetRepositoryTriggers, which returns information about triggers configured for a repository
    • PutRepositoryTriggers, which replaces all triggers for a repository and can be used to create or delete triggers
    • TestRepositoryTriggers, which tests the functionality of a repository trigger by sending data to the trigger target

For information about how to use AWS CodeCommit, see the AWS CodeCommit User Guide.

", + "service": "AWS CodeCommit

This is the AWS CodeCommit API Reference. This reference provides descriptions of the operations and data types for AWS CodeCommit API along with usage examples.

You can use the AWS CodeCommit API to work with the following objects:

Repositories, by calling the following:

  • BatchGetRepositories, which returns information about one or more repositories associated with your AWS account

  • CreateRepository, which creates an AWS CodeCommit repository

  • DeleteRepository, which deletes an AWS CodeCommit repository

  • GetRepository, which returns information about a specified repository

  • ListRepositories, which lists all AWS CodeCommit repositories associated with your AWS account

  • UpdateRepositoryDescription, which sets or updates the description of the repository

  • UpdateRepositoryName, which changes the name of the repository. If you change the name of a repository, no other users of that repository will be able to access it until you send them the new HTTPS or SSH URL to use.

Branches, by calling the following:

  • CreateBranch, which creates a new branch in a specified repository

  • GetBranch, which returns information about a specified branch

  • ListBranches, which lists all branches for a specified repository

  • UpdateDefaultBranch, which changes the default branch for a repository

Information about committed code in a repository, by calling the following:

  • GetBlob, which returns the base-64 encoded content of an individual Git blob object within a repository

  • GetCommit, which returns information about a commit, including commit messages and author and committer information

  • GetDifferences, which returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID or other fully qualified reference)

Triggers, by calling the following:

  • GetRepositoryTriggers, which returns information about triggers configured for a repository

  • PutRepositoryTriggers, which replaces all triggers for a repository and can be used to create or delete triggers

  • TestRepositoryTriggers, which tests the functionality of a repository trigger by sending data to the trigger target

For information about how to use AWS CodeCommit, see the AWS CodeCommit User Guide.

", "operations": { - "BatchGetRepositories": "

Returns information about one or more repositories.

The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.

", - "CreateBranch": "

Creates a new branch in a repository and points the branch to a commit.

Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.

", + "BatchGetRepositories": "

Returns information about one or more repositories.

The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.

", + "CreateBranch": "

Creates a new branch in a repository and points the branch to a commit.

Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.

", "CreateRepository": "

Creates a new, empty repository.

", - "DeleteRepository": "

Deletes a repository. If a specified repository was already deleted, a null repository ID will be returned.

Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository will fail.", + "DeleteRepository": "

Deletes a repository. If a specified repository was already deleted, a null repository ID will be returned.

Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository will fail.

", + "GetBlob": "

Returns the base-64 encoded content of an individual blob within a repository.

", "GetBranch": "

Returns information about a repository branch, including its name and the last commit ID.

", "GetCommit": "

Returns information about a commit, including commit message and committer information.

", - "GetRepository": "

Returns information about a repository.

The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.

", + "GetDifferences": "

Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID or other fully qualified reference). Results can be limited to a specified path.

", + "GetRepository": "

Returns information about a repository.

The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.

", "GetRepositoryTriggers": "

Gets information about triggers configured for a repository.

", "ListBranches": "

Gets information about one or more branches in a repository.

", "ListRepositories": "

Gets information about one or more repositories.

", "PutRepositoryTriggers": "

Replaces all triggers for a repository. This can be used to create or delete triggers.

", "TestRepositoryTriggers": "

Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test will send data from the last commit. If no data is available, sample data will be generated.

", - "UpdateDefaultBranch": "

Sets or changes the default branch name for the specified repository.

If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.

", - "UpdateRepositoryDescription": "

Sets or changes the comment or description for a repository.

The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.

", + "UpdateDefaultBranch": "

Sets or changes the default branch name for the specified repository.

If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.

", + "UpdateRepositoryDescription": "

Sets or changes the comment or description for a repository.

The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.

", "UpdateRepositoryName": "

Renames a repository. The repository name must be unique across the calling AWS account. In addition, repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix \".git\" is prohibited. For a full description of the limits on repository names, see Limits in the AWS CodeCommit User Guide.

" }, "shapes": { @@ -48,6 +50,23 @@ "refs": { } }, + "BlobIdDoesNotExistException": { + "base": "

The specified blob does not exist.

", + "refs": { + } + }, + "BlobIdRequiredException": { + "base": "

A blob ID is required but was not specified.

", + "refs": { + } + }, + "BlobMetadata": { + "base": "

Returns information about a specific Git blob object.

", + "refs": { + "Difference$beforeBlob": "

Information about a beforeBlob data type object, including the ID, the file mode permission code, and the path.

", + "Difference$afterBlob": "

Information about an afterBlob data type object, including the ID, the file mode permission code, and the path.

" + } + }, "BranchDoesNotExistException": { "base": "

The specified branch does not exist.

", "refs": { @@ -87,6 +106,12 @@ "refs": { } }, + "ChangeTypeEnum": { + "base": null, + "refs": { + "Difference$changeType": "

Whether the change type of the difference is an addition (A), deletion (D), or modification (M).

" + } + }, "CloneUrlHttp": { "base": null, "refs": { @@ -102,7 +127,7 @@ "Commit": { "base": "

Returns information about a specific commit.

", "refs": { - "GetCommitOutput$commit": "

Information about the specified commit.

" + "GetCommitOutput$commit": "

A commit data type object that contains information about the specified commit.

" } }, "CommitDoesNotExistException": { @@ -127,6 +152,18 @@ "refs": { } }, + "CommitName": { + "base": null, + "refs": { + "GetDifferencesInput$beforeCommitSpecifier": "

The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, the full commit ID. Optional. If not specified, all changes prior to the afterCommitSpecifier value will be shown. If you do not use beforeCommitSpecifier in your request, consider limiting the results with maxResults.

", + "GetDifferencesInput$afterCommitSpecifier": "

The branch, tag, HEAD, or other fully qualified reference used to identify a commit.

" + } + }, + "CommitRequiredException": { + "base": "

A commit was not specified.

", + "refs": { + } + }, "CreateBranchInput": { "base": "

Represents the input of a create branch operation.

", "refs": { @@ -164,6 +201,18 @@ "refs": { } }, + "Difference": { + "base": "

Returns information about a set of differences for a commit specifier.

", + "refs": { + "DifferenceList$member": null + } + }, + "DifferenceList": { + "base": null, + "refs": { + "GetDifferencesOutput$differences": "

A differences data type object that contains information about the differences, including whether the difference is added, modified, or deleted (A, D, M).

" + } + }, "Email": { "base": null, "refs": { @@ -195,6 +244,21 @@ "refs": { } }, + "FileTooLargeException": { + "base": "

The specified file exceeds the file size limit for AWS CodeCommit. For more information about limits in AWS CodeCommit, see AWS CodeCommit User Guide.

", + "refs": { + } + }, + "GetBlobInput": { + "base": "

Represents the input of a get blob operation.

", + "refs": { + } + }, + "GetBlobOutput": { + "base": "

Represents the output of a get blob operation.

", + "refs": { + } + }, "GetBranchInput": { "base": "

Represents the input of a get branch operation.

", "refs": { @@ -215,6 +279,16 @@ "refs": { } }, + "GetDifferencesInput": { + "base": null, + "refs": { + } + }, + "GetDifferencesOutput": { + "base": null, + "refs": { + } + }, "GetRepositoryInput": { "base": "

Represents the input of a get repository operation.

", "refs": { @@ -235,11 +309,21 @@ "refs": { } }, + "InvalidBlobIdException": { + "base": "

The specified blob is not valid.

", + "refs": { + } + }, "InvalidBranchNameException": { "base": "

The specified branch name is not valid.

", "refs": { } }, + "InvalidCommitException": { + "base": "

The specified commit is not valid.

", + "refs": { + } + }, "InvalidCommitIdException": { "base": "

The specified commit ID is not valid.

", "refs": { @@ -250,18 +334,28 @@ "refs": { } }, + "InvalidMaxResultsException": { + "base": "

The specified number of maximum results is not valid.

", + "refs": { + } + }, "InvalidOrderException": { "base": "

The specified sort order is not valid.

", "refs": { } }, + "InvalidPathException": { + "base": "

The specified path is not valid.

", + "refs": { + } + }, "InvalidRepositoryDescriptionException": { "base": "

The specified repository description is not valid.

", "refs": { } }, "InvalidRepositoryNameException": { - "base": "

At least one specified repository name is not valid.

This exception only occurs when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.

", + "base": "

At least one specified repository name is not valid.

This exception only occurs when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.

", "refs": { } }, @@ -306,6 +400,12 @@ "RepositoryMetadata$lastModifiedDate": "

The date and time the repository was last modified, in timestamp format.

" } }, + "Limit": { + "base": null, + "refs": { + "GetDifferencesInput$MaxResults": "

A non-negative integer used to limit the number of returned results.

" + } + }, "ListBranchesInput": { "base": "

Represents the input of a list branches operation.

", "refs": { @@ -327,7 +427,7 @@ } }, "MaximumBranchesExceededException": { - "base": "

The number of branches for the trigger was exceeded.

", + "base": "

The number of branches for the trigger was exceeded.

", "refs": { } }, @@ -344,7 +444,13 @@ "Message": { "base": null, "refs": { - "Commit$message": "

The message associated with the specified commit.

" + "Commit$message": "

The commit message associated with the specified commit.

" + } + }, + "Mode": { + "base": null, + "refs": { + "BlobMetadata$mode": "

The file mode permissions of the blob. File mode permission codes include:

  • 100644 indicates read/write

  • 100755 indicates read/write/execute

  • 160000 indicates a submodule

  • 120000 indicates a symlink

" } }, "Name": { @@ -356,8 +462,10 @@ "NextToken": { "base": null, "refs": { - "ListBranchesInput$nextToken": "

An enumeration token that allows the operation to batch the results.

", - "ListBranchesOutput$nextToken": "

An enumeration token that returns the batch of the results.

", + "GetDifferencesInput$NextToken": "

An enumeration token that when provided in a request, returns the next batch of the results.

", + "GetDifferencesOutput$NextToken": "

An enumeration token that can be used in a request to return the next batch of the results.

", + "ListBranchesInput$nextToken": "

An enumeration token that allows the operation to batch the results.

", + "ListBranchesOutput$nextToken": "

An enumeration token that returns the batch of the results.

", "ListRepositoriesInput$nextToken": "

An enumeration token that allows the operation to batch the results of the operation. Batch sizes are 1,000 for list repository operations. When the client sends the token back to AWS CodeCommit, another page of 1,000 records is retrieved.

", "ListRepositoriesOutput$nextToken": "

An enumeration token that allows the operation to batch the results of the operation. Batch sizes are 1,000 for list repository operations. When the client sends the token back to AWS CodeCommit, another page of 1,000 records is retrieved.

" } @@ -365,7 +473,9 @@ "ObjectId": { "base": null, "refs": { + "BlobMetadata$blobId": "

The full ID of the blob.

", "Commit$treeId": "

Tree information for the specified commit.

", + "GetBlobInput$blobId": "

The ID of the blob, which is its SHA-1 pointer.

", "GetCommitInput$commitId": "

The commit ID.

", "ParentList$member": null } @@ -382,20 +492,33 @@ "Commit$parents": "

The parent list for the specified commit.

" } }, + "Path": { + "base": null, + "refs": { + "BlobMetadata$path": "

The path to the blob and any associated file name, if any.

", + "GetDifferencesInput$beforePath": "

The file path in which to check for differences. Limits the results to this path. Can also be used to specify the previous name of a directory or folder. If beforePath and afterPath are not specified, differences will be shown for all paths.

", + "GetDifferencesInput$afterPath": "

The file path in which to check differences. Limits the results to this path. Can also be used to specify the changed name of a directory or folder, if it has changed. If not specified, differences will be shown for all paths.

" + } + }, + "PathDoesNotExistException": { + "base": "

The specified path does not exist.

", + "refs": { + } + }, "PutRepositoryTriggersInput": { - "base": "

Represents the input ofa put repository triggers operation.

", + "base": "

Represents the input ofa put repository triggers operation.

", "refs": { } }, "PutRepositoryTriggersOutput": { - "base": "

Represents the output of a put repository triggers operation.

", + "base": "

Represents the output of a put repository triggers operation.

", "refs": { } }, "RepositoryDescription": { "base": null, "refs": { - "CreateRepositoryInput$repositoryDescription": "

A comment or description about the new repository.

The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.

", + "CreateRepositoryInput$repositoryDescription": "

A comment or description about the new repository.

The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.

", "RepositoryMetadata$repositoryDescription": "

A comment or description about the repository.

", "UpdateRepositoryDescriptionInput$repositoryDescription": "

The new comment or description for the specified repository. Repository descriptions are limited to 1,000 characters.

" } @@ -436,14 +559,16 @@ "base": null, "refs": { "CreateBranchInput$repositoryName": "

The name of the repository in which you want to create the new branch.

", - "CreateRepositoryInput$repositoryName": "

The name of the new repository to be created.

The repository name must be unique across the calling AWS account. In addition, repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For a full description of the limits on repository names, see Limits in the AWS CodeCommit User Guide. The suffix \".git\" is prohibited.

", + "CreateRepositoryInput$repositoryName": "

The name of the new repository to be created.

The repository name must be unique across the calling AWS account. In addition, repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For a full description of the limits on repository names, see Limits in the AWS CodeCommit User Guide. The suffix \".git\" is prohibited.

", "DeleteRepositoryInput$repositoryName": "

The name of the repository to delete.

", + "GetBlobInput$repositoryName": "

The name of the repository that contains the blob.

", "GetBranchInput$repositoryName": "

The name of the repository that contains the branch for which you want to retrieve information.

", "GetCommitInput$repositoryName": "

The name of the repository to which the commit was made.

", + "GetDifferencesInput$repositoryName": "

The name of the repository where you want to get differences.

", "GetRepositoryInput$repositoryName": "

The name of the repository to get information about.

", "GetRepositoryTriggersInput$repositoryName": "

The name of the repository for which the trigger is configured.

", "ListBranchesInput$repositoryName": "

The name of the repository that contains the branches.

", - "PutRepositoryTriggersInput$repositoryName": "

The name of the repository where you want to create or update the trigger.

", + "PutRepositoryTriggersInput$repositoryName": "

The name of the repository where you want to create or update the trigger.

", "RepositoryMetadata$repositoryName": "

The repository's name.

", "RepositoryNameIdPair$repositoryName": "

The name associated with the repository.

", "RepositoryNameList$member": null, @@ -512,7 +637,7 @@ } }, "RepositoryTriggerDestinationArnRequiredException": { - "base": "

A destination ARN for the target service for the trigger is required but was not specified.

", + "base": "

A destination ARN for the target service for the trigger is required but was not specified.

", "refs": { } }, @@ -525,7 +650,7 @@ "RepositoryTriggerEventList": { "base": null, "refs": { - "RepositoryTrigger$events": "

The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events.

" + "RepositoryTrigger$events": "

The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS).

The valid value \"all\" cannot be used with any other values.

" } }, "RepositoryTriggerEventsListRequiredException": { @@ -574,14 +699,14 @@ "base": null, "refs": { "GetRepositoryTriggersOutput$configurationId": "

The system-generated unique ID for the trigger.

", - "PutRepositoryTriggersOutput$configurationId": "

The system-generated unique ID for the create or update operation.

" + "PutRepositoryTriggersOutput$configurationId": "

The system-generated unique ID for the create or update operation.

" } }, "RepositoryTriggersList": { "base": null, "refs": { "GetRepositoryTriggersOutput$triggers": "

The JSON block of configuration information for each trigger.

", - "PutRepositoryTriggersInput$triggers": "

The JSON block of configuration information for each trigger.

", + "PutRepositoryTriggersInput$triggers": "

The JSON block of configuration information for each trigger.

", "TestRepositoryTriggersInput$triggers": "

The list of triggers to test.

" } }, @@ -624,8 +749,14 @@ "UserInfo": { "base": "

Information about the user who made a specified commit.

", "refs": { - "Commit$author": "

Information about the author of the specified commit.

", - "Commit$committer": "

Information about the person who committed the specified commit, also known as the committer. For more information about the difference between an author and a committer in Git, see Viewing the Commit History in Pro Git by Scott Chacon and Ben Straub.

" + "Commit$author": "

Information about the author of the specified commit. Information includes the date in timestamp format with GMT offset, the name of the author, and the email address for the author, as configured in Git.

", + "Commit$committer": "

Information about the person who committed the specified commit, also known as the committer. Information includes the date in timestamp format with GMT offset, the name of the committer, and the email address for the committer, as configured in Git.

For more information about the difference between an author and a committer in Git, see Viewing the Commit History in Pro Git by Scott Chacon and Ben Straub.

" + } + }, + "blob": { + "base": null, + "refs": { + "GetBlobOutput$content": "

The content of the blob, usually a file.

" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/paginators-1.json index e4c9a9038..8cbda7d8a 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/paginators-1.json @@ -1,14 +1,19 @@ { - "pagination": { - "ListBranches": { - "input_token": "nextToken", - "output_token": "nextToken", - "result_key": "branches" - }, - "ListRepositories": { - "input_token": "nextToken", - "output_token": "nextToken", - "result_key": "repositories" - } + "pagination": { + "GetDifferences": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken" + }, + "ListBranches": { + "input_token": "nextToken", + "output_token": "nextToken", + "result_key": "branches" + }, + "ListRepositories": { + "input_token": "nextToken", + "output_token": "nextToken", + "result_key": "repositories" } + } } \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/api-2.json index b76fa762b..9d4d49b21 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/api-2.json @@ -9,7 +9,8 @@ "serviceFullName":"AWS CodeDeploy", "signatureVersion":"v4", "targetPrefix":"CodeDeploy_20141006", - "timestampFormat":"unixTimestamp" + "timestampFormat":"unixTimestamp", + "uid":"codedeploy-2014-10-06" }, "operations":{ "AddTagsToOnPremisesInstances":{ @@ -122,6 +123,22 @@ {"shape":"BatchLimitExceededException"} ] }, + "ContinueDeployment":{ + "name":"ContinueDeployment", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ContinueDeploymentInput"}, + "errors":[ + {"shape":"DeploymentIdRequiredException"}, + {"shape":"DeploymentDoesNotExistException"}, + {"shape":"DeploymentAlreadyCompletedException"}, + {"shape":"InvalidDeploymentIdException"}, + {"shape":"DeploymentIsNotInReadyStateException"}, + {"shape":"UnsupportedActionForDeploymentTypeException"} + ] + }, "CreateApplication":{ "name":"CreateApplication", "http":{ @@ -159,7 +176,9 @@ {"shape":"DeploymentConfigDoesNotExistException"}, {"shape":"DescriptionTooLongException"}, {"shape":"DeploymentLimitExceededException"}, - {"shape":"InvalidAutoRollbackConfigException"} + {"shape":"InvalidTargetInstancesException"}, + {"shape":"InvalidAutoRollbackConfigException"}, + {"shape":"InvalidLoadBalancerInfoException"} ] }, "CreateDeploymentConfig":{ @@ -206,7 +225,10 @@ {"shape":"TriggerTargetsLimitExceededException"}, {"shape":"InvalidAlarmConfigException"}, {"shape":"AlarmsLimitExceededException"}, - {"shape":"InvalidAutoRollbackConfigException"} + {"shape":"InvalidAutoRollbackConfigException"}, + {"shape":"InvalidLoadBalancerInfoException"}, + {"shape":"InvalidDeploymentStyleException"}, + {"shape":"InvalidBlueGreenDeploymentConfigurationException"} ] }, "DeleteApplication":{ @@ -444,7 +466,8 @@ {"shape":"DeploymentNotStartedException"}, {"shape":"InvalidNextTokenException"}, {"shape":"InvalidDeploymentIdException"}, - {"shape":"InvalidInstanceStatusException"} + {"shape":"InvalidInstanceStatusException"}, + {"shape":"InvalidInstanceTypeException"} ] }, "ListDeployments":{ @@ -506,11 +529,15 @@ "input":{"shape":"RegisterOnPremisesInstanceInput"}, "errors":[ {"shape":"InstanceNameAlreadyRegisteredException"}, + {"shape":"IamArnRequiredException"}, + {"shape":"IamSessionArnAlreadyRegisteredException"}, {"shape":"IamUserArnAlreadyRegisteredException"}, {"shape":"InstanceNameRequiredException"}, {"shape":"IamUserArnRequiredException"}, {"shape":"InvalidInstanceNameException"}, - {"shape":"InvalidIamUserArnException"} + {"shape":"InvalidIamSessionArnException"}, + {"shape":"InvalidIamUserArnException"}, + {"shape":"MultipleIamArnsProvidedException"} ] }, "RemoveTagsFromOnPremisesInstances":{ @@ -529,6 +556,22 @@ {"shape":"InstanceNotRegisteredException"} ] }, + "SkipWaitTimeForInstanceTermination":{ + "name":"SkipWaitTimeForInstanceTermination", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"SkipWaitTimeForInstanceTerminationInput"}, + "errors":[ + {"shape":"DeploymentIdRequiredException"}, + {"shape":"DeploymentDoesNotExistException"}, + {"shape":"DeploymentAlreadyCompletedException"}, + {"shape":"InvalidDeploymentIdException"}, + {"shape":"DeploymentNotStartedException"}, + {"shape":"UnsupportedActionForDeploymentTypeException"} + ] + }, "StopDeployment":{ "name":"StopDeployment", "http":{ @@ -585,7 +628,10 @@ {"shape":"TriggerTargetsLimitExceededException"}, {"shape":"InvalidAlarmConfigException"}, {"shape":"AlarmsLimitExceededException"}, - {"shape":"InvalidAutoRollbackConfigException"} + {"shape":"InvalidAutoRollbackConfigException"}, + {"shape":"InvalidLoadBalancerInfoException"}, + {"shape":"InvalidDeploymentStyleException"}, + {"shape":"InvalidBlueGreenDeploymentConfigurationException"} ] } }, @@ -601,6 +647,7 @@ "instanceNames":{"shape":"InstanceNameList"} } }, + "AdditionalDeploymentStatusInfo":{"type":"string"}, "Alarm":{ "type":"structure", "members":{ @@ -814,6 +861,21 @@ }, "exception":true }, + "BlueGreenDeploymentConfiguration":{ + "type":"structure", + "members":{ + "terminateBlueInstancesOnDeploymentSuccess":{"shape":"BlueInstanceTerminationOption"}, + "deploymentReadyOption":{"shape":"DeploymentReadyOption"}, + "greenFleetProvisioningOption":{"shape":"GreenFleetProvisioningOption"} + } + }, + "BlueInstanceTerminationOption":{ + "type":"structure", + "members":{ + "action":{"shape":"InstanceAction"}, + "terminationWaitTimeInMinutes":{"shape":"Duration"} + } + }, "Boolean":{"type":"boolean"}, "BucketNameFilterRequiredException":{ "type":"structure", @@ -830,6 +892,12 @@ ] }, "CommitId":{"type":"string"}, + "ContinueDeploymentInput":{ + "type":"structure", + "members":{ + "deploymentId":{"shape":"DeploymentId"} + } + }, "CreateApplicationInput":{ "type":"structure", "required":["applicationName"], @@ -874,7 +942,10 @@ "serviceRoleArn":{"shape":"Role"}, "triggerConfigurations":{"shape":"TriggerConfigList"}, "alarmConfiguration":{"shape":"AlarmConfiguration"}, - "autoRollbackConfiguration":{"shape":"AutoRollbackConfiguration"} + "autoRollbackConfiguration":{"shape":"AutoRollbackConfiguration"}, + "deploymentStyle":{"shape":"DeploymentStyle"}, + "blueGreenDeploymentConfiguration":{"shape":"BlueGreenDeploymentConfiguration"}, + "loadBalancerInfo":{"shape":"LoadBalancerInfo"} } }, "CreateDeploymentGroupOutput":{ @@ -893,6 +964,7 @@ "deploymentConfigName":{"shape":"DeploymentConfigName"}, "description":{"shape":"Description"}, "ignoreApplicationStopFailures":{"shape":"Boolean"}, + "targetInstances":{"shape":"TargetInstances"}, "autoRollbackConfiguration":{"shape":"AutoRollbackConfiguration"}, "updateOutdatedInstancesOnly":{"shape":"Boolean"} } @@ -1030,7 +1102,10 @@ "targetRevision":{"shape":"RevisionLocation"}, "triggerConfigurations":{"shape":"TriggerConfigList"}, "alarmConfiguration":{"shape":"AlarmConfiguration"}, - "autoRollbackConfiguration":{"shape":"AutoRollbackConfiguration"} + "autoRollbackConfiguration":{"shape":"AutoRollbackConfiguration"}, + "deploymentStyle":{"shape":"DeploymentStyle"}, + "blueGreenDeploymentConfiguration":{"shape":"BlueGreenDeploymentConfiguration"}, + "loadBalancerInfo":{"shape":"LoadBalancerInfo"} } }, "DeploymentGroupInfoList":{ @@ -1084,9 +1159,21 @@ "ignoreApplicationStopFailures":{"shape":"Boolean"}, "autoRollbackConfiguration":{"shape":"AutoRollbackConfiguration"}, "updateOutdatedInstancesOnly":{"shape":"Boolean"}, - "rollbackInfo":{"shape":"RollbackInfo"} + "rollbackInfo":{"shape":"RollbackInfo"}, + "deploymentStyle":{"shape":"DeploymentStyle"}, + "targetInstances":{"shape":"TargetInstances"}, + "instanceTerminationWaitTimeStarted":{"shape":"Boolean"}, + "blueGreenDeploymentConfiguration":{"shape":"BlueGreenDeploymentConfiguration"}, + "loadBalancerInfo":{"shape":"LoadBalancerInfo"}, + "additionalDeploymentStatusInfo":{"shape":"AdditionalDeploymentStatusInfo"} } }, + "DeploymentIsNotInReadyStateException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "DeploymentLimitExceededException":{ "type":"structure", "members":{ @@ -1099,6 +1186,13 @@ }, "exception":true }, + "DeploymentOption":{ + "type":"string", + "enum":[ + "WITH_TRAFFIC_CONTROL", + "WITHOUT_TRAFFIC_CONTROL" + ] + }, "DeploymentOverview":{ "type":"structure", "members":{ @@ -1106,7 +1200,22 @@ "InProgress":{"shape":"InstanceCount"}, "Succeeded":{"shape":"InstanceCount"}, "Failed":{"shape":"InstanceCount"}, - "Skipped":{"shape":"InstanceCount"} + "Skipped":{"shape":"InstanceCount"}, + "Ready":{"shape":"InstanceCount"} + } + }, + "DeploymentReadyAction":{ + "type":"string", + "enum":[ + "CONTINUE_DEPLOYMENT", + "STOP_DEPLOYMENT" + ] + }, + "DeploymentReadyOption":{ + "type":"structure", + "members":{ + "actionOnTimeout":{"shape":"DeploymentReadyAction"}, + "waitTimeInMinutes":{"shape":"Duration"} } }, "DeploymentStatus":{ @@ -1117,13 +1226,28 @@ "InProgress", "Succeeded", "Failed", - "Stopped" + "Stopped", + "Ready" ] }, "DeploymentStatusList":{ "type":"list", "member":{"shape":"DeploymentStatus"} }, + "DeploymentStyle":{ + "type":"structure", + "members":{ + "deploymentType":{"shape":"DeploymentType"}, + "deploymentOption":{"shape":"DeploymentOption"} + } + }, + "DeploymentType":{ + "type":"string", + "enum":[ + "IN_PLACE", + "BLUE_GREEN" + ] + }, "DeploymentsInfoList":{ "type":"list", "member":{"shape":"DeploymentInfo"} @@ -1155,6 +1279,7 @@ "logTail":{"shape":"LogTail"} } }, + "Duration":{"type":"integer"}, "EC2TagFilter":{ "type":"structure", "members":{ @@ -1175,6 +1300,17 @@ "KEY_AND_VALUE" ] }, + "ELBInfo":{ + "type":"structure", + "members":{ + "name":{"shape":"ELBName"} + } + }, + "ELBInfoList":{ + "type":"list", + "member":{"shape":"ELBInfo"} + }, + "ELBName":{"type":"string"}, "ETag":{"type":"string"}, "ErrorCode":{ "type":"string", @@ -1329,6 +1465,32 @@ "commitId":{"shape":"CommitId"} } }, + "GreenFleetProvisioningAction":{ + "type":"string", + "enum":[ + "DISCOVER_EXISTING", + "COPY_AUTO_SCALING_GROUP" + ] + }, + "GreenFleetProvisioningOption":{ + "type":"structure", + "members":{ + "action":{"shape":"GreenFleetProvisioningAction"} + } + }, + "IamArnRequiredException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "IamSessionArn":{"type":"string"}, + "IamSessionArnAlreadyRegisteredException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "IamUserArn":{"type":"string"}, "IamUserArnAlreadyRegisteredException":{ "type":"structure", @@ -1342,6 +1504,13 @@ }, "exception":true }, + "InstanceAction":{ + "type":"string", + "enum":[ + "TERMINATE", + "KEEP_ALIVE" + ] + }, "InstanceArn":{"type":"string"}, "InstanceCount":{"type":"long"}, "InstanceDoesNotExistException":{ @@ -1361,6 +1530,7 @@ "type":"structure", "members":{ "instanceName":{"shape":"InstanceName"}, + "iamSessionArn":{"shape":"IamSessionArn"}, "iamUserArn":{"shape":"IamUserArn"}, "instanceArn":{"shape":"InstanceArn"}, "registerTime":{"shape":"Timestamp"}, @@ -1409,7 +1579,8 @@ "Succeeded", "Failed", "Skipped", - "Unknown" + "Unknown", + "Ready" ] }, "InstanceStatusList":{ @@ -1423,13 +1594,25 @@ "instanceId":{"shape":"InstanceId"}, "status":{"shape":"InstanceStatus"}, "lastUpdatedAt":{"shape":"Timestamp"}, - "lifecycleEvents":{"shape":"LifecycleEventList"} + "lifecycleEvents":{"shape":"LifecycleEventList"}, + "instanceType":{"shape":"InstanceType"} } }, "InstanceSummaryList":{ "type":"list", "member":{"shape":"InstanceSummary"} }, + "InstanceType":{ + "type":"string", + "enum":[ + "Blue", + "Green" + ] + }, + "InstanceTypeList":{ + "type":"list", + "member":{"shape":"InstanceType"} + }, "InstancesList":{ "type":"list", "member":{"shape":"InstanceId"} @@ -1458,6 +1641,12 @@ }, "exception":true }, + "InvalidBlueGreenDeploymentConfigurationException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "InvalidBucketNameFilterException":{ "type":"structure", "members":{ @@ -1494,12 +1683,24 @@ }, "exception":true }, + "InvalidDeploymentStyleException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "InvalidEC2TagException":{ "type":"structure", "members":{ }, "exception":true }, + "InvalidIamSessionArnException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "InvalidIamUserArnException":{ "type":"structure", "members":{ @@ -1518,12 +1719,24 @@ }, "exception":true }, + "InvalidInstanceTypeException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "InvalidKeyPrefixFilterException":{ "type":"structure", "members":{ }, "exception":true }, + "InvalidLoadBalancerInfoException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "InvalidMinimumHealthyHostValueException":{ "type":"structure", "members":{ @@ -1584,6 +1797,12 @@ }, "exception":true }, + "InvalidTargetInstancesException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "InvalidTimeRangeException":{ "type":"structure", "members":{ @@ -1709,7 +1928,8 @@ "members":{ "deploymentId":{"shape":"DeploymentId"}, "nextToken":{"shape":"NextToken"}, - "instanceStatusFilter":{"shape":"InstanceStatusList"} + "instanceStatusFilter":{"shape":"InstanceStatusList"}, + "instanceTypeFilter":{"shape":"InstanceTypeList"} } }, "ListDeploymentInstancesOutput":{ @@ -1759,6 +1979,12 @@ "ignore" ] }, + "LoadBalancerInfo":{ + "type":"structure", + "members":{ + "elbInfoList":{"shape":"ELBInfoList"} + } + }, "LogTail":{"type":"string"}, "Message":{"type":"string"}, "MinimumHealthyHosts":{ @@ -1776,6 +2002,12 @@ ] }, "MinimumHealthyHostsValue":{"type":"integer"}, + "MultipleIamArnsProvidedException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "NextToken":{"type":"string"}, "NullableBoolean":{"type":"boolean"}, "RegisterApplicationRevisionInput":{ @@ -1792,12 +2024,10 @@ }, "RegisterOnPremisesInstanceInput":{ "type":"structure", - "required":[ - "instanceName", - "iamUserArn" - ], + "required":["instanceName"], "members":{ "instanceName":{"shape":"InstanceName"}, + "iamSessionArn":{"shape":"IamSessionArn"}, "iamUserArn":{"shape":"IamUserArn"} } }, @@ -1890,6 +2120,12 @@ } }, "ScriptName":{"type":"string"}, + "SkipWaitTimeForInstanceTerminationInput":{ + "type":"structure", + "members":{ + "deploymentId":{"shape":"DeploymentId"} + } + }, "SortOrder":{ "type":"string", "enum":[ @@ -1962,6 +2198,13 @@ }, "exception":true }, + "TargetInstances":{ + "type":"structure", + "members":{ + "tagFilters":{"shape":"EC2TagFilterList"}, + "autoScalingGroups":{"shape":"AutoScalingGroupNameList"} + } + }, "TimeRange":{ "type":"structure", "members":{ @@ -1990,9 +2233,11 @@ "DeploymentFailure", "DeploymentStop", "DeploymentRollback", + "DeploymentReady", "InstanceStart", "InstanceSuccess", - "InstanceFailure" + "InstanceFailure", + "InstanceReady" ] }, "TriggerEventTypeList":{ @@ -2007,6 +2252,12 @@ }, "exception":true }, + "UnsupportedActionForDeploymentTypeException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "UpdateApplicationInput":{ "type":"structure", "members":{ @@ -2031,7 +2282,10 @@ "serviceRoleArn":{"shape":"Role"}, "triggerConfigurations":{"shape":"TriggerConfigList"}, "alarmConfiguration":{"shape":"AlarmConfiguration"}, - "autoRollbackConfiguration":{"shape":"AutoRollbackConfiguration"} + "autoRollbackConfiguration":{"shape":"AutoRollbackConfiguration"}, + "deploymentStyle":{"shape":"DeploymentStyle"}, + "blueGreenDeploymentConfiguration":{"shape":"BlueGreenDeploymentConfiguration"}, + "loadBalancerInfo":{"shape":"LoadBalancerInfo"} } }, "UpdateDeploymentGroupOutput":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/docs-2.json index 432378dc7..bbf8cd26f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/docs-2.json @@ -5,10 +5,11 @@ "AddTagsToOnPremisesInstances": "

Adds tags to on-premises instances.

", "BatchGetApplicationRevisions": "

Gets information about one or more application revisions.

", "BatchGetApplications": "

Gets information about one or more applications.

", - "BatchGetDeploymentGroups": "

Get information about one or more deployment groups.

", + "BatchGetDeploymentGroups": "

Gets information about one or more deployment groups.

", "BatchGetDeploymentInstances": "

Gets information about one or more instance that are part of a deployment group.

", "BatchGetDeployments": "

Gets information about one or more deployments.

", "BatchGetOnPremisesInstances": "

Gets information about one or more on-premises instances.

", + "ContinueDeployment": "

Starts the process of rerouting traffic from instances in the original environment to instances in thereplacement environment without waiting for a specified wait time to elapse. (Traffic rerouting, which is achieved by registering instances in the replacement environment with the load balancer, can start as soon as all instances have a status of Ready.)

", "CreateApplication": "

Creates an application.

", "CreateDeployment": "

Deploys an application revision through the specified deployment group.

", "CreateDeploymentConfig": "

Creates a deployment configuration.

", @@ -32,8 +33,9 @@ "ListDeployments": "

Lists the deployments in a deployment group for an application registered with the applicable IAM user or AWS account.

", "ListOnPremisesInstances": "

Gets a list of names for one or more on-premises instances.

Unless otherwise specified, both registered and deregistered on-premises instance names will be listed. To list only registered or deregistered on-premises instance names, use the registration status parameter.

", "RegisterApplicationRevision": "

Registers with AWS CodeDeploy a revision for the specified application.

", - "RegisterOnPremisesInstance": "

Registers an on-premises instance.

", + "RegisterOnPremisesInstance": "

Registers an on-premises instance.

Only one IAM ARN (an IAM session ARN or IAM user ARN) is supported in the request. You cannot use both.

", "RemoveTagsFromOnPremisesInstances": "

Removes one or more tags from one or more on-premises instances.

", + "SkipWaitTimeForInstanceTermination": "

In a blue/green deployment, overrides any specified wait time and starts terminating instances immediately after the traffic routing is completed.

", "StopDeployment": "

Attempts to stop an ongoing deployment.

", "UpdateApplication": "

Changes the name of an application.

", "UpdateDeploymentGroup": "

Changes information about a deployment group.

" @@ -44,6 +46,12 @@ "refs": { } }, + "AdditionalDeploymentStatusInfo": { + "base": null, + "refs": { + "DeploymentInfo$additionalDeploymentStatusInfo": "

Provides information about the results of a deployment, such as whether instances in the original environment in a blue/green deployment were not terminated.

" + } + }, "Alarm": { "base": "

Information about an alarm.

", "refs": { @@ -210,6 +218,7 @@ "base": null, "refs": { "CreateDeploymentGroupInput$autoScalingGroups": "

A list of associated Auto Scaling groups.

", + "TargetInstances$autoScalingGroups": "

The names of one or more Auto Scaling groups to identify a replacement environment for a blue/green deployment.

", "UpdateDeploymentGroupInput$autoScalingGroups": "

The replacement list of Auto Scaling groups to be included in the deployment group, if you want to change them. To keep the Auto Scaling groups, enter their names. To remove Auto Scaling groups, do not enter any Auto Scaling group names.

" } }, @@ -278,6 +287,21 @@ "refs": { } }, + "BlueGreenDeploymentConfiguration": { + "base": "

Information about blue/green deployment options for a deployment group.

", + "refs": { + "CreateDeploymentGroupInput$blueGreenDeploymentConfiguration": "

Information about blue/green deployment options for a deployment group.

", + "DeploymentGroupInfo$blueGreenDeploymentConfiguration": "

Information about blue/green deployment options for a deployment group.

", + "DeploymentInfo$blueGreenDeploymentConfiguration": "

Information about blue/green deployment options for this deployment.

", + "UpdateDeploymentGroupInput$blueGreenDeploymentConfiguration": "

Information about blue/green deployment options for a deployment group.

" + } + }, + "BlueInstanceTerminationOption": { + "base": "

Information about whether instances in the original environment are terminated when a blue/green deployment is successful.

", + "refs": { + "BlueGreenDeploymentConfiguration$terminateBlueInstancesOnDeploymentSuccess": "

Information about whether to terminate instances in the original fleet during a blue/green deployment.

" + } + }, "Boolean": { "base": null, "refs": { @@ -288,7 +312,8 @@ "CreateDeploymentInput$ignoreApplicationStopFailures": "

If set to true, then if the deployment causes the ApplicationStop deployment lifecycle event to an instance to fail, the deployment to that instance will not be considered to have failed at that point and will continue on to the BeforeInstall deployment lifecycle event.

If set to false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to an instance, the deployment to that instance will stop, and the deployment to that instance will be considered to have failed.

", "CreateDeploymentInput$updateOutdatedInstancesOnly": "

Indicates whether to deploy to all instances or only to instances that are not running the latest application revision.

", "DeploymentInfo$ignoreApplicationStopFailures": "

If true, then if the deployment causes the ApplicationStop deployment lifecycle event to an instance to fail, the deployment to that instance will not be considered to have failed at that point and will continue on to the BeforeInstall deployment lifecycle event.

If false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to an instance to fail, the deployment to that instance will stop, and the deployment to that instance will be considered to have failed.

", - "DeploymentInfo$updateOutdatedInstancesOnly": "

Indicates whether only instances that are not running the latest application revision are to be deployed to.

" + "DeploymentInfo$updateOutdatedInstancesOnly": "

Indicates whether only instances that are not running the latest application revision are to be deployed to.

", + "DeploymentInfo$instanceTerminationWaitTimeStarted": "

Indicates whether the wait period set for the termination of instances in the original environment has started. Status is 'false' if the KEEP_ALIVE option is specified; otherwise, 'true' as soon as the termination wait period starts.

" } }, "BucketNameFilterRequiredException": { @@ -308,6 +333,11 @@ "GitHubLocation$commitId": "

The SHA1 commit ID of the GitHub commit that represents the bundled artifacts for the application revision.

" } }, + "ContinueDeploymentInput": { + "base": null, + "refs": { + } + }, "CreateApplicationInput": { "base": "

Represents the input of a create application operation.

", "refs": { @@ -410,7 +440,7 @@ "base": null, "refs": { "CreateDeploymentConfigInput$deploymentConfigName": "

The name of the deployment configuration to create.

", - "CreateDeploymentGroupInput$deploymentConfigName": "

If specified, the deployment configuration name can be either one of the predefined configurations provided with AWS CodeDeploy or a custom deployment configuration that you create by calling the create deployment configuration operation.

CodeDeployDefault.OneAtATime is the default deployment configuration. It is used if a configuration isn't specified for the deployment or the deployment group.

The predefined deployment configurations include the following:

  • CodeDeployDefault.AllAtOnce attempts to deploy an application revision to as many instances as possible at once. The status of the overall deployment will be displayed as Succeeded if the application revision is deployed to one or more of the instances. The status of the overall deployment will be displayed as Failed if the application revision is not deployed to any of the instances. Using an example of nine instances, CodeDeployDefault.AllAtOnce will attempt to deploy to all nine instances at once. The overall deployment will succeed if deployment to even a single instance is successful; it will fail only if deployments to all nine instances fail.

  • CodeDeployDefault.HalfAtATime deploys to up to half of the instances at a time (with fractions rounded down). The overall deployment succeeds if the application revision is deployed to at least half of the instances (with fractions rounded up); otherwise, the deployment fails. In the example of nine instances, it will deploy to up to four instances at a time. The overall deployment succeeds if deployment to five or more instances succeed; otherwise, the deployment fails. The deployment may be successfully deployed to some instances even if the overall deployment fails.

  • CodeDeployDefault.OneAtATime deploys the application revision to only one instance at a time.

    For deployment groups that contain more than one instance:

    • The overall deployment succeeds if the application revision is deployed to all of the instances. The exception to this rule is if deployment to the last instance fails, the overall deployment still succeeds. This is because AWS CodeDeploy allows only one instance at a time to be taken offline with the CodeDeployDefault.OneAtATime configuration.

    • The overall deployment fails as soon as the application revision fails to be deployed to any but the last instance. The deployment may be successfully deployed to some instances even if the overall deployment fails.

    • In an example using nine instances, it will deploy to one instance at a time. The overall deployment succeeds if deployment to the first eight instances is successful; the overall deployment fails if deployment to any of the first eight instances fails.

    For deployment groups that contain only one instance, the overall deployment is successful only if deployment to the single instance is successful

", + "CreateDeploymentGroupInput$deploymentConfigName": "

If specified, the deployment configuration name can be either one of the predefined configurations provided with AWS CodeDeploy or a custom deployment configuration that you create by calling the create deployment configuration operation.

CodeDeployDefault.OneAtATime is the default deployment configuration. It is used if a configuration isn't specified for the deployment or the deployment group.

For more information about the predefined deployment configurations in AWS CodeDeploy, see see Working with Deployment Groups in AWS CodeDeploy in the AWS CodeDeploy User Guide.

", "CreateDeploymentInput$deploymentConfigName": "

The name of a deployment configuration associated with the applicable IAM user or AWS account.

If not specified, the value configured in the deployment group will be used as the default. If the deployment group does not have a deployment configuration associated with it, then CodeDeployDefault.OneAtATime will be used by default.

", "DeleteDeploymentConfigInput$deploymentConfigName": "

The name of a deployment configuration associated with the applicable IAM user or AWS account.

", "DeploymentConfigInfo$deploymentConfigName": "

The deployment configuration name.

", @@ -510,6 +540,7 @@ "base": null, "refs": { "BatchGetDeploymentInstancesInput$deploymentId": "

The unique ID of a deployment.

", + "ContinueDeploymentInput$deploymentId": "

The deployment ID of the blue/green deployment for which you want to start rerouting traffic to the replacement environment.

", "CreateDeploymentOutput$deploymentId": "

A unique deployment ID.

", "DeploymentInfo$deploymentId": "

The deployment ID.

", "DeploymentsList$member": null, @@ -519,6 +550,7 @@ "ListDeploymentInstancesInput$deploymentId": "

The unique ID of a deployment.

", "RollbackInfo$rollbackDeploymentId": "

The ID of the deployment rollback.

", "RollbackInfo$rollbackTriggeringDeploymentId": "

The deployment ID of the deployment that was underway and triggered a rollback deployment because it failed or was stopped.

", + "SkipWaitTimeForInstanceTerminationInput$deploymentId": "

The ID of the blue/green deployment for which you want to skip the instance termination wait time.

", "StopDeploymentInput$deploymentId": "

The unique ID of a deployment.

" } }, @@ -534,6 +566,11 @@ "GetDeploymentOutput$deploymentInfo": "

Information about the deployment.

" } }, + "DeploymentIsNotInReadyStateException": { + "base": "

The deployment does not have a status of Ready and can't continue yet.

", + "refs": { + } + }, "DeploymentLimitExceededException": { "base": "

The number of allowed deployments was exceeded.

", "refs": { @@ -544,12 +581,30 @@ "refs": { } }, + "DeploymentOption": { + "base": null, + "refs": { + "DeploymentStyle$deploymentOption": "

Indicates whether to route deployment traffic behind a load balancer.

" + } + }, "DeploymentOverview": { "base": "

Information about the deployment status of the instances in the deployment.

", "refs": { "DeploymentInfo$deploymentOverview": "

A summary of the deployment status of the instances in the deployment.

" } }, + "DeploymentReadyAction": { + "base": null, + "refs": { + "DeploymentReadyOption$actionOnTimeout": "

Information about when to reroute traffic from an original environment to a replacement environment in a blue/green deployment.

  • CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately after the new application revision is installed on the instances in the replacement environment.

  • STOP_DEPLOYMENT: Do not register new instances with load balancer unless traffic is rerouted manually. If traffic is not rerouted manually before the end of the specified wait period, the deployment status is changed to Stopped.

" + } + }, + "DeploymentReadyOption": { + "base": "

Information about how traffic is rerouted to instances in a replacement environment in a blue/green deployment.

", + "refs": { + "BlueGreenDeploymentConfiguration$deploymentReadyOption": "

Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment.

" + } + }, "DeploymentStatus": { "base": null, "refs": { @@ -563,6 +618,21 @@ "ListDeploymentsInput$includeOnlyStatuses": "

A subset of deployments to list by status:

  • Created: Include created deployments in the resulting list.

  • Queued: Include queued deployments in the resulting list.

  • In Progress: Include in-progress deployments in the resulting list.

  • Succeeded: Include successful deployments in the resulting list.

  • Failed: Include failed deployments in the resulting list.

  • Stopped: Include stopped deployments in the resulting list.

" } }, + "DeploymentStyle": { + "base": "

Information about the type of deployment, either standard or blue/green, you want to run and whether to route deployment traffic behind a load balancer.

", + "refs": { + "CreateDeploymentGroupInput$deploymentStyle": "

Information about the type of deployment, standard or blue/green, that you want to run and whether to route deployment traffic behind a load balancer.

", + "DeploymentGroupInfo$deploymentStyle": "

Information about the type of deployment, either standard or blue/green, you want to run and whether to route deployment traffic behind a load balancer.

", + "DeploymentInfo$deploymentStyle": "

Information about the type of deployment, either standard or blue/green, you want to run and whether to route deployment traffic behind a load balancer.

", + "UpdateDeploymentGroupInput$deploymentStyle": "

Information about the type of deployment, either standard or blue/green, you want to run and whether to route deployment traffic behind a load balancer.

" + } + }, + "DeploymentType": { + "base": null, + "refs": { + "DeploymentStyle$deploymentType": "

Indicates whether to run a standard deployment or a blue/green deployment.

" + } + }, "DeploymentsInfoList": { "base": null, "refs": { @@ -602,6 +672,13 @@ "LifecycleEvent$diagnostics": "

Diagnostic information about the deployment lifecycle event.

" } }, + "Duration": { + "base": null, + "refs": { + "BlueInstanceTerminationOption$terminationWaitTimeInMinutes": "

The number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.

", + "DeploymentReadyOption$waitTimeInMinutes": "

The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. Applies only to the STOP_DEPLOYMENT option for actionOnTimeout

" + } + }, "EC2TagFilter": { "base": "

Information about a tag filter.

", "refs": { @@ -613,6 +690,7 @@ "refs": { "CreateDeploymentGroupInput$ec2TagFilters": "

The Amazon EC2 tags on which to filter.

", "DeploymentGroupInfo$ec2TagFilters": "

The Amazon EC2 tags on which to filter.

", + "TargetInstances$tagFilters": "

The tag filter key, type, and value used to identify Amazon EC2 instances in a replacement environment for a blue/green deployment.

", "UpdateDeploymentGroupInput$ec2TagFilters": "

The replacement set of Amazon EC2 tags on which to filter, if you want to change them. To keep the existing tags, enter their names. To remove tags, do not enter any tag names.

" } }, @@ -622,6 +700,24 @@ "EC2TagFilter$Type": "

The tag filter type:

  • KEY_ONLY: Key only.

  • VALUE_ONLY: Value only.

  • KEY_AND_VALUE: Key and value.

" } }, + "ELBInfo": { + "base": "

Information about a load balancer in Elastic Load Balancing to use in a blue/green deployment.

", + "refs": { + "ELBInfoList$member": null + } + }, + "ELBInfoList": { + "base": null, + "refs": { + "LoadBalancerInfo$elbInfoList": "

An array containing information about the load balancer in Elastic Load Balancing to use in a blue/green deployment.

" + } + }, + "ELBName": { + "base": null, + "refs": { + "ELBInfo$name": "

The name of the load balancer that will be used to route traffic from original instances to replacement instances in a blue/green deployment.

" + } + }, "ETag": { "base": null, "refs": { @@ -631,7 +727,7 @@ "ErrorCode": { "base": null, "refs": { - "ErrorInformation$code": "

The error code:

  • APPLICATION_MISSING: The application was missing. This error code will most likely be raised if the application is deleted after the deployment is created but before it is started.

  • DEPLOYMENT_GROUP_MISSING: The deployment group was missing. This error code will most likely be raised if the deployment group is deleted after the deployment is created but before it is started.

  • HEALTH_CONSTRAINTS: The deployment failed on too many instances to be successfully deployed within the instance health constraints specified.

  • HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully deployed within the instance health constraints specified.

  • IAM_ROLE_MISSING: The service role cannot be accessed.

  • IAM_ROLE_PERMISSIONS: The service role does not have the correct permissions.

  • INTERNAL_ERROR: There was an internal error.

  • NO_EC2_SUBSCRIPTION: The calling account is not subscribed to the Amazon EC2 service.

  • NO_INSTANCES: No instance were specified, or no instance can be found.

  • OVER_MAX_INSTANCES: The maximum number of instance was exceeded.

  • THROTTLED: The operation was throttled because the calling account exceeded the throttling limits of one or more AWS services.

  • TIMEOUT: The deployment has timed out.

  • REVISION_MISSING: The revision ID was missing. This error code will most likely be raised if the revision is deleted after the deployment is created but before it is started.

" + "ErrorInformation$code": "

For information about additional error codes, see Error Codes for AWS CodeDeploy in the AWS CodeDeploy User Guide.

The error code:

  • APPLICATION_MISSING: The application was missing. This error code will most likely be raised if the application is deleted after the deployment is created but before it is started.

  • DEPLOYMENT_GROUP_MISSING: The deployment group was missing. This error code will most likely be raised if the deployment group is deleted after the deployment is created but before it is started.

  • HEALTH_CONSTRAINTS: The deployment failed on too many instances to be successfully deployed within the instance health constraints specified.

  • HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully deployed within the instance health constraints specified.

  • IAM_ROLE_MISSING: The service role cannot be accessed.

  • IAM_ROLE_PERMISSIONS: The service role does not have the correct permissions.

  • INTERNAL_ERROR: There was an internal error.

  • NO_EC2_SUBSCRIPTION: The calling account is not subscribed to the Amazon EC2 service.

  • NO_INSTANCES: No instance were specified, or no instance can be found.

  • OVER_MAX_INSTANCES: The maximum number of instance was exceeded.

  • THROTTLED: The operation was throttled because the calling account exceeded the throttling limits of one or more AWS services.

  • TIMEOUT: The deployment has timed out.

  • REVISION_MISSING: The revision ID was missing. This error code will most likely be raised if the revision is deleted after the deployment is created but before it is started.

" } }, "ErrorInformation": { @@ -653,7 +749,7 @@ "base": "

Information about an application revision.

", "refs": { "GetApplicationRevisionOutput$revisionInfo": "

General information about the revision.

", - "RevisionInfo$genericRevisionInfo": null + "RevisionInfo$genericRevisionInfo": "

Information about an application revision, including usage details and associated deployment groups.

" } }, "GetApplicationInput": { @@ -729,7 +825,36 @@ "GitHubLocation": { "base": "

Information about the location of application artifacts stored in GitHub.

", "refs": { - "RevisionLocation$gitHubLocation": null + "RevisionLocation$gitHubLocation": "

Information about the location of application artifacts stored in GitHub.

" + } + }, + "GreenFleetProvisioningAction": { + "base": null, + "refs": { + "GreenFleetProvisioningOption$action": "

The method used to add instances to a replacement environment.

  • DISCOVER_EXISTING: Use instances that already exist or will be created manually.

  • COPY_AUTO_SCALING_GROUP: Use settings from a specified Auto Scaling group to define and create instances in a new Auto Scaling group.

" + } + }, + "GreenFleetProvisioningOption": { + "base": "

Information about the instances that belong to the replacement environment in a blue/green deployment.

", + "refs": { + "BlueGreenDeploymentConfiguration$greenFleetProvisioningOption": "

Information about how instances are provisioned for a replacement environment in a blue/green deployment.

" + } + }, + "IamArnRequiredException": { + "base": "

No IAM ARN was included in the request. You must use an IAM session ARN or IAM user ARN in the request.

", + "refs": { + } + }, + "IamSessionArn": { + "base": null, + "refs": { + "InstanceInfo$iamSessionArn": "

The ARN of the IAM session associated with the on-premises instance.

", + "RegisterOnPremisesInstanceInput$iamSessionArn": "

The ARN of the IAM session to associate with the on-premises instance.

" + } + }, + "IamSessionArnAlreadyRegisteredException": { + "base": "

The request included an IAM session ARN that has already been used to register a different instance.

", + "refs": { } }, "IamUserArn": { @@ -749,6 +874,12 @@ "refs": { } }, + "InstanceAction": { + "base": null, + "refs": { + "BlueInstanceTerminationOption$action": "

The action to take on instances in the original environment after a successful blue/green deployment.

  • TERMINATE: Instances are terminated after a specified wait time.

  • KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.

" + } + }, "InstanceArn": { "base": null, "refs": { @@ -762,7 +893,8 @@ "DeploymentOverview$InProgress": "

The number of instances in which the deployment is in progress.

", "DeploymentOverview$Succeeded": "

The number of instances in the deployment to which revisions have been successfully deployed.

", "DeploymentOverview$Failed": "

The number of instances in the deployment in a failed state.

", - "DeploymentOverview$Skipped": "

The number of instances in the deployment in a skipped state.

" + "DeploymentOverview$Skipped": "

The number of instances in the deployment in a skipped state.

", + "DeploymentOverview$Ready": "

The number of instances in a replacement environment ready to receive traffic in a blue/green deployment.

" } }, "InstanceDoesNotExistException": { @@ -861,6 +993,19 @@ "BatchGetDeploymentInstancesOutput$instancesSummary": "

Information about the instance.

" } }, + "InstanceType": { + "base": null, + "refs": { + "InstanceSummary$instanceType": "

Information about which environment an instance belongs to in a blue/green deployment.

  • BLUE: The instance is part of the original environment.

  • GREEN: The instance is part of the replacement environment.

", + "InstanceTypeList$member": null + } + }, + "InstanceTypeList": { + "base": null, + "refs": { + "ListDeploymentInstancesInput$instanceTypeFilter": "

The set of instances in a blue/green deployment, either those in the original environment (\"BLUE\") or those in the replacement environment (\"GREEN\"), for which you want to view instance information.

" + } + }, "InstancesList": { "base": null, "refs": { @@ -888,6 +1033,11 @@ "refs": { } }, + "InvalidBlueGreenDeploymentConfigurationException": { + "base": "

The configuration for the blue/green deployment group was provided in an invalid format. For information about deployment configuration format, see CreateDeploymentConfig.

", + "refs": { + } + }, "InvalidBucketNameFilterException": { "base": "

The bucket name either doesn't exist or was specified in an invalid format.

", "refs": { @@ -918,11 +1068,21 @@ "refs": { } }, + "InvalidDeploymentStyleException": { + "base": "

An invalid deployment style was specified. Valid deployment types include \"IN_PLACE\" and \"BLUE_GREEN\". Valid deployment options for blue/green deployments include \"WITH_TRAFFIC_CONTROL\" and \"WITHOUT_TRAFFIC_CONTROL\".

", + "refs": { + } + }, "InvalidEC2TagException": { "base": "

The tag was specified in an invalid format.

", "refs": { } }, + "InvalidIamSessionArnException": { + "base": "

The IAM session ARN was specified in an invalid format.

", + "refs": { + } + }, "InvalidIamUserArnException": { "base": "

The IAM user ARN was specified in an invalid format.

", "refs": { @@ -938,11 +1098,21 @@ "refs": { } }, + "InvalidInstanceTypeException": { + "base": "

An invalid instance type was specified for instances in a blue/green deployment. Valid values include \"Blue\" for an original environment and \"Green\" for a replacement environment.

", + "refs": { + } + }, "InvalidKeyPrefixFilterException": { "base": "

The specified key prefix filter was specified in an invalid format.

", "refs": { } }, + "InvalidLoadBalancerInfoException": { + "base": "

An invalid load balancer name, or no load balancer name, was specified.

", + "refs": { + } + }, "InvalidMinimumHealthyHostValueException": { "base": "

The minimum healthy instance value was specified in an invalid format.

", "refs": { @@ -993,6 +1163,11 @@ "refs": { } }, + "InvalidTargetInstancesException": { + "base": "

The target instance configuration is invalid. Possible causes include:

  • Configuration data for target instances was entered for an in-place deployment.

  • The limit of 10 tags for a tag type was exceeded.

  • The combined length of the tag names exceeded the limit.

  • A specified tag is not currently applied to any instances.

", + "refs": { + } + }, "InvalidTimeRangeException": { "base": "

The specified time range was specified in an invalid format.

", "refs": { @@ -1128,6 +1303,15 @@ "ListApplicationRevisionsInput$deployed": "

Whether to list revisions based on whether the revision is the target revision of an deployment group:

  • include: List revisions that are target revisions of a deployment group.

  • exclude: Do not list revisions that are target revisions of a deployment group.

  • ignore: List all revisions.

" } }, + "LoadBalancerInfo": { + "base": "

Information about the load balancer used in a blue/green deployment.

", + "refs": { + "CreateDeploymentGroupInput$loadBalancerInfo": "

Information about the load balancer used in a blue/green deployment.

", + "DeploymentGroupInfo$loadBalancerInfo": "

Information about the load balancer to use in a blue/green deployment.

", + "DeploymentInfo$loadBalancerInfo": "

Information about the load balancer used in this blue/green deployment.

", + "UpdateDeploymentGroupInput$loadBalancerInfo": "

Information about the load balancer used in a blue/green deployment.

" + } + }, "LogTail": { "base": null, "refs": { @@ -1159,6 +1343,11 @@ "MinimumHealthyHosts$value": "

The minimum healthy instance value.

" } }, + "MultipleIamArnsProvidedException": { + "base": "

Both an IAM user ARN and an IAM session ARN were included in the request. Use only one ARN type.

", + "refs": { + } + }, "NextToken": { "base": null, "refs": { @@ -1237,7 +1426,7 @@ "GetApplicationRevisionInput$revision": "

Information about the application revision to get, including type and location.

", "GetApplicationRevisionOutput$revision": "

Additional information about the revision, including type and location.

", "RegisterApplicationRevisionInput$revision": "

Information about the application revision to register, including type and location.

", - "RevisionInfo$revisionLocation": null, + "RevisionInfo$revisionLocation": "

Information about the location and type of an application revision.

", "RevisionLocationList$member": null } }, @@ -1295,7 +1484,7 @@ "S3Location": { "base": "

Information about the location of application artifacts stored in Amazon S3.

", "refs": { - "RevisionLocation$s3Location": null + "RevisionLocation$s3Location": "

Information about the location of application artifacts stored in Amazon S3.

" } }, "ScriptName": { @@ -1304,6 +1493,11 @@ "Diagnostics$scriptName": "

The name of the script.

" } }, + "SkipWaitTimeForInstanceTerminationInput": { + "base": null, + "refs": { + } + }, "SortOrder": { "base": null, "refs": { @@ -1371,6 +1565,13 @@ "refs": { } }, + "TargetInstances": { + "base": "

Information about the instances to be used in the replacement environment in a blue/green deployment.

", + "refs": { + "CreateDeploymentInput$targetInstances": "

Information about the instances that will belong to the replacement environment in a blue/green deployment.

", + "DeploymentInfo$targetInstances": "

Information about the instances that belong to the replacement environment in a blue/green deployment.

" + } + }, "TimeRange": { "base": "

Information about a time range.

", "refs": { @@ -1440,6 +1641,11 @@ "refs": { } }, + "UnsupportedActionForDeploymentTypeException": { + "base": "

A call was submitted that is not supported for the specified deployment type.

", + "refs": { + } + }, "UpdateApplicationInput": { "base": "

Represents the input of an update application operation.

", "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/paginators-1.json index cea07e68b..aa398f003 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/paginators-1.json @@ -31,4 +31,4 @@ "result_key": "deployments" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/api-2.json index ac30e48eb..2e8b04d74 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/api-2.json @@ -8,7 +8,8 @@ "serviceAbbreviation":"CodePipeline", "serviceFullName":"AWS CodePipeline", "signatureVersion":"v4", - "targetPrefix":"CodePipeline_20150709" + "targetPrefix":"CodePipeline_20150709", + "uid":"codepipeline-2015-07-09" }, "operations":{ "AcknowledgeJob":{ @@ -493,7 +494,7 @@ }, "ActionConfigurationValue":{ "type":"string", - "max":500, + "max":1000, "min":1 }, "ActionContext":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/docs-2.json index 641ee8086..a43fab0c8 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/docs-2.json @@ -1,6 +1,6 @@ { "version": "2.0", - "service": "AWS CodePipeline

Overview

This is the AWS CodePipeline API Reference. This guide provides descriptions of the actions and data types for AWS CodePipeline. Some functionality for your pipeline is only configurable through the API. For additional information, see the AWS CodePipeline User Guide.

You can use the AWS CodePipeline API to work with pipelines, stages, actions, gates, and transitions, as described below.

Pipelines are models of automated release processes. Each pipeline is uniquely named, and consists of actions, gates, and stages.

You can work with pipelines by calling:

  • CreatePipeline, which creates a uniquely-named pipeline.

  • DeletePipeline, which deletes the specified pipeline.

  • GetPipeline, which returns information about a pipeline structure.

  • GetPipelineExecution, which returns information about a specific execution of a pipeline.

  • GetPipelineState, which returns information about the current state of the stages and actions of a pipeline.

  • ListPipelines, which gets a summary of all of the pipelines associated with your account.

  • StartPipelineExecution, which runs the the most recent revision of an artifact through the pipeline.

  • UpdatePipeline, which updates a pipeline with edits or changes to the structure of the pipeline.

Pipelines include stages, which are which are logical groupings of gates and actions. Each stage contains one or more actions that must complete before the next stage begins. A stage will result in success or failure. If a stage fails, then the pipeline stops at that stage and will remain stopped until either a new version of an artifact appears in the source location, or a user takes action to re-run the most recent artifact through the pipeline. You can call GetPipelineState, which displays the status of a pipeline, including the status of stages in the pipeline, or GetPipeline, which returns the entire structure of the pipeline, including the stages of that pipeline. For more information about the structure of stages and actions, also refer to the AWS CodePipeline Pipeline Structure Reference.

Pipeline stages include actions, which are categorized into categories such as source or build actions performed within a stage of a pipeline. For example, you can use a source action to import artifacts into a pipeline from a source such as Amazon S3. Like stages, you do not work with actions directly in most cases, but you do define and interact with actions when working with pipeline operations such as CreatePipeline and GetPipelineState.

Pipelines also include transitions, which allow the transition of artifacts from one stage to the next in a pipeline after the actions in one stage complete.

You can work with transitions by calling:

Using the API to integrate with AWS CodePipeline

For third-party integrators or developers who want to create their own integrations with AWS CodePipeline, the expected sequence varies from the standard API user. In order to integrate with AWS CodePipeline, developers will need to work with the following items:

Jobs, which are instances of an action. For example, a job for a source action might import a revision of an artifact from a source.

You can work with jobs by calling:

Third party jobs, which are instances of an action created by a partner action and integrated into AWS CodePipeline. Partner actions are created by members of the AWS Partner Network.

You can work with third party jobs by calling:

", + "service": "AWS CodePipeline

Overview

This is the AWS CodePipeline API Reference. This guide provides descriptions of the actions and data types for AWS CodePipeline. Some functionality for your pipeline is only configurable through the API. For additional information, see the AWS CodePipeline User Guide.

You can use the AWS CodePipeline API to work with pipelines, stages, actions, gates, and transitions, as described below.

Pipelines are models of automated release processes. Each pipeline is uniquely named, and consists of actions, gates, and stages.

You can work with pipelines by calling:

  • CreatePipeline, which creates a uniquely-named pipeline.

  • DeletePipeline, which deletes the specified pipeline.

  • GetPipeline, which returns information about a pipeline structure.

  • GetPipelineExecution, which returns information about a specific execution of a pipeline.

  • GetPipelineState, which returns information about the current state of the stages and actions of a pipeline.

  • ListPipelines, which gets a summary of all of the pipelines associated with your account.

  • StartPipelineExecution, which runs the the most recent revision of an artifact through the pipeline.

  • UpdatePipeline, which updates a pipeline with edits or changes to the structure of the pipeline.

Pipelines include stages, which are logical groupings of gates and actions. Each stage contains one or more actions that must complete before the next stage begins. A stage will result in success or failure. If a stage fails, then the pipeline stops at that stage and will remain stopped until either a new version of an artifact appears in the source location, or a user takes action to re-run the most recent artifact through the pipeline. You can call GetPipelineState, which displays the status of a pipeline, including the status of stages in the pipeline, or GetPipeline, which returns the entire structure of the pipeline, including the stages of that pipeline. For more information about the structure of stages and actions, also refer to the AWS CodePipeline Pipeline Structure Reference.

Pipeline stages include actions, which are categorized into categories such as source or build actions performed within a stage of a pipeline. For example, you can use a source action to import artifacts into a pipeline from a source such as Amazon S3. Like stages, you do not work with actions directly in most cases, but you do define and interact with actions when working with pipeline operations such as CreatePipeline and GetPipelineState.

Pipelines also include transitions, which allow the transition of artifacts from one stage to the next in a pipeline after the actions in one stage complete.

You can work with transitions by calling:

Using the API to integrate with AWS CodePipeline

For third-party integrators or developers who want to create their own integrations with AWS CodePipeline, the expected sequence varies from the standard API user. In order to integrate with AWS CodePipeline, developers will need to work with the following items:

Jobs, which are instances of an action. For example, a job for a source action might import a revision of an artifact from a source.

You can work with jobs by calling:

Third party jobs, which are instances of an action created by a partner action and integrated into AWS CodePipeline. Partner actions are created by members of the AWS Partner Network.

You can work with third party jobs by calling:

", "operations": { "AcknowledgeJob": "

Returns information about a specified job and whether that job has been received by the job worker. Only used for custom actions.

", "AcknowledgeThirdPartyJob": "

Confirms a job worker has received the specified job. Only used for partner actions.

", @@ -783,10 +783,10 @@ "Nonce": { "base": null, "refs": { - "AcknowledgeJobInput$nonce": "

A system-generated random number that AWS CodePipeline uses to ensure that the job is being worked on by only one job worker. This number must be returned in the response.

", - "AcknowledgeThirdPartyJobInput$nonce": "

A system-generated random number that AWS CodePipeline uses to ensure that the job is being worked on by only one job worker. This number must be returned in the response.

", - "Job$nonce": "

A system-generated random number that AWS CodePipeline uses to ensure that the job is being worked on by only one job worker. This number must be returned in the response.

", - "ThirdPartyJobDetails$nonce": "

A system-generated random number that AWS CodePipeline uses to ensure that the job is being worked on by only one job worker. This number must be returned in the response.

" + "AcknowledgeJobInput$nonce": "

A system-generated random number that AWS CodePipeline uses to ensure that the job is being worked on by only one job worker. Get this number from the response of the PollForJobs request that returned this job.

", + "AcknowledgeThirdPartyJobInput$nonce": "

A system-generated random number that AWS CodePipeline uses to ensure that the job is being worked on by only one job worker. Get this number from the response to a GetThirdPartyJobDetails request.

", + "Job$nonce": "

A system-generated random number that AWS CodePipeline uses to ensure that the job is being worked on by only one job worker. Use this number in an AcknowledgeJob request.

", + "ThirdPartyJobDetails$nonce": "

A system-generated random number that AWS CodePipeline uses to ensure that the job is being worked on by only one job worker. Use this number in an AcknowledgeThirdPartyJob request.

" } }, "NotLatestPipelineExecutionException": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/api-2.json index 095f84448..c7f1495d2 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/api-2.json @@ -7,7 +7,8 @@ "protocol":"json", "serviceFullName":"Amazon Cognito Identity", "signatureVersion":"v4", - "targetPrefix":"AWSCognitoIdentityService" + "targetPrefix":"AWSCognitoIdentityService", + "uid":"cognito-identity-2014-06-30" }, "operations":{ "CreateIdentityPool":{ @@ -327,11 +328,33 @@ "min":1, "pattern":"\\d+" }, + "AmbiguousRoleResolutionType":{ + "type":"string", + "enum":[ + "AuthenticatedRole", + "Deny" + ] + }, + "ClaimName":{ + "type":"string", + "max":64, + "min":1, + "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+" + }, + "ClaimValue":{ + "type":"string", + "max":128, + "min":1 + }, "CognitoIdentityProvider":{ "type":"structure", "members":{ "ProviderName":{"shape":"CognitoIdentityProviderName"}, - "ClientId":{"shape":"CognitoIdentityProviderClientId"} + "ClientId":{"shape":"CognitoIdentityProviderClientId"}, + "ServerSideTokenCheck":{ + "shape":"CognitoIdentityProviderTokenCheck", + "box":true + } } }, "CognitoIdentityProviderClientId":{ @@ -350,6 +373,7 @@ "min":1, "pattern":"[\\w._:/-]+" }, + "CognitoIdentityProviderTokenCheck":{"type":"boolean"}, "ConcurrentModificationException":{ "type":"structure", "members":{ @@ -433,8 +457,7 @@ "DeveloperUserIdentifier":{ "type":"string", "max":1024, - "min":1, - "pattern":"[\\w.@_-]+" + "min":1 }, "DeveloperUserIdentifierList":{ "type":"list", @@ -496,7 +519,8 @@ "type":"structure", "members":{ "IdentityPoolId":{"shape":"IdentityPoolId"}, - "Roles":{"shape":"RolesMap"} + "Roles":{"shape":"RolesMap"}, + "RoleMappings":{"shape":"RoleMappingMap"} } }, "GetOpenIdTokenForDeveloperIdentityInput":{ @@ -718,6 +742,36 @@ "NextToken":{"shape":"PaginationKey"} } }, + "MappingRule":{ + "type":"structure", + "required":[ + "Claim", + "MatchType", + "Value", + "RoleARN" + ], + "members":{ + "Claim":{"shape":"ClaimName"}, + "MatchType":{"shape":"MappingRuleMatchType"}, + "Value":{"shape":"ClaimValue"}, + "RoleARN":{"shape":"ARNString"} + } + }, + "MappingRuleMatchType":{ + "type":"string", + "enum":[ + "Equals", + "Contains", + "StartsWith", + "NotEqual" + ] + }, + "MappingRulesList":{ + "type":"list", + "member":{"shape":"MappingRule"}, + "max":25, + "min":1 + }, "MergeDeveloperIdentitiesInput":{ "type":"structure", "required":[ @@ -775,6 +829,28 @@ }, "exception":true }, + "RoleMapping":{ + "type":"structure", + "required":["Type"], + "members":{ + "Type":{"shape":"RoleMappingType"}, + "AmbiguousRoleResolution":{"shape":"AmbiguousRoleResolutionType"}, + "RulesConfiguration":{"shape":"RulesConfigurationType"} + } + }, + "RoleMappingMap":{ + "type":"map", + "key":{"shape":"IdentityProviderName"}, + "value":{"shape":"RoleMapping"}, + "max":10 + }, + "RoleMappingType":{ + "type":"string", + "enum":[ + "Token", + "Rules" + ] + }, "RoleType":{ "type":"string", "pattern":"(un)?authenticated" @@ -785,6 +861,13 @@ "value":{"shape":"ARNString"}, "max":2 }, + "RulesConfigurationType":{ + "type":"structure", + "required":["Rules"], + "members":{ + "Rules":{"shape":"MappingRulesList"} + } + }, "SAMLProviderList":{ "type":"list", "member":{"shape":"ARNString"} @@ -799,7 +882,8 @@ ], "members":{ "IdentityPoolId":{"shape":"IdentityPoolId"}, - "Roles":{"shape":"RolesMap"} + "Roles":{"shape":"RolesMap"}, + "RoleMappings":{"shape":"RoleMappingMap"} } }, "String":{"type":"string"}, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/docs-2.json index 78414f91e..bfd83f8fa 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/docs-2.json @@ -2,30 +2,31 @@ "version": "2.0", "service": "Amazon Cognito

Amazon Cognito is a web service that delivers scoped temporary credentials to mobile devices and other untrusted environments. Amazon Cognito uniquely identifies a device and supplies the user with a consistent identity over the lifetime of an application.

Using Amazon Cognito, you can enable authentication with one or more third-party identity providers (Facebook, Google, or Login with Amazon), and you can also choose to support unauthenticated access from your app. Cognito delivers a unique identifier for each user and acts as an OpenID token provider trusted by AWS Security Token Service (STS) to access temporary, limited-privilege AWS credentials.

To provide end-user credentials, first make an unsigned call to GetId. If the end user is authenticated with one of the supported identity providers, set the Logins map with the identity provider token. GetId returns a unique identifier for the user.

Next, make an unsigned call to GetCredentialsForIdentity. This call expects the same Logins map as the GetId call, as well as the IdentityID originally returned by GetId. Assuming your identity pool has been configured via the SetIdentityPoolRoles operation, GetCredentialsForIdentity will return AWS credentials for your use. If your pool has not been configured with SetIdentityPoolRoles, or if you want to follow legacy flow, make an unsigned call to GetOpenIdToken, which returns the OpenID token necessary to call STS and retrieve AWS credentials. This call expects the same Logins map as the GetId call, as well as the IdentityID originally returned by GetId. The token returned by GetOpenIdToken can be passed to the STS operation AssumeRoleWithWebIdentity to retrieve AWS credentials.

If you want to use Amazon Cognito in an Android, iOS, or Unity application, you will probably want to make API calls via the AWS Mobile SDK. To learn more, see the AWS Mobile SDK Developer Guide.

", "operations": { - "CreateIdentityPool": "

Creates a new identity pool. The identity pool is a store of user identity information that is specific to your AWS account. The limit on identity pools is 60 per account. The keys for SupportedLoginProviders are as follows:

  • Facebook: graph.facebook.com
  • Google: accounts.google.com
  • Amazon: www.amazon.com
  • Twitter: api.twitter.com
  • Digits: www.digits.com
You must use AWS Developer credentials to call this API.

", - "DeleteIdentities": "

Deletes identities from an identity pool. You can specify a list of 1-60 identities that you want to delete.

You must use AWS Developer credentials to call this API.

", - "DeleteIdentityPool": "

Deletes a user pool. Once a pool is deleted, users will not be able to authenticate with the pool.

You must use AWS Developer credentials to call this API.

", - "DescribeIdentity": "

Returns metadata related to the given identity, including when the identity was created and any associated linked logins.

You must use AWS Developer credentials to call this API.

", - "DescribeIdentityPool": "

Gets details about a particular identity pool, including the pool name, ID description, creation date, and current number of users.

You must use AWS Developer credentials to call this API.

", - "GetCredentialsForIdentity": "

Returns credentials for the provided identity ID. Any provided logins will be validated against supported login providers. If the token is for cognito-identity.amazonaws.com, it will be passed through to AWS Security Token Service with the appropriate role for the token.

This is a public API. You do not need any credentials to call this API.

", - "GetId": "

Generates (or retrieves) a Cognito ID. Supplying multiple logins will create an implicit linked account.

This is a public API. You do not need any credentials to call this API.

", - "GetIdentityPoolRoles": "

Gets the roles for an identity pool.

You must use AWS Developer credentials to call this API.

", - "GetOpenIdToken": "

Gets an OpenID token, using a known Cognito ID. This known Cognito ID is returned by GetId. You can optionally add additional logins for the identity. Supplying multiple logins creates an implicit link.

The OpenId token is valid for 15 minutes.

This is a public API. You do not need any credentials to call this API.

", - "GetOpenIdTokenForDeveloperIdentity": "

Registers (or retrieves) a Cognito IdentityId and an OpenID Connect token for a user authenticated by your backend authentication process. Supplying multiple logins will create an implicit linked account. You can only specify one developer provider as part of the Logins map, which is linked to the identity pool. The developer provider is the \"domain\" by which Cognito will refer to your users.

You can use GetOpenIdTokenForDeveloperIdentity to create a new identity and to link new logins (that is, user credentials issued by a public provider or developer provider) to an existing identity. When you want to create a new identity, the IdentityId should be null. When you want to associate a new login with an existing authenticated/unauthenticated identity, you can do so by providing the existing IdentityId. This API will create the identity in the specified IdentityPoolId.

You must use AWS Developer credentials to call this API.

", - "ListIdentities": "

Lists the identities in a pool.

You must use AWS Developer credentials to call this API.

", - "ListIdentityPools": "

Lists all of the Cognito identity pools registered for your account.

You must use AWS Developer credentials to call this API.

", - "LookupDeveloperIdentity": "

Retrieves the IdentityID associated with a DeveloperUserIdentifier or the list of DeveloperUserIdentifiers associated with an IdentityId for an existing identity. Either IdentityID or DeveloperUserIdentifier must not be null. If you supply only one of these values, the other value will be searched in the database and returned as a part of the response. If you supply both, DeveloperUserIdentifier will be matched against IdentityID. If the values are verified against the database, the response returns both values and is the same as the request. Otherwise a ResourceConflictException is thrown.

You must use AWS Developer credentials to call this API.

", - "MergeDeveloperIdentities": "

Merges two users having different IdentityIds, existing in the same identity pool, and identified by the same developer provider. You can use this action to request that discrete users be merged and identified as a single user in the Cognito environment. Cognito associates the given source user (SourceUserIdentifier) with the IdentityId of the DestinationUserIdentifier. Only developer-authenticated users can be merged. If the users to be merged are associated with the same public provider, but as two different users, an exception will be thrown.

You must use AWS Developer credentials to call this API.

", - "SetIdentityPoolRoles": "

Sets the roles for an identity pool. These roles are used when making calls to GetCredentialsForIdentity action.

You must use AWS Developer credentials to call this API.

", - "UnlinkDeveloperIdentity": "

Unlinks a DeveloperUserIdentifier from an existing identity. Unlinked developer users will be considered new identities next time they are seen. If, for a given Cognito identity, you remove all federated identities as well as the developer user identifier, the Cognito identity becomes inaccessible.

You must use AWS Developer credentials to call this API.

", - "UnlinkIdentity": "

Unlinks a federated identity from an existing account. Unlinked logins will be considered new identities next time they are seen. Removing the last linked login will make this identity inaccessible.

This is a public API. You do not need any credentials to call this API.

", - "UpdateIdentityPool": "

Updates a user pool.

You must use AWS Developer credentials to call this API.

" + "CreateIdentityPool": "

Creates a new identity pool. The identity pool is a store of user identity information that is specific to your AWS account. The limit on identity pools is 60 per account. The keys for SupportedLoginProviders are as follows:

  • Facebook: graph.facebook.com

  • Google: accounts.google.com

  • Amazon: www.amazon.com

  • Twitter: api.twitter.com

  • Digits: www.digits.com

You must use AWS Developer credentials to call this API.

", + "DeleteIdentities": "

Deletes identities from an identity pool. You can specify a list of 1-60 identities that you want to delete.

You must use AWS Developer credentials to call this API.

", + "DeleteIdentityPool": "

Deletes a user pool. Once a pool is deleted, users will not be able to authenticate with the pool.

You must use AWS Developer credentials to call this API.

", + "DescribeIdentity": "

Returns metadata related to the given identity, including when the identity was created and any associated linked logins.

You must use AWS Developer credentials to call this API.

", + "DescribeIdentityPool": "

Gets details about a particular identity pool, including the pool name, ID description, creation date, and current number of users.

You must use AWS Developer credentials to call this API.

", + "GetCredentialsForIdentity": "

Returns credentials for the provided identity ID. Any provided logins will be validated against supported login providers. If the token is for cognito-identity.amazonaws.com, it will be passed through to AWS Security Token Service with the appropriate role for the token.

This is a public API. You do not need any credentials to call this API.

", + "GetId": "

Generates (or retrieves) a Cognito ID. Supplying multiple logins will create an implicit linked account.

This is a public API. You do not need any credentials to call this API.

", + "GetIdentityPoolRoles": "

Gets the roles for an identity pool.

You must use AWS Developer credentials to call this API.

", + "GetOpenIdToken": "

Gets an OpenID token, using a known Cognito ID. This known Cognito ID is returned by GetId. You can optionally add additional logins for the identity. Supplying multiple logins creates an implicit link.

The OpenId token is valid for 15 minutes.

This is a public API. You do not need any credentials to call this API.

", + "GetOpenIdTokenForDeveloperIdentity": "

Registers (or retrieves) a Cognito IdentityId and an OpenID Connect token for a user authenticated by your backend authentication process. Supplying multiple logins will create an implicit linked account. You can only specify one developer provider as part of the Logins map, which is linked to the identity pool. The developer provider is the \"domain\" by which Cognito will refer to your users.

You can use GetOpenIdTokenForDeveloperIdentity to create a new identity and to link new logins (that is, user credentials issued by a public provider or developer provider) to an existing identity. When you want to create a new identity, the IdentityId should be null. When you want to associate a new login with an existing authenticated/unauthenticated identity, you can do so by providing the existing IdentityId. This API will create the identity in the specified IdentityPoolId.

You must use AWS Developer credentials to call this API.

", + "ListIdentities": "

Lists the identities in a pool.

You must use AWS Developer credentials to call this API.

", + "ListIdentityPools": "

Lists all of the Cognito identity pools registered for your account.

You must use AWS Developer credentials to call this API.

", + "LookupDeveloperIdentity": "

Retrieves the IdentityID associated with a DeveloperUserIdentifier or the list of DeveloperUserIdentifiers associated with an IdentityId for an existing identity. Either IdentityID or DeveloperUserIdentifier must not be null. If you supply only one of these values, the other value will be searched in the database and returned as a part of the response. If you supply both, DeveloperUserIdentifier will be matched against IdentityID. If the values are verified against the database, the response returns both values and is the same as the request. Otherwise a ResourceConflictException is thrown.

You must use AWS Developer credentials to call this API.

", + "MergeDeveloperIdentities": "

Merges two users having different IdentityIds, existing in the same identity pool, and identified by the same developer provider. You can use this action to request that discrete users be merged and identified as a single user in the Cognito environment. Cognito associates the given source user (SourceUserIdentifier) with the IdentityId of the DestinationUserIdentifier. Only developer-authenticated users can be merged. If the users to be merged are associated with the same public provider, but as two different users, an exception will be thrown.

You must use AWS Developer credentials to call this API.

", + "SetIdentityPoolRoles": "

Sets the roles for an identity pool. These roles are used when making calls to GetCredentialsForIdentity action.

You must use AWS Developer credentials to call this API.

", + "UnlinkDeveloperIdentity": "

Unlinks a DeveloperUserIdentifier from an existing identity. Unlinked developer users will be considered new identities next time they are seen. If, for a given Cognito identity, you remove all federated identities as well as the developer user identifier, the Cognito identity becomes inaccessible.

You must use AWS Developer credentials to call this API.

", + "UnlinkIdentity": "

Unlinks a federated identity from an existing account. Unlinked logins will be considered new identities next time they are seen. Removing the last linked login will make this identity inaccessible.

This is a public API. You do not need any credentials to call this API.

", + "UpdateIdentityPool": "

Updates a user pool.

You must use AWS Developer credentials to call this API.

" }, "shapes": { "ARNString": { "base": null, "refs": { "GetCredentialsForIdentityInput$CustomRoleArn": "

The Amazon Resource Name (ARN) of the role to be assumed when multiple roles were received in the token from the identity provider. For example, a SAML-based identity provider. This parameter is optional for identity providers that do not support role customization.

", + "MappingRule$RoleARN": "

The role ARN.

", "OIDCProviderList$member": null, "RolesMap$value": null, "SAMLProviderList$member": null @@ -40,7 +41,25 @@ "AccountId": { "base": null, "refs": { - "GetIdInput$AccountId": "A standard AWS account ID (9+ digits)." + "GetIdInput$AccountId": "

A standard AWS account ID (9+ digits).

" + } + }, + "AmbiguousRoleResolutionType": { + "base": null, + "refs": { + "RoleMapping$AmbiguousRoleResolution": "

If you specify Token or Rules as the Type, AmbiguousRoleResolution is required.

Specifies the action to be taken if either no rules match the claim value for the Rules type, or there is no cognito:preferred_role claim and there are multiple cognito:roles matches for the Token type.

" + } + }, + "ClaimName": { + "base": null, + "refs": { + "MappingRule$Claim": "

The claim name that must be present in the token, for example, \"isAdmin\" or \"paid\".

" + } + }, + "ClaimValue": { + "base": null, + "refs": { + "MappingRule$Value": "

A brief string that the claim must match, for example, \"paid\" or \"yes\".

" } }, "CognitoIdentityProvider": { @@ -58,7 +77,7 @@ "CognitoIdentityProviderList": { "base": null, "refs": { - "CreateIdentityPoolInput$CognitoIdentityProviders": "

An array of Amazon Cognito Identity user pools.

", + "CreateIdentityPoolInput$CognitoIdentityProviders": "

An array of Amazon Cognito Identity user pools and their client IDs.

", "IdentityPool$CognitoIdentityProviders": "

A list representing an Amazon Cognito Identity User Pool and its client ID.

" } }, @@ -68,6 +87,12 @@ "CognitoIdentityProvider$ProviderName": "

The provider name for an Amazon Cognito Identity User Pool. For example, cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789.

" } }, + "CognitoIdentityProviderTokenCheck": { + "base": null, + "refs": { + "CognitoIdentityProvider$ServerSideTokenCheck": "

TRUE if server-side token validation is enabled for the identity provider’s token.

" + } + }, "ConcurrentModificationException": { "base": "

Thrown if there are parallel requests to modify a resource.

", "refs": { @@ -113,7 +138,7 @@ } }, "DescribeIdentityPoolInput": { - "base": "Input to the DescribeIdentityPool action.", + "base": "

Input to the DescribeIdentityPool action.

", "refs": { } }, @@ -138,7 +163,7 @@ "LookupDeveloperIdentityInput$DeveloperUserIdentifier": "

A unique ID used by your backend authentication process to identify a user. Typically, a developer identity provider would issue many developer user identifiers, in keeping with the number of users.

", "MergeDeveloperIdentitiesInput$SourceUserIdentifier": "

User identifier for the source user. The value should be a DeveloperUserIdentifier.

", "MergeDeveloperIdentitiesInput$DestinationUserIdentifier": "

User identifier for the destination user. The value should be a DeveloperUserIdentifier.

", - "UnlinkDeveloperIdentityInput$DeveloperUserIdentifier": "A unique ID used by your backend authentication process to identify a user." + "UnlinkDeveloperIdentityInput$DeveloperUserIdentifier": "

A unique ID used by your backend authentication process to identify a user.

" } }, "DeveloperUserIdentifierList": { @@ -169,12 +194,12 @@ } }, "GetIdInput": { - "base": "Input to the GetId action.", + "base": "

Input to the GetId action.

", "refs": { } }, "GetIdResponse": { - "base": "Returned in response to a GetId request.", + "base": "

Returned in response to a GetId request.

", "refs": { } }, @@ -199,12 +224,12 @@ } }, "GetOpenIdTokenInput": { - "base": "Input to the GetOpenIdToken action.", + "base": "

Input to the GetOpenIdToken action.

", "refs": { } }, "GetOpenIdTokenResponse": { - "base": "Returned in response to a successful GetOpenIdToken request.", + "base": "

Returned in response to a successful GetOpenIdToken request.

", "refs": { } }, @@ -217,11 +242,11 @@ "IdentitiesList": { "base": null, "refs": { - "ListIdentitiesResponse$Identities": "An object containing a set of identities and associated mappings." + "ListIdentitiesResponse$Identities": "

An object containing a set of identities and associated mappings.

" } }, "IdentityDescription": { - "base": "A description of the identity.", + "base": "

A description of the identity.

", "refs": { "IdentitiesList$member": null } @@ -232,18 +257,18 @@ "DescribeIdentityInput$IdentityId": "

A unique identifier in the format REGION:GUID.

", "GetCredentialsForIdentityInput$IdentityId": "

A unique identifier in the format REGION:GUID.

", "GetCredentialsForIdentityResponse$IdentityId": "

A unique identifier in the format REGION:GUID.

", - "GetIdResponse$IdentityId": "A unique identifier in the format REGION:GUID.", + "GetIdResponse$IdentityId": "

A unique identifier in the format REGION:GUID.

", "GetOpenIdTokenForDeveloperIdentityInput$IdentityId": "

A unique identifier in the format REGION:GUID.

", "GetOpenIdTokenForDeveloperIdentityResponse$IdentityId": "

A unique identifier in the format REGION:GUID.

", - "GetOpenIdTokenInput$IdentityId": "A unique identifier in the format REGION:GUID.", - "GetOpenIdTokenResponse$IdentityId": "A unique identifier in the format REGION:GUID. Note that the IdentityId returned may not match the one passed on input.", - "IdentityDescription$IdentityId": "A unique identifier in the format REGION:GUID.", + "GetOpenIdTokenInput$IdentityId": "

A unique identifier in the format REGION:GUID.

", + "GetOpenIdTokenResponse$IdentityId": "

A unique identifier in the format REGION:GUID. Note that the IdentityId returned may not match the one passed on input.

", + "IdentityDescription$IdentityId": "

A unique identifier in the format REGION:GUID.

", "IdentityIdList$member": null, "LookupDeveloperIdentityInput$IdentityId": "

A unique identifier in the format REGION:GUID.

", "LookupDeveloperIdentityResponse$IdentityId": "

A unique identifier in the format REGION:GUID.

", "MergeDeveloperIdentitiesResponse$IdentityId": "

A unique identifier in the format REGION:GUID.

", "UnlinkDeveloperIdentityInput$IdentityId": "

A unique identifier in the format REGION:GUID.

", - "UnlinkIdentityInput$IdentityId": "A unique identifier in the format REGION:GUID.", + "UnlinkIdentityInput$IdentityId": "

A unique identifier in the format REGION:GUID.

", "UnprocessedIdentityId$IdentityId": "

A unique identifier in the format REGION:GUID.

" } }, @@ -254,23 +279,23 @@ } }, "IdentityPool": { - "base": "An object representing a Cognito identity pool.", + "base": "

An object representing an Amazon Cognito identity pool.

", "refs": { } }, "IdentityPoolId": { "base": null, "refs": { - "DeleteIdentityPoolInput$IdentityPoolId": "An identity pool ID in the format REGION:GUID.", - "DescribeIdentityPoolInput$IdentityPoolId": "An identity pool ID in the format REGION:GUID.", - "GetIdInput$IdentityPoolId": "An identity pool ID in the format REGION:GUID.", + "DeleteIdentityPoolInput$IdentityPoolId": "

An identity pool ID in the format REGION:GUID.

", + "DescribeIdentityPoolInput$IdentityPoolId": "

An identity pool ID in the format REGION:GUID.

", + "GetIdInput$IdentityPoolId": "

An identity pool ID in the format REGION:GUID.

", "GetIdentityPoolRolesInput$IdentityPoolId": "

An identity pool ID in the format REGION:GUID.

", "GetIdentityPoolRolesResponse$IdentityPoolId": "

An identity pool ID in the format REGION:GUID.

", "GetOpenIdTokenForDeveloperIdentityInput$IdentityPoolId": "

An identity pool ID in the format REGION:GUID.

", - "IdentityPool$IdentityPoolId": "An identity pool ID in the format REGION:GUID.", - "IdentityPoolShortDescription$IdentityPoolId": "An identity pool ID in the format REGION:GUID.", - "ListIdentitiesInput$IdentityPoolId": "An identity pool ID in the format REGION:GUID.", - "ListIdentitiesResponse$IdentityPoolId": "An identity pool ID in the format REGION:GUID.", + "IdentityPool$IdentityPoolId": "

An identity pool ID in the format REGION:GUID.

", + "IdentityPoolShortDescription$IdentityPoolId": "

An identity pool ID in the format REGION:GUID.

", + "ListIdentitiesInput$IdentityPoolId": "

An identity pool ID in the format REGION:GUID.

", + "ListIdentitiesResponse$IdentityPoolId": "

An identity pool ID in the format REGION:GUID.

", "LookupDeveloperIdentityInput$IdentityPoolId": "

An identity pool ID in the format REGION:GUID.

", "MergeDeveloperIdentitiesInput$IdentityPoolId": "

An identity pool ID in the format REGION:GUID.

", "SetIdentityPoolRolesInput$IdentityPoolId": "

An identity pool ID in the format REGION:GUID.

", @@ -282,11 +307,11 @@ "refs": { "CreateIdentityPoolInput$IdentityPoolName": "

A string that you provide.

", "IdentityPool$IdentityPoolName": "

A string that you provide.

", - "IdentityPoolShortDescription$IdentityPoolName": "A string that you provide." + "IdentityPoolShortDescription$IdentityPoolName": "

A string that you provide.

" } }, "IdentityPoolShortDescription": { - "base": "A description of the identity pool.", + "base": "

A description of the identity pool.

", "refs": { "IdentityPoolsList$member": null } @@ -295,13 +320,13 @@ "base": null, "refs": { "CreateIdentityPoolInput$AllowUnauthenticatedIdentities": "

TRUE if the identity pool supports unauthenticated logins.

", - "IdentityPool$AllowUnauthenticatedIdentities": "TRUE if the identity pool supports unauthenticated logins." + "IdentityPool$AllowUnauthenticatedIdentities": "

TRUE if the identity pool supports unauthenticated logins.

" } }, "IdentityPoolsList": { "base": null, "refs": { - "ListIdentityPoolsResponse$IdentityPools": "The identity pools returned by the ListIdentityPools action." + "ListIdentityPoolsResponse$IdentityPools": "

The identity pools returned by the ListIdentityPools action.

" } }, "IdentityProviderId": { @@ -315,7 +340,8 @@ "refs": { "IdentityProviders$key": null, "LoginsList$member": null, - "LoginsMap$key": null + "LoginsMap$key": null, + "RoleMappingMap$key": null } }, "IdentityProviderToken": { @@ -332,7 +358,7 @@ } }, "InternalErrorException": { - "base": "Thrown when the service encounters an error during processing the request.", + "base": "

Thrown when the service encounters an error during processing the request.

", "refs": { } }, @@ -342,50 +368,50 @@ } }, "InvalidParameterException": { - "base": "Thrown for missing or bad input parameter(s).", + "base": "

Thrown for missing or bad input parameter(s).

", "refs": { } }, "LimitExceededException": { - "base": "Thrown when the total number of user pools has exceeded a preset limit.", + "base": "

Thrown when the total number of user pools has exceeded a preset limit.

", "refs": { } }, "ListIdentitiesInput": { - "base": "Input to the ListIdentities action.", + "base": "

Input to the ListIdentities action.

", "refs": { } }, "ListIdentitiesResponse": { - "base": "The response to a ListIdentities request.", + "base": "

The response to a ListIdentities request.

", "refs": { } }, "ListIdentityPoolsInput": { - "base": "Input to the ListIdentityPools action.", + "base": "

Input to the ListIdentityPools action.

", "refs": { } }, "ListIdentityPoolsResponse": { - "base": "The result of a successful ListIdentityPools action.", + "base": "

The result of a successful ListIdentityPools action.

", "refs": { } }, "LoginsList": { "base": null, "refs": { - "IdentityDescription$Logins": "A set of optional name-value pairs that map provider names to provider tokens.", - "UnlinkIdentityInput$LoginsToRemove": "Provider names to unlink from this identity." + "IdentityDescription$Logins": "

A set of optional name-value pairs that map provider names to provider tokens.

", + "UnlinkIdentityInput$LoginsToRemove": "

Provider names to unlink from this identity.

" } }, "LoginsMap": { "base": null, "refs": { "GetCredentialsForIdentityInput$Logins": "

A set of optional name-value pairs that map provider names to provider tokens.

", - "GetIdInput$Logins": "

A set of optional name-value pairs that map provider names to provider tokens.

The available provider names for Logins are as follows:

  • Facebook: graph.facebook.com
  • Google: accounts.google.com
  • Amazon: www.amazon.com
  • Twitter: api.twitter.com
  • Digits: www.digits.com

", + "GetIdInput$Logins": "

A set of optional name-value pairs that map provider names to provider tokens. The available provider names for Logins are as follows:

  • Facebook: graph.facebook.com

  • Amazon Cognito Identity Provider: cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789

  • Google: accounts.google.com

  • Amazon: www.amazon.com

  • Twitter: api.twitter.com

  • Digits: www.digits.com

", "GetOpenIdTokenForDeveloperIdentityInput$Logins": "

A set of optional name-value pairs that map provider names to provider tokens. Each name-value pair represents a user from a public provider or developer provider. If the user is from a developer provider, the name-value pair will follow the syntax \"developer_provider_name\": \"developer_user_identifier\". The developer provider is the \"domain\" by which Cognito will refer to your users; you provided this domain while creating/updating the identity pool. The developer user identifier is an identifier from your backend that uniquely identifies a user. When you create an identity pool, you can specify the supported logins.

", - "GetOpenIdTokenInput$Logins": "A set of optional name-value pairs that map provider names to provider tokens. When using graph.facebook.com and www.amazon.com, supply the access_token returned from the provider's authflow. For accounts.google.com or any other OpenId Connect provider, always include the id_token.", - "UnlinkIdentityInput$Logins": "A set of optional name-value pairs that map provider names to provider tokens." + "GetOpenIdTokenInput$Logins": "

A set of optional name-value pairs that map provider names to provider tokens. When using graph.facebook.com and www.amazon.com, supply the access_token returned from the provider's authflow. For accounts.google.com, an Amazon Cognito Identity Provider, or any other OpenId Connect provider, always include the id_token.

", + "UnlinkIdentityInput$Logins": "

A set of optional name-value pairs that map provider names to provider tokens.

" } }, "LookupDeveloperIdentityInput": { @@ -398,6 +424,24 @@ "refs": { } }, + "MappingRule": { + "base": "

A rule that maps a claim name, a claim value, and a match type to a role ARN.

", + "refs": { + "MappingRulesList$member": null + } + }, + "MappingRuleMatchType": { + "base": null, + "refs": { + "MappingRule$MatchType": "

The match condition that specifies how closely the claim value in the IdP token must match Value.

" + } + }, + "MappingRulesList": { + "base": null, + "refs": { + "RulesConfigurationType$Rules": "

An array of rules. You can specify up to 25 rules per identity provider.

Rules are evaluated in order. The first one to match specifies the role.

" + } + }, "MergeDeveloperIdentitiesInput": { "base": "

Input to the MergeDeveloperIdentities action.

", "refs": { @@ -409,7 +453,7 @@ } }, "NotAuthorizedException": { - "base": "Thrown when a user is not authorized to access the requested resource.", + "base": "

Thrown when a user is not authorized to access the requested resource.

", "refs": { } }, @@ -424,16 +468,16 @@ "base": null, "refs": { "GetOpenIdTokenForDeveloperIdentityResponse$Token": "

An OpenID token.

", - "GetOpenIdTokenResponse$Token": "An OpenID token, valid for 15 minutes." + "GetOpenIdTokenResponse$Token": "

An OpenID token, valid for 15 minutes.

" } }, "PaginationKey": { "base": null, "refs": { - "ListIdentitiesInput$NextToken": "A pagination token.", - "ListIdentitiesResponse$NextToken": "A pagination token.", - "ListIdentityPoolsInput$NextToken": "A pagination token.", - "ListIdentityPoolsResponse$NextToken": "A pagination token.", + "ListIdentitiesInput$NextToken": "

A pagination token.

", + "ListIdentitiesResponse$NextToken": "

A pagination token.

", + "ListIdentityPoolsInput$NextToken": "

A pagination token.

", + "ListIdentityPoolsResponse$NextToken": "

A pagination token.

", "LookupDeveloperIdentityInput$NextToken": "

A pagination token. The first call you make will have NextToken set to null. After that the service will return NextToken values as needed. For example, let's say you make a request with MaxResults set to 10, and there are 20 matches in the database. The service will return a pagination token as a part of the response. This token can be used to call the API again and get results starting from the 11th match.

", "LookupDeveloperIdentityResponse$NextToken": "

A pagination token. The first call you make will have NextToken set to null. After that the service will return NextToken values as needed. For example, let's say you make a request with MaxResults set to 10, and there are 20 matches in the database. The service will return a pagination token as a part of the response. This token can be used to call the API again and get results starting from the 11th match.

" } @@ -441,19 +485,38 @@ "QueryLimit": { "base": null, "refs": { - "ListIdentitiesInput$MaxResults": "The maximum number of identities to return.", - "ListIdentityPoolsInput$MaxResults": "The maximum number of identities to return.", + "ListIdentitiesInput$MaxResults": "

The maximum number of identities to return.

", + "ListIdentityPoolsInput$MaxResults": "

The maximum number of identities to return.

", "LookupDeveloperIdentityInput$MaxResults": "

The maximum number of identities to return.

" } }, "ResourceConflictException": { - "base": "Thrown when a user tries to use a login which is already linked to another account.", + "base": "

Thrown when a user tries to use a login which is already linked to another account.

", "refs": { } }, "ResourceNotFoundException": { - "base": "Thrown when the requested resource (for example, a dataset or record) does not exist.", + "base": "

Thrown when the requested resource (for example, a dataset or record) does not exist.

", + "refs": { + } + }, + "RoleMapping": { + "base": "

A role mapping.

", + "refs": { + "RoleMappingMap$value": null + } + }, + "RoleMappingMap": { + "base": null, + "refs": { + "GetIdentityPoolRolesResponse$RoleMappings": "

How users for a specific identity provider are to mapped to roles. This is a String-to-RoleMapping object map. The string identifies the identity provider, for example, \"graph.facebook.com\" or \"cognito-idp-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id\".

", + "SetIdentityPoolRolesInput$RoleMappings": "

How users for a specific identity provider are to mapped to roles. This is a string to RoleMapping object map. The string identifies the identity provider, for example, \"graph.facebook.com\" or \"cognito-idp-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id\".

Up to 25 rules can be specified per identity provider.

" + } + }, + "RoleMappingType": { + "base": null, "refs": { + "RoleMapping$Type": "

The role mapping type. Token will use cognito:roles and cognito:preferred_role claims from the Cognito identity provider token to map groups to roles. Rules will attempt to match claims from the token to map to a role.

" } }, "RoleType": { @@ -469,6 +532,12 @@ "SetIdentityPoolRolesInput$Roles": "

The map of roles associated with this pool. For a given role, the key will be either \"authenticated\" or \"unauthenticated\" and the value will be the Role ARN.

" } }, + "RulesConfigurationType": { + "base": "

A container for rules.

", + "refs": { + "RoleMapping$RulesConfiguration": "

The rules to be used for mapping users to roles.

If you specify Rules as the role mapping type, RulesConfiguration is required.

" + } + }, "SAMLProviderList": { "base": null, "refs": { @@ -499,14 +568,14 @@ "ConcurrentModificationException$message": "

The message returned by a ConcurrentModificationException.

", "DeveloperUserAlreadyRegisteredException$message": "

This developer user identifier is already registered with Cognito.

", "ExternalServiceException$message": "

The message returned by an ExternalServiceException

", - "InternalErrorException$message": "The message returned by an InternalErrorException.", - "InvalidIdentityPoolConfigurationException$message": "

The message returned for an InvalidIdentityPoolConfigurationException

", - "InvalidParameterException$message": "The message returned by an InvalidParameterException.", - "LimitExceededException$message": "The message returned by a LimitExceededException.", - "NotAuthorizedException$message": "The message returned by a NotAuthorizedException", - "ResourceConflictException$message": "The message returned by a ResourceConflictException.", - "ResourceNotFoundException$message": "The message returned by a ResourceNotFoundException.", - "TooManyRequestsException$message": "Message returned by a TooManyRequestsException" + "InternalErrorException$message": "

The message returned by an InternalErrorException.

", + "InvalidIdentityPoolConfigurationException$message": "

The message returned for an InvalidIdentityPoolConfigurationException

", + "InvalidParameterException$message": "

The message returned by an InvalidParameterException.

", + "LimitExceededException$message": "

The message returned by a LimitExceededException.

", + "NotAuthorizedException$message": "

The message returned by a NotAuthorizedException

", + "ResourceConflictException$message": "

The message returned by a ResourceConflictException.

", + "ResourceNotFoundException$message": "

The message returned by a ResourceNotFoundException.

", + "TooManyRequestsException$message": "

Message returned by a TooManyRequestsException

" } }, "TokenDuration": { @@ -516,7 +585,7 @@ } }, "TooManyRequestsException": { - "base": "Thrown when a request is throttled.", + "base": "

Thrown when a request is throttled.

", "refs": { } }, @@ -526,7 +595,7 @@ } }, "UnlinkIdentityInput": { - "base": "Input to the UnlinkIdentity action.", + "base": "

Input to the UnlinkIdentity action.

", "refs": { } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/paginators-1.json new file mode 100644 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-idp/2016-04-18/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-idp/2016-04-18/api-2.json index b8011efe8..5d8307306 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-idp/2016-04-18/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-idp/2016-04-18/api-2.json @@ -7,7 +7,8 @@ "protocol":"json", "serviceFullName":"Amazon Cognito Identity Provider", "signatureVersion":"v4", - "targetPrefix":"AWSCognitoIdentityProviderService" + "targetPrefix":"AWSCognitoIdentityProviderService", + "uid":"cognito-idp-2016-04-18" }, "operations":{ "AddCustomAttributes":{ @@ -27,6 +28,22 @@ {"shape":"InternalErrorException"} ] }, + "AdminAddUserToGroup":{ + "name":"AdminAddUserToGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AdminAddUserToGroupRequest"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"NotAuthorizedException"}, + {"shape":"UserNotFoundException"}, + {"shape":"InternalErrorException"} + ] + }, "AdminConfirmSignUp":{ "name":"AdminConfirmSignUp", "http":{ @@ -237,6 +254,39 @@ {"shape":"NotAuthorizedException"} ] }, + "AdminListGroupsForUser":{ + "name":"AdminListGroupsForUser", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AdminListGroupsForUserRequest"}, + "output":{"shape":"AdminListGroupsForUserResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"NotAuthorizedException"}, + {"shape":"UserNotFoundException"}, + {"shape":"InternalErrorException"} + ] + }, + "AdminRemoveUserFromGroup":{ + "name":"AdminRemoveUserFromGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AdminRemoveUserFromGroupRequest"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"NotAuthorizedException"}, + {"shape":"UserNotFoundException"}, + {"shape":"InternalErrorException"} + ] + }, "AdminResetUserPassword":{ "name":"AdminResetUserPassword", "http":{ @@ -458,6 +508,24 @@ ], "authtype":"none" }, + "CreateGroup":{ + "name":"CreateGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateGroupRequest"}, + "output":{"shape":"CreateGroupResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"GroupExistsException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"LimitExceededException"}, + {"shape":"NotAuthorizedException"}, + {"shape":"InternalErrorException"} + ] + }, "CreateUserImportJob":{ "name":"CreateUserImportJob", "http":{ @@ -492,6 +560,7 @@ {"shape":"InvalidSmsRoleTrustRelationshipException"}, {"shape":"InvalidEmailRoleAccessPolicyException"}, {"shape":"NotAuthorizedException"}, + {"shape":"UserPoolTaggingException"}, {"shape":"InternalErrorException"} ] }, @@ -512,6 +581,21 @@ {"shape":"InternalErrorException"} ] }, + "DeleteGroup":{ + "name":"DeleteGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteGroupRequest"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"NotAuthorizedException"}, + {"shape":"InternalErrorException"} + ] + }, "DeleteUser":{ "name":"DeleteUser", "http":{ @@ -611,6 +695,7 @@ {"shape":"InvalidParameterException"}, {"shape":"TooManyRequestsException"}, {"shape":"NotAuthorizedException"}, + {"shape":"UserPoolTaggingException"}, {"shape":"InternalErrorException"} ] }, @@ -712,6 +797,22 @@ {"shape":"InternalErrorException"} ] }, + "GetGroup":{ + "name":"GetGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetGroupRequest"}, + "output":{"shape":"GetGroupResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"NotAuthorizedException"}, + {"shape":"InternalErrorException"} + ] + }, "GetUser":{ "name":"GetUser", "http":{ @@ -821,6 +922,22 @@ {"shape":"InternalErrorException"} ] }, + "ListGroups":{ + "name":"ListGroups", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListGroupsRequest"}, + "output":{"shape":"ListGroupsResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"NotAuthorizedException"}, + {"shape":"InternalErrorException"} + ] + }, "ListUserImportJobs":{ "name":"ListUserImportJobs", "http":{ @@ -884,6 +1001,22 @@ {"shape":"InternalErrorException"} ] }, + "ListUsersInGroup":{ + "name":"ListUsersInGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListUsersInGroupRequest"}, + "output":{"shape":"ListUsersInGroupResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"NotAuthorizedException"}, + {"shape":"InternalErrorException"} + ] + }, "ResendConfirmationCode":{ "name":"ResendConfirmationCode", "http":{ @@ -1039,6 +1172,22 @@ {"shape":"InternalErrorException"} ] }, + "UpdateGroup":{ + "name":"UpdateGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateGroupRequest"}, + "output":{"shape":"UpdateGroupResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"NotAuthorizedException"}, + {"shape":"InternalErrorException"} + ] + }, "UpdateUserAttributes":{ "name":"UpdateUserAttributes", "http":{ @@ -1087,6 +1236,7 @@ {"shape":"InternalErrorException"}, {"shape":"InvalidSmsRoleAccessPolicyException"}, {"shape":"InvalidSmsRoleTrustRelationshipException"}, + {"shape":"UserPoolTaggingException"}, {"shape":"InvalidEmailRoleAccessPolicyException"} ] }, @@ -1147,6 +1297,19 @@ "members":{ } }, + "AdminAddUserToGroupRequest":{ + "type":"structure", + "required":[ + "UserPoolId", + "Username", + "GroupName" + ], + "members":{ + "UserPoolId":{"shape":"UserPoolIdType"}, + "Username":{"shape":"UsernameType"}, + "GroupName":{"shape":"GroupNameType"} + } + }, "AdminConfirmSignUpRequest":{ "type":"structure", "required":[ @@ -1361,6 +1524,39 @@ "PaginationToken":{"shape":"SearchPaginationTokenType"} } }, + "AdminListGroupsForUserRequest":{ + "type":"structure", + "required":[ + "Username", + "UserPoolId" + ], + "members":{ + "Username":{"shape":"UsernameType"}, + "UserPoolId":{"shape":"UserPoolIdType"}, + "Limit":{"shape":"QueryLimitType"}, + "NextToken":{"shape":"PaginationKey"} + } + }, + "AdminListGroupsForUserResponse":{ + "type":"structure", + "members":{ + "Groups":{"shape":"GroupListType"}, + "NextToken":{"shape":"PaginationKey"} + } + }, + "AdminRemoveUserFromGroupRequest":{ + "type":"structure", + "required":[ + "UserPoolId", + "Username", + "GroupName" + ], + "members":{ + "UserPoolId":{"shape":"UserPoolIdType"}, + "Username":{"shape":"UsernameType"}, + "GroupName":{"shape":"GroupNameType"} + } + }, "AdminResetUserPasswordRequest":{ "type":"structure", "required":[ @@ -1738,6 +1934,26 @@ "min":1, "pattern":"[\\S]+" }, + "CreateGroupRequest":{ + "type":"structure", + "required":[ + "GroupName", + "UserPoolId" + ], + "members":{ + "GroupName":{"shape":"GroupNameType"}, + "UserPoolId":{"shape":"UserPoolIdType"}, + "Description":{"shape":"DescriptionType"}, + "RoleArn":{"shape":"ArnType"}, + "Precedence":{"shape":"PrecedenceType"} + } + }, + "CreateGroupResponse":{ + "type":"structure", + "members":{ + "Group":{"shape":"GroupType"} + } + }, "CreateUserImportJobRequest":{ "type":"structure", "required":[ @@ -1796,7 +2012,9 @@ "DeviceConfiguration":{"shape":"DeviceConfigurationType"}, "EmailConfiguration":{"shape":"EmailConfigurationType"}, "SmsConfiguration":{"shape":"SmsConfigurationType"}, - "AdminCreateUserConfig":{"shape":"AdminCreateUserConfigType"} + "UserPoolTags":{"shape":"UserPoolTagsType"}, + "AdminCreateUserConfig":{"shape":"AdminCreateUserConfigType"}, + "Schema":{"shape":"SchemaAttributesListType"} } }, "CreateUserPoolResponse":{ @@ -1818,6 +2036,17 @@ "min":1 }, "DateType":{"type":"timestamp"}, + "DeleteGroupRequest":{ + "type":"structure", + "required":[ + "GroupName", + "UserPoolId" + ], + "members":{ + "GroupName":{"shape":"GroupNameType"}, + "UserPoolId":{"shape":"UserPoolIdType"} + } + }, "DeleteUserAttributesRequest":{ "type":"structure", "required":["UserAttributeNames"], @@ -1913,6 +2142,10 @@ "UserPool":{"shape":"UserPoolType"} } }, + "DescriptionType":{ + "type":"string", + "max":2048 + }, "DeviceConfigurationType":{ "type":"structure", "members":{ @@ -2057,6 +2290,23 @@ "Device":{"shape":"DeviceType"} } }, + "GetGroupRequest":{ + "type":"structure", + "required":[ + "GroupName", + "UserPoolId" + ], + "members":{ + "GroupName":{"shape":"GroupNameType"}, + "UserPoolId":{"shape":"UserPoolIdType"} + } + }, + "GetGroupResponse":{ + "type":"structure", + "members":{ + "Group":{"shape":"GroupType"} + } + }, "GetUserAttributeVerificationCodeRequest":{ "type":"structure", "required":["AttributeName"], @@ -2100,6 +2350,35 @@ "members":{ } }, + "GroupExistsException":{ + "type":"structure", + "members":{ + "message":{"shape":"MessageType"} + }, + "exception":true + }, + "GroupListType":{ + "type":"list", + "member":{"shape":"GroupType"} + }, + "GroupNameType":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+" + }, + "GroupType":{ + "type":"structure", + "members":{ + "GroupName":{"shape":"GroupNameType"}, + "UserPoolId":{"shape":"UserPoolIdType"}, + "Description":{"shape":"DescriptionType"}, + "RoleArn":{"shape":"ArnType"}, + "Precedence":{"shape":"PrecedenceType"}, + "LastModifiedDate":{"shape":"DateType"}, + "CreationDate":{"shape":"DateType"} + } + }, "InitiateAuthRequest":{ "type":"structure", "required":[ @@ -2216,6 +2495,22 @@ "PaginationToken":{"shape":"SearchPaginationTokenType"} } }, + "ListGroupsRequest":{ + "type":"structure", + "required":["UserPoolId"], + "members":{ + "UserPoolId":{"shape":"UserPoolIdType"}, + "Limit":{"shape":"QueryLimitType"}, + "NextToken":{"shape":"PaginationKey"} + } + }, + "ListGroupsResponse":{ + "type":"structure", + "members":{ + "Groups":{"shape":"GroupListType"}, + "NextToken":{"shape":"PaginationKey"} + } + }, "ListOfStringTypes":{ "type":"list", "member":{"shape":"StringType"} @@ -2270,6 +2565,26 @@ "NextToken":{"shape":"PaginationKeyType"} } }, + "ListUsersInGroupRequest":{ + "type":"structure", + "required":[ + "UserPoolId", + "GroupName" + ], + "members":{ + "UserPoolId":{"shape":"UserPoolIdType"}, + "GroupName":{"shape":"GroupNameType"}, + "Limit":{"shape":"QueryLimitType"}, + "NextToken":{"shape":"PaginationKey"} + } + }, + "ListUsersInGroupResponse":{ + "type":"structure", + "members":{ + "Users":{"shape":"UsersListType"}, + "NextToken":{"shape":"PaginationKey"} + } + }, "ListUsersRequest":{ "type":"structure", "required":["UserPoolId"], @@ -2393,6 +2708,10 @@ "max":2048, "min":0 }, + "PrecedenceType":{ + "type":"integer", + "min":0 + }, "PreconditionNotMetException":{ "type":"structure", "members":{ @@ -2467,9 +2786,18 @@ "members":{ "Name":{"shape":"CustomAttributeNameType"}, "AttributeDataType":{"shape":"AttributeDataType"}, - "DeveloperOnlyAttribute":{"shape":"BooleanType"}, - "Mutable":{"shape":"BooleanType"}, - "Required":{"shape":"BooleanType"}, + "DeveloperOnlyAttribute":{ + "shape":"BooleanType", + "box":true + }, + "Mutable":{ + "shape":"BooleanType", + "box":true + }, + "Required":{ + "shape":"BooleanType", + "box":true + }, "NumberAttributeConstraints":{"shape":"NumberAttributeConstraintsType"}, "StringAttributeConstraints":{"shape":"StringAttributeConstraintsType"} } @@ -2542,6 +2870,7 @@ }, "SmsConfigurationType":{ "type":"structure", + "required":["SnsCallerArn"], "members":{ "SnsCallerArn":{"shape":"ArnType"}, "ExternalId":{"shape":"StringType"} @@ -2652,6 +2981,26 @@ "members":{ } }, + "UpdateGroupRequest":{ + "type":"structure", + "required":[ + "GroupName", + "UserPoolId" + ], + "members":{ + "GroupName":{"shape":"GroupNameType"}, + "UserPoolId":{"shape":"UserPoolIdType"}, + "Description":{"shape":"DescriptionType"}, + "RoleArn":{"shape":"ArnType"}, + "Precedence":{"shape":"PrecedenceType"} + } + }, + "UpdateGroupResponse":{ + "type":"structure", + "members":{ + "Group":{"shape":"GroupType"} + } + }, "UpdateUserAttributesRequest":{ "type":"structure", "required":["UserAttributes"], @@ -2704,6 +3053,7 @@ "DeviceConfiguration":{"shape":"DeviceConfigurationType"}, "EmailConfiguration":{"shape":"EmailConfigurationType"}, "SmsConfiguration":{"shape":"SmsConfigurationType"}, + "UserPoolTags":{"shape":"UserPoolTagsType"}, "AdminCreateUserConfig":{"shape":"AdminCreateUserConfigType"} } }, @@ -2861,6 +3211,18 @@ "PasswordPolicy":{"shape":"PasswordPolicyType"} } }, + "UserPoolTaggingException":{ + "type":"structure", + "members":{ + "message":{"shape":"MessageType"} + }, + "exception":true + }, + "UserPoolTagsType":{ + "type":"map", + "key":{"shape":"StringType"}, + "value":{"shape":"StringType"} + }, "UserPoolType":{ "type":"structure", "members":{ @@ -2883,6 +3245,7 @@ "EstimatedNumberOfUsers":{"shape":"IntegerType"}, "EmailConfiguration":{"shape":"EmailConfigurationType"}, "SmsConfiguration":{"shape":"SmsConfigurationType"}, + "UserPoolTags":{"shape":"UserPoolTagsType"}, "SmsConfigurationFailure":{"shape":"StringType"}, "EmailConfigurationFailure":{"shape":"StringType"}, "AdminCreateUserConfig":{"shape":"AdminCreateUserConfigType"} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-idp/2016-04-18/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-idp/2016-04-18/docs-2.json index dd074c904..4a1f0c438 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-idp/2016-04-18/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-idp/2016-04-18/docs-2.json @@ -3,30 +3,35 @@ "service": "

Using the Amazon Cognito Your User Pools API, you can create a user pool to manage directories and users. You can authenticate a user to obtain tokens related to user identity and access policies.

This API reference provides information about user pools in Amazon Cognito Your User Pools.

For more information, see the Amazon Cognito Documentation.

", "operations": { "AddCustomAttributes": "

Adds additional user attributes to the user pool schema.

", - "AdminConfirmSignUp": "

Confirms user registration as an admin without using a confirmation code. Works on any user.

", + "AdminAddUserToGroup": "

Adds the specified user to the specified group.

Requires developer credentials.

", + "AdminConfirmSignUp": "

Confirms user registration as an admin without using a confirmation code. Works on any user.

Requires developer credentials.

", "AdminCreateUser": "

Creates a new user in the specified user pool and sends a welcome message via email or phone (SMS). This message is based on a template that you configured in your call to CreateUserPool or UpdateUserPool. This template includes your custom sign-up instructions and placeholders for user name and temporary password.

Requires developer credentials.

", - "AdminDeleteUser": "

Deletes a user as an administrator. Works on any user.

", - "AdminDeleteUserAttributes": "

Deletes the user attributes in a user pool as an administrator. Works on any user.

", - "AdminDisableUser": "

Disables the specified user as an administrator. Works on any user.

", - "AdminEnableUser": "

Enables the specified user as an administrator. Works on any user.

", - "AdminForgetDevice": "

Forgets the device, as an administrator.

", - "AdminGetDevice": "

Gets the device, as an administrator.

", - "AdminGetUser": "

Gets the specified user by user name in a user pool as an administrator. Works on any user.

", - "AdminInitiateAuth": "

Initiates the authentication flow, as an administrator.

", - "AdminListDevices": "

Lists devices, as an administrator.

", - "AdminResetUserPassword": "

Resets the specified user's password in a user pool as an administrator. Works on any user.

When a developer calls this API, the current password is invalidated, so it must be changed. If a user tries to sign in after the API is called, the app will get a PasswordResetRequiredException exception back and should direct the user down the flow to reset the password, which is the same as the forgot password flow. In addition, if the user pool has phone verification selected and a verified phone number exists for the user, or if email verification is selected and a verified email exists for the user, calling this API will also result in sending a message to the end user with the code to change their password.

", - "AdminRespondToAuthChallenge": "

Responds to an authentication challenge, as an administrator.

", - "AdminSetUserSettings": "

Sets all the user settings for a specified user name. Works on any user.

", - "AdminUpdateDeviceStatus": "

Updates the device status as an administrator.

", - "AdminUpdateUserAttributes": "

Updates the specified user's attributes, including developer attributes, as an administrator. Works on any user.

", - "AdminUserGlobalSignOut": "

Signs out users from all devices, as an administrator.

", + "AdminDeleteUser": "

Deletes a user as an administrator. Works on any user.

Requires developer credentials.

", + "AdminDeleteUserAttributes": "

Deletes the user attributes in a user pool as an administrator. Works on any user.

Requires developer credentials.

", + "AdminDisableUser": "

Disables the specified user as an administrator. Works on any user.

Requires developer credentials.

", + "AdminEnableUser": "

Enables the specified user as an administrator. Works on any user.

Requires developer credentials.

", + "AdminForgetDevice": "

Forgets the device, as an administrator.

Requires developer credentials.

", + "AdminGetDevice": "

Gets the device, as an administrator.

Requires developer credentials.

", + "AdminGetUser": "

Gets the specified user by user name in a user pool as an administrator. Works on any user.

Requires developer credentials.

", + "AdminInitiateAuth": "

Initiates the authentication flow, as an administrator.

Requires developer credentials.

", + "AdminListDevices": "

Lists devices, as an administrator.

Requires developer credentials.

", + "AdminListGroupsForUser": "

Lists the groups that the user belongs to.

Requires developer credentials.

", + "AdminRemoveUserFromGroup": "

Removes the specified user from the specified group.

Requires developer credentials.

", + "AdminResetUserPassword": "

Resets the specified user's password in a user pool as an administrator. Works on any user.

When a developer calls this API, the current password is invalidated, so it must be changed. If a user tries to sign in after the API is called, the app will get a PasswordResetRequiredException exception back and should direct the user down the flow to reset the password, which is the same as the forgot password flow. In addition, if the user pool has phone verification selected and a verified phone number exists for the user, or if email verification is selected and a verified email exists for the user, calling this API will also result in sending a message to the end user with the code to change their password.

Requires developer credentials.

", + "AdminRespondToAuthChallenge": "

Responds to an authentication challenge, as an administrator.

Requires developer credentials.

", + "AdminSetUserSettings": "

Sets all the user settings for a specified user name. Works on any user.

Requires developer credentials.

", + "AdminUpdateDeviceStatus": "

Updates the device status as an administrator.

Requires developer credentials.

", + "AdminUpdateUserAttributes": "

Updates the specified user's attributes, including developer attributes, as an administrator. Works on any user.

Requires developer credentials.

", + "AdminUserGlobalSignOut": "

Signs out users from all devices, as an administrator.

Requires developer credentials.

", "ChangePassword": "

Changes the password for a specified user in a user pool.

", "ConfirmDevice": "

Confirms tracking of the device. This API call is the call that beings device tracking.

", "ConfirmForgotPassword": "

Allows a user to enter a code provided when they reset their password to update their password.

", "ConfirmSignUp": "

Confirms registration of a user and handles the existing alias from a previous user.

", + "CreateGroup": "

Creates a new group in the specified user pool.

Requires developer credentials.

", "CreateUserImportJob": "

Creates the user import job.

", "CreateUserPool": "

Creates a new Amazon Cognito user pool and sets the password policy for the pool.

", "CreateUserPoolClient": "

Creates the user pool client.

", + "DeleteGroup": "

Deletes a group. Currently only groups with no members can be deleted.

Requires developer credentials.

", "DeleteUser": "

Allows a user to delete one's self.

", "DeleteUserAttributes": "

Deletes the attributes for a user.

", "DeleteUserPool": "

Deletes the specified Amazon Cognito user pool.

", @@ -38,15 +43,18 @@ "ForgotPassword": "

Retrieves the password for the specified client ID or username.

", "GetCSVHeader": "

Gets the header information for the .csv file to be used as input for the user import job.

", "GetDevice": "

Gets the device.

", + "GetGroup": "

Gets a group.

Requires developer credentials.

", "GetUser": "

Gets the user attributes and metadata for a user.

", "GetUserAttributeVerificationCode": "

Gets the user attribute verification code for the specified attribute name.

", "GlobalSignOut": "

Signs out users from all devices.

", "InitiateAuth": "

Initiates the authentication flow.

", "ListDevices": "

Lists the devices.

", + "ListGroups": "

Lists the groups associated with a user pool.

Requires developer credentials.

", "ListUserImportJobs": "

Lists the user import jobs.

", "ListUserPoolClients": "

Lists the clients that have been created for the specified user pool.

", "ListUserPools": "

Lists the user pools associated with an AWS account.

", "ListUsers": "

Lists the users in the Amazon Cognito user pool.

", + "ListUsersInGroup": "

Lists the users in the specified group.

Requires developer credentials.

", "ResendConfirmationCode": "

Resends the confirmation (for confirmation of registration) to a specific user in the user pool.

", "RespondToAuthChallenge": "

Responds to the authentication challenge.

", "SetUserSettings": "

Sets the user settings like multi-factor authentication (MFA). If MFA is to be removed for a particular attribute pass the attribute with code delivery as null. If null list is passed, all MFA options are removed.

", @@ -54,6 +62,7 @@ "StartUserImportJob": "

Starts the user import.

", "StopUserImportJob": "

Stops the user import job.

", "UpdateDeviceStatus": "

Updates the device status.

", + "UpdateGroup": "

Updates the specified group with the specified attributes.

Requires developer credentials.

", "UpdateUserAttributes": "

Allows a user to update a specific attribute (one at a time).

", "UpdateUserPool": "

Updates the specified user pool with the specified attributes.

", "UpdateUserPoolClient": "

Allows the developer to update the specified user pool client and password policy.

", @@ -70,6 +79,11 @@ "refs": { } }, + "AdminAddUserToGroupRequest": { + "base": null, + "refs": { + } + }, "AdminConfirmSignUpRequest": { "base": "

Represents the request to confirm user registration.

", "refs": { @@ -101,7 +115,7 @@ "AdminCreateUserUnusedAccountValidityDaysType": { "base": null, "refs": { - "AdminCreateUserConfigType$UnusedAccountValidityDays": "

The user account expiration limit, in days, after which the account is no longer usable. To reset the account after that time limit, you must call AdminCreateUser again, specifying \"RESEND\" for the MessageAction parameter.

" + "AdminCreateUserConfigType$UnusedAccountValidityDays": "

The user account expiration limit, in days, after which the account is no longer usable. To reset the account after that time limit, you must call AdminCreateUser again, specifying \"RESEND\" for the MessageAction parameter. The default value for this paameter is 7.

" } }, "AdminDeleteUserAttributesRequest": { @@ -184,6 +198,21 @@ "refs": { } }, + "AdminListGroupsForUserRequest": { + "base": null, + "refs": { + } + }, + "AdminListGroupsForUserResponse": { + "base": null, + "refs": { + } + }, + "AdminRemoveUserFromGroupRequest": { + "base": null, + "refs": { + } + }, "AdminResetUserPasswordRequest": { "base": "

Represents the request to reset a user's password as an administrator.

", "refs": { @@ -265,8 +294,10 @@ "ArnType": { "base": null, "refs": { + "CreateGroupRequest$RoleArn": "

The role ARN for the group.

", "CreateUserImportJobRequest$CloudWatchLogsRoleArn": "

The role ARN for the Amazon CloudWatch Logging role for the user import job.

", "EmailConfigurationType$SourceArn": "

The Amazon Resource Name (ARN) of the email source.

", + "GroupType$RoleArn": "

The role ARN for the group.

", "LambdaConfigType$PreSignUp": "

A pre-registration AWS Lambda trigger.

", "LambdaConfigType$CustomMessage": "

A custom Message AWS Lambda trigger.

", "LambdaConfigType$PostConfirmation": "

A post-confirmation AWS Lambda trigger.

", @@ -276,6 +307,7 @@ "LambdaConfigType$CreateAuthChallenge": "

Creates an authentication challenge.

", "LambdaConfigType$VerifyAuthChallengeResponse": "

Verifies the authentication challenge response.

", "SmsConfigurationType$SnsCallerArn": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) caller.

", + "UpdateGroupRequest$RoleArn": "

The new role ARN for the group. This is used for setting the cognito:roles and cognito:preferred_role claims in the token.

", "UserImportJobType$CloudWatchLogsRoleArn": "

The role ARN for the Amazon CloudWatch Logging role for the user import job. For more information, see \"Creating the CloudWatch Logs IAM Role\" in the Amazon Cognito Developer Guide.

" } }, @@ -348,10 +380,10 @@ "AuthenticationResultType": { "base": "

The result type of the authentication result.

", "refs": { - "AdminInitiateAuthResponse$AuthenticationResult": null, - "AdminRespondToAuthChallengeResponse$AuthenticationResult": null, - "InitiateAuthResponse$AuthenticationResult": null, - "RespondToAuthChallengeResponse$AuthenticationResult": null + "AdminInitiateAuthResponse$AuthenticationResult": "

The result of the authentication response.

", + "AdminRespondToAuthChallengeResponse$AuthenticationResult": "

The result returned by the server in response to the authentication request.

", + "InitiateAuthResponse$AuthenticationResult": "

The result returned by the server in response to the request to initiate authentication.

", + "RespondToAuthChallengeResponse$AuthenticationResult": "

The result returned by the server in response to the request to respond to the authentication challenge.

" } }, "BooleanType": { @@ -478,10 +510,10 @@ "base": "

The type of code delivery details being returned from the server.

", "refs": { "CodeDeliveryDetailsListType$member": null, - "ForgotPasswordResponse$CodeDeliveryDetails": null, - "GetUserAttributeVerificationCodeResponse$CodeDeliveryDetails": "

The code delivery details returned by the server response to get the user attribute verification code.

", - "ResendConfirmationCodeResponse$CodeDeliveryDetails": null, - "SignUpResponse$CodeDeliveryDetails": null + "ForgotPasswordResponse$CodeDeliveryDetails": "

The code delivery details returned by the server in response to the request to reset a password.

", + "GetUserAttributeVerificationCodeResponse$CodeDeliveryDetails": "

The code delivery details returned by the server in response to the request to get the user attribute verification code.

", + "ResendConfirmationCodeResponse$CodeDeliveryDetails": "

The code delivery details returned by the server in response to the request to resend the confirmation code.

", + "SignUpResponse$CodeDeliveryDetails": "

The code delivery details returned by the server response to the user registration request.

" } }, "CodeDeliveryFailureException": { @@ -543,6 +575,16 @@ "VerifyUserAttributeRequest$Code": "

The verification code in the request to verify user attributes.

" } }, + "CreateGroupRequest": { + "base": null, + "refs": { + } + }, + "CreateGroupResponse": { + "base": null, + "refs": { + } + }, "CreateUserImportJobRequest": { "base": "

Represents the request to create the user import job.

", "refs": { @@ -593,6 +635,8 @@ "DeviceType$DeviceCreateDate": "

The creation date of the device.

", "DeviceType$DeviceLastModifiedDate": "

The last modified date of the device.

", "DeviceType$DeviceLastAuthenticatedDate": "

The date in which the device was last authenticated.

", + "GroupType$LastModifiedDate": "

The date the group was last modified.

", + "GroupType$CreationDate": "

The date the group was created.

", "UserImportJobType$CreationDate": "

The date when the user import job was created.

", "UserImportJobType$StartDate": "

The date when the user import job was started.

", "UserImportJobType$CompletionDate": "

The date when the user imoprt job was completed.

", @@ -606,6 +650,11 @@ "UserType$UserLastModifiedDate": "

The last modified date of the user.

" } }, + "DeleteGroupRequest": { + "base": null, + "refs": { + } + }, "DeleteUserAttributesRequest": { "base": "

Represents the request to delete user attributes.

", "refs": { @@ -675,6 +724,14 @@ "refs": { } }, + "DescriptionType": { + "base": null, + "refs": { + "CreateGroupRequest$Description": "

A string containing the description of the group.

", + "GroupType$Description": "

A string containing the description of the group.

", + "UpdateGroupRequest$Description": "

A string containing the new description of the group.

" + } + }, "DeviceConfigurationType": { "base": "

The type of configuration for the user pool's device tracking.

", "refs": { @@ -830,6 +887,16 @@ "refs": { } }, + "GetGroupRequest": { + "base": null, + "refs": { + } + }, + "GetGroupResponse": { + "base": null, + "refs": { + } + }, "GetUserAttributeVerificationCodeRequest": { "base": "

Represents the request to get user attribute verification.

", "refs": { @@ -860,6 +927,40 @@ "refs": { } }, + "GroupExistsException": { + "base": "

This exception is thrown when Amazon Cognito encounters a group that already exists in the user pool.

", + "refs": { + } + }, + "GroupListType": { + "base": null, + "refs": { + "AdminListGroupsForUserResponse$Groups": "

The groups that the user belongs to.

", + "ListGroupsResponse$Groups": "

The group objects for the groups.

" + } + }, + "GroupNameType": { + "base": null, + "refs": { + "AdminAddUserToGroupRequest$GroupName": "

The group name.

", + "AdminRemoveUserFromGroupRequest$GroupName": "

The group name.

", + "CreateGroupRequest$GroupName": "

The name of the group. Must be unique.

", + "DeleteGroupRequest$GroupName": "

The name of the group.

", + "GetGroupRequest$GroupName": "

The name of the group.

", + "GroupType$GroupName": "

The name of the group.

", + "ListUsersInGroupRequest$GroupName": "

The name of the group.

", + "UpdateGroupRequest$GroupName": "

The name of the group.

" + } + }, + "GroupType": { + "base": "

The group type.

", + "refs": { + "CreateGroupResponse$Group": "

The group object for the group.

", + "GetGroupResponse$Group": "

The group object for the group.

", + "GroupListType$member": null, + "UpdateGroupResponse$Group": "

The group object for the group.

" + } + }, "InitiateAuthRequest": { "base": "

Initiates the authentication request.

", "refs": { @@ -941,6 +1042,16 @@ "refs": { } }, + "ListGroupsRequest": { + "base": null, + "refs": { + } + }, + "ListGroupsResponse": { + "base": null, + "refs": { + } + }, "ListOfStringTypes": { "base": null, "refs": { @@ -977,6 +1088,16 @@ "refs": { } }, + "ListUsersInGroupRequest": { + "base": null, + "refs": { + } + }, + "ListUsersInGroupResponse": { + "base": null, + "refs": { + } + }, "ListUsersRequest": { "base": "

Represents the request to list users.

", "refs": { @@ -1036,6 +1157,7 @@ "CodeMismatchException$message": "

The message provided when the code mismatch exception is thrown.

", "ConcurrentModificationException$message": "

The message provided when the concurrent exception is thrown.

", "ExpiredCodeException$message": "

The message returned when the expired code exception is thrown.

", + "GroupExistsException$message": null, "InternalErrorException$message": "

The message returned when Amazon Cognito throws an internal error exception.

", "InvalidEmailRoleAccessPolicyException$message": "

The message returned when you have an unverified email address or the identity policy is not set on an email address that Amazon Cognito can access.

", "InvalidLambdaResponseException$message": "

The message returned when the Amazon Cognito service throws an invalid AWS Lambda response exception.

", @@ -1058,6 +1180,7 @@ "UserLambdaValidationException$message": "

The message returned when the Amazon Cognito service returns a user validation exception with the AWS Lambda service.

", "UserNotConfirmedException$message": "

The message returned when a user is not confirmed successfully.

", "UserNotFoundException$message": "

The message returned when a user is not found.

", + "UserPoolTaggingException$message": null, "UsernameExistsException$message": "

The message returned when Amazon Cognito throws a user name exists exception.

" } }, @@ -1081,8 +1204,14 @@ "PaginationKey": { "base": null, "refs": { + "AdminListGroupsForUserRequest$NextToken": "

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

", + "AdminListGroupsForUserResponse$NextToken": "

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

", + "ListGroupsRequest$NextToken": "

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

", + "ListGroupsResponse$NextToken": "

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

", "ListUserPoolClientsRequest$NextToken": "

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

", - "ListUserPoolClientsResponse$NextToken": "

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

" + "ListUserPoolClientsResponse$NextToken": "

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

", + "ListUsersInGroupRequest$NextToken": "

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

", + "ListUsersInGroupResponse$NextToken": "

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

" } }, "PaginationKeyType": { @@ -1134,6 +1263,14 @@ "UserImportJobType$PreSignedUrl": "

The pre-signed URL to be used to upload the .csv file.

" } }, + "PrecedenceType": { + "base": null, + "refs": { + "CreateGroupRequest$Precedence": "

A nonnegative integer value that specifies the precedence of this group relative to the other groups that a user can belong to in the user pool. Zero is the highest precedence value. Groups with lower Precedence values take precedence over groups with higher or null Precedence values. If a user belongs to two or more groups, it is the group with the lowest precedence value whose role ARN will be used in the cognito:roles and cognito:preferred_role claims in the user's tokens.

Two groups can have the same Precedence value. If this happens, neither group takes precedence over the other. If two groups with the same Precedence have the same role ARN, that role is used in the cognito:preferred_role claim in tokens for users in each group. If the two groups have different role ARNs, the cognito:preferred_role claim is not set in users' tokens.

The default Precedence value is null.

", + "GroupType$Precedence": "

A nonnegative integer value that specifies the precedence of this group relative to the other groups that a user can belong to in the user pool. If a user belongs to two or more groups, it is the group with the highest precedence whose role ARN will be used in the cognito:roles and cognito:preferred_role claims in the user's tokens. Groups with higher Precedence values take precedence over groups with lower Precedence values or with null Precedence values.

Two groups can have the same Precedence value. If this happens, neither group takes precedence over the other. If two groups with the same Precedence have the same role ARN, that role is used in the cognito:preferred_role claim in tokens for users in each group. If the two groups have different role ARNs, the cognito:preferred_role claim is not set in users' tokens.

The default Precedence value is null.

", + "UpdateGroupRequest$Precedence": "

The new precedence value for the group. For more information about this parameter, see CreateGroupRequest.

" + } + }, "PreconditionNotMetException": { "base": "

This exception is thrown when a precondition is not met.

", "refs": { @@ -1149,16 +1286,19 @@ "base": null, "refs": { "AdminListDevicesRequest$Limit": "

The limit of the devices request.

", + "AdminListGroupsForUserRequest$Limit": "

The limit of the request to list groups.

", "ListDevicesRequest$Limit": "

The limit of the device request.

", + "ListGroupsRequest$Limit": "

The limit of the request to list groups.

", + "ListUsersInGroupRequest$Limit": "

The limit of the request to list users.

", "ListUsersRequest$Limit": "

The limit of the request to list users.

" } }, "RefreshTokenValidityType": { "base": null, "refs": { - "CreateUserPoolClientRequest$RefreshTokenValidity": "

Refreshes the token validity.

", - "UpdateUserPoolClientRequest$RefreshTokenValidity": "

The validity of the refresh token.

", - "UserPoolClientType$RefreshTokenValidity": "

The validity of the refresh token.

" + "CreateUserPoolClientRequest$RefreshTokenValidity": "

The validity of the refresh token, in days.

", + "UpdateUserPoolClientRequest$RefreshTokenValidity": "

The validity of the refresh token, in days.

", + "UserPoolClientType$RefreshTokenValidity": "

The validity of the refresh token, in days.

" } }, "ResendConfirmationCodeRequest": { @@ -1167,7 +1307,7 @@ } }, "ResendConfirmationCodeResponse": { - "base": "

The response from the server when the Amazon Cognito service makes the request to resend a confirmation code.

", + "base": "

The response from the server when the Amazon Cognito Your User Pools service makes the request to resend a confirmation code.

", "refs": { } }, @@ -1196,6 +1336,7 @@ "SchemaAttributesListType": { "base": null, "refs": { + "CreateUserPoolRequest$Schema": "

An array of schema attributes for the new user pool. These attributes can be standard or custom attributes.

", "UserPoolType$SchemaAttributes": "

A container with the schema attributes of a user pool.

" } }, @@ -1332,6 +1473,8 @@ "SmsConfigurationType$ExternalId": "

The external ID.

", "StringAttributeConstraintsType$MinLength": "

The minimum length of an attribute value of the string type.

", "StringAttributeConstraintsType$MaxLength": "

The maximum length of an attribute value of the string type.

", + "UserPoolTagsType$key": null, + "UserPoolTagsType$value": null, "UserPoolType$SmsConfigurationFailure": "

The reason why the SMS configuration cannot send the message(s) to your users.

", "UserPoolType$EmailConfigurationFailure": "

The reason why the email configuration cannot send the messages to your users.

" } @@ -1388,6 +1531,16 @@ "refs": { } }, + "UpdateGroupRequest": { + "base": null, + "refs": { + } + }, + "UpdateGroupResponse": { + "base": null, + "refs": { + } + }, "UpdateUserAttributesRequest": { "base": "

Represents the request to update user attributes.

", "refs": { @@ -1483,7 +1636,7 @@ } }, "UserPoolClientDescription": { - "base": "

The description of the user poool client.

", + "base": "

The description of the user pool client.

", "refs": { "UserPoolClientListType$member": null } @@ -1512,6 +1665,7 @@ "base": null, "refs": { "AddCustomAttributesRequest$UserPoolId": "

The user pool ID for the user pool where you want to add custom attributes.

", + "AdminAddUserToGroupRequest$UserPoolId": "

The user pool ID for the user pool.

", "AdminConfirmSignUpRequest$UserPoolId": "

The user pool ID for which you want to confirm user registration.

", "AdminCreateUserRequest$UserPoolId": "

The user pool ID for the user pool where the user will be created.

", "AdminDeleteUserAttributesRequest$UserPoolId": "

The user pool ID for the user pool where you want to delete user attributes.

", @@ -1523,14 +1677,18 @@ "AdminGetUserRequest$UserPoolId": "

The user pool ID for the user pool where you want to get information about the user.

", "AdminInitiateAuthRequest$UserPoolId": "

The ID of the Amazon Cognito user pool.

", "AdminListDevicesRequest$UserPoolId": "

The user pool ID.

", + "AdminListGroupsForUserRequest$UserPoolId": "

The user pool ID for the user pool.

", + "AdminRemoveUserFromGroupRequest$UserPoolId": "

The user pool ID for the user pool.

", "AdminResetUserPasswordRequest$UserPoolId": "

The user pool ID for the user pool where you want to reset the user's password.

", "AdminRespondToAuthChallengeRequest$UserPoolId": "

The ID of the Amazon Cognito user pool.

", "AdminSetUserSettingsRequest$UserPoolId": "

The user pool ID for the user pool where you want to set the user's settings, such as MFA options.

", "AdminUpdateDeviceStatusRequest$UserPoolId": "

The user pool ID>

", "AdminUpdateUserAttributesRequest$UserPoolId": "

The user pool ID for the user pool where you want to update user attributes.

", "AdminUserGlobalSignOutRequest$UserPoolId": "

The user pool ID.

", + "CreateGroupRequest$UserPoolId": "

The user pool ID for the user pool.

", "CreateUserImportJobRequest$UserPoolId": "

The user pool ID for the user pool that the users are being imported into.

", "CreateUserPoolClientRequest$UserPoolId": "

The user pool ID for the user pool where you want to create a user pool client.

", + "DeleteGroupRequest$UserPoolId": "

The user pool ID for the user pool.

", "DeleteUserPoolClientRequest$UserPoolId": "

The user pool ID for the user pool where you want to delete the client.

", "DeleteUserPoolRequest$UserPoolId": "

The user pool ID for the user pool you want to delete.

", "DescribeUserImportJobRequest$UserPoolId": "

The user pool ID for the user pool that the users are being imported into.

", @@ -1538,11 +1696,16 @@ "DescribeUserPoolRequest$UserPoolId": "

The user pool ID for the user pool you want to describe.

", "GetCSVHeaderRequest$UserPoolId": "

The user pool ID for the user pool that the users are to be imported into.

", "GetCSVHeaderResponse$UserPoolId": "

The user pool ID for the user pool that the users are to be imported into.

", + "GetGroupRequest$UserPoolId": "

The user pool ID for the user pool.

", + "GroupType$UserPoolId": "

The user pool ID for the user pool.

", + "ListGroupsRequest$UserPoolId": "

The user pool ID for the user pool.

", "ListUserImportJobsRequest$UserPoolId": "

The user pool ID for the user pool that the users are being imported into.

", "ListUserPoolClientsRequest$UserPoolId": "

The user pool ID for the user pool where you want to list user pool clients.

", + "ListUsersInGroupRequest$UserPoolId": "

The user pool ID for the user pool.

", "ListUsersRequest$UserPoolId": "

The user pool ID for which you want to list users.

", "StartUserImportJobRequest$UserPoolId": "

The user pool ID for the user pool that the users are being imported into.

", "StopUserImportJobRequest$UserPoolId": "

The user pool ID for the user pool that the users are being imported into.

", + "UpdateGroupRequest$UserPoolId": "

The user pool ID for the user pool.

", "UpdateUserPoolClientRequest$UserPoolId": "

The user pool ID for the user pool where you want to update the user pool client.

", "UpdateUserPoolRequest$UserPoolId": "

The user pool ID for the user pool you want to update.

", "UserImportJobType$UserPoolId": "

The user pool ID for the user pool that the users are being imported into.

", @@ -1582,6 +1745,19 @@ "UserPoolType$Policies": "

A container describing the policies associated with a user pool.

" } }, + "UserPoolTaggingException": { + "base": "

This exception gets thrown when a user pool tag cannot be set or updated.

", + "refs": { + } + }, + "UserPoolTagsType": { + "base": null, + "refs": { + "CreateUserPoolRequest$UserPoolTags": "

The cost allocation tags for the user pool. For more information, see Adding Cost Allocation Tags to Your User Pool

", + "UpdateUserPoolRequest$UserPoolTags": "

The cost allocation tags for the user pool. For more information, see Adding Cost Allocation Tags to Your User Pool

", + "UserPoolType$UserPoolTags": "

The cost allocation tags for the user pool. For more information, see Adding Cost Allocation Tags to Your User Pool

" + } + }, "UserPoolType": { "base": "

A container with information about the user pool type.

", "refs": { @@ -1611,6 +1787,7 @@ "UsernameType": { "base": null, "refs": { + "AdminAddUserToGroupRequest$Username": "

The username for the user.

", "AdminConfirmSignUpRequest$Username": "

The user name for which you want to confirm user registration.

", "AdminCreateUserRequest$Username": "

The username for the user. Must be unique within the user pool. Must be a UTF-8 string between 1 and 128 characters. After the user is created, the username cannot be changed.

", "AdminDeleteUserAttributesRequest$Username": "

The user name of the user from which you would like to delete attributes.

", @@ -1622,6 +1799,8 @@ "AdminGetUserRequest$Username": "

The user name of the user you wish to retrieve.

", "AdminGetUserResponse$Username": "

The user name of the user about whom you are receiving information.

", "AdminListDevicesRequest$Username": "

The user name.

", + "AdminListGroupsForUserRequest$Username": "

The username for the user.

", + "AdminRemoveUserFromGroupRequest$Username": "

The username for the user.

", "AdminResetUserPasswordRequest$Username": "

The user name of the user whose password you wish to reset.

", "AdminSetUserSettingsRequest$Username": "

The user name of the user for whom you wish to set user settings.

", "AdminUpdateDeviceStatusRequest$Username": "

The user name.

", @@ -1629,7 +1808,7 @@ "AdminUserGlobalSignOutRequest$Username": "

The user name.

", "ConfirmForgotPasswordRequest$Username": "

The user name of the user for whom you want to enter a code to retrieve a forgotten password.

", "ConfirmSignUpRequest$Username": "

The user name of the user whose registration you wish to confirm.

", - "ForgotPasswordRequest$Username": "

The user name of the user for whom you want to enter a code to retrieve a forgotten password.

", + "ForgotPasswordRequest$Username": "

The user name of the user for whom you want to enter a code to reset a forgotten password.

", "GetUserResponse$Username": "

The user name of the user you wish to retrieve from the get user request.

", "ResendConfirmationCodeRequest$Username": "

The user name of the user to whom you wish to resend a confirmation code.

", "SignUpRequest$Username": "

The user name of the user you wish to register.

", @@ -1639,6 +1818,7 @@ "UsersListType": { "base": null, "refs": { + "ListUsersInGroupResponse$Users": "

The users returned in the request to list users.

", "ListUsersResponse$Users": "

The users returned in the request to list users.

" } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-sync/2014-06-30/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-sync/2014-06-30/api-2.json index 3f1b7122d..ca5155335 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-sync/2014-06-30/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-sync/2014-06-30/api-2.json @@ -6,7 +6,8 @@ "jsonVersion":"1.1", "serviceFullName":"Amazon Cognito Sync", "signatureVersion":"v4", - "protocol":"rest-json" + "protocol":"rest-json", + "uid":"cognito-sync-2014-06-30" }, "operations":{ "BulkPublish":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/api-2.json index 0ed24d703..6849549e6 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/api-2.json @@ -8,7 +8,8 @@ "serviceAbbreviation":"Config Service", "serviceFullName":"AWS Config", "signatureVersion":"v4", - "targetPrefix":"StarlingDoveService" + "targetPrefix":"StarlingDoveService", + "uid":"config-2014-11-12" }, "operations":{ "DeleteConfigRule":{ @@ -83,7 +84,8 @@ "output":{"shape":"DescribeComplianceByConfigRuleResponse"}, "errors":[ {"shape":"InvalidParameterValueException"}, - {"shape":"NoSuchConfigRuleException"} + {"shape":"NoSuchConfigRuleException"}, + {"shape":"InvalidNextTokenException"} ] }, "DescribeComplianceByResource":{ @@ -108,7 +110,9 @@ "input":{"shape":"DescribeConfigRuleEvaluationStatusRequest"}, "output":{"shape":"DescribeConfigRuleEvaluationStatusResponse"}, "errors":[ - {"shape":"NoSuchConfigRuleException"} + {"shape":"NoSuchConfigRuleException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"InvalidNextTokenException"} ] }, "DescribeConfigRules":{ @@ -120,7 +124,8 @@ "input":{"shape":"DescribeConfigRulesRequest"}, "output":{"shape":"DescribeConfigRulesResponse"}, "errors":[ - {"shape":"NoSuchConfigRuleException"} + {"shape":"NoSuchConfigRuleException"}, + {"shape":"InvalidNextTokenException"} ] }, "DescribeConfigurationRecorderStatus":{ @@ -465,7 +470,7 @@ "Description":{"shape":"EmptiableStringWithCharLimit256"}, "Scope":{"shape":"Scope"}, "Source":{"shape":"Source"}, - "InputParameters":{"shape":"StringWithCharLimit256"}, + "InputParameters":{"shape":"StringWithCharLimit1024"}, "MaximumExecutionFrequency":{"shape":"MaximumExecutionFrequency"}, "ConfigRuleState":{"shape":"ConfigRuleState"} } @@ -718,13 +723,16 @@ "DescribeConfigRuleEvaluationStatusRequest":{ "type":"structure", "members":{ - "ConfigRuleNames":{"shape":"ConfigRuleNames"} + "ConfigRuleNames":{"shape":"ConfigRuleNames"}, + "NextToken":{"shape":"String"}, + "Limit":{"shape":"RuleLimit"} } }, "DescribeConfigRuleEvaluationStatusResponse":{ "type":"structure", "members":{ - "ConfigRulesEvaluationStatus":{"shape":"ConfigRuleEvaluationStatusList"} + "ConfigRulesEvaluationStatus":{"shape":"ConfigRuleEvaluationStatusList"}, + "NextToken":{"shape":"String"} } }, "DescribeConfigRulesRequest":{ @@ -1079,7 +1087,8 @@ "enum":[ "ConfigurationItemChangeNotification", "ConfigurationSnapshotDeliveryCompleted", - "ScheduledNotification" + "ScheduledNotification", + "OversizedConfigurationItemChangeNotification" ] }, "Name":{"type":"string"}, @@ -1160,7 +1169,8 @@ "required":["ResultToken"], "members":{ "Evaluations":{"shape":"Evaluations"}, - "ResultToken":{"shape":"String"} + "ResultToken":{"shape":"String"}, + "TestMode":{"shape":"Boolean"} } }, "PutEvaluationsResponse":{ @@ -1277,7 +1287,14 @@ "AWS::RDS::DBSnapshot", "AWS::RDS::EventSubscription", "AWS::ElasticLoadBalancingV2::LoadBalancer", - "AWS::S3::Bucket" + "AWS::S3::Bucket", + "AWS::SSM::ManagedInstanceInventory", + "AWS::Redshift::Cluster", + "AWS::Redshift::ClusterSnapshot", + "AWS::Redshift::ClusterParameterGroup", + "AWS::Redshift::ClusterSecurityGroup", + "AWS::Redshift::ClusterSubnetGroup", + "AWS::Redshift::EventSubscription" ] }, "ResourceTypeList":{ @@ -1290,6 +1307,11 @@ "max":20, "min":0 }, + "RuleLimit":{ + "type":"integer", + "max":50, + "min":0 + }, "Scope":{ "type":"structure", "members":{ @@ -1301,6 +1323,10 @@ }, "Source":{ "type":"structure", + "required":[ + "Owner", + "SourceIdentifier" + ], "members":{ "Owner":{"shape":"Owner"}, "SourceIdentifier":{"shape":"StringWithCharLimit256"}, @@ -1347,6 +1373,11 @@ } }, "String":{"type":"string"}, + "StringWithCharLimit1024":{ + "type":"string", + "max":1024, + "min":1 + }, "StringWithCharLimit128":{ "type":"string", "max":128, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/docs-2.json index e288231ad..2c0a7afb6 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/docs-2.json @@ -21,11 +21,11 @@ "GetComplianceSummaryByResourceType": "

Returns the number of resources that are compliant and the number that are noncompliant. You can specify one or more resource types to get these numbers for each resource type. The maximum number returned is 100.

", "GetResourceConfigHistory": "

Returns a list of configuration items for the specified resource. The list contains details about each state of the resource during the specified time interval.

The response is paginated, and by default, AWS Config returns a limit of 10 configuration items per page. You can customize this number with the limit parameter. The response includes a nextToken string, and to get the next page of results, run the request again and enter this string for the nextToken parameter.

Each call to the API is limited to span a duration of seven days. It is likely that the number of records returned is smaller than the specified limit. In such cases, you can make another call, using the nextToken.

", "ListDiscoveredResources": "

Accepts a resource type and returns a list of resource identifiers for the resources of that type. A resource identifier includes the resource type, ID, and (if available) the custom resource name. The results consist of resources that AWS Config has discovered, including those that AWS Config is not currently recording. You can narrow the results to include only resources that have specific resource IDs or a resource name.

You can specify either resource IDs or a resource name but not both in the same request.

The response is paginated, and by default AWS Config lists 100 resource identifiers on each page. You can customize this number with the limit parameter. The response includes a nextToken string, and to get the next page of results, run the request again and enter this string for the nextToken parameter.

", - "PutConfigRule": "

Adds or updates an AWS Config rule for evaluating whether your AWS resources comply with your desired configurations.

You can use this action for custom Config rules and AWS managed Config rules. A custom Config rule is a rule that you develop and maintain. An AWS managed Config rule is a customizable, predefined rule that AWS Config provides.

If you are adding a new custom Config rule, you must first create the AWS Lambda function that the rule invokes to evaluate your resources. When you use the PutConfigRule action to add the rule to AWS Config, you must specify the Amazon Resource Name (ARN) that AWS Lambda assigns to the function. Specify the ARN for the SourceIdentifier key. This key is part of the Source object, which is part of the ConfigRule object.

If you are adding a new AWS managed Config rule, specify the rule's identifier for the SourceIdentifier key. To reference AWS managed Config rule identifiers, see Using AWS Managed Config Rules.

For any new rule that you add, specify the ConfigRuleName in the ConfigRule object. Do not specify the ConfigRuleArn or the ConfigRuleId. These values are generated by AWS Config for new rules.

If you are updating a rule that you added previously, you can specify the rule by ConfigRuleName, ConfigRuleId, or ConfigRuleArn in the ConfigRule data type that you use in this request.

The maximum number of rules that AWS Config supports is 25.

For more information about developing and using AWS Config rules, see Evaluating AWS Resource Configurations with AWS Config in the AWS Config Developer Guide.

", + "PutConfigRule": "

Adds or updates an AWS Config rule for evaluating whether your AWS resources comply with your desired configurations.

You can use this action for custom Config rules and AWS managed Config rules. A custom Config rule is a rule that you develop and maintain. An AWS managed Config rule is a customizable, predefined rule that AWS Config provides.

If you are adding a new custom Config rule, you must first create the AWS Lambda function that the rule invokes to evaluate your resources. When you use the PutConfigRule action to add the rule to AWS Config, you must specify the Amazon Resource Name (ARN) that AWS Lambda assigns to the function. Specify the ARN for the SourceIdentifier key. This key is part of the Source object, which is part of the ConfigRule object.

If you are adding a new AWS managed Config rule, specify the rule's identifier for the SourceIdentifier key. To reference AWS managed Config rule identifiers, see Using AWS Managed Config Rules.

For any new rule that you add, specify the ConfigRuleName in the ConfigRule object. Do not specify the ConfigRuleArn or the ConfigRuleId. These values are generated by AWS Config for new rules.

If you are updating a rule that you added previously, you can specify the rule by ConfigRuleName, ConfigRuleId, or ConfigRuleArn in the ConfigRule data type that you use in this request.

The maximum number of rules that AWS Config supports is 50.

For more information about requesting a rule limit increase, see AWS Config Limits in the AWS General Reference Guide.

For more information about developing and using AWS Config rules, see Evaluating AWS Resource Configurations with AWS Config in the AWS Config Developer Guide.

", "PutConfigurationRecorder": "

Creates a new configuration recorder to record the selected resource configurations.

You can use this action to change the role roleARN and/or the recordingGroup of an existing recorder. To change the role, call the action on the existing configuration recorder and specify a role.

Currently, you can specify only one configuration recorder per region in your account.

If ConfigurationRecorder does not have the recordingGroup parameter specified, the default is to record all supported resource types.

", "PutDeliveryChannel": "

Creates a delivery channel object to deliver configuration information to an Amazon S3 bucket and Amazon SNS topic.

Before you can create a delivery channel, you must create a configuration recorder.

You can use this action to change the Amazon S3 bucket or an Amazon SNS topic of the existing delivery channel. To change the Amazon S3 bucket or an Amazon SNS topic, call this action and specify the changed values for the S3 bucket and the SNS topic. If you specify a different value for either the S3 bucket or the SNS topic, this action will keep the existing value for the parameter that is not changed.

You can have only one delivery channel per region in your account.

", "PutEvaluations": "

Used by an AWS Lambda function to deliver evaluation results to AWS Config. This action is required in every AWS Lambda function that is invoked by an AWS Config rule.

", - "StartConfigRulesEvaluation": "

Evaluates your resources against the specified Config rules. You can specify up to 25 Config rules per request.

An existing StartConfigRulesEvaluation call must complete for the specified rules before you can call the API again. If you chose to have AWS Config stream to an Amazon SNS topic, you will receive a ConfigRuleEvaluationStarted notification when the evaluation starts.

You don't need to call the StartConfigRulesEvaluation API to run an evaluation for a new rule. When you create a new rule, AWS Config automatically evaluates your resources against the rule.

The StartConfigRulesEvaluation API is useful if you want to run on-demand evaluations, such as the following example:

  1. You have a custom rule that evaluates your IAM resources every 24 hours.

  2. You update your Lambda function to add additional conditions to your rule.

  3. Instead of waiting for the next periodic evaluation, you call the StartConfigRulesEvaluation API.

  4. AWS Config invokes your Lambda function and evaluates your IAM resources.

  5. Your custom rule will still run periodic evaluations every 24 hours.

", + "StartConfigRulesEvaluation": "

Runs an on-demand evaluation for the specified Config rules against the last known configuration state of the resources. Use StartConfigRulesEvaluation when you want to test a rule that you updated is working as expected. StartConfigRulesEvaluation does not re-record the latest configuration state for your resources; it re-runs an evaluation against the last known state of your resources.

You can specify up to 25 Config rules per request.

An existing StartConfigRulesEvaluation call must complete for the specified rules before you can call the API again. If you chose to have AWS Config stream to an Amazon SNS topic, you will receive a ConfigRuleEvaluationStarted notification when the evaluation starts.

You don't need to call the StartConfigRulesEvaluation API to run an evaluation for a new rule. When you create a new rule, AWS Config automatically evaluates your resources against the rule.

The StartConfigRulesEvaluation API is useful if you want to run on-demand evaluations, such as the following example:

  1. You have a custom rule that evaluates your IAM resources every 24 hours.

  2. You update your Lambda function to add additional conditions to your rule.

  3. Instead of waiting for the next periodic evaluation, you call the StartConfigRulesEvaluation API.

  4. AWS Config invokes your Lambda function and evaluates your IAM resources.

  5. Your custom rule will still run periodic evaluations every 24 hours.

", "StartConfigurationRecorder": "

Starts recording configurations of the AWS resources you have selected to record in your AWS account.

You must have created at least one delivery channel to successfully start the configuration recorder.

", "StopConfigurationRecorder": "

Stops recording configurations of the AWS resources you have selected to record in your AWS account.

" }, @@ -66,7 +66,8 @@ "ComplianceContributorCount$CapExceeded": "

Indicates whether the maximum count is reached.

", "ConfigRuleEvaluationStatus$FirstEvaluationStarted": "

Indicates whether AWS Config has evaluated your resources against the rule at least once.

  • true - AWS Config has evaluated your AWS resources against the rule at least once.

  • false - AWS Config has not once finished evaluating your AWS resources against the rule.

", "ConfigurationRecorderStatus$recording": "

Specifies whether the recorder is currently recording or not.

", - "ListDiscoveredResourcesRequest$includeDeletedResources": "

Specifies whether AWS Config includes deleted resources in the results. By default, deleted resources are not included.

" + "ListDiscoveredResourcesRequest$includeDeletedResources": "

Specifies whether AWS Config includes deleted resources in the results. By default, deleted resources are not included.

", + "PutEvaluationsRequest$TestMode": "

Use this parameter to specify a test run for PutEvaluations. You can verify whether your AWS Lambda function will deliver evaluation results to AWS Config. No updates occur to your existing evaluations, and evaluation results are not sent to AWS Config.

When TestMode is true, PutEvaluations doesn't require a valid value for the ResultToken parameter, but the value cannot be null.

" } }, "ChannelName": { @@ -136,7 +137,7 @@ } }, "ComplianceSummary": { - "base": "

The number of AWS Config rules or AWS resources that are compliant and noncompliant, up to a maximum.

", + "base": "

The number of AWS Config rules or AWS resources that are compliant and noncompliant.

", "refs": { "ComplianceSummaryByResourceType$ComplianceSummary": "

The number of AWS resources that are compliant or noncompliant, up to a maximum of 100 for each compliance.

", "GetComplianceSummaryByConfigRuleResponse$ComplianceSummary": "

The number of AWS Config rules that are compliant and the number that are noncompliant, up to a maximum of 25 for each.

" @@ -231,7 +232,7 @@ } }, "ConfigurationItem": { - "base": "

A list that contains detailed configurations of a specified resource.

Currently, the list does not contain information about non-AWS components (for example, applications on your Amazon EC2 instances).

", + "base": "

A list that contains detailed configurations of a specified resource.

", "refs": { "ConfigurationItemList$member": null } @@ -612,7 +613,7 @@ } }, "InvalidNextTokenException": { - "base": "

The specified next token is invalid. Specify the nextToken string that was returned in the previous response to get the next page of results.

", + "base": "

The specified next token is invalid. Specify the NextToken string that was returned in the previous response to get the next page of results.

", "refs": { } }, @@ -627,7 +628,7 @@ } }, "InvalidResultTokenException": { - "base": "

The result token is invalid.

", + "base": "

The specified ResultToken is invalid.

", "refs": { } }, @@ -687,7 +688,7 @@ } }, "MaxNumberOfConfigRulesExceededException": { - "base": "

Failed to add the AWS Config rule because the account already contains the maximum number of 25 rules. Consider deleting any deactivated rules before adding new rules.

", + "base": "

Failed to add the AWS Config rule because the account already contains the maximum number of 50 rules. Consider deleting any deactivated rules before adding new rules.

", "refs": { } }, @@ -712,7 +713,7 @@ "MessageType": { "base": null, "refs": { - "SourceDetail$MessageType": "

The type of notification that triggers AWS Config to run an evaluation. You can specify the following notification types:

ConfigurationItemChangeNotification - Triggers an evaluation when AWS Config delivers a configuration item change notification.

ScheduledNotification - Triggers a periodic evaluation at the frequency specified for MaximumExecutionFrequency.

ConfigurationSnapshotDeliveryCompleted - Triggers a periodic evaluation when AWS Config delivers a configuration snapshot.

" + "SourceDetail$MessageType": "

The type of notification that triggers AWS Config to run an evaluation for a rule. You can specify the following notification types:

  • ConfigurationItemChangeNotification - Triggers an evaluation when AWS Config delivers a configuration item as a result of a resource change.

  • OversizedConfigurationItemChangeNotification - Triggers an evaluation when AWS Config delivers an oversized configuration item. AWS Config may generate this notification type when a resource changes and the notification exceeds the maximum size allowed by Amazon SNS.

  • ScheduledNotification - Triggers a periodic evaluation at the frequency specified for MaximumExecutionFrequency.

  • ConfigurationSnapshotDeliveryCompleted - Triggers a periodic evaluation when AWS Config delivers a configuration snapshot.

If you want your custom rule to be triggered by configuration changes, specify both ConfigurationItemChangeNotification and OversizedConfigurationItemChangeNotification.

" } }, "Name": { @@ -724,9 +725,9 @@ "NextToken": { "base": null, "refs": { - "DescribeComplianceByResourceRequest$NextToken": "

The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", + "DescribeComplianceByResourceRequest$NextToken": "

The NextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", "DescribeComplianceByResourceResponse$NextToken": "

The string that you use in a subsequent request to get the next page of results in a paginated response.

", - "GetComplianceDetailsByConfigRuleRequest$NextToken": "

The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", + "GetComplianceDetailsByConfigRuleRequest$NextToken": "

The NextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", "GetComplianceDetailsByConfigRuleResponse$NextToken": "

The string that you use in a subsequent request to get the next page of results in a paginated response.

", "GetResourceConfigHistoryRequest$nextToken": "

The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", "GetResourceConfigHistoryResponse$nextToken": "

The string that you use in a subsequent request to get the next page of results in a paginated response.

", @@ -772,7 +773,7 @@ "OrderingTimestamp": { "base": null, "refs": { - "Evaluation$OrderingTimestamp": "

The time of the event in AWS Config that triggered the evaluation. For event-based evaluations, the time indicates when AWS Config created the configuration item that triggered the evaluation. For periodic evaluations, the time indicates when AWS Config delivered the configuration snapshot that triggered the evaluation.

" + "Evaluation$OrderingTimestamp": "

The time of the event in AWS Config that triggered the evaluation. For event-based evaluations, the time indicates when AWS Config created the configuration item that triggered the evaluation. For periodic evaluations, the time indicates when AWS Config triggered the evaluation at the frequency that you specified (for example, every 24 hours).

" } }, "Owner": { @@ -946,6 +947,12 @@ "GetComplianceSummaryByResourceTypeRequest$ResourceTypes": "

Specify one or more resource types to get the number of resources that are compliant and the number that are noncompliant for each resource type.

For this request, you can specify an AWS resource type such as AWS::EC2::Instance, and you can specify that the resource type is an AWS account by specifying AWS::::Account.

" } }, + "RuleLimit": { + "base": null, + "refs": { + "DescribeConfigRuleEvaluationStatusRequest$Limit": "

The number of rule evaluation results that you want returned.

This parameter is required if the rule limit for your account is more than the default of 50 rules.

For more information about requesting a rule limit increase, see AWS Config Limits in the AWS General Reference Guide.

" + } + }, "Scope": { "base": "

Defines which resources trigger an evaluation for an AWS Config rule. The scope can include one or more resource types, a combination of a tag key and value, or a combination of one resource type and one resource ID. Specify a scope to constrain which resources trigger an evaluation for a rule. Otherwise, evaluations for the rule are triggered when any resource in your recording group changes in configuration.

", "refs": { @@ -1012,16 +1019,24 @@ "DeliveryChannel$s3KeyPrefix": "

The prefix for the specified Amazon S3 bucket.

", "DeliveryChannel$snsTopicARN": "

The Amazon Resource Name (ARN) of the Amazon SNS topic to which AWS Config sends notifications about configuration changes.

If you choose a topic from another account, the topic must have policies that grant access permissions to AWS Config. For more information, see Permissions for the Amazon SNS Topic in the AWS Config Developer Guide.

", "DeliveryChannelStatus$name": "

The name of the delivery channel.

", - "DescribeComplianceByConfigRuleRequest$NextToken": "

The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", + "DescribeComplianceByConfigRuleRequest$NextToken": "

The NextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", "DescribeComplianceByConfigRuleResponse$NextToken": "

The string that you use in a subsequent request to get the next page of results in a paginated response.

", - "DescribeConfigRulesRequest$NextToken": "

The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", + "DescribeConfigRuleEvaluationStatusRequest$NextToken": "

The NextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", + "DescribeConfigRuleEvaluationStatusResponse$NextToken": "

The string that you use in a subsequent request to get the next page of results in a paginated response.

", + "DescribeConfigRulesRequest$NextToken": "

The NextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", "DescribeConfigRulesResponse$NextToken": "

The string that you use in a subsequent request to get the next page of results in a paginated response.

", "EvaluationResult$ResultToken": "

An encrypted token that associates an evaluation with an AWS Config rule. The token identifies the rule, the AWS resource being evaluated, and the event that triggered the evaluation.

", - "GetComplianceDetailsByResourceRequest$NextToken": "

The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", + "GetComplianceDetailsByResourceRequest$NextToken": "

The NextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", "GetComplianceDetailsByResourceResponse$NextToken": "

The string that you use in a subsequent request to get the next page of results in a paginated response.

", "PutEvaluationsRequest$ResultToken": "

An encrypted token that associates an evaluation with an AWS Config rule. Identifies the rule and the event that triggered the evaluation

" } }, + "StringWithCharLimit1024": { + "base": null, + "refs": { + "ConfigRule$InputParameters": "

A string in JSON format that is passed to the AWS Config rule Lambda function.

" + } + }, "StringWithCharLimit128": { "base": null, "refs": { @@ -1035,7 +1050,6 @@ "ComplianceByResource$ResourceId": "

The ID of the AWS resource that was evaluated.

", "ComplianceResourceTypes$member": null, "ComplianceSummaryByResourceType$ResourceType": "

The type of AWS resource.

", - "ConfigRule$InputParameters": "

A string in JSON format that is passed to the AWS Config rule Lambda function.

", "DescribeComplianceByResourceRequest$ResourceType": "

The types of AWS resources for which you want compliance information; for example, AWS::EC2::Instance. For this action, you can specify that the resource type is an AWS account by specifying AWS::::Account.

", "DescribeComplianceByResourceRequest$ResourceId": "

The ID of the AWS resource for which you want compliance information. You can specify only one resource ID. If you specify a resource ID, you must also specify a type for ResourceType.

", "Evaluation$ComplianceResourceType": "

The type of AWS resource that was evaluated.

", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/paginators-1.json index 45c365ec3..2ccf9bc73 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/paginators-1.json @@ -2,9 +2,9 @@ "pagination": { "GetResourceConfigHistory": { "input_token": "nextToken", - "output_token": "nextToken", "limit_key": "limit", + "output_token": "nextToken", "result_key": "configurationItems" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cur/2017-01-06/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cur/2017-01-06/api-2.json new file mode 100644 index 000000000..843358b70 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cur/2017-01-06/api-2.json @@ -0,0 +1,226 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2017-01-06", + "endpointPrefix":"cur", + "jsonVersion":"1.1", + "protocol":"json", + "serviceFullName":"AWS Cost and Usage Report Service", + "signatureVersion":"v4", + "signingName":"cur", + "targetPrefix":"AWSOrigamiServiceGatewayService", + "uid":"cur-2017-01-06" + }, + "operations":{ + "DeleteReportDefinition":{ + "name":"DeleteReportDefinition", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteReportDefinitionRequest"}, + "output":{"shape":"DeleteReportDefinitionResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"ValidationException"} + ] + }, + "DescribeReportDefinitions":{ + "name":"DescribeReportDefinitions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeReportDefinitionsRequest"}, + "output":{"shape":"DescribeReportDefinitionsResponse"}, + "errors":[ + {"shape":"InternalErrorException"} + ] + }, + "PutReportDefinition":{ + "name":"PutReportDefinition", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutReportDefinitionRequest"}, + "output":{"shape":"PutReportDefinitionResponse"}, + "errors":[ + {"shape":"DuplicateReportNameException"}, + {"shape":"ReportLimitReachedException"}, + {"shape":"InternalErrorException"}, + {"shape":"ValidationException"} + ] + } + }, + "shapes":{ + "AWSRegion":{ + "type":"string", + "enum":[ + "us-east-1", + "us-west-1", + "us-west-2", + "eu-central-1", + "eu-west-1", + "ap-southeast-1", + "ap-southeast-2", + "ap-northeast-1" + ] + }, + "AdditionalArtifact":{ + "type":"string", + "enum":[ + "REDSHIFT", + "QUICKSIGHT" + ] + }, + "AdditionalArtifactList":{ + "type":"list", + "member":{"shape":"AdditionalArtifact"} + }, + "CompressionFormat":{ + "type":"string", + "enum":[ + "ZIP", + "GZIP" + ] + }, + "DeleteReportDefinitionRequest":{ + "type":"structure", + "members":{ + "ReportName":{"shape":"ReportName"} + } + }, + "DeleteReportDefinitionResponse":{ + "type":"structure", + "members":{ + "ResponseMessage":{"shape":"DeleteResponseMessage"} + } + }, + "DeleteResponseMessage":{"type":"string"}, + "DescribeReportDefinitionsRequest":{ + "type":"structure", + "members":{ + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"GenericString"} + } + }, + "DescribeReportDefinitionsResponse":{ + "type":"structure", + "members":{ + "ReportDefinitions":{"shape":"ReportDefinitionList"}, + "NextToken":{"shape":"GenericString"} + } + }, + "DuplicateReportNameException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ErrorMessage":{"type":"string"}, + "GenericString":{"type":"string"}, + "InternalErrorException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true, + "fault":true + }, + "MaxResults":{ + "type":"integer", + "box":true, + "max":5, + "min":5 + }, + "PutReportDefinitionRequest":{ + "type":"structure", + "required":["ReportDefinition"], + "members":{ + "ReportDefinition":{"shape":"ReportDefinition"} + } + }, + "PutReportDefinitionResponse":{ + "type":"structure", + "members":{ + } + }, + "ReportDefinition":{ + "type":"structure", + "required":[ + "ReportName", + "TimeUnit", + "Format", + "Compression", + "AdditionalSchemaElements", + "S3Bucket", + "S3Prefix", + "S3Region" + ], + "members":{ + "ReportName":{"shape":"ReportName"}, + "TimeUnit":{"shape":"TimeUnit"}, + "Format":{"shape":"ReportFormat"}, + "Compression":{"shape":"CompressionFormat"}, + "AdditionalSchemaElements":{"shape":"SchemaElementList"}, + "S3Bucket":{"shape":"S3Bucket"}, + "S3Prefix":{"shape":"S3Prefix"}, + "S3Region":{"shape":"AWSRegion"}, + "AdditionalArtifacts":{"shape":"AdditionalArtifactList"} + } + }, + "ReportDefinitionList":{ + "type":"list", + "member":{"shape":"ReportDefinition"} + }, + "ReportFormat":{ + "type":"string", + "enum":["textORcsv"] + }, + "ReportLimitReachedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ReportName":{ + "type":"string", + "max":256, + "pattern":"[0-9A-Za-z!\\-_.*\\'()]+" + }, + "S3Bucket":{ + "type":"string", + "max":256 + }, + "S3Prefix":{ + "type":"string", + "max":256, + "pattern":"[0-9A-Za-z!\\-_.*\\'()/]*" + }, + "SchemaElement":{ + "type":"string", + "enum":["RESOURCES"] + }, + "SchemaElementList":{ + "type":"list", + "member":{"shape":"SchemaElement"} + }, + "TimeUnit":{ + "type":"string", + "enum":[ + "HOURLY", + "DAILY" + ] + }, + "ValidationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cur/2017-01-06/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cur/2017-01-06/docs-2.json new file mode 100644 index 000000000..9141398f9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cur/2017-01-06/docs-2.json @@ -0,0 +1,169 @@ +{ + "version": "2.0", + "service": "All public APIs for AWS Cost and Usage Report service", + "operations": { + "DeleteReportDefinition": "Delete a specified report definition", + "DescribeReportDefinitions": "Describe a list of report definitions owned by the account", + "PutReportDefinition": "Create a new report definition" + }, + "shapes": { + "AWSRegion": { + "base": "Region of customer S3 bucket.", + "refs": { + "ReportDefinition$S3Region": null + } + }, + "AdditionalArtifact": { + "base": "Enable support for Redshift and/or QuickSight.", + "refs": { + "AdditionalArtifactList$member": null + } + }, + "AdditionalArtifactList": { + "base": "A list of additional artifacts.", + "refs": { + "ReportDefinition$AdditionalArtifacts": null + } + }, + "CompressionFormat": { + "base": "Preferred compression format for report.", + "refs": { + "ReportDefinition$Compression": null + } + }, + "DeleteReportDefinitionRequest": { + "base": "Request of DeleteReportDefinition", + "refs": { + } + }, + "DeleteReportDefinitionResponse": { + "base": "Response of DeleteReportDefinition", + "refs": { + } + }, + "DeleteResponseMessage": { + "base": "A message indicates if the deletion is successful.", + "refs": { + "DeleteReportDefinitionResponse$ResponseMessage": null + } + }, + "DescribeReportDefinitionsRequest": { + "base": "Request of DescribeReportDefinitions", + "refs": { + } + }, + "DescribeReportDefinitionsResponse": { + "base": "Response of DescribeReportDefinitions", + "refs": { + } + }, + "DuplicateReportNameException": { + "base": "This exception is thrown when putting a report preference with a name that already exists.", + "refs": { + } + }, + "ErrorMessage": { + "base": "A message to show the detail of the exception.", + "refs": { + "DuplicateReportNameException$Message": null, + "InternalErrorException$Message": null, + "ReportLimitReachedException$Message": null, + "ValidationException$Message": null + } + }, + "GenericString": { + "base": "A generic string.", + "refs": { + "DescribeReportDefinitionsRequest$NextToken": null, + "DescribeReportDefinitionsResponse$NextToken": null + } + }, + "InternalErrorException": { + "base": "This exception is thrown on a known dependency failure.", + "refs": { + } + }, + "MaxResults": { + "base": "The max number of results returned by the operation.", + "refs": { + "DescribeReportDefinitionsRequest$MaxResults": null + } + }, + "PutReportDefinitionRequest": { + "base": "Request of PutReportDefinition", + "refs": { + } + }, + "PutReportDefinitionResponse": { + "base": "Response of PutReportDefinition", + "refs": { + } + }, + "ReportDefinition": { + "base": "The definition of AWS Cost and Usage Report. Customer can specify the report name, time unit, report format, compression format, S3 bucket and additional artifacts and schema elements in the definition.", + "refs": { + "PutReportDefinitionRequest$ReportDefinition": null, + "ReportDefinitionList$member": null + } + }, + "ReportDefinitionList": { + "base": "A list of report definitions.", + "refs": { + "DescribeReportDefinitionsResponse$ReportDefinitions": null + } + }, + "ReportFormat": { + "base": "Preferred format for report.", + "refs": { + "ReportDefinition$Format": null + } + }, + "ReportLimitReachedException": { + "base": "This exception is thrown when the number of report preference reaches max limit. The max number is 5.", + "refs": { + } + }, + "ReportName": { + "base": "Preferred name for a report, it has to be unique. Must starts with a number/letter, case sensitive. Limited to 256 characters.", + "refs": { + "DeleteReportDefinitionRequest$ReportName": null, + "ReportDefinition$ReportName": null + } + }, + "S3Bucket": { + "base": "Name of customer S3 bucket.", + "refs": { + "ReportDefinition$S3Bucket": null + } + }, + "S3Prefix": { + "base": "Preferred report path prefix. Limited to 256 characters.", + "refs": { + "ReportDefinition$S3Prefix": null + } + }, + "SchemaElement": { + "base": "Preference of including Resource IDs. You can include additional details about individual resource IDs in your report.", + "refs": { + "SchemaElementList$member": null + } + }, + "SchemaElementList": { + "base": "A list of schema elements.", + "refs": { + "ReportDefinition$AdditionalSchemaElements": null + } + }, + "TimeUnit": { + "base": "The frequency on which report data are measured and displayed.", + "refs": { + "ReportDefinition$TimeUnit": null + } + }, + "ValidationException": { + "base": "This exception is thrown when providing an invalid input. eg. Put a report preference with an invalid report name, or Delete a report preference with an empty report name.", + "refs": { + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cur/2017-01-06/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cur/2017-01-06/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cur/2017-01-06/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cur/2017-01-06/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cur/2017-01-06/paginators-1.json new file mode 100644 index 000000000..78c6eed32 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cur/2017-01-06/paginators-1.json @@ -0,0 +1,9 @@ +{ + "pagination": { + "DescribeReportDefinitions": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/datapipeline/2012-10-29/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/datapipeline/2012-10-29/api-2.json index da8ae4ecf..38c0d06db 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/datapipeline/2012-10-29/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/datapipeline/2012-10-29/api-2.json @@ -7,7 +7,8 @@ "serviceFullName":"AWS Data Pipeline", "signatureVersion":"v4", "targetPrefix":"DataPipeline", - "protocol":"json" + "protocol":"json", + "uid":"datapipeline-2012-10-29" }, "operations":{ "ActivatePipeline":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/api-2.json index e50577c88..c1ab23182 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/api-2.json @@ -7,7 +7,8 @@ "protocol":"json", "serviceFullName":"AWS Device Farm", "signatureVersion":"v4", - "targetPrefix":"DeviceFarm_20150623" + "targetPrefix":"DeviceFarm_20150623", + "uid":"devicefarm-2015-06-23" }, "operations":{ "CreateDevicePool":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/api-2.json index 1a2870bac..5d7ee3aa3 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/api-2.json @@ -7,7 +7,8 @@ "protocol":"json", "serviceFullName":"AWS Direct Connect", "signatureVersion":"v4", - "targetPrefix":"OvertureService" + "targetPrefix":"OvertureService", + "uid":"directconnect-2012-10-25" }, "operations":{ "AllocateConnectionOnInterconnect":{ @@ -23,6 +24,19 @@ {"shape":"DirectConnectClientException"} ] }, + "AllocateHostedConnection":{ + "name":"AllocateHostedConnection", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AllocateHostedConnectionRequest"}, + "output":{"shape":"Connection"}, + "errors":[ + {"shape":"DirectConnectServerException"}, + {"shape":"DirectConnectClientException"} + ] + }, "AllocatePrivateVirtualInterface":{ "name":"AllocatePrivateVirtualInterface", "http":{ @@ -49,6 +63,45 @@ {"shape":"DirectConnectClientException"} ] }, + "AssociateConnectionWithLag":{ + "name":"AssociateConnectionWithLag", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateConnectionWithLagRequest"}, + "output":{"shape":"Connection"}, + "errors":[ + {"shape":"DirectConnectServerException"}, + {"shape":"DirectConnectClientException"} + ] + }, + "AssociateHostedConnection":{ + "name":"AssociateHostedConnection", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateHostedConnectionRequest"}, + "output":{"shape":"Connection"}, + "errors":[ + {"shape":"DirectConnectServerException"}, + {"shape":"DirectConnectClientException"} + ] + }, + "AssociateVirtualInterface":{ + "name":"AssociateVirtualInterface", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateVirtualInterfaceRequest"}, + "output":{"shape":"VirtualInterface"}, + "errors":[ + {"shape":"DirectConnectServerException"}, + {"shape":"DirectConnectClientException"} + ] + }, "ConfirmConnection":{ "name":"ConfirmConnection", "http":{ @@ -88,6 +141,19 @@ {"shape":"DirectConnectClientException"} ] }, + "CreateBGPPeer":{ + "name":"CreateBGPPeer", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateBGPPeerRequest"}, + "output":{"shape":"CreateBGPPeerResponse"}, + "errors":[ + {"shape":"DirectConnectServerException"}, + {"shape":"DirectConnectClientException"} + ] + }, "CreateConnection":{ "name":"CreateConnection", "http":{ @@ -114,6 +180,19 @@ {"shape":"DirectConnectClientException"} ] }, + "CreateLag":{ + "name":"CreateLag", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateLagRequest"}, + "output":{"shape":"Lag"}, + "errors":[ + {"shape":"DirectConnectServerException"}, + {"shape":"DirectConnectClientException"} + ] + }, "CreatePrivateVirtualInterface":{ "name":"CreatePrivateVirtualInterface", "http":{ @@ -140,6 +219,19 @@ {"shape":"DirectConnectClientException"} ] }, + "DeleteBGPPeer":{ + "name":"DeleteBGPPeer", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteBGPPeerRequest"}, + "output":{"shape":"DeleteBGPPeerResponse"}, + "errors":[ + {"shape":"DirectConnectServerException"}, + {"shape":"DirectConnectClientException"} + ] + }, "DeleteConnection":{ "name":"DeleteConnection", "http":{ @@ -166,6 +258,19 @@ {"shape":"DirectConnectClientException"} ] }, + "DeleteLag":{ + "name":"DeleteLag", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteLagRequest"}, + "output":{"shape":"Lag"}, + "errors":[ + {"shape":"DirectConnectServerException"}, + {"shape":"DirectConnectClientException"} + ] + }, "DeleteVirtualInterface":{ "name":"DeleteVirtualInterface", "http":{ @@ -218,6 +323,19 @@ {"shape":"DirectConnectClientException"} ] }, + "DescribeHostedConnections":{ + "name":"DescribeHostedConnections", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeHostedConnectionsRequest"}, + "output":{"shape":"Connections"}, + "errors":[ + {"shape":"DirectConnectServerException"}, + {"shape":"DirectConnectClientException"} + ] + }, "DescribeInterconnectLoa":{ "name":"DescribeInterconnectLoa", "http":{ @@ -244,6 +362,32 @@ {"shape":"DirectConnectClientException"} ] }, + "DescribeLags":{ + "name":"DescribeLags", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeLagsRequest"}, + "output":{"shape":"Lags"}, + "errors":[ + {"shape":"DirectConnectServerException"}, + {"shape":"DirectConnectClientException"} + ] + }, + "DescribeLoa":{ + "name":"DescribeLoa", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeLoaRequest"}, + "output":{"shape":"Loa"}, + "errors":[ + {"shape":"DirectConnectServerException"}, + {"shape":"DirectConnectClientException"} + ] + }, "DescribeLocations":{ "name":"DescribeLocations", "http":{ @@ -256,6 +400,19 @@ {"shape":"DirectConnectClientException"} ] }, + "DescribeTags":{ + "name":"DescribeTags", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeTagsRequest"}, + "output":{"shape":"DescribeTagsResponse"}, + "errors":[ + {"shape":"DirectConnectServerException"}, + {"shape":"DirectConnectClientException"} + ] + }, "DescribeVirtualGateways":{ "name":"DescribeVirtualGateways", "http":{ @@ -280,10 +437,71 @@ {"shape":"DirectConnectServerException"}, {"shape":"DirectConnectClientException"} ] + }, + "DisassociateConnectionFromLag":{ + "name":"DisassociateConnectionFromLag", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociateConnectionFromLagRequest"}, + "output":{"shape":"Connection"}, + "errors":[ + {"shape":"DirectConnectServerException"}, + {"shape":"DirectConnectClientException"} + ] + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"DuplicateTagKeysException"}, + {"shape":"TooManyTagsException"}, + {"shape":"DirectConnectServerException"}, + {"shape":"DirectConnectClientException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"DirectConnectServerException"}, + {"shape":"DirectConnectClientException"} + ] + }, + "UpdateLag":{ + "name":"UpdateLag", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateLagRequest"}, + "output":{"shape":"Lag"}, + "errors":[ + {"shape":"DirectConnectServerException"}, + {"shape":"DirectConnectClientException"} + ] } }, "shapes":{ "ASN":{"type":"integer"}, + "AddressFamily":{ + "type":"string", + "enum":[ + "ipv4", + "ipv6" + ] + }, "AllocateConnectionOnInterconnectRequest":{ "type":"structure", "required":[ @@ -301,6 +519,23 @@ "vlan":{"shape":"VLAN"} } }, + "AllocateHostedConnectionRequest":{ + "type":"structure", + "required":[ + "connectionId", + "ownerAccount", + "bandwidth", + "connectionName", + "vlan" + ], + "members":{ + "connectionId":{"shape":"ConnectionId"}, + "ownerAccount":{"shape":"OwnerAccount"}, + "bandwidth":{"shape":"Bandwidth"}, + "connectionName":{"shape":"ConnectionName"}, + "vlan":{"shape":"VLAN"} + } + }, "AllocatePrivateVirtualInterfaceRequest":{ "type":"structure", "required":[ @@ -328,8 +563,76 @@ } }, "AmazonAddress":{"type":"string"}, + "AssociateConnectionWithLagRequest":{ + "type":"structure", + "required":[ + "connectionId", + "lagId" + ], + "members":{ + "connectionId":{"shape":"ConnectionId"}, + "lagId":{"shape":"LagId"} + } + }, + "AssociateHostedConnectionRequest":{ + "type":"structure", + "required":[ + "connectionId", + "parentConnectionId" + ], + "members":{ + "connectionId":{"shape":"ConnectionId"}, + "parentConnectionId":{"shape":"ConnectionId"} + } + }, + "AssociateVirtualInterfaceRequest":{ + "type":"structure", + "required":[ + "virtualInterfaceId", + "connectionId" + ], + "members":{ + "virtualInterfaceId":{"shape":"VirtualInterfaceId"}, + "connectionId":{"shape":"ConnectionId"} + } + }, + "AwsDevice":{"type":"string"}, "BGPAuthKey":{"type":"string"}, + "BGPPeer":{ + "type":"structure", + "members":{ + "asn":{"shape":"ASN"}, + "authKey":{"shape":"BGPAuthKey"}, + "addressFamily":{"shape":"AddressFamily"}, + "amazonAddress":{"shape":"AmazonAddress"}, + "customerAddress":{"shape":"CustomerAddress"}, + "bgpPeerState":{"shape":"BGPPeerState"}, + "bgpStatus":{"shape":"BGPStatus"} + } + }, + "BGPPeerList":{ + "type":"list", + "member":{"shape":"BGPPeer"} + }, + "BGPPeerState":{ + "type":"string", + "enum":[ + "verifying", + "pending", + "available", + "deleting", + "deleted" + ] + }, + "BGPStatus":{ + "type":"string", + "enum":[ + "up", + "down" + ] + }, "Bandwidth":{"type":"string"}, + "BooleanFlag":{"type":"boolean"}, "CIDR":{"type":"string"}, "ConfirmConnectionRequest":{ "type":"structure", @@ -386,7 +689,9 @@ "bandwidth":{"shape":"Bandwidth"}, "vlan":{"shape":"VLAN"}, "partnerName":{"shape":"PartnerName"}, - "loaIssueTime":{"shape":"LoaIssueTime"} + "loaIssueTime":{"shape":"LoaIssueTime"}, + "lagId":{"shape":"LagId"}, + "awsDevice":{"shape":"AwsDevice"} } }, "ConnectionId":{"type":"string"}, @@ -414,6 +719,20 @@ "connections":{"shape":"ConnectionList"} } }, + "Count":{"type":"integer"}, + "CreateBGPPeerRequest":{ + "type":"structure", + "members":{ + "virtualInterfaceId":{"shape":"VirtualInterfaceId"}, + "newBGPPeer":{"shape":"NewBGPPeer"} + } + }, + "CreateBGPPeerResponse":{ + "type":"structure", + "members":{ + "virtualInterface":{"shape":"VirtualInterface"} + } + }, "CreateConnectionRequest":{ "type":"structure", "required":[ @@ -424,7 +743,8 @@ "members":{ "location":{"shape":"LocationCode"}, "bandwidth":{"shape":"Bandwidth"}, - "connectionName":{"shape":"ConnectionName"} + "connectionName":{"shape":"ConnectionName"}, + "lagId":{"shape":"LagId"} } }, "CreateInterconnectRequest":{ @@ -437,7 +757,24 @@ "members":{ "interconnectName":{"shape":"InterconnectName"}, "bandwidth":{"shape":"Bandwidth"}, - "location":{"shape":"LocationCode"} + "location":{"shape":"LocationCode"}, + "lagId":{"shape":"LagId"} + } + }, + "CreateLagRequest":{ + "type":"structure", + "required":[ + "numberOfConnections", + "location", + "connectionsBandwidth", + "lagName" + ], + "members":{ + "numberOfConnections":{"shape":"Count"}, + "location":{"shape":"LocationCode"}, + "connectionsBandwidth":{"shape":"Bandwidth"}, + "lagName":{"shape":"LagName"}, + "connectionId":{"shape":"ConnectionId"} } }, "CreatePrivateVirtualInterfaceRequest":{ @@ -463,6 +800,20 @@ } }, "CustomerAddress":{"type":"string"}, + "DeleteBGPPeerRequest":{ + "type":"structure", + "members":{ + "virtualInterfaceId":{"shape":"VirtualInterfaceId"}, + "asn":{"shape":"ASN"}, + "customerAddress":{"shape":"CustomerAddress"} + } + }, + "DeleteBGPPeerResponse":{ + "type":"structure", + "members":{ + "virtualInterface":{"shape":"VirtualInterface"} + } + }, "DeleteConnectionRequest":{ "type":"structure", "required":["connectionId"], @@ -483,6 +834,13 @@ "interconnectState":{"shape":"InterconnectState"} } }, + "DeleteLagRequest":{ + "type":"structure", + "required":["lagId"], + "members":{ + "lagId":{"shape":"LagId"} + } + }, "DeleteVirtualInterfaceRequest":{ "type":"structure", "required":["virtualInterfaceId"], @@ -524,6 +882,13 @@ "connectionId":{"shape":"ConnectionId"} } }, + "DescribeHostedConnectionsRequest":{ + "type":"structure", + "required":["connectionId"], + "members":{ + "connectionId":{"shape":"ConnectionId"} + } + }, "DescribeInterconnectLoaRequest":{ "type":"structure", "required":["interconnectId"], @@ -545,6 +910,34 @@ "interconnectId":{"shape":"InterconnectId"} } }, + "DescribeLagsRequest":{ + "type":"structure", + "members":{ + "lagId":{"shape":"LagId"} + } + }, + "DescribeLoaRequest":{ + "type":"structure", + "required":["connectionId"], + "members":{ + "connectionId":{"shape":"ConnectionId"}, + "providerName":{"shape":"ProviderName"}, + "loaContentType":{"shape":"LoaContentType"} + } + }, + "DescribeTagsRequest":{ + "type":"structure", + "required":["resourceArns"], + "members":{ + "resourceArns":{"shape":"ResourceArnList"} + } + }, + "DescribeTagsResponse":{ + "type":"structure", + "members":{ + "resourceTags":{"shape":"ResourceTagList"} + } + }, "DescribeVirtualInterfacesRequest":{ "type":"structure", "members":{ @@ -566,6 +959,23 @@ }, "exception":true }, + "DisassociateConnectionFromLagRequest":{ + "type":"structure", + "required":[ + "connectionId", + "lagId" + ], + "members":{ + "connectionId":{"shape":"ConnectionId"}, + "lagId":{"shape":"LagId"} + } + }, + "DuplicateTagKeysException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "ErrorMessage":{"type":"string"}, "Interconnect":{ "type":"structure", @@ -576,7 +986,9 @@ "region":{"shape":"Region"}, "location":{"shape":"LocationCode"}, "bandwidth":{"shape":"Bandwidth"}, - "loaIssueTime":{"shape":"LoaIssueTime"} + "loaIssueTime":{"shape":"LoaIssueTime"}, + "lagId":{"shape":"LagId"}, + "awsDevice":{"shape":"AwsDevice"} } }, "InterconnectId":{"type":"string"}, @@ -602,6 +1014,46 @@ "interconnects":{"shape":"InterconnectList"} } }, + "Lag":{ + "type":"structure", + "members":{ + "connectionsBandwidth":{"shape":"Bandwidth"}, + "numberOfConnections":{"shape":"Count"}, + "lagId":{"shape":"LagId"}, + "ownerAccount":{"shape":"OwnerAccount"}, + "lagName":{"shape":"LagName"}, + "lagState":{"shape":"LagState"}, + "location":{"shape":"LocationCode"}, + "region":{"shape":"Region"}, + "minimumLinks":{"shape":"Count"}, + "awsDevice":{"shape":"AwsDevice"}, + "connections":{"shape":"ConnectionList"}, + "allowsHostedConnections":{"shape":"BooleanFlag"} + } + }, + "LagId":{"type":"string"}, + "LagList":{ + "type":"list", + "member":{"shape":"Lag"} + }, + "LagName":{"type":"string"}, + "LagState":{ + "type":"string", + "enum":[ + "requested", + "pending", + "available", + "down", + "deleting", + "deleted" + ] + }, + "Lags":{ + "type":"structure", + "members":{ + "lags":{"shape":"LagList"} + } + }, "Loa":{ "type":"structure", "members":{ @@ -634,6 +1086,16 @@ "locations":{"shape":"LocationList"} } }, + "NewBGPPeer":{ + "type":"structure", + "members":{ + "asn":{"shape":"ASN"}, + "authKey":{"shape":"BGPAuthKey"}, + "addressFamily":{"shape":"AddressFamily"}, + "amazonAddress":{"shape":"AmazonAddress"}, + "customerAddress":{"shape":"CustomerAddress"} + } + }, "NewPrivateVirtualInterface":{ "type":"structure", "required":[ @@ -649,6 +1111,7 @@ "authKey":{"shape":"BGPAuthKey"}, "amazonAddress":{"shape":"AmazonAddress"}, "customerAddress":{"shape":"CustomerAddress"}, + "addressFamily":{"shape":"AddressFamily"}, "virtualGatewayId":{"shape":"VirtualGatewayId"} } }, @@ -665,6 +1128,7 @@ "asn":{"shape":"ASN"}, "authKey":{"shape":"BGPAuthKey"}, "amazonAddress":{"shape":"AmazonAddress"}, + "addressFamily":{"shape":"AddressFamily"}, "customerAddress":{"shape":"CustomerAddress"} } }, @@ -673,10 +1137,7 @@ "required":[ "virtualInterfaceName", "vlan", - "asn", - "amazonAddress", - "customerAddress", - "routeFilterPrefixes" + "asn" ], "members":{ "virtualInterfaceName":{"shape":"VirtualInterfaceName"}, @@ -685,6 +1146,7 @@ "authKey":{"shape":"BGPAuthKey"}, "amazonAddress":{"shape":"AmazonAddress"}, "customerAddress":{"shape":"CustomerAddress"}, + "addressFamily":{"shape":"AddressFamily"}, "routeFilterPrefixes":{"shape":"RouteFilterPrefixList"} } }, @@ -693,10 +1155,7 @@ "required":[ "virtualInterfaceName", "vlan", - "asn", - "amazonAddress", - "customerAddress", - "routeFilterPrefixes" + "asn" ], "members":{ "virtualInterfaceName":{"shape":"VirtualInterfaceName"}, @@ -705,6 +1164,7 @@ "authKey":{"shape":"BGPAuthKey"}, "amazonAddress":{"shape":"AmazonAddress"}, "customerAddress":{"shape":"CustomerAddress"}, + "addressFamily":{"shape":"AddressFamily"}, "routeFilterPrefixes":{"shape":"RouteFilterPrefixList"} } }, @@ -712,6 +1172,22 @@ "PartnerName":{"type":"string"}, "ProviderName":{"type":"string"}, "Region":{"type":"string"}, + "ResourceArn":{"type":"string"}, + "ResourceArnList":{ + "type":"list", + "member":{"shape":"ResourceArn"} + }, + "ResourceTag":{ + "type":"structure", + "members":{ + "resourceArn":{"shape":"ResourceArn"}, + "tags":{"shape":"TagList"} + } + }, + "ResourceTagList":{ + "type":"list", + "member":{"shape":"ResourceTag"} + }, "RouteFilterPrefix":{ "type":"structure", "members":{ @@ -723,6 +1199,82 @@ "member":{"shape":"RouteFilterPrefix"} }, "RouterConfig":{"type":"string"}, + "Tag":{ + "type":"structure", + "required":["key"], + "members":{ + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"} + } + }, + "TagKey":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"} + }, + "TagList":{ + "type":"list", + "member":{"shape":"Tag"}, + "min":1 + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tags" + ], + "members":{ + "resourceArn":{"shape":"ResourceArn"}, + "tags":{"shape":"TagList"} + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":0, + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + }, + "TooManyTagsException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tagKeys" + ], + "members":{ + "resourceArn":{"shape":"ResourceArn"}, + "tagKeys":{"shape":"TagKeyList"} + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateLagRequest":{ + "type":"structure", + "required":["lagId"], + "members":{ + "lagId":{"shape":"LagId"}, + "lagName":{"shape":"LagName"}, + "minimumLinks":{"shape":"Count"} + } + }, "VLAN":{"type":"integer"}, "VirtualGateway":{ "type":"structure", @@ -757,10 +1309,12 @@ "authKey":{"shape":"BGPAuthKey"}, "amazonAddress":{"shape":"AmazonAddress"}, "customerAddress":{"shape":"CustomerAddress"}, + "addressFamily":{"shape":"AddressFamily"}, "virtualInterfaceState":{"shape":"VirtualInterfaceState"}, "customerRouterConfig":{"shape":"RouterConfig"}, "virtualGatewayId":{"shape":"VirtualGatewayId"}, - "routeFilterPrefixes":{"shape":"RouteFilterPrefixList"} + "routeFilterPrefixes":{"shape":"RouteFilterPrefixList"}, + "bgpPeers":{"shape":"BGPPeerList"} } }, "VirtualInterfaceId":{"type":"string"}, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/docs-2.json index 08b826db4..593ea649c 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/docs-2.json @@ -2,32 +2,51 @@ "version": "2.0", "service": "

AWS Direct Connect links your internal network to an AWS Direct Connect location over a standard 1 gigabit or 10 gigabit Ethernet fiber-optic cable. One end of the cable is connected to your router, the other to an AWS Direct Connect router. With this connection in place, you can create virtual interfaces directly to the AWS cloud (for example, to Amazon Elastic Compute Cloud (Amazon EC2) and Amazon Simple Storage Service (Amazon S3)) and to Amazon Virtual Private Cloud (Amazon VPC), bypassing Internet service providers in your network path. An AWS Direct Connect location provides access to AWS in the region it is associated with, as well as access to other US regions. For example, you can provision a single connection to any AWS Direct Connect location in the US and use it to access public AWS services in all US Regions and AWS GovCloud (US).

", "operations": { - "AllocateConnectionOnInterconnect": "

Creates a hosted connection on an interconnect.

Allocates a VLAN number and a specified amount of bandwidth for use by a hosted connection on the given interconnect.

This is intended for use by AWS Direct Connect partners only.

", - "AllocatePrivateVirtualInterface": "

Provisions a private virtual interface to be owned by a different customer.

The owner of a connection calls this function to provision a private virtual interface which will be owned by another AWS customer.

Virtual interfaces created using this function must be confirmed by the virtual interface owner by calling ConfirmPrivateVirtualInterface. Until this step has been completed, the virtual interface will be in 'Confirming' state, and will not be available for handling traffic.

", - "AllocatePublicVirtualInterface": "

Provisions a public virtual interface to be owned by a different customer.

The owner of a connection calls this function to provision a public virtual interface which will be owned by another AWS customer.

Virtual interfaces created using this function must be confirmed by the virtual interface owner by calling ConfirmPublicVirtualInterface. Until this step has been completed, the virtual interface will be in 'Confirming' state, and will not be available for handling traffic.

", + "AllocateConnectionOnInterconnect": "

Deprecated in favor of AllocateHostedConnection.

Creates a hosted connection on an interconnect.

Allocates a VLAN number and a specified amount of bandwidth for use by a hosted connection on the given interconnect.

This is intended for use by AWS Direct Connect partners only.

", + "AllocateHostedConnection": "

Creates a hosted connection on an interconnect or a link aggregation group (LAG).

Allocates a VLAN number and a specified amount of bandwidth for use by a hosted connection on the given interconnect or LAG.

This is intended for use by AWS Direct Connect partners only.

", + "AllocatePrivateVirtualInterface": "

Provisions a private virtual interface to be owned by another AWS customer.

Virtual interfaces created using this action must be confirmed by the virtual interface owner by using the ConfirmPrivateVirtualInterface action. Until then, the virtual interface will be in 'Confirming' state, and will not be available for handling traffic.

", + "AllocatePublicVirtualInterface": "

Provisions a public virtual interface to be owned by a different customer.

The owner of a connection calls this function to provision a public virtual interface which will be owned by another AWS customer.

Virtual interfaces created using this function must be confirmed by the virtual interface owner by calling ConfirmPublicVirtualInterface. Until this step has been completed, the virtual interface will be in 'Confirming' state, and will not be available for handling traffic.

When creating an IPv6 public virtual interface (addressFamily is 'ipv6'), the customer and amazon address fields should be left blank to use auto-assigned IPv6 space. Custom IPv6 Addresses are currently not supported.

", + "AssociateConnectionWithLag": "

Associates an existing connection with a link aggregation group (LAG). The connection is interrupted and re-established as a member of the LAG (connectivity to AWS will be interrupted). The connection must be hosted on the same AWS Direct Connect endpoint as the LAG, and its bandwidth must match the bandwidth for the LAG. You can reassociate a connection that's currently associated with a different LAG; however, if removing the connection will cause the original LAG to fall below its setting for minimum number of operational connections, the request fails.

Virtual interfaces that are directly associated with the connection are not automatically migrated. You can delete them or associate them with the target LAG using AssociateVirtualInterface. If the connection was originally associated with a different LAG, the virtual interfaces remain associated with the original LAG.

For interconnects, hosted connections are not automatically migrated. You can delete them, or the owner of the physical connection can associate them with the target LAG using AssociateHostedConnection. After all hosted connections have been migrated, the interconnect can be migrated into the LAG. If the interconnect is already associated with a LAG, the hosted connections remain associated with the original LAG.

", + "AssociateHostedConnection": "

Associates a hosted connection and its virtual interfaces with a link aggregation group (LAG) or interconnect. If the target interconnect or LAG has an existing hosted connection with a conflicting VLAN number or IP address, the operation fails. This action temporarily interrupts the hosted connection's connectivity to AWS as it is being migrated.

This is intended for use by AWS Direct Connect partners only.

", + "AssociateVirtualInterface": "

Associates a virtual interface with a specified link aggregation group (LAG) or connection. Connectivity to AWS is temporarily interrupted as the virtual interface is being migrated. If the target connection or LAG has an associated virtual interface with a conflicting VLAN number or a conflicting IP address, the operation fails.

Virtual interfaces associated with a hosted connection cannot be associated with a LAG; hosted connections must be migrated along with their virtual interfaces using AssociateHostedConnection.

Hosted virtual interfaces (an interface for which the owner of the connection is not the owner of physical connection) can only be reassociated by the owner of the physical connection.

", "ConfirmConnection": "

Confirm the creation of a hosted connection on an interconnect.

Upon creation, the hosted connection is initially in the 'Ordering' state, and will remain in this state until the owner calls ConfirmConnection to confirm creation of the hosted connection.

", "ConfirmPrivateVirtualInterface": "

Accept ownership of a private virtual interface created by another customer.

After the virtual interface owner calls this function, the virtual interface will be created and attached to the given virtual private gateway, and will be available for handling traffic.

", "ConfirmPublicVirtualInterface": "

Accept ownership of a public virtual interface created by another customer.

After the virtual interface owner calls this function, the specified virtual interface will be created and made available for handling traffic.

", - "CreateConnection": "

Creates a new connection between the customer network and a specific AWS Direct Connect location.

A connection links your internal network to an AWS Direct Connect location over a standard 1 gigabit or 10 gigabit Ethernet fiber-optic cable. One end of the cable is connected to your router, the other to an AWS Direct Connect router. An AWS Direct Connect location provides access to Amazon Web Services in the region it is associated with. You can establish connections with AWS Direct Connect locations in multiple regions, but a connection in one region does not provide connectivity to other regions.

", - "CreateInterconnect": "

Creates a new interconnect between a AWS Direct Connect partner's network and a specific AWS Direct Connect location.

An interconnect is a connection which is capable of hosting other connections. The AWS Direct Connect partner can use an interconnect to provide sub-1Gbps AWS Direct Connect service to tier 2 customers who do not have their own connections. Like a standard connection, an interconnect links the AWS Direct Connect partner's network to an AWS Direct Connect location over a standard 1 Gbps or 10 Gbps Ethernet fiber-optic cable. One end is connected to the partner's router, the other to an AWS Direct Connect router.

For each end customer, the AWS Direct Connect partner provisions a connection on their interconnect by calling AllocateConnectionOnInterconnect. The end customer can then connect to AWS resources by creating a virtual interface on their connection, using the VLAN assigned to them by the AWS Direct Connect partner.

This is intended for use by AWS Direct Connect partners only.

", + "CreateBGPPeer": "

Creates a new BGP peer on a specified virtual interface. The BGP peer cannot be in the same address family (IPv4/IPv6) of an existing BGP peer on the virtual interface.

You must create a BGP peer for the corresponding address family in order to access AWS resources that also use that address family.

When creating a IPv6 BGP peer, the Amazon address and customer address fields must be left blank. IPv6 addresses are automatically assigned from Amazon's pool of IPv6 addresses; you cannot specify custom IPv6 addresses.

For a public virtual interface, the Autonomous System Number (ASN) must be private or already whitelisted for the virtual interface.

", + "CreateConnection": "

Creates a new connection between the customer network and a specific AWS Direct Connect location.

A connection links your internal network to an AWS Direct Connect location over a standard 1 gigabit or 10 gigabit Ethernet fiber-optic cable. One end of the cable is connected to your router, the other to an AWS Direct Connect router. An AWS Direct Connect location provides access to Amazon Web Services in the region it is associated with. You can establish connections with AWS Direct Connect locations in multiple regions, but a connection in one region does not provide connectivity to other regions.

You can automatically add the new connection to a link aggregation group (LAG) by specifying a LAG ID in the request. This ensures that the new connection is allocated on the same AWS Direct Connect endpoint that hosts the specified LAG. If there are no available ports on the endpoint, the request fails and no connection will be created.

", + "CreateInterconnect": "

Creates a new interconnect between a AWS Direct Connect partner's network and a specific AWS Direct Connect location.

An interconnect is a connection which is capable of hosting other connections. The AWS Direct Connect partner can use an interconnect to provide sub-1Gbps AWS Direct Connect service to tier 2 customers who do not have their own connections. Like a standard connection, an interconnect links the AWS Direct Connect partner's network to an AWS Direct Connect location over a standard 1 Gbps or 10 Gbps Ethernet fiber-optic cable. One end is connected to the partner's router, the other to an AWS Direct Connect router.

You can automatically add the new interconnect to a link aggregation group (LAG) by specifying a LAG ID in the request. This ensures that the new interconnect is allocated on the same AWS Direct Connect endpoint that hosts the specified LAG. If there are no available ports on the endpoint, the request fails and no interconnect will be created.

For each end customer, the AWS Direct Connect partner provisions a connection on their interconnect by calling AllocateConnectionOnInterconnect. The end customer can then connect to AWS resources by creating a virtual interface on their connection, using the VLAN assigned to them by the AWS Direct Connect partner.

This is intended for use by AWS Direct Connect partners only.

", + "CreateLag": "

Creates a new link aggregation group (LAG) with the specified number of bundled physical connections between the customer network and a specific AWS Direct Connect location. A LAG is a logical interface that uses the Link Aggregation Control Protocol (LACP) to aggregate multiple 1 gigabit or 10 gigabit interfaces, allowing you to treat them as a single interface.

All connections in a LAG must use the same bandwidth (for example, 10 Gbps), and must terminate at the same AWS Direct Connect endpoint.

You can have up to 10 connections per LAG. Regardless of this limit, if you request more connections for the LAG than AWS Direct Connect can allocate on a single endpoint, no LAG is created.

You can specify an existing physical connection or interconnect to include in the LAG (which counts towards the total number of connections). Doing so interrupts the current physical connection or hosted connections, and re-establishes them as a member of the LAG. The LAG will be created on the same AWS Direct Connect endpoint to which the connection terminates. Any virtual interfaces associated with the connection are automatically disassociated and re-associated with the LAG. The connection ID does not change.

If the AWS account used to create a LAG is a registered AWS Direct Connect partner, the LAG is automatically enabled to host sub-connections. For a LAG owned by a partner, any associated virtual interfaces cannot be directly configured.

", "CreatePrivateVirtualInterface": "

Creates a new private virtual interface. A virtual interface is the VLAN that transports AWS Direct Connect traffic. A private virtual interface supports sending traffic to a single virtual private cloud (VPC).

", - "CreatePublicVirtualInterface": "

Creates a new public virtual interface. A virtual interface is the VLAN that transports AWS Direct Connect traffic. A public virtual interface supports sending traffic to public services of AWS such as Amazon Simple Storage Service (Amazon S3).

", + "CreatePublicVirtualInterface": "

Creates a new public virtual interface. A virtual interface is the VLAN that transports AWS Direct Connect traffic. A public virtual interface supports sending traffic to public services of AWS such as Amazon Simple Storage Service (Amazon S3).

When creating an IPv6 public virtual interface (addressFamily is 'ipv6'), the customer and amazon address fields should be left blank to use auto-assigned IPv6 space. Custom IPv6 Addresses are currently not supported.

", + "DeleteBGPPeer": "

Deletes a BGP peer on the specified virtual interface that matches the specified customer address and ASN. You cannot delete the last BGP peer from a virtual interface.

", "DeleteConnection": "

Deletes the connection.

Deleting a connection only stops the AWS Direct Connect port hour and data transfer charges. You need to cancel separately with the providers any services or charges for cross-connects or network circuits that connect you to the AWS Direct Connect location.

", "DeleteInterconnect": "

Deletes the specified interconnect.

This is intended for use by AWS Direct Connect partners only.

", + "DeleteLag": "

Deletes a link aggregation group (LAG). You cannot delete a LAG if it has active virtual interfaces or hosted connections.

", "DeleteVirtualInterface": "

Deletes a virtual interface.

", - "DescribeConnectionLoa": "

Returns the LOA-CFA for a Connection.

The Letter of Authorization - Connecting Facility Assignment (LOA-CFA) is a document that your APN partner or service provider uses when establishing your cross connect to AWS at the colocation facility. For more information, see Requesting Cross Connects at AWS Direct Connect Locations in the AWS Direct Connect user guide.

", + "DescribeConnectionLoa": "

Deprecated in favor of DescribeLoa.

Returns the LOA-CFA for a Connection.

The Letter of Authorization - Connecting Facility Assignment (LOA-CFA) is a document that your APN partner or service provider uses when establishing your cross connect to AWS at the colocation facility. For more information, see Requesting Cross Connects at AWS Direct Connect Locations in the AWS Direct Connect user guide.

", "DescribeConnections": "

Displays all connections in this region.

If a connection ID is provided, the call returns only that particular connection.

", - "DescribeConnectionsOnInterconnect": "

Return a list of connections that have been provisioned on the given interconnect.

This is intended for use by AWS Direct Connect partners only.

", - "DescribeInterconnectLoa": "

Returns the LOA-CFA for an Interconnect.

The Letter of Authorization - Connecting Facility Assignment (LOA-CFA) is a document that is used when establishing your cross connect to AWS at the colocation facility. For more information, see Requesting Cross Connects at AWS Direct Connect Locations in the AWS Direct Connect user guide.

", + "DescribeConnectionsOnInterconnect": "

Deprecated in favor of DescribeHostedConnections.

Returns a list of connections that have been provisioned on the given interconnect.

This is intended for use by AWS Direct Connect partners only.

", + "DescribeHostedConnections": "

Returns a list of hosted connections that have been provisioned on the given interconnect or link aggregation group (LAG).

This is intended for use by AWS Direct Connect partners only.

", + "DescribeInterconnectLoa": "

Deprecated in favor of DescribeLoa.

Returns the LOA-CFA for an Interconnect.

The Letter of Authorization - Connecting Facility Assignment (LOA-CFA) is a document that is used when establishing your cross connect to AWS at the colocation facility. For more information, see Requesting Cross Connects at AWS Direct Connect Locations in the AWS Direct Connect user guide.

", "DescribeInterconnects": "

Returns a list of interconnects owned by the AWS account.

If an interconnect ID is provided, it will only return this particular interconnect.

", + "DescribeLags": "

Describes the link aggregation groups (LAGs) in your account.

If a LAG ID is provided, only information about the specified LAG is returned.

", + "DescribeLoa": "

Returns the LOA-CFA for a connection, interconnect, or link aggregation group (LAG).

The Letter of Authorization - Connecting Facility Assignment (LOA-CFA) is a document that is used when establishing your cross connect to AWS at the colocation facility. For more information, see Requesting Cross Connects at AWS Direct Connect Locations in the AWS Direct Connect user guide.

", "DescribeLocations": "

Returns the list of AWS Direct Connect locations in the current AWS region. These are the locations that may be selected when calling CreateConnection or CreateInterconnect.

", + "DescribeTags": "

Describes the tags associated with the specified Direct Connect resources.

", "DescribeVirtualGateways": "

Returns a list of virtual private gateways owned by the AWS account.

You can create one or more AWS Direct Connect private virtual interfaces linking to a virtual private gateway. A virtual private gateway can be managed via Amazon Virtual Private Cloud (VPC) console or the EC2 CreateVpnGateway action.

", - "DescribeVirtualInterfaces": "

Displays all virtual interfaces for an AWS account. Virtual interfaces deleted fewer than 15 minutes before DescribeVirtualInterfaces is called are also returned. If a connection ID is included then only virtual interfaces associated with this connection will be returned. If a virtual interface ID is included then only a single virtual interface will be returned.

A virtual interface (VLAN) transmits the traffic between the AWS Direct Connect location and the customer.

If a connection ID is provided, only virtual interfaces provisioned on the specified connection will be returned. If a virtual interface ID is provided, only this particular virtual interface will be returned.

" + "DescribeVirtualInterfaces": "

Displays all virtual interfaces for an AWS account. Virtual interfaces deleted fewer than 15 minutes before you make the request are also returned. If you specify a connection ID, only the virtual interfaces associated with the connection are returned. If you specify a virtual interface ID, then only a single virtual interface is returned.

A virtual interface (VLAN) transmits the traffic between the AWS Direct Connect location and the customer.

", + "DisassociateConnectionFromLag": "

Disassociates a connection from a link aggregation group (LAG). The connection is interrupted and re-established as a standalone connection (the connection is not deleted; to delete the connection, use the DeleteConnection request). If the LAG has associated virtual interfaces or hosted connections, they remain associated with the LAG. A disassociated connection owned by an AWS Direct Connect partner is automatically converted to an interconnect.

If disassociating the connection will cause the LAG to fall below its setting for minimum number of operational connections, the request fails, except when it's the last member of the LAG. If all connections are disassociated, the LAG continues to exist as an empty LAG with no physical connections.

", + "TagResource": "

Adds the specified tags to the specified Direct Connect resource. Each Direct Connect resource can have a maximum of 50 tags.

Each tag consists of a key and an optional value. If a tag with the same key is already associated with the Direct Connect resource, this action updates its value.

", + "UntagResource": "

Removes one or more tags from the specified Direct Connect resource.

", + "UpdateLag": "

Updates the attributes of a link aggregation group (LAG).

You can update the following attributes:

  • The name of the LAG.

  • The value for the minimum number of connections that must be operational for the LAG itself to be operational.

When you create a LAG, the default value for the minimum number of operational connections is zero (0). If you update this value, and the number of operational connections falls below the specified value, the LAG will automatically go down to avoid overutilization of the remaining connections. Adjusting this value should be done with care as it could force the LAG down if the value is set higher than the current number of operational connections.

" }, "shapes": { "ASN": { - "base": "

Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

Example: 65000

", + "base": "

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

Example: 65000

", "refs": { + "BGPPeer$asn": null, + "DeleteBGPPeerRequest$asn": null, + "NewBGPPeer$asn": null, "NewPrivateVirtualInterface$asn": null, "NewPrivateVirtualInterfaceAllocation$asn": null, "NewPublicVirtualInterface$asn": null, @@ -35,11 +54,28 @@ "VirtualInterface$asn": null } }, + "AddressFamily": { + "base": "

Indicates the address family for the BGP peer.

  • ipv4: IPv4 address family

  • ipv6: IPv6 address family

", + "refs": { + "BGPPeer$addressFamily": null, + "NewBGPPeer$addressFamily": null, + "NewPrivateVirtualInterface$addressFamily": null, + "NewPrivateVirtualInterfaceAllocation$addressFamily": null, + "NewPublicVirtualInterface$addressFamily": null, + "NewPublicVirtualInterfaceAllocation$addressFamily": null, + "VirtualInterface$addressFamily": null + } + }, "AllocateConnectionOnInterconnectRequest": { "base": "

Container for the parameters to the AllocateConnectionOnInterconnect operation.

", "refs": { } }, + "AllocateHostedConnectionRequest": { + "base": "

Container for the parameters to theHostedConnection operation.

", + "refs": { + } + }, "AllocatePrivateVirtualInterfaceRequest": { "base": "

Container for the parameters to the AllocatePrivateVirtualInterface operation.

", "refs": { @@ -51,8 +87,10 @@ } }, "AmazonAddress": { - "base": "

IP address assigned to the Amazon interface.

Example: 192.168.1.1/30

", + "base": "

IP address assigned to the Amazon interface.

Example: 192.168.1.1/30 or 2001:db8::1/125

", "refs": { + "BGPPeer$amazonAddress": null, + "NewBGPPeer$amazonAddress": null, "NewPrivateVirtualInterface$amazonAddress": null, "NewPrivateVirtualInterfaceAllocation$amazonAddress": null, "NewPublicVirtualInterface$amazonAddress": null, @@ -60,9 +98,34 @@ "VirtualInterface$amazonAddress": null } }, + "AssociateConnectionWithLagRequest": { + "base": "

Container for the parameters to the AssociateConnectionWithLag operation.

", + "refs": { + } + }, + "AssociateHostedConnectionRequest": { + "base": "

Container for the parameters to the AssociateHostedConnection operation.

", + "refs": { + } + }, + "AssociateVirtualInterfaceRequest": { + "base": "

Container for the parameters to the AssociateVirtualInterface operation.

", + "refs": { + } + }, + "AwsDevice": { + "base": "

An abstract ID for the physical Direct Connect endpoint.

Example: EQC50-abcdef123456

", + "refs": { + "Connection$awsDevice": "

The Direct Connection endpoint which the physical connection terminates on.

", + "Interconnect$awsDevice": "

The Direct Connection endpoint which the physical connection terminates on.

", + "Lag$awsDevice": "

The AWS Direct Connection endpoint that hosts the LAG.

" + } + }, "BGPAuthKey": { - "base": "

Authentication key for BGP configuration.

Example: asdf34example

", + "base": "

The authentication key for BGP configuration.

Example: asdf34example

", "refs": { + "BGPPeer$authKey": null, + "NewBGPPeer$authKey": null, "NewPrivateVirtualInterface$authKey": null, "NewPrivateVirtualInterfaceAllocation$authKey": null, "NewPublicVirtualInterface$authKey": null, @@ -70,20 +133,53 @@ "VirtualInterface$authKey": null } }, + "BGPPeer": { + "base": "

A structure containing information about a BGP peer.

", + "refs": { + "BGPPeerList$member": null + } + }, + "BGPPeerList": { + "base": "

A list of the BGP peers configured on this virtual interface.

", + "refs": { + "VirtualInterface$bgpPeers": null + } + }, + "BGPPeerState": { + "base": "

The state of the BGP peer.

  • Verifying: The BGP peering addresses or ASN require validation before the BGP peer can be created. This state only applies to BGP peers on a public virtual interface.

  • Pending: The BGP peer has been created, and is in this state until it is ready to be established.

  • Available: The BGP peer can be established.

  • Deleting: The BGP peer is in the process of being deleted.

  • Deleted: The BGP peer has been deleted and cannot be established.

", + "refs": { + "BGPPeer$bgpPeerState": null + } + }, + "BGPStatus": { + "base": "

The Up/Down state of the BGP peer.

  • Up: The BGP peer is established.

  • Down: The BGP peer is down.

", + "refs": { + "BGPPeer$bgpStatus": null + } + }, "Bandwidth": { "base": "

Bandwidth of the connection.

Example: 1Gbps

Default: None

", "refs": { - "AllocateConnectionOnInterconnectRequest$bandwidth": "

Bandwidth of the connection.

Example: \"500Mbps\"

Default: None

Values: 50M, 100M, 200M, 300M, 400M, or 500M

", + "AllocateConnectionOnInterconnectRequest$bandwidth": "

Bandwidth of the connection.

Example: \"500Mbps\"

Default: None

Values: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, or 500Mbps

", + "AllocateHostedConnectionRequest$bandwidth": "

The bandwidth of the connection.

Example: 500Mbps

Default: None

Values: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, or 500Mbps

", "Connection$bandwidth": "

Bandwidth of the connection.

Example: 1Gbps (for regular connections), or 500Mbps (for hosted connections)

Default: None

", "CreateConnectionRequest$bandwidth": null, "CreateInterconnectRequest$bandwidth": "

The port bandwidth

Example: 1Gbps

Default: None

Available values: 1Gbps,10Gbps

", - "Interconnect$bandwidth": null + "CreateLagRequest$connectionsBandwidth": "

The bandwidth of the individual physical connections bundled by the LAG.

Default: None

Available values: 1Gbps, 10Gbps

", + "Interconnect$bandwidth": null, + "Lag$connectionsBandwidth": "

The individual bandwidth of the physical connections bundled by the LAG.

Available values: 1Gbps, 10Gbps

" + } + }, + "BooleanFlag": { + "base": null, + "refs": { + "Lag$allowsHostedConnections": "

Indicates whether the LAG can host other connections.

This is intended for use by AWS Direct Connect partners only.

" } }, "CIDR": { "base": null, "refs": { - "RouteFilterPrefix$cidr": "

CIDR notation for the advertised route. Multiple routes are separated by commas.

Example: 10.10.10.0/24,10.10.11.0/24

" + "RouteFilterPrefix$cidr": "

CIDR notation for the advertised route. Multiple routes are separated by commas.

IPv6 CIDRs must be at least a /64 or shorter

Example: 10.10.10.0/24,10.10.11.0/24,2001:db8::/64

" } }, "ConfirmConnectionRequest": { @@ -123,31 +219,42 @@ } }, "ConnectionId": { - "base": "

ID of the connection.

Example: dxcon-fg5678gh

Default: None

", + "base": "

The ID of the connection. This field is also used as the ID type for operations that use multiple connection types (LAG, interconnect, and/or connection).

Example: dxcon-fg5678gh

Default: None

", "refs": { + "AllocateHostedConnectionRequest$connectionId": "

The ID of the interconnect or LAG on which the connection will be provisioned.

Example: dxcon-456abc78 or dxlag-abc123

Default: None

", "AllocatePrivateVirtualInterfaceRequest$connectionId": "

The connection ID on which the private virtual interface is provisioned.

Default: None

", "AllocatePublicVirtualInterfaceRequest$connectionId": "

The connection ID on which the public virtual interface is provisioned.

Default: None

", + "AssociateConnectionWithLagRequest$connectionId": "

The ID of the connection.

Example: dxcon-abc123

Default: None

", + "AssociateHostedConnectionRequest$connectionId": "

The ID of the hosted connection.

Example: dxcon-abc123

Default: None

", + "AssociateHostedConnectionRequest$parentConnectionId": "

The ID of the interconnect or the LAG.

Example: dxcon-abc123 or dxlag-abc123

Default: None

", + "AssociateVirtualInterfaceRequest$connectionId": "

The ID of the LAG or connection with which to associate the virtual interface.

Example: dxlag-abc123 or dxcon-abc123

Default: None

", "ConfirmConnectionRequest$connectionId": null, "Connection$connectionId": null, + "CreateLagRequest$connectionId": "

The ID of an existing connection to migrate to the LAG.

Default: None

", "CreatePrivateVirtualInterfaceRequest$connectionId": null, "CreatePublicVirtualInterfaceRequest$connectionId": null, "DeleteConnectionRequest$connectionId": null, "DescribeConnectionLoaRequest$connectionId": null, "DescribeConnectionsRequest$connectionId": null, + "DescribeHostedConnectionsRequest$connectionId": "

The ID of the interconnect or LAG on which the hosted connections are provisioned.

Example: dxcon-abc123 or dxlag-abc123

Default: None

", + "DescribeLoaRequest$connectionId": "

The ID of a connection, LAG, or interconnect for which to get the LOA-CFA information.

Example: dxcon-abc123 or dxlag-abc123

Default: None

", "DescribeVirtualInterfacesRequest$connectionId": null, + "DisassociateConnectionFromLagRequest$connectionId": "

The ID of the connection to disassociate from the LAG.

Example: dxcon-abc123

Default: None

", "VirtualInterface$connectionId": null } }, "ConnectionList": { "base": "

A list of connections.

", "refs": { - "Connections$connections": "

A list of connections.

" + "Connections$connections": "

A list of connections.

", + "Lag$connections": "

A list of connections bundled by this LAG.

" } }, "ConnectionName": { "base": "

The name of the connection.

Example: \"My Connection to AWS\"

Default: None

", "refs": { "AllocateConnectionOnInterconnectRequest$connectionName": "

Name of the provisioned connection.

Example: \"500M Connection to AWS\"

Default: None

", + "AllocateHostedConnectionRequest$connectionName": "

The name of the provisioned connection.

Example: \"500M Connection to AWS\"

Default: None

", "Connection$connectionName": null, "CreateConnectionRequest$connectionName": null } @@ -164,6 +271,25 @@ "refs": { } }, + "Count": { + "base": null, + "refs": { + "CreateLagRequest$numberOfConnections": "

The number of physical connections initially provisioned and bundled by the LAG.

Default: None

", + "Lag$numberOfConnections": "

The number of physical connections bundled by the LAG, up to a maximum of 10.

", + "Lag$minimumLinks": "

The minimum number of physical connections that must be operational for the LAG itself to be operational. If the number of operational connections drops below this setting, the LAG state changes to down. This value can help to ensure that a LAG is not overutilized if a significant number of its bundled connections go down.

", + "UpdateLagRequest$minimumLinks": "

The minimum number of physical connections that must be operational for the LAG itself to be operational.

Default: None

" + } + }, + "CreateBGPPeerRequest": { + "base": "

Container for the parameters to the CreateBGPPeer operation.

", + "refs": { + } + }, + "CreateBGPPeerResponse": { + "base": "

The response received when CreateBGPPeer is called.

", + "refs": { + } + }, "CreateConnectionRequest": { "base": "

Container for the parameters to the CreateConnection operation.

", "refs": { @@ -174,6 +300,11 @@ "refs": { } }, + "CreateLagRequest": { + "base": "

Container for the parameters to the CreateLag operation.

", + "refs": { + } + }, "CreatePrivateVirtualInterfaceRequest": { "base": "

Container for the parameters to the CreatePrivateVirtualInterface operation.

", "refs": { @@ -185,8 +316,11 @@ } }, "CustomerAddress": { - "base": "

IP address assigned to the customer interface.

Example: 192.168.1.2/30

", + "base": "

IP address assigned to the customer interface.

Example: 192.168.1.2/30 or 2001:db8::2/125

", "refs": { + "BGPPeer$customerAddress": null, + "DeleteBGPPeerRequest$customerAddress": null, + "NewBGPPeer$customerAddress": null, "NewPrivateVirtualInterface$customerAddress": null, "NewPrivateVirtualInterfaceAllocation$customerAddress": null, "NewPublicVirtualInterface$customerAddress": null, @@ -194,6 +328,16 @@ "VirtualInterface$customerAddress": null } }, + "DeleteBGPPeerRequest": { + "base": "

Container for the parameters to the DeleteBGPPeer operation.

", + "refs": { + } + }, + "DeleteBGPPeerResponse": { + "base": "

The response received when DeleteBGPPeer is called.

", + "refs": { + } + }, "DeleteConnectionRequest": { "base": "

Container for the parameters to the DeleteConnection operation.

", "refs": { @@ -209,6 +353,11 @@ "refs": { } }, + "DeleteLagRequest": { + "base": "

Container for the parameters to the DeleteLag operation.

", + "refs": { + } + }, "DeleteVirtualInterfaceRequest": { "base": "

Container for the parameters to the DeleteVirtualInterface operation.

", "refs": { @@ -239,6 +388,11 @@ "refs": { } }, + "DescribeHostedConnectionsRequest": { + "base": "

Container for the parameters to the DescribeHostedConnections operation.

", + "refs": { + } + }, "DescribeInterconnectLoaRequest": { "base": "

Container for the parameters to the DescribeInterconnectLoa operation.

", "refs": { @@ -254,6 +408,26 @@ "refs": { } }, + "DescribeLagsRequest": { + "base": "

Container for the parameters to the DescribeLags operation.

", + "refs": { + } + }, + "DescribeLoaRequest": { + "base": "

Container for the parameters to the DescribeLoa operation.

", + "refs": { + } + }, + "DescribeTagsRequest": { + "base": "

Container for the parameters to the DescribeTags operation.

", + "refs": { + } + }, + "DescribeTagsResponse": { + "base": "

The response received when DescribeTags is called.

", + "refs": { + } + }, "DescribeVirtualInterfacesRequest": { "base": "

Container for the parameters to the DescribeVirtualInterfaces operation.

", "refs": { @@ -269,6 +443,16 @@ "refs": { } }, + "DisassociateConnectionFromLagRequest": { + "base": "

Container for the parameters to the DisassociateConnectionFromLag operation.

", + "refs": { + } + }, + "DuplicateTagKeysException": { + "base": "

A tag key was specified more than once.

", + "refs": { + } + }, "ErrorMessage": { "base": null, "refs": { @@ -307,7 +491,7 @@ } }, "InterconnectState": { - "base": "

State of the interconnect.

  • Requested: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.

  • Pending>: The interconnect has been approved, and is being initialized.

  • Available: The network link is up, and the interconnect is ready for use.

  • Down: The network link is down.

  • Deleting: The interconnect is in the process of being deleted.

  • Deleted: The interconnect has been deleted.

", + "base": "

State of the interconnect.

  • Requested: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.

  • Pending: The interconnect has been approved, and is being initialized.

  • Available: The network link is up, and the interconnect is ready for use.

  • Down: The network link is down.

  • Deleting: The interconnect is in the process of being deleted.

  • Deleted: The interconnect has been deleted.

", "refs": { "DeleteInterconnectResponse$interconnectState": null, "Interconnect$interconnectState": null @@ -318,6 +502,52 @@ "refs": { } }, + "Lag": { + "base": "

Describes a link aggregation group (LAG). A LAG is a connection that uses the Link Aggregation Control Protocol (LACP) to logically aggregate a bundle of physical connections. Like an interconnect, it can host other connections. All connections in a LAG must terminate on the same physical AWS Direct Connect endpoint, and must be the same bandwidth.

", + "refs": { + "LagList$member": null + } + }, + "LagId": { + "base": "

The ID of the LAG.

Example: dxlag-fg5678gh

", + "refs": { + "AssociateConnectionWithLagRequest$lagId": "

The ID of the LAG with which to associate the connection.

Example: dxlag-abc123

Default: None

", + "Connection$lagId": null, + "CreateConnectionRequest$lagId": null, + "CreateInterconnectRequest$lagId": null, + "DeleteLagRequest$lagId": "

The ID of the LAG to delete.

Example: dxlag-abc123

Default: None

", + "DescribeLagsRequest$lagId": "

The ID of the LAG.

Example: dxlag-abc123

Default: None

", + "DisassociateConnectionFromLagRequest$lagId": "

The ID of the LAG.

Example: dxlag-abc123

Default: None

", + "Interconnect$lagId": null, + "Lag$lagId": null, + "UpdateLagRequest$lagId": "

The ID of the LAG to update.

Example: dxlag-abc123

Default: None

" + } + }, + "LagList": { + "base": "

A list of LAGs.

", + "refs": { + "Lags$lags": "

A list of LAGs.

" + } + }, + "LagName": { + "base": null, + "refs": { + "CreateLagRequest$lagName": "

The name of the LAG.

Example: \"3x10G LAG to AWS\"

Default: None

", + "Lag$lagName": "

The name of the LAG.

", + "UpdateLagRequest$lagName": "

The name for the LAG.

Example: \"3x10G LAG to AWS\"

Default: None

" + } + }, + "LagState": { + "base": "

The state of the LAG.

  • Requested: The initial state of a LAG. The LAG stays in the requested state until the Letter of Authorization (LOA) is available.

  • Pending: The LAG has been approved, and is being initialized.

  • Available: The network link is established, and the LAG is ready for use.

  • Down: The network link is down.

  • Deleting: The LAG is in the process of being deleted.

  • Deleted: The LAG has been deleted.

", + "refs": { + "Lag$lagState": null + } + }, + "Lags": { + "base": "

A structure containing a list of LAGs.

", + "refs": { + } + }, "Loa": { "base": "

A structure containing the Letter of Authorization - Connecting Facility Assignment (LOA-CFA) for a connection.

", "refs": { @@ -336,13 +566,14 @@ "refs": { "DescribeConnectionLoaRequest$loaContentType": null, "DescribeInterconnectLoaRequest$loaContentType": null, + "DescribeLoaRequest$loaContentType": "

A standard media type indicating the content type of the LOA-CFA document. Currently, the only supported value is \"application/pdf\".

Default: application/pdf

", "Loa$loaContentType": null } }, "LoaIssueTime": { "base": null, "refs": { - "Connection$loaIssueTime": "

The time of the most recent call to DescribeConnectionLoa for this Connection.

", + "Connection$loaIssueTime": "

The time of the most recent call to DescribeLoa for this connection.

", "Interconnect$loaIssueTime": "

The time of the most recent call to DescribeInterconnectLoa for this Interconnect.

" } }, @@ -358,7 +589,9 @@ "Connection$location": null, "CreateConnectionRequest$location": null, "CreateInterconnectRequest$location": "

Where the interconnect is located

Example: EqSV5

Default: None

", + "CreateLagRequest$location": "

The AWS Direct Connect location in which the LAG should be allocated.

Example: EqSV5

Default: None

", "Interconnect$location": null, + "Lag$location": null, "Location$locationCode": "

The code used to indicate the AWS Direct Connect location.

", "VirtualInterface$location": null } @@ -380,6 +613,12 @@ "refs": { } }, + "NewBGPPeer": { + "base": "

A structure containing information about a new BGP peer.

", + "refs": { + "CreateBGPPeerRequest$newBGPPeer": "

Detailed information for the BGP peer to be created.

Default: None

" + } + }, "NewPrivateVirtualInterface": { "base": "

A structure containing information about a new private virtual interface.

", "refs": { @@ -408,9 +647,11 @@ "base": null, "refs": { "AllocateConnectionOnInterconnectRequest$ownerAccount": "

Numeric account Id of the customer for whom the connection will be provisioned.

Example: 123443215678

Default: None

", + "AllocateHostedConnectionRequest$ownerAccount": "

The numeric account ID of the customer for whom the connection will be provisioned.

Example: 123443215678

Default: None

", "AllocatePrivateVirtualInterfaceRequest$ownerAccount": "

The AWS account that will own the new private virtual interface.

Default: None

", "AllocatePublicVirtualInterfaceRequest$ownerAccount": "

The AWS account that will own the new public virtual interface.

Default: None

", "Connection$ownerAccount": "

The AWS account that will own the new connection.

", + "Lag$ownerAccount": "

The owner of the LAG.

", "VirtualInterface$ownerAccount": "

The AWS account that will own the new virtual interface.

" } }, @@ -424,14 +665,43 @@ "base": null, "refs": { "DescribeConnectionLoaRequest$providerName": "

The name of the APN partner or service provider who establishes connectivity on your behalf. If you supply this parameter, the LOA-CFA lists the provider name alongside your company name as the requester of the cross connect.

Default: None

", - "DescribeInterconnectLoaRequest$providerName": "

The name of the service provider who establishes connectivity on your behalf. If you supply this parameter, the LOA-CFA lists the provider name alongside your company name as the requester of the cross connect.

Default: None

" + "DescribeInterconnectLoaRequest$providerName": "

The name of the service provider who establishes connectivity on your behalf. If you supply this parameter, the LOA-CFA lists the provider name alongside your company name as the requester of the cross connect.

Default: None

", + "DescribeLoaRequest$providerName": "

The name of the service provider who establishes connectivity on your behalf. If you supply this parameter, the LOA-CFA lists the provider name alongside your company name as the requester of the cross connect.

Default: None

" } }, "Region": { "base": "

The AWS region where the connection is located.

Example: us-east-1

Default: None

", "refs": { "Connection$region": null, - "Interconnect$region": null + "Interconnect$region": null, + "Lag$region": null + } + }, + "ResourceArn": { + "base": null, + "refs": { + "ResourceArnList$member": null, + "ResourceTag$resourceArn": "

The Amazon Resource Name (ARN) of the Direct Connect resource.

", + "TagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the Direct Connect resource.

Example: arn:aws:directconnect:us-east-1:123456789012:dxcon/dxcon-fg5678gh

", + "UntagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the Direct Connect resource.

" + } + }, + "ResourceArnList": { + "base": null, + "refs": { + "DescribeTagsRequest$resourceArns": "

The Amazon Resource Names (ARNs) of the Direct Connect resources.

" + } + }, + "ResourceTag": { + "base": "

The tags associated with a Direct Connect resource.

", + "refs": { + "ResourceTagList$member": null + } + }, + "ResourceTagList": { + "base": null, + "refs": { + "DescribeTagsResponse$resourceTags": "

Information about the tags.

" } }, "RouteFilterPrefix": { @@ -454,10 +724,73 @@ "VirtualInterface$customerRouterConfig": "

Information for generating the customer router configuration.

" } }, + "Tag": { + "base": "

Information about a tag.

", + "refs": { + "TagList$member": null + } + }, + "TagKey": { + "base": null, + "refs": { + "Tag$key": "

The key of the tag.

", + "TagKeyList$member": null + } + }, + "TagKeyList": { + "base": null, + "refs": { + "UntagResourceRequest$tagKeys": "

The list of tag keys to remove.

" + } + }, + "TagList": { + "base": null, + "refs": { + "ResourceTag$tags": "

The tags.

", + "TagResourceRequest$tags": "

The list of tags to add.

" + } + }, + "TagResourceRequest": { + "base": "

Container for the parameters to the TagResource operation.

", + "refs": { + } + }, + "TagResourceResponse": { + "base": "

The response received when TagResource is called.

", + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "Tag$value": "

The value of the tag.

" + } + }, + "TooManyTagsException": { + "base": "

You have reached the limit on the number of tags that can be assigned to a Direct Connect resource.

", + "refs": { + } + }, + "UntagResourceRequest": { + "base": "

Container for the parameters to the UntagResource operation.

", + "refs": { + } + }, + "UntagResourceResponse": { + "base": "

The response received when UntagResource is called.

", + "refs": { + } + }, + "UpdateLagRequest": { + "base": "

Container for the parameters to the UpdateLag operation.

", + "refs": { + } + }, "VLAN": { "base": "

The VLAN ID.

Example: 101

", "refs": { "AllocateConnectionOnInterconnectRequest$vlan": "

The dedicated VLAN provisioned to the connection.

Example: 101

Default: None

", + "AllocateHostedConnectionRequest$vlan": "

The dedicated VLAN provisioned to the hosted connection.

Example: 101

Default: None

", "Connection$vlan": null, "NewPrivateVirtualInterface$vlan": null, "NewPrivateVirtualInterfaceAllocation$vlan": null, @@ -501,14 +834,19 @@ "VirtualInterface": { "base": "

A virtual interface (VLAN) transmits the traffic between the AWS Direct Connect location and the customer.

", "refs": { + "CreateBGPPeerResponse$virtualInterface": null, + "DeleteBGPPeerResponse$virtualInterface": null, "VirtualInterfaceList$member": null } }, "VirtualInterfaceId": { - "base": "

ID of the virtual interface.

Example: dxvif-123dfg56

Default: None

", + "base": "

The ID of the virtual interface.

Example: dxvif-123dfg56

Default: None

", "refs": { + "AssociateVirtualInterfaceRequest$virtualInterfaceId": "

The ID of the virtual interface.

Example: dxvif-123dfg56

Default: None

", "ConfirmPrivateVirtualInterfaceRequest$virtualInterfaceId": null, "ConfirmPublicVirtualInterfaceRequest$virtualInterfaceId": null, + "CreateBGPPeerRequest$virtualInterfaceId": "

The ID of the virtual interface on which the BGP peer will be provisioned.

Example: dxvif-456abc78

Default: None

", + "DeleteBGPPeerRequest$virtualInterfaceId": "

The ID of the virtual interface from which the BGP peer will be deleted.

Example: dxvif-456abc78

Default: None

", "DeleteVirtualInterfaceRequest$virtualInterfaceId": null, "DescribeVirtualInterfacesRequest$virtualInterfaceId": null, "VirtualInterface$virtualInterfaceId": null @@ -531,7 +869,7 @@ } }, "VirtualInterfaceState": { - "base": "

State of the virtual interface.

  • Confirming: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.

  • Verifying: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.

  • Pending: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.

  • Available: A virtual interface that is able to forward traffic.

  • Down: A virtual interface that is BGP down.

  • Deleting: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.

  • Deleted: A virtual interface that cannot forward traffic.

  • Rejected: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the 'Confirming' state is deleted by the virtual interface owner, the virtual interface will enter the 'Rejected' state.

", + "base": "

State of the virtual interface.

  • Confirming: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.

  • Verifying: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.

  • Pending: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.

  • Available: A virtual interface that is able to forward traffic.

  • Down: A virtual interface that is BGP down.

  • Deleting: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.

  • Deleted: A virtual interface that cannot forward traffic.

  • Rejected: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the 'Confirming' state is deleted by the virtual interface owner, the virtual interface will enter the 'Rejected' state.

", "refs": { "ConfirmPrivateVirtualInterfaceResponse$virtualInterfaceState": null, "ConfirmPublicVirtualInterfaceResponse$virtualInterfaceState": null, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/paginators-1.json index cc93bedd4..b5a985f01 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/paginators-1.json @@ -19,4 +19,4 @@ "result_key": "virtualInterfaces" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/discovery/2015-11-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/discovery/2015-11-01/api-2.json index ce590fd67..bbc59c0a3 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/discovery/2015-11-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/discovery/2015-11-01/api-2.json @@ -7,9 +7,40 @@ "protocol":"json", "serviceFullName":"AWS Application Discovery Service", "signatureVersion":"v4", - "targetPrefix":"AWSPoseidonService_V2015_11_01" + "targetPrefix":"AWSPoseidonService_V2015_11_01", + "uid":"discovery-2015-11-01" }, "operations":{ + "AssociateConfigurationItemsToApplication":{ + "name":"AssociateConfigurationItemsToApplication", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateConfigurationItemsToApplicationRequest"}, + "output":{"shape":"AssociateConfigurationItemsToApplicationResponse"}, + "errors":[ + {"shape":"AuthorizationErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ServerInternalErrorException"} + ] + }, + "CreateApplication":{ + "name":"CreateApplication", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateApplicationRequest"}, + "output":{"shape":"CreateApplicationResponse"}, + "errors":[ + {"shape":"AuthorizationErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ServerInternalErrorException"} + ] + }, "CreateTags":{ "name":"CreateTags", "http":{ @@ -26,6 +57,21 @@ {"shape":"ServerInternalErrorException"} ] }, + "DeleteApplications":{ + "name":"DeleteApplications", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteApplicationsRequest"}, + "output":{"shape":"DeleteApplicationsResponse"}, + "errors":[ + {"shape":"AuthorizationErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ServerInternalErrorException"} + ] + }, "DeleteTags":{ "name":"DeleteTags", "http":{ @@ -104,6 +150,21 @@ {"shape":"ServerInternalErrorException"} ] }, + "DisassociateConfigurationItemsFromApplication":{ + "name":"DisassociateConfigurationItemsFromApplication", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociateConfigurationItemsFromApplicationRequest"}, + "output":{"shape":"DisassociateConfigurationItemsFromApplicationResponse"}, + "errors":[ + {"shape":"AuthorizationErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ServerInternalErrorException"} + ] + }, "ExportConfigurations":{ "name":"ExportConfigurations", "http":{ @@ -119,6 +180,21 @@ {"shape":"OperationNotPermittedException"} ] }, + "GetDiscoverySummary":{ + "name":"GetDiscoverySummary", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetDiscoverySummaryRequest"}, + "output":{"shape":"GetDiscoverySummaryResponse"}, + "errors":[ + {"shape":"AuthorizationErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ServerInternalErrorException"} + ] + }, "ListConfigurations":{ "name":"ListConfigurations", "http":{ @@ -135,6 +211,21 @@ {"shape":"ServerInternalErrorException"} ] }, + "ListServerNeighbors":{ + "name":"ListServerNeighbors", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListServerNeighborsRequest"}, + "output":{"shape":"ListServerNeighborsResponse"}, + "errors":[ + {"shape":"AuthorizationErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ServerInternalErrorException"} + ] + }, "StartDataCollectionByAgentIds":{ "name":"StartDataCollectionByAgentIds", "http":{ @@ -164,6 +255,21 @@ {"shape":"InvalidParameterValueException"}, {"shape":"ServerInternalErrorException"} ] + }, + "UpdateApplication":{ + "name":"UpdateApplication", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateApplicationRequest"}, + "output":{"shape":"UpdateApplicationResponse"}, + "errors":[ + {"shape":"AuthorizationErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ServerInternalErrorException"} + ] } }, "shapes":{ @@ -192,7 +298,11 @@ "agentNetworkInfoList":{"shape":"AgentNetworkInfoList"}, "connectorId":{"shape":"String"}, "version":{"shape":"String"}, - "health":{"shape":"AgentStatus"} + "health":{"shape":"AgentStatus"}, + "lastHealthPingTime":{"shape":"String"}, + "collectionStatus":{"shape":"String"}, + "agentType":{"shape":"String"}, + "registeredTime":{"shape":"String"} } }, "AgentNetworkInfo":{ @@ -221,6 +331,27 @@ "type":"list", "member":{"shape":"AgentInfo"} }, + "ApplicationId":{"type":"string"}, + "ApplicationIdsList":{ + "type":"list", + "member":{"shape":"ApplicationId"} + }, + "AssociateConfigurationItemsToApplicationRequest":{ + "type":"structure", + "required":[ + "applicationConfigurationId", + "configurationIds" + ], + "members":{ + "applicationConfigurationId":{"shape":"ApplicationId"}, + "configurationIds":{"shape":"ConfigurationIdList"} + } + }, + "AssociateConfigurationItemsToApplicationResponse":{ + "type":"structure", + "members":{ + } + }, "AuthorizationErrorException":{ "type":"structure", "members":{ @@ -229,6 +360,10 @@ "exception":true }, "Boolean":{"type":"boolean"}, + "BoxedInteger":{ + "type":"integer", + "box":true + }, "Condition":{"type":"string"}, "Configuration":{ "type":"map", @@ -245,7 +380,8 @@ "enum":[ "SERVER", "PROCESS", - "CONNECTION" + "CONNECTION", + "APPLICATION" ] }, "ConfigurationTag":{ @@ -271,6 +407,20 @@ }, "ConfigurationsDownloadUrl":{"type":"string"}, "ConfigurationsExportId":{"type":"string"}, + "CreateApplicationRequest":{ + "type":"structure", + "required":["name"], + "members":{ + "name":{"shape":"String"}, + "description":{"shape":"String"} + } + }, + "CreateApplicationResponse":{ + "type":"structure", + "members":{ + "configurationId":{"shape":"String"} + } + }, "CreateTagsRequest":{ "type":"structure", "required":[ @@ -287,6 +437,60 @@ "members":{ } }, + "CustomerAgentInfo":{ + "type":"structure", + "required":[ + "activeAgents", + "healthyAgents", + "blackListedAgents", + "shutdownAgents", + "unhealthyAgents", + "totalAgents", + "unknownAgents" + ], + "members":{ + "activeAgents":{"shape":"Integer"}, + "healthyAgents":{"shape":"Integer"}, + "blackListedAgents":{"shape":"Integer"}, + "shutdownAgents":{"shape":"Integer"}, + "unhealthyAgents":{"shape":"Integer"}, + "totalAgents":{"shape":"Integer"}, + "unknownAgents":{"shape":"Integer"} + } + }, + "CustomerConnectorInfo":{ + "type":"structure", + "required":[ + "activeConnectors", + "healthyConnectors", + "blackListedConnectors", + "shutdownConnectors", + "unhealthyConnectors", + "totalConnectors", + "unknownConnectors" + ], + "members":{ + "activeConnectors":{"shape":"Integer"}, + "healthyConnectors":{"shape":"Integer"}, + "blackListedConnectors":{"shape":"Integer"}, + "shutdownConnectors":{"shape":"Integer"}, + "unhealthyConnectors":{"shape":"Integer"}, + "totalConnectors":{"shape":"Integer"}, + "unknownConnectors":{"shape":"Integer"} + } + }, + "DeleteApplicationsRequest":{ + "type":"structure", + "required":["configurationIds"], + "members":{ + "configurationIds":{"shape":"ApplicationIdsList"} + } + }, + "DeleteApplicationsResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteTagsRequest":{ "type":"structure", "required":["configurationIds"], @@ -304,6 +508,7 @@ "type":"structure", "members":{ "agentIds":{"shape":"AgentIds"}, + "filters":{"shape":"Filters"}, "maxResults":{"shape":"Integer"}, "nextToken":{"shape":"NextToken"} } @@ -367,6 +572,22 @@ "nextToken":{"shape":"NextToken"} } }, + "DisassociateConfigurationItemsFromApplicationRequest":{ + "type":"structure", + "required":[ + "applicationConfigurationId", + "configurationIds" + ], + "members":{ + "applicationConfigurationId":{"shape":"ApplicationId"}, + "configurationIds":{"shape":"ConfigurationIdList"} + } + }, + "DisassociateConfigurationItemsFromApplicationResponse":{ + "type":"structure", + "members":{ + } + }, "ExportConfigurationsResponse":{ "type":"structure", "members":{ @@ -433,6 +654,22 @@ "type":"list", "member":{"shape":"Filter"} }, + "GetDiscoverySummaryRequest":{ + "type":"structure", + "members":{ + } + }, + "GetDiscoverySummaryResponse":{ + "type":"structure", + "members":{ + "servers":{"shape":"Long"}, + "applications":{"shape":"Long"}, + "serversMappedToApplications":{"shape":"Long"}, + "serversMappedtoTags":{"shape":"Long"}, + "agentSummary":{"shape":"CustomerAgentInfo"}, + "connectorSummary":{"shape":"CustomerConnectorInfo"} + } + }, "Integer":{"type":"integer"}, "InvalidParameterException":{ "type":"structure", @@ -455,7 +692,8 @@ "configurationType":{"shape":"ConfigurationItemType"}, "filters":{"shape":"Filters"}, "maxResults":{"shape":"Integer"}, - "nextToken":{"shape":"NextToken"} + "nextToken":{"shape":"NextToken"}, + "orderBy":{"shape":"OrderByList"} } }, "ListConfigurationsResponse":{ @@ -465,7 +703,47 @@ "nextToken":{"shape":"NextToken"} } }, + "ListServerNeighborsRequest":{ + "type":"structure", + "required":["configurationId"], + "members":{ + "configurationId":{"shape":"ConfigurationId"}, + "portInformationNeeded":{"shape":"Boolean"}, + "neighborConfigurationIds":{"shape":"ConfigurationIdList"}, + "maxResults":{"shape":"Integer"}, + "nextToken":{"shape":"String"} + } + }, + "ListServerNeighborsResponse":{ + "type":"structure", + "required":["neighbors"], + "members":{ + "neighbors":{"shape":"NeighborDetailsList"}, + "nextToken":{"shape":"String"}, + "knownDependencyCount":{"shape":"Long"} + } + }, + "Long":{"type":"long"}, "Message":{"type":"string"}, + "NeighborConnectionDetail":{ + "type":"structure", + "required":[ + "sourceServerId", + "destinationServerId", + "connectionsCount" + ], + "members":{ + "sourceServerId":{"shape":"ConfigurationId"}, + "destinationServerId":{"shape":"ConfigurationId"}, + "destinationPort":{"shape":"BoxedInteger"}, + "transportProtocol":{"shape":"String"}, + "connectionsCount":{"shape":"Long"} + } + }, + "NeighborDetailsList":{ + "type":"list", + "member":{"shape":"NeighborConnectionDetail"} + }, "NextToken":{"type":"string"}, "OperationNotPermittedException":{ "type":"structure", @@ -474,6 +752,18 @@ }, "exception":true }, + "OrderByElement":{ + "type":"structure", + "required":["fieldName"], + "members":{ + "fieldName":{"shape":"String"}, + "sortOrder":{"shape":"orderString"} + } + }, + "OrderByList":{ + "type":"list", + "member":{"shape":"OrderByElement"} + }, "ResourceNotFoundException":{ "type":"structure", "members":{ @@ -551,6 +841,27 @@ } }, "TagValue":{"type":"string"}, - "TimeStamp":{"type":"timestamp"} + "TimeStamp":{"type":"timestamp"}, + "UpdateApplicationRequest":{ + "type":"structure", + "required":["configurationId"], + "members":{ + "configurationId":{"shape":"ApplicationId"}, + "name":{"shape":"String"}, + "description":{"shape":"String"} + } + }, + "UpdateApplicationResponse":{ + "type":"structure", + "members":{ + } + }, + "orderString":{ + "type":"string", + "enum":[ + "ASC", + "DESC" + ] + } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/discovery/2015-11-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/discovery/2015-11-01/docs-2.json index cbb9bf5a9..b18b0467e 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/discovery/2015-11-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/discovery/2015-11-01/docs-2.json @@ -1,21 +1,28 @@ { "version": "2.0", - "service": "

The AWS Application Discovery Service helps Systems Integrators quickly and reliably plan application migration projects by automatically identifying applications running in on-premises data centers, their associated dependencies, and their performance profile.

Planning data center migrations can involve thousands of workloads that are often deeply interdependent. Application discovery and dependency mapping are important early first steps in the migration process, but difficult to perform at scale due to the lack of automated tools.

The AWS Application Discovery Service automatically collects configuration and usage data from servers to develop a list of applications, how they perform, and how they are interdependent. This information is securely retained in an AWS Application Discovery Service database which you can export as a CSV file into your preferred visualization tool or cloud migration solution to help reduce the complexity and time in planning your cloud migration.

The Application Discovery Service is currently available for preview. Only customers who are engaged with AWS Professional Services or a certified AWS partner can use the service. To see the list of certified partners and request access to the Application Discovery Service, complete the following preview form.

This API reference provides descriptions, syntax, and usage examples for each of the actions and data types for the Discovery Service. The topic for each action shows the API request parameters and the response. Alternatively, you can use one of the AWS SDKs to access an API that is tailored to the programming language or platform that you're using. For more information, see AWS SDKs.

This guide is intended for use with the AWS Discovery Service User Guide .

The following are short descriptions of each API action, organized by function.

Managing AWS Agents Using the Application Discovery Service

An AWS agent is software that you install on on-premises servers and virtual machines that are targeted for discovery and migration. Agents run on Linux and Windows Server and collect server configuration and activity information about your applications and infrastructure. Specifically, agents collect the following information and send it to the Application Discovery Service using Secure Sockets Layer (SSL) encryption:

  • User information (user name, home directory)

  • Group information (name)

  • List of installed packages

  • List of kernel modules

  • All create and stop process events

  • DNS queries

  • NIC information

  • TCP/UDP process listening ports

  • TCPV4/V6 connections

  • Operating system information

  • System performance

  • Process performance

The Application Discovery Service API includes the following actions to manage AWS agents:

  • StartDataCollectionByAgentIds: Instructs the specified agents to start collecting data. The Application Discovery Service takes several minutes to receive and process data after you initiate data collection.

  • StopDataCollectionByAgentIds: Instructs the specified agents to stop collecting data.

  • DescribeAgents: Lists AWS agents by ID or lists all agents associated with your user account if you did not specify an agent ID. The output includes agent IDs, IP addresses, media access control (MAC) addresses, agent health, host name where the agent resides, and the version number of each agent.

Querying Configuration Items

A configuration item is an IT asset that was discovered in your data center by an AWS agent. When you use the Application Discovery Service, you can specify filters and query specific configuration items. The service supports Server, Process, and Connection configuration items. This means you can specify a value for the following keys and query your IT assets:

Server

  • server.HostName

  • server.osName

  • server.osVersion

  • server.configurationId

  • server.agentId

Process

  • process.name

  • process.CommandLine

  • process.configurationId

  • server.hostName

  • server.osName

  • server.osVersion

  • server.configurationId

  • server.agentId

Connection

  • connection.sourceIp

  • connection.sourcePort

  • connection.destinationIp

  • connection.destinationPort

  • sourceProcess.configurationId

  • sourceProcess.commandLine

  • sourceProcess.name

  • destinationProcessId.configurationId

  • destinationProcess.commandLine

  • destinationProcess.name

  • sourceServer.configurationId

  • sourceServer.hostName

  • sourceServer.osName

  • sourceServer.osVersion

  • destinationServer.configurationId

  • destinationServer.hostName

  • destinationServer.osName

  • destinationServer.osVersion

The Application Discovery Service includes the following actions for querying configuration items.

  • DescribeConfigurations: Retrieves a list of attributes for a specific configuration ID. For example, the output for a server configuration item includes a list of attributes about the server, including host name, operating system, number of network cards, etc.

  • ListConfigurations: Retrieves a list of configuration items according to the criteria you specify in a filter. The filter criteria identify relationship requirements. For example, you can specify filter criteria of process.name with values of nginx and apache.

Tagging Discovered Configuration Items

You can tag discovered configuration items. Tags are metadata that help you categorize IT assets in your data center. Tags use a key-value format. For example, {\"key\": \"serverType\", \"value\": \"webServer\"}.

  • CreateTags: Creates one or more tags for a configuration items.

  • DescribeTags: Retrieves a list of configuration items that are tagged with a specific tag. Or, retrieves a list of all tags assigned to a specific configuration item.

  • DeleteTags: Deletes the association between a configuration item and one or more tags.

Exporting Data

You can export data as a CSV file to an Amazon S3 bucket or into your preferred visualization tool or cloud migration solution to help reduce the complexity and time in planning your cloud migration.

  • ExportConfigurations: Exports all discovered configuration data to an Amazon S3 bucket. Data includes tags and tag associations, processes, connections, servers, and system performance. This API returns an export ID which you can query using the GetExportStatus API.

  • DescribeExportConfigurations: Gets the status of the data export. When the export is complete, the service returns an Amazon S3 URL where you can download CSV files that include the data.

", + "service": "AWS Application Discovery Service

AWS Application Discovery Service helps you plan application migration projects by automatically identifying servers, virtual machines (VMs), software, and software dependencies running in your on-premises data centers. Application Discovery Service also collects application performance data, which can help you assess the outcome of your migration. The data collected by Application Discovery Service is securely retained in an Amazon-hosted and managed database in the cloud. You can export the data as a CSV or XML file into your preferred visualization tool or cloud-migration solution to plan your migration. For more information, see the Application Discovery Service FAQ.

Application Discovery Service offers two modes of operation.

  • Agentless discovery mode is recommended for environments that use VMware vCenter Server. This mode doesn't require you to install an agent on each host. Agentless discovery gathers server information regardless of the operating systems, which minimizes the time required for initial on-premises infrastructure assessment. Agentless discovery doesn't collect information about software and software dependencies. It also doesn't work in non-VMware environments. We recommend that you use agent-based discovery for non-VMware environments and if you want to collect information about software and software dependencies. You can also run agent-based and agentless discovery simultaneously. Use agentless discovery to quickly complete the initial infrastructure assessment and then install agents on select hosts to gather information about software and software dependencies.

  • Agent-based discovery mode collects a richer set of data than agentless discovery by using Amazon software, the AWS Application Discovery Agent, which you install on one or more hosts in your data center. The agent captures infrastructure and application information, including an inventory of installed software applications, system and process performance, resource utilization, and network dependencies between workloads. The information collected by agents is secured at rest and in transit to the Application Discovery Service database in the cloud.

Application Discovery Service integrates with application discovery solutions from AWS Partner Network (APN) partners. Third-party application discovery tools can query the Application Discovery Service and write to the Application Discovery Service database using a public API. You can then import the data into either a visualization tool or cloud-migration solution.

Application Discovery Service doesn't gather sensitive information. All data is handled according to the AWS Privacy Policy. You can operate Application Discovery Service using offline mode to inspect collected data before it is shared with the service.

Your AWS account must be granted access to Application Discovery Service, a process called whitelisting. This is true for AWS partners and customers alike. To request access, sign up for the AWS Application Discovery Service here. We will send you information about how to get started.

This API reference provides descriptions, syntax, and usage examples for each of the actions and data types for the Application Discovery Service. The topic for each action shows the API request parameters and the response. Alternatively, you can use one of the AWS SDKs to access an API that is tailored to the programming language or platform that you're using. For more information, see AWS SDKs.

This guide is intended for use with the AWS Application Discovery Service User Guide .

", "operations": { + "AssociateConfigurationItemsToApplication": "

Associates one or more configuration items with an application.

", + "CreateApplication": "

Creates an application with the given name and description.

", "CreateTags": "

Creates one or more tags for configuration items. Tags are metadata that help you categorize IT assets. This API accepts a list of multiple configuration items.

", + "DeleteApplications": "

Deletes a list of applications and their associations with configuration items.

", "DeleteTags": "

Deletes the association between configuration items and one or more tags. This API accepts a list of multiple configuration items.

", - "DescribeAgents": "

Lists AWS agents by ID or lists all agents associated with your user account if you did not specify an agent ID.

", - "DescribeConfigurations": "

Retrieves a list of attributes for a specific configuration ID. For example, the output for a server configuration item includes a list of attributes about the server, including host name, operating system, number of network cards, etc.

", + "DescribeAgents": "

Lists agents or the Connector by ID or lists all agents/Connectors associated with your user account if you did not specify an ID.

", + "DescribeConfigurations": "

Retrieves attributes for a list of configuration item IDs. All of the supplied IDs must be for the same asset type (server, application, process, or connection). Output fields are specific to the asset type selected. For example, the output for a server configuration item includes a list of attributes about the server, such as host name, operating system, and number of network cards.

For a complete list of outputs for each asset type, see Querying Discovered Configuration Items.

", "DescribeExportConfigurations": "

Retrieves the status of a given export process. You can retrieve status from a maximum of 100 processes.

", "DescribeTags": "

Retrieves a list of configuration items that are tagged with a specific tag. Or retrieves a list of all tags assigned to a specific configuration item.

", - "ExportConfigurations": "

Exports all discovered configuration data to an Amazon S3 bucket or an application that enables you to view and evaluate the data. Data includes tags and tag associations, processes, connections, servers, and system performance. This API returns an export ID which you can query using the GetExportStatus API. The system imposes a limit of two configuration exports in six hours.

", - "ListConfigurations": "

Retrieves a list of configurations items according to the criteria you specify in a filter. The filter criteria identify relationship requirements.

", - "StartDataCollectionByAgentIds": "

Instructs the specified agents to start collecting data. Agents can reside on host servers or virtual machines in your data center.

", - "StopDataCollectionByAgentIds": "

Instructs the specified agents to stop collecting data.

" + "DisassociateConfigurationItemsFromApplication": "

Disassociates one or more configuration items from an application.

", + "ExportConfigurations": "

Exports all discovered configuration data to an Amazon S3 bucket or an application that enables you to view and evaluate the data. Data includes tags and tag associations, processes, connections, servers, and system performance. This API returns an export ID which you can query using the DescribeExportConfigurations API. The system imposes a limit of two configuration exports in six hours.

", + "GetDiscoverySummary": "

Retrieves a short summary of discovered assets.

", + "ListConfigurations": "

Retrieves a list of configuration items according to criteria you specify in a filter. The filter criteria identify relationship requirements.

", + "ListServerNeighbors": "

Retrieves a list of servers which are one network hop away from a specified server.

", + "StartDataCollectionByAgentIds": "

Instructs the specified agents or Connectors to start collecting data.

", + "StopDataCollectionByAgentIds": "

Instructs the specified agents or Connectors to stop collecting data.

", + "UpdateApplication": "

Updates metadata about an application.

" }, "shapes": { "AgentConfigurationStatus": { - "base": "

Information about agents that were instructed to start collecting data. Information includes the agent ID, a description of the operation, and whether or not the agent configuration was updated.

", + "base": "

Information about agents or Connectors that were instructed to start collecting data. Information includes the agent/Connector ID, a description of the operation, and whether or not the agent/Connector configuration was updated.

", "refs": { "AgentConfigurationStatusList$member": null } @@ -23,33 +30,33 @@ "AgentConfigurationStatusList": { "base": null, "refs": { - "StartDataCollectionByAgentIdsResponse$agentsConfigurationStatus": "

Information about agents that were instructed to start collecting data. Information includes the agent ID, a description of the operation performed, and whether or not the agent configuration was updated.

", - "StopDataCollectionByAgentIdsResponse$agentsConfigurationStatus": "

Information about agents that were instructed to stop collecting data. Information includes the agent ID, a description of the operation performed, and whether or not the agent configuration was updated.

" + "StartDataCollectionByAgentIdsResponse$agentsConfigurationStatus": "

Information about agents or the Connector that were instructed to start collecting data. Information includes the agent/Connector ID, a description of the operation performed, and whether or not the agent/Connector configuration was updated.

", + "StopDataCollectionByAgentIdsResponse$agentsConfigurationStatus": "

Information about agents or the Connector that were instructed to stop collecting data. Information includes the agent/Connector ID, a description of the operation performed, and whether or not the agent/Connector configuration was updated.

" } }, "AgentId": { "base": null, "refs": { "AgentIds$member": null, - "AgentInfo$agentId": "

The agent ID.

" + "AgentInfo$agentId": "

The agent or connector ID.

" } }, "AgentIds": { "base": null, "refs": { - "DescribeAgentsRequest$agentIds": "

The agent IDs for which you want information. If you specify no IDs, the system returns information about all agents associated with your AWS user account.

", - "StartDataCollectionByAgentIdsRequest$agentIds": "

The IDs of the agents that you want to start collecting data. If you send a request to an AWS agent ID that you do not have permission to contact, according to your AWS account, the service does not throw an exception. Instead, it returns the error in the Description field. If you send a request to multiple agents and you do not have permission to contact some of those agents, the system does not throw an exception. Instead, the system shows Failed in the Description field.

", - "StopDataCollectionByAgentIdsRequest$agentIds": "

The IDs of the agents that you want to stop collecting data.

" + "DescribeAgentsRequest$agentIds": "

The agent or the Connector IDs for which you want information. If you specify no IDs, the system returns information about all agents/Connectors associated with your AWS user account.

", + "StartDataCollectionByAgentIdsRequest$agentIds": "

The IDs of the agents or Connectors that you want to start collecting data. If you send a request to an agent/Connector ID that you do not have permission to contact, according to your AWS account, the service does not throw an exception. Instead, it returns the error in the Description field. If you send a request to multiple agents/Connectors and you do not have permission to contact some of those agents/Connectors, the system does not throw an exception. Instead, the system shows Failed in the Description field.

", + "StopDataCollectionByAgentIdsRequest$agentIds": "

The IDs of the agents or Connectors that you want to stop collecting data.

" } }, "AgentInfo": { - "base": "

Information about agents associated with the user’s AWS account. Information includes agent IDs, IP addresses, media access control (MAC) addresses, agent health, hostname where the agent resides, and agent version for each agent.

", + "base": "

Information about agents or connectors associated with the user’s AWS account. Information includes agent or connector IDs, IP addresses, media access control (MAC) addresses, agent or connector health, hostname where the agent or connector resides, and agent version for each agent.

", "refs": { "AgentsInfo$member": null } }, "AgentNetworkInfo": { - "base": "

Network details about the host where the agent resides.

", + "base": "

Network details about the host where the agent/Connector resides.

", "refs": { "AgentNetworkInfoList$member": null } @@ -57,19 +64,44 @@ "AgentNetworkInfoList": { "base": null, "refs": { - "AgentInfo$agentNetworkInfoList": "

Network details about the host where the agent resides.

" + "AgentInfo$agentNetworkInfoList": "

Network details about the host where the agent or connector resides.

" } }, "AgentStatus": { "base": null, "refs": { - "AgentInfo$health": "

The health of the agent.

" + "AgentInfo$health": "

The health of the agent or connector.

" } }, "AgentsInfo": { "base": null, "refs": { - "DescribeAgentsResponse$agentsInfo": "

Lists AWS agents by ID or lists all agents associated with your user account if you did not specify an agent ID. The output includes agent IDs, IP addresses, media access control (MAC) addresses, agent health, host name where the agent resides, and the version number of each agent.

" + "DescribeAgentsResponse$agentsInfo": "

Lists agents or the Connector by ID or lists all agents/Connectors associated with your user account if you did not specify an agent/Connector ID. The output includes agent/Connector IDs, IP addresses, media access control (MAC) addresses, agent/Connector health, host name where the agent/Connector resides, and the version number of each agent/Connector.

" + } + }, + "ApplicationId": { + "base": null, + "refs": { + "ApplicationIdsList$member": null, + "AssociateConfigurationItemsToApplicationRequest$applicationConfigurationId": "

The configuration ID of an application with which items are to be associated.

", + "DisassociateConfigurationItemsFromApplicationRequest$applicationConfigurationId": "

Configuration ID of an application from which each item will be disassociated.

", + "UpdateApplicationRequest$configurationId": "

Configuration ID of the application to be updated.

" + } + }, + "ApplicationIdsList": { + "base": null, + "refs": { + "DeleteApplicationsRequest$configurationIds": "

Configuration ID of an application to be deleted.

" + } + }, + "AssociateConfigurationItemsToApplicationRequest": { + "base": null, + "refs": { + } + }, + "AssociateConfigurationItemsToApplicationResponse": { + "base": null, + "refs": { } }, "AuthorizationErrorException": { @@ -80,7 +112,14 @@ "Boolean": { "base": null, "refs": { - "AgentConfigurationStatus$operationSucceeded": "

Information about the status of the StartDataCollection and StopDataCollection operations. The system has recorded the data collection operation. The agent receives this command the next time it polls for a new command.

" + "AgentConfigurationStatus$operationSucceeded": "

Information about the status of the StartDataCollection and StopDataCollection operations. The system has recorded the data collection operation. The agent/Connector receives this command the next time it polls for a new command.

", + "ListServerNeighborsRequest$portInformationNeeded": "

Flag to indicate if port and protocol information is needed as part of the response.

" + } + }, + "BoxedInteger": { + "base": null, + "refs": { + "NeighborConnectionDetail$destinationPort": "

Destination network port for the connection.

" } }, "Condition": { @@ -99,15 +138,21 @@ "base": null, "refs": { "ConfigurationIdList$member": null, - "ConfigurationTag$configurationId": "

The configuration ID for the item you want to tag. You can specify a list of keys and values.

" + "ConfigurationTag$configurationId": "

The configuration ID for the item you want to tag. You can specify a list of keys and values.

", + "ListServerNeighborsRequest$configurationId": "

Configuration ID of the server for which neighbors are being listed.

", + "NeighborConnectionDetail$sourceServerId": "

ID of server that opened the network connection.

", + "NeighborConnectionDetail$destinationServerId": "

ID of the server that accepted the networker connection.

" } }, "ConfigurationIdList": { "base": null, "refs": { + "AssociateConfigurationItemsToApplicationRequest$configurationIds": "

The ID of each configuration item to be associated with an application.

", "CreateTagsRequest$configurationIds": "

A list of configuration items that you want to tag.

", "DeleteTagsRequest$configurationIds": "

A list of configuration items with tags that you want to delete.

", - "DescribeConfigurationsRequest$configurationIds": "

One or more configuration IDs.

" + "DescribeConfigurationsRequest$configurationIds": "

One or more configuration IDs.

", + "DisassociateConfigurationItemsFromApplicationRequest$configurationIds": "

Configuration ID of each item be be disassociated from an application.

", + "ListServerNeighborsRequest$neighborConfigurationIds": "

List of configuration IDs to test for one-hop-away.

" } }, "ConfigurationItemType": { @@ -149,6 +194,16 @@ "ExportInfo$exportId": "

A unique identifier that you can use to query the export.

" } }, + "CreateApplicationRequest": { + "base": null, + "refs": { + } + }, + "CreateApplicationResponse": { + "base": null, + "refs": { + } + }, "CreateTagsRequest": { "base": null, "refs": { @@ -159,6 +214,28 @@ "refs": { } }, + "CustomerAgentInfo": { + "base": "

Inventory data for installed discovery agents.

", + "refs": { + "GetDiscoverySummaryResponse$agentSummary": "

Details about discovered agents, including agent status and health.

" + } + }, + "CustomerConnectorInfo": { + "base": "

Inventory data for installed discovery connectors.

", + "refs": { + "GetDiscoverySummaryResponse$connectorSummary": "

Details about discovered connectors, including connector status and health.

" + } + }, + "DeleteApplicationsRequest": { + "base": null, + "refs": { + } + }, + "DeleteApplicationsResponse": { + "base": null, + "refs": { + } + }, "DeleteTagsRequest": { "base": null, "refs": { @@ -221,6 +298,16 @@ "refs": { } }, + "DisassociateConfigurationItemsFromApplicationRequest": { + "base": null, + "refs": { + } + }, + "DisassociateConfigurationItemsFromApplicationResponse": { + "base": null, + "refs": { + } + }, "ExportConfigurationsResponse": { "base": null, "refs": { @@ -263,7 +350,7 @@ } }, "Filter": { - "base": "

A filter that can use conditional operators.

", + "base": "

A filter that can use conditional operators.

for a complete list of filters and guidance for using them with the Application Discovery Service, see Querying Discovered Configuration Items.

", "refs": { "Filters$member": null } @@ -290,16 +377,42 @@ "Filters": { "base": null, "refs": { - "ListConfigurationsRequest$filters": "

You can filter the list using a key-value format. For example:

{\"key\": \"serverType\", \"value\": \"webServer\"}

You can separate these items by using logical operators.

" + "DescribeAgentsRequest$filters": "

You can filter the request using various logical operators and a key-value format. For example:

{\"key\": \"collectionStatus\", \"value\": \"STARTED\"}

For a complete list of filter options and guidance about using them with this action, see Managing AWS Application Discovery Service Agents and the AWS Application Discovery Connector .

", + "ListConfigurationsRequest$filters": "

You can filter the request using various logical operators and a key-value format. For example:

{\"key\": \"serverType\", \"value\": \"webServer\"}

For a complete list of filter options and guidance about using them with this action, see Querying Discovered Configuration Items.

" + } + }, + "GetDiscoverySummaryRequest": { + "base": null, + "refs": { + } + }, + "GetDiscoverySummaryResponse": { + "base": null, + "refs": { } }, "Integer": { "base": null, "refs": { - "DescribeAgentsRequest$maxResults": "

The total number of agents to return. The maximum value is 100.

", + "CustomerAgentInfo$activeAgents": "

Number of active discovery agents.

", + "CustomerAgentInfo$healthyAgents": "

Number of healthy discovery agents

", + "CustomerAgentInfo$blackListedAgents": "

Number of blacklisted discovery agents.

", + "CustomerAgentInfo$shutdownAgents": "

Number of discovery agents with status SHUTDOWN.

", + "CustomerAgentInfo$unhealthyAgents": "

Number of unhealthy discovery agents.

", + "CustomerAgentInfo$totalAgents": "

Total number of discovery agents.

", + "CustomerAgentInfo$unknownAgents": "

Number of unknown discovery agents.

", + "CustomerConnectorInfo$activeConnectors": "

Number of active discovery connectors.

", + "CustomerConnectorInfo$healthyConnectors": "

Number of healthy discovery connectors.

", + "CustomerConnectorInfo$blackListedConnectors": "

Number of blacklisted discovery connectors.

", + "CustomerConnectorInfo$shutdownConnectors": "

Number of discovery connectors with status SHUTDOWN,

", + "CustomerConnectorInfo$unhealthyConnectors": "

Number of unhealthy discovery connectors.

", + "CustomerConnectorInfo$totalConnectors": "

Total number of discovery connectors.

", + "CustomerConnectorInfo$unknownConnectors": "

Number of unknown discovery connectors.

", + "DescribeAgentsRequest$maxResults": "

The total number of agents/Connectors to return in a single page of output. The maximum value is 100.

", "DescribeExportConfigurationsRequest$maxResults": "

The maximum number of results that you want to display as a part of the query.

", - "DescribeTagsRequest$maxResults": "

The total number of items to return. The maximum value is 100.

", - "ListConfigurationsRequest$maxResults": "

The total number of items to return. The maximum value is 100.

" + "DescribeTagsRequest$maxResults": "

The total number of items to return in a single page of output. The maximum value is 100.

", + "ListConfigurationsRequest$maxResults": "

The total number of items to return. The maximum value is 100.

", + "ListServerNeighborsRequest$maxResults": "

Maximum number of results to return in a single page of output.

" } }, "InvalidParameterException": { @@ -322,6 +435,27 @@ "refs": { } }, + "ListServerNeighborsRequest": { + "base": null, + "refs": { + } + }, + "ListServerNeighborsResponse": { + "base": null, + "refs": { + } + }, + "Long": { + "base": null, + "refs": { + "GetDiscoverySummaryResponse$servers": "

Number of servers discovered.

", + "GetDiscoverySummaryResponse$applications": "

Number of applications discovered.

", + "GetDiscoverySummaryResponse$serversMappedToApplications": "

Number of servers mapped to applications.

", + "GetDiscoverySummaryResponse$serversMappedtoTags": "

Number of servers mapped to tags.

", + "ListServerNeighborsResponse$knownDependencyCount": "

Count of distinct servers that are one hop away from the given server.

", + "NeighborConnectionDetail$connectionsCount": "

Number of open network connections with the neighboring server.

" + } + }, "Message": { "base": null, "refs": { @@ -333,17 +467,29 @@ "ServerInternalErrorException$message": null } }, + "NeighborConnectionDetail": { + "base": "

Details about neighboring servers.

", + "refs": { + "NeighborDetailsList$member": null + } + }, + "NeighborDetailsList": { + "base": null, + "refs": { + "ListServerNeighborsResponse$neighbors": "

List of distinct servers that are one hop away from the given server.

" + } + }, "NextToken": { "base": null, "refs": { - "DescribeAgentsRequest$nextToken": "

A token to start the list. Use this token to get the next set of results.

", - "DescribeAgentsResponse$nextToken": "

The call returns a token. Use this token to get the next set of results.

", - "DescribeExportConfigurationsRequest$nextToken": "

A token to get the next set of results. For example, if you specified 100 IDs for DescribeConfigurationsRequest$configurationIds but set DescribeExportConfigurationsRequest$maxResults to 10, you will get results in a set of 10. Use the token in the query to get the next set of 10.

", - "DescribeExportConfigurationsResponse$nextToken": "

A token to get the next set of results. For example, if you specified 100 IDs for DescribeConfigurationsRequest$configurationIds but set DescribeExportConfigurationsRequest$maxResults to 10, you will get results in a set of 10. Use the token in the query to get the next set of 10.

", + "DescribeAgentsRequest$nextToken": "

Token to retrieve the next set of results. For example, if you previously specified 100 IDs for DescribeAgentsRequest$agentIds but set DescribeAgentsRequest$maxResults to 10, you received a set of 10 results along with a token. Use that token in this query to get the next set of 10.

", + "DescribeAgentsResponse$nextToken": "

Token to retrieve the next set of results. For example, if you specified 100 IDs for DescribeAgentsRequest$agentIds but set DescribeAgentsRequest$maxResults to 10, you received a set of 10 results along with this token. Use this token in the next query to retrieve the next set of 10.

", + "DescribeExportConfigurationsRequest$nextToken": "

A token to get the next set of results. For example, if you specified 100 IDs for DescribeExportConfigurationsRequest$exportIds but set DescribeExportConfigurationsRequest$maxResults to 10, you will get results in a set of 10. Use the token in the query to get the next set of 10.

", + "DescribeExportConfigurationsResponse$nextToken": "

A token to get the next set of results. For example, if you specified 100 IDs for DescribeExportConfigurationsRequest$exportIds but set DescribeExportConfigurationsRequest$maxResults to 10, you will get results in a set of 10. Use the token in the query to get the next set of 10.

", "DescribeTagsRequest$nextToken": "

A token to start the list. Use this token to get the next set of results.

", "DescribeTagsResponse$nextToken": "

The call returns a token. Use this token to get the next set of results.

", - "ListConfigurationsRequest$nextToken": "

A token to start the list. Use this token to get the next set of results.

", - "ListConfigurationsResponse$nextToken": "

The call returns a token. Use this token to get the next set of results.

" + "ListConfigurationsRequest$nextToken": "

Token to retrieve the next set of results. For example, if a previous call to ListConfigurations returned 100 items, but you set ListConfigurationsRequest$maxResults to 10, you received a set of 10 results along with a token. Use that token in this query to get the next set of 10.

", + "ListConfigurationsResponse$nextToken": "

Token to retrieve the next set of results. For example, if your call to ListConfigurations returned 100 items, but you set ListConfigurationsRequest$maxResults to 10, you received a set of 10 results along with this token. Use this token in the next query to retrieve the next set of 10.

" } }, "OperationNotPermittedException": { @@ -351,6 +497,18 @@ "refs": { } }, + "OrderByElement": { + "base": "

Field and direction for ordered output.

", + "refs": { + "OrderByList$member": null + } + }, + "OrderByList": { + "base": null, + "refs": { + "ListConfigurationsRequest$orderBy": "

Certain filter criteria return output that can be sorted in ascending or descending order. For a list of output characteristics for each filter, see Querying Discovered Configuration Items.

" + } + }, "ResourceNotFoundException": { "base": "

The specified configuration ID was not located. Verify the configuration ID and try again.

", "refs": { @@ -384,18 +542,31 @@ "String": { "base": null, "refs": { - "AgentConfigurationStatus$agentId": "

The agent ID.

", + "AgentConfigurationStatus$agentId": "

The agent/Connector ID.

", "AgentConfigurationStatus$description": "

A description of the operation performed.

", - "AgentInfo$hostName": "

The name of the host where the agent resides. The host can be a server or virtual machine.

", - "AgentInfo$connectorId": "

This data type is currently not valid.

", - "AgentInfo$version": "

The agent version.

", - "AgentNetworkInfo$ipAddress": "

The IP address for the host where the agent resides.

", - "AgentNetworkInfo$macAddress": "

The MAC address for the host where the agent resides.

", + "AgentInfo$hostName": "

The name of the host where the agent or connector resides. The host can be a server or virtual machine.

", + "AgentInfo$connectorId": "

The ID of the connector.

", + "AgentInfo$version": "

The agent or connector version.

", + "AgentInfo$lastHealthPingTime": "

Time since agent or connector health was reported.

", + "AgentInfo$collectionStatus": "

Status of the collection process for an agent or connector.

", + "AgentInfo$agentType": "

Type of agent.

", + "AgentInfo$registeredTime": "

Agent's first registration time stamp in UTC.

", + "AgentNetworkInfo$ipAddress": "

The IP address for the host where the agent/Connector resides.

", + "AgentNetworkInfo$macAddress": "

The MAC address for the host where the agent/Connector resides.

", "Configuration$key": null, "Configuration$value": null, + "CreateApplicationRequest$name": "

Name of the application to be created.

", + "CreateApplicationRequest$description": "

Description of the application to be created.

", + "CreateApplicationResponse$configurationId": "

Configuration ID of an application to be created.

", "DescribeConfigurationsAttribute$key": null, "DescribeConfigurationsAttribute$value": null, - "Filter$name": "

The name of the filter. The following filter names are allowed for SERVER configuration items.

Server

  • server.hostName

  • server.osName

  • server.osVersion

  • server.configurationid

  • server.agentid

The name of the filter. The following filter names are allowed for PROCESS configuration items.

Process

  • process.configurationid

  • process.name

  • process.commandLine

  • server.configurationid

  • server.hostName

  • server.osName

  • server.osVersion

  • server.agentId

The name of the filter. The following filter names are allowed for CONNECTION configuration items.

Connection

  • connection.sourceIp

  • connection.destinationIp

  • connection.destinationPort

  • sourceProcess.configurationId

  • sourceProcess.name

  • sourceProcess.commandLine

  • destinationProcess.configurationId

  • destinationProcess.name

  • destinationProcess.commandLine

  • sourceServer.configurationId

  • sourceServer.hostName

  • sourceServer.osName

  • sourceServer.osVersion

  • sourceServer.agentId

  • destinationServer.configurationId

  • destinationServer.hostName

  • destinationServer.osName

  • destinationServer.osVersion

  • destinationServer.agentId

" + "Filter$name": "

The name of the filter.

", + "ListServerNeighborsRequest$nextToken": "

Token to retrieve the next set of results. For example, if you previously specified 100 IDs for ListServerNeighborsRequest$neighborConfigurationIds but set ListServerNeighborsRequest$maxResults to 10, you received a set of 10 results along with a token. Use that token in this query to get the next set of 10.

", + "ListServerNeighborsResponse$nextToken": "

Token to retrieve the next set of results. For example, if you specified 100 IDs for ListServerNeighborsRequest$neighborConfigurationIds but set ListServerNeighborsRequest$maxResults to 10, you received a set of 10 results along with this token. Use this token in the next query to retrieve the next set of 10.

", + "NeighborConnectionDetail$transportProtocol": "

Network protocol used for the connection.

", + "OrderByElement$fieldName": "

Field to order on.

", + "UpdateApplicationRequest$name": "

New name of the application to be updated.

", + "UpdateApplicationRequest$description": "

New description of the application to be updated.

" } }, "Tag": { @@ -413,7 +584,7 @@ "TagFilters": { "base": null, "refs": { - "DescribeTagsRequest$filters": "

You can filter the list using a key-value format. You can separate these items by using logical operators. Allowed filters include tagKey, tagValue, and configurationId.

" + "DescribeTagsRequest$filters": "

You can filter the list using a key-value format. You can separate these items by using logical operators. Allowed filters include tagKey, tagValue, and configurationId.

For a complete list of filter options and guidance about using them with this action, see Managing AWS Application Discovery Service Agents and the AWS Application Discovery Connector .

" } }, "TagKey": { @@ -442,6 +613,22 @@ "refs": { "ConfigurationTag$timeOfCreation": "

The time the configuration tag was created in Coordinated Universal Time (UTC).

" } + }, + "UpdateApplicationRequest": { + "base": null, + "refs": { + } + }, + "UpdateApplicationResponse": { + "base": null, + "refs": { + } + }, + "orderString": { + "base": null, + "refs": { + "OrderByElement$sortOrder": "

Ordering direction.

" + } } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/api-2.json index 539d8864b..e96feeb5c 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/api-2.json @@ -7,7 +7,8 @@ "protocol":"json", "serviceFullName":"AWS Database Migration Service", "signatureVersion":"v4", - "targetPrefix":"AmazonDMSv20160101" + "targetPrefix":"AmazonDMSv20160101", + "uid":"dms-2016-01-01" }, "operations":{ "AddTagsToResource":{ @@ -35,7 +36,8 @@ {"shape":"ResourceAlreadyExistsFault"}, {"shape":"ResourceQuotaExceededFault"}, {"shape":"InvalidResourceStateFault"}, - {"shape":"ResourceNotFoundFault"} + {"shape":"ResourceNotFoundFault"}, + {"shape":"AccessDeniedFault"} ] }, "CreateReplicationInstance":{ @@ -369,6 +371,21 @@ {"shape":"InvalidSubnet"} ] }, + "ModifyReplicationTask":{ + "name":"ModifyReplicationTask", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyReplicationTaskMessage"}, + "output":{"shape":"ModifyReplicationTaskResponse"}, + "errors":[ + {"shape":"InvalidResourceStateFault"}, + {"shape":"ResourceNotFoundFault"}, + {"shape":"ResourceAlreadyExistsFault"}, + {"shape":"KMSKeyNotAccessibleFault"} + ] + }, "RefreshSchemas":{ "name":"RefreshSchemas", "http":{ @@ -491,6 +508,7 @@ "CertificateIdentifier":{"shape":"String"}, "CertificateCreationDate":{"shape":"TStamp"}, "CertificatePem":{"shape":"String"}, + "CertificateWallet":{"shape":"CertificateWallet"}, "CertificateArn":{"shape":"String"}, "CertificateOwner":{"shape":"String"}, "ValidFromDate":{"shape":"TStamp"}, @@ -506,6 +524,7 @@ "locationName":"Certificate" } }, + "CertificateWallet":{"type":"blob"}, "Connection":{ "type":"structure", "members":{ @@ -529,11 +548,7 @@ "required":[ "EndpointIdentifier", "EndpointType", - "EngineName", - "Username", - "Password", - "ServerName", - "Port" + "EngineName" ], "members":{ "EndpointIdentifier":{"shape":"String"}, @@ -938,7 +953,8 @@ "required":["CertificateIdentifier"], "members":{ "CertificateIdentifier":{"shape":"String"}, - "CertificatePem":{"shape":"String"} + "CertificatePem":{"shape":"String"}, + "CertificateWallet":{"shape":"CertificateWallet"} } }, "ImportCertificateResponse":{ @@ -1075,6 +1091,24 @@ "ReplicationSubnetGroup":{"shape":"ReplicationSubnetGroup"} } }, + "ModifyReplicationTaskMessage":{ + "type":"structure", + "required":["ReplicationTaskArn"], + "members":{ + "ReplicationTaskArn":{"shape":"String"}, + "ReplicationTaskIdentifier":{"shape":"String"}, + "MigrationType":{"shape":"MigrationTypeValue"}, + "TableMappings":{"shape":"String"}, + "ReplicationTaskSettings":{"shape":"String"}, + "CdcStartTime":{"shape":"TStamp"} + } + }, + "ModifyReplicationTaskResponse":{ + "type":"structure", + "members":{ + "ReplicationTask":{"shape":"ReplicationTask"} + } + }, "OrderableReplicationInstance":{ "type":"structure", "members":{ @@ -1180,7 +1214,8 @@ }, "ReplicationInstancePublicIpAddresses":{"shape":"ReplicationInstancePublicIpAddressList"}, "ReplicationInstancePrivateIpAddresses":{"shape":"ReplicationInstancePrivateIpAddressList"}, - "PubliclyAccessible":{"shape":"Boolean"} + "PubliclyAccessible":{"shape":"Boolean"}, + "SecondaryAvailabilityZone":{"shape":"String"} } }, "ReplicationInstanceList":{ @@ -1243,6 +1278,7 @@ "ReplicationTaskSettings":{"shape":"String"}, "Status":{"shape":"String"}, "LastFailureMessage":{"shape":"String"}, + "StopReason":{"shape":"String"}, "ReplicationTaskCreationDate":{"shape":"TStamp"}, "ReplicationTaskStartDate":{"shape":"TStamp"}, "ReplicationTaskArn":{"shape":"String"}, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/docs-2.json index 223f3da0d..bc6af433c 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/docs-2.json @@ -1,6 +1,6 @@ { "version": "2.0", - "service": "AWS Database Migration Service

AWS Database Migration Service (AWS DMS) can migrate your data to and from the most widely used commercial and open-source databases such as Oracle, PostgreSQL, Microsoft SQL Server, Amazon Redshift, MariaDB, Amazon Aurora, and MySQL. The service supports homogeneous migrations such as Oracle to Oracle, as well as heterogeneous migrations between different database platforms, such as Oracle to MySQL or SQL Server to PostgreSQL.

", + "service": "AWS Database Migration Service

AWS Database Migration Service (AWS DMS) can migrate your data to and from the most widely used commercial and open-source databases such as Oracle, PostgreSQL, Microsoft SQL Server, Amazon Redshift, MariaDB, Amazon Aurora, MySQL, and SAP Adaptive Server Enterprise (ASE). The service supports homogeneous migrations such as Oracle to Oracle, as well as heterogeneous migrations between different database platforms, such as Oracle to MySQL or SQL Server to PostgreSQL.

", "operations": { "AddTagsToResource": "

Adds metadata tags to a DMS resource, including replication instance, endpoint, security group, and migration task. These tags can also be used with cost allocation reporting to track cost associated with DMS resources, or used in a Condition statement in an IAM policy for DMS.

", "CreateEndpoint": "

Creates an endpoint using the provided settings.

", @@ -29,6 +29,7 @@ "ModifyEndpoint": "

Modifies the specified endpoint.

", "ModifyReplicationInstance": "

Modifies the replication instance to apply new settings. You can change one or more parameters by specifying these parameters and the new values in the request.

Some settings are applied during the maintenance window.

", "ModifyReplicationSubnetGroup": "

Modifies the settings for the specified replication subnet group.

", + "ModifyReplicationTask": "

Modifies the specified replication task.

You can't modify the task endpoints. The task must be stopped before you can modify it.

", "RefreshSchemas": "

Populates the schema for the specified endpoint. This is an asynchronous operation and can take several minutes. You can check the status of this operation by calling the DescribeRefreshSchemasStatus operation.

", "RemoveTagsFromResource": "

Removes metadata tags from a DMS resource.

", "StartReplicationTask": "

Starts the replication task.

", @@ -95,14 +96,21 @@ "base": "

The SSL certificate that can be used to encrypt connections between the endpoints and the replication instance.

", "refs": { "CertificateList$member": null, - "DeleteCertificateResponse$Certificate": "

The SSL certificate.

", + "DeleteCertificateResponse$Certificate": "

The Secure Sockets Layer (SSL) certificate.

", "ImportCertificateResponse$Certificate": "

The certificate to be uploaded.

" } }, "CertificateList": { "base": null, "refs": { - "DescribeCertificatesResponse$Certificates": "

The SSL certificates associated with the replication instance.

" + "DescribeCertificatesResponse$Certificates": "

The Secure Sockets Layer (SSL) certificates associated with the replication instance.

" + } + }, + "CertificateWallet": { + "base": null, + "refs": { + "Certificate$CertificateWallet": "

The location of the imported Oracle Wallet certificate for use with SSL.

", + "ImportCertificateMessage$CertificateWallet": "

The location of the imported Oracle Wallet certificate for use with SSL.

" } }, "Connection": { @@ -498,6 +506,7 @@ "base": null, "refs": { "CreateReplicationTaskMessage$MigrationType": "

The migration type.

", + "ModifyReplicationTaskMessage$MigrationType": "

The migration type.

Valid values: full-load | cdc | full-load-and-cdc

", "ReplicationTask$MigrationType": "

The type of migration.

" } }, @@ -531,6 +540,16 @@ "refs": { } }, + "ModifyReplicationTaskMessage": { + "base": "

", + "refs": { + } + }, + "ModifyReplicationTaskResponse": { + "base": "

", + "refs": { + } + }, "OrderableReplicationInstance": { "base": "

", "refs": { @@ -643,6 +662,7 @@ "refs": { "CreateReplicationTaskResponse$ReplicationTask": "

The replication task that was created.

", "DeleteReplicationTaskResponse$ReplicationTask": "

The deleted replication task.

", + "ModifyReplicationTaskResponse$ReplicationTask": "

The replication task that was modified.

", "ReplicationTaskList$member": null, "StartReplicationTaskResponse$ReplicationTask": "

The replication task started.

", "StopReplicationTaskResponse$ReplicationTask": "

The replication task stopped.

" @@ -725,8 +745,8 @@ "AccountQuota$AccountQuotaName": "

The name of the AWS DMS quota for this AWS account.

", "AddTagsToResourceMessage$ResourceArn": "

The Amazon Resource Name (ARN) of the AWS DMS resource the tag is to be added to. AWS DMS resources include a replication instance, endpoint, and a replication task.

", "AvailabilityZone$Name": "

The name of the availability zone.

", - "Certificate$CertificateIdentifier": "

The customer-assigned name of the certificate. Valid characters are [A-z_0-9].

", - "Certificate$CertificatePem": "

The contents of the .pem X.509 certificate file.

", + "Certificate$CertificateIdentifier": "

The customer-assigned name of the certificate. Valid characters are A-z and 0-9.

", + "Certificate$CertificatePem": "

The contents of the .pem X.509 certificate file for the certificate.

", "Certificate$CertificateArn": "

The Amazon Resource Name (ARN) for the certificate.

", "Certificate$CertificateOwner": "

The owner of the certificate.

", "Certificate$SigningAlgorithm": "

The signing algorithm for the certificate.

", @@ -737,7 +757,7 @@ "Connection$EndpointIdentifier": "

The identifier of the endpoint. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.

", "Connection$ReplicationInstanceIdentifier": "

The replication instance identifier. This parameter is stored as a lowercase string.

", "CreateEndpointMessage$EndpointIdentifier": "

The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.

", - "CreateEndpointMessage$EngineName": "

The type of engine for the endpoint. Valid values include MYSQL, ORACLE, POSTGRES, MARIADB, AURORA, REDSHIFT, and SQLSERVER.

", + "CreateEndpointMessage$EngineName": "

The type of engine for the endpoint. Valid values include MYSQL, ORACLE, POSTGRES, MARIADB, AURORA, REDSHIFT, SYBASE, and SQLSERVER.

", "CreateEndpointMessage$Username": "

The user name to be used to login to the endpoint database.

", "CreateEndpointMessage$ServerName": "

The name of the server where the endpoint database resides.

", "CreateEndpointMessage$DatabaseName": "

The name of the endpoint database.

", @@ -758,8 +778,8 @@ "CreateReplicationTaskMessage$TargetEndpointArn": "

The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

", "CreateReplicationTaskMessage$ReplicationInstanceArn": "

The Amazon Resource Name (ARN) of the replication instance.

", "CreateReplicationTaskMessage$TableMappings": "

The path of the JSON file that contains the table mappings. Preceed the path with \"file://\".

For example, --table-mappings file://mappingfile.json

", - "CreateReplicationTaskMessage$ReplicationTaskSettings": "

Settings for the task, such as target metadata settings.

", - "DeleteCertificateMessage$CertificateArn": "

the Amazon Resource Name (ARN) of the deleted certificate.

", + "CreateReplicationTaskMessage$ReplicationTaskSettings": "

Settings for the task, such as target metadata settings. For a complete list of task settings, see Task Settings for AWS Database Migration Service Tasks.

", + "DeleteCertificateMessage$CertificateArn": "

The Amazon Resource Name (ARN) of the deleted certificate.

", "DeleteEndpointMessage$EndpointArn": "

The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

", "DeleteReplicationInstanceMessage$ReplicationInstanceArn": "

The Amazon Resource Name (ARN) of the replication instance to be deleted.

", "DeleteReplicationSubnetGroupMessage$ReplicationSubnetGroupIdentifier": "

The subnet group name of the replication instance.

", @@ -789,7 +809,7 @@ "DescribeTableStatisticsResponse$ReplicationTaskArn": "

The Amazon Resource Name (ARN) of the replication task.

", "DescribeTableStatisticsResponse$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "Endpoint$EndpointIdentifier": "

The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.

", - "Endpoint$EngineName": "

The database engine name.

", + "Endpoint$EngineName": "

The database engine name. Valid values include MYSQL, ORACLE, POSTGRES, MARIADB, AURORA, REDSHIFT, SYBASE, and SQLSERVER.

", "Endpoint$Username": "

The user name used to connect to the endpoint.

", "Endpoint$ServerName": "

The name of the server at the endpoint.

", "Endpoint$DatabaseName": "

The name of the database at the endpoint.

", @@ -800,13 +820,13 @@ "Endpoint$CertificateArn": "

The Amazon Resource Name (ARN) used for SSL connection to the endpoint.

", "Filter$Name": "

The name of the filter.

", "FilterValueList$member": null, - "ImportCertificateMessage$CertificateIdentifier": "

The customer-assigned name of the certificate. Valid characters are [A-z_0-9].

", - "ImportCertificateMessage$CertificatePem": "

The contents of the .pem X.509 certificate file.

", + "ImportCertificateMessage$CertificateIdentifier": "

The customer-assigned name of the certificate. Valid characters are A-z and 0-9.

", + "ImportCertificateMessage$CertificatePem": "

The contents of the .pem X.509 certificate file for the certificate.

", "KeyList$member": null, "ListTagsForResourceMessage$ResourceArn": "

The Amazon Resource Name (ARN) string that uniquely identifies the AWS DMS resource.

", "ModifyEndpointMessage$EndpointArn": "

The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

", "ModifyEndpointMessage$EndpointIdentifier": "

The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.

", - "ModifyEndpointMessage$EngineName": "

The type of engine for the endpoint. Valid values include MYSQL, ORACLE, POSTGRES, MARIADB, AURORA, REDSHIFT, and SQLSERVER.

", + "ModifyEndpointMessage$EngineName": "

The type of engine for the endpoint. Valid values include MYSQL, ORACLE, POSTGRES, MARIADB, AURORA, REDSHIFT, SYBASE, and SQLSERVER.

", "ModifyEndpointMessage$Username": "

The user name to be used to login to the endpoint database.

", "ModifyEndpointMessage$ServerName": "

The name of the server where the endpoint database resides.

", "ModifyEndpointMessage$DatabaseName": "

The name of the endpoint database.

", @@ -819,6 +839,10 @@ "ModifyReplicationInstanceMessage$ReplicationInstanceIdentifier": "

The replication instance identifier. This parameter is stored as a lowercase string.

", "ModifyReplicationSubnetGroupMessage$ReplicationSubnetGroupIdentifier": "

The name of the replication instance subnet group.

", "ModifyReplicationSubnetGroupMessage$ReplicationSubnetGroupDescription": "

The description of the replication instance subnet group.

", + "ModifyReplicationTaskMessage$ReplicationTaskArn": "

The Amazon Resource Name (ARN) of the replication task.

", + "ModifyReplicationTaskMessage$ReplicationTaskIdentifier": "

The replication task identifier.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens.

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

", + "ModifyReplicationTaskMessage$TableMappings": "

The path of the JSON file that contains the table mappings. Preceed the path with \"file://\".

For example, --table-mappings file://mappingfile.json

", + "ModifyReplicationTaskMessage$ReplicationTaskSettings": "

JSON file that contains settings for the task, such as target metadata settings.

", "OrderableReplicationInstance$EngineVersion": "

The version of the replication engine.

", "OrderableReplicationInstance$ReplicationInstanceClass": "

The compute and memory capacity of the replication instance.

Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge

", "OrderableReplicationInstance$StorageType": "

The type of storage used by the replication instance.

", @@ -838,6 +862,7 @@ "ReplicationInstance$ReplicationInstanceArn": "

The Amazon Resource Name (ARN) of the replication instance.

", "ReplicationInstance$ReplicationInstancePublicIpAddress": "

The public IP address of the replication instance.

", "ReplicationInstance$ReplicationInstancePrivateIpAddress": "

The private IP address of the replication instance.

", + "ReplicationInstance$SecondaryAvailabilityZone": "

The availability zone of the standby replication instance in a Multi-AZ deployment.

", "ReplicationInstancePrivateIpAddressList$member": null, "ReplicationInstancePublicIpAddressList$member": null, "ReplicationPendingModifiedValues$ReplicationInstanceClass": "

The compute and memory capacity of the replication instance.

Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge

", @@ -854,6 +879,7 @@ "ReplicationTask$ReplicationTaskSettings": "

The settings for the replication task.

", "ReplicationTask$Status": "

The status of the replication task.

", "ReplicationTask$LastFailureMessage": "

The last error (failure) message generated for the replication instance.

", + "ReplicationTask$StopReason": "

The reason the replication task was stopped.

", "ReplicationTask$ReplicationTaskArn": "

The Amazon Resource Name (ARN) of the replication task.

", "SchemaList$member": null, "StartReplicationTaskMessage$ReplicationTaskArn": "

The Amazon Resource Number (ARN) of the replication task to be started.

", @@ -861,7 +887,7 @@ "Subnet$SubnetIdentifier": "

The subnet identifier.

", "Subnet$SubnetStatus": "

The status of the subnet.

", "SubnetIdentifierList$member": null, - "SupportedEndpointType$EngineName": "

The database engine name.

", + "SupportedEndpointType$EngineName": "

The database engine name. Valid values include MYSQL, ORACLE, POSTGRES, MARIADB, AURORA, REDSHIFT, SYBASE, and SQLSERVER.

", "TableStatistics$SchemaName": "

The schema name.

", "TableStatistics$TableName": "

The name of the table.

", "TableStatistics$TableState": "

The state of the table.

", @@ -913,10 +939,11 @@ "TStamp": { "base": null, "refs": { - "Certificate$CertificateCreationDate": "

the date the certificate was created.

", - "Certificate$ValidFromDate": "

The beginning date the certificate is valid.

", - "Certificate$ValidToDate": "

the final date the certificate is valid.

", + "Certificate$CertificateCreationDate": "

The date that the certificate was created.

", + "Certificate$ValidFromDate": "

The beginning date that the certificate is valid.

", + "Certificate$ValidToDate": "

The final date that the certificate is valid.

", "CreateReplicationTaskMessage$CdcStartTime": "

The start time for the Change Data Capture (CDC) operation.

", + "ModifyReplicationTaskMessage$CdcStartTime": "

The start time for the Change Data Capture (CDC) operation.

", "RefreshSchemasStatus$LastRefreshDate": "

The date the schema was last refreshed.

", "ReplicationInstance$InstanceCreateTime": "

The time the replication instance was created.

", "ReplicationTask$ReplicationTaskCreationDate": "

The date the replication task was created.

", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ds/2015-04-16/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ds/2015-04-16/api-2.json index 17e9282b3..9eb831a32 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ds/2015-04-16/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ds/2015-04-16/api-2.json @@ -8,7 +8,8 @@ "serviceAbbreviation":"Directory Service", "serviceFullName":"AWS Directory Service", "signatureVersion":"v4", - "targetPrefix":"DirectoryService_20150416" + "targetPrefix":"DirectoryService_20150416", + "uid":"ds-2015-04-16" }, "operations":{ "AddIpRoutes":{ @@ -45,6 +46,20 @@ {"shape":"ServiceException"} ] }, + "CancelSchemaExtension":{ + "name":"CancelSchemaExtension", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CancelSchemaExtensionRequest"}, + "output":{"shape":"CancelSchemaExtensionResult"}, + "errors":[ + {"shape":"EntityDoesNotExistException"}, + {"shape":"ClientException"}, + {"shape":"ServiceException"} + ] + }, "ConnectDirectory":{ "name":"ConnectDirectory", "http":{ @@ -441,6 +456,21 @@ {"shape":"ServiceException"} ] }, + "ListSchemaExtensions":{ + "name":"ListSchemaExtensions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListSchemaExtensionsRequest"}, + "output":{"shape":"ListSchemaExtensionsResult"}, + "errors":[ + {"shape":"InvalidNextTokenException"}, + {"shape":"EntityDoesNotExistException"}, + {"shape":"ClientException"}, + {"shape":"ServiceException"} + ] + }, "ListTagsForResource":{ "name":"ListTagsForResource", "http":{ @@ -518,6 +548,23 @@ {"shape":"ServiceException"} ] }, + "StartSchemaExtension":{ + "name":"StartSchemaExtension", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartSchemaExtensionRequest"}, + "output":{"shape":"StartSchemaExtensionResult"}, + "errors":[ + {"shape":"DirectoryUnavailableException"}, + {"shape":"EntityDoesNotExistException"}, + {"shape":"InvalidParameterException"}, + {"shape":"SnapshotLimitExceededException"}, + {"shape":"ClientException"}, + {"shape":"ServiceException"} + ] + }, "UpdateConditionalForwarder":{ "name":"UpdateConditionalForwarder", "http":{ @@ -642,6 +689,22 @@ "type":"list", "member":{"shape":"AvailabilityZone"} }, + "CancelSchemaExtensionRequest":{ + "type":"structure", + "required":[ + "DirectoryId", + "SchemaExtensionId" + ], + "members":{ + "DirectoryId":{"shape":"DirectoryId"}, + "SchemaExtensionId":{"shape":"SchemaExtensionId"} + } + }, + "CancelSchemaExtensionResult":{ + "type":"structure", + "members":{ + } + }, "CidrIp":{ "type":"string", "pattern":"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([1-9]|[1-2][0-9]|3[0-2]))$" @@ -821,6 +884,7 @@ "DirectoryId":{"shape":"DirectoryId"} } }, + "CreateSnapshotBeforeSchemaExtension":{"type":"boolean"}, "CreateSnapshotRequest":{ "type":"structure", "required":["DirectoryId"], @@ -1222,6 +1286,7 @@ "members":{ } }, + "EndDateTime":{"type":"timestamp"}, "EntityAlreadyExistsException":{ "type":"structure", "members":{ @@ -1357,6 +1422,11 @@ }, "LastUpdatedDateTime":{"type":"timestamp"}, "LaunchTime":{"type":"timestamp"}, + "LdifContent":{ + "type":"string", + "max":500000, + "min":1 + }, "Limit":{ "type":"integer", "min":0 @@ -1377,6 +1447,22 @@ "NextToken":{"shape":"NextToken"} } }, + "ListSchemaExtensionsRequest":{ + "type":"structure", + "required":["DirectoryId"], + "members":{ + "DirectoryId":{"shape":"DirectoryId"}, + "NextToken":{"shape":"NextToken"}, + "Limit":{"shape":"Limit"} + } + }, + "ListSchemaExtensionsResult":{ + "type":"structure", + "members":{ + "SchemaExtensionsInfo":{"shape":"SchemaExtensionsInfo"}, + "NextToken":{"shape":"NextToken"} + } + }, "ListTagsForResourceRequest":{ "type":"structure", "required":["ResourceId"], @@ -1547,6 +1633,41 @@ "min":1, "pattern":"[&\\w+-.@]+" }, + "SchemaExtensionId":{ + "type":"string", + "pattern":"^e-[0-9a-f]{10}$" + }, + "SchemaExtensionInfo":{ + "type":"structure", + "members":{ + "DirectoryId":{"shape":"DirectoryId"}, + "SchemaExtensionId":{"shape":"SchemaExtensionId"}, + "Description":{"shape":"Description"}, + "SchemaExtensionStatus":{"shape":"SchemaExtensionStatus"}, + "SchemaExtensionStatusReason":{"shape":"SchemaExtensionStatusReason"}, + "StartDateTime":{"shape":"StartDateTime"}, + "EndDateTime":{"shape":"EndDateTime"} + } + }, + "SchemaExtensionStatus":{ + "type":"string", + "enum":[ + "Initializing", + "CreatingSnapshot", + "UpdatingSchema", + "Replicating", + "CancelInProgress", + "RollbackInProgress", + "Cancelled", + "Failed", + "Completed" + ] + }, + "SchemaExtensionStatusReason":{"type":"string"}, + "SchemaExtensionsInfo":{ + "type":"list", + "member":{"shape":"SchemaExtensionInfo"} + }, "SecurityGroupId":{ "type":"string", "pattern":"^(sg-[0-9a-f]{8})$" @@ -1631,6 +1752,28 @@ }, "SsoEnabled":{"type":"boolean"}, "StageReason":{"type":"string"}, + "StartDateTime":{"type":"timestamp"}, + "StartSchemaExtensionRequest":{ + "type":"structure", + "required":[ + "DirectoryId", + "CreateSnapshotBeforeSchemaExtension", + "LdifContent", + "Description" + ], + "members":{ + "DirectoryId":{"shape":"DirectoryId"}, + "CreateSnapshotBeforeSchemaExtension":{"shape":"CreateSnapshotBeforeSchemaExtension"}, + "LdifContent":{"shape":"LdifContent"}, + "Description":{"shape":"Description"} + } + }, + "StartSchemaExtensionResult":{ + "type":"structure", + "members":{ + "SchemaExtensionId":{"shape":"SchemaExtensionId"} + } + }, "StartTime":{"type":"timestamp"}, "StateLastUpdatedDateTime":{"type":"timestamp"}, "SubnetId":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ds/2015-04-16/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ds/2015-04-16/docs-2.json index 65c31771f..90cce4638 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ds/2015-04-16/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ds/2015-04-16/docs-2.json @@ -1,19 +1,20 @@ { "version": "2.0", - "service": "AWS Directory Service

This is the AWS Directory Service API Reference. This guide provides detailed information about AWS Directory Service operations, data types, parameters, and errors.

", + "service": "AWS Directory Service

AWS Directory Service is a web service that makes it easy for you to setup and run directories in the AWS cloud, or connect your AWS resources with an existing on-premises Microsoft Active Directory. This guide provides detailed information about AWS Directory Service operations, data types, parameters, and errors. For information about AWS Directory Services features, see AWS Directory Service and the AWS Directory Service Administration Guide.

AWS provides SDKs that consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .Net, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to AWS Directory Service and other AWS services. For more information about the AWS SDKs, including how to download and install them, see Tools for Amazon Web Services.

", "operations": { - "AddIpRoutes": "

If the DNS server for your on-premises domain uses a publicly addressable IP address, you must add a CIDR address block to correctly route traffic to and from your Microsoft AD on Amazon Web Services. AddIpRoutes adds this address block. You can also use AddIpRoutes to facilitate routing traffic that uses public IP ranges from your Microsoft AD on AWS to a peer VPC.

", - "AddTagsToResource": "

Adds or overwrites one or more tags for the specified Amazon Directory Services directory. Each directory can have a maximum of 10 tags. Each tag consists of a key and optional value. Tag keys must be unique to each resource.

", - "ConnectDirectory": "

Creates an AD Connector to connect to an on-premises directory.

", + "AddIpRoutes": "

If the DNS server for your on-premises domain uses a publicly addressable IP address, you must add a CIDR address block to correctly route traffic to and from your Microsoft AD on Amazon Web Services. AddIpRoutes adds this address block. You can also use AddIpRoutes to facilitate routing traffic that uses public IP ranges from your Microsoft AD on AWS to a peer VPC.

Before you call AddIpRoutes, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the AddIpRoutes operation, see AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference.

", + "AddTagsToResource": "

Adds or overwrites one or more tags for the specified directory. Each directory can have a maximum of 50 tags. Each tag consists of a key and optional value. Tag keys must be unique to each resource.

", + "CancelSchemaExtension": "

Cancels an in-progress schema extension to a Microsoft AD directory. Once a schema extension has started replicating to all domain controllers, the task can no longer be canceled. A schema extension can be canceled during any of the following states; Initializing, CreatingSnapshot, and UpdatingSchema.

", + "ConnectDirectory": "

Creates an AD Connector to connect to an on-premises directory.

Before you call ConnectDirectory, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the ConnectDirectory operation, see AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference.

", "CreateAlias": "

Creates an alias for a directory and assigns the alias to the directory. The alias is used to construct the access URL for the directory, such as http://<alias>.awsapps.com.

After an alias has been created, it cannot be deleted or reused, so this operation should only be used when absolutely necessary.

", "CreateComputer": "

Creates a computer account in the specified directory, and joins the computer to the directory.

", "CreateConditionalForwarder": "

Creates a conditional forwarder associated with your AWS directory. Conditional forwarders are required in order to set up a trust relationship with another domain. The conditional forwarder points to the trusted domain.

", - "CreateDirectory": "

Creates a Simple AD directory.

", - "CreateMicrosoftAD": "

Creates a Microsoft AD in the AWS cloud.

", + "CreateDirectory": "

Creates a Simple AD directory.

Before you call CreateDirectory, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the CreateDirectory operation, see AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference.

", + "CreateMicrosoftAD": "

Creates a Microsoft AD in the AWS cloud.

Before you call CreateMicrosoftAD, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the CreateMicrosoftAD operation, see AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference.

", "CreateSnapshot": "

Creates a snapshot of a Simple AD or Microsoft AD directory in the AWS cloud.

You cannot take snapshots of AD Connector directories.

", "CreateTrust": "

AWS Directory Service for Microsoft Active Directory allows you to configure trust relationships. For example, you can establish a trust between your Microsoft AD in the AWS cloud, and your existing on-premises Microsoft Active Directory. This would allow you to provide users and groups access to resources in either domain, with a single set of credentials.

This action initiates the creation of the AWS side of a trust relationship between a Microsoft AD in the AWS cloud and an external domain.

", "DeleteConditionalForwarder": "

Deletes a conditional forwarder that has been set up for your AWS directory.

", - "DeleteDirectory": "

Deletes an AWS Directory Service directory.

", + "DeleteDirectory": "

Deletes an AWS Directory Service directory.

Before you call DeleteDirectory, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the DeleteDirectory operation, see AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference.

", "DeleteSnapshot": "

Deletes a directory snapshot.

", "DeleteTrust": "

Deletes an existing trust relationship between your Microsoft AD in the AWS cloud and an external domain.

", "DeregisterEventTopic": "

Removes the specified directory as a publisher to the specified SNS topic.

", @@ -25,15 +26,17 @@ "DisableRadius": "

Disables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector directory.

", "DisableSso": "

Disables single-sign on for a directory.

", "EnableRadius": "

Enables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector directory.

", - "EnableSso": "

Enables single-sign on for a directory.

", + "EnableSso": "

Enables single sign-on for a directory.

", "GetDirectoryLimits": "

Obtains directory limit information for the current region.

", "GetSnapshotLimits": "

Obtains the manual snapshot limits for a directory.

", "ListIpRoutes": "

Lists the address blocks that you have added to a directory.

", - "ListTagsForResource": "

Lists all tags on an Amazon Directory Services directory.

", + "ListSchemaExtensions": "

Lists all schema extensions applied to a Microsoft AD Directory.

", + "ListTagsForResource": "

Lists all tags on a directory.

", "RegisterEventTopic": "

Associates a directory with an SNS topic. This establishes the directory as a publisher to the specified SNS topic. You can then receive email or text (SMS) messages when the status of your directory changes. You get notified if your directory goes from an Active status to an Impaired or Inoperable status. You also receive a notification when the directory returns to an Active status.

", "RemoveIpRoutes": "

Removes IP address blocks from a directory.

", - "RemoveTagsFromResource": "

Removes tags from an Amazon Directory Services directory.

", + "RemoveTagsFromResource": "

Removes tags from a directory.

", "RestoreFromSnapshot": "

Restores a directory using an existing directory snapshot.

When you restore a directory from a snapshot, any changes made to the directory after the snapshot date are overwritten.

This action returns as soon as the restore operation is initiated. You can monitor the progress of the restore operation by calling the DescribeDirectories operation with the directory identifier. When the DirectoryDescription.Stage value changes to Active, the restore operation is complete.

", + "StartSchemaExtension": "

Applies a schema extension to a Microsoft AD directory.

", "UpdateConditionalForwarder": "

Updates a conditional forwarder that has been set up for your AWS directory.

", "UpdateRadius": "

Updates the Remote Authentication Dial In User Service (RADIUS) server information for an AD Connector directory.

", "VerifyTrust": "

AWS Directory Service for Microsoft Active Directory allows you to configure and verify trust relationships.

This action verifies a trust relationship between your Microsoft AD in the AWS cloud and an external domain.

" @@ -122,6 +125,16 @@ "DirectoryVpcSettingsDescription$AvailabilityZones": "

The list of Availability Zones that the directory is in.

" } }, + "CancelSchemaExtensionRequest": { + "base": null, + "refs": { + } + }, + "CancelSchemaExtensionResult": { + "base": null, + "refs": { + } + }, "CidrIp": { "base": null, "refs": { @@ -253,6 +266,12 @@ "refs": { } }, + "CreateSnapshotBeforeSchemaExtension": { + "base": null, + "refs": { + "StartSchemaExtensionRequest$CreateSnapshotBeforeSchemaExtension": "

If true, creates a snapshot of the directory before applying the schema extension.

" + } + }, "CreateSnapshotRequest": { "base": "

Contains the inputs for the CreateSnapshot operation.

", "refs": { @@ -394,7 +413,9 @@ "CreateMicrosoftADRequest$Description": "

A textual description for the directory. This label will appear on the AWS console Directory Details page after the directory is created.

", "DirectoryDescription$Description": "

The textual description for the directory.

", "IpRoute$Description": "

Description of the address block.

", - "IpRouteInfo$Description": "

Description of the IpRouteInfo.

" + "IpRouteInfo$Description": "

Description of the IpRouteInfo.

", + "SchemaExtensionInfo$Description": "

A description of the schema extension.

", + "StartSchemaExtensionRequest$Description": "

A description of the schema extension.

" } }, "DirectoryConnectSettings": { @@ -425,6 +446,7 @@ "base": null, "refs": { "AddIpRoutesRequest$DirectoryId": "

Identifier (ID) of the directory to which to add the address block.

", + "CancelSchemaExtensionRequest$DirectoryId": "

The identifier of the directory whose schema extension will be canceled.

", "ConnectDirectoryResult$DirectoryId": "

The identifier of the new directory.

", "CreateAliasRequest$DirectoryId": "

The identifier of the directory for which to create the alias.

", "CreateAliasResult$DirectoryId": "

The identifier of the directory.

", @@ -452,9 +474,12 @@ "GetSnapshotLimitsRequest$DirectoryId": "

Contains the identifier of the directory to obtain the limits for.

", "IpRouteInfo$DirectoryId": "

Identifier (ID) of the directory associated with the IP addresses.

", "ListIpRoutesRequest$DirectoryId": "

Identifier (ID) of the directory for which you want to retrieve the IP addresses.

", + "ListSchemaExtensionsRequest$DirectoryId": "

The identifier of the directory from which to retrieve the schema extension information.

", "RegisterEventTopicRequest$DirectoryId": "

The Directory ID that will publish status messages to the SNS topic.

", "RemoveIpRoutesRequest$DirectoryId": "

Identifier (ID) of the directory from which you want to remove the IP addresses.

", + "SchemaExtensionInfo$DirectoryId": "

The identifier of the directory to which the schema extension is applied.

", "Snapshot$DirectoryId": "

The directory identifier.

", + "StartSchemaExtensionRequest$DirectoryId": "

The identifier of the directory for which the schema extension will be applied to.

", "Trust$DirectoryId": "

The Directory ID of the AWS directory involved in the trust relationship.

", "UpdateConditionalForwarderRequest$DirectoryId": "

The directory ID of the AWS directory for which to update the conditional forwarder.

", "UpdateRadiusRequest$DirectoryId": "

The identifier of the directory for which to update the RADIUS server information.

" @@ -584,6 +609,12 @@ "refs": { } }, + "EndDateTime": { + "base": null, + "refs": { + "SchemaExtensionInfo$EndDateTime": "

The date and time that the schema extension was completed.

" + } + }, "EntityAlreadyExistsException": { "base": "

The specified entity already exists.

", "refs": { @@ -727,6 +758,12 @@ "DirectoryDescription$LaunchTime": "

Specifies when the directory was created.

" } }, + "LdifContent": { + "base": null, + "refs": { + "StartSchemaExtensionRequest$LdifContent": "

The LDIF file represented as a string. To construct the LdifContent string, precede each line as it would be formatted in an ldif file with \\n. See the example request below for more details. The file size can be no larger than 1MB.

" + } + }, "Limit": { "base": null, "refs": { @@ -740,6 +777,7 @@ "DirectoryLimits$ConnectedDirectoriesLimit": "

The maximum number of connected directories allowed in the region.

", "DirectoryLimits$ConnectedDirectoriesCurrentCount": "

The current number of connected directories in the region.

", "ListIpRoutesRequest$Limit": "

Maximum number of items to return. If this value is zero, the maximum number of items is specified by the limitations of the operation.

", + "ListSchemaExtensionsRequest$Limit": "

The maximum number of items to return.

", "ListTagsForResourceRequest$Limit": "

Reserved for future use.

", "SnapshotLimits$ManualSnapshotsLimit": "

The maximum number of manual snapshots allowed.

", "SnapshotLimits$ManualSnapshotsCurrentCount": "

The current number of manual snapshots of the directory.

" @@ -755,6 +793,16 @@ "refs": { } }, + "ListSchemaExtensionsRequest": { + "base": null, + "refs": { + } + }, + "ListSchemaExtensionsResult": { + "base": null, + "refs": { + } + }, "ListTagsForResourceRequest": { "base": null, "refs": { @@ -782,6 +830,8 @@ "DescribeTrustsResult$NextToken": "

If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeTrusts to retrieve the next set of items.

", "ListIpRoutesRequest$NextToken": "

The ListIpRoutes.NextToken value from a previous call to ListIpRoutes. Pass null if this is the first call.

", "ListIpRoutesResult$NextToken": "

If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to ListIpRoutes to retrieve the next set of items.

", + "ListSchemaExtensionsRequest$NextToken": "

The ListSchemaExtensions.NextToken value from a previous call to ListSchemaExtensions. Pass null if this is the first call.

", + "ListSchemaExtensionsResult$NextToken": "

If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to ListSchemaExtensions to retrieve the next set of items.

", "ListTagsForResourceRequest$NextToken": "

Reserved for future use.

", "ListTagsForResourceResult$NextToken": "

Reserved for future use.

" } @@ -946,6 +996,38 @@ "Computer$ComputerId": "

The identifier of the computer.

" } }, + "SchemaExtensionId": { + "base": null, + "refs": { + "CancelSchemaExtensionRequest$SchemaExtensionId": "

The identifier of the schema extension that will be canceled.

", + "SchemaExtensionInfo$SchemaExtensionId": "

The identifier of the schema extension.

", + "StartSchemaExtensionResult$SchemaExtensionId": "

The identifier of the schema extension that will be applied.

" + } + }, + "SchemaExtensionInfo": { + "base": "

Information about a schema extension.

", + "refs": { + "SchemaExtensionsInfo$member": null + } + }, + "SchemaExtensionStatus": { + "base": null, + "refs": { + "SchemaExtensionInfo$SchemaExtensionStatus": "

The current status of the schema extension.

" + } + }, + "SchemaExtensionStatusReason": { + "base": null, + "refs": { + "SchemaExtensionInfo$SchemaExtensionStatusReason": "

The reason for the SchemaExtensionStatus.

" + } + }, + "SchemaExtensionsInfo": { + "base": null, + "refs": { + "ListSchemaExtensionsResult$SchemaExtensionsInfo": "

Information about the schema extensions applied to the directory.

" + } + }, "SecurityGroupId": { "base": null, "refs": { @@ -1041,6 +1123,22 @@ "DirectoryDescription$StageReason": "

Additional information about the directory stage.

" } }, + "StartDateTime": { + "base": null, + "refs": { + "SchemaExtensionInfo$StartDateTime": "

The date and time that the schema extension started being applied to the directory.

" + } + }, + "StartSchemaExtensionRequest": { + "base": null, + "refs": { + } + }, + "StartSchemaExtensionResult": { + "base": null, + "refs": { + } + }, "StartTime": { "base": null, "refs": { @@ -1069,7 +1167,7 @@ } }, "Tag": { - "base": "

Metadata assigned to an Amazon Directory Services directory consisting of a key-value pair.

", + "base": "

Metadata assigned to a directory consisting of a key-value pair.

", "refs": { "Tags$member": null } @@ -1101,7 +1199,7 @@ "Tags": { "base": null, "refs": { - "AddTagsToResourceRequest$Tags": "

The tags to be assigned to the Amazon Directory Services directory.

", + "AddTagsToResourceRequest$Tags": "

The tags to be assigned to the directory.

", "ListTagsForResourceResult$Tags": "

List of tags returned by the ListTagsForResource operation.

" } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/api-2.json index 89de839f0..3f6767766 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/api-2.json @@ -8,7 +8,8 @@ "serviceAbbreviation":"DynamoDB", "serviceFullName":"Amazon DynamoDB", "signatureVersion":"v4", - "targetPrefix":"DynamoDB_20111205" + "targetPrefix":"DynamoDB_20111205", + "uid":"dynamodb-2011-12-05" }, "operations":{ "BatchGetItem":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/paginators-1.json index d4075e120..3037d662a 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/paginators-1.json @@ -6,21 +6,21 @@ }, "ListTables": { "input_token": "ExclusiveStartTableName", - "output_token": "LastEvaluatedTableName", "limit_key": "Limit", + "output_token": "LastEvaluatedTableName", "result_key": "TableNames" }, "Query": { "input_token": "ExclusiveStartKey", - "output_token": "LastEvaluatedKey", "limit_key": "Limit", + "output_token": "LastEvaluatedKey", "result_key": "Items" }, "Scan": { "input_token": "ExclusiveStartKey", - "output_token": "LastEvaluatedKey", "limit_key": "Limit", + "output_token": "LastEvaluatedKey", "result_key": "Items" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/api-2.json index a72e8da65..e15b1f26d 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/api-2.json @@ -8,7 +8,8 @@ "serviceAbbreviation":"DynamoDB", "serviceFullName":"Amazon DynamoDB", "signatureVersion":"v4", - "targetPrefix":"DynamoDB_20120810" + "targetPrefix":"DynamoDB_20120810", + "uid":"dynamodb-2012-08-10" }, "operations":{ "BatchGetItem":{ @@ -110,6 +111,19 @@ {"shape":"InternalServerError"} ] }, + "DescribeTimeToLive":{ + "name":"DescribeTimeToLive", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeTimeToLiveInput"}, + "output":{"shape":"DescribeTimeToLiveOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerError"} + ] + }, "GetItem":{ "name":"GetItem", "http":{ @@ -136,6 +150,19 @@ {"shape":"InternalServerError"} ] }, + "ListTagsOfResource":{ + "name":"ListTagsOfResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTagsOfResourceInput"}, + "output":{"shape":"ListTagsOfResourceOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerError"} + ] + }, "PutItem":{ "name":"PutItem", "http":{ @@ -180,6 +207,34 @@ {"shape":"InternalServerError"} ] }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagResourceInput"}, + "errors":[ + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerError"}, + {"shape":"ResourceInUseException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagResourceInput"}, + "errors":[ + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerError"}, + {"shape":"ResourceInUseException"} + ] + }, "UpdateItem":{ "name":"UpdateItem", "http":{ @@ -210,6 +265,21 @@ {"shape":"LimitExceededException"}, {"shape":"InternalServerError"} ] + }, + "UpdateTimeToLive":{ + "name":"UpdateTimeToLive", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateTimeToLiveInput"}, + "output":{"shape":"UpdateTimeToLiveOutput"}, + "errors":[ + {"shape":"ResourceInUseException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"LimitExceededException"}, + {"shape":"InternalServerError"} + ] } }, "shapes":{ @@ -525,6 +595,19 @@ "Table":{"shape":"TableDescription"} } }, + "DescribeTimeToLiveInput":{ + "type":"structure", + "required":["TableName"], + "members":{ + "TableName":{"shape":"TableName"} + } + }, + "DescribeTimeToLiveOutput":{ + "type":"structure", + "members":{ + "TimeToLiveDescription":{"shape":"TimeToLiveDescription"} + } + }, "ErrorMessage":{"type":"string"}, "ExpectedAttributeMap":{ "type":"map", @@ -777,6 +860,21 @@ "LastEvaluatedTableName":{"shape":"TableName"} } }, + "ListTagsOfResourceInput":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{"shape":"ResourceArnString"}, + "NextToken":{"shape":"NextTokenString"} + } + }, + "ListTagsOfResourceOutput":{ + "type":"structure", + "members":{ + "Tags":{"shape":"TagList"}, + "NextToken":{"shape":"NextTokenString"} + } + }, "LocalSecondaryIndex":{ "type":"structure", "required":[ @@ -815,6 +913,7 @@ "key":{"shape":"AttributeName"}, "value":{"shape":"AttributeValue"} }, + "NextTokenString":{"type":"string"}, "NonKeyAttributeName":{ "type":"string", "max":255, @@ -956,6 +1055,11 @@ "ConsumedCapacity":{"shape":"ConsumedCapacity"} } }, + "ResourceArnString":{ + "type":"string", + "max":1283, + "min":1 + }, "ResourceInUseException":{ "type":"structure", "members":{ @@ -1125,6 +1229,90 @@ "ACTIVE" ] }, + "Tag":{ + "type":"structure", + "required":[ + "Key", + "Value" + ], + "members":{ + "Key":{"shape":"TagKeyString"}, + "Value":{"shape":"TagValueString"} + } + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKeyString"} + }, + "TagKeyString":{ + "type":"string", + "max":128, + "min":1 + }, + "TagList":{ + "type":"list", + "member":{"shape":"Tag"} + }, + "TagResourceInput":{ + "type":"structure", + "required":[ + "ResourceArn", + "Tags" + ], + "members":{ + "ResourceArn":{"shape":"ResourceArnString"}, + "Tags":{"shape":"TagList"} + } + }, + "TagValueString":{ + "type":"string", + "max":256, + "min":0 + }, + "TimeToLiveAttributeName":{ + "type":"string", + "max":255, + "min":1 + }, + "TimeToLiveDescription":{ + "type":"structure", + "members":{ + "TimeToLiveStatus":{"shape":"TimeToLiveStatus"}, + "AttributeName":{"shape":"TimeToLiveAttributeName"} + } + }, + "TimeToLiveEnabled":{"type":"boolean"}, + "TimeToLiveSpecification":{ + "type":"structure", + "required":[ + "Enabled", + "AttributeName" + ], + "members":{ + "Enabled":{"shape":"TimeToLiveEnabled"}, + "AttributeName":{"shape":"TimeToLiveAttributeName"} + } + }, + "TimeToLiveStatus":{ + "type":"string", + "enum":[ + "ENABLING", + "DISABLING", + "ENABLED", + "DISABLED" + ] + }, + "UntagResourceInput":{ + "type":"structure", + "required":[ + "ResourceArn", + "TagKeys" + ], + "members":{ + "ResourceArn":{"shape":"ResourceArnString"}, + "TagKeys":{"shape":"TagKeyList"} + } + }, "UpdateExpression":{"type":"string"}, "UpdateGlobalSecondaryIndexAction":{ "type":"structure", @@ -1183,6 +1371,23 @@ "TableDescription":{"shape":"TableDescription"} } }, + "UpdateTimeToLiveInput":{ + "type":"structure", + "required":[ + "TableName", + "TimeToLiveSpecification" + ], + "members":{ + "TableName":{"shape":"TableName"}, + "TimeToLiveSpecification":{"shape":"TimeToLiveSpecification"} + } + }, + "UpdateTimeToLiveOutput":{ + "type":"structure", + "members":{ + "TimeToLiveSpecification":{"shape":"TimeToLiveSpecification"} + } + }, "WriteRequest":{ "type":"structure", "members":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/docs-2.json index 38082d233..f657f0134 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/docs-2.json @@ -1,27 +1,32 @@ { "version": "2.0", - "service": "Amazon DynamoDB

This is the Amazon DynamoDB API Reference. This guide provides descriptions of the low-level DynamoDB API.

This guide is intended for use with the following DynamoDB documentation:

Instead of making the requests to the low-level DynamoDB API directly from your application, we recommend that you use the AWS Software Development Kits (SDKs). The easy-to-use libraries in the AWS SDKs make it unnecessary to call the low-level DynamoDB API directly from your application. The libraries take care of request authentication, serialization, and connection management. For more information, see Using the AWS SDKs with DynamoDB in the Amazon DynamoDB Developer Guide.

If you decide to code against the low-level DynamoDB API directly, you will need to write the necessary code to authenticate your requests. For more information on signing your requests, see Using the DynamoDB API in the Amazon DynamoDB Developer Guide.

The following are short descriptions of each low-level API action, organized by function.

Managing Tables

  • CreateTable - Creates a table with user-specified provisioned throughput settings. You must define a primary key for the table - either a simple primary key (partition key), or a composite primary key (partition key and sort key). Optionally, you can create one or more secondary indexes, which provide fast data access using non-key attributes.

  • DescribeTable - Returns metadata for a table, such as table size, status, and index information.

  • UpdateTable - Modifies the provisioned throughput settings for a table. Optionally, you can modify the provisioned throughput settings for global secondary indexes on the table.

  • ListTables - Returns a list of all tables associated with the current AWS account and endpoint.

  • DeleteTable - Deletes a table and all of its indexes.

For conceptual information about managing tables, see Working with Tables in the Amazon DynamoDB Developer Guide.

Reading Data

  • GetItem - Returns a set of attributes for the item that has a given primary key. By default, GetItem performs an eventually consistent read; however, applications can request a strongly consistent read instead.

  • BatchGetItem - Performs multiple GetItem requests for data items using their primary keys, from one table or multiple tables. The response from BatchGetItem has a size limit of 16 MB and returns a maximum of 100 items. Both eventually consistent and strongly consistent reads can be used.

  • Query - Returns one or more items from a table or a secondary index. You must provide a specific value for the partition key. You can narrow the scope of the query using comparison operators against a sort key value, or on the index key. Query supports either eventual or strong consistency. A single response has a size limit of 1 MB.

  • Scan - Reads every item in a table; the result set is eventually consistent. You can limit the number of items returned by filtering the data attributes, using conditional expressions. Scan can be used to enable ad-hoc querying of a table against non-key attributes; however, since this is a full table scan without using an index, Scan should not be used for any application query use case that requires predictable performance.

For conceptual information about reading data, see Working with Items and Query and Scan Operations in the Amazon DynamoDB Developer Guide.

Modifying Data

  • PutItem - Creates a new item, or replaces an existing item with a new item (including all the attributes). By default, if an item in the table already exists with the same primary key, the new item completely replaces the existing item. You can use conditional operators to replace an item only if its attribute values match certain conditions, or to insert a new item only if that item doesn't already exist.

  • UpdateItem - Modifies the attributes of an existing item. You can also use conditional operators to perform an update only if the item's attribute values match certain conditions.

  • DeleteItem - Deletes an item in a table by primary key. You can use conditional operators to perform a delete an item only if the item's attribute values match certain conditions.

  • BatchWriteItem - Performs multiple PutItem and DeleteItem requests across multiple tables in a single request. A failure of any request(s) in the batch will not cause the entire BatchWriteItem operation to fail. Supports batches of up to 25 items to put or delete, with a maximum total request size of 16 MB.

For conceptual information about modifying data, see Working with Items and Query and Scan Operations in the Amazon DynamoDB Developer Guide.

", + "service": "Amazon DynamoDB

Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability. DynamoDB lets you offload the administrative burdens of operating and scaling a distributed database, so that you don't have to worry about hardware provisioning, setup and configuration, replication, software patching, or cluster scaling.

With DynamoDB, you can create database tables that can store and retrieve any amount of data, and serve any level of request traffic. You can scale up or scale down your tables' throughput capacity without downtime or performance degradation, and use the AWS Management Console to monitor resource utilization and performance metrics.

DynamoDB automatically spreads the data and traffic for your tables over a sufficient number of servers to handle your throughput and storage requirements, while maintaining consistent and fast performance. All of your data is stored on solid state disks (SSDs) and automatically replicated across multiple Availability Zones in an AWS region, providing built-in high availability and data durability.

", "operations": { - "BatchGetItem": "

The BatchGetItem operation returns the attributes of one or more items from one or more tables. You identify requested items by primary key.

A single operation can retrieve up to 16 MB of data, which can contain as many as 100 items. BatchGetItem will return a partial result if the response size limit is exceeded, the table's provisioned throughput is exceeded, or an internal processing failure occurs. If a partial result is returned, the operation returns a value for UnprocessedKeys. You can use this value to retry the operation starting with the next item to get.

If you request more than 100 items BatchGetItem will return a ValidationException with the message \"Too many items requested for the BatchGetItem call\".

For example, if you ask to retrieve 100 items, but each individual item is 300 KB in size, the system returns 52 items (so as not to exceed the 16 MB limit). It also returns an appropriate UnprocessedKeys value so you can get the next page of results. If desired, your application can include its own logic to assemble the pages of results into one data set.

If none of the items can be processed due to insufficient provisioned throughput on all of the tables in the request, then BatchGetItem will return a ProvisionedThroughputExceededException. If at least one of the items is successfully processed, then BatchGetItem completes successfully, while returning the keys of the unread items in UnprocessedKeys.

If DynamoDB returns any unprocessed items, you should retry the batch operation on those items. However, we strongly recommend that you use an exponential backoff algorithm. If you retry the batch operation immediately, the underlying read or write requests can still fail due to throttling on the individual tables. If you delay the batch operation using exponential backoff, the individual requests in the batch are much more likely to succeed.

For more information, see Batch Operations and Error Handling in the Amazon DynamoDB Developer Guide.

By default, BatchGetItem performs eventually consistent reads on every table in the request. If you want strongly consistent reads instead, you can set ConsistentRead to true for any or all tables.

In order to minimize response latency, BatchGetItem retrieves items in parallel.

When designing your application, keep in mind that DynamoDB does not return items in any particular order. To help parse the response by item, include the primary key values for the items in your request in the AttributesToGet parameter.

If a requested item does not exist, it is not returned in the result. Requests for nonexistent items consume the minimum read capacity units according to the type of read. For more information, see Capacity Units Calculations in the Amazon DynamoDB Developer Guide.

", - "BatchWriteItem": "

The BatchWriteItem operation puts or deletes multiple items in one or more tables. A single call to BatchWriteItem can write up to 16 MB of data, which can comprise as many as 25 put or delete requests. Individual items to be written can be as large as 400 KB.

BatchWriteItem cannot update items. To update items, use the UpdateItem API.

The individual PutItem and DeleteItem operations specified in BatchWriteItem are atomic; however BatchWriteItem as a whole is not. If any requested operations fail because the table's provisioned throughput is exceeded or an internal processing failure occurs, the failed operations are returned in the UnprocessedItems response parameter. You can investigate and optionally resend the requests. Typically, you would call BatchWriteItem in a loop. Each iteration would check for unprocessed items and submit a new BatchWriteItem request with those unprocessed items until all items have been processed.

Note that if none of the items can be processed due to insufficient provisioned throughput on all of the tables in the request, then BatchWriteItem will return a ProvisionedThroughputExceededException.

If DynamoDB returns any unprocessed items, you should retry the batch operation on those items. However, we strongly recommend that you use an exponential backoff algorithm. If you retry the batch operation immediately, the underlying read or write requests can still fail due to throttling on the individual tables. If you delay the batch operation using exponential backoff, the individual requests in the batch are much more likely to succeed.

For more information, see Batch Operations and Error Handling in the Amazon DynamoDB Developer Guide.

With BatchWriteItem, you can efficiently write or delete large amounts of data, such as from Amazon Elastic MapReduce (EMR), or copy data from another database into DynamoDB. In order to improve performance with these large-scale operations, BatchWriteItem does not behave in the same way as individual PutItem and DeleteItem calls would. For example, you cannot specify conditions on individual put and delete requests, and BatchWriteItem does not return deleted items in the response.

If you use a programming language that supports concurrency, you can use threads to write items in parallel. Your application must include the necessary logic to manage the threads. With languages that don't support threading, you must update or delete the specified items one at a time. In both situations, BatchWriteItem provides an alternative where the API performs the specified put and delete operations in parallel, giving you the power of the thread pool approach without having to introduce complexity into your application.

Parallel processing reduces latency, but each specified put and delete request consumes the same number of write capacity units whether it is processed in parallel or not. Delete operations on nonexistent items consume one write capacity unit.

If one or more of the following is true, DynamoDB rejects the entire batch write operation:

  • One or more tables specified in the BatchWriteItem request does not exist.

  • Primary key attributes specified on an item in the request do not match those in the corresponding table's primary key schema.

  • You try to perform multiple operations on the same item in the same BatchWriteItem request. For example, you cannot put and delete the same item in the same BatchWriteItem request.

  • There are more than 25 requests in the batch.

  • Any individual item in a batch exceeds 400 KB.

  • The total request size exceeds 16 MB.

", - "CreateTable": "

The CreateTable operation adds a new table to your account. In an AWS account, table names must be unique within each region. That is, you can have two tables with same name if you create the tables in different regions.

CreateTable is an asynchronous operation. Upon receiving a CreateTable request, DynamoDB immediately returns a response with a TableStatus of CREATING. After the table is created, DynamoDB sets the TableStatus to ACTIVE. You can perform read and write operations only on an ACTIVE table.

You can optionally define secondary indexes on the new table, as part of the CreateTable operation. If you want to create multiple tables with secondary indexes on them, you must create the tables sequentially. Only one table with secondary indexes can be in the CREATING state at any given time.

You can use the DescribeTable API to check the table status.

", - "DeleteItem": "

Deletes a single item in a table by primary key. You can perform a conditional delete operation that deletes the item if it exists, or if it has an expected attribute value.

In addition to deleting an item, you can also return the item's attribute values in the same operation, using the ReturnValues parameter.

Unless you specify conditions, the DeleteItem is an idempotent operation; running it multiple times on the same item or attribute does not result in an error response.

Conditional deletes are useful for deleting items only if specific conditions are met. If those conditions are met, DynamoDB performs the delete. Otherwise, the item is not deleted.

", - "DeleteTable": "

The DeleteTable operation deletes a table and all of its items. After a DeleteTable request, the specified table is in the DELETING state until DynamoDB completes the deletion. If the table is in the ACTIVE state, you can delete it. If a table is in CREATING or UPDATING states, then DynamoDB returns a ResourceInUseException. If the specified table does not exist, DynamoDB returns a ResourceNotFoundException. If table is already in the DELETING state, no error is returned.

DynamoDB might continue to accept data read and write operations, such as GetItem and PutItem, on a table in the DELETING state until the table deletion is complete.

When you delete a table, any indexes on that table are also deleted.

If you have DynamoDB Streams enabled on the table, then the corresponding stream on that table goes into the DISABLED state, and the stream is automatically deleted after 24 hours.

Use the DescribeTable API to check the status of the table.

", - "DescribeLimits": "

Returns the current provisioned-capacity limits for your AWS account in a region, both for the region as a whole and for any one DynamoDB table that you create there.

When you establish an AWS account, the account has initial limits on the maximum read capacity units and write capacity units that you can provision across all of your DynamoDB tables in a given region. Also, there are per-table limits that apply when you create a table there. For more information, see Limits page in the Amazon DynamoDB Developer Guide.

Although you can increase these limits by filing a case at AWS Support Center, obtaining the increase is not instantaneous. The DescribeLimits API lets you write code to compare the capacity you are currently using to those limits imposed by your account so that you have enough time to apply for an increase before you hit a limit.

For example, you could use one of the AWS SDKs to do the following:

  1. Call DescribeLimits for a particular region to obtain your current account limits on provisioned capacity there.

  2. Create a variable to hold the aggregate read capacity units provisioned for all your tables in that region, and one to hold the aggregate write capacity units. Zero them both.

  3. Call ListTables to obtain a list of all your DynamoDB tables.

  4. For each table name listed by ListTables, do the following:

    • Call DescribeTable with the table name.

    • Use the data returned by DescribeTable to add the read capacity units and write capacity units provisioned for the table itself to your variables.

    • If the table has one or more global secondary indexes (GSIs), loop over these GSIs and add their provisioned capacity values to your variables as well.

  5. Report the account limits for that region returned by DescribeLimits, along with the total current provisioned capacity levels you have calculated.

This will let you see whether you are getting close to your account-level limits.

The per-table limits apply only when you are creating a new table. They restrict the sum of the provisioned capacity of the new table itself and all its global secondary indexes.

For existing tables and their GSIs, DynamoDB will not let you increase provisioned capacity extremely rapidly, but the only upper limit that applies is that the aggregate provisioned capacity over all your tables and GSIs cannot exceed either of the per-account limits.

DescribeLimits should only be called periodically. You can expect throttling errors if you call it more than once in a minute.

The DescribeLimits Request element has no content.

", - "DescribeTable": "

Returns information about the table, including the current status of the table, when it was created, the primary key schema, and any indexes on the table.

If you issue a DescribeTable request immediately after a CreateTable request, DynamoDB might return a ResourceNotFoundException. This is because DescribeTable uses an eventually consistent query, and the metadata for your table might not be available at that moment. Wait for a few seconds, and then try the DescribeTable request again.

", - "GetItem": "

The GetItem operation returns a set of attributes for the item with the given primary key. If there is no matching item, GetItem does not return any data.

GetItem provides an eventually consistent read by default. If your application requires a strongly consistent read, set ConsistentRead to true. Although a strongly consistent read might take more time than an eventually consistent read, it always returns the last updated value.

", - "ListTables": "

Returns an array of table names associated with the current account and endpoint. The output from ListTables is paginated, with each page returning a maximum of 100 table names.

", - "PutItem": "

Creates a new item, or replaces an old item with a new item. If an item that has the same primary key as the new item already exists in the specified table, the new item completely replaces the existing item. You can perform a conditional put operation (add a new item if one with the specified primary key doesn't exist), or replace an existing item if it has certain attribute values.

In addition to putting an item, you can also return the item's attribute values in the same operation, using the ReturnValues parameter.

When you add an item, the primary key attribute(s) are the only required attributes. Attribute values cannot be null. String and Binary type attributes must have lengths greater than zero. Set type attributes cannot be empty. Requests with empty values will be rejected with a ValidationException exception.

You can request that PutItem return either a copy of the original item (before the update) or a copy of the updated item (after the update). For more information, see the ReturnValues description below.

To prevent a new item from replacing an existing item, use a conditional expression that contains the attribute_not_exists function with the name of the attribute being used as the partition key for the table. Since every record must contain that attribute, the attribute_not_exists function will only succeed if no matching item exists.

For more information about using this API, see Working with Items in the Amazon DynamoDB Developer Guide.

", - "Query": "

A Query operation uses the primary key of a table or a secondary index to directly access items from that table or index.

Use the KeyConditionExpression parameter to provide a specific value for the partition key. The Query operation will return all of the items from the table or index with that partition key value. You can optionally narrow the scope of the Query operation by specifying a sort key value and a comparison operator in KeyConditionExpression. You can use the ScanIndexForward parameter to get results in forward or reverse order, by sort key.

Queries that do not return results consume the minimum number of read capacity units for that type of read operation.

If the total number of items meeting the query criteria exceeds the result set size limit of 1 MB, the query stops and results are returned to the user with the LastEvaluatedKey element to continue the query in a subsequent operation. Unlike a Scan operation, a Query operation never returns both an empty result set and a LastEvaluatedKey value. LastEvaluatedKey is only provided if you have used the Limit parameter, or if the result set exceeds 1 MB (prior to applying a filter).

You can query a table, a local secondary index, or a global secondary index. For a query on a table or on a local secondary index, you can set the ConsistentRead parameter to true and obtain a strongly consistent result. Global secondary indexes support eventually consistent reads only, so do not specify ConsistentRead when querying a global secondary index.

", - "Scan": "

The Scan operation returns one or more items and item attributes by accessing every item in a table or a secondary index. To have DynamoDB return fewer items, you can provide a ScanFilter operation.

If the total number of scanned items exceeds the maximum data set size limit of 1 MB, the scan stops and results are returned to the user as a LastEvaluatedKey value to continue the scan in a subsequent operation. The results also include the number of items exceeding the limit. A scan can result in no table data meeting the filter criteria.

By default, Scan operations proceed sequentially; however, for faster performance on a large table or secondary index, applications can request a parallel Scan operation by providing the Segment and TotalSegments parameters. For more information, see Parallel Scan in the Amazon DynamoDB Developer Guide.

By default, Scan uses eventually consistent reads when accessing the data in a table; therefore, the result set might not include the changes to data in the table immediately before the operation began. If you need a consistent copy of the data, as of the time that the Scan begins, you can set the ConsistentRead parameter to true.

", - "UpdateItem": "

Edits an existing item's attributes, or adds a new item to the table if it does not already exist. You can put, delete, or add attribute values. You can also perform a conditional update on an existing item (insert a new attribute name-value pair if it doesn't exist, or replace an existing name-value pair if it has certain expected attribute values).

You can also return the item's attribute values in the same UpdateItem operation using the ReturnValues parameter.

", - "UpdateTable": "

Modifies the provisioned throughput settings, global secondary indexes, or DynamoDB Streams settings for a given table.

You can only perform one of the following operations at once:

  • Modify the provisioned throughput settings of the table.

  • Enable or disable Streams on the table.

  • Remove a global secondary index from the table.

  • Create a new global secondary index on the table. Once the index begins backfilling, you can use UpdateTable to perform other operations.

UpdateTable is an asynchronous operation; while it is executing, the table status changes from ACTIVE to UPDATING. While it is UPDATING, you cannot issue another UpdateTable request. When the table returns to the ACTIVE state, the UpdateTable operation is complete.

" + "BatchGetItem": "

The BatchGetItem operation returns the attributes of one or more items from one or more tables. You identify requested items by primary key.

A single operation can retrieve up to 16 MB of data, which can contain as many as 100 items. BatchGetItem will return a partial result if the response size limit is exceeded, the table's provisioned throughput is exceeded, or an internal processing failure occurs. If a partial result is returned, the operation returns a value for UnprocessedKeys. You can use this value to retry the operation starting with the next item to get.

If you request more than 100 items BatchGetItem will return a ValidationException with the message \"Too many items requested for the BatchGetItem call\".

For example, if you ask to retrieve 100 items, but each individual item is 300 KB in size, the system returns 52 items (so as not to exceed the 16 MB limit). It also returns an appropriate UnprocessedKeys value so you can get the next page of results. If desired, your application can include its own logic to assemble the pages of results into one data set.

If none of the items can be processed due to insufficient provisioned throughput on all of the tables in the request, then BatchGetItem will return a ProvisionedThroughputExceededException. If at least one of the items is successfully processed, then BatchGetItem completes successfully, while returning the keys of the unread items in UnprocessedKeys.

If DynamoDB returns any unprocessed items, you should retry the batch operation on those items. However, we strongly recommend that you use an exponential backoff algorithm. If you retry the batch operation immediately, the underlying read or write requests can still fail due to throttling on the individual tables. If you delay the batch operation using exponential backoff, the individual requests in the batch are much more likely to succeed.

For more information, see Batch Operations and Error Handling in the Amazon DynamoDB Developer Guide.

By default, BatchGetItem performs eventually consistent reads on every table in the request. If you want strongly consistent reads instead, you can set ConsistentRead to true for any or all tables.

In order to minimize response latency, BatchGetItem retrieves items in parallel.

When designing your application, keep in mind that DynamoDB does not return items in any particular order. To help parse the response by item, include the primary key values for the items in your request in the ProjectionExpression parameter.

If a requested item does not exist, it is not returned in the result. Requests for nonexistent items consume the minimum read capacity units according to the type of read. For more information, see Capacity Units Calculations in the Amazon DynamoDB Developer Guide.

", + "BatchWriteItem": "

The BatchWriteItem operation puts or deletes multiple items in one or more tables. A single call to BatchWriteItem can write up to 16 MB of data, which can comprise as many as 25 put or delete requests. Individual items to be written can be as large as 400 KB.

BatchWriteItem cannot update items. To update items, use the UpdateItem action.

The individual PutItem and DeleteItem operations specified in BatchWriteItem are atomic; however BatchWriteItem as a whole is not. If any requested operations fail because the table's provisioned throughput is exceeded or an internal processing failure occurs, the failed operations are returned in the UnprocessedItems response parameter. You can investigate and optionally resend the requests. Typically, you would call BatchWriteItem in a loop. Each iteration would check for unprocessed items and submit a new BatchWriteItem request with those unprocessed items until all items have been processed.

Note that if none of the items can be processed due to insufficient provisioned throughput on all of the tables in the request, then BatchWriteItem will return a ProvisionedThroughputExceededException.

If DynamoDB returns any unprocessed items, you should retry the batch operation on those items. However, we strongly recommend that you use an exponential backoff algorithm. If you retry the batch operation immediately, the underlying read or write requests can still fail due to throttling on the individual tables. If you delay the batch operation using exponential backoff, the individual requests in the batch are much more likely to succeed.

For more information, see Batch Operations and Error Handling in the Amazon DynamoDB Developer Guide.

With BatchWriteItem, you can efficiently write or delete large amounts of data, such as from Amazon Elastic MapReduce (EMR), or copy data from another database into DynamoDB. In order to improve performance with these large-scale operations, BatchWriteItem does not behave in the same way as individual PutItem and DeleteItem calls would. For example, you cannot specify conditions on individual put and delete requests, and BatchWriteItem does not return deleted items in the response.

If you use a programming language that supports concurrency, you can use threads to write items in parallel. Your application must include the necessary logic to manage the threads. With languages that don't support threading, you must update or delete the specified items one at a time. In both situations, BatchWriteItem performs the specified put and delete operations in parallel, giving you the power of the thread pool approach without having to introduce complexity into your application.

Parallel processing reduces latency, but each specified put and delete request consumes the same number of write capacity units whether it is processed in parallel or not. Delete operations on nonexistent items consume one write capacity unit.

If one or more of the following is true, DynamoDB rejects the entire batch write operation:

  • One or more tables specified in the BatchWriteItem request does not exist.

  • Primary key attributes specified on an item in the request do not match those in the corresponding table's primary key schema.

  • You try to perform multiple operations on the same item in the same BatchWriteItem request. For example, you cannot put and delete the same item in the same BatchWriteItem request.

  • There are more than 25 requests in the batch.

  • Any individual item in a batch exceeds 400 KB.

  • The total request size exceeds 16 MB.

", + "CreateTable": "

The CreateTable operation adds a new table to your account. In an AWS account, table names must be unique within each region. That is, you can have two tables with same name if you create the tables in different regions.

CreateTable is an asynchronous operation. Upon receiving a CreateTable request, DynamoDB immediately returns a response with a TableStatus of CREATING. After the table is created, DynamoDB sets the TableStatus to ACTIVE. You can perform read and write operations only on an ACTIVE table.

You can optionally define secondary indexes on the new table, as part of the CreateTable operation. If you want to create multiple tables with secondary indexes on them, you must create the tables sequentially. Only one table with secondary indexes can be in the CREATING state at any given time.

You can use the DescribeTable action to check the table status.

", + "DeleteItem": "

Deletes a single item in a table by primary key. You can perform a conditional delete operation that deletes the item if it exists, or if it has an expected attribute value.

In addition to deleting an item, you can also return the item's attribute values in the same operation, using the ReturnValues parameter.

Unless you specify conditions, the DeleteItem is an idempotent operation; running it multiple times on the same item or attribute does not result in an error response.

Conditional deletes are useful for deleting items only if specific conditions are met. If those conditions are met, DynamoDB performs the delete. Otherwise, the item is not deleted.

", + "DeleteTable": "

The DeleteTable operation deletes a table and all of its items. After a DeleteTable request, the specified table is in the DELETING state until DynamoDB completes the deletion. If the table is in the ACTIVE state, you can delete it. If a table is in CREATING or UPDATING states, then DynamoDB returns a ResourceInUseException. If the specified table does not exist, DynamoDB returns a ResourceNotFoundException. If table is already in the DELETING state, no error is returned.

DynamoDB might continue to accept data read and write operations, such as GetItem and PutItem, on a table in the DELETING state until the table deletion is complete.

When you delete a table, any indexes on that table are also deleted.

If you have DynamoDB Streams enabled on the table, then the corresponding stream on that table goes into the DISABLED state, and the stream is automatically deleted after 24 hours.

Use the DescribeTable action to check the status of the table.

", + "DescribeLimits": "

Returns the current provisioned-capacity limits for your AWS account in a region, both for the region as a whole and for any one DynamoDB table that you create there.

When you establish an AWS account, the account has initial limits on the maximum read capacity units and write capacity units that you can provision across all of your DynamoDB tables in a given region. Also, there are per-table limits that apply when you create a table there. For more information, see Limits page in the Amazon DynamoDB Developer Guide.

Although you can increase these limits by filing a case at AWS Support Center, obtaining the increase is not instantaneous. The DescribeLimits action lets you write code to compare the capacity you are currently using to those limits imposed by your account so that you have enough time to apply for an increase before you hit a limit.

For example, you could use one of the AWS SDKs to do the following:

  1. Call DescribeLimits for a particular region to obtain your current account limits on provisioned capacity there.

  2. Create a variable to hold the aggregate read capacity units provisioned for all your tables in that region, and one to hold the aggregate write capacity units. Zero them both.

  3. Call ListTables to obtain a list of all your DynamoDB tables.

  4. For each table name listed by ListTables, do the following:

    • Call DescribeTable with the table name.

    • Use the data returned by DescribeTable to add the read capacity units and write capacity units provisioned for the table itself to your variables.

    • If the table has one or more global secondary indexes (GSIs), loop over these GSIs and add their provisioned capacity values to your variables as well.

  5. Report the account limits for that region returned by DescribeLimits, along with the total current provisioned capacity levels you have calculated.

This will let you see whether you are getting close to your account-level limits.

The per-table limits apply only when you are creating a new table. They restrict the sum of the provisioned capacity of the new table itself and all its global secondary indexes.

For existing tables and their GSIs, DynamoDB will not let you increase provisioned capacity extremely rapidly, but the only upper limit that applies is that the aggregate provisioned capacity over all your tables and GSIs cannot exceed either of the per-account limits.

DescribeLimits should only be called periodically. You can expect throttling errors if you call it more than once in a minute.

The DescribeLimits Request element has no content.

", + "DescribeTable": "

Returns information about the table, including the current status of the table, when it was created, the primary key schema, and any indexes on the table.

If you issue a DescribeTable request immediately after a CreateTable request, DynamoDB might return a ResourceNotFoundException. This is because DescribeTable uses an eventually consistent query, and the metadata for your table might not be available at that moment. Wait for a few seconds, and then try the DescribeTable request again.

", + "DescribeTimeToLive": "

Gives a description of the Time to Live (TTL) status on the specified table.

", + "GetItem": "

The GetItem operation returns a set of attributes for the item with the given primary key. If there is no matching item, GetItem does not return any data and there will be no Item element in the response.

GetItem provides an eventually consistent read by default. If your application requires a strongly consistent read, set ConsistentRead to true. Although a strongly consistent read might take more time than an eventually consistent read, it always returns the last updated value.

", + "ListTables": "

Returns an array of table names associated with the current account and endpoint. The output from ListTables is paginated, with each page returning a maximum of 100 table names.

", + "ListTagsOfResource": "

List all tags on an Amazon DynamoDB resource. You can call ListTagsOfResource up to 10 times per second, per account.

For an overview on tagging DynamoDB resources, see Tagging for DynamoDB in the Amazon DynamoDB Developer Guide.

", + "PutItem": "

Creates a new item, or replaces an old item with a new item. If an item that has the same primary key as the new item already exists in the specified table, the new item completely replaces the existing item. You can perform a conditional put operation (add a new item if one with the specified primary key doesn't exist), or replace an existing item if it has certain attribute values.

In addition to putting an item, you can also return the item's attribute values in the same operation, using the ReturnValues parameter.

When you add an item, the primary key attribute(s) are the only required attributes. Attribute values cannot be null. String and Binary type attributes must have lengths greater than zero. Set type attributes cannot be empty. Requests with empty values will be rejected with a ValidationException exception.

To prevent a new item from replacing an existing item, use a conditional expression that contains the attribute_not_exists function with the name of the attribute being used as the partition key for the table. Since every record must contain that attribute, the attribute_not_exists function will only succeed if no matching item exists.

For more information about PutItem, see Working with Items in the Amazon DynamoDB Developer Guide.

", + "Query": "

A Query operation uses the primary key of a table or a secondary index to directly access items from that table or index.

Use the KeyConditionExpression parameter to provide a specific value for the partition key. The Query operation will return all of the items from the table or index with that partition key value. You can optionally narrow the scope of the Query operation by specifying a sort key value and a comparison operator in KeyConditionExpression. You can use the ScanIndexForward parameter to get results in forward or reverse order, by sort key.

Queries that do not return results consume the minimum number of read capacity units for that type of read operation.

If the total number of items meeting the query criteria exceeds the result set size limit of 1 MB, the query stops and results are returned to the user with the LastEvaluatedKey element to continue the query in a subsequent operation. Unlike a Scan operation, a Query operation never returns both an empty result set and a LastEvaluatedKey value. LastEvaluatedKey is only provided if you have used the Limit parameter, or if the result set exceeds 1 MB (prior to applying a filter).

You can query a table, a local secondary index, or a global secondary index. For a query on a table or on a local secondary index, you can set the ConsistentRead parameter to true and obtain a strongly consistent result. Global secondary indexes support eventually consistent reads only, so do not specify ConsistentRead when querying a global secondary index.

", + "Scan": "

The Scan operation returns one or more items and item attributes by accessing every item in a table or a secondary index. To have DynamoDB return fewer items, you can provide a FilterExpression operation.

If the total number of scanned items exceeds the maximum data set size limit of 1 MB, the scan stops and results are returned to the user as a LastEvaluatedKey value to continue the scan in a subsequent operation. The results also include the number of items exceeding the limit. A scan can result in no table data meeting the filter criteria.

By default, Scan operations proceed sequentially; however, for faster performance on a large table or secondary index, applications can request a parallel Scan operation by providing the Segment and TotalSegments parameters. For more information, see Parallel Scan in the Amazon DynamoDB Developer Guide.

By default, Scan uses eventually consistent reads when accessing the data in a table; therefore, the result set might not include the changes to data in the table immediately before the operation began. If you need a consistent copy of the data, as of the time that the Scan begins, you can set the ConsistentRead parameter to true.

", + "TagResource": "

Associate a set of tags with an Amazon DynamoDB resource. You can then activate these user-defined tags so that they appear on the Billing and Cost Management console for cost allocation tracking. You can call TagResource up to 5 times per second, per account.

For an overview on tagging DynamoDB resources, see Tagging for DynamoDB in the Amazon DynamoDB Developer Guide.

", + "UntagResource": "

Removes the association of tags from an Amazon DynamoDB resource. You can call UntagResource up to 5 times per second, per account.

For an overview on tagging DynamoDB resources, see Tagging for DynamoDB in the Amazon DynamoDB Developer Guide.

", + "UpdateItem": "

Edits an existing item's attributes, or adds a new item to the table if it does not already exist. You can put, delete, or add attribute values. You can also perform a conditional update on an existing item (insert a new attribute name-value pair if it doesn't exist, or replace an existing name-value pair if it has certain expected attribute values).

You can also return the item's attribute values in the same UpdateItem operation using the ReturnValues parameter.

", + "UpdateTable": "

Modifies the provisioned throughput settings, global secondary indexes, or DynamoDB Streams settings for a given table.

You can only perform one of the following operations at once:

  • Modify the provisioned throughput settings of the table.

  • Enable or disable Streams on the table.

  • Remove a global secondary index from the table.

  • Create a new global secondary index on the table. Once the index begins backfilling, you can use UpdateTable to perform other operations.

UpdateTable is an asynchronous operation; while it is executing, the table status changes from ACTIVE to UPDATING. While it is UPDATING, you cannot issue another UpdateTable request. When the table returns to the ACTIVE state, the UpdateTable operation is complete.

", + "UpdateTimeToLive": "

Specify the lifetime of individual table items. The database automatically removes the item at the expiration of the item. The UpdateTimeToLive method will enable or disable TTL for the specified table. A successful UpdateTimeToLive call returns the current TimeToLiveSpecification; it may take up to one hour for the change to fully process.

TTL compares the current time in epoch time format to the time stored in the TTL attribute of an item. If the epoch time value stored in the attribute is less than the current time, the item is marked as expired and subsequently deleted.

The epoch time format is the number of seconds elapsed since 12:00:00 AM January 1st, 1970 UTC.

DynamoDB deletes expired items on a best-effort basis to ensure availability of throughput for other data operations.

DynamoDB typically deletes expired items within two days of expiration. The exact duration within which an item gets deleted after expiration is specific to the nature of the workload. Items that have expired and not been deleted will still show up in reads, queries, and scans.

As items are deleted, they are removed from any Local Secondary Index and Global Secondary Index immediately in the same eventually consistent way as a standard delete operation.

For more information, see Time To Live in the Amazon DynamoDB Developer Guide.

" }, "shapes": { "AttributeAction": { "base": null, "refs": { - "AttributeValueUpdate$Action": "

Specifies how to perform the update. Valid values are PUT (default), DELETE, and ADD. The behavior depends on whether the specified primary key already exists in the table.

If an item with the specified Key is found in the table:

  • PUT - Adds the specified attribute to the item. If the attribute already exists, it is replaced by the new value.

  • DELETE - If no value is specified, the attribute and its value are removed from the item. The data type of the specified value must match the existing value's data type.

    If a set of values is specified, then those values are subtracted from the old set. For example, if the attribute value was the set [a,b,c] and the DELETE action specified [a,c], then the final attribute value would be [b]. Specifying an empty set is an error.

  • ADD - If the attribute does not already exist, then the attribute and its values are added to the item. If the attribute does exist, then the behavior of ADD depends on the data type of the attribute:

    • If the existing attribute is a number, and if Value is also a number, then the Value is mathematically added to the existing attribute. If Value is a negative number, then it is subtracted from the existing attribute.

      If you use ADD to increment or decrement a number value for an item that doesn't exist before the update, DynamoDB uses 0 as the initial value.

      In addition, if you use ADD to update an existing item, and intend to increment or decrement an attribute value which does not yet exist, DynamoDB uses 0 as the initial value. For example, suppose that the item you want to update does not yet have an attribute named itemcount, but you decide to ADD the number 3 to this attribute anyway, even though it currently does not exist. DynamoDB will create the itemcount attribute, set its initial value to 0, and finally add 3 to it. The result will be a new itemcount attribute in the item, with a value of 3.

    • If the existing data type is a set, and if the Value is also a set, then the Value is added to the existing set. (This is a set operation, not mathematical addition.) For example, if the attribute value was the set [1,2], and the ADD action specified [3], then the final attribute value would be [1,2,3]. An error occurs if an Add action is specified for a set attribute and the attribute type specified does not match the existing set type.

      Both sets must have the same primitive data type. For example, if the existing data type is a set of strings, the Value must also be a set of strings. The same holds true for number sets and binary sets.

    This action is only valid for an existing attribute whose data type is number or is a set. Do not use ADD for any other data types.

If no item with the specified Key is found:

  • PUT - DynamoDB creates a new item with the specified primary key, and then adds the attribute.

  • DELETE - Nothing happens; there is no attribute to delete.

  • ADD - DynamoDB creates an item with the supplied primary key and number (or set of numbers) for the attribute value. The only data types allowed are number and number set; no other data types can be specified.

" + "AttributeValueUpdate$Action": "

Specifies how to perform the update. Valid values are PUT (default), DELETE, and ADD. The behavior depends on whether the specified primary key already exists in the table.

If an item with the specified Key is found in the table:

  • PUT - Adds the specified attribute to the item. If the attribute already exists, it is replaced by the new value.

  • DELETE - If no value is specified, the attribute and its value are removed from the item. The data type of the specified value must match the existing value's data type.

    If a set of values is specified, then those values are subtracted from the old set. For example, if the attribute value was the set [a,b,c] and the DELETE action specified [a,c], then the final attribute value would be [b]. Specifying an empty set is an error.

  • ADD - If the attribute does not already exist, then the attribute and its values are added to the item. If the attribute does exist, then the behavior of ADD depends on the data type of the attribute:

    • If the existing attribute is a number, and if Value is also a number, then the Value is mathematically added to the existing attribute. If Value is a negative number, then it is subtracted from the existing attribute.

      If you use ADD to increment or decrement a number value for an item that doesn't exist before the update, DynamoDB uses 0 as the initial value.

      In addition, if you use ADD to update an existing item, and intend to increment or decrement an attribute value which does not yet exist, DynamoDB uses 0 as the initial value. For example, suppose that the item you want to update does not yet have an attribute named itemcount, but you decide to ADD the number 3 to this attribute anyway, even though it currently does not exist. DynamoDB will create the itemcount attribute, set its initial value to 0, and finally add 3 to it. The result will be a new itemcount attribute in the item, with a value of 3.

    • If the existing data type is a set, and if the Value is also a set, then the Value is added to the existing set. (This is a set operation, not mathematical addition.) For example, if the attribute value was the set [1,2], and the ADD action specified [3], then the final attribute value would be [1,2,3]. An error occurs if an Add action is specified for a set attribute and the attribute type specified does not match the existing set type.

      Both sets must have the same primitive data type. For example, if the existing data type is a set of strings, the Value must also be a set of strings. The same holds true for number sets and binary sets.

    This action is only valid for an existing attribute whose data type is number or is a set. Do not use ADD for any other data types.

If no item with the specified Key is found:

  • PUT - DynamoDB creates a new item with the specified primary key, and then adds the attribute.

  • DELETE - Nothing happens; there is no attribute to delete.

  • ADD - DynamoDB creates an item with the supplied primary key and number (or set of numbers) for the attribute value. The only data types allowed are number and number set; no other data types can be specified.

" } }, "AttributeDefinition": { @@ -34,18 +39,18 @@ "base": null, "refs": { "CreateTableInput$AttributeDefinitions": "

An array of attributes that describe the key schema for the table and indexes.

", - "TableDescription$AttributeDefinitions": "

An array of AttributeDefinition objects. Each of these objects describes one attribute in the table and index key schema.

Each AttributeDefinition object in this array is composed of:

  • AttributeName - The name of the attribute.

  • AttributeType - The data type for the attribute.

", - "UpdateTableInput$AttributeDefinitions": "

An array of attributes that describe the key schema for the table and indexes. If you are adding a new global secondary index to the table, AttributeDefinitions must include the key element(s) of the new index.

" + "TableDescription$AttributeDefinitions": "

An array of AttributeDefinition objects. Each of these objects describes one attribute in the table and index key schema.

Each AttributeDefinition object in this array is composed of:

  • AttributeName - The name of the attribute.

  • AttributeType - The data type for the attribute.

", + "UpdateTableInput$AttributeDefinitions": "

An array of attributes that describe the key schema for the table and indexes. If you are adding a new global secondary index to the table, AttributeDefinitions must include the key element(s) of the new index.

" } }, "AttributeMap": { "base": null, "refs": { - "DeleteItemOutput$Attributes": "

A map of attribute names to AttributeValue objects, representing the item as it appeared before the DeleteItem operation. This map appears in the response only if ReturnValues was specified as ALL_OLD in the request.

", - "GetItemOutput$Item": "

A map of attribute names to AttributeValue objects, as specified by AttributesToGet.

", + "DeleteItemOutput$Attributes": "

A map of attribute names to AttributeValue objects, representing the item as it appeared before the DeleteItem operation. This map appears in the response only if ReturnValues was specified as ALL_OLD in the request.

", + "GetItemOutput$Item": "

A map of attribute names to AttributeValue objects, as specified by ProjectionExpression.

", "ItemList$member": null, - "PutItemOutput$Attributes": "

The attribute values as they appeared before the PutItem operation, but only if ReturnValues is specified as ALL_OLD in the request. Each element consists of an attribute name and an attribute value.

", - "UpdateItemOutput$Attributes": "

A map of attribute values as they appeared before the UpdateItem operation. This map only appears if ReturnValues was specified as something other than NONE in the request. Each element represents one attribute.

" + "PutItemOutput$Attributes": "

The attribute values as they appeared before the PutItem operation, but only if ReturnValues is specified as ALL_OLD in the request. Each element consists of an attribute name and an attribute value.

", + "UpdateItemOutput$Attributes": "

A map of attribute values as they appeared before the UpdateItem operation. This map only appears if ReturnValues was specified as something other than NONE in the request. Each element represents one attribute.

" } }, "AttributeName": { @@ -67,25 +72,25 @@ "AttributeNameList": { "base": null, "refs": { - "GetItemInput$AttributesToGet": "

This is a legacy parameter, for backward compatibility. New applications should use ProjectionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

This parameter allows you to retrieve attributes of type List or Map; however, it cannot retrieve individual elements within a List or a Map.

The names of one or more attributes to retrieve. If no attribute names are provided, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

Note that AttributesToGet has no effect on provisioned throughput consumption. DynamoDB determines capacity units consumed based on item size, not on the amount of data that is returned to an application.

", - "KeysAndAttributes$AttributesToGet": "

One or more attributes to retrieve from the table or index. If no attribute names are specified then all attributes will be returned. If any of the specified attributes are not found, they will not appear in the result.

", - "QueryInput$AttributesToGet": "

This is a legacy parameter, for backward compatibility. New applications should use ProjectionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

This parameter allows you to retrieve attributes of type List or Map; however, it cannot retrieve individual elements within a List or a Map.

The names of one or more attributes to retrieve. If no attribute names are provided, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

Note that AttributesToGet has no effect on provisioned throughput consumption. DynamoDB determines capacity units consumed based on item size, not on the amount of data that is returned to an application.

You cannot use both AttributesToGet and Select together in a Query request, unless the value for Select is SPECIFIC_ATTRIBUTES. (This usage is equivalent to specifying AttributesToGet without any value for Select.)

If you query a local secondary index and request only attributes that are projected into that index, the operation will read only the index and not the table. If any of the requested attributes are not projected into the local secondary index, DynamoDB will fetch each of these attributes from the parent table. This extra fetching incurs additional throughput cost and latency.

If you query a global secondary index, you can only request attributes that are projected into the index. Global secondary index queries cannot fetch attributes from the parent table.

", - "ScanInput$AttributesToGet": "

This is a legacy parameter, for backward compatibility. New applications should use ProjectionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

This parameter allows you to retrieve attributes of type List or Map; however, it cannot retrieve individual elements within a List or a Map.

The names of one or more attributes to retrieve. If no attribute names are provided, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

Note that AttributesToGet has no effect on provisioned throughput consumption. DynamoDB determines capacity units consumed based on item size, not on the amount of data that is returned to an application.

" + "GetItemInput$AttributesToGet": "

This is a legacy parameter. Use ProjectionExpression instead. For more information, see AttributesToGet in the Amazon DynamoDB Developer Guide.

", + "KeysAndAttributes$AttributesToGet": "

This is a legacy parameter. Use ProjectionExpression instead. For more information, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.

", + "QueryInput$AttributesToGet": "

This is a legacy parameter. Use ProjectionExpression instead. For more information, see AttributesToGet in the Amazon DynamoDB Developer Guide.

", + "ScanInput$AttributesToGet": "

This is a legacy parameter. Use ProjectionExpression instead. For more information, see AttributesToGet in the Amazon DynamoDB Developer Guide.

" } }, "AttributeUpdates": { "base": null, "refs": { - "UpdateItemInput$AttributeUpdates": "

This is a legacy parameter, for backward compatibility. New applications should use UpdateExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

This parameter can be used for modifying top-level attributes; however, it does not support individual list or map elements.

The names of attributes to be modified, the action to perform on each, and the new value for each. If you are updating an attribute that is an index key attribute for any indexes on that table, the attribute type must match the index key type defined in the AttributesDefinition of the table description. You can use UpdateItem to update any non-key attributes.

Attribute values cannot be null. String and Binary type attributes must have lengths greater than zero. Set type attributes must not be empty. Requests with empty values will be rejected with a ValidationException exception.

Each AttributeUpdates element consists of an attribute name to modify, along with the following:

  • Value - The new value, if applicable, for this attribute.

  • Action - A value that specifies how to perform the update. This action is only valid for an existing attribute whose data type is Number or is a set; do not use ADD for other data types.

    If an item with the specified primary key is found in the table, the following values perform the following actions:

    • PUT - Adds the specified attribute to the item. If the attribute already exists, it is replaced by the new value.

    • DELETE - Removes the attribute and its value, if no value is specified for DELETE. The data type of the specified value must match the existing value's data type.

      If a set of values is specified, then those values are subtracted from the old set. For example, if the attribute value was the set [a,b,c] and the DELETE action specifies [a,c], then the final attribute value is [b]. Specifying an empty set is an error.

    • ADD - Adds the specified value to the item, if the attribute does not already exist. If the attribute does exist, then the behavior of ADD depends on the data type of the attribute:

      • If the existing attribute is a number, and if Value is also a number, then Value is mathematically added to the existing attribute. If Value is a negative number, then it is subtracted from the existing attribute.

        If you use ADD to increment or decrement a number value for an item that doesn't exist before the update, DynamoDB uses 0 as the initial value.

        Similarly, if you use ADD for an existing item to increment or decrement an attribute value that doesn't exist before the update, DynamoDB uses 0 as the initial value. For example, suppose that the item you want to update doesn't have an attribute named itemcount, but you decide to ADD the number 3 to this attribute anyway. DynamoDB will create the itemcount attribute, set its initial value to 0, and finally add 3 to it. The result will be a new itemcount attribute, with a value of 3.

      • If the existing data type is a set, and if Value is also a set, then Value is appended to the existing set. For example, if the attribute value is the set [1,2], and the ADD action specified [3], then the final attribute value is [1,2,3]. An error occurs if an ADD action is specified for a set attribute and the attribute type specified does not match the existing set type.

        Both sets must have the same primitive data type. For example, if the existing data type is a set of strings, Value must also be a set of strings.

    If no item with the specified key is found in the table, the following values perform the following actions:

    • PUT - Causes DynamoDB to create a new item with the specified primary key, and then adds the attribute.

    • DELETE - Nothing happens, because attributes cannot be deleted from a nonexistent item. The operation succeeds, but DynamoDB does not create a new item.

    • ADD - Causes DynamoDB to create an item with the supplied primary key and number (or set of numbers) for the attribute value. The only data types allowed are Number and Number Set.

If you provide any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.

" + "UpdateItemInput$AttributeUpdates": "

This is a legacy parameter. Use UpdateExpression instead. For more information, see AttributeUpdates in the Amazon DynamoDB Developer Guide.

" } }, "AttributeValue": { - "base": "

Represents the data for an attribute. You can set one, and only one, of the elements.

Each attribute in an item is a name-value pair. An attribute can be single-valued or multi-valued set. For example, a book item can have title and authors attributes. Each book has one title but can have many authors. The multi-valued attribute is a set; duplicate values are not allowed.

", + "base": "

Represents the data for an attribute.

Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.

For more information, see Data Types in the Amazon DynamoDB Developer Guide.

", "refs": { "AttributeMap$value": null, "AttributeValueList$member": null, - "AttributeValueUpdate$Value": null, - "ExpectedAttributeValue$Value": null, + "AttributeValueUpdate$Value": "

Represents the data for an attribute.

Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.

For more information, see Data TYpes in the Amazon DynamoDB Developer Guide.

", + "ExpectedAttributeValue$Value": "

Represents the data for the expected attribute.

Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.

For more information, see Data Types in the Amazon DynamoDB Developer Guide.

", "ExpressionAttributeValueMap$value": null, "ItemCollectionKeyAttributeMap$value": null, "Key$value": null, @@ -97,12 +102,12 @@ "AttributeValueList": { "base": null, "refs": { - "Condition$AttributeValueList": "

One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

For type Number, value comparisons are numeric.

String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

", - "ExpectedAttributeValue$AttributeValueList": "

One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

For type Number, value comparisons are numeric.

String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

For information on specifying data types in JSON, see JSON Data Format in the Amazon DynamoDB Developer Guide.

" + "Condition$AttributeValueList": "

One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

For type Number, value comparisons are numeric.

String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

", + "ExpectedAttributeValue$AttributeValueList": "

One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

For type Number, value comparisons are numeric.

String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

For information on specifying data types in JSON, see JSON Data Format in the Amazon DynamoDB Developer Guide.

" } }, "AttributeValueUpdate": { - "base": "

For the UpdateItem operation, represents the attributes to be modified, the action to perform on each, and the new value for each.

You cannot use UpdateItem to update any primary key attributes. Instead, you will need to delete the item, and then use PutItem to create a new item with new attributes.

Attribute values cannot be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests with empty values will be rejected with a ValidationException exception.

", + "base": "

For the UpdateItem operation, represents the attributes to be modified, the action to perform on each, and the new value for each.

You cannot use UpdateItem to update any primary key attributes. Instead, you will need to delete the item, and then use PutItem to create a new item with new attributes.

Attribute values cannot be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests with empty values will be rejected with a ValidationException exception.

", "refs": { "AttributeUpdates$value": null } @@ -110,73 +115,73 @@ "Backfilling": { "base": null, "refs": { - "GlobalSecondaryIndexDescription$Backfilling": "

Indicates whether the index is currently backfilling. Backfilling is the process of reading items from the table and determining whether they can be added to the index. (Not all items will qualify: For example, a partition key cannot have any duplicate values.) If an item can be added to the index, DynamoDB will do so. After all items have been processed, the backfilling operation is complete and Backfilling is false.

For indexes that were created during a CreateTable operation, the Backfilling attribute does not appear in the DescribeTable output.

" + "GlobalSecondaryIndexDescription$Backfilling": "

Indicates whether the index is currently backfilling. Backfilling is the process of reading items from the table and determining whether they can be added to the index. (Not all items will qualify: For example, a partition key cannot have any duplicate values.) If an item can be added to the index, DynamoDB will do so. After all items have been processed, the backfilling operation is complete and Backfilling is false.

For indexes that were created during a CreateTable operation, the Backfilling attribute does not appear in the DescribeTable output.

" } }, "BatchGetItemInput": { - "base": "

Represents the input of a BatchGetItem operation.

", + "base": "

Represents the input of a BatchGetItem operation.

", "refs": { } }, "BatchGetItemOutput": { - "base": "

Represents the output of a BatchGetItem operation.

", + "base": "

Represents the output of a BatchGetItem operation.

", "refs": { } }, "BatchGetRequestMap": { "base": null, "refs": { - "BatchGetItemInput$RequestItems": "

A map of one or more table names and, for each table, a map that describes one or more items to retrieve from that table. Each table name can be used only once per BatchGetItem request.

Each element in the map of items to retrieve consists of the following:

  • ConsistentRead - If true, a strongly consistent read is used; if false (the default), an eventually consistent read is used.

  • ExpressionAttributeNames - One or more substitution tokens for attribute names in the ProjectionExpression parameter. The following are some use cases for using ExpressionAttributeNames:

    • To access an attribute whose name conflicts with a DynamoDB reserved word.

    • To create a placeholder for repeating occurrences of an attribute name in an expression.

    • To prevent special characters in an attribute name from being misinterpreted in an expression.

    Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

    • Percentile

    The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

    • {\"#P\":\"Percentile\"}

    You could then use this substitution in an expression, as in this example:

    • #P = :val

    Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

    For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

  • Keys - An array of primary key attribute values that define specific items in the table. For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide the partition key value. For a composite key, you must provide both the partition key value and the sort key value.

  • ProjectionExpression - A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

    If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

    For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

  • AttributesToGet -

    This is a legacy parameter, for backward compatibility. New applications should use ProjectionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

    This parameter allows you to retrieve attributes of type List or Map; however, it cannot retrieve individual elements within a List or a Map.

    The names of one or more attributes to retrieve. If no attribute names are provided, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

    Note that AttributesToGet has no effect on provisioned throughput consumption. DynamoDB determines capacity units consumed based on item size, not on the amount of data that is returned to an application.

", - "BatchGetItemOutput$UnprocessedKeys": "

A map of tables and their respective keys that were not processed with the current response. The UnprocessedKeys value is in the same form as RequestItems, so the value can be provided directly to a subsequent BatchGetItem operation. For more information, see RequestItems in the Request Parameters section.

Each element consists of:

  • Keys - An array of primary key attribute values that define specific items in the table.

  • AttributesToGet - One or more attributes to be retrieved from the table or index. By default, all attributes are returned. If a requested attribute is not found, it does not appear in the result.

  • ConsistentRead - The consistency of a read operation. If set to true, then a strongly consistent read is used; otherwise, an eventually consistent read is used.

If there are no unprocessed keys remaining, the response contains an empty UnprocessedKeys map.

" + "BatchGetItemInput$RequestItems": "

A map of one or more table names and, for each table, a map that describes one or more items to retrieve from that table. Each table name can be used only once per BatchGetItem request.

Each element in the map of items to retrieve consists of the following:

  • ConsistentRead - If true, a strongly consistent read is used; if false (the default), an eventually consistent read is used.

  • ExpressionAttributeNames - One or more substitution tokens for attribute names in the ProjectionExpression parameter. The following are some use cases for using ExpressionAttributeNames:

    • To access an attribute whose name conflicts with a DynamoDB reserved word.

    • To create a placeholder for repeating occurrences of an attribute name in an expression.

    • To prevent special characters in an attribute name from being misinterpreted in an expression.

    Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

    • Percentile

    The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

    • {\"#P\":\"Percentile\"}

    You could then use this substitution in an expression, as in this example:

    • #P = :val

    Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

    For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

  • Keys - An array of primary key attribute values that define specific items in the table. For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide the partition key value. For a composite key, you must provide both the partition key value and the sort key value.

  • ProjectionExpression - A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

    If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

    For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

  • AttributesToGet - This is a legacy parameter. Use ProjectionExpression instead. For more information, see AttributesToGet in the Amazon DynamoDB Developer Guide.

", + "BatchGetItemOutput$UnprocessedKeys": "

A map of tables and their respective keys that were not processed with the current response. The UnprocessedKeys value is in the same form as RequestItems, so the value can be provided directly to a subsequent BatchGetItem operation. For more information, see RequestItems in the Request Parameters section.

Each element consists of:

  • Keys - An array of primary key attribute values that define specific items in the table.

  • ProjectionExpression - One or more attributes to be retrieved from the table or index. By default, all attributes are returned. If a requested attribute is not found, it does not appear in the result.

  • ConsistentRead - The consistency of a read operation. If set to true, then a strongly consistent read is used; otherwise, an eventually consistent read is used.

If there are no unprocessed keys remaining, the response contains an empty UnprocessedKeys map.

" } }, "BatchGetResponseMap": { "base": null, "refs": { - "BatchGetItemOutput$Responses": "

A map of table name to a list of items. Each object in Responses consists of a table name, along with a map of attribute data consisting of the data type and attribute value.

" + "BatchGetItemOutput$Responses": "

A map of table name to a list of items. Each object in Responses consists of a table name, along with a map of attribute data consisting of the data type and attribute value.

" } }, "BatchWriteItemInput": { - "base": "

Represents the input of a BatchWriteItem operation.

", + "base": "

Represents the input of a BatchWriteItem operation.

", "refs": { } }, "BatchWriteItemOutput": { - "base": "

Represents the output of a BatchWriteItem operation.

", + "base": "

Represents the output of a BatchWriteItem operation.

", "refs": { } }, "BatchWriteItemRequestMap": { "base": null, "refs": { - "BatchWriteItemInput$RequestItems": "

A map of one or more table names and, for each table, a list of operations to be performed (DeleteRequest or PutRequest). Each element in the map consists of the following:

  • DeleteRequest - Perform a DeleteItem operation on the specified item. The item to be deleted is identified by a Key subelement:

    • Key - A map of primary key attribute values that uniquely identify the ! item. Each entry in this map consists of an attribute name and an attribute value. For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.

  • PutRequest - Perform a PutItem operation on the specified item. The item to be put is identified by an Item subelement:

    • Item - A map of attributes and their values. Each entry in this map consists of an attribute name and an attribute value. Attribute values must not be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests that contain empty values will be rejected with a ValidationException exception.

      If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.

", - "BatchWriteItemOutput$UnprocessedItems": "

A map of tables and requests against those tables that were not processed. The UnprocessedItems value is in the same form as RequestItems, so you can provide this value directly to a subsequent BatchGetItem operation. For more information, see RequestItems in the Request Parameters section.

Each UnprocessedItems entry consists of a table name and, for that table, a list of operations to perform (DeleteRequest or PutRequest).

  • DeleteRequest - Perform a DeleteItem operation on the specified item. The item to be deleted is identified by a Key subelement:

    • Key - A map of primary key attribute values that uniquely identify the item. Each entry in this map consists of an attribute name and an attribute value.

  • PutRequest - Perform a PutItem operation on the specified item. The item to be put is identified by an Item subelement:

    • Item - A map of attributes and their values. Each entry in this map consists of an attribute name and an attribute value. Attribute values must not be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests that contain empty values will be rejected with a ValidationException exception.

      If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.

If there are no unprocessed items remaining, the response contains an empty UnprocessedItems map.

" + "BatchWriteItemInput$RequestItems": "

A map of one or more table names and, for each table, a list of operations to be performed (DeleteRequest or PutRequest). Each element in the map consists of the following:

  • DeleteRequest - Perform a DeleteItem operation on the specified item. The item to be deleted is identified by a Key subelement:

    • Key - A map of primary key attribute values that uniquely identify the ! item. Each entry in this map consists of an attribute name and an attribute value. For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.

  • PutRequest - Perform a PutItem operation on the specified item. The item to be put is identified by an Item subelement:

    • Item - A map of attributes and their values. Each entry in this map consists of an attribute name and an attribute value. Attribute values must not be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests that contain empty values will be rejected with a ValidationException exception.

      If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.

", + "BatchWriteItemOutput$UnprocessedItems": "

A map of tables and requests against those tables that were not processed. The UnprocessedItems value is in the same form as RequestItems, so you can provide this value directly to a subsequent BatchGetItem operation. For more information, see RequestItems in the Request Parameters section.

Each UnprocessedItems entry consists of a table name and, for that table, a list of operations to perform (DeleteRequest or PutRequest).

  • DeleteRequest - Perform a DeleteItem operation on the specified item. The item to be deleted is identified by a Key subelement:

    • Key - A map of primary key attribute values that uniquely identify the item. Each entry in this map consists of an attribute name and an attribute value.

  • PutRequest - Perform a PutItem operation on the specified item. The item to be put is identified by an Item subelement:

    • Item - A map of attributes and their values. Each entry in this map consists of an attribute name and an attribute value. Attribute values must not be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests that contain empty values will be rejected with a ValidationException exception.

      If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.

If there are no unprocessed items remaining, the response contains an empty UnprocessedItems map.

" } }, "BinaryAttributeValue": { "base": null, "refs": { - "AttributeValue$B": "

A Binary data type.

", + "AttributeValue$B": "

An attribute of type Binary. For example:

\"B\": \"dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk\"

", "BinarySetAttributeValue$member": null } }, "BinarySetAttributeValue": { "base": null, "refs": { - "AttributeValue$BS": "

A Binary Set data type.

" + "AttributeValue$BS": "

An attribute of type Binary Set. For example:

\"BS\": [\"U3Vubnk=\", \"UmFpbnk=\", \"U25vd3k=\"]

" } }, "BooleanAttributeValue": { "base": null, "refs": { - "AttributeValue$BOOL": "

A Boolean data type.

" + "AttributeValue$BOOL": "

An attribute of type Boolean. For example:

\"BOOL\": true

" } }, "BooleanObject": { "base": null, "refs": { - "ExpectedAttributeValue$Exists": "

Causes DynamoDB to evaluate the value before attempting a conditional operation:

  • If Exists is true, DynamoDB will check to see if that attribute value already exists in the table. If it is found, then the operation succeeds. If it is not found, the operation fails with a ConditionalCheckFailedException.

  • If Exists is false, DynamoDB assumes that the attribute value does not exist in the table. If in fact the value does not exist, then the assumption is valid and the operation succeeds. If the value is found, despite the assumption that it does not exist, the operation fails with a ConditionalCheckFailedException.

The default setting for Exists is true. If you supply a Value all by itself, DynamoDB assumes the attribute exists: You don't have to set Exists to true, because it is implied.

DynamoDB returns a ValidationException if:

  • Exists is true but there is no Value to check. (You expect a value to exist, but don't specify what that value is.)

  • Exists is false but you also provide a Value. (You cannot expect an attribute to have a value, while also expecting it not to exist.)

", - "QueryInput$ScanIndexForward": "

Specifies the order for index traversal: If true (default), the traversal is performed in ascending order; if false, the traversal is performed in descending order.

Items with the same partition key value are stored in sorted order by sort key. If the sort key data type is Number, the results are stored in numeric order. For type String, the results are stored in order of ASCII character code values. For type Binary, DynamoDB treats each byte of the binary data as unsigned.

If ScanIndexForward is true, DynamoDB returns the results in the order in which they are stored (by sort key value). This is the default behavior. If ScanIndexForward is false, DynamoDB reads the results in reverse order by sort key value, and then returns the results to the client.

" + "ExpectedAttributeValue$Exists": "

Causes DynamoDB to evaluate the value before attempting a conditional operation:

  • If Exists is true, DynamoDB will check to see if that attribute value already exists in the table. If it is found, then the operation succeeds. If it is not found, the operation fails with a ConditionalCheckFailedException.

  • If Exists is false, DynamoDB assumes that the attribute value does not exist in the table. If in fact the value does not exist, then the assumption is valid and the operation succeeds. If the value is found, despite the assumption that it does not exist, the operation fails with a ConditionalCheckFailedException.

The default setting for Exists is true. If you supply a Value all by itself, DynamoDB assumes the attribute exists: You don't have to set Exists to true, because it is implied.

DynamoDB returns a ValidationException if:

  • Exists is true but there is no Value to check. (You expect a value to exist, but don't specify what that value is.)

  • Exists is false but you also provide a Value. (You cannot expect an attribute to have a value, while also expecting it not to exist.)

", + "QueryInput$ScanIndexForward": "

Specifies the order for index traversal: If true (default), the traversal is performed in ascending order; if false, the traversal is performed in descending order.

Items with the same partition key value are stored in sorted order by sort key. If the sort key data type is Number, the results are stored in numeric order. For type String, the results are stored in order of ASCII character code values. For type Binary, DynamoDB treats each byte of the binary data as unsigned.

If ScanIndexForward is true, DynamoDB returns the results in the order in which they are stored (by sort key value). This is the default behavior. If ScanIndexForward is false, DynamoDB reads the results in reverse order by sort key value, and then returns the results to the client.

" } }, "Capacity": { @@ -189,12 +194,12 @@ "ComparisonOperator": { "base": null, "refs": { - "Condition$ComparisonOperator": "

A comparator for evaluating attributes. For example, equals, greater than, less than, etc.

The following comparison operators are available:

EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

The following are descriptions of each comparison operator.

  • EQ : Equal. EQ is supported for all datatypes, including lists and maps.

    AttributeValueList can contain only one AttributeValue element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

  • NE : Not equal. NE is supported for all datatypes, including lists and maps.

    AttributeValueList can contain only one AttributeValue of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

  • LE : Less than or equal.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • LT : Less than.

    AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • GE : Greater than or equal.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • GT : Greater than.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, including lists and maps.

    This operator tests for the existence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute \"a\" exists; its data type is not relevant to the NOT_NULL comparison operator.

  • NULL : The attribute does not exist. NULL is supported for all datatypes, including lists and maps.

    This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute \"a\" exists; its data type is not relevant to the NULL comparison operator.

  • CONTAINS : Checks for a subsequence, or value in a set.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it finds an exact match with any member of the set.

    CONTAINS is supported for lists: When evaluating \"a CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

  • NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value in a set.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it does not find an exact match with any member of the set.

    NOT_CONTAINS is supported for lists: When evaluating \"a NOT CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

  • BEGINS_WITH : Checks for a prefix.

    AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).

  • IN : Checks for matching elements within two sets.

    AttributeValueList can contain one or more AttributeValue elements of type String, Number, or Binary (not a set type). These attributes are compared against an existing set type attribute of an item. If any elements of the input set are present in the item attribute, the expression evaluates to true.

  • BETWEEN : Greater than or equal to the first value, and less than or equal to the second value.

    AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not compare to {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}

For usage examples of AttributeValueList and ComparisonOperator, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.

", - "ExpectedAttributeValue$ComparisonOperator": "

A comparator for evaluating attributes in the AttributeValueList. For example, equals, greater than, less than, etc.

The following comparison operators are available:

EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

The following are descriptions of each comparison operator.

  • EQ : Equal. EQ is supported for all datatypes, including lists and maps.

    AttributeValueList can contain only one AttributeValue element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

  • NE : Not equal. NE is supported for all datatypes, including lists and maps.

    AttributeValueList can contain only one AttributeValue of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

  • LE : Less than or equal.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • LT : Less than.

    AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • GE : Greater than or equal.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • GT : Greater than.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, including lists and maps.

    This operator tests for the existence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute \"a\" exists; its data type is not relevant to the NOT_NULL comparison operator.

  • NULL : The attribute does not exist. NULL is supported for all datatypes, including lists and maps.

    This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute \"a\" exists; its data type is not relevant to the NULL comparison operator.

  • CONTAINS : Checks for a subsequence, or value in a set.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it finds an exact match with any member of the set.

    CONTAINS is supported for lists: When evaluating \"a CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

  • NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value in a set.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it does not find an exact match with any member of the set.

    NOT_CONTAINS is supported for lists: When evaluating \"a NOT CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

  • BEGINS_WITH : Checks for a prefix.

    AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).

  • IN : Checks for matching elements within two sets.

    AttributeValueList can contain one or more AttributeValue elements of type String, Number, or Binary (not a set type). These attributes are compared against an existing set type attribute of an item. If any elements of the input set are present in the item attribute, the expression evaluates to true.

  • BETWEEN : Greater than or equal to the first value, and less than or equal to the second value.

    AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not compare to {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}

" + "Condition$ComparisonOperator": "

A comparator for evaluating attributes. For example, equals, greater than, less than, etc.

The following comparison operators are available:

EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

The following are descriptions of each comparison operator.

  • EQ : Equal. EQ is supported for all data types, including lists and maps.

    AttributeValueList can contain only one AttributeValue element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

  • NE : Not equal. NE is supported for all data types, including lists and maps.

    AttributeValueList can contain only one AttributeValue of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

  • LE : Less than or equal.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • LT : Less than.

    AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • GE : Greater than or equal.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • GT : Greater than.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • NOT_NULL : The attribute exists. NOT_NULL is supported for all data types, including lists and maps.

    This operator tests for the existence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute \"a\" exists; its data type is not relevant to the NOT_NULL comparison operator.

  • NULL : The attribute does not exist. NULL is supported for all data types, including lists and maps.

    This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute \"a\" exists; its data type is not relevant to the NULL comparison operator.

  • CONTAINS : Checks for a subsequence, or value in a set.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it finds an exact match with any member of the set.

    CONTAINS is supported for lists: When evaluating \"a CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

  • NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value in a set.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it does not find an exact match with any member of the set.

    NOT_CONTAINS is supported for lists: When evaluating \"a NOT CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

  • BEGINS_WITH : Checks for a prefix.

    AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).

  • IN : Checks for matching elements in a list.

    AttributeValueList can contain one or more AttributeValue elements of type String, Number, or Binary. These attributes are compared against an existing attribute of an item. If any elements of the input are equal to the item attribute, the expression evaluates to true.

  • BETWEEN : Greater than or equal to the first value, and less than or equal to the second value.

    AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not compare to {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}

For usage examples of AttributeValueList and ComparisonOperator, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.

", + "ExpectedAttributeValue$ComparisonOperator": "

A comparator for evaluating attributes in the AttributeValueList. For example, equals, greater than, less than, etc.

The following comparison operators are available:

EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

The following are descriptions of each comparison operator.

  • EQ : Equal. EQ is supported for all data types, including lists and maps.

    AttributeValueList can contain only one AttributeValue element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

  • NE : Not equal. NE is supported for all data types, including lists and maps.

    AttributeValueList can contain only one AttributeValue of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

  • LE : Less than or equal.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • LT : Less than.

    AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • GE : Greater than or equal.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • GT : Greater than.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • NOT_NULL : The attribute exists. NOT_NULL is supported for all data types, including lists and maps.

    This operator tests for the existence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute \"a\" exists; its data type is not relevant to the NOT_NULL comparison operator.

  • NULL : The attribute does not exist. NULL is supported for all data types, including lists and maps.

    This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute \"a\" exists; its data type is not relevant to the NULL comparison operator.

  • CONTAINS : Checks for a subsequence, or value in a set.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it finds an exact match with any member of the set.

    CONTAINS is supported for lists: When evaluating \"a CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

  • NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value in a set.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it does not find an exact match with any member of the set.

    NOT_CONTAINS is supported for lists: When evaluating \"a NOT CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

  • BEGINS_WITH : Checks for a prefix.

    AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).

  • IN : Checks for matching elements in a list.

    AttributeValueList can contain one or more AttributeValue elements of type String, Number, or Binary. These attributes are compared against an existing attribute of an item. If any elements of the input are equal to the item attribute, the expression evaluates to true.

  • BETWEEN : Greater than or equal to the first value, and less than or equal to the second value.

    AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not compare to {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}

" } }, "Condition": { - "base": "

Represents the selection criteria for a Query or Scan operation:

  • For a Query operation, Condition is used for specifying the KeyConditions to use when querying a table or an index. For KeyConditions, only the following comparison operators are supported:

    EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN

    Condition is also used in a QueryFilter, which evaluates the query results and returns only the desired values.

  • For a Scan operation, Condition is used in a ScanFilter, which evaluates the scan results and returns only the desired values.

", + "base": "

Represents the selection criteria for a Query or Scan operation:

  • For a Query operation, Condition is used for specifying the KeyConditions to use when querying a table or an index. For KeyConditions, only the following comparison operators are supported:

    EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN

    Condition is also used in a QueryFilter, which evaluates the query results and returns only the desired values.

  • For a Scan operation, Condition is used in a ScanFilter, which evaluates the scan results and returns only the desired values.

", "refs": { "FilterConditionMap$value": null, "KeyConditions$value": null @@ -203,11 +208,11 @@ "ConditionExpression": { "base": null, "refs": { - "DeleteItemInput$ConditionExpression": "

A condition that must be satisfied in order for a conditional DeleteItem to succeed.

An expression can contain any of the following:

  • Functions: attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size

    These function names are case-sensitive.

  • Comparison operators: = | &#x3C;&#x3E; | &#x3C; | &#x3E; | &#x3C;= | &#x3E;= | BETWEEN | IN

  • Logical operators: AND | OR | NOT

For more information on condition expressions, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

ConditionExpression replaces the legacy ConditionalOperator and Expected parameters.

", - "PutItemInput$ConditionExpression": "

A condition that must be satisfied in order for a conditional PutItem operation to succeed.

An expression can contain any of the following:

  • Functions: attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size

    These function names are case-sensitive.

  • Comparison operators: = | &#x3C;&#x3E; | &#x3C; | &#x3E; | &#x3C;= | &#x3E;= | BETWEEN | IN

  • Logical operators: AND | OR | NOT

For more information on condition expressions, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

ConditionExpression replaces the legacy ConditionalOperator and Expected parameters.

", - "QueryInput$FilterExpression": "

A string that contains conditions that DynamoDB applies after the Query operation, but before the data is returned to you. Items that do not satisfy the FilterExpression criteria are not returned.

A FilterExpression is applied after the items have already been read; the process of filtering does not consume any additional read capacity units.

For more information, see Filter Expressions in the Amazon DynamoDB Developer Guide.

FilterExpression replaces the legacy QueryFilter and ConditionalOperator parameters.

", - "ScanInput$FilterExpression": "

A string that contains conditions that DynamoDB applies after the Scan operation, but before the data is returned to you. Items that do not satisfy the FilterExpression criteria are not returned.

A FilterExpression is applied after the items have already been read; the process of filtering does not consume any additional read capacity units.

For more information, see Filter Expressions in the Amazon DynamoDB Developer Guide.

FilterExpression replaces the legacy ScanFilter and ConditionalOperator parameters.

", - "UpdateItemInput$ConditionExpression": "

A condition that must be satisfied in order for a conditional update to succeed.

An expression can contain any of the following:

  • Functions: attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size

    These function names are case-sensitive.

  • Comparison operators: = | &#x3C;&#x3E; | &#x3C; | &#x3E; | &#x3C;= | &#x3E;= | BETWEEN | IN

  • Logical operators: AND | OR | NOT

For more information on condition expressions, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

ConditionExpression replaces the legacy ConditionalOperator and Expected parameters.

" + "DeleteItemInput$ConditionExpression": "

A condition that must be satisfied in order for a conditional DeleteItem to succeed.

An expression can contain any of the following:

  • Functions: attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size

    These function names are case-sensitive.

  • Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN

  • Logical operators: AND | OR | NOT

For more information on condition expressions, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

", + "PutItemInput$ConditionExpression": "

A condition that must be satisfied in order for a conditional PutItem operation to succeed.

An expression can contain any of the following:

  • Functions: attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size

    These function names are case-sensitive.

  • Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN

  • Logical operators: AND | OR | NOT

For more information on condition expressions, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

", + "QueryInput$FilterExpression": "

A string that contains conditions that DynamoDB applies after the Query operation, but before the data is returned to you. Items that do not satisfy the FilterExpression criteria are not returned.

A FilterExpression does not allow key attributes. You cannot define a filter expression based on a partition key or a sort key.

A FilterExpression is applied after the items have already been read; the process of filtering does not consume any additional read capacity units.

For more information, see Filter Expressions in the Amazon DynamoDB Developer Guide.

", + "ScanInput$FilterExpression": "

A string that contains conditions that DynamoDB applies after the Scan operation, but before the data is returned to you. Items that do not satisfy the FilterExpression criteria are not returned.

A FilterExpression is applied after the items have already been read; the process of filtering does not consume any additional read capacity units.

For more information, see Filter Expressions in the Amazon DynamoDB Developer Guide.

", + "UpdateItemInput$ConditionExpression": "

A condition that must be satisfied in order for a conditional update to succeed.

An expression can contain any of the following:

  • Functions: attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size

    These function names are case-sensitive.

  • Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN

  • Logical operators: AND | OR | NOT

For more information on condition expressions, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

" } }, "ConditionalCheckFailedException": { @@ -218,11 +223,11 @@ "ConditionalOperator": { "base": null, "refs": { - "DeleteItemInput$ConditionalOperator": "

This is a legacy parameter, for backward compatibility. New applications should use ConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

A logical operator to apply to the conditions in the Expected map:

  • AND - If all of the conditions evaluate to true, then the entire map evaluates to true.

  • OR - If at least one of the conditions evaluate to true, then the entire map evaluates to true.

If you omit ConditionalOperator, then AND is the default.

The operation will succeed only if the entire map evaluates to true.

This parameter does not support attributes of type List or Map.

", - "PutItemInput$ConditionalOperator": "

This is a legacy parameter, for backward compatibility. New applications should use ConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

A logical operator to apply to the conditions in the Expected map:

  • AND - If all of the conditions evaluate to true, then the entire map evaluates to true.

  • OR - If at least one of the conditions evaluate to true, then the entire map evaluates to true.

If you omit ConditionalOperator, then AND is the default.

The operation will succeed only if the entire map evaluates to true.

This parameter does not support attributes of type List or Map.

", - "QueryInput$ConditionalOperator": "

This is a legacy parameter, for backward compatibility. New applications should use FilterExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

A logical operator to apply to the conditions in a QueryFilter map:

  • AND - If all of the conditions evaluate to true, then the entire map evaluates to true.

  • OR - If at least one of the conditions evaluate to true, then the entire map evaluates to true.

If you omit ConditionalOperator, then AND is the default.

The operation will succeed only if the entire map evaluates to true.

This parameter does not support attributes of type List or Map.

", - "ScanInput$ConditionalOperator": "

This is a legacy parameter, for backward compatibility. New applications should use FilterExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

A logical operator to apply to the conditions in a ScanFilter map:

  • AND - If all of the conditions evaluate to true, then the entire map evaluates to true.

  • OR - If at least one of the conditions evaluate to true, then the entire map evaluates to true.

If you omit ConditionalOperator, then AND is the default.

The operation will succeed only if the entire map evaluates to true.

This parameter does not support attributes of type List or Map.

", - "UpdateItemInput$ConditionalOperator": "

This is a legacy parameter, for backward compatibility. New applications should use ConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

A logical operator to apply to the conditions in the Expected map:

  • AND - If all of the conditions evaluate to true, then the entire map evaluates to true.

  • OR - If at least one of the conditions evaluate to true, then the entire map evaluates to true.

If you omit ConditionalOperator, then AND is the default.

The operation will succeed only if the entire map evaluates to true.

This parameter does not support attributes of type List or Map.

" + "DeleteItemInput$ConditionalOperator": "

This is a legacy parameter. Use ConditionExpression instead. For more information, see ConditionalOperator in the Amazon DynamoDB Developer Guide.

", + "PutItemInput$ConditionalOperator": "

This is a legacy parameter. Use ConditionExpression instead. For more information, see ConditionalOperator in the Amazon DynamoDB Developer Guide.

", + "QueryInput$ConditionalOperator": "

This is a legacy parameter. Use FilterExpression instead. For more information, see ConditionalOperator in the Amazon DynamoDB Developer Guide.

", + "ScanInput$ConditionalOperator": "

This is a legacy parameter. Use FilterExpression instead. For more information, see ConditionalOperator in the Amazon DynamoDB Developer Guide.

", + "UpdateItemInput$ConditionalOperator": "

This is a legacy parameter. Use ConditionExpression instead. For more information, see ConditionalOperator in the Amazon DynamoDB Developer Guide.

" } }, "ConsistentRead": { @@ -230,27 +235,27 @@ "refs": { "GetItemInput$ConsistentRead": "

Determines the read consistency model: If set to true, then the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.

", "KeysAndAttributes$ConsistentRead": "

The consistency of a read operation. If set to true, then a strongly consistent read is used; otherwise, an eventually consistent read is used.

", - "QueryInput$ConsistentRead": "

Determines the read consistency model: If set to true, then the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.

Strongly consistent reads are not supported on global secondary indexes. If you query a global secondary index with ConsistentRead set to true, you will receive a ValidationException.

", - "ScanInput$ConsistentRead": "

A Boolean value that determines the read consistency model during the scan:

  • If ConsistentRead is false, then the data returned from Scan might not contain the results from other recently completed write operations (PutItem, UpdateItem or DeleteItem).

  • If ConsistentRead is true, then all of the write operations that completed before the Scan began are guaranteed to be contained in the Scan response.

The default setting for ConsistentRead is false.

The ConsistentRead parameter is not supported on global secondary indexes. If you scan a global secondary index with ConsistentRead set to true, you will receive a ValidationException.

" + "QueryInput$ConsistentRead": "

Determines the read consistency model: If set to true, then the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.

Strongly consistent reads are not supported on global secondary indexes. If you query a global secondary index with ConsistentRead set to true, you will receive a ValidationException.

", + "ScanInput$ConsistentRead": "

A Boolean value that determines the read consistency model during the scan:

  • If ConsistentRead is false, then the data returned from Scan might not contain the results from other recently completed write operations (PutItem, UpdateItem or DeleteItem).

  • If ConsistentRead is true, then all of the write operations that completed before the Scan began are guaranteed to be contained in the Scan response.

The default setting for ConsistentRead is false.

The ConsistentRead parameter is not supported on global secondary indexes. If you scan a global secondary index with ConsistentRead set to true, you will receive a ValidationException.

" } }, "ConsumedCapacity": { - "base": "

The capacity units consumed by an operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the request asked for it. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.

", + "base": "

The capacity units consumed by an operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the request asked for it. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.

", "refs": { "ConsumedCapacityMultiple$member": null, - "DeleteItemOutput$ConsumedCapacity": null, - "GetItemOutput$ConsumedCapacity": null, - "PutItemOutput$ConsumedCapacity": null, - "QueryOutput$ConsumedCapacity": null, - "ScanOutput$ConsumedCapacity": null, - "UpdateItemOutput$ConsumedCapacity": null + "DeleteItemOutput$ConsumedCapacity": "

The capacity units consumed by the DeleteItem operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.

", + "GetItemOutput$ConsumedCapacity": "

The capacity units consumed by the GetItem operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.

", + "PutItemOutput$ConsumedCapacity": "

The capacity units consumed by the PutItem operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.

", + "QueryOutput$ConsumedCapacity": "

The capacity units consumed by the Query operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.

", + "ScanOutput$ConsumedCapacity": "

The capacity units consumed by the Scan operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.

", + "UpdateItemOutput$ConsumedCapacity": "

The capacity units consumed by the UpdateItem operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.

" } }, "ConsumedCapacityMultiple": { "base": null, "refs": { - "BatchGetItemOutput$ConsumedCapacity": "

The read capacity units consumed by the operation.

Each element consists of:

  • TableName - The table that consumed the provisioned throughput.

  • CapacityUnits - The total number of capacity units consumed.

", - "BatchWriteItemOutput$ConsumedCapacity": "

The capacity units consumed by the operation.

Each element consists of:

  • TableName - The table that consumed the provisioned throughput.

  • CapacityUnits - The total number of capacity units consumed.

" + "BatchGetItemOutput$ConsumedCapacity": "

The read capacity units consumed by the entire BatchGetItem operation.

Each element consists of:

  • TableName - The table that consumed the provisioned throughput.

  • CapacityUnits - The total number of capacity units consumed.

", + "BatchWriteItemOutput$ConsumedCapacity": "

The capacity units consumed by the entire BatchWriteItem operation.

Each element consists of:

  • TableName - The table that consumed the provisioned throughput.

  • CapacityUnits - The total number of capacity units consumed.

" } }, "ConsumedCapacityUnits": { @@ -267,12 +272,12 @@ } }, "CreateTableInput": { - "base": "

Represents the input of a CreateTable operation.

", + "base": "

Represents the input of a CreateTable operation.

", "refs": { } }, "CreateTableOutput": { - "base": "

Represents the output of a CreateTable operation.

", + "base": "

Represents the output of a CreateTable operation.

", "refs": { } }, @@ -291,48 +296,58 @@ } }, "DeleteItemInput": { - "base": "

Represents the input of a DeleteItem operation.

", + "base": "

Represents the input of a DeleteItem operation.

", "refs": { } }, "DeleteItemOutput": { - "base": "

Represents the output of a DeleteItem operation.

", + "base": "

Represents the output of a DeleteItem operation.

", "refs": { } }, "DeleteRequest": { - "base": "

Represents a request to perform a DeleteItem operation on an item.

", + "base": "

Represents a request to perform a DeleteItem operation on an item.

", "refs": { - "WriteRequest$DeleteRequest": "

A request to perform a DeleteItem operation.

" + "WriteRequest$DeleteRequest": "

A request to perform a DeleteItem operation.

" } }, "DeleteTableInput": { - "base": "

Represents the input of a DeleteTable operation.

", + "base": "

Represents the input of a DeleteTable operation.

", "refs": { } }, "DeleteTableOutput": { - "base": "

Represents the output of a DeleteTable operation.

", + "base": "

Represents the output of a DeleteTable operation.

", "refs": { } }, "DescribeLimitsInput": { - "base": "

Represents the input of a DescribeLimits operation. Has no content.

", + "base": "

Represents the input of a DescribeLimits operation. Has no content.

", "refs": { } }, "DescribeLimitsOutput": { - "base": "

Represents the output of a DescribeLimits operation.

", + "base": "

Represents the output of a DescribeLimits operation.

", "refs": { } }, "DescribeTableInput": { - "base": "

Represents the input of a DescribeTable operation.

", + "base": "

Represents the input of a DescribeTable operation.

", "refs": { } }, "DescribeTableOutput": { - "base": "

Represents the output of a DescribeTable operation.

", + "base": "

Represents the output of a DescribeTable operation.

", + "refs": { + } + }, + "DescribeTimeToLiveInput": { + "base": null, + "refs": { + } + }, + "DescribeTimeToLiveOutput": { + "base": null, "refs": { } }, @@ -351,13 +366,13 @@ "ExpectedAttributeMap": { "base": null, "refs": { - "DeleteItemInput$Expected": "

This is a legacy parameter, for backward compatibility. New applications should use ConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

A map of attribute/condition pairs. Expected provides a conditional block for the DeleteItem operation.

Each element of Expected consists of an attribute name, a comparison operator, and one or more values. DynamoDB compares the attribute with the value(s) you supplied, using the comparison operator. For each Expected element, the result of the evaluation is either true or false.

If you specify more than one element in the Expected map, then by default all of the conditions must evaluate to true. In other words, the conditions are ANDed together. (You can use the ConditionalOperator parameter to OR the conditions instead. If you do this, then at least one of the conditions must evaluate to true, rather than all of them.)

If the Expected map evaluates to true, then the conditional operation succeeds; otherwise, it fails.

Expected contains the following:

  • AttributeValueList - One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

    For type Number, value comparisons are numeric.

    String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

    For type Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

  • ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. When performing the comparison, DynamoDB uses strongly consistent reads.

    The following comparison operators are available:

    EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

    The following are descriptions of each comparison operator.

    • EQ : Equal. EQ is supported for all datatypes, including lists and maps.

      AttributeValueList can contain only one AttributeValue element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

    • NE : Not equal. NE is supported for all datatypes, including lists and maps.

      AttributeValueList can contain only one AttributeValue of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

    • LE : Less than or equal.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • LT : Less than.

      AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • GE : Greater than or equal.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • GT : Greater than.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, including lists and maps.

      This operator tests for the existence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute \"a\" exists; its data type is not relevant to the NOT_NULL comparison operator.

    • NULL : The attribute does not exist. NULL is supported for all datatypes, including lists and maps.

      This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute \"a\" exists; its data type is not relevant to the NULL comparison operator.

    • CONTAINS : Checks for a subsequence, or value in a set.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it finds an exact match with any member of the set.

      CONTAINS is supported for lists: When evaluating \"a CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

    • NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value in a set.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it does not find an exact match with any member of the set.

      NOT_CONTAINS is supported for lists: When evaluating \"a NOT CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

    • BEGINS_WITH : Checks for a prefix.

      AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).

    • IN : Checks for matching elements within two sets.

      AttributeValueList can contain one or more AttributeValue elements of type String, Number, or Binary (not a set type). These attributes are compared against an existing set type attribute of an item. If any elements of the input set are present in the item attribute, the expression evaluates to true.

    • BETWEEN : Greater than or equal to the first value, and less than or equal to the second value.

      AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not compare to {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}

For usage examples of AttributeValueList and ComparisonOperator, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.

For backward compatibility with previous DynamoDB releases, the following parameters can be used instead of AttributeValueList and ComparisonOperator:

  • Value - A value for DynamoDB to compare with an attribute.

  • Exists - A Boolean value that causes DynamoDB to evaluate the value before attempting the conditional operation:

    • If Exists is true, DynamoDB will check to see if that attribute value already exists in the table. If it is found, then the condition evaluates to true; otherwise the condition evaluate to false.

    • If Exists is false, DynamoDB assumes that the attribute value does not exist in the table. If in fact the value does not exist, then the assumption is valid and the condition evaluates to true. If the value is found, despite the assumption that it does not exist, the condition evaluates to false.

    Note that the default value for Exists is true.

The Value and Exists parameters are incompatible with AttributeValueList and ComparisonOperator. Note that if you use both sets of parameters at once, DynamoDB will return a ValidationException exception.

This parameter does not support attributes of type List or Map.

", - "PutItemInput$Expected": "

This is a legacy parameter, for backward compatibility. New applications should use ConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

A map of attribute/condition pairs. Expected provides a conditional block for the PutItem operation.

This parameter does not support attributes of type List or Map.

Each element of Expected consists of an attribute name, a comparison operator, and one or more values. DynamoDB compares the attribute with the value(s) you supplied, using the comparison operator. For each Expected element, the result of the evaluation is either true or false.

If you specify more than one element in the Expected map, then by default all of the conditions must evaluate to true. In other words, the conditions are ANDed together. (You can use the ConditionalOperator parameter to OR the conditions instead. If you do this, then at least one of the conditions must evaluate to true, rather than all of them.)

If the Expected map evaluates to true, then the conditional operation succeeds; otherwise, it fails.

Expected contains the following:

  • AttributeValueList - One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

    For type Number, value comparisons are numeric.

    String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

    For type Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

  • ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. When performing the comparison, DynamoDB uses strongly consistent reads.

    The following comparison operators are available:

    EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

    The following are descriptions of each comparison operator.

    • EQ : Equal. EQ is supported for all datatypes, including lists and maps.

      AttributeValueList can contain only one AttributeValue element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

    • NE : Not equal. NE is supported for all datatypes, including lists and maps.

      AttributeValueList can contain only one AttributeValue of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

    • LE : Less than or equal.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • LT : Less than.

      AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • GE : Greater than or equal.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • GT : Greater than.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, including lists and maps.

      This operator tests for the existence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute \"a\" exists; its data type is not relevant to the NOT_NULL comparison operator.

    • NULL : The attribute does not exist. NULL is supported for all datatypes, including lists and maps.

      This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute \"a\" exists; its data type is not relevant to the NULL comparison operator.

    • CONTAINS : Checks for a subsequence, or value in a set.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it finds an exact match with any member of the set.

      CONTAINS is supported for lists: When evaluating \"a CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

    • NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value in a set.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it does not find an exact match with any member of the set.

      NOT_CONTAINS is supported for lists: When evaluating \"a NOT CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

    • BEGINS_WITH : Checks for a prefix.

      AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).

    • IN : Checks for matching elements within two sets.

      AttributeValueList can contain one or more AttributeValue elements of type String, Number, or Binary (not a set type). These attributes are compared against an existing set type attribute of an item. If any elements of the input set are present in the item attribute, the expression evaluates to true.

    • BETWEEN : Greater than or equal to the first value, and less than or equal to the second value.

      AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not compare to {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}

For usage examples of AttributeValueList and ComparisonOperator, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.

For backward compatibility with previous DynamoDB releases, the following parameters can be used instead of AttributeValueList and ComparisonOperator:

  • Value - A value for DynamoDB to compare with an attribute.

  • Exists - A Boolean value that causes DynamoDB to evaluate the value before attempting the conditional operation:

    • If Exists is true, DynamoDB will check to see if that attribute value already exists in the table. If it is found, then the condition evaluates to true; otherwise the condition evaluate to false.

    • If Exists is false, DynamoDB assumes that the attribute value does not exist in the table. If in fact the value does not exist, then the assumption is valid and the condition evaluates to true. If the value is found, despite the assumption that it does not exist, the condition evaluates to false.

    Note that the default value for Exists is true.

The Value and Exists parameters are incompatible with AttributeValueList and ComparisonOperator. Note that if you use both sets of parameters at once, DynamoDB will return a ValidationException exception.

", - "UpdateItemInput$Expected": "

This is a legacy parameter, for backward compatibility. New applications should use ConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

A map of attribute/condition pairs. Expected provides a conditional block for the UpdateItem operation.

Each element of Expected consists of an attribute name, a comparison operator, and one or more values. DynamoDB compares the attribute with the value(s) you supplied, using the comparison operator. For each Expected element, the result of the evaluation is either true or false.

If you specify more than one element in the Expected map, then by default all of the conditions must evaluate to true. In other words, the conditions are ANDed together. (You can use the ConditionalOperator parameter to OR the conditions instead. If you do this, then at least one of the conditions must evaluate to true, rather than all of them.)

If the Expected map evaluates to true, then the conditional operation succeeds; otherwise, it fails.

Expected contains the following:

  • AttributeValueList - One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

    For type Number, value comparisons are numeric.

    String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

    For type Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

  • ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. When performing the comparison, DynamoDB uses strongly consistent reads.

    The following comparison operators are available:

    EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

    The following are descriptions of each comparison operator.

    • EQ : Equal. EQ is supported for all datatypes, including lists and maps.

      AttributeValueList can contain only one AttributeValue element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

    • NE : Not equal. NE is supported for all datatypes, including lists and maps.

      AttributeValueList can contain only one AttributeValue of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

    • LE : Less than or equal.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • LT : Less than.

      AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • GE : Greater than or equal.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • GT : Greater than.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, including lists and maps.

      This operator tests for the existence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute \"a\" exists; its data type is not relevant to the NOT_NULL comparison operator.

    • NULL : The attribute does not exist. NULL is supported for all datatypes, including lists and maps.

      This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute \"a\" exists; its data type is not relevant to the NULL comparison operator.

    • CONTAINS : Checks for a subsequence, or value in a set.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it finds an exact match with any member of the set.

      CONTAINS is supported for lists: When evaluating \"a CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

    • NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value in a set.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it does not find an exact match with any member of the set.

      NOT_CONTAINS is supported for lists: When evaluating \"a NOT CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

    • BEGINS_WITH : Checks for a prefix.

      AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).

    • IN : Checks for matching elements within two sets.

      AttributeValueList can contain one or more AttributeValue elements of type String, Number, or Binary (not a set type). These attributes are compared against an existing set type attribute of an item. If any elements of the input set are present in the item attribute, the expression evaluates to true.

    • BETWEEN : Greater than or equal to the first value, and less than or equal to the second value.

      AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not compare to {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}

For usage examples of AttributeValueList and ComparisonOperator, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.

For backward compatibility with previous DynamoDB releases, the following parameters can be used instead of AttributeValueList and ComparisonOperator:

  • Value - A value for DynamoDB to compare with an attribute.

  • Exists - A Boolean value that causes DynamoDB to evaluate the value before attempting the conditional operation:

    • If Exists is true, DynamoDB will check to see if that attribute value already exists in the table. If it is found, then the condition evaluates to true; otherwise the condition evaluate to false.

    • If Exists is false, DynamoDB assumes that the attribute value does not exist in the table. If in fact the value does not exist, then the assumption is valid and the condition evaluates to true. If the value is found, despite the assumption that it does not exist, the condition evaluates to false.

    Note that the default value for Exists is true.

The Value and Exists parameters are incompatible with AttributeValueList and ComparisonOperator. Note that if you use both sets of parameters at once, DynamoDB will return a ValidationException exception.

This parameter does not support attributes of type List or Map.

" + "DeleteItemInput$Expected": "

This is a legacy parameter. Use ConditionExpresssion instead. For more information, see Expected in the Amazon DynamoDB Developer Guide.

", + "PutItemInput$Expected": "

This is a legacy parameter. Use ConditionExpresssion instead. For more information, see Expected in the Amazon DynamoDB Developer Guide.

", + "UpdateItemInput$Expected": "

This is a legacy parameter. Use ConditionExpresssion instead. For more information, see Expected in the Amazon DynamoDB Developer Guide.

" } }, "ExpectedAttributeValue": { - "base": "

Represents a condition to be compared with an attribute value. This condition can be used with DeleteItem, PutItem or UpdateItem operations; if the comparison evaluates to true, the operation succeeds; if not, the operation fails. You can use ExpectedAttributeValue in one of two different ways:

  • Use AttributeValueList to specify one or more values to compare against an attribute. Use ComparisonOperator to specify how you want to perform the comparison. If the comparison evaluates to true, then the conditional operation succeeds.

  • Use Value to specify a value that DynamoDB will compare against an attribute. If the values match, then ExpectedAttributeValue evaluates to true and the conditional operation succeeds. Optionally, you can also set Exists to false, indicating that you do not expect to find the attribute value in the table. In this case, the conditional operation succeeds only if the comparison evaluates to false.

Value and Exists are incompatible with AttributeValueList and ComparisonOperator. Note that if you use both sets of parameters at once, DynamoDB will return a ValidationException exception.

", + "base": "

Represents a condition to be compared with an attribute value. This condition can be used with DeleteItem, PutItem or UpdateItem operations; if the comparison evaluates to true, the operation succeeds; if not, the operation fails. You can use ExpectedAttributeValue in one of two different ways:

  • Use AttributeValueList to specify one or more values to compare against an attribute. Use ComparisonOperator to specify how you want to perform the comparison. If the comparison evaluates to true, then the conditional operation succeeds.

  • Use Value to specify a value that DynamoDB will compare against an attribute. If the values match, then ExpectedAttributeValue evaluates to true and the conditional operation succeeds. Optionally, you can also set Exists to false, indicating that you do not expect to find the attribute value in the table. In this case, the conditional operation succeeds only if the comparison evaluates to false.

Value and Exists are incompatible with AttributeValueList and ComparisonOperator. Note that if you use both sets of parameters at once, DynamoDB will return a ValidationException exception.

", "refs": { "ExpectedAttributeMap$value": null } @@ -365,13 +380,13 @@ "ExpressionAttributeNameMap": { "base": null, "refs": { - "DeleteItemInput$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", - "GetItemInput$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", - "KeysAndAttributes$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", - "PutItemInput$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", - "QueryInput$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", - "ScanInput$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", - "UpdateItemInput$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

" + "DeleteItemInput$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", + "GetItemInput$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", + "KeysAndAttributes$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", + "PutItemInput$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", + "QueryInput$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", + "ScanInput$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", + "UpdateItemInput$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

" } }, "ExpressionAttributeNameVariable": { @@ -383,11 +398,11 @@ "ExpressionAttributeValueMap": { "base": null, "refs": { - "DeleteItemInput$ExpressionAttributeValues": "

One or more values that can be substituted in an expression.

Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

Available | Backordered | Discontinued

You would first need to specify ExpressionAttributeValues as follows:

{ \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }

You could then use these values in an expression, such as this:

ProductStatus IN (:avail, :back, :disc)

For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

", - "PutItemInput$ExpressionAttributeValues": "

One or more values that can be substituted in an expression.

Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

Available | Backordered | Discontinued

You would first need to specify ExpressionAttributeValues as follows:

{ \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }

You could then use these values in an expression, such as this:

ProductStatus IN (:avail, :back, :disc)

For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

", - "QueryInput$ExpressionAttributeValues": "

One or more values that can be substituted in an expression.

Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

Available | Backordered | Discontinued

You would first need to specify ExpressionAttributeValues as follows:

{ \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }

You could then use these values in an expression, such as this:

ProductStatus IN (:avail, :back, :disc)

For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

", - "ScanInput$ExpressionAttributeValues": "

One or more values that can be substituted in an expression.

Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

Available | Backordered | Discontinued

You would first need to specify ExpressionAttributeValues as follows:

{ \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }

You could then use these values in an expression, such as this:

ProductStatus IN (:avail, :back, :disc)

For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

", - "UpdateItemInput$ExpressionAttributeValues": "

One or more values that can be substituted in an expression.

Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

Available | Backordered | Discontinued

You would first need to specify ExpressionAttributeValues as follows:

{ \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }

You could then use these values in an expression, such as this:

ProductStatus IN (:avail, :back, :disc)

For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

" + "DeleteItemInput$ExpressionAttributeValues": "

One or more values that can be substituted in an expression.

Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

Available | Backordered | Discontinued

You would first need to specify ExpressionAttributeValues as follows:

{ \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }

You could then use these values in an expression, such as this:

ProductStatus IN (:avail, :back, :disc)

For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

", + "PutItemInput$ExpressionAttributeValues": "

One or more values that can be substituted in an expression.

Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

Available | Backordered | Discontinued

You would first need to specify ExpressionAttributeValues as follows:

{ \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }

You could then use these values in an expression, such as this:

ProductStatus IN (:avail, :back, :disc)

For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

", + "QueryInput$ExpressionAttributeValues": "

One or more values that can be substituted in an expression.

Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

Available | Backordered | Discontinued

You would first need to specify ExpressionAttributeValues as follows:

{ \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }

You could then use these values in an expression, such as this:

ProductStatus IN (:avail, :back, :disc)

For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

", + "ScanInput$ExpressionAttributeValues": "

One or more values that can be substituted in an expression.

Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

Available | Backordered | Discontinued

You would first need to specify ExpressionAttributeValues as follows:

{ \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }

You could then use these values in an expression, such as this:

ProductStatus IN (:avail, :back, :disc)

For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

", + "UpdateItemInput$ExpressionAttributeValues": "

One or more values that can be substituted in an expression.

Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

Available | Backordered | Discontinued

You would first need to specify ExpressionAttributeValues as follows:

{ \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }

You could then use these values in an expression, such as this:

ProductStatus IN (:avail, :back, :disc)

For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

" } }, "ExpressionAttributeValueVariable": { @@ -399,17 +414,17 @@ "FilterConditionMap": { "base": null, "refs": { - "QueryInput$QueryFilter": "

This is a legacy parameter, for backward compatibility. New applications should use FilterExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

A condition that evaluates the query results after the items are read and returns only the desired values.

This parameter does not support attributes of type List or Map.

A QueryFilter is applied after the items have already been read; the process of filtering does not consume any additional read capacity units.

If you provide more than one condition in the QueryFilter map, then by default all of the conditions must evaluate to true. In other words, the conditions are ANDed together. (You can use the ConditionalOperator parameter to OR the conditions instead. If you do this, then at least one of the conditions must evaluate to true, rather than all of them.)

Note that QueryFilter does not allow key attributes. You cannot define a filter condition on a partition key or a sort key.

Each QueryFilter element consists of an attribute name to compare, along with the following:

  • AttributeValueList - One or more values to evaluate against the supplied attribute. The number of values in the list depends on the operator specified in ComparisonOperator.

    For type Number, value comparisons are numeric.

    String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

    For type Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

    For information on specifying data types in JSON, see JSON Data Format in the Amazon DynamoDB Developer Guide.

  • ComparisonOperator - A comparator for evaluating attributes. For example, equals, greater than, less than, etc.

    The following comparison operators are available:

    EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

    For complete descriptions of all comparison operators, see the Condition data type.

", - "ScanInput$ScanFilter": "

This is a legacy parameter, for backward compatibility. New applications should use FilterExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

A condition that evaluates the scan results and returns only the desired values.

This parameter does not support attributes of type List or Map.

If you specify more than one condition in the ScanFilter map, then by default all of the conditions must evaluate to true. In other words, the conditions are ANDed together. (You can use the ConditionalOperator parameter to OR the conditions instead. If you do this, then at least one of the conditions must evaluate to true, rather than all of them.)

Each ScanFilter element consists of an attribute name to compare, along with the following:

  • AttributeValueList - One or more values to evaluate against the supplied attribute. The number of values in the list depends on the operator specified in ComparisonOperator .

    For type Number, value comparisons are numeric.

    String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

    For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

    For information on specifying data types in JSON, see JSON Data Format in the Amazon DynamoDB Developer Guide.

  • ComparisonOperator - A comparator for evaluating attributes. For example, equals, greater than, less than, etc.

    The following comparison operators are available:

    EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

    For complete descriptions of all comparison operators, see Condition.

" + "QueryInput$QueryFilter": "

This is a legacy parameter. Use FilterExpression instead. For more information, see QueryFilter in the Amazon DynamoDB Developer Guide.

", + "ScanInput$ScanFilter": "

This is a legacy parameter. Use FilterExpression instead. For more information, see ScanFilter in the Amazon DynamoDB Developer Guide.

" } }, "GetItemInput": { - "base": "

Represents the input of a GetItem operation.

", + "base": "

Represents the input of a GetItem operation.

", "refs": { } }, "GetItemOutput": { - "base": "

Represents the output of a GetItem operation.

", + "base": "

Represents the output of a GetItem operation.

", "refs": { } }, @@ -428,13 +443,13 @@ "GlobalSecondaryIndexDescriptionList": { "base": null, "refs": { - "TableDescription$GlobalSecondaryIndexes": "

The global secondary indexes, if any, on the table. Each index is scoped to a given partition key value. Each element is composed of:

  • Backfilling - If true, then the index is currently in the backfilling phase. Backfilling occurs only when a new global secondary index is added to the table; it is the process by which DynamoDB populates the new index with data from the table. (This attribute does not appear for indexes that were created during a CreateTable operation.)

  • IndexName - The name of the global secondary index.

  • IndexSizeBytes - The total size of the global secondary index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

  • IndexStatus - The current status of the global secondary index:

    • CREATING - The index is being created.

    • UPDATING - The index is being updated.

    • DELETING - The index is being deleted.

    • ACTIVE - The index is ready for use.

  • ItemCount - The number of items in the global secondary index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

  • KeySchema - Specifies the complete index key schema. The attribute names in the key schema must be between 1 and 255 characters (inclusive). The key schema must begin with the same partition key as the table.

  • Projection - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:

    • ProjectionType - One of the following:

      • KEYS_ONLY - Only the index and primary keys are projected into the index.

      • INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes are in NonKeyAttributes.

      • ALL - All of the table attributes are projected into the index.

    • NonKeyAttributes - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

  • ProvisionedThroughput - The provisioned throughput settings for the global secondary index, consisting of read and write capacity units, along with data about increases and decreases.

If the table is in the DELETING state, no information about indexes will be returned.

" + "TableDescription$GlobalSecondaryIndexes": "

The global secondary indexes, if any, on the table. Each index is scoped to a given partition key value. Each element is composed of:

  • Backfilling - If true, then the index is currently in the backfilling phase. Backfilling occurs only when a new global secondary index is added to the table; it is the process by which DynamoDB populates the new index with data from the table. (This attribute does not appear for indexes that were created during a CreateTable operation.)

  • IndexName - The name of the global secondary index.

  • IndexSizeBytes - The total size of the global secondary index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

  • IndexStatus - The current status of the global secondary index:

    • CREATING - The index is being created.

    • UPDATING - The index is being updated.

    • DELETING - The index is being deleted.

    • ACTIVE - The index is ready for use.

  • ItemCount - The number of items in the global secondary index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

  • KeySchema - Specifies the complete index key schema. The attribute names in the key schema must be between 1 and 255 characters (inclusive). The key schema must begin with the same partition key as the table.

  • Projection - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:

    • ProjectionType - One of the following:

      • KEYS_ONLY - Only the index and primary keys are projected into the index.

      • INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes are in NonKeyAttributes.

      • ALL - All of the table attributes are projected into the index.

    • NonKeyAttributes - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

  • ProvisionedThroughput - The provisioned throughput settings for the global secondary index, consisting of read and write capacity units, along with data about increases and decreases.

If the table is in the DELETING state, no information about indexes will be returned.

" } }, "GlobalSecondaryIndexList": { "base": null, "refs": { - "CreateTableInput$GlobalSecondaryIndexes": "

One or more global secondary indexes (the maximum is five) to be created on the table. Each global secondary index in the array includes the following:

  • IndexName - The name of the global secondary index. Must be unique only for this table.

  • KeySchema - Specifies the key schema for the global secondary index.

  • Projection - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:

    • ProjectionType - One of the following:

      • KEYS_ONLY - Only the index and primary keys are projected into the index.

      • INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes are in NonKeyAttributes.

      • ALL - All of the table attributes are projected into the index.

    • NonKeyAttributes - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

  • ProvisionedThroughput - The provisioned throughput settings for the global secondary index, consisting of read and write capacity units.

" + "CreateTableInput$GlobalSecondaryIndexes": "

One or more global secondary indexes (the maximum is five) to be created on the table. Each global secondary index in the array includes the following:

  • IndexName - The name of the global secondary index. Must be unique only for this table.

  • KeySchema - Specifies the key schema for the global secondary index.

  • Projection - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:

    • ProjectionType - One of the following:

      • KEYS_ONLY - Only the index and primary keys are projected into the index.

      • INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes are in NonKeyAttributes.

      • ALL - All of the table attributes are projected into the index.

    • NonKeyAttributes - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

  • ProvisionedThroughput - The provisioned throughput settings for the global secondary index, consisting of read and write capacity units.

" } }, "GlobalSecondaryIndexUpdate": { @@ -446,7 +461,7 @@ "GlobalSecondaryIndexUpdateList": { "base": null, "refs": { - "UpdateTableInput$GlobalSecondaryIndexUpdates": "

An array of one or more global secondary indexes for the table. For each index in the array, you can request one action:

  • Create - add a new global secondary index to the table.

  • Update - modify the provisioned throughput settings of an existing global secondary index.

  • Delete - remove a global secondary index from the table.

For more information, see Managing Global Secondary Indexes in the Amazon DynamoDB Developer Guide.

" + "UpdateTableInput$GlobalSecondaryIndexUpdates": "

An array of one or more global secondary indexes for the table. For each index in the array, you can request one action:

  • Create - add a new global secondary index to the table.

  • Update - modify the provisioned throughput settings of an existing global secondary index.

  • Delete - remove a global secondary index from the table.

For more information, see Managing Global Secondary Indexes in the Amazon DynamoDB Developer Guide.

" } }, "IndexName": { @@ -458,7 +473,7 @@ "GlobalSecondaryIndexDescription$IndexName": "

The name of the global secondary index.

", "LocalSecondaryIndex$IndexName": "

The name of the local secondary index. The name must be unique among all other indexes on this table.

", "LocalSecondaryIndexDescription$IndexName": "

Represents the name of the local secondary index.

", - "QueryInput$IndexName": "

The name of an index to query. This index can be any local secondary index or global secondary index on the table. Note that if you use the IndexName parameter, you must also provide TableName.

", + "QueryInput$IndexName": "

The name of an index to query. This index can be any local secondary index or global secondary index on the table. Note that if you use the IndexName parameter, you must also provide TableName.

", "ScanInput$IndexName": "

The name of a secondary index to scan. This index can be any local secondary index or global secondary index. Note that if you use the IndexName parameter, you must also provide TableName.

", "SecondaryIndexesCapacityMap$key": null, "UpdateGlobalSecondaryIndexAction$IndexName": "

The name of the global secondary index to be updated.

" @@ -467,16 +482,16 @@ "IndexStatus": { "base": null, "refs": { - "GlobalSecondaryIndexDescription$IndexStatus": "

The current state of the global secondary index:

  • CREATING - The index is being created.

  • UPDATING - The index is being updated.

  • DELETING - The index is being deleted.

  • ACTIVE - The index is ready for use.

" + "GlobalSecondaryIndexDescription$IndexStatus": "

The current state of the global secondary index:

  • CREATING - The index is being created.

  • UPDATING - The index is being updated.

  • DELETING - The index is being deleted.

  • ACTIVE - The index is ready for use.

" } }, "Integer": { "base": null, "refs": { - "QueryOutput$Count": "

The number of items in the response.

If you used a QueryFilter in the request, then Count is the number of items returned after the filter was applied, and ScannedCount is the number of matching items before the filter was applied.

If you did not use a filter in the request, then Count and ScannedCount are the same.

", - "QueryOutput$ScannedCount": "

The number of items evaluated, before any QueryFilter is applied. A high ScannedCount value with few, or no, Count results indicates an inefficient Query operation. For more information, see Count and ScannedCount in the Amazon DynamoDB Developer Guide.

If you did not use a filter in the request, then ScannedCount is the same as Count.

", - "ScanOutput$Count": "

The number of items in the response.

If you set ScanFilter in the request, then Count is the number of items returned after the filter was applied, and ScannedCount is the number of matching items before the filter was applied.

If you did not use a filter in the request, then Count is the same as ScannedCount.

", - "ScanOutput$ScannedCount": "

The number of items evaluated, before any ScanFilter is applied. A high ScannedCount value with few, or no, Count results indicates an inefficient Scan operation. For more information, see Count and ScannedCount in the Amazon DynamoDB Developer Guide.

If you did not use a filter in the request, then ScannedCount is the same as Count.

" + "QueryOutput$Count": "

The number of items in the response.

If you used a QueryFilter in the request, then Count is the number of items returned after the filter was applied, and ScannedCount is the number of matching items before the filter was applied.

If you did not use a filter in the request, then Count and ScannedCount are the same.

", + "QueryOutput$ScannedCount": "

The number of items evaluated, before any QueryFilter is applied. A high ScannedCount value with few, or no, Count results indicates an inefficient Query operation. For more information, see Count and ScannedCount in the Amazon DynamoDB Developer Guide.

If you did not use a filter in the request, then ScannedCount is the same as Count.

", + "ScanOutput$Count": "

The number of items in the response.

If you set ScanFilter in the request, then Count is the number of items returned after the filter was applied, and ScannedCount is the number of matching items before the filter was applied.

If you did not use a filter in the request, then Count is the same as ScannedCount.

", + "ScanOutput$ScannedCount": "

The number of items evaluated, before any ScanFilter is applied. A high ScannedCount value with few, or no, Count results indicates an inefficient Scan operation. For more information, see Count and ScannedCount in the Amazon DynamoDB Developer Guide.

If you did not use a filter in the request, then ScannedCount is the same as Count.

" } }, "InternalServerError": { @@ -491,12 +506,12 @@ } }, "ItemCollectionMetrics": { - "base": "

Information about item collections, if any, that were affected by the operation. ItemCollectionMetrics is only returned if the request asked for it. If the table does not have any local secondary indexes, this information is not returned in the response.

", + "base": "

Information about item collections, if any, that were affected by the operation. ItemCollectionMetrics is only returned if the request asked for it. If the table does not have any local secondary indexes, this information is not returned in the response.

", "refs": { - "DeleteItemOutput$ItemCollectionMetrics": "

Information about item collections, if any, that were affected by the operation. ItemCollectionMetrics is only returned if the request asked for it. If the table does not have any local secondary indexes, this information is not returned in the response.

Each ItemCollectionMetrics element consists of:

  • ItemCollectionKey - The partition key value of the item collection. This is the same as the partition key value of the item itself.

  • SizeEstimateRange - An estimate of item collection size, in gigabytes. This value is a two-element array containing a lower bound and an upper bound for the estimate. The estimate includes the size of all the items in the table, plus the size of all attributes projected into all of the local secondary indexes on that table. Use this estimate to measure whether a local secondary index is approaching its size limit.

    The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.

", + "DeleteItemOutput$ItemCollectionMetrics": "

Information about item collections, if any, that were affected by the DeleteItem operation. ItemCollectionMetrics is only returned if the ReturnItemCollectionMetrics parameter was specified. If the table does not have any local secondary indexes, this information is not returned in the response.

Each ItemCollectionMetrics element consists of:

  • ItemCollectionKey - The partition key value of the item collection. This is the same as the partition key value of the item itself.

  • SizeEstimateRange - An estimate of item collection size, in gigabytes. This value is a two-element array containing a lower bound and an upper bound for the estimate. The estimate includes the size of all the items in the table, plus the size of all attributes projected into all of the local secondary indexes on that table. Use this estimate to measure whether a local secondary index is approaching its size limit.

    The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.

", "ItemCollectionMetricsMultiple$member": null, - "PutItemOutput$ItemCollectionMetrics": "

Information about item collections, if any, that were affected by the operation. ItemCollectionMetrics is only returned if the request asked for it. If the table does not have any local secondary indexes, this information is not returned in the response.

Each ItemCollectionMetrics element consists of:

  • ItemCollectionKey - The partition key value of the item collection. This is the same as the partition key value of the item itself.

  • SizeEstimateRange - An estimate of item collection size, in gigabytes. This value is a two-element array containing a lower bound and an upper bound for the estimate. The estimate includes the size of all the items in the table, plus the size of all attributes projected into all of the local secondary indexes on that table. Use this estimate to measure whether a local secondary index is approaching its size limit.

    The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.

", - "UpdateItemOutput$ItemCollectionMetrics": null + "PutItemOutput$ItemCollectionMetrics": "

Information about item collections, if any, that were affected by the PutItem operation. ItemCollectionMetrics is only returned if the ReturnItemCollectionMetrics parameter was specified. If the table does not have any local secondary indexes, this information is not returned in the response.

Each ItemCollectionMetrics element consists of:

  • ItemCollectionKey - The partition key value of the item collection. This is the same as the partition key value of the item itself.

  • SizeEstimateRange - An estimate of item collection size, in gigabytes. This value is a two-element array containing a lower bound and an upper bound for the estimate. The estimate includes the size of all the items in the table, plus the size of all attributes projected into all of the local secondary indexes on that table. Use this estimate to measure whether a local secondary index is approaching its size limit.

    The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.

", + "UpdateItemOutput$ItemCollectionMetrics": "

Information about item collections, if any, that were affected by the UpdateItem operation. ItemCollectionMetrics is only returned if the ReturnItemCollectionMetrics parameter was specified. If the table does not have any local secondary indexes, this information is not returned in the response.

Each ItemCollectionMetrics element consists of:

  • ItemCollectionKey - The partition key value of the item collection. This is the same as the partition key value of the item itself.

  • SizeEstimateRange - An estimate of item collection size, in gigabytes. This value is a two-element array containing a lower bound and an upper bound for the estimate. The estimate includes the size of all the items in the table, plus the size of all attributes projected into all of the local secondary indexes on that table. Use this estimate to measure whether a local secondary index is approaching its size limit.

    The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.

" } }, "ItemCollectionMetricsMultiple": { @@ -508,7 +523,7 @@ "ItemCollectionMetricsPerTable": { "base": null, "refs": { - "BatchWriteItemOutput$ItemCollectionMetrics": "

A list of tables that were processed by BatchWriteItem and, for each table, information about any item collections that were affected by individual DeleteItem or PutItem operations.

Each entry consists of the following subelements:

  • ItemCollectionKey - The partition key value of the item collection. This is the same as the partition key value of the item.

  • SizeEstimateRange - An estimate of item collection size, expressed in GB. This is a two-element array containing a lower bound and an upper bound for the estimate. The estimate includes the size of all the items in the table, plus the size of all attributes projected into all of the local secondary indexes on the table. Use this estimate to measure whether a local secondary index is approaching its size limit.

    The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.

" + "BatchWriteItemOutput$ItemCollectionMetrics": "

A list of tables that were processed by BatchWriteItem and, for each table, information about any item collections that were affected by individual DeleteItem or PutItem operations.

Each entry consists of the following subelements:

  • ItemCollectionKey - The partition key value of the item collection. This is the same as the partition key value of the item.

  • SizeEstimateRange - An estimate of item collection size, expressed in GB. This is a two-element array containing a lower bound and an upper bound for the estimate. The estimate includes the size of all the items in the table, plus the size of all attributes projected into all of the local secondary indexes on the table. Use this estimate to measure whether a local secondary index is approaching its size limit.

    The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.

" } }, "ItemCollectionSizeEstimateBound": { @@ -539,27 +554,27 @@ "Key": { "base": null, "refs": { - "DeleteItemInput$Key": "

A map of attribute names to AttributeValue objects, representing the primary key of the item to delete.

For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.

", + "DeleteItemInput$Key": "

A map of attribute names to AttributeValue objects, representing the primary key of the item to delete.

For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.

", "DeleteRequest$Key": "

A map of attribute name to attribute values, representing the primary key of the item to delete. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema.

", - "GetItemInput$Key": "

A map of attribute names to AttributeValue objects, representing the primary key of the item to retrieve.

For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.

", + "GetItemInput$Key": "

A map of attribute names to AttributeValue objects, representing the primary key of the item to retrieve.

For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.

", "KeyList$member": null, - "QueryInput$ExclusiveStartKey": "

The primary key of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedKey in the previous operation.

The data type for ExclusiveStartKey must be String, Number or Binary. No set data types are allowed.

", - "QueryOutput$LastEvaluatedKey": "

The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.

If LastEvaluatedKey is empty, then the \"last page\" of results has been processed and there is no more data to be retrieved.

If LastEvaluatedKey is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey is empty.

", - "ScanInput$ExclusiveStartKey": "

The primary key of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedKey in the previous operation.

The data type for ExclusiveStartKey must be String, Number or Binary. No set data types are allowed.

In a parallel scan, a Scan request that includes ExclusiveStartKey must specify the same segment whose previous Scan returned the corresponding value of LastEvaluatedKey.

", - "ScanOutput$LastEvaluatedKey": "

The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.

If LastEvaluatedKey is empty, then the \"last page\" of results has been processed and there is no more data to be retrieved.

If LastEvaluatedKey is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey is empty.

", + "QueryInput$ExclusiveStartKey": "

The primary key of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedKey in the previous operation.

The data type for ExclusiveStartKey must be String, Number or Binary. No set data types are allowed.

", + "QueryOutput$LastEvaluatedKey": "

The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.

If LastEvaluatedKey is empty, then the \"last page\" of results has been processed and there is no more data to be retrieved.

If LastEvaluatedKey is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey is empty.

", + "ScanInput$ExclusiveStartKey": "

The primary key of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedKey in the previous operation.

The data type for ExclusiveStartKey must be String, Number or Binary. No set data types are allowed.

In a parallel scan, a Scan request that includes ExclusiveStartKey must specify the same segment whose previous Scan returned the corresponding value of LastEvaluatedKey.

", + "ScanOutput$LastEvaluatedKey": "

The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.

If LastEvaluatedKey is empty, then the \"last page\" of results has been processed and there is no more data to be retrieved.

If LastEvaluatedKey is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey is empty.

", "UpdateItemInput$Key": "

The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.

For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.

" } }, "KeyConditions": { "base": null, "refs": { - "QueryInput$KeyConditions": "

This is a legacy parameter, for backward compatibility. New applications should use KeyConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

The selection criteria for the query. For a query on a table, you can have conditions only on the table primary key attributes. You must provide the partition key name and value as an EQ condition. You can optionally provide a second condition, referring to the sort key.

If you don't provide a sort key condition, all of the items that match the partition key will be retrieved. If a FilterExpression or QueryFilter is present, it will be applied after the items are retrieved.

For a query on an index, you can have conditions only on the index key attributes. You must provide the index partition key name and value as an EQ condition. You can optionally provide a second condition, referring to the index sort key.

Each KeyConditions element consists of an attribute name to compare, along with the following:

  • AttributeValueList - One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

    For type Number, value comparisons are numeric.

    String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

    For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

  • ComparisonOperator - A comparator for evaluating attributes, for example, equals, greater than, less than, and so on.

    For KeyConditions, only the following comparison operators are supported:

    EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN

    The following are descriptions of these comparison operators.

    • EQ : Equal.

      AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one specified in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

    • LE : Less than or equal.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • LT : Less than.

      AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • GE : Greater than or equal.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • GT : Greater than.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • BEGINS_WITH : Checks for a prefix.

      AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).

    • BETWEEN : Greater than or equal to the first value, and less than or equal to the second value.

      AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not compare to {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}

For usage examples of AttributeValueList and ComparisonOperator, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.

" + "QueryInput$KeyConditions": "

This is a legacy parameter. Use KeyConditionExpression instead. For more information, see KeyConditions in the Amazon DynamoDB Developer Guide.

" } }, "KeyExpression": { "base": null, "refs": { - "QueryInput$KeyConditionExpression": "

The condition that specifies the key value(s) for items to be retrieved by the Query action.

The condition must perform an equality test on a single partition key value. The condition can also perform one of several comparison tests on a single sort key value. Query can use KeyConditionExpression to retrieve one item with a given partition key value and sort key value, or several items that have the same partition key value but different sort key values.

The partition key equality test is required, and must be specified in the following format:

partitionKeyName = :partitionkeyval

If you also want to provide a condition for the sort key, it must be combined using AND with the condition for the sort key. Following is an example, using the = comparison operator for the sort key:

partitionKeyName = :partitionkeyval AND sortKeyName = :sortkeyval

Valid comparisons for the sort key condition are as follows:

  • sortKeyName = :sortkeyval - true if the sort key value is equal to :sortkeyval.

  • sortKeyName < :sortkeyval - true if the sort key value is less than :sortkeyval.

  • sortKeyName <= :sortkeyval - true if the sort key value is less than or equal to :sortkeyval.

  • sortKeyName > :sortkeyval - true if the sort key value is greater than :sortkeyval.

  • sortKeyName >= :sortkeyval - true if the sort key value is greater than or equal to :sortkeyval.

  • sortKeyName BETWEEN :sortkeyval1 AND :sortkeyval2 - true if the sort key value is greater than or equal to :sortkeyval1, and less than or equal to :sortkeyval2.

  • begins_with ( sortKeyName, :sortkeyval ) - true if the sort key value begins with a particular operand. (You cannot use this function with a sort key that is of type Number.) Note that the function name begins_with is case-sensitive.

Use the ExpressionAttributeValues parameter to replace tokens such as :partitionval and :sortval with actual values at runtime.

You can optionally use the ExpressionAttributeNames parameter to replace the names of the partition key and sort key with placeholder tokens. This option might be necessary if an attribute name conflicts with a DynamoDB reserved word. For example, the following KeyConditionExpression parameter causes an error because Size is a reserved word:

  • Size = :myval

To work around this, define a placeholder (such a #S) to represent the attribute name Size. KeyConditionExpression then is as follows:

  • #S = :myval

For a list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide.

For more information on ExpressionAttributeNames and ExpressionAttributeValues, see Using Placeholders for Attribute Names and Values in the Amazon DynamoDB Developer Guide.

KeyConditionExpression replaces the legacy KeyConditions parameter.

" + "QueryInput$KeyConditionExpression": "

The condition that specifies the key value(s) for items to be retrieved by the Query action.

The condition must perform an equality test on a single partition key value. The condition can also perform one of several comparison tests on a single sort key value. Query can use KeyConditionExpression to retrieve one item with a given partition key value and sort key value, or several items that have the same partition key value but different sort key values.

The partition key equality test is required, and must be specified in the following format:

partitionKeyName = :partitionkeyval

If you also want to provide a condition for the sort key, it must be combined using AND with the condition for the sort key. Following is an example, using the = comparison operator for the sort key:

partitionKeyName = :partitionkeyval AND sortKeyName = :sortkeyval

Valid comparisons for the sort key condition are as follows:

  • sortKeyName = :sortkeyval - true if the sort key value is equal to :sortkeyval.

  • sortKeyName < :sortkeyval - true if the sort key value is less than :sortkeyval.

  • sortKeyName <= :sortkeyval - true if the sort key value is less than or equal to :sortkeyval.

  • sortKeyName > :sortkeyval - true if the sort key value is greater than :sortkeyval.

  • sortKeyName >= :sortkeyval - true if the sort key value is greater than or equal to :sortkeyval.

  • sortKeyName BETWEEN :sortkeyval1 AND :sortkeyval2 - true if the sort key value is greater than or equal to :sortkeyval1, and less than or equal to :sortkeyval2.

  • begins_with ( sortKeyName, :sortkeyval ) - true if the sort key value begins with a particular operand. (You cannot use this function with a sort key that is of type Number.) Note that the function name begins_with is case-sensitive.

Use the ExpressionAttributeValues parameter to replace tokens such as :partitionval and :sortval with actual values at runtime.

You can optionally use the ExpressionAttributeNames parameter to replace the names of the partition key and sort key with placeholder tokens. This option might be necessary if an attribute name conflicts with a DynamoDB reserved word. For example, the following KeyConditionExpression parameter causes an error because Size is a reserved word:

  • Size = :myval

To work around this, define a placeholder (such a #S) to represent the attribute name Size. KeyConditionExpression then is as follows:

  • #S = :myval

For a list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide.

For more information on ExpressionAttributeNames and ExpressionAttributeValues, see Using Placeholders for Attribute Names and Values in the Amazon DynamoDB Developer Guide.

" } }, "KeyList": { @@ -572,12 +587,12 @@ "base": null, "refs": { "CreateGlobalSecondaryIndexAction$KeySchema": "

The key schema for the global secondary index.

", - "CreateTableInput$KeySchema": "

Specifies the attributes that make up the primary key for a table or an index. The attributes in KeySchema must also be defined in the AttributeDefinitions array. For more information, see Data Model in the Amazon DynamoDB Developer Guide.

Each KeySchemaElement in the array is composed of:

  • AttributeName - The name of this key attribute.

  • KeyType - The role that the key attribute will assume:

    • HASH - partition key

    • RANGE - sort key

The partition key of an item is also known as its hash attribute. The term \"hash attribute\" derives from DynamoDB' usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.

The sort key of an item is also known as its range attribute. The term \"range attribute\" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.

For a simple primary key (partition key), you must provide exactly one element with a KeyType of HASH.

For a composite primary key (partition key and sort key), you must provide exactly two elements, in this order: The first element must have a KeyType of HASH, and the second element must have a KeyType of RANGE.

For more information, see Specifying the Primary Key in the Amazon DynamoDB Developer Guide.

", + "CreateTableInput$KeySchema": "

Specifies the attributes that make up the primary key for a table or an index. The attributes in KeySchema must also be defined in the AttributeDefinitions array. For more information, see Data Model in the Amazon DynamoDB Developer Guide.

Each KeySchemaElement in the array is composed of:

  • AttributeName - The name of this key attribute.

  • KeyType - The role that the key attribute will assume:

    • HASH - partition key

    • RANGE - sort key

The partition key of an item is also known as its hash attribute. The term \"hash attribute\" derives from DynamoDB' usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.

The sort key of an item is also known as its range attribute. The term \"range attribute\" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.

For a simple primary key (partition key), you must provide exactly one element with a KeyType of HASH.

For a composite primary key (partition key and sort key), you must provide exactly two elements, in this order: The first element must have a KeyType of HASH, and the second element must have a KeyType of RANGE.

For more information, see Specifying the Primary Key in the Amazon DynamoDB Developer Guide.

", "GlobalSecondaryIndex$KeySchema": "

The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types:

  • HASH - partition key

  • RANGE - sort key

The partition key of an item is also known as its hash attribute. The term \"hash attribute\" derives from DynamoDB' usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.

The sort key of an item is also known as its range attribute. The term \"range attribute\" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.

", "GlobalSecondaryIndexDescription$KeySchema": "

The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types:

  • HASH - partition key

  • RANGE - sort key

The partition key of an item is also known as its hash attribute. The term \"hash attribute\" derives from DynamoDB' usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.

The sort key of an item is also known as its range attribute. The term \"range attribute\" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.

", "LocalSecondaryIndex$KeySchema": "

The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types:

  • HASH - partition key

  • RANGE - sort key

The partition key of an item is also known as its hash attribute. The term \"hash attribute\" derives from DynamoDB' usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.

The sort key of an item is also known as its range attribute. The term \"range attribute\" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.

", "LocalSecondaryIndexDescription$KeySchema": "

The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types:

  • HASH - partition key

  • RANGE - sort key

The partition key of an item is also known as its hash attribute. The term \"hash attribute\" derives from DynamoDB' usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.

The sort key of an item is also known as its range attribute. The term \"range attribute\" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.

", - "TableDescription$KeySchema": "

The primary key structure for the table. Each KeySchemaElement consists of:

  • AttributeName - The name of the attribute.

  • KeyType - The role of the attribute:

    • HASH - partition key

    • RANGE - sort key

    The partition key of an item is also known as its hash attribute. The term \"hash attribute\" derives from DynamoDB' usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.

    The sort key of an item is also known as its range attribute. The term \"range attribute\" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.

For more information about primary keys, see Primary Key in the Amazon DynamoDB Developer Guide.

" + "TableDescription$KeySchema": "

The primary key structure for the table. Each KeySchemaElement consists of:

  • AttributeName - The name of the attribute.

  • KeyType - The role of the attribute:

    • HASH - partition key

    • RANGE - sort key

    The partition key of an item is also known as its hash attribute. The term \"hash attribute\" derives from DynamoDB' usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.

    The sort key of an item is also known as its range attribute. The term \"range attribute\" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.

For more information about primary keys, see Primary Key in the Amazon DynamoDB Developer Guide.

" } }, "KeySchemaAttributeName": { @@ -588,7 +603,7 @@ } }, "KeySchemaElement": { - "base": "

Represents a single element of a key schema. A key schema specifies the attributes that make up the primary key of a table, or the key attributes of an index.

A KeySchemaElement represents exactly one attribute of the primary key. For example, a simple primary key would be represented by one KeySchemaElement (for the partition key). A composite primary key would require one KeySchemaElement for the partition key, and another KeySchemaElement for the sort key.

A KeySchemaElement must be a scalar, top-level attribute (not a nested attribute). The data type must be one of String, Number, or Binary. The attribute cannot be nested within a List or a Map.

", + "base": "

Represents a single element of a key schema. A key schema specifies the attributes that make up the primary key of a table, or the key attributes of an index.

A KeySchemaElement represents exactly one attribute of the primary key. For example, a simple primary key would be represented by one KeySchemaElement (for the partition key). A composite primary key would require one KeySchemaElement for the partition key, and another KeySchemaElement for the sort key.

A KeySchemaElement must be a scalar, top-level attribute (not a nested attribute). The data type must be one of String, Number, or Binary. The attribute cannot be nested within a List or a Map.

", "refs": { "KeySchema$member": null } @@ -613,11 +628,11 @@ "ListAttributeValue": { "base": null, "refs": { - "AttributeValue$L": "

A List of attribute values.

" + "AttributeValue$L": "

An attribute of type List. For example:

\"L\": [\"Cookies\", \"Coffee\", 3.14159]

" } }, "ListTablesInput": { - "base": "

Represents the input of a ListTables operation.

", + "base": "

Represents the input of a ListTables operation.

", "refs": { } }, @@ -628,7 +643,17 @@ } }, "ListTablesOutput": { - "base": "

Represents the output of a ListTables operation.

", + "base": "

Represents the output of a ListTables operation.

", + "refs": { + } + }, + "ListTagsOfResourceInput": { + "base": null, + "refs": { + } + }, + "ListTagsOfResourceOutput": { + "base": null, "refs": { } }, @@ -647,13 +672,13 @@ "LocalSecondaryIndexDescriptionList": { "base": null, "refs": { - "TableDescription$LocalSecondaryIndexes": "

Represents one or more local secondary indexes on the table. Each index is scoped to a given partition key value. Tables with one or more local secondary indexes are subject to an item collection size limit, where the amount of data within a given item collection cannot exceed 10 GB. Each element is composed of:

  • IndexName - The name of the local secondary index.

  • KeySchema - Specifies the complete index key schema. The attribute names in the key schema must be between 1 and 255 characters (inclusive). The key schema must begin with the same partition key as the table.

  • Projection - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:

    • ProjectionType - One of the following:

      • KEYS_ONLY - Only the index and primary keys are projected into the index.

      • INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes are in NonKeyAttributes.

      • ALL - All of the table attributes are projected into the index.

    • NonKeyAttributes - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

  • IndexSizeBytes - Represents the total size of the index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

  • ItemCount - Represents the number of items in the index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

If the table is in the DELETING state, no information about indexes will be returned.

" + "TableDescription$LocalSecondaryIndexes": "

Represents one or more local secondary indexes on the table. Each index is scoped to a given partition key value. Tables with one or more local secondary indexes are subject to an item collection size limit, where the amount of data within a given item collection cannot exceed 10 GB. Each element is composed of:

  • IndexName - The name of the local secondary index.

  • KeySchema - Specifies the complete index key schema. The attribute names in the key schema must be between 1 and 255 characters (inclusive). The key schema must begin with the same partition key as the table.

  • Projection - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:

    • ProjectionType - One of the following:

      • KEYS_ONLY - Only the index and primary keys are projected into the index.

      • INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes are in NonKeyAttributes.

      • ALL - All of the table attributes are projected into the index.

    • NonKeyAttributes - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

  • IndexSizeBytes - Represents the total size of the index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

  • ItemCount - Represents the number of items in the index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

If the table is in the DELETING state, no information about indexes will be returned.

" } }, "LocalSecondaryIndexList": { "base": null, "refs": { - "CreateTableInput$LocalSecondaryIndexes": "

One or more local secondary indexes (the maximum is five) to be created on the table. Each index is scoped to a given partition key value. There is a 10 GB size limit per partition key value; otherwise, the size of a local secondary index is unconstrained.

Each local secondary index in the array includes the following:

  • IndexName - The name of the local secondary index. Must be unique only for this table.

  • KeySchema - Specifies the key schema for the local secondary index. The key schema must begin with the same partition key as the table.

  • Projection - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:

    • ProjectionType - One of the following:

      • KEYS_ONLY - Only the index and primary keys are projected into the index.

      • INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes are in NonKeyAttributes.

      • ALL - All of the table attributes are projected into the index.

    • NonKeyAttributes - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

" + "CreateTableInput$LocalSecondaryIndexes": "

One or more local secondary indexes (the maximum is five) to be created on the table. Each index is scoped to a given partition key value. There is a 10 GB size limit per partition key value; otherwise, the size of a local secondary index is unconstrained.

Each local secondary index in the array includes the following:

  • IndexName - The name of the local secondary index. Must be unique only for this table.

  • KeySchema - Specifies the key schema for the local secondary index. The key schema must begin with the same partition key as the table.

  • Projection - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:

    • ProjectionType - One of the following:

      • KEYS_ONLY - Only the index and primary keys are projected into the index.

      • INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes are in NonKeyAttributes.

      • ALL - All of the table attributes are projected into the index.

    • NonKeyAttributes - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

" } }, "Long": { @@ -670,7 +695,14 @@ "MapAttributeValue": { "base": null, "refs": { - "AttributeValue$M": "

A Map of attribute values.

" + "AttributeValue$M": "

An attribute of type Map. For example:

\"M\": {\"Name\": {\"S\": \"Joe\"}, \"Age\": {\"N\": \"35\"}}

" + } + }, + "NextTokenString": { + "base": null, + "refs": { + "ListTagsOfResourceInput$NextToken": "

An optional string that, if supplied, must be copied from the output of a previous call to ListTagOfResource. When provided in this manner, this API fetches the next page of results.

", + "ListTagsOfResourceOutput$NextToken": "

If this value is returned, there are additional results to be displayed. To retrieve them, call ListTagsOfResource again, with NextToken set to this value.

" } }, "NonKeyAttributeName": { @@ -682,33 +714,33 @@ "NonKeyAttributeNameList": { "base": null, "refs": { - "Projection$NonKeyAttributes": "

Represents the non-key attribute names which will be projected into the index.

For local secondary indexes, the total count of NonKeyAttributes summed across all of the local secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

" + "Projection$NonKeyAttributes": "

Represents the non-key attribute names which will be projected into the index.

For local secondary indexes, the total count of NonKeyAttributes summed across all of the local secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

" } }, "NullAttributeValue": { "base": null, "refs": { - "AttributeValue$NULL": "

A Null data type.

" + "AttributeValue$NULL": "

An attribute of type Null. For example:

\"NULL\": true

" } }, "NumberAttributeValue": { "base": null, "refs": { - "AttributeValue$N": "

A Number data type.

", + "AttributeValue$N": "

An attribute of type Number. For example:

\"N\": \"123.45\"

Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.

", "NumberSetAttributeValue$member": null } }, "NumberSetAttributeValue": { "base": null, "refs": { - "AttributeValue$NS": "

A Number Set data type.

" + "AttributeValue$NS": "

An attribute of type Number Set. For example:

\"NS\": [\"42.2\", \"-19\", \"7.5\", \"3.14\"]

Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.

" } }, "PositiveIntegerObject": { "base": null, "refs": { - "QueryInput$Limit": "

The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, and a key in LastEvaluatedKey to apply in a subsequent operation, so that you can pick up where you left off. Also, if the processed data set size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation and returns the matching values up to the limit, and a key in LastEvaluatedKey to apply in a subsequent operation to continue the operation. For more information, see Query and Scan in the Amazon DynamoDB Developer Guide.

", - "ScanInput$Limit": "

The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, and a key in LastEvaluatedKey to apply in a subsequent operation, so that you can pick up where you left off. Also, if the processed data set size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation and returns the matching values up to the limit, and a key in LastEvaluatedKey to apply in a subsequent operation to continue the operation. For more information, see Query and Scan in the Amazon DynamoDB Developer Guide.

" + "QueryInput$Limit": "

The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, and a key in LastEvaluatedKey to apply in a subsequent operation, so that you can pick up where you left off. Also, if the processed data set size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation and returns the matching values up to the limit, and a key in LastEvaluatedKey to apply in a subsequent operation to continue the operation. For more information, see Query and Scan in the Amazon DynamoDB Developer Guide.

", + "ScanInput$Limit": "

The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, and a key in LastEvaluatedKey to apply in a subsequent operation, so that you can pick up where you left off. Also, if the processed data set size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation and returns the matching values up to the limit, and a key in LastEvaluatedKey to apply in a subsequent operation to continue the operation. For more information, see Query and Scan in the Amazon DynamoDB Developer Guide.

" } }, "PositiveLongObject": { @@ -718,91 +750,99 @@ "DescribeLimitsOutput$AccountMaxWriteCapacityUnits": "

The maximum total write capacity units that your account allows you to provision across all of your tables in this region.

", "DescribeLimitsOutput$TableMaxReadCapacityUnits": "

The maximum read capacity units that your account allows you to provision for a new table that you are creating in this region, including the read capacity units provisioned for its global secondary indexes (GSIs).

", "DescribeLimitsOutput$TableMaxWriteCapacityUnits": "

The maximum write capacity units that your account allows you to provision for a new table that you are creating in this region, including the write capacity units provisioned for its global secondary indexes (GSIs).

", - "ProvisionedThroughput$ReadCapacityUnits": "

The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.

", - "ProvisionedThroughput$WriteCapacityUnits": "

The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.

", + "ProvisionedThroughput$ReadCapacityUnits": "

The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.

", + "ProvisionedThroughput$WriteCapacityUnits": "

The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.

", "ProvisionedThroughputDescription$NumberOfDecreasesToday": "

The number of provisioned throughput decreases for this table during this UTC calendar day. For current maximums on provisioned throughput decreases, see Limits in the Amazon DynamoDB Developer Guide.

", - "ProvisionedThroughputDescription$ReadCapacityUnits": "

The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. Eventually consistent reads require less effort than strongly consistent reads, so a setting of 50 ReadCapacityUnits per second provides 100 eventually consistent ReadCapacityUnits per second.

", - "ProvisionedThroughputDescription$WriteCapacityUnits": "

The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.

" + "ProvisionedThroughputDescription$ReadCapacityUnits": "

The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. Eventually consistent reads require less effort than strongly consistent reads, so a setting of 50 ReadCapacityUnits per second provides 100 eventually consistent ReadCapacityUnits per second.

", + "ProvisionedThroughputDescription$WriteCapacityUnits": "

The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.

" } }, "Projection": { "base": "

Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.

", "refs": { - "CreateGlobalSecondaryIndexAction$Projection": null, - "GlobalSecondaryIndex$Projection": null, - "GlobalSecondaryIndexDescription$Projection": null, - "LocalSecondaryIndex$Projection": null, - "LocalSecondaryIndexDescription$Projection": null + "CreateGlobalSecondaryIndexAction$Projection": "

Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.

", + "GlobalSecondaryIndex$Projection": "

Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.

", + "GlobalSecondaryIndexDescription$Projection": "

Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.

", + "LocalSecondaryIndex$Projection": "

Represents attributes that are copied (projected) from the table into the local secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.

", + "LocalSecondaryIndexDescription$Projection": "

Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.

" } }, "ProjectionExpression": { "base": null, "refs": { - "GetItemInput$ProjectionExpression": "

A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

ProjectionExpression replaces the legacy AttributesToGet parameter.

", - "KeysAndAttributes$ProjectionExpression": "

A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the ProjectionExpression must be separated by commas.

If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

ProjectionExpression replaces the legacy AttributesToGet parameter.

", - "QueryInput$ProjectionExpression": "

A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

ProjectionExpression replaces the legacy AttributesToGet parameter.

", - "ScanInput$ProjectionExpression": "

A string that identifies one or more attributes to retrieve from the specified table or index. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

ProjectionExpression replaces the legacy AttributesToGet parameter.

" + "GetItemInput$ProjectionExpression": "

A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", + "KeysAndAttributes$ProjectionExpression": "

A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the ProjectionExpression must be separated by commas.

If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", + "QueryInput$ProjectionExpression": "

A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", + "ScanInput$ProjectionExpression": "

A string that identifies one or more attributes to retrieve from the specified table or index. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

" } }, "ProjectionType": { "base": null, "refs": { - "Projection$ProjectionType": "

The set of attributes that are projected into the index:

  • KEYS_ONLY - Only the index and primary keys are projected into the index.

  • INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes are in NonKeyAttributes.

  • ALL - All of the table attributes are projected into the index.

" + "Projection$ProjectionType": "

The set of attributes that are projected into the index:

  • KEYS_ONLY - Only the index and primary keys are projected into the index.

  • INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes are in NonKeyAttributes.

  • ALL - All of the table attributes are projected into the index.

" } }, "ProvisionedThroughput": { - "base": "

Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the UpdateTable operation.

For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.

", + "base": "

Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the UpdateTable operation.

For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.

", "refs": { - "CreateGlobalSecondaryIndexAction$ProvisionedThroughput": null, - "CreateTableInput$ProvisionedThroughput": null, - "GlobalSecondaryIndex$ProvisionedThroughput": null, - "UpdateGlobalSecondaryIndexAction$ProvisionedThroughput": null, - "UpdateTableInput$ProvisionedThroughput": null + "CreateGlobalSecondaryIndexAction$ProvisionedThroughput": "

Represents the provisioned throughput settings for the specified global secondary index.

For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.

", + "CreateTableInput$ProvisionedThroughput": "

Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the UpdateTable operation.

For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.

", + "GlobalSecondaryIndex$ProvisionedThroughput": "

Represents the provisioned throughput settings for the specified global secondary index.

For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.

", + "UpdateGlobalSecondaryIndexAction$ProvisionedThroughput": "

Represents the provisioned throughput settings for the specified global secondary index.

For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.

", + "UpdateTableInput$ProvisionedThroughput": "

The new provisioned throughput settings for the specified table or index.

" } }, "ProvisionedThroughputDescription": { "base": "

Represents the provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases.

", "refs": { - "GlobalSecondaryIndexDescription$ProvisionedThroughput": null, + "GlobalSecondaryIndexDescription$ProvisionedThroughput": "

Represents the provisioned throughput settings for the specified global secondary index.

For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.

", "TableDescription$ProvisionedThroughput": "

The provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases.

" } }, "ProvisionedThroughputExceededException": { - "base": "

Your request rate is too high. The AWS SDKs for DynamoDB automatically retry requests that receive this exception. Your request is eventually successful, unless your retry queue is too large to finish. Reduce the frequency of requests and use exponential backoff. For more information, go to Error Retries and Exponential Backoff in the Amazon DynamoDB Developer Guide.

", + "base": "

Your request rate is too high. The AWS SDKs for DynamoDB automatically retry requests that receive this exception. Your request is eventually successful, unless your retry queue is too large to finish. Reduce the frequency of requests and use exponential backoff. For more information, go to Error Retries and Exponential Backoff in the Amazon DynamoDB Developer Guide.

", "refs": { } }, "PutItemInput": { - "base": "

Represents the input of a PutItem operation.

", + "base": "

Represents the input of a PutItem operation.

", "refs": { } }, "PutItemInputAttributeMap": { "base": null, "refs": { - "PutItemInput$Item": "

A map of attribute name/value pairs, one for each attribute. Only the primary key attributes are required; you can optionally provide other attribute name-value pairs for the item.

You must provide all of the attributes for the primary key. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide both values for both the partition key and the sort key.

If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.

For more information about primary keys, see Primary Key in the Amazon DynamoDB Developer Guide.

Each element in the Item map is an AttributeValue object.

", - "PutRequest$Item": "

A map of attribute name to attribute values, representing the primary key of an item to be processed by PutItem. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema. If any attributes are present in the item which are part of an index key schema for the table, their types must match the index key schema.

" + "PutItemInput$Item": "

A map of attribute name/value pairs, one for each attribute. Only the primary key attributes are required; you can optionally provide other attribute name-value pairs for the item.

You must provide all of the attributes for the primary key. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide both values for both the partition key and the sort key.

If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.

For more information about primary keys, see Primary Key in the Amazon DynamoDB Developer Guide.

Each element in the Item map is an AttributeValue object.

", + "PutRequest$Item": "

A map of attribute name to attribute values, representing the primary key of an item to be processed by PutItem. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema. If any attributes are present in the item which are part of an index key schema for the table, their types must match the index key schema.

" } }, "PutItemOutput": { - "base": "

Represents the output of a PutItem operation.

", + "base": "

Represents the output of a PutItem operation.

", "refs": { } }, "PutRequest": { - "base": "

Represents a request to perform a PutItem operation on an item.

", + "base": "

Represents a request to perform a PutItem operation on an item.

", "refs": { - "WriteRequest$PutRequest": "

A request to perform a PutItem operation.

" + "WriteRequest$PutRequest": "

A request to perform a PutItem operation.

" } }, "QueryInput": { - "base": "

Represents the input of a Query operation.

", + "base": "

Represents the input of a Query operation.

", "refs": { } }, "QueryOutput": { - "base": "

Represents the output of a Query operation.

", + "base": "

Represents the output of a Query operation.

", + "refs": { + } + }, + "ResourceArnString": { + "base": null, "refs": { + "ListTagsOfResourceInput$ResourceArn": "

The Amazon DynamoDB resource with tags to be listed. This value is an Amazon Resource Name (ARN).

", + "TagResourceInput$ResourceArn": "

Identifies the Amazon DynamoDB resource to which tags should be added. This value is an Amazon Resource Name (ARN).

", + "UntagResourceInput$ResourceArn": "

The Amazon DyanamoDB resource the tags will be removed from. This value is an Amazon Resource Name (ARN).

" } }, "ResourceInUseException": { @@ -816,7 +856,7 @@ } }, "ReturnConsumedCapacity": { - "base": "

Determines the level of detail about provisioned throughput consumption that is returned in the response:

  • INDEXES - The response includes the aggregate ConsumedCapacity for the operation, together with ConsumedCapacity for each table and secondary index that was accessed.

    Note that some operations, such as GetItem and BatchGetItem, do not access any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity information for table(s).

  • TOTAL - The response includes only the aggregate ConsumedCapacity for the operation.

  • NONE - No ConsumedCapacity details are included in the response.

", + "base": "

Determines the level of detail about provisioned throughput consumption that is returned in the response:

  • INDEXES - The response includes the aggregate ConsumedCapacity for the operation, together with ConsumedCapacity for each table and secondary index that was accessed.

    Note that some operations, such as GetItem and BatchGetItem, do not access any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity information for table(s).

  • TOTAL - The response includes only the aggregate ConsumedCapacity for the operation.

  • NONE - No ConsumedCapacity details are included in the response.

", "refs": { "BatchGetItemInput$ReturnConsumedCapacity": null, "BatchWriteItemInput$ReturnConsumedCapacity": null, @@ -840,37 +880,37 @@ "ReturnValue": { "base": null, "refs": { - "DeleteItemInput$ReturnValues": "

Use ReturnValues if you want to get the item attributes as they appeared before they were deleted. For DeleteItem, the valid values are:

  • NONE - If ReturnValues is not specified, or if its value is NONE, then nothing is returned. (This setting is the default for ReturnValues.)

  • ALL_OLD - The content of the old item is returned.

The ReturnValues parameter is used by several DynamoDB operations; however, DeleteItem does not recognize any values other than NONE or ALL_OLD.

", - "PutItemInput$ReturnValues": "

Use ReturnValues if you want to get the item attributes as they appeared before they were updated with the PutItem request. For PutItem, the valid values are:

  • NONE - If ReturnValues is not specified, or if its value is NONE, then nothing is returned. (This setting is the default for ReturnValues.)

  • ALL_OLD - If PutItem overwrote an attribute name-value pair, then the content of the old item is returned.

The ReturnValues parameter is used by several DynamoDB operations; however, PutItem does not recognize any values other than NONE or ALL_OLD.

", - "UpdateItemInput$ReturnValues": "

Use ReturnValues if you want to get the item attributes as they appeared either before or after they were updated. For UpdateItem, the valid values are:

  • NONE - If ReturnValues is not specified, or if its value is NONE, then nothing is returned. (This setting is the default for ReturnValues.)

  • ALL_OLD - If UpdateItem overwrote an attribute name-value pair, then the content of the old item is returned.

  • UPDATED_OLD - The old versions of only the updated attributes are returned.

  • ALL_NEW - All of the attributes of the new version of the item are returned.

  • UPDATED_NEW - The new versions of only the updated attributes are returned.

There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No Read Capacity Units are consumed.

Values returned are strongly consistent

" + "DeleteItemInput$ReturnValues": "

Use ReturnValues if you want to get the item attributes as they appeared before they were deleted. For DeleteItem, the valid values are:

  • NONE - If ReturnValues is not specified, or if its value is NONE, then nothing is returned. (This setting is the default for ReturnValues.)

  • ALL_OLD - The content of the old item is returned.

The ReturnValues parameter is used by several DynamoDB operations; however, DeleteItem does not recognize any values other than NONE or ALL_OLD.

", + "PutItemInput$ReturnValues": "

Use ReturnValues if you want to get the item attributes as they appeared before they were updated with the PutItem request. For PutItem, the valid values are:

  • NONE - If ReturnValues is not specified, or if its value is NONE, then nothing is returned. (This setting is the default for ReturnValues.)

  • ALL_OLD - If PutItem overwrote an attribute name-value pair, then the content of the old item is returned.

The ReturnValues parameter is used by several DynamoDB operations; however, PutItem does not recognize any values other than NONE or ALL_OLD.

", + "UpdateItemInput$ReturnValues": "

Use ReturnValues if you want to get the item attributes as they appeared either before or after they were updated. For UpdateItem, the valid values are:

  • NONE - If ReturnValues is not specified, or if its value is NONE, then nothing is returned. (This setting is the default for ReturnValues.)

  • ALL_OLD - Returns all of the attributes of the item, as they appeared before the UpdateItem operation.

  • UPDATED_OLD - Returns only the updated attributes, as they appeared before the UpdateItem operation.

  • ALL_NEW - Returns all of the attributes of the item, as they appear after the UpdateItem operation.

  • UPDATED_NEW - Returns only the updated attributes, as they appear after the UpdateItem operation.

There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No Read Capacity Units are consumed.

Values returned are strongly consistent

" } }, "ScalarAttributeType": { "base": null, "refs": { - "AttributeDefinition$AttributeType": "

The data type for the attribute, where:

  • S - the attribute is of type String

  • N - the attribute is of type Number

  • B - the attribute is of type Binary

" + "AttributeDefinition$AttributeType": "

The data type for the attribute, where:

  • S - the attribute is of type String

  • N - the attribute is of type Number

  • B - the attribute is of type Binary

" } }, "ScanInput": { - "base": "

Represents the input of a Scan operation.

", + "base": "

Represents the input of a Scan operation.

", "refs": { } }, "ScanOutput": { - "base": "

Represents the output of a Scan operation.

", + "base": "

Represents the output of a Scan operation.

", "refs": { } }, "ScanSegment": { "base": null, "refs": { - "ScanInput$Segment": "

For a parallel Scan request, Segment identifies an individual segment to be scanned by an application worker.

Segment IDs are zero-based, so the first segment is always 0. For example, if you want to use four application threads to scan a table or an index, then the first thread specifies a Segment value of 0, the second thread specifies 1, and so on.

The value of LastEvaluatedKey returned from a parallel Scan request must be used as ExclusiveStartKey with the same segment ID in a subsequent Scan operation.

The value for Segment must be greater than or equal to 0, and less than the value provided for TotalSegments.

If you provide Segment, you must also provide TotalSegments.

" + "ScanInput$Segment": "

For a parallel Scan request, Segment identifies an individual segment to be scanned by an application worker.

Segment IDs are zero-based, so the first segment is always 0. For example, if you want to use four application threads to scan a table or an index, then the first thread specifies a Segment value of 0, the second thread specifies 1, and so on.

The value of LastEvaluatedKey returned from a parallel Scan request must be used as ExclusiveStartKey with the same segment ID in a subsequent Scan operation.

The value for Segment must be greater than or equal to 0, and less than the value provided for TotalSegments.

If you provide Segment, you must also provide TotalSegments.

" } }, "ScanTotalSegments": { "base": null, "refs": { - "ScanInput$TotalSegments": "

For a parallel Scan request, TotalSegments represents the total number of segments into which the Scan operation will be divided. The value of TotalSegments corresponds to the number of application workers that will perform the parallel scan. For example, if you want to use four application threads to scan a table or an index, specify a TotalSegments value of 4.

The value for TotalSegments must be greater than or equal to 1, and less than or equal to 1000000. If you specify a TotalSegments value of 1, the Scan operation will be sequential rather than parallel.

If you specify TotalSegments, you must also specify Segment.

" + "ScanInput$TotalSegments": "

For a parallel Scan request, TotalSegments represents the total number of segments into which the Scan operation will be divided. The value of TotalSegments corresponds to the number of application workers that will perform the parallel scan. For example, if you want to use four application threads to scan a table or an index, specify a TotalSegments value of 4.

The value for TotalSegments must be greater than or equal to 1, and less than or equal to 1000000. If you specify a TotalSegments value of 1, the Scan operation will be sequential rather than parallel.

If you specify TotalSegments, you must also specify Segment.

" } }, "SecondaryIndexesCapacityMap": { @@ -883,8 +923,8 @@ "Select": { "base": null, "refs": { - "QueryInput$Select": "

The attributes to be returned in the result. You can retrieve all item attributes, specific item attributes, the count of matching items, or in the case of an index, some or all of the attributes projected into the index.

  • ALL_ATTRIBUTES - Returns all of the item attributes from the specified table or index. If you query a local secondary index, then for each matching item in the index DynamoDB will fetch the entire item from the parent table. If the index is configured to project all item attributes, then all of the data can be obtained from the local secondary index, and no fetching is required.

  • ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves all attributes that have been projected into the index. If the index is configured to project all attributes, this return value is equivalent to specifying ALL_ATTRIBUTES.

  • COUNT - Returns the number of matching items, rather than the matching items themselves.

  • SPECIFIC_ATTRIBUTES - Returns only the attributes listed in AttributesToGet. This return value is equivalent to specifying AttributesToGet without specifying any value for Select.

    If you query a local secondary index and request only attributes that are projected into that index, the operation will read only the index and not the table. If any of the requested attributes are not projected into the local secondary index, DynamoDB will fetch each of these attributes from the parent table. This extra fetching incurs additional throughput cost and latency.

    If you query a global secondary index, you can only request attributes that are projected into the index. Global secondary index queries cannot fetch attributes from the parent table.

If neither Select nor AttributesToGet are specified, DynamoDB defaults to ALL_ATTRIBUTES when accessing a table, and ALL_PROJECTED_ATTRIBUTES when accessing an index. You cannot use both Select and AttributesToGet together in a single request, unless the value for Select is SPECIFIC_ATTRIBUTES. (This usage is equivalent to specifying AttributesToGet without any value for Select.)

If you use the ProjectionExpression parameter, then the value for Select can only be SPECIFIC_ATTRIBUTES. Any other value for Select will return an error.

", - "ScanInput$Select": "

The attributes to be returned in the result. You can retrieve all item attributes, specific item attributes, or the count of matching items.

  • ALL_ATTRIBUTES - Returns all of the item attributes.

  • ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves all attributes that have been projected into the index. If the index is configured to project all attributes, this return value is equivalent to specifying ALL_ATTRIBUTES.

  • COUNT - Returns the number of matching items, rather than the matching items themselves.

  • SPECIFIC_ATTRIBUTES - Returns only the attributes listed in AttributesToGet. This return value is equivalent to specifying AttributesToGet without specifying any value for Select.

If neither Select nor AttributesToGet are specified, DynamoDB defaults to ALL_ATTRIBUTES. You cannot use both AttributesToGet and Select together in a single request, unless the value for Select is SPECIFIC_ATTRIBUTES. (This usage is equivalent to specifying AttributesToGet without any value for Select.)

" + "QueryInput$Select": "

The attributes to be returned in the result. You can retrieve all item attributes, specific item attributes, the count of matching items, or in the case of an index, some or all of the attributes projected into the index.

  • ALL_ATTRIBUTES - Returns all of the item attributes from the specified table or index. If you query a local secondary index, then for each matching item in the index DynamoDB will fetch the entire item from the parent table. If the index is configured to project all item attributes, then all of the data can be obtained from the local secondary index, and no fetching is required.

  • ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves all attributes that have been projected into the index. If the index is configured to project all attributes, this return value is equivalent to specifying ALL_ATTRIBUTES.

  • COUNT - Returns the number of matching items, rather than the matching items themselves.

  • SPECIFIC_ATTRIBUTES - Returns only the attributes listed in AttributesToGet. This return value is equivalent to specifying AttributesToGet without specifying any value for Select.

    If you query or scan a local secondary index and request only attributes that are projected into that index, the operation will read only the index and not the table. If any of the requested attributes are not projected into the local secondary index, DynamoDB will fetch each of these attributes from the parent table. This extra fetching incurs additional throughput cost and latency.

    If you query or scan a global secondary index, you can only request attributes that are projected into the index. Global secondary index queries cannot fetch attributes from the parent table.

If neither Select nor AttributesToGet are specified, DynamoDB defaults to ALL_ATTRIBUTES when accessing a table, and ALL_PROJECTED_ATTRIBUTES when accessing an index. You cannot use both Select and AttributesToGet together in a single request, unless the value for Select is SPECIFIC_ATTRIBUTES. (This usage is equivalent to specifying AttributesToGet without any value for Select.)

If you use the ProjectionExpression parameter, then the value for Select can only be SPECIFIC_ATTRIBUTES. Any other value for Select will return an error.

", + "ScanInput$Select": "

The attributes to be returned in the result. You can retrieve all item attributes, specific item attributes, the count of matching items, or in the case of an index, some or all of the attributes projected into the index.

  • ALL_ATTRIBUTES - Returns all of the item attributes from the specified table or index. If you query a local secondary index, then for each matching item in the index DynamoDB will fetch the entire item from the parent table. If the index is configured to project all item attributes, then all of the data can be obtained from the local secondary index, and no fetching is required.

  • ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves all attributes that have been projected into the index. If the index is configured to project all attributes, this return value is equivalent to specifying ALL_ATTRIBUTES.

  • COUNT - Returns the number of matching items, rather than the matching items themselves.

  • SPECIFIC_ATTRIBUTES - Returns only the attributes listed in AttributesToGet. This return value is equivalent to specifying AttributesToGet without specifying any value for Select.

    If you query or scan a local secondary index and request only attributes that are projected into that index, the operation will read only the index and not the table. If any of the requested attributes are not projected into the local secondary index, DynamoDB will fetch each of these attributes from the parent table. This extra fetching incurs additional throughput cost and latency.

    If you query or scan a global secondary index, you can only request attributes that are projected into the index. Global secondary index queries cannot fetch attributes from the parent table.

If neither Select nor AttributesToGet are specified, DynamoDB defaults to ALL_ATTRIBUTES when accessing a table, and ALL_PROJECTED_ATTRIBUTES when accessing an index. You cannot use both Select and AttributesToGet together in a single request, unless the value for Select is SPECIFIC_ATTRIBUTES. (This usage is equivalent to specifying AttributesToGet without any value for Select.)

If you use the ProjectionExpression parameter, then the value for Select can only be SPECIFIC_ATTRIBUTES. Any other value for Select will return an error.

" } }, "StreamArn": { @@ -902,15 +942,15 @@ "StreamSpecification": { "base": "

Represents the DynamoDB Streams configuration for a table in DynamoDB.

", "refs": { - "CreateTableInput$StreamSpecification": "

The settings for DynamoDB Streams on the table. These settings consist of:

  • StreamEnabled - Indicates whether Streams is to be enabled (true) or disabled (false).

  • StreamViewType - When an item in the table is modified, StreamViewType determines what information is written to the table's stream. Valid values for StreamViewType are:

    • KEYS_ONLY - Only the key attributes of the modified item are written to the stream.

    • NEW_IMAGE - The entire item, as it appears after it was modified, is written to the stream.

    • OLD_IMAGE - The entire item, as it appeared before it was modified, is written to the stream.

    • NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are written to the stream.

", + "CreateTableInput$StreamSpecification": "

The settings for DynamoDB Streams on the table. These settings consist of:

  • StreamEnabled - Indicates whether Streams is to be enabled (true) or disabled (false).

  • StreamViewType - When an item in the table is modified, StreamViewType determines what information is written to the table's stream. Valid values for StreamViewType are:

    • KEYS_ONLY - Only the key attributes of the modified item are written to the stream.

    • NEW_IMAGE - The entire item, as it appears after it was modified, is written to the stream.

    • OLD_IMAGE - The entire item, as it appeared before it was modified, is written to the stream.

    • NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are written to the stream.

", "TableDescription$StreamSpecification": "

The current DynamoDB Streams configuration for the table.

", - "UpdateTableInput$StreamSpecification": "

Represents the DynamoDB Streams configuration for the table.

You will receive a ResourceInUseException if you attempt to enable a stream on a table that already has a stream, or if you attempt to disable a stream on a table which does not have a stream.

" + "UpdateTableInput$StreamSpecification": "

Represents the DynamoDB Streams configuration for the table.

You will receive a ResourceInUseException if you attempt to enable a stream on a table that already has a stream, or if you attempt to disable a stream on a table which does not have a stream.

" } }, "StreamViewType": { "base": null, "refs": { - "StreamSpecification$StreamViewType": "

The DynamoDB Streams settings for the table. These settings consist of:

  • StreamEnabled - Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.

  • StreamViewType - When an item in the table is modified, StreamViewType determines what information is written to the stream for this table. Valid values for StreamViewType are:

    • KEYS_ONLY - Only the key attributes of the modified item are written to the stream.

    • NEW_IMAGE - The entire item, as it appears after it was modified, is written to the stream.

    • OLD_IMAGE - The entire item, as it appeared before it was modified, is written to the stream.

    • NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are written to the stream.

" + "StreamSpecification$StreamViewType": "

When an item in the table is modified, StreamViewType determines what information is written to the stream for this table. Valid values for StreamViewType are:

  • KEYS_ONLY - Only the key attributes of the modified item are written to the stream.

  • NEW_IMAGE - The entire item, as it appears after it was modified, is written to the stream.

  • OLD_IMAGE - The entire item, as it appeared before it was modified, is written to the stream.

  • NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are written to the stream.

" } }, "String": { @@ -919,29 +959,29 @@ "GlobalSecondaryIndexDescription$IndexArn": "

The Amazon Resource Name (ARN) that uniquely identifies the index.

", "LocalSecondaryIndexDescription$IndexArn": "

The Amazon Resource Name (ARN) that uniquely identifies the index.

", "TableDescription$TableArn": "

The Amazon Resource Name (ARN) that uniquely identifies the table.

", - "TableDescription$LatestStreamLabel": "

A timestamp, in ISO 8601 format, for this stream.

Note that LatestStreamLabel is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique:

  • the AWS customer ID.

  • the table name.

  • the StreamLabel.

" + "TableDescription$LatestStreamLabel": "

A timestamp, in ISO 8601 format, for this stream.

Note that LatestStreamLabel is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique:

  • the AWS customer ID.

  • the table name.

  • the StreamLabel.

" } }, "StringAttributeValue": { "base": null, "refs": { - "AttributeValue$S": "

A String data type.

", + "AttributeValue$S": "

An attribute of type String. For example:

\"S\": \"Hello\"

", "StringSetAttributeValue$member": null } }, "StringSetAttributeValue": { "base": null, "refs": { - "AttributeValue$SS": "

A String Set data type.

" + "AttributeValue$SS": "

An attribute of type String Set. For example:

\"SS\": [\"Giraffe\", \"Hippo\" ,\"Zebra\"]

" } }, "TableDescription": { "base": "

Represents the properties of a table.

", "refs": { - "CreateTableOutput$TableDescription": null, - "DeleteTableOutput$TableDescription": null, - "DescribeTableOutput$Table": null, - "UpdateTableOutput$TableDescription": null + "CreateTableOutput$TableDescription": "

Represents the properties of the table.

", + "DeleteTableOutput$TableDescription": "

Represents the properties of a table.

", + "DescribeTableOutput$Table": "

The properties of the table.

", + "UpdateTableOutput$TableDescription": "

Represents the properties of the table.

" } }, "TableName": { @@ -955,35 +995,111 @@ "DeleteItemInput$TableName": "

The name of the table from which to delete the item.

", "DeleteTableInput$TableName": "

The name of the table to delete.

", "DescribeTableInput$TableName": "

The name of the table to describe.

", + "DescribeTimeToLiveInput$TableName": "

The name of the table to be described.

", "GetItemInput$TableName": "

The name of the table containing the requested item.

", "ItemCollectionMetricsPerTable$key": null, - "ListTablesInput$ExclusiveStartTableName": "

The first table name that this operation will evaluate. Use the value that was returned for LastEvaluatedTableName in a previous operation, so that you can obtain the next page of results.

", - "ListTablesOutput$LastEvaluatedTableName": "

The name of the last table in the current page of results. Use this value as the ExclusiveStartTableName in a new request to obtain the next page of results, until all the table names are returned.

If you do not receive a LastEvaluatedTableName value in the response, this means that there are no more table names to be retrieved.

", + "ListTablesInput$ExclusiveStartTableName": "

The first table name that this operation will evaluate. Use the value that was returned for LastEvaluatedTableName in a previous operation, so that you can obtain the next page of results.

", + "ListTablesOutput$LastEvaluatedTableName": "

The name of the last table in the current page of results. Use this value as the ExclusiveStartTableName in a new request to obtain the next page of results, until all the table names are returned.

If you do not receive a LastEvaluatedTableName value in the response, this means that there are no more table names to be retrieved.

", "PutItemInput$TableName": "

The name of the table to contain the item.

", "QueryInput$TableName": "

The name of the table containing the requested items.

", "ScanInput$TableName": "

The name of the table containing the requested items; or, if you provide IndexName, the name of the table to which that index belongs.

", "TableDescription$TableName": "

The name of the table.

", "TableNameList$member": null, "UpdateItemInput$TableName": "

The name of the table containing the item to update.

", - "UpdateTableInput$TableName": "

The name of the table to be updated.

" + "UpdateTableInput$TableName": "

The name of the table to be updated.

", + "UpdateTimeToLiveInput$TableName": "

The name of the table to be configured.

" } }, "TableNameList": { "base": null, "refs": { - "ListTablesOutput$TableNames": "

The names of the tables associated with the current account at the current endpoint. The maximum size of this array is 100.

If LastEvaluatedTableName also appears in the output, you can use this value as the ExclusiveStartTableName parameter in a subsequent ListTables request and obtain the next page of results.

" + "ListTablesOutput$TableNames": "

The names of the tables associated with the current account at the current endpoint. The maximum size of this array is 100.

If LastEvaluatedTableName also appears in the output, you can use this value as the ExclusiveStartTableName parameter in a subsequent ListTables request and obtain the next page of results.

" } }, "TableStatus": { "base": null, "refs": { - "TableDescription$TableStatus": "

The current state of the table:

  • CREATING - The table is being created.

  • UPDATING - The table is being updated.

  • DELETING - The table is being deleted.

  • ACTIVE - The table is ready for use.

" + "TableDescription$TableStatus": "

The current state of the table:

  • CREATING - The table is being created.

  • UPDATING - The table is being updated.

  • DELETING - The table is being deleted.

  • ACTIVE - The table is ready for use.

" + } + }, + "Tag": { + "base": "

Describes a tag. A tag is a key-value pair. You can add up to 50 tags to a single DynamoDB table.

AWS-assigned tag names and values are automatically assigned the aws: prefix, which the user cannot assign. AWS-assigned tag names do not count towards the tag limit of 50. User-assigned tag names have the prefix user: in the Cost Allocation Report. You cannot backdate the application of a tag.

For an overview on tagging DynamoDB resources, see Tagging for DynamoDB in the Amazon DynamoDB Developer Guide.

", + "refs": { + "TagList$member": null + } + }, + "TagKeyList": { + "base": null, + "refs": { + "UntagResourceInput$TagKeys": "

A list of tag keys. Existing tags of the resource whose keys are members of this list will be removed from the Amazon DynamoDB resource.

" + } + }, + "TagKeyString": { + "base": null, + "refs": { + "Tag$Key": "

The key of the tag.Tag keys are case sensitive. Each DynamoDB table can only have up to one tag with the same key. If you try to add an existing tag (same key), the existing tag value will be updated to the new value.

", + "TagKeyList$member": null + } + }, + "TagList": { + "base": null, + "refs": { + "ListTagsOfResourceOutput$Tags": "

The tags currently associated with the Amazon DynamoDB resource.

", + "TagResourceInput$Tags": "

The tags to be assigned to the Amazon DynamoDB resource.

" + } + }, + "TagResourceInput": { + "base": null, + "refs": { + } + }, + "TagValueString": { + "base": null, + "refs": { + "Tag$Value": "

The value of the tag. Tag values are case-sensitive and can be null.

" + } + }, + "TimeToLiveAttributeName": { + "base": null, + "refs": { + "TimeToLiveDescription$AttributeName": "

The name of the Time to Live attribute for items in the table.

", + "TimeToLiveSpecification$AttributeName": "

The name of the Time to Live attribute used to store the expiration time for items in the table.

" + } + }, + "TimeToLiveDescription": { + "base": "

The description of the Time to Live (TTL) status on the specified table.

", + "refs": { + "DescribeTimeToLiveOutput$TimeToLiveDescription": "

" + } + }, + "TimeToLiveEnabled": { + "base": null, + "refs": { + "TimeToLiveSpecification$Enabled": "

Indicates whether Time To Live is to be enabled (true) or disabled (false) on the table.

" + } + }, + "TimeToLiveSpecification": { + "base": "

Represents the settings used to enable or disable Time to Live for the specified table.

", + "refs": { + "UpdateTimeToLiveInput$TimeToLiveSpecification": "

Represents the settings used to enable or disable Time to Live for the specified table.

", + "UpdateTimeToLiveOutput$TimeToLiveSpecification": "

Represents the output of an UpdateTimeToLive operation.

" + } + }, + "TimeToLiveStatus": { + "base": null, + "refs": { + "TimeToLiveDescription$TimeToLiveStatus": "

The Time to Live status for the table.

" + } + }, + "UntagResourceInput": { + "base": null, + "refs": { } }, "UpdateExpression": { "base": null, "refs": { - "UpdateItemInput$UpdateExpression": "

An expression that defines one or more attributes to be updated, the action to be performed on them, and new value(s) for them.

The following action values are available for UpdateExpression.

  • SET - Adds one or more attributes and values to an item. If any of these attribute already exist, they are replaced by the new values. You can also use SET to add or subtract from an attribute that is of type Number. For example: SET myNum = myNum + :val

    SET supports the following functions:

    • if_not_exists (path, operand) - if the item does not contain an attribute at the specified path, then if_not_exists evaluates to operand; otherwise, it evaluates to path. You can use this function to avoid overwriting an attribute that may already be present in the item.

    • list_append (operand, operand) - evaluates to a list with a new element added to it. You can append the new element to the start or the end of the list by reversing the order of the operands.

    These function names are case-sensitive.

  • REMOVE - Removes one or more attributes from an item.

  • ADD - Adds the specified value to the item, if the attribute does not already exist. If the attribute does exist, then the behavior of ADD depends on the data type of the attribute:

    • If the existing attribute is a number, and if Value is also a number, then Value is mathematically added to the existing attribute. If Value is a negative number, then it is subtracted from the existing attribute.

      If you use ADD to increment or decrement a number value for an item that doesn't exist before the update, DynamoDB uses 0 as the initial value.

      Similarly, if you use ADD for an existing item to increment or decrement an attribute value that doesn't exist before the update, DynamoDB uses 0 as the initial value. For example, suppose that the item you want to update doesn't have an attribute named itemcount, but you decide to ADD the number 3 to this attribute anyway. DynamoDB will create the itemcount attribute, set its initial value to 0, and finally add 3 to it. The result will be a new itemcount attribute in the item, with a value of 3.

    • If the existing data type is a set and if Value is also a set, then Value is added to the existing set. For example, if the attribute value is the set [1,2], and the ADD action specified [3], then the final attribute value is [1,2,3]. An error occurs if an ADD action is specified for a set attribute and the attribute type specified does not match the existing set type.

      Both sets must have the same primitive data type. For example, if the existing data type is a set of strings, the Value must also be a set of strings.

    The ADD action only supports Number and set data types. In addition, ADD can only be used on top-level attributes, not nested attributes.

  • DELETE - Deletes an element from a set.

    If a set of values is specified, then those values are subtracted from the old set. For example, if the attribute value was the set [a,b,c] and the DELETE action specifies [a,c], then the final attribute value is [b]. Specifying an empty set is an error.

    The DELETE action only supports set data types. In addition, DELETE can only be used on top-level attributes, not nested attributes.

You can have many actions in a single expression, such as the following: SET a=:value1, b=:value2 DELETE :value3, :value4, :value5

For more information on update expressions, see Modifying Items and Attributes in the Amazon DynamoDB Developer Guide.

UpdateExpression replaces the legacy AttributeUpdates parameter.

" + "UpdateItemInput$UpdateExpression": "

An expression that defines one or more attributes to be updated, the action to be performed on them, and new value(s) for them.

The following action values are available for UpdateExpression.

  • SET - Adds one or more attributes and values to an item. If any of these attribute already exist, they are replaced by the new values. You can also use SET to add or subtract from an attribute that is of type Number. For example: SET myNum = myNum + :val

    SET supports the following functions:

    • if_not_exists (path, operand) - if the item does not contain an attribute at the specified path, then if_not_exists evaluates to operand; otherwise, it evaluates to path. You can use this function to avoid overwriting an attribute that may already be present in the item.

    • list_append (operand, operand) - evaluates to a list with a new element added to it. You can append the new element to the start or the end of the list by reversing the order of the operands.

    These function names are case-sensitive.

  • REMOVE - Removes one or more attributes from an item.

  • ADD - Adds the specified value to the item, if the attribute does not already exist. If the attribute does exist, then the behavior of ADD depends on the data type of the attribute:

    • If the existing attribute is a number, and if Value is also a number, then Value is mathematically added to the existing attribute. If Value is a negative number, then it is subtracted from the existing attribute.

      If you use ADD to increment or decrement a number value for an item that doesn't exist before the update, DynamoDB uses 0 as the initial value.

      Similarly, if you use ADD for an existing item to increment or decrement an attribute value that doesn't exist before the update, DynamoDB uses 0 as the initial value. For example, suppose that the item you want to update doesn't have an attribute named itemcount, but you decide to ADD the number 3 to this attribute anyway. DynamoDB will create the itemcount attribute, set its initial value to 0, and finally add 3 to it. The result will be a new itemcount attribute in the item, with a value of 3.

    • If the existing data type is a set and if Value is also a set, then Value is added to the existing set. For example, if the attribute value is the set [1,2], and the ADD action specified [3], then the final attribute value is [1,2,3]. An error occurs if an ADD action is specified for a set attribute and the attribute type specified does not match the existing set type.

      Both sets must have the same primitive data type. For example, if the existing data type is a set of strings, the Value must also be a set of strings.

    The ADD action only supports Number and set data types. In addition, ADD can only be used on top-level attributes, not nested attributes.

  • DELETE - Deletes an element from a set.

    If a set of values is specified, then those values are subtracted from the old set. For example, if the attribute value was the set [a,b,c] and the DELETE action specifies [a,c], then the final attribute value is [b]. Specifying an empty set is an error.

    The DELETE action only supports set data types. In addition, DELETE can only be used on top-level attributes, not nested attributes.

You can have many actions in a single expression, such as the following: SET a=:value1, b=:value2 DELETE :value3, :value4, :value5

For more information on update expressions, see Modifying Items and Attributes in the Amazon DynamoDB Developer Guide.

" } }, "UpdateGlobalSecondaryIndexAction": { @@ -993,27 +1109,37 @@ } }, "UpdateItemInput": { - "base": "

Represents the input of an UpdateItem operation.

", + "base": "

Represents the input of an UpdateItem operation.

", "refs": { } }, "UpdateItemOutput": { - "base": "

Represents the output of an UpdateItem operation.

", + "base": "

Represents the output of an UpdateItem operation.

", "refs": { } }, "UpdateTableInput": { - "base": "

Represents the input of an UpdateTable operation.

", + "base": "

Represents the input of an UpdateTable operation.

", "refs": { } }, "UpdateTableOutput": { - "base": "

Represents the output of an UpdateTable operation.

", + "base": "

Represents the output of an UpdateTable operation.

", + "refs": { + } + }, + "UpdateTimeToLiveInput": { + "base": "

Represents the input of an UpdateTimeToLive operation.

", + "refs": { + } + }, + "UpdateTimeToLiveOutput": { + "base": null, "refs": { } }, "WriteRequest": { - "base": "

Represents an operation to perform - either DeleteItem or PutItem. You can only request one of these operations, not both, in a single WriteRequest. If you do need to perform both of these operations, you will need to provide two separate WriteRequest objects.

", + "base": "

Represents an operation to perform - either DeleteItem or PutItem. You can only request one of these operations, not both, in a single WriteRequest. If you do need to perform both of these operations, you will need to provide two separate WriteRequest objects.

", "refs": { "WriteRequests$member": null } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/examples-1.json index 0ea7e3b0b..e66e704b0 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/examples-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/examples-1.json @@ -1,5 +1,628 @@ { "version": "1.0", "examples": { + "BatchGetItem": [ + { + "input": { + "RequestItems": { + "Music": { + "Keys": [ + { + "Artist": { + "S": "No One You Know" + }, + "SongTitle": { + "S": "Call Me Today" + } + }, + { + "Artist": { + "S": "Acme Band" + }, + "SongTitle": { + "S": "Happy Day" + } + }, + { + "Artist": { + "S": "No One You Know" + }, + "SongTitle": { + "S": "Scared of My Shadow" + } + } + ], + "ProjectionExpression": "AlbumTitle" + } + } + }, + "output": { + "Responses": { + "Music": [ + { + "AlbumTitle": { + "S": "Somewhat Famous" + } + }, + { + "AlbumTitle": { + "S": "Blue Sky Blues" + } + }, + { + "AlbumTitle": { + "S": "Louder Than Ever" + } + } + ] + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example reads multiple items from the Music table using a batch of three GetItem requests. Only the AlbumTitle attribute is returned.", + "id": "to-retrieve-multiple-items-from-a-table-1476118438992", + "title": "To retrieve multiple items from a table" + } + ], + "BatchWriteItem": [ + { + "input": { + "RequestItems": { + "Music": [ + { + "PutRequest": { + "Item": { + "AlbumTitle": { + "S": "Somewhat Famous" + }, + "Artist": { + "S": "No One You Know" + }, + "SongTitle": { + "S": "Call Me Today" + } + } + } + }, + { + "PutRequest": { + "Item": { + "AlbumTitle": { + "S": "Songs About Life" + }, + "Artist": { + "S": "Acme Band" + }, + "SongTitle": { + "S": "Happy Day" + } + } + } + }, + { + "PutRequest": { + "Item": { + "AlbumTitle": { + "S": "Blue Sky Blues" + }, + "Artist": { + "S": "No One You Know" + }, + "SongTitle": { + "S": "Scared of My Shadow" + } + } + } + } + ] + } + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example adds three new items to the Music table using a batch of three PutItem requests.", + "id": "to-add-multiple-items-to-a-table-1476118519747", + "title": "To add multiple items to a table" + } + ], + "CreateTable": [ + { + "input": { + "AttributeDefinitions": [ + { + "AttributeName": "Artist", + "AttributeType": "S" + }, + { + "AttributeName": "SongTitle", + "AttributeType": "S" + } + ], + "KeySchema": [ + { + "AttributeName": "Artist", + "KeyType": "HASH" + }, + { + "AttributeName": "SongTitle", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "TableName": "Music" + }, + "output": { + "TableDescription": { + "AttributeDefinitions": [ + { + "AttributeName": "Artist", + "AttributeType": "S" + }, + { + "AttributeName": "SongTitle", + "AttributeType": "S" + } + ], + "CreationDateTime": "1421866952.062", + "ItemCount": 0, + "KeySchema": [ + { + "AttributeName": "Artist", + "KeyType": "HASH" + }, + { + "AttributeName": "SongTitle", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "TableName": "Music", + "TableSizeBytes": 0, + "TableStatus": "CREATING" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a table named Music.", + "id": "to-create-a-table-1476116291743", + "title": "To create a table" + } + ], + "DeleteItem": [ + { + "input": { + "Key": { + "Artist": { + "S": "No One You Know" + }, + "SongTitle": { + "S": "Scared of My Shadow" + } + }, + "TableName": "Music" + }, + "output": { + "ConsumedCapacity": { + "CapacityUnits": 1, + "TableName": "Music" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes an item from the Music table.", + "id": "to-delete-an-item-1475884573758", + "title": "To delete an item" + } + ], + "DeleteTable": [ + { + "input": { + "TableName": "Music" + }, + "output": { + "TableDescription": { + "ItemCount": 0, + "ProvisionedThroughput": { + "NumberOfDecreasesToday": 1, + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "TableName": "Music", + "TableSizeBytes": 0, + "TableStatus": "DELETING" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes the Music table.", + "id": "to-delete-a-table-1475884368755", + "title": "To delete a table" + } + ], + "DescribeLimits": [ + { + "input": { + }, + "output": { + "AccountMaxReadCapacityUnits": 20000, + "AccountMaxWriteCapacityUnits": 20000, + "TableMaxReadCapacityUnits": 10000, + "TableMaxWriteCapacityUnits": 10000 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns the maximum read and write capacity units per table, and for the AWS account, in the current AWS region.", + "id": "to-determine-capacity-limits-per-table-and-account-in-the-current-aws-region-1475884162064", + "title": "To determine capacity limits per table and account, in the current AWS region" + } + ], + "DescribeTable": [ + { + "input": { + "TableName": "Music" + }, + "output": { + "Table": { + "AttributeDefinitions": [ + { + "AttributeName": "Artist", + "AttributeType": "S" + }, + { + "AttributeName": "SongTitle", + "AttributeType": "S" + } + ], + "CreationDateTime": "1421866952.062", + "ItemCount": 0, + "KeySchema": [ + { + "AttributeName": "Artist", + "KeyType": "HASH" + }, + { + "AttributeName": "SongTitle", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "NumberOfDecreasesToday": 1, + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "TableName": "Music", + "TableSizeBytes": 0, + "TableStatus": "ACTIVE" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the Music table.", + "id": "to-describe-a-table-1475884440502", + "title": "To describe a table" + } + ], + "GetItem": [ + { + "input": { + "Key": { + "Artist": { + "S": "Acme Band" + }, + "SongTitle": { + "S": "Happy Day" + } + }, + "TableName": "Music" + }, + "output": { + "Item": { + "AlbumTitle": { + "S": "Songs About Life" + }, + "Artist": { + "S": "Acme Band" + }, + "SongTitle": { + "S": "Happy Day" + } + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example retrieves an item from the Music table. The table has a partition key and a sort key (Artist and SongTitle), so you must specify both of these attributes.", + "id": "to-read-an-item-from-a-table-1475884258350", + "title": "To read an item from a table" + } + ], + "ListTables": [ + { + "input": { + }, + "output": { + "TableNames": [ + "Forum", + "ProductCatalog", + "Reply", + "Thread" + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example lists all of the tables associated with the current AWS account and endpoint.", + "id": "to-list-tables-1475884741238", + "title": "To list tables" + } + ], + "PutItem": [ + { + "input": { + "Item": { + "AlbumTitle": { + "S": "Somewhat Famous" + }, + "Artist": { + "S": "No One You Know" + }, + "SongTitle": { + "S": "Call Me Today" + } + }, + "ReturnConsumedCapacity": "TOTAL", + "TableName": "Music" + }, + "output": { + "ConsumedCapacity": { + "CapacityUnits": 1, + "TableName": "Music" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example adds a new item to the Music table.", + "id": "to-add-an-item-to-a-table-1476116191110", + "title": "To add an item to a table" + } + ], + "Query": [ + { + "input": { + "ExpressionAttributeValues": { + ":v1": { + "S": "No One You Know" + } + }, + "KeyConditionExpression": "Artist = :v1", + "ProjectionExpression": "SongTitle", + "TableName": "Music" + }, + "output": { + "ConsumedCapacity": { + }, + "Count": 2, + "Items": [ + { + "SongTitle": { + "S": "Call Me Today" + } + } + ], + "ScannedCount": 2 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example queries items in the Music table. The table has a partition key and sort key (Artist and SongTitle), but this query only specifies the partition key value. It returns song titles by the artist named \"No One You Know\".", + "id": "to-query-an-item-1475883874631", + "title": "To query an item" + } + ], + "Scan": [ + { + "input": { + "ExpressionAttributeNames": { + "AT": "AlbumTitle", + "ST": "SongTitle" + }, + "ExpressionAttributeValues": { + ":a": { + "S": "No One You Know" + } + }, + "FilterExpression": "Artist = :a", + "ProjectionExpression": "#ST, #AT", + "TableName": "Music" + }, + "output": { + "ConsumedCapacity": { + }, + "Count": 2, + "Items": [ + { + "AlbumTitle": { + "S": "Somewhat Famous" + }, + "SongTitle": { + "S": "Call Me Today" + } + }, + { + "AlbumTitle": { + "S": "Blue Sky Blues" + }, + "SongTitle": { + "S": "Scared of My Shadow" + } + } + ], + "ScannedCount": 3 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example scans the entire Music table, and then narrows the results to songs by the artist \"No One You Know\". For each item, only the album title and song title are returned.", + "id": "to-scan-a-table-1475883652470", + "title": "To scan a table" + } + ], + "UpdateItem": [ + { + "input": { + "ExpressionAttributeNames": { + "#AT": "AlbumTitle", + "#Y": "Year" + }, + "ExpressionAttributeValues": { + ":t": { + "S": "Louder Than Ever" + }, + ":y": { + "N": "2015" + } + }, + "Key": { + "Artist": { + "S": "Acme Band" + }, + "SongTitle": { + "S": "Happy Day" + } + }, + "ReturnValues": "ALL_NEW", + "TableName": "Music", + "UpdateExpression": "SET #Y = :y, #AT = :t" + }, + "output": { + "Attributes": { + "AlbumTitle": { + "S": "Songs About Life" + }, + "Artist": { + "S": "Acme Band" + }, + "SongTitle": { + "S": "Happy Day" + } + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example updates an item in the Music table. It adds a new attribute (Year) and modifies the AlbumTitle attribute. All of the attributes in the item, as they appear after the update, are returned in the response.", + "id": "to-update-an-item-in-a-table-1476118250055", + "title": "To update an item in a table" + } + ], + "UpdateTable": [ + { + "input": { + "ProvisionedThroughput": { + "ReadCapacityUnits": 10, + "WriteCapacityUnits": 10 + }, + "TableName": "MusicCollection" + }, + "output": { + "TableDescription": { + "AttributeDefinitions": [ + { + "AttributeName": "Artist", + "AttributeType": "S" + }, + { + "AttributeName": "SongTitle", + "AttributeType": "S" + } + ], + "CreationDateTime": "1421866952.062", + "ItemCount": 0, + "KeySchema": [ + { + "AttributeName": "Artist", + "KeyType": "HASH" + }, + { + "AttributeName": "SongTitle", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "LastIncreaseDateTime": "1421874759.194", + "NumberOfDecreasesToday": 1, + "ReadCapacityUnits": 1, + "WriteCapacityUnits": 1 + }, + "TableName": "MusicCollection", + "TableSizeBytes": 0, + "TableStatus": "UPDATING" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example increases the provisioned read and write capacity on the Music table.", + "id": "to-modify-a-tables-provisioned-throughput-1476118076147", + "title": "To modify a table's provisioned throughput" + } + ] } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/paginators-1.json index d4075e120..3037d662a 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/paginators-1.json @@ -6,21 +6,21 @@ }, "ListTables": { "input_token": "ExclusiveStartTableName", - "output_token": "LastEvaluatedTableName", "limit_key": "Limit", + "output_token": "LastEvaluatedTableName", "result_key": "TableNames" }, "Query": { "input_token": "ExclusiveStartKey", - "output_token": "LastEvaluatedKey", "limit_key": "Limit", + "output_token": "LastEvaluatedKey", "result_key": "Items" }, "Scan": { "input_token": "ExclusiveStartKey", - "output_token": "LastEvaluatedKey", "limit_key": "Limit", + "output_token": "LastEvaluatedKey", "result_key": "Items" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/api-2.json index d5853bafb..c5bb5d9bd 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"ec2-2015-10-01", "apiVersion":"2015-10-01", "endpointPrefix":"ec2", "protocol":"ec2", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-04-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-04-01/api-2.json index 2192dc521..ef0bb74d3 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-04-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-04-01/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"ec2-2016-04-01", "apiVersion":"2016-04-01", "endpointPrefix":"ec2", "protocol":"ec2", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-09-15/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-09-15/api-2.json index 31e4668e6..bc4f75696 100755 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-09-15/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-09-15/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"ec2-2016-09-15", "apiVersion":"2016-09-15", "endpointPrefix":"ec2", "protocol":"ec2", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/api-2.json new file mode 100755 index 000000000..9b1ee0144 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/api-2.json @@ -0,0 +1,15373 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2016-11-15", + "endpointPrefix":"ec2", + "protocol":"ec2", + "serviceAbbreviation":"Amazon EC2", + "serviceFullName":"Amazon Elastic Compute Cloud", + "signatureVersion":"v4", + "uid":"ec2-2016-11-15", + "xmlNamespace":"http://ec2.amazonaws.com/doc/2016-11-15" + }, + "operations":{ + "AcceptReservedInstancesExchangeQuote":{ + "name":"AcceptReservedInstancesExchangeQuote", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AcceptReservedInstancesExchangeQuoteRequest"}, + "output":{"shape":"AcceptReservedInstancesExchangeQuoteResult"} + }, + "AcceptVpcPeeringConnection":{ + "name":"AcceptVpcPeeringConnection", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AcceptVpcPeeringConnectionRequest"}, + "output":{"shape":"AcceptVpcPeeringConnectionResult"} + }, + "AllocateAddress":{ + "name":"AllocateAddress", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AllocateAddressRequest"}, + "output":{"shape":"AllocateAddressResult"} + }, + "AllocateHosts":{ + "name":"AllocateHosts", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AllocateHostsRequest"}, + "output":{"shape":"AllocateHostsResult"} + }, + "AssignIpv6Addresses":{ + "name":"AssignIpv6Addresses", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssignIpv6AddressesRequest"}, + "output":{"shape":"AssignIpv6AddressesResult"} + }, + "AssignPrivateIpAddresses":{ + "name":"AssignPrivateIpAddresses", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssignPrivateIpAddressesRequest"} + }, + "AssociateAddress":{ + "name":"AssociateAddress", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateAddressRequest"}, + "output":{"shape":"AssociateAddressResult"} + }, + "AssociateDhcpOptions":{ + "name":"AssociateDhcpOptions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateDhcpOptionsRequest"} + }, + "AssociateIamInstanceProfile":{ + "name":"AssociateIamInstanceProfile", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateIamInstanceProfileRequest"}, + "output":{"shape":"AssociateIamInstanceProfileResult"} + }, + "AssociateRouteTable":{ + "name":"AssociateRouteTable", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateRouteTableRequest"}, + "output":{"shape":"AssociateRouteTableResult"} + }, + "AssociateSubnetCidrBlock":{ + "name":"AssociateSubnetCidrBlock", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateSubnetCidrBlockRequest"}, + "output":{"shape":"AssociateSubnetCidrBlockResult"} + }, + "AssociateVpcCidrBlock":{ + "name":"AssociateVpcCidrBlock", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateVpcCidrBlockRequest"}, + "output":{"shape":"AssociateVpcCidrBlockResult"} + }, + "AttachClassicLinkVpc":{ + "name":"AttachClassicLinkVpc", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AttachClassicLinkVpcRequest"}, + "output":{"shape":"AttachClassicLinkVpcResult"} + }, + "AttachInternetGateway":{ + "name":"AttachInternetGateway", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AttachInternetGatewayRequest"} + }, + "AttachNetworkInterface":{ + "name":"AttachNetworkInterface", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AttachNetworkInterfaceRequest"}, + "output":{"shape":"AttachNetworkInterfaceResult"} + }, + "AttachVolume":{ + "name":"AttachVolume", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AttachVolumeRequest"}, + "output":{"shape":"VolumeAttachment"} + }, + "AttachVpnGateway":{ + "name":"AttachVpnGateway", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AttachVpnGatewayRequest"}, + "output":{"shape":"AttachVpnGatewayResult"} + }, + "AuthorizeSecurityGroupEgress":{ + "name":"AuthorizeSecurityGroupEgress", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AuthorizeSecurityGroupEgressRequest"} + }, + "AuthorizeSecurityGroupIngress":{ + "name":"AuthorizeSecurityGroupIngress", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AuthorizeSecurityGroupIngressRequest"} + }, + "BundleInstance":{ + "name":"BundleInstance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"BundleInstanceRequest"}, + "output":{"shape":"BundleInstanceResult"} + }, + "CancelBundleTask":{ + "name":"CancelBundleTask", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CancelBundleTaskRequest"}, + "output":{"shape":"CancelBundleTaskResult"} + }, + "CancelConversionTask":{ + "name":"CancelConversionTask", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CancelConversionRequest"} + }, + "CancelExportTask":{ + "name":"CancelExportTask", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CancelExportTaskRequest"} + }, + "CancelImportTask":{ + "name":"CancelImportTask", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CancelImportTaskRequest"}, + "output":{"shape":"CancelImportTaskResult"} + }, + "CancelReservedInstancesListing":{ + "name":"CancelReservedInstancesListing", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CancelReservedInstancesListingRequest"}, + "output":{"shape":"CancelReservedInstancesListingResult"} + }, + "CancelSpotFleetRequests":{ + "name":"CancelSpotFleetRequests", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CancelSpotFleetRequestsRequest"}, + "output":{"shape":"CancelSpotFleetRequestsResponse"} + }, + "CancelSpotInstanceRequests":{ + "name":"CancelSpotInstanceRequests", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CancelSpotInstanceRequestsRequest"}, + "output":{"shape":"CancelSpotInstanceRequestsResult"} + }, + "ConfirmProductInstance":{ + "name":"ConfirmProductInstance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ConfirmProductInstanceRequest"}, + "output":{"shape":"ConfirmProductInstanceResult"} + }, + "CopyImage":{ + "name":"CopyImage", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CopyImageRequest"}, + "output":{"shape":"CopyImageResult"} + }, + "CopySnapshot":{ + "name":"CopySnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CopySnapshotRequest"}, + "output":{"shape":"CopySnapshotResult"} + }, + "CreateCustomerGateway":{ + "name":"CreateCustomerGateway", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateCustomerGatewayRequest"}, + "output":{"shape":"CreateCustomerGatewayResult"} + }, + "CreateDhcpOptions":{ + "name":"CreateDhcpOptions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateDhcpOptionsRequest"}, + "output":{"shape":"CreateDhcpOptionsResult"} + }, + "CreateEgressOnlyInternetGateway":{ + "name":"CreateEgressOnlyInternetGateway", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateEgressOnlyInternetGatewayRequest"}, + "output":{"shape":"CreateEgressOnlyInternetGatewayResult"} + }, + "CreateFlowLogs":{ + "name":"CreateFlowLogs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateFlowLogsRequest"}, + "output":{"shape":"CreateFlowLogsResult"} + }, + "CreateImage":{ + "name":"CreateImage", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateImageRequest"}, + "output":{"shape":"CreateImageResult"} + }, + "CreateInstanceExportTask":{ + "name":"CreateInstanceExportTask", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateInstanceExportTaskRequest"}, + "output":{"shape":"CreateInstanceExportTaskResult"} + }, + "CreateInternetGateway":{ + "name":"CreateInternetGateway", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateInternetGatewayRequest"}, + "output":{"shape":"CreateInternetGatewayResult"} + }, + "CreateKeyPair":{ + "name":"CreateKeyPair", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateKeyPairRequest"}, + "output":{"shape":"KeyPair"} + }, + "CreateNatGateway":{ + "name":"CreateNatGateway", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateNatGatewayRequest"}, + "output":{"shape":"CreateNatGatewayResult"} + }, + "CreateNetworkAcl":{ + "name":"CreateNetworkAcl", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateNetworkAclRequest"}, + "output":{"shape":"CreateNetworkAclResult"} + }, + "CreateNetworkAclEntry":{ + "name":"CreateNetworkAclEntry", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateNetworkAclEntryRequest"} + }, + "CreateNetworkInterface":{ + "name":"CreateNetworkInterface", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateNetworkInterfaceRequest"}, + "output":{"shape":"CreateNetworkInterfaceResult"} + }, + "CreatePlacementGroup":{ + "name":"CreatePlacementGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreatePlacementGroupRequest"} + }, + "CreateReservedInstancesListing":{ + "name":"CreateReservedInstancesListing", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateReservedInstancesListingRequest"}, + "output":{"shape":"CreateReservedInstancesListingResult"} + }, + "CreateRoute":{ + "name":"CreateRoute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateRouteRequest"}, + "output":{"shape":"CreateRouteResult"} + }, + "CreateRouteTable":{ + "name":"CreateRouteTable", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateRouteTableRequest"}, + "output":{"shape":"CreateRouteTableResult"} + }, + "CreateSecurityGroup":{ + "name":"CreateSecurityGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateSecurityGroupRequest"}, + "output":{"shape":"CreateSecurityGroupResult"} + }, + "CreateSnapshot":{ + "name":"CreateSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateSnapshotRequest"}, + "output":{"shape":"Snapshot"} + }, + "CreateSpotDatafeedSubscription":{ + "name":"CreateSpotDatafeedSubscription", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateSpotDatafeedSubscriptionRequest"}, + "output":{"shape":"CreateSpotDatafeedSubscriptionResult"} + }, + "CreateSubnet":{ + "name":"CreateSubnet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateSubnetRequest"}, + "output":{"shape":"CreateSubnetResult"} + }, + "CreateTags":{ + "name":"CreateTags", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateTagsRequest"} + }, + "CreateVolume":{ + "name":"CreateVolume", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateVolumeRequest"}, + "output":{"shape":"Volume"} + }, + "CreateVpc":{ + "name":"CreateVpc", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateVpcRequest"}, + "output":{"shape":"CreateVpcResult"} + }, + "CreateVpcEndpoint":{ + "name":"CreateVpcEndpoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateVpcEndpointRequest"}, + "output":{"shape":"CreateVpcEndpointResult"} + }, + "CreateVpcPeeringConnection":{ + "name":"CreateVpcPeeringConnection", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateVpcPeeringConnectionRequest"}, + "output":{"shape":"CreateVpcPeeringConnectionResult"} + }, + "CreateVpnConnection":{ + "name":"CreateVpnConnection", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateVpnConnectionRequest"}, + "output":{"shape":"CreateVpnConnectionResult"} + }, + "CreateVpnConnectionRoute":{ + "name":"CreateVpnConnectionRoute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateVpnConnectionRouteRequest"} + }, + "CreateVpnGateway":{ + "name":"CreateVpnGateway", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateVpnGatewayRequest"}, + "output":{"shape":"CreateVpnGatewayResult"} + }, + "DeleteCustomerGateway":{ + "name":"DeleteCustomerGateway", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteCustomerGatewayRequest"} + }, + "DeleteDhcpOptions":{ + "name":"DeleteDhcpOptions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteDhcpOptionsRequest"} + }, + "DeleteEgressOnlyInternetGateway":{ + "name":"DeleteEgressOnlyInternetGateway", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteEgressOnlyInternetGatewayRequest"}, + "output":{"shape":"DeleteEgressOnlyInternetGatewayResult"} + }, + "DeleteFlowLogs":{ + "name":"DeleteFlowLogs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteFlowLogsRequest"}, + "output":{"shape":"DeleteFlowLogsResult"} + }, + "DeleteInternetGateway":{ + "name":"DeleteInternetGateway", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteInternetGatewayRequest"} + }, + "DeleteKeyPair":{ + "name":"DeleteKeyPair", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteKeyPairRequest"} + }, + "DeleteNatGateway":{ + "name":"DeleteNatGateway", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteNatGatewayRequest"}, + "output":{"shape":"DeleteNatGatewayResult"} + }, + "DeleteNetworkAcl":{ + "name":"DeleteNetworkAcl", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteNetworkAclRequest"} + }, + "DeleteNetworkAclEntry":{ + "name":"DeleteNetworkAclEntry", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteNetworkAclEntryRequest"} + }, + "DeleteNetworkInterface":{ + "name":"DeleteNetworkInterface", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteNetworkInterfaceRequest"} + }, + "DeletePlacementGroup":{ + "name":"DeletePlacementGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeletePlacementGroupRequest"} + }, + "DeleteRoute":{ + "name":"DeleteRoute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteRouteRequest"} + }, + "DeleteRouteTable":{ + "name":"DeleteRouteTable", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteRouteTableRequest"} + }, + "DeleteSecurityGroup":{ + "name":"DeleteSecurityGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteSecurityGroupRequest"} + }, + "DeleteSnapshot":{ + "name":"DeleteSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteSnapshotRequest"} + }, + "DeleteSpotDatafeedSubscription":{ + "name":"DeleteSpotDatafeedSubscription", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteSpotDatafeedSubscriptionRequest"} + }, + "DeleteSubnet":{ + "name":"DeleteSubnet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteSubnetRequest"} + }, + "DeleteTags":{ + "name":"DeleteTags", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteTagsRequest"} + }, + "DeleteVolume":{ + "name":"DeleteVolume", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteVolumeRequest"} + }, + "DeleteVpc":{ + "name":"DeleteVpc", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteVpcRequest"} + }, + "DeleteVpcEndpoints":{ + "name":"DeleteVpcEndpoints", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteVpcEndpointsRequest"}, + "output":{"shape":"DeleteVpcEndpointsResult"} + }, + "DeleteVpcPeeringConnection":{ + "name":"DeleteVpcPeeringConnection", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteVpcPeeringConnectionRequest"}, + "output":{"shape":"DeleteVpcPeeringConnectionResult"} + }, + "DeleteVpnConnection":{ + "name":"DeleteVpnConnection", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteVpnConnectionRequest"} + }, + "DeleteVpnConnectionRoute":{ + "name":"DeleteVpnConnectionRoute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteVpnConnectionRouteRequest"} + }, + "DeleteVpnGateway":{ + "name":"DeleteVpnGateway", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteVpnGatewayRequest"} + }, + "DeregisterImage":{ + "name":"DeregisterImage", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeregisterImageRequest"} + }, + "DescribeAccountAttributes":{ + "name":"DescribeAccountAttributes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeAccountAttributesRequest"}, + "output":{"shape":"DescribeAccountAttributesResult"} + }, + "DescribeAddresses":{ + "name":"DescribeAddresses", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeAddressesRequest"}, + "output":{"shape":"DescribeAddressesResult"} + }, + "DescribeAvailabilityZones":{ + "name":"DescribeAvailabilityZones", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeAvailabilityZonesRequest"}, + "output":{"shape":"DescribeAvailabilityZonesResult"} + }, + "DescribeBundleTasks":{ + "name":"DescribeBundleTasks", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeBundleTasksRequest"}, + "output":{"shape":"DescribeBundleTasksResult"} + }, + "DescribeClassicLinkInstances":{ + "name":"DescribeClassicLinkInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeClassicLinkInstancesRequest"}, + "output":{"shape":"DescribeClassicLinkInstancesResult"} + }, + "DescribeConversionTasks":{ + "name":"DescribeConversionTasks", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeConversionTasksRequest"}, + "output":{"shape":"DescribeConversionTasksResult"} + }, + "DescribeCustomerGateways":{ + "name":"DescribeCustomerGateways", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeCustomerGatewaysRequest"}, + "output":{"shape":"DescribeCustomerGatewaysResult"} + }, + "DescribeDhcpOptions":{ + "name":"DescribeDhcpOptions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeDhcpOptionsRequest"}, + "output":{"shape":"DescribeDhcpOptionsResult"} + }, + "DescribeEgressOnlyInternetGateways":{ + "name":"DescribeEgressOnlyInternetGateways", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeEgressOnlyInternetGatewaysRequest"}, + "output":{"shape":"DescribeEgressOnlyInternetGatewaysResult"} + }, + "DescribeExportTasks":{ + "name":"DescribeExportTasks", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeExportTasksRequest"}, + "output":{"shape":"DescribeExportTasksResult"} + }, + "DescribeFlowLogs":{ + "name":"DescribeFlowLogs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeFlowLogsRequest"}, + "output":{"shape":"DescribeFlowLogsResult"} + }, + "DescribeHostReservationOfferings":{ + "name":"DescribeHostReservationOfferings", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeHostReservationOfferingsRequest"}, + "output":{"shape":"DescribeHostReservationOfferingsResult"} + }, + "DescribeHostReservations":{ + "name":"DescribeHostReservations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeHostReservationsRequest"}, + "output":{"shape":"DescribeHostReservationsResult"} + }, + "DescribeHosts":{ + "name":"DescribeHosts", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeHostsRequest"}, + "output":{"shape":"DescribeHostsResult"} + }, + "DescribeIamInstanceProfileAssociations":{ + "name":"DescribeIamInstanceProfileAssociations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeIamInstanceProfileAssociationsRequest"}, + "output":{"shape":"DescribeIamInstanceProfileAssociationsResult"} + }, + "DescribeIdFormat":{ + "name":"DescribeIdFormat", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeIdFormatRequest"}, + "output":{"shape":"DescribeIdFormatResult"} + }, + "DescribeIdentityIdFormat":{ + "name":"DescribeIdentityIdFormat", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeIdentityIdFormatRequest"}, + "output":{"shape":"DescribeIdentityIdFormatResult"} + }, + "DescribeImageAttribute":{ + "name":"DescribeImageAttribute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeImageAttributeRequest"}, + "output":{"shape":"ImageAttribute"} + }, + "DescribeImages":{ + "name":"DescribeImages", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeImagesRequest"}, + "output":{"shape":"DescribeImagesResult"} + }, + "DescribeImportImageTasks":{ + "name":"DescribeImportImageTasks", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeImportImageTasksRequest"}, + "output":{"shape":"DescribeImportImageTasksResult"} + }, + "DescribeImportSnapshotTasks":{ + "name":"DescribeImportSnapshotTasks", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeImportSnapshotTasksRequest"}, + "output":{"shape":"DescribeImportSnapshotTasksResult"} + }, + "DescribeInstanceAttribute":{ + "name":"DescribeInstanceAttribute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeInstanceAttributeRequest"}, + "output":{"shape":"InstanceAttribute"} + }, + "DescribeInstanceStatus":{ + "name":"DescribeInstanceStatus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeInstanceStatusRequest"}, + "output":{"shape":"DescribeInstanceStatusResult"} + }, + "DescribeInstances":{ + "name":"DescribeInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeInstancesRequest"}, + "output":{"shape":"DescribeInstancesResult"} + }, + "DescribeInternetGateways":{ + "name":"DescribeInternetGateways", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeInternetGatewaysRequest"}, + "output":{"shape":"DescribeInternetGatewaysResult"} + }, + "DescribeKeyPairs":{ + "name":"DescribeKeyPairs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeKeyPairsRequest"}, + "output":{"shape":"DescribeKeyPairsResult"} + }, + "DescribeMovingAddresses":{ + "name":"DescribeMovingAddresses", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeMovingAddressesRequest"}, + "output":{"shape":"DescribeMovingAddressesResult"} + }, + "DescribeNatGateways":{ + "name":"DescribeNatGateways", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeNatGatewaysRequest"}, + "output":{"shape":"DescribeNatGatewaysResult"} + }, + "DescribeNetworkAcls":{ + "name":"DescribeNetworkAcls", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeNetworkAclsRequest"}, + "output":{"shape":"DescribeNetworkAclsResult"} + }, + "DescribeNetworkInterfaceAttribute":{ + "name":"DescribeNetworkInterfaceAttribute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeNetworkInterfaceAttributeRequest"}, + "output":{"shape":"DescribeNetworkInterfaceAttributeResult"} + }, + "DescribeNetworkInterfaces":{ + "name":"DescribeNetworkInterfaces", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeNetworkInterfacesRequest"}, + "output":{"shape":"DescribeNetworkInterfacesResult"} + }, + "DescribePlacementGroups":{ + "name":"DescribePlacementGroups", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribePlacementGroupsRequest"}, + "output":{"shape":"DescribePlacementGroupsResult"} + }, + "DescribePrefixLists":{ + "name":"DescribePrefixLists", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribePrefixListsRequest"}, + "output":{"shape":"DescribePrefixListsResult"} + }, + "DescribeRegions":{ + "name":"DescribeRegions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeRegionsRequest"}, + "output":{"shape":"DescribeRegionsResult"} + }, + "DescribeReservedInstances":{ + "name":"DescribeReservedInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeReservedInstancesRequest"}, + "output":{"shape":"DescribeReservedInstancesResult"} + }, + "DescribeReservedInstancesListings":{ + "name":"DescribeReservedInstancesListings", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeReservedInstancesListingsRequest"}, + "output":{"shape":"DescribeReservedInstancesListingsResult"} + }, + "DescribeReservedInstancesModifications":{ + "name":"DescribeReservedInstancesModifications", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeReservedInstancesModificationsRequest"}, + "output":{"shape":"DescribeReservedInstancesModificationsResult"} + }, + "DescribeReservedInstancesOfferings":{ + "name":"DescribeReservedInstancesOfferings", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeReservedInstancesOfferingsRequest"}, + "output":{"shape":"DescribeReservedInstancesOfferingsResult"} + }, + "DescribeRouteTables":{ + "name":"DescribeRouteTables", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeRouteTablesRequest"}, + "output":{"shape":"DescribeRouteTablesResult"} + }, + "DescribeScheduledInstanceAvailability":{ + "name":"DescribeScheduledInstanceAvailability", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeScheduledInstanceAvailabilityRequest"}, + "output":{"shape":"DescribeScheduledInstanceAvailabilityResult"} + }, + "DescribeScheduledInstances":{ + "name":"DescribeScheduledInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeScheduledInstancesRequest"}, + "output":{"shape":"DescribeScheduledInstancesResult"} + }, + "DescribeSecurityGroupReferences":{ + "name":"DescribeSecurityGroupReferences", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeSecurityGroupReferencesRequest"}, + "output":{"shape":"DescribeSecurityGroupReferencesResult"} + }, + "DescribeSecurityGroups":{ + "name":"DescribeSecurityGroups", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeSecurityGroupsRequest"}, + "output":{"shape":"DescribeSecurityGroupsResult"} + }, + "DescribeSnapshotAttribute":{ + "name":"DescribeSnapshotAttribute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeSnapshotAttributeRequest"}, + "output":{"shape":"DescribeSnapshotAttributeResult"} + }, + "DescribeSnapshots":{ + "name":"DescribeSnapshots", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeSnapshotsRequest"}, + "output":{"shape":"DescribeSnapshotsResult"} + }, + "DescribeSpotDatafeedSubscription":{ + "name":"DescribeSpotDatafeedSubscription", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeSpotDatafeedSubscriptionRequest"}, + "output":{"shape":"DescribeSpotDatafeedSubscriptionResult"} + }, + "DescribeSpotFleetInstances":{ + "name":"DescribeSpotFleetInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeSpotFleetInstancesRequest"}, + "output":{"shape":"DescribeSpotFleetInstancesResponse"} + }, + "DescribeSpotFleetRequestHistory":{ + "name":"DescribeSpotFleetRequestHistory", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeSpotFleetRequestHistoryRequest"}, + "output":{"shape":"DescribeSpotFleetRequestHistoryResponse"} + }, + "DescribeSpotFleetRequests":{ + "name":"DescribeSpotFleetRequests", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeSpotFleetRequestsRequest"}, + "output":{"shape":"DescribeSpotFleetRequestsResponse"} + }, + "DescribeSpotInstanceRequests":{ + "name":"DescribeSpotInstanceRequests", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeSpotInstanceRequestsRequest"}, + "output":{"shape":"DescribeSpotInstanceRequestsResult"} + }, + "DescribeSpotPriceHistory":{ + "name":"DescribeSpotPriceHistory", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeSpotPriceHistoryRequest"}, + "output":{"shape":"DescribeSpotPriceHistoryResult"} + }, + "DescribeStaleSecurityGroups":{ + "name":"DescribeStaleSecurityGroups", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeStaleSecurityGroupsRequest"}, + "output":{"shape":"DescribeStaleSecurityGroupsResult"} + }, + "DescribeSubnets":{ + "name":"DescribeSubnets", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeSubnetsRequest"}, + "output":{"shape":"DescribeSubnetsResult"} + }, + "DescribeTags":{ + "name":"DescribeTags", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeTagsRequest"}, + "output":{"shape":"DescribeTagsResult"} + }, + "DescribeVolumeAttribute":{ + "name":"DescribeVolumeAttribute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeVolumeAttributeRequest"}, + "output":{"shape":"DescribeVolumeAttributeResult"} + }, + "DescribeVolumeStatus":{ + "name":"DescribeVolumeStatus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeVolumeStatusRequest"}, + "output":{"shape":"DescribeVolumeStatusResult"} + }, + "DescribeVolumes":{ + "name":"DescribeVolumes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeVolumesRequest"}, + "output":{"shape":"DescribeVolumesResult"} + }, + "DescribeVolumesModifications":{ + "name":"DescribeVolumesModifications", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeVolumesModificationsRequest"}, + "output":{"shape":"DescribeVolumesModificationsResult"} + }, + "DescribeVpcAttribute":{ + "name":"DescribeVpcAttribute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeVpcAttributeRequest"}, + "output":{"shape":"DescribeVpcAttributeResult"} + }, + "DescribeVpcClassicLink":{ + "name":"DescribeVpcClassicLink", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeVpcClassicLinkRequest"}, + "output":{"shape":"DescribeVpcClassicLinkResult"} + }, + "DescribeVpcClassicLinkDnsSupport":{ + "name":"DescribeVpcClassicLinkDnsSupport", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeVpcClassicLinkDnsSupportRequest"}, + "output":{"shape":"DescribeVpcClassicLinkDnsSupportResult"} + }, + "DescribeVpcEndpointServices":{ + "name":"DescribeVpcEndpointServices", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeVpcEndpointServicesRequest"}, + "output":{"shape":"DescribeVpcEndpointServicesResult"} + }, + "DescribeVpcEndpoints":{ + "name":"DescribeVpcEndpoints", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeVpcEndpointsRequest"}, + "output":{"shape":"DescribeVpcEndpointsResult"} + }, + "DescribeVpcPeeringConnections":{ + "name":"DescribeVpcPeeringConnections", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeVpcPeeringConnectionsRequest"}, + "output":{"shape":"DescribeVpcPeeringConnectionsResult"} + }, + "DescribeVpcs":{ + "name":"DescribeVpcs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeVpcsRequest"}, + "output":{"shape":"DescribeVpcsResult"} + }, + "DescribeVpnConnections":{ + "name":"DescribeVpnConnections", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeVpnConnectionsRequest"}, + "output":{"shape":"DescribeVpnConnectionsResult"} + }, + "DescribeVpnGateways":{ + "name":"DescribeVpnGateways", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeVpnGatewaysRequest"}, + "output":{"shape":"DescribeVpnGatewaysResult"} + }, + "DetachClassicLinkVpc":{ + "name":"DetachClassicLinkVpc", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DetachClassicLinkVpcRequest"}, + "output":{"shape":"DetachClassicLinkVpcResult"} + }, + "DetachInternetGateway":{ + "name":"DetachInternetGateway", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DetachInternetGatewayRequest"} + }, + "DetachNetworkInterface":{ + "name":"DetachNetworkInterface", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DetachNetworkInterfaceRequest"} + }, + "DetachVolume":{ + "name":"DetachVolume", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DetachVolumeRequest"}, + "output":{"shape":"VolumeAttachment"} + }, + "DetachVpnGateway":{ + "name":"DetachVpnGateway", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DetachVpnGatewayRequest"} + }, + "DisableVgwRoutePropagation":{ + "name":"DisableVgwRoutePropagation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisableVgwRoutePropagationRequest"} + }, + "DisableVpcClassicLink":{ + "name":"DisableVpcClassicLink", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisableVpcClassicLinkRequest"}, + "output":{"shape":"DisableVpcClassicLinkResult"} + }, + "DisableVpcClassicLinkDnsSupport":{ + "name":"DisableVpcClassicLinkDnsSupport", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisableVpcClassicLinkDnsSupportRequest"}, + "output":{"shape":"DisableVpcClassicLinkDnsSupportResult"} + }, + "DisassociateAddress":{ + "name":"DisassociateAddress", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociateAddressRequest"} + }, + "DisassociateIamInstanceProfile":{ + "name":"DisassociateIamInstanceProfile", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociateIamInstanceProfileRequest"}, + "output":{"shape":"DisassociateIamInstanceProfileResult"} + }, + "DisassociateRouteTable":{ + "name":"DisassociateRouteTable", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociateRouteTableRequest"} + }, + "DisassociateSubnetCidrBlock":{ + "name":"DisassociateSubnetCidrBlock", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociateSubnetCidrBlockRequest"}, + "output":{"shape":"DisassociateSubnetCidrBlockResult"} + }, + "DisassociateVpcCidrBlock":{ + "name":"DisassociateVpcCidrBlock", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociateVpcCidrBlockRequest"}, + "output":{"shape":"DisassociateVpcCidrBlockResult"} + }, + "EnableVgwRoutePropagation":{ + "name":"EnableVgwRoutePropagation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"EnableVgwRoutePropagationRequest"} + }, + "EnableVolumeIO":{ + "name":"EnableVolumeIO", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"EnableVolumeIORequest"} + }, + "EnableVpcClassicLink":{ + "name":"EnableVpcClassicLink", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"EnableVpcClassicLinkRequest"}, + "output":{"shape":"EnableVpcClassicLinkResult"} + }, + "EnableVpcClassicLinkDnsSupport":{ + "name":"EnableVpcClassicLinkDnsSupport", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"EnableVpcClassicLinkDnsSupportRequest"}, + "output":{"shape":"EnableVpcClassicLinkDnsSupportResult"} + }, + "GetConsoleOutput":{ + "name":"GetConsoleOutput", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetConsoleOutputRequest"}, + "output":{"shape":"GetConsoleOutputResult"} + }, + "GetConsoleScreenshot":{ + "name":"GetConsoleScreenshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetConsoleScreenshotRequest"}, + "output":{"shape":"GetConsoleScreenshotResult"} + }, + "GetHostReservationPurchasePreview":{ + "name":"GetHostReservationPurchasePreview", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetHostReservationPurchasePreviewRequest"}, + "output":{"shape":"GetHostReservationPurchasePreviewResult"} + }, + "GetPasswordData":{ + "name":"GetPasswordData", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetPasswordDataRequest"}, + "output":{"shape":"GetPasswordDataResult"} + }, + "GetReservedInstancesExchangeQuote":{ + "name":"GetReservedInstancesExchangeQuote", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetReservedInstancesExchangeQuoteRequest"}, + "output":{"shape":"GetReservedInstancesExchangeQuoteResult"} + }, + "ImportImage":{ + "name":"ImportImage", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ImportImageRequest"}, + "output":{"shape":"ImportImageResult"} + }, + "ImportInstance":{ + "name":"ImportInstance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ImportInstanceRequest"}, + "output":{"shape":"ImportInstanceResult"} + }, + "ImportKeyPair":{ + "name":"ImportKeyPair", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ImportKeyPairRequest"}, + "output":{"shape":"ImportKeyPairResult"} + }, + "ImportSnapshot":{ + "name":"ImportSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ImportSnapshotRequest"}, + "output":{"shape":"ImportSnapshotResult"} + }, + "ImportVolume":{ + "name":"ImportVolume", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ImportVolumeRequest"}, + "output":{"shape":"ImportVolumeResult"} + }, + "ModifyHosts":{ + "name":"ModifyHosts", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyHostsRequest"}, + "output":{"shape":"ModifyHostsResult"} + }, + "ModifyIdFormat":{ + "name":"ModifyIdFormat", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyIdFormatRequest"} + }, + "ModifyIdentityIdFormat":{ + "name":"ModifyIdentityIdFormat", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyIdentityIdFormatRequest"} + }, + "ModifyImageAttribute":{ + "name":"ModifyImageAttribute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyImageAttributeRequest"} + }, + "ModifyInstanceAttribute":{ + "name":"ModifyInstanceAttribute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyInstanceAttributeRequest"} + }, + "ModifyInstancePlacement":{ + "name":"ModifyInstancePlacement", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyInstancePlacementRequest"}, + "output":{"shape":"ModifyInstancePlacementResult"} + }, + "ModifyNetworkInterfaceAttribute":{ + "name":"ModifyNetworkInterfaceAttribute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyNetworkInterfaceAttributeRequest"} + }, + "ModifyReservedInstances":{ + "name":"ModifyReservedInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyReservedInstancesRequest"}, + "output":{"shape":"ModifyReservedInstancesResult"} + }, + "ModifySnapshotAttribute":{ + "name":"ModifySnapshotAttribute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifySnapshotAttributeRequest"} + }, + "ModifySpotFleetRequest":{ + "name":"ModifySpotFleetRequest", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifySpotFleetRequestRequest"}, + "output":{"shape":"ModifySpotFleetRequestResponse"} + }, + "ModifySubnetAttribute":{ + "name":"ModifySubnetAttribute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifySubnetAttributeRequest"} + }, + "ModifyVolume":{ + "name":"ModifyVolume", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyVolumeRequest"}, + "output":{"shape":"ModifyVolumeResult"} + }, + "ModifyVolumeAttribute":{ + "name":"ModifyVolumeAttribute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyVolumeAttributeRequest"} + }, + "ModifyVpcAttribute":{ + "name":"ModifyVpcAttribute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyVpcAttributeRequest"} + }, + "ModifyVpcEndpoint":{ + "name":"ModifyVpcEndpoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyVpcEndpointRequest"}, + "output":{"shape":"ModifyVpcEndpointResult"} + }, + "ModifyVpcPeeringConnectionOptions":{ + "name":"ModifyVpcPeeringConnectionOptions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyVpcPeeringConnectionOptionsRequest"}, + "output":{"shape":"ModifyVpcPeeringConnectionOptionsResult"} + }, + "MonitorInstances":{ + "name":"MonitorInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"MonitorInstancesRequest"}, + "output":{"shape":"MonitorInstancesResult"} + }, + "MoveAddressToVpc":{ + "name":"MoveAddressToVpc", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"MoveAddressToVpcRequest"}, + "output":{"shape":"MoveAddressToVpcResult"} + }, + "PurchaseHostReservation":{ + "name":"PurchaseHostReservation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PurchaseHostReservationRequest"}, + "output":{"shape":"PurchaseHostReservationResult"} + }, + "PurchaseReservedInstancesOffering":{ + "name":"PurchaseReservedInstancesOffering", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PurchaseReservedInstancesOfferingRequest"}, + "output":{"shape":"PurchaseReservedInstancesOfferingResult"} + }, + "PurchaseScheduledInstances":{ + "name":"PurchaseScheduledInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PurchaseScheduledInstancesRequest"}, + "output":{"shape":"PurchaseScheduledInstancesResult"} + }, + "RebootInstances":{ + "name":"RebootInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RebootInstancesRequest"} + }, + "RegisterImage":{ + "name":"RegisterImage", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RegisterImageRequest"}, + "output":{"shape":"RegisterImageResult"} + }, + "RejectVpcPeeringConnection":{ + "name":"RejectVpcPeeringConnection", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RejectVpcPeeringConnectionRequest"}, + "output":{"shape":"RejectVpcPeeringConnectionResult"} + }, + "ReleaseAddress":{ + "name":"ReleaseAddress", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ReleaseAddressRequest"} + }, + "ReleaseHosts":{ + "name":"ReleaseHosts", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ReleaseHostsRequest"}, + "output":{"shape":"ReleaseHostsResult"} + }, + "ReplaceIamInstanceProfileAssociation":{ + "name":"ReplaceIamInstanceProfileAssociation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ReplaceIamInstanceProfileAssociationRequest"}, + "output":{"shape":"ReplaceIamInstanceProfileAssociationResult"} + }, + "ReplaceNetworkAclAssociation":{ + "name":"ReplaceNetworkAclAssociation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ReplaceNetworkAclAssociationRequest"}, + "output":{"shape":"ReplaceNetworkAclAssociationResult"} + }, + "ReplaceNetworkAclEntry":{ + "name":"ReplaceNetworkAclEntry", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ReplaceNetworkAclEntryRequest"} + }, + "ReplaceRoute":{ + "name":"ReplaceRoute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ReplaceRouteRequest"} + }, + "ReplaceRouteTableAssociation":{ + "name":"ReplaceRouteTableAssociation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ReplaceRouteTableAssociationRequest"}, + "output":{"shape":"ReplaceRouteTableAssociationResult"} + }, + "ReportInstanceStatus":{ + "name":"ReportInstanceStatus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ReportInstanceStatusRequest"} + }, + "RequestSpotFleet":{ + "name":"RequestSpotFleet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RequestSpotFleetRequest"}, + "output":{"shape":"RequestSpotFleetResponse"} + }, + "RequestSpotInstances":{ + "name":"RequestSpotInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RequestSpotInstancesRequest"}, + "output":{"shape":"RequestSpotInstancesResult"} + }, + "ResetImageAttribute":{ + "name":"ResetImageAttribute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ResetImageAttributeRequest"} + }, + "ResetInstanceAttribute":{ + "name":"ResetInstanceAttribute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ResetInstanceAttributeRequest"} + }, + "ResetNetworkInterfaceAttribute":{ + "name":"ResetNetworkInterfaceAttribute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ResetNetworkInterfaceAttributeRequest"} + }, + "ResetSnapshotAttribute":{ + "name":"ResetSnapshotAttribute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ResetSnapshotAttributeRequest"} + }, + "RestoreAddressToClassic":{ + "name":"RestoreAddressToClassic", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RestoreAddressToClassicRequest"}, + "output":{"shape":"RestoreAddressToClassicResult"} + }, + "RevokeSecurityGroupEgress":{ + "name":"RevokeSecurityGroupEgress", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RevokeSecurityGroupEgressRequest"} + }, + "RevokeSecurityGroupIngress":{ + "name":"RevokeSecurityGroupIngress", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RevokeSecurityGroupIngressRequest"} + }, + "RunInstances":{ + "name":"RunInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RunInstancesRequest"}, + "output":{"shape":"Reservation"} + }, + "RunScheduledInstances":{ + "name":"RunScheduledInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RunScheduledInstancesRequest"}, + "output":{"shape":"RunScheduledInstancesResult"} + }, + "StartInstances":{ + "name":"StartInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartInstancesRequest"}, + "output":{"shape":"StartInstancesResult"} + }, + "StopInstances":{ + "name":"StopInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopInstancesRequest"}, + "output":{"shape":"StopInstancesResult"} + }, + "TerminateInstances":{ + "name":"TerminateInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TerminateInstancesRequest"}, + "output":{"shape":"TerminateInstancesResult"} + }, + "UnassignIpv6Addresses":{ + "name":"UnassignIpv6Addresses", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UnassignIpv6AddressesRequest"}, + "output":{"shape":"UnassignIpv6AddressesResult"} + }, + "UnassignPrivateIpAddresses":{ + "name":"UnassignPrivateIpAddresses", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UnassignPrivateIpAddressesRequest"} + }, + "UnmonitorInstances":{ + "name":"UnmonitorInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UnmonitorInstancesRequest"}, + "output":{"shape":"UnmonitorInstancesResult"} + } + }, + "shapes":{ + "AcceptReservedInstancesExchangeQuoteRequest":{ + "type":"structure", + "required":["ReservedInstanceIds"], + "members":{ + "DryRun":{"shape":"Boolean"}, + "ReservedInstanceIds":{ + "shape":"ReservedInstanceIdSet", + "locationName":"ReservedInstanceId" + }, + "TargetConfigurations":{ + "shape":"TargetConfigurationRequestSet", + "locationName":"TargetConfiguration" + } + } + }, + "AcceptReservedInstancesExchangeQuoteResult":{ + "type":"structure", + "members":{ + "ExchangeId":{ + "shape":"String", + "locationName":"exchangeId" + } + } + }, + "AcceptVpcPeeringConnectionRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VpcPeeringConnectionId":{ + "shape":"String", + "locationName":"vpcPeeringConnectionId" + } + } + }, + "AcceptVpcPeeringConnectionResult":{ + "type":"structure", + "members":{ + "VpcPeeringConnection":{ + "shape":"VpcPeeringConnection", + "locationName":"vpcPeeringConnection" + } + } + }, + "AccountAttribute":{ + "type":"structure", + "members":{ + "AttributeName":{ + "shape":"String", + "locationName":"attributeName" + }, + "AttributeValues":{ + "shape":"AccountAttributeValueList", + "locationName":"attributeValueSet" + } + } + }, + "AccountAttributeList":{ + "type":"list", + "member":{ + "shape":"AccountAttribute", + "locationName":"item" + } + }, + "AccountAttributeName":{ + "type":"string", + "enum":[ + "supported-platforms", + "default-vpc" + ] + }, + "AccountAttributeNameStringList":{ + "type":"list", + "member":{ + "shape":"AccountAttributeName", + "locationName":"attributeName" + } + }, + "AccountAttributeValue":{ + "type":"structure", + "members":{ + "AttributeValue":{ + "shape":"String", + "locationName":"attributeValue" + } + } + }, + "AccountAttributeValueList":{ + "type":"list", + "member":{ + "shape":"AccountAttributeValue", + "locationName":"item" + } + }, + "ActiveInstance":{ + "type":"structure", + "members":{ + "InstanceType":{ + "shape":"String", + "locationName":"instanceType" + }, + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "SpotInstanceRequestId":{ + "shape":"String", + "locationName":"spotInstanceRequestId" + }, + "InstanceHealth":{ + "shape":"InstanceHealthStatus", + "locationName":"instanceHealth" + } + } + }, + "ActiveInstanceSet":{ + "type":"list", + "member":{ + "shape":"ActiveInstance", + "locationName":"item" + } + }, + "ActivityStatus":{ + "type":"string", + "enum":[ + "error", + "pending_fulfillment", + "pending_termination", + "fulfilled" + ] + }, + "Address":{ + "type":"structure", + "members":{ + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "PublicIp":{ + "shape":"String", + "locationName":"publicIp" + }, + "AllocationId":{ + "shape":"String", + "locationName":"allocationId" + }, + "AssociationId":{ + "shape":"String", + "locationName":"associationId" + }, + "Domain":{ + "shape":"DomainType", + "locationName":"domain" + }, + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + }, + "NetworkInterfaceOwnerId":{ + "shape":"String", + "locationName":"networkInterfaceOwnerId" + }, + "PrivateIpAddress":{ + "shape":"String", + "locationName":"privateIpAddress" + } + } + }, + "AddressList":{ + "type":"list", + "member":{ + "shape":"Address", + "locationName":"item" + } + }, + "Affinity":{ + "type":"string", + "enum":[ + "default", + "host" + ] + }, + "AllocateAddressRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "Domain":{"shape":"DomainType"} + } + }, + "AllocateAddressResult":{ + "type":"structure", + "members":{ + "PublicIp":{ + "shape":"String", + "locationName":"publicIp" + }, + "Domain":{ + "shape":"DomainType", + "locationName":"domain" + }, + "AllocationId":{ + "shape":"String", + "locationName":"allocationId" + } + } + }, + "AllocateHostsRequest":{ + "type":"structure", + "required":[ + "InstanceType", + "Quantity", + "AvailabilityZone" + ], + "members":{ + "AutoPlacement":{ + "shape":"AutoPlacement", + "locationName":"autoPlacement" + }, + "ClientToken":{ + "shape":"String", + "locationName":"clientToken" + }, + "InstanceType":{ + "shape":"String", + "locationName":"instanceType" + }, + "Quantity":{ + "shape":"Integer", + "locationName":"quantity" + }, + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + } + } + }, + "AllocateHostsResult":{ + "type":"structure", + "members":{ + "HostIds":{ + "shape":"ResponseHostIdList", + "locationName":"hostIdSet" + } + } + }, + "AllocationIdList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"AllocationId" + } + }, + "AllocationState":{ + "type":"string", + "enum":[ + "available", + "under-assessment", + "permanent-failure", + "released", + "released-permanent-failure" + ] + }, + "AllocationStrategy":{ + "type":"string", + "enum":[ + "lowestPrice", + "diversified" + ] + }, + "ArchitectureValues":{ + "type":"string", + "enum":[ + "i386", + "x86_64" + ] + }, + "AssignIpv6AddressesRequest":{ + "type":"structure", + "required":["NetworkInterfaceId"], + "members":{ + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + }, + "Ipv6Addresses":{ + "shape":"Ipv6AddressList", + "locationName":"ipv6Addresses" + }, + "Ipv6AddressCount":{ + "shape":"Integer", + "locationName":"ipv6AddressCount" + } + } + }, + "AssignIpv6AddressesResult":{ + "type":"structure", + "members":{ + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + }, + "AssignedIpv6Addresses":{ + "shape":"Ipv6AddressList", + "locationName":"assignedIpv6Addresses" + } + } + }, + "AssignPrivateIpAddressesRequest":{ + "type":"structure", + "required":["NetworkInterfaceId"], + "members":{ + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + }, + "PrivateIpAddresses":{ + "shape":"PrivateIpAddressStringList", + "locationName":"privateIpAddress" + }, + "SecondaryPrivateIpAddressCount":{ + "shape":"Integer", + "locationName":"secondaryPrivateIpAddressCount" + }, + "AllowReassignment":{ + "shape":"Boolean", + "locationName":"allowReassignment" + } + } + }, + "AssociateAddressRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InstanceId":{"shape":"String"}, + "PublicIp":{"shape":"String"}, + "AllocationId":{"shape":"String"}, + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + }, + "PrivateIpAddress":{ + "shape":"String", + "locationName":"privateIpAddress" + }, + "AllowReassociation":{ + "shape":"Boolean", + "locationName":"allowReassociation" + } + } + }, + "AssociateAddressResult":{ + "type":"structure", + "members":{ + "AssociationId":{ + "shape":"String", + "locationName":"associationId" + } + } + }, + "AssociateDhcpOptionsRequest":{ + "type":"structure", + "required":[ + "DhcpOptionsId", + "VpcId" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "DhcpOptionsId":{"shape":"String"}, + "VpcId":{"shape":"String"} + } + }, + "AssociateIamInstanceProfileRequest":{ + "type":"structure", + "required":[ + "IamInstanceProfile", + "InstanceId" + ], + "members":{ + "IamInstanceProfile":{"shape":"IamInstanceProfileSpecification"}, + "InstanceId":{"shape":"String"} + } + }, + "AssociateIamInstanceProfileResult":{ + "type":"structure", + "members":{ + "IamInstanceProfileAssociation":{ + "shape":"IamInstanceProfileAssociation", + "locationName":"iamInstanceProfileAssociation" + } + } + }, + "AssociateRouteTableRequest":{ + "type":"structure", + "required":[ + "SubnetId", + "RouteTableId" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "SubnetId":{ + "shape":"String", + "locationName":"subnetId" + }, + "RouteTableId":{ + "shape":"String", + "locationName":"routeTableId" + } + } + }, + "AssociateRouteTableResult":{ + "type":"structure", + "members":{ + "AssociationId":{ + "shape":"String", + "locationName":"associationId" + } + } + }, + "AssociateSubnetCidrBlockRequest":{ + "type":"structure", + "required":[ + "SubnetId", + "Ipv6CidrBlock" + ], + "members":{ + "SubnetId":{ + "shape":"String", + "locationName":"subnetId" + }, + "Ipv6CidrBlock":{ + "shape":"String", + "locationName":"ipv6CidrBlock" + } + } + }, + "AssociateSubnetCidrBlockResult":{ + "type":"structure", + "members":{ + "SubnetId":{ + "shape":"String", + "locationName":"subnetId" + }, + "Ipv6CidrBlockAssociation":{ + "shape":"SubnetIpv6CidrBlockAssociation", + "locationName":"ipv6CidrBlockAssociation" + } + } + }, + "AssociateVpcCidrBlockRequest":{ + "type":"structure", + "required":["VpcId"], + "members":{ + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "AmazonProvidedIpv6CidrBlock":{ + "shape":"Boolean", + "locationName":"amazonProvidedIpv6CidrBlock" + } + } + }, + "AssociateVpcCidrBlockResult":{ + "type":"structure", + "members":{ + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "Ipv6CidrBlockAssociation":{ + "shape":"VpcIpv6CidrBlockAssociation", + "locationName":"ipv6CidrBlockAssociation" + } + } + }, + "AssociationIdList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"AssociationId" + } + }, + "AttachClassicLinkVpcRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "VpcId", + "Groups" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "Groups":{ + "shape":"GroupIdStringList", + "locationName":"SecurityGroupId" + } + } + }, + "AttachClassicLinkVpcResult":{ + "type":"structure", + "members":{ + "Return":{ + "shape":"Boolean", + "locationName":"return" + } + } + }, + "AttachInternetGatewayRequest":{ + "type":"structure", + "required":[ + "InternetGatewayId", + "VpcId" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InternetGatewayId":{ + "shape":"String", + "locationName":"internetGatewayId" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + } + } + }, + "AttachNetworkInterfaceRequest":{ + "type":"structure", + "required":[ + "NetworkInterfaceId", + "InstanceId", + "DeviceIndex" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + }, + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "DeviceIndex":{ + "shape":"Integer", + "locationName":"deviceIndex" + } + } + }, + "AttachNetworkInterfaceResult":{ + "type":"structure", + "members":{ + "AttachmentId":{ + "shape":"String", + "locationName":"attachmentId" + } + } + }, + "AttachVolumeRequest":{ + "type":"structure", + "required":[ + "VolumeId", + "InstanceId", + "Device" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VolumeId":{"shape":"String"}, + "InstanceId":{"shape":"String"}, + "Device":{"shape":"String"} + } + }, + "AttachVpnGatewayRequest":{ + "type":"structure", + "required":[ + "VpnGatewayId", + "VpcId" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VpnGatewayId":{"shape":"String"}, + "VpcId":{"shape":"String"} + } + }, + "AttachVpnGatewayResult":{ + "type":"structure", + "members":{ + "VpcAttachment":{ + "shape":"VpcAttachment", + "locationName":"attachment" + } + } + }, + "AttachmentStatus":{ + "type":"string", + "enum":[ + "attaching", + "attached", + "detaching", + "detached" + ] + }, + "AttributeBooleanValue":{ + "type":"structure", + "members":{ + "Value":{ + "shape":"Boolean", + "locationName":"value" + } + } + }, + "AttributeValue":{ + "type":"structure", + "members":{ + "Value":{ + "shape":"String", + "locationName":"value" + } + } + }, + "AuthorizeSecurityGroupEgressRequest":{ + "type":"structure", + "required":["GroupId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "GroupId":{ + "shape":"String", + "locationName":"groupId" + }, + "SourceSecurityGroupName":{ + "shape":"String", + "locationName":"sourceSecurityGroupName" + }, + "SourceSecurityGroupOwnerId":{ + "shape":"String", + "locationName":"sourceSecurityGroupOwnerId" + }, + "IpProtocol":{ + "shape":"String", + "locationName":"ipProtocol" + }, + "FromPort":{ + "shape":"Integer", + "locationName":"fromPort" + }, + "ToPort":{ + "shape":"Integer", + "locationName":"toPort" + }, + "CidrIp":{ + "shape":"String", + "locationName":"cidrIp" + }, + "IpPermissions":{ + "shape":"IpPermissionList", + "locationName":"ipPermissions" + } + } + }, + "AuthorizeSecurityGroupIngressRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "GroupName":{"shape":"String"}, + "GroupId":{"shape":"String"}, + "SourceSecurityGroupName":{"shape":"String"}, + "SourceSecurityGroupOwnerId":{"shape":"String"}, + "IpProtocol":{"shape":"String"}, + "FromPort":{"shape":"Integer"}, + "ToPort":{"shape":"Integer"}, + "CidrIp":{"shape":"String"}, + "IpPermissions":{"shape":"IpPermissionList"} + } + }, + "AutoPlacement":{ + "type":"string", + "enum":[ + "on", + "off" + ] + }, + "AvailabilityZone":{ + "type":"structure", + "members":{ + "ZoneName":{ + "shape":"String", + "locationName":"zoneName" + }, + "State":{ + "shape":"AvailabilityZoneState", + "locationName":"zoneState" + }, + "RegionName":{ + "shape":"String", + "locationName":"regionName" + }, + "Messages":{ + "shape":"AvailabilityZoneMessageList", + "locationName":"messageSet" + } + } + }, + "AvailabilityZoneList":{ + "type":"list", + "member":{ + "shape":"AvailabilityZone", + "locationName":"item" + } + }, + "AvailabilityZoneMessage":{ + "type":"structure", + "members":{ + "Message":{ + "shape":"String", + "locationName":"message" + } + } + }, + "AvailabilityZoneMessageList":{ + "type":"list", + "member":{ + "shape":"AvailabilityZoneMessage", + "locationName":"item" + } + }, + "AvailabilityZoneState":{ + "type":"string", + "enum":[ + "available", + "information", + "impaired", + "unavailable" + ] + }, + "AvailableCapacity":{ + "type":"structure", + "members":{ + "AvailableInstanceCapacity":{ + "shape":"AvailableInstanceCapacityList", + "locationName":"availableInstanceCapacity" + }, + "AvailableVCpus":{ + "shape":"Integer", + "locationName":"availableVCpus" + } + } + }, + "AvailableInstanceCapacityList":{ + "type":"list", + "member":{ + "shape":"InstanceCapacity", + "locationName":"item" + } + }, + "BatchState":{ + "type":"string", + "enum":[ + "submitted", + "active", + "cancelled", + "failed", + "cancelled_running", + "cancelled_terminating", + "modifying" + ] + }, + "BillingProductList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"item" + } + }, + "Blob":{"type":"blob"}, + "BlobAttributeValue":{ + "type":"structure", + "members":{ + "Value":{ + "shape":"Blob", + "locationName":"value" + } + } + }, + "BlockDeviceMapping":{ + "type":"structure", + "members":{ + "VirtualName":{ + "shape":"String", + "locationName":"virtualName" + }, + "DeviceName":{ + "shape":"String", + "locationName":"deviceName" + }, + "Ebs":{ + "shape":"EbsBlockDevice", + "locationName":"ebs" + }, + "NoDevice":{ + "shape":"String", + "locationName":"noDevice" + } + } + }, + "BlockDeviceMappingList":{ + "type":"list", + "member":{ + "shape":"BlockDeviceMapping", + "locationName":"item" + } + }, + "BlockDeviceMappingRequestList":{ + "type":"list", + "member":{ + "shape":"BlockDeviceMapping", + "locationName":"BlockDeviceMapping" + } + }, + "Boolean":{"type":"boolean"}, + "BundleIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"BundleId" + } + }, + "BundleInstanceRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "Storage" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InstanceId":{"shape":"String"}, + "Storage":{"shape":"Storage"} + } + }, + "BundleInstanceResult":{ + "type":"structure", + "members":{ + "BundleTask":{ + "shape":"BundleTask", + "locationName":"bundleInstanceTask" + } + } + }, + "BundleTask":{ + "type":"structure", + "members":{ + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "BundleId":{ + "shape":"String", + "locationName":"bundleId" + }, + "State":{ + "shape":"BundleTaskState", + "locationName":"state" + }, + "StartTime":{ + "shape":"DateTime", + "locationName":"startTime" + }, + "UpdateTime":{ + "shape":"DateTime", + "locationName":"updateTime" + }, + "Storage":{ + "shape":"Storage", + "locationName":"storage" + }, + "Progress":{ + "shape":"String", + "locationName":"progress" + }, + "BundleTaskError":{ + "shape":"BundleTaskError", + "locationName":"error" + } + } + }, + "BundleTaskError":{ + "type":"structure", + "members":{ + "Code":{ + "shape":"String", + "locationName":"code" + }, + "Message":{ + "shape":"String", + "locationName":"message" + } + } + }, + "BundleTaskList":{ + "type":"list", + "member":{ + "shape":"BundleTask", + "locationName":"item" + } + }, + "BundleTaskState":{ + "type":"string", + "enum":[ + "pending", + "waiting-for-shutdown", + "bundling", + "storing", + "cancelling", + "complete", + "failed" + ] + }, + "CancelBatchErrorCode":{ + "type":"string", + "enum":[ + "fleetRequestIdDoesNotExist", + "fleetRequestIdMalformed", + "fleetRequestNotInCancellableState", + "unexpectedError" + ] + }, + "CancelBundleTaskRequest":{ + "type":"structure", + "required":["BundleId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "BundleId":{"shape":"String"} + } + }, + "CancelBundleTaskResult":{ + "type":"structure", + "members":{ + "BundleTask":{ + "shape":"BundleTask", + "locationName":"bundleInstanceTask" + } + } + }, + "CancelConversionRequest":{ + "type":"structure", + "required":["ConversionTaskId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "ConversionTaskId":{ + "shape":"String", + "locationName":"conversionTaskId" + }, + "ReasonMessage":{ + "shape":"String", + "locationName":"reasonMessage" + } + } + }, + "CancelExportTaskRequest":{ + "type":"structure", + "required":["ExportTaskId"], + "members":{ + "ExportTaskId":{ + "shape":"String", + "locationName":"exportTaskId" + } + } + }, + "CancelImportTaskRequest":{ + "type":"structure", + "members":{ + "DryRun":{"shape":"Boolean"}, + "ImportTaskId":{"shape":"String"}, + "CancelReason":{"shape":"String"} + } + }, + "CancelImportTaskResult":{ + "type":"structure", + "members":{ + "ImportTaskId":{ + "shape":"String", + "locationName":"importTaskId" + }, + "State":{ + "shape":"String", + "locationName":"state" + }, + "PreviousState":{ + "shape":"String", + "locationName":"previousState" + } + } + }, + "CancelReservedInstancesListingRequest":{ + "type":"structure", + "required":["ReservedInstancesListingId"], + "members":{ + "ReservedInstancesListingId":{ + "shape":"String", + "locationName":"reservedInstancesListingId" + } + } + }, + "CancelReservedInstancesListingResult":{ + "type":"structure", + "members":{ + "ReservedInstancesListings":{ + "shape":"ReservedInstancesListingList", + "locationName":"reservedInstancesListingsSet" + } + } + }, + "CancelSpotFleetRequestsError":{ + "type":"structure", + "required":[ + "Code", + "Message" + ], + "members":{ + "Code":{ + "shape":"CancelBatchErrorCode", + "locationName":"code" + }, + "Message":{ + "shape":"String", + "locationName":"message" + } + } + }, + "CancelSpotFleetRequestsErrorItem":{ + "type":"structure", + "required":[ + "SpotFleetRequestId", + "Error" + ], + "members":{ + "SpotFleetRequestId":{ + "shape":"String", + "locationName":"spotFleetRequestId" + }, + "Error":{ + "shape":"CancelSpotFleetRequestsError", + "locationName":"error" + } + } + }, + "CancelSpotFleetRequestsErrorSet":{ + "type":"list", + "member":{ + "shape":"CancelSpotFleetRequestsErrorItem", + "locationName":"item" + } + }, + "CancelSpotFleetRequestsRequest":{ + "type":"structure", + "required":[ + "SpotFleetRequestIds", + "TerminateInstances" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "SpotFleetRequestIds":{ + "shape":"ValueStringList", + "locationName":"spotFleetRequestId" + }, + "TerminateInstances":{ + "shape":"Boolean", + "locationName":"terminateInstances" + } + } + }, + "CancelSpotFleetRequestsResponse":{ + "type":"structure", + "members":{ + "UnsuccessfulFleetRequests":{ + "shape":"CancelSpotFleetRequestsErrorSet", + "locationName":"unsuccessfulFleetRequestSet" + }, + "SuccessfulFleetRequests":{ + "shape":"CancelSpotFleetRequestsSuccessSet", + "locationName":"successfulFleetRequestSet" + } + } + }, + "CancelSpotFleetRequestsSuccessItem":{ + "type":"structure", + "required":[ + "SpotFleetRequestId", + "CurrentSpotFleetRequestState", + "PreviousSpotFleetRequestState" + ], + "members":{ + "SpotFleetRequestId":{ + "shape":"String", + "locationName":"spotFleetRequestId" + }, + "CurrentSpotFleetRequestState":{ + "shape":"BatchState", + "locationName":"currentSpotFleetRequestState" + }, + "PreviousSpotFleetRequestState":{ + "shape":"BatchState", + "locationName":"previousSpotFleetRequestState" + } + } + }, + "CancelSpotFleetRequestsSuccessSet":{ + "type":"list", + "member":{ + "shape":"CancelSpotFleetRequestsSuccessItem", + "locationName":"item" + } + }, + "CancelSpotInstanceRequestState":{ + "type":"string", + "enum":[ + "active", + "open", + "closed", + "cancelled", + "completed" + ] + }, + "CancelSpotInstanceRequestsRequest":{ + "type":"structure", + "required":["SpotInstanceRequestIds"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "SpotInstanceRequestIds":{ + "shape":"SpotInstanceRequestIdList", + "locationName":"SpotInstanceRequestId" + } + } + }, + "CancelSpotInstanceRequestsResult":{ + "type":"structure", + "members":{ + "CancelledSpotInstanceRequests":{ + "shape":"CancelledSpotInstanceRequestList", + "locationName":"spotInstanceRequestSet" + } + } + }, + "CancelledSpotInstanceRequest":{ + "type":"structure", + "members":{ + "SpotInstanceRequestId":{ + "shape":"String", + "locationName":"spotInstanceRequestId" + }, + "State":{ + "shape":"CancelSpotInstanceRequestState", + "locationName":"state" + } + } + }, + "CancelledSpotInstanceRequestList":{ + "type":"list", + "member":{ + "shape":"CancelledSpotInstanceRequest", + "locationName":"item" + } + }, + "ClassicLinkDnsSupport":{ + "type":"structure", + "members":{ + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "ClassicLinkDnsSupported":{ + "shape":"Boolean", + "locationName":"classicLinkDnsSupported" + } + } + }, + "ClassicLinkDnsSupportList":{ + "type":"list", + "member":{ + "shape":"ClassicLinkDnsSupport", + "locationName":"item" + } + }, + "ClassicLinkInstance":{ + "type":"structure", + "members":{ + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "Groups":{ + "shape":"GroupIdentifierList", + "locationName":"groupSet" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + } + } + }, + "ClassicLinkInstanceList":{ + "type":"list", + "member":{ + "shape":"ClassicLinkInstance", + "locationName":"item" + } + }, + "ClientData":{ + "type":"structure", + "members":{ + "UploadStart":{"shape":"DateTime"}, + "UploadEnd":{"shape":"DateTime"}, + "UploadSize":{"shape":"Double"}, + "Comment":{"shape":"String"} + } + }, + "ConfirmProductInstanceRequest":{ + "type":"structure", + "required":[ + "ProductCode", + "InstanceId" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "ProductCode":{"shape":"String"}, + "InstanceId":{"shape":"String"} + } + }, + "ConfirmProductInstanceResult":{ + "type":"structure", + "members":{ + "OwnerId":{ + "shape":"String", + "locationName":"ownerId" + }, + "Return":{ + "shape":"Boolean", + "locationName":"return" + } + } + }, + "ContainerFormat":{ + "type":"string", + "enum":["ova"] + }, + "ConversionIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"item" + } + }, + "ConversionTask":{ + "type":"structure", + "required":[ + "ConversionTaskId", + "State" + ], + "members":{ + "ConversionTaskId":{ + "shape":"String", + "locationName":"conversionTaskId" + }, + "ExpirationTime":{ + "shape":"String", + "locationName":"expirationTime" + }, + "ImportInstance":{ + "shape":"ImportInstanceTaskDetails", + "locationName":"importInstance" + }, + "ImportVolume":{ + "shape":"ImportVolumeTaskDetails", + "locationName":"importVolume" + }, + "State":{ + "shape":"ConversionTaskState", + "locationName":"state" + }, + "StatusMessage":{ + "shape":"String", + "locationName":"statusMessage" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + } + } + }, + "ConversionTaskState":{ + "type":"string", + "enum":[ + "active", + "cancelling", + "cancelled", + "completed" + ] + }, + "CopyImageRequest":{ + "type":"structure", + "required":[ + "SourceRegion", + "SourceImageId", + "Name" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "SourceRegion":{"shape":"String"}, + "SourceImageId":{"shape":"String"}, + "Name":{"shape":"String"}, + "Description":{"shape":"String"}, + "ClientToken":{"shape":"String"}, + "Encrypted":{ + "shape":"Boolean", + "locationName":"encrypted" + }, + "KmsKeyId":{ + "shape":"String", + "locationName":"kmsKeyId" + } + } + }, + "CopyImageResult":{ + "type":"structure", + "members":{ + "ImageId":{ + "shape":"String", + "locationName":"imageId" + } + } + }, + "CopySnapshotRequest":{ + "type":"structure", + "required":[ + "SourceRegion", + "SourceSnapshotId" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "SourceRegion":{"shape":"String"}, + "SourceSnapshotId":{"shape":"String"}, + "Description":{"shape":"String"}, + "DestinationRegion":{ + "shape":"String", + "locationName":"destinationRegion" + }, + "PresignedUrl":{ + "shape":"String", + "locationName":"presignedUrl" + }, + "Encrypted":{ + "shape":"Boolean", + "locationName":"encrypted" + }, + "KmsKeyId":{ + "shape":"String", + "locationName":"kmsKeyId" + } + } + }, + "CopySnapshotResult":{ + "type":"structure", + "members":{ + "SnapshotId":{ + "shape":"String", + "locationName":"snapshotId" + } + } + }, + "CreateCustomerGatewayRequest":{ + "type":"structure", + "required":[ + "Type", + "PublicIp", + "BgpAsn" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "Type":{"shape":"GatewayType"}, + "PublicIp":{ + "shape":"String", + "locationName":"IpAddress" + }, + "BgpAsn":{"shape":"Integer"} + } + }, + "CreateCustomerGatewayResult":{ + "type":"structure", + "members":{ + "CustomerGateway":{ + "shape":"CustomerGateway", + "locationName":"customerGateway" + } + } + }, + "CreateDhcpOptionsRequest":{ + "type":"structure", + "required":["DhcpConfigurations"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "DhcpConfigurations":{ + "shape":"NewDhcpConfigurationList", + "locationName":"dhcpConfiguration" + } + } + }, + "CreateDhcpOptionsResult":{ + "type":"structure", + "members":{ + "DhcpOptions":{ + "shape":"DhcpOptions", + "locationName":"dhcpOptions" + } + } + }, + "CreateEgressOnlyInternetGatewayRequest":{ + "type":"structure", + "required":["VpcId"], + "members":{ + "DryRun":{"shape":"Boolean"}, + "VpcId":{"shape":"String"}, + "ClientToken":{"shape":"String"} + } + }, + "CreateEgressOnlyInternetGatewayResult":{ + "type":"structure", + "members":{ + "EgressOnlyInternetGateway":{ + "shape":"EgressOnlyInternetGateway", + "locationName":"egressOnlyInternetGateway" + }, + "ClientToken":{ + "shape":"String", + "locationName":"clientToken" + } + } + }, + "CreateFlowLogsRequest":{ + "type":"structure", + "required":[ + "ResourceIds", + "ResourceType", + "TrafficType", + "LogGroupName", + "DeliverLogsPermissionArn" + ], + "members":{ + "ResourceIds":{ + "shape":"ValueStringList", + "locationName":"ResourceId" + }, + "ResourceType":{"shape":"FlowLogsResourceType"}, + "TrafficType":{"shape":"TrafficType"}, + "LogGroupName":{"shape":"String"}, + "DeliverLogsPermissionArn":{"shape":"String"}, + "ClientToken":{"shape":"String"} + } + }, + "CreateFlowLogsResult":{ + "type":"structure", + "members":{ + "FlowLogIds":{ + "shape":"ValueStringList", + "locationName":"flowLogIdSet" + }, + "ClientToken":{ + "shape":"String", + "locationName":"clientToken" + }, + "Unsuccessful":{ + "shape":"UnsuccessfulItemSet", + "locationName":"unsuccessful" + } + } + }, + "CreateImageRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "Name" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "Name":{ + "shape":"String", + "locationName":"name" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "NoReboot":{ + "shape":"Boolean", + "locationName":"noReboot" + }, + "BlockDeviceMappings":{ + "shape":"BlockDeviceMappingRequestList", + "locationName":"blockDeviceMapping" + } + } + }, + "CreateImageResult":{ + "type":"structure", + "members":{ + "ImageId":{ + "shape":"String", + "locationName":"imageId" + } + } + }, + "CreateInstanceExportTaskRequest":{ + "type":"structure", + "required":["InstanceId"], + "members":{ + "Description":{ + "shape":"String", + "locationName":"description" + }, + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "TargetEnvironment":{ + "shape":"ExportEnvironment", + "locationName":"targetEnvironment" + }, + "ExportToS3Task":{ + "shape":"ExportToS3TaskSpecification", + "locationName":"exportToS3" + } + } + }, + "CreateInstanceExportTaskResult":{ + "type":"structure", + "members":{ + "ExportTask":{ + "shape":"ExportTask", + "locationName":"exportTask" + } + } + }, + "CreateInternetGatewayRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + } + } + }, + "CreateInternetGatewayResult":{ + "type":"structure", + "members":{ + "InternetGateway":{ + "shape":"InternetGateway", + "locationName":"internetGateway" + } + } + }, + "CreateKeyPairRequest":{ + "type":"structure", + "required":["KeyName"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "KeyName":{"shape":"String"} + } + }, + "CreateNatGatewayRequest":{ + "type":"structure", + "required":[ + "SubnetId", + "AllocationId" + ], + "members":{ + "SubnetId":{"shape":"String"}, + "AllocationId":{"shape":"String"}, + "ClientToken":{"shape":"String"} + } + }, + "CreateNatGatewayResult":{ + "type":"structure", + "members":{ + "NatGateway":{ + "shape":"NatGateway", + "locationName":"natGateway" + }, + "ClientToken":{ + "shape":"String", + "locationName":"clientToken" + } + } + }, + "CreateNetworkAclEntryRequest":{ + "type":"structure", + "required":[ + "NetworkAclId", + "RuleNumber", + "Protocol", + "RuleAction", + "Egress" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "NetworkAclId":{ + "shape":"String", + "locationName":"networkAclId" + }, + "RuleNumber":{ + "shape":"Integer", + "locationName":"ruleNumber" + }, + "Protocol":{ + "shape":"String", + "locationName":"protocol" + }, + "RuleAction":{ + "shape":"RuleAction", + "locationName":"ruleAction" + }, + "Egress":{ + "shape":"Boolean", + "locationName":"egress" + }, + "CidrBlock":{ + "shape":"String", + "locationName":"cidrBlock" + }, + "Ipv6CidrBlock":{ + "shape":"String", + "locationName":"ipv6CidrBlock" + }, + "IcmpTypeCode":{ + "shape":"IcmpTypeCode", + "locationName":"Icmp" + }, + "PortRange":{ + "shape":"PortRange", + "locationName":"portRange" + } + } + }, + "CreateNetworkAclRequest":{ + "type":"structure", + "required":["VpcId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + } + } + }, + "CreateNetworkAclResult":{ + "type":"structure", + "members":{ + "NetworkAcl":{ + "shape":"NetworkAcl", + "locationName":"networkAcl" + } + } + }, + "CreateNetworkInterfaceRequest":{ + "type":"structure", + "required":["SubnetId"], + "members":{ + "SubnetId":{ + "shape":"String", + "locationName":"subnetId" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "PrivateIpAddress":{ + "shape":"String", + "locationName":"privateIpAddress" + }, + "Groups":{ + "shape":"SecurityGroupIdStringList", + "locationName":"SecurityGroupId" + }, + "PrivateIpAddresses":{ + "shape":"PrivateIpAddressSpecificationList", + "locationName":"privateIpAddresses" + }, + "SecondaryPrivateIpAddressCount":{ + "shape":"Integer", + "locationName":"secondaryPrivateIpAddressCount" + }, + "Ipv6Addresses":{ + "shape":"InstanceIpv6AddressList", + "locationName":"ipv6Addresses" + }, + "Ipv6AddressCount":{ + "shape":"Integer", + "locationName":"ipv6AddressCount" + }, + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + } + } + }, + "CreateNetworkInterfaceResult":{ + "type":"structure", + "members":{ + "NetworkInterface":{ + "shape":"NetworkInterface", + "locationName":"networkInterface" + } + } + }, + "CreatePlacementGroupRequest":{ + "type":"structure", + "required":[ + "GroupName", + "Strategy" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "GroupName":{ + "shape":"String", + "locationName":"groupName" + }, + "Strategy":{ + "shape":"PlacementStrategy", + "locationName":"strategy" + } + } + }, + "CreateReservedInstancesListingRequest":{ + "type":"structure", + "required":[ + "ReservedInstancesId", + "InstanceCount", + "PriceSchedules", + "ClientToken" + ], + "members":{ + "ReservedInstancesId":{ + "shape":"String", + "locationName":"reservedInstancesId" + }, + "InstanceCount":{ + "shape":"Integer", + "locationName":"instanceCount" + }, + "PriceSchedules":{ + "shape":"PriceScheduleSpecificationList", + "locationName":"priceSchedules" + }, + "ClientToken":{ + "shape":"String", + "locationName":"clientToken" + } + } + }, + "CreateReservedInstancesListingResult":{ + "type":"structure", + "members":{ + "ReservedInstancesListings":{ + "shape":"ReservedInstancesListingList", + "locationName":"reservedInstancesListingsSet" + } + } + }, + "CreateRouteRequest":{ + "type":"structure", + "required":["RouteTableId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "RouteTableId":{ + "shape":"String", + "locationName":"routeTableId" + }, + "DestinationCidrBlock":{ + "shape":"String", + "locationName":"destinationCidrBlock" + }, + "GatewayId":{ + "shape":"String", + "locationName":"gatewayId" + }, + "DestinationIpv6CidrBlock":{ + "shape":"String", + "locationName":"destinationIpv6CidrBlock" + }, + "EgressOnlyInternetGatewayId":{ + "shape":"String", + "locationName":"egressOnlyInternetGatewayId" + }, + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + }, + "VpcPeeringConnectionId":{ + "shape":"String", + "locationName":"vpcPeeringConnectionId" + }, + "NatGatewayId":{ + "shape":"String", + "locationName":"natGatewayId" + } + } + }, + "CreateRouteResult":{ + "type":"structure", + "members":{ + "Return":{ + "shape":"Boolean", + "locationName":"return" + } + } + }, + "CreateRouteTableRequest":{ + "type":"structure", + "required":["VpcId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + } + } + }, + "CreateRouteTableResult":{ + "type":"structure", + "members":{ + "RouteTable":{ + "shape":"RouteTable", + "locationName":"routeTable" + } + } + }, + "CreateSecurityGroupRequest":{ + "type":"structure", + "required":[ + "GroupName", + "Description" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "GroupName":{"shape":"String"}, + "Description":{ + "shape":"String", + "locationName":"GroupDescription" + }, + "VpcId":{"shape":"String"} + } + }, + "CreateSecurityGroupResult":{ + "type":"structure", + "members":{ + "GroupId":{ + "shape":"String", + "locationName":"groupId" + } + } + }, + "CreateSnapshotRequest":{ + "type":"structure", + "required":["VolumeId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VolumeId":{"shape":"String"}, + "Description":{"shape":"String"} + } + }, + "CreateSpotDatafeedSubscriptionRequest":{ + "type":"structure", + "required":["Bucket"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "Bucket":{ + "shape":"String", + "locationName":"bucket" + }, + "Prefix":{ + "shape":"String", + "locationName":"prefix" + } + } + }, + "CreateSpotDatafeedSubscriptionResult":{ + "type":"structure", + "members":{ + "SpotDatafeedSubscription":{ + "shape":"SpotDatafeedSubscription", + "locationName":"spotDatafeedSubscription" + } + } + }, + "CreateSubnetRequest":{ + "type":"structure", + "required":[ + "VpcId", + "CidrBlock" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VpcId":{"shape":"String"}, + "CidrBlock":{"shape":"String"}, + "Ipv6CidrBlock":{"shape":"String"}, + "AvailabilityZone":{"shape":"String"} + } + }, + "CreateSubnetResult":{ + "type":"structure", + "members":{ + "Subnet":{ + "shape":"Subnet", + "locationName":"subnet" + } + } + }, + "CreateTagsRequest":{ + "type":"structure", + "required":[ + "Resources", + "Tags" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "Resources":{ + "shape":"ResourceIdList", + "locationName":"ResourceId" + }, + "Tags":{ + "shape":"TagList", + "locationName":"Tag" + } + } + }, + "CreateVolumePermission":{ + "type":"structure", + "members":{ + "UserId":{ + "shape":"String", + "locationName":"userId" + }, + "Group":{ + "shape":"PermissionGroup", + "locationName":"group" + } + } + }, + "CreateVolumePermissionList":{ + "type":"list", + "member":{ + "shape":"CreateVolumePermission", + "locationName":"item" + } + }, + "CreateVolumePermissionModifications":{ + "type":"structure", + "members":{ + "Add":{"shape":"CreateVolumePermissionList"}, + "Remove":{"shape":"CreateVolumePermissionList"} + } + }, + "CreateVolumeRequest":{ + "type":"structure", + "required":["AvailabilityZone"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "Size":{"shape":"Integer"}, + "SnapshotId":{"shape":"String"}, + "AvailabilityZone":{"shape":"String"}, + "VolumeType":{"shape":"VolumeType"}, + "Iops":{"shape":"Integer"}, + "Encrypted":{ + "shape":"Boolean", + "locationName":"encrypted" + }, + "KmsKeyId":{"shape":"String"} + } + }, + "CreateVpcEndpointRequest":{ + "type":"structure", + "required":[ + "VpcId", + "ServiceName" + ], + "members":{ + "DryRun":{"shape":"Boolean"}, + "VpcId":{"shape":"String"}, + "ServiceName":{"shape":"String"}, + "PolicyDocument":{"shape":"String"}, + "RouteTableIds":{ + "shape":"ValueStringList", + "locationName":"RouteTableId" + }, + "ClientToken":{"shape":"String"} + } + }, + "CreateVpcEndpointResult":{ + "type":"structure", + "members":{ + "VpcEndpoint":{ + "shape":"VpcEndpoint", + "locationName":"vpcEndpoint" + }, + "ClientToken":{ + "shape":"String", + "locationName":"clientToken" + } + } + }, + "CreateVpcPeeringConnectionRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "PeerVpcId":{ + "shape":"String", + "locationName":"peerVpcId" + }, + "PeerOwnerId":{ + "shape":"String", + "locationName":"peerOwnerId" + } + } + }, + "CreateVpcPeeringConnectionResult":{ + "type":"structure", + "members":{ + "VpcPeeringConnection":{ + "shape":"VpcPeeringConnection", + "locationName":"vpcPeeringConnection" + } + } + }, + "CreateVpcRequest":{ + "type":"structure", + "required":["CidrBlock"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "CidrBlock":{"shape":"String"}, + "InstanceTenancy":{ + "shape":"Tenancy", + "locationName":"instanceTenancy" + }, + "AmazonProvidedIpv6CidrBlock":{ + "shape":"Boolean", + "locationName":"amazonProvidedIpv6CidrBlock" + } + } + }, + "CreateVpcResult":{ + "type":"structure", + "members":{ + "Vpc":{ + "shape":"Vpc", + "locationName":"vpc" + } + } + }, + "CreateVpnConnectionRequest":{ + "type":"structure", + "required":[ + "Type", + "CustomerGatewayId", + "VpnGatewayId" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "Type":{"shape":"String"}, + "CustomerGatewayId":{"shape":"String"}, + "VpnGatewayId":{"shape":"String"}, + "Options":{ + "shape":"VpnConnectionOptionsSpecification", + "locationName":"options" + } + } + }, + "CreateVpnConnectionResult":{ + "type":"structure", + "members":{ + "VpnConnection":{ + "shape":"VpnConnection", + "locationName":"vpnConnection" + } + } + }, + "CreateVpnConnectionRouteRequest":{ + "type":"structure", + "required":[ + "VpnConnectionId", + "DestinationCidrBlock" + ], + "members":{ + "VpnConnectionId":{"shape":"String"}, + "DestinationCidrBlock":{"shape":"String"} + } + }, + "CreateVpnGatewayRequest":{ + "type":"structure", + "required":["Type"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "Type":{"shape":"GatewayType"}, + "AvailabilityZone":{"shape":"String"} + } + }, + "CreateVpnGatewayResult":{ + "type":"structure", + "members":{ + "VpnGateway":{ + "shape":"VpnGateway", + "locationName":"vpnGateway" + } + } + }, + "CurrencyCodeValues":{ + "type":"string", + "enum":["USD"] + }, + "CustomerGateway":{ + "type":"structure", + "members":{ + "CustomerGatewayId":{ + "shape":"String", + "locationName":"customerGatewayId" + }, + "State":{ + "shape":"String", + "locationName":"state" + }, + "Type":{ + "shape":"String", + "locationName":"type" + }, + "IpAddress":{ + "shape":"String", + "locationName":"ipAddress" + }, + "BgpAsn":{ + "shape":"String", + "locationName":"bgpAsn" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + } + } + }, + "CustomerGatewayIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"CustomerGatewayId" + } + }, + "CustomerGatewayList":{ + "type":"list", + "member":{ + "shape":"CustomerGateway", + "locationName":"item" + } + }, + "DatafeedSubscriptionState":{ + "type":"string", + "enum":[ + "Active", + "Inactive" + ] + }, + "DateTime":{"type":"timestamp"}, + "DeleteCustomerGatewayRequest":{ + "type":"structure", + "required":["CustomerGatewayId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "CustomerGatewayId":{"shape":"String"} + } + }, + "DeleteDhcpOptionsRequest":{ + "type":"structure", + "required":["DhcpOptionsId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "DhcpOptionsId":{"shape":"String"} + } + }, + "DeleteEgressOnlyInternetGatewayRequest":{ + "type":"structure", + "required":["EgressOnlyInternetGatewayId"], + "members":{ + "DryRun":{"shape":"Boolean"}, + "EgressOnlyInternetGatewayId":{"shape":"EgressOnlyInternetGatewayId"} + } + }, + "DeleteEgressOnlyInternetGatewayResult":{ + "type":"structure", + "members":{ + "ReturnCode":{ + "shape":"Boolean", + "locationName":"returnCode" + } + } + }, + "DeleteFlowLogsRequest":{ + "type":"structure", + "required":["FlowLogIds"], + "members":{ + "FlowLogIds":{ + "shape":"ValueStringList", + "locationName":"FlowLogId" + } + } + }, + "DeleteFlowLogsResult":{ + "type":"structure", + "members":{ + "Unsuccessful":{ + "shape":"UnsuccessfulItemSet", + "locationName":"unsuccessful" + } + } + }, + "DeleteInternetGatewayRequest":{ + "type":"structure", + "required":["InternetGatewayId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InternetGatewayId":{ + "shape":"String", + "locationName":"internetGatewayId" + } + } + }, + "DeleteKeyPairRequest":{ + "type":"structure", + "required":["KeyName"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "KeyName":{"shape":"String"} + } + }, + "DeleteNatGatewayRequest":{ + "type":"structure", + "required":["NatGatewayId"], + "members":{ + "NatGatewayId":{"shape":"String"} + } + }, + "DeleteNatGatewayResult":{ + "type":"structure", + "members":{ + "NatGatewayId":{ + "shape":"String", + "locationName":"natGatewayId" + } + } + }, + "DeleteNetworkAclEntryRequest":{ + "type":"structure", + "required":[ + "NetworkAclId", + "RuleNumber", + "Egress" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "NetworkAclId":{ + "shape":"String", + "locationName":"networkAclId" + }, + "RuleNumber":{ + "shape":"Integer", + "locationName":"ruleNumber" + }, + "Egress":{ + "shape":"Boolean", + "locationName":"egress" + } + } + }, + "DeleteNetworkAclRequest":{ + "type":"structure", + "required":["NetworkAclId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "NetworkAclId":{ + "shape":"String", + "locationName":"networkAclId" + } + } + }, + "DeleteNetworkInterfaceRequest":{ + "type":"structure", + "required":["NetworkInterfaceId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + } + } + }, + "DeletePlacementGroupRequest":{ + "type":"structure", + "required":["GroupName"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "GroupName":{ + "shape":"String", + "locationName":"groupName" + } + } + }, + "DeleteRouteRequest":{ + "type":"structure", + "required":["RouteTableId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "RouteTableId":{ + "shape":"String", + "locationName":"routeTableId" + }, + "DestinationCidrBlock":{ + "shape":"String", + "locationName":"destinationCidrBlock" + }, + "DestinationIpv6CidrBlock":{ + "shape":"String", + "locationName":"destinationIpv6CidrBlock" + } + } + }, + "DeleteRouteTableRequest":{ + "type":"structure", + "required":["RouteTableId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "RouteTableId":{ + "shape":"String", + "locationName":"routeTableId" + } + } + }, + "DeleteSecurityGroupRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "GroupName":{"shape":"String"}, + "GroupId":{"shape":"String"} + } + }, + "DeleteSnapshotRequest":{ + "type":"structure", + "required":["SnapshotId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "SnapshotId":{"shape":"String"} + } + }, + "DeleteSpotDatafeedSubscriptionRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + } + } + }, + "DeleteSubnetRequest":{ + "type":"structure", + "required":["SubnetId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "SubnetId":{"shape":"String"} + } + }, + "DeleteTagsRequest":{ + "type":"structure", + "required":["Resources"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "Resources":{ + "shape":"ResourceIdList", + "locationName":"resourceId" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tag" + } + } + }, + "DeleteVolumeRequest":{ + "type":"structure", + "required":["VolumeId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VolumeId":{"shape":"String"} + } + }, + "DeleteVpcEndpointsRequest":{ + "type":"structure", + "required":["VpcEndpointIds"], + "members":{ + "DryRun":{"shape":"Boolean"}, + "VpcEndpointIds":{ + "shape":"ValueStringList", + "locationName":"VpcEndpointId" + } + } + }, + "DeleteVpcEndpointsResult":{ + "type":"structure", + "members":{ + "Unsuccessful":{ + "shape":"UnsuccessfulItemSet", + "locationName":"unsuccessful" + } + } + }, + "DeleteVpcPeeringConnectionRequest":{ + "type":"structure", + "required":["VpcPeeringConnectionId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VpcPeeringConnectionId":{ + "shape":"String", + "locationName":"vpcPeeringConnectionId" + } + } + }, + "DeleteVpcPeeringConnectionResult":{ + "type":"structure", + "members":{ + "Return":{ + "shape":"Boolean", + "locationName":"return" + } + } + }, + "DeleteVpcRequest":{ + "type":"structure", + "required":["VpcId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VpcId":{"shape":"String"} + } + }, + "DeleteVpnConnectionRequest":{ + "type":"structure", + "required":["VpnConnectionId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VpnConnectionId":{"shape":"String"} + } + }, + "DeleteVpnConnectionRouteRequest":{ + "type":"structure", + "required":[ + "VpnConnectionId", + "DestinationCidrBlock" + ], + "members":{ + "VpnConnectionId":{"shape":"String"}, + "DestinationCidrBlock":{"shape":"String"} + } + }, + "DeleteVpnGatewayRequest":{ + "type":"structure", + "required":["VpnGatewayId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VpnGatewayId":{"shape":"String"} + } + }, + "DeregisterImageRequest":{ + "type":"structure", + "required":["ImageId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "ImageId":{"shape":"String"} + } + }, + "DescribeAccountAttributesRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "AttributeNames":{ + "shape":"AccountAttributeNameStringList", + "locationName":"attributeName" + } + } + }, + "DescribeAccountAttributesResult":{ + "type":"structure", + "members":{ + "AccountAttributes":{ + "shape":"AccountAttributeList", + "locationName":"accountAttributeSet" + } + } + }, + "DescribeAddressesRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "PublicIps":{ + "shape":"PublicIpStringList", + "locationName":"PublicIp" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "AllocationIds":{ + "shape":"AllocationIdList", + "locationName":"AllocationId" + } + } + }, + "DescribeAddressesResult":{ + "type":"structure", + "members":{ + "Addresses":{ + "shape":"AddressList", + "locationName":"addressesSet" + } + } + }, + "DescribeAvailabilityZonesRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "ZoneNames":{ + "shape":"ZoneNameStringList", + "locationName":"ZoneName" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeAvailabilityZonesResult":{ + "type":"structure", + "members":{ + "AvailabilityZones":{ + "shape":"AvailabilityZoneList", + "locationName":"availabilityZoneInfo" + } + } + }, + "DescribeBundleTasksRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "BundleIds":{ + "shape":"BundleIdStringList", + "locationName":"BundleId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeBundleTasksResult":{ + "type":"structure", + "members":{ + "BundleTasks":{ + "shape":"BundleTaskList", + "locationName":"bundleInstanceTasksSet" + } + } + }, + "DescribeClassicLinkInstancesRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InstanceIds":{ + "shape":"InstanceIdStringList", + "locationName":"InstanceId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"Integer", + "locationName":"maxResults" + } + } + }, + "DescribeClassicLinkInstancesResult":{ + "type":"structure", + "members":{ + "Instances":{ + "shape":"ClassicLinkInstanceList", + "locationName":"instancesSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeConversionTaskList":{ + "type":"list", + "member":{ + "shape":"ConversionTask", + "locationName":"item" + } + }, + "DescribeConversionTasksRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "ConversionTaskIds":{ + "shape":"ConversionIdStringList", + "locationName":"conversionTaskId" + } + } + }, + "DescribeConversionTasksResult":{ + "type":"structure", + "members":{ + "ConversionTasks":{ + "shape":"DescribeConversionTaskList", + "locationName":"conversionTasks" + } + } + }, + "DescribeCustomerGatewaysRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "CustomerGatewayIds":{ + "shape":"CustomerGatewayIdStringList", + "locationName":"CustomerGatewayId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeCustomerGatewaysResult":{ + "type":"structure", + "members":{ + "CustomerGateways":{ + "shape":"CustomerGatewayList", + "locationName":"customerGatewaySet" + } + } + }, + "DescribeDhcpOptionsRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "DhcpOptionsIds":{ + "shape":"DhcpOptionsIdStringList", + "locationName":"DhcpOptionsId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeDhcpOptionsResult":{ + "type":"structure", + "members":{ + "DhcpOptions":{ + "shape":"DhcpOptionsList", + "locationName":"dhcpOptionsSet" + } + } + }, + "DescribeEgressOnlyInternetGatewaysRequest":{ + "type":"structure", + "members":{ + "DryRun":{"shape":"Boolean"}, + "EgressOnlyInternetGatewayIds":{ + "shape":"EgressOnlyInternetGatewayIdList", + "locationName":"EgressOnlyInternetGatewayId" + }, + "MaxResults":{"shape":"Integer"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeEgressOnlyInternetGatewaysResult":{ + "type":"structure", + "members":{ + "EgressOnlyInternetGateways":{ + "shape":"EgressOnlyInternetGatewayList", + "locationName":"egressOnlyInternetGatewaySet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeExportTasksRequest":{ + "type":"structure", + "members":{ + "ExportTaskIds":{ + "shape":"ExportTaskIdStringList", + "locationName":"exportTaskId" + } + } + }, + "DescribeExportTasksResult":{ + "type":"structure", + "members":{ + "ExportTasks":{ + "shape":"ExportTaskList", + "locationName":"exportTaskSet" + } + } + }, + "DescribeFlowLogsRequest":{ + "type":"structure", + "members":{ + "FlowLogIds":{ + "shape":"ValueStringList", + "locationName":"FlowLogId" + }, + "Filter":{"shape":"FilterList"}, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"Integer"} + } + }, + "DescribeFlowLogsResult":{ + "type":"structure", + "members":{ + "FlowLogs":{ + "shape":"FlowLogSet", + "locationName":"flowLogSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeHostReservationOfferingsRequest":{ + "type":"structure", + "members":{ + "OfferingId":{"shape":"String"}, + "MinDuration":{"shape":"Integer"}, + "MaxDuration":{"shape":"Integer"}, + "Filter":{"shape":"FilterList"}, + "MaxResults":{"shape":"Integer"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeHostReservationOfferingsResult":{ + "type":"structure", + "members":{ + "OfferingSet":{ + "shape":"HostOfferingSet", + "locationName":"offeringSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeHostReservationsRequest":{ + "type":"structure", + "members":{ + "HostReservationIdSet":{"shape":"HostReservationIdSet"}, + "Filter":{"shape":"FilterList"}, + "MaxResults":{"shape":"Integer"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeHostReservationsResult":{ + "type":"structure", + "members":{ + "HostReservationSet":{ + "shape":"HostReservationSet", + "locationName":"hostReservationSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeHostsRequest":{ + "type":"structure", + "members":{ + "HostIds":{ + "shape":"RequestHostIdList", + "locationName":"hostId" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"Integer", + "locationName":"maxResults" + }, + "Filter":{ + "shape":"FilterList", + "locationName":"filter" + } + } + }, + "DescribeHostsResult":{ + "type":"structure", + "members":{ + "Hosts":{ + "shape":"HostList", + "locationName":"hostSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeIamInstanceProfileAssociationsRequest":{ + "type":"structure", + "members":{ + "AssociationIds":{ + "shape":"AssociationIdList", + "locationName":"AssociationId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"NextToken"} + } + }, + "DescribeIamInstanceProfileAssociationsResult":{ + "type":"structure", + "members":{ + "IamInstanceProfileAssociations":{ + "shape":"IamInstanceProfileAssociationSet", + "locationName":"iamInstanceProfileAssociationSet" + }, + "NextToken":{ + "shape":"NextToken", + "locationName":"nextToken" + } + } + }, + "DescribeIdFormatRequest":{ + "type":"structure", + "members":{ + "Resource":{"shape":"String"} + } + }, + "DescribeIdFormatResult":{ + "type":"structure", + "members":{ + "Statuses":{ + "shape":"IdFormatList", + "locationName":"statusSet" + } + } + }, + "DescribeIdentityIdFormatRequest":{ + "type":"structure", + "required":["PrincipalArn"], + "members":{ + "Resource":{ + "shape":"String", + "locationName":"resource" + }, + "PrincipalArn":{ + "shape":"String", + "locationName":"principalArn" + } + } + }, + "DescribeIdentityIdFormatResult":{ + "type":"structure", + "members":{ + "Statuses":{ + "shape":"IdFormatList", + "locationName":"statusSet" + } + } + }, + "DescribeImageAttributeRequest":{ + "type":"structure", + "required":[ + "ImageId", + "Attribute" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "ImageId":{"shape":"String"}, + "Attribute":{"shape":"ImageAttributeName"} + } + }, + "DescribeImagesRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "ImageIds":{ + "shape":"ImageIdStringList", + "locationName":"ImageId" + }, + "Owners":{ + "shape":"OwnerStringList", + "locationName":"Owner" + }, + "ExecutableUsers":{ + "shape":"ExecutableByStringList", + "locationName":"ExecutableBy" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeImagesResult":{ + "type":"structure", + "members":{ + "Images":{ + "shape":"ImageList", + "locationName":"imagesSet" + } + } + }, + "DescribeImportImageTasksRequest":{ + "type":"structure", + "members":{ + "DryRun":{"shape":"Boolean"}, + "ImportTaskIds":{ + "shape":"ImportTaskIdList", + "locationName":"ImportTaskId" + }, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"Integer"}, + "Filters":{"shape":"FilterList"} + } + }, + "DescribeImportImageTasksResult":{ + "type":"structure", + "members":{ + "ImportImageTasks":{ + "shape":"ImportImageTaskList", + "locationName":"importImageTaskSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeImportSnapshotTasksRequest":{ + "type":"structure", + "members":{ + "DryRun":{"shape":"Boolean"}, + "ImportTaskIds":{ + "shape":"ImportTaskIdList", + "locationName":"ImportTaskId" + }, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"Integer"}, + "Filters":{"shape":"FilterList"} + } + }, + "DescribeImportSnapshotTasksResult":{ + "type":"structure", + "members":{ + "ImportSnapshotTasks":{ + "shape":"ImportSnapshotTaskList", + "locationName":"importSnapshotTaskSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeInstanceAttributeRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "Attribute" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "Attribute":{ + "shape":"InstanceAttributeName", + "locationName":"attribute" + } + } + }, + "DescribeInstanceStatusRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InstanceIds":{ + "shape":"InstanceIdStringList", + "locationName":"InstanceId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"Integer"}, + "IncludeAllInstances":{ + "shape":"Boolean", + "locationName":"includeAllInstances" + } + } + }, + "DescribeInstanceStatusResult":{ + "type":"structure", + "members":{ + "InstanceStatuses":{ + "shape":"InstanceStatusList", + "locationName":"instanceStatusSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeInstancesRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InstanceIds":{ + "shape":"InstanceIdStringList", + "locationName":"InstanceId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"Integer", + "locationName":"maxResults" + } + } + }, + "DescribeInstancesResult":{ + "type":"structure", + "members":{ + "Reservations":{ + "shape":"ReservationList", + "locationName":"reservationSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeInternetGatewaysRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InternetGatewayIds":{ + "shape":"ValueStringList", + "locationName":"internetGatewayId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeInternetGatewaysResult":{ + "type":"structure", + "members":{ + "InternetGateways":{ + "shape":"InternetGatewayList", + "locationName":"internetGatewaySet" + } + } + }, + "DescribeKeyPairsRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "KeyNames":{ + "shape":"KeyNameStringList", + "locationName":"KeyName" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeKeyPairsResult":{ + "type":"structure", + "members":{ + "KeyPairs":{ + "shape":"KeyPairList", + "locationName":"keySet" + } + } + }, + "DescribeMovingAddressesRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "PublicIps":{ + "shape":"ValueStringList", + "locationName":"publicIp" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"filter" + }, + "MaxResults":{ + "shape":"Integer", + "locationName":"maxResults" + } + } + }, + "DescribeMovingAddressesResult":{ + "type":"structure", + "members":{ + "MovingAddressStatuses":{ + "shape":"MovingAddressStatusSet", + "locationName":"movingAddressStatusSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeNatGatewaysRequest":{ + "type":"structure", + "members":{ + "NatGatewayIds":{ + "shape":"ValueStringList", + "locationName":"NatGatewayId" + }, + "Filter":{"shape":"FilterList"}, + "MaxResults":{"shape":"Integer"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeNatGatewaysResult":{ + "type":"structure", + "members":{ + "NatGateways":{ + "shape":"NatGatewayList", + "locationName":"natGatewaySet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeNetworkAclsRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "NetworkAclIds":{ + "shape":"ValueStringList", + "locationName":"NetworkAclId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeNetworkAclsResult":{ + "type":"structure", + "members":{ + "NetworkAcls":{ + "shape":"NetworkAclList", + "locationName":"networkAclSet" + } + } + }, + "DescribeNetworkInterfaceAttributeRequest":{ + "type":"structure", + "required":["NetworkInterfaceId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + }, + "Attribute":{ + "shape":"NetworkInterfaceAttribute", + "locationName":"attribute" + } + } + }, + "DescribeNetworkInterfaceAttributeResult":{ + "type":"structure", + "members":{ + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + }, + "Description":{ + "shape":"AttributeValue", + "locationName":"description" + }, + "SourceDestCheck":{ + "shape":"AttributeBooleanValue", + "locationName":"sourceDestCheck" + }, + "Groups":{ + "shape":"GroupIdentifierList", + "locationName":"groupSet" + }, + "Attachment":{ + "shape":"NetworkInterfaceAttachment", + "locationName":"attachment" + } + } + }, + "DescribeNetworkInterfacesRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "NetworkInterfaceIds":{ + "shape":"NetworkInterfaceIdList", + "locationName":"NetworkInterfaceId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"filter" + } + } + }, + "DescribeNetworkInterfacesResult":{ + "type":"structure", + "members":{ + "NetworkInterfaces":{ + "shape":"NetworkInterfaceList", + "locationName":"networkInterfaceSet" + } + } + }, + "DescribePlacementGroupsRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "GroupNames":{ + "shape":"PlacementGroupStringList", + "locationName":"groupName" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribePlacementGroupsResult":{ + "type":"structure", + "members":{ + "PlacementGroups":{ + "shape":"PlacementGroupList", + "locationName":"placementGroupSet" + } + } + }, + "DescribePrefixListsRequest":{ + "type":"structure", + "members":{ + "DryRun":{"shape":"Boolean"}, + "PrefixListIds":{ + "shape":"ValueStringList", + "locationName":"PrefixListId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "MaxResults":{"shape":"Integer"}, + "NextToken":{"shape":"String"} + } + }, + "DescribePrefixListsResult":{ + "type":"structure", + "members":{ + "PrefixLists":{ + "shape":"PrefixListSet", + "locationName":"prefixListSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeRegionsRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "RegionNames":{ + "shape":"RegionNameStringList", + "locationName":"RegionName" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeRegionsResult":{ + "type":"structure", + "members":{ + "Regions":{ + "shape":"RegionList", + "locationName":"regionInfo" + } + } + }, + "DescribeReservedInstancesListingsRequest":{ + "type":"structure", + "members":{ + "ReservedInstancesId":{ + "shape":"String", + "locationName":"reservedInstancesId" + }, + "ReservedInstancesListingId":{ + "shape":"String", + "locationName":"reservedInstancesListingId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeReservedInstancesListingsResult":{ + "type":"structure", + "members":{ + "ReservedInstancesListings":{ + "shape":"ReservedInstancesListingList", + "locationName":"reservedInstancesListingsSet" + } + } + }, + "DescribeReservedInstancesModificationsRequest":{ + "type":"structure", + "members":{ + "ReservedInstancesModificationIds":{ + "shape":"ReservedInstancesModificationIdStringList", + "locationName":"ReservedInstancesModificationId" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeReservedInstancesModificationsResult":{ + "type":"structure", + "members":{ + "ReservedInstancesModifications":{ + "shape":"ReservedInstancesModificationList", + "locationName":"reservedInstancesModificationsSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeReservedInstancesOfferingsRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "ReservedInstancesOfferingIds":{ + "shape":"ReservedInstancesOfferingIdStringList", + "locationName":"ReservedInstancesOfferingId" + }, + "InstanceType":{"shape":"InstanceType"}, + "AvailabilityZone":{"shape":"String"}, + "ProductDescription":{"shape":"RIProductDescription"}, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "InstanceTenancy":{ + "shape":"Tenancy", + "locationName":"instanceTenancy" + }, + "OfferingType":{ + "shape":"OfferingTypeValues", + "locationName":"offeringType" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"Integer", + "locationName":"maxResults" + }, + "IncludeMarketplace":{"shape":"Boolean"}, + "MinDuration":{"shape":"Long"}, + "MaxDuration":{"shape":"Long"}, + "MaxInstanceCount":{"shape":"Integer"}, + "OfferingClass":{"shape":"OfferingClassType"} + } + }, + "DescribeReservedInstancesOfferingsResult":{ + "type":"structure", + "members":{ + "ReservedInstancesOfferings":{ + "shape":"ReservedInstancesOfferingList", + "locationName":"reservedInstancesOfferingsSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeReservedInstancesRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "ReservedInstancesIds":{ + "shape":"ReservedInstancesIdStringList", + "locationName":"ReservedInstancesId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "OfferingType":{ + "shape":"OfferingTypeValues", + "locationName":"offeringType" + }, + "OfferingClass":{"shape":"OfferingClassType"} + } + }, + "DescribeReservedInstancesResult":{ + "type":"structure", + "members":{ + "ReservedInstances":{ + "shape":"ReservedInstancesList", + "locationName":"reservedInstancesSet" + } + } + }, + "DescribeRouteTablesRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "RouteTableIds":{ + "shape":"ValueStringList", + "locationName":"RouteTableId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeRouteTablesResult":{ + "type":"structure", + "members":{ + "RouteTables":{ + "shape":"RouteTableList", + "locationName":"routeTableSet" + } + } + }, + "DescribeScheduledInstanceAvailabilityRequest":{ + "type":"structure", + "required":[ + "Recurrence", + "FirstSlotStartTimeRange" + ], + "members":{ + "DryRun":{"shape":"Boolean"}, + "Recurrence":{"shape":"ScheduledInstanceRecurrenceRequest"}, + "FirstSlotStartTimeRange":{"shape":"SlotDateTimeRangeRequest"}, + "MinSlotDurationInHours":{"shape":"Integer"}, + "MaxSlotDurationInHours":{"shape":"Integer"}, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"Integer"}, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeScheduledInstanceAvailabilityResult":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + }, + "ScheduledInstanceAvailabilitySet":{ + "shape":"ScheduledInstanceAvailabilitySet", + "locationName":"scheduledInstanceAvailabilitySet" + } + } + }, + "DescribeScheduledInstancesRequest":{ + "type":"structure", + "members":{ + "DryRun":{"shape":"Boolean"}, + "ScheduledInstanceIds":{ + "shape":"ScheduledInstanceIdRequestSet", + "locationName":"ScheduledInstanceId" + }, + "SlotStartTimeRange":{"shape":"SlotStartTimeRangeRequest"}, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"Integer"}, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeScheduledInstancesResult":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + }, + "ScheduledInstanceSet":{ + "shape":"ScheduledInstanceSet", + "locationName":"scheduledInstanceSet" + } + } + }, + "DescribeSecurityGroupReferencesRequest":{ + "type":"structure", + "required":["GroupId"], + "members":{ + "DryRun":{"shape":"Boolean"}, + "GroupId":{"shape":"GroupIds"} + } + }, + "DescribeSecurityGroupReferencesResult":{ + "type":"structure", + "members":{ + "SecurityGroupReferenceSet":{ + "shape":"SecurityGroupReferences", + "locationName":"securityGroupReferenceSet" + } + } + }, + "DescribeSecurityGroupsRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "GroupNames":{ + "shape":"GroupNameStringList", + "locationName":"GroupName" + }, + "GroupIds":{ + "shape":"GroupIdStringList", + "locationName":"GroupId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeSecurityGroupsResult":{ + "type":"structure", + "members":{ + "SecurityGroups":{ + "shape":"SecurityGroupList", + "locationName":"securityGroupInfo" + } + } + }, + "DescribeSnapshotAttributeRequest":{ + "type":"structure", + "required":[ + "SnapshotId", + "Attribute" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "SnapshotId":{"shape":"String"}, + "Attribute":{"shape":"SnapshotAttributeName"} + } + }, + "DescribeSnapshotAttributeResult":{ + "type":"structure", + "members":{ + "SnapshotId":{ + "shape":"String", + "locationName":"snapshotId" + }, + "CreateVolumePermissions":{ + "shape":"CreateVolumePermissionList", + "locationName":"createVolumePermission" + }, + "ProductCodes":{ + "shape":"ProductCodeList", + "locationName":"productCodes" + } + } + }, + "DescribeSnapshotsRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "SnapshotIds":{ + "shape":"SnapshotIdStringList", + "locationName":"SnapshotId" + }, + "OwnerIds":{ + "shape":"OwnerStringList", + "locationName":"Owner" + }, + "RestorableByUserIds":{ + "shape":"RestorableByStringList", + "locationName":"RestorableBy" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"Integer"} + } + }, + "DescribeSnapshotsResult":{ + "type":"structure", + "members":{ + "Snapshots":{ + "shape":"SnapshotList", + "locationName":"snapshotSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeSpotDatafeedSubscriptionRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + } + } + }, + "DescribeSpotDatafeedSubscriptionResult":{ + "type":"structure", + "members":{ + "SpotDatafeedSubscription":{ + "shape":"SpotDatafeedSubscription", + "locationName":"spotDatafeedSubscription" + } + } + }, + "DescribeSpotFleetInstancesRequest":{ + "type":"structure", + "required":["SpotFleetRequestId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "SpotFleetRequestId":{ + "shape":"String", + "locationName":"spotFleetRequestId" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"Integer", + "locationName":"maxResults" + } + } + }, + "DescribeSpotFleetInstancesResponse":{ + "type":"structure", + "required":[ + "SpotFleetRequestId", + "ActiveInstances" + ], + "members":{ + "SpotFleetRequestId":{ + "shape":"String", + "locationName":"spotFleetRequestId" + }, + "ActiveInstances":{ + "shape":"ActiveInstanceSet", + "locationName":"activeInstanceSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeSpotFleetRequestHistoryRequest":{ + "type":"structure", + "required":[ + "SpotFleetRequestId", + "StartTime" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "SpotFleetRequestId":{ + "shape":"String", + "locationName":"spotFleetRequestId" + }, + "EventType":{ + "shape":"EventType", + "locationName":"eventType" + }, + "StartTime":{ + "shape":"DateTime", + "locationName":"startTime" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"Integer", + "locationName":"maxResults" + } + } + }, + "DescribeSpotFleetRequestHistoryResponse":{ + "type":"structure", + "required":[ + "SpotFleetRequestId", + "StartTime", + "LastEvaluatedTime", + "HistoryRecords" + ], + "members":{ + "SpotFleetRequestId":{ + "shape":"String", + "locationName":"spotFleetRequestId" + }, + "StartTime":{ + "shape":"DateTime", + "locationName":"startTime" + }, + "LastEvaluatedTime":{ + "shape":"DateTime", + "locationName":"lastEvaluatedTime" + }, + "HistoryRecords":{ + "shape":"HistoryRecords", + "locationName":"historyRecordSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeSpotFleetRequestsRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "SpotFleetRequestIds":{ + "shape":"ValueStringList", + "locationName":"spotFleetRequestId" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"Integer", + "locationName":"maxResults" + } + } + }, + "DescribeSpotFleetRequestsResponse":{ + "type":"structure", + "required":["SpotFleetRequestConfigs"], + "members":{ + "SpotFleetRequestConfigs":{ + "shape":"SpotFleetRequestConfigSet", + "locationName":"spotFleetRequestConfigSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeSpotInstanceRequestsRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "SpotInstanceRequestIds":{ + "shape":"SpotInstanceRequestIdList", + "locationName":"SpotInstanceRequestId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeSpotInstanceRequestsResult":{ + "type":"structure", + "members":{ + "SpotInstanceRequests":{ + "shape":"SpotInstanceRequestList", + "locationName":"spotInstanceRequestSet" + } + } + }, + "DescribeSpotPriceHistoryRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "StartTime":{ + "shape":"DateTime", + "locationName":"startTime" + }, + "EndTime":{ + "shape":"DateTime", + "locationName":"endTime" + }, + "InstanceTypes":{ + "shape":"InstanceTypeList", + "locationName":"InstanceType" + }, + "ProductDescriptions":{ + "shape":"ProductDescriptionList", + "locationName":"ProductDescription" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + }, + "MaxResults":{ + "shape":"Integer", + "locationName":"maxResults" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeSpotPriceHistoryResult":{ + "type":"structure", + "members":{ + "SpotPriceHistory":{ + "shape":"SpotPriceHistoryList", + "locationName":"spotPriceHistorySet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeStaleSecurityGroupsRequest":{ + "type":"structure", + "required":["VpcId"], + "members":{ + "DryRun":{"shape":"Boolean"}, + "VpcId":{"shape":"String"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"NextToken"} + } + }, + "DescribeStaleSecurityGroupsResult":{ + "type":"structure", + "members":{ + "StaleSecurityGroupSet":{ + "shape":"StaleSecurityGroupSet", + "locationName":"staleSecurityGroupSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeSubnetsRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "SubnetIds":{ + "shape":"SubnetIdStringList", + "locationName":"SubnetId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeSubnetsResult":{ + "type":"structure", + "members":{ + "Subnets":{ + "shape":"SubnetList", + "locationName":"subnetSet" + } + } + }, + "DescribeTagsRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "MaxResults":{ + "shape":"Integer", + "locationName":"maxResults" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeTagsResult":{ + "type":"structure", + "members":{ + "Tags":{ + "shape":"TagDescriptionList", + "locationName":"tagSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeVolumeAttributeRequest":{ + "type":"structure", + "required":["VolumeId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VolumeId":{"shape":"String"}, + "Attribute":{"shape":"VolumeAttributeName"} + } + }, + "DescribeVolumeAttributeResult":{ + "type":"structure", + "members":{ + "VolumeId":{ + "shape":"String", + "locationName":"volumeId" + }, + "AutoEnableIO":{ + "shape":"AttributeBooleanValue", + "locationName":"autoEnableIO" + }, + "ProductCodes":{ + "shape":"ProductCodeList", + "locationName":"productCodes" + } + } + }, + "DescribeVolumeStatusRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VolumeIds":{ + "shape":"VolumeIdStringList", + "locationName":"VolumeId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"Integer"} + } + }, + "DescribeVolumeStatusResult":{ + "type":"structure", + "members":{ + "VolumeStatuses":{ + "shape":"VolumeStatusList", + "locationName":"volumeStatusSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeVolumesModificationsRequest":{ + "type":"structure", + "members":{ + "DryRun":{"shape":"Boolean"}, + "VolumeIds":{ + "shape":"VolumeIdStringList", + "locationName":"VolumeId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"Integer"} + } + }, + "DescribeVolumesModificationsResult":{ + "type":"structure", + "members":{ + "VolumesModifications":{ + "shape":"VolumeModificationList", + "locationName":"volumeModificationSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeVolumesRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VolumeIds":{ + "shape":"VolumeIdStringList", + "locationName":"VolumeId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"Integer", + "locationName":"maxResults" + } + } + }, + "DescribeVolumesResult":{ + "type":"structure", + "members":{ + "Volumes":{ + "shape":"VolumeList", + "locationName":"volumeSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeVpcAttributeRequest":{ + "type":"structure", + "required":[ + "VpcId", + "Attribute" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VpcId":{"shape":"String"}, + "Attribute":{"shape":"VpcAttributeName"} + } + }, + "DescribeVpcAttributeResult":{ + "type":"structure", + "members":{ + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "EnableDnsSupport":{ + "shape":"AttributeBooleanValue", + "locationName":"enableDnsSupport" + }, + "EnableDnsHostnames":{ + "shape":"AttributeBooleanValue", + "locationName":"enableDnsHostnames" + } + } + }, + "DescribeVpcClassicLinkDnsSupportRequest":{ + "type":"structure", + "members":{ + "VpcIds":{"shape":"VpcClassicLinkIdList"}, + "MaxResults":{ + "shape":"MaxResults", + "locationName":"maxResults" + }, + "NextToken":{ + "shape":"NextToken", + "locationName":"nextToken" + } + } + }, + "DescribeVpcClassicLinkDnsSupportResult":{ + "type":"structure", + "members":{ + "Vpcs":{ + "shape":"ClassicLinkDnsSupportList", + "locationName":"vpcs" + }, + "NextToken":{ + "shape":"NextToken", + "locationName":"nextToken" + } + } + }, + "DescribeVpcClassicLinkRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VpcIds":{ + "shape":"VpcClassicLinkIdList", + "locationName":"VpcId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeVpcClassicLinkResult":{ + "type":"structure", + "members":{ + "Vpcs":{ + "shape":"VpcClassicLinkList", + "locationName":"vpcSet" + } + } + }, + "DescribeVpcEndpointServicesRequest":{ + "type":"structure", + "members":{ + "DryRun":{"shape":"Boolean"}, + "MaxResults":{"shape":"Integer"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeVpcEndpointServicesResult":{ + "type":"structure", + "members":{ + "ServiceNames":{ + "shape":"ValueStringList", + "locationName":"serviceNameSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeVpcEndpointsRequest":{ + "type":"structure", + "members":{ + "DryRun":{"shape":"Boolean"}, + "VpcEndpointIds":{ + "shape":"ValueStringList", + "locationName":"VpcEndpointId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "MaxResults":{"shape":"Integer"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeVpcEndpointsResult":{ + "type":"structure", + "members":{ + "VpcEndpoints":{ + "shape":"VpcEndpointSet", + "locationName":"vpcEndpointSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeVpcPeeringConnectionsRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VpcPeeringConnectionIds":{ + "shape":"ValueStringList", + "locationName":"VpcPeeringConnectionId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeVpcPeeringConnectionsResult":{ + "type":"structure", + "members":{ + "VpcPeeringConnections":{ + "shape":"VpcPeeringConnectionList", + "locationName":"vpcPeeringConnectionSet" + } + } + }, + "DescribeVpcsRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VpcIds":{ + "shape":"VpcIdStringList", + "locationName":"VpcId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeVpcsResult":{ + "type":"structure", + "members":{ + "Vpcs":{ + "shape":"VpcList", + "locationName":"vpcSet" + } + } + }, + "DescribeVpnConnectionsRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VpnConnectionIds":{ + "shape":"VpnConnectionIdStringList", + "locationName":"VpnConnectionId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeVpnConnectionsResult":{ + "type":"structure", + "members":{ + "VpnConnections":{ + "shape":"VpnConnectionList", + "locationName":"vpnConnectionSet" + } + } + }, + "DescribeVpnGatewaysRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VpnGatewayIds":{ + "shape":"VpnGatewayIdStringList", + "locationName":"VpnGatewayId" + }, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + } + } + }, + "DescribeVpnGatewaysResult":{ + "type":"structure", + "members":{ + "VpnGateways":{ + "shape":"VpnGatewayList", + "locationName":"vpnGatewaySet" + } + } + }, + "DetachClassicLinkVpcRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "VpcId" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + } + } + }, + "DetachClassicLinkVpcResult":{ + "type":"structure", + "members":{ + "Return":{ + "shape":"Boolean", + "locationName":"return" + } + } + }, + "DetachInternetGatewayRequest":{ + "type":"structure", + "required":[ + "InternetGatewayId", + "VpcId" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InternetGatewayId":{ + "shape":"String", + "locationName":"internetGatewayId" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + } + } + }, + "DetachNetworkInterfaceRequest":{ + "type":"structure", + "required":["AttachmentId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "AttachmentId":{ + "shape":"String", + "locationName":"attachmentId" + }, + "Force":{ + "shape":"Boolean", + "locationName":"force" + } + } + }, + "DetachVolumeRequest":{ + "type":"structure", + "required":["VolumeId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VolumeId":{"shape":"String"}, + "InstanceId":{"shape":"String"}, + "Device":{"shape":"String"}, + "Force":{"shape":"Boolean"} + } + }, + "DetachVpnGatewayRequest":{ + "type":"structure", + "required":[ + "VpnGatewayId", + "VpcId" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VpnGatewayId":{"shape":"String"}, + "VpcId":{"shape":"String"} + } + }, + "DeviceType":{ + "type":"string", + "enum":[ + "ebs", + "instance-store" + ] + }, + "DhcpConfiguration":{ + "type":"structure", + "members":{ + "Key":{ + "shape":"String", + "locationName":"key" + }, + "Values":{ + "shape":"DhcpConfigurationValueList", + "locationName":"valueSet" + } + } + }, + "DhcpConfigurationList":{ + "type":"list", + "member":{ + "shape":"DhcpConfiguration", + "locationName":"item" + } + }, + "DhcpConfigurationValueList":{ + "type":"list", + "member":{ + "shape":"AttributeValue", + "locationName":"item" + } + }, + "DhcpOptions":{ + "type":"structure", + "members":{ + "DhcpOptionsId":{ + "shape":"String", + "locationName":"dhcpOptionsId" + }, + "DhcpConfigurations":{ + "shape":"DhcpConfigurationList", + "locationName":"dhcpConfigurationSet" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + } + } + }, + "DhcpOptionsIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"DhcpOptionsId" + } + }, + "DhcpOptionsList":{ + "type":"list", + "member":{ + "shape":"DhcpOptions", + "locationName":"item" + } + }, + "DisableVgwRoutePropagationRequest":{ + "type":"structure", + "required":[ + "RouteTableId", + "GatewayId" + ], + "members":{ + "RouteTableId":{"shape":"String"}, + "GatewayId":{"shape":"String"} + } + }, + "DisableVpcClassicLinkDnsSupportRequest":{ + "type":"structure", + "members":{ + "VpcId":{"shape":"String"} + } + }, + "DisableVpcClassicLinkDnsSupportResult":{ + "type":"structure", + "members":{ + "Return":{ + "shape":"Boolean", + "locationName":"return" + } + } + }, + "DisableVpcClassicLinkRequest":{ + "type":"structure", + "required":["VpcId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + } + } + }, + "DisableVpcClassicLinkResult":{ + "type":"structure", + "members":{ + "Return":{ + "shape":"Boolean", + "locationName":"return" + } + } + }, + "DisassociateAddressRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "PublicIp":{"shape":"String"}, + "AssociationId":{"shape":"String"} + } + }, + "DisassociateIamInstanceProfileRequest":{ + "type":"structure", + "required":["AssociationId"], + "members":{ + "AssociationId":{"shape":"String"} + } + }, + "DisassociateIamInstanceProfileResult":{ + "type":"structure", + "members":{ + "IamInstanceProfileAssociation":{ + "shape":"IamInstanceProfileAssociation", + "locationName":"iamInstanceProfileAssociation" + } + } + }, + "DisassociateRouteTableRequest":{ + "type":"structure", + "required":["AssociationId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "AssociationId":{ + "shape":"String", + "locationName":"associationId" + } + } + }, + "DisassociateSubnetCidrBlockRequest":{ + "type":"structure", + "required":["AssociationId"], + "members":{ + "AssociationId":{ + "shape":"String", + "locationName":"associationId" + } + } + }, + "DisassociateSubnetCidrBlockResult":{ + "type":"structure", + "members":{ + "SubnetId":{ + "shape":"String", + "locationName":"subnetId" + }, + "Ipv6CidrBlockAssociation":{ + "shape":"SubnetIpv6CidrBlockAssociation", + "locationName":"ipv6CidrBlockAssociation" + } + } + }, + "DisassociateVpcCidrBlockRequest":{ + "type":"structure", + "required":["AssociationId"], + "members":{ + "AssociationId":{ + "shape":"String", + "locationName":"associationId" + } + } + }, + "DisassociateVpcCidrBlockResult":{ + "type":"structure", + "members":{ + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "Ipv6CidrBlockAssociation":{ + "shape":"VpcIpv6CidrBlockAssociation", + "locationName":"ipv6CidrBlockAssociation" + } + } + }, + "DiskImage":{ + "type":"structure", + "members":{ + "Image":{"shape":"DiskImageDetail"}, + "Description":{"shape":"String"}, + "Volume":{"shape":"VolumeDetail"} + } + }, + "DiskImageDescription":{ + "type":"structure", + "required":[ + "Format", + "Size", + "ImportManifestUrl" + ], + "members":{ + "Format":{ + "shape":"DiskImageFormat", + "locationName":"format" + }, + "Size":{ + "shape":"Long", + "locationName":"size" + }, + "ImportManifestUrl":{ + "shape":"String", + "locationName":"importManifestUrl" + }, + "Checksum":{ + "shape":"String", + "locationName":"checksum" + } + } + }, + "DiskImageDetail":{ + "type":"structure", + "required":[ + "Format", + "Bytes", + "ImportManifestUrl" + ], + "members":{ + "Format":{ + "shape":"DiskImageFormat", + "locationName":"format" + }, + "Bytes":{ + "shape":"Long", + "locationName":"bytes" + }, + "ImportManifestUrl":{ + "shape":"String", + "locationName":"importManifestUrl" + } + } + }, + "DiskImageFormat":{ + "type":"string", + "enum":[ + "VMDK", + "RAW", + "VHD" + ] + }, + "DiskImageList":{ + "type":"list", + "member":{"shape":"DiskImage"} + }, + "DiskImageVolumeDescription":{ + "type":"structure", + "required":["Id"], + "members":{ + "Size":{ + "shape":"Long", + "locationName":"size" + }, + "Id":{ + "shape":"String", + "locationName":"id" + } + } + }, + "DomainType":{ + "type":"string", + "enum":[ + "vpc", + "standard" + ] + }, + "Double":{"type":"double"}, + "EbsBlockDevice":{ + "type":"structure", + "members":{ + "SnapshotId":{ + "shape":"String", + "locationName":"snapshotId" + }, + "VolumeSize":{ + "shape":"Integer", + "locationName":"volumeSize" + }, + "DeleteOnTermination":{ + "shape":"Boolean", + "locationName":"deleteOnTermination" + }, + "VolumeType":{ + "shape":"VolumeType", + "locationName":"volumeType" + }, + "Iops":{ + "shape":"Integer", + "locationName":"iops" + }, + "Encrypted":{ + "shape":"Boolean", + "locationName":"encrypted" + } + } + }, + "EbsInstanceBlockDevice":{ + "type":"structure", + "members":{ + "VolumeId":{ + "shape":"String", + "locationName":"volumeId" + }, + "Status":{ + "shape":"AttachmentStatus", + "locationName":"status" + }, + "AttachTime":{ + "shape":"DateTime", + "locationName":"attachTime" + }, + "DeleteOnTermination":{ + "shape":"Boolean", + "locationName":"deleteOnTermination" + } + } + }, + "EbsInstanceBlockDeviceSpecification":{ + "type":"structure", + "members":{ + "VolumeId":{ + "shape":"String", + "locationName":"volumeId" + }, + "DeleteOnTermination":{ + "shape":"Boolean", + "locationName":"deleteOnTermination" + } + } + }, + "EgressOnlyInternetGateway":{ + "type":"structure", + "members":{ + "EgressOnlyInternetGatewayId":{ + "shape":"EgressOnlyInternetGatewayId", + "locationName":"egressOnlyInternetGatewayId" + }, + "Attachments":{ + "shape":"InternetGatewayAttachmentList", + "locationName":"attachmentSet" + } + } + }, + "EgressOnlyInternetGatewayId":{"type":"string"}, + "EgressOnlyInternetGatewayIdList":{ + "type":"list", + "member":{ + "shape":"EgressOnlyInternetGatewayId", + "locationName":"item" + } + }, + "EgressOnlyInternetGatewayList":{ + "type":"list", + "member":{ + "shape":"EgressOnlyInternetGateway", + "locationName":"item" + } + }, + "EnableVgwRoutePropagationRequest":{ + "type":"structure", + "required":[ + "RouteTableId", + "GatewayId" + ], + "members":{ + "RouteTableId":{"shape":"String"}, + "GatewayId":{"shape":"String"} + } + }, + "EnableVolumeIORequest":{ + "type":"structure", + "required":["VolumeId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VolumeId":{ + "shape":"String", + "locationName":"volumeId" + } + } + }, + "EnableVpcClassicLinkDnsSupportRequest":{ + "type":"structure", + "members":{ + "VpcId":{"shape":"String"} + } + }, + "EnableVpcClassicLinkDnsSupportResult":{ + "type":"structure", + "members":{ + "Return":{ + "shape":"Boolean", + "locationName":"return" + } + } + }, + "EnableVpcClassicLinkRequest":{ + "type":"structure", + "required":["VpcId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + } + } + }, + "EnableVpcClassicLinkResult":{ + "type":"structure", + "members":{ + "Return":{ + "shape":"Boolean", + "locationName":"return" + } + } + }, + "EventCode":{ + "type":"string", + "enum":[ + "instance-reboot", + "system-reboot", + "system-maintenance", + "instance-retirement", + "instance-stop" + ] + }, + "EventInformation":{ + "type":"structure", + "members":{ + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "EventSubType":{ + "shape":"String", + "locationName":"eventSubType" + }, + "EventDescription":{ + "shape":"String", + "locationName":"eventDescription" + } + } + }, + "EventType":{ + "type":"string", + "enum":[ + "instanceChange", + "fleetRequestChange", + "error" + ] + }, + "ExcessCapacityTerminationPolicy":{ + "type":"string", + "enum":[ + "noTermination", + "default" + ] + }, + "ExecutableByStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"ExecutableBy" + } + }, + "ExportEnvironment":{ + "type":"string", + "enum":[ + "citrix", + "vmware", + "microsoft" + ] + }, + "ExportTask":{ + "type":"structure", + "members":{ + "ExportTaskId":{ + "shape":"String", + "locationName":"exportTaskId" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "State":{ + "shape":"ExportTaskState", + "locationName":"state" + }, + "StatusMessage":{ + "shape":"String", + "locationName":"statusMessage" + }, + "InstanceExportDetails":{ + "shape":"InstanceExportDetails", + "locationName":"instanceExport" + }, + "ExportToS3Task":{ + "shape":"ExportToS3Task", + "locationName":"exportToS3" + } + } + }, + "ExportTaskIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"ExportTaskId" + } + }, + "ExportTaskList":{ + "type":"list", + "member":{ + "shape":"ExportTask", + "locationName":"item" + } + }, + "ExportTaskState":{ + "type":"string", + "enum":[ + "active", + "cancelling", + "cancelled", + "completed" + ] + }, + "ExportToS3Task":{ + "type":"structure", + "members":{ + "DiskImageFormat":{ + "shape":"DiskImageFormat", + "locationName":"diskImageFormat" + }, + "ContainerFormat":{ + "shape":"ContainerFormat", + "locationName":"containerFormat" + }, + "S3Bucket":{ + "shape":"String", + "locationName":"s3Bucket" + }, + "S3Key":{ + "shape":"String", + "locationName":"s3Key" + } + } + }, + "ExportToS3TaskSpecification":{ + "type":"structure", + "members":{ + "DiskImageFormat":{ + "shape":"DiskImageFormat", + "locationName":"diskImageFormat" + }, + "ContainerFormat":{ + "shape":"ContainerFormat", + "locationName":"containerFormat" + }, + "S3Bucket":{ + "shape":"String", + "locationName":"s3Bucket" + }, + "S3Prefix":{ + "shape":"String", + "locationName":"s3Prefix" + } + } + }, + "Filter":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "Values":{ + "shape":"ValueStringList", + "locationName":"Value" + } + } + }, + "FilterList":{ + "type":"list", + "member":{ + "shape":"Filter", + "locationName":"Filter" + } + }, + "FleetType":{ + "type":"string", + "enum":[ + "request", + "maintain" + ] + }, + "Float":{"type":"float"}, + "FlowLog":{ + "type":"structure", + "members":{ + "CreationTime":{ + "shape":"DateTime", + "locationName":"creationTime" + }, + "FlowLogId":{ + "shape":"String", + "locationName":"flowLogId" + }, + "FlowLogStatus":{ + "shape":"String", + "locationName":"flowLogStatus" + }, + "ResourceId":{ + "shape":"String", + "locationName":"resourceId" + }, + "TrafficType":{ + "shape":"TrafficType", + "locationName":"trafficType" + }, + "LogGroupName":{ + "shape":"String", + "locationName":"logGroupName" + }, + "DeliverLogsStatus":{ + "shape":"String", + "locationName":"deliverLogsStatus" + }, + "DeliverLogsErrorMessage":{ + "shape":"String", + "locationName":"deliverLogsErrorMessage" + }, + "DeliverLogsPermissionArn":{ + "shape":"String", + "locationName":"deliverLogsPermissionArn" + } + } + }, + "FlowLogSet":{ + "type":"list", + "member":{ + "shape":"FlowLog", + "locationName":"item" + } + }, + "FlowLogsResourceType":{ + "type":"string", + "enum":[ + "VPC", + "Subnet", + "NetworkInterface" + ] + }, + "GatewayType":{ + "type":"string", + "enum":["ipsec.1"] + }, + "GetConsoleOutputRequest":{ + "type":"structure", + "required":["InstanceId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InstanceId":{"shape":"String"} + } + }, + "GetConsoleOutputResult":{ + "type":"structure", + "members":{ + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "Timestamp":{ + "shape":"DateTime", + "locationName":"timestamp" + }, + "Output":{ + "shape":"String", + "locationName":"output" + } + } + }, + "GetConsoleScreenshotRequest":{ + "type":"structure", + "required":["InstanceId"], + "members":{ + "DryRun":{"shape":"Boolean"}, + "InstanceId":{"shape":"String"}, + "WakeUp":{"shape":"Boolean"} + } + }, + "GetConsoleScreenshotResult":{ + "type":"structure", + "members":{ + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "ImageData":{ + "shape":"String", + "locationName":"imageData" + } + } + }, + "GetHostReservationPurchasePreviewRequest":{ + "type":"structure", + "required":[ + "OfferingId", + "HostIdSet" + ], + "members":{ + "OfferingId":{"shape":"String"}, + "HostIdSet":{"shape":"RequestHostIdSet"} + } + }, + "GetHostReservationPurchasePreviewResult":{ + "type":"structure", + "members":{ + "Purchase":{ + "shape":"PurchaseSet", + "locationName":"purchase" + }, + "TotalUpfrontPrice":{ + "shape":"String", + "locationName":"totalUpfrontPrice" + }, + "TotalHourlyPrice":{ + "shape":"String", + "locationName":"totalHourlyPrice" + }, + "CurrencyCode":{ + "shape":"CurrencyCodeValues", + "locationName":"currencyCode" + } + } + }, + "GetPasswordDataRequest":{ + "type":"structure", + "required":["InstanceId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InstanceId":{"shape":"String"} + } + }, + "GetPasswordDataResult":{ + "type":"structure", + "members":{ + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "Timestamp":{ + "shape":"DateTime", + "locationName":"timestamp" + }, + "PasswordData":{ + "shape":"String", + "locationName":"passwordData" + } + } + }, + "GetReservedInstancesExchangeQuoteRequest":{ + "type":"structure", + "required":["ReservedInstanceIds"], + "members":{ + "DryRun":{"shape":"Boolean"}, + "ReservedInstanceIds":{ + "shape":"ReservedInstanceIdSet", + "locationName":"ReservedInstanceId" + }, + "TargetConfigurations":{ + "shape":"TargetConfigurationRequestSet", + "locationName":"TargetConfiguration" + } + } + }, + "GetReservedInstancesExchangeQuoteResult":{ + "type":"structure", + "members":{ + "ReservedInstanceValueSet":{ + "shape":"ReservedInstanceReservationValueSet", + "locationName":"reservedInstanceValueSet" + }, + "ReservedInstanceValueRollup":{ + "shape":"ReservationValue", + "locationName":"reservedInstanceValueRollup" + }, + "TargetConfigurationValueSet":{ + "shape":"TargetReservationValueSet", + "locationName":"targetConfigurationValueSet" + }, + "TargetConfigurationValueRollup":{ + "shape":"ReservationValue", + "locationName":"targetConfigurationValueRollup" + }, + "PaymentDue":{ + "shape":"String", + "locationName":"paymentDue" + }, + "CurrencyCode":{ + "shape":"String", + "locationName":"currencyCode" + }, + "OutputReservedInstancesWillExpireAt":{ + "shape":"DateTime", + "locationName":"outputReservedInstancesWillExpireAt" + }, + "IsValidExchange":{ + "shape":"Boolean", + "locationName":"isValidExchange" + }, + "ValidationFailureReason":{ + "shape":"String", + "locationName":"validationFailureReason" + } + } + }, + "GroupIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"groupId" + } + }, + "GroupIdentifier":{ + "type":"structure", + "members":{ + "GroupName":{ + "shape":"String", + "locationName":"groupName" + }, + "GroupId":{ + "shape":"String", + "locationName":"groupId" + } + } + }, + "GroupIdentifierList":{ + "type":"list", + "member":{ + "shape":"GroupIdentifier", + "locationName":"item" + } + }, + "GroupIds":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"item" + } + }, + "GroupNameStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"GroupName" + } + }, + "HistoryRecord":{ + "type":"structure", + "required":[ + "Timestamp", + "EventType", + "EventInformation" + ], + "members":{ + "Timestamp":{ + "shape":"DateTime", + "locationName":"timestamp" + }, + "EventType":{ + "shape":"EventType", + "locationName":"eventType" + }, + "EventInformation":{ + "shape":"EventInformation", + "locationName":"eventInformation" + } + } + }, + "HistoryRecords":{ + "type":"list", + "member":{ + "shape":"HistoryRecord", + "locationName":"item" + } + }, + "Host":{ + "type":"structure", + "members":{ + "HostId":{ + "shape":"String", + "locationName":"hostId" + }, + "AutoPlacement":{ + "shape":"AutoPlacement", + "locationName":"autoPlacement" + }, + "HostReservationId":{ + "shape":"String", + "locationName":"hostReservationId" + }, + "ClientToken":{ + "shape":"String", + "locationName":"clientToken" + }, + "HostProperties":{ + "shape":"HostProperties", + "locationName":"hostProperties" + }, + "State":{ + "shape":"AllocationState", + "locationName":"state" + }, + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + }, + "Instances":{ + "shape":"HostInstanceList", + "locationName":"instances" + }, + "AvailableCapacity":{ + "shape":"AvailableCapacity", + "locationName":"availableCapacity" + } + } + }, + "HostInstance":{ + "type":"structure", + "members":{ + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "InstanceType":{ + "shape":"String", + "locationName":"instanceType" + } + } + }, + "HostInstanceList":{ + "type":"list", + "member":{ + "shape":"HostInstance", + "locationName":"item" + } + }, + "HostList":{ + "type":"list", + "member":{ + "shape":"Host", + "locationName":"item" + } + }, + "HostOffering":{ + "type":"structure", + "members":{ + "OfferingId":{ + "shape":"String", + "locationName":"offeringId" + }, + "InstanceFamily":{ + "shape":"String", + "locationName":"instanceFamily" + }, + "PaymentOption":{ + "shape":"PaymentOption", + "locationName":"paymentOption" + }, + "UpfrontPrice":{ + "shape":"String", + "locationName":"upfrontPrice" + }, + "HourlyPrice":{ + "shape":"String", + "locationName":"hourlyPrice" + }, + "CurrencyCode":{ + "shape":"CurrencyCodeValues", + "locationName":"currencyCode" + }, + "Duration":{ + "shape":"Integer", + "locationName":"duration" + } + } + }, + "HostOfferingSet":{ + "type":"list", + "member":{"shape":"HostOffering"} + }, + "HostProperties":{ + "type":"structure", + "members":{ + "Sockets":{ + "shape":"Integer", + "locationName":"sockets" + }, + "Cores":{ + "shape":"Integer", + "locationName":"cores" + }, + "TotalVCpus":{ + "shape":"Integer", + "locationName":"totalVCpus" + }, + "InstanceType":{ + "shape":"String", + "locationName":"instanceType" + } + } + }, + "HostReservation":{ + "type":"structure", + "members":{ + "HostReservationId":{ + "shape":"String", + "locationName":"hostReservationId" + }, + "HostIdSet":{ + "shape":"ResponseHostIdSet", + "locationName":"hostIdSet" + }, + "OfferingId":{ + "shape":"String", + "locationName":"offeringId" + }, + "InstanceFamily":{ + "shape":"String", + "locationName":"instanceFamily" + }, + "PaymentOption":{ + "shape":"PaymentOption", + "locationName":"paymentOption" + }, + "HourlyPrice":{ + "shape":"String", + "locationName":"hourlyPrice" + }, + "UpfrontPrice":{ + "shape":"String", + "locationName":"upfrontPrice" + }, + "CurrencyCode":{ + "shape":"CurrencyCodeValues", + "locationName":"currencyCode" + }, + "Count":{ + "shape":"Integer", + "locationName":"count" + }, + "Duration":{ + "shape":"Integer", + "locationName":"duration" + }, + "End":{ + "shape":"DateTime", + "locationName":"end" + }, + "Start":{ + "shape":"DateTime", + "locationName":"start" + }, + "State":{ + "shape":"ReservationState", + "locationName":"state" + } + } + }, + "HostReservationIdSet":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"item" + } + }, + "HostReservationSet":{ + "type":"list", + "member":{"shape":"HostReservation"} + }, + "HostTenancy":{ + "type":"string", + "enum":[ + "dedicated", + "host" + ] + }, + "HypervisorType":{ + "type":"string", + "enum":[ + "ovm", + "xen" + ] + }, + "IamInstanceProfile":{ + "type":"structure", + "members":{ + "Arn":{ + "shape":"String", + "locationName":"arn" + }, + "Id":{ + "shape":"String", + "locationName":"id" + } + } + }, + "IamInstanceProfileAssociation":{ + "type":"structure", + "members":{ + "AssociationId":{ + "shape":"String", + "locationName":"associationId" + }, + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "IamInstanceProfile":{ + "shape":"IamInstanceProfile", + "locationName":"iamInstanceProfile" + }, + "State":{ + "shape":"IamInstanceProfileAssociationState", + "locationName":"state" + }, + "Timestamp":{ + "shape":"DateTime", + "locationName":"timestamp" + } + } + }, + "IamInstanceProfileAssociationSet":{ + "type":"list", + "member":{ + "shape":"IamInstanceProfileAssociation", + "locationName":"item" + } + }, + "IamInstanceProfileAssociationState":{ + "type":"string", + "enum":[ + "associating", + "associated", + "disassociating", + "disassociated" + ] + }, + "IamInstanceProfileSpecification":{ + "type":"structure", + "members":{ + "Arn":{ + "shape":"String", + "locationName":"arn" + }, + "Name":{ + "shape":"String", + "locationName":"name" + } + } + }, + "IcmpTypeCode":{ + "type":"structure", + "members":{ + "Type":{ + "shape":"Integer", + "locationName":"type" + }, + "Code":{ + "shape":"Integer", + "locationName":"code" + } + } + }, + "IdFormat":{ + "type":"structure", + "members":{ + "Resource":{ + "shape":"String", + "locationName":"resource" + }, + "UseLongIds":{ + "shape":"Boolean", + "locationName":"useLongIds" + }, + "Deadline":{ + "shape":"DateTime", + "locationName":"deadline" + } + } + }, + "IdFormatList":{ + "type":"list", + "member":{ + "shape":"IdFormat", + "locationName":"item" + } + }, + "Image":{ + "type":"structure", + "members":{ + "ImageId":{ + "shape":"String", + "locationName":"imageId" + }, + "ImageLocation":{ + "shape":"String", + "locationName":"imageLocation" + }, + "State":{ + "shape":"ImageState", + "locationName":"imageState" + }, + "OwnerId":{ + "shape":"String", + "locationName":"imageOwnerId" + }, + "CreationDate":{ + "shape":"String", + "locationName":"creationDate" + }, + "Public":{ + "shape":"Boolean", + "locationName":"isPublic" + }, + "ProductCodes":{ + "shape":"ProductCodeList", + "locationName":"productCodes" + }, + "Architecture":{ + "shape":"ArchitectureValues", + "locationName":"architecture" + }, + "ImageType":{ + "shape":"ImageTypeValues", + "locationName":"imageType" + }, + "KernelId":{ + "shape":"String", + "locationName":"kernelId" + }, + "RamdiskId":{ + "shape":"String", + "locationName":"ramdiskId" + }, + "Platform":{ + "shape":"PlatformValues", + "locationName":"platform" + }, + "SriovNetSupport":{ + "shape":"String", + "locationName":"sriovNetSupport" + }, + "EnaSupport":{ + "shape":"Boolean", + "locationName":"enaSupport" + }, + "StateReason":{ + "shape":"StateReason", + "locationName":"stateReason" + }, + "ImageOwnerAlias":{ + "shape":"String", + "locationName":"imageOwnerAlias" + }, + "Name":{ + "shape":"String", + "locationName":"name" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "RootDeviceType":{ + "shape":"DeviceType", + "locationName":"rootDeviceType" + }, + "RootDeviceName":{ + "shape":"String", + "locationName":"rootDeviceName" + }, + "BlockDeviceMappings":{ + "shape":"BlockDeviceMappingList", + "locationName":"blockDeviceMapping" + }, + "VirtualizationType":{ + "shape":"VirtualizationType", + "locationName":"virtualizationType" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + }, + "Hypervisor":{ + "shape":"HypervisorType", + "locationName":"hypervisor" + } + } + }, + "ImageAttribute":{ + "type":"structure", + "members":{ + "ImageId":{ + "shape":"String", + "locationName":"imageId" + }, + "LaunchPermissions":{ + "shape":"LaunchPermissionList", + "locationName":"launchPermission" + }, + "ProductCodes":{ + "shape":"ProductCodeList", + "locationName":"productCodes" + }, + "KernelId":{ + "shape":"AttributeValue", + "locationName":"kernel" + }, + "RamdiskId":{ + "shape":"AttributeValue", + "locationName":"ramdisk" + }, + "Description":{ + "shape":"AttributeValue", + "locationName":"description" + }, + "SriovNetSupport":{ + "shape":"AttributeValue", + "locationName":"sriovNetSupport" + }, + "BlockDeviceMappings":{ + "shape":"BlockDeviceMappingList", + "locationName":"blockDeviceMapping" + } + } + }, + "ImageAttributeName":{ + "type":"string", + "enum":[ + "description", + "kernel", + "ramdisk", + "launchPermission", + "productCodes", + "blockDeviceMapping", + "sriovNetSupport" + ] + }, + "ImageDiskContainer":{ + "type":"structure", + "members":{ + "Description":{"shape":"String"}, + "Format":{"shape":"String"}, + "Url":{"shape":"String"}, + "UserBucket":{"shape":"UserBucket"}, + "DeviceName":{"shape":"String"}, + "SnapshotId":{"shape":"String"} + } + }, + "ImageDiskContainerList":{ + "type":"list", + "member":{ + "shape":"ImageDiskContainer", + "locationName":"item" + } + }, + "ImageIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"ImageId" + } + }, + "ImageList":{ + "type":"list", + "member":{ + "shape":"Image", + "locationName":"item" + } + }, + "ImageState":{ + "type":"string", + "enum":[ + "pending", + "available", + "invalid", + "deregistered", + "transient", + "failed", + "error" + ] + }, + "ImageTypeValues":{ + "type":"string", + "enum":[ + "machine", + "kernel", + "ramdisk" + ] + }, + "ImportImageRequest":{ + "type":"structure", + "members":{ + "DryRun":{"shape":"Boolean"}, + "Description":{"shape":"String"}, + "DiskContainers":{ + "shape":"ImageDiskContainerList", + "locationName":"DiskContainer" + }, + "LicenseType":{"shape":"String"}, + "Hypervisor":{"shape":"String"}, + "Architecture":{"shape":"String"}, + "Platform":{"shape":"String"}, + "ClientData":{"shape":"ClientData"}, + "ClientToken":{"shape":"String"}, + "RoleName":{"shape":"String"} + } + }, + "ImportImageResult":{ + "type":"structure", + "members":{ + "ImportTaskId":{ + "shape":"String", + "locationName":"importTaskId" + }, + "Architecture":{ + "shape":"String", + "locationName":"architecture" + }, + "LicenseType":{ + "shape":"String", + "locationName":"licenseType" + }, + "Platform":{ + "shape":"String", + "locationName":"platform" + }, + "Hypervisor":{ + "shape":"String", + "locationName":"hypervisor" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "SnapshotDetails":{ + "shape":"SnapshotDetailList", + "locationName":"snapshotDetailSet" + }, + "ImageId":{ + "shape":"String", + "locationName":"imageId" + }, + "Progress":{ + "shape":"String", + "locationName":"progress" + }, + "StatusMessage":{ + "shape":"String", + "locationName":"statusMessage" + }, + "Status":{ + "shape":"String", + "locationName":"status" + } + } + }, + "ImportImageTask":{ + "type":"structure", + "members":{ + "ImportTaskId":{ + "shape":"String", + "locationName":"importTaskId" + }, + "Architecture":{ + "shape":"String", + "locationName":"architecture" + }, + "LicenseType":{ + "shape":"String", + "locationName":"licenseType" + }, + "Platform":{ + "shape":"String", + "locationName":"platform" + }, + "Hypervisor":{ + "shape":"String", + "locationName":"hypervisor" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "SnapshotDetails":{ + "shape":"SnapshotDetailList", + "locationName":"snapshotDetailSet" + }, + "ImageId":{ + "shape":"String", + "locationName":"imageId" + }, + "Progress":{ + "shape":"String", + "locationName":"progress" + }, + "StatusMessage":{ + "shape":"String", + "locationName":"statusMessage" + }, + "Status":{ + "shape":"String", + "locationName":"status" + } + } + }, + "ImportImageTaskList":{ + "type":"list", + "member":{ + "shape":"ImportImageTask", + "locationName":"item" + } + }, + "ImportInstanceLaunchSpecification":{ + "type":"structure", + "members":{ + "Architecture":{ + "shape":"ArchitectureValues", + "locationName":"architecture" + }, + "GroupNames":{ + "shape":"SecurityGroupStringList", + "locationName":"GroupName" + }, + "GroupIds":{ + "shape":"SecurityGroupIdStringList", + "locationName":"GroupId" + }, + "AdditionalInfo":{ + "shape":"String", + "locationName":"additionalInfo" + }, + "UserData":{ + "shape":"UserData", + "locationName":"userData" + }, + "InstanceType":{ + "shape":"InstanceType", + "locationName":"instanceType" + }, + "Placement":{ + "shape":"Placement", + "locationName":"placement" + }, + "Monitoring":{ + "shape":"Boolean", + "locationName":"monitoring" + }, + "SubnetId":{ + "shape":"String", + "locationName":"subnetId" + }, + "InstanceInitiatedShutdownBehavior":{ + "shape":"ShutdownBehavior", + "locationName":"instanceInitiatedShutdownBehavior" + }, + "PrivateIpAddress":{ + "shape":"String", + "locationName":"privateIpAddress" + } + } + }, + "ImportInstanceRequest":{ + "type":"structure", + "required":["Platform"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "LaunchSpecification":{ + "shape":"ImportInstanceLaunchSpecification", + "locationName":"launchSpecification" + }, + "DiskImages":{ + "shape":"DiskImageList", + "locationName":"diskImage" + }, + "Platform":{ + "shape":"PlatformValues", + "locationName":"platform" + } + } + }, + "ImportInstanceResult":{ + "type":"structure", + "members":{ + "ConversionTask":{ + "shape":"ConversionTask", + "locationName":"conversionTask" + } + } + }, + "ImportInstanceTaskDetails":{ + "type":"structure", + "required":["Volumes"], + "members":{ + "Volumes":{ + "shape":"ImportInstanceVolumeDetailSet", + "locationName":"volumes" + }, + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "Platform":{ + "shape":"PlatformValues", + "locationName":"platform" + }, + "Description":{ + "shape":"String", + "locationName":"description" + } + } + }, + "ImportInstanceVolumeDetailItem":{ + "type":"structure", + "required":[ + "BytesConverted", + "AvailabilityZone", + "Image", + "Volume", + "Status" + ], + "members":{ + "BytesConverted":{ + "shape":"Long", + "locationName":"bytesConverted" + }, + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + }, + "Image":{ + "shape":"DiskImageDescription", + "locationName":"image" + }, + "Volume":{ + "shape":"DiskImageVolumeDescription", + "locationName":"volume" + }, + "Status":{ + "shape":"String", + "locationName":"status" + }, + "StatusMessage":{ + "shape":"String", + "locationName":"statusMessage" + }, + "Description":{ + "shape":"String", + "locationName":"description" + } + } + }, + "ImportInstanceVolumeDetailSet":{ + "type":"list", + "member":{ + "shape":"ImportInstanceVolumeDetailItem", + "locationName":"item" + } + }, + "ImportKeyPairRequest":{ + "type":"structure", + "required":[ + "KeyName", + "PublicKeyMaterial" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "KeyName":{ + "shape":"String", + "locationName":"keyName" + }, + "PublicKeyMaterial":{ + "shape":"Blob", + "locationName":"publicKeyMaterial" + } + } + }, + "ImportKeyPairResult":{ + "type":"structure", + "members":{ + "KeyName":{ + "shape":"String", + "locationName":"keyName" + }, + "KeyFingerprint":{ + "shape":"String", + "locationName":"keyFingerprint" + } + } + }, + "ImportSnapshotRequest":{ + "type":"structure", + "members":{ + "DryRun":{"shape":"Boolean"}, + "Description":{"shape":"String"}, + "DiskContainer":{"shape":"SnapshotDiskContainer"}, + "ClientData":{"shape":"ClientData"}, + "ClientToken":{"shape":"String"}, + "RoleName":{"shape":"String"} + } + }, + "ImportSnapshotResult":{ + "type":"structure", + "members":{ + "ImportTaskId":{ + "shape":"String", + "locationName":"importTaskId" + }, + "SnapshotTaskDetail":{ + "shape":"SnapshotTaskDetail", + "locationName":"snapshotTaskDetail" + }, + "Description":{ + "shape":"String", + "locationName":"description" + } + } + }, + "ImportSnapshotTask":{ + "type":"structure", + "members":{ + "ImportTaskId":{ + "shape":"String", + "locationName":"importTaskId" + }, + "SnapshotTaskDetail":{ + "shape":"SnapshotTaskDetail", + "locationName":"snapshotTaskDetail" + }, + "Description":{ + "shape":"String", + "locationName":"description" + } + } + }, + "ImportSnapshotTaskList":{ + "type":"list", + "member":{ + "shape":"ImportSnapshotTask", + "locationName":"item" + } + }, + "ImportTaskIdList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"ImportTaskId" + } + }, + "ImportVolumeRequest":{ + "type":"structure", + "required":[ + "AvailabilityZone", + "Image", + "Volume" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + }, + "Image":{ + "shape":"DiskImageDetail", + "locationName":"image" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "Volume":{ + "shape":"VolumeDetail", + "locationName":"volume" + } + } + }, + "ImportVolumeResult":{ + "type":"structure", + "members":{ + "ConversionTask":{ + "shape":"ConversionTask", + "locationName":"conversionTask" + } + } + }, + "ImportVolumeTaskDetails":{ + "type":"structure", + "required":[ + "BytesConverted", + "AvailabilityZone", + "Image", + "Volume" + ], + "members":{ + "BytesConverted":{ + "shape":"Long", + "locationName":"bytesConverted" + }, + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "Image":{ + "shape":"DiskImageDescription", + "locationName":"image" + }, + "Volume":{ + "shape":"DiskImageVolumeDescription", + "locationName":"volume" + } + } + }, + "Instance":{ + "type":"structure", + "members":{ + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "ImageId":{ + "shape":"String", + "locationName":"imageId" + }, + "State":{ + "shape":"InstanceState", + "locationName":"instanceState" + }, + "PrivateDnsName":{ + "shape":"String", + "locationName":"privateDnsName" + }, + "PublicDnsName":{ + "shape":"String", + "locationName":"dnsName" + }, + "StateTransitionReason":{ + "shape":"String", + "locationName":"reason" + }, + "KeyName":{ + "shape":"String", + "locationName":"keyName" + }, + "AmiLaunchIndex":{ + "shape":"Integer", + "locationName":"amiLaunchIndex" + }, + "ProductCodes":{ + "shape":"ProductCodeList", + "locationName":"productCodes" + }, + "InstanceType":{ + "shape":"InstanceType", + "locationName":"instanceType" + }, + "LaunchTime":{ + "shape":"DateTime", + "locationName":"launchTime" + }, + "Placement":{ + "shape":"Placement", + "locationName":"placement" + }, + "KernelId":{ + "shape":"String", + "locationName":"kernelId" + }, + "RamdiskId":{ + "shape":"String", + "locationName":"ramdiskId" + }, + "Platform":{ + "shape":"PlatformValues", + "locationName":"platform" + }, + "Monitoring":{ + "shape":"Monitoring", + "locationName":"monitoring" + }, + "SubnetId":{ + "shape":"String", + "locationName":"subnetId" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "PrivateIpAddress":{ + "shape":"String", + "locationName":"privateIpAddress" + }, + "PublicIpAddress":{ + "shape":"String", + "locationName":"ipAddress" + }, + "StateReason":{ + "shape":"StateReason", + "locationName":"stateReason" + }, + "Architecture":{ + "shape":"ArchitectureValues", + "locationName":"architecture" + }, + "RootDeviceType":{ + "shape":"DeviceType", + "locationName":"rootDeviceType" + }, + "RootDeviceName":{ + "shape":"String", + "locationName":"rootDeviceName" + }, + "BlockDeviceMappings":{ + "shape":"InstanceBlockDeviceMappingList", + "locationName":"blockDeviceMapping" + }, + "VirtualizationType":{ + "shape":"VirtualizationType", + "locationName":"virtualizationType" + }, + "InstanceLifecycle":{ + "shape":"InstanceLifecycleType", + "locationName":"instanceLifecycle" + }, + "SpotInstanceRequestId":{ + "shape":"String", + "locationName":"spotInstanceRequestId" + }, + "ClientToken":{ + "shape":"String", + "locationName":"clientToken" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + }, + "SecurityGroups":{ + "shape":"GroupIdentifierList", + "locationName":"groupSet" + }, + "SourceDestCheck":{ + "shape":"Boolean", + "locationName":"sourceDestCheck" + }, + "Hypervisor":{ + "shape":"HypervisorType", + "locationName":"hypervisor" + }, + "NetworkInterfaces":{ + "shape":"InstanceNetworkInterfaceList", + "locationName":"networkInterfaceSet" + }, + "IamInstanceProfile":{ + "shape":"IamInstanceProfile", + "locationName":"iamInstanceProfile" + }, + "EbsOptimized":{ + "shape":"Boolean", + "locationName":"ebsOptimized" + }, + "SriovNetSupport":{ + "shape":"String", + "locationName":"sriovNetSupport" + }, + "EnaSupport":{ + "shape":"Boolean", + "locationName":"enaSupport" + } + } + }, + "InstanceAttribute":{ + "type":"structure", + "members":{ + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "InstanceType":{ + "shape":"AttributeValue", + "locationName":"instanceType" + }, + "KernelId":{ + "shape":"AttributeValue", + "locationName":"kernel" + }, + "RamdiskId":{ + "shape":"AttributeValue", + "locationName":"ramdisk" + }, + "UserData":{ + "shape":"AttributeValue", + "locationName":"userData" + }, + "DisableApiTermination":{ + "shape":"AttributeBooleanValue", + "locationName":"disableApiTermination" + }, + "InstanceInitiatedShutdownBehavior":{ + "shape":"AttributeValue", + "locationName":"instanceInitiatedShutdownBehavior" + }, + "RootDeviceName":{ + "shape":"AttributeValue", + "locationName":"rootDeviceName" + }, + "BlockDeviceMappings":{ + "shape":"InstanceBlockDeviceMappingList", + "locationName":"blockDeviceMapping" + }, + "ProductCodes":{ + "shape":"ProductCodeList", + "locationName":"productCodes" + }, + "EbsOptimized":{ + "shape":"AttributeBooleanValue", + "locationName":"ebsOptimized" + }, + "SriovNetSupport":{ + "shape":"AttributeValue", + "locationName":"sriovNetSupport" + }, + "EnaSupport":{ + "shape":"AttributeBooleanValue", + "locationName":"enaSupport" + }, + "SourceDestCheck":{ + "shape":"AttributeBooleanValue", + "locationName":"sourceDestCheck" + }, + "Groups":{ + "shape":"GroupIdentifierList", + "locationName":"groupSet" + } + } + }, + "InstanceAttributeName":{ + "type":"string", + "enum":[ + "instanceType", + "kernel", + "ramdisk", + "userData", + "disableApiTermination", + "instanceInitiatedShutdownBehavior", + "rootDeviceName", + "blockDeviceMapping", + "productCodes", + "sourceDestCheck", + "groupSet", + "ebsOptimized", + "sriovNetSupport", + "enaSupport" + ] + }, + "InstanceBlockDeviceMapping":{ + "type":"structure", + "members":{ + "DeviceName":{ + "shape":"String", + "locationName":"deviceName" + }, + "Ebs":{ + "shape":"EbsInstanceBlockDevice", + "locationName":"ebs" + } + } + }, + "InstanceBlockDeviceMappingList":{ + "type":"list", + "member":{ + "shape":"InstanceBlockDeviceMapping", + "locationName":"item" + } + }, + "InstanceBlockDeviceMappingSpecification":{ + "type":"structure", + "members":{ + "DeviceName":{ + "shape":"String", + "locationName":"deviceName" + }, + "Ebs":{ + "shape":"EbsInstanceBlockDeviceSpecification", + "locationName":"ebs" + }, + "VirtualName":{ + "shape":"String", + "locationName":"virtualName" + }, + "NoDevice":{ + "shape":"String", + "locationName":"noDevice" + } + } + }, + "InstanceBlockDeviceMappingSpecificationList":{ + "type":"list", + "member":{ + "shape":"InstanceBlockDeviceMappingSpecification", + "locationName":"item" + } + }, + "InstanceCapacity":{ + "type":"structure", + "members":{ + "InstanceType":{ + "shape":"String", + "locationName":"instanceType" + }, + "AvailableCapacity":{ + "shape":"Integer", + "locationName":"availableCapacity" + }, + "TotalCapacity":{ + "shape":"Integer", + "locationName":"totalCapacity" + } + } + }, + "InstanceCount":{ + "type":"structure", + "members":{ + "State":{ + "shape":"ListingState", + "locationName":"state" + }, + "InstanceCount":{ + "shape":"Integer", + "locationName":"instanceCount" + } + } + }, + "InstanceCountList":{ + "type":"list", + "member":{ + "shape":"InstanceCount", + "locationName":"item" + } + }, + "InstanceExportDetails":{ + "type":"structure", + "members":{ + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "TargetEnvironment":{ + "shape":"ExportEnvironment", + "locationName":"targetEnvironment" + } + } + }, + "InstanceHealthStatus":{ + "type":"string", + "enum":[ + "healthy", + "unhealthy" + ] + }, + "InstanceIdSet":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"item" + } + }, + "InstanceIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"InstanceId" + } + }, + "InstanceIpv6Address":{ + "type":"structure", + "members":{ + "Ipv6Address":{ + "shape":"String", + "locationName":"ipv6Address" + } + } + }, + "InstanceIpv6AddressList":{ + "type":"list", + "member":{ + "shape":"InstanceIpv6Address", + "locationName":"item" + } + }, + "InstanceLifecycleType":{ + "type":"string", + "enum":[ + "spot", + "scheduled" + ] + }, + "InstanceList":{ + "type":"list", + "member":{ + "shape":"Instance", + "locationName":"item" + } + }, + "InstanceMonitoring":{ + "type":"structure", + "members":{ + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "Monitoring":{ + "shape":"Monitoring", + "locationName":"monitoring" + } + } + }, + "InstanceMonitoringList":{ + "type":"list", + "member":{ + "shape":"InstanceMonitoring", + "locationName":"item" + } + }, + "InstanceNetworkInterface":{ + "type":"structure", + "members":{ + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + }, + "SubnetId":{ + "shape":"String", + "locationName":"subnetId" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "OwnerId":{ + "shape":"String", + "locationName":"ownerId" + }, + "Status":{ + "shape":"NetworkInterfaceStatus", + "locationName":"status" + }, + "MacAddress":{ + "shape":"String", + "locationName":"macAddress" + }, + "PrivateIpAddress":{ + "shape":"String", + "locationName":"privateIpAddress" + }, + "PrivateDnsName":{ + "shape":"String", + "locationName":"privateDnsName" + }, + "SourceDestCheck":{ + "shape":"Boolean", + "locationName":"sourceDestCheck" + }, + "Groups":{ + "shape":"GroupIdentifierList", + "locationName":"groupSet" + }, + "Attachment":{ + "shape":"InstanceNetworkInterfaceAttachment", + "locationName":"attachment" + }, + "Association":{ + "shape":"InstanceNetworkInterfaceAssociation", + "locationName":"association" + }, + "PrivateIpAddresses":{ + "shape":"InstancePrivateIpAddressList", + "locationName":"privateIpAddressesSet" + }, + "Ipv6Addresses":{ + "shape":"InstanceIpv6AddressList", + "locationName":"ipv6AddressesSet" + } + } + }, + "InstanceNetworkInterfaceAssociation":{ + "type":"structure", + "members":{ + "PublicIp":{ + "shape":"String", + "locationName":"publicIp" + }, + "PublicDnsName":{ + "shape":"String", + "locationName":"publicDnsName" + }, + "IpOwnerId":{ + "shape":"String", + "locationName":"ipOwnerId" + } + } + }, + "InstanceNetworkInterfaceAttachment":{ + "type":"structure", + "members":{ + "AttachmentId":{ + "shape":"String", + "locationName":"attachmentId" + }, + "DeviceIndex":{ + "shape":"Integer", + "locationName":"deviceIndex" + }, + "Status":{ + "shape":"AttachmentStatus", + "locationName":"status" + }, + "AttachTime":{ + "shape":"DateTime", + "locationName":"attachTime" + }, + "DeleteOnTermination":{ + "shape":"Boolean", + "locationName":"deleteOnTermination" + } + } + }, + "InstanceNetworkInterfaceList":{ + "type":"list", + "member":{ + "shape":"InstanceNetworkInterface", + "locationName":"item" + } + }, + "InstanceNetworkInterfaceSpecification":{ + "type":"structure", + "members":{ + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + }, + "DeviceIndex":{ + "shape":"Integer", + "locationName":"deviceIndex" + }, + "SubnetId":{ + "shape":"String", + "locationName":"subnetId" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "PrivateIpAddress":{ + "shape":"String", + "locationName":"privateIpAddress" + }, + "Groups":{ + "shape":"SecurityGroupIdStringList", + "locationName":"SecurityGroupId" + }, + "DeleteOnTermination":{ + "shape":"Boolean", + "locationName":"deleteOnTermination" + }, + "PrivateIpAddresses":{ + "shape":"PrivateIpAddressSpecificationList", + "locationName":"privateIpAddressesSet", + "queryName":"PrivateIpAddresses" + }, + "SecondaryPrivateIpAddressCount":{ + "shape":"Integer", + "locationName":"secondaryPrivateIpAddressCount" + }, + "AssociatePublicIpAddress":{ + "shape":"Boolean", + "locationName":"associatePublicIpAddress" + }, + "Ipv6Addresses":{ + "shape":"InstanceIpv6AddressList", + "locationName":"ipv6AddressesSet", + "queryName":"Ipv6Addresses" + }, + "Ipv6AddressCount":{ + "shape":"Integer", + "locationName":"ipv6AddressCount" + } + } + }, + "InstanceNetworkInterfaceSpecificationList":{ + "type":"list", + "member":{ + "shape":"InstanceNetworkInterfaceSpecification", + "locationName":"item" + } + }, + "InstancePrivateIpAddress":{ + "type":"structure", + "members":{ + "PrivateIpAddress":{ + "shape":"String", + "locationName":"privateIpAddress" + }, + "PrivateDnsName":{ + "shape":"String", + "locationName":"privateDnsName" + }, + "Primary":{ + "shape":"Boolean", + "locationName":"primary" + }, + "Association":{ + "shape":"InstanceNetworkInterfaceAssociation", + "locationName":"association" + } + } + }, + "InstancePrivateIpAddressList":{ + "type":"list", + "member":{ + "shape":"InstancePrivateIpAddress", + "locationName":"item" + } + }, + "InstanceState":{ + "type":"structure", + "members":{ + "Code":{ + "shape":"Integer", + "locationName":"code" + }, + "Name":{ + "shape":"InstanceStateName", + "locationName":"name" + } + } + }, + "InstanceStateChange":{ + "type":"structure", + "members":{ + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "CurrentState":{ + "shape":"InstanceState", + "locationName":"currentState" + }, + "PreviousState":{ + "shape":"InstanceState", + "locationName":"previousState" + } + } + }, + "InstanceStateChangeList":{ + "type":"list", + "member":{ + "shape":"InstanceStateChange", + "locationName":"item" + } + }, + "InstanceStateName":{ + "type":"string", + "enum":[ + "pending", + "running", + "shutting-down", + "terminated", + "stopping", + "stopped" + ] + }, + "InstanceStatus":{ + "type":"structure", + "members":{ + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + }, + "Events":{ + "shape":"InstanceStatusEventList", + "locationName":"eventsSet" + }, + "InstanceState":{ + "shape":"InstanceState", + "locationName":"instanceState" + }, + "SystemStatus":{ + "shape":"InstanceStatusSummary", + "locationName":"systemStatus" + }, + "InstanceStatus":{ + "shape":"InstanceStatusSummary", + "locationName":"instanceStatus" + } + } + }, + "InstanceStatusDetails":{ + "type":"structure", + "members":{ + "Name":{ + "shape":"StatusName", + "locationName":"name" + }, + "Status":{ + "shape":"StatusType", + "locationName":"status" + }, + "ImpairedSince":{ + "shape":"DateTime", + "locationName":"impairedSince" + } + } + }, + "InstanceStatusDetailsList":{ + "type":"list", + "member":{ + "shape":"InstanceStatusDetails", + "locationName":"item" + } + }, + "InstanceStatusEvent":{ + "type":"structure", + "members":{ + "Code":{ + "shape":"EventCode", + "locationName":"code" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "NotBefore":{ + "shape":"DateTime", + "locationName":"notBefore" + }, + "NotAfter":{ + "shape":"DateTime", + "locationName":"notAfter" + } + } + }, + "InstanceStatusEventList":{ + "type":"list", + "member":{ + "shape":"InstanceStatusEvent", + "locationName":"item" + } + }, + "InstanceStatusList":{ + "type":"list", + "member":{ + "shape":"InstanceStatus", + "locationName":"item" + } + }, + "InstanceStatusSummary":{ + "type":"structure", + "members":{ + "Status":{ + "shape":"SummaryStatus", + "locationName":"status" + }, + "Details":{ + "shape":"InstanceStatusDetailsList", + "locationName":"details" + } + } + }, + "InstanceType":{ + "type":"string", + "enum":[ + "t1.micro", + "t2.nano", + "t2.micro", + "t2.small", + "t2.medium", + "t2.large", + "t2.xlarge", + "t2.2xlarge", + "m1.small", + "m1.medium", + "m1.large", + "m1.xlarge", + "m3.medium", + "m3.large", + "m3.xlarge", + "m3.2xlarge", + "m4.large", + "m4.xlarge", + "m4.2xlarge", + "m4.4xlarge", + "m4.10xlarge", + "m4.16xlarge", + "m2.xlarge", + "m2.2xlarge", + "m2.4xlarge", + "cr1.8xlarge", + "r3.large", + "r3.xlarge", + "r3.2xlarge", + "r3.4xlarge", + "r3.8xlarge", + "r4.large", + "r4.xlarge", + "r4.2xlarge", + "r4.4xlarge", + "r4.8xlarge", + "r4.16xlarge", + "x1.16xlarge", + "x1.32xlarge", + "i2.xlarge", + "i2.2xlarge", + "i2.4xlarge", + "i2.8xlarge", + "i3.large", + "i3.xlarge", + "i3.2xlarge", + "i3.4xlarge", + "i3.8xlarge", + "i3.16xlarge", + "hi1.4xlarge", + "hs1.8xlarge", + "c1.medium", + "c1.xlarge", + "c3.large", + "c3.xlarge", + "c3.2xlarge", + "c3.4xlarge", + "c3.8xlarge", + "c4.large", + "c4.xlarge", + "c4.2xlarge", + "c4.4xlarge", + "c4.8xlarge", + "cc1.4xlarge", + "cc2.8xlarge", + "g2.2xlarge", + "g2.8xlarge", + "cg1.4xlarge", + "p2.xlarge", + "p2.8xlarge", + "p2.16xlarge", + "d2.xlarge", + "d2.2xlarge", + "d2.4xlarge", + "d2.8xlarge", + "f1.2xlarge", + "f1.16xlarge" + ] + }, + "InstanceTypeList":{ + "type":"list", + "member":{"shape":"InstanceType"} + }, + "Integer":{"type":"integer"}, + "InternetGateway":{ + "type":"structure", + "members":{ + "InternetGatewayId":{ + "shape":"String", + "locationName":"internetGatewayId" + }, + "Attachments":{ + "shape":"InternetGatewayAttachmentList", + "locationName":"attachmentSet" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + } + } + }, + "InternetGatewayAttachment":{ + "type":"structure", + "members":{ + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "State":{ + "shape":"AttachmentStatus", + "locationName":"state" + } + } + }, + "InternetGatewayAttachmentList":{ + "type":"list", + "member":{ + "shape":"InternetGatewayAttachment", + "locationName":"item" + } + }, + "InternetGatewayList":{ + "type":"list", + "member":{ + "shape":"InternetGateway", + "locationName":"item" + } + }, + "IpPermission":{ + "type":"structure", + "members":{ + "IpProtocol":{ + "shape":"String", + "locationName":"ipProtocol" + }, + "FromPort":{ + "shape":"Integer", + "locationName":"fromPort" + }, + "ToPort":{ + "shape":"Integer", + "locationName":"toPort" + }, + "UserIdGroupPairs":{ + "shape":"UserIdGroupPairList", + "locationName":"groups" + }, + "IpRanges":{ + "shape":"IpRangeList", + "locationName":"ipRanges" + }, + "Ipv6Ranges":{ + "shape":"Ipv6RangeList", + "locationName":"ipv6Ranges" + }, + "PrefixListIds":{ + "shape":"PrefixListIdList", + "locationName":"prefixListIds" + } + } + }, + "IpPermissionList":{ + "type":"list", + "member":{ + "shape":"IpPermission", + "locationName":"item" + } + }, + "IpRange":{ + "type":"structure", + "members":{ + "CidrIp":{ + "shape":"String", + "locationName":"cidrIp" + } + } + }, + "IpRangeList":{ + "type":"list", + "member":{ + "shape":"IpRange", + "locationName":"item" + } + }, + "IpRanges":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"item" + } + }, + "Ipv6Address":{"type":"string"}, + "Ipv6AddressList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"item" + } + }, + "Ipv6CidrBlock":{ + "type":"structure", + "members":{ + "Ipv6CidrBlock":{ + "shape":"String", + "locationName":"ipv6CidrBlock" + } + } + }, + "Ipv6CidrBlockSet":{ + "type":"list", + "member":{ + "shape":"Ipv6CidrBlock", + "locationName":"item" + } + }, + "Ipv6Range":{ + "type":"structure", + "members":{ + "CidrIpv6":{ + "shape":"String", + "locationName":"cidrIpv6" + } + } + }, + "Ipv6RangeList":{ + "type":"list", + "member":{ + "shape":"Ipv6Range", + "locationName":"item" + } + }, + "KeyNameStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"KeyName" + } + }, + "KeyPair":{ + "type":"structure", + "members":{ + "KeyName":{ + "shape":"String", + "locationName":"keyName" + }, + "KeyFingerprint":{ + "shape":"String", + "locationName":"keyFingerprint" + }, + "KeyMaterial":{ + "shape":"String", + "locationName":"keyMaterial" + } + } + }, + "KeyPairInfo":{ + "type":"structure", + "members":{ + "KeyName":{ + "shape":"String", + "locationName":"keyName" + }, + "KeyFingerprint":{ + "shape":"String", + "locationName":"keyFingerprint" + } + } + }, + "KeyPairList":{ + "type":"list", + "member":{ + "shape":"KeyPairInfo", + "locationName":"item" + } + }, + "LaunchPermission":{ + "type":"structure", + "members":{ + "UserId":{ + "shape":"String", + "locationName":"userId" + }, + "Group":{ + "shape":"PermissionGroup", + "locationName":"group" + } + } + }, + "LaunchPermissionList":{ + "type":"list", + "member":{ + "shape":"LaunchPermission", + "locationName":"item" + } + }, + "LaunchPermissionModifications":{ + "type":"structure", + "members":{ + "Add":{"shape":"LaunchPermissionList"}, + "Remove":{"shape":"LaunchPermissionList"} + } + }, + "LaunchSpecification":{ + "type":"structure", + "members":{ + "ImageId":{ + "shape":"String", + "locationName":"imageId" + }, + "KeyName":{ + "shape":"String", + "locationName":"keyName" + }, + "SecurityGroups":{ + "shape":"GroupIdentifierList", + "locationName":"groupSet" + }, + "UserData":{ + "shape":"String", + "locationName":"userData" + }, + "AddressingType":{ + "shape":"String", + "locationName":"addressingType" + }, + "InstanceType":{ + "shape":"InstanceType", + "locationName":"instanceType" + }, + "Placement":{ + "shape":"SpotPlacement", + "locationName":"placement" + }, + "KernelId":{ + "shape":"String", + "locationName":"kernelId" + }, + "RamdiskId":{ + "shape":"String", + "locationName":"ramdiskId" + }, + "BlockDeviceMappings":{ + "shape":"BlockDeviceMappingList", + "locationName":"blockDeviceMapping" + }, + "SubnetId":{ + "shape":"String", + "locationName":"subnetId" + }, + "NetworkInterfaces":{ + "shape":"InstanceNetworkInterfaceSpecificationList", + "locationName":"networkInterfaceSet" + }, + "IamInstanceProfile":{ + "shape":"IamInstanceProfileSpecification", + "locationName":"iamInstanceProfile" + }, + "EbsOptimized":{ + "shape":"Boolean", + "locationName":"ebsOptimized" + }, + "Monitoring":{ + "shape":"RunInstancesMonitoringEnabled", + "locationName":"monitoring" + } + } + }, + "LaunchSpecsList":{ + "type":"list", + "member":{ + "shape":"SpotFleetLaunchSpecification", + "locationName":"item" + }, + "min":1 + }, + "ListingState":{ + "type":"string", + "enum":[ + "available", + "sold", + "cancelled", + "pending" + ] + }, + "ListingStatus":{ + "type":"string", + "enum":[ + "active", + "pending", + "cancelled", + "closed" + ] + }, + "Long":{"type":"long"}, + "MaxResults":{ + "type":"integer", + "max":255, + "min":5 + }, + "ModifyHostsRequest":{ + "type":"structure", + "required":[ + "HostIds", + "AutoPlacement" + ], + "members":{ + "HostIds":{ + "shape":"RequestHostIdList", + "locationName":"hostId" + }, + "AutoPlacement":{ + "shape":"AutoPlacement", + "locationName":"autoPlacement" + } + } + }, + "ModifyHostsResult":{ + "type":"structure", + "members":{ + "Successful":{ + "shape":"ResponseHostIdList", + "locationName":"successful" + }, + "Unsuccessful":{ + "shape":"UnsuccessfulItemList", + "locationName":"unsuccessful" + } + } + }, + "ModifyIdFormatRequest":{ + "type":"structure", + "required":[ + "Resource", + "UseLongIds" + ], + "members":{ + "Resource":{"shape":"String"}, + "UseLongIds":{"shape":"Boolean"} + } + }, + "ModifyIdentityIdFormatRequest":{ + "type":"structure", + "required":[ + "Resource", + "UseLongIds", + "PrincipalArn" + ], + "members":{ + "Resource":{ + "shape":"String", + "locationName":"resource" + }, + "UseLongIds":{ + "shape":"Boolean", + "locationName":"useLongIds" + }, + "PrincipalArn":{ + "shape":"String", + "locationName":"principalArn" + } + } + }, + "ModifyImageAttributeRequest":{ + "type":"structure", + "required":["ImageId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "ImageId":{"shape":"String"}, + "Attribute":{"shape":"String"}, + "OperationType":{"shape":"OperationType"}, + "UserIds":{ + "shape":"UserIdStringList", + "locationName":"UserId" + }, + "UserGroups":{ + "shape":"UserGroupStringList", + "locationName":"UserGroup" + }, + "ProductCodes":{ + "shape":"ProductCodeStringList", + "locationName":"ProductCode" + }, + "Value":{"shape":"String"}, + "LaunchPermission":{"shape":"LaunchPermissionModifications"}, + "Description":{"shape":"AttributeValue"} + } + }, + "ModifyInstanceAttributeRequest":{ + "type":"structure", + "required":["InstanceId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "Attribute":{ + "shape":"InstanceAttributeName", + "locationName":"attribute" + }, + "Value":{ + "shape":"String", + "locationName":"value" + }, + "BlockDeviceMappings":{ + "shape":"InstanceBlockDeviceMappingSpecificationList", + "locationName":"blockDeviceMapping" + }, + "SourceDestCheck":{"shape":"AttributeBooleanValue"}, + "DisableApiTermination":{ + "shape":"AttributeBooleanValue", + "locationName":"disableApiTermination" + }, + "InstanceType":{ + "shape":"AttributeValue", + "locationName":"instanceType" + }, + "Kernel":{ + "shape":"AttributeValue", + "locationName":"kernel" + }, + "Ramdisk":{ + "shape":"AttributeValue", + "locationName":"ramdisk" + }, + "UserData":{ + "shape":"BlobAttributeValue", + "locationName":"userData" + }, + "InstanceInitiatedShutdownBehavior":{ + "shape":"AttributeValue", + "locationName":"instanceInitiatedShutdownBehavior" + }, + "Groups":{ + "shape":"GroupIdStringList", + "locationName":"GroupId" + }, + "EbsOptimized":{ + "shape":"AttributeBooleanValue", + "locationName":"ebsOptimized" + }, + "SriovNetSupport":{ + "shape":"AttributeValue", + "locationName":"sriovNetSupport" + }, + "EnaSupport":{ + "shape":"AttributeBooleanValue", + "locationName":"enaSupport" + } + } + }, + "ModifyInstancePlacementRequest":{ + "type":"structure", + "required":["InstanceId"], + "members":{ + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "Tenancy":{ + "shape":"HostTenancy", + "locationName":"tenancy" + }, + "Affinity":{ + "shape":"Affinity", + "locationName":"affinity" + }, + "HostId":{ + "shape":"String", + "locationName":"hostId" + } + } + }, + "ModifyInstancePlacementResult":{ + "type":"structure", + "members":{ + "Return":{ + "shape":"Boolean", + "locationName":"return" + } + } + }, + "ModifyNetworkInterfaceAttributeRequest":{ + "type":"structure", + "required":["NetworkInterfaceId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + }, + "Description":{ + "shape":"AttributeValue", + "locationName":"description" + }, + "SourceDestCheck":{ + "shape":"AttributeBooleanValue", + "locationName":"sourceDestCheck" + }, + "Groups":{ + "shape":"SecurityGroupIdStringList", + "locationName":"SecurityGroupId" + }, + "Attachment":{ + "shape":"NetworkInterfaceAttachmentChanges", + "locationName":"attachment" + } + } + }, + "ModifyReservedInstancesRequest":{ + "type":"structure", + "required":[ + "ReservedInstancesIds", + "TargetConfigurations" + ], + "members":{ + "ClientToken":{ + "shape":"String", + "locationName":"clientToken" + }, + "ReservedInstancesIds":{ + "shape":"ReservedInstancesIdStringList", + "locationName":"ReservedInstancesId" + }, + "TargetConfigurations":{ + "shape":"ReservedInstancesConfigurationList", + "locationName":"ReservedInstancesConfigurationSetItemType" + } + } + }, + "ModifyReservedInstancesResult":{ + "type":"structure", + "members":{ + "ReservedInstancesModificationId":{ + "shape":"String", + "locationName":"reservedInstancesModificationId" + } + } + }, + "ModifySnapshotAttributeRequest":{ + "type":"structure", + "required":["SnapshotId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "SnapshotId":{"shape":"String"}, + "Attribute":{"shape":"SnapshotAttributeName"}, + "OperationType":{"shape":"OperationType"}, + "UserIds":{ + "shape":"UserIdStringList", + "locationName":"UserId" + }, + "GroupNames":{ + "shape":"GroupNameStringList", + "locationName":"UserGroup" + }, + "CreateVolumePermission":{"shape":"CreateVolumePermissionModifications"} + } + }, + "ModifySpotFleetRequestRequest":{ + "type":"structure", + "required":["SpotFleetRequestId"], + "members":{ + "SpotFleetRequestId":{ + "shape":"String", + "locationName":"spotFleetRequestId" + }, + "TargetCapacity":{ + "shape":"Integer", + "locationName":"targetCapacity" + }, + "ExcessCapacityTerminationPolicy":{ + "shape":"ExcessCapacityTerminationPolicy", + "locationName":"excessCapacityTerminationPolicy" + } + } + }, + "ModifySpotFleetRequestResponse":{ + "type":"structure", + "members":{ + "Return":{ + "shape":"Boolean", + "locationName":"return" + } + } + }, + "ModifySubnetAttributeRequest":{ + "type":"structure", + "required":["SubnetId"], + "members":{ + "SubnetId":{ + "shape":"String", + "locationName":"subnetId" + }, + "MapPublicIpOnLaunch":{"shape":"AttributeBooleanValue"}, + "AssignIpv6AddressOnCreation":{"shape":"AttributeBooleanValue"} + } + }, + "ModifyVolumeAttributeRequest":{ + "type":"structure", + "required":["VolumeId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VolumeId":{"shape":"String"}, + "AutoEnableIO":{"shape":"AttributeBooleanValue"} + } + }, + "ModifyVolumeRequest":{ + "type":"structure", + "required":["VolumeId"], + "members":{ + "DryRun":{"shape":"Boolean"}, + "VolumeId":{"shape":"String"}, + "Size":{"shape":"Integer"}, + "VolumeType":{"shape":"VolumeType"}, + "Iops":{"shape":"Integer"} + } + }, + "ModifyVolumeResult":{ + "type":"structure", + "members":{ + "VolumeModification":{ + "shape":"VolumeModification", + "locationName":"volumeModification" + } + } + }, + "ModifyVpcAttributeRequest":{ + "type":"structure", + "required":["VpcId"], + "members":{ + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "EnableDnsSupport":{"shape":"AttributeBooleanValue"}, + "EnableDnsHostnames":{"shape":"AttributeBooleanValue"} + } + }, + "ModifyVpcEndpointRequest":{ + "type":"structure", + "required":["VpcEndpointId"], + "members":{ + "DryRun":{"shape":"Boolean"}, + "VpcEndpointId":{"shape":"String"}, + "ResetPolicy":{"shape":"Boolean"}, + "PolicyDocument":{"shape":"String"}, + "AddRouteTableIds":{ + "shape":"ValueStringList", + "locationName":"AddRouteTableId" + }, + "RemoveRouteTableIds":{ + "shape":"ValueStringList", + "locationName":"RemoveRouteTableId" + } + } + }, + "ModifyVpcEndpointResult":{ + "type":"structure", + "members":{ + "Return":{ + "shape":"Boolean", + "locationName":"return" + } + } + }, + "ModifyVpcPeeringConnectionOptionsRequest":{ + "type":"structure", + "required":["VpcPeeringConnectionId"], + "members":{ + "DryRun":{"shape":"Boolean"}, + "VpcPeeringConnectionId":{"shape":"String"}, + "RequesterPeeringConnectionOptions":{"shape":"PeeringConnectionOptionsRequest"}, + "AccepterPeeringConnectionOptions":{"shape":"PeeringConnectionOptionsRequest"} + } + }, + "ModifyVpcPeeringConnectionOptionsResult":{ + "type":"structure", + "members":{ + "RequesterPeeringConnectionOptions":{ + "shape":"PeeringConnectionOptions", + "locationName":"requesterPeeringConnectionOptions" + }, + "AccepterPeeringConnectionOptions":{ + "shape":"PeeringConnectionOptions", + "locationName":"accepterPeeringConnectionOptions" + } + } + }, + "MonitorInstancesRequest":{ + "type":"structure", + "required":["InstanceIds"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InstanceIds":{ + "shape":"InstanceIdStringList", + "locationName":"InstanceId" + } + } + }, + "MonitorInstancesResult":{ + "type":"structure", + "members":{ + "InstanceMonitorings":{ + "shape":"InstanceMonitoringList", + "locationName":"instancesSet" + } + } + }, + "Monitoring":{ + "type":"structure", + "members":{ + "State":{ + "shape":"MonitoringState", + "locationName":"state" + } + } + }, + "MonitoringState":{ + "type":"string", + "enum":[ + "disabled", + "disabling", + "enabled", + "pending" + ] + }, + "MoveAddressToVpcRequest":{ + "type":"structure", + "required":["PublicIp"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "PublicIp":{ + "shape":"String", + "locationName":"publicIp" + } + } + }, + "MoveAddressToVpcResult":{ + "type":"structure", + "members":{ + "AllocationId":{ + "shape":"String", + "locationName":"allocationId" + }, + "Status":{ + "shape":"Status", + "locationName":"status" + } + } + }, + "MoveStatus":{ + "type":"string", + "enum":[ + "movingToVpc", + "restoringToClassic" + ] + }, + "MovingAddressStatus":{ + "type":"structure", + "members":{ + "PublicIp":{ + "shape":"String", + "locationName":"publicIp" + }, + "MoveStatus":{ + "shape":"MoveStatus", + "locationName":"moveStatus" + } + } + }, + "MovingAddressStatusSet":{ + "type":"list", + "member":{ + "shape":"MovingAddressStatus", + "locationName":"item" + } + }, + "NatGateway":{ + "type":"structure", + "members":{ + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "SubnetId":{ + "shape":"String", + "locationName":"subnetId" + }, + "NatGatewayId":{ + "shape":"String", + "locationName":"natGatewayId" + }, + "CreateTime":{ + "shape":"DateTime", + "locationName":"createTime" + }, + "DeleteTime":{ + "shape":"DateTime", + "locationName":"deleteTime" + }, + "NatGatewayAddresses":{ + "shape":"NatGatewayAddressList", + "locationName":"natGatewayAddressSet" + }, + "State":{ + "shape":"NatGatewayState", + "locationName":"state" + }, + "FailureCode":{ + "shape":"String", + "locationName":"failureCode" + }, + "FailureMessage":{ + "shape":"String", + "locationName":"failureMessage" + }, + "ProvisionedBandwidth":{ + "shape":"ProvisionedBandwidth", + "locationName":"provisionedBandwidth" + } + } + }, + "NatGatewayAddress":{ + "type":"structure", + "members":{ + "PublicIp":{ + "shape":"String", + "locationName":"publicIp" + }, + "AllocationId":{ + "shape":"String", + "locationName":"allocationId" + }, + "PrivateIp":{ + "shape":"String", + "locationName":"privateIp" + }, + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + } + } + }, + "NatGatewayAddressList":{ + "type":"list", + "member":{ + "shape":"NatGatewayAddress", + "locationName":"item" + } + }, + "NatGatewayList":{ + "type":"list", + "member":{ + "shape":"NatGateway", + "locationName":"item" + } + }, + "NatGatewayState":{ + "type":"string", + "enum":[ + "pending", + "failed", + "available", + "deleting", + "deleted" + ] + }, + "NetworkAcl":{ + "type":"structure", + "members":{ + "NetworkAclId":{ + "shape":"String", + "locationName":"networkAclId" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "IsDefault":{ + "shape":"Boolean", + "locationName":"default" + }, + "Entries":{ + "shape":"NetworkAclEntryList", + "locationName":"entrySet" + }, + "Associations":{ + "shape":"NetworkAclAssociationList", + "locationName":"associationSet" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + } + } + }, + "NetworkAclAssociation":{ + "type":"structure", + "members":{ + "NetworkAclAssociationId":{ + "shape":"String", + "locationName":"networkAclAssociationId" + }, + "NetworkAclId":{ + "shape":"String", + "locationName":"networkAclId" + }, + "SubnetId":{ + "shape":"String", + "locationName":"subnetId" + } + } + }, + "NetworkAclAssociationList":{ + "type":"list", + "member":{ + "shape":"NetworkAclAssociation", + "locationName":"item" + } + }, + "NetworkAclEntry":{ + "type":"structure", + "members":{ + "RuleNumber":{ + "shape":"Integer", + "locationName":"ruleNumber" + }, + "Protocol":{ + "shape":"String", + "locationName":"protocol" + }, + "RuleAction":{ + "shape":"RuleAction", + "locationName":"ruleAction" + }, + "Egress":{ + "shape":"Boolean", + "locationName":"egress" + }, + "CidrBlock":{ + "shape":"String", + "locationName":"cidrBlock" + }, + "Ipv6CidrBlock":{ + "shape":"String", + "locationName":"ipv6CidrBlock" + }, + "IcmpTypeCode":{ + "shape":"IcmpTypeCode", + "locationName":"icmpTypeCode" + }, + "PortRange":{ + "shape":"PortRange", + "locationName":"portRange" + } + } + }, + "NetworkAclEntryList":{ + "type":"list", + "member":{ + "shape":"NetworkAclEntry", + "locationName":"item" + } + }, + "NetworkAclList":{ + "type":"list", + "member":{ + "shape":"NetworkAcl", + "locationName":"item" + } + }, + "NetworkInterface":{ + "type":"structure", + "members":{ + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + }, + "SubnetId":{ + "shape":"String", + "locationName":"subnetId" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "OwnerId":{ + "shape":"String", + "locationName":"ownerId" + }, + "RequesterId":{ + "shape":"String", + "locationName":"requesterId" + }, + "RequesterManaged":{ + "shape":"Boolean", + "locationName":"requesterManaged" + }, + "Status":{ + "shape":"NetworkInterfaceStatus", + "locationName":"status" + }, + "MacAddress":{ + "shape":"String", + "locationName":"macAddress" + }, + "PrivateIpAddress":{ + "shape":"String", + "locationName":"privateIpAddress" + }, + "PrivateDnsName":{ + "shape":"String", + "locationName":"privateDnsName" + }, + "SourceDestCheck":{ + "shape":"Boolean", + "locationName":"sourceDestCheck" + }, + "Groups":{ + "shape":"GroupIdentifierList", + "locationName":"groupSet" + }, + "Attachment":{ + "shape":"NetworkInterfaceAttachment", + "locationName":"attachment" + }, + "Association":{ + "shape":"NetworkInterfaceAssociation", + "locationName":"association" + }, + "TagSet":{ + "shape":"TagList", + "locationName":"tagSet" + }, + "PrivateIpAddresses":{ + "shape":"NetworkInterfacePrivateIpAddressList", + "locationName":"privateIpAddressesSet" + }, + "Ipv6Addresses":{ + "shape":"NetworkInterfaceIpv6AddressesList", + "locationName":"ipv6AddressesSet" + }, + "InterfaceType":{ + "shape":"NetworkInterfaceType", + "locationName":"interfaceType" + } + } + }, + "NetworkInterfaceAssociation":{ + "type":"structure", + "members":{ + "PublicIp":{ + "shape":"String", + "locationName":"publicIp" + }, + "PublicDnsName":{ + "shape":"String", + "locationName":"publicDnsName" + }, + "IpOwnerId":{ + "shape":"String", + "locationName":"ipOwnerId" + }, + "AllocationId":{ + "shape":"String", + "locationName":"allocationId" + }, + "AssociationId":{ + "shape":"String", + "locationName":"associationId" + } + } + }, + "NetworkInterfaceAttachment":{ + "type":"structure", + "members":{ + "AttachmentId":{ + "shape":"String", + "locationName":"attachmentId" + }, + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "InstanceOwnerId":{ + "shape":"String", + "locationName":"instanceOwnerId" + }, + "DeviceIndex":{ + "shape":"Integer", + "locationName":"deviceIndex" + }, + "Status":{ + "shape":"AttachmentStatus", + "locationName":"status" + }, + "AttachTime":{ + "shape":"DateTime", + "locationName":"attachTime" + }, + "DeleteOnTermination":{ + "shape":"Boolean", + "locationName":"deleteOnTermination" + } + } + }, + "NetworkInterfaceAttachmentChanges":{ + "type":"structure", + "members":{ + "AttachmentId":{ + "shape":"String", + "locationName":"attachmentId" + }, + "DeleteOnTermination":{ + "shape":"Boolean", + "locationName":"deleteOnTermination" + } + } + }, + "NetworkInterfaceAttribute":{ + "type":"string", + "enum":[ + "description", + "groupSet", + "sourceDestCheck", + "attachment" + ] + }, + "NetworkInterfaceIdList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"item" + } + }, + "NetworkInterfaceIpv6Address":{ + "type":"structure", + "members":{ + "Ipv6Address":{ + "shape":"String", + "locationName":"ipv6Address" + } + } + }, + "NetworkInterfaceIpv6AddressesList":{ + "type":"list", + "member":{ + "shape":"NetworkInterfaceIpv6Address", + "locationName":"item" + } + }, + "NetworkInterfaceList":{ + "type":"list", + "member":{ + "shape":"NetworkInterface", + "locationName":"item" + } + }, + "NetworkInterfacePrivateIpAddress":{ + "type":"structure", + "members":{ + "PrivateIpAddress":{ + "shape":"String", + "locationName":"privateIpAddress" + }, + "PrivateDnsName":{ + "shape":"String", + "locationName":"privateDnsName" + }, + "Primary":{ + "shape":"Boolean", + "locationName":"primary" + }, + "Association":{ + "shape":"NetworkInterfaceAssociation", + "locationName":"association" + } + } + }, + "NetworkInterfacePrivateIpAddressList":{ + "type":"list", + "member":{ + "shape":"NetworkInterfacePrivateIpAddress", + "locationName":"item" + } + }, + "NetworkInterfaceStatus":{ + "type":"string", + "enum":[ + "available", + "attaching", + "in-use", + "detaching" + ] + }, + "NetworkInterfaceType":{ + "type":"string", + "enum":[ + "interface", + "natGateway" + ] + }, + "NewDhcpConfiguration":{ + "type":"structure", + "members":{ + "Key":{ + "shape":"String", + "locationName":"key" + }, + "Values":{ + "shape":"ValueStringList", + "locationName":"Value" + } + } + }, + "NewDhcpConfigurationList":{ + "type":"list", + "member":{ + "shape":"NewDhcpConfiguration", + "locationName":"item" + } + }, + "NextToken":{ + "type":"string", + "max":1024, + "min":1 + }, + "OccurrenceDayRequestSet":{ + "type":"list", + "member":{ + "shape":"Integer", + "locationName":"OccurenceDay" + } + }, + "OccurrenceDaySet":{ + "type":"list", + "member":{ + "shape":"Integer", + "locationName":"item" + } + }, + "OfferingClassType":{ + "type":"string", + "enum":[ + "standard", + "convertible" + ] + }, + "OfferingTypeValues":{ + "type":"string", + "enum":[ + "Heavy Utilization", + "Medium Utilization", + "Light Utilization", + "No Upfront", + "Partial Upfront", + "All Upfront" + ] + }, + "OperationType":{ + "type":"string", + "enum":[ + "add", + "remove" + ] + }, + "OwnerStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"Owner" + } + }, + "PaymentOption":{ + "type":"string", + "enum":[ + "AllUpfront", + "PartialUpfront", + "NoUpfront" + ] + }, + "PeeringConnectionOptions":{ + "type":"structure", + "members":{ + "AllowEgressFromLocalClassicLinkToRemoteVpc":{ + "shape":"Boolean", + "locationName":"allowEgressFromLocalClassicLinkToRemoteVpc" + }, + "AllowEgressFromLocalVpcToRemoteClassicLink":{ + "shape":"Boolean", + "locationName":"allowEgressFromLocalVpcToRemoteClassicLink" + }, + "AllowDnsResolutionFromRemoteVpc":{ + "shape":"Boolean", + "locationName":"allowDnsResolutionFromRemoteVpc" + } + } + }, + "PeeringConnectionOptionsRequest":{ + "type":"structure", + "members":{ + "AllowEgressFromLocalClassicLinkToRemoteVpc":{"shape":"Boolean"}, + "AllowEgressFromLocalVpcToRemoteClassicLink":{"shape":"Boolean"}, + "AllowDnsResolutionFromRemoteVpc":{"shape":"Boolean"} + } + }, + "PermissionGroup":{ + "type":"string", + "enum":["all"] + }, + "Placement":{ + "type":"structure", + "members":{ + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + }, + "GroupName":{ + "shape":"String", + "locationName":"groupName" + }, + "Tenancy":{ + "shape":"Tenancy", + "locationName":"tenancy" + }, + "HostId":{ + "shape":"String", + "locationName":"hostId" + }, + "Affinity":{ + "shape":"String", + "locationName":"affinity" + } + } + }, + "PlacementGroup":{ + "type":"structure", + "members":{ + "GroupName":{ + "shape":"String", + "locationName":"groupName" + }, + "Strategy":{ + "shape":"PlacementStrategy", + "locationName":"strategy" + }, + "State":{ + "shape":"PlacementGroupState", + "locationName":"state" + } + } + }, + "PlacementGroupList":{ + "type":"list", + "member":{ + "shape":"PlacementGroup", + "locationName":"item" + } + }, + "PlacementGroupState":{ + "type":"string", + "enum":[ + "pending", + "available", + "deleting", + "deleted" + ] + }, + "PlacementGroupStringList":{ + "type":"list", + "member":{"shape":"String"} + }, + "PlacementStrategy":{ + "type":"string", + "enum":["cluster"] + }, + "PlatformValues":{ + "type":"string", + "enum":["Windows"] + }, + "PortRange":{ + "type":"structure", + "members":{ + "From":{ + "shape":"Integer", + "locationName":"from" + }, + "To":{ + "shape":"Integer", + "locationName":"to" + } + } + }, + "PrefixList":{ + "type":"structure", + "members":{ + "PrefixListId":{ + "shape":"String", + "locationName":"prefixListId" + }, + "PrefixListName":{ + "shape":"String", + "locationName":"prefixListName" + }, + "Cidrs":{ + "shape":"ValueStringList", + "locationName":"cidrSet" + } + } + }, + "PrefixListId":{ + "type":"structure", + "members":{ + "PrefixListId":{ + "shape":"String", + "locationName":"prefixListId" + } + } + }, + "PrefixListIdList":{ + "type":"list", + "member":{ + "shape":"PrefixListId", + "locationName":"item" + } + }, + "PrefixListIdSet":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"item" + } + }, + "PrefixListSet":{ + "type":"list", + "member":{ + "shape":"PrefixList", + "locationName":"item" + } + }, + "PriceSchedule":{ + "type":"structure", + "members":{ + "Term":{ + "shape":"Long", + "locationName":"term" + }, + "Price":{ + "shape":"Double", + "locationName":"price" + }, + "CurrencyCode":{ + "shape":"CurrencyCodeValues", + "locationName":"currencyCode" + }, + "Active":{ + "shape":"Boolean", + "locationName":"active" + } + } + }, + "PriceScheduleList":{ + "type":"list", + "member":{ + "shape":"PriceSchedule", + "locationName":"item" + } + }, + "PriceScheduleSpecification":{ + "type":"structure", + "members":{ + "Term":{ + "shape":"Long", + "locationName":"term" + }, + "Price":{ + "shape":"Double", + "locationName":"price" + }, + "CurrencyCode":{ + "shape":"CurrencyCodeValues", + "locationName":"currencyCode" + } + } + }, + "PriceScheduleSpecificationList":{ + "type":"list", + "member":{ + "shape":"PriceScheduleSpecification", + "locationName":"item" + } + }, + "PricingDetail":{ + "type":"structure", + "members":{ + "Price":{ + "shape":"Double", + "locationName":"price" + }, + "Count":{ + "shape":"Integer", + "locationName":"count" + } + } + }, + "PricingDetailsList":{ + "type":"list", + "member":{ + "shape":"PricingDetail", + "locationName":"item" + } + }, + "PrivateIpAddressConfigSet":{ + "type":"list", + "member":{ + "shape":"ScheduledInstancesPrivateIpAddressConfig", + "locationName":"PrivateIpAddressConfigSet" + } + }, + "PrivateIpAddressSpecification":{ + "type":"structure", + "required":["PrivateIpAddress"], + "members":{ + "PrivateIpAddress":{ + "shape":"String", + "locationName":"privateIpAddress" + }, + "Primary":{ + "shape":"Boolean", + "locationName":"primary" + } + } + }, + "PrivateIpAddressSpecificationList":{ + "type":"list", + "member":{ + "shape":"PrivateIpAddressSpecification", + "locationName":"item" + } + }, + "PrivateIpAddressStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"PrivateIpAddress" + } + }, + "ProductCode":{ + "type":"structure", + "members":{ + "ProductCodeId":{ + "shape":"String", + "locationName":"productCode" + }, + "ProductCodeType":{ + "shape":"ProductCodeValues", + "locationName":"type" + } + } + }, + "ProductCodeList":{ + "type":"list", + "member":{ + "shape":"ProductCode", + "locationName":"item" + } + }, + "ProductCodeStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"ProductCode" + } + }, + "ProductCodeValues":{ + "type":"string", + "enum":[ + "devpay", + "marketplace" + ] + }, + "ProductDescriptionList":{ + "type":"list", + "member":{"shape":"String"} + }, + "PropagatingVgw":{ + "type":"structure", + "members":{ + "GatewayId":{ + "shape":"String", + "locationName":"gatewayId" + } + } + }, + "PropagatingVgwList":{ + "type":"list", + "member":{ + "shape":"PropagatingVgw", + "locationName":"item" + } + }, + "ProvisionedBandwidth":{ + "type":"structure", + "members":{ + "Provisioned":{ + "shape":"String", + "locationName":"provisioned" + }, + "Requested":{ + "shape":"String", + "locationName":"requested" + }, + "RequestTime":{ + "shape":"DateTime", + "locationName":"requestTime" + }, + "ProvisionTime":{ + "shape":"DateTime", + "locationName":"provisionTime" + }, + "Status":{ + "shape":"String", + "locationName":"status" + } + } + }, + "PublicIpStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"PublicIp" + } + }, + "Purchase":{ + "type":"structure", + "members":{ + "HostReservationId":{ + "shape":"String", + "locationName":"hostReservationId" + }, + "HostIdSet":{ + "shape":"ResponseHostIdSet", + "locationName":"hostIdSet" + }, + "InstanceFamily":{ + "shape":"String", + "locationName":"instanceFamily" + }, + "PaymentOption":{ + "shape":"PaymentOption", + "locationName":"paymentOption" + }, + "UpfrontPrice":{ + "shape":"String", + "locationName":"upfrontPrice" + }, + "HourlyPrice":{ + "shape":"String", + "locationName":"hourlyPrice" + }, + "CurrencyCode":{ + "shape":"CurrencyCodeValues", + "locationName":"currencyCode" + }, + "Duration":{ + "shape":"Integer", + "locationName":"duration" + } + } + }, + "PurchaseHostReservationRequest":{ + "type":"structure", + "required":[ + "OfferingId", + "HostIdSet" + ], + "members":{ + "OfferingId":{"shape":"String"}, + "HostIdSet":{"shape":"RequestHostIdSet"}, + "LimitPrice":{"shape":"String"}, + "CurrencyCode":{"shape":"CurrencyCodeValues"}, + "ClientToken":{"shape":"String"} + } + }, + "PurchaseHostReservationResult":{ + "type":"structure", + "members":{ + "Purchase":{ + "shape":"PurchaseSet", + "locationName":"purchase" + }, + "TotalUpfrontPrice":{ + "shape":"String", + "locationName":"totalUpfrontPrice" + }, + "TotalHourlyPrice":{ + "shape":"String", + "locationName":"totalHourlyPrice" + }, + "CurrencyCode":{ + "shape":"CurrencyCodeValues", + "locationName":"currencyCode" + }, + "ClientToken":{ + "shape":"String", + "locationName":"clientToken" + } + } + }, + "PurchaseRequest":{ + "type":"structure", + "required":[ + "PurchaseToken", + "InstanceCount" + ], + "members":{ + "PurchaseToken":{"shape":"String"}, + "InstanceCount":{"shape":"Integer"} + } + }, + "PurchaseRequestSet":{ + "type":"list", + "member":{ + "shape":"PurchaseRequest", + "locationName":"PurchaseRequest" + }, + "min":1 + }, + "PurchaseReservedInstancesOfferingRequest":{ + "type":"structure", + "required":[ + "ReservedInstancesOfferingId", + "InstanceCount" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "ReservedInstancesOfferingId":{"shape":"String"}, + "InstanceCount":{"shape":"Integer"}, + "LimitPrice":{ + "shape":"ReservedInstanceLimitPrice", + "locationName":"limitPrice" + } + } + }, + "PurchaseReservedInstancesOfferingResult":{ + "type":"structure", + "members":{ + "ReservedInstancesId":{ + "shape":"String", + "locationName":"reservedInstancesId" + } + } + }, + "PurchaseScheduledInstancesRequest":{ + "type":"structure", + "required":["PurchaseRequests"], + "members":{ + "DryRun":{"shape":"Boolean"}, + "ClientToken":{ + "shape":"String", + "idempotencyToken":true + }, + "PurchaseRequests":{ + "shape":"PurchaseRequestSet", + "locationName":"PurchaseRequest" + } + } + }, + "PurchaseScheduledInstancesResult":{ + "type":"structure", + "members":{ + "ScheduledInstanceSet":{ + "shape":"PurchasedScheduledInstanceSet", + "locationName":"scheduledInstanceSet" + } + } + }, + "PurchaseSet":{ + "type":"list", + "member":{"shape":"Purchase"} + }, + "PurchasedScheduledInstanceSet":{ + "type":"list", + "member":{ + "shape":"ScheduledInstance", + "locationName":"item" + } + }, + "RIProductDescription":{ + "type":"string", + "enum":[ + "Linux/UNIX", + "Linux/UNIX (Amazon VPC)", + "Windows", + "Windows (Amazon VPC)" + ] + }, + "ReasonCodesList":{ + "type":"list", + "member":{ + "shape":"ReportInstanceReasonCodes", + "locationName":"item" + } + }, + "RebootInstancesRequest":{ + "type":"structure", + "required":["InstanceIds"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InstanceIds":{ + "shape":"InstanceIdStringList", + "locationName":"InstanceId" + } + } + }, + "RecurringCharge":{ + "type":"structure", + "members":{ + "Frequency":{ + "shape":"RecurringChargeFrequency", + "locationName":"frequency" + }, + "Amount":{ + "shape":"Double", + "locationName":"amount" + } + } + }, + "RecurringChargeFrequency":{ + "type":"string", + "enum":["Hourly"] + }, + "RecurringChargesList":{ + "type":"list", + "member":{ + "shape":"RecurringCharge", + "locationName":"item" + } + }, + "Region":{ + "type":"structure", + "members":{ + "RegionName":{ + "shape":"String", + "locationName":"regionName" + }, + "Endpoint":{ + "shape":"String", + "locationName":"regionEndpoint" + } + } + }, + "RegionList":{ + "type":"list", + "member":{ + "shape":"Region", + "locationName":"item" + } + }, + "RegionNameStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"RegionName" + } + }, + "RegisterImageRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "ImageLocation":{"shape":"String"}, + "Name":{ + "shape":"String", + "locationName":"name" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "Architecture":{ + "shape":"ArchitectureValues", + "locationName":"architecture" + }, + "KernelId":{ + "shape":"String", + "locationName":"kernelId" + }, + "RamdiskId":{ + "shape":"String", + "locationName":"ramdiskId" + }, + "BillingProducts":{ + "shape":"BillingProductList", + "locationName":"BillingProduct" + }, + "RootDeviceName":{ + "shape":"String", + "locationName":"rootDeviceName" + }, + "BlockDeviceMappings":{ + "shape":"BlockDeviceMappingRequestList", + "locationName":"BlockDeviceMapping" + }, + "VirtualizationType":{ + "shape":"String", + "locationName":"virtualizationType" + }, + "SriovNetSupport":{ + "shape":"String", + "locationName":"sriovNetSupport" + }, + "EnaSupport":{ + "shape":"Boolean", + "locationName":"enaSupport" + } + } + }, + "RegisterImageResult":{ + "type":"structure", + "members":{ + "ImageId":{ + "shape":"String", + "locationName":"imageId" + } + } + }, + "RejectVpcPeeringConnectionRequest":{ + "type":"structure", + "required":["VpcPeeringConnectionId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "VpcPeeringConnectionId":{ + "shape":"String", + "locationName":"vpcPeeringConnectionId" + } + } + }, + "RejectVpcPeeringConnectionResult":{ + "type":"structure", + "members":{ + "Return":{ + "shape":"Boolean", + "locationName":"return" + } + } + }, + "ReleaseAddressRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "PublicIp":{"shape":"String"}, + "AllocationId":{"shape":"String"} + } + }, + "ReleaseHostsRequest":{ + "type":"structure", + "required":["HostIds"], + "members":{ + "HostIds":{ + "shape":"RequestHostIdList", + "locationName":"hostId" + } + } + }, + "ReleaseHostsResult":{ + "type":"structure", + "members":{ + "Successful":{ + "shape":"ResponseHostIdList", + "locationName":"successful" + }, + "Unsuccessful":{ + "shape":"UnsuccessfulItemList", + "locationName":"unsuccessful" + } + } + }, + "ReplaceIamInstanceProfileAssociationRequest":{ + "type":"structure", + "required":[ + "IamInstanceProfile", + "AssociationId" + ], + "members":{ + "IamInstanceProfile":{"shape":"IamInstanceProfileSpecification"}, + "AssociationId":{"shape":"String"} + } + }, + "ReplaceIamInstanceProfileAssociationResult":{ + "type":"structure", + "members":{ + "IamInstanceProfileAssociation":{ + "shape":"IamInstanceProfileAssociation", + "locationName":"iamInstanceProfileAssociation" + } + } + }, + "ReplaceNetworkAclAssociationRequest":{ + "type":"structure", + "required":[ + "AssociationId", + "NetworkAclId" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "AssociationId":{ + "shape":"String", + "locationName":"associationId" + }, + "NetworkAclId":{ + "shape":"String", + "locationName":"networkAclId" + } + } + }, + "ReplaceNetworkAclAssociationResult":{ + "type":"structure", + "members":{ + "NewAssociationId":{ + "shape":"String", + "locationName":"newAssociationId" + } + } + }, + "ReplaceNetworkAclEntryRequest":{ + "type":"structure", + "required":[ + "NetworkAclId", + "RuleNumber", + "Protocol", + "RuleAction", + "Egress" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "NetworkAclId":{ + "shape":"String", + "locationName":"networkAclId" + }, + "RuleNumber":{ + "shape":"Integer", + "locationName":"ruleNumber" + }, + "Protocol":{ + "shape":"String", + "locationName":"protocol" + }, + "RuleAction":{ + "shape":"RuleAction", + "locationName":"ruleAction" + }, + "Egress":{ + "shape":"Boolean", + "locationName":"egress" + }, + "CidrBlock":{ + "shape":"String", + "locationName":"cidrBlock" + }, + "Ipv6CidrBlock":{ + "shape":"String", + "locationName":"ipv6CidrBlock" + }, + "IcmpTypeCode":{ + "shape":"IcmpTypeCode", + "locationName":"Icmp" + }, + "PortRange":{ + "shape":"PortRange", + "locationName":"portRange" + } + } + }, + "ReplaceRouteRequest":{ + "type":"structure", + "required":["RouteTableId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "RouteTableId":{ + "shape":"String", + "locationName":"routeTableId" + }, + "DestinationCidrBlock":{ + "shape":"String", + "locationName":"destinationCidrBlock" + }, + "GatewayId":{ + "shape":"String", + "locationName":"gatewayId" + }, + "DestinationIpv6CidrBlock":{ + "shape":"String", + "locationName":"destinationIpv6CidrBlock" + }, + "EgressOnlyInternetGatewayId":{ + "shape":"String", + "locationName":"egressOnlyInternetGatewayId" + }, + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + }, + "VpcPeeringConnectionId":{ + "shape":"String", + "locationName":"vpcPeeringConnectionId" + }, + "NatGatewayId":{ + "shape":"String", + "locationName":"natGatewayId" + } + } + }, + "ReplaceRouteTableAssociationRequest":{ + "type":"structure", + "required":[ + "AssociationId", + "RouteTableId" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "AssociationId":{ + "shape":"String", + "locationName":"associationId" + }, + "RouteTableId":{ + "shape":"String", + "locationName":"routeTableId" + } + } + }, + "ReplaceRouteTableAssociationResult":{ + "type":"structure", + "members":{ + "NewAssociationId":{ + "shape":"String", + "locationName":"newAssociationId" + } + } + }, + "ReportInstanceReasonCodes":{ + "type":"string", + "enum":[ + "instance-stuck-in-state", + "unresponsive", + "not-accepting-credentials", + "password-not-available", + "performance-network", + "performance-instance-store", + "performance-ebs-volume", + "performance-other", + "other" + ] + }, + "ReportInstanceStatusRequest":{ + "type":"structure", + "required":[ + "Instances", + "Status", + "ReasonCodes" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "Instances":{ + "shape":"InstanceIdStringList", + "locationName":"instanceId" + }, + "Status":{ + "shape":"ReportStatusType", + "locationName":"status" + }, + "StartTime":{ + "shape":"DateTime", + "locationName":"startTime" + }, + "EndTime":{ + "shape":"DateTime", + "locationName":"endTime" + }, + "ReasonCodes":{ + "shape":"ReasonCodesList", + "locationName":"reasonCode" + }, + "Description":{ + "shape":"String", + "locationName":"description" + } + } + }, + "ReportStatusType":{ + "type":"string", + "enum":[ + "ok", + "impaired" + ] + }, + "RequestHostIdList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"item" + } + }, + "RequestHostIdSet":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"item" + } + }, + "RequestSpotFleetRequest":{ + "type":"structure", + "required":["SpotFleetRequestConfig"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "SpotFleetRequestConfig":{ + "shape":"SpotFleetRequestConfigData", + "locationName":"spotFleetRequestConfig" + } + } + }, + "RequestSpotFleetResponse":{ + "type":"structure", + "required":["SpotFleetRequestId"], + "members":{ + "SpotFleetRequestId":{ + "shape":"String", + "locationName":"spotFleetRequestId" + } + } + }, + "RequestSpotInstancesRequest":{ + "type":"structure", + "required":["SpotPrice"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "SpotPrice":{ + "shape":"String", + "locationName":"spotPrice" + }, + "ClientToken":{ + "shape":"String", + "locationName":"clientToken" + }, + "InstanceCount":{ + "shape":"Integer", + "locationName":"instanceCount" + }, + "Type":{ + "shape":"SpotInstanceType", + "locationName":"type" + }, + "ValidFrom":{ + "shape":"DateTime", + "locationName":"validFrom" + }, + "ValidUntil":{ + "shape":"DateTime", + "locationName":"validUntil" + }, + "LaunchGroup":{ + "shape":"String", + "locationName":"launchGroup" + }, + "AvailabilityZoneGroup":{ + "shape":"String", + "locationName":"availabilityZoneGroup" + }, + "BlockDurationMinutes":{ + "shape":"Integer", + "locationName":"blockDurationMinutes" + }, + "LaunchSpecification":{"shape":"RequestSpotLaunchSpecification"} + } + }, + "RequestSpotInstancesResult":{ + "type":"structure", + "members":{ + "SpotInstanceRequests":{ + "shape":"SpotInstanceRequestList", + "locationName":"spotInstanceRequestSet" + } + } + }, + "RequestSpotLaunchSpecification":{ + "type":"structure", + "members":{ + "ImageId":{ + "shape":"String", + "locationName":"imageId" + }, + "KeyName":{ + "shape":"String", + "locationName":"keyName" + }, + "SecurityGroups":{ + "shape":"ValueStringList", + "locationName":"SecurityGroup" + }, + "UserData":{ + "shape":"String", + "locationName":"userData" + }, + "AddressingType":{ + "shape":"String", + "locationName":"addressingType" + }, + "InstanceType":{ + "shape":"InstanceType", + "locationName":"instanceType" + }, + "Placement":{ + "shape":"SpotPlacement", + "locationName":"placement" + }, + "KernelId":{ + "shape":"String", + "locationName":"kernelId" + }, + "RamdiskId":{ + "shape":"String", + "locationName":"ramdiskId" + }, + "BlockDeviceMappings":{ + "shape":"BlockDeviceMappingList", + "locationName":"blockDeviceMapping" + }, + "SubnetId":{ + "shape":"String", + "locationName":"subnetId" + }, + "NetworkInterfaces":{ + "shape":"InstanceNetworkInterfaceSpecificationList", + "locationName":"NetworkInterface" + }, + "IamInstanceProfile":{ + "shape":"IamInstanceProfileSpecification", + "locationName":"iamInstanceProfile" + }, + "EbsOptimized":{ + "shape":"Boolean", + "locationName":"ebsOptimized" + }, + "Monitoring":{ + "shape":"RunInstancesMonitoringEnabled", + "locationName":"monitoring" + }, + "SecurityGroupIds":{ + "shape":"ValueStringList", + "locationName":"SecurityGroupId" + } + } + }, + "Reservation":{ + "type":"structure", + "members":{ + "ReservationId":{ + "shape":"String", + "locationName":"reservationId" + }, + "OwnerId":{ + "shape":"String", + "locationName":"ownerId" + }, + "RequesterId":{ + "shape":"String", + "locationName":"requesterId" + }, + "Groups":{ + "shape":"GroupIdentifierList", + "locationName":"groupSet" + }, + "Instances":{ + "shape":"InstanceList", + "locationName":"instancesSet" + } + } + }, + "ReservationList":{ + "type":"list", + "member":{ + "shape":"Reservation", + "locationName":"item" + } + }, + "ReservationState":{ + "type":"string", + "enum":[ + "payment-pending", + "payment-failed", + "active", + "retired" + ] + }, + "ReservationValue":{ + "type":"structure", + "members":{ + "RemainingTotalValue":{ + "shape":"String", + "locationName":"remainingTotalValue" + }, + "RemainingUpfrontValue":{ + "shape":"String", + "locationName":"remainingUpfrontValue" + }, + "HourlyPrice":{ + "shape":"String", + "locationName":"hourlyPrice" + } + } + }, + "ReservedInstanceIdSet":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"ReservedInstanceId" + } + }, + "ReservedInstanceLimitPrice":{ + "type":"structure", + "members":{ + "Amount":{ + "shape":"Double", + "locationName":"amount" + }, + "CurrencyCode":{ + "shape":"CurrencyCodeValues", + "locationName":"currencyCode" + } + } + }, + "ReservedInstanceReservationValue":{ + "type":"structure", + "members":{ + "ReservedInstanceId":{ + "shape":"String", + "locationName":"reservedInstanceId" + }, + "ReservationValue":{ + "shape":"ReservationValue", + "locationName":"reservationValue" + } + } + }, + "ReservedInstanceReservationValueSet":{ + "type":"list", + "member":{ + "shape":"ReservedInstanceReservationValue", + "locationName":"item" + } + }, + "ReservedInstanceState":{ + "type":"string", + "enum":[ + "payment-pending", + "active", + "payment-failed", + "retired" + ] + }, + "ReservedInstances":{ + "type":"structure", + "members":{ + "ReservedInstancesId":{ + "shape":"String", + "locationName":"reservedInstancesId" + }, + "InstanceType":{ + "shape":"InstanceType", + "locationName":"instanceType" + }, + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + }, + "Start":{ + "shape":"DateTime", + "locationName":"start" + }, + "End":{ + "shape":"DateTime", + "locationName":"end" + }, + "Duration":{ + "shape":"Long", + "locationName":"duration" + }, + "UsagePrice":{ + "shape":"Float", + "locationName":"usagePrice" + }, + "FixedPrice":{ + "shape":"Float", + "locationName":"fixedPrice" + }, + "InstanceCount":{ + "shape":"Integer", + "locationName":"instanceCount" + }, + "ProductDescription":{ + "shape":"RIProductDescription", + "locationName":"productDescription" + }, + "State":{ + "shape":"ReservedInstanceState", + "locationName":"state" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + }, + "InstanceTenancy":{ + "shape":"Tenancy", + "locationName":"instanceTenancy" + }, + "CurrencyCode":{ + "shape":"CurrencyCodeValues", + "locationName":"currencyCode" + }, + "OfferingType":{ + "shape":"OfferingTypeValues", + "locationName":"offeringType" + }, + "RecurringCharges":{ + "shape":"RecurringChargesList", + "locationName":"recurringCharges" + }, + "OfferingClass":{ + "shape":"OfferingClassType", + "locationName":"offeringClass" + }, + "Scope":{ + "shape":"scope", + "locationName":"scope" + } + } + }, + "ReservedInstancesConfiguration":{ + "type":"structure", + "members":{ + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + }, + "Platform":{ + "shape":"String", + "locationName":"platform" + }, + "InstanceCount":{ + "shape":"Integer", + "locationName":"instanceCount" + }, + "InstanceType":{ + "shape":"InstanceType", + "locationName":"instanceType" + }, + "Scope":{ + "shape":"scope", + "locationName":"scope" + } + } + }, + "ReservedInstancesConfigurationList":{ + "type":"list", + "member":{ + "shape":"ReservedInstancesConfiguration", + "locationName":"item" + } + }, + "ReservedInstancesId":{ + "type":"structure", + "members":{ + "ReservedInstancesId":{ + "shape":"String", + "locationName":"reservedInstancesId" + } + } + }, + "ReservedInstancesIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"ReservedInstancesId" + } + }, + "ReservedInstancesList":{ + "type":"list", + "member":{ + "shape":"ReservedInstances", + "locationName":"item" + } + }, + "ReservedInstancesListing":{ + "type":"structure", + "members":{ + "ReservedInstancesListingId":{ + "shape":"String", + "locationName":"reservedInstancesListingId" + }, + "ReservedInstancesId":{ + "shape":"String", + "locationName":"reservedInstancesId" + }, + "CreateDate":{ + "shape":"DateTime", + "locationName":"createDate" + }, + "UpdateDate":{ + "shape":"DateTime", + "locationName":"updateDate" + }, + "Status":{ + "shape":"ListingStatus", + "locationName":"status" + }, + "StatusMessage":{ + "shape":"String", + "locationName":"statusMessage" + }, + "InstanceCounts":{ + "shape":"InstanceCountList", + "locationName":"instanceCounts" + }, + "PriceSchedules":{ + "shape":"PriceScheduleList", + "locationName":"priceSchedules" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + }, + "ClientToken":{ + "shape":"String", + "locationName":"clientToken" + } + } + }, + "ReservedInstancesListingList":{ + "type":"list", + "member":{ + "shape":"ReservedInstancesListing", + "locationName":"item" + } + }, + "ReservedInstancesModification":{ + "type":"structure", + "members":{ + "ReservedInstancesModificationId":{ + "shape":"String", + "locationName":"reservedInstancesModificationId" + }, + "ReservedInstancesIds":{ + "shape":"ReservedIntancesIds", + "locationName":"reservedInstancesSet" + }, + "ModificationResults":{ + "shape":"ReservedInstancesModificationResultList", + "locationName":"modificationResultSet" + }, + "CreateDate":{ + "shape":"DateTime", + "locationName":"createDate" + }, + "UpdateDate":{ + "shape":"DateTime", + "locationName":"updateDate" + }, + "EffectiveDate":{ + "shape":"DateTime", + "locationName":"effectiveDate" + }, + "Status":{ + "shape":"String", + "locationName":"status" + }, + "StatusMessage":{ + "shape":"String", + "locationName":"statusMessage" + }, + "ClientToken":{ + "shape":"String", + "locationName":"clientToken" + } + } + }, + "ReservedInstancesModificationIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"ReservedInstancesModificationId" + } + }, + "ReservedInstancesModificationList":{ + "type":"list", + "member":{ + "shape":"ReservedInstancesModification", + "locationName":"item" + } + }, + "ReservedInstancesModificationResult":{ + "type":"structure", + "members":{ + "ReservedInstancesId":{ + "shape":"String", + "locationName":"reservedInstancesId" + }, + "TargetConfiguration":{ + "shape":"ReservedInstancesConfiguration", + "locationName":"targetConfiguration" + } + } + }, + "ReservedInstancesModificationResultList":{ + "type":"list", + "member":{ + "shape":"ReservedInstancesModificationResult", + "locationName":"item" + } + }, + "ReservedInstancesOffering":{ + "type":"structure", + "members":{ + "ReservedInstancesOfferingId":{ + "shape":"String", + "locationName":"reservedInstancesOfferingId" + }, + "InstanceType":{ + "shape":"InstanceType", + "locationName":"instanceType" + }, + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + }, + "Duration":{ + "shape":"Long", + "locationName":"duration" + }, + "UsagePrice":{ + "shape":"Float", + "locationName":"usagePrice" + }, + "FixedPrice":{ + "shape":"Float", + "locationName":"fixedPrice" + }, + "ProductDescription":{ + "shape":"RIProductDescription", + "locationName":"productDescription" + }, + "InstanceTenancy":{ + "shape":"Tenancy", + "locationName":"instanceTenancy" + }, + "CurrencyCode":{ + "shape":"CurrencyCodeValues", + "locationName":"currencyCode" + }, + "OfferingType":{ + "shape":"OfferingTypeValues", + "locationName":"offeringType" + }, + "RecurringCharges":{ + "shape":"RecurringChargesList", + "locationName":"recurringCharges" + }, + "Marketplace":{ + "shape":"Boolean", + "locationName":"marketplace" + }, + "PricingDetails":{ + "shape":"PricingDetailsList", + "locationName":"pricingDetailsSet" + }, + "OfferingClass":{ + "shape":"OfferingClassType", + "locationName":"offeringClass" + }, + "Scope":{ + "shape":"scope", + "locationName":"scope" + } + } + }, + "ReservedInstancesOfferingIdStringList":{ + "type":"list", + "member":{"shape":"String"} + }, + "ReservedInstancesOfferingList":{ + "type":"list", + "member":{ + "shape":"ReservedInstancesOffering", + "locationName":"item" + } + }, + "ReservedIntancesIds":{ + "type":"list", + "member":{ + "shape":"ReservedInstancesId", + "locationName":"item" + } + }, + "ResetImageAttributeName":{ + "type":"string", + "enum":["launchPermission"] + }, + "ResetImageAttributeRequest":{ + "type":"structure", + "required":[ + "ImageId", + "Attribute" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "ImageId":{"shape":"String"}, + "Attribute":{"shape":"ResetImageAttributeName"} + } + }, + "ResetInstanceAttributeRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "Attribute" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "Attribute":{ + "shape":"InstanceAttributeName", + "locationName":"attribute" + } + } + }, + "ResetNetworkInterfaceAttributeRequest":{ + "type":"structure", + "required":["NetworkInterfaceId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + }, + "SourceDestCheck":{ + "shape":"String", + "locationName":"sourceDestCheck" + } + } + }, + "ResetSnapshotAttributeRequest":{ + "type":"structure", + "required":[ + "SnapshotId", + "Attribute" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "SnapshotId":{"shape":"String"}, + "Attribute":{"shape":"SnapshotAttributeName"} + } + }, + "ResourceIdList":{ + "type":"list", + "member":{"shape":"String"} + }, + "ResourceType":{ + "type":"string", + "enum":[ + "customer-gateway", + "dhcp-options", + "image", + "instance", + "internet-gateway", + "network-acl", + "network-interface", + "reserved-instances", + "route-table", + "snapshot", + "spot-instances-request", + "subnet", + "security-group", + "volume", + "vpc", + "vpn-connection", + "vpn-gateway" + ] + }, + "ResponseHostIdList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"item" + } + }, + "ResponseHostIdSet":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"item" + } + }, + "RestorableByStringList":{ + "type":"list", + "member":{"shape":"String"} + }, + "RestoreAddressToClassicRequest":{ + "type":"structure", + "required":["PublicIp"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "PublicIp":{ + "shape":"String", + "locationName":"publicIp" + } + } + }, + "RestoreAddressToClassicResult":{ + "type":"structure", + "members":{ + "Status":{ + "shape":"Status", + "locationName":"status" + }, + "PublicIp":{ + "shape":"String", + "locationName":"publicIp" + } + } + }, + "RevokeSecurityGroupEgressRequest":{ + "type":"structure", + "required":["GroupId"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "GroupId":{ + "shape":"String", + "locationName":"groupId" + }, + "SourceSecurityGroupName":{ + "shape":"String", + "locationName":"sourceSecurityGroupName" + }, + "SourceSecurityGroupOwnerId":{ + "shape":"String", + "locationName":"sourceSecurityGroupOwnerId" + }, + "IpProtocol":{ + "shape":"String", + "locationName":"ipProtocol" + }, + "FromPort":{ + "shape":"Integer", + "locationName":"fromPort" + }, + "ToPort":{ + "shape":"Integer", + "locationName":"toPort" + }, + "CidrIp":{ + "shape":"String", + "locationName":"cidrIp" + }, + "IpPermissions":{ + "shape":"IpPermissionList", + "locationName":"ipPermissions" + } + } + }, + "RevokeSecurityGroupIngressRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "GroupName":{"shape":"String"}, + "GroupId":{"shape":"String"}, + "SourceSecurityGroupName":{"shape":"String"}, + "SourceSecurityGroupOwnerId":{"shape":"String"}, + "IpProtocol":{"shape":"String"}, + "FromPort":{"shape":"Integer"}, + "ToPort":{"shape":"Integer"}, + "CidrIp":{"shape":"String"}, + "IpPermissions":{"shape":"IpPermissionList"} + } + }, + "Route":{ + "type":"structure", + "members":{ + "DestinationCidrBlock":{ + "shape":"String", + "locationName":"destinationCidrBlock" + }, + "DestinationPrefixListId":{ + "shape":"String", + "locationName":"destinationPrefixListId" + }, + "GatewayId":{ + "shape":"String", + "locationName":"gatewayId" + }, + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "InstanceOwnerId":{ + "shape":"String", + "locationName":"instanceOwnerId" + }, + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + }, + "VpcPeeringConnectionId":{ + "shape":"String", + "locationName":"vpcPeeringConnectionId" + }, + "NatGatewayId":{ + "shape":"String", + "locationName":"natGatewayId" + }, + "State":{ + "shape":"RouteState", + "locationName":"state" + }, + "Origin":{ + "shape":"RouteOrigin", + "locationName":"origin" + }, + "DestinationIpv6CidrBlock":{ + "shape":"String", + "locationName":"destinationIpv6CidrBlock" + }, + "EgressOnlyInternetGatewayId":{ + "shape":"String", + "locationName":"egressOnlyInternetGatewayId" + } + } + }, + "RouteList":{ + "type":"list", + "member":{ + "shape":"Route", + "locationName":"item" + } + }, + "RouteOrigin":{ + "type":"string", + "enum":[ + "CreateRouteTable", + "CreateRoute", + "EnableVgwRoutePropagation" + ] + }, + "RouteState":{ + "type":"string", + "enum":[ + "active", + "blackhole" + ] + }, + "RouteTable":{ + "type":"structure", + "members":{ + "RouteTableId":{ + "shape":"String", + "locationName":"routeTableId" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "Routes":{ + "shape":"RouteList", + "locationName":"routeSet" + }, + "Associations":{ + "shape":"RouteTableAssociationList", + "locationName":"associationSet" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + }, + "PropagatingVgws":{ + "shape":"PropagatingVgwList", + "locationName":"propagatingVgwSet" + } + } + }, + "RouteTableAssociation":{ + "type":"structure", + "members":{ + "RouteTableAssociationId":{ + "shape":"String", + "locationName":"routeTableAssociationId" + }, + "RouteTableId":{ + "shape":"String", + "locationName":"routeTableId" + }, + "SubnetId":{ + "shape":"String", + "locationName":"subnetId" + }, + "Main":{ + "shape":"Boolean", + "locationName":"main" + } + } + }, + "RouteTableAssociationList":{ + "type":"list", + "member":{ + "shape":"RouteTableAssociation", + "locationName":"item" + } + }, + "RouteTableList":{ + "type":"list", + "member":{ + "shape":"RouteTable", + "locationName":"item" + } + }, + "RuleAction":{ + "type":"string", + "enum":[ + "allow", + "deny" + ] + }, + "RunInstancesMonitoringEnabled":{ + "type":"structure", + "required":["Enabled"], + "members":{ + "Enabled":{ + "shape":"Boolean", + "locationName":"enabled" + } + } + }, + "RunInstancesRequest":{ + "type":"structure", + "required":[ + "ImageId", + "MinCount", + "MaxCount" + ], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "ImageId":{"shape":"String"}, + "MinCount":{"shape":"Integer"}, + "MaxCount":{"shape":"Integer"}, + "KeyName":{"shape":"String"}, + "SecurityGroups":{ + "shape":"SecurityGroupStringList", + "locationName":"SecurityGroup" + }, + "SecurityGroupIds":{ + "shape":"SecurityGroupIdStringList", + "locationName":"SecurityGroupId" + }, + "UserData":{"shape":"String"}, + "InstanceType":{"shape":"InstanceType"}, + "Placement":{"shape":"Placement"}, + "KernelId":{"shape":"String"}, + "RamdiskId":{"shape":"String"}, + "BlockDeviceMappings":{ + "shape":"BlockDeviceMappingRequestList", + "locationName":"BlockDeviceMapping" + }, + "Monitoring":{"shape":"RunInstancesMonitoringEnabled"}, + "SubnetId":{"shape":"String"}, + "DisableApiTermination":{ + "shape":"Boolean", + "locationName":"disableApiTermination" + }, + "InstanceInitiatedShutdownBehavior":{ + "shape":"ShutdownBehavior", + "locationName":"instanceInitiatedShutdownBehavior" + }, + "PrivateIpAddress":{ + "shape":"String", + "locationName":"privateIpAddress" + }, + "Ipv6Addresses":{ + "shape":"InstanceIpv6AddressList", + "locationName":"Ipv6Address" + }, + "Ipv6AddressCount":{"shape":"Integer"}, + "ClientToken":{ + "shape":"String", + "locationName":"clientToken" + }, + "AdditionalInfo":{ + "shape":"String", + "locationName":"additionalInfo" + }, + "NetworkInterfaces":{ + "shape":"InstanceNetworkInterfaceSpecificationList", + "locationName":"networkInterface" + }, + "IamInstanceProfile":{ + "shape":"IamInstanceProfileSpecification", + "locationName":"iamInstanceProfile" + }, + "EbsOptimized":{ + "shape":"Boolean", + "locationName":"ebsOptimized" + } + } + }, + "RunScheduledInstancesRequest":{ + "type":"structure", + "required":[ + "ScheduledInstanceId", + "LaunchSpecification" + ], + "members":{ + "DryRun":{"shape":"Boolean"}, + "ClientToken":{ + "shape":"String", + "idempotencyToken":true + }, + "InstanceCount":{"shape":"Integer"}, + "ScheduledInstanceId":{"shape":"String"}, + "LaunchSpecification":{"shape":"ScheduledInstancesLaunchSpecification"} + } + }, + "RunScheduledInstancesResult":{ + "type":"structure", + "members":{ + "InstanceIdSet":{ + "shape":"InstanceIdSet", + "locationName":"instanceIdSet" + } + } + }, + "S3Storage":{ + "type":"structure", + "members":{ + "Bucket":{ + "shape":"String", + "locationName":"bucket" + }, + "Prefix":{ + "shape":"String", + "locationName":"prefix" + }, + "AWSAccessKeyId":{"shape":"String"}, + "UploadPolicy":{ + "shape":"Blob", + "locationName":"uploadPolicy" + }, + "UploadPolicySignature":{ + "shape":"String", + "locationName":"uploadPolicySignature" + } + } + }, + "ScheduledInstance":{ + "type":"structure", + "members":{ + "ScheduledInstanceId":{ + "shape":"String", + "locationName":"scheduledInstanceId" + }, + "InstanceType":{ + "shape":"String", + "locationName":"instanceType" + }, + "Platform":{ + "shape":"String", + "locationName":"platform" + }, + "NetworkPlatform":{ + "shape":"String", + "locationName":"networkPlatform" + }, + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + }, + "SlotDurationInHours":{ + "shape":"Integer", + "locationName":"slotDurationInHours" + }, + "Recurrence":{ + "shape":"ScheduledInstanceRecurrence", + "locationName":"recurrence" + }, + "PreviousSlotEndTime":{ + "shape":"DateTime", + "locationName":"previousSlotEndTime" + }, + "NextSlotStartTime":{ + "shape":"DateTime", + "locationName":"nextSlotStartTime" + }, + "HourlyPrice":{ + "shape":"String", + "locationName":"hourlyPrice" + }, + "TotalScheduledInstanceHours":{ + "shape":"Integer", + "locationName":"totalScheduledInstanceHours" + }, + "InstanceCount":{ + "shape":"Integer", + "locationName":"instanceCount" + }, + "TermStartDate":{ + "shape":"DateTime", + "locationName":"termStartDate" + }, + "TermEndDate":{ + "shape":"DateTime", + "locationName":"termEndDate" + }, + "CreateDate":{ + "shape":"DateTime", + "locationName":"createDate" + } + } + }, + "ScheduledInstanceAvailability":{ + "type":"structure", + "members":{ + "InstanceType":{ + "shape":"String", + "locationName":"instanceType" + }, + "Platform":{ + "shape":"String", + "locationName":"platform" + }, + "NetworkPlatform":{ + "shape":"String", + "locationName":"networkPlatform" + }, + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + }, + "PurchaseToken":{ + "shape":"String", + "locationName":"purchaseToken" + }, + "SlotDurationInHours":{ + "shape":"Integer", + "locationName":"slotDurationInHours" + }, + "Recurrence":{ + "shape":"ScheduledInstanceRecurrence", + "locationName":"recurrence" + }, + "FirstSlotStartTime":{ + "shape":"DateTime", + "locationName":"firstSlotStartTime" + }, + "HourlyPrice":{ + "shape":"String", + "locationName":"hourlyPrice" + }, + "TotalScheduledInstanceHours":{ + "shape":"Integer", + "locationName":"totalScheduledInstanceHours" + }, + "AvailableInstanceCount":{ + "shape":"Integer", + "locationName":"availableInstanceCount" + }, + "MinTermDurationInDays":{ + "shape":"Integer", + "locationName":"minTermDurationInDays" + }, + "MaxTermDurationInDays":{ + "shape":"Integer", + "locationName":"maxTermDurationInDays" + } + } + }, + "ScheduledInstanceAvailabilitySet":{ + "type":"list", + "member":{ + "shape":"ScheduledInstanceAvailability", + "locationName":"item" + } + }, + "ScheduledInstanceIdRequestSet":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"ScheduledInstanceId" + } + }, + "ScheduledInstanceRecurrence":{ + "type":"structure", + "members":{ + "Frequency":{ + "shape":"String", + "locationName":"frequency" + }, + "Interval":{ + "shape":"Integer", + "locationName":"interval" + }, + "OccurrenceDaySet":{ + "shape":"OccurrenceDaySet", + "locationName":"occurrenceDaySet" + }, + "OccurrenceRelativeToEnd":{ + "shape":"Boolean", + "locationName":"occurrenceRelativeToEnd" + }, + "OccurrenceUnit":{ + "shape":"String", + "locationName":"occurrenceUnit" + } + } + }, + "ScheduledInstanceRecurrenceRequest":{ + "type":"structure", + "members":{ + "Frequency":{"shape":"String"}, + "Interval":{"shape":"Integer"}, + "OccurrenceDays":{ + "shape":"OccurrenceDayRequestSet", + "locationName":"OccurrenceDay" + }, + "OccurrenceRelativeToEnd":{"shape":"Boolean"}, + "OccurrenceUnit":{"shape":"String"} + } + }, + "ScheduledInstanceSet":{ + "type":"list", + "member":{ + "shape":"ScheduledInstance", + "locationName":"item" + } + }, + "ScheduledInstancesBlockDeviceMapping":{ + "type":"structure", + "members":{ + "DeviceName":{"shape":"String"}, + "NoDevice":{"shape":"String"}, + "VirtualName":{"shape":"String"}, + "Ebs":{"shape":"ScheduledInstancesEbs"} + } + }, + "ScheduledInstancesBlockDeviceMappingSet":{ + "type":"list", + "member":{ + "shape":"ScheduledInstancesBlockDeviceMapping", + "locationName":"BlockDeviceMapping" + } + }, + "ScheduledInstancesEbs":{ + "type":"structure", + "members":{ + "SnapshotId":{"shape":"String"}, + "VolumeSize":{"shape":"Integer"}, + "DeleteOnTermination":{"shape":"Boolean"}, + "VolumeType":{"shape":"String"}, + "Iops":{"shape":"Integer"}, + "Encrypted":{"shape":"Boolean"} + } + }, + "ScheduledInstancesIamInstanceProfile":{ + "type":"structure", + "members":{ + "Arn":{"shape":"String"}, + "Name":{"shape":"String"} + } + }, + "ScheduledInstancesIpv6Address":{ + "type":"structure", + "members":{ + "Ipv6Address":{"shape":"Ipv6Address"} + } + }, + "ScheduledInstancesIpv6AddressList":{ + "type":"list", + "member":{ + "shape":"ScheduledInstancesIpv6Address", + "locationName":"Ipv6Address" + } + }, + "ScheduledInstancesLaunchSpecification":{ + "type":"structure", + "required":["ImageId"], + "members":{ + "ImageId":{"shape":"String"}, + "KeyName":{"shape":"String"}, + "SecurityGroupIds":{ + "shape":"ScheduledInstancesSecurityGroupIdSet", + "locationName":"SecurityGroupId" + }, + "UserData":{"shape":"String"}, + "Placement":{"shape":"ScheduledInstancesPlacement"}, + "KernelId":{"shape":"String"}, + "InstanceType":{"shape":"String"}, + "RamdiskId":{"shape":"String"}, + "BlockDeviceMappings":{ + "shape":"ScheduledInstancesBlockDeviceMappingSet", + "locationName":"BlockDeviceMapping" + }, + "Monitoring":{"shape":"ScheduledInstancesMonitoring"}, + "SubnetId":{"shape":"String"}, + "NetworkInterfaces":{ + "shape":"ScheduledInstancesNetworkInterfaceSet", + "locationName":"NetworkInterface" + }, + "IamInstanceProfile":{"shape":"ScheduledInstancesIamInstanceProfile"}, + "EbsOptimized":{"shape":"Boolean"} + } + }, + "ScheduledInstancesMonitoring":{ + "type":"structure", + "members":{ + "Enabled":{"shape":"Boolean"} + } + }, + "ScheduledInstancesNetworkInterface":{ + "type":"structure", + "members":{ + "NetworkInterfaceId":{"shape":"String"}, + "DeviceIndex":{"shape":"Integer"}, + "SubnetId":{"shape":"String"}, + "Description":{"shape":"String"}, + "PrivateIpAddress":{"shape":"String"}, + "PrivateIpAddressConfigs":{ + "shape":"PrivateIpAddressConfigSet", + "locationName":"PrivateIpAddressConfig" + }, + "SecondaryPrivateIpAddressCount":{"shape":"Integer"}, + "AssociatePublicIpAddress":{"shape":"Boolean"}, + "Groups":{ + "shape":"ScheduledInstancesSecurityGroupIdSet", + "locationName":"Group" + }, + "DeleteOnTermination":{"shape":"Boolean"}, + "Ipv6Addresses":{ + "shape":"ScheduledInstancesIpv6AddressList", + "locationName":"Ipv6Address" + }, + "Ipv6AddressCount":{"shape":"Integer"} + } + }, + "ScheduledInstancesNetworkInterfaceSet":{ + "type":"list", + "member":{ + "shape":"ScheduledInstancesNetworkInterface", + "locationName":"NetworkInterface" + } + }, + "ScheduledInstancesPlacement":{ + "type":"structure", + "members":{ + "AvailabilityZone":{"shape":"String"}, + "GroupName":{"shape":"String"} + } + }, + "ScheduledInstancesPrivateIpAddressConfig":{ + "type":"structure", + "members":{ + "PrivateIpAddress":{"shape":"String"}, + "Primary":{"shape":"Boolean"} + } + }, + "ScheduledInstancesSecurityGroupIdSet":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"SecurityGroupId" + } + }, + "SecurityGroup":{ + "type":"structure", + "members":{ + "OwnerId":{ + "shape":"String", + "locationName":"ownerId" + }, + "GroupName":{ + "shape":"String", + "locationName":"groupName" + }, + "GroupId":{ + "shape":"String", + "locationName":"groupId" + }, + "Description":{ + "shape":"String", + "locationName":"groupDescription" + }, + "IpPermissions":{ + "shape":"IpPermissionList", + "locationName":"ipPermissions" + }, + "IpPermissionsEgress":{ + "shape":"IpPermissionList", + "locationName":"ipPermissionsEgress" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + } + } + }, + "SecurityGroupIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"SecurityGroupId" + } + }, + "SecurityGroupList":{ + "type":"list", + "member":{ + "shape":"SecurityGroup", + "locationName":"item" + } + }, + "SecurityGroupReference":{ + "type":"structure", + "required":[ + "GroupId", + "ReferencingVpcId" + ], + "members":{ + "GroupId":{ + "shape":"String", + "locationName":"groupId" + }, + "ReferencingVpcId":{ + "shape":"String", + "locationName":"referencingVpcId" + }, + "VpcPeeringConnectionId":{ + "shape":"String", + "locationName":"vpcPeeringConnectionId" + } + } + }, + "SecurityGroupReferences":{ + "type":"list", + "member":{ + "shape":"SecurityGroupReference", + "locationName":"item" + } + }, + "SecurityGroupStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"SecurityGroup" + } + }, + "ShutdownBehavior":{ + "type":"string", + "enum":[ + "stop", + "terminate" + ] + }, + "SlotDateTimeRangeRequest":{ + "type":"structure", + "required":[ + "EarliestTime", + "LatestTime" + ], + "members":{ + "EarliestTime":{"shape":"DateTime"}, + "LatestTime":{"shape":"DateTime"} + } + }, + "SlotStartTimeRangeRequest":{ + "type":"structure", + "members":{ + "EarliestTime":{"shape":"DateTime"}, + "LatestTime":{"shape":"DateTime"} + } + }, + "Snapshot":{ + "type":"structure", + "members":{ + "SnapshotId":{ + "shape":"String", + "locationName":"snapshotId" + }, + "VolumeId":{ + "shape":"String", + "locationName":"volumeId" + }, + "State":{ + "shape":"SnapshotState", + "locationName":"status" + }, + "StateMessage":{ + "shape":"String", + "locationName":"statusMessage" + }, + "StartTime":{ + "shape":"DateTime", + "locationName":"startTime" + }, + "Progress":{ + "shape":"String", + "locationName":"progress" + }, + "OwnerId":{ + "shape":"String", + "locationName":"ownerId" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "VolumeSize":{ + "shape":"Integer", + "locationName":"volumeSize" + }, + "OwnerAlias":{ + "shape":"String", + "locationName":"ownerAlias" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + }, + "Encrypted":{ + "shape":"Boolean", + "locationName":"encrypted" + }, + "KmsKeyId":{ + "shape":"String", + "locationName":"kmsKeyId" + }, + "DataEncryptionKeyId":{ + "shape":"String", + "locationName":"dataEncryptionKeyId" + } + } + }, + "SnapshotAttributeName":{ + "type":"string", + "enum":[ + "productCodes", + "createVolumePermission" + ] + }, + "SnapshotDetail":{ + "type":"structure", + "members":{ + "DiskImageSize":{ + "shape":"Double", + "locationName":"diskImageSize" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "Format":{ + "shape":"String", + "locationName":"format" + }, + "Url":{ + "shape":"String", + "locationName":"url" + }, + "UserBucket":{ + "shape":"UserBucketDetails", + "locationName":"userBucket" + }, + "DeviceName":{ + "shape":"String", + "locationName":"deviceName" + }, + "SnapshotId":{ + "shape":"String", + "locationName":"snapshotId" + }, + "Progress":{ + "shape":"String", + "locationName":"progress" + }, + "StatusMessage":{ + "shape":"String", + "locationName":"statusMessage" + }, + "Status":{ + "shape":"String", + "locationName":"status" + } + } + }, + "SnapshotDetailList":{ + "type":"list", + "member":{ + "shape":"SnapshotDetail", + "locationName":"item" + } + }, + "SnapshotDiskContainer":{ + "type":"structure", + "members":{ + "Description":{"shape":"String"}, + "Format":{"shape":"String"}, + "Url":{"shape":"String"}, + "UserBucket":{"shape":"UserBucket"} + } + }, + "SnapshotIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"SnapshotId" + } + }, + "SnapshotList":{ + "type":"list", + "member":{ + "shape":"Snapshot", + "locationName":"item" + } + }, + "SnapshotState":{ + "type":"string", + "enum":[ + "pending", + "completed", + "error" + ] + }, + "SnapshotTaskDetail":{ + "type":"structure", + "members":{ + "DiskImageSize":{ + "shape":"Double", + "locationName":"diskImageSize" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "Format":{ + "shape":"String", + "locationName":"format" + }, + "Url":{ + "shape":"String", + "locationName":"url" + }, + "UserBucket":{ + "shape":"UserBucketDetails", + "locationName":"userBucket" + }, + "SnapshotId":{ + "shape":"String", + "locationName":"snapshotId" + }, + "Progress":{ + "shape":"String", + "locationName":"progress" + }, + "StatusMessage":{ + "shape":"String", + "locationName":"statusMessage" + }, + "Status":{ + "shape":"String", + "locationName":"status" + } + } + }, + "SpotDatafeedSubscription":{ + "type":"structure", + "members":{ + "OwnerId":{ + "shape":"String", + "locationName":"ownerId" + }, + "Bucket":{ + "shape":"String", + "locationName":"bucket" + }, + "Prefix":{ + "shape":"String", + "locationName":"prefix" + }, + "State":{ + "shape":"DatafeedSubscriptionState", + "locationName":"state" + }, + "Fault":{ + "shape":"SpotInstanceStateFault", + "locationName":"fault" + } + } + }, + "SpotFleetLaunchSpecification":{ + "type":"structure", + "members":{ + "ImageId":{ + "shape":"String", + "locationName":"imageId" + }, + "KeyName":{ + "shape":"String", + "locationName":"keyName" + }, + "SecurityGroups":{ + "shape":"GroupIdentifierList", + "locationName":"groupSet" + }, + "UserData":{ + "shape":"String", + "locationName":"userData" + }, + "AddressingType":{ + "shape":"String", + "locationName":"addressingType" + }, + "InstanceType":{ + "shape":"InstanceType", + "locationName":"instanceType" + }, + "Placement":{ + "shape":"SpotPlacement", + "locationName":"placement" + }, + "KernelId":{ + "shape":"String", + "locationName":"kernelId" + }, + "RamdiskId":{ + "shape":"String", + "locationName":"ramdiskId" + }, + "BlockDeviceMappings":{ + "shape":"BlockDeviceMappingList", + "locationName":"blockDeviceMapping" + }, + "Monitoring":{ + "shape":"SpotFleetMonitoring", + "locationName":"monitoring" + }, + "SubnetId":{ + "shape":"String", + "locationName":"subnetId" + }, + "NetworkInterfaces":{ + "shape":"InstanceNetworkInterfaceSpecificationList", + "locationName":"networkInterfaceSet" + }, + "IamInstanceProfile":{ + "shape":"IamInstanceProfileSpecification", + "locationName":"iamInstanceProfile" + }, + "EbsOptimized":{ + "shape":"Boolean", + "locationName":"ebsOptimized" + }, + "WeightedCapacity":{ + "shape":"Double", + "locationName":"weightedCapacity" + }, + "SpotPrice":{ + "shape":"String", + "locationName":"spotPrice" + } + } + }, + "SpotFleetMonitoring":{ + "type":"structure", + "members":{ + "Enabled":{ + "shape":"Boolean", + "locationName":"enabled" + } + } + }, + "SpotFleetRequestConfig":{ + "type":"structure", + "required":[ + "SpotFleetRequestId", + "SpotFleetRequestState", + "SpotFleetRequestConfig", + "CreateTime" + ], + "members":{ + "SpotFleetRequestId":{ + "shape":"String", + "locationName":"spotFleetRequestId" + }, + "SpotFleetRequestState":{ + "shape":"BatchState", + "locationName":"spotFleetRequestState" + }, + "SpotFleetRequestConfig":{ + "shape":"SpotFleetRequestConfigData", + "locationName":"spotFleetRequestConfig" + }, + "CreateTime":{ + "shape":"DateTime", + "locationName":"createTime" + }, + "ActivityStatus":{ + "shape":"ActivityStatus", + "locationName":"activityStatus" + } + } + }, + "SpotFleetRequestConfigData":{ + "type":"structure", + "required":[ + "SpotPrice", + "TargetCapacity", + "IamFleetRole", + "LaunchSpecifications" + ], + "members":{ + "ClientToken":{ + "shape":"String", + "locationName":"clientToken" + }, + "SpotPrice":{ + "shape":"String", + "locationName":"spotPrice" + }, + "TargetCapacity":{ + "shape":"Integer", + "locationName":"targetCapacity" + }, + "ValidFrom":{ + "shape":"DateTime", + "locationName":"validFrom" + }, + "ValidUntil":{ + "shape":"DateTime", + "locationName":"validUntil" + }, + "TerminateInstancesWithExpiration":{ + "shape":"Boolean", + "locationName":"terminateInstancesWithExpiration" + }, + "IamFleetRole":{ + "shape":"String", + "locationName":"iamFleetRole" + }, + "LaunchSpecifications":{ + "shape":"LaunchSpecsList", + "locationName":"launchSpecifications" + }, + "ExcessCapacityTerminationPolicy":{ + "shape":"ExcessCapacityTerminationPolicy", + "locationName":"excessCapacityTerminationPolicy" + }, + "AllocationStrategy":{ + "shape":"AllocationStrategy", + "locationName":"allocationStrategy" + }, + "FulfilledCapacity":{ + "shape":"Double", + "locationName":"fulfilledCapacity" + }, + "Type":{ + "shape":"FleetType", + "locationName":"type" + }, + "ReplaceUnhealthyInstances":{ + "shape":"Boolean", + "locationName":"replaceUnhealthyInstances" + } + } + }, + "SpotFleetRequestConfigSet":{ + "type":"list", + "member":{ + "shape":"SpotFleetRequestConfig", + "locationName":"item" + } + }, + "SpotInstanceRequest":{ + "type":"structure", + "members":{ + "SpotInstanceRequestId":{ + "shape":"String", + "locationName":"spotInstanceRequestId" + }, + "SpotPrice":{ + "shape":"String", + "locationName":"spotPrice" + }, + "Type":{ + "shape":"SpotInstanceType", + "locationName":"type" + }, + "State":{ + "shape":"SpotInstanceState", + "locationName":"state" + }, + "Fault":{ + "shape":"SpotInstanceStateFault", + "locationName":"fault" + }, + "Status":{ + "shape":"SpotInstanceStatus", + "locationName":"status" + }, + "ValidFrom":{ + "shape":"DateTime", + "locationName":"validFrom" + }, + "ValidUntil":{ + "shape":"DateTime", + "locationName":"validUntil" + }, + "LaunchGroup":{ + "shape":"String", + "locationName":"launchGroup" + }, + "AvailabilityZoneGroup":{ + "shape":"String", + "locationName":"availabilityZoneGroup" + }, + "LaunchSpecification":{ + "shape":"LaunchSpecification", + "locationName":"launchSpecification" + }, + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "CreateTime":{ + "shape":"DateTime", + "locationName":"createTime" + }, + "ProductDescription":{ + "shape":"RIProductDescription", + "locationName":"productDescription" + }, + "BlockDurationMinutes":{ + "shape":"Integer", + "locationName":"blockDurationMinutes" + }, + "ActualBlockHourlyPrice":{ + "shape":"String", + "locationName":"actualBlockHourlyPrice" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + }, + "LaunchedAvailabilityZone":{ + "shape":"String", + "locationName":"launchedAvailabilityZone" + } + } + }, + "SpotInstanceRequestIdList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"SpotInstanceRequestId" + } + }, + "SpotInstanceRequestList":{ + "type":"list", + "member":{ + "shape":"SpotInstanceRequest", + "locationName":"item" + } + }, + "SpotInstanceState":{ + "type":"string", + "enum":[ + "open", + "active", + "closed", + "cancelled", + "failed" + ] + }, + "SpotInstanceStateFault":{ + "type":"structure", + "members":{ + "Code":{ + "shape":"String", + "locationName":"code" + }, + "Message":{ + "shape":"String", + "locationName":"message" + } + } + }, + "SpotInstanceStatus":{ + "type":"structure", + "members":{ + "Code":{ + "shape":"String", + "locationName":"code" + }, + "UpdateTime":{ + "shape":"DateTime", + "locationName":"updateTime" + }, + "Message":{ + "shape":"String", + "locationName":"message" + } + } + }, + "SpotInstanceType":{ + "type":"string", + "enum":[ + "one-time", + "persistent" + ] + }, + "SpotPlacement":{ + "type":"structure", + "members":{ + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + }, + "GroupName":{ + "shape":"String", + "locationName":"groupName" + }, + "Tenancy":{ + "shape":"Tenancy", + "locationName":"tenancy" + } + } + }, + "SpotPrice":{ + "type":"structure", + "members":{ + "InstanceType":{ + "shape":"InstanceType", + "locationName":"instanceType" + }, + "ProductDescription":{ + "shape":"RIProductDescription", + "locationName":"productDescription" + }, + "SpotPrice":{ + "shape":"String", + "locationName":"spotPrice" + }, + "Timestamp":{ + "shape":"DateTime", + "locationName":"timestamp" + }, + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + } + } + }, + "SpotPriceHistoryList":{ + "type":"list", + "member":{ + "shape":"SpotPrice", + "locationName":"item" + } + }, + "StaleIpPermission":{ + "type":"structure", + "members":{ + "FromPort":{ + "shape":"Integer", + "locationName":"fromPort" + }, + "IpProtocol":{ + "shape":"String", + "locationName":"ipProtocol" + }, + "IpRanges":{ + "shape":"IpRanges", + "locationName":"ipRanges" + }, + "PrefixListIds":{ + "shape":"PrefixListIdSet", + "locationName":"prefixListIds" + }, + "ToPort":{ + "shape":"Integer", + "locationName":"toPort" + }, + "UserIdGroupPairs":{ + "shape":"UserIdGroupPairSet", + "locationName":"groups" + } + } + }, + "StaleIpPermissionSet":{ + "type":"list", + "member":{ + "shape":"StaleIpPermission", + "locationName":"item" + } + }, + "StaleSecurityGroup":{ + "type":"structure", + "required":["GroupId"], + "members":{ + "GroupId":{ + "shape":"String", + "locationName":"groupId" + }, + "GroupName":{ + "shape":"String", + "locationName":"groupName" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "StaleIpPermissions":{ + "shape":"StaleIpPermissionSet", + "locationName":"staleIpPermissions" + }, + "StaleIpPermissionsEgress":{ + "shape":"StaleIpPermissionSet", + "locationName":"staleIpPermissionsEgress" + } + } + }, + "StaleSecurityGroupSet":{ + "type":"list", + "member":{ + "shape":"StaleSecurityGroup", + "locationName":"item" + } + }, + "StartInstancesRequest":{ + "type":"structure", + "required":["InstanceIds"], + "members":{ + "InstanceIds":{ + "shape":"InstanceIdStringList", + "locationName":"InstanceId" + }, + "AdditionalInfo":{ + "shape":"String", + "locationName":"additionalInfo" + }, + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + } + } + }, + "StartInstancesResult":{ + "type":"structure", + "members":{ + "StartingInstances":{ + "shape":"InstanceStateChangeList", + "locationName":"instancesSet" + } + } + }, + "State":{ + "type":"string", + "enum":[ + "Pending", + "Available", + "Deleting", + "Deleted" + ] + }, + "StateReason":{ + "type":"structure", + "members":{ + "Code":{ + "shape":"String", + "locationName":"code" + }, + "Message":{ + "shape":"String", + "locationName":"message" + } + } + }, + "Status":{ + "type":"string", + "enum":[ + "MoveInProgress", + "InVpc", + "InClassic" + ] + }, + "StatusName":{ + "type":"string", + "enum":["reachability"] + }, + "StatusType":{ + "type":"string", + "enum":[ + "passed", + "failed", + "insufficient-data", + "initializing" + ] + }, + "StopInstancesRequest":{ + "type":"structure", + "required":["InstanceIds"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InstanceIds":{ + "shape":"InstanceIdStringList", + "locationName":"InstanceId" + }, + "Force":{ + "shape":"Boolean", + "locationName":"force" + } + } + }, + "StopInstancesResult":{ + "type":"structure", + "members":{ + "StoppingInstances":{ + "shape":"InstanceStateChangeList", + "locationName":"instancesSet" + } + } + }, + "Storage":{ + "type":"structure", + "members":{ + "S3":{"shape":"S3Storage"} + } + }, + "String":{"type":"string"}, + "Subnet":{ + "type":"structure", + "members":{ + "SubnetId":{ + "shape":"String", + "locationName":"subnetId" + }, + "State":{ + "shape":"SubnetState", + "locationName":"state" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "CidrBlock":{ + "shape":"String", + "locationName":"cidrBlock" + }, + "Ipv6CidrBlockAssociationSet":{ + "shape":"SubnetIpv6CidrBlockAssociationSet", + "locationName":"ipv6CidrBlockAssociationSet" + }, + "AssignIpv6AddressOnCreation":{ + "shape":"Boolean", + "locationName":"assignIpv6AddressOnCreation" + }, + "AvailableIpAddressCount":{ + "shape":"Integer", + "locationName":"availableIpAddressCount" + }, + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + }, + "DefaultForAz":{ + "shape":"Boolean", + "locationName":"defaultForAz" + }, + "MapPublicIpOnLaunch":{ + "shape":"Boolean", + "locationName":"mapPublicIpOnLaunch" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + } + } + }, + "SubnetCidrBlockState":{ + "type":"structure", + "members":{ + "State":{ + "shape":"SubnetCidrBlockStateCode", + "locationName":"state" + }, + "StatusMessage":{ + "shape":"String", + "locationName":"statusMessage" + } + } + }, + "SubnetCidrBlockStateCode":{ + "type":"string", + "enum":[ + "associating", + "associated", + "disassociating", + "disassociated", + "failing", + "failed" + ] + }, + "SubnetIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"SubnetId" + } + }, + "SubnetIpv6CidrBlockAssociation":{ + "type":"structure", + "members":{ + "Ipv6CidrBlock":{ + "shape":"String", + "locationName":"ipv6CidrBlock" + }, + "Ipv6CidrBlockState":{ + "shape":"SubnetCidrBlockState", + "locationName":"ipv6CidrBlockState" + }, + "AssociationId":{ + "shape":"String", + "locationName":"associationId" + } + } + }, + "SubnetIpv6CidrBlockAssociationSet":{ + "type":"list", + "member":{ + "shape":"SubnetIpv6CidrBlockAssociation", + "locationName":"item" + } + }, + "SubnetList":{ + "type":"list", + "member":{ + "shape":"Subnet", + "locationName":"item" + } + }, + "SubnetState":{ + "type":"string", + "enum":[ + "pending", + "available" + ] + }, + "SummaryStatus":{ + "type":"string", + "enum":[ + "ok", + "impaired", + "insufficient-data", + "not-applicable", + "initializing" + ] + }, + "Tag":{ + "type":"structure", + "members":{ + "Key":{ + "shape":"String", + "locationName":"key" + }, + "Value":{ + "shape":"String", + "locationName":"value" + } + } + }, + "TagDescription":{ + "type":"structure", + "members":{ + "ResourceId":{ + "shape":"String", + "locationName":"resourceId" + }, + "ResourceType":{ + "shape":"ResourceType", + "locationName":"resourceType" + }, + "Key":{ + "shape":"String", + "locationName":"key" + }, + "Value":{ + "shape":"String", + "locationName":"value" + } + } + }, + "TagDescriptionList":{ + "type":"list", + "member":{ + "shape":"TagDescription", + "locationName":"item" + } + }, + "TagList":{ + "type":"list", + "member":{ + "shape":"Tag", + "locationName":"item" + } + }, + "TargetConfiguration":{ + "type":"structure", + "members":{ + "OfferingId":{ + "shape":"String", + "locationName":"offeringId" + }, + "InstanceCount":{ + "shape":"Integer", + "locationName":"instanceCount" + } + } + }, + "TargetConfigurationRequest":{ + "type":"structure", + "required":["OfferingId"], + "members":{ + "OfferingId":{"shape":"String"}, + "InstanceCount":{"shape":"Integer"} + } + }, + "TargetConfigurationRequestSet":{ + "type":"list", + "member":{ + "shape":"TargetConfigurationRequest", + "locationName":"TargetConfigurationRequest" + } + }, + "TargetReservationValue":{ + "type":"structure", + "members":{ + "TargetConfiguration":{ + "shape":"TargetConfiguration", + "locationName":"targetConfiguration" + }, + "ReservationValue":{ + "shape":"ReservationValue", + "locationName":"reservationValue" + } + } + }, + "TargetReservationValueSet":{ + "type":"list", + "member":{ + "shape":"TargetReservationValue", + "locationName":"item" + } + }, + "TelemetryStatus":{ + "type":"string", + "enum":[ + "UP", + "DOWN" + ] + }, + "Tenancy":{ + "type":"string", + "enum":[ + "default", + "dedicated", + "host" + ] + }, + "TerminateInstancesRequest":{ + "type":"structure", + "required":["InstanceIds"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InstanceIds":{ + "shape":"InstanceIdStringList", + "locationName":"InstanceId" + } + } + }, + "TerminateInstancesResult":{ + "type":"structure", + "members":{ + "TerminatingInstances":{ + "shape":"InstanceStateChangeList", + "locationName":"instancesSet" + } + } + }, + "TrafficType":{ + "type":"string", + "enum":[ + "ACCEPT", + "REJECT", + "ALL" + ] + }, + "UnassignIpv6AddressesRequest":{ + "type":"structure", + "required":[ + "NetworkInterfaceId", + "Ipv6Addresses" + ], + "members":{ + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + }, + "Ipv6Addresses":{ + "shape":"Ipv6AddressList", + "locationName":"ipv6Addresses" + } + } + }, + "UnassignIpv6AddressesResult":{ + "type":"structure", + "members":{ + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + }, + "UnassignedIpv6Addresses":{ + "shape":"Ipv6AddressList", + "locationName":"unassignedIpv6Addresses" + } + } + }, + "UnassignPrivateIpAddressesRequest":{ + "type":"structure", + "required":[ + "NetworkInterfaceId", + "PrivateIpAddresses" + ], + "members":{ + "NetworkInterfaceId":{ + "shape":"String", + "locationName":"networkInterfaceId" + }, + "PrivateIpAddresses":{ + "shape":"PrivateIpAddressStringList", + "locationName":"privateIpAddress" + } + } + }, + "UnmonitorInstancesRequest":{ + "type":"structure", + "required":["InstanceIds"], + "members":{ + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + }, + "InstanceIds":{ + "shape":"InstanceIdStringList", + "locationName":"InstanceId" + } + } + }, + "UnmonitorInstancesResult":{ + "type":"structure", + "members":{ + "InstanceMonitorings":{ + "shape":"InstanceMonitoringList", + "locationName":"instancesSet" + } + } + }, + "UnsuccessfulItem":{ + "type":"structure", + "required":["Error"], + "members":{ + "ResourceId":{ + "shape":"String", + "locationName":"resourceId" + }, + "Error":{ + "shape":"UnsuccessfulItemError", + "locationName":"error" + } + } + }, + "UnsuccessfulItemError":{ + "type":"structure", + "required":[ + "Code", + "Message" + ], + "members":{ + "Code":{ + "shape":"String", + "locationName":"code" + }, + "Message":{ + "shape":"String", + "locationName":"message" + } + } + }, + "UnsuccessfulItemList":{ + "type":"list", + "member":{ + "shape":"UnsuccessfulItem", + "locationName":"item" + } + }, + "UnsuccessfulItemSet":{ + "type":"list", + "member":{ + "shape":"UnsuccessfulItem", + "locationName":"item" + } + }, + "UserBucket":{ + "type":"structure", + "members":{ + "S3Bucket":{"shape":"String"}, + "S3Key":{"shape":"String"} + } + }, + "UserBucketDetails":{ + "type":"structure", + "members":{ + "S3Bucket":{ + "shape":"String", + "locationName":"s3Bucket" + }, + "S3Key":{ + "shape":"String", + "locationName":"s3Key" + } + } + }, + "UserData":{ + "type":"structure", + "members":{ + "Data":{ + "shape":"String", + "locationName":"data" + } + } + }, + "UserGroupStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"UserGroup" + } + }, + "UserIdGroupPair":{ + "type":"structure", + "members":{ + "UserId":{ + "shape":"String", + "locationName":"userId" + }, + "GroupName":{ + "shape":"String", + "locationName":"groupName" + }, + "GroupId":{ + "shape":"String", + "locationName":"groupId" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "VpcPeeringConnectionId":{ + "shape":"String", + "locationName":"vpcPeeringConnectionId" + }, + "PeeringStatus":{ + "shape":"String", + "locationName":"peeringStatus" + } + } + }, + "UserIdGroupPairList":{ + "type":"list", + "member":{ + "shape":"UserIdGroupPair", + "locationName":"item" + } + }, + "UserIdGroupPairSet":{ + "type":"list", + "member":{ + "shape":"UserIdGroupPair", + "locationName":"item" + } + }, + "UserIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"UserId" + } + }, + "ValueStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"item" + } + }, + "VgwTelemetry":{ + "type":"structure", + "members":{ + "OutsideIpAddress":{ + "shape":"String", + "locationName":"outsideIpAddress" + }, + "Status":{ + "shape":"TelemetryStatus", + "locationName":"status" + }, + "LastStatusChange":{ + "shape":"DateTime", + "locationName":"lastStatusChange" + }, + "StatusMessage":{ + "shape":"String", + "locationName":"statusMessage" + }, + "AcceptedRouteCount":{ + "shape":"Integer", + "locationName":"acceptedRouteCount" + } + } + }, + "VgwTelemetryList":{ + "type":"list", + "member":{ + "shape":"VgwTelemetry", + "locationName":"item" + } + }, + "VirtualizationType":{ + "type":"string", + "enum":[ + "hvm", + "paravirtual" + ] + }, + "Volume":{ + "type":"structure", + "members":{ + "VolumeId":{ + "shape":"String", + "locationName":"volumeId" + }, + "Size":{ + "shape":"Integer", + "locationName":"size" + }, + "SnapshotId":{ + "shape":"String", + "locationName":"snapshotId" + }, + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + }, + "State":{ + "shape":"VolumeState", + "locationName":"status" + }, + "CreateTime":{ + "shape":"DateTime", + "locationName":"createTime" + }, + "Attachments":{ + "shape":"VolumeAttachmentList", + "locationName":"attachmentSet" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + }, + "VolumeType":{ + "shape":"VolumeType", + "locationName":"volumeType" + }, + "Iops":{ + "shape":"Integer", + "locationName":"iops" + }, + "Encrypted":{ + "shape":"Boolean", + "locationName":"encrypted" + }, + "KmsKeyId":{ + "shape":"String", + "locationName":"kmsKeyId" + } + } + }, + "VolumeAttachment":{ + "type":"structure", + "members":{ + "VolumeId":{ + "shape":"String", + "locationName":"volumeId" + }, + "InstanceId":{ + "shape":"String", + "locationName":"instanceId" + }, + "Device":{ + "shape":"String", + "locationName":"device" + }, + "State":{ + "shape":"VolumeAttachmentState", + "locationName":"status" + }, + "AttachTime":{ + "shape":"DateTime", + "locationName":"attachTime" + }, + "DeleteOnTermination":{ + "shape":"Boolean", + "locationName":"deleteOnTermination" + } + } + }, + "VolumeAttachmentList":{ + "type":"list", + "member":{ + "shape":"VolumeAttachment", + "locationName":"item" + } + }, + "VolumeAttachmentState":{ + "type":"string", + "enum":[ + "attaching", + "attached", + "detaching", + "detached" + ] + }, + "VolumeAttributeName":{ + "type":"string", + "enum":[ + "autoEnableIO", + "productCodes" + ] + }, + "VolumeDetail":{ + "type":"structure", + "required":["Size"], + "members":{ + "Size":{ + "shape":"Long", + "locationName":"size" + } + } + }, + "VolumeIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"VolumeId" + } + }, + "VolumeList":{ + "type":"list", + "member":{ + "shape":"Volume", + "locationName":"item" + } + }, + "VolumeModification":{ + "type":"structure", + "members":{ + "VolumeId":{ + "shape":"String", + "locationName":"volumeId" + }, + "ModificationState":{ + "shape":"VolumeModificationState", + "locationName":"modificationState" + }, + "StatusMessage":{ + "shape":"String", + "locationName":"statusMessage" + }, + "TargetSize":{ + "shape":"Integer", + "locationName":"targetSize" + }, + "TargetIops":{ + "shape":"Integer", + "locationName":"targetIops" + }, + "TargetVolumeType":{ + "shape":"VolumeType", + "locationName":"targetVolumeType" + }, + "OriginalSize":{ + "shape":"Integer", + "locationName":"originalSize" + }, + "OriginalIops":{ + "shape":"Integer", + "locationName":"originalIops" + }, + "OriginalVolumeType":{ + "shape":"VolumeType", + "locationName":"originalVolumeType" + }, + "Progress":{ + "shape":"Long", + "locationName":"progress" + }, + "StartTime":{ + "shape":"DateTime", + "locationName":"startTime" + }, + "EndTime":{ + "shape":"DateTime", + "locationName":"endTime" + } + } + }, + "VolumeModificationList":{ + "type":"list", + "member":{ + "shape":"VolumeModification", + "locationName":"item" + } + }, + "VolumeModificationState":{ + "type":"string", + "enum":[ + "modifying", + "optimizing", + "completed", + "failed" + ] + }, + "VolumeState":{ + "type":"string", + "enum":[ + "creating", + "available", + "in-use", + "deleting", + "deleted", + "error" + ] + }, + "VolumeStatusAction":{ + "type":"structure", + "members":{ + "Code":{ + "shape":"String", + "locationName":"code" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "EventType":{ + "shape":"String", + "locationName":"eventType" + }, + "EventId":{ + "shape":"String", + "locationName":"eventId" + } + } + }, + "VolumeStatusActionsList":{ + "type":"list", + "member":{ + "shape":"VolumeStatusAction", + "locationName":"item" + } + }, + "VolumeStatusDetails":{ + "type":"structure", + "members":{ + "Name":{ + "shape":"VolumeStatusName", + "locationName":"name" + }, + "Status":{ + "shape":"String", + "locationName":"status" + } + } + }, + "VolumeStatusDetailsList":{ + "type":"list", + "member":{ + "shape":"VolumeStatusDetails", + "locationName":"item" + } + }, + "VolumeStatusEvent":{ + "type":"structure", + "members":{ + "EventType":{ + "shape":"String", + "locationName":"eventType" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "NotBefore":{ + "shape":"DateTime", + "locationName":"notBefore" + }, + "NotAfter":{ + "shape":"DateTime", + "locationName":"notAfter" + }, + "EventId":{ + "shape":"String", + "locationName":"eventId" + } + } + }, + "VolumeStatusEventsList":{ + "type":"list", + "member":{ + "shape":"VolumeStatusEvent", + "locationName":"item" + } + }, + "VolumeStatusInfo":{ + "type":"structure", + "members":{ + "Status":{ + "shape":"VolumeStatusInfoStatus", + "locationName":"status" + }, + "Details":{ + "shape":"VolumeStatusDetailsList", + "locationName":"details" + } + } + }, + "VolumeStatusInfoStatus":{ + "type":"string", + "enum":[ + "ok", + "impaired", + "insufficient-data" + ] + }, + "VolumeStatusItem":{ + "type":"structure", + "members":{ + "VolumeId":{ + "shape":"String", + "locationName":"volumeId" + }, + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + }, + "VolumeStatus":{ + "shape":"VolumeStatusInfo", + "locationName":"volumeStatus" + }, + "Events":{ + "shape":"VolumeStatusEventsList", + "locationName":"eventsSet" + }, + "Actions":{ + "shape":"VolumeStatusActionsList", + "locationName":"actionsSet" + } + } + }, + "VolumeStatusList":{ + "type":"list", + "member":{ + "shape":"VolumeStatusItem", + "locationName":"item" + } + }, + "VolumeStatusName":{ + "type":"string", + "enum":[ + "io-enabled", + "io-performance" + ] + }, + "VolumeType":{ + "type":"string", + "enum":[ + "standard", + "io1", + "gp2", + "sc1", + "st1" + ] + }, + "Vpc":{ + "type":"structure", + "members":{ + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "State":{ + "shape":"VpcState", + "locationName":"state" + }, + "CidrBlock":{ + "shape":"String", + "locationName":"cidrBlock" + }, + "DhcpOptionsId":{ + "shape":"String", + "locationName":"dhcpOptionsId" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + }, + "InstanceTenancy":{ + "shape":"Tenancy", + "locationName":"instanceTenancy" + }, + "IsDefault":{ + "shape":"Boolean", + "locationName":"isDefault" + }, + "Ipv6CidrBlockAssociationSet":{ + "shape":"VpcIpv6CidrBlockAssociationSet", + "locationName":"ipv6CidrBlockAssociationSet" + } + } + }, + "VpcAttachment":{ + "type":"structure", + "members":{ + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "State":{ + "shape":"AttachmentStatus", + "locationName":"state" + } + } + }, + "VpcAttachmentList":{ + "type":"list", + "member":{ + "shape":"VpcAttachment", + "locationName":"item" + } + }, + "VpcAttributeName":{ + "type":"string", + "enum":[ + "enableDnsSupport", + "enableDnsHostnames" + ] + }, + "VpcCidrBlockState":{ + "type":"structure", + "members":{ + "State":{ + "shape":"VpcCidrBlockStateCode", + "locationName":"state" + }, + "StatusMessage":{ + "shape":"String", + "locationName":"statusMessage" + } + } + }, + "VpcCidrBlockStateCode":{ + "type":"string", + "enum":[ + "associating", + "associated", + "disassociating", + "disassociated", + "failing", + "failed" + ] + }, + "VpcClassicLink":{ + "type":"structure", + "members":{ + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "ClassicLinkEnabled":{ + "shape":"Boolean", + "locationName":"classicLinkEnabled" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + } + } + }, + "VpcClassicLinkIdList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"VpcId" + } + }, + "VpcClassicLinkList":{ + "type":"list", + "member":{ + "shape":"VpcClassicLink", + "locationName":"item" + } + }, + "VpcEndpoint":{ + "type":"structure", + "members":{ + "VpcEndpointId":{ + "shape":"String", + "locationName":"vpcEndpointId" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "ServiceName":{ + "shape":"String", + "locationName":"serviceName" + }, + "State":{ + "shape":"State", + "locationName":"state" + }, + "PolicyDocument":{ + "shape":"String", + "locationName":"policyDocument" + }, + "RouteTableIds":{ + "shape":"ValueStringList", + "locationName":"routeTableIdSet" + }, + "CreationTimestamp":{ + "shape":"DateTime", + "locationName":"creationTimestamp" + } + } + }, + "VpcEndpointSet":{ + "type":"list", + "member":{ + "shape":"VpcEndpoint", + "locationName":"item" + } + }, + "VpcIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"VpcId" + } + }, + "VpcIpv6CidrBlockAssociation":{ + "type":"structure", + "members":{ + "Ipv6CidrBlock":{ + "shape":"String", + "locationName":"ipv6CidrBlock" + }, + "Ipv6CidrBlockState":{ + "shape":"VpcCidrBlockState", + "locationName":"ipv6CidrBlockState" + }, + "AssociationId":{ + "shape":"String", + "locationName":"associationId" + } + } + }, + "VpcIpv6CidrBlockAssociationSet":{ + "type":"list", + "member":{ + "shape":"VpcIpv6CidrBlockAssociation", + "locationName":"item" + } + }, + "VpcList":{ + "type":"list", + "member":{ + "shape":"Vpc", + "locationName":"item" + } + }, + "VpcPeeringConnection":{ + "type":"structure", + "members":{ + "AccepterVpcInfo":{ + "shape":"VpcPeeringConnectionVpcInfo", + "locationName":"accepterVpcInfo" + }, + "ExpirationTime":{ + "shape":"DateTime", + "locationName":"expirationTime" + }, + "RequesterVpcInfo":{ + "shape":"VpcPeeringConnectionVpcInfo", + "locationName":"requesterVpcInfo" + }, + "Status":{ + "shape":"VpcPeeringConnectionStateReason", + "locationName":"status" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + }, + "VpcPeeringConnectionId":{ + "shape":"String", + "locationName":"vpcPeeringConnectionId" + } + } + }, + "VpcPeeringConnectionList":{ + "type":"list", + "member":{ + "shape":"VpcPeeringConnection", + "locationName":"item" + } + }, + "VpcPeeringConnectionOptionsDescription":{ + "type":"structure", + "members":{ + "AllowEgressFromLocalClassicLinkToRemoteVpc":{ + "shape":"Boolean", + "locationName":"allowEgressFromLocalClassicLinkToRemoteVpc" + }, + "AllowEgressFromLocalVpcToRemoteClassicLink":{ + "shape":"Boolean", + "locationName":"allowEgressFromLocalVpcToRemoteClassicLink" + }, + "AllowDnsResolutionFromRemoteVpc":{ + "shape":"Boolean", + "locationName":"allowDnsResolutionFromRemoteVpc" + } + } + }, + "VpcPeeringConnectionStateReason":{ + "type":"structure", + "members":{ + "Code":{ + "shape":"VpcPeeringConnectionStateReasonCode", + "locationName":"code" + }, + "Message":{ + "shape":"String", + "locationName":"message" + } + } + }, + "VpcPeeringConnectionStateReasonCode":{ + "type":"string", + "enum":[ + "initiating-request", + "pending-acceptance", + "active", + "deleted", + "rejected", + "failed", + "expired", + "provisioning", + "deleting" + ] + }, + "VpcPeeringConnectionVpcInfo":{ + "type":"structure", + "members":{ + "CidrBlock":{ + "shape":"String", + "locationName":"cidrBlock" + }, + "OwnerId":{ + "shape":"String", + "locationName":"ownerId" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "Ipv6CidrBlockSet":{ + "shape":"Ipv6CidrBlockSet", + "locationName":"ipv6CidrBlockSet" + }, + "PeeringOptions":{ + "shape":"VpcPeeringConnectionOptionsDescription", + "locationName":"peeringOptions" + } + } + }, + "VpcState":{ + "type":"string", + "enum":[ + "pending", + "available" + ] + }, + "VpnConnection":{ + "type":"structure", + "members":{ + "VpnConnectionId":{ + "shape":"String", + "locationName":"vpnConnectionId" + }, + "State":{ + "shape":"VpnState", + "locationName":"state" + }, + "CustomerGatewayConfiguration":{ + "shape":"String", + "locationName":"customerGatewayConfiguration" + }, + "Type":{ + "shape":"GatewayType", + "locationName":"type" + }, + "CustomerGatewayId":{ + "shape":"String", + "locationName":"customerGatewayId" + }, + "VpnGatewayId":{ + "shape":"String", + "locationName":"vpnGatewayId" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + }, + "VgwTelemetry":{ + "shape":"VgwTelemetryList", + "locationName":"vgwTelemetry" + }, + "Options":{ + "shape":"VpnConnectionOptions", + "locationName":"options" + }, + "Routes":{ + "shape":"VpnStaticRouteList", + "locationName":"routes" + } + } + }, + "VpnConnectionIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"VpnConnectionId" + } + }, + "VpnConnectionList":{ + "type":"list", + "member":{ + "shape":"VpnConnection", + "locationName":"item" + } + }, + "VpnConnectionOptions":{ + "type":"structure", + "members":{ + "StaticRoutesOnly":{ + "shape":"Boolean", + "locationName":"staticRoutesOnly" + } + } + }, + "VpnConnectionOptionsSpecification":{ + "type":"structure", + "members":{ + "StaticRoutesOnly":{ + "shape":"Boolean", + "locationName":"staticRoutesOnly" + } + } + }, + "VpnGateway":{ + "type":"structure", + "members":{ + "VpnGatewayId":{ + "shape":"String", + "locationName":"vpnGatewayId" + }, + "State":{ + "shape":"VpnState", + "locationName":"state" + }, + "Type":{ + "shape":"GatewayType", + "locationName":"type" + }, + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + }, + "VpcAttachments":{ + "shape":"VpcAttachmentList", + "locationName":"attachments" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + } + } + }, + "VpnGatewayIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"VpnGatewayId" + } + }, + "VpnGatewayList":{ + "type":"list", + "member":{ + "shape":"VpnGateway", + "locationName":"item" + } + }, + "VpnState":{ + "type":"string", + "enum":[ + "pending", + "available", + "deleting", + "deleted" + ] + }, + "VpnStaticRoute":{ + "type":"structure", + "members":{ + "DestinationCidrBlock":{ + "shape":"String", + "locationName":"destinationCidrBlock" + }, + "Source":{ + "shape":"VpnStaticRouteSource", + "locationName":"source" + }, + "State":{ + "shape":"VpnState", + "locationName":"state" + } + } + }, + "VpnStaticRouteList":{ + "type":"list", + "member":{ + "shape":"VpnStaticRoute", + "locationName":"item" + } + }, + "VpnStaticRouteSource":{ + "type":"string", + "enum":["Static"] + }, + "ZoneNameStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"ZoneName" + } + }, + "scope":{ + "type":"string", + "enum":[ + "Availability Zone", + "Region" + ] + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/docs-2.json new file mode 100755 index 000000000..3c1011ef4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/docs-2.json @@ -0,0 +1,7170 @@ +{ + "version": "2.0", + "service": "Amazon Elastic Compute Cloud

Amazon Elastic Compute Cloud (Amazon EC2) provides resizable computing capacity in the Amazon Web Services (AWS) cloud. Using Amazon EC2 eliminates your need to invest in hardware up front, so you can develop and deploy applications faster.

", + "operations": { + "AcceptReservedInstancesExchangeQuote": "

Accepts the Convertible Reserved Instance exchange quote described in the GetReservedInstancesExchangeQuote call.

", + "AcceptVpcPeeringConnection": "

Accept a VPC peering connection request. To accept a request, the VPC peering connection must be in the pending-acceptance state, and you must be the owner of the peer VPC. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests.

", + "AllocateAddress": "

Acquires an Elastic IP address.

An Elastic IP address is for use either in the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

", + "AllocateHosts": "

Allocates a Dedicated Host to your account. At minimum you need to specify the instance size type, Availability Zone, and quantity of hosts you want to allocate.

", + "AssignIpv6Addresses": "

Assigns one or more IPv6 addresses to the specified network interface. You can specify one or more specific IPv6 addresses, or you can specify the number of IPv6 addresses to be automatically assigned from within the subnet's IPv6 CIDR block range. You can assign as many IPv6 addresses to a network interface as you can assign private IPv4 addresses, and the limit varies per instance type. For information, see IP Addresses Per Network Interface Per Instance Type in the Amazon Elastic Compute Cloud User Guide.

", + "AssignPrivateIpAddresses": "

Assigns one or more secondary private IP addresses to the specified network interface. You can specify one or more specific secondary IP addresses, or you can specify the number of secondary IP addresses to be automatically assigned within the subnet's CIDR block range. The number of secondary IP addresses that you can assign to an instance varies by instance type. For information about instance types, see Instance Types in the Amazon Elastic Compute Cloud User Guide. For more information about Elastic IP addresses, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

AssignPrivateIpAddresses is available only in EC2-VPC.

", + "AssociateAddress": "

Associates an Elastic IP address with an instance or a network interface.

An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

[EC2-Classic, VPC in an EC2-VPC-only account] If the Elastic IP address is already associated with a different instance, it is disassociated from that instance and associated with the specified instance.

[VPC in an EC2-Classic account] If you don't specify a private IP address, the Elastic IP address is associated with the primary IP address. If the Elastic IP address is already associated with a different instance or a network interface, you get an error unless you allow reassociation.

This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error, and you may be charged for each time the Elastic IP address is remapped to the same instance. For more information, see the Elastic IP Addresses section of Amazon EC2 Pricing.

", + "AssociateDhcpOptions": "

Associates a set of DHCP options (that you've previously created) with the specified VPC, or associates no DHCP options with the VPC.

After you associate the options with the VPC, any existing instances and all new instances that you launch in that VPC use the options. You don't need to restart or relaunch the instances. They automatically pick up the changes within a few hours, depending on how frequently the instance renews its DHCP lease. You can explicitly renew the lease using the operating system on the instance.

For more information, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

", + "AssociateIamInstanceProfile": "

Associates an IAM instance profile with a running or stopped instance. You cannot associate more than one IAM instance profile with an instance.

", + "AssociateRouteTable": "

Associates a subnet with a route table. The subnet and route table must be in the same VPC. This association causes traffic originating from the subnet to be routed according to the routes in the route table. The action returns an association ID, which you need in order to disassociate the route table from the subnet later. A route table can be associated with multiple subnets.

For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

", + "AssociateSubnetCidrBlock": "

Associates a CIDR block with your subnet. You can only associate a single IPv6 CIDR block with your subnet. An IPv6 CIDR block must have a prefix length of /64.

", + "AssociateVpcCidrBlock": "

Associates a CIDR block with your VPC. You can only associate a single Amazon-provided IPv6 CIDR block with your VPC. The IPv6 CIDR block size is fixed at /56.

", + "AttachClassicLinkVpc": "

Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or more of the VPC's security groups. You cannot link an EC2-Classic instance to more than one VPC at a time. You can only link an instance that's in the running state. An instance is automatically unlinked from a VPC when it's stopped - you can link it to the VPC again when you restart it.

After you've linked an instance, you cannot change the VPC security groups that are associated with it. To change the security groups, you must first unlink the instance, and then link it again.

Linking your instance to a VPC is sometimes referred to as attaching your instance.

", + "AttachInternetGateway": "

Attaches an Internet gateway to a VPC, enabling connectivity between the Internet and the VPC. For more information about your VPC and Internet gateway, see the Amazon Virtual Private Cloud User Guide.

", + "AttachNetworkInterface": "

Attaches a network interface to an instance.

", + "AttachVolume": "

Attaches an EBS volume to a running or stopped instance and exposes it to the instance with the specified device name.

Encrypted EBS volumes may only be attached to instances that support Amazon EBS encryption. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

For a list of supported device names, see Attaching an EBS Volume to an Instance. Any device names that aren't reserved for instance store volumes can be used for EBS volumes. For more information, see Amazon EC2 Instance Store in the Amazon Elastic Compute Cloud User Guide.

If a volume has an AWS Marketplace product code:

  • The volume can be attached only to a stopped instance.

  • AWS Marketplace product codes are copied from the volume to the instance.

  • You must be subscribed to the product.

  • The instance type and operating system of the instance must support the product. For example, you can't detach a volume from a Windows instance and attach it to a Linux instance.

For an overview of the AWS Marketplace, see Introducing AWS Marketplace.

For more information about EBS volumes, see Attaching Amazon EBS Volumes in the Amazon Elastic Compute Cloud User Guide.

", + "AttachVpnGateway": "

Attaches a virtual private gateway to a VPC. For more information, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.

", + "AuthorizeSecurityGroupEgress": "

[EC2-VPC only] Adds one or more egress rules to a security group for use with a VPC. Specifically, this action permits instances to send traffic to one or more destination IPv4 or IPv6 CIDR address ranges, or to one or more destination security groups for the same VPC. This action doesn't apply to security groups for use in EC2-Classic. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide. For more information about security group limits, see Amazon VPC Limits.

Each rule consists of the protocol (for example, TCP), plus either a CIDR range or a source group. For the TCP and UDP protocols, you must also specify the destination port or port range. For the ICMP protocol, you must also specify the ICMP type and code. You can use -1 for the type or code to mean all types or all codes.

Rule changes are propagated to affected instances as quickly as possible. However, a small delay might occur.

", + "AuthorizeSecurityGroupIngress": "

Adds one or more ingress rules to a security group.

Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

[EC2-Classic] This action gives one or more IPv4 CIDR address ranges permission to access a security group in your account, or gives one or more security groups (called the source groups) permission to access a security group for your account. A source group can be for your own AWS account, or another. You can have up to 100 rules per group.

[EC2-VPC] This action gives one or more IPv4 or IPv6 CIDR address ranges permission to access a security group in your VPC, or gives one or more other security groups (called the source groups) permission to access a security group for your VPC. The security groups must all be for the same VPC or a peer VPC in a VPC peering connection. For more information about VPC security group limits, see Amazon VPC Limits.

", + "BundleInstance": "

Bundles an Amazon instance store-backed Windows instance.

During bundling, only the root device volume (C:\\) is bundled. Data on other instance store volumes is not preserved.

This action is not applicable for Linux/Unix instances or Windows instances that are backed by Amazon EBS.

For more information, see Creating an Instance Store-Backed Windows AMI.

", + "CancelBundleTask": "

Cancels a bundling operation for an instance store-backed Windows instance.

", + "CancelConversionTask": "

Cancels an active conversion task. The task can be the import of an instance or volume. The action removes all artifacts of the conversion, including a partially uploaded volume or instance. If the conversion is complete or is in the process of transferring the final disk image, the command fails and returns an exception.

For more information, see Importing a Virtual Machine Using the Amazon EC2 CLI.

", + "CancelExportTask": "

Cancels an active export task. The request removes all artifacts of the export, including any partially-created Amazon S3 objects. If the export task is complete or is in the process of transferring the final disk image, the command fails and returns an error.

", + "CancelImportTask": "

Cancels an in-process import virtual machine or import snapshot task.

", + "CancelReservedInstancesListing": "

Cancels the specified Reserved Instance listing in the Reserved Instance Marketplace.

For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

", + "CancelSpotFleetRequests": "

Cancels the specified Spot fleet requests.

After you cancel a Spot fleet request, the Spot fleet launches no new Spot instances. You must specify whether the Spot fleet should also terminate its Spot instances. If you terminate the instances, the Spot fleet request enters the cancelled_terminating state. Otherwise, the Spot fleet request enters the cancelled_running state and the instances continue to run until they are interrupted or you terminate them manually.

", + "CancelSpotInstanceRequests": "

Cancels one or more Spot instance requests. Spot instances are instances that Amazon EC2 starts on your behalf when the bid price that you specify exceeds the current Spot price. Amazon EC2 periodically sets the Spot price based on available Spot instance capacity and current Spot instance requests. For more information, see Spot Instance Requests in the Amazon Elastic Compute Cloud User Guide.

Canceling a Spot instance request does not terminate running Spot instances associated with the request.

", + "ConfirmProductInstance": "

Determines whether a product code is associated with an instance. This action can only be used by the owner of the product code. It is useful when a product code owner needs to verify whether another user's instance is eligible for support.

", + "CopyImage": "

Initiates the copy of an AMI from the specified source region to the current region. You specify the destination region by using its endpoint when making the request.

For more information, see Copying AMIs in the Amazon Elastic Compute Cloud User Guide.

", + "CopySnapshot": "

Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3. You can copy the snapshot within the same region or from one region to another. You can use the snapshot to create EBS volumes or Amazon Machine Images (AMIs). The snapshot is copied to the regional endpoint that you send the HTTP request to.

Copies of encrypted EBS snapshots remain encrypted. Copies of unencrypted snapshots remain unencrypted, unless the Encrypted flag is specified during the snapshot copy operation. By default, encrypted snapshot copies use the default AWS Key Management Service (AWS KMS) customer master key (CMK); however, you can specify a non-default CMK with the KmsKeyId parameter.

To copy an encrypted snapshot that has been shared from another account, you must have permissions for the CMK used to encrypt the snapshot.

Snapshots created by the CopySnapshot action have an arbitrary volume ID that should not be used for any purpose.

For more information, see Copying an Amazon EBS Snapshot in the Amazon Elastic Compute Cloud User Guide.

", + "CreateCustomerGateway": "

Provides information to AWS about your VPN customer gateway device. The customer gateway is the appliance at your end of the VPN connection. (The device on the AWS side of the VPN connection is the virtual private gateway.) You must provide the Internet-routable IP address of the customer gateway's external interface. The IP address must be static and may be behind a device performing network address translation (NAT).

For devices that use Border Gateway Protocol (BGP), you can also provide the device's BGP Autonomous System Number (ASN). You can use an existing ASN assigned to your network. If you don't have an ASN already, you can use a private ASN (in the 64512 - 65534 range).

Amazon EC2 supports all 2-byte ASN numbers in the range of 1 - 65534, with the exception of 7224, which is reserved in the us-east-1 region, and 9059, which is reserved in the eu-west-1 region.

For more information about VPN customer gateways, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.

You cannot create more than one customer gateway with the same VPN type, IP address, and BGP ASN parameter values. If you run an identical request more than one time, the first request creates the customer gateway, and subsequent requests return information about the existing customer gateway. The subsequent requests do not create new customer gateway resources.

", + "CreateDhcpOptions": "

Creates a set of DHCP options for your VPC. After creating the set, you must associate it with the VPC, causing all existing and new instances that you launch in the VPC to use this set of DHCP options. The following are the individual DHCP options you can specify. For more information about the options, see RFC 2132.

  • domain-name-servers - The IP addresses of up to four domain name servers, or AmazonProvidedDNS. The default DHCP option set specifies AmazonProvidedDNS. If specifying more than one domain name server, specify the IP addresses in a single parameter, separated by commas. If you want your instance to receive a custom DNS hostname as specified in domain-name, you must set domain-name-servers to a custom DNS server.

  • domain-name - If you're using AmazonProvidedDNS in \"us-east-1\", specify \"ec2.internal\". If you're using AmazonProvidedDNS in another region, specify \"region.compute.internal\" (for example, \"ap-northeast-1.compute.internal\"). Otherwise, specify a domain name (for example, \"MyCompany.com\"). This value is used to complete unqualified DNS hostnames. Important: Some Linux operating systems accept multiple domain names separated by spaces. However, Windows and other Linux operating systems treat the value as a single domain, which results in unexpected behavior. If your DHCP options set is associated with a VPC that has instances with multiple operating systems, specify only one domain name.

  • ntp-servers - The IP addresses of up to four Network Time Protocol (NTP) servers.

  • netbios-name-servers - The IP addresses of up to four NetBIOS name servers.

  • netbios-node-type - The NetBIOS node type (1, 2, 4, or 8). We recommend that you specify 2 (broadcast and multicast are not currently supported). For more information about these node types, see RFC 2132.

Your VPC automatically starts out with a set of DHCP options that includes only a DNS server that we provide (AmazonProvidedDNS). If you create a set of options, and if your VPC has an Internet gateway, make sure to set the domain-name-servers option either to AmazonProvidedDNS or to a domain name server of your choice. For more information about DHCP options, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

", + "CreateEgressOnlyInternetGateway": "

[IPv6 only] Creates an egress-only Internet gateway for your VPC. An egress-only Internet gateway is used to enable outbound communication over IPv6 from instances in your VPC to the Internet, and prevents hosts outside of your VPC from initiating an IPv6 connection with your instance.

", + "CreateFlowLogs": "

Creates one or more flow logs to capture IP traffic for a specific network interface, subnet, or VPC. Flow logs are delivered to a specified log group in Amazon CloudWatch Logs. If you specify a VPC or subnet in the request, a log stream is created in CloudWatch Logs for each network interface in the subnet or VPC. Log streams can include information about accepted and rejected traffic to a network interface. You can view the data in your log streams using Amazon CloudWatch Logs.

In your request, you must also specify an IAM role that has permission to publish logs to CloudWatch Logs.

", + "CreateImage": "

Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is either running or stopped.

If you customized your instance with instance store volumes or EBS volumes in addition to the root device volume, the new AMI contains block device mapping information for those volumes. When you launch an instance from this new AMI, the instance automatically launches with those additional volumes.

For more information, see Creating Amazon EBS-Backed Linux AMIs in the Amazon Elastic Compute Cloud User Guide.

", + "CreateInstanceExportTask": "

Exports a running or stopped instance to an S3 bucket.

For information about the supported operating systems, image formats, and known limitations for the types of instances you can export, see Exporting an Instance as a VM Using VM Import/Export in the VM Import/Export User Guide.

", + "CreateInternetGateway": "

Creates an Internet gateway for use with a VPC. After creating the Internet gateway, you attach it to a VPC using AttachInternetGateway.

For more information about your VPC and Internet gateway, see the Amazon Virtual Private Cloud User Guide.

", + "CreateKeyPair": "

Creates a 2048-bit RSA key pair with the specified name. Amazon EC2 stores the public key and displays the private key for you to save to a file. The private key is returned as an unencrypted PEM encoded PKCS#8 private key. If a key with the specified name already exists, Amazon EC2 returns an error.

You can have up to five thousand key pairs per region.

The key pair returned to you is available only in the region in which you create it. To create a key pair that is available in all regions, use ImportKeyPair.

For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

", + "CreateNatGateway": "

Creates a NAT gateway in the specified subnet. A NAT gateway can be used to enable instances in a private subnet to connect to the Internet. This action creates a network interface in the specified subnet with a private IP address from the IP address range of the subnet. For more information, see NAT Gateways in the Amazon Virtual Private Cloud User Guide.

", + "CreateNetworkAcl": "

Creates a network ACL in a VPC. Network ACLs provide an optional layer of security (in addition to security groups) for the instances in your VPC.

For more information about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

", + "CreateNetworkAclEntry": "

Creates an entry (a rule) in a network ACL with the specified rule number. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the ACL, we process the entries in the ACL according to the rule numbers, in ascending order. Each network ACL has a set of ingress rules and a separate set of egress rules.

We recommend that you leave room between the rule numbers (for example, 100, 110, 120, ...), and not number them one right after the other (for example, 101, 102, 103, ...). This makes it easier to add a rule between existing ones without having to renumber the rules.

After you add an entry, you can't modify it; you must either replace it, or create an entry and delete the old one.

For more information about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

", + "CreateNetworkInterface": "

Creates a network interface in the specified subnet.

For more information about network interfaces, see Elastic Network Interfaces in the Amazon Virtual Private Cloud User Guide.

", + "CreatePlacementGroup": "

Creates a placement group that you launch cluster instances into. You must give the group a name that's unique within the scope of your account.

For more information about placement groups and cluster instances, see Cluster Instances in the Amazon Elastic Compute Cloud User Guide.

", + "CreateReservedInstancesListing": "

Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in the Reserved Instance Marketplace. You can submit one Standard Reserved Instance listing at a time. To get a list of your Standard Reserved Instances, you can use the DescribeReservedInstances operation.

Only Standard Reserved Instances with a capacity reservation can be sold in the Reserved Instance Marketplace. Convertible Reserved Instances and Standard Reserved Instances with a regional benefit cannot be sold.

The Reserved Instance Marketplace matches sellers who want to resell Standard Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.

To sell your Standard Reserved Instances, you must first register as a seller in the Reserved Instance Marketplace. After completing the registration process, you can create a Reserved Instance Marketplace listing of some or all of your Standard Reserved Instances, and specify the upfront price to receive for them. Your Standard Reserved Instance listings then become available for purchase. To view the details of your Standard Reserved Instance listing, you can use the DescribeReservedInstancesListings operation.

For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

", + "CreateRoute": "

Creates a route in a route table within a VPC.

You must specify one of the following targets: Internet gateway or virtual private gateway, NAT instance, NAT gateway, VPC peering connection, network interface, or egress-only Internet gateway.

When determining how to route traffic, we use the route with the most specific match. For example, traffic is destined for the IPv4 address 192.0.2.3, and the route table includes the following two IPv4 routes:

  • 192.0.2.0/24 (goes to some target A)

  • 192.0.2.0/28 (goes to some target B)

Both routes apply to the traffic destined for 192.0.2.3. However, the second route in the list covers a smaller number of IP addresses and is therefore more specific, so we use that route to determine where to target the traffic.

For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

", + "CreateRouteTable": "

Creates a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet.

For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

", + "CreateSecurityGroup": "

Creates a security group.

A security group is for use with instances either in the EC2-Classic platform or in a specific VPC. For more information, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.

EC2-Classic: You can have up to 500 security groups.

EC2-VPC: You can create up to 500 security groups per VPC.

When you create a security group, you specify a friendly name of your choice. You can have a security group for use in EC2-Classic with the same name as a security group for use in a VPC. However, you can't have two security groups for use in EC2-Classic with the same name or two security groups for use in a VPC with the same name.

You have a default security group for use in EC2-Classic and a default security group for use in your VPC. If you don't specify a security group when you launch an instance, the instance is launched into the appropriate default security group. A default security group includes a default rule that grants instances unrestricted network access to each other.

You can add or remove rules from your security groups using AuthorizeSecurityGroupIngress, AuthorizeSecurityGroupEgress, RevokeSecurityGroupIngress, and RevokeSecurityGroupEgress.

", + "CreateSnapshot": "

Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use snapshots for backups, to make copies of EBS volumes, and to save data before shutting down an instance.

When a snapshot is created, any AWS Marketplace product codes that are associated with the source volume are propagated to the snapshot.

You can take a snapshot of an attached volume that is in use. However, snapshots only capture data that has been written to your EBS volume at the time the snapshot command is issued; this may exclude any data that has been cached by any applications or the operating system. If you can pause any file systems on the volume long enough to take a snapshot, your snapshot should be complete. However, if you cannot pause all file writes to the volume, you should unmount the volume from within the instance, issue the snapshot command, and then remount the volume to ensure a consistent and complete snapshot. You may remount and use your volume while the snapshot status is pending.

To create a snapshot for EBS volumes that serve as root devices, you should stop the instance before taking the snapshot.

Snapshots that are taken from encrypted volumes are automatically encrypted. Volumes that are created from encrypted snapshots are also automatically encrypted. Your encrypted volumes and any associated snapshots always remain protected.

For more information, see Amazon Elastic Block Store and Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

", + "CreateSpotDatafeedSubscription": "

Creates a data feed for Spot instances, enabling you to view Spot instance usage logs. You can create one data feed per AWS account. For more information, see Spot Instance Data Feed in the Amazon Elastic Compute Cloud User Guide.

", + "CreateSubnet": "

Creates a subnet in an existing VPC.

When you create each subnet, you provide the VPC ID and the CIDR block you want for the subnet. After you create a subnet, you can't change its CIDR block. The subnet's IPv4 CIDR block can be the same as the VPC's IPv4 CIDR block (assuming you want only a single subnet in the VPC), or a subset of the VPC's IPv4 CIDR block. If you create more than one subnet in a VPC, the subnets' CIDR blocks must not overlap. The smallest IPv4 subnet (and VPC) you can create uses a /28 netmask (16 IPv4 addresses), and the largest uses a /16 netmask (65,536 IPv4 addresses).

If you've associated an IPv6 CIDR block with your VPC, you can create a subnet with an IPv6 CIDR block that uses a /64 prefix length.

AWS reserves both the first four and the last IP address in each subnet's CIDR block. They're not available for use.

If you add more than one subnet to a VPC, they're set up in a star topology with a logical router in the middle.

If you launch an instance in a VPC using an Amazon EBS-backed AMI, the IP address doesn't change if you stop and restart the instance (unlike a similar instance launched outside a VPC, which gets a new IP address when restarted). It's therefore possible to have a subnet with no running instances (they're all stopped), but no remaining IP addresses available.

For more information about subnets, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.

", + "CreateTags": "

Adds or overwrites one or more tags for the specified Amazon EC2 resource or resources. Each resource can have a maximum of 50 tags. Each tag consists of a key and optional value. Tag keys must be unique per resource.

For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide. For more information about creating IAM policies that control users' access to resources based on tags, see Supported Resource-Level Permissions for Amazon EC2 API Actions in the Amazon Elastic Compute Cloud User Guide.

", + "CreateVolume": "

Creates an EBS volume that can be attached to an instance in the same Availability Zone. The volume is created in the regional endpoint that you send the HTTP request to. For more information see Regions and Endpoints.

You can create a new empty volume or restore a volume from an EBS snapshot. Any AWS Marketplace product codes from the snapshot are propagated to the volume.

You can create encrypted volumes with the Encrypted parameter. Encrypted volumes may only be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are also automatically encrypted. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

For more information, see Creating or Restoring an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

", + "CreateVpc": "

Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can create uses a /28 netmask (16 IPv4 addresses), and the largest uses a /16 netmask (65,536 IPv4 addresses). To help you decide how big to make your VPC, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.

You can optionally request an Amazon-provided IPv6 CIDR block for the VPC. The IPv6 CIDR block uses a /56 prefix length, and is allocated from Amazon's pool of IPv6 addresses. You cannot choose the IPv6 range for your VPC.

By default, each instance you launch in the VPC has the default DHCP options, which includes only a default DNS server that we provide (AmazonProvidedDNS). For more information about DHCP options, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

You can specify the instance tenancy value for the VPC when you create it. You can't change this value for the VPC after you create it. For more information, see Dedicated Instances in the Amazon Elastic Compute Cloud User Guide.

", + "CreateVpcEndpoint": "

Creates a VPC endpoint for a specified AWS service. An endpoint enables you to create a private connection between your VPC and another AWS service in your account. You can specify an endpoint policy to attach to the endpoint that will control access to the service from your VPC. You can also specify the VPC route tables that use the endpoint.

Use DescribeVpcEndpointServices to get a list of supported AWS services.

", + "CreateVpcPeeringConnection": "

Requests a VPC peering connection between two VPCs: a requester VPC that you own and a peer VPC with which to create the connection. The peer VPC can belong to another AWS account. The requester VPC and peer VPC cannot have overlapping CIDR blocks.

The owner of the peer VPC must accept the peering request to activate the peering connection. The VPC peering connection request expires after 7 days, after which it cannot be accepted or rejected.

A CreateVpcPeeringConnection request between VPCs with overlapping CIDR blocks results in the VPC peering connection having a status of failed.

", + "CreateVpnConnection": "

Creates a VPN connection between an existing virtual private gateway and a VPN customer gateway. The only supported connection type is ipsec.1.

The response includes information that you need to give to your network administrator to configure your customer gateway.

We strongly recommend that you use HTTPS when calling this operation because the response contains sensitive cryptographic information for configuring your customer gateway.

If you decide to shut down your VPN connection for any reason and later create a new VPN connection, you must reconfigure your customer gateway with the new information returned from this call.

This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.

For more information about VPN connections, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.

", + "CreateVpnConnectionRoute": "

Creates a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.

For more information about VPN connections, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.

", + "CreateVpnGateway": "

Creates a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself.

For more information about virtual private gateways, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.

", + "DeleteCustomerGateway": "

Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway.

", + "DeleteDhcpOptions": "

Deletes the specified set of DHCP options. You must disassociate the set of DHCP options before you can delete it. You can disassociate the set of DHCP options by associating either a new set of options or the default set of options with the VPC.

", + "DeleteEgressOnlyInternetGateway": "

Deletes an egress-only Internet gateway.

", + "DeleteFlowLogs": "

Deletes one or more flow logs.

", + "DeleteInternetGateway": "

Deletes the specified Internet gateway. You must detach the Internet gateway from the VPC before you can delete it.

", + "DeleteKeyPair": "

Deletes the specified key pair, by removing the public key from Amazon EC2.

", + "DeleteNatGateway": "

Deletes the specified NAT gateway. Deleting a NAT gateway disassociates its Elastic IP address, but does not release the address from your account. Deleting a NAT gateway does not delete any NAT gateway routes in your route tables.

", + "DeleteNetworkAcl": "

Deletes the specified network ACL. You can't delete the ACL if it's associated with any subnets. You can't delete the default network ACL.

", + "DeleteNetworkAclEntry": "

Deletes the specified ingress or egress entry (rule) from the specified network ACL.

", + "DeleteNetworkInterface": "

Deletes the specified network interface. You must detach the network interface before you can delete it.

", + "DeletePlacementGroup": "

Deletes the specified placement group. You must terminate all instances in the placement group before you can delete the placement group. For more information about placement groups and cluster instances, see Cluster Instances in the Amazon Elastic Compute Cloud User Guide.

", + "DeleteRoute": "

Deletes the specified route from the specified route table.

", + "DeleteRouteTable": "

Deletes the specified route table. You must disassociate the route table from any subnets before you can delete it. You can't delete the main route table.

", + "DeleteSecurityGroup": "

Deletes a security group.

If you attempt to delete a security group that is associated with an instance, or is referenced by another security group, the operation fails with InvalidGroup.InUse in EC2-Classic or DependencyViolation in EC2-VPC.

", + "DeleteSnapshot": "

Deletes the specified snapshot.

When you make periodic snapshots of a volume, the snapshots are incremental, and only the blocks on the device that have changed since your last snapshot are saved in the new snapshot. When you delete a snapshot, only the data not needed for any other snapshot is removed. So regardless of which prior snapshots have been deleted, all active snapshots will have access to all the information needed to restore the volume.

You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI. You must first de-register the AMI before you can delete the snapshot.

For more information, see Deleting an Amazon EBS Snapshot in the Amazon Elastic Compute Cloud User Guide.

", + "DeleteSpotDatafeedSubscription": "

Deletes the data feed for Spot instances.

", + "DeleteSubnet": "

Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet.

", + "DeleteTags": "

Deletes the specified set of tags from the specified set of resources. This call is designed to follow a DescribeTags request.

For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.

", + "DeleteVolume": "

Deletes the specified EBS volume. The volume must be in the available state (not attached to an instance).

The volume may remain in the deleting state for several minutes.

For more information, see Deleting an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

", + "DeleteVpc": "

Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on.

", + "DeleteVpcEndpoints": "

Deletes one or more specified VPC endpoints. Deleting the endpoint also deletes the endpoint routes in the route tables that were associated with the endpoint.

", + "DeleteVpcPeeringConnection": "

Deletes a VPC peering connection. Either the owner of the requester VPC or the owner of the peer VPC can delete the VPC peering connection if it's in the active state. The owner of the requester VPC can delete a VPC peering connection in the pending-acceptance state.

", + "DeleteVpnConnection": "

Deletes the specified VPN connection.

If you're deleting the VPC and its associated components, we recommend that you detach the virtual private gateway from the VPC and delete the VPC before deleting the VPN connection. If you believe that the tunnel credentials for your VPN connection have been compromised, you can delete the VPN connection and create a new one that has new keys, without needing to delete the VPC or virtual private gateway. If you create a new VPN connection, you must reconfigure the customer gateway using the new configuration information returned with the new VPN connection ID.

", + "DeleteVpnConnectionRoute": "

Deletes the specified static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.

", + "DeleteVpnGateway": "

Deletes the specified virtual private gateway. We recommend that before you delete a virtual private gateway, you detach it from the VPC and delete the VPN connection. Note that you don't need to delete the virtual private gateway if you plan to delete and recreate the VPN connection between your VPC and your network.

", + "DeregisterImage": "

Deregisters the specified AMI. After you deregister an AMI, it can't be used to launch new instances.

This command does not delete the AMI.

", + "DescribeAccountAttributes": "

Describes attributes of your AWS account. The following are the supported account attributes:

  • supported-platforms: Indicates whether your account can launch instances into EC2-Classic and EC2-VPC, or only into EC2-VPC.

  • default-vpc: The ID of the default VPC for your account, or none.

  • max-instances: The maximum number of On-Demand instances that you can run.

  • vpc-max-security-groups-per-interface: The maximum number of security groups that you can assign to a network interface.

  • max-elastic-ips: The maximum number of Elastic IP addresses that you can allocate for use with EC2-Classic.

  • vpc-max-elastic-ips: The maximum number of Elastic IP addresses that you can allocate for use with EC2-VPC.

", + "DescribeAddresses": "

Describes one or more of your Elastic IP addresses.

An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

", + "DescribeAvailabilityZones": "

Describes one or more of the Availability Zones that are available to you. The results include zones only for the region you're currently using. If there is an event impacting an Availability Zone, you can use this request to view the state and any provided message for that Availability Zone.

For more information, see Regions and Availability Zones in the Amazon Elastic Compute Cloud User Guide.

", + "DescribeBundleTasks": "

Describes one or more of your bundling tasks.

Completed bundle tasks are listed for only a limited time. If your bundle task is no longer in the list, you can still register an AMI from it. Just use RegisterImage with the Amazon S3 bucket name and image manifest name you provided to the bundle task.

", + "DescribeClassicLinkInstances": "

Describes one or more of your linked EC2-Classic instances. This request only returns information about EC2-Classic instances linked to a VPC through ClassicLink; you cannot use this request to return information about other instances.

", + "DescribeConversionTasks": "

Describes one or more of your conversion tasks. For more information, see the VM Import/Export User Guide.

For information about the import manifest referenced by this API action, see VM Import Manifest.

", + "DescribeCustomerGateways": "

Describes one or more of your VPN customer gateways.

For more information about VPN customer gateways, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.

", + "DescribeDhcpOptions": "

Describes one or more of your DHCP options sets.

For more information about DHCP options sets, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

", + "DescribeEgressOnlyInternetGateways": "

Describes one or more of your egress-only Internet gateways.

", + "DescribeExportTasks": "

Describes one or more of your export tasks.

", + "DescribeFlowLogs": "

Describes one or more flow logs. To view the information in your flow logs (the log streams for the network interfaces), you must use the CloudWatch Logs console or the CloudWatch Logs API.

", + "DescribeHostReservationOfferings": "

Describes the Dedicated Host Reservations that are available to purchase.

The results describe all the Dedicated Host Reservation offerings, including offerings that may not match the instance family and region of your Dedicated Hosts. When purchasing an offering, ensure that the the instance family and region of the offering matches that of the Dedicated Host/s it will be associated with. For an overview of supported instance types, see Dedicated Hosts Overview in the Amazon Elastic Compute Cloud User Guide.

", + "DescribeHostReservations": "

Describes Dedicated Host Reservations which are associated with Dedicated Hosts in your account.

", + "DescribeHosts": "

Describes one or more of your Dedicated Hosts.

The results describe only the Dedicated Hosts in the region you're currently using. All listed instances consume capacity on your Dedicated Host. Dedicated Hosts that have recently been released will be listed with the state released.

", + "DescribeIamInstanceProfileAssociations": "

Describes your IAM instance profile associations.

", + "DescribeIdFormat": "

Describes the ID format settings for your resources on a per-region basis, for example, to view which resource types are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types.

The following resource types support longer IDs: instance | reservation | snapshot | volume.

These settings apply to the IAM user who makes the request; they do not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user, unless they explicitly override the settings by running the ModifyIdFormat command. Resources created with longer IDs are visible to all IAM users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

", + "DescribeIdentityIdFormat": "

Describes the ID format settings for resources for the specified IAM user, IAM role, or root user. For example, you can view the resource types that are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

The following resource types support longer IDs: instance | reservation | snapshot | volume.

These settings apply to the principal specified in the request. They do not apply to the principal that makes the request.

", + "DescribeImageAttribute": "

Describes the specified attribute of the specified AMI. You can specify only one attribute at a time.

", + "DescribeImages": "

Describes one or more of the images (AMIs, AKIs, and ARIs) available to you. Images available to you include public images, private images that you own, and private images owned by other AWS accounts but for which you have explicit launch permissions.

Deregistered images are included in the returned results for an unspecified interval after deregistration.

", + "DescribeImportImageTasks": "

Displays details about an import virtual machine or import snapshot tasks that are already created.

", + "DescribeImportSnapshotTasks": "

Describes your import snapshot tasks.

", + "DescribeInstanceAttribute": "

Describes the specified attribute of the specified instance. You can specify only one attribute at a time. Valid attribute values are: instanceType | kernel | ramdisk | userData | disableApiTermination | instanceInitiatedShutdownBehavior | rootDeviceName | blockDeviceMapping | productCodes | sourceDestCheck | groupSet | ebsOptimized | sriovNetSupport

", + "DescribeInstanceStatus": "

Describes the status of one or more instances. By default, only running instances are described, unless specified otherwise.

Instance status includes the following components:

  • Status checks - Amazon EC2 performs status checks on running EC2 instances to identify hardware and software issues. For more information, see Status Checks for Your Instances and Troubleshooting Instances with Failed Status Checks in the Amazon Elastic Compute Cloud User Guide.

  • Scheduled events - Amazon EC2 can schedule events (such as reboot, stop, or terminate) for your instances related to hardware issues, software updates, or system maintenance. For more information, see Scheduled Events for Your Instances in the Amazon Elastic Compute Cloud User Guide.

  • Instance state - You can manage your instances from the moment you launch them through their termination. For more information, see Instance Lifecycle in the Amazon Elastic Compute Cloud User Guide.

", + "DescribeInstances": "

Describes one or more of your instances.

If you specify one or more instance IDs, Amazon EC2 returns information for those instances. If you do not specify instance IDs, Amazon EC2 returns information for all relevant instances. If you specify an instance ID that is not valid, an error is returned. If you specify an instance that you do not own, it is not included in the returned results.

Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

If you describe instances in the rare case where an Availability Zone is experiencing a service disruption and you specify instance IDs that are in the affected zone, or do not specify any instance IDs at all, the call fails. If you describe instances and specify only instance IDs that are in an unaffected zone, the call works normally.

", + "DescribeInternetGateways": "

Describes one or more of your Internet gateways.

", + "DescribeKeyPairs": "

Describes one or more of your key pairs.

For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

", + "DescribeMovingAddresses": "

Describes your Elastic IP addresses that are being moved to the EC2-VPC platform, or that are being restored to the EC2-Classic platform. This request does not return information about any other Elastic IP addresses in your account.

", + "DescribeNatGateways": "

Describes one or more of the your NAT gateways.

", + "DescribeNetworkAcls": "

Describes one or more of your network ACLs.

For more information about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

", + "DescribeNetworkInterfaceAttribute": "

Describes a network interface attribute. You can specify only one attribute at a time.

", + "DescribeNetworkInterfaces": "

Describes one or more of your network interfaces.

", + "DescribePlacementGroups": "

Describes one or more of your placement groups. For more information about placement groups and cluster instances, see Cluster Instances in the Amazon Elastic Compute Cloud User Guide.

", + "DescribePrefixLists": "

Describes available AWS services in a prefix list format, which includes the prefix list name and prefix list ID of the service and the IP address range for the service. A prefix list ID is required for creating an outbound security group rule that allows traffic from a VPC to access an AWS service through a VPC endpoint.

", + "DescribeRegions": "

Describes one or more regions that are currently available to you.

For a list of the regions supported by Amazon EC2, see Regions and Endpoints.

", + "DescribeReservedInstances": "

Describes one or more of the Reserved Instances that you purchased.

For more information about Reserved Instances, see Reserved Instances in the Amazon Elastic Compute Cloud User Guide.

", + "DescribeReservedInstancesListings": "

Describes your account's Reserved Instance listings in the Reserved Instance Marketplace.

The Reserved Instance Marketplace matches sellers who want to resell Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.

As a seller, you choose to list some or all of your Reserved Instances, and you specify the upfront price to receive for them. Your Reserved Instances are then listed in the Reserved Instance Marketplace and are available for purchase.

As a buyer, you specify the configuration of the Reserved Instance to purchase, and the Marketplace matches what you're searching for with what's available. The Marketplace first sells the lowest priced Reserved Instances to you, and continues to sell available Reserved Instance listings to you until your demand is met. You are charged based on the total price of all of the listings that you purchase.

For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

", + "DescribeReservedInstancesModifications": "

Describes the modifications made to your Reserved Instances. If no parameter is specified, information about all your Reserved Instances modification requests is returned. If a modification ID is specified, only information about the specific modification is returned.

For more information, see Modifying Reserved Instances in the Amazon Elastic Compute Cloud User Guide.

", + "DescribeReservedInstancesOfferings": "

Describes Reserved Instance offerings that are available for purchase. With Reserved Instances, you purchase the right to launch instances for a period of time. During that time period, you do not receive insufficient capacity errors, and you pay a lower usage rate than the rate charged for On-Demand instances for the actual time used.

If you have listed your own Reserved Instances for sale in the Reserved Instance Marketplace, they will be excluded from these results. This is to ensure that you do not purchase your own Reserved Instances.

For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

", + "DescribeRouteTables": "

Describes one or more of your route tables.

Each subnet in your VPC must be associated with a route table. If a subnet is not explicitly associated with any route table, it is implicitly associated with the main route table. This command does not return the subnet ID for implicit associations.

For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

", + "DescribeScheduledInstanceAvailability": "

Finds available schedules that meet the specified criteria.

You can search for an available schedule no more than 3 months in advance. You must meet the minimum required duration of 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours.

After you find a schedule that meets your needs, call PurchaseScheduledInstances to purchase Scheduled Instances with that schedule.

", + "DescribeScheduledInstances": "

Describes one or more of your Scheduled Instances.

", + "DescribeSecurityGroupReferences": "

[EC2-VPC only] Describes the VPCs on the other side of a VPC peering connection that are referencing the security groups you've specified in this request.

", + "DescribeSecurityGroups": "

Describes one or more of your security groups.

A security group is for use with instances either in the EC2-Classic platform or in a specific VPC. For more information, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.

", + "DescribeSnapshotAttribute": "

Describes the specified attribute of the specified snapshot. You can specify only one attribute at a time.

For more information about EBS snapshots, see Amazon EBS Snapshots in the Amazon Elastic Compute Cloud User Guide.

", + "DescribeSnapshots": "

Describes one or more of the EBS snapshots available to you. Available snapshots include public snapshots available for any AWS account to launch, private snapshots that you own, and private snapshots owned by another AWS account but for which you've been given explicit create volume permissions.

The create volume permissions fall into the following categories:

  • public: The owner of the snapshot granted create volume permissions for the snapshot to the all group. All AWS accounts have create volume permissions for these snapshots.

  • explicit: The owner of the snapshot granted create volume permissions to a specific AWS account.

  • implicit: An AWS account has implicit create volume permissions for all snapshots it owns.

The list of snapshots returned can be modified by specifying snapshot IDs, snapshot owners, or AWS accounts with create volume permissions. If no options are specified, Amazon EC2 returns all snapshots for which you have create volume permissions.

If you specify one or more snapshot IDs, only snapshots that have the specified IDs are returned. If you specify an invalid snapshot ID, an error is returned. If you specify a snapshot ID for which you do not have access, it is not included in the returned results.

If you specify one or more snapshot owners using the OwnerIds option, only snapshots from the specified owners and for which you have access are returned. The results can include the AWS account IDs of the specified owners, amazon for snapshots owned by Amazon, or self for snapshots that you own.

If you specify a list of restorable users, only snapshots with create snapshot permissions for those users are returned. You can specify AWS account IDs (if you own the snapshots), self for snapshots for which you own or have explicit permissions, or all for public snapshots.

If you are describing a long list of snapshots, you can paginate the output to make the list more manageable. The MaxResults parameter sets the maximum number of results returned in a single page. If the list of results exceeds your MaxResults value, then that number of results is returned along with a NextToken value that can be passed to a subsequent DescribeSnapshots request to retrieve the remaining results.

For more information about EBS snapshots, see Amazon EBS Snapshots in the Amazon Elastic Compute Cloud User Guide.

", + "DescribeSpotDatafeedSubscription": "

Describes the data feed for Spot instances. For more information, see Spot Instance Data Feed in the Amazon Elastic Compute Cloud User Guide.

", + "DescribeSpotFleetInstances": "

Describes the running instances for the specified Spot fleet.

", + "DescribeSpotFleetRequestHistory": "

Describes the events for the specified Spot fleet request during the specified time.

Spot fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event.

", + "DescribeSpotFleetRequests": "

Describes your Spot fleet requests.

Spot fleet requests are deleted 48 hours after they are canceled and their instances are terminated.

", + "DescribeSpotInstanceRequests": "

Describes the Spot instance requests that belong to your account. Spot instances are instances that Amazon EC2 launches when the bid price that you specify exceeds the current Spot price. Amazon EC2 periodically sets the Spot price based on available Spot instance capacity and current Spot instance requests. For more information, see Spot Instance Requests in the Amazon Elastic Compute Cloud User Guide.

You can use DescribeSpotInstanceRequests to find a running Spot instance by examining the response. If the status of the Spot instance is fulfilled, the instance ID appears in the response and contains the identifier of the instance. Alternatively, you can use DescribeInstances with a filter to look for instances where the instance lifecycle is spot.

Spot instance requests are deleted 4 hours after they are canceled and their instances are terminated.

", + "DescribeSpotPriceHistory": "

Describes the Spot price history. For more information, see Spot Instance Pricing History in the Amazon Elastic Compute Cloud User Guide.

When you specify a start and end time, this operation returns the prices of the instance types within the time range that you specified and the time when the price changed. The price is valid within the time period that you specified; the response merely indicates the last time that the price changed.

", + "DescribeStaleSecurityGroups": "

[EC2-VPC only] Describes the stale security group rules for security groups in a specified VPC. Rules are stale when they reference a deleted security group in a peer VPC, or a security group in a peer VPC for which the VPC peering connection has been deleted.

", + "DescribeSubnets": "

Describes one or more of your subnets.

For more information about subnets, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.

", + "DescribeTags": "

Describes one or more of the tags for your EC2 resources.

For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.

", + "DescribeVolumeAttribute": "

Describes the specified attribute of the specified volume. You can specify only one attribute at a time.

For more information about EBS volumes, see Amazon EBS Volumes in the Amazon Elastic Compute Cloud User Guide.

", + "DescribeVolumeStatus": "

Describes the status of the specified volumes. Volume status provides the result of the checks performed on your volumes to determine events that can impair the performance of your volumes. The performance of a volume can be affected if an issue occurs on the volume's underlying host. If the volume's underlying host experiences a power outage or system issue, after the system is restored, there could be data inconsistencies on the volume. Volume events notify you if this occurs. Volume actions notify you if any action needs to be taken in response to the event.

The DescribeVolumeStatus operation provides the following information about the specified volumes:

Status: Reflects the current status of the volume. The possible values are ok, impaired , warning, or insufficient-data. If all checks pass, the overall status of the volume is ok. If the check fails, the overall status is impaired. If the status is insufficient-data, then the checks may still be taking place on your volume at the time. We recommend that you retry the request. For more information on volume status, see Monitoring the Status of Your Volumes.

Events: Reflect the cause of a volume status and may require you to take action. For example, if your volume returns an impaired status, then the volume event might be potential-data-inconsistency. This means that your volume has been affected by an issue with the underlying host, has all I/O operations disabled, and may have inconsistent data.

Actions: Reflect the actions you may have to take in response to an event. For example, if the status of the volume is impaired and the volume event shows potential-data-inconsistency, then the action shows enable-volume-io. This means that you may want to enable the I/O operations for the volume by calling the EnableVolumeIO action and then check the volume for data consistency.

Volume status is based on the volume status checks, and does not reflect the volume state. Therefore, volume status does not indicate volumes in the error state (for example, when a volume is incapable of accepting I/O.)

", + "DescribeVolumes": "

Describes the specified EBS volumes.

If you are describing a long list of volumes, you can paginate the output to make the list more manageable. The MaxResults parameter sets the maximum number of results returned in a single page. If the list of results exceeds your MaxResults value, then that number of results is returned along with a NextToken value that can be passed to a subsequent DescribeVolumes request to retrieve the remaining results.

For more information about EBS volumes, see Amazon EBS Volumes in the Amazon Elastic Compute Cloud User Guide.

", + "DescribeVolumesModifications": "

Reports the current modification status of EBS volumes.

Current-generation EBS volumes support modification of attributes including type, size, and (for io1 volumes) IOPS provisioning while either attached to or detached from an instance. Following an action from the API or the console to modify a volume, the status of the modification may be modifying, optimizing, completed, or failed. If a volume has never been modified, then certain elements of the returned VolumeModification objects are null.

You can also use CloudWatch Events to check the status of a modification to an EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. For more information, see Monitoring Volume Modifications\".

", + "DescribeVpcAttribute": "

Describes the specified attribute of the specified VPC. You can specify only one attribute at a time.

", + "DescribeVpcClassicLink": "

Describes the ClassicLink status of one or more VPCs.

", + "DescribeVpcClassicLinkDnsSupport": "

Describes the ClassicLink DNS support status of one or more VPCs. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information about ClassicLink, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

", + "DescribeVpcEndpointServices": "

Describes all supported AWS services that can be specified when creating a VPC endpoint.

", + "DescribeVpcEndpoints": "

Describes one or more of your VPC endpoints.

", + "DescribeVpcPeeringConnections": "

Describes one or more of your VPC peering connections.

", + "DescribeVpcs": "

Describes one or more of your VPCs.

", + "DescribeVpnConnections": "

Describes one or more of your VPN connections.

For more information about VPN connections, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.

", + "DescribeVpnGateways": "

Describes one or more of your virtual private gateways.

For more information about virtual private gateways, see Adding an IPsec Hardware VPN to Your VPC in the Amazon Virtual Private Cloud User Guide.

", + "DetachClassicLinkVpc": "

Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance has been unlinked, the VPC security groups are no longer associated with it. An instance is automatically unlinked from a VPC when it's stopped.

", + "DetachInternetGateway": "

Detaches an Internet gateway from a VPC, disabling connectivity between the Internet and the VPC. The VPC must not contain any running instances with Elastic IP addresses.

", + "DetachNetworkInterface": "

Detaches a network interface from an instance.

", + "DetachVolume": "

Detaches an EBS volume from an instance. Make sure to unmount any file systems on the device within your operating system before detaching the volume. Failure to do so can result in the volume becoming stuck in the busy state while detaching. If this happens, detachment can be delayed indefinitely until you unmount the volume, force detachment, reboot the instance, or all three. If an EBS volume is the root device of an instance, it can't be detached while the instance is running. To detach the root volume, stop the instance first.

When a volume with an AWS Marketplace product code is detached from an instance, the product code is no longer associated with the instance.

For more information, see Detaching an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

", + "DetachVpnGateway": "

Detaches a virtual private gateway from a VPC. You do this if you're planning to turn off the VPC and not use it anymore. You can confirm a virtual private gateway has been completely detached from a VPC by describing the virtual private gateway (any attachments to the virtual private gateway are also described).

You must wait for the attachment's state to switch to detached before you can delete the VPC or attach a different VPC to the virtual private gateway.

", + "DisableVgwRoutePropagation": "

Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC.

", + "DisableVpcClassicLink": "

Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC that has EC2-Classic instances linked to it.

", + "DisableVpcClassicLinkDnsSupport": "

Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve to public IP addresses when addressed between a linked EC2-Classic instance and instances in the VPC to which it's linked. For more information about ClassicLink, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

", + "DisassociateAddress": "

Disassociates an Elastic IP address from the instance or network interface it's associated with.

An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.

", + "DisassociateIamInstanceProfile": "

Disassociates an IAM instance profile from a running or stopped instance.

Use DescribeIamInstanceProfileAssociations to get the association ID.

", + "DisassociateRouteTable": "

Disassociates a subnet from a route table.

After you perform this action, the subnet no longer uses the routes in the route table. Instead, it uses the routes in the VPC's main route table. For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

", + "DisassociateSubnetCidrBlock": "

Disassociates a CIDR block from a subnet. Currently, you can disassociate an IPv6 CIDR block only. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it.

", + "DisassociateVpcCidrBlock": "

Disassociates a CIDR block from a VPC. Currently, you can disassociate an IPv6 CIDR block only. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it.

", + "EnableVgwRoutePropagation": "

Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC.

", + "EnableVolumeIO": "

Enables I/O operations for a volume that had I/O operations disabled because the data on the volume was potentially inconsistent.

", + "EnableVpcClassicLink": "

Enables a VPC for ClassicLink. You can then link EC2-Classic instances to your ClassicLink-enabled VPC to allow communication over private IP addresses. You cannot enable your VPC for ClassicLink if any of your VPC's route tables have existing routes for address ranges within the 10.0.0.0/8 IP address range, excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16 IP address ranges. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

", + "EnableVpcClassicLinkDnsSupport": "

Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information about ClassicLink, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

", + "GetConsoleOutput": "

Gets the console output for the specified instance.

Instances do not have a physical monitor through which you can view their console output. They also lack physical controls that allow you to power up, reboot, or shut them down. To allow these actions, we provide them through the Amazon EC2 API and command line interface.

Instance console output is buffered and posted shortly after instance boot, reboot, and termination. Amazon EC2 preserves the most recent 64 KB output which is available for at least one hour after the most recent post.

For Linux instances, the instance console output displays the exact console output that would normally be displayed on a physical monitor attached to a computer. This output is buffered because the instance produces it and then posts it to a store where the instance's owner can retrieve it.

For Windows instances, the instance console output includes output from the EC2Config service.

", + "GetConsoleScreenshot": "

Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.

The returned content is Base64-encoded.

", + "GetHostReservationPurchasePreview": "

Preview a reservation purchase with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation.

This is a preview of the PurchaseHostReservation action and does not result in the offering being purchased.

", + "GetPasswordData": "

Retrieves the encrypted administrator password for an instance running Windows.

The Windows password is generated at boot if the EC2Config service plugin, Ec2SetPassword, is enabled. This usually only happens the first time an AMI is launched, and then Ec2SetPassword is automatically disabled. The password is not generated for rebundled AMIs unless Ec2SetPassword is enabled before bundling.

The password is encrypted using the key pair that you specified when you launched the instance. You must provide the corresponding key pair file.

Password generation and encryption takes a few moments. We recommend that you wait up to 15 minutes after launching an instance before trying to retrieve the generated password.

", + "GetReservedInstancesExchangeQuote": "

Returns details about the values and term of your specified Convertible Reserved Instances. When a target configuration is specified, it returns information about whether the exchange is valid and can be performed.

", + "ImportImage": "

Import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI). For more information, see Importing a VM as an Image Using VM Import/Export in the VM Import/Export User Guide.

", + "ImportInstance": "

Creates an import instance task using metadata from the specified disk image. ImportInstance only supports single-volume VMs. To import multi-volume VMs, use ImportImage. For more information, see Importing a Virtual Machine Using the Amazon EC2 CLI.

For information about the import manifest referenced by this API action, see VM Import Manifest.

", + "ImportKeyPair": "

Imports the public key from an RSA key pair that you created with a third-party tool. Compare this with CreateKeyPair, in which AWS creates the key pair and gives the keys to you (AWS keeps a copy of the public key). With ImportKeyPair, you create the key pair and give AWS just the public key. The private key is never transferred between you and AWS.

For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

", + "ImportSnapshot": "

Imports a disk into an EBS snapshot.

", + "ImportVolume": "

Creates an import volume task using metadata from the specified disk image.For more information, see Importing Disks to Amazon EBS.

For information about the import manifest referenced by this API action, see VM Import Manifest.

", + "ModifyHosts": "

Modify the auto-placement setting of a Dedicated Host. When auto-placement is enabled, AWS will place instances that you launch with a tenancy of host, but without targeting a specific host ID, onto any available Dedicated Host in your account which has auto-placement enabled. When auto-placement is disabled, you need to provide a host ID if you want the instance to launch onto a specific host. If no host ID is provided, the instance will be launched onto a suitable host which has auto-placement enabled.

", + "ModifyIdFormat": "

Modifies the ID format for the specified resource on a per-region basis. You can specify that resources should receive longer IDs (17-character IDs) when they are created. The following resource types support longer IDs: instance | reservation | snapshot | volume.

This setting applies to the IAM user who makes the request; it does not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user. If you're using this action as the root user, then these settings apply to the entire account, unless an IAM user explicitly overrides these settings for themselves. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

", + "ModifyIdentityIdFormat": "

Modifies the ID format of a resource for a specified IAM user, IAM role, or the root user for an account; or all IAM users, IAM roles, and the root user for an account. You can specify that resources should receive longer IDs (17-character IDs) when they are created.

The following resource types support longer IDs: instance | reservation | snapshot | volume. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

This setting applies to the principal specified in the request; it does not apply to the principal that makes the request.

Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

", + "ModifyImageAttribute": "

Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time.

AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace product code cannot be made public.

The SriovNetSupport enhanced networking attribute cannot be changed using this command. Instead, enable SriovNetSupport on an instance and create an AMI from the instance. This will result in an image with SriovNetSupport enabled.

", + "ModifyInstanceAttribute": "

Modifies the specified attribute of the specified instance. You can specify only one attribute at a time.

To modify some attributes, the instance must be stopped. For more information, see Modifying Attributes of a Stopped Instance in the Amazon Elastic Compute Cloud User Guide.

", + "ModifyInstancePlacement": "

Set the instance affinity value for a specific stopped instance and modify the instance tenancy setting.

Instance affinity is disabled by default. When instance affinity is host and it is not associated with a specific Dedicated Host, the next time it is launched it will automatically be associated with the host it lands on. This relationship will persist if the instance is stopped/started, or rebooted.

You can modify the host ID associated with a stopped instance. If a stopped instance has a new host ID association, the instance will target that host when restarted.

You can modify the tenancy of a stopped instance with a tenancy of host or dedicated.

Affinity, hostID, and tenancy are not required parameters, but at least one of them must be specified in the request. Affinity and tenancy can be modified in the same request, but tenancy can only be modified on instances that are stopped.

", + "ModifyNetworkInterfaceAttribute": "

Modifies the specified network interface attribute. You can specify only one attribute at a time.

", + "ModifyReservedInstances": "

Modifies the Availability Zone, instance count, instance type, or network platform (EC2-Classic or EC2-VPC) of your Standard Reserved Instances. The Reserved Instances to be modified must be identical, except for Availability Zone, network platform, and instance type.

For more information, see Modifying Reserved Instances in the Amazon Elastic Compute Cloud User Guide.

", + "ModifySnapshotAttribute": "

Adds or removes permission settings for the specified snapshot. You may add or remove specified AWS account IDs from a snapshot's list of create volume permissions, but you cannot do both in a single API call. If you need to both add and remove account IDs for a snapshot, you must use multiple API calls.

Encrypted snapshots and snapshots with AWS Marketplace product codes cannot be made public. Snapshots encrypted with your default CMK cannot be shared with other accounts.

For more information on modifying snapshot permissions, see Sharing Snapshots in the Amazon Elastic Compute Cloud User Guide.

", + "ModifySpotFleetRequest": "

Modifies the specified Spot fleet request.

While the Spot fleet request is being modified, it is in the modifying state.

To scale up your Spot fleet, increase its target capacity. The Spot fleet launches the additional Spot instances according to the allocation strategy for the Spot fleet request. If the allocation strategy is lowestPrice, the Spot fleet launches instances using the Spot pool with the lowest price. If the allocation strategy is diversified, the Spot fleet distributes the instances across the Spot pools.

To scale down your Spot fleet, decrease its target capacity. First, the Spot fleet cancels any open bids that exceed the new target capacity. You can request that the Spot fleet terminate Spot instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is lowestPrice, the Spot fleet terminates the instances with the highest price per unit. If the allocation strategy is diversified, the Spot fleet terminates instances across the Spot pools. Alternatively, you can request that the Spot fleet keep the fleet at its current size, but not replace any Spot instances that are interrupted or that you terminate manually.

", + "ModifySubnetAttribute": "

Modifies a subnet attribute. You can only modify one attribute at a time.

", + "ModifyVolume": "

You can modify several parameters of an existing EBS volume, including volume size, volume type, and IOPS capacity. If your EBS volume is attached to a current-generation EC2 instance type, you may be able to apply these changes without stopping the instance or detaching the volume from it. For more information about modifying an EBS volume running Linux, see Modifying the Size, IOPS, or Type of an EBS Volume on Linux. For more information about modifying an EBS volume running Windows, see Modifying the Size, IOPS, or Type of an EBS Volume on Windows.

When you complete a resize operation on your volume, you need to extend the volume's file-system size to take advantage of the new storage capacity. For information about extending a Linux file system, see Extending a Linux File System. For information about extending a Windows file system, see Extending a Windows File System.

You can use CloudWatch Events to check the status of a modification to an EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. You can also track the status of a modification using the DescribeVolumesModifications API. For information about tracking status changes using either method, see Monitoring Volume Modifications.

With previous-generation instance types, resizing an EBS volume may require detaching and reattaching the volume or stopping and restarting the instance. For more information about modifying an EBS volume running Linux, see Modifying the Size, IOPS, or Type of an EBS Volume on Linux. For more information about modifying an EBS volume running Windows, see Modifying the Size, IOPS, or Type of an EBS Volume on Windows.

If you reach the maximum volume modification rate per volume limit, you will need to wait at least six hours before applying further modifications to the affected EBS volume.

", + "ModifyVolumeAttribute": "

Modifies a volume attribute.

By default, all I/O operations for the volume are suspended when the data on the volume is determined to be potentially inconsistent, to prevent undetectable, latent data corruption. The I/O access to the volume can be resumed by first enabling I/O access and then checking the data consistency on your volume.

You can change the default behavior to resume I/O operations. We recommend that you change this only for boot volumes or for volumes that are stateless or disposable.

", + "ModifyVpcAttribute": "

Modifies the specified attribute of the specified VPC.

", + "ModifyVpcEndpoint": "

Modifies attributes of a specified VPC endpoint. You can modify the policy associated with the endpoint, and you can add and remove route tables associated with the endpoint.

", + "ModifyVpcPeeringConnectionOptions": "

Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following:

  • Enable/disable communication over the peering connection between an EC2-Classic instance that's linked to your VPC (using ClassicLink) and instances in the peer VPC.

  • Enable/disable communication over the peering connection between instances in your VPC and an EC2-Classic instance that's linked to the peer VPC.

  • Enable/disable a local VPC to resolve public DNS hostnames to private IP addresses when queried from instances in the peer VPC.

If the peered VPCs are in different accounts, each owner must initiate a separate request to modify the peering connection options, depending on whether their VPC was the requester or accepter for the VPC peering connection. If the peered VPCs are in the same account, you can modify the requester and accepter options in the same request. To confirm which VPC is the accepter and requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.

", + "MonitorInstances": "

Enables detailed monitoring for a running instance. Otherwise, basic monitoring is enabled. For more information, see Monitoring Your Instances and Volumes in the Amazon Elastic Compute Cloud User Guide.

To disable detailed monitoring, see .

", + "MoveAddressToVpc": "

Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC platform. The Elastic IP address must be allocated to your account for more than 24 hours, and it must not be associated with an instance. After the Elastic IP address is moved, it is no longer available for use in the EC2-Classic platform, unless you move it back using the RestoreAddressToClassic request. You cannot move an Elastic IP address that was originally allocated for use in the EC2-VPC platform to the EC2-Classic platform.

", + "PurchaseHostReservation": "

Purchase a reservation with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation. This action results in the specified reservation being purchased and charged to your account.

", + "PurchaseReservedInstancesOffering": "

Purchases a Reserved Instance for use with your account. With Reserved Instances, you pay a lower hourly rate compared to On-Demand instance pricing.

Use DescribeReservedInstancesOfferings to get a list of Reserved Instance offerings that match your specifications. After you've purchased a Reserved Instance, you can check for your new Reserved Instance with DescribeReservedInstances.

For more information, see Reserved Instances and Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

", + "PurchaseScheduledInstances": "

Purchases one or more Scheduled Instances with the specified schedule.

Scheduled Instances enable you to purchase Amazon EC2 compute capacity by the hour for a one-year term. Before you can purchase a Scheduled Instance, you must call DescribeScheduledInstanceAvailability to check for available schedules and obtain a purchase token. After you purchase a Scheduled Instance, you must call RunScheduledInstances during each scheduled time period.

After you purchase a Scheduled Instance, you can't cancel, modify, or resell your purchase.

", + "RebootInstances": "

Requests a reboot of one or more instances. This operation is asynchronous; it only queues a request to reboot the specified instances. The operation succeeds if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.

If an instance does not cleanly shut down within four minutes, Amazon EC2 performs a hard reboot.

For more information about troubleshooting, see Getting Console Output and Rebooting Instances in the Amazon Elastic Compute Cloud User Guide.

", + "RegisterImage": "

Registers an AMI. When you're creating an AMI, this is the final step you must complete before you can launch an instance from the AMI. For more information about creating AMIs, see Creating Your Own AMIs in the Amazon Elastic Compute Cloud User Guide.

For Amazon EBS-backed instances, CreateImage creates and registers the AMI in a single request, so you don't have to register the AMI yourself.

You can also use RegisterImage to create an Amazon EBS-backed Linux AMI from a snapshot of a root device volume. You specify the snapshot using the block device mapping. For more information, see Launching an Instance from a Snapshot in the Amazon Elastic Compute Cloud User Guide.

You can't register an image where a secondary (non-root) snapshot has AWS Marketplace product codes.

Some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES), use the EC2 billing product code associated with an AMI to verify the subscription status for package updates. Creating an AMI from an EBS snapshot does not maintain this billing code, and subsequent instances launched from such an AMI will not be able to connect to package update infrastructure. To create an AMI that must retain billing codes, see CreateImage.

If needed, you can deregister an AMI at any time. Any modifications you make to an AMI backed by an instance store volume invalidates its registration. If you make changes to an image, deregister the previous image and register the new image.

", + "RejectVpcPeeringConnection": "

Rejects a VPC peering connection request. The VPC peering connection must be in the pending-acceptance state. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests. To delete an active VPC peering connection, or to delete a VPC peering connection request that you initiated, use DeleteVpcPeeringConnection.

", + "ReleaseAddress": "

Releases the specified Elastic IP address.

After releasing an Elastic IP address, it is released to the IP address pool and might be unavailable to you. Be sure to update your DNS records and any servers or devices that communicate with the address. If you attempt to release an Elastic IP address that you already released, you'll get an AuthFailure error if the address is already allocated to another AWS account.

[EC2-Classic, default VPC] Releasing an Elastic IP address automatically disassociates it from any instance that it's associated with. To disassociate an Elastic IP address without releasing it, use DisassociateAddress.

[Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic IP address before you try to release it. Otherwise, Amazon EC2 returns an error (InvalidIPAddress.InUse).

", + "ReleaseHosts": "

When you no longer want to use an On-Demand Dedicated Host it can be released. On-Demand billing is stopped and the host goes into released state. The host ID of Dedicated Hosts that have been released can no longer be specified in another request, e.g., ModifyHosts. You must stop or terminate all instances on a host before it can be released.

When Dedicated Hosts are released, it make take some time for them to stop counting toward your limit and you may receive capacity errors when trying to allocate new Dedicated hosts. Try waiting a few minutes, and then try again.

Released hosts will still appear in a DescribeHosts response.

", + "ReplaceIamInstanceProfileAssociation": "

Replaces an IAM instance profile for the specified running instance. You can use this action to change the IAM instance profile that's associated with an instance without having to disassociate the existing IAM instance profile first.

Use DescribeIamInstanceProfileAssociations to get the association ID.

", + "ReplaceNetworkAclAssociation": "

Changes which network ACL a subnet is associated with. By default when you create a subnet, it's automatically associated with the default network ACL. For more information about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

", + "ReplaceNetworkAclEntry": "

Replaces an entry (rule) in a network ACL. For more information about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

", + "ReplaceRoute": "

Replaces an existing route within a route table in a VPC. You must provide only one of the following: Internet gateway or virtual private gateway, NAT instance, NAT gateway, VPC peering connection, network interface, or egress-only Internet gateway.

For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

", + "ReplaceRouteTableAssociation": "

Changes the route table associated with a given subnet in a VPC. After the operation completes, the subnet uses the routes in the new route table it's associated with. For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

You can also use ReplaceRouteTableAssociation to change which table is the main route table in the VPC. You just specify the main route table's association ID and the route table to be the new main route table.

", + "ReportInstanceStatus": "

Submits feedback about the status of an instance. The instance must be in the running state. If your experience with the instance differs from the instance status returned by DescribeInstanceStatus, use ReportInstanceStatus to report your experience with the instance. Amazon EC2 collects this information to improve the accuracy of status checks.

Use of this action does not change the value returned by DescribeInstanceStatus.

", + "RequestSpotFleet": "

Creates a Spot fleet request.

You can submit a single request that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.

By default, the Spot fleet requests Spot instances in the Spot pool where the price per unit is the lowest. Each launch specification can include its own instance weighting that reflects the value of the instance type to your application workload.

Alternatively, you can specify that the Spot fleet distribute the target capacity across the Spot pools included in its launch specifications. By ensuring that the Spot instances in your Spot fleet are in different Spot pools, you can improve the availability of your fleet.

For more information, see Spot Fleet Requests in the Amazon Elastic Compute Cloud User Guide.

", + "RequestSpotInstances": "

Creates a Spot instance request. Spot instances are instances that Amazon EC2 launches when the bid price that you specify exceeds the current Spot price. Amazon EC2 periodically sets the Spot price based on available Spot Instance capacity and current Spot instance requests. For more information, see Spot Instance Requests in the Amazon Elastic Compute Cloud User Guide.

", + "ResetImageAttribute": "

Resets an attribute of an AMI to its default value.

The productCodes attribute can't be reset.

", + "ResetInstanceAttribute": "

Resets an attribute of an instance to its default value. To reset the kernel or ramdisk, the instance must be in a stopped state. To reset the sourceDestCheck, the instance can be either running or stopped.

The sourceDestCheck attribute controls whether source/destination checking is enabled. The default value is true, which means checking is enabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.

", + "ResetNetworkInterfaceAttribute": "

Resets a network interface attribute. You can specify only one attribute at a time.

", + "ResetSnapshotAttribute": "

Resets permission settings for the specified snapshot.

For more information on modifying snapshot permissions, see Sharing Snapshots in the Amazon Elastic Compute Cloud User Guide.

", + "RestoreAddressToClassic": "

Restores an Elastic IP address that was previously moved to the EC2-VPC platform back to the EC2-Classic platform. You cannot move an Elastic IP address that was originally allocated for use in EC2-VPC. The Elastic IP address must not be associated with an instance or network interface.

", + "RevokeSecurityGroupEgress": "

[EC2-VPC only] Removes one or more egress rules from a security group for EC2-VPC. This action doesn't apply to security groups for use in EC2-Classic. The values that you specify in the revoke request (for example, ports) must match the existing rule's values for the rule to be revoked.

Each rule consists of the protocol and the IPv4 or IPv6 CIDR range or source security group. For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code.

Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

", + "RevokeSecurityGroupIngress": "

Removes one or more ingress rules from a security group. The values that you specify in the revoke request (for example, ports) must match the existing rule's values for the rule to be removed.

Each rule consists of the protocol and the CIDR range or source security group. For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code.

Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

", + "RunInstances": "

Launches the specified number of instances using an AMI for which you have permissions.

You can specify a number of options, or leave the default options. The following rules apply:

  • [EC2-VPC] If you don't specify a subnet ID, we choose a default subnet from your default VPC for you. If you don't have a default VPC, you must specify a subnet ID in the request.

  • [EC2-Classic] If don't specify an Availability Zone, we choose one for you.

  • Some instance types must be launched into a VPC. If you do not have a default VPC, or if you do not specify a subnet ID, the request fails. For more information, see Instance Types Available Only in a VPC.

  • [EC2-VPC] All instances have a network interface with a primary private IPv4 address. If you don't specify this address, we choose one from the IPv4 range of your subnet.

  • Not all instance types support IPv6 addresses. For more information, see Instance Types.

  • If you don't specify a security group ID, we use the default security group. For more information, see Security Groups.

  • If any of the AMIs have a product code attached for which the user has not subscribed, the request fails.

To ensure faster instance launches, break up large requests into smaller batches. For example, create 5 separate launch requests for 100 instances each instead of 1 launch request for 500 instances.

An instance is ready for you to use when it's in the running state. You can check the state of your instance using DescribeInstances. After launch, you can apply tags to your running instance (requires a resource ID). For more information, see CreateTags and Tagging Your Amazon EC2 Resources.

Linux instances have access to the public key of the key pair at boot. You can use this key to provide secure access to the instance. Amazon EC2 public images use this feature to provide secure access without passwords. For more information, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

For troubleshooting, see What To Do If An Instance Immediately Terminates, and Troubleshooting Connecting to Your Instance in the Amazon Elastic Compute Cloud User Guide.

", + "RunScheduledInstances": "

Launches the specified Scheduled Instances.

Before you can launch a Scheduled Instance, you must purchase it and obtain an identifier using PurchaseScheduledInstances.

You must launch a Scheduled Instance during its scheduled time period. You can't stop or reboot a Scheduled Instance, but you can terminate it as needed. If you terminate a Scheduled Instance before the current scheduled time period ends, you can launch it again after a few minutes. For more information, see Scheduled Instances in the Amazon Elastic Compute Cloud User Guide.

", + "StartInstances": "

Starts an Amazon EBS-backed AMI that you've previously stopped.

Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for hourly instance usage. However, your root partition Amazon EBS volume remains, continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time. Each time you transition an instance from stopped to started, Amazon EC2 charges a full instance hour, even if transitions happen multiple times within a single hour.

Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM.

Performing this operation on an instance that uses an instance store as its root device returns an error.

For more information, see Stopping Instances in the Amazon Elastic Compute Cloud User Guide.

", + "StopInstances": "

Stops an Amazon EBS-backed instance.

We don't charge hourly usage for a stopped instance, or data transfer fees; however, your root partition Amazon EBS volume remains, continues to persist your data, and you are charged for Amazon EBS volume usage. Each time you transition an instance from stopped to started, Amazon EC2 charges a full instance hour, even if transitions happen multiple times within a single hour.

You can't start or stop Spot instances, and you can't stop instance store-backed instances.

When you stop an instance, we shut it down. You can restart your instance at any time. Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM.

Stopping an instance is different to rebooting or terminating it. For example, when you stop an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, the root device and any other devices attached during the instance launch are automatically deleted. For more information about the differences between rebooting, stopping, and terminating instances, see Instance Lifecycle in the Amazon Elastic Compute Cloud User Guide.

When you stop an instance, we attempt to shut it down forcibly after a short while. If your instance appears stuck in the stopping state after a period of time, there may be an issue with the underlying host computer. For more information, see Troubleshooting Stopping Your Instance in the Amazon Elastic Compute Cloud User Guide.

", + "TerminateInstances": "

Shuts down one or more instances. This operation is idempotent; if you terminate an instance more than once, each call succeeds.

If you specify multiple instances and the request fails (for example, because of a single incorrect instance ID), none of the instances are terminated.

Terminated instances remain visible after termination (for approximately one hour).

By default, Amazon EC2 deletes all EBS volumes that were attached when the instance launched. Volumes attached after instance launch continue running.

You can stop, start, and terminate EBS-backed instances. You can only terminate instance store-backed instances. What happens to an instance differs if you stop it or terminate it. For example, when you stop an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, any attached EBS volumes with the DeleteOnTermination block device mapping parameter set to true are automatically deleted. For more information about the differences between stopping and terminating instances, see Instance Lifecycle in the Amazon Elastic Compute Cloud User Guide.

For more information about troubleshooting, see Troubleshooting Terminating Your Instance in the Amazon Elastic Compute Cloud User Guide.

", + "UnassignIpv6Addresses": "

Unassigns one or more IPv6 addresses from a network interface.

", + "UnassignPrivateIpAddresses": "

Unassigns one or more secondary private IP addresses from a network interface.

", + "UnmonitorInstances": "

Disables detailed monitoring for a running instance. For more information, see Monitoring Your Instances and Volumes in the Amazon Elastic Compute Cloud User Guide.

" + }, + "shapes": { + "AcceptReservedInstancesExchangeQuoteRequest": { + "base": "

Contains the parameters for accepting the quote.

", + "refs": { + } + }, + "AcceptReservedInstancesExchangeQuoteResult": { + "base": "

The result of the exchange and whether it was successful.

", + "refs": { + } + }, + "AcceptVpcPeeringConnectionRequest": { + "base": "

Contains the parameters for AcceptVpcPeeringConnection.

", + "refs": { + } + }, + "AcceptVpcPeeringConnectionResult": { + "base": "

Contains the output of AcceptVpcPeeringConnection.

", + "refs": { + } + }, + "AccountAttribute": { + "base": "

Describes an account attribute.

", + "refs": { + "AccountAttributeList$member": null + } + }, + "AccountAttributeList": { + "base": null, + "refs": { + "DescribeAccountAttributesResult$AccountAttributes": "

Information about one or more account attributes.

" + } + }, + "AccountAttributeName": { + "base": null, + "refs": { + "AccountAttributeNameStringList$member": null + } + }, + "AccountAttributeNameStringList": { + "base": null, + "refs": { + "DescribeAccountAttributesRequest$AttributeNames": "

One or more account attribute names.

" + } + }, + "AccountAttributeValue": { + "base": "

Describes a value of an account attribute.

", + "refs": { + "AccountAttributeValueList$member": null + } + }, + "AccountAttributeValueList": { + "base": null, + "refs": { + "AccountAttribute$AttributeValues": "

One or more values for the account attribute.

" + } + }, + "ActiveInstance": { + "base": "

Describes a running instance in a Spot fleet.

", + "refs": { + "ActiveInstanceSet$member": null + } + }, + "ActiveInstanceSet": { + "base": null, + "refs": { + "DescribeSpotFleetInstancesResponse$ActiveInstances": "

The running instances. Note that this list is refreshed periodically and might be out of date.

" + } + }, + "ActivityStatus": { + "base": null, + "refs": { + "SpotFleetRequestConfig$ActivityStatus": "

The progress of the Spot fleet request. If there is an error, the status is error. After all bids are placed, the status is pending_fulfillment. If the size of the fleet is equal to or greater than its target capacity, the status is fulfilled. If the size of the fleet is decreased, the status is pending_termination while Spot instances are terminating.

" + } + }, + "Address": { + "base": "

Describes an Elastic IP address.

", + "refs": { + "AddressList$member": null + } + }, + "AddressList": { + "base": null, + "refs": { + "DescribeAddressesResult$Addresses": "

Information about one or more Elastic IP addresses.

" + } + }, + "Affinity": { + "base": null, + "refs": { + "ModifyInstancePlacementRequest$Affinity": "

The new affinity setting for the instance.

" + } + }, + "AllocateAddressRequest": { + "base": "

Contains the parameters for AllocateAddress.

", + "refs": { + } + }, + "AllocateAddressResult": { + "base": "

Contains the output of AllocateAddress.

", + "refs": { + } + }, + "AllocateHostsRequest": { + "base": "

Contains the parameters for AllocateHosts.

", + "refs": { + } + }, + "AllocateHostsResult": { + "base": "

Contains the output of AllocateHosts.

", + "refs": { + } + }, + "AllocationIdList": { + "base": null, + "refs": { + "DescribeAddressesRequest$AllocationIds": "

[EC2-VPC] One or more allocation IDs.

Default: Describes all your Elastic IP addresses.

" + } + }, + "AllocationState": { + "base": null, + "refs": { + "Host$State": "

The Dedicated Host's state.

" + } + }, + "AllocationStrategy": { + "base": null, + "refs": { + "SpotFleetRequestConfigData$AllocationStrategy": "

Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request. The default is lowestPrice.

" + } + }, + "ArchitectureValues": { + "base": null, + "refs": { + "Image$Architecture": "

The architecture of the image.

", + "ImportInstanceLaunchSpecification$Architecture": "

The architecture of the instance.

", + "Instance$Architecture": "

The architecture of the image.

", + "RegisterImageRequest$Architecture": "

The architecture of the AMI.

Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs, the architecture specified in the manifest file.

" + } + }, + "AssignIpv6AddressesRequest": { + "base": null, + "refs": { + } + }, + "AssignIpv6AddressesResult": { + "base": null, + "refs": { + } + }, + "AssignPrivateIpAddressesRequest": { + "base": "

Contains the parameters for AssignPrivateIpAddresses.

", + "refs": { + } + }, + "AssociateAddressRequest": { + "base": "

Contains the parameters for AssociateAddress.

", + "refs": { + } + }, + "AssociateAddressResult": { + "base": "

Contains the output of AssociateAddress.

", + "refs": { + } + }, + "AssociateDhcpOptionsRequest": { + "base": "

Contains the parameters for AssociateDhcpOptions.

", + "refs": { + } + }, + "AssociateIamInstanceProfileRequest": { + "base": null, + "refs": { + } + }, + "AssociateIamInstanceProfileResult": { + "base": null, + "refs": { + } + }, + "AssociateRouteTableRequest": { + "base": "

Contains the parameters for AssociateRouteTable.

", + "refs": { + } + }, + "AssociateRouteTableResult": { + "base": "

Contains the output of AssociateRouteTable.

", + "refs": { + } + }, + "AssociateSubnetCidrBlockRequest": { + "base": null, + "refs": { + } + }, + "AssociateSubnetCidrBlockResult": { + "base": null, + "refs": { + } + }, + "AssociateVpcCidrBlockRequest": { + "base": null, + "refs": { + } + }, + "AssociateVpcCidrBlockResult": { + "base": null, + "refs": { + } + }, + "AssociationIdList": { + "base": null, + "refs": { + "DescribeIamInstanceProfileAssociationsRequest$AssociationIds": "

One or more IAM instance profile associations.

" + } + }, + "AttachClassicLinkVpcRequest": { + "base": "

Contains the parameters for AttachClassicLinkVpc.

", + "refs": { + } + }, + "AttachClassicLinkVpcResult": { + "base": "

Contains the output of AttachClassicLinkVpc.

", + "refs": { + } + }, + "AttachInternetGatewayRequest": { + "base": "

Contains the parameters for AttachInternetGateway.

", + "refs": { + } + }, + "AttachNetworkInterfaceRequest": { + "base": "

Contains the parameters for AttachNetworkInterface.

", + "refs": { + } + }, + "AttachNetworkInterfaceResult": { + "base": "

Contains the output of AttachNetworkInterface.

", + "refs": { + } + }, + "AttachVolumeRequest": { + "base": "

Contains the parameters for AttachVolume.

", + "refs": { + } + }, + "AttachVpnGatewayRequest": { + "base": "

Contains the parameters for AttachVpnGateway.

", + "refs": { + } + }, + "AttachVpnGatewayResult": { + "base": "

Contains the output of AttachVpnGateway.

", + "refs": { + } + }, + "AttachmentStatus": { + "base": null, + "refs": { + "EbsInstanceBlockDevice$Status": "

The attachment state.

", + "InstanceNetworkInterfaceAttachment$Status": "

The attachment state.

", + "InternetGatewayAttachment$State": "

The current state of the attachment.

", + "NetworkInterfaceAttachment$Status": "

The attachment state.

", + "VpcAttachment$State": "

The current state of the attachment.

" + } + }, + "AttributeBooleanValue": { + "base": "

Describes a value for a resource attribute that is a Boolean value.

", + "refs": { + "DescribeNetworkInterfaceAttributeResult$SourceDestCheck": "

Indicates whether source/destination checking is enabled.

", + "DescribeVolumeAttributeResult$AutoEnableIO": "

The state of autoEnableIO attribute.

", + "DescribeVpcAttributeResult$EnableDnsSupport": "

Indicates whether DNS resolution is enabled for the VPC. If this attribute is true, the Amazon DNS server resolves DNS hostnames for your instances to their corresponding IP addresses; otherwise, it does not.

", + "DescribeVpcAttributeResult$EnableDnsHostnames": "

Indicates whether the instances launched in the VPC get DNS hostnames. If this attribute is true, instances in the VPC get DNS hostnames; otherwise, they do not.

", + "InstanceAttribute$DisableApiTermination": "

If the value is true, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.

", + "InstanceAttribute$EbsOptimized": "

Indicates whether the instance is optimized for EBS I/O.

", + "InstanceAttribute$EnaSupport": "

Indicates whether enhanced networking with ENA is enabled.

", + "InstanceAttribute$SourceDestCheck": "

Indicates whether source/destination checking is enabled. A value of true means checking is enabled, and false means checking is disabled. This value must be false for a NAT instance to perform NAT.

", + "ModifyInstanceAttributeRequest$SourceDestCheck": "

Specifies whether source/destination checking is enabled. A value of true means that checking is enabled, and false means checking is disabled. This value must be false for a NAT instance to perform NAT.

", + "ModifyInstanceAttributeRequest$DisableApiTermination": "

If the value is true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. You cannot use this paramater for Spot Instances.

", + "ModifyInstanceAttributeRequest$EbsOptimized": "

Specifies whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.

", + "ModifyInstanceAttributeRequest$EnaSupport": "

Set to true to enable enhanced networking with ENA for the instance.

This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.

", + "ModifyNetworkInterfaceAttributeRequest$SourceDestCheck": "

Indicates whether source/destination checking is enabled. A value of true means checking is enabled, and false means checking is disabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.

", + "ModifySubnetAttributeRequest$MapPublicIpOnLaunch": "

Specify true to indicate that network interfaces created in the specified subnet should be assigned a public IPv4 address. This includes a network interface that's created when launching an instance into the subnet (the instance therefore receives a public IPv4 address).

", + "ModifySubnetAttributeRequest$AssignIpv6AddressOnCreation": "

Specify true to indicate that network interfaces created in the specified subnet should be assigned an IPv6 address. This includes a network interface that's created when launching an instance into the subnet (the instance therefore receives an IPv6 address).

If you enable the IPv6 addressing feature for your subnet, your network interface or instance only receives an IPv6 address if it's created using version 2016-11-15 or later of the Amazon EC2 API.

", + "ModifyVolumeAttributeRequest$AutoEnableIO": "

Indicates whether the volume should be auto-enabled for I/O operations.

", + "ModifyVpcAttributeRequest$EnableDnsSupport": "

Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range \"plus two\" will succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled.

You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute.

", + "ModifyVpcAttributeRequest$EnableDnsHostnames": "

Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not.

You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute. You can only enable DNS hostnames if you've enabled DNS support.

" + } + }, + "AttributeValue": { + "base": "

Describes a value for a resource attribute that is a String.

", + "refs": { + "DescribeNetworkInterfaceAttributeResult$Description": "

The description of the network interface.

", + "DhcpConfigurationValueList$member": null, + "ImageAttribute$KernelId": "

The kernel ID.

", + "ImageAttribute$RamdiskId": "

The RAM disk ID.

", + "ImageAttribute$Description": "

A description for the AMI.

", + "ImageAttribute$SriovNetSupport": "

Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.

", + "InstanceAttribute$InstanceType": "

The instance type.

", + "InstanceAttribute$KernelId": "

The kernel ID.

", + "InstanceAttribute$RamdiskId": "

The RAM disk ID.

", + "InstanceAttribute$UserData": "

The user data.

", + "InstanceAttribute$InstanceInitiatedShutdownBehavior": "

Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

", + "InstanceAttribute$RootDeviceName": "

The name of the root device (for example, /dev/sda1 or /dev/xvda).

", + "InstanceAttribute$SriovNetSupport": "

Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.

", + "ModifyImageAttributeRequest$Description": "

A description for the AMI.

", + "ModifyInstanceAttributeRequest$InstanceType": "

Changes the instance type to the specified value. For more information, see Instance Types. If the instance type is not valid, the error returned is InvalidInstanceAttributeValue.

", + "ModifyInstanceAttributeRequest$Kernel": "

Changes the instance's kernel to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.

", + "ModifyInstanceAttributeRequest$Ramdisk": "

Changes the instance's RAM disk to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.

", + "ModifyInstanceAttributeRequest$InstanceInitiatedShutdownBehavior": "

Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

", + "ModifyInstanceAttributeRequest$SriovNetSupport": "

Set to simple to enable enhanced networking with the Intel 82599 Virtual Function interface for the instance.

There is no way to disable enhanced networking with the Intel 82599 Virtual Function interface at this time.

This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.

", + "ModifyNetworkInterfaceAttributeRequest$Description": "

A description for the network interface.

" + } + }, + "AuthorizeSecurityGroupEgressRequest": { + "base": "

Contains the parameters for AuthorizeSecurityGroupEgress.

", + "refs": { + } + }, + "AuthorizeSecurityGroupIngressRequest": { + "base": "

Contains the parameters for AuthorizeSecurityGroupIngress.

", + "refs": { + } + }, + "AutoPlacement": { + "base": null, + "refs": { + "AllocateHostsRequest$AutoPlacement": "

This is enabled by default. This property allows instances to be automatically placed onto available Dedicated Hosts, when you are launching instances without specifying a host ID.

Default: Enabled

", + "Host$AutoPlacement": "

Whether auto-placement is on or off.

", + "ModifyHostsRequest$AutoPlacement": "

Specify whether to enable or disable auto-placement.

" + } + }, + "AvailabilityZone": { + "base": "

Describes an Availability Zone.

", + "refs": { + "AvailabilityZoneList$member": null + } + }, + "AvailabilityZoneList": { + "base": null, + "refs": { + "DescribeAvailabilityZonesResult$AvailabilityZones": "

Information about one or more Availability Zones.

" + } + }, + "AvailabilityZoneMessage": { + "base": "

Describes a message about an Availability Zone.

", + "refs": { + "AvailabilityZoneMessageList$member": null + } + }, + "AvailabilityZoneMessageList": { + "base": null, + "refs": { + "AvailabilityZone$Messages": "

Any messages about the Availability Zone.

" + } + }, + "AvailabilityZoneState": { + "base": null, + "refs": { + "AvailabilityZone$State": "

The state of the Availability Zone.

" + } + }, + "AvailableCapacity": { + "base": "

The capacity information for instances launched onto the Dedicated Host.

", + "refs": { + "Host$AvailableCapacity": "

The number of new instances that can be launched onto the Dedicated Host.

" + } + }, + "AvailableInstanceCapacityList": { + "base": null, + "refs": { + "AvailableCapacity$AvailableInstanceCapacity": "

The total number of instances that the Dedicated Host supports.

" + } + }, + "BatchState": { + "base": null, + "refs": { + "CancelSpotFleetRequestsSuccessItem$CurrentSpotFleetRequestState": "

The current state of the Spot fleet request.

", + "CancelSpotFleetRequestsSuccessItem$PreviousSpotFleetRequestState": "

The previous state of the Spot fleet request.

", + "SpotFleetRequestConfig$SpotFleetRequestState": "

The state of the Spot fleet request.

" + } + }, + "BillingProductList": { + "base": null, + "refs": { + "RegisterImageRequest$BillingProducts": "

The billing product codes.

" + } + }, + "Blob": { + "base": null, + "refs": { + "BlobAttributeValue$Value": null, + "ImportKeyPairRequest$PublicKeyMaterial": "

The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.

", + "S3Storage$UploadPolicy": "

An Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf.

" + } + }, + "BlobAttributeValue": { + "base": null, + "refs": { + "ModifyInstanceAttributeRequest$UserData": "

Changes the instance's user data to the specified value. If you are using an AWS SDK or command line tool, Base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide Base64-encoded text.

" + } + }, + "BlockDeviceMapping": { + "base": "

Describes a block device mapping.

", + "refs": { + "BlockDeviceMappingList$member": null, + "BlockDeviceMappingRequestList$member": null + } + }, + "BlockDeviceMappingList": { + "base": null, + "refs": { + "Image$BlockDeviceMappings": "

Any block device mapping entries.

", + "ImageAttribute$BlockDeviceMappings": "

One or more block device mapping entries.

", + "LaunchSpecification$BlockDeviceMappings": "

One or more block device mapping entries.

Although you can specify encrypted EBS volumes in this block device mapping for your Spot Instances, these volumes are not encrypted.

", + "RequestSpotLaunchSpecification$BlockDeviceMappings": "

One or more block device mapping entries.

Although you can specify encrypted EBS volumes in this block device mapping for your Spot Instances, these volumes are not encrypted.

", + "SpotFleetLaunchSpecification$BlockDeviceMappings": "

One or more block device mapping entries.

" + } + }, + "BlockDeviceMappingRequestList": { + "base": null, + "refs": { + "CreateImageRequest$BlockDeviceMappings": "

Information about one or more block device mappings.

", + "RegisterImageRequest$BlockDeviceMappings": "

One or more block device mapping entries.

", + "RunInstancesRequest$BlockDeviceMappings": "

The block device mapping.

Supplying both a snapshot ID and an encryption value as arguments for block-device mapping results in an error. This is because only blank volumes can be encrypted on start, and these are not created from a snapshot. If a snapshot is the basis for the volume, it contains data by definition and its encryption status cannot be changed using this action.

" + } + }, + "Boolean": { + "base": null, + "refs": { + "AcceptReservedInstancesExchangeQuoteRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "AcceptVpcPeeringConnectionRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "AllocateAddressRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "AssignPrivateIpAddressesRequest$AllowReassignment": "

Indicates whether to allow an IP address that is already assigned to another network interface or instance to be reassigned to the specified network interface.

", + "AssociateAddressRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "AssociateAddressRequest$AllowReassociation": "

[EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an Elastic IP address that is already associated with an instance or network interface to be reassociated with the specified instance or network interface. Otherwise, the operation fails. In a VPC in an EC2-VPC-only account, reassociation is automatic, therefore you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.

", + "AssociateDhcpOptionsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "AssociateRouteTableRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "AssociateVpcCidrBlockRequest$AmazonProvidedIpv6CidrBlock": "

Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block.

", + "AttachClassicLinkVpcRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "AttachClassicLinkVpcResult$Return": "

Returns true if the request succeeds; otherwise, it returns an error.

", + "AttachInternetGatewayRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "AttachNetworkInterfaceRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "AttachVolumeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "AttachVpnGatewayRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "AttributeBooleanValue$Value": "

The attribute value. The valid values are true or false.

", + "AuthorizeSecurityGroupEgressRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "AuthorizeSecurityGroupIngressRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "BundleInstanceRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CancelBundleTaskRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CancelConversionRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CancelImportTaskRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CancelSpotFleetRequestsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CancelSpotFleetRequestsRequest$TerminateInstances": "

Indicates whether to terminate instances for a Spot fleet request if it is canceled successfully.

", + "CancelSpotInstanceRequestsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ClassicLinkDnsSupport$ClassicLinkDnsSupported": "

Indicates whether ClassicLink DNS support is enabled for the VPC.

", + "ConfirmProductInstanceRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ConfirmProductInstanceResult$Return": "

The return value of the request. Returns true if the specified product code is owned by the requester and associated with the specified instance.

", + "CopyImageRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CopyImageRequest$Encrypted": "

Specifies whether the destination snapshots of the copied image should be encrypted. The default CMK for EBS is used unless a non-default AWS Key Management Service (AWS KMS) CMK is specified with KmsKeyId. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

", + "CopySnapshotRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CopySnapshotRequest$Encrypted": "

Specifies whether the destination snapshot should be encrypted. You can encrypt a copy of an unencrypted snapshot using this flag, but you cannot use it to create an unencrypted copy from an encrypted snapshot. Your default CMK for EBS is used unless a non-default AWS Key Management Service (AWS KMS) CMK is specified with KmsKeyId. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

", + "CreateCustomerGatewayRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateDhcpOptionsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateEgressOnlyInternetGatewayRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateImageRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateImageRequest$NoReboot": "

By default, Amazon EC2 attempts to shut down and reboot the instance before creating the image. If the 'No Reboot' option is set, Amazon EC2 doesn't shut down the instance before creating the image. When this option is used, file system integrity on the created image can't be guaranteed.

", + "CreateInternetGatewayRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateKeyPairRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateNetworkAclEntryRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateNetworkAclEntryRequest$Egress": "

Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).

", + "CreateNetworkAclRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateNetworkInterfaceRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreatePlacementGroupRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateRouteRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateRouteResult$Return": "

Returns true if the request succeeds; otherwise, it returns an error.

", + "CreateRouteTableRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateSecurityGroupRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateSnapshotRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateSpotDatafeedSubscriptionRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateSubnetRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateTagsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateVolumeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateVolumeRequest$Encrypted": "

Specifies whether the volume should be encrypted. Encrypted Amazon EBS volumes may only be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are automatically encrypted. There is no way to create an encrypted volume from an unencrypted snapshot or vice versa. If your AMI uses encrypted volumes, you can only launch it on supported instance types. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

", + "CreateVpcEndpointRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateVpcPeeringConnectionRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateVpcRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateVpcRequest$AmazonProvidedIpv6CidrBlock": "

Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IP addresses, or the size of the CIDR block.

", + "CreateVpnConnectionRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateVpnGatewayRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteCustomerGatewayRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteDhcpOptionsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteEgressOnlyInternetGatewayRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteEgressOnlyInternetGatewayResult$ReturnCode": "

Returns true if the request succeeds; otherwise, it returns an error.

", + "DeleteInternetGatewayRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteKeyPairRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteNetworkAclEntryRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteNetworkAclEntryRequest$Egress": "

Indicates whether the rule is an egress rule.

", + "DeleteNetworkAclRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteNetworkInterfaceRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeletePlacementGroupRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteRouteRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteRouteTableRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteSecurityGroupRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteSnapshotRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteSpotDatafeedSubscriptionRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteSubnetRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteTagsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteVolumeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteVpcEndpointsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteVpcPeeringConnectionRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteVpcPeeringConnectionResult$Return": "

Returns true if the request succeeds; otherwise, it returns an error.

", + "DeleteVpcRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteVpnConnectionRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeleteVpnGatewayRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DeregisterImageRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeAccountAttributesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeAddressesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeAvailabilityZonesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeBundleTasksRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeClassicLinkInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeConversionTasksRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeCustomerGatewaysRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeDhcpOptionsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeEgressOnlyInternetGatewaysRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeImageAttributeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeImagesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeImportImageTasksRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeImportSnapshotTasksRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeInstanceAttributeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeInstanceStatusRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeInstanceStatusRequest$IncludeAllInstances": "

When true, includes the health status for all instances. When false, includes the health status for running instances only.

Default: false

", + "DescribeInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeInternetGatewaysRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeKeyPairsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeMovingAddressesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeNetworkAclsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeNetworkInterfaceAttributeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeNetworkInterfacesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribePlacementGroupsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribePrefixListsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeRegionsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeReservedInstancesOfferingsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeReservedInstancesOfferingsRequest$IncludeMarketplace": "

Include Reserved Instance Marketplace offerings in the response.

", + "DescribeReservedInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeRouteTablesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeScheduledInstanceAvailabilityRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeScheduledInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeSecurityGroupReferencesRequest$DryRun": "

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeSecurityGroupsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeSnapshotAttributeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeSnapshotsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeSpotDatafeedSubscriptionRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeSpotFleetInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeSpotFleetRequestHistoryRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeSpotFleetRequestsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeSpotInstanceRequestsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeSpotPriceHistoryRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeStaleSecurityGroupsRequest$DryRun": "

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeSubnetsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeTagsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeVolumeAttributeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeVolumeStatusRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeVolumesModificationsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeVolumesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeVpcAttributeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeVpcClassicLinkRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeVpcEndpointServicesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeVpcEndpointsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeVpcPeeringConnectionsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeVpcsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeVpnConnectionsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DescribeVpnGatewaysRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DetachClassicLinkVpcRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DetachClassicLinkVpcResult$Return": "

Returns true if the request succeeds; otherwise, it returns an error.

", + "DetachInternetGatewayRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DetachNetworkInterfaceRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DetachNetworkInterfaceRequest$Force": "

Specifies whether to force a detachment.

", + "DetachVolumeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DetachVolumeRequest$Force": "

Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging into an instance, unmounting the volume, and detaching normally). This option can lead to data loss or a corrupted file system. Use this option only as a last resort to detach a volume from a failed instance. The instance won't have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures.

", + "DetachVpnGatewayRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DisableVpcClassicLinkDnsSupportResult$Return": "

Returns true if the request succeeds; otherwise, it returns an error.

", + "DisableVpcClassicLinkRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DisableVpcClassicLinkResult$Return": "

Returns true if the request succeeds; otherwise, it returns an error.

", + "DisassociateAddressRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DisassociateRouteTableRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "EbsBlockDevice$DeleteOnTermination": "

Indicates whether the EBS volume is deleted on instance termination.

", + "EbsBlockDevice$Encrypted": "

Indicates whether the EBS volume is encrypted. Encrypted Amazon EBS volumes may only be attached to instances that support Amazon EBS encryption.

", + "EbsInstanceBlockDevice$DeleteOnTermination": "

Indicates whether the volume is deleted on instance termination.

", + "EbsInstanceBlockDeviceSpecification$DeleteOnTermination": "

Indicates whether the volume is deleted on instance termination.

", + "EnableVolumeIORequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "EnableVpcClassicLinkDnsSupportResult$Return": "

Returns true if the request succeeds; otherwise, it returns an error.

", + "EnableVpcClassicLinkRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "EnableVpcClassicLinkResult$Return": "

Returns true if the request succeeds; otherwise, it returns an error.

", + "GetConsoleOutputRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "GetConsoleScreenshotRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "GetConsoleScreenshotRequest$WakeUp": "

When set to true, acts as keystroke input and wakes up an instance that's in standby or \"sleep\" mode.

", + "GetPasswordDataRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "GetReservedInstancesExchangeQuoteRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "GetReservedInstancesExchangeQuoteResult$IsValidExchange": "

If true, the exchange is valid. If false, the exchange cannot be completed.

", + "IdFormat$UseLongIds": "

Indicates whether longer IDs (17-character IDs) are enabled for the resource.

", + "Image$Public": "

Indicates whether the image has public launch permissions. The value is true if this image has public launch permissions or false if it has only implicit and explicit launch permissions.

", + "Image$EnaSupport": "

Specifies whether enhanced networking with ENA is enabled.

", + "ImportImageRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ImportInstanceLaunchSpecification$Monitoring": "

Indicates whether monitoring is enabled.

", + "ImportInstanceRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ImportKeyPairRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ImportSnapshotRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ImportVolumeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "Instance$SourceDestCheck": "

Specifies whether to enable an instance launched in a VPC to perform NAT. This controls whether source/destination checking is enabled on the instance. A value of true means checking is enabled, and false means checking is disabled. The value must be false for the instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.

", + "Instance$EbsOptimized": "

Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.

", + "Instance$EnaSupport": "

Specifies whether enhanced networking with ENA is enabled.

", + "InstanceNetworkInterface$SourceDestCheck": "

Indicates whether to validate network traffic to or from this network interface.

", + "InstanceNetworkInterfaceAttachment$DeleteOnTermination": "

Indicates whether the network interface is deleted when the instance is terminated.

", + "InstanceNetworkInterfaceSpecification$DeleteOnTermination": "

If set to true, the interface is deleted when the instance is terminated. You can specify true only if creating a new network interface when launching an instance.

", + "InstanceNetworkInterfaceSpecification$AssociatePublicIpAddress": "

Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true.

", + "InstancePrivateIpAddress$Primary": "

Indicates whether this IPv4 address is the primary private IP address of the network interface.

", + "LaunchSpecification$EbsOptimized": "

Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.

Default: false

", + "ModifyIdFormatRequest$UseLongIds": "

Indicate whether the resource should use longer IDs (17-character IDs).

", + "ModifyIdentityIdFormatRequest$UseLongIds": "

Indicates whether the resource should use longer IDs (17-character IDs)

", + "ModifyImageAttributeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ModifyInstanceAttributeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ModifyInstancePlacementResult$Return": "

Is true if the request succeeds, and an error otherwise.

", + "ModifyNetworkInterfaceAttributeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ModifySnapshotAttributeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ModifySpotFleetRequestResponse$Return": "

Is true if the request succeeds, and an error otherwise.

", + "ModifyVolumeAttributeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ModifyVolumeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ModifyVpcEndpointRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ModifyVpcEndpointRequest$ResetPolicy": "

Specify true to reset the policy document to the default policy. The default policy allows access to the service.

", + "ModifyVpcEndpointResult$Return": "

Returns true if the request succeeds; otherwise, it returns an error.

", + "ModifyVpcPeeringConnectionOptionsRequest$DryRun": "

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "MonitorInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "MoveAddressToVpcRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "NetworkAcl$IsDefault": "

Indicates whether this is the default network ACL for the VPC.

", + "NetworkAclEntry$Egress": "

Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).

", + "NetworkInterface$RequesterManaged": "

Indicates whether the network interface is being managed by AWS.

", + "NetworkInterface$SourceDestCheck": "

Indicates whether traffic to or from the instance is validated.

", + "NetworkInterfaceAttachment$DeleteOnTermination": "

Indicates whether the network interface is deleted when the instance is terminated.

", + "NetworkInterfaceAttachmentChanges$DeleteOnTermination": "

Indicates whether the network interface is deleted when the instance is terminated.

", + "NetworkInterfacePrivateIpAddress$Primary": "

Indicates whether this IPv4 address is the primary private IPv4 address of the network interface.

", + "PeeringConnectionOptions$AllowEgressFromLocalClassicLinkToRemoteVpc": "

If true, enables outbound communication from an EC2-Classic instance that's linked to a local VPC via ClassicLink to instances in a peer VPC.

", + "PeeringConnectionOptions$AllowEgressFromLocalVpcToRemoteClassicLink": "

If true, enables outbound communication from instances in a local VPC to an EC2-Classic instance that's linked to a peer VPC via ClassicLink.

", + "PeeringConnectionOptions$AllowDnsResolutionFromRemoteVpc": "

If true, enables a local VPC to resolve public DNS hostnames to private IP addresses when queried from instances in the peer VPC.

", + "PeeringConnectionOptionsRequest$AllowEgressFromLocalClassicLinkToRemoteVpc": "

If true, enables outbound communication from an EC2-Classic instance that's linked to a local VPC via ClassicLink to instances in a peer VPC.

", + "PeeringConnectionOptionsRequest$AllowEgressFromLocalVpcToRemoteClassicLink": "

If true, enables outbound communication from instances in a local VPC to an EC2-Classic instance that's linked to a peer VPC via ClassicLink.

", + "PeeringConnectionOptionsRequest$AllowDnsResolutionFromRemoteVpc": "

If true, enables a local VPC to resolve public DNS hostnames to private IP addresses when queried from instances in the peer VPC.

", + "PriceSchedule$Active": "

The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.

A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.

", + "PrivateIpAddressSpecification$Primary": "

Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.

", + "PurchaseReservedInstancesOfferingRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "PurchaseScheduledInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "RebootInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "RegisterImageRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "RegisterImageRequest$EnaSupport": "

Set to true to enable enhanced networking with ENA for the AMI and any instances that you launch from the AMI.

This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from the AMI unreachable.

", + "RejectVpcPeeringConnectionRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "RejectVpcPeeringConnectionResult$Return": "

Returns true if the request succeeds; otherwise, it returns an error.

", + "ReleaseAddressRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ReplaceNetworkAclAssociationRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ReplaceNetworkAclEntryRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ReplaceNetworkAclEntryRequest$Egress": "

Indicates whether to replace the egress rule.

Default: If no value is specified, we replace the ingress rule.

", + "ReplaceRouteRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ReplaceRouteTableAssociationRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ReportInstanceStatusRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "RequestSpotFleetRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "RequestSpotInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "RequestSpotLaunchSpecification$EbsOptimized": "

Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.

Default: false

", + "ReservedInstancesOffering$Marketplace": "

Indicates whether the offering is available through the Reserved Instance Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering, this is true.

", + "ResetImageAttributeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ResetInstanceAttributeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ResetNetworkInterfaceAttributeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ResetSnapshotAttributeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "RestoreAddressToClassicRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "RevokeSecurityGroupEgressRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "RevokeSecurityGroupIngressRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "RouteTableAssociation$Main": "

Indicates whether this is the main route table.

", + "RunInstancesMonitoringEnabled$Enabled": "

Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring is enabled.

", + "RunInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "RunInstancesRequest$DisableApiTermination": "

If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute to false after launch, use ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, you can terminate the instance by running the shutdown command from the instance.

Default: false

", + "RunInstancesRequest$EbsOptimized": "

Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.

Default: false

", + "RunScheduledInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ScheduledInstanceRecurrence$OccurrenceRelativeToEnd": "

Indicates whether the occurrence is relative to the end of the specified week or month.

", + "ScheduledInstanceRecurrenceRequest$OccurrenceRelativeToEnd": "

Indicates whether the occurrence is relative to the end of the specified week or month. You can't specify this value with a daily schedule.

", + "ScheduledInstancesEbs$DeleteOnTermination": "

Indicates whether the volume is deleted on instance termination.

", + "ScheduledInstancesEbs$Encrypted": "

Indicates whether the volume is encrypted. You can attached encrypted volumes only to instances that support them.

", + "ScheduledInstancesLaunchSpecification$EbsOptimized": "

Indicates whether the instances are optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.

Default: false

", + "ScheduledInstancesMonitoring$Enabled": "

Indicates whether monitoring is enabled.

", + "ScheduledInstancesNetworkInterface$AssociatePublicIpAddress": "

Indicates whether to assign a public IPv4 address to instances launched in a VPC. The public IPv4 address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true.

", + "ScheduledInstancesNetworkInterface$DeleteOnTermination": "

Indicates whether to delete the interface when the instance is terminated.

", + "ScheduledInstancesPrivateIpAddressConfig$Primary": "

Indicates whether this is a primary IPv4 address. Otherwise, this is a secondary IPv4 address.

", + "Snapshot$Encrypted": "

Indicates whether the snapshot is encrypted.

", + "SpotFleetLaunchSpecification$EbsOptimized": "

Indicates whether the instances are optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.

Default: false

", + "SpotFleetMonitoring$Enabled": "

Enables monitoring for the instance.

Default: false

", + "SpotFleetRequestConfigData$TerminateInstancesWithExpiration": "

Indicates whether running Spot instances should be terminated when the Spot fleet request expires.

", + "SpotFleetRequestConfigData$ReplaceUnhealthyInstances": "

Indicates whether Spot fleet should replace unhealthy instances.

", + "StartInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "StopInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "StopInstancesRequest$Force": "

Forces the instances to stop. The instances do not have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures. This option is not recommended for Windows instances.

Default: false

", + "Subnet$AssignIpv6AddressOnCreation": "

Indicates whether a network interface created in this subnet (including a network interface created by RunInstances) receives an IPv6 address.

", + "Subnet$DefaultForAz": "

Indicates whether this is the default subnet for the Availability Zone.

", + "Subnet$MapPublicIpOnLaunch": "

Indicates whether instances launched in this subnet receive a public IPv4 address.

", + "TerminateInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "UnmonitorInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "Volume$Encrypted": "

Indicates whether the volume will be encrypted.

", + "VolumeAttachment$DeleteOnTermination": "

Indicates whether the EBS volume is deleted on instance termination.

", + "Vpc$IsDefault": "

Indicates whether the VPC is the default VPC.

", + "VpcClassicLink$ClassicLinkEnabled": "

Indicates whether the VPC is enabled for ClassicLink.

", + "VpcPeeringConnectionOptionsDescription$AllowEgressFromLocalClassicLinkToRemoteVpc": "

Indicates whether a local ClassicLink connection can communicate with the peer VPC over the VPC peering connection.

", + "VpcPeeringConnectionOptionsDescription$AllowEgressFromLocalVpcToRemoteClassicLink": "

Indicates whether a local VPC can communicate with a ClassicLink connection in the peer VPC over the VPC peering connection.

", + "VpcPeeringConnectionOptionsDescription$AllowDnsResolutionFromRemoteVpc": "

Indicates whether a local VPC can resolve public DNS hostnames to private IP addresses when queried from instances in a peer VPC.

", + "VpnConnectionOptions$StaticRoutesOnly": "

Indicates whether the VPN connection uses static routes only. Static routes must be used for devices that don't support BGP.

", + "VpnConnectionOptionsSpecification$StaticRoutesOnly": "

Indicates whether the VPN connection uses static routes only. Static routes must be used for devices that don't support BGP.

" + } + }, + "BundleIdStringList": { + "base": null, + "refs": { + "DescribeBundleTasksRequest$BundleIds": "

One or more bundle task IDs.

Default: Describes all your bundle tasks.

" + } + }, + "BundleInstanceRequest": { + "base": "

Contains the parameters for BundleInstance.

", + "refs": { + } + }, + "BundleInstanceResult": { + "base": "

Contains the output of BundleInstance.

", + "refs": { + } + }, + "BundleTask": { + "base": "

Describes a bundle task.

", + "refs": { + "BundleInstanceResult$BundleTask": "

Information about the bundle task.

", + "BundleTaskList$member": null, + "CancelBundleTaskResult$BundleTask": "

Information about the bundle task.

" + } + }, + "BundleTaskError": { + "base": "

Describes an error for BundleInstance.

", + "refs": { + "BundleTask$BundleTaskError": "

If the task fails, a description of the error.

" + } + }, + "BundleTaskList": { + "base": null, + "refs": { + "DescribeBundleTasksResult$BundleTasks": "

Information about one or more bundle tasks.

" + } + }, + "BundleTaskState": { + "base": null, + "refs": { + "BundleTask$State": "

The state of the task.

" + } + }, + "CancelBatchErrorCode": { + "base": null, + "refs": { + "CancelSpotFleetRequestsError$Code": "

The error code.

" + } + }, + "CancelBundleTaskRequest": { + "base": "

Contains the parameters for CancelBundleTask.

", + "refs": { + } + }, + "CancelBundleTaskResult": { + "base": "

Contains the output of CancelBundleTask.

", + "refs": { + } + }, + "CancelConversionRequest": { + "base": "

Contains the parameters for CancelConversionTask.

", + "refs": { + } + }, + "CancelExportTaskRequest": { + "base": "

Contains the parameters for CancelExportTask.

", + "refs": { + } + }, + "CancelImportTaskRequest": { + "base": "

Contains the parameters for CancelImportTask.

", + "refs": { + } + }, + "CancelImportTaskResult": { + "base": "

Contains the output for CancelImportTask.

", + "refs": { + } + }, + "CancelReservedInstancesListingRequest": { + "base": "

Contains the parameters for CancelReservedInstancesListing.

", + "refs": { + } + }, + "CancelReservedInstancesListingResult": { + "base": "

Contains the output of CancelReservedInstancesListing.

", + "refs": { + } + }, + "CancelSpotFleetRequestsError": { + "base": "

Describes a Spot fleet error.

", + "refs": { + "CancelSpotFleetRequestsErrorItem$Error": "

The error.

" + } + }, + "CancelSpotFleetRequestsErrorItem": { + "base": "

Describes a Spot fleet request that was not successfully canceled.

", + "refs": { + "CancelSpotFleetRequestsErrorSet$member": null + } + }, + "CancelSpotFleetRequestsErrorSet": { + "base": null, + "refs": { + "CancelSpotFleetRequestsResponse$UnsuccessfulFleetRequests": "

Information about the Spot fleet requests that are not successfully canceled.

" + } + }, + "CancelSpotFleetRequestsRequest": { + "base": "

Contains the parameters for CancelSpotFleetRequests.

", + "refs": { + } + }, + "CancelSpotFleetRequestsResponse": { + "base": "

Contains the output of CancelSpotFleetRequests.

", + "refs": { + } + }, + "CancelSpotFleetRequestsSuccessItem": { + "base": "

Describes a Spot fleet request that was successfully canceled.

", + "refs": { + "CancelSpotFleetRequestsSuccessSet$member": null + } + }, + "CancelSpotFleetRequestsSuccessSet": { + "base": null, + "refs": { + "CancelSpotFleetRequestsResponse$SuccessfulFleetRequests": "

Information about the Spot fleet requests that are successfully canceled.

" + } + }, + "CancelSpotInstanceRequestState": { + "base": null, + "refs": { + "CancelledSpotInstanceRequest$State": "

The state of the Spot instance request.

" + } + }, + "CancelSpotInstanceRequestsRequest": { + "base": "

Contains the parameters for CancelSpotInstanceRequests.

", + "refs": { + } + }, + "CancelSpotInstanceRequestsResult": { + "base": "

Contains the output of CancelSpotInstanceRequests.

", + "refs": { + } + }, + "CancelledSpotInstanceRequest": { + "base": "

Describes a request to cancel a Spot instance.

", + "refs": { + "CancelledSpotInstanceRequestList$member": null + } + }, + "CancelledSpotInstanceRequestList": { + "base": null, + "refs": { + "CancelSpotInstanceRequestsResult$CancelledSpotInstanceRequests": "

One or more Spot instance requests.

" + } + }, + "ClassicLinkDnsSupport": { + "base": "

Describes the ClassicLink DNS support status of a VPC.

", + "refs": { + "ClassicLinkDnsSupportList$member": null + } + }, + "ClassicLinkDnsSupportList": { + "base": null, + "refs": { + "DescribeVpcClassicLinkDnsSupportResult$Vpcs": "

Information about the ClassicLink DNS support status of the VPCs.

" + } + }, + "ClassicLinkInstance": { + "base": "

Describes a linked EC2-Classic instance.

", + "refs": { + "ClassicLinkInstanceList$member": null + } + }, + "ClassicLinkInstanceList": { + "base": null, + "refs": { + "DescribeClassicLinkInstancesResult$Instances": "

Information about one or more linked EC2-Classic instances.

" + } + }, + "ClientData": { + "base": "

Describes the client-specific data.

", + "refs": { + "ImportImageRequest$ClientData": "

The client-specific data.

", + "ImportSnapshotRequest$ClientData": "

The client-specific data.

" + } + }, + "ConfirmProductInstanceRequest": { + "base": "

Contains the parameters for ConfirmProductInstance.

", + "refs": { + } + }, + "ConfirmProductInstanceResult": { + "base": "

Contains the output of ConfirmProductInstance.

", + "refs": { + } + }, + "ContainerFormat": { + "base": null, + "refs": { + "ExportToS3Task$ContainerFormat": "

The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.

", + "ExportToS3TaskSpecification$ContainerFormat": "

The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.

" + } + }, + "ConversionIdStringList": { + "base": null, + "refs": { + "DescribeConversionTasksRequest$ConversionTaskIds": "

One or more conversion task IDs.

" + } + }, + "ConversionTask": { + "base": "

Describes a conversion task.

", + "refs": { + "DescribeConversionTaskList$member": null, + "ImportInstanceResult$ConversionTask": "

Information about the conversion task.

", + "ImportVolumeResult$ConversionTask": "

Information about the conversion task.

" + } + }, + "ConversionTaskState": { + "base": null, + "refs": { + "ConversionTask$State": "

The state of the conversion task.

" + } + }, + "CopyImageRequest": { + "base": "

Contains the parameters for CopyImage.

", + "refs": { + } + }, + "CopyImageResult": { + "base": "

Contains the output of CopyImage.

", + "refs": { + } + }, + "CopySnapshotRequest": { + "base": "

Contains the parameters for CopySnapshot.

", + "refs": { + } + }, + "CopySnapshotResult": { + "base": "

Contains the output of CopySnapshot.

", + "refs": { + } + }, + "CreateCustomerGatewayRequest": { + "base": "

Contains the parameters for CreateCustomerGateway.

", + "refs": { + } + }, + "CreateCustomerGatewayResult": { + "base": "

Contains the output of CreateCustomerGateway.

", + "refs": { + } + }, + "CreateDhcpOptionsRequest": { + "base": "

Contains the parameters for CreateDhcpOptions.

", + "refs": { + } + }, + "CreateDhcpOptionsResult": { + "base": "

Contains the output of CreateDhcpOptions.

", + "refs": { + } + }, + "CreateEgressOnlyInternetGatewayRequest": { + "base": null, + "refs": { + } + }, + "CreateEgressOnlyInternetGatewayResult": { + "base": null, + "refs": { + } + }, + "CreateFlowLogsRequest": { + "base": "

Contains the parameters for CreateFlowLogs.

", + "refs": { + } + }, + "CreateFlowLogsResult": { + "base": "

Contains the output of CreateFlowLogs.

", + "refs": { + } + }, + "CreateImageRequest": { + "base": "

Contains the parameters for CreateImage.

", + "refs": { + } + }, + "CreateImageResult": { + "base": "

Contains the output of CreateImage.

", + "refs": { + } + }, + "CreateInstanceExportTaskRequest": { + "base": "

Contains the parameters for CreateInstanceExportTask.

", + "refs": { + } + }, + "CreateInstanceExportTaskResult": { + "base": "

Contains the output for CreateInstanceExportTask.

", + "refs": { + } + }, + "CreateInternetGatewayRequest": { + "base": "

Contains the parameters for CreateInternetGateway.

", + "refs": { + } + }, + "CreateInternetGatewayResult": { + "base": "

Contains the output of CreateInternetGateway.

", + "refs": { + } + }, + "CreateKeyPairRequest": { + "base": "

Contains the parameters for CreateKeyPair.

", + "refs": { + } + }, + "CreateNatGatewayRequest": { + "base": "

Contains the parameters for CreateNatGateway.

", + "refs": { + } + }, + "CreateNatGatewayResult": { + "base": "

Contains the output of CreateNatGateway.

", + "refs": { + } + }, + "CreateNetworkAclEntryRequest": { + "base": "

Contains the parameters for CreateNetworkAclEntry.

", + "refs": { + } + }, + "CreateNetworkAclRequest": { + "base": "

Contains the parameters for CreateNetworkAcl.

", + "refs": { + } + }, + "CreateNetworkAclResult": { + "base": "

Contains the output of CreateNetworkAcl.

", + "refs": { + } + }, + "CreateNetworkInterfaceRequest": { + "base": "

Contains the parameters for CreateNetworkInterface.

", + "refs": { + } + }, + "CreateNetworkInterfaceResult": { + "base": "

Contains the output of CreateNetworkInterface.

", + "refs": { + } + }, + "CreatePlacementGroupRequest": { + "base": "

Contains the parameters for CreatePlacementGroup.

", + "refs": { + } + }, + "CreateReservedInstancesListingRequest": { + "base": "

Contains the parameters for CreateReservedInstancesListing.

", + "refs": { + } + }, + "CreateReservedInstancesListingResult": { + "base": "

Contains the output of CreateReservedInstancesListing.

", + "refs": { + } + }, + "CreateRouteRequest": { + "base": "

Contains the parameters for CreateRoute.

", + "refs": { + } + }, + "CreateRouteResult": { + "base": "

Contains the output of CreateRoute.

", + "refs": { + } + }, + "CreateRouteTableRequest": { + "base": "

Contains the parameters for CreateRouteTable.

", + "refs": { + } + }, + "CreateRouteTableResult": { + "base": "

Contains the output of CreateRouteTable.

", + "refs": { + } + }, + "CreateSecurityGroupRequest": { + "base": "

Contains the parameters for CreateSecurityGroup.

", + "refs": { + } + }, + "CreateSecurityGroupResult": { + "base": "

Contains the output of CreateSecurityGroup.

", + "refs": { + } + }, + "CreateSnapshotRequest": { + "base": "

Contains the parameters for CreateSnapshot.

", + "refs": { + } + }, + "CreateSpotDatafeedSubscriptionRequest": { + "base": "

Contains the parameters for CreateSpotDatafeedSubscription.

", + "refs": { + } + }, + "CreateSpotDatafeedSubscriptionResult": { + "base": "

Contains the output of CreateSpotDatafeedSubscription.

", + "refs": { + } + }, + "CreateSubnetRequest": { + "base": "

Contains the parameters for CreateSubnet.

", + "refs": { + } + }, + "CreateSubnetResult": { + "base": "

Contains the output of CreateSubnet.

", + "refs": { + } + }, + "CreateTagsRequest": { + "base": "

Contains the parameters for CreateTags.

", + "refs": { + } + }, + "CreateVolumePermission": { + "base": "

Describes the user or group to be added or removed from the permissions for a volume.

", + "refs": { + "CreateVolumePermissionList$member": null + } + }, + "CreateVolumePermissionList": { + "base": null, + "refs": { + "CreateVolumePermissionModifications$Add": "

Adds a specific AWS account ID or group to a volume's list of create volume permissions.

", + "CreateVolumePermissionModifications$Remove": "

Removes a specific AWS account ID or group from a volume's list of create volume permissions.

", + "DescribeSnapshotAttributeResult$CreateVolumePermissions": "

A list of permissions for creating volumes from the snapshot.

" + } + }, + "CreateVolumePermissionModifications": { + "base": "

Describes modifications to the permissions for a volume.

", + "refs": { + "ModifySnapshotAttributeRequest$CreateVolumePermission": "

A JSON representation of the snapshot attribute modification.

" + } + }, + "CreateVolumeRequest": { + "base": "

Contains the parameters for CreateVolume.

", + "refs": { + } + }, + "CreateVpcEndpointRequest": { + "base": "

Contains the parameters for CreateVpcEndpoint.

", + "refs": { + } + }, + "CreateVpcEndpointResult": { + "base": "

Contains the output of CreateVpcEndpoint.

", + "refs": { + } + }, + "CreateVpcPeeringConnectionRequest": { + "base": "

Contains the parameters for CreateVpcPeeringConnection.

", + "refs": { + } + }, + "CreateVpcPeeringConnectionResult": { + "base": "

Contains the output of CreateVpcPeeringConnection.

", + "refs": { + } + }, + "CreateVpcRequest": { + "base": "

Contains the parameters for CreateVpc.

", + "refs": { + } + }, + "CreateVpcResult": { + "base": "

Contains the output of CreateVpc.

", + "refs": { + } + }, + "CreateVpnConnectionRequest": { + "base": "

Contains the parameters for CreateVpnConnection.

", + "refs": { + } + }, + "CreateVpnConnectionResult": { + "base": "

Contains the output of CreateVpnConnection.

", + "refs": { + } + }, + "CreateVpnConnectionRouteRequest": { + "base": "

Contains the parameters for CreateVpnConnectionRoute.

", + "refs": { + } + }, + "CreateVpnGatewayRequest": { + "base": "

Contains the parameters for CreateVpnGateway.

", + "refs": { + } + }, + "CreateVpnGatewayResult": { + "base": "

Contains the output of CreateVpnGateway.

", + "refs": { + } + }, + "CurrencyCodeValues": { + "base": null, + "refs": { + "GetHostReservationPurchasePreviewResult$CurrencyCode": "

The currency in which the totalUpfrontPrice and totalHourlyPrice amounts are specified. At this time, the only supported currency is USD.

", + "HostOffering$CurrencyCode": "

The currency of the offering.

", + "HostReservation$CurrencyCode": "

The currency in which the upfrontPrice and hourlyPrice amounts are specified. At this time, the only supported currency is USD.

", + "PriceSchedule$CurrencyCode": "

The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD.

", + "PriceScheduleSpecification$CurrencyCode": "

The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD.

", + "Purchase$CurrencyCode": "

The currency in which the UpfrontPrice and HourlyPrice amounts are specified. At this time, the only supported currency is USD.

", + "PurchaseHostReservationRequest$CurrencyCode": "

The currency in which the totalUpfrontPrice, LimitPrice, and totalHourlyPrice amounts are specified. At this time, the only supported currency is USD.

", + "PurchaseHostReservationResult$CurrencyCode": "

The currency in which the totalUpfrontPrice and totalHourlyPrice amounts are specified. At this time, the only supported currency is USD.

", + "ReservedInstanceLimitPrice$CurrencyCode": "

The currency in which the limitPrice amount is specified. At this time, the only supported currency is USD.

", + "ReservedInstances$CurrencyCode": "

The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.

", + "ReservedInstancesOffering$CurrencyCode": "

The currency of the Reserved Instance offering you are purchasing. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.

" + } + }, + "CustomerGateway": { + "base": "

Describes a customer gateway.

", + "refs": { + "CreateCustomerGatewayResult$CustomerGateway": "

Information about the customer gateway.

", + "CustomerGatewayList$member": null + } + }, + "CustomerGatewayIdStringList": { + "base": null, + "refs": { + "DescribeCustomerGatewaysRequest$CustomerGatewayIds": "

One or more customer gateway IDs.

Default: Describes all your customer gateways.

" + } + }, + "CustomerGatewayList": { + "base": null, + "refs": { + "DescribeCustomerGatewaysResult$CustomerGateways": "

Information about one or more customer gateways.

" + } + }, + "DatafeedSubscriptionState": { + "base": null, + "refs": { + "SpotDatafeedSubscription$State": "

The state of the Spot instance data feed subscription.

" + } + }, + "DateTime": { + "base": null, + "refs": { + "BundleTask$StartTime": "

The time this task started.

", + "BundleTask$UpdateTime": "

The time of the most recent update for the task.

", + "ClientData$UploadStart": "

The time that the disk upload starts.

", + "ClientData$UploadEnd": "

The time that the disk upload ends.

", + "DescribeSpotFleetRequestHistoryRequest$StartTime": "

The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

", + "DescribeSpotFleetRequestHistoryResponse$StartTime": "

The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

", + "DescribeSpotFleetRequestHistoryResponse$LastEvaluatedTime": "

The last date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). All records up to this time were retrieved.

If nextToken indicates that there are more results, this value is not present.

", + "DescribeSpotPriceHistoryRequest$StartTime": "

The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

", + "DescribeSpotPriceHistoryRequest$EndTime": "

The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

", + "EbsInstanceBlockDevice$AttachTime": "

The time stamp when the attachment initiated.

", + "FlowLog$CreationTime": "

The date and time the flow log was created.

", + "GetConsoleOutputResult$Timestamp": "

The time the output was last updated.

", + "GetPasswordDataResult$Timestamp": "

The time the data was last updated.

", + "GetReservedInstancesExchangeQuoteResult$OutputReservedInstancesWillExpireAt": "

The new end date of the reservation term.

", + "HistoryRecord$Timestamp": "

The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

", + "HostReservation$End": "

The date and time that the reservation ends.

", + "HostReservation$Start": "

The date and time that the reservation started.

", + "IamInstanceProfileAssociation$Timestamp": "

The time the IAM instance profile was associated with the instance.

", + "IdFormat$Deadline": "

The date in UTC at which you are permanently switched over to using longer IDs. If a deadline is not yet available for this resource type, this field is not returned.

", + "Instance$LaunchTime": "

The time the instance was launched.

", + "InstanceNetworkInterfaceAttachment$AttachTime": "

The time stamp when the attachment initiated.

", + "InstanceStatusDetails$ImpairedSince": "

The time when a status check failed. For an instance that was launched and impaired, this is the time when the instance was launched.

", + "InstanceStatusEvent$NotBefore": "

The earliest scheduled start time for the event.

", + "InstanceStatusEvent$NotAfter": "

The latest scheduled end time for the event.

", + "NatGateway$CreateTime": "

The date and time the NAT gateway was created.

", + "NatGateway$DeleteTime": "

The date and time the NAT gateway was deleted, if applicable.

", + "NetworkInterfaceAttachment$AttachTime": "

The timestamp indicating when the attachment initiated.

", + "ProvisionedBandwidth$RequestTime": "

Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

", + "ProvisionedBandwidth$ProvisionTime": "

Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

", + "ReportInstanceStatusRequest$StartTime": "

The time at which the reported instance health state began.

", + "ReportInstanceStatusRequest$EndTime": "

The time at which the reported instance health state ended.

", + "RequestSpotInstancesRequest$ValidFrom": "

The start date of the request. If this is a one-time request, the request becomes active at this date and time and remains active until all instances launch, the request expires, or the request is canceled. If the request is persistent, the request becomes active at this date and time and remains active until it expires or is canceled.

Default: The request is effective indefinitely.

", + "RequestSpotInstancesRequest$ValidUntil": "

The end date of the request. If this is a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date and time is reached.

Default: The request is effective indefinitely.

", + "ReservedInstances$Start": "

The date and time the Reserved Instance started.

", + "ReservedInstances$End": "

The time when the Reserved Instance expires.

", + "ReservedInstancesListing$CreateDate": "

The time the listing was created.

", + "ReservedInstancesListing$UpdateDate": "

The last modified timestamp of the listing.

", + "ReservedInstancesModification$CreateDate": "

The time when the modification request was created.

", + "ReservedInstancesModification$UpdateDate": "

The time when the modification request was last updated.

", + "ReservedInstancesModification$EffectiveDate": "

The time for the modification to become effective.

", + "ScheduledInstance$PreviousSlotEndTime": "

The time that the previous schedule ended or will end.

", + "ScheduledInstance$NextSlotStartTime": "

The time for the next schedule to start.

", + "ScheduledInstance$TermStartDate": "

The start date for the Scheduled Instance.

", + "ScheduledInstance$TermEndDate": "

The end date for the Scheduled Instance.

", + "ScheduledInstance$CreateDate": "

The date when the Scheduled Instance was purchased.

", + "ScheduledInstanceAvailability$FirstSlotStartTime": "

The time period for the first schedule to start.

", + "SlotDateTimeRangeRequest$EarliestTime": "

The earliest date and time, in UTC, for the Scheduled Instance to start.

", + "SlotDateTimeRangeRequest$LatestTime": "

The latest date and time, in UTC, for the Scheduled Instance to start. This value must be later than or equal to the earliest date and at most three months in the future.

", + "SlotStartTimeRangeRequest$EarliestTime": "

The earliest date and time, in UTC, for the Scheduled Instance to start.

", + "SlotStartTimeRangeRequest$LatestTime": "

The latest date and time, in UTC, for the Scheduled Instance to start.

", + "Snapshot$StartTime": "

The time stamp when the snapshot was initiated.

", + "SpotFleetRequestConfig$CreateTime": "

The creation date and time of the request.

", + "SpotFleetRequestConfigData$ValidFrom": "

The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.

", + "SpotFleetRequestConfigData$ValidUntil": "

The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request.

", + "SpotInstanceRequest$ValidFrom": "

The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The request becomes active at this date and time.

", + "SpotInstanceRequest$ValidUntil": "

The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). If this is a one-time request, it remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date is reached.

", + "SpotInstanceRequest$CreateTime": "

The date and time when the Spot instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

", + "SpotInstanceStatus$UpdateTime": "

The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

", + "SpotPrice$Timestamp": "

The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

", + "VgwTelemetry$LastStatusChange": "

The date and time of the last change in status.

", + "Volume$CreateTime": "

The time stamp when volume creation was initiated.

", + "VolumeAttachment$AttachTime": "

The time stamp when the attachment initiated.

", + "VolumeModification$StartTime": "

Modification start time

", + "VolumeModification$EndTime": "

Modification completion or failure time.

", + "VolumeStatusEvent$NotBefore": "

The earliest start time of the event.

", + "VolumeStatusEvent$NotAfter": "

The latest end time of the event.

", + "VpcEndpoint$CreationTimestamp": "

The date and time the VPC endpoint was created.

", + "VpcPeeringConnection$ExpirationTime": "

The time that an unaccepted VPC peering connection will expire.

" + } + }, + "DeleteCustomerGatewayRequest": { + "base": "

Contains the parameters for DeleteCustomerGateway.

", + "refs": { + } + }, + "DeleteDhcpOptionsRequest": { + "base": "

Contains the parameters for DeleteDhcpOptions.

", + "refs": { + } + }, + "DeleteEgressOnlyInternetGatewayRequest": { + "base": null, + "refs": { + } + }, + "DeleteEgressOnlyInternetGatewayResult": { + "base": null, + "refs": { + } + }, + "DeleteFlowLogsRequest": { + "base": "

Contains the parameters for DeleteFlowLogs.

", + "refs": { + } + }, + "DeleteFlowLogsResult": { + "base": "

Contains the output of DeleteFlowLogs.

", + "refs": { + } + }, + "DeleteInternetGatewayRequest": { + "base": "

Contains the parameters for DeleteInternetGateway.

", + "refs": { + } + }, + "DeleteKeyPairRequest": { + "base": "

Contains the parameters for DeleteKeyPair.

", + "refs": { + } + }, + "DeleteNatGatewayRequest": { + "base": "

Contains the parameters for DeleteNatGateway.

", + "refs": { + } + }, + "DeleteNatGatewayResult": { + "base": "

Contains the output of DeleteNatGateway.

", + "refs": { + } + }, + "DeleteNetworkAclEntryRequest": { + "base": "

Contains the parameters for DeleteNetworkAclEntry.

", + "refs": { + } + }, + "DeleteNetworkAclRequest": { + "base": "

Contains the parameters for DeleteNetworkAcl.

", + "refs": { + } + }, + "DeleteNetworkInterfaceRequest": { + "base": "

Contains the parameters for DeleteNetworkInterface.

", + "refs": { + } + }, + "DeletePlacementGroupRequest": { + "base": "

Contains the parameters for DeletePlacementGroup.

", + "refs": { + } + }, + "DeleteRouteRequest": { + "base": "

Contains the parameters for DeleteRoute.

", + "refs": { + } + }, + "DeleteRouteTableRequest": { + "base": "

Contains the parameters for DeleteRouteTable.

", + "refs": { + } + }, + "DeleteSecurityGroupRequest": { + "base": "

Contains the parameters for DeleteSecurityGroup.

", + "refs": { + } + }, + "DeleteSnapshotRequest": { + "base": "

Contains the parameters for DeleteSnapshot.

", + "refs": { + } + }, + "DeleteSpotDatafeedSubscriptionRequest": { + "base": "

Contains the parameters for DeleteSpotDatafeedSubscription.

", + "refs": { + } + }, + "DeleteSubnetRequest": { + "base": "

Contains the parameters for DeleteSubnet.

", + "refs": { + } + }, + "DeleteTagsRequest": { + "base": "

Contains the parameters for DeleteTags.

", + "refs": { + } + }, + "DeleteVolumeRequest": { + "base": "

Contains the parameters for DeleteVolume.

", + "refs": { + } + }, + "DeleteVpcEndpointsRequest": { + "base": "

Contains the parameters for DeleteVpcEndpoints.

", + "refs": { + } + }, + "DeleteVpcEndpointsResult": { + "base": "

Contains the output of DeleteVpcEndpoints.

", + "refs": { + } + }, + "DeleteVpcPeeringConnectionRequest": { + "base": "

Contains the parameters for DeleteVpcPeeringConnection.

", + "refs": { + } + }, + "DeleteVpcPeeringConnectionResult": { + "base": "

Contains the output of DeleteVpcPeeringConnection.

", + "refs": { + } + }, + "DeleteVpcRequest": { + "base": "

Contains the parameters for DeleteVpc.

", + "refs": { + } + }, + "DeleteVpnConnectionRequest": { + "base": "

Contains the parameters for DeleteVpnConnection.

", + "refs": { + } + }, + "DeleteVpnConnectionRouteRequest": { + "base": "

Contains the parameters for DeleteVpnConnectionRoute.

", + "refs": { + } + }, + "DeleteVpnGatewayRequest": { + "base": "

Contains the parameters for DeleteVpnGateway.

", + "refs": { + } + }, + "DeregisterImageRequest": { + "base": "

Contains the parameters for DeregisterImage.

", + "refs": { + } + }, + "DescribeAccountAttributesRequest": { + "base": "

Contains the parameters for DescribeAccountAttributes.

", + "refs": { + } + }, + "DescribeAccountAttributesResult": { + "base": "

Contains the output of DescribeAccountAttributes.

", + "refs": { + } + }, + "DescribeAddressesRequest": { + "base": "

Contains the parameters for DescribeAddresses.

", + "refs": { + } + }, + "DescribeAddressesResult": { + "base": "

Contains the output of DescribeAddresses.

", + "refs": { + } + }, + "DescribeAvailabilityZonesRequest": { + "base": "

Contains the parameters for DescribeAvailabilityZones.

", + "refs": { + } + }, + "DescribeAvailabilityZonesResult": { + "base": "

Contains the output of DescribeAvailabiltyZones.

", + "refs": { + } + }, + "DescribeBundleTasksRequest": { + "base": "

Contains the parameters for DescribeBundleTasks.

", + "refs": { + } + }, + "DescribeBundleTasksResult": { + "base": "

Contains the output of DescribeBundleTasks.

", + "refs": { + } + }, + "DescribeClassicLinkInstancesRequest": { + "base": "

Contains the parameters for DescribeClassicLinkInstances.

", + "refs": { + } + }, + "DescribeClassicLinkInstancesResult": { + "base": "

Contains the output of DescribeClassicLinkInstances.

", + "refs": { + } + }, + "DescribeConversionTaskList": { + "base": null, + "refs": { + "DescribeConversionTasksResult$ConversionTasks": "

Information about the conversion tasks.

" + } + }, + "DescribeConversionTasksRequest": { + "base": "

Contains the parameters for DescribeConversionTasks.

", + "refs": { + } + }, + "DescribeConversionTasksResult": { + "base": "

Contains the output for DescribeConversionTasks.

", + "refs": { + } + }, + "DescribeCustomerGatewaysRequest": { + "base": "

Contains the parameters for DescribeCustomerGateways.

", + "refs": { + } + }, + "DescribeCustomerGatewaysResult": { + "base": "

Contains the output of DescribeCustomerGateways.

", + "refs": { + } + }, + "DescribeDhcpOptionsRequest": { + "base": "

Contains the parameters for DescribeDhcpOptions.

", + "refs": { + } + }, + "DescribeDhcpOptionsResult": { + "base": "

Contains the output of DescribeDhcpOptions.

", + "refs": { + } + }, + "DescribeEgressOnlyInternetGatewaysRequest": { + "base": null, + "refs": { + } + }, + "DescribeEgressOnlyInternetGatewaysResult": { + "base": null, + "refs": { + } + }, + "DescribeExportTasksRequest": { + "base": "

Contains the parameters for DescribeExportTasks.

", + "refs": { + } + }, + "DescribeExportTasksResult": { + "base": "

Contains the output for DescribeExportTasks.

", + "refs": { + } + }, + "DescribeFlowLogsRequest": { + "base": "

Contains the parameters for DescribeFlowLogs.

", + "refs": { + } + }, + "DescribeFlowLogsResult": { + "base": "

Contains the output of DescribeFlowLogs.

", + "refs": { + } + }, + "DescribeHostReservationOfferingsRequest": { + "base": null, + "refs": { + } + }, + "DescribeHostReservationOfferingsResult": { + "base": null, + "refs": { + } + }, + "DescribeHostReservationsRequest": { + "base": null, + "refs": { + } + }, + "DescribeHostReservationsResult": { + "base": null, + "refs": { + } + }, + "DescribeHostsRequest": { + "base": "

Contains the parameters for DescribeHosts.

", + "refs": { + } + }, + "DescribeHostsResult": { + "base": "

Contains the output of DescribeHosts.

", + "refs": { + } + }, + "DescribeIamInstanceProfileAssociationsRequest": { + "base": null, + "refs": { + } + }, + "DescribeIamInstanceProfileAssociationsResult": { + "base": null, + "refs": { + } + }, + "DescribeIdFormatRequest": { + "base": "

Contains the parameters for DescribeIdFormat.

", + "refs": { + } + }, + "DescribeIdFormatResult": { + "base": "

Contains the output of DescribeIdFormat.

", + "refs": { + } + }, + "DescribeIdentityIdFormatRequest": { + "base": "

Contains the parameters for DescribeIdentityIdFormat.

", + "refs": { + } + }, + "DescribeIdentityIdFormatResult": { + "base": "

Contains the output of DescribeIdentityIdFormat.

", + "refs": { + } + }, + "DescribeImageAttributeRequest": { + "base": "

Contains the parameters for DescribeImageAttribute.

", + "refs": { + } + }, + "DescribeImagesRequest": { + "base": "

Contains the parameters for DescribeImages.

", + "refs": { + } + }, + "DescribeImagesResult": { + "base": "

Contains the output of DescribeImages.

", + "refs": { + } + }, + "DescribeImportImageTasksRequest": { + "base": "

Contains the parameters for DescribeImportImageTasks.

", + "refs": { + } + }, + "DescribeImportImageTasksResult": { + "base": "

Contains the output for DescribeImportImageTasks.

", + "refs": { + } + }, + "DescribeImportSnapshotTasksRequest": { + "base": "

Contains the parameters for DescribeImportSnapshotTasks.

", + "refs": { + } + }, + "DescribeImportSnapshotTasksResult": { + "base": "

Contains the output for DescribeImportSnapshotTasks.

", + "refs": { + } + }, + "DescribeInstanceAttributeRequest": { + "base": "

Contains the parameters for DescribeInstanceAttribute.

", + "refs": { + } + }, + "DescribeInstanceStatusRequest": { + "base": "

Contains the parameters for DescribeInstanceStatus.

", + "refs": { + } + }, + "DescribeInstanceStatusResult": { + "base": "

Contains the output of DescribeInstanceStatus.

", + "refs": { + } + }, + "DescribeInstancesRequest": { + "base": "

Contains the parameters for DescribeInstances.

", + "refs": { + } + }, + "DescribeInstancesResult": { + "base": "

Contains the output of DescribeInstances.

", + "refs": { + } + }, + "DescribeInternetGatewaysRequest": { + "base": "

Contains the parameters for DescribeInternetGateways.

", + "refs": { + } + }, + "DescribeInternetGatewaysResult": { + "base": "

Contains the output of DescribeInternetGateways.

", + "refs": { + } + }, + "DescribeKeyPairsRequest": { + "base": "

Contains the parameters for DescribeKeyPairs.

", + "refs": { + } + }, + "DescribeKeyPairsResult": { + "base": "

Contains the output of DescribeKeyPairs.

", + "refs": { + } + }, + "DescribeMovingAddressesRequest": { + "base": "

Contains the parameters for DescribeMovingAddresses.

", + "refs": { + } + }, + "DescribeMovingAddressesResult": { + "base": "

Contains the output of DescribeMovingAddresses.

", + "refs": { + } + }, + "DescribeNatGatewaysRequest": { + "base": "

Contains the parameters for DescribeNatGateways.

", + "refs": { + } + }, + "DescribeNatGatewaysResult": { + "base": "

Contains the output of DescribeNatGateways.

", + "refs": { + } + }, + "DescribeNetworkAclsRequest": { + "base": "

Contains the parameters for DescribeNetworkAcls.

", + "refs": { + } + }, + "DescribeNetworkAclsResult": { + "base": "

Contains the output of DescribeNetworkAcls.

", + "refs": { + } + }, + "DescribeNetworkInterfaceAttributeRequest": { + "base": "

Contains the parameters for DescribeNetworkInterfaceAttribute.

", + "refs": { + } + }, + "DescribeNetworkInterfaceAttributeResult": { + "base": "

Contains the output of DescribeNetworkInterfaceAttribute.

", + "refs": { + } + }, + "DescribeNetworkInterfacesRequest": { + "base": "

Contains the parameters for DescribeNetworkInterfaces.

", + "refs": { + } + }, + "DescribeNetworkInterfacesResult": { + "base": "

Contains the output of DescribeNetworkInterfaces.

", + "refs": { + } + }, + "DescribePlacementGroupsRequest": { + "base": "

Contains the parameters for DescribePlacementGroups.

", + "refs": { + } + }, + "DescribePlacementGroupsResult": { + "base": "

Contains the output of DescribePlacementGroups.

", + "refs": { + } + }, + "DescribePrefixListsRequest": { + "base": "

Contains the parameters for DescribePrefixLists.

", + "refs": { + } + }, + "DescribePrefixListsResult": { + "base": "

Contains the output of DescribePrefixLists.

", + "refs": { + } + }, + "DescribeRegionsRequest": { + "base": "

Contains the parameters for DescribeRegions.

", + "refs": { + } + }, + "DescribeRegionsResult": { + "base": "

Contains the output of DescribeRegions.

", + "refs": { + } + }, + "DescribeReservedInstancesListingsRequest": { + "base": "

Contains the parameters for DescribeReservedInstancesListings.

", + "refs": { + } + }, + "DescribeReservedInstancesListingsResult": { + "base": "

Contains the output of DescribeReservedInstancesListings.

", + "refs": { + } + }, + "DescribeReservedInstancesModificationsRequest": { + "base": "

Contains the parameters for DescribeReservedInstancesModifications.

", + "refs": { + } + }, + "DescribeReservedInstancesModificationsResult": { + "base": "

Contains the output of DescribeReservedInstancesModifications.

", + "refs": { + } + }, + "DescribeReservedInstancesOfferingsRequest": { + "base": "

Contains the parameters for DescribeReservedInstancesOfferings.

", + "refs": { + } + }, + "DescribeReservedInstancesOfferingsResult": { + "base": "

Contains the output of DescribeReservedInstancesOfferings.

", + "refs": { + } + }, + "DescribeReservedInstancesRequest": { + "base": "

Contains the parameters for DescribeReservedInstances.

", + "refs": { + } + }, + "DescribeReservedInstancesResult": { + "base": "

Contains the output for DescribeReservedInstances.

", + "refs": { + } + }, + "DescribeRouteTablesRequest": { + "base": "

Contains the parameters for DescribeRouteTables.

", + "refs": { + } + }, + "DescribeRouteTablesResult": { + "base": "

Contains the output of DescribeRouteTables.

", + "refs": { + } + }, + "DescribeScheduledInstanceAvailabilityRequest": { + "base": "

Contains the parameters for DescribeScheduledInstanceAvailability.

", + "refs": { + } + }, + "DescribeScheduledInstanceAvailabilityResult": { + "base": "

Contains the output of DescribeScheduledInstanceAvailability.

", + "refs": { + } + }, + "DescribeScheduledInstancesRequest": { + "base": "

Contains the parameters for DescribeScheduledInstances.

", + "refs": { + } + }, + "DescribeScheduledInstancesResult": { + "base": "

Contains the output of DescribeScheduledInstances.

", + "refs": { + } + }, + "DescribeSecurityGroupReferencesRequest": { + "base": null, + "refs": { + } + }, + "DescribeSecurityGroupReferencesResult": { + "base": null, + "refs": { + } + }, + "DescribeSecurityGroupsRequest": { + "base": "

Contains the parameters for DescribeSecurityGroups.

", + "refs": { + } + }, + "DescribeSecurityGroupsResult": { + "base": "

Contains the output of DescribeSecurityGroups.

", + "refs": { + } + }, + "DescribeSnapshotAttributeRequest": { + "base": "

Contains the parameters for DescribeSnapshotAttribute.

", + "refs": { + } + }, + "DescribeSnapshotAttributeResult": { + "base": "

Contains the output of DescribeSnapshotAttribute.

", + "refs": { + } + }, + "DescribeSnapshotsRequest": { + "base": "

Contains the parameters for DescribeSnapshots.

", + "refs": { + } + }, + "DescribeSnapshotsResult": { + "base": "

Contains the output of DescribeSnapshots.

", + "refs": { + } + }, + "DescribeSpotDatafeedSubscriptionRequest": { + "base": "

Contains the parameters for DescribeSpotDatafeedSubscription.

", + "refs": { + } + }, + "DescribeSpotDatafeedSubscriptionResult": { + "base": "

Contains the output of DescribeSpotDatafeedSubscription.

", + "refs": { + } + }, + "DescribeSpotFleetInstancesRequest": { + "base": "

Contains the parameters for DescribeSpotFleetInstances.

", + "refs": { + } + }, + "DescribeSpotFleetInstancesResponse": { + "base": "

Contains the output of DescribeSpotFleetInstances.

", + "refs": { + } + }, + "DescribeSpotFleetRequestHistoryRequest": { + "base": "

Contains the parameters for DescribeSpotFleetRequestHistory.

", + "refs": { + } + }, + "DescribeSpotFleetRequestHistoryResponse": { + "base": "

Contains the output of DescribeSpotFleetRequestHistory.

", + "refs": { + } + }, + "DescribeSpotFleetRequestsRequest": { + "base": "

Contains the parameters for DescribeSpotFleetRequests.

", + "refs": { + } + }, + "DescribeSpotFleetRequestsResponse": { + "base": "

Contains the output of DescribeSpotFleetRequests.

", + "refs": { + } + }, + "DescribeSpotInstanceRequestsRequest": { + "base": "

Contains the parameters for DescribeSpotInstanceRequests.

", + "refs": { + } + }, + "DescribeSpotInstanceRequestsResult": { + "base": "

Contains the output of DescribeSpotInstanceRequests.

", + "refs": { + } + }, + "DescribeSpotPriceHistoryRequest": { + "base": "

Contains the parameters for DescribeSpotPriceHistory.

", + "refs": { + } + }, + "DescribeSpotPriceHistoryResult": { + "base": "

Contains the output of DescribeSpotPriceHistory.

", + "refs": { + } + }, + "DescribeStaleSecurityGroupsRequest": { + "base": null, + "refs": { + } + }, + "DescribeStaleSecurityGroupsResult": { + "base": null, + "refs": { + } + }, + "DescribeSubnetsRequest": { + "base": "

Contains the parameters for DescribeSubnets.

", + "refs": { + } + }, + "DescribeSubnetsResult": { + "base": "

Contains the output of DescribeSubnets.

", + "refs": { + } + }, + "DescribeTagsRequest": { + "base": "

Contains the parameters for DescribeTags.

", + "refs": { + } + }, + "DescribeTagsResult": { + "base": "

Contains the output of DescribeTags.

", + "refs": { + } + }, + "DescribeVolumeAttributeRequest": { + "base": "

Contains the parameters for DescribeVolumeAttribute.

", + "refs": { + } + }, + "DescribeVolumeAttributeResult": { + "base": "

Contains the output of DescribeVolumeAttribute.

", + "refs": { + } + }, + "DescribeVolumeStatusRequest": { + "base": "

Contains the parameters for DescribeVolumeStatus.

", + "refs": { + } + }, + "DescribeVolumeStatusResult": { + "base": "

Contains the output of DescribeVolumeStatus.

", + "refs": { + } + }, + "DescribeVolumesModificationsRequest": { + "base": null, + "refs": { + } + }, + "DescribeVolumesModificationsResult": { + "base": null, + "refs": { + } + }, + "DescribeVolumesRequest": { + "base": "

Contains the parameters for DescribeVolumes.

", + "refs": { + } + }, + "DescribeVolumesResult": { + "base": "

Contains the output of DescribeVolumes.

", + "refs": { + } + }, + "DescribeVpcAttributeRequest": { + "base": "

Contains the parameters for DescribeVpcAttribute.

", + "refs": { + } + }, + "DescribeVpcAttributeResult": { + "base": "

Contains the output of DescribeVpcAttribute.

", + "refs": { + } + }, + "DescribeVpcClassicLinkDnsSupportRequest": { + "base": "

Contains the parameters for DescribeVpcClassicLinkDnsSupport.

", + "refs": { + } + }, + "DescribeVpcClassicLinkDnsSupportResult": { + "base": "

Contains the output of DescribeVpcClassicLinkDnsSupport.

", + "refs": { + } + }, + "DescribeVpcClassicLinkRequest": { + "base": "

Contains the parameters for DescribeVpcClassicLink.

", + "refs": { + } + }, + "DescribeVpcClassicLinkResult": { + "base": "

Contains the output of DescribeVpcClassicLink.

", + "refs": { + } + }, + "DescribeVpcEndpointServicesRequest": { + "base": "

Contains the parameters for DescribeVpcEndpointServices.

", + "refs": { + } + }, + "DescribeVpcEndpointServicesResult": { + "base": "

Contains the output of DescribeVpcEndpointServices.

", + "refs": { + } + }, + "DescribeVpcEndpointsRequest": { + "base": "

Contains the parameters for DescribeVpcEndpoints.

", + "refs": { + } + }, + "DescribeVpcEndpointsResult": { + "base": "

Contains the output of DescribeVpcEndpoints.

", + "refs": { + } + }, + "DescribeVpcPeeringConnectionsRequest": { + "base": "

Contains the parameters for DescribeVpcPeeringConnections.

", + "refs": { + } + }, + "DescribeVpcPeeringConnectionsResult": { + "base": "

Contains the output of DescribeVpcPeeringConnections.

", + "refs": { + } + }, + "DescribeVpcsRequest": { + "base": "

Contains the parameters for DescribeVpcs.

", + "refs": { + } + }, + "DescribeVpcsResult": { + "base": "

Contains the output of DescribeVpcs.

", + "refs": { + } + }, + "DescribeVpnConnectionsRequest": { + "base": "

Contains the parameters for DescribeVpnConnections.

", + "refs": { + } + }, + "DescribeVpnConnectionsResult": { + "base": "

Contains the output of DescribeVpnConnections.

", + "refs": { + } + }, + "DescribeVpnGatewaysRequest": { + "base": "

Contains the parameters for DescribeVpnGateways.

", + "refs": { + } + }, + "DescribeVpnGatewaysResult": { + "base": "

Contains the output of DescribeVpnGateways.

", + "refs": { + } + }, + "DetachClassicLinkVpcRequest": { + "base": "

Contains the parameters for DetachClassicLinkVpc.

", + "refs": { + } + }, + "DetachClassicLinkVpcResult": { + "base": "

Contains the output of DetachClassicLinkVpc.

", + "refs": { + } + }, + "DetachInternetGatewayRequest": { + "base": "

Contains the parameters for DetachInternetGateway.

", + "refs": { + } + }, + "DetachNetworkInterfaceRequest": { + "base": "

Contains the parameters for DetachNetworkInterface.

", + "refs": { + } + }, + "DetachVolumeRequest": { + "base": "

Contains the parameters for DetachVolume.

", + "refs": { + } + }, + "DetachVpnGatewayRequest": { + "base": "

Contains the parameters for DetachVpnGateway.

", + "refs": { + } + }, + "DeviceType": { + "base": null, + "refs": { + "Image$RootDeviceType": "

The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.

", + "Instance$RootDeviceType": "

The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.

" + } + }, + "DhcpConfiguration": { + "base": "

Describes a DHCP configuration option.

", + "refs": { + "DhcpConfigurationList$member": null + } + }, + "DhcpConfigurationList": { + "base": null, + "refs": { + "DhcpOptions$DhcpConfigurations": "

One or more DHCP options in the set.

" + } + }, + "DhcpConfigurationValueList": { + "base": null, + "refs": { + "DhcpConfiguration$Values": "

One or more values for the DHCP option.

" + } + }, + "DhcpOptions": { + "base": "

Describes a set of DHCP options.

", + "refs": { + "CreateDhcpOptionsResult$DhcpOptions": "

A set of DHCP options.

", + "DhcpOptionsList$member": null + } + }, + "DhcpOptionsIdStringList": { + "base": null, + "refs": { + "DescribeDhcpOptionsRequest$DhcpOptionsIds": "

The IDs of one or more DHCP options sets.

Default: Describes all your DHCP options sets.

" + } + }, + "DhcpOptionsList": { + "base": null, + "refs": { + "DescribeDhcpOptionsResult$DhcpOptions": "

Information about one or more DHCP options sets.

" + } + }, + "DisableVgwRoutePropagationRequest": { + "base": "

Contains the parameters for DisableVgwRoutePropagation.

", + "refs": { + } + }, + "DisableVpcClassicLinkDnsSupportRequest": { + "base": "

Contains the parameters for DisableVpcClassicLinkDnsSupport.

", + "refs": { + } + }, + "DisableVpcClassicLinkDnsSupportResult": { + "base": "

Contains the output of DisableVpcClassicLinkDnsSupport.

", + "refs": { + } + }, + "DisableVpcClassicLinkRequest": { + "base": "

Contains the parameters for DisableVpcClassicLink.

", + "refs": { + } + }, + "DisableVpcClassicLinkResult": { + "base": "

Contains the output of DisableVpcClassicLink.

", + "refs": { + } + }, + "DisassociateAddressRequest": { + "base": "

Contains the parameters for DisassociateAddress.

", + "refs": { + } + }, + "DisassociateIamInstanceProfileRequest": { + "base": null, + "refs": { + } + }, + "DisassociateIamInstanceProfileResult": { + "base": null, + "refs": { + } + }, + "DisassociateRouteTableRequest": { + "base": "

Contains the parameters for DisassociateRouteTable.

", + "refs": { + } + }, + "DisassociateSubnetCidrBlockRequest": { + "base": null, + "refs": { + } + }, + "DisassociateSubnetCidrBlockResult": { + "base": null, + "refs": { + } + }, + "DisassociateVpcCidrBlockRequest": { + "base": null, + "refs": { + } + }, + "DisassociateVpcCidrBlockResult": { + "base": null, + "refs": { + } + }, + "DiskImage": { + "base": "

Describes a disk image.

", + "refs": { + "DiskImageList$member": null + } + }, + "DiskImageDescription": { + "base": "

Describes a disk image.

", + "refs": { + "ImportInstanceVolumeDetailItem$Image": "

The image.

", + "ImportVolumeTaskDetails$Image": "

The image.

" + } + }, + "DiskImageDetail": { + "base": "

Describes a disk image.

", + "refs": { + "DiskImage$Image": "

Information about the disk image.

", + "ImportVolumeRequest$Image": "

The disk image.

" + } + }, + "DiskImageFormat": { + "base": null, + "refs": { + "DiskImageDescription$Format": "

The disk image format.

", + "DiskImageDetail$Format": "

The disk image format.

", + "ExportToS3Task$DiskImageFormat": "

The format for the exported image.

", + "ExportToS3TaskSpecification$DiskImageFormat": "

The format for the exported image.

" + } + }, + "DiskImageList": { + "base": null, + "refs": { + "ImportInstanceRequest$DiskImages": "

The disk image.

" + } + }, + "DiskImageVolumeDescription": { + "base": "

Describes a disk image volume.

", + "refs": { + "ImportInstanceVolumeDetailItem$Volume": "

The volume.

", + "ImportVolumeTaskDetails$Volume": "

The volume.

" + } + }, + "DomainType": { + "base": null, + "refs": { + "Address$Domain": "

Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).

", + "AllocateAddressRequest$Domain": "

Set to vpc to allocate the address for use with instances in a VPC.

Default: The address is for use with instances in EC2-Classic.

", + "AllocateAddressResult$Domain": "

Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).

" + } + }, + "Double": { + "base": null, + "refs": { + "ClientData$UploadSize": "

The size of the uploaded disk image, in GiB.

", + "PriceSchedule$Price": "

The fixed price for the term.

", + "PriceScheduleSpecification$Price": "

The fixed price for the term.

", + "PricingDetail$Price": "

The price per instance.

", + "RecurringCharge$Amount": "

The amount of the recurring charge.

", + "ReservedInstanceLimitPrice$Amount": "

Used for Reserved Instance Marketplace offerings. Specifies the limit price on the total order (instanceCount * price).

", + "SnapshotDetail$DiskImageSize": "

The size of the disk in the snapshot, in GiB.

", + "SnapshotTaskDetail$DiskImageSize": "

The size of the disk in the snapshot, in GiB.

", + "SpotFleetLaunchSpecification$WeightedCapacity": "

The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms (instances or a performance characteristic such as vCPUs, memory, or I/O).

If the target capacity divided by this value is not a whole number, we round the number of instances to the next whole number. If this value is not specified, the default is 1.

", + "SpotFleetRequestConfigData$FulfilledCapacity": "

The number of units fulfilled by this request compared to the set target capacity.

" + } + }, + "EbsBlockDevice": { + "base": "

Describes a block device for an EBS volume.

", + "refs": { + "BlockDeviceMapping$Ebs": "

Parameters used to automatically set up EBS volumes when the instance is launched.

" + } + }, + "EbsInstanceBlockDevice": { + "base": "

Describes a parameter used to set up an EBS volume in a block device mapping.

", + "refs": { + "InstanceBlockDeviceMapping$Ebs": "

Parameters used to automatically set up EBS volumes when the instance is launched.

" + } + }, + "EbsInstanceBlockDeviceSpecification": { + "base": "

Describes information used to set up an EBS volume specified in a block device mapping.

", + "refs": { + "InstanceBlockDeviceMappingSpecification$Ebs": "

Parameters used to automatically set up EBS volumes when the instance is launched.

" + } + }, + "EgressOnlyInternetGateway": { + "base": "

Describes an egress-only Internet gateway.

", + "refs": { + "CreateEgressOnlyInternetGatewayResult$EgressOnlyInternetGateway": "

Information about the egress-only Internet gateway.

", + "EgressOnlyInternetGatewayList$member": null + } + }, + "EgressOnlyInternetGatewayId": { + "base": null, + "refs": { + "DeleteEgressOnlyInternetGatewayRequest$EgressOnlyInternetGatewayId": "

The ID of the egress-only Internet gateway.

", + "EgressOnlyInternetGateway$EgressOnlyInternetGatewayId": "

The ID of the egress-only Internet gateway.

", + "EgressOnlyInternetGatewayIdList$member": null + } + }, + "EgressOnlyInternetGatewayIdList": { + "base": null, + "refs": { + "DescribeEgressOnlyInternetGatewaysRequest$EgressOnlyInternetGatewayIds": "

One or more egress-only Internet gateway IDs.

" + } + }, + "EgressOnlyInternetGatewayList": { + "base": null, + "refs": { + "DescribeEgressOnlyInternetGatewaysResult$EgressOnlyInternetGateways": "

Information about the egress-only Internet gateways.

" + } + }, + "EnableVgwRoutePropagationRequest": { + "base": "

Contains the parameters for EnableVgwRoutePropagation.

", + "refs": { + } + }, + "EnableVolumeIORequest": { + "base": "

Contains the parameters for EnableVolumeIO.

", + "refs": { + } + }, + "EnableVpcClassicLinkDnsSupportRequest": { + "base": "

Contains the parameters for EnableVpcClassicLinkDnsSupport.

", + "refs": { + } + }, + "EnableVpcClassicLinkDnsSupportResult": { + "base": "

Contains the output of EnableVpcClassicLinkDnsSupport.

", + "refs": { + } + }, + "EnableVpcClassicLinkRequest": { + "base": "

Contains the parameters for EnableVpcClassicLink.

", + "refs": { + } + }, + "EnableVpcClassicLinkResult": { + "base": "

Contains the output of EnableVpcClassicLink.

", + "refs": { + } + }, + "EventCode": { + "base": null, + "refs": { + "InstanceStatusEvent$Code": "

The event code.

" + } + }, + "EventInformation": { + "base": "

Describes a Spot fleet event.

", + "refs": { + "HistoryRecord$EventInformation": "

Information about the event.

" + } + }, + "EventType": { + "base": null, + "refs": { + "DescribeSpotFleetRequestHistoryRequest$EventType": "

The type of events to describe. By default, all events are described.

", + "HistoryRecord$EventType": "

The event type.

  • error - Indicates an error with the Spot fleet request.

  • fleetRequestChange - Indicates a change in the status or configuration of the Spot fleet request.

  • instanceChange - Indicates that an instance was launched or terminated.

" + } + }, + "ExcessCapacityTerminationPolicy": { + "base": null, + "refs": { + "ModifySpotFleetRequestRequest$ExcessCapacityTerminationPolicy": "

Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

", + "SpotFleetRequestConfigData$ExcessCapacityTerminationPolicy": "

Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

" + } + }, + "ExecutableByStringList": { + "base": null, + "refs": { + "DescribeImagesRequest$ExecutableUsers": "

Scopes the images by users with explicit launch permissions. Specify an AWS account ID, self (the sender of the request), or all (public AMIs).

" + } + }, + "ExportEnvironment": { + "base": null, + "refs": { + "CreateInstanceExportTaskRequest$TargetEnvironment": "

The target virtualization environment.

", + "InstanceExportDetails$TargetEnvironment": "

The target virtualization environment.

" + } + }, + "ExportTask": { + "base": "

Describes an instance export task.

", + "refs": { + "CreateInstanceExportTaskResult$ExportTask": "

Information about the instance export task.

", + "ExportTaskList$member": null + } + }, + "ExportTaskIdStringList": { + "base": null, + "refs": { + "DescribeExportTasksRequest$ExportTaskIds": "

One or more export task IDs.

" + } + }, + "ExportTaskList": { + "base": null, + "refs": { + "DescribeExportTasksResult$ExportTasks": "

Information about the export tasks.

" + } + }, + "ExportTaskState": { + "base": null, + "refs": { + "ExportTask$State": "

The state of the export task.

" + } + }, + "ExportToS3Task": { + "base": "

Describes the format and location for an instance export task.

", + "refs": { + "ExportTask$ExportToS3Task": "

Information about the export task.

" + } + }, + "ExportToS3TaskSpecification": { + "base": "

Describes an instance export task.

", + "refs": { + "CreateInstanceExportTaskRequest$ExportToS3Task": "

The format and location for an instance export task.

" + } + }, + "Filter": { + "base": "

A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.

", + "refs": { + "FilterList$member": null + } + }, + "FilterList": { + "base": null, + "refs": { + "DescribeAddressesRequest$Filters": "

One or more filters. Filter names and values are case-sensitive.

  • allocation-id - [EC2-VPC] The allocation ID for the address.

  • association-id - [EC2-VPC] The association ID for the address.

  • domain - Indicates whether the address is for use in EC2-Classic (standard) or in a VPC (vpc).

  • instance-id - The ID of the instance the address is associated with, if any.

  • network-interface-id - [EC2-VPC] The ID of the network interface that the address is associated with, if any.

  • network-interface-owner-id - The AWS account ID of the owner.

  • private-ip-address - [EC2-VPC] The private IP address associated with the Elastic IP address.

  • public-ip - The Elastic IP address.

", + "DescribeAvailabilityZonesRequest$Filters": "

One or more filters.

  • message - Information about the Availability Zone.

  • region-name - The name of the region for the Availability Zone (for example, us-east-1).

  • state - The state of the Availability Zone (available | information | impaired | unavailable).

  • zone-name - The name of the Availability Zone (for example, us-east-1a).

", + "DescribeBundleTasksRequest$Filters": "

One or more filters.

  • bundle-id - The ID of the bundle task.

  • error-code - If the task failed, the error code returned.

  • error-message - If the task failed, the error message returned.

  • instance-id - The ID of the instance.

  • progress - The level of task completion, as a percentage (for example, 20%).

  • s3-bucket - The Amazon S3 bucket to store the AMI.

  • s3-prefix - The beginning of the AMI name.

  • start-time - The time the task started (for example, 2013-09-15T17:15:20.000Z).

  • state - The state of the task (pending | waiting-for-shutdown | bundling | storing | cancelling | complete | failed).

  • update-time - The time of the most recent update for the task.

", + "DescribeClassicLinkInstancesRequest$Filters": "

One or more filters.

  • group-id - The ID of a VPC security group that's associated with the instance.

  • instance-id - The ID of the instance.

  • tag:key=value - The key/value combination of a tag assigned to the resource.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • vpc-id - The ID of the VPC that the instance is linked to.

", + "DescribeCustomerGatewaysRequest$Filters": "

One or more filters.

  • bgp-asn - The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

  • customer-gateway-id - The ID of the customer gateway.

  • ip-address - The IP address of the customer gateway's Internet-routable external interface.

  • state - The state of the customer gateway (pending | available | deleting | deleted).

  • type - The type of customer gateway. Currently, the only supported type is ipsec.1.

  • tag:key=value - The key/value combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

", + "DescribeDhcpOptionsRequest$Filters": "

One or more filters.

  • dhcp-options-id - The ID of a set of DHCP options.

  • key - The key for one of the options (for example, domain-name).

  • value - The value for one of the options.

  • tag:key=value - The key/value combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

", + "DescribeFlowLogsRequest$Filter": "

One or more filters.

  • deliver-log-status - The status of the logs delivery (SUCCESS | FAILED).

  • flow-log-id - The ID of the flow log.

  • log-group-name - The name of the log group.

  • resource-id - The ID of the VPC, subnet, or network interface.

  • traffic-type - The type of traffic (ACCEPT | REJECT | ALL)

", + "DescribeHostReservationOfferingsRequest$Filter": "

One or more filters.

  • instance-family - The instance family of the offering (e.g., m4).

  • payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront).

", + "DescribeHostReservationsRequest$Filter": "

One or more filters.

  • instance-family - The instance family (e.g., m4).

  • payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront).

  • state - The state of the reservation (payment-pending | payment-failed | active | retired).

", + "DescribeHostsRequest$Filter": "

One or more filters.

  • instance-type - The instance type size that the Dedicated Host is configured to support.

  • auto-placement - Whether auto-placement is enabled or disabled (on | off).

  • host-reservation-id - The ID of the reservation assigned to this host.

  • client-token - The idempotency token you provided when you launched the instance

  • state- The allocation state of the Dedicated Host (available | under-assessment | permanent-failure | released | released-permanent-failure).

  • availability-zone - The Availability Zone of the host.

", + "DescribeIamInstanceProfileAssociationsRequest$Filters": "

One or more filters.

  • instance-id - The ID of the instance.

  • state - The state of the association (associating | associated | disassociating | disassociated).

", + "DescribeImagesRequest$Filters": "

One or more filters.

  • architecture - The image architecture (i386 | x86_64).

  • block-device-mapping.delete-on-termination - A Boolean value that indicates whether the Amazon EBS volume is deleted on instance termination.

  • block-device-mapping.device-name - The device name for the EBS volume (for example, /dev/sdh).

  • block-device-mapping.snapshot-id - The ID of the snapshot used for the EBS volume.

  • block-device-mapping.volume-size - The volume size of the EBS volume, in GiB.

  • block-device-mapping.volume-type - The volume type of the EBS volume (gp2 | io1 | st1 | sc1 | standard).

  • description - The description of the image (provided during image creation).

  • ena-support - A Boolean that indicates whether enhanced networking with ENA is enabled.

  • hypervisor - The hypervisor type (ovm | xen).

  • image-id - The ID of the image.

  • image-type - The image type (machine | kernel | ramdisk).

  • is-public - A Boolean that indicates whether the image is public.

  • kernel-id - The kernel ID.

  • manifest-location - The location of the image manifest.

  • name - The name of the AMI (provided during image creation).

  • owner-alias - String value from an Amazon-maintained list (amazon | aws-marketplace | microsoft) of snapshot owners. Not to be confused with the user-configured AWS account alias, which is set from the IAM console.

  • owner-id - The AWS account ID of the image owner.

  • platform - The platform. To only list Windows-based AMIs, use windows.

  • product-code - The product code.

  • product-code.type - The type of the product code (devpay | marketplace).

  • ramdisk-id - The RAM disk ID.

  • root-device-name - The name of the root device volume (for example, /dev/sda1).

  • root-device-type - The type of the root device volume (ebs | instance-store).

  • state - The state of the image (available | pending | failed).

  • state-reason-code - The reason code for the state change.

  • state-reason-message - The message for the state change.

  • tag:key=value - The key/value combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • virtualization-type - The virtualization type (paravirtual | hvm).

", + "DescribeImportImageTasksRequest$Filters": "

Filter tasks using the task-state filter and one of the following values: active, completed, deleting, deleted.

", + "DescribeImportSnapshotTasksRequest$Filters": "

One or more filters.

", + "DescribeInstanceStatusRequest$Filters": "

One or more filters.

  • availability-zone - The Availability Zone of the instance.

  • event.code - The code for the scheduled event (instance-reboot | system-reboot | system-maintenance | instance-retirement | instance-stop).

  • event.description - A description of the event.

  • event.not-after - The latest end time for the scheduled event (for example, 2014-09-15T17:15:20.000Z).

  • event.not-before - The earliest start time for the scheduled event (for example, 2014-09-15T17:15:20.000Z).

  • instance-state-code - The code for the instance state, as a 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented. The valid values are 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), and 80 (stopped).

  • instance-state-name - The state of the instance (pending | running | shutting-down | terminated | stopping | stopped).

  • instance-status.reachability - Filters on instance status where the name is reachability (passed | failed | initializing | insufficient-data).

  • instance-status.status - The status of the instance (ok | impaired | initializing | insufficient-data | not-applicable).

  • system-status.reachability - Filters on system status where the name is reachability (passed | failed | initializing | insufficient-data).

  • system-status.status - The system status of the instance (ok | impaired | initializing | insufficient-data | not-applicable).

", + "DescribeInstancesRequest$Filters": "

One or more filters.

  • affinity - The affinity setting for an instance running on a Dedicated Host (default | host).

  • architecture - The instance architecture (i386 | x86_64).

  • association.public-ip - The address of the Elastic IP address (IPv4) bound to the network interface.

  • association.ip-owner-id - The owner of the Elastic IP address (IPv4) associated with the network interface.

  • association.allocation-id - The allocation ID returned when you allocated the Elastic IP address (IPv4) for your network interface.

  • association.association-id - The association ID returned when the network interface was associated with an IPv4 address.

  • availability-zone - The Availability Zone of the instance.

  • block-device-mapping.attach-time - The attach time for an EBS volume mapped to the instance, for example, 2010-09-15T17:15:20.000Z.

  • block-device-mapping.delete-on-termination - A Boolean that indicates whether the EBS volume is deleted on instance termination.

  • block-device-mapping.device-name - The device name for the EBS volume (for example, /dev/sdh or xvdh).

  • block-device-mapping.status - The status for the EBS volume (attaching | attached | detaching | detached).

  • block-device-mapping.volume-id - The volume ID of the EBS volume.

  • client-token - The idempotency token you provided when you launched the instance.

  • dns-name - The public DNS name of the instance.

  • group-id - The ID of the security group for the instance. EC2-Classic only.

  • group-name - The name of the security group for the instance. EC2-Classic only.

  • host-id - The ID of the Dedicated Host on which the instance is running, if applicable.

  • hypervisor - The hypervisor type of the instance (ovm | xen).

  • iam-instance-profile.arn - The instance profile associated with the instance. Specified as an ARN.

  • image-id - The ID of the image used to launch the instance.

  • instance-id - The ID of the instance.

  • instance-lifecycle - Indicates whether this is a Spot Instance or a Scheduled Instance (spot | scheduled).

  • instance-state-code - The state of the instance, as a 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented. The valid values are: 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), and 80 (stopped).

  • instance-state-name - The state of the instance (pending | running | shutting-down | terminated | stopping | stopped).

  • instance-type - The type of instance (for example, t2.micro).

  • instance.group-id - The ID of the security group for the instance.

  • instance.group-name - The name of the security group for the instance.

  • ip-address - The public IPv4 address of the instance.

  • kernel-id - The kernel ID.

  • key-name - The name of the key pair used when the instance was launched.

  • launch-index - When launching multiple instances, this is the index for the instance in the launch group (for example, 0, 1, 2, and so on).

  • launch-time - The time when the instance was launched.

  • monitoring-state - Indicates whether detailed monitoring is enabled (disabled | enabled).

  • network-interface.addresses.private-ip-address - The private IPv4 address associated with the network interface.

  • network-interface.addresses.primary - Specifies whether the IPv4 address of the network interface is the primary private IPv4 address.

  • network-interface.addresses.association.public-ip - The ID of the association of an Elastic IP address (IPv4) with a network interface.

  • network-interface.addresses.association.ip-owner-id - The owner ID of the private IPv4 address associated with the network interface.

  • network-interface.attachment.attachment-id - The ID of the interface attachment.

  • network-interface.attachment.instance-id - The ID of the instance to which the network interface is attached.

  • network-interface.attachment.instance-owner-id - The owner ID of the instance to which the network interface is attached.

  • network-interface.attachment.device-index - The device index to which the network interface is attached.

  • network-interface.attachment.status - The status of the attachment (attaching | attached | detaching | detached).

  • network-interface.attachment.attach-time - The time that the network interface was attached to an instance.

  • network-interface.attachment.delete-on-termination - Specifies whether the attachment is deleted when an instance is terminated.

  • network-interface.availability-zone - The Availability Zone for the network interface.

  • network-interface.description - The description of the network interface.

  • network-interface.group-id - The ID of a security group associated with the network interface.

  • network-interface.group-name - The name of a security group associated with the network interface.

  • network-interface.ipv6-addresses.ipv6-address - The IPv6 address associated with the network interface.

  • network-interface.mac-address - The MAC address of the network interface.

  • network-interface.network-interface-id - The ID of the network interface.

  • network-interface.owner-id - The ID of the owner of the network interface.

  • network-interface.private-dns-name - The private DNS name of the network interface.

  • network-interface.requester-id - The requester ID for the network interface.

  • network-interface.requester-managed - Indicates whether the network interface is being managed by AWS.

  • network-interface.status - The status of the network interface (available) | in-use).

  • network-interface.source-dest-check - Whether the network interface performs source/destination checking. A value of true means checking is enabled, and false means checking is disabled. The value must be false for the network interface to perform network address translation (NAT) in your VPC.

  • network-interface.subnet-id - The ID of the subnet for the network interface.

  • network-interface.vpc-id - The ID of the VPC for the network interface.

  • owner-id - The AWS account ID of the instance owner.

  • placement-group-name - The name of the placement group for the instance.

  • platform - The platform. Use windows if you have Windows instances; otherwise, leave blank.

  • private-dns-name - The private IPv4 DNS name of the instance.

  • private-ip-address - The private IPv4 address of the instance.

  • product-code - The product code associated with the AMI used to launch the instance.

  • product-code.type - The type of product code (devpay | marketplace).

  • ramdisk-id - The RAM disk ID.

  • reason - The reason for the current state of the instance (for example, shows \"User Initiated [date]\" when you stop or terminate the instance). Similar to the state-reason-code filter.

  • requester-id - The ID of the entity that launched the instance on your behalf (for example, AWS Management Console, Auto Scaling, and so on).

  • reservation-id - The ID of the instance's reservation. A reservation ID is created any time you launch an instance. A reservation ID has a one-to-one relationship with an instance launch request, but can be associated with more than one instance if you launch multiple instances using the same launch request. For example, if you launch one instance, you'll get one reservation ID. If you launch ten instances using the same launch request, you'll also get one reservation ID.

  • root-device-name - The name of the root device for the instance (for example, /dev/sda1 or /dev/xvda).

  • root-device-type - The type of root device that the instance uses (ebs | instance-store).

  • source-dest-check - Indicates whether the instance performs source/destination checking. A value of true means that checking is enabled, and false means checking is disabled. The value must be false for the instance to perform network address translation (NAT) in your VPC.

  • spot-instance-request-id - The ID of the Spot instance request.

  • state-reason-code - The reason code for the state change.

  • state-reason-message - A message that describes the state change.

  • subnet-id - The ID of the subnet for the instance.

  • tag:key=value - The key/value combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • tenancy - The tenancy of an instance (dedicated | default | host).

  • virtualization-type - The virtualization type of the instance (paravirtual | hvm).

  • vpc-id - The ID of the VPC that the instance is running in.

", + "DescribeInternetGatewaysRequest$Filters": "

One or more filters.

  • attachment.state - The current state of the attachment between the gateway and the VPC (available). Present only if a VPC is attached.

  • attachment.vpc-id - The ID of an attached VPC.

  • internet-gateway-id - The ID of the Internet gateway.

  • tag:key=value - The key/value combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

", + "DescribeKeyPairsRequest$Filters": "

One or more filters.

  • fingerprint - The fingerprint of the key pair.

  • key-name - The name of the key pair.

", + "DescribeMovingAddressesRequest$Filters": "

One or more filters.

  • moving-status - The status of the Elastic IP address (MovingToVpc | RestoringToClassic).

", + "DescribeNatGatewaysRequest$Filter": "

One or more filters.

  • nat-gateway-id - The ID of the NAT gateway.

  • state - The state of the NAT gateway (pending | failed | available | deleting | deleted).

  • subnet-id - The ID of the subnet in which the NAT gateway resides.

  • vpc-id - The ID of the VPC in which the NAT gateway resides.

", + "DescribeNetworkAclsRequest$Filters": "

One or more filters.

  • association.association-id - The ID of an association ID for the ACL.

  • association.network-acl-id - The ID of the network ACL involved in the association.

  • association.subnet-id - The ID of the subnet involved in the association.

  • default - Indicates whether the ACL is the default network ACL for the VPC.

  • entry.cidr - The IPv4 CIDR range specified in the entry.

  • entry.egress - Indicates whether the entry applies to egress traffic.

  • entry.icmp.code - The ICMP code specified in the entry, if any.

  • entry.icmp.type - The ICMP type specified in the entry, if any.

  • entry.ipv6-cidr - The IPv6 CIDR range specified in the entry.

  • entry.port-range.from - The start of the port range specified in the entry.

  • entry.port-range.to - The end of the port range specified in the entry.

  • entry.protocol - The protocol specified in the entry (tcp | udp | icmp or a protocol number).

  • entry.rule-action - Allows or denies the matching traffic (allow | deny).

  • entry.rule-number - The number of an entry (in other words, rule) in the ACL's set of entries.

  • network-acl-id - The ID of the network ACL.

  • tag:key=value - The key/value combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • vpc-id - The ID of the VPC for the network ACL.

", + "DescribeNetworkInterfacesRequest$Filters": "

One or more filters.

  • addresses.private-ip-address - The private IPv4 addresses associated with the network interface.

  • addresses.primary - Whether the private IPv4 address is the primary IP address associated with the network interface.

  • addresses.association.public-ip - The association ID returned when the network interface was associated with the Elastic IP address (IPv4).

  • addresses.association.owner-id - The owner ID of the addresses associated with the network interface.

  • association.association-id - The association ID returned when the network interface was associated with an IPv4 address.

  • association.allocation-id - The allocation ID returned when you allocated the Elastic IP address (IPv4) for your network interface.

  • association.ip-owner-id - The owner of the Elastic IP address (IPv4) associated with the network interface.

  • association.public-ip - The address of the Elastic IP address (IPv4) bound to the network interface.

  • association.public-dns-name - The public DNS name for the network interface (IPv4).

  • attachment.attachment-id - The ID of the interface attachment.

  • attachment.attach.time - The time that the network interface was attached to an instance.

  • attachment.delete-on-termination - Indicates whether the attachment is deleted when an instance is terminated.

  • attachment.device-index - The device index to which the network interface is attached.

  • attachment.instance-id - The ID of the instance to which the network interface is attached.

  • attachment.instance-owner-id - The owner ID of the instance to which the network interface is attached.

  • attachment.nat-gateway-id - The ID of the NAT gateway to which the network interface is attached.

  • attachment.status - The status of the attachment (attaching | attached | detaching | detached).

  • availability-zone - The Availability Zone of the network interface.

  • description - The description of the network interface.

  • group-id - The ID of a security group associated with the network interface.

  • group-name - The name of a security group associated with the network interface.

  • ipv6-addresses.ipv6-address - An IPv6 address associated with the network interface.

  • mac-address - The MAC address of the network interface.

  • network-interface-id - The ID of the network interface.

  • owner-id - The AWS account ID of the network interface owner.

  • private-ip-address - The private IPv4 address or addresses of the network interface.

  • private-dns-name - The private DNS name of the network interface (IPv4).

  • requester-id - The ID of the entity that launched the instance on your behalf (for example, AWS Management Console, Auto Scaling, and so on).

  • requester-managed - Indicates whether the network interface is being managed by an AWS service (for example, AWS Management Console, Auto Scaling, and so on).

  • source-desk-check - Indicates whether the network interface performs source/destination checking. A value of true means checking is enabled, and false means checking is disabled. The value must be false for the network interface to perform network address translation (NAT) in your VPC.

  • status - The status of the network interface. If the network interface is not attached to an instance, the status is available; if a network interface is attached to an instance the status is in-use.

  • subnet-id - The ID of the subnet for the network interface.

  • tag:key=value - The key/value combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • vpc-id - The ID of the VPC for the network interface.

", + "DescribePlacementGroupsRequest$Filters": "

One or more filters.

  • group-name - The name of the placement group.

  • state - The state of the placement group (pending | available | deleting | deleted).

  • strategy - The strategy of the placement group (cluster).

", + "DescribePrefixListsRequest$Filters": "

One or more filters.

  • prefix-list-id: The ID of a prefix list.

  • prefix-list-name: The name of a prefix list.

", + "DescribeRegionsRequest$Filters": "

One or more filters.

  • endpoint - The endpoint of the region (for example, ec2.us-east-1.amazonaws.com).

  • region-name - The name of the region (for example, us-east-1).

", + "DescribeReservedInstancesListingsRequest$Filters": "

One or more filters.

  • reserved-instances-id - The ID of the Reserved Instances.

  • reserved-instances-listing-id - The ID of the Reserved Instances listing.

  • status - The status of the Reserved Instance listing (pending | active | cancelled | closed).

  • status-message - The reason for the status.

", + "DescribeReservedInstancesModificationsRequest$Filters": "

One or more filters.

  • client-token - The idempotency token for the modification request.

  • create-date - The time when the modification request was created.

  • effective-date - The time when the modification becomes effective.

  • modification-result.reserved-instances-id - The ID for the Reserved Instances created as part of the modification request. This ID is only available when the status of the modification is fulfilled.

  • modification-result.target-configuration.availability-zone - The Availability Zone for the new Reserved Instances.

  • modification-result.target-configuration.instance-count - The number of new Reserved Instances.

  • modification-result.target-configuration.instance-type - The instance type of the new Reserved Instances.

  • modification-result.target-configuration.platform - The network platform of the new Reserved Instances (EC2-Classic | EC2-VPC).

  • reserved-instances-id - The ID of the Reserved Instances modified.

  • reserved-instances-modification-id - The ID of the modification request.

  • status - The status of the Reserved Instances modification request (processing | fulfilled | failed).

  • status-message - The reason for the status.

  • update-date - The time when the modification request was last updated.

", + "DescribeReservedInstancesOfferingsRequest$Filters": "

One or more filters.

  • availability-zone - The Availability Zone where the Reserved Instance can be used.

  • duration - The duration of the Reserved Instance (for example, one year or three years), in seconds (31536000 | 94608000).

  • fixed-price - The purchase price of the Reserved Instance (for example, 9800.0).

  • instance-type - The instance type that is covered by the reservation.

  • marketplace - Set to true to show only Reserved Instance Marketplace offerings. When this filter is not used, which is the default behavior, all offerings from both AWS and the Reserved Instance Marketplace are listed.

  • product-description - The Reserved Instance product platform description. Instances that include (Amazon VPC) in the product platform description will only be displayed to EC2-Classic account holders and are for use with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL Server Standard | Windows with SQL Server Standard (Amazon VPC) | Windows with SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows with SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon VPC))

  • reserved-instances-offering-id - The Reserved Instances offering ID.

  • scope - The scope of the Reserved Instance (Availability Zone or Region).

  • usage-price - The usage price of the Reserved Instance, per hour (for example, 0.84).

", + "DescribeReservedInstancesRequest$Filters": "

One or more filters.

  • availability-zone - The Availability Zone where the Reserved Instance can be used.

  • duration - The duration of the Reserved Instance (one year or three years), in seconds (31536000 | 94608000).

  • end - The time when the Reserved Instance expires (for example, 2015-08-07T11:54:42.000Z).

  • fixed-price - The purchase price of the Reserved Instance (for example, 9800.0).

  • instance-type - The instance type that is covered by the reservation.

  • scope - The scope of the Reserved Instance (Region or Availability Zone).

  • product-description - The Reserved Instance product platform description. Instances that include (Amazon VPC) in the product platform description will only be displayed to EC2-Classic account holders and are for use with Amazon VPC (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL Server Standard | Windows with SQL Server Standard (Amazon VPC) | Windows with SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows with SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon VPC)).

  • reserved-instances-id - The ID of the Reserved Instance.

  • start - The time at which the Reserved Instance purchase request was placed (for example, 2014-08-07T11:54:42.000Z).

  • state - The state of the Reserved Instance (payment-pending | active | payment-failed | retired).

  • tag:key=value - The key/value combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • usage-price - The usage price of the Reserved Instance, per hour (for example, 0.84).

", + "DescribeRouteTablesRequest$Filters": "

One or more filters.

  • association.route-table-association-id - The ID of an association ID for the route table.

  • association.route-table-id - The ID of the route table involved in the association.

  • association.subnet-id - The ID of the subnet involved in the association.

  • association.main - Indicates whether the route table is the main route table for the VPC (true | false).

  • route-table-id - The ID of the route table.

  • route.destination-cidr-block - The IPv4 CIDR range specified in a route in the table.

  • route.destination-ipv6-cidr-block - The IPv6 CIDR range specified in a route in the route table.

  • route.destination-prefix-list-id - The ID (prefix) of the AWS service specified in a route in the table.

  • route.egress-only-internet-gateway-id - The ID of an egress-only Internet gateway specified in a route in the route table.

  • route.gateway-id - The ID of a gateway specified in a route in the table.

  • route.instance-id - The ID of an instance specified in a route in the table.

  • route.nat-gateway-id - The ID of a NAT gateway.

  • route.origin - Describes how the route was created. CreateRouteTable indicates that the route was automatically created when the route table was created; CreateRoute indicates that the route was manually added to the route table; EnableVgwRoutePropagation indicates that the route was propagated by route propagation.

  • route.state - The state of a route in the route table (active | blackhole). The blackhole state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, the specified NAT instance has been terminated, and so on).

  • route.vpc-peering-connection-id - The ID of a VPC peering connection specified in a route in the table.

  • tag:key=value - The key/value combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • vpc-id - The ID of the VPC for the route table.

", + "DescribeScheduledInstanceAvailabilityRequest$Filters": "

One or more filters.

  • availability-zone - The Availability Zone (for example, us-west-2a).

  • instance-type - The instance type (for example, c4.large).

  • network-platform - The network platform (EC2-Classic or EC2-VPC).

  • platform - The platform (Linux/UNIX or Windows).

", + "DescribeScheduledInstancesRequest$Filters": "

One or more filters.

  • availability-zone - The Availability Zone (for example, us-west-2a).

  • instance-type - The instance type (for example, c4.large).

  • network-platform - The network platform (EC2-Classic or EC2-VPC).

  • platform - The platform (Linux/UNIX or Windows).

", + "DescribeSecurityGroupsRequest$Filters": "

One or more filters. If using multiple filters for rules, the results include security groups for which any combination of rules - not necessarily a single rule - match all filters.

  • description - The description of the security group.

  • egress.ip-permission.prefix-list-id - The ID (prefix) of the AWS service to which the security group allows access.

  • group-id - The ID of the security group.

  • group-name - The name of the security group.

  • ip-permission.cidr - An IPv4 CIDR range that has been granted permission in a security group rule.

  • ip-permission.from-port - The start of port range for the TCP and UDP protocols, or an ICMP type number.

  • ip-permission.group-id - The ID of a security group that has been granted permission.

  • ip-permission.group-name - The name of a security group that has been granted permission.

  • ip-permission.ipv6-cidr - An IPv6 CIDR range that has been granted permission in a security group rule.

  • ip-permission.protocol - The IP protocol for the permission (tcp | udp | icmp or a protocol number).

  • ip-permission.to-port - The end of port range for the TCP and UDP protocols, or an ICMP code.

  • ip-permission.user-id - The ID of an AWS account that has been granted permission.

  • owner-id - The AWS account ID of the owner of the security group.

  • tag-key - The key of a tag assigned to the security group.

  • tag-value - The value of a tag assigned to the security group.

  • vpc-id - The ID of the VPC specified when the security group was created.

", + "DescribeSnapshotsRequest$Filters": "

One or more filters.

  • description - A description of the snapshot.

  • owner-alias - Value from an Amazon-maintained list (amazon | aws-marketplace | microsoft) of snapshot owners. Not to be confused with the user-configured AWS account alias, which is set from the IAM consolew.

  • owner-id - The ID of the AWS account that owns the snapshot.

  • progress - The progress of the snapshot, as a percentage (for example, 80%).

  • snapshot-id - The snapshot ID.

  • start-time - The time stamp when the snapshot was initiated.

  • status - The status of the snapshot (pending | completed | error).

  • tag:key=value - The key/value combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • volume-id - The ID of the volume the snapshot is for.

  • volume-size - The size of the volume, in GiB.

", + "DescribeSpotInstanceRequestsRequest$Filters": "

One or more filters.

  • availability-zone-group - The Availability Zone group.

  • create-time - The time stamp when the Spot instance request was created.

  • fault-code - The fault code related to the request.

  • fault-message - The fault message related to the request.

  • instance-id - The ID of the instance that fulfilled the request.

  • launch-group - The Spot instance launch group.

  • launch.block-device-mapping.delete-on-termination - Indicates whether the Amazon EBS volume is deleted on instance termination.

  • launch.block-device-mapping.device-name - The device name for the Amazon EBS volume (for example, /dev/sdh).

  • launch.block-device-mapping.snapshot-id - The ID of the snapshot used for the Amazon EBS volume.

  • launch.block-device-mapping.volume-size - The size of the Amazon EBS volume, in GiB.

  • launch.block-device-mapping.volume-type - The type of the Amazon EBS volume: gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput Optimized HDD, sc1for Cold HDD, or standard for Magnetic.

  • launch.group-id - The security group for the instance.

  • launch.image-id - The ID of the AMI.

  • launch.instance-type - The type of instance (for example, m3.medium).

  • launch.kernel-id - The kernel ID.

  • launch.key-name - The name of the key pair the instance launched with.

  • launch.monitoring-enabled - Whether monitoring is enabled for the Spot instance.

  • launch.ramdisk-id - The RAM disk ID.

  • network-interface.network-interface-id - The ID of the network interface.

  • network-interface.device-index - The index of the device for the network interface attachment on the instance.

  • network-interface.subnet-id - The ID of the subnet for the instance.

  • network-interface.description - A description of the network interface.

  • network-interface.private-ip-address - The primary private IP address of the network interface.

  • network-interface.delete-on-termination - Indicates whether the network interface is deleted when the instance is terminated.

  • network-interface.group-id - The ID of the security group associated with the network interface.

  • network-interface.group-name - The name of the security group associated with the network interface.

  • network-interface.addresses.primary - Indicates whether the IP address is the primary private IP address.

  • product-description - The product description associated with the instance (Linux/UNIX | Windows).

  • spot-instance-request-id - The Spot instance request ID.

  • spot-price - The maximum hourly price for any Spot instance launched to fulfill the request.

  • state - The state of the Spot instance request (open | active | closed | cancelled | failed). Spot bid status information can help you track your Amazon EC2 Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.

  • status-code - The short code describing the most recent evaluation of your Spot instance request.

  • status-message - The message explaining the status of the Spot instance request.

  • tag:key=value - The key/value combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • type - The type of Spot instance request (one-time | persistent).

  • launched-availability-zone - The Availability Zone in which the bid is launched.

  • valid-from - The start date of the request.

  • valid-until - The end date of the request.

", + "DescribeSpotPriceHistoryRequest$Filters": "

One or more filters.

  • availability-zone - The Availability Zone for which prices should be returned.

  • instance-type - The type of instance (for example, m3.medium).

  • product-description - The product description for the Spot price (Linux/UNIX | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | SUSE Linux (Amazon VPC) | Windows (Amazon VPC)).

  • spot-price - The Spot price. The value must match exactly (or use wildcards; greater than or less than comparison is not supported).

  • timestamp - The timestamp of the Spot price history, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater than or less than comparison is not supported.

", + "DescribeSubnetsRequest$Filters": "

One or more filters.

  • availabilityZone - The Availability Zone for the subnet. You can also use availability-zone as the filter name.

  • available-ip-address-count - The number of IPv4 addresses in the subnet that are available.

  • cidrBlock - The IPv4 CIDR block of the subnet. The CIDR block you specify must exactly match the subnet's CIDR block for information to be returned for the subnet. You can also use cidr or cidr-block as the filter names.

  • defaultForAz - Indicates whether this is the default subnet for the Availability Zone. You can also use default-for-az as the filter name.

  • ipv6-cidr-block-association.ipv6-cidr-block - An IPv6 CIDR block associated with the subnet.

  • ipv6-cidr-block-association.association-id - An association ID for an IPv6 CIDR block associated with the subnet.

  • ipv6-cidr-block-association.state - The state of an IPv6 CIDR block associated with the subnet.

  • state - The state of the subnet (pending | available).

  • subnet-id - The ID of the subnet.

  • tag:key=value - The key/value combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • vpc-id - The ID of the VPC for the subnet.

", + "DescribeTagsRequest$Filters": "

One or more filters.

  • key - The tag key.

  • resource-id - The resource ID.

  • resource-type - The resource type (customer-gateway | dhcp-options | image | instance | internet-gateway | network-acl | network-interface | reserved-instances | route-table | security-group | snapshot | spot-instances-request | subnet | volume | vpc | vpn-connection | vpn-gateway).

  • value - The tag value.

", + "DescribeVolumeStatusRequest$Filters": "

One or more filters.

  • action.code - The action code for the event (for example, enable-volume-io).

  • action.description - A description of the action.

  • action.event-id - The event ID associated with the action.

  • availability-zone - The Availability Zone of the instance.

  • event.description - A description of the event.

  • event.event-id - The event ID.

  • event.event-type - The event type (for io-enabled: passed | failed; for io-performance: io-performance:degraded | io-performance:severely-degraded | io-performance:stalled).

  • event.not-after - The latest end time for the event.

  • event.not-before - The earliest start time for the event.

  • volume-status.details-name - The cause for volume-status.status (io-enabled | io-performance).

  • volume-status.details-status - The status of volume-status.details-name (for io-enabled: passed | failed; for io-performance: normal | degraded | severely-degraded | stalled).

  • volume-status.status - The status of the volume (ok | impaired | warning | insufficient-data).

", + "DescribeVolumesModificationsRequest$Filters": "

One or more filters. Supported filters: volume-id, modification-state, target-size, target-iops, target-volume-type, original-size, original-iops, original-volume-type, start-time.

", + "DescribeVolumesRequest$Filters": "

One or more filters.

  • attachment.attach-time - The time stamp when the attachment initiated.

  • attachment.delete-on-termination - Whether the volume is deleted on instance termination.

  • attachment.device - The device name that is exposed to the instance (for example, /dev/sda1).

  • attachment.instance-id - The ID of the instance the volume is attached to.

  • attachment.status - The attachment state (attaching | attached | detaching | detached).

  • availability-zone - The Availability Zone in which the volume was created.

  • create-time - The time stamp when the volume was created.

  • encrypted - The encryption status of the volume.

  • size - The size of the volume, in GiB.

  • snapshot-id - The snapshot from which the volume was created.

  • status - The status of the volume (creating | available | in-use | deleting | deleted | error).

  • tag:key=value - The key/value combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • volume-id - The volume ID.

  • volume-type - The Amazon EBS volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard for Magnetic volumes.

", + "DescribeVpcClassicLinkRequest$Filters": "

One or more filters.

  • is-classic-link-enabled - Whether the VPC is enabled for ClassicLink (true | false).

  • tag:key=value - The key/value combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

", + "DescribeVpcEndpointsRequest$Filters": "

One or more filters.

  • service-name: The name of the AWS service.

  • vpc-id: The ID of the VPC in which the endpoint resides.

  • vpc-endpoint-id: The ID of the endpoint.

  • vpc-endpoint-state: The state of the endpoint. (pending | available | deleting | deleted)

", + "DescribeVpcPeeringConnectionsRequest$Filters": "

One or more filters.

  • accepter-vpc-info.cidr-block - The IPv4 CIDR block of the peer VPC.

  • accepter-vpc-info.owner-id - The AWS account ID of the owner of the peer VPC.

  • accepter-vpc-info.vpc-id - The ID of the peer VPC.

  • expiration-time - The expiration date and time for the VPC peering connection.

  • requester-vpc-info.cidr-block - The IPv4 CIDR block of the requester's VPC.

  • requester-vpc-info.owner-id - The AWS account ID of the owner of the requester VPC.

  • requester-vpc-info.vpc-id - The ID of the requester VPC.

  • status-code - The status of the VPC peering connection (pending-acceptance | failed | expired | provisioning | active | deleted | rejected).

  • status-message - A message that provides more information about the status of the VPC peering connection, if applicable.

  • tag:key=value - The key/value combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • vpc-peering-connection-id - The ID of the VPC peering connection.

", + "DescribeVpcsRequest$Filters": "

One or more filters.

  • cidr - The IPv4 CIDR block of the VPC. The CIDR block you specify must exactly match the VPC's CIDR block for information to be returned for the VPC. Must contain the slash followed by one or two digits (for example, /28).

  • dhcp-options-id - The ID of a set of DHCP options.

  • ipv6-cidr-block-association.ipv6-cidr-block - An IPv6 CIDR block associated with the VPC.

  • ipv6-cidr-block-association.association-id - The association ID for an IPv6 CIDR block associated with the VPC.

  • ipv6-cidr-block-association.state - The state of an IPv6 CIDR block associated with the VPC.

  • isDefault - Indicates whether the VPC is the default VPC.

  • state - The state of the VPC (pending | available).

  • tag:key=value - The key/value combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • vpc-id - The ID of the VPC.

", + "DescribeVpnConnectionsRequest$Filters": "

One or more filters.

  • customer-gateway-configuration - The configuration information for the customer gateway.

  • customer-gateway-id - The ID of a customer gateway associated with the VPN connection.

  • state - The state of the VPN connection (pending | available | deleting | deleted).

  • option.static-routes-only - Indicates whether the connection has static routes only. Used for devices that do not support Border Gateway Protocol (BGP).

  • route.destination-cidr-block - The destination CIDR block. This corresponds to the subnet used in a customer data center.

  • bgp-asn - The BGP Autonomous System Number (ASN) associated with a BGP device.

  • tag:key=value - The key/value combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • type - The type of VPN connection. Currently the only supported type is ipsec.1.

  • vpn-connection-id - The ID of the VPN connection.

  • vpn-gateway-id - The ID of a virtual private gateway associated with the VPN connection.

", + "DescribeVpnGatewaysRequest$Filters": "

One or more filters.

  • attachment.state - The current state of the attachment between the gateway and the VPC (attaching | attached | detaching | detached).

  • attachment.vpc-id - The ID of an attached VPC.

  • availability-zone - The Availability Zone for the virtual private gateway (if applicable).

  • state - The state of the virtual private gateway (pending | available | deleting | deleted).

  • tag:key=value - The key/value combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • type - The type of virtual private gateway. Currently the only supported type is ipsec.1.

  • vpn-gateway-id - The ID of the virtual private gateway.

" + } + }, + "FleetType": { + "base": null, + "refs": { + "SpotFleetRequestConfigData$Type": "

The type of request. Indicates whether the fleet will only request the target capacity or also attempt to maintain it. When you request a certain target capacity, the fleet will only place the required bids. It will not attempt to replenish Spot instances if capacity is diminished, nor will it submit bids in alternative Spot pools if capacity is not available. When you want to maintain a certain target capacity, fleet will place the required bids to meet this target capacity. It will also automatically replenish any interrupted instances. Default: maintain.

" + } + }, + "Float": { + "base": null, + "refs": { + "ReservedInstances$UsagePrice": "

The usage price of the Reserved Instance, per hour.

", + "ReservedInstances$FixedPrice": "

The purchase price of the Reserved Instance.

", + "ReservedInstancesOffering$UsagePrice": "

The usage price of the Reserved Instance, per hour.

", + "ReservedInstancesOffering$FixedPrice": "

The purchase price of the Reserved Instance.

" + } + }, + "FlowLog": { + "base": "

Describes a flow log.

", + "refs": { + "FlowLogSet$member": null + } + }, + "FlowLogSet": { + "base": null, + "refs": { + "DescribeFlowLogsResult$FlowLogs": "

Information about the flow logs.

" + } + }, + "FlowLogsResourceType": { + "base": null, + "refs": { + "CreateFlowLogsRequest$ResourceType": "

The type of resource on which to create the flow log.

" + } + }, + "GatewayType": { + "base": null, + "refs": { + "CreateCustomerGatewayRequest$Type": "

The type of VPN connection that this customer gateway supports (ipsec.1).

", + "CreateVpnGatewayRequest$Type": "

The type of VPN connection this virtual private gateway supports.

", + "VpnConnection$Type": "

The type of VPN connection.

", + "VpnGateway$Type": "

The type of VPN connection the virtual private gateway supports.

" + } + }, + "GetConsoleOutputRequest": { + "base": "

Contains the parameters for GetConsoleOutput.

", + "refs": { + } + }, + "GetConsoleOutputResult": { + "base": "

Contains the output of GetConsoleOutput.

", + "refs": { + } + }, + "GetConsoleScreenshotRequest": { + "base": "

Contains the parameters for the request.

", + "refs": { + } + }, + "GetConsoleScreenshotResult": { + "base": "

Contains the output of the request.

", + "refs": { + } + }, + "GetHostReservationPurchasePreviewRequest": { + "base": null, + "refs": { + } + }, + "GetHostReservationPurchasePreviewResult": { + "base": null, + "refs": { + } + }, + "GetPasswordDataRequest": { + "base": "

Contains the parameters for GetPasswordData.

", + "refs": { + } + }, + "GetPasswordDataResult": { + "base": "

Contains the output of GetPasswordData.

", + "refs": { + } + }, + "GetReservedInstancesExchangeQuoteRequest": { + "base": "

Contains the parameters for GetReservedInstanceExchangeQuote.

", + "refs": { + } + }, + "GetReservedInstancesExchangeQuoteResult": { + "base": "

Contains the output of GetReservedInstancesExchangeQuote.

", + "refs": { + } + }, + "GroupIdStringList": { + "base": null, + "refs": { + "AttachClassicLinkVpcRequest$Groups": "

The ID of one or more of the VPC's security groups. You cannot specify security groups from a different VPC.

", + "DescribeSecurityGroupsRequest$GroupIds": "

One or more security group IDs. Required for security groups in a nondefault VPC.

Default: Describes all your security groups.

", + "ModifyInstanceAttributeRequest$Groups": "

[EC2-VPC] Changes the security groups of the instance. You must specify at least one security group, even if it's just the default security group for the VPC. You must specify the security group ID, not the security group name.

" + } + }, + "GroupIdentifier": { + "base": "

Describes a security group.

", + "refs": { + "GroupIdentifierList$member": null + } + }, + "GroupIdentifierList": { + "base": null, + "refs": { + "ClassicLinkInstance$Groups": "

A list of security groups.

", + "DescribeNetworkInterfaceAttributeResult$Groups": "

The security groups associated with the network interface.

", + "Instance$SecurityGroups": "

One or more security groups for the instance.

", + "InstanceAttribute$Groups": "

The security groups associated with the instance.

", + "InstanceNetworkInterface$Groups": "

One or more security groups.

", + "LaunchSpecification$SecurityGroups": "

One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.

", + "NetworkInterface$Groups": "

Any security groups for the network interface.

", + "Reservation$Groups": "

[EC2-Classic only] One or more security groups.

", + "SpotFleetLaunchSpecification$SecurityGroups": "

One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.

" + } + }, + "GroupIds": { + "base": null, + "refs": { + "DescribeSecurityGroupReferencesRequest$GroupId": "

One or more security group IDs in your account.

" + } + }, + "GroupNameStringList": { + "base": null, + "refs": { + "DescribeSecurityGroupsRequest$GroupNames": "

[EC2-Classic and default VPC only] One or more security group names. You can specify either the security group name or the security group ID. For security groups in a nondefault VPC, use the group-name filter to describe security groups by name.

Default: Describes all your security groups.

", + "ModifySnapshotAttributeRequest$GroupNames": "

The group to modify for the snapshot.

" + } + }, + "HistoryRecord": { + "base": "

Describes an event in the history of the Spot fleet request.

", + "refs": { + "HistoryRecords$member": null + } + }, + "HistoryRecords": { + "base": null, + "refs": { + "DescribeSpotFleetRequestHistoryResponse$HistoryRecords": "

Information about the events in the history of the Spot fleet request.

" + } + }, + "Host": { + "base": "

Describes the properties of the Dedicated Host.

", + "refs": { + "HostList$member": null + } + }, + "HostInstance": { + "base": "

Describes an instance running on a Dedicated Host.

", + "refs": { + "HostInstanceList$member": null + } + }, + "HostInstanceList": { + "base": null, + "refs": { + "Host$Instances": "

The IDs and instance type that are currently running on the Dedicated Host.

" + } + }, + "HostList": { + "base": null, + "refs": { + "DescribeHostsResult$Hosts": "

Information about the Dedicated Hosts.

" + } + }, + "HostOffering": { + "base": "

Details about the Dedicated Host Reservation offering.

", + "refs": { + "HostOfferingSet$member": null + } + }, + "HostOfferingSet": { + "base": null, + "refs": { + "DescribeHostReservationOfferingsResult$OfferingSet": "

Information about the offerings.

" + } + }, + "HostProperties": { + "base": "

Describes properties of a Dedicated Host.

", + "refs": { + "Host$HostProperties": "

The hardware specifications of the Dedicated Host.

" + } + }, + "HostReservation": { + "base": "

Details about the Dedicated Host Reservation and associated Dedicated Hosts.

", + "refs": { + "HostReservationSet$member": null + } + }, + "HostReservationIdSet": { + "base": null, + "refs": { + "DescribeHostReservationsRequest$HostReservationIdSet": "

One or more host reservation IDs.

" + } + }, + "HostReservationSet": { + "base": null, + "refs": { + "DescribeHostReservationsResult$HostReservationSet": "

Details about the reservation's configuration.

" + } + }, + "HostTenancy": { + "base": null, + "refs": { + "ModifyInstancePlacementRequest$Tenancy": "

The tenancy of the instance that you are modifying.

" + } + }, + "HypervisorType": { + "base": null, + "refs": { + "Image$Hypervisor": "

The hypervisor type of the image.

", + "Instance$Hypervisor": "

The hypervisor type of the instance.

" + } + }, + "IamInstanceProfile": { + "base": "

Describes an IAM instance profile.

", + "refs": { + "IamInstanceProfileAssociation$IamInstanceProfile": "

The IAM instance profile.

", + "Instance$IamInstanceProfile": "

The IAM instance profile associated with the instance, if applicable.

" + } + }, + "IamInstanceProfileAssociation": { + "base": "

Describes an association between an IAM instance profile and an instance.

", + "refs": { + "AssociateIamInstanceProfileResult$IamInstanceProfileAssociation": "

Information about the IAM instance profile association.

", + "DisassociateIamInstanceProfileResult$IamInstanceProfileAssociation": "

Information about the IAM instance profile association.

", + "IamInstanceProfileAssociationSet$member": null, + "ReplaceIamInstanceProfileAssociationResult$IamInstanceProfileAssociation": "

Information about the IAM instance profile association.

" + } + }, + "IamInstanceProfileAssociationSet": { + "base": null, + "refs": { + "DescribeIamInstanceProfileAssociationsResult$IamInstanceProfileAssociations": "

Information about one or more IAM instance profile associations.

" + } + }, + "IamInstanceProfileAssociationState": { + "base": null, + "refs": { + "IamInstanceProfileAssociation$State": "

The state of the association.

" + } + }, + "IamInstanceProfileSpecification": { + "base": "

Describes an IAM instance profile.

", + "refs": { + "AssociateIamInstanceProfileRequest$IamInstanceProfile": "

The IAM instance profile.

", + "LaunchSpecification$IamInstanceProfile": "

The IAM instance profile.

", + "ReplaceIamInstanceProfileAssociationRequest$IamInstanceProfile": "

The IAM instance profile.

", + "RequestSpotLaunchSpecification$IamInstanceProfile": "

The IAM instance profile.

", + "RunInstancesRequest$IamInstanceProfile": "

The IAM instance profile.

", + "SpotFleetLaunchSpecification$IamInstanceProfile": "

The IAM instance profile.

" + } + }, + "IcmpTypeCode": { + "base": "

Describes the ICMP type and code.

", + "refs": { + "CreateNetworkAclEntryRequest$IcmpTypeCode": "

ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying the ICMP protocol, or protocol 58 (ICMPv6) with an IPv6 CIDR block.

", + "NetworkAclEntry$IcmpTypeCode": "

ICMP protocol: The ICMP type and code.

", + "ReplaceNetworkAclEntryRequest$IcmpTypeCode": "

ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying the ICMP (1) protocol, or protocol 58 (ICMPv6) with an IPv6 CIDR block.

" + } + }, + "IdFormat": { + "base": "

Describes the ID format for a resource.

", + "refs": { + "IdFormatList$member": null + } + }, + "IdFormatList": { + "base": null, + "refs": { + "DescribeIdFormatResult$Statuses": "

Information about the ID format for the resource.

", + "DescribeIdentityIdFormatResult$Statuses": "

Information about the ID format for the resources.

" + } + }, + "Image": { + "base": "

Describes an image.

", + "refs": { + "ImageList$member": null + } + }, + "ImageAttribute": { + "base": "

Describes an image attribute.

", + "refs": { + } + }, + "ImageAttributeName": { + "base": null, + "refs": { + "DescribeImageAttributeRequest$Attribute": "

The AMI attribute.

Note: Depending on your account privileges, the blockDeviceMapping attribute may return a Client.AuthFailure error. If this happens, use DescribeImages to get information about the block device mapping for the AMI.

" + } + }, + "ImageDiskContainer": { + "base": "

Describes the disk container object for an import image task.

", + "refs": { + "ImageDiskContainerList$member": null + } + }, + "ImageDiskContainerList": { + "base": null, + "refs": { + "ImportImageRequest$DiskContainers": "

Information about the disk containers.

" + } + }, + "ImageIdStringList": { + "base": null, + "refs": { + "DescribeImagesRequest$ImageIds": "

One or more image IDs.

Default: Describes all images available to you.

" + } + }, + "ImageList": { + "base": null, + "refs": { + "DescribeImagesResult$Images": "

Information about one or more images.

" + } + }, + "ImageState": { + "base": null, + "refs": { + "Image$State": "

The current state of the AMI. If the state is available, the image is successfully registered and can be used to launch an instance.

" + } + }, + "ImageTypeValues": { + "base": null, + "refs": { + "Image$ImageType": "

The type of image.

" + } + }, + "ImportImageRequest": { + "base": "

Contains the parameters for ImportImage.

", + "refs": { + } + }, + "ImportImageResult": { + "base": "

Contains the output for ImportImage.

", + "refs": { + } + }, + "ImportImageTask": { + "base": "

Describes an import image task.

", + "refs": { + "ImportImageTaskList$member": null + } + }, + "ImportImageTaskList": { + "base": null, + "refs": { + "DescribeImportImageTasksResult$ImportImageTasks": "

A list of zero or more import image tasks that are currently active or were completed or canceled in the previous 7 days.

" + } + }, + "ImportInstanceLaunchSpecification": { + "base": "

Describes the launch specification for VM import.

", + "refs": { + "ImportInstanceRequest$LaunchSpecification": "

The launch specification.

" + } + }, + "ImportInstanceRequest": { + "base": "

Contains the parameters for ImportInstance.

", + "refs": { + } + }, + "ImportInstanceResult": { + "base": "

Contains the output for ImportInstance.

", + "refs": { + } + }, + "ImportInstanceTaskDetails": { + "base": "

Describes an import instance task.

", + "refs": { + "ConversionTask$ImportInstance": "

If the task is for importing an instance, this contains information about the import instance task.

" + } + }, + "ImportInstanceVolumeDetailItem": { + "base": "

Describes an import volume task.

", + "refs": { + "ImportInstanceVolumeDetailSet$member": null + } + }, + "ImportInstanceVolumeDetailSet": { + "base": null, + "refs": { + "ImportInstanceTaskDetails$Volumes": "

One or more volumes.

" + } + }, + "ImportKeyPairRequest": { + "base": "

Contains the parameters for ImportKeyPair.

", + "refs": { + } + }, + "ImportKeyPairResult": { + "base": "

Contains the output of ImportKeyPair.

", + "refs": { + } + }, + "ImportSnapshotRequest": { + "base": "

Contains the parameters for ImportSnapshot.

", + "refs": { + } + }, + "ImportSnapshotResult": { + "base": "

Contains the output for ImportSnapshot.

", + "refs": { + } + }, + "ImportSnapshotTask": { + "base": "

Describes an import snapshot task.

", + "refs": { + "ImportSnapshotTaskList$member": null + } + }, + "ImportSnapshotTaskList": { + "base": null, + "refs": { + "DescribeImportSnapshotTasksResult$ImportSnapshotTasks": "

A list of zero or more import snapshot tasks that are currently active or were completed or canceled in the previous 7 days.

" + } + }, + "ImportTaskIdList": { + "base": null, + "refs": { + "DescribeImportImageTasksRequest$ImportTaskIds": "

A list of import image task IDs.

", + "DescribeImportSnapshotTasksRequest$ImportTaskIds": "

A list of import snapshot task IDs.

" + } + }, + "ImportVolumeRequest": { + "base": "

Contains the parameters for ImportVolume.

", + "refs": { + } + }, + "ImportVolumeResult": { + "base": "

Contains the output for ImportVolume.

", + "refs": { + } + }, + "ImportVolumeTaskDetails": { + "base": "

Describes an import volume task.

", + "refs": { + "ConversionTask$ImportVolume": "

If the task is for importing a volume, this contains information about the import volume task.

" + } + }, + "Instance": { + "base": "

Describes an instance.

", + "refs": { + "InstanceList$member": null + } + }, + "InstanceAttribute": { + "base": "

Describes an instance attribute.

", + "refs": { + } + }, + "InstanceAttributeName": { + "base": null, + "refs": { + "DescribeInstanceAttributeRequest$Attribute": "

The instance attribute.

Note: The enaSupport attribute is not supported at this time.

", + "ModifyInstanceAttributeRequest$Attribute": "

The name of the attribute.

", + "ResetInstanceAttributeRequest$Attribute": "

The attribute to reset.

You can only reset the following attributes: kernel | ramdisk | sourceDestCheck. To change an instance attribute, use ModifyInstanceAttribute.

" + } + }, + "InstanceBlockDeviceMapping": { + "base": "

Describes a block device mapping.

", + "refs": { + "InstanceBlockDeviceMappingList$member": null + } + }, + "InstanceBlockDeviceMappingList": { + "base": null, + "refs": { + "Instance$BlockDeviceMappings": "

Any block device mapping entries for the instance.

", + "InstanceAttribute$BlockDeviceMappings": "

The block device mapping of the instance.

" + } + }, + "InstanceBlockDeviceMappingSpecification": { + "base": "

Describes a block device mapping entry.

", + "refs": { + "InstanceBlockDeviceMappingSpecificationList$member": null + } + }, + "InstanceBlockDeviceMappingSpecificationList": { + "base": null, + "refs": { + "ModifyInstanceAttributeRequest$BlockDeviceMappings": "

Modifies the DeleteOnTermination attribute for volumes that are currently attached. The volume must be owned by the caller. If no value is specified for DeleteOnTermination, the default is true and the volume is deleted when the instance is terminated.

To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Updating the Block Device Mapping when Launching an Instance in the Amazon Elastic Compute Cloud User Guide.

" + } + }, + "InstanceCapacity": { + "base": "

Information about the instance type that the Dedicated Host supports.

", + "refs": { + "AvailableInstanceCapacityList$member": null + } + }, + "InstanceCount": { + "base": "

Describes a Reserved Instance listing state.

", + "refs": { + "InstanceCountList$member": null + } + }, + "InstanceCountList": { + "base": null, + "refs": { + "ReservedInstancesListing$InstanceCounts": "

The number of instances in this state.

" + } + }, + "InstanceExportDetails": { + "base": "

Describes an instance to export.

", + "refs": { + "ExportTask$InstanceExportDetails": "

Information about the instance to export.

" + } + }, + "InstanceHealthStatus": { + "base": null, + "refs": { + "ActiveInstance$InstanceHealth": "

The health status of the instance. If the status of both the instance status check and the system status check is impaired, the health status of the instance is unhealthy. Otherwise, the health status is healthy.

" + } + }, + "InstanceIdSet": { + "base": null, + "refs": { + "RunScheduledInstancesResult$InstanceIdSet": "

The IDs of the newly launched instances.

" + } + }, + "InstanceIdStringList": { + "base": null, + "refs": { + "DescribeClassicLinkInstancesRequest$InstanceIds": "

One or more instance IDs. Must be instances linked to a VPC through ClassicLink.

", + "DescribeInstanceStatusRequest$InstanceIds": "

One or more instance IDs.

Default: Describes all your instances.

Constraints: Maximum 100 explicitly specified instance IDs.

", + "DescribeInstancesRequest$InstanceIds": "

One or more instance IDs.

Default: Describes all your instances.

", + "MonitorInstancesRequest$InstanceIds": "

One or more instance IDs.

", + "RebootInstancesRequest$InstanceIds": "

One or more instance IDs.

", + "ReportInstanceStatusRequest$Instances": "

One or more instances.

", + "StartInstancesRequest$InstanceIds": "

One or more instance IDs.

", + "StopInstancesRequest$InstanceIds": "

One or more instance IDs.

", + "TerminateInstancesRequest$InstanceIds": "

One or more instance IDs.

Constraints: Up to 1000 instance IDs. We recommend breaking up this request into smaller batches.

", + "UnmonitorInstancesRequest$InstanceIds": "

One or more instance IDs.

" + } + }, + "InstanceIpv6Address": { + "base": "

Describes an IPv6 address.

", + "refs": { + "InstanceIpv6AddressList$member": null + } + }, + "InstanceIpv6AddressList": { + "base": null, + "refs": { + "CreateNetworkInterfaceRequest$Ipv6Addresses": "

One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.

", + "InstanceNetworkInterface$Ipv6Addresses": "

One or more IPv6 addresses associated with the network interface.

", + "InstanceNetworkInterfaceSpecification$Ipv6Addresses": "

One or more IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.

", + "RunInstancesRequest$Ipv6Addresses": "

[EC2-VPC] Specify one or more IPv6 addresses from the range of the subnet to associate with the primary network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.

" + } + }, + "InstanceLifecycleType": { + "base": null, + "refs": { + "Instance$InstanceLifecycle": "

Indicates whether this is a Spot instance or a Scheduled Instance.

" + } + }, + "InstanceList": { + "base": null, + "refs": { + "Reservation$Instances": "

One or more instances.

" + } + }, + "InstanceMonitoring": { + "base": "

Describes the monitoring of an instance.

", + "refs": { + "InstanceMonitoringList$member": null + } + }, + "InstanceMonitoringList": { + "base": null, + "refs": { + "MonitorInstancesResult$InstanceMonitorings": "

The monitoring information.

", + "UnmonitorInstancesResult$InstanceMonitorings": "

The monitoring information.

" + } + }, + "InstanceNetworkInterface": { + "base": "

Describes a network interface.

", + "refs": { + "InstanceNetworkInterfaceList$member": null + } + }, + "InstanceNetworkInterfaceAssociation": { + "base": "

Describes association information for an Elastic IP address (IPv4).

", + "refs": { + "InstanceNetworkInterface$Association": "

The association information for an Elastic IPv4 associated with the network interface.

", + "InstancePrivateIpAddress$Association": "

The association information for an Elastic IP address for the network interface.

" + } + }, + "InstanceNetworkInterfaceAttachment": { + "base": "

Describes a network interface attachment.

", + "refs": { + "InstanceNetworkInterface$Attachment": "

The network interface attachment.

" + } + }, + "InstanceNetworkInterfaceList": { + "base": null, + "refs": { + "Instance$NetworkInterfaces": "

[EC2-VPC] One or more network interfaces for the instance.

" + } + }, + "InstanceNetworkInterfaceSpecification": { + "base": "

Describes a network interface.

", + "refs": { + "InstanceNetworkInterfaceSpecificationList$member": null + } + }, + "InstanceNetworkInterfaceSpecificationList": { + "base": null, + "refs": { + "LaunchSpecification$NetworkInterfaces": "

One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.

", + "RequestSpotLaunchSpecification$NetworkInterfaces": "

One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.

", + "RunInstancesRequest$NetworkInterfaces": "

One or more network interfaces.

", + "SpotFleetLaunchSpecification$NetworkInterfaces": "

One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.

" + } + }, + "InstancePrivateIpAddress": { + "base": "

Describes a private IPv4 address.

", + "refs": { + "InstancePrivateIpAddressList$member": null + } + }, + "InstancePrivateIpAddressList": { + "base": null, + "refs": { + "InstanceNetworkInterface$PrivateIpAddresses": "

One or more private IPv4 addresses associated with the network interface.

" + } + }, + "InstanceState": { + "base": "

Describes the current state of an instance.

", + "refs": { + "Instance$State": "

The current state of the instance.

", + "InstanceStateChange$CurrentState": "

The current state of the instance.

", + "InstanceStateChange$PreviousState": "

The previous state of the instance.

", + "InstanceStatus$InstanceState": "

The intended state of the instance. DescribeInstanceStatus requires that an instance be in the running state.

" + } + }, + "InstanceStateChange": { + "base": "

Describes an instance state change.

", + "refs": { + "InstanceStateChangeList$member": null + } + }, + "InstanceStateChangeList": { + "base": null, + "refs": { + "StartInstancesResult$StartingInstances": "

Information about one or more started instances.

", + "StopInstancesResult$StoppingInstances": "

Information about one or more stopped instances.

", + "TerminateInstancesResult$TerminatingInstances": "

Information about one or more terminated instances.

" + } + }, + "InstanceStateName": { + "base": null, + "refs": { + "InstanceState$Name": "

The current state of the instance.

" + } + }, + "InstanceStatus": { + "base": "

Describes the status of an instance.

", + "refs": { + "InstanceStatusList$member": null + } + }, + "InstanceStatusDetails": { + "base": "

Describes the instance status.

", + "refs": { + "InstanceStatusDetailsList$member": null + } + }, + "InstanceStatusDetailsList": { + "base": null, + "refs": { + "InstanceStatusSummary$Details": "

The system instance health or application instance health.

" + } + }, + "InstanceStatusEvent": { + "base": "

Describes a scheduled event for an instance.

", + "refs": { + "InstanceStatusEventList$member": null + } + }, + "InstanceStatusEventList": { + "base": null, + "refs": { + "InstanceStatus$Events": "

Any scheduled events associated with the instance.

" + } + }, + "InstanceStatusList": { + "base": null, + "refs": { + "DescribeInstanceStatusResult$InstanceStatuses": "

One or more instance status descriptions.

" + } + }, + "InstanceStatusSummary": { + "base": "

Describes the status of an instance.

", + "refs": { + "InstanceStatus$SystemStatus": "

Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.

", + "InstanceStatus$InstanceStatus": "

Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.

" + } + }, + "InstanceType": { + "base": null, + "refs": { + "DescribeReservedInstancesOfferingsRequest$InstanceType": "

The instance type that the reservation will cover (for example, m1.small). For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

", + "ImportInstanceLaunchSpecification$InstanceType": "

The instance type. For more information about the instance types that you can import, see Instance Types in the VM Import/Export User Guide.

", + "Instance$InstanceType": "

The instance type.

", + "InstanceTypeList$member": null, + "LaunchSpecification$InstanceType": "

The instance type.

", + "RequestSpotLaunchSpecification$InstanceType": "

The instance type.

", + "ReservedInstances$InstanceType": "

The instance type on which the Reserved Instance can be used.

", + "ReservedInstancesConfiguration$InstanceType": "

The instance type for the modified Reserved Instances.

", + "ReservedInstancesOffering$InstanceType": "

The instance type on which the Reserved Instance can be used.

", + "RunInstancesRequest$InstanceType": "

The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

Default: m1.small

", + "SpotFleetLaunchSpecification$InstanceType": "

The instance type. Note that T2 and HS1 instance types are not supported.

", + "SpotPrice$InstanceType": "

The instance type. Note that T2 and HS1 instance types are not supported.

" + } + }, + "InstanceTypeList": { + "base": null, + "refs": { + "DescribeSpotPriceHistoryRequest$InstanceTypes": "

Filters the results by the specified instance types. Note that T2 and HS1 instance types are not supported.

" + } + }, + "Integer": { + "base": null, + "refs": { + "AllocateHostsRequest$Quantity": "

The number of Dedicated Hosts you want to allocate to your account with these parameters.

", + "AssignIpv6AddressesRequest$Ipv6AddressCount": "

The number of IPv6 addresses to assign to the network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.

", + "AssignPrivateIpAddressesRequest$SecondaryPrivateIpAddressCount": "

The number of secondary IP addresses to assign to the network interface. You can't specify this parameter when also specifying private IP addresses.

", + "AttachNetworkInterfaceRequest$DeviceIndex": "

The index of the device for the network interface attachment.

", + "AuthorizeSecurityGroupEgressRequest$FromPort": "

The start of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.

", + "AuthorizeSecurityGroupEgressRequest$ToPort": "

The end of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.

", + "AuthorizeSecurityGroupIngressRequest$FromPort": "

The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. For the ICMP/ICMPv6 type number, use -1 to specify all types.

", + "AuthorizeSecurityGroupIngressRequest$ToPort": "

The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code number. For the ICMP/ICMPv6 code number, use -1 to specify all codes.

", + "AvailableCapacity$AvailableVCpus": "

The number of vCPUs available on the Dedicated Host.

", + "CreateCustomerGatewayRequest$BgpAsn": "

For devices that support BGP, the customer gateway's BGP ASN.

Default: 65000

", + "CreateNetworkAclEntryRequest$RuleNumber": "

The rule number for the entry (for example, 100). ACL entries are processed in ascending order by rule number.

Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 is reserved for internal use.

", + "CreateNetworkInterfaceRequest$SecondaryPrivateIpAddressCount": "

The number of secondary private IPv4 addresses to assign to a network interface. When you specify a number of secondary IPv4 addresses, Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR range. You can't specify this option and specify more than one private IP address using privateIpAddresses.

The number of IP addresses you can assign to a network interface varies by instance type. For more information, see IP Addresses Per ENI Per Instance Type in the Amazon Virtual Private Cloud User Guide.

", + "CreateNetworkInterfaceRequest$Ipv6AddressCount": "

The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses. If your subnet has the AssignIpv6AddressOnCreation attribute set to true, you can specify 0 to override this setting.

", + "CreateReservedInstancesListingRequest$InstanceCount": "

The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace. This number should be less than or equal to the instance count associated with the Reserved Instance ID specified in this call.

", + "CreateVolumeRequest$Size": "

The size of the volume, in GiBs.

Constraints: 1-16384 for gp2, 4-16384 for io1, 500-16384 for st1, 500-16384 for sc1, and 1-1024 for standard. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.

Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.

", + "CreateVolumeRequest$Iops": "

Only valid for Provisioned IOPS SSD volumes. The number of I/O operations per second (IOPS) to provision for the volume, with a maximum ratio of 50 IOPS/GiB.

Constraint: Range is 100 to 20000 for Provisioned IOPS SSD volumes

", + "DeleteNetworkAclEntryRequest$RuleNumber": "

The rule number of the entry to delete.

", + "DescribeClassicLinkInstancesRequest$MaxResults": "

The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned. You cannot specify this parameter and the instance IDs parameter in the same request.

Constraint: If the value is greater than 1000, we return only 1000 items.

", + "DescribeEgressOnlyInternetGatewaysRequest$MaxResults": "

The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned.

", + "DescribeFlowLogsRequest$MaxResults": "

The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned. You cannot specify this parameter and the flow log IDs parameter in the same request.

", + "DescribeHostReservationOfferingsRequest$MinDuration": "

This is the minimum duration of the reservation you'd like to purchase, specified in seconds. Reservations are available in one-year and three-year terms. The number of seconds specified must be the number of seconds in a year (365x24x60x60) times one of the supported durations (1 or 3). For example, specify 31536000 for one year.

", + "DescribeHostReservationOfferingsRequest$MaxDuration": "

This is the maximum duration of the reservation you'd like to purchase, specified in seconds. Reservations are available in one-year and three-year terms. The number of seconds specified must be the number of seconds in a year (365x24x60x60) times one of the supported durations (1 or 3). For example, specify 94608000 for three years.

", + "DescribeHostReservationOfferingsRequest$MaxResults": "

The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken value. This value can be between 5 and 500; if maxResults is given a larger value than 500, you will receive an error.

", + "DescribeHostReservationsRequest$MaxResults": "

The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken value. This value can be between 5 and 500; if maxResults is given a larger value than 500, you will receive an error.

", + "DescribeHostsRequest$MaxResults": "

The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken value. This value can be between 5 and 500; if maxResults is given a larger value than 500, you will receive an error. You cannot specify this parameter and the host IDs parameter in the same request.

", + "DescribeImportImageTasksRequest$MaxResults": "

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.

", + "DescribeImportSnapshotTasksRequest$MaxResults": "

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.

", + "DescribeInstanceStatusRequest$MaxResults": "

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. This value can be between 5 and 1000. You cannot specify this parameter and the instance IDs parameter in the same call.

", + "DescribeInstancesRequest$MaxResults": "

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. This value can be between 5 and 1000. You cannot specify this parameter and the instance IDs parameter or tag filters in the same call.

", + "DescribeMovingAddressesRequest$MaxResults": "

The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value outside of this range, an error is returned.

Default: If no value is provided, the default is 1000.

", + "DescribeNatGatewaysRequest$MaxResults": "

The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

Constraint: If the value specified is greater than 1000, we return only 1000 items.

", + "DescribePrefixListsRequest$MaxResults": "

The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

Constraint: If the value specified is greater than 1000, we return only 1000 items.

", + "DescribeReservedInstancesOfferingsRequest$MaxResults": "

The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. The maximum is 100.

Default: 100

", + "DescribeReservedInstancesOfferingsRequest$MaxInstanceCount": "

The maximum number of instances to filter when searching for offerings.

Default: 20

", + "DescribeScheduledInstanceAvailabilityRequest$MinSlotDurationInHours": "

The minimum available duration, in hours. The minimum required duration is 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours.

", + "DescribeScheduledInstanceAvailabilityRequest$MaxSlotDurationInHours": "

The maximum available duration, in hours. This value must be greater than MinSlotDurationInHours and less than 1,720.

", + "DescribeScheduledInstanceAvailabilityRequest$MaxResults": "

The maximum number of results to return in a single call. This value can be between 5 and 300. The default value is 300. To retrieve the remaining results, make another call with the returned NextToken value.

", + "DescribeScheduledInstancesRequest$MaxResults": "

The maximum number of results to return in a single call. This value can be between 5 and 300. The default value is 100. To retrieve the remaining results, make another call with the returned NextToken value.

", + "DescribeSnapshotsRequest$MaxResults": "

The maximum number of snapshot results returned by DescribeSnapshots in paginated output. When this parameter is used, DescribeSnapshots only returns MaxResults results in a single page along with a NextToken response element. The remaining results of the initial request can be seen by sending another DescribeSnapshots request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned. If this parameter is not used, then DescribeSnapshots returns all results. You cannot specify this parameter and the snapshot IDs parameter in the same request.

", + "DescribeSpotFleetInstancesRequest$MaxResults": "

The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value.

", + "DescribeSpotFleetRequestHistoryRequest$MaxResults": "

The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value.

", + "DescribeSpotFleetRequestsRequest$MaxResults": "

The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value.

", + "DescribeSpotPriceHistoryRequest$MaxResults": "

The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value.

", + "DescribeTagsRequest$MaxResults": "

The maximum number of results to return in a single call. This value can be between 5 and 1000. To retrieve the remaining results, make another call with the returned NextToken value.

", + "DescribeVolumeStatusRequest$MaxResults": "

The maximum number of volume results returned by DescribeVolumeStatus in paginated output. When this parameter is used, the request only returns MaxResults results in a single page along with a NextToken response element. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned. If this parameter is not used, then DescribeVolumeStatus returns all results. You cannot specify this parameter and the volume IDs parameter in the same request.

", + "DescribeVolumesModificationsRequest$MaxResults": "

The maximum number of results (up to a limit of 500) to be returned in a paginated request.

", + "DescribeVolumesRequest$MaxResults": "

The maximum number of volume results returned by DescribeVolumes in paginated output. When this parameter is used, DescribeVolumes only returns MaxResults results in a single page along with a NextToken response element. The remaining results of the initial request can be seen by sending another DescribeVolumes request with the returned NextToken value. This value can be between 5 and 500; if MaxResults is given a value larger than 500, only 500 results are returned. If this parameter is not used, then DescribeVolumes returns all results. You cannot specify this parameter and the volume IDs parameter in the same request.

", + "DescribeVpcEndpointServicesRequest$MaxResults": "

The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

Constraint: If the value is greater than 1000, we return only 1000 items.

", + "DescribeVpcEndpointsRequest$MaxResults": "

The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

Constraint: If the value is greater than 1000, we return only 1000 items.

", + "EbsBlockDevice$VolumeSize": "

The size of the volume, in GiB.

Constraints: 1-16384 for General Purpose SSD (gp2), 4-16384 for Provisioned IOPS SSD (io1), 500-16384 for Throughput Optimized HDD (st1), 500-16384 for Cold HDD (sc1), and 1-1024 for Magnetic (standard) volumes. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.

Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.

", + "EbsBlockDevice$Iops": "

The number of I/O operations per second (IOPS) that the volume supports. For io1, this represents the number of IOPS that are provisioned for the volume. For gp2, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. For more information about General Purpose SSD baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.

Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for gp2 volumes.

Condition: This parameter is required for requests to create io1 volumes; it is not used in requests to create gp2, st1, sc1, or standard volumes.

", + "HostOffering$Duration": "

The duration of the offering (in seconds).

", + "HostProperties$Sockets": "

The number of sockets on the Dedicated Host.

", + "HostProperties$Cores": "

The number of cores on the Dedicated Host.

", + "HostProperties$TotalVCpus": "

The number of vCPUs on the Dedicated Host.

", + "HostReservation$Count": "

The number of Dedicated Hosts the reservation is associated with.

", + "HostReservation$Duration": "

The length of the reservation's term, specified in seconds. Can be 31536000 (1 year) | 94608000 (3 years).

", + "IcmpTypeCode$Type": "

The ICMP type. A value of -1 means all types.

", + "IcmpTypeCode$Code": "

The ICMP code. A value of -1 means all codes for the specified ICMP type.

", + "Instance$AmiLaunchIndex": "

The AMI launch index, which can be used to find this instance in the launch group.

", + "InstanceCapacity$AvailableCapacity": "

The number of instances that can still be launched onto the Dedicated Host.

", + "InstanceCapacity$TotalCapacity": "

The total number of instances that can be launched onto the Dedicated Host.

", + "InstanceCount$InstanceCount": "

The number of listed Reserved Instances in the state specified by the state.

", + "InstanceNetworkInterfaceAttachment$DeviceIndex": "

The index of the device on the instance for the network interface attachment.

", + "InstanceNetworkInterfaceSpecification$DeviceIndex": "

The index of the device on the instance for the network interface attachment. If you are specifying a network interface in a RunInstances request, you must provide the device index.

", + "InstanceNetworkInterfaceSpecification$SecondaryPrivateIpAddressCount": "

The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a RunInstances request.

", + "InstanceNetworkInterfaceSpecification$Ipv6AddressCount": "

A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.

", + "InstanceState$Code": "

The low byte represents the state. The high byte is an opaque internal value and should be ignored.

  • 0 : pending

  • 16 : running

  • 32 : shutting-down

  • 48 : terminated

  • 64 : stopping

  • 80 : stopped

", + "IpPermission$FromPort": "

The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. A value of -1 indicates all ICMP/ICMPv6 types.

", + "IpPermission$ToPort": "

The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of -1 indicates all ICMP/ICMPv6 codes for the specified ICMP type.

", + "ModifySpotFleetRequestRequest$TargetCapacity": "

The size of the fleet.

", + "ModifyVolumeRequest$Size": "

Target size in GiB of the volume to be modified. Target volume size must be greater than or equal to than the existing size of the volume. For information about available EBS volume sizes, see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html.

Default: If no size is specified, the existing size is retained.

", + "ModifyVolumeRequest$Iops": "

Target IOPS rate of the volume to be modified.

Only valid for Provisioned IOPS SSD (io1) volumes. For more information about io1 IOPS configuration, see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops.

Default: If no IOPS value is specified, the existing value is retained.

", + "NetworkAclEntry$RuleNumber": "

The rule number for the entry. ACL entries are processed in ascending order by rule number.

", + "NetworkInterfaceAttachment$DeviceIndex": "

The device index of the network interface attachment on the instance.

", + "OccurrenceDayRequestSet$member": null, + "OccurrenceDaySet$member": null, + "PortRange$From": "

The first port in the range.

", + "PortRange$To": "

The last port in the range.

", + "PricingDetail$Count": "

The number of reservations available for the price.

", + "Purchase$Duration": "

The duration of the reservation's term in seconds.

", + "PurchaseRequest$InstanceCount": "

The number of instances.

", + "PurchaseReservedInstancesOfferingRequest$InstanceCount": "

The number of Reserved Instances to purchase.

", + "ReplaceNetworkAclEntryRequest$RuleNumber": "

The rule number of the entry to replace.

", + "RequestSpotInstancesRequest$InstanceCount": "

The maximum number of Spot instances to launch.

Default: 1

", + "RequestSpotInstancesRequest$BlockDurationMinutes": "

The required duration for the Spot instances (also known as Spot blocks), in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360).

The duration period starts as soon as your Spot instance receives its instance ID. At the end of the duration period, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.

Note that you can't specify an Availability Zone group or a launch group if you specify a duration.

", + "ReservedInstances$InstanceCount": "

The number of reservations purchased.

", + "ReservedInstancesConfiguration$InstanceCount": "

The number of modified Reserved Instances.

", + "RevokeSecurityGroupEgressRequest$FromPort": "

The start of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.

", + "RevokeSecurityGroupEgressRequest$ToPort": "

The end of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.

", + "RevokeSecurityGroupIngressRequest$FromPort": "

The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number, use -1 to specify all ICMP types.

", + "RevokeSecurityGroupIngressRequest$ToPort": "

The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number, use -1 to specify all ICMP codes for the ICMP type.

", + "RunInstancesRequest$MinCount": "

The minimum number of instances to launch. If you specify a minimum that is more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches no instances.

Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.

", + "RunInstancesRequest$MaxCount": "

The maximum number of instances to launch. If you specify more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances above MinCount.

Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 FAQ.

", + "RunInstancesRequest$Ipv6AddressCount": "

[EC2-VPC] A number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.

", + "RunScheduledInstancesRequest$InstanceCount": "

The number of instances.

Default: 1

", + "ScheduledInstance$SlotDurationInHours": "

The number of hours in the schedule.

", + "ScheduledInstance$TotalScheduledInstanceHours": "

The total number of hours for a single instance for the entire term.

", + "ScheduledInstance$InstanceCount": "

The number of instances.

", + "ScheduledInstanceAvailability$SlotDurationInHours": "

The number of hours in the schedule.

", + "ScheduledInstanceAvailability$TotalScheduledInstanceHours": "

The total number of hours for a single instance for the entire term.

", + "ScheduledInstanceAvailability$AvailableInstanceCount": "

The number of available instances.

", + "ScheduledInstanceAvailability$MinTermDurationInDays": "

The minimum term. The only possible value is 365 days.

", + "ScheduledInstanceAvailability$MaxTermDurationInDays": "

The maximum term. The only possible value is 365 days.

", + "ScheduledInstanceRecurrence$Interval": "

The interval quantity. The interval unit depends on the value of frequency. For example, every 2 weeks or every 2 months.

", + "ScheduledInstanceRecurrenceRequest$Interval": "

The interval quantity. The interval unit depends on the value of Frequency. For example, every 2 weeks or every 2 months.

", + "ScheduledInstancesEbs$VolumeSize": "

The size of the volume, in GiB.

Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.

", + "ScheduledInstancesEbs$Iops": "

The number of I/O operations per second (IOPS) that the volume supports. For io1 volumes, this represents the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. For more information about gp2 baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.

Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for gp2 volumes.

Condition: This parameter is required for requests to create io1volumes; it is not used in requests to create gp2, st1, sc1, or standard volumes.

", + "ScheduledInstancesNetworkInterface$DeviceIndex": "

The index of the device for the network interface attachment.

", + "ScheduledInstancesNetworkInterface$SecondaryPrivateIpAddressCount": "

The number of secondary private IPv4 addresses.

", + "ScheduledInstancesNetworkInterface$Ipv6AddressCount": "

The number of IPv6 addresses to assign to the network interface. The IPv6 addresses are automatically selected from the subnet range.

", + "Snapshot$VolumeSize": "

The size of the volume, in GiB.

", + "SpotFleetRequestConfigData$TargetCapacity": "

The number of units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O.

", + "SpotInstanceRequest$BlockDurationMinutes": "

The duration for the Spot instance, in minutes.

", + "StaleIpPermission$FromPort": "

The start of the port range for the TCP and UDP protocols, or an ICMP type number. A value of -1 indicates all ICMP types.

", + "StaleIpPermission$ToPort": "

The end of the port range for the TCP and UDP protocols, or an ICMP type number. A value of -1 indicates all ICMP types.

", + "Subnet$AvailableIpAddressCount": "

The number of unused private IPv4 addresses in the subnet. Note that the IPv4 addresses for any stopped instances are considered unavailable.

", + "TargetConfiguration$InstanceCount": "

The number of instances the Convertible Reserved Instance offering can be applied to. This parameter is reserved and cannot be specified in a request

", + "TargetConfigurationRequest$InstanceCount": "

The number of instances the Covertible Reserved Instance offering can be applied to. This parameter is reserved and cannot be specified in a request

", + "VgwTelemetry$AcceptedRouteCount": "

The number of accepted routes.

", + "Volume$Size": "

The size of the volume, in GiBs.

", + "Volume$Iops": "

The number of I/O operations per second (IOPS) that the volume supports. For Provisioned IOPS SSD volumes, this represents the number of IOPS that are provisioned for the volume. For General Purpose SSD volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. For more information on General Purpose SSD baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.

Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for gp2 volumes.

Condition: This parameter is required for requests to create io1 volumes; it is not used in requests to create gp2, st1, sc1, or standard volumes.

", + "VolumeModification$TargetSize": "

Target size of the volume being modified.

", + "VolumeModification$TargetIops": "

Target IOPS rate of the volume being modified.

", + "VolumeModification$OriginalSize": "

Original size of the volume being modified.

", + "VolumeModification$OriginalIops": "

Original IOPS rate of the volume being modified.

" + } + }, + "InternetGateway": { + "base": "

Describes an Internet gateway.

", + "refs": { + "CreateInternetGatewayResult$InternetGateway": "

Information about the Internet gateway.

", + "InternetGatewayList$member": null + } + }, + "InternetGatewayAttachment": { + "base": "

Describes the attachment of a VPC to an Internet gateway or an egress-only Internet gateway.

", + "refs": { + "InternetGatewayAttachmentList$member": null + } + }, + "InternetGatewayAttachmentList": { + "base": null, + "refs": { + "EgressOnlyInternetGateway$Attachments": "

Information about the attachment of the egress-only Internet gateway.

", + "InternetGateway$Attachments": "

Any VPCs attached to the Internet gateway.

" + } + }, + "InternetGatewayList": { + "base": null, + "refs": { + "DescribeInternetGatewaysResult$InternetGateways": "

Information about one or more Internet gateways.

" + } + }, + "IpPermission": { + "base": "

Describes a security group rule.

", + "refs": { + "IpPermissionList$member": null + } + }, + "IpPermissionList": { + "base": null, + "refs": { + "AuthorizeSecurityGroupEgressRequest$IpPermissions": "

A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.

", + "AuthorizeSecurityGroupIngressRequest$IpPermissions": "

A set of IP permissions. Can be used to specify multiple rules in a single command.

", + "RevokeSecurityGroupEgressRequest$IpPermissions": "

A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.

", + "RevokeSecurityGroupIngressRequest$IpPermissions": "

A set of IP permissions. You can't specify a source security group and a CIDR IP address range.

", + "SecurityGroup$IpPermissions": "

One or more inbound rules associated with the security group.

", + "SecurityGroup$IpPermissionsEgress": "

[EC2-VPC] One or more outbound rules associated with the security group.

" + } + }, + "IpRange": { + "base": "

Describes an IPv4 range.

", + "refs": { + "IpRangeList$member": null + } + }, + "IpRangeList": { + "base": null, + "refs": { + "IpPermission$IpRanges": "

One or more IPv4 ranges.

" + } + }, + "IpRanges": { + "base": null, + "refs": { + "StaleIpPermission$IpRanges": "

One or more IP ranges. Not applicable for stale security group rules.

" + } + }, + "Ipv6Address": { + "base": null, + "refs": { + "ScheduledInstancesIpv6Address$Ipv6Address": "

The IPv6 address.

" + } + }, + "Ipv6AddressList": { + "base": null, + "refs": { + "AssignIpv6AddressesRequest$Ipv6Addresses": "

One or more specific IPv6 addresses to be assigned to the network interface. You can't use this option if you're specifying a number of IPv6 addresses.

", + "AssignIpv6AddressesResult$AssignedIpv6Addresses": "

The IPv6 addresses assigned to the network interface.

", + "UnassignIpv6AddressesRequest$Ipv6Addresses": "

The IPv6 addresses to unassign from the network interface.

", + "UnassignIpv6AddressesResult$UnassignedIpv6Addresses": "

The IPv6 addresses that have been unassigned from the network interface.

" + } + }, + "Ipv6CidrBlock": { + "base": "

Describes an IPv6 CIDR block.

", + "refs": { + "Ipv6CidrBlockSet$member": null + } + }, + "Ipv6CidrBlockSet": { + "base": null, + "refs": { + "VpcPeeringConnectionVpcInfo$Ipv6CidrBlockSet": "

The IPv6 CIDR block for the VPC.

" + } + }, + "Ipv6Range": { + "base": "

[EC2-VPC only] Describes an IPv6 range.

", + "refs": { + "Ipv6RangeList$member": null + } + }, + "Ipv6RangeList": { + "base": null, + "refs": { + "IpPermission$Ipv6Ranges": "

[EC2-VPC only] One or more IPv6 ranges.

" + } + }, + "KeyNameStringList": { + "base": null, + "refs": { + "DescribeKeyPairsRequest$KeyNames": "

One or more key pair names.

Default: Describes all your key pairs.

" + } + }, + "KeyPair": { + "base": "

Describes a key pair.

", + "refs": { + } + }, + "KeyPairInfo": { + "base": "

Describes a key pair.

", + "refs": { + "KeyPairList$member": null + } + }, + "KeyPairList": { + "base": null, + "refs": { + "DescribeKeyPairsResult$KeyPairs": "

Information about one or more key pairs.

" + } + }, + "LaunchPermission": { + "base": "

Describes a launch permission.

", + "refs": { + "LaunchPermissionList$member": null + } + }, + "LaunchPermissionList": { + "base": null, + "refs": { + "ImageAttribute$LaunchPermissions": "

One or more launch permissions.

", + "LaunchPermissionModifications$Add": "

The AWS account ID to add to the list of launch permissions for the AMI.

", + "LaunchPermissionModifications$Remove": "

The AWS account ID to remove from the list of launch permissions for the AMI.

" + } + }, + "LaunchPermissionModifications": { + "base": "

Describes a launch permission modification.

", + "refs": { + "ModifyImageAttributeRequest$LaunchPermission": "

A launch permission modification.

" + } + }, + "LaunchSpecification": { + "base": "

Describes the launch specification for an instance.

", + "refs": { + "SpotInstanceRequest$LaunchSpecification": "

Additional information for launching instances.

" + } + }, + "LaunchSpecsList": { + "base": null, + "refs": { + "SpotFleetRequestConfigData$LaunchSpecifications": "

Information about the launch specifications for the Spot fleet request.

" + } + }, + "ListingState": { + "base": null, + "refs": { + "InstanceCount$State": "

The states of the listed Reserved Instances.

" + } + }, + "ListingStatus": { + "base": null, + "refs": { + "ReservedInstancesListing$Status": "

The status of the Reserved Instance listing.

" + } + }, + "Long": { + "base": null, + "refs": { + "DescribeReservedInstancesOfferingsRequest$MinDuration": "

The minimum duration (in seconds) to filter when searching for offerings.

Default: 2592000 (1 month)

", + "DescribeReservedInstancesOfferingsRequest$MaxDuration": "

The maximum duration (in seconds) to filter when searching for offerings.

Default: 94608000 (3 years)

", + "DiskImageDescription$Size": "

The size of the disk image, in GiB.

", + "DiskImageDetail$Bytes": "

The size of the disk image, in GiB.

", + "DiskImageVolumeDescription$Size": "

The size of the volume, in GiB.

", + "ImportInstanceVolumeDetailItem$BytesConverted": "

The number of bytes converted so far.

", + "ImportVolumeTaskDetails$BytesConverted": "

The number of bytes converted so far.

", + "PriceSchedule$Term": "

The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.

", + "PriceScheduleSpecification$Term": "

The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.

", + "ReservedInstances$Duration": "

The duration of the Reserved Instance, in seconds.

", + "ReservedInstancesOffering$Duration": "

The duration of the Reserved Instance, in seconds.

", + "VolumeDetail$Size": "

The size of the volume, in GiB.

", + "VolumeModification$Progress": "

Modification progress from 0 to 100%.

" + } + }, + "MaxResults": { + "base": null, + "refs": { + "DescribeIamInstanceProfileAssociationsRequest$MaxResults": "

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.

", + "DescribeStaleSecurityGroupsRequest$MaxResults": "

The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

", + "DescribeVpcClassicLinkDnsSupportRequest$MaxResults": "

The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

" + } + }, + "ModifyHostsRequest": { + "base": "

Contains the parameters for ModifyHosts.

", + "refs": { + } + }, + "ModifyHostsResult": { + "base": "

Contains the output of ModifyHosts.

", + "refs": { + } + }, + "ModifyIdFormatRequest": { + "base": "

Contains the parameters of ModifyIdFormat.

", + "refs": { + } + }, + "ModifyIdentityIdFormatRequest": { + "base": "

Contains the parameters of ModifyIdentityIdFormat.

", + "refs": { + } + }, + "ModifyImageAttributeRequest": { + "base": "

Contains the parameters for ModifyImageAttribute.

", + "refs": { + } + }, + "ModifyInstanceAttributeRequest": { + "base": "

Contains the parameters for ModifyInstanceAttribute.

", + "refs": { + } + }, + "ModifyInstancePlacementRequest": { + "base": "

Contains the parameters for ModifyInstancePlacement.

", + "refs": { + } + }, + "ModifyInstancePlacementResult": { + "base": "

Contains the output of ModifyInstancePlacement.

", + "refs": { + } + }, + "ModifyNetworkInterfaceAttributeRequest": { + "base": "

Contains the parameters for ModifyNetworkInterfaceAttribute.

", + "refs": { + } + }, + "ModifyReservedInstancesRequest": { + "base": "

Contains the parameters for ModifyReservedInstances.

", + "refs": { + } + }, + "ModifyReservedInstancesResult": { + "base": "

Contains the output of ModifyReservedInstances.

", + "refs": { + } + }, + "ModifySnapshotAttributeRequest": { + "base": "

Contains the parameters for ModifySnapshotAttribute.

", + "refs": { + } + }, + "ModifySpotFleetRequestRequest": { + "base": "

Contains the parameters for ModifySpotFleetRequest.

", + "refs": { + } + }, + "ModifySpotFleetRequestResponse": { + "base": "

Contains the output of ModifySpotFleetRequest.

", + "refs": { + } + }, + "ModifySubnetAttributeRequest": { + "base": "

Contains the parameters for ModifySubnetAttribute.

", + "refs": { + } + }, + "ModifyVolumeAttributeRequest": { + "base": "

Contains the parameters for ModifyVolumeAttribute.

", + "refs": { + } + }, + "ModifyVolumeRequest": { + "base": null, + "refs": { + } + }, + "ModifyVolumeResult": { + "base": null, + "refs": { + } + }, + "ModifyVpcAttributeRequest": { + "base": "

Contains the parameters for ModifyVpcAttribute.

", + "refs": { + } + }, + "ModifyVpcEndpointRequest": { + "base": "

Contains the parameters for ModifyVpcEndpoint.

", + "refs": { + } + }, + "ModifyVpcEndpointResult": { + "base": "

Contains the output of ModifyVpcEndpoint.

", + "refs": { + } + }, + "ModifyVpcPeeringConnectionOptionsRequest": { + "base": null, + "refs": { + } + }, + "ModifyVpcPeeringConnectionOptionsResult": { + "base": null, + "refs": { + } + }, + "MonitorInstancesRequest": { + "base": "

Contains the parameters for MonitorInstances.

", + "refs": { + } + }, + "MonitorInstancesResult": { + "base": "

Contains the output of MonitorInstances.

", + "refs": { + } + }, + "Monitoring": { + "base": "

Describes the monitoring of an instance.

", + "refs": { + "Instance$Monitoring": "

The monitoring for the instance.

", + "InstanceMonitoring$Monitoring": "

The monitoring for the instance.

" + } + }, + "MonitoringState": { + "base": null, + "refs": { + "Monitoring$State": "

Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring is enabled.

" + } + }, + "MoveAddressToVpcRequest": { + "base": "

Contains the parameters for MoveAddressToVpc.

", + "refs": { + } + }, + "MoveAddressToVpcResult": { + "base": "

Contains the output of MoveAddressToVpc.

", + "refs": { + } + }, + "MoveStatus": { + "base": null, + "refs": { + "MovingAddressStatus$MoveStatus": "

The status of the Elastic IP address that's being moved to the EC2-VPC platform, or restored to the EC2-Classic platform.

" + } + }, + "MovingAddressStatus": { + "base": "

Describes the status of a moving Elastic IP address.

", + "refs": { + "MovingAddressStatusSet$member": null + } + }, + "MovingAddressStatusSet": { + "base": null, + "refs": { + "DescribeMovingAddressesResult$MovingAddressStatuses": "

The status for each Elastic IP address.

" + } + }, + "NatGateway": { + "base": "

Describes a NAT gateway.

", + "refs": { + "CreateNatGatewayResult$NatGateway": "

Information about the NAT gateway.

", + "NatGatewayList$member": null + } + }, + "NatGatewayAddress": { + "base": "

Describes the IP addresses and network interface associated with a NAT gateway.

", + "refs": { + "NatGatewayAddressList$member": null + } + }, + "NatGatewayAddressList": { + "base": null, + "refs": { + "NatGateway$NatGatewayAddresses": "

Information about the IP addresses and network interface associated with the NAT gateway.

" + } + }, + "NatGatewayList": { + "base": null, + "refs": { + "DescribeNatGatewaysResult$NatGateways": "

Information about the NAT gateways.

" + } + }, + "NatGatewayState": { + "base": null, + "refs": { + "NatGateway$State": "

The state of the NAT gateway.

  • pending: The NAT gateway is being created and is not ready to process traffic.

  • failed: The NAT gateway could not be created. Check the failureCode and failureMessage fields for the reason.

  • available: The NAT gateway is able to process traffic. This status remains until you delete the NAT gateway, and does not indicate the health of the NAT gateway.

  • deleting: The NAT gateway is in the process of being terminated and may still be processing traffic.

  • deleted: The NAT gateway has been terminated and is no longer processing traffic.

" + } + }, + "NetworkAcl": { + "base": "

Describes a network ACL.

", + "refs": { + "CreateNetworkAclResult$NetworkAcl": "

Information about the network ACL.

", + "NetworkAclList$member": null + } + }, + "NetworkAclAssociation": { + "base": "

Describes an association between a network ACL and a subnet.

", + "refs": { + "NetworkAclAssociationList$member": null + } + }, + "NetworkAclAssociationList": { + "base": null, + "refs": { + "NetworkAcl$Associations": "

Any associations between the network ACL and one or more subnets

" + } + }, + "NetworkAclEntry": { + "base": "

Describes an entry in a network ACL.

", + "refs": { + "NetworkAclEntryList$member": null + } + }, + "NetworkAclEntryList": { + "base": null, + "refs": { + "NetworkAcl$Entries": "

One or more entries (rules) in the network ACL.

" + } + }, + "NetworkAclList": { + "base": null, + "refs": { + "DescribeNetworkAclsResult$NetworkAcls": "

Information about one or more network ACLs.

" + } + }, + "NetworkInterface": { + "base": "

Describes a network interface.

", + "refs": { + "CreateNetworkInterfaceResult$NetworkInterface": "

Information about the network interface.

", + "NetworkInterfaceList$member": null + } + }, + "NetworkInterfaceAssociation": { + "base": "

Describes association information for an Elastic IP address (IPv4 only).

", + "refs": { + "NetworkInterface$Association": "

The association information for an Elastic IP address (IPv4) associated with the network interface.

", + "NetworkInterfacePrivateIpAddress$Association": "

The association information for an Elastic IP address (IPv4) associated with the network interface.

" + } + }, + "NetworkInterfaceAttachment": { + "base": "

Describes a network interface attachment.

", + "refs": { + "DescribeNetworkInterfaceAttributeResult$Attachment": "

The attachment (if any) of the network interface.

", + "NetworkInterface$Attachment": "

The network interface attachment.

" + } + }, + "NetworkInterfaceAttachmentChanges": { + "base": "

Describes an attachment change.

", + "refs": { + "ModifyNetworkInterfaceAttributeRequest$Attachment": "

Information about the interface attachment. If modifying the 'delete on termination' attribute, you must specify the ID of the interface attachment.

" + } + }, + "NetworkInterfaceAttribute": { + "base": null, + "refs": { + "DescribeNetworkInterfaceAttributeRequest$Attribute": "

The attribute of the network interface.

" + } + }, + "NetworkInterfaceIdList": { + "base": null, + "refs": { + "DescribeNetworkInterfacesRequest$NetworkInterfaceIds": "

One or more network interface IDs.

Default: Describes all your network interfaces.

" + } + }, + "NetworkInterfaceIpv6Address": { + "base": "

Describes an IPv6 address associated with a network interface.

", + "refs": { + "NetworkInterfaceIpv6AddressesList$member": null + } + }, + "NetworkInterfaceIpv6AddressesList": { + "base": null, + "refs": { + "NetworkInterface$Ipv6Addresses": "

The IPv6 addresses associated with the network interface.

" + } + }, + "NetworkInterfaceList": { + "base": null, + "refs": { + "DescribeNetworkInterfacesResult$NetworkInterfaces": "

Information about one or more network interfaces.

" + } + }, + "NetworkInterfacePrivateIpAddress": { + "base": "

Describes the private IPv4 address of a network interface.

", + "refs": { + "NetworkInterfacePrivateIpAddressList$member": null + } + }, + "NetworkInterfacePrivateIpAddressList": { + "base": null, + "refs": { + "NetworkInterface$PrivateIpAddresses": "

The private IPv4 addresses associated with the network interface.

" + } + }, + "NetworkInterfaceStatus": { + "base": null, + "refs": { + "InstanceNetworkInterface$Status": "

The status of the network interface.

", + "NetworkInterface$Status": "

The status of the network interface.

" + } + }, + "NetworkInterfaceType": { + "base": null, + "refs": { + "NetworkInterface$InterfaceType": "

The type of interface.

" + } + }, + "NewDhcpConfiguration": { + "base": null, + "refs": { + "NewDhcpConfigurationList$member": null + } + }, + "NewDhcpConfigurationList": { + "base": null, + "refs": { + "CreateDhcpOptionsRequest$DhcpConfigurations": "

A DHCP configuration option.

" + } + }, + "NextToken": { + "base": null, + "refs": { + "DescribeIamInstanceProfileAssociationsRequest$NextToken": "

The token to request the next page of results.

", + "DescribeIamInstanceProfileAssociationsResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeStaleSecurityGroupsRequest$NextToken": "

The token for the next set of items to return. (You received this token from a prior call.)

", + "DescribeVpcClassicLinkDnsSupportRequest$NextToken": "

The token for the next set of items to return. (You received this token from a prior call.)

", + "DescribeVpcClassicLinkDnsSupportResult$NextToken": "

The token to use when requesting the next set of items.

" + } + }, + "OccurrenceDayRequestSet": { + "base": null, + "refs": { + "ScheduledInstanceRecurrenceRequest$OccurrenceDays": "

The days. For a monthly schedule, this is one or more days of the month (1-31). For a weekly schedule, this is one or more days of the week (1-7, where 1 is Sunday). You can't specify this value with a daily schedule. If the occurrence is relative to the end of the month, you can specify only a single day.

" + } + }, + "OccurrenceDaySet": { + "base": null, + "refs": { + "ScheduledInstanceRecurrence$OccurrenceDaySet": "

The days. For a monthly schedule, this is one or more days of the month (1-31). For a weekly schedule, this is one or more days of the week (1-7, where 1 is Sunday).

" + } + }, + "OfferingClassType": { + "base": null, + "refs": { + "DescribeReservedInstancesOfferingsRequest$OfferingClass": "

The offering class of the Reserved Instance. Can be standard or convertible.

", + "DescribeReservedInstancesRequest$OfferingClass": "

Describes whether the Reserved Instance is Standard or Convertible.

", + "ReservedInstances$OfferingClass": "

The offering class of the Reserved Instance.

", + "ReservedInstancesOffering$OfferingClass": "

If convertible it can be exchanged for Reserved Instances of the same or higher monetary value, with different configurations. If standard, it is not possible to perform an exchange.

" + } + }, + "OfferingTypeValues": { + "base": null, + "refs": { + "DescribeReservedInstancesOfferingsRequest$OfferingType": "

The Reserved Instance offering type. If you are using tools that predate the 2011-11-01 API version, you only have access to the Medium Utilization Reserved Instance offering type.

", + "DescribeReservedInstancesRequest$OfferingType": "

The Reserved Instance offering type. If you are using tools that predate the 2011-11-01 API version, you only have access to the Medium Utilization Reserved Instance offering type.

", + "ReservedInstances$OfferingType": "

The Reserved Instance offering type.

", + "ReservedInstancesOffering$OfferingType": "

The Reserved Instance offering type.

" + } + }, + "OperationType": { + "base": null, + "refs": { + "ModifyImageAttributeRequest$OperationType": "

The operation type.

", + "ModifySnapshotAttributeRequest$OperationType": "

The type of operation to perform to the attribute.

" + } + }, + "OwnerStringList": { + "base": null, + "refs": { + "DescribeImagesRequest$Owners": "

Filters the images by the owner. Specify an AWS account ID, self (owner is the sender of the request), or an AWS owner alias (valid values are amazon | aws-marketplace | microsoft). Omitting this option returns all images for which you have launch permissions, regardless of ownership.

", + "DescribeSnapshotsRequest$OwnerIds": "

Returns the snapshots owned by the specified owner. Multiple owners can be specified.

" + } + }, + "PaymentOption": { + "base": null, + "refs": { + "HostOffering$PaymentOption": "

The available payment option.

", + "HostReservation$PaymentOption": "

The payment option selected for this reservation.

", + "Purchase$PaymentOption": "

The payment option for the reservation.

" + } + }, + "PeeringConnectionOptions": { + "base": "

Describes the VPC peering connection options.

", + "refs": { + "ModifyVpcPeeringConnectionOptionsResult$RequesterPeeringConnectionOptions": "

Information about the VPC peering connection options for the requester VPC.

", + "ModifyVpcPeeringConnectionOptionsResult$AccepterPeeringConnectionOptions": "

Information about the VPC peering connection options for the accepter VPC.

" + } + }, + "PeeringConnectionOptionsRequest": { + "base": "

The VPC peering connection options.

", + "refs": { + "ModifyVpcPeeringConnectionOptionsRequest$RequesterPeeringConnectionOptions": "

The VPC peering connection options for the requester VPC.

", + "ModifyVpcPeeringConnectionOptionsRequest$AccepterPeeringConnectionOptions": "

The VPC peering connection options for the accepter VPC.

" + } + }, + "PermissionGroup": { + "base": null, + "refs": { + "CreateVolumePermission$Group": "

The specific group that is to be added or removed from a volume's list of create volume permissions.

", + "LaunchPermission$Group": "

The name of the group.

" + } + }, + "Placement": { + "base": "

Describes the placement of an instance.

", + "refs": { + "ImportInstanceLaunchSpecification$Placement": "

The placement information for the instance.

", + "Instance$Placement": "

The location where the instance launched, if applicable.

", + "RunInstancesRequest$Placement": "

The placement for the instance.

" + } + }, + "PlacementGroup": { + "base": "

Describes a placement group.

", + "refs": { + "PlacementGroupList$member": null + } + }, + "PlacementGroupList": { + "base": null, + "refs": { + "DescribePlacementGroupsResult$PlacementGroups": "

One or more placement groups.

" + } + }, + "PlacementGroupState": { + "base": null, + "refs": { + "PlacementGroup$State": "

The state of the placement group.

" + } + }, + "PlacementGroupStringList": { + "base": null, + "refs": { + "DescribePlacementGroupsRequest$GroupNames": "

One or more placement group names.

Default: Describes all your placement groups, or only those otherwise specified.

" + } + }, + "PlacementStrategy": { + "base": null, + "refs": { + "CreatePlacementGroupRequest$Strategy": "

The placement strategy.

", + "PlacementGroup$Strategy": "

The placement strategy.

" + } + }, + "PlatformValues": { + "base": null, + "refs": { + "Image$Platform": "

The value is Windows for Windows AMIs; otherwise blank.

", + "ImportInstanceRequest$Platform": "

The instance operating system.

", + "ImportInstanceTaskDetails$Platform": "

The instance operating system.

", + "Instance$Platform": "

The value is Windows for Windows instances; otherwise blank.

" + } + }, + "PortRange": { + "base": "

Describes a range of ports.

", + "refs": { + "CreateNetworkAclEntryRequest$PortRange": "

TCP or UDP protocols: The range of ports the rule applies to.

", + "NetworkAclEntry$PortRange": "

TCP or UDP protocols: The range of ports the rule applies to.

", + "ReplaceNetworkAclEntryRequest$PortRange": "

TCP or UDP protocols: The range of ports the rule applies to. Required if specifying TCP (6) or UDP (17) for the protocol.

" + } + }, + "PrefixList": { + "base": "

Describes prefixes for AWS services.

", + "refs": { + "PrefixListSet$member": null + } + }, + "PrefixListId": { + "base": "

The ID of the prefix.

", + "refs": { + "PrefixListIdList$member": null + } + }, + "PrefixListIdList": { + "base": null, + "refs": { + "IpPermission$PrefixListIds": "

(Valid for AuthorizeSecurityGroupEgress, RevokeSecurityGroupEgress and DescribeSecurityGroups only) One or more prefix list IDs for an AWS service. In an AuthorizeSecurityGroupEgress request, this is the AWS service that you want to access through a VPC endpoint from instances associated with the security group.

" + } + }, + "PrefixListIdSet": { + "base": null, + "refs": { + "StaleIpPermission$PrefixListIds": "

One or more prefix list IDs for an AWS service. Not applicable for stale security group rules.

" + } + }, + "PrefixListSet": { + "base": null, + "refs": { + "DescribePrefixListsResult$PrefixLists": "

All available prefix lists.

" + } + }, + "PriceSchedule": { + "base": "

Describes the price for a Reserved Instance.

", + "refs": { + "PriceScheduleList$member": null + } + }, + "PriceScheduleList": { + "base": null, + "refs": { + "ReservedInstancesListing$PriceSchedules": "

The price of the Reserved Instance listing.

" + } + }, + "PriceScheduleSpecification": { + "base": "

Describes the price for a Reserved Instance.

", + "refs": { + "PriceScheduleSpecificationList$member": null + } + }, + "PriceScheduleSpecificationList": { + "base": null, + "refs": { + "CreateReservedInstancesListingRequest$PriceSchedules": "

A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.

" + } + }, + "PricingDetail": { + "base": "

Describes a Reserved Instance offering.

", + "refs": { + "PricingDetailsList$member": null + } + }, + "PricingDetailsList": { + "base": null, + "refs": { + "ReservedInstancesOffering$PricingDetails": "

The pricing details of the Reserved Instance offering.

" + } + }, + "PrivateIpAddressConfigSet": { + "base": null, + "refs": { + "ScheduledInstancesNetworkInterface$PrivateIpAddressConfigs": "

The private IPv4 addresses.

" + } + }, + "PrivateIpAddressSpecification": { + "base": "

Describes a secondary private IPv4 address for a network interface.

", + "refs": { + "PrivateIpAddressSpecificationList$member": null + } + }, + "PrivateIpAddressSpecificationList": { + "base": null, + "refs": { + "CreateNetworkInterfaceRequest$PrivateIpAddresses": "

One or more private IPv4 addresses.

", + "InstanceNetworkInterfaceSpecification$PrivateIpAddresses": "

One or more private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.

" + } + }, + "PrivateIpAddressStringList": { + "base": null, + "refs": { + "AssignPrivateIpAddressesRequest$PrivateIpAddresses": "

One or more IP addresses to be assigned as a secondary private IP address to the network interface. You can't specify this parameter when also specifying a number of secondary IP addresses.

If you don't specify an IP address, Amazon EC2 automatically selects an IP address within the subnet range.

", + "UnassignPrivateIpAddressesRequest$PrivateIpAddresses": "

The secondary private IP addresses to unassign from the network interface. You can specify this option multiple times to unassign more than one IP address.

" + } + }, + "ProductCode": { + "base": "

Describes a product code.

", + "refs": { + "ProductCodeList$member": null + } + }, + "ProductCodeList": { + "base": null, + "refs": { + "DescribeSnapshotAttributeResult$ProductCodes": "

A list of product codes.

", + "DescribeVolumeAttributeResult$ProductCodes": "

A list of product codes.

", + "Image$ProductCodes": "

Any product codes associated with the AMI.

", + "ImageAttribute$ProductCodes": "

One or more product codes.

", + "Instance$ProductCodes": "

The product codes attached to this instance, if applicable.

", + "InstanceAttribute$ProductCodes": "

A list of product codes.

" + } + }, + "ProductCodeStringList": { + "base": null, + "refs": { + "ModifyImageAttributeRequest$ProductCodes": "

One or more product codes. After you add a product code to an AMI, it can't be removed. This is only valid when modifying the productCodes attribute.

" + } + }, + "ProductCodeValues": { + "base": null, + "refs": { + "ProductCode$ProductCodeType": "

The type of product code.

" + } + }, + "ProductDescriptionList": { + "base": null, + "refs": { + "DescribeSpotPriceHistoryRequest$ProductDescriptions": "

Filters the results by the specified basic product descriptions.

" + } + }, + "PropagatingVgw": { + "base": "

Describes a virtual private gateway propagating route.

", + "refs": { + "PropagatingVgwList$member": null + } + }, + "PropagatingVgwList": { + "base": null, + "refs": { + "RouteTable$PropagatingVgws": "

Any virtual private gateway (VGW) propagating routes.

" + } + }, + "ProvisionedBandwidth": { + "base": "

Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

", + "refs": { + "NatGateway$ProvisionedBandwidth": "

Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

" + } + }, + "PublicIpStringList": { + "base": null, + "refs": { + "DescribeAddressesRequest$PublicIps": "

[EC2-Classic] One or more Elastic IP addresses.

Default: Describes all your Elastic IP addresses.

" + } + }, + "Purchase": { + "base": "

Describes the result of the purchase.

", + "refs": { + "PurchaseSet$member": null + } + }, + "PurchaseHostReservationRequest": { + "base": null, + "refs": { + } + }, + "PurchaseHostReservationResult": { + "base": null, + "refs": { + } + }, + "PurchaseRequest": { + "base": "

Describes a request to purchase Scheduled Instances.

", + "refs": { + "PurchaseRequestSet$member": null + } + }, + "PurchaseRequestSet": { + "base": null, + "refs": { + "PurchaseScheduledInstancesRequest$PurchaseRequests": "

One or more purchase requests.

" + } + }, + "PurchaseReservedInstancesOfferingRequest": { + "base": "

Contains the parameters for PurchaseReservedInstancesOffering.

", + "refs": { + } + }, + "PurchaseReservedInstancesOfferingResult": { + "base": "

Contains the output of PurchaseReservedInstancesOffering.

", + "refs": { + } + }, + "PurchaseScheduledInstancesRequest": { + "base": "

Contains the parameters for PurchaseScheduledInstances.

", + "refs": { + } + }, + "PurchaseScheduledInstancesResult": { + "base": "

Contains the output of PurchaseScheduledInstances.

", + "refs": { + } + }, + "PurchaseSet": { + "base": null, + "refs": { + "GetHostReservationPurchasePreviewResult$Purchase": "

The purchase information of the Dedicated Host Reservation and the Dedicated Hosts associated with it.

", + "PurchaseHostReservationResult$Purchase": "

Describes the details of the purchase.

" + } + }, + "PurchasedScheduledInstanceSet": { + "base": null, + "refs": { + "PurchaseScheduledInstancesResult$ScheduledInstanceSet": "

Information about the Scheduled Instances.

" + } + }, + "RIProductDescription": { + "base": null, + "refs": { + "DescribeReservedInstancesOfferingsRequest$ProductDescription": "

The Reserved Instance product platform description. Instances that include (Amazon VPC) in the description are for use with Amazon VPC.

", + "ReservedInstances$ProductDescription": "

The Reserved Instance product platform description.

", + "ReservedInstancesOffering$ProductDescription": "

The Reserved Instance product platform description.

", + "SpotInstanceRequest$ProductDescription": "

The product description associated with the Spot instance.

", + "SpotPrice$ProductDescription": "

A general description of the AMI.

" + } + }, + "ReasonCodesList": { + "base": null, + "refs": { + "ReportInstanceStatusRequest$ReasonCodes": "

One or more reason codes that describes the health state of your instance.

  • instance-stuck-in-state: My instance is stuck in a state.

  • unresponsive: My instance is unresponsive.

  • not-accepting-credentials: My instance is not accepting my credentials.

  • password-not-available: A password is not available for my instance.

  • performance-network: My instance is experiencing performance problems which I believe are network related.

  • performance-instance-store: My instance is experiencing performance problems which I believe are related to the instance stores.

  • performance-ebs-volume: My instance is experiencing performance problems which I believe are related to an EBS volume.

  • performance-other: My instance is experiencing performance problems.

  • other: [explain using the description parameter]

" + } + }, + "RebootInstancesRequest": { + "base": "

Contains the parameters for RebootInstances.

", + "refs": { + } + }, + "RecurringCharge": { + "base": "

Describes a recurring charge.

", + "refs": { + "RecurringChargesList$member": null + } + }, + "RecurringChargeFrequency": { + "base": null, + "refs": { + "RecurringCharge$Frequency": "

The frequency of the recurring charge.

" + } + }, + "RecurringChargesList": { + "base": null, + "refs": { + "ReservedInstances$RecurringCharges": "

The recurring charge tag assigned to the resource.

", + "ReservedInstancesOffering$RecurringCharges": "

The recurring charge tag assigned to the resource.

" + } + }, + "Region": { + "base": "

Describes a region.

", + "refs": { + "RegionList$member": null + } + }, + "RegionList": { + "base": null, + "refs": { + "DescribeRegionsResult$Regions": "

Information about one or more regions.

" + } + }, + "RegionNameStringList": { + "base": null, + "refs": { + "DescribeRegionsRequest$RegionNames": "

The names of one or more regions.

" + } + }, + "RegisterImageRequest": { + "base": "

Contains the parameters for RegisterImage.

", + "refs": { + } + }, + "RegisterImageResult": { + "base": "

Contains the output of RegisterImage.

", + "refs": { + } + }, + "RejectVpcPeeringConnectionRequest": { + "base": "

Contains the parameters for RejectVpcPeeringConnection.

", + "refs": { + } + }, + "RejectVpcPeeringConnectionResult": { + "base": "

Contains the output of RejectVpcPeeringConnection.

", + "refs": { + } + }, + "ReleaseAddressRequest": { + "base": "

Contains the parameters for ReleaseAddress.

", + "refs": { + } + }, + "ReleaseHostsRequest": { + "base": "

Contains the parameters for ReleaseHosts.

", + "refs": { + } + }, + "ReleaseHostsResult": { + "base": "

Contains the output of ReleaseHosts.

", + "refs": { + } + }, + "ReplaceIamInstanceProfileAssociationRequest": { + "base": null, + "refs": { + } + }, + "ReplaceIamInstanceProfileAssociationResult": { + "base": null, + "refs": { + } + }, + "ReplaceNetworkAclAssociationRequest": { + "base": "

Contains the parameters for ReplaceNetworkAclAssociation.

", + "refs": { + } + }, + "ReplaceNetworkAclAssociationResult": { + "base": "

Contains the output of ReplaceNetworkAclAssociation.

", + "refs": { + } + }, + "ReplaceNetworkAclEntryRequest": { + "base": "

Contains the parameters for ReplaceNetworkAclEntry.

", + "refs": { + } + }, + "ReplaceRouteRequest": { + "base": "

Contains the parameters for ReplaceRoute.

", + "refs": { + } + }, + "ReplaceRouteTableAssociationRequest": { + "base": "

Contains the parameters for ReplaceRouteTableAssociation.

", + "refs": { + } + }, + "ReplaceRouteTableAssociationResult": { + "base": "

Contains the output of ReplaceRouteTableAssociation.

", + "refs": { + } + }, + "ReportInstanceReasonCodes": { + "base": null, + "refs": { + "ReasonCodesList$member": null + } + }, + "ReportInstanceStatusRequest": { + "base": "

Contains the parameters for ReportInstanceStatus.

", + "refs": { + } + }, + "ReportStatusType": { + "base": null, + "refs": { + "ReportInstanceStatusRequest$Status": "

The status of all instances listed.

" + } + }, + "RequestHostIdList": { + "base": null, + "refs": { + "DescribeHostsRequest$HostIds": "

The IDs of the Dedicated Hosts. The IDs are used for targeted instance launches.

", + "ModifyHostsRequest$HostIds": "

The host IDs of the Dedicated Hosts you want to modify.

", + "ReleaseHostsRequest$HostIds": "

The IDs of the Dedicated Hosts you want to release.

" + } + }, + "RequestHostIdSet": { + "base": null, + "refs": { + "GetHostReservationPurchasePreviewRequest$HostIdSet": "

The ID/s of the Dedicated Host/s that the reservation will be associated with.

", + "PurchaseHostReservationRequest$HostIdSet": "

The ID/s of the Dedicated Host/s that the reservation will be associated with.

" + } + }, + "RequestSpotFleetRequest": { + "base": "

Contains the parameters for RequestSpotFleet.

", + "refs": { + } + }, + "RequestSpotFleetResponse": { + "base": "

Contains the output of RequestSpotFleet.

", + "refs": { + } + }, + "RequestSpotInstancesRequest": { + "base": "

Contains the parameters for RequestSpotInstances.

", + "refs": { + } + }, + "RequestSpotInstancesResult": { + "base": "

Contains the output of RequestSpotInstances.

", + "refs": { + } + }, + "RequestSpotLaunchSpecification": { + "base": "

Describes the launch specification for an instance.

", + "refs": { + "RequestSpotInstancesRequest$LaunchSpecification": null + } + }, + "Reservation": { + "base": "

Describes a reservation.

", + "refs": { + "ReservationList$member": null + } + }, + "ReservationList": { + "base": null, + "refs": { + "DescribeInstancesResult$Reservations": "

Zero or more reservations.

" + } + }, + "ReservationState": { + "base": null, + "refs": { + "HostReservation$State": "

The state of the reservation.

" + } + }, + "ReservationValue": { + "base": "

The cost associated with the Reserved Instance.

", + "refs": { + "GetReservedInstancesExchangeQuoteResult$ReservedInstanceValueRollup": "

The cost associated with the Reserved Instance.

", + "GetReservedInstancesExchangeQuoteResult$TargetConfigurationValueRollup": "

The cost associated with the Reserved Instance.

", + "ReservedInstanceReservationValue$ReservationValue": "

The total value of the Convertible Reserved Instance that you are exchanging.

", + "TargetReservationValue$ReservationValue": "

The total value of the Convertible Reserved Instances that make up the exchange. This is the sum of the list value, remaining upfront price, and additional upfront cost of the exchange.

" + } + }, + "ReservedInstanceIdSet": { + "base": null, + "refs": { + "AcceptReservedInstancesExchangeQuoteRequest$ReservedInstanceIds": "

The IDs of the Convertible Reserved Instances to exchange for other Convertible Reserved Instances of the same or higher value.

", + "GetReservedInstancesExchangeQuoteRequest$ReservedInstanceIds": "

The IDs of the Convertible Reserved Instances to exchange.

" + } + }, + "ReservedInstanceLimitPrice": { + "base": "

Describes the limit price of a Reserved Instance offering.

", + "refs": { + "PurchaseReservedInstancesOfferingRequest$LimitPrice": "

Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.

" + } + }, + "ReservedInstanceReservationValue": { + "base": "

The total value of the Convertible Reserved Instance.

", + "refs": { + "ReservedInstanceReservationValueSet$member": null + } + }, + "ReservedInstanceReservationValueSet": { + "base": null, + "refs": { + "GetReservedInstancesExchangeQuoteResult$ReservedInstanceValueSet": "

The configuration of your Convertible Reserved Instances.

" + } + }, + "ReservedInstanceState": { + "base": null, + "refs": { + "ReservedInstances$State": "

The state of the Reserved Instance purchase.

" + } + }, + "ReservedInstances": { + "base": "

Describes a Reserved Instance.

", + "refs": { + "ReservedInstancesList$member": null + } + }, + "ReservedInstancesConfiguration": { + "base": "

Describes the configuration settings for the modified Reserved Instances.

", + "refs": { + "ReservedInstancesConfigurationList$member": null, + "ReservedInstancesModificationResult$TargetConfiguration": "

The target Reserved Instances configurations supplied as part of the modification request.

" + } + }, + "ReservedInstancesConfigurationList": { + "base": null, + "refs": { + "ModifyReservedInstancesRequest$TargetConfigurations": "

The configuration settings for the Reserved Instances to modify.

" + } + }, + "ReservedInstancesId": { + "base": "

Describes the ID of a Reserved Instance.

", + "refs": { + "ReservedIntancesIds$member": null + } + }, + "ReservedInstancesIdStringList": { + "base": null, + "refs": { + "DescribeReservedInstancesRequest$ReservedInstancesIds": "

One or more Reserved Instance IDs.

Default: Describes all your Reserved Instances, or only those otherwise specified.

", + "ModifyReservedInstancesRequest$ReservedInstancesIds": "

The IDs of the Reserved Instances to modify.

" + } + }, + "ReservedInstancesList": { + "base": null, + "refs": { + "DescribeReservedInstancesResult$ReservedInstances": "

A list of Reserved Instances.

" + } + }, + "ReservedInstancesListing": { + "base": "

Describes a Reserved Instance listing.

", + "refs": { + "ReservedInstancesListingList$member": null + } + }, + "ReservedInstancesListingList": { + "base": null, + "refs": { + "CancelReservedInstancesListingResult$ReservedInstancesListings": "

The Reserved Instance listing.

", + "CreateReservedInstancesListingResult$ReservedInstancesListings": "

Information about the Standard Reserved Instance listing.

", + "DescribeReservedInstancesListingsResult$ReservedInstancesListings": "

Information about the Reserved Instance listing.

" + } + }, + "ReservedInstancesModification": { + "base": "

Describes a Reserved Instance modification.

", + "refs": { + "ReservedInstancesModificationList$member": null + } + }, + "ReservedInstancesModificationIdStringList": { + "base": null, + "refs": { + "DescribeReservedInstancesModificationsRequest$ReservedInstancesModificationIds": "

IDs for the submitted modification request.

" + } + }, + "ReservedInstancesModificationList": { + "base": null, + "refs": { + "DescribeReservedInstancesModificationsResult$ReservedInstancesModifications": "

The Reserved Instance modification information.

" + } + }, + "ReservedInstancesModificationResult": { + "base": "

Describes the modification request/s.

", + "refs": { + "ReservedInstancesModificationResultList$member": null + } + }, + "ReservedInstancesModificationResultList": { + "base": null, + "refs": { + "ReservedInstancesModification$ModificationResults": "

Contains target configurations along with their corresponding new Reserved Instance IDs.

" + } + }, + "ReservedInstancesOffering": { + "base": "

Describes a Reserved Instance offering.

", + "refs": { + "ReservedInstancesOfferingList$member": null + } + }, + "ReservedInstancesOfferingIdStringList": { + "base": null, + "refs": { + "DescribeReservedInstancesOfferingsRequest$ReservedInstancesOfferingIds": "

One or more Reserved Instances offering IDs.

" + } + }, + "ReservedInstancesOfferingList": { + "base": null, + "refs": { + "DescribeReservedInstancesOfferingsResult$ReservedInstancesOfferings": "

A list of Reserved Instances offerings.

" + } + }, + "ReservedIntancesIds": { + "base": null, + "refs": { + "ReservedInstancesModification$ReservedInstancesIds": "

The IDs of one or more Reserved Instances.

" + } + }, + "ResetImageAttributeName": { + "base": null, + "refs": { + "ResetImageAttributeRequest$Attribute": "

The attribute to reset (currently you can only reset the launch permission attribute).

" + } + }, + "ResetImageAttributeRequest": { + "base": "

Contains the parameters for ResetImageAttribute.

", + "refs": { + } + }, + "ResetInstanceAttributeRequest": { + "base": "

Contains the parameters for ResetInstanceAttribute.

", + "refs": { + } + }, + "ResetNetworkInterfaceAttributeRequest": { + "base": "

Contains the parameters for ResetNetworkInterfaceAttribute.

", + "refs": { + } + }, + "ResetSnapshotAttributeRequest": { + "base": "

Contains the parameters for ResetSnapshotAttribute.

", + "refs": { + } + }, + "ResourceIdList": { + "base": null, + "refs": { + "CreateTagsRequest$Resources": "

The IDs of one or more resources to tag. For example, ami-1a2b3c4d.

", + "DeleteTagsRequest$Resources": "

The ID of the resource. For example, ami-1a2b3c4d. You can specify more than one resource ID.

" + } + }, + "ResourceType": { + "base": null, + "refs": { + "TagDescription$ResourceType": "

The resource type.

" + } + }, + "ResponseHostIdList": { + "base": null, + "refs": { + "AllocateHostsResult$HostIds": "

The ID of the allocated Dedicated Host. This is used when you want to launch an instance onto a specific host.

", + "ModifyHostsResult$Successful": "

The IDs of the Dedicated Hosts that were successfully modified.

", + "ReleaseHostsResult$Successful": "

The IDs of the Dedicated Hosts that were successfully released.

" + } + }, + "ResponseHostIdSet": { + "base": null, + "refs": { + "HostReservation$HostIdSet": "

The IDs of the Dedicated Hosts associated with the reservation.

", + "Purchase$HostIdSet": "

The IDs of the Dedicated Hosts associated with the reservation.

" + } + }, + "RestorableByStringList": { + "base": null, + "refs": { + "DescribeSnapshotsRequest$RestorableByUserIds": "

One or more AWS accounts IDs that can create volumes from the snapshot.

" + } + }, + "RestoreAddressToClassicRequest": { + "base": "

Contains the parameters for RestoreAddressToClassic.

", + "refs": { + } + }, + "RestoreAddressToClassicResult": { + "base": "

Contains the output of RestoreAddressToClassic.

", + "refs": { + } + }, + "RevokeSecurityGroupEgressRequest": { + "base": "

Contains the parameters for RevokeSecurityGroupEgress.

", + "refs": { + } + }, + "RevokeSecurityGroupIngressRequest": { + "base": "

Contains the parameters for RevokeSecurityGroupIngress.

", + "refs": { + } + }, + "Route": { + "base": "

Describes a route in a route table.

", + "refs": { + "RouteList$member": null + } + }, + "RouteList": { + "base": null, + "refs": { + "RouteTable$Routes": "

The routes in the route table.

" + } + }, + "RouteOrigin": { + "base": null, + "refs": { + "Route$Origin": "

Describes how the route was created.

  • CreateRouteTable - The route was automatically created when the route table was created.

  • CreateRoute - The route was manually added to the route table.

  • EnableVgwRoutePropagation - The route was propagated by route propagation.

" + } + }, + "RouteState": { + "base": null, + "refs": { + "Route$State": "

The state of the route. The blackhole state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).

" + } + }, + "RouteTable": { + "base": "

Describes a route table.

", + "refs": { + "CreateRouteTableResult$RouteTable": "

Information about the route table.

", + "RouteTableList$member": null + } + }, + "RouteTableAssociation": { + "base": "

Describes an association between a route table and a subnet.

", + "refs": { + "RouteTableAssociationList$member": null + } + }, + "RouteTableAssociationList": { + "base": null, + "refs": { + "RouteTable$Associations": "

The associations between the route table and one or more subnets.

" + } + }, + "RouteTableList": { + "base": null, + "refs": { + "DescribeRouteTablesResult$RouteTables": "

Information about one or more route tables.

" + } + }, + "RuleAction": { + "base": null, + "refs": { + "CreateNetworkAclEntryRequest$RuleAction": "

Indicates whether to allow or deny the traffic that matches the rule.

", + "NetworkAclEntry$RuleAction": "

Indicates whether to allow or deny the traffic that matches the rule.

", + "ReplaceNetworkAclEntryRequest$RuleAction": "

Indicates whether to allow or deny the traffic that matches the rule.

" + } + }, + "RunInstancesMonitoringEnabled": { + "base": "

Describes the monitoring of an instance.

", + "refs": { + "LaunchSpecification$Monitoring": null, + "RequestSpotLaunchSpecification$Monitoring": null, + "RunInstancesRequest$Monitoring": "

The monitoring for the instance.

" + } + }, + "RunInstancesRequest": { + "base": "

Contains the parameters for RunInstances.

", + "refs": { + } + }, + "RunScheduledInstancesRequest": { + "base": "

Contains the parameters for RunScheduledInstances.

", + "refs": { + } + }, + "RunScheduledInstancesResult": { + "base": "

Contains the output of RunScheduledInstances.

", + "refs": { + } + }, + "S3Storage": { + "base": "

Describes the storage parameters for S3 and S3 buckets for an instance store-backed AMI.

", + "refs": { + "Storage$S3": "

An Amazon S3 storage location.

" + } + }, + "ScheduledInstance": { + "base": "

Describes a Scheduled Instance.

", + "refs": { + "PurchasedScheduledInstanceSet$member": null, + "ScheduledInstanceSet$member": null + } + }, + "ScheduledInstanceAvailability": { + "base": "

Describes a schedule that is available for your Scheduled Instances.

", + "refs": { + "ScheduledInstanceAvailabilitySet$member": null + } + }, + "ScheduledInstanceAvailabilitySet": { + "base": null, + "refs": { + "DescribeScheduledInstanceAvailabilityResult$ScheduledInstanceAvailabilitySet": "

Information about the available Scheduled Instances.

" + } + }, + "ScheduledInstanceIdRequestSet": { + "base": null, + "refs": { + "DescribeScheduledInstancesRequest$ScheduledInstanceIds": "

One or more Scheduled Instance IDs.

" + } + }, + "ScheduledInstanceRecurrence": { + "base": "

Describes the recurring schedule for a Scheduled Instance.

", + "refs": { + "ScheduledInstance$Recurrence": "

The schedule recurrence.

", + "ScheduledInstanceAvailability$Recurrence": "

The schedule recurrence.

" + } + }, + "ScheduledInstanceRecurrenceRequest": { + "base": "

Describes the recurring schedule for a Scheduled Instance.

", + "refs": { + "DescribeScheduledInstanceAvailabilityRequest$Recurrence": "

The schedule recurrence.

" + } + }, + "ScheduledInstanceSet": { + "base": null, + "refs": { + "DescribeScheduledInstancesResult$ScheduledInstanceSet": "

Information about the Scheduled Instances.

" + } + }, + "ScheduledInstancesBlockDeviceMapping": { + "base": "

Describes a block device mapping for a Scheduled Instance.

", + "refs": { + "ScheduledInstancesBlockDeviceMappingSet$member": null + } + }, + "ScheduledInstancesBlockDeviceMappingSet": { + "base": null, + "refs": { + "ScheduledInstancesLaunchSpecification$BlockDeviceMappings": "

One or more block device mapping entries.

" + } + }, + "ScheduledInstancesEbs": { + "base": "

Describes an EBS volume for a Scheduled Instance.

", + "refs": { + "ScheduledInstancesBlockDeviceMapping$Ebs": "

Parameters used to set up EBS volumes automatically when the instance is launched.

" + } + }, + "ScheduledInstancesIamInstanceProfile": { + "base": "

Describes an IAM instance profile for a Scheduled Instance.

", + "refs": { + "ScheduledInstancesLaunchSpecification$IamInstanceProfile": "

The IAM instance profile.

" + } + }, + "ScheduledInstancesIpv6Address": { + "base": "

Describes an IPv6 address.

", + "refs": { + "ScheduledInstancesIpv6AddressList$member": null + } + }, + "ScheduledInstancesIpv6AddressList": { + "base": null, + "refs": { + "ScheduledInstancesNetworkInterface$Ipv6Addresses": "

One or more specific IPv6 addresses from the subnet range.

" + } + }, + "ScheduledInstancesLaunchSpecification": { + "base": "

Describes the launch specification for a Scheduled Instance.

If you are launching the Scheduled Instance in EC2-VPC, you must specify the ID of the subnet. You can specify the subnet using either SubnetId or NetworkInterface.

", + "refs": { + "RunScheduledInstancesRequest$LaunchSpecification": "

The launch specification. You must match the instance type, Availability Zone, network, and platform of the schedule that you purchased.

" + } + }, + "ScheduledInstancesMonitoring": { + "base": "

Describes whether monitoring is enabled for a Scheduled Instance.

", + "refs": { + "ScheduledInstancesLaunchSpecification$Monitoring": "

Enable or disable monitoring for the instances.

" + } + }, + "ScheduledInstancesNetworkInterface": { + "base": "

Describes a network interface for a Scheduled Instance.

", + "refs": { + "ScheduledInstancesNetworkInterfaceSet$member": null + } + }, + "ScheduledInstancesNetworkInterfaceSet": { + "base": null, + "refs": { + "ScheduledInstancesLaunchSpecification$NetworkInterfaces": "

One or more network interfaces.

" + } + }, + "ScheduledInstancesPlacement": { + "base": "

Describes the placement for a Scheduled Instance.

", + "refs": { + "ScheduledInstancesLaunchSpecification$Placement": "

The placement information.

" + } + }, + "ScheduledInstancesPrivateIpAddressConfig": { + "base": "

Describes a private IPv4 address for a Scheduled Instance.

", + "refs": { + "PrivateIpAddressConfigSet$member": null + } + }, + "ScheduledInstancesSecurityGroupIdSet": { + "base": null, + "refs": { + "ScheduledInstancesLaunchSpecification$SecurityGroupIds": "

The IDs of one or more security groups.

", + "ScheduledInstancesNetworkInterface$Groups": "

The IDs of one or more security groups.

" + } + }, + "SecurityGroup": { + "base": "

Describes a security group

", + "refs": { + "SecurityGroupList$member": null + } + }, + "SecurityGroupIdStringList": { + "base": null, + "refs": { + "CreateNetworkInterfaceRequest$Groups": "

The IDs of one or more security groups.

", + "ImportInstanceLaunchSpecification$GroupIds": "

One or more security group IDs.

", + "InstanceNetworkInterfaceSpecification$Groups": "

The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.

", + "ModifyNetworkInterfaceAttributeRequest$Groups": "

Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.

", + "RunInstancesRequest$SecurityGroupIds": "

One or more security group IDs. You can create a security group using CreateSecurityGroup.

Default: Amazon EC2 uses the default security group.

" + } + }, + "SecurityGroupList": { + "base": null, + "refs": { + "DescribeSecurityGroupsResult$SecurityGroups": "

Information about one or more security groups.

" + } + }, + "SecurityGroupReference": { + "base": "

Describes a VPC with a security group that references your security group.

", + "refs": { + "SecurityGroupReferences$member": null + } + }, + "SecurityGroupReferences": { + "base": null, + "refs": { + "DescribeSecurityGroupReferencesResult$SecurityGroupReferenceSet": "

Information about the VPCs with the referencing security groups.

" + } + }, + "SecurityGroupStringList": { + "base": null, + "refs": { + "ImportInstanceLaunchSpecification$GroupNames": "

One or more security group names.

", + "RunInstancesRequest$SecurityGroups": "

[EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead.

Default: Amazon EC2 uses the default security group.

" + } + }, + "ShutdownBehavior": { + "base": null, + "refs": { + "ImportInstanceLaunchSpecification$InstanceInitiatedShutdownBehavior": "

Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

", + "RunInstancesRequest$InstanceInitiatedShutdownBehavior": "

Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

Default: stop

" + } + }, + "SlotDateTimeRangeRequest": { + "base": "

Describes the time period for a Scheduled Instance to start its first schedule. The time period must span less than one day.

", + "refs": { + "DescribeScheduledInstanceAvailabilityRequest$FirstSlotStartTimeRange": "

The time period for the first schedule to start.

" + } + }, + "SlotStartTimeRangeRequest": { + "base": "

Describes the time period for a Scheduled Instance to start its first schedule.

", + "refs": { + "DescribeScheduledInstancesRequest$SlotStartTimeRange": "

The time period for the first schedule to start.

" + } + }, + "Snapshot": { + "base": "

Describes a snapshot.

", + "refs": { + "SnapshotList$member": null + } + }, + "SnapshotAttributeName": { + "base": null, + "refs": { + "DescribeSnapshotAttributeRequest$Attribute": "

The snapshot attribute you would like to view.

", + "ModifySnapshotAttributeRequest$Attribute": "

The snapshot attribute to modify.

Only volume creation permissions may be modified at the customer level.

", + "ResetSnapshotAttributeRequest$Attribute": "

The attribute to reset. Currently, only the attribute for permission to create volumes can be reset.

" + } + }, + "SnapshotDetail": { + "base": "

Describes the snapshot created from the imported disk.

", + "refs": { + "SnapshotDetailList$member": null + } + }, + "SnapshotDetailList": { + "base": null, + "refs": { + "ImportImageResult$SnapshotDetails": "

Information about the snapshots.

", + "ImportImageTask$SnapshotDetails": "

Information about the snapshots.

" + } + }, + "SnapshotDiskContainer": { + "base": "

The disk container object for the import snapshot request.

", + "refs": { + "ImportSnapshotRequest$DiskContainer": "

Information about the disk container.

" + } + }, + "SnapshotIdStringList": { + "base": null, + "refs": { + "DescribeSnapshotsRequest$SnapshotIds": "

One or more snapshot IDs.

Default: Describes snapshots for which you have launch permissions.

" + } + }, + "SnapshotList": { + "base": null, + "refs": { + "DescribeSnapshotsResult$Snapshots": "

Information about the snapshots.

" + } + }, + "SnapshotState": { + "base": null, + "refs": { + "Snapshot$State": "

The snapshot state.

" + } + }, + "SnapshotTaskDetail": { + "base": "

Details about the import snapshot task.

", + "refs": { + "ImportSnapshotResult$SnapshotTaskDetail": "

Information about the import snapshot task.

", + "ImportSnapshotTask$SnapshotTaskDetail": "

Describes an import snapshot task.

" + } + }, + "SpotDatafeedSubscription": { + "base": "

Describes the data feed for a Spot instance.

", + "refs": { + "CreateSpotDatafeedSubscriptionResult$SpotDatafeedSubscription": "

The Spot instance data feed subscription.

", + "DescribeSpotDatafeedSubscriptionResult$SpotDatafeedSubscription": "

The Spot instance data feed subscription.

" + } + }, + "SpotFleetLaunchSpecification": { + "base": "

Describes the launch specification for one or more Spot instances.

", + "refs": { + "LaunchSpecsList$member": null + } + }, + "SpotFleetMonitoring": { + "base": "

Describes whether monitoring is enabled.

", + "refs": { + "SpotFleetLaunchSpecification$Monitoring": "

Enable or disable monitoring for the instances.

" + } + }, + "SpotFleetRequestConfig": { + "base": "

Describes a Spot fleet request.

", + "refs": { + "SpotFleetRequestConfigSet$member": null + } + }, + "SpotFleetRequestConfigData": { + "base": "

Describes the configuration of a Spot fleet request.

", + "refs": { + "RequestSpotFleetRequest$SpotFleetRequestConfig": "

The configuration for the Spot fleet request.

", + "SpotFleetRequestConfig$SpotFleetRequestConfig": "

Information about the configuration of the Spot fleet request.

" + } + }, + "SpotFleetRequestConfigSet": { + "base": null, + "refs": { + "DescribeSpotFleetRequestsResponse$SpotFleetRequestConfigs": "

Information about the configuration of your Spot fleet.

" + } + }, + "SpotInstanceRequest": { + "base": "

Describes a Spot instance request.

", + "refs": { + "SpotInstanceRequestList$member": null + } + }, + "SpotInstanceRequestIdList": { + "base": null, + "refs": { + "CancelSpotInstanceRequestsRequest$SpotInstanceRequestIds": "

One or more Spot instance request IDs.

", + "DescribeSpotInstanceRequestsRequest$SpotInstanceRequestIds": "

One or more Spot instance request IDs.

" + } + }, + "SpotInstanceRequestList": { + "base": null, + "refs": { + "DescribeSpotInstanceRequestsResult$SpotInstanceRequests": "

One or more Spot instance requests.

", + "RequestSpotInstancesResult$SpotInstanceRequests": "

One or more Spot instance requests.

" + } + }, + "SpotInstanceState": { + "base": null, + "refs": { + "SpotInstanceRequest$State": "

The state of the Spot instance request. Spot bid status information can help you track your Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.

" + } + }, + "SpotInstanceStateFault": { + "base": "

Describes a Spot instance state change.

", + "refs": { + "SpotDatafeedSubscription$Fault": "

The fault codes for the Spot instance request, if any.

", + "SpotInstanceRequest$Fault": "

The fault codes for the Spot instance request, if any.

" + } + }, + "SpotInstanceStatus": { + "base": "

Describes the status of a Spot instance request.

", + "refs": { + "SpotInstanceRequest$Status": "

The status code and status message describing the Spot instance request.

" + } + }, + "SpotInstanceType": { + "base": null, + "refs": { + "RequestSpotInstancesRequest$Type": "

The Spot instance request type.

Default: one-time

", + "SpotInstanceRequest$Type": "

The Spot instance request type.

" + } + }, + "SpotPlacement": { + "base": "

Describes Spot instance placement.

", + "refs": { + "LaunchSpecification$Placement": "

The placement information for the instance.

", + "RequestSpotLaunchSpecification$Placement": "

The placement information for the instance.

", + "SpotFleetLaunchSpecification$Placement": "

The placement information.

" + } + }, + "SpotPrice": { + "base": "

Describes the maximum hourly price (bid) for any Spot instance launched to fulfill the request.

", + "refs": { + "SpotPriceHistoryList$member": null + } + }, + "SpotPriceHistoryList": { + "base": null, + "refs": { + "DescribeSpotPriceHistoryResult$SpotPriceHistory": "

The historical Spot prices.

" + } + }, + "StaleIpPermission": { + "base": "

Describes a stale rule in a security group.

", + "refs": { + "StaleIpPermissionSet$member": null + } + }, + "StaleIpPermissionSet": { + "base": null, + "refs": { + "StaleSecurityGroup$StaleIpPermissions": "

Information about the stale inbound rules in the security group.

", + "StaleSecurityGroup$StaleIpPermissionsEgress": "

Information about the stale outbound rules in the security group.

" + } + }, + "StaleSecurityGroup": { + "base": "

Describes a stale security group (a security group that contains stale rules).

", + "refs": { + "StaleSecurityGroupSet$member": null + } + }, + "StaleSecurityGroupSet": { + "base": null, + "refs": { + "DescribeStaleSecurityGroupsResult$StaleSecurityGroupSet": "

Information about the stale security groups.

" + } + }, + "StartInstancesRequest": { + "base": "

Contains the parameters for StartInstances.

", + "refs": { + } + }, + "StartInstancesResult": { + "base": "

Contains the output of StartInstances.

", + "refs": { + } + }, + "State": { + "base": null, + "refs": { + "VpcEndpoint$State": "

The state of the VPC endpoint.

" + } + }, + "StateReason": { + "base": "

Describes a state change.

", + "refs": { + "Image$StateReason": "

The reason for the state change.

", + "Instance$StateReason": "

The reason for the most recent state transition.

" + } + }, + "Status": { + "base": null, + "refs": { + "MoveAddressToVpcResult$Status": "

The status of the move of the IP address.

", + "RestoreAddressToClassicResult$Status": "

The move status for the IP address.

" + } + }, + "StatusName": { + "base": null, + "refs": { + "InstanceStatusDetails$Name": "

The type of instance status.

" + } + }, + "StatusType": { + "base": null, + "refs": { + "InstanceStatusDetails$Status": "

The status.

" + } + }, + "StopInstancesRequest": { + "base": "

Contains the parameters for StopInstances.

", + "refs": { + } + }, + "StopInstancesResult": { + "base": "

Contains the output of StopInstances.

", + "refs": { + } + }, + "Storage": { + "base": "

Describes the storage location for an instance store-backed AMI.

", + "refs": { + "BundleInstanceRequest$Storage": "

The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.

", + "BundleTask$Storage": "

The Amazon S3 storage locations.

" + } + }, + "String": { + "base": null, + "refs": { + "AcceptReservedInstancesExchangeQuoteResult$ExchangeId": "

The ID of the successful exchange.

", + "AcceptVpcPeeringConnectionRequest$VpcPeeringConnectionId": "

The ID of the VPC peering connection.

", + "AccountAttribute$AttributeName": "

The name of the account attribute.

", + "AccountAttributeValue$AttributeValue": "

The value of the attribute.

", + "ActiveInstance$InstanceType": "

The instance type.

", + "ActiveInstance$InstanceId": "

The ID of the instance.

", + "ActiveInstance$SpotInstanceRequestId": "

The ID of the Spot instance request.

", + "Address$InstanceId": "

The ID of the instance that the address is associated with (if any).

", + "Address$PublicIp": "

The Elastic IP address.

", + "Address$AllocationId": "

The ID representing the allocation of the address for use with EC2-VPC.

", + "Address$AssociationId": "

The ID representing the association of the address with an instance in a VPC.

", + "Address$NetworkInterfaceId": "

The ID of the network interface.

", + "Address$NetworkInterfaceOwnerId": "

The ID of the AWS account that owns the network interface.

", + "Address$PrivateIpAddress": "

The private IP address associated with the Elastic IP address.

", + "AllocateAddressResult$PublicIp": "

The Elastic IP address.

", + "AllocateAddressResult$AllocationId": "

[EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic IP address for use with instances in a VPC.

", + "AllocateHostsRequest$ClientToken": "

Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

", + "AllocateHostsRequest$InstanceType": "

Specify the instance type that you want your Dedicated Hosts to be configured for. When you specify the instance type, that is the only instance type that you can launch onto that host.

", + "AllocateHostsRequest$AvailabilityZone": "

The Availability Zone for the Dedicated Hosts.

", + "AllocationIdList$member": null, + "AssignIpv6AddressesRequest$NetworkInterfaceId": "

The ID of the network interface.

", + "AssignIpv6AddressesResult$NetworkInterfaceId": "

The ID of the network interface.

", + "AssignPrivateIpAddressesRequest$NetworkInterfaceId": "

The ID of the network interface.

", + "AssociateAddressRequest$InstanceId": "

The ID of the instance. This is required for EC2-Classic. For EC2-VPC, you can specify either the instance ID or the network interface ID, but not both. The operation fails if you specify an instance ID unless exactly one network interface is attached.

", + "AssociateAddressRequest$PublicIp": "

The Elastic IP address. This is required for EC2-Classic.

", + "AssociateAddressRequest$AllocationId": "

[EC2-VPC] The allocation ID. This is required for EC2-VPC.

", + "AssociateAddressRequest$NetworkInterfaceId": "

[EC2-VPC] The ID of the network interface. If the instance has more than one network interface, you must specify a network interface ID.

", + "AssociateAddressRequest$PrivateIpAddress": "

[EC2-VPC] The primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.

", + "AssociateAddressResult$AssociationId": "

[EC2-VPC] The ID that represents the association of the Elastic IP address with an instance.

", + "AssociateDhcpOptionsRequest$DhcpOptionsId": "

The ID of the DHCP options set, or default to associate no DHCP options with the VPC.

", + "AssociateDhcpOptionsRequest$VpcId": "

The ID of the VPC.

", + "AssociateIamInstanceProfileRequest$InstanceId": "

The ID of the instance.

", + "AssociateRouteTableRequest$SubnetId": "

The ID of the subnet.

", + "AssociateRouteTableRequest$RouteTableId": "

The ID of the route table.

", + "AssociateRouteTableResult$AssociationId": "

The route table association ID (needed to disassociate the route table).

", + "AssociateSubnetCidrBlockRequest$SubnetId": "

The ID of your subnet.

", + "AssociateSubnetCidrBlockRequest$Ipv6CidrBlock": "

The IPv6 CIDR block for your subnet. The subnet must have a /64 prefix length.

", + "AssociateSubnetCidrBlockResult$SubnetId": "

The ID of the subnet.

", + "AssociateVpcCidrBlockRequest$VpcId": "

The ID of the VPC.

", + "AssociateVpcCidrBlockResult$VpcId": "

The ID of the VPC.

", + "AssociationIdList$member": null, + "AttachClassicLinkVpcRequest$InstanceId": "

The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.

", + "AttachClassicLinkVpcRequest$VpcId": "

The ID of a ClassicLink-enabled VPC.

", + "AttachInternetGatewayRequest$InternetGatewayId": "

The ID of the Internet gateway.

", + "AttachInternetGatewayRequest$VpcId": "

The ID of the VPC.

", + "AttachNetworkInterfaceRequest$NetworkInterfaceId": "

The ID of the network interface.

", + "AttachNetworkInterfaceRequest$InstanceId": "

The ID of the instance.

", + "AttachNetworkInterfaceResult$AttachmentId": "

The ID of the network interface attachment.

", + "AttachVolumeRequest$VolumeId": "

The ID of the EBS volume. The volume and instance must be within the same Availability Zone.

", + "AttachVolumeRequest$InstanceId": "

The ID of the instance.

", + "AttachVolumeRequest$Device": "

The device name to expose to the instance (for example, /dev/sdh or xvdh).

", + "AttachVpnGatewayRequest$VpnGatewayId": "

The ID of the virtual private gateway.

", + "AttachVpnGatewayRequest$VpcId": "

The ID of the VPC.

", + "AttributeValue$Value": "

The attribute value. Note that the value is case-sensitive.

", + "AuthorizeSecurityGroupEgressRequest$GroupId": "

The ID of the security group.

", + "AuthorizeSecurityGroupEgressRequest$SourceSecurityGroupName": "

The name of a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.

", + "AuthorizeSecurityGroupEgressRequest$SourceSecurityGroupOwnerId": "

The AWS account number for a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.

", + "AuthorizeSecurityGroupEgressRequest$IpProtocol": "

The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions instead.

", + "AuthorizeSecurityGroupEgressRequest$CidrIp": "

The CIDR IPv4 address range. We recommend that you specify the CIDR range in a set of IP permissions instead.

", + "AuthorizeSecurityGroupIngressRequest$GroupName": "

[EC2-Classic, default VPC] The name of the security group.

", + "AuthorizeSecurityGroupIngressRequest$GroupId": "

The ID of the security group. Required for a nondefault VPC.

", + "AuthorizeSecurityGroupIngressRequest$SourceSecurityGroupName": "

[EC2-Classic, default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead. For EC2-VPC, the source security group must be in the same VPC.

", + "AuthorizeSecurityGroupIngressRequest$SourceSecurityGroupOwnerId": "

[EC2-Classic] The AWS account number for the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead.

", + "AuthorizeSecurityGroupIngressRequest$IpProtocol": "

The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers). (VPC only) Use -1 to specify all protocols. If you specify -1, or a protocol number other than tcp, udp, icmp, or 58 (ICMPv6), traffic on all ports is allowed, regardless of any ports you specify. For tcp, udp, and icmp, you must specify a port range. For protocol 58 (ICMPv6), you can optionally specify a port range; if you don't, traffic for all types and codes is allowed.

", + "AuthorizeSecurityGroupIngressRequest$CidrIp": "

The CIDR IPv4 address range. You can't specify this parameter when specifying a source security group.

", + "AvailabilityZone$ZoneName": "

The name of the Availability Zone.

", + "AvailabilityZone$RegionName": "

The name of the region.

", + "AvailabilityZoneMessage$Message": "

The message about the Availability Zone.

", + "BillingProductList$member": null, + "BlockDeviceMapping$VirtualName": "

The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.

Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.

", + "BlockDeviceMapping$DeviceName": "

The device name exposed to the instance (for example, /dev/sdh or xvdh).

", + "BlockDeviceMapping$NoDevice": "

Suppresses the specified device included in the block device mapping of the AMI.

", + "BundleIdStringList$member": null, + "BundleInstanceRequest$InstanceId": "

The ID of the instance to bundle.

Type: String

Default: None

Required: Yes

", + "BundleTask$InstanceId": "

The ID of the instance associated with this bundle task.

", + "BundleTask$BundleId": "

The ID of the bundle task.

", + "BundleTask$Progress": "

The level of task completion, as a percent (for example, 20%).

", + "BundleTaskError$Code": "

The error code.

", + "BundleTaskError$Message": "

The error message.

", + "CancelBundleTaskRequest$BundleId": "

The ID of the bundle task.

", + "CancelConversionRequest$ConversionTaskId": "

The ID of the conversion task.

", + "CancelConversionRequest$ReasonMessage": "

The reason for canceling the conversion task.

", + "CancelExportTaskRequest$ExportTaskId": "

The ID of the export task. This is the ID returned by CreateInstanceExportTask.

", + "CancelImportTaskRequest$ImportTaskId": "

The ID of the import image or import snapshot task to be canceled.

", + "CancelImportTaskRequest$CancelReason": "

The reason for canceling the task.

", + "CancelImportTaskResult$ImportTaskId": "

The ID of the task being canceled.

", + "CancelImportTaskResult$State": "

The current state of the task being canceled.

", + "CancelImportTaskResult$PreviousState": "

The current state of the task being canceled.

", + "CancelReservedInstancesListingRequest$ReservedInstancesListingId": "

The ID of the Reserved Instance listing.

", + "CancelSpotFleetRequestsError$Message": "

The description for the error code.

", + "CancelSpotFleetRequestsErrorItem$SpotFleetRequestId": "

The ID of the Spot fleet request.

", + "CancelSpotFleetRequestsSuccessItem$SpotFleetRequestId": "

The ID of the Spot fleet request.

", + "CancelledSpotInstanceRequest$SpotInstanceRequestId": "

The ID of the Spot instance request.

", + "ClassicLinkDnsSupport$VpcId": "

The ID of the VPC.

", + "ClassicLinkInstance$InstanceId": "

The ID of the instance.

", + "ClassicLinkInstance$VpcId": "

The ID of the VPC.

", + "ClientData$Comment": "

A user-defined comment about the disk upload.

", + "ConfirmProductInstanceRequest$ProductCode": "

The product code. This must be a product code that you own.

", + "ConfirmProductInstanceRequest$InstanceId": "

The ID of the instance.

", + "ConfirmProductInstanceResult$OwnerId": "

The AWS account ID of the instance owner. This is only present if the product code is attached to the instance.

", + "ConversionIdStringList$member": null, + "ConversionTask$ConversionTaskId": "

The ID of the conversion task.

", + "ConversionTask$ExpirationTime": "

The time when the task expires. If the upload isn't complete before the expiration time, we automatically cancel the task.

", + "ConversionTask$StatusMessage": "

The status message related to the conversion task.

", + "CopyImageRequest$SourceRegion": "

The name of the region that contains the AMI to copy.

", + "CopyImageRequest$SourceImageId": "

The ID of the AMI to copy.

", + "CopyImageRequest$Name": "

The name of the new AMI in the destination region.

", + "CopyImageRequest$Description": "

A description for the new AMI in the destination region.

", + "CopyImageRequest$ClientToken": "

Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

", + "CopyImageRequest$KmsKeyId": "

The full ARN of the AWS Key Management Service (AWS KMS) CMK to use when encrypting the snapshots of an image during a copy operation. This parameter is only required if you want to use a non-default CMK; if this parameter is not specified, the default CMK for EBS is used. The ARN contains the arn:aws:kms namespace, followed by the region of the CMK, the AWS account ID of the CMK owner, the key namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. The specified CMK must exist in the region that the snapshot is being copied to. If a KmsKeyId is specified, the Encrypted flag must also be set.

", + "CopyImageResult$ImageId": "

The ID of the new AMI.

", + "CopySnapshotRequest$SourceRegion": "

The ID of the region that contains the snapshot to be copied.

", + "CopySnapshotRequest$SourceSnapshotId": "

The ID of the EBS snapshot to copy.

", + "CopySnapshotRequest$Description": "

A description for the EBS snapshot.

", + "CopySnapshotRequest$DestinationRegion": "

The destination region to use in the PresignedUrl parameter of a snapshot copy operation. This parameter is only valid for specifying the destination region in a PresignedUrl parameter, where it is required.

CopySnapshot sends the snapshot copy to the regional endpoint that you send the HTTP request to, such as ec2.us-east-1.amazonaws.com (in the AWS CLI, this is specified with the --region parameter or the default region in your AWS configuration file).

", + "CopySnapshotRequest$PresignedUrl": "

The pre-signed URL that facilitates copying an encrypted snapshot. This parameter is only required when copying an encrypted snapshot with the Amazon EC2 Query API; it is available as an optional parameter in all other cases. The PresignedUrl should use the snapshot source endpoint, the CopySnapshot action, and include the SourceRegion, SourceSnapshotId, and DestinationRegion parameters. The PresignedUrl must be signed using AWS Signature Version 4. Because EBS snapshots are stored in Amazon S3, the signing algorithm for this parameter uses the same logic that is described in Authenticating Requests by Using Query Parameters (AWS Signature Version 4) in the Amazon Simple Storage Service API Reference. An invalid or improperly signed PresignedUrl will cause the copy operation to fail asynchronously, and the snapshot will move to an error state.

", + "CopySnapshotRequest$KmsKeyId": "

The full ARN of the AWS Key Management Service (AWS KMS) CMK to use when creating the snapshot copy. This parameter is only required if you want to use a non-default CMK; if this parameter is not specified, the default CMK for EBS is used. The ARN contains the arn:aws:kms namespace, followed by the region of the CMK, the AWS account ID of the CMK owner, the key namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. The specified CMK must exist in the region that the snapshot is being copied to. If a KmsKeyId is specified, the Encrypted flag must also be set.

", + "CopySnapshotResult$SnapshotId": "

The ID of the new snapshot.

", + "CreateCustomerGatewayRequest$PublicIp": "

The Internet-routable IP address for the customer gateway's outside interface. The address must be static.

", + "CreateEgressOnlyInternetGatewayRequest$VpcId": "

The ID of the VPC for which to create the egress-only Internet gateway.

", + "CreateEgressOnlyInternetGatewayRequest$ClientToken": "

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

", + "CreateEgressOnlyInternetGatewayResult$ClientToken": "

Unique, case-sensitive identifier you provide to ensure the idempotency of the request.

", + "CreateFlowLogsRequest$LogGroupName": "

The name of the CloudWatch log group.

", + "CreateFlowLogsRequest$DeliverLogsPermissionArn": "

The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.

", + "CreateFlowLogsRequest$ClientToken": "

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

", + "CreateFlowLogsResult$ClientToken": "

Unique, case-sensitive identifier you provide to ensure the idempotency of the request.

", + "CreateImageRequest$InstanceId": "

The ID of the instance.

", + "CreateImageRequest$Name": "

A name for the new image.

Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)

", + "CreateImageRequest$Description": "

A description for the new image.

", + "CreateImageResult$ImageId": "

The ID of the new AMI.

", + "CreateInstanceExportTaskRequest$Description": "

A description for the conversion task or the resource being exported. The maximum length is 255 bytes.

", + "CreateInstanceExportTaskRequest$InstanceId": "

The ID of the instance.

", + "CreateKeyPairRequest$KeyName": "

A unique name for the key pair.

Constraints: Up to 255 ASCII characters

", + "CreateNatGatewayRequest$SubnetId": "

The subnet in which to create the NAT gateway.

", + "CreateNatGatewayRequest$AllocationId": "

The allocation ID of an Elastic IP address to associate with the NAT gateway. If the Elastic IP address is associated with another resource, you must first disassociate it.

", + "CreateNatGatewayRequest$ClientToken": "

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

Constraint: Maximum 64 ASCII characters.

", + "CreateNatGatewayResult$ClientToken": "

Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client token was provided in the request.

", + "CreateNetworkAclEntryRequest$NetworkAclId": "

The ID of the network ACL.

", + "CreateNetworkAclEntryRequest$Protocol": "

The protocol. A value of -1 or all means all protocols. If you specify all, -1, or a protocol number other than tcp, udp, or icmp, traffic on all ports is allowed, regardless of any ports or ICMP types or codes you specify. If you specify protocol 58 (ICMPv6) and specify an IPv4 CIDR block, traffic for all ICMP types and codes allowed, regardless of any that you specify. If you specify protocol 58 (ICMPv6) and specify an IPv6 CIDR block, you must specify an ICMP type and code.

", + "CreateNetworkAclEntryRequest$CidrBlock": "

The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24).

", + "CreateNetworkAclEntryRequest$Ipv6CidrBlock": "

The IPv6 network range to allow or deny, in CIDR notation (for example 2001:db8:1234:1a00::/64).

", + "CreateNetworkAclRequest$VpcId": "

The ID of the VPC.

", + "CreateNetworkInterfaceRequest$SubnetId": "

The ID of the subnet to associate with the network interface.

", + "CreateNetworkInterfaceRequest$Description": "

A description for the network interface.

", + "CreateNetworkInterfaceRequest$PrivateIpAddress": "

The primary private IPv4 address of the network interface. If you don't specify an IPv4 address, Amazon EC2 selects one for you from the subnet's IPv4 CIDR range. If you specify an IP address, you cannot indicate any IP addresses specified in privateIpAddresses as primary (only one IP address can be designated as primary).

", + "CreatePlacementGroupRequest$GroupName": "

A name for the placement group.

Constraints: Up to 255 ASCII characters

", + "CreateReservedInstancesListingRequest$ReservedInstancesId": "

The ID of the active Standard Reserved Instance.

", + "CreateReservedInstancesListingRequest$ClientToken": "

Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.

", + "CreateRouteRequest$RouteTableId": "

The ID of the route table for the route.

", + "CreateRouteRequest$DestinationCidrBlock": "

The IPv4 CIDR address block used for the destination match. Routing decisions are based on the most specific match.

", + "CreateRouteRequest$GatewayId": "

The ID of an Internet gateway or virtual private gateway attached to your VPC.

", + "CreateRouteRequest$DestinationIpv6CidrBlock": "

The IPv6 CIDR block used for the destination match. Routing decisions are based on the most specific match.

", + "CreateRouteRequest$EgressOnlyInternetGatewayId": "

[IPv6 traffic only] The ID of an egress-only Internet gateway.

", + "CreateRouteRequest$InstanceId": "

The ID of a NAT instance in your VPC. The operation fails if you specify an instance ID unless exactly one network interface is attached.

", + "CreateRouteRequest$NetworkInterfaceId": "

The ID of a network interface.

", + "CreateRouteRequest$VpcPeeringConnectionId": "

The ID of a VPC peering connection.

", + "CreateRouteRequest$NatGatewayId": "

[IPv4 traffic only] The ID of a NAT gateway.

", + "CreateRouteTableRequest$VpcId": "

The ID of the VPC.

", + "CreateSecurityGroupRequest$GroupName": "

The name of the security group.

Constraints: Up to 255 characters in length

Constraints for EC2-Classic: ASCII characters

Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*

", + "CreateSecurityGroupRequest$Description": "

A description for the security group. This is informational only.

Constraints: Up to 255 characters in length

Constraints for EC2-Classic: ASCII characters

Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*

", + "CreateSecurityGroupRequest$VpcId": "

[EC2-VPC] The ID of the VPC. Required for EC2-VPC.

", + "CreateSecurityGroupResult$GroupId": "

The ID of the security group.

", + "CreateSnapshotRequest$VolumeId": "

The ID of the EBS volume.

", + "CreateSnapshotRequest$Description": "

A description for the snapshot.

", + "CreateSpotDatafeedSubscriptionRequest$Bucket": "

The Amazon S3 bucket in which to store the Spot instance data feed.

", + "CreateSpotDatafeedSubscriptionRequest$Prefix": "

A prefix for the data feed file names.

", + "CreateSubnetRequest$VpcId": "

The ID of the VPC.

", + "CreateSubnetRequest$CidrBlock": "

The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24.

", + "CreateSubnetRequest$Ipv6CidrBlock": "

The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length.

", + "CreateSubnetRequest$AvailabilityZone": "

The Availability Zone for the subnet.

Default: AWS selects one for you. If you create more than one subnet in your VPC, we may not necessarily select a different zone for each subnet.

", + "CreateVolumePermission$UserId": "

The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.

", + "CreateVolumeRequest$SnapshotId": "

The snapshot from which to create the volume.

", + "CreateVolumeRequest$AvailabilityZone": "

The Availability Zone in which to create the volume. Use DescribeAvailabilityZones to list the Availability Zones that are currently available to you.

", + "CreateVolumeRequest$KmsKeyId": "

The full ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume. This parameter is only required if you want to use a non-default CMK; if this parameter is not specified, the default CMK for EBS is used. The ARN contains the arn:aws:kms namespace, followed by the region of the CMK, the AWS account ID of the CMK owner, the key namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. If a KmsKeyId is specified, the Encrypted flag must also be set.

", + "CreateVpcEndpointRequest$VpcId": "

The ID of the VPC in which the endpoint will be used.

", + "CreateVpcEndpointRequest$ServiceName": "

The AWS service name, in the form com.amazonaws.region.service . To get a list of available services, use the DescribeVpcEndpointServices request.

", + "CreateVpcEndpointRequest$PolicyDocument": "

A policy to attach to the endpoint that controls access to the service. The policy must be in valid JSON format. If this parameter is not specified, we attach a default policy that allows full access to the service.

", + "CreateVpcEndpointRequest$ClientToken": "

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

", + "CreateVpcEndpointResult$ClientToken": "

Unique, case-sensitive identifier you provide to ensure the idempotency of the request.

", + "CreateVpcPeeringConnectionRequest$VpcId": "

The ID of the requester VPC.

", + "CreateVpcPeeringConnectionRequest$PeerVpcId": "

The ID of the VPC with which you are creating the VPC peering connection.

", + "CreateVpcPeeringConnectionRequest$PeerOwnerId": "

The AWS account ID of the owner of the peer VPC.

Default: Your AWS account ID

", + "CreateVpcRequest$CidrBlock": "

The IPv4 network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.

", + "CreateVpnConnectionRequest$Type": "

The type of VPN connection (ipsec.1).

", + "CreateVpnConnectionRequest$CustomerGatewayId": "

The ID of the customer gateway.

", + "CreateVpnConnectionRequest$VpnGatewayId": "

The ID of the virtual private gateway.

", + "CreateVpnConnectionRouteRequest$VpnConnectionId": "

The ID of the VPN connection.

", + "CreateVpnConnectionRouteRequest$DestinationCidrBlock": "

The CIDR block associated with the local subnet of the customer network.

", + "CreateVpnGatewayRequest$AvailabilityZone": "

The Availability Zone for the virtual private gateway.

", + "CustomerGateway$CustomerGatewayId": "

The ID of the customer gateway.

", + "CustomerGateway$State": "

The current state of the customer gateway (pending | available | deleting | deleted).

", + "CustomerGateway$Type": "

The type of VPN connection the customer gateway supports (ipsec.1).

", + "CustomerGateway$IpAddress": "

The Internet-routable IP address of the customer gateway's outside interface.

", + "CustomerGateway$BgpAsn": "

The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

", + "CustomerGatewayIdStringList$member": null, + "DeleteCustomerGatewayRequest$CustomerGatewayId": "

The ID of the customer gateway.

", + "DeleteDhcpOptionsRequest$DhcpOptionsId": "

The ID of the DHCP options set.

", + "DeleteInternetGatewayRequest$InternetGatewayId": "

The ID of the Internet gateway.

", + "DeleteKeyPairRequest$KeyName": "

The name of the key pair.

", + "DeleteNatGatewayRequest$NatGatewayId": "

The ID of the NAT gateway.

", + "DeleteNatGatewayResult$NatGatewayId": "

The ID of the NAT gateway.

", + "DeleteNetworkAclEntryRequest$NetworkAclId": "

The ID of the network ACL.

", + "DeleteNetworkAclRequest$NetworkAclId": "

The ID of the network ACL.

", + "DeleteNetworkInterfaceRequest$NetworkInterfaceId": "

The ID of the network interface.

", + "DeletePlacementGroupRequest$GroupName": "

The name of the placement group.

", + "DeleteRouteRequest$RouteTableId": "

The ID of the route table.

", + "DeleteRouteRequest$DestinationCidrBlock": "

The IPv4 CIDR range for the route. The value you specify must match the CIDR for the route exactly.

", + "DeleteRouteRequest$DestinationIpv6CidrBlock": "

The IPv6 CIDR range for the route. The value you specify must match the CIDR for the route exactly.

", + "DeleteRouteTableRequest$RouteTableId": "

The ID of the route table.

", + "DeleteSecurityGroupRequest$GroupName": "

[EC2-Classic, default VPC] The name of the security group. You can specify either the security group name or the security group ID.

", + "DeleteSecurityGroupRequest$GroupId": "

The ID of the security group. Required for a nondefault VPC.

", + "DeleteSnapshotRequest$SnapshotId": "

The ID of the EBS snapshot.

", + "DeleteSubnetRequest$SubnetId": "

The ID of the subnet.

", + "DeleteVolumeRequest$VolumeId": "

The ID of the volume.

", + "DeleteVpcPeeringConnectionRequest$VpcPeeringConnectionId": "

The ID of the VPC peering connection.

", + "DeleteVpcRequest$VpcId": "

The ID of the VPC.

", + "DeleteVpnConnectionRequest$VpnConnectionId": "

The ID of the VPN connection.

", + "DeleteVpnConnectionRouteRequest$VpnConnectionId": "

The ID of the VPN connection.

", + "DeleteVpnConnectionRouteRequest$DestinationCidrBlock": "

The CIDR block associated with the local subnet of the customer network.

", + "DeleteVpnGatewayRequest$VpnGatewayId": "

The ID of the virtual private gateway.

", + "DeregisterImageRequest$ImageId": "

The ID of the AMI.

", + "DescribeClassicLinkInstancesRequest$NextToken": "

The token to retrieve the next page of results.

", + "DescribeClassicLinkInstancesResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeEgressOnlyInternetGatewaysRequest$NextToken": "

The token to retrieve the next page of results.

", + "DescribeEgressOnlyInternetGatewaysResult$NextToken": "

The token to use to retrieve the next page of results.

", + "DescribeFlowLogsRequest$NextToken": "

The token to retrieve the next page of results.

", + "DescribeFlowLogsResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeHostReservationOfferingsRequest$OfferingId": "

The ID of the reservation offering.

", + "DescribeHostReservationOfferingsRequest$NextToken": "

The token to use to retrieve the next page of results.

", + "DescribeHostReservationOfferingsResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeHostReservationsRequest$NextToken": "

The token to use to retrieve the next page of results.

", + "DescribeHostReservationsResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeHostsRequest$NextToken": "

The token to retrieve the next page of results.

", + "DescribeHostsResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeIdFormatRequest$Resource": "

The type of resource: instance | reservation | snapshot | volume

", + "DescribeIdentityIdFormatRequest$Resource": "

The type of resource: instance | reservation | snapshot | volume

", + "DescribeIdentityIdFormatRequest$PrincipalArn": "

The ARN of the principal, which can be an IAM role, IAM user, or the root user.

", + "DescribeImageAttributeRequest$ImageId": "

The ID of the AMI.

", + "DescribeImportImageTasksRequest$NextToken": "

A token that indicates the next page of results.

", + "DescribeImportImageTasksResult$NextToken": "

The token to use to get the next page of results. This value is null when there are no more results to return.

", + "DescribeImportSnapshotTasksRequest$NextToken": "

A token that indicates the next page of results.

", + "DescribeImportSnapshotTasksResult$NextToken": "

The token to use to get the next page of results. This value is null when there are no more results to return.

", + "DescribeInstanceAttributeRequest$InstanceId": "

The ID of the instance.

", + "DescribeInstanceStatusRequest$NextToken": "

The token to retrieve the next page of results.

", + "DescribeInstanceStatusResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeInstancesRequest$NextToken": "

The token to request the next page of results.

", + "DescribeInstancesResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeMovingAddressesRequest$NextToken": "

The token to use to retrieve the next page of results.

", + "DescribeMovingAddressesResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeNatGatewaysRequest$NextToken": "

The token to retrieve the next page of results.

", + "DescribeNatGatewaysResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeNetworkInterfaceAttributeRequest$NetworkInterfaceId": "

The ID of the network interface.

", + "DescribeNetworkInterfaceAttributeResult$NetworkInterfaceId": "

The ID of the network interface.

", + "DescribePrefixListsRequest$NextToken": "

The token for the next set of items to return. (You received this token from a prior call.)

", + "DescribePrefixListsResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribeReservedInstancesListingsRequest$ReservedInstancesId": "

One or more Reserved Instance IDs.

", + "DescribeReservedInstancesListingsRequest$ReservedInstancesListingId": "

One or more Reserved Instance listing IDs.

", + "DescribeReservedInstancesModificationsRequest$NextToken": "

The token to retrieve the next page of results.

", + "DescribeReservedInstancesModificationsResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeReservedInstancesOfferingsRequest$AvailabilityZone": "

The Availability Zone in which the Reserved Instance can be used.

", + "DescribeReservedInstancesOfferingsRequest$NextToken": "

The token to retrieve the next page of results.

", + "DescribeReservedInstancesOfferingsResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeScheduledInstanceAvailabilityRequest$NextToken": "

The token for the next set of results.

", + "DescribeScheduledInstanceAvailabilityResult$NextToken": "

The token required to retrieve the next set of results. This value is null when there are no more results to return.

", + "DescribeScheduledInstancesRequest$NextToken": "

The token for the next set of results.

", + "DescribeScheduledInstancesResult$NextToken": "

The token required to retrieve the next set of results. This value is null when there are no more results to return.

", + "DescribeSnapshotAttributeRequest$SnapshotId": "

The ID of the EBS snapshot.

", + "DescribeSnapshotAttributeResult$SnapshotId": "

The ID of the EBS snapshot.

", + "DescribeSnapshotsRequest$NextToken": "

The NextToken value returned from a previous paginated DescribeSnapshots request where MaxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the NextToken value. This value is null when there are no more results to return.

", + "DescribeSnapshotsResult$NextToken": "

The NextToken value to include in a future DescribeSnapshots request. When the results of a DescribeSnapshots request exceed MaxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeSpotFleetInstancesRequest$SpotFleetRequestId": "

The ID of the Spot fleet request.

", + "DescribeSpotFleetInstancesRequest$NextToken": "

The token for the next set of results.

", + "DescribeSpotFleetInstancesResponse$SpotFleetRequestId": "

The ID of the Spot fleet request.

", + "DescribeSpotFleetInstancesResponse$NextToken": "

The token required to retrieve the next set of results. This value is null when there are no more results to return.

", + "DescribeSpotFleetRequestHistoryRequest$SpotFleetRequestId": "

The ID of the Spot fleet request.

", + "DescribeSpotFleetRequestHistoryRequest$NextToken": "

The token for the next set of results.

", + "DescribeSpotFleetRequestHistoryResponse$SpotFleetRequestId": "

The ID of the Spot fleet request.

", + "DescribeSpotFleetRequestHistoryResponse$NextToken": "

The token required to retrieve the next set of results. This value is null when there are no more results to return.

", + "DescribeSpotFleetRequestsRequest$NextToken": "

The token for the next set of results.

", + "DescribeSpotFleetRequestsResponse$NextToken": "

The token required to retrieve the next set of results. This value is null when there are no more results to return.

", + "DescribeSpotPriceHistoryRequest$AvailabilityZone": "

Filters the results by the specified Availability Zone.

", + "DescribeSpotPriceHistoryRequest$NextToken": "

The token for the next set of results.

", + "DescribeSpotPriceHistoryResult$NextToken": "

The token required to retrieve the next set of results. This value is null when there are no more results to return.

", + "DescribeStaleSecurityGroupsRequest$VpcId": "

The ID of the VPC.

", + "DescribeStaleSecurityGroupsResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribeTagsRequest$NextToken": "

The token to retrieve the next page of results.

", + "DescribeTagsResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return..

", + "DescribeVolumeAttributeRequest$VolumeId": "

The ID of the volume.

", + "DescribeVolumeAttributeResult$VolumeId": "

The ID of the volume.

", + "DescribeVolumeStatusRequest$NextToken": "

The NextToken value to include in a future DescribeVolumeStatus request. When the results of the request exceed MaxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeVolumeStatusResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeVolumesModificationsRequest$NextToken": "

The nextToken value returned by a previous paginated request.

", + "DescribeVolumesModificationsResult$NextToken": "

Token for pagination, null if there are no more results

", + "DescribeVolumesRequest$NextToken": "

The NextToken value returned from a previous paginated DescribeVolumes request where MaxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the NextToken value. This value is null when there are no more results to return.

", + "DescribeVolumesResult$NextToken": "

The NextToken value to include in a future DescribeVolumes request. When the results of a DescribeVolumes request exceed MaxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeVpcAttributeRequest$VpcId": "

The ID of the VPC.

", + "DescribeVpcAttributeResult$VpcId": "

The ID of the VPC.

", + "DescribeVpcEndpointServicesRequest$NextToken": "

The token for the next set of items to return. (You received this token from a prior call.)

", + "DescribeVpcEndpointServicesResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribeVpcEndpointsRequest$NextToken": "

The token for the next set of items to return. (You received this token from a prior call.)

", + "DescribeVpcEndpointsResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DetachClassicLinkVpcRequest$InstanceId": "

The ID of the instance to unlink from the VPC.

", + "DetachClassicLinkVpcRequest$VpcId": "

The ID of the VPC to which the instance is linked.

", + "DetachInternetGatewayRequest$InternetGatewayId": "

The ID of the Internet gateway.

", + "DetachInternetGatewayRequest$VpcId": "

The ID of the VPC.

", + "DetachNetworkInterfaceRequest$AttachmentId": "

The ID of the attachment.

", + "DetachVolumeRequest$VolumeId": "

The ID of the volume.

", + "DetachVolumeRequest$InstanceId": "

The ID of the instance.

", + "DetachVolumeRequest$Device": "

The device name.

", + "DetachVpnGatewayRequest$VpnGatewayId": "

The ID of the virtual private gateway.

", + "DetachVpnGatewayRequest$VpcId": "

The ID of the VPC.

", + "DhcpConfiguration$Key": "

The name of a DHCP option.

", + "DhcpOptions$DhcpOptionsId": "

The ID of the set of DHCP options.

", + "DhcpOptionsIdStringList$member": null, + "DisableVgwRoutePropagationRequest$RouteTableId": "

The ID of the route table.

", + "DisableVgwRoutePropagationRequest$GatewayId": "

The ID of the virtual private gateway.

", + "DisableVpcClassicLinkDnsSupportRequest$VpcId": "

The ID of the VPC.

", + "DisableVpcClassicLinkRequest$VpcId": "

The ID of the VPC.

", + "DisassociateAddressRequest$PublicIp": "

[EC2-Classic] The Elastic IP address. Required for EC2-Classic.

", + "DisassociateAddressRequest$AssociationId": "

[EC2-VPC] The association ID. Required for EC2-VPC.

", + "DisassociateIamInstanceProfileRequest$AssociationId": "

The ID of the IAM instance profile association.

", + "DisassociateRouteTableRequest$AssociationId": "

The association ID representing the current association between the route table and subnet.

", + "DisassociateSubnetCidrBlockRequest$AssociationId": "

The association ID for the CIDR block.

", + "DisassociateSubnetCidrBlockResult$SubnetId": "

The ID of the subnet.

", + "DisassociateVpcCidrBlockRequest$AssociationId": "

The association ID for the CIDR block.

", + "DisassociateVpcCidrBlockResult$VpcId": "

The ID of the VPC.

", + "DiskImage$Description": "

A description of the disk image.

", + "DiskImageDescription$ImportManifestUrl": "

A presigned URL for the import manifest stored in Amazon S3. For information about creating a presigned URL for an Amazon S3 object, read the \"Query String Request Authentication Alternative\" section of the Authenticating REST Requests topic in the Amazon Simple Storage Service Developer Guide.

For information about the import manifest referenced by this API action, see VM Import Manifest.

", + "DiskImageDescription$Checksum": "

The checksum computed for the disk image.

", + "DiskImageDetail$ImportManifestUrl": "

A presigned URL for the import manifest stored in Amazon S3 and presented here as an Amazon S3 presigned URL. For information about creating a presigned URL for an Amazon S3 object, read the \"Query String Request Authentication Alternative\" section of the Authenticating REST Requests topic in the Amazon Simple Storage Service Developer Guide.

For information about the import manifest referenced by this API action, see VM Import Manifest.

", + "DiskImageVolumeDescription$Id": "

The volume identifier.

", + "EbsBlockDevice$SnapshotId": "

The ID of the snapshot.

", + "EbsInstanceBlockDevice$VolumeId": "

The ID of the EBS volume.

", + "EbsInstanceBlockDeviceSpecification$VolumeId": "

The ID of the EBS volume.

", + "EnableVgwRoutePropagationRequest$RouteTableId": "

The ID of the route table.

", + "EnableVgwRoutePropagationRequest$GatewayId": "

The ID of the virtual private gateway.

", + "EnableVolumeIORequest$VolumeId": "

The ID of the volume.

", + "EnableVpcClassicLinkDnsSupportRequest$VpcId": "

The ID of the VPC.

", + "EnableVpcClassicLinkRequest$VpcId": "

The ID of the VPC.

", + "EventInformation$InstanceId": "

The ID of the instance. This information is available only for instanceChange events.

", + "EventInformation$EventSubType": "

The event.

The following are the error events.

  • iamFleetRoleInvalid - The Spot fleet did not have the required permissions either to launch or terminate an instance.

  • launchSpecTemporarilyBlacklisted - The configuration is not valid and several attempts to launch instances have failed. For more information, see the description of the event.

  • spotFleetRequestConfigurationInvalid - The configuration is not valid. For more information, see the description of the event.

  • spotInstanceCountLimitExceeded - You've reached the limit on the number of Spot instances that you can launch.

The following are the fleetRequestChange events.

  • active - The Spot fleet has been validated and Amazon EC2 is attempting to maintain the target number of running Spot instances.

  • cancelled - The Spot fleet is canceled and has no running Spot instances. The Spot fleet will be deleted two days after its instances were terminated.

  • cancelled_running - The Spot fleet is canceled and will not launch additional Spot instances, but its existing Spot instances continue to run until they are interrupted or terminated.

  • cancelled_terminating - The Spot fleet is canceled and its Spot instances are terminating.

  • expired - The Spot fleet request has expired. A subsequent event indicates that the instances were terminated, if the request was created with TerminateInstancesWithExpiration set.

  • modify_in_progress - A request to modify the Spot fleet request was accepted and is in progress.

  • modify_successful - The Spot fleet request was modified.

  • price_update - The bid price for a launch configuration was adjusted because it was too high. This change is permanent.

  • submitted - The Spot fleet request is being evaluated and Amazon EC2 is preparing to launch the target number of Spot instances.

The following are the instanceChange events.

  • launched - A bid was fulfilled and a new instance was launched.

  • terminated - An instance was terminated by the user.

", + "EventInformation$EventDescription": "

The description of the event.

", + "ExecutableByStringList$member": null, + "ExportTask$ExportTaskId": "

The ID of the export task.

", + "ExportTask$Description": "

A description of the resource being exported.

", + "ExportTask$StatusMessage": "

The status message related to the export task.

", + "ExportTaskIdStringList$member": null, + "ExportToS3Task$S3Bucket": "

The S3 bucket for the destination image. The destination bucket must exist and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.

", + "ExportToS3Task$S3Key": "

The encryption key for your S3 bucket.

", + "ExportToS3TaskSpecification$S3Bucket": "

The S3 bucket for the destination image. The destination bucket must exist and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.

", + "ExportToS3TaskSpecification$S3Prefix": "

The image is written to a single object in the S3 bucket at the S3 key s3prefix + exportTaskId + '.' + diskImageFormat.

", + "Filter$Name": "

The name of the filter. Filter names are case-sensitive.

", + "FlowLog$FlowLogId": "

The flow log ID.

", + "FlowLog$FlowLogStatus": "

The status of the flow log (ACTIVE).

", + "FlowLog$ResourceId": "

The ID of the resource on which the flow log was created.

", + "FlowLog$LogGroupName": "

The name of the flow log group.

", + "FlowLog$DeliverLogsStatus": "

The status of the logs delivery (SUCCESS | FAILED).

", + "FlowLog$DeliverLogsErrorMessage": "

Information about the error that occurred. Rate limited indicates that CloudWatch logs throttling has been applied for one or more network interfaces, or that you've reached the limit on the number of CloudWatch Logs log groups that you can create. Access error indicates that the IAM role associated with the flow log does not have sufficient permissions to publish to CloudWatch Logs. Unknown error indicates an internal error.

", + "FlowLog$DeliverLogsPermissionArn": "

The ARN of the IAM role that posts logs to CloudWatch Logs.

", + "GetConsoleOutputRequest$InstanceId": "

The ID of the instance.

", + "GetConsoleOutputResult$InstanceId": "

The ID of the instance.

", + "GetConsoleOutputResult$Output": "

The console output, Base64-encoded. If using a command line tool, the tool decodes the output for you.

", + "GetConsoleScreenshotRequest$InstanceId": "

The ID of the instance.

", + "GetConsoleScreenshotResult$InstanceId": "

The ID of the instance.

", + "GetConsoleScreenshotResult$ImageData": "

The data that comprises the image.

", + "GetHostReservationPurchasePreviewRequest$OfferingId": "

The offering ID of the reservation.

", + "GetHostReservationPurchasePreviewResult$TotalUpfrontPrice": "

The potential total upfront price. This is billed immediately.

", + "GetHostReservationPurchasePreviewResult$TotalHourlyPrice": "

The potential total hourly price of the reservation per hour.

", + "GetPasswordDataRequest$InstanceId": "

The ID of the Windows instance.

", + "GetPasswordDataResult$InstanceId": "

The ID of the Windows instance.

", + "GetPasswordDataResult$PasswordData": "

The password of the instance.

", + "GetReservedInstancesExchangeQuoteResult$PaymentDue": "

The total true upfront charge for the exchange.

", + "GetReservedInstancesExchangeQuoteResult$CurrencyCode": "

The currency of the transaction.

", + "GetReservedInstancesExchangeQuoteResult$ValidationFailureReason": "

Describes the reason why the exchange cannot be completed.

", + "GroupIdStringList$member": null, + "GroupIdentifier$GroupName": "

The name of the security group.

", + "GroupIdentifier$GroupId": "

The ID of the security group.

", + "GroupIds$member": null, + "GroupNameStringList$member": null, + "Host$HostId": "

The ID of the Dedicated Host.

", + "Host$HostReservationId": "

The reservation ID of the Dedicated Host. This returns a null response if the Dedicated Host doesn't have an associated reservation.

", + "Host$ClientToken": "

Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

", + "Host$AvailabilityZone": "

The Availability Zone of the Dedicated Host.

", + "HostInstance$InstanceId": "

the IDs of instances that are running on the Dedicated Host.

", + "HostInstance$InstanceType": "

The instance type size (for example, m3.medium) of the running instance.

", + "HostOffering$OfferingId": "

The ID of the offering.

", + "HostOffering$InstanceFamily": "

The instance family of the offering.

", + "HostOffering$UpfrontPrice": "

The upfront price of the offering. Does not apply to No Upfront offerings.

", + "HostOffering$HourlyPrice": "

The hourly price of the offering.

", + "HostProperties$InstanceType": "

The instance type size that the Dedicated Host supports (for example, m3.medium).

", + "HostReservation$HostReservationId": "

The ID of the reservation that specifies the associated Dedicated Hosts.

", + "HostReservation$OfferingId": "

The ID of the reservation. This remains the same regardless of which Dedicated Hosts are associated with it.

", + "HostReservation$InstanceFamily": "

The instance family of the Dedicated Host Reservation. The instance family on the Dedicated Host must be the same in order for it to benefit from the reservation.

", + "HostReservation$HourlyPrice": "

The hourly price of the reservation.

", + "HostReservation$UpfrontPrice": "

The upfront price of the reservation.

", + "HostReservationIdSet$member": null, + "IamInstanceProfile$Arn": "

The Amazon Resource Name (ARN) of the instance profile.

", + "IamInstanceProfile$Id": "

The ID of the instance profile.

", + "IamInstanceProfileAssociation$AssociationId": "

The ID of the association.

", + "IamInstanceProfileAssociation$InstanceId": "

The ID of the instance.

", + "IamInstanceProfileSpecification$Arn": "

The Amazon Resource Name (ARN) of the instance profile.

", + "IamInstanceProfileSpecification$Name": "

The name of the instance profile.

", + "IdFormat$Resource": "

The type of resource.

", + "Image$ImageId": "

The ID of the AMI.

", + "Image$ImageLocation": "

The location of the AMI.

", + "Image$OwnerId": "

The AWS account ID of the image owner.

", + "Image$CreationDate": "

The date and time the image was created.

", + "Image$KernelId": "

The kernel associated with the image, if any. Only applicable for machine images.

", + "Image$RamdiskId": "

The RAM disk associated with the image, if any. Only applicable for machine images.

", + "Image$SriovNetSupport": "

Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.

", + "Image$ImageOwnerAlias": "

The AWS account alias (for example, amazon, self) or the AWS account ID of the AMI owner.

", + "Image$Name": "

The name of the AMI that was provided during image creation.

", + "Image$Description": "

The description of the AMI that was provided during image creation.

", + "Image$RootDeviceName": "

The device name of the root device (for example, /dev/sda1 or /dev/xvda).

", + "ImageAttribute$ImageId": "

The ID of the AMI.

", + "ImageDiskContainer$Description": "

The description of the disk image.

", + "ImageDiskContainer$Format": "

The format of the disk image being imported.

Valid values: RAW | VHD | VMDK | OVA

", + "ImageDiskContainer$Url": "

The URL to the Amazon S3-based disk image being imported. The URL can either be a https URL (https://..) or an Amazon S3 URL (s3://..)

", + "ImageDiskContainer$DeviceName": "

The block device mapping for the disk.

", + "ImageDiskContainer$SnapshotId": "

The ID of the EBS snapshot to be used for importing the snapshot.

", + "ImageIdStringList$member": null, + "ImportImageRequest$Description": "

A description string for the import image task.

", + "ImportImageRequest$LicenseType": "

The license type to be used for the Amazon Machine Image (AMI) after importing.

Note: You may only use BYOL if you have existing licenses with rights to use these licenses in a third party cloud like AWS. For more information, see Prerequisites in the VM Import/Export User Guide.

Valid values: AWS | BYOL

", + "ImportImageRequest$Hypervisor": "

The target hypervisor platform.

Valid values: xen

", + "ImportImageRequest$Architecture": "

The architecture of the virtual machine.

Valid values: i386 | x86_64

", + "ImportImageRequest$Platform": "

The operating system of the virtual machine.

Valid values: Windows | Linux

", + "ImportImageRequest$ClientToken": "

The token to enable idempotency for VM import requests.

", + "ImportImageRequest$RoleName": "

The name of the role to use when not using the default role, 'vmimport'.

", + "ImportImageResult$ImportTaskId": "

The task ID of the import image task.

", + "ImportImageResult$Architecture": "

The architecture of the virtual machine.

", + "ImportImageResult$LicenseType": "

The license type of the virtual machine.

", + "ImportImageResult$Platform": "

The operating system of the virtual machine.

", + "ImportImageResult$Hypervisor": "

The target hypervisor of the import task.

", + "ImportImageResult$Description": "

A description of the import task.

", + "ImportImageResult$ImageId": "

The ID of the Amazon Machine Image (AMI) created by the import task.

", + "ImportImageResult$Progress": "

The progress of the task.

", + "ImportImageResult$StatusMessage": "

A detailed status message of the import task.

", + "ImportImageResult$Status": "

A brief status of the task.

", + "ImportImageTask$ImportTaskId": "

The ID of the import image task.

", + "ImportImageTask$Architecture": "

The architecture of the virtual machine.

Valid values: i386 | x86_64

", + "ImportImageTask$LicenseType": "

The license type of the virtual machine.

", + "ImportImageTask$Platform": "

The description string for the import image task.

", + "ImportImageTask$Hypervisor": "

The target hypervisor for the import task.

Valid values: xen

", + "ImportImageTask$Description": "

A description of the import task.

", + "ImportImageTask$ImageId": "

The ID of the Amazon Machine Image (AMI) of the imported virtual machine.

", + "ImportImageTask$Progress": "

The percentage of progress of the import image task.

", + "ImportImageTask$StatusMessage": "

A descriptive status message for the import image task.

", + "ImportImageTask$Status": "

A brief status for the import image task.

", + "ImportInstanceLaunchSpecification$AdditionalInfo": "

Reserved.

", + "ImportInstanceLaunchSpecification$SubnetId": "

[EC2-VPC] The ID of the subnet in which to launch the instance.

", + "ImportInstanceLaunchSpecification$PrivateIpAddress": "

[EC2-VPC] An available IP address from the IP address range of the subnet.

", + "ImportInstanceRequest$Description": "

A description for the instance being imported.

", + "ImportInstanceTaskDetails$InstanceId": "

The ID of the instance.

", + "ImportInstanceTaskDetails$Description": "

A description of the task.

", + "ImportInstanceVolumeDetailItem$AvailabilityZone": "

The Availability Zone where the resulting instance will reside.

", + "ImportInstanceVolumeDetailItem$Status": "

The status of the import of this particular disk image.

", + "ImportInstanceVolumeDetailItem$StatusMessage": "

The status information or errors related to the disk image.

", + "ImportInstanceVolumeDetailItem$Description": "

A description of the task.

", + "ImportKeyPairRequest$KeyName": "

A unique name for the key pair.

", + "ImportKeyPairResult$KeyName": "

The key pair name you provided.

", + "ImportKeyPairResult$KeyFingerprint": "

The MD5 public key fingerprint as specified in section 4 of RFC 4716.

", + "ImportSnapshotRequest$Description": "

The description string for the import snapshot task.

", + "ImportSnapshotRequest$ClientToken": "

Token to enable idempotency for VM import requests.

", + "ImportSnapshotRequest$RoleName": "

The name of the role to use when not using the default role, 'vmimport'.

", + "ImportSnapshotResult$ImportTaskId": "

The ID of the import snapshot task.

", + "ImportSnapshotResult$Description": "

A description of the import snapshot task.

", + "ImportSnapshotTask$ImportTaskId": "

The ID of the import snapshot task.

", + "ImportSnapshotTask$Description": "

A description of the import snapshot task.

", + "ImportTaskIdList$member": null, + "ImportVolumeRequest$AvailabilityZone": "

The Availability Zone for the resulting EBS volume.

", + "ImportVolumeRequest$Description": "

A description of the volume.

", + "ImportVolumeTaskDetails$AvailabilityZone": "

The Availability Zone where the resulting volume will reside.

", + "ImportVolumeTaskDetails$Description": "

The description you provided when starting the import volume task.

", + "Instance$InstanceId": "

The ID of the instance.

", + "Instance$ImageId": "

The ID of the AMI used to launch the instance.

", + "Instance$PrivateDnsName": "

(IPv4 only) The private DNS hostname name assigned to the instance. This DNS hostname can only be used inside the Amazon EC2 network. This name is not available until the instance enters the running state.

[EC2-VPC] The Amazon-provided DNS server will resolve Amazon-provided private DNS hostnames if you've enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.

", + "Instance$PublicDnsName": "

(IPv4 only) The public DNS name assigned to the instance. This name is not available until the instance enters the running state. For EC2-VPC, this name is only available if you've enabled DNS hostnames for your VPC.

", + "Instance$StateTransitionReason": "

The reason for the most recent state transition. This might be an empty string.

", + "Instance$KeyName": "

The name of the key pair, if this instance was launched with an associated key pair.

", + "Instance$KernelId": "

The kernel associated with this instance, if applicable.

", + "Instance$RamdiskId": "

The RAM disk associated with this instance, if applicable.

", + "Instance$SubnetId": "

[EC2-VPC] The ID of the subnet in which the instance is running.

", + "Instance$VpcId": "

[EC2-VPC] The ID of the VPC in which the instance is running.

", + "Instance$PrivateIpAddress": "

The private IPv4 address assigned to the instance.

", + "Instance$PublicIpAddress": "

The public IPv4 address assigned to the instance, if applicable.

", + "Instance$RootDeviceName": "

The root device name (for example, /dev/sda1 or /dev/xvda).

", + "Instance$SpotInstanceRequestId": "

If the request is a Spot instance request, the ID of the request.

", + "Instance$ClientToken": "

The idempotency token you provided when you launched the instance, if applicable.

", + "Instance$SriovNetSupport": "

Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.

", + "InstanceAttribute$InstanceId": "

The ID of the instance.

", + "InstanceBlockDeviceMapping$DeviceName": "

The device name exposed to the instance (for example, /dev/sdh or xvdh).

", + "InstanceBlockDeviceMappingSpecification$DeviceName": "

The device name exposed to the instance (for example, /dev/sdh or xvdh).

", + "InstanceBlockDeviceMappingSpecification$VirtualName": "

The virtual device name.

", + "InstanceBlockDeviceMappingSpecification$NoDevice": "

suppress the specified device included in the block device mapping.

", + "InstanceCapacity$InstanceType": "

The instance type size supported by the Dedicated Host.

", + "InstanceExportDetails$InstanceId": "

The ID of the resource being exported.

", + "InstanceIdSet$member": null, + "InstanceIdStringList$member": null, + "InstanceIpv6Address$Ipv6Address": "

The IPv6 address.

", + "InstanceMonitoring$InstanceId": "

The ID of the instance.

", + "InstanceNetworkInterface$NetworkInterfaceId": "

The ID of the network interface.

", + "InstanceNetworkInterface$SubnetId": "

The ID of the subnet.

", + "InstanceNetworkInterface$VpcId": "

The ID of the VPC.

", + "InstanceNetworkInterface$Description": "

The description.

", + "InstanceNetworkInterface$OwnerId": "

The ID of the AWS account that created the network interface.

", + "InstanceNetworkInterface$MacAddress": "

The MAC address.

", + "InstanceNetworkInterface$PrivateIpAddress": "

The IPv4 address of the network interface within the subnet.

", + "InstanceNetworkInterface$PrivateDnsName": "

The private DNS name.

", + "InstanceNetworkInterfaceAssociation$PublicIp": "

The public IP address or Elastic IP address bound to the network interface.

", + "InstanceNetworkInterfaceAssociation$PublicDnsName": "

The public DNS name.

", + "InstanceNetworkInterfaceAssociation$IpOwnerId": "

The ID of the owner of the Elastic IP address.

", + "InstanceNetworkInterfaceAttachment$AttachmentId": "

The ID of the network interface attachment.

", + "InstanceNetworkInterfaceSpecification$NetworkInterfaceId": "

The ID of the network interface.

", + "InstanceNetworkInterfaceSpecification$SubnetId": "

The ID of the subnet associated with the network string. Applies only if creating a network interface when launching an instance.

", + "InstanceNetworkInterfaceSpecification$Description": "

The description of the network interface. Applies only if creating a network interface when launching an instance.

", + "InstanceNetworkInterfaceSpecification$PrivateIpAddress": "

The private IPv4 address of the network interface. Applies only if creating a network interface when launching an instance. You cannot specify this option if you're launching more than one instance in a RunInstances request.

", + "InstancePrivateIpAddress$PrivateIpAddress": "

The private IPv4 address of the network interface.

", + "InstancePrivateIpAddress$PrivateDnsName": "

The private IPv4 DNS name.

", + "InstanceStateChange$InstanceId": "

The ID of the instance.

", + "InstanceStatus$InstanceId": "

The ID of the instance.

", + "InstanceStatus$AvailabilityZone": "

The Availability Zone of the instance.

", + "InstanceStatusEvent$Description": "

A description of the event.

After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].

", + "InternetGateway$InternetGatewayId": "

The ID of the Internet gateway.

", + "InternetGatewayAttachment$VpcId": "

The ID of the VPC.

", + "IpPermission$IpProtocol": "

The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers).

[EC2-VPC only] Use -1 to specify all protocols. When authorizing security group rules, specifying -1 or a protocol number other than tcp, udp, icmp, or 58 (ICMPv6) allows traffic on all ports, regardless of any port range you specify. For tcp, udp, and icmp, you must specify a port range. For 58 (ICMPv6), you can optionally specify a port range; if you don't, traffic for all types and codes is allowed when authorizing rules.

", + "IpRange$CidrIp": "

The IPv4 CIDR range. You can either specify a CIDR range or a source security group, not both. To specify a single IPv4 address, use the /32 prefix.

", + "IpRanges$member": null, + "Ipv6AddressList$member": null, + "Ipv6CidrBlock$Ipv6CidrBlock": "

The IPv6 CIDR block.

", + "Ipv6Range$CidrIpv6": "

The IPv6 CIDR range. You can either specify a CIDR range or a source security group, not both. To specify a single IPv6 address, use the /128 prefix.

", + "KeyNameStringList$member": null, + "KeyPair$KeyName": "

The name of the key pair.

", + "KeyPair$KeyFingerprint": "

The SHA-1 digest of the DER encoded private key.

", + "KeyPair$KeyMaterial": "

An unencrypted PEM encoded RSA private key.

", + "KeyPairInfo$KeyName": "

The name of the key pair.

", + "KeyPairInfo$KeyFingerprint": "

If you used CreateKeyPair to create the key pair, this is the SHA-1 digest of the DER encoded private key. If you used ImportKeyPair to provide AWS the public key, this is the MD5 public key fingerprint as specified in section 4 of RFC4716.

", + "LaunchPermission$UserId": "

The AWS account ID.

", + "LaunchSpecification$ImageId": "

The ID of the AMI.

", + "LaunchSpecification$KeyName": "

The name of the key pair.

", + "LaunchSpecification$UserData": "

The user data to make available to the instances. If you are using an AWS SDK or command line tool, Base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide Base64-encoded text.

", + "LaunchSpecification$AddressingType": "

Deprecated.

", + "LaunchSpecification$KernelId": "

The ID of the kernel.

", + "LaunchSpecification$RamdiskId": "

The ID of the RAM disk.

", + "LaunchSpecification$SubnetId": "

The ID of the subnet in which to launch the instance.

", + "ModifyIdFormatRequest$Resource": "

The type of resource: instance | reservation | snapshot | volume

", + "ModifyIdentityIdFormatRequest$Resource": "

The type of resource: instance | reservation | snapshot | volume

", + "ModifyIdentityIdFormatRequest$PrincipalArn": "

The ARN of the principal, which can be an IAM user, IAM role, or the root user. Specify all to modify the ID format for all IAM users, IAM roles, and the root user of the account.

", + "ModifyImageAttributeRequest$ImageId": "

The ID of the AMI.

", + "ModifyImageAttributeRequest$Attribute": "

The name of the attribute to modify.

", + "ModifyImageAttributeRequest$Value": "

The value of the attribute being modified. This is only valid when modifying the description attribute.

", + "ModifyInstanceAttributeRequest$InstanceId": "

The ID of the instance.

", + "ModifyInstanceAttributeRequest$Value": "

A new value for the attribute. Use only with the kernel, ramdisk, userData, disableApiTermination, or instanceInitiatedShutdownBehavior attribute.

", + "ModifyInstancePlacementRequest$InstanceId": "

The ID of the instance that you are modifying.

", + "ModifyInstancePlacementRequest$HostId": "

The ID of the Dedicated Host that the instance will have affinity with.

", + "ModifyNetworkInterfaceAttributeRequest$NetworkInterfaceId": "

The ID of the network interface.

", + "ModifyReservedInstancesRequest$ClientToken": "

A unique, case-sensitive token you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.

", + "ModifyReservedInstancesResult$ReservedInstancesModificationId": "

The ID for the modification.

", + "ModifySnapshotAttributeRequest$SnapshotId": "

The ID of the snapshot.

", + "ModifySpotFleetRequestRequest$SpotFleetRequestId": "

The ID of the Spot fleet request.

", + "ModifySubnetAttributeRequest$SubnetId": "

The ID of the subnet.

", + "ModifyVolumeAttributeRequest$VolumeId": "

The ID of the volume.

", + "ModifyVolumeRequest$VolumeId": null, + "ModifyVpcAttributeRequest$VpcId": "

The ID of the VPC.

", + "ModifyVpcEndpointRequest$VpcEndpointId": "

The ID of the endpoint.

", + "ModifyVpcEndpointRequest$PolicyDocument": "

A policy document to attach to the endpoint. The policy must be in valid JSON format.

", + "ModifyVpcPeeringConnectionOptionsRequest$VpcPeeringConnectionId": "

The ID of the VPC peering connection.

", + "MoveAddressToVpcRequest$PublicIp": "

The Elastic IP address.

", + "MoveAddressToVpcResult$AllocationId": "

The allocation ID for the Elastic IP address.

", + "MovingAddressStatus$PublicIp": "

The Elastic IP address.

", + "NatGateway$VpcId": "

The ID of the VPC in which the NAT gateway is located.

", + "NatGateway$SubnetId": "

The ID of the subnet in which the NAT gateway is located.

", + "NatGateway$NatGatewayId": "

The ID of the NAT gateway.

", + "NatGateway$FailureCode": "

If the NAT gateway could not be created, specifies the error code for the failure. (InsufficientFreeAddressesInSubnet | Gateway.NotAttached | InvalidAllocationID.NotFound | Resource.AlreadyAssociated | InternalError | InvalidSubnetID.NotFound)

", + "NatGateway$FailureMessage": "

If the NAT gateway could not be created, specifies the error message for the failure, that corresponds to the error code.

  • For InsufficientFreeAddressesInSubnet: \"Subnet has insufficient free addresses to create this NAT gateway\"

  • For Gateway.NotAttached: \"Network vpc-xxxxxxxx has no Internet gateway attached\"

  • For InvalidAllocationID.NotFound: \"Elastic IP address eipalloc-xxxxxxxx could not be associated with this NAT gateway\"

  • For Resource.AlreadyAssociated: \"Elastic IP address eipalloc-xxxxxxxx is already associated\"

  • For InternalError: \"Network interface eni-xxxxxxxx, created and used internally by this NAT gateway is in an invalid state. Please try again.\"

  • For InvalidSubnetID.NotFound: \"The specified subnet subnet-xxxxxxxx does not exist or could not be found.\"

", + "NatGatewayAddress$PublicIp": "

The Elastic IP address associated with the NAT gateway.

", + "NatGatewayAddress$AllocationId": "

The allocation ID of the Elastic IP address that's associated with the NAT gateway.

", + "NatGatewayAddress$PrivateIp": "

The private IP address associated with the Elastic IP address.

", + "NatGatewayAddress$NetworkInterfaceId": "

The ID of the network interface associated with the NAT gateway.

", + "NetworkAcl$NetworkAclId": "

The ID of the network ACL.

", + "NetworkAcl$VpcId": "

The ID of the VPC for the network ACL.

", + "NetworkAclAssociation$NetworkAclAssociationId": "

The ID of the association between a network ACL and a subnet.

", + "NetworkAclAssociation$NetworkAclId": "

The ID of the network ACL.

", + "NetworkAclAssociation$SubnetId": "

The ID of the subnet.

", + "NetworkAclEntry$Protocol": "

The protocol. A value of -1 means all protocols.

", + "NetworkAclEntry$CidrBlock": "

The IPv4 network range to allow or deny, in CIDR notation.

", + "NetworkAclEntry$Ipv6CidrBlock": "

The IPv6 network range to allow or deny, in CIDR notation.

", + "NetworkInterface$NetworkInterfaceId": "

The ID of the network interface.

", + "NetworkInterface$SubnetId": "

The ID of the subnet.

", + "NetworkInterface$VpcId": "

The ID of the VPC.

", + "NetworkInterface$AvailabilityZone": "

The Availability Zone.

", + "NetworkInterface$Description": "

A description.

", + "NetworkInterface$OwnerId": "

The AWS account ID of the owner of the network interface.

", + "NetworkInterface$RequesterId": "

The ID of the entity that launched the instance on your behalf (for example, AWS Management Console or Auto Scaling).

", + "NetworkInterface$MacAddress": "

The MAC address.

", + "NetworkInterface$PrivateIpAddress": "

The IPv4 address of the network interface within the subnet.

", + "NetworkInterface$PrivateDnsName": "

The private DNS name.

", + "NetworkInterfaceAssociation$PublicIp": "

The address of the Elastic IP address bound to the network interface.

", + "NetworkInterfaceAssociation$PublicDnsName": "

The public DNS name.

", + "NetworkInterfaceAssociation$IpOwnerId": "

The ID of the Elastic IP address owner.

", + "NetworkInterfaceAssociation$AllocationId": "

The allocation ID.

", + "NetworkInterfaceAssociation$AssociationId": "

The association ID.

", + "NetworkInterfaceAttachment$AttachmentId": "

The ID of the network interface attachment.

", + "NetworkInterfaceAttachment$InstanceId": "

The ID of the instance.

", + "NetworkInterfaceAttachment$InstanceOwnerId": "

The AWS account ID of the owner of the instance.

", + "NetworkInterfaceAttachmentChanges$AttachmentId": "

The ID of the network interface attachment.

", + "NetworkInterfaceIdList$member": null, + "NetworkInterfaceIpv6Address$Ipv6Address": "

The IPv6 address.

", + "NetworkInterfacePrivateIpAddress$PrivateIpAddress": "

The private IPv4 address.

", + "NetworkInterfacePrivateIpAddress$PrivateDnsName": "

The private DNS name.

", + "NewDhcpConfiguration$Key": null, + "OwnerStringList$member": null, + "Placement$AvailabilityZone": "

The Availability Zone of the instance.

", + "Placement$GroupName": "

The name of the placement group the instance is in (for cluster compute instances).

", + "Placement$HostId": "

The ID of the Dedicated Host on which the instance resides. This parameter is not supported for the ImportInstance command.

", + "Placement$Affinity": "

The affinity setting for the instance on the Dedicated Host. This parameter is not supported for the ImportInstance command.

", + "PlacementGroup$GroupName": "

The name of the placement group.

", + "PlacementGroupStringList$member": null, + "PrefixList$PrefixListId": "

The ID of the prefix.

", + "PrefixList$PrefixListName": "

The name of the prefix.

", + "PrefixListId$PrefixListId": "

The ID of the prefix.

", + "PrefixListIdSet$member": null, + "PrivateIpAddressSpecification$PrivateIpAddress": "

The private IPv4 addresses.

", + "PrivateIpAddressStringList$member": null, + "ProductCode$ProductCodeId": "

The product code.

", + "ProductCodeStringList$member": null, + "ProductDescriptionList$member": null, + "PropagatingVgw$GatewayId": "

The ID of the virtual private gateway (VGW).

", + "ProvisionedBandwidth$Provisioned": "

Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

", + "ProvisionedBandwidth$Requested": "

Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

", + "ProvisionedBandwidth$Status": "

Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

", + "PublicIpStringList$member": null, + "Purchase$HostReservationId": "

The ID of the reservation.

", + "Purchase$InstanceFamily": "

The instance family on the Dedicated Host that the reservation can be associated with.

", + "Purchase$UpfrontPrice": "

The upfront price of the reservation.

", + "Purchase$HourlyPrice": "

The hourly price of the reservation per hour.

", + "PurchaseHostReservationRequest$OfferingId": "

The ID of the offering.

", + "PurchaseHostReservationRequest$LimitPrice": "

The specified limit is checked against the total upfront cost of the reservation (calculated as the offering's upfront cost multiplied by the host count). If the total upfront cost is greater than the specified price limit, the request will fail. This is used to ensure that the purchase does not exceed the expected upfront cost of the purchase. At this time, the only supported currency is USD. For example, to indicate a limit price of USD 100, specify 100.00.

", + "PurchaseHostReservationRequest$ClientToken": "

Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

", + "PurchaseHostReservationResult$TotalUpfrontPrice": "

The total amount that will be charged to your account when you purchase the reservation.

", + "PurchaseHostReservationResult$TotalHourlyPrice": "

The total hourly price of the reservation calculated per hour.

", + "PurchaseHostReservationResult$ClientToken": "

Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide

", + "PurchaseRequest$PurchaseToken": "

The purchase token.

", + "PurchaseReservedInstancesOfferingRequest$ReservedInstancesOfferingId": "

The ID of the Reserved Instance offering to purchase.

", + "PurchaseReservedInstancesOfferingResult$ReservedInstancesId": "

The IDs of the purchased Reserved Instances.

", + "PurchaseScheduledInstancesRequest$ClientToken": "

Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.

", + "Region$RegionName": "

The name of the region.

", + "Region$Endpoint": "

The region service endpoint.

", + "RegionNameStringList$member": null, + "RegisterImageRequest$ImageLocation": "

The full path to your AMI manifest in Amazon S3 storage.

", + "RegisterImageRequest$Name": "

A name for your AMI.

Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)

", + "RegisterImageRequest$Description": "

A description for your AMI.

", + "RegisterImageRequest$KernelId": "

The ID of the kernel.

", + "RegisterImageRequest$RamdiskId": "

The ID of the RAM disk.

", + "RegisterImageRequest$RootDeviceName": "

The name of the root device (for example, /dev/sda1, or /dev/xvda).

", + "RegisterImageRequest$VirtualizationType": "

The type of virtualization.

Default: paravirtual

", + "RegisterImageRequest$SriovNetSupport": "

Set to simple to enable enhanced networking with the Intel 82599 Virtual Function interface for the AMI and any instances that you launch from the AMI.

There is no way to disable sriovNetSupport at this time.

This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from the AMI unreachable.

", + "RegisterImageResult$ImageId": "

The ID of the newly registered AMI.

", + "RejectVpcPeeringConnectionRequest$VpcPeeringConnectionId": "

The ID of the VPC peering connection.

", + "ReleaseAddressRequest$PublicIp": "

[EC2-Classic] The Elastic IP address. Required for EC2-Classic.

", + "ReleaseAddressRequest$AllocationId": "

[EC2-VPC] The allocation ID. Required for EC2-VPC.

", + "ReplaceIamInstanceProfileAssociationRequest$AssociationId": "

The ID of the existing IAM instance profile association.

", + "ReplaceNetworkAclAssociationRequest$AssociationId": "

The ID of the current association between the original network ACL and the subnet.

", + "ReplaceNetworkAclAssociationRequest$NetworkAclId": "

The ID of the new network ACL to associate with the subnet.

", + "ReplaceNetworkAclAssociationResult$NewAssociationId": "

The ID of the new association.

", + "ReplaceNetworkAclEntryRequest$NetworkAclId": "

The ID of the ACL.

", + "ReplaceNetworkAclEntryRequest$Protocol": "

The IP protocol. You can specify all or -1 to mean all protocols. If you specify all, -1, or a protocol number other than tcp, udp, or icmp, traffic on all ports is allowed, regardless of any ports or ICMP types or codes you specify. If you specify protocol 58 (ICMPv6) and specify an IPv4 CIDR block, traffic for all ICMP types and codes allowed, regardless of any that you specify. If you specify protocol 58 (ICMPv6) and specify an IPv6 CIDR block, you must specify an ICMP type and code.

", + "ReplaceNetworkAclEntryRequest$CidrBlock": "

The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24).

", + "ReplaceNetworkAclEntryRequest$Ipv6CidrBlock": "

The IPv6 network range to allow or deny, in CIDR notation (for example 2001:bd8:1234:1a00::/64).

", + "ReplaceRouteRequest$RouteTableId": "

The ID of the route table.

", + "ReplaceRouteRequest$DestinationCidrBlock": "

The IPv4 CIDR address block used for the destination match. The value you provide must match the CIDR of an existing route in the table.

", + "ReplaceRouteRequest$GatewayId": "

The ID of an Internet gateway or virtual private gateway.

", + "ReplaceRouteRequest$DestinationIpv6CidrBlock": "

The IPv6 CIDR address block used for the destination match. The value you provide must match the CIDR of an existing route in the table.

", + "ReplaceRouteRequest$EgressOnlyInternetGatewayId": "

[IPv6 traffic only] The ID of an egress-only Internet gateway.

", + "ReplaceRouteRequest$InstanceId": "

The ID of a NAT instance in your VPC.

", + "ReplaceRouteRequest$NetworkInterfaceId": "

The ID of a network interface.

", + "ReplaceRouteRequest$VpcPeeringConnectionId": "

The ID of a VPC peering connection.

", + "ReplaceRouteRequest$NatGatewayId": "

[IPv4 traffic only] The ID of a NAT gateway.

", + "ReplaceRouteTableAssociationRequest$AssociationId": "

The association ID.

", + "ReplaceRouteTableAssociationRequest$RouteTableId": "

The ID of the new route table to associate with the subnet.

", + "ReplaceRouteTableAssociationResult$NewAssociationId": "

The ID of the new association.

", + "ReportInstanceStatusRequest$Description": "

Descriptive text about the health state of your instance.

", + "RequestHostIdList$member": null, + "RequestHostIdSet$member": null, + "RequestSpotFleetResponse$SpotFleetRequestId": "

The ID of the Spot fleet request.

", + "RequestSpotInstancesRequest$SpotPrice": "

The maximum hourly price (bid) for any Spot instance launched to fulfill the request.

", + "RequestSpotInstancesRequest$ClientToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

", + "RequestSpotInstancesRequest$LaunchGroup": "

The instance launch group. Launch groups are Spot instances that launch together and terminate together.

Default: Instances are launched and terminated individually

", + "RequestSpotInstancesRequest$AvailabilityZoneGroup": "

The user-specified name for a logical grouping of bids.

When you specify an Availability Zone group in a Spot Instance request, all Spot instances in the request are launched in the same Availability Zone. Instance proximity is maintained with this parameter, but the choice of Availability Zone is not. The group applies only to bids for Spot Instances of the same instance type. Any additional Spot instance requests that are specified with the same Availability Zone group name are launched in that same Availability Zone, as long as at least one instance from the group is still active.

If there is no active instance running in the Availability Zone group that you specify for a new Spot instance request (all instances are terminated, the bid is expired, or the bid falls below current market), then Amazon EC2 launches the instance in any Availability Zone where the constraint can be met. Consequently, the subsequent set of Spot instances could be placed in a different zone from the original request, even if you specified the same Availability Zone group.

Default: Instances are launched in any available Availability Zone.

", + "RequestSpotLaunchSpecification$ImageId": "

The ID of the AMI.

", + "RequestSpotLaunchSpecification$KeyName": "

The name of the key pair.

", + "RequestSpotLaunchSpecification$UserData": "

The user data to make available to the instances. If you are using an AWS SDK or command line tool, Base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide Base64-encoded text.

", + "RequestSpotLaunchSpecification$AddressingType": "

Deprecated.

", + "RequestSpotLaunchSpecification$KernelId": "

The ID of the kernel.

", + "RequestSpotLaunchSpecification$RamdiskId": "

The ID of the RAM disk.

", + "RequestSpotLaunchSpecification$SubnetId": "

The ID of the subnet in which to launch the instance.

", + "Reservation$ReservationId": "

The ID of the reservation.

", + "Reservation$OwnerId": "

The ID of the AWS account that owns the reservation.

", + "Reservation$RequesterId": "

The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).

", + "ReservationValue$RemainingTotalValue": "

The balance of the total value (the sum of remainingUpfrontValue + hourlyPrice * number of hours remaining).

", + "ReservationValue$RemainingUpfrontValue": "

The remaining upfront cost of the reservation.

", + "ReservationValue$HourlyPrice": "

The hourly rate of the reservation.

", + "ReservedInstanceIdSet$member": null, + "ReservedInstanceReservationValue$ReservedInstanceId": "

The ID of the Convertible Reserved Instance that you are exchanging.

", + "ReservedInstances$ReservedInstancesId": "

The ID of the Reserved Instance.

", + "ReservedInstances$AvailabilityZone": "

The Availability Zone in which the Reserved Instance can be used.

", + "ReservedInstancesConfiguration$AvailabilityZone": "

The Availability Zone for the modified Reserved Instances.

", + "ReservedInstancesConfiguration$Platform": "

The network platform of the modified Reserved Instances, which is either EC2-Classic or EC2-VPC.

", + "ReservedInstancesId$ReservedInstancesId": "

The ID of the Reserved Instance.

", + "ReservedInstancesIdStringList$member": null, + "ReservedInstancesListing$ReservedInstancesListingId": "

The ID of the Reserved Instance listing.

", + "ReservedInstancesListing$ReservedInstancesId": "

The ID of the Reserved Instance.

", + "ReservedInstancesListing$StatusMessage": "

The reason for the current status of the Reserved Instance listing. The response can be blank.

", + "ReservedInstancesListing$ClientToken": "

A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.

", + "ReservedInstancesModification$ReservedInstancesModificationId": "

A unique ID for the Reserved Instance modification.

", + "ReservedInstancesModification$Status": "

The status of the Reserved Instances modification request.

", + "ReservedInstancesModification$StatusMessage": "

The reason for the status.

", + "ReservedInstancesModification$ClientToken": "

A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.

", + "ReservedInstancesModificationIdStringList$member": null, + "ReservedInstancesModificationResult$ReservedInstancesId": "

The ID for the Reserved Instances that were created as part of the modification request. This field is only available when the modification is fulfilled.

", + "ReservedInstancesOffering$ReservedInstancesOfferingId": "

The ID of the Reserved Instance offering. This is the offering ID used in GetReservedInstancesExchangeQuote to confirm that an exchange can be made.

", + "ReservedInstancesOffering$AvailabilityZone": "

The Availability Zone in which the Reserved Instance can be used.

", + "ReservedInstancesOfferingIdStringList$member": null, + "ResetImageAttributeRequest$ImageId": "

The ID of the AMI.

", + "ResetInstanceAttributeRequest$InstanceId": "

The ID of the instance.

", + "ResetNetworkInterfaceAttributeRequest$NetworkInterfaceId": "

The ID of the network interface.

", + "ResetNetworkInterfaceAttributeRequest$SourceDestCheck": "

The source/destination checking attribute. Resets the value to true.

", + "ResetSnapshotAttributeRequest$SnapshotId": "

The ID of the snapshot.

", + "ResourceIdList$member": null, + "ResponseHostIdList$member": null, + "ResponseHostIdSet$member": null, + "RestorableByStringList$member": null, + "RestoreAddressToClassicRequest$PublicIp": "

The Elastic IP address.

", + "RestoreAddressToClassicResult$PublicIp": "

The Elastic IP address.

", + "RevokeSecurityGroupEgressRequest$GroupId": "

The ID of the security group.

", + "RevokeSecurityGroupEgressRequest$SourceSecurityGroupName": "

The name of a destination security group. To revoke outbound access to a destination security group, we recommend that you use a set of IP permissions instead.

", + "RevokeSecurityGroupEgressRequest$SourceSecurityGroupOwnerId": "

The AWS account number for a destination security group. To revoke outbound access to a destination security group, we recommend that you use a set of IP permissions instead.

", + "RevokeSecurityGroupEgressRequest$IpProtocol": "

The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions instead.

", + "RevokeSecurityGroupEgressRequest$CidrIp": "

The CIDR IP address range. We recommend that you specify the CIDR range in a set of IP permissions instead.

", + "RevokeSecurityGroupIngressRequest$GroupName": "

[EC2-Classic, default VPC] The name of the security group.

", + "RevokeSecurityGroupIngressRequest$GroupId": "

The ID of the security group. Required for a security group in a nondefault VPC.

", + "RevokeSecurityGroupIngressRequest$SourceSecurityGroupName": "

[EC2-Classic, default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. For EC2-VPC, the source security group must be in the same VPC. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.

", + "RevokeSecurityGroupIngressRequest$SourceSecurityGroupOwnerId": "

[EC2-Classic] The AWS account ID of the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.

", + "RevokeSecurityGroupIngressRequest$IpProtocol": "

The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers). Use -1 to specify all.

", + "RevokeSecurityGroupIngressRequest$CidrIp": "

The CIDR IP address range. You can't specify this parameter when specifying a source security group.

", + "Route$DestinationCidrBlock": "

The IPv4 CIDR block used for the destination match.

", + "Route$DestinationPrefixListId": "

The prefix of the AWS service.

", + "Route$GatewayId": "

The ID of a gateway attached to your VPC.

", + "Route$InstanceId": "

The ID of a NAT instance in your VPC.

", + "Route$InstanceOwnerId": "

The AWS account ID of the owner of the instance.

", + "Route$NetworkInterfaceId": "

The ID of the network interface.

", + "Route$VpcPeeringConnectionId": "

The ID of the VPC peering connection.

", + "Route$NatGatewayId": "

The ID of a NAT gateway.

", + "Route$DestinationIpv6CidrBlock": "

The IPv6 CIDR block used for the destination match.

", + "Route$EgressOnlyInternetGatewayId": "

The ID of the egress-only Internet gateway.

", + "RouteTable$RouteTableId": "

The ID of the route table.

", + "RouteTable$VpcId": "

The ID of the VPC.

", + "RouteTableAssociation$RouteTableAssociationId": "

The ID of the association between a route table and a subnet.

", + "RouteTableAssociation$RouteTableId": "

The ID of the route table.

", + "RouteTableAssociation$SubnetId": "

The ID of the subnet. A subnet ID is not returned for an implicit association.

", + "RunInstancesRequest$ImageId": "

The ID of the AMI, which you can get by calling DescribeImages.

", + "RunInstancesRequest$KeyName": "

The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.

If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.

", + "RunInstancesRequest$UserData": "

The user data to make available to the instance. For more information, see Running Commands on Your Linux Instance at Launch (Linux) and Adding User Data (Windows). If you are using an AWS SDK or command line tool, Base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide Base64-encoded text.

", + "RunInstancesRequest$KernelId": "

The ID of the kernel.

We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon Elastic Compute Cloud User Guide.

", + "RunInstancesRequest$RamdiskId": "

The ID of the RAM disk.

We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon Elastic Compute Cloud User Guide.

", + "RunInstancesRequest$SubnetId": "

[EC2-VPC] The ID of the subnet to launch the instance into.

", + "RunInstancesRequest$PrivateIpAddress": "

[EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4 address range of the subnet.

Only one private IP address can be designated as primary. You can't specify this option if you've specified the option to designate a private IP address as the primary IP address in a network interface specification. You cannot specify this option if you're launching more than one instance in the request.

", + "RunInstancesRequest$ClientToken": "

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.

Constraints: Maximum 64 ASCII characters

", + "RunInstancesRequest$AdditionalInfo": "

Reserved.

", + "RunScheduledInstancesRequest$ClientToken": "

Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.

", + "RunScheduledInstancesRequest$ScheduledInstanceId": "

The Scheduled Instance ID.

", + "S3Storage$Bucket": "

The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.

", + "S3Storage$Prefix": "

The beginning of the file name of the AMI.

", + "S3Storage$AWSAccessKeyId": "

The access key ID of the owner of the bucket. Before you specify a value for your access key ID, review and follow the guidance in Best Practices for Managing AWS Access Keys.

", + "S3Storage$UploadPolicySignature": "

The signature of the JSON document.

", + "ScheduledInstance$ScheduledInstanceId": "

The Scheduled Instance ID.

", + "ScheduledInstance$InstanceType": "

The instance type.

", + "ScheduledInstance$Platform": "

The platform (Linux/UNIX or Windows).

", + "ScheduledInstance$NetworkPlatform": "

The network platform (EC2-Classic or EC2-VPC).

", + "ScheduledInstance$AvailabilityZone": "

The Availability Zone.

", + "ScheduledInstance$HourlyPrice": "

The hourly price for a single instance.

", + "ScheduledInstanceAvailability$InstanceType": "

The instance type. You can specify one of the C3, C4, M4, or R3 instance types.

", + "ScheduledInstanceAvailability$Platform": "

The platform (Linux/UNIX or Windows).

", + "ScheduledInstanceAvailability$NetworkPlatform": "

The network platform (EC2-Classic or EC2-VPC).

", + "ScheduledInstanceAvailability$AvailabilityZone": "

The Availability Zone.

", + "ScheduledInstanceAvailability$PurchaseToken": "

The purchase token. This token expires in two hours.

", + "ScheduledInstanceAvailability$HourlyPrice": "

The hourly price for a single instance.

", + "ScheduledInstanceIdRequestSet$member": null, + "ScheduledInstanceRecurrence$Frequency": "

The frequency (Daily, Weekly, or Monthly).

", + "ScheduledInstanceRecurrence$OccurrenceUnit": "

The unit for occurrenceDaySet (DayOfWeek or DayOfMonth).

", + "ScheduledInstanceRecurrenceRequest$Frequency": "

The frequency (Daily, Weekly, or Monthly).

", + "ScheduledInstanceRecurrenceRequest$OccurrenceUnit": "

The unit for OccurrenceDays (DayOfWeek or DayOfMonth). This value is required for a monthly schedule. You can't specify DayOfWeek with a weekly schedule. You can't specify this value with a daily schedule.

", + "ScheduledInstancesBlockDeviceMapping$DeviceName": "

The device name exposed to the instance (for example, /dev/sdh or xvdh).

", + "ScheduledInstancesBlockDeviceMapping$NoDevice": "

Suppresses the specified device included in the block device mapping of the AMI.

", + "ScheduledInstancesBlockDeviceMapping$VirtualName": "

The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with two available instance store volumes can specify mappings for ephemeral0 and ephemeral1.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.

Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.

", + "ScheduledInstancesEbs$SnapshotId": "

The ID of the snapshot.

", + "ScheduledInstancesEbs$VolumeType": "

The volume type. gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD, Throughput Optimized HDD for st1, Cold HDD for sc1, or standard for Magnetic.

Default: standard

", + "ScheduledInstancesIamInstanceProfile$Arn": "

The Amazon Resource Name (ARN).

", + "ScheduledInstancesIamInstanceProfile$Name": "

The name.

", + "ScheduledInstancesLaunchSpecification$ImageId": "

The ID of the Amazon Machine Image (AMI).

", + "ScheduledInstancesLaunchSpecification$KeyName": "

The name of the key pair.

", + "ScheduledInstancesLaunchSpecification$UserData": "

The base64-encoded MIME user data.

", + "ScheduledInstancesLaunchSpecification$KernelId": "

The ID of the kernel.

", + "ScheduledInstancesLaunchSpecification$InstanceType": "

The instance type.

", + "ScheduledInstancesLaunchSpecification$RamdiskId": "

The ID of the RAM disk.

", + "ScheduledInstancesLaunchSpecification$SubnetId": "

The ID of the subnet in which to launch the instances.

", + "ScheduledInstancesNetworkInterface$NetworkInterfaceId": "

The ID of the network interface.

", + "ScheduledInstancesNetworkInterface$SubnetId": "

The ID of the subnet.

", + "ScheduledInstancesNetworkInterface$Description": "

The description.

", + "ScheduledInstancesNetworkInterface$PrivateIpAddress": "

The IPv4 address of the network interface within the subnet.

", + "ScheduledInstancesPlacement$AvailabilityZone": "

The Availability Zone.

", + "ScheduledInstancesPlacement$GroupName": "

The name of the placement group.

", + "ScheduledInstancesPrivateIpAddressConfig$PrivateIpAddress": "

The IPv4 address.

", + "ScheduledInstancesSecurityGroupIdSet$member": null, + "SecurityGroup$OwnerId": "

The AWS account ID of the owner of the security group.

", + "SecurityGroup$GroupName": "

The name of the security group.

", + "SecurityGroup$GroupId": "

The ID of the security group.

", + "SecurityGroup$Description": "

A description of the security group.

", + "SecurityGroup$VpcId": "

[EC2-VPC] The ID of the VPC for the security group.

", + "SecurityGroupIdStringList$member": null, + "SecurityGroupReference$GroupId": "

The ID of your security group.

", + "SecurityGroupReference$ReferencingVpcId": "

The ID of the VPC with the referencing security group.

", + "SecurityGroupReference$VpcPeeringConnectionId": "

The ID of the VPC peering connection.

", + "SecurityGroupStringList$member": null, + "Snapshot$SnapshotId": "

The ID of the snapshot. Each snapshot receives a unique identifier when it is created.

", + "Snapshot$VolumeId": "

The ID of the volume that was used to create the snapshot. Snapshots created by the CopySnapshot action have an arbitrary volume ID that should not be used for any purpose.

", + "Snapshot$StateMessage": "

Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails (for example, if the proper AWS Key Management Service (AWS KMS) permissions are not obtained) this field displays error state details to help you diagnose why the error occurred. This parameter is only returned by the DescribeSnapshots API operation.

", + "Snapshot$Progress": "

The progress of the snapshot, as a percentage.

", + "Snapshot$OwnerId": "

The AWS account ID of the EBS snapshot owner.

", + "Snapshot$Description": "

The description for the snapshot.

", + "Snapshot$OwnerAlias": "

Value from an Amazon-maintained list (amazon | aws-marketplace | microsoft) of snapshot owners. Not to be confused with the user-configured AWS account alias, which is set from the IAM console.

", + "Snapshot$KmsKeyId": "

The full ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the parent volume.

", + "Snapshot$DataEncryptionKeyId": "

The data encryption key identifier for the snapshot. This value is a unique identifier that corresponds to the data encryption key that was used to encrypt the original volume or snapshot copy. Because data encryption keys are inherited by volumes created from snapshots, and vice versa, if snapshots share the same data encryption key identifier, then they belong to the same volume/snapshot lineage. This parameter is only returned by the DescribeSnapshots API operation.

", + "SnapshotDetail$Description": "

A description for the snapshot.

", + "SnapshotDetail$Format": "

The format of the disk image from which the snapshot is created.

", + "SnapshotDetail$Url": "

The URL used to access the disk image.

", + "SnapshotDetail$DeviceName": "

The block device mapping for the snapshot.

", + "SnapshotDetail$SnapshotId": "

The snapshot ID of the disk being imported.

", + "SnapshotDetail$Progress": "

The percentage of progress for the task.

", + "SnapshotDetail$StatusMessage": "

A detailed status message for the snapshot creation.

", + "SnapshotDetail$Status": "

A brief status of the snapshot creation.

", + "SnapshotDiskContainer$Description": "

The description of the disk image being imported.

", + "SnapshotDiskContainer$Format": "

The format of the disk image being imported.

Valid values: RAW | VHD | VMDK | OVA

", + "SnapshotDiskContainer$Url": "

The URL to the Amazon S3-based disk image being imported. It can either be a https URL (https://..) or an Amazon S3 URL (s3://..).

", + "SnapshotIdStringList$member": null, + "SnapshotTaskDetail$Description": "

The description of the snapshot.

", + "SnapshotTaskDetail$Format": "

The format of the disk image from which the snapshot is created.

", + "SnapshotTaskDetail$Url": "

The URL of the disk image from which the snapshot is created.

", + "SnapshotTaskDetail$SnapshotId": "

The snapshot ID of the disk being imported.

", + "SnapshotTaskDetail$Progress": "

The percentage of completion for the import snapshot task.

", + "SnapshotTaskDetail$StatusMessage": "

A detailed status message for the import snapshot task.

", + "SnapshotTaskDetail$Status": "

A brief status for the import snapshot task.

", + "SpotDatafeedSubscription$OwnerId": "

The AWS account ID of the account.

", + "SpotDatafeedSubscription$Bucket": "

The Amazon S3 bucket where the Spot instance data feed is located.

", + "SpotDatafeedSubscription$Prefix": "

The prefix that is prepended to data feed files.

", + "SpotFleetLaunchSpecification$ImageId": "

The ID of the AMI.

", + "SpotFleetLaunchSpecification$KeyName": "

The name of the key pair.

", + "SpotFleetLaunchSpecification$UserData": "

The user data to make available to the instances. If you are using an AWS SDK or command line tool, Base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide Base64-encoded text.

", + "SpotFleetLaunchSpecification$AddressingType": "

Deprecated.

", + "SpotFleetLaunchSpecification$KernelId": "

The ID of the kernel.

", + "SpotFleetLaunchSpecification$RamdiskId": "

The ID of the RAM disk.

", + "SpotFleetLaunchSpecification$SubnetId": "

The ID of the subnet in which to launch the instances. To specify multiple subnets, separate them using commas; for example, \"subnet-a61dafcf, subnet-65ea5f08\".

", + "SpotFleetLaunchSpecification$SpotPrice": "

The bid price per unit hour for the specified instance type. If this value is not specified, the default is the Spot bid price specified for the fleet. To determine the bid price per unit hour, divide the Spot bid price by the value of WeightedCapacity.

", + "SpotFleetRequestConfig$SpotFleetRequestId": "

The ID of the Spot fleet request.

", + "SpotFleetRequestConfigData$ClientToken": "

A unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.

", + "SpotFleetRequestConfigData$SpotPrice": "

The bid price per unit hour.

", + "SpotFleetRequestConfigData$IamFleetRole": "

Grants the Spot fleet permission to terminate Spot instances on your behalf when you cancel its Spot fleet request using CancelSpotFleetRequests or when the Spot fleet request expires, if you set terminateInstancesWithExpiration.

", + "SpotInstanceRequest$SpotInstanceRequestId": "

The ID of the Spot instance request.

", + "SpotInstanceRequest$SpotPrice": "

The maximum hourly price (bid) for the Spot instance launched to fulfill the request.

", + "SpotInstanceRequest$LaunchGroup": "

The instance launch group. Launch groups are Spot instances that launch together and terminate together.

", + "SpotInstanceRequest$AvailabilityZoneGroup": "

The Availability Zone group. If you specify the same Availability Zone group for all Spot instance requests, all Spot instances are launched in the same Availability Zone.

", + "SpotInstanceRequest$InstanceId": "

The instance ID, if an instance has been launched to fulfill the Spot instance request.

", + "SpotInstanceRequest$ActualBlockHourlyPrice": "

If you specified a duration and your Spot instance request was fulfilled, this is the fixed hourly price in effect for the Spot instance while it runs.

", + "SpotInstanceRequest$LaunchedAvailabilityZone": "

The Availability Zone in which the bid is launched.

", + "SpotInstanceRequestIdList$member": null, + "SpotInstanceStateFault$Code": "

The reason code for the Spot instance state change.

", + "SpotInstanceStateFault$Message": "

The message for the Spot instance state change.

", + "SpotInstanceStatus$Code": "

The status code. For a list of status codes, see Spot Bid Status Codes in the Amazon Elastic Compute Cloud User Guide.

", + "SpotInstanceStatus$Message": "

The description for the status code.

", + "SpotPlacement$AvailabilityZone": "

The Availability Zone.

[Spot fleet only] To specify multiple Availability Zones, separate them using commas; for example, \"us-west-2a, us-west-2b\".

", + "SpotPlacement$GroupName": "

The name of the placement group (for cluster instances).

", + "SpotPrice$SpotPrice": "

The maximum price (bid) that you are willing to pay for a Spot instance.

", + "SpotPrice$AvailabilityZone": "

The Availability Zone.

", + "StaleIpPermission$IpProtocol": "

The IP protocol name (for tcp, udp, and icmp) or number (see Protocol Numbers).

", + "StaleSecurityGroup$GroupId": "

The ID of the security group.

", + "StaleSecurityGroup$GroupName": "

The name of the security group.

", + "StaleSecurityGroup$Description": "

The description of the security group.

", + "StaleSecurityGroup$VpcId": "

The ID of the VPC for the security group.

", + "StartInstancesRequest$AdditionalInfo": "

Reserved.

", + "StateReason$Code": "

The reason code for the state change.

", + "StateReason$Message": "

The message for the state change.

  • Server.InsufficientInstanceCapacity: There was insufficient instance capacity to satisfy the launch request.

  • Server.InternalError: An internal error occurred during instance launch, resulting in termination.

  • Server.ScheduledStop: The instance was stopped due to a scheduled retirement.

  • Server.SpotInstanceTermination: A Spot instance was terminated due to an increase in the market price.

  • Client.InternalError: A client error caused the instance to terminate on launch.

  • Client.InstanceInitiatedShutdown: The instance was shut down using the shutdown -h command from the instance.

  • Client.UserInitiatedShutdown: The instance was shut down using the Amazon EC2 API.

  • Client.VolumeLimitExceeded: The limit on the number of EBS volumes or total storage was exceeded. Decrease usage or request an increase in your limits.

  • Client.InvalidSnapshot.NotFound: The specified snapshot was not found.

", + "Subnet$SubnetId": "

The ID of the subnet.

", + "Subnet$VpcId": "

The ID of the VPC the subnet is in.

", + "Subnet$CidrBlock": "

The IPv4 CIDR block assigned to the subnet.

", + "Subnet$AvailabilityZone": "

The Availability Zone of the subnet.

", + "SubnetCidrBlockState$StatusMessage": "

A message about the status of the CIDR block, if applicable.

", + "SubnetIdStringList$member": null, + "SubnetIpv6CidrBlockAssociation$Ipv6CidrBlock": "

The IPv6 CIDR block.

", + "SubnetIpv6CidrBlockAssociation$AssociationId": "

The association ID for the CIDR block.

", + "Tag$Key": "

The key of the tag.

Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:

", + "Tag$Value": "

The value of the tag.

Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.

", + "TagDescription$ResourceId": "

The ID of the resource. For example, ami-1a2b3c4d.

", + "TagDescription$Key": "

The tag key.

", + "TagDescription$Value": "

The tag value.

", + "TargetConfiguration$OfferingId": "

The ID of the Convertible Reserved Instance offering.

", + "TargetConfigurationRequest$OfferingId": "

The Convertible Reserved Instance offering ID.

", + "UnassignIpv6AddressesRequest$NetworkInterfaceId": "

The ID of the network interface.

", + "UnassignIpv6AddressesResult$NetworkInterfaceId": "

The ID of the network interface.

", + "UnassignPrivateIpAddressesRequest$NetworkInterfaceId": "

The ID of the network interface.

", + "UnsuccessfulItem$ResourceId": "

The ID of the resource.

", + "UnsuccessfulItemError$Code": "

The error code.

", + "UnsuccessfulItemError$Message": "

The error message accompanying the error code.

", + "UserBucket$S3Bucket": "

The name of the S3 bucket where the disk image is located.

", + "UserBucket$S3Key": "

The file name of the disk image.

", + "UserBucketDetails$S3Bucket": "

The S3 bucket from which the disk image was created.

", + "UserBucketDetails$S3Key": "

The file name of the disk image.

", + "UserData$Data": "

The user data. If you are using an AWS SDK or command line tool, Base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide Base64-encoded text.

", + "UserGroupStringList$member": null, + "UserIdGroupPair$UserId": "

The ID of an AWS account. For a referenced security group in another VPC, the account ID of the referenced security group is returned.

[EC2-Classic] Required when adding or removing rules that reference a security group in another AWS account.

", + "UserIdGroupPair$GroupName": "

The name of the security group. In a request, use this parameter for a security group in EC2-Classic or a default VPC only. For a security group in a nondefault VPC, use the security group ID.

", + "UserIdGroupPair$GroupId": "

The ID of the security group.

", + "UserIdGroupPair$VpcId": "

The ID of the VPC for the referenced security group, if applicable.

", + "UserIdGroupPair$VpcPeeringConnectionId": "

The ID of the VPC peering connection, if applicable.

", + "UserIdGroupPair$PeeringStatus": "

The status of a VPC peering connection, if applicable.

", + "UserIdStringList$member": null, + "ValueStringList$member": null, + "VgwTelemetry$OutsideIpAddress": "

The Internet-routable IP address of the virtual private gateway's outside interface.

", + "VgwTelemetry$StatusMessage": "

If an error occurs, a description of the error.

", + "Volume$VolumeId": "

The ID of the volume.

", + "Volume$SnapshotId": "

The snapshot from which the volume was created, if applicable.

", + "Volume$AvailabilityZone": "

The Availability Zone for the volume.

", + "Volume$KmsKeyId": "

The full ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the volume.

", + "VolumeAttachment$VolumeId": "

The ID of the volume.

", + "VolumeAttachment$InstanceId": "

The ID of the instance.

", + "VolumeAttachment$Device": "

The device name.

", + "VolumeIdStringList$member": null, + "VolumeModification$VolumeId": "

ID of the volume being modified.

", + "VolumeModification$StatusMessage": "

Generic status message on modification progress or failure.

", + "VolumeStatusAction$Code": "

The code identifying the operation, for example, enable-volume-io.

", + "VolumeStatusAction$Description": "

A description of the operation.

", + "VolumeStatusAction$EventType": "

The event type associated with this operation.

", + "VolumeStatusAction$EventId": "

The ID of the event associated with this operation.

", + "VolumeStatusDetails$Status": "

The intended status of the volume status.

", + "VolumeStatusEvent$EventType": "

The type of this event.

", + "VolumeStatusEvent$Description": "

A description of the event.

", + "VolumeStatusEvent$EventId": "

The ID of this event.

", + "VolumeStatusItem$VolumeId": "

The volume ID.

", + "VolumeStatusItem$AvailabilityZone": "

The Availability Zone of the volume.

", + "Vpc$VpcId": "

The ID of the VPC.

", + "Vpc$CidrBlock": "

The IPv4 CIDR block for the VPC.

", + "Vpc$DhcpOptionsId": "

The ID of the set of DHCP options you've associated with the VPC (or default if the default options are associated with the VPC).

", + "VpcAttachment$VpcId": "

The ID of the VPC.

", + "VpcCidrBlockState$StatusMessage": "

A message about the status of the CIDR block, if applicable.

", + "VpcClassicLink$VpcId": "

The ID of the VPC.

", + "VpcClassicLinkIdList$member": null, + "VpcEndpoint$VpcEndpointId": "

The ID of the VPC endpoint.

", + "VpcEndpoint$VpcId": "

The ID of the VPC to which the endpoint is associated.

", + "VpcEndpoint$ServiceName": "

The name of the AWS service to which the endpoint is associated.

", + "VpcEndpoint$PolicyDocument": "

The policy document associated with the endpoint.

", + "VpcIdStringList$member": null, + "VpcIpv6CidrBlockAssociation$Ipv6CidrBlock": "

The IPv6 CIDR block.

", + "VpcIpv6CidrBlockAssociation$AssociationId": "

The association ID for the IPv6 CIDR block.

", + "VpcPeeringConnection$VpcPeeringConnectionId": "

The ID of the VPC peering connection.

", + "VpcPeeringConnectionStateReason$Message": "

A message that provides more information about the status, if applicable.

", + "VpcPeeringConnectionVpcInfo$CidrBlock": "

The IPv4 CIDR block for the VPC.

", + "VpcPeeringConnectionVpcInfo$OwnerId": "

The AWS account ID of the VPC owner.

", + "VpcPeeringConnectionVpcInfo$VpcId": "

The ID of the VPC.

", + "VpnConnection$VpnConnectionId": "

The ID of the VPN connection.

", + "VpnConnection$CustomerGatewayConfiguration": "

The configuration information for the VPN connection's customer gateway (in the native XML format). This element is always present in the CreateVpnConnection response; however, it's present in the DescribeVpnConnections response only if the VPN connection is in the pending or available state.

", + "VpnConnection$CustomerGatewayId": "

The ID of the customer gateway at your end of the VPN connection.

", + "VpnConnection$VpnGatewayId": "

The ID of the virtual private gateway at the AWS side of the VPN connection.

", + "VpnConnectionIdStringList$member": null, + "VpnGateway$VpnGatewayId": "

The ID of the virtual private gateway.

", + "VpnGateway$AvailabilityZone": "

The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.

", + "VpnGatewayIdStringList$member": null, + "VpnStaticRoute$DestinationCidrBlock": "

The CIDR block associated with the local subnet of the customer data center.

", + "ZoneNameStringList$member": null + } + }, + "Subnet": { + "base": "

Describes a subnet.

", + "refs": { + "CreateSubnetResult$Subnet": "

Information about the subnet.

", + "SubnetList$member": null + } + }, + "SubnetCidrBlockState": { + "base": "

Describes the state of a CIDR block.

", + "refs": { + "SubnetIpv6CidrBlockAssociation$Ipv6CidrBlockState": "

Information about the state of the CIDR block.

" + } + }, + "SubnetCidrBlockStateCode": { + "base": null, + "refs": { + "SubnetCidrBlockState$State": "

The state of a CIDR block.

" + } + }, + "SubnetIdStringList": { + "base": null, + "refs": { + "DescribeSubnetsRequest$SubnetIds": "

One or more subnet IDs.

Default: Describes all your subnets.

" + } + }, + "SubnetIpv6CidrBlockAssociation": { + "base": "

Describes an IPv6 CIDR block associated with a subnet.

", + "refs": { + "AssociateSubnetCidrBlockResult$Ipv6CidrBlockAssociation": "

Information about the IPv6 CIDR block association.

", + "DisassociateSubnetCidrBlockResult$Ipv6CidrBlockAssociation": "

Information about the IPv6 CIDR block association.

", + "SubnetIpv6CidrBlockAssociationSet$member": null + } + }, + "SubnetIpv6CidrBlockAssociationSet": { + "base": null, + "refs": { + "Subnet$Ipv6CidrBlockAssociationSet": "

Information about the IPv6 CIDR blocks associated with the subnet.

" + } + }, + "SubnetList": { + "base": null, + "refs": { + "DescribeSubnetsResult$Subnets": "

Information about one or more subnets.

" + } + }, + "SubnetState": { + "base": null, + "refs": { + "Subnet$State": "

The current state of the subnet.

" + } + }, + "SummaryStatus": { + "base": null, + "refs": { + "InstanceStatusSummary$Status": "

The status.

" + } + }, + "Tag": { + "base": "

Describes a tag.

", + "refs": { + "TagList$member": null + } + }, + "TagDescription": { + "base": "

Describes a tag.

", + "refs": { + "TagDescriptionList$member": null + } + }, + "TagDescriptionList": { + "base": null, + "refs": { + "DescribeTagsResult$Tags": "

A list of tags.

" + } + }, + "TagList": { + "base": null, + "refs": { + "ClassicLinkInstance$Tags": "

Any tags assigned to the instance.

", + "ConversionTask$Tags": "

Any tags assigned to the task.

", + "CreateTagsRequest$Tags": "

One or more tags. The value parameter is required, but if you don't want the tag to have a value, specify the parameter with no value, and we set the value to an empty string.

", + "CustomerGateway$Tags": "

Any tags assigned to the customer gateway.

", + "DeleteTagsRequest$Tags": "

One or more tags to delete. If you omit the value parameter, we delete the tag regardless of its value. If you specify this parameter with an empty string as the value, we delete the key only if its value is an empty string.

", + "DhcpOptions$Tags": "

Any tags assigned to the DHCP options set.

", + "Image$Tags": "

Any tags assigned to the image.

", + "Instance$Tags": "

Any tags assigned to the instance.

", + "InternetGateway$Tags": "

Any tags assigned to the Internet gateway.

", + "NetworkAcl$Tags": "

Any tags assigned to the network ACL.

", + "NetworkInterface$TagSet": "

Any tags assigned to the network interface.

", + "ReservedInstances$Tags": "

Any tags assigned to the resource.

", + "ReservedInstancesListing$Tags": "

Any tags assigned to the resource.

", + "RouteTable$Tags": "

Any tags assigned to the route table.

", + "SecurityGroup$Tags": "

Any tags assigned to the security group.

", + "Snapshot$Tags": "

Any tags assigned to the snapshot.

", + "SpotInstanceRequest$Tags": "

Any tags assigned to the resource.

", + "Subnet$Tags": "

Any tags assigned to the subnet.

", + "Volume$Tags": "

Any tags assigned to the volume.

", + "Vpc$Tags": "

Any tags assigned to the VPC.

", + "VpcClassicLink$Tags": "

Any tags assigned to the VPC.

", + "VpcPeeringConnection$Tags": "

Any tags assigned to the resource.

", + "VpnConnection$Tags": "

Any tags assigned to the VPN connection.

", + "VpnGateway$Tags": "

Any tags assigned to the virtual private gateway.

" + } + }, + "TargetConfiguration": { + "base": "

Information about the Convertible Reserved Instance offering.

", + "refs": { + "TargetReservationValue$TargetConfiguration": "

The configuration of the Convertible Reserved Instances that make up the exchange.

" + } + }, + "TargetConfigurationRequest": { + "base": "

Details about the target configuration.

", + "refs": { + "TargetConfigurationRequestSet$member": null + } + }, + "TargetConfigurationRequestSet": { + "base": null, + "refs": { + "AcceptReservedInstancesExchangeQuoteRequest$TargetConfigurations": "

The configurations of the Convertible Reserved Instance offerings that you are purchasing in this exchange.

", + "GetReservedInstancesExchangeQuoteRequest$TargetConfigurations": "

The configuration requirements of the Convertible Reserved Instances to exchange for your current Convertible Reserved Instances.

" + } + }, + "TargetReservationValue": { + "base": "

The total value of the new Convertible Reserved Instances.

", + "refs": { + "TargetReservationValueSet$member": null + } + }, + "TargetReservationValueSet": { + "base": null, + "refs": { + "GetReservedInstancesExchangeQuoteResult$TargetConfigurationValueSet": "

The values of the target Convertible Reserved Instances.

" + } + }, + "TelemetryStatus": { + "base": null, + "refs": { + "VgwTelemetry$Status": "

The status of the VPN tunnel.

" + } + }, + "Tenancy": { + "base": null, + "refs": { + "CreateVpcRequest$InstanceTenancy": "

The tenancy options for instances launched into the VPC. For default, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. For dedicated, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy of dedicated or host into a dedicated tenancy VPC.

Important: The host value cannot be used with this parameter. Use the default or dedicated values only.

Default: default

", + "DescribeReservedInstancesOfferingsRequest$InstanceTenancy": "

The tenancy of the instances covered by the reservation. A Reserved Instance with a tenancy of dedicated is applied to instances that run in a VPC on single-tenant hardware (i.e., Dedicated Instances).

Default: default

", + "Placement$Tenancy": "

The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the ImportInstance command.

", + "ReservedInstances$InstanceTenancy": "

The tenancy of the instance.

", + "ReservedInstancesOffering$InstanceTenancy": "

The tenancy of the instance.

", + "SpotPlacement$Tenancy": "

The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for Spot instances.

", + "Vpc$InstanceTenancy": "

The allowed tenancy of instances launched into the VPC.

" + } + }, + "TerminateInstancesRequest": { + "base": "

Contains the parameters for TerminateInstances.

", + "refs": { + } + }, + "TerminateInstancesResult": { + "base": "

Contains the output of TerminateInstances.

", + "refs": { + } + }, + "TrafficType": { + "base": null, + "refs": { + "CreateFlowLogsRequest$TrafficType": "

The type of traffic to log.

", + "FlowLog$TrafficType": "

The type of traffic captured for the flow log.

" + } + }, + "UnassignIpv6AddressesRequest": { + "base": null, + "refs": { + } + }, + "UnassignIpv6AddressesResult": { + "base": null, + "refs": { + } + }, + "UnassignPrivateIpAddressesRequest": { + "base": "

Contains the parameters for UnassignPrivateIpAddresses.

", + "refs": { + } + }, + "UnmonitorInstancesRequest": { + "base": "

Contains the parameters for UnmonitorInstances.

", + "refs": { + } + }, + "UnmonitorInstancesResult": { + "base": "

Contains the output of UnmonitorInstances.

", + "refs": { + } + }, + "UnsuccessfulItem": { + "base": "

Information about items that were not successfully processed in a batch call.

", + "refs": { + "UnsuccessfulItemList$member": null, + "UnsuccessfulItemSet$member": null + } + }, + "UnsuccessfulItemError": { + "base": "

Information about the error that occurred. For more information about errors, see Error Codes.

", + "refs": { + "UnsuccessfulItem$Error": "

Information about the error.

" + } + }, + "UnsuccessfulItemList": { + "base": null, + "refs": { + "ModifyHostsResult$Unsuccessful": "

The IDs of the Dedicated Hosts that could not be modified. Check whether the setting you requested can be used.

", + "ReleaseHostsResult$Unsuccessful": "

The IDs of the Dedicated Hosts that could not be released, including an error message.

" + } + }, + "UnsuccessfulItemSet": { + "base": null, + "refs": { + "CreateFlowLogsResult$Unsuccessful": "

Information about the flow logs that could not be created successfully.

", + "DeleteFlowLogsResult$Unsuccessful": "

Information about the flow logs that could not be deleted successfully.

", + "DeleteVpcEndpointsResult$Unsuccessful": "

Information about the endpoints that were not successfully deleted.

" + } + }, + "UserBucket": { + "base": "

Describes the S3 bucket for the disk image.

", + "refs": { + "ImageDiskContainer$UserBucket": "

The S3 bucket for the disk image.

", + "SnapshotDiskContainer$UserBucket": "

The S3 bucket for the disk image.

" + } + }, + "UserBucketDetails": { + "base": "

Describes the S3 bucket for the disk image.

", + "refs": { + "SnapshotDetail$UserBucket": "

The S3 bucket for the disk image.

", + "SnapshotTaskDetail$UserBucket": "

The S3 bucket for the disk image.

" + } + }, + "UserData": { + "base": "

Describes the user data for an instance.

", + "refs": { + "ImportInstanceLaunchSpecification$UserData": "

The user data to make available to the instance. If you are using an AWS SDK or command line tool, Base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide Base64-encoded text.

" + } + }, + "UserGroupStringList": { + "base": null, + "refs": { + "ModifyImageAttributeRequest$UserGroups": "

One or more user groups. This is only valid when modifying the launchPermission attribute.

" + } + }, + "UserIdGroupPair": { + "base": "

Describes a security group and AWS account ID pair.

", + "refs": { + "UserIdGroupPairList$member": null, + "UserIdGroupPairSet$member": null + } + }, + "UserIdGroupPairList": { + "base": null, + "refs": { + "IpPermission$UserIdGroupPairs": "

One or more security group and AWS account ID pairs.

" + } + }, + "UserIdGroupPairSet": { + "base": null, + "refs": { + "StaleIpPermission$UserIdGroupPairs": "

One or more security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.

" + } + }, + "UserIdStringList": { + "base": null, + "refs": { + "ModifyImageAttributeRequest$UserIds": "

One or more AWS account IDs. This is only valid when modifying the launchPermission attribute.

", + "ModifySnapshotAttributeRequest$UserIds": "

The account ID to modify for the snapshot.

" + } + }, + "ValueStringList": { + "base": null, + "refs": { + "CancelSpotFleetRequestsRequest$SpotFleetRequestIds": "

The IDs of the Spot fleet requests.

", + "CreateFlowLogsRequest$ResourceIds": "

One or more subnet, network interface, or VPC IDs.

Constraints: Maximum of 1000 resources

", + "CreateFlowLogsResult$FlowLogIds": "

The IDs of the flow logs.

", + "CreateVpcEndpointRequest$RouteTableIds": "

One or more route table IDs.

", + "DeleteFlowLogsRequest$FlowLogIds": "

One or more flow log IDs.

", + "DeleteVpcEndpointsRequest$VpcEndpointIds": "

One or more endpoint IDs.

", + "DescribeFlowLogsRequest$FlowLogIds": "

One or more flow log IDs.

", + "DescribeInternetGatewaysRequest$InternetGatewayIds": "

One or more Internet gateway IDs.

Default: Describes all your Internet gateways.

", + "DescribeMovingAddressesRequest$PublicIps": "

One or more Elastic IP addresses.

", + "DescribeNatGatewaysRequest$NatGatewayIds": "

One or more NAT gateway IDs.

", + "DescribeNetworkAclsRequest$NetworkAclIds": "

One or more network ACL IDs.

Default: Describes all your network ACLs.

", + "DescribePrefixListsRequest$PrefixListIds": "

One or more prefix list IDs.

", + "DescribeRouteTablesRequest$RouteTableIds": "

One or more route table IDs.

Default: Describes all your route tables.

", + "DescribeSpotFleetRequestsRequest$SpotFleetRequestIds": "

The IDs of the Spot fleet requests.

", + "DescribeVpcEndpointServicesResult$ServiceNames": "

A list of supported AWS services.

", + "DescribeVpcEndpointsRequest$VpcEndpointIds": "

One or more endpoint IDs.

", + "DescribeVpcPeeringConnectionsRequest$VpcPeeringConnectionIds": "

One or more VPC peering connection IDs.

Default: Describes all your VPC peering connections.

", + "Filter$Values": "

One or more filter values. Filter values are case-sensitive.

", + "ModifyVpcEndpointRequest$AddRouteTableIds": "

One or more route tables IDs to associate with the endpoint.

", + "ModifyVpcEndpointRequest$RemoveRouteTableIds": "

One or more route table IDs to disassociate from the endpoint.

", + "NewDhcpConfiguration$Values": null, + "PrefixList$Cidrs": "

The IP address range of the AWS service.

", + "RequestSpotLaunchSpecification$SecurityGroups": null, + "RequestSpotLaunchSpecification$SecurityGroupIds": null, + "VpcEndpoint$RouteTableIds": "

One or more route tables associated with the endpoint.

" + } + }, + "VgwTelemetry": { + "base": "

Describes telemetry for a VPN tunnel.

", + "refs": { + "VgwTelemetryList$member": null + } + }, + "VgwTelemetryList": { + "base": null, + "refs": { + "VpnConnection$VgwTelemetry": "

Information about the VPN tunnel.

" + } + }, + "VirtualizationType": { + "base": null, + "refs": { + "Image$VirtualizationType": "

The type of virtualization of the AMI.

", + "Instance$VirtualizationType": "

The virtualization type of the instance.

" + } + }, + "Volume": { + "base": "

Describes a volume.

", + "refs": { + "VolumeList$member": null + } + }, + "VolumeAttachment": { + "base": "

Describes volume attachment details.

", + "refs": { + "VolumeAttachmentList$member": null + } + }, + "VolumeAttachmentList": { + "base": null, + "refs": { + "Volume$Attachments": "

Information about the volume attachments.

" + } + }, + "VolumeAttachmentState": { + "base": null, + "refs": { + "VolumeAttachment$State": "

The attachment state of the volume.

" + } + }, + "VolumeAttributeName": { + "base": null, + "refs": { + "DescribeVolumeAttributeRequest$Attribute": "

The instance attribute.

" + } + }, + "VolumeDetail": { + "base": "

Describes an EBS volume.

", + "refs": { + "DiskImage$Volume": "

Information about the volume.

", + "ImportVolumeRequest$Volume": "

The volume size.

" + } + }, + "VolumeIdStringList": { + "base": null, + "refs": { + "DescribeVolumeStatusRequest$VolumeIds": "

One or more volume IDs.

Default: Describes all your volumes.

", + "DescribeVolumesModificationsRequest$VolumeIds": "

One or more volume IDs for which in-progress modifications will be described.

", + "DescribeVolumesRequest$VolumeIds": "

One or more volume IDs.

" + } + }, + "VolumeList": { + "base": null, + "refs": { + "DescribeVolumesResult$Volumes": "

Information about the volumes.

" + } + }, + "VolumeModification": { + "base": "

Describes the modification status of an EBS volume.

If the volume has never been modified, some element values will be null.

", + "refs": { + "ModifyVolumeResult$VolumeModification": "

A VolumeModification object.

", + "VolumeModificationList$member": null + } + }, + "VolumeModificationList": { + "base": null, + "refs": { + "DescribeVolumesModificationsResult$VolumesModifications": "

A list of returned VolumeModification objects.

" + } + }, + "VolumeModificationState": { + "base": null, + "refs": { + "VolumeModification$ModificationState": "

Current state of modification. Modification state is null for unmodified volumes.

" + } + }, + "VolumeState": { + "base": null, + "refs": { + "Volume$State": "

The volume state.

" + } + }, + "VolumeStatusAction": { + "base": "

Describes a volume status operation code.

", + "refs": { + "VolumeStatusActionsList$member": null + } + }, + "VolumeStatusActionsList": { + "base": null, + "refs": { + "VolumeStatusItem$Actions": "

The details of the operation.

" + } + }, + "VolumeStatusDetails": { + "base": "

Describes a volume status.

", + "refs": { + "VolumeStatusDetailsList$member": null + } + }, + "VolumeStatusDetailsList": { + "base": null, + "refs": { + "VolumeStatusInfo$Details": "

The details of the volume status.

" + } + }, + "VolumeStatusEvent": { + "base": "

Describes a volume status event.

", + "refs": { + "VolumeStatusEventsList$member": null + } + }, + "VolumeStatusEventsList": { + "base": null, + "refs": { + "VolumeStatusItem$Events": "

A list of events associated with the volume.

" + } + }, + "VolumeStatusInfo": { + "base": "

Describes the status of a volume.

", + "refs": { + "VolumeStatusItem$VolumeStatus": "

The volume status.

" + } + }, + "VolumeStatusInfoStatus": { + "base": null, + "refs": { + "VolumeStatusInfo$Status": "

The status of the volume.

" + } + }, + "VolumeStatusItem": { + "base": "

Describes the volume status.

", + "refs": { + "VolumeStatusList$member": null + } + }, + "VolumeStatusList": { + "base": null, + "refs": { + "DescribeVolumeStatusResult$VolumeStatuses": "

A list of volumes.

" + } + }, + "VolumeStatusName": { + "base": null, + "refs": { + "VolumeStatusDetails$Name": "

The name of the volume status.

" + } + }, + "VolumeType": { + "base": null, + "refs": { + "CreateVolumeRequest$VolumeType": "

The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard for Magnetic volumes.

Default: standard

", + "EbsBlockDevice$VolumeType": "

The volume type: gp2, io1, st1, sc1, or standard.

Default: standard

", + "ModifyVolumeRequest$VolumeType": "

Target EBS volume type of the volume to be modified

The API does not support modifications for volume type standard. You also cannot change the type of a volume to standard.

Default: If no type is specified, the existing type is retained.

", + "Volume$VolumeType": "

The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard for Magnetic volumes.

", + "VolumeModification$TargetVolumeType": "

Target EBS volume type of the volume being modified.

", + "VolumeModification$OriginalVolumeType": "

Original EBS volume type of the volume being modified.

" + } + }, + "Vpc": { + "base": "

Describes a VPC.

", + "refs": { + "CreateVpcResult$Vpc": "

Information about the VPC.

", + "VpcList$member": null + } + }, + "VpcAttachment": { + "base": "

Describes an attachment between a virtual private gateway and a VPC.

", + "refs": { + "AttachVpnGatewayResult$VpcAttachment": "

Information about the attachment.

", + "VpcAttachmentList$member": null + } + }, + "VpcAttachmentList": { + "base": null, + "refs": { + "VpnGateway$VpcAttachments": "

Any VPCs attached to the virtual private gateway.

" + } + }, + "VpcAttributeName": { + "base": null, + "refs": { + "DescribeVpcAttributeRequest$Attribute": "

The VPC attribute.

" + } + }, + "VpcCidrBlockState": { + "base": "

Describes the state of a CIDR block.

", + "refs": { + "VpcIpv6CidrBlockAssociation$Ipv6CidrBlockState": "

Information about the state of the CIDR block.

" + } + }, + "VpcCidrBlockStateCode": { + "base": null, + "refs": { + "VpcCidrBlockState$State": "

The state of the CIDR block.

" + } + }, + "VpcClassicLink": { + "base": "

Describes whether a VPC is enabled for ClassicLink.

", + "refs": { + "VpcClassicLinkList$member": null + } + }, + "VpcClassicLinkIdList": { + "base": null, + "refs": { + "DescribeVpcClassicLinkDnsSupportRequest$VpcIds": "

One or more VPC IDs.

", + "DescribeVpcClassicLinkRequest$VpcIds": "

One or more VPCs for which you want to describe the ClassicLink status.

" + } + }, + "VpcClassicLinkList": { + "base": null, + "refs": { + "DescribeVpcClassicLinkResult$Vpcs": "

The ClassicLink status of one or more VPCs.

" + } + }, + "VpcEndpoint": { + "base": "

Describes a VPC endpoint.

", + "refs": { + "CreateVpcEndpointResult$VpcEndpoint": "

Information about the endpoint.

", + "VpcEndpointSet$member": null + } + }, + "VpcEndpointSet": { + "base": null, + "refs": { + "DescribeVpcEndpointsResult$VpcEndpoints": "

Information about the endpoints.

" + } + }, + "VpcIdStringList": { + "base": null, + "refs": { + "DescribeVpcsRequest$VpcIds": "

One or more VPC IDs.

Default: Describes all your VPCs.

" + } + }, + "VpcIpv6CidrBlockAssociation": { + "base": "

Describes an IPv6 CIDR block associated with a VPC.

", + "refs": { + "AssociateVpcCidrBlockResult$Ipv6CidrBlockAssociation": "

Information about the IPv6 CIDR block association.

", + "DisassociateVpcCidrBlockResult$Ipv6CidrBlockAssociation": "

Information about the IPv6 CIDR block association.

", + "VpcIpv6CidrBlockAssociationSet$member": null + } + }, + "VpcIpv6CidrBlockAssociationSet": { + "base": null, + "refs": { + "Vpc$Ipv6CidrBlockAssociationSet": "

Information about the IPv6 CIDR blocks associated with the VPC.

" + } + }, + "VpcList": { + "base": null, + "refs": { + "DescribeVpcsResult$Vpcs": "

Information about one or more VPCs.

" + } + }, + "VpcPeeringConnection": { + "base": "

Describes a VPC peering connection.

", + "refs": { + "AcceptVpcPeeringConnectionResult$VpcPeeringConnection": "

Information about the VPC peering connection.

", + "CreateVpcPeeringConnectionResult$VpcPeeringConnection": "

Information about the VPC peering connection.

", + "VpcPeeringConnectionList$member": null + } + }, + "VpcPeeringConnectionList": { + "base": null, + "refs": { + "DescribeVpcPeeringConnectionsResult$VpcPeeringConnections": "

Information about the VPC peering connections.

" + } + }, + "VpcPeeringConnectionOptionsDescription": { + "base": "

Describes the VPC peering connection options.

", + "refs": { + "VpcPeeringConnectionVpcInfo$PeeringOptions": "

Information about the VPC peering connection options for the accepter or requester VPC.

" + } + }, + "VpcPeeringConnectionStateReason": { + "base": "

Describes the status of a VPC peering connection.

", + "refs": { + "VpcPeeringConnection$Status": "

The status of the VPC peering connection.

" + } + }, + "VpcPeeringConnectionStateReasonCode": { + "base": null, + "refs": { + "VpcPeeringConnectionStateReason$Code": "

The status of the VPC peering connection.

" + } + }, + "VpcPeeringConnectionVpcInfo": { + "base": "

Describes a VPC in a VPC peering connection.

", + "refs": { + "VpcPeeringConnection$AccepterVpcInfo": "

Information about the accepter VPC. CIDR block information is not returned when creating a VPC peering connection, or when describing a VPC peering connection that's in the initiating-request or pending-acceptance state.

", + "VpcPeeringConnection$RequesterVpcInfo": "

Information about the requester VPC.

" + } + }, + "VpcState": { + "base": null, + "refs": { + "Vpc$State": "

The current state of the VPC.

" + } + }, + "VpnConnection": { + "base": "

Describes a VPN connection.

", + "refs": { + "CreateVpnConnectionResult$VpnConnection": "

Information about the VPN connection.

", + "VpnConnectionList$member": null + } + }, + "VpnConnectionIdStringList": { + "base": null, + "refs": { + "DescribeVpnConnectionsRequest$VpnConnectionIds": "

One or more VPN connection IDs.

Default: Describes your VPN connections.

" + } + }, + "VpnConnectionList": { + "base": null, + "refs": { + "DescribeVpnConnectionsResult$VpnConnections": "

Information about one or more VPN connections.

" + } + }, + "VpnConnectionOptions": { + "base": "

Describes VPN connection options.

", + "refs": { + "VpnConnection$Options": "

The VPN connection options.

" + } + }, + "VpnConnectionOptionsSpecification": { + "base": "

Describes VPN connection options.

", + "refs": { + "CreateVpnConnectionRequest$Options": "

Indicates whether the VPN connection requires static routes. If you are creating a VPN connection for a device that does not support BGP, you must specify true.

Default: false

" + } + }, + "VpnGateway": { + "base": "

Describes a virtual private gateway.

", + "refs": { + "CreateVpnGatewayResult$VpnGateway": "

Information about the virtual private gateway.

", + "VpnGatewayList$member": null + } + }, + "VpnGatewayIdStringList": { + "base": null, + "refs": { + "DescribeVpnGatewaysRequest$VpnGatewayIds": "

One or more virtual private gateway IDs.

Default: Describes all your virtual private gateways.

" + } + }, + "VpnGatewayList": { + "base": null, + "refs": { + "DescribeVpnGatewaysResult$VpnGateways": "

Information about one or more virtual private gateways.

" + } + }, + "VpnState": { + "base": null, + "refs": { + "VpnConnection$State": "

The current state of the VPN connection.

", + "VpnGateway$State": "

The current state of the virtual private gateway.

", + "VpnStaticRoute$State": "

The current state of the static route.

" + } + }, + "VpnStaticRoute": { + "base": "

Describes a static route for a VPN connection.

", + "refs": { + "VpnStaticRouteList$member": null + } + }, + "VpnStaticRouteList": { + "base": null, + "refs": { + "VpnConnection$Routes": "

The static routes associated with the VPN connection.

" + } + }, + "VpnStaticRouteSource": { + "base": null, + "refs": { + "VpnStaticRoute$Source": "

Indicates how the routes were provided.

" + } + }, + "ZoneNameStringList": { + "base": null, + "refs": { + "DescribeAvailabilityZonesRequest$ZoneNames": "

The names of one or more Availability Zones.

" + } + }, + "scope": { + "base": null, + "refs": { + "ReservedInstances$Scope": "

The scope of the Reserved Instance.

", + "ReservedInstancesConfiguration$Scope": "

Whether the Reserved Instance is applied to instances in a region or instances in a specific Availability Zone.

", + "ReservedInstancesOffering$Scope": "

Whether the Reserved Instance is applied to instances in a region or an Availability Zone.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/examples-1.json new file mode 100755 index 000000000..f6a8719f2 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/examples-1.json @@ -0,0 +1,3740 @@ +{ + "version": "1.0", + "examples": { + "AllocateAddress": [ + { + "input": { + "Domain": "vpc" + }, + "output": { + "AllocationId": "eipalloc-64d5890a", + "Domain": "vpc", + "PublicIp": "203.0.113.0" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example allocates an Elastic IP address to use with an instance in a VPC.", + "id": "ec2-allocate-address-1", + "title": "To allocate an Elastic IP address for EC2-VPC" + }, + { + "output": { + "Domain": "standard", + "PublicIp": "198.51.100.0" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example allocates an Elastic IP address to use with an instance in EC2-Classic.", + "id": "ec2-allocate-address-2", + "title": "To allocate an Elastic IP address for EC2-Classic" + } + ], + "AssignPrivateIpAddresses": [ + { + "input": { + "NetworkInterfaceId": "eni-e5aa89a3", + "PrivateIpAddresses": [ + "10.0.0.82" + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example assigns the specified secondary private IP address to the specified network interface.", + "id": "ec2-assign-private-ip-addresses-1", + "title": "To assign a specific secondary private IP address to an interface" + }, + { + "input": { + "NetworkInterfaceId": "eni-e5aa89a3", + "SecondaryPrivateIpAddressCount": 2 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example assigns two secondary private IP addresses to the specified network interface. Amazon EC2 automatically assigns these IP addresses from the available IP addresses in the CIDR block range of the subnet the network interface is associated with.", + "id": "ec2-assign-private-ip-addresses-2", + "title": "To assign secondary private IP addresses that Amazon EC2 selects to an interface" + } + ], + "AssociateAddress": [ + { + "input": { + "AllocationId": "eipalloc-64d5890a", + "InstanceId": "i-0b263919b6498b123" + }, + "output": { + "AssociationId": "eipassoc-2bebb745" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example associates the specified Elastic IP address with the specified instance in a VPC.", + "id": "ec2-associate-address-1", + "title": "To associate an Elastic IP address in EC2-VPC" + }, + { + "input": { + "AllocationId": "eipalloc-64d5890a", + "NetworkInterfaceId": "eni-1a2b3c4d" + }, + "output": { + "AssociationId": "eipassoc-2bebb745" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example associates the specified Elastic IP address with the specified network interface.", + "id": "ec2-associate-address-2", + "title": "To associate an Elastic IP address with a network interface" + }, + { + "input": { + "InstanceId": "i-07ffe74c7330ebf53", + "PublicIp": "198.51.100.0" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example associates an Elastic IP address with an instance in EC2-Classic.", + "id": "ec2-associate-address-3", + "title": "To associate an Elastic IP address in EC2-Classic" + } + ], + "AssociateDhcpOptions": [ + { + "input": { + "DhcpOptionsId": "dopt-d9070ebb", + "VpcId": "vpc-a01106c2" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example associates the specified DHCP options set with the specified VPC.", + "id": "ec2-associate-dhcp-options-1", + "title": "To associate a DHCP options set with a VPC" + }, + { + "input": { + "DhcpOptionsId": "default", + "VpcId": "vpc-a01106c2" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example associates the default DHCP options set with the specified VPC.", + "id": "ec2-associate-dhcp-options-2", + "title": "To associate the default DHCP options set with a VPC" + } + ], + "AssociateRouteTable": [ + { + "input": { + "RouteTableId": "rtb-22574640", + "SubnetId": "subnet-9d4a7b6" + }, + "output": { + "AssociationId": "rtbassoc-781d0d1a" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example associates the specified route table with the specified subnet.", + "id": "ec2-associate-route-table-1", + "title": "To associate a route table with a subnet" + } + ], + "AttachInternetGateway": [ + { + "input": { + "InternetGatewayId": "igw-c0a643a9", + "VpcId": "vpc-a01106c2" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example attaches the specified Internet gateway to the specified VPC.", + "id": "ec2-attach-internet-gateway-1", + "title": "To attach an Internet gateway to a VPC" + } + ], + "AttachNetworkInterface": [ + { + "input": { + "DeviceIndex": 1, + "InstanceId": "i-1234567890abcdef0", + "NetworkInterfaceId": "eni-e5aa89a3" + }, + "output": { + "AttachmentId": "eni-attach-66c4350a" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example attaches the specified network interface to the specified instance.", + "id": "ec2-attach-network-interface-1", + "title": "To attach a network interface to an instance" + } + ], + "AttachVolume": [ + { + "input": { + "Device": "/dev/sdf", + "InstanceId": "i-01474ef662b89480", + "VolumeId": "vol-1234567890abcdef0" + }, + "output": { + "AttachTime": "2016-08-29T18:52:32.724Z", + "Device": "/dev/sdf", + "InstanceId": "i-01474ef662b89480", + "State": "attaching", + "VolumeId": "vol-1234567890abcdef0" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example attaches a volume (``vol-1234567890abcdef0``) to an instance (``i-01474ef662b89480``) as ``/dev/sdf``.", + "id": "to-attach-a-volume-to-an-instance-1472499213109", + "title": "To attach a volume to an instance" + } + ], + "CancelSpotFleetRequests": [ + { + "input": { + "SpotFleetRequestIds": [ + "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE" + ], + "TerminateInstances": true + }, + "output": { + "SuccessfulFleetRequests": [ + { + "CurrentSpotFleetRequestState": "cancelled_running", + "PreviousSpotFleetRequestState": "active", + "SpotFleetRequestId": "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example cancels the specified Spot fleet request and terminates its associated Spot Instances.", + "id": "ec2-cancel-spot-fleet-requests-1", + "title": "To cancel a Spot fleet request" + }, + { + "input": { + "SpotFleetRequestIds": [ + "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE" + ], + "TerminateInstances": false + }, + "output": { + "SuccessfulFleetRequests": [ + { + "CurrentSpotFleetRequestState": "cancelled_terminating", + "PreviousSpotFleetRequestState": "active", + "SpotFleetRequestId": "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example cancels the specified Spot fleet request without terminating its associated Spot Instances.", + "id": "ec2-cancel-spot-fleet-requests-2", + "title": "To cancel a Spot fleet request without terminating its Spot Instances" + } + ], + "CancelSpotInstanceRequests": [ + { + "input": { + "SpotInstanceRequestIds": [ + "sir-08b93456" + ] + }, + "output": { + "CancelledSpotInstanceRequests": [ + { + "SpotInstanceRequestId": "sir-08b93456", + "State": "cancelled" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example cancels a Spot Instance request.", + "id": "ec2-cancel-spot-instance-requests-1", + "title": "To cancel Spot Instance requests" + } + ], + "ConfirmProductInstance": [ + { + "input": { + "InstanceId": "i-1234567890abcdef0", + "ProductCode": "774F4FF8" + }, + "output": { + "OwnerId": "123456789012" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example determines whether the specified product code is associated with the specified instance.", + "id": "to-confirm-the-product-instance-1472712108494", + "title": "To confirm the product instance" + } + ], + "CopySnapshot": [ + { + "input": { + "Description": "This is my copied snapshot.", + "DestinationRegion": "us-east-1", + "SourceRegion": "us-west-2", + "SourceSnapshotId": "snap-066877671789bd71b" + }, + "output": { + "SnapshotId": "snap-066877671789bd71b" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example copies a snapshot with the snapshot ID of ``snap-066877671789bd71b`` from the ``us-west-2`` region to the ``us-east-1`` region and adds a short description to identify the snapshot.", + "id": "to-copy-a-snapshot-1472502259774", + "title": "To copy a snapshot" + } + ], + "CreateCustomerGateway": [ + { + "input": { + "BgpAsn": 65534, + "PublicIp": "12.1.2.3", + "Type": "ipsec.1" + }, + "output": { + "CustomerGateway": { + "BgpAsn": "65534", + "CustomerGatewayId": "cgw-0e11f167", + "IpAddress": "12.1.2.3", + "State": "available", + "Type": "ipsec.1" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a customer gateway with the specified IP address for its outside interface.", + "id": "ec2-create-customer-gateway-1", + "title": "To create a customer gateway" + } + ], + "CreateDhcpOptions": [ + { + "input": { + "DhcpConfigurations": [ + { + "Key": "domain-name-servers", + "Values": [ + "10.2.5.1", + "10.2.5.2" + ] + } + ] + }, + "output": { + "DhcpOptions": { + "DhcpConfigurations": [ + { + "Key": "domain-name-servers", + "Values": [ + { + "Value": "10.2.5.2" + }, + { + "Value": "10.2.5.1" + } + ] + } + ], + "DhcpOptionsId": "dopt-d9070ebb" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a DHCP options set.", + "id": "ec2-create-dhcp-options-1", + "title": "To create a DHCP options set" + } + ], + "CreateInternetGateway": [ + { + "output": { + "InternetGateway": { + "Attachments": [ + + ], + "InternetGatewayId": "igw-c0a643a9", + "Tags": [ + + ] + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates an Internet gateway.", + "id": "ec2-create-internet-gateway-1", + "title": "To create an Internet gateway" + } + ], + "CreateKeyPair": [ + { + "input": { + "KeyName": "my-key-pair" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a key pair named my-key-pair.", + "id": "ec2-create-key-pair-1", + "title": "To create a key pair" + } + ], + "CreateNatGateway": [ + { + "input": { + "AllocationId": "eipalloc-37fc1a52", + "SubnetId": "subnet-1a2b3c4d" + }, + "output": { + "NatGateway": { + "CreateTime": "2015-12-17T12:45:26.732Z", + "NatGatewayAddresses": [ + { + "AllocationId": "eipalloc-37fc1a52" + } + ], + "NatGatewayId": "nat-08d48af2a8e83edfd", + "State": "pending", + "SubnetId": "subnet-1a2b3c4d", + "VpcId": "vpc-1122aabb" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a NAT gateway in subnet subnet-1a2b3c4d and associates an Elastic IP address with the allocation ID eipalloc-37fc1a52 with the NAT gateway.", + "id": "ec2-create-nat-gateway-1", + "title": "To create a NAT gateway" + } + ], + "CreateNetworkAcl": [ + { + "input": { + "VpcId": "vpc-a01106c2" + }, + "output": { + "NetworkAcl": { + "Associations": [ + + ], + "Entries": [ + { + "CidrBlock": "0.0.0.0/0", + "Egress": true, + "Protocol": "-1", + "RuleAction": "deny", + "RuleNumber": 32767 + }, + { + "CidrBlock": "0.0.0.0/0", + "Egress": false, + "Protocol": "-1", + "RuleAction": "deny", + "RuleNumber": 32767 + } + ], + "IsDefault": false, + "NetworkAclId": "acl-5fb85d36", + "Tags": [ + + ], + "VpcId": "vpc-a01106c2" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a network ACL for the specified VPC.", + "id": "ec2-create-network-acl-1", + "title": "To create a network ACL" + } + ], + "CreateNetworkAclEntry": [ + { + "input": { + "CidrBlock": "0.0.0.0/0", + "Egress": false, + "NetworkAclId": "acl-5fb85d36", + "PortRange": { + "From": 53, + "To": 53 + }, + "Protocol": "udp", + "RuleAction": "allow", + "RuleNumber": 100 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates an entry for the specified network ACL. The rule allows ingress traffic from anywhere (0.0.0.0/0) on UDP port 53 (DNS) into any associated subnet.", + "id": "ec2-create-network-acl-entry-1", + "title": "To create a network ACL entry" + } + ], + "CreateNetworkInterface": [ + { + "input": { + "Description": "my network interface", + "Groups": [ + "sg-903004f8" + ], + "PrivateIpAddress": "10.0.2.17", + "SubnetId": "subnet-9d4a7b6c" + }, + "output": { + "NetworkInterface": { + "AvailabilityZone": "us-east-1d", + "Description": "my network interface", + "Groups": [ + { + "GroupId": "sg-903004f8", + "GroupName": "default" + } + ], + "MacAddress": "02:1a:80:41:52:9c", + "NetworkInterfaceId": "eni-e5aa89a3", + "OwnerId": "123456789012", + "PrivateIpAddress": "10.0.2.17", + "PrivateIpAddresses": [ + { + "Primary": true, + "PrivateIpAddress": "10.0.2.17" + } + ], + "RequesterManaged": false, + "SourceDestCheck": true, + "Status": "pending", + "SubnetId": "subnet-9d4a7b6c", + "TagSet": [ + + ], + "VpcId": "vpc-a01106c2" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a network interface for the specified subnet.", + "id": "ec2-create-network-interface-1", + "title": "To create a network interface" + } + ], + "CreatePlacementGroup": [ + { + "input": { + "GroupName": "my-cluster", + "Strategy": "cluster" + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a placement group with the specified name.", + "id": "to-create-a-placement-group-1472712245768", + "title": "To create a placement group" + } + ], + "CreateRoute": [ + { + "input": { + "DestinationCidrBlock": "0.0.0.0/0", + "GatewayId": "igw-c0a643a9", + "RouteTableId": "rtb-22574640" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a route for the specified route table. The route matches all traffic (0.0.0.0/0) and routes it to the specified Internet gateway.", + "id": "ec2-create-route-1", + "title": "To create a route" + } + ], + "CreateRouteTable": [ + { + "input": { + "VpcId": "vpc-a01106c2" + }, + "output": { + "RouteTable": { + "Associations": [ + + ], + "PropagatingVgws": [ + + ], + "RouteTableId": "rtb-22574640", + "Routes": [ + { + "DestinationCidrBlock": "10.0.0.0/16", + "GatewayId": "local", + "State": "active" + } + ], + "Tags": [ + + ], + "VpcId": "vpc-a01106c2" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a route table for the specified VPC.", + "id": "ec2-create-route-table-1", + "title": "To create a route table" + } + ], + "CreateSnapshot": [ + { + "input": { + "Description": "This is my root volume snapshot.", + "VolumeId": "vol-1234567890abcdef0" + }, + "output": { + "Description": "This is my root volume snapshot.", + "OwnerId": "012345678910", + "SnapshotId": "snap-066877671789bd71b", + "StartTime": "2014-02-28T21:06:01.000Z", + "State": "pending", + "Tags": [ + + ], + "VolumeId": "vol-1234567890abcdef0", + "VolumeSize": 8 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a snapshot of the volume with a volume ID of ``vol-1234567890abcdef0`` and a short description to identify the snapshot.", + "id": "to-create-a-snapshot-1472502529790", + "title": "To create a snapshot" + } + ], + "CreateSpotDatafeedSubscription": [ + { + "input": { + "Bucket": "my-s3-bucket", + "Prefix": "spotdata" + }, + "output": { + "SpotDatafeedSubscription": { + "Bucket": "my-s3-bucket", + "OwnerId": "123456789012", + "Prefix": "spotdata", + "State": "Active" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a Spot Instance data feed for your AWS account.", + "id": "ec2-create-spot-datafeed-subscription-1", + "title": "To create a Spot Instance datafeed" + } + ], + "CreateSubnet": [ + { + "input": { + "CidrBlock": "10.0.1.0/24", + "VpcId": "vpc-a01106c2" + }, + "output": { + "Subnet": { + "AvailabilityZone": "us-west-2c", + "AvailableIpAddressCount": 251, + "CidrBlock": "10.0.1.0/24", + "State": "pending", + "SubnetId": "subnet-9d4a7b6c", + "VpcId": "vpc-a01106c2" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a subnet in the specified VPC with the specified CIDR block. We recommend that you let us select an Availability Zone for you.", + "id": "ec2-create-subnet-1", + "title": "To create a subnet" + } + ], + "CreateTags": [ + { + "input": { + "Resources": [ + "ami-78a54011" + ], + "Tags": [ + { + "Key": "Stack", + "Value": "production" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example adds the tag Stack=production to the specified image, or overwrites an existing tag for the AMI where the tag key is Stack.", + "id": "ec2-create-tags-1", + "title": "To add a tag to a resource" + } + ], + "CreateVolume": [ + { + "input": { + "AvailabilityZone": "us-east-1a", + "Size": 80, + "VolumeType": "gp2" + }, + "output": { + "AvailabilityZone": "us-east-1a", + "CreateTime": "2016-08-29T18:52:32.724Z", + "Encrypted": false, + "Iops": 240, + "Size": 80, + "SnapshotId": "", + "State": "creating", + "VolumeId": "vol-6b60b7c7", + "VolumeType": "gp2" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates an 80 GiB General Purpose (SSD) volume in the Availability Zone ``us-east-1a``.", + "id": "to-create-a-new-volume-1472496724296", + "title": "To create a new volume" + }, + { + "input": { + "AvailabilityZone": "us-east-1a", + "Iops": 1000, + "SnapshotId": "snap-066877671789bd71b", + "VolumeType": "io1" + }, + "output": { + "Attachments": [ + + ], + "AvailabilityZone": "us-east-1a", + "CreateTime": "2016-08-29T18:52:32.724Z", + "Iops": 1000, + "Size": 500, + "SnapshotId": "snap-066877671789bd71b", + "State": "creating", + "Tags": [ + + ], + "VolumeId": "vol-1234567890abcdef0", + "VolumeType": "io1" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a new Provisioned IOPS (SSD) volume with 1000 provisioned IOPS from a snapshot in the Availability Zone ``us-east-1a``.", + "id": "to-create-a-new-provisioned-iops-ssd-volume-from-a-snapshot-1472498975176", + "title": "To create a new Provisioned IOPS (SSD) volume from a snapshot" + } + ], + "CreateVpc": [ + { + "input": { + "CidrBlock": "10.0.0.0/16" + }, + "output": { + "Vpc": { + "CidrBlock": "10.0.0.0/16", + "DhcpOptionsId": "dopt-7a8b9c2d", + "InstanceTenancy": "default", + "State": "pending", + "VpcId": "vpc-a01106c2" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a VPC with the specified CIDR block.", + "id": "ec2-create-vpc-1", + "title": "To create a VPC" + } + ], + "DeleteCustomerGateway": [ + { + "input": { + "CustomerGatewayId": "cgw-0e11f167" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes the specified customer gateway.", + "id": "ec2-delete-customer-gateway-1", + "title": "To delete a customer gateway" + } + ], + "DeleteDhcpOptions": [ + { + "input": { + "DhcpOptionsId": "dopt-d9070ebb" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes the specified DHCP options set.", + "id": "ec2-delete-dhcp-options-1", + "title": "To delete a DHCP options set" + } + ], + "DeleteInternetGateway": [ + { + "input": { + "InternetGatewayId": "igw-c0a643a9" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes the specified Internet gateway.", + "id": "ec2-delete-internet-gateway-1", + "title": "To delete an Internet gateway" + } + ], + "DeleteKeyPair": [ + { + "input": { + "KeyName": "my-key-pair" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes the specified key pair.", + "id": "ec2-delete-key-pair-1", + "title": "To delete a key pair" + } + ], + "DeleteNatGateway": [ + { + "input": { + "NatGatewayId": "nat-04ae55e711cec5680" + }, + "output": { + "NatGatewayId": "nat-04ae55e711cec5680" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes the specified NAT gateway.", + "id": "ec2-delete-nat-gateway-1", + "title": "To delete a NAT gateway" + } + ], + "DeleteNetworkAcl": [ + { + "input": { + "NetworkAclId": "acl-5fb85d36" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes the specified network ACL.", + "id": "ec2-delete-network-acl-1", + "title": "To delete a network ACL" + } + ], + "DeleteNetworkAclEntry": [ + { + "input": { + "Egress": true, + "NetworkAclId": "acl-5fb85d36", + "RuleNumber": 100 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes ingress rule number 100 from the specified network ACL.", + "id": "ec2-delete-network-acl-entry-1", + "title": "To delete a network ACL entry" + } + ], + "DeleteNetworkInterface": [ + { + "input": { + "NetworkInterfaceId": "eni-e5aa89a3" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes the specified network interface.", + "id": "ec2-delete-network-interface-1", + "title": "To delete a network interface" + } + ], + "DeletePlacementGroup": [ + { + "input": { + "GroupName": "my-cluster" + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes the specified placement group.\n", + "id": "to-delete-a-placement-group-1472712349959", + "title": "To delete a placement group" + } + ], + "DeleteRoute": [ + { + "input": { + "DestinationCidrBlock": "0.0.0.0/0", + "RouteTableId": "rtb-22574640" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes the specified route from the specified route table.", + "id": "ec2-delete-route-1", + "title": "To delete a route" + } + ], + "DeleteRouteTable": [ + { + "input": { + "RouteTableId": "rtb-22574640" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes the specified route table.", + "id": "ec2-delete-route-table-1", + "title": "To delete a route table" + } + ], + "DeleteSnapshot": [ + { + "input": { + "SnapshotId": "snap-1234567890abcdef0" + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes a snapshot with the snapshot ID of ``snap-1234567890abcdef0``. If the command succeeds, no output is returned.", + "id": "to-delete-a-snapshot-1472503042567", + "title": "To delete a snapshot" + } + ], + "DeleteSpotDatafeedSubscription": [ + { + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes a Spot data feed subscription for the account.", + "id": "ec2-delete-spot-datafeed-subscription-1", + "title": "To cancel a Spot Instance data feed subscription" + } + ], + "DeleteSubnet": [ + { + "input": { + "SubnetId": "subnet-9d4a7b6c" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes the specified subnet.", + "id": "ec2-delete-subnet-1", + "title": "To delete a subnet" + } + ], + "DeleteTags": [ + { + "input": { + "Resources": [ + "ami-78a54011" + ], + "Tags": [ + { + "Key": "Stack", + "Value": "test" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes the tag Stack=test from the specified image.", + "id": "ec2-delete-tags-1", + "title": "To delete a tag from a resource" + } + ], + "DeleteVolume": [ + { + "input": { + "VolumeId": "vol-049df61146c4d7901" + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes an available volume with the volume ID of ``vol-049df61146c4d7901``. If the command succeeds, no output is returned.", + "id": "to-delete-a-volume-1472503111160", + "title": "To delete a volume" + } + ], + "DeleteVpc": [ + { + "input": { + "VpcId": "vpc-a01106c2" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes the specified VPC.", + "id": "ec2-delete-vpc-1", + "title": "To delete a VPC" + } + ], + "DescribeAccountAttributes": [ + { + "input": { + "AttributeNames": [ + "supported-platforms" + ] + }, + "output": { + "AccountAttributes": [ + { + "AttributeName": "supported-platforms", + "AttributeValues": [ + { + "AttributeValue": "EC2" + }, + { + "AttributeValue": "VPC" + } + ] + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the supported-platforms attribute for your AWS account.", + "id": "ec2-describe-account-attributes-1", + "title": "To describe a single attribute for your AWS account" + }, + { + "output": { + "AccountAttributes": [ + { + "AttributeName": "supported-platforms", + "AttributeValues": [ + { + "AttributeValue": "EC2" + }, + { + "AttributeValue": "VPC" + } + ] + }, + { + "AttributeName": "vpc-max-security-groups-per-interface", + "AttributeValues": [ + { + "AttributeValue": "5" + } + ] + }, + { + "AttributeName": "max-elastic-ips", + "AttributeValues": [ + { + "AttributeValue": "5" + } + ] + }, + { + "AttributeName": "max-instances", + "AttributeValues": [ + { + "AttributeValue": "20" + } + ] + }, + { + "AttributeName": "vpc-max-elastic-ips", + "AttributeValues": [ + { + "AttributeValue": "5" + } + ] + }, + { + "AttributeName": "default-vpc", + "AttributeValues": [ + { + "AttributeValue": "none" + } + ] + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the attributes for your AWS account.", + "id": "ec2-describe-account-attributes-2", + "title": "To describe all attributes for your AWS account" + } + ], + "DescribeAddresses": [ + { + "output": { + "Addresses": [ + { + "Domain": "standard", + "InstanceId": "i-1234567890abcdef0", + "PublicIp": "198.51.100.0" + }, + { + "AllocationId": "eipalloc-12345678", + "AssociationId": "eipassoc-12345678", + "Domain": "vpc", + "InstanceId": "i-1234567890abcdef0", + "NetworkInterfaceId": "eni-12345678", + "NetworkInterfaceOwnerId": "123456789012", + "PrivateIpAddress": "10.0.1.241", + "PublicIp": "203.0.113.0" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes your Elastic IP addresses.", + "id": "ec2-describe-addresses-1", + "title": "To describe your Elastic IP addresses" + }, + { + "input": { + "Filters": [ + { + "Name": "domain", + "Values": [ + "vpc" + ] + } + ] + }, + "output": { + "Addresses": [ + { + "AllocationId": "eipalloc-12345678", + "AssociationId": "eipassoc-12345678", + "Domain": "vpc", + "InstanceId": "i-1234567890abcdef0", + "NetworkInterfaceId": "eni-12345678", + "NetworkInterfaceOwnerId": "123456789012", + "PrivateIpAddress": "10.0.1.241", + "PublicIp": "203.0.113.0" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes your Elastic IP addresses for use with instances in a VPC.", + "id": "ec2-describe-addresses-2", + "title": "To describe your Elastic IP addresses for EC2-VPC" + }, + { + "input": { + "Filters": [ + { + "Name": "domain", + "Values": [ + "standard" + ] + } + ] + }, + "output": { + "Addresses": [ + { + "Domain": "standard", + "InstanceId": "i-1234567890abcdef0", + "PublicIp": "198.51.100.0" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes your Elastic IP addresses for use with instances in EC2-Classic.", + "id": "ec2-describe-addresses-3", + "title": "To describe your Elastic IP addresses for EC2-Classic" + } + ], + "DescribeAvailabilityZones": [ + { + "output": { + "AvailabilityZones": [ + { + "Messages": [ + + ], + "RegionName": "us-east-1", + "State": "available", + "ZoneName": "us-east-1b" + }, + { + "Messages": [ + + ], + "RegionName": "us-east-1", + "State": "available", + "ZoneName": "us-east-1c" + }, + { + "Messages": [ + + ], + "RegionName": "us-east-1", + "State": "available", + "ZoneName": "us-east-1d" + }, + { + "Messages": [ + + ], + "RegionName": "us-east-1", + "State": "available", + "ZoneName": "us-east-1e" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the Availability Zones that are available to you. The response includes Availability Zones only for the current region.", + "id": "ec2-describe-availability-zones-1", + "title": "To describe your Availability Zones" + } + ], + "DescribeCustomerGateways": [ + { + "input": { + "CustomerGatewayIds": [ + "cgw-0e11f167" + ] + }, + "output": { + "CustomerGateways": [ + { + "BgpAsn": "65534", + "CustomerGatewayId": "cgw-0e11f167", + "IpAddress": "12.1.2.3", + "State": "available", + "Type": "ipsec.1" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the specified customer gateway.", + "id": "ec2-describe-customer-gateways-1", + "title": "To describe a customer gateway" + } + ], + "DescribeDhcpOptions": [ + { + "input": { + "DhcpOptionsIds": [ + "dopt-d9070ebb" + ] + }, + "output": { + "DhcpOptions": [ + { + "DhcpConfigurations": [ + { + "Key": "domain-name-servers", + "Values": [ + { + "Value": "10.2.5.2" + }, + { + "Value": "10.2.5.1" + } + ] + } + ], + "DhcpOptionsId": "dopt-d9070ebb" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the specified DHCP options set.", + "id": "ec2-describe-dhcp-options-1", + "title": "To describe a DHCP options set" + } + ], + "DescribeInstanceAttribute": [ + { + "input": { + "Attribute": "instanceType", + "InstanceId": "i-1234567890abcdef0" + }, + "output": { + "InstanceId": "i-1234567890abcdef0", + "InstanceType": { + "Value": "t1.micro" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the instance type of the specified instance.\n", + "id": "to-describe-the-instance-type-1472712432132", + "title": "To describe the instance type" + }, + { + "input": { + "Attribute": "disableApiTermination", + "InstanceId": "i-1234567890abcdef0" + }, + "output": { + "DisableApiTermination": { + "Value": "false" + }, + "InstanceId": "i-1234567890abcdef0" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the ``disableApiTermination`` attribute of the specified instance.\n", + "id": "to-describe-the-disableapitermination-attribute-1472712533466", + "title": "To describe the disableApiTermination attribute" + }, + { + "input": { + "Attribute": "blockDeviceMapping", + "InstanceId": "i-1234567890abcdef0" + }, + "output": { + "BlockDeviceMappings": [ + { + "DeviceName": "/dev/sda1", + "Ebs": { + "AttachTime": "2013-05-17T22:42:34.000Z", + "DeleteOnTermination": true, + "Status": "attached", + "VolumeId": "vol-049df61146c4d7901" + } + }, + { + "DeviceName": "/dev/sdf", + "Ebs": { + "AttachTime": "2013-09-10T23:07:00.000Z", + "DeleteOnTermination": false, + "Status": "attached", + "VolumeId": "vol-049df61146c4d7901" + } + } + ], + "InstanceId": "i-1234567890abcdef0" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the ``blockDeviceMapping`` attribute of the specified instance.\n", + "id": "to-describe-the-block-device-mapping-for-an-instance-1472712645423", + "title": "To describe the block device mapping for an instance" + } + ], + "DescribeInternetGateways": [ + { + "input": { + "Filters": [ + { + "Name": "attachment.vpc-id", + "Values": [ + "vpc-a01106c2" + ] + } + ] + }, + "output": { + "InternetGateways": [ + { + "Attachments": [ + { + "State": "available", + "VpcId": "vpc-a01106c2" + } + ], + "InternetGatewayId": "igw-c0a643a9", + "Tags": [ + + ] + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the Internet gateway for the specified VPC.", + "id": "ec2-describe-internet-gateways-1", + "title": "To describe the Internet gateway for a VPC" + } + ], + "DescribeKeyPairs": [ + { + "input": { + "KeyNames": [ + "my-key-pair" + ] + }, + "output": { + "KeyPairs": [ + { + "KeyFingerprint": "1f:51:ae:28:bf:89:e9:d8:1f:25:5d:37:2d:7d:b8:ca:9f:f5:f1:6f", + "KeyName": "my-key-pair" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example displays the fingerprint for the specified key.", + "id": "ec2-describe-key-pairs-1", + "title": "To display a key pair" + } + ], + "DescribeMovingAddresses": [ + { + "output": { + "MovingAddressStatuses": [ + { + "MoveStatus": "MovingToVpc", + "PublicIp": "198.51.100.0" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes all of your moving Elastic IP addresses.", + "id": "ec2-describe-moving-addresses-1", + "title": "To describe your moving addresses" + } + ], + "DescribeNatGateways": [ + { + "input": { + "Filter": [ + { + "Name": "vpc-id", + "Values": [ + "vpc-1a2b3c4d" + ] + } + ] + }, + "output": { + "NatGateways": [ + { + "CreateTime": "2015-12-01T12:26:55.983Z", + "NatGatewayAddresses": [ + { + "AllocationId": "eipalloc-89c620ec", + "NetworkInterfaceId": "eni-9dec76cd", + "PrivateIp": "10.0.0.149", + "PublicIp": "198.11.222.333" + } + ], + "NatGatewayId": "nat-05dba92075d71c408", + "State": "available", + "SubnetId": "subnet-847e4dc2", + "VpcId": "vpc-1a2b3c4d" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the NAT gateway for the specified VPC.", + "id": "ec2-describe-nat-gateways-1", + "title": "To describe a NAT gateway" + } + ], + "DescribeNetworkAcls": [ + { + "input": { + "NetworkAclIds": [ + "acl-5fb85d36" + ] + }, + "output": { + "NetworkAcls": [ + { + "Associations": [ + { + "NetworkAclAssociationId": "aclassoc-66ea5f0b", + "NetworkAclId": "acl-9aeb5ef7", + "SubnetId": "subnet-65ea5f08" + } + ], + "Entries": [ + { + "CidrBlock": "0.0.0.0/0", + "Egress": true, + "Protocol": "-1", + "RuleAction": "deny", + "RuleNumber": 32767 + }, + { + "CidrBlock": "0.0.0.0/0", + "Egress": false, + "Protocol": "-1", + "RuleAction": "deny", + "RuleNumber": 32767 + } + ], + "IsDefault": false, + "NetworkAclId": "acl-5fb85d36", + "Tags": [ + + ], + "VpcId": "vpc-a01106c2" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the specified network ACL.", + "id": "ec2-", + "title": "To describe a network ACL" + } + ], + "DescribeNetworkInterfaceAttribute": [ + { + "input": { + "Attribute": "attachment", + "NetworkInterfaceId": "eni-686ea200" + }, + "output": { + "Attachment": { + "AttachTime": "2015-05-21T20:02:20.000Z", + "AttachmentId": "eni-attach-43348162", + "DeleteOnTermination": true, + "DeviceIndex": 0, + "InstanceId": "i-1234567890abcdef0", + "InstanceOwnerId": "123456789012", + "Status": "attached" + }, + "NetworkInterfaceId": "eni-686ea200" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the attachment attribute of the specified network interface.", + "id": "ec2-describe-network-interface-attribute-1", + "title": "To describe the attachment attribute of a network interface" + }, + { + "input": { + "Attribute": "description", + "NetworkInterfaceId": "eni-686ea200" + }, + "output": { + "Description": { + "Value": "My description" + }, + "NetworkInterfaceId": "eni-686ea200" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the description attribute of the specified network interface.", + "id": "ec2-describe-network-interface-attribute-2", + "title": "To describe the description attribute of a network interface" + }, + { + "input": { + "Attribute": "groupSet", + "NetworkInterfaceId": "eni-686ea200" + }, + "output": { + "Groups": [ + { + "GroupId": "sg-903004f8", + "GroupName": "my-security-group" + } + ], + "NetworkInterfaceId": "eni-686ea200" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the groupSet attribute of the specified network interface.", + "id": "ec2-describe-network-interface-attribute-3", + "title": "To describe the groupSet attribute of a network interface" + }, + { + "input": { + "Attribute": "sourceDestCheck", + "NetworkInterfaceId": "eni-686ea200" + }, + "output": { + "NetworkInterfaceId": "eni-686ea200", + "SourceDestCheck": { + "Value": true + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the sourceDestCheck attribute of the specified network interface.", + "id": "ec2-describe-network-interface-attribute-4", + "title": "To describe the sourceDestCheck attribute of a network interface" + } + ], + "DescribeNetworkInterfaces": [ + { + "input": { + "NetworkInterfaceIds": [ + "eni-e5aa89a3" + ] + }, + "output": { + "NetworkInterfaces": [ + { + "Association": { + "AssociationId": "eipassoc-0fbb766a", + "IpOwnerId": "123456789012", + "PublicDnsName": "ec2-203-0-113-12.compute-1.amazonaws.com", + "PublicIp": "203.0.113.12" + }, + "Attachment": { + "AttachTime": "2013-11-30T23:36:42.000Z", + "AttachmentId": "eni-attach-66c4350a", + "DeleteOnTermination": false, + "DeviceIndex": 1, + "InstanceId": "i-1234567890abcdef0", + "InstanceOwnerId": "123456789012", + "Status": "attached" + }, + "AvailabilityZone": "us-east-1d", + "Description": "my network interface", + "Groups": [ + { + "GroupId": "sg-8637d3e3", + "GroupName": "default" + } + ], + "MacAddress": "02:2f:8f:b0:cf:75", + "NetworkInterfaceId": "eni-e5aa89a3", + "OwnerId": "123456789012", + "PrivateDnsName": "ip-10-0-1-17.ec2.internal", + "PrivateIpAddress": "10.0.1.17", + "PrivateIpAddresses": [ + { + "Association": { + "AssociationId": "eipassoc-0fbb766a", + "IpOwnerId": "123456789012", + "PublicDnsName": "ec2-203-0-113-12.compute-1.amazonaws.com", + "PublicIp": "203.0.113.12" + }, + "Primary": true, + "PrivateDnsName": "ip-10-0-1-17.ec2.internal", + "PrivateIpAddress": "10.0.1.17" + } + ], + "RequesterManaged": false, + "SourceDestCheck": true, + "Status": "in-use", + "SubnetId": "subnet-b61f49f0", + "TagSet": [ + + ], + "VpcId": "vpc-a01106c2" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "", + "id": "ec2-describe-network-interfaces-1", + "title": "To describe a network interface" + } + ], + "DescribeRegions": [ + { + "output": { + "Regions": [ + { + "Endpoint": "ec2.ap-south-1.amazonaws.com", + "RegionName": "ap-south-1" + }, + { + "Endpoint": "ec2.eu-west-1.amazonaws.com", + "RegionName": "eu-west-1" + }, + { + "Endpoint": "ec2.ap-southeast-1.amazonaws.com", + "RegionName": "ap-southeast-1" + }, + { + "Endpoint": "ec2.ap-southeast-2.amazonaws.com", + "RegionName": "ap-southeast-2" + }, + { + "Endpoint": "ec2.eu-central-1.amazonaws.com", + "RegionName": "eu-central-1" + }, + { + "Endpoint": "ec2.ap-northeast-2.amazonaws.com", + "RegionName": "ap-northeast-2" + }, + { + "Endpoint": "ec2.ap-northeast-1.amazonaws.com", + "RegionName": "ap-northeast-1" + }, + { + "Endpoint": "ec2.us-east-1.amazonaws.com", + "RegionName": "us-east-1" + }, + { + "Endpoint": "ec2.sa-east-1.amazonaws.com", + "RegionName": "sa-east-1" + }, + { + "Endpoint": "ec2.us-west-1.amazonaws.com", + "RegionName": "us-west-1" + }, + { + "Endpoint": "ec2.us-west-2.amazonaws.com", + "RegionName": "us-west-2" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes all the regions that are available to you.", + "id": "ec2-describe-regions-1", + "title": "To describe your regions" + } + ], + "DescribeRouteTables": [ + { + "input": { + "RouteTableIds": [ + "rtb-1f382e7d" + ] + }, + "output": { + "RouteTables": [ + { + "Associations": [ + { + "Main": true, + "RouteTableAssociationId": "rtbassoc-d8ccddba", + "RouteTableId": "rtb-1f382e7d" + } + ], + "PropagatingVgws": [ + + ], + "RouteTableId": "rtb-1f382e7d", + "Routes": [ + { + "DestinationCidrBlock": "10.0.0.0/16", + "GatewayId": "local", + "State": "active" + } + ], + "Tags": [ + + ], + "VpcId": "vpc-a01106c2" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the specified route table.", + "id": "ec2-describe-route-tables-1", + "title": "To describe a route table" + } + ], + "DescribeScheduledInstanceAvailability": [ + { + "input": { + "FirstSlotStartTimeRange": { + "EarliestTime": "2016-01-31T00:00:00Z", + "LatestTime": "2016-01-31T04:00:00Z" + }, + "Recurrence": { + "Frequency": "Weekly", + "Interval": 1, + "OccurrenceDays": [ + 1 + ] + } + }, + "output": { + "ScheduledInstanceAvailabilitySet": [ + { + "AvailabilityZone": "us-west-2b", + "AvailableInstanceCount": 20, + "FirstSlotStartTime": "2016-01-31T00:00:00Z", + "HourlyPrice": "0.095", + "InstanceType": "c4.large", + "MaxTermDurationInDays": 366, + "MinTermDurationInDays": 366, + "NetworkPlatform": "EC2-VPC", + "Platform": "Linux/UNIX", + "PurchaseToken": "eyJ2IjoiMSIsInMiOjEsImMiOi...", + "Recurrence": { + "Frequency": "Weekly", + "Interval": 1, + "OccurrenceDaySet": [ + 1 + ], + "OccurrenceRelativeToEnd": false + }, + "SlotDurationInHours": 23, + "TotalScheduledInstanceHours": 1219 + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes a schedule that occurs every week on Sunday, starting on the specified date. Note that the output contains a single schedule as an example.", + "id": "ec2-describe-scheduled-instance-availability-1", + "title": "To describe an available schedule" + } + ], + "DescribeScheduledInstances": [ + { + "input": { + "ScheduledInstanceIds": [ + "sci-1234-1234-1234-1234-123456789012" + ] + }, + "output": { + "ScheduledInstanceSet": [ + { + "AvailabilityZone": "us-west-2b", + "CreateDate": "2016-01-25T21:43:38.612Z", + "HourlyPrice": "0.095", + "InstanceCount": 1, + "InstanceType": "c4.large", + "NetworkPlatform": "EC2-VPC", + "NextSlotStartTime": "2016-01-31T09:00:00Z", + "Platform": "Linux/UNIX", + "Recurrence": { + "Frequency": "Weekly", + "Interval": 1, + "OccurrenceDaySet": [ + 1 + ], + "OccurrenceRelativeToEnd": false, + "OccurrenceUnit": "" + }, + "ScheduledInstanceId": "sci-1234-1234-1234-1234-123456789012", + "SlotDurationInHours": 32, + "TermEndDate": "2017-01-31T09:00:00Z", + "TermStartDate": "2016-01-31T09:00:00Z", + "TotalScheduledInstanceHours": 1696 + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the specified Scheduled Instance.", + "id": "ec2-describe-scheduled-instances-1", + "title": "To describe your Scheduled Instances" + } + ], + "DescribeSnapshotAttribute": [ + { + "input": { + "Attribute": "createVolumePermission", + "SnapshotId": "snap-066877671789bd71b" + }, + "output": { + "CreateVolumePermissions": [ + + ], + "SnapshotId": "snap-066877671789bd71b" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the ``createVolumePermission`` attribute on a snapshot with the snapshot ID of ``snap-066877671789bd71b``.", + "id": "to-describe-snapshot-attributes-1472503199736", + "title": "To describe snapshot attributes" + } + ], + "DescribeSnapshots": [ + { + "input": { + "SnapshotIds": [ + "snap-1234567890abcdef0" + ] + }, + "output": { + "NextToken": "", + "Snapshots": [ + { + "Description": "This is my snapshot.", + "OwnerId": "012345678910", + "Progress": "100%", + "SnapshotId": "snap-1234567890abcdef0", + "StartTime": "2014-02-28T21:28:32.000Z", + "State": "completed", + "VolumeId": "vol-049df61146c4d7901", + "VolumeSize": 8 + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes a snapshot with the snapshot ID of ``snap-1234567890abcdef0``.", + "id": "to-describe-a-snapshot-1472503807850", + "title": "To describe a snapshot" + }, + { + "input": { + "Filters": [ + { + "Name": "status", + "Values": [ + "pending" + ] + } + ], + "OwnerIds": [ + "012345678910" + ] + }, + "output": { + "NextToken": "", + "Snapshots": [ + { + "Description": "This is my copied snapshot.", + "OwnerId": "012345678910", + "Progress": "87%", + "SnapshotId": "snap-066877671789bd71b", + "StartTime": "2014-02-28T21:37:27.000Z", + "State": "pending", + "VolumeId": "vol-1234567890abcdef0", + "VolumeSize": 8 + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes all snapshots owned by the ID 012345678910 that are in the ``pending`` status.", + "id": "to-describe-snapshots-using-filters-1472503929793", + "title": "To describe snapshots using filters" + } + ], + "DescribeSpotDatafeedSubscription": [ + { + "output": { + "SpotDatafeedSubscription": { + "Bucket": "my-s3-bucket", + "OwnerId": "123456789012", + "Prefix": "spotdata", + "State": "Active" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the Spot Instance datafeed subscription for your AWS account.", + "id": "ec2-describe-spot-datafeed-subscription-1", + "title": "To describe the datafeed for your AWS account" + } + ], + "DescribeSpotFleetInstances": [ + { + "input": { + "SpotFleetRequestId": "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE" + }, + "output": { + "ActiveInstances": [ + { + "InstanceId": "i-1234567890abcdef0", + "InstanceType": "m3.medium", + "SpotInstanceRequestId": "sir-08b93456" + } + ], + "SpotFleetRequestId": "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example lists the Spot Instances associated with the specified Spot fleet.", + "id": "ec2-describe-spot-fleet-instances-1", + "title": "To describe the Spot Instances associated with a Spot fleet" + } + ], + "DescribeSpotFleetRequestHistory": [ + { + "input": { + "SpotFleetRequestId": "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", + "StartTime": "2015-05-26T00:00:00Z" + }, + "output": { + "HistoryRecords": [ + { + "EventInformation": { + "EventSubType": "submitted" + }, + "EventType": "fleetRequestChange", + "Timestamp": "2015-05-26T23:17:20.697Z" + }, + { + "EventInformation": { + "EventSubType": "active" + }, + "EventType": "fleetRequestChange", + "Timestamp": "2015-05-26T23:17:20.873Z" + }, + { + "EventInformation": { + "EventSubType": "launched", + "InstanceId": "i-1234567890abcdef0" + }, + "EventType": "instanceChange", + "Timestamp": "2015-05-26T23:21:21.712Z" + }, + { + "EventInformation": { + "EventSubType": "launched", + "InstanceId": "i-1234567890abcdef1" + }, + "EventType": "instanceChange", + "Timestamp": "2015-05-26T23:21:21.816Z" + } + ], + "NextToken": "CpHNsscimcV5oH7bSbub03CI2Qms5+ypNpNm+53MNlR0YcXAkp0xFlfKf91yVxSExmbtma3awYxMFzNA663ZskT0AHtJ6TCb2Z8bQC2EnZgyELbymtWPfpZ1ZbauVg+P+TfGlWxWWB/Vr5dk5d4LfdgA/DRAHUrYgxzrEXAMPLE=", + "SpotFleetRequestId": "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", + "StartTime": "2015-05-26T00:00:00Z" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example returns the history for the specified Spot fleet starting at the specified time.", + "id": "ec2-describe-spot-fleet-request-history-1", + "title": "To describe Spot fleet history" + } + ], + "DescribeSpotFleetRequests": [ + { + "input": { + "SpotFleetRequestIds": [ + "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE" + ] + }, + "output": { + "SpotFleetRequestConfigs": [ + { + "SpotFleetRequestConfig": { + "IamFleetRole": "arn:aws:iam::123456789012:role/my-spot-fleet-role", + "LaunchSpecifications": [ + { + "EbsOptimized": false, + "ImageId": "ami-1a2b3c4d", + "InstanceType": "cc2.8xlarge", + "NetworkInterfaces": [ + { + "AssociatePublicIpAddress": true, + "DeleteOnTermination": false, + "DeviceIndex": 0, + "SecondaryPrivateIpAddressCount": 0, + "SubnetId": "subnet-a61dafcf" + } + ] + }, + { + "EbsOptimized": false, + "ImageId": "ami-1a2b3c4d", + "InstanceType": "r3.8xlarge", + "NetworkInterfaces": [ + { + "AssociatePublicIpAddress": true, + "DeleteOnTermination": false, + "DeviceIndex": 0, + "SecondaryPrivateIpAddressCount": 0, + "SubnetId": "subnet-a61dafcf" + } + ] + } + ], + "SpotPrice": "0.05", + "TargetCapacity": 20 + }, + "SpotFleetRequestId": "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", + "SpotFleetRequestState": "active" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the specified Spot fleet request.", + "id": "ec2-describe-spot-fleet-requests-1", + "title": "To describe a Spot fleet request" + } + ], + "DescribeSpotInstanceRequests": [ + { + "input": { + "SpotInstanceRequestIds": [ + "sir-08b93456" + ] + }, + "output": { + "SpotInstanceRequests": [ + { + "CreateTime": "2014-04-30T18:14:55.000Z", + "InstanceId": "i-1234567890abcdef0", + "LaunchSpecification": { + "BlockDeviceMappings": [ + { + "DeviceName": "/dev/sda1", + "Ebs": { + "DeleteOnTermination": true, + "VolumeSize": 8, + "VolumeType": "standard" + } + } + ], + "EbsOptimized": false, + "ImageId": "ami-7aba833f", + "InstanceType": "m1.small", + "KeyName": "my-key-pair", + "SecurityGroups": [ + { + "GroupId": "sg-e38f24a7", + "GroupName": "my-security-group" + } + ] + }, + "LaunchedAvailabilityZone": "us-west-1b", + "ProductDescription": "Linux/UNIX", + "SpotInstanceRequestId": "sir-08b93456", + "SpotPrice": "0.010000", + "State": "active", + "Status": { + "Code": "fulfilled", + "Message": "Your Spot request is fulfilled.", + "UpdateTime": "2014-04-30T18:16:21.000Z" + }, + "Type": "one-time" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the specified Spot Instance request.", + "id": "ec2-describe-spot-instance-requests-1", + "title": "To describe a Spot Instance request" + } + ], + "DescribeSpotPriceHistory": [ + { + "input": { + "EndTime": "2014-01-06T08:09:10", + "InstanceTypes": [ + "m1.xlarge" + ], + "ProductDescriptions": [ + "Linux/UNIX (Amazon VPC)" + ], + "StartTime": "2014-01-06T07:08:09" + }, + "output": { + "SpotPriceHistory": [ + { + "AvailabilityZone": "us-west-1a", + "InstanceType": "m1.xlarge", + "ProductDescription": "Linux/UNIX (Amazon VPC)", + "SpotPrice": "0.080000", + "Timestamp": "2014-01-06T04:32:53.000Z" + }, + { + "AvailabilityZone": "us-west-1c", + "InstanceType": "m1.xlarge", + "ProductDescription": "Linux/UNIX (Amazon VPC)", + "SpotPrice": "0.080000", + "Timestamp": "2014-01-05T11:28:26.000Z" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example returns the Spot Price history for m1.xlarge, Linux/UNIX (Amazon VPC) instances for a particular day in January.", + "id": "ec2-describe-spot-price-history-1", + "title": "To describe Spot price history for Linux/UNIX (Amazon VPC)" + } + ], + "DescribeSubnets": [ + { + "input": { + "Filters": [ + { + "Name": "vpc-id", + "Values": [ + "vpc-a01106c2" + ] + } + ] + }, + "output": { + "Subnets": [ + { + "AvailabilityZone": "us-east-1c", + "AvailableIpAddressCount": 251, + "CidrBlock": "10.0.1.0/24", + "DefaultForAz": false, + "MapPublicIpOnLaunch": false, + "State": "available", + "SubnetId": "subnet-9d4a7b6c", + "VpcId": "vpc-a01106c2" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the subnets for the specified VPC.", + "id": "ec2-describe-subnets-1", + "title": "To describe the subnets for a VPC" + } + ], + "DescribeTags": [ + { + "input": { + "Filters": [ + { + "Name": "resource-id", + "Values": [ + "i-1234567890abcdef8" + ] + } + ] + }, + "output": { + "Tags": [ + { + "Key": "Stack", + "ResourceId": "i-1234567890abcdef8", + "ResourceType": "instance", + "Value": "test" + }, + { + "Key": "Name", + "ResourceId": "i-1234567890abcdef8", + "ResourceType": "instance", + "Value": "Beta Server" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the tags for the specified instance.", + "id": "ec2-describe-tags-1", + "title": "To describe the tags for a single resource" + } + ], + "DescribeVolumeAttribute": [ + { + "input": { + "Attribute": "autoEnableIO", + "VolumeId": "vol-049df61146c4d7901" + }, + "output": { + "AutoEnableIO": { + "Value": false + }, + "VolumeId": "vol-049df61146c4d7901" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the ``autoEnableIo`` attribute of the volume with the ID ``vol-049df61146c4d7901``.", + "id": "to-describe-a-volume-attribute-1472505773492", + "title": "To describe a volume attribute" + } + ], + "DescribeVolumeStatus": [ + { + "input": { + "VolumeIds": [ + "vol-1234567890abcdef0" + ] + }, + "output": { + "VolumeStatuses": [ + { + "Actions": [ + + ], + "AvailabilityZone": "us-east-1a", + "Events": [ + + ], + "VolumeId": "vol-1234567890abcdef0", + "VolumeStatus": { + "Details": [ + { + "Name": "io-enabled", + "Status": "passed" + }, + { + "Name": "io-performance", + "Status": "not-applicable" + } + ], + "Status": "ok" + } + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the status for the volume ``vol-1234567890abcdef0``.", + "id": "to-describe-the-status-of-a-single-volume-1472507016193", + "title": "To describe the status of a single volume" + }, + { + "input": { + "Filters": [ + { + "Name": "volume-status.status", + "Values": [ + "impaired" + ] + } + ] + }, + "output": { + "VolumeStatuses": [ + + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the status for all volumes that are impaired. In this example output, there are no impaired volumes.", + "id": "to-describe-the-status-of-impaired-volumes-1472507239821", + "title": "To describe the status of impaired volumes" + } + ], + "DescribeVolumes": [ + { + "input": { + }, + "output": { + "NextToken": "", + "Volumes": [ + { + "Attachments": [ + { + "AttachTime": "2013-12-18T22:35:00.000Z", + "DeleteOnTermination": true, + "Device": "/dev/sda1", + "InstanceId": "i-1234567890abcdef0", + "State": "attached", + "VolumeId": "vol-049df61146c4d7901" + } + ], + "AvailabilityZone": "us-east-1a", + "CreateTime": "2013-12-18T22:35:00.084Z", + "Size": 8, + "SnapshotId": "snap-1234567890abcdef0", + "State": "in-use", + "VolumeId": "vol-049df61146c4d7901", + "VolumeType": "standard" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes all of your volumes in the default region.", + "id": "to-describe-all-volumes-1472506358883", + "title": "To describe all volumes" + }, + { + "input": { + "Filters": [ + { + "Name": "attachment.instance-id", + "Values": [ + "i-1234567890abcdef0" + ] + }, + { + "Name": "attachment.delete-on-termination", + "Values": [ + "true" + ] + } + ] + }, + "output": { + "Volumes": [ + { + "Attachments": [ + { + "AttachTime": "2013-12-18T22:35:00.000Z", + "DeleteOnTermination": true, + "Device": "/dev/sda1", + "InstanceId": "i-1234567890abcdef0", + "State": "attached", + "VolumeId": "vol-049df61146c4d7901" + } + ], + "AvailabilityZone": "us-east-1a", + "CreateTime": "2013-12-18T22:35:00.084Z", + "Size": 8, + "SnapshotId": "snap-1234567890abcdef0", + "State": "in-use", + "VolumeId": "vol-049df61146c4d7901", + "VolumeType": "standard" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes all volumes that are both attached to the instance with the ID i-1234567890abcdef0 and set to delete when the instance terminates.", + "id": "to-describe-volumes-that-are-attached-to-a-specific-instance-1472506613578", + "title": "To describe volumes that are attached to a specific instance" + } + ], + "DescribeVpcAttribute": [ + { + "input": { + "Attribute": "enableDnsSupport", + "VpcId": "vpc-a01106c2" + }, + "output": { + "EnableDnsSupport": { + "Value": true + }, + "VpcId": "vpc-a01106c2" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the enableDnsSupport attribute. This attribute indicates whether DNS resolution is enabled for the VPC. If this attribute is true, the Amazon DNS server resolves DNS hostnames for your instances to their corresponding IP addresses; otherwise, it does not.", + "id": "ec2-describe-vpc-attribute-1", + "title": "To describe the enableDnsSupport attribute" + }, + { + "input": { + "Attribute": "enableDnsHostnames", + "VpcId": "vpc-a01106c2" + }, + "output": { + "EnableDnsHostnames": { + "Value": true + }, + "VpcId": "vpc-a01106c2" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the enableDnsHostnames attribute. This attribute indicates whether the instances launched in the VPC get DNS hostnames. If this attribute is true, instances in the VPC get DNS hostnames; otherwise, they do not.", + "id": "ec2-describe-vpc-attribute-2", + "title": "To describe the enableDnsHostnames attribute" + } + ], + "DescribeVpcs": [ + { + "input": { + "VpcIds": [ + "vpc-a01106c2" + ] + }, + "output": { + "Vpcs": [ + { + "CidrBlock": "10.0.0.0/16", + "DhcpOptionsId": "dopt-7a8b9c2d", + "InstanceTenancy": "default", + "IsDefault": false, + "State": "available", + "Tags": [ + { + "Key": "Name", + "Value": "MyVPC" + } + ], + "VpcId": "vpc-a01106c2" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the specified VPC.", + "id": "ec2-describe-vpcs-1", + "title": "To describe a VPC" + } + ], + "DetachInternetGateway": [ + { + "input": { + "InternetGatewayId": "igw-c0a643a9", + "VpcId": "vpc-a01106c2" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example detaches the specified Internet gateway from the specified VPC.", + "id": "ec2-detach-internet-gateway-1", + "title": "To detach an Internet gateway from a VPC" + } + ], + "DetachNetworkInterface": [ + { + "input": { + "AttachmentId": "eni-attach-66c4350a" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example detaches the specified network interface from its attached instance.", + "id": "ec2-detach-network-interface-1", + "title": "To detach a network interface from an instance" + } + ], + "DetachVolume": [ + { + "input": { + "VolumeId": "vol-1234567890abcdef0" + }, + "output": { + "AttachTime": "2014-02-27T19:23:06.000Z", + "Device": "/dev/sdb", + "InstanceId": "i-1234567890abcdef0", + "State": "detaching", + "VolumeId": "vol-049df61146c4d7901" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example detaches the volume (``vol-049df61146c4d7901``) from the instance it is attached to.", + "id": "to-detach-a-volume-from-an-instance-1472507977694", + "title": "To detach a volume from an instance" + } + ], + "DisableVgwRoutePropagation": [ + { + "input": { + "GatewayId": "vgw-9a4cacf3", + "RouteTableId": "rtb-22574640" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example disables the specified virtual private gateway from propagating static routes to the specified route table.", + "id": "ec2-disable-vgw-route-propagation-1", + "title": "To disable route propagation" + } + ], + "DisassociateAddress": [ + { + "input": { + "AssociationId": "eipassoc-2bebb745" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example disassociates an Elastic IP address from an instance in a VPC.", + "id": "ec2-disassociate-address-1", + "title": "To disassociate an Elastic IP address in EC2-VPC" + }, + { + "input": { + "PublicIp": "198.51.100.0" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example disassociates an Elastic IP address from an instance in EC2-Classic.", + "id": "ec2-disassociate-address-2", + "title": "To disassociate an Elastic IP addresses in EC2-Classic" + } + ], + "DisassociateRouteTable": [ + { + "input": { + "AssociationId": "rtbassoc-781d0d1a" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example disassociates the specified route table from its associated subnet.", + "id": "ec2-disassociate-route-table-1", + "title": "To disassociate a route table" + } + ], + "EnableVgwRoutePropagation": [ + { + "input": { + "GatewayId": "vgw-9a4cacf3", + "RouteTableId": "rtb-22574640" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example enables the specified virtual private gateway to propagate static routes to the specified route table.", + "id": "ec2-enable-vgw-route-propagation-1", + "title": "To enable route propagation" + } + ], + "EnableVolumeIO": [ + { + "input": { + "VolumeId": "vol-1234567890abcdef0" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example enables I/O on volume ``vol-1234567890abcdef0``.", + "id": "to-enable-io-for-a-volume-1472508114867", + "title": "To enable I/O for a volume" + } + ], + "ModifyNetworkInterfaceAttribute": [ + { + "input": { + "Attachment": { + "AttachmentId": "eni-attach-43348162", + "DeleteOnTermination": false + }, + "NetworkInterfaceId": "eni-686ea200" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example modifies the attachment attribute of the specified network interface.", + "id": "ec2-modify-network-interface-attribute-1", + "title": "To modify the attachment attribute of a network interface" + }, + { + "input": { + "Description": { + "Value": "My description" + }, + "NetworkInterfaceId": "eni-686ea200" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example modifies the description attribute of the specified network interface.", + "id": "ec2-modify-network-interface-attribute-2", + "title": "To modify the description attribute of a network interface" + }, + { + "input": { + "Groups": [ + "sg-903004f8", + "sg-1a2b3c4d" + ], + "NetworkInterfaceId": "eni-686ea200" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example command modifies the groupSet attribute of the specified network interface.", + "id": "ec2-modify-network-interface-attribute-3", + "title": "To modify the groupSet attribute of a network interface" + }, + { + "input": { + "NetworkInterfaceId": "eni-686ea200", + "SourceDestCheck": { + "Value": false + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example command modifies the sourceDestCheck attribute of the specified network interface.", + "id": "ec2-modify-network-interface-attribute-4", + "title": "To modify the sourceDestCheck attribute of a network interface" + } + ], + "ModifySnapshotAttribute": [ + { + "input": { + "Attribute": "createVolumePermission", + "OperationType": "remove", + "SnapshotId": "snap-1234567890abcdef0", + "UserIds": [ + "123456789012" + ] + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example modifies snapshot ``snap-1234567890abcdef0`` to remove the create volume permission for a user with the account ID ``123456789012``. If the command succeeds, no output is returned.", + "id": "to-modify-a-snapshot-attribute-1472508385907", + "title": "To modify a snapshot attribute" + }, + { + "input": { + "Attribute": "createVolumePermission", + "GroupNames": [ + "all" + ], + "OperationType": "add", + "SnapshotId": "snap-1234567890abcdef0" + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example makes the snapshot ``snap-1234567890abcdef0`` public.", + "id": "to-make-a-snapshot-public-1472508470529", + "title": "To make a snapshot public" + } + ], + "ModifySpotFleetRequest": [ + { + "input": { + "SpotFleetRequestId": "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", + "TargetCapacity": 20 + }, + "output": { + "Return": true + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example increases the target capacity of the specified Spot fleet request.", + "id": "ec2-modify-spot-fleet-request-1", + "title": "To increase the target capacity of a Spot fleet request" + }, + { + "input": { + "ExcessCapacityTerminationPolicy": "NoTermination ", + "SpotFleetRequestId": "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", + "TargetCapacity": 10 + }, + "output": { + "Return": true + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example decreases the target capacity of the specified Spot fleet request without terminating any Spot Instances as a result.", + "id": "ec2-modify-spot-fleet-request-2", + "title": "To decrease the target capacity of a Spot fleet request" + } + ], + "ModifySubnetAttribute": [ + { + "input": { + "MapPublicIpOnLaunch": { + "Value": true + }, + "SubnetId": "subnet-1a2b3c4d" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example modifies the specified subnet so that all instances launched into this subnet are assigned a public IP address.", + "id": "ec2-modify-subnet-attribute-1", + "title": "To change a subnet's public IP addressing behavior" + } + ], + "ModifyVolumeAttribute": [ + { + "input": { + "AutoEnableIO": { + "Value": true + }, + "DryRun": true, + "VolumeId": "vol-1234567890abcdef0" + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example sets the ``autoEnableIo`` attribute of the volume with the ID ``vol-1234567890abcdef0`` to ``true``. If the command succeeds, no output is returned.", + "id": "to-modify-a-volume-attribute-1472508596749", + "title": "To modify a volume attribute" + } + ], + "ModifyVpcAttribute": [ + { + "input": { + "EnableDnsSupport": { + "Value": false + }, + "VpcId": "vpc-a01106c2" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example modifies the enableDnsSupport attribute. This attribute indicates whether DNS resolution is enabled for the VPC. If this attribute is true, the Amazon DNS server resolves DNS hostnames for instances in the VPC to their corresponding IP addresses; otherwise, it does not.", + "id": "ec2-modify-vpc-attribute-1", + "title": "To modify the enableDnsSupport attribute" + }, + { + "input": { + "EnableDnsHostnames": { + "Value": false + }, + "VpcId": "vpc-a01106c2" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example modifies the enableDnsHostnames attribute. This attribute indicates whether instances launched in the VPC get DNS hostnames. If this attribute is true, instances in the VPC get DNS hostnames; otherwise, they do not.", + "id": "ec2-modify-vpc-attribute-2", + "title": "To modify the enableDnsHostnames attribute" + } + ], + "MoveAddressToVpc": [ + { + "input": { + "PublicIp": "54.123.4.56" + }, + "output": { + "Status": "MoveInProgress" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example moves the specified Elastic IP address to the EC2-VPC platform.", + "id": "ec2-move-address-to-vpc-1", + "title": "To move an address to EC2-VPC" + } + ], + "PurchaseScheduledInstances": [ + { + "input": { + "PurchaseRequests": [ + { + "InstanceCount": 1, + "PurchaseToken": "eyJ2IjoiMSIsInMiOjEsImMiOi..." + } + ] + }, + "output": { + "ScheduledInstanceSet": [ + { + "AvailabilityZone": "us-west-2b", + "CreateDate": "2016-01-25T21:43:38.612Z", + "HourlyPrice": "0.095", + "InstanceCount": 1, + "InstanceType": "c4.large", + "NetworkPlatform": "EC2-VPC", + "NextSlotStartTime": "2016-01-31T09:00:00Z", + "Platform": "Linux/UNIX", + "Recurrence": { + "Frequency": "Weekly", + "Interval": 1, + "OccurrenceDaySet": [ + 1 + ], + "OccurrenceRelativeToEnd": false, + "OccurrenceUnit": "" + }, + "ScheduledInstanceId": "sci-1234-1234-1234-1234-123456789012", + "SlotDurationInHours": 32, + "TermEndDate": "2017-01-31T09:00:00Z", + "TermStartDate": "2016-01-31T09:00:00Z", + "TotalScheduledInstanceHours": 1696 + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example purchases a Scheduled Instance.", + "id": "ec2-purchase-scheduled-instances-1", + "title": "To purchase a Scheduled Instance" + } + ], + "ReleaseAddress": [ + { + "input": { + "AllocationId": "eipalloc-64d5890a" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example releases an Elastic IP address for use with instances in a VPC.", + "id": "ec2-release-address-1", + "title": "To release an Elastic IP address for EC2-VPC" + }, + { + "input": { + "PublicIp": "198.51.100.0" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example releases an Elastic IP address for use with instances in EC2-Classic.", + "id": "ec2-release-address-2", + "title": "To release an Elastic IP addresses for EC2-Classic" + } + ], + "ReplaceNetworkAclAssociation": [ + { + "input": { + "AssociationId": "aclassoc-e5b95c8c", + "NetworkAclId": "acl-5fb85d36" + }, + "output": { + "NewAssociationId": "aclassoc-3999875b" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example associates the specified network ACL with the subnet for the specified network ACL association.", + "id": "ec2-replace-network-acl-association-1", + "title": "To replace the network ACL associated with a subnet" + } + ], + "ReplaceNetworkAclEntry": [ + { + "input": { + "CidrBlock": "203.0.113.12/24", + "Egress": false, + "NetworkAclId": "acl-5fb85d36", + "PortRange": { + "From": 53, + "To": 53 + }, + "Protocol": "udp", + "RuleAction": "allow", + "RuleNumber": 100 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example replaces an entry for the specified network ACL. The new rule 100 allows ingress traffic from 203.0.113.12/24 on UDP port 53 (DNS) into any associated subnet.", + "id": "ec2-replace-network-acl-entry-1", + "title": "To replace a network ACL entry" + } + ], + "ReplaceRoute": [ + { + "input": { + "DestinationCidrBlock": "10.0.0.0/16", + "GatewayId": "vgw-9a4cacf3", + "RouteTableId": "rtb-22574640" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example replaces the specified route in the specified table table. The new route matches the specified CIDR and sends the traffic to the specified virtual private gateway.", + "id": "ec2-replace-route-1", + "title": "To replace a route" + } + ], + "ReplaceRouteTableAssociation": [ + { + "input": { + "AssociationId": "rtbassoc-781d0d1a", + "RouteTableId": "rtb-22574640" + }, + "output": { + "NewAssociationId": "rtbassoc-3a1f0f58" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example associates the specified route table with the subnet for the specified route table association.", + "id": "ec2-replace-route-table-association-1", + "title": "To replace the route table associated with a subnet" + } + ], + "RequestSpotFleet": [ + { + "input": { + "SpotFleetRequestConfig": { + "IamFleetRole": "arn:aws:iam::123456789012:role/my-spot-fleet-role", + "LaunchSpecifications": [ + { + "IamInstanceProfile": { + "Arn": "arn:aws:iam::123456789012:instance-profile/my-iam-role" + }, + "ImageId": "ami-1a2b3c4d", + "InstanceType": "m3.medium", + "KeyName": "my-key-pair", + "SecurityGroups": [ + { + "GroupId": "sg-1a2b3c4d" + } + ], + "SubnetId": "subnet-1a2b3c4d, subnet-3c4d5e6f" + } + ], + "SpotPrice": "0.04", + "TargetCapacity": 2 + } + }, + "output": { + "SpotFleetRequestId": "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a Spot fleet request with two launch specifications that differ only by subnet. The Spot fleet launches the instances in the specified subnet with the lowest price. If the instances are launched in a default VPC, they receive a public IP address by default. If the instances are launched in a nondefault VPC, they do not receive a public IP address by default. Note that you can't specify different subnets from the same Availability Zone in a Spot fleet request.", + "id": "ec2-request-spot-fleet-1", + "title": "To request a Spot fleet in the subnet with the lowest price" + }, + { + "input": { + "SpotFleetRequestConfig": { + "IamFleetRole": "arn:aws:iam::123456789012:role/my-spot-fleet-role", + "LaunchSpecifications": [ + { + "IamInstanceProfile": { + "Arn": "arn:aws:iam::123456789012:instance-profile/my-iam-role" + }, + "ImageId": "ami-1a2b3c4d", + "InstanceType": "m3.medium", + "KeyName": "my-key-pair", + "Placement": { + "AvailabilityZone": "us-west-2a, us-west-2b" + }, + "SecurityGroups": [ + { + "GroupId": "sg-1a2b3c4d" + } + ] + } + ], + "SpotPrice": "0.04", + "TargetCapacity": 2 + } + }, + "output": { + "SpotFleetRequestId": "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a Spot fleet request with two launch specifications that differ only by Availability Zone. The Spot fleet launches the instances in the specified Availability Zone with the lowest price. If your account supports EC2-VPC only, Amazon EC2 launches the Spot instances in the default subnet of the Availability Zone. If your account supports EC2-Classic, Amazon EC2 launches the instances in EC2-Classic in the Availability Zone.", + "id": "ec2-request-spot-fleet-2", + "title": "To request a Spot fleet in the Availability Zone with the lowest price" + }, + { + "input": { + "SpotFleetRequestConfig": { + "IamFleetRole": "arn:aws:iam::123456789012:role/my-spot-fleet-role", + "LaunchSpecifications": [ + { + "IamInstanceProfile": { + "Arn": "arn:aws:iam::880185128111:instance-profile/my-iam-role" + }, + "ImageId": "ami-1a2b3c4d", + "InstanceType": "m3.medium", + "KeyName": "my-key-pair", + "NetworkInterfaces": [ + { + "AssociatePublicIpAddress": true, + "DeviceIndex": 0, + "Groups": [ + "sg-1a2b3c4d" + ], + "SubnetId": "subnet-1a2b3c4d" + } + ] + } + ], + "SpotPrice": "0.04", + "TargetCapacity": 2 + } + }, + "output": { + "SpotFleetRequestId": "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example assigns public addresses to instances launched in a nondefault VPC. Note that when you specify a network interface, you must include the subnet ID and security group ID using the network interface.", + "id": "ec2-request-spot-fleet-3", + "title": "To launch Spot instances in a subnet and assign them public IP addresses" + }, + { + "input": { + "SpotFleetRequestConfig": { + "AllocationStrategy": "diversified", + "IamFleetRole": "arn:aws:iam::123456789012:role/my-spot-fleet-role", + "LaunchSpecifications": [ + { + "ImageId": "ami-1a2b3c4d", + "InstanceType": "c4.2xlarge", + "SubnetId": "subnet-1a2b3c4d" + }, + { + "ImageId": "ami-1a2b3c4d", + "InstanceType": "m3.2xlarge", + "SubnetId": "subnet-1a2b3c4d" + }, + { + "ImageId": "ami-1a2b3c4d", + "InstanceType": "r3.2xlarge", + "SubnetId": "subnet-1a2b3c4d" + } + ], + "SpotPrice": "0.70", + "TargetCapacity": 30 + } + }, + "output": { + "SpotFleetRequestId": "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a Spot fleet request that launches 30 instances using the diversified allocation strategy. The launch specifications differ by instance type. The Spot fleet distributes the instances across the launch specifications such that there are 10 instances of each type.", + "id": "ec2-request-spot-fleet-4", + "title": "To request a Spot fleet using the diversified allocation strategy" + } + ], + "RequestSpotInstances": [ + { + "input": { + "InstanceCount": 5, + "LaunchSpecification": { + "IamInstanceProfile": { + "Arn": "arn:aws:iam::123456789012:instance-profile/my-iam-role" + }, + "ImageId": "ami-1a2b3c4d", + "InstanceType": "m3.medium", + "KeyName": "my-key-pair", + "Placement": { + "AvailabilityZone": "us-west-2a" + }, + "SecurityGroupIds": [ + "sg-1a2b3c4d" + ] + }, + "SpotPrice": "0.03", + "Type": "one-time" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates a one-time Spot Instance request for five instances in the specified Availability Zone. If your account supports EC2-VPC only, Amazon EC2 launches the instances in the default subnet of the specified Availability Zone. If your account supports EC2-Classic, Amazon EC2 launches the instances in EC2-Classic in the specified Availability Zone.", + "id": "ec2-request-spot-instances-1", + "title": "To create a one-time Spot Instance request" + }, + { + "input": { + "InstanceCount": 5, + "LaunchSpecification": { + "IamInstanceProfile": { + "Arn": "arn:aws:iam::123456789012:instance-profile/my-iam-role" + }, + "ImageId": "ami-1a2b3c4d", + "InstanceType": "m3.medium", + "SecurityGroupIds": [ + "sg-1a2b3c4d" + ], + "SubnetId": "subnet-1a2b3c4d" + }, + "SpotPrice": "0.050", + "Type": "one-time" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example command creates a one-time Spot Instance request for five instances in the specified subnet. Amazon EC2 launches the instances in the specified subnet. If the VPC is a nondefault VPC, the instances do not receive a public IP address by default.", + "id": "ec2-request-spot-instances-2", + "title": "To create a one-time Spot Instance request" + } + ], + "ResetSnapshotAttribute": [ + { + "input": { + "Attribute": "createVolumePermission", + "SnapshotId": "snap-1234567890abcdef0" + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example resets the create volume permissions for snapshot ``snap-1234567890abcdef0``. If the command succeeds, no output is returned.", + "id": "to-reset-a-snapshot-attribute-1472508825735", + "title": "To reset a snapshot attribute" + } + ], + "RestoreAddressToClassic": [ + { + "input": { + "PublicIp": "198.51.100.0" + }, + "output": { + "PublicIp": "198.51.100.0", + "Status": "MoveInProgress" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example restores the specified Elastic IP address to the EC2-Classic platform.", + "id": "ec2-restore-address-to-classic-1", + "title": "To restore an address to EC2-Classic" + } + ], + "RunScheduledInstances": [ + { + "input": { + "InstanceCount": 1, + "LaunchSpecification": { + "IamInstanceProfile": { + "Name": "my-iam-role" + }, + "ImageId": "ami-12345678", + "InstanceType": "c4.large", + "KeyName": "my-key-pair", + "NetworkInterfaces": [ + { + "AssociatePublicIpAddress": true, + "DeviceIndex": 0, + "Groups": [ + "sg-12345678" + ], + "SubnetId": "subnet-12345678" + } + ] + }, + "ScheduledInstanceId": "sci-1234-1234-1234-1234-123456789012" + }, + "output": { + "InstanceIdSet": [ + "i-1234567890abcdef0" + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example launches the specified Scheduled Instance in a VPC.", + "id": "ec2-run-scheduled-instances-1", + "title": "To launch a Scheduled Instance in a VPC" + }, + { + "input": { + "InstanceCount": 1, + "LaunchSpecification": { + "IamInstanceProfile": { + "Name": "my-iam-role" + }, + "ImageId": "ami-12345678", + "InstanceType": "c4.large", + "KeyName": "my-key-pair", + "Placement": { + "AvailabilityZone": "us-west-2b" + }, + "SecurityGroupIds": [ + "sg-12345678" + ] + }, + "ScheduledInstanceId": "sci-1234-1234-1234-1234-123456789012" + }, + "output": { + "InstanceIdSet": [ + "i-1234567890abcdef0" + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example launches the specified Scheduled Instance in EC2-Classic.", + "id": "ec2-run-scheduled-instances-2", + "title": "To launch a Scheduled Instance in EC2-Classic" + } + ], + "UnassignPrivateIpAddresses": [ + { + "input": { + "NetworkInterfaceId": "eni-e5aa89a3", + "PrivateIpAddresses": [ + "10.0.0.82" + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example unassigns the specified private IP address from the specified network interface.", + "id": "ec2-unassign-private-ip-addresses-1", + "title": "To unassign a secondary private IP address from a network interface" + } + ] + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/paginators-1.json new file mode 100755 index 000000000..fdee7f5d6 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/paginators-1.json @@ -0,0 +1,144 @@ +{ + "pagination": { + "DescribeAccountAttributes": { + "result_key": "AccountAttributes" + }, + "DescribeAddresses": { + "result_key": "Addresses" + }, + "DescribeAvailabilityZones": { + "result_key": "AvailabilityZones" + }, + "DescribeBundleTasks": { + "result_key": "BundleTasks" + }, + "DescribeConversionTasks": { + "result_key": "ConversionTasks" + }, + "DescribeCustomerGateways": { + "result_key": "CustomerGateways" + }, + "DescribeDhcpOptions": { + "result_key": "DhcpOptions" + }, + "DescribeExportTasks": { + "result_key": "ExportTasks" + }, + "DescribeImages": { + "result_key": "Images" + }, + "DescribeInstanceStatus": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "InstanceStatuses" + }, + "DescribeInstances": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "Reservations" + }, + "DescribeInternetGateways": { + "result_key": "InternetGateways" + }, + "DescribeKeyPairs": { + "result_key": "KeyPairs" + }, + "DescribeNatGateways": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "NatGateways" + }, + "DescribeNetworkAcls": { + "result_key": "NetworkAcls" + }, + "DescribeNetworkInterfaces": { + "result_key": "NetworkInterfaces" + }, + "DescribePlacementGroups": { + "result_key": "PlacementGroups" + }, + "DescribeRegions": { + "result_key": "Regions" + }, + "DescribeReservedInstances": { + "result_key": "ReservedInstances" + }, + "DescribeReservedInstancesListings": { + "result_key": "ReservedInstancesListings" + }, + "DescribeReservedInstancesModifications": { + "input_token": "NextToken", + "output_token": "NextToken", + "result_key": "ReservedInstancesModifications" + }, + "DescribeReservedInstancesOfferings": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "ReservedInstancesOfferings" + }, + "DescribeRouteTables": { + "result_key": "RouteTables" + }, + "DescribeSecurityGroups": { + "result_key": "SecurityGroups" + }, + "DescribeSnapshots": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "Snapshots" + }, + "DescribeSpotFleetRequests": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "SpotFleetRequestConfigs" + }, + "DescribeSpotInstanceRequests": { + "result_key": "SpotInstanceRequests" + }, + "DescribeSpotPriceHistory": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "SpotPriceHistory" + }, + "DescribeSubnets": { + "result_key": "Subnets" + }, + "DescribeTags": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "Tags" + }, + "DescribeVolumeStatus": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "VolumeStatuses" + }, + "DescribeVolumes": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "Volumes" + }, + "DescribeVpcPeeringConnections": { + "result_key": "VpcPeeringConnections" + }, + "DescribeVpcs": { + "result_key": "Vpcs" + }, + "DescribeVpnConnections": { + "result_key": "VpnConnections" + }, + "DescribeVpnGateways": { + "result_key": "VpnGateways" + } + } +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/waiters-2.json new file mode 100755 index 000000000..7d8b7cdcd --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2016-11-15/waiters-2.json @@ -0,0 +1,611 @@ +{ + "version": 2, + "waiters": { + "InstanceExists": { + "delay": 5, + "maxAttempts": 40, + "operation": "DescribeInstances", + "acceptors": [ + { + "matcher": "path", + "expected": true, + "argument": "length(Reservations[]) > `0`", + "state": "success" + }, + { + "matcher": "error", + "expected": "InvalidInstanceID.NotFound", + "state": "retry" + } + ] + }, + "BundleTaskComplete": { + "delay": 15, + "operation": "DescribeBundleTasks", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "complete", + "matcher": "pathAll", + "state": "success", + "argument": "BundleTasks[].State" + }, + { + "expected": "failed", + "matcher": "pathAny", + "state": "failure", + "argument": "BundleTasks[].State" + } + ] + }, + "ConversionTaskCancelled": { + "delay": 15, + "operation": "DescribeConversionTasks", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "cancelled", + "matcher": "pathAll", + "state": "success", + "argument": "ConversionTasks[].State" + } + ] + }, + "ConversionTaskCompleted": { + "delay": 15, + "operation": "DescribeConversionTasks", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "completed", + "matcher": "pathAll", + "state": "success", + "argument": "ConversionTasks[].State" + }, + { + "expected": "cancelled", + "matcher": "pathAny", + "state": "failure", + "argument": "ConversionTasks[].State" + }, + { + "expected": "cancelling", + "matcher": "pathAny", + "state": "failure", + "argument": "ConversionTasks[].State" + } + ] + }, + "ConversionTaskDeleted": { + "delay": 15, + "operation": "DescribeConversionTasks", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "deleted", + "matcher": "pathAll", + "state": "success", + "argument": "ConversionTasks[].State" + } + ] + }, + "CustomerGatewayAvailable": { + "delay": 15, + "operation": "DescribeCustomerGateways", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "available", + "matcher": "pathAll", + "state": "success", + "argument": "CustomerGateways[].State" + }, + { + "expected": "deleted", + "matcher": "pathAny", + "state": "failure", + "argument": "CustomerGateways[].State" + }, + { + "expected": "deleting", + "matcher": "pathAny", + "state": "failure", + "argument": "CustomerGateways[].State" + } + ] + }, + "ExportTaskCancelled": { + "delay": 15, + "operation": "DescribeExportTasks", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "cancelled", + "matcher": "pathAll", + "state": "success", + "argument": "ExportTasks[].State" + } + ] + }, + "ExportTaskCompleted": { + "delay": 15, + "operation": "DescribeExportTasks", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "completed", + "matcher": "pathAll", + "state": "success", + "argument": "ExportTasks[].State" + } + ] + }, + "ImageExists": { + "operation": "DescribeImages", + "maxAttempts": 40, + "delay": 15, + "acceptors": [ + { + "matcher": "path", + "expected": true, + "argument": "length(Images[]) > `0`", + "state": "success" + }, + { + "matcher": "error", + "expected": "InvalidAMIID.NotFound", + "state": "retry" + } + ] + }, + "ImageAvailable": { + "operation": "DescribeImages", + "maxAttempts": 40, + "delay": 15, + "acceptors": [ + { + "state": "success", + "matcher": "pathAll", + "argument": "Images[].State", + "expected": "available" + }, + { + "state": "failure", + "matcher": "pathAny", + "argument": "Images[].State", + "expected": "failed" + } + ] + }, + "InstanceRunning": { + "delay": 15, + "operation": "DescribeInstances", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "running", + "matcher": "pathAll", + "state": "success", + "argument": "Reservations[].Instances[].State.Name" + }, + { + "expected": "shutting-down", + "matcher": "pathAny", + "state": "failure", + "argument": "Reservations[].Instances[].State.Name" + }, + { + "expected": "terminated", + "matcher": "pathAny", + "state": "failure", + "argument": "Reservations[].Instances[].State.Name" + }, + { + "expected": "stopping", + "matcher": "pathAny", + "state": "failure", + "argument": "Reservations[].Instances[].State.Name" + }, + { + "matcher": "error", + "expected": "InvalidInstanceID.NotFound", + "state": "retry" + } + ] + }, + "InstanceStatusOk": { + "operation": "DescribeInstanceStatus", + "maxAttempts": 40, + "delay": 15, + "acceptors": [ + { + "state": "success", + "matcher": "pathAll", + "argument": "InstanceStatuses[].InstanceStatus.Status", + "expected": "ok" + }, + { + "matcher": "error", + "expected": "InvalidInstanceID.NotFound", + "state": "retry" + } + ] + }, + "InstanceStopped": { + "delay": 15, + "operation": "DescribeInstances", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "stopped", + "matcher": "pathAll", + "state": "success", + "argument": "Reservations[].Instances[].State.Name" + }, + { + "expected": "pending", + "matcher": "pathAny", + "state": "failure", + "argument": "Reservations[].Instances[].State.Name" + }, + { + "expected": "terminated", + "matcher": "pathAny", + "state": "failure", + "argument": "Reservations[].Instances[].State.Name" + } + ] + }, + "InstanceTerminated": { + "delay": 15, + "operation": "DescribeInstances", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "terminated", + "matcher": "pathAll", + "state": "success", + "argument": "Reservations[].Instances[].State.Name" + }, + { + "expected": "pending", + "matcher": "pathAny", + "state": "failure", + "argument": "Reservations[].Instances[].State.Name" + }, + { + "expected": "stopping", + "matcher": "pathAny", + "state": "failure", + "argument": "Reservations[].Instances[].State.Name" + } + ] + }, + "KeyPairExists": { + "operation": "DescribeKeyPairs", + "delay": 5, + "maxAttempts": 6, + "acceptors": [ + { + "expected": true, + "matcher": "path", + "state": "success", + "argument": "length(KeyPairs[].KeyName) > `0`" + }, + { + "expected": "InvalidKeyPair.NotFound", + "matcher": "error", + "state": "retry" + } + ] + }, + "NatGatewayAvailable": { + "operation": "DescribeNatGateways", + "delay": 15, + "maxAttempts": 40, + "acceptors": [ + { + "state": "success", + "matcher": "pathAll", + "argument": "NatGateways[].State", + "expected": "available" + }, + { + "state": "failure", + "matcher": "pathAny", + "argument": "NatGateways[].State", + "expected": "failed" + }, + { + "state": "failure", + "matcher": "pathAny", + "argument": "NatGateways[].State", + "expected": "deleting" + }, + { + "state": "failure", + "matcher": "pathAny", + "argument": "NatGateways[].State", + "expected": "deleted" + }, + { + "state": "retry", + "matcher": "error", + "expected": "NatGatewayNotFound" + } + ] + }, + "NetworkInterfaceAvailable": { + "operation": "DescribeNetworkInterfaces", + "delay": 20, + "maxAttempts": 10, + "acceptors": [ + { + "expected": "available", + "matcher": "pathAll", + "state": "success", + "argument": "NetworkInterfaces[].Status" + }, + { + "expected": "InvalidNetworkInterfaceID.NotFound", + "matcher": "error", + "state": "failure" + } + ] + }, + "PasswordDataAvailable": { + "operation": "GetPasswordData", + "maxAttempts": 40, + "delay": 15, + "acceptors": [ + { + "state": "success", + "matcher": "path", + "argument": "length(PasswordData) > `0`", + "expected": true + } + ] + }, + "SnapshotCompleted": { + "delay": 15, + "operation": "DescribeSnapshots", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "completed", + "matcher": "pathAll", + "state": "success", + "argument": "Snapshots[].State" + } + ] + }, + "SpotInstanceRequestFulfilled": { + "operation": "DescribeSpotInstanceRequests", + "maxAttempts": 40, + "delay": 15, + "acceptors": [ + { + "state": "success", + "matcher": "pathAll", + "argument": "SpotInstanceRequests[].Status.Code", + "expected": "fulfilled" + }, + { + "state": "failure", + "matcher": "pathAny", + "argument": "SpotInstanceRequests[].Status.Code", + "expected": "schedule-expired" + }, + { + "state": "failure", + "matcher": "pathAny", + "argument": "SpotInstanceRequests[].Status.Code", + "expected": "canceled-before-fulfillment" + }, + { + "state": "failure", + "matcher": "pathAny", + "argument": "SpotInstanceRequests[].Status.Code", + "expected": "bad-parameters" + }, + { + "state": "failure", + "matcher": "pathAny", + "argument": "SpotInstanceRequests[].Status.Code", + "expected": "system-error" + } + ] + }, + "SubnetAvailable": { + "delay": 15, + "operation": "DescribeSubnets", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "available", + "matcher": "pathAll", + "state": "success", + "argument": "Subnets[].State" + } + ] + }, + "SystemStatusOk": { + "operation": "DescribeInstanceStatus", + "maxAttempts": 40, + "delay": 15, + "acceptors": [ + { + "state": "success", + "matcher": "pathAll", + "argument": "InstanceStatuses[].SystemStatus.Status", + "expected": "ok" + } + ] + }, + "VolumeAvailable": { + "delay": 15, + "operation": "DescribeVolumes", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "available", + "matcher": "pathAll", + "state": "success", + "argument": "Volumes[].State" + }, + { + "expected": "deleted", + "matcher": "pathAny", + "state": "failure", + "argument": "Volumes[].State" + } + ] + }, + "VolumeDeleted": { + "delay": 15, + "operation": "DescribeVolumes", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "deleted", + "matcher": "pathAll", + "state": "success", + "argument": "Volumes[].State" + }, + { + "matcher": "error", + "expected": "InvalidVolume.NotFound", + "state": "success" + } + ] + }, + "VolumeInUse": { + "delay": 15, + "operation": "DescribeVolumes", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "in-use", + "matcher": "pathAll", + "state": "success", + "argument": "Volumes[].State" + }, + { + "expected": "deleted", + "matcher": "pathAny", + "state": "failure", + "argument": "Volumes[].State" + } + ] + }, + "VpcAvailable": { + "delay": 15, + "operation": "DescribeVpcs", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "available", + "matcher": "pathAll", + "state": "success", + "argument": "Vpcs[].State" + } + ] + }, + "VpcExists": { + "operation": "DescribeVpcs", + "delay": 1, + "maxAttempts": 5, + "acceptors": [ + { + "matcher": "status", + "expected": 200, + "state": "success" + }, + { + "matcher": "error", + "expected": "InvalidVpcID.NotFound", + "state": "retry" + } + ] + }, + "VpnConnectionAvailable": { + "delay": 15, + "operation": "DescribeVpnConnections", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "available", + "matcher": "pathAll", + "state": "success", + "argument": "VpnConnections[].State" + }, + { + "expected": "deleting", + "matcher": "pathAny", + "state": "failure", + "argument": "VpnConnections[].State" + }, + { + "expected": "deleted", + "matcher": "pathAny", + "state": "failure", + "argument": "VpnConnections[].State" + } + ] + }, + "VpnConnectionDeleted": { + "delay": 15, + "operation": "DescribeVpnConnections", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "deleted", + "matcher": "pathAll", + "state": "success", + "argument": "VpnConnections[].State" + }, + { + "expected": "pending", + "matcher": "pathAny", + "state": "failure", + "argument": "VpnConnections[].State" + } + ] + }, + "VpcPeeringConnectionExists": { + "delay": 15, + "operation": "DescribeVpcPeeringConnections", + "maxAttempts": 40, + "acceptors": [ + { + "matcher": "status", + "expected": 200, + "state": "success" + }, + { + "matcher": "error", + "expected": "InvalidVpcPeeringConnectionID.NotFound", + "state": "retry" + } + ] + }, + "VpcPeeringConnectionDeleted": { + "delay": 15, + "operation": "DescribeVpcPeeringConnections", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "deleted", + "matcher": "pathAll", + "state": "success", + "argument": "VpcPeeringConnections[].Status.Code" + }, + { + "matcher": "error", + "expected": "InvalidVpcPeeringConnectionID.NotFound", + "state": "success" + } + ] + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/api-2.json index 48870e359..09ed32ad4 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"ecr-2015-09-21", "apiVersion":"2015-09-21", "endpointPrefix":"ecr", "jsonVersion":"1.1", @@ -332,7 +333,8 @@ "members":{ "registryId":{"shape":"RegistryId"}, "repositoryName":{"shape":"RepositoryName"}, - "imageIds":{"shape":"ImageIdentifierList"} + "imageIds":{"shape":"ImageIdentifierList"}, + "acceptedMediaTypes":{"shape":"MediaTypeList"} } }, "BatchGetImageResponse":{ @@ -656,7 +658,8 @@ "members":{ "layerDigest":{"shape":"LayerDigest"}, "layerAvailability":{"shape":"LayerAvailability"}, - "layerSize":{"shape":"LayerSizeInBytes"} + "layerSize":{"shape":"LayerSizeInBytes"}, + "mediaType":{"shape":"MediaType"} } }, "LayerAlreadyExistsException":{ @@ -766,6 +769,16 @@ "max":100, "min":1 }, + "MediaType":{ + "type":"string", + "pattern":"\\w{1,127}\\/[-+.\\w]{1,127}" + }, + "MediaTypeList":{ + "type":"list", + "member":{"shape":"MediaType"}, + "max":100, + "min":1 + }, "NextToken":{"type":"string"}, "PartSize":{ "type":"long", @@ -782,7 +795,8 @@ "members":{ "registryId":{"shape":"RegistryId"}, "repositoryName":{"shape":"RepositoryName"}, - "imageManifest":{"shape":"ImageManifest"} + "imageManifest":{"shape":"ImageManifest"}, + "imageTag":{"shape":"ImageTag"} } }, "PutImageResponse":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/docs-2.json index 00cb109ed..fae137f8b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/docs-2.json @@ -2,23 +2,23 @@ "version": "2.0", "service": "

Amazon EC2 Container Registry (Amazon ECR) is a managed AWS Docker registry service. Customers can use the familiar Docker CLI to push, pull, and manage images. Amazon ECR provides a secure, scalable, and reliable registry. Amazon ECR supports private Docker repositories with resource-based permissions using AWS IAM so that specific users or Amazon EC2 instances can access repositories and images. Developers can use the Docker CLI to author and manage images.

", "operations": { - "BatchCheckLayerAvailability": "

Check the availability of multiple image layers in a specified registry and repository.

This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers. Use the docker CLI to pull, tag, and push images.

", - "BatchDeleteImage": "

Deletes a list of specified images within a specified repository. Images are specified with either imageTag or imageDigest.

", + "BatchCheckLayerAvailability": "

Check the availability of multiple image layers in a specified registry and repository.

This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

", + "BatchDeleteImage": "

Deletes a list of specified images within a specified repository. Images are specified with either imageTag or imageDigest.

You can remove a tag from an image by specifying the image's tag in your request. When you remove the last tag from an image, the image is deleted from your repository.

You can completely delete an image (and all of its tags) by specifying the image's digest in your request.

", "BatchGetImage": "

Gets detailed information for specified images within a specified repository. Images are specified with either imageTag or imageDigest.

", - "CompleteLayerUpload": "

Inform Amazon ECR that the image layer upload for a specified registry, repository name, and upload ID, has completed. You can optionally provide a sha256 digest of the image layer for data validation purposes.

This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers. Use the docker CLI to pull, tag, and push images.

", + "CompleteLayerUpload": "

Inform Amazon ECR that the image layer upload for a specified registry, repository name, and upload ID, has completed. You can optionally provide a sha256 digest of the image layer for data validation purposes.

This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

", "CreateRepository": "

Creates an image repository.

", "DeleteRepository": "

Deletes an existing image repository. If a repository contains images, you must use the force option to delete it.

", "DeleteRepositoryPolicy": "

Deletes the repository policy from a specified repository.

", - "DescribeImages": "

Returns metadata about the images in a repository, including image size and creation date.

Beginning with Docker version 1.9, the Docker client compresses image layers before pushing them to a V2 Docker registry. The output of the docker images command shows the uncompressed image size, so it may return a larger image size than the image sizes returned by DescribeImages.

", + "DescribeImages": "

Returns metadata about the images in a repository, including image size, image tags, and creation date.

Beginning with Docker version 1.9, the Docker client compresses image layers before pushing them to a V2 Docker registry. The output of the docker images command shows the uncompressed image size, so it may return a larger image size than the image sizes returned by DescribeImages.

", "DescribeRepositories": "

Describes image repositories in a registry.

", "GetAuthorizationToken": "

Retrieves a token that is valid for a specified registry for 12 hours. This command allows you to use the docker CLI to push and pull images with Amazon ECR. If you do not specify a registry, the default registry is assumed.

The authorizationToken returned for each registry specified is a base64 encoded string that can be decoded and used in a docker login command to authenticate to a registry. The AWS CLI offers an aws ecr get-login command that simplifies the login process.

", - "GetDownloadUrlForLayer": "

Retrieves the pre-signed Amazon S3 download URL corresponding to an image layer. You can only get URLs for image layers that are referenced in an image.

This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers. Use the docker CLI to pull, tag, and push images.

", + "GetDownloadUrlForLayer": "

Retrieves the pre-signed Amazon S3 download URL corresponding to an image layer. You can only get URLs for image layers that are referenced in an image.

This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

", "GetRepositoryPolicy": "

Retrieves the repository policy for a specified repository.

", - "InitiateLayerUpload": "

Notify Amazon ECR that you intend to upload an image layer.

This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers. Use the docker CLI to pull, tag, and push images.

", + "InitiateLayerUpload": "

Notify Amazon ECR that you intend to upload an image layer.

This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

", "ListImages": "

Lists all the image IDs for a given repository.

You can filter images based on whether or not they are tagged by setting the tagStatus parameter to TAGGED or UNTAGGED. For example, you can filter your results to return only UNTAGGED images and then pipe that result to a BatchDeleteImage operation to delete them. Or, you can filter your results to return only TAGGED images to list all of the tags in your repository.

", - "PutImage": "

Creates or updates the image manifest associated with an image.

This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers. Use the docker CLI to pull, tag, and push images.

", + "PutImage": "

Creates or updates the image manifest and tags associated with an image.

This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

", "SetRepositoryPolicy": "

Applies a repository policy on a specified repository to control access permissions.

", - "UploadLayerPart": "

Uploads an image layer part to Amazon ECR.

This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers. Use the docker CLI to pull, tag, and push images.

" + "UploadLayerPart": "

Uploads an image layer part to Amazon ECR.

This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

" }, "shapes": { "Arn": { @@ -338,7 +338,8 @@ "base": null, "refs": { "ImageIdentifier$imageTag": "

The tag used for the image.

", - "ImageTagList$member": null + "ImageTagList$member": null, + "PutImageRequest$imageTag": "

The tag to associate with the image. This parameter is required for images that use the Docker Image Manifest V2 Schema 2 or OCI formats.

" } }, "ImageTagList": { @@ -386,7 +387,7 @@ "LayerAvailability": { "base": null, "refs": { - "Layer$layerAvailability": "

The availability status of the image layer. Valid values are AVAILABLE and UNAVAILABLE.

" + "Layer$layerAvailability": "

The availability status of the image layer.

" } }, "LayerDigest": { @@ -491,6 +492,19 @@ "ListImagesRequest$maxResults": "

The maximum number of image results returned by ListImages in paginated output. When this parameter is used, ListImages only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListImages request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListImages returns up to 100 results and a nextToken value, if applicable.

" } }, + "MediaType": { + "base": null, + "refs": { + "Layer$mediaType": "

The media type of the layer, such as application/vnd.docker.image.rootfs.diff.tar.gzip or application/vnd.oci.image.layer.v1.tar+gzip.

", + "MediaTypeList$member": null + } + }, + "MediaTypeList": { + "base": null, + "refs": { + "BatchGetImageRequest$acceptedMediaTypes": "

The accepted media types for the request.

Valid values: application/vnd.docker.distribution.manifest.v1+json | application/vnd.docker.distribution.manifest.v2+json | application/vnd.oci.image.manifest.v1+json

" + } + }, "NextToken": { "base": null, "refs": { @@ -545,7 +559,7 @@ "DeleteRepositoryPolicyRequest$registryId": "

The AWS account ID associated with the registry that contains the repository policy to delete. If you do not specify a registry, the default registry is assumed.

", "DeleteRepositoryPolicyResponse$registryId": "

The registry ID associated with the request.

", "DeleteRepositoryRequest$registryId": "

The AWS account ID associated with the registry that contains the repository to delete. If you do not specify a registry, the default registry is assumed.

", - "DescribeImagesRequest$registryId": "

The AWS account ID associated with the registry that contains the repository in which to list images. If you do not specify a registry, the default registry is assumed.

", + "DescribeImagesRequest$registryId": "

The AWS account ID associated with the registry that contains the repository in which to describe images. If you do not specify a registry, the default registry is assumed.

", "DescribeRepositoriesRequest$registryId": "

The AWS account ID associated with the registry that contains the repositories to be described. If you do not specify a registry, the default registry is assumed.

", "GetAuthorizationTokenRegistryIdList$member": null, "GetDownloadUrlForLayerRequest$registryId": "

The AWS account ID associated with the registry that contains the image layer to download. If you do not specify a registry, the default registry is assumed.

", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/paginators-1.json new file mode 100644 index 000000000..dad0647fb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/paginators-1.json @@ -0,0 +1,22 @@ +{ + "pagination": { + "ListImages": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "imageIds" + }, + "DescribeImages": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "imageDetails" + }, + "DescribeRepositories": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "repositories" + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/api-2.json index 684ba4ad7..80980a38f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/api-2.json @@ -8,7 +8,8 @@ "serviceAbbreviation":"Amazon ECS", "serviceFullName":"Amazon EC2 Container Service", "signatureVersion":"v4", - "targetPrefix":"AmazonEC2ContainerServiceV20141113" + "targetPrefix":"AmazonEC2ContainerServiceV20141113", + "uid":"ecs-2014-11-13" }, "operations":{ "CreateCluster":{ @@ -40,6 +41,20 @@ {"shape":"ClusterNotFoundException"} ] }, + "DeleteAttributes":{ + "name":"DeleteAttributes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteAttributesRequest"}, + "output":{"shape":"DeleteAttributesResponse"}, + "errors":[ + {"shape":"ClusterNotFoundException"}, + {"shape":"TargetNotFoundException"}, + {"shape":"InvalidParameterException"} + ] + }, "DeleteCluster":{ "name":"DeleteCluster", "http":{ @@ -188,6 +203,19 @@ {"shape":"ClientException"} ] }, + "ListAttributes":{ + "name":"ListAttributes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAttributesRequest"}, + "output":{"shape":"ListAttributesResponse"}, + "errors":[ + {"shape":"ClusterNotFoundException"}, + {"shape":"InvalidParameterException"} + ] + }, "ListClusters":{ "name":"ListClusters", "http":{ @@ -276,6 +304,21 @@ {"shape":"ServiceNotFoundException"} ] }, + "PutAttributes":{ + "name":"PutAttributes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutAttributesRequest"}, + "output":{"shape":"PutAttributesResponse"}, + "errors":[ + {"shape":"ClusterNotFoundException"}, + {"shape":"TargetNotFoundException"}, + {"shape":"AttributeLimitExceededException"}, + {"shape":"InvalidParameterException"} + ] + }, "RegisterContainerInstance":{ "name":"RegisterContainerInstance", "http":{ @@ -392,6 +435,21 @@ {"shape":"MissingVersionException"} ] }, + "UpdateContainerInstancesState":{ + "name":"UpdateContainerInstancesState", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateContainerInstancesStateRequest"}, + "output":{"shape":"UpdateContainerInstancesStateResponse"}, + "errors":[ + {"shape":"ServerException"}, + {"shape":"ClientException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ClusterNotFoundException"} + ] + }, "UpdateService":{ "name":"UpdateService", "http":{ @@ -427,9 +485,17 @@ "required":["name"], "members":{ "name":{"shape":"String"}, - "value":{"shape":"String"} + "value":{"shape":"String"}, + "targetType":{"shape":"TargetType"}, + "targetId":{"shape":"String"} } }, + "AttributeLimitExceededException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "Attributes":{ "type":"list", "member":{"shape":"Attribute"} @@ -536,6 +602,7 @@ "members":{ "containerInstanceArn":{"shape":"String"}, "ec2InstanceId":{"shape":"String"}, + "version":{"shape":"Long"}, "versionInfo":{"shape":"VersionInfo"}, "remainingResources":{"shape":"Resources"}, "registeredResources":{"shape":"Resources"}, @@ -547,6 +614,13 @@ "attributes":{"shape":"Attributes"} } }, + "ContainerInstanceStatus":{ + "type":"string", + "enum":[ + "ACTIVE", + "DRAINING" + ] + }, "ContainerInstances":{ "type":"list", "member":{"shape":"ContainerInstance"} @@ -594,7 +668,9 @@ "desiredCount":{"shape":"BoxedInteger"}, "clientToken":{"shape":"String"}, "role":{"shape":"String"}, - "deploymentConfiguration":{"shape":"DeploymentConfiguration"} + "deploymentConfiguration":{"shape":"DeploymentConfiguration"}, + "placementConstraints":{"shape":"PlacementConstraints"}, + "placementStrategy":{"shape":"PlacementStrategies"} } }, "CreateServiceResponse":{ @@ -603,6 +679,20 @@ "service":{"shape":"Service"} } }, + "DeleteAttributesRequest":{ + "type":"structure", + "required":["attributes"], + "members":{ + "cluster":{"shape":"String"}, + "attributes":{"shape":"Attributes"} + } + }, + "DeleteAttributesResponse":{ + "type":"structure", + "members":{ + "attributes":{"shape":"Attributes"} + } + }, "DeleteClusterRequest":{ "type":"structure", "required":["cluster"], @@ -831,6 +921,25 @@ "value":{"shape":"String"} } }, + "ListAttributesRequest":{ + "type":"structure", + "required":["targetType"], + "members":{ + "cluster":{"shape":"String"}, + "targetType":{"shape":"TargetType"}, + "attributeName":{"shape":"String"}, + "attributeValue":{"shape":"String"}, + "nextToken":{"shape":"String"}, + "maxResults":{"shape":"BoxedInteger"} + } + }, + "ListAttributesResponse":{ + "type":"structure", + "members":{ + "attributes":{"shape":"Attributes"}, + "nextToken":{"shape":"String"} + } + }, "ListClustersRequest":{ "type":"structure", "members":{ @@ -849,8 +958,10 @@ "type":"structure", "members":{ "cluster":{"shape":"String"}, + "filter":{"shape":"String"}, "nextToken":{"shape":"String"}, - "maxResults":{"shape":"BoxedInteger"} + "maxResults":{"shape":"BoxedInteger"}, + "status":{"shape":"ContainerInstanceStatus"} } }, "ListContainerInstancesResponse":{ @@ -1012,6 +1123,43 @@ }, "exception":true }, + "PlacementConstraint":{ + "type":"structure", + "members":{ + "type":{"shape":"PlacementConstraintType"}, + "expression":{"shape":"String"} + } + }, + "PlacementConstraintType":{ + "type":"string", + "enum":[ + "distinctInstance", + "memberOf" + ] + }, + "PlacementConstraints":{ + "type":"list", + "member":{"shape":"PlacementConstraint"} + }, + "PlacementStrategies":{ + "type":"list", + "member":{"shape":"PlacementStrategy"} + }, + "PlacementStrategy":{ + "type":"structure", + "members":{ + "type":{"shape":"PlacementStrategyType"}, + "field":{"shape":"String"} + } + }, + "PlacementStrategyType":{ + "type":"string", + "enum":[ + "random", + "spread", + "binpack" + ] + }, "PortMapping":{ "type":"structure", "members":{ @@ -1024,6 +1172,20 @@ "type":"list", "member":{"shape":"PortMapping"} }, + "PutAttributesRequest":{ + "type":"structure", + "required":["attributes"], + "members":{ + "cluster":{"shape":"String"}, + "attributes":{"shape":"Attributes"} + } + }, + "PutAttributesResponse":{ + "type":"structure", + "members":{ + "attributes":{"shape":"Attributes"} + } + }, "RegisterContainerInstanceRequest":{ "type":"structure", "members":{ @@ -1053,7 +1215,8 @@ "taskRoleArn":{"shape":"String"}, "networkMode":{"shape":"NetworkMode"}, "containerDefinitions":{"shape":"ContainerDefinitions"}, - "volumes":{"shape":"VolumeList"} + "volumes":{"shape":"VolumeList"}, + "placementConstraints":{"shape":"TaskDefinitionPlacementConstraints"} } }, "RegisterTaskDefinitionResponse":{ @@ -1089,7 +1252,10 @@ "taskDefinition":{"shape":"String"}, "overrides":{"shape":"TaskOverride"}, "count":{"shape":"BoxedInteger"}, - "startedBy":{"shape":"String"} + "startedBy":{"shape":"String"}, + "group":{"shape":"String"}, + "placementConstraints":{"shape":"PlacementConstraints"}, + "placementStrategy":{"shape":"PlacementStrategies"} } }, "RunTaskResponse":{ @@ -1123,7 +1289,9 @@ "deployments":{"shape":"Deployments"}, "roleArn":{"shape":"String"}, "events":{"shape":"ServiceEvents"}, - "createdAt":{"shape":"Timestamp"} + "createdAt":{"shape":"Timestamp"}, + "placementConstraints":{"shape":"PlacementConstraints"}, + "placementStrategy":{"shape":"PlacementStrategies"} } }, "ServiceEvent":{ @@ -1172,7 +1340,8 @@ "taskDefinition":{"shape":"String"}, "overrides":{"shape":"TaskOverride"}, "containerInstances":{"shape":"StringList"}, - "startedBy":{"shape":"String"} + "startedBy":{"shape":"String"}, + "group":{"shape":"String"} } }, "StartTaskResponse":{ @@ -1235,6 +1404,16 @@ "acknowledgment":{"shape":"String"} } }, + "TargetNotFoundException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "TargetType":{ + "type":"string", + "enum":["container-instance"] + }, "Task":{ "type":"structure", "members":{ @@ -1247,10 +1426,12 @@ "desiredStatus":{"shape":"String"}, "containers":{"shape":"Containers"}, "startedBy":{"shape":"String"}, + "version":{"shape":"Long"}, "stoppedReason":{"shape":"String"}, "createdAt":{"shape":"Timestamp"}, "startedAt":{"shape":"Timestamp"}, - "stoppedAt":{"shape":"Timestamp"} + "stoppedAt":{"shape":"Timestamp"}, + "group":{"shape":"String"} } }, "TaskDefinition":{ @@ -1264,7 +1445,8 @@ "revision":{"shape":"Integer"}, "volumes":{"shape":"VolumeList"}, "status":{"shape":"TaskDefinitionStatus"}, - "requiresAttributes":{"shape":"RequiresAttributes"} + "requiresAttributes":{"shape":"RequiresAttributes"}, + "placementConstraints":{"shape":"TaskDefinitionPlacementConstraints"} } }, "TaskDefinitionFamilyStatus":{ @@ -1275,6 +1457,21 @@ "ALL" ] }, + "TaskDefinitionPlacementConstraint":{ + "type":"structure", + "members":{ + "type":{"shape":"TaskDefinitionPlacementConstraintType"}, + "expression":{"shape":"String"} + } + }, + "TaskDefinitionPlacementConstraintType":{ + "type":"string", + "enum":["memberOf"] + }, + "TaskDefinitionPlacementConstraints":{ + "type":"list", + "member":{"shape":"TaskDefinitionPlacementConstraint"} + }, "TaskDefinitionStatus":{ "type":"string", "enum":[ @@ -1352,6 +1549,25 @@ "containerInstance":{"shape":"ContainerInstance"} } }, + "UpdateContainerInstancesStateRequest":{ + "type":"structure", + "required":[ + "containerInstances", + "status" + ], + "members":{ + "cluster":{"shape":"String"}, + "containerInstances":{"shape":"StringList"}, + "status":{"shape":"ContainerInstanceStatus"} + } + }, + "UpdateContainerInstancesStateResponse":{ + "type":"structure", + "members":{ + "containerInstances":{"shape":"ContainerInstances"}, + "failures":{"shape":"Failures"} + } + }, "UpdateInProgressException":{ "type":"structure", "members":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/docs-2.json index a1ffd75b2..97c8b881a 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/docs-2.json @@ -3,10 +3,11 @@ "service": "

Amazon EC2 Container Service (Amazon ECS) is a highly scalable, fast, container management service that makes it easy to run, stop, and manage Docker containers on a cluster of EC2 instances. Amazon ECS lets you launch and stop container-enabled applications with simple API calls, allows you to get the state of your cluster from a centralized service, and gives you access to many familiar Amazon EC2 features like security groups, Amazon EBS volumes, and IAM roles.

You can use Amazon ECS to schedule the placement of containers across your cluster based on your resource needs, isolation policies, and availability requirements. Amazon EC2 Container Service eliminates the need for you to operate your own cluster management and configuration management systems or worry about scaling your management infrastructure.

", "operations": { "CreateCluster": "

Creates a new Amazon ECS cluster. By default, your account receives a default cluster when you launch your first container instance. However, you can create your own cluster with a unique name with the CreateCluster action.

", - "CreateService": "

Runs and maintains a desired number of tasks from a specified task definition. If the number of tasks running in a service drops below desiredCount, Amazon ECS spawns another instantiation of the task in the specified cluster. To update an existing service, see UpdateService.

In addition to maintaining the desired count of tasks in your service, you can optionally run your service behind a load balancer. The load balancer distributes traffic across the tasks that are associated with the service. For more information, see Service Load Balancing in the Amazon EC2 Container Service Developer Guide.

You can optionally specify a deployment configuration for your service. During a deployment (which is triggered by changing the task definition of a service with an UpdateService operation), the service scheduler uses the minimumHealthyPercent and maximumPercent parameters to determine the deployment strategy.

If the minimumHealthyPercent is below 100%, the scheduler can ignore the desiredCount temporarily during a deployment. For example, if your service has a desiredCount of four tasks, a minimumHealthyPercent of 50% allows the scheduler to stop two existing tasks before starting two new tasks. Tasks for services that do not use a load balancer are considered healthy if they are in the RUNNING state; tasks for services that do use a load balancer are considered healthy if they are in the RUNNING state and the container instance it is hosted on is reported as healthy by the load balancer. The default value for minimumHealthyPercent is 50% in the console and 100% for the AWS CLI, the AWS SDKs, and the APIs.

The maximumPercent parameter represents an upper limit on the number of running tasks during a deployment, which enables you to define the deployment batch size. For example, if your service has a desiredCount of four tasks, a maximumPercent value of 200% starts four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available). The default value for maximumPercent is 200%.

When the service scheduler launches new tasks, it attempts to balance them across the Availability Zones in your cluster with the following logic:

  • Determine which of the container instances in your cluster can support your service's task definition (for example, they have the required CPU, memory, ports, and container instance attributes).

  • Sort the valid container instances by the fewest number of running tasks for this service in the same Availability Zone as the instance. For example, if zone A has one running service task and zones B and C each have zero, valid container instances in either zone B or C are considered optimal for placement.

  • Place the new service task on a valid container instance in an optimal Availability Zone (based on the previous steps), favoring container instances with the fewest number of running tasks for this service.

", + "CreateService": "

Runs and maintains a desired number of tasks from a specified task definition. If the number of tasks running in a service drops below desiredCount, Amazon ECS spawns another copy of the task in the specified cluster. To update an existing service, see UpdateService.

In addition to maintaining the desired count of tasks in your service, you can optionally run your service behind a load balancer. The load balancer distributes traffic across the tasks that are associated with the service. For more information, see Service Load Balancing in the Amazon EC2 Container Service Developer Guide.

You can optionally specify a deployment configuration for your service. During a deployment (which is triggered by changing the task definition or the desired count of a service with an UpdateService operation), the service scheduler uses the minimumHealthyPercent and maximumPercent parameters to determine the deployment strategy.

The minimumHealthyPercent represents a lower limit on the number of your service's tasks that must remain in the RUNNING state during a deployment, as a percentage of the desiredCount (rounded up to the nearest integer). This parameter enables you to deploy without using additional cluster capacity. For example, if desiredCount is four tasks and the minimum is 50%, the scheduler can stop two existing tasks to free up cluster capacity before starting two new tasks. Tasks for services that do not use a load balancer are considered healthy if they are in the RUNNING state. Tasks for services that use a load balancer are considered healthy if they are in the RUNNING state and the container instance they are hosted on is reported as healthy by the load balancer. The default value is 50% in the console and 100% for the AWS CLI, the AWS SDKs, and the APIs.

The maximumPercent parameter represents an upper limit on the number of your service's tasks that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desiredCount (rounded down to the nearest integer). This parameter enables you to define the deployment batch size. For example, if desiredCount is four tasks and the maximum is 200%, the scheduler can start four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available). The default value is 200%.

When the service scheduler launches new tasks, it determines task placement in your cluster using the following logic:

  • Determine which of the container instances in your cluster can support your service's task definition (for example, they have the required CPU, memory, ports, and container instance attributes).

  • By default, the service scheduler attempts to balance tasks across Availability Zones in this manner (although you can choose a different placement strategy):

    • Sort the valid container instances by the fewest number of running tasks for this service in the same Availability Zone as the instance. For example, if zone A has one running service task and zones B and C each have zero, valid container instances in either zone B or C are considered optimal for placement.

    • Place the new service task on a valid container instance in an optimal Availability Zone (based on the previous steps), favoring container instances with the fewest number of running tasks for this service.

", + "DeleteAttributes": "

Deletes one or more custom attributes from an Amazon ECS resource.

", "DeleteCluster": "

Deletes the specified cluster. You must deregister all container instances from this cluster before you may delete it. You can list the container instances in a cluster with ListContainerInstances and deregister them with DeregisterContainerInstance.

", "DeleteService": "

Deletes a specified service within a cluster. You can delete a service if you have no running tasks in it and the desired task count is zero. If the service is actively maintaining tasks, you cannot delete it, and you must update the service to a desired task count of zero. For more information, see UpdateService.

When you delete a service, if there are still running tasks that require cleanup, the service status moves from ACTIVE to DRAINING, and the service is no longer visible in the console or in ListServices API operations. After the tasks have stopped, then the service status moves from DRAINING to INACTIVE. Services in the DRAINING or INACTIVE status can still be viewed with DescribeServices API operations; however, in the future, INACTIVE services may be cleaned up and purged from Amazon ECS record keeping, and DescribeServices API operations on those services will return a ServiceNotFoundException error.

", - "DeregisterContainerInstance": "

Deregisters an Amazon ECS container instance from the specified cluster. This instance is no longer available to run tasks.

If you intend to use the container instance for some other purpose after deregistration, you should stop all of the tasks running on the container instance before deregistration to avoid any orphaned tasks from consuming resources.

Deregistering a container instance removes the instance from a cluster, but it does not terminate the EC2 instance; if you are finished using the instance, be sure to terminate it in the Amazon EC2 console to stop billing.

If you terminate a running container instance with a connected Amazon ECS container agent, the agent automatically deregisters the instance from your cluster (stopped container instances or instances with disconnected agents are not automatically deregistered when terminated).

", + "DeregisterContainerInstance": "

Deregisters an Amazon ECS container instance from the specified cluster. This instance is no longer available to run tasks.

If you intend to use the container instance for some other purpose after deregistration, you should stop all of the tasks running on the container instance before deregistration to avoid any orphaned tasks from consuming resources.

Deregistering a container instance removes the instance from a cluster, but it does not terminate the EC2 instance; if you are finished using the instance, be sure to terminate it in the Amazon EC2 console to stop billing.

If you terminate a running container instance, Amazon ECS automatically deregisters the instance from your cluster (stopped container instances or instances with disconnected agents are not automatically deregistered when terminated).

", "DeregisterTaskDefinition": "

Deregisters the specified task definition by family and revision. Upon deregistration, the task definition is marked as INACTIVE. Existing tasks and services that reference an INACTIVE task definition continue to run without disruption. Existing services that reference an INACTIVE task definition can still scale up or down by modifying the service's desired count.

You cannot use an INACTIVE task definition to run new tasks or create new services, and you cannot update an existing service to reference an INACTIVE task definition (although there may be up to a 10 minute window following deregistration where these restrictions have not yet taken effect).

", "DescribeClusters": "

Describes one or more of your clusters.

", "DescribeContainerInstances": "

Describes Amazon EC2 Container Service container instances. Returns metadata about registered and remaining resources on each container instance requested.

", @@ -14,21 +15,24 @@ "DescribeTaskDefinition": "

Describes a task definition. You can specify a family and revision to find information about a specific task definition, or you can simply specify the family to find the latest ACTIVE revision in that family.

You can only describe INACTIVE task definitions while an active task or service references them.

", "DescribeTasks": "

Describes a specified task or tasks.

", "DiscoverPollEndpoint": "

This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.

Returns an endpoint for the Amazon EC2 Container Service agent to poll for updates.

", + "ListAttributes": "

Lists the attributes for Amazon ECS resources within a specified target type and cluster. When you specify a target type and cluster, LisAttributes returns a list of attribute objects, one for each attribute on each resource. You can filter the list of results to a single attribute name to only return results that have that name. You can also filter the results by attribute name and value, for example, to see which container instances in a cluster are running a Linux AMI (ecs.os-type=linux).

", "ListClusters": "

Returns a list of existing clusters.

", - "ListContainerInstances": "

Returns a list of container instances in a specified cluster.

", + "ListContainerInstances": "

Returns a list of container instances in a specified cluster. You can filter the results of a ListContainerInstances operation with cluster query language statements inside the filter parameter. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide.

", "ListServices": "

Lists the services that are running in a specified cluster.

", "ListTaskDefinitionFamilies": "

Returns a list of task definition families that are registered to your account (which may include task definition families that no longer have any ACTIVE task definition revisions).

You can filter out task definition families that do not contain any ACTIVE task definition revisions by setting the status parameter to ACTIVE. You can also filter the results with the familyPrefix parameter.

", "ListTaskDefinitions": "

Returns a list of task definitions that are registered to your account. You can filter the results by family name with the familyPrefix parameter or by status with the status parameter.

", "ListTasks": "

Returns a list of tasks for a specified cluster. You can filter the results by family name, by a particular container instance, or by the desired status of the task with the family, containerInstance, and desiredStatus parameters.

Recently-stopped tasks might appear in the returned results. Currently, stopped tasks appear in the returned results for at least one hour.

", + "PutAttributes": "

Create or update an attribute on an Amazon ECS resource. If the attribute does not exist, it is created. If the attribute exists, its value is replaced with the specified value. To delete an attribute, use DeleteAttributes. For more information, see Attributes in the Amazon EC2 Container Service Developer Guide.

", "RegisterContainerInstance": "

This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.

Registers an EC2 instance into the specified cluster. This instance becomes available to place containers on.

", "RegisterTaskDefinition": "

Registers a new task definition from the supplied family and containerDefinitions. Optionally, you can add data volumes to your containers with the volumes parameter. For more information about task definition parameters and defaults, see Amazon ECS Task Definitions in the Amazon EC2 Container Service Developer Guide.

You can specify an IAM role for your task with the taskRoleArn parameter. When you specify an IAM role for a task, its containers can then use the latest versions of the AWS CLI or SDKs to make API requests to the AWS services that are specified in the IAM policy associated with the role. For more information, see IAM Roles for Tasks in the Amazon EC2 Container Service Developer Guide.

You can specify a Docker networking mode for the containers in your task definition with the networkMode parameter. The available network modes correspond to those described in Network settings in the Docker run reference.

", - "RunTask": "

Start a task using random placement and the default Amazon ECS scheduler. To use your own scheduler or place a task on a specific container instance, use StartTask instead.

The count parameter is limited to 10 tasks per call.

", - "StartTask": "

Starts a new task from the specified task definition on the specified container instance or instances. To use the default Amazon ECS scheduler to place your task, use RunTask instead.

The list of container instances to start tasks on is limited to 10.

", + "RunTask": "

Starts a new task using the specified task definition.

You can allow Amazon ECS to place tasks for you, or you can customize how Amazon ECS places tasks using placement constraints and placement strategies. For more information, see Scheduling Tasks in the Amazon EC2 Container Service Developer Guide.

Alternatively, you can use StartTask to use your own scheduler or place tasks manually on specific container instances.

", + "StartTask": "

Starts a new task from the specified task definition on the specified container instance or instances.

Alternatively, you can use RunTask to place tasks for you. For more information, see Scheduling Tasks in the Amazon EC2 Container Service Developer Guide.

", "StopTask": "

Stops a running task.

When StopTask is called on a task, the equivalent of docker stop is issued to the containers running in the task. This results in a SIGTERM and a 30-second timeout, after which SIGKILL is sent and the containers are forcibly stopped. If the container handles the SIGTERM gracefully and exits within 30 seconds from receiving it, no SIGKILL is sent.

", "SubmitContainerStateChange": "

This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.

Sent to acknowledge that a container changed states.

", "SubmitTaskStateChange": "

This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.

Sent to acknowledge that a task changed states.

", "UpdateContainerAgent": "

Updates the Amazon ECS container agent on a specified container instance. Updating the Amazon ECS container agent does not interrupt running tasks or services on the container instance. The process for updating the agent differs depending on whether your container instance was launched with the Amazon ECS-optimized AMI or another operating system.

UpdateContainerAgent requires the Amazon ECS-optimized AMI or Amazon Linux with the ecs-init service installed and running. For help updating the Amazon ECS container agent on other operating systems, see Manually Updating the Amazon ECS Container Agent in the Amazon EC2 Container Service Developer Guide.

", - "UpdateService": "

Modifies the desired count, deployment configuration, or task definition used in a service.

You can add to or subtract from the number of instantiations of a task definition in a service by specifying the cluster that the service is running in and a new desiredCount parameter.

You can use UpdateService to modify your task definition and deploy a new version of your service.

You can also update the deployment configuration of a service. When a deployment is triggered by updating the task definition of a service, the service scheduler uses the deployment configuration parameters, minimumHealthyPercent and maximumPercent, to determine the deployment strategy.

If the minimumHealthyPercent is below 100%, the scheduler can ignore the desiredCount temporarily during a deployment. For example, if your service has a desiredCount of four tasks, a minimumHealthyPercent of 50% allows the scheduler to stop two existing tasks before starting two new tasks. Tasks for services that do not use a load balancer are considered healthy if they are in the RUNNING state; tasks for services that do use a load balancer are considered healthy if they are in the RUNNING state and the container instance it is hosted on is reported as healthy by the load balancer.

The maximumPercent parameter represents an upper limit on the number of running tasks during a deployment, which enables you to define the deployment batch size. For example, if your service has a desiredCount of four tasks, a maximumPercent value of 200% starts four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available).

When UpdateService stops a task during a deployment, the equivalent of docker stop is issued to the containers running in the task. This results in a SIGTERM and a 30-second timeout, after which SIGKILL is sent and the containers are forcibly stopped. If the container handles the SIGTERM gracefully and exits within 30 seconds from receiving it, no SIGKILL is sent.

When the service scheduler launches new tasks, it attempts to balance them across the Availability Zones in your cluster with the following logic:

  • Determine which of the container instances in your cluster can support your service's task definition (for example, they have the required CPU, memory, ports, and container instance attributes).

  • Sort the valid container instances by the fewest number of running tasks for this service in the same Availability Zone as the instance. For example, if zone A has one running service task and zones B and C each have zero, valid container instances in either zone B or C are considered optimal for placement.

  • Place the new service task on a valid container instance in an optimal Availability Zone (based on the previous steps), favoring container instances with the fewest number of running tasks for this service.

" + "UpdateContainerInstancesState": "

Modifies the status of an Amazon ECS container instance.

You can change the status of a container instance to DRAINING to manually remove an instance from a cluster, for example to perform system updates, update the Docker daemon, or scale down the cluster size.

When you set a container instance to DRAINING, Amazon ECS prevents new tasks from being scheduled for placement on the container instance and replacement service tasks are started on other container instances in the cluster if the resources are available. Service tasks on the container instance that are in the PENDING state are stopped immediately.

Service tasks on the container instance that are in the RUNNING state are stopped and replaced according the service's deployment configuration parameters, minimumHealthyPercent and maximumPercent. Note that you can change the deployment configuration of your service using UpdateService.

  • If minimumHealthyPercent is below 100%, the scheduler can ignore desiredCount temporarily during task replacement. For example, desiredCount is four tasks, a minimum of 50% allows the scheduler to stop two existing tasks before starting two new tasks. If the minimum is 100%, the service scheduler can't remove existing tasks until the replacement tasks are considered healthy. Tasks for services that do not use a load balancer are considered healthy if they are in the RUNNING state. Tasks for services that use a load balancer are considered healthy if they are in the RUNNING state and the container instance they are hosted on is reported as healthy by the load balancer.

  • The maximumPercent parameter represents an upper limit on the number of running tasks during task replacement, which enables you to define the replacement batch size. For example, if desiredCount of four tasks, a maximum of 200% starts four new tasks before stopping the four tasks to be drained (provided that the cluster resources required to do this are available). If the maximum is 100%, then replacement tasks can't start until the draining tasks have stopped.

Any PENDING or RUNNING tasks that do not belong to a service are not affected; you must wait for them to finish or stop them manually.

A container instance has completed draining when it has no more RUNNING tasks. You can verify this using ListTasks.

When you set a container instance to ACTIVE, the Amazon ECS scheduler can begin scheduling tasks on the instance again.

", + "UpdateService": "

Modifies the desired count, deployment configuration, or task definition used in a service.

You can add to or subtract from the number of instantiations of a task definition in a service by specifying the cluster that the service is running in and a new desiredCount parameter.

You can use UpdateService to modify your task definition and deploy a new version of your service.

You can also update the deployment configuration of a service. When a deployment is triggered by updating the task definition of a service, the service scheduler uses the deployment configuration parameters, minimumHealthyPercent and maximumPercent, to determine the deployment strategy.

  • If minimumHealthyPercent is below 100%, the scheduler can ignore desiredCount temporarily during a deployment. For example, if desiredCount is four tasks, a minimum of 50% allows the scheduler to stop two existing tasks before starting two new tasks. Tasks for services that do not use a load balancer are considered healthy if they are in the RUNNING state. Tasks for services that use a load balancer are considered healthy if they are in the RUNNING state and the container instance they are hosted on is reported as healthy by the load balancer.

  • The maximumPercent parameter represents an upper limit on the number of running tasks during a deployment, which enables you to define the deployment batch size. For example, if desiredCount is four tasks, a maximum of 200% starts four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available).

When UpdateService stops a task during a deployment, the equivalent of docker stop is issued to the containers running in the task. This results in a SIGTERM and a 30-second timeout, after which SIGKILL is sent and the containers are forcibly stopped. If the container handles the SIGTERM gracefully and exits within 30 seconds from receiving it, no SIGKILL is sent.

When the service scheduler launches new tasks, it determines task placement in your cluster with the following logic:

  • Determine which of the container instances in your cluster can support your service's task definition (for example, they have the required CPU, memory, ports, and container instance attributes).

  • By default, the service scheduler attempts to balance tasks across Availability Zones in this manner (although you can choose a different placement strategy):

    • Sort the valid container instances by the fewest number of running tasks for this service in the same Availability Zone as the instance. For example, if zone A has one running service task and zones B and C each have zero, valid container instances in either zone B or C are considered optimal for placement.

    • Place the new service task on a valid container instance in an optimal Availability Zone (based on the previous steps), favoring container instances with the fewest number of running tasks for this service.

When the service scheduler stops running tasks, it attempts to maintain balance across the Availability Zones in your cluster using the following logic:

  • Sort the container instances by the largest number of running tasks for this service in the same Availability Zone as the instance. For example, if zone A has one running service task and zones B and C each have two, container instances in either zone B or C are considered optimal for termination.

  • Stop the task on a container instance in an optimal Availability Zone (based on the previous steps), favoring container instances with the largest number of running tasks for this service.

" }, "shapes": { "AgentUpdateStatus": { @@ -38,16 +42,26 @@ } }, "Attribute": { - "base": "

The attributes applicable to a container instance when it is registered.

", + "base": "

An attribute is a name-value pair associated with an Amazon ECS object. Attributes enable you to extend the Amazon ECS data model by adding custom metadata to your resources. For more information, see Attributes in the Amazon EC2 Container Service Developer Guide.

", "refs": { "Attributes$member": null, "RequiresAttributes$member": null } }, + "AttributeLimitExceededException": { + "base": "

You can apply up to 10 custom attributes per resource. You can view the attributes of a resource with ListAttributes. You can remove existing attributes on a resource with DeleteAttributes.

", + "refs": { + } + }, "Attributes": { "base": null, "refs": { - "ContainerInstance$attributes": "

The attributes set for the container instance by the Amazon ECS container agent at instance registration.

", + "ContainerInstance$attributes": "

The attributes set for the container instance, either by the Amazon ECS container agent at instance registration or manually with the PutAttributes operation.

", + "DeleteAttributesRequest$attributes": "

The attributes to delete from your resource. You can specify up to 10 attributes per request. For custom attributes, specify the attribute name and target ID, but do not specify the value. If you specify the target ID using the short form, you must also specify the target type.

", + "DeleteAttributesResponse$attributes": "

A list of attribute objects that were successfully deleted from your resource.

", + "ListAttributesResponse$attributes": "

A list of attribute objects that meet the criteria of the request.

", + "PutAttributesRequest$attributes": "

The attributes to apply to your resource. You can specify up to 10 custom attributes per resource. You can specify up to 10 attributes in a single call.

", + "PutAttributesResponse$attributes": "

The attributes applied to your resource.

", "RegisterContainerInstanceRequest$attributes": "

The container instance attributes that this container instance supports.

" } }, @@ -61,10 +75,10 @@ "base": null, "refs": { "ContainerDefinition$essential": "

If the essential parameter of a container is marked as true, and that container fails or stops for any reason, all other containers that are part of the task are stopped. If the essential parameter of a container is marked as false, then its failure does not affect the rest of the containers in a task. If this parameter is omitted, a container is assumed to be essential.

All tasks must have at least one essential container. If you have an application that is composed of multiple containers, you should group containers that are used for a common purpose into components, and separate the different components into multiple task definitions. For more information, see Application Architecture in the Amazon EC2 Container Service Developer Guide.

", - "ContainerDefinition$disableNetworking": "

When this parameter is true, networking is disabled within the container. This parameter maps to NetworkDisabled in the Create a container section of the Docker Remote API.

", - "ContainerDefinition$privileged": "

When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user). This parameter maps to Privileged in the Create a container section of the Docker Remote API and the --privileged option to docker run.

", - "ContainerDefinition$readonlyRootFilesystem": "

When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ReadonlyRootfs in the Create a container section of the Docker Remote API and the --read-only option to docker run.

", - "DeregisterContainerInstanceRequest$force": "

Forces the deregistration of the container instance. If you have tasks running on the container instance when you deregister it with the force option, these tasks remain running and they continue to pass Elastic Load Balancing load balancer health checks until you terminate the instance or the tasks stop through some other means, but they are orphaned (no longer monitored or accounted for by Amazon ECS). If an orphaned task on your container instance is part of an Amazon ECS service, then the service scheduler starts another copy of that task, on a different container instance if possible.

", + "ContainerDefinition$disableNetworking": "

When this parameter is true, networking is disabled within the container. This parameter maps to NetworkDisabled in the Create a container section of the Docker Remote API.

", + "ContainerDefinition$privileged": "

When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user). This parameter maps to Privileged in the Create a container section of the Docker Remote API and the --privileged option to docker run.

", + "ContainerDefinition$readonlyRootFilesystem": "

When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ReadonlyRootfs in the Create a container section of the Docker Remote API and the --read-only option to docker run.

", + "DeregisterContainerInstanceRequest$force": "

Forces the deregistration of the container instance. If you have tasks running on the container instance when you deregister it with the force option, these tasks remain running until you terminate the instance or the tasks stop through some other means, but they are orphaned (no longer monitored or accounted for by Amazon ECS). If an orphaned task on your container instance is part of an Amazon ECS service, then the service scheduler starts another copy of that task, on a different container instance if possible.

Any containers in orphaned service tasks that are registered with a Classic load balancer or an Application load balancer target group are deregistered, and they will begin connection draining according to the settings on the load balancer or target group.

", "MountPoint$readOnly": "

If this value is true, the container has read-only access to the volume. If this value is false, then the container can write to the volume. The default value is false.

", "VolumeFrom$readOnly": "

If this value is true, the container has read-only access to the volume. If this value is false, then the container can write to the volume. The default value is false.

" } @@ -73,11 +87,12 @@ "base": null, "refs": { "Container$exitCode": "

The exit code returned from the container.

", - "ContainerDefinition$memory": "

The hard limit (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed. This parameter maps to Memory in the Create a container section of the Docker Remote API and the --memory option to docker run.

You must specify a non-zero integer for one or both of memory or memoryReservation in container definitions. If you specify both, memory must be greater than memoryReservation. If you specify memoryReservation, then that value is subtracted from the available memory resources for the container instance on which the container is placed; otherwise, the value of memory is used.

The Docker daemon reserves a minimum of 4 MiB of memory for a container, so you should not specify fewer than 4 MiB of memory for your containers.

", - "ContainerDefinition$memoryReservation": "

The soft limit (in MiB) of memory to reserve for the container. When system memory is under heavy contention, Docker attempts to keep the container memory to this soft limit; however, your container can consume more memory when it needs to, up to either the hard limit specified with the memory parameter (if applicable), or all of the available memory on the container instance, whichever comes first. This parameter maps to MemoryReservation in the Create a container section of the Docker Remote API and the --memory-reservation option to docker run.

You must specify a non-zero integer for one or both of memory or memoryReservation in container definitions. If you specify both, memory must be greater than memoryReservation. If you specify memoryReservation, then that value is subtracted from the available memory resources for the container instance on which the container is placed; otherwise, the value of memory is used.

For example, if your container normally uses 128 MiB of memory, but occasionally bursts to 256 MiB of memory for short periods of time, you can set a memoryReservation of 128 MiB, and a memory hard limit of 300 MiB. This configuration would allow the container to only reserve 128 MiB of memory from the remaining resources on the container instance, but also allow the container to consume more memory resources when needed.

", + "ContainerDefinition$memory": "

The hard limit (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed. This parameter maps to Memory in the Create a container section of the Docker Remote API and the --memory option to docker run.

You must specify a non-zero integer for one or both of memory or memoryReservation in container definitions. If you specify both, memory must be greater than memoryReservation. If you specify memoryReservation, then that value is subtracted from the available memory resources for the container instance on which the container is placed; otherwise, the value of memory is used.

The Docker daemon reserves a minimum of 4 MiB of memory for a container, so you should not specify fewer than 4 MiB of memory for your containers.

", + "ContainerDefinition$memoryReservation": "

The soft limit (in MiB) of memory to reserve for the container. When system memory is under heavy contention, Docker attempts to keep the container memory to this soft limit; however, your container can consume more memory when it needs to, up to either the hard limit specified with the memory parameter (if applicable), or all of the available memory on the container instance, whichever comes first. This parameter maps to MemoryReservation in the Create a container section of the Docker Remote API and the --memory-reservation option to docker run.

You must specify a non-zero integer for one or both of memory or memoryReservation in container definitions. If you specify both, memory must be greater than memoryReservation. If you specify memoryReservation, then that value is subtracted from the available memory resources for the container instance on which the container is placed; otherwise, the value of memory is used.

For example, if your container normally uses 128 MiB of memory, but occasionally bursts to 256 MiB of memory for short periods of time, you can set a memoryReservation of 128 MiB, and a memory hard limit of 300 MiB. This configuration would allow the container to only reserve 128 MiB of memory from the remaining resources on the container instance, but also allow the container to consume more memory resources when needed.

", "CreateServiceRequest$desiredCount": "

The number of instantiations of the specified task definition to place and keep running on your cluster.

", - "DeploymentConfiguration$maximumPercent": "

The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment. The maximum number of tasks during a deployment is the desiredCount multiplied by the maximumPercent/100, rounded down to the nearest integer value.

", - "DeploymentConfiguration$minimumHealthyPercent": "

The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment. The minimum healthy tasks during a deployment is the desiredCount multiplied by the minimumHealthyPercent/100, rounded up to the nearest integer value.

", + "DeploymentConfiguration$maximumPercent": "

The upper limit (as a percentage of the service's desiredCount) of the number of tasks that are allowed in the RUNNING or PENDING state in a service during a deployment. The maximum number of tasks during a deployment is the desiredCount multiplied by maximumPercent/100, rounded down to the nearest integer value.

", + "DeploymentConfiguration$minimumHealthyPercent": "

The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain in the RUNNING state in a service during a deployment. The minimum healthy tasks during a deployment is the desiredCount multiplied by minimumHealthyPercent/100, rounded up to the nearest integer value.

", + "ListAttributesRequest$maxResults": "

The maximum number of cluster results returned by ListAttributes in paginated output. When this parameter is used, ListAttributes only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListAttributes request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListAttributes returns up to 100 results and a nextToken value if applicable.

", "ListClustersRequest$maxResults": "

The maximum number of cluster results returned by ListClusters in paginated output. When this parameter is used, ListClusters only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListClusters request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListClusters returns up to 100 results and a nextToken value if applicable.

", "ListContainerInstancesRequest$maxResults": "

The maximum number of container instance results returned by ListContainerInstances in paginated output. When this parameter is used, ListContainerInstances only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListContainerInstances request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListContainerInstances returns up to 100 results and a nextToken value if applicable.

", "ListServicesRequest$maxResults": "

The maximum number of container instance results returned by ListServices in paginated output. When this parameter is used, ListServices only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListServices request with the returned nextToken value. This value can be between 1 and 10. If this parameter is not used, then ListServices returns up to 10 results and a nextToken value if applicable.

", @@ -88,8 +103,8 @@ "NetworkBinding$containerPort": "

The port number on the container that is be used with the network binding.

", "NetworkBinding$hostPort": "

The port number on the host that is used with the network binding.

", "PortMapping$containerPort": "

The port number on the container that is bound to the user-specified or automatically assigned host port. If you specify a container port and not a host port, your container automatically receives a host port in the ephemeral port range (for more information, see hostPort). Port mappings that are automatically assigned in this way do not count toward the 100 reserved ports limit of a container instance.

", - "PortMapping$hostPort": "

The port number on the container instance to reserve for your container. You can specify a non-reserved host port for your container port mapping, or you can omit the hostPort (or set it to 0) while specifying a containerPort and your container automatically receives a port in the ephemeral port range for your container instance operating system and Docker version.

The default ephemeral port range is 49153 to 65535, and this range is used for Docker versions prior to 1.6.0. For Docker version 1.6.0 and later, the Docker daemon tries to read the ephemeral port range from /proc/sys/net/ipv4/ip_local_port_range; if this kernel parameter is unavailable, the default ephemeral port range is used. You should not attempt to specify a host port in the ephemeral port range, because these are reserved for automatic assignment. In general, ports below 32768 are outside of the ephemeral port range.

The default reserved ports are 22 for SSH, the Docker ports 2375 and 2376, and the Amazon ECS container agent port 51678. Any host port that was previously specified in a running task is also reserved while the task is running (after a task stops, the host port is released).The current reserved ports are displayed in the remainingResources of DescribeContainerInstances output, and a container instance may have up to 100 reserved ports at a time, including the default reserved ports (automatically assigned ports do not count toward the 100 reserved ports limit).

", - "RunTaskRequest$count": "

The number of instantiations of the specified task to place on your cluster.

The count parameter is limited to 10 tasks per call.

", + "PortMapping$hostPort": "

The port number on the container instance to reserve for your container. You can specify a non-reserved host port for your container port mapping, or you can omit the hostPort (or set it to 0) while specifying a containerPort and your container automatically receives a port in the ephemeral port range for your container instance operating system and Docker version.

The default ephemeral port range is 49153 to 65535, and this range is used for Docker versions prior to 1.6.0. For Docker version 1.6.0 and later, the Docker daemon tries to read the ephemeral port range from /proc/sys/net/ipv4/ip_local_port_range; if this kernel parameter is unavailable, the default ephemeral port range is used. You should not attempt to specify a host port in the ephemeral port range, because these are reserved for automatic assignment. In general, ports below 32768 are outside of the ephemeral port range.

The default reserved ports are 22 for SSH, the Docker ports 2375 and 2376, and the Amazon ECS container agent ports 51678 and 51679. Any host port that was previously specified in a running task is also reserved while the task is running (after a task stops, the host port is released).The current reserved ports are displayed in the remainingResources of DescribeContainerInstances output, and a container instance may have up to 100 reserved ports at a time, including the default reserved ports (automatically assigned ports do not count toward the 100 reserved ports limit).

", + "RunTaskRequest$count": "

The number of instantiations of the specified task to place on your cluster. You can specify up to 10 tasks per call.

", "SubmitContainerStateChangeRequest$exitCode": "

The exit code returned for the state change request.

", "UpdateServiceRequest$desiredCount": "

The number of instantiations of the task to place and keep running in your service.

" } @@ -151,15 +166,23 @@ "base": "

An EC2 instance that is running the Amazon ECS agent and has been registered with a cluster.

", "refs": { "ContainerInstances$member": null, - "DeregisterContainerInstanceResponse$containerInstance": null, - "RegisterContainerInstanceResponse$containerInstance": null, - "UpdateContainerAgentResponse$containerInstance": null + "DeregisterContainerInstanceResponse$containerInstance": "

The container instance that was deregistered.

", + "RegisterContainerInstanceResponse$containerInstance": "

The container instance that was registered.

", + "UpdateContainerAgentResponse$containerInstance": "

The container instance for which the container agent was updated.

" + } + }, + "ContainerInstanceStatus": { + "base": null, + "refs": { + "ListContainerInstancesRequest$status": "

The container instance status with which to filter the ListContainerInstances results. Specifying a container instance status of DRAINING limits the results to container instances that have been set to drain with the UpdateContainerInstancesState operation.

", + "UpdateContainerInstancesStateRequest$status": "

The container instance state with which to update the container instance.

" } }, "ContainerInstances": { "base": null, "refs": { - "DescribeContainerInstancesResponse$containerInstances": "

The list of container instances.

" + "DescribeContainerInstancesResponse$containerInstances": "

The list of container instances.

", + "UpdateContainerInstancesStateResponse$containerInstances": "

The list of container instances.

" } }, "ContainerOverride": { @@ -200,6 +223,16 @@ "refs": { } }, + "DeleteAttributesRequest": { + "base": null, + "refs": { + } + }, + "DeleteAttributesResponse": { + "base": null, + "refs": { + } + }, "DeleteClusterRequest": { "base": null, "refs": { @@ -329,7 +362,7 @@ "DockerLabelsMap": { "base": null, "refs": { - "ContainerDefinition$dockerLabels": "

A key/value map of labels to add to the container. This parameter maps to Labels in the Create a container section of the Docker Remote API and the --label option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: sudo docker version | grep \"Server API version\"

" + "ContainerDefinition$dockerLabels": "

A key/value map of labels to add to the container. This parameter maps to Labels in the Create a container section of the Docker Remote API and the --label option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: sudo docker version | grep \"Server API version\"

" } }, "Double": { @@ -341,7 +374,7 @@ "EnvironmentVariables": { "base": null, "refs": { - "ContainerDefinition$environment": "

The environment variables to pass to a container. This parameter maps to Env in the Create a container section of the Docker Remote API and the --env option to docker run.

We do not recommend using plain text environment variables for sensitive information, such as credential data.

", + "ContainerDefinition$environment": "

The environment variables to pass to a container. This parameter maps to Env in the Create a container section of the Docker Remote API and the --env option to docker run.

We do not recommend using plain text environment variables for sensitive information, such as credential data.

", "ContainerOverride$environment": "

The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition.

" } }, @@ -359,7 +392,8 @@ "DescribeServicesResponse$failures": "

Any failures associated with the call.

", "DescribeTasksResponse$failures": "

Any failures associated with the call.

", "RunTaskResponse$failures": "

Any failures associated with the call.

", - "StartTaskResponse$failures": "

Any failures associated with the call.

" + "StartTaskResponse$failures": "

Any failures associated with the call.

", + "UpdateContainerInstancesStateResponse$failures": "

Any failures associated with the call.

" } }, "HostEntry": { @@ -371,7 +405,7 @@ "HostEntryList": { "base": null, "refs": { - "ContainerDefinition$extraHosts": "

A list of hostnames and IP address mappings to append to the /etc/hosts file on the container. This parameter maps to ExtraHosts in the Create a container section of the Docker Remote API and the --add-host option to docker run.

" + "ContainerDefinition$extraHosts": "

A list of hostnames and IP address mappings to append to the /etc/hosts file on the container. This parameter maps to ExtraHosts in the Create a container section of the Docker Remote API and the --add-host option to docker run.

" } }, "HostVolumeProperties": { @@ -387,7 +421,7 @@ "Cluster$runningTasksCount": "

The number of tasks in the cluster that are in the RUNNING state.

", "Cluster$pendingTasksCount": "

The number of tasks in the cluster that are in the PENDING state.

", "Cluster$activeServicesCount": "

The number of services that are running on the cluster in an ACTIVE state. You can view these services with ListServices.

", - "ContainerDefinition$cpu": "

The number of cpu units reserved for the container. A container instance has 1,024 cpu units for every CPU core. This parameter specifies the minimum amount of CPU to reserve for a container, and containers share unallocated CPU units with other containers on the instance with the same ratio as their allocated amount. This parameter maps to CpuShares in the Create a container section of the Docker Remote API and the --cpu-shares option to docker run.

You can determine the number of CPU units that are available per EC2 instance type by multiplying the vCPUs listed for that instance type on the Amazon EC2 Instances detail page by 1,024.

For example, if you run a single-container task on a single-core instance type with 512 CPU units specified for that container, and that is the only task running on the container instance, that container could use the full 1,024 CPU unit share at any given time. However, if you launched another copy of the same task on that container instance, each task would be guaranteed a minimum of 512 CPU units when needed, and each container could float to higher CPU usage if the other container was not using it, but if both tasks were 100% active all of the time, they would be limited to 512 CPU units.

The Docker daemon on the container instance uses the CPU value to calculate the relative CPU share ratios for running containers. For more information, see CPU share constraint in the Docker documentation. The minimum valid CPU share value that the Linux kernel allows is 2; however, the CPU parameter is not required, and you can use CPU values below 2 in your container definitions. For CPU values below 2 (including null), the behavior varies based on your Amazon ECS container agent version:

  • Agent versions less than or equal to 1.1.0: Null and zero CPU values are passed to Docker as 0, which Docker then converts to 1,024 CPU shares. CPU values of 1 are passed to Docker as 1, which the Linux kernel converts to 2 CPU shares.

  • Agent versions greater than or equal to 1.2.0: Null, zero, and CPU values of 1 are passed to Docker as 2.

", + "ContainerDefinition$cpu": "

The number of cpu units reserved for the container. A container instance has 1,024 cpu units for every CPU core. This parameter specifies the minimum amount of CPU to reserve for a container, and containers share unallocated CPU units with other containers on the instance with the same ratio as their allocated amount. This parameter maps to CpuShares in the Create a container section of the Docker Remote API and the --cpu-shares option to docker run.

You can determine the number of CPU units that are available per EC2 instance type by multiplying the vCPUs listed for that instance type on the Amazon EC2 Instances detail page by 1,024.

For example, if you run a single-container task on a single-core instance type with 512 CPU units specified for that container, and that is the only task running on the container instance, that container could use the full 1,024 CPU unit share at any given time. However, if you launched another copy of the same task on that container instance, each task would be guaranteed a minimum of 512 CPU units when needed, and each container could float to higher CPU usage if the other container was not using it, but if both tasks were 100% active all of the time, they would be limited to 512 CPU units.

The Docker daemon on the container instance uses the CPU value to calculate the relative CPU share ratios for running containers. For more information, see CPU share constraint in the Docker documentation. The minimum valid CPU share value that the Linux kernel allows is 2; however, the CPU parameter is not required, and you can use CPU values below 2 in your container definitions. For CPU values below 2 (including null), the behavior varies based on your Amazon ECS container agent version:

  • Agent versions less than or equal to 1.1.0: Null and zero CPU values are passed to Docker as 0, which Docker then converts to 1,024 CPU shares. CPU values of 1 are passed to Docker as 1, which the Linux kernel converts to 2 CPU shares.

  • Agent versions greater than or equal to 1.2.0: Null, zero, and CPU values of 1 are passed to Docker as 2.

", "ContainerInstance$runningTasksCount": "

The number of tasks on the container instance that are in the RUNNING status.

", "ContainerInstance$pendingTasksCount": "

The number of tasks on the container instance that are in the PENDING status.

", "Deployment$desiredCount": "

The most recent desired count of tasks that was specified for the service to deploy or maintain.

", @@ -413,6 +447,16 @@ "EnvironmentVariables$member": null } }, + "ListAttributesRequest": { + "base": null, + "refs": { + } + }, + "ListAttributesResponse": { + "base": null, + "refs": { + } + }, "ListClustersRequest": { "base": null, "refs": { @@ -482,14 +526,14 @@ "LoadBalancers": { "base": null, "refs": { - "CreateServiceRequest$loadBalancers": "

A load balancer object representing the load balancer to use with your service. Currently, you are limited to one load balancer per service. After you create a service, the load balancer name, container name, and container port specified in the service definition are immutable.

For Elastic Load Balancing Classic load balancers, this object must contain the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer. When a task from this service is placed on a container instance, the container instance is registered with the load balancer specified here.

For Elastic Load Balancing Application load balancers, this object must contain the load balancer target group ARN, the container name (as it appears in a container definition), and the container port to access from the load balancer. When a task from this service is placed on a container instance, the container instance and port combination is registered as a target in the target group specified here.

", + "CreateServiceRequest$loadBalancers": "

A load balancer object representing the load balancer to use with your service. Currently, you are limited to one load balancer or target group per service. After you create a service, the load balancer name or target group ARN, container name, and container port specified in the service definition are immutable.

For Elastic Load Balancing Classic load balancers, this object must contain the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer. When a task from this service is placed on a container instance, the container instance is registered with the load balancer specified here.

For Elastic Load Balancing Application load balancers, this object must contain the load balancer target group ARN, the container name (as it appears in a container definition), and the container port to access from the load balancer. When a task from this service is placed on a container instance, the container instance and port combination is registered as a target in the target group specified here.

", "Service$loadBalancers": "

A list of Elastic Load Balancing load balancer objects, containing the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer.

" } }, "LogConfiguration": { "base": "

Log configuration options to send to a custom log driver for the container.

", "refs": { - "ContainerDefinition$logConfiguration": "

The log configuration specification for the container. This parameter maps to LogConfig in the Create a container section of the Docker Remote API and the --log-driver option to docker run. By default, containers use the same logging driver that the Docker daemon uses; however the container may use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options). For more information on the options for different supported log drivers, see Configure logging drivers in the Docker documentation.

Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon (shown in the LogConfiguration data type). Currently unsupported log drivers may be available in future releases of the Amazon ECS container agent.

This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: sudo docker version | grep \"Server API version\"

The Amazon ECS container agent running on a container instance must register the logging drivers available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment variable before containers placed on that instance can use these log configuration options. For more information, see Amazon ECS Container Agent Configuration in the Amazon EC2 Container Service Developer Guide.

" + "ContainerDefinition$logConfiguration": "

The log configuration specification for the container. This parameter maps to LogConfig in the Create a container section of the Docker Remote API and the --log-driver option to docker run. By default, containers use the same logging driver that the Docker daemon uses; however the container may use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options). For more information on the options for different supported log drivers, see Configure logging drivers in the Docker documentation.

Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon (shown in the LogConfiguration data type). Additional log drivers may be available in future releases of the Amazon ECS container agent.

This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: sudo docker version | grep \"Server API version\"

The Amazon ECS container agent running on a container instance must register the logging drivers available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment variable before containers placed on that instance can use these log configuration options. For more information, see Amazon ECS Container Agent Configuration in the Amazon EC2 Container Service Developer Guide.

" } }, "LogConfigurationOptionsMap": { @@ -507,7 +551,9 @@ "Long": { "base": null, "refs": { - "Resource$longValue": "

When the longValue type is set, the value of the resource must be an extended precision floating-point type.

" + "ContainerInstance$version": "

The version counter for the container instance. Every time a container instance experiences a change that triggers a CloudWatch event, the version counter is incremented. If you are replicating your Amazon ECS container instance state with CloudWatch events, you can compare the version of a container instance reported by the Amazon ECS APIs with the version reported in CloudWatch events for the container instance (inside the detail object) to verify that the version in your event stream is current.

", + "Resource$longValue": "

When the longValue type is set, the value of the resource must be an extended precision floating-point type.

", + "Task$version": "

The version counter for the task. Every time a task experiences a change that triggers a CloudWatch event, the version counter is incremented. If you are replicating your Amazon ECS task state with CloudWatch events, you can compare the version of a task reported by the Amazon ECS APIs with the version reported in CloudWatch events for the task (inside the detail object) to verify that the version in your event stream is current.

" } }, "MissingVersionException": { @@ -524,7 +570,7 @@ "MountPointList": { "base": null, "refs": { - "ContainerDefinition$mountPoints": "

The mount points for data volumes in your container. This parameter maps to Volumes in the Create a container section of the Docker Remote API and the --volume option to docker run.

" + "ContainerDefinition$mountPoints": "

The mount points for data volumes in your container. This parameter maps to Volumes in the Create a container section of the Docker Remote API and the --volume option to docker run.

" } }, "NetworkBinding": { @@ -552,6 +598,46 @@ "refs": { } }, + "PlacementConstraint": { + "base": "

An object representing a constraint on task placement. For more information, see Task Placement Constraints in the Amazon EC2 Container Service Developer Guide.

", + "refs": { + "PlacementConstraints$member": null + } + }, + "PlacementConstraintType": { + "base": null, + "refs": { + "PlacementConstraint$type": "

The type of constraint. Use distinctInstance to ensure that each task in a particular group is running on a different container instance. Use memberOf to restrict selection to a group of valid candidates. Note that distinctInstance is not supported in task definitions.

" + } + }, + "PlacementConstraints": { + "base": null, + "refs": { + "CreateServiceRequest$placementConstraints": "

An array of placement constraint objects to use for tasks in your service. You can specify a maximum of 10 constraints per task (this limit includes constraints in the task definition and those specified at run time).

", + "RunTaskRequest$placementConstraints": "

An array of placement constraint objects to use for the task. You can specify up to 10 constraints per task (including constraints in the task definition and those specified at run time).

", + "Service$placementConstraints": "

The placement constraints for the tasks in the service.

" + } + }, + "PlacementStrategies": { + "base": null, + "refs": { + "CreateServiceRequest$placementStrategy": "

The placement strategy objects to use for tasks in your service. You can specify a maximum of 5 strategy rules per service.

", + "RunTaskRequest$placementStrategy": "

The placement strategy objects to use for the task. You can specify a maximum of 5 strategy rules per task.

", + "Service$placementStrategy": "

The placement strategy that determines how tasks for the service are placed.

" + } + }, + "PlacementStrategy": { + "base": "

The task placement strategy for a task or service. For more information, see Task Placement Strategies in the Amazon EC2 Container Service Developer Guide.

", + "refs": { + "PlacementStrategies$member": null + } + }, + "PlacementStrategyType": { + "base": null, + "refs": { + "PlacementStrategy$type": "

The type of placement strategy. The random placement strategy randomly places tasks on available candidates. The spread placement strategy spreads placement across available candidates evenly based on the field parameter. The binpack strategy places tasks on available candidates that have the least available amount of the resource that is specified with the field parameter. For example, if you binpack on memory, a task is placed on the instance with the least amount of remaining memory (but still enough to run the task).

" + } + }, "PortMapping": { "base": "

Port mappings allow containers to access ports on the host container instance to send or receive traffic. Port mappings are specified as part of the container definition. After a task reaches the RUNNING status, manual and automatic host and container port assignments are visible in the networkBindings section of DescribeTasks API responses.

", "refs": { @@ -561,7 +647,17 @@ "PortMappingList": { "base": null, "refs": { - "ContainerDefinition$portMappings": "

The list of port mappings for the container. Port mappings allow containers to access ports on the host container instance to send or receive traffic. This parameter maps to PortBindings in the Create a container section of the Docker Remote API and the --publish option to docker run. If the network mode of a task definition is set to none, then you cannot specify port mappings. If the network mode of a task definition is set to host, then host ports must either be undefined or they must match the container port in the port mapping.

After a task reaches the RUNNING status, manual and automatic host and container port assignments are visible in the Network Bindings section of a container description of a selected task in the Amazon ECS console, or the networkBindings section DescribeTasks responses.

" + "ContainerDefinition$portMappings": "

The list of port mappings for the container. Port mappings allow containers to access ports on the host container instance to send or receive traffic. This parameter maps to PortBindings in the Create a container section of the Docker Remote API and the --publish option to docker run. If the network mode of a task definition is set to none, then you cannot specify port mappings. If the network mode of a task definition is set to host, then host ports must either be undefined or they must match the container port in the port mapping.

After a task reaches the RUNNING status, manual and automatic host and container port assignments are visible in the Network Bindings section of a container description of a selected task in the Amazon ECS console, or the networkBindings section DescribeTasks responses.

" + } + }, + "PutAttributesRequest": { + "base": null, + "refs": { + } + }, + "PutAttributesResponse": { + "base": null, + "refs": { } }, "RegisterContainerInstanceRequest": { @@ -599,8 +695,8 @@ "Resources": { "base": null, "refs": { - "ContainerInstance$remainingResources": "

The remaining resources of the container instance that are available for new tasks.

", - "ContainerInstance$registeredResources": "

The registered resources on the container instance that are in use by current tasks.

", + "ContainerInstance$remainingResources": "

For most resource types, this parameter describes the remaining resources of the container instance that are available for new tasks. For port resource types, this parameter describes the ports that are reserved by the Amazon ECS container agent and any containers that have reserved port mappings; any port that is not specified here is available for new tasks.

", + "ContainerInstance$registeredResources": "

For most resource types, this parameter describes the registered resources on the container instance that are in use by current tasks. For port resource types, this parameter describes the ports that were reserved by the Amazon ECS container agent when it registered the container instance with Amazon ECS.

", "RegisterContainerInstanceRequest$totalResources": "

The resources available on the instance.

" } }, @@ -685,8 +781,9 @@ "String": { "base": null, "refs": { - "Attribute$name": "

The name of the container instance attribute.

", - "Attribute$value": "

The value of the container instance attribute (at this time, the value here is Null, but this could change in future revisions for expandability).

", + "Attribute$name": "

The name of the attribute. Up to 128 letters (uppercase and lowercase), numbers, hyphens, underscores, and periods are allowed.

", + "Attribute$value": "

The value of the attribute. Up to 128 letters (uppercase and lowercase), numbers, hyphens, underscores, periods, at signs (@), forward slashes, colons, and spaces are allowed.

", + "Attribute$targetId": "

The ID of the target. You can specify the short form ID for a resource or the full Amazon Resource Name (ARN).

", "ClientException$message": null, "Cluster$clusterArn": "

The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the arn:aws:ecs namespace, followed by the region of the cluster, the AWS account ID of the cluster owner, the cluster namespace, and then the cluster name. For example, arn:aws:ecs:region:012345678910:cluster/test ..

", "Cluster$clusterName": "

A user-generated string that you use to identify your cluster.

", @@ -695,12 +792,12 @@ "Container$taskArn": "

The Amazon Resource Name (ARN) of the task.

", "Container$name": "

The name of the container.

", "Container$lastStatus": "

The last known status of the container.

", - "Container$reason": "

A short (255 max characters) human-readable string to provide additional detail about a running or stopped container.

", - "ContainerDefinition$name": "

The name of a container. If you are linking multiple containers together in a task definition, the name of one container can be entered in the links of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. This parameter maps to name in the Create a container section of the Docker Remote API and the --name option to docker run.

", - "ContainerDefinition$image": "

The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with repository-url/image:tag . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the Create a container section of the Docker Remote API and the IMAGE parameter of docker run.

  • Images in official repositories on Docker Hub use a single name (for example, ubuntu or mongo).

  • Images in other repositories on Docker Hub are qualified with an organization name (for example, amazon/amazon-ecs-agent).

  • Images in other online repositories are qualified further by a domain name (for example, quay.io/assemblyline/ubuntu).

", - "ContainerDefinition$hostname": "

The hostname to use for your container. This parameter maps to Hostname in the Create a container section of the Docker Remote API and the --hostname option to docker run.

", - "ContainerDefinition$user": "

The user name to use inside the container. This parameter maps to User in the Create a container section of the Docker Remote API and the --user option to docker run.

", - "ContainerDefinition$workingDirectory": "

The working directory in which to run commands inside the container. This parameter maps to WorkingDir in the Create a container section of the Docker Remote API and the --workdir option to docker run.

", + "Container$reason": "

A short (255 max characters) human-readable string to provide additional details about a running or stopped container.

", + "ContainerDefinition$name": "

The name of a container. If you are linking multiple containers together in a task definition, the name of one container can be entered in the links of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. This parameter maps to name in the Create a container section of the Docker Remote API and the --name option to docker run.

", + "ContainerDefinition$image": "

The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with repository-url/image:tag . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the Create a container section of the Docker Remote API and the IMAGE parameter of docker run.

Amazon ECS task definitions currently only support tags as image identifiers within a specified repository (and not sha256 digests).

  • Images in Amazon ECR repositories use the full registry and repository URI (for example, 012345678910.dkr.ecr.<region-name>.amazonaws.com/<repository-name>).

  • Images in official repositories on Docker Hub use a single name (for example, ubuntu or mongo).

  • Images in other repositories on Docker Hub are qualified with an organization name (for example, amazon/amazon-ecs-agent).

  • Images in other online repositories are qualified further by a domain name (for example, quay.io/assemblyline/ubuntu).

", + "ContainerDefinition$hostname": "

The hostname to use for your container. This parameter maps to Hostname in the Create a container section of the Docker Remote API and the --hostname option to docker run.

", + "ContainerDefinition$user": "

The user name to use inside the container. This parameter maps to User in the Create a container section of the Docker Remote API and the --user option to docker run.

", + "ContainerDefinition$workingDirectory": "

The working directory in which to run commands inside the container. This parameter maps to WorkingDir in the Create a container section of the Docker Remote API and the --workdir option to docker run.

", "ContainerInstance$containerInstanceArn": "

The Amazon Resource Name (ARN) of the container instance. The ARN contains the arn:aws:ecs namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID .

", "ContainerInstance$ec2InstanceId": "

The EC2 instance ID of the container instance.

", "ContainerInstance$status": "

The status of the container instance. The valid values are ACTIVE or INACTIVE. ACTIVE indicates that the container instance can accept tasks.

", @@ -711,6 +808,7 @@ "CreateServiceRequest$taskDefinition": "

The family and revision (family:revision) or full Amazon Resource Name (ARN) of the task definition to run in your service. If a revision is not specified, the latest ACTIVE revision is used.

", "CreateServiceRequest$clientToken": "

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. Up to 32 ASCII characters are allowed.

", "CreateServiceRequest$role": "

The name or full Amazon Resource Name (ARN) of the IAM role that allows Amazon ECS to make calls to your load balancer on your behalf. This parameter is required if you are using a load balancer with your service. If you specify the role parameter, you must also specify a load balancer object with the loadBalancers parameter.

If your specified role has a path other than /, then you must either specify the full role ARN (this is recommended) or prefix the role name with the path. For example, if a role with the name bar has a path of /foo/ then you would specify /foo/bar as the role name. For more information, see Friendly Names and Paths in the IAM User Guide.

", + "DeleteAttributesRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to apply attributes. If you do not specify a cluster, the default cluster is assumed.

", "DeleteClusterRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster to delete.

", "DeleteServiceRequest$cluster": "

The name of the cluster that hosts the service to delete. If you do not specify a cluster, the default cluster is assumed.

", "DeleteServiceRequest$service": "

The name of the service to delete.

", @@ -737,12 +835,18 @@ "HostVolumeProperties$sourcePath": "

The path on the host container instance that is presented to the container. If this parameter is empty, then the Docker daemon has assigned a host path for you. If the host parameter contains a sourcePath file location, then the data volume persists at the specified location on the host container instance until you delete it manually. If the sourcePath value does not exist on the host container instance, the Docker daemon creates it. If the location does exist, the contents of the source path folder are exported.

", "KeyValuePair$name": "

The name of the key value pair. For environment variables, this is the name of the environment variable.

", "KeyValuePair$value": "

The value of the key value pair. For environment variables, this is the value of the environment variable.

", + "ListAttributesRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster to list attributes. If you do not specify a cluster, the default cluster is assumed.

", + "ListAttributesRequest$attributeName": "

The name of the attribute with which to filter the results.

", + "ListAttributesRequest$attributeValue": "

The value of the attribute with which to filter results. You must also specify an attribute name to use this parameter.

", + "ListAttributesRequest$nextToken": "

The nextToken value returned from a previous paginated ListAttributes request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

", + "ListAttributesResponse$nextToken": "

The nextToken value to include in a future ListAttributes request. When the results of a ListAttributes request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", "ListClustersRequest$nextToken": "

The nextToken value returned from a previous paginated ListClusters request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

", "ListClustersResponse$nextToken": "

The nextToken value to include in a future ListClusters request. When the results of a ListClusters request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", - "ListContainerInstancesRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instances to list. If you do not specify a cluster, the default cluster is assumed..

", + "ListContainerInstancesRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instances to list. If you do not specify a cluster, the default cluster is assumed.

", + "ListContainerInstancesRequest$filter": "

You can filter the results of a ListContainerInstances operation with cluster query language statements. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide.

", "ListContainerInstancesRequest$nextToken": "

The nextToken value returned from a previous paginated ListContainerInstances request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

", "ListContainerInstancesResponse$nextToken": "

The nextToken value to include in a future ListContainerInstances request. When the results of a ListContainerInstances request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", - "ListServicesRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the services to list. If you do not specify a cluster, the default cluster is assumed..

", + "ListServicesRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the services to list. If you do not specify a cluster, the default cluster is assumed.

", "ListServicesRequest$nextToken": "

The nextToken value returned from a previous paginated ListServices request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

", "ListServicesResponse$nextToken": "

The nextToken value to include in a future ListServices request. When the results of a ListServices request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", "ListTaskDefinitionFamiliesRequest$familyPrefix": "

The familyPrefix is a string that is used to filter the results of ListTaskDefinitionFamilies. If you specify a familyPrefix, only task definition family names that begin with the familyPrefix string are returned.

", @@ -751,7 +855,7 @@ "ListTaskDefinitionsRequest$familyPrefix": "

The full family name with which to filter the ListTaskDefinitions results. Specifying a familyPrefix limits the listed task definitions to task definition revisions that belong to that family.

", "ListTaskDefinitionsRequest$nextToken": "

The nextToken value returned from a previous paginated ListTaskDefinitions request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

", "ListTaskDefinitionsResponse$nextToken": "

The nextToken value to include in a future ListTaskDefinitions request. When the results of a ListTaskDefinitions request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", - "ListTasksRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the tasks to list. If you do not specify a cluster, the default cluster is assumed..

", + "ListTasksRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the tasks to list. If you do not specify a cluster, the default cluster is assumed.

", "ListTasksRequest$containerInstance": "

The container instance ID or full Amazon Resource Name (ARN) of the container instance with which to filter the ListTasks results. Specifying a containerInstance limits the results to tasks that belong to that container instance.

", "ListTasksRequest$family": "

The name of the family with which to filter the ListTasks results. Specifying a family limits the results to tasks that belong to that family.

", "ListTasksRequest$nextToken": "

The nextToken value returned from a previous paginated ListTasks request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

", @@ -766,17 +870,21 @@ "MountPoint$sourceVolume": "

The name of the volume to mount.

", "MountPoint$containerPath": "

The path on the container to mount the host volume at.

", "NetworkBinding$bindIP": "

The IP address that the container is bound to on the container instance.

", - "RegisterContainerInstanceRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster with which to register your container instance. If you do not specify a cluster, the default cluster is assumed..

", + "PlacementConstraint$expression": "

A cluster query language expression to apply to the constraint. Note you cannot specify an expression if the constraint type is distinctInstance. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide.

", + "PlacementStrategy$field": "

The field to apply the placement strategy against. For the spread placement strategy, valid values are instanceId (or host, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as attribute:ecs.availability-zone. For the binpack placement strategy, valid values are cpu and memory. For the random placement strategy, this field is not used.

", + "PutAttributesRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to apply attributes. If you do not specify a cluster, the default cluster is assumed.

", + "RegisterContainerInstanceRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster with which to register your container instance. If you do not specify a cluster, the default cluster is assumed.

", "RegisterContainerInstanceRequest$instanceIdentityDocument": "

The instance identity document for the EC2 instance to register. This document can be found by running the following command from the instance: curl http://169.254.169.254/latest/dynamic/instance-identity/document/

", "RegisterContainerInstanceRequest$instanceIdentityDocumentSignature": "

The instance identity document signature for the EC2 instance to register. This signature can be found by running the following command from the instance: curl http://169.254.169.254/latest/dynamic/instance-identity/signature/

", "RegisterContainerInstanceRequest$containerInstanceArn": "

The Amazon Resource Name (ARN) of the container instance (if it was previously registered).

", "RegisterTaskDefinitionRequest$family": "

You must specify a family for a task definition, which allows you to track multiple versions of the same task definition. The family is used as a name for your task definition. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.

", - "RegisterTaskDefinitionRequest$taskRoleArn": "

The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume. All containers in this task are granted the permissions that are specified in this role.

", - "Resource$name": "

The name of the resource, such as CPU, MEMORY, PORTS, or a user-defined resource.

", + "RegisterTaskDefinitionRequest$taskRoleArn": "

The short name or full Amazon Resource Name (ARN) of the IAM role that containers in this task can assume. All containers in this task are granted the permissions that are specified in this role. For more information, see IAM Roles for Tasks in the Amazon EC2 Container Service Developer Guide.

", + "Resource$name": "

The name of the resource, such as cpu, memory, ports, or a user-defined resource.

", "Resource$type": "

The type of the resource, such as INTEGER, DOUBLE, LONG, or STRINGSET.

", - "RunTaskRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster on which to run your task. If you do not specify a cluster, the default cluster is assumed..

", + "RunTaskRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster on which to run your task. If you do not specify a cluster, the default cluster is assumed.

", "RunTaskRequest$taskDefinition": "

The family and revision (family:revision) or full Amazon Resource Name (ARN) of the task definition to run. If a revision is not specified, the latest ACTIVE revision is used.

", "RunTaskRequest$startedBy": "

An optional tag specified when a task is started. For example if you automatically trigger a task to run a batch process job, you could apply a unique identifier for that job to your task with the startedBy parameter. You can then identify which tasks belong to that job by filtering the results of a ListTasks call with the startedBy value. Up to 36 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.

If a task is started by an Amazon ECS service, then the startedBy parameter contains the deployment ID of the service that starts it.

", + "RunTaskRequest$group": "

The name of the task group to associate with the task. The default value is the family name of the task definition (for example, family:my-family-name).

", "ServerException$message": null, "Service$serviceArn": "

The Amazon Resource Name (ARN) that identifies the service. The ARN contains the arn:aws:ecs namespace, followed by the region of the service, the AWS account ID of the service owner, the service namespace, and then the service name. For example, arn:aws:ecs:region:012345678910:service/my-service .

", "Service$serviceName": "

The name of your service. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. Service names must be unique within a cluster, but you can have similarly named services in multiple clusters within a region or across multiple regions.

", @@ -786,10 +894,11 @@ "Service$roleArn": "

The Amazon Resource Name (ARN) of the IAM role associated with the service that allows the Amazon ECS container agent to register container instances with an Elastic Load Balancing load balancer.

", "ServiceEvent$id": "

The ID string of the event.

", "ServiceEvent$message": "

The event message.

", - "StartTaskRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster on which to start your task. If you do not specify a cluster, the default cluster is assumed..

", + "StartTaskRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster on which to start your task. If you do not specify a cluster, the default cluster is assumed.

", "StartTaskRequest$taskDefinition": "

The family and revision (family:revision) or full Amazon Resource Name (ARN) of the task definition to start. If a revision is not specified, the latest ACTIVE revision is used.

", "StartTaskRequest$startedBy": "

An optional tag specified when a task is started. For example if you automatically trigger a task to run a batch process job, you could apply a unique identifier for that job to your task with the startedBy parameter. You can then identify which tasks belong to that job by filtering the results of a ListTasks call with the startedBy value. Up to 36 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.

If a task is started by an Amazon ECS service, then the startedBy parameter contains the deployment ID of the service that starts it.

", - "StopTaskRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to stop. If you do not specify a cluster, the default cluster is assumed..

", + "StartTaskRequest$group": "

The name of the task group to associate with the task. The default value is the family name of the task definition (for example, family:my-family-name).

", + "StopTaskRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to stop. If you do not specify a cluster, the default cluster is assumed.

", "StopTaskRequest$task": "

The task ID or full Amazon Resource Name (ARN) entry of the task to stop.

", "StopTaskRequest$reason": "

An optional message specified when a task is stopped. For example, if you are using a custom scheduler, you can use this parameter to specify the reason for stopping the task here, and the message will appear in subsequent DescribeTasks API operations on this task. Up to 255 characters are allowed in this message.

", "StringList$member": null, @@ -812,12 +921,15 @@ "Task$desiredStatus": "

The desired status of the task.

", "Task$startedBy": "

The tag specified when a task is started. If the task is started by an Amazon ECS service, then the startedBy parameter contains the deployment ID of the service that starts it.

", "Task$stoppedReason": "

The reason the task was stopped.

", + "Task$group": "

The name of the task group associated with the task.

", "TaskDefinition$taskDefinitionArn": "

The full Amazon Resource Name (ARN) of the task definition.

", "TaskDefinition$family": "

The family of your task definition, used as the definition name.

", "TaskDefinition$taskRoleArn": "

The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume. All containers in this task are granted the permissions that are specified in this role.

", + "TaskDefinitionPlacementConstraint$expression": "

A cluster query language expression to apply to the constraint. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide.

", "TaskOverride$taskRoleArn": "

The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume. All containers in this task are granted the permissions that are specified in this role.

", "UpdateContainerAgentRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that your container instance is running on. If you do not specify a cluster, the default cluster is assumed.

", "UpdateContainerAgentRequest$containerInstance": "

The container instance ID or full Amazon Resource Name (ARN) entries for the container instance on which you would like to update the Amazon ECS container agent.

", + "UpdateContainerInstancesStateRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance to update. If you do not specify a cluster, the default cluster is assumed.

", "UpdateServiceRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on. If you do not specify a cluster, the default cluster is assumed.

", "UpdateServiceRequest$service": "

The name of the service to update.

", "UpdateServiceRequest$taskDefinition": "

The family and revision (family:revision) or full Amazon Resource Name (ARN) of the task definition to run in your service. If a revision is not specified, the latest ACTIVE revision is used. If you modify the task definition with UpdateService, Amazon ECS spawns a task with the new version of the task definition and then stops an old task after the new version is running.

", @@ -831,16 +943,16 @@ "StringList": { "base": null, "refs": { - "ContainerDefinition$links": "

The link parameter allows containers to communicate with each other without the need for port mappings, using the name parameter and optionally, an alias for the link. This construct is analogous to name:alias in Docker links. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed for each name and alias. For more information on linking Docker containers, see https://docs.docker.com/userguide/dockerlinks/. This parameter maps to Links in the Create a container section of the Docker Remote API and the --link option to docker run.

Containers that are collocated on a single container instance may be able to communicate with each other without requiring links or host port mappings. Network isolation is achieved on the container instance using security groups and VPC settings.

", - "ContainerDefinition$entryPoint": "

Early versions of the Amazon ECS container agent do not properly handle entryPoint parameters. If you have problems using entryPoint, update your container agent or enter your commands and arguments as command array items instead.

The entry point that is passed to the container. This parameter maps to Entrypoint in the Create a container section of the Docker Remote API and the --entrypoint option to docker run. For more information, see https://docs.docker.com/reference/builder/#entrypoint.

", - "ContainerDefinition$command": "

The command that is passed to the container. This parameter maps to Cmd in the Create a container section of the Docker Remote API and the COMMAND parameter to docker run. For more information, see https://docs.docker.com/reference/builder/#cmd.

", - "ContainerDefinition$dnsServers": "

A list of DNS servers that are presented to the container. This parameter maps to Dns in the Create a container section of the Docker Remote API and the --dns option to docker run.

", - "ContainerDefinition$dnsSearchDomains": "

A list of DNS search domains that are presented to the container. This parameter maps to DnsSearch in the Create a container section of the Docker Remote API and the --dns-search option to docker run.

", - "ContainerDefinition$dockerSecurityOptions": "

A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems. This parameter maps to SecurityOpt in the Create a container section of the Docker Remote API and the --security-opt option to docker run.

The Amazon ECS container agent running on a container instance must register with the ECS_SELINUX_CAPABLE=true or ECS_APPARMOR_CAPABLE=true environment variables before containers placed on that instance can use these security options. For more information, see Amazon ECS Container Agent Configuration in the Amazon EC2 Container Service Developer Guide.

", + "ContainerDefinition$links": "

The link parameter allows containers to communicate with each other without the need for port mappings, using the name parameter and optionally, an alias for the link. This construct is analogous to name:alias in Docker links. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed for each name and alias. For more information on linking Docker containers, see https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/. This parameter maps to Links in the Create a container section of the Docker Remote API and the --link option to docker run.

Containers that are collocated on a single container instance may be able to communicate with each other without requiring links or host port mappings. Network isolation is achieved on the container instance using security groups and VPC settings.

", + "ContainerDefinition$entryPoint": "

Early versions of the Amazon ECS container agent do not properly handle entryPoint parameters. If you have problems using entryPoint, update your container agent or enter your commands and arguments as command array items instead.

The entry point that is passed to the container. This parameter maps to Entrypoint in the Create a container section of the Docker Remote API and the --entrypoint option to docker run. For more information, see https://docs.docker.com/engine/reference/builder/#entrypoint.

", + "ContainerDefinition$command": "

The command that is passed to the container. This parameter maps to Cmd in the Create a container section of the Docker Remote API and the COMMAND parameter to docker run. For more information, see https://docs.docker.com/engine/reference/builder/#cmd.

", + "ContainerDefinition$dnsServers": "

A list of DNS servers that are presented to the container. This parameter maps to Dns in the Create a container section of the Docker Remote API and the --dns option to docker run.

", + "ContainerDefinition$dnsSearchDomains": "

A list of DNS search domains that are presented to the container. This parameter maps to DnsSearch in the Create a container section of the Docker Remote API and the --dns-search option to docker run.

", + "ContainerDefinition$dockerSecurityOptions": "

A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems. This parameter maps to SecurityOpt in the Create a container section of the Docker Remote API and the --security-opt option to docker run.

The Amazon ECS container agent running on a container instance must register with the ECS_SELINUX_CAPABLE=true or ECS_APPARMOR_CAPABLE=true environment variables before containers placed on that instance can use these security options. For more information, see Amazon ECS Container Agent Configuration in the Amazon EC2 Container Service Developer Guide.

", "ContainerOverride$command": "

The command to send to the container that overrides the default command from the Docker image or the task definition.

", "DescribeClustersRequest$clusters": "

A space-separated list of up to 100 cluster names or full cluster Amazon Resource Name (ARN) entries. If you do not specify a cluster, the default cluster is assumed.

", "DescribeContainerInstancesRequest$containerInstances": "

A space-separated list of container instance IDs or full Amazon Resource Name (ARN) entries.

", - "DescribeServicesRequest$services": "

A list of services to describe.

", + "DescribeServicesRequest$services": "

A list of services to describe. You may specify up to 10 services to describe in a single operation.

", "DescribeTasksRequest$tasks": "

A space-separated list of task IDs or full Amazon Resource Name (ARN) entries.

", "ListClustersResponse$clusterArns": "

The list of full Amazon Resource Name (ARN) entries for each cluster associated with your account.

", "ListContainerInstancesResponse$containerInstanceArns": "

The list of container instances with full Amazon Resource Name (ARN) entries for each container instance associated with the specified cluster.

", @@ -849,7 +961,8 @@ "ListTaskDefinitionsResponse$taskDefinitionArns": "

The list of task definition Amazon Resource Name (ARN) entries for the ListTaskDefinitions request.

", "ListTasksResponse$taskArns": "

The list of task Amazon Resource Name (ARN) entries for the ListTasks request.

", "Resource$stringSetValue": "

When the stringSetValue type is set, the value of the resource must be a string type.

", - "StartTaskRequest$containerInstances": "

The container instance IDs or full Amazon Resource Name (ARN) entries for the container instances on which you would like to place your task.

The list of container instances to start tasks on is limited to 10.

" + "StartTaskRequest$containerInstances": "

The container instance IDs or full Amazon Resource Name (ARN) entries for the container instances on which you would like to place your task. You can specify up to 10 container instances.

", + "UpdateContainerInstancesStateRequest$containerInstances": "

A space-separated list of container instance IDs or full Amazon Resource Name (ARN) entries.

" } }, "SubmitContainerStateChangeRequest": { @@ -872,10 +985,22 @@ "refs": { } }, + "TargetNotFoundException": { + "base": "

The specified target could not be found. You can view your available container instances with ListContainerInstances. Amazon ECS container instances are cluster-specific and region-specific.

", + "refs": { + } + }, + "TargetType": { + "base": null, + "refs": { + "Attribute$targetType": "

The type of the target with which to attach the attribute. This parameter is required if you use the short form ID for a resource instead of the full Amazon Resource Name (ARN).

", + "ListAttributesRequest$targetType": "

The type of the target with which to list attributes.

" + } + }, "Task": { "base": "

Details on a task in a cluster.

", "refs": { - "StopTaskResponse$task": null, + "StopTaskResponse$task": "

The task that was stopped.

", "Tasks$member": null } }, @@ -893,6 +1018,25 @@ "ListTaskDefinitionFamiliesRequest$status": "

The task definition family status with which to filter the ListTaskDefinitionFamilies results. By default, both ACTIVE and INACTIVE task definition families are listed. If this parameter is set to ACTIVE, only task definition families that have an ACTIVE task definition revision are returned. If this parameter is set to INACTIVE, only task definition families that do not have any ACTIVE task definition revisions are returned. If you paginate the resulting output, be sure to keep the status value constant in each subsequent request.

" } }, + "TaskDefinitionPlacementConstraint": { + "base": "

An object representing a constraint on task placement in the task definition. For more information, see Task Placement Constraints in the Amazon EC2 Container Service Developer Guide.

", + "refs": { + "TaskDefinitionPlacementConstraints$member": null + } + }, + "TaskDefinitionPlacementConstraintType": { + "base": null, + "refs": { + "TaskDefinitionPlacementConstraint$type": "

The type of constraint. The DistinctInstance constraint ensures that each task in a particular group is running on a different container instance. The MemberOf constraint restricts selection to be from a group of valid candidates.

" + } + }, + "TaskDefinitionPlacementConstraints": { + "base": null, + "refs": { + "RegisterTaskDefinitionRequest$placementConstraints": "

An array of placement constraint objects to use for the task. You can specify a maximum of 10 constraints per task (this limit includes constraints in the task definition and those specified at run time).

", + "TaskDefinition$placementConstraints": "

An array of placement constraint objects to use for tasks.

" + } + }, "TaskDefinitionStatus": { "base": null, "refs": { @@ -944,7 +1088,7 @@ "UlimitList": { "base": null, "refs": { - "ContainerDefinition$ulimits": "

A list of ulimits to set in the container. This parameter maps to Ulimits in the Create a container section of the Docker Remote API and the --ulimit option to docker run. Valid naming values are displayed in the Ulimit data type. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: sudo docker version | grep \"Server API version\"

" + "ContainerDefinition$ulimits": "

A list of ulimits to set in the container. This parameter maps to Ulimits in the Create a container section of the Docker Remote API and the --ulimit option to docker run. Valid naming values are displayed in the Ulimit data type. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: sudo docker version | grep \"Server API version\"

" } }, "UlimitName": { @@ -963,6 +1107,16 @@ "refs": { } }, + "UpdateContainerInstancesStateRequest": { + "base": null, + "refs": { + } + }, + "UpdateContainerInstancesStateResponse": { + "base": null, + "refs": { + } + }, "UpdateInProgressException": { "base": "

There is already a current Amazon ECS container agent update in progress on the specified container instance. If the container agent becomes disconnected while it is in a transitional stage, such as PENDING or STAGING, the update process can get stuck in that state. However, when the agent reconnects, it resumes where it stopped previously.

", "refs": { @@ -1000,7 +1154,7 @@ "VolumeFromList": { "base": null, "refs": { - "ContainerDefinition$volumesFrom": "

Data volumes to mount from another container. This parameter maps to VolumesFrom in the Create a container section of the Docker Remote API and the --volumes-from option to docker run.

" + "ContainerDefinition$volumesFrom": "

Data volumes to mount from another container. This parameter maps to VolumesFrom in the Create a container section of the Docker Remote API and the --volumes-from option to docker run.

" } }, "VolumeList": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/api-2.json index fff099319..63994b34f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/api-2.json @@ -6,6 +6,7 @@ "protocol":"query", "serviceFullName":"Amazon ElastiCache", "signatureVersion":"v4", + "uid":"elasticache-2015-02-02", "xmlNamespace":"http://elasticache.amazonaws.com/doc/2015-02-02/" }, "operations":{ @@ -1255,7 +1256,8 @@ "NotificationTopicArn":{"shape":"String"}, "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, "SnapshotRetentionLimit":{"shape":"IntegerOptional"}, - "SnapshotWindow":{"shape":"String"} + "SnapshotWindow":{"shape":"String"}, + "AuthToken":{"shape":"String"} } }, "CreateCacheClusterResult":{ @@ -1350,7 +1352,8 @@ "NotificationTopicArn":{"shape":"String"}, "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, "SnapshotRetentionLimit":{"shape":"IntegerOptional"}, - "SnapshotWindow":{"shape":"String"} + "SnapshotWindow":{"shape":"String"}, + "AuthToken":{"shape":"String"} } }, "CreateReplicationGroupResult":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/docs-2.json index 995cf0e0d..a805c688f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/docs-2.json @@ -9,7 +9,7 @@ "CreateCacheParameterGroup": "

Creates a new cache parameter group. A cache parameter group is a collection of parameters that you apply to all of the nodes in a cache cluster.

", "CreateCacheSecurityGroup": "

Creates a new cache security group. Use a cache security group to control access to one or more cache clusters.

Cache security groups are only used when you are creating a cache cluster outside of an Amazon Virtual Private Cloud (Amazon VPC). If you are creating a cache cluster inside of a VPC, use a cache subnet group instead. For more information, see CreateCacheSubnetGroup.

", "CreateCacheSubnetGroup": "

Creates a new cache subnet group.

Use this parameter only when you are creating a cluster in an Amazon Virtual Private Cloud (Amazon VPC).

", - "CreateReplicationGroup": "

Creates a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication group.

A Redis (cluster mode disabled) replication group is a collection of cache clusters, where one of the cache clusters is a read/write primary and the others are read-only replicas. Writes to the primary are asynchronously propagated to the replicas.

A Redis (cluster mode enabled) replication group is a collection of 1 to 15 node groups (shards). Each node group (shard) has one read/write primary node and up to 5 read-only replica nodes. Writes to the primary are asynchronously propagated to the replicas. Redis (cluster mode enabled) replication groups partition the data across node groups (shards).

When a Redis (cluster mode disabled) replication group has been successfully created, you can add one or more read replicas to it, up to a total of 5 read replicas. You cannot alter a Redis (cluster mode enabled) replication group once it has been created.

This operation is valid for Redis only.

", + "CreateReplicationGroup": "

Creates a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication group.

A Redis (cluster mode disabled) replication group is a collection of cache clusters, where one of the cache clusters is a read/write primary and the others are read-only replicas. Writes to the primary are asynchronously propagated to the replicas.

A Redis (cluster mode enabled) replication group is a collection of 1 to 15 node groups (shards). Each node group (shard) has one read/write primary node and up to 5 read-only replica nodes. Writes to the primary are asynchronously propagated to the replicas. Redis (cluster mode enabled) replication groups partition the data across node groups (shards).

When a Redis (cluster mode disabled) replication group has been successfully created, you can add one or more read replicas to it, up to a total of 5 read replicas. You cannot alter a Redis (cluster mode enabled) replication group after it has been created.

This operation is valid for Redis only.

", "CreateSnapshot": "

Creates a copy of an entire cache cluster or replication group at a specific moment in time.

This operation is valid for Redis only.

", "DeleteCacheCluster": "

Deletes a previously provisioned cache cluster. DeleteCacheCluster deletes all associated cache nodes, node endpoints and the cache cluster itself. When you receive a successful response from this operation, Amazon ElastiCache immediately begins deleting the cache cluster; you cannot cancel or revert this operation.

This operation cannot be used to delete a cache cluster that is the last read replica of a replication group or node group (shard) that has Multi-AZ mode enabled or a cache cluster from a Redis (cluster mode enabled) replication group.

Due to current limitations on Redis (cluster mode disabled), this operation or parameter is not supported on Redis (cluster mode enabled) replication groups.

", "DeleteCacheParameterGroup": "

Deletes the specified cache parameter group. You cannot delete a cache parameter group if it is associated with any cache clusters.

", @@ -127,7 +127,7 @@ "CreateReplicationGroupMessage$AutoMinorVersionUpgrade": "

This parameter is currently disabled.

", "DeleteReplicationGroupMessage$RetainPrimaryCluster": "

If set to true, all of the read replicas are deleted, but the primary node is retained.

", "DescribeCacheClustersMessage$ShowCacheNodeInfo": "

An optional flag that can be included in the DescribeCacheCluster request to retrieve information about the individual cache nodes.

", - "DescribeSnapshotsMessage$ShowNodeGroupConfig": "

A boolean value which if true, the node group (shard) configuration is included in the snapshot description.

", + "DescribeSnapshotsMessage$ShowNodeGroupConfig": "

A Boolean value which if true, the node group (shard) configuration is included in the snapshot description.

", "ModifyCacheClusterMessage$AutoMinorVersionUpgrade": "

This parameter is currently disabled.

", "ModifyReplicationGroupMessage$AutomaticFailoverEnabled": "

Determines whether a read replica is automatically promoted to read/write primary if the existing primary encounters a failure.

Valid values: true | false

ElastiCache Multi-AZ replication groups are not supported on:

  • Redis versions earlier than 2.8.6.

  • Redis (cluster mode disabled):T1 and T2 cache node types.

    Redis (cluster mode enabled): T1 node types.

", "ModifyReplicationGroupMessage$AutoMinorVersionUpgrade": "

This parameter is currently disabled.

" @@ -656,7 +656,7 @@ "CreateCacheClusterMessage$NumCacheNodes": "

The initial number of cache nodes that the cache cluster has.

For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.

If you need more than 20 nodes for your Memcached cluster, please fill out the ElastiCache Limit Increase Request form at http://aws.amazon.com/contact-us/elasticache-node-limit-request/.

", "CreateCacheClusterMessage$Port": "

The port number on which each of the cache nodes accepts connections.

", "CreateCacheClusterMessage$SnapshotRetentionLimit": "

The number of days for which ElastiCache retains automatic snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot taken today is retained for 5 days before being deleted.

This parameter is only valid if the Engine parameter is redis.

Default: 0 (i.e., automatic backups are disabled for this cache cluster).

", - "CreateReplicationGroupMessage$NumCacheClusters": "

The number of clusters this replication group initially has.

This parameter is not used if there is more than one node group (shard). You should use ReplicasPerNodeGroup instead.

If Multi-AZ is enabled, the value of this parameter must be at least 2.

The maximum permitted value for NumCacheClusters is 6 (primary plus 5 replicas). If you need to exceed this limit, fill out the ElastiCache Limit Increase Request form at http://aws.amazon.com/contact-us/elasticache-node-limit-request/.

", + "CreateReplicationGroupMessage$NumCacheClusters": "

The number of clusters this replication group initially has.

This parameter is not used if there is more than one node group (shard). You should use ReplicasPerNodeGroup instead.

If Multi-AZ is enabled, the value of this parameter must be at least 2.

The maximum permitted value for NumCacheClusters is 6 (primary plus 5 replicas).

", "CreateReplicationGroupMessage$NumNodeGroups": "

An optional parameter that specifies the number of node groups (shards) for this Redis (cluster mode enabled) replication group. For Redis (cluster mode disabled) either omit this parameter or set it to 1.

Default: 1

", "CreateReplicationGroupMessage$ReplicasPerNodeGroup": "

An optional parameter that specifies the number of replica nodes in each node group (shard). Valid values are 0 to 5.

", "CreateReplicationGroupMessage$Port": "

The port number on which each member of the replication group accepts connections.

", @@ -789,7 +789,7 @@ } }, "NodeGroup": { - "base": "

Represents a collection of cache nodes in a replication group. One node in the node group is the read/write Primary node. All the other nodes are read-only Replica nodes.

", + "base": "

Represents a collection of cache nodes in a replication group. One node in the node group is the read/write primary node. All the other nodes are read-only Replica nodes.

", "refs": { "NodeGroupList$member": null } @@ -1199,6 +1199,7 @@ "CreateCacheClusterMessage$PreferredMaintenanceWindow": "

Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:

Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period.

Valid values for ddd are:

  • sun

  • mon

  • tue

  • wed

  • thu

  • fri

  • sat

Example: sun:23:00-mon:01:30

", "CreateCacheClusterMessage$NotificationTopicArn": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are sent.

The Amazon SNS topic owner must be the same as the cache cluster owner.

", "CreateCacheClusterMessage$SnapshotWindow": "

The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).

Example: 05:00-09:00

If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.

Note: This parameter is only valid if the Engine parameter is redis.

", + "CreateCacheClusterMessage$AuthToken": "

Reserved parameter. The password used to access a password protected server.

Password constraints:

  • Must be only printable ASCII characters.

  • Must be at least 16 characters and no more than 128 characters in length.

  • Cannot contain any of the following characters: '/', '\"', or \"@\".

For more information, see AUTH password at Redis.

", "CreateCacheParameterGroupMessage$CacheParameterGroupName": "

A user-specified name for the cache parameter group.

", "CreateCacheParameterGroupMessage$CacheParameterGroupFamily": "

The name of the cache parameter group family that the cache parameter group can be used with.

Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2

", "CreateCacheParameterGroupMessage$Description": "

A user-specified description for the cache parameter group.

", @@ -1218,6 +1219,7 @@ "CreateReplicationGroupMessage$PreferredMaintenanceWindow": "

Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:

Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period.

Valid values for ddd are:

  • sun

  • mon

  • tue

  • wed

  • thu

  • fri

  • sat

Example: sun:23:00-mon:01:30

", "CreateReplicationGroupMessage$NotificationTopicArn": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are sent.

The Amazon SNS topic owner must be the same as the cache cluster owner.

", "CreateReplicationGroupMessage$SnapshotWindow": "

The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).

Example: 05:00-09:00

If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.

This parameter is only valid if the Engine parameter is redis.

", + "CreateReplicationGroupMessage$AuthToken": "

Reserved parameter. The password used to access a password protected server.

Password constraints:

  • Must be only printable ASCII characters.

  • Must be at least 16 characters and no more than 128 characters in length.

  • Cannot contain any of the following characters: '/', '\"', or \"@\".

For more information, see AUTH password at Redis.

", "CreateSnapshotMessage$ReplicationGroupId": "

The identifier of an existing replication group. The snapshot is created from this replication group.

", "CreateSnapshotMessage$CacheClusterId": "

The identifier of an existing cache cluster. The snapshot is created from this cache cluster.

", "CreateSnapshotMessage$SnapshotName": "

A name for the snapshot being created.

", @@ -1339,7 +1341,7 @@ "RemoveTagsFromResourceMessage$ResourceName": "

The Amazon Resource Name (ARN) of the resource from which you want the tags removed, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster or arn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot.

For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

", "ReplicationGroup$ReplicationGroupId": "

The identifier for the replication group.

", "ReplicationGroup$Description": "

The description of the replication group.

", - "ReplicationGroup$Status": "

The current state of this replication group - creating, available, etc.

", + "ReplicationGroup$Status": "

The current state of this replication group - creating, available, modifying, deleting, create-failed, snapshotting.

", "ReplicationGroup$SnapshottingClusterId": "

The cache cluster ID that is used as the daily snapshot source for the replication group.

", "ReplicationGroup$SnapshotWindow": "

The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).

Example: 05:00-09:00

If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.

Note: This parameter is only valid if the Engine parameter is redis.

", "ReplicationGroupMessage$Marker": "

Provides an identifier to allow retrieval of paginated results.

", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/examples-1.json index 0ea7e3b0b..2b5cef999 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/examples-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/examples-1.json @@ -1,5 +1,2968 @@ { "version": "1.0", "examples": { + "AddTagsToResource": [ + { + "input": { + "ResourceName": "arn:aws:elasticache:us-east-1:1234567890:cluster:my-mem-cluster", + "Tags": [ + { + "Key": "APIVersion", + "Value": "20150202" + }, + { + "Key": "Service", + "Value": "ElastiCache" + } + ] + }, + "output": { + "TagList": [ + { + "Key": "APIVersion", + "Value": "20150202" + }, + { + "Key": "Service", + "Value": "ElastiCache" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Adds up to 10 tags, key/value pairs, to a cluster or snapshot resource.", + "id": "addtagstoresource-1482430264385", + "title": "AddTagsToResource" + } + ], + "AuthorizeCacheSecurityGroupIngress": [ + { + "input": { + "CacheSecurityGroupName": "my-sec-grp", + "EC2SecurityGroupName": "my-ec2-sec-grp", + "EC2SecurityGroupOwnerId": "1234567890" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Allows network ingress to a cache security group. Applications using ElastiCache must be running on Amazon EC2. Amazon EC2 security groups are used as the authorization mechanism.", + "id": "authorizecachecachesecuritygroupingress-1483046446206", + "title": "AuthorizeCacheCacheSecurityGroupIngress" + } + ], + "CopySnapshot": [ + { + "input": { + "SourceSnapshotName": "my-snapshot", + "TargetBucket": "", + "TargetSnapshotName": "my-snapshot-copy" + }, + "output": { + "AutoMinorVersionUpgrade": true, + "CacheClusterCreateTime": "2016-12-21T22:24:04.955Z", + "CacheClusterId": "my-redis4", + "CacheNodeType": "cache.m3.large", + "CacheParameterGroupName": "default.redis3.2", + "CacheSubnetGroupName": "default", + "Engine": "redis", + "EngineVersion": "3.2.4", + "NodeSnapshots": [ + { + "CacheNodeCreateTime": "2016-12-21T22:24:04.955Z", + "CacheNodeId": "0001", + "CacheSize": "3 MB", + "SnapshotCreateTime": "2016-12-28T07:00:52Z" + } + ], + "NumCacheNodes": 1, + "Port": 6379, + "PreferredAvailabilityZone": "us-east-1c", + "PreferredMaintenanceWindow": "tue:09:30-tue:10:30", + "SnapshotName": "my-snapshot-copy", + "SnapshotRetentionLimit": 7, + "SnapshotSource": "manual", + "SnapshotStatus": "creating", + "SnapshotWindow": "07:00-08:00", + "VpcId": "vpc-3820329f3" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Copies a snapshot to a specified name.", + "id": "copysnapshot-1482961393820", + "title": "CopySnapshot" + } + ], + "CreateCacheCluster": [ + { + "input": { + "AZMode": "cross-az", + "CacheClusterId": "my-memcached-cluster", + "CacheNodeType": "cache.r3.large", + "CacheSubnetGroupName": "default", + "Engine": "memcached", + "EngineVersion": "1.4.24", + "NumCacheNodes": 2, + "Port": 11211 + }, + "output": { + "AutoMinorVersionUpgrade": true, + "CacheClusterId": "my-memcached-cluster", + "CacheClusterStatus": "creating", + "CacheNodeType": "cache.r3.large", + "CacheParameterGroup": { + "CacheNodeIdsToReboot": [ + + ], + "CacheParameterGroupName": "default.memcached1.4", + "ParameterApplyStatus": "in-sync" + }, + "CacheSecurityGroups": [ + + ], + "CacheSubnetGroupName": "default", + "ClientDownloadLandingPage": "https://console.aws.amazon.com/elasticache/home#client-download:", + "Engine": "memcached", + "EngineVersion": "1.4.24", + "NumCacheNodes": 2, + "PendingModifiedValues": { + }, + "PreferredAvailabilityZone": "Multiple", + "PreferredMaintenanceWindow": "wed:09:00-wed:10:00" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Creates a Memcached cluster with 2 nodes. ", + "id": "createcachecluster-1474994727381", + "title": "CreateCacheCluster" + }, + { + "input": { + "AutoMinorVersionUpgrade": true, + "CacheClusterId": "my-redis", + "CacheNodeType": "cache.r3.larage", + "CacheSubnetGroupName": "default", + "Engine": "redis", + "EngineVersion": "3.2.4", + "NumCacheNodes": 1, + "Port": 6379, + "PreferredAvailabilityZone": "us-east-1c", + "SnapshotRetentionLimit": 7 + }, + "output": { + "AutoMinorVersionUpgrade": true, + "CacheClusterId": "my-redis", + "CacheClusterStatus": "creating", + "CacheNodeType": "cache.m3.large", + "CacheParameterGroup": { + "CacheNodeIdsToReboot": [ + + ], + "CacheParameterGroupName": "default.redis3.2", + "ParameterApplyStatus": "in-sync" + }, + "CacheSecurityGroups": [ + + ], + "CacheSubnetGroupName": "default", + "ClientDownloadLandingPage": "https: //console.aws.amazon.com/elasticache/home#client-download: ", + "Engine": "redis", + "EngineVersion": "3.2.4", + "NumCacheNodes": 1, + "PendingModifiedValues": { + }, + "PreferredAvailabilityZone": "us-east-1c", + "PreferredMaintenanceWindow": "fri: 05: 30-fri: 06: 30", + "SnapshotRetentionLimit": 7, + "SnapshotWindow": "10: 00-11: 00" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Creates a Redis cluster with 1 node. ", + "id": "createcachecluster-1474994727381", + "title": "CreateCacheCluster" + } + ], + "CreateCacheParameterGroup": [ + { + "input": { + "CacheParameterGroupFamily": "redis2.8", + "CacheParameterGroupName": "custom-redis2-8", + "Description": "Redis 2.8 parameter group that limits maxmemory to half of available memory." + }, + "output": { + "CacheParameterGroupFamily": "redis2.8", + "CacheParameterGroupName": "custom-redis2-8", + "Description": "Redis 2.8 parame3ter group that limits maxmemory to half of available memory." + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Creates the Amazon ElastiCache parameter group custom-redis2-8.", + "id": "createcacheparametergroup-1474997699362", + "title": "CreateCacheParameterGroup" + } + ], + "CreateCacheSecurityGroup": [ + { + "input": { + "CacheSecurityGroupName": "my-cache-sec-grp", + "Description": "Example ElastiCache security group." + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Creates an ElastiCache security group. ElastiCache security groups are only for clusters not running in an AWS VPC.", + "id": "createcachesecuritygroup-1483041506604", + "title": "CreateCacheSecurityGroup" + } + ], + "CreateCacheSubnetGroup": [ + { + "input": { + "CacheSubnetGroupDescription": "Sample subnet group", + "CacheSubnetGroupName": "my-sn-grp2", + "SubnetIds": [ + "subnet-6f28c982", + "subnet-bcd382f3", + "subnet-845b3e7c0" + ] + }, + "output": { + "CacheSubnetGroupDescription": "My subnet group.", + "CacheSubnetGroupName": "my-sn-grp", + "Subnets": [ + { + "SubnetAvailabilityZone": { + "Name": "us-east-1a" + }, + "SubnetIdentifier": "subnet-6f28c982" + }, + { + "SubnetAvailabilityZone": { + "Name": "us-east-1c" + }, + "SubnetIdentifier": "subnet-bcd382f3" + }, + { + "SubnetAvailabilityZone": { + "Name": "us-east-1b" + }, + "SubnetIdentifier": "subnet-845b3e7c0" + } + ], + "VpcId": "vpc-91280df6" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Creates a new cache subnet group.", + "id": "createcachesubnet-1483042274558", + "title": "CreateCacheSubnet" + } + ], + "CreateReplicationGroup": [ + { + "input": { + "AutomaticFailoverEnabled": true, + "CacheNodeType": "cache.m3.medium", + "Engine": "redis", + "EngineVersion": "2.8.24", + "NumCacheClusters": 3, + "ReplicationGroupDescription": "A Redis replication group.", + "ReplicationGroupId": "my-redis-rg", + "SnapshotRetentionLimit": 30 + }, + "output": { + "AutomaticFailover": "enabling", + "Description": "A Redis replication group.", + "MemberClusters": [ + "my-redis-rg-001", + "my-redis-rg-002", + "my-redis-rg-003" + ], + "PendingModifiedValues": { + }, + "ReplicationGroupId": "my-redis-rg", + "SnapshottingClusterId": "my-redis-rg-002", + "Status": "creating" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Creates a Redis replication group with 3 nodes.", + "id": "createcachereplicationgroup-1474998730655", + "title": "CreateCacheReplicationGroup" + } + ], + "CreateSnapshot": [ + { + "input": { + "CacheClusterId": "my-redis", + "SnapshotName": "snapshot-20161221" + }, + "output": { + "AutoMinorVersionUpgrade": true, + "CacheClusterCreateTime": "2016-12-21T22:27:12.543Z", + "CacheClusterId": "my-redis", + "CacheNodeType": "cache.m3.large", + "CacheParameterGroupName": "default.redis3.2", + "CacheSubnetGroupName": "default", + "Engine": "redis", + "EngineVersion": "3.2.4", + "NodeSnapshots": [ + { + "CacheNodeCreateTime": "2016-12-21T22:27:12.543Z", + "CacheNodeId": "0001", + "CacheSize": "" + } + ], + "NumCacheNodes": 1, + "Port": 6379, + "PreferredAvailabilityZone": "us-east-1c", + "PreferredMaintenanceWindow": "fri:05:30-fri:06:30", + "SnapshotName": "snapshot-20161221", + "SnapshotRetentionLimit": 7, + "SnapshotSource": "manual", + "SnapshotStatus": "creating", + "SnapshotWindow": "10:00-11:00", + "VpcId": "vpc-91280df6" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Creates a Redis snapshot.", + "id": "createsnapshot-1474999681024", + "title": "CreateSnapshot" + } + ], + "DeleteCacheCluster": [ + { + "input": { + "CacheClusterId": "my-memcached" + }, + "output": { + "AutoMinorVersionUpgrade": true, + "CacheClusterCreateTime": "2016-12-22T16:05:17.314Z", + "CacheClusterId": "my-memcached", + "CacheClusterStatus": "deleting", + "CacheNodeType": "cache.r3.large", + "CacheParameterGroup": { + "CacheNodeIdsToReboot": [ + + ], + "CacheParameterGroupName": "default.memcached1.4", + "ParameterApplyStatus": "in-sync" + }, + "CacheSecurityGroups": [ + + ], + "CacheSubnetGroupName": "default", + "ClientDownloadLandingPage": "https://console.aws.amazon.com/elasticache/home#client-download:", + "ConfigurationEndpoint": { + "Address": "my-memcached2.ameaqx.cfg.use1.cache.amazonaws.com", + "Port": 11211 + }, + "Engine": "memcached", + "EngineVersion": "1.4.24", + "NumCacheNodes": 2, + "PendingModifiedValues": { + }, + "PreferredAvailabilityZone": "Multiple", + "PreferredMaintenanceWindow": "tue:07:30-tue:08:30" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Deletes an Amazon ElastiCache cluster.", + "id": "deletecachecluster-1475010605291", + "title": "DeleteCacheCluster" + } + ], + "DeleteCacheParameterGroup": [ + { + "input": { + "CacheParameterGroupName": "custom-mem1-4" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Deletes the Amazon ElastiCache parameter group custom-mem1-4.", + "id": "deletecacheparametergroup-1475010933957", + "title": "DeleteCacheParameterGroup" + } + ], + "DeleteCacheSecurityGroup": [ + { + "input": { + "CacheSecurityGroupName": "my-sec-group" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Deletes a cache security group.", + "id": "deletecachesecuritygroup-1483046967507", + "title": "DeleteCacheSecurityGroup" + } + ], + "DeleteCacheSubnetGroup": [ + { + "input": { + "CacheSubnetGroupName": "my-subnet-group" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Deletes the Amazon ElastiCache subnet group my-subnet-group.", + "id": "deletecachesubnetgroup-1475011431325", + "title": "DeleteCacheSubnetGroup" + } + ], + "DeleteReplicationGroup": [ + { + "input": { + "ReplicationGroupId": "my-redis-rg", + "RetainPrimaryCluster": false + }, + "output": { + "AutomaticFailover": "disabled", + "Description": "simple redis cluster", + "PendingModifiedValues": { + }, + "ReplicationGroupId": "my-redis-rg", + "Status": "deleting" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Deletes the Amazon ElastiCache replication group my-redis-rg.", + "id": "deletereplicationgroup-1475011641804", + "title": "DeleteReplicationGroup" + } + ], + "DeleteSnapshot": [ + { + "input": { + "SnapshotName": "snapshot-20161212" + }, + "output": { + "AutoMinorVersionUpgrade": true, + "CacheClusterCreateTime": "2016-12-21T22:27:12.543Z", + "CacheClusterId": "my-redis5", + "CacheNodeType": "cache.m3.large", + "CacheParameterGroupName": "default.redis3.2", + "CacheSubnetGroupName": "default", + "Engine": "redis", + "EngineVersion": "3.2.4", + "NodeSnapshots": [ + { + "CacheNodeCreateTime": "2016-12-21T22:27:12.543Z", + "CacheNodeId": "0001", + "CacheSize": "3 MB", + "SnapshotCreateTime": "2016-12-21T22:30:26Z" + } + ], + "NumCacheNodes": 1, + "Port": 6379, + "PreferredAvailabilityZone": "us-east-1c", + "PreferredMaintenanceWindow": "fri:05:30-fri:06:30", + "SnapshotName": "snapshot-20161212", + "SnapshotRetentionLimit": 7, + "SnapshotSource": "manual", + "SnapshotStatus": "deleting", + "SnapshotWindow": "10:00-11:00", + "VpcId": "vpc-91280df6" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Deletes the Redis snapshot snapshot-20160822.", + "id": "deletesnapshot-1475011945779", + "title": "DeleteSnapshot" + } + ], + "DescribeCacheClusters": [ + { + "input": { + "CacheClusterId": "my-mem-cluster" + }, + "output": { + "CacheClusters": [ + { + "AutoMinorVersionUpgrade": true, + "CacheClusterCreateTime": "2016-12-21T21:59:43.794Z", + "CacheClusterId": "my-mem-cluster", + "CacheClusterStatus": "available", + "CacheNodeType": "cache.t2.medium", + "CacheParameterGroup": { + "CacheNodeIdsToReboot": [ + + ], + "CacheParameterGroupName": "default.memcached1.4", + "ParameterApplyStatus": "in-sync" + }, + "CacheSecurityGroups": [ + + ], + "CacheSubnetGroupName": "default", + "ClientDownloadLandingPage": "https://console.aws.amazon.com/elasticache/home#client-download:", + "ConfigurationEndpoint": { + "Address": "my-mem-cluster.abcdef.cfg.use1.cache.amazonaws.com", + "Port": 11211 + }, + "Engine": "memcached", + "EngineVersion": "1.4.24", + "NumCacheNodes": 2, + "PendingModifiedValues": { + }, + "PreferredAvailabilityZone": "Multiple", + "PreferredMaintenanceWindow": "wed:06:00-wed:07:00" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists the details for up to 50 cache clusters.", + "id": "describecacheclusters-1475012269754", + "title": "DescribeCacheClusters" + }, + { + "input": { + "CacheClusterId": "my-mem-cluster", + "ShowCacheNodeInfo": true + }, + "output": { + "CacheClusters": [ + { + "AutoMinorVersionUpgrade": true, + "CacheClusterCreateTime": "2016-12-21T21:59:43.794Z", + "CacheClusterId": "my-mem-cluster", + "CacheClusterStatus": "available", + "CacheNodeType": "cache.t2.medium", + "CacheNodes": [ + { + "CacheNodeCreateTime": "2016-12-21T21:59:43.794Z", + "CacheNodeId": "0001", + "CacheNodeStatus": "available", + "CustomerAvailabilityZone": "us-east-1b", + "Endpoint": { + "Address": "my-mem-cluster.ameaqx.0001.use1.cache.amazonaws.com", + "Port": 11211 + }, + "ParameterGroupStatus": "in-sync" + }, + { + "CacheNodeCreateTime": "2016-12-21T21:59:43.794Z", + "CacheNodeId": "0002", + "CacheNodeStatus": "available", + "CustomerAvailabilityZone": "us-east-1a", + "Endpoint": { + "Address": "my-mem-cluster.ameaqx.0002.use1.cache.amazonaws.com", + "Port": 11211 + }, + "ParameterGroupStatus": "in-sync" + } + ], + "CacheParameterGroup": { + "CacheNodeIdsToReboot": [ + + ], + "CacheParameterGroupName": "default.memcached1.4", + "ParameterApplyStatus": "in-sync" + }, + "CacheSecurityGroups": [ + + ], + "CacheSubnetGroupName": "default", + "ClientDownloadLandingPage": "https://console.aws.amazon.com/elasticache/home#client-download:", + "ConfigurationEndpoint": { + "Address": "my-mem-cluster.ameaqx.cfg.use1.cache.amazonaws.com", + "Port": 11211 + }, + "Engine": "memcached", + "EngineVersion": "1.4.24", + "NumCacheNodes": 2, + "PendingModifiedValues": { + }, + "PreferredAvailabilityZone": "Multiple", + "PreferredMaintenanceWindow": "wed:06:00-wed:07:00" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists the details for the cache cluster my-mem-cluster.", + "id": "describecacheclusters-1475012269754", + "title": "DescribeCacheClusters" + } + ], + "DescribeCacheEngineVersions": [ + { + "input": { + }, + "output": { + "CacheEngineVersions": [ + { + "CacheEngineDescription": "memcached", + "CacheEngineVersionDescription": "memcached version 1.4.14", + "CacheParameterGroupFamily": "memcached1.4", + "Engine": "memcached", + "EngineVersion": "1.4.14" + }, + { + "CacheEngineDescription": "memcached", + "CacheEngineVersionDescription": "memcached version 1.4.24", + "CacheParameterGroupFamily": "memcached1.4", + "Engine": "memcached", + "EngineVersion": "1.4.24" + }, + { + "CacheEngineDescription": "memcached", + "CacheEngineVersionDescription": "memcached version 1.4.33", + "CacheParameterGroupFamily": "memcached1.4", + "Engine": "memcached", + "EngineVersion": "1.4.33" + }, + { + "CacheEngineDescription": "memcached", + "CacheEngineVersionDescription": "memcached version 1.4.5", + "CacheParameterGroupFamily": "memcached1.4", + "Engine": "memcached", + "EngineVersion": "1.4.5" + }, + { + "CacheEngineDescription": "Redis", + "CacheEngineVersionDescription": "redis version 2.6.13", + "CacheParameterGroupFamily": "redis2.6", + "Engine": "redis", + "EngineVersion": "2.6.13" + }, + { + "CacheEngineDescription": "Redis", + "CacheEngineVersionDescription": "redis version 2.8.19", + "CacheParameterGroupFamily": "redis2.8", + "Engine": "redis", + "EngineVersion": "2.8.19" + }, + { + "CacheEngineDescription": "Redis", + "CacheEngineVersionDescription": "redis version 2.8.21", + "CacheParameterGroupFamily": "redis2.8", + "Engine": "redis", + "EngineVersion": "2.8.21" + }, + { + "CacheEngineDescription": "Redis", + "CacheEngineVersionDescription": "redis version 2.8.22 R5", + "CacheParameterGroupFamily": "redis2.8", + "Engine": "redis", + "EngineVersion": "2.8.22" + }, + { + "CacheEngineDescription": "Redis", + "CacheEngineVersionDescription": "redis version 2.8.23 R4", + "CacheParameterGroupFamily": "redis2.8", + "Engine": "redis", + "EngineVersion": "2.8.23" + }, + { + "CacheEngineDescription": "Redis", + "CacheEngineVersionDescription": "redis version 2.8.24 R3", + "CacheParameterGroupFamily": "redis2.8", + "Engine": "redis", + "EngineVersion": "2.8.24" + }, + { + "CacheEngineDescription": "Redis", + "CacheEngineVersionDescription": "redis version 2.8.6", + "CacheParameterGroupFamily": "redis2.8", + "Engine": "redis", + "EngineVersion": "2.8.6" + }, + { + "CacheEngineDescription": "Redis", + "CacheEngineVersionDescription": "redis version 3.2.4", + "CacheParameterGroupFamily": "redis3.2", + "Engine": "redis", + "EngineVersion": "3.2.4" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists the details for up to 25 Memcached and Redis cache engine versions.", + "id": "describecacheengineversions-1475012638790", + "title": "DescribeCacheEngineVersions" + }, + { + "input": { + "DefaultOnly": false, + "Engine": "redis", + "MaxRecords": 50 + }, + "output": { + "CacheEngineVersions": [ + { + "CacheEngineDescription": "Redis", + "CacheEngineVersionDescription": "redis version 2.6.13", + "CacheParameterGroupFamily": "redis2.6", + "Engine": "redis", + "EngineVersion": "2.6.13" + }, + { + "CacheEngineDescription": "Redis", + "CacheEngineVersionDescription": "redis version 2.8.19", + "CacheParameterGroupFamily": "redis2.8", + "Engine": "redis", + "EngineVersion": "2.8.19" + }, + { + "CacheEngineDescription": "Redis", + "CacheEngineVersionDescription": "redis version 2.8.21", + "CacheParameterGroupFamily": "redis2.8", + "Engine": "redis", + "EngineVersion": "2.8.21" + }, + { + "CacheEngineDescription": "Redis", + "CacheEngineVersionDescription": "redis version 2.8.22 R5", + "CacheParameterGroupFamily": "redis2.8", + "Engine": "redis", + "EngineVersion": "2.8.22" + }, + { + "CacheEngineDescription": "Redis", + "CacheEngineVersionDescription": "redis version 2.8.23 R4", + "CacheParameterGroupFamily": "redis2.8", + "Engine": "redis", + "EngineVersion": "2.8.23" + }, + { + "CacheEngineDescription": "Redis", + "CacheEngineVersionDescription": "redis version 2.8.24 R3", + "CacheParameterGroupFamily": "redis2.8", + "Engine": "redis", + "EngineVersion": "2.8.24" + }, + { + "CacheEngineDescription": "Redis", + "CacheEngineVersionDescription": "redis version 2.8.6", + "CacheParameterGroupFamily": "redis2.8", + "Engine": "redis", + "EngineVersion": "2.8.6" + }, + { + "CacheEngineDescription": "Redis", + "CacheEngineVersionDescription": "redis version 3.2.4", + "CacheParameterGroupFamily": "redis3.2", + "Engine": "redis", + "EngineVersion": "3.2.4" + } + ], + "Marker": "" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists the details for up to 50 Redis cache engine versions.", + "id": "describecacheengineversions-1475012638790", + "title": "DescribeCacheEngineVersions" + } + ], + "DescribeCacheParameterGroups": [ + { + "input": { + "CacheParameterGroupName": "custom-mem1-4" + }, + "output": { + "CacheParameterGroups": [ + { + "CacheParameterGroupFamily": "memcached1.4", + "CacheParameterGroupName": "custom-mem1-4", + "Description": "Custom memcache param group" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns a list of cache parameter group descriptions. If a cache parameter group name is specified, the list contains only the descriptions for that group.", + "id": "describecacheparametergroups-1483045457557", + "title": "DescribeCacheParameterGroups" + } + ], + "DescribeCacheParameters": [ + { + "input": { + "CacheParameterGroupName": "custom-redis2-8", + "MaxRecords": 100, + "Source": "user" + }, + "output": { + "Marker": "", + "Parameters": [ + { + "AllowedValues": "yes,no", + "ChangeType": "requires-reboot", + "DataType": "string", + "Description": "Apply rehashing or not.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "activerehashing", + "ParameterValue": "yes", + "Source": "system" + }, + { + "AllowedValues": "always,everysec,no", + "ChangeType": "immediate", + "DataType": "string", + "Description": "fsync policy for AOF persistence", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "appendfsync", + "ParameterValue": "everysec", + "Source": "system" + }, + { + "AllowedValues": "yes,no", + "ChangeType": "immediate", + "DataType": "string", + "Description": "Enable Redis persistence.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "appendonly", + "ParameterValue": "no", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Normal client output buffer hard limit in bytes.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "client-output-buffer-limit-normal-hard-limit", + "ParameterValue": "0", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Normal client output buffer soft limit in bytes.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "client-output-buffer-limit-normal-soft-limit", + "ParameterValue": "0", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Normal client output buffer soft limit in seconds.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "client-output-buffer-limit-normal-soft-seconds", + "ParameterValue": "0", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Pubsub client output buffer hard limit in bytes.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "client-output-buffer-limit-pubsub-hard-limit", + "ParameterValue": "33554432", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Pubsub client output buffer soft limit in bytes.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "client-output-buffer-limit-pubsub-soft-limit", + "ParameterValue": "8388608", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Pubsub client output buffer soft limit in seconds.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "client-output-buffer-limit-pubsub-soft-seconds", + "ParameterValue": "60", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Slave client output buffer soft limit in seconds.", + "IsModifiable": false, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "client-output-buffer-limit-slave-soft-seconds", + "ParameterValue": "60", + "Source": "system" + }, + { + "AllowedValues": "yes,no", + "ChangeType": "immediate", + "DataType": "string", + "Description": "If enabled, clients who attempt to write to a read-only slave will be disconnected. Applicable to 2.8.23 and higher.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.23", + "ParameterName": "close-on-slave-write", + "ParameterValue": "yes", + "Source": "system" + }, + { + "AllowedValues": "1-1200000", + "ChangeType": "requires-reboot", + "DataType": "integer", + "Description": "Set the number of databases.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "databases", + "ParameterValue": "16", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "The maximum number of hash entries in order for the dataset to be compressed.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "hash-max-ziplist-entries", + "ParameterValue": "512", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "The threshold of biggest hash entries in order for the dataset to be compressed.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "hash-max-ziplist-value", + "ParameterValue": "64", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "The maximum number of list entries in order for the dataset to be compressed.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "list-max-ziplist-entries", + "ParameterValue": "512", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "The threshold of biggest list entries in order for the dataset to be compressed.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "list-max-ziplist-value", + "ParameterValue": "64", + "Source": "system" + }, + { + "AllowedValues": "5000", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Max execution time of a Lua script in milliseconds. 0 for unlimited execution without warnings.", + "IsModifiable": false, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "lua-time-limit", + "ParameterValue": "5000", + "Source": "system" + }, + { + "AllowedValues": "1-65000", + "ChangeType": "requires-reboot", + "DataType": "integer", + "Description": "The maximum number of Redis clients.", + "IsModifiable": false, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "maxclients", + "ParameterValue": "65000", + "Source": "system" + }, + { + "AllowedValues": "volatile-lru,allkeys-lru,volatile-random,allkeys-random,volatile-ttl,noeviction", + "ChangeType": "immediate", + "DataType": "string", + "Description": "Max memory policy.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "maxmemory-policy", + "ParameterValue": "volatile-lru", + "Source": "system" + }, + { + "AllowedValues": "1-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Max memory samples.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "maxmemory-samples", + "ParameterValue": "3", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Maximum number of seconds within which the master must receive a ping from a slave to take writes. Use this parameter together with min-slaves-to-write to regulate when the master stops accepting writes. Setting this value to 0 means the master always takes writes.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "min-slaves-max-lag", + "ParameterValue": "10", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Number of slaves that must be connected in order for master to take writes. Use this parameter together with min-slaves-max-lag to regulate when the master stops accepting writes. Setting this to 0 means the master always takes writes.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "min-slaves-to-write", + "ParameterValue": "0", + "Source": "system" + }, + { + "ChangeType": "immediate", + "DataType": "string", + "Description": "The keyspace events for Redis to notify Pub/Sub clients about. By default all notifications are disabled", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "notify-keyspace-events", + "Source": "system" + }, + { + "AllowedValues": "16384-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "The replication backlog size in bytes for PSYNC. This is the size of the buffer which accumulates slave data when slave is disconnected for some time, so that when slave reconnects again, only transfer the portion of data which the slave missed. Minimum value is 16K.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "repl-backlog-size", + "ParameterValue": "1048576", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "The amount of time in seconds after the master no longer have any slaves connected for the master to free the replication backlog. A value of 0 means to never release the backlog.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "repl-backlog-ttl", + "ParameterValue": "3600", + "Source": "system" + }, + { + "AllowedValues": "11-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "The timeout in seconds for bulk transfer I/O during sync and master timeout from the perspective of the slave, and slave timeout from the perspective of the master.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "repl-timeout", + "ParameterValue": "60", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "The amount of memory reserved for non-cache memory usage, in bytes. You may want to increase this parameter for nodes with read replicas, AOF enabled, etc, to reduce swap usage.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "reserved-memory", + "ParameterValue": "0", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "The limit in the size of the set in order for the dataset to be compressed.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "set-max-intset-entries", + "ParameterValue": "512", + "Source": "system" + }, + { + "AllowedValues": "yes,no", + "ChangeType": "immediate", + "DataType": "string", + "Description": "Configures if chaining of slaves is allowed", + "IsModifiable": false, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "slave-allow-chaining", + "ParameterValue": "no", + "Source": "system" + }, + { + "AllowedValues": "-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "The execution time, in microseconds, to exceed in order for the command to get logged. Note that a negative number disables the slow log, while a value of zero forces the logging of every command.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "slowlog-log-slower-than", + "ParameterValue": "10000", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "The length of the slow log. There is no limit to this length. Just be aware that it will consume memory. You can reclaim memory used by the slow log with SLOWLOG RESET.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "slowlog-max-len", + "ParameterValue": "128", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "If non-zero, send ACKs every given number of seconds.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "tcp-keepalive", + "ParameterValue": "0", + "Source": "system" + }, + { + "AllowedValues": "0,20-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Close connection if client is idle for a given number of seconds, or never if 0.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "timeout", + "ParameterValue": "0", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "The maximum number of sorted set entries in order for the dataset to be compressed.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "zset-max-ziplist-entries", + "ParameterValue": "128", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "The threshold of biggest sorted set entries in order for the dataset to be compressed.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "zset-max-ziplist-value", + "ParameterValue": "64", + "Source": "system" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists up to 100 user parameter values for the parameter group custom.redis2.8.", + "id": "describecacheparameters-1475013576900", + "title": "DescribeCacheParameters" + } + ], + "DescribeCacheSecurityGroups": [ + { + "input": { + "CacheSecurityGroupName": "my-sec-group" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns a list of cache security group descriptions. If a cache security group name is specified, the list contains only the description of that group.", + "id": "describecachesecuritygroups-1483047200801", + "title": "DescribeCacheSecurityGroups" + } + ], + "DescribeCacheSubnetGroups": [ + { + "input": { + "MaxRecords": 25 + }, + "output": { + "CacheSubnetGroups": [ + { + "CacheSubnetGroupDescription": "Default CacheSubnetGroup", + "CacheSubnetGroupName": "default", + "Subnets": [ + { + "SubnetAvailabilityZone": { + "Name": "us-east-1a" + }, + "SubnetIdentifier": "subnet-1a2b3c4d" + }, + { + "SubnetAvailabilityZone": { + "Name": "us-east-1c" + }, + "SubnetIdentifier": "subnet-a1b2c3d4" + }, + { + "SubnetAvailabilityZone": { + "Name": "us-east-1e" + }, + "SubnetIdentifier": "subnet-abcd1234" + }, + { + "SubnetAvailabilityZone": { + "Name": "us-east-1b" + }, + "SubnetIdentifier": "subnet-1234abcd" + } + ], + "VpcId": "vpc-91280df6" + } + ], + "Marker": "" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Describes up to 25 cache subnet groups.", + "id": "describecachesubnetgroups-1482439214064", + "title": "DescribeCacheSubnetGroups" + } + ], + "DescribeEngineDefaultParameters": [ + { + "input": { + "CacheParameterGroupFamily": "redis2.8", + "MaxRecords": 25 + }, + "output": { + "CacheNodeTypeSpecificParameters": [ + { + "AllowedValues": "0-", + "CacheNodeTypeSpecificValues": [ + { + "CacheNodeType": "cache.c1.xlarge", + "Value": "650117120" + }, + { + "CacheNodeType": "cache.m1.large", + "Value": "702545920" + }, + { + "CacheNodeType": "cache.m1.medium", + "Value": "309329920" + }, + { + "CacheNodeType": "cache.m1.small", + "Value": "94371840" + }, + { + "CacheNodeType": "cache.m1.xlarge", + "Value": "1488977920" + }, + { + "CacheNodeType": "cache.m2.2xlarge", + "Value": "3502243840" + }, + { + "CacheNodeType": "cache.m2.4xlarge", + "Value": "7088373760" + }, + { + "CacheNodeType": "cache.m2.xlarge", + "Value": "1709178880" + }, + { + "CacheNodeType": "cache.m3.2xlarge", + "Value": "2998927360" + }, + { + "CacheNodeType": "cache.m3.large", + "Value": "650117120" + }, + { + "CacheNodeType": "cache.m3.medium", + "Value": "309329920" + }, + { + "CacheNodeType": "cache.m3.xlarge", + "Value": "1426063360" + }, + { + "CacheNodeType": "cache.m4.10xlarge", + "Value": "16604761424" + }, + { + "CacheNodeType": "cache.m4.2xlarge", + "Value": "3188912636" + }, + { + "CacheNodeType": "cache.m4.4xlarge", + "Value": "6525729063" + }, + { + "CacheNodeType": "cache.m4.large", + "Value": "689259315" + }, + { + "CacheNodeType": "cache.m4.xlarge", + "Value": "1532850176" + }, + { + "CacheNodeType": "cache.r3.2xlarge", + "Value": "6081740800" + }, + { + "CacheNodeType": "cache.r3.4xlarge", + "Value": "12268339200" + }, + { + "CacheNodeType": "cache.r3.8xlarge", + "Value": "24536678400" + }, + { + "CacheNodeType": "cache.r3.large", + "Value": "1468006400" + }, + { + "CacheNodeType": "cache.r3.xlarge", + "Value": "3040870400" + }, + { + "CacheNodeType": "cache.t1.micro", + "Value": "14260633" + }, + { + "CacheNodeType": "cache.t2.medium", + "Value": "346134937" + }, + { + "CacheNodeType": "cache.t2.micro", + "Value": "58195968" + }, + { + "CacheNodeType": "cache.t2.small", + "Value": "166513868" + } + ], + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Slave client output buffer hard limit in bytes.", + "IsModifiable": false, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "client-output-buffer-limit-slave-hard-limit", + "Source": "system" + }, + { + "AllowedValues": "0-", + "CacheNodeTypeSpecificValues": [ + { + "CacheNodeType": "cache.c1.xlarge", + "Value": "650117120" + }, + { + "CacheNodeType": "cache.m1.large", + "Value": "702545920" + }, + { + "CacheNodeType": "cache.m1.medium", + "Value": "309329920" + }, + { + "CacheNodeType": "cache.m1.small", + "Value": "94371840" + }, + { + "CacheNodeType": "cache.m1.xlarge", + "Value": "1488977920" + }, + { + "CacheNodeType": "cache.m2.2xlarge", + "Value": "3502243840" + }, + { + "CacheNodeType": "cache.m2.4xlarge", + "Value": "7088373760" + }, + { + "CacheNodeType": "cache.m2.xlarge", + "Value": "1709178880" + }, + { + "CacheNodeType": "cache.m3.2xlarge", + "Value": "2998927360" + }, + { + "CacheNodeType": "cache.m3.large", + "Value": "650117120" + }, + { + "CacheNodeType": "cache.m3.medium", + "Value": "309329920" + }, + { + "CacheNodeType": "cache.m3.xlarge", + "Value": "1426063360" + }, + { + "CacheNodeType": "cache.m4.10xlarge", + "Value": "16604761424" + }, + { + "CacheNodeType": "cache.m4.2xlarge", + "Value": "3188912636" + }, + { + "CacheNodeType": "cache.m4.4xlarge", + "Value": "6525729063" + }, + { + "CacheNodeType": "cache.m4.large", + "Value": "689259315" + }, + { + "CacheNodeType": "cache.m4.xlarge", + "Value": "1532850176" + }, + { + "CacheNodeType": "cache.r3.2xlarge", + "Value": "6081740800" + }, + { + "CacheNodeType": "cache.r3.4xlarge", + "Value": "12268339200" + }, + { + "CacheNodeType": "cache.r3.8xlarge", + "Value": "24536678400" + }, + { + "CacheNodeType": "cache.r3.large", + "Value": "1468006400" + }, + { + "CacheNodeType": "cache.r3.xlarge", + "Value": "3040870400" + }, + { + "CacheNodeType": "cache.t1.micro", + "Value": "14260633" + }, + { + "CacheNodeType": "cache.t2.medium", + "Value": "346134937" + }, + { + "CacheNodeType": "cache.t2.micro", + "Value": "58195968" + }, + { + "CacheNodeType": "cache.t2.small", + "Value": "166513868" + } + ], + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Slave client output buffer soft limit in bytes.", + "IsModifiable": false, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "client-output-buffer-limit-slave-soft-limit", + "Source": "system" + }, + { + "AllowedValues": "0-", + "CacheNodeTypeSpecificValues": [ + { + "CacheNodeType": "cache.c1.xlarge", + "Value": "6501171200" + }, + { + "CacheNodeType": "cache.m1.large", + "Value": "7025459200" + }, + { + "CacheNodeType": "cache.m1.medium", + "Value": "3093299200" + }, + { + "CacheNodeType": "cache.m1.small", + "Value": "943718400" + }, + { + "CacheNodeType": "cache.m1.xlarge", + "Value": "14889779200" + }, + { + "CacheNodeType": "cache.m2.2xlarge", + "Value": "35022438400" + }, + { + "CacheNodeType": "cache.m2.4xlarge", + "Value": "70883737600" + }, + { + "CacheNodeType": "cache.m2.xlarge", + "Value": "17091788800" + }, + { + "CacheNodeType": "cache.m3.2xlarge", + "Value": "29989273600" + }, + { + "CacheNodeType": "cache.m3.large", + "Value": "6501171200" + }, + { + "CacheNodeType": "cache.m3.medium", + "Value": "2988441600" + }, + { + "CacheNodeType": "cache.m3.xlarge", + "Value": "14260633600" + }, + { + "CacheNodeType": "cache.m4.10xlarge", + "Value": "166047614239" + }, + { + "CacheNodeType": "cache.m4.2xlarge", + "Value": "31889126359" + }, + { + "CacheNodeType": "cache.m4.4xlarge", + "Value": "65257290629" + }, + { + "CacheNodeType": "cache.m4.large", + "Value": "6892593152" + }, + { + "CacheNodeType": "cache.m4.xlarge", + "Value": "15328501760" + }, + { + "CacheNodeType": "cache.r3.2xlarge", + "Value": "62495129600" + }, + { + "CacheNodeType": "cache.r3.4xlarge", + "Value": "126458265600" + }, + { + "CacheNodeType": "cache.r3.8xlarge", + "Value": "254384537600" + }, + { + "CacheNodeType": "cache.r3.large", + "Value": "14470348800" + }, + { + "CacheNodeType": "cache.r3.xlarge", + "Value": "30513561600" + }, + { + "CacheNodeType": "cache.t1.micro", + "Value": "142606336" + }, + { + "CacheNodeType": "cache.t2.medium", + "Value": "3461349376" + }, + { + "CacheNodeType": "cache.t2.micro", + "Value": "581959680" + }, + { + "CacheNodeType": "cache.t2.small", + "Value": "1665138688" + } + ], + "ChangeType": "immediate", + "DataType": "integer", + "Description": "The maximum configurable amount of memory to use to store items, in bytes.", + "IsModifiable": false, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "maxmemory", + "Source": "system" + } + ], + "CacheParameterGroupFamily": "redis2.8", + "Marker": "bWluLXNsYXZlcy10by13cml0ZQ==", + "Parameters": [ + { + "AllowedValues": "yes,no", + "ChangeType": "requires-reboot", + "DataType": "string", + "Description": "Apply rehashing or not.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "activerehashing", + "ParameterValue": "yes", + "Source": "system" + }, + { + "AllowedValues": "always,everysec,no", + "ChangeType": "immediate", + "DataType": "string", + "Description": "fsync policy for AOF persistence", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "appendfsync", + "ParameterValue": "everysec", + "Source": "system" + }, + { + "AllowedValues": "yes,no", + "ChangeType": "immediate", + "DataType": "string", + "Description": "Enable Redis persistence.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "appendonly", + "ParameterValue": "no", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Normal client output buffer hard limit in bytes.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "client-output-buffer-limit-normal-hard-limit", + "ParameterValue": "0", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Normal client output buffer soft limit in bytes.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "client-output-buffer-limit-normal-soft-limit", + "ParameterValue": "0", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Normal client output buffer soft limit in seconds.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "client-output-buffer-limit-normal-soft-seconds", + "ParameterValue": "0", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Pubsub client output buffer hard limit in bytes.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "client-output-buffer-limit-pubsub-hard-limit", + "ParameterValue": "33554432", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Pubsub client output buffer soft limit in bytes.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "client-output-buffer-limit-pubsub-soft-limit", + "ParameterValue": "8388608", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Pubsub client output buffer soft limit in seconds.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "client-output-buffer-limit-pubsub-soft-seconds", + "ParameterValue": "60", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Slave client output buffer soft limit in seconds.", + "IsModifiable": false, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "client-output-buffer-limit-slave-soft-seconds", + "ParameterValue": "60", + "Source": "system" + }, + { + "AllowedValues": "yes,no", + "ChangeType": "immediate", + "DataType": "string", + "Description": "If enabled, clients who attempt to write to a read-only slave will be disconnected. Applicable to 2.8.23 and higher.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.23", + "ParameterName": "close-on-slave-write", + "ParameterValue": "yes", + "Source": "system" + }, + { + "AllowedValues": "1-1200000", + "ChangeType": "requires-reboot", + "DataType": "integer", + "Description": "Set the number of databases.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "databases", + "ParameterValue": "16", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "The maximum number of hash entries in order for the dataset to be compressed.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "hash-max-ziplist-entries", + "ParameterValue": "512", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "The threshold of biggest hash entries in order for the dataset to be compressed.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "hash-max-ziplist-value", + "ParameterValue": "64", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "The maximum number of list entries in order for the dataset to be compressed.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "list-max-ziplist-entries", + "ParameterValue": "512", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "The threshold of biggest list entries in order for the dataset to be compressed.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "list-max-ziplist-value", + "ParameterValue": "64", + "Source": "system" + }, + { + "AllowedValues": "5000", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Max execution time of a Lua script in milliseconds. 0 for unlimited execution without warnings.", + "IsModifiable": false, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "lua-time-limit", + "ParameterValue": "5000", + "Source": "system" + }, + { + "AllowedValues": "1-65000", + "ChangeType": "requires-reboot", + "DataType": "integer", + "Description": "The maximum number of Redis clients.", + "IsModifiable": false, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "maxclients", + "ParameterValue": "65000", + "Source": "system" + }, + { + "AllowedValues": "volatile-lru,allkeys-lru,volatile-random,allkeys-random,volatile-ttl,noeviction", + "ChangeType": "immediate", + "DataType": "string", + "Description": "Max memory policy.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "maxmemory-policy", + "ParameterValue": "volatile-lru", + "Source": "system" + }, + { + "AllowedValues": "1-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Max memory samples.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "maxmemory-samples", + "ParameterValue": "3", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Maximum number of seconds within which the master must receive a ping from a slave to take writes. Use this parameter together with min-slaves-to-write to regulate when the master stops accepting writes. Setting this value to 0 means the master always takes writes.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "min-slaves-max-lag", + "ParameterValue": "10", + "Source": "system" + }, + { + "AllowedValues": "0-", + "ChangeType": "immediate", + "DataType": "integer", + "Description": "Number of slaves that must be connected in order for master to take writes. Use this parameter together with min-slaves-max-lag to regulate when the master stops accepting writes. Setting this to 0 means the master always takes writes.", + "IsModifiable": true, + "MinimumEngineVersion": "2.8.6", + "ParameterName": "min-slaves-to-write", + "ParameterValue": "0", + "Source": "system" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns the default engine and system parameter information for the specified cache engine.", + "id": "describeenginedefaultparameters-1481738057686", + "title": "DescribeEngineDefaultParameters" + } + ], + "DescribeEvents": [ + { + "input": { + "Duration": 360, + "SourceType": "cache-cluster" + }, + "output": { + "Events": [ + { + "Date": "2016-12-22T16:27:56.088Z", + "Message": "Added cache node 0001 in availability zone us-east-1e", + "SourceIdentifier": "redis-cluster", + "SourceType": "cache-cluster" + }, + { + "Date": "2016-12-22T16:27:56.078Z", + "Message": "Cache cluster created", + "SourceIdentifier": "redis-cluster", + "SourceType": "cache-cluster" + }, + { + "Date": "2016-12-22T16:05:17.326Z", + "Message": "Added cache node 0002 in availability zone us-east-1c", + "SourceIdentifier": "my-memcached2", + "SourceType": "cache-cluster" + }, + { + "Date": "2016-12-22T16:05:17.323Z", + "Message": "Added cache node 0001 in availability zone us-east-1e", + "SourceIdentifier": "my-memcached2", + "SourceType": "cache-cluster" + }, + { + "Date": "2016-12-22T16:05:17.314Z", + "Message": "Cache cluster created", + "SourceIdentifier": "my-memcached2", + "SourceType": "cache-cluster" + } + ], + "Marker": "" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Describes all the cache-cluster events for the past 120 minutes.", + "id": "describeevents-1481843894757", + "title": "DescribeEvents" + }, + { + "input": { + "StartTime": "2016-12-22T15:00:00.000Z" + }, + "output": { + "Events": [ + { + "Date": "2016-12-22T21:35:46.674Z", + "Message": "Snapshot succeeded for snapshot with ID 'cr-bkup' of replication group with ID 'clustered-redis'", + "SourceIdentifier": "clustered-redis-0001-001", + "SourceType": "cache-cluster" + }, + { + "Date": "2016-12-22T16:27:56.088Z", + "Message": "Added cache node 0001 in availability zone us-east-1e", + "SourceIdentifier": "redis-cluster", + "SourceType": "cache-cluster" + }, + { + "Date": "2016-12-22T16:27:56.078Z", + "Message": "Cache cluster created", + "SourceIdentifier": "redis-cluster", + "SourceType": "cache-cluster" + }, + { + "Date": "2016-12-22T16:05:17.326Z", + "Message": "Added cache node 0002 in availability zone us-east-1c", + "SourceIdentifier": "my-memcached2", + "SourceType": "cache-cluster" + }, + { + "Date": "2016-12-22T16:05:17.323Z", + "Message": "Added cache node 0001 in availability zone us-east-1e", + "SourceIdentifier": "my-memcached2", + "SourceType": "cache-cluster" + }, + { + "Date": "2016-12-22T16:05:17.314Z", + "Message": "Cache cluster created", + "SourceIdentifier": "my-memcached2", + "SourceType": "cache-cluster" + } + ], + "Marker": "" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Describes all the replication-group events from 3:00P to 5:00P on November 11, 2016.", + "id": "describeevents-1481843894757", + "title": "DescribeEvents" + } + ], + "DescribeReplicationGroups": [ + { + "input": { + }, + "output": { + "Marker": "", + "ReplicationGroups": [ + { + "AutomaticFailover": "enabled", + "Description": "Test cluster", + "MemberClusters": [ + "clustered-redis-0001-001", + "clustered-redis-0001-002", + "clustered-redis-0002-001", + "clustered-redis-0002-002" + ], + "NodeGroups": [ + { + "NodeGroupId": "0001", + "NodeGroupMembers": [ + { + "CacheClusterId": "clustered-redis-0001-001", + "CacheNodeId": "0001", + "PreferredAvailabilityZone": "us-east-1e" + }, + { + "CacheClusterId": "clustered-redis-0001-002", + "CacheNodeId": "0001", + "PreferredAvailabilityZone": "us-east-1c" + } + ], + "Status": "available" + }, + { + "NodeGroupId": "0002", + "NodeGroupMembers": [ + { + "CacheClusterId": "clustered-redis-0002-001", + "CacheNodeId": "0001", + "PreferredAvailabilityZone": "us-east-1c" + }, + { + "CacheClusterId": "clustered-redis-0002-002", + "CacheNodeId": "0001", + "PreferredAvailabilityZone": "us-east-1b" + } + ], + "Status": "available" + } + ], + "PendingModifiedValues": { + }, + "ReplicationGroupId": "clustered-redis", + "Status": "available" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns information about the replication group myreplgroup.", + "id": "describereplicationgroups-1481742639427", + "title": "DescribeReplicationGroups" + } + ], + "DescribeReservedCacheNodes": [ + { + "input": { + "MaxRecords": 25 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns information about reserved cache nodes for this account, or about a specified reserved cache node. If the account has no reserved cache nodes, the operation returns an empty list, as shown here.", + "id": "describereservedcachenodes-1481742348045", + "title": "DescribeReservedCacheNodes" + } + ], + "DescribeReservedCacheNodesOfferings": [ + { + "input": { + "MaxRecords": 20 + }, + "output": { + "Marker": "1ef01f5b-433f-94ff-a530-61a56bfc8e7a", + "ReservedCacheNodesOfferings": [ + { + "CacheNodeType": "cache.m1.small", + "Duration": 94608000, + "FixedPrice": 157.0, + "OfferingType": "Medium Utilization", + "ProductDescription": "memcached", + "RecurringCharges": [ + + ], + "ReservedCacheNodesOfferingId": "0167633d-37f6-4222-b872-b1f22eb79ba4", + "UsagePrice": 0.017 + }, + { + "CacheNodeType": "cache.m4.xlarge", + "Duration": 94608000, + "FixedPrice": 1248.0, + "OfferingType": "Heavy Utilization", + "ProductDescription": "redis", + "RecurringCharges": [ + { + "RecurringChargeAmount": 0.077, + "RecurringChargeFrequency": "Hourly" + } + ], + "ReservedCacheNodesOfferingId": "02c04e13-baca-4e71-9ceb-620eed94827d", + "UsagePrice": 0.0 + }, + { + "CacheNodeType": "cache.m2.4xlarge", + "Duration": 94608000, + "FixedPrice": 2381.0, + "OfferingType": "Medium Utilization", + "ProductDescription": "memcached", + "RecurringCharges": [ + + ], + "ReservedCacheNodesOfferingId": "02e1755e-76e8-48e3-8d82-820a5726a458", + "UsagePrice": 0.276 + }, + { + "CacheNodeType": "cache.m1.small", + "Duration": 94608000, + "FixedPrice": 188.0, + "OfferingType": "Heavy Utilization", + "ProductDescription": "redis", + "RecurringCharges": [ + { + "RecurringChargeAmount": 0.013, + "RecurringChargeFrequency": "Hourly" + } + ], + "ReservedCacheNodesOfferingId": "03315215-7b87-421a-a3dd-785021e4113f", + "UsagePrice": 0.0 + }, + { + "CacheNodeType": "cache.m4.10xlarge", + "Duration": 31536000, + "FixedPrice": 6158.0, + "OfferingType": "Heavy Utilization", + "ProductDescription": "redis", + "RecurringCharges": [ + { + "RecurringChargeAmount": 1.125, + "RecurringChargeFrequency": "Hourly" + } + ], + "ReservedCacheNodesOfferingId": "05ffbb44-2ace-4476-a2a5-8ec99f866fb3", + "UsagePrice": 0.0 + }, + { + "CacheNodeType": "cache.m1.small", + "Duration": 31536000, + "FixedPrice": 101.0, + "OfferingType": "Medium Utilization", + "ProductDescription": "redis", + "RecurringCharges": [ + + ], + "ReservedCacheNodesOfferingId": "065c71ae-4a4e-4f1e-bebf-37525f4c6cb2", + "UsagePrice": 0.023 + }, + { + "CacheNodeType": "cache.m1.medium", + "Duration": 94608000, + "FixedPrice": 314.0, + "OfferingType": "Medium Utilization", + "ProductDescription": "memcached", + "RecurringCharges": [ + + ], + "ReservedCacheNodesOfferingId": "06774b12-7f5e-48c1-907a-f286c63f327d", + "UsagePrice": 0.034 + }, + { + "CacheNodeType": "cache.m2.xlarge", + "Duration": 31536000, + "FixedPrice": 163.0, + "OfferingType": "Light Utilization", + "ProductDescription": "memcached", + "RecurringCharges": [ + + ], + "ReservedCacheNodesOfferingId": "0924ac6b-847f-4761-ba6b-4290b2adf719", + "UsagePrice": 0.137 + }, + { + "CacheNodeType": "cache.m2.xlarge", + "Duration": 94608000, + "FixedPrice": 719.0, + "OfferingType": "Heavy Utilization", + "ProductDescription": "redis", + "RecurringCharges": [ + { + "RecurringChargeAmount": 0.049, + "RecurringChargeFrequency": "Hourly" + } + ], + "ReservedCacheNodesOfferingId": "09eeb126-69b6-4d3f-8f94-ca3510629f53", + "UsagePrice": 0.0 + }, + { + "CacheNodeType": "cache.r3.2xlarge", + "Duration": 94608000, + "FixedPrice": 4132.0, + "OfferingType": "Heavy Utilization", + "ProductDescription": "redis", + "RecurringCharges": [ + { + "RecurringChargeAmount": 0.182, + "RecurringChargeFrequency": "Hourly" + } + ], + "ReservedCacheNodesOfferingId": "0a516ad8-557f-4310-9dd0-2448c2ff4d62", + "UsagePrice": 0.0 + }, + { + "CacheNodeType": "cache.c1.xlarge", + "Duration": 94608000, + "FixedPrice": 875.0, + "OfferingType": "Light Utilization", + "ProductDescription": "memcached", + "RecurringCharges": [ + + ], + "ReservedCacheNodesOfferingId": "0b0c1cc5-2177-4150-95d7-c67ec34dcb19", + "UsagePrice": 0.363 + }, + { + "CacheNodeType": "cache.m4.10xlarge", + "Duration": 94608000, + "FixedPrice": 12483.0, + "OfferingType": "Heavy Utilization", + "ProductDescription": "memcached", + "RecurringCharges": [ + { + "RecurringChargeAmount": 0.76, + "RecurringChargeFrequency": "Hourly" + } + ], + "ReservedCacheNodesOfferingId": "0c2b139b-1cff-43d0-8fba-0c753f9b1950", + "UsagePrice": 0.0 + }, + { + "CacheNodeType": "cache.c1.xlarge", + "Duration": 31536000, + "FixedPrice": 1620.0, + "OfferingType": "Heavy Utilization", + "ProductDescription": "memcached", + "RecurringCharges": [ + { + "RecurringChargeAmount": 0.207, + "RecurringChargeFrequency": "Hourly" + } + ], + "ReservedCacheNodesOfferingId": "0c52115b-38cb-47a2-8dbc-e02e40b6a13f", + "UsagePrice": 0.0 + }, + { + "CacheNodeType": "cache.m2.4xlarge", + "Duration": 94608000, + "FixedPrice": 2381.0, + "OfferingType": "Medium Utilization", + "ProductDescription": "redis", + "RecurringCharges": [ + + ], + "ReservedCacheNodesOfferingId": "12fcb19c-5416-4e1d-934f-28f1e2cb8599", + "UsagePrice": 0.276 + }, + { + "CacheNodeType": "cache.m4.xlarge", + "Duration": 31536000, + "FixedPrice": 616.0, + "OfferingType": "Heavy Utilization", + "ProductDescription": "memcached", + "RecurringCharges": [ + { + "RecurringChargeAmount": 0.112, + "RecurringChargeFrequency": "Hourly" + } + ], + "ReservedCacheNodesOfferingId": "13af20ad-914d-4d8b-9763-fa2e565f3549", + "UsagePrice": 0.0 + }, + { + "CacheNodeType": "cache.r3.8xlarge", + "Duration": 94608000, + "FixedPrice": 16528.0, + "OfferingType": "Heavy Utilization", + "ProductDescription": "memcached", + "RecurringCharges": [ + { + "RecurringChargeAmount": 0.729, + "RecurringChargeFrequency": "Hourly" + } + ], + "ReservedCacheNodesOfferingId": "14da3d3f-b526-4dbf-b09b-355578b2a576", + "UsagePrice": 0.0 + }, + { + "CacheNodeType": "cache.m1.medium", + "Duration": 94608000, + "FixedPrice": 140.0, + "OfferingType": "Light Utilization", + "ProductDescription": "redis", + "RecurringCharges": [ + + ], + "ReservedCacheNodesOfferingId": "15d7018c-71fb-4717-8409-4bdcdca18da7", + "UsagePrice": 0.052 + }, + { + "CacheNodeType": "cache.m4.4xlarge", + "Duration": 94608000, + "FixedPrice": 4993.0, + "OfferingType": "Heavy Utilization", + "ProductDescription": "memcached", + "RecurringCharges": [ + { + "RecurringChargeAmount": 0.304, + "RecurringChargeFrequency": "Hourly" + } + ], + "ReservedCacheNodesOfferingId": "1ae7ec5f-a76e-49b6-822b-629b1768a13a", + "UsagePrice": 0.0 + }, + { + "CacheNodeType": "cache.m3.2xlarge", + "Duration": 31536000, + "FixedPrice": 1772.0, + "OfferingType": "Heavy Utilization", + "ProductDescription": "redis", + "RecurringCharges": [ + { + "RecurringChargeAmount": 0.25, + "RecurringChargeFrequency": "Hourly" + } + ], + "ReservedCacheNodesOfferingId": "1d31242b-3925-48d1-b882-ce03204e6013", + "UsagePrice": 0.0 + }, + { + "CacheNodeType": "cache.t1.micro", + "Duration": 31536000, + "FixedPrice": 54.0, + "OfferingType": "Medium Utilization", + "ProductDescription": "memcached", + "RecurringCharges": [ + + ], + "ReservedCacheNodesOfferingId": "1ef01f5b-94ff-433f-a530-61a56bfc8e7a", + "UsagePrice": 0.008 + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists available reserved cache node offerings.", + "id": "describereseredcachenodeofferings-1481742869998", + "title": "DescribeReseredCacheNodeOfferings" + }, + { + "input": { + "CacheNodeType": "cache.r3.large", + "Duration": "3", + "MaxRecords": 25, + "OfferingType": "Light Utilization", + "ReservedCacheNodesOfferingId": "" + }, + "output": { + "Marker": "", + "ReservedCacheNodesOfferings": [ + + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists available reserved cache node offerings for cache.r3.large nodes with a 3 year commitment.", + "id": "describereseredcachenodeofferings-1481742869998", + "title": "DescribeReseredCacheNodeOfferings" + }, + { + "input": { + "CacheNodeType": "", + "Duration": "", + "Marker": "", + "MaxRecords": 25, + "OfferingType": "", + "ProductDescription": "", + "ReservedCacheNodesOfferingId": "438012d3-4052-4cc7-b2e3-8d3372e0e706" + }, + "output": { + "Marker": "", + "ReservedCacheNodesOfferings": [ + + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists available reserved cache node offerings.", + "id": "describereseredcachenodeofferings-1481742869998", + "title": "DescribeReseredCacheNodeOfferings" + } + ], + "DescribeSnapshots": [ + { + "input": { + "SnapshotName": "snapshot-20161212" + }, + "output": { + "Marker": "", + "Snapshots": [ + { + "AutoMinorVersionUpgrade": true, + "CacheClusterCreateTime": "2016-12-21T22:27:12.543Z", + "CacheClusterId": "my-redis5", + "CacheNodeType": "cache.m3.large", + "CacheParameterGroupName": "default.redis3.2", + "CacheSubnetGroupName": "default", + "Engine": "redis", + "EngineVersion": "3.2.4", + "NodeSnapshots": [ + { + "CacheNodeCreateTime": "2016-12-21T22:27:12.543Z", + "CacheNodeId": "0001", + "CacheSize": "3 MB", + "SnapshotCreateTime": "2016-12-21T22:30:26Z" + } + ], + "NumCacheNodes": 1, + "Port": 6379, + "PreferredAvailabilityZone": "us-east-1c", + "PreferredMaintenanceWindow": "fri:05:30-fri:06:30", + "SnapshotName": "snapshot-20161212", + "SnapshotRetentionLimit": 7, + "SnapshotSource": "manual", + "SnapshotStatus": "available", + "SnapshotWindow": "10:00-11:00", + "VpcId": "vpc-91280df6" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns information about the snapshot mysnapshot. By default.", + "id": "describesnapshots-1481743399584", + "title": "DescribeSnapshots" + } + ], + "ListAllowedNodeTypeModifications": [ + { + "input": { + "ReplicationGroupId": "myreplgroup" + }, + "output": { + "ScaleUpModifications": [ + "cache.m4.10xlarge", + "cache.m4.2xlarge", + "cache.m4.4xlarge", + "cache.m4.xlarge", + "cache.r3.2xlarge", + "cache.r3.4xlarge", + "cache.r3.8xlarge", + "cache.r3.xlarge" + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists all available node types that you can scale your Redis cluster's or replication group's current node type up to.", + "id": "listallowednodetypemodifications-1481748494872", + "title": "ListAllowedNodeTypeModifications" + }, + { + "input": { + "CacheClusterId": "mycluster" + }, + "output": { + "ScaleUpModifications": [ + + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists all available node types that you can scale your Redis cluster's or replication group's current node type up to.", + "id": "listallowednodetypemodifications-1481748494872", + "title": "ListAllowedNodeTypeModifications" + } + ], + "ListTagsForResource": [ + { + "input": { + "ResourceName": "arn:aws:elasticache:us-west-2::cluster:mycluster" + }, + "output": { + "TagList": [ + { + "Key": "APIVersion", + "Value": "20150202" + }, + { + "Key": "Service", + "Value": "ElastiCache" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists all cost allocation tags currently on the named resource. A cost allocation tag is a key-value pair where the key is case-sensitive and the value is optional. You can use cost allocation tags to categorize and track your AWS costs.", + "id": "listtagsforresource-1481748784584", + "title": "ListTagsForResource" + } + ], + "ModifyCacheCluster": [ + { + "input": { + "ApplyImmediately": true, + "CacheClusterId": "redis-cluster", + "SnapshotRetentionLimit": 14 + }, + "output": { + "AutoMinorVersionUpgrade": true, + "CacheClusterCreateTime": "2016-12-22T16:27:56.078Z", + "CacheClusterId": "redis-cluster", + "CacheClusterStatus": "available", + "CacheNodeType": "cache.r3.large", + "CacheParameterGroup": { + "CacheNodeIdsToReboot": [ + + ], + "CacheParameterGroupName": "default.redis3.2", + "ParameterApplyStatus": "in-sync" + }, + "CacheSecurityGroups": [ + + ], + "CacheSubnetGroupName": "default", + "ClientDownloadLandingPage": "https://console.aws.amazon.com/elasticache/home#client-download:", + "Engine": "redis", + "EngineVersion": "3.2.4", + "NumCacheNodes": 1, + "PendingModifiedValues": { + }, + "PreferredAvailabilityZone": "us-east-1e", + "PreferredMaintenanceWindow": "fri:09:00-fri:10:00", + "SnapshotRetentionLimit": 14, + "SnapshotWindow": "07:00-08:00" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Copies a snapshot to a specified name.", + "id": "modifycachecluster-1482962725919", + "title": "ModifyCacheCluster" + } + ], + "ModifyCacheParameterGroup": [ + { + "input": { + "CacheParameterGroupName": "custom-mem1-4", + "ParameterNameValues": [ + { + "ParameterName": "binding_protocol", + "ParameterValue": "ascii" + }, + { + "ParameterName": "chunk_size", + "ParameterValue": "96" + } + ] + }, + "output": { + "CacheParameterGroupName": "custom-mem1-4" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Modifies one or more parameter values in the specified parameter group. You cannot modify any default parameter group.", + "id": "modifycacheparametergroup-1482966746787", + "title": "ModifyCacheParameterGroup" + } + ], + "ModifyCacheSubnetGroup": [ + { + "input": { + "CacheSubnetGroupName": "my-sn-grp", + "SubnetIds": [ + "subnet-bcde2345" + ] + }, + "output": { + "CacheSubnetGroupDescription": "My subnet group.", + "CacheSubnetGroupName": "my-sn-grp", + "Subnets": [ + { + "SubnetAvailabilityZone": { + "Name": "us-east-1c" + }, + "SubnetIdentifier": "subnet-a1b2c3d4" + }, + { + "SubnetAvailabilityZone": { + "Name": "us-east-1e" + }, + "SubnetIdentifier": "subnet-1a2b3c4d" + }, + { + "SubnetAvailabilityZone": { + "Name": "us-east-1e" + }, + "SubnetIdentifier": "subnet-bcde2345" + }, + { + "SubnetAvailabilityZone": { + "Name": "us-east-1c" + }, + "SubnetIdentifier": "subnet-1234abcd" + }, + { + "SubnetAvailabilityZone": { + "Name": "us-east-1b" + }, + "SubnetIdentifier": "subnet-abcd1234" + } + ], + "VpcId": "vpc-91280df6" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Modifies an existing ElastiCache subnet group.", + "id": "modifycachesubnetgroup-1483043446226", + "title": "ModifyCacheSubnetGroup" + } + ], + "ModifyReplicationGroup": [ + { + "input": { + "ApplyImmediately": true, + "ReplicationGroupDescription": "Modified replication group", + "ReplicationGroupId": "my-redis-rg", + "SnapshotRetentionLimit": 30, + "SnapshottingClusterId": "my-redis-rg-001" + }, + "output": { + "AutomaticFailover": "enabled", + "Description": "Modified replication group", + "MemberClusters": [ + "my-redis-rg-001", + "my-redis-rg-002", + "my-redis-rg-003" + ], + "NodeGroups": [ + { + "NodeGroupId": "0001", + "NodeGroupMembers": [ + { + "CacheClusterId": "my-redis-rg-001", + "CacheNodeId": "0001", + "CurrentRole": "primary", + "PreferredAvailabilityZone": "us-east-1b", + "ReadEndpoint": { + "Address": "my-redis-rg-001.abcdef.0001.use1.cache.amazonaws.com", + "Port": 6379 + } + }, + { + "CacheClusterId": "my-redis-rg-002", + "CacheNodeId": "0001", + "CurrentRole": "replica", + "PreferredAvailabilityZone": "us-east-1a", + "ReadEndpoint": { + "Address": "my-redis-rg-002.abcdef.0001.use1.cache.amazonaws.com", + "Port": 6379 + } + }, + { + "CacheClusterId": "my-redis-rg-003", + "CacheNodeId": "0001", + "CurrentRole": "replica", + "PreferredAvailabilityZone": "us-east-1c", + "ReadEndpoint": { + "Address": "my-redis-rg-003.abcdef.0001.use1.cache.amazonaws.com", + "Port": 6379 + } + } + ], + "PrimaryEndpoint": { + "Address": "my-redis-rg.abcdef.ng.0001.use1.cache.amazonaws.com", + "Port": 6379 + }, + "Status": "available" + } + ], + "PendingModifiedValues": { + }, + "ReplicationGroupId": "my-redis-rg", + "SnapshottingClusterId": "my-redis-rg-002", + "Status": "available" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "", + "id": "modifyreplicationgroup-1483039689581", + "title": "ModifyReplicationGroup" + } + ], + "PurchaseReservedCacheNodesOffering": [ + { + "input": { + "ReservedCacheNodesOfferingId": "1ef01f5b-94ff-433f-a530-61a56bfc8e7a" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Allows you to purchase a reserved cache node offering.", + "id": "purchasereservedcachenodesofferings-1483040798484", + "title": "PurchaseReservedCacheNodesOfferings" + } + ], + "RebootCacheCluster": [ + { + "input": { + "CacheClusterId": "custom-mem1-4 ", + "CacheNodeIdsToReboot": [ + "0001", + "0002" + ] + }, + "output": { + "AutoMinorVersionUpgrade": true, + "CacheClusterCreateTime": "2016-12-21T21:59:43.794Z", + "CacheClusterId": "my-mem-cluster", + "CacheClusterStatus": "rebooting cache cluster nodes", + "CacheNodeType": "cache.t2.medium", + "CacheParameterGroup": { + "CacheNodeIdsToReboot": [ + + ], + "CacheParameterGroupName": "default.memcached1.4", + "ParameterApplyStatus": "in-sync" + }, + "CacheSecurityGroups": [ + + ], + "CacheSubnetGroupName": "default", + "ClientDownloadLandingPage": "https://console.aws.amazon.com/elasticache/home#client-download:", + "ConfigurationEndpoint": { + "Address": "my-mem-cluster.abcdef.cfg.use1.cache.amazonaws.com", + "Port": 11211 + }, + "Engine": "memcached", + "EngineVersion": "1.4.24", + "NumCacheNodes": 2, + "PendingModifiedValues": { + }, + "PreferredAvailabilityZone": "Multiple", + "PreferredMaintenanceWindow": "wed:06:00-wed:07:00" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Reboots the specified nodes in the names cluster.", + "id": "rebootcachecluster-1482969019505", + "title": "RebootCacheCluster" + } + ], + "RemoveTagsFromResource": [ + { + "input": { + "ResourceName": "arn:aws:elasticache:us-east-1:1234567890:cluster:my-mem-cluster", + "TagKeys": [ + "A", + "C", + "E" + ] + }, + "output": { + "TagList": [ + { + "Key": "B", + "Value": "Banana" + }, + { + "Key": "D", + "Value": "Dog" + }, + { + "Key": "F", + "Value": "Fox" + }, + { + "Key": "I", + "Value": "" + }, + { + "Key": "K", + "Value": "Kite" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Removes tags identified by a list of tag keys from the list of tags on the specified resource.", + "id": "removetagsfromresource-1483037920947", + "title": "RemoveTagsFromResource" + } + ], + "ResetCacheParameterGroup": [ + { + "input": { + "CacheParameterGroupName": "custom-mem1-4", + "ResetAllParameters": true + }, + "output": { + "CacheParameterGroupName": "custom-mem1-4" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Modifies the parameters of a cache parameter group to the engine or system default value.", + "id": "resetcacheparametergroup-1483038334014", + "title": "ResetCacheParameterGroup" + } + ], + "RevokeCacheSecurityGroupIngress": [ + { + "input": { + "CacheSecurityGroupName": "my-sec-grp", + "EC2SecurityGroupName": "my-ec2-sec-grp", + "EC2SecurityGroupOwnerId": "1234567890" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns a list of cache security group descriptions. If a cache security group name is specified, the list contains only the description of that group.", + "id": "describecachesecuritygroups-1483047200801", + "title": "DescribeCacheSecurityGroups" + } + ] } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/api-2.json index 1bcd27750..8b59a010b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/api-2.json @@ -7,6 +7,7 @@ "serviceAbbreviation":"Elastic Beanstalk", "serviceFullName":"AWS Elastic Beanstalk", "signatureVersion":"v4", + "uid":"elasticbeanstalk-2010-12-01", "xmlNamespace":"http://elasticbeanstalk.amazonaws.com/docs/2010-12-01/" }, "operations":{ @@ -95,7 +96,8 @@ {"shape":"TooManyApplicationsException"}, {"shape":"TooManyApplicationVersionsException"}, {"shape":"InsufficientPrivilegesException"}, - {"shape":"S3LocationNotInServiceRegionException"} + {"shape":"S3LocationNotInServiceRegionException"}, + {"shape":"CodeBuildNotInServiceRegionException"} ] }, "CreateConfigurationTemplate":{ @@ -131,6 +133,23 @@ {"shape":"InsufficientPrivilegesException"} ] }, + "CreatePlatformVersion":{ + "name":"CreatePlatformVersion", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreatePlatformVersionRequest"}, + "output":{ + "shape":"CreatePlatformVersionResult", + "resultWrapper":"CreatePlatformVersionResult" + }, + "errors":[ + {"shape":"InsufficientPrivilegesException"}, + {"shape":"ElasticBeanstalkServiceException"}, + {"shape":"TooManyPlatformsException"} + ] + }, "CreateStorageLocation":{ "name":"CreateStorageLocation", "http":{ @@ -191,6 +210,24 @@ }, "input":{"shape":"DeleteEnvironmentConfigurationMessage"} }, + "DeletePlatformVersion":{ + "name":"DeletePlatformVersion", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeletePlatformVersionRequest"}, + "output":{ + "shape":"DeletePlatformVersionResult", + "resultWrapper":"DeletePlatformVersionResult" + }, + "errors":[ + {"shape":"OperationInProgressException"}, + {"shape":"InsufficientPrivilegesException"}, + {"shape":"ElasticBeanstalkServiceException"}, + {"shape":"PlatformVersionStillReferencedException"} + ] + }, "DescribeApplicationVersions":{ "name":"DescribeApplicationVersions", "http":{ @@ -346,6 +383,22 @@ {"shape":"ElasticBeanstalkServiceException"} ] }, + "DescribePlatformVersion":{ + "name":"DescribePlatformVersion", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribePlatformVersionRequest"}, + "output":{ + "shape":"DescribePlatformVersionResult", + "resultWrapper":"DescribePlatformVersionResult" + }, + "errors":[ + {"shape":"InsufficientPrivilegesException"}, + {"shape":"ElasticBeanstalkServiceException"} + ] + }, "ListAvailableSolutionStacks":{ "name":"ListAvailableSolutionStacks", "http":{ @@ -357,6 +410,22 @@ "resultWrapper":"ListAvailableSolutionStacksResult" } }, + "ListPlatformVersions":{ + "name":"ListPlatformVersions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListPlatformVersionsRequest"}, + "output":{ + "shape":"ListPlatformVersionsResult", + "resultWrapper":"ListPlatformVersionsResult" + }, + "errors":[ + {"shape":"InsufficientPrivilegesException"}, + {"shape":"ElasticBeanstalkServiceException"} + ] + }, "RebuildEnvironment":{ "name":"RebuildEnvironment", "http":{ @@ -431,6 +500,21 @@ "resultWrapper":"UpdateApplicationResult" } }, + "UpdateApplicationResourceLifecycle":{ + "name":"UpdateApplicationResourceLifecycle", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateApplicationResourceLifecycleMessage"}, + "output":{ + "shape":"ApplicationResourceLifecycleDescriptionMessage", + "resultWrapper":"UpdateApplicationResourceLifecycleResult" + }, + "errors":[ + {"shape":"InsufficientPrivilegesException"} + ] + }, "UpdateApplicationVersion":{ "name":"UpdateApplicationVersion", "http":{ @@ -493,6 +577,7 @@ } }, "shapes":{ + "ARN":{"type":"string"}, "AbortEnvironmentUpdateMessage":{ "type":"structure", "members":{ @@ -534,7 +619,8 @@ "DateCreated":{"shape":"CreationDate"}, "DateUpdated":{"shape":"UpdateDate"}, "Versions":{"shape":"VersionLabelsList"}, - "ConfigurationTemplates":{"shape":"ConfigurationTemplateNamesList"} + "ConfigurationTemplates":{"shape":"ConfigurationTemplateNamesList"}, + "ResourceLifecycleConfig":{"shape":"ApplicationResourceLifecycleConfig"} } }, "ApplicationDescriptionList":{ @@ -571,6 +657,20 @@ "type":"list", "member":{"shape":"ApplicationName"} }, + "ApplicationResourceLifecycleConfig":{ + "type":"structure", + "members":{ + "ServiceRole":{"shape":"String"}, + "VersionLifecycleConfig":{"shape":"ApplicationVersionLifecycleConfig"} + } + }, + "ApplicationResourceLifecycleDescriptionMessage":{ + "type":"structure", + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "ResourceLifecycleConfig":{"shape":"ApplicationResourceLifecycleConfig"} + } + }, "ApplicationVersionDescription":{ "type":"structure", "members":{ @@ -578,6 +678,7 @@ "Description":{"shape":"Description"}, "VersionLabel":{"shape":"VersionLabel"}, "SourceBuildInformation":{"shape":"SourceBuildInformation"}, + "BuildArn":{"shape":"String"}, "SourceBundle":{"shape":"S3Location"}, "DateCreated":{"shape":"CreationDate"}, "DateUpdated":{"shape":"UpdateDate"}, @@ -601,6 +702,13 @@ "NextToken":{"shape":"Token"} } }, + "ApplicationVersionLifecycleConfig":{ + "type":"structure", + "members":{ + "MaxCountRule":{"shape":"MaxCountRule"}, + "MaxAgeRule":{"shape":"MaxAgeRule"} + } + }, "ApplicationVersionProccess":{"type":"boolean"}, "ApplicationVersionStatus":{ "type":"string", @@ -608,7 +716,8 @@ "Processed", "Unprocessed", "Failed", - "Processing" + "Processing", + "Building" ] }, "ApplyEnvironmentManagedActionRequest":{ @@ -648,6 +757,28 @@ "type":"list", "member":{"shape":"SolutionStackName"} }, + "BoxedBoolean":{"type":"boolean"}, + "BoxedInt":{"type":"integer"}, + "BuildConfiguration":{ + "type":"structure", + "required":[ + "CodeBuildServiceRole", + "Image" + ], + "members":{ + "ArtifactName":{"shape":"String"}, + "CodeBuildServiceRole":{"shape":"NonEmptyString"}, + "ComputeType":{"shape":"ComputeType"}, + "Image":{"shape":"NonEmptyString"}, + "TimeoutInMinutes":{"shape":"BoxedInt"} + } + }, + "Builder":{ + "type":"structure", + "members":{ + "ARN":{"shape":"ARN"} + } + }, "CPUUtilization":{ "type":"structure", "members":{ @@ -684,6 +815,17 @@ } }, "CnameAvailability":{"type":"boolean"}, + "CodeBuildNotInServiceRegionException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"CodeBuildNotInServiceRegionException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "ComposeEnvironmentsMessage":{ "type":"structure", "members":{ @@ -692,6 +834,14 @@ "VersionLabels":{"shape":"VersionLabels"} } }, + "ComputeType":{ + "type":"string", + "enum":[ + "BUILD_GENERAL1_SMALL", + "BUILD_GENERAL1_MEDIUM", + "BUILD_GENERAL1_LARGE" + ] + }, "ConfigurationDeploymentStatus":{ "type":"string", "enum":[ @@ -753,6 +903,7 @@ "type":"structure", "members":{ "SolutionStackName":{"shape":"SolutionStackName"}, + "PlatformArn":{"shape":"PlatformArn"}, "Options":{"shape":"ConfigurationOptionDescriptionsList"} } }, @@ -760,6 +911,7 @@ "type":"structure", "members":{ "SolutionStackName":{"shape":"SolutionStackName"}, + "PlatformArn":{"shape":"PlatformArn"}, "ApplicationName":{"shape":"ApplicationName"}, "TemplateName":{"shape":"ConfigurationTemplateName"}, "Description":{"shape":"Description"}, @@ -800,7 +952,8 @@ "required":["ApplicationName"], "members":{ "ApplicationName":{"shape":"ApplicationName"}, - "Description":{"shape":"Description"} + "Description":{"shape":"Description"}, + "ResourceLifecycleConfig":{"shape":"ApplicationResourceLifecycleConfig"} } }, "CreateApplicationVersionMessage":{ @@ -815,6 +968,7 @@ "Description":{"shape":"Description"}, "SourceBuildInformation":{"shape":"SourceBuildInformation"}, "SourceBundle":{"shape":"S3Location"}, + "BuildConfiguration":{"shape":"BuildConfiguration"}, "AutoCreateApplication":{"shape":"AutoCreateApplication"}, "Process":{"shape":"ApplicationVersionProccess"} } @@ -829,6 +983,7 @@ "ApplicationName":{"shape":"ApplicationName"}, "TemplateName":{"shape":"ConfigurationTemplateName"}, "SolutionStackName":{"shape":"SolutionStackName"}, + "PlatformArn":{"shape":"PlatformArn"}, "SourceConfiguration":{"shape":"SourceConfiguration"}, "EnvironmentId":{"shape":"EnvironmentId"}, "Description":{"shape":"Description"}, @@ -849,10 +1004,33 @@ "VersionLabel":{"shape":"VersionLabel"}, "TemplateName":{"shape":"ConfigurationTemplateName"}, "SolutionStackName":{"shape":"SolutionStackName"}, + "PlatformArn":{"shape":"PlatformArn"}, "OptionSettings":{"shape":"ConfigurationOptionSettingsList"}, "OptionsToRemove":{"shape":"OptionsSpecifierList"} } }, + "CreatePlatformVersionRequest":{ + "type":"structure", + "required":[ + "PlatformName", + "PlatformVersion", + "PlatformDefinitionBundle" + ], + "members":{ + "PlatformName":{"shape":"PlatformName"}, + "PlatformVersion":{"shape":"PlatformVersion"}, + "PlatformDefinitionBundle":{"shape":"S3Location"}, + "EnvironmentName":{"shape":"EnvironmentName"}, + "OptionSettings":{"shape":"ConfigurationOptionSettingsList"} + } + }, + "CreatePlatformVersionResult":{ + "type":"structure", + "members":{ + "PlatformSummary":{"shape":"PlatformSummary"}, + "Builder":{"shape":"Builder"} + } + }, "CreateStorageLocationResultMessage":{ "type":"structure", "members":{ @@ -860,6 +1038,17 @@ } }, "CreationDate":{"type":"timestamp"}, + "CustomAmi":{ + "type":"structure", + "members":{ + "VirtualizationType":{"shape":"VirtualizationType"}, + "ImageId":{"shape":"ImageId"} + } + }, + "CustomAmiList":{ + "type":"list", + "member":{"shape":"CustomAmi"} + }, "DNSCname":{ "type":"string", "max":255, @@ -912,6 +1101,18 @@ "EnvironmentName":{"shape":"EnvironmentName"} } }, + "DeletePlatformVersionRequest":{ + "type":"structure", + "members":{ + "PlatformArn":{"shape":"PlatformArn"} + } + }, + "DeletePlatformVersionResult":{ + "type":"structure", + "members":{ + "PlatformSummary":{"shape":"PlatformSummary"} + } + }, "DeleteSourceBundle":{"type":"boolean"}, "Deployment":{ "type":"structure", @@ -945,6 +1146,7 @@ "TemplateName":{"shape":"ConfigurationTemplateName"}, "EnvironmentName":{"shape":"EnvironmentName"}, "SolutionStackName":{"shape":"SolutionStackName"}, + "PlatformArn":{"shape":"PlatformArn"}, "Options":{"shape":"OptionsSpecifierList"} } }, @@ -1034,6 +1236,7 @@ "TemplateName":{"shape":"ConfigurationTemplateName"}, "EnvironmentId":{"shape":"EnvironmentId"}, "EnvironmentName":{"shape":"EnvironmentName"}, + "PlatformArn":{"shape":"PlatformArn"}, "RequestId":{"shape":"RequestId"}, "Severity":{"shape":"EventSeverity"}, "StartTime":{"shape":"TimeFilterStart"}, @@ -1059,6 +1262,18 @@ "NextToken":{"shape":"NextToken"} } }, + "DescribePlatformVersionRequest":{ + "type":"structure", + "members":{ + "PlatformArn":{"shape":"PlatformArn"} + } + }, + "DescribePlatformVersionResult":{ + "type":"structure", + "members":{ + "PlatformDescription":{"shape":"PlatformDescription"} + } + }, "Description":{ "type":"string", "max":200 @@ -1080,6 +1295,7 @@ "ApplicationName":{"shape":"ApplicationName"}, "VersionLabel":{"shape":"VersionLabel"}, "SolutionStackName":{"shape":"SolutionStackName"}, + "PlatformArn":{"shape":"PlatformArn"}, "TemplateName":{"shape":"ConfigurationTemplateName"}, "Description":{"shape":"Description"}, "EndpointURL":{"shape":"EndpointURL"}, @@ -1241,6 +1457,7 @@ "VersionLabel":{"shape":"VersionLabel"}, "TemplateName":{"shape":"ConfigurationTemplateName"}, "EnvironmentName":{"shape":"EnvironmentName"}, + "PlatformArn":{"shape":"PlatformArn"}, "RequestId":{"shape":"RequestId"}, "Severity":{"shape":"EventSeverity"} } @@ -1292,6 +1509,7 @@ "max":19, "min":1 }, + "ImageId":{"type":"string"}, "IncludeDeleted":{"type":"boolean"}, "IncludeDeletedBackTo":{"type":"timestamp"}, "Instance":{ @@ -1400,6 +1618,21 @@ "SolutionStackDetails":{"shape":"AvailableSolutionStackDetailsList"} } }, + "ListPlatformVersionsRequest":{ + "type":"structure", + "members":{ + "Filters":{"shape":"PlatformFilters"}, + "MaxRecords":{"shape":"PlatformMaxRecords"}, + "NextToken":{"shape":"Token"} + } + }, + "ListPlatformVersionsResult":{ + "type":"structure", + "members":{ + "PlatformSummaryList":{"shape":"PlatformSummaryList"}, + "NextToken":{"shape":"Token"} + } + }, "Listener":{ "type":"structure", "members":{ @@ -1434,6 +1667,7 @@ "type":"list", "member":{"shape":"Listener"} }, + "Maintainer":{"type":"string"}, "ManagedAction":{ "type":"structure", "members":{ @@ -1480,6 +1714,24 @@ "max":100, "min":1 }, + "MaxAgeRule":{ + "type":"structure", + "required":["Enabled"], + "members":{ + "Enabled":{"shape":"BoxedBoolean"}, + "MaxAgeInDays":{"shape":"BoxedInt"}, + "DeleteSourceFromS3":{"shape":"BoxedBoolean"} + } + }, + "MaxCountRule":{ + "type":"structure", + "required":["Enabled"], + "members":{ + "Enabled":{"shape":"BoxedBoolean"}, + "MaxCount":{"shape":"BoxedInt"}, + "DeleteSourceFromS3":{"shape":"BoxedBoolean"} + } + }, "MaxRecords":{ "type":"integer", "max":1000, @@ -1491,9 +1743,15 @@ "max":100, "min":1 }, + "NonEmptyString":{ + "type":"string", + "pattern":".*\\S.*" + }, "NullableDouble":{"type":"double"}, "NullableInteger":{"type":"integer"}, "NullableLong":{"type":"long"}, + "OperatingSystemName":{"type":"string"}, + "OperatingSystemVersion":{"type":"string"}, "OperationInProgressException":{ "type":"structure", "members":{ @@ -1528,6 +1786,117 @@ "type":"list", "member":{"shape":"OptionSpecification"} }, + "PlatformArn":{"type":"string"}, + "PlatformCategory":{"type":"string"}, + "PlatformDescription":{ + "type":"structure", + "members":{ + "PlatformArn":{"shape":"PlatformArn"}, + "PlatformOwner":{"shape":"PlatformOwner"}, + "PlatformName":{"shape":"PlatformName"}, + "PlatformVersion":{"shape":"PlatformVersion"}, + "SolutionStackName":{"shape":"SolutionStackName"}, + "PlatformStatus":{"shape":"PlatformStatus"}, + "DateCreated":{"shape":"CreationDate"}, + "DateUpdated":{"shape":"UpdateDate"}, + "PlatformCategory":{"shape":"PlatformCategory"}, + "Description":{"shape":"Description"}, + "Maintainer":{"shape":"Maintainer"}, + "OperatingSystemName":{"shape":"OperatingSystemName"}, + "OperatingSystemVersion":{"shape":"OperatingSystemVersion"}, + "ProgrammingLanguages":{"shape":"PlatformProgrammingLanguages"}, + "Frameworks":{"shape":"PlatformFrameworks"}, + "CustomAmiList":{"shape":"CustomAmiList"}, + "SupportedTierList":{"shape":"SupportedTierList"}, + "SupportedAddonList":{"shape":"SupportedAddonList"} + } + }, + "PlatformFilter":{ + "type":"structure", + "members":{ + "Type":{"shape":"PlatformFilterType"}, + "Operator":{"shape":"PlatformFilterOperator"}, + "Values":{"shape":"PlatformFilterValueList"} + } + }, + "PlatformFilterOperator":{"type":"string"}, + "PlatformFilterType":{"type":"string"}, + "PlatformFilterValue":{"type":"string"}, + "PlatformFilterValueList":{ + "type":"list", + "member":{"shape":"PlatformFilterValue"} + }, + "PlatformFilters":{ + "type":"list", + "member":{"shape":"PlatformFilter"} + }, + "PlatformFramework":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "Version":{"shape":"String"} + } + }, + "PlatformFrameworks":{ + "type":"list", + "member":{"shape":"PlatformFramework"} + }, + "PlatformMaxRecords":{ + "type":"integer", + "min":1 + }, + "PlatformName":{"type":"string"}, + "PlatformOwner":{"type":"string"}, + "PlatformProgrammingLanguage":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "Version":{"shape":"String"} + } + }, + "PlatformProgrammingLanguages":{ + "type":"list", + "member":{"shape":"PlatformProgrammingLanguage"} + }, + "PlatformStatus":{ + "type":"string", + "enum":[ + "Creating", + "Failed", + "Ready", + "Deleting", + "Deleted" + ] + }, + "PlatformSummary":{ + "type":"structure", + "members":{ + "PlatformArn":{"shape":"PlatformArn"}, + "PlatformOwner":{"shape":"PlatformOwner"}, + "PlatformStatus":{"shape":"PlatformStatus"}, + "PlatformCategory":{"shape":"PlatformCategory"}, + "OperatingSystemName":{"shape":"OperatingSystemName"}, + "OperatingSystemVersion":{"shape":"OperatingSystemVersion"}, + "SupportedTierList":{"shape":"SupportedTierList"}, + "SupportedAddonList":{"shape":"SupportedAddonList"} + } + }, + "PlatformSummaryList":{ + "type":"list", + "member":{"shape":"PlatformSummary"} + }, + "PlatformVersion":{"type":"string"}, + "PlatformVersionStillReferencedException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"PlatformVersionStillReferencedException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "Queue":{ "type":"structure", "members":{ @@ -1652,10 +2021,7 @@ "type":"list", "member":{"shape":"FileTypeExtension"} }, - "SolutionStackName":{ - "type":"string", - "max":100 - }, + "SolutionStackName":{"type":"string"}, "SourceBuildInformation":{ "type":"structure", "required":[ @@ -1695,11 +2061,17 @@ }, "SourceRepository":{ "type":"string", - "enum":["CodeCommit"] + "enum":[ + "CodeCommit", + "S3" + ] }, "SourceType":{ "type":"string", - "enum":["Git"] + "enum":[ + "Git", + "Zip" + ] }, "StatusCodes":{ "type":"structure", @@ -1711,6 +2083,16 @@ } }, "String":{"type":"string"}, + "SupportedAddon":{"type":"string"}, + "SupportedAddonList":{ + "type":"list", + "member":{"shape":"SupportedAddon"} + }, + "SupportedTier":{"type":"string"}, + "SupportedTierList":{ + "type":"list", + "member":{"shape":"SupportedTier"} + }, "SwapEnvironmentCNAMEsMessage":{ "type":"structure", "members":{ @@ -1813,6 +2195,17 @@ }, "exception":true }, + "TooManyPlatformsException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"TooManyPlatformsException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "Trigger":{ "type":"structure", "members":{ @@ -1831,6 +2224,17 @@ "Description":{"shape":"Description"} } }, + "UpdateApplicationResourceLifecycleMessage":{ + "type":"structure", + "required":[ + "ApplicationName", + "ResourceLifecycleConfig" + ], + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "ResourceLifecycleConfig":{"shape":"ApplicationResourceLifecycleConfig"} + } + }, "UpdateApplicationVersionMessage":{ "type":"structure", "required":[ @@ -1870,6 +2274,7 @@ "VersionLabel":{"shape":"VersionLabel"}, "TemplateName":{"shape":"ConfigurationTemplateName"}, "SolutionStackName":{"shape":"SolutionStackName"}, + "PlatformArn":{"shape":"PlatformArn"}, "OptionSettings":{"shape":"ConfigurationOptionSettingsList"}, "OptionsToRemove":{"shape":"OptionsSpecifierList"} } @@ -1921,6 +2326,7 @@ "VersionLabelsList":{ "type":"list", "member":{"shape":"VersionLabel"} - } + }, + "VirtualizationType":{"type":"string"} } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/docs-2.json index 3dc289f7b..2cabdf3b5 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/docs-2.json @@ -7,15 +7,17 @@ "CheckDNSAvailability": "

Checks if the specified CNAME is available.

", "ComposeEnvironments": "

Create or update a group of environments that each run a separate component of a single application. Takes a list of version labels that specify application source bundles for each of the environments to create or update. The name of each environment and other required information must be included in the source bundles in an environment manifest named env.yaml. See Compose Environments for details.

", "CreateApplication": "

Creates an application that has one configuration template named default and no application versions.

", - "CreateApplicationVersion": "

Creates an application version for the specified application.

Once you create an application version with a specified Amazon S3 bucket and key location, you cannot change that Amazon S3 location. If you change the Amazon S3 location, you receive an exception when you attempt to launch an environment from the application version.

", + "CreateApplicationVersion": "

Creates an application version for the specified application. You can create an application version from a source bundle in Amazon S3, a commit in AWS CodeCommit, or the output of an AWS CodeBuild build as follows:

Specify a commit in an AWS CodeCommit repository with SourceBuildInformation.

Specify a build in an AWS CodeBuild with SourceBuildInformation and BuildConfiguration.

Specify a source bundle in S3 with SourceBundle

Omit both SourceBuildInformation and SourceBundle to use the default sample application.

Once you create an application version with a specified Amazon S3 bucket and key location, you cannot change that Amazon S3 location. If you change the Amazon S3 location, you receive an exception when you attempt to launch an environment from the application version.

", "CreateConfigurationTemplate": "

Creates a configuration template. Templates are associated with a specific application and are used to deploy different versions of the application with the same configuration settings.

Related Topics

", "CreateEnvironment": "

Launches an environment for the specified application using the specified configuration.

", + "CreatePlatformVersion": "

Create a new version of your custom platform.

", "CreateStorageLocation": "

Creates the Amazon S3 storage location for the account.

This location is used to store user log files.

", "DeleteApplication": "

Deletes the specified application along with all associated versions and configurations. The application versions will not be deleted from your Amazon S3 bucket.

You cannot delete an application that has a running environment.

", "DeleteApplicationVersion": "

Deletes the specified version from the specified application.

You cannot delete an application version that is associated with a running environment.

", "DeleteConfigurationTemplate": "

Deletes the specified configuration template.

When you launch an environment using a configuration template, the environment gets a copy of the template. You can delete or modify the environment's copy of the template without affecting the running environment.

", "DeleteEnvironmentConfiguration": "

Deletes the draft configuration associated with the running environment.

Updating a running environment with any configuration changes creates a draft configuration set. You can get the draft configuration using DescribeConfigurationSettings while the update is in progress or if the update fails. The DeploymentStatus for the draft configuration indicates whether the deployment is in process or has failed. The draft configuration remains in existence until it is deleted with this action.

", - "DescribeApplicationVersions": "

Retrieve a list of application versions stored in your AWS Elastic Beanstalk storage bucket.

", + "DeletePlatformVersion": "

Deletes the specified version of a custom platform.

", + "DescribeApplicationVersions": "

Retrieve a list of application versions.

", "DescribeApplications": "

Returns the descriptions of existing applications.

", "DescribeConfigurationOptions": "

Describes the configuration options that are used in a particular configuration template or environment, or that a specified solution stack defines. The description includes the values the options, their default values, and an indication of the required action on a running environment if an option value is changed.

", "DescribeConfigurationSettings": "

Returns a description of the settings for the specified configuration set, that is, either a configuration template or the configuration set associated with a running environment.

When describing the settings for the configuration set associated with a running environment, it is possible to receive two sets of setting descriptions. One is the deployed configuration set, and the other is a draft configuration of an environment that is either in the process of deployment or that failed to deploy.

Related Topics

", @@ -25,8 +27,10 @@ "DescribeEnvironmentResources": "

Returns AWS resources for this environment.

", "DescribeEnvironments": "

Returns descriptions for existing environments.

", "DescribeEvents": "

Returns list of event descriptions matching criteria up to the last 6 weeks.

This action returns the most recent 1,000 events from the specified NextToken.

", - "DescribeInstancesHealth": "

Returns more detailed information about the health of the specified instances (for example, CPU utilization, load average, and causes). The DescribeInstancesHealth operation is only available with AWS Elastic Beanstalk Enhanced Health.

", - "ListAvailableSolutionStacks": "

Returns a list of the available solution stack names.

", + "DescribeInstancesHealth": "

Retrives detailed information about the health of instances in your AWS Elastic Beanstalk. This operation requires enhanced health reporting.

", + "DescribePlatformVersion": "

Describes the version of the platform.

", + "ListAvailableSolutionStacks": "

Returns a list of the available solution stack names, with the public version first and then in reverse chronological order.

", + "ListPlatformVersions": "

Lists the available platforms.

", "RebuildEnvironment": "

Deletes and recreates all of the AWS resources (for example: the Auto Scaling group, load balancer, etc.) for a specified environment and forces a restart.

", "RequestEnvironmentInfo": "

Initiates a request to compile the specified type of information of the deployed environment.

Setting the InfoType to tail compiles the last lines from the application server log files of every Amazon EC2 instance in your environment.

Setting the InfoType to bundle compresses the application server log files for every Amazon EC2 instance into a .zip file. Legacy and .NET containers do not support bundle logs.

Use RetrieveEnvironmentInfo to obtain the set of logs.

Related Topics

", "RestartAppServer": "

Causes the environment to restart the application container server running on each Amazon EC2 instance.

", @@ -34,12 +38,19 @@ "SwapEnvironmentCNAMEs": "

Swaps the CNAMEs of two environments.

", "TerminateEnvironment": "

Terminates the specified environment.

", "UpdateApplication": "

Updates the specified application to have the specified properties.

If a property (for example, description) is not provided, the value remains unchanged. To clear these properties, specify an empty string.

", + "UpdateApplicationResourceLifecycle": "

Modifies lifecycle settings for an application.

", "UpdateApplicationVersion": "

Updates the specified application version to have the specified properties.

If a property (for example, description) is not provided, the value remains unchanged. To clear properties, specify an empty string.

", "UpdateConfigurationTemplate": "

Updates the specified configuration template to have the specified properties or configuration option values.

If a property (for example, ApplicationName) is not provided, its value remains unchanged. To clear such properties, specify an empty string.

Related Topics

", "UpdateEnvironment": "

Updates the environment description, deploys a new application version, updates the configuration settings to an entirely new configuration template, or updates select configuration option values in the running environment.

Attempting to update both the release and configuration is not allowed and AWS Elastic Beanstalk returns an InvalidParameterCombination error.

When updating the configuration settings to a new template or individual settings, a draft configuration is created and DescribeConfigurationSettings for this environment returns two setting descriptions with different DeploymentStatus values.

", "ValidateConfigurationSettings": "

Takes a set of configuration settings and either a configuration template or environment, and determines whether those values are valid.

This action returns a list of messages indicating any errors or warnings associated with the selection of option values.

" }, "shapes": { + "ARN": { + "base": null, + "refs": { + "Builder$ARN": "

The ARN of the builder.

" + } + }, "AbortEnvironmentUpdateMessage": { "base": "

", "refs": { @@ -96,10 +107,10 @@ } }, "ApplicationMetrics": { - "base": "

Represents the application metrics for a specified environment.

", + "base": "

Application request metrics for an AWS Elastic Beanstalk environment.

", "refs": { - "DescribeEnvironmentHealthResult$ApplicationMetrics": null, - "SingleInstanceHealth$ApplicationMetrics": null + "DescribeEnvironmentHealthResult$ApplicationMetrics": "

Application request metrics for the environment.

", + "SingleInstanceHealth$ApplicationMetrics": "

Request metrics from your application.

" } }, "ApplicationName": { @@ -107,7 +118,8 @@ "refs": { "ApplicationDescription$ApplicationName": "

The name of the application.

", "ApplicationNamesList$member": null, - "ApplicationVersionDescription$ApplicationName": "

The name of the application associated with this release.

", + "ApplicationResourceLifecycleDescriptionMessage$ApplicationName": "

The name of the application.

", + "ApplicationVersionDescription$ApplicationName": "

The name of the application to which the application version belongs.

", "ComposeEnvironmentsMessage$ApplicationName": "

The name of the application to which the specified source bundles belong.

", "ConfigurationSettingsDescription$ApplicationName": "

The name of the application associated with this configuration set.

", "CreateApplicationMessage$ApplicationName": "

The name of the application.

Constraint: This name must be unique within your account. If the specified name already exists, the action returns an InvalidParameterValue error.

", @@ -115,10 +127,10 @@ "CreateConfigurationTemplateMessage$ApplicationName": "

The name of the application to associate with this configuration template. If no application is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error.

", "CreateEnvironmentMessage$ApplicationName": "

The name of the application that contains the version to be deployed.

If no application is found with this name, CreateEnvironment returns an InvalidParameterValue error.

", "DeleteApplicationMessage$ApplicationName": "

The name of the application to delete.

", - "DeleteApplicationVersionMessage$ApplicationName": "

The name of the application to delete releases from.

", + "DeleteApplicationVersionMessage$ApplicationName": "

The name of the application to which the version belongs.

", "DeleteConfigurationTemplateMessage$ApplicationName": "

The name of the application to delete the configuration template from.

", "DeleteEnvironmentConfigurationMessage$ApplicationName": "

The name of the application the environment is associated with.

", - "DescribeApplicationVersionsMessage$ApplicationName": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include ones that are associated with the specified application.

", + "DescribeApplicationVersionsMessage$ApplicationName": "

Specify an application name to show only application versions for that application.

", "DescribeConfigurationOptionsMessage$ApplicationName": "

The name of the application associated with the configuration template or environment. Only needed if you want to describe the configuration options associated with either the configuration template or environment.

", "DescribeConfigurationSettingsMessage$ApplicationName": "

The application for the environment or configuration template.

", "DescribeEnvironmentsMessage$ApplicationName": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application.

", @@ -127,7 +139,8 @@ "EventDescription$ApplicationName": "

The application associated with the event.

", "SourceConfiguration$ApplicationName": "

The name of the application associated with the configuration.

", "UpdateApplicationMessage$ApplicationName": "

The name of the application to update. If no such application is found, UpdateApplication returns an InvalidParameterValue error.

", - "UpdateApplicationVersionMessage$ApplicationName": "

The name of the application associated with this version.

If no application is found with this name, UpdateApplication returns an InvalidParameterValue error.

", + "UpdateApplicationResourceLifecycleMessage$ApplicationName": "

The name of the application.

", + "UpdateApplicationVersionMessage$ApplicationName": "

The name of the application associated with this version.

If no application is found with this name, UpdateApplication returns an InvalidParameterValue error.

", "UpdateConfigurationTemplateMessage$ApplicationName": "

The name of the application associated with the configuration template to update.

If no application is found with this name, UpdateConfigurationTemplate returns an InvalidParameterValue error.

", "UpdateEnvironmentMessage$ApplicationName": "

The name of the application with which the environment is associated.

", "ValidateConfigurationSettingsMessage$ApplicationName": "

The name of the application that the configuration template or environment belongs to.

" @@ -139,6 +152,20 @@ "DescribeApplicationsMessage$ApplicationNames": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include those with the specified names.

" } }, + "ApplicationResourceLifecycleConfig": { + "base": "

The resource lifecycle configuration for an application. Defines lifecycle settings for resources that belong to the application, and the service role that Elastic Beanstalk assumes in order to apply lifecycle settings. The version lifecycle configuration defines lifecycle settings for application versions.

", + "refs": { + "ApplicationDescription$ResourceLifecycleConfig": "

The lifecycle settings for the application.

", + "ApplicationResourceLifecycleDescriptionMessage$ResourceLifecycleConfig": "

The lifecycle configuration.

", + "CreateApplicationMessage$ResourceLifecycleConfig": "

Specify an application resource lifecycle configuration to prevent your application from accumulating too many versions.

", + "UpdateApplicationResourceLifecycleMessage$ResourceLifecycleConfig": "

The lifecycle configuration.

" + } + }, + "ApplicationResourceLifecycleDescriptionMessage": { + "base": null, + "refs": { + } + }, "ApplicationVersionDescription": { "base": "

Describes the properties of an application version.

", "refs": { @@ -149,7 +176,7 @@ "ApplicationVersionDescriptionList": { "base": null, "refs": { - "ApplicationVersionDescriptionsMessage$ApplicationVersions": "

List of ApplicationVersionDescription objects sorted by order of creation.

" + "ApplicationVersionDescriptionsMessage$ApplicationVersions": "

List of ApplicationVersionDescription objects sorted in order of creation.

" } }, "ApplicationVersionDescriptionMessage": { @@ -162,6 +189,12 @@ "refs": { } }, + "ApplicationVersionLifecycleConfig": { + "base": "

The application version lifecycle settings for an application. Defines the rules that Elastic Beanstalk applies to an application's versions in order to avoid hitting the per-region limit for application versions.

When Elastic Beanstalk deletes an application version from its database, you can no longer deploy that version to an environment. The source bundle remains in S3 unless you configure the rule to delete it.

", + "refs": { + "ApplicationResourceLifecycleConfig$VersionLifecycleConfig": "

The application version lifecycle configuration.

" + } + }, "ApplicationVersionProccess": { "base": null, "refs": { @@ -187,7 +220,7 @@ "AutoCreateApplication": { "base": null, "refs": { - "CreateApplicationVersionMessage$AutoCreateApplication": "

Determines how the system behaves if the specified application for this version does not already exist:

  • true : Automatically creates the specified application for this release if it does not already exist.

  • false : Throws an InvalidParameterValue if the specified application for this release does not already exist.

Default: false

Valid Values: true | false

" + "CreateApplicationVersionMessage$AutoCreateApplication": "

Set to true to create an application with the specified name if it doesn't already exist.

" } }, "AutoScalingGroup": { @@ -214,10 +247,39 @@ "ListAvailableSolutionStacksResultMessage$SolutionStacks": "

A list of available solution stacks.

" } }, + "BoxedBoolean": { + "base": null, + "refs": { + "MaxAgeRule$Enabled": "

Specify true to apply the rule, or false to disable it.

", + "MaxAgeRule$DeleteSourceFromS3": "

Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.

", + "MaxCountRule$Enabled": "

Specify true to apply the rule, or false to disable it.

", + "MaxCountRule$DeleteSourceFromS3": "

Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.

" + } + }, + "BoxedInt": { + "base": null, + "refs": { + "BuildConfiguration$TimeoutInMinutes": "

How long in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until timing out any related build that does not get marked as completed. The default is 60 minutes.

", + "MaxAgeRule$MaxAgeInDays": "

Specify the number of days to retain an application versions.

", + "MaxCountRule$MaxCount": "

Specify the maximum number of application versions to retain.

" + } + }, + "BuildConfiguration": { + "base": "

Settings for an AWS CodeBuild build.

", + "refs": { + "CreateApplicationVersionMessage$BuildConfiguration": "

Settings for an AWS CodeBuild build.

" + } + }, + "Builder": { + "base": "

The builder used to build the custom platform.

", + "refs": { + "CreatePlatformVersionResult$Builder": "

The builder used to create the custom platform.

" + } + }, "CPUUtilization": { - "base": "

Represents CPU utilization information from the specified instance that belongs to the AWS Elastic Beanstalk environment. Use the instanceId property to specify the application instance for which you'd like to return data.

", + "base": "

CPU utilization metrics for an instance.

", "refs": { - "SystemStatus$CPUUtilization": null + "SystemStatus$CPUUtilization": "

CPU utilization metrics for the instance.

" } }, "Cause": { @@ -229,7 +291,7 @@ "Causes": { "base": null, "refs": { - "DescribeEnvironmentHealthResult$Causes": "

Returns potential causes for the reported status.

", + "DescribeEnvironmentHealthResult$Causes": "

Descriptions of the data that contributed to the environment's current health status.

", "SingleInstanceHealth$Causes": "

Represents the causes, which provide more information about the current health status.

" } }, @@ -249,11 +311,22 @@ "CheckDNSAvailabilityResultMessage$Available": "

Indicates if the specified CNAME is available:

  • true : The CNAME is available.

  • false : The CNAME is not available.

" } }, + "CodeBuildNotInServiceRegionException": { + "base": "

AWS CodeBuild is not available in the specified region.

", + "refs": { + } + }, "ComposeEnvironmentsMessage": { "base": "

Request to create or update a group of environments.

", "refs": { } }, + "ComputeType": { + "base": null, + "refs": { + "BuildConfiguration$ComputeType": "

Information about the compute resources the build project will use.

  • BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds

  • BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds

  • BUILD_GENERAL1_LARGE: Use up to 15 GB memory and 8 vCPUs for builds

" + } + }, "ConfigurationDeploymentStatus": { "base": null, "refs": { @@ -284,7 +357,7 @@ "ConfigurationOptionDescription$Name": "

The name of the configuration option.

", "ConfigurationOptionSetting$OptionName": "

The name of the configuration option.

", "OptionSpecification$OptionName": "

The name of the configuration option.

", - "ValidationMessage$OptionName": "

" + "ValidationMessage$OptionName": "

The name of the option.

" } }, "ConfigurationOptionPossibleValue": { @@ -311,6 +384,7 @@ "ConfigurationSettingsDescription$OptionSettings": "

A list of the configuration options and their values in this configuration set.

", "CreateConfigurationTemplateMessage$OptionSettings": "

If specified, AWS Elastic Beanstalk sets the specified configuration option to the requested value. The new value overrides the value obtained from the solution stack or the source configuration template.

", "CreateEnvironmentMessage$OptionSettings": "

If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template.

", + "CreatePlatformVersionRequest$OptionSettings": "

The configuration option settings to apply to the builder environment.

", "UpdateConfigurationTemplateMessage$OptionSettings": "

A list of configuration option settings to update with the new specified option value.

", "UpdateEnvironmentMessage$OptionSettings": "

If specified, AWS Elastic Beanstalk updates the configuration set associated with the running environment and sets the specified configuration options to the requested value.

", "ValidateConfigurationSettingsMessage$OptionSettings": "

A list of the options and desired values to evaluate.

" @@ -367,7 +441,7 @@ "ConfigurationSettingsDescription$TemplateName": "

If not null, the name of the configuration template for this configuration set.

", "ConfigurationTemplateNamesList$member": null, "CreateConfigurationTemplateMessage$TemplateName": "

The name of the configuration template.

Constraint: This name must be unique per application.

Default: If a configuration template already exists with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error.

", - "CreateEnvironmentMessage$TemplateName": "

The name of the configuration template to use in deployment. If no configuration template is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Condition: You must specify either this parameter or a SolutionStackName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

", + "CreateEnvironmentMessage$TemplateName": "

The name of the configuration template to use in deployment. If no configuration template is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error.

", "DeleteConfigurationTemplateMessage$TemplateName": "

The name of the configuration template to delete.

", "DescribeConfigurationOptionsMessage$TemplateName": "

The name of the configuration template whose configuration options you want to describe.

", "DescribeConfigurationSettingsMessage$TemplateName": "

The name of the configuration template to describe.

Conditional: You must specify either this parameter or an EnvironmentName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

", @@ -406,6 +480,16 @@ "refs": { } }, + "CreatePlatformVersionRequest": { + "base": "

Request to create a new platform version.

", + "refs": { + } + }, + "CreatePlatformVersionResult": { + "base": null, + "refs": { + } + }, "CreateStorageLocationResultMessage": { "base": "

Results of a CreateStorageLocationResult call.

", "refs": { @@ -417,7 +501,20 @@ "ApplicationDescription$DateCreated": "

The date when the application was created.

", "ApplicationVersionDescription$DateCreated": "

The creation date of the application version.

", "ConfigurationSettingsDescription$DateCreated": "

The date (in UTC time) when this configuration set was created.

", - "EnvironmentDescription$DateCreated": "

The creation date for this environment.

" + "EnvironmentDescription$DateCreated": "

The creation date for this environment.

", + "PlatformDescription$DateCreated": "

The date when the platform was created.

" + } + }, + "CustomAmi": { + "base": "

A custom AMI available to platforms.

", + "refs": { + "CustomAmiList$member": null + } + }, + "CustomAmiList": { + "base": null, + "refs": { + "PlatformDescription$CustomAmiList": "

The custom AMIs supported by the platform.

" } }, "DNSCname": { @@ -454,10 +551,20 @@ "refs": { } }, + "DeletePlatformVersionRequest": { + "base": null, + "refs": { + } + }, + "DeletePlatformVersionResult": { + "base": null, + "refs": { + } + }, "DeleteSourceBundle": { "base": null, "refs": { - "DeleteApplicationVersionMessage$DeleteSourceBundle": "

Indicates whether to delete the associated source bundle from Amazon S3:

  • true: An attempt is made to delete the associated Amazon S3 source bundle specified at time of creation.

  • false: No action is taken on the Amazon S3 source bundle specified at time of creation.

Valid Values: true | false

" + "DeleteApplicationVersionMessage$DeleteSourceBundle": "

Set to true to delete the source bundle from your storage bucket. Otherwise, the application version is deleted only from Elastic Beanstalk and the source bundle remains in Amazon S3.

" } }, "Deployment": { @@ -473,7 +580,7 @@ } }, "DescribeApplicationVersionsMessage": { - "base": "

Result message containing a list of configuration descriptions.

", + "base": "

Request to describe application versions.

", "refs": { } }, @@ -483,7 +590,7 @@ } }, "DescribeConfigurationOptionsMessage": { - "base": "

Result message containig a list of application version descriptions.

", + "base": "

Result message containing a list of application version descriptions.

", "refs": { } }, @@ -498,7 +605,7 @@ } }, "DescribeEnvironmentHealthResult": { - "base": "

See the example below for a sample response.

", + "base": "

Health details for an AWS Elastic Beanstalk environment.

", "refs": { } }, @@ -538,12 +645,22 @@ } }, "DescribeInstancesHealthRequest": { - "base": "

See the example below to learn how to create a request body.

", + "base": "

Parameters for a call to DescribeInstancesHealth.

", "refs": { } }, "DescribeInstancesHealthResult": { - "base": "

See the example below for a sample response.

", + "base": "

Detailed health information about the Amazon EC2 instances in an AWS Elastic Beanstalk environment.

", + "refs": { + } + }, + "DescribePlatformVersionRequest": { + "base": null, + "refs": { + } + }, + "DescribePlatformVersionResult": { + "base": null, "refs": { } }, @@ -551,15 +668,16 @@ "base": null, "refs": { "ApplicationDescription$Description": "

User-defined description of the application.

", - "ApplicationVersionDescription$Description": "

The description of this application version.

", + "ApplicationVersionDescription$Description": "

The description of the application version.

", "ConfigurationSettingsDescription$Description": "

Describes this configuration set.

", "CreateApplicationMessage$Description": "

Describes the application.

", "CreateApplicationVersionMessage$Description": "

Describes this version.

", "CreateConfigurationTemplateMessage$Description": "

Describes this configuration.

", "CreateEnvironmentMessage$Description": "

Describes this environment.

", "EnvironmentDescription$Description": "

Describes this environment.

", + "PlatformDescription$Description": "

The description of the platform.

", "UpdateApplicationMessage$Description": "

A new description for the application.

Default: If not specified, AWS Elastic Beanstalk does not update the description.

", - "UpdateApplicationVersionMessage$Description": "

A new description for this release.

", + "UpdateApplicationVersionMessage$Description": "

A new description for this version.

", "UpdateConfigurationTemplateMessage$Description": "

A new description for the configuration.

", "UpdateEnvironmentMessage$Description": "

If this parameter is specified, AWS Elastic Beanstalk updates the description of this environment.

" } @@ -601,7 +719,7 @@ "EnvironmentHealth": { "base": null, "refs": { - "DescribeEnvironmentHealthResult$Status": "

Returns the health status value of the environment. For more information, see Health Colors and Statuses.

", + "DescribeEnvironmentHealthResult$Status": "

The environment's operational status. Ready, Launching, Updating, Terminating, or Terminated.

", "EnvironmentDescription$Health": "

Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment:

  • Red: Indicates the environment is not responsive. Occurs when three or more consecutive failures occur for an environment.

  • Yellow: Indicates that something is wrong. Occurs when two consecutive failures occur for an environment.

  • Green: Indicates the environment is healthy and fully functional.

  • Grey: Default health for a new environment. The environment is not fully launched and health checks have not started or health checks are suspended during an UpdateEnvironment or RestartEnvironement request.

Default: Grey

" } }, @@ -614,7 +732,7 @@ "EnvironmentHealthAttributes": { "base": null, "refs": { - "DescribeEnvironmentHealthRequest$AttributeNames": "

Specifies the response elements you wish to receive. If no attribute names are specified, AWS Elastic Beanstalk only returns the name of the environment.

" + "DescribeEnvironmentHealthRequest$AttributeNames": "

Specify the response elements to return. To retrieve all attributes, set to All. If no attribute names are specified, returns the name of the environment.

" } }, "EnvironmentHealthStatus": { @@ -628,11 +746,11 @@ "refs": { "AbortEnvironmentUpdateMessage$EnvironmentId": "

This specifies the ID of the environment with the in-progress update that you want to cancel.

", "CreateConfigurationTemplateMessage$EnvironmentId": "

The ID of the environment used with this configuration template.

", - "DescribeEnvironmentHealthRequest$EnvironmentId": "

Specifies the AWS Elastic Beanstalk environment ID.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", + "DescribeEnvironmentHealthRequest$EnvironmentId": "

Specify the environment by ID.

You must specify either this or an EnvironmentName, or both.

", "DescribeEnvironmentManagedActionHistoryRequest$EnvironmentId": "

The environment ID of the target environment.

", "DescribeEnvironmentResourcesMessage$EnvironmentId": "

The ID of the environment to retrieve AWS resource usage data.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", "DescribeEventsMessage$EnvironmentId": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this environment.

", - "DescribeInstancesHealthRequest$EnvironmentId": "

Specifies the AWS Elastic Beanstalk environment ID.

", + "DescribeInstancesHealthRequest$EnvironmentId": "

Specify the AWS Elastic Beanstalk environment by ID.

", "EnvironmentDescription$EnvironmentId": "

The ID of this environment.

", "EnvironmentIdList$member": null, "RebuildEnvironmentMessage$EnvironmentId": "

The ID of the environment to rebuild.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", @@ -689,15 +807,16 @@ "AbortEnvironmentUpdateMessage$EnvironmentName": "

This specifies the name of the environment with the in-progress update that you want to cancel.

", "ConfigurationSettingsDescription$EnvironmentName": "

If not null, the name of the environment for this configuration set.

", "CreateEnvironmentMessage$EnvironmentName": "

A unique name for the deployment environment. Used in the application URL.

Constraint: Must be from 4 to 40 characters in length. The name can contain only letters, numbers, and hyphens. It cannot start or end with a hyphen. This name must be unique in your account. If the specified name already exists, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.

", + "CreatePlatformVersionRequest$EnvironmentName": "

The name of the builder environment.

", "DeleteEnvironmentConfigurationMessage$EnvironmentName": "

The name of the environment to delete the draft configuration from.

", "DescribeConfigurationOptionsMessage$EnvironmentName": "

The name of the environment whose configuration options you want to describe.

", "DescribeConfigurationSettingsMessage$EnvironmentName": "

The name of the environment to describe.

Condition: You must specify either this or a TemplateName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", - "DescribeEnvironmentHealthRequest$EnvironmentName": "

Specifies the AWS Elastic Beanstalk environment name.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", - "DescribeEnvironmentHealthResult$EnvironmentName": "

The AWS Elastic Beanstalk environment name.

", + "DescribeEnvironmentHealthRequest$EnvironmentName": "

Specify the environment by name.

You must specify either this or an EnvironmentName, or both.

", + "DescribeEnvironmentHealthResult$EnvironmentName": "

The environment's name.

", "DescribeEnvironmentManagedActionHistoryRequest$EnvironmentName": "

The name of the target environment.

", "DescribeEnvironmentResourcesMessage$EnvironmentName": "

The name of the environment to retrieve AWS resource usage data.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", "DescribeEventsMessage$EnvironmentName": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this environment.

", - "DescribeInstancesHealthRequest$EnvironmentName": "

Specifies the AWS Elastic Beanstalk environment name.

", + "DescribeInstancesHealthRequest$EnvironmentName": "

Specify the AWS Elastic Beanstalk environment by name.

", "EnvironmentDescription$EnvironmentName": "

The name of this environment.

", "EnvironmentNamesList$member": null, "EnvironmentResourceDescription$EnvironmentName": "

The name of the environment.

", @@ -818,6 +937,12 @@ "UpdateEnvironmentMessage$GroupName": "

The name of the group to which the target environment belongs. Specify a group name only if the environment's name is specified in an environment manifest and not with the environment name or environment ID parameters. See Environment Manifest (env.yaml) for details.

" } }, + "ImageId": { + "base": null, + "refs": { + "CustomAmi$ImageId": "

THe ID of the image used to create the custom AMI.

" + } + }, "IncludeDeleted": { "base": null, "refs": { @@ -839,13 +964,13 @@ "InstanceHealthList": { "base": null, "refs": { - "DescribeInstancesHealthResult$InstanceHealthList": "

Contains the response body with information about the health of the instance.

" + "DescribeInstancesHealthResult$InstanceHealthList": "

Detailed health information about each instance.

" } }, "InstanceHealthSummary": { "base": "

Represents summary information about the health of an instance. For more information, see Health Colors and Statuses.

", "refs": { - "DescribeEnvironmentHealthResult$InstancesHealth": null + "DescribeEnvironmentHealthResult$InstancesHealth": "

Summary health information for the instances in the environment.

" } }, "InstanceId": { @@ -869,7 +994,7 @@ "InstancesHealthAttributes": { "base": null, "refs": { - "DescribeInstancesHealthRequest$AttributeNames": "

Specifies the response elements you wish to receive. If no attribute names are specified, AWS Elastic Beanstalk only returns a list of instances.

" + "DescribeInstancesHealthRequest$AttributeNames": "

Specifies the response elements you wish to receive. To retrieve all attributes, set to All. If no attribute names are specified, returns a list of instances.

" } }, "InsufficientPrivilegesException": { @@ -892,7 +1017,7 @@ "Latency": { "base": "

Represents the average latency for the slowest X percent of requests over the last 10 seconds.

", "refs": { - "ApplicationMetrics$Latency": "

Represents the average latency for the slowest X percent of requests over the last 10 seconds. Latencies are in seconds with one milisecond resolution.

" + "ApplicationMetrics$Latency": "

Represents the average latency for the slowest X percent of requests over the last 10 seconds. Latencies are in seconds with one millisecond resolution.

" } }, "LaunchConfiguration": { @@ -918,6 +1043,16 @@ "refs": { } }, + "ListPlatformVersionsRequest": { + "base": null, + "refs": { + } + }, + "ListPlatformVersionsResult": { + "base": null, + "refs": { + } + }, "Listener": { "base": "

Describes the properties of a Listener for the LoadBalancer.

", "refs": { @@ -927,7 +1062,7 @@ "LoadAverage": { "base": null, "refs": { - "SystemStatus$LoadAverage": "

Load average in the last 1-minute and 5-minute periods. For more information, see Operating System Metrics.

" + "SystemStatus$LoadAverage": "

Load average in the last 1-minute, 5-minute, and 15-minute periods. For more information, see Operating System Metrics.

" } }, "LoadAverageValue": { @@ -960,6 +1095,12 @@ "LoadBalancerDescription$Listeners": "

A list of Listeners used by the LoadBalancer.

" } }, + "Maintainer": { + "base": null, + "refs": { + "PlatformDescription$Maintainer": "

Information about the maintainer of the platform.

" + } + }, "ManagedAction": { "base": "

The record of an upcoming or in-progress managed action.

", "refs": { @@ -989,6 +1130,18 @@ "DescribeEnvironmentManagedActionsResult$ManagedActions": "

A list of upcoming and in-progress managed actions.

" } }, + "MaxAgeRule": { + "base": "

A lifecycle rule that deletes application versions after the specified number of days.

", + "refs": { + "ApplicationVersionLifecycleConfig$MaxAgeRule": "

Specify a max age rule to restrict the length of time that application versions are retained for an application.

" + } + }, + "MaxCountRule": { + "base": "

A lifecycle rule that deletes the oldest application version when the maximum count is exceeded.

", + "refs": { + "ApplicationVersionLifecycleConfig$MaxCountRule": "

Specify a max count rule to restrict the number of application versions that are retained for an application.

" + } + }, "MaxRecords": { "base": null, "refs": { @@ -1005,8 +1158,15 @@ "NextToken": { "base": null, "refs": { - "DescribeInstancesHealthRequest$NextToken": "

Specifies the next token of the request.

", - "DescribeInstancesHealthResult$NextToken": "

The next token.

" + "DescribeInstancesHealthRequest$NextToken": "

Specify the pagination token returned by a previous call.

", + "DescribeInstancesHealthResult$NextToken": "

Pagination token for the next page of results, if available.

" + } + }, + "NonEmptyString": { + "base": null, + "refs": { + "BuildConfiguration$CodeBuildServiceRole": "

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.

", + "BuildConfiguration$Image": "

The ID of the Docker image to use for this build project.

" } }, "NullableDouble": { @@ -1053,6 +1213,20 @@ "Deployment$DeploymentId": "

The ID of the deployment. This number increases by one each time that you deploy source code or change instance configuration settings.

" } }, + "OperatingSystemName": { + "base": null, + "refs": { + "PlatformDescription$OperatingSystemName": "

The operating system used by the platform.

", + "PlatformSummary$OperatingSystemName": "

The operating system used by the platform.

" + } + }, + "OperatingSystemVersion": { + "base": null, + "refs": { + "PlatformDescription$OperatingSystemVersion": "

The version of the operating system used by the platform.

", + "PlatformSummary$OperatingSystemVersion": "

The version of the operating system used by the platform.

" + } + }, "OperationInProgressException": { "base": "

Unable to perform the specified operation because another operation that effects an element in this activity is already in progress.

", "refs": { @@ -1064,7 +1238,7 @@ "ConfigurationOptionDescription$Namespace": "

A unique namespace identifying the option's associated AWS resource.

", "ConfigurationOptionSetting$Namespace": "

A unique namespace identifying the option's associated AWS resource.

", "OptionSpecification$Namespace": "

A unique namespace identifying the option's associated AWS resource.

", - "ValidationMessage$Namespace": "

" + "ValidationMessage$Namespace": "

The namespace to which the option belongs.

" } }, "OptionRestrictionMaxLength": { @@ -1106,6 +1280,150 @@ "UpdateEnvironmentMessage$OptionsToRemove": "

A list of custom user-defined configuration options to remove from the configuration set for this environment.

" } }, + "PlatformArn": { + "base": null, + "refs": { + "ConfigurationOptionsDescription$PlatformArn": "

The ARN of the custom platform.

", + "ConfigurationSettingsDescription$PlatformArn": "

The ARN of the custom platform.

", + "CreateConfigurationTemplateMessage$PlatformArn": "

The ARN of the custome platform.

", + "CreateEnvironmentMessage$PlatformArn": "

The ARN of the custom platform.

", + "DeletePlatformVersionRequest$PlatformArn": "

The ARN of the version of the custom platform.

", + "DescribeConfigurationOptionsMessage$PlatformArn": "

The ARN of the custom platform.

", + "DescribeEventsMessage$PlatformArn": "

The ARN of the version of the custom platform.

", + "DescribePlatformVersionRequest$PlatformArn": "

The ARN of the version of the platform.

", + "EnvironmentDescription$PlatformArn": "

The ARN of the custom platform.

", + "EventDescription$PlatformArn": "

The ARN of the custom platform.

", + "PlatformDescription$PlatformArn": "

The ARN of the platform.

", + "PlatformSummary$PlatformArn": "

The ARN of the platform.

", + "UpdateEnvironmentMessage$PlatformArn": "

The ARN of the platform, if used.

" + } + }, + "PlatformCategory": { + "base": null, + "refs": { + "PlatformDescription$PlatformCategory": "

The category of the platform.

", + "PlatformSummary$PlatformCategory": "

The category of platform.

" + } + }, + "PlatformDescription": { + "base": "

Detailed information about a platform.

", + "refs": { + "DescribePlatformVersionResult$PlatformDescription": "

Detailed information about the version of the platform.

" + } + }, + "PlatformFilter": { + "base": "

Specify criteria to restrict the results when listing custom platforms.

The filter is evaluated as the expression:

Type Operator Values[i]

", + "refs": { + "PlatformFilters$member": null + } + }, + "PlatformFilterOperator": { + "base": null, + "refs": { + "PlatformFilter$Operator": "

The operator to apply to the Type with each of the Values.

Valid Values: = (equal to) | != (not equal to) | < (less than) | <= (less than or equal to) | > (greater than) | >= (greater than or equal to) | contains | begins_with | ends_with

" + } + }, + "PlatformFilterType": { + "base": null, + "refs": { + "PlatformFilter$Type": "

The custom platform attribute to which the filter values are applied.

Valid Values: PlatformName | PlatformVersion | PlatformStatus | PlatformOwner

" + } + }, + "PlatformFilterValue": { + "base": null, + "refs": { + "PlatformFilterValueList$member": null + } + }, + "PlatformFilterValueList": { + "base": null, + "refs": { + "PlatformFilter$Values": "

The list of values applied to the custom platform attribute.

" + } + }, + "PlatformFilters": { + "base": null, + "refs": { + "ListPlatformVersionsRequest$Filters": "

List only the platforms where the platform member value relates to one of the supplied values.

" + } + }, + "PlatformFramework": { + "base": "

A framework supported by the custom platform.

", + "refs": { + "PlatformFrameworks$member": null + } + }, + "PlatformFrameworks": { + "base": null, + "refs": { + "PlatformDescription$Frameworks": "

The frameworks supported by the platform.

" + } + }, + "PlatformMaxRecords": { + "base": null, + "refs": { + "ListPlatformVersionsRequest$MaxRecords": "

The maximum number of platform values returned in one call.

" + } + }, + "PlatformName": { + "base": null, + "refs": { + "CreatePlatformVersionRequest$PlatformName": "

The name of your custom platform.

", + "PlatformDescription$PlatformName": "

The name of the platform.

" + } + }, + "PlatformOwner": { + "base": null, + "refs": { + "PlatformDescription$PlatformOwner": "

The AWS account ID of the person who created the platform.

", + "PlatformSummary$PlatformOwner": "

The AWS account ID of the person who created the platform.

" + } + }, + "PlatformProgrammingLanguage": { + "base": "

A programming language supported by the platform.

", + "refs": { + "PlatformProgrammingLanguages$member": null + } + }, + "PlatformProgrammingLanguages": { + "base": null, + "refs": { + "PlatformDescription$ProgrammingLanguages": "

The programming languages supported by the platform.

" + } + }, + "PlatformStatus": { + "base": null, + "refs": { + "PlatformDescription$PlatformStatus": "

The status of the platform.

", + "PlatformSummary$PlatformStatus": "

The status of the platform. You can create an environment from the platform once it is ready.

" + } + }, + "PlatformSummary": { + "base": "

Detailed information about a platform.

", + "refs": { + "CreatePlatformVersionResult$PlatformSummary": "

Detailed information about the new version of the custom platform.

", + "DeletePlatformVersionResult$PlatformSummary": "

Detailed information about the version of the custom platform.

", + "PlatformSummaryList$member": null + } + }, + "PlatformSummaryList": { + "base": null, + "refs": { + "ListPlatformVersionsResult$PlatformSummaryList": "

Detailed information about the platforms.

" + } + }, + "PlatformVersion": { + "base": null, + "refs": { + "CreatePlatformVersionRequest$PlatformVersion": "

The number, such as 1.0.2, for the new platform version.

", + "PlatformDescription$PlatformVersion": "

The version of the platform.

" + } + }, + "PlatformVersionStillReferencedException": { + "base": "

You cannot delete the platform version because there are still environments running on it.

", + "refs": { + } + }, "Queue": { "base": "

Describes a queue.

", "refs": { @@ -1126,8 +1444,8 @@ "RefreshedAt": { "base": null, "refs": { - "DescribeEnvironmentHealthResult$RefreshedAt": "

The date and time the information was last refreshed.

", - "DescribeInstancesHealthResult$RefreshedAt": "

The date and time the information was last refreshed.

" + "DescribeEnvironmentHealthResult$RefreshedAt": "

The date and time that the health information was retrieved.

", + "DescribeInstancesHealthResult$RefreshedAt": "

The date and time that the health information was retrieved.

" } }, "RegexLabel": { @@ -1206,14 +1524,15 @@ } }, "S3Location": { - "base": "

A specification of a location in Amazon S3.

", + "base": "

The bucket and key of an item stored in Amazon S3.

", "refs": { - "ApplicationVersionDescription$SourceBundle": "

The location where the source bundle is located for this version.

", - "CreateApplicationVersionMessage$SourceBundle": "

The Amazon S3 bucket and key that identify the location of the source bundle for this version.

If data found at the Amazon S3 location exceeds the maximum allowed source bundle size, AWS Elastic Beanstalk returns an InvalidParameterValue error. The maximum size allowed is 512 MB.

Default: If not specified, AWS Elastic Beanstalk uses a sample application. If only partially specified (for example, a bucket is provided but not the key) or if no data is found at the Amazon S3 location, AWS Elastic Beanstalk returns an InvalidParameterCombination error.

" + "ApplicationVersionDescription$SourceBundle": "

The storage location of the application version's source bundle in Amazon S3.

", + "CreateApplicationVersionMessage$SourceBundle": "

The Amazon S3 bucket and key that identify the location of the source bundle for this version.

The Amazon S3 bucket must be in the same region as the environment.

Specify a source bundle in S3 or a commit in an AWS CodeCommit repository (with SourceBuildInformation), but not both. If neither SourceBundle nor SourceBuildInformation are provided, Elastic Beanstalk uses a sample application.

", + "CreatePlatformVersionRequest$PlatformDefinitionBundle": "

The location of the platform definition archive in Amazon S3.

" } }, "S3LocationNotInServiceRegionException": { - "base": "

The specified S3 bucket does not belong to the S3 region in which the service is running.

", + "base": "

The specified S3 bucket does not belong to the S3 region in which the service is running. The following regions are supported:

  • IAD/us-east-1

  • PDX/us-west-2

  • DUB/eu-west-1

", "refs": { } }, @@ -1229,7 +1548,7 @@ } }, "SingleInstanceHealth": { - "base": "

Represents health information from the specified instance that belongs to the AWS Elastic Beanstalk environment. Use the InstanceId property to specify the application instance for which you'd like to return data.

", + "base": "

Detailed health information about an Amazon EC2 instance in your Elastic Beanstalk environment.

", "refs": { "InstanceHealthList$member": null } @@ -1253,18 +1572,19 @@ "ConfigurationOptionsDescription$SolutionStackName": "

The name of the solution stack these configuration options belong to.

", "ConfigurationSettingsDescription$SolutionStackName": "

The name of the solution stack this configuration set uses.

", "CreateConfigurationTemplateMessage$SolutionStackName": "

The name of the solution stack used by this configuration. The solution stack specifies the operating system, architecture, and application server for a configuration template. It determines the set of configuration options as well as the possible and default values.

Use ListAvailableSolutionStacks to obtain a list of available solution stacks.

A solution stack name or a source configuration parameter must be specified, otherwise AWS Elastic Beanstalk returns an InvalidParameterValue error.

If a solution stack name is not specified and the source configuration parameter is specified, AWS Elastic Beanstalk uses the same solution stack as the source configuration template.

", - "CreateEnvironmentMessage$SolutionStackName": "

This is an alternative to specifying a template name. If specified, AWS Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack.

Condition: You must specify either this or a TemplateName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

", + "CreateEnvironmentMessage$SolutionStackName": "

This is an alternative to specifying a template name. If specified, AWS Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack.

", "DescribeConfigurationOptionsMessage$SolutionStackName": "

The name of the solution stack whose configuration options you want to describe.

", "EnvironmentDescription$SolutionStackName": "

The name of the SolutionStack deployed with this environment.

", + "PlatformDescription$SolutionStackName": "

The name of the solution stack used by the platform.

", "SolutionStackDescription$SolutionStackName": "

The name of the solution stack.

", "UpdateEnvironmentMessage$SolutionStackName": "

This specifies the platform version that the environment will run after the environment is updated.

" } }, "SourceBuildInformation": { - "base": null, + "base": "

Location of the source code for an application version.

", "refs": { - "ApplicationVersionDescription$SourceBuildInformation": null, - "CreateApplicationVersionMessage$SourceBuildInformation": null + "ApplicationVersionDescription$SourceBuildInformation": "

If the version's source code was retrieved from AWS CodeCommit, the location of the source code for the application version.

", + "CreateApplicationVersionMessage$SourceBuildInformation": "

Specify a commit in an AWS CodeCommit Git repository to use as the source code for the application version.

" } }, "SourceBundleDeletionException": { @@ -1281,19 +1601,19 @@ "SourceLocation": { "base": null, "refs": { - "SourceBuildInformation$SourceLocation": null + "SourceBuildInformation$SourceLocation": "

The location of the source code, as a formatted string, depending on the value of SourceRepository

  • For CodeCommit, the format is the repository name and commit ID, separated by a forward slash. For example, my-git-repo/265cfa0cf6af46153527f55d6503ec030551f57a.

  • For S3, the format is the S3 bucket name and object key, separated by a forward slash. For example, my-s3-bucket/Folders/my-source-file.

" } }, "SourceRepository": { "base": null, "refs": { - "SourceBuildInformation$SourceRepository": null + "SourceBuildInformation$SourceRepository": "

Location where the repository is stored.

  • CodeCommit

  • S3

" } }, "SourceType": { "base": null, "refs": { - "SourceBuildInformation$SourceType": null + "SourceBuildInformation$SourceType": "

The type of repository.

  • Git

  • Zip

" } }, "StatusCodes": { @@ -1305,16 +1625,19 @@ "String": { "base": null, "refs": { + "ApplicationResourceLifecycleConfig$ServiceRole": "

The ARN of an IAM service role that Elastic Beanstalk has permission to assume.

", + "ApplicationVersionDescription$BuildArn": "

Reference to the artifact from the AWS CodeBuild build.

", "ApplyEnvironmentManagedActionRequest$EnvironmentName": "

The name of the target environment.

", "ApplyEnvironmentManagedActionRequest$EnvironmentId": "

The environment ID of the target environment.

", "ApplyEnvironmentManagedActionRequest$ActionId": "

The action ID of the scheduled managed action to execute.

", "ApplyEnvironmentManagedActionResult$ActionId": "

The action ID of the managed action.

", "ApplyEnvironmentManagedActionResult$ActionDescription": "

A description of the managed action.

", "ApplyEnvironmentManagedActionResult$Status": "

The status of the managed action.

", + "BuildConfiguration$ArtifactName": "

The name of the artifact of the CodeBuild build. If provided, Elastic Beanstalk stores the build artifact in the S3 location S3-bucket/resources/application-name/codebuild/codebuild-version-label-artifact-name.zip. If not provided, Elastic Beanstalk stores the build artifact in the S3 location S3-bucket/resources/application-name/codebuild/codebuild-version-label.zip.

", "Deployment$VersionLabel": "

The version label of the application version in the deployment.

", "Deployment$Status": "

The status of the deployment:

  • In Progress : The deployment is in progress.

  • Deployed : The deployment succeeded.

  • Failed : The deployment failed.

", - "DescribeEnvironmentHealthResult$HealthStatus": "

Contains the response body with information about the health of the environment.

", - "DescribeEnvironmentHealthResult$Color": "

Returns the color indicator that tells you information about the health of the environment. For more information, see Health Colors and Statuses.

", + "DescribeEnvironmentHealthResult$HealthStatus": "

The health status of the environment. For example, Ok.

", + "DescribeEnvironmentHealthResult$Color": "

The health color of the environment.

", "DescribeEnvironmentManagedActionHistoryRequest$NextToken": "

The pagination token returned by a previous request.

", "DescribeEnvironmentManagedActionHistoryResult$NextToken": "

A pagination token that you pass to DescribeEnvironmentManagedActionHistory to get the next page of results.

", "DescribeEnvironmentManagedActionsRequest$EnvironmentName": "

The name of the target environment.

", @@ -1332,6 +1655,10 @@ "ManagedActionHistoryItem$ActionId": "

A unique identifier for the managed action.

", "ManagedActionHistoryItem$ActionDescription": "

A description of the managed action.

", "ManagedActionHistoryItem$FailureDescription": "

If the action failed, a description of the failure.

", + "PlatformFramework$Name": "

The name of the framework.

", + "PlatformFramework$Version": "

The version of the framework.

", + "PlatformProgrammingLanguage$Name": "

The name of the programming language.

", + "PlatformProgrammingLanguage$Version": "

The version of the programming language.

", "Queue$Name": "

The name of the queue.

", "Queue$URL": "

The URL of the queue.

", "SingleInstanceHealth$HealthStatus": "

Returns the health status of the specified instance. For more information, see Health Colors and Statuses.

", @@ -1340,15 +1667,41 @@ "SingleInstanceHealth$InstanceType": "

The instance's type.

" } }, + "SupportedAddon": { + "base": null, + "refs": { + "SupportedAddonList$member": null + } + }, + "SupportedAddonList": { + "base": null, + "refs": { + "PlatformDescription$SupportedAddonList": "

The additions supported by the platform.

", + "PlatformSummary$SupportedAddonList": "

The additions associated with the platform.

" + } + }, + "SupportedTier": { + "base": null, + "refs": { + "SupportedTierList$member": null + } + }, + "SupportedTierList": { + "base": null, + "refs": { + "PlatformDescription$SupportedTierList": "

The tiers supported by the platform.

", + "PlatformSummary$SupportedTierList": "

The tiers in which the platform runs.

" + } + }, "SwapEnvironmentCNAMEsMessage": { "base": "

Swaps the CNAMEs of two environments.

", "refs": { } }, "SystemStatus": { - "base": "

Represents CPU utilization and load average information for applications running in the specified environment.

", + "base": "

CPU utilization and load average metrics for an Amazon EC2 instance.

", "refs": { - "SingleInstanceHealth$System": null + "SingleInstanceHealth$System": "

Operating system metrics from the instance.

" } }, "Tag": { @@ -1418,7 +1771,9 @@ "ApplicationVersionDescriptionsMessage$NextToken": "

For a paginated request, the token that you can pass in a subsequent request to get the next page.

", "DescribeApplicationVersionsMessage$NextToken": "

Specify a next token to retrieve the next page in a paginated request.

", "DescribeEventsMessage$NextToken": "

Pagination token. If specified, the events return the next batch of results.

", - "EventDescriptionsMessage$NextToken": "

If returned, this indicates that there are more results to obtain. Use this token in the next DescribeEvents call to get the next batch of events.

" + "EventDescriptionsMessage$NextToken": "

If returned, this indicates that there are more results to obtain. Use this token in the next DescribeEvents call to get the next batch of events.

", + "ListPlatformVersionsRequest$NextToken": "

The starting index into the remaining list of platforms. Use the NextToken value from a previous ListPlatformVersion call.

", + "ListPlatformVersionsResult$NextToken": "

The starting index into the remaining list of platforms. if this value is not null, you can use it in a subsequent ListPlatformVersion call.

" } }, "TooManyApplicationVersionsException": { @@ -1446,6 +1801,11 @@ "refs": { } }, + "TooManyPlatformsException": { + "base": "

You have exceeded the maximum number of allowed platforms associated with the account.

", + "refs": { + } + }, "Trigger": { "base": "

Describes a trigger.

", "refs": { @@ -1463,6 +1823,11 @@ "refs": { } }, + "UpdateApplicationResourceLifecycleMessage": { + "base": null, + "refs": { + } + }, "UpdateApplicationVersionMessage": { "base": "

", "refs": { @@ -1479,7 +1844,8 @@ "ApplicationDescription$DateUpdated": "

The date when the application was last modified.

", "ApplicationVersionDescription$DateUpdated": "

The last modified date of the application version.

", "ConfigurationSettingsDescription$DateUpdated": "

The date (in UTC time) when this configuration set was last modified.

", - "EnvironmentDescription$DateUpdated": "

The last modified date for this environment.

" + "EnvironmentDescription$DateUpdated": "

The last modified date for this environment.

", + "PlatformDescription$DateUpdated": "

The date when the platform was last updated.

" } }, "UpdateEnvironmentMessage": { @@ -1525,7 +1891,7 @@ "VersionLabel": { "base": null, "refs": { - "ApplicationVersionDescription$VersionLabel": "

A label uniquely identifying the version for the associated application.

", + "ApplicationVersionDescription$VersionLabel": "

A unique identifier for the application version.

", "CreateApplicationVersionMessage$VersionLabel": "

A label identifying this version.

Constraint: Must be unique per application. If an application version already exists with this label for the specified application, AWS Elastic Beanstalk returns an InvalidParameterValue error.

", "CreateEnvironmentMessage$VersionLabel": "

The name of the application version to deploy.

If the specified application has no associated application versions, AWS Elastic Beanstalk UpdateEnvironment returns an InvalidParameterValue error.

Default: If not specified, AWS Elastic Beanstalk attempts to launch the sample application in the container.

", "DeleteApplicationVersionMessage$VersionLabel": "

The label of the version to delete.

", @@ -1533,7 +1899,7 @@ "DescribeEventsMessage$VersionLabel": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this application version.

", "EnvironmentDescription$VersionLabel": "

The application version deployed in this environment.

", "EventDescription$VersionLabel": "

The release label for the application version associated with this event.

", - "UpdateApplicationVersionMessage$VersionLabel": "

The name of the version to update.

If no application version is found with this label, UpdateApplication returns an InvalidParameterValue error.

", + "UpdateApplicationVersionMessage$VersionLabel": "

The name of the version to update.

If no application version is found with this label, UpdateApplication returns an InvalidParameterValue error.

", "UpdateEnvironmentMessage$VersionLabel": "

If this parameter is specified, AWS Elastic Beanstalk deploys the named application version to the environment. If no such application version is found, returns an InvalidParameterValue error.

", "VersionLabels$member": null, "VersionLabelsList$member": null @@ -1549,7 +1915,13 @@ "base": null, "refs": { "ApplicationDescription$Versions": "

The names of the versions for this application.

", - "DescribeApplicationVersionsMessage$VersionLabels": "

If specified, restricts the returned descriptions to only include ones that have the specified version labels.

" + "DescribeApplicationVersionsMessage$VersionLabels": "

Specify a version label to show a specific application version.

" + } + }, + "VirtualizationType": { + "base": null, + "refs": { + "CustomAmi$VirtualizationType": "

The type of virtualization used to create the custom AMI.

" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/paginators-1.json index 383ce8d6f..b4e93b3d8 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/paginators-1.json @@ -14,12 +14,12 @@ }, "DescribeEvents": { "input_token": "NextToken", - "output_token": "NextToken", "limit_key": "MaxRecords", + "output_token": "NextToken", "result_key": "Events" }, "ListAvailableSolutionStacks": { "result_key": "SolutionStacks" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticfilesystem/2015-02-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticfilesystem/2015-02-01/api-2.json index 84193647d..ee0a4d4f4 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticfilesystem/2015-02-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticfilesystem/2015-02-01/api-2.json @@ -6,7 +6,8 @@ "protocol":"rest-json", "serviceAbbreviation":"EFS", "serviceFullName":"Amazon Elastic File System", - "signatureVersion":"v4" + "signatureVersion":"v4", + "uid":"elasticfilesystem-2015-02-01" }, "operations":{ "CreateFileSystem":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticfilesystem/2015-02-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticfilesystem/2015-02-01/docs-2.json index 60fc16f45..a116bafc2 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticfilesystem/2015-02-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticfilesystem/2015-02-01/docs-2.json @@ -3,7 +3,7 @@ "service": "Amazon Elastic File System

Amazon Elastic File System (Amazon EFS) provides simple, scalable file storage for use with Amazon EC2 instances in the AWS Cloud. With Amazon EFS, storage capacity is elastic, growing and shrinking automatically as you add and remove files, so your applications have the storage they need, when they need it. For more information, see the User Guide.

", "operations": { "CreateFileSystem": "

Creates a new, empty file system. The operation requires a creation token in the request that Amazon EFS uses to ensure idempotent creation (calling the operation with same creation token has no effect). If a file system does not currently exist that is owned by the caller's AWS account with the specified creation token, this operation does the following:

  • Creates a new, empty file system. The file system will have an Amazon EFS assigned ID, and an initial lifecycle state creating.

  • Returns with the description of the created file system.

Otherwise, this operation returns a FileSystemAlreadyExists error with the ID of the existing file system.

For basic use cases, you can use a randomly generated UUID for the creation token.

The idempotent operation allows you to retry a CreateFileSystem call without risk of creating an extra file system. This can happen when an initial call fails in a way that leaves it uncertain whether or not a file system was actually created. An example might be that a transport level timeout occurred or your connection was reset. As long as you use the same creation token, if the initial call had succeeded in creating a file system, the client can learn of its existence from the FileSystemAlreadyExists error.

The CreateFileSystem call returns while the file system's lifecycle state is still creating. You can check the file system creation status by calling the DescribeFileSystems operation, which among other things returns the file system state.

This operation also takes an optional PerformanceMode parameter that you choose for your file system. We recommend generalPurpose performance mode for most file systems. File systems using the maxIO performance mode can scale to higher levels of aggregate throughput and operations per second with a tradeoff of slightly higher latencies for most file operations. The performance mode can't be changed after the file system has been created. For more information, see Amazon EFS: Performance Modes.

After the file system is fully created, Amazon EFS sets its lifecycle state to available, at which point you can create one or more mount targets for the file system in your VPC. For more information, see CreateMountTarget. You mount your Amazon EFS file system on an EC2 instances in your VPC via the mount target. For more information, see Amazon EFS: How it Works.

This operation requires permissions for the elasticfilesystem:CreateFileSystem action.

", - "CreateMountTarget": "

Creates a mount target for a file system. You can then mount the file system on EC2 instances via the mount target.

You can create one mount target in each Availability Zone in your VPC. All EC2 instances in a VPC within a given Availability Zone share a single mount target for a given file system. If you have multiple subnets in an Availability Zone, you create a mount target in one of the subnets. EC2 instances do not need to be in the same subnet as the mount target in order to access their file system. For more information, see Amazon EFS: How it Works.

In the request, you also specify a file system ID for which you are creating the mount target and the file system's lifecycle state must be available. For more information, see DescribeFileSystems.

In the request, you also provide a subnet ID, which determines the following:

  • VPC in which Amazon EFS creates the mount target

  • Availability Zone in which Amazon EFS creates the mount target

  • IP address range from which Amazon EFS selects the IP address of the mount target (if you don't specify an IP address in the request)

After creating the mount target, Amazon EFS returns a response that includes, a MountTargetId and an IpAddress. You use this IP address when mounting the file system in an EC2 instance. You can also use the mount target's DNS name when mounting the file system. The EC2 instance on which you mount the file system via the mount target can resolve the mount target's DNS name to its IP address. For more information, see How it Works: Implementation Overview.

Note that you can create mount targets for a file system in only one VPC, and there can be only one mount target per Availability Zone. That is, if the file system already has one or more mount targets created for it, the subnet specified in the request to add another mount target must meet the following requirements:

  • Must belong to the same VPC as the subnets of the existing mount targets

  • Must not be in the same Availability Zone as any of the subnets of the existing mount targets

If the request satisfies the requirements, Amazon EFS does the following:

  • Creates a new mount target in the specified subnet.

  • Also creates a new network interface in the subnet as follows:

    • If the request provides an IpAddress, Amazon EFS assigns that IP address to the network interface. Otherwise, Amazon EFS assigns a free address in the subnet (in the same way that the Amazon EC2 CreateNetworkInterface call does when a request does not specify a primary private IP address).

    • If the request provides SecurityGroups, this network interface is associated with those security groups. Otherwise, it belongs to the default security group for the subnet's VPC.

    • Assigns the description Mount target fsmt-id for file system fs-id where fsmt-id is the mount target ID, and fs-id is the FileSystemId.

    • Sets the requesterManaged property of the network interface to true, and the requesterId value to EFS.

    Each Amazon EFS mount target has one corresponding requestor-managed EC2 network interface. After the network interface is created, Amazon EFS sets the NetworkInterfaceId field in the mount target's description to the network interface ID, and the IpAddress field to its address. If network interface creation fails, the entire CreateMountTarget operation fails.

The CreateMountTarget call returns only after creating the network interface, but while the mount target state is still creating. You can check the mount target creation status by calling the DescribeFileSystems operation, which among other things returns the mount target state.

We recommend you create a mount target in each of the Availability Zones. There are cost considerations for using a file system in an Availability Zone through a mount target created in another Availability Zone. For more information, see Amazon EFS. In addition, by always using a mount target local to the instance's Availability Zone, you eliminate a partial failure scenario. If the Availability Zone in which your mount target is created goes down, then you won't be able to access your file system through that mount target.

This operation requires permissions for the following action on the file system:

  • elasticfilesystem:CreateMountTarget

This operation also requires permissions for the following Amazon EC2 actions:

  • ec2:DescribeSubnets

  • ec2:DescribeNetworkInterfaces

  • ec2:CreateNetworkInterface

", + "CreateMountTarget": "

Creates a mount target for a file system. You can then mount the file system on EC2 instances via the mount target.

You can create one mount target in each Availability Zone in your VPC. All EC2 instances in a VPC within a given Availability Zone share a single mount target for a given file system. If you have multiple subnets in an Availability Zone, you create a mount target in one of the subnets. EC2 instances do not need to be in the same subnet as the mount target in order to access their file system. For more information, see Amazon EFS: How it Works.

In the request, you also specify a file system ID for which you are creating the mount target and the file system's lifecycle state must be available. For more information, see DescribeFileSystems.

In the request, you also provide a subnet ID, which determines the following:

  • VPC in which Amazon EFS creates the mount target

  • Availability Zone in which Amazon EFS creates the mount target

  • IP address range from which Amazon EFS selects the IP address of the mount target (if you don't specify an IP address in the request)

After creating the mount target, Amazon EFS returns a response that includes, a MountTargetId and an IpAddress. You use this IP address when mounting the file system in an EC2 instance. You can also use the mount target's DNS name when mounting the file system. The EC2 instance on which you mount the file system via the mount target can resolve the mount target's DNS name to its IP address. For more information, see How it Works: Implementation Overview.

Note that you can create mount targets for a file system in only one VPC, and there can be only one mount target per Availability Zone. That is, if the file system already has one or more mount targets created for it, the subnet specified in the request to add another mount target must meet the following requirements:

  • Must belong to the same VPC as the subnets of the existing mount targets

  • Must not be in the same Availability Zone as any of the subnets of the existing mount targets

If the request satisfies the requirements, Amazon EFS does the following:

  • Creates a new mount target in the specified subnet.

  • Also creates a new network interface in the subnet as follows:

    • If the request provides an IpAddress, Amazon EFS assigns that IP address to the network interface. Otherwise, Amazon EFS assigns a free address in the subnet (in the same way that the Amazon EC2 CreateNetworkInterface call does when a request does not specify a primary private IP address).

    • If the request provides SecurityGroups, this network interface is associated with those security groups. Otherwise, it belongs to the default security group for the subnet's VPC.

    • Assigns the description Mount target fsmt-id for file system fs-id where fsmt-id is the mount target ID, and fs-id is the FileSystemId.

    • Sets the requesterManaged property of the network interface to true, and the requesterId value to EFS.

    Each Amazon EFS mount target has one corresponding requester-managed EC2 network interface. After the network interface is created, Amazon EFS sets the NetworkInterfaceId field in the mount target's description to the network interface ID, and the IpAddress field to its address. If network interface creation fails, the entire CreateMountTarget operation fails.

The CreateMountTarget call returns only after creating the network interface, but while the mount target state is still creating, you can check the mount target creation status by calling the DescribeMountTargets operation, which among other things returns the mount target state.

We recommend you create a mount target in each of the Availability Zones. There are cost considerations for using a file system in an Availability Zone through a mount target created in another Availability Zone. For more information, see Amazon EFS. In addition, by always using a mount target local to the instance's Availability Zone, you eliminate a partial failure scenario. If the Availability Zone in which your mount target is created goes down, then you won't be able to access your file system through that mount target.

This operation requires permissions for the following action on the file system:

  • elasticfilesystem:CreateMountTarget

This operation also requires permissions for the following Amazon EC2 actions:

  • ec2:DescribeSubnets

  • ec2:DescribeNetworkInterfaces

  • ec2:CreateNetworkInterface

", "CreateTags": "

Creates or overwrites tags associated with a file system. Each tag is a key-value pair. If a tag key specified in the request already exists on the file system, this operation overwrites its value with the value provided in the request. If you add the Name tag to your file system, Amazon EFS returns it in the response to the DescribeFileSystems operation.

This operation requires permission for the elasticfilesystem:CreateTags action.

", "DeleteFileSystem": "

Deletes a file system, permanently severing access to its contents. Upon return, the file system no longer exists and you can't access any contents of the deleted file system.

You can't delete a file system that is in use. That is, if the file system has any mount targets, you must first delete them. For more information, see DescribeMountTargets and DeleteMountTarget.

The DeleteFileSystem call returns while the file system state is still deleting. You can check the file system deletion status by calling the DescribeFileSystems operation, which returns a list of file systems in your account. If you pass file system ID or creation token for the deleted file system, the DescribeFileSystems returns a 404 FileSystemNotFound error.

This operation requires permissions for the elasticfilesystem:DeleteFileSystem action.

", "DeleteMountTarget": "

Deletes the specified mount target.

This operation forcibly breaks any mounts of the file system via the mount target that is being deleted, which might disrupt instances or applications using those mounts. To avoid applications getting cut off abruptly, you might consider unmounting any mounts of the mount target, if feasible. The operation also deletes the associated network interface. Uncommitted writes may be lost, but breaking a mount target using this operation does not corrupt the file system itself. The file system you created remains. You can mount an EC2 instance in your VPC via another mount target.

This operation requires permissions for the following action on the file system:

  • elasticfilesystem:DeleteMountTarget

The DeleteMountTarget call returns while the mount target state is still deleting. You can check the mount target deletion by calling the DescribeMountTargets operation, which returns a list of mount target descriptions for the given file system.

The operation also requires permissions for the following Amazon EC2 action on the mount target's network interface:

  • ec2:DeleteNetworkInterface

", @@ -414,7 +414,7 @@ } }, "UnsupportedAvailabilityZone": { - "base": null, + "base": "

", "refs": { } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticfilesystem/2015-02-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticfilesystem/2015-02-01/examples-1.json index 0ea7e3b0b..4a4b982d2 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticfilesystem/2015-02-01/examples-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticfilesystem/2015-02-01/examples-1.json @@ -1,5 +1,222 @@ { "version": "1.0", "examples": { + "CreateFileSystem": [ + { + "input": { + "CreationToken": "tokenstring", + "PerformanceMode": "generalPurpose" + }, + "output": { + "CreationTime": "1481841524.0", + "CreationToken": "tokenstring", + "FileSystemId": "fs-01234567", + "LifeCycleState": "creating", + "NumberOfMountTargets": 0, + "OwnerId": "012345678912", + "PerformanceMode": "generalPurpose", + "SizeInBytes": { + "Value": 0 + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation creates a new file system with the default generalpurpose performance mode.", + "id": "to-create-a-new-file-system-1481840798547", + "title": "To create a new file system" + } + ], + "CreateMountTarget": [ + { + "input": { + "FileSystemId": "fs-01234567", + "SubnetId": "subnet-1234abcd" + }, + "output": { + "FileSystemId": "fs-01234567", + "IpAddress": "192.0.0.2", + "LifeCycleState": "creating", + "MountTargetId": "fsmt-12340abc", + "NetworkInterfaceId": "eni-cedf6789", + "OwnerId": "012345678912", + "SubnetId": "subnet-1234abcd" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation creates a new mount target for an EFS file system.", + "id": "to-create-a-new-mount-target-1481842289329", + "title": "To create a new mount target" + } + ], + "CreateTags": [ + { + "input": { + "FileSystemId": "fs-01234567", + "Tags": [ + { + "Key": "Name", + "Value": "MyFileSystem" + } + ] + }, + "comments": { + }, + "description": "This operation creates a new tag for an EFS file system.", + "id": "to-create-a-new-tag-1481843409357", + "title": "To create a new tag" + } + ], + "DeleteFileSystem": [ + { + "input": { + "FileSystemId": "fs-01234567" + }, + "comments": { + }, + "description": "This operation deletes an EFS file system.", + "id": "to-delete-a-file-system-1481847318348", + "title": "To delete a file system" + } + ], + "DeleteMountTarget": [ + { + "input": { + "MountTargetId": "fsmt-12340abc" + }, + "comments": { + }, + "description": "This operation deletes a mount target.", + "id": "to-delete-a-mount-target-1481847635607", + "title": "To delete a mount target" + } + ], + "DeleteTags": [ + { + "input": { + "FileSystemId": "fs-01234567", + "TagKeys": [ + "Name" + ] + }, + "comments": { + }, + "description": "This operation deletes tags for an EFS file system.", + "id": "to-delete-tags-for-an-efs-file-system-1481848189061", + "title": "To delete tags for an EFS file system" + } + ], + "DescribeFileSystems": [ + { + "input": { + }, + "output": { + "FileSystems": [ + { + "CreationTime": "1481841524.0", + "CreationToken": "tokenstring", + "FileSystemId": "fs-01234567", + "LifeCycleState": "available", + "Name": "MyFileSystem", + "NumberOfMountTargets": 1, + "OwnerId": "012345678912", + "PerformanceMode": "generalPurpose", + "SizeInBytes": { + "Value": 6144 + } + } + ] + }, + "comments": { + }, + "description": "This operation describes all of the EFS file systems in an account.", + "id": "to-describe-an-efs-file-system-1481848448460", + "title": "To describe an EFS file system" + } + ], + "DescribeMountTargetSecurityGroups": [ + { + "input": { + "MountTargetId": "fsmt-12340abc" + }, + "output": { + "SecurityGroups": [ + "sg-fghi4567" + ] + }, + "comments": { + }, + "description": "This operation describes all of the security groups for a file system's mount target.", + "id": "to-describe-the-security-groups-for-a-mount-target-1481849317823", + "title": "To describe the security groups for a mount target" + } + ], + "DescribeMountTargets": [ + { + "input": { + "FileSystemId": "fs-01234567" + }, + "output": { + "MountTargets": [ + { + "FileSystemId": "fs-01234567", + "IpAddress": "192.0.0.2", + "LifeCycleState": "available", + "MountTargetId": "fsmt-12340abc", + "NetworkInterfaceId": "eni-cedf6789", + "OwnerId": "012345678912", + "SubnetId": "subnet-1234abcd" + } + ] + }, + "comments": { + }, + "description": "This operation describes all of a file system's mount targets.", + "id": "to-describe-the-mount-targets-for-a-file-system-1481849958584", + "title": "To describe the mount targets for a file system" + } + ], + "DescribeTags": [ + { + "input": { + "FileSystemId": "fs-01234567" + }, + "output": { + "Tags": [ + { + "Key": "Name", + "Value": "MyFileSystem" + } + ] + }, + "comments": { + }, + "description": "This operation describes all of a file system's tags.", + "id": "to-describe-the-tags-for-a-file-system-1481850497090", + "title": "To describe the tags for a file system" + } + ], + "ModifyMountTargetSecurityGroups": [ + { + "input": { + "MountTargetId": "fsmt-12340abc", + "SecurityGroups": [ + "sg-abcd1234" + ] + }, + "comments": { + }, + "description": "This operation modifies the security groups associated with a mount target for a file system.", + "id": "to-modify-the-security-groups-associated-with-a-mount-target-for-a-file-system-1481850772562", + "title": "To modify the security groups associated with a mount target for a file system" + } + ] } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancing/2012-06-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancing/2012-06-01/api-2.json index d15b10c45..ec8803167 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancing/2012-06-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancing/2012-06-01/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"elasticloadbalancing-2012-06-01", "apiVersion":"2012-06-01", "endpointPrefix":"elasticloadbalancing", "protocol":"query", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancingv2/2015-12-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancingv2/2015-12-01/api-2.json index 9dabc9541..b2612fb2d 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancingv2/2015-12-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancingv2/2015-12-01/api-2.json @@ -7,6 +7,7 @@ "serviceAbbreviation":"Elastic Load Balancing v2", "serviceFullName":"Elastic Load Balancing", "signatureVersion":"v4", + "uid":"elasticloadbalancingv2-2015-12-01", "xmlNamespace":"http://elasticloadbalancing.amazonaws.com/doc/2015-12-01/" }, "operations":{ @@ -463,6 +464,23 @@ {"shape":"TooManyTagsException"} ] }, + "SetIpAddressType":{ + "name":"SetIpAddressType", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"SetIpAddressTypeInput"}, + "output":{ + "shape":"SetIpAddressTypeOutput", + "resultWrapper":"SetIpAddressTypeResult" + }, + "errors":[ + {"shape":"LoadBalancerNotFoundException"}, + {"shape":"InvalidConfigurationRequestException"}, + {"shape":"InvalidSubnetException"} + ] + }, "SetRulePriorities":{ "name":"SetRulePriorities", "http":{ @@ -637,7 +655,8 @@ "Subnets":{"shape":"Subnets"}, "SecurityGroups":{"shape":"SecurityGroups"}, "Scheme":{"shape":"LoadBalancerSchemeEnum"}, - "Tags":{"shape":"TagList"} + "Tags":{"shape":"TagList"}, + "IpAddressType":{"shape":"IpAddressType"} } }, "CreateLoadBalancerOutput":{ @@ -1030,6 +1049,13 @@ }, "exception":true }, + "IpAddressType":{ + "type":"string", + "enum":[ + "ipv4", + "dualstack" + ] + }, "IsDefault":{"type":"boolean"}, "ListOfString":{ "type":"list", @@ -1080,7 +1106,8 @@ "State":{"shape":"LoadBalancerState"}, "Type":{"shape":"LoadBalancerTypeEnum"}, "AvailabilityZones":{"shape":"AvailabilityZones"}, - "SecurityGroups":{"shape":"SecurityGroups"} + "SecurityGroups":{"shape":"SecurityGroups"}, + "IpAddressType":{"shape":"IpAddressType"} } }, "LoadBalancerArn":{"type":"string"}, @@ -1416,6 +1443,23 @@ "type":"list", "member":{"shape":"SecurityGroupId"} }, + "SetIpAddressTypeInput":{ + "type":"structure", + "required":[ + "LoadBalancerArn", + "IpAddressType" + ], + "members":{ + "LoadBalancerArn":{"shape":"LoadBalancerArn"}, + "IpAddressType":{"shape":"IpAddressType"} + } + }, + "SetIpAddressTypeOutput":{ + "type":"structure", + "members":{ + "IpAddressType":{"shape":"IpAddressType"} + } + }, "SetRulePrioritiesInput":{ "type":"structure", "required":["RulePriorities"], diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancingv2/2015-12-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancingv2/2015-12-01/docs-2.json index 3b121e393..2b6d5a4fa 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancingv2/2015-12-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancingv2/2015-12-01/docs-2.json @@ -1,20 +1,20 @@ { "version": "2.0", - "service": "Elastic Load Balancing

A load balancer distributes incoming traffic across targets, such as your EC2 instances. This enables you to increase the availability of your application. The load balancer also monitors the health of its registered targets and ensures that it routes traffic only to healthy targets. You configure your load balancer to accept incoming traffic by specifying one or more listeners, which are configured with a protocol and port number for connections from clients to the load balancer. You configure a target group with a protocol and port number for connections from the load balancer to the targets, and with health check settings to be used when checking the health status of the targets.

Elastic Load Balancing supports two types of load balancers: Classic load balancers and Application load balancers (new). A Classic load balancer makes routing and load balancing decisions either at the transport layer (TCP/SSL) or the application layer (HTTP/HTTPS), and supports either EC2-Classic or a VPC. An Application load balancer makes routing and load balancing decisions at the application layer (HTTP/HTTPS), supports path-based routing, and can route requests to one or more ports on each EC2 instance or container instance in your virtual private cloud (VPC). For more information, see the Elastic Load Balancing User Guide.

This reference covers the 2015-12-01 API, which supports Application load balancers. The 2012-06-01 API supports Classic load balancers.

To get started with an Application load balancer, complete the following tasks:

  1. Create a load balancer using CreateLoadBalancer.

  2. Create a target group using CreateTargetGroup.

  3. Register targets for the target group using RegisterTargets.

  4. Create one or more listeners for your load balancer using CreateListener.

  5. (Optional) Create one or more rules for content routing based on URL using CreateRule.

To delete an Application load balancer and its related resources, complete the following tasks:

  1. Delete the load balancer using DeleteLoadBalancer.

  2. Delete the target group using DeleteTargetGroup.

All Elastic Load Balancing operations are idempotent, which means that they complete at most one time. If you repeat an operation, it succeeds.

", + "service": "Elastic Load Balancing

A load balancer distributes incoming traffic across targets, such as your EC2 instances. This enables you to increase the availability of your application. The load balancer also monitors the health of its registered targets and ensures that it routes traffic only to healthy targets. You configure your load balancer to accept incoming traffic by specifying one or more listeners, which are configured with a protocol and port number for connections from clients to the load balancer. You configure a target group with a protocol and port number for connections from the load balancer to the targets, and with health check settings to be used when checking the health status of the targets.

Elastic Load Balancing supports two types of load balancers: Classic Load Balancers and Application Load Balancers. A Classic Load Balancer makes routing and load balancing decisions either at the transport layer (TCP/SSL) or the application layer (HTTP/HTTPS), and supports either EC2-Classic or a VPC. An Application Load Balancer makes routing and load balancing decisions at the application layer (HTTP/HTTPS), supports path-based routing, and can route requests to one or more ports on each EC2 instance or container instance in your virtual private cloud (VPC). For more information, see the Elastic Load Balancing User Guide.

This reference covers the 2015-12-01 API, which supports Application Load Balancers. The 2012-06-01 API supports Classic Load Balancers.

To get started, complete the following tasks:

  1. Create an Application Load Balancer using CreateLoadBalancer.

  2. Create a target group using CreateTargetGroup.

  3. Register targets for the target group using RegisterTargets.

  4. Create one or more listeners for your load balancer using CreateListener.

  5. (Optional) Create one or more rules for content routing based on URL using CreateRule.

To delete an Application Load Balancer and its related resources, complete the following tasks:

  1. Delete the load balancer using DeleteLoadBalancer.

  2. Delete the target group using DeleteTargetGroup.

All Elastic Load Balancing operations are idempotent, which means that they complete at most one time. If you repeat an operation, it succeeds.

", "operations": { - "AddTags": "

Adds the specified tags to the specified resource. You can tag your Application load balancers and your target groups.

Each tag consists of a key and an optional value. If a resource already has a tag with the same key, AddTags updates its value.

To list the current tags for your resources, use DescribeTags. To remove tags from your resources, use RemoveTags.

", - "CreateListener": "

Creates a listener for the specified Application load balancer.

To update a listener, use ModifyListener. When you are finished with a listener, you can delete it using DeleteListener. If you are finished with both the listener and the load balancer, you can delete them both using DeleteLoadBalancer.

For more information, see Listeners for Your Application Load Balancers in the Application Load Balancers Guide.

", - "CreateLoadBalancer": "

Creates an Application load balancer.

To create listeners for your load balancer, use CreateListener. You can add security groups, subnets, and tags when you create your load balancer, or you can add them later using SetSecurityGroups, SetSubnets, and AddTags.

To describe your current load balancers, see DescribeLoadBalancers. When you are finished with a load balancer, you can delete it using DeleteLoadBalancer.

You can create up to 20 load balancers per region per account. You can request an increase for the number of load balancers for your account. For more information, see Limits for Your Application Load Balancer in the Application Load Balancers Guide.

", - "CreateRule": "

Creates a rule for the specified listener.

A rule consists conditions and actions. Rules are evaluated in priority order, from the lowest value to the highest value. When the conditions for a rule are met, the specified actions are taken. If no rule's conditions are met, the default actions for the listener are taken.

To view your current rules, use DescribeRules. To update a rule, use ModifyRule. To set the priorities of your rules, use SetRulePriorities. To delete a rule, use DeleteRule.

", + "AddTags": "

Adds the specified tags to the specified resource. You can tag your Application Load Balancers and your target groups.

Each tag consists of a key and an optional value. If a resource already has a tag with the same key, AddTags updates its value.

To list the current tags for your resources, use DescribeTags. To remove tags from your resources, use RemoveTags.

", + "CreateListener": "

Creates a listener for the specified Application Load Balancer.

You can create up to 10 listeners per load balancer.

To update a listener, use ModifyListener. When you are finished with a listener, you can delete it using DeleteListener. If you are finished with both the listener and the load balancer, you can delete them both using DeleteLoadBalancer.

For more information, see Listeners for Your Application Load Balancers in the Application Load Balancers Guide.

", + "CreateLoadBalancer": "

Creates an Application Load Balancer.

When you create a load balancer, you can specify security groups, subnets, IP address type, and tags. Otherwise, you could do so later using SetSecurityGroups, SetSubnets, SetIpAddressType, and AddTags.

To create listeners for your load balancer, use CreateListener. To describe your current load balancers, see DescribeLoadBalancers. When you are finished with a load balancer, you can delete it using DeleteLoadBalancer.

You can create up to 20 load balancers per region per account. You can request an increase for the number of load balancers for your account. For more information, see Limits for Your Application Load Balancer in the Application Load Balancers Guide.

For more information, see Application Load Balancers in the Application Load Balancers Guide.

", + "CreateRule": "

Creates a rule for the specified listener.

Each rule can have one action and one condition. Rules are evaluated in priority order, from the lowest value to the highest value. When the condition for a rule is met, the specified action is taken. If no conditions are met, the default action for the default rule is taken. For more information, see Listener Rules in the Application Load Balancers Guide.

To view your current rules, use DescribeRules. To update a rule, use ModifyRule. To set the priorities of your rules, use SetRulePriorities. To delete a rule, use DeleteRule.

", "CreateTargetGroup": "

Creates a target group.

To register targets with the target group, use RegisterTargets. To update the health check settings for the target group, use ModifyTargetGroup. To monitor the health of targets in the target group, use DescribeTargetHealth.

To route traffic to the targets in a target group, specify the target group in an action using CreateListener or CreateRule.

To delete a target group, use DeleteTargetGroup.

For more information, see Target Groups for Your Application Load Balancers in the Application Load Balancers Guide.

", "DeleteListener": "

Deletes the specified listener.

Alternatively, your listener is deleted when you delete the load balancer it is attached to using DeleteLoadBalancer.

", - "DeleteLoadBalancer": "

Deletes the specified load balancer and its attached listeners.

You can't delete a load balancer if deletion protection is enabled. If the load balancer does not exist or has already been deleted, the call succeeds.

Deleting a load balancer does not affect its registered targets. For example, your EC2 instances continue to run and are still registered to their target groups. If you no longer need these EC2 instances, you can stop or terminate them.

", + "DeleteLoadBalancer": "

Deletes the specified Application Load Balancer and its attached listeners.

You can't delete a load balancer if deletion protection is enabled. If the load balancer does not exist or has already been deleted, the call succeeds.

Deleting a load balancer does not affect its registered targets. For example, your EC2 instances continue to run and are still registered to their target groups. If you no longer need these EC2 instances, you can stop or terminate them.

", "DeleteRule": "

Deletes the specified rule.

", "DeleteTargetGroup": "

Deletes the specified target group.

You can delete a target group if it is not referenced by any actions. Deleting a target group also deletes any associated health checks.

", "DeregisterTargets": "

Deregisters the specified targets from the specified target group. After the targets are deregistered, they no longer receive traffic from the load balancer.

", - "DescribeListeners": "

Describes the specified listeners or the listeners for the specified load balancer. You must specify either a load balancer or one or more listeners.

", - "DescribeLoadBalancerAttributes": "

Describes the attributes for the specified load balancer.

", - "DescribeLoadBalancers": "

Describes the specified Application load balancers or all of your Application load balancers.

To describe the listeners for a load balancer, use DescribeListeners. To describe the attributes for a load balancer, use DescribeLoadBalancerAttributes.

", + "DescribeListeners": "

Describes the specified listeners or the listeners for the specified Application Load Balancer. You must specify either a load balancer or one or more listeners.

", + "DescribeLoadBalancerAttributes": "

Describes the attributes for the specified Application Load Balancer.

", + "DescribeLoadBalancers": "

Describes the specified Application Load Balancers or all of your Application Load Balancers.

To describe the listeners for a load balancer, use DescribeListeners. To describe the attributes for a load balancer, use DescribeLoadBalancerAttributes.

", "DescribeRules": "

Describes the specified rules or the rules for the specified listener. You must specify either a listener or one or more rules.

", "DescribeSSLPolicies": "

Describes the specified policies or all policies used for SSL negotiation.

Note that the only supported policy at this time is ELBSecurityPolicy-2015-05.

", "DescribeTags": "

Describes the tags for the specified resources.

", @@ -22,12 +22,13 @@ "DescribeTargetGroups": "

Describes the specified target groups or all of your target groups. By default, all target groups are described. Alternatively, you can specify one of the following to filter the results: the ARN of the load balancer, the names of one or more target groups, or the ARNs of one or more target groups.

To describe the targets for a target group, use DescribeTargetHealth. To describe the attributes of a target group, use DescribeTargetGroupAttributes.

", "DescribeTargetHealth": "

Describes the health of the specified targets or all of your targets.

", "ModifyListener": "

Modifies the specified properties of the specified listener.

Any properties that you do not specify retain their current values. However, changing the protocol from HTTPS to HTTP removes the security policy and SSL certificate properties. If you change the protocol from HTTP to HTTPS, you must add the security policy.

", - "ModifyLoadBalancerAttributes": "

Modifies the specified attributes of the specified load balancer.

If any of the specified attributes can't be modified as requested, the call fails. Any existing attributes that you do not modify retain their current values.

", + "ModifyLoadBalancerAttributes": "

Modifies the specified attributes of the specified Application Load Balancer.

If any of the specified attributes can't be modified as requested, the call fails. Any existing attributes that you do not modify retain their current values.

", "ModifyRule": "

Modifies the specified rule.

Any existing properties that you do not modify retain their current values.

To modify the default action, use ModifyListener.

", "ModifyTargetGroup": "

Modifies the health checks used when evaluating the health state of the targets in the specified target group.

To monitor the health of the targets, use DescribeTargetHealth.

", "ModifyTargetGroupAttributes": "

Modifies the specified attributes of the specified target group.

", - "RegisterTargets": "

Registers the specified targets with the specified target group.

The target must be in the virtual private cloud (VPC) that you specified for the target group.

To remove a target from a target group, use DeregisterTargets.

", + "RegisterTargets": "

Registers the specified targets with the specified target group.

By default, the load balancer routes requests to registered targets using the protocol and port number for the target group. Alternatively, you can override the port for a target when you register it.

The target must be in the virtual private cloud (VPC) that you specified for the target group. If the target is an EC2 instance, it must be in the running state when you register it.

To remove a target from a target group, use DeregisterTargets.

", "RemoveTags": "

Removes the specified tags from the specified resource.

To list the current tags for your resources, use DescribeTags.

", + "SetIpAddressType": "

Sets the type of IP addresses used by the subnets of the specified Application Load Balancer.

", "SetRulePriorities": "

Sets the priorities of the specified rules.

You can reorder the rules as long as there are no priority conflicts in the new order. Any existing rules that you do not specify retain their current priority.

", "SetSecurityGroups": "

Associates the specified security groups with the specified load balancer. The specified security groups override the previously associated security groups.

", "SetSubnets": "

Enables the Availability Zone for the specified subnets for the specified load balancer. The specified subnets replace the previously enabled subnets.

" @@ -48,8 +49,8 @@ "Actions": { "base": null, "refs": { - "CreateListenerInput$DefaultActions": "

The default actions for the listener.

", - "CreateRuleInput$Actions": "

The actions for the rule.

", + "CreateListenerInput$DefaultActions": "

The default action for the listener.

", + "CreateRuleInput$Actions": "

An action. Each action has the type forward and specifies a target group.

", "Listener$DefaultActions": "

The default actions for the listener.

", "ModifyListenerInput$DefaultActions": "

The default actions.

", "ModifyRuleInput$Actions": "

The actions.

", @@ -57,12 +58,12 @@ } }, "AddTagsInput": { - "base": "

Contains the parameters for AddTags.

", + "base": null, "refs": { } }, "AddTagsOutput": { - "base": "

Contains the output of AddTags.

", + "base": null, "refs": { } }, @@ -137,46 +138,46 @@ "ConditionFieldName": { "base": null, "refs": { - "RuleCondition$Field": "

The name of the field. The possible value is path-pattern.

" + "RuleCondition$Field": "

The only possible value is path-pattern.

" } }, "CreateListenerInput": { - "base": "

Contains the parameters for CreateListener.

", + "base": null, "refs": { } }, "CreateListenerOutput": { - "base": "

Contains the output of CreateListener.

", + "base": null, "refs": { } }, "CreateLoadBalancerInput": { - "base": "

Contains the parameters for CreateLoadBalancer.

", + "base": null, "refs": { } }, "CreateLoadBalancerOutput": { - "base": "

Contains the output of CreateLoadBalancer.

", + "base": null, "refs": { } }, "CreateRuleInput": { - "base": "

Contains the parameters for CreateRule.

", + "base": null, "refs": { } }, "CreateRuleOutput": { - "base": "

Contains the output of CreateRule.

", + "base": null, "refs": { } }, "CreateTargetGroupInput": { - "base": "

Contains the parameters for CreateTargetGroup.

", + "base": null, "refs": { } }, "CreateTargetGroupOutput": { - "base": "

Contains the output of CreateTargetGroup.

", + "base": null, "refs": { } }, @@ -193,142 +194,142 @@ } }, "DeleteListenerInput": { - "base": "

Contains the parameters for DeleteListener.

", + "base": null, "refs": { } }, "DeleteListenerOutput": { - "base": "

Contains the output of DeleteListener.

", + "base": null, "refs": { } }, "DeleteLoadBalancerInput": { - "base": "

Contains the parameters for DeleteLoadBalancer.

", + "base": null, "refs": { } }, "DeleteLoadBalancerOutput": { - "base": "

Contains the output of DeleteLoadBalancer.

", + "base": null, "refs": { } }, "DeleteRuleInput": { - "base": "

Contains the parameters for DeleteRule.

", + "base": null, "refs": { } }, "DeleteRuleOutput": { - "base": "

Contains the output of DeleteRule.

", + "base": null, "refs": { } }, "DeleteTargetGroupInput": { - "base": "

Contains the parameters for DeleteTargetGroup.

", + "base": null, "refs": { } }, "DeleteTargetGroupOutput": { - "base": "

Contains the output of DeleteTargetGroup.

", + "base": null, "refs": { } }, "DeregisterTargetsInput": { - "base": "

Contains the parameters for DeregisterTargets.

", + "base": null, "refs": { } }, "DeregisterTargetsOutput": { - "base": "

Contains the output of DeregisterTargets.

", + "base": null, "refs": { } }, "DescribeListenersInput": { - "base": "

Contains the parameters for DescribeListeners.

", + "base": null, "refs": { } }, "DescribeListenersOutput": { - "base": "

Contains the output of DescribeListeners.

", + "base": null, "refs": { } }, "DescribeLoadBalancerAttributesInput": { - "base": "

Contains the parameters for DescribeLoadBalancerAttributes.

", + "base": null, "refs": { } }, "DescribeLoadBalancerAttributesOutput": { - "base": "

Contains the output of DescribeLoadBalancerAttributes.

", + "base": null, "refs": { } }, "DescribeLoadBalancersInput": { - "base": "

Contains the parameters for DescribeLoadBalancers.

", + "base": null, "refs": { } }, "DescribeLoadBalancersOutput": { - "base": "

Contains the output of DescribeLoadBalancers.

", + "base": null, "refs": { } }, "DescribeRulesInput": { - "base": "

Contains the parameters for DescribeRules.

", + "base": null, "refs": { } }, "DescribeRulesOutput": { - "base": "

Contains the output of DescribeRules.

", + "base": null, "refs": { } }, "DescribeSSLPoliciesInput": { - "base": "

Contains the parameters for DescribeSSLPolicies.

", + "base": null, "refs": { } }, "DescribeSSLPoliciesOutput": { - "base": "

Contains the output of DescribeSSLPolicies.

", + "base": null, "refs": { } }, "DescribeTagsInput": { - "base": "

Contains the parameters for DescribeTags.

", + "base": null, "refs": { } }, "DescribeTagsOutput": { - "base": "

Contains the output of DescribeTags.

", + "base": null, "refs": { } }, "DescribeTargetGroupAttributesInput": { - "base": "

Contains the parameters for DescribeTargetGroupAttributes.

", + "base": null, "refs": { } }, "DescribeTargetGroupAttributesOutput": { - "base": "

Contains the output of DescribeTargetGroupAttributes.

", + "base": null, "refs": { } }, "DescribeTargetGroupsInput": { - "base": "

Contains the parameters for DescribeTargetGroups.

", + "base": null, "refs": { } }, "DescribeTargetGroupsOutput": { - "base": "

Contains the output of DescribeTargetGroups.

", + "base": null, "refs": { } }, "DescribeTargetHealthInput": { - "base": "

Contains the parameters for DescribeTargetHealth.

", + "base": null, "refs": { } }, "DescribeTargetHealthOutput": { - "base": "

Contains the output of DescribeTargetHealth.

", + "base": null, "refs": { } }, @@ -435,6 +436,15 @@ "refs": { } }, + "IpAddressType": { + "base": null, + "refs": { + "CreateLoadBalancerInput$IpAddressType": "

The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses). Internal load balancers must use ipv4.

", + "LoadBalancer$IpAddressType": "

The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses).

", + "SetIpAddressTypeInput$IpAddressType": "

The IP address type. The possible values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses). Internal load balancers must use ipv4.

", + "SetIpAddressTypeOutput$IpAddressType": "

The IP address type.

" + } + }, "IsDefault": { "base": null, "refs": { @@ -444,7 +454,7 @@ "ListOfString": { "base": null, "refs": { - "RuleCondition$Values": "

The values for the field.

A path pattern is case sensitive, can be up to 255 characters in length, and can contain any of the following characters:

  • A-Z, a-z, 0-9

  • _ - . $ / ~ \" ' @ : +

  • &amp; (using &amp;amp;)

  • * (matches 0 or more characters)

  • ? (matches exactly 1 character)

" + "RuleCondition$Values": "

The path pattern. You can specify a single path pattern.

A path pattern is case sensitive, can be up to 128 characters in length, and can contain any of the following characters. Note that you can include up to three wildcard characters in a path pattern.

  • A-Z, a-z, 0-9

  • _ - . $ / ~ \" ' @ : +

  • & (using &amp;)

  • * (matches 0 or more characters)

  • ? (matches exactly 1 character)

" } }, "Listener": { @@ -501,6 +511,7 @@ "LoadBalancer$LoadBalancerArn": "

The Amazon Resource Name (ARN) of the load balancer.

", "LoadBalancerArns$member": null, "ModifyLoadBalancerAttributesInput$LoadBalancerArn": "

The Amazon Resource Name (ARN) of the load balancer.

", + "SetIpAddressTypeInput$LoadBalancerArn": "

The Amazon Resource Name (ARN) of the load balancer.

", "SetSecurityGroupsInput$LoadBalancerArn": "

The Amazon Resource Name (ARN) of the load balancer.

", "SetSubnetsInput$LoadBalancerArn": "

The Amazon Resource Name (ARN) of the load balancer.

" } @@ -521,7 +532,7 @@ "LoadBalancerAttributeKey": { "base": null, "refs": { - "LoadBalancerAttribute$Key": "

The name of the attribute.

  • access_logs.s3.enabled - Indicates whether access logs stored in Amazon S3 are enabled.

  • access_logs.s3.bucket - The name of the S3 bucket for the access logs. This attribute is required if access logs in Amazon S3 are enabled. The bucket must exist in the same region as the load balancer and have a bucket policy that grants Elastic Load Balancing permission to write to the bucket.

  • access_logs.s3.prefix - The prefix for the location in the S3 bucket. If you don't specify a prefix, the access logs are stored in the root of the bucket.

  • deletion_protection.enabled - Indicates whether deletion protection is enabled.

  • idle_timeout.timeout_seconds - The idle timeout value, in seconds. The valid range is 1-3600. The default is 60 seconds.

" + "LoadBalancerAttribute$Key": "

The name of the attribute.

  • access_logs.s3.enabled - Indicates whether access logs stored in Amazon S3 are enabled. The value is true or false.

  • access_logs.s3.bucket - The name of the S3 bucket for the access logs. This attribute is required if access logs in Amazon S3 are enabled. The bucket must exist in the same region as the load balancer and have a bucket policy that grants Elastic Load Balancing permission to write to the bucket.

  • access_logs.s3.prefix - The prefix for the location in the S3 bucket. If you don't specify a prefix, the access logs are stored in the root of the bucket.

  • deletion_protection.enabled - Indicates whether deletion protection is enabled. The value is true or false.

  • idle_timeout.timeout_seconds - The idle timeout value, in seconds. The valid range is 1-3600. The default is 60 seconds.

" } }, "LoadBalancerAttributeValue": { @@ -611,52 +622,52 @@ } }, "ModifyListenerInput": { - "base": "

Contains the parameters for ModifyListener.

", + "base": null, "refs": { } }, "ModifyListenerOutput": { - "base": "

Contains the output of ModifyListener.

", + "base": null, "refs": { } }, "ModifyLoadBalancerAttributesInput": { - "base": "

Contains the parameters for ModifyLoadBalancerAttributes.

", + "base": null, "refs": { } }, "ModifyLoadBalancerAttributesOutput": { - "base": "

Contains the output of ModifyLoadBalancerAttributes.

", + "base": null, "refs": { } }, "ModifyRuleInput": { - "base": "

Contains the parameters for ModifyRules.

", + "base": null, "refs": { } }, "ModifyRuleOutput": { - "base": "

Contains the output of ModifyRules.

", + "base": null, "refs": { } }, "ModifyTargetGroupAttributesInput": { - "base": "

Contains the parameters for ModifyTargetGroupAttributes.

", + "base": null, "refs": { } }, "ModifyTargetGroupAttributesOutput": { - "base": "

Contains the output of ModifyTargetGroupAttributes.

", + "base": null, "refs": { } }, "ModifyTargetGroupInput": { - "base": "

Contains the parameters for ModifyTargetGroup.

", + "base": null, "refs": { } }, "ModifyTargetGroupOutput": { - "base": "

Contains the output of ModifyTargetGroup.

", + "base": null, "refs": { } }, @@ -712,22 +723,22 @@ } }, "RegisterTargetsInput": { - "base": "

Contains the parameters for RegisterTargets.

", + "base": null, "refs": { } }, "RegisterTargetsOutput": { - "base": "

Contains the output of RegisterTargets.

", + "base": null, "refs": { } }, "RemoveTagsInput": { - "base": "

Contains the parameters for RemoveTags.

", + "base": null, "refs": { } }, "RemoveTagsOutput": { - "base": "

Contains the output of RemoveTags.

", + "base": null, "refs": { } }, @@ -782,7 +793,7 @@ "RuleConditionList": { "base": null, "refs": { - "CreateRuleInput$Conditions": "

The conditions.

", + "CreateRuleInput$Conditions": "

A condition. Each condition has the field path-pattern and specifies one path pattern. A path pattern is case sensitive, can be up to 128 characters in length, and can contain any of the following characters. Note that you can include up to three wildcard characters in a path pattern.

  • A-Z, a-z, 0-9

  • _ - . $ / ~ \" ' @ : +

  • & (using &amp;)

  • * (matches 0 or more characters)

  • ? (matches exactly 1 character)

", "ModifyRuleInput$Conditions": "

The conditions.

", "Rule$Conditions": "

The conditions.

" } @@ -840,33 +851,43 @@ "SetSecurityGroupsOutput$SecurityGroupIds": "

The IDs of the security groups associated with the load balancer.

" } }, + "SetIpAddressTypeInput": { + "base": null, + "refs": { + } + }, + "SetIpAddressTypeOutput": { + "base": null, + "refs": { + } + }, "SetRulePrioritiesInput": { - "base": "

Contains the parameters for SetRulePriorities.

", + "base": null, "refs": { } }, "SetRulePrioritiesOutput": { - "base": "

Contains the output of SetRulePriorities.

", + "base": null, "refs": { } }, "SetSecurityGroupsInput": { - "base": "

Contains the parameters for SetSecurityGroups.

", + "base": null, "refs": { } }, "SetSecurityGroupsOutput": { - "base": "

Contains the output of SetSecurityGroups.

", + "base": null, "refs": { } }, "SetSubnetsInput": { - "base": "

Contains the parameters for SetSubnets.

", + "base": null, "refs": { } }, "SetSubnetsOutput": { - "base": "

Contains the output of SetSubnets.

", + "base": null, "refs": { } }, @@ -1002,9 +1023,9 @@ "TargetDescriptions": { "base": null, "refs": { - "DeregisterTargetsInput$Targets": "

The targets.

", + "DeregisterTargetsInput$Targets": "

The targets. If you specified a port override when you registered a target, you must specify both the target ID and the port when you deregister it.

", "DescribeTargetHealthInput$Targets": "

The targets.

", - "RegisterTargetsInput$Targets": "

The targets.

" + "RegisterTargetsInput$Targets": "

The targets. The default port for a target is the port for the target group. You can specify a port override. If a target is already registered, you can register it again using a different port.

" } }, "TargetGroup": { @@ -1048,7 +1069,7 @@ "TargetGroupAttributeKey": { "base": null, "refs": { - "TargetGroupAttribute$Key": "

The name of the attribute.

  • deregistration_delay.timeout_seconds - The amount time for Elastic Load Balancing to wait before changing the state of a deregistering target from draining to unused. The range is 0-3600 seconds. The default value is 300 seconds.

  • stickiness.enabled - Indicates whether sticky sessions are enabled.

  • stickiness.type - The type of sticky sessions. The possible value is lb_cookie.

  • stickiness.lb_cookie.duration_seconds - The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds).

" + "TargetGroupAttribute$Key": "

The name of the attribute.

  • deregistration_delay.timeout_seconds - The amount time for Elastic Load Balancing to wait before changing the state of a deregistering target from draining to unused. The range is 0-3600 seconds. The default value is 300 seconds.

  • stickiness.enabled - Indicates whether sticky sessions are enabled. The value is true or false.

  • stickiness.type - The type of sticky sessions. The possible value is lb_cookie.

  • stickiness.lb_cookie.duration_seconds - The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds).

" } }, "TargetGroupAttributeValue": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancingv2/2015-12-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancingv2/2015-12-01/paginators-1.json index 5afd70846..1a281f25c 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancingv2/2015-12-01/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancingv2/2015-12-01/paginators-1.json @@ -1,10 +1,5 @@ { "pagination": { - "DescribeTargetGroups": { - "input_token": "Marker", - "output_token": "NextMarker", - "result_key": "TargetGroups" - }, "DescribeListeners": { "input_token": "Marker", "output_token": "NextMarker", @@ -14,7 +9,11 @@ "input_token": "Marker", "output_token": "NextMarker", "result_key": "LoadBalancers" + }, + "DescribeTargetGroups": { + "input_token": "Marker", + "output_token": "NextMarker", + "result_key": "TargetGroups" } } -} - +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/api-2.json index 7b4b645a8..d8e03048f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/api-2.json @@ -9,9 +9,23 @@ "serviceFullName":"Amazon Elastic MapReduce", "signatureVersion":"v4", "targetPrefix":"ElasticMapReduce", - "timestampFormat":"unixTimestamp" + "timestampFormat":"unixTimestamp", + "uid":"elasticmapreduce-2009-03-31" }, "operations":{ + "AddInstanceFleet":{ + "name":"AddInstanceFleet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AddInstanceFleetInput"}, + "output":{"shape":"AddInstanceFleetOutput"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"InvalidRequestException"} + ] + }, "AddInstanceGroups":{ "name":"AddInstanceGroups", "http":{ @@ -49,6 +63,19 @@ {"shape":"InvalidRequestException"} ] }, + "CancelSteps":{ + "name":"CancelSteps", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CancelStepsInput"}, + "output":{"shape":"CancelStepsOutput"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidRequestException"} + ] + }, "CreateSecurityConfiguration":{ "name":"CreateSecurityConfiguration", "http":{ @@ -153,6 +180,19 @@ {"shape":"InvalidRequestException"} ] }, + "ListInstanceFleets":{ + "name":"ListInstanceFleets", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListInstanceFleetsInput"}, + "output":{"shape":"ListInstanceFleetsOutput"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"InvalidRequestException"} + ] + }, "ListInstanceGroups":{ "name":"ListInstanceGroups", "http":{ @@ -205,6 +245,18 @@ {"shape":"InvalidRequestException"} ] }, + "ModifyInstanceFleet":{ + "name":"ModifyInstanceFleet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyInstanceFleetInput"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"InvalidRequestException"} + ] + }, "ModifyInstanceGroups":{ "name":"ModifyInstanceGroups", "http":{ @@ -216,6 +268,24 @@ {"shape":"InternalServerError"} ] }, + "PutAutoScalingPolicy":{ + "name":"PutAutoScalingPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutAutoScalingPolicyInput"}, + "output":{"shape":"PutAutoScalingPolicyOutput"} + }, + "RemoveAutoScalingPolicy":{ + "name":"RemoveAutoScalingPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RemoveAutoScalingPolicyInput"}, + "output":{"shape":"RemoveAutoScalingPolicyOutput"} + }, "RemoveTags":{ "name":"RemoveTags", "http":{ @@ -285,6 +355,24 @@ "CONTINUE" ] }, + "AddInstanceFleetInput":{ + "type":"structure", + "required":[ + "ClusterId", + "InstanceFleet" + ], + "members":{ + "ClusterId":{"shape":"XmlStringMaxLen256"}, + "InstanceFleet":{"shape":"InstanceFleetConfig"} + } + }, + "AddInstanceFleetOutput":{ + "type":"structure", + "members":{ + "ClusterId":{"shape":"XmlStringMaxLen256"}, + "InstanceFleetId":{"shape":"InstanceFleetId"} + } + }, "AddInstanceGroupsInput":{ "type":"structure", "required":[ @@ -336,6 +424,14 @@ "members":{ } }, + "AdjustmentType":{ + "type":"string", + "enum":[ + "CHANGE_IN_CAPACITY", + "PERCENT_CHANGE_IN_CAPACITY", + "EXACT_CAPACITY" + ] + }, "Application":{ "type":"structure", "members":{ @@ -349,6 +445,58 @@ "type":"list", "member":{"shape":"Application"} }, + "AutoScalingPolicy":{ + "type":"structure", + "required":[ + "Constraints", + "Rules" + ], + "members":{ + "Constraints":{"shape":"ScalingConstraints"}, + "Rules":{"shape":"ScalingRuleList"} + } + }, + "AutoScalingPolicyDescription":{ + "type":"structure", + "members":{ + "Status":{"shape":"AutoScalingPolicyStatus"}, + "Constraints":{"shape":"ScalingConstraints"}, + "Rules":{"shape":"ScalingRuleList"} + } + }, + "AutoScalingPolicyState":{ + "type":"string", + "enum":[ + "PENDING", + "ATTACHING", + "ATTACHED", + "DETACHING", + "DETACHED", + "FAILED" + ] + }, + "AutoScalingPolicyStateChangeReason":{ + "type":"structure", + "members":{ + "Code":{"shape":"AutoScalingPolicyStateChangeReasonCode"}, + "Message":{"shape":"String"} + } + }, + "AutoScalingPolicyStateChangeReasonCode":{ + "type":"string", + "enum":[ + "USER_REQUEST", + "PROVISION_FAILURE", + "CLEANUP_FAILURE" + ] + }, + "AutoScalingPolicyStatus":{ + "type":"structure", + "members":{ + "State":{"shape":"AutoScalingPolicyState"}, + "StateChangeReason":{"shape":"AutoScalingPolicyStateChangeReason"} + } + }, "Boolean":{"type":"boolean"}, "BooleanObject":{"type":"boolean"}, "BootstrapActionConfig":{ @@ -376,6 +524,58 @@ "type":"list", "member":{"shape":"BootstrapActionDetail"} }, + "CancelStepsInfo":{ + "type":"structure", + "members":{ + "StepId":{"shape":"StepId"}, + "Status":{"shape":"CancelStepsRequestStatus"}, + "Reason":{"shape":"String"} + } + }, + "CancelStepsInfoList":{ + "type":"list", + "member":{"shape":"CancelStepsInfo"} + }, + "CancelStepsInput":{ + "type":"structure", + "members":{ + "ClusterId":{"shape":"XmlStringMaxLen256"}, + "StepIds":{"shape":"StepIdsList"} + } + }, + "CancelStepsOutput":{ + "type":"structure", + "members":{ + "CancelStepsInfoList":{"shape":"CancelStepsInfoList"} + } + }, + "CancelStepsRequestStatus":{ + "type":"string", + "enum":[ + "SUBMITTED", + "FAILED" + ] + }, + "CloudWatchAlarmDefinition":{ + "type":"structure", + "required":[ + "ComparisonOperator", + "MetricName", + "Period", + "Threshold" + ], + "members":{ + "ComparisonOperator":{"shape":"ComparisonOperator"}, + "EvaluationPeriods":{"shape":"Integer"}, + "MetricName":{"shape":"String"}, + "Namespace":{"shape":"String"}, + "Period":{"shape":"Integer"}, + "Statistic":{"shape":"Statistic"}, + "Threshold":{"shape":"NonNegativeDouble"}, + "Unit":{"shape":"Unit"}, + "Dimensions":{"shape":"MetricDimensionList"} + } + }, "Cluster":{ "type":"structure", "members":{ @@ -383,6 +583,7 @@ "Name":{"shape":"String"}, "Status":{"shape":"ClusterStatus"}, "Ec2InstanceAttributes":{"shape":"Ec2InstanceAttributes"}, + "InstanceCollectionType":{"shape":"InstanceCollectionType"}, "LogUri":{"shape":"String"}, "RequestedAmiVersion":{"shape":"String"}, "RunningAmiVersion":{"shape":"String"}, @@ -396,7 +597,9 @@ "NormalizedInstanceHours":{"shape":"Integer"}, "MasterPublicDnsName":{"shape":"String"}, "Configurations":{"shape":"ConfigurationList"}, - "SecurityConfiguration":{"shape":"XmlString"} + "SecurityConfiguration":{"shape":"XmlString"}, + "AutoScalingRole":{"shape":"XmlString"}, + "ScaleDownBehavior":{"shape":"ScaleDownBehavior"} } }, "ClusterId":{"type":"string"}, @@ -476,6 +679,15 @@ "type":"list", "member":{"shape":"Command"} }, + "ComparisonOperator":{ + "type":"string", + "enum":[ + "GREATER_THAN_OR_EQUAL", + "GREATER_THAN", + "LESS_THAN", + "LESS_THAN_OR_EQUAL" + ] + }, "Configuration":{ "type":"structure", "members":{ @@ -637,7 +849,9 @@ "members":{ "Ec2KeyName":{"shape":"String"}, "Ec2SubnetId":{"shape":"String"}, + "RequestedEc2SubnetIds":{"shape":"XmlStringMaxLen256List"}, "Ec2AvailabilityZone":{"shape":"String"}, + "RequestedEc2AvailabilityZones":{"shape":"XmlStringMaxLen256List"}, "IamInstanceProfile":{"shape":"String"}, "EmrManagedMasterSecurityGroup":{"shape":"String"}, "EmrManagedSlaveSecurityGroup":{"shape":"String"}, @@ -690,9 +904,123 @@ "PrivateIpAddress":{"shape":"String"}, "Status":{"shape":"InstanceStatus"}, "InstanceGroupId":{"shape":"String"}, + "InstanceFleetId":{"shape":"InstanceFleetId"}, + "Market":{"shape":"MarketType"}, + "InstanceType":{"shape":"InstanceType"}, "EbsVolumes":{"shape":"EbsVolumeList"} } }, + "InstanceCollectionType":{ + "type":"string", + "enum":[ + "INSTANCE_FLEET", + "INSTANCE_GROUP" + ] + }, + "InstanceFleet":{ + "type":"structure", + "members":{ + "Id":{"shape":"InstanceFleetId"}, + "Name":{"shape":"XmlStringMaxLen256"}, + "Status":{"shape":"InstanceFleetStatus"}, + "InstanceFleetType":{"shape":"InstanceFleetType"}, + "TargetOnDemandCapacity":{"shape":"WholeNumber"}, + "TargetSpotCapacity":{"shape":"WholeNumber"}, + "ProvisionedOnDemandCapacity":{"shape":"WholeNumber"}, + "ProvisionedSpotCapacity":{"shape":"WholeNumber"}, + "InstanceTypeSpecifications":{"shape":"InstanceTypeSpecificationList"}, + "LaunchSpecifications":{"shape":"InstanceFleetProvisioningSpecifications"} + } + }, + "InstanceFleetConfig":{ + "type":"structure", + "required":["InstanceFleetType"], + "members":{ + "Name":{"shape":"XmlStringMaxLen256"}, + "InstanceFleetType":{"shape":"InstanceFleetType"}, + "TargetOnDemandCapacity":{"shape":"WholeNumber"}, + "TargetSpotCapacity":{"shape":"WholeNumber"}, + "InstanceTypeConfigs":{"shape":"InstanceTypeConfigList"}, + "LaunchSpecifications":{"shape":"InstanceFleetProvisioningSpecifications"} + } + }, + "InstanceFleetConfigList":{ + "type":"list", + "member":{"shape":"InstanceFleetConfig"} + }, + "InstanceFleetId":{"type":"string"}, + "InstanceFleetList":{ + "type":"list", + "member":{"shape":"InstanceFleet"} + }, + "InstanceFleetModifyConfig":{ + "type":"structure", + "required":["InstanceFleetId"], + "members":{ + "InstanceFleetId":{"shape":"InstanceFleetId"}, + "TargetOnDemandCapacity":{"shape":"WholeNumber"}, + "TargetSpotCapacity":{"shape":"WholeNumber"} + } + }, + "InstanceFleetProvisioningSpecifications":{ + "type":"structure", + "required":["SpotSpecification"], + "members":{ + "SpotSpecification":{"shape":"SpotProvisioningSpecification"} + } + }, + "InstanceFleetState":{ + "type":"string", + "enum":[ + "PROVISIONING", + "BOOTSTRAPPING", + "RUNNING", + "RESIZING", + "SUSPENDED", + "TERMINATING", + "TERMINATED" + ] + }, + "InstanceFleetStateChangeReason":{ + "type":"structure", + "members":{ + "Code":{"shape":"InstanceFleetStateChangeReasonCode"}, + "Message":{"shape":"String"} + } + }, + "InstanceFleetStateChangeReasonCode":{ + "type":"string", + "enum":[ + "INTERNAL_ERROR", + "VALIDATION_ERROR", + "INSTANCE_FAILURE", + "CLUSTER_TERMINATED" + ] + }, + "InstanceFleetStatus":{ + "type":"structure", + "members":{ + "State":{"shape":"InstanceFleetState"}, + "StateChangeReason":{"shape":"InstanceFleetStateChangeReason"}, + "Timeline":{"shape":"InstanceFleetTimeline"} + } + }, + "InstanceFleetTimeline":{ + "type":"structure", + "members":{ + "CreationDateTime":{"shape":"Date"}, + "ReadyDateTime":{"shape":"Date"}, + "EndDateTime":{"shape":"Date"} + } + }, + "InstanceFleetType":{ + "type":"string", + "enum":[ + "MASTER", + "CORE", + "TASK" + ] + }, "InstanceGroup":{ "type":"structure", "members":{ @@ -708,7 +1036,8 @@ "Configurations":{"shape":"ConfigurationList"}, "EbsBlockDevices":{"shape":"EbsBlockDeviceList"}, "EbsOptimized":{"shape":"BooleanObject"}, - "ShrinkPolicy":{"shape":"ShrinkPolicy"} + "ShrinkPolicy":{"shape":"ShrinkPolicy"}, + "AutoScalingPolicy":{"shape":"AutoScalingPolicyDescription"} } }, "InstanceGroupConfig":{ @@ -726,7 +1055,8 @@ "InstanceType":{"shape":"InstanceType"}, "InstanceCount":{"shape":"Integer"}, "Configurations":{"shape":"ConfigurationList"}, - "EbsConfiguration":{"shape":"EbsConfiguration"} + "EbsConfiguration":{"shape":"EbsConfiguration"}, + "AutoScalingPolicy":{"shape":"AutoScalingPolicy"} } }, "InstanceGroupConfigList":{ @@ -921,6 +1251,38 @@ "min":1, "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" }, + "InstanceTypeConfig":{ + "type":"structure", + "required":["InstanceType"], + "members":{ + "InstanceType":{"shape":"InstanceType"}, + "WeightedCapacity":{"shape":"WholeNumber"}, + "BidPrice":{"shape":"XmlStringMaxLen256"}, + "BidPriceAsPercentageOfOnDemandPrice":{"shape":"NonNegativeDouble"}, + "EbsConfiguration":{"shape":"EbsConfiguration"}, + "Configurations":{"shape":"ConfigurationList"} + } + }, + "InstanceTypeConfigList":{ + "type":"list", + "member":{"shape":"InstanceTypeConfig"} + }, + "InstanceTypeSpecification":{ + "type":"structure", + "members":{ + "InstanceType":{"shape":"InstanceType"}, + "WeightedCapacity":{"shape":"WholeNumber"}, + "BidPrice":{"shape":"XmlStringMaxLen256"}, + "BidPriceAsPercentageOfOnDemandPrice":{"shape":"NonNegativeDouble"}, + "Configurations":{"shape":"ConfigurationList"}, + "EbsBlockDevices":{"shape":"EbsBlockDeviceList"}, + "EbsOptimized":{"shape":"BooleanObject"} + } + }, + "InstanceTypeSpecificationList":{ + "type":"list", + "member":{"shape":"InstanceTypeSpecification"} + }, "Integer":{"type":"integer"}, "InternalServerError":{ "type":"structure", @@ -964,7 +1326,9 @@ "SupportedProducts":{"shape":"SupportedProductsList"}, "VisibleToAllUsers":{"shape":"Boolean"}, "JobFlowRole":{"shape":"XmlString"}, - "ServiceRole":{"shape":"XmlString"} + "ServiceRole":{"shape":"XmlString"}, + "AutoScalingRole":{"shape":"XmlString"}, + "ScaleDownBehavior":{"shape":"ScaleDownBehavior"} } }, "JobFlowDetailList":{ @@ -1010,12 +1374,14 @@ "SlaveInstanceType":{"shape":"InstanceType"}, "InstanceCount":{"shape":"Integer"}, "InstanceGroups":{"shape":"InstanceGroupConfigList"}, + "InstanceFleets":{"shape":"InstanceFleetConfigList"}, "Ec2KeyName":{"shape":"XmlStringMaxLen256"}, "Placement":{"shape":"PlacementType"}, "KeepJobFlowAliveWhenNoSteps":{"shape":"Boolean"}, "TerminationProtected":{"shape":"Boolean"}, "HadoopVersion":{"shape":"XmlStringMaxLen256"}, "Ec2SubnetId":{"shape":"XmlStringMaxLen256"}, + "Ec2SubnetIds":{"shape":"XmlStringMaxLen256List"}, "EmrManagedMasterSecurityGroup":{"shape":"XmlStringMaxLen256"}, "EmrManagedSlaveSecurityGroup":{"shape":"XmlStringMaxLen256"}, "ServiceAccessSecurityGroup":{"shape":"XmlStringMaxLen256"}, @@ -1088,6 +1454,21 @@ "Marker":{"shape":"Marker"} } }, + "ListInstanceFleetsInput":{ + "type":"structure", + "required":["ClusterId"], + "members":{ + "ClusterId":{"shape":"ClusterId"}, + "Marker":{"shape":"Marker"} + } + }, + "ListInstanceFleetsOutput":{ + "type":"structure", + "members":{ + "InstanceFleets":{"shape":"InstanceFleetList"}, + "Marker":{"shape":"Marker"} + } + }, "ListInstanceGroupsInput":{ "type":"structure", "required":["ClusterId"], @@ -1110,6 +1491,8 @@ "ClusterId":{"shape":"ClusterId"}, "InstanceGroupId":{"shape":"InstanceGroupId"}, "InstanceGroupTypes":{"shape":"InstanceGroupTypeList"}, + "InstanceFleetId":{"shape":"InstanceFleetId"}, + "InstanceFleetType":{"shape":"InstanceFleetType"}, "InstanceStates":{"shape":"InstanceStateList"}, "Marker":{"shape":"Marker"} } @@ -1159,9 +1542,32 @@ "SPOT" ] }, + "MetricDimension":{ + "type":"structure", + "members":{ + "Key":{"shape":"String"}, + "Value":{"shape":"String"} + } + }, + "MetricDimensionList":{ + "type":"list", + "member":{"shape":"MetricDimension"} + }, + "ModifyInstanceFleetInput":{ + "type":"structure", + "required":[ + "ClusterId", + "InstanceFleet" + ], + "members":{ + "ClusterId":{"shape":"ClusterId"}, + "InstanceFleet":{"shape":"InstanceFleetModifyConfig"} + } + }, "ModifyInstanceGroupsInput":{ "type":"structure", "members":{ + "ClusterId":{"shape":"ClusterId"}, "InstanceGroups":{"shape":"InstanceGroupModifyConfigList"} } }, @@ -1169,11 +1575,52 @@ "type":"list", "member":{"shape":"SupportedProductConfig"} }, + "NonNegativeDouble":{ + "type":"double", + "min":0.0 + }, "PlacementType":{ "type":"structure", - "required":["AvailabilityZone"], "members":{ - "AvailabilityZone":{"shape":"XmlString"} + "AvailabilityZone":{"shape":"XmlString"}, + "AvailabilityZones":{"shape":"XmlStringMaxLen256List"} + } + }, + "PutAutoScalingPolicyInput":{ + "type":"structure", + "required":[ + "ClusterId", + "InstanceGroupId", + "AutoScalingPolicy" + ], + "members":{ + "ClusterId":{"shape":"ClusterId"}, + "InstanceGroupId":{"shape":"InstanceGroupId"}, + "AutoScalingPolicy":{"shape":"AutoScalingPolicy"} + } + }, + "PutAutoScalingPolicyOutput":{ + "type":"structure", + "members":{ + "ClusterId":{"shape":"ClusterId"}, + "InstanceGroupId":{"shape":"InstanceGroupId"}, + "AutoScalingPolicy":{"shape":"AutoScalingPolicyDescription"} + } + }, + "RemoveAutoScalingPolicyInput":{ + "type":"structure", + "required":[ + "ClusterId", + "InstanceGroupId" + ], + "members":{ + "ClusterId":{"shape":"ClusterId"}, + "InstanceGroupId":{"shape":"InstanceGroupId"} + } + }, + "RemoveAutoScalingPolicyOutput":{ + "type":"structure", + "members":{ } }, "RemoveTagsInput":{ @@ -1216,7 +1663,9 @@ "JobFlowRole":{"shape":"XmlString"}, "ServiceRole":{"shape":"XmlString"}, "Tags":{"shape":"TagList"}, - "SecurityConfiguration":{"shape":"XmlString"} + "SecurityConfiguration":{"shape":"XmlString"}, + "AutoScalingRole":{"shape":"XmlString"}, + "ScaleDownBehavior":{"shape":"ScaleDownBehavior"} } }, "RunJobFlowOutput":{ @@ -1225,6 +1674,57 @@ "JobFlowId":{"shape":"XmlStringMaxLen256"} } }, + "ScaleDownBehavior":{ + "type":"string", + "enum":[ + "TERMINATE_AT_INSTANCE_HOUR", + "TERMINATE_AT_TASK_COMPLETION" + ] + }, + "ScalingAction":{ + "type":"structure", + "required":["SimpleScalingPolicyConfiguration"], + "members":{ + "Market":{"shape":"MarketType"}, + "SimpleScalingPolicyConfiguration":{"shape":"SimpleScalingPolicyConfiguration"} + } + }, + "ScalingConstraints":{ + "type":"structure", + "required":[ + "MinCapacity", + "MaxCapacity" + ], + "members":{ + "MinCapacity":{"shape":"Integer"}, + "MaxCapacity":{"shape":"Integer"} + } + }, + "ScalingRule":{ + "type":"structure", + "required":[ + "Name", + "Action", + "Trigger" + ], + "members":{ + "Name":{"shape":"String"}, + "Description":{"shape":"String"}, + "Action":{"shape":"ScalingAction"}, + "Trigger":{"shape":"ScalingTrigger"} + } + }, + "ScalingRuleList":{ + "type":"list", + "member":{"shape":"ScalingRule"} + }, + "ScalingTrigger":{ + "type":"structure", + "required":["CloudWatchAlarmDefinition"], + "members":{ + "CloudWatchAlarmDefinition":{"shape":"CloudWatchAlarmDefinition"} + } + }, "ScriptBootstrapActionConfig":{ "type":"structure", "required":["Path"], @@ -1277,6 +1777,44 @@ "InstanceResizePolicy":{"shape":"InstanceResizePolicy"} } }, + "SimpleScalingPolicyConfiguration":{ + "type":"structure", + "required":["ScalingAdjustment"], + "members":{ + "AdjustmentType":{"shape":"AdjustmentType"}, + "ScalingAdjustment":{"shape":"Integer"}, + "CoolDown":{"shape":"Integer"} + } + }, + "SpotProvisioningSpecification":{ + "type":"structure", + "required":[ + "TimeoutDurationMinutes", + "TimeoutAction" + ], + "members":{ + "TimeoutDurationMinutes":{"shape":"WholeNumber"}, + "TimeoutAction":{"shape":"SpotProvisioningTimeoutAction"}, + "BlockDurationMinutes":{"shape":"WholeNumber"} + } + }, + "SpotProvisioningTimeoutAction":{ + "type":"string", + "enum":[ + "SWITCH_TO_ON_DEMAND", + "TERMINATE_CLUSTER" + ] + }, + "Statistic":{ + "type":"string", + "enum":[ + "SAMPLE_COUNT", + "AVERAGE", + "SUM", + "MINIMUM", + "MAXIMUM" + ] + }, "Step":{ "type":"structure", "members":{ @@ -1353,6 +1891,7 @@ "type":"string", "enum":[ "PENDING", + "CANCEL_PENDING", "RUNNING", "COMPLETED", "CANCELLED", @@ -1445,6 +1984,38 @@ "JobFlowIds":{"shape":"XmlStringList"} } }, + "Unit":{ + "type":"string", + "enum":[ + "NONE", + "SECONDS", + "MICRO_SECONDS", + "MILLI_SECONDS", + "BYTES", + "KILO_BYTES", + "MEGA_BYTES", + "GIGA_BYTES", + "TERA_BYTES", + "BITS", + "KILO_BITS", + "MEGA_BITS", + "GIGA_BITS", + "TERA_BITS", + "PERCENT", + "COUNT", + "BYTES_PER_SECOND", + "KILO_BYTES_PER_SECOND", + "MEGA_BYTES_PER_SECOND", + "GIGA_BYTES_PER_SECOND", + "TERA_BYTES_PER_SECOND", + "BITS_PER_SECOND", + "KILO_BITS_PER_SECOND", + "MEGA_BITS_PER_SECOND", + "GIGA_BITS_PER_SECOND", + "TERA_BITS_PER_SECOND", + "COUNT_PER_SECOND" + ] + }, "VolumeSpecification":{ "type":"structure", "required":[ @@ -1457,6 +2028,10 @@ "SizeInGB":{"shape":"Integer"} } }, + "WholeNumber":{ + "type":"integer", + "min":0 + }, "XmlString":{ "type":"string", "max":10280, @@ -1472,6 +2047,10 @@ "max":256, "min":0, "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" + }, + "XmlStringMaxLen256List":{ + "type":"list", + "member":{"shape":"XmlStringMaxLen256"} } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/docs-2.json index cd87ca584..7fbc4ebda 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/docs-2.json @@ -1,38 +1,54 @@ { "version": "2.0", - "service": "

Amazon Elastic MapReduce (Amazon EMR) is a web service that makes it easy to process large amounts of data efficiently. Amazon EMR uses Hadoop processing combined with several AWS products to do tasks such as web indexing, data mining, log file analysis, machine learning, scientific simulation, and data warehousing.

", + "service": "

Amazon EMR is a web service that makes it easy to process large amounts of data efficiently. Amazon EMR uses Hadoop processing combined with several AWS products to do tasks such as web indexing, data mining, log file analysis, machine learning, scientific simulation, and data warehousing.

", "operations": { - "AddInstanceGroups": "

AddInstanceGroups adds an instance group to a running cluster.

", - "AddJobFlowSteps": "

AddJobFlowSteps adds new steps to a running job flow. A maximum of 256 steps are allowed in each job flow.

If your job flow is long-running (such as a Hive data warehouse) or complex, you may require more than 256 steps to process your data. You can bypass the 256-step limitation in various ways, including using the SSH shell to connect to the master node and submitting queries directly to the software running on the master node, such as Hive and Hadoop. For more information on how to do this, go to Add More than 256 Steps to a Job Flow in the Amazon Elastic MapReduce Developer's Guide.

A step specifies the location of a JAR file stored either on the master node of the job flow or in Amazon S3. Each step is performed by the main function of the main class of the JAR file. The main class can be specified either in the manifest of the JAR or by using the MainFunction parameter of the step.

Elastic MapReduce executes each step in the order listed. For a step to be considered complete, the main function must exit with a zero exit code and all Hadoop jobs started while the step was running must have completed and run successfully.

You can only add steps to a job flow that is in one of the following states: STARTING, BOOTSTRAPPING, RUNNING, or WAITING.

", + "AddInstanceFleet": "

Adds an instance fleet to a running cluster.

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x.

", + "AddInstanceGroups": "

Adds one or more instance groups to a running cluster.

", + "AddJobFlowSteps": "

AddJobFlowSteps adds new steps to a running cluster. A maximum of 256 steps are allowed in each job flow.

If your cluster is long-running (such as a Hive data warehouse) or complex, you may require more than 256 steps to process your data. You can bypass the 256-step limitation in various ways, including using SSH to connect to the master node and submitting queries directly to the software running on the master node, such as Hive and Hadoop. For more information on how to do this, see Add More than 256 Steps to a Cluster in the Amazon EMR Management Guide.

A step specifies the location of a JAR file stored either on the master node of the cluster or in Amazon S3. Each step is performed by the main function of the main class of the JAR file. The main class can be specified either in the manifest of the JAR or by using the MainFunction parameter of the step.

Amazon EMR executes each step in the order listed. For a step to be considered complete, the main function must exit with a zero exit code and all Hadoop jobs started while the step was running must have completed and run successfully.

You can only add steps to a cluster that is in one of the following states: STARTING, BOOTSTRAPPING, RUNNING, or WAITING.

", "AddTags": "

Adds tags to an Amazon EMR resource. Tags make it easier to associate clusters in various ways, such as grouping clusters to track your Amazon EMR resource allocation costs. For more information, see Tagging Amazon EMR Resources.

", - "CreateSecurityConfiguration": "

Creates a security configuration using EMR Security Configurations, which are stored in the service. Security Configurations enable you to more easily create a configuration, reuse it, and apply it whenever a cluster is created.

", + "CancelSteps": "

Cancels a pending step or steps in a running cluster. Available only in Amazon EMR versions 4.8.0 and later, excluding version 5.0.0. A maximum of 256 steps are allowed in each CancelSteps request. CancelSteps is idempotent but asynchronous; it does not guarantee a step will be canceled, even if the request is successfully submitted. You can only cancel steps that are in a PENDING state.

", + "CreateSecurityConfiguration": "

Creates a security configuration, which is stored in the service and can be specified when a cluster is created.

", "DeleteSecurityConfiguration": "

Deletes a security configuration.

", "DescribeCluster": "

Provides cluster-level details including status, hardware and software configuration, VPC settings, and so on. For information about the cluster steps, see ListSteps.

", - "DescribeJobFlows": "

This API is deprecated and will eventually be removed. We recommend you use ListClusters, DescribeCluster, ListSteps, ListInstanceGroups and ListBootstrapActions instead.

DescribeJobFlows returns a list of job flows that match all of the supplied parameters. The parameters can include a list of job flow IDs, job flow states, and restrictions on job flow creation date and time.

Regardless of supplied parameters, only job flows created within the last two months are returned.

If no parameters are supplied, then job flows matching either of the following criteria are returned:

  • Job flows created and completed in the last two weeks

  • Job flows created within the last two months that are in one of the following states: RUNNING, WAITING, SHUTTING_DOWN, STARTING

Amazon Elastic MapReduce can return a maximum of 512 job flow descriptions.

", + "DescribeJobFlows": "

This API is deprecated and will eventually be removed. We recommend you use ListClusters, DescribeCluster, ListSteps, ListInstanceGroups and ListBootstrapActions instead.

DescribeJobFlows returns a list of job flows that match all of the supplied parameters. The parameters can include a list of job flow IDs, job flow states, and restrictions on job flow creation date and time.

Regardless of supplied parameters, only job flows created within the last two months are returned.

If no parameters are supplied, then job flows matching either of the following criteria are returned:

  • Job flows created and completed in the last two weeks

  • Job flows created within the last two months that are in one of the following states: RUNNING, WAITING, SHUTTING_DOWN, STARTING

Amazon EMR can return a maximum of 512 job flow descriptions.

", "DescribeSecurityConfiguration": "

Provides the details of a security configuration by returning the configuration JSON.

", "DescribeStep": "

Provides more detail about the cluster step.

", "ListBootstrapActions": "

Provides information about the bootstrap actions associated with a cluster.

", "ListClusters": "

Provides the status of all clusters visible to this AWS account. Allows you to filter the list of clusters based on certain criteria; for example, filtering by cluster creation date and time or by status. This call returns a maximum of 50 clusters per call, but returns a marker to track the paging of the cluster list across multiple ListClusters calls.

", + "ListInstanceFleets": "

Lists all available details about the instance fleets in a cluster.

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

", "ListInstanceGroups": "

Provides all available details about the instance groups in a cluster.

", "ListInstances": "

Provides information about the cluster instances that Amazon EMR provisions on behalf of a user when it creates the cluster. For example, this operation indicates when the EC2 instances reach the Ready state, when instances become available to Amazon EMR to use for jobs, and the IP addresses for cluster instances, etc.

", "ListSecurityConfigurations": "

Lists all the security configurations visible to this account, providing their creation dates and times, and their names. This call returns a maximum of 50 clusters per call, but returns a marker to track the paging of the cluster list across multiple ListSecurityConfigurations calls.

", - "ListSteps": "

Provides a list of steps for the cluster.

", + "ListSteps": "

Provides a list of steps for the cluster in reverse order unless you specify stepIds with the request.

", + "ModifyInstanceFleet": "

Modifies the target On-Demand and target Spot capacities for the instance fleet with the specified InstanceFleetID within the cluster specified using ClusterID. The call either succeeds or fails atomically.

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

", "ModifyInstanceGroups": "

ModifyInstanceGroups modifies the number of nodes and configuration settings of an instance group. The input parameters include the new target instance count for the group and the instance group ID. The call will either succeed or fail atomically.

", + "PutAutoScalingPolicy": "

Creates or updates an automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric.

", + "RemoveAutoScalingPolicy": "

Removes an automatic scaling policy from a specified instance group within an EMR cluster.

", "RemoveTags": "

Removes tags from an Amazon EMR resource. Tags make it easier to associate clusters in various ways, such as grouping clusters to track your Amazon EMR resource allocation costs. For more information, see Tagging Amazon EMR Resources.

The following example removes the stack tag with value Prod from a cluster:

", - "RunJobFlow": "

RunJobFlow creates and starts running a new job flow. The job flow will run the steps specified. Once the job flow completes, the cluster is stopped and the HDFS partition is lost. To prevent loss of data, configure the last step of the job flow to store results in Amazon S3. If the JobFlowInstancesConfig KeepJobFlowAliveWhenNoSteps parameter is set to TRUE, the job flow will transition to the WAITING state rather than shutting down once the steps have completed.

For additional protection, you can set the JobFlowInstancesConfig TerminationProtected parameter to TRUE to lock the job flow and prevent it from being terminated by API call, user intervention, or in the event of a job flow error.

A maximum of 256 steps are allowed in each job flow.

If your job flow is long-running (such as a Hive data warehouse) or complex, you may require more than 256 steps to process your data. You can bypass the 256-step limitation in various ways, including using the SSH shell to connect to the master node and submitting queries directly to the software running on the master node, such as Hive and Hadoop. For more information on how to do this, go to Add More than 256 Steps to a Job Flow in the Amazon Elastic MapReduce Developer's Guide.

For long running job flows, we recommend that you periodically store your results.

", - "SetTerminationProtection": "

SetTerminationProtection locks a job flow so the Amazon EC2 instances in the cluster cannot be terminated by user intervention, an API call, or in the event of a job-flow error. The cluster still terminates upon successful completion of the job flow. Calling SetTerminationProtection on a job flow is analogous to calling the Amazon EC2 DisableAPITermination API on all of the EC2 instances in a cluster.

SetTerminationProtection is used to prevent accidental termination of a job flow and to ensure that in the event of an error, the instances will persist so you can recover any data stored in their ephemeral instance storage.

To terminate a job flow that has been locked by setting SetTerminationProtection to true, you must first unlock the job flow by a subsequent call to SetTerminationProtection in which you set the value to false.

For more information, go to Protecting a Job Flow from Termination in the Amazon Elastic MapReduce Developer's Guide.

", - "SetVisibleToAllUsers": "

Sets whether all AWS Identity and Access Management (IAM) users under your account can access the specified job flows. This action works on running job flows. You can also set the visibility of a job flow when you launch it using the VisibleToAllUsers parameter of RunJobFlow. The SetVisibleToAllUsers action can be called only by an IAM user who created the job flow or the AWS account that owns the job flow.

", - "TerminateJobFlows": "

TerminateJobFlows shuts a list of job flows down. When a job flow is shut down, any step not yet completed is canceled and the EC2 instances on which the job flow is running are stopped. Any log files not already saved are uploaded to Amazon S3 if a LogUri was specified when the job flow was created.

The maximum number of JobFlows allowed is 10. The call to TerminateJobFlows is asynchronous. Depending on the configuration of the job flow, it may take up to 5-20 minutes for the job flow to completely terminate and release allocated resources, such as Amazon EC2 instances.

" + "RunJobFlow": "

RunJobFlow creates and starts running a new cluster (job flow). The cluster runs the steps specified. After the steps complete, the cluster stops and the HDFS partition is lost. To prevent loss of data, configure the last step of the job flow to store results in Amazon S3. If the JobFlowInstancesConfig KeepJobFlowAliveWhenNoSteps parameter is set to TRUE, the cluster transitions to the WAITING state rather than shutting down after the steps have completed.

For additional protection, you can set the JobFlowInstancesConfig TerminationProtected parameter to TRUE to lock the cluster and prevent it from being terminated by API call, user intervention, or in the event of a job flow error.

A maximum of 256 steps are allowed in each job flow.

If your cluster is long-running (such as a Hive data warehouse) or complex, you may require more than 256 steps to process your data. You can bypass the 256-step limitation in various ways, including using the SSH shell to connect to the master node and submitting queries directly to the software running on the master node, such as Hive and Hadoop. For more information on how to do this, see Add More than 256 Steps to a Cluster in the Amazon EMR Management Guide.

For long running clusters, we recommend that you periodically store your results.

The instance fleets configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions. The RunJobFlow request can contain InstanceFleets parameters or InstanceGroups parameters, but not both.

", + "SetTerminationProtection": "

SetTerminationProtection locks a cluster (job flow) so the EC2 instances in the cluster cannot be terminated by user intervention, an API call, or in the event of a job-flow error. The cluster still terminates upon successful completion of the job flow. Calling SetTerminationProtection on a cluster is similar to calling the Amazon EC2 DisableAPITermination API on all EC2 instances in a cluster.

SetTerminationProtection is used to prevent accidental termination of a cluster and to ensure that in the event of an error, the instances persist so that you can recover any data stored in their ephemeral instance storage.

To terminate a cluster that has been locked by setting SetTerminationProtection to true, you must first unlock the job flow by a subsequent call to SetTerminationProtection in which you set the value to false.

For more information, seeManaging Cluster Termination in the Amazon EMR Management Guide.

", + "SetVisibleToAllUsers": "

Sets whether all AWS Identity and Access Management (IAM) users under your account can access the specified clusters (job flows). This action works on running clusters. You can also set the visibility of a cluster when you launch it using the VisibleToAllUsers parameter of RunJobFlow. The SetVisibleToAllUsers action can be called only by an IAM user who created the cluster or the AWS account that owns the cluster.

", + "TerminateJobFlows": "

TerminateJobFlows shuts a list of clusters (job flows) down. When a job flow is shut down, any step not yet completed is canceled and the EC2 instances on which the cluster is running are stopped. Any log files not already saved are uploaded to Amazon S3 if a LogUri was specified when the cluster was created.

The maximum number of clusters allowed is 10. The call to TerminateJobFlows is asynchronous. Depending on the configuration of the cluster, it may take up to 1-5 minutes for the cluster to completely terminate and release allocated resources, such as Amazon EC2 instances.

" }, "shapes": { "ActionOnFailure": { "base": null, "refs": { "Step$ActionOnFailure": "

This specifies what action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE.

", - "StepConfig$ActionOnFailure": "

The action to take if the job flow step fails.

", + "StepConfig$ActionOnFailure": "

The action to take if the step fails.

", "StepSummary$ActionOnFailure": "

This specifies what action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE.

" } }, + "AddInstanceFleetInput": { + "base": null, + "refs": { + } + }, + "AddInstanceFleetOutput": { + "base": null, + "refs": { + } + }, "AddInstanceGroupsInput": { "base": "

Input to an AddInstanceGroups call.

", "refs": { @@ -63,8 +79,14 @@ "refs": { } }, + "AdjustmentType": { + "base": null, + "refs": { + "SimpleScalingPolicyConfiguration$AdjustmentType": "

The way in which EC2 instances are added (if ScalingAdjustment is a positive number) or terminated (if ScalingAdjustment is a negative number) each time the scaling activity is triggered. CHANGE_IN_CAPACITY is the default. CHANGE_IN_CAPACITY indicates that the EC2 instance count increments or decrements by ScalingAdjustment, which should be expressed as an integer. PERCENT_CHANGE_IN_CAPACITY indicates the instance count increments or decrements by the percentage specified by ScalingAdjustment, which should be expressed as a decimal. For example, 0.20 indicates an increase in 20% increments of cluster capacity. EXACT_CAPACITY indicates the scaling activity results in an instance group with the number of EC2 instances specified by ScalingAdjustment, which should be expressed as a positive integer.

" + } + }, "Application": { - "base": "

An application is any Amazon or third-party software that you can add to the cluster. This structure contains a list of strings that indicates the software to use with the cluster and accepts a user argument list. Amazon EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action argument. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:

  • \"mapr-m3\" - launch the job flow using MapR M3 Edition.

  • \"mapr-m5\" - launch the job flow using MapR M5 Edition.

  • \"mapr\" with the user arguments specifying \"--edition,m3\" or \"--edition,m5\" - launch the job flow using MapR M3 or M5 Edition, respectively.

In Amazon EMR releases 4.0 and greater, the only accepted parameter is the application name. To pass arguments to applications, you supply a configuration for each application.

", + "base": "

An application is any Amazon or third-party software that you can add to the cluster. This structure contains a list of strings that indicates the software to use with the cluster and accepts a user argument list. Amazon EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action argument. For more information, see Using the MapR Distribution for Hadoop. Currently supported values are:

  • \"mapr-m3\" - launch the cluster using MapR M3 Edition.

  • \"mapr-m5\" - launch the cluster using MapR M5 Edition.

  • \"mapr\" with the user arguments specifying \"--edition,m3\" or \"--edition,m5\" - launch the cluster using MapR M3 or M5 Edition, respectively.

In Amazon EMR releases 4.0 and greater, the only accepted parameter is the application name. To pass arguments to applications, you supply a configuration for each application.

", "refs": { "ApplicationList$member": null } @@ -76,31 +98,70 @@ "RunJobFlowInput$Applications": "

Amazon EMR releases 4.x or later.

A list of applications for the cluster. Valid values are: \"Hadoop\", \"Hive\", \"Mahout\", \"Pig\", and \"Spark.\" They are case insensitive.

" } }, + "AutoScalingPolicy": { + "base": "

An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. An automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.

", + "refs": { + "InstanceGroupConfig$AutoScalingPolicy": "

An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.

", + "PutAutoScalingPolicyInput$AutoScalingPolicy": "

Specifies the definition of the automatic scaling policy.

" + } + }, + "AutoScalingPolicyDescription": { + "base": "

An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.

", + "refs": { + "InstanceGroup$AutoScalingPolicy": "

An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.

", + "PutAutoScalingPolicyOutput$AutoScalingPolicy": "

The automatic scaling policy definition.

" + } + }, + "AutoScalingPolicyState": { + "base": null, + "refs": { + "AutoScalingPolicyStatus$State": "

Indicates the status of the automatic scaling policy.

" + } + }, + "AutoScalingPolicyStateChangeReason": { + "base": "

The reason for an AutoScalingPolicyStatus change.

", + "refs": { + "AutoScalingPolicyStatus$StateChangeReason": "

The reason for a change in status.

" + } + }, + "AutoScalingPolicyStateChangeReasonCode": { + "base": null, + "refs": { + "AutoScalingPolicyStateChangeReason$Code": "

The code indicating the reason for the change in status.USER_REQUEST indicates that the scaling policy status was changed by a user. PROVISION_FAILURE indicates that the status change was because the policy failed to provision. CLEANUP_FAILURE indicates an error.

" + } + }, + "AutoScalingPolicyStatus": { + "base": "

The status of an automatic scaling policy.

", + "refs": { + "AutoScalingPolicyDescription$Status": "

The status of an automatic scaling policy.

" + } + }, "Boolean": { "base": null, "refs": { "Cluster$AutoTerminate": "

Specifies whether the cluster should terminate after completing all steps.

", "Cluster$TerminationProtected": "

Indicates whether Amazon EMR will lock the cluster to prevent the EC2 instances from being terminated by an API call or user intervention, or in the event of a cluster error.

", - "Cluster$VisibleToAllUsers": "

Indicates whether the job flow is visible to all IAM users of the AWS account associated with the job flow. If this value is set to true, all IAM users of that AWS account can view and manage the job flow if they have the proper policy permissions set. If this value is false, only the IAM user that created the cluster can view and manage it. This value can be changed using the SetVisibleToAllUsers action.

", - "JobFlowDetail$VisibleToAllUsers": "

Specifies whether the job flow is visible to all IAM users of the AWS account associated with the job flow. If this value is set to true, all IAM users of that AWS account can view and (if they have the proper policy permissions set) manage the job flow. If it is set to false, only the IAM user that created the job flow can view and manage it. This value can be changed using the SetVisibleToAllUsers action.

", - "JobFlowInstancesConfig$KeepJobFlowAliveWhenNoSteps": "

Specifies whether the job flow should be kept alive after completing all steps.

", - "JobFlowInstancesConfig$TerminationProtected": "

Specifies whether to lock the job flow to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job flow error.

", - "JobFlowInstancesDetail$KeepJobFlowAliveWhenNoSteps": "

Specifies whether the job flow should terminate after completing all steps.

", - "JobFlowInstancesDetail$TerminationProtected": "

Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user intervention, or in the event of a job flow error.

", - "RunJobFlowInput$VisibleToAllUsers": "

Whether the job flow is visible to all IAM users of the AWS account associated with the job flow. If this value is set to true, all IAM users of that AWS account can view and (if they have the proper policy permissions set) manage the job flow. If it is set to false, only the IAM user that created the job flow can view and manage it.

", - "SetTerminationProtectionInput$TerminationProtected": "

A Boolean that indicates whether to protect the job flow and prevent the Amazon EC2 instances in the cluster from shutting down due to API calls, user intervention, or job-flow error.

", - "SetVisibleToAllUsersInput$VisibleToAllUsers": "

Whether the specified job flows are visible to all IAM users of the AWS account associated with the job flow. If this value is set to True, all IAM users of that AWS account can view and, if they have the proper IAM policy permissions set, manage the job flows. If it is set to False, only the IAM user that created a job flow can view and manage it.

" + "Cluster$VisibleToAllUsers": "

Indicates whether the cluster is visible to all IAM users of the AWS account associated with the cluster. If this value is set to true, all IAM users of that AWS account can view and manage the cluster if they have the proper policy permissions set. If this value is false, only the IAM user that created the cluster can view and manage it. This value can be changed using the SetVisibleToAllUsers action.

", + "JobFlowDetail$VisibleToAllUsers": "

Specifies whether the cluster is visible to all IAM users of the AWS account associated with the cluster. If this value is set to true, all IAM users of that AWS account can view and (if they have the proper policy permissions set) manage the cluster. If it is set to false, only the IAM user that created the cluster can view and manage it. This value can be changed using the SetVisibleToAllUsers action.

", + "JobFlowInstancesConfig$KeepJobFlowAliveWhenNoSteps": "

Specifies whether the cluster should remain available after completing all steps.

", + "JobFlowInstancesConfig$TerminationProtected": "

Specifies whether to lock the cluster to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job-flow error.

", + "JobFlowInstancesDetail$KeepJobFlowAliveWhenNoSteps": "

Specifies whether the cluster should remain available after completing all steps.

", + "JobFlowInstancesDetail$TerminationProtected": "

Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user intervention, or in the event of a job-flow error.

", + "RunJobFlowInput$VisibleToAllUsers": "

Whether the cluster is visible to all IAM users of the AWS account associated with the cluster. If this value is set to true, all IAM users of that AWS account can view and (if they have the proper policy permissions set) manage the cluster. If it is set to false, only the IAM user that created the cluster can view and manage it.

", + "SetTerminationProtectionInput$TerminationProtected": "

A Boolean that indicates whether to protect the cluster and prevent the Amazon EC2 instances in the cluster from shutting down due to API calls, user intervention, or job-flow error.

", + "SetVisibleToAllUsersInput$VisibleToAllUsers": "

Whether the specified clusters are visible to all IAM users of the AWS account associated with the cluster. If this value is set to True, all IAM users of that AWS account can view and, if they have the proper IAM policy permissions set, manage the clusters. If it is set to False, only the IAM user that created a cluster can view and manage it.

" } }, "BooleanObject": { "base": null, "refs": { - "EbsConfiguration$EbsOptimized": null, - "InstanceGroup$EbsOptimized": "

If the instance group is EBS-optimized. An Amazon EBS-optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.

" + "EbsConfiguration$EbsOptimized": "

Indicates whether an Amazon EBS volume is EBS-optimized.

", + "InstanceGroup$EbsOptimized": "

If the instance group is EBS-optimized. An Amazon EBS-optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.

", + "InstanceTypeSpecification$EbsOptimized": "

Evaluates to TRUE when the specified InstanceType is EBS-optimized.

" } }, "BootstrapActionConfig": { - "base": null, + "base": "

Configuration of a bootstrap action.

", "refs": { "BootstrapActionConfigList$member": null, "BootstrapActionDetail$BootstrapActionConfig": "

A description of the bootstrap action.

" @@ -109,11 +170,11 @@ "BootstrapActionConfigList": { "base": null, "refs": { - "RunJobFlowInput$BootstrapActions": "

A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.

" + "RunJobFlowInput$BootstrapActions": "

A list of bootstrap actions to run before Hadoop starts on the cluster nodes.

" } }, "BootstrapActionDetail": { - "base": "

Reports the configuration of a bootstrap action in a job flow.

", + "base": "

Reports the configuration of a bootstrap action in a cluster (job flow).

", "refs": { "BootstrapActionDetailList$member": null } @@ -124,6 +185,40 @@ "JobFlowDetail$BootstrapActions": "

A list of the bootstrap actions run by the job flow.

" } }, + "CancelStepsInfo": { + "base": "

Specification of the status of a CancelSteps request. Available only in Amazon EMR version 4.8.0 and later, excluding version 5.0.0.

", + "refs": { + "CancelStepsInfoList$member": null + } + }, + "CancelStepsInfoList": { + "base": null, + "refs": { + "CancelStepsOutput$CancelStepsInfoList": "

A list of CancelStepsInfo, which shows the status of specified cancel requests for each StepID specified.

" + } + }, + "CancelStepsInput": { + "base": "

The input argument to the CancelSteps operation.

", + "refs": { + } + }, + "CancelStepsOutput": { + "base": "

The output for the CancelSteps operation.

", + "refs": { + } + }, + "CancelStepsRequestStatus": { + "base": null, + "refs": { + "CancelStepsInfo$Status": "

The status of a CancelSteps Request. The value may be SUBMITTED or FAILED.

" + } + }, + "CloudWatchAlarmDefinition": { + "base": "

The definition of a CloudWatch metric alarm, which determines when an automatic scaling activity is triggered. When the defined alarm conditions are satisfied, scaling activity begins.

", + "refs": { + "ScalingTrigger$CloudWatchAlarmDefinition": "

The definition of a CloudWatch metric alarm. When the defined alarm conditions are met along with other trigger parameters, scaling activity begins.

" + } + }, "Cluster": { "base": "

The detailed description of the cluster.

", "refs": { @@ -137,10 +232,16 @@ "ClusterSummary$Id": "

The unique identifier for the cluster.

", "DescribeClusterInput$ClusterId": "

The identifier of the cluster to describe.

", "DescribeStepInput$ClusterId": "

The identifier of the cluster with steps to describe.

", - "ListBootstrapActionsInput$ClusterId": "

The cluster identifier for the bootstrap actions to list .

", + "ListBootstrapActionsInput$ClusterId": "

The cluster identifier for the bootstrap actions to list.

", + "ListInstanceFleetsInput$ClusterId": "

The unique identifier of the cluster.

", "ListInstanceGroupsInput$ClusterId": "

The identifier of the cluster for which to list the instance groups.

", "ListInstancesInput$ClusterId": "

The identifier of the cluster for which to list the instances.

", - "ListStepsInput$ClusterId": "

The identifier of the cluster for which to list the steps.

" + "ListStepsInput$ClusterId": "

The identifier of the cluster for which to list the steps.

", + "ModifyInstanceFleetInput$ClusterId": "

The unique identifier of the cluster.

", + "ModifyInstanceGroupsInput$ClusterId": "

The ID of the cluster to which the instance group belongs.

", + "PutAutoScalingPolicyInput$ClusterId": "

Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.

", + "PutAutoScalingPolicyOutput$ClusterId": "

Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.

", + "RemoveAutoScalingPolicyInput$ClusterId": "

Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.

" } }, "ClusterState": { @@ -202,11 +303,17 @@ "CommandList": { "base": null, "refs": { - "ListBootstrapActionsOutput$BootstrapActions": "

The bootstrap actions associated with the cluster .

" + "ListBootstrapActionsOutput$BootstrapActions": "

The bootstrap actions associated with the cluster.

" + } + }, + "ComparisonOperator": { + "base": null, + "refs": { + "CloudWatchAlarmDefinition$ComparisonOperator": "

Determines how the metric specified by MetricName is compared to the value specified by Threshold.

" } }, "Configuration": { - "base": "

Amazon EMR releases 4.x or later.

Specifies a hardware and software configuration of the EMR cluster. This includes configurations for applications and software bundled with Amazon EMR. The Configuration object is a JSON object which is defined by a classification and a set of properties. Configurations can be nested, so a configuration may have its own Configuration objects listed.

", + "base": "

Amazon EMR releases 4.x or later.

An optional configuration specification to be used when provisioning cluster instances, which can include configurations for applications and software bundled with Amazon EMR. A configuration consists of a classification, properties, and optional nested configurations. A classification refers to an application-specific configuration file. Properties are the settings you want to change in that file. For more information, see Configuring Applications.

", "refs": { "ConfigurationList$member": null } @@ -215,9 +322,11 @@ "base": null, "refs": { "Cluster$Configurations": "

Amazon EMR releases 4.x or later.

The list of Configurations supplied to the EMR cluster.

", - "Configuration$Configurations": "

A list of configurations you apply to this configuration object.

", + "Configuration$Configurations": "

A list of additional configurations to apply within a configuration object.

", "InstanceGroup$Configurations": "

Amazon EMR releases 4.x or later.

The list of configurations supplied for an EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).

", "InstanceGroupConfig$Configurations": "

Amazon EMR releases 4.x or later.

The list of configurations supplied for an EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).

", + "InstanceTypeConfig$Configurations": "

A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.

", + "InstanceTypeSpecification$Configurations": "

A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software bundled with Amazon EMR.

", "RunJobFlowInput$Configurations": "

Amazon EMR releases 4.x or later.

The list of configurations supplied for the EMR cluster you are creating.

" } }, @@ -241,6 +350,9 @@ "DescribeJobFlowsInput$CreatedAfter": "

Return only job flows created after this date and time.

", "DescribeJobFlowsInput$CreatedBefore": "

Return only job flows created before this date and time.

", "DescribeSecurityConfigurationOutput$CreationDateTime": "

The date and time the security configuration was created

", + "InstanceFleetTimeline$CreationDateTime": "

The time and date the instance fleet was created.

", + "InstanceFleetTimeline$ReadyDateTime": "

The time and date the instance fleet was ready to run jobs.

", + "InstanceFleetTimeline$EndDateTime": "

The time and date the instance fleet terminated.

", "InstanceGroupDetail$CreationDateTime": "

The date/time the instance group was created.

", "InstanceGroupDetail$StartDateTime": "

The date/time the instance group was started.

", "InstanceGroupDetail$ReadyDateTime": "

The date/time the instance group was available to the cluster.

", @@ -255,8 +367,8 @@ "JobFlowExecutionStatusDetail$StartDateTime": "

The start date and time of the job flow.

", "JobFlowExecutionStatusDetail$ReadyDateTime": "

The date and time when the job flow was ready to start running bootstrap actions.

", "JobFlowExecutionStatusDetail$EndDateTime": "

The completion date and time of the job flow.

", - "ListClustersInput$CreatedAfter": "

The creation date and time beginning value filter for listing clusters .

", - "ListClustersInput$CreatedBefore": "

The creation date and time end value filter for listing clusters .

", + "ListClustersInput$CreatedAfter": "

The creation date and time beginning value filter for listing clusters.

", + "ListClustersInput$CreatedBefore": "

The creation date and time end value filter for listing clusters.

", "SecurityConfigurationSummary$CreationDateTime": "

The date and time the security configuration was created.

", "StepExecutionStatusDetail$CreationDateTime": "

The creation date and time of the step.

", "StepExecutionStatusDetail$StartDateTime": "

The start date and time of the step.

", @@ -326,7 +438,7 @@ "EC2InstanceIdsToTerminateList": { "base": null, "refs": { - "InstanceGroupModifyConfig$EC2InstanceIdsToTerminate": "

The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.

" + "InstanceGroupModifyConfig$EC2InstanceIdsToTerminate": "

The EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to its original requested size.

" } }, "EbsBlockDevice": { @@ -344,19 +456,21 @@ "EbsBlockDeviceConfigList": { "base": null, "refs": { - "EbsConfiguration$EbsBlockDeviceConfigs": null + "EbsConfiguration$EbsBlockDeviceConfigs": "

An array of Amazon EBS volume specifications attached to a cluster instance.

" } }, "EbsBlockDeviceList": { "base": null, "refs": { - "InstanceGroup$EbsBlockDevices": "

The EBS block devices that are mapped to this instance group.

" + "InstanceGroup$EbsBlockDevices": "

The EBS block devices that are mapped to this instance group.

", + "InstanceTypeSpecification$EbsBlockDevices": "

The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by InstanceType.

" } }, "EbsConfiguration": { - "base": null, + "base": "

The Amazon EBS configuration of a cluster instance.

", "refs": { - "InstanceGroupConfig$EbsConfiguration": "

EBS configurations that will be attached to each Amazon EC2 instance in the instance group.

" + "InstanceGroupConfig$EbsConfiguration": "

EBS configurations that will be attached to each EC2 instance in the instance group.

", + "InstanceTypeConfig$EbsConfiguration": "

The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by InstanceType.

" } }, "EbsVolume": { @@ -374,7 +488,7 @@ "Ec2InstanceAttributes": { "base": "

Provides information about the EC2 instances in a cluster grouped by category. For example, key name, subnet ID, IAM instance profile, and so on.

", "refs": { - "Cluster$Ec2InstanceAttributes": null + "Cluster$Ec2InstanceAttributes": "

Provides information about the EC2 instances in a cluster grouped by category. For example, key name, subnet ID, IAM instance profile, and so on.

" } }, "ErrorCode": { @@ -399,7 +513,7 @@ "HadoopJarStepConfig": { "base": "

A job flow step consisting of a JAR file whose main function will be executed. The main function submits a job for Hadoop to execute and waits for the job to finish or fail.

", "refs": { - "StepConfig$HadoopJarStep": "

The JAR file used for the job flow step.

" + "StepConfig$HadoopJarStep": "

The JAR file used for the step.

" } }, "HadoopStepConfig": { @@ -415,6 +529,98 @@ "InstanceList$member": null } }, + "InstanceCollectionType": { + "base": null, + "refs": { + "Cluster$InstanceCollectionType": "

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

The instance group configuration of the cluster. A value of INSTANCE_GROUP indicates a uniform instance group configuration. A value of INSTANCE_FLEET indicates an instance fleets configuration.

" + } + }, + "InstanceFleet": { + "base": "

Describes an instance fleet, which is a group of EC2 instances that host a particular node type (master, core, or task) in an Amazon EMR cluster. Instance fleets can consist of a mix of instance types and On-Demand and Spot instances, which are provisioned to meet a defined target capacity.

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

", + "refs": { + "InstanceFleetList$member": null + } + }, + "InstanceFleetConfig": { + "base": "

The configuration that defines an instance fleet.

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

", + "refs": { + "AddInstanceFleetInput$InstanceFleet": "

Specifies the configuration of the instance fleet.

", + "InstanceFleetConfigList$member": null + } + }, + "InstanceFleetConfigList": { + "base": null, + "refs": { + "JobFlowInstancesConfig$InstanceFleets": "

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

Describes the EC2 instances and instance configurations for clusters that use the instance fleet configuration.

" + } + }, + "InstanceFleetId": { + "base": null, + "refs": { + "AddInstanceFleetOutput$InstanceFleetId": "

The unique identifier of the instance fleet.

", + "Instance$InstanceFleetId": "

The unique identifier of the instance fleet to which an EC2 instance belongs.

", + "InstanceFleet$Id": "

The unique identifier of the instance fleet.

", + "InstanceFleetModifyConfig$InstanceFleetId": "

A unique identifier for the instance fleet.

", + "ListInstancesInput$InstanceFleetId": "

The unique identifier of the instance fleet.

" + } + }, + "InstanceFleetList": { + "base": null, + "refs": { + "ListInstanceFleetsOutput$InstanceFleets": "

The list of instance fleets for the cluster and given filters.

" + } + }, + "InstanceFleetModifyConfig": { + "base": "

Configuration parameters for an instance fleet modification request.

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

", + "refs": { + "ModifyInstanceFleetInput$InstanceFleet": "

The unique identifier of the instance fleet.

" + } + }, + "InstanceFleetProvisioningSpecifications": { + "base": "

The launch specification for Spot instances in the fleet, which determines the defined duration and provisioning timeout behavior.

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

", + "refs": { + "InstanceFleet$LaunchSpecifications": "

Describes the launch specification for an instance fleet.

", + "InstanceFleetConfig$LaunchSpecifications": "

The launch specification for the instance fleet.

" + } + }, + "InstanceFleetState": { + "base": null, + "refs": { + "InstanceFleetStatus$State": "

A code representing the instance fleet status.

" + } + }, + "InstanceFleetStateChangeReason": { + "base": "

Provides status change reason details for the instance fleet.

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

", + "refs": { + "InstanceFleetStatus$StateChangeReason": "

Provides status change reason details for the instance fleet.

" + } + }, + "InstanceFleetStateChangeReasonCode": { + "base": null, + "refs": { + "InstanceFleetStateChangeReason$Code": "

A code corresponding to the reason the state change occurred.

" + } + }, + "InstanceFleetStatus": { + "base": "

The status of the instance fleet.

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

", + "refs": { + "InstanceFleet$Status": "

The current status of the instance fleet.

" + } + }, + "InstanceFleetTimeline": { + "base": "

Provides historical timestamps for the instance fleet, including the time of creation, the time it became ready to run jobs, and the time of termination.

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

", + "refs": { + "InstanceFleetStatus$Timeline": "

Provides historical timestamps for the instance fleet, including the time of creation, the time it became ready to run jobs, and the time of termination.

" + } + }, + "InstanceFleetType": { + "base": null, + "refs": { + "InstanceFleet$InstanceFleetType": "

The node type that the instance fleet hosts. Valid values are MASTER, CORE, or TASK.

", + "InstanceFleetConfig$InstanceFleetType": "

The node type that the instance fleet hosts. Valid values are MASTER,CORE,and TASK.

", + "ListInstancesInput$InstanceFleetType": "

The node type of the instance fleet. For example MASTER, CORE, or TASK.

" + } + }, "InstanceGroup": { "base": "

This entity represents an instance group, which is a group of instances that have common purpose. For example, CORE instance group is used for HDFS.

", "refs": { @@ -430,8 +636,8 @@ "InstanceGroupConfigList": { "base": null, "refs": { - "AddInstanceGroupsInput$InstanceGroups": "

Instance Groups to add.

", - "JobFlowInstancesConfig$InstanceGroups": "

Configuration for the job flow's instance groups.

" + "AddInstanceGroupsInput$InstanceGroups": "

Instance groups to add.

", + "JobFlowInstancesConfig$InstanceGroups": "

Configuration for the instance groups in a cluster.

" } }, "InstanceGroupDetail": { @@ -443,14 +649,17 @@ "InstanceGroupDetailList": { "base": null, "refs": { - "JobFlowInstancesDetail$InstanceGroups": "

Details about the job flow's instance groups.

" + "JobFlowInstancesDetail$InstanceGroups": "

Details about the instance groups in a cluster.

" } }, "InstanceGroupId": { "base": null, "refs": { "InstanceGroup$Id": "

The identifier of the instance group.

", - "ListInstancesInput$InstanceGroupId": "

The identifier of the instance group for which to list the instances.

" + "ListInstancesInput$InstanceGroupId": "

The identifier of the instance group for which to list the instances.

", + "PutAutoScalingPolicyInput$InstanceGroupId": "

Specifies the ID of the instance group to which the automatic scaling policy is applied.

", + "PutAutoScalingPolicyOutput$InstanceGroupId": "

Specifies the ID of the instance group to which the scaling policy is applied.

", + "RemoveAutoScalingPolicyInput$InstanceGroupId": "

Specifies the ID of the instance group to which the scaling policy is applied.

" } }, "InstanceGroupIdsList": { @@ -589,21 +798,50 @@ "InstanceType": { "base": null, "refs": { + "Instance$InstanceType": "

The EC2 instance type, for example m3.xlarge.

", "InstanceGroup$InstanceType": "

The EC2 instance type for all instances in the instance group.

", - "InstanceGroupConfig$InstanceType": "

The Amazon EC2 instance type for all instances in the instance group.

", - "InstanceGroupDetail$InstanceType": "

Amazon EC2 Instance type.

", + "InstanceGroupConfig$InstanceType": "

The EC2 instance type for all instances in the instance group.

", + "InstanceGroupDetail$InstanceType": "

EC2 instance type.

", + "InstanceTypeConfig$InstanceType": "

An EC2 instance type, such as m3.xlarge.

", + "InstanceTypeSpecification$InstanceType": "

The EC2 instance type, for example m3.xlarge.

", "JobFlowInstancesConfig$MasterInstanceType": "

The EC2 instance type of the master node.

", "JobFlowInstancesConfig$SlaveInstanceType": "

The EC2 instance type of the slave nodes.

", "JobFlowInstancesDetail$MasterInstanceType": "

The Amazon EC2 master node instance type.

", "JobFlowInstancesDetail$SlaveInstanceType": "

The Amazon EC2 slave node instance type.

" } }, + "InstanceTypeConfig": { + "base": "

An instance type configuration for each instance type in an instance fleet, which determines the EC2 instances Amazon EMR attempts to provision to fulfill On-Demand and Spot target capacities. There can be a maximum of 5 instance type configurations in a fleet.

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

", + "refs": { + "InstanceTypeConfigList$member": null + } + }, + "InstanceTypeConfigList": { + "base": null, + "refs": { + "InstanceFleetConfig$InstanceTypeConfigs": "

The instance type configurations that define the EC2 instances in the instance fleet.

" + } + }, + "InstanceTypeSpecification": { + "base": "

The configuration specification for each instance type in an instance fleet.

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

", + "refs": { + "InstanceTypeSpecificationList$member": null + } + }, + "InstanceTypeSpecificationList": { + "base": null, + "refs": { + "InstanceFleet$InstanceTypeSpecifications": "

The specification for the instance types that comprise an instance fleet. Up to five unique instance specifications may be defined for each instance fleet.

" + } + }, "Integer": { "base": null, "refs": { - "Cluster$NormalizedInstanceHours": "

An approximation of the cost of the job flow, represented in m1.small/hours. This value is incremented one time for every hour an m1.small instance runs. Larger instances are weighted more, so an EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.

", - "ClusterSummary$NormalizedInstanceHours": "

An approximation of the cost of the job flow, represented in m1.small/hours. This value is incremented one time for every hour an m1.small instance runs. Larger instances are weighted more, so an EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.

", - "EbsBlockDeviceConfig$VolumesPerInstance": "

Number of EBS volumes with specific volume configuration, that will be associated with every instance in the instance group

", + "CloudWatchAlarmDefinition$EvaluationPeriods": "

The number of periods, expressed in seconds using Period, during which the alarm condition must exist before the alarm triggers automatic scaling activity. The default value is 1.

", + "CloudWatchAlarmDefinition$Period": "

The period, in seconds, over which the statistic is applied. EMR CloudWatch metrics are emitted every five minutes (300 seconds), so if an EMR CloudWatch metric is specified, specify 300.

", + "Cluster$NormalizedInstanceHours": "

An approximation of the cost of the cluster, represented in m1.small/hours. This value is incremented one time for every hour an m1.small instance runs. Larger instances are weighted more, so an EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.

", + "ClusterSummary$NormalizedInstanceHours": "

An approximation of the cost of the cluster, represented in m1.small/hours. This value is incremented one time for every hour an m1.small instance runs. Larger instances are weighted more, so an EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.

", + "EbsBlockDeviceConfig$VolumesPerInstance": "

Number of EBS volumes with a specific volume configuration that will be associated with every instance in the instance group

", "InstanceGroup$RequestedInstanceCount": "

The target number of instances for the instance group.

", "InstanceGroup$RunningInstanceCount": "

The number of instances currently running in this instance group.

", "InstanceGroupConfig$InstanceCount": "

Target number of instances for the instance group.

", @@ -611,10 +849,14 @@ "InstanceGroupDetail$InstanceRunningCount": "

Actual count of running instances.

", "InstanceGroupModifyConfig$InstanceCount": "

Target size for the instance group.

", "InstanceResizePolicy$InstanceTerminationTimeout": "

Decommissioning timeout override for the specific list of instances to be terminated.

", - "JobFlowInstancesConfig$InstanceCount": "

The number of Amazon EC2 instances used to execute the job flow.

", + "JobFlowInstancesConfig$InstanceCount": "

The number of EC2 instances in the cluster.

", "JobFlowInstancesDetail$InstanceCount": "

The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the master and slave node. If the value is greater than 1, one instance is the master node and all others are slave nodes.

", - "JobFlowInstancesDetail$NormalizedInstanceHours": "

An approximation of the cost of the job flow, represented in m1.small/hours. This value is incremented once for every hour an m1.small runs. Larger instances are weighted more, so an Amazon EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.

", + "JobFlowInstancesDetail$NormalizedInstanceHours": "

An approximation of the cost of the cluster, represented in m1.small/hours. This value is incremented one time for every hour that an m1.small runs. Larger instances are weighted more, so an Amazon EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.

", + "ScalingConstraints$MinCapacity": "

The lower boundary of EC2 instances in an instance group below which scaling activities are not allowed to shrink. Scale-in activities will not terminate instances below this boundary.

", + "ScalingConstraints$MaxCapacity": "

The upper boundary of EC2 instances in an instance group beyond which scaling activities are not allowed to grow. Scale-out activities will not add instances beyond this boundary.

", "ShrinkPolicy$DecommissionTimeout": "

The desired timeout for decommissioning an instance. Overrides the default YARN decommissioning timeout.

", + "SimpleScalingPolicyConfiguration$ScalingAdjustment": "

The amount by which to scale in or scale out, based on the specified AdjustmentType. A positive value adds to the instance group's EC2 instance count while a negative number removes instances. If AdjustmentType is set to EXACT_CAPACITY, the number should only be a positive integer. If AdjustmentType is set to PERCENT_CHANGE_IN_CAPACITY, the value should express the percentage as a decimal. For example, -0.20 indicates a decrease in 20% increments of cluster capacity.

", + "SimpleScalingPolicyConfiguration$CoolDown": "

The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start. The default value is 0.

", "VolumeSpecification$Iops": "

The number of I/O operations per second (IOPS) that the volume supports.

", "VolumeSpecification$SizeInGB": "

The volume size, in gibibytes (GiB). This can be a number from 1 - 1024. If the volume type is EBS-optimized, the minimum value is 10.

" } @@ -635,7 +877,7 @@ } }, "JobFlowDetail": { - "base": "

A description of a job flow.

", + "base": "

A description of a cluster (job flow).

", "refs": { "JobFlowDetailList$member": null } @@ -660,19 +902,19 @@ } }, "JobFlowExecutionStatusDetail": { - "base": "

Describes the status of the job flow.

", + "base": "

Describes the status of the cluster (job flow).

", "refs": { "JobFlowDetail$ExecutionStatusDetail": "

Describes the execution status of the job flow.

" } }, "JobFlowInstancesConfig": { - "base": "

A description of the Amazon EC2 instance running the job flow. A valid JobFlowInstancesConfig must contain at least InstanceGroups, which is the recommended configuration. However, a valid alternative is to have MasterInstanceType, SlaveInstanceType, and InstanceCount (all three must be present).

", + "base": "

A description of the Amazon EC2 instance on which the cluster (job flow) runs. A valid JobFlowInstancesConfig must contain either InstanceGroups or InstanceFleets, which is the recommended configuration. They cannot be used together. You may also have MasterInstanceType, SlaveInstanceType, and InstanceCount (all three must be present), but we don't recommend this configuration.

", "refs": { - "RunJobFlowInput$Instances": "

A specification of the number and type of Amazon EC2 instances on which to run the job flow.

" + "RunJobFlowInput$Instances": "

A specification of the number and type of Amazon EC2 instances.

" } }, "JobFlowInstancesDetail": { - "base": "

Specify the type of Amazon EC2 instances to run the job flow on.

", + "base": "

Specify the type of Amazon EC2 instances that the cluster (job flow) runs on.

", "refs": { "JobFlowDetail$Instances": "

Describes the Amazon EC2 instances of the job flow.

" } @@ -695,7 +937,7 @@ } }, "ListBootstrapActionsOutput": { - "base": "

This output contains the boostrap actions detail .

", + "base": "

This output contains the bootstrap actions detail.

", "refs": { } }, @@ -709,6 +951,16 @@ "refs": { } }, + "ListInstanceFleetsInput": { + "base": null, + "refs": { + } + }, + "ListInstanceFleetsOutput": { + "base": null, + "refs": { + } + }, "ListInstanceGroupsInput": { "base": "

This input determines which instance groups to retrieve.

", "refs": { @@ -756,6 +1008,8 @@ "ListBootstrapActionsOutput$Marker": "

The pagination token that indicates the next set of results to retrieve.

", "ListClustersInput$Marker": "

The pagination token that indicates the next set of results to retrieve.

", "ListClustersOutput$Marker": "

The pagination token that indicates the next set of results to retrieve.

", + "ListInstanceFleetsInput$Marker": "

The pagination token that indicates the next set of results to retrieve.

", + "ListInstanceFleetsOutput$Marker": "

The pagination token that indicates the next set of results to retrieve.

", "ListInstanceGroupsInput$Marker": "

The pagination token that indicates the next set of results to retrieve.

", "ListInstanceGroupsOutput$Marker": "

The pagination token that indicates the next set of results to retrieve.

", "ListInstancesInput$Marker": "

The pagination token that indicates the next set of results to retrieve.

", @@ -769,9 +1023,28 @@ "MarketType": { "base": null, "refs": { + "Instance$Market": "

The instance purchasing option. Valid values are ON_DEMAND or SPOT.

", "InstanceGroup$Market": "

The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.

", - "InstanceGroupConfig$Market": "

Market type of the Amazon EC2 instances used to create a cluster node.

", - "InstanceGroupDetail$Market": "

Market type of the Amazon EC2 instances used to create a cluster node.

" + "InstanceGroupConfig$Market": "

Market type of the EC2 instances used to create a cluster node.

", + "InstanceGroupDetail$Market": "

Market type of the EC2 instances used to create a cluster node.

", + "ScalingAction$Market": "

Not available for instance groups. Instance groups use the market type specified for the group.

" + } + }, + "MetricDimension": { + "base": "

A CloudWatch dimension, which is specified using a Key (known as a Name in CloudWatch), Value pair. By default, Amazon EMR uses one dimension whose Key is JobFlowID and Value is a variable representing the cluster ID, which is ${emr.clusterId}. This enables the rule to bootstrap when the cluster ID becomes available.

", + "refs": { + "MetricDimensionList$member": null + } + }, + "MetricDimensionList": { + "base": null, + "refs": { + "CloudWatchAlarmDefinition$Dimensions": "

A CloudWatch metric dimension.

" + } + }, + "ModifyInstanceFleetInput": { + "base": null, + "refs": { } }, "ModifyInstanceGroupsInput": { @@ -782,14 +1055,42 @@ "NewSupportedProductsList": { "base": null, "refs": { - "RunJobFlowInput$NewSupportedProducts": "

For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.

A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:

  • \"mapr-m3\" - launch the cluster using MapR M3 Edition.

  • \"mapr-m5\" - launch the cluster using MapR M5 Edition.

  • \"mapr\" with the user arguments specifying \"--edition,m3\" or \"--edition,m5\" - launch the job flow using MapR M3 or M5 Edition respectively.

  • \"mapr-m7\" - launch the cluster using MapR M7 Edition.

  • \"hunk\" - launch the cluster with the Hunk Big Data Analtics Platform.

  • \"hue\"- launch the cluster with Hue installed.

  • \"spark\" - launch the cluster with Apache Spark installed.

  • \"ganglia\" - launch the cluster with the Ganglia Monitoring System installed.

" + "RunJobFlowInput$NewSupportedProducts": "

For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.

A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see \"Launch a Job Flow on the MapR Distribution for Hadoop\" in the Amazon EMR Developer Guide. Supported values are:

  • \"mapr-m3\" - launch the cluster using MapR M3 Edition.

  • \"mapr-m5\" - launch the cluster using MapR M5 Edition.

  • \"mapr\" with the user arguments specifying \"--edition,m3\" or \"--edition,m5\" - launch the job flow using MapR M3 or M5 Edition respectively.

  • \"mapr-m7\" - launch the cluster using MapR M7 Edition.

  • \"hunk\" - launch the cluster with the Hunk Big Data Analtics Platform.

  • \"hue\"- launch the cluster with Hue installed.

  • \"spark\" - launch the cluster with Apache Spark installed.

  • \"ganglia\" - launch the cluster with the Ganglia Monitoring System installed.

" + } + }, + "NonNegativeDouble": { + "base": null, + "refs": { + "CloudWatchAlarmDefinition$Threshold": "

The value against which the specified statistic is compared.

", + "InstanceTypeConfig$BidPriceAsPercentageOfOnDemandPrice": "

The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by InstanceType. Expressed as a number between 0 and 1000 (for example, 20 specifies 20%). If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.

", + "InstanceTypeSpecification$BidPriceAsPercentageOfOnDemandPrice": "

The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by InstanceType. Expressed as a number (for example, 20 specifies 20%).

" } }, "PlacementType": { - "base": "

The Amazon EC2 location for the job flow.

", + "base": "

The Amazon EC2 Availability Zone configuration of the cluster (job flow).

", + "refs": { + "JobFlowInstancesConfig$Placement": "

The Availability Zone in which the cluster runs.

", + "JobFlowInstancesDetail$Placement": "

The Amazon EC2 Availability Zone for the cluster.

" + } + }, + "PutAutoScalingPolicyInput": { + "base": null, + "refs": { + } + }, + "PutAutoScalingPolicyOutput": { + "base": null, + "refs": { + } + }, + "RemoveAutoScalingPolicyInput": { + "base": null, + "refs": { + } + }, + "RemoveAutoScalingPolicyOutput": { + "base": null, "refs": { - "JobFlowInstancesConfig$Placement": "

The Availability Zone the job flow will run in.

", - "JobFlowInstancesDetail$Placement": "

The Amazon EC2 Availability Zone for the job flow.

" } }, "RemoveTagsInput": { @@ -819,10 +1120,50 @@ "refs": { } }, - "ScriptBootstrapActionConfig": { + "ScaleDownBehavior": { + "base": null, + "refs": { + "Cluster$ScaleDownBehavior": "

The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR indicates that Amazon EMR terminates nodes at the instance-hour boundary, regardless of when the request to terminate the instance was submitted. This option is only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that version. TERMINATE_AT_TASK_COMPLETION indicates that Amazon EMR blacklists and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and blocks instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION is available only in Amazon EMR version 4.1.0 and later, and is the default for versions of Amazon EMR earlier than 5.1.0.

", + "JobFlowDetail$ScaleDownBehavior": "

The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR indicates that Amazon EMR terminates nodes at the instance-hour boundary, regardless of when the request to terminate the instance was submitted. This option is only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that version. TERMINATE_AT_TASK_COMPLETION indicates that Amazon EMR blacklists and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and blocks instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION available only in Amazon EMR version 4.1.0 and later, and is the default for versions of Amazon EMR earlier than 5.1.0.

", + "RunJobFlowInput$ScaleDownBehavior": "

Specifies the way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR indicates that Amazon EMR terminates nodes at the instance-hour boundary, regardless of when the request to terminate the instance was submitted. This option is only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that version. TERMINATE_AT_TASK_COMPLETION indicates that Amazon EMR blacklists and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and blocks instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION available only in Amazon EMR version 4.1.0 and later, and is the default for versions of Amazon EMR earlier than 5.1.0.

" + } + }, + "ScalingAction": { + "base": "

The type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment.

", + "refs": { + "ScalingRule$Action": "

The conditions that trigger an automatic scaling activity.

" + } + }, + "ScalingConstraints": { + "base": "

The upper and lower EC2 instance limits for an automatic scaling policy. Automatic scaling activities triggered by automatic scaling rules will not cause an instance group to grow above or below these limits.

", + "refs": { + "AutoScalingPolicy$Constraints": "

The upper and lower EC2 instance limits for an automatic scaling policy. Automatic scaling activity will not cause an instance group to grow above or below these limits.

", + "AutoScalingPolicyDescription$Constraints": "

The upper and lower EC2 instance limits for an automatic scaling policy. Automatic scaling activity will not cause an instance group to grow above or below these limits.

" + } + }, + "ScalingRule": { + "base": "

A scale-in or scale-out rule that defines scaling activity, including the CloudWatch metric alarm that triggers activity, how EC2 instances are added or removed, and the periodicity of adjustments. The automatic scaling policy for an instance group can comprise one or more automatic scaling rules.

", + "refs": { + "ScalingRuleList$member": null + } + }, + "ScalingRuleList": { "base": null, "refs": { - "BootstrapActionConfig$ScriptBootstrapAction": null + "AutoScalingPolicy$Rules": "

The scale-in and scale-out rules that comprise the automatic scaling policy.

", + "AutoScalingPolicyDescription$Rules": "

The scale-in and scale-out rules that comprise the automatic scaling policy.

" + } + }, + "ScalingTrigger": { + "base": "

The conditions that trigger an automatic scaling activity.

", + "refs": { + "ScalingRule$Trigger": "

The CloudWatch alarm definition that determines when automatic scaling activity is triggered.

" + } + }, + "ScriptBootstrapActionConfig": { + "base": "

Configuration of the script to run during a bootstrap action.

", + "refs": { + "BootstrapActionConfig$ScriptBootstrapAction": "

The script run by the bootstrap action.

" } }, "SecurityConfigurationList": { @@ -861,6 +1202,30 @@ "InstanceGroupModifyConfig$ShrinkPolicy": "

Policy for customizing shrink operations.

" } }, + "SimpleScalingPolicyConfiguration": { + "base": "

An automatic scaling configuration, which describes how the policy adds or removes instances, the cooldown period, and the number of EC2 instances that will be added each time the CloudWatch metric alarm condition is satisfied.

", + "refs": { + "ScalingAction$SimpleScalingPolicyConfiguration": "

The type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment.

" + } + }, + "SpotProvisioningSpecification": { + "base": "

The launch specification for Spot instances in the instance fleet, which determines the defined duration and provisioning timeout behavior.

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

", + "refs": { + "InstanceFleetProvisioningSpecifications$SpotSpecification": "

The launch specification for Spot instances in the fleet, which determines the defined duration and provisioning timeout behavior.

" + } + }, + "SpotProvisioningTimeoutAction": { + "base": null, + "refs": { + "SpotProvisioningSpecification$TimeoutAction": "

The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired. Spot instances are not uprovisioned within the Spot provisioining timeout. Valid values are TERMINATE_CLUSTER and SWITCH_TO_ON_DEMAND to fulfill the remaining capacity.

" + } + }, + "Statistic": { + "base": null, + "refs": { + "CloudWatchAlarmDefinition$Statistic": "

The statistic to apply to the metric associated with the alarm. The default is AVERAGE.

" + } + }, "Step": { "base": "

This represents a step in a cluster.

", "refs": { @@ -868,7 +1233,7 @@ } }, "StepConfig": { - "base": "

Specification of a job flow step.

", + "base": "

Specification of a cluster (job flow) step.

", "refs": { "StepConfigList$member": null, "StepDetail$StepConfig": "

The step configuration.

" @@ -878,7 +1243,7 @@ "base": null, "refs": { "AddJobFlowStepsInput$Steps": "

A list of StepConfig to be executed by the job flow.

", - "RunJobFlowInput$Steps": "

A list of steps to be executed by the job flow.

" + "RunJobFlowInput$Steps": "

A list of steps to run.

" } }, "StepDetail": { @@ -896,7 +1261,7 @@ "StepExecutionState": { "base": null, "refs": { - "StepExecutionStatusDetail$State": "

The state of the job flow step.

" + "StepExecutionStatusDetail$State": "

The state of the step.

" } }, "StepExecutionStatusDetail": { @@ -908,6 +1273,7 @@ "StepId": { "base": null, "refs": { + "CancelStepsInfo$StepId": "

The encrypted StepId of a step.

", "DescribeStepInput$StepId": "

The identifier of the step to describe.

", "Step$Id": "

The identifier of the cluster step.

", "StepSummary$Id": "

The identifier of the cluster step.

" @@ -916,7 +1282,8 @@ "StepIdsList": { "base": null, "refs": { - "AddJobFlowStepsOutput$StepIds": "

The identifiers of the list of steps added to the job flow.

" + "AddJobFlowStepsOutput$StepIds": "

The identifiers of the list of steps added to the job flow.

", + "CancelStepsInput$StepIds": "

The list of StepIDs to cancel. Use ListSteps to get steps and their states for the specified cluster.

" } }, "StepState": { @@ -974,6 +1341,10 @@ "refs": { "Application$Name": "

The name of the application.

", "Application$Version": "

The version of the application.

", + "AutoScalingPolicyStateChangeReason$Message": "

A friendly, more verbose message that accompanies an automatic scaling policy state change.

", + "CancelStepsInfo$Reason": "

The reason for the failure if the CancelSteps request fails.

", + "CloudWatchAlarmDefinition$MetricName": "

The name of the CloudWatch metric that is watched to determine an alarm condition.

", + "CloudWatchAlarmDefinition$Namespace": "

The namespace for the CloudWatch metric. The default is AWS/ElasticMapReduce.

", "Cluster$Name": "

The name of the cluster.

", "Cluster$LogUri": "

The path to the Amazon S3 location where logs for this cluster are stored.

", "Cluster$RequestedAmiVersion": "

The AMI version requested for this cluster.

", @@ -985,16 +1356,16 @@ "ClusterSummary$Name": "

The name of the cluster.

", "Command$Name": "

The name of the command.

", "Command$ScriptPath": "

The Amazon S3 location of the command script.

", - "Configuration$Classification": "

The classification of a configuration. For more information see, Amazon EMR Configurations.

", + "Configuration$Classification": "

The classification within a configuration.

", "CreateSecurityConfigurationInput$SecurityConfiguration": "

The security configuration details in JSON format.

", "DescribeSecurityConfigurationOutput$SecurityConfiguration": "

The security configuration details in JSON format.

", "EbsBlockDevice$Device": "

The device name that is exposed to the instance, such as /dev/sdh.

", "EbsVolume$Device": "

The device name that is exposed to the instance, such as /dev/sdh.

", "EbsVolume$VolumeId": "

The volume identifier of the EBS volume.

", "Ec2InstanceAttributes$Ec2KeyName": "

The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named \"hadoop\".

", - "Ec2InstanceAttributes$Ec2SubnetId": "

To launch the job flow in Amazon VPC, set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch. If you do not specify this value, the job flow is launched in the normal AWS cloud, outside of a VPC.

Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance type for nodes of a job flow launched in a VPC.

", - "Ec2InstanceAttributes$Ec2AvailabilityZone": "

The Availability Zone in which the cluster will run.

", - "Ec2InstanceAttributes$IamInstanceProfile": "

The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.

", + "Ec2InstanceAttributes$Ec2SubnetId": "

To launch the cluster in Amazon VPC, set this parameter to the identifier of the Amazon VPC subnet where you want the cluster to launch. If you do not specify this value, the cluster is launched in the normal AWS cloud, outside of a VPC.

Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance type for nodes of a cluster launched in a VPC.

", + "Ec2InstanceAttributes$Ec2AvailabilityZone": "

The Availability Zone in which the cluster will run.

", + "Ec2InstanceAttributes$IamInstanceProfile": "

The IAM role that was specified when the cluster was launched. The EC2 instances of the cluster assume this role.

", "Ec2InstanceAttributes$EmrManagedMasterSecurityGroup": "

The identifier of the Amazon EC2 security group for the master node.

", "Ec2InstanceAttributes$EmrManagedSlaveSecurityGroup": "

The identifier of the Amazon EC2 security group for the slave nodes.

", "Ec2InstanceAttributes$ServiceAccessSecurityGroup": "

The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.

", @@ -1008,10 +1379,15 @@ "Instance$PrivateDnsName": "

The private DNS name of the instance.

", "Instance$PrivateIpAddress": "

The private IP address of the instance.

", "Instance$InstanceGroupId": "

The identifier of the instance group to which this instance belongs.

", + "InstanceFleetStateChangeReason$Message": "

An explanatory message.

", "InstanceGroup$Name": "

The name of the instance group.

", "InstanceGroup$BidPrice": "

The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.

", "InstanceGroupStateChangeReason$Message": "

The status change reason description.

", "InstanceStateChangeReason$Message": "

The status change reason description.

", + "MetricDimension$Key": "

The dimension name.

", + "MetricDimension$Value": "

The dimension value.

", + "ScalingRule$Name": "

The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.

", + "ScalingRule$Description": "

A friendly, more verbose description of the automatic scaling rule.

", "Step$Name": "

The name of the cluster step.

", "StepStateChangeReason$Message": "

The descriptive message for the state change reason.

", "StepSummary$Name": "

The name of the cluster step.

", @@ -1038,7 +1414,7 @@ "base": null, "refs": { "Application$AdditionalInfo": "

This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes.

", - "Configuration$Properties": "

A set of properties supplied to the Configuration object.

", + "Configuration$Properties": "

A set of properties specified within a configuration classification.

", "HadoopStepConfig$Properties": "

The list of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function.

" } }, @@ -1052,11 +1428,11 @@ "base": null, "refs": { "JobFlowDetail$SupportedProducts": "

A list of strings set by third party software when the job flow is launched. If you are not using third party software to manage the job flow this value is empty.

", - "RunJobFlowInput$SupportedProducts": "

For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.

A list of strings that indicates third-party software to use with the job flow. For more information, go to Use Third Party Applications with Amazon EMR. Currently supported values are:

  • \"mapr-m3\" - launch the job flow using MapR M3 Edition.

  • \"mapr-m5\" - launch the job flow using MapR M5 Edition.

" + "RunJobFlowInput$SupportedProducts": "

For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.

A list of strings that indicates third-party software to use. For more information, see Use Third Party Applications with Amazon EMR. Currently supported values are:

  • \"mapr-m3\" - launch the job flow using MapR M3 Edition.

  • \"mapr-m5\" - launch the job flow using MapR M5 Edition.

" } }, "Tag": { - "base": "

A key/value pair containing user-defined metadata that you can associate with an Amazon EMR resource. Tags make it easier to associate clusters in various ways, such as grouping clu\\ sters to track your Amazon EMR resource allocation costs. For more information, see Tagging Amazon EMR Resources.

", + "base": "

A key/value pair containing user-defined metadata that you can associate with an Amazon EMR resource. Tags make it easier to associate clusters in various ways, such as grouping clusters to track your Amazon EMR resource allocation costs. For more information, see Tagging Amazon EMR Resources.

", "refs": { "TagList$member": null } @@ -1064,7 +1440,7 @@ "TagList": { "base": null, "refs": { - "AddTagsInput$Tags": "

A list of tags to associate with a cluster and propagate to Amazon EC2 instances. Tags are user-defined key/value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.

", + "AddTagsInput$Tags": "

A list of tags to associate with a cluster and propagate to EC2 instances. Tags are user-defined key/value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.

", "Cluster$Tags": "

A list of tags associated with a cluster.

", "RunJobFlowInput$Tags": "

A list of tags to associate with a cluster and propagate to Amazon EC2 instances.

" } @@ -1074,17 +1450,41 @@ "refs": { } }, + "Unit": { + "base": null, + "refs": { + "CloudWatchAlarmDefinition$Unit": "

The unit of measure associated with the CloudWatch metric being watched. The value specified for Unit must correspond to the units specified in the CloudWatch metric.

" + } + }, "VolumeSpecification": { - "base": "

EBS volume specifications such as volume type, IOPS, and size(GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster.

", + "base": "

EBS volume specifications such as volume type, IOPS, and size (GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster.

", + "refs": { + "EbsBlockDevice$VolumeSpecification": "

EBS volume specifications such as volume type, IOPS, and size (GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster.

", + "EbsBlockDeviceConfig$VolumeSpecification": "

EBS volume specifications such as volume type, IOPS, and size (GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster.

" + } + }, + "WholeNumber": { + "base": null, "refs": { - "EbsBlockDevice$VolumeSpecification": "

EBS volume specifications such as volume type, IOPS, and size(GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster.

", - "EbsBlockDeviceConfig$VolumeSpecification": "

EBS volume specifications such as volume type, IOPS, and size(GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster.

" + "InstanceFleet$TargetOnDemandCapacity": "

The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When an On-Demand instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. You can use InstanceFleet$ProvisionedOnDemandCapacity to determine the Spot capacity units that have been provisioned for the instance fleet.

If not specified or set to 0, only Spot instances are provisioned for the instance fleet using TargetSpotCapacity. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

", + "InstanceFleet$TargetSpotCapacity": "

The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision. When the instance fleet launches, Amazon EMR tries to provision Spot instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When a Spot instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. You can use InstanceFleet$ProvisionedSpotCapacity to determine the Spot capacity units that have been provisioned for the instance fleet.

If not specified or set to 0, only On-Demand instances are provisioned for the instance fleet. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

", + "InstanceFleet$ProvisionedOnDemandCapacity": "

The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.

", + "InstanceFleet$ProvisionedSpotCapacity": "

The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.

", + "InstanceFleetConfig$TargetOnDemandCapacity": "

The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When an On-Demand instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units.

If not specified or set to 0, only Spot instances are provisioned for the instance fleet using TargetSpotCapacity. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

", + "InstanceFleetConfig$TargetSpotCapacity": "

The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision. When the instance fleet launches, Amazon EMR tries to provision Spot instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When a Spot instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units.

If not specified or set to 0, only On-Demand instances are provisioned for the instance fleet. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

", + "InstanceFleetModifyConfig$TargetOnDemandCapacity": "

The target capacity of On-Demand units for the instance fleet. For more information see InstanceFleetConfig$TargetOnDemandCapacity.

", + "InstanceFleetModifyConfig$TargetSpotCapacity": "

The target capacity of Spot units for the instance fleet. For more information, see InstanceFleetConfig$TargetSpotCapacity.

", + "InstanceTypeConfig$WeightedCapacity": "

The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in InstanceFleetConfig. This value is 1 for a master instance fleet, and must be greater than 0 for core and task instance fleets.

", + "InstanceTypeSpecification$WeightedCapacity": "

The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in InstanceFleetConfig. Capacity values represent performance characteristics such as vCPUs, memory, or I/O. If not specified, the default value is 1.

", + "SpotProvisioningSpecification$TimeoutDurationMinutes": "

The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.

", + "SpotProvisioningSpecification$BlockDurationMinutes": "

The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.

" } }, "XmlString": { "base": null, "refs": { "Cluster$SecurityConfiguration": "

The name of the security configuration applied to the cluster.

", + "Cluster$AutoScalingRole": "

An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole. The IAM role provides permissions that the automatic scaling feature requires to launch and terminate EC2 instances in an instance group.

", "CreateSecurityConfigurationInput$Name": "

The name of the security configuration.

", "CreateSecurityConfigurationOutput$Name": "

The name of the security configuration.

", "DeleteSecurityConfigurationInput$Name": "

The name of the security configuration.

", @@ -1096,18 +1496,20 @@ "JobFlowDetail$LogUri": "

The location in Amazon S3 where log files for the job are stored.

", "JobFlowDetail$JobFlowRole": "

The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.

", "JobFlowDetail$ServiceRole": "

The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.

", + "JobFlowDetail$AutoScalingRole": "

An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole. The IAM role provides a way for the automatic scaling feature to get the required permissions it needs to launch and terminate EC2 instances in an instance group.

", "JobFlowExecutionStatusDetail$LastStateChangeReason": "

Description of the job flow last changed state.

", "JobFlowInstancesDetail$MasterPublicDnsName": "

The DNS name of the master node.

", "JobFlowInstancesDetail$MasterInstanceId": "

The Amazon EC2 instance identifier of the master node.

", "KeyValue$Key": "

The unique identifier of a key value pair.

", "KeyValue$Value": "

The value part of the identified key.

", - "PlacementType$AvailabilityZone": "

The Amazon EC2 Availability Zone for the job flow.

", + "PlacementType$AvailabilityZone": "

The Amazon EC2 Availability Zone for the cluster. AvailabilityZone is used for uniform instance groups, while AvailabilityZones (plural) is used for instance fleets.

", "RunJobFlowInput$LogUri": "

The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.

", "RunJobFlowInput$AdditionalInfo": "

A JSON string for selecting additional features.

", "RunJobFlowInput$JobFlowRole": "

Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the cluster assume this role. The default role is EMR_EC2_DefaultRole. In order to use the default role, you must have already created it using the CLI or console.

", "RunJobFlowInput$ServiceRole": "

The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.

", "RunJobFlowInput$SecurityConfiguration": "

The name of a security configuration to apply to the cluster.

", - "ScriptBootstrapActionConfig$Path": null, + "RunJobFlowInput$AutoScalingRole": "

An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole. The IAM role provides permissions that the automatic scaling feature requires to launch and terminate EC2 instances in an instance group.

", + "ScriptBootstrapActionConfig$Path": "

Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system.

", "SecurityConfigurationSummary$Name": "

The name of the security configuration.

", "StepExecutionStatusDetail$LastStateChangeReason": "

A description of the step's current state.

", "XmlStringList$member": null @@ -1119,8 +1521,8 @@ "DescribeJobFlowsInput$JobFlowIds": "

Return only job flows whose job flow ID is contained in this list.

", "HadoopJarStepConfig$Args": "

A list of command line arguments passed to the JAR file's main function when executed.

", "ListStepsInput$StepIds": "

The filter to limit the step list based on the identifier of the steps.

", - "ScriptBootstrapActionConfig$Args": null, - "SetTerminationProtectionInput$JobFlowIds": "

A list of strings that uniquely identify the job flows to protect. This identifier is returned by RunJobFlow and can also be obtained from DescribeJobFlows .

", + "ScriptBootstrapActionConfig$Args": "

A list of command line arguments to pass to the bootstrap action script.

", + "SetTerminationProtectionInput$JobFlowIds": "

A list of strings that uniquely identify the clusters to protect. This identifier is returned by RunJobFlow and can also be obtained from DescribeJobFlows .

", "SetVisibleToAllUsersInput$JobFlowIds": "

Identifiers of the job flows to receive the new visibility setting.

", "SupportedProductConfig$Args": "

The list of user-supplied arguments.

", "TerminateJobFlowsInput$JobFlowIds": "

A list of job flows to be shutdown.

" @@ -1129,38 +1531,55 @@ "XmlStringMaxLen256": { "base": null, "refs": { + "AddInstanceFleetInput$ClusterId": "

The unique identifier of the cluster.

", + "AddInstanceFleetOutput$ClusterId": "

The unique identifier of the cluster.

", "AddInstanceGroupsInput$JobFlowId": "

Job flow in which to add the instance groups.

", "AddInstanceGroupsOutput$JobFlowId": "

The job flow ID in which the instance groups are added.

", "AddJobFlowStepsInput$JobFlowId": "

A string that uniquely identifies the job flow. This identifier is returned by RunJobFlow and can also be obtained from ListClusters.

", - "BootstrapActionConfig$Name": null, + "BootstrapActionConfig$Name": "

The name of the bootstrap action.

", + "CancelStepsInput$ClusterId": "

The ClusterID for which specified steps will be canceled. Use RunJobFlow and ListClusters to get ClusterIDs.

", + "InstanceFleet$Name": "

A friendly name for the instance fleet.

", + "InstanceFleetConfig$Name": "

The friendly name of the instance fleet.

", "InstanceGroupConfig$Name": "

Friendly name given to the instance group.

", - "InstanceGroupConfig$BidPrice": "

Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.

", + "InstanceGroupConfig$BidPrice": "

Bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.

", "InstanceGroupDetail$InstanceGroupId": "

Unique identifier for the instance group.

", "InstanceGroupDetail$Name": "

Friendly name for the instance group.

", "InstanceGroupDetail$BidPrice": "

Bid price for EC2 Instances when launching nodes as Spot Instances, expressed in USD.

", "InstanceGroupIdsList$member": null, "InstanceGroupModifyConfig$InstanceGroupId": "

Unique ID of the instance group to expand or shrink.

", + "InstanceTypeConfig$BidPrice": "

The bid price for each EC2 Spot instance type as defined by InstanceType. Expressed in USD. If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.

", + "InstanceTypeSpecification$BidPrice": "

The bid price for each EC2 Spot instance type as defined by InstanceType. Expressed in USD.

", "JobFlowDetail$JobFlowId": "

The job flow identifier.

", "JobFlowDetail$Name": "

The name of the job flow.

", - "JobFlowDetail$AmiVersion": "

The version of the AMI used to initialize Amazon EC2 instances in the job flow. For a list of AMI versions currently supported by Amazon ElasticMapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer Guide.

", - "JobFlowInstancesConfig$Ec2KeyName": "

The name of the Amazon EC2 key pair that can be used to ssh to the master node as the user called \"hadoop.\"

", - "JobFlowInstancesConfig$HadoopVersion": "

The Hadoop version for the job flow. Valid inputs are \"0.18\" (deprecated), \"0.20\" (deprecated), \"0.20.205\" (deprecated), \"1.0.3\", \"2.2.0\", or \"2.4.0\". If you do not set this value, the default of 0.18 is used, unless the AmiVersion parameter is set in the RunJobFlow call, in which case the default version of Hadoop for that AMI version is used.

", - "JobFlowInstancesConfig$Ec2SubnetId": "

To launch the job flow in Amazon Virtual Private Cloud (Amazon VPC), set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch. If you do not specify this value, the job flow is launched in the normal Amazon Web Services cloud, outside of an Amazon VPC.

Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus you cannot specify the cc1.4xlarge instance type for nodes of a job flow launched in a Amazon VPC.

", + "JobFlowDetail$AmiVersion": "

The version of the AMI used to initialize Amazon EC2 instances in the job flow. For a list of AMI versions currently supported by Amazon EMR, see AMI Versions Supported in EMR in the Amazon EMR Developer Guide.

", + "JobFlowInstancesConfig$Ec2KeyName": "

The name of the EC2 key pair that can be used to ssh to the master node as the user called \"hadoop.\"

", + "JobFlowInstancesConfig$HadoopVersion": "

The Hadoop version for the cluster. Valid inputs are \"0.18\" (deprecated), \"0.20\" (deprecated), \"0.20.205\" (deprecated), \"1.0.3\", \"2.2.0\", or \"2.4.0\". If you do not set this value, the default of 0.18 is used, unless the AmiVersion parameter is set in the RunJobFlow call, in which case the default version of Hadoop for that AMI version is used.

", + "JobFlowInstancesConfig$Ec2SubnetId": "

Applies to clusters that use the uniform instance group configuration. To launch the cluster in Amazon Virtual Private Cloud (Amazon VPC), set this parameter to the identifier of the Amazon VPC subnet where you want the cluster to launch. If you do not specify this value, the cluster launches in the normal Amazon Web Services cloud, outside of an Amazon VPC, if the account launching the cluster supports EC2 Classic networks in the region where the cluster launches.

Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus you cannot specify the cc1.4xlarge instance type for clusters launched in an Amazon VPC.

", "JobFlowInstancesConfig$EmrManagedMasterSecurityGroup": "

The identifier of the Amazon EC2 security group for the master node.

", "JobFlowInstancesConfig$EmrManagedSlaveSecurityGroup": "

The identifier of the Amazon EC2 security group for the slave nodes.

", "JobFlowInstancesConfig$ServiceAccessSecurityGroup": "

The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.

", - "JobFlowInstancesDetail$Ec2KeyName": "

The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow.

", - "JobFlowInstancesDetail$Ec2SubnetId": "

For job flows launched within Amazon Virtual Private Cloud, this value specifies the identifier of the subnet where the job flow was launched.

", - "JobFlowInstancesDetail$HadoopVersion": "

The Hadoop version for the job flow.

", + "JobFlowInstancesDetail$Ec2KeyName": "

The name of an Amazon EC2 key pair that can be used to ssh to the master node.

", + "JobFlowInstancesDetail$Ec2SubnetId": "

For clusters launched within Amazon Virtual Private Cloud, this is the identifier of the subnet where the cluster was launched.

", + "JobFlowInstancesDetail$HadoopVersion": "

The Hadoop version for the cluster.

", "RunJobFlowInput$Name": "

The name of the job flow.

", - "RunJobFlowInput$AmiVersion": "

For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use ReleaseLabel.

The version of the Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. The following values are valid:

  • The version number of the AMI to use, for example, \"2.0.\"

If the AMI supports multiple versions of Hadoop (for example, AMI 1.0 supports both Hadoop 0.18 and 0.20) you can use the JobFlowInstancesConfig HadoopVersion parameter to modify the version of Hadoop from the defaults shown above.

For details about the AMI versions currently supported by Amazon Elastic MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.

", + "RunJobFlowInput$AmiVersion": "

For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use ReleaseLabel.

The version of the Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. The following values are valid:

  • The version number of the AMI to use, for example, \"2.0.\"

If the AMI supports multiple versions of Hadoop (for example, AMI 1.0 supports both Hadoop 0.18 and 0.20) you can use the JobFlowInstancesConfig HadoopVersion parameter to modify the version of Hadoop from the defaults shown above.

For details about the AMI versions currently supported by Amazon Elastic MapReduce, see AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer Guide.

Previously, the EMR AMI version API parameter options allowed you to use latest for the latest AMI version rather than specify a numerical value. Some regions no longer support this deprecated option as they only have a newer release label version of EMR, which requires you to specify an EMR release label release (EMR 4.x or later).

", "RunJobFlowInput$ReleaseLabel": "

Amazon EMR releases 4.x or later.

The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x AMIs, use amiVersion instead instead of ReleaseLabel.

", "RunJobFlowOutput$JobFlowId": "

An unique identifier for the job flow.

", "SecurityGroupsList$member": null, - "StepConfig$Name": "

The name of the job flow step.

", + "StepConfig$Name": "

The name of the step.

", "StepIdsList$member": null, "SupportedProductConfig$Name": "

The name of the product configuration.

", - "SupportedProductsList$member": null + "SupportedProductsList$member": null, + "XmlStringMaxLen256List$member": null + } + }, + "XmlStringMaxLen256List": { + "base": null, + "refs": { + "Ec2InstanceAttributes$RequestedEc2SubnetIds": "

Applies to clusters configured with the instance fleets option. Specifies the unique identifier of one or more Amazon EC2 subnets in which to launch EC2 cluster instances. Amazon EMR chooses the EC2 subnet with the best performance and cost characteristics from among the list of RequestedEc2SubnetIds and launches all cluster instances within that subnet. If this value is not specified, and the account supports EC2-Classic networks, the cluster launches instances in the EC2-Classic network and uses Requested

", + "Ec2InstanceAttributes$RequestedEc2AvailabilityZones": "

Applies to clusters configured with the The list of availability zones to choose from. The service will choose the availability zone with the best mix of available capacity and lowest cost to launch the cluster. If you do not specify this value, the cluster is launched in any availability zone that the customer account has access to.

", + "JobFlowInstancesConfig$Ec2SubnetIds": "

Applies to clusters that use the instance fleet configuration. When multiple EC2 subnet IDs are specified, Amazon EMR evaluates them and launches instances in the optimal subnet.

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

", + "PlacementType$AvailabilityZones": "

When multiple Availability Zones are specified, Amazon EMR evaluates them and launches instances in the optimal Availability Zone. AvailabilityZones is used for instance fleets, while AvailabilityZone (singular) is used for uniform instance groups.

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/paginators-1.json index 87f282d77..dafb1d93d 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/paginators-1.json @@ -13,6 +13,11 @@ "output_token": "Marker", "result_key": "Clusters" }, + "ListInstanceFleets": { + "input_token": "Marker", + "output_token": "Marker", + "result_key": "InstanceFleets" + }, "ListInstanceGroups": { "input_token": "Marker", "output_token": "Marker", @@ -29,4 +34,4 @@ "result_key": "Steps" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/waiters-2.json index 829f1b1ac..abba8c3c2 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/waiters-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/waiters-2.json @@ -62,6 +62,25 @@ "expected": "CANCELLED" } ] + }, + "ClusterTerminated": { + "delay": 30, + "operation": "DescribeCluster", + "maxAttempts": 60, + "acceptors": [ + { + "state": "success", + "matcher": "path", + "argument": "Cluster.Status.State", + "expected": "TERMINATED" + }, + { + "state": "failure", + "matcher": "path", + "argument": "Cluster.Status.State", + "expected": "TERMINATED_WITH_ERRORS" + } + ] } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/api-2.json index d94fedae0..0a8a7f952 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"elastictranscoder-2012-09-25", "apiVersion":"2012-09-25", "endpointPrefix":"elastictranscoder", "protocol":"rest-json", @@ -239,7 +240,8 @@ {"shape":"ResourceNotFoundException"}, {"shape":"AccessDeniedException"}, {"shape":"InternalServiceException"} - ] + ], + "deprecated":true }, "UpdatePipeline":{ "name":"UpdatePipeline", @@ -458,8 +460,14 @@ "Captions":{ "type":"structure", "members":{ - "MergePolicy":{"shape":"CaptionMergePolicy"}, - "CaptionSources":{"shape":"CaptionSources"}, + "MergePolicy":{ + "shape":"CaptionMergePolicy", + "deprecated":true + }, + "CaptionSources":{ + "shape":"CaptionSources", + "deprecated":true + }, "CaptionFormats":{"shape":"CaptionFormats"} } }, @@ -467,7 +475,8 @@ "type":"structure", "members":{ "TimeSpan":{"shape":"TimeSpan"} - } + }, + "deprecated":true }, "CodecOption":{ "type":"string", @@ -482,7 +491,8 @@ }, "Composition":{ "type":"list", - "member":{"shape":"Clip"} + "member":{"shape":"Clip"}, + "deprecated":true }, "CreateJobOutput":{ "type":"structure", @@ -495,7 +505,10 @@ "SegmentDuration":{"shape":"FloatString"}, "Watermarks":{"shape":"JobWatermarks"}, "AlbumArt":{"shape":"JobAlbumArt"}, - "Composition":{"shape":"Composition"}, + "Composition":{ + "shape":"Composition", + "deprecated":true + }, "Captions":{"shape":"Captions"}, "Encryption":{"shape":"Encryption"} } @@ -522,13 +535,11 @@ }, "CreateJobRequest":{ "type":"structure", - "required":[ - "PipelineId", - "Input" - ], + "required":["PipelineId"], "members":{ "PipelineId":{"shape":"Id"}, "Input":{"shape":"JobInput"}, + "Inputs":{"shape":"JobInputs"}, "Output":{"shape":"CreateJobOutput"}, "Outputs":{"shape":"CreateJobOutputs"}, "OutputKeyPrefix":{"shape":"Key"}, @@ -717,6 +728,13 @@ "error":{"httpStatusCode":400}, "exception":true }, + "InputCaptions":{ + "type":"structure", + "members":{ + "MergePolicy":{"shape":"CaptionMergePolicy"}, + "CaptionSources":{"shape":"CaptionSources"} + } + }, "Interlaced":{ "type":"string", "pattern":"(^auto$)|(^true$)|(^false$)" @@ -735,6 +753,7 @@ "Arn":{"shape":"String"}, "PipelineId":{"shape":"Id"}, "Input":{"shape":"JobInput"}, + "Inputs":{"shape":"JobInputs"}, "Output":{"shape":"JobOutput"}, "Outputs":{"shape":"JobOutputs"}, "OutputKeyPrefix":{"shape":"Key"}, @@ -765,9 +784,16 @@ "Interlaced":{"shape":"Interlaced"}, "Container":{"shape":"JobContainer"}, "Encryption":{"shape":"Encryption"}, + "TimeSpan":{"shape":"TimeSpan"}, + "InputCaptions":{"shape":"InputCaptions"}, "DetectedProperties":{"shape":"DetectedProperties"} } }, + "JobInputs":{ + "type":"list", + "member":{"shape":"JobInput"}, + "max":10000 + }, "JobOutput":{ "type":"structure", "members":{ @@ -788,7 +814,10 @@ "DurationMillis":{"shape":"NullableLong"}, "Watermarks":{"shape":"JobWatermarks"}, "AlbumArt":{"shape":"JobAlbumArt"}, - "Composition":{"shape":"Composition"}, + "Composition":{ + "shape":"Composition", + "deprecated":true + }, "Captions":{"shape":"Captions"}, "Encryption":{"shape":"Encryption"}, "AppliedColorSpaceConversion":{"shape":"String"} @@ -1253,14 +1282,16 @@ "InputBucket":{"shape":"BucketName"}, "OutputBucket":{"shape":"BucketName"}, "Topics":{"shape":"SnsTopics"} - } + }, + "deprecated":true }, "TestRoleResponse":{ "type":"structure", "members":{ "Success":{"shape":"Success"}, "Messages":{"shape":"ExceptionMessages"} - } + }, + "deprecated":true }, "ThumbnailPattern":{ "type":"string", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/docs-2.json index 5ae30b37f..2738608a2 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/docs-2.json @@ -2,10 +2,10 @@ "version": "2.0", "service": "AWS Elastic Transcoder Service

The AWS Elastic Transcoder Service.

", "operations": { - "CancelJob": "

The CancelJob operation cancels an unfinished job.

You can only cancel a job that has a status of Submitted. To prevent a pipeline from starting to process a job while you're getting the job identifier, use UpdatePipelineStatus to temporarily pause the pipeline.", - "CreateJob": "

When you create a job, Elastic Transcoder returns JSON data that includes the values that you specified plus information about the job that is created.

If you have specified more than one output for your jobs (for example, one output for the Kindle Fire and another output for the Apple iPhone 4s), you currently must use the Elastic Transcoder API to list the jobs (as opposed to the AWS Console).

", + "CancelJob": "

The CancelJob operation cancels an unfinished job.

You can only cancel a job that has a status of Submitted. To prevent a pipeline from starting to process a job while you're getting the job identifier, use UpdatePipelineStatus to temporarily pause the pipeline.

", + "CreateJob": "

When you create a job, Elastic Transcoder returns JSON data that includes the values that you specified plus information about the job that is created.

If you have specified more than one output for your jobs (for example, one output for the Kindle Fire and another output for the Apple iPhone 4s), you currently must use the Elastic Transcoder API to list the jobs (as opposed to the AWS Console).

", "CreatePipeline": "

The CreatePipeline operation creates a pipeline with settings that you specify.

", - "CreatePreset": "

The CreatePreset operation creates a preset with settings that you specify.

Elastic Transcoder checks the CreatePreset settings to ensure that they meet Elastic Transcoder requirements and to determine whether they comply with H.264 standards. If your settings are not valid for Elastic Transcoder, Elastic Transcoder returns an HTTP 400 response (ValidationException) and does not create the preset. If the settings are valid for Elastic Transcoder but aren't strictly compliant with the H.264 standard, Elastic Transcoder creates the preset and returns a warning message in the response. This helps you determine whether your settings comply with the H.264 standard while giving you greater flexibility with respect to the video that Elastic Transcoder produces.

Elastic Transcoder uses the H.264 video-compression format. For more information, see the International Telecommunication Union publication Recommendation ITU-T H.264: Advanced video coding for generic audiovisual services.

", + "CreatePreset": "

The CreatePreset operation creates a preset with settings that you specify.

Elastic Transcoder checks the CreatePreset settings to ensure that they meet Elastic Transcoder requirements and to determine whether they comply with H.264 standards. If your settings are not valid for Elastic Transcoder, Elastic Transcoder returns an HTTP 400 response (ValidationException) and does not create the preset. If the settings are valid for Elastic Transcoder but aren't strictly compliant with the H.264 standard, Elastic Transcoder creates the preset and returns a warning message in the response. This helps you determine whether your settings comply with the H.264 standard while giving you greater flexibility with respect to the video that Elastic Transcoder produces.

Elastic Transcoder uses the H.264 video-compression format. For more information, see the International Telecommunication Union publication Recommendation ITU-T H.264: Advanced video coding for generic audiovisual services.

", "DeletePipeline": "

The DeletePipeline operation removes a pipeline.

You can only delete a pipeline that has never been used or that is not currently in use (doesn't contain any active jobs). If the pipeline is currently in use, DeletePipeline returns an error.

", "DeletePreset": "

The DeletePreset operation removes a preset that you've added in an AWS region.

You can't delete the default presets that are included with Elastic Transcoder.

", "ListJobsByPipeline": "

The ListJobsByPipeline operation gets a list of the jobs currently in a pipeline.

Elastic Transcoder returns all of the jobs currently in the specified pipeline. The response body contains one element for each job that satisfies the search criteria.

", @@ -16,7 +16,7 @@ "ReadPipeline": "

The ReadPipeline operation gets detailed information about a pipeline.

", "ReadPreset": "

The ReadPreset operation gets detailed information about a preset.

", "TestRole": "

The TestRole operation tests the IAM role used to create the pipeline.

The TestRole action lets you determine whether the IAM role you are using has sufficient permissions to let Elastic Transcoder perform tasks associated with the transcoding process. The action attempts to assume the specified IAM role, checks read access to the input and output buckets, and tries to send a test notification to Amazon SNS topics that you specify.

", - "UpdatePipeline": "

Use the UpdatePipeline operation to update settings for a pipeline. When you change pipeline settings, your changes take effect immediately. Jobs that you have already submitted and that Elastic Transcoder has not started to process are affected in addition to jobs that you submit after you change settings.

", + "UpdatePipeline": "

Use the UpdatePipeline operation to update settings for a pipeline.

When you change pipeline settings, your changes take effect immediately. Jobs that you have already submitted and that Elastic Transcoder has not started to process are affected in addition to jobs that you submit after you change settings.

", "UpdatePipelineNotifications": "

With the UpdatePipelineNotifications operation, you can update Amazon Simple Notification Service (Amazon SNS) notifications for a pipeline.

When you update notifications for a pipeline, Elastic Transcoder returns the values that you specified in the request.

", "UpdatePipelineStatus": "

The UpdatePipelineStatus operation pauses or reactivates a pipeline, so that the pipeline stops or restarts the processing of jobs.

Changing the pipeline status is useful if you want to cancel one or more jobs. You can't cancel jobs after Elastic Transcoder has started processing them; if you pause the pipeline to which you submitted the jobs, you have more time to get the job IDs for the jobs that you want to cancel, and to send a CancelJob request.

" }, @@ -30,11 +30,11 @@ "AccessControls": { "base": null, "refs": { - "Permission$Access": "

The permission that you want to give to the AWS user that is listed in Grantee. Valid values include:

  • READ: The grantee can read the thumbnails and metadata for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
  • READ_ACP: The grantee can read the object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
  • WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
  • FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.

" + "Permission$Access": "

The permission that you want to give to the AWS user that is listed in Grantee. Valid values include:

  • READ: The grantee can read the thumbnails and metadata for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.

  • READ_ACP: The grantee can read the object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.

  • WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.

  • FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.

" } }, "AccessDeniedException": { - "base": "

General authentication failure. The request was not signed correctly.

", + "base": "

General authentication failure. The request was not signed correctly.

", "refs": { } }, @@ -47,7 +47,7 @@ "Artworks": { "base": null, "refs": { - "JobAlbumArt$Artwork": "

The file to be used as album art. There can be multiple artworks associated with an audio file, to a maximum of 20. Valid formats are .jpg and .png

" + "JobAlbumArt$Artwork": "

The file to be used as album art. There can be multiple artworks associated with an audio file, to a maximum of 20. Valid formats are .jpg and .png

" } }, "Ascending": { @@ -63,8 +63,8 @@ "base": null, "refs": { "JobInput$AspectRatio": "

The aspect ratio of the input file. If you want Elastic Transcoder to automatically detect the aspect ratio of the input file, specify auto. If you want to specify the aspect ratio for the output file, enter one of the following values:

1:1, 4:3, 3:2, 16:9

If you specify a value other than auto, Elastic Transcoder disables automatic detection of the aspect ratio.

", - "Thumbnails$AspectRatio": "

To better control resolution and aspect ratio of thumbnails, we recommend that you use the values MaxWidth, MaxHeight, SizingPolicy, and PaddingPolicy instead of Resolution and AspectRatio. The two groups of settings are mutually exclusive. Do not use them together.

The aspect ratio of thumbnails. Valid values include:

auto, 1:1, 4:3, 3:2, 16:9

If you specify auto, Elastic Transcoder tries to preserve the aspect ratio of the video in the output file.

", - "VideoParameters$AspectRatio": "

To better control resolution and aspect ratio of output videos, we recommend that you use the values MaxWidth, MaxHeight, SizingPolicy, PaddingPolicy, and DisplayAspectRatio instead of Resolution and AspectRatio. The two groups of settings are mutually exclusive. Do not use them together.

The display aspect ratio of the video in the output file. Valid values include:

auto, 1:1, 4:3, 3:2, 16:9

If you specify auto, Elastic Transcoder tries to preserve the aspect ratio of the input file.

If you specify an aspect ratio for the output file that differs from aspect ratio of the input file, Elastic Transcoder adds pillarboxing (black bars on the sides) or letterboxing (black bars on the top and bottom) to maintain the aspect ratio of the active region of the video.

", + "Thumbnails$AspectRatio": "

To better control resolution and aspect ratio of thumbnails, we recommend that you use the values MaxWidth, MaxHeight, SizingPolicy, and PaddingPolicy instead of Resolution and AspectRatio. The two groups of settings are mutually exclusive. Do not use them together.

The aspect ratio of thumbnails. Valid values include:

auto, 1:1, 4:3, 3:2, 16:9

If you specify auto, Elastic Transcoder tries to preserve the aspect ratio of the video in the output file.

", + "VideoParameters$AspectRatio": "

To better control resolution and aspect ratio of output videos, we recommend that you use the values MaxWidth, MaxHeight, SizingPolicy, PaddingPolicy, and DisplayAspectRatio instead of Resolution and AspectRatio. The two groups of settings are mutually exclusive. Do not use them together.

The display aspect ratio of the video in the output file. Valid values include:

auto, 1:1, 4:3, 3:2, 16:9

If you specify auto, Elastic Transcoder tries to preserve the aspect ratio of the input file.

If you specify an aspect ratio for the output file that differs from aspect ratio of the input file, Elastic Transcoder adds pillarboxing (black bars on the sides) or letterboxing (black bars on the top and bottom) to maintain the aspect ratio of the active region of the video.

", "VideoParameters$DisplayAspectRatio": "

The value that Elastic Transcoder adds to the metadata in the output file.

" } }, @@ -89,7 +89,7 @@ "AudioChannels": { "base": null, "refs": { - "AudioParameters$Channels": "

The number of audio channels in the output file. The following values are valid:

auto, 0, 1, 2

One channel carries the information played by a single speaker. For example, a stereo track with two channels sends one channel to the left speaker, and the other channel to the right speaker. The output channels are organized into tracks. If you want Elastic Transcoder to automatically detect the number of audio channels in the input file and use that value for the output file, select auto.

The output of a specific channel value and inputs are as follows:

  • auto channel specified, with any input: Pass through up to eight input channels.
  • 0 channels specified, with any input: Audio omitted from the output.
  • 1 channel specified, with at least one input channel: Mono sound.
  • 2 channels specified, with any input: Two identical mono channels or stereo. For more information about tracks, see Audio:AudioPackingMode.

For more information about how Elastic Transcoder organizes channels and tracks, see Audio:AudioPackingMode.

" + "AudioParameters$Channels": "

The number of audio channels in the output file. The following values are valid:

auto, 0, 1, 2

One channel carries the information played by a single speaker. For example, a stereo track with two channels sends one channel to the left speaker, and the other channel to the right speaker. The output channels are organized into tracks. If you want Elastic Transcoder to automatically detect the number of audio channels in the input file and use that value for the output file, select auto.

The output of a specific channel value and inputs are as follows:

  • auto channel specified, with any input: Pass through up to eight input channels.

  • 0 channels specified, with any input: Audio omitted from the output.

  • 1 channel specified, with at least one input channel: Mono sound.

  • 2 channels specified, with any input: Two identical mono channels or stereo. For more information about tracks, see Audio:AudioPackingMode.

For more information about how Elastic Transcoder organizes channels and tracks, see Audio:AudioPackingMode.

" } }, "AudioCodec": { @@ -101,19 +101,19 @@ "AudioCodecOptions": { "base": "

Options associated with your audio codec.

", "refs": { - "AudioParameters$CodecOptions": "

If you specified AAC for Audio:Codec, this is the AAC compression profile to use. Valid values include:

auto, AAC-LC, HE-AAC, HE-AACv2

If you specify auto, Elastic Transcoder chooses a profile based on the bit rate of the output file.

" + "AudioParameters$CodecOptions": "

If you specified AAC for Audio:Codec, this is the AAC compression profile to use. Valid values include:

auto, AAC-LC, HE-AAC, HE-AACv2

If you specify auto, Elastic Transcoder chooses a profile based on the bit rate of the output file.

" } }, "AudioCodecProfile": { "base": null, "refs": { - "AudioCodecOptions$Profile": "

You can only choose an audio profile when you specify AAC for the value of Audio:Codec.

Specify the AAC profile for the output file. Elastic Transcoder supports the following profiles:

  • auto: If you specify auto, Elastic Transcoder will select the profile based on the bit rate selected for the output file.
  • AAC-LC: The most common AAC profile. Use for bit rates larger than 64 kbps.
  • HE-AAC: Not supported on some older players and devices. Use for bit rates between 40 and 80 kbps.
  • HE-AACv2: Not supported on some players and devices. Use for bit rates less than 48 kbps.

All outputs in a Smooth playlist must have the same value for Profile.

If you created any presets before AAC profiles were added, Elastic Transcoder automatically updated your presets to use AAC-LC. You can change the value as required.

" + "AudioCodecOptions$Profile": "

You can only choose an audio profile when you specify AAC for the value of Audio:Codec.

Specify the AAC profile for the output file. Elastic Transcoder supports the following profiles:

  • auto: If you specify auto, Elastic Transcoder selects the profile based on the bit rate selected for the output file.

  • AAC-LC: The most common AAC profile. Use for bit rates larger than 64 kbps.

  • HE-AAC: Not supported on some older players and devices. Use for bit rates between 40 and 80 kbps.

  • HE-AACv2: Not supported on some players and devices. Use for bit rates less than 48 kbps.

All outputs in a Smooth playlist must have the same value for Profile.

If you created any presets before AAC profiles were added, Elastic Transcoder automatically updated your presets to use AAC-LC. You can change the value as required.

" } }, "AudioPackingMode": { "base": null, "refs": { - "AudioParameters$AudioPackingMode": "

The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack.

The following values are valid:

SingleTrack, OneChannelPerTrack, and OneChannelPerTrackWithMosTo8Tracks

When you specify SingleTrack, Elastic Transcoder creates a single track for your output. The track can have up to eight channels. Use SingleTrack for all non-mxf containers.

The outputs of SingleTrack for a specific channel value and inputs are as follows:

  • 0 channels with any input: Audio omitted from the output
  • 1, 2, or auto channels with no audio input: Audio omitted from the output
  • 1 channel with any input with audio: One track with one channel, downmixed if necessary
  • 2 channels with one track with one channel: One track with two identical channels
  • 2 or auto channels with two tracks with one channel each: One track with two channels
  • 2 or auto channels with one track with two channels: One track with two channels
  • 2 channels with one track with multiple channels: One track with two channels
  • auto channels with one track with one channel: One track with one channel
  • auto channels with one track with multiple channels: One track with multiple channels

When you specify OneChannelPerTrack, Elastic Transcoder creates a new track for every channel in your output. Your output can have up to eight single-channel tracks.

The outputs of OneChannelPerTrack for a specific channel value and inputs are as follows:

  • 0 channels with any input: Audio omitted from the output
  • 1, 2, or auto channels with no audio input: Audio omitted from the output
  • 1 channel with any input with audio: One track with one channel, downmixed if necessary
  • 2 channels with one track with one channel: Two tracks with one identical channel each
  • 2 or auto channels with two tracks with one channel each: Two tracks with one channel each
  • 2 or auto channels with one track with two channels: Two tracks with one channel each
  • 2 channels with one track with multiple channels: Two tracks with one channel each
  • auto channels with one track with one channel: One track with one channel
  • auto channels with one track with multiple channels: Up to eight tracks with one channel each

When you specify OneChannelPerTrackWithMosTo8Tracks, Elastic Transcoder creates eight single-channel tracks for your output. All tracks that do not contain audio data from an input channel are MOS, or Mit Out Sound, tracks.

The outputs of OneChannelPerTrackWithMosTo8Tracks for a specific channel value and inputs are as follows:

  • 0 channels with any input: Audio omitted from the output
  • 1, 2, or auto channels with no audio input: Audio omitted from the output
  • 1 channel with any input with audio: One track with one channel, downmixed if necessary, plus six MOS tracks
  • 2 channels with one track with one channel: Two tracks with one identical channel each, plus six MOS tracks
  • 2 or auto channels with two tracks with one channel each: Two tracks with one channel each, plus six MOS tracks
  • 2 or auto channels with one track with two channels: Two tracks with one channel each, plus six MOS tracks
  • 2 channels with one track with multiple channels: Two tracks with one channel each, plus six MOS tracks
  • auto channels with one track with one channel: One track with one channel, plus seven MOS tracks
  • auto channels with one track with multiple channels: Up to eight tracks with one channel each, plus MOS tracks until there are eight tracks in all
" + "AudioParameters$AudioPackingMode": "

The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack.

The following values are valid:

SingleTrack, OneChannelPerTrack, and OneChannelPerTrackWithMosTo8Tracks

When you specify SingleTrack, Elastic Transcoder creates a single track for your output. The track can have up to eight channels. Use SingleTrack for all non-mxf containers.

The outputs of SingleTrack for a specific channel value and inputs are as follows:

  • 0 channels with any input: Audio omitted from the output

  • 1, 2, or auto channels with no audio input: Audio omitted from the output

  • 1 channel with any input with audio: One track with one channel, downmixed if necessary

  • 2 channels with one track with one channel: One track with two identical channels

  • 2 or auto channels with two tracks with one channel each: One track with two channels

  • 2 or auto channels with one track with two channels: One track with two channels

  • 2 channels with one track with multiple channels: One track with two channels

  • auto channels with one track with one channel: One track with one channel

  • auto channels with one track with multiple channels: One track with multiple channels

When you specify OneChannelPerTrack, Elastic Transcoder creates a new track for every channel in your output. Your output can have up to eight single-channel tracks.

The outputs of OneChannelPerTrack for a specific channel value and inputs are as follows:

  • 0 channels with any input: Audio omitted from the output

  • 1, 2, or auto channels with no audio input: Audio omitted from the output

  • 1 channel with any input with audio: One track with one channel, downmixed if necessary

  • 2 channels with one track with one channel: Two tracks with one identical channel each

  • 2 or auto channels with two tracks with one channel each: Two tracks with one channel each

  • 2 or auto channels with one track with two channels: Two tracks with one channel each

  • 2 channels with one track with multiple channels: Two tracks with one channel each

  • auto channels with one track with one channel: One track with one channel

  • auto channels with one track with multiple channels: Up to eight tracks with one channel each

When you specify OneChannelPerTrackWithMosTo8Tracks, Elastic Transcoder creates eight single-channel tracks for your output. All tracks that do not contain audio data from an input channel are MOS, or Mit Out Sound, tracks.

The outputs of OneChannelPerTrackWithMosTo8Tracks for a specific channel value and inputs are as follows:

  • 0 channels with any input: Audio omitted from the output

  • 1, 2, or auto channels with no audio input: Audio omitted from the output

  • 1 channel with any input with audio: One track with one channel, downmixed if necessary, plus six MOS tracks

  • 2 channels with one track with one channel: Two tracks with one identical channel each, plus six MOS tracks

  • 2 or auto channels with two tracks with one channel each: Two tracks with one channel each, plus six MOS tracks

  • 2 or auto channels with one track with two channels: Two tracks with one channel each, plus six MOS tracks

  • 2 channels with one track with multiple channels: Two tracks with one channel each, plus six MOS tracks

  • auto channels with one track with one channel: One track with one channel, plus seven MOS tracks

  • auto channels with one track with multiple channels: Up to eight tracks with one channel each, plus MOS tracks until there are eight tracks in all

" } }, "AudioParameters": { @@ -126,7 +126,7 @@ "AudioSampleRate": { "base": null, "refs": { - "AudioParameters$SampleRate": "

The sample rate of the audio stream in the output file, in Hertz. Valid values include:

auto, 22050, 32000, 44100, 48000, 96000

If you specify auto, Elastic Transcoder automatically detects the sample rate.

" + "AudioParameters$SampleRate": "

The sample rate of the audio stream in the output file, in Hertz. Valid values include:

auto, 22050, 32000, 44100, 48000, 96000

If you specify auto, Elastic Transcoder automatically detects the sample rate.

" } }, "AudioSigned": { @@ -138,9 +138,9 @@ "Base64EncodedString": { "base": null, "refs": { - "Encryption$Key": "

The data encryption key that you want Elastic Transcoder to use to encrypt your output file, or that was used to encrypt your input file. The key must be base64-encoded and it must be one of the following bit lengths before being base64-encoded:

128, 192, or 256.

The key must also be encrypted by using the Amazon Key Management Service.

", + "Encryption$Key": "

The data encryption key that you want Elastic Transcoder to use to encrypt your output file, or that was used to encrypt your input file. The key must be base64-encoded and it must be one of the following bit lengths before being base64-encoded:

128, 192, or 256.

The key must also be encrypted by using the Amazon Key Management Service.

", "Encryption$KeyMd5": "

The MD5 digest of the key that you used to encrypt your input file, or that you want Elastic Transcoder to use to encrypt your output file. Elastic Transcoder uses the key digest as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes long before being base64-encoded.

", - "HlsContentProtection$Key": "

If you want Elastic Transcoder to generate a key for you, leave this field blank.

If you choose to supply your own key, you must encrypt the key by using AWS KMS. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:

128, 192, or 256.

", + "HlsContentProtection$Key": "

If you want Elastic Transcoder to generate a key for you, leave this field blank.

If you choose to supply your own key, you must encrypt the key by using AWS KMS. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:

128, 192, or 256.

", "HlsContentProtection$KeyMd5": "

If Elastic Transcoder is generating your key for you, you must leave this field blank.

The MD5 digest of the key that you want Elastic Transcoder to use to encrypt your output file, and that you want Elastic Transcoder to use as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes before being base64- encoded.

" } }, @@ -148,12 +148,12 @@ "base": null, "refs": { "CreatePipelineRequest$InputBucket": "

The Amazon S3 bucket in which you saved the media files that you want to transcode.

", - "CreatePipelineRequest$OutputBucket": "

The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files. (Use this, or use ContentConfig:Bucket plus ThumbnailConfig:Bucket.)

Specify this value when all of the following are true:

  • You want to save transcoded files, thumbnails (if any), and playlists (if any) together in one bucket.
  • You do not want to specify the users or groups who have access to the transcoded files, thumbnails, and playlists.
  • You do not want to specify the permissions that Elastic Transcoder grants to the files. When Elastic Transcoder saves files in OutputBucket, it grants full control over the files only to the AWS account that owns the role that is specified by Role.
  • You want to associate the transcoded files and thumbnails with the Amazon S3 Standard storage class.

If you want to save transcoded files and playlists in one bucket and thumbnails in another bucket, specify which users can access the transcoded files or the permissions the users have, or change the Amazon S3 storage class, omit OutputBucket and specify values for ContentConfig and ThumbnailConfig instead.

", + "CreatePipelineRequest$OutputBucket": "

The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files. (Use this, or use ContentConfig:Bucket plus ThumbnailConfig:Bucket.)

Specify this value when all of the following are true:

  • You want to save transcoded files, thumbnails (if any), and playlists (if any) together in one bucket.

  • You do not want to specify the users or groups who have access to the transcoded files, thumbnails, and playlists.

  • You do not want to specify the permissions that Elastic Transcoder grants to the files.

    When Elastic Transcoder saves files in OutputBucket, it grants full control over the files only to the AWS account that owns the role that is specified by Role.

  • You want to associate the transcoded files and thumbnails with the Amazon S3 Standard storage class.

If you want to save transcoded files and playlists in one bucket and thumbnails in another bucket, specify which users can access the transcoded files or the permissions the users have, or change the Amazon S3 storage class, omit OutputBucket and specify values for ContentConfig and ThumbnailConfig instead.

", "Pipeline$InputBucket": "

The Amazon S3 bucket from which Elastic Transcoder gets media files for transcoding and the graphics files, if any, that you want to use for watermarks.

", "Pipeline$OutputBucket": "

The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files, thumbnails, and playlists. Either you specify this value, or you specify both ContentConfig and ThumbnailConfig.

", - "PipelineOutputConfig$Bucket": "

The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files. Specify this value when all of the following are true:

  • You want to save transcoded files, thumbnails (if any), and playlists (if any) together in one bucket.
  • You do not want to specify the users or groups who have access to the transcoded files, thumbnails, and playlists.
  • You do not want to specify the permissions that Elastic Transcoder grants to the files.
  • You want to associate the transcoded files and thumbnails with the Amazon S3 Standard storage class.
If you want to save transcoded files and playlists in one bucket and thumbnails in another bucket, specify which users can access the transcoded files or the permissions the users have, or change the Amazon S3 storage class, omit OutputBucket and specify values for ContentConfig and ThumbnailConfig instead.

", + "PipelineOutputConfig$Bucket": "

The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files. Specify this value when all of the following are true:

  • You want to save transcoded files, thumbnails (if any), and playlists (if any) together in one bucket.

  • You do not want to specify the users or groups who have access to the transcoded files, thumbnails, and playlists.

  • You do not want to specify the permissions that Elastic Transcoder grants to the files.

  • You want to associate the transcoded files and thumbnails with the Amazon S3 Standard storage class.

If you want to save transcoded files and playlists in one bucket and thumbnails in another bucket, specify which users can access the transcoded files or the permissions the users have, or change the Amazon S3 storage class, omit OutputBucket and specify values for ContentConfig and ThumbnailConfig instead.

", "TestRoleRequest$InputBucket": "

The Amazon S3 bucket that contains media files to be transcoded. The action attempts to read from this bucket.

", - "TestRoleRequest$OutputBucket": "

The Amazon S3 bucket that Elastic Transcoder will write transcoded media files to. The action attempts to read from this bucket.

", + "TestRoleRequest$OutputBucket": "

The Amazon S3 bucket that Elastic Transcoder writes transcoded media files to. The action attempts to read from this bucket.

", "UpdatePipelineRequest$InputBucket": "

The Amazon S3 bucket in which you saved the media files that you want to transcode and the graphics that you want to use as watermarks.

" } }, @@ -176,13 +176,13 @@ "CaptionFormatFormat": { "base": null, "refs": { - "CaptionFormat$Format": "

The format you specify determines whether Elastic Transcoder generates an embedded or sidecar caption for this output.

  • Valid Embedded Caption Formats:

    • for FLAC: None

    • For MP3: None

    • For MP4: mov-text

    • For MPEG-TS: None

    • For ogg: None

    • For webm: None

  • Valid Sidecar Caption Formats: Elastic Transcoder supports dfxp (first div element only), scc, srt, and webvtt. If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.

    • For FMP4: dfxp

    • Non-FMP4 outputs: All sidecar types

    fmp4 captions have an extension of .ismt

" + "CaptionFormat$Format": "

The format you specify determines whether Elastic Transcoder generates an embedded or sidecar caption for this output.

  • Valid Embedded Caption Formats:

    • for FLAC: None

    • For MP3: None

    • For MP4: mov-text

    • For MPEG-TS: None

    • For ogg: None

    • For webm: None

  • Valid Sidecar Caption Formats: Elastic Transcoder supports dfxp (first div element only), scc, srt, and webvtt. If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.

    • For FMP4: dfxp

    • Non-FMP4 outputs: All sidecar types

    fmp4 captions have an extension of .ismt

" } }, "CaptionFormatPattern": { "base": null, "refs": { - "CaptionFormat$Pattern": "

The prefix for caption filenames, in the form description-{language}, where:

  • description is a description of the video.
  • {language} is a literal value that Elastic Transcoder replaces with the two- or three-letter code for the language of the caption in the output file names.

If you don't include {language} in the file name pattern, Elastic Transcoder automatically appends \"{language}\" to the value that you specify for the description. In addition, Elastic Transcoder automatically appends the count to the end of the segment files.

For example, suppose you're transcoding into srt format. When you enter \"Sydney-{language}-sunrise\", and the language of the captions is English (en), the name of the first caption file will be Sydney-en-sunrise00000.srt.

" + "CaptionFormat$Pattern": "

The prefix for caption filenames, in the form description-{language}, where:

  • description is a description of the video.

  • {language} is a literal value that Elastic Transcoder replaces with the two- or three-letter code for the language of the caption in the output file names.

If you don't include {language} in the file name pattern, Elastic Transcoder automatically appends \"{language}\" to the value that you specify for the description. In addition, Elastic Transcoder automatically appends the count to the end of the segment files.

For example, suppose you're transcoding into srt format. When you enter \"Sydney-{language}-sunrise\", and the language of the captions is English (en), the name of the first caption file is be Sydney-en-sunrise00000.srt.

" } }, "CaptionFormats": { @@ -194,7 +194,8 @@ "CaptionMergePolicy": { "base": null, "refs": { - "Captions$MergePolicy": "

A policy that determines how Elastic Transcoder handles the existence of multiple captions.

  • MergeOverride: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the sidecar captions and ignores the embedded captions for that language.

  • MergeRetain: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the embedded captions and ignores the sidecar captions for that language. If CaptionSources is empty, Elastic Transcoder omits all sidecar captions from the output files.

  • Override: Elastic Transcoder transcodes only the sidecar captions that you specify in CaptionSources.

MergePolicy cannot be null.

" + "Captions$MergePolicy": "

A policy that determines how Elastic Transcoder handles the existence of multiple captions.

  • MergeOverride: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the sidecar captions and ignores the embedded captions for that language.

  • MergeRetain: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the embedded captions and ignores the sidecar captions for that language. If CaptionSources is empty, Elastic Transcoder omits all sidecar captions from the output files.

  • Override: Elastic Transcoder transcodes only the sidecar captions that you specify in CaptionSources.

MergePolicy cannot be null.

", + "InputCaptions$MergePolicy": "

A policy that determines how Elastic Transcoder handles the existence of multiple captions.

  • MergeOverride: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the sidecar captions and ignores the embedded captions for that language.

  • MergeRetain: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the embedded captions and ignores the sidecar captions for that language. If CaptionSources is empty, Elastic Transcoder omits all sidecar captions from the output files.

  • Override: Elastic Transcoder transcodes only the sidecar captions that you specify in CaptionSources.

MergePolicy cannot be null.

" } }, "CaptionSource": { @@ -206,14 +207,15 @@ "CaptionSources": { "base": null, "refs": { - "Captions$CaptionSources": "

Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave CaptionSources blank.

" + "Captions$CaptionSources": "

Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave CaptionSources blank.

", + "InputCaptions$CaptionSources": "

Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave CaptionSources blank.

" } }, "Captions": { "base": "

The captions to be created, if any.

", "refs": { - "CreateJobOutput$Captions": "

You can configure Elastic Transcoder to transcode captions, or subtitles, from one format to another. All captions must be in UTF-8. Elastic Transcoder supports two types of captions:

  • Embedded: Embedded captions are included in the same file as the audio and video. Elastic Transcoder supports only one embedded caption per language, to a maximum of 300 embedded captions per file.

    Valid input values include: CEA-608 (EIA-608, first non-empty channel only), CEA-708 (EIA-708, first non-empty channel only), and mov-text

    Valid outputs include: mov-text

    Elastic Transcoder supports a maximum of one embedded format per output.

  • Sidecar: Sidecar captions are kept in a separate metadata file from the audio and video data. Sidecar captions require a player that is capable of understanding the relationship between the video file and the sidecar file. Elastic Transcoder supports only one sidecar caption per language, to a maximum of 20 sidecar captions per file.

    Valid input values include: dfxp (first div element only), ebu-tt, scc, smpt, srt, ttml (first div element only), and webvtt

    Valid outputs include: dfxp (first div element only), scc, srt, and webvtt.

If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.

Elastic Transcoder does not support OCR (Optical Character Recognition), does not accept pictures as a valid input for captions, and is not available for audio-only transcoding. Elastic Transcoder does not preserve text formatting (for example, italics) during the transcoding process.

To remove captions or leave the captions empty, set Captions to null. To pass through existing captions unchanged, set the MergePolicy to MergeRetain, and pass in a null CaptionSources array.

For more information on embedded files, see the Subtitles Wikipedia page.

For more information on sidecar files, see the Extensible Metadata Platform and Sidecar file Wikipedia pages.

", - "JobOutput$Captions": "

You can configure Elastic Transcoder to transcode captions, or subtitles, from one format to another. All captions must be in UTF-8. Elastic Transcoder supports two types of captions:

  • Embedded: Embedded captions are included in the same file as the audio and video. Elastic Transcoder supports only one embedded caption per language, to a maximum of 300 embedded captions per file.

    Valid input values include: CEA-608 (EIA-608, first non-empty channel only), CEA-708 (EIA-708, first non-empty channel only), and mov-text

    Valid outputs include: mov-text

    Elastic Transcoder supports a maximum of one embedded format per output.

  • Sidecar: Sidecar captions are kept in a separate metadata file from the audio and video data. Sidecar captions require a player that is capable of understanding the relationship between the video file and the sidecar file. Elastic Transcoder supports only one sidecar caption per language, to a maximum of 20 sidecar captions per file.

    Valid input values include: dfxp (first div element only), ebu-tt, scc, smpt, srt, ttml (first div element only), and webvtt

    Valid outputs include: dfxp (first div element only), scc, srt, and webvtt.

If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.

Elastic Transcoder does not support OCR (Optical Character Recognition), does not accept pictures as a valid input for captions, and is not available for audio-only transcoding. Elastic Transcoder does not preserve text formatting (for example, italics) during the transcoding process.

To remove captions or leave the captions empty, set Captions to null. To pass through existing captions unchanged, set the MergePolicy to MergeRetain, and pass in a null CaptionSources array.

For more information on embedded files, see the Subtitles Wikipedia page.

For more information on sidecar files, see the Extensible Metadata Platform and Sidecar file Wikipedia pages.

" + "CreateJobOutput$Captions": "

You can configure Elastic Transcoder to transcode captions, or subtitles, from one format to another. All captions must be in UTF-8. Elastic Transcoder supports two types of captions:

  • Embedded: Embedded captions are included in the same file as the audio and video. Elastic Transcoder supports only one embedded caption per language, to a maximum of 300 embedded captions per file.

    Valid input values include: CEA-608 (EIA-608, first non-empty channel only), CEA-708 (EIA-708, first non-empty channel only), and mov-text

    Valid outputs include: mov-text

    Elastic Transcoder supports a maximum of one embedded format per output.

  • Sidecar: Sidecar captions are kept in a separate metadata file from the audio and video data. Sidecar captions require a player that is capable of understanding the relationship between the video file and the sidecar file. Elastic Transcoder supports only one sidecar caption per language, to a maximum of 20 sidecar captions per file.

    Valid input values include: dfxp (first div element only), ebu-tt, scc, smpt, srt, ttml (first div element only), and webvtt

    Valid outputs include: dfxp (first div element only), scc, srt, and webvtt.

If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.

Elastic Transcoder does not support OCR (Optical Character Recognition), does not accept pictures as a valid input for captions, and is not available for audio-only transcoding. Elastic Transcoder does not preserve text formatting (for example, italics) during the transcoding process.

To remove captions or leave the captions empty, set Captions to null. To pass through existing captions unchanged, set the MergePolicy to MergeRetain, and pass in a null CaptionSources array.

For more information on embedded files, see the Subtitles Wikipedia page.

For more information on sidecar files, see the Extensible Metadata Platform and Sidecar file Wikipedia pages.

", + "JobOutput$Captions": "

You can configure Elastic Transcoder to transcode captions, or subtitles, from one format to another. All captions must be in UTF-8. Elastic Transcoder supports two types of captions:

  • Embedded: Embedded captions are included in the same file as the audio and video. Elastic Transcoder supports only one embedded caption per language, to a maximum of 300 embedded captions per file.

    Valid input values include: CEA-608 (EIA-608, first non-empty channel only), CEA-708 (EIA-708, first non-empty channel only), and mov-text

    Valid outputs include: mov-text

    Elastic Transcoder supports a maximum of one embedded format per output.

  • Sidecar: Sidecar captions are kept in a separate metadata file from the audio and video data. Sidecar captions require a player that is capable of understanding the relationship between the video file and the sidecar file. Elastic Transcoder supports only one sidecar caption per language, to a maximum of 20 sidecar captions per file.

    Valid input values include: dfxp (first div element only), ebu-tt, scc, smpt, srt, ttml (first div element only), and webvtt

    Valid outputs include: dfxp (first div element only), scc, srt, and webvtt.

If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.

Elastic Transcoder does not support OCR (Optical Character Recognition), does not accept pictures as a valid input for captions, and is not available for audio-only transcoding. Elastic Transcoder does not preserve text formatting (for example, italics) during the transcoding process.

To remove captions or leave the captions empty, set Captions to null. To pass through existing captions unchanged, set the MergePolicy to MergeRetain, and pass in a null CaptionSources array.

For more information on embedded files, see the Subtitles Wikipedia page.

For more information on sidecar files, see the Extensible Metadata Platform and Sidecar file Wikipedia pages.

" } }, "Clip": { @@ -232,7 +234,7 @@ "CodecOptions": { "base": null, "refs": { - "VideoParameters$CodecOptions": "

Profile (H.264/VP8 Only)

The H.264 profile that you want to use for the output file. Elastic Transcoder supports the following profiles:

  • baseline: The profile most commonly used for videoconferencing and for mobile applications.
  • main: The profile used for standard-definition digital TV broadcasts.
  • high: The profile used for high-definition digital TV broadcasts and for Blu-ray discs.

Level (H.264 Only)

The H.264 level that you want to use for the output file. Elastic Transcoder supports the following levels:

1, 1b, 1.1, 1.2, 1.3, 2, 2.1, 2.2, 3, 3.1, 3.2, 4, 4.1

MaxReferenceFrames (H.264 Only)

Applicable only when the value of Video:Codec is H.264. The maximum number of previously decoded frames to use as a reference for decoding future frames. Valid values are integers 0 through 16, but we recommend that you not use a value greater than the following:

Min(Floor(Maximum decoded picture buffer in macroblocks * 256 / (Width in pixels * Height in pixels)), 16)

where Width in pixels and Height in pixels represent either MaxWidth and MaxHeight, or Resolution. Maximum decoded picture buffer in macroblocks depends on the value of the Level object. See the list below. (A macroblock is a block of pixels measuring 16x16.)

  • 1 - 396
  • 1b - 396
  • 1.1 - 900
  • 1.2 - 2376
  • 1.3 - 2376
  • 2 - 2376
  • 2.1 - 4752
  • 2.2 - 8100
  • 3 - 8100
  • 3.1 - 18000
  • 3.2 - 20480
  • 4 - 32768
  • 4.1 - 32768

MaxBitRate (Optional, H.264/MPEG2/VP8 only)

The maximum number of bits per second in a video buffer; the size of the buffer is specified by BufferSize. Specify a value between 16 and 62,500. You can reduce the bandwidth required to stream a video by reducing the maximum bit rate, but this also reduces the quality of the video.

BufferSize (Optional, H.264/MPEG2/VP8 only)

The maximum number of bits in any x seconds of the output video. This window is commonly 10 seconds, the standard segment duration when you're using FMP4 or MPEG-TS for the container type of the output video. Specify an integer greater than 0. If you specify MaxBitRate and omit BufferSize, Elastic Transcoder sets BufferSize to 10 times the value of MaxBitRate.

InterlacedMode (Optional, H.264/MPEG2 Only)

The interlace mode for the output video.

Interlaced video is used to double the perceived frame rate for a video by interlacing two fields (one field on every other line, the other field on the other lines) so that the human eye registers multiple pictures per frame. Interlacing reduces the bandwidth required for transmitting a video, but can result in blurred images and flickering.

Valid values include Progressive (no interlacing, top to bottom), TopFirst (top field first), BottomFirst (bottom field first), and Auto.

If InterlaceMode is not specified, Elastic Transcoder uses Progressive for the output. If Auto is specified, Elastic Transcoder interlaces the output.

ColorSpaceConversionMode (Optional, H.264/MPEG2 Only)

The color space conversion Elastic Transcoder applies to the output video. Color spaces are the algorithms used by the computer to store information about how to render color. Bt.601 is the standard for standard definition video, while Bt.709 is the standard for high definition video.

Valid values include None, Bt709toBt601, Bt601toBt709, and Auto.

If you chose Auto for ColorSpaceConversionMode and your output is interlaced, your frame rate is one of 23.97, 24, 25, 29.97, 50, or 60, your SegmentDuration is null, and you are using one of the resolution changes from the list below, Elastic Transcoder applies the following color space conversions:

  • Standard to HD, 720x480 to 1920x1080 - Elastic Transcoder applies Bt601ToBt709
  • Standard to HD, 720x576 to 1920x1080 - Elastic Transcoder applies Bt601ToBt709
  • HD to Standard, 1920x1080 to 720x480 - Elastic Transcoder applies Bt709ToBt601
  • HD to Standard, 1920x1080 to 720x576 - Elastic Transcoder applies Bt709ToBt601
Elastic Transcoder may change the behavior of the ColorspaceConversionMode Auto mode in the future. All outputs in a playlist must use the same ColorSpaceConversionMode.

If you do not specify a ColorSpaceConversionMode, Elastic Transcoder does not change the color space of a file. If you are unsure what ColorSpaceConversionMode was applied to your output file, you can check the AppliedColorSpaceConversion parameter included in your job response. If your job does not have an AppliedColorSpaceConversion in its response, no ColorSpaceConversionMode was applied.

ChromaSubsampling

The sampling pattern for the chroma (color) channels of the output video. Valid values include yuv420p and yuv422p.

yuv420p samples the chroma information of every other horizontal and every other vertical line, yuv422p samples the color information of every horizontal line and every other vertical line.

LoopCount (Gif Only)

The number of times you want the output gif to loop. Valid values include Infinite and integers between 0 and 100, inclusive.

" + "VideoParameters$CodecOptions": "

Profile (H.264/VP8/VP9 Only)

The H.264 profile that you want to use for the output file. Elastic Transcoder supports the following profiles:

  • baseline: The profile most commonly used for videoconferencing and for mobile applications.

  • main: The profile used for standard-definition digital TV broadcasts.

  • high: The profile used for high-definition digital TV broadcasts and for Blu-ray discs.

Level (H.264 Only)

The H.264 level that you want to use for the output file. Elastic Transcoder supports the following levels:

1, 1b, 1.1, 1.2, 1.3, 2, 2.1, 2.2, 3, 3.1, 3.2, 4, 4.1

MaxReferenceFrames (H.264 Only)

Applicable only when the value of Video:Codec is H.264. The maximum number of previously decoded frames to use as a reference for decoding future frames. Valid values are integers 0 through 16, but we recommend that you not use a value greater than the following:

Min(Floor(Maximum decoded picture buffer in macroblocks * 256 / (Width in pixels * Height in pixels)), 16)

where Width in pixels and Height in pixels represent either MaxWidth and MaxHeight, or Resolution. Maximum decoded picture buffer in macroblocks depends on the value of the Level object. See the list below. (A macroblock is a block of pixels measuring 16x16.)

  • 1 - 396

  • 1b - 396

  • 1.1 - 900

  • 1.2 - 2376

  • 1.3 - 2376

  • 2 - 2376

  • 2.1 - 4752

  • 2.2 - 8100

  • 3 - 8100

  • 3.1 - 18000

  • 3.2 - 20480

  • 4 - 32768

  • 4.1 - 32768

MaxBitRate (Optional, H.264/MPEG2/VP8/VP9 only)

The maximum number of bits per second in a video buffer; the size of the buffer is specified by BufferSize. Specify a value between 16 and 62,500. You can reduce the bandwidth required to stream a video by reducing the maximum bit rate, but this also reduces the quality of the video.

BufferSize (Optional, H.264/MPEG2/VP8/VP9 only)

The maximum number of bits in any x seconds of the output video. This window is commonly 10 seconds, the standard segment duration when you're using FMP4 or MPEG-TS for the container type of the output video. Specify an integer greater than 0. If you specify MaxBitRate and omit BufferSize, Elastic Transcoder sets BufferSize to 10 times the value of MaxBitRate.

InterlacedMode (Optional, H.264/MPEG2 Only)

The interlace mode for the output video.

Interlaced video is used to double the perceived frame rate for a video by interlacing two fields (one field on every other line, the other field on the other lines) so that the human eye registers multiple pictures per frame. Interlacing reduces the bandwidth required for transmitting a video, but can result in blurred images and flickering.

Valid values include Progressive (no interlacing, top to bottom), TopFirst (top field first), BottomFirst (bottom field first), and Auto.

If InterlaceMode is not specified, Elastic Transcoder uses Progressive for the output. If Auto is specified, Elastic Transcoder interlaces the output.

ColorSpaceConversionMode (Optional, H.264/MPEG2 Only)

The color space conversion Elastic Transcoder applies to the output video. Color spaces are the algorithms used by the computer to store information about how to render color. Bt.601 is the standard for standard definition video, while Bt.709 is the standard for high definition video.

Valid values include None, Bt709toBt601, Bt601toBt709, and Auto.

If you chose Auto for ColorSpaceConversionMode and your output is interlaced, your frame rate is one of 23.97, 24, 25, 29.97, 50, or 60, your SegmentDuration is null, and you are using one of the resolution changes from the list below, Elastic Transcoder applies the following color space conversions:

  • Standard to HD, 720x480 to 1920x1080 - Elastic Transcoder applies Bt601ToBt709

  • Standard to HD, 720x576 to 1920x1080 - Elastic Transcoder applies Bt601ToBt709

  • HD to Standard, 1920x1080 to 720x480 - Elastic Transcoder applies Bt709ToBt601

  • HD to Standard, 1920x1080 to 720x576 - Elastic Transcoder applies Bt709ToBt601

Elastic Transcoder may change the behavior of the ColorspaceConversionMode Auto mode in the future. All outputs in a playlist must use the same ColorSpaceConversionMode.

If you do not specify a ColorSpaceConversionMode, Elastic Transcoder does not change the color space of a file. If you are unsure what ColorSpaceConversionMode was applied to your output file, you can check the AppliedColorSpaceConversion parameter included in your job response. If your job does not have an AppliedColorSpaceConversion in its response, no ColorSpaceConversionMode was applied.

ChromaSubsampling

The sampling pattern for the chroma (color) channels of the output video. Valid values include yuv420p and yuv422p.

yuv420p samples the chroma information of every other horizontal and every other vertical line, yuv422p samples the color information of every horizontal line and every other vertical line.

LoopCount (Gif Only)

The number of times you want the output gif to loop. Valid values include Infinite and integers between 0 and 100, inclusive.

" } }, "Composition": { @@ -246,7 +248,7 @@ "base": "

The CreateJobOutput structure.

", "refs": { "CreateJobOutputs$member": null, - "CreateJobRequest$Output": null + "CreateJobRequest$Output": "

A section of the request body that provides information about the transcoded (target) file. We strongly recommend that you use the Outputs syntax instead of the Output syntax.

" } }, "CreateJobOutputs": { @@ -343,30 +345,30 @@ "refs": { "Artwork$MaxWidth": "

The maximum width of the output album art in pixels. If you specify auto, Elastic Transcoder uses 600 as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive.

", "Artwork$MaxHeight": "

The maximum height of the output album art in pixels. If you specify auto, Elastic Transcoder uses 600 as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive.

", - "Thumbnails$MaxWidth": "

The maximum width of thumbnails in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096.

", - "Thumbnails$MaxHeight": "

The maximum height of thumbnails in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072.

", + "Thumbnails$MaxWidth": "

The maximum width of thumbnails in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096.

", + "Thumbnails$MaxHeight": "

The maximum height of thumbnails in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072.

", "VideoParameters$MaxWidth": "

The maximum width of the output video in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 128 and 4096.

", "VideoParameters$MaxHeight": "

The maximum height of the output video in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 96 and 3072.

" } }, "Encryption": { - "base": "

The encryption settings, if any, that are used for decrypting your input files or encrypting your output files. If your input file is encrypted, you must specify the mode that Elastic Transcoder will use to decrypt your file, otherwise you must specify the mode you want Elastic Transcoder to use to encrypt your output files.

", + "base": "

The encryption settings, if any, that are used for decrypting your input files or encrypting your output files. If your input file is encrypted, you must specify the mode that Elastic Transcoder uses to decrypt your file, otherwise you must specify the mode you want Elastic Transcoder to use to encrypt your output files.

", "refs": { "Artwork$Encryption": "

The encryption settings, if any, that you want Elastic Transcoder to apply to your artwork.

", "CaptionFormat$Encryption": "

The encryption settings, if any, that you want Elastic Transcoder to apply to your caption formats.

", - "CaptionSource$Encryption": "

The encryption settings, if any, that you want Elastic Transcoder to apply to your caption sources.

", + "CaptionSource$Encryption": "

The encryption settings, if any, that Elastic Transcoder needs to decyrpt your caption sources, or that you want Elastic Transcoder to apply to your caption sources.

", "CreateJobOutput$ThumbnailEncryption": "

The encryption settings, if any, that you want Elastic Transcoder to apply to your thumbnail.

", "CreateJobOutput$Encryption": "

You can specify encryption settings for any output files that you want to use for a transcoding job. This includes the output file and any watermarks, thumbnails, album art, or captions that you want to use. You must specify encryption settings for each file individually.

", - "JobInput$Encryption": "

The encryption settings, if any, that are used for decrypting your input files. If your input file is encrypted, you must specify the mode that Elastic Transcoder will use to decrypt your file.

", + "JobInput$Encryption": "

The encryption settings, if any, that are used for decrypting your input files. If your input file is encrypted, you must specify the mode that Elastic Transcoder uses to decrypt your file.

", "JobOutput$ThumbnailEncryption": "

The encryption settings, if any, that you want Elastic Transcoder to apply to your thumbnail.

", - "JobOutput$Encryption": "

The encryption settings, if any, that you want Elastic Transcoder to apply to your output files. If you choose to use encryption, you must specify a mode to use. If you choose not to use encryption, Elastic Transcoder will write an unencrypted file to your Amazon S3 bucket.

", + "JobOutput$Encryption": "

The encryption settings, if any, that you want Elastic Transcoder to apply to your output files. If you choose to use encryption, you must specify a mode to use. If you choose not to use encryption, Elastic Transcoder writes an unencrypted file to your Amazon S3 bucket.

", "JobWatermark$Encryption": "

The encryption settings, if any, that you want Elastic Transcoder to apply to your watermarks.

" } }, "EncryptionMode": { "base": null, "refs": { - "Encryption$Mode": "

The specific server-side encryption mode that you want Elastic Transcoder to use when decrypting your input files or encrypting your output files. Elastic Transcoder supports the following options:

  • S3: Amazon S3 creates and manages the keys used for encrypting your files.

  • S3-AWS-KMS: Amazon S3 calls the Amazon Key Management Service, which creates and manages the keys that are used for encrypting your files. If you specify S3-AWS-KMS and you don't want to use the default key, you must add the AWS-KMS key that you want to use to your pipeline.

  • AES-CBC-PKCS7: A padded cipher-block mode of operation originally used for HLS files.

  • AES-CTR: AES Counter Mode.

  • AES-GCM: AES Galois Counter Mode, a mode of operation that is an authenticated encryption format, meaning that a file, key, or initialization vector that has been tampered with will fail the decryption process.

For all three AES options, you must provide the following settings, which must be base64-encoded:

  • Key

  • Key MD5

  • Initialization Vector

For the AES modes, your private encryption keys and your unencrypted data are never stored by AWS; therefore, it is important that you safely manage your encryption keys. If you lose them, you won't be able to unencrypt your data.

" + "Encryption$Mode": "

The specific server-side encryption mode that you want Elastic Transcoder to use when decrypting your input files or encrypting your output files. Elastic Transcoder supports the following options:

  • S3: Amazon S3 creates and manages the keys used for encrypting your files.

  • S3-AWS-KMS: Amazon S3 calls the Amazon Key Management Service, which creates and manages the keys that are used for encrypting your files. If you specify S3-AWS-KMS and you don't want to use the default key, you must add the AWS-KMS key that you want to use to your pipeline.

  • AES-CBC-PKCS7: A padded cipher-block mode of operation originally used for HLS files.

  • AES-CTR: AES Counter Mode.

  • AES-GCM: AES Galois Counter Mode, a mode of operation that is an authenticated encryption format, meaning that a file, key, or initialization vector that has been tampered with fails the decryption process.

For all three AES options, you must provide the following settings, which must be base64-encoded:

  • Key

  • Key MD5

  • Initialization Vector

For the AES modes, your private encryption keys and your unencrypted data are never stored by AWS; therefore, it is important that you safely manage your encryption keys. If you lose them, you won't be able to unencrypt your data.

" } }, "ExceptionMessages": { @@ -378,22 +380,22 @@ "Filename": { "base": null, "refs": { - "CreateJobPlaylist$Name": "

The name that you want Elastic Transcoder to assign to the master playlist, for example, nyc-vacation.m3u8. If the name includes a / character, the section of the name before the last / must be identical for all Name objects. If you create more than one master playlist, the values of all Name objects must be unique.

Note: Elastic Transcoder automatically appends the relevant file extension to the file name (.m3u8 for HLSv3 and HLSv4 playlists, and .ism and .ismc for Smooth playlists). If you include a file extension in Name, the file name will have two extensions.

", - "Playlist$Name": "

The name that you want Elastic Transcoder to assign to the master playlist, for example, nyc-vacation.m3u8. If the name includes a / character, the section of the name before the last / must be identical for all Name objects. If you create more than one master playlist, the values of all Name objects must be unique.

Note: Elastic Transcoder automatically appends the relevant file extension to the file name (.m3u8 for HLSv3 and HLSv4 playlists, and .ism and .ismc for Smooth playlists). If you include a file extension in Name, the file name will have two extensions.

" + "CreateJobPlaylist$Name": "

The name that you want Elastic Transcoder to assign to the master playlist, for example, nyc-vacation.m3u8. If the name includes a / character, the section of the name before the last / must be identical for all Name objects. If you create more than one master playlist, the values of all Name objects must be unique.

Elastic Transcoder automatically appends the relevant file extension to the file name (.m3u8 for HLSv3 and HLSv4 playlists, and .ism and .ismc for Smooth playlists). If you include a file extension in Name, the file name will have two extensions.

", + "Playlist$Name": "

The name that you want Elastic Transcoder to assign to the master playlist, for example, nyc-vacation.m3u8. If the name includes a / character, the section of the name before the last / must be identical for all Name objects. If you create more than one master playlist, the values of all Name objects must be unique.

Elastic Transcoder automatically appends the relevant file extension to the file name (.m3u8 for HLSv3 and HLSv4 playlists, and .ism and .ismc for Smooth playlists). If you include a file extension in Name, the file name will have two extensions.

" } }, "FixedGOP": { "base": null, "refs": { - "VideoParameters$FixedGOP": "

Applicable only when the value of Video:Codec is one of H.264, MPEG2, or VP8.

Whether to use a fixed value for FixedGOP. Valid values are true and false:

  • true: Elastic Transcoder uses the value of KeyframesMaxDist for the distance between key frames (the number of frames in a group of pictures, or GOP).
  • false: The distance between key frames can vary.

FixedGOP must be set to true for fmp4 containers.

" + "VideoParameters$FixedGOP": "

Applicable only when the value of Video:Codec is one of H.264, MPEG2, or VP8.

Whether to use a fixed value for FixedGOP. Valid values are true and false:

  • true: Elastic Transcoder uses the value of KeyframesMaxDist for the distance between key frames (the number of frames in a group of pictures, or GOP).

  • false: The distance between key frames can vary.

FixedGOP must be set to true for fmp4 containers.

" } }, "FloatString": { "base": null, "refs": { - "CreateJobOutput$SegmentDuration": "

(Outputs in Fragmented MP4 or MPEG-TS format only.If you specify a preset in PresetId for which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), SegmentDuration is the target maximum duration of each segment in seconds. For HLSv3 format playlists, each media segment is stored in a separate .ts file. For HLSv4 and Smooth playlists, all media segments for an output are stored in a single file. Each segment is approximately the length of the SegmentDuration, though individual segments might be shorter or longer.

The range of valid values is 1 to 60 seconds. If the duration of the video is not evenly divisible by SegmentDuration, the duration of the last segment is the remainder of total length/SegmentDuration.

Elastic Transcoder creates an output-specific playlist for each output HLS output that you specify in OutputKeys. To add an output to the master playlist for this job, include it in the OutputKeys of the associated playlist.

", + "CreateJobOutput$SegmentDuration": "

(Outputs in Fragmented MP4 or MPEG-TS format only.

If you specify a preset in PresetId for which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), SegmentDuration is the target maximum duration of each segment in seconds. For HLSv3 format playlists, each media segment is stored in a separate .ts file. For HLSv4 and Smooth playlists, all media segments for an output are stored in a single file. Each segment is approximately the length of the SegmentDuration, though individual segments might be shorter or longer.

The range of valid values is 1 to 60 seconds. If the duration of the video is not evenly divisible by SegmentDuration, the duration of the last segment is the remainder of total length/SegmentDuration.

Elastic Transcoder creates an output-specific playlist for each output HLS output that you specify in OutputKeys. To add an output to the master playlist for this job, include it in the OutputKeys of the associated playlist.

", "DetectedProperties$FrameRate": "

The detected frame rate of the input file, in frames per second.

", - "JobOutput$SegmentDuration": "

(Outputs in Fragmented MP4 or MPEG-TS format only.If you specify a preset in PresetId for which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), SegmentDuration is the target maximum duration of each segment in seconds. For HLSv3 format playlists, each media segment is stored in a separate .ts file. For HLSv4 and Smooth playlists, all media segments for an output are stored in a single file. Each segment is approximately the length of the SegmentDuration, though individual segments might be shorter or longer.

The range of valid values is 1 to 60 seconds. If the duration of the video is not evenly divisible by SegmentDuration, the duration of the last segment is the remainder of total length/SegmentDuration.

Elastic Transcoder creates an output-specific playlist for each output HLS output that you specify in OutputKeys. To add an output to the master playlist for this job, include it in the OutputKeys of the associated playlist.

", + "JobOutput$SegmentDuration": "

(Outputs in Fragmented MP4 or MPEG-TS format only.

If you specify a preset in PresetId for which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), SegmentDuration is the target maximum duration of each segment in seconds. For HLSv3 format playlists, each media segment is stored in a separate .ts file. For HLSv4, MPEG-DASH, and Smooth playlists, all media segments for an output are stored in a single file. Each segment is approximately the length of the SegmentDuration, though individual segments might be shorter or longer.

The range of valid values is 1 to 60 seconds. If the duration of the video is not evenly divisible by SegmentDuration, the duration of the last segment is the remainder of total length/SegmentDuration.

Elastic Transcoder creates an output-specific playlist for each output HLS output that you specify in OutputKeys. To add an output to the master playlist for this job, include it in the OutputKeys of the associated playlist.

", "JobOutput$FrameRate": "

Frame rate of the output file, in frames per second.

" } }, @@ -401,7 +403,7 @@ "base": null, "refs": { "JobInput$FrameRate": "

The frame rate of the input file. If you want Elastic Transcoder to automatically detect the frame rate of the input file, specify auto. If you want to specify the frame rate for the input file, enter one of the following values:

10, 15, 23.97, 24, 25, 29.97, 30, 60

If you specify a value other than auto, Elastic Transcoder disables automatic detection of the frame rate.

", - "VideoParameters$FrameRate": "

The frames per second for the video stream in the output file. Valid values include:

auto, 10, 15, 23.97, 24, 25, 29.97, 30, 60

If you specify auto, Elastic Transcoder uses the detected frame rate of the input source. If you specify a frame rate, we recommend that you perform the following calculation:

Frame rate = maximum recommended decoding speed in luma samples/second / (width in pixels * height in pixels)

where:

  • width in pixels and height in pixels represent the Resolution of the output video.
  • maximum recommended decoding speed in Luma samples/second is less than or equal to the maximum value listed in the following table, based on the value that you specified for Level.

The maximum recommended decoding speed in Luma samples/second for each level is described in the following list (Level - Decoding speed):

  • 1 - 380160
  • 1b - 380160
  • 1.1 - 76800
  • 1.2 - 1536000
  • 1.3 - 3041280
  • 2 - 3041280
  • 2.1 - 5068800
  • 2.2 - 5184000
  • 3 - 10368000
  • 3.1 - 27648000
  • 3.2 - 55296000
  • 4 - 62914560
  • 4.1 - 62914560
" + "VideoParameters$FrameRate": "

The frames per second for the video stream in the output file. Valid values include:

auto, 10, 15, 23.97, 24, 25, 29.97, 30, 60

If you specify auto, Elastic Transcoder uses the detected frame rate of the input source. If you specify a frame rate, we recommend that you perform the following calculation:

Frame rate = maximum recommended decoding speed in luma samples/second / (width in pixels * height in pixels)

where:

  • width in pixels and height in pixels represent the Resolution of the output video.

  • maximum recommended decoding speed in Luma samples/second is less than or equal to the maximum value listed in the following table, based on the value that you specified for Level.

The maximum recommended decoding speed in Luma samples/second for each level is described in the following list (Level - Decoding speed):

  • 1 - 380160

  • 1b - 380160

  • 1.1 - 76800

  • 1.2 - 1536000

  • 1.3 - 3041280

  • 2 - 3041280

  • 2.1 - 5068800

  • 2.2 - 5184000

  • 3 - 10368000

  • 3.1 - 27648000

  • 3.2 - 55296000

  • 4 - 62914560

  • 4.1 - 62914560

" } }, "Grantee": { @@ -413,7 +415,7 @@ "GranteeType": { "base": null, "refs": { - "Permission$GranteeType": "

The type of value that appears in the Grantee object:

  • Canonical: Either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution. A canonical user ID is not the same as an AWS account number.
  • Email: The registered email address of an AWS account.
  • Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.

" + "Permission$GranteeType": "

The type of value that appears in the Grantee object:

  • Canonical: Either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution.

    A canonical user ID is not the same as an AWS account number.

  • Email: The registered email address of an AWS account.

  • Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.

" } }, "HlsContentProtection": { @@ -426,27 +428,27 @@ "HlsContentProtectionMethod": { "base": null, "refs": { - "HlsContentProtection$Method": "

The content protection method for your output. The only valid value is: aes-128.

This value will be written into the method attribute of the EXT-X-KEY metadata tag in the output playlist.

" + "HlsContentProtection$Method": "

The content protection method for your output. The only valid value is: aes-128.

This value is written into the method attribute of the EXT-X-KEY metadata tag in the output playlist.

" } }, "HorizontalAlign": { "base": null, "refs": { - "PresetWatermark$HorizontalAlign": "

The horizontal position of the watermark unless you specify a non-zero value for HorizontalOffset:

  • Left: The left edge of the watermark is aligned with the left border of the video.
  • Right: The right edge of the watermark is aligned with the right border of the video.
  • Center: The watermark is centered between the left and right borders.

" + "PresetWatermark$HorizontalAlign": "

The horizontal position of the watermark unless you specify a non-zero value for HorizontalOffset:

  • Left: The left edge of the watermark is aligned with the left border of the video.

  • Right: The right edge of the watermark is aligned with the right border of the video.

  • Center: The watermark is centered between the left and right borders.

" } }, "Id": { "base": null, "refs": { - "CancelJobRequest$Id": "

The identifier of the job that you want to cancel.

To get a list of the jobs (including their jobId) that have a status of Submitted, use the ListJobsByStatus API action.

", + "CancelJobRequest$Id": "

The identifier of the job that you want to cancel.

To get a list of the jobs (including their jobId) that have a status of Submitted, use the ListJobsByStatus API action.

", "CreateJobOutput$PresetId": "

The Id of the preset to use for this job. The preset determines the audio, video, and thumbnail settings that Elastic Transcoder uses for transcoding.

", "CreateJobRequest$PipelineId": "

The Id of the pipeline that you want Elastic Transcoder to use for transcoding. The pipeline determines several settings, including the Amazon S3 bucket from which Elastic Transcoder gets the files to transcode and the bucket into which Elastic Transcoder puts the transcoded files.

", "DeletePipelineRequest$Id": "

The identifier of the pipeline that you want to delete.

", "DeletePresetRequest$Id": "

The identifier of the preset for which you want to get detailed information.

", - "Job$Id": "

The identifier that Elastic Transcoder assigned to the job. You use this value to get settings for the job or to delete the job.

", + "Job$Id": "

The identifier that Elastic Transcoder assigned to the job. You use this value to get settings for the job or to delete the job.

", "Job$PipelineId": "

The Id of the pipeline that you want Elastic Transcoder to use for transcoding. The pipeline determines several settings, including the Amazon S3 bucket from which Elastic Transcoder gets the files to transcode and the bucket into which Elastic Transcoder puts the transcoded files.

", "JobOutput$PresetId": "

The value of the Id object for the preset that you want to use for this job. The preset determines the audio, video, and thumbnail settings that Elastic Transcoder uses for transcoding. To use a preset that you created, specify the preset ID that Elastic Transcoder returned in the response when you created the preset. You can also use the Elastic Transcoder system presets, which you can get with ListPresets.

", - "ListJobsByPipelineRequest$PipelineId": "

The ID of the pipeline for which you want to get job information.

", + "ListJobsByPipelineRequest$PipelineId": "

The ID of the pipeline for which you want to get job information.

", "ListJobsByPipelineRequest$PageToken": "

When Elastic Transcoder returns more than one page of results, use pageToken in subsequent GET requests to get each successive page of results.

", "ListJobsByPipelineResponse$NextPageToken": "

A value that you use to access the second and subsequent pages of results, if any. When the jobs in the specified pipeline fit on one page or when you've reached the last page of results, the value of NextPageToken is null.

", "ListJobsByStatusRequest$PageToken": "

When Elastic Transcoder returns more than one page of results, use pageToken in subsequent GET requests to get each successive page of results.

", @@ -455,12 +457,12 @@ "ListPipelinesResponse$NextPageToken": "

A value that you use to access the second and subsequent pages of results, if any. When the pipelines fit on one page or when you've reached the last page of results, the value of NextPageToken is null.

", "ListPresetsRequest$PageToken": "

When Elastic Transcoder returns more than one page of results, use pageToken in subsequent GET requests to get each successive page of results.

", "ListPresetsResponse$NextPageToken": "

A value that you use to access the second and subsequent pages of results, if any. When the presets fit on one page or when you've reached the last page of results, the value of NextPageToken is null.

", - "Pipeline$Id": "

The identifier for the pipeline. You use this value to identify the pipeline in which you want to perform a variety of operations, such as creating a job or a preset.

", + "Pipeline$Id": "

The identifier for the pipeline. You use this value to identify the pipeline in which you want to perform a variety of operations, such as creating a job or a preset.

", "Preset$Id": "

Identifier for the new preset. You use this value to get settings for the preset or to delete it.

", "ReadJobRequest$Id": "

The identifier of the job for which you want to get detailed information.

", "ReadPipelineRequest$Id": "

The identifier of the pipeline to read.

", "ReadPresetRequest$Id": "

The identifier of the preset for which you want to get detailed information.

", - "UpdatePipelineNotificationsRequest$Id": "

The identifier of the pipeline for which you want to change notification settings.

", + "UpdatePipelineNotificationsRequest$Id": "

The identifier of the pipeline for which you want to change notification settings.

", "UpdatePipelineRequest$Id": "

The ID of the pipeline that you want to update.

", "UpdatePipelineStatusRequest$Id": "

The identifier of the pipeline to update.

" } @@ -470,10 +472,16 @@ "refs": { } }, + "InputCaptions": { + "base": "

The captions to be created, if any.

", + "refs": { + "JobInput$InputCaptions": "

You can configure Elastic Transcoder to transcode captions, or subtitles, from one format to another. All captions must be in UTF-8. Elastic Transcoder supports two types of captions:

  • Embedded: Embedded captions are included in the same file as the audio and video. Elastic Transcoder supports only one embedded caption per language, to a maximum of 300 embedded captions per file.

    Valid input values include: CEA-608 (EIA-608, first non-empty channel only), CEA-708 (EIA-708, first non-empty channel only), and mov-text

    Valid outputs include: mov-text

    Elastic Transcoder supports a maximum of one embedded format per output.

  • Sidecar: Sidecar captions are kept in a separate metadata file from the audio and video data. Sidecar captions require a player that is capable of understanding the relationship between the video file and the sidecar file. Elastic Transcoder supports only one sidecar caption per language, to a maximum of 20 sidecar captions per file.

    Valid input values include: dfxp (first div element only), ebu-tt, scc, smpt, srt, ttml (first div element only), and webvtt

    Valid outputs include: dfxp (first div element only), scc, srt, and webvtt.

If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.

Elastic Transcoder does not support OCR (Optical Character Recognition), does not accept pictures as a valid input for captions, and is not available for audio-only transcoding. Elastic Transcoder does not preserve text formatting (for example, italics) during the transcoding process.

To remove captions or leave the captions empty, set Captions to null. To pass through existing captions unchanged, set the MergePolicy to MergeRetain, and pass in a null CaptionSources array.

For more information on embedded files, see the Subtitles Wikipedia page.

For more information on sidecar files, see the Extensible Metadata Platform and Sidecar file Wikipedia pages.

" + } + }, "Interlaced": { "base": null, "refs": { - "JobInput$Interlaced": "

Whether the input file is interlaced. If you want Elastic Transcoder to automatically detect whether the input file is interlaced, specify auto. If you want to specify whether the input file is interlaced, enter one of the following values:

true, false

If you specify a value other than auto, Elastic Transcoder disables automatic detection of interlacing.

" + "JobInput$Interlaced": "

Whether the input file is interlaced. If you want Elastic Transcoder to automatically detect whether the input file is interlaced, specify auto. If you want to specify whether the input file is interlaced, enter one of the following values:

true, false

If you specify a value other than auto, Elastic Transcoder disables automatic detection of interlacing.

" } }, "InternalServiceException": { @@ -484,7 +492,7 @@ "Job": { "base": "

A section of the response body that provides information about the job that is created.

", "refs": { - "CreateJobResponse$Job": "

A section of the response body that provides information about the job that is created.

", + "CreateJobResponse$Job": "

A section of the response body that provides information about the job that is created.

", "Jobs$member": null, "ReadJobResponse$Job": "

A section of the response body that provides information about the job.

" } @@ -506,27 +514,35 @@ "base": "

Information about the file that you're transcoding.

", "refs": { "CreateJobRequest$Input": "

A section of the request body that provides information about the file that is being transcoded.

", - "Job$Input": "

A section of the request or response body that provides information about the file that is being transcoded.

" + "Job$Input": "

A section of the request or response body that provides information about the file that is being transcoded.

", + "JobInputs$member": null + } + }, + "JobInputs": { + "base": null, + "refs": { + "CreateJobRequest$Inputs": "

A section of the request body that provides information about the files that are being transcoded.

", + "Job$Inputs": "

Information about the files that you're transcoding. If you specified multiple files for this job, Elastic Transcoder stitches the files together to make one output.

" } }, "JobOutput": { - "base": "

Outputs recommended instead.If you specified one output for a job, information about that output. If you specified multiple outputs for a job, the Output object lists information about the first output. This duplicates the information that is listed for the first output in the Outputs object.

", + "base": "

Outputs recommended instead.

If you specified one output for a job, information about that output. If you specified multiple outputs for a job, the Output object lists information about the first output. This duplicates the information that is listed for the first output in the Outputs object.

", "refs": { - "Job$Output": "

If you specified one output for a job, information about that output. If you specified multiple outputs for a job, the Output object lists information about the first output. This duplicates the information that is listed for the first output in the Outputs object.

Outputs recommended instead. A section of the request or response body that provides information about the transcoded (target) file.

", + "Job$Output": "

If you specified one output for a job, information about that output. If you specified multiple outputs for a job, the Output object lists information about the first output. This duplicates the information that is listed for the first output in the Outputs object.

Outputs recommended instead.

A section of the request or response body that provides information about the transcoded (target) file.

", "JobOutputs$member": null } }, "JobOutputs": { "base": null, "refs": { - "Job$Outputs": "

Information about the output files. We recommend that you use the Outputs syntax for all jobs, even when you want Elastic Transcoder to transcode a file into only one format. Do not use both the Outputs and Output syntaxes in the same request. You can create a maximum of 30 outputs per job.

If you specify more than one output for a job, Elastic Transcoder creates the files for each output in the order in which you specify them in the job.

" + "Job$Outputs": "

Information about the output files. We recommend that you use the Outputs syntax for all jobs, even when you want Elastic Transcoder to transcode a file into only one format. Do not use both the Outputs and Output syntaxes in the same request. You can create a maximum of 30 outputs per job.

If you specify more than one output for a job, Elastic Transcoder creates the files for each output in the order in which you specify them in the job.

" } }, "JobStatus": { "base": null, "refs": { "Job$Status": "

The status of the job: Submitted, Progressing, Complete, Canceled, or Error.

", - "JobOutput$Status": "

The status of one output in a job. If you specified only one output for the job, Outputs:Status is always the same as Job:Status. If you specified more than one output:

  • Job:Status and Outputs:Status for all of the outputs is Submitted until Elastic Transcoder starts to process the first output.
  • When Elastic Transcoder starts to process the first output, Outputs:Status for that output and Job:Status both change to Progressing. For each output, the value of Outputs:Status remains Submitted until Elastic Transcoder starts to process the output.
  • Job:Status remains Progressing until all of the outputs reach a terminal status, either Complete or Error.
  • When all of the outputs reach a terminal status, Job:Status changes to Complete only if Outputs:Status for all of the outputs is Complete. If Outputs:Status for one or more outputs is Error, the terminal status for Job:Status is also Error.
The value of Status is one of the following: Submitted, Progressing, Complete, Canceled, or Error.

", + "JobOutput$Status": "

The status of one output in a job. If you specified only one output for the job, Outputs:Status is always the same as Job:Status. If you specified more than one output:

  • Job:Status and Outputs:Status for all of the outputs is Submitted until Elastic Transcoder starts to process the first output.

  • When Elastic Transcoder starts to process the first output, Outputs:Status for that output and Job:Status both change to Progressing. For each output, the value of Outputs:Status remains Submitted until Elastic Transcoder starts to process the output.

  • Job:Status remains Progressing until all of the outputs reach a terminal status, either Complete or Error.

  • When all of the outputs reach a terminal status, Job:Status changes to Complete only if Outputs:Status for all of the outputs is Complete. If Outputs:Status for one or more outputs is Error, the terminal status for Job:Status is also Error.

The value of Status is one of the following: Submitted, Progressing, Complete, Canceled, or Error.

", "ListJobsByStatusRequest$Status": "

To get information about all of the jobs associated with the current AWS account that have a given status, specify the following status: Submitted, Progressing, Complete, Canceled, or Error.

", "Playlist$Status": "

The status of the job with which the playlist is associated.

" } @@ -541,7 +557,7 @@ "base": null, "refs": { "CreateJobOutput$Watermarks": "

Information about the watermarks that you want Elastic Transcoder to add to the video during transcoding. You can specify up to four watermarks for each output. Settings for each watermark must be defined in the preset for the current output.

", - "JobOutput$Watermarks": "

Information about the watermarks that you want Elastic Transcoder to add to the video during transcoding. You can specify up to four watermarks for each output. Settings for each watermark must be defined in the preset that you specify in Preset for the current output.

Watermarks are added to the output video in the sequence in which you list them in the job output—the first watermark in the list is added to the output video first, the second watermark in the list is added next, and so on. As a result, if the settings in a preset cause Elastic Transcoder to place all watermarks in the same location, the second watermark that you add will cover the first one, the third one will cover the second, and the fourth one will cover the third.

" + "JobOutput$Watermarks": "

Information about the watermarks that you want Elastic Transcoder to add to the video during transcoding. You can specify up to four watermarks for each output. Settings for each watermark must be defined in the preset that you specify in Preset for the current output.

Watermarks are added to the output video in the sequence in which you list them in the job output—the first watermark in the list is added to the output video first, the second watermark in the list is added next, and so on. As a result, if the settings in a preset cause Elastic Transcoder to place all watermarks in the same location, the second watermark that you add covers the first one, the third one covers the second, and the fourth one covers the third.

" } }, "Jobs": { @@ -561,7 +577,7 @@ "Key": { "base": null, "refs": { - "CaptionSource$Language": "

A string that specifies the language of the caption. Specify this as one of:

  • 2-character ISO 639-1 code

  • 3-character ISO 639-2 code

For more information on ISO language codes and language names, see the List of ISO 639-1 codes.

", + "CaptionSource$Language": "

A string that specifies the language of the caption. If you specified multiple inputs with captions, the caption language must match in order to be included in the output. Specify this as one of:

  • 2-character ISO 639-1 code

  • 3-character ISO 639-2 code

For more information on ISO language codes and language names, see the List of ISO 639-1 codes.

", "CreateJobOutput$Key": "

The name to assign to the transcoded file. Elastic Transcoder saves the file in the Amazon S3 bucket specified by the OutputBucket object in the pipeline that is specified by the pipeline ID. If a file with the specified name already exists in the output bucket, the job fails.

", "CreateJobRequest$OutputKeyPrefix": "

The value, if any, that you want Elastic Transcoder to prepend to the names of all files that this job creates, including output files, thumbnails, and playlists.

", "Job$OutputKeyPrefix": "

The value, if any, that you want Elastic Transcoder to prepend to the names of all files that this job creates, including output files, thumbnails, and playlists. We recommend that you add a / or some other delimiter to the end of the OutputKeyPrefix.

", @@ -580,7 +596,7 @@ "KeyIdGuid": { "base": null, "refs": { - "PlayReadyDrm$KeyId": "

The ID for your DRM key, so that your DRM license provider knows which key to provide.

The key ID must be provided in big endian, and Elastic Transcoder will convert it to little endian before inserting it into the PlayReady DRM headers. If you are unsure whether your license server provides your key ID in big or little endian, check with your DRM provider.

" + "PlayReadyDrm$KeyId": "

The ID for your DRM key, so that your DRM license provider knows which key to provide.

The key ID must be provided in big endian, and Elastic Transcoder converts it to little endian before inserting it into the PlayReady DRM headers. If you are unsure whether your license server provides your key ID in big or little endian, check with your DRM provider.

" } }, "KeyStoragePolicy": { @@ -656,7 +672,7 @@ "MergePolicy": { "base": null, "refs": { - "JobAlbumArt$MergePolicy": "

A policy that determines how Elastic Transcoder will handle the existence of multiple album artwork files.

  • Replace: The specified album art will replace any existing album art.
  • Prepend: The specified album art will be placed in front of any existing album art.
  • Append: The specified album art will be placed after any existing album art.
  • Fallback: If the original input file contains artwork, Elastic Transcoder will use that artwork for the output. If the original input does not contain artwork, Elastic Transcoder will use the specified album art file.

" + "JobAlbumArt$MergePolicy": "

A policy that determines how Elastic Transcoder handles the existence of multiple album artwork files.

  • Replace: The specified album art replaces any existing album art.

  • Prepend: The specified album art is placed in front of any existing album art.

  • Append: The specified album art is placed after any existing album art.

  • Fallback: If the original input file contains artwork, Elastic Transcoder uses that artwork for the output. If the original input does not contain artwork, Elastic Transcoder uses the specified album art file.

" } }, "Name": { @@ -673,17 +689,17 @@ "NonEmptyBase64EncodedString": { "base": null, "refs": { - "PlayReadyDrm$Key": "

The DRM key for your file, provided by your DRM license provider. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:

128, 192, or 256.

The key must also be encrypted by using AWS KMS.

", + "PlayReadyDrm$Key": "

The DRM key for your file, provided by your DRM license provider. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:

128, 192, or 256.

The key must also be encrypted by using AWS KMS.

", "PlayReadyDrm$KeyMd5": "

The MD5 digest of the key used for DRM on your file, and that you want Elastic Transcoder to use as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes before being base64-encoded.

" } }, "Notifications": { - "base": "

The Amazon Simple Notification Service (Amazon SNS) topic or topics to notify in order to report job status.

To receive notifications, you must also subscribe to the new topic in the Amazon SNS console.", + "base": "

The Amazon Simple Notification Service (Amazon SNS) topic or topics to notify in order to report job status.

To receive notifications, you must also subscribe to the new topic in the Amazon SNS console.

", "refs": { - "CreatePipelineRequest$Notifications": "

The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status.

To receive notifications, you must also subscribe to the new topic in the Amazon SNS console.
  • Progressing: The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic. For more information, see Create a Topic in the Amazon Simple Notification Service Developer Guide.
  • Completed: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic.
  • Warning: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic.
  • Error: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic.
", - "Pipeline$Notifications": "

The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status.

To receive notifications, you must also subscribe to the new topic in the Amazon SNS console.
  • Progressing (optional): The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process the job.
  • Completed (optional): The Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing the job.
  • Warning (optional): The Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition.
  • Error (optional): The Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition.
", - "UpdatePipelineNotificationsRequest$Notifications": "

The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status.

To receive notifications, you must also subscribe to the new topic in the Amazon SNS console.
  • Progressing: The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process jobs that are added to this pipeline. This is the ARN that Amazon SNS returned when you created the topic.
  • Completed: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job. This is the ARN that Amazon SNS returned when you created the topic.
  • Warning: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition. This is the ARN that Amazon SNS returned when you created the topic.
  • Error: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition. This is the ARN that Amazon SNS returned when you created the topic.
", - "UpdatePipelineRequest$Notifications": null + "CreatePipelineRequest$Notifications": "

The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status.

To receive notifications, you must also subscribe to the new topic in the Amazon SNS console.

  • Progressing: The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic. For more information, see Create a Topic in the Amazon Simple Notification Service Developer Guide.

  • Completed: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic.

  • Warning: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic.

  • Error: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic.

", + "Pipeline$Notifications": "

The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status.

To receive notifications, you must also subscribe to the new topic in the Amazon SNS console.

  • Progressing (optional): The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process the job.

  • Completed (optional): The Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing the job.

  • Warning (optional): The Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition.

  • Error (optional): The Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition.

", + "UpdatePipelineNotificationsRequest$Notifications": "

The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status.

To receive notifications, you must also subscribe to the new topic in the Amazon SNS console.

  • Progressing: The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process jobs that are added to this pipeline. This is the ARN that Amazon SNS returned when you created the topic.

  • Completed: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job. This is the ARN that Amazon SNS returned when you created the topic.

  • Warning: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition. This is the ARN that Amazon SNS returned when you created the topic.

  • Error: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition. This is the ARN that Amazon SNS returned when you created the topic.

", + "UpdatePipelineRequest$Notifications": "

The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status.

To receive notifications, you must also subscribe to the new topic in the Amazon SNS console.

  • Progressing: The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process jobs that are added to this pipeline. This is the ARN that Amazon SNS returned when you created the topic.

  • Completed: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job. This is the ARN that Amazon SNS returned when you created the topic.

  • Warning: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition. This is the ARN that Amazon SNS returned when you created the topic.

  • Error: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition. This is the ARN that Amazon SNS returned when you created the topic.

" } }, "NullableInteger": { @@ -711,7 +727,7 @@ "OneTo512String": { "base": null, "refs": { - "PlayReadyDrm$LicenseAcquisitionUrl": "

The location of the license key required to play DRM content. The URL must be an absolute path, and is referenced by the PlayReady header. The PlayReady header is referenced in the protection header of the client manifest for Smooth Streaming outputs, and in the EXT-X-DXDRM and EXT-XDXDRMINFO metadata tags for HLS playlist outputs. An example URL looks like this: https://www.example.com/exampleKey/

" + "PlayReadyDrm$LicenseAcquisitionUrl": "

The location of the license key required to play DRM content. The URL must be an absolute path, and is referenced by the PlayReady header. The PlayReady header is referenced in the protection header of the client manifest for Smooth Streaming outputs, and in the EXT-X-DXDRM and EXT-XDXDRMINFO metadata tags for HLS playlist outputs. An example URL looks like this: https://www.example.com/exampleKey/

" } }, "Opacity": { @@ -723,8 +739,8 @@ "OutputKeys": { "base": null, "refs": { - "CreateJobPlaylist$OutputKeys": "

For each output in this job that you want to include in a master playlist, the value of the Outputs:Key object.

  • If your output is not HLS or does not have a segment duration set, the name of the output file is a concatenation of OutputKeyPrefix and Outputs:Key:

    OutputKeyPrefixOutputs:Key

  • If your output is HLSv3 and has a segment duration set, or is not included in a playlist, Elastic Transcoder creates an output playlist file with a file extension of .m3u8, and a series of .ts files that include a five-digit sequential counter beginning with 00000:

    OutputKeyPrefixOutputs:Key.m3u8

    OutputKeyPrefixOutputs:Key00000.ts

  • If your output is HLSv4, has a segment duration set, and is included in an HLSv4 playlist, Elastic Transcoder creates an output playlist file with a file extension of _v4.m3u8. If the output is video, Elastic Transcoder also creates an output file with an extension of _iframe.m3u8:

    OutputKeyPrefixOutputs:Key_v4.m3u8

    OutputKeyPrefixOutputs:Key_iframe.m3u8

    OutputKeyPrefixOutputs:Key.ts

Elastic Transcoder automatically appends the relevant file extension to the file name. If you include a file extension in Output Key, the file name will have two extensions.

If you include more than one output in a playlist, any segment duration settings, clip settings, or caption settings must be the same for all outputs in the playlist. For Smooth playlists, the Audio:Profile, Video:Profile, and Video:FrameRate to Video:KeyframesMaxDist ratio must be the same for all outputs.

", - "Playlist$OutputKeys": "

For each output in this job that you want to include in a master playlist, the value of the Outputs:Key object.

  • If your output is not HLS or does not have a segment duration set, the name of the output file is a concatenation of OutputKeyPrefix and Outputs:Key:

    OutputKeyPrefixOutputs:Key

  • If your output is HLSv3 and has a segment duration set, or is not included in a playlist, Elastic Transcoder creates an output playlist file with a file extension of .m3u8, and a series of .ts files that include a five-digit sequential counter beginning with 00000:

    OutputKeyPrefixOutputs:Key.m3u8

    OutputKeyPrefixOutputs:Key00000.ts

  • If your output is HLSv4, has a segment duration set, and is included in an HLSv4 playlist, Elastic Transcoder creates an output playlist file with a file extension of _v4.m3u8. If the output is video, Elastic Transcoder also creates an output file with an extension of _iframe.m3u8:

    OutputKeyPrefixOutputs:Key_v4.m3u8

    OutputKeyPrefixOutputs:Key_iframe.m3u8

    OutputKeyPrefixOutputs:Key.ts

Elastic Transcoder automatically appends the relevant file extension to the file name. If you include a file extension in Output Key, the file name will have two extensions.

If you include more than one output in a playlist, any segment duration settings, clip settings, or caption settings must be the same for all outputs in the playlist. For Smooth playlists, the Audio:Profile, Video:Profile, and Video:FrameRate to Video:KeyframesMaxDist ratio must be the same for all outputs.

" + "CreateJobPlaylist$OutputKeys": "

For each output in this job that you want to include in a master playlist, the value of the Outputs:Key object.

  • If your output is not HLS or does not have a segment duration set, the name of the output file is a concatenation of OutputKeyPrefix and Outputs:Key:

    OutputKeyPrefixOutputs:Key

  • If your output is HLSv3 and has a segment duration set, or is not included in a playlist, Elastic Transcoder creates an output playlist file with a file extension of .m3u8, and a series of .ts files that include a five-digit sequential counter beginning with 00000:

    OutputKeyPrefixOutputs:Key.m3u8

    OutputKeyPrefixOutputs:Key00000.ts

  • If your output is HLSv4, has a segment duration set, and is included in an HLSv4 playlist, Elastic Transcoder creates an output playlist file with a file extension of _v4.m3u8. If the output is video, Elastic Transcoder also creates an output file with an extension of _iframe.m3u8:

    OutputKeyPrefixOutputs:Key_v4.m3u8

    OutputKeyPrefixOutputs:Key_iframe.m3u8

    OutputKeyPrefixOutputs:Key.ts

Elastic Transcoder automatically appends the relevant file extension to the file name. If you include a file extension in Output Key, the file name will have two extensions.

If you include more than one output in a playlist, any segment duration settings, clip settings, or caption settings must be the same for all outputs in the playlist. For Smooth playlists, the Audio:Profile, Video:Profile, and Video:FrameRate to Video:KeyframesMaxDist ratio must be the same for all outputs.

", + "Playlist$OutputKeys": "

For each output in this job that you want to include in a master playlist, the value of the Outputs:Key object.

  • If your output is not HLS or does not have a segment duration set, the name of the output file is a concatenation of OutputKeyPrefix and Outputs:Key:

    OutputKeyPrefixOutputs:Key

  • If your output is HLSv3 and has a segment duration set, or is not included in a playlist, Elastic Transcoder creates an output playlist file with a file extension of .m3u8, and a series of .ts files that include a five-digit sequential counter beginning with 00000:

    OutputKeyPrefixOutputs:Key.m3u8

    OutputKeyPrefixOutputs:Key00000.ts

  • If your output is HLSv4, has a segment duration set, and is included in an HLSv4 playlist, Elastic Transcoder creates an output playlist file with a file extension of _v4.m3u8. If the output is video, Elastic Transcoder also creates an output file with an extension of _iframe.m3u8:

    OutputKeyPrefixOutputs:Key_v4.m3u8

    OutputKeyPrefixOutputs:Key_iframe.m3u8

    OutputKeyPrefixOutputs:Key.ts

Elastic Transcoder automatically appends the relevant file extension to the file name. If you include a file extension in Output Key, the file name will have two extensions.

If you include more than one output in a playlist, any segment duration settings, clip settings, or caption settings must be the same for all outputs in the playlist. For Smooth playlists, the Audio:Profile, Video:Profile, and Video:FrameRate to Video:KeyframesMaxDist ratio must be the same for all outputs.

" } }, "PaddingPolicy": { @@ -753,27 +769,27 @@ "CreatePipelineResponse$Pipeline": "

A section of the response body that provides information about the pipeline that is created.

", "Pipelines$member": null, "ReadPipelineResponse$Pipeline": "

A section of the response body that provides information about the pipeline.

", - "UpdatePipelineNotificationsResponse$Pipeline": "

A section of the response body that provides information about the pipeline.

", - "UpdatePipelineResponse$Pipeline": null, + "UpdatePipelineNotificationsResponse$Pipeline": "

A section of the response body that provides information about the pipeline associated with this notification.

", + "UpdatePipelineResponse$Pipeline": "

The pipeline updated by this UpdatePipelineResponse call.

", "UpdatePipelineStatusResponse$Pipeline": "

A section of the response body that provides information about the pipeline.

" } }, "PipelineOutputConfig": { "base": "

The PipelineOutputConfig structure.

", "refs": { - "CreatePipelineRequest$ContentConfig": "

The optional ContentConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists: which bucket to use, which users you want to have access to the files, the type of access you want users to have, and the storage class that you want to assign to the files.

If you specify values for ContentConfig, you must also specify values for ThumbnailConfig.

If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket object.

  • Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.
  • Permissions (Optional): The Permissions object specifies which users you want to have access to transcoded files and the type of access you want them to have. You can grant permissions to a maximum of 30 users and/or predefined Amazon S3 groups.
  • Grantee Type: Specify the type of value that appears in the Grantee object:
    • Canonical: The value in the Grantee object is either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution. For more information about canonical user IDs, see Access Control List (ACL) Overview in the Amazon Simple Storage Service Developer Guide. For more information about using CloudFront origin access identities to require that users use CloudFront URLs instead of Amazon S3 URLs, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content. A canonical user ID is not the same as an AWS account number.
    • Email: The value in the Grantee object is the registered email address of an AWS account.
    • Group: The value in the Grantee object is one of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.
  • Grantee: The AWS user or group that you want to have access to transcoded files and playlists. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group
  • Access: The permission that you want to give to the AWS user that you specified in Grantee. Permissions are granted on the files that Elastic Transcoder adds to the bucket, including playlists and video files. Valid values include:
    • READ: The grantee can read the objects and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket.
    • READ_ACP: The grantee can read the object ACL for objects that Elastic Transcoder adds to the Amazon S3 bucket.
    • WRITE_ACP: The grantee can write the ACL for the objects that Elastic Transcoder adds to the Amazon S3 bucket.
    • FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for the objects that Elastic Transcoder adds to the Amazon S3 bucket.
  • StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the video files and playlists that it stores in your Amazon S3 bucket.
", - "CreatePipelineRequest$ThumbnailConfig": "

The ThumbnailConfig object specifies several values, including the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files, which users you want to have access to the files, the type of access you want users to have, and the storage class that you want to assign to the files.

If you specify values for ContentConfig, you must also specify values for ThumbnailConfig even if you don't want to create thumbnails.

If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket object.

  • Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.
  • Permissions (Optional): The Permissions object specifies which users and/or predefined Amazon S3 groups you want to have access to thumbnail files, and the type of access you want them to have. You can grant permissions to a maximum of 30 users and/or predefined Amazon S3 groups.
  • GranteeType: Specify the type of value that appears in the Grantee object:
    • Canonical: The value in the Grantee object is either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution. A canonical user ID is not the same as an AWS account number.
    • Email: The value in the Grantee object is the registered email address of an AWS account.
    • Group: The value in the Grantee object is one of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.
  • Grantee: The AWS user or group that you want to have access to thumbnail files. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group.
  • Access: The permission that you want to give to the AWS user that you specified in Grantee. Permissions are granted on the thumbnail files that Elastic Transcoder adds to the bucket. Valid values include:
    • READ: The grantee can read the thumbnails and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket.
    • READ_ACP: The grantee can read the object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
    • WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
    • FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
  • StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket.
", - "Pipeline$ContentConfig": "

Information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. Either you specify both ContentConfig and ThumbnailConfig, or you specify OutputBucket.

  • Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.
  • Permissions: A list of the users and/or predefined Amazon S3 groups you want to have access to transcoded files and playlists, and the type of access that you want them to have.
    • GranteeType: The type of value that appears in the Grantee object:
      • Canonical: Either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution.
      • Email: The registered email address of an AWS account.
      • Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.
    • Grantee: The AWS user or group that you want to have access to transcoded files and playlists.
    • Access: The permission that you want to give to the AWS user that is listed in Grantee. Valid values include:
      • READ: The grantee can read the objects and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket.
      • READ_ACP: The grantee can read the object ACL for objects that Elastic Transcoder adds to the Amazon S3 bucket.
      • WRITE_ACP: The grantee can write the ACL for the objects that Elastic Transcoder adds to the Amazon S3 bucket.
      • FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for the objects that Elastic Transcoder adds to the Amazon S3 bucket.
  • StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the video files and playlists that it stores in your Amazon S3 bucket.
", - "Pipeline$ThumbnailConfig": "

Information about the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. Either you specify both ContentConfig and ThumbnailConfig, or you specify OutputBucket.

  • Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.
  • Permissions: A list of the users and/or predefined Amazon S3 groups you want to have access to thumbnail files, and the type of access that you want them to have.
    • GranteeType: The type of value that appears in the Grantee object:
      • Canonical: Either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution. A canonical user ID is not the same as an AWS account number.
      • Email: The registered email address of an AWS account.
      • Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.
    • Grantee: The AWS user or group that you want to have access to thumbnail files.
    • Access: The permission that you want to give to the AWS user that is listed in Grantee. Valid values include:
      • READ: The grantee can read the thumbnails and metadata for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
      • READ_ACP: The grantee can read the object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
      • WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
      • FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
  • StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket.
", - "UpdatePipelineRequest$ContentConfig": "

The optional ContentConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists: which bucket to use, which users you want to have access to the files, the type of access you want users to have, and the storage class that you want to assign to the files.

If you specify values for ContentConfig, you must also specify values for ThumbnailConfig.

If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket object.

  • Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.
  • Permissions (Optional): The Permissions object specifies which users you want to have access to transcoded files and the type of access you want them to have. You can grant permissions to a maximum of 30 users and/or predefined Amazon S3 groups.
  • Grantee Type: Specify the type of value that appears in the Grantee object:
    • Canonical: The value in the Grantee object is either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution. For more information about canonical user IDs, see Access Control List (ACL) Overview in the Amazon Simple Storage Service Developer Guide. For more information about using CloudFront origin access identities to require that users use CloudFront URLs instead of Amazon S3 URLs, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content. A canonical user ID is not the same as an AWS account number.
    • Email: The value in the Grantee object is the registered email address of an AWS account.
    • Group: The value in the Grantee object is one of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.
  • Grantee: The AWS user or group that you want to have access to transcoded files and playlists. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group
  • Access: The permission that you want to give to the AWS user that you specified in Grantee. Permissions are granted on the files that Elastic Transcoder adds to the bucket, including playlists and video files. Valid values include:
    • READ: The grantee can read the objects and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket.
    • READ_ACP: The grantee can read the object ACL for objects that Elastic Transcoder adds to the Amazon S3 bucket.
    • WRITE_ACP: The grantee can write the ACL for the objects that Elastic Transcoder adds to the Amazon S3 bucket.
    • FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for the objects that Elastic Transcoder adds to the Amazon S3 bucket.
  • StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the video files and playlists that it stores in your Amazon S3 bucket.
", - "UpdatePipelineRequest$ThumbnailConfig": "

The ThumbnailConfig object specifies several values, including the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files, which users you want to have access to the files, the type of access you want users to have, and the storage class that you want to assign to the files.

If you specify values for ContentConfig, you must also specify values for ThumbnailConfig even if you don't want to create thumbnails.

If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket object.

  • Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.
  • Permissions (Optional): The Permissions object specifies which users and/or predefined Amazon S3 groups you want to have access to thumbnail files, and the type of access you want them to have. You can grant permissions to a maximum of 30 users and/or predefined Amazon S3 groups.
  • GranteeType: Specify the type of value that appears in the Grantee object:
    • Canonical: The value in the Grantee object is either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution. A canonical user ID is not the same as an AWS account number.
    • Email: The value in the Grantee object is the registered email address of an AWS account.
    • Group: The value in the Grantee object is one of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.
  • Grantee: The AWS user or group that you want to have access to thumbnail files. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group.
  • Access: The permission that you want to give to the AWS user that you specified in Grantee. Permissions are granted on the thumbnail files that Elastic Transcoder adds to the bucket. Valid values include:
    • READ: The grantee can read the thumbnails and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket.
    • READ_ACP: The grantee can read the object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
    • WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
    • FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
  • StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket.
" + "CreatePipelineRequest$ContentConfig": "

The optional ContentConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists: which bucket to use, which users you want to have access to the files, the type of access you want users to have, and the storage class that you want to assign to the files.

If you specify values for ContentConfig, you must also specify values for ThumbnailConfig.

If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket object.

  • Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.

  • Permissions (Optional): The Permissions object specifies which users you want to have access to transcoded files and the type of access you want them to have. You can grant permissions to a maximum of 30 users and/or predefined Amazon S3 groups.

  • Grantee Type: Specify the type of value that appears in the Grantee object:

    • Canonical: The value in the Grantee object is either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution. For more information about canonical user IDs, see Access Control List (ACL) Overview in the Amazon Simple Storage Service Developer Guide. For more information about using CloudFront origin access identities to require that users use CloudFront URLs instead of Amazon S3 URLs, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content.

      A canonical user ID is not the same as an AWS account number.

    • Email: The value in the Grantee object is the registered email address of an AWS account.

    • Group: The value in the Grantee object is one of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.

  • Grantee: The AWS user or group that you want to have access to transcoded files and playlists. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group

  • Access: The permission that you want to give to the AWS user that you specified in Grantee. Permissions are granted on the files that Elastic Transcoder adds to the bucket, including playlists and video files. Valid values include:

    • READ: The grantee can read the objects and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket.

    • READ_ACP: The grantee can read the object ACL for objects that Elastic Transcoder adds to the Amazon S3 bucket.

    • WRITE_ACP: The grantee can write the ACL for the objects that Elastic Transcoder adds to the Amazon S3 bucket.

    • FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for the objects that Elastic Transcoder adds to the Amazon S3 bucket.

  • StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the video files and playlists that it stores in your Amazon S3 bucket.

", + "CreatePipelineRequest$ThumbnailConfig": "

The ThumbnailConfig object specifies several values, including the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files, which users you want to have access to the files, the type of access you want users to have, and the storage class that you want to assign to the files.

If you specify values for ContentConfig, you must also specify values for ThumbnailConfig even if you don't want to create thumbnails.

If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket object.

  • Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.

  • Permissions (Optional): The Permissions object specifies which users and/or predefined Amazon S3 groups you want to have access to thumbnail files, and the type of access you want them to have. You can grant permissions to a maximum of 30 users and/or predefined Amazon S3 groups.

  • GranteeType: Specify the type of value that appears in the Grantee object:

    • Canonical: The value in the Grantee object is either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution.

      A canonical user ID is not the same as an AWS account number.

    • Email: The value in the Grantee object is the registered email address of an AWS account.

    • Group: The value in the Grantee object is one of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.

  • Grantee: The AWS user or group that you want to have access to thumbnail files. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group.

  • Access: The permission that you want to give to the AWS user that you specified in Grantee. Permissions are granted on the thumbnail files that Elastic Transcoder adds to the bucket. Valid values include:

    • READ: The grantee can read the thumbnails and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket.

    • READ_ACP: The grantee can read the object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.

    • WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.

    • FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.

  • StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket.

", + "Pipeline$ContentConfig": "

Information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. Either you specify both ContentConfig and ThumbnailConfig, or you specify OutputBucket.

  • Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.

  • Permissions: A list of the users and/or predefined Amazon S3 groups you want to have access to transcoded files and playlists, and the type of access that you want them to have.

    • GranteeType: The type of value that appears in the Grantee object:

      • Canonical: Either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution.

      • Email: The registered email address of an AWS account.

      • Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.

    • Grantee: The AWS user or group that you want to have access to transcoded files and playlists.

    • Access: The permission that you want to give to the AWS user that is listed in Grantee. Valid values include:

      • READ: The grantee can read the objects and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket.

      • READ_ACP: The grantee can read the object ACL for objects that Elastic Transcoder adds to the Amazon S3 bucket.

      • WRITE_ACP: The grantee can write the ACL for the objects that Elastic Transcoder adds to the Amazon S3 bucket.

      • FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for the objects that Elastic Transcoder adds to the Amazon S3 bucket.

  • StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the video files and playlists that it stores in your Amazon S3 bucket.

", + "Pipeline$ThumbnailConfig": "

Information about the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. Either you specify both ContentConfig and ThumbnailConfig, or you specify OutputBucket.

  • Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.

  • Permissions: A list of the users and/or predefined Amazon S3 groups you want to have access to thumbnail files, and the type of access that you want them to have.

    • GranteeType: The type of value that appears in the Grantee object:

      • Canonical: Either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution.

        A canonical user ID is not the same as an AWS account number.

      • Email: The registered email address of an AWS account.

      • Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.

    • Grantee: The AWS user or group that you want to have access to thumbnail files.

    • Access: The permission that you want to give to the AWS user that is listed in Grantee. Valid values include:

      • READ: The grantee can read the thumbnails and metadata for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.

      • READ_ACP: The grantee can read the object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.

      • WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.

      • FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.

  • StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket.

", + "UpdatePipelineRequest$ContentConfig": "

The optional ContentConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists: which bucket to use, which users you want to have access to the files, the type of access you want users to have, and the storage class that you want to assign to the files.

If you specify values for ContentConfig, you must also specify values for ThumbnailConfig.

If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket object.

  • Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.

  • Permissions (Optional): The Permissions object specifies which users you want to have access to transcoded files and the type of access you want them to have. You can grant permissions to a maximum of 30 users and/or predefined Amazon S3 groups.

  • Grantee Type: Specify the type of value that appears in the Grantee object:

    • Canonical: The value in the Grantee object is either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution. For more information about canonical user IDs, see Access Control List (ACL) Overview in the Amazon Simple Storage Service Developer Guide. For more information about using CloudFront origin access identities to require that users use CloudFront URLs instead of Amazon S3 URLs, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content.

      A canonical user ID is not the same as an AWS account number.

    • Email: The value in the Grantee object is the registered email address of an AWS account.

    • Group: The value in the Grantee object is one of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.

  • Grantee: The AWS user or group that you want to have access to transcoded files and playlists. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group

  • Access: The permission that you want to give to the AWS user that you specified in Grantee. Permissions are granted on the files that Elastic Transcoder adds to the bucket, including playlists and video files. Valid values include:

    • READ: The grantee can read the objects and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket.

    • READ_ACP: The grantee can read the object ACL for objects that Elastic Transcoder adds to the Amazon S3 bucket.

    • WRITE_ACP: The grantee can write the ACL for the objects that Elastic Transcoder adds to the Amazon S3 bucket.

    • FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for the objects that Elastic Transcoder adds to the Amazon S3 bucket.

  • StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the video files and playlists that it stores in your Amazon S3 bucket.

", + "UpdatePipelineRequest$ThumbnailConfig": "

The ThumbnailConfig object specifies several values, including the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files, which users you want to have access to the files, the type of access you want users to have, and the storage class that you want to assign to the files.

If you specify values for ContentConfig, you must also specify values for ThumbnailConfig even if you don't want to create thumbnails.

If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket object.

  • Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.

  • Permissions (Optional): The Permissions object specifies which users and/or predefined Amazon S3 groups you want to have access to thumbnail files, and the type of access you want them to have. You can grant permissions to a maximum of 30 users and/or predefined Amazon S3 groups.

  • GranteeType: Specify the type of value that appears in the Grantee object:

    • Canonical: The value in the Grantee object is either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution.

      A canonical user ID is not the same as an AWS account number.

    • Email: The value in the Grantee object is the registered email address of an AWS account.

    • Group: The value in the Grantee object is one of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.

  • Grantee: The AWS user or group that you want to have access to thumbnail files. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group.

  • Access: The permission that you want to give to the AWS user that you specified in Grantee. Permissions are granted on the thumbnail files that Elastic Transcoder adds to the bucket. Valid values include:

    • READ: The grantee can read the thumbnails and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket.

    • READ_ACP: The grantee can read the object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.

    • WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.

    • FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.

  • StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket.

" } }, "PipelineStatus": { "base": null, "refs": { - "Pipeline$Status": "

The current status of the pipeline:

  • Active: The pipeline is processing jobs.
  • Paused: The pipeline is not currently processing jobs.
", - "UpdatePipelineStatusRequest$Status": "

The desired status of the pipeline:

  • Active: The pipeline is processing jobs.
  • Paused: The pipeline is not currently processing jobs.
" + "Pipeline$Status": "

The current status of the pipeline:

  • Active: The pipeline is processing jobs.

  • Paused: The pipeline is not currently processing jobs.

", + "UpdatePipelineStatusRequest$Status": "

The desired status of the pipeline:

  • Active: The pipeline is processing jobs.

  • Paused: The pipeline is not currently processing jobs.

" } }, "Pipelines": { @@ -785,10 +801,10 @@ "PixelsOrPercent": { "base": null, "refs": { - "PresetWatermark$MaxWidth": "

The maximum width of the watermark in one of the following formats:

  • number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value of MaxWidth.
  • integer percentage (%): The range of valid values is 0 to 100. Use the value of Target to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation.
  • If you specify the value in pixels, it must be less than or equal to the value of MaxWidth.

", - "PresetWatermark$MaxHeight": "

The maximum height of the watermark in one of the following formats:

  • number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value of MaxHeight.
  • integer percentage (%): The range of valid values is 0 to 100. Use the value of Target to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation.
If you specify the value in pixels, it must be less than or equal to the value of MaxHeight.

", - "PresetWatermark$HorizontalOffset": "

The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign:

  • number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxWidth.
  • integer percentage (%): The range of valid values is 0 to 100.
For example, if you specify Left for HorizontalAlign and 5px for HorizontalOffset, the left side of the watermark appears 5 pixels from the left border of the output video.

HorizontalOffset is only valid when the value of HorizontalAlign is Left or Right. If you specify an offset that causes the watermark to extend beyond the left or right border and Elastic Transcoder has not added black bars, the watermark is cropped. If Elastic Transcoder has added black bars, the watermark extends into the black bars. If the watermark extends beyond the black bars, it is cropped.

Use the value of Target to specify whether you want to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.

", - "PresetWatermark$VerticalOffset": "VerticalOffset

The amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:

  • number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxHeight.
  • integer percentage (%): The range of valid values is 0 to 100.
For example, if you specify Top for VerticalAlign and 5px for VerticalOffset, the top of the watermark appears 5 pixels from the top border of the output video.

VerticalOffset is only valid when the value of VerticalAlign is Top or Bottom.

If you specify an offset that causes the watermark to extend beyond the top or bottom border and Elastic Transcoder has not added black bars, the watermark is cropped. If Elastic Transcoder has added black bars, the watermark extends into the black bars. If the watermark extends beyond the black bars, it is cropped.

Use the value of Target to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.

" + "PresetWatermark$MaxWidth": "

The maximum width of the watermark in one of the following formats:

  • number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value of MaxWidth.

  • integer percentage (%): The range of valid values is 0 to 100. Use the value of Target to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation.

    If you specify the value in pixels, it must be less than or equal to the value of MaxWidth.

", + "PresetWatermark$MaxHeight": "

The maximum height of the watermark in one of the following formats:

  • number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value of MaxHeight.

  • integer percentage (%): The range of valid values is 0 to 100. Use the value of Target to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation.

If you specify the value in pixels, it must be less than or equal to the value of MaxHeight.

", + "PresetWatermark$HorizontalOffset": "

The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign:

  • number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxWidth.

  • integer percentage (%): The range of valid values is 0 to 100.

For example, if you specify Left for HorizontalAlign and 5px for HorizontalOffset, the left side of the watermark appears 5 pixels from the left border of the output video.

HorizontalOffset is only valid when the value of HorizontalAlign is Left or Right. If you specify an offset that causes the watermark to extend beyond the left or right border and Elastic Transcoder has not added black bars, the watermark is cropped. If Elastic Transcoder has added black bars, the watermark extends into the black bars. If the watermark extends beyond the black bars, it is cropped.

Use the value of Target to specify whether you want to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.

", + "PresetWatermark$VerticalOffset": "

VerticalOffset

The amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:

  • number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxHeight.

  • integer percentage (%): The range of valid values is 0 to 100.

For example, if you specify Top for VerticalAlign and 5px for VerticalOffset, the top of the watermark appears 5 pixels from the top border of the output video.

VerticalOffset is only valid when the value of VerticalAlign is Top or Bottom.

If you specify an offset that causes the watermark to extend beyond the top or bottom border and Elastic Transcoder has not added black bars, the watermark is cropped. If Elastic Transcoder has added black bars, the watermark extends into the black bars. If the watermark extends beyond the black bars, it is cropped.

Use the value of Target to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.

" } }, "PlayReadyDrm": { @@ -820,13 +836,13 @@ "Playlists": { "base": null, "refs": { - "Job$Playlists": "

Outputs in Fragmented MP4 or MPEG-TS format only.If you specify a preset in PresetId for which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), Playlists contains information about the master playlists that you want Elastic Transcoder to create.

The maximum number of master playlists in a job is 30.

" + "Job$Playlists": "

Outputs in Fragmented MP4 or MPEG-TS format only.

If you specify a preset in PresetId for which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), Playlists contains information about the master playlists that you want Elastic Transcoder to create.

The maximum number of master playlists in a job is 30.

" } }, "Preset": { "base": "

Presets are templates that contain most of the settings for transcoding media files from one format to another. Elastic Transcoder includes some default presets for common formats, for example, several iPod and iPhone versions. You can also create your own presets for formats that aren't included among the default presets. You specify which preset you want to use when you create a job.

", "refs": { - "CreatePresetResponse$Preset": "

A section of the response body that provides information about the preset that is created.

", + "CreatePresetResponse$Preset": "

A section of the response body that provides information about the preset that is created.

", "Presets$member": null, "ReadPresetResponse$Preset": "

A section of the response body that provides information about the preset.

" } @@ -854,7 +870,7 @@ "base": null, "refs": { "JobWatermark$PresetWatermarkId": "

The ID of the watermark settings that Elastic Transcoder uses to add watermarks to the video during transcoding. The settings are in the preset specified by Preset for the current output. In that preset, the value of Watermarks Id tells Elastic Transcoder which settings to use.

", - "PresetWatermark$Id": "A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long." + "PresetWatermark$Id": "

A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long.

" } }, "PresetWatermarks": { @@ -903,16 +919,16 @@ "base": null, "refs": { "JobInput$Resolution": "

This value must be auto, which causes Elastic Transcoder to automatically detect the resolution of the input file.

", - "VideoParameters$Resolution": "

To better control resolution and aspect ratio of output videos, we recommend that you use the values MaxWidth, MaxHeight, SizingPolicy, PaddingPolicy, and DisplayAspectRatio instead of Resolution and AspectRatio. The two groups of settings are mutually exclusive. Do not use them together.

The width and height of the video in the output file, in pixels. Valid values are auto and width x height:

  • auto: Elastic Transcoder attempts to preserve the width and height of the input file, subject to the following rules.
  • width x height: The width and height of the output video in pixels.

Note the following about specifying the width and height:

  • The width must be an even integer between 128 and 4096, inclusive.
  • The height must be an even integer between 96 and 3072, inclusive.
  • If you specify a resolution that is less than the resolution of the input file, Elastic Transcoder rescales the output file to the lower resolution.
  • If you specify a resolution that is greater than the resolution of the input file, Elastic Transcoder rescales the output to the higher resolution.
  • We recommend that you specify a resolution for which the product of width and height is less than or equal to the applicable value in the following list (List - Max width x height value):
    • 1 - 25344
    • 1b - 25344
    • 1.1 - 101376
    • 1.2 - 101376
    • 1.3 - 101376
    • 2 - 101376
    • 2.1 - 202752
    • 2.2 - 404720
    • 3 - 404720
    • 3.1 - 921600
    • 3.2 - 1310720
    • 4 - 2097152
    • 4.1 - 2097152
" + "VideoParameters$Resolution": "

To better control resolution and aspect ratio of output videos, we recommend that you use the values MaxWidth, MaxHeight, SizingPolicy, PaddingPolicy, and DisplayAspectRatio instead of Resolution and AspectRatio. The two groups of settings are mutually exclusive. Do not use them together.

The width and height of the video in the output file, in pixels. Valid values are auto and width x height:

  • auto: Elastic Transcoder attempts to preserve the width and height of the input file, subject to the following rules.

  • width x height : The width and height of the output video in pixels.

Note the following about specifying the width and height:

  • The width must be an even integer between 128 and 4096, inclusive.

  • The height must be an even integer between 96 and 3072, inclusive.

  • If you specify a resolution that is less than the resolution of the input file, Elastic Transcoder rescales the output file to the lower resolution.

  • If you specify a resolution that is greater than the resolution of the input file, Elastic Transcoder rescales the output to the higher resolution.

  • We recommend that you specify a resolution for which the product of width and height is less than or equal to the applicable value in the following list (List - Max width x height value):

    • 1 - 25344

    • 1b - 25344

    • 1.1 - 101376

    • 1.2 - 101376

    • 1.3 - 101376

    • 2 - 101376

    • 2.1 - 202752

    • 2.2 - 404720

    • 3 - 404720

    • 3.1 - 921600

    • 3.2 - 1310720

    • 4 - 2097152

    • 4.1 - 2097152

" } }, "ResourceInUseException": { - "base": "

The resource you are attempting to change is in use. For example, you are attempting to delete a pipeline that is currently in use.

", + "base": "

The resource you are attempting to change is in use. For example, you are attempting to delete a pipeline that is currently in use.

", "refs": { } }, "ResourceNotFoundException": { - "base": "

The requested resource does not exist or is not available. For example, the pipeline to which you're trying to add a job doesn't exist or is still being created.

", + "base": "

The requested resource does not exist or is not available. For example, the pipeline to which you're trying to add a job doesn't exist or is still being created.

", "refs": { } }, @@ -929,15 +945,15 @@ "base": null, "refs": { "CreateJobOutput$Rotate": "

The number of degrees clockwise by which you want Elastic Transcoder to rotate the output relative to the input. Enter one of the following values: auto, 0, 90, 180, 270. The value auto generally works only if the file that you're transcoding contains rotation metadata.

", - "JobOutput$Rotate": "

The number of degrees clockwise by which you want Elastic Transcoder to rotate the output relative to the input. Enter one of the following values:

auto, 0, 90, 180, 270

The value auto generally works only if the file that you're transcoding contains rotation metadata.

" + "JobOutput$Rotate": "

The number of degrees clockwise by which you want Elastic Transcoder to rotate the output relative to the input. Enter one of the following values:

auto, 0, 90, 180, 270

The value auto generally works only if the file that you're transcoding contains rotation metadata.

" } }, "SizingPolicy": { "base": null, "refs": { - "Artwork$SizingPolicy": "

Specify one of the following values to control scaling of the output album art:

  • Fit: Elastic Transcoder scales the output art so it matches the value that you specified in either MaxWidth or MaxHeight without exceeding the other value.
  • Fill: Elastic Transcoder scales the output art so it matches the value that you specified in either MaxWidth or MaxHeight and matches or exceeds the other value. Elastic Transcoder centers the output art and then crops it in the dimension (if any) that exceeds the maximum value.
  • Stretch: Elastic Transcoder stretches the output art to match the values that you specified for MaxWidth and MaxHeight. If the relative proportions of the input art and the output art are different, the output art will be distorted.
  • Keep: Elastic Transcoder does not scale the output art. If either dimension of the input art exceeds the values that you specified for MaxWidth and MaxHeight, Elastic Transcoder crops the output art.
  • ShrinkToFit: Elastic Transcoder scales the output art down so that its dimensions match the values that you specified for at least one of MaxWidth and MaxHeight without exceeding either value. If you specify this option, Elastic Transcoder does not scale the art up.
  • ShrinkToFill Elastic Transcoder scales the output art down so that its dimensions match the values that you specified for at least one of MaxWidth and MaxHeight without dropping below either value. If you specify this option, Elastic Transcoder does not scale the art up.

", - "Thumbnails$SizingPolicy": "

Specify one of the following values to control scaling of thumbnails:

  • Fit: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnail MaxWidth or MaxHeight settings without exceeding the other value.
  • Fill: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnail MaxWidth or MaxHeight settings and matches or exceeds the other value. Elastic Transcoder centers the image in thumbnails and then crops in the dimension (if any) that exceeds the maximum value.
  • Stretch: Elastic Transcoder stretches thumbnails to match the values that you specified for thumbnail MaxWidth and MaxHeight settings. If the relative proportions of the input video and thumbnails are different, the thumbnails will be distorted.
  • Keep: Elastic Transcoder does not scale thumbnails. If either dimension of the input video exceeds the values that you specified for thumbnail MaxWidth and MaxHeight settings, Elastic Transcoder crops the thumbnails.
  • ShrinkToFit: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one of thumbnail MaxWidth and MaxHeight without exceeding either value. If you specify this option, Elastic Transcoder does not scale thumbnails up.
  • ShrinkToFill: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one of MaxWidth and MaxHeight without dropping below either value. If you specify this option, Elastic Transcoder does not scale thumbnails up.

", - "VideoParameters$SizingPolicy": "

Specify one of the following values to control scaling of the output video:

  • Fit: Elastic Transcoder scales the output video so it matches the value that you specified in either MaxWidth or MaxHeight without exceeding the other value.
  • Fill: Elastic Transcoder scales the output video so it matches the value that you specified in either MaxWidth or MaxHeight and matches or exceeds the other value. Elastic Transcoder centers the output video and then crops it in the dimension (if any) that exceeds the maximum value.
  • Stretch: Elastic Transcoder stretches the output video to match the values that you specified for MaxWidth and MaxHeight. If the relative proportions of the input video and the output video are different, the output video will be distorted.
  • Keep: Elastic Transcoder does not scale the output video. If either dimension of the input video exceeds the values that you specified for MaxWidth and MaxHeight, Elastic Transcoder crops the output video.
  • ShrinkToFit: Elastic Transcoder scales the output video down so that its dimensions match the values that you specified for at least one of MaxWidth and MaxHeight without exceeding either value. If you specify this option, Elastic Transcoder does not scale the video up.
  • ShrinkToFill: Elastic Transcoder scales the output video down so that its dimensions match the values that you specified for at least one of MaxWidth and MaxHeight without dropping below either value. If you specify this option, Elastic Transcoder does not scale the video up.

" + "Artwork$SizingPolicy": "

Specify one of the following values to control scaling of the output album art:

  • Fit: Elastic Transcoder scales the output art so it matches the value that you specified in either MaxWidth or MaxHeight without exceeding the other value.

  • Fill: Elastic Transcoder scales the output art so it matches the value that you specified in either MaxWidth or MaxHeight and matches or exceeds the other value. Elastic Transcoder centers the output art and then crops it in the dimension (if any) that exceeds the maximum value.

  • Stretch: Elastic Transcoder stretches the output art to match the values that you specified for MaxWidth and MaxHeight. If the relative proportions of the input art and the output art are different, the output art will be distorted.

  • Keep: Elastic Transcoder does not scale the output art. If either dimension of the input art exceeds the values that you specified for MaxWidth and MaxHeight, Elastic Transcoder crops the output art.

  • ShrinkToFit: Elastic Transcoder scales the output art down so that its dimensions match the values that you specified for at least one of MaxWidth and MaxHeight without exceeding either value. If you specify this option, Elastic Transcoder does not scale the art up.

  • ShrinkToFill Elastic Transcoder scales the output art down so that its dimensions match the values that you specified for at least one of MaxWidth and MaxHeight without dropping below either value. If you specify this option, Elastic Transcoder does not scale the art up.

", + "Thumbnails$SizingPolicy": "

Specify one of the following values to control scaling of thumbnails:

  • Fit: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnail MaxWidth or MaxHeight settings without exceeding the other value.

  • Fill: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnail MaxWidth or MaxHeight settings and matches or exceeds the other value. Elastic Transcoder centers the image in thumbnails and then crops in the dimension (if any) that exceeds the maximum value.

  • Stretch: Elastic Transcoder stretches thumbnails to match the values that you specified for thumbnail MaxWidth and MaxHeight settings. If the relative proportions of the input video and thumbnails are different, the thumbnails will be distorted.

  • Keep: Elastic Transcoder does not scale thumbnails. If either dimension of the input video exceeds the values that you specified for thumbnail MaxWidth and MaxHeight settings, Elastic Transcoder crops the thumbnails.

  • ShrinkToFit: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one of thumbnail MaxWidth and MaxHeight without exceeding either value. If you specify this option, Elastic Transcoder does not scale thumbnails up.

  • ShrinkToFill: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one of MaxWidth and MaxHeight without dropping below either value. If you specify this option, Elastic Transcoder does not scale thumbnails up.

", + "VideoParameters$SizingPolicy": "

Specify one of the following values to control scaling of the output video:

  • Fit: Elastic Transcoder scales the output video so it matches the value that you specified in either MaxWidth or MaxHeight without exceeding the other value.

  • Fill: Elastic Transcoder scales the output video so it matches the value that you specified in either MaxWidth or MaxHeight and matches or exceeds the other value. Elastic Transcoder centers the output video and then crops it in the dimension (if any) that exceeds the maximum value.

  • Stretch: Elastic Transcoder stretches the output video to match the values that you specified for MaxWidth and MaxHeight. If the relative proportions of the input video and the output video are different, the output video will be distorted.

  • Keep: Elastic Transcoder does not scale the output video. If either dimension of the input video exceeds the values that you specified for MaxWidth and MaxHeight, Elastic Transcoder crops the output video.

  • ShrinkToFit: Elastic Transcoder scales the output video down so that its dimensions match the values that you specified for at least one of MaxWidth and MaxHeight without exceeding either value. If you specify this option, Elastic Transcoder does not scale the video up.

  • ShrinkToFill: Elastic Transcoder scales the output video down so that its dimensions match the values that you specified for at least one of MaxWidth and MaxHeight without dropping below either value. If you specify this option, Elastic Transcoder does not scale the video up.

" } }, "SnsTopic": { @@ -969,13 +985,13 @@ "ExceptionMessages$member": null, "Job$Arn": "

The Amazon Resource Name (ARN) for the job.

", "JobOutput$Id": "

A sequential counter, starting with 1, that identifies an output among the outputs from the current job. In the Output syntax, this value is always 1.

", - "JobOutput$AppliedColorSpaceConversion": "

If Elastic Transcoder used a preset with a ColorSpaceConversionMode to transcode the output file, the AppliedColorSpaceConversion parameter shows the conversion used. If no ColorSpaceConversionMode was defined in the preset, this parameter will not be included in the job response.

", + "JobOutput$AppliedColorSpaceConversion": "

If Elastic Transcoder used a preset with a ColorSpaceConversionMode to transcode the output file, the AppliedColorSpaceConversion parameter shows the conversion used. If no ColorSpaceConversionMode was defined in the preset, this parameter is not be included in the job response.

", "Pipeline$Arn": "

The Amazon Resource Name (ARN) for the pipeline.

", "Preset$Arn": "

The Amazon Resource Name (ARN) for the preset.

", "UserMetadata$key": null, "UserMetadata$value": null, "Warning$Code": "

The code of the cross-regional warning.

", - "Warning$Message": "

The message explaining what resources are in a different region from the pipeline.

Note: AWS KMS keys must be in the same region as the pipeline.

" + "Warning$Message": "

The message explaining what resources are in a different region from the pipeline.

AWS KMS keys must be in the same region as the pipeline.

" } }, "Success": { @@ -987,7 +1003,7 @@ "Target": { "base": null, "refs": { - "PresetWatermark$Target": "

A value that determines how Elastic Transcoder interprets values that you specified for HorizontalOffset, VerticalOffset, MaxWidth, and MaxHeight:

  • Content: HorizontalOffset and VerticalOffset values are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any. In addition, MaxWidth and MaxHeight, if specified as a percentage, are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any.
  • Frame: HorizontalOffset and VerticalOffset values are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any.
  • In addition, MaxWidth and MaxHeight, if specified as a percentage, are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any.

" + "PresetWatermark$Target": "

A value that determines how Elastic Transcoder interprets values that you specified for HorizontalOffset, VerticalOffset, MaxWidth, and MaxHeight:

  • Content: HorizontalOffset and VerticalOffset values are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any. In addition, MaxWidth and MaxHeight, if specified as a percentage, are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any.

  • Frame: HorizontalOffset and VerticalOffset values are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any. In addition, MaxWidth and MaxHeight, if specified as a percentage, are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any.

" } }, "TestRoleRequest": { @@ -1003,14 +1019,14 @@ "ThumbnailPattern": { "base": null, "refs": { - "CreateJobOutput$ThumbnailPattern": "

Whether you want Elastic Transcoder to create thumbnails for your videos and, if so, how you want Elastic Transcoder to name the files.

If you don't want Elastic Transcoder to create thumbnails, specify \"\".

If you do want Elastic Transcoder to create thumbnails, specify the information that you want to include in the file name for each thumbnail. You can specify the following values in any sequence:

  • {count} (Required): If you want to create thumbnails, you must include {count} in the ThumbnailPattern object. Wherever you specify {count}, Elastic Transcoder adds a five-digit sequence number (beginning with 00001) to thumbnail file names. The number indicates where a given thumbnail appears in the sequence of thumbnails for a transcoded file.

    If you specify a literal value and/or {resolution} but you omit {count}, Elastic Transcoder returns a validation error and does not create the job.
  • Literal values (Optional): You can specify literal values anywhere in the ThumbnailPattern object. For example, you can include them as a file name prefix or as a delimiter between {resolution} and {count}.

  • {resolution} (Optional): If you want Elastic Transcoder to include the resolution in the file name, include {resolution} in the ThumbnailPattern object.

When creating thumbnails, Elastic Transcoder automatically saves the files in the format (.jpg or .png) that appears in the preset that you specified in the PresetID value of CreateJobOutput. Elastic Transcoder also appends the applicable file name extension.

", - "JobOutput$ThumbnailPattern": "

Whether you want Elastic Transcoder to create thumbnails for your videos and, if so, how you want Elastic Transcoder to name the files.

If you don't want Elastic Transcoder to create thumbnails, specify \"\".

If you do want Elastic Transcoder to create thumbnails, specify the information that you want to include in the file name for each thumbnail. You can specify the following values in any sequence:

  • {count} (Required): If you want to create thumbnails, you must include {count} in the ThumbnailPattern object. Wherever you specify {count}, Elastic Transcoder adds a five-digit sequence number (beginning with 00001) to thumbnail file names. The number indicates where a given thumbnail appears in the sequence of thumbnails for a transcoded file.

    If you specify a literal value and/or {resolution} but you omit {count}, Elastic Transcoder returns a validation error and does not create the job.
  • Literal values (Optional): You can specify literal values anywhere in the ThumbnailPattern object. For example, you can include them as a file name prefix or as a delimiter between {resolution} and {count}.

  • {resolution} (Optional): If you want Elastic Transcoder to include the resolution in the file name, include {resolution} in the ThumbnailPattern object.

When creating thumbnails, Elastic Transcoder automatically saves the files in the format (.jpg or .png) that appears in the preset that you specified in the PresetID value of CreateJobOutput. Elastic Transcoder also appends the applicable file name extension.

" + "CreateJobOutput$ThumbnailPattern": "

Whether you want Elastic Transcoder to create thumbnails for your videos and, if so, how you want Elastic Transcoder to name the files.

If you don't want Elastic Transcoder to create thumbnails, specify \"\".

If you do want Elastic Transcoder to create thumbnails, specify the information that you want to include in the file name for each thumbnail. You can specify the following values in any sequence:

  • {count} (Required): If you want to create thumbnails, you must include {count} in the ThumbnailPattern object. Wherever you specify {count}, Elastic Transcoder adds a five-digit sequence number (beginning with 00001) to thumbnail file names. The number indicates where a given thumbnail appears in the sequence of thumbnails for a transcoded file.

    If you specify a literal value and/or {resolution} but you omit {count}, Elastic Transcoder returns a validation error and does not create the job.

  • Literal values (Optional): You can specify literal values anywhere in the ThumbnailPattern object. For example, you can include them as a file name prefix or as a delimiter between {resolution} and {count}.

  • {resolution} (Optional): If you want Elastic Transcoder to include the resolution in the file name, include {resolution} in the ThumbnailPattern object.

When creating thumbnails, Elastic Transcoder automatically saves the files in the format (.jpg or .png) that appears in the preset that you specified in the PresetID value of CreateJobOutput. Elastic Transcoder also appends the applicable file name extension.

", + "JobOutput$ThumbnailPattern": "

Whether you want Elastic Transcoder to create thumbnails for your videos and, if so, how you want Elastic Transcoder to name the files.

If you don't want Elastic Transcoder to create thumbnails, specify \"\".

If you do want Elastic Transcoder to create thumbnails, specify the information that you want to include in the file name for each thumbnail. You can specify the following values in any sequence:

  • {count} (Required): If you want to create thumbnails, you must include {count} in the ThumbnailPattern object. Wherever you specify {count}, Elastic Transcoder adds a five-digit sequence number (beginning with 00001) to thumbnail file names. The number indicates where a given thumbnail appears in the sequence of thumbnails for a transcoded file.

    If you specify a literal value and/or {resolution} but you omit {count}, Elastic Transcoder returns a validation error and does not create the job.

  • Literal values (Optional): You can specify literal values anywhere in the ThumbnailPattern object. For example, you can include them as a file name prefix or as a delimiter between {resolution} and {count}.

  • {resolution} (Optional): If you want Elastic Transcoder to include the resolution in the file name, include {resolution} in the ThumbnailPattern object.

When creating thumbnails, Elastic Transcoder automatically saves the files in the format (.jpg or .png) that appears in the preset that you specified in the PresetID value of CreateJobOutput. Elastic Transcoder also appends the applicable file name extension.

" } }, "ThumbnailResolution": { "base": null, "refs": { - "Thumbnails$Resolution": "

To better control resolution and aspect ratio of thumbnails, we recommend that you use the values MaxWidth, MaxHeight, SizingPolicy, and PaddingPolicy instead of Resolution and AspectRatio. The two groups of settings are mutually exclusive. Do not use them together.

The width and height of thumbnail files in pixels. Specify a value in the format width x height where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution object.

" + "Thumbnails$Resolution": "

To better control resolution and aspect ratio of thumbnails, we recommend that you use the values MaxWidth, MaxHeight, SizingPolicy, and PaddingPolicy instead of Resolution and AspectRatio. The two groups of settings are mutually exclusive. Do not use them together.

The width and height of thumbnail files in pixels. Specify a value in the format width x height where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution object.

" } }, "Thumbnails": { @@ -1036,7 +1052,8 @@ "TimeSpan": { "base": "

Settings that determine when a clip begins and how long it lasts.

", "refs": { - "Clip$TimeSpan": "

Settings that determine when a clip begins and how long it lasts.

" + "Clip$TimeSpan": "

Settings that determine when a clip begins and how long it lasts.

", + "JobInput$TimeSpan": "

Settings for clipping an input. Each input can have different clip settings.

" } }, "Timing": { @@ -1061,7 +1078,7 @@ } }, "UpdatePipelineResponse": { - "base": "

When you update a pipeline, Elastic Transcoder returns the values that you specified in the request.

", + "base": "

When you update a pipeline, Elastic Transcoder returns the values that you specified in the request.

", "refs": { } }, @@ -1071,15 +1088,15 @@ } }, "UpdatePipelineStatusResponse": { - "base": "When you update status for a pipeline, Elastic Transcoder returns the values that you specified in the request.", + "base": "

When you update status for a pipeline, Elastic Transcoder returns the values that you specified in the request.

", "refs": { } }, "UserMetadata": { "base": null, "refs": { - "CreateJobRequest$UserMetadata": "

User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in key/value pairs, and you can add up to 10 key/value pairs per job. Elastic Transcoder does not guarantee that key/value pairs will be returned in the same order in which you specify them.

", - "Job$UserMetadata": "

User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in key/value pairs, and you can add up to 10 key/value pairs per job. Elastic Transcoder does not guarantee that key/value pairs will be returned in the same order in which you specify them.

Metadata keys and values must use characters from the following list:

  • 0-9

  • A-Z and a-z

  • Space

  • The following symbols: _.:/=+-%@

" + "CreateJobRequest$UserMetadata": "

User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in key/value pairs, and you can add up to 10 key/value pairs per job. Elastic Transcoder does not guarantee that key/value pairs are returned in the same order in which you specify them.

", + "Job$UserMetadata": "

User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in key/value pairs, and you can add up to 10 key/value pairs per job. Elastic Transcoder does not guarantee that key/value pairs are returned in the same order in which you specify them.

Metadata keys and values must use characters from the following list:

  • 0-9

  • A-Z and a-z

  • Space

  • The following symbols: _.:/=+-%@

" } }, "ValidationException": { @@ -1090,19 +1107,19 @@ "VerticalAlign": { "base": null, "refs": { - "PresetWatermark$VerticalAlign": "

The vertical position of the watermark unless you specify a non-zero value for VerticalOffset:

  • Top: The top edge of the watermark is aligned with the top border of the video.
  • Bottom: The bottom edge of the watermark is aligned with the bottom border of the video.
  • Center: The watermark is centered between the top and bottom borders.

" + "PresetWatermark$VerticalAlign": "

The vertical position of the watermark unless you specify a non-zero value for VerticalOffset:

  • Top: The top edge of the watermark is aligned with the top border of the video.

  • Bottom: The bottom edge of the watermark is aligned with the bottom border of the video.

  • Center: The watermark is centered between the top and bottom borders.

" } }, "VideoBitRate": { "base": null, "refs": { - "VideoParameters$BitRate": "

The bit rate of the video stream in the output file, in kilobits/second. Valid values depend on the values of Level and Profile. If you specify auto, Elastic Transcoder uses the detected bit rate of the input source. If you specify a value other than auto, we recommend that you specify a value less than or equal to the maximum H.264-compliant value listed for your level and profile:

Level - Maximum video bit rate in kilobits/second (baseline and main Profile) : maximum video bit rate in kilobits/second (high Profile)

  • 1 - 64 : 80
  • 1b - 128 : 160
  • 1.1 - 192 : 240
  • 1.2 - 384 : 480
  • 1.3 - 768 : 960
  • 2 - 2000 : 2500
  • 3 - 10000 : 12500
  • 3.1 - 14000 : 17500
  • 3.2 - 20000 : 25000
  • 4 - 20000 : 25000
  • 4.1 - 50000 : 62500
" + "VideoParameters$BitRate": "

The bit rate of the video stream in the output file, in kilobits/second. Valid values depend on the values of Level and Profile. If you specify auto, Elastic Transcoder uses the detected bit rate of the input source. If you specify a value other than auto, we recommend that you specify a value less than or equal to the maximum H.264-compliant value listed for your level and profile:

Level - Maximum video bit rate in kilobits/second (baseline and main Profile) : maximum video bit rate in kilobits/second (high Profile)

  • 1 - 64 : 80

  • 1b - 128 : 160

  • 1.1 - 192 : 240

  • 1.2 - 384 : 480

  • 1.3 - 768 : 960

  • 2 - 2000 : 2500

  • 3 - 10000 : 12500

  • 3.1 - 14000 : 17500

  • 3.2 - 20000 : 25000

  • 4 - 20000 : 25000

  • 4.1 - 50000 : 62500

" } }, "VideoCodec": { "base": null, "refs": { - "VideoParameters$Codec": "

The video codec for the output file. Valid values include gif, H.264, mpeg2, and vp8. You can only specify vp8 when the container type is webm, gif when the container type is gif, and mpeg2 when the container type is mpg.

" + "VideoParameters$Codec": "

The video codec for the output file. Valid values include gif, H.264, mpeg2, vp8, and vp9. You can only specify vp8 and vp9 when the container type is webm, gif when the container type is gif, and mpeg2 when the container type is mpg.

" } }, "VideoParameters": { @@ -1136,7 +1153,7 @@ "WatermarkSizingPolicy": { "base": null, "refs": { - "PresetWatermark$SizingPolicy": "

A value that controls scaling of the watermark:

  • Fit: Elastic Transcoder scales the watermark so it matches the value that you specified in either MaxWidth or MaxHeight without exceeding the other value.
  • Stretch: Elastic Transcoder stretches the watermark to match the values that you specified for MaxWidth and MaxHeight. If the relative proportions of the watermark and the values of MaxWidth and MaxHeight are different, the watermark will be distorted.
  • ShrinkToFit: Elastic Transcoder scales the watermark down so that its dimensions match the values that you specified for at least one of MaxWidth and MaxHeight without exceeding either value. If you specify this option, Elastic Transcoder does not scale the watermark up.

" + "PresetWatermark$SizingPolicy": "

A value that controls scaling of the watermark:

  • Fit: Elastic Transcoder scales the watermark so it matches the value that you specified in either MaxWidth or MaxHeight without exceeding the other value.

  • Stretch: Elastic Transcoder stretches the watermark to match the values that you specified for MaxWidth and MaxHeight. If the relative proportions of the watermark and the values of MaxWidth and MaxHeight are different, the watermark will be distorted.

  • ShrinkToFit: Elastic Transcoder scales the watermark down so that its dimensions match the values that you specified for at least one of MaxWidth and MaxHeight without exceeding either value. If you specify this option, Elastic Transcoder does not scale the watermark up.

" } }, "ZeroTo255String": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/api-2.json index 7d21f193e..1a70d5450 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"email-2010-12-01", "apiVersion":"2010-12-01", "endpointPrefix":"email", "protocol":"query", @@ -28,6 +29,42 @@ {"shape":"LimitExceededException"} ] }, + "CreateConfigurationSet":{ + "name":"CreateConfigurationSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateConfigurationSetRequest"}, + "output":{ + "shape":"CreateConfigurationSetResponse", + "resultWrapper":"CreateConfigurationSetResult" + }, + "errors":[ + {"shape":"ConfigurationSetAlreadyExistsException"}, + {"shape":"InvalidConfigurationSetException"}, + {"shape":"LimitExceededException"} + ] + }, + "CreateConfigurationSetEventDestination":{ + "name":"CreateConfigurationSetEventDestination", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateConfigurationSetEventDestinationRequest"}, + "output":{ + "shape":"CreateConfigurationSetEventDestinationResponse", + "resultWrapper":"CreateConfigurationSetEventDestinationResult" + }, + "errors":[ + {"shape":"ConfigurationSetDoesNotExistException"}, + {"shape":"EventDestinationAlreadyExistsException"}, + {"shape":"InvalidCloudWatchDestinationException"}, + {"shape":"InvalidFirehoseDestinationException"}, + {"shape":"LimitExceededException"} + ] + }, "CreateReceiptFilter":{ "name":"CreateReceiptFilter", "http":{ @@ -81,6 +118,37 @@ {"shape":"LimitExceededException"} ] }, + "DeleteConfigurationSet":{ + "name":"DeleteConfigurationSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteConfigurationSetRequest"}, + "output":{ + "shape":"DeleteConfigurationSetResponse", + "resultWrapper":"DeleteConfigurationSetResult" + }, + "errors":[ + {"shape":"ConfigurationSetDoesNotExistException"} + ] + }, + "DeleteConfigurationSetEventDestination":{ + "name":"DeleteConfigurationSetEventDestination", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteConfigurationSetEventDestinationRequest"}, + "output":{ + "shape":"DeleteConfigurationSetEventDestinationResponse", + "resultWrapper":"DeleteConfigurationSetEventDestinationResult" + }, + "errors":[ + {"shape":"ConfigurationSetDoesNotExistException"}, + {"shape":"EventDestinationDoesNotExistException"} + ] + }, "DeleteIdentity":{ "name":"DeleteIdentity", "http":{ @@ -167,6 +235,21 @@ "resultWrapper":"DescribeActiveReceiptRuleSetResult" } }, + "DescribeConfigurationSet":{ + "name":"DescribeConfigurationSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeConfigurationSetRequest"}, + "output":{ + "shape":"DescribeConfigurationSetResponse", + "resultWrapper":"DescribeConfigurationSetResult" + }, + "errors":[ + {"shape":"ConfigurationSetDoesNotExistException"} + ] + }, "DescribeReceiptRule":{ "name":"DescribeReceiptRule", "http":{ @@ -280,6 +363,18 @@ "resultWrapper":"GetSendStatisticsResult" } }, + "ListConfigurationSets":{ + "name":"ListConfigurationSets", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListConfigurationSetsRequest"}, + "output":{ + "shape":"ListConfigurationSetsResponse", + "resultWrapper":"ListConfigurationSetsResult" + } + }, "ListIdentities":{ "name":"ListIdentities", "http":{ @@ -398,7 +493,8 @@ }, "errors":[ {"shape":"MessageRejected"}, - {"shape":"MailFromDomainNotVerifiedException"} + {"shape":"MailFromDomainNotVerifiedException"}, + {"shape":"ConfigurationSetDoesNotExistException"} ] }, "SendRawEmail":{ @@ -414,7 +510,8 @@ }, "errors":[ {"shape":"MessageRejected"}, - {"shape":"MailFromDomainNotVerifiedException"} + {"shape":"MailFromDomainNotVerifiedException"}, + {"shape":"ConfigurationSetDoesNotExistException"} ] }, "SetActiveReceiptRuleSet":{ @@ -508,6 +605,24 @@ {"shape":"RuleDoesNotExistException"} ] }, + "UpdateConfigurationSetEventDestination":{ + "name":"UpdateConfigurationSetEventDestination", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateConfigurationSetEventDestinationRequest"}, + "output":{ + "shape":"UpdateConfigurationSetEventDestinationResponse", + "resultWrapper":"UpdateConfigurationSetEventDestinationResult" + }, + "errors":[ + {"shape":"ConfigurationSetDoesNotExistException"}, + {"shape":"EventDestinationDoesNotExistException"}, + {"shape":"InvalidCloudWatchDestinationException"}, + {"shape":"InvalidFirehoseDestinationException"} + ] + }, "UpdateReceiptRule":{ "name":"UpdateReceiptRule", "http":{ @@ -691,6 +806,74 @@ "members":{ } }, + "CloudWatchDestination":{ + "type":"structure", + "required":["DimensionConfigurations"], + "members":{ + "DimensionConfigurations":{"shape":"CloudWatchDimensionConfigurations"} + } + }, + "CloudWatchDimensionConfiguration":{ + "type":"structure", + "required":[ + "DimensionName", + "DimensionValueSource", + "DefaultDimensionValue" + ], + "members":{ + "DimensionName":{"shape":"DimensionName"}, + "DimensionValueSource":{"shape":"DimensionValueSource"}, + "DefaultDimensionValue":{"shape":"DefaultDimensionValue"} + } + }, + "CloudWatchDimensionConfigurations":{ + "type":"list", + "member":{"shape":"CloudWatchDimensionConfiguration"} + }, + "ConfigurationSet":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"ConfigurationSetName"} + } + }, + "ConfigurationSetAlreadyExistsException":{ + "type":"structure", + "members":{ + "ConfigurationSetName":{"shape":"ConfigurationSetName"} + }, + "error":{ + "code":"ConfigurationSetAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "ConfigurationSetAttribute":{ + "type":"string", + "enum":["eventDestinations"] + }, + "ConfigurationSetAttributeList":{ + "type":"list", + "member":{"shape":"ConfigurationSetAttribute"} + }, + "ConfigurationSetDoesNotExistException":{ + "type":"structure", + "members":{ + "ConfigurationSetName":{"shape":"ConfigurationSetName"} + }, + "error":{ + "code":"ConfigurationSetDoesNotExist", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "ConfigurationSetName":{"type":"string"}, + "ConfigurationSets":{ + "type":"list", + "member":{"shape":"ConfigurationSet"} + }, "Content":{ "type":"structure", "required":["Data"], @@ -700,6 +883,34 @@ } }, "Counter":{"type":"long"}, + "CreateConfigurationSetEventDestinationRequest":{ + "type":"structure", + "required":[ + "ConfigurationSetName", + "EventDestination" + ], + "members":{ + "ConfigurationSetName":{"shape":"ConfigurationSetName"}, + "EventDestination":{"shape":"EventDestination"} + } + }, + "CreateConfigurationSetEventDestinationResponse":{ + "type":"structure", + "members":{ + } + }, + "CreateConfigurationSetRequest":{ + "type":"structure", + "required":["ConfigurationSet"], + "members":{ + "ConfigurationSet":{"shape":"ConfigurationSet"} + } + }, + "CreateConfigurationSetResponse":{ + "type":"structure", + "members":{ + } + }, "CreateReceiptFilterRequest":{ "type":"structure", "required":["Filter"], @@ -750,6 +961,35 @@ "TemporaryFailure" ] }, + "DefaultDimensionValue":{"type":"string"}, + "DeleteConfigurationSetEventDestinationRequest":{ + "type":"structure", + "required":[ + "ConfigurationSetName", + "EventDestinationName" + ], + "members":{ + "ConfigurationSetName":{"shape":"ConfigurationSetName"}, + "EventDestinationName":{"shape":"EventDestinationName"} + } + }, + "DeleteConfigurationSetEventDestinationResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteConfigurationSetRequest":{ + "type":"structure", + "required":["ConfigurationSetName"], + "members":{ + "ConfigurationSetName":{"shape":"ConfigurationSetName"} + } + }, + "DeleteConfigurationSetResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteIdentityPolicyRequest":{ "type":"structure", "required":[ @@ -837,6 +1077,21 @@ "Rules":{"shape":"ReceiptRulesList"} } }, + "DescribeConfigurationSetRequest":{ + "type":"structure", + "required":["ConfigurationSetName"], + "members":{ + "ConfigurationSetName":{"shape":"ConfigurationSetName"}, + "ConfigurationSetAttributeNames":{"shape":"ConfigurationSetAttributeList"} + } + }, + "DescribeConfigurationSetResponse":{ + "type":"structure", + "members":{ + "ConfigurationSet":{"shape":"ConfigurationSet"}, + "EventDestinations":{"shape":"EventDestinations"} + } + }, "DescribeReceiptRuleRequest":{ "type":"structure", "required":[ @@ -877,6 +1132,14 @@ } }, "DiagnosticCode":{"type":"string"}, + "DimensionName":{"type":"string"}, + "DimensionValueSource":{ + "type":"string", + "enum":[ + "messageTag", + "emailHeader" + ] + }, "DkimAttributes":{ "type":"map", "key":{"shape":"Identity"}, @@ -895,6 +1158,65 @@ }, "DsnStatus":{"type":"string"}, "Enabled":{"type":"boolean"}, + "EventDestination":{ + "type":"structure", + "required":[ + "Name", + "MatchingEventTypes" + ], + "members":{ + "Name":{"shape":"EventDestinationName"}, + "Enabled":{"shape":"Enabled"}, + "MatchingEventTypes":{"shape":"EventTypes"}, + "KinesisFirehoseDestination":{"shape":"KinesisFirehoseDestination"}, + "CloudWatchDestination":{"shape":"CloudWatchDestination"} + } + }, + "EventDestinationAlreadyExistsException":{ + "type":"structure", + "members":{ + "ConfigurationSetName":{"shape":"ConfigurationSetName"}, + "EventDestinationName":{"shape":"EventDestinationName"} + }, + "error":{ + "code":"EventDestinationAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "EventDestinationDoesNotExistException":{ + "type":"structure", + "members":{ + "ConfigurationSetName":{"shape":"ConfigurationSetName"}, + "EventDestinationName":{"shape":"EventDestinationName"} + }, + "error":{ + "code":"EventDestinationDoesNotExist", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "EventDestinationName":{"type":"string"}, + "EventDestinations":{ + "type":"list", + "member":{"shape":"EventDestination"} + }, + "EventType":{ + "type":"string", + "enum":[ + "send", + "reject", + "bounce", + "complaint", + "delivery" + ] + }, + "EventTypes":{ + "type":"list", + "member":{"shape":"EventType"} + }, "Explanation":{"type":"string"}, "ExtensionField":{ "type":"structure", @@ -1066,6 +1388,43 @@ "VerificationToken":{"shape":"VerificationToken"} } }, + "InvalidCloudWatchDestinationException":{ + "type":"structure", + "members":{ + "ConfigurationSetName":{"shape":"ConfigurationSetName"}, + "EventDestinationName":{"shape":"EventDestinationName"} + }, + "error":{ + "code":"InvalidCloudWatchDestination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "InvalidConfigurationSetException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidConfigurationSet", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "InvalidFirehoseDestinationException":{ + "type":"structure", + "members":{ + "ConfigurationSetName":{"shape":"ConfigurationSetName"}, + "EventDestinationName":{"shape":"EventDestinationName"} + }, + "error":{ + "code":"InvalidFirehoseDestination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "InvalidLambdaFunctionException":{ "type":"structure", "members":{ @@ -1120,6 +1479,17 @@ "RequestResponse" ] }, + "KinesisFirehoseDestination":{ + "type":"structure", + "required":[ + "IAMRoleARN", + "DeliveryStreamARN" + ], + "members":{ + "IAMRoleARN":{"shape":"AmazonResourceName"}, + "DeliveryStreamARN":{"shape":"AmazonResourceName"} + } + }, "LambdaAction":{ "type":"structure", "required":["FunctionArn"], @@ -1141,6 +1511,20 @@ }, "exception":true }, + "ListConfigurationSetsRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "MaxItems":{"shape":"MaxItems"} + } + }, + "ListConfigurationSetsResponse":{ + "type":"structure", + "members":{ + "ConfigurationSets":{"shape":"ConfigurationSets"}, + "NextToken":{"shape":"NextToken"} + } + }, "ListIdentitiesRequest":{ "type":"structure", "members":{ @@ -1254,6 +1638,23 @@ }, "exception":true }, + "MessageTag":{ + "type":"structure", + "required":[ + "Name", + "Value" + ], + "members":{ + "Name":{"shape":"MessageTagName"}, + "Value":{"shape":"MessageTagValue"} + } + }, + "MessageTagList":{ + "type":"list", + "member":{"shape":"MessageTag"} + }, + "MessageTagName":{"type":"string"}, + "MessageTagValue":{"type":"string"}, "NextToken":{"type":"string"}, "NotificationAttributes":{ "type":"map", @@ -1537,7 +1938,9 @@ "ReplyToAddresses":{"shape":"AddressList"}, "ReturnPath":{"shape":"Address"}, "SourceArn":{"shape":"AmazonResourceName"}, - "ReturnPathArn":{"shape":"AmazonResourceName"} + "ReturnPathArn":{"shape":"AmazonResourceName"}, + "Tags":{"shape":"MessageTagList"}, + "ConfigurationSetName":{"shape":"ConfigurationSetName"} } }, "SendEmailResponse":{ @@ -1556,7 +1959,9 @@ "RawMessage":{"shape":"RawMessage"}, "FromArn":{"shape":"AmazonResourceName"}, "SourceArn":{"shape":"AmazonResourceName"}, - "ReturnPathArn":{"shape":"AmazonResourceName"} + "ReturnPathArn":{"shape":"AmazonResourceName"}, + "Tags":{"shape":"MessageTagList"}, + "ConfigurationSetName":{"shape":"ConfigurationSetName"} } }, "SendRawEmailResponse":{ @@ -1696,6 +2101,22 @@ "Optional" ] }, + "UpdateConfigurationSetEventDestinationRequest":{ + "type":"structure", + "required":[ + "ConfigurationSetName", + "EventDestination" + ], + "members":{ + "ConfigurationSetName":{"shape":"ConfigurationSetName"}, + "EventDestination":{"shape":"EventDestination"} + } + }, + "UpdateConfigurationSetEventDestinationResponse":{ + "type":"structure", + "members":{ + } + }, "UpdateReceiptRuleRequest":{ "type":"structure", "required":[ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/docs-2.json index 187eda2de..30903441b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/docs-2.json @@ -3,9 +3,13 @@ "service": "Amazon Simple Email Service

This is the API Reference for Amazon Simple Email Service (Amazon SES). This documentation is intended to be used in conjunction with the Amazon SES Developer Guide.

For a list of Amazon SES endpoints to use in service requests, see Regions and Amazon SES in the Amazon SES Developer Guide.

", "operations": { "CloneReceiptRuleSet": "

Creates a receipt rule set by cloning an existing one. All receipt rules and configurations are copied to the new receipt rule set and are completely independent of the source rule set.

For information about setting up rule sets, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", + "CreateConfigurationSet": "

Creates a configuration set.

Configuration sets enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", + "CreateConfigurationSetEventDestination": "

Creates a configuration set event destination.

When you create or update an event destination, you must provide one, and only one, destination. The destination can be either Amazon CloudWatch or Amazon Kinesis Firehose.

An event destination is the AWS service to which Amazon SES publishes the email sending events associated with a configuration set. For information about using configuration sets, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", "CreateReceiptFilter": "

Creates a new IP address filter.

For information about setting up IP address filters, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", "CreateReceiptRule": "

Creates a receipt rule.

For information about setting up receipt rules, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", "CreateReceiptRuleSet": "

Creates an empty receipt rule set.

For information about setting up receipt rule sets, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", + "DeleteConfigurationSet": "

Deletes a configuration set.

Configuration sets enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", + "DeleteConfigurationSetEventDestination": "

Deletes a configuration set event destination.

Configuration set event destinations are associated with configuration sets, which enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", "DeleteIdentity": "

Deletes the specified identity (an email address or a domain) from the list of verified identities.

This action is throttled at one request per second.

", "DeleteIdentityPolicy": "

Deletes the specified sending authorization policy for the given identity (an email address or a domain). This API returns successfully even if a policy with the specified name does not exist.

This API is for the identity owner only. If you have not verified the identity, this API will return an error.

Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", "DeleteReceiptFilter": "

Deletes the specified IP address filter.

For information about managing IP address filters, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", @@ -13,6 +17,7 @@ "DeleteReceiptRuleSet": "

Deletes the specified receipt rule set and all of the receipt rules it contains.

The currently active rule set cannot be deleted.

For information about managing receipt rule sets, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", "DeleteVerifiedEmailAddress": "

Deletes the specified email address from the list of verified addresses.

The DeleteVerifiedEmailAddress action is deprecated as of the May 15, 2012 release of Domain Verification. The DeleteIdentity action is now preferred.

This action is throttled at one request per second.

", "DescribeActiveReceiptRuleSet": "

Returns the metadata and receipt rules for the receipt rule set that is currently active.

For information about setting up receipt rule sets, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", + "DescribeConfigurationSet": "

Returns the details of the specified configuration set.

Configuration sets enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", "DescribeReceiptRule": "

Returns the details of the specified receipt rule.

For information about setting up receipt rules, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", "DescribeReceiptRuleSet": "

Returns the details of the specified receipt rule set.

For information about managing receipt rule sets, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", "GetIdentityDkimAttributes": "

Returns the current status of Easy DKIM signing for an entity. For domain name identities, this action also returns the DKIM tokens that are required for Easy DKIM signing, and whether Amazon SES has successfully verified that these tokens have been published.

This action takes a list of identities as input and returns the following information for each:

  • Whether Easy DKIM signing is enabled or disabled.

  • A set of DKIM tokens that represent the identity. If the identity is an email address, the tokens represent the domain of that address.

  • Whether Amazon SES has successfully verified the DKIM tokens published in the domain's DNS. This information is only returned for domain name identities, not for email addresses.

This action is throttled at one request per second and can only get DKIM attributes for up to 100 identities at a time.

For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

", @@ -22,6 +27,7 @@ "GetIdentityVerificationAttributes": "

Given a list of identities (email addresses and/or domains), returns the verification status and (for domain identities) the verification token for each identity.

This action is throttled at one request per second and can only get verification attributes for up to 100 identities at a time.

", "GetSendQuota": "

Returns the user's current sending limits.

This action is throttled at one request per second.

", "GetSendStatistics": "

Returns the user's sending statistics. The result is a list of data points, representing the last two weeks of sending activity.

Each data point in the list contains statistics for a 15-minute interval.

This action is throttled at one request per second.

", + "ListConfigurationSets": "

Lists the configuration sets associated with your AWS account.

Configuration sets enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide.

This action is throttled at one request per second and can return up to 50 configuration sets at a time.

", "ListIdentities": "

Returns a list containing all of the identities (email addresses and domains) for your AWS account, regardless of verification status.

This action is throttled at one request per second.

", "ListIdentityPolicies": "

Returns a list of sending authorization policies that are attached to the given identity (an email address or a domain). This API returns only a list. If you want the actual policy content, you can use GetIdentityPolicies.

This API is for the identity owner only. If you have not verified the identity, this API will return an error.

Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", "ListReceiptFilters": "

Lists the IP address filters associated with your AWS account.

For information about managing IP address filters, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", @@ -39,6 +45,7 @@ "SetIdentityMailFromDomain": "

Enables or disables the custom MAIL FROM domain setup for a verified identity (an email address or a domain).

To send emails using the specified MAIL FROM domain, you must add an MX record to your MAIL FROM domain's DNS settings. If you want your emails to pass Sender Policy Framework (SPF) checks, you must also add or update an SPF record. For more information, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", "SetIdentityNotificationTopic": "

Given an identity (an email address or a domain), sets the Amazon Simple Notification Service (Amazon SNS) topic to which Amazon SES will publish bounce, complaint, and/or delivery notifications for emails sent with that identity as the Source.

Unless feedback forwarding is enabled, you must specify Amazon SNS topics for bounce and complaint notifications. For more information, see SetIdentityFeedbackForwardingEnabled.

This action is throttled at one request per second.

For more information about feedback notification, see the Amazon SES Developer Guide.

", "SetReceiptRulePosition": "

Sets the position of the specified receipt rule in the receipt rule set.

For information about managing receipt rules, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", + "UpdateConfigurationSetEventDestination": "

Updates the event destination of a configuration set.

When you create or update an event destination, you must provide one, and only one, destination. The destination can be either Amazon CloudWatch or Amazon Kinesis Firehose.

Event destinations are associated with configuration sets, which enable you to publish email sending events to Amazon CloudWatch or Amazon Kinesis Firehose. For information about using configuration sets, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", "UpdateReceiptRule": "

Updates a receipt rule.

For information about managing receipt rules, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", "VerifyDomainDkim": "

Returns a set of DKIM tokens for a domain. DKIM tokens are character strings that represent your domain's identity. Using these tokens, you will need to create DNS CNAME records that point to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually detect that you have updated your DNS records; this detection process may take up to 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign email originating from that domain.

This action is throttled at one request per second.

To enable or disable Easy DKIM signing for a domain, use the SetIdentityDkimEnabled action.

For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

", "VerifyDomainIdentity": "

Verifies a domain.

This action is throttled at one request per second.

", @@ -80,7 +87,7 @@ } }, "AlreadyExistsException": { - "base": "

Indicates that a resource could not be created due to a naming conflict.

", + "base": "

Indicates that a resource could not be created because of a naming conflict.

", "refs": { } }, @@ -91,6 +98,8 @@ "BouncedRecipientInfo$RecipientArn": "

This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to receive email for the recipient of the bounced email. For more information about sending authorization, see the Amazon SES Developer Guide.

", "InvalidLambdaFunctionException$FunctionArn": null, "InvalidSnsTopicException$Topic": null, + "KinesisFirehoseDestination$IAMRoleARN": "

The ARN of the IAM role under which Amazon SES publishes email sending events to the Amazon Kinesis Firehose stream.

", + "KinesisFirehoseDestination$DeliveryStreamARN": "

The ARN of the Amazon Kinesis Firehose stream to which to publish email sending events.

", "LambdaAction$TopicArn": "

The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the Lambda action is taken. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.

", "LambdaAction$FunctionArn": "

The Amazon Resource Name (ARN) of the AWS Lambda function. An example of an AWS Lambda function ARN is arn:aws:lambda:us-west-2:account-id:function:MyFunction. For more information about AWS Lambda, see the AWS Lambda Developer Guide.

", "S3Action$TopicArn": "

The ARN of the Amazon SNS topic to notify when the message is saved to the Amazon S3 bucket. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.

", @@ -195,6 +204,79 @@ "refs": { } }, + "CloudWatchDestination": { + "base": "

Contains information associated with an Amazon CloudWatch event destination to which email sending events are published.

Event destinations, such as Amazon CloudWatch, are associated with configuration sets, which enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide.

", + "refs": { + "EventDestination$CloudWatchDestination": "

An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.

" + } + }, + "CloudWatchDimensionConfiguration": { + "base": "

Contains the dimension configuration to use when you publish email sending events to Amazon CloudWatch.

For information about publishing email sending events to Amazon CloudWatch, see the Amazon SES Developer Guide.

", + "refs": { + "CloudWatchDimensionConfigurations$member": null + } + }, + "CloudWatchDimensionConfigurations": { + "base": null, + "refs": { + "CloudWatchDestination$DimensionConfigurations": "

A list of dimensions upon which to categorize your emails when you publish email sending events to Amazon CloudWatch.

" + } + }, + "ConfigurationSet": { + "base": "

The name of the configuration set.

Configuration sets enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide.

", + "refs": { + "ConfigurationSets$member": null, + "CreateConfigurationSetRequest$ConfigurationSet": "

A data structure that contains the name of the configuration set.

", + "DescribeConfigurationSetResponse$ConfigurationSet": "

The configuration set object associated with the specified configuration set.

" + } + }, + "ConfigurationSetAlreadyExistsException": { + "base": "

Indicates that the configuration set could not be created because of a naming conflict.

", + "refs": { + } + }, + "ConfigurationSetAttribute": { + "base": null, + "refs": { + "ConfigurationSetAttributeList$member": null + } + }, + "ConfigurationSetAttributeList": { + "base": null, + "refs": { + "DescribeConfigurationSetRequest$ConfigurationSetAttributeNames": "

A list of configuration set attributes to return.

" + } + }, + "ConfigurationSetDoesNotExistException": { + "base": "

Indicates that the configuration set does not exist.

", + "refs": { + } + }, + "ConfigurationSetName": { + "base": null, + "refs": { + "ConfigurationSet$Name": "

The name of the configuration set. The name must:

  • Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).

  • Contain less than 64 characters.

", + "ConfigurationSetAlreadyExistsException$ConfigurationSetName": null, + "ConfigurationSetDoesNotExistException$ConfigurationSetName": null, + "CreateConfigurationSetEventDestinationRequest$ConfigurationSetName": "

The name of the configuration set to which to apply the event destination.

", + "DeleteConfigurationSetEventDestinationRequest$ConfigurationSetName": "

The name of the configuration set from which to delete the event destination.

", + "DeleteConfigurationSetRequest$ConfigurationSetName": "

The name of the configuration set to delete.

", + "DescribeConfigurationSetRequest$ConfigurationSetName": "

The name of the configuration set to describe.

", + "EventDestinationAlreadyExistsException$ConfigurationSetName": null, + "EventDestinationDoesNotExistException$ConfigurationSetName": null, + "InvalidCloudWatchDestinationException$ConfigurationSetName": null, + "InvalidFirehoseDestinationException$ConfigurationSetName": null, + "SendEmailRequest$ConfigurationSetName": "

The name of the configuration set to use when you send an email using SendEmail.

", + "SendRawEmailRequest$ConfigurationSetName": "

The name of the configuration set to use when you send an email using SendRawEmail.

", + "UpdateConfigurationSetEventDestinationRequest$ConfigurationSetName": "

The name of the configuration set that you want to update.

" + } + }, + "ConfigurationSets": { + "base": null, + "refs": { + "ListConfigurationSetsResponse$ConfigurationSets": "

A list of configuration sets.

" + } + }, "Content": { "base": "

Represents textual data, plus an optional character set specification.

By default, the text must be 7-bit ASCII, due to the constraints of the SMTP protocol. If the text must contain any other characters, then you must also specify a character set. Examples include UTF-8, ISO-8859-1, and Shift_JIS.

", "refs": { @@ -206,12 +288,32 @@ "Counter": { "base": null, "refs": { - "SendDataPoint$DeliveryAttempts": "

Number of emails that have been enqueued for sending.

", + "SendDataPoint$DeliveryAttempts": "

Number of emails that have been sent.

", "SendDataPoint$Bounces": "

Number of emails that have bounced.

", "SendDataPoint$Complaints": "

Number of unwanted emails that were rejected by recipients.

", "SendDataPoint$Rejects": "

Number of emails rejected by Amazon SES.

" } }, + "CreateConfigurationSetEventDestinationRequest": { + "base": "

Represents a request to create a configuration set event destination. A configuration set event destination, which can be either Amazon CloudWatch or Amazon Kinesis Firehose, describes an AWS service in which Amazon SES publishes the email sending events associated with a configuration set. For information about using configuration sets, see the Amazon SES Developer Guide.

", + "refs": { + } + }, + "CreateConfigurationSetEventDestinationResponse": { + "base": "

An empty element returned on a successful request.

", + "refs": { + } + }, + "CreateConfigurationSetRequest": { + "base": "

Represents a request to create a configuration set. Configuration sets enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide.

", + "refs": { + } + }, + "CreateConfigurationSetResponse": { + "base": "

An empty element returned on a successful request.

", + "refs": { + } + }, "CreateReceiptFilterRequest": { "base": "

Represents a request to create a new IP address filter. You use IP address filters when you receive email with Amazon SES. For more information, see the Amazon SES Developer Guide.

", "refs": { @@ -248,6 +350,32 @@ "IdentityMailFromDomainAttributes$MailFromDomainStatus": "

The state that indicates whether Amazon SES has successfully read the MX record required for custom MAIL FROM domain setup. If the state is Success, Amazon SES uses the specified custom MAIL FROM domain when the verified identity sends an email. All other states indicate that Amazon SES takes the action described by BehaviorOnMXFailure.

" } }, + "DefaultDimensionValue": { + "base": null, + "refs": { + "CloudWatchDimensionConfiguration$DefaultDimensionValue": "

The default value of the dimension that is published to Amazon CloudWatch if you do not provide the value of the dimension when you send an email. The default value must:

  • Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).

  • Contain less than 256 characters.

" + } + }, + "DeleteConfigurationSetEventDestinationRequest": { + "base": "

Represents a request to delete a configuration set event destination. Configuration set event destinations are associated with configuration sets, which enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide.

", + "refs": { + } + }, + "DeleteConfigurationSetEventDestinationResponse": { + "base": "

An empty element returned on a successful request.

", + "refs": { + } + }, + "DeleteConfigurationSetRequest": { + "base": "

Represents a request to delete a configuration set. Configuration sets enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide.

", + "refs": { + } + }, + "DeleteConfigurationSetResponse": { + "base": "

An empty element returned on a successful request.

", + "refs": { + } + }, "DeleteIdentityPolicyRequest": { "base": "

Represents a request to delete a sending authorization policy for an identity. Sending authorization is an Amazon SES feature that enables you to authorize other senders to use your identities. For information, see the Amazon SES Developer Guide.

", "refs": { @@ -313,6 +441,16 @@ "refs": { } }, + "DescribeConfigurationSetRequest": { + "base": "

Represents a request to return the details of a configuration set. Configuration sets enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide.

", + "refs": { + } + }, + "DescribeConfigurationSetResponse": { + "base": "

Represents the details of a configuration set. Configuration sets enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide.

", + "refs": { + } + }, "DescribeReceiptRuleRequest": { "base": "

Represents a request to return the details of a receipt rule. You use receipt rules to receive email with Amazon SES. For more information, see the Amazon SES Developer Guide.

", "refs": { @@ -345,6 +483,18 @@ "RecipientDsnFields$DiagnosticCode": "

An extended explanation of what went wrong; this is usually an SMTP response. See RFC 3463 for the correct formatting of this parameter.

" } }, + "DimensionName": { + "base": null, + "refs": { + "CloudWatchDimensionConfiguration$DimensionName": "

The name of an Amazon CloudWatch dimension associated with an email sending metric. The name must:

  • Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).

  • Contain less than 256 characters.

" + } + }, + "DimensionValueSource": { + "base": null, + "refs": { + "CloudWatchDimensionConfiguration$DimensionValueSource": "

The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. If you want Amazon SES to use the message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the SendEmail/SendRawEmail API, choose messageTag. If you want Amazon SES to use your own email headers, choose emailHeader.

" + } + }, "DkimAttributes": { "base": null, "refs": { @@ -373,7 +523,8 @@ "Enabled": { "base": null, "refs": { - "IdentityDkimAttributes$DkimEnabled": "

True if DKIM signing is enabled for email sent from the identity; false otherwise.

", + "EventDestination$Enabled": "

Sets whether Amazon SES publishes events to this destination when you send an email with the associated configuration set. Set to true to enable publishing to this destination; set to false to prevent publishing to this destination. The default value is false.

", + "IdentityDkimAttributes$DkimEnabled": "

True if DKIM signing is enabled for email sent from the identity; false otherwise. The default value is true.

", "IdentityNotificationAttributes$ForwardingEnabled": "

Describes whether Amazon SES will forward bounce and complaint notifications as email. true indicates that Amazon SES will forward bounce and complaint notifications as email, while false indicates that bounce and complaint notifications will be published only to the specified bounce and complaint Amazon SNS topics.

", "IdentityNotificationAttributes$HeadersInBounceNotificationsEnabled": "

Describes whether Amazon SES includes the original email headers in Amazon SNS notifications of type Bounce. A value of true specifies that Amazon SES will include headers in bounce notifications, and a value of false specifies that Amazon SES will not include headers in bounce notifications.

", "IdentityNotificationAttributes$HeadersInComplaintNotificationsEnabled": "

Describes whether Amazon SES includes the original email headers in Amazon SNS notifications of type Complaint. A value of true specifies that Amazon SES will include headers in complaint notifications, and a value of false specifies that Amazon SES will not include headers in complaint notifications.

", @@ -385,6 +536,53 @@ "SetIdentityHeadersInNotificationsEnabledRequest$Enabled": "

Sets whether Amazon SES includes the original email headers in Amazon SNS notifications of the specified notification type. A value of true specifies that Amazon SES will include headers in notifications, and a value of false specifies that Amazon SES will not include headers in notifications.

This value can only be set when NotificationType is already set to use a particular Amazon SNS topic.

" } }, + "EventDestination": { + "base": "

Contains information about the event destination to which the specified email sending events are published.

When you create or update an event destination, you must provide one, and only one, destination. The destination can be either Amazon CloudWatch or Amazon Kinesis Firehose.

Event destinations are associated with configuration sets, which enable you to publish email sending events to Amazon CloudWatch or Amazon Kinesis Firehose. For information about using configuration sets, see the Amazon SES Developer Guide.

", + "refs": { + "CreateConfigurationSetEventDestinationRequest$EventDestination": "

An object that describes the AWS service to which Amazon SES will publish the email sending events associated with the specified configuration set.

", + "EventDestinations$member": null, + "UpdateConfigurationSetEventDestinationRequest$EventDestination": "

The event destination object that you want to apply to the specified configuration set.

" + } + }, + "EventDestinationAlreadyExistsException": { + "base": "

Indicates that the event destination could not be created because of a naming conflict.

", + "refs": { + } + }, + "EventDestinationDoesNotExistException": { + "base": "

Indicates that the event destination does not exist.

", + "refs": { + } + }, + "EventDestinationName": { + "base": null, + "refs": { + "DeleteConfigurationSetEventDestinationRequest$EventDestinationName": "

The name of the event destination to delete.

", + "EventDestination$Name": "

The name of the event destination. The name must:

  • Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).

  • Contain less than 64 characters.

", + "EventDestinationAlreadyExistsException$EventDestinationName": null, + "EventDestinationDoesNotExistException$EventDestinationName": null, + "InvalidCloudWatchDestinationException$EventDestinationName": null, + "InvalidFirehoseDestinationException$EventDestinationName": null + } + }, + "EventDestinations": { + "base": null, + "refs": { + "DescribeConfigurationSetResponse$EventDestinations": "

A list of event destinations associated with the configuration set.

" + } + }, + "EventType": { + "base": null, + "refs": { + "EventTypes$member": null + } + }, + "EventTypes": { + "base": null, + "refs": { + "EventDestination$MatchingEventTypes": "

The type of email sending events to publish to the event destination.

" + } + }, "Explanation": { "base": null, "refs": { @@ -548,6 +746,21 @@ "VerificationAttributes$value": null } }, + "InvalidCloudWatchDestinationException": { + "base": "

Indicates that the Amazon CloudWatch destination is invalid. See the error message for details.

", + "refs": { + } + }, + "InvalidConfigurationSetException": { + "base": "

Indicates that the configuration set is invalid. See the error message for details.

", + "refs": { + } + }, + "InvalidFirehoseDestinationException": { + "base": "

Indicates that the Amazon Kinesis Firehose destination is invalid. See the error message for details.

", + "refs": { + } + }, "InvalidLambdaFunctionException": { "base": "

Indicates that the provided AWS Lambda function is invalid, or that Amazon SES could not execute the provided function, possibly due to permissions issues. For information about giving permissions, see the Amazon SES Developer Guide.

", "refs": { @@ -574,6 +787,12 @@ "LambdaAction$InvocationType": "

The invocation type of the AWS Lambda function. An invocation type of RequestResponse means that the execution of the function will immediately result in a response, and a value of Event means that the function will be invoked asynchronously. The default value is Event. For information about AWS Lambda invocation types, see the AWS Lambda Developer Guide.

There is a 30-second timeout on RequestResponse invocations. You should use Event invocation in most cases. Use RequestResponse only when you want to make a mail flow decision, such as whether to stop the receipt rule or the receipt rule set.

" } }, + "KinesisFirehoseDestination": { + "base": "

Contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.

Event destinations, such as Amazon Kinesis Firehose, are associated with configuration sets, which enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide.

", + "refs": { + "EventDestination$KinesisFirehoseDestination": "

An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.

" + } + }, "LambdaAction": { "base": "

When included in a receipt rule, this action calls an AWS Lambda function and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).

To enable Amazon SES to call your AWS Lambda function or to publish to an Amazon SNS topic of another account, Amazon SES must have permission to access those resources. For information about giving permissions, see the Amazon SES Developer Guide.

For information about using AWS Lambda actions in receipt rules, see the Amazon SES Developer Guide.

", "refs": { @@ -587,7 +806,17 @@ } }, "LimitExceededException": { - "base": "

Indicates that a resource could not be created due to service limits. For a list of Amazon SES limits, see the Amazon SES Developer Guide.

", + "base": "

Indicates that a resource could not be created because of service limits. For a list of Amazon SES limits, see the Amazon SES Developer Guide.

", + "refs": { + } + }, + "ListConfigurationSetsRequest": { + "base": "

Represents a request to list the configuration sets associated with your AWS account. Configuration sets enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide.

", + "refs": { + } + }, + "ListConfigurationSetsResponse": { + "base": "

A list of configuration sets associated with your AWS account. Configuration sets enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide.

", "refs": { } }, @@ -612,7 +841,7 @@ } }, "ListReceiptFiltersRequest": { - "base": "

: Represents a request to list the IP address filters that exist under your AWS account. You use IP address filters when you receive email with Amazon SES. For more information, see the Amazon SES Developer Guide.

", + "base": "

Represents a request to list the IP address filters that exist under your AWS account. You use IP address filters when you receive email with Amazon SES. For more information, see the Amazon SES Developer Guide.

", "refs": { } }, @@ -663,6 +892,7 @@ "MaxItems": { "base": null, "refs": { + "ListConfigurationSetsRequest$MaxItems": "

The number of configuration sets to return.

", "ListIdentitiesRequest$MaxItems": "

The maximum number of identities per page. Possible values are 1-1000 inclusive.

" } }, @@ -704,9 +934,36 @@ "refs": { } }, + "MessageTag": { + "base": "

Contains the name and value of a tag that you can provide to SendEmail or SendRawEmail to apply to an email.

Message tags, which you use with configuration sets, enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide.

", + "refs": { + "MessageTagList$member": null + } + }, + "MessageTagList": { + "base": null, + "refs": { + "SendEmailRequest$Tags": "

A list of tags, in the form of name/value pairs, to apply to an email that you send using SendEmail. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.

", + "SendRawEmailRequest$Tags": "

A list of tags, in the form of name/value pairs, to apply to an email that you send using SendRawEmail. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.

" + } + }, + "MessageTagName": { + "base": null, + "refs": { + "MessageTag$Name": "

The name of the tag. The name must:

  • Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).

  • Contain less than 256 characters.

" + } + }, + "MessageTagValue": { + "base": null, + "refs": { + "MessageTag$Value": "

The value of the tag. The value must:

  • Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).

  • Contain less than 256 characters.

" + } + }, "NextToken": { "base": null, "refs": { + "ListConfigurationSetsRequest$NextToken": "

A token returned from a previous call to ListConfigurationSets to indicate the position of the configuration set in the configuration set list.

", + "ListConfigurationSetsResponse$NextToken": "

A token indicating that there are additional configuration sets available to be listed. Pass this token to successive calls of ListConfigurationSets.

", "ListIdentitiesRequest$NextToken": "

The token to use for pagination.

", "ListIdentitiesResponse$NextToken": "

The token used for pagination.

", "ListReceiptRuleSetsRequest$NextToken": "

A token returned from a previous call to ListReceiptRuleSets to indicate the position in the receipt rule set list.

", @@ -1129,6 +1386,16 @@ "ReceiptRule$TlsPolicy": "

Specifies whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS). If this parameter is set to Require, Amazon SES will bounce emails that are not received over TLS. The default is Optional.

" } }, + "UpdateConfigurationSetEventDestinationRequest": { + "base": "

Represents a request to update the event destination of a configuration set. Configuration sets enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide.

", + "refs": { + } + }, + "UpdateConfigurationSetEventDestinationResponse": { + "base": "

An empty element returned on a successful request.

", + "refs": { + } + }, "UpdateReceiptRuleRequest": { "base": "

Represents a request to update a receipt rule. You use receipt rules to receive email with Amazon SES. For more information, see the Amazon SES Developer Guide.

", "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/api-2.json index e1446b85e..ffc6e0086 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/api-2.json @@ -5,7 +5,8 @@ "endpointPrefix":"es", "protocol":"rest-json", "serviceFullName":"Amazon Elasticsearch Service", - "signatureVersion":"v4" + "signatureVersion":"v4", + "uid":"es-2015-01-01" }, "operations":{ "AddTags":{ @@ -99,6 +100,23 @@ {"shape":"ValidationException"} ] }, + "DescribeElasticsearchInstanceTypeLimits":{ + "name":"DescribeElasticsearchInstanceTypeLimits", + "http":{ + "method":"GET", + "requestUri":"/2015-01-01/es/instanceTypeLimits/{ElasticsearchVersion}/{InstanceType}" + }, + "input":{"shape":"DescribeElasticsearchInstanceTypeLimitsRequest"}, + "output":{"shape":"DescribeElasticsearchInstanceTypeLimitsResponse"}, + "errors":[ + {"shape":"BaseException"}, + {"shape":"InternalException"}, + {"shape":"InvalidTypeException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, "ListDomainNames":{ "name":"ListDomainNames", "http":{ @@ -111,6 +129,36 @@ {"shape":"ValidationException"} ] }, + "ListElasticsearchInstanceTypes":{ + "name":"ListElasticsearchInstanceTypes", + "http":{ + "method":"GET", + "requestUri":"/2015-01-01/es/instanceTypes/{ElasticsearchVersion}" + }, + "input":{"shape":"ListElasticsearchInstanceTypesRequest"}, + "output":{"shape":"ListElasticsearchInstanceTypesResponse"}, + "errors":[ + {"shape":"BaseException"}, + {"shape":"InternalException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "ListElasticsearchVersions":{ + "name":"ListElasticsearchVersions", + "http":{ + "method":"GET", + "requestUri":"/2015-01-01/es/versions" + }, + "input":{"shape":"ListElasticsearchVersionsRequest"}, + "output":{"shape":"ListElasticsearchVersionsResponse"}, + "errors":[ + {"shape":"BaseException"}, + {"shape":"InternalException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, "ListTags":{ "name":"ListTags", "http":{ @@ -181,6 +229,17 @@ "TagList":{"shape":"TagList"} } }, + "AdditionalLimit":{ + "type":"structure", + "members":{ + "LimitName":{"shape":"LimitName"}, + "LimitValues":{"shape":"LimitValueList"} + } + }, + "AdditionalLimitList":{ + "type":"list", + "member":{"shape":"AdditionalLimit"} + }, "AdvancedOptions":{ "type":"map", "key":{"shape":"String"}, @@ -291,6 +350,36 @@ "DomainStatusList":{"shape":"ElasticsearchDomainStatusList"} } }, + "DescribeElasticsearchInstanceTypeLimitsRequest":{ + "type":"structure", + "required":[ + "InstanceType", + "ElasticsearchVersion" + ], + "members":{ + "DomainName":{ + "shape":"DomainName", + "location":"querystring", + "locationName":"domainName" + }, + "InstanceType":{ + "shape":"ESPartitionInstanceType", + "location":"uri", + "locationName":"InstanceType" + }, + "ElasticsearchVersion":{ + "shape":"ElasticsearchVersionString", + "location":"uri", + "locationName":"ElasticsearchVersion" + } + } + }, + "DescribeElasticsearchInstanceTypeLimitsResponse":{ + "type":"structure", + "members":{ + "LimitsByRole":{"shape":"LimitsByRole"} + } + }, "DisabledOperationException":{ "type":"structure", "members":{ @@ -364,7 +453,22 @@ "r3.4xlarge.elasticsearch", "r3.8xlarge.elasticsearch", "i2.xlarge.elasticsearch", - "i2.2xlarge.elasticsearch" + "i2.2xlarge.elasticsearch", + "d2.xlarge.elasticsearch", + "d2.2xlarge.elasticsearch", + "d2.4xlarge.elasticsearch", + "d2.8xlarge.elasticsearch", + "c4.large.elasticsearch", + "c4.xlarge.elasticsearch", + "c4.2xlarge.elasticsearch", + "c4.4xlarge.elasticsearch", + "c4.8xlarge.elasticsearch", + "r4.large.elasticsearch", + "r4.xlarge.elasticsearch", + "r4.2xlarge.elasticsearch", + "r4.4xlarge.elasticsearch", + "r4.8xlarge.elasticsearch", + "r4.16xlarge.elasticsearch" ] }, "ElasticsearchClusterConfig":{ @@ -428,6 +532,14 @@ "type":"list", "member":{"shape":"ElasticsearchDomainStatus"} }, + "ElasticsearchInstanceTypeList":{ + "type":"list", + "member":{"shape":"ESPartitionInstanceType"} + }, + "ElasticsearchVersionList":{ + "type":"list", + "member":{"shape":"ElasticsearchVersionString"} + }, "ElasticsearchVersionStatus":{ "type":"structure", "required":[ @@ -441,6 +553,20 @@ }, "ElasticsearchVersionString":{"type":"string"}, "ErrorMessage":{"type":"string"}, + "InstanceCountLimits":{ + "type":"structure", + "members":{ + "MinimumInstanceCount":{"shape":"MinimumInstanceCount"}, + "MaximumInstanceCount":{"shape":"MaximumInstanceCount"} + } + }, + "InstanceLimits":{ + "type":"structure", + "members":{ + "InstanceCountLimits":{"shape":"InstanceCountLimits"} + } + }, + "InstanceRole":{"type":"string"}, "IntegerClass":{"type":"integer"}, "InternalException":{ "type":"structure", @@ -463,12 +589,86 @@ "error":{"httpStatusCode":409}, "exception":true }, + "LimitName":{"type":"string"}, + "LimitValue":{"type":"string"}, + "LimitValueList":{ + "type":"list", + "member":{"shape":"LimitValue"} + }, + "Limits":{ + "type":"structure", + "members":{ + "StorageTypes":{"shape":"StorageTypeList"}, + "InstanceLimits":{"shape":"InstanceLimits"}, + "AdditionalLimits":{"shape":"AdditionalLimitList"} + } + }, + "LimitsByRole":{ + "type":"map", + "key":{"shape":"InstanceRole"}, + "value":{"shape":"Limits"} + }, "ListDomainNamesResponse":{ "type":"structure", "members":{ "DomainNames":{"shape":"DomainInfoList"} } }, + "ListElasticsearchInstanceTypesRequest":{ + "type":"structure", + "required":["ElasticsearchVersion"], + "members":{ + "ElasticsearchVersion":{ + "shape":"ElasticsearchVersionString", + "location":"uri", + "locationName":"ElasticsearchVersion" + }, + "DomainName":{ + "shape":"DomainName", + "location":"querystring", + "locationName":"domainName" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListElasticsearchInstanceTypesResponse":{ + "type":"structure", + "members":{ + "ElasticsearchInstanceTypes":{"shape":"ElasticsearchInstanceTypeList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListElasticsearchVersionsRequest":{ + "type":"structure", + "members":{ + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListElasticsearchVersionsResponse":{ + "type":"structure", + "members":{ + "ElasticsearchVersions":{"shape":"ElasticsearchVersionList"}, + "NextToken":{"shape":"NextToken"} + } + }, "ListTagsRequest":{ "type":"structure", "required":["ARN"], @@ -486,6 +686,13 @@ "TagList":{"shape":"TagList"} } }, + "MaxResults":{ + "type":"integer", + "max":100 + }, + "MaximumInstanceCount":{"type":"integer"}, + "MinimumInstanceCount":{"type":"integer"}, + "NextToken":{"type":"string"}, "OptionState":{ "type":"string", "enum":[ @@ -553,6 +760,31 @@ "Status":{"shape":"OptionStatus"} } }, + "StorageSubTypeName":{"type":"string"}, + "StorageType":{ + "type":"structure", + "members":{ + "StorageTypeName":{"shape":"StorageTypeName"}, + "StorageSubTypeName":{"shape":"StorageSubTypeName"}, + "StorageTypeLimits":{"shape":"StorageTypeLimitList"} + } + }, + "StorageTypeLimit":{ + "type":"structure", + "members":{ + "LimitName":{"shape":"LimitName"}, + "LimitValues":{"shape":"LimitValueList"} + } + }, + "StorageTypeLimitList":{ + "type":"list", + "member":{"shape":"StorageTypeLimit"} + }, + "StorageTypeList":{ + "type":"list", + "member":{"shape":"StorageType"} + }, + "StorageTypeName":{"type":"string"}, "String":{"type":"string"}, "StringList":{ "type":"list", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/docs-2.json index 52d3b1b69..0d460bbd1 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/docs-2.json @@ -8,7 +8,10 @@ "DescribeElasticsearchDomain": "

Returns domain configuration information about the specified Elasticsearch domain, including the domain ID, domain endpoint, and domain ARN.

", "DescribeElasticsearchDomainConfig": "

Provides cluster configuration information about the specified Elasticsearch domain, such as the state, creation date, update version, and update date for cluster options.

", "DescribeElasticsearchDomains": "

Returns domain configuration information about the specified Elasticsearch domains, including the domain ID, domain endpoint, and domain ARN.

", + "DescribeElasticsearchInstanceTypeLimits": "

Describe Elasticsearch Limits for a given InstanceType and ElasticsearchVersion. When modifying existing Domain, specify the DomainName to know what Limits are supported for modifying.

", "ListDomainNames": "

Returns the name of all Elasticsearch domains owned by the current user's account.

", + "ListElasticsearchInstanceTypes": "

List all Elasticsearch instance types that are supported for given ElasticsearchVersion

", + "ListElasticsearchVersions": "

List all supported Elasticsearch versions

", "ListTags": "

Returns all tags for the given Elasticsearch domain.

", "RemoveTags": "

Removes the specified set of tags from the specified Elasticsearch domain.

", "UpdateElasticsearchDomainConfig": "

Modifies the cluster configuration of the specified Elasticsearch domain, setting as setting the instance type and the number of instances.

" @@ -34,6 +37,18 @@ "refs": { } }, + "AdditionalLimit": { + "base": "

List of limits that are specific to a given InstanceType and for each of it's InstanceRole .

", + "refs": { + "AdditionalLimitList$member": null + } + }, + "AdditionalLimitList": { + "base": null, + "refs": { + "Limits$AdditionalLimits": "

List of additional limits that are specific to a given InstanceType and for each of it's InstanceRole .

" + } + }, "AdvancedOptions": { "base": "

Exposes select native Elasticsearch configuration values from elasticsearch.yml. Currently, the following advanced options are available:

  • Option to allow references to indices in an HTTP request body. Must be false when configuring access to individual sub-resources. By default, the value is true. See Configuration Advanced Options for more information.
  • Option to specify the percentage of heap space that is allocated to field data. By default, this setting is unbounded.

For more information, see Configuring Advanced Options.

", "refs": { @@ -116,6 +131,16 @@ "refs": { } }, + "DescribeElasticsearchInstanceTypeLimitsRequest": { + "base": "

Container for the parameters to DescribeElasticsearchInstanceTypeLimits operation.

", + "refs": { + } + }, + "DescribeElasticsearchInstanceTypeLimitsResponse": { + "base": "

Container for the parameters received from DescribeElasticsearchInstanceTypeLimits operation.

", + "refs": { + } + }, "DisabledOperationException": { "base": "

An error occured because the client wanted to access a not supported operation. Gives http status code of 409.

", "refs": { @@ -146,9 +171,11 @@ "DeleteElasticsearchDomainRequest$DomainName": "

The name of the Elasticsearch domain that you want to permanently delete.

", "DescribeElasticsearchDomainConfigRequest$DomainName": "

The Elasticsearch domain that you want to get information about.

", "DescribeElasticsearchDomainRequest$DomainName": "

The name of the Elasticsearch domain for which you want information.

", + "DescribeElasticsearchInstanceTypeLimitsRequest$DomainName": "

DomainName represents the name of the Domain that we are trying to modify. This should be present only if we are querying for Elasticsearch Limits for existing domain.

", "DomainInfo$DomainName": "

Specifies the DomainName.

", "DomainNameList$member": null, "ElasticsearchDomainStatus$DomainName": "

The name of an Elasticsearch domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).

", + "ListElasticsearchInstanceTypesRequest$DomainName": "

DomainName represents the name of the Domain that we are trying to modify. This should be present only if we are querying for list of available Elasticsearch instance types when modifying existing domain.

", "UpdateElasticsearchDomainConfigRequest$DomainName": "

The name of the Elasticsearch domain that you are updating.

" } }, @@ -176,8 +203,10 @@ "ESPartitionInstanceType": { "base": null, "refs": { + "DescribeElasticsearchInstanceTypeLimitsRequest$InstanceType": "

The instance type for an Elasticsearch cluster for which Elasticsearch Limits are needed.

", "ElasticsearchClusterConfig$InstanceType": "

The instance type for an Elasticsearch cluster.

", - "ElasticsearchClusterConfig$DedicatedMasterType": "

The instance type for a dedicated master node.

" + "ElasticsearchClusterConfig$DedicatedMasterType": "

The instance type for a dedicated master node.

", + "ElasticsearchInstanceTypeList$member": null } }, "ElasticsearchClusterConfig": { @@ -217,6 +246,18 @@ "DescribeElasticsearchDomainsResponse$DomainStatusList": "

The status of the domains requested in the DescribeElasticsearchDomains request.

" } }, + "ElasticsearchInstanceTypeList": { + "base": "

List of instance types supported by Amazon Elasticsearch service.

", + "refs": { + "ListElasticsearchInstanceTypesResponse$ElasticsearchInstanceTypes": "

List of instance types supported by Amazon Elasticsearch service for given ElasticsearchVersion

" + } + }, + "ElasticsearchVersionList": { + "base": "

List of supported elastic search versions.

", + "refs": { + "ListElasticsearchVersionsResponse$ElasticsearchVersions": null + } + }, "ElasticsearchVersionStatus": { "base": "

Status of the Elasticsearch version options for the specified Elasticsearch domain.

", "refs": { @@ -227,8 +268,11 @@ "base": null, "refs": { "CreateElasticsearchDomainRequest$ElasticsearchVersion": "

String of format X.Y to specify version for the Elasticsearch domain eg. \"1.5\" or \"2.3\". For more information, see Creating Elasticsearch Domains in the Amazon Elasticsearch Service Developer Guide.

", + "DescribeElasticsearchInstanceTypeLimitsRequest$ElasticsearchVersion": "

Version of Elasticsearch for which Limits are needed.

", "ElasticsearchDomainStatus$ElasticsearchVersion": null, - "ElasticsearchVersionStatus$Options": "

Specifies the Elasticsearch version for the specified Elasticsearch domain.

" + "ElasticsearchVersionList$member": null, + "ElasticsearchVersionStatus$Options": "

Specifies the Elasticsearch version for the specified Elasticsearch domain.

", + "ListElasticsearchInstanceTypesRequest$ElasticsearchVersion": "

Version of Elasticsearch for which list of supported elasticsearch instance types are needed.

" } }, "ErrorMessage": { @@ -237,6 +281,24 @@ "BaseException$message": "

A description of the error.

" } }, + "InstanceCountLimits": { + "base": "

InstanceCountLimits represents the limits on number of instances that be created in Amazon Elasticsearch for given InstanceType.

", + "refs": { + "InstanceLimits$InstanceCountLimits": null + } + }, + "InstanceLimits": { + "base": "

InstanceLimits represents the list of instance related attributes that are available for given InstanceType.

", + "refs": { + "Limits$InstanceLimits": null + } + }, + "InstanceRole": { + "base": null, + "refs": { + "LimitsByRole$key": null + } + }, "IntegerClass": { "base": null, "refs": { @@ -262,11 +324,63 @@ "refs": { } }, + "LimitName": { + "base": null, + "refs": { + "AdditionalLimit$LimitName": "

Name of Additional Limit is specific to a given InstanceType and for each of it's InstanceRole etc.
Attributes and their details:

  • MaximumNumberOfDataNodesSupported
  • This attribute will be present in Master node only to specify how much data nodes upto which given ESPartitionInstanceType can support as master node.
  • MaximumNumberOfDataNodesWithoutMasterNode
  • This attribute will be present in Data node only to specify how much data nodes of given ESPartitionInstanceType upto which you don't need any master nodes to govern them.

", + "StorageTypeLimit$LimitName": "

Name of storage limits that are applicable for given storage type. If StorageType is ebs, following storage options are applicable

  1. MinimumVolumeSize
  2. Minimum amount of volume size that is applicable for given storage type.It can be empty if it is not applicable.
  3. MaximumVolumeSize
  4. Maximum amount of volume size that is applicable for given storage type.It can be empty if it is not applicable.
  5. MaximumIops
  6. Maximum amount of Iops that is applicable for given storage type.It can be empty if it is not applicable.
  7. MinimumIops
  8. Minimum amount of Iops that is applicable for given storage type.It can be empty if it is not applicable.

" + } + }, + "LimitValue": { + "base": null, + "refs": { + "LimitValueList$member": null + } + }, + "LimitValueList": { + "base": null, + "refs": { + "AdditionalLimit$LimitValues": "

Value for given AdditionalLimit$LimitName .

", + "StorageTypeLimit$LimitValues": "

Values for the StorageTypeLimit$LimitName .

" + } + }, + "Limits": { + "base": "

Limits for given InstanceType and for each of it's role.
Limits contains following StorageTypes, InstanceLimits and AdditionalLimits

", + "refs": { + "LimitsByRole$value": null + } + }, + "LimitsByRole": { + "base": "

Map of Role of the Instance and Limits that are applicable. Role performed by given Instance in Elasticsearch can be one of the following:

  • Data: If the given InstanceType is used as Data node
  • Master: If the given InstanceType is used as Master node

", + "refs": { + "DescribeElasticsearchInstanceTypeLimitsResponse$LimitsByRole": null + } + }, "ListDomainNamesResponse": { "base": "

The result of a ListDomainNames operation. Contains the names of all Elasticsearch domains owned by this account.

", "refs": { } }, + "ListElasticsearchInstanceTypesRequest": { + "base": "

Container for the parameters to the ListElasticsearchInstanceTypes operation.

", + "refs": { + } + }, + "ListElasticsearchInstanceTypesResponse": { + "base": "

Container for the parameters returned by ListElasticsearchInstanceTypes operation.

", + "refs": { + } + }, + "ListElasticsearchVersionsRequest": { + "base": "

Container for the parameters to the ListElasticsearchVersions operation.

Use MaxResults to control the maximum number of results to retrieve in a single call.

Use NextToken in response to retrieve more results. If the received response does not contain a NextToken, then there are no more results to retrieve.

", + "refs": { + } + }, + "ListElasticsearchVersionsResponse": { + "base": "

Container for the parameters for response received from ListElasticsearchVersions operation.

", + "refs": { + } + }, "ListTagsRequest": { "base": "

Container for the parameters to the ListTags operation. Specify the ARN for the Elasticsearch domain to which the tags are attached that you want to view are attached.

", "refs": { @@ -277,6 +391,34 @@ "refs": { } }, + "MaxResults": { + "base": "

Set this value to limit the number of results returned.

", + "refs": { + "ListElasticsearchInstanceTypesRequest$MaxResults": "

Set this value to limit the number of results returned. Value provided must be greater than 30 else it wont be honored.

", + "ListElasticsearchVersionsRequest$MaxResults": "

Set this value to limit the number of results returned. Value provided must be greater than 10 else it wont be honored.

" + } + }, + "MaximumInstanceCount": { + "base": "

Maximum number of Instances that can be instantiated for given InstanceType.

", + "refs": { + "InstanceCountLimits$MaximumInstanceCount": null + } + }, + "MinimumInstanceCount": { + "base": "

Minimum number of Instances that can be instantiated for given InstanceType.

", + "refs": { + "InstanceCountLimits$MinimumInstanceCount": null + } + }, + "NextToken": { + "base": "

Paginated APIs accepts NextToken input to returns next page results and provides a NextToken output in the response which can be used by the client to retrieve more results.

", + "refs": { + "ListElasticsearchInstanceTypesRequest$NextToken": "

NextToken should be sent in case if earlier API call produced result containing NextToken. It is used for pagination.

", + "ListElasticsearchInstanceTypesResponse$NextToken": "

In case if there are more results available NextToken would be present, make further request to the same API with received NextToken to paginate remaining results.

", + "ListElasticsearchVersionsRequest$NextToken": null, + "ListElasticsearchVersionsResponse$NextToken": null + } + }, "OptionState": { "base": "

The state of a requested change. One of the following:

  • Processing: The request change is still in-process.
  • Active: The request change is processed and deployed to the Elasticsearch domain.
", "refs": { @@ -339,6 +481,42 @@ "ElasticsearchDomainConfig$SnapshotOptions": "

Specifies the SnapshotOptions for the Elasticsearch domain.

" } }, + "StorageSubTypeName": { + "base": "

SubType of the given storage type. List of available sub-storage options: For \"instance\" storageType we wont have any storageSubType, in case of \"ebs\" storageType we will have following valid storageSubTypes

  1. standard
  2. gp2
  3. io1
Refer VolumeType for more information regarding above EBS storage options.

", + "refs": { + "StorageType$StorageSubTypeName": null + } + }, + "StorageType": { + "base": "

StorageTypes represents the list of storage related types and their attributes that are available for given InstanceType.

", + "refs": { + "StorageTypeList$member": null + } + }, + "StorageTypeLimit": { + "base": "

Limits that are applicable for given storage type.

", + "refs": { + "StorageTypeLimitList$member": null + } + }, + "StorageTypeLimitList": { + "base": null, + "refs": { + "StorageType$StorageTypeLimits": "

List of limits that are applicable for given storage type.

" + } + }, + "StorageTypeList": { + "base": null, + "refs": { + "Limits$StorageTypes": "

StorageType represents the list of storage related types and attributes that are available for given InstanceType.

" + } + }, + "StorageTypeName": { + "base": "

Type of the storage. List of available storage options:

  1. instance
  2. Inbuilt storage available for the given Instance
  3. ebs
  4. Elastic block storage that would be attached to the given Instance

", + "refs": { + "StorageType$StorageTypeName": null + } + }, "String": { "base": null, "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/paginators-1.json new file mode 100644 index 000000000..5a6c3dd19 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/paginators-1.json @@ -0,0 +1,14 @@ +{ + "pagination": { + "ListElasticsearchInstanceTypes": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListElasticsearchVersions": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/events/2015-10-07/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/events/2015-10-07/api-2.json index 85d852c9b..2bfc59442 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/events/2015-10-07/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/events/2015-10-07/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"events-2015-10-07", "apiVersion":"2015-10-07", "endpointPrefix":"events", "jsonVersion":"1.1", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/firehose/2015-08-04/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/firehose/2015-08-04/api-2.json index b7be95052..2e21535ca 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/firehose/2015-08-04/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/firehose/2015-08-04/api-2.json @@ -8,7 +8,8 @@ "serviceAbbreviation":"Firehose", "serviceFullName":"Amazon Kinesis Firehose", "signatureVersion":"v4", - "targetPrefix":"Firehose_20150804" + "targetPrefix":"Firehose_20150804", + "uid":"firehose-2015-08-04" }, "operations":{ "CreateDeliveryStream":{ @@ -168,7 +169,11 @@ "required":["DeliveryStreamName"], "members":{ "DeliveryStreamName":{"shape":"DeliveryStreamName"}, - "S3DestinationConfiguration":{"shape":"S3DestinationConfiguration"}, + "S3DestinationConfiguration":{ + "shape":"S3DestinationConfiguration", + "deprecated":true + }, + "ExtendedS3DestinationConfiguration":{"shape":"ExtendedS3DestinationConfiguration"}, "RedshiftDestinationConfiguration":{"shape":"RedshiftDestinationConfiguration"}, "ElasticsearchDestinationConfiguration":{"shape":"ElasticsearchDestinationConfiguration"} } @@ -201,7 +206,12 @@ "members":{ } }, - "DeliveryStreamARN":{"type":"string"}, + "DeliveryStreamARN":{ + "type":"string", + "max":512, + "min":1, + "pattern":"arn:.*" + }, "DeliveryStreamDescription":{ "type":"structure", "required":[ @@ -274,6 +284,7 @@ "members":{ "DestinationId":{"shape":"DestinationId"}, "S3DestinationDescription":{"shape":"S3DestinationDescription"}, + "ExtendedS3DestinationDescription":{"shape":"ExtendedS3DestinationDescription"}, "RedshiftDestinationDescription":{"shape":"RedshiftDestinationDescription"}, "ElasticsearchDestinationDescription":{"shape":"ElasticsearchDestinationDescription"} } @@ -323,6 +334,7 @@ "RetryOptions":{"shape":"ElasticsearchRetryOptions"}, "S3BackupMode":{"shape":"ElasticsearchS3BackupMode"}, "S3Configuration":{"shape":"S3DestinationConfiguration"}, + "ProcessingConfiguration":{"shape":"ProcessingConfiguration"}, "CloudWatchLoggingOptions":{"shape":"CloudWatchLoggingOptions"} } }, @@ -338,6 +350,7 @@ "RetryOptions":{"shape":"ElasticsearchRetryOptions"}, "S3BackupMode":{"shape":"ElasticsearchS3BackupMode"}, "S3DestinationDescription":{"shape":"S3DestinationDescription"}, + "ProcessingConfiguration":{"shape":"ProcessingConfiguration"}, "CloudWatchLoggingOptions":{"shape":"CloudWatchLoggingOptions"} } }, @@ -352,6 +365,7 @@ "BufferingHints":{"shape":"ElasticsearchBufferingHints"}, "RetryOptions":{"shape":"ElasticsearchRetryOptions"}, "S3Update":{"shape":"S3DestinationUpdate"}, + "ProcessingConfiguration":{"shape":"ProcessingConfiguration"}, "CloudWatchLoggingOptions":{"shape":"CloudWatchLoggingOptions"} } }, @@ -408,6 +422,62 @@ }, "ErrorCode":{"type":"string"}, "ErrorMessage":{"type":"string"}, + "ExtendedS3DestinationConfiguration":{ + "type":"structure", + "required":[ + "RoleARN", + "BucketARN" + ], + "members":{ + "RoleARN":{"shape":"RoleARN"}, + "BucketARN":{"shape":"BucketARN"}, + "Prefix":{"shape":"Prefix"}, + "BufferingHints":{"shape":"BufferingHints"}, + "CompressionFormat":{"shape":"CompressionFormat"}, + "EncryptionConfiguration":{"shape":"EncryptionConfiguration"}, + "CloudWatchLoggingOptions":{"shape":"CloudWatchLoggingOptions"}, + "ProcessingConfiguration":{"shape":"ProcessingConfiguration"}, + "S3BackupMode":{"shape":"S3BackupMode"}, + "S3BackupConfiguration":{"shape":"S3DestinationConfiguration"} + } + }, + "ExtendedS3DestinationDescription":{ + "type":"structure", + "required":[ + "RoleARN", + "BucketARN", + "BufferingHints", + "CompressionFormat", + "EncryptionConfiguration" + ], + "members":{ + "RoleARN":{"shape":"RoleARN"}, + "BucketARN":{"shape":"BucketARN"}, + "Prefix":{"shape":"Prefix"}, + "BufferingHints":{"shape":"BufferingHints"}, + "CompressionFormat":{"shape":"CompressionFormat"}, + "EncryptionConfiguration":{"shape":"EncryptionConfiguration"}, + "CloudWatchLoggingOptions":{"shape":"CloudWatchLoggingOptions"}, + "ProcessingConfiguration":{"shape":"ProcessingConfiguration"}, + "S3BackupMode":{"shape":"S3BackupMode"}, + "S3BackupDescription":{"shape":"S3DestinationDescription"} + } + }, + "ExtendedS3DestinationUpdate":{ + "type":"structure", + "members":{ + "RoleARN":{"shape":"RoleARN"}, + "BucketARN":{"shape":"BucketARN"}, + "Prefix":{"shape":"Prefix"}, + "BufferingHints":{"shape":"BufferingHints"}, + "CompressionFormat":{"shape":"CompressionFormat"}, + "EncryptionConfiguration":{"shape":"EncryptionConfiguration"}, + "CloudWatchLoggingOptions":{"shape":"CloudWatchLoggingOptions"}, + "ProcessingConfiguration":{"shape":"ProcessingConfiguration"}, + "S3BackupMode":{"shape":"S3BackupMode"}, + "S3BackupUpdate":{"shape":"S3DestinationUpdate"} + } + }, "IntervalInSeconds":{ "type":"integer", "max":900, @@ -473,6 +543,56 @@ "sensitive":true }, "Prefix":{"type":"string"}, + "ProcessingConfiguration":{ + "type":"structure", + "members":{ + "Enabled":{"shape":"BooleanObject"}, + "Processors":{"shape":"ProcessorList"} + } + }, + "Processor":{ + "type":"structure", + "required":["Type"], + "members":{ + "Type":{"shape":"ProcessorType"}, + "Parameters":{"shape":"ProcessorParameterList"} + } + }, + "ProcessorList":{ + "type":"list", + "member":{"shape":"Processor"} + }, + "ProcessorParameter":{ + "type":"structure", + "required":[ + "ParameterName", + "ParameterValue" + ], + "members":{ + "ParameterName":{"shape":"ProcessorParameterName"}, + "ParameterValue":{"shape":"ProcessorParameterValue"} + } + }, + "ProcessorParameterList":{ + "type":"list", + "member":{"shape":"ProcessorParameter"} + }, + "ProcessorParameterName":{ + "type":"string", + "enum":[ + "LambdaArn", + "NumberOfRetries" + ] + }, + "ProcessorParameterValue":{ + "type":"string", + "max":512, + "min":1 + }, + "ProcessorType":{ + "type":"string", + "enum":["Lambda"] + }, "PutRecordBatchInput":{ "type":"structure", "required":[ @@ -562,6 +682,9 @@ "Password":{"shape":"Password"}, "RetryOptions":{"shape":"RedshiftRetryOptions"}, "S3Configuration":{"shape":"S3DestinationConfiguration"}, + "ProcessingConfiguration":{"shape":"ProcessingConfiguration"}, + "S3BackupMode":{"shape":"RedshiftS3BackupMode"}, + "S3BackupConfiguration":{"shape":"S3DestinationConfiguration"}, "CloudWatchLoggingOptions":{"shape":"CloudWatchLoggingOptions"} } }, @@ -581,6 +704,9 @@ "Username":{"shape":"Username"}, "RetryOptions":{"shape":"RedshiftRetryOptions"}, "S3DestinationDescription":{"shape":"S3DestinationDescription"}, + "ProcessingConfiguration":{"shape":"ProcessingConfiguration"}, + "S3BackupMode":{"shape":"RedshiftS3BackupMode"}, + "S3BackupDescription":{"shape":"S3DestinationDescription"}, "CloudWatchLoggingOptions":{"shape":"CloudWatchLoggingOptions"} } }, @@ -594,6 +720,9 @@ "Password":{"shape":"Password"}, "RetryOptions":{"shape":"RedshiftRetryOptions"}, "S3Update":{"shape":"S3DestinationUpdate"}, + "ProcessingConfiguration":{"shape":"ProcessingConfiguration"}, + "S3BackupMode":{"shape":"RedshiftS3BackupMode"}, + "S3BackupUpdate":{"shape":"S3DestinationUpdate"}, "CloudWatchLoggingOptions":{"shape":"CloudWatchLoggingOptions"} } }, @@ -608,6 +737,13 @@ "DurationInSeconds":{"shape":"RedshiftRetryDurationInSeconds"} } }, + "RedshiftS3BackupMode":{ + "type":"string", + "enum":[ + "Disabled", + "Enabled" + ] + }, "ResourceInUseException":{ "type":"structure", "members":{ @@ -628,6 +764,13 @@ "min":1, "pattern":"arn:.*" }, + "S3BackupMode":{ + "type":"string", + "enum":[ + "Disabled", + "Enabled" + ] + }, "S3DestinationConfiguration":{ "type":"structure", "required":[ @@ -700,7 +843,11 @@ "DeliveryStreamName":{"shape":"DeliveryStreamName"}, "CurrentDeliveryStreamVersionId":{"shape":"DeliveryStreamVersionId"}, "DestinationId":{"shape":"DestinationId"}, - "S3DestinationUpdate":{"shape":"S3DestinationUpdate"}, + "S3DestinationUpdate":{ + "shape":"S3DestinationUpdate", + "deprecated":true + }, + "ExtendedS3DestinationUpdate":{"shape":"ExtendedS3DestinationUpdate"}, "RedshiftDestinationUpdate":{"shape":"RedshiftDestinationUpdate"}, "ElasticsearchDestinationUpdate":{"shape":"ElasticsearchDestinationUpdate"} } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/firehose/2015-08-04/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/firehose/2015-08-04/docs-2.json index d591d4f34..c06142063 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/firehose/2015-08-04/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/firehose/2015-08-04/docs-2.json @@ -2,13 +2,13 @@ "version": "2.0", "service": "Amazon Kinesis Firehose API Reference

Amazon Kinesis Firehose is a fully-managed service that delivers real-time streaming data to destinations such as Amazon Simple Storage Service (Amazon S3), Amazon Elasticsearch Service (Amazon ES), and Amazon Redshift.

", "operations": { - "CreateDeliveryStream": "

Creates a delivery stream.

CreateDeliveryStream is an asynchronous operation that immediately returns. The initial status of the delivery stream is CREATING. After the delivery stream is created, its status is ACTIVE and it now accepts data. Attempts to send data to a delivery stream that is not in the ACTIVE state cause an exception. To check the state of a delivery stream, use DescribeDeliveryStream.

The name of a delivery stream identifies it. You can't have two delivery streams with the same name in the same region. Two delivery streams in different AWS accounts or different regions in the same AWS account can have the same name.

By default, you can create up to 20 delivery streams per region.

A delivery stream can only be configured with a single destination, Amazon S3, Amazon Elasticsearch Service, or Amazon Redshift. For correct CreateDeliveryStream request syntax, specify only one destination configuration parameter: either S3DestinationConfiguration, ElasticsearchDestinationConfiguration, or RedshiftDestinationConfiguration.

As part of S3DestinationConfiguration, optional values BufferingHints, EncryptionConfiguration, and CompressionFormat can be provided. By default, if no BufferingHints value is provided, Firehose buffers data up to 5 MB or for 5 minutes, whichever condition is satisfied first. Note that BufferingHints is a hint, so there are some cases where the service cannot adhere to these conditions strictly; for example, record boundaries are such that the size is a little over or under the configured buffering size. By default, no encryption is performed. We strongly recommend that you enable encryption to ensure secure data storage in Amazon S3.

A few notes about RedshiftDestinationConfiguration:

  • An Amazon Redshift destination requires an S3 bucket as intermediate location, as Firehose first delivers data to S3 and then uses COPY syntax to load data into an Amazon Redshift table. This is specified in the RedshiftDestinationConfiguration.S3Configuration parameter element.

  • The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationConfiguration.S3Configuration because the Amazon Redshift COPY operation that reads from the S3 bucket doesn't support these compression formats.

  • We strongly recommend that the username and password provided is used exclusively for Firehose purposes, and that the permissions for the account are restricted for Amazon Redshift INSERT permissions.

Firehose assumes the IAM role that is configured as part of destinations. The IAM role should allow the Firehose principal to assume the role, and the role should have permissions that allows the service to deliver the data. For more information, see Amazon S3 Bucket Access in the Amazon Kinesis Firehose Developer Guide.

", + "CreateDeliveryStream": "

Creates a delivery stream.

By default, you can create up to 20 delivery streams per region.

This is an asynchronous operation that immediately returns. The initial status of the delivery stream is CREATING. After the delivery stream is created, its status is ACTIVE and it now accepts data. Attempts to send data to a delivery stream that is not in the ACTIVE state cause an exception. To check the state of a delivery stream, use DescribeDeliveryStream.

A delivery stream is configured with a single destination: Amazon S3, Amazon Elasticsearch Service, or Amazon Redshift. You must specify only one of the following destination configuration parameters: ExtendedS3DestinationConfiguration, S3DestinationConfiguration, ElasticsearchDestinationConfiguration, or RedshiftDestinationConfiguration.

When you specify S3DestinationConfiguration, you can also provide the following optional values: BufferingHints, EncryptionConfiguration, and CompressionFormat. By default, if no BufferingHints value is provided, Firehose buffers data up to 5 MB or for 5 minutes, whichever condition is satisfied first. Note that BufferingHints is a hint, so there are some cases where the service cannot adhere to these conditions strictly; for example, record boundaries are such that the size is a little over or under the configured buffering size. By default, no encryption is performed. We strongly recommend that you enable encryption to ensure secure data storage in Amazon S3.

A few notes about Amazon Redshift as a destination:

  • An Amazon Redshift destination requires an S3 bucket as intermediate location, as Firehose first delivers data to S3 and then uses COPY syntax to load data into an Amazon Redshift table. This is specified in the RedshiftDestinationConfiguration.S3Configuration parameter.

  • The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationConfiguration.S3Configuration because the Amazon Redshift COPY operation that reads from the S3 bucket doesn't support these compression formats.

  • We strongly recommend that you use the user name and password you provide exclusively with Firehose, and that the permissions for the account are restricted for Amazon Redshift INSERT permissions.

Firehose assumes the IAM role that is configured as part of the destination. The role should allow the Firehose principal to assume the role, and the role should have permissions that allows the service to deliver the data. For more information, see Amazon S3 Bucket Access in the Amazon Kinesis Firehose Developer Guide.

", "DeleteDeliveryStream": "

Deletes a delivery stream and its data.

You can delete a delivery stream only if it is in ACTIVE or DELETING state, and not in the CREATING state. While the deletion request is in process, the delivery stream is in the DELETING state.

To check the state of a delivery stream, use DescribeDeliveryStream.

While the delivery stream is DELETING state, the service may continue to accept the records, but the service doesn't make any guarantees with respect to delivering the data. Therefore, as a best practice, you should first stop any applications that are sending records before deleting a delivery stream.

", "DescribeDeliveryStream": "

Describes the specified delivery stream and gets the status. For example, after your delivery stream is created, call DescribeDeliveryStream to see if the delivery stream is ACTIVE and therefore ready for data to be sent to it.

", "ListDeliveryStreams": "

Lists your delivery streams.

The number of delivery streams might be too large to return using a single call to ListDeliveryStreams. You can limit the number of delivery streams returned, using the Limit parameter. To determine whether there are more delivery streams to list, check the value of HasMoreDeliveryStreams in the output. If there are more delivery streams to list, you can request them by specifying the name of the last delivery stream returned in the call in the ExclusiveStartDeliveryStreamName parameter of a subsequent call.

", "PutRecord": "

Writes a single data record into an Amazon Kinesis Firehose delivery stream. To write multiple data records into a delivery stream, use PutRecordBatch. Applications using these operations are referred to as producers.

By default, each delivery stream can take in up to 2,000 transactions per second, 5,000 records per second, or 5 MB per second. Note that if you use PutRecord and PutRecordBatch, the limits are an aggregate across these two operations for each delivery stream. For more information about limits and how to request an increase, see Amazon Kinesis Firehose Limits.

You must specify the name of the delivery stream and the data record when using PutRecord. The data record consists of a data blob that can be up to 1,000 KB in size, and any kind of data, for example, a segment from a log file, geographic location data, web site clickstream data, etc.

Firehose buffers records before delivering them to the destination. To disambiguate the data blobs at the destination, a common solution is to use delimiters in the data, such as a newline (\\n) or some other character unique within the data. This allows the consumer application(s) to parse individual data items when reading the data from the destination.

The PutRecord operation returns a RecordId, which is a unique string assigned to each record. Producer applications can use this ID for purposes such as auditability and investigation.

If the PutRecord operation throws a ServiceUnavailableException, back off and retry. If the exception persists, it is possible that the throughput limits have been exceeded for the delivery stream.

Data records sent to Firehose are stored for 24 hours from the time they are added to a delivery stream as it attempts to send the records to the destination. If the destination is unreachable for more than 24 hours, the data is no longer available.

", - "PutRecordBatch": "

Writes multiple data records into a delivery stream in a single call, which can achieve higher throughput per producer than when writing single records. To write single data records into a delivery stream, use PutRecord. Applications using these operations are referred to as producers.

Each PutRecordBatch request supports up to 500 records. Each record in the request can be as large as 1,000 KB (before 64-bit encoding), up to a limit of 4 MB for the entire request. By default, each delivery stream can take in up to 2,000 transactions per second, 5,000 records per second, or 5 MB per second. Note that if you use PutRecord and PutRecordBatch, the limits are an aggregate across these two operations for each delivery stream. For more information about limits and how to request an increase, see Amazon Kinesis Firehose Limits.

You must specify the name of the delivery stream and the data record when using PutRecord. The data record consists of a data blob that can be up to 1,000 KB in size, and any kind of data, for example, a segment from a log file, geographic location data, web site clickstream data, and so on.

Firehose buffers records before delivering them to the destination. To disambiguate the data blobs at the destination, a common solution is to use delimiters in the data, such as a newline (\\n) or some other character unique within the data. This allows the consumer application(s) to parse individual data items when reading the data from the destination.

The PutRecordBatch response includes a count of any failed records, FailedPutCount, and an array of responses, RequestResponses. The FailedPutCount value is a count of records that failed. Each entry in the RequestResponses array gives additional information of the processed record. Each entry in RequestResponses directly correlates with a record in the request array using the same ordering, from the top to the bottom of the request and response. RequestResponses always includes the same number of records as the request array. RequestResponses both successfully and unsuccessfully processed records. Firehose attempts to process all records in each PutRecordBatch request. A single record failure does not stop the processing of subsequent records.

A successfully processed record includes a RecordId value, which is a unique value identified for the record. An unsuccessfully processed record includes ErrorCode and ErrorMessage values. ErrorCode reflects the type of error and is one of the following values: ServiceUnavailable or InternalFailure. ErrorMessage provides more detailed information about the error.

If FailedPutCount is greater than 0 (zero), retry the request. A retry of the entire batch of records is possible; however, we strongly recommend that you inspect the entire response and resend only those records that failed processing. This minimizes duplicate records and also reduces the total bytes sent (and corresponding charges).

If the PutRecordBatch operation throws a ServiceUnavailableException, back off and retry. If the exception persists, it is possible that the throughput limits have been exceeded for the delivery stream.

Data records sent to Firehose are stored for 24 hours from the time they are added to a delivery stream as it attempts to send the records to the destination. If the destination is unreachable for more than 24 hours, the data is no longer available.

", - "UpdateDestination": "

Updates the specified destination of the specified delivery stream. Note: Switching between Elasticsearch and other services is not supported. For Elasticsearch destination, you can only update an existing Elasticsearch destination with this operation.

This operation can be used to change the destination type (for example, to replace the Amazon S3 destination with Amazon Redshift) or change the parameters associated with a given destination (for example, to change the bucket name of the Amazon S3 destination). The update may not occur immediately. The target delivery stream remains active while the configurations are updated, so data writes to the delivery stream can continue during this process. The updated configurations are normally effective within a few minutes.

If the destination type is the same, Firehose merges the configuration parameters specified in the UpdateDestination request with the destination configuration that already exists on the delivery stream. If any of the parameters are not specified in the update request, then the existing configuration parameters are retained. For example, in the Amazon S3 destination, if EncryptionConfiguration is not specified then the existing EncryptionConfiguration is maintained on the destination.

If the destination type is not the same, for example, changing the destination from Amazon S3 to Amazon Redshift, Firehose does not merge any parameters. In this case, all parameters must be specified.

Firehose uses the CurrentDeliveryStreamVersionId to avoid race conditions and conflicting merges. This is a required field in every request and the service only updates the configuration if the existing configuration matches the VersionId. After the update is applied successfully, the VersionId is updated, which can be retrieved with the DescribeDeliveryStream operation. The new VersionId should be uses to set CurrentDeliveryStreamVersionId in the next UpdateDestination operation.

" + "PutRecordBatch": "

Writes multiple data records into a delivery stream in a single call, which can achieve higher throughput per producer than when writing single records. To write single data records into a delivery stream, use PutRecord. Applications using these operations are referred to as producers.

By default, each delivery stream can take in up to 2,000 transactions per second, 5,000 records per second, or 5 MB per second. Note that if you use PutRecord and PutRecordBatch, the limits are an aggregate across these two operations for each delivery stream. For more information about limits, see Amazon Kinesis Firehose Limits.

Each PutRecordBatch request supports up to 500 records. Each record in the request can be as large as 1,000 KB (before 64-bit encoding), up to a limit of 4 MB for the entire request. These limits cannot be changed.

You must specify the name of the delivery stream and the data record when using PutRecord. The data record consists of a data blob that can be up to 1,000 KB in size, and any kind of data, for example, a segment from a log file, geographic location data, web site clickstream data, and so on.

Firehose buffers records before delivering them to the destination. To disambiguate the data blobs at the destination, a common solution is to use delimiters in the data, such as a newline (\\n) or some other character unique within the data. This allows the consumer application(s) to parse individual data items when reading the data from the destination.

The PutRecordBatch response includes a count of failed records, FailedPutCount, and an array of responses, RequestResponses. Each entry in the RequestResponses array provides additional information about the processed record, and directly correlates with a record in the request array using the same ordering, from the top to the bottom. The response array always includes the same number of records as the request array. RequestResponses includes both successfully and unsuccessfully processed records. Firehose attempts to process all records in each PutRecordBatch request. A single record failure does not stop the processing of subsequent records.

A successfully processed record includes a RecordId value, which is unique for the record. An unsuccessfully processed record includes ErrorCode and ErrorMessage values. ErrorCode reflects the type of error, and is one of the following values: ServiceUnavailable or InternalFailure. ErrorMessage provides more detailed information about the error.

If there is an internal server error or a timeout, the write might have completed or it might have failed. If FailedPutCount is greater than 0, retry the request, resending only those records that might have failed processing. This minimizes the possible duplicate records and also reduces the total bytes sent (and corresponding charges). We recommend that you handle any duplicates at the destination.

If PutRecordBatch throws ServiceUnavailableException, back off and retry. If the exception persists, it is possible that the throughput limits have been exceeded for the delivery stream.

Data records sent to Firehose are stored for 24 hours from the time they are added to a delivery stream as it attempts to send the records to the destination. If the destination is unreachable for more than 24 hours, the data is no longer available.

", + "UpdateDestination": "

Updates the specified destination of the specified delivery stream.

You can use this operation to change the destination type (for example, to replace the Amazon S3 destination with Amazon Redshift) or change the parameters associated with a destination (for example, to change the bucket name of the Amazon S3 destination). The update might not occur immediately. The target delivery stream remains active while the configurations are updated, so data writes to the delivery stream can continue during this process. The updated configurations are usually effective within a few minutes.

Note that switching between Amazon ES and other services is not supported. For an Amazon ES destination, you can only update to another Amazon ES destination.

If the destination type is the same, Firehose merges the configuration parameters specified with the destination configuration that already exists on the delivery stream. If any of the parameters are not specified in the call, the existing values are retained. For example, in the Amazon S3 destination, if EncryptionConfiguration is not specified then the existing EncryptionConfiguration is maintained on the destination.

If the destination type is not the same, for example, changing the destination from Amazon S3 to Amazon Redshift, Firehose does not merge any parameters. In this case, all parameters must be specified.

Firehose uses CurrentDeliveryStreamVersionId to avoid race conditions and conflicting merges. This is a required field, and the service updates the configuration only if the existing configuration has a version ID that matches. After the update is applied successfully, the version ID is updated, and can be retrieved using DescribeDeliveryStream. You should use the new version ID to set CurrentDeliveryStreamVersionId in the next call.

" }, "shapes": { "AWSKMSKeyARN": { @@ -22,12 +22,16 @@ "refs": { "CloudWatchLoggingOptions$Enabled": "

Enables or disables CloudWatch logging.

", "DeliveryStreamDescription$HasMoreDestinations": "

Indicates whether there are more destinations available to list.

", - "ListDeliveryStreamsOutput$HasMoreDeliveryStreams": "

Indicates whether there are more delivery streams available to list.

" + "ListDeliveryStreamsOutput$HasMoreDeliveryStreams": "

Indicates whether there are more delivery streams available to list.

", + "ProcessingConfiguration$Enabled": "

Enables or disables data processing.

" } }, "BucketARN": { "base": null, "refs": { + "ExtendedS3DestinationConfiguration$BucketARN": "

The ARN of the S3 bucket.

", + "ExtendedS3DestinationDescription$BucketARN": "

The ARN of the S3 bucket.

", + "ExtendedS3DestinationUpdate$BucketARN": "

The ARN of the S3 bucket.

", "S3DestinationConfiguration$BucketARN": "

The ARN of the S3 bucket.

", "S3DestinationDescription$BucketARN": "

The ARN of the S3 bucket.

", "S3DestinationUpdate$BucketARN": "

The ARN of the S3 bucket.

" @@ -36,23 +40,29 @@ "BufferingHints": { "base": "

Describes hints for the buffering to perform before delivering data to the destination. Please note that these options are treated as hints, and therefore Firehose may choose to use different values when it is optimal.

", "refs": { + "ExtendedS3DestinationConfiguration$BufferingHints": "

The buffering option.

", + "ExtendedS3DestinationDescription$BufferingHints": "

The buffering option.

", + "ExtendedS3DestinationUpdate$BufferingHints": "

The buffering option.

", "S3DestinationConfiguration$BufferingHints": "

The buffering option. If no value is specified, BufferingHints object default values are used.

", "S3DestinationDescription$BufferingHints": "

The buffering option. If no value is specified, BufferingHints object default values are used.

", "S3DestinationUpdate$BufferingHints": "

The buffering option. If no value is specified, BufferingHints object default values are used.

" } }, "CloudWatchLoggingOptions": { - "base": "

Describes CloudWatch logging options for your delivery stream.

", - "refs": { - "ElasticsearchDestinationConfiguration$CloudWatchLoggingOptions": "

Describes CloudWatch logging options for your delivery stream.

", - "ElasticsearchDestinationDescription$CloudWatchLoggingOptions": "

CloudWatch logging options.

", - "ElasticsearchDestinationUpdate$CloudWatchLoggingOptions": "

Describes CloudWatch logging options for your delivery stream.

", - "RedshiftDestinationConfiguration$CloudWatchLoggingOptions": "

Describes CloudWatch logging options for your delivery stream.

", - "RedshiftDestinationDescription$CloudWatchLoggingOptions": "

Describes CloudWatch logging options for your delivery stream.

", - "RedshiftDestinationUpdate$CloudWatchLoggingOptions": "

Describes CloudWatch logging options for your delivery stream.

", - "S3DestinationConfiguration$CloudWatchLoggingOptions": "

Describes CloudWatch logging options for your delivery stream.

", - "S3DestinationDescription$CloudWatchLoggingOptions": "

Describes CloudWatch logging options for your delivery stream.

", - "S3DestinationUpdate$CloudWatchLoggingOptions": "

Describes CloudWatch logging options for your delivery stream.

" + "base": "

Describes the CloudWatch logging options for your delivery stream.

", + "refs": { + "ElasticsearchDestinationConfiguration$CloudWatchLoggingOptions": "

The CloudWatch logging options for your delivery stream.

", + "ElasticsearchDestinationDescription$CloudWatchLoggingOptions": "

The CloudWatch logging options.

", + "ElasticsearchDestinationUpdate$CloudWatchLoggingOptions": "

The CloudWatch logging options for your delivery stream.

", + "ExtendedS3DestinationConfiguration$CloudWatchLoggingOptions": "

The CloudWatch logging options for your delivery stream.

", + "ExtendedS3DestinationDescription$CloudWatchLoggingOptions": "

The CloudWatch logging options for your delivery stream.

", + "ExtendedS3DestinationUpdate$CloudWatchLoggingOptions": "

The CloudWatch logging options for your delivery stream.

", + "RedshiftDestinationConfiguration$CloudWatchLoggingOptions": "

The CloudWatch logging options for your delivery stream.

", + "RedshiftDestinationDescription$CloudWatchLoggingOptions": "

The CloudWatch logging options for your delivery stream.

", + "RedshiftDestinationUpdate$CloudWatchLoggingOptions": "

The CloudWatch logging options for your delivery stream.

", + "S3DestinationConfiguration$CloudWatchLoggingOptions": "

The CloudWatch logging options for your delivery stream.

", + "S3DestinationDescription$CloudWatchLoggingOptions": "

The CloudWatch logging options for your delivery stream.

", + "S3DestinationUpdate$CloudWatchLoggingOptions": "

The CloudWatch logging options for your delivery stream.

" } }, "ClusterJDBCURL": { @@ -66,9 +76,12 @@ "CompressionFormat": { "base": null, "refs": { + "ExtendedS3DestinationConfiguration$CompressionFormat": "

The compression format. If no value is specified, the default is UNCOMPRESSED.

", + "ExtendedS3DestinationDescription$CompressionFormat": "

The compression format. If no value is specified, the default is UNCOMPRESSED.

", + "ExtendedS3DestinationUpdate$CompressionFormat": "

The compression format. If no value is specified, the default is UNCOMPRESSED.

", "S3DestinationConfiguration$CompressionFormat": "

The compression format. If no value is specified, the default is UNCOMPRESSED.

The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift destinations because they are not supported by the Amazon Redshift COPY operation that reads from the S3 bucket.

", - "S3DestinationDescription$CompressionFormat": "

The compression format. If no value is specified, the default is NOCOMPRESSION.

", - "S3DestinationUpdate$CompressionFormat": "

The compression format. If no value is specified, the default is NOCOMPRESSION.

The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift destinations because they are not supported by the Amazon Redshift COPY operation that reads from the S3 bucket.

" + "S3DestinationDescription$CompressionFormat": "

The compression format. If no value is specified, the default is UNCOMPRESSED.

", + "S3DestinationUpdate$CompressionFormat": "

The compression format. If no value is specified, the default is UNCOMPRESSED.

The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift destinations because they are not supported by the Amazon Redshift COPY operation that reads from the S3 bucket.

" } }, "ConcurrentModificationException": { @@ -87,16 +100,16 @@ "CopyOptions": { "base": null, "refs": { - "CopyCommand$CopyOptions": "

Optional parameters to use with the Amazon Redshift COPY command. For more information, see the \"Optional Parameters\" section of Amazon Redshift COPY command. Some possible examples that would apply to Firehose are as follows.

delimiter '\\t' lzop; - fields are delimited with \"\\t\" (TAB character) and compressed using lzop.

delimiter '| - fields are delimited with \"|\" (this is the default delimiter).

delimiter '|' escape - the delimiter should be escaped.

fixedwidth 'venueid:3,venuename:25,venuecity:12,venuestate:2,venueseats:6' - fields are fixed width in the source, with each width specified after every column in the table.

JSON 's3://mybucket/jsonpaths.txt' - data is in JSON format, and the path specified is the format of the data.

For more examples, see Amazon Redshift COPY command examples.

" + "CopyCommand$CopyOptions": "

Optional parameters to use with the Amazon Redshift COPY command. For more information, see the \"Optional Parameters\" section of Amazon Redshift COPY command. Some possible examples that would apply to Firehose are as follows:

delimiter '\\t' lzop; - fields are delimited with \"\\t\" (TAB character) and compressed using lzop.

delimiter '| - fields are delimited with \"|\" (this is the default delimiter).

delimiter '|' escape - the delimiter should be escaped.

fixedwidth 'venueid:3,venuename:25,venuecity:12,venuestate:2,venueseats:6' - fields are fixed width in the source, with each width specified after every column in the table.

JSON 's3://mybucket/jsonpaths.txt' - data is in JSON format, and the path specified is the format of the data.

For more examples, see Amazon Redshift COPY command examples.

" } }, "CreateDeliveryStreamInput": { - "base": "

Contains the parameters for CreateDeliveryStream.

", + "base": null, "refs": { } }, "CreateDeliveryStreamOutput": { - "base": "

Contains the output of CreateDeliveryStream.

", + "base": null, "refs": { } }, @@ -119,12 +132,12 @@ } }, "DeleteDeliveryStreamInput": { - "base": "

Contains the parameters for DeleteDeliveryStream.

", + "base": null, "refs": { } }, "DeleteDeliveryStreamOutput": { - "base": "

Contains the output of DeleteDeliveryStream.

", + "base": null, "refs": { } }, @@ -144,7 +157,7 @@ "DeliveryStreamName": { "base": null, "refs": { - "CreateDeliveryStreamInput$DeliveryStreamName": "

The name of the delivery stream.

", + "CreateDeliveryStreamInput$DeliveryStreamName": "

The name of the delivery stream. This name must be unique per AWS account in the same region. You can have multiple delivery streams with the same name if they are in different accounts or different regions.

", "DeleteDeliveryStreamInput$DeliveryStreamName": "

The name of the delivery stream.

", "DeliveryStreamDescription$DeliveryStreamName": "

The name of the delivery stream.

", "DeliveryStreamNameList$member": null, @@ -170,12 +183,12 @@ "DeliveryStreamVersionId": { "base": null, "refs": { - "DeliveryStreamDescription$VersionId": "

Used when calling the UpdateDestination operation. Each time the destination is updated for the delivery stream, the VersionId is changed, and the current VersionId is required when updating the destination. This is so that the service knows it is applying the changes to the correct version of the delivery stream.

", - "UpdateDestinationInput$CurrentDeliveryStreamVersionId": "

Obtain this value from the VersionId result of the DeliveryStreamDescription operation. This value is required, and helps the service to perform conditional operations. For example, if there is a interleaving update and this value is null, then the update destination fails. After the update is successful, the VersionId value is updated. The service then performs a merge of the old configuration with the new configuration.

" + "DeliveryStreamDescription$VersionId": "

Each time the destination is updated for a delivery stream, the version ID is changed, and the current version ID is required when updating the destination. This is so that the service knows it is applying the changes to the correct version of the delivery stream.

", + "UpdateDestinationInput$CurrentDeliveryStreamVersionId": "

Obtain this value from the VersionId result of DeliveryStreamDescription. This value is required, and helps the service to perform conditional operations. For example, if there is a interleaving update and this value is null, then the update destination fails. After the update is successful, the VersionId value is updated. The service then performs a merge of the old configuration with the new configuration.

" } }, "DescribeDeliveryStreamInput": { - "base": "

Contains the parameters for DescribeDeliveryStream.

", + "base": null, "refs": { } }, @@ -186,7 +199,7 @@ } }, "DescribeDeliveryStreamOutput": { - "base": "

Contains the output of DescribeDeliveryStream.

", + "base": null, "refs": { } }, @@ -205,7 +218,7 @@ "DestinationId": { "base": null, "refs": { - "DescribeDeliveryStreamInput$ExclusiveStartDestinationId": "

Specifies the destination ID to start returning the destination information. Currently Firehose supports one destination per delivery stream.

", + "DescribeDeliveryStreamInput$ExclusiveStartDestinationId": "

The ID of the destination to start returning the destination information. Currently Firehose supports one destination per delivery stream.

", "DestinationDescription$DestinationId": "

The ID of the destination.

", "UpdateDestinationInput$DestinationId": "

The ID of the destination.

" } @@ -213,9 +226,9 @@ "ElasticsearchBufferingHints": { "base": "

Describes the buffering to perform before delivering data to the Amazon ES destination.

", "refs": { - "ElasticsearchDestinationConfiguration$BufferingHints": "

Buffering options. If no value is specified, ElasticsearchBufferingHints object default values are used.

", - "ElasticsearchDestinationDescription$BufferingHints": "

Buffering options.

", - "ElasticsearchDestinationUpdate$BufferingHints": "

Buffering options. If no value is specified, ElasticsearchBufferingHints object default values are used.

" + "ElasticsearchDestinationConfiguration$BufferingHints": "

The buffering options. If no value is specified, the default values for ElasticsearchBufferingHints are used.

", + "ElasticsearchDestinationDescription$BufferingHints": "

The buffering options.

", + "ElasticsearchDestinationUpdate$BufferingHints": "

The buffering options. If no value is specified, ElasticsearchBufferingHints object default values are used.

" } }, "ElasticsearchBufferingIntervalInSeconds": { @@ -227,13 +240,13 @@ "ElasticsearchBufferingSizeInMBs": { "base": null, "refs": { - "ElasticsearchBufferingHints$SizeInMBs": "

Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5.

We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec, set SizeInMBs to be 10 MB or higher.

" + "ElasticsearchBufferingHints$SizeInMBs": "

Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5.

We recommend setting this parameter to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec, the value should be 10 MB or higher.

" } }, "ElasticsearchDestinationConfiguration": { "base": "

Describes the configuration of a destination in Amazon ES.

", "refs": { - "CreateDeliveryStreamInput$ElasticsearchDestinationConfiguration": "

The destination in Amazon ES. This value cannot be specified if Amazon S3 or Amazon Redshift is the desired destination (see restrictions listed above).

" + "CreateDeliveryStreamInput$ElasticsearchDestinationConfiguration": "

The destination in Amazon ES. You can specify only one destination.

" } }, "ElasticsearchDestinationDescription": { @@ -251,9 +264,9 @@ "ElasticsearchDomainARN": { "base": null, "refs": { - "ElasticsearchDestinationConfiguration$DomainARN": "

The ARN of the Amazon ES domain. The IAM role must have permission for DescribeElasticsearchDomain, DescribeElasticsearchDomains , and DescribeElasticsearchDomainConfig after assuming RoleARN.

", + "ElasticsearchDestinationConfiguration$DomainARN": "

The ARN of the Amazon ES domain. The IAM role must have permissions for DescribeElasticsearchDomain, DescribeElasticsearchDomains, and DescribeElasticsearchDomainConfig after assuming the role specified in RoleARN.

", "ElasticsearchDestinationDescription$DomainARN": "

The ARN of the Amazon ES domain.

", - "ElasticsearchDestinationUpdate$DomainARN": "

The ARN of the Amazon ES domain. The IAM role must have permission for DescribeElasticsearchDomain, DescribeElasticsearchDomains , and DescribeElasticsearchDomainConfig after assuming RoleARN.

" + "ElasticsearchDestinationUpdate$DomainARN": "

The ARN of the Amazon ES domain. The IAM role must have permissions for DescribeElasticsearchDomain, DescribeElasticsearchDomains, and DescribeElasticsearchDomainConfig after assuming the IAM role specified in RoleARN.

" } }, "ElasticsearchIndexName": { @@ -267,9 +280,9 @@ "ElasticsearchIndexRotationPeriod": { "base": null, "refs": { - "ElasticsearchDestinationConfiguration$IndexRotationPeriod": "

The Elasticsearch index rotation period. Index rotation appends a timestamp to the IndexName to facilitate expiration of old data. For more information, see Index Rotation for Amazon Elasticsearch Service Destination. Default value is OneDay.

", + "ElasticsearchDestinationConfiguration$IndexRotationPeriod": "

The Elasticsearch index rotation period. Index rotation appends a timestamp to the IndexName to facilitate expiration of old data. For more information, see Index Rotation for Amazon Elasticsearch Service Destination. The default value is OneDay.

", "ElasticsearchDestinationDescription$IndexRotationPeriod": "

The Elasticsearch index rotation period

", - "ElasticsearchDestinationUpdate$IndexRotationPeriod": "

The Elasticsearch index rotation period. Index rotation appends a timestamp to the IndexName to facilitate the expiration of old data. For more information, see Index Rotation for Amazon Elasticsearch Service Destination. Default value is OneDay.

" + "ElasticsearchDestinationUpdate$IndexRotationPeriod": "

The Elasticsearch index rotation period. Index rotation appends a timestamp to IndexName to facilitate the expiration of old data. For more information, see Index Rotation for Amazon Elasticsearch Service Destination. Default value is OneDay.

" } }, "ElasticsearchRetryDurationInSeconds": { @@ -281,16 +294,16 @@ "ElasticsearchRetryOptions": { "base": "

Configures retry behavior in the event that Firehose is unable to deliver documents to Amazon ES.

", "refs": { - "ElasticsearchDestinationConfiguration$RetryOptions": "

Configures retry behavior in the event that Firehose is unable to deliver documents to Amazon ES. Default value is 300 (5 minutes).

", - "ElasticsearchDestinationDescription$RetryOptions": "

Elasticsearch retry options.

", - "ElasticsearchDestinationUpdate$RetryOptions": "

Configures retry behavior in the event that Firehose is unable to deliver documents to Amazon ES. Default value is 300 (5 minutes).

" + "ElasticsearchDestinationConfiguration$RetryOptions": "

The retry behavior in the event that Firehose is unable to deliver documents to Amazon ES. The default value is 300 (5 minutes).

", + "ElasticsearchDestinationDescription$RetryOptions": "

The Amazon ES retry options.

", + "ElasticsearchDestinationUpdate$RetryOptions": "

The retry behavior in the event that Firehose is unable to deliver documents to Amazon ES. Default value is 300 (5 minutes).

" } }, "ElasticsearchS3BackupMode": { "base": null, "refs": { "ElasticsearchDestinationConfiguration$S3BackupMode": "

Defines how documents should be delivered to Amazon S3. When set to FailedDocumentsOnly, Firehose writes any documents that could not be indexed to the configured Amazon S3 destination, with elasticsearch-failed/ appended to the key prefix. When set to AllDocuments, Firehose delivers all incoming records to Amazon S3, and also writes failed documents with elasticsearch-failed/ appended to the prefix. For more information, see Amazon S3 Backup for Amazon Elasticsearch Service Destination. Default value is FailedDocumentsOnly.

", - "ElasticsearchDestinationDescription$S3BackupMode": "

Amazon S3 backup mode.

" + "ElasticsearchDestinationDescription$S3BackupMode": "

The Amazon S3 backup mode.

" } }, "ElasticsearchTypeName": { @@ -304,6 +317,9 @@ "EncryptionConfiguration": { "base": "

Describes the encryption for a destination in Amazon S3.

", "refs": { + "ExtendedS3DestinationConfiguration$EncryptionConfiguration": "

The encryption configuration. If no value is specified, the default is no encryption.

", + "ExtendedS3DestinationDescription$EncryptionConfiguration": "

The encryption configuration. If no value is specified, the default is no encryption.

", + "ExtendedS3DestinationUpdate$EncryptionConfiguration": "

The encryption configuration. If no value is specified, the default is no encryption.

", "S3DestinationConfiguration$EncryptionConfiguration": "

The encryption configuration. If no value is specified, the default is no encryption.

", "S3DestinationDescription$EncryptionConfiguration": "

The encryption configuration. If no value is specified, the default is no encryption.

", "S3DestinationUpdate$EncryptionConfiguration": "

The encryption configuration. If no value is specified, the default is no encryption.

" @@ -327,6 +343,24 @@ "ServiceUnavailableException$message": "

A message that provides information about the error.

" } }, + "ExtendedS3DestinationConfiguration": { + "base": "

Describes the configuration of a destination in Amazon S3.

", + "refs": { + "CreateDeliveryStreamInput$ExtendedS3DestinationConfiguration": "

The destination in Amazon S3. You can specify only one destination.

" + } + }, + "ExtendedS3DestinationDescription": { + "base": "

Describes a destination in Amazon S3.

", + "refs": { + "DestinationDescription$ExtendedS3DestinationDescription": "

The destination in Amazon S3.

" + } + }, + "ExtendedS3DestinationUpdate": { + "base": "

Describes an update for a destination in Amazon S3.

", + "refs": { + "UpdateDestinationInput$ExtendedS3DestinationUpdate": "

Describes an update for a destination in Amazon S3.

" + } + }, "IntervalInSeconds": { "base": null, "refs": { @@ -350,7 +384,7 @@ } }, "ListDeliveryStreamsInput": { - "base": "

Contains the parameters for ListDeliveryStreams.

", + "base": null, "refs": { } }, @@ -361,20 +395,20 @@ } }, "ListDeliveryStreamsOutput": { - "base": "

Contains the output of ListDeliveryStreams.

", + "base": null, "refs": { } }, "LogGroupName": { "base": null, "refs": { - "CloudWatchLoggingOptions$LogGroupName": "

The CloudWatch group name for logging. This value is required if Enabled is true.

" + "CloudWatchLoggingOptions$LogGroupName": "

The CloudWatch group name for logging. This value is required if CloudWatch logging is enabled.

" } }, "LogStreamName": { "base": null, "refs": { - "CloudWatchLoggingOptions$LogStreamName": "

The CloudWatch log stream name for logging. This value is required if Enabled is true.

" + "CloudWatchLoggingOptions$LogStreamName": "

The CloudWatch log stream name for logging. This value is required if CloudWatch logging is enabled.

" } }, "NoEncryptionConfig": { @@ -386,7 +420,7 @@ "NonNegativeIntegerObject": { "base": null, "refs": { - "PutRecordBatchOutput$FailedPutCount": "

The number of unsuccessfully written records.

" + "PutRecordBatchOutput$FailedPutCount": "

The number of records that might have failed processing.

" } }, "Password": { @@ -399,18 +433,77 @@ "Prefix": { "base": null, "refs": { - "S3DestinationConfiguration$Prefix": "

The \"YYYY/MM/DD/HH\" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket. For more information, see Amazon S3 Object Name Format in the Amazon Kinesis Firehose Developer Guide.

", - "S3DestinationDescription$Prefix": "

The \"YYYY/MM/DD/HH\" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket. For more information, see Amazon S3 Object Name Format in the Amazon Kinesis Firehose Developer Guide.

", - "S3DestinationUpdate$Prefix": "

The \"YYYY/MM/DD/HH\" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket. For more information, see Amazon S3 Object Name Format in the Amazon Kinesis Firehose Developer Guide.

" + "ExtendedS3DestinationConfiguration$Prefix": "

The \"YYYY/MM/DD/HH\" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket. For more information, see Amazon S3 Object Name Format in the Amazon Kinesis Firehose Developer Guide.

", + "ExtendedS3DestinationDescription$Prefix": "

The \"YYYY/MM/DD/HH\" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket. For more information, see Amazon S3 Object Name Format in the Amazon Kinesis Firehose Developer Guide.

", + "ExtendedS3DestinationUpdate$Prefix": "

The \"YYYY/MM/DD/HH\" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket. For more information, see Amazon S3 Object Name Format in the Amazon Kinesis Firehose Developer Guide.

", + "S3DestinationConfiguration$Prefix": "

The \"YYYY/MM/DD/HH\" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket. For more information, see Amazon S3 Object Name Format in the Amazon Kinesis Firehose Developer Guide.

", + "S3DestinationDescription$Prefix": "

The \"YYYY/MM/DD/HH\" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket. For more information, see Amazon S3 Object Name Format in the Amazon Kinesis Firehose Developer Guide.

", + "S3DestinationUpdate$Prefix": "

The \"YYYY/MM/DD/HH\" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket. For more information, see Amazon S3 Object Name Format in the Amazon Kinesis Firehose Developer Guide.

" + } + }, + "ProcessingConfiguration": { + "base": "

Describes a data processing configuration.

", + "refs": { + "ElasticsearchDestinationConfiguration$ProcessingConfiguration": "

The data processing configuration.

", + "ElasticsearchDestinationDescription$ProcessingConfiguration": "

The data processing configuration.

", + "ElasticsearchDestinationUpdate$ProcessingConfiguration": "

The data processing configuration.

", + "ExtendedS3DestinationConfiguration$ProcessingConfiguration": "

The data processing configuration.

", + "ExtendedS3DestinationDescription$ProcessingConfiguration": "

The data processing configuration.

", + "ExtendedS3DestinationUpdate$ProcessingConfiguration": "

The data processing configuration.

", + "RedshiftDestinationConfiguration$ProcessingConfiguration": "

The data processing configuration.

", + "RedshiftDestinationDescription$ProcessingConfiguration": "

The data processing configuration.

", + "RedshiftDestinationUpdate$ProcessingConfiguration": "

The data processing configuration.

" + } + }, + "Processor": { + "base": "

Describes a data processor.

", + "refs": { + "ProcessorList$member": null + } + }, + "ProcessorList": { + "base": null, + "refs": { + "ProcessingConfiguration$Processors": "

The data processors.

" + } + }, + "ProcessorParameter": { + "base": "

Describes the processor parameter.

", + "refs": { + "ProcessorParameterList$member": null + } + }, + "ProcessorParameterList": { + "base": null, + "refs": { + "Processor$Parameters": "

The processor parameters.

" + } + }, + "ProcessorParameterName": { + "base": null, + "refs": { + "ProcessorParameter$ParameterName": "

The name of the parameter.

" + } + }, + "ProcessorParameterValue": { + "base": null, + "refs": { + "ProcessorParameter$ParameterValue": "

The parameter value.

" + } + }, + "ProcessorType": { + "base": null, + "refs": { + "Processor$Type": "

The type of processor.

" } }, "PutRecordBatchInput": { - "base": "

Contains the parameters for PutRecordBatch.

", + "base": null, "refs": { } }, "PutRecordBatchOutput": { - "base": "

Contains the output of PutRecordBatch.

", + "base": null, "refs": { } }, @@ -429,16 +522,16 @@ "PutRecordBatchResponseEntryList": { "base": null, "refs": { - "PutRecordBatchOutput$RequestResponses": "

The results for the individual records. The index of each element matches the same index in which records were sent.

" + "PutRecordBatchOutput$RequestResponses": "

The results array. For each record, the index of the response element is the same as the index used in the request array.

" } }, "PutRecordInput": { - "base": "

Contains the parameters for PutRecord.

", + "base": null, "refs": { } }, "PutRecordOutput": { - "base": "

Contains the output of PutRecord.

", + "base": null, "refs": { } }, @@ -459,7 +552,7 @@ "RedshiftDestinationConfiguration": { "base": "

Describes the configuration of a destination in Amazon Redshift.

", "refs": { - "CreateDeliveryStreamInput$RedshiftDestinationConfiguration": "

The destination in Amazon Redshift. This value cannot be specified if Amazon S3 or Amazon Elasticsearch is the desired destination (see restrictions listed above).

" + "CreateDeliveryStreamInput$RedshiftDestinationConfiguration": "

The destination in Amazon Redshift. You can specify only one destination.

" } }, "RedshiftDestinationDescription": { @@ -483,9 +576,17 @@ "RedshiftRetryOptions": { "base": "

Configures retry behavior in the event that Firehose is unable to deliver documents to Amazon Redshift.

", "refs": { - "RedshiftDestinationConfiguration$RetryOptions": "

Configures retry behavior in the event that Firehose is unable to deliver documents to Amazon Redshift. Default value is 3600 (60 minutes).

", - "RedshiftDestinationDescription$RetryOptions": "

Configures retry behavior in the event that Firehose is unable to deliver documents to Amazon Redshift. Default value is 3600 (60 minutes).

", - "RedshiftDestinationUpdate$RetryOptions": "

Configures retry behavior in the event that Firehose is unable to deliver documents to Amazon Redshift. Default value is 3600 (60 minutes).

" + "RedshiftDestinationConfiguration$RetryOptions": "

The retry behavior in the event that Firehose is unable to deliver documents to Amazon Redshift. Default value is 3600 (60 minutes).

", + "RedshiftDestinationDescription$RetryOptions": "

The retry behavior in the event that Firehose is unable to deliver documents to Amazon Redshift. Default value is 3600 (60 minutes).

", + "RedshiftDestinationUpdate$RetryOptions": "

The retry behavior in the event that Firehose is unable to deliver documents to Amazon Redshift. Default value is 3600 (60 minutes).

" + } + }, + "RedshiftS3BackupMode": { + "base": null, + "refs": { + "RedshiftDestinationConfiguration$S3BackupMode": "

The Amazon S3 backup mode.

", + "RedshiftDestinationDescription$S3BackupMode": "

The Amazon S3 backup mode.

", + "RedshiftDestinationUpdate$S3BackupMode": "

The Amazon S3 backup mode.

" } }, "ResourceInUseException": { @@ -504,6 +605,9 @@ "ElasticsearchDestinationConfiguration$RoleARN": "

The ARN of the IAM role to be assumed by Firehose for calling the Amazon ES Configuration API and for indexing documents. For more information, see Amazon S3 Bucket Access.

", "ElasticsearchDestinationDescription$RoleARN": "

The ARN of the AWS credentials.

", "ElasticsearchDestinationUpdate$RoleARN": "

The ARN of the IAM role to be assumed by Firehose for calling the Amazon ES Configuration API and for indexing documents. For more information, see Amazon S3 Bucket Access.

", + "ExtendedS3DestinationConfiguration$RoleARN": "

The ARN of the AWS credentials.

", + "ExtendedS3DestinationDescription$RoleARN": "

The ARN of the AWS credentials.

", + "ExtendedS3DestinationUpdate$RoleARN": "

The ARN of the AWS credentials.

", "RedshiftDestinationConfiguration$RoleARN": "

The ARN of the AWS credentials.

", "RedshiftDestinationDescription$RoleARN": "

The ARN of the AWS credentials.

", "RedshiftDestinationUpdate$RoleARN": "

The ARN of the AWS credentials.

", @@ -512,28 +616,42 @@ "S3DestinationUpdate$RoleARN": "

The ARN of the AWS credentials.

" } }, + "S3BackupMode": { + "base": null, + "refs": { + "ExtendedS3DestinationConfiguration$S3BackupMode": "

The Amazon S3 backup mode.

", + "ExtendedS3DestinationDescription$S3BackupMode": "

The Amazon S3 backup mode.

", + "ExtendedS3DestinationUpdate$S3BackupMode": "

Enables or disables Amazon S3 backup mode.

" + } + }, "S3DestinationConfiguration": { "base": "

Describes the configuration of a destination in Amazon S3.

", "refs": { - "CreateDeliveryStreamInput$S3DestinationConfiguration": "

The destination in Amazon S3. This value must be specified if ElasticsearchDestinationConfiguration or RedshiftDestinationConfiguration is specified (see restrictions listed above).

", - "ElasticsearchDestinationConfiguration$S3Configuration": null, - "RedshiftDestinationConfiguration$S3Configuration": "

The S3 configuration for the intermediate location from which Amazon Redshift obtains data. Restrictions are described in the topic for CreateDeliveryStream.

The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationConfiguration.S3Configuration because the Amazon Redshift COPY operation that reads from the S3 bucket doesn't support these compression formats.

" + "CreateDeliveryStreamInput$S3DestinationConfiguration": "

[Deprecated] The destination in Amazon S3. You can specify only one destination.

", + "ElasticsearchDestinationConfiguration$S3Configuration": "

The configuration for the intermediate Amazon S3 location from which Amazon ES obtains data.

", + "ExtendedS3DestinationConfiguration$S3BackupConfiguration": "

The configuration for backup in Amazon S3.

", + "RedshiftDestinationConfiguration$S3Configuration": "

The configuration for the intermediate Amazon S3 location from which Amazon Redshift obtains data. Restrictions are described in the topic for CreateDeliveryStream.

The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationConfiguration.S3Configuration because the Amazon Redshift COPY operation that reads from the S3 bucket doesn't support these compression formats.

", + "RedshiftDestinationConfiguration$S3BackupConfiguration": "

The configuration for backup in Amazon S3.

" } }, "S3DestinationDescription": { "base": "

Describes a destination in Amazon S3.

", "refs": { - "DestinationDescription$S3DestinationDescription": "

The Amazon S3 destination.

", - "ElasticsearchDestinationDescription$S3DestinationDescription": null, - "RedshiftDestinationDescription$S3DestinationDescription": "

The Amazon S3 destination.

" + "DestinationDescription$S3DestinationDescription": "

[Deprecated] The destination in Amazon S3.

", + "ElasticsearchDestinationDescription$S3DestinationDescription": "

The Amazon S3 destination.

", + "ExtendedS3DestinationDescription$S3BackupDescription": "

The configuration for backup in Amazon S3.

", + "RedshiftDestinationDescription$S3DestinationDescription": "

The Amazon S3 destination.

", + "RedshiftDestinationDescription$S3BackupDescription": "

The configuration for backup in Amazon S3.

" } }, "S3DestinationUpdate": { "base": "

Describes an update for a destination in Amazon S3.

", "refs": { - "ElasticsearchDestinationUpdate$S3Update": null, + "ElasticsearchDestinationUpdate$S3Update": "

The Amazon S3 destination.

", + "ExtendedS3DestinationUpdate$S3BackupUpdate": "

The Amazon S3 destination for backup.

", "RedshiftDestinationUpdate$S3Update": "

The Amazon S3 destination.

The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationUpdate.S3Update because the Amazon Redshift COPY operation that reads from the S3 bucket doesn't support these compression formats.

", - "UpdateDestinationInput$S3DestinationUpdate": "

Describes an update for a destination in Amazon S3.

" + "RedshiftDestinationUpdate$S3BackupUpdate": "

The Amazon S3 destination for backup.

", + "UpdateDestinationInput$S3DestinationUpdate": "

[Deprecated] Describes an update for a destination in Amazon S3.

" } }, "ServiceUnavailableException": { @@ -544,7 +662,7 @@ "SizeInMBs": { "base": null, "refs": { - "BufferingHints$SizeInMBs": "

Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5.

We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher.

" + "BufferingHints$SizeInMBs": "

Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5.

We recommend setting this parameter to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec, the value should be 10 MB or higher.

" } }, "Timestamp": { @@ -555,12 +673,12 @@ } }, "UpdateDestinationInput": { - "base": "

Contains the parameters for UpdateDestination.

", + "base": null, "refs": { } }, "UpdateDestinationOutput": { - "base": "

Contains the output of UpdateDestination.

", + "base": null, "refs": { } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/firehose/2015-08-04/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/firehose/2015-08-04/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/firehose/2015-08-04/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/api-2.json index 05001897b..985f57767 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/api-2.json @@ -7,7 +7,8 @@ "protocol":"json", "serviceFullName":"Amazon GameLift", "signatureVersion":"v4", - "targetPrefix":"GameLift" + "targetPrefix":"GameLift", + "uid":"gamelift-2015-10-01" }, "operations":{ "CreateAlias":{ @@ -79,6 +80,20 @@ {"shape":"IdempotentParameterMismatchException"} ] }, + "CreateGameSessionQueue":{ + "name":"CreateGameSessionQueue", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateGameSessionQueueInput"}, + "output":{"shape":"CreateGameSessionQueueOutput"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"UnauthorizedException"} + ] + }, "CreatePlayerSession":{ "name":"CreatePlayerSession", "http":{ @@ -158,6 +173,21 @@ {"shape":"InvalidRequestException"} ] }, + "DeleteGameSessionQueue":{ + "name":"DeleteGameSessionQueue", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteGameSessionQueueInput"}, + "output":{"shape":"DeleteGameSessionQueueOutput"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"} + ] + }, "DeleteScalingPolicy":{ "name":"DeleteScalingPolicy", "http":{ @@ -307,6 +337,36 @@ {"shape":"TerminalRoutingStrategyException"} ] }, + "DescribeGameSessionPlacement":{ + "name":"DescribeGameSessionPlacement", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeGameSessionPlacementInput"}, + "output":{"shape":"DescribeGameSessionPlacementOutput"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"} + ] + }, + "DescribeGameSessionQueues":{ + "name":"DescribeGameSessionQueues", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeGameSessionQueuesInput"}, + "output":{"shape":"DescribeGameSessionQueuesOutput"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"} + ] + }, "DescribeGameSessions":{ "name":"DescribeGameSessions", "http":{ @@ -398,6 +458,21 @@ {"shape":"InvalidRequestException"} ] }, + "GetInstanceAccess":{ + "name":"GetInstanceAccess", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetInstanceAccessInput"}, + "output":{"shape":"GetInstanceAccessOutput"}, + "errors":[ + {"shape":"UnauthorizedException"}, + {"shape":"InvalidRequestException"}, + {"shape":"NotFoundException"}, + {"shape":"InternalServiceException"} + ] + }, "ListAliases":{ "name":"ListAliases", "http":{ @@ -503,6 +578,36 @@ {"shape":"TerminalRoutingStrategyException"} ] }, + "StartGameSessionPlacement":{ + "name":"StartGameSessionPlacement", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartGameSessionPlacementInput"}, + "output":{"shape":"StartGameSessionPlacementOutput"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"} + ] + }, + "StopGameSessionPlacement":{ + "name":"StopGameSessionPlacement", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopGameSessionPlacementInput"}, + "output":{"shape":"StopGameSessionPlacementOutput"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"} + ] + }, "UpdateAlias":{ "name":"UpdateAlias", "http":{ @@ -604,6 +709,21 @@ {"shape":"InvalidRequestException"} ] }, + "UpdateGameSessionQueue":{ + "name":"UpdateGameSessionQueue", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateGameSessionQueueInput"}, + "output":{"shape":"UpdateGameSessionQueueOutput"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"} + ] + }, "UpdateRuntimeConfiguration":{ "name":"UpdateRuntimeConfiguration", "http":{ @@ -627,6 +747,7 @@ "members":{ "AliasId":{"shape":"AliasId"}, "Name":{"shape":"NonBlankAndLengthConstraintString"}, + "AliasArn":{"shape":"ArnStringModel"}, "Description":{"shape":"FreeText"}, "RoutingStrategy":{"shape":"RoutingStrategy"}, "CreationTime":{"shape":"Timestamp"}, @@ -781,6 +902,21 @@ "GameSession":{"shape":"GameSession"} } }, + "CreateGameSessionQueueInput":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"GameSessionQueueName"}, + "TimeoutInSeconds":{"shape":"WholeNumber"}, + "Destinations":{"shape":"GameSessionQueueDestinationList"} + } + }, + "CreateGameSessionQueueOutput":{ + "type":"structure", + "members":{ + "GameSessionQueue":{"shape":"GameSessionQueue"} + } + }, "CreatePlayerSessionInput":{ "type":"structure", "required":[ @@ -789,7 +925,8 @@ ], "members":{ "GameSessionId":{"shape":"ArnStringModel"}, - "PlayerId":{"shape":"NonZeroAndMaxString"} + "PlayerId":{"shape":"NonZeroAndMaxString"}, + "PlayerData":{"shape":"PlayerData"} } }, "CreatePlayerSessionOutput":{ @@ -806,7 +943,8 @@ ], "members":{ "GameSessionId":{"shape":"ArnStringModel"}, - "PlayerIds":{"shape":"PlayerIdList"} + "PlayerIds":{"shape":"PlayerIdList"}, + "PlayerDataMap":{"shape":"PlayerDataMap"} } }, "CreatePlayerSessionsOutput":{ @@ -836,6 +974,18 @@ "FleetId":{"shape":"FleetId"} } }, + "DeleteGameSessionQueueInput":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"GameSessionQueueName"} + } + }, + "DeleteGameSessionQueueOutput":{ + "type":"structure", + "members":{ + } + }, "DeleteScalingPolicyInput":{ "type":"structure", "required":[ @@ -979,6 +1129,34 @@ "NextToken":{"shape":"NonZeroAndMaxString"} } }, + "DescribeGameSessionPlacementInput":{ + "type":"structure", + "required":["PlacementId"], + "members":{ + "PlacementId":{"shape":"IdStringModel"} + } + }, + "DescribeGameSessionPlacementOutput":{ + "type":"structure", + "members":{ + "GameSessionPlacement":{"shape":"GameSessionPlacement"} + } + }, + "DescribeGameSessionQueuesInput":{ + "type":"structure", + "members":{ + "Names":{"shape":"GameSessionQueueNameList"}, + "Limit":{"shape":"PositiveInteger"}, + "NextToken":{"shape":"NonZeroAndMaxString"} + } + }, + "DescribeGameSessionQueuesOutput":{ + "type":"structure", + "members":{ + "GameSessionQueues":{"shape":"GameSessionQueueList"}, + "NextToken":{"shape":"NonZeroAndMaxString"} + } + }, "DescribeGameSessionsInput":{ "type":"structure", "members":{ @@ -1062,6 +1240,17 @@ "NextToken":{"shape":"NonZeroAndMaxString"} } }, + "DesiredPlayerSession":{ + "type":"structure", + "members":{ + "PlayerId":{"shape":"NonZeroAndMaxString"}, + "PlayerData":{"shape":"PlayerData"} + } + }, + "DesiredPlayerSessionList":{ + "type":"list", + "member":{"shape":"DesiredPlayerSession"} + }, "Double":{"type":"double"}, "EC2InstanceCounts":{ "type":"structure", @@ -1150,7 +1339,15 @@ "FLEET_VALIDATION_TIMED_OUT", "FLEET_ACTIVATION_FAILED", "FLEET_ACTIVATION_FAILED_NO_INSTANCES", - "FLEET_NEW_GAME_SESSION_PROTECTION_POLICY_UPDATED" + "FLEET_NEW_GAME_SESSION_PROTECTION_POLICY_UPDATED", + "SERVER_PROCESS_INVALID_PATH", + "SERVER_PROCESS_SDK_INITIALIZATION_TIMEOUT", + "SERVER_PROCESS_PROCESS_READY_TIMEOUT", + "SERVER_PROCESS_CRASHED", + "SERVER_PROCESS_TERMINATED_UNHEALTHY", + "SERVER_PROCESS_FORCE_TERMINATED", + "SERVER_PROCESS_PROCESS_EXIT_TIMEOUT", + "GAME_SESSION_ACTIVATION_TIMEOUT" ] }, "EventList":{ @@ -1161,6 +1358,7 @@ "type":"structure", "members":{ "FleetId":{"shape":"FleetId"}, + "FleetArn":{"shape":"ArnStringModel"}, "Description":{"shape":"NonZeroAndMaxString"}, "Name":{"shape":"NonZeroAndMaxString"}, "CreationTime":{"shape":"Timestamp"}, @@ -1235,6 +1433,7 @@ "type":"list", "member":{"shape":"FleetUtilization"} }, + "Float":{"type":"float"}, "FreeText":{"type":"string"}, "GameProperty":{ "type":"structure", @@ -1300,6 +1499,63 @@ "type":"list", "member":{"shape":"GameSession"} }, + "GameSessionPlacement":{ + "type":"structure", + "members":{ + "PlacementId":{"shape":"IdStringModel"}, + "GameSessionQueueName":{"shape":"GameSessionQueueName"}, + "Status":{"shape":"GameSessionPlacementState"}, + "GameProperties":{"shape":"GamePropertyList"}, + "MaximumPlayerSessionCount":{"shape":"WholeNumber"}, + "GameSessionName":{"shape":"NonZeroAndMaxString"}, + "GameSessionArn":{"shape":"NonZeroAndMaxString"}, + "GameSessionRegion":{"shape":"NonZeroAndMaxString"}, + "PlayerLatencies":{"shape":"PlayerLatencyList"}, + "StartTime":{"shape":"Timestamp"}, + "EndTime":{"shape":"Timestamp"} + } + }, + "GameSessionPlacementState":{ + "type":"string", + "enum":[ + "PENDING", + "FULFILLED", + "CANCELLED", + "TIMED_OUT" + ] + }, + "GameSessionQueue":{ + "type":"structure", + "members":{ + "Name":{"shape":"GameSessionQueueName"}, + "TimeoutInSeconds":{"shape":"WholeNumber"}, + "Destinations":{"shape":"GameSessionQueueDestinationList"} + } + }, + "GameSessionQueueDestination":{ + "type":"structure", + "members":{ + "DestinationArn":{"shape":"ArnStringModel"} + } + }, + "GameSessionQueueDestinationList":{ + "type":"list", + "member":{"shape":"GameSessionQueueDestination"} + }, + "GameSessionQueueList":{ + "type":"list", + "member":{"shape":"GameSessionQueue"} + }, + "GameSessionQueueName":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[a-zA-Z0-9-]+" + }, + "GameSessionQueueNameList":{ + "type":"list", + "member":{"shape":"GameSessionQueueName"} + }, "GameSessionStatus":{ "type":"string", "enum":[ @@ -1323,6 +1579,23 @@ "PreSignedUrl":{"shape":"NonZeroAndMaxString"} } }, + "GetInstanceAccessInput":{ + "type":"structure", + "required":[ + "FleetId", + "InstanceId" + ], + "members":{ + "FleetId":{"shape":"FleetId"}, + "InstanceId":{"shape":"InstanceId"} + } + }, + "GetInstanceAccessOutput":{ + "type":"structure", + "members":{ + "InstanceAccess":{"shape":"InstanceAccess"} + } + }, "IdStringModel":{ "type":"string", "max":48, @@ -1348,6 +1621,24 @@ "CreationTime":{"shape":"Timestamp"} } }, + "InstanceAccess":{ + "type":"structure", + "members":{ + "FleetId":{"shape":"FleetId"}, + "InstanceId":{"shape":"InstanceId"}, + "IpAddress":{"shape":"IpAddress"}, + "OperatingSystem":{"shape":"OperatingSystem"}, + "Credentials":{"shape":"InstanceCredentials"} + } + }, + "InstanceCredentials":{ + "type":"structure", + "members":{ + "UserName":{"shape":"NonEmptyString"}, + "Secret":{"shape":"NonEmptyString"} + }, + "sensitive":true + }, "InstanceId":{ "type":"string", "pattern":"[a-zA-Z0-9\\.-]+" @@ -1483,7 +1774,9 @@ "ActiveInstances", "AvailablePlayerSessions", "CurrentPlayerSessions", - "IdleInstances" + "IdleInstances", + "QueueDepth", + "WaitTime" ] }, "NonBlankAndLengthConstraintString":{ @@ -1519,12 +1812,34 @@ "AMAZON_LINUX" ] }, + "PlayerData":{ + "type":"string", + "max":2048, + "min":1 + }, + "PlayerDataMap":{ + "type":"map", + "key":{"shape":"NonZeroAndMaxString"}, + "value":{"shape":"PlayerData"} + }, "PlayerIdList":{ "type":"list", "member":{"shape":"NonZeroAndMaxString"}, "max":25, "min":1 }, + "PlayerLatency":{ + "type":"structure", + "members":{ + "PlayerId":{"shape":"NonZeroAndMaxString"}, + "RegionIdentifier":{"shape":"NonZeroAndMaxString"}, + "LatencyInMilliseconds":{"shape":"Float"} + } + }, + "PlayerLatencyList":{ + "type":"list", + "member":{"shape":"PlayerLatency"} + }, "PlayerSession":{ "type":"structure", "members":{ @@ -1536,7 +1851,8 @@ "TerminationTime":{"shape":"Timestamp"}, "Status":{"shape":"PlayerSessionStatus"}, "IpAddress":{"shape":"IpAddress"}, - "Port":{"shape":"PortNumber"} + "Port":{"shape":"PortNumber"}, + "PlayerData":{"shape":"PlayerData"} } }, "PlayerSessionCreationPolicy":{ @@ -1749,6 +2065,42 @@ "max":50, "min":1 }, + "StartGameSessionPlacementInput":{ + "type":"structure", + "required":[ + "PlacementId", + "GameSessionQueueName", + "MaximumPlayerSessionCount" + ], + "members":{ + "PlacementId":{"shape":"IdStringModel"}, + "GameSessionQueueName":{"shape":"GameSessionQueueName"}, + "GameProperties":{"shape":"GamePropertyList"}, + "MaximumPlayerSessionCount":{"shape":"WholeNumber"}, + "GameSessionName":{"shape":"NonZeroAndMaxString"}, + "PlayerLatencies":{"shape":"PlayerLatencyList"}, + "DesiredPlayerSessions":{"shape":"DesiredPlayerSessionList"} + } + }, + "StartGameSessionPlacementOutput":{ + "type":"structure", + "members":{ + "GameSessionPlacement":{"shape":"GameSessionPlacement"} + } + }, + "StopGameSessionPlacementInput":{ + "type":"structure", + "required":["PlacementId"], + "members":{ + "PlacementId":{"shape":"IdStringModel"} + } + }, + "StopGameSessionPlacementOutput":{ + "type":"structure", + "members":{ + "GameSessionPlacement":{"shape":"GameSessionPlacement"} + } + }, "StringList":{ "type":"list", "member":{"shape":"NonZeroAndMaxString"} @@ -1864,6 +2216,21 @@ "GameSession":{"shape":"GameSession"} } }, + "UpdateGameSessionQueueInput":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"GameSessionQueueName"}, + "TimeoutInSeconds":{"shape":"WholeNumber"}, + "Destinations":{"shape":"GameSessionQueueDestinationList"} + } + }, + "UpdateGameSessionQueueOutput":{ + "type":"structure", + "members":{ + "GameSessionQueue":{"shape":"GameSessionQueue"} + } + }, "UpdateRuntimeConfigurationInput":{ "type":"structure", "required":[ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/docs-2.json index d74891be4..a676affa3 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/docs-2.json @@ -1,68 +1,76 @@ { "version": "2.0", - "service": "Amazon GameLift Service

Welcome to the Amazon GameLift API Reference. Amazon GameLift is a managed Amazon Web Services (AWS) service for developers who need a scalable, server-based solution for multiplayer games. Amazon GameLift provides setup and deployment of game servers, and handles infrastructure scaling and session management.

This reference describes the low-level service API for GameLift. You can call this API directly or use the AWS SDK for your preferred language. The AWS SDK includes a set of high-level GameLift actions multiplayer game sessions. Alternatively, you can use the AWS command-line interface (CLI) tool, which includes commands for GameLift. For administrative actions, you can also use the Amazon GameLift console.

More Resources

Manage Games and Players Through GameLift

Call these actions from your game clients and/or services to create and manage multiplayer game sessions and player sessions.

Set Up and Manage Game Servers

Use these administrative actions to configure GameLift to host your game servers. When setting up GameLift, you will need to (1) configure a build for your game and upload build files, and (2) set up one or more fleets to host game sessions. Once you've created and activated a fleet, you can assign aliases to it, scale capacity, track performance and utilization, etc.

To view changes to the API, see the GameLift Document History page.

", + "service": "Amazon GameLift Service

Amazon GameLift is a managed service for developers who need a scalable, dedicated server solution for their multiplayer games. Amazon GameLift provides tools to acquire computing resources and deploy game servers, scale game server capacity to meed player demand, and track in-depth metrics on player usage and server performance.

The Amazon GameLift service API includes important functionality to:

  • Find game sessions and match players to games – Retrieve information on available game sessions; create new game sessions; send player requests to join a game session.

  • Configure and manage game server resources – Manage builds, fleets, queues, and aliases; set autoscaling policies; retrieve logs and metrics.

This reference guide describes the low-level service API for Amazon GameLift. We recommend using either the Amazon Web Services software development kit (AWS SDK), available in multiple languages, or the AWS command-line interface (CLI) tool. Both of these align with the low-level service API. In addition, you can use the AWS Management Console for Amazon GameLift for many administrative actions.

MORE RESOURCES

API SUMMARY

This list offers a functional overview of the Amazon GameLift service API.

Finding Games and Joining Players

You can enable players to connect to game servers on Amazon GameLift from a game client or through a game service (such as a matchmaking service). You can use these operations to discover actively running game or start new games. You can also match players to games, either singly or as a group.

  • Discover existing game sessions

    • SearchGameSessions – Get all available game sessions or search for game sessions that match a set of criteria.

  • Start a new game session

  • Manage game session objects

    • DescribeGameSessionDetails – Retrieve metadata and protection policies associated with one or more game sessions, including length of time active and current player count.

    • UpdateGameSession – Change game session settings, such as maximum player count and join policy.

    • GetGameSessionLogUrl – Get the location of saved logs for a game session.

  • Manage player sessions objects

Setting Up and Managing Game Servers

When setting up Amazon GameLift, first create a game build and upload the files to Amazon GameLift. Then use these operations to set up a fleet of resources to run your game servers. Manage games to scale capacity, adjust configuration settings, access raw utilization data, and more.

  • Manage game builds

    • CreateBuild – Create a new build by uploading files stored in an Amazon S3 bucket. (To create a build stored at a local file location, use the AWS CLI command upload-build.)

    • ListBuilds – Get a list of all builds uploaded to a Amazon GameLift region.

    • DescribeBuild – Retrieve information associated with a build.

    • UpdateBuild – Change build metadata, including build name and version.

    • DeleteBuild – Remove a build from Amazon GameLift.

  • Manage fleets

  • Control fleet capacity

    • DescribeEC2InstanceLimits – Retrieve maximum number of instances allowed for the current AWS account and the current usage level.

    • DescribeFleetCapacity / UpdateFleetCapacity – Retrieve the capacity settings and the current number of instances in a fleet; adjust fleet capacity settings to scale up or down.

    • Autoscale – Manage autoscaling rules and apply them to a fleet.

  • Access fleet activity statistics

    • DescribeFleetUtilization – Get current data on the number of server processes, game sessions, and players currently active on a fleet.

    • DescribeFleetEvents – Get a fleet's logged events for a specified time span.

    • DescribeGameSessions – Retrieve metadata associated with one or more game sessions, including length of time active and current player count.

  • Remotely access an instance

    • GetInstanceAccess – Request access credentials needed to remotely connect to a specified instance on a fleet.

  • Manage fleet aliases

    • CreateAlias – Define a new alias and optionally assign it to a fleet.

    • ListAliases – Get all fleet aliases defined in a Amazon GameLift region.

    • DescribeAlias – Retrieve information on an existing alias.

    • UpdateAlias – Change settings for a alias, such as redirecting it from one fleet to another.

    • DeleteAlias – Remove an alias from the region.

    • ResolveAlias – Get the fleet ID that a specified alias points to.

  • Manage game session queues

", "operations": { - "CreateAlias": "

Creates an alias for a fleet. You can use an alias to anonymize your fleet by referencing an alias instead of a specific fleet when you create game sessions. Amazon GameLift supports two types of routing strategies for aliases: simple and terminal. Use a simple alias to point to an active fleet. Use a terminal alias to display a message to incoming traffic instead of routing players to an active fleet. This option is useful when a game server is no longer supported but you want to provide better messaging than a standard 404 error.

To create a fleet alias, specify an alias name, routing strategy, and optional description. If successful, a new alias record is returned, including an alias ID, which you can reference when creating a game session. To reassign the alias to another fleet ID, call UpdateAlias.

", - "CreateBuild": "

Initializes a new build record and generates information required to upload a game build to Amazon GameLift. Once the build record has been created and its status is INITIALIZED, you can upload your game build.

Do not use this API action unless you are using your own Amazon Simple Storage Service (Amazon S3) client and need to manually upload your build files. Instead, to create a build, use the CLI command upload-build, which creates a new build record and uploads the build files in one step. (See the Amazon GameLift Developer Guide help on packaging and uploading your build.)

To create a new build, identify the operating system of the game server binaries. All game servers in a build must use the same operating system. Optionally, specify a build name and version; this metadata is stored with other properties in the build record and is displayed in the GameLift console (it is not visible to players). If successful, this action returns the newly created build record along with the Amazon S3 storage location and AWS account credentials. Use the location and credentials to upload your game build.

", - "CreateFleet": "

Creates a new fleet to run your game servers. A fleet is a set of Amazon Elastic Compute Cloud (Amazon EC2) instances, each of which can run multiple server processes to host game sessions. You configure a fleet to create instances with certain hardware specifications (see Amazon EC2 Instance Types for more information), and deploy a specified game build to each instance. A newly created fleet passes through several statuses; once it reaches the ACTIVE status, it can begin hosting game sessions.

To create a new fleet, provide a fleet name, an EC2 instance type, and a build ID of the game build to deploy. You can also configure the new fleet with the following settings: (1) a runtime configuration describing what server processes to run on each instance in the fleet (required to create fleet), (2) access permissions for inbound traffic, (3) fleet-wide game session protection, and (4) the location of default log files for GameLift to upload and store.

If the CreateFleet call is successful, Amazon GameLift performs the following tasks:

  • Creates a fleet record and sets the status to NEW (followed by other statuses as the fleet is activated).

  • Sets the fleet's capacity to 1 \"desired\", which causes GameLift to start one new EC2 instance.

  • Starts launching server processes on the instance. If the fleet is configured to run multiple server processes per instance, GameLift staggers each launch by a few seconds.

  • Begins writing events to the fleet event log, which can be accessed in the GameLift console.

  • Sets the fleet's status to ACTIVE once one server process in the fleet is ready to host a game session.

After a fleet is created, use the following actions to change fleet properties and configuration:

  • UpdateFleetAttributes -- Update fleet metadata, including name and description.

  • UpdateFleetCapacity -- Increase or decrease the number of instances you want the fleet to maintain.

  • UpdateFleetPortSettings -- Change the IP address and port ranges that allow access to incoming traffic.

  • UpdateRuntimeConfiguration -- Change how server processes are launched in the fleet, including launch path, launch parameters, and the number of concurrent processes.

", - "CreateGameSession": "

Creates a multiplayer game session for players. This action creates a game session record and assigns the new session to an instance in the specified fleet, which initializes a new server process to host the game session. A fleet must be in an ACTIVE status before a game session can be created in it.

To create a game session, specify either a fleet ID or an alias ID and indicate the maximum number of players the game session allows. You can also provide a name and a set of properties for your game (optional). If successful, a GameSession object is returned containing session properties, including an IP address. By default, newly created game sessions are set to accept adding any new players to the game session. Use UpdateGameSession to change the creation policy.

", - "CreatePlayerSession": "

Adds a player to a game session and creates a player session record. A game session must be in an ACTIVE status, have a creation policy of ALLOW_ALL, and have an open player slot before players can be added to the session.

To create a player session, specify a game session ID and player ID. If successful, the player is added to the game session and a new PlayerSession object is returned.

", - "CreatePlayerSessions": "

Adds a group of players to a game session. Similar to CreatePlayerSession, this action allows you to add multiple players in a single call, which is useful for games that provide party and/or matchmaking features. A game session must be in an ACTIVE status, have a creation policy of ALLOW_ALL, and have an open player slot before players can be added to the session.

To create player sessions, specify a game session ID and a list of player IDs. If successful, the players are added to the game session and a set of new PlayerSession objects is returned.

", - "DeleteAlias": "

Deletes an alias. This action removes all record of the alias; game clients attempting to access a server process using the deleted alias receive an error. To delete an alias, specify the alias ID to be deleted.

", + "CreateAlias": "

Creates an alias and sets a target fleet. A fleet alias can be used in place of a fleet ID, such as when calling CreateGameSession from a game client or game service or adding destinations to a game session queue. By changing an alias's target fleet, you can switch your players to the new fleet without changing any other component. In production, this feature is particularly useful to redirect your player base seamlessly to the latest game server update.

Amazon GameLift supports two types of routing strategies for aliases: simple and terminal. Use a simple alias to point to an active fleet. Use a terminal alias to display a message to incoming traffic instead of routing players to an active fleet. This option is useful when a game server is no longer supported but you want to provide better messaging than a standard 404 error.

To create a fleet alias, specify an alias name, routing strategy, and optional description. If successful, a new alias record is returned, including an alias ID, which you can reference when creating a game session. To reassign the alias to another fleet ID, call UpdateAlias.

", + "CreateBuild": "

Creates a new Amazon GameLift build from a set of game server binary files stored in an Amazon Simple Storage Service (Amazon S3) location. When using this API call, you must create a .zip file containing all of the build files and store it in an Amazon S3 bucket under your AWS account. For help on packaging your build files and creating a build, see Uploading Your Game to Amazon GameLift.

Use this API action ONLY if you are storing your game build files in an Amazon S3 bucket in your AWS account. To create a build using files stored in a directory, use the CLI command upload-build , which uploads the build files from a file location you specify and creates a build.

To create a new build using CreateBuild, identify the storage location and operating system of your game build. You also have the option of specifying a build name and version. If successful, this action creates a new build record with an unique build ID and in INITIALIZED status. Use the API call DescribeBuild to check the status of your build. A build must be in READY status before it can be used to create fleets to host your game.

", + "CreateFleet": "

Creates a new fleet to run your game servers. A fleet is a set of Amazon Elastic Compute Cloud (Amazon EC2) instances, each of which can run multiple server processes to host game sessions. You configure a fleet to create instances with certain hardware specifications (see Amazon EC2 Instance Types for more information), and deploy a specified game build to each instance. A newly created fleet passes through several statuses; once it reaches the ACTIVE status, it can begin hosting game sessions.

To create a new fleet, provide a fleet name, an EC2 instance type, and a build ID of the game build to deploy. You can also configure the new fleet with the following settings: (1) a runtime configuration describing what server processes to run on each instance in the fleet (required to create fleet), (2) access permissions for inbound traffic, (3) fleet-wide game session protection, and (4) the location of default log files for Amazon GameLift to upload and store.

If the CreateFleet call is successful, Amazon GameLift performs the following tasks:

  • Creates a fleet record and sets the status to NEW (followed by other statuses as the fleet is activated).

  • Sets the fleet's capacity to 1 \"desired\", which causes Amazon GameLift to start one new EC2 instance.

  • Starts launching server processes on the instance. If the fleet is configured to run multiple server processes per instance, Amazon GameLift staggers each launch by a few seconds.

  • Begins writing events to the fleet event log, which can be accessed in the Amazon GameLift console.

  • Sets the fleet's status to ACTIVE once one server process in the fleet is ready to host a game session.

After a fleet is created, use the following actions to change fleet properties and configuration:

  • UpdateFleetAttributes -- Update fleet metadata, including name and description.

  • UpdateFleetCapacity -- Increase or decrease the number of instances you want the fleet to maintain.

  • UpdateFleetPortSettings -- Change the IP address and port ranges that allow access to incoming traffic.

  • UpdateRuntimeConfiguration -- Change how server processes are launched in the fleet, including launch path, launch parameters, and the number of concurrent processes.

  • PutScalingPolicy -- Create or update rules that are used to set the fleet's capacity (autoscaling).

", + "CreateGameSession": "

Creates a multiplayer game session for players. This action creates a game session record and assigns an available server process in the specified fleet to host the game session. A fleet must have an ACTIVE status before a game session can be created in it.

To create a game session, specify either fleet ID or alias ID, and indicate a maximum number of players to allow in the game session. You can also provide a name and game-specific properties for this game session. If successful, a GameSession object is returned containing session properties, including an IP address. By default, newly created game sessions allow new players to join. Use UpdateGameSession to change the game session's player session creation policy.

When creating a game session on a fleet with a resource limit creation policy, the request should include a creator ID. If none is provided, Amazon GameLift does not evaluate the fleet's resource limit creation policy.

", + "CreateGameSessionQueue": "

Establishes a new queue for processing requests for new game sessions. A queue identifies where new game sessions can be hosted--by specifying a list of fleet destinations--and how long a request can remain in the queue waiting to be placed before timing out. Requests for new game sessions are added to a queue by calling StartGameSessionPlacement and referencing the queue name.

When processing a request for a game session, Amazon GameLift tries each destination in order until it finds one with available resources to host the new game session. A queue's default order is determined by how destinations are listed. This default order can be overridden in a game session placement request.

To create a new queue, provide a name, timeout value, and a list of destinations. If successful, a new queue object is returned.

", + "CreatePlayerSession": "

Adds a player to a game session and creates a player session record. Before a player can be added, a game session must have an ACTIVE status, have a creation policy of ALLOW_ALL, and have an open player slot. To add a group of players to a game session, use CreatePlayerSessions.

To create a player session, specify a game session ID, player ID, and optionally a string of player data. If successful, the player is added to the game session and a new PlayerSession object is returned. Player sessions cannot be updated.

", + "CreatePlayerSessions": "

Adds a group of players to a game session. This action is useful with a team matching feature. Before players can be added, a game session must have an ACTIVE status, have a creation policy of ALLOW_ALL, and have an open player slot. To add a single player to a game session, use CreatePlayerSession.

To create player sessions, specify a game session ID, a list of player IDs, and optionally a set of player data strings. If successful, the players are added to the game session and a set of new PlayerSession objects is returned. Player sessions cannot be updated.

", + "DeleteAlias": "

Deletes a fleet alias. This action removes all record of the alias. Game clients attempting to access a server process using the deleted alias receive an error. To delete an alias, specify the alias ID to be deleted.

", "DeleteBuild": "

Deletes a build. This action permanently deletes the build record and any uploaded build files.

To delete a build, specify its ID. Deleting a build does not affect the status of any active fleets using the build, but you can no longer create new fleets with the deleted build.

", "DeleteFleet": "

Deletes everything related to a fleet. Before deleting a fleet, you must set the fleet's desired capacity to zero. See UpdateFleetCapacity.

This action removes the fleet's resources and the fleet record. Once a fleet is deleted, you can no longer use that fleet.

", + "DeleteGameSessionQueue": "

Deletes a game session queue. This action means that any StartGameSessionPlacement requests that reference this queue will fail. To delete a queue, specify the queue name.

", "DeleteScalingPolicy": "

Deletes a fleet scaling policy. This action means that the policy is no longer in force and removes all record of it. To delete a scaling policy, specify both the scaling policy name and the fleet ID it is associated with.

", - "DescribeAlias": "

Retrieves properties for a specified alias. To get the alias, specify an alias ID. If successful, an Alias object is returned.

", + "DescribeAlias": "

Retrieves properties for a fleet alias. This operation returns all alias metadata and settings. To get just the fleet ID an alias is currently pointing to, use ResolveAlias.

To get alias properties, specify the alias ID. If successful, an Alias object is returned.

", "DescribeBuild": "

Retrieves properties for a build. To get a build record, specify a build ID. If successful, an object containing the build properties is returned.

", - "DescribeEC2InstanceLimits": "

Retrieves the following information for the specified EC2 instance type:

  • maximum number of instances allowed per AWS account (service limit)

  • current usage level for the AWS account

Service limits vary depending on region. Available regions for GameLift can be found in the AWS Management Console for GameLift (see the drop-down list in the upper right corner).

", + "DescribeEC2InstanceLimits": "

Retrieves the following information for the specified EC2 instance type:

  • maximum number of instances allowed per AWS account (service limit)

  • current usage level for the AWS account

Service limits vary depending on region. Available regions for Amazon GameLift can be found in the AWS Management Console for Amazon GameLift (see the drop-down list in the upper right corner).

", "DescribeFleetAttributes": "

Retrieves fleet properties, including metadata, status, and configuration, for one or more fleets. You can request attributes for all fleets, or specify a list of one or more fleet IDs. When requesting multiple fleets, use the pagination parameters to retrieve results as a set of sequential pages. If successful, a FleetAttributes object is returned for each requested fleet ID. When specifying a list of fleet IDs, attribute objects are returned only for fleets that currently exist.

Some API actions may limit the number of fleet IDs allowed in one request. If a request exceeds this limit, the request fails and the error message includes the maximum allowed.

", "DescribeFleetCapacity": "

Retrieves the current status of fleet capacity for one or more fleets. This information includes the number of instances that have been requested for the fleet and the number currently active. You can request capacity for all fleets, or specify a list of one or more fleet IDs. When requesting multiple fleets, use the pagination parameters to retrieve results as a set of sequential pages. If successful, a FleetCapacity object is returned for each requested fleet ID. When specifying a list of fleet IDs, attribute objects are returned only for fleets that currently exist.

Some API actions may limit the number of fleet IDs allowed in one request. If a request exceeds this limit, the request fails and the error message includes the maximum allowed.

", "DescribeFleetEvents": "

Retrieves entries from the specified fleet's event log. You can specify a time range to limit the result set. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, a collection of event log entries matching the request are returned.

", "DescribeFleetPortSettings": "

Retrieves the inbound connection permissions for a fleet. Connection permissions include a range of IP addresses and port settings that incoming traffic can use to access server processes in the fleet. To get a fleet's inbound connection permissions, specify a fleet ID. If successful, a collection of IpPermission objects is returned for the requested fleet ID. If the requested fleet has been deleted, the result set is empty.

", "DescribeFleetUtilization": "

Retrieves utilization statistics for one or more fleets. You can request utilization data for all fleets, or specify a list of one or more fleet IDs. When requesting multiple fleets, use the pagination parameters to retrieve results as a set of sequential pages. If successful, a FleetUtilization object is returned for each requested fleet ID. When specifying a list of fleet IDs, utilization objects are returned only for fleets that currently exist.

Some API actions may limit the number of fleet IDs allowed in one request. If a request exceeds this limit, the request fails and the error message includes the maximum allowed.

", "DescribeGameSessionDetails": "

Retrieves properties, including the protection policy in force, for one or more game sessions. This action can be used in several ways: (1) provide a GameSessionId to request details for a specific game session; (2) provide either a FleetId or an AliasId to request properties for all game sessions running on a fleet.

To get game session record(s), specify just one of the following: game session ID, fleet ID, or alias ID. You can filter this request by game session status. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, a GameSessionDetail object is returned for each session matching the request.

", - "DescribeGameSessions": "

Retrieves a set of one or more game sessions and properties. This action can be used in several ways: (1) provide a GameSessionId to request properties for a specific game session; (2) provide a FleetId or an AliasId to request properties for all game sessions running on a fleet. You can also use SearchGameSessions, which allows you to retrieve all game sessions or filter on certain criteria, but only returns game sessions with a status of ACTIVE. If you need to retrieve the protection policy for each game session, use DescribeGameSessionDetails.

To get game session record(s), specify just one of the following: game session ID, fleet ID, or alias ID. You can filter this request by game session status. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, a GameSession object is returned for each session matching the request.

", - "DescribeInstances": "

Retrieves information about instances in a fleet.

To get information on a specific instance, specify both a fleet ID and instance ID. To get information for all instances in a fleet, specify a fleet ID only. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, an Instance object is returned for each result.

", + "DescribeGameSessionPlacement": "

Retrieves properties and current status of a game session placement request. To get game session placement details, specify the placement ID. If successful, a GameSessionPlacement object is returned.

", + "DescribeGameSessionQueues": "

Retrieves the properties for one or more game session queues. When requesting multiple queues, use the pagination parameters to retrieve results as a set of sequential pages. If successful, a GameSessionQueue object is returned for each requested queue. When specifying a list of queues, objects are returned only for queues that currently exist in the region.

", + "DescribeGameSessions": "

Retrieves a set of one or more game sessions. Request a specific game session or request all game sessions on a fleet. Alternatively, use SearchGameSessions to request a set of active game sessions that are filtered by certain criteria. To retrieve protection policy settings for game sessions, use DescribeGameSessionDetails.

To get game sessions, specify one of the following: game session ID, fleet ID, or alias ID. You can filter this request by game session status. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, a GameSession object is returned for each game session matching the request.

", + "DescribeInstances": "

Retrieves information about a fleet's instances, including instance IDs. Use this action to get details on all instances in the fleet or get details on one specific instance.

To get a specific instance, specify fleet ID and instance ID. To get all instances in a fleet, specify a fleet ID only. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, an Instance object is returned for each result.

", "DescribePlayerSessions": "

Retrieves properties for one or more player sessions. This action can be used in several ways: (1) provide a PlayerSessionId parameter to request properties for a specific player session; (2) provide a GameSessionId parameter to request properties for all player sessions in the specified game session; (3) provide a PlayerId parameter to request properties for all player sessions of a specified player.

To get game session record(s), specify only one of the following: a player session ID, a game session ID, or a player ID. You can filter this request by player session status. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, a PlayerSession object is returned for each session matching the request.

", - "DescribeRuntimeConfiguration": "

Retrieves the current runtime configuration for the specified fleet. The runtime configuration tells GameLift how to launch server processes on instances in the fleet.

", + "DescribeRuntimeConfiguration": "

Retrieves the current runtime configuration for the specified fleet. The runtime configuration tells Amazon GameLift how to launch server processes on instances in the fleet.

", "DescribeScalingPolicies": "

Retrieves all scaling policies applied to a fleet.

To get a fleet's scaling policies, specify the fleet ID. You can filter this request by policy status, such as to retrieve only active scaling policies. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, set of ScalingPolicy objects is returned for the fleet.

", "GetGameSessionLogUrl": "

Retrieves the location of stored game session logs for a specified game session. When a game session is terminated, Amazon GameLift automatically stores the logs in Amazon S3. Use this URL to download the logs.

See the AWS Service Limits page for maximum log file sizes. Log files that exceed this limit are not saved.

", + "GetInstanceAccess": "

Requests remote access to a fleet instance. Remote access is useful for debugging, gathering benchmarking data, or watching activity in real time.

Access requires credentials that match the operating system of the instance. For a Windows instance, Amazon GameLift returns a user name and password as strings for use with a Windows Remote Desktop client. For a Linux instance, Amazon GameLift returns a user name and RSA private key, also as strings, for use with an SSH client. The private key must be saved in the proper format to a .pem file before using. If you're making this request using the AWS CLI, saving the secret can be handled as part of the GetInstanceAccess request. (See the example later in this topic). For more information on remote access, see Remotely Accessing an Instance.

To request access to a specific instance, specify the IDs of the instance and the fleet it belongs to. If successful, an InstanceAccess object is returned containing the instance's IP address and a set of credentials.

", "ListAliases": "

Retrieves a collection of alias records for this AWS account. You can filter the result set by alias name and/or routing strategy type. Use the pagination parameters to retrieve results in sequential pages.

Aliases are not listed in any particular order.

", "ListBuilds": "

Retrieves build records for all builds associated with the AWS account in use. You can limit results to builds that are in a specific status by using the Status parameter. Use the pagination parameters to retrieve results in a set of sequential pages.

Build records are not listed in any particular order.

", "ListFleets": "

Retrieves a collection of fleet records for this AWS account. You can filter the result set by build ID. Use the pagination parameters to retrieve results in sequential pages.

Fleet records are not listed in any particular order.

", "PutScalingPolicy": "

Creates or updates a scaling policy for a fleet. An active scaling policy prompts Amazon GameLift to track a certain metric for a fleet and automatically change the fleet's capacity in specific circumstances. Each scaling policy contains one rule statement. Fleets can have multiple scaling policies in force simultaneously.

A scaling policy rule statement has the following structure:

If [MetricName] is [ComparisonOperator] [Threshold] for [EvaluationPeriods] minutes, then [ScalingAdjustmentType] to/by [ScalingAdjustment].

For example, this policy: \"If the number of idle instances exceeds 20 for more than 15 minutes, then reduce the fleet capacity by 10 instances\" could be implemented as the following rule statement:

If [IdleInstances] is [GreaterThanOrEqualToThreshold] [20] for [15] minutes, then [ChangeInCapacity] by [-10].

To create or update a scaling policy, specify a unique combination of name and fleet ID, and set the rule values. All parameters for this action are required. If successful, the policy name is returned. Scaling policies cannot be suspended or made inactive. To stop enforcing a scaling policy, call DeleteScalingPolicy.

", - "RequestUploadCredentials": "

Retrieves a fresh set of upload credentials and the assigned Amazon S3 storage location for a specific build. Valid credentials are required to upload your game build files to Amazon S3.

Call this action only if you need credentials for a build created with CreateBuild . This is a rare situation; in most cases, builds are created using the CLI command upload-build, which creates a build record and also uploads build files.

Upload credentials are returned when you create the build, but they have a limited lifespan. You can get fresh credentials and use them to re-upload game files until the status of that build changes to READY. Once this happens, you must create a brand new build.

", + "RequestUploadCredentials": "

This API call is not currently in use. Retrieves a fresh set of upload credentials and the assigned Amazon S3 storage location for a specific build. Valid credentials are required to upload your game build files to Amazon S3.

", "ResolveAlias": "

Retrieves the fleet ID that a specified alias is currently pointing to.

", - "SearchGameSessions": "

Retrieves a set of game sessions that match a set of search criteria and sorts them in a specified order. Currently a game session search is limited to a single fleet. Search results include only game sessions that are in ACTIVE status. If you need to retrieve game sessions with a status other than active, use DescribeGameSessions. If you need to retrieve the protection policy for each game session, use DescribeGameSessionDetails.

You can search or sort by the following game session attributes:

  • gameSessionId -- ID value assigned to a game session. This unique value is returned in a GameSession object when a new game session is created.

  • gameSessionName -- Name assigned to a game session. This value is set when requesting a new game session with CreateGameSession or updating with UpdateGameSession. Game session names do not need to be unique to a game session.

  • creationTimeMillis -- Value indicating when a game session was created. It is expressed in Unix time as milliseconds.

  • playerSessionCount -- Number of players currently connected to a game session. This value changes rapidly as players join the session or drop out.

  • maximumSessions -- Maximum number of player sessions allowed for a game session. This value is set when requesting a new game session with CreateGameSession or updating with UpdateGameSession.

  • hasAvailablePlayerSessions -- Boolean value indicating whether or not a game session has reached its maximum number of players. When searching with this attribute, the search value must be true or false. It is highly recommended that all search requests include this filter attribute to optimize search performance and return only sessions that players can join.

To search or sort, specify either a fleet ID or an alias ID, and provide a search filter expression, a sort expression, or both. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, a collection of GameSession objects matching the request is returned.

Returned values for playerSessionCount and hasAvailablePlayerSessions change quickly as players join sessions and others drop out. Results should be considered a snapshot in time. Be sure to refresh search results often, and handle sessions that fill up before a player can join.

", - "UpdateAlias": "

Updates properties for an alias. To update properties, specify the alias ID to be updated and provide the information to be changed. To reassign an alias to another fleet, provide an updated routing strategy. If successful, the updated alias record is returned.

", + "SearchGameSessions": "

Retrieves a set of game sessions that match a set of search criteria and sorts them in a specified order. Currently a game session search is limited to a single fleet. Search results include only game sessions that are in ACTIVE status. If you need to retrieve game sessions with a status other than active, use DescribeGameSessions. If you need to retrieve the protection policy for each game session, use DescribeGameSessionDetails.

You can search or sort by the following game session attributes:

  • gameSessionId -- ID value assigned to a game session. This unique value is returned in a GameSession object when a new game session is created.

  • gameSessionName -- Name assigned to a game session. This value is set when requesting a new game session with CreateGameSession or updating with UpdateGameSession. Game session names do not need to be unique to a game session.

  • creationTimeMillis -- Value indicating when a game session was created. It is expressed in Unix time as milliseconds.

  • playerSessionCount -- Number of players currently connected to a game session. This value changes rapidly as players join the session or drop out.

  • maximumSessions -- Maximum number of player sessions allowed for a game session. This value is set when requesting a new game session with CreateGameSession or updating with UpdateGameSession.

  • hasAvailablePlayerSessions -- Boolean value indicating whether or not a game session has reached its maximum number of players. When searching with this attribute, the search value must be true or false. It is highly recommended that all search requests include this filter attribute to optimize search performance and return only sessions that players can join.

To search or sort, specify either a fleet ID or an alias ID, and provide a search filter expression, a sort expression, or both. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, a collection of GameSession objects matching the request is returned.

Returned values for playerSessionCount and hasAvailablePlayerSessions change quickly as players join sessions and others drop out. Results should be considered a snapshot in time. Be sure to refresh search results often, and handle sessions that fill up before a player can join.

", + "StartGameSessionPlacement": "

Places a request for a new game session in a queue (see CreateGameSessionQueue). When processing a placement request, Amazon GameLift attempts to create a new game session on one of the fleets associated with the queue. If no resources are available, Amazon GameLift tries again with another and so on until resources are found or the placement request times out. A game session placement request can also request player sessions. When a new game session is successfully created, Amazon GameLift creates a player session for each player included in the request.

When placing a game session, by default Amazon GameLift tries each fleet in the order they are listed in the queue configuration. Ideally, a queue's destinations are listed in preference order. Alternatively, when requesting a game session with players, you can also provide latency data for each player in relevant regions. Latency data indicates the performance lag a player experiences when connected to a fleet in the region. Amazon GameLift uses latency data to reorder the list of destinations to place the game session in a region with minimal lag. If latency data is provided for multiple players, Amazon GameLift calculates each region's average lag for all players and reorders to get the best game play across all players.

To place a new game session request, specify the queue name and a set of game session properties and settings. Also provide a unique ID (such as a UUID) for the placement. You'll use this ID to track the status of the placement request. Optionally, provide a set of IDs and player data for each player you want to join to the new game session. To optimize game play for the players, also provide latency data for all players. If successful, a new game session placement is created. To track the status of a placement request, call DescribeGameSessionPlacement and check the request's status. If the status is Fulfilled, a new game session has been created and a game session ARN and region are referenced. If the placement request times out, you have the option of resubmitting the request or retrying it with a different queue.

", + "StopGameSessionPlacement": "

Cancels a game session placement that is in Pending status. To stop a placement, provide the placement ID values. If successful, the placement is moved to Cancelled status.

", + "UpdateAlias": "

Updates properties for a fleet alias. To update properties, specify the alias ID to be updated and provide the information to be changed. To reassign an alias to another fleet, provide an updated routing strategy. If successful, the updated alias record is returned.

", "UpdateBuild": "

Updates metadata in a build record, including the build name and version. To update the metadata, specify the build ID to update and provide the new values. If successful, a build object containing the updated metadata is returned.

", "UpdateFleetAttributes": "

Updates fleet properties, including name and description, for a fleet. To update metadata, specify the fleet ID and the property values you want to change. If successful, the fleet ID for the updated fleet is returned.

", "UpdateFleetCapacity": "

Updates capacity settings for a fleet. Use this action to specify the number of EC2 instances (hosts) that you want this fleet to contain. Before calling this action, you may want to call DescribeEC2InstanceLimits to get the maximum capacity based on the fleet's EC2 instance type.

If you're using autoscaling (see PutScalingPolicy), you may want to specify a minimum and/or maximum capacity. If you don't provide these, autoscaling can set capacity anywhere between zero and the service limits.

To update fleet capacity, specify the fleet ID and the number of instances you want the fleet to host. If successful, Amazon GameLift starts or terminates instances so that the fleet's active instance count matches the desired instance count. You can view a fleet's current capacity information by calling DescribeFleetCapacity. If the desired instance count is higher than the instance type's limit, the \"Limit Exceeded\" exception occurs.

", "UpdateFleetPortSettings": "

Updates port settings for a fleet. To update settings, specify the fleet ID to be updated and list the permissions you want to update. List the permissions you want to add in InboundPermissionAuthorizations, and permissions you want to remove in InboundPermissionRevocations. Permissions to be removed must match existing fleet permissions. If successful, the fleet ID for the updated fleet is returned.

", "UpdateGameSession": "

Updates game session properties. This includes the session name, maximum player count, protection policy, which controls whether or not an active game session can be terminated during a scale-down event, and the player session creation policy, which controls whether or not new players can join the session. To update a game session, specify the game session ID and the values you want to change. If successful, an updated GameSession object is returned.

", - "UpdateRuntimeConfiguration": "

Updates the current runtime configuration for the specified fleet, which tells GameLift how to launch server processes on instances in the fleet. You can update a fleet's runtime configuration at any time after the fleet is created; it does not need to be in an ACTIVE status.

To update runtime configuration, specify the fleet ID and provide a RuntimeConfiguration object with the updated collection of server process configurations.

Each instance in a GameLift fleet checks regularly for an updated runtime configuration and changes how it launches server processes to comply with the latest version. Existing server processes are not affected by the update; they continue to run until they end, while GameLift simply adds new server processes to fit the current runtime configuration. As a result, the runtime configuration changes are applied gradually as existing processes shut down and new processes are launched in GameLift's normal process recycling activity.

" + "UpdateGameSessionQueue": "

Updates settings for a game session queue, which determines how new game session requests in the queue are processed. To update settings, specify the queue name to be updated and provide the new settings. When updating destinations, provide a complete list of destinations.

", + "UpdateRuntimeConfiguration": "

Updates the current runtime configuration for the specified fleet, which tells Amazon GameLift how to launch server processes on instances in the fleet. You can update a fleet's runtime configuration at any time after the fleet is created; it does not need to be in an ACTIVE status.

To update runtime configuration, specify the fleet ID and provide a RuntimeConfiguration object with the updated collection of server process configurations.

Each instance in a Amazon GameLift fleet checks regularly for an updated runtime configuration and changes how it launches server processes to comply with the latest version. Existing server processes are not affected by the update; they continue to run until they end, while Amazon GameLift simply adds new server processes to fit the current runtime configuration. As a result, the runtime configuration changes are applied gradually as existing processes shut down and new processes are launched in Amazon GameLift's normal process recycling activity.

" }, "shapes": { "Alias": { - "base": "

Properties describing a fleet alias.

", + "base": "

Properties describing a fleet alias.

Alias-related operations include:

", "refs": { "AliasList$member": null, - "CreateAliasOutput$Alias": "

Object containing the newly created alias record.

", - "DescribeAliasOutput$Alias": "

Object containing the requested alias.

", - "UpdateAliasOutput$Alias": "

Object containing the updated alias configuration.

" + "CreateAliasOutput$Alias": "

Object that describes the newly created alias record.

", + "DescribeAliasOutput$Alias": "

Object that contains the requested alias.

", + "UpdateAliasOutput$Alias": "

Object that contains the updated alias configuration.

" } }, "AliasId": { "base": null, "refs": { - "Alias$AliasId": "

Unique identifier for a fleet alias.

", - "CreateGameSessionInput$AliasId": "

Unique identifier for a fleet alias. Each request must reference either a fleet ID or alias ID, but not both.

", + "Alias$AliasId": "

Unique identifier for an alias; alias IDs are unique within a region.

", + "CreateGameSessionInput$AliasId": "

Unique identifier for an alias associated with the fleet to create a game session in. Each request must reference either a fleet ID or alias ID, but not both.

", "DeleteAliasInput$AliasId": "

Unique identifier for a fleet alias. Specify the alias you want to delete.

", "DescribeAliasInput$AliasId": "

Unique identifier for a fleet alias. Specify the alias you want to retrieve.

", - "DescribeGameSessionDetailsInput$AliasId": "

Unique identifier for a fleet alias. Specify an alias to retrieve information on all game sessions active on the fleet.

", - "DescribeGameSessionsInput$AliasId": "

Unique identifier for a fleet alias. Specify an alias to retrieve information on all game sessions active on the fleet.

", + "DescribeGameSessionDetailsInput$AliasId": "

Unique identifier for an alias associated with the fleet to retrieve all game sessions for.

", + "DescribeGameSessionsInput$AliasId": "

Unique identifier for an alias associated with the fleet to retrieve all game sessions for.

", "ResolveAliasInput$AliasId": "

Unique identifier for the alias you want to resolve.

", - "SearchGameSessionsInput$AliasId": "

Unique identifier for a fleet alias. Each request must reference either a fleet ID or alias ID, but not both.

", + "SearchGameSessionsInput$AliasId": "

Unique identifier for an alias associated with the fleet to search for active game sessions. Each request must reference either a fleet ID or alias ID, but not both.

", "UpdateAliasInput$AliasId": "

Unique identifier for a fleet alias. Specify the alias you want to update.

" } }, @@ -75,42 +83,45 @@ "ArnStringModel": { "base": null, "refs": { - "CreatePlayerSessionInput$GameSessionId": "

Unique identifier for the game session to add a player to. Game session ID format is as follows: \"arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID string>\". The value of <ID string> is either a custom ID string (if one was specified when the game session was created) an auto-generated string.

", - "CreatePlayerSessionsInput$GameSessionId": "

Unique identifier for the game session to add players to. Game session ID format is as follows: \"arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID string>\". The value of <ID string> is either a custom ID string (if one was specified when the game session was created) an auto-generated string.

", - "DescribeGameSessionDetailsInput$GameSessionId": "

Unique identifier for the game session to retrieve information on. Game session ID format is as follows: \"arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID string>\". The value of <ID string> is either a custom ID string (if one was specified when the game session was created) an auto-generated string.

", - "DescribeGameSessionsInput$GameSessionId": "

Unique identifier for the game session to retrieve information on. Game session ID format is as follows: \"arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID string>\". The value of <ID string> is either a custom ID string (if one was specified when the game session was created) an auto-generated string.

", - "DescribePlayerSessionsInput$GameSessionId": "

Unique identifier for the game session to get player sessions for.Game session ID format is as follows: \"arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID string>\". The value of <ID string> is either a custom ID string (if one was specified when the game session was created) an auto-generated string.

", - "GetGameSessionLogUrlInput$GameSessionId": "

Unique identifier for the game session to get logs for. Game session ID format is as follows: \"arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID string>\". The value of <ID string> is either a custom ID string (if one was specified when the game session was created) an auto-generated string.

", - "UpdateGameSessionInput$GameSessionId": "

Unique identifier for the game session to update. Game session ID format is as follows: \"arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID string>\". The value of <ID string> is either a custom ID string (if one was specified when the game session was created) an auto-generated string.

" + "Alias$AliasArn": "

Unique identifier for an alias; alias ARNs are unique across all regions.

", + "CreatePlayerSessionInput$GameSessionId": "

Unique identifier for the game session to add a player to.

", + "CreatePlayerSessionsInput$GameSessionId": "

Unique identifier for the game session to add players to.

", + "DescribeGameSessionDetailsInput$GameSessionId": "

Unique identifier for the game session to retrieve.

", + "DescribeGameSessionsInput$GameSessionId": "

Unique identifier for the game session to retrieve.

", + "DescribePlayerSessionsInput$GameSessionId": "

Unique identifier for the game session to retrieve player sessions for.

", + "FleetAttributes$FleetArn": "

Identifier for a fleet that is unique across all regions.

", + "GameSessionQueueDestination$DestinationArn": "

Amazon Resource Name (ARN) assigned to fleet or fleet alias. ARNs, which include a fleet ID or alias ID and a region name, provide a unique identifier across all regions.

", + "GetGameSessionLogUrlInput$GameSessionId": "

Unique identifier for the game session to get logs for.

", + "UpdateGameSessionInput$GameSessionId": "

Unique identifier for the game session to update.

" } }, "AwsCredentials": { - "base": "

AWS access credentials required to upload game build files to Amazon GameLift. These credentials are generated with CreateBuild, and are valid for a limited time. If they expire before you upload your game build, get a new set by calling RequestUploadCredentials.

", + "base": "

AWS access credentials sometimes used for uploading game build files to Amazon GameLift. They are valid for a limited time. If they expire before you upload your game build, get a new set by calling RequestUploadCredentials.

", "refs": { - "CreateBuildOutput$UploadCredentials": "

AWS credentials required when uploading a game build to the storage location. These credentials have a limited lifespan and are valid only for the build they were issued for. If you need to get fresh credentials, call RequestUploadCredentials .

", + "CreateBuildOutput$UploadCredentials": "

This element is not currently in use.

", "RequestUploadCredentialsOutput$UploadCredentials": "

AWS credentials required when uploading a game build to the storage location. These credentials have a limited lifespan and are valid only for the build they were issued for.

" } }, "Build": { - "base": "

Properties describing a game build.

", + "base": "

Properties describing a game build.

Build-related operations include:

", "refs": { "BuildList$member": null, - "CreateBuildOutput$Build": "

Set of properties for the newly created build.

", + "CreateBuildOutput$Build": "

The newly created build record, including a unique build ID and status.

", "DescribeBuildOutput$Build": "

Set of properties describing the requested build.

", - "UpdateBuildOutput$Build": "

Object containing the updated build record.

" + "UpdateBuildOutput$Build": "

Object that contains the updated build record.

" } }, "BuildId": { "base": null, "refs": { "Build$BuildId": "

Unique identifier for a build.

", - "CreateFleetInput$BuildId": "

Unique identifier of the build to be deployed on the new fleet. The build must have been successfully uploaded to GameLift and be in a READY status. This fleet setting cannot be changed once the fleet is created.

", - "DeleteBuildInput$BuildId": "

Unique identifier for the build you want to delete.

", - "DescribeBuildInput$BuildId": "

Unique identifier of the build that you want to retrieve properties for.

", + "CreateFleetInput$BuildId": "

Unique identifier for a build to be deployed on the new fleet. The build must have been successfully uploaded to Amazon GameLift and be in a READY status. This fleet setting cannot be changed once the fleet is created.

", + "DeleteBuildInput$BuildId": "

Unique identifier for a build to delete.

", + "DescribeBuildInput$BuildId": "

Unique identifier for a build to retrieve properties for.

", "FleetAttributes$BuildId": "

Unique identifier for a build.

", - "ListFleetsInput$BuildId": "

Unique identifier of the build to return fleets for. Use this parameter to return only fleets using the specified build. To retrieve all fleets, leave this parameter empty.

", - "RequestUploadCredentialsInput$BuildId": "

Unique identifier for the build you want to get credentials for.

", - "UpdateBuildInput$BuildId": "

Unique identifier of the build you want to update.

" + "ListFleetsInput$BuildId": "

Unique identifier for a build to return fleets for. Use this parameter to return only fleets using the specified build. To retrieve all fleets, leave this parameter empty.

", + "RequestUploadCredentialsInput$BuildId": "

Unique identifier for a build to get credentials for.

", + "UpdateBuildInput$BuildId": "

Unique identifier for a build to update.

" } }, "BuildList": { @@ -178,6 +189,16 @@ "refs": { } }, + "CreateGameSessionQueueInput": { + "base": null, + "refs": { + } + }, + "CreateGameSessionQueueOutput": { + "base": null, + "refs": { + } + }, "CreatePlayerSessionInput": { "base": "

Represents the input for a request action.

", "refs": { @@ -213,6 +234,16 @@ "refs": { } }, + "DeleteGameSessionQueueInput": { + "base": null, + "refs": { + } + }, + "DeleteGameSessionQueueOutput": { + "base": null, + "refs": { + } + }, "DeleteScalingPolicyInput": { "base": "

Represents the input for a request action.

", "refs": { @@ -308,6 +339,26 @@ "refs": { } }, + "DescribeGameSessionPlacementInput": { + "base": null, + "refs": { + } + }, + "DescribeGameSessionPlacementOutput": { + "base": null, + "refs": { + } + }, + "DescribeGameSessionQueuesInput": { + "base": null, + "refs": { + } + }, + "DescribeGameSessionQueuesOutput": { + "base": null, + "refs": { + } + }, "DescribeGameSessionsInput": { "base": "

Represents the input for a request action.

", "refs": { @@ -358,6 +409,18 @@ "refs": { } }, + "DesiredPlayerSession": { + "base": "

Player information for use when creating player sessions using a game session placement request with StartGameSessionPlacement.

", + "refs": { + "DesiredPlayerSessionList$member": null + } + }, + "DesiredPlayerSessionList": { + "base": null, + "refs": { + "StartGameSessionPlacementInput$DesiredPlayerSessions": "

Set of information on each player to create a player session for.

" + } + }, "Double": { "base": null, "refs": { @@ -380,21 +443,21 @@ "EC2InstanceLimitList": { "base": null, "refs": { - "DescribeEC2InstanceLimitsOutput$EC2InstanceLimits": "

Object containing the maximum number of instances for the specified instance type.

" + "DescribeEC2InstanceLimitsOutput$EC2InstanceLimits": "

Object that contains the maximum number of instances for the specified instance type.

" } }, "EC2InstanceType": { "base": null, "refs": { - "CreateFleetInput$EC2InstanceType": "

Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.

", - "DescribeEC2InstanceLimitsInput$EC2InstanceType": "

Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions. Leave this parameter blank to retrieve limits for all types.

", - "EC2InstanceLimit$EC2InstanceType": "

Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.

", - "FleetCapacity$InstanceType": "

Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.

", + "CreateFleetInput$EC2InstanceType": "

Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.

", + "DescribeEC2InstanceLimitsInput$EC2InstanceType": "

Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions. Leave this parameter blank to retrieve limits for all types.

", + "EC2InstanceLimit$EC2InstanceType": "

Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.

", + "FleetCapacity$InstanceType": "

Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.

", "Instance$Type": "

EC2 instance type that defines the computing resources of this instance.

" } }, "Event": { - "base": "

Log entry describing an event involving an Amazon GameLift resource (such as a fleet).

", + "base": "

Log entry describing an event involving Amazon GameLift resources (such as a fleet). In addition to tracking activity, event codes and messages can provide additional information for troubleshooting and debugging problems.

", "refs": { "EventList$member": null } @@ -402,7 +465,7 @@ "EventCode": { "base": null, "refs": { - "Event$EventCode": "

Type of event being logged.

" + "Event$EventCode": "

Type of event being logged.

" } }, "EventList": { @@ -444,50 +507,52 @@ "FleetId": { "base": null, "refs": { - "CreateGameSessionInput$FleetId": "

Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.

", - "DeleteFleetInput$FleetId": "

Unique identifier for the fleet you want to delete.

", - "DeleteScalingPolicyInput$FleetId": "

Unique identifier for a fleet.

", - "DescribeFleetEventsInput$FleetId": "

Unique identifier for the fleet to get event logs for.

", - "DescribeFleetPortSettingsInput$FleetId": "

Unique identifier for the fleet you want to retrieve port settings for.

", - "DescribeGameSessionDetailsInput$FleetId": "

Unique identifier for a fleet. Specify a fleet to retrieve information on all game sessions active on the fleet.

", - "DescribeGameSessionsInput$FleetId": "

Unique identifier for a fleet. Specify a fleet to retrieve information on all game sessions active on the fleet.

", - "DescribeInstancesInput$FleetId": "

Unique identifier for a fleet. Specify the fleet to retrieve instance information for.

", - "DescribeRuntimeConfigurationInput$FleetId": "

Unique identifier of the fleet to get the runtime configuration for.

", - "DescribeScalingPoliciesInput$FleetId": "

Unique identifier for a fleet. Specify the fleet to retrieve scaling policies for.

", + "CreateGameSessionInput$FleetId": "

Unique identifier for a fleet to create a game session in. Each request must reference either a fleet ID or alias ID, but not both.

", + "DeleteFleetInput$FleetId": "

Unique identifier for a fleet to be deleted.

", + "DeleteScalingPolicyInput$FleetId": "

Unique identifier for a fleet to be deleted.

", + "DescribeFleetEventsInput$FleetId": "

Unique identifier for a fleet to get event logs for.

", + "DescribeFleetPortSettingsInput$FleetId": "

Unique identifier for a fleet to retrieve port settings for.

", + "DescribeGameSessionDetailsInput$FleetId": "

Unique identifier for a fleet to retrieve all game sessions active on the fleet.

", + "DescribeGameSessionsInput$FleetId": "

Unique identifier for a fleet to retrieve all game sessions for.

", + "DescribeInstancesInput$FleetId": "

Unique identifier for a fleet to retrieve instance information for.

", + "DescribeRuntimeConfigurationInput$FleetId": "

Unique identifier for a fleet to get the runtime configuration for.

", + "DescribeScalingPoliciesInput$FleetId": "

Unique identifier for a fleet to retrieve scaling policies for.

", "FleetAttributes$FleetId": "

Unique identifier for a fleet.

", "FleetCapacity$FleetId": "

Unique identifier for a fleet.

", "FleetIdList$member": null, "FleetUtilization$FleetId": "

Unique identifier for a fleet.

", - "GameSession$FleetId": "

Unique identifier for a fleet.

", - "Instance$FleetId": "

Unique identifier for the fleet that the instance belongs to.

", - "PlayerSession$FleetId": "

Unique identifier for a fleet.

", - "PutScalingPolicyInput$FleetId": "

Unique identity for the fleet to scale with this policy.

", - "ResolveAliasOutput$FleetId": "

Fleet ID associated with the requested alias.

", - "RoutingStrategy$FleetId": "

Unique identifier for a fleet.

", - "ScalingPolicy$FleetId": "

Unique identity for the fleet associated with this scaling policy.

", - "SearchGameSessionsInput$FleetId": "

Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.

", - "UpdateFleetAttributesInput$FleetId": "

Unique identifier for the fleet you want to update attribute metadata for.

", - "UpdateFleetAttributesOutput$FleetId": "

Unique identifier for the updated fleet.

", - "UpdateFleetCapacityInput$FleetId": "

Unique identifier for the fleet you want to update capacity for.

", - "UpdateFleetCapacityOutput$FleetId": "

Unique identifier for the updated fleet.

", - "UpdateFleetPortSettingsInput$FleetId": "

Unique identifier for the fleet you want to update port settings for.

", - "UpdateFleetPortSettingsOutput$FleetId": "

Unique identifier for the updated fleet.

", - "UpdateRuntimeConfigurationInput$FleetId": "

Unique identifier of the fleet to update runtime configuration for.

" + "GameSession$FleetId": "

Unique identifier for a fleet the game session is running on.

", + "GetInstanceAccessInput$FleetId": "

Unique identifier for a fleet that contains the instance you want access to. The fleet can be in any of the following statuses: ACTIVATING, ACTIVE, or ERROR. Fleets with an ERROR status may be accessible for a short time before they are deleted.

", + "Instance$FleetId": "

Unique identifier for a fleet that the instance is in.

", + "InstanceAccess$FleetId": "

Unique identifier for a fleet containing the instance being accessed.

", + "PlayerSession$FleetId": "

Unique identifier for a fleet that the player's game session is running on.

", + "PutScalingPolicyInput$FleetId": "

Unique identifier for a fleet to apply this policy to.

", + "ResolveAliasOutput$FleetId": "

Fleet identifier that is associated with the requested alias.

", + "RoutingStrategy$FleetId": "

Unique identifier for a fleet that the alias points to.

", + "ScalingPolicy$FleetId": "

Unique identifier for a fleet that is associated with this scaling policy.

", + "SearchGameSessionsInput$FleetId": "

Unique identifier for a fleet to search for active game sessions. Each request must reference either a fleet ID or alias ID, but not both.

", + "UpdateFleetAttributesInput$FleetId": "

Unique identifier for a fleet to update attribute metadata for.

", + "UpdateFleetAttributesOutput$FleetId": "

Unique identifier for a fleet that was updated.

", + "UpdateFleetCapacityInput$FleetId": "

Unique identifier for a fleet to update capacity for.

", + "UpdateFleetCapacityOutput$FleetId": "

Unique identifier for a fleet that was updated.

", + "UpdateFleetPortSettingsInput$FleetId": "

Unique identifier for a fleet to update port settings for.

", + "UpdateFleetPortSettingsOutput$FleetId": "

Unique identifier for a fleet that was updated.

", + "UpdateRuntimeConfigurationInput$FleetId": "

Unique identifier for a fleet to update runtime configuration for.

" } }, "FleetIdList": { "base": null, "refs": { - "DescribeFleetAttributesInput$FleetIds": "

Unique identifiers for the fleet(s) that you want to retrieve attributes for. To request attributes for all fleets, leave this parameter empty.

", - "DescribeFleetCapacityInput$FleetIds": "

Unique identifier for the fleet(s) you want to retrieve capacity information for. To request capacity information for all fleets, leave this parameter empty.

", - "DescribeFleetUtilizationInput$FleetIds": "

Unique identifier for the fleet(s) you want to retrieve utilization data for. To request utilization data for all fleets, leave this parameter empty.

", - "ListFleetsOutput$FleetIds": "

Set of fleet IDs matching the list request. You can retrieve additional information about all returned fleets by passing this result set to a call to DescribeFleetAttributes, DescribeFleetCapacity, and DescribeFleetUtilization.

" + "DescribeFleetAttributesInput$FleetIds": "

Unique identifier for a fleet(s) to retrieve attributes for. To request attributes for all fleets, leave this parameter empty.

", + "DescribeFleetCapacityInput$FleetIds": "

Unique identifier for a fleet(s) to retrieve capacity information for. To request capacity information for all fleets, leave this parameter empty.

", + "DescribeFleetUtilizationInput$FleetIds": "

Unique identifier for a fleet(s) to retrieve utilization data for. To request utilization data for all fleets, leave this parameter empty.

", + "ListFleetsOutput$FleetIds": "

Set of fleet IDs matching the list request. You can retrieve additional information about all returned fleets by passing this result set to a call to DescribeFleetAttributes, DescribeFleetCapacity, or DescribeFleetUtilization.

" } }, "FleetStatus": { "base": null, "refs": { - "FleetAttributes$Status": "

Current status of the fleet.

Possible fleet statuses include the following:

  • NEW – A new fleet has been defined and desired instances is set to 1.

  • DOWNLOADING/VALIDATING/BUILDING/ACTIVATING – GameLift is setting up the new fleet, creating new instances with the game build and starting server processes.

  • ACTIVE – Hosts can now accept game sessions.

  • ERROR – An error occurred when downloading, validating, building, or activating the fleet.

  • DELETING – Hosts are responding to a delete fleet request.

  • TERMINATED – The fleet no longer exists.

" + "FleetAttributes$Status": "

Current status of the fleet.

Possible fleet statuses include the following:

  • NEW – A new fleet has been defined and desired instances is set to 1.

  • DOWNLOADING/VALIDATING/BUILDING/ACTIVATING – Amazon GameLift is setting up the new fleet, creating new instances with the game build and starting server processes.

  • ACTIVE – Hosts can now accept game sessions.

  • ERROR – An error occurred when downloading, validating, building, or activating the fleet.

  • DELETING – Hosts are responding to a delete fleet request.

  • TERMINATED – The fleet no longer exists.

" } }, "FleetUtilization": { @@ -502,12 +567,18 @@ "DescribeFleetUtilizationOutput$FleetUtilization": "

Collection of objects containing utilization information for each requested fleet ID.

" } }, + "Float": { + "base": null, + "refs": { + "PlayerLatency$LatencyInMilliseconds": "

Amount of time that represents the time lag experienced by the player when connected to the specified region.

" + } + }, "FreeText": { "base": null, "refs": { "Alias$Description": "

Human-readable description of an alias.

", - "Build$Name": "

Descriptive label associated with a build. Build names do not need to be unique. It can be set using CreateBuild or UpdateBuild.

", - "Build$Version": "

Version associated with this build. Version strings do not need to be unique to a build. This value can be set using CreateBuild or UpdateBuild.

", + "Build$Name": "

Descriptive label that is associated with a build. Build names do not need to be unique. It can be set using CreateBuild or UpdateBuild.

", + "Build$Version": "

Version that is associated with this build. Version strings do not need to be unique. This value can be set using CreateBuild or UpdateBuild.

", "RoutingStrategy$Message": "

Message text to be used with a terminal routing strategy.

" } }, @@ -526,8 +597,10 @@ "GamePropertyList": { "base": null, "refs": { - "CreateGameSessionInput$GameProperties": "

Set of properties used to administer a game session. These properties are passed to the server process hosting it.

", - "GameSession$GameProperties": "

Set of custom properties for the game session.

" + "CreateGameSessionInput$GameProperties": "

Set of developer-defined properties for a game session. These properties are passed to the server process hosting the game session.

", + "GameSession$GameProperties": "

Set of developer-defined properties for a game session. These properties are passed to the server process hosting the game session.

", + "GameSessionPlacement$GameProperties": "

Set of developer-defined properties for a game session. These properties are passed to the server process hosting the game session.

", + "StartGameSessionPlacementInput$GameProperties": "

Set of developer-defined properties for a game session. These properties are passed to the server process hosting the game session.

" } }, "GamePropertyValue": { @@ -539,14 +612,14 @@ "GameSession": { "base": "

Properties describing a game session.

", "refs": { - "CreateGameSessionOutput$GameSession": "

Object containing the newly created game session record.

", - "GameSessionDetail$GameSession": null, + "CreateGameSessionOutput$GameSession": "

Object that describes the newly created game session record.

", + "GameSessionDetail$GameSession": "

Object that describes a game session.

", "GameSessionList$member": null, - "UpdateGameSessionOutput$GameSession": "

Object containing the updated game session metadata.

" + "UpdateGameSessionOutput$GameSession": "

Object that contains the updated game session metadata.

" } }, "GameSessionDetail": { - "base": "

A game session's properties and the protection policy currently in force.

", + "base": "

A game session's properties plus the protection policy currently in force.

", "refs": { "GameSessionDetailList$member": null } @@ -569,10 +642,70 @@ "SearchGameSessionsOutput$GameSessions": "

Collection of objects containing game session properties for each session matching the request.

" } }, + "GameSessionPlacement": { + "base": "

Object that describes a StartGameSessionPlacement request. This object includes the full details of the original request plus the current status and start/end time stamps.

Game session placement-related operations include:

", + "refs": { + "DescribeGameSessionPlacementOutput$GameSessionPlacement": "

Object that describes the requested game session placement.

", + "StartGameSessionPlacementOutput$GameSessionPlacement": "

Object that describes the newly created game session placement. This object includes all the information provided in the request, as well as start/end time stamps and placement status.

", + "StopGameSessionPlacementOutput$GameSessionPlacement": "

Object that describes the cancelled game session placement, with cancelled status and an end time stamp.

" + } + }, + "GameSessionPlacementState": { + "base": null, + "refs": { + "GameSessionPlacement$Status": "

Current status of the game session placement request.

  • PENDING – The placement request is currently in the queue waiting to be processed.

  • FULFILLED – A new game session and player sessions (if requested) have been successfully created. Values for GameSessionArn and GameSessionRegion are available.

  • CANCELLED – The placement request was cancelled with a call to StopGameSessionPlacement.

  • TIMED_OUT – A new game session was not successfully created before the time limit expired. You can resubmit the placement request as needed.

" + } + }, + "GameSessionQueue": { + "base": "

Configuration of a queue used to process game session placement requests. The queue configuration identifies the fleets that new game session can be placed on, given available resources, and the length of time a request can remain in the queue waiting for placement.

Queue-related operations include:

", + "refs": { + "CreateGameSessionQueueOutput$GameSessionQueue": "

Object that describes the newly created game session queue.

", + "GameSessionQueueList$member": null, + "UpdateGameSessionQueueOutput$GameSessionQueue": "

Object that describes the newly updated game session queue.

" + } + }, + "GameSessionQueueDestination": { + "base": "

Fleet designated in a game session queue. Requests for new game sessions in the queue are fulfilled by starting a new game session on any destination listed for a queue.

", + "refs": { + "GameSessionQueueDestinationList$member": null + } + }, + "GameSessionQueueDestinationList": { + "base": null, + "refs": { + "CreateGameSessionQueueInput$Destinations": "

List of fleets that can be used to fulfill game session placement requests in the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference order.

", + "GameSessionQueue$Destinations": "

List of fleets that can be used to fulfill game session placement requests in the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference order.

", + "UpdateGameSessionQueueInput$Destinations": "

List of fleets that can be used to fulfill game session placement requests in the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference order.

" + } + }, + "GameSessionQueueList": { + "base": null, + "refs": { + "DescribeGameSessionQueuesOutput$GameSessionQueues": "

Collection of objects that describes the requested game session queues.

" + } + }, + "GameSessionQueueName": { + "base": null, + "refs": { + "CreateGameSessionQueueInput$Name": "

Descriptive label that is associated with queue. Queue names must be unique within each region.

", + "DeleteGameSessionQueueInput$Name": "

Descriptive label that is associated with queue. Queue names must be unique within each region.

", + "GameSessionPlacement$GameSessionQueueName": "

Descriptive label that is associated with queue. Queue names must be unique within each region.

", + "GameSessionQueue$Name": "

Descriptive label that is associated with queue. Queue names must be unique within each region.

", + "GameSessionQueueNameList$member": null, + "StartGameSessionPlacementInput$GameSessionQueueName": "

Name of the queue to use to place the new game session.

", + "UpdateGameSessionQueueInput$Name": "

Descriptive label that is associated with queue. Queue names must be unique within each region.

" + } + }, + "GameSessionQueueNameList": { + "base": null, + "refs": { + "DescribeGameSessionQueuesInput$Names": "

List of queue names to retrieve information for. To request settings for all queues, leave this parameter empty.

" + } + }, "GameSessionStatus": { "base": null, "refs": { - "GameSession$Status": "

Current status of the game session. A game session must be in an ACTIVE status to have player sessions.

" + "GameSession$Status": "

Current status of the game session. A game session must have an ACTIVE status to have player sessions.

" } }, "GetGameSessionLogUrlInput": { @@ -585,10 +718,24 @@ "refs": { } }, + "GetInstanceAccessInput": { + "base": null, + "refs": { + } + }, + "GetInstanceAccessOutput": { + "base": null, + "refs": { + } + }, "IdStringModel": { "base": null, "refs": { - "CreateGameSessionInput$GameSessionId": "

Custom string to include in the game session ID, with a maximum length of 48 characters. If this parameter is set, GameLift creates a game session ID in the following format: \"arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<custom ID string>\". For example, this full game session ID: \"arn:aws:gamelift:us-west-2::gamesession/fleet-2ec2aae5-c2c7-43ca-b19d-8249fe5fddf2/my-game-session\" includes the custom ID string \"my-game-session\". If this parameter is not set, GameLift creates a game session ID in the same format with an auto-generated ID string.

" + "CreateGameSessionInput$GameSessionId": "

Custom string to include in the game session ID, with a maximum length of 48 characters. A game session ID has the following format: \"arn:aws:gamelift:<region>::gamesession/<fleet ID>/<game session ID>\". If provided, the custom string is used for the game session ID string. This value cannot be updated once a game session is created.

", + "DescribeGameSessionPlacementInput$PlacementId": "

Unique identifier for a game session placement to retrieve.

", + "GameSessionPlacement$PlacementId": "

Unique identifier for a game session placement.

", + "StartGameSessionPlacementInput$PlacementId": "

Unique identifier to assign to the new game session placement. This value is developer-defined. The value must be unique across all regions and cannot be reused unless you are resubmitting a cancelled or timed-out placement request.

", + "StopGameSessionPlacementInput$PlacementId": "

Unique identifier for a game session placement to cancel.

" } }, "IdempotentParameterMismatchException": { @@ -597,16 +744,30 @@ } }, "Instance": { - "base": "

Properties describing an instance of a virtual computing resource that is hosting game servers. Fleets contain zero or more instances.

", + "base": "

Properties that describe an instance of a virtual computing resource that hosts one or more game servers. A fleet contains zero or more instances.

", "refs": { "InstanceList$member": null } }, + "InstanceAccess": { + "base": "

Information required to remotely connect to a fleet instance. Access is requested by calling GetInstanceAccess.

", + "refs": { + "GetInstanceAccessOutput$InstanceAccess": "

Object that contains connection information for a fleet instance, including IP address and access credentials.

" + } + }, + "InstanceCredentials": { + "base": "

Set of credentials required to remotely access a fleet instance. Access credentials are requested by calling GetInstanceAccess and returned in an InstanceAccess object.

", + "refs": { + "InstanceAccess$Credentials": "

Credentials required to access the instance.

" + } + }, "InstanceId": { "base": null, "refs": { - "DescribeInstancesInput$InstanceId": "

Unique identifier for an instance. Specify an instance to retrieve information for or leave blank to get information on all instances in the fleet.

", - "Instance$InstanceId": "

Unique identifier for the instance.

" + "DescribeInstancesInput$InstanceId": "

Unique identifier for an instance to retrieve. Specify an instance ID or leave blank to retrieve all instances in the fleet.

", + "GetInstanceAccessInput$InstanceId": "

Unique identifier for an instance you want to get access to. You can access an instance in any status.

", + "Instance$InstanceId": "

Unique identifier for an instance.

", + "InstanceAccess$InstanceId": "

Unique identifier for an instance being accessed.

" } }, "InstanceList": { @@ -618,7 +779,7 @@ "InstanceStatus": { "base": null, "refs": { - "Instance$Status": "

Current status of the instance. Possible statuses include the following:

  • PENDING – The instance is in the process of being created and launching server processes as defined in the fleet's runtime configuration.

  • ACTIVE – The instance has been successfully created and at least one server process has successfully launched and reported back to GameLift that it is ready to host a game session. The instance is now considered ready to host game sessions.

  • TERMINATING – The instance is in the process of shutting down. This may happen to reduce capacity during a scaling down event or to recycle resources in the event of a problem.

" + "Instance$Status": "

Current status of the instance. Possible statuses include the following:

  • PENDING – The instance is in the process of being created and launching server processes as defined in the fleet's runtime configuration.

  • ACTIVE – The instance has been successfully created and at least one server process has successfully launched and reported back to Amazon GameLift that it is ready to host a game session. The instance is now considered ready to host game sessions.

  • TERMINATING – The instance is in the process of shutting down. This may happen to reduce capacity during a scaling down event or to recycle resources in the event of a problem.

" } }, "Integer": { @@ -651,13 +812,14 @@ "IpAddress": { "base": null, "refs": { - "GameSession$IpAddress": "

IP address of the game session. To connect to a GameLift server process, an app needs both the IP address and port number.

", + "GameSession$IpAddress": "

IP address of the game session. To connect to a Amazon GameLift server process, an app needs both the IP address and port number.

", "Instance$IpAddress": "

IP address assigned to the instance.

", + "InstanceAccess$IpAddress": "

IP address assigned to the instance.

", "PlayerSession$IpAddress": "

Game session IP address. All player sessions reference the game session location.

" } }, "IpPermission": { - "base": "

A range of IP addresses and port settings that allow inbound traffic to connect to server processes on GameLift. Each game session hosted on a fleet is assigned a unique combination of IP address and port number, which must fall into the fleet's allowed ranges. This combination is included in the GameSession object.

", + "base": "

A range of IP addresses and port settings that allow inbound traffic to connect to server processes on Amazon GameLift. Each game session hosted on a fleet is assigned a unique combination of IP address and port number, which must fall into the fleet's allowed ranges. This combination is included in the GameSession object.

", "refs": { "IpPermissionsList$member": null } @@ -666,7 +828,7 @@ "base": null, "refs": { "CreateFleetInput$EC2InboundPermissions": "

Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. If no inbound permissions are set, including both IP address range and port range, the server processes in the fleet cannot accept connections. You can specify one or more sets of permissions for a fleet.

", - "DescribeFleetPortSettingsOutput$InboundPermissions": "

Object containing port settings for the requested fleet ID.

", + "DescribeFleetPortSettingsOutput$InboundPermissions": "

Object that contains port settings for the requested fleet ID.

", "UpdateFleetPortSettingsInput$InboundPermissionAuthorizations": "

Collection of port settings to be added to the fleet record.

", "UpdateFleetPortSettingsInput$InboundPermissionRevocations": "

Collection of port settings to be removed from the fleet record.

" } @@ -716,21 +878,21 @@ "base": null, "refs": { "PutScalingPolicyInput$MetricName": "

Name of the Amazon GameLift-defined metric that is used to trigger an adjustment.

  • ActivatingGameSessions – number of game sessions in the process of being created (game session status = ACTIVATING).

  • ActiveGameSessions – number of game sessions currently running (game session status = ACTIVE).

  • CurrentPlayerSessions – number of active or reserved player sessions (player session status = ACTIVE or RESERVED).

  • AvailablePlayerSessions – number of player session slots currently available in active game sessions across the fleet, calculated by subtracting a game session's current player session count from its maximum player session count. This number includes game sessions that are not currently accepting players (game session PlayerSessionCreationPolicy = DENY_ALL).

  • ActiveInstances – number of instances currently running a game session.

  • IdleInstances – number of instances not currently running a game session.

", - "ScalingPolicy$MetricName": "

Name of the GameLift-defined metric that is used to trigger an adjustment.

  • ActivatingGameSessions – number of game sessions in the process of being created (game session status = ACTIVATING).

  • ActiveGameSessions – number of game sessions currently running (game session status = ACTIVE).

  • CurrentPlayerSessions – number of active or reserved player sessions (player session status = ACTIVE or RESERVED).

  • AvailablePlayerSessions – number of player session slots currently available in active game sessions across the fleet, calculated by subtracting a game session's current player session count from its maximum player session count. This number does include game sessions that are not currently accepting players (game session PlayerSessionCreationPolicy = DENY_ALL).

  • ActiveInstances – number of instances currently running a game session.

  • IdleInstances – number of instances not currently running a game session.

" + "ScalingPolicy$MetricName": "

Name of the Amazon GameLift-defined metric that is used to trigger an adjustment.

  • ActivatingGameSessions – number of game sessions in the process of being created (game session status = ACTIVATING).

  • ActiveGameSessions – number of game sessions currently running (game session status = ACTIVE).

  • CurrentPlayerSessions – number of active or reserved player sessions (player session status = ACTIVE or RESERVED).

  • AvailablePlayerSessions – number of player session slots currently available in active game sessions across the fleet, calculated by subtracting a game session's current player session count from its maximum player session count. This number does include game sessions that are not currently accepting players (game session PlayerSessionCreationPolicy = DENY_ALL).

  • ActiveInstances – number of instances currently running a game session.

  • IdleInstances – number of instances not currently running a game session.

" } }, "NonBlankAndLengthConstraintString": { "base": null, "refs": { - "Alias$Name": "

Descriptive label associated with an alias. Alias names do not need to be unique.

", - "CreateAliasInput$Name": "

Descriptive label associated with an alias. Alias names do not need to be unique.

", - "UpdateAliasInput$Name": "

Descriptive label associated with an alias. Alias names do not need to be unique.

" + "Alias$Name": "

Descriptive label that is associated with an alias. Alias names do not need to be unique.

", + "CreateAliasInput$Name": "

Descriptive label that is associated with an alias. Alias names do not need to be unique.

", + "UpdateAliasInput$Name": "

Descriptive label that is associated with an alias. Alias names do not need to be unique.

" } }, "NonBlankString": { "base": null, "refs": { - "IpPermission$IpRange": "

Range of allowed IP addresses. This value must be expressed in CIDR notation. Example: \"000.000.000.000/[subnet mask]\" or optionally the shortened version \"0.0.0.0/[subnet mask]\".

" + "IpPermission$IpRange": "

Range of allowed IP addresses. This value must be expressed in CIDR notation. Example: \"000.000.000.000/[subnet mask]\" or optionally the shortened version \"0.0.0.0/[subnet mask]\".

" } }, "NonEmptyString": { @@ -744,20 +906,22 @@ "FleetCapacityExceededException$Message": null, "GameSessionFullException$Message": null, "IdempotentParameterMismatchException$Message": null, + "InstanceCredentials$UserName": "

User login string.

", + "InstanceCredentials$Secret": "

Secret string. For Windows instances, the secret is a password for use with Windows Remote Desktop. For Linux instances, it is a private key (which must be saved as a .pem file) for use with SSH.

", "InternalServiceException$Message": null, "InvalidFleetStatusException$Message": null, "InvalidGameSessionStatusException$Message": null, "InvalidRequestException$Message": null, "LimitExceededException$Message": null, - "ListAliasesInput$Name": "

Descriptive label associated with an alias. Alias names do not need to be unique.

", - "ListAliasesInput$NextToken": "

Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

", - "ListAliasesOutput$NextToken": "

Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", - "ListBuildsInput$NextToken": "

Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

", - "ListBuildsOutput$NextToken": "

Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", + "ListAliasesInput$Name": "

Descriptive label that is associated with an alias. Alias names do not need to be unique.

", + "ListAliasesInput$NextToken": "

Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

", + "ListAliasesOutput$NextToken": "

Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", + "ListBuildsInput$NextToken": "

Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

", + "ListBuildsOutput$NextToken": "

Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", "NotFoundException$Message": null, - "S3Location$Bucket": "

Amazon S3 bucket identifier.

", - "S3Location$Key": "

Amazon S3 bucket key.

", - "S3Location$RoleArn": "

Amazon resource number for the cross-account access role that allows GameLift access to the S3 bucket.

", + "S3Location$Bucket": "

Amazon S3 bucket identifier. This is the name of your S3 bucket.

", + "S3Location$Key": "

Name of the zip file containing your build files.

", + "S3Location$RoleArn": "

Amazon Resource Name (ARN) for the access role that allows Amazon GameLift to access your S3 bucket.

", "TerminalRoutingStrategyException$Message": null, "UnauthorizedException$Message": null } @@ -766,69 +930,79 @@ "base": null, "refs": { "CreateAliasInput$Description": "

Human-readable description of an alias.

", - "CreateBuildInput$Name": "

Descriptive label associated with a build. Build names do not need to be unique. A build name can be changed later using UpdateBuild .

", - "CreateBuildInput$Version": "

Version associated with this build. Version strings do not need to be unique to a build. A build version can be changed later using UpdateBuild .

", - "CreateFleetInput$Name": "

Descriptive label associated with a fleet. Fleet names do not need to be unique.

", + "CreateBuildInput$Name": "

Descriptive label that is associated with a build. Build names do not need to be unique. You can use UpdateBuild to change this value later.

", + "CreateBuildInput$Version": "

Version that is associated with this build. Version strings do not need to be unique. You can use UpdateBuild to change this value later.

", + "CreateFleetInput$Name": "

Descriptive label that is associated with a fleet. Fleet names do not need to be unique.

", "CreateFleetInput$Description": "

Human-readable description of a fleet.

", "CreateFleetInput$ServerLaunchPath": "

This parameter is no longer used. Instead, specify a server launch path using the RuntimeConfiguration parameter. (Requests that specify a server launch path and launch parameters instead of a runtime configuration will continue to work.)

", "CreateFleetInput$ServerLaunchParameters": "

This parameter is no longer used. Instead, specify server launch parameters in the RuntimeConfiguration parameter. (Requests that specify a server launch path and launch parameters instead of a runtime configuration will continue to work.)

", - "CreateGameSessionInput$Name": "

Descriptive label associated with a game session. Session names do not need to be unique.

", - "CreateGameSessionInput$CreatorId": "

Player ID identifying the person or entity creating the game session. This ID is used to enforce a resource protection policy (if one exists) that limits the number of concurrent active game sessions one player can have.

", - "CreatePlayerSessionInput$PlayerId": "

Unique identifier for the player to be added.

", - "DeleteScalingPolicyInput$Name": "

Descriptive label associated with a scaling policy. Policy names do not need to be unique.

", - "DescribeFleetAttributesInput$NextToken": "

Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. This parameter is ignored when the request specifies one or a list of fleet IDs.

", - "DescribeFleetAttributesOutput$NextToken": "

Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", - "DescribeFleetCapacityInput$NextToken": "

Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. This parameter is ignored when the request specifies one or a list of fleet IDs.

", - "DescribeFleetCapacityOutput$NextToken": "

Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", - "DescribeFleetEventsInput$NextToken": "

Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

", - "DescribeFleetEventsOutput$NextToken": "

Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", - "DescribeFleetUtilizationInput$NextToken": "

Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. This parameter is ignored when the request specifies one or a list of fleet IDs.

", - "DescribeFleetUtilizationOutput$NextToken": "

Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", + "CreateGameSessionInput$Name": "

Descriptive label that is associated with a game session. Session names do not need to be unique.

", + "CreateGameSessionInput$CreatorId": "

$player-id; or entity creating the game session. This ID is used to enforce a resource protection policy (if one exists) that limits the number of concurrent active game sessions one player can have.

", + "CreatePlayerSessionInput$PlayerId": "

Unique identifier for a player. Player IDs are developer-defined.

", + "DeleteScalingPolicyInput$Name": "

Descriptive label that is associated with a scaling policy. Policy names do not need to be unique.

", + "DescribeFleetAttributesInput$NextToken": "

Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. This parameter is ignored when the request specifies one or a list of fleet IDs.

", + "DescribeFleetAttributesOutput$NextToken": "

Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", + "DescribeFleetCapacityInput$NextToken": "

Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. This parameter is ignored when the request specifies one or a list of fleet IDs.

", + "DescribeFleetCapacityOutput$NextToken": "

Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", + "DescribeFleetEventsInput$NextToken": "

Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

", + "DescribeFleetEventsOutput$NextToken": "

Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", + "DescribeFleetUtilizationInput$NextToken": "

Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. This parameter is ignored when the request specifies one or a list of fleet IDs.

", + "DescribeFleetUtilizationOutput$NextToken": "

Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", "DescribeGameSessionDetailsInput$StatusFilter": "

Game session status to filter results on. Possible game session statuses include ACTIVE, TERMINATED, ACTIVATING and TERMINATING (the last two are transitory).

", - "DescribeGameSessionDetailsInput$NextToken": "

Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

", - "DescribeGameSessionDetailsOutput$NextToken": "

Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", + "DescribeGameSessionDetailsInput$NextToken": "

Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

", + "DescribeGameSessionDetailsOutput$NextToken": "

Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", + "DescribeGameSessionQueuesInput$NextToken": "

Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

", + "DescribeGameSessionQueuesOutput$NextToken": "

Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", "DescribeGameSessionsInput$StatusFilter": "

Game session status to filter results on. Possible game session statuses include ACTIVE, TERMINATED, ACTIVATING, and TERMINATING (the last two are transitory).

", - "DescribeGameSessionsInput$NextToken": "

Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

", - "DescribeGameSessionsOutput$NextToken": "

Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", - "DescribeInstancesInput$NextToken": "

Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

", - "DescribeInstancesOutput$NextToken": "

Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", - "DescribePlayerSessionsInput$PlayerId": "

Unique identifier for a player.

", + "DescribeGameSessionsInput$NextToken": "

Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

", + "DescribeGameSessionsOutput$NextToken": "

Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", + "DescribeInstancesInput$NextToken": "

Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

", + "DescribeInstancesOutput$NextToken": "

Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", + "DescribePlayerSessionsInput$PlayerId": "

Unique identifier for a player to retrieve player sessions for.

", "DescribePlayerSessionsInput$PlayerSessionStatusFilter": "

Player session status to filter results on.

Possible player session statuses include the following:

  • RESERVED – The player session request has been received, but the player has not yet connected to the server process and/or been validated.

  • ACTIVE – The player has been validated by the server process and is currently connected.

  • COMPLETED – The player connection has been dropped.

  • TIMEDOUT – A player session request was received, but the player did not connect and/or was not validated within the time-out limit (60 seconds).

", - "DescribePlayerSessionsInput$NextToken": "

Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. If a player session ID is specified, this parameter is ignored.

", - "DescribePlayerSessionsOutput$NextToken": "

Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", - "DescribeScalingPoliciesInput$NextToken": "

Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

", - "DescribeScalingPoliciesOutput$NextToken": "

Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", + "DescribePlayerSessionsInput$NextToken": "

Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. If a player session ID is specified, this parameter is ignored.

", + "DescribePlayerSessionsOutput$NextToken": "

Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", + "DescribeScalingPoliciesInput$NextToken": "

Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

", + "DescribeScalingPoliciesOutput$NextToken": "

Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", + "DesiredPlayerSession$PlayerId": "

Unique identifier for a player to associate with the player session.

", "Event$EventId": "

Unique identifier for a fleet event.

", - "Event$ResourceId": "

Unique identifier for the resource, such as a fleet ID.

", + "Event$ResourceId": "

Unique identifier for an event resource, such as a fleet ID.

", "FleetAttributes$Description": "

Human-readable description of the fleet.

", - "FleetAttributes$Name": "

Descriptive label associated with a fleet. Fleet names do not need to be unique.

", - "FleetAttributes$ServerLaunchPath": "

Path to a game server executable in the fleet's build, specified for fleets created prior to 2016-08-04 (or AWS SDK v. 0.12.16). Server launch paths for fleets created after this date are specified in the fleet's RuntimeConfiguration .

", - "FleetAttributes$ServerLaunchParameters": "

Game server launch parameters specified for fleets created prior to 2016-08-04 (or AWS SDK v. 0.12.16). Server launch parameters for fleets created after this date are specified in the fleet's RuntimeConfiguration .

", - "GameSession$GameSessionId": "

Unique identifier for a game session. Game session ID format is as follows: \"arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID string>\". The value of <ID string> is either a custom ID string (if one was specified when the game session was created) an auto-generated string.

", - "GameSession$Name": "

Descriptive label associated with a game session. Session names do not need to be unique.

", - "GameSession$CreatorId": "

Player ID of the person or entity that created the game session. This ID is used to enforce a resource protection policy (if one exists) that limits the number of concurrent active game sessions one player can have.

", + "FleetAttributes$Name": "

Descriptive label that is associated with a fleet. Fleet names do not need to be unique.

", + "FleetAttributes$ServerLaunchPath": "

Path to a game server executable in the fleet's build, specified for fleets created prior to 2016-08-04 (or AWS SDK v. 0.12.16). Server launch paths for fleets created after this date are specified in the fleet's RuntimeConfiguration.

", + "FleetAttributes$ServerLaunchParameters": "

Game server launch parameters specified for fleets created prior to 2016-08-04 (or AWS SDK v. 0.12.16). Server launch parameters for fleets created after this date are specified in the fleet's RuntimeConfiguration.

", + "GameSession$GameSessionId": "

Unique identifier for the game session. A game session ID has the following format: \"arn:aws:gamelift:<region>::gamesession/<fleet ID>/<game session ID>\".

", + "GameSession$Name": "

Descriptive label that is associated with a game session. Session names do not need to be unique.

", + "GameSession$CreatorId": "

Unique identifier for a player. This ID is used to enforce a resource protection policy (if one exists), that limits the number of game sessions a player can create.

", + "GameSessionPlacement$GameSessionName": "

Descriptive label that is associated with a game session. Session names do not need to be unique.

", + "GameSessionPlacement$GameSessionArn": "

Identifier for the game session created by this placement request. This value exists only if the game session placement status is Completed. This identifier is unique across all regions.

", + "GameSessionPlacement$GameSessionRegion": "

Name of the region where the game session created by this placement request is running. This value exists only if the game session placement status is Completed.

", "GetGameSessionLogUrlOutput$PreSignedUrl": "

Location of the requested game session logs, available for download.

", - "ListFleetsInput$NextToken": "

Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

", - "ListFleetsOutput$NextToken": "

Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", + "ListFleetsInput$NextToken": "

Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

", + "ListFleetsOutput$NextToken": "

Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", + "PlayerDataMap$key": null, "PlayerIdList$member": null, - "PlayerSession$PlayerId": "

Unique identifier for a player.

", + "PlayerLatency$PlayerId": "

Unique identifier for a player associated with the latency data.

", + "PlayerLatency$RegionIdentifier": "

Name of the region that is associated with the latency value.

", + "PlayerSession$PlayerId": "

Unique identifier for a player that is associated with this player session.

", "PlayerSession$GameSessionId": "

Unique identifier for the game session that the player session is connected to.

", - "PutScalingPolicyInput$Name": "

Descriptive label associated with a scaling policy. Policy names do not need to be unique. A fleet can have only one scaling policy with the same name.

", - "PutScalingPolicyOutput$Name": "

Descriptive label associated with a scaling policy. Policy names do not need to be unique.

", - "ScalingPolicy$Name": "

Descriptive label associated with a scaling policy. Policy names do not need to be unique.

", - "SearchGameSessionsInput$FilterExpression": "

String containing the search criteria for the session search. If no filter expression is included, the request returns results for all game sessions in the fleet that are in ACTIVE status.

A filter expression can contain one or multiple conditions. Each condition consists of the following:

  • Operand -- Name of a game session attribute. Valid values are gameSessionName, gameSessionId, creationTimeMillis, playerSessionCount, maximumSessions, hasAvailablePlayerSessions.

  • Comparator -- Valid comparators are: =, <>, <, >, <=, >=.

  • Value -- Value to be searched for. Values can be numbers, boolean values (true/false) or strings. String values are case sensitive, enclosed in single quotes. Special characters must be escaped. Boolean and string values can only be used with the comparators = and <>. For example, the following filter expression searches on gameSessionName: \"FilterExpression\": \"gameSessionName = 'Matt\\\\'s Awesome Game 1'\".

To chain multiple conditions in a single expression, use the logical keywords AND, OR, and NOT and parentheses as needed. For example: x AND y AND NOT z, NOT (x OR y).

Session search evaluates conditions from left to right using the following precedence rules:

  1. =, <>, <, >, <=, >=

  2. Parentheses

  3. NOT

  4. AND

  5. OR

For example, this filter expression retrieves game sessions hosting at least ten players that have an open player slot: \"maximumSessions>=10 AND hasAvailablePlayerSessions=true\".

", + "PutScalingPolicyInput$Name": "

Descriptive label that is associated with a scaling policy. Policy names do not need to be unique. A fleet can have only one scaling policy with the same name.

", + "PutScalingPolicyOutput$Name": "

Descriptive label that is associated with a scaling policy. Policy names do not need to be unique.

", + "ScalingPolicy$Name": "

Descriptive label that is associated with a scaling policy. Policy names do not need to be unique.

", + "SearchGameSessionsInput$FilterExpression": "

String containing the search criteria for the session search. If no filter expression is included, the request returns results for all game sessions in the fleet that are in ACTIVE status.

A filter expression can contain one or multiple conditions. Each condition consists of the following:

  • Operand -- Name of a game session attribute. Valid values are gameSessionName, gameSessionId, creationTimeMillis, playerSessionCount, maximumSessions, hasAvailablePlayerSessions.

  • Comparator -- Valid comparators are: =, <>, <, >, <=, >=.

  • Value -- Value to be searched for. Values can be numbers, boolean values (true/false) or strings. String values are case sensitive, enclosed in single quotes. Special characters must be escaped. Boolean and string values can only be used with the comparators = and <>. For example, the following filter expression searches on gameSessionName: \"FilterExpression\": \"gameSessionName = 'Matt\\\\'s Awesome Game 1'\".

To chain multiple conditions in a single expression, use the logical keywords AND, OR, and NOT and parentheses as needed. For example: x AND y AND NOT z, NOT (x OR y).

Session search evaluates conditions from left to right using the following precedence rules:

  1. =, <>, <, >, <=, >=

  2. Parentheses

  3. NOT

  4. AND

  5. OR

For example, this filter expression retrieves game sessions hosting at least ten players that have an open player slot: \"maximumSessions>=10 AND hasAvailablePlayerSessions=true\".

", "SearchGameSessionsInput$SortExpression": "

Instructions on how to sort the search results. If no sort expression is included, the request returns results in random order. A sort expression consists of the following elements:

  • Operand -- Name of a game session attribute. Valid values are gameSessionName, gameSessionId, creationTimeMillis, playerSessionCount, maximumSessions, hasAvailablePlayerSessions.

  • Order -- Valid sort orders are ASC (ascending) and DESC (descending).

For example, this sort expression returns the oldest active sessions first: \"SortExpression\": \"creationTimeMillis ASC\". Results with a null value for the sort operand are returned at the end of the list.

", - "SearchGameSessionsInput$NextToken": "

Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

", - "SearchGameSessionsOutput$NextToken": "

Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", - "ServerProcess$LaunchPath": "

Location in the game build of the server executable. All game builds are installed on instances at the root C:\\game\\..., so an executable file located at MyGame\\latest\\server.exe has a launch path of \"C:\\game\\MyGame\\latest\\server.exe\".

", + "SearchGameSessionsInput$NextToken": "

Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

", + "SearchGameSessionsOutput$NextToken": "

Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

", + "ServerProcess$LaunchPath": "

Location of the server executable in a game build. All game builds are installed on instances at the root : for Windows instances C:\\game, and for Linux instances /local/game. A Windows game build with an executable file located at MyGame\\latest\\server.exe must have a launch path of \"C:\\game\\MyGame\\latest\\server.exe\". A Linux game build with an executable file located at MyGame/latest/server.exe must have a launch path of \"/local/game/MyGame/latest/server.exe\".

", "ServerProcess$Parameters": "

Optional list of parameters to pass to the server executable on launch.

", + "StartGameSessionPlacementInput$GameSessionName": "

Descriptive label that is associated with a game session. Session names do not need to be unique.

", "StringList$member": null, "UpdateAliasInput$Description": "

Human-readable description of an alias.

", - "UpdateBuildInput$Name": "

Descriptive label associated with a build. Build names do not need to be unique.

", - "UpdateBuildInput$Version": "

Version associated with this build. Version strings do not need to be unique to a build.

", - "UpdateFleetAttributesInput$Name": "

Descriptive label associated with a fleet. Fleet names do not need to be unique.

", + "UpdateBuildInput$Name": "

Descriptive label that is associated with a build. Build names do not need to be unique.

", + "UpdateBuildInput$Version": "

Version that is associated with this build. Version strings do not need to be unique.

", + "UpdateFleetAttributesInput$Name": "

Descriptive label that is associated with a fleet. Fleet names do not need to be unique.

", "UpdateFleetAttributesInput$Description": "

Human-readable description of a fleet.

", - "UpdateGameSessionInput$Name": "

Descriptive label associated with a game session. Session names do not need to be unique.

" + "UpdateGameSessionInput$Name": "

Descriptive label that is associated with a game session. Session names do not need to be unique.

" } }, "NotFoundException": { @@ -840,9 +1014,25 @@ "base": null, "refs": { "Build$OperatingSystem": "

Operating system that the game server binaries are built to run on. This value determines the type of fleet resources that you can use for this build.

", - "CreateBuildInput$OperatingSystem": "

Operating system that the game server binaries are built to run on. This value determines the type of fleet resources that you can use for this build.

", + "CreateBuildInput$OperatingSystem": "

Operating system that the game server binaries are built to run on. This value determines the type of fleet resources that you can use for this build. If your game build contains multiple executables, they all must run on the same operating system.

", "FleetAttributes$OperatingSystem": "

Operating system of the fleet's computing resources. A fleet's operating system depends on the OS specified for the build that is deployed on this fleet.

", - "Instance$OperatingSystem": "

Operating system being used on this instance.

" + "Instance$OperatingSystem": "

Operating system that is running on this instance.

", + "InstanceAccess$OperatingSystem": "

Operating system that is running on the instance.

" + } + }, + "PlayerData": { + "base": null, + "refs": { + "CreatePlayerSessionInput$PlayerData": "

Developer-defined information related to a player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game.

", + "DesiredPlayerSession$PlayerData": "

Developer-defined information related to a player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game.

", + "PlayerDataMap$value": null, + "PlayerSession$PlayerData": "

Developer-defined information related to a player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game.

" + } + }, + "PlayerDataMap": { + "base": null, + "refs": { + "CreatePlayerSessionsInput$PlayerDataMap": "

Map of string pairs, each specifying a player ID and a set of developer-defined information related to the player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game. Player data strings for player IDs not included in the PlayerIds parameter are ignored.

" } }, "PlayerIdList": { @@ -851,10 +1041,23 @@ "CreatePlayerSessionsInput$PlayerIds": "

List of unique identifiers for the players to be added.

" } }, + "PlayerLatency": { + "base": "

Regional latency information for a player, used when requesting a new game session with StartGameSessionPlacement. This value indicates the amount of time lag that exists when the player is connected to a fleet in the specified region. The relative difference between a player's latency values for multiple regions are used to determine which fleets are best suited to place a new game session for the player.

", + "refs": { + "PlayerLatencyList$member": null + } + }, + "PlayerLatencyList": { + "base": null, + "refs": { + "GameSessionPlacement$PlayerLatencies": "

Set of values, expressed in milliseconds, indicating the amount of latency that players experience when connected to AWS regions.

", + "StartGameSessionPlacementInput$PlayerLatencies": "

Set of values, expressed in milliseconds, indicating the amount of latency that players experience when connected to AWS regions. This information is relevant when requesting player sessions. Latency information provided for player IDs not included in DesiredPlayerSessions are ignored.

" + } + }, "PlayerSession": { - "base": "

Properties describing a player session.

", + "base": "

Properties describing a player session. A player session represents either a player reservation for a game session or actual player activity in a game session. A player session object (including player data) is automatically passed to a game session when the player connects to the game session and is validated.

Player session-related operations include:

", "refs": { - "CreatePlayerSessionOutput$PlayerSession": "

Object containing the newly created player session record.

", + "CreatePlayerSessionOutput$PlayerSession": "

Object that describes the newly created player session record.

", "PlayerSessionList$member": null } }, @@ -868,7 +1071,7 @@ "PlayerSessionId": { "base": null, "refs": { - "DescribePlayerSessionsInput$PlayerSessionId": "

Unique identifier for a player session.

", + "DescribePlayerSessionsInput$PlayerSessionId": "

Unique identifier for a player session to retrieve.

", "PlayerSession$PlayerSessionId": "

Unique identifier for a player session.

" } }, @@ -888,10 +1091,10 @@ "PortNumber": { "base": null, "refs": { - "GameSession$Port": "

Port number for the game session. To connect to a GameLift server process, an app needs both the IP address and port number.

", + "GameSession$Port": "

Port number for the game session. To connect to a Amazon GameLift server process, an app needs both the IP address and port number.

", "IpPermission$FromPort": "

Starting value for a range of allowed port numbers.

", "IpPermission$ToPort": "

Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than FromPort.

", - "PlayerSession$Port": "

Port number for the game session. To connect to a GameLift server process, an app needs both the IP address and port number.

" + "PlayerSession$Port": "

Port number for the game session. To connect to a Amazon GameLift server process, an app needs both the IP address and port number.

" } }, "PositiveInteger": { @@ -902,6 +1105,7 @@ "DescribeFleetEventsInput$Limit": "

Maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

", "DescribeFleetUtilizationInput$Limit": "

Maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages. This parameter is ignored when the request specifies one or a list of fleet IDs.

", "DescribeGameSessionDetailsInput$Limit": "

Maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

", + "DescribeGameSessionQueuesInput$Limit": "

Maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

", "DescribeGameSessionsInput$Limit": "

Maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

", "DescribeInstancesInput$Limit": "

Maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

", "DescribePlayerSessionsInput$Limit": "

Maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages. If a player session ID is specified, this parameter is ignored.

", @@ -962,7 +1166,7 @@ } }, "ResourceCreationLimitPolicy": { - "base": "

Policy that limits the number of game sessions a player can create on the same fleet. This optional policy gives game owners control over how players can consume available game server resources. A resource creation policy makes the following statement: \"An individual player can create a maximum number of new game sessions within a specified time period\".

The policy is evaluated when a player tries to create a new game session. For example, with a policy of 10 new game sessions and a time period of 60 minutes, on receiving a CreateGameSession request, GameLift checks that the player (identified by CreatorId) has created fewer than 10 game sessions in the past 60 minutes.

", + "base": "

Policy that limits the number of game sessions a player can create on the same fleet. This optional policy gives game owners control over how players can consume available game server resources. A resource creation policy makes the following statement: \"An individual player can create a maximum number of new game sessions within a specified time period\".

The policy is evaluated when a player tries to create a new game session. For example, with a policy of 10 new game sessions and a time period of 60 minutes, on receiving a CreateGameSession request, Amazon GameLift checks that the player (identified by CreatorId) has created fewer than 10 game sessions in the past 60 minutes.

", "refs": { "CreateFleetInput$ResourceCreationLimitPolicy": "

Policy that limits the number of game sessions an individual player can create over a span of time for this fleet.

", "FleetAttributes$ResourceCreationLimitPolicy": "

Fleet policy to limit the number of game sessions an individual player can create over a span of time.

", @@ -972,9 +1176,9 @@ "RoutingStrategy": { "base": "

Routing configuration for a fleet alias.

", "refs": { - "Alias$RoutingStrategy": null, - "CreateAliasInput$RoutingStrategy": "

Object specifying the fleet and routing type to use for the alias.

", - "UpdateAliasInput$RoutingStrategy": "

Object specifying the fleet and routing type to use for the alias.

" + "Alias$RoutingStrategy": "

Alias configuration for the alias, including routing type and settings.

", + "CreateAliasInput$RoutingStrategy": "

Object that specifies the fleet and routing type to use for the alias.

", + "UpdateAliasInput$RoutingStrategy": "

Object that specifies the fleet and routing type to use for the alias.

" } }, "RoutingStrategyType": { @@ -985,19 +1189,19 @@ } }, "RuntimeConfiguration": { - "base": "

Collection of server process configurations that describe what processes should be run on each instance in a fleet. An instance can launch and maintain multiple server processes based on the runtime configuration; it regularly checks for an updated runtime configuration and starts new server processes to match the latest version.

The key purpose of a runtime configuration with multiple server process configurations is to be able to run more than one kind of game server in a single fleet. You can include configurations for more than one server executable in order to run two or more different programs to run on the same instance. This option might be useful, for example, to run more than one version of your game server on the same fleet. Another option is to specify configurations for the same server executable but with different launch parameters.

A GameLift instance is limited to 50 processes running simultaneously. To calculate the total number of processes specified in a runtime configuration, add the values of the ConcurrentExecutions parameter for each ServerProcess object in the runtime configuration.

", + "base": "

Collection of server process configurations that describe what processes should be run on each instance in a fleet. An instance can launch and maintain multiple server processes based on the runtime configuration; it regularly checks for an updated runtime configuration and starts new server processes to match the latest version.

The key purpose of a runtime configuration with multiple server process configurations is to be able to run more than one kind of game server in a single fleet. You can include configurations for more than one server executable in order to run two or more different programs to run on the same instance. This option might be useful, for example, to run more than one version of your game server on the same fleet. Another option is to specify configurations for the same server executable but with different launch parameters.

A Amazon GameLift instance is limited to 50 processes running simultaneously. To calculate the total number of processes specified in a runtime configuration, add the values of the ConcurrentExecutions parameter for each ServerProcess object in the runtime configuration.

", "refs": { - "CreateFleetInput$RuntimeConfiguration": "

Instructions for launching server processes on each instance in the fleet. The runtime configuration for a fleet has a collection of server process configurations, one for each type of server process to run on an instance. A server process configuration specifies the location of the server executable, launch parameters, and the number of concurrent processes with that configuration to maintain on each instance. A CreateFleet request must include a runtime configuration with at least one server process configuration; otherwise the request will fail with an invalid request exception. (This parameter replaces the parameters ServerLaunchPath and ServerLaunchParameters; requests that contain values for these parameters instead of a runtime configuration will continue to work.)

", + "CreateFleetInput$RuntimeConfiguration": "

Instructions for launching server processes on each instance in the fleet. The runtime configuration for a fleet has a collection of server process configurations, one for each type of server process to run on an instance. A server process configuration specifies the location of the server executable, launch parameters, and the number of concurrent processes with that configuration to maintain on each instance. A CreateFleet request must include a runtime configuration with at least one server process configuration; otherwise the request will fail with an invalid request exception. (This parameter replaces the parameters ServerLaunchPath and ServerLaunchParameters; requests that contain values for these parameters instead of a runtime configuration will continue to work.)

", "DescribeRuntimeConfigurationOutput$RuntimeConfiguration": "

Instructions describing how server processes should be launched and maintained on each instance in the fleet.

", "UpdateRuntimeConfigurationInput$RuntimeConfiguration": "

Instructions for launching server processes on each instance in the fleet. The runtime configuration for a fleet has a collection of server process configurations, one for each type of server process to run on an instance. A server process configuration specifies the location of the server executable, launch parameters, and the number of concurrent processes with that configuration to maintain on each instance.

", "UpdateRuntimeConfigurationOutput$RuntimeConfiguration": "

The runtime configuration currently in force. If the update was successful, this object matches the one in the request.

" } }, "S3Location": { - "base": "

Location in Amazon Simple Storage Service (Amazon S3) where a build's files are stored. This location is assigned in response to a CreateBuild call, and is always in the same region as the service used to create the build. For more details see the Amazon S3 documentation.

", + "base": "

Location in Amazon Simple Storage Service (Amazon S3) where build files can be stored for access by Amazon GameLift. This location is specified in a CreateBuild request. For more details, see the Create a Build with Files in Amazon S3.

", "refs": { - "CreateBuildInput$StorageLocation": null, - "CreateBuildOutput$StorageLocation": "

Amazon S3 path and key, identifying where the game build files are stored.

", + "CreateBuildInput$StorageLocation": "

Amazon S3 location of the game build files to be uploaded. The S3 bucket must be owned by the same AWS account that you're using to manage Amazon GameLift. It also must in the same region that you want to create a new build in. Before calling CreateBuild with this location, you must allow Amazon GameLift to access your Amazon S3 bucket (see Create a Build with Files in Amazon S3).

", + "CreateBuildOutput$StorageLocation": "

Amazon S3 location specified in the request.

", "RequestUploadCredentialsOutput$StorageLocation": "

Amazon S3 path and key, identifying where the game build files are stored.

" } }, @@ -1049,11 +1253,31 @@ "RuntimeConfiguration$ServerProcesses": "

Collection of server process configurations describing what server processes to run on each instance in a fleet

" } }, + "StartGameSessionPlacementInput": { + "base": null, + "refs": { + } + }, + "StartGameSessionPlacementOutput": { + "base": null, + "refs": { + } + }, + "StopGameSessionPlacementInput": { + "base": null, + "refs": { + } + }, + "StopGameSessionPlacementOutput": { + "base": null, + "refs": { + } + }, "StringList": { "base": null, "refs": { - "CreateFleetInput$LogPaths": "

Location of default log files. When a server process is shut down, Amazon GameLift captures and stores any log files in this location. These logs are in addition to game session logs; see more on game session logs in the Amazon GameLift Developer Guide. If no default log path for a fleet is specified, GameLift will automatically upload logs stored on each instance at C:\\game\\logs. Use the GameLift console to access stored logs.

", - "FleetAttributes$LogPaths": "

Location of default log files. When a server process is shut down, Amazon GameLift captures and stores any log files in this location. These logs are in addition to game session logs; see more on game session logs in the Amazon GameLift Developer Guide. If no default log path for a fleet is specified, GameLift will automatically upload logs stored on each instance at C:\\game\\logs. Use the GameLift console to access stored logs.

" + "CreateFleetInput$LogPaths": "

This parameter is no longer used. Instead, to specify where Amazon GameLift should store log files once a server process shuts down, use the Amazon GameLift server API ProcessReady() and specify one or more directory paths in logParameters. See more information in the Server API Reference.

", + "FleetAttributes$LogPaths": "

Location of default log files. When a server process is shut down, Amazon GameLift captures and stores any log files in this location. These logs are in addition to game session logs; see more on game session logs in the Amazon GameLift Developer Guide. If no default log path for a fleet is specified, Amazon GameLift will automatically upload logs that are stored on each instance at C:\\game\\logs (for Windows) or /local/game/logs (for Linux). Use the Amazon GameLift console to access stored logs.

" } }, "TerminalRoutingStrategyException": { @@ -1064,19 +1288,21 @@ "Timestamp": { "base": null, "refs": { - "Alias$CreationTime": "

Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\".

", - "Alias$LastUpdatedTime": "

Time stamp indicating when this data object was last modified. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\".

", - "Build$CreationTime": "

Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\".

", - "DescribeFleetEventsInput$StartTime": "

Earliest date to retrieve event logs for. If no start time is specified, this call returns entries starting from when the fleet was created to the specified end time. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\".

", - "DescribeFleetEventsInput$EndTime": "

Most recent date to retrieve event logs for. If no end time is specified, this call returns entries from the specified start time up to the present. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\".

", - "Event$EventTime": "

Time stamp indicating when this event occurred. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\".

", - "FleetAttributes$CreationTime": "

Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\".

", - "FleetAttributes$TerminationTime": "

Time stamp indicating when this data object was terminated. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\".

", - "GameSession$CreationTime": "

Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\".

", - "GameSession$TerminationTime": "

Time stamp indicating when this data object was terminated. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\".

", - "Instance$CreationTime": "

Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\").

", - "PlayerSession$CreationTime": "

Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\".

", - "PlayerSession$TerminationTime": "

Time stamp indicating when this data object was terminated. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\".

" + "Alias$CreationTime": "

Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").

", + "Alias$LastUpdatedTime": "

Time stamp indicating when this data object was last modified. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").

", + "Build$CreationTime": "

Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").

", + "DescribeFleetEventsInput$StartTime": "

Earliest date to retrieve event logs for. If no start time is specified, this call returns entries starting from when the fleet was created to the specified end time. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\").

", + "DescribeFleetEventsInput$EndTime": "

Most recent date to retrieve event logs for. If no end time is specified, this call returns entries from the specified start time up to the present. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\").

", + "Event$EventTime": "

Time stamp indicating when this event occurred. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").

", + "FleetAttributes$CreationTime": "

Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").

", + "FleetAttributes$TerminationTime": "

Time stamp indicating when this data object was terminated. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").

", + "GameSession$CreationTime": "

Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").

", + "GameSession$TerminationTime": "

Time stamp indicating when this data object was terminated. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").

", + "GameSessionPlacement$StartTime": "

Time stamp indicating when this request was placed in the queue. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").

", + "GameSessionPlacement$EndTime": "

Time stamp indicating when this request was completed, cancelled, or timed out.

", + "Instance$CreationTime": "

Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").

", + "PlayerSession$CreationTime": "

Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").

", + "PlayerSession$TerminationTime": "

Time stamp indicating when this data object was terminated. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\").

" } }, "UnauthorizedException": { @@ -1144,6 +1370,16 @@ "refs": { } }, + "UpdateGameSessionQueueInput": { + "base": null, + "refs": { + } + }, + "UpdateGameSessionQueueOutput": { + "base": null, + "refs": { + } + }, "UpdateRuntimeConfigurationInput": { "base": "

Represents the input for a request action.

", "refs": { @@ -1158,6 +1394,7 @@ "base": null, "refs": { "CreateGameSessionInput$MaximumPlayerSessionCount": "

Maximum number of players that can be connected simultaneously to the game session.

", + "CreateGameSessionQueueInput$TimeoutInSeconds": "

Maximum time, in seconds, that a new game session placement request remains in the queue. When a request exceeds this time, the game session placement changes to a TIMED_OUT status.

", "EC2InstanceCounts$DESIRED": "

Ideal number of active instances in the fleet.

", "EC2InstanceCounts$MINIMUM": "

Minimum value allowed for the fleet's instance count.

", "EC2InstanceCounts$MAXIMUM": "

Maximum value allowed for the fleet's instance count.

", @@ -1172,13 +1409,17 @@ "FleetUtilization$CurrentPlayerSessionCount": "

Number of active player sessions currently being hosted on all instances in the fleet.

", "FleetUtilization$MaximumPlayerSessionCount": "

Maximum players allowed across all game sessions currently being hosted on all instances in the fleet.

", "GameSession$CurrentPlayerSessionCount": "

Number of players currently in the game session.

", - "GameSession$MaximumPlayerSessionCount": "

Maximum number of players allowed in the game session.

", - "ResourceCreationLimitPolicy$NewGameSessionsPerCreator": "

Maximum number of game sessions an individual can create during the policy period.

", - "ResourceCreationLimitPolicy$PolicyPeriodInMinutes": "

Time span used to evaluate the resource creation limit policy.

", + "GameSession$MaximumPlayerSessionCount": "

Maximum number of players that can be connected simultaneously to the game session.

", + "GameSessionPlacement$MaximumPlayerSessionCount": "

Maximum number of players that can be connected simultaneously to the game session.

", + "GameSessionQueue$TimeoutInSeconds": "

Maximum time, in seconds, that a new game session placement request remains in the queue. When a request exceeds this time, the game session placement changes to a TIMED_OUT status.

", + "ResourceCreationLimitPolicy$NewGameSessionsPerCreator": "

Maximum number of game sessions that an individual can create during the policy period.

", + "ResourceCreationLimitPolicy$PolicyPeriodInMinutes": "

Time span used in evaluating the resource creation limit policy.

", + "StartGameSessionPlacementInput$MaximumPlayerSessionCount": "

Maximum number of players that can be connected simultaneously to the game session.

", "UpdateFleetCapacityInput$DesiredInstances": "

Number of EC2 instances you want this fleet to host.

", "UpdateFleetCapacityInput$MinSize": "

Minimum value allowed for the fleet's instance count. Default if not set is 0.

", "UpdateFleetCapacityInput$MaxSize": "

Maximum value allowed for the fleet's instance count. Default if not set is 1.

", - "UpdateGameSessionInput$MaximumPlayerSessionCount": "

Maximum number of players that can be simultaneously connected to the game session.

" + "UpdateGameSessionInput$MaximumPlayerSessionCount": "

Maximum number of players that can be connected simultaneously to the game session.

", + "UpdateGameSessionQueueInput$TimeoutInSeconds": "

Maximum time, in seconds, that a new game session placement request remains in the queue. When a request exceeds this time, the game session placement changes to a TIMED_OUT status.

" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/paginators-1.json new file mode 100644 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/api-2.json index d7db69087..66b4a4d5b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/api-2.json @@ -4,9 +4,10 @@ "apiVersion":"2012-06-01", "checksumFormat":"sha256", "endpointPrefix":"glacier", + "protocol":"rest-json", "serviceFullName":"Amazon Glacier", "signatureVersion":"v4", - "protocol":"rest-json" + "uid":"glacier-2012-06-01" }, "operations":{ "AbortMultipartUpload":{ @@ -18,26 +19,10 @@ }, "input":{"shape":"AbortMultipartUploadInput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "AbortVaultLock":{ @@ -49,26 +34,10 @@ }, "input":{"shape":"AbortVaultLockInput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "AddTagsToVault":{ @@ -80,31 +49,11 @@ }, "input":{"shape":"AddTagsToVaultInput"}, "errors":[ - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"LimitExceededException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"LimitExceededException"}, + {"shape":"ServiceUnavailableException"} ] }, "CompleteMultipartUpload":{ @@ -117,26 +66,10 @@ "input":{"shape":"CompleteMultipartUploadInput"}, "output":{"shape":"ArchiveCreationOutput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "CompleteVaultLock":{ @@ -148,26 +81,10 @@ }, "input":{"shape":"CompleteVaultLockInput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "CreateVault":{ @@ -180,26 +97,10 @@ "input":{"shape":"CreateVaultInput"}, "output":{"shape":"CreateVaultOutput"}, "errors":[ - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - }, - { - "shape":"LimitExceededException", - "error":{"httpStatusCode":400}, - "exception":true - } + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"LimitExceededException"} ] }, "DeleteArchive":{ @@ -211,26 +112,10 @@ }, "input":{"shape":"DeleteArchiveInput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "DeleteVault":{ @@ -242,26 +127,10 @@ }, "input":{"shape":"DeleteVaultInput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "DeleteVaultAccessPolicy":{ @@ -273,26 +142,10 @@ }, "input":{"shape":"DeleteVaultAccessPolicyInput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "DeleteVaultNotifications":{ @@ -304,26 +157,10 @@ }, "input":{"shape":"DeleteVaultNotificationsInput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "DescribeJob":{ @@ -335,26 +172,10 @@ "input":{"shape":"DescribeJobInput"}, "output":{"shape":"GlacierJobDescription"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "DescribeVault":{ @@ -366,26 +187,10 @@ "input":{"shape":"DescribeVaultInput"}, "output":{"shape":"DescribeVaultOutput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "GetDataRetrievalPolicy":{ @@ -397,21 +202,9 @@ "input":{"shape":"GetDataRetrievalPolicyInput"}, "output":{"shape":"GetDataRetrievalPolicyOutput"}, "errors":[ - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "GetJobOutput":{ @@ -423,26 +216,10 @@ "input":{"shape":"GetJobOutputInput"}, "output":{"shape":"GetJobOutputOutput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "GetVaultAccessPolicy":{ @@ -454,26 +231,10 @@ "input":{"shape":"GetVaultAccessPolicyInput"}, "output":{"shape":"GetVaultAccessPolicyOutput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "GetVaultLock":{ @@ -485,26 +246,10 @@ "input":{"shape":"GetVaultLockInput"}, "output":{"shape":"GetVaultLockOutput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "GetVaultNotifications":{ @@ -516,26 +261,10 @@ "input":{"shape":"GetVaultNotificationsInput"}, "output":{"shape":"GetVaultNotificationsOutput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "InitiateJob":{ @@ -548,31 +277,12 @@ "input":{"shape":"InitiateJobInput"}, "output":{"shape":"InitiateJobOutput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"PolicyEnforcedException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"PolicyEnforcedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"InsufficientCapacityException"}, + {"shape":"ServiceUnavailableException"} ] }, "InitiateMultipartUpload":{ @@ -585,26 +295,10 @@ "input":{"shape":"InitiateMultipartUploadInput"}, "output":{"shape":"InitiateMultipartUploadOutput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "InitiateVaultLock":{ @@ -617,26 +311,10 @@ "input":{"shape":"InitiateVaultLockInput"}, "output":{"shape":"InitiateVaultLockOutput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "ListJobs":{ @@ -648,26 +326,10 @@ "input":{"shape":"ListJobsInput"}, "output":{"shape":"ListJobsOutput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "ListMultipartUploads":{ @@ -679,26 +341,10 @@ "input":{"shape":"ListMultipartUploadsInput"}, "output":{"shape":"ListMultipartUploadsOutput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "ListParts":{ @@ -710,26 +356,24 @@ "input":{"shape":"ListPartsInput"}, "output":{"shape":"ListPartsOutput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "ListProvisionedCapacity":{ + "name":"ListProvisionedCapacity", + "http":{ + "method":"GET", + "requestUri":"/{accountId}/provisioned-capacity" + }, + "input":{"shape":"ListProvisionedCapacityInput"}, + "output":{"shape":"ListProvisionedCapacityOutput"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "ListTagsForVault":{ @@ -741,26 +385,10 @@ "input":{"shape":"ListTagsForVaultInput"}, "output":{"shape":"ListTagsForVaultOutput"}, "errors":[ - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ServiceUnavailableException"} ] }, "ListVaults":{ @@ -772,26 +400,26 @@ "input":{"shape":"ListVaultsInput"}, "output":{"shape":"ListVaultsOutput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "PurchaseProvisionedCapacity":{ + "name":"PurchaseProvisionedCapacity", + "http":{ + "method":"POST", + "requestUri":"/{accountId}/provisioned-capacity", + "responseCode":201 + }, + "input":{"shape":"PurchaseProvisionedCapacityInput"}, + "output":{"shape":"PurchaseProvisionedCapacityOutput"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"LimitExceededException"}, + {"shape":"ServiceUnavailableException"} ] }, "RemoveTagsFromVault":{ @@ -803,26 +431,10 @@ }, "input":{"shape":"RemoveTagsFromVaultInput"}, "errors":[ - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ServiceUnavailableException"} ] }, "SetDataRetrievalPolicy":{ @@ -834,21 +446,9 @@ }, "input":{"shape":"SetDataRetrievalPolicyInput"}, "errors":[ - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "SetVaultAccessPolicy":{ @@ -860,26 +460,10 @@ }, "input":{"shape":"SetVaultAccessPolicyInput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "SetVaultNotifications":{ @@ -891,26 +475,10 @@ }, "input":{"shape":"SetVaultNotificationsInput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"ServiceUnavailableException"} ] }, "UploadArchive":{ @@ -923,31 +491,11 @@ "input":{"shape":"UploadArchiveInput"}, "output":{"shape":"ArchiveCreationOutput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"RequestTimeoutException", - "error":{"httpStatusCode":408}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"RequestTimeoutException"}, + {"shape":"ServiceUnavailableException"} ] }, "UploadMultipartPart":{ @@ -960,37 +508,22 @@ "input":{"shape":"UploadMultipartPartInput"}, "output":{"shape":"UploadMultipartPartOutput"}, "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingParameterValueException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"RequestTimeoutException", - "error":{"httpStatusCode":408}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":500}, - "exception":true - } + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingParameterValueException"}, + {"shape":"RequestTimeoutException"}, + {"shape":"ServiceUnavailableException"} ] } }, "shapes":{ "AbortMultipartUploadInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName", + "uploadId" + ], "members":{ "accountId":{ "shape":"string", @@ -1007,15 +540,14 @@ "location":"uri", "locationName":"uploadId" } - }, - "required":[ - "accountId", - "vaultName", - "uploadId" - ] + } }, "AbortVaultLockInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName" + ], "members":{ "accountId":{ "shape":"string", @@ -1027,11 +559,7 @@ "location":"uri", "locationName":"vaultName" } - }, - "required":[ - "accountId", - "vaultName" - ] + } }, "ActionCode":{ "type":"string", @@ -1042,6 +570,10 @@ }, "AddTagsToVaultInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName" + ], "members":{ "accountId":{ "shape":"string", @@ -1054,11 +586,7 @@ "locationName":"vaultName" }, "Tags":{"shape":"TagMap"} - }, - "required":[ - "accountId", - "vaultName" - ] + } }, "ArchiveCreationOutput":{ "type":"structure", @@ -1082,6 +610,11 @@ }, "CompleteMultipartUploadInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName", + "uploadId" + ], "members":{ "accountId":{ "shape":"string", @@ -1108,15 +641,15 @@ "location":"header", "locationName":"x-amz-sha256-tree-hash" } - }, - "required":[ - "accountId", - "vaultName", - "uploadId" - ] + } }, "CompleteVaultLockInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName", + "lockId" + ], "members":{ "accountId":{ "shape":"string", @@ -1133,15 +666,14 @@ "location":"uri", "locationName":"lockId" } - }, - "required":[ - "accountId", - "vaultName", - "lockId" - ] + } }, "CreateVaultInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName" + ], "members":{ "accountId":{ "shape":"string", @@ -1153,11 +685,7 @@ "location":"uri", "locationName":"vaultName" } - }, - "required":[ - "accountId", - "vaultName" - ] + } }, "CreateVaultOutput":{ "type":"structure", @@ -1189,6 +717,11 @@ "DateTime":{"type":"string"}, "DeleteArchiveInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName", + "archiveId" + ], "members":{ "accountId":{ "shape":"string", @@ -1205,15 +738,14 @@ "location":"uri", "locationName":"archiveId" } - }, - "required":[ - "accountId", - "vaultName", - "archiveId" - ] + } }, "DeleteVaultAccessPolicyInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName" + ], "members":{ "accountId":{ "shape":"string", @@ -1225,14 +757,14 @@ "location":"uri", "locationName":"vaultName" } - }, - "required":[ - "accountId", - "vaultName" - ] + } }, "DeleteVaultInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName" + ], "members":{ "accountId":{ "shape":"string", @@ -1244,14 +776,14 @@ "location":"uri", "locationName":"vaultName" } - }, - "required":[ - "accountId", - "vaultName" - ] + } }, "DeleteVaultNotificationsInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName" + ], "members":{ "accountId":{ "shape":"string", @@ -1263,14 +795,15 @@ "location":"uri", "locationName":"vaultName" } - }, - "required":[ - "accountId", - "vaultName" - ] + } }, "DescribeJobInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName", + "jobId" + ], "members":{ "accountId":{ "shape":"string", @@ -1287,15 +820,14 @@ "location":"uri", "locationName":"jobId" } - }, - "required":[ - "accountId", - "vaultName", - "jobId" - ] + } }, "DescribeVaultInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName" + ], "members":{ "accountId":{ "shape":"string", @@ -1307,11 +839,7 @@ "location":"uri", "locationName":"vaultName" } - }, - "required":[ - "accountId", - "vaultName" - ] + } }, "DescribeVaultOutput":{ "type":"structure", @@ -1326,14 +854,14 @@ }, "GetDataRetrievalPolicyInput":{ "type":"structure", + "required":["accountId"], "members":{ "accountId":{ "shape":"string", "location":"uri", "locationName":"accountId" } - }, - "required":["accountId"] + } }, "GetDataRetrievalPolicyOutput":{ "type":"structure", @@ -1343,6 +871,11 @@ }, "GetJobOutputInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName", + "jobId" + ], "members":{ "accountId":{ "shape":"string", @@ -1364,12 +897,7 @@ "location":"header", "locationName":"Range" } - }, - "required":[ - "accountId", - "vaultName", - "jobId" - ] + } }, "GetJobOutputOutput":{ "type":"structure", @@ -1409,6 +937,10 @@ }, "GetVaultAccessPolicyInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName" + ], "members":{ "accountId":{ "shape":"string", @@ -1420,11 +952,7 @@ "location":"uri", "locationName":"vaultName" } - }, - "required":[ - "accountId", - "vaultName" - ] + } }, "GetVaultAccessPolicyOutput":{ "type":"structure", @@ -1435,6 +963,10 @@ }, "GetVaultLockInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName" + ], "members":{ "accountId":{ "shape":"string", @@ -1446,11 +978,7 @@ "location":"uri", "locationName":"vaultName" } - }, - "required":[ - "accountId", - "vaultName" - ] + } }, "GetVaultLockOutput":{ "type":"structure", @@ -1463,6 +991,10 @@ }, "GetVaultNotificationsInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName" + ], "members":{ "accountId":{ "shape":"string", @@ -1474,11 +1006,7 @@ "location":"uri", "locationName":"vaultName" } - }, - "required":[ - "accountId", - "vaultName" - ] + } }, "GetVaultNotificationsOutput":{ "type":"structure", @@ -1506,11 +1034,16 @@ "SHA256TreeHash":{"shape":"string"}, "ArchiveSHA256TreeHash":{"shape":"string"}, "RetrievalByteRange":{"shape":"string"}, + "Tier":{"shape":"string"}, "InventoryRetrievalParameters":{"shape":"InventoryRetrievalJobDescription"} } }, "InitiateJobInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName" + ], "members":{ "accountId":{ "shape":"string", @@ -1524,10 +1057,6 @@ }, "jobParameters":{"shape":"JobParameters"} }, - "required":[ - "accountId", - "vaultName" - ], "payload":"jobParameters" }, "InitiateJobOutput":{ @@ -1547,6 +1076,10 @@ }, "InitiateMultipartUploadInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName" + ], "members":{ "accountId":{ "shape":"string", @@ -1568,11 +1101,7 @@ "location":"header", "locationName":"x-amz-part-size" } - }, - "required":[ - "accountId", - "vaultName" - ] + } }, "InitiateMultipartUploadOutput":{ "type":"structure", @@ -1591,6 +1120,10 @@ }, "InitiateVaultLockInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName" + ], "members":{ "accountId":{ "shape":"string", @@ -1604,10 +1137,6 @@ }, "policy":{"shape":"VaultLockPolicy"} }, - "required":[ - "accountId", - "vaultName" - ], "payload":"policy" }, "InitiateVaultLockOutput":{ @@ -1620,6 +1149,16 @@ } } }, + "InsufficientCapacityException":{ + "type":"structure", + "members":{ + "type":{"shape":"string"}, + "code":{"shape":"string"}, + "message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, "InvalidParameterValueException":{ "type":"structure", "members":{ @@ -1662,6 +1201,7 @@ "Description":{"shape":"string"}, "SNSTopic":{"shape":"string"}, "RetrievalByteRange":{"shape":"string"}, + "Tier":{"shape":"string"}, "InventoryRetrievalParameters":{"shape":"InventoryRetrievalJobInput"} } }, @@ -1677,6 +1217,10 @@ }, "ListJobsInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName" + ], "members":{ "accountId":{ "shape":"string", @@ -1708,11 +1252,7 @@ "location":"querystring", "locationName":"completed" } - }, - "required":[ - "accountId", - "vaultName" - ] + } }, "ListJobsOutput":{ "type":"structure", @@ -1723,6 +1263,10 @@ }, "ListMultipartUploadsInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName" + ], "members":{ "accountId":{ "shape":"string", @@ -1744,11 +1288,7 @@ "location":"querystring", "locationName":"limit" } - }, - "required":[ - "accountId", - "vaultName" - ] + } }, "ListMultipartUploadsOutput":{ "type":"structure", @@ -1759,6 +1299,11 @@ }, "ListPartsInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName", + "uploadId" + ], "members":{ "accountId":{ "shape":"string", @@ -1785,12 +1330,7 @@ "location":"querystring", "locationName":"limit" } - }, - "required":[ - "accountId", - "vaultName", - "uploadId" - ] + } }, "ListPartsOutput":{ "type":"structure", @@ -1804,8 +1344,29 @@ "Marker":{"shape":"string"} } }, + "ListProvisionedCapacityInput":{ + "type":"structure", + "required":["accountId"], + "members":{ + "accountId":{ + "shape":"string", + "location":"uri", + "locationName":"accountId" + } + } + }, + "ListProvisionedCapacityOutput":{ + "type":"structure", + "members":{ + "ProvisionedCapacityList":{"shape":"ProvisionedCapacityList"} + } + }, "ListTagsForVaultInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName" + ], "members":{ "accountId":{ "shape":"string", @@ -1817,11 +1378,7 @@ "location":"uri", "locationName":"vaultName" } - }, - "required":[ - "accountId", - "vaultName" - ] + } }, "ListTagsForVaultOutput":{ "type":"structure", @@ -1831,6 +1388,7 @@ }, "ListVaultsInput":{ "type":"structure", + "required":["accountId"], "members":{ "accountId":{ "shape":"string", @@ -1847,8 +1405,7 @@ "location":"querystring", "locationName":"limit" } - }, - "required":["accountId"] + } }, "ListVaultsOutput":{ "type":"structure", @@ -1893,8 +1450,45 @@ "error":{"httpStatusCode":400}, "exception":true }, + "ProvisionedCapacityDescription":{ + "type":"structure", + "members":{ + "CapacityId":{"shape":"string"}, + "StartDate":{"shape":"string"}, + "ExpirationDate":{"shape":"string"} + } + }, + "ProvisionedCapacityList":{ + "type":"list", + "member":{"shape":"ProvisionedCapacityDescription"} + }, + "PurchaseProvisionedCapacityInput":{ + "type":"structure", + "required":["accountId"], + "members":{ + "accountId":{ + "shape":"string", + "location":"uri", + "locationName":"accountId" + } + } + }, + "PurchaseProvisionedCapacityOutput":{ + "type":"structure", + "members":{ + "capacityId":{ + "shape":"string", + "location":"header", + "locationName":"x-amz-capacity-id" + } + } + }, "RemoveTagsFromVaultInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName" + ], "members":{ "accountId":{ "shape":"string", @@ -1907,11 +1501,7 @@ "locationName":"vaultName" }, "TagKeys":{"shape":"TagKeyList"} - }, - "required":[ - "accountId", - "vaultName" - ] + } }, "RequestTimeoutException":{ "type":"structure", @@ -1945,6 +1535,7 @@ }, "SetDataRetrievalPolicyInput":{ "type":"structure", + "required":["accountId"], "members":{ "accountId":{ "shape":"string", @@ -1952,11 +1543,14 @@ "locationName":"accountId" }, "Policy":{"shape":"DataRetrievalPolicy"} - }, - "required":["accountId"] + } }, "SetVaultAccessPolicyInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName" + ], "members":{ "accountId":{ "shape":"string", @@ -1970,14 +1564,14 @@ }, "policy":{"shape":"VaultAccessPolicy"} }, - "required":[ - "accountId", - "vaultName" - ], "payload":"policy" }, "SetVaultNotificationsInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName" + ], "members":{ "accountId":{ "shape":"string", @@ -1991,10 +1585,6 @@ }, "vaultNotificationConfig":{"shape":"VaultNotificationConfig"} }, - "required":[ - "accountId", - "vaultName" - ], "payload":"vaultNotificationConfig" }, "Size":{"type":"long"}, @@ -2023,6 +1613,10 @@ "TagValue":{"type":"string"}, "UploadArchiveInput":{ "type":"structure", + "required":[ + "vaultName", + "accountId" + ], "members":{ "vaultName":{ "shape":"string", @@ -2046,10 +1640,6 @@ }, "body":{"shape":"Stream"} }, - "required":[ - "vaultName", - "accountId" - ], "payload":"body" }, "UploadListElement":{ @@ -2064,6 +1654,11 @@ }, "UploadMultipartPartInput":{ "type":"structure", + "required":[ + "accountId", + "vaultName", + "uploadId" + ], "members":{ "accountId":{ "shape":"string", @@ -2092,11 +1687,6 @@ }, "body":{"shape":"Stream"} }, - "required":[ - "accountId", - "vaultName", - "uploadId" - ], "payload":"body" }, "UploadMultipartPartOutput":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/docs-2.json index 3138266c6..07eb8305b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/docs-2.json @@ -1,42 +1,44 @@ { "version": "2.0", + "service": "

Amazon Glacier is a storage solution for \"cold data.\"

Amazon Glacier is an extremely low-cost storage service that provides secure, durable, and easy-to-use storage for data backup and archival. With Amazon Glacier, customers can store their data cost effectively for months, years, or decades. Amazon Glacier also enables customers to offload the administrative burdens of operating and scaling storage to AWS, so they don't have to worry about capacity planning, hardware provisioning, data replication, hardware failure and recovery, or time-consuming hardware migrations.

Amazon Glacier is a great storage choice when low storage cost is paramount, your data is rarely retrieved, and retrieval latency of several hours is acceptable. If your application requires fast or frequent access to your data, consider using Amazon S3. For more information, see Amazon Simple Storage Service (Amazon S3).

You can store any kind of data in any format. There is no maximum limit on the total amount of data you can store in Amazon Glacier.

If you are a first-time user of Amazon Glacier, we recommend that you begin by reading the following sections in the Amazon Glacier Developer Guide:

  • What is Amazon Glacier - This section of the Developer Guide describes the underlying data model, the operations it supports, and the AWS SDKs that you can use to interact with the service.

  • Getting Started with Amazon Glacier - The Getting Started section walks you through the process of creating a vault, uploading archives, creating jobs to download archives, retrieving the job output, and deleting archives.

", "operations": { - "AbortMultipartUpload": "

This operation aborts a multipart upload identified by the upload ID.

After the Abort Multipart Upload request succeeds, you cannot upload any more parts to the multipart upload or complete the multipart upload. Aborting a completed upload fails. However, aborting an already-aborted upload will succeed, for a short time. For more information about uploading a part and completing a multipart upload, see UploadMultipartPart and CompleteMultipartUpload.

This operation is idempotent.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, go to Working with Archives in Amazon Glacier and Abort Multipart Upload in the Amazon Glacier Developer Guide.

", + "AbortMultipartUpload": "

This operation aborts a multipart upload identified by the upload ID.

After the Abort Multipart Upload request succeeds, you cannot upload any more parts to the multipart upload or complete the multipart upload. Aborting a completed upload fails. However, aborting an already-aborted upload will succeed, for a short time. For more information about uploading a part and completing a multipart upload, see UploadMultipartPart and CompleteMultipartUpload.

This operation is idempotent.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, see Working with Archives in Amazon Glacier and Abort Multipart Upload in the Amazon Glacier Developer Guide.

", "AbortVaultLock": "

This operation aborts the vault locking process if the vault lock is not in the Locked state. If the vault lock is in the Locked state when this operation is requested, the operation returns an AccessDeniedException error. Aborting the vault locking process removes the vault lock policy from the specified vault.

A vault lock is put into the InProgress state by calling InitiateVaultLock. A vault lock is put into the Locked state by calling CompleteVaultLock. You can get the state of a vault lock by calling GetVaultLock. For more information about the vault locking process, see Amazon Glacier Vault Lock. For more information about vault lock policies, see Amazon Glacier Access Control with Vault Lock Policies.

This operation is idempotent. You can successfully invoke this operation multiple times, if the vault lock is in the InProgress state or if there is no policy associated with the vault.

", "AddTagsToVault": "

This operation adds the specified tags to a vault. Each tag is composed of a key and a value. Each vault can have up to 10 tags. If your request would cause the tag limit for the vault to be exceeded, the operation throws the LimitExceededException error. If a tag already exists on the vault under a specified key, the existing key value will be overwritten. For more information about tags, see Tagging Amazon Glacier Resources.

", - "CompleteMultipartUpload": "

You call this operation to inform Amazon Glacier that all the archive parts have been uploaded and that Amazon Glacier can now assemble the archive from the uploaded parts. After assembling and saving the archive to the vault, Amazon Glacier returns the URI path of the newly created archive resource. Using the URI path, you can then access the archive. After you upload an archive, you should save the archive ID returned to retrieve the archive at a later point. You can also get the vault inventory to obtain a list of archive IDs in a vault. For more information, see InitiateJob.

In the request, you must include the computed SHA256 tree hash of the entire archive you have uploaded. For information about computing a SHA256 tree hash, see Computing Checksums. On the server side, Amazon Glacier also constructs the SHA256 tree hash of the assembled archive. If the values match, Amazon Glacier saves the archive to the vault; otherwise, it returns an error, and the operation fails. The ListParts operation returns a list of parts uploaded for a specific multipart upload. It includes checksum information for each uploaded part that can be used to debug a bad checksum issue.

Additionally, Amazon Glacier also checks for any missing content ranges when assembling the archive, if missing content ranges are found, Amazon Glacier returns an error and the operation fails.

Complete Multipart Upload is an idempotent operation. After your first successful complete multipart upload, if you call the operation again within a short period, the operation will succeed and return the same archive ID. This is useful in the event you experience a network issue that causes an aborted connection or receive a 500 server error, in which case you can repeat your Complete Multipart Upload request and get the same archive ID without creating duplicate archives. Note, however, that after the multipart upload completes, you cannot call the List Parts operation and the multipart upload will not appear in List Multipart Uploads response, even if idempotent complete is possible.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, go to Uploading Large Archives in Parts (Multipart Upload) and Complete Multipart Upload in the Amazon Glacier Developer Guide.

", + "CompleteMultipartUpload": "

You call this operation to inform Amazon Glacier that all the archive parts have been uploaded and that Amazon Glacier can now assemble the archive from the uploaded parts. After assembling and saving the archive to the vault, Amazon Glacier returns the URI path of the newly created archive resource. Using the URI path, you can then access the archive. After you upload an archive, you should save the archive ID returned to retrieve the archive at a later point. You can also get the vault inventory to obtain a list of archive IDs in a vault. For more information, see InitiateJob.

In the request, you must include the computed SHA256 tree hash of the entire archive you have uploaded. For information about computing a SHA256 tree hash, see Computing Checksums. On the server side, Amazon Glacier also constructs the SHA256 tree hash of the assembled archive. If the values match, Amazon Glacier saves the archive to the vault; otherwise, it returns an error, and the operation fails. The ListParts operation returns a list of parts uploaded for a specific multipart upload. It includes checksum information for each uploaded part that can be used to debug a bad checksum issue.

Additionally, Amazon Glacier also checks for any missing content ranges when assembling the archive, if missing content ranges are found, Amazon Glacier returns an error and the operation fails.

Complete Multipart Upload is an idempotent operation. After your first successful complete multipart upload, if you call the operation again within a short period, the operation will succeed and return the same archive ID. This is useful in the event you experience a network issue that causes an aborted connection or receive a 500 server error, in which case you can repeat your Complete Multipart Upload request and get the same archive ID without creating duplicate archives. Note, however, that after the multipart upload completes, you cannot call the List Parts operation and the multipart upload will not appear in List Multipart Uploads response, even if idempotent complete is possible.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, see Uploading Large Archives in Parts (Multipart Upload) and Complete Multipart Upload in the Amazon Glacier Developer Guide.

", "CompleteVaultLock": "

This operation completes the vault locking process by transitioning the vault lock from the InProgress state to the Locked state, which causes the vault lock policy to become unchangeable. A vault lock is put into the InProgress state by calling InitiateVaultLock. You can obtain the state of the vault lock by calling GetVaultLock. For more information about the vault locking process, Amazon Glacier Vault Lock.

This operation is idempotent. This request is always successful if the vault lock is in the Locked state and the provided lock ID matches the lock ID originally used to lock the vault.

If an invalid lock ID is passed in the request when the vault lock is in the Locked state, the operation returns an AccessDeniedException error. If an invalid lock ID is passed in the request when the vault lock is in the InProgress state, the operation throws an InvalidParameter error.

", - "CreateVault": "

This operation creates a new vault with the specified name. The name of the vault must be unique within a region for an AWS account. You can create up to 1,000 vaults per account. If you need to create more vaults, contact Amazon Glacier.

You must use the following guidelines when naming a vault.

  • Names can be between 1 and 255 characters long.

  • Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), and '.' (period).

This operation is idempotent.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, go to Creating a Vault in Amazon Glacier and Create Vault in the Amazon Glacier Developer Guide.

", - "DeleteArchive": "

This operation deletes an archive from a vault. Subsequent requests to initiate a retrieval of this archive will fail. Archive retrievals that are in progress for this archive ID may or may not succeed according to the following scenarios:

  • If the archive retrieval job is actively preparing the data for download when Amazon Glacier receives the delete archive request, the archival retrieval operation might fail.
  • If the archive retrieval job has successfully prepared the archive for download when Amazon Glacier receives the delete archive request, you will be able to download the output.

This operation is idempotent. Attempting to delete an already-deleted archive does not result in an error.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, go to Deleting an Archive in Amazon Glacier and Delete Archive in the Amazon Glacier Developer Guide.

", - "DeleteVault": "

This operation deletes a vault. Amazon Glacier will delete a vault only if there are no archives in the vault as of the last inventory and there have been no writes to the vault since the last inventory. If either of these conditions is not satisfied, the vault deletion fails (that is, the vault is not removed) and Amazon Glacier returns an error. You can use DescribeVault to return the number of archives in a vault, and you can use Initiate a Job (POST jobs) to initiate a new inventory retrieval for a vault. The inventory contains the archive IDs you use to delete archives using Delete Archive (DELETE archive).

This operation is idempotent.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, go to Deleting a Vault in Amazon Glacier and Delete Vault in the Amazon Glacier Developer Guide.

", + "CreateVault": "

This operation creates a new vault with the specified name. The name of the vault must be unique within a region for an AWS account. You can create up to 1,000 vaults per account. If you need to create more vaults, contact Amazon Glacier.

You must use the following guidelines when naming a vault.

  • Names can be between 1 and 255 characters long.

  • Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), and '.' (period).

This operation is idempotent.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, see Creating a Vault in Amazon Glacier and Create Vault in the Amazon Glacier Developer Guide.

", + "DeleteArchive": "

This operation deletes an archive from a vault. Subsequent requests to initiate a retrieval of this archive will fail. Archive retrievals that are in progress for this archive ID may or may not succeed according to the following scenarios:

  • If the archive retrieval job is actively preparing the data for download when Amazon Glacier receives the delete archive request, the archival retrieval operation might fail.

  • If the archive retrieval job has successfully prepared the archive for download when Amazon Glacier receives the delete archive request, you will be able to download the output.

This operation is idempotent. Attempting to delete an already-deleted archive does not result in an error.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, see Deleting an Archive in Amazon Glacier and Delete Archive in the Amazon Glacier Developer Guide.

", + "DeleteVault": "

This operation deletes a vault. Amazon Glacier will delete a vault only if there are no archives in the vault as of the last inventory and there have been no writes to the vault since the last inventory. If either of these conditions is not satisfied, the vault deletion fails (that is, the vault is not removed) and Amazon Glacier returns an error. You can use DescribeVault to return the number of archives in a vault, and you can use Initiate a Job (POST jobs) to initiate a new inventory retrieval for a vault. The inventory contains the archive IDs you use to delete archives using Delete Archive (DELETE archive).

This operation is idempotent.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, see Deleting a Vault in Amazon Glacier and Delete Vault in the Amazon Glacier Developer Guide.

", "DeleteVaultAccessPolicy": "

This operation deletes the access policy associated with the specified vault. The operation is eventually consistent; that is, it might take some time for Amazon Glacier to completely remove the access policy, and you might still see the effect of the policy for a short time after you send the delete request.

This operation is idempotent. You can invoke delete multiple times, even if there is no policy associated with the vault. For more information about vault access policies, see Amazon Glacier Access Control with Vault Access Policies.

", - "DeleteVaultNotifications": "

This operation deletes the notification configuration set for a vault. The operation is eventually consistent; that is, it might take some time for Amazon Glacier to completely disable the notifications and you might still receive some notifications for a short time after you send the delete request.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, go to Configuring Vault Notifications in Amazon Glacier and Delete Vault Notification Configuration in the Amazon Glacier Developer Guide.

", - "DescribeJob": "

This operation returns information about a job you previously initiated, including the job initiation date, the user who initiated the job, the job status code/message and the Amazon SNS topic to notify after Amazon Glacier completes the job. For more information about initiating a job, see InitiateJob.

This operation enables you to check the status of your job. However, it is strongly recommended that you set up an Amazon SNS topic and specify it in your initiate job request so that Amazon Glacier can notify the topic after it completes the job.

A job ID will not expire for at least 24 hours after Amazon Glacier completes the job.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For information about the underlying REST API, go to Working with Archives in Amazon Glacier in the Amazon Glacier Developer Guide.

", - "DescribeVault": "

This operation returns information about a vault, including the vault's Amazon Resource Name (ARN), the date the vault was created, the number of archives it contains, and the total size of all the archives in the vault. The number of archives and their total size are as of the last inventory generation. This means that if you add or remove an archive from a vault, and then immediately use Describe Vault, the change in contents will not be immediately reflected. If you want to retrieve the latest inventory of the vault, use InitiateJob. Amazon Glacier generates vault inventories approximately daily. For more information, see Downloading a Vault Inventory in Amazon Glacier.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, go to Retrieving Vault Metadata in Amazon Glacier and Describe Vault in the Amazon Glacier Developer Guide.

", + "DeleteVaultNotifications": "

This operation deletes the notification configuration set for a vault. The operation is eventually consistent; that is, it might take some time for Amazon Glacier to completely disable the notifications and you might still receive some notifications for a short time after you send the delete request.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, see Configuring Vault Notifications in Amazon Glacier and Delete Vault Notification Configuration in the Amazon Glacier Developer Guide.

", + "DescribeJob": "

This operation returns information about a job you previously initiated, including the job initiation date, the user who initiated the job, the job status code/message and the Amazon SNS topic to notify after Amazon Glacier completes the job. For more information about initiating a job, see InitiateJob.

This operation enables you to check the status of your job. However, it is strongly recommended that you set up an Amazon SNS topic and specify it in your initiate job request so that Amazon Glacier can notify the topic after it completes the job.

A job ID will not expire for at least 24 hours after Amazon Glacier completes the job.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For information about the underlying REST API, see Working with Archives in Amazon Glacier in the Amazon Glacier Developer Guide.

", + "DescribeVault": "

This operation returns information about a vault, including the vault's Amazon Resource Name (ARN), the date the vault was created, the number of archives it contains, and the total size of all the archives in the vault. The number of archives and their total size are as of the last inventory generation. This means that if you add or remove an archive from a vault, and then immediately use Describe Vault, the change in contents will not be immediately reflected. If you want to retrieve the latest inventory of the vault, use InitiateJob. Amazon Glacier generates vault inventories approximately daily. For more information, see Downloading a Vault Inventory in Amazon Glacier.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, see Retrieving Vault Metadata in Amazon Glacier and Describe Vault in the Amazon Glacier Developer Guide.

", "GetDataRetrievalPolicy": "

This operation returns the current data retrieval policy for the account and region specified in the GET request. For more information about data retrieval policies, see Amazon Glacier Data Retrieval Policies.

", - "GetJobOutput": "

This operation downloads the output of the job you initiated using InitiateJob. Depending on the job type you specified when you initiated the job, the output will be either the content of an archive or a vault inventory.

A job ID will not expire for at least 24 hours after Amazon Glacier completes the job. That is, you can download the job output within the 24 hours period after Amazon Glacier completes the job.

If the job output is large, then you can use the Range request header to retrieve a portion of the output. This allows you to download the entire output in smaller chunks of bytes. For example, suppose you have 1 GB of job output you want to download and you decide to download 128 MB chunks of data at a time, which is a total of eight Get Job Output requests. You use the following process to download the job output:

  1. Download a 128 MB chunk of output by specifying the appropriate byte range using the Range header.

  2. Along with the data, the response includes a SHA256 tree hash of the payload. You compute the checksum of the payload on the client and compare it with the checksum you received in the response to ensure you received all the expected data.

  3. Repeat steps 1 and 2 for all the eight 128 MB chunks of output data, each time specifying the appropriate byte range.

  4. After downloading all the parts of the job output, you have a list of eight checksum values. Compute the tree hash of these values to find the checksum of the entire output. Using the DescribeJob API, obtain job information of the job that provided you the output. The response includes the checksum of the entire archive stored in Amazon Glacier. You compare this value with the checksum you computed to ensure you have downloaded the entire archive content with no errors.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and the underlying REST API, go to Downloading a Vault Inventory, Downloading an Archive, and Get Job Output

", + "GetJobOutput": "

This operation downloads the output of the job you initiated using InitiateJob. Depending on the job type you specified when you initiated the job, the output will be either the content of an archive or a vault inventory.

You can download all the job output or download a portion of the output by specifying a byte range. In the case of an archive retrieval job, depending on the byte range you specify, Amazon Glacier returns the checksum for the portion of the data. You can compute the checksum on the client and verify that the values match to ensure the portion you downloaded is the correct data.

A job ID will not expire for at least 24 hours after Amazon Glacier completes the job. That a byte range. For both archive and inventory retrieval jobs, you should verify the downloaded size against the size returned in the headers from the Get Job Output response.

For archive retrieval jobs, you should also verify that the size is what you expected. If you download a portion of the output, the expected size is based on the range of bytes you specified. For example, if you specify a range of bytes=0-1048575, you should verify your download size is 1,048,576 bytes. If you download an entire archive, the expected size is the size of the archive when you uploaded it to Amazon Glacier The expected size is also returned in the headers from the Get Job Output response.

In the case of an archive retrieval job, depending on the byte range you specify, Amazon Glacier returns the checksum for the portion of the data. To ensure the portion you downloaded is the correct data, compute the checksum on the client, verify that the values match, and verify that the size is what you expected.

A job ID does not expire for at least 24 hours after Amazon Glacier completes the job. That is, you can download the job output within the 24 hours period after Amazon Glacier completes the job.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and the underlying REST API, see Downloading a Vault Inventory, Downloading an Archive, and Get Job Output

", "GetVaultAccessPolicy": "

This operation retrieves the access-policy subresource set on the vault; for more information on setting this subresource, see Set Vault Access Policy (PUT access-policy). If there is no access policy set on the vault, the operation returns a 404 Not found error. For more information about vault access policies, see Amazon Glacier Access Control with Vault Access Policies.

", - "GetVaultLock": "

This operation retrieves the following attributes from the lock-policy subresource set on the specified vault:

  • The vault lock policy set on the vault.

  • The state of the vault lock, which is either InProgess or Locked.

  • When the lock ID expires. The lock ID is used to complete the vault locking process.

  • When the vault lock was initiated and put into the InProgress state.

A vault lock is put into the InProgress state by calling InitiateVaultLock. A vault lock is put into the Locked state by calling CompleteVaultLock. You can abort the vault locking process by calling AbortVaultLock. For more information about the vault locking process, Amazon Glacier Vault Lock.

If there is no vault lock policy set on the vault, the operation returns a 404 Not found error. For more information about vault lock policies, Amazon Glacier Access Control with Vault Lock Policies.

", - "GetVaultNotifications": "

This operation retrieves the notification-configuration subresource of the specified vault.

For information about setting a notification configuration on a vault, see SetVaultNotifications. If a notification configuration for a vault is not set, the operation returns a 404 Not Found error. For more information about vault notifications, see Configuring Vault Notifications in Amazon Glacier.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, go to Configuring Vault Notifications in Amazon Glacier and Get Vault Notification Configuration in the Amazon Glacier Developer Guide.

", - "InitiateJob": "

This operation initiates a job of the specified type. In this release, you can initiate a job to retrieve either an archive or a vault inventory (a list of archives in a vault).

Retrieving data from Amazon Glacier is a two-step process:

  1. Initiate a retrieval job.

    A data retrieval policy can cause your initiate retrieval job request to fail with a PolicyEnforcedException exception. For more information about data retrieval policies, see Amazon Glacier Data Retrieval Policies. For more information about the PolicyEnforcedException exception, see Error Responses.

  2. After the job completes, download the bytes.

The retrieval request is executed asynchronously. When you initiate a retrieval job, Amazon Glacier creates a job and returns a job ID in the response. When Amazon Glacier completes the job, you can get the job output (archive or inventory data). For information about getting job output, see GetJobOutput operation.

The job must complete before you can get its output. To determine when a job is complete, you have the following options:

  • Use Amazon SNS Notification You can specify an Amazon Simple Notification Service (Amazon SNS) topic to which Amazon Glacier can post a notification after the job is completed. You can specify an SNS topic per job request. The notification is sent only after Amazon Glacier completes the job. In addition to specifying an SNS topic per job request, you can configure vault notifications for a vault so that job notifications are always sent. For more information, see SetVaultNotifications.

  • Get job details You can make a DescribeJob request to obtain job status information while a job is in progress. However, it is more efficient to use an Amazon SNS notification to determine when a job is complete.

The information you get via notification is same that you get by calling DescribeJob.

If for a specific event, you add both the notification configuration on the vault and also specify an SNS topic in your initiate job request, Amazon Glacier sends both notifications. For more information, see SetVaultNotifications.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

About the Vault Inventory

Amazon Glacier prepares an inventory for each vault periodically, every 24 hours. When you initiate a job for a vault inventory, Amazon Glacier returns the last inventory for the vault. The inventory data you get might be up to a day or two days old. Also, the initiate inventory job might take some time to complete before you can download the vault inventory. So you do not want to retrieve a vault inventory for each vault operation. However, in some scenarios, you might find the vault inventory useful. For example, when you upload an archive, you can provide an archive description but not an archive name. Amazon Glacier provides you a unique archive ID, an opaque string of characters. So, you might maintain your own database that maps archive names to their corresponding Amazon Glacier assigned archive IDs. You might find the vault inventory useful in the event you need to reconcile information in your database with the actual vault inventory.

Range Inventory Retrieval

You can limit the number of inventory items retrieved by filtering on the archive creation date or by setting a limit.

Filtering by Archive Creation Date

You can retrieve inventory items for archives created between StartDate and EndDate by specifying values for these parameters in the InitiateJob request. Archives created on or after the StartDate and before the EndDate will be returned. If you only provide the StartDate without the EndDate, you will retrieve the inventory for all archives created on or after the StartDate. If you only provide the EndDate without the StartDate, you will get back the inventory for all archives created before the EndDate.

Limiting Inventory Items per Retrieval

You can limit the number of inventory items returned by setting the Limit parameter in the InitiateJob request. The inventory job output will contain inventory items up to the specified Limit. If there are more inventory items available, the result is paginated. After a job is complete you can use the DescribeJob operation to get a marker that you use in a subsequent InitiateJob request. The marker will indicate the starting point to retrieve the next set of inventory items. You can page through your entire inventory by repeatedly making InitiateJob requests with the marker from the previous DescribeJob output, until you get a marker from DescribeJob that returns null, indicating that there are no more inventory items available.

You can use the Limit parameter together with the date range parameters.

About Ranged Archive Retrieval

You can initiate an archive retrieval for the whole archive or a range of the archive. In the case of ranged archive retrieval, you specify a byte range to return or the whole archive. The range specified must be megabyte (MB) aligned, that is the range start value must be divisible by 1 MB and range end value plus 1 must be divisible by 1 MB or equal the end of the archive. If the ranged archive retrieval is not megabyte aligned, this operation returns a 400 response. Furthermore, to ensure you get checksum values for data you download using Get Job Output API, the range must be tree hash aligned.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and the underlying REST API, go to Initiate a Job and Downloading a Vault Inventory

", - "InitiateMultipartUpload": "

This operation initiates a multipart upload. Amazon Glacier creates a multipart upload resource and returns its ID in the response. The multipart upload ID is used in subsequent requests to upload parts of an archive (see UploadMultipartPart).

When you initiate a multipart upload, you specify the part size in number of bytes. The part size must be a megabyte (1024 KB) multiplied by a power of 2-for example, 1048576 (1 MB), 2097152 (2 MB), 4194304 (4 MB), 8388608 (8 MB), and so on. The minimum allowable part size is 1 MB, and the maximum is 4 GB.

Every part you upload to this resource (see UploadMultipartPart), except the last one, must have the same size. The last one can be the same size or smaller. For example, suppose you want to upload a 16.2 MB file. If you initiate the multipart upload with a part size of 4 MB, you will upload four parts of 4 MB each and one part of 0.2 MB.

You don't need to know the size of the archive when you start a multipart upload because Amazon Glacier does not require you to specify the overall archive size.

After you complete the multipart upload, Amazon Glacier removes the multipart upload resource referenced by the ID. Amazon Glacier also removes the multipart upload resource if you cancel the multipart upload or it may be removed if there is no activity for a period of 24 hours.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, go to Uploading Large Archives in Parts (Multipart Upload) and Initiate Multipart Upload in the Amazon Glacier Developer Guide.

", - "InitiateVaultLock": "

This operation initiates the vault locking process by doing the following:

  • Installing a vault lock policy on the specified vault.

  • Setting the lock state of vault lock to InProgress.

  • Returning a lock ID, which is used to complete the vault locking process.

You can set one vault lock policy for each vault and this policy can be up to 20 KB in size. For more information about vault lock policies, see Amazon Glacier Access Control with Vault Lock Policies.

You must complete the vault locking process within 24 hours after the vault lock enters the InProgress state. After the 24 hour window ends, the lock ID expires, the vault automatically exits the InProgress state, and the vault lock policy is removed from the vault. You call CompleteVaultLock to complete the vault locking process by setting the state of the vault lock to Locked.

After a vault lock is in the Locked state, you cannot initiate a new vault lock for the vault.

You can abort the vault locking process by calling AbortVaultLock. You can get the state of the vault lock by calling GetVaultLock. For more information about the vault locking process, Amazon Glacier Vault Lock.

If this operation is called when the vault lock is in the InProgress state, the operation returns an AccessDeniedException error. When the vault lock is in the InProgress state you must call AbortVaultLock before you can initiate a new vault lock policy.

", - "ListJobs": "

This operation lists jobs for a vault, including jobs that are in-progress and jobs that have recently finished.

Amazon Glacier retains recently completed jobs for a period before deleting them; however, it eventually removes completed jobs. The output of completed jobs can be retrieved. Retaining completed jobs for a period of time after they have completed enables you to get a job output in the event you miss the job completion notification or your first attempt to download it fails. For example, suppose you start an archive retrieval job to download an archive. After the job completes, you start to download the archive but encounter a network error. In this scenario, you can retry and download the archive while the job exists.

To retrieve an archive or retrieve a vault inventory from Amazon Glacier, you first initiate a job, and after the job completes, you download the data. For an archive retrieval, the output is the archive data, and for an inventory retrieval, it is the inventory list. The List Job operation returns a list of these jobs sorted by job initiation time.

This List Jobs operation supports pagination. By default, this operation returns up to 1,000 jobs in the response. You should always check the response for a marker at which to continue the list; if there are no more items the marker is null. To return a list of jobs that begins at a specific job, set the marker request parameter to the value you obtained from a previous List Jobs request. You can also limit the number of jobs returned in the response by specifying the limit parameter in the request.

Additionally, you can filter the jobs list returned by specifying an optional statuscode (InProgress, Succeeded, or Failed) and completed (true, false) parameter. The statuscode allows you to specify that only jobs that match a specified status are returned. The completed parameter allows you to specify that only jobs in a specific completion state are returned.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For the underlying REST API, go to List Jobs

", - "ListMultipartUploads": "

This operation lists in-progress multipart uploads for the specified vault. An in-progress multipart upload is a multipart upload that has been initiated by an InitiateMultipartUpload request, but has not yet been completed or aborted. The list returned in the List Multipart Upload response has no guaranteed order.

The List Multipart Uploads operation supports pagination. By default, this operation returns up to 1,000 multipart uploads in the response. You should always check the response for a marker at which to continue the list; if there are no more items the marker is null. To return a list of multipart uploads that begins at a specific upload, set the marker request parameter to the value you obtained from a previous List Multipart Upload request. You can also limit the number of uploads returned in the response by specifying the limit parameter in the request.

Note the difference between this operation and listing parts (ListParts). The List Multipart Uploads operation lists all multipart uploads for a vault and does not require a multipart upload ID. The List Parts operation requires a multipart upload ID since parts are associated with a single upload.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and the underlying REST API, go to Working with Archives in Amazon Glacier and List Multipart Uploads in the Amazon Glacier Developer Guide.

", - "ListParts": "

This operation lists the parts of an archive that have been uploaded in a specific multipart upload. You can make this request at any time during an in-progress multipart upload before you complete the upload (see CompleteMultipartUpload. List Parts returns an error for completed uploads. The list returned in the List Parts response is sorted by part range.

The List Parts operation supports pagination. By default, this operation returns up to 1,000 uploaded parts in the response. You should always check the response for a marker at which to continue the list; if there are no more items the marker is null. To return a list of parts that begins at a specific part, set the marker request parameter to the value you obtained from a previous List Parts request. You can also limit the number of parts returned in the response by specifying the limit parameter in the request.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and the underlying REST API, go to Working with Archives in Amazon Glacier and List Parts in the Amazon Glacier Developer Guide.

", + "GetVaultLock": "

This operation retrieves the following attributes from the lock-policy subresource set on the specified vault:

  • The vault lock policy set on the vault.

  • The state of the vault lock, which is either InProgess or Locked.

  • When the lock ID expires. The lock ID is used to complete the vault locking process.

  • When the vault lock was initiated and put into the InProgress state.

A vault lock is put into the InProgress state by calling InitiateVaultLock. A vault lock is put into the Locked state by calling CompleteVaultLock. You can abort the vault locking process by calling AbortVaultLock. For more information about the vault locking process, Amazon Glacier Vault Lock.

If there is no vault lock policy set on the vault, the operation returns a 404 Not found error. For more information about vault lock policies, Amazon Glacier Access Control with Vault Lock Policies.

", + "GetVaultNotifications": "

This operation retrieves the notification-configuration subresource of the specified vault.

For information about setting a notification configuration on a vault, see SetVaultNotifications. If a notification configuration for a vault is not set, the operation returns a 404 Not Found error. For more information about vault notifications, see Configuring Vault Notifications in Amazon Glacier.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, see Configuring Vault Notifications in Amazon Glacier and Get Vault Notification Configuration in the Amazon Glacier Developer Guide.

", + "InitiateJob": "

This operation initiates a job of the specified type. In this release, you can initiate a job to retrieve either an archive or a vault inventory (a list of archives in a vault).

Retrieving data from Amazon Glacier is a two-step process:

  1. Initiate a retrieval job.

    A data retrieval policy can cause your initiate retrieval job request to fail with a PolicyEnforcedException exception. For more information about data retrieval policies, see Amazon Glacier Data Retrieval Policies. For more information about the PolicyEnforcedException exception, see Error Responses.

  2. After the job completes, download the bytes.

The retrieval request is executed asynchronously. When you initiate a retrieval job, Amazon Glacier creates a job and returns a job ID in the response. When Amazon Glacier completes the job, you can get the job output (archive or inventory data). For information about getting job output, see GetJobOutput operation.

The job must complete before you can get its output. To determine when a job is complete, you have the following options:

  • Use Amazon SNS Notification You can specify an Amazon Simple Notification Service (Amazon SNS) topic to which Amazon Glacier can post a notification after the job is completed. You can specify an SNS topic per job request. The notification is sent only after Amazon Glacier completes the job. In addition to specifying an SNS topic per job request, you can configure vault notifications for a vault so that job notifications are always sent. For more information, see SetVaultNotifications.

  • Get job details You can make a DescribeJob request to obtain job status information while a job is in progress. However, it is more efficient to use an Amazon SNS notification to determine when a job is complete.

The information you get via notification is same that you get by calling DescribeJob.

If for a specific event, you add both the notification configuration on the vault and also specify an SNS topic in your initiate job request, Amazon Glacier sends both notifications. For more information, see SetVaultNotifications.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

About the Vault Inventory

Amazon Glacier prepares an inventory for each vault periodically, every 24 hours. When you initiate a job for a vault inventory, Amazon Glacier returns the last inventory for the vault. The inventory data you get might be up to a day or two days old. Also, the initiate inventory job might take some time to complete before you can download the vault inventory. So you do not want to retrieve a vault inventory for each vault operation. However, in some scenarios, you might find the vault inventory useful. For example, when you upload an archive, you can provide an archive description but not an archive name. Amazon Glacier provides you a unique archive ID, an opaque string of characters. So, you might maintain your own database that maps archive names to their corresponding Amazon Glacier assigned archive IDs. You might find the vault inventory useful in the event you need to reconcile information in your database with the actual vault inventory.

Range Inventory Retrieval

You can limit the number of inventory items retrieved by filtering on the archive creation date or by setting a limit.

Filtering by Archive Creation Date

You can retrieve inventory items for archives created between StartDate and EndDate by specifying values for these parameters in the InitiateJob request. Archives created on or after the StartDate and before the EndDate will be returned. If you only provide the StartDate without the EndDate, you will retrieve the inventory for all archives created on or after the StartDate. If you only provide the EndDate without the StartDate, you will get back the inventory for all archives created before the EndDate.

Limiting Inventory Items per Retrieval

You can limit the number of inventory items returned by setting the Limit parameter in the InitiateJob request. The inventory job output will contain inventory items up to the specified Limit. If there are more inventory items available, the result is paginated. After a job is complete you can use the DescribeJob operation to get a marker that you use in a subsequent InitiateJob request. The marker will indicate the starting point to retrieve the next set of inventory items. You can page through your entire inventory by repeatedly making InitiateJob requests with the marker from the previous DescribeJob output, until you get a marker from DescribeJob that returns null, indicating that there are no more inventory items available.

You can use the Limit parameter together with the date range parameters.

About Ranged Archive Retrieval

You can initiate an archive retrieval for the whole archive or a range of the archive. In the case of ranged archive retrieval, you specify a byte range to return or the whole archive. The range specified must be megabyte (MB) aligned, that is the range start value must be divisible by 1 MB and range end value plus 1 must be divisible by 1 MB or equal the end of the archive. If the ranged archive retrieval is not megabyte aligned, this operation returns a 400 response. Furthermore, to ensure you get checksum values for data you download using Get Job Output API, the range must be tree hash aligned.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and the underlying REST API, see Initiate a Job and Downloading a Vault Inventory

Expedited and Bulk Archive Retrievals

When retrieving an archive, you can specify one of the following options in the Tier field of the request body:

  • Standard The default type of retrieval, which allows access to any of your archives within several hours. Standard retrievals typically complete within 3–5 hours.

  • Bulk Amazon Glacier’s lowest-cost retrieval option, which enables you to retrieve large amounts of data inexpensively in a day. Bulk retrieval requests typically complete within 5–12 hours.

  • Expedited Amazon Glacier’s option for the fastest retrievals. Archives requested using the expedited retrievals typically become accessible within 1–5 minutes.

For more information about expedited and bulk retrievals, see Retrieving Amazon Glacier Archives.

", + "InitiateMultipartUpload": "

This operation initiates a multipart upload. Amazon Glacier creates a multipart upload resource and returns its ID in the response. The multipart upload ID is used in subsequent requests to upload parts of an archive (see UploadMultipartPart).

When you initiate a multipart upload, you specify the part size in number of bytes. The part size must be a megabyte (1024 KB) multiplied by a power of 2-for example, 1048576 (1 MB), 2097152 (2 MB), 4194304 (4 MB), 8388608 (8 MB), and so on. The minimum allowable part size is 1 MB, and the maximum is 4 GB.

Every part you upload to this resource (see UploadMultipartPart), except the last one, must have the same size. The last one can be the same size or smaller. For example, suppose you want to upload a 16.2 MB file. If you initiate the multipart upload with a part size of 4 MB, you will upload four parts of 4 MB each and one part of 0.2 MB.

You don't need to know the size of the archive when you start a multipart upload because Amazon Glacier does not require you to specify the overall archive size.

After you complete the multipart upload, Amazon Glacier removes the multipart upload resource referenced by the ID. Amazon Glacier also removes the multipart upload resource if you cancel the multipart upload or it may be removed if there is no activity for a period of 24 hours.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, see Uploading Large Archives in Parts (Multipart Upload) and Initiate Multipart Upload in the Amazon Glacier Developer Guide.

", + "InitiateVaultLock": "

This operation initiates the vault locking process by doing the following:

  • Installing a vault lock policy on the specified vault.

  • Setting the lock state of vault lock to InProgress.

  • Returning a lock ID, which is used to complete the vault locking process.

You can set one vault lock policy for each vault and this policy can be up to 20 KB in size. For more information about vault lock policies, see Amazon Glacier Access Control with Vault Lock Policies.

You must complete the vault locking process within 24 hours after the vault lock enters the InProgress state. After the 24 hour window ends, the lock ID expires, the vault automatically exits the InProgress state, and the vault lock policy is removed from the vault. You call CompleteVaultLock to complete the vault locking process by setting the state of the vault lock to Locked.

After a vault lock is in the Locked state, you cannot initiate a new vault lock for the vault.

You can abort the vault locking process by calling AbortVaultLock. You can get the state of the vault lock by calling GetVaultLock. For more information about the vault locking process, Amazon Glacier Vault Lock.

If this operation is called when the vault lock is in the InProgress state, the operation returns an AccessDeniedException error. When the vault lock is in the InProgress state you must call AbortVaultLock before you can initiate a new vault lock policy.

", + "ListJobs": "

This operation lists jobs for a vault, including jobs that are in-progress and jobs that have recently finished.

Amazon Glacier retains recently completed jobs for a period before deleting them; however, it eventually removes completed jobs. The output of completed jobs can be retrieved. Retaining completed jobs for a period of time after they have completed enables you to get a job output in the event you miss the job completion notification or your first attempt to download it fails. For example, suppose you start an archive retrieval job to download an archive. After the job completes, you start to download the archive but encounter a network error. In this scenario, you can retry and download the archive while the job exists.

To retrieve an archive or retrieve a vault inventory from Amazon Glacier, you first initiate a job, and after the job completes, you download the data. For an archive retrieval, the output is the archive data. For an inventory retrieval, it is the inventory list. The List Job operation returns a list of these jobs sorted by job initiation time.

The List Jobs operation supports pagination. You should always check the response Marker field. If there are no more jobs to list, the Marker field is set to null. If there are more jobs to list, the Marker field is set to a non-null value, which you can use to continue the pagination of the list. To return a list of jobs that begins at a specific job, set the marker request parameter to the Marker value for that job that you obtained from a previous List Jobs request.

You can set a maximum limit for the number of jobs returned in the response by specifying the limit parameter in the request. The default limit is 1000. The number of jobs returned might be fewer than the limit, but the number of returned jobs never exceeds the limit.

Additionally, you can filter the jobs list returned by specifying the optional statuscode parameter or completed parameter, or both. Using the statuscode parameter, you can specify to return only jobs that match either the InProgress, Succeeded, or Failed status. Using the completed parameter, you can specify to return only jobs that were completed (true) or jobs that were not completed (false).

For the underlying REST API, see List Jobs.

", + "ListMultipartUploads": "

This operation lists in-progress multipart uploads for the specified vault. An in-progress multipart upload is a multipart upload that has been initiated by an InitiateMultipartUpload request, but has not yet been completed or aborted. The list returned in the List Multipart Upload response has no guaranteed order.

The List Multipart Uploads operation supports pagination. By default, this operation returns up to 1,000 multipart uploads in the response. You should always check the response for a marker at which to continue the list; if there are no more items the marker is null. To return a list of multipart uploads that begins at a specific upload, set the marker request parameter to the value you obtained from a previous List Multipart Upload request. You can also limit the number of uploads returned in the response by specifying the limit parameter in the request.

Note the difference between this operation and listing parts (ListParts). The List Multipart Uploads operation lists all multipart uploads for a vault and does not require a multipart upload ID. The List Parts operation requires a multipart upload ID since parts are associated with a single upload.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and the underlying REST API, see Working with Archives in Amazon Glacier and List Multipart Uploads in the Amazon Glacier Developer Guide.

", + "ListParts": "

This operation lists the parts of an archive that have been uploaded in a specific multipart upload. You can make this request at any time during an in-progress multipart upload before you complete the upload (see CompleteMultipartUpload. List Parts returns an error for completed uploads. The list returned in the List Parts response is sorted by part range.

The List Parts operation supports pagination. By default, this operation returns up to 1,000 uploaded parts in the response. You should always check the response for a marker at which to continue the list; if there are no more items the marker is null. To return a list of parts that begins at a specific part, set the marker request parameter to the value you obtained from a previous List Parts request. You can also limit the number of parts returned in the response by specifying the limit parameter in the request.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and the underlying REST API, see Working with Archives in Amazon Glacier and List Parts in the Amazon Glacier Developer Guide.

", + "ListProvisionedCapacity": "

This operation lists the provisioned capacity for the specified AWS account.

", "ListTagsForVault": "

This operation lists all the tags attached to a vault. The operation returns an empty map if there are no tags. For more information about tags, see Tagging Amazon Glacier Resources.

", - "ListVaults": "

This operation lists all vaults owned by the calling user's account. The list returned in the response is ASCII-sorted by vault name.

By default, this operation returns up to 1,000 items. If there are more vaults to list, the response marker field contains the vault Amazon Resource Name (ARN) at which to continue the list with a new List Vaults request; otherwise, the marker field is null. To return a list of vaults that begins at a specific vault, set the marker request parameter to the vault ARN you obtained from a previous List Vaults request. You can also limit the number of vaults returned in the response by specifying the limit parameter in the request.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, go to Retrieving Vault Metadata in Amazon Glacier and List Vaults in the Amazon Glacier Developer Guide.

", + "ListVaults": "

This operation lists all vaults owned by the calling user's account. The list returned in the response is ASCII-sorted by vault name.

By default, this operation returns up to 1,000 items. If there are more vaults to list, the response marker field contains the vault Amazon Resource Name (ARN) at which to continue the list with a new List Vaults request; otherwise, the marker field is null. To return a list of vaults that begins at a specific vault, set the marker request parameter to the vault ARN you obtained from a previous List Vaults request. You can also limit the number of vaults returned in the response by specifying the limit parameter in the request.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, see Retrieving Vault Metadata in Amazon Glacier and List Vaults in the Amazon Glacier Developer Guide.

", + "PurchaseProvisionedCapacity": "

This operation purchases a provisioned capacity unit for an AWS account.

", "RemoveTagsFromVault": "

This operation removes one or more tags from the set of tags attached to a vault. For more information about tags, see Tagging Amazon Glacier Resources. This operation is idempotent. The operation will be successful, even if there are no tags attached to the vault.

", - "SetDataRetrievalPolicy": "

This operation sets and then enacts a data retrieval policy in the region specified in the PUT request. You can set one policy per region for an AWS account. The policy is enacted within a few minutes of a successful PUT operation.

The set policy operation does not affect retrieval jobs that were in progress before the policy was enacted. For more information about data retrieval policies, see Amazon Glacier Data Retrieval Policies.

", + "SetDataRetrievalPolicy": "

This operation sets and then enacts a data retrieval policy in the region specified in the PUT request. You can set one policy per region for an AWS account. The policy is enacted within a few minutes of a successful PUT operation.

The set policy operation does not affect retrieval jobs that were in progress before the policy was enacted. For more information about data retrieval policies, see Amazon Glacier Data Retrieval Policies.

", "SetVaultAccessPolicy": "

This operation configures an access policy for a vault and will overwrite an existing policy. To configure a vault access policy, send a PUT request to the access-policy subresource of the vault. An access policy is specific to a vault and is also called a vault subresource. You can set one access policy per vault and the policy can be up to 20 KB in size. For more information about vault access policies, see Amazon Glacier Access Control with Vault Access Policies.

", - "SetVaultNotifications": "

This operation configures notifications that will be sent when specific events happen to a vault. By default, you don't get any notifications.

To configure vault notifications, send a PUT request to the notification-configuration subresource of the vault. The request should include a JSON document that provides an Amazon SNS topic and specific events for which you want Amazon Glacier to send notifications to the topic.

Amazon SNS topics must grant permission to the vault to be allowed to publish notifications to the topic. You can configure a vault to publish a notification for the following vault events:

  • ArchiveRetrievalCompleted This event occurs when a job that was initiated for an archive retrieval is completed (InitiateJob). The status of the completed job can be \"Succeeded\" or \"Failed\". The notification sent to the SNS topic is the same output as returned from DescribeJob.
  • InventoryRetrievalCompleted This event occurs when a job that was initiated for an inventory retrieval is completed (InitiateJob). The status of the completed job can be \"Succeeded\" or \"Failed\". The notification sent to the SNS topic is the same output as returned from DescribeJob.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, go to Configuring Vault Notifications in Amazon Glacier and Set Vault Notification Configuration in the Amazon Glacier Developer Guide.

", - "UploadArchive": "

This operation adds an archive to a vault. This is a synchronous operation, and for a successful upload, your data is durably persisted. Amazon Glacier returns the archive ID in the x-amz-archive-id header of the response.

You must use the archive ID to access your data in Amazon Glacier. After you upload an archive, you should save the archive ID returned so that you can retrieve or delete the archive later. Besides saving the archive ID, you can also index it and give it a friendly name to allow for better searching. You can also use the optional archive description field to specify how the archive is referred to in an external index of archives, such as you might create in Amazon DynamoDB. You can also get the vault inventory to obtain a list of archive IDs in a vault. For more information, see InitiateJob.

You must provide a SHA256 tree hash of the data you are uploading. For information about computing a SHA256 tree hash, see Computing Checksums.

You can optionally specify an archive description of up to 1,024 printable ASCII characters. You can get the archive description when you either retrieve the archive or get the vault inventory. For more information, see InitiateJob. Amazon Glacier does not interpret the description in any way. An archive description does not need to be unique. You cannot use the description to retrieve or sort the archive list.

Archives are immutable. After you upload an archive, you cannot edit the archive or its description.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, go to Uploading an Archive in Amazon Glacier and Upload Archive in the Amazon Glacier Developer Guide.

", - "UploadMultipartPart": "

This operation uploads a part of an archive. You can upload archive parts in any order. You can also upload them in parallel. You can upload up to 10,000 parts for a multipart upload.

Amazon Glacier rejects your upload part request if any of the following conditions is true:

  • SHA256 tree hash does not matchTo ensure that part data is not corrupted in transmission, you compute a SHA256 tree hash of the part and include it in your request. Upon receiving the part data, Amazon Glacier also computes a SHA256 tree hash. If these hash values don't match, the operation fails. For information about computing a SHA256 tree hash, see Computing Checksums.

  • Part size does not matchThe size of each part except the last must match the size specified in the corresponding InitiateMultipartUpload request. The size of the last part must be the same size as, or smaller than, the specified size.

    If you upload a part whose size is smaller than the part size you specified in your initiate multipart upload request and that part is not the last part, then the upload part request will succeed. However, the subsequent Complete Multipart Upload request will fail.

  • Range does not alignThe byte range value in the request does not align with the part size specified in the corresponding initiate request. For example, if you specify a part size of 4194304 bytes (4 MB), then 0 to 4194303 bytes (4 MB - 1) and 4194304 (4 MB) to 8388607 (8 MB - 1) are valid part ranges. However, if you set a range value of 2 MB to 6 MB, the range does not align with the part size and the upload will fail.

This operation is idempotent. If you upload the same part multiple times, the data included in the most recent request overwrites the previously uploaded data.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, go to Uploading Large Archives in Parts (Multipart Upload) and Upload Part in the Amazon Glacier Developer Guide.

" + "SetVaultNotifications": "

This operation configures notifications that will be sent when specific events happen to a vault. By default, you don't get any notifications.

To configure vault notifications, send a PUT request to the notification-configuration subresource of the vault. The request should include a JSON document that provides an Amazon SNS topic and specific events for which you want Amazon Glacier to send notifications to the topic.

Amazon SNS topics must grant permission to the vault to be allowed to publish notifications to the topic. You can configure a vault to publish a notification for the following vault events:

  • ArchiveRetrievalCompleted This event occurs when a job that was initiated for an archive retrieval is completed (InitiateJob). The status of the completed job can be \"Succeeded\" or \"Failed\". The notification sent to the SNS topic is the same output as returned from DescribeJob.

  • InventoryRetrievalCompleted This event occurs when a job that was initiated for an inventory retrieval is completed (InitiateJob). The status of the completed job can be \"Succeeded\" or \"Failed\". The notification sent to the SNS topic is the same output as returned from DescribeJob.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, see Configuring Vault Notifications in Amazon Glacier and Set Vault Notification Configuration in the Amazon Glacier Developer Guide.

", + "UploadArchive": "

This operation adds an archive to a vault. This is a synchronous operation, and for a successful upload, your data is durably persisted. Amazon Glacier returns the archive ID in the x-amz-archive-id header of the response.

You must use the archive ID to access your data in Amazon Glacier. After you upload an archive, you should save the archive ID returned so that you can retrieve or delete the archive later. Besides saving the archive ID, you can also index it and give it a friendly name to allow for better searching. You can also use the optional archive description field to specify how the archive is referred to in an external index of archives, such as you might create in Amazon DynamoDB. You can also get the vault inventory to obtain a list of archive IDs in a vault. For more information, see InitiateJob.

You must provide a SHA256 tree hash of the data you are uploading. For information about computing a SHA256 tree hash, see Computing Checksums.

You can optionally specify an archive description of up to 1,024 printable ASCII characters. You can get the archive description when you either retrieve the archive or get the vault inventory. For more information, see InitiateJob. Amazon Glacier does not interpret the description in any way. An archive description does not need to be unique. You cannot use the description to retrieve or sort the archive list.

Archives are immutable. After you upload an archive, you cannot edit the archive or its description.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, see Uploading an Archive in Amazon Glacier and Upload Archive in the Amazon Glacier Developer Guide.

", + "UploadMultipartPart": "

This operation uploads a part of an archive. You can upload archive parts in any order. You can also upload them in parallel. You can upload up to 10,000 parts for a multipart upload.

Amazon Glacier rejects your upload part request if any of the following conditions is true:

  • SHA256 tree hash does not matchTo ensure that part data is not corrupted in transmission, you compute a SHA256 tree hash of the part and include it in your request. Upon receiving the part data, Amazon Glacier also computes a SHA256 tree hash. If these hash values don't match, the operation fails. For information about computing a SHA256 tree hash, see Computing Checksums.

  • Part size does not matchThe size of each part except the last must match the size specified in the corresponding InitiateMultipartUpload request. The size of the last part must be the same size as, or smaller than, the specified size.

    If you upload a part whose size is smaller than the part size you specified in your initiate multipart upload request and that part is not the last part, then the upload part request will succeed. However, the subsequent Complete Multipart Upload request will fail.

  • Range does not alignThe byte range value in the request does not align with the part size specified in the corresponding initiate request. For example, if you specify a part size of 4194304 bytes (4 MB), then 0 to 4194303 bytes (4 MB - 1) and 4194304 (4 MB) to 8388607 (8 MB - 1) are valid part ranges. However, if you set a range value of 2 MB to 6 MB, the range does not align with the part size and the upload will fail.

This operation is idempotent. If you upload the same part multiple times, the data included in the most recent request overwrites the previously uploaded data.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, see Uploading Large Archives in Parts (Multipart Upload) and Upload Part in the Amazon Glacier Developer Guide.

" }, - "service": "

Amazon Glacier is a storage solution for \"cold data.\"

Amazon Glacier is an extremely low-cost storage service that provides secure, durable, and easy-to-use storage for data backup and archival. With Amazon Glacier, customers can store their data cost effectively for months, years, or decades. Amazon Glacier also enables customers to offload the administrative burdens of operating and scaling storage to AWS, so they don't have to worry about capacity planning, hardware provisioning, data replication, hardware failure and recovery, or time-consuming hardware migrations.

Amazon Glacier is a great storage choice when low storage cost is paramount, your data is rarely retrieved, and retrieval latency of several hours is acceptable. If your application requires fast or frequent access to your data, consider using Amazon S3. For more information, go to Amazon Simple Storage Service (Amazon S3).

You can store any kind of data in any format. There is no maximum limit on the total amount of data you can store in Amazon Glacier.

If you are a first-time user of Amazon Glacier, we recommend that you begin by reading the following sections in the Amazon Glacier Developer Guide:

  • What is Amazon Glacier - This section of the Developer Guide describes the underlying data model, the operations it supports, and the AWS SDKs that you can use to interact with the service.

  • Getting Started with Amazon Glacier - The Getting Started section walks you through the process of creating a vault, uploading archives, creating jobs to download archives, retrieving the job output, and deleting archives.

", "shapes": { "AbortMultipartUploadInput": { - "base": "

Provides options to abort a multipart upload identified by the upload ID.

For information about the underlying REST API, go to Abort Multipart Upload. For conceptual information, go to Working with Archives in Amazon Glacier.

", + "base": "

Provides options to abort a multipart upload identified by the upload ID.

For information about the underlying REST API, see Abort Multipart Upload. For conceptual information, see Working with Archives in Amazon Glacier.

", "refs": { } }, @@ -57,7 +59,7 @@ } }, "ArchiveCreationOutput": { - "base": "

Contains the Amazon Glacier response to your request.

For information about the underlying REST API, go to Upload Archive. For conceptual information, go to Working with Archives in Amazon Glacier.

", + "base": "

Contains the Amazon Glacier response to your request.

For information about the underlying REST API, see Upload Archive. For conceptual information, see Working with Archives in Amazon Glacier.

", "refs": { } }, @@ -103,8 +105,8 @@ "DateTime": { "base": null, "refs": { - "InventoryRetrievalJobDescription$StartDate": "

The start of the date range in UTC for vault inventory retrieval that includes archives created on or after this date. A string representation of ISO 8601 date format, for example, 2013-03-20T17:03:43Z.

", - "InventoryRetrievalJobDescription$EndDate": "

The end of the date range in UTC for vault inventory retrieval that includes archives created before this date. A string representation of ISO 8601 date format, for example, 2013-03-20T17:03:43Z.

" + "InventoryRetrievalJobDescription$StartDate": "

The start of the date range in Universal Coordinated Time (UTC) for vault inventory retrieval that includes archives created on or after this date. This value should be a string in the ISO 8601 date format, for example 2013-03-20T17:03:43Z.

", + "InventoryRetrievalJobDescription$EndDate": "

The end of the date range in UTC for vault inventory retrieval that includes archives created before this date. This value should be a string in the ISO 8601 date format, for example 2013-03-20T17:03:43Z.

" } }, "DeleteArchiveInput": { @@ -229,8 +231,13 @@ "refs": { } }, + "InsufficientCapacityException": { + "base": "

Returned if there is insufficient capacity to process this expedited request. This error only applies to expedited retrievals and not to standard or bulk retrievals.

", + "refs": { + } + }, "InvalidParameterValueException": { - "base": "

Returned if a parameter of the request is incorrectly specified.

", + "base": "

Returned if a parameter of the request is incorrectly specified.

", "refs": { } }, @@ -249,7 +256,7 @@ "JobList": { "base": null, "refs": { - "ListJobsOutput$JobList": "

A list of job objects. Each job object contains metadata describing the job.

" + "ListJobsOutput$JobList": "

A list of job objects. Each job object contains metadata describing the job.

" } }, "JobParameters": { @@ -293,6 +300,16 @@ "refs": { } }, + "ListProvisionedCapacityInput": { + "base": null, + "refs": { + } + }, + "ListProvisionedCapacityOutput": { + "base": null, + "refs": { + } + }, "ListTagsForVaultInput": { "base": "

The input value for ListTagsForVaultInput.

", "refs": { @@ -333,7 +350,7 @@ "PartList": { "base": null, "refs": { - "ListPartsOutput$Parts": "

A list of the part sizes of the multipart upload.

" + "ListPartsOutput$Parts": "

A list of the part sizes of the multipart upload. Each object in the array contains a RangeBytes and sha256-tree-hash name/value pair.

" } }, "PartListElement": { @@ -347,6 +364,28 @@ "refs": { } }, + "ProvisionedCapacityDescription": { + "base": "

The definition for a provisioned capacity unit.

", + "refs": { + "ProvisionedCapacityList$member": null + } + }, + "ProvisionedCapacityList": { + "base": null, + "refs": { + "ListProvisionedCapacityOutput$ProvisionedCapacityList": "

The response body contains the following JSON fields.

" + } + }, + "PurchaseProvisionedCapacityInput": { + "base": null, + "refs": { + } + }, + "PurchaseProvisionedCapacityOutput": { + "base": null, + "refs": { + } + }, "RemoveTagsFromVaultInput": { "base": "

The input value for RemoveTagsFromVaultInput.

", "refs": { @@ -358,7 +397,7 @@ } }, "ResourceNotFoundException": { - "base": "

Returned if the specified resource, such as a vault, upload ID, or job ID, does not exist.

", + "base": "

Returned if the specified resource (such as a vault, upload ID, or job ID) doesn't exist.

", "refs": { } }, @@ -456,7 +495,7 @@ } }, "VaultAccessPolicy": { - "base": "

Contains the vault access policy.

", + "base": "

Contains the vault access policy.

", "refs": { "GetVaultAccessPolicyOutput$policy": "

Contains the returned vault access policy as a JSON string.

", "SetVaultAccessPolicyInput$policy": "

The vault access policy as a JSON string.

" @@ -469,7 +508,7 @@ } }, "VaultLockPolicy": { - "base": "

Contains the vault lock policy.

", + "base": "

Contains the vault lock policy.

", "refs": { "InitiateVaultLockInput$policy": "

The vault lock policy as a JSON string, which uses \"\\\" as an escape character.

" } @@ -496,74 +535,74 @@ "long": { "base": null, "refs": { - "DescribeVaultOutput$NumberOfArchives": "

The number of archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.

", - "DescribeVaultOutput$SizeInBytes": "

Total size, in bytes, of the archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.

", - "ListPartsOutput$PartSizeInBytes": "

The part size in bytes.

", + "DescribeVaultOutput$NumberOfArchives": "

The number of archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example if you just created the vault.

", + "DescribeVaultOutput$SizeInBytes": "

Total size, in bytes, of the archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example if you just created the vault.

", + "ListPartsOutput$PartSizeInBytes": "

The part size in bytes. This is the same value that you specified in the Initiate Multipart Upload request.

", "UploadListElement$PartSizeInBytes": "

The part size, in bytes, specified in the Initiate Multipart Upload request. This is the size of all the parts in the upload except the last part, which may be smaller than this size.

" } }, "string": { "base": null, "refs": { - "AbortMultipartUploadInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "AbortMultipartUploadInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "AbortMultipartUploadInput$vaultName": "

The name of the vault.

", "AbortMultipartUploadInput$uploadId": "

The upload ID of the multipart upload to delete.

", - "AbortVaultLockInput$accountId": "

The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens (apos-apos) in the ID.

", + "AbortVaultLockInput$accountId": "

The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens ('-') in the ID.

", "AbortVaultLockInput$vaultName": "

The name of the vault.

", - "AddTagsToVaultInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "AddTagsToVaultInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "AddTagsToVaultInput$vaultName": "

The name of the vault.

", "ArchiveCreationOutput$location": "

The relative URI path of the newly added archive resource.

", "ArchiveCreationOutput$checksum": "

The checksum of the archive computed by Amazon Glacier.

", "ArchiveCreationOutput$archiveId": "

The ID of the archive. This value is also included as part of the location.

", - "CompleteMultipartUploadInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "CompleteMultipartUploadInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "CompleteMultipartUploadInput$vaultName": "

The name of the vault.

", "CompleteMultipartUploadInput$uploadId": "

The upload ID of the multipart upload.

", "CompleteMultipartUploadInput$archiveSize": "

The total size, in bytes, of the entire archive. This value should be the sum of all the sizes of the individual parts that you uploaded.

", "CompleteMultipartUploadInput$checksum": "

The SHA256 tree hash of the entire archive. It is the tree hash of SHA256 tree hash of the individual parts. If the value you specify in the request does not match the SHA256 tree hash of the final assembled archive as computed by Amazon Glacier, Amazon Glacier returns an error and the request fails.

", - "CompleteVaultLockInput$accountId": "

The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens (apos-apos) in the ID.

", + "CompleteVaultLockInput$accountId": "

The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens ('-') in the ID.

", "CompleteVaultLockInput$vaultName": "

The name of the vault.

", "CompleteVaultLockInput$lockId": "

The lockId value is the lock ID obtained from a InitiateVaultLock request.

", - "CreateVaultInput$accountId": "

The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens (apos-apos) in the ID.

", + "CreateVaultInput$accountId": "

The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens ('-') in the ID.

", "CreateVaultInput$vaultName": "

The name of the vault.

", "CreateVaultOutput$location": "

The URI of the vault that was created.

", "DataRetrievalRule$Strategy": "

The type of data retrieval policy to set.

Valid values: BytesPerHour|FreeTier|None

", - "DeleteArchiveInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "DeleteArchiveInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "DeleteArchiveInput$vaultName": "

The name of the vault.

", "DeleteArchiveInput$archiveId": "

The ID of the archive to delete.

", - "DeleteVaultAccessPolicyInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "DeleteVaultAccessPolicyInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "DeleteVaultAccessPolicyInput$vaultName": "

The name of the vault.

", - "DeleteVaultInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "DeleteVaultInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "DeleteVaultInput$vaultName": "

The name of the vault.

", - "DeleteVaultNotificationsInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "DeleteVaultNotificationsInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "DeleteVaultNotificationsInput$vaultName": "

The name of the vault.

", - "DescribeJobInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "DescribeJobInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "DescribeJobInput$vaultName": "

The name of the vault.

", "DescribeJobInput$jobId": "

The ID of the job to describe.

", - "DescribeVaultInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "DescribeVaultInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "DescribeVaultInput$vaultName": "

The name of the vault.

", "DescribeVaultOutput$VaultARN": "

The Amazon Resource Name (ARN) of the vault.

", "DescribeVaultOutput$VaultName": "

The name of the vault.

", - "DescribeVaultOutput$CreationDate": "

The UTC date when the vault was created. A string representation of ISO 8601 date format, for example, \"2012-03-20T17:03:43.221Z\".

", - "DescribeVaultOutput$LastInventoryDate": "

The UTC date when Amazon Glacier completed the last vault inventory. A string representation of ISO 8601 date format, for example, \"2012-03-20T17:03:43.221Z\".

", - "GetDataRetrievalPolicyInput$accountId": "

The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens (apos-apos) in the ID.

", - "GetJobOutputInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "DescribeVaultOutput$CreationDate": "

The Universal Coordinated Time (UTC) date when the vault was created. This value should be a string in the ISO 8601 date format, for example 2012-03-20T17:03:43.221Z.

", + "DescribeVaultOutput$LastInventoryDate": "

The Universal Coordinated Time (UTC) date when Amazon Glacier completed the last vault inventory. This value should be a string in the ISO 8601 date format, for example 2012-03-20T17:03:43.221Z.

", + "GetDataRetrievalPolicyInput$accountId": "

The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens ('-') in the ID.

", + "GetJobOutputInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "GetJobOutputInput$vaultName": "

The name of the vault.

", "GetJobOutputInput$jobId": "

The job ID whose data is downloaded.

", - "GetJobOutputInput$range": "

The range of bytes to retrieve from the output. For example, if you want to download the first 1,048,576 bytes, specify \"Range: bytes=0-1048575\". By default, this operation downloads the entire output.

", - "GetJobOutputOutput$checksum": "

The checksum of the data in the response. This header is returned only when retrieving the output for an archive retrieval job. Furthermore, this header appears only under the following conditions:

  • You get the entire range of the archive.
  • You request a range to return of the archive that starts and ends on a multiple of 1 MB. For example, if you have an 3.1 MB archive and you specify a range to return that starts at 1 MB and ends at 2 MB, then the x-amz-sha256-tree-hash is returned as a response header.
  • You request a range of the archive to return that starts on a multiple of 1 MB and goes to the end of the archive. For example, if you have a 3.1 MB archive and you specify a range that starts at 2 MB and ends at 3.1 MB (the end of the archive), then the x-amz-sha256-tree-hash is returned as a response header.

", + "GetJobOutputInput$range": "

The range of bytes to retrieve from the output. For example, if you want to download the first 1,048,576 bytes, specify the range as bytes=0-1048575. By default, this operation downloads the entire output.

If the job output is large, then you can use a range to retrieve a portion of the output. This allows you to download the entire output in smaller chunks of bytes. For example, suppose you have 1 GB of job output you want to download and you decide to download 128 MB chunks of data at a time, which is a total of eight Get Job Output requests. You use the following process to download the job output:

  1. Download a 128 MB chunk of output by specifying the appropriate byte range. Verify that all 128 MB of data was received.

  2. Along with the data, the response includes a SHA256 tree hash of the payload. You compute the checksum of the payload on the client and compare it with the checksum you received in the response to ensure you received all the expected data.

  3. Repeat steps 1 and 2 for all the eight 128 MB chunks of output data, each time specifying the appropriate byte range.

  4. After downloading all the parts of the job output, you have a list of eight checksum values. Compute the tree hash of these values to find the checksum of the entire output. Using the DescribeJob API, obtain job information of the job that provided you the output. The response includes the checksum of the entire archive stored in Amazon Glacier. You compare this value with the checksum you computed to ensure you have downloaded the entire archive content with no errors.

", + "GetJobOutputOutput$checksum": "

The checksum of the data in the response. This header is returned only when retrieving the output for an archive retrieval job. Furthermore, this header appears only under the following conditions:

  • You get the entire range of the archive.

  • You request a range to return of the archive that starts and ends on a multiple of 1 MB. For example, if you have an 3.1 MB archive and you specify a range to return that starts at 1 MB and ends at 2 MB, then the x-amz-sha256-tree-hash is returned as a response header.

  • You request a range of the archive to return that starts on a multiple of 1 MB and goes to the end of the archive. For example, if you have a 3.1 MB archive and you specify a range that starts at 2 MB and ends at 3.1 MB (the end of the archive), then the x-amz-sha256-tree-hash is returned as a response header.

", "GetJobOutputOutput$contentRange": "

The range of bytes returned by Amazon Glacier. If only partial output is downloaded, the response provides the range of bytes Amazon Glacier returned. For example, bytes 0-1048575/8388608 returns the first 1 MB from 8 MB.

", - "GetJobOutputOutput$acceptRanges": "

Indicates the range units accepted. For more information, go to RFC2616.

", - "GetJobOutputOutput$contentType": "

The Content-Type depends on whether the job output is an archive or a vault inventory. For archive data, the Content-Type is application/octet-stream. For vault inventory, if you requested CSV format when you initiated the job, the Content-Type is text/csv. Otherwise, by default, vault inventory is returned as JSON, and the Content-Type is application/json.

", + "GetJobOutputOutput$acceptRanges": "

Indicates the range units accepted. For more information, see RFC2616.

", + "GetJobOutputOutput$contentType": "

The Content-Type depends on whether the job output is an archive or a vault inventory. For archive data, the Content-Type is application/octet-stream. For vault inventory, if you requested CSV format when you initiated the job, the Content-Type is text/csv. Otherwise, by default, vault inventory is returned as JSON, and the Content-Type is application/json.

", "GetJobOutputOutput$archiveDescription": "

The description of an archive.

", - "GetVaultAccessPolicyInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "GetVaultAccessPolicyInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "GetVaultAccessPolicyInput$vaultName": "

The name of the vault.

", - "GetVaultLockInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "GetVaultLockInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "GetVaultLockInput$vaultName": "

The name of the vault.

", "GetVaultLockOutput$Policy": "

The vault lock policy as a JSON string, which uses \"\\\" as an escape character.

", "GetVaultLockOutput$State": "

The state of the vault lock. InProgress or Locked.

", "GetVaultLockOutput$ExpirationDate": "

The UTC date and time at which the lock ID expires. This value can be null if the vault lock is in a Locked state.

", "GetVaultLockOutput$CreationDate": "

The UTC date and time at which the vault lock was put into the InProgress state.

", - "GetVaultNotificationsInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "GetVaultNotificationsInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "GetVaultNotificationsInput$vaultName": "

The name of the vault.

", "GlacierJobDescription$JobId": "

An opaque string that identifies an Amazon Glacier job.

", "GlacierJobDescription$JobDescription": "

The job description you provided when you initiated the job.

", @@ -573,107 +612,118 @@ "GlacierJobDescription$StatusMessage": "

A friendly message that describes the job status.

", "GlacierJobDescription$SNSTopic": "

An Amazon Simple Notification Service (Amazon SNS) topic that receives notification.

", "GlacierJobDescription$CompletionDate": "

The UTC time that the archive retrieval request completed. While the job is in progress, the value will be null.

", - "GlacierJobDescription$SHA256TreeHash": "

For an ArchiveRetrieval job, it is the checksum of the archive. Otherwise, the value is null.

The SHA256 tree hash value for the requested range of an archive. If the Initiate a Job request for an archive specified a tree-hash aligned range, then this field returns a value.

For the specific case when the whole archive is retrieved, this value is the same as the ArchiveSHA256TreeHash value.

This field is null in the following situations:

  • Archive retrieval jobs that specify a range that is not tree-hash aligned.

  • Archival jobs that specify a range that is equal to the whole archive and the job status is InProgress.

  • Inventory jobs.

", - "GlacierJobDescription$ArchiveSHA256TreeHash": "

The SHA256 tree hash of the entire archive for an archive retrieval. For inventory retrieval jobs, this field is null.

", + "GlacierJobDescription$SHA256TreeHash": "

For an ArchiveRetrieval job, it is the checksum of the archive. Otherwise, the value is null.

The SHA256 tree hash value for the requested range of an archive. If the Initiate a Job request for an archive specified a tree-hash aligned range, then this field returns a value.

For the specific case when the whole archive is retrieved, this value is the same as the ArchiveSHA256TreeHash value.

This field is null in the following situations:

  • Archive retrieval jobs that specify a range that is not tree-hash aligned.

  • Archival jobs that specify a range that is equal to the whole archive and the job status is InProgress.

  • Inventory jobs.

", + "GlacierJobDescription$ArchiveSHA256TreeHash": "

The SHA256 tree hash of the entire archive for an archive retrieval. For inventory retrieval jobs, this field is null.

", "GlacierJobDescription$RetrievalByteRange": "

The retrieved byte range for archive retrieval jobs in the form \"StartByteValue-EndByteValue\" If no range was specified in the archive retrieval, then the whole archive is retrieved and StartByteValue equals 0 and EndByteValue equals the size of the archive minus 1. For inventory retrieval jobs this field is null.

", - "InitiateJobInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "GlacierJobDescription$Tier": "

The retrieval option to use for the archive retrieval. Valid values are Expedited, Standard, or Bulk. Standard is the default.

", + "InitiateJobInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "InitiateJobInput$vaultName": "

The name of the vault.

", "InitiateJobOutput$location": "

The relative URI path of the job.

", "InitiateJobOutput$jobId": "

The ID of the job.

", - "InitiateMultipartUploadInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "InitiateMultipartUploadInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "InitiateMultipartUploadInput$vaultName": "

The name of the vault.

", "InitiateMultipartUploadInput$archiveDescription": "

The archive description that you are uploading in parts.

The part size must be a megabyte (1024 KB) multiplied by a power of 2, for example 1048576 (1 MB), 2097152 (2 MB), 4194304 (4 MB), 8388608 (8 MB), and so on. The minimum allowable part size is 1 MB, and the maximum is 4 GB (4096 MB).

", "InitiateMultipartUploadInput$partSize": "

The size of each part except the last, in bytes. The last part can be smaller than this part size.

", - "InitiateMultipartUploadOutput$location": "

The relative URI path of the multipart upload ID Amazon Glacier created.

", - "InitiateMultipartUploadOutput$uploadId": "

The ID of the multipart upload. This value is also included as part of the location.

", - "InitiateVaultLockInput$accountId": "

The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens (apos-apos) in the ID.

", + "InitiateMultipartUploadOutput$location": "

The relative URI path of the multipart upload ID Amazon Glacier created.

", + "InitiateMultipartUploadOutput$uploadId": "

The ID of the multipart upload. This value is also included as part of the location.

", + "InitiateVaultLockInput$accountId": "

The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens ('-') in the ID.

", "InitiateVaultLockInput$vaultName": "

The name of the vault.

", - "InitiateVaultLockOutput$lockId": "

The lock ID, which is used to complete the vault locking process.

", + "InitiateVaultLockOutput$lockId": "

The lock ID, which is used to complete the vault locking process.

", + "InsufficientCapacityException$type": null, + "InsufficientCapacityException$code": null, + "InsufficientCapacityException$message": null, "InvalidParameterValueException$type": "

Client

", "InvalidParameterValueException$code": "

400 Bad Request

", - "InvalidParameterValueException$message": null, - "InventoryRetrievalJobDescription$Format": "

The output format for the vault inventory list, which is set by the InitiateJob request when initiating a job to retrieve a vault inventory. Valid values are \"CSV\" and \"JSON\".

", - "InventoryRetrievalJobDescription$Limit": "

Specifies the maximum number of inventory items returned per vault inventory retrieval request. This limit is set when initiating the job with the a InitiateJob request.

", + "InvalidParameterValueException$message": "

Returned if a parameter of the request is incorrectly specified.

", + "InventoryRetrievalJobDescription$Format": "

The output format for the vault inventory list, which is set by the InitiateJob request when initiating a job to retrieve a vault inventory. Valid values are CSV and JSON.

", + "InventoryRetrievalJobDescription$Limit": "

The maximum number of inventory items returned per vault inventory retrieval request. This limit is set when initiating the job with the a InitiateJob request.

", "InventoryRetrievalJobDescription$Marker": "

An opaque string that represents where to continue pagination of the vault inventory retrieval results. You use the marker in a new InitiateJob request to obtain additional inventory items. If there are no more inventory items, this value is null. For more information, see Range Inventory Retrieval.

", - "InventoryRetrievalJobInput$StartDate": "

The start of the date range in UTC for vault inventory retrieval that includes archives created on or after this date. A string representation of ISO 8601 date format, for example, 2013-03-20T17:03:43Z.

", - "InventoryRetrievalJobInput$EndDate": "

The end of the date range in UTC for vault inventory retrieval that includes archives created before this date. A string representation of ISO 8601 date format, for example, 2013-03-20T17:03:43Z.

", + "InventoryRetrievalJobInput$StartDate": "

The start of the date range in UTC for vault inventory retrieval that includes archives created on or after this date. This value should be a string in the ISO 8601 date format, for example 2013-03-20T17:03:43Z.

", + "InventoryRetrievalJobInput$EndDate": "

The end of the date range in UTC for vault inventory retrieval that includes archives created before this date. This value should be a string in the ISO 8601 date format, for example 2013-03-20T17:03:43Z.

", "InventoryRetrievalJobInput$Limit": "

Specifies the maximum number of inventory items returned per vault inventory retrieval request. Valid values are greater than or equal to 1.

", "InventoryRetrievalJobInput$Marker": "

An opaque string that represents where to continue pagination of the vault inventory retrieval results. You use the marker in a new InitiateJob request to obtain additional inventory items. If there are no more inventory items, this value is null.

", - "JobParameters$Format": "

When initiating a job to retrieve a vault inventory, you can optionally add this parameter to your request to specify the output format. If you are initiating an inventory job and do not specify a Format field, JSON is the default format. Valid values are \"CSV\" and \"JSON\".

", + "JobParameters$Format": "

When initiating a job to retrieve a vault inventory, you can optionally add this parameter to your request to specify the output format. If you are initiating an inventory job and do not specify a Format field, JSON is the default format. Valid values are \"CSV\" and \"JSON\".

", "JobParameters$Type": "

The job type. You can initiate a job to retrieve an archive or get an inventory of a vault. Valid values are \"archive-retrieval\" and \"inventory-retrieval\".

", "JobParameters$ArchiveId": "

The ID of the archive that you want to retrieve. This field is required only if Type is set to archive-retrieval. An error occurs if you specify this request parameter for an inventory retrieval job request.

", "JobParameters$Description": "

The optional description for the job. The description must be less than or equal to 1,024 bytes. The allowable characters are 7-bit ASCII without control codes-specifically, ASCII values 32-126 decimal or 0x20-0x7E hexadecimal.

", "JobParameters$SNSTopic": "

The Amazon SNS topic ARN to which Amazon Glacier sends a notification when the job is completed and the output is ready for you to download. The specified topic publishes the notification to its subscribers. The SNS topic must exist.

", - "JobParameters$RetrievalByteRange": "

The byte range to retrieve for an archive retrieval. in the form \"StartByteValue-EndByteValue\" If not specified, the whole archive is retrieved. If specified, the byte range must be megabyte (1024*1024) aligned which means that StartByteValue must be divisible by 1 MB and EndByteValue plus 1 must be divisible by 1 MB or be the end of the archive specified as the archive byte size value minus 1. If RetrievalByteRange is not megabyte aligned, this operation returns a 400 response.

An error occurs if you specify this field for an inventory retrieval job request.

", + "JobParameters$RetrievalByteRange": "

The byte range to retrieve for an archive retrieval. in the form \"StartByteValue-EndByteValue\" If not specified, the whole archive is retrieved. If specified, the byte range must be megabyte (1024*1024) aligned which means that StartByteValue must be divisible by 1 MB and EndByteValue plus 1 must be divisible by 1 MB or be the end of the archive specified as the archive byte size value minus 1. If RetrievalByteRange is not megabyte aligned, this operation returns a 400 response.

An error occurs if you specify this field for an inventory retrieval job request.

", + "JobParameters$Tier": "

The retrieval option to use for the archive retrieval. Valid values are Expedited, Standard, or Bulk. Standard is the default.

", "LimitExceededException$type": "

Client

", "LimitExceededException$code": "

400 Bad Request

", - "LimitExceededException$message": null, - "ListJobsInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "LimitExceededException$message": "

Returned if the request results in a vault limit or tags limit being exceeded.

", + "ListJobsInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "ListJobsInput$vaultName": "

The name of the vault.

", - "ListJobsInput$limit": "

Specifies that the response be limited to the specified number of items or fewer. If not specified, the List Jobs operation returns up to 1,000 jobs.

", - "ListJobsInput$marker": "

An opaque string used for pagination. This value specifies the job at which the listing of jobs should begin. Get the marker value from a previous List Jobs response. You need only include the marker if you are continuing the pagination of results started in a previous List Jobs request.

", - "ListJobsInput$statuscode": "

Specifies the type of job status to return. You can specify the following values: \"InProgress\", \"Succeeded\", or \"Failed\".

", - "ListJobsInput$completed": "

Specifies the state of the jobs to return. You can specify true or false.

", - "ListJobsOutput$Marker": "

An opaque string that represents where to continue pagination of the results. You use this value in a new List Jobs request to obtain more jobs in the list. If there are no more jobs, this value is null.

", - "ListMultipartUploadsInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "ListJobsInput$limit": "

The maximum number of jobs to be returned. The default limit is 1000. The number of jobs returned might be fewer than the specified limit, but the number of returned jobs never exceeds the limit.

", + "ListJobsInput$marker": "

An opaque string used for pagination. This value specifies the job at which the listing of jobs should begin. Get the marker value from a previous List Jobs response. You only need to include the marker if you are continuing the pagination of results started in a previous List Jobs request.

", + "ListJobsInput$statuscode": "

The type of job status to return. You can specify the following values: InProgress, Succeeded, or Failed.

", + "ListJobsInput$completed": "

The state of the jobs to return. You can specify true or false.

", + "ListJobsOutput$Marker": "

An opaque string used for pagination that specifies the job at which the listing of jobs should begin. You get the marker value from a previous List Jobs response. You only need to include the marker if you are continuing the pagination of the results started in a previous List Jobs request.

", + "ListMultipartUploadsInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "ListMultipartUploadsInput$vaultName": "

The name of the vault.

", "ListMultipartUploadsInput$marker": "

An opaque string used for pagination. This value specifies the upload at which the listing of uploads should begin. Get the marker value from a previous List Uploads response. You need only include the marker if you are continuing the pagination of results started in a previous List Uploads request.

", "ListMultipartUploadsInput$limit": "

Specifies the maximum number of uploads returned in the response body. If this value is not specified, the List Uploads operation returns up to 1,000 uploads.

", "ListMultipartUploadsOutput$Marker": "

An opaque string that represents where to continue pagination of the results. You use the marker in a new List Multipart Uploads request to obtain more uploads in the list. If there are no more uploads, this value is null.

", - "ListPartsInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "ListPartsInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "ListPartsInput$vaultName": "

The name of the vault.

", "ListPartsInput$uploadId": "

The upload ID of the multipart upload.

", "ListPartsInput$marker": "

An opaque string used for pagination. This value specifies the part at which the listing of parts should begin. Get the marker value from the response of a previous List Parts response. You need only include the marker if you are continuing the pagination of results started in a previous List Parts request.

", - "ListPartsInput$limit": "

Specifies the maximum number of parts returned in the response body. If this value is not specified, the List Parts operation returns up to 1,000 uploads.

", + "ListPartsInput$limit": "

The maximum number of parts to be returned. The default limit is 1000. The number of parts returned might be fewer than the specified limit, but the number of returned parts never exceeds the limit.

", "ListPartsOutput$MultipartUploadId": "

The ID of the upload to which the parts are associated.

", "ListPartsOutput$VaultARN": "

The Amazon Resource Name (ARN) of the vault to which the multipart upload was initiated.

", "ListPartsOutput$ArchiveDescription": "

The description of the archive that was specified in the Initiate Multipart Upload request.

", "ListPartsOutput$CreationDate": "

The UTC time at which the multipart upload was initiated.

", "ListPartsOutput$Marker": "

An opaque string that represents where to continue pagination of the results. You use the marker in a new List Parts request to obtain more jobs in the list. If there are no more parts, this value is null.

", - "ListTagsForVaultInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "ListProvisionedCapacityInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, don't include any hyphens ('-') in the ID.

", + "ListTagsForVaultInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "ListTagsForVaultInput$vaultName": "

The name of the vault.

", - "ListVaultsInput$accountId": "

The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens (apos-apos) in the ID.

", + "ListVaultsInput$accountId": "

The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens ('-') in the ID.

", "ListVaultsInput$marker": "

A string used for pagination. The marker specifies the vault ARN after which the listing of vaults should begin.

", - "ListVaultsInput$limit": "

The maximum number of items returned in the response. If you don't specify a value, the List Vaults operation returns up to 1,000 items.

", + "ListVaultsInput$limit": "

The maximum number of vaults to be returned. The default limit is 1000. The number of vaults returned might be fewer than the specified limit, but the number of returned vaults never exceeds the limit.

", "ListVaultsOutput$Marker": "

The vault ARN at which to continue pagination of the results. You use the marker in another List Vaults request to obtain more vaults in the list.

", "MissingParameterValueException$type": "

Client.

", "MissingParameterValueException$code": "

400 Bad Request

", - "MissingParameterValueException$message": null, + "MissingParameterValueException$message": "

Returned if no authentication data is found for the request.

", "NotificationEventList$member": null, "PartListElement$RangeInBytes": "

The byte range of a part, inclusive of the upper value of the range.

", "PartListElement$SHA256TreeHash": "

The SHA256 tree hash value that Amazon Glacier calculated for the part. This field is never null.

", "PolicyEnforcedException$type": "

Client

", "PolicyEnforcedException$code": "

PolicyEnforcedException

", "PolicyEnforcedException$message": "

InitiateJob request denied by current data retrieval policy.

", - "RemoveTagsFromVaultInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "ProvisionedCapacityDescription$CapacityId": "

The ID that identifies the provisioned capacity unit.

", + "ProvisionedCapacityDescription$StartDate": "

The date that the provisioned capacity unit was purchased, in Universal Coordinated Time (UTC).

", + "ProvisionedCapacityDescription$ExpirationDate": "

The date that the provisioned capacity unit expires, in Universal Coordinated Time (UTC).

", + "PurchaseProvisionedCapacityInput$accountId": "

The AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, don't include any hyphens ('-') in the ID.

", + "PurchaseProvisionedCapacityOutput$capacityId": "

The ID that identifies the provisioned capacity unit.

", + "RemoveTagsFromVaultInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "RemoveTagsFromVaultInput$vaultName": "

The name of the vault.

", "RequestTimeoutException$type": "

Client

", "RequestTimeoutException$code": "

408 Request Timeout

", - "RequestTimeoutException$message": null, + "RequestTimeoutException$message": "

Returned if, when uploading an archive, Amazon Glacier times out while receiving the upload.

", "ResourceNotFoundException$type": "

Client

", "ResourceNotFoundException$code": "

404 Not Found

", - "ResourceNotFoundException$message": null, + "ResourceNotFoundException$message": "

Returned if the specified resource (such as a vault, upload ID, or job ID) doesn't exist.

", "ServiceUnavailableException$type": "

Server

", "ServiceUnavailableException$code": "

500 Internal Server Error

", - "ServiceUnavailableException$message": null, - "SetDataRetrievalPolicyInput$accountId": "

The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens (apos-apos) in the ID.

", - "SetVaultAccessPolicyInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "ServiceUnavailableException$message": "

Returned if the service cannot complete the request.

", + "SetDataRetrievalPolicyInput$accountId": "

The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens ('-') in the ID.

", + "SetVaultAccessPolicyInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "SetVaultAccessPolicyInput$vaultName": "

The name of the vault.

", - "SetVaultNotificationsInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "SetVaultNotificationsInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "SetVaultNotificationsInput$vaultName": "

The name of the vault.

", "TagKeyList$member": null, "UploadArchiveInput$vaultName": "

The name of the vault.

", - "UploadArchiveInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", - "UploadArchiveInput$archiveDescription": "

The optional description of the archive you are uploading.

", + "UploadArchiveInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", + "UploadArchiveInput$archiveDescription": "

The optional description of the archive you are uploading.

", "UploadArchiveInput$checksum": "

The SHA256 tree hash of the data being uploaded.

", "UploadListElement$MultipartUploadId": "

The ID of a multipart upload.

", "UploadListElement$VaultARN": "

The Amazon Resource Name (ARN) of the vault that contains the archive.

", "UploadListElement$ArchiveDescription": "

The description of the archive that was specified in the Initiate Multipart Upload request.

", "UploadListElement$CreationDate": "

The UTC time at which the multipart upload was initiated.

", - "UploadMultipartPartInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single apos-apos (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (apos-apos) in the ID.

", + "UploadMultipartPartInput$accountId": "

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

", "UploadMultipartPartInput$vaultName": "

The name of the vault.

", "UploadMultipartPartInput$uploadId": "

The upload ID of the multipart upload.

", - "UploadMultipartPartInput$checksum": "

The SHA256 tree hash of the data being uploaded.

", + "UploadMultipartPartInput$checksum": "

The SHA256 tree hash of the data being uploaded.

", "UploadMultipartPartInput$range": "

Identifies the range of bytes in the assembled archive that will be uploaded in this part. Amazon Glacier uses this information to assemble the archive in the proper sequence. The format of this header follows RFC 2616. An example header is Content-Range:bytes 0-4194303/*.

", "UploadMultipartPartOutput$checksum": "

The SHA256 tree hash that Amazon Glacier computed for the uploaded part.

", "VaultAccessPolicy$Policy": "

The vault access policy.

", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/examples-1.json new file mode 100644 index 000000000..7ecea2594 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/examples-1.json @@ -0,0 +1,806 @@ +{ + "version": "1.0", + "examples": { + "AbortMultipartUpload": [ + { + "input": { + "accountId": "-", + "uploadId": "19gaRezEXAMPLES6Ry5YYdqthHOC_kGRCT03L9yetr220UmPtBYKk-OssZtLqyFu7sY1_lR7vgFuJV6NtcV5zpsJ", + "vaultName": "my-vault" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example deletes an in-progress multipart upload to a vault named my-vault:", + "id": "f3d907f6-e71c-420c-8f71-502346a2c48a", + "title": "To abort a multipart upload identified by the upload ID" + } + ], + "AbortVaultLock": [ + { + "input": { + "accountId": "-", + "vaultName": "examplevault" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example aborts the vault locking process if the vault lock is not in the Locked state for the vault named examplevault.", + "id": "to-abort-a-vault-lock-1481839357947", + "title": "To abort a vault lock" + } + ], + "AddTagsToVault": [ + { + "input": { + "Tags": { + "examplekey1": "examplevalue1", + "examplekey2": "examplevalue2" + }, + "accountId": "-", + "vaultName": "my-vault" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example adds two tags to a my-vault.", + "id": "add-tags-to-vault-post-tags-add-1481663457694", + "title": "To add tags to a vault" + } + ], + "CompleteMultipartUpload": [ + { + "input": { + "accountId": "-", + "archiveSize": "3145728", + "checksum": "9628195fcdbcbbe76cdde456d4646fa7de5f219fb39823836d81f0cc0e18aa67", + "uploadId": "19gaRezEXAMPLES6Ry5YYdqthHOC_kGRCT03L9yetr220UmPtBYKk-OssZtLqyFu7sY1_lR7vgFuJV6NtcV5zpsJ", + "vaultName": "my-vault" + }, + "output": { + "archiveId": "NkbByEejwEggmBz2fTHgJrg0XBoDfjP4q6iu87-TjhqG6eGoOY9Z8i1_AUyUsuhPAdTqLHy8pTl5nfCFJmDl2yEZONi5L26Omw12vcs01MNGntHEQL8MBfGlqrEXAMPLEArchiveId", + "checksum": "9628195fcdbcbbe76cdde456d4646fa7de5f219fb39823836d81f0cc0e18aa67", + "location": "/111122223333/vaults/my-vault/archives/NkbByEejwEggmBz2fTHgJrg0XBoDfjP4q6iu87-TjhqG6eGoOY9Z8i1_AUyUsuhPAdTqLHy8pTl5nfCFJmDl2yEZONi5L26Omw12vcs01MNGntHEQL8MBfGlqrEXAMPLEArchiveId" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example completes a multipart upload for a 3 MiB archive.", + "id": "272aa0b8-e44c-4a64-add2-ad905a37984d", + "title": "To complete a multipart upload" + } + ], + "CompleteVaultLock": [ + { + "input": { + "accountId": "-", + "lockId": "AE863rKkWZU53SLW5be4DUcW", + "vaultName": "example-vault" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example completes the vault locking process by transitioning the vault lock from the InProgress state to the Locked state.", + "id": "to-complete-a-vault-lock-1481839721312", + "title": "To complete a vault lock" + } + ], + "CreateVault": [ + { + "input": { + "accountId": "-", + "vaultName": "my-vault" + }, + "output": { + "location": "/111122223333/vaults/my-vault" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example creates a new vault named my-vault.", + "id": "1dc0313d-ace1-4e6c-9d13-1ec7813b14b7", + "title": "To create a new vault" + } + ], + "DeleteArchive": [ + { + "input": { + "accountId": "-", + "archiveId": "NkbByEejwEggmBz2fTHgJrg0XBoDfjP4q6iu87-TjhqG6eGoOY9Z8i1_AUyUsuhPAdTqLHy8pTl5nfCFJmDl2yEZONi5L26Omw12vcs01MNGntHEQL8MBfGlqrEXAMPLEArchiveId", + "vaultName": "examplevault" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example deletes the archive specified by the archive ID.", + "id": "delete-archive-1481667809463", + "title": "To delete an archive" + } + ], + "DeleteVault": [ + { + "input": { + "accountId": "-", + "vaultName": "my-vault" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example deletes a vault named my-vault:", + "id": "7f7f000b-4bdb-40d2-91e6-7c902f60f60f", + "title": "To delete a vault" + } + ], + "DeleteVaultAccessPolicy": [ + { + "input": { + "accountId": "-", + "vaultName": "examplevault" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example deletes the access policy associated with the vault named examplevault.", + "id": "to-delete-the-vault-access-policy-1481840424677", + "title": "To delete the vault access policy" + } + ], + "DeleteVaultNotifications": [ + { + "input": { + "accountId": "-", + "vaultName": "examplevault" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example deletes the notification configuration set for the vault named examplevault.", + "id": "to-delete-the-notification-configuration-set-for-a-vault-1481840646090", + "title": "To delete the notification configuration set for a vault" + } + ], + "DescribeJob": [ + { + "input": { + "accountId": "-", + "jobId": "zbxcm3Z_3z5UkoroF7SuZKrxgGoDc3RloGduS7Eg-RO47Yc6FxsdGBgf_Q2DK5Ejh18CnTS5XW4_XqlNHS61dsO4Cn", + "vaultName": "my-vault" + }, + "output": { + "Action": "InventoryRetrieval", + "Completed": false, + "CreationDate": "2015-07-17T20:23:41.616Z", + "InventoryRetrievalParameters": { + "Format": "JSON" + }, + "JobId": "zbxcm3Z_3z5UkoroF7SuZKrxgGoDc3RloGduS7Eg-RO47Yc6FxsdGBgf_Q2DK5Ejh18CnTS5XW4_XqlNHS61dsO4CnMW", + "StatusCode": "InProgress", + "VaultARN": "arn:aws:glacier:us-west-2:0123456789012:vaults/my-vault" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example returns information about the previously initiated job specified by the job ID.", + "id": "to-get-information-about-a-job-you-previously-initiated-1481840928592", + "title": "To get information about a previously initiated job" + } + ], + "DescribeVault": [ + { + "input": { + "accountId": "-", + "vaultName": "my-vault" + }, + "output": { + "CreationDate": "2016-09-23T19:27:18.665Z", + "NumberOfArchives": 0, + "SizeInBytes": 0, + "VaultARN": "arn:aws:glacier:us-west-2:111122223333:vaults/my-vault", + "VaultName": "my-vault" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example retrieves data about a vault named my-vault.", + "id": "3c1c6e9d-f5a2-427a-aa6a-f439eacfc05f", + "title": "To retrieve information about a vault" + } + ], + "GetDataRetrievalPolicy": [ + { + "input": { + "accountId": "-" + }, + "output": { + "Policy": { + "Rules": [ + { + "BytesPerHour": 10737418240, + "Strategy": "BytesPerHour" + } + ] + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example returns the current data retrieval policy for the account.", + "id": "to-get-the-current-data-retrieval-policy-for-the-account-1481851580439", + "title": "To get the current data retrieval policy for an account" + } + ], + "GetJobOutput": [ + { + "input": { + "accountId": "-", + "jobId": "zbxcm3Z_3z5UkoroF7SuZKrxgGoDc3RloGduS7Eg-RO47Yc6FxsdGBgf_Q2DK5Ejh18CnTS5XW4_XqlNHS61dsO4CnMW", + "range": "", + "vaultName": "my-vaul" + }, + "output": { + "acceptRanges": "bytes", + "body": "inventory-data", + "contentType": "application/json", + "status": 200 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example downloads the output of a previously initiated inventory retrieval job that is identified by the job ID.", + "id": "to-get-the-output-of-a-previously-initiated-job-1481848550859", + "title": "To get the output of a previously initiated job" + } + ], + "GetVaultAccessPolicy": [ + { + "input": { + "accountId": "-", + "vaultName": "example-vault" + }, + "output": { + "policy": { + "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Define-owner-access-rights\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::999999999999:root\"},\"Action\":\"glacier:DeleteArchive\",\"Resource\":\"arn:aws:glacier:us-west-2:999999999999:vaults/examplevault\"}]}" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example retrieves the access-policy set on the vault named example-vault.", + "id": "to--get-the-access-policy-set-on-the-vault-1481936004590", + "title": "To get the access-policy set on the vault" + } + ], + "GetVaultLock": [ + { + "input": { + "accountId": "-", + "vaultName": "examplevault" + }, + "output": { + "CreationDate": "exampledate", + "ExpirationDate": "exampledate", + "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Define-vault-lock\",\"Effect\":\"Deny\",\"Principal\":{\"AWS\":\"arn:aws:iam::999999999999:root\"},\"Action\":\"glacier:DeleteArchive\",\"Resource\":\"arn:aws:glacier:us-west-2:999999999999:vaults/examplevault\",\"Condition\":{\"NumericLessThanEquals\":{\"glacier:ArchiveAgeinDays\":\"365\"}}}]}", + "State": "InProgress" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example retrieves the attributes from the lock-policy subresource set on the vault named examplevault.", + "id": "to-retrieve-vault-lock-policy-related-attributes-that-are-set-on-a-vault-1481851363097", + "title": "To retrieve vault lock-policy related attributes that are set on a vault" + } + ], + "GetVaultNotifications": [ + { + "input": { + "accountId": "-", + "vaultName": "my-vault" + }, + "output": { + "vaultNotificationConfig": { + "Events": [ + "InventoryRetrievalCompleted", + "ArchiveRetrievalCompleted" + ], + "SNSTopic": "arn:aws:sns:us-west-2:0123456789012:my-vault" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example retrieves the notification-configuration for the vault named my-vault.", + "id": "to-get-the-notification-configuration-for-the-specified-vault-1481918746677", + "title": "To get the notification-configuration for the specified vault" + } + ], + "InitiateJob": [ + { + "input": { + "accountId": "-", + "jobParameters": { + "Description": "My inventory job", + "Format": "CSV", + "SNSTopic": "arn:aws:sns:us-west-2:111111111111:Glacier-InventoryRetrieval-topic-Example", + "Type": "inventory-retrieval" + }, + "vaultName": "examplevault" + }, + "output": { + "jobId": " HkF9p6o7yjhFx-K3CGl6fuSm6VzW9T7esGQfco8nUXVYwS0jlb5gq1JZ55yHgt5vP54ZShjoQzQVVh7vEXAMPLEjobID", + "location": "/111122223333/vaults/examplevault/jobs/HkF9p6o7yjhFx-K3CGl6fuSm6VzW9T7esGQfco8nUXVYwS0jlb5gq1JZ55yHgt5vP54ZShjoQzQVVh7vEXAMPLEjobID" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example initiates an inventory-retrieval job for the vault named examplevault.", + "id": "to-initiate-an-inventory-retrieval-job-1482186883826", + "title": "To initiate an inventory-retrieval job" + } + ], + "InitiateMultipartUpload": [ + { + "input": { + "accountId": "-", + "partSize": "1048576", + "vaultName": "my-vault" + }, + "output": { + "location": "/111122223333/vaults/my-vault/multipart-uploads/19gaRezEXAMPLES6Ry5YYdqthHOC_kGRCT03L9yetr220UmPtBYKk-OssZtLqyFu7sY1_lR7vgFuJV6NtcV5zpsJ", + "uploadId": "19gaRezEXAMPLES6Ry5YYdqthHOC_kGRCT03L9yetr220UmPtBYKk-OssZtLqyFu7sY1_lR7vgFuJV6NtcV5zpsJ" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example initiates a multipart upload to a vault named my-vault with a part size of 1 MiB (1024 x 1024 bytes) per file.", + "id": "72f2db19-3d93-4c74-b2ed-38703baacf49", + "title": "To initiate a multipart upload" + } + ], + "InitiateVaultLock": [ + { + "input": { + "accountId": "-", + "policy": { + "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Define-vault-lock\",\"Effect\":\"Deny\",\"Principal\":{\"AWS\":\"arn:aws:iam::999999999999:root\"},\"Action\":\"glacier:DeleteArchive\",\"Resource\":\"arn:aws:glacier:us-west-2:999999999999:vaults/examplevault\",\"Condition\":{\"NumericLessThanEquals\":{\"glacier:ArchiveAgeinDays\":\"365\"}}}]}" + }, + "vaultName": "my-vault" + }, + "output": { + "lockId": "AE863rKkWZU53SLW5be4DUcW" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example initiates the vault locking process for the vault named my-vault.", + "id": "to-initiate-the-vault-locking-process-1481919693394", + "title": "To initiate the vault locking process" + } + ], + "ListJobs": [ + { + "input": { + "accountId": "-", + "vaultName": "my-vault" + }, + "output": { + "JobList": [ + { + "Action": "ArchiveRetrieval", + "ArchiveId": "kKB7ymWJVpPSwhGP6ycSOAekp9ZYe_--zM_mw6k76ZFGEIWQX-ybtRDvc2VkPSDtfKmQrj0IRQLSGsNuDp-AJVlu2ccmDSyDUmZwKbwbpAdGATGDiB3hHO0bjbGehXTcApVud_wyDw", + "ArchiveSHA256TreeHash": "9628195fcdbcbbe76cdde932d4646fa7de5f219fb39823836d81f0cc0e18aa67", + "ArchiveSizeInBytes": 3145728, + "Completed": false, + "CreationDate": "2015-07-17T21:16:13.840Z", + "JobDescription": "Retrieve archive on 2015-07-17", + "JobId": "l7IL5-EkXyEY9Ws95fClzIbk2O5uLYaFdAYOi-azsX_Z8V6NH4yERHzars8wTKYQMX6nBDI9cMNHzyZJO59-8N9aHWav", + "RetrievalByteRange": "0-3145727", + "SHA256TreeHash": "9628195fcdbcbbe76cdde932d4646fa7de5f219fb39823836d81f0cc0e18aa67", + "SNSTopic": "arn:aws:sns:us-west-2:0123456789012:my-vault", + "StatusCode": "InProgress", + "VaultARN": "arn:aws:glacier:us-west-2:0123456789012:vaults/my-vault" + }, + { + "Action": "InventoryRetrieval", + "Completed": false, + "CreationDate": "2015-07-17T20:23:41.616Z", + "InventoryRetrievalParameters": { + "Format": "JSON" + }, + "JobId": "zbxcm3Z_3z5UkoroF7SuZKrxgGoDc3RloGduS7Eg-RO47Yc6FxsdGBgf_Q2DK5Ejh18CnTS5XW4_XqlNHS61dsO4CnMW", + "StatusCode": "InProgress", + "VaultARN": "arn:aws:glacier:us-west-2:0123456789012:vaults/my-vault" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example lists jobs for the vault named my-vault.", + "id": "to-list-jobs-for-a-vault-1481920530537", + "title": "To list jobs for a vault" + } + ], + "ListMultipartUploads": [ + { + "input": { + "accountId": "-", + "vaultName": "examplevault" + }, + "output": { + "Marker": "null", + "UploadsList": [ + { + "ArchiveDescription": "archive 1", + "CreationDate": "2012-03-19T23:20:59.130Z", + "MultipartUploadId": "xsQdFIRsfJr20CW2AbZBKpRZAFTZSJIMtL2hYf8mvp8dM0m4RUzlaqoEye6g3h3ecqB_zqwB7zLDMeSWhwo65re4C4Ev", + "PartSizeInBytes": 4194304, + "VaultARN": "arn:aws:glacier:us-west-2:012345678901:vaults/examplevault" + }, + { + "ArchiveDescription": "archive 2", + "CreationDate": "2012-04-01T15:00:00.000Z", + "MultipartUploadId": "nPyGOnyFcx67qqX7E-0tSGiRi88hHMOwOxR-_jNyM6RjVMFfV29lFqZ3rNsSaWBugg6OP92pRtufeHdQH7ClIpSF6uJc", + "PartSizeInBytes": 4194304, + "VaultARN": "arn:aws:glacier:us-west-2:012345678901:vaults/examplevault" + }, + { + "ArchiveDescription": "archive 3", + "CreationDate": "2012-03-20T17:03:43.221Z", + "MultipartUploadId": "qt-RBst_7yO8gVIonIBsAxr2t-db0pE4s8MNeGjKjGdNpuU-cdSAcqG62guwV9r5jh5mLyFPzFEitTpNE7iQfHiu1XoV", + "PartSizeInBytes": 4194304, + "VaultARN": "arn:aws:glacier:us-west-2:012345678901:vaults/examplevault" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example lists all the in-progress multipart uploads for the vault named examplevault.", + "id": "to-list-all-the-in-progress-multipart-uploads-for-a-vault-1481935250590", + "title": "To list all the in-progress multipart uploads for a vault" + } + ], + "ListParts": [ + { + "input": { + "accountId": "-", + "uploadId": "OW2fM5iVylEpFEMM9_HpKowRapC3vn5sSL39_396UW9zLFUWVrnRHaPjUJddQ5OxSHVXjYtrN47NBZ-khxOjyEXAMPLE", + "vaultName": "examplevault" + }, + "output": { + "ArchiveDescription": "archive description", + "CreationDate": "2012-03-20T17:03:43.221Z", + "Marker": "null", + "MultipartUploadId": "OW2fM5iVylEpFEMM9_HpKowRapC3vn5sSL39_396UW9zLFUWVrnRHaPjUJddQ5OxSHVXjYtrN47NBZ-khxOjyEXAMPLE", + "PartSizeInBytes": 4194304, + "Parts": [ + { + "RangeInBytes": "0-4194303", + "SHA256TreeHash": "01d34dabf7be316472c93b1ef80721f5d4" + }, + { + "RangeInBytes": "4194304-8388607", + "SHA256TreeHash": "0195875365afda349fc21c84c099987164" + } + ], + "VaultARN": "arn:aws:glacier:us-west-2:012345678901:vaults/demo1-vault" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example lists all the parts of a multipart upload.", + "id": "to-list-the-parts-of-an-archive-that-have-been-uploaded-in-a-multipart-upload-1481921767590", + "title": "To list the parts of an archive that have been uploaded in a multipart upload" + } + ], + "ListProvisionedCapacity": [ + { + "input": { + "accountId": "-" + }, + "output": { + "ProvisionedCapacityList": [ + { + "CapacityId": "zSaq7NzHFQDANTfQkDen4V7z", + "ExpirationDate": "2016-12-12T00:00:00.000Z", + "StartDate": "2016-11-11T20:11:51.095Z" + }, + { + "CapacityId": "yXaq7NzHFQNADTfQkDen4V7z", + "ExpirationDate": "2017-01-15T00:00:00.000Z", + "StartDate": "2016-12-13T20:11:51.095Z" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example lists the provisioned capacity units for an account.", + "id": "to-list-the-provisioned-capacity-units-for-an-account-1481923656130", + "title": "To list the provisioned capacity units for an account" + } + ], + "ListTagsForVault": [ + { + "input": { + "accountId": "-", + "vaultName": "examplevault" + }, + "output": { + "Tags": { + "date": "july2015", + "id": "1234" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example lists all the tags attached to the vault examplevault.", + "id": "list-tags-for-vault-1481755839720", + "title": "To list the tags for a vault" + } + ], + "ListVaults": [ + { + "input": { + "accountId": "-", + "limit": "", + "marker": "" + }, + "output": { + "VaultList": [ + { + "CreationDate": "2015-04-06T21:23:45.708Z", + "LastInventoryDate": "2015-04-07T00:26:19.028Z", + "NumberOfArchives": 1, + "SizeInBytes": 3178496, + "VaultARN": "arn:aws:glacier:us-west-2:0123456789012:vaults/my-vault", + "VaultName": "my-vault" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example lists all vaults owned by the specified AWS account.", + "id": "list-vaults-1481753006990", + "title": "To list all vaults owned by the calling user's account" + } + ], + "PurchaseProvisionedCapacity": [ + { + "input": { + "accountId": "-" + }, + "output": { + "capacityId": "zSaq7NzHFQDANTfQkDen4V7z" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example purchases provisioned capacity unit for an AWS account.", + "id": "to-purchases-a-provisioned-capacity-unit-for-an-aws-account-1481927446662", + "title": "To purchases a provisioned capacity unit for an AWS account" + } + ], + "RemoveTagsFromVault": [ + { + "input": { + "TagKeys": [ + "examplekey1", + "examplekey2" + ], + "accountId": "-", + "vaultName": "examplevault" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example removes two tags from the vault named examplevault.", + "id": "remove-tags-from-vault-1481754998801", + "title": "To remove tags from a vault" + } + ], + "SetDataRetrievalPolicy": [ + { + "input": { + "Policy": { + "Rules": [ + { + "BytesPerHour": 10737418240, + "Strategy": "BytesPerHour" + } + ] + }, + "accountId": "-" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example sets and then enacts a data retrieval policy.", + "id": "to-set-and-then-enact-a-data-retrieval-policy--1481928352408", + "title": "To set and then enact a data retrieval policy " + } + ], + "SetVaultAccessPolicy": [ + { + "input": { + "accountId": "-", + "policy": { + "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Define-owner-access-rights\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::999999999999:root\"},\"Action\":\"glacier:DeleteArchive\",\"Resource\":\"arn:aws:glacier:us-west-2:999999999999:vaults/examplevault\"}]}" + }, + "vaultName": "examplevault" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example configures an access policy for the vault named examplevault.", + "id": "to--set-the-access-policy-on-a-vault-1482185872517", + "title": "To set the access-policy on a vault" + } + ], + "SetVaultNotifications": [ + { + "input": { + "accountId": "-", + "vaultName": "examplevault", + "vaultNotificationConfig": { + "Events": [ + "ArchiveRetrievalCompleted", + "InventoryRetrievalCompleted" + ], + "SNSTopic": "arn:aws:sns:us-west-2:012345678901:mytopic" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example sets the examplevault notification configuration.", + "id": "to-configure-a-vault-to-post-a-message-to-an-amazon-simple-notification-service-amazon-sns-topic-when-jobs-complete-1482186397475", + "title": "To configure a vault to post a message to an Amazon SNS topic when jobs complete" + } + ], + "UploadArchive": [ + { + "input": { + "accountId": "-", + "archiveDescription": "", + "body": "example-data-to-upload", + "checksum": "", + "vaultName": "my-vault" + }, + "output": { + "archiveId": "kKB7ymWJVpPSwhGP6ycSOAekp9ZYe_--zM_mw6k76ZFGEIWQX-ybtRDvc2VkPSDtfKmQrj0IRQLSGsNuDp-AJVlu2ccmDSyDUmZwKbwbpAdGATGDiB3hHO0bjbGehXTcApVud_wyDw", + "checksum": "969fb39823836d81f0cc028195fcdbcbbe76cdde932d4646fa7de5f21e18aa67", + "location": "/0123456789012/vaults/my-vault/archives/kKB7ymWJVpPSwhGP6ycSOAekp9ZYe_--zM_mw6k76ZFGEIWQX-ybtRDvc2VkPSDtfKmQrj0IRQLSGsNuDp-AJVlu2ccmDSyDUmZwKbwbpAdGATGDiB3hHO0bjbGehXTcApVud_wyDw" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example adds an archive to a vault.", + "id": "upload-archive-1481668510494", + "title": "To upload an archive" + } + ], + "UploadMultipartPart": [ + { + "input": { + "accountId": "-", + "body": "part1", + "checksum": "c06f7cd4baacb087002a99a5f48bf953", + "range": "bytes 0-1048575/*", + "uploadId": "19gaRezEXAMPLES6Ry5YYdqthHOC_kGRCT03L9yetr220UmPtBYKk-OssZtLqyFu7sY1_lR7vgFuJV6NtcV5zpsJ", + "vaultName": "examplevault" + }, + "output": { + "checksum": "c06f7cd4baacb087002a99a5f48bf953" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The example uploads the first 1 MiB (1024 x 1024 bytes) part of an archive.", + "id": "to-upload-the-first-part-of-an-archive-1481835899519", + "title": "To upload the first part of an archive" + } + ] + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/paginators-1.json index 69691437e..cf247b7a2 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/paginators-1.json @@ -2,27 +2,27 @@ "pagination": { "ListJobs": { "input_token": "marker", - "output_token": "Marker", "limit_key": "limit", + "output_token": "Marker", "result_key": "JobList" }, "ListMultipartUploads": { "input_token": "marker", - "output_token": "Marker", "limit_key": "limit", + "output_token": "Marker", "result_key": "UploadsList" }, "ListParts": { "input_token": "marker", - "output_token": "Marker", "limit_key": "limit", + "output_token": "Marker", "result_key": "Parts" }, "ListVaults": { "input_token": "marker", - "output_token": "Marker", "limit_key": "limit", + "output_token": "Marker", "result_key": "VaultList" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/health/2016-08-04/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/health/2016-08-04/api-2.json new file mode 100644 index 000000000..054b0d0be --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/health/2016-08-04/api-2.json @@ -0,0 +1,547 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2016-08-04", + "endpointPrefix":"health", + "jsonVersion":"1.1", + "protocol":"json", + "serviceAbbreviation":"AWSHealth", + "serviceFullName":"AWS Health APIs and Notifications", + "signatureVersion":"v4", + "targetPrefix":"AWSHealth_20160804", + "uid":"health-2016-08-04" + }, + "operations":{ + "DescribeAffectedEntities":{ + "name":"DescribeAffectedEntities", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeAffectedEntitiesRequest"}, + "output":{"shape":"DescribeAffectedEntitiesResponse"}, + "errors":[ + {"shape":"InvalidPaginationToken"}, + {"shape":"UnsupportedLocale"} + ], + "idempotent":true + }, + "DescribeEntityAggregates":{ + "name":"DescribeEntityAggregates", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeEntityAggregatesRequest"}, + "output":{"shape":"DescribeEntityAggregatesResponse"}, + "idempotent":true + }, + "DescribeEventAggregates":{ + "name":"DescribeEventAggregates", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeEventAggregatesRequest"}, + "output":{"shape":"DescribeEventAggregatesResponse"}, + "errors":[ + {"shape":"InvalidPaginationToken"} + ], + "idempotent":true + }, + "DescribeEventDetails":{ + "name":"DescribeEventDetails", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeEventDetailsRequest"}, + "output":{"shape":"DescribeEventDetailsResponse"}, + "errors":[ + {"shape":"UnsupportedLocale"} + ], + "idempotent":true + }, + "DescribeEventTypes":{ + "name":"DescribeEventTypes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeEventTypesRequest"}, + "output":{"shape":"DescribeEventTypesResponse"}, + "errors":[ + {"shape":"InvalidPaginationToken"}, + {"shape":"UnsupportedLocale"} + ], + "idempotent":true + }, + "DescribeEvents":{ + "name":"DescribeEvents", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeEventsRequest"}, + "output":{"shape":"DescribeEventsResponse"}, + "errors":[ + {"shape":"InvalidPaginationToken"}, + {"shape":"UnsupportedLocale"} + ], + "idempotent":true + } + }, + "shapes":{ + "AffectedEntity":{ + "type":"structure", + "members":{ + "entityArn":{"shape":"entityArn"}, + "eventArn":{"shape":"eventArn"}, + "entityValue":{"shape":"entityValue"}, + "awsAccountId":{"shape":"accountId"}, + "lastUpdatedTime":{"shape":"timestamp"}, + "statusCode":{"shape":"entityStatusCode"}, + "tags":{"shape":"tagSet"} + } + }, + "DateTimeRange":{ + "type":"structure", + "members":{ + "from":{"shape":"timestamp"}, + "to":{"shape":"timestamp"} + } + }, + "DescribeAffectedEntitiesRequest":{ + "type":"structure", + "required":["filter"], + "members":{ + "filter":{"shape":"EntityFilter"}, + "locale":{"shape":"locale"}, + "nextToken":{"shape":"nextToken"}, + "maxResults":{"shape":"maxResults"} + } + }, + "DescribeAffectedEntitiesResponse":{ + "type":"structure", + "members":{ + "entities":{"shape":"EntityList"}, + "nextToken":{"shape":"nextToken"} + } + }, + "DescribeEntityAggregatesRequest":{ + "type":"structure", + "members":{ + "eventArns":{"shape":"EventArnsList"} + } + }, + "DescribeEntityAggregatesResponse":{ + "type":"structure", + "members":{ + "entityAggregates":{"shape":"EntityAggregateList"} + } + }, + "DescribeEventAggregatesRequest":{ + "type":"structure", + "required":["aggregateField"], + "members":{ + "filter":{"shape":"EventFilter"}, + "aggregateField":{"shape":"eventAggregateField"}, + "maxResults":{"shape":"maxResults"}, + "nextToken":{"shape":"nextToken"} + } + }, + "DescribeEventAggregatesResponse":{ + "type":"structure", + "members":{ + "eventAggregates":{"shape":"EventAggregateList"}, + "nextToken":{"shape":"nextToken"} + } + }, + "DescribeEventDetailsFailedSet":{ + "type":"list", + "member":{"shape":"EventDetailsErrorItem"} + }, + "DescribeEventDetailsRequest":{ + "type":"structure", + "required":["eventArns"], + "members":{ + "eventArns":{"shape":"eventArnList"}, + "locale":{"shape":"locale"} + } + }, + "DescribeEventDetailsResponse":{ + "type":"structure", + "members":{ + "successfulSet":{"shape":"DescribeEventDetailsSuccessfulSet"}, + "failedSet":{"shape":"DescribeEventDetailsFailedSet"} + } + }, + "DescribeEventDetailsSuccessfulSet":{ + "type":"list", + "member":{"shape":"EventDetails"} + }, + "DescribeEventTypesRequest":{ + "type":"structure", + "members":{ + "filter":{"shape":"EventTypeFilter"}, + "locale":{"shape":"locale"}, + "nextToken":{"shape":"nextToken"}, + "maxResults":{"shape":"maxResults"} + } + }, + "DescribeEventTypesResponse":{ + "type":"structure", + "members":{ + "eventTypes":{"shape":"EventTypeList"}, + "nextToken":{"shape":"nextToken"} + } + }, + "DescribeEventsRequest":{ + "type":"structure", + "members":{ + "filter":{"shape":"EventFilter"}, + "nextToken":{"shape":"nextToken"}, + "maxResults":{"shape":"maxResults"}, + "locale":{"shape":"locale"} + } + }, + "DescribeEventsResponse":{ + "type":"structure", + "members":{ + "events":{"shape":"EventList"}, + "nextToken":{"shape":"nextToken"} + } + }, + "EntityAggregate":{ + "type":"structure", + "members":{ + "eventArn":{"shape":"eventArn"}, + "count":{"shape":"count"} + } + }, + "EntityAggregateList":{ + "type":"list", + "member":{"shape":"EntityAggregate"} + }, + "EntityFilter":{ + "type":"structure", + "required":["eventArns"], + "members":{ + "eventArns":{"shape":"eventArnList"}, + "entityArns":{"shape":"entityArnList"}, + "entityValues":{"shape":"entityValueList"}, + "lastUpdatedTimes":{"shape":"dateTimeRangeList"}, + "tags":{"shape":"tagFilter"}, + "statusCodes":{"shape":"entityStatusCodeList"} + } + }, + "EntityList":{ + "type":"list", + "member":{"shape":"AffectedEntity"} + }, + "Event":{ + "type":"structure", + "members":{ + "arn":{"shape":"eventArn"}, + "service":{"shape":"service"}, + "eventTypeCode":{"shape":"eventTypeCode"}, + "eventTypeCategory":{"shape":"eventTypeCategory"}, + "region":{"shape":"region"}, + "availabilityZone":{"shape":"availabilityZone"}, + "startTime":{"shape":"timestamp"}, + "endTime":{"shape":"timestamp"}, + "lastUpdatedTime":{"shape":"timestamp"}, + "statusCode":{"shape":"eventStatusCode"} + } + }, + "EventAggregate":{ + "type":"structure", + "members":{ + "aggregateValue":{"shape":"aggregateValue"}, + "count":{"shape":"count"} + } + }, + "EventAggregateList":{ + "type":"list", + "member":{"shape":"EventAggregate"} + }, + "EventArnsList":{ + "type":"list", + "member":{"shape":"eventArn"}, + "max":50, + "min":1 + }, + "EventDescription":{ + "type":"structure", + "members":{ + "latestDescription":{"shape":"eventDescription"} + } + }, + "EventDetails":{ + "type":"structure", + "members":{ + "event":{"shape":"Event"}, + "eventDescription":{"shape":"EventDescription"}, + "eventMetadata":{"shape":"eventMetadata"} + } + }, + "EventDetailsErrorItem":{ + "type":"structure", + "members":{ + "eventArn":{"shape":"eventArn"}, + "errorName":{"shape":"string"}, + "errorMessage":{"shape":"string"} + } + }, + "EventFilter":{ + "type":"structure", + "members":{ + "eventArns":{"shape":"eventArnList"}, + "eventTypeCodes":{"shape":"eventTypeList"}, + "services":{"shape":"serviceList"}, + "regions":{"shape":"regionList"}, + "availabilityZones":{"shape":"availabilityZones"}, + "startTimes":{"shape":"dateTimeRangeList"}, + "endTimes":{"shape":"dateTimeRangeList"}, + "lastUpdatedTimes":{"shape":"dateTimeRangeList"}, + "entityArns":{"shape":"entityArnList"}, + "entityValues":{"shape":"entityValueList"}, + "eventTypeCategories":{"shape":"eventTypeCategoryList"}, + "tags":{"shape":"tagFilter"}, + "eventStatusCodes":{"shape":"eventStatusCodeList"} + } + }, + "EventList":{ + "type":"list", + "member":{"shape":"Event"} + }, + "EventType":{ + "type":"structure", + "members":{ + "service":{"shape":"service"}, + "code":{"shape":"eventTypeCode"}, + "category":{"shape":"eventTypeCategory"} + } + }, + "EventTypeCategoryList":{ + "type":"list", + "member":{"shape":"eventTypeCategory"}, + "max":10, + "min":1 + }, + "EventTypeCodeList":{ + "type":"list", + "member":{"shape":"eventTypeCode"}, + "max":10, + "min":1 + }, + "EventTypeFilter":{ + "type":"structure", + "members":{ + "eventTypeCodes":{"shape":"EventTypeCodeList"}, + "services":{"shape":"serviceList"}, + "eventTypeCategories":{"shape":"EventTypeCategoryList"} + } + }, + "EventTypeList":{ + "type":"list", + "member":{"shape":"EventType"} + }, + "InvalidPaginationToken":{ + "type":"structure", + "members":{ + "message":{"shape":"string"} + }, + "exception":true + }, + "UnsupportedLocale":{ + "type":"structure", + "members":{ + "message":{"shape":"string"} + }, + "exception":true + }, + "accountId":{ + "type":"string", + "pattern":"[0-9]{12}" + }, + "aggregateValue":{"type":"string"}, + "availabilityZone":{ + "type":"string", + "pattern":"[a-z]{2}\\-[0-9a-z\\-]{4,16}" + }, + "availabilityZones":{ + "type":"list", + "member":{"shape":"availabilityZone"} + }, + "count":{"type":"integer"}, + "dateTimeRangeList":{ + "type":"list", + "member":{"shape":"DateTimeRange"}, + "max":10, + "min":1 + }, + "entityArn":{ + "type":"string", + "max":1600 + }, + "entityArnList":{ + "type":"list", + "member":{"shape":"entityArn"}, + "max":100, + "min":1 + }, + "entityStatusCode":{ + "type":"string", + "enum":[ + "IMPAIRED", + "UNIMPAIRED", + "UNKNOWN" + ] + }, + "entityStatusCodeList":{ + "type":"list", + "member":{"shape":"entityStatusCode"}, + "max":3, + "min":1 + }, + "entityValue":{ + "type":"string", + "max":256 + }, + "entityValueList":{ + "type":"list", + "member":{"shape":"entityValue"}, + "max":100, + "min":1 + }, + "eventAggregateField":{ + "type":"string", + "enum":["eventTypeCategory"] + }, + "eventArn":{ + "type":"string", + "max":1600, + "pattern":"arn:aws:health:[^:]*:[^:]*:event/[\\w-]+" + }, + "eventArnList":{ + "type":"list", + "member":{"shape":"eventArn"}, + "max":10, + "min":1 + }, + "eventDescription":{"type":"string"}, + "eventMetadata":{ + "type":"map", + "key":{"shape":"metadataKey"}, + "value":{"shape":"metadataValue"} + }, + "eventStatusCode":{ + "type":"string", + "enum":[ + "open", + "closed", + "upcoming" + ] + }, + "eventStatusCodeList":{ + "type":"list", + "member":{"shape":"eventStatusCode"}, + "max":6, + "min":1 + }, + "eventType":{ + "type":"string", + "max":100, + "min":3 + }, + "eventTypeCategory":{ + "type":"string", + "enum":[ + "issue", + "accountNotification", + "scheduledChange" + ], + "max":255, + "min":3 + }, + "eventTypeCategoryList":{ + "type":"list", + "member":{"shape":"eventTypeCategory"}, + "max":10, + "min":1 + }, + "eventTypeCode":{ + "type":"string", + "max":100, + "min":3 + }, + "eventTypeList":{ + "type":"list", + "member":{"shape":"eventType"}, + "max":10, + "min":1 + }, + "locale":{ + "type":"string", + "max":256, + "min":2 + }, + "maxResults":{ + "type":"integer", + "max":100, + "min":10 + }, + "metadataKey":{"type":"string"}, + "metadataValue":{ + "type":"string", + "max":10240 + }, + "nextToken":{ + "type":"string", + "pattern":"[a-zA-Z0-9=/+_.-]{4,512}" + }, + "region":{ + "type":"string", + "pattern":"[^:/]{2,25}" + }, + "regionList":{ + "type":"list", + "member":{"shape":"region"}, + "max":10, + "min":1 + }, + "service":{ + "type":"string", + "max":30, + "min":2 + }, + "serviceList":{ + "type":"list", + "member":{"shape":"service"}, + "max":10, + "min":1 + }, + "string":{"type":"string"}, + "tagFilter":{ + "type":"list", + "member":{"shape":"tagSet"}, + "max":50 + }, + "tagKey":{ + "type":"string", + "max":127 + }, + "tagSet":{ + "type":"map", + "key":{"shape":"tagKey"}, + "value":{"shape":"tagValue"}, + "max":50 + }, + "tagValue":{ + "type":"string", + "max":255 + }, + "timestamp":{"type":"timestamp"} + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/health/2016-08-04/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/health/2016-08-04/docs-2.json new file mode 100644 index 000000000..eaed8155f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/health/2016-08-04/docs-2.json @@ -0,0 +1,502 @@ +{ + "version": "2.0", + "service": "AWS Health

The AWS Health API provides programmatic access to the AWS Health information that is presented in the AWS Personal Health Dashboard. You can get information about events that affect your AWS resources:

In addition, these operations provide information about event types and summary counts of events or affected entities:

The Health API requires a Business or Enterprise support plan from AWS Support. Calling the Health API from an account that does not have a Business or Enterprise support plan causes a SubscriptionRequiredException.

For authentication of requests, AWS Health uses the Signature Version 4 Signing Process.

See the AWS Health User Guide for information about how to use the API.

Service Endpoint

The HTTP endpoint for the AWS Health API is:

  • https://health.us-east-1.amazonaws.com

", + "operations": { + "DescribeAffectedEntities": "

Returns a list of entities that have been affected by the specified events, based on the specified filter criteria. Entities can refer to individual customer resources, groups of customer resources, or any other construct, depending on the AWS service. Events that have impact beyond that of the affected entities, or where the extent of impact is unknown, include at least one entity indicating this.

At least one event ARN is required. Results are sorted by the lastUpdatedTime of the entity, starting with the most recent.

", + "DescribeEntityAggregates": "

Returns the number of entities that are affected by each of the specified events. If no events are specified, the counts of all affected entities are returned.

", + "DescribeEventAggregates": "

Returns the number of events of each event type (issue, scheduled change, and account notification). If no filter is specified, the counts of all events in each category are returned.

", + "DescribeEventDetails": "

Returns detailed information about one or more specified events. Information includes standard event data (region, service, etc., as returned by DescribeEvents), a detailed event description, and possible additional metadata that depends upon the nature of the event. Affected entities are not included; to retrieve those, use the DescribeAffectedEntities operation.

If a specified event cannot be retrieved, an error message is returned for that event.

", + "DescribeEventTypes": "

Returns the event types that meet the specified filter criteria. If no filter criteria are specified, all event types are returned, in no particular order.

", + "DescribeEvents": "

Returns information about events that meet the specified filter criteria. Events are returned in a summary form and do not include the detailed description, any additional metadata that depends on the event type, or any affected resources. To retrieve that information, use the DescribeEventDetails and DescribeAffectedEntities operations.

If no filter criteria are specified, all events are returned. Results are sorted by lastModifiedTime, starting with the most recent.

" + }, + "shapes": { + "AffectedEntity": { + "base": "

Information about an entity that is affected by a Health event.

", + "refs": { + "EntityList$member": null + } + }, + "DateTimeRange": { + "base": "

A range of dates and times that is used by the EventFilter and EntityFilter objects. If from is set and to is set: match items where the timestamp (startTime, endTime, or lastUpdatedTime) is between from and to inclusive. If from is set and to is not set: match items where the timestamp value is equal to or after from. If from is not set and to is set: match items where the timestamp value is equal to or before to.

", + "refs": { + "dateTimeRangeList$member": null + } + }, + "DescribeAffectedEntitiesRequest": { + "base": null, + "refs": { + } + }, + "DescribeAffectedEntitiesResponse": { + "base": null, + "refs": { + } + }, + "DescribeEntityAggregatesRequest": { + "base": null, + "refs": { + } + }, + "DescribeEntityAggregatesResponse": { + "base": null, + "refs": { + } + }, + "DescribeEventAggregatesRequest": { + "base": null, + "refs": { + } + }, + "DescribeEventAggregatesResponse": { + "base": null, + "refs": { + } + }, + "DescribeEventDetailsFailedSet": { + "base": null, + "refs": { + "DescribeEventDetailsResponse$failedSet": "

Error messages for any events that could not be retrieved.

" + } + }, + "DescribeEventDetailsRequest": { + "base": null, + "refs": { + } + }, + "DescribeEventDetailsResponse": { + "base": null, + "refs": { + } + }, + "DescribeEventDetailsSuccessfulSet": { + "base": null, + "refs": { + "DescribeEventDetailsResponse$successfulSet": "

Information about the events that could be retrieved.

" + } + }, + "DescribeEventTypesRequest": { + "base": null, + "refs": { + } + }, + "DescribeEventTypesResponse": { + "base": null, + "refs": { + } + }, + "DescribeEventsRequest": { + "base": null, + "refs": { + } + }, + "DescribeEventsResponse": { + "base": null, + "refs": { + } + }, + "EntityAggregate": { + "base": "

The number of entities that are affected by one or more events. Returned by the DescribeEntityAggregates operation.

", + "refs": { + "EntityAggregateList$member": null + } + }, + "EntityAggregateList": { + "base": null, + "refs": { + "DescribeEntityAggregatesResponse$entityAggregates": "

The number of entities that are affected by each of the specified events.

" + } + }, + "EntityFilter": { + "base": "

The values to use to filter results from the DescribeAffectedEntities operation.

", + "refs": { + "DescribeAffectedEntitiesRequest$filter": "

Values to narrow the results returned. At least one event ARN is required.

" + } + }, + "EntityList": { + "base": null, + "refs": { + "DescribeAffectedEntitiesResponse$entities": "

The entities that match the filter criteria.

" + } + }, + "Event": { + "base": "

Summary information about an event, returned by the DescribeEvents operation. The DescribeEventDetails operation also returns this information, as well as the EventDescription and additional event metadata.

", + "refs": { + "EventDetails$event": "

Summary information about the event.

", + "EventList$member": null + } + }, + "EventAggregate": { + "base": "

The number of events of each issue type. Returned by the DescribeEventAggregates operation.

", + "refs": { + "EventAggregateList$member": null + } + }, + "EventAggregateList": { + "base": null, + "refs": { + "DescribeEventAggregatesResponse$eventAggregates": "

The number of events in each category that meet the optional filter criteria.

" + } + }, + "EventArnsList": { + "base": null, + "refs": { + "DescribeEntityAggregatesRequest$eventArns": "

A list of event ARNs (unique identifiers). For example: \"arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331\", \"arn:aws:health:us-west-1::event/AWS_EBS_LOST_VOLUME_xyz\"

" + } + }, + "EventDescription": { + "base": "

The detailed description of the event. Included in the information returned by the DescribeEventDetails operation.

", + "refs": { + "EventDetails$eventDescription": "

The most recent description of the event.

" + } + }, + "EventDetails": { + "base": "

Detailed information about an event. A combination of an Event object, an EventDescription object, and additional metadata about the event. Returned by the DescribeEventDetails operation.

", + "refs": { + "DescribeEventDetailsSuccessfulSet$member": null + } + }, + "EventDetailsErrorItem": { + "base": "

Error information returned when a DescribeEventDetails operation cannot find a specified event.

", + "refs": { + "DescribeEventDetailsFailedSet$member": null + } + }, + "EventFilter": { + "base": "

The values to use to filter results from the DescribeEvents and DescribeEventAggregates operations.

", + "refs": { + "DescribeEventAggregatesRequest$filter": "

Values to narrow the results returned.

", + "DescribeEventsRequest$filter": "

Values to narrow the results returned.

" + } + }, + "EventList": { + "base": null, + "refs": { + "DescribeEventsResponse$events": "

The events that match the specified filter criteria.

" + } + }, + "EventType": { + "base": "

Metadata about a type of event that is reported by AWS Health. Data consists of the category (for example, issue), the service (for example, EC2), and the event type code (for example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT).

", + "refs": { + "EventTypeList$member": null + } + }, + "EventTypeCategoryList": { + "base": null, + "refs": { + "EventTypeFilter$eventTypeCategories": "

A list of event type category codes (issue, scheduledChange, or accountNotification).

" + } + }, + "EventTypeCodeList": { + "base": null, + "refs": { + "EventTypeFilter$eventTypeCodes": "

A list of event type codes.

" + } + }, + "EventTypeFilter": { + "base": "

The values to use to filter results from the DescribeEventTypes operation.

", + "refs": { + "DescribeEventTypesRequest$filter": "

Values to narrow the results returned.

" + } + }, + "EventTypeList": { + "base": null, + "refs": { + "DescribeEventTypesResponse$eventTypes": "

A list of event types that match the filter criteria. Event types have a category (issue, accountNotification, or scheduledChange), a service (for example, EC2, RDS, DATAPIPELINE, BILLING), and a code (in the format AWS_SERVICE_DESCRIPTION ; for example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT).

" + } + }, + "InvalidPaginationToken": { + "base": "

The specified pagination token (nextToken) is not valid.

", + "refs": { + } + }, + "UnsupportedLocale": { + "base": "

The specified locale is not supported.

", + "refs": { + } + }, + "accountId": { + "base": null, + "refs": { + "AffectedEntity$awsAccountId": "

The 12-digit AWS account number that contains the affected entity.

" + } + }, + "aggregateValue": { + "base": null, + "refs": { + "EventAggregate$aggregateValue": "

The issue type for the associated count.

" + } + }, + "availabilityZone": { + "base": null, + "refs": { + "Event$availabilityZone": "

The AWS Availability Zone of the event. For example, us-east-1a.

", + "availabilityZones$member": null + } + }, + "availabilityZones": { + "base": null, + "refs": { + "EventFilter$availabilityZones": "

A list of AWS availability zones.

" + } + }, + "count": { + "base": null, + "refs": { + "EntityAggregate$count": "

The number entities that match the criteria for the specified events.

", + "EventAggregate$count": "

The number of events of the associated issue type.

" + } + }, + "dateTimeRangeList": { + "base": null, + "refs": { + "EntityFilter$lastUpdatedTimes": "

A list of the most recent dates and times that the entity was updated.

", + "EventFilter$startTimes": "

A list of dates and times that the event began.

", + "EventFilter$endTimes": "

A list of dates and times that the event ended.

", + "EventFilter$lastUpdatedTimes": "

A list of dates and times that the event was last updated.

" + } + }, + "entityArn": { + "base": null, + "refs": { + "AffectedEntity$entityArn": "

The unique identifier for the entity. Format: arn:aws:health:entity-region:aws-account:entity/entity-id . Example: arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K

", + "entityArnList$member": null + } + }, + "entityArnList": { + "base": null, + "refs": { + "EntityFilter$entityArns": "

A list of entity ARNs (unique identifiers).

", + "EventFilter$entityArns": "

A list of entity ARNs (unique identifiers).

" + } + }, + "entityStatusCode": { + "base": null, + "refs": { + "AffectedEntity$statusCode": "

The most recent status of the entity affected by the event. The possible values are IMPAIRED, UNIMPAIRED, and UNKNOWN.

", + "entityStatusCodeList$member": null + } + }, + "entityStatusCodeList": { + "base": null, + "refs": { + "EntityFilter$statusCodes": "

A list of entity status codes (IMPAIRED, UNIMPAIRED, or UNKNOWN).

" + } + }, + "entityValue": { + "base": null, + "refs": { + "AffectedEntity$entityValue": "

The ID of the affected entity.

", + "entityValueList$member": null + } + }, + "entityValueList": { + "base": null, + "refs": { + "EntityFilter$entityValues": "

A list of IDs for affected entities.

", + "EventFilter$entityValues": "

A list of entity identifiers, such as EC2 instance IDs (i-34ab692e) or EBS volumes (vol-426ab23e).

" + } + }, + "eventAggregateField": { + "base": null, + "refs": { + "DescribeEventAggregatesRequest$aggregateField": "

The only currently supported value is eventTypeCategory.

" + } + }, + "eventArn": { + "base": null, + "refs": { + "AffectedEntity$eventArn": "

The unique identifier for the event. Format: arn:aws:health:event-region::event/EVENT_TYPE_PLUS_ID . Example: arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331

", + "EntityAggregate$eventArn": "

The unique identifier for the event. Format: arn:aws:health:event-region::event/EVENT_TYPE_PLUS_ID . Example: arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331

", + "Event$arn": "

The unique identifier for the event. Format: arn:aws:health:event-region::event/EVENT_TYPE_PLUS_ID . Example: arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331

", + "EventArnsList$member": null, + "EventDetailsErrorItem$eventArn": "

The unique identifier for the event. Format: arn:aws:health:event-region::event/EVENT_TYPE_PLUS_ID . Example: arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331

", + "eventArnList$member": null + } + }, + "eventArnList": { + "base": null, + "refs": { + "DescribeEventDetailsRequest$eventArns": "

A list of event ARNs (unique identifiers). For example: \"arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331\", \"arn:aws:health:us-west-1::event/AWS_EBS_LOST_VOLUME_xyz\"

", + "EntityFilter$eventArns": "

A list of event ARNs (unique identifiers). For example: \"arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331\", \"arn:aws:health:us-west-1::event/AWS_EBS_LOST_VOLUME_xyz\"

", + "EventFilter$eventArns": "

A list of event ARNs (unique identifiers). For example: \"arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331\", \"arn:aws:health:us-west-1::event/AWS_EBS_LOST_VOLUME_xyz\"

" + } + }, + "eventDescription": { + "base": null, + "refs": { + "EventDescription$latestDescription": "

The most recent description of the event.

" + } + }, + "eventMetadata": { + "base": null, + "refs": { + "EventDetails$eventMetadata": "

Additional metadata about the event.

" + } + }, + "eventStatusCode": { + "base": null, + "refs": { + "Event$statusCode": "

The most recent status of the event. Possible values are open, closed, and upcoming.

", + "eventStatusCodeList$member": null + } + }, + "eventStatusCodeList": { + "base": null, + "refs": { + "EventFilter$eventStatusCodes": "

A list of event status codes.

" + } + }, + "eventType": { + "base": null, + "refs": { + "eventTypeList$member": null + } + }, + "eventTypeCategory": { + "base": null, + "refs": { + "Event$eventTypeCategory": "

The

", + "EventType$category": "

A list of event type category codes (issue, scheduledChange, or accountNotification).

", + "EventTypeCategoryList$member": null, + "eventTypeCategoryList$member": null + } + }, + "eventTypeCategoryList": { + "base": null, + "refs": { + "EventFilter$eventTypeCategories": "

A list of event type category codes (issue, scheduledChange, or accountNotification).

" + } + }, + "eventTypeCode": { + "base": null, + "refs": { + "Event$eventTypeCode": "

The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION ; for example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT.

", + "EventType$code": "

The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION ; for example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT.

", + "EventTypeCodeList$member": null + } + }, + "eventTypeList": { + "base": null, + "refs": { + "EventFilter$eventTypeCodes": "

A list of unique identifiers for event types. For example, \"AWS_EC2_SYSTEM_MAINTENANCE_EVENT\",\"AWS_RDS_MAINTENANCE_SCHEDULED\"

" + } + }, + "locale": { + "base": null, + "refs": { + "DescribeAffectedEntitiesRequest$locale": "

The locale (language) to return information in. English (en) is the default and the only supported value at this time.

", + "DescribeEventDetailsRequest$locale": "

The locale (language) to return information in. English (en) is the default and the only supported value at this time.

", + "DescribeEventTypesRequest$locale": "

The locale (language) to return information in. English (en) is the default and the only supported value at this time.

", + "DescribeEventsRequest$locale": "

The locale (language) to return information in. English (en) is the default and the only supported value at this time.

" + } + }, + "maxResults": { + "base": null, + "refs": { + "DescribeAffectedEntitiesRequest$maxResults": "

The maximum number of items to return in one batch, between 10 and 100, inclusive.

", + "DescribeEventAggregatesRequest$maxResults": "

The maximum number of items to return in one batch, between 10 and 100, inclusive.

", + "DescribeEventTypesRequest$maxResults": "

The maximum number of items to return in one batch, between 10 and 100, inclusive.

", + "DescribeEventsRequest$maxResults": "

The maximum number of items to return in one batch, between 10 and 100, inclusive.

" + } + }, + "metadataKey": { + "base": null, + "refs": { + "eventMetadata$key": null + } + }, + "metadataValue": { + "base": null, + "refs": { + "eventMetadata$value": null + } + }, + "nextToken": { + "base": null, + "refs": { + "DescribeAffectedEntitiesRequest$nextToken": "

If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.

", + "DescribeAffectedEntitiesResponse$nextToken": "

If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.

", + "DescribeEventAggregatesRequest$nextToken": "

If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.

", + "DescribeEventAggregatesResponse$nextToken": "

If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.

", + "DescribeEventTypesRequest$nextToken": "

If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.

", + "DescribeEventTypesResponse$nextToken": "

If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.

", + "DescribeEventsRequest$nextToken": "

If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.

", + "DescribeEventsResponse$nextToken": "

If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.

" + } + }, + "region": { + "base": null, + "refs": { + "Event$region": "

The AWS region name of the event.

", + "regionList$member": null + } + }, + "regionList": { + "base": null, + "refs": { + "EventFilter$regions": "

A list of AWS regions.

" + } + }, + "service": { + "base": null, + "refs": { + "Event$service": "

The AWS service that is affected by the event. For example, EC2, RDS.

", + "EventType$service": "

The AWS service that is affected by the event. For example, EC2, RDS.

", + "serviceList$member": null + } + }, + "serviceList": { + "base": null, + "refs": { + "EventFilter$services": "

The AWS services associated with the event. For example, EC2, RDS.

", + "EventTypeFilter$services": "

The AWS services associated with the event. For example, EC2, RDS.

" + } + }, + "string": { + "base": null, + "refs": { + "EventDetailsErrorItem$errorName": "

The name of the error.

", + "EventDetailsErrorItem$errorMessage": "

A message that describes the error.

", + "InvalidPaginationToken$message": null, + "UnsupportedLocale$message": null + } + }, + "tagFilter": { + "base": null, + "refs": { + "EntityFilter$tags": "

A map of entity tags attached to the affected entity.

", + "EventFilter$tags": "

A map of entity tags attached to the affected entity.

" + } + }, + "tagKey": { + "base": null, + "refs": { + "tagSet$key": null + } + }, + "tagSet": { + "base": null, + "refs": { + "AffectedEntity$tags": "

A map of entity tags attached to the affected entity.

", + "tagFilter$member": null + } + }, + "tagValue": { + "base": null, + "refs": { + "tagSet$value": null + } + }, + "timestamp": { + "base": null, + "refs": { + "AffectedEntity$lastUpdatedTime": "

The most recent time that the entity was updated.

", + "DateTimeRange$from": "

The starting date and time of a time range.

", + "DateTimeRange$to": "

The ending date and time of a time range.

", + "Event$startTime": "

The date and time that the event began.

", + "Event$endTime": "

The date and time that the event ended.

", + "Event$lastUpdatedTime": "

The most recent date and time that the event was updated.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/health/2016-08-04/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/health/2016-08-04/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/health/2016-08-04/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/health/2016-08-04/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/health/2016-08-04/paginators-1.json new file mode 100644 index 000000000..47b031690 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/health/2016-08-04/paginators-1.json @@ -0,0 +1,31 @@ +{ + "pagination": { + "DescribeAffectedEntities": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "entities" + }, + "DescribeEntityAggregates": { + "result_key": "entityAggregates" + }, + "DescribeEventAggregates": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "eventAggregates" + }, + "DescribeEvents": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "events" + }, + "DescribeEventTypes": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "eventTypes" + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/api-2.json index a118fe568..b38c18994 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/api-2.json @@ -8,6 +8,7 @@ "serviceAbbreviation":"IAM", "serviceFullName":"AWS Identity and Access Management", "signatureVersion":"v4", + "uid":"iam-2010-05-08", "xmlNamespace":"https://iam.amazonaws.com/doc/2010-05-08/" }, "operations":{ @@ -286,6 +287,23 @@ {"shape":"ServiceFailureException"} ] }, + "CreateServiceSpecificCredential":{ + "name":"CreateServiceSpecificCredential", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateServiceSpecificCredentialRequest"}, + "output":{ + "shape":"CreateServiceSpecificCredentialResponse", + "resultWrapper":"CreateServiceSpecificCredentialResult" + }, + "errors":[ + {"shape":"LimitExceededException"}, + {"shape":"NoSuchEntityException"}, + {"shape":"ServiceNotSupportedException"} + ] + }, "CreateUser":{ "name":"CreateUser", "http":{ @@ -537,6 +555,17 @@ {"shape":"ServiceFailureException"} ] }, + "DeleteServiceSpecificCredential":{ + "name":"DeleteServiceSpecificCredential", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteServiceSpecificCredentialRequest"}, + "errors":[ + {"shape":"NoSuchEntityException"} + ] + }, "DeleteSigningCertificate":{ "name":"DeleteSigningCertificate", "http":{ @@ -1315,6 +1344,22 @@ {"shape":"ServiceFailureException"} ] }, + "ListServiceSpecificCredentials":{ + "name":"ListServiceSpecificCredentials", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListServiceSpecificCredentialsRequest"}, + "output":{ + "shape":"ListServiceSpecificCredentialsResponse", + "resultWrapper":"ListServiceSpecificCredentialsResult" + }, + "errors":[ + {"shape":"NoSuchEntityException"}, + {"shape":"ServiceNotSupportedException"} + ] + }, "ListSigningCertificates":{ "name":"ListSigningCertificates", "http":{ @@ -1455,6 +1500,21 @@ {"shape":"ServiceFailureException"} ] }, + "ResetServiceSpecificCredential":{ + "name":"ResetServiceSpecificCredential", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ResetServiceSpecificCredentialRequest"}, + "output":{ + "shape":"ResetServiceSpecificCredentialResponse", + "resultWrapper":"ResetServiceSpecificCredentialResult" + }, + "errors":[ + {"shape":"NoSuchEntityException"} + ] + }, "ResyncMFADevice":{ "name":"ResyncMFADevice", "http":{ @@ -1642,6 +1702,17 @@ {"shape":"ServiceFailureException"} ] }, + "UpdateServiceSpecificCredential":{ + "name":"UpdateServiceSpecificCredential", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateServiceSpecificCredentialRequest"}, + "errors":[ + {"shape":"NoSuchEntityException"} + ] + }, "UpdateSigningCertificate":{ "name":"UpdateSigningCertificate", "http":{ @@ -2070,6 +2141,23 @@ "SAMLProviderArn":{"shape":"arnType"} } }, + "CreateServiceSpecificCredentialRequest":{ + "type":"structure", + "required":[ + "UserName", + "ServiceName" + ], + "members":{ + "UserName":{"shape":"userNameType"}, + "ServiceName":{"shape":"serviceName"} + } + }, + "CreateServiceSpecificCredentialResponse":{ + "type":"structure", + "members":{ + "ServiceSpecificCredential":{"shape":"ServiceSpecificCredential"} + } + }, "CreateUserRequest":{ "type":"structure", "required":["UserName"], @@ -2273,6 +2361,14 @@ "ServerCertificateName":{"shape":"serverCertificateNameType"} } }, + "DeleteServiceSpecificCredentialRequest":{ + "type":"structure", + "required":["ServiceSpecificCredentialId"], + "members":{ + "UserName":{"shape":"userNameType"}, + "ServiceSpecificCredentialId":{"shape":"serviceSpecificCredentialId"} + } + }, "DeleteSigningCertificateRequest":{ "type":"structure", "required":["CertificateId"], @@ -2434,6 +2530,7 @@ "EvalDecision":{"shape":"PolicyEvaluationDecisionType"}, "MatchedStatements":{"shape":"StatementListType"}, "MissingContextValues":{"shape":"ContextKeyNamesResultListType"}, + "OrganizationsDecisionDetail":{"shape":"OrganizationsDecisionDetail"}, "EvalDecisionDetails":{"shape":"EvalDecisionDetailsType"}, "ResourceSpecificResults":{"shape":"ResourceSpecificResultListType"} } @@ -3238,6 +3335,19 @@ "Marker":{"shape":"markerType"} } }, + "ListServiceSpecificCredentialsRequest":{ + "type":"structure", + "members":{ + "UserName":{"shape":"userNameType"}, + "ServiceName":{"shape":"serviceName"} + } + }, + "ListServiceSpecificCredentialsResponse":{ + "type":"structure", + "members":{ + "ServiceSpecificCredentials":{"shape":"ServiceSpecificCredentialsListType"} + } + }, "ListSigningCertificatesRequest":{ "type":"structure", "members":{ @@ -3403,6 +3513,12 @@ "max":255, "min":1 }, + "OrganizationsDecisionDetail":{ + "type":"structure", + "members":{ + "AllowedByOrganizations":{"shape":"booleanType"} + } + }, "PasswordPolicy":{ "type":"structure", "members":{ @@ -3619,6 +3735,20 @@ "COMPLETE" ] }, + "ResetServiceSpecificCredentialRequest":{ + "type":"structure", + "required":["ServiceSpecificCredentialId"], + "members":{ + "UserName":{"shape":"userNameType"}, + "ServiceSpecificCredentialId":{"shape":"serviceSpecificCredentialId"} + } + }, + "ResetServiceSpecificCredentialResponse":{ + "type":"structure", + "members":{ + "ServiceSpecificCredential":{"shape":"ServiceSpecificCredential"} + } + }, "ResourceHandlingOptionType":{ "type":"string", "max":64, @@ -3798,6 +3928,62 @@ }, "exception":true }, + "ServiceNotSupportedException":{ + "type":"structure", + "members":{ + "message":{"shape":"serviceNotSupportedMessage"} + }, + "error":{ + "code":"NotSupportedService", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + "ServiceSpecificCredential":{ + "type":"structure", + "required":[ + "CreateDate", + "ServiceName", + "ServiceUserName", + "ServicePassword", + "ServiceSpecificCredentialId", + "UserName", + "Status" + ], + "members":{ + "CreateDate":{"shape":"dateType"}, + "ServiceName":{"shape":"serviceName"}, + "ServiceUserName":{"shape":"serviceUserName"}, + "ServicePassword":{"shape":"servicePassword"}, + "ServiceSpecificCredentialId":{"shape":"serviceSpecificCredentialId"}, + "UserName":{"shape":"userNameType"}, + "Status":{"shape":"statusType"} + } + }, + "ServiceSpecificCredentialMetadata":{ + "type":"structure", + "required":[ + "UserName", + "Status", + "ServiceUserName", + "CreateDate", + "ServiceSpecificCredentialId", + "ServiceName" + ], + "members":{ + "UserName":{"shape":"userNameType"}, + "Status":{"shape":"statusType"}, + "ServiceUserName":{"shape":"serviceUserName"}, + "CreateDate":{"shape":"dateType"}, + "ServiceSpecificCredentialId":{"shape":"serviceSpecificCredentialId"}, + "ServiceName":{"shape":"serviceName"} + } + }, + "ServiceSpecificCredentialsListType":{ + "type":"list", + "member":{"shape":"ServiceSpecificCredentialMetadata"} + }, "SetDefaultPolicyVersionRequest":{ "type":"structure", "required":[ @@ -4006,6 +4192,18 @@ "NewServerCertificateName":{"shape":"serverCertificateNameType"} } }, + "UpdateServiceSpecificCredentialRequest":{ + "type":"structure", + "required":[ + "ServiceSpecificCredentialId", + "Status" + ], + "members":{ + "UserName":{"shape":"userNameType"}, + "ServiceSpecificCredentialId":{"shape":"serviceSpecificCredentialId"}, + "Status":{"shape":"statusType"} + } + }, "UpdateSigningCertificateRequest":{ "type":"structure", "required":[ @@ -4433,6 +4631,24 @@ "pattern":"[\\w+=,.@-]+" }, "serviceFailureExceptionMessage":{"type":"string"}, + "serviceName":{"type":"string"}, + "serviceNotSupportedMessage":{"type":"string"}, + "servicePassword":{ + "type":"string", + "sensitive":true + }, + "serviceSpecificCredentialId":{ + "type":"string", + "max":128, + "min":20, + "pattern":"[\\w]+" + }, + "serviceUserName":{ + "type":"string", + "max":200, + "min":17, + "pattern":"[\\w+=,.@-]+" + }, "statusType":{ "type":"string", "enum":[ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/docs-2.json index ff42b50fb..cf1f47a41 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/docs-2.json @@ -19,6 +19,7 @@ "CreatePolicyVersion": "

Creates a new version of the specified managed policy. To update a managed policy, you create a new policy version. A managed policy can have up to five versions. If the policy has five versions, you must delete an existing version using DeletePolicyVersion before you create a new version.

Optionally, you can set the new version as the policy's default version. The default version is the version that is in effect for the IAM users, groups, and roles to which the policy is attached.

For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.

", "CreateRole": "

Creates a new role for your AWS account. For more information about roles, go to Working with Roles. For information about limitations on role names and the number of roles you can create, go to Limitations on IAM Entities in the IAM User Guide.

", "CreateSAMLProvider": "

Creates an IAM resource that describes an identity provider (IdP) that supports SAML 2.0.

The SAML provider resource that you create with this operation can be used as a principal in an IAM role's trust policy to enable federated users who sign-in using the SAML IdP to assume the role. You can create an IAM role that supports Web-based single sign-on (SSO) to the AWS Management Console or one that supports API access to AWS.

When you create the SAML provider resource, you upload an a SAML metadata document that you get from your IdP and that includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that the IdP sends. You must generate the metadata document using the identity management software that is used as your organization's IdP.

This operation requires Signature Version 4.

For more information, see Enabling SAML 2.0 Federated Users to Access the AWS Management Console and About SAML 2.0-based Federation in the IAM User Guide.

", + "CreateServiceSpecificCredential": "

Generates a set of credentials consisting of a user name and password that can be used to access the service specified in the request. These credentials are generated by IAM, and can be used only for the specified service.

You can have a maximum of two sets of service-specific credentials for each supported service per user.

The only supported service at this time is AWS CodeCommit.

You can reset the password to a new service-generated value by calling ResetServiceSpecificCredential.

For more information about service-specific credentials, see Using IAM with AWS CodeCommit: Git Credentials, SSH Keys, and AWS Access Keys in the IAM User Guide.

", "CreateUser": "

Creates a new IAM user for your AWS account.

For information about limitations on the number of IAM users you can create, see Limitations on IAM Entities in the IAM User Guide.

", "CreateVirtualMFADevice": "

Creates a new virtual MFA device for the AWS account. After creating the virtual MFA, use EnableMFADevice to attach the MFA device to an IAM user. For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the IAM User Guide.

For information about limits on the number of MFA devices you can create, see Limitations on Entities in the IAM User Guide.

The seed information contained in the QR code and the Base32 string should be treated like any other secret access information, such as your AWS access keys or your passwords. After you provision your virtual device, you should ensure that the information is destroyed following secure procedures.

", "DeactivateMFADevice": "

Deactivates the specified MFA device and removes it from association with the user name for which it was originally enabled.

For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the IAM User Guide.

", @@ -37,6 +38,7 @@ "DeleteSAMLProvider": "

Deletes a SAML provider resource in IAM.

Deleting the provider resource from IAM does not update any roles that reference the SAML provider resource's ARN as a principal in their trust policies. Any attempt to assume a role that references a non-existent provider resource ARN fails.

This operation requires Signature Version 4.

", "DeleteSSHPublicKey": "

Deletes the specified SSH public key.

The SSH public key deleted by this action is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide.

", "DeleteServerCertificate": "

Deletes the specified server certificate.

For more information about working with server certificates, including a list of AWS services that can use the server certificates that you manage with IAM, go to Working with Server Certificates in the IAM User Guide.

If you are using a server certificate with Elastic Load Balancing, deleting the certificate could have implications for your application. If Elastic Load Balancing doesn't detect the deletion of bound certificates, it may continue to use the certificates. This could cause Elastic Load Balancing to stop accepting traffic. We recommend that you remove the reference to the certificate from Elastic Load Balancing before using this command to delete the certificate. For more information, go to DeleteLoadBalancerListeners in the Elastic Load Balancing API Reference.

", + "DeleteServiceSpecificCredential": "

Deletes the specified service-specific credential.

", "DeleteSigningCertificate": "

Deletes a signing certificate associated with the specified IAM user.

If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated IAM users.

", "DeleteUser": "

Deletes the specified IAM user. The user must not belong to any groups or have any access keys, signing certificates, or attached policies.

", "DeleteUserPolicy": "

Deletes the specified inline policy that is embedded in the specified IAM user.

A user can also have managed policies attached to it. To detach a managed policy from a user, use DetachUserPolicy. For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide.

", @@ -87,6 +89,7 @@ "ListSAMLProviders": "

Lists the SAML provider resource objects defined in IAM in the account.

This operation requires Signature Version 4.

", "ListSSHPublicKeys": "

Returns information about the SSH public keys associated with the specified IAM user. If there are none, the action returns an empty list.

The SSH public keys returned by this action are used only for authenticating the IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide.

Although each user is limited to a small number of keys, you can still paginate the results using the MaxItems and Marker parameters.

", "ListServerCertificates": "

Lists the server certificates stored in IAM that have the specified path prefix. If none exist, the action returns an empty list.

You can paginate the results using the MaxItems and Marker parameters.

For more information about working with server certificates, including a list of AWS services that can use the server certificates that you manage with IAM, go to Working with Server Certificates in the IAM User Guide.

", + "ListServiceSpecificCredentials": "

Returns information about the service-specific credentials associated with the specified IAM user. If there are none, the action returns an empty list. The service-specific credentials returned by this action are used only for authenticating the IAM user to a specific service. For more information about using service-specific credentials to authenticate to an AWS service, see Set Up service-specific credentials in the AWS CodeCommit User Guide.

", "ListSigningCertificates": "

Returns information about the signing certificates associated with the specified IAM user. If there are none, the action returns an empty list.

Although each user is limited to a small number of signing certificates, you can still paginate the results using the MaxItems and Marker parameters.

If the UserName field is not specified, the user name is determined implicitly based on the AWS access key ID used to sign the request for this API. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

", "ListUserPolicies": "

Lists the names of the inline policies embedded in the specified IAM user.

An IAM user can also have managed policies attached to it. To list the managed policies that are attached to a user, use ListAttachedUserPolicies. For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

You can paginate the results using the MaxItems and Marker parameters. If there are no inline policies embedded with the specified user, the action returns an empty list.

", "ListUsers": "

Lists the IAM users that have the specified path prefix. If no path prefix is specified, the action returns all users in the AWS account. If there are none, the action returns an empty list.

You can paginate the results using the MaxItems and Marker parameters.

", @@ -97,6 +100,7 @@ "RemoveClientIDFromOpenIDConnectProvider": "

Removes the specified client ID (also known as audience) from the list of client IDs registered for the specified IAM OpenID Connect (OIDC) provider resource object.

This action is idempotent; it does not fail or return an error if you try to remove a client ID that does not exist.

", "RemoveRoleFromInstanceProfile": "

Removes the specified IAM role from the specified EC2 instance profile.

Make sure you do not have any Amazon EC2 instances running with the role you are about to remove from the instance profile. Removing a role from an instance profile that is associated with a running instance break any applications running on the instance.

For more information about IAM roles, go to Working with Roles. For more information about instance profiles, go to About Instance Profiles.

", "RemoveUserFromGroup": "

Removes the specified user from the specified group.

", + "ResetServiceSpecificCredential": "

Resets the password for a service-specific credential. The new password is AWS generated and cryptographically strong. It cannot be configured by the user. Resetting the password immediately invalidates the previous password associated with this user.

", "ResyncMFADevice": "

Synchronizes the specified MFA device with its IAM resource object on the AWS servers.

For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the IAM User Guide.

", "SetDefaultPolicyVersion": "

Sets the specified version of the specified policy as the policy's default (operative) version.

This action affects all users, groups, and roles that the policy is attached to. To list the users, groups, and roles that the policy is attached to, use the ListEntitiesForPolicy API.

For information about managed policies, see Managed Policies and Inline Policies in the IAM User Guide.

", "SimulateCustomPolicy": "

Simulate how a set of IAM policies and optionally a resource-based policy works with a list of API actions and AWS resources to determine the policies' effective permissions. The policies are provided as strings.

The simulation does not perform the API actions; it only checks the authorization to determine if the simulated policies allow or deny the actions.

If you want to simulate existing policies attached to an IAM user, group, or role, use SimulatePrincipalPolicy instead.

Context keys are variables maintained by AWS and its services that provide details about the context of an API query request. You can use the Condition element of an IAM policy to evaluate context keys. To get the list of context keys that the policies require for correct simulation, use GetContextKeysForCustomPolicy.

If the output is long, you can use MaxItems and Marker parameters to paginate the results.

", @@ -110,10 +114,11 @@ "UpdateSAMLProvider": "

Updates the metadata document for an existing SAML provider resource object.

This operation requires Signature Version 4.

", "UpdateSSHPublicKey": "

Sets the status of an IAM user's SSH public key to active or inactive. SSH public keys that are inactive cannot be used for authentication. This action can be used to disable a user's SSH public key as part of a key rotation work flow.

The SSH public key affected by this action is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide.

", "UpdateServerCertificate": "

Updates the name and/or the path of the specified server certificate stored in IAM.

For more information about working with server certificates, including a list of AWS services that can use the server certificates that you manage with IAM, go to Working with Server Certificates in the IAM User Guide.

You should understand the implications of changing a server certificate's path or name. For more information, see Renaming a Server Certificate in the IAM User Guide.

To change a server certificate name the requester must have appropriate permissions on both the source object and the target object. For example, to change the name from \"ProductionCert\" to \"ProdCert\", the entity making the request must have permission on \"ProductionCert\" and \"ProdCert\", or must have permission on all (*). For more information about permissions, see Access Management in the IAM User Guide.

", + "UpdateServiceSpecificCredential": "

Sets the status of a service-specific credential to Active or Inactive. Service-specific credentials that are inactive cannot be used for authentication to the service. This action can be used to disable a user’s service-specific credential as part of a credential rotation work flow.

", "UpdateSigningCertificate": "

Changes the status of the specified user signing certificate from active to disabled, or vice versa. This action can be used to disable an IAM user's signing certificate as part of a certificate rotation work flow.

If the UserName field is not specified, the UserName is determined implicitly based on the AWS access key ID used to sign the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

", "UpdateUser": "

Updates the name and/or the path of the specified IAM user.

You should understand the implications of changing an IAM user's path or name. For more information, see Renaming an IAM User and Renaming an IAM Group in the IAM User Guide.

To change a user name the requester must have appropriate permissions on both the source object and the target object. For example, to change Bob to Robert, the entity making the request must have permission on Bob and Robert, or must have permission on all (*). For more information about permissions, see Permissions and Policies.

", "UploadSSHPublicKey": "

Uploads an SSH public key and associates it with the specified IAM user.

The SSH public key uploaded by this action can be used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide.

", - "UploadServerCertificate": "

Uploads a server certificate entity for the AWS account. The server certificate entity includes a public key certificate, a private key, and an optional certificate chain, which should all be PEM-encoded.

For more information about working with server certificates, including a list of AWS services that can use the server certificates that you manage with IAM, go to Working with Server Certificates in the IAM User Guide.

For information about the number of server certificates you can upload, see Limitations on IAM Entities and Objects in the IAM User Guide.

Because the body of the public key certificate, private key, and the certificate chain can be large, you should use POST rather than GET when calling UploadServerCertificate. For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWS General Reference. For general information about using the Query API with IAM, go to Calling the API by Making HTTP Query Requests in the IAM User Guide.

", + "UploadServerCertificate": "

Uploads a server certificate entity for the AWS account. The server certificate entity includes a public key certificate, a private key, and an optional certificate chain, which should all be PEM-encoded.

We recommend that you use AWS Certificate Manager to provision, manage, and deploy your server certificates. With ACM you can request a certificate, deploy it to AWS resources, and let ACM handle certificate renewals for you. Certificates provided by ACM are free. For more information about using ACM, see the AWS Certificate Manager User Guide.

For more information about working with server certificates, including a list of AWS services that can use the server certificates that you manage with IAM, go to Working with Server Certificates in the IAM User Guide.

For information about the number of server certificates you can upload, see Limitations on IAM Entities and Objects in the IAM User Guide.

Because the body of the public key certificate, private key, and the certificate chain can be large, you should use POST rather than GET when calling UploadServerCertificate. For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWS General Reference. For general information about using the Query API with IAM, go to Calling the API by Making HTTP Query Requests in the IAM User Guide.

", "UploadSigningCertificate": "

Uploads an X.509 signing certificate and associates it with the specified IAM user. Some AWS services use X.509 signing certificates to validate requests that are signed with a corresponding private key. When you upload the certificate, its default status is Active.

If the UserName field is not specified, the IAM user name is determined implicitly based on the AWS access key ID used to sign the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

Because the body of a X.509 certificate can be large, you should use POST rather than GET when calling UploadSigningCertificate. For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWS General Reference. For general information about using the Query API with IAM, go to Making Query Requests in the IAM User Guide.

" }, "shapes": { @@ -188,7 +193,7 @@ "BootstrapDatum": { "base": null, "refs": { - "VirtualMFADevice$Base32StringSeed": "

The Base32 seed defined as specified in RFC3548. The Base32StringSeed is Base64-encoded.

", + "VirtualMFADevice$Base32StringSeed": "

The Base32 seed defined as specified in RFC3548. The Base32StringSeed is Base64-encoded.

", "VirtualMFADevice$QRCodePNG": "

A QR code PNG image that encodes otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String where $virtualMFADeviceName is one of the create call arguments, AccountName is the user name if set (otherwise, the account ID otherwise), and Base32String is the seed in Base32 format. The Base32String value is Base64-encoded.

" } }, @@ -344,6 +349,16 @@ "refs": { } }, + "CreateServiceSpecificCredentialRequest": { + "base": null, + "refs": { + } + }, + "CreateServiceSpecificCredentialResponse": { + "base": null, + "refs": { + } + }, "CreateUserRequest": { "base": null, "refs": { @@ -459,6 +474,11 @@ "refs": { } }, + "DeleteServiceSpecificCredentialRequest": { + "base": null, + "refs": { + } + }, "DeleteSigningCertificateRequest": { "base": null, "refs": { @@ -1009,6 +1029,16 @@ "refs": { } }, + "ListServiceSpecificCredentialsRequest": { + "base": null, + "refs": { + } + }, + "ListServiceSpecificCredentialsResponse": { + "base": null, + "refs": { + } + }, "ListSigningCertificatesRequest": { "base": null, "refs": { @@ -1108,10 +1138,16 @@ "GetOpenIDConnectProviderResponse$Url": "

The URL that the IAM OIDC provider resource object is associated with. For more information, see CreateOpenIDConnectProvider.

" } }, + "OrganizationsDecisionDetail": { + "base": "

Contains information about AWS Organizations's affect on a policy simulation.

", + "refs": { + "EvaluationResult$OrganizationsDecisionDetail": "

A structure that details how AWS Organizations and its service control policies affect the results of the simulation. Only applies if the simulated user's account is part of an organization.

" + } + }, "PasswordPolicy": { "base": "

Contains information about the account password policy.

This data type is used as a response element in the GetAccountPasswordPolicy action.

", "refs": { - "GetAccountPasswordPolicyResponse$PasswordPolicy": null + "GetAccountPasswordPolicyResponse$PasswordPolicy": "

Contains information about the account password policy.

" } }, "PasswordPolicyViolationException": { @@ -1263,6 +1299,16 @@ "GenerateCredentialReportResponse$State": "

Information about the state of the credential report.

" } }, + "ResetServiceSpecificCredentialRequest": { + "base": null, + "refs": { + } + }, + "ResetServiceSpecificCredentialResponse": { + "base": null, + "refs": { + } + }, "ResourceHandlingOptionType": { "base": null, "refs": { @@ -1343,7 +1389,7 @@ "SAMLProviderNameType": { "base": null, "refs": { - "CreateSAMLProviderRequest$Name": "

The name of the provider to create.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

" + "CreateSAMLProviderRequest$Name": "

The name of the provider to create.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

" } }, "SSHPublicKey": { @@ -1384,6 +1430,30 @@ "refs": { } }, + "ServiceNotSupportedException": { + "base": "

The specified service does not support service-specific credentials.

", + "refs": { + } + }, + "ServiceSpecificCredential": { + "base": "

Contains the details of a service specific credential.

", + "refs": { + "CreateServiceSpecificCredentialResponse$ServiceSpecificCredential": "

A structure that contains information about the newly created service-specific credential.

This is the only time that the password for this credential set is available. It cannot be recovered later. Instead, you will have to reset the password with ResetServiceSpecificCredential.

", + "ResetServiceSpecificCredentialResponse$ServiceSpecificCredential": "

A structure with details about the updated service-specific credential, including the new password.

This is the only time that you can access the password. You cannot recover the password later, but you can reset it again.

" + } + }, + "ServiceSpecificCredentialMetadata": { + "base": "

Contains additional details about a service-specific credential.

", + "refs": { + "ServiceSpecificCredentialsListType$member": null + } + }, + "ServiceSpecificCredentialsListType": { + "base": null, + "refs": { + "ListServiceSpecificCredentialsResponse$ServiceSpecificCredentials": "

A list of structures that each contain details about a service-specific credential.

" + } + }, "SetDefaultPolicyVersionRequest": { "base": null, "refs": { @@ -1414,10 +1484,10 @@ "SimulationPolicyListType": { "base": null, "refs": { - "GetContextKeysForCustomPolicyRequest$PolicyInputList": "

A list of policies for which you want the list of context keys referenced in those policies. Each document is specified as a string containing the complete, valid JSON text of an IAM policy.

The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", - "GetContextKeysForPrincipalPolicyRequest$PolicyInputList": "

An optional list of additional policies for which you want the list of context keys that are referenced.

The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", - "SimulateCustomPolicyRequest$PolicyInputList": "

A list of policy documents to include in the simulation. Each document is specified as a string containing the complete, valid JSON text of an IAM policy. Do not include any resource-based policies in this parameter. Any resource-based policy must be submitted with the ResourcePolicy parameter. The policies cannot be \"scope-down\" policies, such as you could include in a call to GetFederationToken or one of the AssumeRole APIs to restrict what a user can do while using the temporary credentials.

The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", - "SimulatePrincipalPolicyRequest$PolicyInputList": "

An optional list of additional policy documents to include in the simulation. Each document is specified as a string containing the complete, valid JSON text of an IAM policy.

The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

" + "GetContextKeysForCustomPolicyRequest$PolicyInputList": "

A list of policies for which you want the list of context keys referenced in those policies. Each document is specified as a string containing the complete, valid JSON text of an IAM policy.

The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", + "GetContextKeysForPrincipalPolicyRequest$PolicyInputList": "

An optional list of additional policies for which you want the list of context keys that are referenced.

The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", + "SimulateCustomPolicyRequest$PolicyInputList": "

A list of policy documents to include in the simulation. Each document is specified as a string containing the complete, valid JSON text of an IAM policy. Do not include any resource-based policies in this parameter. Any resource-based policy must be submitted with the ResourcePolicy parameter. The policies cannot be \"scope-down\" policies, such as you could include in a call to GetFederationToken or one of the AssumeRole APIs to restrict what a user can do while using the temporary credentials.

The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", + "SimulatePrincipalPolicyRequest$PolicyInputList": "

An optional list of additional policy documents to include in the simulation. Each document is specified as a string containing the complete, valid JSON text of an IAM policy.

The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

" } }, "Statement": { @@ -1488,6 +1558,11 @@ "refs": { } }, + "UpdateServiceSpecificCredentialRequest": { + "base": null, + "refs": { + } + }, "UpdateSigningCertificateRequest": { "base": null, "refs": { @@ -1533,7 +1608,7 @@ "refs": { "CreateUserResponse$User": "

A structure with details about the new IAM user.

", "GetUserResponse$User": "

A structure containing details about the IAM user.

", - "VirtualMFADevice$User": null, + "VirtualMFADevice$User": "

The user to whom the MFA device is assigned.

", "userListType$member": null } }, @@ -1555,9 +1630,9 @@ "refs": { "AccessKey$AccessKeyId": "

The ID for this access key.

", "AccessKeyMetadata$AccessKeyId": "

The ID for this access key.

", - "DeleteAccessKeyRequest$AccessKeyId": "

The access key ID for the access key ID and secret access key you want to delete.

The regex pattern for this parameter is a string of characters that can consist of any upper or lowercased letter or digit.

", - "GetAccessKeyLastUsedRequest$AccessKeyId": "

The identifier of an access key.

The regex pattern for this parameter is a string of characters that can consist of any upper or lowercased letter or digit.

", - "UpdateAccessKeyRequest$AccessKeyId": "

The access key ID of the secret access key you want to update.

The regex pattern for this parameter is a string of characters that can consist of any upper or lowercased letter or digit.

" + "DeleteAccessKeyRequest$AccessKeyId": "

The access key ID for the access key ID and secret access key you want to delete.

This parameter allows (per its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

", + "GetAccessKeyLastUsedRequest$AccessKeyId": "

The identifier of an access key.

This parameter allows (per its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

", + "UpdateAccessKeyRequest$AccessKeyId": "

The access key ID of the secret access key you want to update.

This parameter allows (per its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

" } }, "accessKeyMetadataListType": { @@ -1581,8 +1656,8 @@ "accountAliasType": { "base": null, "refs": { - "CreateAccountAliasRequest$AccountAlias": "

The account alias to create.

The regex pattern for this parameter is a string of characters consisting of lowercase letters, digits, and dashes. You cannot start or finish with a dash, nor can you have two dashes in a row.

", - "DeleteAccountAliasRequest$AccountAlias": "

The name of the account alias to delete.

The regex pattern for this parameter is a string of characters consisting of lowercase letters, digits, and dashes. You cannot start or finish with a dash, nor can you have two dashes in a row.

", + "CreateAccountAliasRequest$AccountAlias": "

The account alias to create.

This parameter allows (per its regex pattern) a string of characters consisting of lowercase letters, digits, and dashes. You cannot start or finish with a dash, nor can you have two dashes in a row.

", + "DeleteAccountAliasRequest$AccountAlias": "

The name of the account alias to delete.

This parameter allows (per its regex pattern) a string of characters consisting of lowercase letters, digits, and dashes. You cannot start or finish with a dash, nor can you have two dashes in a row.

", "accountAliasListType$member": null } }, @@ -1704,6 +1779,7 @@ "ListVirtualMFADevicesResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

", "LoginProfile$PasswordResetRequired": "

Specifies whether the user is required to set a new password on next sign-in.

", "ManagedPolicyDetail$IsAttachable": "

Specifies whether the policy can be attached to an IAM user, group, or role.

", + "OrganizationsDecisionDetail$AllowedByOrganizations": "

Specifies whether the simulated action is allowed by the AWS Organizations service control policies that impact the simulated user's account.

", "PasswordPolicy$RequireSymbols": "

Specifies whether to require symbols for IAM user passwords.

", "PasswordPolicy$RequireNumbers": "

Specifies whether to require numbers for IAM user passwords.

", "PasswordPolicy$RequireUppercaseCharacters": "

Specifies whether to require uppercase characters for IAM user passwords.

", @@ -1725,15 +1801,15 @@ "refs": { "ServerCertificate$CertificateBody": "

The contents of the public key certificate.

", "SigningCertificate$CertificateBody": "

The contents of the signing certificate.

", - "UploadServerCertificateRequest$CertificateBody": "

The contents of the public key certificate in PEM-encoded format.

The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", - "UploadSigningCertificateRequest$CertificateBody": "

The contents of the signing certificate.

The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

" + "UploadServerCertificateRequest$CertificateBody": "

The contents of the public key certificate in PEM-encoded format.

The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", + "UploadSigningCertificateRequest$CertificateBody": "

The contents of the signing certificate.

The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

" } }, "certificateChainType": { "base": null, "refs": { "ServerCertificate$CertificateChain": "

The contents of the public key certificate chain.

", - "UploadServerCertificateRequest$CertificateChain": "

The contents of the certificate chain. This is typically a concatenation of the PEM-encoded public key certificates of the chain.

The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

" + "UploadServerCertificateRequest$CertificateChain": "

The contents of the certificate chain. This is typically a concatenation of the PEM-encoded public key certificates of the chain.

The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

" } }, "certificateIdType": { @@ -1741,7 +1817,7 @@ "refs": { "DeleteSigningCertificateRequest$CertificateId": "

The ID of the signing certificate to delete.

The format of this parameter, as described by its regex pattern, is a string of characters that can be upper- or lower-cased letters or digits.

", "SigningCertificate$CertificateId": "

The ID for the signing certificate.

", - "UpdateSigningCertificateRequest$CertificateId": "

The ID of the signing certificate you want to update.

The regex pattern for this parameter is a string of characters that can consist of any upper or lowercased letter or digit.

" + "UpdateSigningCertificateRequest$CertificateId": "

The ID of the signing certificate you want to update.

This parameter allows (per its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

" } }, "certificateListType": { @@ -1811,6 +1887,8 @@ "SSHPublicKeyMetadata$UploadDate": "

The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.

", "ServerCertificateMetadata$UploadDate": "

The date when the server certificate was uploaded.

", "ServerCertificateMetadata$Expiration": "

The date on which the certificate is set to expire.

", + "ServiceSpecificCredential$CreateDate": "

The date and time, in ISO 8601 date-time format, when the service-specific credential were created.

", + "ServiceSpecificCredentialMetadata$CreateDate": "

The date and time, in ISO 8601 date-time format, when the service-specific credential were created.

", "SigningCertificate$UploadDate": "

The date when the signing certificate was uploaded.

", "User$CreateDate": "

The date and time, in ISO 8601 date-time format, when the user was created.

", "User$PasswordLastUsed": "

The date and time, in ISO 8601 date-time format, when the user's password was last used to sign in to an AWS website. For a list of AWS websites that capture a user's last sign-in time, see the Credential Reports topic in the Using IAM guide. If a password is used more than once in a five-minute span, only the first use is returned in this field. This field is null (not present) when:

  • The user does not have a password

  • The password exists but has never been used (at least not since IAM started tracking this information on October 20th, 2014

  • there is no sign-in data associated with the user

This value is returned only in the GetUser and ListUsers actions.

", @@ -1863,30 +1941,30 @@ "existingUserNameType": { "base": null, "refs": { - "AddUserToGroupRequest$UserName": "

The name of the user to add.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "CreateAccessKeyRequest$UserName": "

The name of the IAM user that the new key will belong to.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "DeactivateMFADeviceRequest$UserName": "

The name of the user whose MFA device you want to deactivate.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "DeleteAccessKeyRequest$UserName": "

The name of the user whose access key pair you want to delete.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "DeleteSigningCertificateRequest$UserName": "

The name of the user the signing certificate belongs to.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "DeleteUserPolicyRequest$UserName": "

The name (friendly name, not ARN) identifying the user that the policy is embedded in.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "DeleteUserRequest$UserName": "

The name of the user to delete.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "EnableMFADeviceRequest$UserName": "

The name of the IAM user for whom you want to enable the MFA device.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "AddUserToGroupRequest$UserName": "

The name of the user to add.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "CreateAccessKeyRequest$UserName": "

The name of the IAM user that the new key will belong to.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "DeactivateMFADeviceRequest$UserName": "

The name of the user whose MFA device you want to deactivate.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "DeleteAccessKeyRequest$UserName": "

The name of the user whose access key pair you want to delete.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "DeleteSigningCertificateRequest$UserName": "

The name of the user the signing certificate belongs to.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "DeleteUserPolicyRequest$UserName": "

The name (friendly name, not ARN) identifying the user that the policy is embedded in.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "DeleteUserRequest$UserName": "

The name of the user to delete.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "EnableMFADeviceRequest$UserName": "

The name of the IAM user for whom you want to enable the MFA device.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", "GetAccessKeyLastUsedResponse$UserName": "

The name of the AWS IAM user that owns this access key.

", - "GetUserPolicyRequest$UserName": "

The name of the user who the policy is associated with.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "GetUserPolicyRequest$UserName": "

The name of the user who the policy is associated with.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", "GetUserPolicyResponse$UserName": "

The user the policy is associated with.

", - "GetUserRequest$UserName": "

The name of the user to get information about.

This parameter is optional. If it is not included, it defaults to the user making the request. The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "ListAccessKeysRequest$UserName": "

The name of the user.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "ListGroupsForUserRequest$UserName": "

The name of the user to list groups for.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "ListMFADevicesRequest$UserName": "

The name of the user whose MFA devices you want to list.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "ListSigningCertificatesRequest$UserName": "

The name of the IAM user whose signing certificates you want to examine.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "ListUserPoliciesRequest$UserName": "

The name of the user to list policies for.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "PutUserPolicyRequest$UserName": "

The name of the user to associate the policy with.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "RemoveUserFromGroupRequest$UserName": "

The name of the user to remove.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "ResyncMFADeviceRequest$UserName": "

The name of the user whose MFA device you want to resynchronize.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "UpdateAccessKeyRequest$UserName": "

The name of the user whose key you want to update.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "UpdateSigningCertificateRequest$UserName": "

The name of the IAM user the signing certificate belongs to.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "UpdateUserRequest$UserName": "

Name of the user to update. If you're changing the name of the user, this is the original user name.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "UploadSigningCertificateRequest$UserName": "

The name of the user the signing certificate is for.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

" + "GetUserRequest$UserName": "

The name of the user to get information about.

This parameter is optional. If it is not included, it defaults to the user making the request. This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "ListAccessKeysRequest$UserName": "

The name of the user.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "ListGroupsForUserRequest$UserName": "

The name of the user to list groups for.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "ListMFADevicesRequest$UserName": "

The name of the user whose MFA devices you want to list.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "ListSigningCertificatesRequest$UserName": "

The name of the IAM user whose signing certificates you want to examine.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "ListUserPoliciesRequest$UserName": "

The name of the user to list policies for.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "PutUserPolicyRequest$UserName": "

The name of the user to associate the policy with.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "RemoveUserFromGroupRequest$UserName": "

The name of the user to remove.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "ResyncMFADeviceRequest$UserName": "

The name of the user whose MFA device you want to resynchronize.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "UpdateAccessKeyRequest$UserName": "

The name of the user whose key you want to update.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "UpdateSigningCertificateRequest$UserName": "

The name of the IAM user the signing certificate belongs to.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "UpdateUserRequest$UserName": "

Name of the user to update. If you're changing the name of the user, this is the original user name.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "UploadSigningCertificateRequest$UserName": "

The name of the user the signing certificate is for.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

" } }, "groupDetailListType": { @@ -1911,24 +1989,24 @@ "groupNameType": { "base": null, "refs": { - "AddUserToGroupRequest$GroupName": "

The name of the group to update.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "AttachGroupPolicyRequest$GroupName": "

The name (friendly name, not ARN) of the group to attach the policy to.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "CreateGroupRequest$GroupName": "

The name of the group to create. Do not include the path in this value.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-. The group name must be unique within the account. Group names are not distinguished by case. For example, you cannot create groups named both \"ADMINS\" and \"admins\".

", - "DeleteGroupPolicyRequest$GroupName": "

The name (friendly name, not ARN) identifying the group that the policy is embedded in.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "DeleteGroupRequest$GroupName": "

The name of the IAM group to delete.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "DetachGroupPolicyRequest$GroupName": "

The name (friendly name, not ARN) of the IAM group to detach the policy from.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "GetGroupPolicyRequest$GroupName": "

The name of the group the policy is associated with.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "AddUserToGroupRequest$GroupName": "

The name of the group to update.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "AttachGroupPolicyRequest$GroupName": "

The name (friendly name, not ARN) of the group to attach the policy to.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "CreateGroupRequest$GroupName": "

The name of the group to create. Do not include the path in this value.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-. The group name must be unique within the account. Group names are not distinguished by case. For example, you cannot create groups named both \"ADMINS\" and \"admins\".

", + "DeleteGroupPolicyRequest$GroupName": "

The name (friendly name, not ARN) identifying the group that the policy is embedded in.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "DeleteGroupRequest$GroupName": "

The name of the IAM group to delete.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "DetachGroupPolicyRequest$GroupName": "

The name (friendly name, not ARN) of the IAM group to detach the policy from.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "GetGroupPolicyRequest$GroupName": "

The name of the group the policy is associated with.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", "GetGroupPolicyResponse$GroupName": "

The group the policy is associated with.

", - "GetGroupRequest$GroupName": "

The name of the group.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "GetGroupRequest$GroupName": "

The name of the group.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", "Group$GroupName": "

The friendly name that identifies the group.

", "GroupDetail$GroupName": "

The friendly name that identifies the group.

", - "ListAttachedGroupPoliciesRequest$GroupName": "

The name (friendly name, not ARN) of the group to list attached policies for.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "ListGroupPoliciesRequest$GroupName": "

The name of the group to list policies for.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "ListAttachedGroupPoliciesRequest$GroupName": "

The name (friendly name, not ARN) of the group to list attached policies for.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "ListGroupPoliciesRequest$GroupName": "

The name of the group to list policies for.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", "PolicyGroup$GroupName": "

The name (friendly name, not ARN) identifying the group.

", - "PutGroupPolicyRequest$GroupName": "

The name of the group to associate the policy with.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "RemoveUserFromGroupRequest$GroupName": "

The name of the group to update.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "UpdateGroupRequest$GroupName": "

Name of the IAM group to update. If you're changing the name of the group, this is the original name.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "UpdateGroupRequest$NewGroupName": "

New name for the IAM group. Only include this if changing the group's name.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "PutGroupPolicyRequest$GroupName": "

The name of the group to associate the policy with.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "RemoveUserFromGroupRequest$GroupName": "

The name of the group to update.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "UpdateGroupRequest$GroupName": "

Name of the IAM group to update. If you're changing the name of the group, this is the original name.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "UpdateGroupRequest$NewGroupName": "

New name for the IAM group. Only include this if changing the group's name.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", "groupNameListType$member": null } }, @@ -1955,18 +2033,18 @@ "refs": { "ListInstanceProfilesForRoleResponse$InstanceProfiles": "

A list of instance profiles.

", "ListInstanceProfilesResponse$InstanceProfiles": "

A list of instance profiles.

", - "RoleDetail$InstanceProfileList": null + "RoleDetail$InstanceProfileList": "

A list of instance profiles that contain this role.

" } }, "instanceProfileNameType": { "base": null, "refs": { - "AddRoleToInstanceProfileRequest$InstanceProfileName": "

The name of the instance profile to update.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "CreateInstanceProfileRequest$InstanceProfileName": "

The name of the instance profile to create.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "DeleteInstanceProfileRequest$InstanceProfileName": "

The name of the instance profile to delete.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "GetInstanceProfileRequest$InstanceProfileName": "

The name of the instance profile to get information about.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "AddRoleToInstanceProfileRequest$InstanceProfileName": "

The name of the instance profile to update.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "CreateInstanceProfileRequest$InstanceProfileName": "

The name of the instance profile to create.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "DeleteInstanceProfileRequest$InstanceProfileName": "

The name of the instance profile to delete.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "GetInstanceProfileRequest$InstanceProfileName": "

The name of the instance profile to get information about.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", "InstanceProfile$InstanceProfileName": "

The name identifying the instance profile.

", - "RemoveRoleFromInstanceProfileRequest$InstanceProfileName": "

The name of the instance profile to update.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

" + "RemoveRoleFromInstanceProfileRequest$InstanceProfileName": "

The name of the instance profile to update.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

" } }, "invalidAuthenticationCodeMessage": { @@ -2082,32 +2160,32 @@ "maxItemsType": { "base": null, "refs": { - "GetAccountAuthorizationDetailsRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "GetGroupRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListAccessKeysRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListAccountAliasesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListAttachedGroupPoliciesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListAttachedRolePoliciesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListAttachedUserPoliciesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListEntitiesForPolicyRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListGroupPoliciesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListGroupsForUserRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListGroupsRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListInstanceProfilesForRoleRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListInstanceProfilesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListMFADevicesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListPoliciesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListPolicyVersionsRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListRolePoliciesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListRolesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListSSHPublicKeysRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListServerCertificatesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListSigningCertificatesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListUserPoliciesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListUsersRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "ListVirtualMFADevicesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "SimulateCustomPolicyRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", - "SimulatePrincipalPolicyRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

" + "GetAccountAuthorizationDetailsRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "GetGroupRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListAccessKeysRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListAccountAliasesRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListAttachedGroupPoliciesRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListAttachedRolePoliciesRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListAttachedUserPoliciesRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListEntitiesForPolicyRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListGroupPoliciesRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListGroupsForUserRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListGroupsRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListInstanceProfilesForRoleRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListInstanceProfilesRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListMFADevicesRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListPoliciesRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListPolicyVersionsRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListRolePoliciesRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListRolesRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListSSHPublicKeysRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListServerCertificatesRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListSigningCertificatesRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListUserPoliciesRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListUsersRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "ListVirtualMFADevicesRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "SimulateCustomPolicyRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

", + "SimulatePrincipalPolicyRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

" } }, "maxPasswordAgeType": { @@ -2153,40 +2231,40 @@ "base": null, "refs": { "ChangePasswordRequest$OldPassword": "

The IAM user's current password.

", - "ChangePasswordRequest$NewPassword": "

The new password. The new password must conform to the AWS account's password policy, if one exists.

The regex pattern for this parameter is a string of characters consisting of almost any printable ASCII character from the space (\\u0020) through the end of the ASCII character range (\\u00FF). You can also include the tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D) characters. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.

", - "CreateLoginProfileRequest$Password": "

The new password for the user.

The regex pattern for this parameter is a string of characters consisting of almost any printable ASCII character from the space (\\u0020) through the end of the ASCII character range (\\u00FF). You can also include the tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D) characters. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.

", - "UpdateLoginProfileRequest$Password": "

The new password for the specified IAM user.

The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D). However, the format can be further restricted by the account administrator by setting a password policy on the AWS account. For more information, see UpdateAccountPasswordPolicy.

" + "ChangePasswordRequest$NewPassword": "

The new password. The new password must conform to the AWS account's password policy, if one exists.

The regex pattern used to validate this parameter is a string of characters consisting of almost any printable ASCII character from the space (\\u0020) through the end of the ASCII character range (\\u00FF). You can also include the tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D) characters. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.

", + "CreateLoginProfileRequest$Password": "

The new password for the user.

The regex pattern used to validate this parameter is a string of characters consisting of almost any printable ASCII character from the space (\\u0020) through the end of the ASCII character range (\\u00FF). You can also include the tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D) characters. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.

", + "UpdateLoginProfileRequest$Password": "

The new password for the specified IAM user.

The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D). However, the format can be further restricted by the account administrator by setting a password policy on the AWS account. For more information, see UpdateAccountPasswordPolicy.

" } }, "pathPrefixType": { "base": null, "refs": { - "ListGroupsRequest$PathPrefix": "

The path prefix for filtering the results. For example, the prefix /division_abc/subdivision_xyz/ gets all groups whose path starts with /division_abc/subdivision_xyz/.

This parameter is optional. If it is not included, it defaults to a slash (/), listing all groups. The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", - "ListInstanceProfilesRequest$PathPrefix": "

The path prefix for filtering the results. For example, the prefix /application_abc/component_xyz/ gets all instance profiles whose path starts with /application_abc/component_xyz/.

This parameter is optional. If it is not included, it defaults to a slash (/), listing all instance profiles. The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", - "ListRolesRequest$PathPrefix": "

The path prefix for filtering the results. For example, the prefix /application_abc/component_xyz/ gets all roles whose path starts with /application_abc/component_xyz/.

This parameter is optional. If it is not included, it defaults to a slash (/), listing all roles. The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", - "ListServerCertificatesRequest$PathPrefix": "

The path prefix for filtering the results. For example: /company/servercerts would get all server certificates for which the path starts with /company/servercerts.

This parameter is optional. If it is not included, it defaults to a slash (/), listing all server certificates. The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", - "ListUsersRequest$PathPrefix": "

The path prefix for filtering the results. For example: /division_abc/subdivision_xyz/, which would get all user names whose path starts with /division_abc/subdivision_xyz/.

This parameter is optional. If it is not included, it defaults to a slash (/), listing all user names. The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

" + "ListGroupsRequest$PathPrefix": "

The path prefix for filtering the results. For example, the prefix /division_abc/subdivision_xyz/ gets all groups whose path starts with /division_abc/subdivision_xyz/.

This parameter is optional. If it is not included, it defaults to a slash (/), listing all groups. This paramater allows (per its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", + "ListInstanceProfilesRequest$PathPrefix": "

The path prefix for filtering the results. For example, the prefix /application_abc/component_xyz/ gets all instance profiles whose path starts with /application_abc/component_xyz/.

This parameter is optional. If it is not included, it defaults to a slash (/), listing all instance profiles. This paramater allows (per its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", + "ListRolesRequest$PathPrefix": "

The path prefix for filtering the results. For example, the prefix /application_abc/component_xyz/ gets all roles whose path starts with /application_abc/component_xyz/.

This parameter is optional. If it is not included, it defaults to a slash (/), listing all roles. This paramater allows (per its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", + "ListServerCertificatesRequest$PathPrefix": "

The path prefix for filtering the results. For example: /company/servercerts would get all server certificates for which the path starts with /company/servercerts.

This parameter is optional. If it is not included, it defaults to a slash (/), listing all server certificates. This paramater allows (per its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", + "ListUsersRequest$PathPrefix": "

The path prefix for filtering the results. For example: /division_abc/subdivision_xyz/, which would get all user names whose path starts with /division_abc/subdivision_xyz/.

This parameter is optional. If it is not included, it defaults to a slash (/), listing all user names. This paramater allows (per its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

" } }, "pathType": { "base": null, "refs": { - "CreateGroupRequest$Path": "

The path to the group. For more information about paths, see IAM Identifiers in the IAM User Guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", - "CreateInstanceProfileRequest$Path": "

The path to the instance profile. For more information about paths, see IAM Identifiers in the IAM User Guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", - "CreateRoleRequest$Path": "

The path to the role. For more information about paths, see IAM Identifiers in the IAM User Guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", - "CreateUserRequest$Path": "

The path for the user name. For more information about paths, see IAM Identifiers in the IAM User Guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", - "CreateVirtualMFADeviceRequest$Path": "

The path for the virtual MFA device. For more information about paths, see IAM Identifiers in the IAM User Guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", + "CreateGroupRequest$Path": "

The path to the group. For more information about paths, see IAM Identifiers in the IAM User Guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

This paramater allows (per its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", + "CreateInstanceProfileRequest$Path": "

The path to the instance profile. For more information about paths, see IAM Identifiers in the IAM User Guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

This paramater allows (per its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", + "CreateRoleRequest$Path": "

The path to the role. For more information about paths, see IAM Identifiers in the IAM User Guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

This paramater allows (per its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", + "CreateUserRequest$Path": "

The path for the user name. For more information about paths, see IAM Identifiers in the IAM User Guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

This paramater allows (per its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", + "CreateVirtualMFADeviceRequest$Path": "

The path for the virtual MFA device. For more information about paths, see IAM Identifiers in the IAM User Guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

This paramater allows (per its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", "Group$Path": "

The path to the group. For more information about paths, see IAM Identifiers in the Using IAM guide.

", "GroupDetail$Path": "

The path to the group. For more information about paths, see IAM Identifiers in the Using IAM guide.

", "InstanceProfile$Path": "

The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.

", - "ListEntitiesForPolicyRequest$PathPrefix": "

The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all entities.

The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", + "ListEntitiesForPolicyRequest$PathPrefix": "

The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all entities.

This paramater allows (per its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", "Role$Path": "

The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.

", "RoleDetail$Path": "

The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.

", "ServerCertificateMetadata$Path": "

The path to the server certificate. For more information about paths, see IAM Identifiers in the Using IAM guide.

", - "UpdateGroupRequest$NewPath": "

New path for the IAM group. Only include this if changing the group's path.

The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", - "UpdateServerCertificateRequest$NewPath": "

The new path for the server certificate. Include this only if you are updating the server certificate's path.

The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", - "UpdateUserRequest$NewPath": "

New path for the IAM user. Include this parameter only if you're changing the user's path.

The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", - "UploadServerCertificateRequest$Path": "

The path for the server certificate. For more information about paths, see IAM Identifiers in the IAM User Guide.

This parameter is optional. If it is not included, it defaults to a slash (/). The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

If you are uploading a server certificate specifically for use with Amazon CloudFront distributions, you must specify a path using the --path option. The path must begin with /cloudfront and must include a trailing slash (for example, /cloudfront/test/).

", + "UpdateGroupRequest$NewPath": "

New path for the IAM group. Only include this if changing the group's path.

This paramater allows (per its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", + "UpdateServerCertificateRequest$NewPath": "

The new path for the server certificate. Include this only if you are updating the server certificate's path.

This paramater allows (per its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", + "UpdateUserRequest$NewPath": "

New path for the IAM user. Include this parameter only if you're changing the user's path.

This paramater allows (per its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", + "UploadServerCertificateRequest$Path": "

The path for the server certificate. For more information about paths, see IAM Identifiers in the IAM User Guide.

This parameter is optional. If it is not included, it defaults to a slash (/). This paramater allows (per its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

If you are uploading a server certificate specifically for use with Amazon CloudFront distributions, you must specify a path using the --path option. The path must begin with /cloudfront and must include a trailing slash (for example, /cloudfront/test/).

", "User$Path": "

The path to the user. For more information about paths, see IAM Identifiers in the Using IAM guide.

", "UserDetail$Path": "

The path to the user. For more information about paths, see IAM Identifiers in the Using IAM guide.

" } @@ -2210,23 +2288,23 @@ "policyDocumentType": { "base": null, "refs": { - "CreatePolicyRequest$PolicyDocument": "

The JSON policy document that you want to use as the content for the new policy.

The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", - "CreatePolicyVersionRequest$PolicyDocument": "

The JSON policy document that you want to use as the content for this new version of the policy.

The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", - "CreateRoleRequest$AssumeRolePolicyDocument": "

The trust relationship policy document that grants an entity permission to assume the role.

The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", + "CreatePolicyRequest$PolicyDocument": "

The JSON policy document that you want to use as the content for the new policy.

The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", + "CreatePolicyVersionRequest$PolicyDocument": "

The JSON policy document that you want to use as the content for this new version of the policy.

The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", + "CreateRoleRequest$AssumeRolePolicyDocument": "

The trust relationship policy document that grants an entity permission to assume the role.

The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", "GetGroupPolicyResponse$PolicyDocument": "

The policy document.

", "GetRolePolicyResponse$PolicyDocument": "

The policy document.

", "GetUserPolicyResponse$PolicyDocument": "

The policy document.

", "PolicyDetail$PolicyDocument": "

The policy document.

", "PolicyVersion$Document": "

The policy document.

The policy document is returned in the response to the GetPolicyVersion and GetAccountAuthorizationDetails operations. It is not returned in the response to the CreatePolicyVersion or ListPolicyVersions operations.

", - "PutGroupPolicyRequest$PolicyDocument": "

The policy document.

The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", - "PutRolePolicyRequest$PolicyDocument": "

The policy document.

The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", - "PutUserPolicyRequest$PolicyDocument": "

The policy document.

The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", + "PutGroupPolicyRequest$PolicyDocument": "

The policy document.

The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", + "PutRolePolicyRequest$PolicyDocument": "

The policy document.

The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", + "PutUserPolicyRequest$PolicyDocument": "

The policy document.

The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", "Role$AssumeRolePolicyDocument": "

The policy that grants an entity permission to assume the role.

", "RoleDetail$AssumeRolePolicyDocument": "

The trust policy that grants permission to assume the role.

", - "SimulateCustomPolicyRequest$ResourcePolicy": "

A resource-based policy to include in the simulation provided as a string. Each resource in the simulation is treated as if it had this policy attached. You can include only one resource-based policy in a simulation.

The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", - "SimulatePrincipalPolicyRequest$ResourcePolicy": "

A resource-based policy to include in the simulation provided as a string. Each resource in the simulation is treated as if it had this policy attached. You can include only one resource-based policy in a simulation.

The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", + "SimulateCustomPolicyRequest$ResourcePolicy": "

A resource-based policy to include in the simulation provided as a string. Each resource in the simulation is treated as if it had this policy attached. You can include only one resource-based policy in a simulation.

The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", + "SimulatePrincipalPolicyRequest$ResourcePolicy": "

A resource-based policy to include in the simulation provided as a string. Each resource in the simulation is treated as if it had this policy attached. You can include only one resource-based policy in a simulation.

The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

", "SimulationPolicyListType$member": null, - "UpdateAssumeRolePolicyRequest$PolicyDocument": "

The policy that grants an entity permission to assume the role.

The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

" + "UpdateAssumeRolePolicyRequest$PolicyDocument": "

The policy that grants an entity permission to assume the role.

The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

" } }, "policyDocumentVersionListType": { @@ -2260,33 +2338,33 @@ "base": null, "refs": { "AttachedPolicy$PolicyName": "

The friendly name of the attached policy.

", - "CreatePolicyRequest$PolicyName": "

The friendly name of the policy.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "DeleteGroupPolicyRequest$PolicyName": "

The name identifying the policy document to delete.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "DeleteRolePolicyRequest$PolicyName": "

The name of the inline policy to delete from the specified IAM role.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "DeleteUserPolicyRequest$PolicyName": "

The name identifying the policy document to delete.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "GetGroupPolicyRequest$PolicyName": "

The name of the policy document to get.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "CreatePolicyRequest$PolicyName": "

The friendly name of the policy.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "DeleteGroupPolicyRequest$PolicyName": "

The name identifying the policy document to delete.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "DeleteRolePolicyRequest$PolicyName": "

The name of the inline policy to delete from the specified IAM role.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "DeleteUserPolicyRequest$PolicyName": "

The name identifying the policy document to delete.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "GetGroupPolicyRequest$PolicyName": "

The name of the policy document to get.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", "GetGroupPolicyResponse$PolicyName": "

The name of the policy.

", - "GetRolePolicyRequest$PolicyName": "

The name of the policy document to get.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "GetRolePolicyRequest$PolicyName": "

The name of the policy document to get.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", "GetRolePolicyResponse$PolicyName": "

The name of the policy.

", - "GetUserPolicyRequest$PolicyName": "

The name of the policy document to get.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "GetUserPolicyRequest$PolicyName": "

The name of the policy document to get.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", "GetUserPolicyResponse$PolicyName": "

The name of the policy.

", "ManagedPolicyDetail$PolicyName": "

The friendly name (not ARN) identifying the policy.

", "Policy$PolicyName": "

The friendly name (not ARN) identifying the policy.

", "PolicyDetail$PolicyName": "

The name of the policy.

", - "PutGroupPolicyRequest$PolicyName": "

The name of the policy document.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "PutRolePolicyRequest$PolicyName": "

The name of the policy document.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "PutUserPolicyRequest$PolicyName": "

The name of the policy document.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "PutGroupPolicyRequest$PolicyName": "

The name of the policy document.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "PutRolePolicyRequest$PolicyName": "

The name of the policy document.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "PutUserPolicyRequest$PolicyName": "

The name of the policy document.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", "policyNameListType$member": null } }, "policyPathType": { "base": null, "refs": { - "CreatePolicyRequest$Path": "

The path for the policy.

For more information about paths, see IAM Identifiers in the IAM User Guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", - "ListAttachedGroupPoliciesRequest$PathPrefix": "

The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies.

The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", - "ListAttachedRolePoliciesRequest$PathPrefix": "

The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies.

The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", - "ListAttachedUserPoliciesRequest$PathPrefix": "

The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies.

The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", - "ListPoliciesRequest$PathPrefix": "

The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies. The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", + "CreatePolicyRequest$Path": "

The path for the policy.

For more information about paths, see IAM Identifiers in the IAM User Guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

This paramater allows (per its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", + "ListAttachedGroupPoliciesRequest$PathPrefix": "

The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies.

This paramater allows (per its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", + "ListAttachedRolePoliciesRequest$PathPrefix": "

The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies.

This paramater allows (per its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", + "ListAttachedUserPoliciesRequest$PathPrefix": "

The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies.

This paramater allows (per its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", + "ListPoliciesRequest$PathPrefix": "

The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies. This paramater allows (per its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

", "ManagedPolicyDetail$Path": "

The path to the policy.

For more information about paths, see IAM Identifiers in the Using IAM guide.

", "Policy$Path": "

The path to the policy.

For more information about paths, see IAM Identifiers in the Using IAM guide.

" } @@ -2300,8 +2378,8 @@ "policyVersionIdType": { "base": null, "refs": { - "DeletePolicyVersionRequest$VersionId": "

The policy version to delete.

The regex pattern for this parameter is a string of characters that consists of the lowercase letter 'v' followed by one or two digits, and optionally followed by a period '.' and a string of letters and digits.

For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.

", - "GetPolicyVersionRequest$VersionId": "

Identifies the policy version to retrieve.

The regex pattern for this parameter is a string of characters that consists of the lowercase letter 'v' followed by one or two digits, and optionally followed by a period '.' and a string of letters and digits.

", + "DeletePolicyVersionRequest$VersionId": "

The policy version to delete.

This parameter allows (per its regex pattern) a string of characters that consists of the lowercase letter 'v' followed by one or two digits, and optionally followed by a period '.' and a string of letters and digits.

For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.

", + "GetPolicyVersionRequest$VersionId": "

Identifies the policy version to retrieve.

This parameter allows (per its regex pattern) a string of characters that consists of the lowercase letter 'v' followed by one or two digits, and optionally followed by a period '.' and a string of letters and digits.

", "ManagedPolicyDetail$DefaultVersionId": "

The identifier for the version of the policy that is set as the default (operative) version.

For more information about policy versions, see Versioning for Managed Policies in the Using IAM guide.

", "Policy$DefaultVersionId": "

The identifier for the version of the policy that is set as the default version.

", "PolicyVersion$VersionId": "

The identifier for the policy version.

Policy version identifiers always begin with v (always lowercase). When a policy is created, the first policy version is v1.

", @@ -2311,7 +2389,7 @@ "privateKeyType": { "base": null, "refs": { - "UploadServerCertificateRequest$PrivateKey": "

The contents of the private key in PEM-encoded format.

The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

" + "UploadServerCertificateRequest$PrivateKey": "

The contents of the private key in PEM-encoded format.

The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

" } }, "publicKeyFingerprintType": { @@ -2323,18 +2401,18 @@ "publicKeyIdType": { "base": null, "refs": { - "DeleteSSHPublicKeyRequest$SSHPublicKeyId": "

The unique identifier for the SSH public key.

The regex pattern for this parameter is a string of characters that can consist of any upper or lowercased letter or digit.

", - "GetSSHPublicKeyRequest$SSHPublicKeyId": "

The unique identifier for the SSH public key.

The regex pattern for this parameter is a string of characters that can consist of any upper or lowercased letter or digit.

", + "DeleteSSHPublicKeyRequest$SSHPublicKeyId": "

The unique identifier for the SSH public key.

This parameter allows (per its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

", + "GetSSHPublicKeyRequest$SSHPublicKeyId": "

The unique identifier for the SSH public key.

This parameter allows (per its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

", "SSHPublicKey$SSHPublicKeyId": "

The unique identifier for the SSH public key.

", "SSHPublicKeyMetadata$SSHPublicKeyId": "

The unique identifier for the SSH public key.

", - "UpdateSSHPublicKeyRequest$SSHPublicKeyId": "

The unique identifier for the SSH public key.

The regex pattern for this parameter is a string of characters that can consist of any upper or lowercased letter or digit.

" + "UpdateSSHPublicKeyRequest$SSHPublicKeyId": "

The unique identifier for the SSH public key.

This parameter allows (per its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

" } }, "publicKeyMaterialType": { "base": null, "refs": { "SSHPublicKey$SSHPublicKeyBody": "

The SSH public key.

", - "UploadSSHPublicKeyRequest$SSHPublicKeyBody": "

The SSH public key. The public key must be encoded in ssh-rsa format or PEM format.

The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

" + "UploadSSHPublicKeyRequest$SSHPublicKeyBody": "

The SSH public key. The public key must be encoded in ssh-rsa format or PEM format.

The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

" } }, "roleDetailListType": { @@ -2353,34 +2431,34 @@ "roleNameType": { "base": null, "refs": { - "AddRoleToInstanceProfileRequest$RoleName": "

The name of the role to add.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "AttachRolePolicyRequest$RoleName": "

The name (friendly name, not ARN) of the role to attach the policy to.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "CreateRoleRequest$RoleName": "

The name of the role to create.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-. Role names are not distinguished by case. For example, you cannot create roles named both \"PRODROLE\" and \"prodrole\".

", - "DeleteRolePolicyRequest$RoleName": "

The name (friendly name, not ARN) identifying the role that the policy is embedded in.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "DeleteRoleRequest$RoleName": "

The name of the role to delete.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "DetachRolePolicyRequest$RoleName": "

The name (friendly name, not ARN) of the IAM role to detach the policy from.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "GetRolePolicyRequest$RoleName": "

The name of the role associated with the policy.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "AddRoleToInstanceProfileRequest$RoleName": "

The name of the role to add.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "AttachRolePolicyRequest$RoleName": "

The name (friendly name, not ARN) of the role to attach the policy to.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "CreateRoleRequest$RoleName": "

The name of the role to create.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-. Role names are not distinguished by case. For example, you cannot create roles named both \"PRODROLE\" and \"prodrole\".

", + "DeleteRolePolicyRequest$RoleName": "

The name (friendly name, not ARN) identifying the role that the policy is embedded in.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "DeleteRoleRequest$RoleName": "

The name of the role to delete.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "DetachRolePolicyRequest$RoleName": "

The name (friendly name, not ARN) of the IAM role to detach the policy from.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "GetRolePolicyRequest$RoleName": "

The name of the role associated with the policy.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", "GetRolePolicyResponse$RoleName": "

The role the policy is associated with.

", - "GetRoleRequest$RoleName": "

The name of the IAM role to get information about.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "ListAttachedRolePoliciesRequest$RoleName": "

The name (friendly name, not ARN) of the role to list attached policies for.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "ListInstanceProfilesForRoleRequest$RoleName": "

The name of the role to list instance profiles for.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "ListRolePoliciesRequest$RoleName": "

The name of the role to list policies for.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "GetRoleRequest$RoleName": "

The name of the IAM role to get information about.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "ListAttachedRolePoliciesRequest$RoleName": "

The name (friendly name, not ARN) of the role to list attached policies for.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "ListInstanceProfilesForRoleRequest$RoleName": "

The name of the role to list instance profiles for.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "ListRolePoliciesRequest$RoleName": "

The name of the role to list policies for.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", "PolicyRole$RoleName": "

The name (friendly name, not ARN) identifying the role.

", - "PutRolePolicyRequest$RoleName": "

The name of the role to associate the policy with.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "RemoveRoleFromInstanceProfileRequest$RoleName": "

The name of the role to remove.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "PutRolePolicyRequest$RoleName": "

The name of the role to associate the policy with.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "RemoveRoleFromInstanceProfileRequest$RoleName": "

The name of the role to remove.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", "Role$RoleName": "

The friendly name that identifies the role.

", "RoleDetail$RoleName": "

The friendly name that identifies the role.

", - "UpdateAssumeRolePolicyRequest$RoleName": "

The name of the role to update with the new policy.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

" + "UpdateAssumeRolePolicyRequest$RoleName": "

The name of the role to update with the new policy.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

" } }, "serialNumberType": { "base": null, "refs": { - "DeactivateMFADeviceRequest$SerialNumber": "

The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =/:,.@-

", - "DeleteVirtualMFADeviceRequest$SerialNumber": "

The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the same as the ARN.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =/:,.@-

", - "EnableMFADeviceRequest$SerialNumber": "

The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =/:,.@-

", + "DeactivateMFADeviceRequest$SerialNumber": "

The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =/:,.@-

", + "DeleteVirtualMFADeviceRequest$SerialNumber": "

The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the same as the ARN.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =/:,.@-

", + "EnableMFADeviceRequest$SerialNumber": "

The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =/:,.@-

", "MFADevice$SerialNumber": "

The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

", - "ResyncMFADeviceRequest$SerialNumber": "

Serial number that uniquely identifies the MFA device.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "ResyncMFADeviceRequest$SerialNumber": "

Serial number that uniquely identifies the MFA device.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", "VirtualMFADevice$SerialNumber": "

The serial number associated with VirtualMFADevice.

" } }, @@ -2393,12 +2471,12 @@ "serverCertificateNameType": { "base": null, "refs": { - "DeleteServerCertificateRequest$ServerCertificateName": "

The name of the server certificate you want to delete.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "GetServerCertificateRequest$ServerCertificateName": "

The name of the server certificate you want to retrieve information about.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "DeleteServerCertificateRequest$ServerCertificateName": "

The name of the server certificate you want to delete.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "GetServerCertificateRequest$ServerCertificateName": "

The name of the server certificate you want to retrieve information about.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", "ServerCertificateMetadata$ServerCertificateName": "

The name that identifies the server certificate.

", - "UpdateServerCertificateRequest$ServerCertificateName": "

The name of the server certificate that you want to update.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "UpdateServerCertificateRequest$NewServerCertificateName": "

The new name for the server certificate. Include this only if you are updating the server certificate's name. The name of the certificate cannot contain any spaces.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "UploadServerCertificateRequest$ServerCertificateName": "

The name for the server certificate. Do not include the path in this value. The name of the certificate cannot contain any spaces.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

" + "UpdateServerCertificateRequest$ServerCertificateName": "

The name of the server certificate that you want to update.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "UpdateServerCertificateRequest$NewServerCertificateName": "

The new name for the server certificate. Include this only if you are updating the server certificate's name. The name of the certificate cannot contain any spaces.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "UploadServerCertificateRequest$ServerCertificateName": "

The name for the server certificate. Do not include the path in this value. The name of the certificate cannot contain any spaces.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

" } }, "serviceFailureExceptionMessage": { @@ -2407,6 +2485,44 @@ "ServiceFailureException$message": null } }, + "serviceName": { + "base": null, + "refs": { + "CreateServiceSpecificCredentialRequest$ServiceName": "

The name of the AWS service that is to be associated with the credentials. The service you specify here is the only service that can be accessed using these credentials.

", + "ListServiceSpecificCredentialsRequest$ServiceName": "

Filters the returned results to only those for the specified AWS service. If not specified, then AWS returns service-specific credentials for all services.

", + "ServiceSpecificCredential$ServiceName": "

The name of the service associated with the service-specific credential.

", + "ServiceSpecificCredentialMetadata$ServiceName": "

The name of the service associated with the service-specific credential.

" + } + }, + "serviceNotSupportedMessage": { + "base": null, + "refs": { + "ServiceNotSupportedException$message": null + } + }, + "servicePassword": { + "base": null, + "refs": { + "ServiceSpecificCredential$ServicePassword": "

The generated password for the service-specific credential.

" + } + }, + "serviceSpecificCredentialId": { + "base": null, + "refs": { + "DeleteServiceSpecificCredentialRequest$ServiceSpecificCredentialId": "

The unique identifier of the service-specific credential. You can get this value by calling ListServiceSpecificCredentials.

This parameter allows (per its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

", + "ResetServiceSpecificCredentialRequest$ServiceSpecificCredentialId": "

The unique identifier of the service-specific credential.

This parameter allows (per its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

", + "ServiceSpecificCredential$ServiceSpecificCredentialId": "

The unique identifier for the service-specific credential.

", + "ServiceSpecificCredentialMetadata$ServiceSpecificCredentialId": "

The unique identifier for the service-specific credential.

", + "UpdateServiceSpecificCredentialRequest$ServiceSpecificCredentialId": "

The unique identifier of the service-specific credential.

This parameter allows (per its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

" + } + }, + "serviceUserName": { + "base": null, + "refs": { + "ServiceSpecificCredential$ServiceUserName": "

The generated user name for the service-specific credential. This value is generated by combining the IAM user's name combined with the ID number of the AWS account, as in jane-at-123456789012, for example. This value cannot be configured by the user.

", + "ServiceSpecificCredentialMetadata$ServiceUserName": "

The generated user name for the service-specific credential.

" + } + }, "statusType": { "base": null, "refs": { @@ -2414,9 +2530,12 @@ "AccessKeyMetadata$Status": "

The status of the access key. Active means the key is valid for API calls; Inactive means it is not.

", "SSHPublicKey$Status": "

The status of the SSH public key. Active means the key can be used for authentication with an AWS CodeCommit repository. Inactive means the key cannot be used.

", "SSHPublicKeyMetadata$Status": "

The status of the SSH public key. Active means the key can be used for authentication with an AWS CodeCommit repository. Inactive means the key cannot be used.

", + "ServiceSpecificCredential$Status": "

The status of the service-specific credential. Active means the key is valid for API calls, while Inactive means it is not.

", + "ServiceSpecificCredentialMetadata$Status": "

The status of the service-specific credential. Active means the key is valid for API calls, while Inactive means it is not.

", "SigningCertificate$Status": "

The status of the signing certificate. Active means the key is valid for API calls, while Inactive means it is not.

", "UpdateAccessKeyRequest$Status": "

The status you want to assign to the secret access key. Active means the key can be used for API calls to AWS, while Inactive means the key cannot be used.

", "UpdateSSHPublicKeyRequest$Status": "

The status to assign to the SSH public key. Active means the key can be used for authentication with an AWS CodeCommit repository. Inactive means the key cannot be used.

", + "UpdateServiceSpecificCredentialRequest$Status": "

The status to be assigned to the service-specific credential.

", "UpdateSigningCertificateRequest$Status": "

The status you want to assign to the certificate. Active means the certificate can be used for API calls to AWS, while Inactive means the certificate cannot be used.

" } }, @@ -2483,26 +2602,33 @@ "refs": { "AccessKey$UserName": "

The name of the IAM user that the access key is associated with.

", "AccessKeyMetadata$UserName": "

The name of the IAM user that the key is associated with.

", - "AttachUserPolicyRequest$UserName": "

The name (friendly name, not ARN) of the IAM user to attach the policy to.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "CreateLoginProfileRequest$UserName": "

The name of the IAM user to create a password for. The user must already exist.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "CreateUserRequest$UserName": "

The name of the user to create.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-. User names are not distinguished by case. For example, you cannot create users named both \"TESTUSER\" and \"testuser\".

", - "DeleteLoginProfileRequest$UserName": "

The name of the user whose password you want to delete.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "DeleteSSHPublicKeyRequest$UserName": "

The name of the IAM user associated with the SSH public key.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "DetachUserPolicyRequest$UserName": "

The name (friendly name, not ARN) of the IAM user to detach the policy from.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "GetLoginProfileRequest$UserName": "

The name of the user whose login profile you want to retrieve.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "GetSSHPublicKeyRequest$UserName": "

The name of the IAM user associated with the SSH public key.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "ListAttachedUserPoliciesRequest$UserName": "

The name (friendly name, not ARN) of the user to list attached policies for.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "ListSSHPublicKeysRequest$UserName": "

The name of the IAM user to list SSH public keys for. If none is specified, the UserName field is determined implicitly based on the AWS access key used to sign the request.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "AttachUserPolicyRequest$UserName": "

The name (friendly name, not ARN) of the IAM user to attach the policy to.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "CreateLoginProfileRequest$UserName": "

The name of the IAM user to create a password for. The user must already exist.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "CreateServiceSpecificCredentialRequest$UserName": "

The name of the IAM user that is to be associated with the credentials. The new service-specific credentials have the same permissions as the associated user except that they can be used only to access the specified service.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "CreateUserRequest$UserName": "

The name of the user to create.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-. User names are not distinguished by case. For example, you cannot create users named both \"TESTUSER\" and \"testuser\".

", + "DeleteLoginProfileRequest$UserName": "

The name of the user whose password you want to delete.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "DeleteSSHPublicKeyRequest$UserName": "

The name of the IAM user associated with the SSH public key.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "DeleteServiceSpecificCredentialRequest$UserName": "

The name of the IAM user associated with the service-specific credential. If this value is not specified, then the operation assumes the user whose credentials are used to call the operation.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "DetachUserPolicyRequest$UserName": "

The name (friendly name, not ARN) of the IAM user to detach the policy from.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "GetLoginProfileRequest$UserName": "

The name of the user whose login profile you want to retrieve.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "GetSSHPublicKeyRequest$UserName": "

The name of the IAM user associated with the SSH public key.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "ListAttachedUserPoliciesRequest$UserName": "

The name (friendly name, not ARN) of the user to list attached policies for.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "ListSSHPublicKeysRequest$UserName": "

The name of the IAM user to list SSH public keys for. If none is specified, the UserName field is determined implicitly based on the AWS access key used to sign the request.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "ListServiceSpecificCredentialsRequest$UserName": "

The name of the user whose service-specific credentials you want information about. If this value is not specified then the operation assumes the user whose credentials are used to call the operation.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", "LoginProfile$UserName": "

The name of the user, which can be used for signing in to the AWS Management Console.

", "MFADevice$UserName": "

The user with whom the MFA device is associated.

", "PolicyUser$UserName": "

The name (friendly name, not ARN) identifying the user.

", + "ResetServiceSpecificCredentialRequest$UserName": "

The name of the IAM user associated with the service-specific credential. If this value is not specified, then the operation assumes the user whose credentials are used to call the operation.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", "SSHPublicKey$UserName": "

The name of the IAM user associated with the SSH public key.

", "SSHPublicKeyMetadata$UserName": "

The name of the IAM user associated with the SSH public key.

", + "ServiceSpecificCredential$UserName": "

The name of the IAM user associated with the service-specific credential.

", + "ServiceSpecificCredentialMetadata$UserName": "

The name of the IAM user associated with the service-specific credential.

", "SigningCertificate$UserName": "

The name of the user the signing certificate is associated with.

", - "UpdateLoginProfileRequest$UserName": "

The name of the user whose password you want to update.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "UpdateSSHPublicKeyRequest$UserName": "

The name of the IAM user associated with the SSH public key.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "UpdateUserRequest$NewUserName": "

New name for the user. Include this parameter only if you're changing the user's name.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", - "UploadSSHPublicKeyRequest$UserName": "

The name of the IAM user to associate the SSH public key with.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "UpdateLoginProfileRequest$UserName": "

The name of the user whose password you want to update.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "UpdateSSHPublicKeyRequest$UserName": "

The name of the IAM user associated with the SSH public key.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "UpdateServiceSpecificCredentialRequest$UserName": "

The name of the IAM user associated with the service-specific credential. If you do not specify this value, then the operation assumes the user whose credentials are used to call the operation.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "UpdateUserRequest$NewUserName": "

New name for the user. Include this parameter only if you're changing the user's name.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "UploadSSHPublicKeyRequest$UserName": "

The name of the IAM user to associate the SSH public key with.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", "User$UserName": "

The friendly name identifying the user.

", "UserDetail$UserName": "

The friendly name identifying the user.

" } @@ -2516,7 +2642,7 @@ "virtualMFADeviceName": { "base": null, "refs": { - "CreateVirtualMFADeviceRequest$VirtualMFADeviceName": "

The name of the virtual MFA device. Use with path to uniquely identify a virtual MFA device.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

" + "CreateVirtualMFADeviceRequest$VirtualMFADeviceName": "

The name of the virtual MFA device. Use with path to uniquely identify a virtual MFA device.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/examples-1.json index 0ea7e3b0b..f23d8ebfb 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/examples-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/examples-1.json @@ -1,5 +1,1191 @@ { "version": "1.0", "examples": { + "AddClientIDToOpenIDConnectProvider": [ + { + "input": { + "ClientID": "my-application-ID", + "OpenIDConnectProviderArn": "arn:aws:iam::123456789012:oidc-provider/server.example.com" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following add-client-id-to-open-id-connect-provider command adds the client ID my-application-ID to the OIDC provider named server.example.com:", + "id": "028e91f4-e2a6-4d59-9e3b-4965a3fb19be", + "title": "To add a client ID (audience) to an Open-ID Connect (OIDC) provider" + } + ], + "AddRoleToInstanceProfile": [ + { + "input": { + "InstanceProfileName": "Webserver", + "RoleName": "S3Access" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command adds the role named S3Access to the instance profile named Webserver:", + "id": "c107fac3-edb6-4827-8a71-8863ec91c81f", + "title": "To add a role to an instance profile" + } + ], + "AddUserToGroup": [ + { + "input": { + "GroupName": "Admins", + "UserName": "Bob" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command adds an IAM user named Bob to the IAM group named Admins:", + "id": "619c7e6b-09f8-4036-857b-51a6ea5027ca", + "title": "To add a user to an IAM group" + } + ], + "AttachGroupPolicy": [ + { + "input": { + "GroupName": "Finance", + "PolicyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command attaches the AWS managed policy named ReadOnlyAccess to the IAM group named Finance.", + "id": "87551489-86f0-45db-9889-759936778f2b", + "title": "To attach a managed policy to an IAM group" + } + ], + "AttachRolePolicy": [ + { + "input": { + "PolicyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess", + "RoleName": "ReadOnlyRole" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command attaches the AWS managed policy named ReadOnlyAccess to the IAM role named ReadOnlyRole.", + "id": "3e1b8c7c-99c8-4fc4-a20c-131fe3f22c7e", + "title": "To attach a managed policy to an IAM role" + } + ], + "AttachUserPolicy": [ + { + "input": { + "PolicyArn": "arn:aws:iam::aws:policy/AdministratorAccess", + "UserName": "Alice" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command attaches the AWS managed policy named AdministratorAccess to the IAM user named Alice.", + "id": "1372ebd8-9475-4b1a-a479-23b6fd4b8b3e", + "title": "To attach a managed policy to an IAM user" + } + ], + "ChangePassword": [ + { + "input": { + "NewPassword": "]35d/{pB9Fo9wJ", + "OldPassword": "3s0K_;xh4~8XXI" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command changes the password for the current IAM user.", + "id": "3a80c66f-bffb-46df-947c-1e8fa583b470", + "title": "To change the password for your IAM user" + } + ], + "CreateAccessKey": [ + { + "input": { + "UserName": "Bob" + }, + "output": { + "AccessKey": { + "AccessKeyId": "AKIAIOSFODNN7EXAMPLE", + "CreateDate": "2015-03-09T18:39:23.411Z", + "SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY", + "Status": "Active", + "UserName": "Bob" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command creates an access key (access key ID and secret access key) for the IAM user named Bob.", + "id": "1fbb3211-4cf2-41db-8c20-ba58d9f5802d", + "title": "To create an access key for an IAM user" + } + ], + "CreateAccountAlias": [ + { + "input": { + "AccountAlias": "examplecorp" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command associates the alias examplecorp to your AWS account.", + "id": "5adaf6fb-94fc-4ca2-b825-2fbc2062add1", + "title": "To create an account alias" + } + ], + "CreateGroup": [ + { + "input": { + "GroupName": "Admins" + }, + "output": { + "Group": { + "Arn": "arn:aws:iam::123456789012:group/Admins", + "CreateDate": "2015-03-09T20:30:24.940Z", + "GroupId": "AIDGPMS9RO4H3FEXAMPLE", + "GroupName": "Admins", + "Path": "/" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command creates an IAM group named Admins.", + "id": "d5da2a90-5e69-4ef7-8ae8-4c33dc21fd21", + "title": "To create an IAM group" + } + ], + "CreateInstanceProfile": [ + { + "input": { + "InstanceProfileName": "Webserver" + }, + "output": { + "InstanceProfile": { + "Arn": "arn:aws:iam::123456789012:instance-profile/Webserver", + "CreateDate": "2015-03-09T20:33:19.626Z", + "InstanceProfileId": "AIPAJMBYC7DLSPEXAMPLE", + "InstanceProfileName": "Webserver", + "Path": "/", + "Roles": [ + + ] + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command creates an instance profile named Webserver that is ready to have a role attached and then be associated with an EC2 instance.", + "id": "5d84e6ae-5921-4e39-8454-10232cd9ff9a", + "title": "To create an instance profile" + } + ], + "CreateLoginProfile": [ + { + "input": { + "Password": "h]6EszR}vJ*m", + "PasswordResetRequired": true, + "UserName": "Bob" + }, + "output": { + "LoginProfile": { + "CreateDate": "2015-03-10T20:55:40.274Z", + "PasswordResetRequired": true, + "UserName": "Bob" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command changes IAM user Bob's password and sets the flag that required Bob to change the password the next time he signs in.", + "id": "c63795bc-3444-40b3-89df-83c474ef88be", + "title": "To create an instance profile" + } + ], + "CreateOpenIDConnectProvider": [ + { + "input": { + "ClientIDList": [ + "my-application-id" + ], + "ThumbprintList": [ + "3768084dfb3d2b68b7897bf5f565da8efEXAMPLE" + ], + "Url": "https://server.example.com" + }, + "output": { + "OpenIDConnectProviderArn": "arn:aws:iam::123456789012:oidc-provider/server.example.com" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example defines a new OIDC provider in IAM with a client ID of my-application-id and pointing at the server with a URL of https://server.example.com.", + "id": "4e4a6bff-cc97-4406-922e-0ab4a82cdb63", + "title": "To create an instance profile" + } + ], + "CreateRole": [ + { + "input": { + "AssumeRolePolicyDocument": "", + "Path": "/", + "RoleName": "Test-Role" + }, + "output": { + "Role": { + "Arn": "arn:aws:iam::123456789012:role/Test-Role", + "AssumeRolePolicyDocument": "", + "CreateDate": "2013-06-07T20:43:32.821Z", + "Path": "/", + "RoleId": "AKIAIOSFODNN7EXAMPLE", + "RoleName": "Test-Role" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command creates a role named Test-Role and attaches a trust policy to it that is provided as a URL-encoded JSON string.", + "id": "eaaa4b5f-51f1-4f73-b0d3-30127040eff8", + "title": "To create an IAM role" + } + ], + "CreateUser": [ + { + "input": { + "UserName": "Bob" + }, + "output": { + "User": { + "Arn": "arn:aws:iam::123456789012:user/Bob", + "CreateDate": "2013-06-08T03:20:41.270Z", + "Path": "/", + "UserId": "AKIAIOSFODNN7EXAMPLE", + "UserName": "Bob" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following create-user command creates an IAM user named Bob in the current account.", + "id": "eb15f90b-e5f5-4af8-a594-e4e82b181a62", + "title": "To create an IAM user" + } + ], + "DeleteAccessKey": [ + { + "input": { + "AccessKeyId": "AKIDPMS9RO4H3FEXAMPLE", + "UserName": "Bob" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command deletes one access key (access key ID and secret access key) assigned to the IAM user named Bob.", + "id": "61a785a7-d30a-415a-ae18-ab9236e56871", + "title": "To delete an access key for an IAM user" + } + ], + "DeleteAccountAlias": [ + { + "input": { + "AccountAlias": "mycompany" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command removes the alias mycompany from the current AWS account:", + "id": "7abeca65-04a8-4500-a890-47f1092bf766", + "title": "To delete an account alias" + } + ], + "DeleteAccountPasswordPolicy": [ + { + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command removes the password policy from the current AWS account:", + "id": "9ddf755e-495c-49bc-ae3b-ea6cc9b8ebcf", + "title": "To delete the current account password policy" + } + ], + "DeleteGroupPolicy": [ + { + "input": { + "GroupName": "Admins", + "PolicyName": "ExamplePolicy" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command deletes the policy named ExamplePolicy from the group named Admins:", + "id": "e683f2bd-98a4-4fe0-bb66-33169c692d4a", + "title": "To delete a policy from an IAM group" + } + ], + "DeleteInstanceProfile": [ + { + "input": { + "InstanceProfileName": "ExampleInstanceProfile" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command deletes the instance profile named ExampleInstanceProfile", + "id": "12d74fb8-3433-49db-8171-a1fc764e354d", + "title": "To delete an instance profile" + } + ], + "DeleteLoginProfile": [ + { + "input": { + "UserName": "Bob" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command deletes the password for the IAM user named Bob.", + "id": "1fe57059-fc73-42e2-b992-517b7d573b5c", + "title": "To delete a password for an IAM user" + } + ], + "DeleteRole": [ + { + "input": { + "RoleName": "Test-Role" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command removes the role named Test-Role.", + "id": "053cdf74-9bda-44b8-bdbb-140fd5a32603", + "title": "To delete an IAM role" + } + ], + "DeleteRolePolicy": [ + { + "input": { + "PolicyName": "ExamplePolicy", + "RoleName": "Test-Role" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command removes the policy named ExamplePolicy from the role named Test-Role.", + "id": "9c667336-fde3-462c-b8f3-950800821e27", + "title": "To remove a policy from an IAM role" + } + ], + "DeleteSigningCertificate": [ + { + "input": { + "CertificateId": "TA7SMP42TDN5Z26OBPJE7EXAMPLE", + "UserName": "Anika" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command deletes the specified signing certificate for the IAM user named Anika.", + "id": "e3357586-ba9c-4070-b35b-d1a899b71987", + "title": "To delete a signing certificate for an IAM user" + } + ], + "DeleteUser": [ + { + "input": { + "UserName": "Bob" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command removes the IAM user named Bob from the current account.", + "id": "a13dc3f9-59fe-42d9-abbb-fb98b204fdf0", + "title": "To delete an IAM user" + } + ], + "DeleteUserPolicy": [ + { + "input": { + "PolicyName": "ExamplePolicy", + "UserName": "Juan" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following delete-user-policy command removes the specified policy from the IAM user named Juan:", + "id": "34f07ddc-9bc1-4f52-bc59-cd0a3ccd06c8", + "title": "To remove a policy from an IAM user" + } + ], + "DeleteVirtualMFADevice": [ + { + "input": { + "SerialNumber": "arn:aws:iam::123456789012:mfa/ExampleName" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following delete-virtual-mfa-device command removes the specified MFA device from the current AWS account.", + "id": "2933b08b-dbe7-4b89-b8c1-fdf75feea1ee", + "title": "To remove a virtual MFA device" + } + ], + "GetAccountPasswordPolicy": [ + { + "output": { + "PasswordPolicy": { + "AllowUsersToChangePassword": false, + "ExpirePasswords": false, + "HardExpiry": false, + "MaxPasswordAge": 90, + "MinimumPasswordLength": 8, + "PasswordReusePrevention": 12, + "RequireLowercaseCharacters": false, + "RequireNumbers": true, + "RequireSymbols": true, + "RequireUppercaseCharacters": false + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command displays details about the password policy for the current AWS account.", + "id": "5e4598c7-c425-431f-8af1-19073b3c4a5f", + "title": "To see the current account password policy" + } + ], + "GetAccountSummary": [ + { + "output": { + "SummaryMap": { + "AccessKeysPerUserQuota": 2, + "AccountAccessKeysPresent": 1, + "AccountMFAEnabled": 0, + "AccountSigningCertificatesPresent": 0, + "AttachedPoliciesPerGroupQuota": 10, + "AttachedPoliciesPerRoleQuota": 10, + "AttachedPoliciesPerUserQuota": 10, + "GroupPolicySizeQuota": 5120, + "Groups": 15, + "GroupsPerUserQuota": 10, + "GroupsQuota": 100, + "MFADevices": 6, + "MFADevicesInUse": 3, + "Policies": 8, + "PoliciesQuota": 1000, + "PolicySizeQuota": 5120, + "PolicyVersionsInUse": 22, + "PolicyVersionsInUseQuota": 10000, + "ServerCertificates": 1, + "ServerCertificatesQuota": 20, + "SigningCertificatesPerUserQuota": 2, + "UserPolicySizeQuota": 2048, + "Users": 27, + "UsersQuota": 5000, + "VersionsPerPolicyQuota": 5 + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command returns information about the IAM entity quotas and usage in the current AWS account.", + "id": "9d8447af-f344-45de-8219-2cebc3cce7f2", + "title": "To get information about IAM entity quotas and usage in the current account" + } + ], + "GetInstanceProfile": [ + { + "input": { + "InstanceProfileName": "ExampleInstanceProfile" + }, + "output": { + "InstanceProfile": { + "Arn": "arn:aws:iam::336924118301:instance-profile/ExampleInstanceProfile", + "CreateDate": "2013-06-12T23:52:02Z", + "InstanceProfileId": "AID2MAB8DPLSRHEXAMPLE", + "InstanceProfileName": "ExampleInstanceProfile", + "Path": "/", + "Roles": [ + { + "Arn": "arn:aws:iam::336924118301:role/Test-Role", + "AssumeRolePolicyDocument": "", + "CreateDate": "2013-01-09T06:33:26Z", + "Path": "/", + "RoleId": "AIDGPMS9RO4H3FEXAMPLE", + "RoleName": "Test-Role" + } + ] + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command gets information about the instance profile named ExampleInstanceProfile.", + "id": "463b9ba5-18cc-4608-9ccb-5a7c6b6e5fe7", + "title": "To get information about an instance profile" + } + ], + "GetLoginProfile": [ + { + "input": { + "UserName": "Anika" + }, + "output": { + "LoginProfile": { + "CreateDate": "2012-09-21T23:03:39Z", + "UserName": "Anika" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command gets information about the password for the IAM user named Anika.", + "id": "d6b580cc-909f-4925-9caa-d425cbc1ad47", + "title": "To get password information for an IAM user" + } + ], + "GetRole": [ + { + "input": { + "RoleName": "Test-Role" + }, + "output": { + "Role": { + "Arn": "arn:aws:iam::123456789012:role/Test-Role", + "AssumeRolePolicyDocument": "", + "CreateDate": "2013-04-18T05:01:58Z", + "Path": "/", + "RoleId": "AIDIODR4TAW7CSEXAMPLE", + "RoleName": "Test-Role" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command gets information about the role named Test-Role.", + "id": "5b7d03a6-340c-472d-aa77-56425950d8b0", + "title": "To get information about an IAM role" + } + ], + "GetUser": [ + { + "input": { + "UserName": "Bob" + }, + "output": { + "User": { + "Arn": "arn:aws:iam::123456789012:user/Bob", + "CreateDate": "2012-09-21T23:03:13Z", + "Path": "/", + "UserId": "AKIAIOSFODNN7EXAMPLE", + "UserName": "Bob" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command gets information about the IAM user named Bob.", + "id": "ede000a1-9e4c-40db-bd0a-d4f95e41a6ab", + "title": "To get information about an IAM user" + } + ], + "ListAccessKeys": [ + { + "input": { + "UserName": "Alice" + }, + "output": { + "AccessKeyMetadata": [ + { + "AccessKeyId": "AKIA111111111EXAMPLE", + "CreateDate": "2016-12-01T22:19:58Z", + "Status": "Active", + "UserName": "Alice" + }, + { + "AccessKeyId": "AKIA222222222EXAMPLE", + "CreateDate": "2016-12-01T22:20:01Z", + "Status": "Active", + "UserName": "Alice" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command lists the access keys IDs for the IAM user named Alice.", + "id": "15571463-ebea-411a-a021-1c76bd2a3625", + "title": "To list the access key IDs for an IAM user" + } + ], + "ListAccountAliases": [ + { + "input": { + }, + "output": { + "AccountAliases": [ + "exmaple-corporation" + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command lists the aliases for the current account.", + "id": "e27b457a-16f9-4e05-a006-3df7b3472741", + "title": "To list account aliases" + } + ], + "ListGroupPolicies": [ + { + "input": { + "GroupName": "Admins" + }, + "output": { + "PolicyNames": [ + "AdminRoot", + "KeyPolicy" + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command lists the names of in-line policies that are embedded in the IAM group named Admins.", + "id": "02de5095-2410-4d3a-ac1b-cc40234af68f", + "title": "To list the in-line policies for an IAM group" + } + ], + "ListGroups": [ + { + "input": { + }, + "output": { + "Groups": [ + { + "Arn": "arn:aws:iam::123456789012:group/Admins", + "CreateDate": "2016-12-15T21:40:08.121Z", + "GroupId": "AGPA1111111111EXAMPLE", + "GroupName": "Admins", + "Path": "/division_abc/subdivision_xyz/" + }, + { + "Arn": "arn:aws:iam::123456789012:group/division_abc/subdivision_xyz/product_1234/engineering/Test", + "CreateDate": "2016-11-30T14:10:01.156Z", + "GroupId": "AGP22222222222EXAMPLE", + "GroupName": "Test", + "Path": "/division_abc/subdivision_xyz/product_1234/engineering/" + }, + { + "Arn": "arn:aws:iam::123456789012:group/division_abc/subdivision_xyz/product_1234/Managers", + "CreateDate": "2016-06-12T20:14:52.032Z", + "GroupId": "AGPI3333333333EXAMPLE", + "GroupName": "Managers", + "Path": "/division_abc/subdivision_xyz/product_1234/" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command lists the IAM groups in the current account:", + "id": "b3ab1380-2a21-42fb-8e85-503f65512c66", + "title": "To list the IAM groups for the current account" + } + ], + "ListGroupsForUser": [ + { + "input": { + "UserName": "Bob" + }, + "output": { + "Groups": [ + { + "Arn": "arn:aws:iam::123456789012:group/division_abc/subdivision_xyz/product_1234/engineering/Test", + "CreateDate": "2016-11-30T14:10:01.156Z", + "GroupId": "AGP2111111111EXAMPLE", + "GroupName": "Test", + "Path": "/division_abc/subdivision_xyz/product_1234/engineering/" + }, + { + "Arn": "arn:aws:iam::123456789012:group/division_abc/subdivision_xyz/product_1234/Managers", + "CreateDate": "2016-06-12T20:14:52.032Z", + "GroupId": "AGPI222222222SEXAMPLE", + "GroupName": "Managers", + "Path": "/division_abc/subdivision_xyz/product_1234/" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command displays the groups that the IAM user named Bob belongs to.", + "id": "278ec2ee-fc28-4136-83fb-433af0ae46a2", + "title": "To list the groups that an IAM user belongs to" + } + ], + "ListSigningCertificates": [ + { + "input": { + "UserName": "Bob" + }, + "output": { + "Certificates": [ + { + "CertificateBody": "-----BEGIN CERTIFICATE----------END CERTIFICATE-----", + "CertificateId": "TA7SMP42TDN5Z26OBPJE7EXAMPLE", + "Status": "Active", + "UploadDate": "2013-06-06T21:40:08Z", + "UserName": "Bob" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command lists the signing certificates for the IAM user named Bob.", + "id": "b4c10256-4fc9-457e-b3fd-4a110d4d73dc", + "title": "To list the signing certificates for an IAM user" + } + ], + "ListUsers": [ + { + "input": { + }, + "output": { + "Users": [ + { + "Arn": "arn:aws:iam::123456789012:user/division_abc/subdivision_xyz/engineering/Juan", + "CreateDate": "2012-09-05T19:38:48Z", + "PasswordLastUsed": "2016-09-08T21:47:36Z", + "Path": "/division_abc/subdivision_xyz/engineering/", + "UserId": "AID2MAB8DPLSRHEXAMPLE", + "UserName": "Juan" + }, + { + "Arn": "arn:aws:iam::123456789012:user/division_abc/subdivision_xyz/engineering/Anika", + "CreateDate": "2014-04-09T15:43:45Z", + "PasswordLastUsed": "2016-09-24T16:18:07Z", + "Path": "/division_abc/subdivision_xyz/engineering/", + "UserId": "AIDIODR4TAW7CSEXAMPLE", + "UserName": "Anika" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command lists the IAM users in the current account.", + "id": "9edfbd73-03d8-4d8a-9a79-76c85e8c8298", + "title": "To list IAM users" + } + ], + "ListVirtualMFADevices": [ + { + "input": { + }, + "output": { + "VirtualMFADevices": [ + { + "SerialNumber": "arn:aws:iam::123456789012:mfa/ExampleMFADevice" + }, + { + "SerialNumber": "arn:aws:iam::123456789012:mfa/Juan" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command lists the virtual MFA devices that have been configured for the current account.", + "id": "54f9ac18-5100-4070-bec4-fe5f612710d5", + "title": "To list virtual MFA devices" + } + ], + "PutGroupPolicy": [ + { + "input": { + "GroupName": "Admins", + "PolicyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":{\"Effect\":\"Allow\",\"Action\":\"*\",\"Resource\":\"*\"}}", + "PolicyName": "AllPerms" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command adds a policy named AllPerms to the IAM group named Admins.", + "id": "4bc17418-758f-4d0f-ab0c-4d00265fec2e", + "title": "To add a policy to a group" + } + ], + "PutRolePolicy": [ + { + "input": { + "PolicyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":{\"Effect\":\"Allow\",\"Action\":\"s3:*\",\"Resource\":\"*\"}}", + "PolicyName": "S3AccessPolicy", + "RoleName": "S3Access" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command adds a permissions policy to the role named Test-Role.", + "id": "de62fd00-46c7-4601-9e0d-71d5fbb11ecb", + "title": "To attach a permissions policy to an IAM role" + } + ], + "PutUserPolicy": [ + { + "input": { + "PolicyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":{\"Effect\":\"Allow\",\"Action\":\"*\",\"Resource\":\"*\"}}", + "PolicyName": "AllAccessPolicy", + "UserName": "Bob" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command attaches a policy to the IAM user named Bob.", + "id": "2551ffc6-3576-4d39-823f-30b60bffc2c7", + "title": "To attach a policy to an IAM user" + } + ], + "RemoveRoleFromInstanceProfile": [ + { + "input": { + "InstanceProfileName": "ExampleInstanceProfile", + "RoleName": "Test-Role" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command removes the role named Test-Role from the instance profile named ExampleInstanceProfile.", + "id": "6d9f46f1-9f4a-4873-b403-51a85c5c627c", + "title": "To remove a role from an instance profile" + } + ], + "RemoveUserFromGroup": [ + { + "input": { + "GroupName": "Admins", + "UserName": "Bob" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command removes the user named Bob from the IAM group named Admins.", + "id": "fb54d5b4-0caf-41d8-af0e-10a84413f174", + "title": "To remove a user from an IAM group" + } + ], + "UpdateAccessKey": [ + { + "input": { + "AccessKeyId": "AKIAIOSFODNN7EXAMPLE", + "Status": "Inactive", + "UserName": "Bob" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command deactivates the specified access key (access key ID and secret access key) for the IAM user named Bob.", + "id": "02b556fd-e673-49b7-ab6b-f2f9035967d0", + "title": "To activate or deactivate an access key for an IAM user" + } + ], + "UpdateAccountPasswordPolicy": [ + { + "input": { + "MinimumPasswordLength": 8, + "RequireNumbers": true + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command sets the password policy to require a minimum length of eight characters and to require one or more numbers in the password:", + "id": "c263a1af-37dc-4423-8dba-9790284ef5e0", + "title": "To set or change the current account password policy" + } + ], + "UpdateAssumeRolePolicy": [ + { + "input": { + "PolicyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":[\"ec2.amazonaws.com\"]},\"Action\":[\"sts:AssumeRole\"]}]}", + "RoleName": "S3AccessForEC2Instances" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command updates the role trust policy for the role named Test-Role:", + "id": "c9150063-d953-4e99-9576-9685872006c6", + "title": "To update the trust policy for an IAM role" + } + ], + "UpdateGroup": [ + { + "input": { + "GroupName": "Test", + "NewGroupName": "Test-1" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command changes the name of the IAM group Test to Test-1.", + "id": "f0cf1662-91ae-4278-a80e-7db54256ccba", + "title": "To rename an IAM group" + } + ], + "UpdateLoginProfile": [ + { + "input": { + "Password": "SomeKindOfPassword123!@#", + "UserName": "Bob" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command creates or changes the password for the IAM user named Bob.", + "id": "036d9498-ecdb-4ed6-a8d8-366c383d1487", + "title": "To change the password for an IAM user" + } + ], + "UpdateSigningCertificate": [ + { + "input": { + "CertificateId": "TA7SMP42TDN5Z26OBPJE7EXAMPLE", + "Status": "Inactive", + "UserName": "Bob" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command changes the status of a signing certificate for a user named Bob to Inactive.", + "id": "829aee7b-efc5-4b3b-84a5-7f899b38018d", + "title": "To change the active status of a signing certificate for an IAM user" + } + ], + "UpdateUser": [ + { + "input": { + "NewUserName": "Robert", + "UserName": "Bob" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command changes the name of the IAM user Bob to Robert. It does not change the user's path.", + "id": "275d53ed-347a-44e6-b7d0-a96276154352", + "title": "To change an IAM user's name" + } + ], + "UploadServerCertificate": [ + { + "input": { + "CertificateBody": "-----BEGIN CERTIFICATE----------END CERTIFICATE-----", + "Path": "/company/servercerts/", + "PrivateKey": "-----BEGIN DSA PRIVATE KEY----------END DSA PRIVATE KEY-----", + "ServerCertificateName": "ProdServerCert" + }, + "output": { + "ServerCertificateMetadata": { + "Arn": "arn:aws:iam::123456789012:server-certificate/company/servercerts/ProdServerCert", + "Expiration": "2012-05-08T01:02:03.004Z", + "Path": "/company/servercerts/", + "ServerCertificateId": "ASCA1111111111EXAMPLE", + "ServerCertificateName": "ProdServerCert", + "UploadDate": "2010-05-08T01:02:03.004Z" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following upload-server-certificate command uploads a server certificate to your AWS account:", + "id": "06eab6d1-ebf2-4bd9-839d-f7508b9a38b6", + "title": "To upload a server certificate to your AWS account" + } + ], + "UploadSigningCertificate": [ + { + "input": { + "CertificateBody": "-----BEGIN CERTIFICATE----------END CERTIFICATE-----", + "UserName": "Bob" + }, + "output": { + "Certificate": { + "CertificateBody": "-----BEGIN CERTIFICATE----------END CERTIFICATE-----", + "CertificateId": "ID123456789012345EXAMPLE", + "Status": "Active", + "UploadDate": "2015-06-06T21:40:08.121Z", + "UserName": "Bob" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following command uploads a signing certificate for the IAM user named Bob.", + "id": "e67489b6-7b73-4e30-9ed3-9a9e0231e458", + "title": "To upload a signing certificate for an IAM user" + } + ] } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/paginators-1.json index c476fe16b..3ac7a4241 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/paginators-1.json @@ -138,26 +138,26 @@ "ListSAMLProviders": { "result_key": "SAMLProviderList" }, - "ListServerCertificates": { + "ListSSHPublicKeys": { "input_token": "Marker", "limit_key": "MaxItems", "more_results": "IsTruncated", "output_token": "Marker", - "result_key": "ServerCertificateMetadataList" + "result_key": "SSHPublicKeys" }, - "ListSigningCertificates": { + "ListServerCertificates": { "input_token": "Marker", "limit_key": "MaxItems", "more_results": "IsTruncated", "output_token": "Marker", - "result_key": "Certificates" + "result_key": "ServerCertificateMetadataList" }, - "ListSSHPublicKeys": { + "ListSigningCertificates": { "input_token": "Marker", "limit_key": "MaxItems", "more_results": "IsTruncated", "output_token": "Marker", - "result_key": "SSHPublicKeys" + "result_key": "Certificates" }, "ListUserPolicies": { "input_token": "Marker", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/importexport/2010-06-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/importexport/2010-06-01/api-2.json index 308dd9eea..0c2a8ddf4 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/importexport/2010-06-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/importexport/2010-06-01/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"importexport-2010-06-01", "apiVersion":"2010-06-01", "endpointPrefix":"importexport", "globalEndpoint":"importexport.amazonaws.com", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/api-2.json index 43e7b62be..dc492abe5 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/api-2.json @@ -7,7 +7,8 @@ "protocol":"json", "serviceFullName":"Amazon Inspector", "signatureVersion":"v4", - "targetPrefix":"InspectorService" + "targetPrefix":"InspectorService", + "uid":"inspector-2016-02-16" }, "operations":{ "AddAttributesToFindings":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/docs-2.json index 2f3ec30b7..3c66b1de6 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/docs-2.json @@ -263,7 +263,7 @@ "base": null, "refs": { "AssessmentRun$name": "

The auto-generated name for the assessment run.

", - "StartAssessmentRunRequest$assessmentRunName": "

You can specify the name for the assessment run, or you can use the auto-generated name that is based on the assessment template name. The name must be unique for the assessment template.

" + "StartAssessmentRunRequest$assessmentRunName": "

You can specify the name for the assessment run. The name must be unique for the assessment template whose ARN is used to start the assessment run.

" } }, "AssessmentRunNotification": { @@ -428,7 +428,7 @@ "refs": { "DescribeAssessmentRunsRequest$assessmentRunArns": "

The ARN that specifies the assessment run that you want to describe.

", "DescribeAssessmentTargetsRequest$assessmentTargetArns": "

The ARNs that specifies the assessment targets that you want to describe.

", - "DescribeAssessmentTemplatesRequest$assessmentTemplateArns": "

The ARN that specifiesthe assessment templates that you want to describe.

", + "DescribeAssessmentTemplatesRequest$assessmentTemplateArns": null, "DescribeFindingsRequest$findingArns": "

The ARN that specifies the finding that you want to describe.

", "DescribeResourceGroupsRequest$resourceGroupArns": "

The ARN that specifies the resource group that you want to describe.

", "DescribeRulesPackagesRequest$rulesPackageArns": "

The ARN that specifies the rules package that you want to describe.

" diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/examples-1.json index 0ea7e3b0b..24fcb7a9d 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/examples-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/examples-1.json @@ -1,5 +1,1140 @@ { "version": "1.0", "examples": { + "AddAttributesToFindings": [ + { + "input": { + "attributes": [ + { + "key": "Example", + "value": "example" + } + ], + "findingArns": [ + "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-8l1VIE0D/run/0-Z02cjjug/finding/0-T8yM9mEU" + ] + }, + "output": { + "failedItems": { + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.", + "id": "add-attributes-to-findings-1481063856401", + "title": "Add attributes to findings" + } + ], + "CreateAssessmentTarget": [ + { + "input": { + "assessmentTargetName": "ExampleAssessmentTarget", + "resourceGroupArn": "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-AB6DMKnv" + }, + "output": { + "assessmentTargetArn": "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup. You can create up to 50 assessment targets per AWS account. You can run up to 500 concurrent agents per AWS account.", + "id": "create-assessment-target-1481063953657", + "title": "Create assessment target" + } + ], + "CreateAssessmentTemplate": [ + { + "input": { + "assessmentTargetArn": "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX", + "assessmentTemplateName": "ExampleAssessmentTemplate", + "durationInSeconds": 180, + "rulesPackageArns": [ + "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-11B9DBXp" + ], + "userAttributesForFindings": [ + { + "key": "Example", + "value": "example" + } + ] + }, + "output": { + "assessmentTemplateArn": "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Creates an assessment template for the assessment target that is specified by the ARN of the assessment target.", + "id": "create-assessment-template-1481064046719", + "title": "Create assessment template" + } + ], + "CreateResourceGroup": [ + { + "input": { + "resourceGroupTags": [ + { + "key": "Name", + "value": "example" + } + ] + }, + "output": { + "resourceGroupArn": "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-AB6DMKnv" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2 instances to be included in an Amazon Inspector assessment target. The created resource group is then used to create an Amazon Inspector assessment target. ", + "id": "create-resource-group-1481064169037", + "title": "Create resource group" + } + ], + "DeleteAssessmentRun": [ + { + "input": { + "assessmentRunArn": "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T/run/0-11LMTAVe" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Deletes the assessment run that is specified by the ARN of the assessment run.", + "id": "delete-assessment-run-1481064251629", + "title": "Delete assessment run" + } + ], + "DeleteAssessmentTarget": [ + { + "input": { + "assessmentTargetArn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Deletes the assessment target that is specified by the ARN of the assessment target.", + "id": "delete-assessment-target-1481064309029", + "title": "Delete assessment target" + } + ], + "DeleteAssessmentTemplate": [ + { + "input": { + "assessmentTemplateArn": "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Deletes the assessment template that is specified by the ARN of the assessment template.", + "id": "delete-assessment-template-1481064364074", + "title": "Delete assessment template" + } + ], + "DescribeAssessmentRuns": [ + { + "input": { + "assessmentRunArns": [ + "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE" + ] + }, + "output": { + "assessmentRuns": [ + { + "name": "Run 1 for ExampleAssessmentTemplate", + "arn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE", + "assessmentTemplateArn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw", + "completedAt": "1458680301.4", + "createdAt": "1458680170.035", + "dataCollected": true, + "durationInSeconds": 3600, + "notifications": [ + + ], + "rulesPackageArns": [ + "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-X1KXtawP" + ], + "startedAt": "1458680170.161", + "state": "COMPLETED", + "stateChangedAt": "1458680301.4", + "stateChanges": [ + { + "state": "CREATED", + "stateChangedAt": "1458680170.035" + }, + { + "state": "START_DATA_COLLECTION_PENDING", + "stateChangedAt": "1458680170.065" + }, + { + "state": "START_DATA_COLLECTION_IN_PROGRESS", + "stateChangedAt": "1458680170.096" + }, + { + "state": "COLLECTING_DATA", + "stateChangedAt": "1458680170.161" + }, + { + "state": "STOP_DATA_COLLECTION_PENDING", + "stateChangedAt": "1458680239.883" + }, + { + "state": "DATA_COLLECTED", + "stateChangedAt": "1458680299.847" + }, + { + "state": "EVALUATING_RULES", + "stateChangedAt": "1458680300.099" + }, + { + "state": "COMPLETED", + "stateChangedAt": "1458680301.4" + } + ], + "userAttributesForFindings": [ + + ] + } + ], + "failedItems": { + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Describes the assessment runs that are specified by the ARNs of the assessment runs.", + "id": "describte-assessment-runs-1481064424352", + "title": "Describte assessment runs" + } + ], + "DescribeAssessmentTargets": [ + { + "input": { + "assessmentTargetArns": [ + "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq" + ] + }, + "output": { + "assessmentTargets": [ + { + "name": "ExampleAssessmentTarget", + "arn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq", + "createdAt": "1458074191.459", + "resourceGroupArn": "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-PyGXopAI", + "updatedAt": "1458074191.459" + } + ], + "failedItems": { + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Describes the assessment targets that are specified by the ARNs of the assessment targets.", + "id": "describte-assessment-targets-1481064527735", + "title": "Describte assessment targets" + } + ], + "DescribeAssessmentTemplates": [ + { + "input": { + "assessmentTemplateArns": [ + "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw" + ] + }, + "output": { + "assessmentTemplates": [ + { + "name": "ExampleAssessmentTemplate", + "arn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw", + "assessmentTargetArn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq", + "createdAt": "1458074191.844", + "durationInSeconds": 3600, + "rulesPackageArns": [ + "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-X1KXtawP" + ], + "userAttributesForFindings": [ + + ] + } + ], + "failedItems": { + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Describes the assessment templates that are specified by the ARNs of the assessment templates.", + "id": "describte-assessment-templates-1481064606829", + "title": "Describte assessment templates" + } + ], + "DescribeCrossAccountAccessRole": [ + { + "output": { + "registeredAt": "1458069182.826", + "roleArn": "arn:aws:iam::123456789012:role/inspector", + "valid": true + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Describes the IAM role that enables Amazon Inspector to access your AWS account.", + "id": "describte-cross-account-access-role-1481064682267", + "title": "Describte cross account access role" + } + ], + "DescribeFindings": [ + { + "input": { + "findingArns": [ + "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE/finding/0-HwPnsDm4" + ] + }, + "output": { + "failedItems": { + }, + "findings": [ + { + "arn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE/finding/0-HwPnsDm4", + "assetAttributes": { + "ipv4Addresses": [ + + ], + "schemaVersion": 1 + }, + "assetType": "ec2-instance", + "attributes": [ + + ], + "confidence": 10, + "createdAt": "1458680301.37", + "description": "Amazon Inspector did not find any potential security issues during this assessment.", + "indicatorOfCompromise": false, + "numericSeverity": 0, + "recommendation": "No remediation needed.", + "schemaVersion": 1, + "service": "Inspector", + "serviceAttributes": { + "assessmentRunArn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE", + "rulesPackageArn": "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-X1KXtawP", + "schemaVersion": 1 + }, + "severity": "Informational", + "title": "No potential security issues found", + "updatedAt": "1458680301.37", + "userAttributes": [ + + ] + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Describes the findings that are specified by the ARNs of the findings.", + "id": "describte-findings-1481064771803", + "title": "Describe findings" + } + ], + "DescribeResourceGroups": [ + { + "input": { + "resourceGroupArns": [ + "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-PyGXopAI" + ] + }, + "output": { + "failedItems": { + }, + "resourceGroups": [ + { + "arn": "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-PyGXopAI", + "createdAt": "1458074191.098", + "tags": [ + { + "key": "Name", + "value": "example" + } + ] + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Describes the resource groups that are specified by the ARNs of the resource groups.", + "id": "describe-resource-groups-1481065787743", + "title": "Describe resource groups" + } + ], + "DescribeRulesPackages": [ + { + "input": { + "rulesPackageArns": [ + "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-JJOtZiqQ" + ] + }, + "output": { + "failedItems": { + }, + "rulesPackages": [ + { + "version": "1.1", + "name": "Security Best Practices", + "arn": "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-JJOtZiqQ", + "description": "The rules in this package help determine whether your systems are configured securely.", + "provider": "Amazon Web Services, Inc." + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Describes the rules packages that are specified by the ARNs of the rules packages.", + "id": "describe-rules-packages-1481069641979", + "title": "Describe rules packages" + } + ], + "GetTelemetryMetadata": [ + { + "input": { + "assessmentRunArn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE" + }, + "output": { + "telemetryMetadata": [ + { + "count": 2, + "dataSize": 345, + "messageType": "InspectorDuplicateProcess" + }, + { + "count": 3, + "dataSize": 255, + "messageType": "InspectorTimeEventMsg" + }, + { + "count": 4, + "dataSize": 1082, + "messageType": "InspectorNetworkInterface" + }, + { + "count": 2, + "dataSize": 349, + "messageType": "InspectorDnsEntry" + }, + { + "count": 11, + "dataSize": 2514, + "messageType": "InspectorDirectoryInfoMsg" + }, + { + "count": 1, + "dataSize": 179, + "messageType": "InspectorTcpV6ListeningPort" + }, + { + "count": 101, + "dataSize": 10949, + "messageType": "InspectorTerminal" + }, + { + "count": 26, + "dataSize": 5916, + "messageType": "InspectorUser" + }, + { + "count": 282, + "dataSize": 32148, + "messageType": "InspectorDynamicallyLoadedCodeModule" + }, + { + "count": 18, + "dataSize": 10172, + "messageType": "InspectorCreateProcess" + }, + { + "count": 3, + "dataSize": 8001, + "messageType": "InspectorProcessPerformance" + }, + { + "count": 1, + "dataSize": 360, + "messageType": "InspectorOperatingSystem" + }, + { + "count": 6, + "dataSize": 546, + "messageType": "InspectorStopProcess" + }, + { + "count": 1, + "dataSize": 1553, + "messageType": "InspectorInstanceMetaData" + }, + { + "count": 2, + "dataSize": 434, + "messageType": "InspectorTcpV4Connection" + }, + { + "count": 474, + "dataSize": 2960322, + "messageType": "InspectorPackageInfo" + }, + { + "count": 3, + "dataSize": 2235, + "messageType": "InspectorSystemPerformance" + }, + { + "count": 105, + "dataSize": 46048, + "messageType": "InspectorCodeModule" + }, + { + "count": 1, + "dataSize": 182, + "messageType": "InspectorUdpV6ListeningPort" + }, + { + "count": 2, + "dataSize": 371, + "messageType": "InspectorUdpV4ListeningPort" + }, + { + "count": 18, + "dataSize": 8362, + "messageType": "InspectorKernelModule" + }, + { + "count": 29, + "dataSize": 48788, + "messageType": "InspectorConfigurationInfo" + }, + { + "count": 1, + "dataSize": 79, + "messageType": "InspectorMonitoringStart" + }, + { + "count": 5, + "dataSize": 0, + "messageType": "InspectorSplitMsgBegin" + }, + { + "count": 51, + "dataSize": 4593, + "messageType": "InspectorGroup" + }, + { + "count": 1, + "dataSize": 184, + "messageType": "InspectorTcpV4ListeningPort" + }, + { + "count": 1159, + "dataSize": 3146579, + "messageType": "Total" + }, + { + "count": 5, + "dataSize": 0, + "messageType": "InspectorSplitMsgEnd" + }, + { + "count": 1, + "dataSize": 612, + "messageType": "InspectorLoadImageInProcess" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Information about the data that is collected for the specified assessment run.", + "id": "get-telemetry-metadata-1481066021297", + "title": "Get telemetry metadata" + } + ], + "ListAssessmentRunAgents": [ + { + "input": { + "assessmentRunArn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE", + "maxResults": 123 + }, + "output": { + "assessmentRunAgents": [ + { + "agentHealth": "HEALTHY", + "agentHealthCode": "RUNNING", + "agentId": "i-49113b93", + "assessmentRunArn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE", + "telemetryMetadata": [ + { + "count": 2, + "dataSize": 345, + "messageType": "InspectorDuplicateProcess" + }, + { + "count": 3, + "dataSize": 255, + "messageType": "InspectorTimeEventMsg" + }, + { + "count": 4, + "dataSize": 1082, + "messageType": "InspectorNetworkInterface" + }, + { + "count": 2, + "dataSize": 349, + "messageType": "InspectorDnsEntry" + }, + { + "count": 11, + "dataSize": 2514, + "messageType": "InspectorDirectoryInfoMsg" + }, + { + "count": 1, + "dataSize": 179, + "messageType": "InspectorTcpV6ListeningPort" + }, + { + "count": 101, + "dataSize": 10949, + "messageType": "InspectorTerminal" + }, + { + "count": 26, + "dataSize": 5916, + "messageType": "InspectorUser" + }, + { + "count": 282, + "dataSize": 32148, + "messageType": "InspectorDynamicallyLoadedCodeModule" + }, + { + "count": 18, + "dataSize": 10172, + "messageType": "InspectorCreateProcess" + }, + { + "count": 3, + "dataSize": 8001, + "messageType": "InspectorProcessPerformance" + }, + { + "count": 1, + "dataSize": 360, + "messageType": "InspectorOperatingSystem" + }, + { + "count": 6, + "dataSize": 546, + "messageType": "InspectorStopProcess" + }, + { + "count": 1, + "dataSize": 1553, + "messageType": "InspectorInstanceMetaData" + }, + { + "count": 2, + "dataSize": 434, + "messageType": "InspectorTcpV4Connection" + }, + { + "count": 474, + "dataSize": 2960322, + "messageType": "InspectorPackageInfo" + }, + { + "count": 3, + "dataSize": 2235, + "messageType": "InspectorSystemPerformance" + }, + { + "count": 105, + "dataSize": 46048, + "messageType": "InspectorCodeModule" + }, + { + "count": 1, + "dataSize": 182, + "messageType": "InspectorUdpV6ListeningPort" + }, + { + "count": 2, + "dataSize": 371, + "messageType": "InspectorUdpV4ListeningPort" + }, + { + "count": 18, + "dataSize": 8362, + "messageType": "InspectorKernelModule" + }, + { + "count": 29, + "dataSize": 48788, + "messageType": "InspectorConfigurationInfo" + }, + { + "count": 1, + "dataSize": 79, + "messageType": "InspectorMonitoringStart" + }, + { + "count": 5, + "dataSize": 0, + "messageType": "InspectorSplitMsgBegin" + }, + { + "count": 51, + "dataSize": 4593, + "messageType": "InspectorGroup" + }, + { + "count": 1, + "dataSize": 184, + "messageType": "InspectorTcpV4ListeningPort" + }, + { + "count": 1159, + "dataSize": 3146579, + "messageType": "Total" + }, + { + "count": 5, + "dataSize": 0, + "messageType": "InspectorSplitMsgEnd" + }, + { + "count": 1, + "dataSize": 612, + "messageType": "InspectorLoadImageInProcess" + } + ] + } + ], + "nextToken": "1" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.", + "id": "list-assessment-run-agents-1481918140642", + "title": "List assessment run agents" + } + ], + "ListAssessmentRuns": [ + { + "input": { + "assessmentTemplateArns": [ + "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw" + ], + "maxResults": 123 + }, + "output": { + "assessmentRunArns": [ + "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE", + "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-v5D6fI3v" + ], + "nextToken": "1" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.", + "id": "list-assessment-runs-1481066340844", + "title": "List assessment runs" + } + ], + "ListAssessmentTargets": [ + { + "input": { + "maxResults": 123 + }, + "output": { + "assessmentTargetArns": [ + "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq" + ], + "nextToken": "1" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists the ARNs of the assessment targets within this AWS account. ", + "id": "list-assessment-targets-1481066540849", + "title": "List assessment targets" + } + ], + "ListAssessmentTemplates": [ + { + "input": { + "assessmentTargetArns": [ + "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq" + ], + "maxResults": 123 + }, + "output": { + "assessmentTemplateArns": [ + "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw", + "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-Uza6ihLh" + ], + "nextToken": "1" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.", + "id": "list-assessment-templates-1481066623520", + "title": "List assessment templates" + } + ], + "ListEventSubscriptions": [ + { + "input": { + "maxResults": 123, + "resourceArn": "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-7sbz2Kz0" + }, + "output": { + "nextToken": "1", + "subscriptions": [ + { + "eventSubscriptions": [ + { + "event": "ASSESSMENT_RUN_COMPLETED", + "subscribedAt": "1459455440.867" + } + ], + "resourceArn": "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-7sbz2Kz0", + "topicArn": "arn:aws:sns:us-west-2:123456789012:exampletopic" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template. ", + "id": "list-event-subscriptions-1481068376945", + "title": "List event subscriptions" + } + ], + "ListFindings": [ + { + "input": { + "assessmentRunArns": [ + "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE" + ], + "maxResults": 123 + }, + "output": { + "findingArns": [ + "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE/finding/0-HwPnsDm4", + "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-v5D6fI3v/finding/0-tyvmqBLy" + ], + "nextToken": "1" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.", + "id": "list-findings-1481066840611", + "title": "List findings" + } + ], + "ListRulesPackages": [ + { + "input": { + "maxResults": 123 + }, + "output": { + "nextToken": "1", + "rulesPackageArns": [ + "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-9hgA516p", + "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-H5hpSawc", + "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-JJOtZiqQ", + "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-vg5GGHSD" + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists all available Amazon Inspector rules packages.", + "id": "list-rules-packages-1481066954883", + "title": "List rules packages" + } + ], + "ListTagsForResource": [ + { + "input": { + "resourceArn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-gcwFliYu" + }, + "output": { + "tags": [ + { + "key": "Name", + "value": "Example" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists all tags associated with an assessment template.", + "id": "list-tags-for-resource-1481067025240", + "title": "List tags for resource" + } + ], + "PreviewAgents": [ + { + "input": { + "maxResults": 123, + "previewAgentsArn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq" + }, + "output": { + "agentPreviews": [ + { + "agentId": "i-49113b93" + } + ], + "nextToken": "1" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Previews the agents installed on the EC2 instances that are part of the specified assessment target.", + "id": "preview-agents-1481067101888", + "title": "Preview agents" + } + ], + "RegisterCrossAccountAccessRole": [ + { + "input": { + "roleArn": "arn:aws:iam::123456789012:role/inspector" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Registers the IAM role that Amazon Inspector uses to list your EC2 instances at the start of the assessment run or when you call the PreviewAgents action.", + "id": "register-cross-account-access-role-1481067178301", + "title": "Register cross account access role" + } + ], + "RemoveAttributesFromFindings": [ + { + "input": { + "attributeKeys": [ + "key=Example,value=example" + ], + "findingArns": [ + "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-8l1VIE0D/run/0-Z02cjjug/finding/0-T8yM9mEU" + ] + }, + "output": { + "failedItems": { + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Removes entire attributes (key and value pairs) from the findings that are specified by the ARNs of the findings where an attribute with the specified key exists.", + "id": "remove-attributes-from-findings-1481067246548", + "title": "Remove attributes from findings" + } + ], + "SetTagsForResource": [ + { + "input": { + "resourceArn": "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-7sbz2Kz0", + "tags": [ + { + "key": "Example", + "value": "example" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template.", + "id": "set-tags-for-resource-1481067329646", + "title": "Set tags for resource" + } + ], + "StartAssessmentRun": [ + { + "input": { + "assessmentRunName": "examplerun", + "assessmentTemplateArn": "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T" + }, + "output": { + "assessmentRunArn": "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T/run/0-jOoroxyY" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Starts the assessment run specified by the ARN of the assessment template. For this API to function properly, you must not exceed the limit of running up to 500 concurrent agents per AWS account.", + "id": "start-assessment-run-1481067407484", + "title": "Start assessment run" + } + ], + "StopAssessmentRun": [ + { + "input": { + "assessmentRunArn": "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T/run/0-11LMTAVe" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Stops the assessment run that is specified by the ARN of the assessment run.", + "id": "stop-assessment-run-1481067502857", + "title": "Stop assessment run" + } + ], + "SubscribeToEvent": [ + { + "input": { + "event": "ASSESSMENT_RUN_COMPLETED", + "resourceArn": "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-7sbz2Kz0", + "topicArn": "arn:aws:sns:us-west-2:123456789012:exampletopic" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.", + "id": "subscribe-to-event-1481067686031", + "title": "Subscribe to event" + } + ], + "UnsubscribeFromEvent": [ + { + "input": { + "event": "ASSESSMENT_RUN_COMPLETED", + "resourceArn": "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-7sbz2Kz0", + "topicArn": "arn:aws:sns:us-west-2:123456789012:exampletopic" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.", + "id": "unsubscribe-from-event-1481067781705", + "title": "Unsubscribe from event" + } + ], + "UpdateAssessmentTarget": [ + { + "input": { + "assessmentTargetArn": "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX", + "assessmentTargetName": "Example", + "resourceGroupArn": "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-yNbgL5Pt" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Updates the assessment target that is specified by the ARN of the assessment target.", + "id": "update-assessment-target-1481067866692", + "title": "Update assessment target" + } + ] } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iot-data/2015-05-28/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iot-data/2015-05-28/api-2.json index 9f6a9f4af..3d4bd1e56 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iot-data/2015-05-28/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/iot-data/2015-05-28/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"iot-data-2015-05-28", "apiVersion":"2015-05-28", "endpointPrefix":"data.iot", "protocol":"rest-json", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/api-2.json index b57425f7a..9bf27dbad 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"iot-2015-05-28", "apiVersion":"2015-05-28", "endpointPrefix":"iot", "serviceFullName":"AWS IoT", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/api-2.json index 1f24a5aaf..b34a9a937 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"kinesis-2013-12-02", "apiVersion":"2013-12-02", "endpointPrefix":"kinesis", "jsonVersion":"1.1", @@ -48,7 +49,6 @@ "errors":[ {"shape":"ResourceInUseException"}, {"shape":"ResourceNotFoundException"}, - {"shape":"LimitExceededException"}, {"shape":"InvalidArgumentException"} ] }, @@ -64,6 +64,18 @@ {"shape":"LimitExceededException"} ] }, + "DescribeLimits":{ + "name":"DescribeLimits", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeLimitsInput"}, + "output":{"shape":"DescribeLimitsOutput"}, + "errors":[ + {"shape":"LimitExceededException"} + ] + }, "DescribeStream":{ "name":"DescribeStream", "http":{ @@ -146,7 +158,6 @@ "errors":[ {"shape":"ResourceInUseException"}, {"shape":"ResourceNotFoundException"}, - {"shape":"LimitExceededException"}, {"shape":"InvalidArgumentException"} ] }, @@ -245,6 +256,21 @@ {"shape":"InvalidArgumentException"}, {"shape":"LimitExceededException"} ] + }, + "UpdateShardCount":{ + "name":"UpdateShardCount", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateShardCountInput"}, + "output":{"shape":"UpdateShardCountOutput"}, + "errors":[ + {"shape":"InvalidArgumentException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceInUseException"}, + {"shape":"ResourceNotFoundException"} + ] } }, "shapes":{ @@ -259,7 +285,6 @@ "Tags":{"shape":"TagMap"} } }, - "ApproximateArrivalTimestamp":{"type":"timestamp"}, "BooleanObject":{"type":"boolean"}, "CreateStreamInput":{ "type":"structure", @@ -285,7 +310,7 @@ ], "members":{ "StreamName":{"shape":"StreamName"}, - "RetentionPeriodHours":{"shape":"RetentionPeriodHours"} + "RetentionPeriodHours":{"shape":"PositiveIntegerObject"} } }, "DeleteStreamInput":{ @@ -295,6 +320,22 @@ "StreamName":{"shape":"StreamName"} } }, + "DescribeLimitsInput":{ + "type":"structure", + "members":{ + } + }, + "DescribeLimitsOutput":{ + "type":"structure", + "required":[ + "ShardLimit", + "OpenShardCount" + ], + "members":{ + "ShardLimit":{"shape":"ShardCountObject"}, + "OpenShardCount":{"shape":"ShardCountObject"} + } + }, "DescribeStreamInput":{ "type":"structure", "required":["StreamName"], @@ -431,7 +472,7 @@ ], "members":{ "StreamName":{"shape":"StreamName"}, - "RetentionPeriodHours":{"shape":"RetentionPeriodHours"} + "RetentionPeriodHours":{"shape":"PositiveIntegerObject"} } }, "InvalidArgumentException":{ @@ -636,7 +677,7 @@ ], "members":{ "SequenceNumber":{"shape":"SequenceNumber"}, - "ApproximateArrivalTimestamp":{"shape":"ApproximateArrivalTimestamp"}, + "ApproximateArrivalTimestamp":{"shape":"Timestamp"}, "Data":{"shape":"Data"}, "PartitionKey":{"shape":"PartitionKey"} } @@ -670,10 +711,9 @@ }, "exception":true }, - "RetentionPeriodHours":{ - "type":"integer", - "max":168, - "min":24 + "ScalingType":{ + "type":"string", + "enum":["UNIFORM_SCALING"] }, "SequenceNumber":{ "type":"string", @@ -702,6 +742,11 @@ "SequenceNumberRange":{"shape":"SequenceNumberRange"} } }, + "ShardCountObject":{ + "type":"integer", + "max":1000000, + "min":0 + }, "ShardId":{ "type":"string", "max":128, @@ -750,6 +795,7 @@ "Shards", "HasMoreShards", "RetentionPeriodHours", + "StreamCreationTimestamp", "EnhancedMonitoring" ], "members":{ @@ -758,7 +804,8 @@ "StreamStatus":{"shape":"StreamStatus"}, "Shards":{"shape":"ShardList"}, "HasMoreShards":{"shape":"BooleanObject"}, - "RetentionPeriodHours":{"shape":"RetentionPeriodHours"}, + "RetentionPeriodHours":{"shape":"PositiveIntegerObject"}, + "StreamCreationTimestamp":{"shape":"Timestamp"}, "EnhancedMonitoring":{"shape":"EnhancedMonitoringList"} } }, @@ -817,6 +864,27 @@ "max":256, "min":0 }, - "Timestamp":{"type":"timestamp"} + "Timestamp":{"type":"timestamp"}, + "UpdateShardCountInput":{ + "type":"structure", + "required":[ + "StreamName", + "TargetShardCount", + "ScalingType" + ], + "members":{ + "StreamName":{"shape":"StreamName"}, + "TargetShardCount":{"shape":"PositiveIntegerObject"}, + "ScalingType":{"shape":"ScalingType"} + } + }, + "UpdateShardCountOutput":{ + "type":"structure", + "members":{ + "StreamName":{"shape":"StreamName"}, + "CurrentShardCount":{"shape":"PositiveIntegerObject"}, + "TargetShardCount":{"shape":"PositiveIntegerObject"} + } + } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/docs-2.json index 09cf0fc16..f95340ed9 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/docs-2.json @@ -2,23 +2,25 @@ "version": "2.0", "service": "Amazon Kinesis Streams Service API Reference

Amazon Kinesis Streams is a managed service that scales elastically for real time processing of streaming big data.

", "operations": { - "AddTagsToStream": "

Adds or updates tags for the specified Amazon Kinesis stream. Each stream can have up to 10 tags.

If tags have already been assigned to the stream, AddTagsToStream overwrites any existing tags that correspond to the specified tag keys.

", - "CreateStream": "

Creates an Amazon Kinesis stream. A stream captures and transports data records that are continuously emitted from different data sources or producers. Scale-out within a stream is explicitly supported by means of shards, which are uniquely identified groups of data records in a stream.

You specify and control the number of shards that a stream is composed of. Each shard can support reads up to 5 transactions per second, up to a maximum data read total of 2 MB per second. Each shard can support writes up to 1,000 records per second, up to a maximum data write total of 1 MB per second. You can add shards to a stream if the amount of data input increases and you can remove shards if the amount of data input decreases.

The stream name identifies the stream. The name is scoped to the AWS account used by the application. It is also scoped by region. That is, two streams in two different accounts can have the same name, and two streams in the same account, but in two different regions, can have the same name.

CreateStream is an asynchronous operation. Upon receiving a CreateStream request, Amazon Kinesis immediately returns and sets the stream status to CREATING. After the stream is created, Amazon Kinesis sets the stream status to ACTIVE. You should perform read and write operations only on an ACTIVE stream.

You receive a LimitExceededException when making a CreateStream request if you try to do one of the following:

  • Have more than five streams in the CREATING state at any point in time.
  • Create more shards than are authorized for your account.

For the default shard limit for an AWS account, see Streams Limits in the Amazon Kinesis Streams Developer Guide. If you need to increase this limit, contact AWS Support.

You can use DescribeStream to check the stream status, which is returned in StreamStatus.

CreateStream has a limit of 5 transactions per second per account.

", + "AddTagsToStream": "

Adds or updates tags for the specified Amazon Kinesis stream. Each stream can have up to 10 tags.

If tags have already been assigned to the stream, AddTagsToStream overwrites any existing tags that correspond to the specified tag keys.

", + "CreateStream": "

Creates an Amazon Kinesis stream. A stream captures and transports data records that are continuously emitted from different data sources or producers. Scale-out within a stream is explicitly supported by means of shards, which are uniquely identified groups of data records in a stream.

You specify and control the number of shards that a stream is composed of. Each shard can support reads up to 5 transactions per second, up to a maximum data read total of 2 MB per second. Each shard can support writes up to 1,000 records per second, up to a maximum data write total of 1 MB per second. You can add shards to a stream if the amount of data input increases and you can remove shards if the amount of data input decreases.

The stream name identifies the stream. The name is scoped to the AWS account used by the application. It is also scoped by region. That is, two streams in two different accounts can have the same name, and two streams in the same account, but in two different regions, can have the same name.

CreateStream is an asynchronous operation. Upon receiving a CreateStream request, Amazon Kinesis immediately returns and sets the stream status to CREATING. After the stream is created, Amazon Kinesis sets the stream status to ACTIVE. You should perform read and write operations only on an ACTIVE stream.

You receive a LimitExceededException when making a CreateStream request if you try to do one of the following:

  • Have more than five streams in the CREATING state at any point in time.

  • Create more shards than are authorized for your account.

For the default shard limit for an AWS account, see Streams Limits in the Amazon Kinesis Streams Developer Guide. If you need to increase this limit, contact AWS Support.

You can use DescribeStream to check the stream status, which is returned in StreamStatus.

CreateStream has a limit of 5 transactions per second per account.

", "DecreaseStreamRetentionPeriod": "

Decreases the Amazon Kinesis stream's retention period, which is the length of time data records are accessible after they are added to the stream. The minimum value of a stream's retention period is 24 hours.

This operation may result in lost data. For example, if the stream's retention period is 48 hours and is decreased to 24 hours, any data already in the stream that is older than 24 hours is inaccessible.

", - "DeleteStream": "

Deletes an Amazon Kinesis stream and all its shards and data. You must shut down any applications that are operating on the stream before you delete the stream. If an application attempts to operate on a deleted stream, it will receive the exception ResourceNotFoundException.

If the stream is in the ACTIVE state, you can delete it. After a DeleteStream request, the specified stream is in the DELETING state until Amazon Kinesis completes the deletion.

Note: Amazon Kinesis might continue to accept data read and write operations, such as PutRecord, PutRecords, and GetRecords, on a stream in the DELETING state until the stream deletion is complete.

When you delete a stream, any shards in that stream are also deleted, and any tags are dissociated from the stream.

You can use the DescribeStream operation to check the state of the stream, which is returned in StreamStatus.

DeleteStream has a limit of 5 transactions per second per account.

", - "DescribeStream": "

Describes the specified Amazon Kinesis stream.

The information about the stream includes its current status, its Amazon Resource Name (ARN), and an array of shard objects. For each shard object, there is information about the hash key and sequence number ranges that the shard spans, and the IDs of any earlier shards that played in a role in creating the shard. A sequence number is the identifier associated with every record ingested in the stream. The sequence number is assigned when a record is put into the stream.

You can limit the number of returned shards using the Limit parameter. The number of shards in a stream may be too large to return from a single call to DescribeStream. You can detect this by using the HasMoreShards flag in the returned output. HasMoreShards is set to true when there is more data available.

DescribeStream is a paginated operation. If there are more shards available, you can request them using the shard ID of the last shard returned. Specify this ID in the ExclusiveStartShardId parameter in a subsequent request to DescribeStream.

There are no guarantees about the chronological order shards returned in DescribeStream results. If you want to process shards in chronological order, use ParentShardId to track lineage to the oldest shard.

DescribeStream has a limit of 10 transactions per second per account.

", + "DeleteStream": "

Deletes an Amazon Kinesis stream and all its shards and data. You must shut down any applications that are operating on the stream before you delete the stream. If an application attempts to operate on a deleted stream, it will receive the exception ResourceNotFoundException.

If the stream is in the ACTIVE state, you can delete it. After a DeleteStream request, the specified stream is in the DELETING state until Amazon Kinesis completes the deletion.

Note: Amazon Kinesis might continue to accept data read and write operations, such as PutRecord, PutRecords, and GetRecords, on a stream in the DELETING state until the stream deletion is complete.

When you delete a stream, any shards in that stream are also deleted, and any tags are dissociated from the stream.

You can use the DescribeStream operation to check the state of the stream, which is returned in StreamStatus.

DeleteStream has a limit of 5 transactions per second per account.

", + "DescribeLimits": "

Describes the shard limits and usage for the account.

If you update your account limits, the old limits might be returned for a few minutes.

This operation has a limit of 1 transaction per second per account.

", + "DescribeStream": "

Describes the specified Amazon Kinesis stream.

The information returned includes the stream name, Amazon Resource Name (ARN), creation time, enhanced metric configuration, and shard map. The shard map is an array of shard objects. For each shard object, there is the hash key and sequence number ranges that the shard spans, and the IDs of any earlier shards that played in a role in creating the shard. Every record ingested in the stream is identified by a sequence number, which is assigned when the record is put into the stream.

You can limit the number of shards returned by each call. For more information, see Retrieving Shards from a Stream in the Amazon Kinesis Streams Developer Guide.

There are no guarantees about the chronological order shards returned. To process shards in chronological order, use the ID of the parent shard to track the lineage to the oldest shard.

This operation has a limit of 10 transactions per second per account.

", "DisableEnhancedMonitoring": "

Disables enhanced monitoring.

", "EnableEnhancedMonitoring": "

Enables enhanced Amazon Kinesis stream monitoring for shard-level metrics.

", "GetRecords": "

Gets data records from an Amazon Kinesis stream's shard.

Specify a shard iterator using the ShardIterator parameter. The shard iterator specifies the position in the shard from which you want to start reading data records sequentially. If there are no records available in the portion of the shard that the iterator points to, GetRecords returns an empty list. Note that it might take multiple calls to get to a portion of the shard that contains records.

You can scale by provisioning multiple shards per stream while considering service limits (for more information, see Streams Limits in the Amazon Kinesis Streams Developer Guide). Your application should have one thread per shard, each reading continuously from its stream. To read from a stream continually, call GetRecords in a loop. Use GetShardIterator to get the shard iterator to specify in the first GetRecords call. GetRecords returns a new shard iterator in NextShardIterator. Specify the shard iterator returned in NextShardIterator in subsequent calls to GetRecords. Note that if the shard has been closed, the shard iterator can't return more data and GetRecords returns null in NextShardIterator. You can terminate the loop when the shard is closed, or when the shard iterator reaches the record with the sequence number or other attribute that marks it as the last record to process.

Each data record can be up to 1 MB in size, and each shard can read up to 2 MB per second. You can ensure that your calls don't exceed the maximum supported size or throughput by using the Limit parameter to specify the maximum number of records that GetRecords can return. Consider your average record size when determining this limit.

The size of the data returned by GetRecords varies depending on the utilization of the shard. The maximum size of data that GetRecords can return is 10 MB. If a call returns this amount of data, subsequent calls made within the next 5 seconds throw ProvisionedThroughputExceededException. If there is insufficient provisioned throughput on the shard, subsequent calls made within the next 1 second throw ProvisionedThroughputExceededException. Note that GetRecords won't return any data when it throws an exception. For this reason, we recommend that you wait one second between calls to GetRecords; however, it's possible that the application will get exceptions for longer than 1 second.

To detect whether the application is falling behind in processing, you can use the MillisBehindLatest response attribute. You can also monitor the stream using CloudWatch metrics and other mechanisms (see Monitoring in the Amazon Kinesis Streams Developer Guide).

Each Amazon Kinesis record includes a value, ApproximateArrivalTimestamp, that is set when a stream successfully receives and stores a record. This is commonly referred to as a server-side timestamp, whereas a client-side timestamp is set when a data producer creates or sends the record to a stream (a data producer is any data source putting data records into a stream, for example with PutRecords). The timestamp has millisecond precision. There are no guarantees about the timestamp accuracy, or that the timestamp is always increasing. For example, records in a shard or across a stream might have timestamps that are out of order.

", - "GetShardIterator": "

Gets an Amazon Kinesis shard iterator. A shard iterator expires five minutes after it is returned to the requester.

A shard iterator specifies the shard position from which to start reading data records sequentially. The position is specified using the sequence number of a data record in a shard. A sequence number is the identifier associated with every record ingested in the stream, and is assigned when a record is put into the stream. Each stream has one or more shards.

You must specify the shard iterator type. For example, you can set the ShardIteratorType parameter to read exactly from the position denoted by a specific sequence number by using the AT_SEQUENCE_NUMBER shard iterator type, or right after the sequence number by using the AFTER_SEQUENCE_NUMBER shard iterator type, using sequence numbers returned by earlier calls to PutRecord, PutRecords, GetRecords, or DescribeStream. In the request, you can specify the shard iterator type AT_TIMESTAMP to read records from an arbitrary point in time, TRIM_HORIZON to cause ShardIterator to point to the last untrimmed record in the shard in the system (the oldest data record in the shard), or LATEST so that you always read the most recent data in the shard.

When you read repeatedly from a stream, use a GetShardIterator request to get the first shard iterator for use in your first GetRecords request and for subsequent reads use the shard iterator returned by the GetRecords request in NextShardIterator. A new shard iterator is returned by every GetRecords request in NextShardIterator, which you use in the ShardIterator parameter of the next GetRecords request.

If a GetShardIterator request is made too often, you receive a ProvisionedThroughputExceededException. For more information about throughput limits, see GetRecords, and Streams Limits in the Amazon Kinesis Streams Developer Guide.

If the shard is closed, GetShardIterator returns a valid iterator for the last sequence number of the shard. Note that a shard can be closed as a result of using SplitShard or MergeShards.

GetShardIterator has a limit of 5 transactions per second per account per open shard.

", + "GetShardIterator": "

Gets an Amazon Kinesis shard iterator. A shard iterator expires five minutes after it is returned to the requester.

A shard iterator specifies the shard position from which to start reading data records sequentially. The position is specified using the sequence number of a data record in a shard. A sequence number is the identifier associated with every record ingested in the stream, and is assigned when a record is put into the stream. Each stream has one or more shards.

You must specify the shard iterator type. For example, you can set the ShardIteratorType parameter to read exactly from the position denoted by a specific sequence number by using the AT_SEQUENCE_NUMBER shard iterator type, or right after the sequence number by using the AFTER_SEQUENCE_NUMBER shard iterator type, using sequence numbers returned by earlier calls to PutRecord, PutRecords, GetRecords, or DescribeStream. In the request, you can specify the shard iterator type AT_TIMESTAMP to read records from an arbitrary point in time, TRIM_HORIZON to cause ShardIterator to point to the last untrimmed record in the shard in the system (the oldest data record in the shard), or LATEST so that you always read the most recent data in the shard.

When you read repeatedly from a stream, use a GetShardIterator request to get the first shard iterator for use in your first GetRecords request and for subsequent reads use the shard iterator returned by the GetRecords request in NextShardIterator. A new shard iterator is returned by every GetRecords request in NextShardIterator, which you use in the ShardIterator parameter of the next GetRecords request.

If a GetShardIterator request is made too often, you receive a ProvisionedThroughputExceededException. For more information about throughput limits, see GetRecords, and Streams Limits in the Amazon Kinesis Streams Developer Guide.

If the shard is closed, GetShardIterator returns a valid iterator for the last sequence number of the shard. Note that a shard can be closed as a result of using SplitShard or MergeShards.

GetShardIterator has a limit of 5 transactions per second per account per open shard.

", "IncreaseStreamRetentionPeriod": "

Increases the Amazon Kinesis stream's retention period, which is the length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 168 hours (7 days).

Upon choosing a longer stream retention period, this operation will increase the time period records are accessible that have not yet expired. However, it will not make previous data that has expired (older than the stream's previous retention period) accessible after the operation has been called. For example, if a stream's retention period is set to 24 hours and is increased to 168 hours, any data that is older than 24 hours will remain inaccessible to consumer applications.

", - "ListStreams": "

Lists your Amazon Kinesis streams.

The number of streams may be too large to return from a single call to ListStreams. You can limit the number of returned streams using the Limit parameter. If you do not specify a value for the Limit parameter, Amazon Kinesis uses the default limit, which is currently 10.

You can detect if there are more streams available to list by using the HasMoreStreams flag from the returned output. If there are more streams available, you can request more streams by using the name of the last stream returned by the ListStreams request in the ExclusiveStartStreamName parameter in a subsequent request to ListStreams. The group of stream names returned by the subsequent request is then added to the list. You can continue this process until all the stream names have been collected in the list.

ListStreams has a limit of 5 transactions per second per account.

", + "ListStreams": "

Lists your Amazon Kinesis streams.

The number of streams may be too large to return from a single call to ListStreams. You can limit the number of returned streams using the Limit parameter. If you do not specify a value for the Limit parameter, Amazon Kinesis uses the default limit, which is currently 10.

You can detect if there are more streams available to list by using the HasMoreStreams flag from the returned output. If there are more streams available, you can request more streams by using the name of the last stream returned by the ListStreams request in the ExclusiveStartStreamName parameter in a subsequent request to ListStreams. The group of stream names returned by the subsequent request is then added to the list. You can continue this process until all the stream names have been collected in the list.

ListStreams has a limit of 5 transactions per second per account.

", "ListTagsForStream": "

Lists the tags for the specified Amazon Kinesis stream.

", - "MergeShards": "

Merges two adjacent shards in an Amazon Kinesis stream and combines them into a single shard to reduce the stream's capacity to ingest and transport data. Two shards are considered adjacent if the union of the hash key ranges for the two shards form a contiguous set with no gaps. For example, if you have two shards, one with a hash key range of 276...381 and the other with a hash key range of 382...454, then you could merge these two shards into a single shard that would have a hash key range of 276...454. After the merge, the single child shard receives data for all hash key values covered by the two parent shards.

MergeShards is called when there is a need to reduce the overall capacity of a stream because of excess capacity that is not being used. You must specify the shard to be merged and the adjacent shard for a stream. For more information about merging shards, see Merge Two Shards in the Amazon Kinesis Streams Developer Guide.

If the stream is in the ACTIVE state, you can call MergeShards. If a stream is in the CREATING, UPDATING, or DELETING state, MergeShards returns a ResourceInUseException. If the specified stream does not exist, MergeShards returns a ResourceNotFoundException.

You can use DescribeStream to check the state of the stream, which is returned in StreamStatus.

MergeShards is an asynchronous operation. Upon receiving a MergeShards request, Amazon Kinesis immediately returns a response and sets the StreamStatus to UPDATING. After the operation is completed, Amazon Kinesis sets the StreamStatus to ACTIVE. Read and write operations continue to work while the stream is in the UPDATING state.

You use DescribeStream to determine the shard IDs that are specified in the MergeShards request.

If you try to operate on too many streams in parallel using CreateStream, DeleteStream, MergeShards or SplitShard, you will receive a LimitExceededException.

MergeShards has limit of 5 transactions per second per account.

", - "PutRecord": "

Writes a single data record into an Amazon Kinesis stream. Call PutRecord to send data into the stream for real-time ingestion and subsequent processing, one record at a time. Each shard can support writes up to 1,000 records per second, up to a maximum data write total of 1 MB per second.

You must specify the name of the stream that captures, stores, and transports the data; a partition key; and the data blob itself.

The data blob can be any type of data; for example, a segment from a log file, geographic/location data, website clickstream data, and so on.

The partition key is used by Amazon Kinesis to distribute data across shards. Amazon Kinesis segregates the data records that belong to a stream into multiple shards, using the partition key associated with each data record to determine which shard a given data record belongs to.

Partition keys are Unicode strings, with a maximum length limit of 256 characters for each key. An MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards using the hash key ranges of the shards. You can override hashing the partition key to determine the shard by explicitly specifying a hash value using the ExplicitHashKey parameter. For more information, see Adding Data to a Stream in the Amazon Kinesis Streams Developer Guide.

PutRecord returns the shard ID of where the data record was placed and the sequence number that was assigned to the data record.

Sequence numbers increase over time and are specific to a shard within a stream, not across all shards within a stream. To guarantee strictly increasing ordering, write serially to a shard and use the SequenceNumberForOrdering parameter. For more information, see Adding Data to a Stream in the Amazon Kinesis Streams Developer Guide.

If a PutRecord request cannot be processed because of insufficient provisioned throughput on the shard involved in the request, PutRecord throws ProvisionedThroughputExceededException.

Data records are accessible for only 24 hours from the time that they are added to a stream.

", + "MergeShards": "

Merges two adjacent shards in an Amazon Kinesis stream and combines them into a single shard to reduce the stream's capacity to ingest and transport data. Two shards are considered adjacent if the union of the hash key ranges for the two shards form a contiguous set with no gaps. For example, if you have two shards, one with a hash key range of 276...381 and the other with a hash key range of 382...454, then you could merge these two shards into a single shard that would have a hash key range of 276...454. After the merge, the single child shard receives data for all hash key values covered by the two parent shards.

MergeShards is called when there is a need to reduce the overall capacity of a stream because of excess capacity that is not being used. You must specify the shard to be merged and the adjacent shard for a stream. For more information about merging shards, see Merge Two Shards in the Amazon Kinesis Streams Developer Guide.

If the stream is in the ACTIVE state, you can call MergeShards. If a stream is in the CREATING, UPDATING, or DELETING state, MergeShards returns a ResourceInUseException. If the specified stream does not exist, MergeShards returns a ResourceNotFoundException.

You can use DescribeStream to check the state of the stream, which is returned in StreamStatus.

MergeShards is an asynchronous operation. Upon receiving a MergeShards request, Amazon Kinesis immediately returns a response and sets the StreamStatus to UPDATING. After the operation is completed, Amazon Kinesis sets the StreamStatus to ACTIVE. Read and write operations continue to work while the stream is in the UPDATING state.

You use DescribeStream to determine the shard IDs that are specified in the MergeShards request.

If you try to operate on too many streams in parallel using CreateStream, DeleteStream, MergeShards or SplitShard, you will receive a LimitExceededException.

MergeShards has limit of 5 transactions per second per account.

", + "PutRecord": "

Writes a single data record into an Amazon Kinesis stream. Call PutRecord to send data into the stream for real-time ingestion and subsequent processing, one record at a time. Each shard can support writes up to 1,000 records per second, up to a maximum data write total of 1 MB per second.

You must specify the name of the stream that captures, stores, and transports the data; a partition key; and the data blob itself.

The data blob can be any type of data; for example, a segment from a log file, geographic/location data, website clickstream data, and so on.

The partition key is used by Amazon Kinesis to distribute data across shards. Amazon Kinesis segregates the data records that belong to a stream into multiple shards, using the partition key associated with each data record to determine which shard a given data record belongs to.

Partition keys are Unicode strings, with a maximum length limit of 256 characters for each key. An MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards using the hash key ranges of the shards. You can override hashing the partition key to determine the shard by explicitly specifying a hash value using the ExplicitHashKey parameter. For more information, see Adding Data to a Stream in the Amazon Kinesis Streams Developer Guide.

PutRecord returns the shard ID of where the data record was placed and the sequence number that was assigned to the data record.

Sequence numbers increase over time and are specific to a shard within a stream, not across all shards within a stream. To guarantee strictly increasing ordering, write serially to a shard and use the SequenceNumberForOrdering parameter. For more information, see Adding Data to a Stream in the Amazon Kinesis Streams Developer Guide.

If a PutRecord request cannot be processed because of insufficient provisioned throughput on the shard involved in the request, PutRecord throws ProvisionedThroughputExceededException.

Data records are accessible for only 24 hours from the time that they are added to a stream.

", "PutRecords": "

Writes multiple data records into an Amazon Kinesis stream in a single call (also referred to as a PutRecords request). Use this operation to send data into the stream for data ingestion and processing.

Each PutRecords request can support up to 500 records. Each record in the request can be as large as 1 MB, up to a limit of 5 MB for the entire request, including partition keys. Each shard can support writes up to 1,000 records per second, up to a maximum data write total of 1 MB per second.

You must specify the name of the stream that captures, stores, and transports the data; and an array of request Records, with each record in the array requiring a partition key and data blob. The record size limit applies to the total size of the partition key and data blob.

The data blob can be any type of data; for example, a segment from a log file, geographic/location data, website clickstream data, and so on.

The partition key is used by Amazon Kinesis as input to a hash function that maps the partition key and associated data to a specific shard. An MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream. For more information, see Adding Data to a Stream in the Amazon Kinesis Streams Developer Guide.

Each record in the Records array may include an optional parameter, ExplicitHashKey, which overrides the partition key to shard mapping. This parameter allows a data producer to determine explicitly the shard where the record is stored. For more information, see Adding Multiple Records with PutRecords in the Amazon Kinesis Streams Developer Guide.

The PutRecords response includes an array of response Records. Each record in the response array directly correlates with a record in the request array using natural ordering, from the top to the bottom of the request and response. The response Records array always includes the same number of records as the request array.

The response Records array includes both successfully and unsuccessfully processed records. Amazon Kinesis attempts to process all records in each PutRecords request. A single record failure does not stop the processing of subsequent records.

A successfully-processed record includes ShardId and SequenceNumber values. The ShardId parameter identifies the shard in the stream where the record is stored. The SequenceNumber parameter is an identifier assigned to the put record, unique to all records in the stream.

An unsuccessfully-processed record includes ErrorCode and ErrorMessage values. ErrorCode reflects the type of error and can be one of the following values: ProvisionedThroughputExceededException or InternalFailure. ErrorMessage provides more detailed information about the ProvisionedThroughputExceededException exception including the account ID, stream name, and shard ID of the record that was throttled. For more information about partially successful responses, see Adding Multiple Records with PutRecords in the Amazon Kinesis Streams Developer Guide.

By default, data records are accessible for only 24 hours from the time that they are added to an Amazon Kinesis stream. This retention period can be modified using the DecreaseStreamRetentionPeriod and IncreaseStreamRetentionPeriod operations.

", "RemoveTagsFromStream": "

Removes tags from the specified Amazon Kinesis stream. Removed tags are deleted and cannot be recovered after this operation successfully completes.

If you specify a tag that does not exist, it is ignored.

", - "SplitShard": "

Splits a shard into two new shards in the Amazon Kinesis stream to increase the stream's capacity to ingest and transport data. SplitShard is called when there is a need to increase the overall capacity of a stream because of an expected increase in the volume of data records being ingested.

You can also use SplitShard when a shard appears to be approaching its maximum utilization; for example, the producers sending data into the specific shard are suddenly sending more than previously anticipated. You can also call SplitShard to increase stream capacity, so that more Amazon Kinesis applications can simultaneously read data from the stream for real-time processing.

You must specify the shard to be split and the new hash key, which is the position in the shard where the shard gets split in two. In many cases, the new hash key might simply be the average of the beginning and ending hash key, but it can be any hash key value in the range being mapped into the shard. For more information about splitting shards, see Split a Shard in the Amazon Kinesis Streams Developer Guide.

You can use DescribeStream to determine the shard ID and hash key values for the ShardToSplit and NewStartingHashKey parameters that are specified in the SplitShard request.

SplitShard is an asynchronous operation. Upon receiving a SplitShard request, Amazon Kinesis immediately returns a response and sets the stream status to UPDATING. After the operation is completed, Amazon Kinesis sets the stream status to ACTIVE. Read and write operations continue to work while the stream is in the UPDATING state.

You can use DescribeStream to check the status of the stream, which is returned in StreamStatus. If the stream is in the ACTIVE state, you can call SplitShard. If a stream is in CREATING or UPDATING or DELETING states, DescribeStream returns a ResourceInUseException.

If the specified stream does not exist, DescribeStream returns a ResourceNotFoundException. If you try to create more shards than are authorized for your account, you receive a LimitExceededException.

For the default shard limit for an AWS account, see Streams Limits in the Amazon Kinesis Streams Developer Guide. If you need to increase this limit, contact AWS Support.

If you try to operate on too many streams simultaneously using CreateStream, DeleteStream, MergeShards, and/or SplitShard, you receive a LimitExceededException.

SplitShard has limit of 5 transactions per second per account.

" + "SplitShard": "

Splits a shard into two new shards in the Amazon Kinesis stream to increase the stream's capacity to ingest and transport data. SplitShard is called when there is a need to increase the overall capacity of a stream because of an expected increase in the volume of data records being ingested.

You can also use SplitShard when a shard appears to be approaching its maximum utilization; for example, the producers sending data into the specific shard are suddenly sending more than previously anticipated. You can also call SplitShard to increase stream capacity, so that more Amazon Kinesis applications can simultaneously read data from the stream for real-time processing.

You must specify the shard to be split and the new hash key, which is the position in the shard where the shard gets split in two. In many cases, the new hash key might simply be the average of the beginning and ending hash key, but it can be any hash key value in the range being mapped into the shard. For more information about splitting shards, see Split a Shard in the Amazon Kinesis Streams Developer Guide.

You can use DescribeStream to determine the shard ID and hash key values for the ShardToSplit and NewStartingHashKey parameters that are specified in the SplitShard request.

SplitShard is an asynchronous operation. Upon receiving a SplitShard request, Amazon Kinesis immediately returns a response and sets the stream status to UPDATING. After the operation is completed, Amazon Kinesis sets the stream status to ACTIVE. Read and write operations continue to work while the stream is in the UPDATING state.

You can use DescribeStream to check the status of the stream, which is returned in StreamStatus. If the stream is in the ACTIVE state, you can call SplitShard. If a stream is in CREATING or UPDATING or DELETING states, DescribeStream returns a ResourceInUseException.

If the specified stream does not exist, DescribeStream returns a ResourceNotFoundException. If you try to create more shards than are authorized for your account, you receive a LimitExceededException.

For the default shard limit for an AWS account, see Streams Limits in the Amazon Kinesis Streams Developer Guide. If you need to increase this limit, contact AWS Support.

If you try to operate on too many streams simultaneously using CreateStream, DeleteStream, MergeShards, and/or SplitShard, you receive a LimitExceededException.

SplitShard has limit of 5 transactions per second per account.

", + "UpdateShardCount": "

Updates the shard count of the specified stream to the specified number of shards.

Updating the shard count is an asynchronous operation. Upon receiving the request, Amazon Kinesis returns immediately and sets the status of the stream to UPDATING. After the update is complete, Amazon Kinesis sets the status of the stream back to ACTIVE. Depending on the size of the stream, the scaling action could take a few minutes to complete. You can continue to read and write data to your stream while its status is UPDATING.

To update the shard count, Amazon Kinesis performs splits and merges and individual shards. This can cause short-lived shards to be created, in addition to the final shards. We recommend that you double or halve the shard count, as this results in the fewest number of splits or merges.

This operation has a rate limit of twice per rolling 24 hour period. You cannot scale above double your current shard count, scale below half your current shard count, or exceed the shard limits for your account.

For the default limits for an AWS account, see Streams Limits in the Amazon Kinesis Streams Developer Guide. If you need to increase a limit, contact AWS Support.

" }, "shapes": { "AddTagsToStreamInput": { @@ -26,12 +28,6 @@ "refs": { } }, - "ApproximateArrivalTimestamp": { - "base": null, - "refs": { - "Record$ApproximateArrivalTimestamp": "

The approximate time that the record was inserted into the stream.

" - } - }, "BooleanObject": { "base": null, "refs": { @@ -48,7 +44,7 @@ "Data": { "base": null, "refs": { - "PutRecordInput$Data": "

The data blob to put into the record, which is base64-encoded when the blob is serialized. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MB).

", + "PutRecordInput$Data": "

The data blob to put into the record, which is base64-encoded when the blob is serialized. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MB).

", "PutRecordsRequestEntry$Data": "

The data blob to put into the record, which is base64-encoded when the blob is serialized. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MB).

", "Record$Data": "

The data blob. The data in the blob is both opaque and immutable to the Amazon Kinesis service, which does not inspect, interpret, or change the data in the blob in any way. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MB).

" } @@ -63,6 +59,16 @@ "refs": { } }, + "DescribeLimitsInput": { + "base": null, + "refs": { + } + }, + "DescribeLimitsOutput": { + "base": null, + "refs": { + } + }, "DescribeStreamInput": { "base": "

Represents the input for DescribeStream.

", "refs": { @@ -71,7 +77,7 @@ "DescribeStreamInputLimit": { "base": null, "refs": { - "DescribeStreamInput$Limit": "

The maximum number of shards to return.

" + "DescribeStreamInput$Limit": "

The maximum number of shards to return in a single call. The default value is 100. If you specify a value greater than 100, at most 100 shards are returned.

" } }, "DescribeStreamOutput": { @@ -232,9 +238,9 @@ "MetricsNameList": { "base": null, "refs": { - "DisableEnhancedMonitoringInput$ShardLevelMetrics": "

List of shard-level metrics to disable.

The following are the valid shard-level metrics. The value \"ALL\" disables every metric.

  • IncomingBytes
  • IncomingRecords
  • OutgoingBytes
  • OutgoingRecords
  • WriteProvisionedThroughputExceeded
  • ReadProvisionedThroughputExceeded
  • IteratorAgeMilliseconds
  • ALL

For more information, see Monitoring the Amazon Kinesis Streams Service with Amazon CloudWatch in the Amazon Kinesis Streams Developer Guide.

", - "EnableEnhancedMonitoringInput$ShardLevelMetrics": "

List of shard-level metrics to enable.

The following are the valid shard-level metrics. The value \"ALL\" enables every metric.

  • IncomingBytes
  • IncomingRecords
  • OutgoingBytes
  • OutgoingRecords
  • WriteProvisionedThroughputExceeded
  • ReadProvisionedThroughputExceeded
  • IteratorAgeMilliseconds
  • ALL

For more information, see Monitoring the Amazon Kinesis Streams Service with Amazon CloudWatch in the Amazon Kinesis Streams Developer Guide.

", - "EnhancedMetrics$ShardLevelMetrics": "

List of shard-level metrics.

The following are the valid shard-level metrics. The value \"ALL\" enhances every metric.

  • IncomingBytes
  • IncomingRecords
  • OutgoingBytes
  • OutgoingRecords
  • WriteProvisionedThroughputExceeded
  • ReadProvisionedThroughputExceeded
  • IteratorAgeMilliseconds
  • ALL

For more information, see Monitoring the Amazon Kinesis Streams Service with Amazon CloudWatch in the Amazon Kinesis Streams Developer Guide.

", + "DisableEnhancedMonitoringInput$ShardLevelMetrics": "

List of shard-level metrics to disable.

The following are the valid shard-level metrics. The value \"ALL\" disables every metric.

  • IncomingBytes

  • IncomingRecords

  • OutgoingBytes

  • OutgoingRecords

  • WriteProvisionedThroughputExceeded

  • ReadProvisionedThroughputExceeded

  • IteratorAgeMilliseconds

  • ALL

For more information, see Monitoring the Amazon Kinesis Streams Service with Amazon CloudWatch in the Amazon Kinesis Streams Developer Guide.

", + "EnableEnhancedMonitoringInput$ShardLevelMetrics": "

List of shard-level metrics to enable.

The following are the valid shard-level metrics. The value \"ALL\" enables every metric.

  • IncomingBytes

  • IncomingRecords

  • OutgoingBytes

  • OutgoingRecords

  • WriteProvisionedThroughputExceeded

  • ReadProvisionedThroughputExceeded

  • IteratorAgeMilliseconds

  • ALL

For more information, see Monitoring the Amazon Kinesis Streams Service with Amazon CloudWatch in the Amazon Kinesis Streams Developer Guide.

", + "EnhancedMetrics$ShardLevelMetrics": "

List of shard-level metrics.

The following are the valid shard-level metrics. The value \"ALL\" enhances every metric.

  • IncomingBytes

  • IncomingRecords

  • OutgoingBytes

  • OutgoingRecords

  • WriteProvisionedThroughputExceeded

  • ReadProvisionedThroughputExceeded

  • IteratorAgeMilliseconds

  • ALL

For more information, see Monitoring the Amazon Kinesis Streams Service with Amazon CloudWatch in the Amazon Kinesis Streams Developer Guide.

", "EnhancedMonitoringOutput$CurrentShardLevelMetrics": "

Represents the current state of the metrics that are in the enhanced state before the operation.

", "EnhancedMonitoringOutput$DesiredShardLevelMetrics": "

Represents the list of all the metrics that would be in the enhanced state after the operation.

" } @@ -257,7 +263,13 @@ "base": null, "refs": { "CreateStreamInput$ShardCount": "

The number of shards that the stream will use. The throughput of the stream is a function of the number of shards; more shards are required for greater provisioned throughput.

DefaultShardLimit;

", - "PutRecordsOutput$FailedRecordCount": "

The number of unsuccessfully processed records in a PutRecords request.

" + "DecreaseStreamRetentionPeriodInput$RetentionPeriodHours": "

The new retention period of the stream, in hours. Must be less than the current retention period.

", + "IncreaseStreamRetentionPeriodInput$RetentionPeriodHours": "

The new retention period of the stream, in hours. Must be more than the current retention period.

", + "PutRecordsOutput$FailedRecordCount": "

The number of unsuccessfully processed records in a PutRecords request.

", + "StreamDescription$RetentionPeriodHours": "

The current retention period, in hours.

", + "UpdateShardCountInput$TargetShardCount": "

The new number of shards.

", + "UpdateShardCountOutput$CurrentShardCount": "

The current number of shards.

", + "UpdateShardCountOutput$TargetShardCount": "

The updated number of shards.

" } }, "ProvisionedThroughputExceededException": { @@ -281,7 +293,7 @@ } }, "PutRecordsOutput": { - "base": "

PutRecords results.

", + "base": "

PutRecords results.

", "refs": { } }, @@ -332,16 +344,14 @@ } }, "ResourceNotFoundException": { - "base": "

The requested resource could not be found. The stream might not be specified correctly, or it might not be in the ACTIVE state if the operation requires it.

", + "base": "

The requested resource could not be found. The stream might not be specified correctly.

", "refs": { } }, - "RetentionPeriodHours": { + "ScalingType": { "base": null, "refs": { - "DecreaseStreamRetentionPeriodInput$RetentionPeriodHours": "

The new retention period of the stream, in hours. Must be less than the current retention period.

", - "IncreaseStreamRetentionPeriodInput$RetentionPeriodHours": "

The new retention period of the stream, in hours. Must be more than the current retention period.

", - "StreamDescription$RetentionPeriodHours": "

The current retention period, in hours.

" + "UpdateShardCountInput$ScalingType": "

The scaling type. Uniform scaling creates shards of equal size.

" } }, "SequenceNumber": { @@ -368,6 +378,13 @@ "ShardList$member": null } }, + "ShardCountObject": { + "base": null, + "refs": { + "DescribeLimitsOutput$ShardLimit": "

The maximum number of shards.

", + "DescribeLimitsOutput$OpenShardCount": "

The number of open shards.

" + } + }, "ShardId": { "base": null, "refs": { @@ -394,7 +411,7 @@ "ShardIteratorType": { "base": null, "refs": { - "GetShardIteratorInput$ShardIteratorType": "

Determines how the shard iterator is used to start reading data records from the shard.

The following are the valid Amazon Kinesis shard iterator types:

  • AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific sequence number, provided in the value StartingSequenceNumber.
  • AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a specific sequence number, provided in the value StartingSequenceNumber.
  • AT_TIMESTAMP - Start reading from the position denoted by a specific timestamp, provided in the value Timestamp.
  • TRIM_HORIZON - Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard.
  • LATEST - Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.
" + "GetShardIteratorInput$ShardIteratorType": "

Determines how the shard iterator is used to start reading data records from the shard.

The following are the valid Amazon Kinesis shard iterator types:

  • AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific sequence number, provided in the value StartingSequenceNumber.

  • AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a specific sequence number, provided in the value StartingSequenceNumber.

  • AT_TIMESTAMP - Start reading from the position denoted by a specific timestamp, provided in the value Timestamp.

  • TRIM_HORIZON - Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard.

  • LATEST - Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.

" } }, "ShardList": { @@ -417,7 +434,7 @@ "StreamDescription": { "base": "

Represents the output for DescribeStream.

", "refs": { - "DescribeStreamOutput$StreamDescription": "

The current status of the stream, the stream ARN, an array of shard objects that comprise the stream, and states whether there are more shards available.

" + "DescribeStreamOutput$StreamDescription": "

The current status of the stream, the stream ARN, an array of shard objects that comprise the stream, and whether there are more shards available.

" } }, "StreamName": { @@ -441,7 +458,9 @@ "RemoveTagsFromStreamInput$StreamName": "

The name of the stream.

", "SplitShardInput$StreamName": "

The name of the stream for the shard split.

", "StreamDescription$StreamName": "

The name of the stream being described.

", - "StreamNameList$member": null + "StreamNameList$member": null, + "UpdateShardCountInput$StreamName": "

The name of the stream.

", + "UpdateShardCountOutput$StreamName": "

The name of the stream.

" } }, "StreamNameList": { @@ -453,7 +472,7 @@ "StreamStatus": { "base": null, "refs": { - "StreamDescription$StreamStatus": "

The current status of the stream being described. The stream status is one of the following states:

  • CREATING - The stream is being created. Amazon Kinesis immediately returns and sets StreamStatus to CREATING.
  • DELETING - The stream is being deleted. The specified stream is in the DELETING state until Amazon Kinesis completes the deletion.
  • ACTIVE - The stream exists and is ready for read and write operations or deletion. You should perform read and write operations only on an ACTIVE stream.
  • UPDATING - Shards in the stream are being merged or split. Read and write operations continue to work while the stream is in the UPDATING state.
" + "StreamDescription$StreamStatus": "

The current status of the stream being described. The stream status is one of the following states:

  • CREATING - The stream is being created. Amazon Kinesis immediately returns and sets StreamStatus to CREATING.

  • DELETING - The stream is being deleted. The specified stream is in the DELETING state until Amazon Kinesis completes the deletion.

  • ACTIVE - The stream exists and is ready for read and write operations or deletion. You should perform read and write operations only on an ACTIVE stream.

  • UPDATING - Shards in the stream are being merged or split. Read and write operations continue to work while the stream is in the UPDATING state.

" } }, "Tag": { @@ -499,7 +518,19 @@ "Timestamp": { "base": null, "refs": { - "GetShardIteratorInput$Timestamp": "

The timestamp of the data record from which to start reading. Used with shard iterator type AT_TIMESTAMP. A timestamp is the Unix epoch date with precision in milliseconds. For example, 2016-04-04T19:58:46.480-00:00 or 1459799926.480. If a record with this exact timestamp does not exist, the iterator returned is for the next (later) record. If the timestamp is older than the current trim horizon, the iterator returned is for the oldest untrimmed data record (TRIM_HORIZON).

" + "GetShardIteratorInput$Timestamp": "

The timestamp of the data record from which to start reading. Used with shard iterator type AT_TIMESTAMP. A timestamp is the Unix epoch date with precision in milliseconds. For example, 2016-04-04T19:58:46.480-00:00 or 1459799926.480. If a record with this exact timestamp does not exist, the iterator returned is for the next (later) record. If the timestamp is older than the current trim horizon, the iterator returned is for the oldest untrimmed data record (TRIM_HORIZON).

", + "Record$ApproximateArrivalTimestamp": "

The approximate time that the record was inserted into the stream.

", + "StreamDescription$StreamCreationTimestamp": "

The approximate time that the stream was created.

" + } + }, + "UpdateShardCountInput": { + "base": null, + "refs": { + } + }, + "UpdateShardCountOutput": { + "base": null, + "refs": { } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kinesisanalytics/2015-08-14/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/kinesisanalytics/2015-08-14/api-2.json index fc97d122f..eb2b1f89e 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/kinesisanalytics/2015-08-14/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/kinesisanalytics/2015-08-14/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"kinesisanalytics-2015-08-14", "apiVersion":"2015-08-14", "endpointPrefix":"kinesisanalytics", "jsonVersion":"1.1", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/api-2.json index 5e31fe994..5e3f38f0d 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/api-2.json @@ -8,7 +8,8 @@ "serviceAbbreviation":"KMS", "serviceFullName":"AWS Key Management Service", "signatureVersion":"v4", - "targetPrefix":"TrentService" + "targetPrefix":"TrentService", + "uid":"kms-2014-11-01" }, "operations":{ "CancelKeyDeletion":{ @@ -77,7 +78,8 @@ {"shape":"InvalidArnException"}, {"shape":"UnsupportedOperationException"}, {"shape":"KMSInternalException"}, - {"shape":"LimitExceededException"} + {"shape":"LimitExceededException"}, + {"shape":"TagException"} ] }, "Decrypt":{ @@ -411,6 +413,21 @@ {"shape":"InvalidMarkerException"} ] }, + "ListResourceTags":{ + "name":"ListResourceTags", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListResourceTagsRequest"}, + "output":{"shape":"ListResourceTagsResponse"}, + "errors":[ + {"shape":"KMSInternalException"}, + {"shape":"NotFoundException"}, + {"shape":"InvalidArnException"}, + {"shape":"InvalidMarkerException"} + ] + }, "ListRetirableGrants":{ "name":"ListRetirableGrants", "http":{ @@ -513,6 +530,37 @@ {"shape":"KMSInvalidStateException"} ] }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagResourceRequest"}, + "errors":[ + {"shape":"KMSInternalException"}, + {"shape":"NotFoundException"}, + {"shape":"InvalidArnException"}, + {"shape":"KMSInvalidStateException"}, + {"shape":"LimitExceededException"}, + {"shape":"TagException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagResourceRequest"}, + "errors":[ + {"shape":"KMSInternalException"}, + {"shape":"NotFoundException"}, + {"shape":"InvalidArnException"}, + {"shape":"KMSInvalidStateException"}, + {"shape":"TagException"} + ] + }, "UpdateAlias":{ "name":"UpdateAlias", "http":{ @@ -643,7 +691,8 @@ "Description":{"shape":"DescriptionType"}, "KeyUsage":{"shape":"KeyUsageType"}, "Origin":{"shape":"OriginType"}, - "BypassPolicyLockoutSafetyCheck":{"shape":"BooleanType"} + "BypassPolicyLockoutSafetyCheck":{"shape":"BooleanType"}, + "Tags":{"shape":"TagList"} } }, "CreateKeyResponse":{ @@ -1059,7 +1108,7 @@ }, "KeyIdType":{ "type":"string", - "max":256, + "max":2048, "min":1 }, "KeyList":{ @@ -1188,6 +1237,23 @@ "Truncated":{"shape":"BooleanType"} } }, + "ListResourceTagsRequest":{ + "type":"structure", + "required":["KeyId"], + "members":{ + "KeyId":{"shape":"KeyIdType"}, + "Limit":{"shape":"LimitType"}, + "Marker":{"shape":"MarkerType"} + } + }, + "ListResourceTagsResponse":{ + "type":"structure", + "members":{ + "Tags":{"shape":"TagList"}, + "NextMarker":{"shape":"MarkerType"}, + "Truncated":{"shape":"BooleanType"} + } + }, "ListRetirableGrantsRequest":{ "type":"structure", "required":["RetiringPrincipal"], @@ -1331,6 +1397,53 @@ "DeletionDate":{"shape":"DateType"} } }, + "Tag":{ + "type":"structure", + "required":[ + "TagKey", + "TagValue" + ], + "members":{ + "TagKey":{"shape":"TagKeyType"}, + "TagValue":{"shape":"TagValueType"} + } + }, + "TagException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "exception":true + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKeyType"} + }, + "TagKeyType":{ + "type":"string", + "max":128, + "min":1 + }, + "TagList":{ + "type":"list", + "member":{"shape":"Tag"} + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "KeyId", + "Tags" + ], + "members":{ + "KeyId":{"shape":"KeyIdType"}, + "Tags":{"shape":"TagList"} + } + }, + "TagValueType":{ + "type":"string", + "max":256, + "min":0 + }, "UnsupportedOperationException":{ "type":"structure", "members":{ @@ -1338,6 +1451,17 @@ }, "exception":true }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "KeyId", + "TagKeys" + ], + "members":{ + "KeyId":{"shape":"KeyIdType"}, + "TagKeys":{"shape":"TagKeyList"} + } + }, "UpdateAliasRequest":{ "type":"structure", "required":[ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/docs-2.json index 8176a4900..e5ae5c484 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/docs-2.json @@ -26,14 +26,17 @@ "ListGrants": "

List the grants for a specified key.

", "ListKeyPolicies": "

Retrieves a list of policies attached to a key.

", "ListKeys": "

Lists the customer master keys.

", + "ListResourceTags": "

Returns a list of all tags for the specified customer master key (CMK).

", "ListRetirableGrants": "

Returns a list of all grants for which the grant's RetiringPrincipal matches the one specified.

A typical use is to list all grants that you are able to retire. To retire a grant, use RetireGrant.

", "PutKeyPolicy": "

Attaches a key policy to the specified customer master key (CMK).

For more information about key policies, see Key Policies in the AWS Key Management Service Developer Guide.

", - "ReEncrypt": "

Encrypts data on the server side with a new customer master key without exposing the plaintext of the data on the client side. The data is first decrypted and then encrypted. This operation can also be used to change the encryption context of a ciphertext.

Unlike other actions, ReEncrypt is authorized twice - once as ReEncryptFrom on the source key and once as ReEncryptTo on the destination key. We therefore recommend that you include the \"action\":\"kms:ReEncrypt*\" statement in your key policies to permit re-encryption from or to the key. The statement is included automatically when you authorize use of the key through the console but must be included manually when you set a policy by using the PutKeyPolicy function.

", - "RetireGrant": "

Retires a grant. You can retire a grant when you're done using it to clean up. You should revoke a grant when you intend to actively deny operations that depend on it. The following are permitted to call this API:

  • The account that created the grant

  • The RetiringPrincipal, if present

  • The GranteePrincipal, if RetireGrant is a grantee operation

The grant to retire must be identified by its grant token or by a combination of the key ARN and the grant ID. A grant token is a unique variable-length base64-encoded string. A grant ID is a 64 character unique identifier of a grant. Both are returned by the CreateGrant function.

", + "ReEncrypt": "

Encrypts data on the server side with a new customer master key (CMK) without exposing the plaintext of the data on the client side. The data is first decrypted and then reencrypted. You can also use this operation to change the encryption context of a ciphertext.

Unlike other operations, ReEncrypt is authorized twice, once as ReEncryptFrom on the source CMK and once as ReEncryptTo on the destination CMK. We recommend that you include the \"kms:ReEncrypt*\" permission in your key policies to permit reencryption from or to the CMK. This permission is automatically included in the key policy when you create a CMK through the console, but you must include it manually when you create a CMK programmatically or when you set a key policy with the PutKeyPolicy operation.

", + "RetireGrant": "

Retires a grant. To clean up, you can retire a grant when you're done using it. You should revoke a grant when you intend to actively deny operations that depend on it. The following are permitted to call this API:

  • The AWS account (root user) under which the grant was created

  • The RetiringPrincipal, if present in the grant

  • The GranteePrincipal, if RetireGrant is an operation specified in the grant

You must identify the grant to retire by its grant token or by a combination of the grant ID and the Amazon Resource Name (ARN) of the customer master key (CMK). A grant token is a unique variable-length base64-encoded string. A grant ID is a 64 character unique identifier of a grant. The CreateGrant operation returns both.

", "RevokeGrant": "

Revokes a grant. You can revoke a grant to actively deny operations that depend on it.

", - "ScheduleKeyDeletion": "

Schedules the deletion of a customer master key (CMK). You may provide a waiting period, specified in days, before deletion occurs. If you do not provide a waiting period, the default period of 30 days is used. When this operation is successful, the state of the CMK changes to PendingDeletion. Before the waiting period ends, you can use CancelKeyDeletion to cancel the deletion of the CMK. After the waiting period ends, AWS KMS deletes the CMK and all AWS KMS data associated with it, including all aliases that point to it.

Deleting a CMK is a destructive and potentially dangerous operation. When a CMK is deleted, all data that was encrypted under the CMK is rendered unrecoverable. To restrict the use of a CMK without deleting it, use DisableKey.

For more information about scheduling a CMK for deletion, see Deleting Customer Master Keys in the AWS Key Management Service Developer Guide.

", + "ScheduleKeyDeletion": "

Schedules the deletion of a customer master key (CMK). You may provide a waiting period, specified in days, before deletion occurs. If you do not provide a waiting period, the default period of 30 days is used. When this operation is successful, the state of the CMK changes to PendingDeletion. Before the waiting period ends, you can use CancelKeyDeletion to cancel the deletion of the CMK. After the waiting period ends, AWS KMS deletes the CMK and all AWS KMS data associated with it, including all aliases that refer to it.

Deleting a CMK is a destructive and potentially dangerous operation. When a CMK is deleted, all data that was encrypted under the CMK is rendered unrecoverable. To restrict the use of a CMK without deleting it, use DisableKey.

For more information about scheduling a CMK for deletion, see Deleting Customer Master Keys in the AWS Key Management Service Developer Guide.

", + "TagResource": "

Adds or overwrites one or more tags for the specified customer master key (CMK).

Each tag consists of a tag key and a tag value. Tag keys and tag values are both required, but tag values can be empty (null) strings.

You cannot use the same tag key more than once per CMK. For example, consider a CMK with one tag whose tag key is Purpose and tag value is Test. If you send a TagResource request for this CMK with a tag key of Purpose and a tag value of Prod, it does not create a second tag. Instead, the original tag is overwritten with the new tag value.

", + "UntagResource": "

Removes the specified tag or tags from the specified customer master key (CMK).

To remove a tag, you specify the tag key for each tag to remove. You do not specify the tag value. To overwrite the tag value for an existing tag, use TagResource.

", "UpdateAlias": "

Updates an alias to map it to a different key.

An alias is not a property of a key. Therefore, an alias can be mapped to and unmapped from an existing key without changing the properties of the key.

An alias name can contain only alphanumeric characters, forward slashes (/), underscores (_), and dashes (-). An alias must start with the word \"alias\" followed by a forward slash (alias/). An alias that begins with \"aws\" after the forward slash (alias/aws...) is reserved by Amazon Web Services (AWS).

The alias and the key it is mapped to must be in the same AWS account and the same region.

", - "UpdateKeyDescription": "

Updates the description of a key.

" + "UpdateKeyDescription": "

Updates the description of a customer master key (CMK).

" }, "shapes": { "AWSAccountIdType": { @@ -85,14 +88,15 @@ "BooleanType": { "base": null, "refs": { - "CreateKeyRequest$BypassPolicyLockoutSafetyCheck": "

A flag to indicate whether to bypass the key policy lockout safety check.

Setting this value to true increases the likelihood that the CMK becomes unmanageable. Do not set this value to true indiscriminately.

For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide.

Use this parameter only when you include a policy in the request and you intend to prevent the principal making the request from making a subsequent PutKeyPolicy request on the CMK.

The default value is false.

", + "CreateKeyRequest$BypassPolicyLockoutSafetyCheck": "

A flag to indicate whether to bypass the key policy lockout safety check.

Setting this value to true increases the likelihood that the CMK becomes unmanageable. Do not set this value to true indiscriminately.

For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide.

Use this parameter only when you include a policy in the request and you intend to prevent the principal that is making the request from making a subsequent PutKeyPolicy request on the CMK.

The default value is false.

", "GetKeyRotationStatusResponse$KeyRotationEnabled": "

A Boolean value that specifies whether key rotation is enabled.

", "KeyMetadata$Enabled": "

Specifies whether the CMK is enabled. When KeyState is Enabled this value is true, otherwise it is false.

", - "ListAliasesResponse$Truncated": "

A flag that indicates whether there are more items in the list. If your results were truncated, you can use the Marker parameter to make a subsequent pagination request to retrieve more items in the list.

", - "ListGrantsResponse$Truncated": "

A flag that indicates whether there are more items in the list. If your results were truncated, you can use the Marker parameter to make a subsequent pagination request to retrieve more items in the list.

", - "ListKeyPoliciesResponse$Truncated": "

A flag that indicates whether there are more items in the list. If your results were truncated, you can use the Marker parameter to make a subsequent pagination request to retrieve more items in the list.

", - "ListKeysResponse$Truncated": "

A flag that indicates whether there are more items in the list. If your results were truncated, you can use the Marker parameter to make a subsequent pagination request to retrieve more items in the list.

", - "PutKeyPolicyRequest$BypassPolicyLockoutSafetyCheck": "

A flag to indicate whether to bypass the key policy lockout safety check.

Setting this value to true increases the likelihood that the CMK becomes unmanageable. Do not set this value to true indiscriminately.

For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide.

Use this parameter only when you intend to prevent the principal making the request from making a subsequent PutKeyPolicy request on the CMK.

The default value is false.

" + "ListAliasesResponse$Truncated": "

A flag that indicates whether there are more items in the list. When this value is true, the list in this response is truncated. To retrieve more items, pass the value of the NextMarker element in this response to the Marker parameter in a subsequent request.

", + "ListGrantsResponse$Truncated": "

A flag that indicates whether there are more items in the list. When this value is true, the list in this response is truncated. To retrieve more items, pass the value of the NextMarker element in this response to the Marker parameter in a subsequent request.

", + "ListKeyPoliciesResponse$Truncated": "

A flag that indicates whether there are more items in the list. When this value is true, the list in this response is truncated. To retrieve more items, pass the value of the NextMarker element in this response to the Marker parameter in a subsequent request.

", + "ListKeysResponse$Truncated": "

A flag that indicates whether there are more items in the list. When this value is true, the list in this response is truncated. To retrieve more items, pass the value of the NextMarker element in this response to the Marker parameter in a subsequent request.

", + "ListResourceTagsResponse$Truncated": "

A flag that indicates whether there are more items in the list. When this value is true, the list in this response is truncated. To retrieve more items, pass the value of the NextMarker element in this response to the Marker parameter in a subsequent request.

", + "PutKeyPolicyRequest$BypassPolicyLockoutSafetyCheck": "

A flag to indicate whether to bypass the key policy lockout safety check.

Setting this value to true increases the likelihood that the CMK becomes unmanageable. Do not set this value to true indiscriminately.

For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide.

Use this parameter only when you intend to prevent the principal that is making the request from making a subsequent PutKeyPolicy request on the CMK.

The default value is false.

" } }, "CancelKeyDeletionRequest": { @@ -115,8 +119,8 @@ "GetParametersForImportResponse$ImportToken": "

The import token to send in a subsequent ImportKeyMaterial request.

", "ImportKeyMaterialRequest$ImportToken": "

The import token that you received in the response to a previous GetParametersForImport request. It must be from the same response that contained the public key that you used to encrypt the key material.

", "ImportKeyMaterialRequest$EncryptedKeyMaterial": "

The encrypted key material to import. It must be encrypted with the public key that you received in the response to a previous GetParametersForImport request, using the wrapping algorithm that you specified in that request.

", - "ReEncryptRequest$CiphertextBlob": "

Ciphertext of the data to re-encrypt.

", - "ReEncryptResponse$CiphertextBlob": "

The re-encrypted data. If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.

" + "ReEncryptRequest$CiphertextBlob": "

Ciphertext of the data to reencrypt.

", + "ReEncryptResponse$CiphertextBlob": "

The reencrypted data.

" } }, "CreateAliasRequest": { @@ -203,7 +207,7 @@ "refs": { "CreateKeyRequest$Description": "

A description of the CMK.

Use a description that helps you decide whether the CMK is appropriate for a task.

", "KeyMetadata$Description": "

The description of the CMK.

", - "UpdateKeyDescriptionRequest$Description": "

New description for the key.

" + "UpdateKeyDescriptionRequest$Description": "

New description for the CMK.

" } }, "DisableKeyRequest": { @@ -257,7 +261,7 @@ "GrantConstraints$EncryptionContextSubset": "

Contains a list of key-value pairs, a subset of which must be present in the encryption context of a subsequent operation permitted by the grant. When a subsequent operation permitted by the grant includes an encryption context that matches this list or is a subset of this list, the grant allows the operation. Otherwise, the operation is not allowed.

", "GrantConstraints$EncryptionContextEquals": "

Contains a list of key-value pairs that must be present in the encryption context of a subsequent operation permitted by the grant. When a subsequent operation permitted by the grant includes an encryption context that matches this list, the grant allows the operation. Otherwise, the operation is not allowed.

", "ReEncryptRequest$SourceEncryptionContext": "

Encryption context used to encrypt and decrypt the data specified in the CiphertextBlob parameter.

", - "ReEncryptRequest$DestinationEncryptionContext": "

Encryption context to be used when the data is re-encrypted.

" + "ReEncryptRequest$DestinationEncryptionContext": "

Encryption context to use when the data is reencrypted.

" } }, "EncryptionContextValue": { @@ -288,6 +292,7 @@ "LimitExceededException$message": null, "MalformedPolicyDocumentException$message": null, "NotFoundException$message": null, + "TagException$message": null, "UnsupportedOperationException$message": null } }, @@ -375,7 +380,7 @@ "refs": { "CreateGrantResponse$GrantId": "

The unique identifier for the grant.

You can use the GrantId in a subsequent RetireGrant or RevokeGrant operation.

", "GrantListEntry$GrantId": "

The unique identifier for the grant.

", - "RetireGrantRequest$GrantId": "

Unique identifier of the grant to be retired. The grant ID is returned by the CreateGrant function.

  • Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123

", + "RetireGrantRequest$GrantId": "

Unique identifier of the grant to retire. The grant ID is returned in the response to a CreateGrant operation.

  • Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123

", "RevokeGrantRequest$GrantId": "

Identifier of the grant to be revoked.

" } }, @@ -407,7 +412,7 @@ "GrantOperationList": { "base": null, "refs": { - "CreateGrantRequest$Operations": "

A list of operations that the grant permits. The list can contain any combination of one or more of the following values:

", + "CreateGrantRequest$Operations": "

A list of operations that the grant permits.

", "GrantListEntry$Operations": "

The list of operations permitted by the grant.

" } }, @@ -499,44 +504,47 @@ "KeyIdType": { "base": null, "refs": { - "AliasListEntry$TargetKeyId": "

String that contains the key identifier pointed to by the alias.

", - "CancelKeyDeletionRequest$KeyId": "

The unique identifier for the customer master key (CMK) for which to cancel deletion.

To specify this value, use the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples:

  • Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

To obtain the unique key ID and key ARN for a given CMK, use ListKeys or DescribeKey.

", + "AliasListEntry$TargetKeyId": "

String that contains the key identifier referred to by the alias.

", + "CancelKeyDeletionRequest$KeyId": "

The unique identifier for the customer master key (CMK) for which to cancel deletion.

To specify this value, use the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples:

  • Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

To obtain the unique key ID and key ARN for a given CMK, use ListKeys or DescribeKey.

", "CancelKeyDeletionResponse$KeyId": "

The unique identifier of the master key for which deletion is canceled.

", "CreateAliasRequest$TargetKeyId": "

An identifier of the key for which you are creating the alias. This value cannot be another alias but can be a globally unique identifier or a fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", "CreateGrantRequest$KeyId": "

The unique identifier for the customer master key (CMK) that the grant applies to.

To specify this value, use the globally unique key ID or the Amazon Resource Name (ARN) of the key. Examples:

  • Globally unique key ID: 12345678-1234-1234-1234-123456789012

  • Key ARN: arn:aws:kms:us-west-2:123456789012:key/12345678-1234-1234-1234-123456789012

", "DecryptResponse$KeyId": "

ARN of the key used to perform the decryption. This value is returned if no errors are encountered during the operation.

", - "DeleteImportedKeyMaterialRequest$KeyId": "

The identifier of the CMK whose key material to delete. The CMK's Origin must be EXTERNAL.

A valid identifier is the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples:

  • Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

", + "DeleteImportedKeyMaterialRequest$KeyId": "

The identifier of the CMK whose key material to delete. The CMK's Origin must be EXTERNAL.

A valid identifier is the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples:

  • Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

", "DescribeKeyRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName

  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

  • Alias Name Example - alias/MyAliasName

", - "DisableKeyRequest$KeyId": "

A unique identifier for the CMK.

Use the CMK's unique identifier or its Amazon Resource Name (ARN). For example:

  • Unique ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

", + "DisableKeyRequest$KeyId": "

A unique identifier for the CMK.

Use the CMK's unique identifier or its Amazon Resource Name (ARN). For example:

  • Unique ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

", "DisableKeyRotationRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", "EnableKeyRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", "EnableKeyRotationRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", "EncryptRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName

  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

  • Alias Name Example - alias/MyAliasName

", "EncryptResponse$KeyId": "

The ID of the key used during encryption.

", - "GenerateDataKeyRequest$KeyId": "

The identifier of the CMK under which to generate and encrypt the data encryption key.

A valid identifier is the unique key ID or the Amazon Resource Name (ARN) of the CMK, or the alias name or ARN of an alias that points to the CMK. Examples:

  • Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • CMK ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

  • Alias name: alias/ExampleAlias

  • Alias ARN: arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias

", + "GenerateDataKeyRequest$KeyId": "

The identifier of the CMK under which to generate and encrypt the data encryption key.

A valid identifier is the unique key ID or the Amazon Resource Name (ARN) of the CMK, or the alias name or ARN of an alias that refers to the CMK. Examples:

  • Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • CMK ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

  • Alias name: alias/ExampleAlias

  • Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias

", "GenerateDataKeyResponse$KeyId": "

The identifier of the CMK under which the data encryption key was generated and encrypted.

", - "GenerateDataKeyWithoutPlaintextRequest$KeyId": "

The identifier of the CMK under which to generate and encrypt the data encryption key.

A valid identifier is the unique key ID or the Amazon Resource Name (ARN) of the CMK, or the alias name or ARN of an alias that points to the CMK. Examples:

  • Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • CMK ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

  • Alias name: alias/ExampleAlias

  • Alias ARN: arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias

", + "GenerateDataKeyWithoutPlaintextRequest$KeyId": "

The identifier of the CMK under which to generate and encrypt the data encryption key.

A valid identifier is the unique key ID or the Amazon Resource Name (ARN) of the CMK, or the alias name or ARN of an alias that refers to the CMK. Examples:

  • Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • CMK ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

  • Alias name: alias/ExampleAlias

  • Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias

", "GenerateDataKeyWithoutPlaintextResponse$KeyId": "

The identifier of the CMK under which the data encryption key was generated and encrypted.

", "GetKeyPolicyRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", "GetKeyRotationStatusRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", - "GetParametersForImportRequest$KeyId": "

The identifier of the CMK into which you will import key material. The CMK's Origin must be EXTERNAL.

A valid identifier is the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples:

  • Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

", + "GetParametersForImportRequest$KeyId": "

The identifier of the CMK into which you will import key material. The CMK's Origin must be EXTERNAL.

A valid identifier is the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples:

  • Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

", "GetParametersForImportResponse$KeyId": "

The identifier of the CMK to use in a subsequent ImportKeyMaterial request. This is the same CMK specified in the GetParametersForImport request.

", "GrantListEntry$KeyId": "

The unique identifier for the customer master key (CMK) to which the grant applies.

", - "ImportKeyMaterialRequest$KeyId": "

The identifier of the CMK to import the key material into. The CMK's Origin must be EXTERNAL.

A valid identifier is the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples:

  • Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

", + "ImportKeyMaterialRequest$KeyId": "

The identifier of the CMK to import the key material into. The CMK's Origin must be EXTERNAL.

A valid identifier is the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples:

  • Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

", "KeyListEntry$KeyId": "

Unique identifier of the key.

", "KeyMetadata$KeyId": "

The globally unique identifier for the CMK.

", "ListGrantsRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", - "ListKeyPoliciesRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName

  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

  • Alias Name Example - alias/MyAliasName

", - "PutKeyPolicyRequest$KeyId": "

A unique identifier for the CMK.

Use the CMK's unique identifier or its Amazon Resource Name (ARN). For example:

  • Unique ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

", - "ReEncryptRequest$DestinationKeyId": "

A unique identifier for the customer master key used to re-encrypt the data. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName

  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

  • Alias Name Example - alias/MyAliasName

", - "ReEncryptResponse$SourceKeyId": "

Unique identifier of the key used to originally encrypt the data.

", - "ReEncryptResponse$KeyId": "

Unique identifier of the key used to re-encrypt the data.

", - "RetireGrantRequest$KeyId": "

A unique identifier for the customer master key associated with the grant. This value can be a globally unique identifier or a fully specified ARN of the key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", + "ListKeyPoliciesRequest$KeyId": "

A unique identifier for the customer master key (CMK). You can use the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples:

  • Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

", + "ListResourceTagsRequest$KeyId": "

A unique identifier for the CMK whose tags you are listing. You can use the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples:

  • Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

", + "PutKeyPolicyRequest$KeyId": "

A unique identifier for the CMK.

Use the CMK's unique identifier or its Amazon Resource Name (ARN). For example:

  • Unique ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

", + "ReEncryptRequest$DestinationKeyId": "

A unique identifier for the CMK to use to reencrypt the data. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName

  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

  • Alias Name Example - alias/MyAliasName

", + "ReEncryptResponse$SourceKeyId": "

Unique identifier of the CMK used to originally encrypt the data.

", + "ReEncryptResponse$KeyId": "

Unique identifier of the CMK used to reencrypt the data.

", + "RetireGrantRequest$KeyId": "

The Amazon Resource Name of the CMK associated with the grant. Example:

  • arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab

", "RevokeGrantRequest$KeyId": "

A unique identifier for the customer master key associated with the grant. This value can be a globally unique identifier or the fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", - "ScheduleKeyDeletionRequest$KeyId": "

The unique identifier for the customer master key (CMK) to delete.

To specify this value, use the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples:

  • Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

To obtain the unique key ID and key ARN for a given CMK, use ListKeys or DescribeKey.

", + "ScheduleKeyDeletionRequest$KeyId": "

The unique identifier for the customer master key (CMK) to delete.

To specify this value, use the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples:

  • Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

To obtain the unique key ID and key ARN for a given CMK, use ListKeys or DescribeKey.

", "ScheduleKeyDeletionResponse$KeyId": "

The unique identifier of the customer master key (CMK) for which deletion is scheduled.

", + "TagResourceRequest$KeyId": "

A unique identifier for the CMK you are tagging. You can use the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples:

  • Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

", + "UntagResourceRequest$KeyId": "

A unique identifier for the CMK from which you are removing tags. You can use the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples:

  • Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

", "UpdateAliasRequest$TargetKeyId": "

Unique identifier of the customer master key to be mapped to the alias. This value can be a globally unique identifier or the fully specified ARN of a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

You can call ListAliases to verify that the alias is mapped to the correct TargetKeyId.

", - "UpdateKeyDescriptionRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

" + "UpdateKeyDescriptionRequest$KeyId": "

A unique identifier for the CMK. This value can be a globally unique identifier or the fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

" } }, "KeyList": { @@ -584,11 +592,12 @@ "LimitType": { "base": null, "refs": { - "ListAliasesRequest$Limit": "

When paginating results, specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the Truncated element in the response is set to true.

This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.

", - "ListGrantsRequest$Limit": "

When paginating results, specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the Truncated element in the response is set to true.

This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.

", - "ListKeyPoliciesRequest$Limit": "

When paginating results, specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the Truncated element in the response is set to true.

This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a value, it defaults to 100.

Currently only 1 policy can be attached to a key.

", - "ListKeysRequest$Limit": "

When paginating results, specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the Truncated element in the response is set to true.

This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a value, it defaults to 100.

", - "ListRetirableGrantsRequest$Limit": "

When paginating results, specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the Truncated element in the response is set to true.

This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.

" + "ListAliasesRequest$Limit": "

Use this parameter to specify the maximum number of items to return. When this value is present, AWS KMS does not return more than the specified number of items, but it might return fewer.

This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.

", + "ListGrantsRequest$Limit": "

Use this parameter to specify the maximum number of items to return. When this value is present, AWS KMS does not return more than the specified number of items, but it might return fewer.

This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.

", + "ListKeyPoliciesRequest$Limit": "

Use this parameter to specify the maximum number of items to return. When this value is present, AWS KMS does not return more than the specified number of items, but it might return fewer.

This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a value, it defaults to 100.

Currently only 1 policy can be attached to a key.

", + "ListKeysRequest$Limit": "

Use this parameter to specify the maximum number of items to return. When this value is present, AWS KMS does not return more than the specified number of items, but it might return fewer.

This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a value, it defaults to 100.

", + "ListResourceTagsRequest$Limit": "

Use this parameter to specify the maximum number of items to return. When this value is present, AWS KMS does not return more than the specified number of items, but it might return fewer.

This value is optional. If you include a value, it must be between 1 and 50, inclusive. If you do not include a value, it defaults to 50.

", + "ListRetirableGrantsRequest$Limit": "

Use this parameter to specify the maximum number of items to return. When this value is present, AWS KMS does not return more than the specified number of items, but it might return fewer.

This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.

" } }, "ListAliasesRequest": { @@ -631,6 +640,16 @@ "refs": { } }, + "ListResourceTagsRequest": { + "base": null, + "refs": { + } + }, + "ListResourceTagsResponse": { + "base": null, + "refs": { + } + }, "ListRetirableGrantsRequest": { "base": null, "refs": { @@ -644,15 +663,17 @@ "MarkerType": { "base": null, "refs": { - "ListAliasesRequest$Marker": "

Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the response you just received.

", - "ListAliasesResponse$NextMarker": "

When Truncated is true, this value is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", - "ListGrantsRequest$Marker": "

Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the response you just received.

", - "ListGrantsResponse$NextMarker": "

When Truncated is true, this value is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", - "ListKeyPoliciesRequest$Marker": "

Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the response you just received.

", - "ListKeyPoliciesResponse$NextMarker": "

When Truncated is true, this value is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", - "ListKeysRequest$Marker": "

Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the response you just received.

", - "ListKeysResponse$NextMarker": "

When Truncated is true, this value is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", - "ListRetirableGrantsRequest$Marker": "

Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the response you just received.

" + "ListAliasesRequest$Marker": "

Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the truncated response you just received.

", + "ListAliasesResponse$NextMarker": "

When Truncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent request.

", + "ListGrantsRequest$Marker": "

Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the truncated response you just received.

", + "ListGrantsResponse$NextMarker": "

When Truncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent request.

", + "ListKeyPoliciesRequest$Marker": "

Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the truncated response you just received.

", + "ListKeyPoliciesResponse$NextMarker": "

When Truncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent request.

", + "ListKeysRequest$Marker": "

Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the truncated response you just received.

", + "ListKeysResponse$NextMarker": "

When Truncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent request.

", + "ListResourceTagsRequest$Marker": "

Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the truncated response you just received.

Do not attempt to construct this value. Use only the value of NextMarker from the truncated response you just received.

", + "ListResourceTagsResponse$NextMarker": "

When Truncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent request.

Do not assume or infer any information from this value.

", + "ListRetirableGrantsRequest$Marker": "

Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the truncated response you just received.

" } }, "NotFoundException": { @@ -708,9 +729,9 @@ "PolicyType": { "base": null, "refs": { - "CreateKeyRequest$Policy": "

The key policy to attach to the CMK.

If you specify a policy and do not set BypassPolicyLockoutSafetyCheck to true, the policy must meet the following criteria:

  • It must allow the principal making the CreateKey request to make a subsequent PutKeyPolicy request on the CMK. This reduces the likelihood that the CMK becomes unmanageable. For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide.

  • The principal(s) specified in the key policy must exist and be visible to AWS KMS. When you create a new AWS principal (for example, an IAM user or role), you might need to enforce a delay before specifying the new principal in a key policy because the new principal might not immediately be visible to AWS KMS. For more information, see Changes that I make are not always immediately visible in the IAM User Guide.

If you do not specify a policy, AWS KMS attaches a default key policy to the CMK. For more information, see Default Key Policy in the AWS Key Management Service Developer Guide.

The policy size limit is 32 KiB (32768 bytes).

", + "CreateKeyRequest$Policy": "

The key policy to attach to the CMK.

If you specify a policy and do not set BypassPolicyLockoutSafetyCheck to true, the policy must meet the following criteria:

  • It must allow the principal that is making the CreateKey request to make a subsequent PutKeyPolicy request on the CMK. This reduces the likelihood that the CMK becomes unmanageable. For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide.

  • The principals that are specified in the key policy must exist and be visible to AWS KMS. When you create a new AWS principal (for example, an IAM user or role), you might need to enforce a delay before specifying the new principal in a key policy because the new principal might not immediately be visible to AWS KMS. For more information, see Changes that I make are not always immediately visible in the IAM User Guide.

If you do not specify a policy, AWS KMS attaches a default key policy to the CMK. For more information, see Default Key Policy in the AWS Key Management Service Developer Guide.

The policy size limit is 32 KiB (32768 bytes).

", "GetKeyPolicyResponse$Policy": "

A policy document in JSON format.

", - "PutKeyPolicyRequest$Policy": "

The key policy to attach to the CMK.

If you do not set BypassPolicyLockoutSafetyCheck to true, the policy must meet the following criteria:

  • It must allow the principal making the PutKeyPolicy request to make a subsequent PutKeyPolicy request on the CMK. This reduces the likelihood that the CMK becomes unmanageable. For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide.

  • The principal(s) specified in the key policy must exist and be visible to AWS KMS. When you create a new AWS principal (for example, an IAM user or role), you might need to enforce a delay before specifying the new principal in a key policy because the new principal might not immediately be visible to AWS KMS. For more information, see Changes that I make are not always immediately visible in the IAM User Guide.

The policy size limit is 32 KiB (32768 bytes).

" + "PutKeyPolicyRequest$Policy": "

The key policy to attach to the CMK.

If you do not set BypassPolicyLockoutSafetyCheck to true, the policy must meet the following criteria:

  • It must allow the principal that is making the PutKeyPolicy request to make a subsequent PutKeyPolicy request on the CMK. This reduces the likelihood that the CMK becomes unmanageable. For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide.

  • The principals that are specified in the key policy must exist and be visible to AWS KMS. When you create a new AWS principal (for example, an IAM user or role), you might need to enforce a delay before specifying the new principal in a key policy because the new principal might not immediately be visible to AWS KMS. For more information, see Changes that I make are not always immediately visible in the IAM User Guide.

The policy size limit is 32 KiB (32768 bytes).

" } }, "PrincipalIdType": { @@ -759,11 +780,59 @@ "refs": { } }, + "Tag": { + "base": "

A key-value pair. A tag consists of a tag key and a tag value. Tag keys and tag values are both required, but tag values can be empty (null) strings.

", + "refs": { + "TagList$member": null + } + }, + "TagException": { + "base": "

The request was rejected because one or more tags are not valid.

", + "refs": { + } + }, + "TagKeyList": { + "base": null, + "refs": { + "UntagResourceRequest$TagKeys": "

One or more tag keys. Specify only the tag keys, not the tag values.

" + } + }, + "TagKeyType": { + "base": null, + "refs": { + "Tag$TagKey": "

The key of the tag.

", + "TagKeyList$member": null + } + }, + "TagList": { + "base": null, + "refs": { + "CreateKeyRequest$Tags": "

One or more tags. Each tag consists of a tag key and a tag value. Tag keys and tag values are both required, but tag values can be empty (null) strings.

Use this parameter to tag the CMK when it is created. Alternately, you can omit this parameter and instead tag the CMK after it is created using TagResource.

", + "ListResourceTagsResponse$Tags": "

A list of tags. Each tag consists of a tag key and a tag value.

", + "TagResourceRequest$Tags": "

One or more tags. Each tag consists of a tag key and a tag value.

" + } + }, + "TagResourceRequest": { + "base": null, + "refs": { + } + }, + "TagValueType": { + "base": null, + "refs": { + "Tag$TagValue": "

The value of the tag.

" + } + }, "UnsupportedOperationException": { "base": "

The request was rejected because a specified parameter is not supported or a specified resource is not valid for this operation.

", "refs": { } }, + "UntagResourceRequest": { + "base": null, + "refs": { + } + }, "UpdateAliasRequest": { "base": null, "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/examples-1.json index 0ea7e3b0b..75ccccf64 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/examples-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/examples-1.json @@ -1,5 +1,862 @@ { "version": "1.0", "examples": { + "CancelKeyDeletion": [ + { + "input": { + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "output": { + "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "comments": { + "input": { + "KeyId": "The identifier of the CMK whose deletion you are canceling. You can use the key ID or the Amazon Resource Name (ARN) of the CMK." + }, + "output": { + "KeyId": "The ARN of the CMK whose deletion you canceled." + } + }, + "description": "The following example cancels deletion of the specified CMK.", + "id": "to-cancel-deletion-of-a-cmk-1477428535102", + "title": "To cancel deletion of a customer master key (CMK)" + } + ], + "CreateAlias": [ + { + "input": { + "AliasName": "alias/ExampleAlias", + "TargetKeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "comments": { + "input": { + "AliasName": "The alias to create. Aliases must begin with 'alias/'. Do not use aliases that begin with 'alias/aws' because they are reserved for use by AWS.", + "TargetKeyId": "The identifier of the CMK whose alias you are creating. You can use the key ID or the Amazon Resource Name (ARN) of the CMK." + } + }, + "description": "The following example creates an alias for the specified customer master key (CMK).", + "id": "to-create-an-alias-1477505685119", + "title": "To create an alias" + } + ], + "CreateGrant": [ + { + "input": { + "GranteePrincipal": "arn:aws:iam::111122223333:role/ExampleRole", + "KeyId": "arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab", + "Operations": [ + "Encrypt", + "Decrypt" + ] + }, + "output": { + "GrantId": "0c237476b39f8bc44e45212e08498fbe3151305030726c0590dd8d3e9f3d6a60", + "GrantToken": "AQpAM2RhZTk1MGMyNTk2ZmZmMzEyYWVhOWViN2I1MWM4Mzc0MWFiYjc0ZDE1ODkyNGFlNTIzODZhMzgyZjBlNGY3NiKIAgEBAgB4Pa6VDCWW__MSrqnre1HIN0Grt00ViSSuUjhqOC8OT3YAAADfMIHcBgkqhkiG9w0BBwaggc4wgcsCAQAwgcUGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMmqLyBTAegIn9XlK5AgEQgIGXZQjkBcl1dykDdqZBUQ6L1OfUivQy7JVYO2-ZJP7m6f1g8GzV47HX5phdtONAP7K_HQIflcgpkoCqd_fUnE114mSmiagWkbQ5sqAVV3ov-VeqgrvMe5ZFEWLMSluvBAqdjHEdMIkHMlhlj4ENZbzBfo9Wxk8b8SnwP4kc4gGivedzFXo-dwN8fxjjq_ZZ9JFOj2ijIbj5FyogDCN0drOfi8RORSEuCEmPvjFRMFAwcmwFkN2NPp89amA" + }, + "comments": { + "input": { + "GranteePrincipal": "The identity that is given permission to perform the operations specified in the grant.", + "KeyId": "The identifier of the CMK to which the grant applies. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.", + "Operations": "A list of operations that the grant allows." + }, + "output": { + "GrantId": "The unique identifier of the grant.", + "GrantToken": "The grant token." + } + }, + "description": "The following example creates a grant that allows the specified IAM role to encrypt data with the specified customer master key (CMK).", + "id": "to-create-a-grant-1477972226782", + "title": "To create a grant" + } + ], + "CreateKey": [ + { + "input": { + "Tags": [ + { + "TagKey": "CreatedBy", + "TagValue": "ExampleUser" + } + ] + }, + "output": { + "KeyMetadata": { + "AWSAccountId": "111122223333", + "Arn": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", + "CreationDate": "2017-01-09T12:00:07-08:00", + "Description": "", + "Enabled": true, + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", + "KeyState": "Enabled", + "KeyUsage": "ENCRYPT_DECRYPT", + "Origin": "AWS_KMS" + } + }, + "comments": { + "input": { + "Tags": "One or more tags. Each tag consists of a tag key and a tag value." + }, + "output": { + "KeyMetadata": "An object that contains information about the CMK created by this operation." + } + }, + "description": "The following example creates a CMK.", + "id": "to-create-a-cmk-1478028992966", + "title": "To create a customer master key (CMK)" + } + ], + "Decrypt": [ + { + "input": { + "CiphertextBlob": "" + }, + "output": { + "KeyId": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", + "Plaintext": "" + }, + "comments": { + "input": { + "CiphertextBlob": "The encrypted data (ciphertext)." + }, + "output": { + "KeyId": "The Amazon Resource Name (ARN) of the CMK that was used to decrypt the data.", + "Plaintext": "The decrypted (plaintext) data." + } + }, + "description": "The following example decrypts data that was encrypted with a customer master key (CMK) in AWS KMS.", + "id": "to-decrypt-data-1478281622886", + "title": "To decrypt data" + } + ], + "DeleteAlias": [ + { + "input": { + "AliasName": "alias/ExampleAlias" + }, + "comments": { + "input": { + "AliasName": "The alias to delete." + } + }, + "description": "The following example deletes the specified alias.", + "id": "to-delete-an-alias-1478285209338", + "title": "To delete an alias" + } + ], + "DeleteImportedKeyMaterial": [ + { + "input": { + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "comments": { + "input": { + "KeyId": "The identifier of the CMK whose imported key material you are deleting. You can use the key ID or the Amazon Resource Name (ARN) of the CMK." + } + }, + "description": "The following example deletes the imported key material from the specified customer master key (CMK).", + "id": "to-delete-imported-key-material-1478561674507", + "title": "To delete imported key material" + } + ], + "DescribeKey": [ + { + "input": { + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "output": { + "KeyMetadata": { + "AWSAccountId": "111122223333", + "Arn": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", + "CreationDate": "2015-10-12T11:45:07-07:00", + "Description": "", + "Enabled": true, + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", + "KeyState": "Enabled", + "KeyUsage": "ENCRYPT_DECRYPT", + "Origin": "AWS_KMS" + } + }, + "comments": { + "input": { + "KeyId": "The identifier of the CMK that you want information about. You can use the key ID or the Amazon Resource Name (ARN) of the CMK." + }, + "output": { + "KeyMetadata": "An object that contains information about the specified CMK." + } + }, + "description": "The following example returns information (metadata) about the specified CMK.", + "id": "to-obtain-information-about-a-cmk-1478565820907", + "title": "To obtain information about a customer master key (CMK)" + } + ], + "DisableKey": [ + { + "input": { + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "comments": { + "input": { + "KeyId": "The identifier of the CMK to disable. You can use the key ID or the Amazon Resource Name (ARN) of the CMK." + } + }, + "description": "The following example disables the specified CMK.", + "id": "to-disable-a-cmk-1478566583659", + "title": "To disable a customer master key (CMK)" + } + ], + "DisableKeyRotation": [ + { + "input": { + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "comments": { + "input": { + "KeyId": "The identifier of the CMK whose key material will no longer be rotated. You can use the key ID or the Amazon Resource Name (ARN) of the CMK." + } + }, + "description": "The following example disables automatic annual rotation of the key material for the specified CMK.", + "id": "to-disable-automatic-rotation-of-key-material-1478624396092", + "title": "To disable automatic rotation of key material" + } + ], + "EnableKey": [ + { + "input": { + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "comments": { + "input": { + "KeyId": "The identifier of the CMK to enable. You can use the key ID or the Amazon Resource Name (ARN) of the CMK." + } + }, + "description": "The following example enables the specified CMK.", + "id": "to-enable-a-cmk-1478627501129", + "title": "To enable a customer master key (CMK)" + } + ], + "EnableKeyRotation": [ + { + "input": { + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "comments": { + "input": { + "KeyId": "The identifier of the CMK whose key material will be rotated annually. You can use the key ID or the Amazon Resource Name (ARN) of the CMK." + } + }, + "description": "The following example enables automatic annual rotation of the key material for the specified CMK.", + "id": "to-enable-automatic-rotation-of-key-material-1478629109677", + "title": "To enable automatic rotation of key material" + } + ], + "Encrypt": [ + { + "input": { + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", + "Plaintext": "" + }, + "output": { + "CiphertextBlob": "", + "KeyId": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "comments": { + "input": { + "KeyId": "The identifier of the CMK to use for encryption. You can use the key ID or Amazon Resource Name (ARN) of the CMK, or the name or ARN of an alias that refers to the CMK.", + "Plaintext": "The data to encrypt." + }, + "output": { + "CiphertextBlob": "The encrypted data (ciphertext).", + "KeyId": "The ARN of the CMK that was used to encrypt the data." + } + }, + "description": "The following example encrypts data with the specified customer master key (CMK).", + "id": "to-encrypt-data-1478906026012", + "title": "To encrypt data" + } + ], + "GenerateDataKey": [ + { + "input": { + "KeyId": "alias/ExampleAlias", + "KeySpec": "AES_256" + }, + "output": { + "CiphertextBlob": "", + "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", + "Plaintext": "" + }, + "comments": { + "input": { + "KeyId": "The identifier of the CMK to use to encrypt the data key. You can use the key ID or Amazon Resource Name (ARN) of the CMK, or the name or ARN of an alias that refers to the CMK.", + "KeySpec": "Specifies the type of data key to return." + }, + "output": { + "CiphertextBlob": "The encrypted data key.", + "KeyId": "The ARN of the CMK that was used to encrypt the data key.", + "Plaintext": "The unencrypted (plaintext) data key." + } + }, + "description": "The following example generates a 256-bit symmetric data encryption key (data key) in two formats. One is the unencrypted (plainext) data key, and the other is the data key encrypted with the specified customer master key (CMK).", + "id": "to-generate-a-data-key-1478912956062", + "title": "To generate a data key" + } + ], + "GenerateDataKeyWithoutPlaintext": [ + { + "input": { + "KeyId": "alias/ExampleAlias", + "KeySpec": "AES_256" + }, + "output": { + "CiphertextBlob": "", + "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "comments": { + "input": { + "KeyId": "The identifier of the CMK to use to encrypt the data key. You can use the key ID or Amazon Resource Name (ARN) of the CMK, or the name or ARN of an alias that refers to the CMK.", + "KeySpec": "Specifies the type of data key to return." + }, + "output": { + "CiphertextBlob": "The encrypted data key.", + "KeyId": "The ARN of the CMK that was used to encrypt the data key." + } + }, + "description": "The following example generates an encrypted copy of a 256-bit symmetric data encryption key (data key). The data key is encrypted with the specified customer master key (CMK).", + "id": "to-generate-an-encrypted-data-key-1478914121134", + "title": "To generate an encrypted data key" + } + ], + "GenerateRandom": [ + { + "input": { + "NumberOfBytes": 32 + }, + "output": { + "Plaintext": "" + }, + "comments": { + "input": { + "NumberOfBytes": "The length of the random data, specified in number of bytes." + }, + "output": { + "Plaintext": "The random data." + } + }, + "description": "The following example uses AWS KMS to generate 32 bytes of random data.", + "id": "to-generate-random-data-1479163645600", + "title": "To generate random data" + } + ], + "GetKeyPolicy": [ + { + "input": { + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", + "PolicyName": "default" + }, + "output": { + "Policy": "{\n \"Version\" : \"2012-10-17\",\n \"Id\" : \"key-default-1\",\n \"Statement\" : [ {\n \"Sid\" : \"Enable IAM User Permissions\",\n \"Effect\" : \"Allow\",\n \"Principal\" : {\n \"AWS\" : \"arn:aws:iam::111122223333:root\"\n },\n \"Action\" : \"kms:*\",\n \"Resource\" : \"*\"\n } ]\n}" + }, + "comments": { + "input": { + "KeyId": "The identifier of the CMK whose key policy you want to retrieve. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.", + "PolicyName": "The name of the key policy to retrieve." + }, + "output": { + "Policy": "The key policy document." + } + }, + "description": "The following example retrieves the key policy for the specified customer master key (CMK).", + "id": "to-retrieve-a-key-policy-1479170128325", + "title": "To retrieve a key policy" + } + ], + "GetKeyRotationStatus": [ + { + "input": { + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "output": { + "KeyRotationEnabled": true + }, + "comments": { + "input": { + "KeyId": "The identifier of the CMK whose key material rotation status you want to retrieve. You can use the key ID or the Amazon Resource Name (ARN) of the CMK." + }, + "output": { + "KeyRotationEnabled": "A boolean that indicates the key material rotation status. Returns true when automatic annual rotation of the key material is enabled, or false when it is not." + } + }, + "description": "The following example retrieves the status of automatic annual rotation of the key material for the specified CMK.", + "id": "to-retrieve-the-rotation-status-for-a-cmk-1479172287408", + "title": "To retrieve the rotation status for a customer master key (CMK)" + } + ], + "GetParametersForImport": [ + { + "input": { + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", + "WrappingAlgorithm": "RSAES_OAEP_SHA_1", + "WrappingKeySpec": "RSA_2048" + }, + "output": { + "ImportToken": "", + "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", + "ParametersValidTo": "2016-12-01T14:52:17-08:00", + "PublicKey": "" + }, + "comments": { + "input": { + "KeyId": "The identifier of the CMK for which to retrieve the public key and import token. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.", + "WrappingAlgorithm": "The algorithm that you will use to encrypt the key material before importing it.", + "WrappingKeySpec": "The type of wrapping key (public key) to return in the response." + }, + "output": { + "ImportToken": "The import token to send with a subsequent ImportKeyMaterial request.", + "KeyId": "The ARN of the CMK for which you are retrieving the public key and import token. This is the same CMK specified in the request.", + "ParametersValidTo": "The time at which the import token and public key are no longer valid.", + "PublicKey": "The public key to use to encrypt the key material before importing it." + } + }, + "description": "The following example retrieves the public key and import token for the specified CMK.", + "id": "to-retrieve-the-public-key-and-import-token-for-a-cmk-1480626483211", + "title": "To retrieve the public key and import token for a customer master key (CMK)" + } + ], + "ImportKeyMaterial": [ + { + "input": { + "EncryptedKeyMaterial": "", + "ExpirationModel": "KEY_MATERIAL_DOES_NOT_EXPIRE", + "ImportToken": "", + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "comments": { + "input": { + "EncryptedKeyMaterial": "The encrypted key material to import.", + "ExpirationModel": "A value that specifies whether the key material expires.", + "ImportToken": "The import token that you received in the response to a previous GetParametersForImport request.", + "KeyId": "The identifier of the CMK to import the key material into. You can use the key ID or the Amazon Resource Name (ARN) of the CMK." + } + }, + "description": "The following example imports key material into the specified CMK.", + "id": "to-import-key-material-into-a-cmk-1480630551969", + "title": "To import key material into a customer master key (CMK)" + } + ], + "ListAliases": [ + { + "output": { + "Aliases": [ + { + "AliasArn": "arn:aws:kms:us-east-2:111122223333:alias/aws/acm", + "AliasName": "alias/aws/acm", + "TargetKeyId": "da03f6f7-d279-427a-9cae-de48d07e5b66" + }, + { + "AliasArn": "arn:aws:kms:us-east-2:111122223333:alias/aws/ebs", + "AliasName": "alias/aws/ebs", + "TargetKeyId": "25a217e7-7170-4b8c-8bf6-045ea5f70e5b" + }, + { + "AliasArn": "arn:aws:kms:us-east-2:111122223333:alias/aws/rds", + "AliasName": "alias/aws/rds", + "TargetKeyId": "7ec3104e-c3f2-4b5c-bf42-bfc4772c6685" + }, + { + "AliasArn": "arn:aws:kms:us-east-2:111122223333:alias/aws/redshift", + "AliasName": "alias/aws/redshift", + "TargetKeyId": "08f7a25a-69e2-4fb5-8f10-393db27326fa" + }, + { + "AliasArn": "arn:aws:kms:us-east-2:111122223333:alias/aws/s3", + "AliasName": "alias/aws/s3", + "TargetKeyId": "d2b0f1a3-580d-4f79-b836-bc983be8cfa5" + }, + { + "AliasArn": "arn:aws:kms:us-east-2:111122223333:alias/example1", + "AliasName": "alias/example1", + "TargetKeyId": "4da1e216-62d0-46c5-a7c0-5f3a3d2f8046" + }, + { + "AliasArn": "arn:aws:kms:us-east-2:111122223333:alias/example2", + "AliasName": "alias/example2", + "TargetKeyId": "f32fef59-2cc2-445b-8573-2d73328acbee" + }, + { + "AliasArn": "arn:aws:kms:us-east-2:111122223333:alias/example3", + "AliasName": "alias/example3", + "TargetKeyId": "1374ef38-d34e-4d5f-b2c9-4e0daee38855" + } + ], + "Truncated": false + }, + "comments": { + "output": { + "Aliases": "A list of aliases, including the key ID of the customer master key (CMK) that each alias refers to.", + "Truncated": "A boolean that indicates whether there are more items in the list. Returns true when there are more items, or false when there are not." + } + }, + "description": "The following example lists aliases.", + "id": "to-list-aliases-1480729693349", + "title": "To list aliases" + } + ], + "ListGrants": [ + { + "input": { + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "output": { + "Grants": [ + { + "CreationDate": "2016-10-25T14:37:41-07:00", + "GrantId": "91ad875e49b04a9d1f3bdeb84d821f9db6ea95e1098813f6d47f0c65fbe2a172", + "GranteePrincipal": "acm.us-east-2.amazonaws.com", + "IssuingAccount": "arn:aws:iam::111122223333:root", + "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", + "Operations": [ + "Encrypt", + "ReEncryptFrom", + "ReEncryptTo" + ], + "RetiringPrincipal": "acm.us-east-2.amazonaws.com" + }, + { + "CreationDate": "2016-10-25T14:37:41-07:00", + "GrantId": "a5d67d3e207a8fc1f4928749ee3e52eb0440493a8b9cf05bbfad91655b056200", + "GranteePrincipal": "acm.us-east-2.amazonaws.com", + "IssuingAccount": "arn:aws:iam::111122223333:root", + "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", + "Operations": [ + "ReEncryptFrom", + "ReEncryptTo" + ], + "RetiringPrincipal": "acm.us-east-2.amazonaws.com" + }, + { + "CreationDate": "2016-10-25T14:37:41-07:00", + "GrantId": "c541aaf05d90cb78846a73b346fc43e65be28b7163129488c738e0c9e0628f4f", + "GranteePrincipal": "acm.us-east-2.amazonaws.com", + "IssuingAccount": "arn:aws:iam::111122223333:root", + "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", + "Operations": [ + "Encrypt", + "ReEncryptFrom", + "ReEncryptTo" + ], + "RetiringPrincipal": "acm.us-east-2.amazonaws.com" + }, + { + "CreationDate": "2016-10-25T14:37:41-07:00", + "GrantId": "dd2052c67b4c76ee45caf1dc6a1e2d24e8dc744a51b36ae2f067dc540ce0105c", + "GranteePrincipal": "acm.us-east-2.amazonaws.com", + "IssuingAccount": "arn:aws:iam::111122223333:root", + "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", + "Operations": [ + "Encrypt", + "ReEncryptFrom", + "ReEncryptTo" + ], + "RetiringPrincipal": "acm.us-east-2.amazonaws.com" + } + ], + "Truncated": true + }, + "comments": { + "input": { + "KeyId": "The identifier of the CMK whose grants you want to list. You can use the key ID or the Amazon Resource Name (ARN) of the CMK." + }, + "output": { + "Grants": "A list of grants.", + "Truncated": "A boolean that indicates whether there are more items in the list. Returns true when there are more items, or false when there are not." + } + }, + "description": "The following example lists grants for the specified CMK.", + "id": "to-list-grants-for-a-cmk-1481067365389", + "title": "To list grants for a customer master key (CMK)" + } + ], + "ListKeyPolicies": [ + { + "input": { + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "output": { + "PolicyNames": [ + "default" + ], + "Truncated": false + }, + "comments": { + "input": { + "KeyId": "The identifier of the CMK whose key policies you want to list. You can use the key ID or the Amazon Resource Name (ARN) of the CMK." + }, + "output": { + "PolicyNames": "A list of key policy names.", + "Truncated": "A boolean that indicates whether there are more items in the list. Returns true when there are more items, or false when there are not." + } + }, + "description": "The following example lists key policies for the specified CMK.", + "id": "to-list-key-policies-for-a-cmk-1481069780998", + "title": "To list key policies for a customer master key (CMK)" + } + ], + "ListKeys": [ + { + "output": { + "Keys": [ + { + "KeyArn": "arn:aws:kms:us-east-2:111122223333:key/0d990263-018e-4e65-a703-eff731de951e", + "KeyId": "0d990263-018e-4e65-a703-eff731de951e" + }, + { + "KeyArn": "arn:aws:kms:us-east-2:111122223333:key/144be297-0ae1-44ac-9c8f-93cd8c82f841", + "KeyId": "144be297-0ae1-44ac-9c8f-93cd8c82f841" + }, + { + "KeyArn": "arn:aws:kms:us-east-2:111122223333:key/21184251-b765-428e-b852-2c7353e72571", + "KeyId": "21184251-b765-428e-b852-2c7353e72571" + }, + { + "KeyArn": "arn:aws:kms:us-east-2:111122223333:key/214fe92f-5b03-4ae1-b350-db2a45dbe10c", + "KeyId": "214fe92f-5b03-4ae1-b350-db2a45dbe10c" + }, + { + "KeyArn": "arn:aws:kms:us-east-2:111122223333:key/339963f2-e523-49d3-af24-a0fe752aa458", + "KeyId": "339963f2-e523-49d3-af24-a0fe752aa458" + }, + { + "KeyArn": "arn:aws:kms:us-east-2:111122223333:key/b776a44b-df37-4438-9be4-a27494e4271a", + "KeyId": "b776a44b-df37-4438-9be4-a27494e4271a" + }, + { + "KeyArn": "arn:aws:kms:us-east-2:111122223333:key/deaf6c9e-cf2c-46a6-bf6d-0b6d487cffbb", + "KeyId": "deaf6c9e-cf2c-46a6-bf6d-0b6d487cffbb" + } + ], + "Truncated": false + }, + "comments": { + "output": { + "Keys": "A list of CMKs, including the key ID and Amazon Resource Name (ARN) of each one.", + "Truncated": "A boolean that indicates whether there are more items in the list. Returns true when there are more items, or false when there are not." + } + }, + "description": "The following example lists CMKs.", + "id": "to-list-cmks-1481071643069", + "title": "To list customer master keys (CMKs)" + } + ], + "ListResourceTags": [ + { + "input": { + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "output": { + "Tags": [ + { + "TagKey": "CostCenter", + "TagValue": "87654" + }, + { + "TagKey": "CreatedBy", + "TagValue": "ExampleUser" + }, + { + "TagKey": "Purpose", + "TagValue": "Test" + } + ], + "Truncated": false + }, + "comments": { + "input": { + "KeyId": "The identifier of the CMK whose tags you are listing. You can use the key ID or the Amazon Resource Name (ARN) of the CMK." + }, + "output": { + "Tags": "A list of tags.", + "Truncated": "A boolean that indicates whether there are more items in the list. Returns true when there are more items, or false when there are not." + } + }, + "description": "The following example lists tags for a CMK.", + "id": "to-list-tags-for-a-cmk-1483996855796", + "title": "To list tags for a customer master key (CMK)" + } + ], + "ListRetirableGrants": [ + { + "input": { + "RetiringPrincipal": "arn:aws:iam::111122223333:role/ExampleRole" + }, + "output": { + "Grants": [ + { + "CreationDate": "2016-12-07T11:09:35-08:00", + "GrantId": "0c237476b39f8bc44e45212e08498fbe3151305030726c0590dd8d3e9f3d6a60", + "GranteePrincipal": "arn:aws:iam::111122223333:role/ExampleRole", + "IssuingAccount": "arn:aws:iam::444455556666:root", + "KeyId": "arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab", + "Operations": [ + "Decrypt", + "Encrypt" + ], + "RetiringPrincipal": "arn:aws:iam::111122223333:role/ExampleRole" + } + ], + "Truncated": false + }, + "comments": { + "input": { + "RetiringPrincipal": "The retiring principal whose grants you want to list. Use the Amazon Resource Name (ARN) of an AWS principal such as an AWS account (root), IAM user, federated user, or assumed role user." + }, + "output": { + "Grants": "A list of grants that the specified principal can retire.", + "Truncated": "A boolean that indicates whether there are more items in the list. Returns true when there are more items, or false when there are not." + } + }, + "description": "The following example lists the grants that the specified principal (identity) can retire.", + "id": "to-list-grants-that-the-specified-principal-can-retire-1481140499620", + "title": "To list grants that the specified principal can retire" + } + ], + "PutKeyPolicy": [ + { + "input": { + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", + "Policy": "{\n \"Version\": \"2012-10-17\",\n \"Id\": \"custom-policy-2016-12-07\",\n \"Statement\": [\n {\n \"Sid\": \"Enable IAM User Permissions\",\n \"Effect\": \"Allow\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::111122223333:root\"\n },\n \"Action\": \"kms:*\",\n \"Resource\": \"*\"\n },\n {\n \"Sid\": \"Allow access for Key Administrators\",\n \"Effect\": \"Allow\",\n \"Principal\": {\n \"AWS\": [\n \"arn:aws:iam::111122223333:user/ExampleAdminUser\",\n \"arn:aws:iam::111122223333:role/ExampleAdminRole\"\n ]\n },\n \"Action\": [\n \"kms:Create*\",\n \"kms:Describe*\",\n \"kms:Enable*\",\n \"kms:List*\",\n \"kms:Put*\",\n \"kms:Update*\",\n \"kms:Revoke*\",\n \"kms:Disable*\",\n \"kms:Get*\",\n \"kms:Delete*\",\n \"kms:ScheduleKeyDeletion\",\n \"kms:CancelKeyDeletion\"\n ],\n \"Resource\": \"*\"\n },\n {\n \"Sid\": \"Allow use of the key\",\n \"Effect\": \"Allow\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::111122223333:role/ExamplePowerUserRole\"\n },\n \"Action\": [\n \"kms:Encrypt\",\n \"kms:Decrypt\",\n \"kms:ReEncrypt*\",\n \"kms:GenerateDataKey*\",\n \"kms:DescribeKey\"\n ],\n \"Resource\": \"*\"\n },\n {\n \"Sid\": \"Allow attachment of persistent resources\",\n \"Effect\": \"Allow\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::111122223333:role/ExamplePowerUserRole\"\n },\n \"Action\": [\n \"kms:CreateGrant\",\n \"kms:ListGrants\",\n \"kms:RevokeGrant\"\n ],\n \"Resource\": \"*\",\n \"Condition\": {\n \"Bool\": {\n \"kms:GrantIsForAWSResource\": \"true\"\n }\n }\n }\n ]\n}\n", + "PolicyName": "default" + }, + "comments": { + "input": { + "KeyId": "The identifier of the CMK to attach the key policy to. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.", + "Policy": "The key policy document.", + "PolicyName": "The name of the key policy." + } + }, + "description": "The following example attaches a key policy to the specified CMK.", + "id": "to-attach-a-key-policy-to-a-cmk-1481147345018", + "title": "To attach a key policy to a customer master key (CMK)" + } + ], + "ReEncrypt": [ + { + "input": { + "CiphertextBlob": "", + "DestinationKeyId": "0987dcba-09fe-87dc-65ba-ab0987654321" + }, + "output": { + "CiphertextBlob": "", + "KeyId": "arn:aws:kms:us-east-2:111122223333:key/0987dcba-09fe-87dc-65ba-ab0987654321", + "SourceKeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "comments": { + "input": { + "CiphertextBlob": "The data to reencrypt.", + "DestinationKeyId": "The identifier of the CMK to use to reencrypt the data. You can use the key ID or Amazon Resource Name (ARN) of the CMK, or the name or ARN of an alias that refers to the CMK." + }, + "output": { + "CiphertextBlob": "The reencrypted data.", + "KeyId": "The ARN of the CMK that was used to reencrypt the data.", + "SourceKeyId": "The ARN of the CMK that was used to originally encrypt the data." + } + }, + "description": "The following example reencrypts data with the specified CMK.", + "id": "to-reencrypt-data-1481230358001", + "title": "To reencrypt data" + } + ], + "RetireGrant": [ + { + "input": { + "GrantId": "0c237476b39f8bc44e45212e08498fbe3151305030726c0590dd8d3e9f3d6a60", + "KeyId": "arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "comments": { + "input": { + "GrantId": "The identifier of the grant to retire.", + "KeyId": "The Amazon Resource Name (ARN) of the customer master key (CMK) associated with the grant." + } + }, + "description": "The following example retires a grant.", + "id": "to-retire-a-grant-1481327028297", + "title": "To retire a grant" + } + ], + "RevokeGrant": [ + { + "input": { + "GrantId": "0c237476b39f8bc44e45212e08498fbe3151305030726c0590dd8d3e9f3d6a60", + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "comments": { + "input": { + "GrantId": "The identifier of the grant to revoke.", + "KeyId": "The identifier of the customer master key (CMK) associated with the grant. You can use the key ID or the Amazon Resource Name (ARN) of the CMK." + } + }, + "description": "The following example revokes a grant.", + "id": "to-revoke-a-grant-1481329549302", + "title": "To revoke a grant" + } + ], + "ScheduleKeyDeletion": [ + { + "input": { + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", + "PendingWindowInDays": 7 + }, + "output": { + "DeletionDate": "2016-12-17T16:00:00-08:00", + "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "comments": { + "input": { + "KeyId": "The identifier of the CMK to schedule for deletion. You can use the key ID or the Amazon Resource Name (ARN) of the CMK.", + "PendingWindowInDays": "The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the CMK." + }, + "output": { + "DeletionDate": "The date and time after which AWS KMS deletes the CMK.", + "KeyId": "The ARN of the CMK that is scheduled for deletion." + } + }, + "description": "The following example schedules the specified CMK for deletion.", + "id": "to-schedule-a-cmk-for-deletion-1481331111094", + "title": "To schedule a customer master key (CMK) for deletion" + } + ], + "UpdateAlias": [ + { + "input": { + "AliasName": "alias/ExampleAlias", + "TargetKeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "comments": { + "input": { + "AliasName": "The alias to update.", + "TargetKeyId": "The identifier of the CMK that the alias will refer to after this operation succeeds. You can use the key ID or the Amazon Resource Name (ARN) of the CMK." + } + }, + "description": "The following example updates the specified alias to refer to the specified customer master key (CMK).", + "id": "to-update-an-alias-1481572726920", + "title": "To update an alias" + } + ], + "UpdateKeyDescription": [ + { + "input": { + "Description": "Example description that indicates the intended use of this CMK.", + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "comments": { + "input": { + "Description": "The updated description.", + "KeyId": "The identifier of the CMK whose description you are updating. You can use the key ID or the Amazon Resource Name (ARN) of the CMK." + } + }, + "description": "The following example updates the description of the specified CMK.", + "id": "to-update-the-description-of-a-cmk-1481574808619", + "title": "To update the description of a customer master key (CMK)" + } + ] } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/paginators-1.json index 522d171f9..6b5be67fd 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/paginators-1.json @@ -1,32 +1,32 @@ { "pagination": { "ListAliases": { - "limit_key": "Limit", "input_token": "Marker", - "output_token": "NextMarker", + "limit_key": "Limit", "more_results": "Truncated", + "output_token": "NextMarker", "result_key": "Aliases" }, "ListGrants": { - "limit_key": "Limit", "input_token": "Marker", - "output_token": "NextMarker", + "limit_key": "Limit", "more_results": "Truncated", + "output_token": "NextMarker", "result_key": "Grants" }, "ListKeyPolicies": { - "limit_key": "Limit", "input_token": "Marker", - "output_token": "NextMarker", + "limit_key": "Limit", "more_results": "Truncated", + "output_token": "NextMarker", "result_key": "PolicyNames" }, "ListKeys": { - "limit_key": "Limit", "input_token": "Marker", - "output_token": "NextMarker", + "limit_key": "Limit", "more_results": "Truncated", + "output_token": "NextMarker", "result_key": "Keys" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2014-11-11/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2014-11-11/api-2.json index 3e27914fe..a8f192ac0 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2014-11-11/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2014-11-11/api-2.json @@ -1,5 +1,6 @@ { "metadata":{ + "uid":"lambda-2014-11-11", "apiVersion":"2014-11-11", "endpointPrefix":"lambda", "serviceFullName":"AWS Lambda", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/api-2.json index b65ffda04..c4939ba0d 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/api-2.json @@ -5,7 +5,8 @@ "endpointPrefix":"lambda", "protocol":"rest-json", "serviceFullName":"AWS Lambda", - "signatureVersion":"v4" + "signatureVersion":"v4", + "uid":"lambda-2015-03-31" }, "operations":{ "AddPermission":{ @@ -124,6 +125,20 @@ {"shape":"ResourceConflictException"} ] }, + "GetAccountSettings":{ + "name":"GetAccountSettings", + "http":{ + "method":"GET", + "requestUri":"/2016-08-19/account-settings/", + "responseCode":200 + }, + "input":{"shape":"GetAccountSettingsRequest"}, + "output":{"shape":"GetAccountSettingsResponse"}, + "errors":[ + {"shape":"TooManyRequestsException"}, + {"shape":"ServiceException"} + ] + }, "GetAlias":{ "name":"GetAlias", "http":{ @@ -227,7 +242,11 @@ {"shape":"EC2AccessDeniedException"}, {"shape":"InvalidSubnetIDException"}, {"shape":"InvalidSecurityGroupIDException"}, - {"shape":"InvalidZipFileException"} + {"shape":"InvalidZipFileException"}, + {"shape":"KMSDisabledException"}, + {"shape":"KMSInvalidStateException"}, + {"shape":"KMSAccessDeniedException"}, + {"shape":"KMSNotFoundException"} ] }, "InvokeAsync":{ @@ -408,6 +427,22 @@ } }, "shapes":{ + "AccountLimit":{ + "type":"structure", + "members":{ + "TotalCodeSize":{"shape":"Long"}, + "CodeSizeUnzipped":{"shape":"Long"}, + "CodeSizeZipped":{"shape":"Long"}, + "ConcurrentExecutions":{"shape":"Integer"} + } + }, + "AccountUsage":{ + "type":"structure", + "members":{ + "TotalCodeSize":{"shape":"Long"}, + "FunctionCount":{"shape":"Long"} + } + }, "Action":{ "type":"string", "pattern":"(lambda:[*]|lambda:[a-zA-Z]+|[*])" @@ -473,7 +508,10 @@ "max":10000, "min":1 }, - "Blob":{"type":"blob"}, + "Blob":{ + "type":"blob", + "sensitive":true + }, "BlobStream":{ "type":"blob", "streaming":true @@ -518,7 +556,8 @@ "FunctionName":{"shape":"FunctionName"}, "Enabled":{"shape":"Enabled"}, "BatchSize":{"shape":"BatchSize"}, - "StartingPosition":{"shape":"EventSourcePosition"} + "StartingPosition":{"shape":"EventSourcePosition"}, + "StartingPositionTimestamp":{"shape":"Date"} } }, "CreateFunctionRequest":{ @@ -540,10 +579,19 @@ "Timeout":{"shape":"Timeout"}, "MemorySize":{"shape":"MemorySize"}, "Publish":{"shape":"Boolean"}, - "VpcConfig":{"shape":"VpcConfig"} + "VpcConfig":{"shape":"VpcConfig"}, + "DeadLetterConfig":{"shape":"DeadLetterConfig"}, + "Environment":{"shape":"Environment"}, + "KMSKeyArn":{"shape":"KMSKeyArn"} } }, "Date":{"type":"timestamp"}, + "DeadLetterConfig":{ + "type":"structure", + "members":{ + "TargetArn":{"shape":"ResourceArn"} + } + }, "DeleteAliasRequest":{ "type":"structure", "required":[ @@ -633,6 +681,42 @@ "exception":true }, "Enabled":{"type":"boolean"}, + "Environment":{ + "type":"structure", + "members":{ + "Variables":{"shape":"EnvironmentVariables"} + } + }, + "EnvironmentError":{ + "type":"structure", + "members":{ + "ErrorCode":{"shape":"String"}, + "Message":{"shape":"SensitiveString"} + } + }, + "EnvironmentResponse":{ + "type":"structure", + "members":{ + "Variables":{"shape":"EnvironmentVariables"}, + "Error":{"shape":"EnvironmentError"} + } + }, + "EnvironmentVariableName":{ + "type":"string", + "pattern":"[a-zA-Z]([a-zA-Z0-9_])+", + "sensitive":true + }, + "EnvironmentVariableValue":{ + "type":"string", + "pattern":"[^,]*", + "sensitive":true + }, + "EnvironmentVariables":{ + "type":"map", + "key":{"shape":"EnvironmentVariableName"}, + "value":{"shape":"EnvironmentVariableValue"}, + "sensitive":true + }, "EventSourceMappingConfiguration":{ "type":"structure", "members":{ @@ -654,7 +738,8 @@ "type":"string", "enum":[ "TRIM_HORIZON", - "LATEST" + "LATEST", + "AT_TIMESTAMP" ] }, "EventSourceToken":{ @@ -698,7 +783,10 @@ "LastModified":{"shape":"Timestamp"}, "CodeSha256":{"shape":"String"}, "Version":{"shape":"Version"}, - "VpcConfig":{"shape":"VpcConfigResponse"} + "VpcConfig":{"shape":"VpcConfigResponse"}, + "DeadLetterConfig":{"shape":"DeadLetterConfig"}, + "Environment":{"shape":"EnvironmentResponse"}, + "KMSKeyArn":{"shape":"KMSKeyArn"} } }, "FunctionList":{ @@ -711,6 +799,18 @@ "min":1, "pattern":"(arn:aws:lambda:)?([a-z]{2}-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?" }, + "GetAccountSettingsRequest":{ + "type":"structure", + "members":{ + } + }, + "GetAccountSettingsResponse":{ + "type":"structure", + "members":{ + "AccountLimit":{"shape":"AccountLimit"}, + "AccountUsage":{"shape":"AccountUsage"} + } + }, "GetAliasRequest":{ "type":"structure", "required":[ @@ -943,6 +1043,46 @@ }, "deprecated":true }, + "KMSAccessDeniedException":{ + "type":"structure", + "members":{ + "Type":{"shape":"String"}, + "Message":{"shape":"String"} + }, + "error":{"httpStatusCode":502}, + "exception":true + }, + "KMSDisabledException":{ + "type":"structure", + "members":{ + "Type":{"shape":"String"}, + "Message":{"shape":"String"} + }, + "error":{"httpStatusCode":502}, + "exception":true + }, + "KMSInvalidStateException":{ + "type":"structure", + "members":{ + "Type":{"shape":"String"}, + "Message":{"shape":"String"} + }, + "error":{"httpStatusCode":502}, + "exception":true + }, + "KMSKeyArn":{ + "type":"string", + "pattern":"(arn:aws:[a-z0-9-.]+:.*)|()" + }, + "KMSNotFoundException":{ + "type":"structure", + "members":{ + "Type":{"shape":"String"}, + "Message":{"shape":"String"} + }, + "error":{"httpStatusCode":502}, + "exception":true + }, "ListAliasesRequest":{ "type":"structure", "required":["FunctionName"], @@ -1141,6 +1281,10 @@ "error":{"httpStatusCode":413}, "exception":true }, + "ResourceArn":{ + "type":"string", + "pattern":"(arn:aws:[a-z0-9-.]+:.*)|()" + }, "ResourceConflictException":{ "type":"structure", "members":{ @@ -1169,7 +1313,9 @@ "nodejs", "nodejs4.3", "java8", - "python2.7" + "python2.7", + "dotnetcore1.0", + "nodejs4.3-edge" ] }, "S3Bucket":{ @@ -1194,6 +1340,10 @@ "member":{"shape":"SecurityGroupId"}, "max":5 }, + "SensitiveString":{ + "type":"string", + "sensitive":true + }, "ServiceException":{ "type":"structure", "members":{ @@ -1332,7 +1482,10 @@ "Timeout":{"shape":"Timeout"}, "MemorySize":{"shape":"MemorySize"}, "VpcConfig":{"shape":"VpcConfig"}, - "Runtime":{"shape":"Runtime"} + "Environment":{"shape":"Environment"}, + "Runtime":{"shape":"Runtime"}, + "DeadLetterConfig":{"shape":"DeadLetterConfig"}, + "KMSKeyArn":{"shape":"KMSKeyArn"} } }, "Version":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/docs-2.json index c701051fb..253cda765 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/docs-2.json @@ -1,20 +1,21 @@ { "version": "2.0", - "service": "AWS Lambda

Overview

This is the AWS Lambda API Reference. The AWS Lambda Developer Guide provides additional information. For the service overview, go to What is AWS Lambda, and for information about how the service works, go to AWS Lambda: How it Works in the AWS Lambda Developer Guide.

", + "service": "AWS Lambda

Overview

This is the AWS Lambda API Reference. The AWS Lambda Developer Guide provides additional information. For the service overview, see What is AWS Lambda, and for information about how the service works, see AWS Lambda: How it Works in the AWS Lambda Developer Guide.

", "operations": { "AddPermission": "

Adds a permission to the resource policy associated with the specified AWS Lambda function. You use resource policies to grant permissions to event sources that use push model. In a push model, event sources (such as Amazon S3 and custom applications) invoke your Lambda function. Each permission you add to the resource policy allows an event source, permission to invoke the Lambda function.

For information about the push model, see AWS Lambda: How it Works.

If you are using versioning, the permissions you add are specific to the Lambda function version or alias you specify in the AddPermission request via the Qualifier parameter. For more information about versioning, see AWS Lambda Function Versioning and Aliases.

This operation requires permission for the lambda:AddPermission action.

", "CreateAlias": "

Creates an alias that points to the specified Lambda function version. For more information, see Introduction to AWS Lambda Aliases.

Alias names are unique for a given function. This requires permission for the lambda:CreateAlias action.

", - "CreateEventSourceMapping": "

Identifies a stream as an event source for a Lambda function. It can be either an Amazon Kinesis stream or an Amazon DynamoDB stream. AWS Lambda invokes the specified function when records are posted to the stream.

This association between a stream source and a Lambda function is called the event source mapping.

This event source mapping is relevant only in the AWS Lambda pull model, where AWS Lambda invokes the function. For more information, go to AWS Lambda: How it Works in the AWS Lambda Developer Guide.

You provide mapping information (for example, which stream to read from and which Lambda function to invoke) in the request body.

Each event source, such as an Amazon Kinesis or a DynamoDB stream, can be associated with multiple AWS Lambda function. A given Lambda function can be associated with multiple AWS event sources.

If you are using versioning, you can specify a specific function version or an alias via the function name parameter. For more information about versioning, see AWS Lambda Function Versioning and Aliases.

This operation requires permission for the lambda:CreateEventSourceMapping action.

", + "CreateEventSourceMapping": "

Identifies a stream as an event source for a Lambda function. It can be either an Amazon Kinesis stream or an Amazon DynamoDB stream. AWS Lambda invokes the specified function when records are posted to the stream.

This association between a stream source and a Lambda function is called the event source mapping.

This event source mapping is relevant only in the AWS Lambda pull model, where AWS Lambda invokes the function. For more information, see AWS Lambda: How it Works in the AWS Lambda Developer Guide.

You provide mapping information (for example, which stream to read from and which Lambda function to invoke) in the request body.

Each event source, such as an Amazon Kinesis or a DynamoDB stream, can be associated with multiple AWS Lambda function. A given Lambda function can be associated with multiple AWS event sources.

If you are using versioning, you can specify a specific function version or an alias via the function name parameter. For more information about versioning, see AWS Lambda Function Versioning and Aliases.

This operation requires permission for the lambda:CreateEventSourceMapping action.

", "CreateFunction": "

Creates a new Lambda function. The function metadata is created from the request parameters, and the code for the function is provided by a .zip file in the request body. If the function name already exists, the operation will fail. Note that the function name is case-sensitive.

If you are using versioning, you can also publish a version of the Lambda function you are creating using the Publish parameter. For more information about versioning, see AWS Lambda Function Versioning and Aliases.

This operation requires permission for the lambda:CreateFunction action.

", "DeleteAlias": "

Deletes the specified Lambda function alias. For more information, see Introduction to AWS Lambda Aliases.

This requires permission for the lambda:DeleteAlias action.

", "DeleteEventSourceMapping": "

Removes an event source mapping. This means AWS Lambda will no longer invoke the function for events in the associated source.

This operation requires permission for the lambda:DeleteEventSourceMapping action.

", "DeleteFunction": "

Deletes the specified Lambda function code and configuration.

If you are using the versioning feature and you don't specify a function version in your DeleteFunction request, AWS Lambda will delete the function, including all its versions, and any aliases pointing to the function versions. To delete a specific function version, you must provide the function version via the Qualifier parameter. For information about function versioning, see AWS Lambda Function Versioning and Aliases.

When you delete a function the associated resource policy is also deleted. You will need to delete the event source mappings explicitly.

This operation requires permission for the lambda:DeleteFunction action.

", + "GetAccountSettings": "

Returns a customer's account settings.

You can use this operation to retrieve Lambda limits information, such as code size and concurrency limits. For more information about limits, see AWS Lambda Limits. You can also retrieve resource usage statistics, such as code storage usage and function count.

", "GetAlias": "

Returns the specified alias information such as the alias ARN, description, and function version it is pointing to. For more information, see Introduction to AWS Lambda Aliases.

This requires permission for the lambda:GetAlias action.

", "GetEventSourceMapping": "

Returns configuration information for the specified event source mapping (see CreateEventSourceMapping).

This operation requires permission for the lambda:GetEventSourceMapping action.

", "GetFunction": "

Returns the configuration information of the Lambda function and a presigned URL link to the .zip file you uploaded with CreateFunction so you can download the .zip file. Note that the URL is valid for up to 10 minutes. The configuration information is the same information you provided as parameters when uploading the function.

Using the optional Qualifier parameter, you can specify a specific function version for which you want this information. If you don't specify this parameter, the API uses unqualified function ARN which return information about the $LATEST version of the Lambda function. For more information, see AWS Lambda Function Versioning and Aliases.

This operation requires permission for the lambda:GetFunction action.

", "GetFunctionConfiguration": "

Returns the configuration information of the Lambda function. This the same information you provided as parameters when uploading the function by using CreateFunction.

If you are using the versioning feature, you can retrieve this information for a specific function version by using the optional Qualifier parameter and specifying the function version or alias that points to it. If you don't provide it, the API returns information about the $LATEST version of the function. For more information about versioning, see AWS Lambda Function Versioning and Aliases.

This operation requires permission for the lambda:GetFunctionConfiguration operation.

", "GetPolicy": "

Returns the resource policy associated with the specified Lambda function.

If you are using the versioning feature, you can get the resource policy associated with the specific Lambda function version or alias by specifying the version or alias name using the Qualifier parameter. For more information about versioning, see AWS Lambda Function Versioning and Aliases.

For information about adding permissions, see AddPermission.

You need permission for the lambda:GetPolicy action.

", - "Invoke": "

Invokes a specific Lambda function.

If you are using the versioning feature, you can invoke the specific function version by providing function version or alias name that is pointing to the function version using the Qualifier parameter in the request. If you don't provide the Qualifier parameter, the $LATEST version of the Lambda function is invoked. Invocations occur at least once in response to an event and functions must be idempotent to handle this. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.

This operation requires permission for the lambda:InvokeFunction action.

", + "Invoke": "

Invokes a specific Lambda function. For an example, see Create the Lambda Function and Test It Manually.

If you are using the versioning feature, you can invoke the specific function version by providing function version or alias name that is pointing to the function version using the Qualifier parameter in the request. If you don't provide the Qualifier parameter, the $LATEST version of the Lambda function is invoked. Invocations occur at least once in response to an event and functions must be idempotent to handle this. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.

This operation requires permission for the lambda:InvokeFunction action.

", "InvokeAsync": "

This API is deprecated. We recommend you use Invoke API (see Invoke).

Submits an invocation request to AWS Lambda. Upon receiving the request, Lambda executes the specified function asynchronously. To see the logs generated by the Lambda function execution, see the CloudWatch Logs console.

This operation requires permission for the lambda:InvokeFunction action.

", "ListAliases": "

Returns list of aliases created for a Lambda function. For each alias, the response includes information such as the alias ARN, description, alias name, and the function version to which it points. For more information, see Introduction to AWS Lambda Aliases.

This requires permission for the lambda:ListAliases action.

", "ListEventSourceMappings": "

Returns a list of event source mappings you created using the CreateEventSourceMapping (see CreateEventSourceMapping).

For each mapping, the API returns configuration information. You can optionally specify filters to retrieve specific event source mappings.

If you are using the versioning feature, you can get list of event source mappings for a specific Lambda function version or an alias as described in the FunctionName parameter. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.

This operation requires permission for the lambda:ListEventSourceMappings action.

", @@ -28,6 +29,18 @@ "UpdateFunctionConfiguration": "

Updates the configuration parameters for the specified Lambda function by using the values provided in the request. You provide only the parameters you want to change. This operation must only be used on an existing Lambda function and cannot be used to update the function's code.

If you are using the versioning feature, note this API will always update the $LATEST version of your Lambda function. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.

This operation requires permission for the lambda:UpdateFunctionConfiguration action.

" }, "shapes": { + "AccountLimit": { + "base": "

Provides limits of code size and concurrency associated with the current account and region.

", + "refs": { + "GetAccountSettingsResponse$AccountLimit": null + } + }, + "AccountUsage": { + "base": "

Provides code size usage and function count associated with the current account and region.

", + "refs": { + "GetAccountSettingsResponse$AccountUsage": null + } + }, "Action": { "base": null, "refs": { @@ -86,10 +99,10 @@ "Blob": { "base": null, "refs": { - "FunctionCode$ZipFile": "

The contents of your zip file containing your deployment package. If you are using the web API directly, the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the encoding for you. For more information about creating a .zip file, go to Execution Permissions in the AWS Lambda Developer Guide.

", + "FunctionCode$ZipFile": "

The contents of your zip file containing your deployment package. If you are using the web API directly, the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the encoding for you. For more information about creating a .zip file, see Execution Permissions in the AWS Lambda Developer Guide.

", "InvocationRequest$Payload": "

JSON that you want to provide to your Lambda function as input.

", - "InvocationResponse$Payload": "

It is the JSON representation of the object returned by the Lambda function. In This is present only if the invocation type is RequestResponse.

In the event of a function error this field contains a message describing the error. For the Handled errors the Lambda function will report this message. For Unhandled errors AWS Lambda reports the message.

", - "UpdateFunctionCodeRequest$ZipFile": "

The contents of your zip file containing your deployment package. If you are using the web API directly, the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the encoding for you. For more information about creating a .zip file, go to Execution Permissions in the AWS Lambda Developer Guide.

" + "InvocationResponse$Payload": "

It is the JSON representation of the object returned by the Lambda function. This is present only if the invocation type is RequestResponse.

In the event of a function error this field contains a message describing the error. For the Handled errors the Lambda function will report this message. For Unhandled errors AWS Lambda reports the message.

", + "UpdateFunctionCodeRequest$ZipFile": "

The contents of your zip file containing your deployment package. If you are using the web API directly, the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the encoding for you. For more information about creating a .zip file, see Execution Permissions in the AWS Lambda Developer Guide.

" } }, "BlobStream": { @@ -128,9 +141,18 @@ "Date": { "base": null, "refs": { + "CreateEventSourceMappingRequest$StartingPositionTimestamp": "

The timestamp of the data record from which to start reading. Used with shard iterator type AT_TIMESTAMP. If a record with this exact timestamp does not exist, the iterator returned is for the next (later) record. If the timestamp is older than the current trim horizon, the iterator returned is for the oldest untrimmed data record (TRIM_HORIZON). Valid only for Kinesis streams.

", "EventSourceMappingConfiguration$LastModified": "

The UTC time string indicating the last time the event mapping was updated.

" } }, + "DeadLetterConfig": { + "base": "

The parent object that contains the target Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.

", + "refs": { + "CreateFunctionRequest$DeadLetterConfig": "

The parent object that contains the target Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.

", + "FunctionConfiguration$DeadLetterConfig": "

The parent object that contains the target Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.

", + "UpdateFunctionConfigurationRequest$DeadLetterConfig": "

The parent object that contains the target Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.

" + } + }, "DeleteAliasRequest": { "base": null, "refs": { @@ -185,6 +207,44 @@ "UpdateEventSourceMappingRequest$Enabled": "

Specifies whether AWS Lambda should actively poll the stream or not. If disabled, AWS Lambda will not poll the stream.

" } }, + "Environment": { + "base": "

The parent object that contains your environment's configuration settings.

", + "refs": { + "CreateFunctionRequest$Environment": null, + "UpdateFunctionConfigurationRequest$Environment": "

The parent object that contains your environment's configuration settings.

" + } + }, + "EnvironmentError": { + "base": "

The parent object that contains error information associated with your configuration settings.

", + "refs": { + "EnvironmentResponse$Error": null + } + }, + "EnvironmentResponse": { + "base": "

The parent object returned that contains your environment's configuration settings or any error information associated with your configuration settings.

", + "refs": { + "FunctionConfiguration$Environment": "

The parent object that contains your environment's configuration settings.

" + } + }, + "EnvironmentVariableName": { + "base": null, + "refs": { + "EnvironmentVariables$key": null + } + }, + "EnvironmentVariableValue": { + "base": null, + "refs": { + "EnvironmentVariables$value": null + } + }, + "EnvironmentVariables": { + "base": null, + "refs": { + "Environment$Variables": "

The key-value pairs that represent your environment's configuration settings. The value you specify cannot contain a \",\".

", + "EnvironmentResponse$Variables": "

The key-value pairs returned that represent your environment's configuration settings or error information.

" + } + }, "EventSourceMappingConfiguration": { "base": "

Describes mapping between an Amazon Kinesis stream and a Lambda function.

", "refs": { @@ -200,7 +260,7 @@ "EventSourcePosition": { "base": null, "refs": { - "CreateEventSourceMappingRequest$StartingPosition": "

The position in the stream where AWS Lambda should start reading. For more information, go to ShardIteratorType in the Amazon Kinesis API Reference.

" + "CreateEventSourceMappingRequest$StartingPosition": "

The position in the stream where AWS Lambda should start reading. Valid only for Kinesis streams. For more information, see ShardIteratorType in the Amazon Kinesis API Reference.

" } }, "EventSourceToken": { @@ -249,7 +309,7 @@ "AddPermissionRequest$FunctionName": "

Name of the Lambda function whose resource policy you are updating by adding a new permission.

You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify partial ARN (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

", "CreateAliasRequest$FunctionName": "

Name of the Lambda function for which you want to create an alias.

", "CreateEventSourceMappingRequest$FunctionName": "

The Lambda function to invoke when AWS Lambda detects an event on the stream.

You can specify the function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail).

If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). For more information about versioning, see AWS Lambda Function Versioning and Aliases

AWS Lambda also allows you to specify only the function name with the account ID qualifier (for example, account-id:Thumbnail).

Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

", - "CreateFunctionRequest$FunctionName": "

The name you want to assign to the function you are uploading. The function names appear in the console and are returned in the ListFunctions API. Function names are used to specify functions to other AWS Lambda APIs, such as Invoke.

", + "CreateFunctionRequest$FunctionName": "

The name you want to assign to the function you are uploading. The function names appear in the console and are returned in the ListFunctions API. Function names are used to specify functions to other AWS Lambda API operations, such as Invoke.

", "DeleteAliasRequest$FunctionName": "

The Lambda function name for which the alias is created. Deleting an alias does not delete the function version to which it is pointing.

", "DeleteFunctionRequest$FunctionName": "

The Lambda function to delete.

You can specify the function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). AWS Lambda also allows you to specify only the function name with the account ID qualifier (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

", "FunctionConfiguration$FunctionName": "

The name of the function.

", @@ -270,6 +330,16 @@ "UpdateFunctionConfigurationRequest$FunctionName": "

The name of the Lambda function.

You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

" } }, + "GetAccountSettingsRequest": { + "base": null, + "refs": { + } + }, + "GetAccountSettingsResponse": { + "base": null, + "refs": { + } + }, "GetAliasRequest": { "base": null, "refs": { @@ -291,7 +361,7 @@ } }, "GetFunctionResponse": { - "base": "

This response contains the object for the Lambda function location (see .

", + "base": "

This response contains the object for the Lambda function location (see FunctionCodeLocation.

", "refs": { } }, @@ -322,6 +392,7 @@ "Integer": { "base": null, "refs": { + "AccountLimit$ConcurrentExecutions": "

Number of simultaneous executions of your function per region. For more information or to request a limit increase for concurrent executions, see Lambda Function Concurrent Executions. The default limit is 100.

", "InvocationResponse$StatusCode": "

The HTTP status code will be in the 200 range for successful request. For the RequestResonse invocation type this status code will be 200. For the Event invocation type this status code will be 202. For the DryRun invocation type the status code will be 204.

" } }, @@ -376,6 +447,34 @@ "refs": { } }, + "KMSAccessDeniedException": { + "base": "

Lambda was unable to decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.

", + "refs": { + } + }, + "KMSDisabledException": { + "base": "

Lambda was unable to decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.

", + "refs": { + } + }, + "KMSInvalidStateException": { + "base": "

Lambda was unable to decrypt the environment variables because the KMS key used is in an invalid state for Decrypt. Check the function's KMS key settings.

", + "refs": { + } + }, + "KMSKeyArn": { + "base": null, + "refs": { + "CreateFunctionRequest$KMSKeyArn": "

The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If not provided, AWS Lambda will use a default service key.

", + "FunctionConfiguration$KMSKeyArn": "

The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If empty, it means you are using the AWS Lambda default service key.

", + "UpdateFunctionConfigurationRequest$KMSKeyArn": "

The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If you elect to use the AWS Lambda default service key, pass in an empty string (\"\") for this parameter.

" + } + }, + "KMSNotFoundException": { + "base": "

Lambda was unable to decrypt the environment variables because the KMS key was not found. Check the function's KMS key settings.

", + "refs": { + } + }, "ListAliasesRequest": { "base": null, "refs": { @@ -392,7 +491,7 @@ } }, "ListEventSourceMappingsResponse": { - "base": "

Contains a list of event sources (see )

", + "base": "

Contains a list of event sources (see EventSourceMappingConfiguration)

", "refs": { } }, @@ -425,6 +524,11 @@ "Long": { "base": null, "refs": { + "AccountLimit$TotalCodeSize": "

Maximum size, in megabytes, of a code package you can upload per region. The default size is 75 GB.

", + "AccountLimit$CodeSizeUnzipped": "

Size, in bytes, of code/dependencies that you can zip into a deployment package (uncompressed zip/jar size) for uploading. The default limit is 250 MB.

", + "AccountLimit$CodeSizeZipped": "

Size, in bytes, of a single zipped code/dependencies package you can upload for your Lambda function(.zip/.jar file). Try using Amazon S3 for uploading larger files. Default limit is 50 MB.

", + "AccountUsage$TotalCodeSize": "

Total size, in bytes, of the account's deployment packages per region.

", + "AccountUsage$FunctionCount": "

The number of your account's existing functions per region.

", "FunctionConfiguration$CodeSize": "

The size, in bytes, of the function .zip file you uploaded.

" } }, @@ -483,6 +587,12 @@ "refs": { } }, + "ResourceArn": { + "base": null, + "refs": { + "DeadLetterConfig$TargetArn": "

The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic you specify as your Dead Letter Queue (DLQ).

" + } + }, "ResourceConflictException": { "base": "

The resource already exists.

", "refs": { @@ -504,16 +614,16 @@ "Runtime": { "base": null, "refs": { - "CreateFunctionRequest$Runtime": "

The runtime environment for the Lambda function you are uploading.

To use the Node.js runtime v4.3, set the value to \"nodejs4.3\". To use earlier runtime (v0.10.42), set the value to \"nodejs\".

", + "CreateFunctionRequest$Runtime": "

The runtime environment for the Lambda function you are uploading.

To use the Node.js runtime v4.3, set the value to \"nodejs4.3\". To use earlier runtime (v0.10.42), set the value to \"nodejs\".

You can no longer create functions using the v0.10.42 runtime version as of November, 2016. Existing functions will be supported until early 2017, but we recommend you migrate them to nodejs4.3 runtime version as soon as possible.

", "FunctionConfiguration$Runtime": "

The runtime environment for the Lambda function.

To use the Node.js runtime v4.3, set the value to \"nodejs4.3\". To use earlier runtime (v0.10.42), set the value to \"nodejs\".

", - "UpdateFunctionConfigurationRequest$Runtime": "

The runtime environment for the Lambda function.

To use the Node.js runtime v4.3, set the value to \"nodejs4.3\". To use earlier runtime (v0.10.42), set the value to \"nodejs\".

" + "UpdateFunctionConfigurationRequest$Runtime": "

The runtime environment for the Lambda function.

To use the Node.js runtime v4.3, set the value to \"nodejs4.3\". To use earlier runtime (v0.10.42), set the value to \"nodejs\".

You can no longer downgrade to the v0.10.42 runtime version. This version will no longer be supported as of early 2017.

" } }, "S3Bucket": { "base": null, "refs": { "FunctionCode$S3Bucket": "

Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS region where you are creating the Lambda function.

", - "UpdateFunctionCodeRequest$S3Bucket": "

Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS region where you are creating the Lambda function.

" + "UpdateFunctionCodeRequest$S3Bucket": "

Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS Region where you are creating the Lambda function.

" } }, "S3Key": { @@ -543,6 +653,12 @@ "VpcConfigResponse$SecurityGroupIds": "

A list of security group IDs associated with the Lambda function.

" } }, + "SensitiveString": { + "base": null, + "refs": { + "EnvironmentError$Message": "

The message returned by the environment error object.

" + } + }, "ServiceException": { "base": "

The AWS Lambda service encountered an internal error.

", "refs": { @@ -551,7 +667,7 @@ "SourceOwner": { "base": null, "refs": { - "AddPermissionRequest$SourceAccount": "

This parameter is used for S3 and SES only. The AWS account ID (without a hyphen) of the source owner. For example, if the SourceArn identifies a bucket, then this is the bucket owner's account ID. You can use this additional condition to ensure the bucket you specify is owned by a specific account (it is possible the bucket owner deleted the bucket and some other AWS account created the bucket). You can also use this condition to specify all sources (that is, you don't specify the SourceArn) owned by a specific account.

" + "AddPermissionRequest$SourceAccount": "

This parameter is used for S3, SES, CloudWatch Logs and CloudWatch Rules only. The AWS account ID (without a hyphen) of the source owner. For example, if the SourceArn identifies a bucket, then this is the bucket owner's account ID. You can use this additional condition to ensure the bucket you specify is owned by a specific account (it is possible the bucket owner deleted the bucket and some other AWS account created the bucket). You can also use this condition to specify all sources (that is, you don't specify the SourceArn) owned by a specific account.

" } }, "StatementId": { @@ -577,6 +693,7 @@ "EC2UnexpectedException$EC2ErrorCode": null, "ENILimitReachedException$Type": null, "ENILimitReachedException$Message": null, + "EnvironmentError$ErrorCode": "

The error code returned by the environment error object.

", "EventSourceMappingConfiguration$UUID": "

The AWS Lambda assigned opaque identifier for the mapping.

", "EventSourceMappingConfiguration$LastProcessingResult": "

The result of the last AWS Lambda invocation of your Lambda function.

", "EventSourceMappingConfiguration$State": "

The state of the event source mapping. It can be Creating, Enabled, Disabled, Enabling, Disabling, Updating, or Deleting.

", @@ -599,6 +716,14 @@ "InvocationRequest$ClientContext": "

Using the ClientContext you can pass client-specific information to the Lambda function you are invoking. You can then process the client information in your Lambda function as you choose through the context variable. For an example of a ClientContext JSON, see PutEvents in the Amazon Mobile Analytics API Reference and User Guide.

The ClientContext JSON must be base64-encoded.

", "InvocationResponse$FunctionError": "

Indicates whether an error occurred while executing the Lambda function. If an error occurred this field will have one of two values; Handled or Unhandled. Handled errors are errors that are reported by the function while the Unhandled errors are those detected and reported by AWS Lambda. Unhandled errors include out of memory errors and function timeouts. For information about how to report an Handled error, see Programming Model.

", "InvocationResponse$LogResult": "

It is the base64-encoded logs for the Lambda function invocation. This is present only if the invocation type is RequestResponse and the logs were requested.

", + "KMSAccessDeniedException$Type": null, + "KMSAccessDeniedException$Message": null, + "KMSDisabledException$Type": null, + "KMSDisabledException$Message": null, + "KMSInvalidStateException$Type": null, + "KMSInvalidStateException$Message": null, + "KMSNotFoundException$Type": null, + "KMSNotFoundException$Message": null, "ListAliasesRequest$Marker": "

Optional string. An opaque pagination token returned from a previous ListAliases operation. If present, indicates where to continue the listing.

", "ListAliasesResponse$NextMarker": "

A string, present if there are more aliases.

", "ListEventSourceMappingsRequest$Marker": "

Optional string. An opaque pagination token returned from a previous ListEventSourceMappings operation. If present, specifies to continue the list from where the returning call left off.

", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/examples-1.json index 0ea7e3b0b..c5a45d3fc 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/examples-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/examples-1.json @@ -1,5 +1,614 @@ { "version": "1.0", "examples": { + "AddPermission": [ + { + "input": { + "Action": "lambda:InvokeFunction", + "FunctionName": "MyFunction", + "Principal": "s3.amazonaws.com", + "SourceAccount": "123456789012", + "SourceArn": "arn:aws:s3:::examplebucket/*", + "StatementId": "ID-1" + }, + "output": { + "Statement": "ID-1" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example adds a permission for an S3 bucket to invoke a Lambda function.", + "id": "add-permission-1474651469455", + "title": "add-permission" + } + ], + "CreateFunction": [ + { + "input": { + "Code": { + }, + "Description": "", + "FunctionName": "MyFunction", + "Handler": "souce_file.handler_name", + "MemorySize": 128, + "Publish": true, + "Role": "arn:aws:iam::123456789012:role/service-role/role-name", + "Runtime": "nodejs4.3", + "Timeout": 15, + "VpcConfig": { + } + }, + "output": { + "CodeSha256": "", + "CodeSize": 123, + "Description": "", + "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:MyFunction", + "FunctionName": "MyFunction", + "Handler": "source_file.handler_name", + "LastModified": "2016-11-21T19:49:20.006+0000", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/service-role/role-name", + "Runtime": "nodejs4.3", + "Timeout": 123, + "Version": "1", + "VpcConfig": { + } + }, + "comments": { + "input": { + "Handler": "is of the form of the name of your source file and then name of your function handler", + "Role": "replace with the actual arn of the execution role you created" + }, + "output": { + } + }, + "description": "This example creates a Lambda function.", + "id": "create-function-1474653449931", + "title": "create-function" + } + ], + "DeleteAlias": [ + { + "input": { + "FunctionName": "myFunction", + "Name": "alias" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation deletes a Lambda function alias", + "id": "to-delete-a-lambda-function-alias-1481660370804", + "title": "To delete a Lambda function alias" + } + ], + "DeleteEventSourceMapping": [ + { + "input": { + "UUID": "12345kxodurf3443" + }, + "output": { + "BatchSize": 123, + "EventSourceArn": "arn:aws:s3:::examplebucket/*", + "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:myFunction", + "LastModified": "2016-11-21T19:49:20.006+0000", + "LastProcessingResult": "", + "State": "", + "StateTransitionReason": "", + "UUID": "12345kxodurf3443" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation deletes a Lambda function event source mapping", + "id": "to-delete-a-lambda-function-event-source-mapping-1481658973862", + "title": "To delete a Lambda function event source mapping" + } + ], + "DeleteFunction": [ + { + "input": { + "FunctionName": "myFunction", + "Qualifier": "1" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation deletes a Lambda function", + "id": "to-delete-a-lambda-function-1481648553696", + "title": "To delete a Lambda function" + } + ], + "GetAccountSettings": [ + { + "input": { + }, + "output": { + "AccountLimit": { + }, + "AccountUsage": { + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation retrieves a Lambda customer's account settings", + "id": "to-retrieves-a-lambda-customers-account-settings-1481657495274", + "title": "To retrieves a Lambda customer's account settings" + } + ], + "GetAlias": [ + { + "input": { + "FunctionName": "myFunction", + "Name": "myFunctionAlias" + }, + "output": { + "AliasArn": "arn:aws:lambda:us-west-2:123456789012:function:myFunctionAlias", + "Description": "", + "FunctionVersion": "1", + "Name": "myFunctionAlias" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation retrieves a Lambda function alias", + "id": "to-retrieve-a-lambda-function-alias-1481648742254", + "title": "To retrieve a Lambda function alias" + } + ], + "GetEventSourceMapping": [ + { + "input": { + "UUID": "123489-xxxxx-kdla8d89d7" + }, + "output": { + "BatchSize": 123, + "EventSourceArn": "arn:aws:iam::123456789012:eventsource", + "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:myFunction", + "LastModified": "2016-11-21T19:49:20.006+0000", + "LastProcessingResult": "", + "State": "", + "StateTransitionReason": "", + "UUID": "123489-xxxxx-kdla8d89d7" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation retrieves a Lambda function's event source mapping", + "id": "to-retrieve-a-lambda-functions-event-source-mapping-1481661622799", + "title": "To retrieve a Lambda function's event source mapping" + } + ], + "GetFunction": [ + { + "input": { + "FunctionName": "myFunction", + "Qualifier": "1" + }, + "output": { + "Code": { + "Location": "somelocation", + "RepositoryType": "S3" + }, + "Configuration": { + "CodeSha256": "LQT+0DHxxxxcfwLyQjzoEFKZtdqQjHXanlSdfXBlEW0VA=", + "CodeSize": 262, + "Description": "A starter AWS Lambda function.", + "Environment": { + "Variables": { + "S3_BUCKET": "test" + } + }, + "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:myFunction", + "FunctionName": "myFunction", + "Handler": "index.handler", + "LastModified": "2016-11-21T19:49:20.006+0000", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/lambda_basic_execution", + "Runtime": "nodejs4.3", + "Timeout": 3, + "Version": "$LATEST", + "VpcConfig": { + "SecurityGroupIds": [ + + ], + "SubnetIds": [ + + ] + } + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation retrieves a Lambda function's event source mapping", + "id": "to-retrieve-a-lambda-functions-event-source-mapping-1481661622799", + "title": "To retrieve a Lambda function's event source mapping" + } + ], + "GetFunctionConfiguration": [ + { + "input": { + "FunctionName": "myFunction", + "Qualifier": "1" + }, + "output": { + "CodeSha256": "LQT+0DHxxxxcfwLyQjzoEFKZtdqQjHXanlSdfXBlEW0VA=", + "CodeSize": 123, + "DeadLetterConfig": { + }, + "Description": "", + "Environment": { + }, + "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:myFunction", + "FunctionName": "myFunction", + "Handler": "index.handler", + "KMSKeyArn": "", + "LastModified": "2016-11-21T19:49:20.006+0000", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/lambda_basic_execution", + "Runtime": "python2.7", + "Timeout": 123, + "Version": "1", + "VpcConfig": { + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation retrieves a Lambda function's event source mapping", + "id": "to-retrieve-a-lambda-functions-event-source-mapping-1481661622799", + "title": "To retrieve a Lambda function's event source mapping" + } + ], + "GetPolicy": [ + { + "input": { + "FunctionName": "myFunction", + "Qualifier": "1" + }, + "output": { + "Policy": "" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation retrieves a Lambda function policy", + "id": "to-retrieve-a-lambda-function-policy-1481649319053", + "title": "To retrieve a Lambda function policy" + } + ], + "Invoke": [ + { + "input": { + "ClientContext": "MyApp", + "FunctionName": "MyFunction", + "InvocationType": "Event", + "LogType": "Tail", + "Payload": "fileb://file-path/input.json", + "Qualifier": "1" + }, + "output": { + "FunctionError": "", + "LogResult": "", + "Payload": "?", + "StatusCode": 123 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation invokes a Lambda function", + "id": "to-invoke-a-lambda-function-1481659683915", + "title": "To invoke a Lambda function" + } + ], + "InvokeAsync": [ + { + "input": { + "FunctionName": "myFunction", + "InvokeArgs": "fileb://file-path/input.json" + }, + "output": { + "Status": 123 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation invokes a Lambda function asynchronously", + "id": "to-invoke-a-lambda-function-asynchronously-1481649694923", + "title": "To invoke a Lambda function asynchronously" + } + ], + "ListAliases": [ + { + "input": { + "FunctionName": "myFunction", + "FunctionVersion": "1", + "Marker": "", + "MaxItems": 123 + }, + "output": { + "Aliases": [ + + ], + "NextMarker": "" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation retrieves a Lambda function's aliases", + "id": "to-retrieve-a-lambda-function-aliases-1481650199732", + "title": "To retrieve a Lambda function aliases" + } + ], + "ListFunctions": [ + { + "input": { + "Marker": "", + "MaxItems": 123 + }, + "output": { + "Functions": [ + + ], + "NextMarker": "" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation retrieves a Lambda functions", + "id": "to-retrieve-a-list-of-lambda-functions-1481650507425", + "title": "To retrieve a list of Lambda functions" + } + ], + "ListVersionsByFunction": [ + { + "input": { + "FunctionName": "myFunction", + "Marker": "", + "MaxItems": 123 + }, + "output": { + "NextMarker": "", + "Versions": [ + + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation retrieves a Lambda function versions", + "id": "to-retrieve-a-list-of-lambda-function-versions-1481650603750", + "title": "To retrieve a list of Lambda function versions" + } + ], + "PublishVersion": [ + { + "input": { + "CodeSha256": "", + "Description": "", + "FunctionName": "myFunction" + }, + "output": { + "CodeSha256": "", + "CodeSize": 123, + "Description": "", + "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:myFunction", + "FunctionName": "myFunction", + "Handler": "index.handler", + "LastModified": "2016-11-21T19:49:20.006+0000", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/lambda_basic_execution", + "Runtime": "python2.7", + "Timeout": 123, + "Version": "1", + "VpcConfig": { + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation publishes a version of a Lambda function", + "id": "to-publish-a-version-of-a-lambda-function-1481650704986", + "title": "To publish a version of a Lambda function" + } + ], + "RemovePermission": [ + { + "input": { + "FunctionName": "myFunction", + "Qualifier": "1", + "StatementId": "role-statement-id" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation removes a Lambda function's permissions", + "id": "to-remove-a-lambda-functions-permissions-1481661337021", + "title": "To remove a Lambda function's permissions" + } + ], + "UpdateAlias": [ + { + "input": { + "Description": "", + "FunctionName": "myFunction", + "FunctionVersion": "1", + "Name": "functionAlias" + }, + "output": { + "AliasArn": "arn:aws:lambda:us-west-2:123456789012:function:functionAlias", + "Description": "", + "FunctionVersion": "1", + "Name": "functionAlias" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation updates a Lambda function alias", + "id": "to-update-a-lambda-function-alias-1481650817950", + "title": "To update a Lambda function alias" + } + ], + "UpdateEventSourceMapping": [ + { + "input": { + "BatchSize": 123, + "Enabled": true, + "FunctionName": "myFunction", + "UUID": "1234xCy789012" + }, + "output": { + "BatchSize": 123, + "EventSourceArn": "arn:aws:s3:::examplebucket/*", + "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:myFunction", + "LastModified": "2016-11-21T19:49:20.006+0000", + "LastProcessingResult": "", + "State": "", + "StateTransitionReason": "", + "UUID": "1234xCy789012" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation updates a Lambda function event source mapping", + "id": "to-update-a-lambda-function-event-source-mapping-1481650907413", + "title": "To update a Lambda function event source mapping" + } + ], + "UpdateFunctionCode": [ + { + "input": { + "FunctionName": "myFunction", + "Publish": true, + "S3Bucket": "myBucket", + "S3Key": "myKey", + "S3ObjectVersion": "1", + "ZipFile": "fileb://file-path/file.zip" + }, + "output": { + "CodeSha256": "LQT+0DHxxxxcfwLyQjzoEFKZtdqQjHXanlSdfXBlEW0VA=", + "CodeSize": 123, + "Description": "", + "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:myFunction", + "FunctionName": "myFunction", + "Handler": "index.handler", + "LastModified": "2016-11-21T19:49:20.006+0000", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/lambda_basic_execution", + "Runtime": "python2.7", + "Timeout": 123, + "Version": "1", + "VpcConfig": { + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation updates a Lambda function's code", + "id": "to-update-a-lambda-functions-code-1481650992672", + "title": "To update a Lambda function's code" + } + ], + "UpdateFunctionConfiguration": [ + { + "input": { + "Description": "", + "FunctionName": "myFunction", + "Handler": "index.handler", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/lambda_basic_execution", + "Runtime": "python2.7", + "Timeout": 123, + "VpcConfig": { + } + }, + "output": { + "CodeSha256": "LQT+0DHxxxxcfwLyQjzoEFKZtdqQjHXanlSdfXBlEW0VA=", + "CodeSize": 123, + "Description": "", + "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:myFunction", + "FunctionName": "myFunction", + "Handler": "index.handler", + "LastModified": "2016-11-21T19:49:20.006+0000", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/lambda_basic_execution", + "Runtime": "python2.7", + "Timeout": 123, + "Version": "1", + "VpcConfig": { + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation updates a Lambda function's configuration", + "id": "to-update-a-lambda-functions-configuration-1481651096447", + "title": "To update a Lambda function's configuration" + } + ] } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/lightsail/2016-11-28/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/lightsail/2016-11-28/api-2.json new file mode 100644 index 000000000..b519fb09d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/lightsail/2016-11-28/api-2.json @@ -0,0 +1,2137 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2016-11-28", + "endpointPrefix":"lightsail", + "jsonVersion":"1.1", + "protocol":"json", + "serviceFullName":"Amazon Lightsail", + "signatureVersion":"v4", + "targetPrefix":"Lightsail_20161128", + "uid":"lightsail-2016-11-28" + }, + "operations":{ + "AllocateStaticIp":{ + "name":"AllocateStaticIp", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AllocateStaticIpRequest"}, + "output":{"shape":"AllocateStaticIpResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "AttachStaticIp":{ + "name":"AttachStaticIp", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AttachStaticIpRequest"}, + "output":{"shape":"AttachStaticIpResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "CloseInstancePublicPorts":{ + "name":"CloseInstancePublicPorts", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CloseInstancePublicPortsRequest"}, + "output":{"shape":"CloseInstancePublicPortsResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "CreateDomain":{ + "name":"CreateDomain", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateDomainRequest"}, + "output":{"shape":"CreateDomainResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "CreateDomainEntry":{ + "name":"CreateDomainEntry", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateDomainEntryRequest"}, + "output":{"shape":"CreateDomainEntryResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "CreateInstanceSnapshot":{ + "name":"CreateInstanceSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateInstanceSnapshotRequest"}, + "output":{"shape":"CreateInstanceSnapshotResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "CreateInstances":{ + "name":"CreateInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateInstancesRequest"}, + "output":{"shape":"CreateInstancesResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "CreateInstancesFromSnapshot":{ + "name":"CreateInstancesFromSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateInstancesFromSnapshotRequest"}, + "output":{"shape":"CreateInstancesFromSnapshotResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "CreateKeyPair":{ + "name":"CreateKeyPair", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateKeyPairRequest"}, + "output":{"shape":"CreateKeyPairResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "DeleteDomain":{ + "name":"DeleteDomain", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteDomainRequest"}, + "output":{"shape":"DeleteDomainResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "DeleteDomainEntry":{ + "name":"DeleteDomainEntry", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteDomainEntryRequest"}, + "output":{"shape":"DeleteDomainEntryResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "DeleteInstance":{ + "name":"DeleteInstance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteInstanceRequest"}, + "output":{"shape":"DeleteInstanceResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "DeleteInstanceSnapshot":{ + "name":"DeleteInstanceSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteInstanceSnapshotRequest"}, + "output":{"shape":"DeleteInstanceSnapshotResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "DeleteKeyPair":{ + "name":"DeleteKeyPair", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteKeyPairRequest"}, + "output":{"shape":"DeleteKeyPairResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "DetachStaticIp":{ + "name":"DetachStaticIp", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DetachStaticIpRequest"}, + "output":{"shape":"DetachStaticIpResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "DownloadDefaultKeyPair":{ + "name":"DownloadDefaultKeyPair", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DownloadDefaultKeyPairRequest"}, + "output":{"shape":"DownloadDefaultKeyPairResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetActiveNames":{ + "name":"GetActiveNames", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetActiveNamesRequest"}, + "output":{"shape":"GetActiveNamesResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetBlueprints":{ + "name":"GetBlueprints", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetBlueprintsRequest"}, + "output":{"shape":"GetBlueprintsResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetBundles":{ + "name":"GetBundles", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetBundlesRequest"}, + "output":{"shape":"GetBundlesResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetDomain":{ + "name":"GetDomain", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetDomainRequest"}, + "output":{"shape":"GetDomainResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetDomains":{ + "name":"GetDomains", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetDomainsRequest"}, + "output":{"shape":"GetDomainsResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetInstance":{ + "name":"GetInstance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetInstanceRequest"}, + "output":{"shape":"GetInstanceResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetInstanceAccessDetails":{ + "name":"GetInstanceAccessDetails", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetInstanceAccessDetailsRequest"}, + "output":{"shape":"GetInstanceAccessDetailsResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetInstanceMetricData":{ + "name":"GetInstanceMetricData", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetInstanceMetricDataRequest"}, + "output":{"shape":"GetInstanceMetricDataResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetInstancePortStates":{ + "name":"GetInstancePortStates", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetInstancePortStatesRequest"}, + "output":{"shape":"GetInstancePortStatesResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetInstanceSnapshot":{ + "name":"GetInstanceSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetInstanceSnapshotRequest"}, + "output":{"shape":"GetInstanceSnapshotResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetInstanceSnapshots":{ + "name":"GetInstanceSnapshots", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetInstanceSnapshotsRequest"}, + "output":{"shape":"GetInstanceSnapshotsResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetInstanceState":{ + "name":"GetInstanceState", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetInstanceStateRequest"}, + "output":{"shape":"GetInstanceStateResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetInstances":{ + "name":"GetInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetInstancesRequest"}, + "output":{"shape":"GetInstancesResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetKeyPair":{ + "name":"GetKeyPair", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetKeyPairRequest"}, + "output":{"shape":"GetKeyPairResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetKeyPairs":{ + "name":"GetKeyPairs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetKeyPairsRequest"}, + "output":{"shape":"GetKeyPairsResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetOperation":{ + "name":"GetOperation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetOperationRequest"}, + "output":{"shape":"GetOperationResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetOperations":{ + "name":"GetOperations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetOperationsRequest"}, + "output":{"shape":"GetOperationsResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetOperationsForResource":{ + "name":"GetOperationsForResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetOperationsForResourceRequest"}, + "output":{"shape":"GetOperationsForResourceResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetRegions":{ + "name":"GetRegions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetRegionsRequest"}, + "output":{"shape":"GetRegionsResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetStaticIp":{ + "name":"GetStaticIp", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetStaticIpRequest"}, + "output":{"shape":"GetStaticIpResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "GetStaticIps":{ + "name":"GetStaticIps", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetStaticIpsRequest"}, + "output":{"shape":"GetStaticIpsResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "ImportKeyPair":{ + "name":"ImportKeyPair", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ImportKeyPairRequest"}, + "output":{"shape":"ImportKeyPairResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "IsVpcPeered":{ + "name":"IsVpcPeered", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"IsVpcPeeredRequest"}, + "output":{"shape":"IsVpcPeeredResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "OpenInstancePublicPorts":{ + "name":"OpenInstancePublicPorts", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"OpenInstancePublicPortsRequest"}, + "output":{"shape":"OpenInstancePublicPortsResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "PeerVpc":{ + "name":"PeerVpc", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PeerVpcRequest"}, + "output":{"shape":"PeerVpcResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "RebootInstance":{ + "name":"RebootInstance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RebootInstanceRequest"}, + "output":{"shape":"RebootInstanceResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "ReleaseStaticIp":{ + "name":"ReleaseStaticIp", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ReleaseStaticIpRequest"}, + "output":{"shape":"ReleaseStaticIpResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "StartInstance":{ + "name":"StartInstance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartInstanceRequest"}, + "output":{"shape":"StartInstanceResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "StopInstance":{ + "name":"StopInstance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopInstanceRequest"}, + "output":{"shape":"StopInstanceResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "UnpeerVpc":{ + "name":"UnpeerVpc", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UnpeerVpcRequest"}, + "output":{"shape":"UnpeerVpcResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "UpdateDomainEntry":{ + "name":"UpdateDomainEntry", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateDomainEntryRequest"}, + "output":{"shape":"UpdateDomainEntryResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + } + }, + "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "members":{ + "code":{"shape":"string"}, + "docs":{"shape":"string"}, + "message":{"shape":"string"}, + "tip":{"shape":"string"} + }, + "exception":true + }, + "AccessDirection":{ + "type":"string", + "enum":[ + "inbound", + "outbound" + ] + }, + "AccountSetupInProgressException":{ + "type":"structure", + "members":{ + "code":{"shape":"string"}, + "docs":{"shape":"string"}, + "message":{"shape":"string"}, + "tip":{"shape":"string"} + }, + "exception":true + }, + "AllocateStaticIpRequest":{ + "type":"structure", + "required":["staticIpName"], + "members":{ + "staticIpName":{"shape":"ResourceName"} + } + }, + "AllocateStaticIpResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "AttachStaticIpRequest":{ + "type":"structure", + "required":[ + "staticIpName", + "instanceName" + ], + "members":{ + "staticIpName":{"shape":"ResourceName"}, + "instanceName":{"shape":"ResourceName"} + } + }, + "AttachStaticIpResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "AvailabilityZone":{ + "type":"structure", + "members":{ + "zoneName":{"shape":"NonEmptyString"}, + "state":{"shape":"NonEmptyString"} + } + }, + "AvailabilityZoneList":{ + "type":"list", + "member":{"shape":"AvailabilityZone"} + }, + "Base64":{"type":"string"}, + "Blueprint":{ + "type":"structure", + "members":{ + "blueprintId":{"shape":"NonEmptyString"}, + "name":{"shape":"ResourceName"}, + "group":{"shape":"NonEmptyString"}, + "type":{"shape":"BlueprintType"}, + "description":{"shape":"string"}, + "isActive":{"shape":"boolean"}, + "minPower":{"shape":"integer"}, + "version":{"shape":"string"}, + "versionCode":{"shape":"string"}, + "productUrl":{"shape":"string"}, + "licenseUrl":{"shape":"string"} + } + }, + "BlueprintList":{ + "type":"list", + "member":{"shape":"Blueprint"} + }, + "BlueprintType":{ + "type":"string", + "enum":[ + "os", + "app" + ] + }, + "Bundle":{ + "type":"structure", + "members":{ + "price":{"shape":"float"}, + "cpuCount":{"shape":"integer"}, + "diskSizeInGb":{"shape":"integer"}, + "bundleId":{"shape":"NonEmptyString"}, + "instanceType":{"shape":"string"}, + "isActive":{"shape":"boolean"}, + "name":{"shape":"string"}, + "power":{"shape":"integer"}, + "ramSizeInGb":{"shape":"float"}, + "transferPerMonthInGb":{"shape":"integer"} + } + }, + "BundleList":{ + "type":"list", + "member":{"shape":"Bundle"} + }, + "CloseInstancePublicPortsRequest":{ + "type":"structure", + "required":[ + "portInfo", + "instanceName" + ], + "members":{ + "portInfo":{"shape":"PortInfo"}, + "instanceName":{"shape":"ResourceName"} + } + }, + "CloseInstancePublicPortsResult":{ + "type":"structure", + "members":{ + "operation":{"shape":"Operation"} + } + }, + "CreateDomainEntryRequest":{ + "type":"structure", + "required":[ + "domainName", + "domainEntry" + ], + "members":{ + "domainName":{"shape":"DomainName"}, + "domainEntry":{"shape":"DomainEntry"} + } + }, + "CreateDomainEntryResult":{ + "type":"structure", + "members":{ + "operation":{"shape":"Operation"} + } + }, + "CreateDomainRequest":{ + "type":"structure", + "required":["domainName"], + "members":{ + "domainName":{"shape":"DomainName"} + } + }, + "CreateDomainResult":{ + "type":"structure", + "members":{ + "operation":{"shape":"Operation"} + } + }, + "CreateInstanceSnapshotRequest":{ + "type":"structure", + "required":[ + "instanceSnapshotName", + "instanceName" + ], + "members":{ + "instanceSnapshotName":{"shape":"ResourceName"}, + "instanceName":{"shape":"ResourceName"} + } + }, + "CreateInstanceSnapshotResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "CreateInstancesFromSnapshotRequest":{ + "type":"structure", + "required":[ + "instanceNames", + "availabilityZone", + "instanceSnapshotName", + "bundleId" + ], + "members":{ + "instanceNames":{"shape":"StringList"}, + "availabilityZone":{"shape":"string"}, + "instanceSnapshotName":{"shape":"ResourceName"}, + "bundleId":{"shape":"NonEmptyString"}, + "userData":{"shape":"string"}, + "keyPairName":{"shape":"ResourceName"} + } + }, + "CreateInstancesFromSnapshotResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "CreateInstancesRequest":{ + "type":"structure", + "required":[ + "instanceNames", + "availabilityZone", + "blueprintId", + "bundleId" + ], + "members":{ + "instanceNames":{"shape":"StringList"}, + "availabilityZone":{"shape":"string"}, + "customImageName":{"shape":"ResourceName"}, + "blueprintId":{"shape":"NonEmptyString"}, + "bundleId":{"shape":"NonEmptyString"}, + "userData":{"shape":"string"}, + "keyPairName":{"shape":"ResourceName"} + } + }, + "CreateInstancesResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "CreateKeyPairRequest":{ + "type":"structure", + "required":["keyPairName"], + "members":{ + "keyPairName":{"shape":"ResourceName"} + } + }, + "CreateKeyPairResult":{ + "type":"structure", + "members":{ + "keyPair":{"shape":"KeyPair"}, + "publicKeyBase64":{"shape":"Base64"}, + "privateKeyBase64":{"shape":"Base64"}, + "operation":{"shape":"Operation"} + } + }, + "DeleteDomainEntryRequest":{ + "type":"structure", + "required":[ + "domainName", + "domainEntry" + ], + "members":{ + "domainName":{"shape":"DomainName"}, + "domainEntry":{"shape":"DomainEntry"} + } + }, + "DeleteDomainEntryResult":{ + "type":"structure", + "members":{ + "operation":{"shape":"Operation"} + } + }, + "DeleteDomainRequest":{ + "type":"structure", + "required":["domainName"], + "members":{ + "domainName":{"shape":"DomainName"} + } + }, + "DeleteDomainResult":{ + "type":"structure", + "members":{ + "operation":{"shape":"Operation"} + } + }, + "DeleteInstanceRequest":{ + "type":"structure", + "required":["instanceName"], + "members":{ + "instanceName":{"shape":"ResourceName"} + } + }, + "DeleteInstanceResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "DeleteInstanceSnapshotRequest":{ + "type":"structure", + "required":["instanceSnapshotName"], + "members":{ + "instanceSnapshotName":{"shape":"ResourceName"} + } + }, + "DeleteInstanceSnapshotResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "DeleteKeyPairRequest":{ + "type":"structure", + "required":["keyPairName"], + "members":{ + "keyPairName":{"shape":"ResourceName"} + } + }, + "DeleteKeyPairResult":{ + "type":"structure", + "members":{ + "operation":{"shape":"Operation"} + } + }, + "DetachStaticIpRequest":{ + "type":"structure", + "required":["staticIpName"], + "members":{ + "staticIpName":{"shape":"ResourceName"} + } + }, + "DetachStaticIpResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "Disk":{ + "type":"structure", + "members":{ + "name":{"shape":"ResourceName"}, + "arn":{"shape":"NonEmptyString"}, + "supportCode":{"shape":"string"}, + "createdAt":{"shape":"IsoDate"}, + "location":{"shape":"ResourceLocation"}, + "resourceType":{"shape":"ResourceType"}, + "sizeInGb":{"shape":"integer"}, + "gbInUse":{"shape":"integer"}, + "isSystemDisk":{"shape":"boolean"}, + "iops":{"shape":"integer"}, + "path":{"shape":"string"}, + "attachedTo":{"shape":"string"}, + "isAttached":{"shape":"boolean"}, + "attachmentState":{"shape":"string"} + } + }, + "DiskList":{ + "type":"list", + "member":{"shape":"Disk"} + }, + "Domain":{ + "type":"structure", + "members":{ + "name":{"shape":"ResourceName"}, + "arn":{"shape":"NonEmptyString"}, + "supportCode":{"shape":"string"}, + "createdAt":{"shape":"IsoDate"}, + "location":{"shape":"ResourceLocation"}, + "resourceType":{"shape":"ResourceType"}, + "domainEntries":{"shape":"DomainEntryList"} + } + }, + "DomainEntry":{ + "type":"structure", + "members":{ + "id":{"shape":"NonEmptyString"}, + "name":{"shape":"DomainName"}, + "target":{"shape":"string"}, + "type":{"shape":"DomainEntryType"}, + "options":{"shape":"DomainEntryOptions"} + } + }, + "DomainEntryList":{ + "type":"list", + "member":{"shape":"DomainEntry"} + }, + "DomainEntryOptions":{ + "type":"map", + "key":{"shape":"DomainEntryOptionsKeys"}, + "value":{"shape":"string"} + }, + "DomainEntryOptionsKeys":{"type":"string"}, + "DomainEntryType":{"type":"string"}, + "DomainList":{ + "type":"list", + "member":{"shape":"Domain"} + }, + "DomainName":{"type":"string"}, + "DownloadDefaultKeyPairRequest":{ + "type":"structure", + "members":{ + } + }, + "DownloadDefaultKeyPairResult":{ + "type":"structure", + "members":{ + "publicKeyBase64":{"shape":"Base64"}, + "privateKeyBase64":{"shape":"Base64"} + } + }, + "GetActiveNamesRequest":{ + "type":"structure", + "members":{ + "pageToken":{"shape":"string"} + } + }, + "GetActiveNamesResult":{ + "type":"structure", + "members":{ + "activeNames":{"shape":"StringList"}, + "nextPageToken":{"shape":"string"} + } + }, + "GetBlueprintsRequest":{ + "type":"structure", + "members":{ + "includeInactive":{"shape":"boolean"}, + "pageToken":{"shape":"string"} + } + }, + "GetBlueprintsResult":{ + "type":"structure", + "members":{ + "blueprints":{"shape":"BlueprintList"}, + "nextPageToken":{"shape":"string"} + } + }, + "GetBundlesRequest":{ + "type":"structure", + "members":{ + "includeInactive":{"shape":"boolean"}, + "pageToken":{"shape":"string"} + } + }, + "GetBundlesResult":{ + "type":"structure", + "members":{ + "bundles":{"shape":"BundleList"}, + "nextPageToken":{"shape":"string"} + } + }, + "GetDomainRequest":{ + "type":"structure", + "required":["domainName"], + "members":{ + "domainName":{"shape":"DomainName"} + } + }, + "GetDomainResult":{ + "type":"structure", + "members":{ + "domain":{"shape":"Domain"} + } + }, + "GetDomainsRequest":{ + "type":"structure", + "members":{ + "pageToken":{"shape":"string"} + } + }, + "GetDomainsResult":{ + "type":"structure", + "members":{ + "domains":{"shape":"DomainList"}, + "nextPageToken":{"shape":"string"} + } + }, + "GetInstanceAccessDetailsRequest":{ + "type":"structure", + "required":["instanceName"], + "members":{ + "instanceName":{"shape":"ResourceName"}, + "protocol":{"shape":"InstanceAccessProtocol"} + } + }, + "GetInstanceAccessDetailsResult":{ + "type":"structure", + "members":{ + "accessDetails":{"shape":"InstanceAccessDetails"} + } + }, + "GetInstanceMetricDataRequest":{ + "type":"structure", + "required":[ + "instanceName", + "metricName", + "period", + "startTime", + "endTime", + "unit", + "statistics" + ], + "members":{ + "instanceName":{"shape":"ResourceName"}, + "metricName":{"shape":"InstanceMetricName"}, + "period":{"shape":"MetricPeriod"}, + "startTime":{"shape":"timestamp"}, + "endTime":{"shape":"timestamp"}, + "unit":{"shape":"MetricUnit"}, + "statistics":{"shape":"MetricStatisticList"} + } + }, + "GetInstanceMetricDataResult":{ + "type":"structure", + "members":{ + "metricName":{"shape":"InstanceMetricName"}, + "metricData":{"shape":"MetricDatapointList"} + } + }, + "GetInstancePortStatesRequest":{ + "type":"structure", + "required":["instanceName"], + "members":{ + "instanceName":{"shape":"ResourceName"} + } + }, + "GetInstancePortStatesResult":{ + "type":"structure", + "members":{ + "portStates":{"shape":"PortStateList"} + } + }, + "GetInstanceRequest":{ + "type":"structure", + "required":["instanceName"], + "members":{ + "instanceName":{"shape":"ResourceName"} + } + }, + "GetInstanceResult":{ + "type":"structure", + "members":{ + "instance":{"shape":"Instance"} + } + }, + "GetInstanceSnapshotRequest":{ + "type":"structure", + "required":["instanceSnapshotName"], + "members":{ + "instanceSnapshotName":{"shape":"ResourceName"} + } + }, + "GetInstanceSnapshotResult":{ + "type":"structure", + "members":{ + "instanceSnapshot":{"shape":"InstanceSnapshot"} + } + }, + "GetInstanceSnapshotsRequest":{ + "type":"structure", + "members":{ + "pageToken":{"shape":"string"} + } + }, + "GetInstanceSnapshotsResult":{ + "type":"structure", + "members":{ + "instanceSnapshots":{"shape":"InstanceSnapshotList"}, + "nextPageToken":{"shape":"string"} + } + }, + "GetInstanceStateRequest":{ + "type":"structure", + "required":["instanceName"], + "members":{ + "instanceName":{"shape":"ResourceName"} + } + }, + "GetInstanceStateResult":{ + "type":"structure", + "members":{ + "state":{"shape":"InstanceState"} + } + }, + "GetInstancesRequest":{ + "type":"structure", + "members":{ + "pageToken":{"shape":"string"} + } + }, + "GetInstancesResult":{ + "type":"structure", + "members":{ + "instances":{"shape":"InstanceList"}, + "nextPageToken":{"shape":"string"} + } + }, + "GetKeyPairRequest":{ + "type":"structure", + "required":["keyPairName"], + "members":{ + "keyPairName":{"shape":"ResourceName"} + } + }, + "GetKeyPairResult":{ + "type":"structure", + "members":{ + "keyPair":{"shape":"KeyPair"} + } + }, + "GetKeyPairsRequest":{ + "type":"structure", + "members":{ + "pageToken":{"shape":"string"} + } + }, + "GetKeyPairsResult":{ + "type":"structure", + "members":{ + "keyPairs":{"shape":"KeyPairList"}, + "nextPageToken":{"shape":"string"} + } + }, + "GetOperationRequest":{ + "type":"structure", + "required":["operationId"], + "members":{ + "operationId":{"shape":"NonEmptyString"} + } + }, + "GetOperationResult":{ + "type":"structure", + "members":{ + "operation":{"shape":"Operation"} + } + }, + "GetOperationsForResourceRequest":{ + "type":"structure", + "required":["resourceName"], + "members":{ + "resourceName":{"shape":"ResourceName"}, + "pageToken":{"shape":"string"} + } + }, + "GetOperationsForResourceResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"}, + "nextPageCount":{"shape":"string"} + } + }, + "GetOperationsRequest":{ + "type":"structure", + "members":{ + "pageToken":{"shape":"string"} + } + }, + "GetOperationsResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"}, + "nextPageToken":{"shape":"string"} + } + }, + "GetRegionsRequest":{ + "type":"structure", + "members":{ + "includeAvailabilityZones":{"shape":"boolean"} + } + }, + "GetRegionsResult":{ + "type":"structure", + "members":{ + "regions":{"shape":"RegionList"} + } + }, + "GetStaticIpRequest":{ + "type":"structure", + "required":["staticIpName"], + "members":{ + "staticIpName":{"shape":"ResourceName"} + } + }, + "GetStaticIpResult":{ + "type":"structure", + "members":{ + "staticIp":{"shape":"StaticIp"} + } + }, + "GetStaticIpsRequest":{ + "type":"structure", + "members":{ + "pageToken":{"shape":"string"} + } + }, + "GetStaticIpsResult":{ + "type":"structure", + "members":{ + "staticIps":{"shape":"StaticIpList"}, + "nextPageToken":{"shape":"string"} + } + }, + "ImportKeyPairRequest":{ + "type":"structure", + "required":[ + "keyPairName", + "publicKeyBase64" + ], + "members":{ + "keyPairName":{"shape":"ResourceName"}, + "publicKeyBase64":{"shape":"Base64"} + } + }, + "ImportKeyPairResult":{ + "type":"structure", + "members":{ + "operation":{"shape":"Operation"} + } + }, + "Instance":{ + "type":"structure", + "members":{ + "name":{"shape":"ResourceName"}, + "arn":{"shape":"NonEmptyString"}, + "supportCode":{"shape":"string"}, + "createdAt":{"shape":"IsoDate"}, + "location":{"shape":"ResourceLocation"}, + "resourceType":{"shape":"ResourceType"}, + "blueprintId":{"shape":"NonEmptyString"}, + "blueprintName":{"shape":"NonEmptyString"}, + "bundleId":{"shape":"NonEmptyString"}, + "isStaticIp":{"shape":"boolean"}, + "privateIpAddress":{"shape":"IpAddress"}, + "publicIpAddress":{"shape":"IpAddress"}, + "ipv6Address":{"shape":"IpV6Address"}, + "hardware":{"shape":"InstanceHardware"}, + "networking":{"shape":"InstanceNetworking"}, + "state":{"shape":"InstanceState"}, + "username":{"shape":"NonEmptyString"}, + "sshKeyName":{"shape":"ResourceName"} + } + }, + "InstanceAccessDetails":{ + "type":"structure", + "members":{ + "certKey":{"shape":"string"}, + "expiresAt":{"shape":"IsoDate"}, + "ipAddress":{"shape":"IpAddress"}, + "password":{"shape":"string"}, + "privateKey":{"shape":"string"}, + "protocol":{"shape":"InstanceAccessProtocol"}, + "instanceName":{"shape":"ResourceName"}, + "username":{"shape":"string"} + } + }, + "InstanceAccessProtocol":{ + "type":"string", + "enum":[ + "ssh", + "rdp" + ] + }, + "InstanceHardware":{ + "type":"structure", + "members":{ + "cpuCount":{"shape":"integer"}, + "disks":{"shape":"DiskList"}, + "ramSizeInGb":{"shape":"float"} + } + }, + "InstanceList":{ + "type":"list", + "member":{"shape":"Instance"} + }, + "InstanceMetricName":{ + "type":"string", + "enum":[ + "CPUUtilization", + "NetworkIn", + "NetworkOut", + "StatusCheckFailed", + "StatusCheckFailed_Instance", + "StatusCheckFailed_System" + ] + }, + "InstanceNetworking":{ + "type":"structure", + "members":{ + "monthlyTransfer":{"shape":"MonthlyTransfer"}, + "ports":{"shape":"InstancePortInfoList"} + } + }, + "InstancePortInfo":{ + "type":"structure", + "members":{ + "fromPort":{"shape":"Port"}, + "toPort":{"shape":"Port"}, + "protocol":{"shape":"NetworkProtocol"}, + "accessFrom":{"shape":"string"}, + "accessType":{"shape":"PortAccessType"}, + "commonName":{"shape":"string"}, + "accessDirection":{"shape":"AccessDirection"} + } + }, + "InstancePortInfoList":{ + "type":"list", + "member":{"shape":"InstancePortInfo"} + }, + "InstanceSnapshot":{ + "type":"structure", + "members":{ + "name":{"shape":"ResourceName"}, + "arn":{"shape":"NonEmptyString"}, + "supportCode":{"shape":"string"}, + "createdAt":{"shape":"IsoDate"}, + "location":{"shape":"ResourceLocation"}, + "resourceType":{"shape":"ResourceType"}, + "state":{"shape":"InstanceSnapshotState"}, + "progress":{"shape":"string"}, + "fromInstanceName":{"shape":"ResourceName"}, + "fromInstanceArn":{"shape":"NonEmptyString"}, + "fromBlueprintId":{"shape":"string"}, + "fromBundleId":{"shape":"string"}, + "sizeInGb":{"shape":"integer"} + } + }, + "InstanceSnapshotList":{ + "type":"list", + "member":{"shape":"InstanceSnapshot"} + }, + "InstanceSnapshotState":{ + "type":"string", + "enum":[ + "pending", + "error", + "available" + ] + }, + "InstanceState":{ + "type":"structure", + "members":{ + "code":{"shape":"integer"}, + "name":{"shape":"string"} + } + }, + "InvalidInputException":{ + "type":"structure", + "members":{ + "code":{"shape":"string"}, + "docs":{"shape":"string"}, + "message":{"shape":"string"}, + "tip":{"shape":"string"} + }, + "exception":true + }, + "IpAddress":{ + "type":"string", + "pattern":"([0-9]{1,3}\\.){3}[0-9]{1,3}" + }, + "IpV6Address":{ + "type":"string", + "pattern":"([A-F0-9]{1,4}:){7}[A-F0-9]{1,4}" + }, + "IsVpcPeeredRequest":{ + "type":"structure", + "members":{ + } + }, + "IsVpcPeeredResult":{ + "type":"structure", + "members":{ + "isPeered":{"shape":"boolean"} + } + }, + "IsoDate":{"type":"timestamp"}, + "KeyPair":{ + "type":"structure", + "members":{ + "name":{"shape":"ResourceName"}, + "arn":{"shape":"NonEmptyString"}, + "supportCode":{"shape":"string"}, + "createdAt":{"shape":"IsoDate"}, + "location":{"shape":"ResourceLocation"}, + "resourceType":{"shape":"ResourceType"}, + "fingerprint":{"shape":"Base64"} + } + }, + "KeyPairList":{ + "type":"list", + "member":{"shape":"KeyPair"} + }, + "MetricDatapoint":{ + "type":"structure", + "members":{ + "average":{"shape":"double"}, + "maximum":{"shape":"double"}, + "minimum":{"shape":"double"}, + "sampleCount":{"shape":"double"}, + "sum":{"shape":"double"}, + "timestamp":{"shape":"timestamp"}, + "unit":{"shape":"MetricUnit"} + } + }, + "MetricDatapointList":{ + "type":"list", + "member":{"shape":"MetricDatapoint"} + }, + "MetricPeriod":{ + "type":"integer", + "max":86400, + "min":60 + }, + "MetricStatistic":{ + "type":"string", + "enum":[ + "Minimum", + "Maximum", + "Sum", + "Average", + "SampleCount" + ] + }, + "MetricStatisticList":{ + "type":"list", + "member":{"shape":"MetricStatistic"} + }, + "MetricUnit":{ + "type":"string", + "enum":[ + "Seconds", + "Microseconds", + "Milliseconds", + "Bytes", + "Kilobytes", + "Megabytes", + "Gigabytes", + "Terabytes", + "Bits", + "Kilobits", + "Megabits", + "Gigabits", + "Terabits", + "Percent", + "Count", + "Bytes/Second", + "Kilobytes/Second", + "Megabytes/Second", + "Gigabytes/Second", + "Terabytes/Second", + "Bits/Second", + "Kilobits/Second", + "Megabits/Second", + "Gigabits/Second", + "Terabits/Second", + "Count/Second", + "None" + ] + }, + "MonthlyTransfer":{ + "type":"structure", + "members":{ + "gbPerMonthAllocated":{"shape":"integer"} + } + }, + "NetworkProtocol":{ + "type":"string", + "enum":[ + "tcp", + "all", + "udp" + ] + }, + "NonEmptyString":{ + "type":"string", + "pattern":".*\\S.*" + }, + "NotFoundException":{ + "type":"structure", + "members":{ + "code":{"shape":"string"}, + "docs":{"shape":"string"}, + "message":{"shape":"string"}, + "tip":{"shape":"string"} + }, + "exception":true + }, + "OpenInstancePublicPortsRequest":{ + "type":"structure", + "required":[ + "portInfo", + "instanceName" + ], + "members":{ + "portInfo":{"shape":"PortInfo"}, + "instanceName":{"shape":"ResourceName"} + } + }, + "OpenInstancePublicPortsResult":{ + "type":"structure", + "members":{ + "operation":{"shape":"Operation"} + } + }, + "Operation":{ + "type":"structure", + "members":{ + "id":{"shape":"NonEmptyString"}, + "resourceName":{"shape":"ResourceName"}, + "resourceType":{"shape":"ResourceType"}, + "createdAt":{"shape":"IsoDate"}, + "location":{"shape":"ResourceLocation"}, + "isTerminal":{"shape":"boolean"}, + "operationDetails":{"shape":"string"}, + "operationType":{"shape":"OperationType"}, + "status":{"shape":"OperationStatus"}, + "statusChangedAt":{"shape":"IsoDate"}, + "errorCode":{"shape":"string"}, + "errorDetails":{"shape":"string"} + } + }, + "OperationFailureException":{ + "type":"structure", + "members":{ + "code":{"shape":"string"}, + "docs":{"shape":"string"}, + "message":{"shape":"string"}, + "tip":{"shape":"string"} + }, + "exception":true + }, + "OperationList":{ + "type":"list", + "member":{"shape":"Operation"} + }, + "OperationStatus":{ + "type":"string", + "enum":[ + "NotStarted", + "Started", + "Failed", + "Completed" + ] + }, + "OperationType":{ + "type":"string", + "enum":[ + "DeleteInstance", + "CreateInstance", + "StopInstance", + "StartInstance", + "RebootInstance", + "OpenInstancePublicPorts", + "CloseInstancePublicPorts", + "AllocateStaticIp", + "ReleaseStaticIp", + "AttachStaticIp", + "DetachStaticIp", + "UpdateDomainEntry", + "DeleteDomainEntry", + "CreateDomain", + "DeleteDomain", + "CreateInstanceSnapshot", + "DeleteInstanceSnapshot", + "CreateInstancesFromSnapshot" + ] + }, + "PeerVpcRequest":{ + "type":"structure", + "members":{ + } + }, + "PeerVpcResult":{ + "type":"structure", + "members":{ + "operation":{"shape":"Operation"} + } + }, + "Port":{ + "type":"integer", + "max":65535, + "min":0 + }, + "PortAccessType":{ + "type":"string", + "enum":[ + "Public", + "Private" + ] + }, + "PortInfo":{ + "type":"structure", + "members":{ + "fromPort":{"shape":"Port"}, + "toPort":{"shape":"Port"}, + "protocol":{"shape":"NetworkProtocol"} + } + }, + "PortState":{ + "type":"string", + "enum":[ + "open", + "closed" + ] + }, + "PortStateList":{ + "type":"list", + "member":{"shape":"PortState"} + }, + "RebootInstanceRequest":{ + "type":"structure", + "required":["instanceName"], + "members":{ + "instanceName":{"shape":"ResourceName"} + } + }, + "RebootInstanceResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "Region":{ + "type":"structure", + "members":{ + "continentCode":{"shape":"string"}, + "description":{"shape":"string"}, + "displayName":{"shape":"string"}, + "name":{"shape":"RegionName"}, + "availabilityZones":{"shape":"AvailabilityZoneList"} + } + }, + "RegionList":{ + "type":"list", + "member":{"shape":"Region"} + }, + "RegionName":{ + "type":"string", + "enum":[ + "us-east-1", + "us-west-1", + "us-west-2", + "eu-west-1", + "eu-central-1", + "ap-south-1", + "ap-southeast-1", + "ap-southeast-2", + "ap-northeast-1", + "ap-northeast-2" + ] + }, + "ReleaseStaticIpRequest":{ + "type":"structure", + "required":["staticIpName"], + "members":{ + "staticIpName":{"shape":"ResourceName"} + } + }, + "ReleaseStaticIpResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "ResourceLocation":{ + "type":"structure", + "members":{ + "availabilityZone":{"shape":"string"}, + "regionName":{"shape":"RegionName"} + } + }, + "ResourceName":{ + "type":"string", + "pattern":"\\w[\\w\\-]*\\w" + }, + "ResourceType":{ + "type":"string", + "enum":[ + "Instance", + "StaticIp", + "KeyPair", + "InstanceSnapshot", + "Domain", + "PeeredVpc" + ] + }, + "ServiceException":{ + "type":"structure", + "members":{ + "code":{"shape":"string"}, + "docs":{"shape":"string"}, + "message":{"shape":"string"}, + "tip":{"shape":"string"} + }, + "exception":true + }, + "StartInstanceRequest":{ + "type":"structure", + "required":["instanceName"], + "members":{ + "instanceName":{"shape":"ResourceName"} + } + }, + "StartInstanceResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "StaticIp":{ + "type":"structure", + "members":{ + "name":{"shape":"ResourceName"}, + "arn":{"shape":"NonEmptyString"}, + "supportCode":{"shape":"string"}, + "createdAt":{"shape":"IsoDate"}, + "location":{"shape":"ResourceLocation"}, + "resourceType":{"shape":"ResourceType"}, + "ipAddress":{"shape":"IpAddress"}, + "attachedTo":{"shape":"ResourceName"}, + "isAttached":{"shape":"boolean"} + } + }, + "StaticIpList":{ + "type":"list", + "member":{"shape":"StaticIp"} + }, + "StopInstanceRequest":{ + "type":"structure", + "required":["instanceName"], + "members":{ + "instanceName":{"shape":"ResourceName"} + } + }, + "StopInstanceResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "StringList":{ + "type":"list", + "member":{"shape":"string"} + }, + "UnauthenticatedException":{ + "type":"structure", + "members":{ + "code":{"shape":"string"}, + "docs":{"shape":"string"}, + "message":{"shape":"string"}, + "tip":{"shape":"string"} + }, + "exception":true + }, + "UnpeerVpcRequest":{ + "type":"structure", + "members":{ + } + }, + "UnpeerVpcResult":{ + "type":"structure", + "members":{ + "operation":{"shape":"Operation"} + } + }, + "UpdateDomainEntryRequest":{ + "type":"structure", + "required":[ + "domainName", + "domainEntry" + ], + "members":{ + "domainName":{"shape":"DomainName"}, + "domainEntry":{"shape":"DomainEntry"} + } + }, + "UpdateDomainEntryResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "boolean":{"type":"boolean"}, + "double":{"type":"double"}, + "float":{"type":"float"}, + "integer":{"type":"integer"}, + "string":{"type":"string"}, + "timestamp":{"type":"timestamp"} + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/lightsail/2016-11-28/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/lightsail/2016-11-28/docs-2.json new file mode 100644 index 000000000..97e2ab6f4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/lightsail/2016-11-28/docs-2.json @@ -0,0 +1,1239 @@ +{ + "version": "2.0", + "service": "

Amazon Lightsail is the easiest way to get started with AWS for developers who just need virtual private servers. Lightsail includes everything you need to launch your project quickly - a virtual machine, SSD-based storage, data transfer, DNS management, and a static IP - for a low, predictable price. You manage those Lightsail servers through the Lightsail console or by using the API or command-line interface (CLI).

For more information about Lightsail concepts and tasks, see the Lightsail Dev Guide.

To use the Lightsail API or the CLI, you will need to use AWS Identity and Access Management (IAM) to generate access keys. For details about how to set this up, see the Lightsail Dev Guide.

", + "operations": { + "AllocateStaticIp": "

Allocates a static IP address.

", + "AttachStaticIp": "

Attaches a static IP address to a specific Amazon Lightsail instance.

", + "CloseInstancePublicPorts": "

Closes the public ports on a specific Amazon Lightsail instance.

", + "CreateDomain": "

Creates a domain resource for the specified domain (e.g., example.com).

", + "CreateDomainEntry": "

Creates one of the following entry records associated with the domain: A record, CNAME record, TXT record, or MX record.

", + "CreateInstanceSnapshot": "

Creates a snapshot of a specific virtual private server, or instance. You can use a snapshot to create a new instance that is based on that snapshot.

", + "CreateInstances": "

Creates one or more Amazon Lightsail virtual private servers, or instances.

", + "CreateInstancesFromSnapshot": "

Uses a specific snapshot as a blueprint for creating one or more new instances that are based on that identical configuration.

", + "CreateKeyPair": "

Creates sn SSH key pair.

", + "DeleteDomain": "

Deletes the specified domain recordset and all of its domain records.

", + "DeleteDomainEntry": "

Deletes a specific domain entry.

", + "DeleteInstance": "

Deletes a specific Amazon Lightsail virtual private server, or instance.

", + "DeleteInstanceSnapshot": "

Deletes a specific snapshot of a virtual private server (or instance).

", + "DeleteKeyPair": "

Deletes a specific SSH key pair.

", + "DetachStaticIp": "

Detaches a static IP from the Amazon Lightsail instance to which it is attached.

", + "DownloadDefaultKeyPair": "

Downloads the default SSH key pair from the user's account.

", + "GetActiveNames": "

Returns the names of all active (not deleted) resources.

", + "GetBlueprints": "

Returns the list of available instance images, or blueprints. You can use a blueprint to create a new virtual private server already running a specific operating system, as well as a preinstalled app or development stack. The software each instance is running depends on the blueprint image you choose.

", + "GetBundles": "

Returns the list of bundles that are available for purchase. A bundle describes the specs for your virtual private server (or instance).

", + "GetDomain": "

Returns information about a specific domain recordset.

", + "GetDomains": "

Returns a list of all domains in the user's account.

", + "GetInstance": "

Returns information about a specific Amazon Lightsail instance, which is a virtual private server.

", + "GetInstanceAccessDetails": "

Returns temporary SSH keys you can use to connect to a specific virtual private server, or instance.

", + "GetInstanceMetricData": "

Returns the data points for the specified Amazon Lightsail instance metric, given an instance name.

", + "GetInstancePortStates": "

Returns the port states for a specific virtual private server, or instance.

", + "GetInstanceSnapshot": "

Returns information about a specific instance snapshot.

", + "GetInstanceSnapshots": "

Returns all instance snapshots for the user's account.

", + "GetInstanceState": "

Returns the state of a specific instance. Works on one instance at a time.

", + "GetInstances": "

Returns information about all Amazon Lightsail virtual private servers, or instances.

", + "GetKeyPair": "

Returns information about a specific key pair.

", + "GetKeyPairs": "

Returns information about all key pairs in the user's account.

", + "GetOperation": "

Returns information about a specific operation. Operations include events such as when you create an instance, allocate a static IP, attach a static IP, and so on.

", + "GetOperations": "

Returns information about all operations.

Results are returned from oldest to newest, up to a maximum of 200. Results can be paged by making each subsequent call to GetOperations use the maximum (last) statusChangedAt value from the previous request.

", + "GetOperationsForResource": "

Gets operations for a specific resource (e.g., an instance or a static IP).

", + "GetRegions": "

Returns a list of all valid regions for Amazon Lightsail.

", + "GetStaticIp": "

Returns information about a specific static IP.

", + "GetStaticIps": "

Returns information about all static IPs in the user's account.

", + "ImportKeyPair": "

Imports a public SSH key from a specific key pair.

", + "IsVpcPeered": "

Returns a Boolean value indicating whether your Lightsail VPC is peered.

", + "OpenInstancePublicPorts": "

Adds public ports to an Amazon Lightsail instance.

", + "PeerVpc": "

Tries to peer the Lightsail VPC with the user's default VPC.

", + "RebootInstance": "

Restarts a specific instance. When your Amazon Lightsail instance is finished rebooting, Lightsail assigns a new public IP address. To use the same IP address after restarting, create a static IP address and attach it to the instance.

", + "ReleaseStaticIp": "

Deletes a specific static IP from your account.

", + "StartInstance": "

Starts a specific Amazon Lightsail instance from a stopped state. To restart an instance, use the reboot instance operation.

", + "StopInstance": "

Stops a specific Amazon Lightsail instance that is currently running.

", + "UnpeerVpc": "

Attempts to unpeer the Lightsail VPC from the user's default VPC.

", + "UpdateDomainEntry": "

Updates a domain recordset after it is created.

" + }, + "shapes": { + "AccessDeniedException": { + "base": "

Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.

", + "refs": { + } + }, + "AccessDirection": { + "base": null, + "refs": { + "InstancePortInfo$accessDirection": "

The access direction (inbound or outbound).

" + } + }, + "AccountSetupInProgressException": { + "base": "

Lightsail throws this exception when an account is still in the setup in progress state.

", + "refs": { + } + }, + "AllocateStaticIpRequest": { + "base": null, + "refs": { + } + }, + "AllocateStaticIpResult": { + "base": null, + "refs": { + } + }, + "AttachStaticIpRequest": { + "base": null, + "refs": { + } + }, + "AttachStaticIpResult": { + "base": null, + "refs": { + } + }, + "AvailabilityZone": { + "base": "

Describes an Availability Zone.

", + "refs": { + "AvailabilityZoneList$member": null + } + }, + "AvailabilityZoneList": { + "base": null, + "refs": { + "Region$availabilityZones": "

The Availability Zones.

" + } + }, + "Base64": { + "base": null, + "refs": { + "CreateKeyPairResult$publicKeyBase64": "

A base64-encoded public key of the ssh-rsa type.

", + "CreateKeyPairResult$privateKeyBase64": "

A base64-encoded RSA private key.

", + "DownloadDefaultKeyPairResult$publicKeyBase64": "

A base64-encoded public key of the ssh-rsa type.

", + "DownloadDefaultKeyPairResult$privateKeyBase64": "

A base64-encoded RSA private key.

", + "ImportKeyPairRequest$publicKeyBase64": "

A base64-encoded public key of the ssh-rsa type.

", + "KeyPair$fingerprint": "

The RSA fingerprint of the key pair.

" + } + }, + "Blueprint": { + "base": "

Describes a blueprint (a virtual private server image).

", + "refs": { + "BlueprintList$member": null + } + }, + "BlueprintList": { + "base": null, + "refs": { + "GetBlueprintsResult$blueprints": "

An array of key-value pairs that contains information about the available blueprints.

" + } + }, + "BlueprintType": { + "base": null, + "refs": { + "Blueprint$type": "

The type of the blueprint (e.g., os or app).

" + } + }, + "Bundle": { + "base": "

Describes a bundle, which is a set of specs describing your virtual private server (or instance).

", + "refs": { + "BundleList$member": null + } + }, + "BundleList": { + "base": null, + "refs": { + "GetBundlesResult$bundles": "

An array of key-value pairs that contains information about the available bundles.

" + } + }, + "CloseInstancePublicPortsRequest": { + "base": null, + "refs": { + } + }, + "CloseInstancePublicPortsResult": { + "base": null, + "refs": { + } + }, + "CreateDomainEntryRequest": { + "base": null, + "refs": { + } + }, + "CreateDomainEntryResult": { + "base": null, + "refs": { + } + }, + "CreateDomainRequest": { + "base": null, + "refs": { + } + }, + "CreateDomainResult": { + "base": null, + "refs": { + } + }, + "CreateInstanceSnapshotRequest": { + "base": null, + "refs": { + } + }, + "CreateInstanceSnapshotResult": { + "base": null, + "refs": { + } + }, + "CreateInstancesFromSnapshotRequest": { + "base": null, + "refs": { + } + }, + "CreateInstancesFromSnapshotResult": { + "base": null, + "refs": { + } + }, + "CreateInstancesRequest": { + "base": null, + "refs": { + } + }, + "CreateInstancesResult": { + "base": null, + "refs": { + } + }, + "CreateKeyPairRequest": { + "base": null, + "refs": { + } + }, + "CreateKeyPairResult": { + "base": null, + "refs": { + } + }, + "DeleteDomainEntryRequest": { + "base": null, + "refs": { + } + }, + "DeleteDomainEntryResult": { + "base": null, + "refs": { + } + }, + "DeleteDomainRequest": { + "base": null, + "refs": { + } + }, + "DeleteDomainResult": { + "base": null, + "refs": { + } + }, + "DeleteInstanceRequest": { + "base": null, + "refs": { + } + }, + "DeleteInstanceResult": { + "base": null, + "refs": { + } + }, + "DeleteInstanceSnapshotRequest": { + "base": null, + "refs": { + } + }, + "DeleteInstanceSnapshotResult": { + "base": null, + "refs": { + } + }, + "DeleteKeyPairRequest": { + "base": null, + "refs": { + } + }, + "DeleteKeyPairResult": { + "base": null, + "refs": { + } + }, + "DetachStaticIpRequest": { + "base": null, + "refs": { + } + }, + "DetachStaticIpResult": { + "base": null, + "refs": { + } + }, + "Disk": { + "base": "

Describes the hard disk (an SSD).

", + "refs": { + "DiskList$member": null + } + }, + "DiskList": { + "base": null, + "refs": { + "InstanceHardware$disks": "

The disks attached to the instance.

" + } + }, + "Domain": { + "base": "

Describes a domain where you are storing recordsets in Lightsail.

", + "refs": { + "DomainList$member": null, + "GetDomainResult$domain": "

An array of key-value pairs containing information about your get domain request.

" + } + }, + "DomainEntry": { + "base": "

Describes a domain recordset entry.

", + "refs": { + "CreateDomainEntryRequest$domainEntry": "

An array of key-value pairs containing information about the domain entry request.

", + "DeleteDomainEntryRequest$domainEntry": "

An array of key-value pairs containing information about your domain entries.

", + "DomainEntryList$member": null, + "UpdateDomainEntryRequest$domainEntry": "

An array of key-value pairs containing information about the domain entry.

" + } + }, + "DomainEntryList": { + "base": null, + "refs": { + "Domain$domainEntries": "

An array of key-value pairs containing information about the domain entries.

" + } + }, + "DomainEntryOptions": { + "base": null, + "refs": { + "DomainEntry$options": "

The options for the domain entry.

" + } + }, + "DomainEntryOptionsKeys": { + "base": null, + "refs": { + "DomainEntryOptions$key": null + } + }, + "DomainEntryType": { + "base": null, + "refs": { + "DomainEntry$type": "

The type of domain entry (e.g., SOA or NS).

" + } + }, + "DomainList": { + "base": null, + "refs": { + "GetDomainsResult$domains": "

An array of key-value pairs containing information about each of the domain entries in the user's account.

" + } + }, + "DomainName": { + "base": null, + "refs": { + "CreateDomainEntryRequest$domainName": "

The domain name (e.g., example.com) for which you want to create the domain entry.

", + "CreateDomainRequest$domainName": "

The domain name to manage (e.g., example.com).

You cannot register a new domain name using Lightsail. You must register a domain name using Amazon Route 53 or another domain name registrar. If you have already registered your domain, you can enter its name in this parameter to manage the DNS records for that domain.

", + "DeleteDomainEntryRequest$domainName": "

The name of the domain entry to delete.

", + "DeleteDomainRequest$domainName": "

The specific domain name to delete.

", + "DomainEntry$name": "

The name of the domain.

", + "GetDomainRequest$domainName": "

The domain name for which your want to return information about.

", + "UpdateDomainEntryRequest$domainName": "

The name of the domain recordset to update.

" + } + }, + "DownloadDefaultKeyPairRequest": { + "base": null, + "refs": { + } + }, + "DownloadDefaultKeyPairResult": { + "base": null, + "refs": { + } + }, + "GetActiveNamesRequest": { + "base": null, + "refs": { + } + }, + "GetActiveNamesResult": { + "base": null, + "refs": { + } + }, + "GetBlueprintsRequest": { + "base": null, + "refs": { + } + }, + "GetBlueprintsResult": { + "base": null, + "refs": { + } + }, + "GetBundlesRequest": { + "base": null, + "refs": { + } + }, + "GetBundlesResult": { + "base": null, + "refs": { + } + }, + "GetDomainRequest": { + "base": null, + "refs": { + } + }, + "GetDomainResult": { + "base": null, + "refs": { + } + }, + "GetDomainsRequest": { + "base": null, + "refs": { + } + }, + "GetDomainsResult": { + "base": null, + "refs": { + } + }, + "GetInstanceAccessDetailsRequest": { + "base": null, + "refs": { + } + }, + "GetInstanceAccessDetailsResult": { + "base": null, + "refs": { + } + }, + "GetInstanceMetricDataRequest": { + "base": null, + "refs": { + } + }, + "GetInstanceMetricDataResult": { + "base": null, + "refs": { + } + }, + "GetInstancePortStatesRequest": { + "base": null, + "refs": { + } + }, + "GetInstancePortStatesResult": { + "base": null, + "refs": { + } + }, + "GetInstanceRequest": { + "base": null, + "refs": { + } + }, + "GetInstanceResult": { + "base": null, + "refs": { + } + }, + "GetInstanceSnapshotRequest": { + "base": null, + "refs": { + } + }, + "GetInstanceSnapshotResult": { + "base": null, + "refs": { + } + }, + "GetInstanceSnapshotsRequest": { + "base": null, + "refs": { + } + }, + "GetInstanceSnapshotsResult": { + "base": null, + "refs": { + } + }, + "GetInstanceStateRequest": { + "base": null, + "refs": { + } + }, + "GetInstanceStateResult": { + "base": null, + "refs": { + } + }, + "GetInstancesRequest": { + "base": null, + "refs": { + } + }, + "GetInstancesResult": { + "base": null, + "refs": { + } + }, + "GetKeyPairRequest": { + "base": null, + "refs": { + } + }, + "GetKeyPairResult": { + "base": null, + "refs": { + } + }, + "GetKeyPairsRequest": { + "base": null, + "refs": { + } + }, + "GetKeyPairsResult": { + "base": null, + "refs": { + } + }, + "GetOperationRequest": { + "base": null, + "refs": { + } + }, + "GetOperationResult": { + "base": null, + "refs": { + } + }, + "GetOperationsForResourceRequest": { + "base": null, + "refs": { + } + }, + "GetOperationsForResourceResult": { + "base": null, + "refs": { + } + }, + "GetOperationsRequest": { + "base": null, + "refs": { + } + }, + "GetOperationsResult": { + "base": null, + "refs": { + } + }, + "GetRegionsRequest": { + "base": null, + "refs": { + } + }, + "GetRegionsResult": { + "base": null, + "refs": { + } + }, + "GetStaticIpRequest": { + "base": null, + "refs": { + } + }, + "GetStaticIpResult": { + "base": null, + "refs": { + } + }, + "GetStaticIpsRequest": { + "base": null, + "refs": { + } + }, + "GetStaticIpsResult": { + "base": null, + "refs": { + } + }, + "ImportKeyPairRequest": { + "base": null, + "refs": { + } + }, + "ImportKeyPairResult": { + "base": null, + "refs": { + } + }, + "Instance": { + "base": "

Describes an instance (a virtual private server).

", + "refs": { + "GetInstanceResult$instance": "

An array of key-value pairs containing information about the specified instance.

", + "InstanceList$member": null + } + }, + "InstanceAccessDetails": { + "base": "

The parameters for gaining temporary access to one of your Amazon Lightsail instances.

", + "refs": { + "GetInstanceAccessDetailsResult$accessDetails": "

An array of key-value pairs containing information about a get instance access request.

" + } + }, + "InstanceAccessProtocol": { + "base": null, + "refs": { + "GetInstanceAccessDetailsRequest$protocol": "

The protocol to use to connect to your instance. Defaults to ssh.

", + "InstanceAccessDetails$protocol": "

The protocol for these Amazon Lightsail instance access details.

" + } + }, + "InstanceHardware": { + "base": "

Describes the hardware for the instance.

", + "refs": { + "Instance$hardware": "

The size of the vCPU and the amount of RAM for the instance.

" + } + }, + "InstanceList": { + "base": null, + "refs": { + "GetInstancesResult$instances": "

An array of key-value pairs containing information about your instances.

" + } + }, + "InstanceMetricName": { + "base": null, + "refs": { + "GetInstanceMetricDataRequest$metricName": "

The metric name to get data about.

", + "GetInstanceMetricDataResult$metricName": "

The metric name to return data for.

" + } + }, + "InstanceNetworking": { + "base": "

Describes monthly data transfer rates and port information for an instance.

", + "refs": { + "Instance$networking": "

Information about the public ports and monthly data transfer rates for the instance.

" + } + }, + "InstancePortInfo": { + "base": "

Describes information about the instance ports.

", + "refs": { + "InstancePortInfoList$member": null + } + }, + "InstancePortInfoList": { + "base": null, + "refs": { + "InstanceNetworking$ports": "

An array of key-value pairs containing information about the ports on the instance.

" + } + }, + "InstanceSnapshot": { + "base": "

Describes the snapshot of the virtual private server, or instance.

", + "refs": { + "GetInstanceSnapshotResult$instanceSnapshot": "

An array of key-value pairs containing information about the results of your get instance snapshot request.

", + "InstanceSnapshotList$member": null + } + }, + "InstanceSnapshotList": { + "base": null, + "refs": { + "GetInstanceSnapshotsResult$instanceSnapshots": "

An array of key-value pairs containing information about the results of your get instance snapshots request.

" + } + }, + "InstanceSnapshotState": { + "base": null, + "refs": { + "InstanceSnapshot$state": "

The state the snapshot is in.

" + } + }, + "InstanceState": { + "base": "

Describes the virtual private server (or instance) status.

", + "refs": { + "GetInstanceStateResult$state": "

The state of the instance.

", + "Instance$state": "

The status code and the state (e.g., running) for the instance.

" + } + }, + "InvalidInputException": { + "base": "

Lightsail throws this exception when user input does not conform to the validation rules of an input field.

", + "refs": { + } + }, + "IpAddress": { + "base": null, + "refs": { + "Instance$privateIpAddress": "

The private IP address of the instance.

", + "Instance$publicIpAddress": "

The public IP address of the instance.

", + "InstanceAccessDetails$ipAddress": "

The public IP address of the Amazon Lightsail instance.

", + "StaticIp$ipAddress": "

The static IP address.

" + } + }, + "IpV6Address": { + "base": null, + "refs": { + "Instance$ipv6Address": "

The IPv6 address of the instance.

" + } + }, + "IsVpcPeeredRequest": { + "base": null, + "refs": { + } + }, + "IsVpcPeeredResult": { + "base": null, + "refs": { + } + }, + "IsoDate": { + "base": null, + "refs": { + "Disk$createdAt": "

The date when the disk was created.

", + "Domain$createdAt": "

The date when the domain recordset was created.

", + "Instance$createdAt": "

The timestamp when the instance was created (e.g., 1479734909.17).

", + "InstanceAccessDetails$expiresAt": "

For SSH access, the date on which the temporary keys expire.

", + "InstanceSnapshot$createdAt": "

The timestamp when the snapshot was created (e.g., 1479907467.024).

", + "KeyPair$createdAt": "

The timestamp when the key pair was created (e.g., 1479816991.349).

", + "Operation$createdAt": "

The timestamp when the operation was initialized (e.g., 1479816991.349).

", + "Operation$statusChangedAt": "

The timestamp when the status was changed (e.g., 1479816991.349).

", + "StaticIp$createdAt": "

The timestamp when the static IP was created (e.g., 1479735304.222).

" + } + }, + "KeyPair": { + "base": "

Describes the SSH key pair.

", + "refs": { + "CreateKeyPairResult$keyPair": "

An array of key-value pairs containing information about the new key pair you just created.

", + "GetKeyPairResult$keyPair": "

An array of key-value pairs containing information about the key pair.

", + "KeyPairList$member": null + } + }, + "KeyPairList": { + "base": null, + "refs": { + "GetKeyPairsResult$keyPairs": "

An array of key-value pairs containing information about the key pairs.

" + } + }, + "MetricDatapoint": { + "base": "

Describes the metric data point.

", + "refs": { + "MetricDatapointList$member": null + } + }, + "MetricDatapointList": { + "base": null, + "refs": { + "GetInstanceMetricDataResult$metricData": "

An array of key-value pairs containing information about the results of your get instance metric data request.

" + } + }, + "MetricPeriod": { + "base": null, + "refs": { + "GetInstanceMetricDataRequest$period": "

The time period for which you are requesting data.

" + } + }, + "MetricStatistic": { + "base": null, + "refs": { + "MetricStatisticList$member": null + } + }, + "MetricStatisticList": { + "base": null, + "refs": { + "GetInstanceMetricDataRequest$statistics": "

The instance statistics.

" + } + }, + "MetricUnit": { + "base": null, + "refs": { + "GetInstanceMetricDataRequest$unit": "

The unit. The list of valid values is below.

", + "MetricDatapoint$unit": "

The unit.

" + } + }, + "MonthlyTransfer": { + "base": "

Describes the monthly data transfer in and out of your virtual private server (or instance).

", + "refs": { + "InstanceNetworking$monthlyTransfer": "

The amount of data in GB allocated for monthly data transfers.

" + } + }, + "NetworkProtocol": { + "base": null, + "refs": { + "InstancePortInfo$protocol": "

The protocol.

", + "PortInfo$protocol": "

The protocol.

" + } + }, + "NonEmptyString": { + "base": null, + "refs": { + "AvailabilityZone$zoneName": "

The name of the Availability Zone.

", + "AvailabilityZone$state": "

The state of the Availability Zone.

", + "Blueprint$blueprintId": "

The ID for the virtual private server image (e.g., app_wordpress_4_4 or app_lamp_7_0).

", + "Blueprint$group": "

The group name of the blueprint (e.g., amazon-linux).

", + "Bundle$bundleId": "

The bundle ID (e.g., micro_1_0).

", + "CreateInstancesFromSnapshotRequest$bundleId": "

The bundle of specification information for your virtual private server (or instance), including the pricing plan (e.g., micro_1_0).

", + "CreateInstancesRequest$blueprintId": "

The ID for a virtual private server image (e.g., app_wordpress_4_4 or app_lamp_7_0). Use the get blueprints operation to return a list of available images (or blueprints).

", + "CreateInstancesRequest$bundleId": "

The bundle of specification information for your virtual private server (or instance), including the pricing plan (e.g., micro_1_0).

", + "Disk$arn": "

The Amazon Resource Name (ARN) of the disk.

", + "Domain$arn": "

The Amazon Resource Name (ARN) of the domain recordset (e.g., arn:aws:lightsail:global:123456789101:Domain/824cede0-abc7-4f84-8dbc-12345EXAMPLE).

", + "DomainEntry$id": "

The ID of the domain recordset entry.

", + "GetOperationRequest$operationId": "

A GUID used to identify the operation.

", + "Instance$arn": "

The Amazon Resource Name (ARN) of the instance (e.g., arn:aws:lightsail:us-east-1:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).

", + "Instance$blueprintId": "

The blueprint ID (e.g., os_amlinux_2016_03).

", + "Instance$blueprintName": "

The friendly name of the blueprint (e.g., Amazon Linux).

", + "Instance$bundleId": "

The bundle for the instance (e.g., micro_1_0).

", + "Instance$username": "

The user name for connecting to the instance (e.g., ec2-user).

", + "InstanceSnapshot$arn": "

The Amazon Resource Name (ARN) of the snapshot (e.g., arn:aws:lightsail:us-east-1:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE).

", + "InstanceSnapshot$fromInstanceArn": "

The Amazon Resource Name (ARN) of the instance from which the snapshot was created (e.g., arn:aws:lightsail:us-east-1:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE).

", + "KeyPair$arn": "

The Amazon Resource Name (ARN) of the key pair (e.g., arn:aws:lightsail:us-east-1:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).

", + "Operation$id": "

The ID of the operation.

", + "StaticIp$arn": "

The Amazon Resource Name (ARN) of the static IP (e.g., arn:aws:lightsail:us-east-1:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE).

" + } + }, + "NotFoundException": { + "base": "

Lightsail throws this exception when it cannot find a resource.

", + "refs": { + } + }, + "OpenInstancePublicPortsRequest": { + "base": null, + "refs": { + } + }, + "OpenInstancePublicPortsResult": { + "base": null, + "refs": { + } + }, + "Operation": { + "base": "

Describes the API operation.

", + "refs": { + "CloseInstancePublicPortsResult$operation": "

An array of key-value pairs that contains information about the operation.

", + "CreateDomainEntryResult$operation": "

An array of key-value pairs containing information about the operation.

", + "CreateDomainResult$operation": "

An array of key-value pairs containing information about the domain resource you created.

", + "CreateKeyPairResult$operation": "

An array of key-value pairs containing information about the results of your create key pair request.

", + "DeleteDomainEntryResult$operation": "

An array of key-value pairs containing information about the results of your delete domain entry request.

", + "DeleteDomainResult$operation": "

An array of key-value pairs containing information about the results of your delete domain request.

", + "DeleteKeyPairResult$operation": "

An array of key-value pairs containing information about the results of your delete key pair request.

", + "GetOperationResult$operation": "

An array of key-value pairs containing information about the results of your get operation request.

", + "ImportKeyPairResult$operation": "

An array of key-value pairs containing information about the request operation.

", + "OpenInstancePublicPortsResult$operation": "

An array of key-value pairs containing information about the request operation.

", + "OperationList$member": null, + "PeerVpcResult$operation": "

An array of key-value pairs containing information about the request operation.

", + "UnpeerVpcResult$operation": "

An array of key-value pairs containing information about the request operation.

" + } + }, + "OperationFailureException": { + "base": "

Lightsail throws this exception when an operation fails to execute.

", + "refs": { + } + }, + "OperationList": { + "base": null, + "refs": { + "AllocateStaticIpResult$operations": "

An array of key-value pairs containing information about the static IP address you allocated.

", + "AttachStaticIpResult$operations": "

An array of key-value pairs containing information about your API operations.

", + "CreateInstanceSnapshotResult$operations": "

An array of key-value pairs containing information about the results of your create instances snapshot request.

", + "CreateInstancesFromSnapshotResult$operations": "

An array of key-value pairs containing information about the results of your create instances from snapshot request.

", + "CreateInstancesResult$operations": "

An array of key-value pairs containing information about the results of your create instances request.

", + "DeleteInstanceResult$operations": "

An array of key-value pairs containing information about the results of your delete instance request.

", + "DeleteInstanceSnapshotResult$operations": "

An array of key-value pairs containing information about the results of your delete instance snapshot request.

", + "DetachStaticIpResult$operations": "

An array of key-value pairs containing information about the results of your detach static IP request.

", + "GetOperationsForResourceResult$operations": "

An array of key-value pairs containing information about the results of your get operations for resource request.

", + "GetOperationsResult$operations": "

An array of key-value pairs containing information about the results of your get operations request.

", + "RebootInstanceResult$operations": "

An array of key-value pairs containing information about the request operation.

", + "ReleaseStaticIpResult$operations": "

An array of key-value pairs containing information about the request operation.

", + "StartInstanceResult$operations": "

An array of key-value pairs containing information about the request operation.

", + "StopInstanceResult$operations": "

An array of key-value pairs containing information about the request operation.

", + "UpdateDomainEntryResult$operations": "

An array of key-value pairs containing information about the request operation.

" + } + }, + "OperationStatus": { + "base": null, + "refs": { + "Operation$status": "

The status of the operation.

" + } + }, + "OperationType": { + "base": null, + "refs": { + "Operation$operationType": "

The type of operation.

" + } + }, + "PeerVpcRequest": { + "base": null, + "refs": { + } + }, + "PeerVpcResult": { + "base": null, + "refs": { + } + }, + "Port": { + "base": null, + "refs": { + "InstancePortInfo$fromPort": "

The first port in the range.

", + "InstancePortInfo$toPort": "

The last port in the range.

", + "PortInfo$fromPort": "

The first port in the range.

", + "PortInfo$toPort": "

The last port in the range.

" + } + }, + "PortAccessType": { + "base": null, + "refs": { + "InstancePortInfo$accessType": "

The type of access (Public or Private).

" + } + }, + "PortInfo": { + "base": "

Describes information about the ports on your virtual private server (or instance).

", + "refs": { + "CloseInstancePublicPortsRequest$portInfo": "

Information about the public port you are trying to close.

", + "OpenInstancePublicPortsRequest$portInfo": "

An array of key-value pairs containing information about the port mappings.

" + } + }, + "PortState": { + "base": null, + "refs": { + "PortStateList$member": null + } + }, + "PortStateList": { + "base": null, + "refs": { + "GetInstancePortStatesResult$portStates": "

Information about the port states resulting from your request.

" + } + }, + "RebootInstanceRequest": { + "base": null, + "refs": { + } + }, + "RebootInstanceResult": { + "base": null, + "refs": { + } + }, + "Region": { + "base": "

Describes the AWS Region.

", + "refs": { + "RegionList$member": null + } + }, + "RegionList": { + "base": null, + "refs": { + "GetRegionsResult$regions": "

An array of key-value pairs containing information about your get regions request.

" + } + }, + "RegionName": { + "base": null, + "refs": { + "Region$name": "

The region name (e.g., us-east-1).

", + "ResourceLocation$regionName": "

The AWS Region name.

" + } + }, + "ReleaseStaticIpRequest": { + "base": null, + "refs": { + } + }, + "ReleaseStaticIpResult": { + "base": null, + "refs": { + } + }, + "ResourceLocation": { + "base": "

Describes the resource location.

", + "refs": { + "Disk$location": "

The region and Availability Zone where the disk is located.

", + "Domain$location": "

The AWS Region and Availability Zones where the domain recordset was created.

", + "Instance$location": "

The region name and availability zone where the instance is located.

", + "InstanceSnapshot$location": "

The region name and availability zone where you created the snapshot.

", + "KeyPair$location": "

The region name and Availability Zone where the key pair was created.

", + "Operation$location": "

The region and Availability Zone.

", + "StaticIp$location": "

The region and Availability Zone where the static IP was created.

" + } + }, + "ResourceName": { + "base": null, + "refs": { + "AllocateStaticIpRequest$staticIpName": "

The name of the static IP address.

", + "AttachStaticIpRequest$staticIpName": "

The name of the static IP.

", + "AttachStaticIpRequest$instanceName": "

The instance name to which you want to attach the static IP address.

", + "Blueprint$name": "

The friendly name of the blueprint (e.g., Amazon Linux).

", + "CloseInstancePublicPortsRequest$instanceName": "

The name of the instance on which you're attempting to close the public ports.

", + "CreateInstanceSnapshotRequest$instanceSnapshotName": "

The name for your new snapshot.

", + "CreateInstanceSnapshotRequest$instanceName": "

The Lightsail instance on which to base your snapshot.

", + "CreateInstancesFromSnapshotRequest$instanceSnapshotName": "

The name of the instance snapshot on which you are basing your new instances. Use the get instance snapshots operation to return information about your existing snapshots.

", + "CreateInstancesFromSnapshotRequest$keyPairName": "

The name for your key pair.

", + "CreateInstancesRequest$customImageName": "

The name for your custom image.

", + "CreateInstancesRequest$keyPairName": "

The name of your key pair.

", + "CreateKeyPairRequest$keyPairName": "

The name for your new key pair.

", + "DeleteInstanceRequest$instanceName": "

The name of the instance to delete.

", + "DeleteInstanceSnapshotRequest$instanceSnapshotName": "

The name of the snapshot to delete.

", + "DeleteKeyPairRequest$keyPairName": "

The name of the key pair to delete.

", + "DetachStaticIpRequest$staticIpName": "

The name of the static IP to detach from the instance.

", + "Disk$name": "

The name of the disk.

", + "Domain$name": "

The name of the domain.

", + "GetInstanceAccessDetailsRequest$instanceName": "

The name of the instance to access.

", + "GetInstanceMetricDataRequest$instanceName": "

The name of the instance for which you want to get metrics data.

", + "GetInstancePortStatesRequest$instanceName": "

The name of the instance.

", + "GetInstanceRequest$instanceName": "

The name of the instance.

", + "GetInstanceSnapshotRequest$instanceSnapshotName": "

The name of the snapshot for which you are requesting information.

", + "GetInstanceStateRequest$instanceName": "

The name of the instance to get state information about.

", + "GetKeyPairRequest$keyPairName": "

The name of the key pair for which you are requesting information.

", + "GetOperationsForResourceRequest$resourceName": "

The name of the resource for which you are requesting information.

", + "GetStaticIpRequest$staticIpName": "

The name of the static IP in Lightsail.

", + "ImportKeyPairRequest$keyPairName": "

The name of the key pair for which you want to import the public key.

", + "Instance$name": "

The name the user gave the instance (e.g., Amazon_Linux-1GB-Virginia-1).

", + "Instance$sshKeyName": "

The name of the SSH key being used to connect to the instance (e.g., LightsailDefaultKeyPair).

", + "InstanceAccessDetails$instanceName": "

The name of this Amazon Lightsail instance.

", + "InstanceSnapshot$name": "

The name of the snapshot.

", + "InstanceSnapshot$fromInstanceName": "

The instance from which the snapshot was created.

", + "KeyPair$name": "

The friendly name of the SSH key pair.

", + "OpenInstancePublicPortsRequest$instanceName": "

The name of the instance for which you want to open the public ports.

", + "Operation$resourceName": "

The resource name.

", + "RebootInstanceRequest$instanceName": "

The name of the instance to reboot.

", + "ReleaseStaticIpRequest$staticIpName": "

The name of the static IP to delete.

", + "StartInstanceRequest$instanceName": "

The name of the instance (a virtual private server) to start.

", + "StaticIp$name": "

The name of the static IP (e.g., StaticIP-Virginia-EXAMPLE).

", + "StaticIp$attachedTo": "

The instance where the static IP is attached (e.g., Amazon_Linux-1GB-Virginia-1).

", + "StopInstanceRequest$instanceName": "

The name of the instance (a virtual private server) to stop.

" + } + }, + "ResourceType": { + "base": null, + "refs": { + "Disk$resourceType": "

The resource type of the disk.

", + "Domain$resourceType": "

The resource type.

", + "Instance$resourceType": "

The type of resource (usually Instance).

", + "InstanceSnapshot$resourceType": "

The type of resource (usually InstanceSnapshot).

", + "KeyPair$resourceType": "

The resource type (usually KeyPair).

", + "Operation$resourceType": "

The resource type.

", + "StaticIp$resourceType": "

The resource type (usually StaticIp).

" + } + }, + "ServiceException": { + "base": "

A general service exception.

", + "refs": { + } + }, + "StartInstanceRequest": { + "base": null, + "refs": { + } + }, + "StartInstanceResult": { + "base": null, + "refs": { + } + }, + "StaticIp": { + "base": "

Describes the static IP.

", + "refs": { + "GetStaticIpResult$staticIp": "

An array of key-value pairs containing information about the requested static IP.

", + "StaticIpList$member": null + } + }, + "StaticIpList": { + "base": null, + "refs": { + "GetStaticIpsResult$staticIps": "

An array of key-value pairs containing information about your get static IPs request.

" + } + }, + "StopInstanceRequest": { + "base": null, + "refs": { + } + }, + "StopInstanceResult": { + "base": null, + "refs": { + } + }, + "StringList": { + "base": null, + "refs": { + "CreateInstancesFromSnapshotRequest$instanceNames": "

The names for your new instances.

", + "CreateInstancesRequest$instanceNames": "

The names to use for your new Lightsail instances. Separate multiple values using quotation marks and commas, for example: [\"MyFirstInstance\",\"MySecondInstance\"]

", + "GetActiveNamesResult$activeNames": "

The list of active names returned by the get active names request.

" + } + }, + "UnauthenticatedException": { + "base": "

Lightsail throws this exception when the user has not been authenticated.

", + "refs": { + } + }, + "UnpeerVpcRequest": { + "base": null, + "refs": { + } + }, + "UnpeerVpcResult": { + "base": null, + "refs": { + } + }, + "UpdateDomainEntryRequest": { + "base": null, + "refs": { + } + }, + "UpdateDomainEntryResult": { + "base": null, + "refs": { + } + }, + "boolean": { + "base": null, + "refs": { + "Blueprint$isActive": "

A Boolean value indicating whether the blueprint is active. When you update your blueprints, you will inactivate old blueprints and keep the most recent versions active.

", + "Bundle$isActive": "

A Boolean value indicating whether the bundle is active.

", + "Disk$isSystemDisk": "

A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).

", + "Disk$isAttached": "

A Boolean value indicating whether the disk is attached.

", + "GetBlueprintsRequest$includeInactive": "

A Boolean value indicating whether to include inactive results in your request.

", + "GetBundlesRequest$includeInactive": "

A Boolean value that indicates whether to include inactive bundle results in your request.

", + "GetRegionsRequest$includeAvailabilityZones": "

A Boolean value indicating whether to also include Availability Zones in your get regions request. Availability Zones are indicated with a letter: e.g., us-east-1a.

", + "Instance$isStaticIp": "

A Boolean value indicating whether this instance has a static IP assigned to it.

", + "IsVpcPeeredResult$isPeered": "

Returns true if the Lightsail VPC is peered; otherwise, false.

", + "Operation$isTerminal": "

A Boolean value indicating whether the operation is terminal.

", + "StaticIp$isAttached": "

A Boolean value indicating whether the static IP is attached.

" + } + }, + "double": { + "base": null, + "refs": { + "MetricDatapoint$average": "

The average.

", + "MetricDatapoint$maximum": "

The maximum.

", + "MetricDatapoint$minimum": "

The minimum.

", + "MetricDatapoint$sampleCount": "

The sample count.

", + "MetricDatapoint$sum": "

The sum.

" + } + }, + "float": { + "base": null, + "refs": { + "Bundle$price": "

The price in US dollars (e.g., 5.0).

", + "Bundle$ramSizeInGb": "

The amount of RAM in GB (e.g., 2.0).

", + "InstanceHardware$ramSizeInGb": "

The amount of RAM in GB on the instance (e.g., 1.0).

" + } + }, + "integer": { + "base": null, + "refs": { + "Blueprint$minPower": "

The minimum machine size required to run this blueprint. 0 indicates that the blueprint runs on all instances.

", + "Bundle$cpuCount": "

The number of vCPUs included in the bundle (e.g., 2).

", + "Bundle$diskSizeInGb": "

The size of the SSD (e.g., 30).

", + "Bundle$power": "

The power of the bundle (e.g., 500).

", + "Bundle$transferPerMonthInGb": "

The data transfer rate per month in GB (e.g., 2000).

", + "Disk$sizeInGb": "

The size of the disk in GB.

", + "Disk$gbInUse": "

The number of GB in use by the disk.

", + "Disk$iops": "

The input/output operations per second (IOPS) of the disk.

", + "InstanceHardware$cpuCount": "

The number of vCPUs the instance has.

", + "InstanceSnapshot$sizeInGb": "

The size in GB of the SSD.

", + "InstanceState$code": "

The status code for the instance.

", + "MonthlyTransfer$gbPerMonthAllocated": "

The amount allocated per month (in GB).

" + } + }, + "string": { + "base": null, + "refs": { + "AccessDeniedException$code": null, + "AccessDeniedException$docs": null, + "AccessDeniedException$message": null, + "AccessDeniedException$tip": null, + "AccountSetupInProgressException$code": null, + "AccountSetupInProgressException$docs": null, + "AccountSetupInProgressException$message": null, + "AccountSetupInProgressException$tip": null, + "Blueprint$description": "

The description of the blueprint.

", + "Blueprint$version": "

The version number of the operating system, application, or stack (e.g., 2016.03.0).

", + "Blueprint$versionCode": "

The version code.

", + "Blueprint$productUrl": "

The product URL to learn more about the image or blueprint.

", + "Blueprint$licenseUrl": "

The end-user license agreement URL for the image or blueprint.

", + "Bundle$instanceType": "

The Amazon EC2 instance type (e.g., t2.micro).

", + "Bundle$name": "

A friendly name for the bundle (e.g., Micro).

", + "CreateInstancesFromSnapshotRequest$availabilityZone": "

The Availability Zone where you want to create your instances. Use the following formatting: us-east-1a (case sensitive).

", + "CreateInstancesFromSnapshotRequest$userData": "

You can create a launch script that configures a server with additional user data. For example, apt-get –y update.

Depending on the machine image you choose, the command to get software on your instance varies. Amazon Linux and CentOS use yum, Debian and Ubuntu use apt-get, and FreeBSD uses pkg. For a complete list, see the Dev Guide.

", + "CreateInstancesRequest$availabilityZone": "

The Availability Zone in which to create your instance. Use the following format: us-east-1a (case sensitive).

", + "CreateInstancesRequest$userData": "

A launch script you can create that configures a server with additional user data. For example, you might want to run apt-get –y update.

Depending on the machine image you choose, the command to get software on your instance varies. Amazon Linux and CentOS use yum, Debian and Ubuntu use apt-get, and FreeBSD uses pkg. For a complete list, see the Dev Guide.

", + "Disk$supportCode": "

The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

", + "Disk$path": "

The disk path.

", + "Disk$attachedTo": "

The resources to which the disk is attached.

", + "Disk$attachmentState": "

The attachment state of the disk.

", + "Domain$supportCode": "

The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

", + "DomainEntry$target": "

The target AWS name server (e.g., ns-111.awsdns-22.com.).

", + "DomainEntryOptions$value": null, + "GetActiveNamesRequest$pageToken": "

A token used for paginating results from your get active names request.

", + "GetActiveNamesResult$nextPageToken": "

A token used for advancing to the next page of results from your get active names request.

", + "GetBlueprintsRequest$pageToken": "

A token used for advancing to the next page of results from your get blueprints request.

", + "GetBlueprintsResult$nextPageToken": "

A token used for advancing to the next page of results from your get blueprints request.

", + "GetBundlesRequest$pageToken": "

A token used for advancing to the next page of results from your get bundles request.

", + "GetBundlesResult$nextPageToken": "

A token used for advancing to the next page of results from your get active names request.

", + "GetDomainsRequest$pageToken": "

A token used for advancing to the next page of results from your get domains request.

", + "GetDomainsResult$nextPageToken": "

A token used for advancing to the next page of results from your get active names request.

", + "GetInstanceSnapshotsRequest$pageToken": "

A token used for advancing to the next page of results from your get instance snapshots request.

", + "GetInstanceSnapshotsResult$nextPageToken": "

A token used for advancing to the next page of results from your get instance snapshots request.

", + "GetInstancesRequest$pageToken": "

A token used for advancing to the next page of results from your get instances request.

", + "GetInstancesResult$nextPageToken": "

A token used for advancing to the next page of results from your get instances request.

", + "GetKeyPairsRequest$pageToken": "

A token used for advancing to the next page of results from your get key pairs request.

", + "GetKeyPairsResult$nextPageToken": "

A token used for advancing to the next page of results from your get key pairs request.

", + "GetOperationsForResourceRequest$pageToken": "

A token used for advancing to the next page of results from your get operations for resource request.

", + "GetOperationsForResourceResult$nextPageCount": "

Returns the number of pages of results that remain.

", + "GetOperationsRequest$pageToken": "

A token used for advancing to the next page of results from your get operations request.

", + "GetOperationsResult$nextPageToken": "

A token used for advancing to the next page of results from your get operations request.

", + "GetStaticIpsRequest$pageToken": "

A token used for advancing to the next page of results from your get static IPs request.

", + "GetStaticIpsResult$nextPageToken": "

A token used for advancing to the next page of results from your get static IPs request.

", + "Instance$supportCode": "

The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

", + "InstanceAccessDetails$certKey": "

For SSH access, the public key to use when accessing your instance For OpenSSH clients (e.g., command line SSH), you should save this value to tempkey-cert.pub.

", + "InstanceAccessDetails$password": "

For RDP access, the temporary password of the Amazon EC2 instance.

", + "InstanceAccessDetails$privateKey": "

For SSH access, the temporary private key. For OpenSSH clients (e.g., command line SSH), you should save this value to tempkey).

", + "InstanceAccessDetails$username": "

The user name to use when logging in to the Amazon Lightsail instance.

", + "InstancePortInfo$accessFrom": "

The location from which access is allowed (e.g., Anywhere (0.0.0.0/0)).

", + "InstancePortInfo$commonName": "

The common name.

", + "InstanceSnapshot$supportCode": "

The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

", + "InstanceSnapshot$progress": "

The progress of the snapshot.

", + "InstanceSnapshot$fromBlueprintId": "

The blueprint ID from which you created the snapshot (e.g., os_debian_8_3). A blueprint is a virtual private server (or instance) image used to create instances quickly.

", + "InstanceSnapshot$fromBundleId": "

The bundle ID from which you created the snapshot (e.g., micro_1_0).

", + "InstanceState$name": "

The state of the instance (e.g., running or pending).

", + "InvalidInputException$code": null, + "InvalidInputException$docs": null, + "InvalidInputException$message": null, + "InvalidInputException$tip": null, + "KeyPair$supportCode": "

The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

", + "NotFoundException$code": null, + "NotFoundException$docs": null, + "NotFoundException$message": null, + "NotFoundException$tip": null, + "Operation$operationDetails": "

Details about the operation (e.g., Debian-1GB-Virginia-1).

", + "Operation$errorCode": "

The error code.

", + "Operation$errorDetails": "

The error details.

", + "OperationFailureException$code": null, + "OperationFailureException$docs": null, + "OperationFailureException$message": null, + "OperationFailureException$tip": null, + "Region$continentCode": "

The continent code (e.g., NA, meaning North America).

", + "Region$description": "

The description of the AWS Region (e.g., This region is recommended to serve users in the eastern United States and eastern Canada).

", + "Region$displayName": "

The display name (e.g., Virginia).

", + "ResourceLocation$availabilityZone": "

The Availability Zone.

", + "ServiceException$code": null, + "ServiceException$docs": null, + "ServiceException$message": null, + "ServiceException$tip": null, + "StaticIp$supportCode": "

The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

", + "StringList$member": null, + "UnauthenticatedException$code": null, + "UnauthenticatedException$docs": null, + "UnauthenticatedException$message": null, + "UnauthenticatedException$tip": null + } + }, + "timestamp": { + "base": null, + "refs": { + "GetInstanceMetricDataRequest$startTime": "

The start time of the time period.

", + "GetInstanceMetricDataRequest$endTime": "

The end time of the time period.

", + "MetricDatapoint$timestamp": "

The timestamp (e.g., 1479816991.349).

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/lightsail/2016-11-28/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/lightsail/2016-11-28/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/lightsail/2016-11-28/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/logs/2014-03-28/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/logs/2014-03-28/api-2.json index 81754040e..7fbc9874a 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/logs/2014-03-28/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/logs/2014-03-28/api-2.json @@ -7,7 +7,8 @@ "protocol":"json", "serviceFullName":"Amazon CloudWatch Logs", "signatureVersion":"v4", - "targetPrefix":"Logs_20140328" + "targetPrefix":"Logs_20140328", + "uid":"logs-2014-03-28" }, "operations":{ "CancelExportTask":{ @@ -263,6 +264,19 @@ {"shape":"ServiceUnavailableException"} ] }, + "ListTagsLogGroup":{ + "name":"ListTagsLogGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTagsLogGroupRequest"}, + "output":{"shape":"ListTagsLogGroupResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ServiceUnavailableException"} + ] + }, "PutDestination":{ "name":"PutDestination", "http":{ @@ -350,6 +364,18 @@ {"shape":"ServiceUnavailableException"} ] }, + "TagLogGroup":{ + "name":"TagLogGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagLogGroupRequest"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"} + ] + }, "TestMetricFilter":{ "name":"TestMetricFilter", "http":{ @@ -362,6 +388,17 @@ {"shape":"InvalidParameterException"}, {"shape":"ServiceUnavailableException"} ] + }, + "UntagLogGroup":{ + "name":"UntagLogGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagLogGroupRequest"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ] } }, "shapes":{ @@ -405,7 +442,8 @@ "type":"structure", "required":["logGroupName"], "members":{ - "logGroupName":{"shape":"LogGroupName"} + "logGroupName":{"shape":"LogGroupName"}, + "tags":{"shape":"Tags"} } }, "CreateLogStreamRequest":{ @@ -555,12 +593,13 @@ }, "DescribeMetricFiltersRequest":{ "type":"structure", - "required":["logGroupName"], "members":{ "logGroupName":{"shape":"LogGroupName"}, "filterNamePrefix":{"shape":"FilterName"}, "nextToken":{"shape":"NextToken"}, - "limit":{"shape":"DescribeLimit"} + "limit":{"shape":"DescribeLimit"}, + "metricName":{"shape":"MetricName"}, + "metricNamespace":{"shape":"MetricNamespace"} } }, "DescribeMetricFiltersResponse":{ @@ -612,6 +651,13 @@ "type":"list", "member":{"shape":"Destination"} }, + "Distribution":{ + "type":"string", + "enum":[ + "Random", + "ByLogStream" + ] + }, "EventId":{"type":"string"}, "EventMessage":{ "type":"string", @@ -809,6 +855,19 @@ }, "exception":true }, + "ListTagsLogGroupRequest":{ + "type":"structure", + "required":["logGroupName"], + "members":{ + "logGroupName":{"shape":"LogGroupName"} + } + }, + "ListTagsLogGroupResponse":{ + "type":"structure", + "members":{ + "tags":{"shape":"Tags"} + } + }, "LogEventIndex":{"type":"integer"}, "LogGroup":{ "type":"structure", @@ -861,7 +920,8 @@ "filterName":{"shape":"FilterName"}, "filterPattern":{"shape":"FilterPattern"}, "metricTransformations":{"shape":"MetricTransformations"}, - "creationTime":{"shape":"Timestamp"} + "creationTime":{"shape":"Timestamp"}, + "logGroupName":{"shape":"LogGroupName"} } }, "MetricFilterMatchRecord":{ @@ -1033,7 +1093,8 @@ "filterName":{"shape":"FilterName"}, "filterPattern":{"shape":"FilterPattern"}, "destinationArn":{"shape":"DestinationArn"}, - "roleArn":{"shape":"RoleArn"} + "roleArn":{"shape":"RoleArn"}, + "distribution":{"shape":"Distribution"} } }, "RejectedLogEventsInfo":{ @@ -1095,6 +1156,7 @@ "filterPattern":{"shape":"FilterPattern"}, "destinationArn":{"shape":"DestinationArn"}, "roleArn":{"shape":"RoleArn"}, + "distribution":{"shape":"Distribution"}, "creationTime":{"shape":"Timestamp"} } }, @@ -1102,6 +1164,40 @@ "type":"list", "member":{"shape":"SubscriptionFilter"} }, + "TagKey":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]+)$" + }, + "TagList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "min":1 + }, + "TagLogGroupRequest":{ + "type":"structure", + "required":[ + "logGroupName", + "tags" + ], + "members":{ + "logGroupName":{"shape":"LogGroupName"}, + "tags":{"shape":"Tags"} + } + }, + "TagValue":{ + "type":"string", + "max":256, + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + }, + "Tags":{ + "type":"map", + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"}, + "max":50, + "min":1 + }, "TargetArn":{ "type":"string", "min":1 @@ -1134,6 +1230,17 @@ "min":0 }, "Token":{"type":"string"}, + "UntagLogGroupRequest":{ + "type":"structure", + "required":[ + "logGroupName", + "tags" + ], + "members":{ + "logGroupName":{"shape":"LogGroupName"}, + "tags":{"shape":"TagList"} + } + }, "Value":{"type":"string"} } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/logs/2014-03-28/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/logs/2014-03-28/docs-2.json index bb5e61ec2..2e059518a 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/logs/2014-03-28/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/logs/2014-03-28/docs-2.json @@ -1,47 +1,50 @@ { "version": "2.0", - "service": "

You can use Amazon CloudWatch Logs to monitor, store, and access your log files from Amazon Elastic Compute Cloud (Amazon EC2) instances, Amazon CloudTrail, or other sources. You can then retrieve the associated log data from CloudWatch Logs using the Amazon CloudWatch console, the CloudWatch Logs commands in the AWS CLI, the CloudWatch Logs API, or the CloudWatch Logs SDK.

You can use CloudWatch Logs to:

  • Monitor Logs from Amazon EC2 Instances in Real-time: You can use CloudWatch Logs to monitor applications and systems using log data. For example, CloudWatch Logs can track the number of errors that occur in your application logs and send you a notification whenever the rate of errors exceeds a threshold you specify. CloudWatch Logs uses your log data for monitoring; so, no code changes are required. For example, you can monitor application logs for specific literal terms (such as \"NullReferenceException\") or count the number of occurrences of a literal term at a particular position in log data (such as \"404\" status codes in an Apache access log). When the term you are searching for is found, CloudWatch Logs reports the data to a Amazon CloudWatch metric that you specify.

  • Monitor Amazon CloudTrail Logged Events: You can create alarms in Amazon CloudWatch and receive notifications of particular API activity as captured by CloudTrail and use the notification to perform troubleshooting.

  • Archive Log Data: You can use CloudWatch Logs to store your log data in highly durable storage. You can change the log retention setting so that any log events older than this setting are automatically deleted. The CloudWatch Logs agent makes it easy to quickly send both rotated and non-rotated log data off of a host and into the log service. You can then access the raw log data when you need it.

", + "service": "

You can use Amazon CloudWatch Logs to monitor, store, and access your log files from EC2 instances, Amazon CloudTrail, or other sources. You can then retrieve the associated log data from CloudWatch Logs using the Amazon CloudWatch console, the CloudWatch Logs commands in the AWS CLI, the CloudWatch Logs API, or the CloudWatch Logs SDK.

You can use CloudWatch Logs to:

  • Monitor Logs from Amazon EC2 Instances in Real-time: You can use CloudWatch Logs to monitor applications and systems using log data. For example, CloudWatch Logs can track the number of errors that occur in your application logs and send you a notification whenever the rate of errors exceeds a threshold you specify. CloudWatch Logs uses your log data for monitoring; so, no code changes are required. For example, you can monitor application logs for specific literal terms (such as \"NullReferenceException\") or count the number of occurrences of a literal term at a particular position in log data (such as \"404\" status codes in an Apache access log). When the term you are searching for is found, CloudWatch Logs reports the data to a Amazon CloudWatch metric that you specify.

  • Monitor Amazon CloudTrail Logged Events: You can create alarms in Amazon CloudWatch and receive notifications of particular API activity as captured by CloudTrail and use the notification to perform troubleshooting.

  • Archive Log Data: You can use CloudWatch Logs to store your log data in highly durable storage. You can change the log retention setting so that any log events older than this setting are automatically deleted. The CloudWatch Logs agent makes it easy to quickly send both rotated and non-rotated log data off of a host and into the log service. You can then access the raw log data when you need it.

", "operations": { - "CancelExportTask": "

Cancels an export task if it is in PENDING or RUNNING state.

", - "CreateExportTask": "

Creates an ExportTask which allows you to efficiently export data from a Log Group to your Amazon S3 bucket.

This is an asynchronous call. If all the required information is provided, this API will initiate an export task and respond with the task Id. Once started, DescribeExportTasks can be used to get the status of an export task. You can only have one active (RUNNING or PENDING) export task at a time, per account.

You can export logs from multiple log groups or multiple time ranges to the same Amazon S3 bucket. To separate out log data for each export task, you can specify a prefix that will be used as the Amazon S3 key prefix for all exported objects.

", - "CreateLogGroup": "

Creates a new log group with the specified name. The name of the log group must be unique within a region for an AWS account. You can create up to 500 log groups per account.

You must use the following guidelines when naming a log group:

  • Log group names can be between 1 and 512 characters long.

  • Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), '/' (forward slash), and '.' (period).

", - "CreateLogStream": "

Creates a new log stream in the specified log group. The name of the log stream must be unique within the log group. There is no limit on the number of log streams that can exist in a log group.

You must use the following guidelines when naming a log stream:

  • Log stream names can be between 1 and 512 characters long.

  • The ':' colon character is not allowed.

", - "DeleteDestination": "

Deletes the destination with the specified name and eventually disables all the subscription filters that publish to it. This will not delete the physical resource encapsulated by the destination.

", - "DeleteLogGroup": "

Deletes the log group with the specified name and permanently deletes all the archived log events associated with it.

", - "DeleteLogStream": "

Deletes a log stream and permanently deletes all the archived log events associated with it.

", - "DeleteMetricFilter": "

Deletes a metric filter associated with the specified log group.

", - "DeleteRetentionPolicy": "

Deletes the retention policy of the specified log group. Log events would not expire if they belong to log groups without a retention policy.

", - "DeleteSubscriptionFilter": "

Deletes a subscription filter associated with the specified log group.

", - "DescribeDestinations": "

Returns all the destinations that are associated with the AWS account making the request. The list returned in the response is ASCII-sorted by destination name.

By default, this operation returns up to 50 destinations. If there are more destinations to list, the response would contain a nextToken value in the response body. You can also limit the number of destinations returned in the response by specifying the limit parameter in the request.

", - "DescribeExportTasks": "

Returns all the export tasks that are associated with the AWS account making the request. The export tasks can be filtered based on TaskId or TaskStatus.

By default, this operation returns up to 50 export tasks that satisfy the specified filters. If there are more export tasks to list, the response would contain a nextToken value in the response body. You can also limit the number of export tasks returned in the response by specifying the limit parameter in the request.

", - "DescribeLogGroups": "

Returns all the log groups that are associated with the AWS account making the request. The list returned in the response is ASCII-sorted by log group name.

By default, this operation returns up to 50 log groups. If there are more log groups to list, the response would contain a nextToken value in the response body. You can also limit the number of log groups returned in the response by specifying the limit parameter in the request.

", - "DescribeLogStreams": "

Returns all the log streams that are associated with the specified log group. The list returned in the response is ASCII-sorted by log stream name.

By default, this operation returns up to 50 log streams. If there are more log streams to list, the response would contain a nextToken value in the response body. You can also limit the number of log streams returned in the response by specifying the limit parameter in the request. This operation has a limit of five transactions per second, after which transactions are throttled.

", - "DescribeMetricFilters": "

Returns all the metrics filters associated with the specified log group. The list returned in the response is ASCII-sorted by filter name.

By default, this operation returns up to 50 metric filters. If there are more metric filters to list, the response would contain a nextToken value in the response body. You can also limit the number of metric filters returned in the response by specifying the limit parameter in the request.

", - "DescribeSubscriptionFilters": "

Returns all the subscription filters associated with the specified log group. The list returned in the response is ASCII-sorted by filter name.

By default, this operation returns up to 50 subscription filters. If there are more subscription filters to list, the response would contain a nextToken value in the response body. You can also limit the number of subscription filters returned in the response by specifying the limit parameter in the request.

", - "FilterLogEvents": "

Retrieves log events, optionally filtered by a filter pattern from the specified log group. You can provide an optional time range to filter the results on the event timestamp. You can limit the streams searched to an explicit list of logStreamNames.

By default, this operation returns as much matching log events as can fit in a response size of 1MB, up to 10,000 log events, or all the events found within a time-bounded scan window. If the response includes a nextToken, then there is more data to search, and the search can be resumed with a new request providing the nextToken. The response will contain a list of searchedLogStreams that contains information about which streams were searched in the request and whether they have been searched completely or require further pagination. The limit parameter in the request can be used to specify the maximum number of events to return in a page.

", - "GetLogEvents": "

Retrieves log events from the specified log stream. You can provide an optional time range to filter the results on the event timestamp.

By default, this operation returns as much log events as can fit in a response size of 1MB, up to 10,000 log events. The response will always include a nextForwardToken and a nextBackwardToken in the response body. You can use any of these tokens in subsequent GetLogEvents requests to paginate through events in either forward or backward direction. You can also limit the number of log events returned in the response by specifying the limit parameter in the request.

", - "PutDestination": "

Creates or updates a Destination. A destination encapsulates a physical resource (such as a Kinesis stream) and allows you to subscribe to a real-time stream of log events of a different account, ingested through PutLogEvents requests. Currently, the only supported physical resource is a Amazon Kinesis stream belonging to the same account as the destination.

A destination controls what is written to its Amazon Kinesis stream through an access policy. By default, PutDestination does not set any access policy with the destination, which means a cross-account user will not be able to call PutSubscriptionFilter against this destination. To enable that, the destination owner must call PutDestinationPolicy after PutDestination.

", - "PutDestinationPolicy": "

Creates or updates an access policy associated with an existing Destination. An access policy is an IAM policy document that is used to authorize claims to register a subscription filter against a given destination.

", - "PutLogEvents": "

Uploads a batch of log events to the specified log stream.

Every PutLogEvents request must include the sequenceToken obtained from the response of the previous request. An upload in a newly created log stream does not require a sequenceToken. You can also get the sequenceToken using DescribeLogStreams.

The batch of events must satisfy the following constraints:

  • The maximum batch size is 1,048,576 bytes, and this size is calculated as the sum of all event messages in UTF-8, plus 26 bytes for each log event.

  • None of the log events in the batch can be more than 2 hours in the future.

  • None of the log events in the batch can be older than 14 days or the retention period of the log group.

  • The log events in the batch must be in chronological ordered by their timestamp.

  • The maximum number of log events in a batch is 10,000.

  • A batch of log events in a single PutLogEvents request cannot span more than 24 hours. Otherwise, the PutLogEvents operation will fail.

", - "PutMetricFilter": "

Creates or updates a metric filter and associates it with the specified log group. Metric filters allow you to configure rules to extract metric data from log events ingested through PutLogEvents requests.

The maximum number of metric filters that can be associated with a log group is 100.

", + "CancelExportTask": "

Cancels the specified export task.

The task must be in the PENDING or RUNNING state.

", + "CreateExportTask": "

Creates an export task, which allows you to efficiently export data from a log group to an Amazon S3 bucket.

This is an asynchronous call. If all the required information is provided, this operation initiates an export task and responds with the ID of the task. After the task has started, you can use DescribeExportTasks to get the status of the export task. Each account can only have one active (RUNNING or PENDING) export task at a time. To cancel an export task, use CancelExportTask.

You can export logs from multiple log groups or multiple time ranges to the same S3 bucket. To separate out log data for each export task, you can specify a prefix that will be used as the Amazon S3 key prefix for all exported objects.

", + "CreateLogGroup": "

Creates a log group with the specified name.

You can create up to 5000 log groups per account.

You must use the following guidelines when naming a log group:

  • Log group names must be unique within a region for an AWS account.

  • Log group names can be between 1 and 512 characters long.

  • Log group names consist of the following characters: a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), '/' (forward slash), and '.' (period).

", + "CreateLogStream": "

Creates a log stream for the specified log group.

There is no limit on the number of log streams that you can create for a log group.

You must use the following guidelines when naming a log stream:

  • Log stream names must be unique within the log group.

  • Log stream names can be between 1 and 512 characters long.

  • The ':' (colon) and '*' (asterisk) characters are not allowed.

", + "DeleteDestination": "

Deletes the specified destination, and eventually disables all the subscription filters that publish to it. This operation does not delete the physical resource encapsulated by the destination.

", + "DeleteLogGroup": "

Deletes the specified log group and permanently deletes all the archived log events associated with the log group.

", + "DeleteLogStream": "

Deletes the specified log stream and permanently deletes all the archived log events associated with the log stream.

", + "DeleteMetricFilter": "

Deletes the specified metric filter.

", + "DeleteRetentionPolicy": "

Deletes the specified retention policy.

Log events do not expire if they belong to log groups without a retention policy.

", + "DeleteSubscriptionFilter": "

Deletes the specified subscription filter.

", + "DescribeDestinations": "

Lists all your destinations. The results are ASCII-sorted by destination name.

", + "DescribeExportTasks": "

Lists the specified export tasks. You can list all your export tasks or filter the results based on task ID or task status.

", + "DescribeLogGroups": "

Lists the specified log groups. You can list all your log groups or filter the results by prefix. The results are ASCII-sorted by log group name.

", + "DescribeLogStreams": "

Lists the log streams for the specified log group. You can list all the log streams or filter the results by prefix. You can also control how the results are ordered.

This operation has a limit of five transactions per second, after which transactions are throttled.

", + "DescribeMetricFilters": "

Lists the specified metric filters. You can list all the metric filters or filter the results by log name, prefix, metric name, and metric namespace. The results are ASCII-sorted by filter name.

", + "DescribeSubscriptionFilters": "

Lists the subscription filters for the specified log group. You can list all the subscription filters or filter the results by prefix. The results are ASCII-sorted by filter name.

", + "FilterLogEvents": "

Lists log events from the specified log group. You can list all the log events or filter the results using a filter pattern, a time range, and the name of the log stream.

By default, this operation returns as many log events as can fit in 1MB (up to 10,000 log events), or all the events found within the time range that you specify. If the results include a token, then there are more log events available, and you can get additional results by specifying the token in a subsequent call.

", + "GetLogEvents": "

Lists log events from the specified log stream. You can list all the log events or filter using a time range.

By default, this operation returns as many log events as can fit in a response size of 1MB (up to 10,000 log events). If the results include tokens, there are more log events available. You can get additional log events by specifying one of the tokens in a subsequent call.

", + "ListTagsLogGroup": "

Lists the tags for the specified log group.

To add tags, use TagLogGroup. To remove tags, use UntagLogGroup.

", + "PutDestination": "

Creates or updates a destination. A destination encapsulates a physical resource (such as a Kinesis stream) and enables you to subscribe to a real-time stream of log events of a different account, ingested using PutLogEvents. Currently, the only supported physical resource is a Amazon Kinesis stream belonging to the same account as the destination.

A destination controls what is written to its Amazon Kinesis stream through an access policy. By default, PutDestination does not set any access policy with the destination, which means a cross-account user cannot call PutSubscriptionFilter against this destination. To enable this, the destination owner must call PutDestinationPolicy after PutDestination.

", + "PutDestinationPolicy": "

Creates or updates an access policy associated with an existing destination. An access policy is an IAM policy document that is used to authorize claims to register a subscription filter against a given destination.

", + "PutLogEvents": "

Uploads a batch of log events to the specified log stream.

You must include the sequence token obtained from the response of the previous call. An upload in a newly created log stream does not require a sequence token. You can also get the sequence token using DescribeLogStreams.

The batch of events must satisfy the following constraints:

  • The maximum batch size is 1,048,576 bytes, and this size is calculated as the sum of all event messages in UTF-8, plus 26 bytes for each log event.

  • None of the log events in the batch can be more than 2 hours in the future.

  • None of the log events in the batch can be older than 14 days or the retention period of the log group.

  • The log events in the batch must be in chronological ordered by their timestamp (the time the event occurred, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC).

  • The maximum number of log events in a batch is 10,000.

  • A batch of log events in a single request cannot span more than 24 hours. Otherwise, the operation fails.

", + "PutMetricFilter": "

Creates or updates a metric filter and associates it with the specified log group. Metric filters allow you to configure rules to extract metric data from log events ingested through PutLogEvents.

The maximum number of metric filters that can be associated with a log group is 100.

", "PutRetentionPolicy": "

Sets the retention of the specified log group. A retention policy allows you to configure the number of days you want to retain log events in the specified log group.

", - "PutSubscriptionFilter": "

Creates or updates a subscription filter and associates it with the specified log group. Subscription filters allow you to subscribe to a real-time stream of log events ingested through PutLogEvents requests and have them delivered to a specific destination. Currently, the supported destinations are:

  • An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.

  • A logical destination (used via an ARN of Destination) belonging to a different account, for cross-account delivery.

  • An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.

  • An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.

Currently there can only be one subscription filter associated with a log group.

", - "TestMetricFilter": "

Tests the filter pattern of a metric filter against a sample of log event messages. You can use this operation to validate the correctness of a metric filter pattern.

" + "PutSubscriptionFilter": "

Creates or updates a subscription filter and associates it with the specified log group. Subscription filters allow you to subscribe to a real-time stream of log events ingested through PutLogEvents and have them delivered to a specific destination. Currently, the supported destinations are:

  • An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.

  • A logical destination that belongs to a different account, for cross-account delivery.

  • An Amazon Kinesis Firehose stream that belongs to the same account as the subscription filter, for same-account delivery.

  • An AWS Lambda function that belongs to the same account as the subscription filter, for same-account delivery.

There can only be one subscription filter associated with a log group.

", + "TagLogGroup": "

Adds or updates the specified tags for the specified log group.

To list the tags for a log group, use ListTagsLogGroup. To remove tags, use UntagLogGroup.

For more information about tags, see Tag Log Groups in Amazon CloudWatch Logs in the Amazon CloudWatch Logs User Guide.

", + "TestMetricFilter": "

Tests the filter pattern of a metric filter against a sample of log event messages. You can use this operation to validate the correctness of a metric filter pattern.

", + "UntagLogGroup": "

Removes the specified tags from the specified log group.

To list the tags for a log group, use ListTagsLogGroup. To add tags, use UntagLogGroup.

" }, "shapes": { "AccessPolicy": { "base": null, "refs": { "Destination$accessPolicy": "

An IAM policy document that governs which AWS accounts can create subscription filters against this destination.

", - "PutDestinationPolicyRequest$accessPolicy": "

An IAM policy document that authorizes cross-account users to deliver their log events to associated destination.

" + "PutDestinationPolicyRequest$accessPolicy": "

An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination.

" } }, "Arn": { "base": null, "refs": { - "Destination$arn": "

ARN of this destination.

", - "LogGroup$arn": null, - "LogStream$arn": null + "Destination$arn": "

The ARN of this destination.

", + "LogGroup$arn": "

The Amazon Resource Name (ARN) of the log group.

", + "LogStream$arn": "

The Amazon Resource Name (ARN) of the log stream.

" } }, "CancelExportTaskRequest": { @@ -70,12 +73,12 @@ } }, "DataAlreadyAcceptedException": { - "base": null, + "base": "

The event was already logged.

", "refs": { } }, "Days": { - "base": "

Specifies the number of days you want to retain log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653.

", + "base": "

The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.

", "refs": { "LogGroup$retentionInDays": null, "PutRetentionPolicyRequest$retentionInDays": null @@ -84,7 +87,7 @@ "DefaultValue": { "base": null, "refs": { - "MetricTransformation$defaultValue": "

(Optional) A default value to emit when a filter pattern does not match a log event. Can be null.

" + "MetricTransformation$defaultValue": "

(Optional) The value to emit when a filter pattern does not match a log event. This value can be null.

" } }, "DeleteDestinationRequest": { @@ -120,7 +123,7 @@ "Descending": { "base": null, "refs": { - "DescribeLogStreamsRequest$descending": "

If set to true, results are returned in descending order. If you don't specify a value or set it to false, results are returned in ascending order.

" + "DescribeLogStreamsRequest$descending": "

If the value is true, results are returned in descending order. If the value is to false, results are returned in ascending order. The default value is false.

" } }, "DescribeDestinationsRequest": { @@ -144,14 +147,14 @@ } }, "DescribeLimit": { - "base": "

The maximum number of results to return.

", + "base": null, "refs": { - "DescribeDestinationsRequest$limit": null, - "DescribeExportTasksRequest$limit": "

The maximum number of items returned in the response. If you don't specify a value, the request would return up to 50 items.

", - "DescribeLogGroupsRequest$limit": "

The maximum number of items returned in the response. If you don't specify a value, the request would return up to 50 items.

", - "DescribeLogStreamsRequest$limit": "

The maximum number of items returned in the response. If you don't specify a value, the request would return up to 50 items.

", - "DescribeMetricFiltersRequest$limit": "

The maximum number of items returned in the response. If you don't specify a value, the request would return up to 50 items.

", - "DescribeSubscriptionFiltersRequest$limit": null + "DescribeDestinationsRequest$limit": "

The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

", + "DescribeExportTasksRequest$limit": "

The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

", + "DescribeLogGroupsRequest$limit": "

The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

", + "DescribeLogStreamsRequest$limit": "

The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

", + "DescribeMetricFiltersRequest$limit": "

The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

", + "DescribeSubscriptionFiltersRequest$limit": "

The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

" } }, "DescribeLogGroupsRequest": { @@ -195,25 +198,25 @@ } }, "Destination": { - "base": "

A cross account destination that is the recipient of subscription log events.

", + "base": "

Represents a cross-account destination that receives subscription log events.

", "refs": { "Destinations$member": null, - "PutDestinationResponse$destination": null + "PutDestinationResponse$destination": "

The destination.

" } }, "DestinationArn": { "base": null, "refs": { - "PutSubscriptionFilterRequest$destinationArn": "

The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:

  • An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.

  • A logical destination (used via an ARN of Destination) belonging to a different account, for cross-account delivery.

  • An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.

  • An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.

", - "SubscriptionFilter$destinationArn": null + "PutSubscriptionFilterRequest$destinationArn": "

The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:

  • An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.

  • A logical destination (specified using an ARN) belonging to a different account, for cross-account delivery.

  • An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.

  • An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.

", + "SubscriptionFilter$destinationArn": "

The Amazon Resource Name (ARN) of the destination.

" } }, "DestinationName": { "base": null, "refs": { - "DeleteDestinationRequest$destinationName": "

The name of destination to delete.

", - "DescribeDestinationsRequest$DestinationNamePrefix": "

Will only return destinations that match the provided destinationNamePrefix. If you don't specify a value, no prefix is applied.

", - "Destination$destinationName": "

Name of the destination.

", + "DeleteDestinationRequest$destinationName": "

The name of the destination.

", + "DescribeDestinationsRequest$DestinationNamePrefix": "

The prefix to match. If you don't specify a value, no prefix filter is applied.

", + "Destination$destinationName": "

The name of the destination.

", "PutDestinationPolicyRequest$destinationName": "

A name for an existing destination.

", "PutDestinationRequest$destinationName": "

A name for the destination.

" } @@ -221,50 +224,57 @@ "Destinations": { "base": null, "refs": { - "DescribeDestinationsResponse$destinations": null + "DescribeDestinationsResponse$destinations": "

The destinations.

" + } + }, + "Distribution": { + "base": null, + "refs": { + "PutSubscriptionFilterRequest$distribution": "

The method used to distribute log data to the destination, when the destination is an Amazon Kinesis stream. By default, log data is grouped by log stream. For a more even distribution, you can group log data randomly.

", + "SubscriptionFilter$distribution": "

The method used to distribute log data to the destination, when the destination is an Amazon Kinesis stream.

" } }, "EventId": { "base": null, "refs": { - "FilteredLogEvent$eventId": "

A unique identifier for this event.

" + "FilteredLogEvent$eventId": "

The ID of the event.

" } }, "EventMessage": { "base": null, "refs": { "FilteredLogEvent$message": "

The data contained in the log event.

", - "InputLogEvent$message": null, - "MetricFilterMatchRecord$eventMessage": null, - "OutputLogEvent$message": null, + "InputLogEvent$message": "

The raw event message.

", + "MetricFilterMatchRecord$eventMessage": "

The raw event data.

", + "OutputLogEvent$message": "

The data contained in the log event.

", "TestEventMessages$member": null } }, "EventNumber": { "base": null, "refs": { - "MetricFilterMatchRecord$eventNumber": null + "MetricFilterMatchRecord$eventNumber": "

The event number.

" } }, "EventsLimit": { - "base": "

The maximum number of events to return.

", + "base": null, "refs": { - "FilterLogEventsRequest$limit": "

The maximum number of events to return in a page of results. Default is 10,000 events.

", - "GetLogEventsRequest$limit": "

The maximum number of log events returned in the response. If you don't specify a value, the request would return as many log events as can fit in a response size of 1MB, up to 10,000 log events.

" + "FilterLogEventsRequest$limit": "

The maximum number of events to return. The default is 10,000 events.

", + "GetLogEventsRequest$limit": "

The maximum number of log events returned. If you don't specify a value, the maximum is as many log events as can fit in a response size of 1MB, up to 10,000 log events.

" } }, "ExportDestinationBucket": { "base": null, "refs": { - "CreateExportTaskRequest$destination": "

Name of Amazon S3 bucket to which the log data will be exported.

Note: Only buckets in the same AWS region are supported.

", - "ExportTask$destination": "

Name of Amazon S3 bucket to which the log data was exported.

" + "CreateExportTaskRequest$destination": "

The name of S3 bucket for the exported log data. The bucket must be in the same AWS region.

", + "ExportTask$destination": "

The name of Amazon S3 bucket to which the log data was exported.

" } }, "ExportDestinationPrefix": { "base": null, "refs": { - "CreateExportTaskRequest$destinationPrefix": "

Prefix that will be used as the start of Amazon S3 key for every object exported. If not specified, this defaults to 'exportedlogs'.

", - "ExportTask$destinationPrefix": "

Prefix that was used as the start of Amazon S3 key for every object exported.

" + "CreateExportTaskRequest$destinationPrefix": "

The prefix used as the start of the key for every object exported. If you don't specify a value, the default is exportedlogs.

", + "ExportTask$destinationPrefix": "

The prefix that was used as the start of Amazon S3 key for every object exported.

" } }, "ExportTask": { @@ -282,10 +292,10 @@ "ExportTaskId": { "base": null, "refs": { - "CancelExportTaskRequest$taskId": "

Id of the export task to cancel.

", - "CreateExportTaskResponse$taskId": "

Id of the export task that got created.

", - "DescribeExportTasksRequest$taskId": "

Export task that matches the specified task Id will be returned. This can result in zero or one export task.

", - "ExportTask$taskId": "

Id of the export task.

" + "CancelExportTaskRequest$taskId": "

The ID of the export task.

", + "CreateExportTaskResponse$taskId": "

The ID of the export task.

", + "DescribeExportTasksRequest$taskId": "

The ID of the export task. Specifying a task ID filters the results to zero or one export tasks.

", + "ExportTask$taskId": "

The ID of the export task.

" } }, "ExportTaskName": { @@ -298,38 +308,38 @@ "ExportTaskStatus": { "base": "

Represents the status of an export task.

", "refs": { - "ExportTask$status": "

Status of the export task.

" + "ExportTask$status": "

The status of the export task.

" } }, "ExportTaskStatusCode": { "base": null, "refs": { - "DescribeExportTasksRequest$statusCode": "

All export tasks that matches the specified status code will be returned. This can return zero or more export tasks.

", - "ExportTaskStatus$code": "

Status code of the export task.

" + "DescribeExportTasksRequest$statusCode": "

The status code of the export task. Specifying a status code filters the results to zero or more export tasks.

", + "ExportTaskStatus$code": "

The status code of the export task.

" } }, "ExportTaskStatusMessage": { "base": null, "refs": { - "ExportTaskStatus$message": "

Status message related to the code.

" + "ExportTaskStatus$message": "

The status message related to the status code.

" } }, "ExportTasks": { - "base": "

A list of export tasks.

", + "base": null, "refs": { - "DescribeExportTasksResponse$exportTasks": null + "DescribeExportTasksResponse$exportTasks": "

The export tasks.

" } }, "ExtractedValues": { "base": null, "refs": { - "MetricFilterMatchRecord$extractedValues": null + "MetricFilterMatchRecord$extractedValues": "

The values extracted from the event data by the filter.

" } }, "FilterCount": { - "base": "

The number of metric filters associated with the log group.

", + "base": null, "refs": { - "LogGroup$metricFilterCount": null + "LogGroup$metricFilterCount": "

The number of metric filters.

" } }, "FilterLogEventsRequest": { @@ -343,39 +353,39 @@ } }, "FilterName": { - "base": "

A name for a metric or subscription filter.

", + "base": null, "refs": { - "DeleteMetricFilterRequest$filterName": "

The name of the metric filter to delete.

", - "DeleteSubscriptionFilterRequest$filterName": "

The name of the subscription filter to delete.

", - "DescribeMetricFiltersRequest$filterNamePrefix": "

Will only return metric filters that match the provided filterNamePrefix. If you don't specify a value, no prefix filter is applied.

", - "DescribeSubscriptionFiltersRequest$filterNamePrefix": "

Will only return subscription filters that match the provided filterNamePrefix. If you don't specify a value, no prefix filter is applied.

", - "MetricFilter$filterName": null, + "DeleteMetricFilterRequest$filterName": "

The name of the metric filter.

", + "DeleteSubscriptionFilterRequest$filterName": "

The name of the subscription filter.

", + "DescribeMetricFiltersRequest$filterNamePrefix": "

The prefix to match.

", + "DescribeSubscriptionFiltersRequest$filterNamePrefix": "

The prefix to match. If you don't specify a value, no prefix filter is applied.

", + "MetricFilter$filterName": "

The name of the metric filter.

", "PutMetricFilterRequest$filterName": "

A name for the metric filter.

", "PutSubscriptionFilterRequest$filterName": "

A name for the subscription filter.

", - "SubscriptionFilter$filterName": null + "SubscriptionFilter$filterName": "

The name of the subscription filter.

" } }, "FilterPattern": { "base": "

A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event may contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.

", "refs": { - "FilterLogEventsRequest$filterPattern": "

A valid CloudWatch Logs filter pattern to use for filtering the response. If not provided, all the events are matched.

", + "FilterLogEventsRequest$filterPattern": "

The filter pattern to use. If not provided, all the events are matched.

", "MetricFilter$filterPattern": null, - "PutMetricFilterRequest$filterPattern": "

A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.

", - "PutSubscriptionFilterRequest$filterPattern": "

A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.

", + "PutMetricFilterRequest$filterPattern": "

A filter pattern for extracting metric data out of ingested log events.

", + "PutSubscriptionFilterRequest$filterPattern": "

A filter pattern for subscribing to a filtered stream of log events.

", "SubscriptionFilter$filterPattern": null, "TestMetricFilterRequest$filterPattern": null } }, "FilteredLogEvent": { - "base": "

Represents a matched event from a FilterLogEvents request.

", + "base": "

Represents a matched event.

", "refs": { "FilteredLogEvents$member": null } }, "FilteredLogEvents": { - "base": "

A list of matched FilteredLogEvent objects returned from a FilterLogEvents request.

", + "base": null, "refs": { - "FilterLogEventsResponse$events": "

A list of FilteredLogEvent objects representing the matched events from the request.

" + "FilterLogEventsResponse$events": "

The matched events.

" } }, "GetLogEventsRequest": { @@ -389,59 +399,69 @@ } }, "InputLogEvent": { - "base": "

A log event is a record of some activity that was recorded by the application or resource being monitored. The log event record that CloudWatch Logs understands contains two properties: the timestamp of when the event occurred, and the raw event message.

", + "base": "

Represents a log event, which is a record of activity that was recorded by the application or resource being monitored.

", "refs": { "InputLogEvents$member": null } }, "InputLogEvents": { - "base": "

A list of log events belonging to a log stream.

", + "base": null, "refs": { - "PutLogEventsRequest$logEvents": null + "PutLogEventsRequest$logEvents": "

The log events.

" } }, "InputLogStreamNames": { - "base": "

A list of log stream names.

", + "base": null, "refs": { - "FilterLogEventsRequest$logStreamNames": "

Optional list of log stream names within the specified log group to search. Defaults to all the log streams in the log group.

" + "FilterLogEventsRequest$logStreamNames": "

Optional list of log stream names.

" } }, "Interleaved": { "base": null, "refs": { - "FilterLogEventsRequest$interleaved": "

If provided, the API will make a best effort to provide responses that contain events from multiple log streams within the log group interleaved in a single response. If not provided, all the matched log events in the first log stream will be searched first, then those in the next log stream, etc.

" + "FilterLogEventsRequest$interleaved": "

If the value is true, the operation makes a best effort to provide responses that contain events from multiple log streams within the log group interleaved in a single response. If the value is false all the matched log events in the first log stream are searched first, then those in the next log stream, and so on. The default is false.

" } }, "InvalidOperationException": { - "base": "

Returned if the operation is not valid on the specified resource

", + "base": "

The operation is not valid on the specified resource.

", "refs": { } }, "InvalidParameterException": { - "base": "

Returned if a parameter of the request is incorrectly specified.

", + "base": "

A parameter is specified incorrectly.

", "refs": { } }, "InvalidSequenceTokenException": { - "base": null, + "base": "

The sequence token is not valid.

", "refs": { } }, "LimitExceededException": { - "base": "

Returned if you have reached the maximum number of resources that can be created.

", + "base": "

You have reached the maximum number of resources that can be created.

", + "refs": { + } + }, + "ListTagsLogGroupRequest": { + "base": null, + "refs": { + } + }, + "ListTagsLogGroupResponse": { + "base": null, "refs": { } }, "LogEventIndex": { "base": null, "refs": { - "RejectedLogEventsInfo$tooNewLogEventStartIndex": null, - "RejectedLogEventsInfo$tooOldLogEventEndIndex": null, - "RejectedLogEventsInfo$expiredLogEventEndIndex": null + "RejectedLogEventsInfo$tooNewLogEventStartIndex": "

The log events that are too new.

", + "RejectedLogEventsInfo$tooOldLogEventEndIndex": "

The log events that are too old.

", + "RejectedLogEventsInfo$expiredLogEventEndIndex": "

The expired log events.

" } }, "LogGroup": { - "base": null, + "base": "

Represents a log group.

", "refs": { "LogGroups$member": null } @@ -449,37 +469,41 @@ "LogGroupName": { "base": null, "refs": { - "CreateExportTaskRequest$logGroupName": "

The name of the log group to export.

", - "CreateLogGroupRequest$logGroupName": "

The name of the log group to create.

", - "CreateLogStreamRequest$logGroupName": "

The name of the log group under which the log stream is to be created.

", - "DeleteLogGroupRequest$logGroupName": "

The name of the log group to delete.

", - "DeleteLogStreamRequest$logGroupName": "

The name of the log group under which the log stream to delete belongs.

", - "DeleteMetricFilterRequest$logGroupName": "

The name of the log group that is associated with the metric filter to delete.

", - "DeleteRetentionPolicyRequest$logGroupName": "

The name of the log group that is associated with the retention policy to delete.

", - "DeleteSubscriptionFilterRequest$logGroupName": "

The name of the log group that is associated with the subscription filter to delete.

", - "DescribeLogGroupsRequest$logGroupNamePrefix": "

Will only return log groups that match the provided logGroupNamePrefix. If you don't specify a value, no prefix filter is applied.

", - "DescribeLogStreamsRequest$logGroupName": "

The log group name for which log streams are to be listed.

", - "DescribeMetricFiltersRequest$logGroupName": "

The log group name for which metric filters are to be listed.

", - "DescribeSubscriptionFiltersRequest$logGroupName": "

The log group name for which subscription filters are to be listed.

", + "CreateExportTaskRequest$logGroupName": "

The name of the log group.

", + "CreateLogGroupRequest$logGroupName": "

The name of the log group.

", + "CreateLogStreamRequest$logGroupName": "

The name of the log group.

", + "DeleteLogGroupRequest$logGroupName": "

The name of the log group.

", + "DeleteLogStreamRequest$logGroupName": "

The name of the log group.

", + "DeleteMetricFilterRequest$logGroupName": "

The name of the log group.

", + "DeleteRetentionPolicyRequest$logGroupName": "

The name of the log group.

", + "DeleteSubscriptionFilterRequest$logGroupName": "

The name of the log group.

", + "DescribeLogGroupsRequest$logGroupNamePrefix": "

The prefix to match.

", + "DescribeLogStreamsRequest$logGroupName": "

The name of the log group.

", + "DescribeMetricFiltersRequest$logGroupName": "

The name of the log group.

", + "DescribeSubscriptionFiltersRequest$logGroupName": "

The name of the log group.

", "ExportTask$logGroupName": "

The name of the log group from which logs data was exported.

", - "FilterLogEventsRequest$logGroupName": "

The name of the log group to query.

", - "GetLogEventsRequest$logGroupName": "

The name of the log group to query.

", - "LogGroup$logGroupName": null, - "PutLogEventsRequest$logGroupName": "

The name of the log group to put log events to.

", - "PutMetricFilterRequest$logGroupName": "

The name of the log group to associate the metric filter with.

", - "PutRetentionPolicyRequest$logGroupName": "

The name of the log group to associate the retention policy with.

", - "PutSubscriptionFilterRequest$logGroupName": "

The name of the log group to associate the subscription filter with.

", - "SubscriptionFilter$logGroupName": null + "FilterLogEventsRequest$logGroupName": "

The name of the log group.

", + "GetLogEventsRequest$logGroupName": "

The name of the log group.

", + "ListTagsLogGroupRequest$logGroupName": "

The name of the log group.

", + "LogGroup$logGroupName": "

The name of the log group.

", + "MetricFilter$logGroupName": "

The name of the log group.

", + "PutLogEventsRequest$logGroupName": "

The name of the log group.

", + "PutMetricFilterRequest$logGroupName": "

The name of the log group.

", + "PutRetentionPolicyRequest$logGroupName": "

The name of the log group.

", + "PutSubscriptionFilterRequest$logGroupName": "

The name of the log group.

", + "SubscriptionFilter$logGroupName": "

The name of the log group.

", + "TagLogGroupRequest$logGroupName": "

The name of the log group.

", + "UntagLogGroupRequest$logGroupName": "

The name of the log group.

" } }, "LogGroups": { - "base": "

A list of log groups.

", + "base": null, "refs": { - "DescribeLogGroupsResponse$logGroups": null + "DescribeLogGroupsResponse$logGroups": "

The log groups.

" } }, "LogStream": { - "base": "

A log stream is sequence of log events from a single emitter of logs.

", + "base": "

Represents a log stream, which is a sequence of log events from a single emitter of logs.

", "refs": { "LogStreams$member": null } @@ -487,38 +511,38 @@ "LogStreamName": { "base": null, "refs": { - "CreateExportTaskRequest$logStreamNamePrefix": "

Will only export log streams that match the provided logStreamNamePrefix. If you don't specify a value, no prefix filter is applied.

", - "CreateLogStreamRequest$logStreamName": "

The name of the log stream to create.

", - "DeleteLogStreamRequest$logStreamName": "

The name of the log stream to delete.

", - "DescribeLogStreamsRequest$logStreamNamePrefix": "

Will only return log streams that match the provided logStreamNamePrefix. If you don't specify a value, no prefix filter is applied.

", + "CreateExportTaskRequest$logStreamNamePrefix": "

Export only log streams that match the provided prefix. If you don't specify a value, no prefix filter is applied.

", + "CreateLogStreamRequest$logStreamName": "

The name of the log stream.

", + "DeleteLogStreamRequest$logStreamName": "

The name of the log stream.

", + "DescribeLogStreamsRequest$logStreamNamePrefix": "

The prefix to match.

You cannot specify this parameter if orderBy is LastEventTime.

", "FilteredLogEvent$logStreamName": "

The name of the log stream this event belongs to.

", - "GetLogEventsRequest$logStreamName": "

The name of the log stream to query.

", + "GetLogEventsRequest$logStreamName": "

The name of the log stream.

", "InputLogStreamNames$member": null, - "LogStream$logStreamName": null, - "PutLogEventsRequest$logStreamName": "

The name of the log stream to put log events to.

", + "LogStream$logStreamName": "

The name of the log stream.

", + "PutLogEventsRequest$logStreamName": "

The name of the log stream.

", "SearchedLogStream$logStreamName": "

The name of the log stream.

" } }, "LogStreamSearchedCompletely": { "base": null, "refs": { - "SearchedLogStream$searchedCompletely": "

Indicates whether all the events in this log stream were searched or more data exists to search by paginating further.

" + "SearchedLogStream$searchedCompletely": "

Indicates whether all the events in this log stream were searched.

" } }, "LogStreams": { - "base": "

A list of log streams.

", + "base": null, "refs": { - "DescribeLogStreamsResponse$logStreams": null + "DescribeLogStreamsResponse$logStreams": "

The log streams.

" } }, "MetricFilter": { - "base": "

Metric filters can be used to express how CloudWatch Logs would extract metric observations from ingested log events and transform them to metric data in a CloudWatch metric.

", + "base": "

Metric filters express how CloudWatch Logs would extract metric observations from ingested log events and transform them into metric data in a CloudWatch metric.

", "refs": { "MetricFilters$member": null } }, "MetricFilterMatchRecord": { - "base": null, + "base": "

Represents a matched event.

", "refs": { "MetricFilterMatches$member": null } @@ -526,29 +550,31 @@ "MetricFilterMatches": { "base": null, "refs": { - "TestMetricFilterResponse$matches": null + "TestMetricFilterResponse$matches": "

The matched events.

" } }, "MetricFilters": { "base": null, "refs": { - "DescribeMetricFiltersResponse$metricFilters": null + "DescribeMetricFiltersResponse$metricFilters": "

The metric filters.

" } }, "MetricName": { "base": "

The name of the CloudWatch metric to which the monitored log information should be published. For example, you may publish to a metric called ErrorCount.

", "refs": { - "MetricTransformation$metricName": "

Name of the metric.

" + "DescribeMetricFiltersRequest$metricName": "

The name of the CloudWatch metric.

", + "MetricTransformation$metricName": "

The name of the CloudWatch metric.

" } }, "MetricNamespace": { - "base": "

The destination namespace of the new CloudWatch metric.

", + "base": null, "refs": { - "MetricTransformation$metricNamespace": "

Namespace to which the metric belongs.

" + "DescribeMetricFiltersRequest$metricNamespace": "

The namespace of the CloudWatch metric.

", + "MetricTransformation$metricNamespace": "

The namespace of the CloudWatch metric.

" } }, "MetricTransformation": { - "base": null, + "base": "

Indicates how to transform ingested log events into metric data in a CloudWatch metric.

", "refs": { "MetricTransformations$member": null } @@ -556,51 +582,51 @@ "MetricTransformations": { "base": null, "refs": { - "MetricFilter$metricTransformations": null, + "MetricFilter$metricTransformations": "

The metric transformations.

", "PutMetricFilterRequest$metricTransformations": "

A collection of information needed to define how metric data gets emitted.

" } }, "MetricValue": { - "base": "

What to publish to the metric. For example, if you're counting the occurrences of a particular term like \"Error\", the value will be \"1\" for each occurrence. If you're counting the bytes transferred the published value will be the value in the log event.

", + "base": "

The value to publish to the CloudWatch metric. For example, if you're counting the occurrences of a term like \"Error\", the value is \"1\" for each occurrence. If you're counting the bytes transferred, the value is the value in the log event.

", "refs": { - "MetricTransformation$metricValue": "

A string representing a value to publish to this metric when a filter pattern matches a log event.

" + "MetricTransformation$metricValue": "

The value to publish to the CloudWatch metric when a filter pattern matches a log event.

" } }, "NextToken": { - "base": "

A string token used for pagination that points to the next page of results. It must be a value obtained from the response of the previous request. The token expires after 24 hours.

", + "base": "

The token for the next set of items to return. The token expires after 24 hours.

", "refs": { - "DescribeDestinationsRequest$nextToken": null, + "DescribeDestinationsRequest$nextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", "DescribeDestinationsResponse$nextToken": null, - "DescribeExportTasksRequest$nextToken": "

A string token used for pagination that points to the next page of results. It must be a value obtained from the response of the previous DescribeExportTasks request.

", + "DescribeExportTasksRequest$nextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", "DescribeExportTasksResponse$nextToken": null, - "DescribeLogGroupsRequest$nextToken": "

A string token used for pagination that points to the next page of results. It must be a value obtained from the response of the previous DescribeLogGroups request.

", + "DescribeLogGroupsRequest$nextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", "DescribeLogGroupsResponse$nextToken": null, - "DescribeLogStreamsRequest$nextToken": "

A string token used for pagination that points to the next page of results. It must be a value obtained from the response of the previous DescribeLogStreams request.

", + "DescribeLogStreamsRequest$nextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", "DescribeLogStreamsResponse$nextToken": null, - "DescribeMetricFiltersRequest$nextToken": "

A string token used for pagination that points to the next page of results. It must be a value obtained from the response of the previous DescribeMetricFilters request.

", + "DescribeMetricFiltersRequest$nextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", "DescribeMetricFiltersResponse$nextToken": null, - "DescribeSubscriptionFiltersRequest$nextToken": null, + "DescribeSubscriptionFiltersRequest$nextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", "DescribeSubscriptionFiltersResponse$nextToken": null, - "FilterLogEventsRequest$nextToken": "

A pagination token obtained from a FilterLogEvents response to continue paginating the FilterLogEvents results. This token is omitted from the response when there are no other events to display.

", - "FilterLogEventsResponse$nextToken": "

A pagination token obtained from a FilterLogEvents response to continue paginating the FilterLogEvents results. This token is omitted from the response when there are no other events to display.

", - "GetLogEventsRequest$nextToken": "

A string token used for pagination that points to the next page of results. It must be a value obtained from the nextForwardToken or nextBackwardToken fields in the response of the previous GetLogEvents request.

", - "GetLogEventsResponse$nextForwardToken": null, - "GetLogEventsResponse$nextBackwardToken": null + "FilterLogEventsRequest$nextToken": "

The token for the next set of events to return. (You received this token from a previous call.)

", + "FilterLogEventsResponse$nextToken": "

The token to use when requesting the next set of items. The token expires after 24 hours.

", + "GetLogEventsRequest$nextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "GetLogEventsResponse$nextForwardToken": "

The token for the next set of items in the forward direction. The token expires after 24 hours.

", + "GetLogEventsResponse$nextBackwardToken": "

The token for the next set of items in the backward direction. The token expires after 24 hours.

" } }, "OperationAbortedException": { - "base": "

Returned if multiple requests to update the same resource were in conflict.

", + "base": "

Multiple requests to update the same resource were in conflict.

", "refs": { } }, "OrderBy": { "base": null, "refs": { - "DescribeLogStreamsRequest$orderBy": "

Specifies what to order the returned log streams by. Valid arguments are 'LogStreamName' or 'LastEventTime'. If you don't specify a value, results are ordered by LogStreamName. If 'LastEventTime' is chosen, the request cannot also contain a logStreamNamePrefix.

" + "DescribeLogStreamsRequest$orderBy": "

If the value is LogStreamName, the results are ordered by log stream name. If the value is LastEventTime, the results are ordered by the event time. The default value is LogStreamName.

If you order the results by event time, you cannot specify the logStreamNamePrefix parameter.

" } }, "OutputLogEvent": { - "base": null, + "base": "

Represents a log event.

", "refs": { "OutputLogEvents$member": null } @@ -608,7 +634,7 @@ "OutputLogEvents": { "base": null, "refs": { - "GetLogEventsResponse$events": null + "GetLogEventsResponse$events": "

The events.

" } }, "PutDestinationPolicyRequest": { @@ -652,72 +678,72 @@ } }, "RejectedLogEventsInfo": { - "base": null, + "base": "

Represents the rejected events.

", "refs": { - "PutLogEventsResponse$rejectedLogEventsInfo": null + "PutLogEventsResponse$rejectedLogEventsInfo": "

The rejected events.

" } }, "ResourceAlreadyExistsException": { - "base": "

Returned if the specified resource already exists.

", + "base": "

The specified resource already exists.

", "refs": { } }, "ResourceNotFoundException": { - "base": "

Returned if the specified resource does not exist.

", + "base": "

The specified resource does not exist.

", "refs": { } }, "RoleArn": { "base": null, "refs": { - "Destination$roleArn": "

A role for impersonation for delivering log events to the target.

", - "PutDestinationRequest$roleArn": "

The ARN of an IAM role that grants CloudWatch Logs permissions to do Amazon Kinesis PutRecord requests on the destination stream.

", - "PutSubscriptionFilterRequest$roleArn": "

The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination (used via an ARN of Destination) for cross-account delivery.

", - "SubscriptionFilter$roleArn": null + "Destination$roleArn": "

A role for impersonation, used when delivering log events to the target.

", + "PutDestinationRequest$roleArn": "

The ARN of an IAM role that grants CloudWatch Logs permissions to call Amazon Kinesis PutRecord on the destination stream.

", + "PutSubscriptionFilterRequest$roleArn": "

The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination for cross-account delivery.

", + "SubscriptionFilter$roleArn": "

" } }, "SearchedLogStream": { - "base": "

An object indicating the search status of a log stream in a FilterLogEvents request.

", + "base": "

Represents the search status of a log stream.

", "refs": { "SearchedLogStreams$member": null } }, "SearchedLogStreams": { - "base": "

A list of SearchedLogStream objects indicating the search status for log streams in a FilterLogEvents request.

", + "base": null, "refs": { - "FilterLogEventsResponse$searchedLogStreams": "

A list of SearchedLogStream objects indicating which log streams have been searched in this request and whether each has been searched completely or still has more to be paginated.

" + "FilterLogEventsResponse$searchedLogStreams": "

Indicates which log streams have been searched and whether each has been searched completely.

" } }, "SequenceToken": { - "base": "

A string token used for making PutLogEvents requests. A sequenceToken can only be used once, and PutLogEvents requests must include the sequenceToken obtained from the response of the previous request.

", + "base": null, "refs": { "DataAlreadyAcceptedException$expectedSequenceToken": null, "InvalidSequenceTokenException$expectedSequenceToken": null, - "LogStream$uploadSequenceToken": null, - "PutLogEventsRequest$sequenceToken": "

A string token that must be obtained from the response of the previous PutLogEvents request.

", - "PutLogEventsResponse$nextSequenceToken": null + "LogStream$uploadSequenceToken": "

The sequence token.

", + "PutLogEventsRequest$sequenceToken": "

The sequence token.

", + "PutLogEventsResponse$nextSequenceToken": "

The next sequence token.

" } }, "ServiceUnavailableException": { - "base": "

Returned if the service cannot complete the request.

", + "base": "

The service cannot complete the request.

", "refs": { } }, "StartFromHead": { "base": null, "refs": { - "GetLogEventsRequest$startFromHead": "

If set to true, the earliest log events would be returned first. The default is false (the latest log events are returned first).

" + "GetLogEventsRequest$startFromHead": "

If the value is true, the earliest log events are returned first. If the value is false, the latest log events are returned first. The default value is false.

" } }, "StoredBytes": { "base": null, "refs": { - "LogGroup$storedBytes": null, - "LogStream$storedBytes": null + "LogGroup$storedBytes": "

The number of bytes stored.

", + "LogStream$storedBytes": "

The number of bytes stored.

" } }, "SubscriptionFilter": { - "base": null, + "base": "

Represents a subscription filter.

", "refs": { "SubscriptionFilters$member": null } @@ -725,20 +751,52 @@ "SubscriptionFilters": { "base": null, "refs": { - "DescribeSubscriptionFiltersResponse$subscriptionFilters": null + "DescribeSubscriptionFiltersResponse$subscriptionFilters": "

The subscription filters.

" + } + }, + "TagKey": { + "base": null, + "refs": { + "TagList$member": null, + "Tags$key": null + } + }, + "TagList": { + "base": null, + "refs": { + "UntagLogGroupRequest$tags": "

The tag keys. The corresponding tags are removed from the log group.

" + } + }, + "TagLogGroupRequest": { + "base": null, + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "Tags$value": null + } + }, + "Tags": { + "base": null, + "refs": { + "CreateLogGroupRequest$tags": "

The key-value pairs to use for the tags.

", + "ListTagsLogGroupResponse$tags": "

The tags.

", + "TagLogGroupRequest$tags": "

The key-value pairs to use for the tags.

" } }, "TargetArn": { "base": null, "refs": { - "Destination$targetArn": "

ARN of the physical target where the log events will be delivered (eg. ARN of a Kinesis stream).

", + "Destination$targetArn": "

The Amazon Resource Name (ARN) of the physical target where the log events will be delivered (for example, a Kinesis stream).

", "PutDestinationRequest$targetArn": "

The ARN of an Amazon Kinesis stream to deliver matching log events to.

" } }, "TestEventMessages": { "base": null, "refs": { - "TestMetricFilterRequest$logEventMessages": "

A list of log event messages to test.

" + "TestMetricFilterRequest$logEventMessages": "

The log event messages to test.

" } }, "TestMetricFilterRequest": { @@ -752,31 +810,31 @@ } }, "Timestamp": { - "base": "

A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.

", - "refs": { - "CreateExportTaskRequest$from": "

A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. It indicates the start time of the range for the request. Events with a timestamp prior to this time will not be exported.

", - "CreateExportTaskRequest$to": "

A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. It indicates the end time of the range for the request. Events with a timestamp later than this time will not be exported.

", - "Destination$creationTime": "

A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC specifying when this destination was created.

", - "ExportTask$from": "

A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a timestamp prior to this time are not exported.

", - "ExportTask$to": "

A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not exported.

", - "ExportTaskExecutionInfo$creationTime": "

A point in time when the export task got created.

", - "ExportTaskExecutionInfo$completionTime": "

A point in time when the export task got completed.

", - "FilterLogEventsRequest$startTime": "

A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. If provided, events with a timestamp prior to this time are not returned.

", - "FilterLogEventsRequest$endTime": "

A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. If provided, events with a timestamp later than this time are not returned.

", - "FilteredLogEvent$timestamp": null, - "FilteredLogEvent$ingestionTime": null, - "GetLogEventsRequest$startTime": null, - "GetLogEventsRequest$endTime": null, - "InputLogEvent$timestamp": null, - "LogGroup$creationTime": null, - "LogStream$creationTime": null, - "LogStream$firstEventTimestamp": null, - "LogStream$lastEventTimestamp": null, - "LogStream$lastIngestionTime": null, - "MetricFilter$creationTime": null, - "OutputLogEvent$timestamp": null, - "OutputLogEvent$ingestionTime": null, - "SubscriptionFilter$creationTime": null + "base": null, + "refs": { + "CreateExportTaskRequest$from": "

The start time of the range for the request, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a timestamp earlier than this time are not exported.

", + "CreateExportTaskRequest$to": "

The end time of the range for the request, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not exported.

", + "Destination$creationTime": "

The creation time of the destination.

", + "ExportTask$from": "

The start time, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a timestamp prior to this time are not exported.

", + "ExportTask$to": "

The end time, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not exported.

", + "ExportTaskExecutionInfo$creationTime": "

The creation time of the export task.

", + "ExportTaskExecutionInfo$completionTime": "

The completion time of the export task.

", + "FilterLogEventsRequest$startTime": "

The start of the time range, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a timestamp prior to this time are not returned.

", + "FilterLogEventsRequest$endTime": "

The end of the time range, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not returned.

", + "FilteredLogEvent$timestamp": "

The time the event occurred, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.

", + "FilteredLogEvent$ingestionTime": "

The time the event was ingested.

", + "GetLogEventsRequest$startTime": "

The start of the time range, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a timestamp earlier than this time are not included.

", + "GetLogEventsRequest$endTime": "

The end of the time range, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not included.

", + "InputLogEvent$timestamp": "

The time the event occurred, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.

", + "LogGroup$creationTime": "

The creation time of the log group.

", + "LogStream$creationTime": "

The creation time of the stream.

", + "LogStream$firstEventTimestamp": "

The time of the first event, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.

", + "LogStream$lastEventTimestamp": "

The time of the last event, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.

", + "LogStream$lastIngestionTime": "

The ingestion time.

", + "MetricFilter$creationTime": "

The creation time of the metric filter.

", + "OutputLogEvent$timestamp": "

The time the event occurred, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.

", + "OutputLogEvent$ingestionTime": "

The time the event was ingested.

", + "SubscriptionFilter$creationTime": "

The creation time of the subscription filter.

" } }, "Token": { @@ -785,6 +843,11 @@ "ExtractedValues$key": null } }, + "UntagLogGroupRequest": { + "base": null, + "refs": { + } + }, "Value": { "base": null, "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/machinelearning/2014-12-12/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/machinelearning/2014-12-12/api-2.json index 37898e43f..3117a3f17 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/machinelearning/2014-12-12/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/machinelearning/2014-12-12/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"machinelearning-2014-12-12", "apiVersion":"2014-12-12", "endpointPrefix":"machinelearning", "jsonVersion":"1.1", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/marketplacecommerceanalytics/2015-07-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/marketplacecommerceanalytics/2015-07-01/api-2.json index 38afc6cb5..0eec1e700 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/marketplacecommerceanalytics/2015-07-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/marketplacecommerceanalytics/2015-07-01/api-2.json @@ -8,7 +8,8 @@ "serviceFullName":"AWS Marketplace Commerce Analytics", "signatureVersion":"v4", "signingName":"marketplacecommerceanalytics", - "targetPrefix":"MarketplaceCommerceAnalytics20150701" + "targetPrefix":"MarketplaceCommerceAnalytics20150701", + "uid":"marketplacecommerceanalytics-2015-07-01" }, "operations":{ "GenerateDataSet":{ @@ -61,12 +62,14 @@ "monthly_revenue_annual_subscriptions", "disbursed_amount_by_product", "disbursed_amount_by_product_with_uncollected_funds", + "disbursed_amount_by_instance_hours", "disbursed_amount_by_customer_geo", "disbursed_amount_by_age_of_uncollected_funds", "disbursed_amount_by_age_of_disbursed_funds", "customer_profile_by_industry", "customer_profile_by_revenue", - "customer_profile_by_geography" + "customer_profile_by_geography", + "sales_compensation_billed_revenue" ], "max":255, "min":1 diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/marketplacecommerceanalytics/2015-07-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/marketplacecommerceanalytics/2015-07-01/docs-2.json index e2452982c..7a0554e1e 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/marketplacecommerceanalytics/2015-07-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/marketplacecommerceanalytics/2015-07-01/docs-2.json @@ -29,7 +29,7 @@ "DataSetType": { "base": null, "refs": { - "GenerateDataSetRequest$dataSetType": "

The desired data set type.

  • customer_subscriber_hourly_monthly_subscriptions - Available daily by 5:00 PM Pacific Time since 2014-07-21.
  • customer_subscriber_annual_subscriptions - Available daily by 5:00 PM Pacific Time since 2014-07-21.
  • daily_business_usage_by_instance_type - Available daily by 5:00 PM Pacific Time since 2015-01-26.
  • daily_business_fees - Available daily by 5:00 PM Pacific Time since 2015-01-26.
  • daily_business_free_trial_conversions - Available daily by 5:00 PM Pacific Time since 2015-01-26.
  • daily_business_new_instances - Available daily by 5:00 PM Pacific Time since 2015-01-26.
  • daily_business_new_product_subscribers - Available daily by 5:00 PM Pacific Time since 2015-01-26.
  • daily_business_canceled_product_subscribers - Available daily by 5:00 PM Pacific Time since 2015-01-26.
  • monthly_revenue_billing_and_revenue_data - Available monthly on the 4th day of the month by 5:00 PM Pacific Time since 2015-02.
  • monthly_revenue_annual_subscriptions - Available monthly on the 4th day of the month by 5:00 PM Pacific Time since 2015-02.
  • disbursed_amount_by_product - Available every 30 days by 5:00 PM Pacific Time since 2015-01-26.
  • disbursed_amount_by_product_with_uncollected_funds -This data set is only available from 2012-04-19 until 2015-01-25. After 2015-01-25, this data set was split into three data sets: disbursed_amount_by_product, disbursed_amount_by_age_of_uncollected_funds, and disbursed_amount_by_age_of_disbursed_funds.
  • disbursed_amount_by_customer_geo - Available every 30 days by 5:00 PM Pacific Time since 2012-04-19.
  • disbursed_amount_by_age_of_uncollected_funds - Available every 30 days by 5:00 PM Pacific Time since 2015-01-26.
  • disbursed_amount_by_age_of_disbursed_funds - Available every 30 days by 5:00 PM Pacific Time since 2015-01-26.
  • customer_profile_by_industry - Available daily by 5:00 PM Pacific Time since 2015-10-01.
  • customer_profile_by_revenue - Available daily by 5:00 PM Pacific Time since 2015-10-01.
  • customer_profile_by_geography - Available daily by 5:00 PM Pacific Time since 2015-10-01.

" + "GenerateDataSetRequest$dataSetType": "

The desired data set type.

  • customer_subscriber_hourly_monthly_subscriptions - Available daily by 5:00 PM Pacific Time since 2014-07-21.
  • customer_subscriber_annual_subscriptions - Available daily by 5:00 PM Pacific Time since 2014-07-21.
  • daily_business_usage_by_instance_type - Available daily by 5:00 PM Pacific Time since 2015-01-26.
  • daily_business_fees - Available daily by 5:00 PM Pacific Time since 2015-01-26.
  • daily_business_free_trial_conversions - Available daily by 5:00 PM Pacific Time since 2015-01-26.
  • daily_business_new_instances - Available daily by 5:00 PM Pacific Time since 2015-01-26.
  • daily_business_new_product_subscribers - Available daily by 5:00 PM Pacific Time since 2015-01-26.
  • daily_business_canceled_product_subscribers - Available daily by 5:00 PM Pacific Time since 2015-01-26.
  • monthly_revenue_billing_and_revenue_data - Available monthly on the 4th day of the month by 5:00 PM Pacific Time since 2015-02.
  • monthly_revenue_annual_subscriptions - Available monthly on the 4th day of the month by 5:00 PM Pacific Time since 2015-02.
  • disbursed_amount_by_product - Available every 30 days by 5:00 PM Pacific Time since 2015-01-26.
  • disbursed_amount_by_product_with_uncollected_funds -This data set is only available from 2012-04-19 until 2015-01-25. After 2015-01-25, this data set was split into three data sets: disbursed_amount_by_product, disbursed_amount_by_age_of_uncollected_funds, and disbursed_amount_by_age_of_disbursed_funds.
  • disbursed_amount_by_instance_hours - Available every 30 days by 5:00 PM Pacific Time since 2012-09-04.
  • disbursed_amount_by_customer_geo - Available every 30 days by 5:00 PM Pacific Time since 2012-04-19.
  • disbursed_amount_by_age_of_uncollected_funds - Available every 30 days by 5:00 PM Pacific Time since 2015-01-26.
  • disbursed_amount_by_age_of_disbursed_funds - Available every 30 days by 5:00 PM Pacific Time since 2015-01-26.
  • customer_profile_by_industry - Available daily by 5:00 PM Pacific Time since 2015-10-01.
  • customer_profile_by_revenue - Available daily by 5:00 PM Pacific Time since 2015-10-01.
  • customer_profile_by_geography - Available daily by 5:00 PM Pacific Time since 2015-10-01.
  • sales_compensation_billed_revenue - Available monthly on the 4th day of the month by 5:00 PM Pacific Time since 2016-12.

" } }, "DestinationS3BucketName": { @@ -55,7 +55,7 @@ "FromDate": { "base": null, "refs": { - "StartSupportDataExportRequest$fromDate": "The start date from which to retrieve the data set. This parameter only affects the customer_support_contacts_data data set type." + "StartSupportDataExportRequest$fromDate": "The start date from which to retrieve the data set in UTC. This parameter only affects the customer_support_contacts_data data set type." } }, "GenerateDataSetRequest": { @@ -112,7 +112,7 @@ "SupportDataSetType": { "base": null, "refs": { - "StartSupportDataExportRequest$dataSetType": "

Specifies the data set type to be written to the output csv file. The data set types customer_support_contacts_data and test_customer_support_contacts_data both result in a csv file containing the following fields: Product Id, Customer Guid, Subscription Guid, Subscription Start Date, Organization, AWS Account Id, Given Name, Surname, Telephone Number, Email, Title, Country Code, ZIP Code, Operation Type, and Operation Time. Currently, only the test_customer_support_contacts_data value is supported

  • customer_support_contacts_data Customer support contact data. The data set will contain all changes (Creates, Updates, and Deletes) to customer support contact data from the date specified in the from_date parameter.
  • test_customer_support_contacts_data An example data set containing static test data in the same format as customer_support_contacts_data

" + "StartSupportDataExportRequest$dataSetType": "

Specifies the data set type to be written to the output csv file. The data set types customer_support_contacts_data and test_customer_support_contacts_data both result in a csv file containing the following fields: Product Id, Product Code, Customer Guid, Subscription Guid, Subscription Start Date, Organization, AWS Account Id, Given Name, Surname, Telephone Number, Email, Title, Country Code, ZIP Code, Operation Type, and Operation Time.

  • customer_support_contacts_data Customer support contact data. The data set will contain all changes (Creates, Updates, and Deletes) to customer support contact data from the date specified in the from_date parameter.
  • test_customer_support_contacts_data An example data set containing static test data in the same format as customer_support_contacts_data

" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/api-2.json index 6c9f7b573..b8e66e77c 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"meteringmarketplace-2016-01-14", "apiVersion":"2016-01-14", "endpointPrefix":"metering.marketplace", "jsonVersion":"1.1", @@ -11,6 +12,23 @@ "targetPrefix":"AWSMPMeteringService" }, "operations":{ + "BatchMeterUsage":{ + "name":"BatchMeterUsage", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"BatchMeterUsageRequest"}, + "output":{"shape":"BatchMeterUsageResult"}, + "errors":[ + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidProductCodeException"}, + {"shape":"InvalidUsageDimensionException"}, + {"shape":"InvalidCustomerIdentifierException"}, + {"shape":"TimestampOutOfBoundsException"}, + {"shape":"ThrottlingException"} + ] + }, "MeterUsage":{ "name":"MeterUsage", "http":{ @@ -28,10 +46,48 @@ {"shape":"DuplicateRequestException"}, {"shape":"ThrottlingException"} ] + }, + "ResolveCustomer":{ + "name":"ResolveCustomer", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ResolveCustomerRequest"}, + "output":{"shape":"ResolveCustomerResult"}, + "errors":[ + {"shape":"InvalidTokenException"}, + {"shape":"ExpiredTokenException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceErrorException"} + ] } }, "shapes":{ + "BatchMeterUsageRequest":{ + "type":"structure", + "required":[ + "UsageRecords", + "ProductCode" + ], + "members":{ + "UsageRecords":{"shape":"UsageRecordList"}, + "ProductCode":{"shape":"ProductCode"} + } + }, + "BatchMeterUsageResult":{ + "type":"structure", + "members":{ + "Results":{"shape":"UsageRecordResultList"}, + "UnprocessedRecords":{"shape":"UsageRecordList"} + } + }, "Boolean":{"type":"boolean"}, + "CustomerIdentifier":{ + "type":"string", + "max":255, + "min":1 + }, "DuplicateRequestException":{ "type":"structure", "members":{ @@ -39,6 +95,13 @@ }, "exception":true }, + "ExpiredTokenException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, "InternalServiceErrorException":{ "type":"structure", "members":{ @@ -47,6 +110,13 @@ "exception":true, "fault":true }, + "InvalidCustomerIdentifierException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, "InvalidEndpointRegionException":{ "type":"structure", "members":{ @@ -61,6 +131,13 @@ }, "exception":true }, + "InvalidTokenException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, "InvalidUsageDimensionException":{ "type":"structure", "members":{ @@ -91,11 +168,29 @@ "MeteringRecordId":{"shape":"String"} } }, + "NonEmptyString":{ + "type":"string", + "pattern":"\\S+" + }, "ProductCode":{ "type":"string", "max":255, "min":1 }, + "ResolveCustomerRequest":{ + "type":"structure", + "required":["RegistrationToken"], + "members":{ + "RegistrationToken":{"shape":"NonEmptyString"} + } + }, + "ResolveCustomerResult":{ + "type":"structure", + "members":{ + "CustomerIdentifier":{"shape":"CustomerIdentifier"}, + "ProductCode":{"shape":"ProductCode"} + } + }, "String":{"type":"string"}, "ThrottlingException":{ "type":"structure", @@ -122,6 +217,47 @@ "max":1000000, "min":0 }, + "UsageRecord":{ + "type":"structure", + "required":[ + "Timestamp", + "CustomerIdentifier", + "Dimension", + "Quantity" + ], + "members":{ + "Timestamp":{"shape":"Timestamp"}, + "CustomerIdentifier":{"shape":"CustomerIdentifier"}, + "Dimension":{"shape":"UsageDimension"}, + "Quantity":{"shape":"UsageQuantity"} + } + }, + "UsageRecordList":{ + "type":"list", + "member":{"shape":"UsageRecord"}, + "max":25, + "min":0 + }, + "UsageRecordResult":{ + "type":"structure", + "members":{ + "UsageRecord":{"shape":"UsageRecord"}, + "MeteringRecordId":{"shape":"String"}, + "Status":{"shape":"UsageRecordResultStatus"} + } + }, + "UsageRecordResultList":{ + "type":"list", + "member":{"shape":"UsageRecordResult"} + }, + "UsageRecordResultStatus":{ + "type":"string", + "enum":[ + "Success", + "CustomerNotSubscribed", + "DuplicateRecord" + ] + }, "errorMessage":{"type":"string"} } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/docs-2.json index c71903432..b9a958a27 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/docs-2.json @@ -1,18 +1,42 @@ { "version": "2.0", - "service": "AWS Marketplace Metering Service

This reference provides descriptions of the low-level AWS Marketplace Metering Service API.

AWS Marketplace sellers can use this API to submit usage data for custom usage dimensions.

Submitting Metering Records

  • MeterUsage- Submits the metering record for a Marketplace product.

", + "service": "AWS Marketplace Metering Service

This reference provides descriptions of the low-level AWS Marketplace Metering Service API.

AWS Marketplace sellers can use this API to submit usage data for custom usage dimensions.

Submitting Metering Records

  • MeterUsage- Submits the metering record for a Marketplace product. MeterUsage is called from an EC2 instance.

  • BatchMeterUsage- Submits the metering record for a set of customers. BatchMeterUsage is called from a software-as-a-service (SaaS) application.

Accepting New Customers

  • ResolveCustomer- Called by a SaaS application during the registration process. When a buyer visits your website during the registration process, the buyer submits a Registration Token through the browser. The Registration Token is resolved through this API to obtain a CustomerIdentifier and Product Code.

", "operations": { - "MeterUsage": "

API to emit metering records. For identical requests, the API is idempotent. It simply returns the metering record ID.

" + "BatchMeterUsage": "

BatchMeterUsage is called from a SaaS application listed on the AWS Marketplace to post metering records for a set of customers.

For identical requests, the API is idempotent; requests can be retried with the same records or a subset of the input records.

Every request to BatchMeterUsage is for one product. If you need to meter usage for multiple products, you must make multiple calls to BatchMeterUsage.

BatchMeterUsage can process up to 25 UsageRecords at a time.

", + "MeterUsage": "

API to emit metering records. For identical requests, the API is idempotent. It simply returns the metering record ID.

MeterUsage is authenticated on the buyer's AWS account, generally when running from an EC2 instance on the AWS Marketplace.

", + "ResolveCustomer": "

ResolveCustomer is called by a SaaS application during the registration process. When a buyer visits your website during the registration process, the buyer submits a registration token through their browser. The registration token is resolved through this API to obtain a CustomerIdentifier and product code.

" }, "shapes": { + "BatchMeterUsageRequest": { + "base": "

A BatchMeterUsageRequest contains UsageRecords, which indicate quantities of usage within your application.

", + "refs": { + } + }, + "BatchMeterUsageResult": { + "base": "

Contains the UsageRecords processed by BatchMeterUsage and any records that have failed due to transient error.

", + "refs": { + } + }, "Boolean": { "base": null, "refs": { - "MeterUsageRequest$DryRun": "

Checks whether you have the permissions required for the action, but does not make the request. If you have the permissions, the request returns DryRunOperation; otherwise, it returns UnauthorizedException.

" + "MeterUsageRequest$DryRun": "

Checks whether you have the permissions required for the action, but does not make the request. If you have the permissions, the request returns DryRunOperation; otherwise, it returns UnauthorizedException.

" + } + }, + "CustomerIdentifier": { + "base": null, + "refs": { + "ResolveCustomerResult$CustomerIdentifier": "

The CustomerIdentifier is used to identify an individual customer in your application. Calls to BatchMeterUsage require CustomerIdentifiers for each UsageRecord.

", + "UsageRecord$CustomerIdentifier": "

The CustomerIdentifier is obtained through the ResolveCustomer operation and represents an individual buyer in your application.

" } }, "DuplicateRequestException": { - "base": "

A metering record has already been emitted by the same EC2 instance for the given {usageDimension, timestamp} with a different usageQuantity.

", + "base": "

A metering record has already been emitted by the same EC2 instance for the given {usageDimension, timestamp} with a different usageQuantity.

", + "refs": { + } + }, + "ExpiredTokenException": { + "base": "

The submitted registration token has expired. This can happen if the buyer's browser takes too long to redirect to your page, the buyer has resubmitted the registration token, or your application has held on to the registration token for too long. Your SaaS registration website should redeem this token as soon as it is submitted by the buyer's browser.

", "refs": { } }, @@ -21,6 +45,11 @@ "refs": { } }, + "InvalidCustomerIdentifierException": { + "base": "

You have metered usage for a CustomerIdentifier that does not exist.

", + "refs": { + } + }, "InvalidEndpointRegionException": { "base": "

The endpoint being called is in a region different from your EC2 instance. The region of the Metering service endpoint and the region of the EC2 instance must match.

", "refs": { @@ -31,6 +60,11 @@ "refs": { } }, + "InvalidTokenException": { + "base": null, + "refs": { + } + }, "InvalidUsageDimensionException": { "base": "

The usage dimension does not match one of the UsageDimensions associated with products.

", "refs": { @@ -46,16 +80,35 @@ "refs": { } }, + "NonEmptyString": { + "base": null, + "refs": { + "ResolveCustomerRequest$RegistrationToken": "

When a buyer visits your website during the registration process, the buyer submits a registration token through the browser. The registration token is resolved to obtain a CustomerIdentifier and product code.

" + } + }, "ProductCode": { "base": null, "refs": { - "MeterUsageRequest$ProductCode": "

Product code is used to uniquely identify a product in AWS Marketplace. The product code should be the same as the one used during the publishing of a new product.

" + "BatchMeterUsageRequest$ProductCode": "

Product code is used to uniquely identify a product in AWS Marketplace. The product code should be the same as the one used during the publishing of a new product.

", + "MeterUsageRequest$ProductCode": "

Product code is used to uniquely identify a product in AWS Marketplace. The product code should be the same as the one used during the publishing of a new product.

", + "ResolveCustomerResult$ProductCode": "

The product code is returned to confirm that the buyer is registering for your product. Subsequent BatchMeterUsage calls should be made using this product code.

" + } + }, + "ResolveCustomerRequest": { + "base": "

Contains input to the ResolveCustomer operation.

", + "refs": { + } + }, + "ResolveCustomerResult": { + "base": "

The result of the ResolveCustomer operation. Contains the CustomerIdentifier and product code.

", + "refs": { } }, "String": { "base": null, "refs": { - "MeterUsageResult$MeteringRecordId": null + "MeterUsageResult$MeteringRecordId": null, + "UsageRecordResult$MeteringRecordId": "

The MeteringRecordId is a unique identifier for this metering event.

" } }, "ThrottlingException": { @@ -66,7 +119,8 @@ "Timestamp": { "base": null, "refs": { - "MeterUsageRequest$Timestamp": "

Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.

" + "MeterUsageRequest$Timestamp": "

Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.

", + "UsageRecord$Timestamp": "

Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.

Your application can meter usage for up to one hour in the past.

" } }, "TimestampOutOfBoundsException": { @@ -77,22 +131,59 @@ "UsageDimension": { "base": null, "refs": { - "MeterUsageRequest$UsageDimension": "

It will be one of the 'fcp dimension name' provided during the publishing of the product.

" + "MeterUsageRequest$UsageDimension": "

It will be one of the fcp dimension name provided during the publishing of the product.

", + "UsageRecord$Dimension": "

During the process of registering a product on AWS Marketplace, up to eight dimensions are specified. These represent different units of value in your application.

" } }, "UsageQuantity": { "base": null, "refs": { - "MeterUsageRequest$UsageQuantity": "

Consumption value for the hour.

" + "MeterUsageRequest$UsageQuantity": "

Consumption value for the hour.

", + "UsageRecord$Quantity": "

The quantity of usage consumed by the customer for the given dimension and time.

" + } + }, + "UsageRecord": { + "base": "

A UsageRecord indicates a quantity of usage for a given product, customer, dimension and time.

Multiple requests with the same UsageRecords as input will be deduplicated to prevent double charges.

", + "refs": { + "UsageRecordList$member": null, + "UsageRecordResult$UsageRecord": "

The UsageRecord that was part of the BatchMeterUsage request.

" + } + }, + "UsageRecordList": { + "base": null, + "refs": { + "BatchMeterUsageRequest$UsageRecords": "

The set of UsageRecords to submit. BatchMeterUsage accepts up to 25 UsageRecords at a time.

", + "BatchMeterUsageResult$UnprocessedRecords": "

Contains all UsageRecords that were not processed by BatchMeterUsage. This is a list of UsageRecords. You can retry the failed request by making another BatchMeterUsage call with this list as input in the BatchMeterUsageRequest.

" + } + }, + "UsageRecordResult": { + "base": "

A UsageRecordResult indicates the status of a given UsageRecord processed by BatchMeterUsage.

", + "refs": { + "UsageRecordResultList$member": null + } + }, + "UsageRecordResultList": { + "base": null, + "refs": { + "BatchMeterUsageResult$Results": "

Contains all UsageRecords processed by BatchMeterUsage. These records were either honored by AWS Marketplace Metering Service or were invalid.

" + } + }, + "UsageRecordResultStatus": { + "base": null, + "refs": { + "UsageRecordResult$Status": "

The UsageRecordResult Status indicates the status of an individual UsageRecord processed by BatchMeterUsage.

  • Success- The UsageRecord was accepted and honored by BatchMeterUsage.

  • CustomerNotSubscribed- The CustomerIdentifier specified is not subscribed to your product. The UsageRecord was not honored. Future UsageRecords for this customer will fail until the customer subscribes to your product.

  • DuplicateRecord- Indicates that the UsageRecord was invalid and not honored. A previously metered UsageRecord had the same customer, dimension, and time, but a different quantity.

" } }, "errorMessage": { "base": null, "refs": { "DuplicateRequestException$message": null, + "ExpiredTokenException$message": null, "InternalServiceErrorException$message": null, + "InvalidCustomerIdentifierException$message": null, "InvalidEndpointRegionException$message": null, "InvalidProductCodeException$message": null, + "InvalidTokenException$message": null, "InvalidUsageDimensionException$message": null, "ThrottlingException$message": null, "TimestampOutOfBoundsException$message": null diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/api-2.json index cbc0f069e..33a957e42 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"monitoring-2010-08-01", "apiVersion":"2010-08-01", "endpointPrefix":"monitoring", "protocol":"query", @@ -216,7 +217,8 @@ "Sum":{"shape":"DatapointValue"}, "Minimum":{"shape":"DatapointValue"}, "Maximum":{"shape":"DatapointValue"}, - "Unit":{"shape":"StandardUnit"} + "Unit":{"shape":"StandardUnit"}, + "ExtendedStatistics":{"shape":"DatapointValueMap"} }, "xmlOrder":[ "Timestamp", @@ -225,10 +227,16 @@ "Sum", "Minimum", "Maximum", - "Unit" + "Unit", + "ExtendedStatistics" ] }, "DatapointValue":{"type":"double"}, + "DatapointValueMap":{ + "type":"map", + "key":{"shape":"ExtendedStatistic"}, + "value":{"shape":"DatapointValue"} + }, "Datapoints":{ "type":"list", "member":{"shape":"Datapoint"} @@ -268,6 +276,7 @@ "MetricName":{"shape":"MetricName"}, "Namespace":{"shape":"Namespace"}, "Statistic":{"shape":"Statistic"}, + "ExtendedStatistic":{"shape":"ExtendedStatistic"}, "Dimensions":{"shape":"Dimensions"}, "Period":{"shape":"Period"}, "Unit":{"shape":"StandardUnit"} @@ -363,6 +372,16 @@ "type":"integer", "min":1 }, + "ExtendedStatistic":{ + "type":"string", + "pattern":"p(\\d{1,2}(\\.\\d{0,2})?|100)" + }, + "ExtendedStatistics":{ + "type":"list", + "member":{"shape":"ExtendedStatistic"}, + "max":10, + "min":1 + }, "FaultDescription":{"type":"string"}, "GetMetricStatisticsInput":{ "type":"structure", @@ -371,8 +390,7 @@ "MetricName", "StartTime", "EndTime", - "Period", - "Statistics" + "Period" ], "members":{ "Namespace":{"shape":"Namespace"}, @@ -382,6 +400,7 @@ "EndTime":{"shape":"Timestamp"}, "Period":{"shape":"Period"}, "Statistics":{"shape":"Statistics"}, + "ExtendedStatistics":{"shape":"ExtendedStatistics"}, "Unit":{"shape":"StandardUnit"} } }, @@ -538,6 +557,7 @@ "MetricName":{"shape":"MetricName"}, "Namespace":{"shape":"Namespace"}, "Statistic":{"shape":"Statistic"}, + "ExtendedStatistic":{"shape":"ExtendedStatistic"}, "Dimensions":{"shape":"Dimensions"}, "Period":{"shape":"Period"}, "Unit":{"shape":"StandardUnit"}, @@ -566,7 +586,8 @@ "Unit", "EvaluationPeriods", "Threshold", - "ComparisonOperator" + "ComparisonOperator", + "ExtendedStatistic" ] }, "MetricAlarms":{ @@ -632,7 +653,6 @@ "AlarmName", "MetricName", "Namespace", - "Statistic", "Period", "EvaluationPeriods", "Threshold", @@ -648,6 +668,7 @@ "MetricName":{"shape":"MetricName"}, "Namespace":{"shape":"Namespace"}, "Statistic":{"shape":"Statistic"}, + "ExtendedStatistic":{"shape":"ExtendedStatistic"}, "Dimensions":{"shape":"Dimensions"}, "Period":{"shape":"Period"}, "Unit":{"shape":"StandardUnit"}, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/docs-2.json index db2d6c0c4..535c701d9 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/docs-2.json @@ -2,17 +2,17 @@ "version": "2.0", "service": "

Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and the applications you run on AWS in real-time. You can use CloudWatch to collect and track metrics, which are the variables you want to measure for your resources and applications.

CloudWatch alarms send notifications or automatically make changes to the resources you are monitoring based on rules that you define. For example, you can monitor the CPU usage and disk reads and writes of your Amazon Elastic Compute Cloud (Amazon EC2) instances and then use this data to determine whether you should launch additional instances to handle increased load. You can also use this data to stop under-used instances to save money.

In addition to monitoring the built-in metrics that come with AWS, you can monitor your own custom metrics. With CloudWatch, you gain system-wide visibility into resource utilization, application performance, and operational health.

", "operations": { - "DeleteAlarms": "

Deletes all specified alarms. In the event of an error, no alarms are deleted.

", - "DescribeAlarmHistory": "

Retrieves history for the specified alarm. Filter alarms by date range or item type. If an alarm name is not specified, Amazon CloudWatch returns histories for all of the owner's alarms.

Amazon CloudWatch retains the history of an alarm for two weeks, whether or not you delete the alarm.

", - "DescribeAlarms": "

Retrieves alarms with the specified names. If no name is specified, all alarms for the user are returned. Alarms can be retrieved by using only a prefix for the alarm name, the alarm state, or a prefix for any action.

", - "DescribeAlarmsForMetric": "

Retrieves all alarms for a single metric. Specify a statistic, period, or unit to filter the set of alarms further.

", - "DisableAlarmActions": "

Disables actions for the specified alarms. When an alarm's actions are disabled the alarm's state may change, but none of the alarm's actions will execute.

", - "EnableAlarmActions": "

Enables actions for the specified alarms.

", - "GetMetricStatistics": "

Gets statistics for the specified metric.

The maximum number of data points that can be queried is 50,850, whereas the maximum number of data points returned from a single GetMetricStatistics request is 1,440. If you make a request that generates more than 1,440 data points, Amazon CloudWatch returns an error. In such a case, you can alter the request by narrowing the specified time range or increasing the specified period. A period can be as short as one minute (60 seconds) or as long as one day (86,400 seconds). Alternatively, you can make multiple requests across adjacent time ranges. GetMetricStatistics does not return the data in chronological order.

Amazon CloudWatch aggregates data points based on the length of the period that you specify. For example, if you request statistics with a one-minute granularity, Amazon CloudWatch aggregates data points with time stamps that fall within the same one-minute period. In such a case, the data points queried can greatly outnumber the data points returned.

The following examples show various statistics allowed by the data point query maximum of 50,850 when you call GetMetricStatistics on Amazon EC2 instances with detailed (one-minute) monitoring enabled:

  • Statistics for up to 400 instances for a span of one hour

  • Statistics for up to 35 instances over a span of 24 hours

  • Statistics for up to 2 instances over a span of 2 weeks

For information about the namespace, metric names, and dimensions that other Amazon Web Services products use to send metrics to CloudWatch, go to Amazon CloudWatch Metrics, Namespaces, and Dimensions Reference in the Amazon CloudWatch Developer Guide.

", - "ListMetrics": "

Returns a list of valid metrics stored for the AWS account owner. Returned metrics can be used with GetMetricStatistics to obtain statistical data for a given metric.

Up to 500 results are returned for any one call. To retrieve further results, use returned NextToken values with subsequent ListMetrics operations.

If you create a metric with PutMetricData, allow up to fifteen minutes for the metric to appear in calls to ListMetrics. Statistics about the metric, however, are available sooner using GetMetricStatistics.

", - "PutMetricAlarm": "

Creates or updates an alarm and associates it with the specified Amazon CloudWatch metric. Optionally, this operation can associate one or more Amazon SNS resources with the alarm.

When this operation creates an alarm, the alarm state is immediately set to INSUFFICIENT_DATA. The alarm is evaluated and its StateValue is set appropriately. Any actions associated with the StateValue are then executed.

When updating an existing alarm, its StateValue is left unchanged, but it completely overwrites the alarm's previous configuration.

If you are using an AWS Identity and Access Management (IAM) account to create or modify an alarm, you must have the following Amazon EC2 permissions:

  • ec2:DescribeInstanceStatus and ec2:DescribeInstances for all alarms on Amazon EC2 instance status metrics.

  • ec2:StopInstances for alarms with stop actions.

  • ec2:TerminateInstances for alarms with terminate actions.

  • ec2:DescribeInstanceRecoveryAttribute, and ec2:RecoverInstances for alarms with recover actions.

If you have read/write permissions for Amazon CloudWatch but not for Amazon EC2, you can still create an alarm but the stop or terminate actions won't be performed on the Amazon EC2 instance. However, if you are later granted permission to use the associated Amazon EC2 APIs, the alarm actions you created earlier will be performed. For more information about IAM permissions, see Permissions and Policies in Using IAM.

If you are using an IAM role (e.g., an Amazon EC2 instance profile), you cannot stop or terminate the instance using alarm actions. However, you can still see the alarm state and perform any other actions such as Amazon SNS notifications or Auto Scaling policies.

If you are using temporary security credentials granted using the AWS Security Token Service (AWS STS), you cannot stop or terminate an Amazon EC2 instance using alarm actions.

", - "PutMetricData": "

Publishes metric data points to Amazon CloudWatch. Amazon CloudWatch associates the data points with the specified metric. If the specified metric does not exist, Amazon CloudWatch creates the metric. When Amazon CloudWatch creates a metric, it can take up to fifteen minutes for the metric to appear in calls to ListMetrics.

Each PutMetricData request is limited to 8 KB in size for HTTP GET requests and is limited to 40 KB in size for HTTP POST requests.

Although the Value parameter accepts numbers of type Double, Amazon CloudWatch rejects values that are either too small or too large. Values must be in the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). In addition, special values (e.g., NaN, +Infinity, -Infinity) are not supported.

Data that is timestamped 24 hours or more in the past may take in excess of 48 hours to become available from submission time using GetMetricStatistics.

", - "SetAlarmState": "

Temporarily sets the state of an alarm for testing purposes. When the updated StateValue differs from the previous value, the action configured for the appropriate state is invoked. For example, if your alarm is configured to send an Amazon SNS message when an alarm is triggered, temporarily changing the alarm's state to ALARM sends an Amazon SNS message. The alarm returns to its actual state (often within seconds). Because the alarm state change happens very quickly, it is typically only visible in the alarm's History tab in the Amazon CloudWatch console or through DescribeAlarmHistory.

" + "DeleteAlarms": "

Deletes the specified alarms. In the event of an error, no alarms are deleted.

", + "DescribeAlarmHistory": "

Retrieves the history for the specified alarm. You can filter the results by date range or item type. If an alarm name is not specified, the histories for all alarms are returned.

Note that Amazon CloudWatch retains the history of an alarm even if you delete the alarm.

", + "DescribeAlarms": "

Retrieves the specified alarms. If no alarms are specified, all alarms are returned. Alarms can be retrieved by using only a prefix for the alarm name, the alarm state, or a prefix for any action.

", + "DescribeAlarmsForMetric": "

Retrieves the alarms for the specified metric. Specify a statistic, period, or unit to filter the results.

", + "DisableAlarmActions": "

Disables the actions for the specified alarms. When an alarm's actions are disabled, the alarm actions do not execute when the alarm state changes.

", + "EnableAlarmActions": "

Enables the actions for the specified alarms.

", + "GetMetricStatistics": "

Gets statistics for the specified metric.

Amazon CloudWatch retains metric data as follows:

  • Data points with a period of 60 seconds (1 minute) are available for 15 days

  • Data points with a period of 300 seconds (5 minute) are available for 63 days

  • Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 months)

Note that CloudWatch started retaining 5-minute and 1-hour metric data as of 9 July 2016.

The maximum number of data points returned from a single call is 1,440. If you request more than 1,440 data points, Amazon CloudWatch returns an error. To reduce the number of data points, you can narrow the specified time range and make multiple requests across adjacent time ranges, or you can increase the specified period. A period can be as short as one minute (60 seconds). Note that data points are not returned in chronological order.

Amazon CloudWatch aggregates data points based on the length of the period that you specify. For example, if you request statistics with a one-hour period, Amazon CloudWatch aggregates all data points with time stamps that fall within each one-hour period. Therefore, the number of values aggregated by CloudWatch is larger than the number of data points returned.

For a list of metrics and dimensions supported by AWS services, see the Amazon CloudWatch Metrics and Dimensions Reference in the Amazon CloudWatch User Guide.

", + "ListMetrics": "

List the specified metrics. You can use the returned metrics with GetMetricStatistics to obtain statistical data.

Up to 500 results are returned for any one call. To retrieve additional results, use the returned token with subsequent calls.

After you create a metric, allow up to fifteen minutes before the metric appears. Statistics about the metric, however, are available sooner using GetMetricStatistics.

", + "PutMetricAlarm": "

Creates or updates an alarm and associates it with the specified metric. Optionally, this operation can associate one or more Amazon SNS resources with the alarm.

When this operation creates an alarm, the alarm state is immediately set to INSUFFICIENT_DATA. The alarm is evaluated and its state is set appropriately. Any actions associated with the state are then executed.

When you update an existing alarm, its state is left unchanged, but the update completely overwrites the previous configuration of the alarm.

If you are an AWS Identity and Access Management (IAM) user, you must have Amazon EC2 permissions for some operations:

  • ec2:DescribeInstanceStatus and ec2:DescribeInstances for all alarms on EC2 instance status metrics

  • ec2:StopInstances for alarms with stop actions

  • ec2:TerminateInstances for alarms with terminate actions

  • ec2:DescribeInstanceRecoveryAttribute and ec2:RecoverInstances for alarms with recover actions

If you have read/write permissions for Amazon CloudWatch but not for Amazon EC2, you can still create an alarm, but the stop or terminate actions won't be performed. However, if you are later granted the required permissions, the alarm actions that you created earlier will be performed.

If you are using an IAM role (for example, an Amazon EC2 instance profile), you cannot stop or terminate the instance using alarm actions. However, you can still see the alarm state and perform any other actions such as Amazon SNS notifications or Auto Scaling policies.

If you are using temporary security credentials granted using the AWS Security Token Service (AWS STS), you cannot stop or terminate an Amazon EC2 instance using alarm actions.

Note that you must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role. After this IAM role is created, you can create stop, terminate, or reboot alarms using a command-line interface or an API.

", + "PutMetricData": "

Publishes metric data points to Amazon CloudWatch. Amazon CloudWatch associates the data points with the specified metric. If the specified metric does not exist, Amazon CloudWatch creates the metric. When Amazon CloudWatch creates a metric, it can take up to fifteen minutes for the metric to appear in calls to ListMetrics.

Each PutMetricData request is limited to 8 KB in size for HTTP GET requests and is limited to 40 KB in size for HTTP POST requests.

Although the Value parameter accepts numbers of type Double, Amazon CloudWatch rejects values that are either too small or too large. Values must be in the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). In addition, special values (e.g., NaN, +Infinity, -Infinity) are not supported.

Data points with time stamps from 24 hours ago or longer can take at least 48 hours to become available for GetMetricStatistics from the time they are submitted.

", + "SetAlarmState": "

Temporarily sets the state of an alarm for testing purposes. When the updated state differs from the previous value, the action configured for the appropriate state is invoked. For example, if your alarm is configured to send an Amazon SNS message when an alarm is triggered, temporarily changing the alarm state to ALARM sends an Amazon SNS message. The alarm returns to its actual state (often within seconds). Because the alarm state change happens very quickly, it is typically only visible in the alarm's History tab in the Amazon CloudWatch console or through DescribeAlarmHistory.

" }, "shapes": { "ActionPrefix": { @@ -24,8 +24,8 @@ "ActionsEnabled": { "base": null, "refs": { - "MetricAlarm$ActionsEnabled": "

Indicates whether actions should be executed during any changes to the alarm's state.

", - "PutMetricAlarmInput$ActionsEnabled": "

Indicates whether or not actions should be executed during any changes to the alarm's state.

" + "MetricAlarm$ActionsEnabled": "

Indicates whether actions should be executed during any changes to the alarm state.

", + "PutMetricAlarmInput$ActionsEnabled": "

Indicates whether actions should be executed during any changes to the alarm state.

" } }, "AlarmArn": { @@ -37,12 +37,12 @@ "AlarmDescription": { "base": null, "refs": { - "MetricAlarm$AlarmDescription": "

The description for the alarm.

", + "MetricAlarm$AlarmDescription": "

The description of the alarm.

", "PutMetricAlarmInput$AlarmDescription": "

The description for the alarm.

" } }, "AlarmHistoryItem": { - "base": "

The AlarmHistoryItem data type contains descriptive information about the history of a specific alarm. If you call DescribeAlarmHistory, Amazon CloudWatch returns this data type as part of the DescribeAlarmHistoryResult data type.

", + "base": "

Represents the history of a specific alarm.

", "refs": { "AlarmHistoryItems$member": null } @@ -50,7 +50,7 @@ "AlarmHistoryItems": { "base": null, "refs": { - "DescribeAlarmHistoryOutput$AlarmHistoryItems": "

A list of alarm histories in JSON format.

" + "DescribeAlarmHistoryOutput$AlarmHistoryItems": "

The alarm histories, in JSON format.

" } }, "AlarmName": { @@ -60,23 +60,23 @@ "AlarmNames$member": null, "DescribeAlarmHistoryInput$AlarmName": "

The name of the alarm.

", "MetricAlarm$AlarmName": "

The name of the alarm.

", - "PutMetricAlarmInput$AlarmName": "

The descriptive name for the alarm. This name must be unique within the user's AWS account

", - "SetAlarmStateInput$AlarmName": "

The descriptive name for the alarm. This name must be unique within the user's AWS account. The maximum length is 255 characters.

" + "PutMetricAlarmInput$AlarmName": "

The name for the alarm. This name must be unique within the AWS account.

", + "SetAlarmStateInput$AlarmName": "

The name for the alarm. This name must be unique within the AWS account. The maximum length is 255 characters.

" } }, "AlarmNamePrefix": { "base": null, "refs": { - "DescribeAlarmsInput$AlarmNamePrefix": "

The alarm name prefix. AlarmNames cannot be specified if this parameter is specified.

" + "DescribeAlarmsInput$AlarmNamePrefix": "

The alarm name prefix. You cannot specify AlarmNames if this parameter is specified.

" } }, "AlarmNames": { "base": null, "refs": { - "DeleteAlarmsInput$AlarmNames": "

A list of alarms to be deleted.

", - "DescribeAlarmsInput$AlarmNames": "

A list of alarm names to retrieve information for.

", - "DisableAlarmActionsInput$AlarmNames": "

The names of the alarms to disable actions for.

", - "EnableAlarmActionsInput$AlarmNames": "

The names of the alarms to enable actions for.

" + "DeleteAlarmsInput$AlarmNames": "

The alarms to be deleted.

", + "DescribeAlarmsInput$AlarmNames": "

The names of the alarms.

", + "DisableAlarmActionsInput$AlarmNames": "

The names of the alarms.

", + "EnableAlarmActionsInput$AlarmNames": "

The names of the alarms.

" } }, "AwsQueryErrorMessage": { @@ -90,12 +90,12 @@ "ComparisonOperator": { "base": null, "refs": { - "MetricAlarm$ComparisonOperator": "

The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand.

", - "PutMetricAlarmInput$ComparisonOperator": "

The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand.

" + "MetricAlarm$ComparisonOperator": "

The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.

", + "PutMetricAlarmInput$ComparisonOperator": "

The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.

" } }, "Datapoint": { - "base": "

The Datapoint data type encapsulates the statistical data that Amazon CloudWatch computes from metric data.

", + "base": "

Encapsulates the statistical data that Amazon CloudWatch computes from metric data.

", "refs": { "Datapoints$member": null } @@ -103,67 +103,74 @@ "DatapointValue": { "base": null, "refs": { - "Datapoint$SampleCount": "

The number of metric values that contributed to the aggregate value of this datapoint.

", - "Datapoint$Average": "

The average of metric values that correspond to the datapoint.

", - "Datapoint$Sum": "

The sum of metric values used for the datapoint.

", - "Datapoint$Minimum": "

The minimum metric value used for the datapoint.

", - "Datapoint$Maximum": "

The maximum of the metric value used for the datapoint.

", - "MetricDatum$Value": "

The value for the metric.

Although the Value parameter accepts numbers of type Double, Amazon CloudWatch rejects values that are either too small or too large. Values must be in the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). In addition, special values (e.g., NaN, +Infinity, -Infinity) are not supported.

", + "Datapoint$SampleCount": "

The number of metric values that contributed to the aggregate value of this data point.

", + "Datapoint$Average": "

The average of the metric values that correspond to the data point.

", + "Datapoint$Sum": "

The sum of the metric values for the data point.

", + "Datapoint$Minimum": "

The minimum metric value for the data point.

", + "Datapoint$Maximum": "

The maximum metric value for the data point.

", + "DatapointValueMap$value": null, + "MetricDatum$Value": "

The value for the metric.

Although the parameter accepts numbers of type Double, Amazon CloudWatch rejects values that are either too small or too large. Values must be in the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.

", "StatisticSet$SampleCount": "

The number of samples used for the statistic set.

", "StatisticSet$Sum": "

The sum of values for the sample set.

", "StatisticSet$Minimum": "

The minimum value of the sample set.

", "StatisticSet$Maximum": "

The maximum value of the sample set.

" } }, + "DatapointValueMap": { + "base": null, + "refs": { + "Datapoint$ExtendedStatistics": "

The percentile statistic for the data point.

" + } + }, "Datapoints": { "base": null, "refs": { - "GetMetricStatisticsOutput$Datapoints": "

The datapoints for the specified metric.

" + "GetMetricStatisticsOutput$Datapoints": "

The data points for the specified metric.

" } }, "DeleteAlarmsInput": { - "base": "

Describes the inputs for DeleteAlarms.

", + "base": null, "refs": { } }, "DescribeAlarmHistoryInput": { - "base": "

Describes the inputs for DescribeAlarmHistory.

", + "base": null, "refs": { } }, "DescribeAlarmHistoryOutput": { - "base": "

The output for DescribeAlarmHistory.

", + "base": null, "refs": { } }, "DescribeAlarmsForMetricInput": { - "base": "

Describes the inputs for DescribeAlarmsForMetric.

", + "base": null, "refs": { } }, "DescribeAlarmsForMetricOutput": { - "base": "

The output for DescribeAlarmsForMetric.

", + "base": null, "refs": { } }, "DescribeAlarmsInput": { - "base": "

Describes the inputs for DescribeAlarms.

", + "base": null, "refs": { } }, "DescribeAlarmsOutput": { - "base": "

The output for DescribeAlarms.

", + "base": null, "refs": { } }, "Dimension": { - "base": "

The Dimension data type further expands on the identity of a metric using a Name, Value pair.

For examples that use one or more dimensions, see PutMetricData.

", + "base": "

Expands the identity of a metric.

", "refs": { "Dimensions$member": null } }, "DimensionFilter": { - "base": "

The DimensionFilter data type is used to filter ListMetrics results.

", + "base": "

Represents filters for a dimension.

", "refs": { "DimensionFilters$member": null } @@ -171,7 +178,7 @@ "DimensionFilters": { "base": null, "refs": { - "ListMetricsInput$Dimensions": "

A list of dimensions to filter against.

" + "ListMetricsInput$Dimensions": "

The dimensions to filter against.

" } }, "DimensionName": { @@ -184,28 +191,28 @@ "DimensionValue": { "base": null, "refs": { - "Dimension$Value": "

The value representing the dimension measurement

", - "DimensionFilter$Value": "

The value of the dimension to be matched.

Specifying a Name without specifying a Value returns all values associated with that Name.

" + "Dimension$Value": "

The value representing the dimension measurement.

", + "DimensionFilter$Value": "

The value of the dimension to be matched.

" } }, "Dimensions": { "base": null, "refs": { - "DescribeAlarmsForMetricInput$Dimensions": "

The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.

", - "GetMetricStatisticsInput$Dimensions": "

A list of dimensions describing qualities of the metric.

", - "Metric$Dimensions": "

A list of dimensions associated with the metric.

", - "MetricAlarm$Dimensions": "

The list of dimensions associated with the alarm's associated metric.

", - "MetricDatum$Dimensions": "

A list of dimensions associated with the metric. Note, when using the Dimensions value in a query, you need to append .member.N to it (e.g., Dimensions.member.N).

", - "PutMetricAlarmInput$Dimensions": "

The dimensions for the alarm's associated metric.

" + "DescribeAlarmsForMetricInput$Dimensions": "

The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.

", + "GetMetricStatisticsInput$Dimensions": "

The dimensions. CloudWatch treats each unique combination of dimensions as a separate metric. You can't retrieve statistics using combinations of dimensions that were not specially published. You must specify the same dimensions that were used when the metrics were created. For an example, see Dimension Combinations in the Amazon CloudWatch User Guide.

", + "Metric$Dimensions": "

The dimensions for the metric.

", + "MetricAlarm$Dimensions": "

The dimensions for the metric associated with the alarm.

", + "MetricDatum$Dimensions": "

The dimensions associated with the metric.

", + "PutMetricAlarmInput$Dimensions": "

The dimensions for the metric associated with the alarm.

" } }, "DisableAlarmActionsInput": { - "base": "

", + "base": null, "refs": { } }, "EnableAlarmActionsInput": { - "base": "

Describes the inputs for EnableAlarmActions.

", + "base": null, "refs": { } }, @@ -225,6 +232,22 @@ "PutMetricAlarmInput$EvaluationPeriods": "

The number of periods over which data is compared to the specified threshold.

" } }, + "ExtendedStatistic": { + "base": null, + "refs": { + "DatapointValueMap$key": null, + "DescribeAlarmsForMetricInput$ExtendedStatistic": "

The percentile statistic for the metric. Specify a value between p0.0 and p100.

", + "ExtendedStatistics$member": null, + "MetricAlarm$ExtendedStatistic": "

The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.

", + "PutMetricAlarmInput$ExtendedStatistic": "

The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.

" + } + }, + "ExtendedStatistics": { + "base": null, + "refs": { + "GetMetricStatisticsInput$ExtendedStatistics": "

The percentile statistics. Specify values between p0.0 and p100.

" + } + }, "FaultDescription": { "base": null, "refs": { @@ -232,19 +255,19 @@ } }, "GetMetricStatisticsInput": { - "base": "

Describes the inputs for GetMetricStatistics.

", + "base": null, "refs": { } }, "GetMetricStatisticsOutput": { - "base": "

The output for GetMetricStatistics.

", + "base": null, "refs": { } }, "HistoryData": { "base": null, "refs": { - "AlarmHistoryItem$HistoryData": "

Machine-readable data about the alarm in JSON format.

" + "AlarmHistoryItem$HistoryData": "

Data about the alarm, in JSON format.

" } }, "HistoryItemType": { @@ -257,11 +280,11 @@ "HistorySummary": { "base": null, "refs": { - "AlarmHistoryItem$HistorySummary": "

A human-readable summary of the alarm history.

" + "AlarmHistoryItem$HistorySummary": "

A summary of the alarm history, in text format.

" } }, "InternalServiceFault": { - "base": "

Indicates that the request processing has failed due to some unknown error, exception, or failure.

", + "base": "

Request processing has failed due to some unknown error, exception, or failure.

", "refs": { } }, @@ -276,12 +299,12 @@ } }, "InvalidParameterCombinationException": { - "base": "

Parameters that must not be used together were used together.

", + "base": "

Parameters that cannot be used together were used together.

", "refs": { } }, "InvalidParameterValueException": { - "base": "

Bad or out-of-range value was supplied for the input parameter.

", + "base": "

The value of an input parameter is bad or out-of-range.

", "refs": { } }, @@ -291,12 +314,12 @@ } }, "ListMetricsInput": { - "base": "

Describes the inputs for ListMetrics.

", + "base": null, "refs": { } }, "ListMetricsOutput": { - "base": "

The output for ListMetrics.

", + "base": null, "refs": { } }, @@ -308,13 +331,13 @@ } }, "Metric": { - "base": "

The Metric data type contains information about a specific metric. If you call ListMetrics, Amazon CloudWatch returns information contained by this data type.

The example in the Examples section publishes two metrics named buffers and latency. Both metrics are in the examples namespace. Both metrics have two dimensions, InstanceID and InstanceType.

", + "base": "

Represents a specific metric.

", "refs": { "Metrics$member": null } }, "MetricAlarm": { - "base": "

The MetricAlarm data type represents an alarm. You can use PutMetricAlarm to create or update an alarm.

", + "base": "

Represents an alarm.

", "refs": { "MetricAlarms$member": null } @@ -322,18 +345,18 @@ "MetricAlarms": { "base": null, "refs": { - "DescribeAlarmsForMetricOutput$MetricAlarms": "

A list of information for each alarm with the specified metric.

", - "DescribeAlarmsOutput$MetricAlarms": "

A list of information for the specified alarms.

" + "DescribeAlarmsForMetricOutput$MetricAlarms": "

The information for each alarm with the specified metric.

", + "DescribeAlarmsOutput$MetricAlarms": "

The information for the specified alarms.

" } }, "MetricData": { "base": null, "refs": { - "PutMetricDataInput$MetricData": "

A list of data describing the metric.

" + "PutMetricDataInput$MetricData": "

The data for the metric.

" } }, "MetricDatum": { - "base": "

The MetricDatum data type encapsulates the information sent with PutMetricData to either create a new metric or add new values to be aggregated into an existing metric.

", + "base": "

Encapsulates the information sent to either create a metric or add new values to be aggregated into an existing metric.

", "refs": { "MetricData$member": null } @@ -341,7 +364,7 @@ "MetricLabel": { "base": null, "refs": { - "GetMetricStatisticsOutput$Label": "

A label describing the specified metric.

" + "GetMetricStatisticsOutput$Label": "

A label for the specified metric.

" } }, "MetricName": { @@ -351,19 +374,19 @@ "GetMetricStatisticsInput$MetricName": "

The name of the metric, with or without spaces.

", "ListMetricsInput$MetricName": "

The name of the metric to filter against.

", "Metric$MetricName": "

The name of the metric.

", - "MetricAlarm$MetricName": "

The name of the alarm's metric.

", + "MetricAlarm$MetricName": "

The name of the metric associated with the alarm.

", "MetricDatum$MetricName": "

The name of the metric.

", - "PutMetricAlarmInput$MetricName": "

The name for the alarm's associated metric.

" + "PutMetricAlarmInput$MetricName": "

The name for the metric associated with the alarm.

" } }, "Metrics": { "base": null, "refs": { - "ListMetricsOutput$Metrics": "

A list of metrics used to generate statistics for an AWS account.

" + "ListMetricsOutput$Metrics": "

The metrics.

" } }, "MissingRequiredParameterException": { - "base": "

An input parameter that is mandatory for processing the request is not supplied.

", + "base": "

An input parameter that is required is missing.

", "refs": { } }, @@ -374,50 +397,50 @@ "GetMetricStatisticsInput$Namespace": "

The namespace of the metric, with or without spaces.

", "ListMetricsInput$Namespace": "

The namespace to filter against.

", "Metric$Namespace": "

The namespace of the metric.

", - "MetricAlarm$Namespace": "

The namespace of alarm's associated metric.

", - "PutMetricAlarmInput$Namespace": "

The namespace for the alarm's associated metric.

", - "PutMetricDataInput$Namespace": "

The namespace for the metric data.

You cannot specify a namespace that begins with \"AWS/\". Namespaces that begin with \"AWS/\" are reserved for other Amazon Web Services products that send metrics to Amazon CloudWatch.

" + "MetricAlarm$Namespace": "

The namespace of the metric associated with the alarm.

", + "PutMetricAlarmInput$Namespace": "

The namespace for the metric associated with the alarm.

", + "PutMetricDataInput$Namespace": "

The namespace for the metric data.

You cannot specify a namespace that begins with \"AWS/\". Namespaces that begin with \"AWS/\" are reserved for use by Amazon Web Services products.

" } }, "NextToken": { "base": null, "refs": { "DescribeAlarmHistoryInput$NextToken": "

The token returned by a previous call to indicate that there is more data available.

", - "DescribeAlarmHistoryOutput$NextToken": "

A string that marks the start of the next batch of returned results.

", + "DescribeAlarmHistoryOutput$NextToken": "

The token that marks the start of the next batch of returned results.

", "DescribeAlarmsInput$NextToken": "

The token returned by a previous call to indicate that there is more data available.

", - "DescribeAlarmsOutput$NextToken": "

A string that marks the start of the next batch of returned results.

", + "DescribeAlarmsOutput$NextToken": "

The token that marks the start of the next batch of returned results.

", "ListMetricsInput$NextToken": "

The token returned by a previous call to indicate that there is more data available.

", - "ListMetricsOutput$NextToken": "

A string that marks the start of the next batch of returned results.

" + "ListMetricsOutput$NextToken": "

The token that marks the start of the next batch of returned results.

" } }, "Period": { "base": null, "refs": { - "DescribeAlarmsForMetricInput$Period": "

The period in seconds over which the statistic is applied.

", - "GetMetricStatisticsInput$Period": "

The granularity, in seconds, of the returned datapoints. A Period can be as short as one minute (60 seconds) or as long as one day (86,400 seconds), and must be a multiple of 60. The default value is 60.

", - "MetricAlarm$Period": "

The period in seconds over which the statistic is applied.

", - "PutMetricAlarmInput$Period": "

The period in seconds over which the specified statistic is applied.

" + "DescribeAlarmsForMetricInput$Period": "

The period, in seconds, over which the statistic is applied.

", + "GetMetricStatisticsInput$Period": "

The granularity, in seconds, of the returned data points. A period can be as short as one minute (60 seconds) and must be a multiple of 60. The default value is 60.

If the StartTime parameter specifies a time stamp that is greater than 15 days ago, you must specify the period as follows or no data points in that time range is returned:

  • Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).

  • Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).

", + "MetricAlarm$Period": "

The period, in seconds, over which the statistic is applied.

", + "PutMetricAlarmInput$Period": "

The period, in seconds, over which the specified statistic is applied.

" } }, "PutMetricAlarmInput": { - "base": "

Describes the inputs for PutMetricAlarm.

", + "base": null, "refs": { } }, "PutMetricDataInput": { - "base": "

Describes the inputs for PutMetricData.

", + "base": null, "refs": { } }, "ResourceList": { "base": null, "refs": { - "MetricAlarm$OKActions": "

The list of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).

", - "MetricAlarm$AlarmActions": "

The list of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).

", - "MetricAlarm$InsufficientDataActions": "

The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).

The current WSDL lists this attribute as UnknownActions.

", - "PutMetricAlarmInput$OKActions": "

The list of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).

Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover

Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0

Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.

", - "PutMetricAlarmInput$AlarmActions": "

The list of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).

Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover

Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0

Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.

", - "PutMetricAlarmInput$InsufficientDataActions": "

The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).

Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover

Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0

Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.

" + "MetricAlarm$OKActions": "

The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).

", + "MetricAlarm$AlarmActions": "

The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).

", + "MetricAlarm$InsufficientDataActions": "

The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).

", + "PutMetricAlarmInput$OKActions": "

The actions to execute when this alarm transitions to an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).

Valid Values: arn:aws:automate:region:ec2:stop | arn:aws:automate:region:ec2:terminate | arn:aws:automate:region:ec2:recover

Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0

", + "PutMetricAlarmInput$AlarmActions": "

The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).

Valid Values: arn:aws:automate:region:ec2:stop | arn:aws:automate:region:ec2:terminate | arn:aws:automate:region:ec2:recover

Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0

", + "PutMetricAlarmInput$InsufficientDataActions": "

The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).

Valid Values: arn:aws:automate:region:ec2:stop | arn:aws:automate:region:ec2:terminate | arn:aws:automate:region:ec2:recover

Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0

" } }, "ResourceName": { @@ -432,33 +455,33 @@ } }, "SetAlarmStateInput": { - "base": "

Describes the inputs for SetAlarmState.

", + "base": null, "refs": { } }, "StandardUnit": { "base": null, "refs": { - "Datapoint$Unit": "

The standard unit used for the datapoint.

", + "Datapoint$Unit": "

The standard unit for the data point.

", "DescribeAlarmsForMetricInput$Unit": "

The unit for the metric.

", - "GetMetricStatisticsInput$Unit": "

The specific unit for a given metric. Metrics may be reported in multiple units. Not supplying a unit results in all units being returned. If the metric only ever reports one unit, specifying a unit will have no effect.

", - "MetricAlarm$Unit": "

The unit of the alarm's associated metric.

", + "GetMetricStatisticsInput$Unit": "

The unit for a given metric. Metrics may be reported in multiple units. Not supplying a unit results in all units being returned. If the metric only ever reports one unit, specifying a unit has no effect.

", + "MetricAlarm$Unit": "

The unit of the metric associated with the alarm.

", "MetricDatum$Unit": "

The unit of the metric.

", - "PutMetricAlarmInput$Unit": "

The statistic's unit of measure. For example, the units for the Amazon EC2 NetworkIn metric are Bytes because NetworkIn tracks the number of bytes that an instance receives on all network interfaces. You can also specify a unit when you create a custom metric. Units help provide conceptual meaning to your data. Metric data points that specify a unit of measure, such as Percent, are aggregated separately.

Note: If you specify a unit, you must use a unit that is appropriate for the metric. Otherwise, this can cause an Amazon CloudWatch alarm to get stuck in the INSUFFICIENT DATA state.

" + "PutMetricAlarmInput$Unit": "

The unit of measure for the statistic. For example, the units for the Amazon EC2 NetworkIn metric are Bytes because NetworkIn tracks the number of bytes that an instance receives on all network interfaces. You can also specify a unit when you create a custom metric. Units help provide conceptual meaning to your data. Metric data points that specify a unit of measure, such as Percent, are aggregated separately.

If you specify a unit, you must use a unit that is appropriate for the metric. Otherwise, the Amazon CloudWatch alarm can get stuck in the INSUFFICIENT DATA state.

" } }, "StateReason": { "base": null, "refs": { - "MetricAlarm$StateReason": "

A human-readable explanation for the alarm's state.

", - "SetAlarmStateInput$StateReason": "

The reason that this alarm is set to this specific state (in human-readable text format)

" + "MetricAlarm$StateReason": "

An explanation for the alarm state, in text format.

", + "SetAlarmStateInput$StateReason": "

The reason that this alarm is set to this specific state, in text format.

" } }, "StateReasonData": { "base": null, "refs": { - "MetricAlarm$StateReasonData": "

An explanation for the alarm's state in machine-readable JSON format

", - "SetAlarmStateInput$StateReasonData": "

The reason that this alarm is set to this specific state (in machine-readable JSON format)

" + "MetricAlarm$StateReasonData": "

An explanation for the alarm state, in JSON format.

", + "SetAlarmStateInput$StateReasonData": "

The reason that this alarm is set to this specific state, in JSON format.

" } }, "StateValue": { @@ -472,28 +495,28 @@ "Statistic": { "base": null, "refs": { - "DescribeAlarmsForMetricInput$Statistic": "

The statistic for the metric.

", - "MetricAlarm$Statistic": "

The statistic to apply to the alarm's associated metric.

", - "PutMetricAlarmInput$Statistic": "

The statistic to apply to the alarm's associated metric.

", + "DescribeAlarmsForMetricInput$Statistic": "

The statistic for the metric, other than percentiles. For percentile statistics, use ExtendedStatistics.

", + "MetricAlarm$Statistic": "

The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use ExtendedStatistic.

", + "PutMetricAlarmInput$Statistic": "

The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use ExtendedStatistic.

", "Statistics$member": null } }, "StatisticSet": { - "base": "

The StatisticSet data type describes the StatisticValues component of MetricDatum, and represents a set of statistics that describes a specific metric.

", + "base": "

Represents a set of statistics that describes a specific metric.

", "refs": { - "MetricDatum$StatisticValues": "

A set of statistical values describing the metric.

" + "MetricDatum$StatisticValues": "

The statistical values for the metric.

" } }, "Statistics": { "base": null, "refs": { - "GetMetricStatisticsInput$Statistics": "

The metric statistics to return. For information about specific statistics returned by GetMetricStatistics, see Statistics in the Amazon CloudWatch Developer Guide.

" + "GetMetricStatisticsInput$Statistics": "

The metric statistics, other than percentile. For percentile statistics, use ExtendedStatistic.

" } }, "Threshold": { "base": null, "refs": { - "MetricAlarm$Threshold": "

The value against which the specified statistic is compared.

", + "MetricAlarm$Threshold": "

The value to compare with the specified statistic.

", "PutMetricAlarmInput$Threshold": "

The value against which the specified statistic is compared.

" } }, @@ -501,14 +524,14 @@ "base": null, "refs": { "AlarmHistoryItem$Timestamp": "

The time stamp for the alarm history item.

", - "Datapoint$Timestamp": "

The time stamp used for the datapoint.

", + "Datapoint$Timestamp": "

The time stamp used for the data point.

", "DescribeAlarmHistoryInput$StartDate": "

The starting date to retrieve alarm history.

", "DescribeAlarmHistoryInput$EndDate": "

The ending date to retrieve alarm history.

", - "GetMetricStatisticsInput$StartTime": "

The time stamp to use for determining the first datapoint to return. The value specified is inclusive; results include datapoints with the time stamp specified. The time stamp must be in ISO 8601 UTC format (e.g., 2014-09-03T23:00:00Z).

The specified start time is rounded down to the nearest value. Datapoints are returned for start times up to two weeks in the past. Specified start times that are more than two weeks in the past will not return datapoints for metrics that are older than two weeks.

Data that is timestamped 24 hours or more in the past may take in excess of 48 hours to become available from submission time using GetMetricStatistics.

", - "GetMetricStatisticsInput$EndTime": "

The time stamp to use for determining the last datapoint to return. The value specified is exclusive; results will include datapoints up to the time stamp specified. The time stamp must be in ISO 8601 UTC format (e.g., 2014-09-03T23:00:00Z).

", + "GetMetricStatisticsInput$StartTime": "

The time stamp that determines the first data point to return. Note that start times are evaluated relative to the time that CloudWatch receives the request.

The value specified is inclusive; results include data points with the specified time stamp. The time stamp must be in ISO 8601 UTC format (for example, 2016-10-03T23:00:00Z).

CloudWatch rounds the specified time stamp as follows:

  • Start time less than 15 days ago - Round down to the nearest whole minute. For example, 12:32:34 is rounded down to 12:32:00.

  • Start time between 15 and 63 days ago - Round down to the nearest 5-minute clock interval. For example, 12:32:34 is rounded down to 12:30:00.

  • Start time greater than 63 days ago - Round down to the nearest 1-hour clock interval. For example, 12:32:34 is rounded down to 12:00:00.

", + "GetMetricStatisticsInput$EndTime": "

The time stamp that determines the last data point to return.

The value specified is exclusive; results will include data points up to the specified time stamp. The time stamp must be in ISO 8601 UTC format (for example, 2016-10-10T23:00:00Z).

", "MetricAlarm$AlarmConfigurationUpdatedTimestamp": "

The time stamp of the last update to the alarm configuration.

", - "MetricAlarm$StateUpdatedTimestamp": "

The time stamp of the last update to the alarm's state.

", - "MetricDatum$Timestamp": "

The time stamp used for the metric in ISO 8601 Universal Coordinated Time (UTC) format. If not specified, the default value is set to the time the metric data was received.

" + "MetricAlarm$StateUpdatedTimestamp": "

The time stamp of the last update to the alarm state.

", + "MetricDatum$Timestamp": "

The time the metric data was received, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.

" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/mturk-requester/2017-01-17/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/mturk-requester/2017-01-17/api-2.json new file mode 100644 index 000000000..2751c756f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/mturk-requester/2017-01-17/api-2.json @@ -0,0 +1,1665 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2017-01-17", + "endpointPrefix":"mturk-requester", + "jsonVersion":"1.1", + "protocol":"json", + "serviceAbbreviation":"Amazon MTurk", + "serviceFullName":"Amazon Mechanical Turk", + "signatureVersion":"v4", + "targetPrefix":"MTurkRequesterServiceV20170117", + "uid":"mturk-requester-2017-01-17" + }, + "operations":{ + "AcceptQualificationRequest":{ + "name":"AcceptQualificationRequest", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AcceptQualificationRequestRequest"}, + "output":{"shape":"AcceptQualificationRequestResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ] + }, + "ApproveAssignment":{ + "name":"ApproveAssignment", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ApproveAssignmentRequest"}, + "output":{"shape":"ApproveAssignmentResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "AssociateQualificationWithWorker":{ + "name":"AssociateQualificationWithWorker", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateQualificationWithWorkerRequest"}, + "output":{"shape":"AssociateQualificationWithWorkerResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ] + }, + "CreateAdditionalAssignmentsForHIT":{ + "name":"CreateAdditionalAssignmentsForHIT", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateAdditionalAssignmentsForHITRequest"}, + "output":{"shape":"CreateAdditionalAssignmentsForHITResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ] + }, + "CreateHIT":{ + "name":"CreateHIT", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateHITRequest"}, + "output":{"shape":"CreateHITResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ] + }, + "CreateHITType":{ + "name":"CreateHITType", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateHITTypeRequest"}, + "output":{"shape":"CreateHITTypeResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "CreateHITWithHITType":{ + "name":"CreateHITWithHITType", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateHITWithHITTypeRequest"}, + "output":{"shape":"CreateHITWithHITTypeResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ] + }, + "CreateQualificationType":{ + "name":"CreateQualificationType", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateQualificationTypeRequest"}, + "output":{"shape":"CreateQualificationTypeResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ] + }, + "CreateWorkerBlock":{ + "name":"CreateWorkerBlock", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateWorkerBlockRequest"}, + "output":{"shape":"CreateWorkerBlockResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ] + }, + "DeleteHIT":{ + "name":"DeleteHIT", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteHITRequest"}, + "output":{"shape":"DeleteHITResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "DeleteQualificationType":{ + "name":"DeleteQualificationType", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteQualificationTypeRequest"}, + "output":{"shape":"DeleteQualificationTypeResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "DeleteWorkerBlock":{ + "name":"DeleteWorkerBlock", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteWorkerBlockRequest"}, + "output":{"shape":"DeleteWorkerBlockResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "DisassociateQualificationFromWorker":{ + "name":"DisassociateQualificationFromWorker", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociateQualificationFromWorkerRequest"}, + "output":{"shape":"DisassociateQualificationFromWorkerResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ] + }, + "GetAccountBalance":{ + "name":"GetAccountBalance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetAccountBalanceRequest"}, + "output":{"shape":"GetAccountBalanceResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "GetAssignment":{ + "name":"GetAssignment", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetAssignmentRequest"}, + "output":{"shape":"GetAssignmentResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "GetFileUploadURL":{ + "name":"GetFileUploadURL", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetFileUploadURLRequest"}, + "output":{"shape":"GetFileUploadURLResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "GetHIT":{ + "name":"GetHIT", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetHITRequest"}, + "output":{"shape":"GetHITResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "GetQualificationScore":{ + "name":"GetQualificationScore", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetQualificationScoreRequest"}, + "output":{"shape":"GetQualificationScoreResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "GetQualificationType":{ + "name":"GetQualificationType", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetQualificationTypeRequest"}, + "output":{"shape":"GetQualificationTypeResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "ListAssignmentsForHIT":{ + "name":"ListAssignmentsForHIT", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAssignmentsForHITRequest"}, + "output":{"shape":"ListAssignmentsForHITResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "ListBonusPayments":{ + "name":"ListBonusPayments", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListBonusPaymentsRequest"}, + "output":{"shape":"ListBonusPaymentsResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "ListHITs":{ + "name":"ListHITs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListHITsRequest"}, + "output":{"shape":"ListHITsResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "ListHITsForQualificationType":{ + "name":"ListHITsForQualificationType", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListHITsForQualificationTypeRequest"}, + "output":{"shape":"ListHITsForQualificationTypeResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "ListQualificationRequests":{ + "name":"ListQualificationRequests", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListQualificationRequestsRequest"}, + "output":{"shape":"ListQualificationRequestsResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "ListQualificationTypes":{ + "name":"ListQualificationTypes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListQualificationTypesRequest"}, + "output":{"shape":"ListQualificationTypesResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "ListReviewPolicyResultsForHIT":{ + "name":"ListReviewPolicyResultsForHIT", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListReviewPolicyResultsForHITRequest"}, + "output":{"shape":"ListReviewPolicyResultsForHITResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "ListReviewableHITs":{ + "name":"ListReviewableHITs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListReviewableHITsRequest"}, + "output":{"shape":"ListReviewableHITsResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "ListWorkerBlocks":{ + "name":"ListWorkerBlocks", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListWorkerBlocksRequest"}, + "output":{"shape":"ListWorkerBlocksResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "ListWorkersWithQualificationType":{ + "name":"ListWorkersWithQualificationType", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListWorkersWithQualificationTypeRequest"}, + "output":{"shape":"ListWorkersWithQualificationTypeResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "NotifyWorkers":{ + "name":"NotifyWorkers", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"NotifyWorkersRequest"}, + "output":{"shape":"NotifyWorkersResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ] + }, + "RejectAssignment":{ + "name":"RejectAssignment", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RejectAssignmentRequest"}, + "output":{"shape":"RejectAssignmentResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "RejectQualificationRequest":{ + "name":"RejectQualificationRequest", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RejectQualificationRequestRequest"}, + "output":{"shape":"RejectQualificationRequestResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ] + }, + "SendBonus":{ + "name":"SendBonus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"SendBonusRequest"}, + "output":{"shape":"SendBonusResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ] + }, + "SendTestEventNotification":{ + "name":"SendTestEventNotification", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"SendTestEventNotificationRequest"}, + "output":{"shape":"SendTestEventNotificationResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ] + }, + "UpdateExpirationForHIT":{ + "name":"UpdateExpirationForHIT", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateExpirationForHITRequest"}, + "output":{"shape":"UpdateExpirationForHITResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "UpdateHITReviewStatus":{ + "name":"UpdateHITReviewStatus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateHITReviewStatusRequest"}, + "output":{"shape":"UpdateHITReviewStatusResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "UpdateHITTypeOfHIT":{ + "name":"UpdateHITTypeOfHIT", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateHITTypeOfHITRequest"}, + "output":{"shape":"UpdateHITTypeOfHITResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "UpdateNotificationSettings":{ + "name":"UpdateNotificationSettings", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateNotificationSettingsRequest"}, + "output":{"shape":"UpdateNotificationSettingsResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ], + "idempotent":true + }, + "UpdateQualificationType":{ + "name":"UpdateQualificationType", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateQualificationTypeRequest"}, + "output":{"shape":"UpdateQualificationTypeResponse"}, + "errors":[ + {"shape":"ServiceFault"}, + {"shape":"RequestError"} + ] + } + }, + "shapes":{ + "AcceptQualificationRequestRequest":{ + "type":"structure", + "required":["QualificationRequestId"], + "members":{ + "QualificationRequestId":{"shape":"String"}, + "IntegerValue":{"shape":"Integer"} + } + }, + "AcceptQualificationRequestResponse":{ + "type":"structure", + "members":{ + } + }, + "ApproveAssignmentRequest":{ + "type":"structure", + "required":["AssignmentId"], + "members":{ + "AssignmentId":{"shape":"EntityId"}, + "RequesterFeedback":{"shape":"String"}, + "OverrideRejection":{"shape":"Boolean"} + } + }, + "ApproveAssignmentResponse":{ + "type":"structure", + "members":{ + } + }, + "Assignment":{ + "type":"structure", + "members":{ + "AssignmentId":{"shape":"EntityId"}, + "WorkerId":{"shape":"CustomerId"}, + "HITId":{"shape":"EntityId"}, + "AssignmentStatus":{"shape":"AssignmentStatus"}, + "AutoApprovalTime":{"shape":"Timestamp"}, + "AcceptTime":{"shape":"Timestamp"}, + "SubmitTime":{"shape":"Timestamp"}, + "ApprovalTime":{"shape":"Timestamp"}, + "RejectionTime":{"shape":"Timestamp"}, + "Deadline":{"shape":"Timestamp"}, + "Answer":{"shape":"String"}, + "RequesterFeedback":{"shape":"String"} + } + }, + "AssignmentList":{ + "type":"list", + "member":{"shape":"Assignment"} + }, + "AssignmentStatus":{ + "type":"string", + "enum":[ + "Submitted", + "Approved", + "Rejected" + ] + }, + "AssignmentStatusList":{ + "type":"list", + "member":{"shape":"AssignmentStatus"} + }, + "AssociateQualificationWithWorkerRequest":{ + "type":"structure", + "required":[ + "QualificationTypeId", + "WorkerId" + ], + "members":{ + "QualificationTypeId":{"shape":"EntityId"}, + "WorkerId":{"shape":"CustomerId"}, + "IntegerValue":{"shape":"Integer"}, + "SendNotification":{"shape":"Boolean"} + } + }, + "AssociateQualificationWithWorkerResponse":{ + "type":"structure", + "members":{ + } + }, + "BonusPayment":{ + "type":"structure", + "members":{ + "WorkerId":{"shape":"CustomerId"}, + "BonusAmount":{"shape":"NumericValue"}, + "AssignmentId":{"shape":"EntityId"}, + "Reason":{"shape":"String"}, + "GrantTime":{"shape":"Timestamp"} + } + }, + "BonusPaymentList":{ + "type":"list", + "member":{"shape":"BonusPayment"} + }, + "Boolean":{"type":"boolean"}, + "Comparator":{ + "type":"string", + "enum":[ + "LessThan", + "LessThanOrEqualTo", + "GreaterThan", + "GreaterThanOrEqualTo", + "EqualTo", + "NotEqualTo", + "Exists", + "DoesNotExist", + "In", + "NotIn" + ] + }, + "CountryParameters":{ + "type":"string", + "max":2, + "min":2 + }, + "CreateAdditionalAssignmentsForHITRequest":{ + "type":"structure", + "required":["HITId"], + "members":{ + "HITId":{"shape":"EntityId"}, + "NumberOfAdditionalAssignments":{"shape":"Integer"}, + "UniqueRequestToken":{"shape":"IdempotencyToken"} + } + }, + "CreateAdditionalAssignmentsForHITResponse":{ + "type":"structure", + "members":{ + } + }, + "CreateHITRequest":{ + "type":"structure", + "required":[ + "LifetimeInSeconds", + "AssignmentDurationInSeconds", + "Reward", + "Title", + "Description" + ], + "members":{ + "MaxAssignments":{"shape":"Integer"}, + "AutoApprovalDelayInSeconds":{"shape":"Long"}, + "LifetimeInSeconds":{"shape":"Long"}, + "AssignmentDurationInSeconds":{"shape":"Long"}, + "Reward":{"shape":"NumericValue"}, + "Title":{"shape":"String"}, + "Keywords":{"shape":"String"}, + "Description":{"shape":"String"}, + "Question":{"shape":"String"}, + "RequesterAnnotation":{"shape":"String"}, + "QualificationRequirements":{"shape":"QualificationRequirementList"}, + "UniqueRequestToken":{"shape":"IdempotencyToken"}, + "AssignmentReviewPolicy":{"shape":"ReviewPolicy"}, + "HITReviewPolicy":{"shape":"ReviewPolicy"}, + "HITLayoutId":{"shape":"EntityId"}, + "HITLayoutParameters":{"shape":"HITLayoutParameterList"} + } + }, + "CreateHITResponse":{ + "type":"structure", + "members":{ + "HIT":{"shape":"HIT"} + } + }, + "CreateHITTypeRequest":{ + "type":"structure", + "required":[ + "AssignmentDurationInSeconds", + "Reward", + "Title", + "Description" + ], + "members":{ + "AutoApprovalDelayInSeconds":{"shape":"Long"}, + "AssignmentDurationInSeconds":{"shape":"Long"}, + "Reward":{"shape":"NumericValue"}, + "Title":{"shape":"String"}, + "Keywords":{"shape":"String"}, + "Description":{"shape":"String"}, + "QualificationRequirements":{"shape":"QualificationRequirementList"} + } + }, + "CreateHITTypeResponse":{ + "type":"structure", + "members":{ + "HITTypeId":{"shape":"EntityId"} + } + }, + "CreateHITWithHITTypeRequest":{ + "type":"structure", + "required":[ + "HITTypeId", + "LifetimeInSeconds" + ], + "members":{ + "HITTypeId":{"shape":"EntityId"}, + "MaxAssignments":{"shape":"Integer"}, + "LifetimeInSeconds":{"shape":"Long"}, + "Question":{"shape":"String"}, + "RequesterAnnotation":{"shape":"String"}, + "UniqueRequestToken":{"shape":"IdempotencyToken"}, + "AssignmentReviewPolicy":{"shape":"ReviewPolicy"}, + "HITReviewPolicy":{"shape":"ReviewPolicy"}, + "HITLayoutId":{"shape":"EntityId"}, + "HITLayoutParameters":{"shape":"HITLayoutParameterList"} + } + }, + "CreateHITWithHITTypeResponse":{ + "type":"structure", + "members":{ + "HIT":{"shape":"HIT"} + } + }, + "CreateQualificationTypeRequest":{ + "type":"structure", + "required":[ + "Name", + "Description", + "QualificationTypeStatus" + ], + "members":{ + "Name":{"shape":"String"}, + "Keywords":{"shape":"String"}, + "Description":{"shape":"String"}, + "QualificationTypeStatus":{"shape":"QualificationTypeStatus"}, + "RetryDelayInSeconds":{"shape":"Long"}, + "Test":{"shape":"String"}, + "AnswerKey":{"shape":"String"}, + "TestDurationInSeconds":{"shape":"Long"}, + "AutoGranted":{"shape":"Boolean"}, + "AutoGrantedValue":{"shape":"Integer"} + } + }, + "CreateQualificationTypeResponse":{ + "type":"structure", + "members":{ + "QualificationType":{"shape":"QualificationType"} + } + }, + "CreateWorkerBlockRequest":{ + "type":"structure", + "required":[ + "WorkerId", + "Reason" + ], + "members":{ + "WorkerId":{"shape":"CustomerId"}, + "Reason":{"shape":"String"} + } + }, + "CreateWorkerBlockResponse":{ + "type":"structure", + "members":{ + } + }, + "CustomerId":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^A[A-Z0-9]+$" + }, + "CustomerIdList":{ + "type":"list", + "member":{"shape":"CustomerId"} + }, + "DeleteHITRequest":{ + "type":"structure", + "required":["HITId"], + "members":{ + "HITId":{"shape":"EntityId"} + } + }, + "DeleteHITResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteQualificationTypeRequest":{ + "type":"structure", + "required":["QualificationTypeId"], + "members":{ + "QualificationTypeId":{"shape":"EntityId"} + } + }, + "DeleteQualificationTypeResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteWorkerBlockRequest":{ + "type":"structure", + "required":["WorkerId"], + "members":{ + "WorkerId":{"shape":"CustomerId"}, + "Reason":{"shape":"String"} + } + }, + "DeleteWorkerBlockResponse":{ + "type":"structure", + "members":{ + } + }, + "DisassociateQualificationFromWorkerRequest":{ + "type":"structure", + "required":[ + "WorkerId", + "QualificationTypeId" + ], + "members":{ + "WorkerId":{"shape":"CustomerId"}, + "QualificationTypeId":{"shape":"EntityId"}, + "Reason":{"shape":"String"} + } + }, + "DisassociateQualificationFromWorkerResponse":{ + "type":"structure", + "members":{ + } + }, + "EntityId":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^[A-Z0-9]+$" + }, + "EventType":{ + "type":"string", + "enum":[ + "AssignmentAccepted", + "AssignmentAbandoned", + "AssignmentReturned", + "AssignmentSubmitted", + "AssignmentRejected", + "AssignmentApproved", + "HITCreated", + "HITExpired", + "HITReviewable", + "HITExtended", + "HITDisposed", + "Ping" + ] + }, + "EventTypeList":{ + "type":"list", + "member":{"shape":"EventType"} + }, + "ExceptionMessage":{"type":"string"}, + "GetAccountBalanceRequest":{ + "type":"structure", + "members":{ + } + }, + "GetAccountBalanceResponse":{ + "type":"structure", + "members":{ + "AvailableBalance":{"shape":"NumericValue"}, + "OnHoldBalance":{"shape":"NumericValue"} + } + }, + "GetAssignmentRequest":{ + "type":"structure", + "required":["AssignmentId"], + "members":{ + "AssignmentId":{"shape":"EntityId"} + } + }, + "GetAssignmentResponse":{ + "type":"structure", + "members":{ + "Assignment":{"shape":"Assignment"}, + "HIT":{"shape":"HIT"} + } + }, + "GetFileUploadURLRequest":{ + "type":"structure", + "required":[ + "AssignmentId", + "QuestionIdentifier" + ], + "members":{ + "AssignmentId":{"shape":"EntityId"}, + "QuestionIdentifier":{"shape":"String"} + } + }, + "GetFileUploadURLResponse":{ + "type":"structure", + "members":{ + "FileUploadURL":{"shape":"String"} + } + }, + "GetHITRequest":{ + "type":"structure", + "required":["HITId"], + "members":{ + "HITId":{"shape":"EntityId"} + } + }, + "GetHITResponse":{ + "type":"structure", + "members":{ + "HIT":{"shape":"HIT"} + } + }, + "GetQualificationScoreRequest":{ + "type":"structure", + "required":[ + "QualificationTypeId", + "WorkerId" + ], + "members":{ + "QualificationTypeId":{"shape":"EntityId"}, + "WorkerId":{"shape":"CustomerId"} + } + }, + "GetQualificationScoreResponse":{ + "type":"structure", + "members":{ + "Qualification":{"shape":"Qualification"} + } + }, + "GetQualificationTypeRequest":{ + "type":"structure", + "required":["QualificationTypeId"], + "members":{ + "QualificationTypeId":{"shape":"EntityId"} + } + }, + "GetQualificationTypeResponse":{ + "type":"structure", + "members":{ + "QualificationType":{"shape":"QualificationType"} + } + }, + "HIT":{ + "type":"structure", + "members":{ + "HITId":{"shape":"EntityId"}, + "HITTypeId":{"shape":"EntityId"}, + "HITGroupId":{"shape":"EntityId"}, + "HITLayoutId":{"shape":"EntityId"}, + "CreationTime":{"shape":"Timestamp"}, + "Title":{"shape":"String"}, + "Description":{"shape":"String"}, + "Question":{"shape":"String"}, + "Keywords":{"shape":"String"}, + "HITStatus":{"shape":"HITStatus"}, + "MaxAssignments":{"shape":"Integer"}, + "Reward":{"shape":"NumericValue"}, + "AutoApprovalDelayInSeconds":{"shape":"Long"}, + "Expiration":{"shape":"Timestamp"}, + "AssignmentDurationInSeconds":{"shape":"Long"}, + "RequesterAnnotation":{"shape":"String"}, + "QualificationRequirements":{"shape":"QualificationRequirementList"}, + "HITReviewStatus":{"shape":"HITReviewStatus"}, + "NumberOfAssignmentsPending":{"shape":"Integer"}, + "NumberOfAssignmentsAvailable":{"shape":"Integer"}, + "NumberOfAssignmentsCompleted":{"shape":"Integer"} + } + }, + "HITLayoutParameter":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "Value":{"shape":"String"} + } + }, + "HITLayoutParameterList":{ + "type":"list", + "member":{"shape":"HITLayoutParameter"} + }, + "HITList":{ + "type":"list", + "member":{"shape":"HIT"} + }, + "HITReviewStatus":{ + "type":"string", + "enum":[ + "NotReviewed", + "MarkedForReview", + "ReviewedAppropriate", + "ReviewedInappropriate" + ] + }, + "HITStatus":{ + "type":"string", + "enum":[ + "Assignable", + "Unassignable", + "Reviewable", + "Reviewing", + "Disposed" + ] + }, + "IdempotencyToken":{ + "type":"string", + "max":64, + "min":1 + }, + "Integer":{"type":"integer"}, + "IntegerList":{ + "type":"list", + "member":{"shape":"Integer"} + }, + "ListAssignmentsForHITRequest":{ + "type":"structure", + "required":["HITId"], + "members":{ + "HITId":{"shape":"EntityId"}, + "NextToken":{"shape":"PaginationToken"}, + "MaxResults":{"shape":"ResultSize"}, + "AssignmentStatuses":{"shape":"AssignmentStatusList"} + } + }, + "ListAssignmentsForHITResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "NumResults":{"shape":"Integer"}, + "Assignments":{"shape":"AssignmentList"} + } + }, + "ListBonusPaymentsRequest":{ + "type":"structure", + "members":{ + "HITId":{"shape":"EntityId"}, + "AssignmentId":{"shape":"EntityId"}, + "NextToken":{"shape":"PaginationToken"}, + "MaxResults":{"shape":"ResultSize"} + } + }, + "ListBonusPaymentsResponse":{ + "type":"structure", + "members":{ + "NumResults":{"shape":"Integer"}, + "NextToken":{"shape":"PaginationToken"}, + "BonusPayments":{"shape":"BonusPaymentList"} + } + }, + "ListHITsForQualificationTypeRequest":{ + "type":"structure", + "required":["QualificationTypeId"], + "members":{ + "QualificationTypeId":{"shape":"EntityId"}, + "NextToken":{"shape":"PaginationToken"}, + "MaxResults":{"shape":"ResultSize"} + } + }, + "ListHITsForQualificationTypeResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "NumResults":{"shape":"Integer"}, + "HITs":{"shape":"HITList"} + } + }, + "ListHITsRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "MaxResults":{"shape":"ResultSize"} + } + }, + "ListHITsResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "NumResults":{"shape":"Integer"}, + "HITs":{"shape":"HITList"} + } + }, + "ListQualificationRequestsRequest":{ + "type":"structure", + "members":{ + "QualificationTypeId":{"shape":"EntityId"}, + "NextToken":{"shape":"PaginationToken"}, + "MaxResults":{"shape":"ResultSize"} + } + }, + "ListQualificationRequestsResponse":{ + "type":"structure", + "members":{ + "NumResults":{"shape":"Integer"}, + "NextToken":{"shape":"PaginationToken"}, + "QualificationRequests":{"shape":"QualificationRequestList"} + } + }, + "ListQualificationTypesRequest":{ + "type":"structure", + "required":["MustBeRequestable"], + "members":{ + "Query":{"shape":"String"}, + "MustBeRequestable":{"shape":"Boolean"}, + "MustBeOwnedByCaller":{"shape":"Boolean"}, + "NextToken":{"shape":"PaginationToken"}, + "MaxResults":{"shape":"ResultSize"} + } + }, + "ListQualificationTypesResponse":{ + "type":"structure", + "members":{ + "NumResults":{"shape":"Integer"}, + "NextToken":{"shape":"PaginationToken"}, + "QualificationTypes":{"shape":"QualificationTypeList"} + } + }, + "ListReviewPolicyResultsForHITRequest":{ + "type":"structure", + "required":["HITId"], + "members":{ + "HITId":{"shape":"EntityId"}, + "PolicyLevels":{"shape":"ReviewPolicyLevelList"}, + "RetrieveActions":{"shape":"Boolean"}, + "RetrieveResults":{"shape":"Boolean"}, + "NextToken":{"shape":"PaginationToken"}, + "MaxResults":{"shape":"ResultSize"} + } + }, + "ListReviewPolicyResultsForHITResponse":{ + "type":"structure", + "members":{ + "HITId":{"shape":"EntityId"}, + "AssignmentReviewPolicy":{"shape":"ReviewPolicy"}, + "HITReviewPolicy":{"shape":"ReviewPolicy"}, + "AssignmentReviewReport":{"shape":"ReviewReport"}, + "HITReviewReport":{"shape":"ReviewReport"}, + "NextToken":{"shape":"PaginationToken"} + } + }, + "ListReviewableHITsRequest":{ + "type":"structure", + "members":{ + "HITTypeId":{"shape":"EntityId"}, + "Status":{"shape":"ReviewableHITStatus"}, + "NextToken":{"shape":"PaginationToken"}, + "MaxResults":{"shape":"ResultSize"} + } + }, + "ListReviewableHITsResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "NumResults":{"shape":"Integer"}, + "HITs":{"shape":"HITList"} + } + }, + "ListWorkerBlocksRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "MaxResults":{"shape":"ResultSize"} + } + }, + "ListWorkerBlocksResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "NumResults":{"shape":"Integer"}, + "WorkerBlocks":{"shape":"WorkerBlockList"} + } + }, + "ListWorkersWithQualificationTypeRequest":{ + "type":"structure", + "required":["QualificationTypeId"], + "members":{ + "QualificationTypeId":{"shape":"EntityId"}, + "Status":{"shape":"QualificationStatus"}, + "NextToken":{"shape":"PaginationToken"}, + "MaxResults":{"shape":"ResultSize"} + } + }, + "ListWorkersWithQualificationTypeResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "NumResults":{"shape":"Integer"}, + "Qualifications":{"shape":"QualificationList"} + } + }, + "Locale":{ + "type":"structure", + "required":["Country"], + "members":{ + "Country":{"shape":"CountryParameters"}, + "Subdivision":{"shape":"CountryParameters"} + } + }, + "LocaleList":{ + "type":"list", + "member":{"shape":"Locale"} + }, + "Long":{"type":"long"}, + "NotificationSpecification":{ + "type":"structure", + "required":[ + "Destination", + "Transport" + ], + "members":{ + "Destination":{"shape":"String"}, + "Transport":{"shape":"NotificationTransport"}, + "Version":{"shape":"String"}, + "EventTypes":{"shape":"EventTypeList"} + } + }, + "NotificationTransport":{ + "type":"string", + "enum":[ + "Email", + "SQS" + ] + }, + "NotifyWorkersFailureCode":{ + "type":"string", + "enum":[ + "SoftFailure", + "HardFailure" + ] + }, + "NotifyWorkersFailureStatus":{ + "type":"structure", + "members":{ + "NotifyWorkersFailureCode":{"shape":"NotifyWorkersFailureCode"}, + "NotifyWorkersFailureMessage":{"shape":"String"}, + "WorkerId":{"shape":"CustomerId"} + } + }, + "NotifyWorkersFailureStatusList":{ + "type":"list", + "member":{"shape":"NotifyWorkersFailureStatus"} + }, + "NotifyWorkersRequest":{ + "type":"structure", + "required":[ + "Subject", + "MessageText", + "WorkerIds" + ], + "members":{ + "Subject":{"shape":"String"}, + "MessageText":{"shape":"String"}, + "WorkerIds":{"shape":"CustomerIdList"} + } + }, + "NotifyWorkersResponse":{ + "type":"structure", + "members":{ + "NotifyWorkersFailureStatuses":{"shape":"NotifyWorkersFailureStatusList"} + } + }, + "NumericValue":{ + "type":"string", + "pattern":"^[0-9]+(\\.)?[0-9]*$" + }, + "PaginationToken":{ + "type":"string", + "max":255, + "min":1 + }, + "ParameterMapEntry":{ + "type":"structure", + "members":{ + "Key":{"shape":"String"}, + "Values":{"shape":"StringList"} + } + }, + "ParameterMapEntryList":{ + "type":"list", + "member":{"shape":"ParameterMapEntry"} + }, + "PolicyParameter":{ + "type":"structure", + "members":{ + "Key":{"shape":"String"}, + "Values":{"shape":"StringList"}, + "MapEntries":{"shape":"ParameterMapEntryList"} + } + }, + "PolicyParameterList":{ + "type":"list", + "member":{"shape":"PolicyParameter"} + }, + "Qualification":{ + "type":"structure", + "members":{ + "QualificationTypeId":{"shape":"EntityId"}, + "WorkerId":{"shape":"CustomerId"}, + "GrantTime":{"shape":"Timestamp"}, + "IntegerValue":{"shape":"Integer"}, + "LocaleValue":{"shape":"Locale"}, + "Status":{"shape":"QualificationStatus"} + } + }, + "QualificationList":{ + "type":"list", + "member":{"shape":"Qualification"} + }, + "QualificationRequest":{ + "type":"structure", + "members":{ + "QualificationRequestId":{"shape":"String"}, + "QualificationTypeId":{"shape":"EntityId"}, + "WorkerId":{"shape":"CustomerId"}, + "Test":{"shape":"String"}, + "Answer":{"shape":"String"}, + "SubmitTime":{"shape":"Timestamp"} + } + }, + "QualificationRequestList":{ + "type":"list", + "member":{"shape":"QualificationRequest"} + }, + "QualificationRequirement":{ + "type":"structure", + "required":[ + "QualificationTypeId", + "Comparator" + ], + "members":{ + "QualificationTypeId":{"shape":"String"}, + "Comparator":{"shape":"Comparator"}, + "IntegerValues":{"shape":"IntegerList"}, + "LocaleValues":{"shape":"LocaleList"}, + "RequiredToPreview":{"shape":"Boolean"} + } + }, + "QualificationRequirementList":{ + "type":"list", + "member":{"shape":"QualificationRequirement"} + }, + "QualificationStatus":{ + "type":"string", + "enum":[ + "Granted", + "Revoked" + ] + }, + "QualificationType":{ + "type":"structure", + "members":{ + "QualificationTypeId":{"shape":"EntityId"}, + "CreationTime":{"shape":"Timestamp"}, + "Name":{"shape":"String"}, + "Description":{"shape":"String"}, + "Keywords":{"shape":"String"}, + "QualificationTypeStatus":{"shape":"QualificationTypeStatus"}, + "Test":{"shape":"String"}, + "TestDurationInSeconds":{"shape":"Long"}, + "AnswerKey":{"shape":"String"}, + "RetryDelayInSeconds":{"shape":"Long"}, + "IsRequestable":{"shape":"Boolean"}, + "AutoGranted":{"shape":"Boolean"}, + "AutoGrantedValue":{"shape":"Integer"} + } + }, + "QualificationTypeList":{ + "type":"list", + "member":{"shape":"QualificationType"} + }, + "QualificationTypeStatus":{ + "type":"string", + "enum":[ + "Active", + "Inactive" + ] + }, + "RejectAssignmentRequest":{ + "type":"structure", + "required":["AssignmentId"], + "members":{ + "AssignmentId":{"shape":"EntityId"}, + "RequesterFeedback":{"shape":"String"} + } + }, + "RejectAssignmentResponse":{ + "type":"structure", + "members":{ + } + }, + "RejectQualificationRequestRequest":{ + "type":"structure", + "required":["QualificationRequestId"], + "members":{ + "QualificationRequestId":{"shape":"String"}, + "Reason":{"shape":"String"} + } + }, + "RejectQualificationRequestResponse":{ + "type":"structure", + "members":{ + } + }, + "RequestError":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"}, + "TurkErrorCode":{"shape":"TurkErrorCode"} + }, + "exception":true + }, + "ResultSize":{ + "type":"integer", + "max":100, + "min":1 + }, + "ReviewActionDetail":{ + "type":"structure", + "members":{ + "ActionId":{"shape":"EntityId"}, + "ActionName":{"shape":"String"}, + "TargetId":{"shape":"EntityId"}, + "TargetType":{"shape":"String"}, + "Status":{"shape":"ReviewActionStatus"}, + "CompleteTime":{"shape":"Timestamp"}, + "Result":{"shape":"String"}, + "ErrorCode":{"shape":"String"} + } + }, + "ReviewActionDetailList":{ + "type":"list", + "member":{"shape":"ReviewActionDetail"} + }, + "ReviewActionStatus":{ + "type":"string", + "enum":[ + "Intended", + "Succeeded", + "Failed", + "Cancelled" + ] + }, + "ReviewPolicy":{ + "type":"structure", + "members":{ + "PolicyName":{"shape":"String"}, + "Parameters":{"shape":"PolicyParameterList"} + } + }, + "ReviewPolicyLevel":{ + "type":"string", + "enum":[ + "Assignment", + "HIT" + ] + }, + "ReviewPolicyLevelList":{ + "type":"list", + "member":{"shape":"ReviewPolicyLevel"} + }, + "ReviewReport":{ + "type":"structure", + "members":{ + "ReviewResults":{"shape":"ReviewResultDetailList"}, + "ReviewActions":{"shape":"ReviewActionDetailList"} + } + }, + "ReviewResultDetail":{ + "type":"structure", + "members":{ + "ActionId":{"shape":"EntityId"}, + "SubjectId":{"shape":"EntityId"}, + "SubjectType":{"shape":"String"}, + "QuestionId":{"shape":"EntityId"}, + "Key":{"shape":"String"}, + "Value":{"shape":"String"} + } + }, + "ReviewResultDetailList":{ + "type":"list", + "member":{"shape":"ReviewResultDetail"} + }, + "ReviewableHITStatus":{ + "type":"string", + "enum":[ + "Reviewable", + "Reviewing" + ] + }, + "SendBonusRequest":{ + "type":"structure", + "required":[ + "WorkerId", + "BonusAmount", + "AssignmentId" + ], + "members":{ + "WorkerId":{"shape":"CustomerId"}, + "BonusAmount":{"shape":"NumericValue"}, + "AssignmentId":{"shape":"EntityId"}, + "Reason":{"shape":"String"}, + "UniqueRequestToken":{"shape":"IdempotencyToken"} + } + }, + "SendBonusResponse":{ + "type":"structure", + "members":{ + } + }, + "SendTestEventNotificationRequest":{ + "type":"structure", + "required":[ + "Notification", + "TestEventType" + ], + "members":{ + "Notification":{"shape":"NotificationSpecification"}, + "TestEventType":{"shape":"EventType"} + } + }, + "SendTestEventNotificationResponse":{ + "type":"structure", + "members":{ + } + }, + "ServiceFault":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"}, + "TurkErrorCode":{"shape":"TurkErrorCode"} + }, + "exception":true, + "fault":true + }, + "String":{"type":"string"}, + "StringList":{ + "type":"list", + "member":{"shape":"String"} + }, + "Timestamp":{"type":"timestamp"}, + "TurkErrorCode":{"type":"string"}, + "UpdateExpirationForHITRequest":{ + "type":"structure", + "required":["HITId"], + "members":{ + "HITId":{"shape":"EntityId"}, + "ExpireAt":{"shape":"Timestamp"} + } + }, + "UpdateExpirationForHITResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateHITReviewStatusRequest":{ + "type":"structure", + "required":["HITId"], + "members":{ + "HITId":{"shape":"EntityId"}, + "Revert":{"shape":"Boolean"} + } + }, + "UpdateHITReviewStatusResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateHITTypeOfHITRequest":{ + "type":"structure", + "required":[ + "HITId", + "HITTypeId" + ], + "members":{ + "HITId":{"shape":"EntityId"}, + "HITTypeId":{"shape":"EntityId"} + } + }, + "UpdateHITTypeOfHITResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateNotificationSettingsRequest":{ + "type":"structure", + "required":["HITTypeId"], + "members":{ + "HITTypeId":{"shape":"EntityId"}, + "Notification":{"shape":"NotificationSpecification"}, + "Active":{"shape":"Boolean"} + } + }, + "UpdateNotificationSettingsResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateQualificationTypeRequest":{ + "type":"structure", + "required":["QualificationTypeId"], + "members":{ + "QualificationTypeId":{"shape":"EntityId"}, + "Description":{"shape":"String"}, + "QualificationTypeStatus":{"shape":"QualificationTypeStatus"}, + "Test":{"shape":"String"}, + "AnswerKey":{"shape":"String"}, + "TestDurationInSeconds":{"shape":"Long"}, + "RetryDelayInSeconds":{"shape":"Long"}, + "AutoGranted":{"shape":"Boolean"}, + "AutoGrantedValue":{"shape":"Integer"} + } + }, + "UpdateQualificationTypeResponse":{ + "type":"structure", + "members":{ + "QualificationType":{"shape":"QualificationType"} + } + }, + "WorkerBlock":{ + "type":"structure", + "members":{ + "WorkerId":{"shape":"CustomerId"}, + "Reason":{"shape":"String"} + } + }, + "WorkerBlockList":{ + "type":"list", + "member":{"shape":"WorkerBlock"} + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/mturk-requester/2017-01-17/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/mturk-requester/2017-01-17/docs-2.json new file mode 100644 index 000000000..5d0b9a551 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/mturk-requester/2017-01-17/docs-2.json @@ -0,0 +1,1088 @@ +{ + "version": "2.0", + "service": "Amazon Mechanical Turk API Reference", + "operations": { + "AcceptQualificationRequest": "

The AcceptQualificationRequest operation approves a Worker's request for a Qualification.

Only the owner of the Qualification type can grant a Qualification request for that type.

A successful request for the AcceptQualificationRequest operation returns with no errors and an empty body.

", + "ApproveAssignment": "

The ApproveAssignment operation approves the results of a completed assignment.

Approving an assignment initiates two payments from the Requester's Amazon.com account

  • The Worker who submitted the results is paid the reward specified in the HIT.

  • Amazon Mechanical Turk fees are debited.

If the Requester's account does not have adequate funds for these payments, the call to ApproveAssignment returns an exception, and the approval is not processed. You can include an optional feedback message with the approval, which the Worker can see in the Status section of the web site.

You can also call this operation for assignments that were previous rejected and approve them by explicitly overriding the previous rejection. This only works on rejected assignments that were submitted within the previous 30 days and only if the assignment's related HIT has not been deleted.

", + "AssociateQualificationWithWorker": "

The AssociateQualificationWithWorker operation gives a Worker a Qualification. AssociateQualificationWithWorker does not require that the Worker submit a Qualification request. It gives the Qualification directly to the Worker.

You can only assign a Qualification of a Qualification type that you created (using the CreateQualificationType operation).

Note: AssociateQualificationWithWorker does not affect any pending Qualification requests for the Qualification by the Worker. If you assign a Qualification to a Worker, then later grant a Qualification request made by the Worker, the granting of the request may modify the Qualification score. To resolve a pending Qualification request without affecting the Qualification the Worker already has, reject the request with the RejectQualificationRequest operation.

", + "CreateAdditionalAssignmentsForHIT": "

The CreateAdditionalAssignmentsForHIT operation increases the maximum number of assignments of an existing HIT.

To extend the maximum number of assignments, specify the number of additional assignments.

  • HITs created with fewer than 10 assignments cannot be extended to have 10 or more assignments. Attempting to add assignments in a way that brings the total number of assignments for a HIT from fewer than 10 assignments to 10 or more assignments will result in an AWS.MechanicalTurk.InvalidMaximumAssignmentsIncrease exception.

  • HITs that were created before July 22, 2015 cannot be extended. Attempting to extend HITs that were created before July 22, 2015 will result in an AWS.MechanicalTurk.HITTooOldForExtension exception.

", + "CreateHIT": "

The CreateHIT operation creates a new Human Intelligence Task (HIT). The new HIT is made available for Workers to find and accept on the Amazon Mechanical Turk website.

This operation allows you to specify a new HIT by passing in values for the properties of the HIT, such as its title, reward amount and number of assignments. When you pass these values to CreateHIT, a new HIT is created for you, with a new HITTypeID. The HITTypeID can be used to create additional HITs in the future without needing to specify common parameters such as the title, description and reward amount each time.

An alternative way to create HITs is to first generate a HITTypeID using the CreateHITType operation and then call the CreateHITWithHITType operation. This is the recommended best practice for Requesters who are creating large numbers of HITs.

CreateHIT also supports several ways to provide question data: by providing a value for the Question parameter that fully specifies the contents of the HIT, or by providing a HitLayoutId and associated HitLayoutParameters.

If a HIT is created with 10 or more maximum assignments, there is an additional fee. For more information, see Amazon Mechanical Turk Pricing.

", + "CreateHITType": "

The CreateHITType operation creates a new HIT type. This operation allows you to define a standard set of HIT properties to use when creating HITs. If you register a HIT type with values that match an existing HIT type, the HIT type ID of the existing type will be returned.

", + "CreateHITWithHITType": "

The CreateHITWithHITType operation creates a new Human Intelligence Task (HIT) using an existing HITTypeID generated by the CreateHITType operation.

This is an alternative way to create HITs from the CreateHIT operation. This is the recommended best practice for Requesters who are creating large numbers of HITs.

CreateHITWithHITType also supports several ways to provide question data: by providing a value for the Question parameter that fully specifies the contents of the HIT, or by providing a HitLayoutId and associated HitLayoutParameters.

If a HIT is created with 10 or more maximum assignments, there is an additional fee. For more information, see Amazon Mechanical Turk Pricing.

", + "CreateQualificationType": "

The CreateQualificationType operation creates a new Qualification type, which is represented by a QualificationType data structure.

", + "CreateWorkerBlock": "

The CreateWorkerBlock operation allows you to prevent a Worker from working on your HITs. For example, you can block a Worker who is producing poor quality work. You can block up to 100,000 Workers.

", + "DeleteHIT": "

The DeleteHIT operation is used to delete HIT that is no longer needed. Only the Requester who created the HIT can delete it.

You can only dispose of HITs that are in the Reviewable state, with all of their submitted assignments already either approved or rejected. If you call the DeleteHIT operation on a HIT that is not in the Reviewable state (for example, that has not expired, or still has active assignments), or on a HIT that is Reviewable but without all of its submitted assignments already approved or rejected, the service will return an error.

  • HITs are automatically disposed of after 120 days.

  • After you dispose of a HIT, you can no longer approve the HIT's rejected assignments.

  • Disposed HITs are not returned in results for the ListHITs operation.

  • Disposing HITs can improve the performance of operations such as ListReviewableHITs and ListHITs.

", + "DeleteQualificationType": "

The DeleteQualificationType deletes a Qualification type and deletes any HIT types that are associated with the Qualification type.

This operation does not revoke Qualifications already assigned to Workers because the Qualifications might be needed for active HITs. If there are any pending requests for the Qualification type, Amazon Mechanical Turk rejects those requests. After you delete a Qualification type, you can no longer use it to create HITs or HIT types.

DeleteQualificationType must wait for all the HITs that use the deleted Qualification type to be deleted before completing. It may take up to 48 hours before DeleteQualificationType completes and the unique name of the Qualification type is available for reuse with CreateQualificationType.

", + "DeleteWorkerBlock": "

The DeleteWorkerBlock operation allows you to reinstate a blocked Worker to work on your HITs. This operation reverses the effects of the CreateWorkerBlock operation. You need the Worker ID to use this operation. If the Worker ID is missing or invalid, this operation fails and returns the message “WorkerId is invalid.” If the specified Worker is not blocked, this operation returns successfully.

", + "DisassociateQualificationFromWorker": "

The DisassociateQualificationFromWorker revokes a previously granted Qualification from a user.

You can provide a text message explaining why the Qualification was revoked. The user who had the Qualification can see this message.

", + "GetAccountBalance": "

The GetAccountBalance operation retrieves the amount of money in your Amazon Mechanical Turk account.

", + "GetAssignment": "

The GetAssignment operation retrieves the details of the specified Assignment.

", + "GetFileUploadURL": "

The GetFileUploadURL operation generates and returns a temporary URL. You use the temporary URL to retrieve a file uploaded by a Worker as an answer to a FileUploadAnswer question for a HIT. The temporary URL is generated the instant the GetFileUploadURL operation is called, and is valid for 60 seconds. You can get a temporary file upload URL any time until the HIT is disposed. After the HIT is disposed, any uploaded files are deleted, and cannot be retrieved.

", + "GetHIT": "

The GetHIT operation retrieves the details of the specified HIT.

", + "GetQualificationScore": "

The GetQualificationScore operation returns the value of a Worker's Qualification for a given Qualification type.

To get a Worker's Qualification, you must know the Worker's ID. The Worker's ID is included in the assignment data returned by the ListAssignmentsForHIT operation.

Only the owner of a Qualification type can query the value of a Worker's Qualification of that type.

", + "GetQualificationType": "

The GetQualificationTypeoperation retrieves information about a Qualification type using its ID.

", + "ListAssignmentsForHIT": "

The ListAssignmentsForHIT operation retrieves completed assignments for a HIT. You can use this operation to retrieve the results for a HIT.

You can get assignments for a HIT at any time, even if the HIT is not yet Reviewable. If a HIT requested multiple assignments, and has received some results but has not yet become Reviewable, you can still retrieve the partial results with this operation.

Use the AssignmentStatus parameter to control which set of assignments for a HIT are returned. The ListAssignmentsForHIT operation can return submitted assignments awaiting approval, or it can return assignments that have already been approved or rejected. You can set AssignmentStatus=Approved,Rejected to get assignments that have already been approved and rejected together in one result set.

Only the Requester who created the HIT can retrieve the assignments for that HIT.

Results are sorted and divided into numbered pages and the operation returns a single page of results. You can use the parameters of the operation to control sorting and pagination.

", + "ListBonusPayments": "

The ListBonusPayments operation retrieves the amounts of bonuses you have paid to Workers for a given HIT or assignment.

", + "ListHITs": "

The ListHITs operation returns all of a Requester's HITs. The operation returns HITs of any status, except for HITs that have been deleted of with the DeleteHIT operation or that have been auto-deleted.

", + "ListHITsForQualificationType": "

The ListHITsForQualificationType operation returns the HITs that use the given Qualification type for a Qualification requirement. The operation returns HITs of any status, except for HITs that have been deleted with the DeleteHIT operation or that have been auto-deleted.

", + "ListQualificationRequests": "

The ListQualificationRequests operation retrieves requests for Qualifications of a particular Qualification type. The owner of the Qualification type calls this operation to poll for pending requests, and accepts them using the AcceptQualification operation.

", + "ListQualificationTypes": "

The ListQualificationRequests operation retrieves requests for Qualifications of a particular Qualification type. The owner of the Qualification type calls this operation to poll for pending requests, and accepts them using the AcceptQualification operation.

", + "ListReviewPolicyResultsForHIT": "

The ListReviewPolicyResultsForHIT operation retrieves the computed results and the actions taken in the course of executing your Review Policies for a given HIT. For information about how to specify Review Policies when you call CreateHIT, see Review Policies. The ListReviewPolicyResultsForHIT operation can return results for both Assignment-level and HIT-level review results.

", + "ListReviewableHITs": "

The ListReviewableHITs operation retrieves the HITs with Status equal to Reviewable or Status equal to Reviewing that belong to the Requester calling the operation.

", + "ListWorkerBlocks": "

The ListWorkersBlocks operation retrieves a list of Workers who are blocked from working on your HITs.

", + "ListWorkersWithQualificationType": "

The ListWorkersWithQualificationType operation returns all of the Workers that have been associated with a given Qualification type.

", + "NotifyWorkers": "

The NotifyWorkers operation sends an email to one or more Workers that you specify with the Worker ID. You can specify up to 100 Worker IDs to send the same message with a single call to the NotifyWorkers operation. The NotifyWorkers operation will send a notification email to a Worker only if you have previously approved or rejected work from the Worker.

", + "RejectAssignment": "

The RejectAssignment operation rejects the results of a completed assignment.

You can include an optional feedback message with the rejection, which the Worker can see in the Status section of the web site. When you include a feedback message with the rejection, it helps the Worker understand why the assignment was rejected, and can improve the quality of the results the Worker submits in the future.

Only the Requester who created the HIT can reject an assignment for the HIT.

", + "RejectQualificationRequest": "

The RejectQualificationRequest operation rejects a user's request for a Qualification.

You can provide a text message explaining why the request was rejected. The Worker who made the request can see this message.

", + "SendBonus": "

The SendBonus operation issues a payment of money from your account to a Worker. This payment happens separately from the reward you pay to the Worker when you approve the Worker's assignment. The SendBonus operation requires the Worker's ID and the assignment ID as parameters to initiate payment of the bonus. You must include a message that explains the reason for the bonus payment, as the Worker may not be expecting the payment. Amazon Mechanical Turk collects a fee for bonus payments, similar to the HIT listing fee. This operation fails if your account does not have enough funds to pay for both the bonus and the fees.

", + "SendTestEventNotification": "

The SendTestEventNotification operation causes Amazon Mechanical Turk to send a notification message as if a HIT event occurred, according to the provided notification specification. This allows you to test notifications without setting up notifications for a real HIT type and trying to trigger them using the website. When you call this operation, the service attempts to send the test notification immediately.

", + "UpdateExpirationForHIT": "

The UpdateExpirationForHIT operation allows you update the expiration time of a HIT. If you update it to a time in the past, the HIT will be immediately expired.

", + "UpdateHITReviewStatus": "

The UpdateHITReviewStatus operation updates the status of a HIT. If the status is Reviewable, this operation can update the status to Reviewing, or it can revert a Reviewing HIT back to the Reviewable status.

", + "UpdateHITTypeOfHIT": "

The UpdateHITTypeOfHIT operation allows you to change the HITType properties of a HIT. This operation disassociates the HIT from its old HITType properties and associates it with the new HITType properties. The HIT takes on the properties of the new HITType in place of the old ones.

", + "UpdateNotificationSettings": "

The UpdateNotificationSettings operation creates, updates, disables or re-enables notifications for a HIT type. If you call the UpdateNotificationSettings operation for a HIT type that already has a notification specification, the operation replaces the old specification with a new one. You can call the UpdateNotificationSettings operation to enable or disable notifications for the HIT type, without having to modify the notification specification itself by providing updates to the Active status without specifying a new notification specification. To change the Active status of a HIT type's notifications, the HIT type must already have a notification specification, or one must be provided in the same call to UpdateNotificationSettings.

", + "UpdateQualificationType": "

The UpdateQualificationType operation modifies the attributes of an existing Qualification type, which is represented by a QualificationType data structure. Only the owner of a Qualification type can modify its attributes.

Most attributes of a Qualification type can be changed after the type has been created. However, the Name and Keywords fields cannot be modified. The RetryDelayInSeconds parameter can be modified or added to change the delay or to enable retries, but RetryDelayInSeconds cannot be used to disable retries.

You can use this operation to update the test for a Qualification type. The test is updated based on the values specified for the Test, TestDurationInSeconds and AnswerKey parameters. All three parameters specify the updated test. If you are updating the test for a type, you must specify the Test and TestDurationInSeconds parameters. The AnswerKey parameter is optional; omitting it specifies that the updated test does not have an answer key.

If you omit the Test parameter, the test for the Qualification type is unchanged. There is no way to remove a test from a Qualification type that has one. If the type already has a test, you cannot update it to be AutoGranted. If the Qualification type does not have a test and one is provided by an update, the type will henceforth have a test.

If you want to update the test duration or answer key for an existing test without changing the questions, you must specify a Test parameter with the original questions, along with the updated values.

If you provide an updated Test but no AnswerKey, the new test will not have an answer key. Requests for such Qualifications must be granted manually.

You can also update the AutoGranted and AutoGrantedValue attributes of the Qualification type.

" + }, + "shapes": { + "AcceptQualificationRequestRequest": { + "base": null, + "refs": { + } + }, + "AcceptQualificationRequestResponse": { + "base": null, + "refs": { + } + }, + "ApproveAssignmentRequest": { + "base": null, + "refs": { + } + }, + "ApproveAssignmentResponse": { + "base": null, + "refs": { + } + }, + "Assignment": { + "base": "

The Assignment data structure represents a single assignment of a HIT to a Worker. The assignment tracks the Worker's efforts to complete the HIT, and contains the results for later retrieval.

", + "refs": { + "AssignmentList$member": null, + "GetAssignmentResponse$Assignment": "

The assignment. The response includes one Assignment element.

" + } + }, + "AssignmentList": { + "base": null, + "refs": { + "ListAssignmentsForHITResponse$Assignments": "

The collection of Assignment data structures returned by this call.

" + } + }, + "AssignmentStatus": { + "base": null, + "refs": { + "Assignment$AssignmentStatus": "

The status of the assignment.

", + "AssignmentStatusList$member": null + } + }, + "AssignmentStatusList": { + "base": null, + "refs": { + "ListAssignmentsForHITRequest$AssignmentStatuses": "

The status of the assignments to return: Submitted | Approved | Rejected

" + } + }, + "AssociateQualificationWithWorkerRequest": { + "base": null, + "refs": { + } + }, + "AssociateQualificationWithWorkerResponse": { + "base": null, + "refs": { + } + }, + "BonusPayment": { + "base": "

An object representing a Bonus payment paid to a Worker.

", + "refs": { + "BonusPaymentList$member": null + } + }, + "BonusPaymentList": { + "base": null, + "refs": { + "ListBonusPaymentsResponse$BonusPayments": "

A successful request to the ListBonusPayments operation returns a list of BonusPayment objects.

" + } + }, + "Boolean": { + "base": null, + "refs": { + "ApproveAssignmentRequest$OverrideRejection": "

A flag indicating that an assignment should be approved even if it was previously rejected. Defaults to False.

", + "AssociateQualificationWithWorkerRequest$SendNotification": "

Specifies whether to send a notification email message to the Worker saying that the qualification was assigned to the Worker. Note: this is true by default.

", + "CreateQualificationTypeRequest$AutoGranted": "

Specifies whether requests for the Qualification type are granted immediately, without prompting the Worker with a Qualification test.

Constraints: If the Test parameter is specified, this parameter cannot be true.

", + "ListQualificationTypesRequest$MustBeRequestable": "

Specifies that only Qualification types that a user can request through the Amazon Mechanical Turk web site, such as by taking a Qualification test, are returned as results of the search. Some Qualification types, such as those assigned automatically by the system, cannot be requested directly by users. If false, all Qualification types, including those managed by the system, are considered. Valid values are True | False.

", + "ListQualificationTypesRequest$MustBeOwnedByCaller": "

Specifies that only Qualification types that the Requester created are returned. If false, the operation returns all Qualification types.

", + "ListReviewPolicyResultsForHITRequest$RetrieveActions": "

Specify if the operation should retrieve a list of the actions taken executing the Review Policies and their outcomes.

", + "ListReviewPolicyResultsForHITRequest$RetrieveResults": "

Specify if the operation should retrieve a list of the results computed by the Review Policies.

", + "QualificationRequirement$RequiredToPreview": "

If true, the question data for the HIT will not be shown when a Worker whose Qualifications do not meet this requirement tries to preview the HIT. That is, a Worker's Qualifications must meet all of the requirements for which RequiredToPreview is true in order to preview the HIT. If a Worker meets all of the requirements where RequiredToPreview is true (or if there are no such requirements), but does not meet all of the requirements for the HIT, the Worker will be allowed to preview the HIT's question data, but will not be allowed to accept and complete the HIT. The default is false.

", + "QualificationType$IsRequestable": "

Specifies whether the Qualification type is one that a user can request through the Amazon Mechanical Turk web site, such as by taking a Qualification test. This value is False for Qualifications assigned automatically by the system. Valid values are True | False.

", + "QualificationType$AutoGranted": "

Specifies that requests for the Qualification type are granted immediately, without prompting the Worker with a Qualification test. Valid values are True | False.

", + "UpdateHITReviewStatusRequest$Revert": "

Specifies how to update the HIT status. Default is False.

  • Setting this to false will only transition a HIT from Reviewable to Reviewing

  • Setting this to true will only transition a HIT from Reviewing to Reviewable

", + "UpdateNotificationSettingsRequest$Active": "

Specifies whether notifications are sent for HITs of this HIT type, according to the notification specification. You must specify either the Notification parameter or the Active parameter for the call to UpdateNotificationSettings to succeed.

", + "UpdateQualificationTypeRequest$AutoGranted": "

Specifies whether requests for the Qualification type are granted immediately, without prompting the Worker with a Qualification test.

Constraints: If the Test parameter is specified, this parameter cannot be true.

" + } + }, + "Comparator": { + "base": null, + "refs": { + "QualificationRequirement$Comparator": "

The kind of comparison to make against a Qualification's value. You can compare a Qualification's value to an IntegerValue to see if it is LessThan, LessThanOrEqualTo, GreaterThan, GreaterThanOrEqualTo, EqualTo, or NotEqualTo the IntegerValue. You can compare it to a LocaleValue to see if it is EqualTo, or NotEqualTo the LocaleValue. You can check to see if the value is In or NotIn a set of IntegerValue or LocaleValue values. Lastly, a Qualification requirement can also test if a Qualification Exists or DoesNotExist in the user's profile, regardless of its value.

" + } + }, + "CountryParameters": { + "base": null, + "refs": { + "Locale$Country": "

The country of the locale. Must be a valid ISO 3166 country code. For example, the code US refers to the United States of America.

", + "Locale$Subdivision": "

The state or subdivision of the locale. A valid ISO 3166-2 subdivision code. For example, the code WA refers to the state of Washington.

" + } + }, + "CreateAdditionalAssignmentsForHITRequest": { + "base": null, + "refs": { + } + }, + "CreateAdditionalAssignmentsForHITResponse": { + "base": null, + "refs": { + } + }, + "CreateHITRequest": { + "base": null, + "refs": { + } + }, + "CreateHITResponse": { + "base": null, + "refs": { + } + }, + "CreateHITTypeRequest": { + "base": null, + "refs": { + } + }, + "CreateHITTypeResponse": { + "base": null, + "refs": { + } + }, + "CreateHITWithHITTypeRequest": { + "base": null, + "refs": { + } + }, + "CreateHITWithHITTypeResponse": { + "base": null, + "refs": { + } + }, + "CreateQualificationTypeRequest": { + "base": null, + "refs": { + } + }, + "CreateQualificationTypeResponse": { + "base": null, + "refs": { + } + }, + "CreateWorkerBlockRequest": { + "base": null, + "refs": { + } + }, + "CreateWorkerBlockResponse": { + "base": null, + "refs": { + } + }, + "CustomerId": { + "base": null, + "refs": { + "Assignment$WorkerId": "

The ID of the Worker who accepted the HIT.

", + "AssociateQualificationWithWorkerRequest$WorkerId": "

The ID of the Worker to whom the Qualification is being assigned. Worker IDs are included with submitted HIT assignments and Qualification requests.

", + "BonusPayment$WorkerId": "

The ID of the Worker to whom the bonus was paid.

", + "CreateWorkerBlockRequest$WorkerId": "

The ID of the Worker to block.

", + "CustomerIdList$member": null, + "DeleteWorkerBlockRequest$WorkerId": "

The ID of the Worker to unblock.

", + "DisassociateQualificationFromWorkerRequest$WorkerId": "

The ID of the Worker who possesses the Qualification to be revoked.

", + "GetQualificationScoreRequest$WorkerId": "

The ID of the Worker whose Qualification is being updated.

", + "NotifyWorkersFailureStatus$WorkerId": "

The ID of the Worker.

", + "Qualification$WorkerId": "

The ID of the Worker who possesses the Qualification.

", + "QualificationRequest$WorkerId": "

The ID of the Worker requesting the Qualification.

", + "SendBonusRequest$WorkerId": "

The ID of the Worker being paid the bonus.

", + "WorkerBlock$WorkerId": "

The ID of the Worker who accepted the HIT.

" + } + }, + "CustomerIdList": { + "base": null, + "refs": { + "NotifyWorkersRequest$WorkerIds": "

A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a time.

" + } + }, + "DeleteHITRequest": { + "base": null, + "refs": { + } + }, + "DeleteHITResponse": { + "base": null, + "refs": { + } + }, + "DeleteQualificationTypeRequest": { + "base": null, + "refs": { + } + }, + "DeleteQualificationTypeResponse": { + "base": null, + "refs": { + } + }, + "DeleteWorkerBlockRequest": { + "base": null, + "refs": { + } + }, + "DeleteWorkerBlockResponse": { + "base": null, + "refs": { + } + }, + "DisassociateQualificationFromWorkerRequest": { + "base": null, + "refs": { + } + }, + "DisassociateQualificationFromWorkerResponse": { + "base": null, + "refs": { + } + }, + "EntityId": { + "base": null, + "refs": { + "ApproveAssignmentRequest$AssignmentId": "

The ID of the assignment. The assignment must correspond to a HIT created by the Requester.

", + "Assignment$AssignmentId": "

A unique identifier for the assignment.

", + "Assignment$HITId": "

The ID of the HIT.

", + "AssociateQualificationWithWorkerRequest$QualificationTypeId": "

The ID of the Qualification type to use for the assigned Qualification.

", + "BonusPayment$AssignmentId": "

The ID of the assignment associated with this bonus payment.

", + "CreateAdditionalAssignmentsForHITRequest$HITId": "

The ID of the HIT to extend.

", + "CreateHITRequest$HITLayoutId": "

The HITLayoutId allows you to use a pre-existing HIT design with placeholder values and create an additional HIT by providing those values as HITLayoutParameters.

Constraints: Either a Question parameter or a HITLayoutId parameter must be provided.

", + "CreateHITTypeResponse$HITTypeId": "

The ID of the newly registered HIT type.

", + "CreateHITWithHITTypeRequest$HITTypeId": "

The HIT type ID you want to create this HIT with.

", + "CreateHITWithHITTypeRequest$HITLayoutId": "

The HITLayoutId allows you to use a pre-existing HIT design with placeholder values and create an additional HIT by providing those values as HITLayoutParameters.

Constraints: Either a Question parameter or a HITLayoutId parameter must be provided.

", + "DeleteHITRequest$HITId": "

The ID of the HIT to be deleted.

", + "DeleteQualificationTypeRequest$QualificationTypeId": "

The ID of the QualificationType to dispose.

", + "DisassociateQualificationFromWorkerRequest$QualificationTypeId": "

The ID of the Qualification type of the Qualification to be revoked.

", + "GetAssignmentRequest$AssignmentId": "

The ID of the Assignment to be retrieved.

", + "GetFileUploadURLRequest$AssignmentId": "

The ID of the assignment that contains the question with a FileUploadAnswer.

", + "GetHITRequest$HITId": "

The ID of the HIT to be retrieved.

", + "GetQualificationScoreRequest$QualificationTypeId": "

The ID of the QualificationType.

", + "GetQualificationTypeRequest$QualificationTypeId": "

The ID of the QualificationType.

", + "HIT$HITId": "

A unique identifier for the HIT.

", + "HIT$HITTypeId": "

The ID of the HIT type of this HIT

", + "HIT$HITGroupId": "

The ID of the HIT Group of this HIT.

", + "HIT$HITLayoutId": "

The ID of the HIT Layout of this HIT.

", + "ListAssignmentsForHITRequest$HITId": "

The ID of the HIT.

", + "ListBonusPaymentsRequest$HITId": "

The ID of the HIT associated with the bonus payments to retrieve. If not specified, all bonus payments for all assignments for the given HIT are returned. Either the HITId parameter or the AssignmentId parameter must be specified

", + "ListBonusPaymentsRequest$AssignmentId": "

The ID of the assignment associated with the bonus payments to retrieve. If specified, only bonus payments for the given assignment are returned. Either the HITId parameter or the AssignmentId parameter must be specified

", + "ListHITsForQualificationTypeRequest$QualificationTypeId": "

The ID of the Qualification type to use when querying HITs.

", + "ListQualificationRequestsRequest$QualificationTypeId": "

The ID of the QualificationType.

", + "ListReviewPolicyResultsForHITRequest$HITId": "

The unique identifier of the HIT to retrieve review results for.

", + "ListReviewPolicyResultsForHITResponse$HITId": "

The HITId of the HIT for which results have been returned.

", + "ListReviewableHITsRequest$HITTypeId": "

The ID of the HIT type of the HITs to consider for the query. If not specified, all HITs for the Reviewer are considered

", + "ListWorkersWithQualificationTypeRequest$QualificationTypeId": "

The ID of the Qualification type of the Qualifications to return.

", + "Qualification$QualificationTypeId": "

The ID of the Qualification type for the Qualification.

", + "QualificationRequest$QualificationTypeId": "

The ID of the Qualification type the Worker is requesting, as returned by the CreateQualificationType operation.

", + "QualificationType$QualificationTypeId": "

A unique identifier for the Qualification type. A Qualification type is given a Qualification type ID when you call the CreateQualificationType operation.

", + "RejectAssignmentRequest$AssignmentId": "

The ID of the assignment. The assignment must correspond to a HIT created by the Requester.

", + "ReviewActionDetail$ActionId": "

The unique identifier for the action.

", + "ReviewActionDetail$TargetId": "

The specific HITId or AssignmentID targeted by the action.

", + "ReviewResultDetail$ActionId": "

A unique identifier of the Review action result.

", + "ReviewResultDetail$SubjectId": "

The HITID or AssignmentId about which this result was taken. Note that HIT-level Review Policies will often emit results about both the HIT itself and its Assignments, while Assignment-level review policies generally only emit results about the Assignment itself.

", + "ReviewResultDetail$QuestionId": "

Specifies the QuestionId the result is describing. Depending on whether the TargetType is a HIT or Assignment this results could specify multiple values. If TargetType is HIT and QuestionId is absent, then the result describes results of the HIT, including the HIT agreement score. If ObjectType is Assignment and QuestionId is absent, then the result describes the Worker's performance on the HIT.

", + "SendBonusRequest$AssignmentId": "

The ID of the assignment for which this bonus is paid.

", + "UpdateExpirationForHITRequest$HITId": "

The HIT to update.

", + "UpdateHITReviewStatusRequest$HITId": "

The ID of the HIT to update.

", + "UpdateHITTypeOfHITRequest$HITId": "

The HIT to update.

", + "UpdateHITTypeOfHITRequest$HITTypeId": "

The ID of the new HIT type.

", + "UpdateNotificationSettingsRequest$HITTypeId": "

The ID of the HIT type whose notification specification is being updated.

", + "UpdateQualificationTypeRequest$QualificationTypeId": "

The ID of the Qualification type to update.

" + } + }, + "EventType": { + "base": null, + "refs": { + "EventTypeList$member": null, + "SendTestEventNotificationRequest$TestEventType": "

The event to simulate to test the notification specification. This event is included in the test message even if the notification specification does not include the event type. The notification specification does not filter out the test event.

" + } + }, + "EventTypeList": { + "base": null, + "refs": { + "NotificationSpecification$EventTypes": "

The list of events that should cause notifications to be sent. Valid Values: AssignmentAccepted | AssignmentAbandoned | AssignmentReturned | AssignmentSubmitted | AssignmentRejected | AssignmentApproved | HITCreated | HITExtended | HITDisposed | HITReviewable | HITExpired | Ping. The Ping event is only valid for the SendTestEventNotification operation.

" + } + }, + "ExceptionMessage": { + "base": null, + "refs": { + "RequestError$Message": null, + "ServiceFault$Message": null + } + }, + "GetAccountBalanceRequest": { + "base": null, + "refs": { + } + }, + "GetAccountBalanceResponse": { + "base": null, + "refs": { + } + }, + "GetAssignmentRequest": { + "base": null, + "refs": { + } + }, + "GetAssignmentResponse": { + "base": null, + "refs": { + } + }, + "GetFileUploadURLRequest": { + "base": null, + "refs": { + } + }, + "GetFileUploadURLResponse": { + "base": null, + "refs": { + } + }, + "GetHITRequest": { + "base": null, + "refs": { + } + }, + "GetHITResponse": { + "base": null, + "refs": { + } + }, + "GetQualificationScoreRequest": { + "base": null, + "refs": { + } + }, + "GetQualificationScoreResponse": { + "base": null, + "refs": { + } + }, + "GetQualificationTypeRequest": { + "base": null, + "refs": { + } + }, + "GetQualificationTypeResponse": { + "base": null, + "refs": { + } + }, + "HIT": { + "base": "

The HIT data structure represents a single HIT, including all the information necessary for a Worker to accept and complete the HIT.

", + "refs": { + "CreateHITResponse$HIT": "

Contains the newly created HIT data. For a description of the HIT data structure as it appears in responses, see the HIT Data Structure documentation.

", + "CreateHITWithHITTypeResponse$HIT": "

Contains the newly created HIT data. For a description of the HIT data structure as it appears in responses, see the HIT Data Structure documentation.

", + "GetAssignmentResponse$HIT": "

The HIT associated with this assignment. The response includes one HIT element.

", + "GetHITResponse$HIT": "

Contains the requested HIT data.

", + "HITList$member": null + } + }, + "HITLayoutParameter": { + "base": "

The HITLayoutParameter data structure defines parameter values used with a HITLayout. A HITLayout is a reusable Amazon Mechanical Turk project template used to provide Human Intelligence Task (HIT) question data for CreateHIT.

", + "refs": { + "HITLayoutParameterList$member": null + } + }, + "HITLayoutParameterList": { + "base": null, + "refs": { + "CreateHITRequest$HITLayoutParameters": "

If the HITLayoutId is provided, any placeholder values must be filled in with values using the HITLayoutParameter structure. For more information, see HITLayout.

", + "CreateHITWithHITTypeRequest$HITLayoutParameters": "

If the HITLayoutId is provided, any placeholder values must be filled in with values using the HITLayoutParameter structure. For more information, see HITLayout.

" + } + }, + "HITList": { + "base": null, + "refs": { + "ListHITsForQualificationTypeResponse$HITs": "

The list of HIT elements returned by the query.

", + "ListHITsResponse$HITs": "

The list of HIT elements returned by the query.

", + "ListReviewableHITsResponse$HITs": "

The list of HIT elements returned by the query.

" + } + }, + "HITReviewStatus": { + "base": null, + "refs": { + "HIT$HITReviewStatus": "

Indicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.

" + } + }, + "HITStatus": { + "base": null, + "refs": { + "HIT$HITStatus": "

The status of the HIT and its assignments. Valid Values are Assignable | Unassignable | Reviewable | Reviewing | Disposed.

" + } + }, + "IdempotencyToken": { + "base": null, + "refs": { + "CreateAdditionalAssignmentsForHITRequest$UniqueRequestToken": "

A unique identifier for this request, which allows you to retry the call on error without extending the HIT multiple times. This is useful in cases such as network timeouts where it is unclear whether or not the call succeeded on the server. If the extend HIT already exists in the system from a previous call using the same UniqueRequestToken, subsequent calls will return an error with a message containing the request ID.

", + "CreateHITRequest$UniqueRequestToken": "

A unique identifier for this request which allows you to retry the call on error without creating duplicate HITs. This is useful in cases such as network timeouts where it is unclear whether or not the call succeeded on the server. If the HIT already exists in the system from a previous call using the same UniqueRequestToken, subsequent calls will return a AWS.MechanicalTurk.HitAlreadyExists error with a message containing the HITId.

Note: It is your responsibility to ensure uniqueness of the token. The unique token expires after 24 hours. Subsequent calls using the same UniqueRequestToken made after the 24 hour limit could create duplicate HITs.

", + "CreateHITWithHITTypeRequest$UniqueRequestToken": "

A unique identifier for this request which allows you to retry the call on error without creating duplicate HITs. This is useful in cases such as network timeouts where it is unclear whether or not the call succeeded on the server. If the HIT already exists in the system from a previous call using the same UniqueRequestToken, subsequent calls will return a AWS.MechanicalTurk.HitAlreadyExists error with a message containing the HITId.

Note: It is your responsibility to ensure uniqueness of the token. The unique token expires after 24 hours. Subsequent calls using the same UniqueRequestToken made after the 24 hour limit could create duplicate HITs.

", + "SendBonusRequest$UniqueRequestToken": "

A unique identifier for this request, which allows you to retry the call on error without granting multiple bonuses. This is useful in cases such as network timeouts where it is unclear whether or not the call succeeded on the server. If the bonus already exists in the system from a previous call using the same UniqueRequestToken, subsequent calls will return an error with a message containing the request ID.

" + } + }, + "Integer": { + "base": null, + "refs": { + "AcceptQualificationRequestRequest$IntegerValue": "

The value of the Qualification. You can omit this value if you are using the presence or absence of the Qualification as the basis for a HIT requirement.

", + "AssociateQualificationWithWorkerRequest$IntegerValue": "

The value of the Qualification to assign.

", + "CreateAdditionalAssignmentsForHITRequest$NumberOfAdditionalAssignments": "

The number of additional assignments to request for this HIT.

", + "CreateHITRequest$MaxAssignments": "

The number of times the HIT can be accepted and completed before the HIT becomes unavailable.

", + "CreateHITWithHITTypeRequest$MaxAssignments": "

The number of times the HIT can be accepted and completed before the HIT becomes unavailable.

", + "CreateQualificationTypeRequest$AutoGrantedValue": "

The Qualification value to use for automatically granted Qualifications. This parameter is used only if the AutoGranted parameter is true.

", + "HIT$MaxAssignments": "

The number of times the HIT can be accepted and completed before the HIT becomes unavailable.

", + "HIT$NumberOfAssignmentsPending": "

The number of assignments for this HIT that are being previewed or have been accepted by Workers, but have not yet been submitted, returned, or abandoned.

", + "HIT$NumberOfAssignmentsAvailable": "

The number of assignments for this HIT that are available for Workers to accept.

", + "HIT$NumberOfAssignmentsCompleted": "

The number of assignments for this HIT that have been approved or rejected.

", + "IntegerList$member": null, + "ListAssignmentsForHITResponse$NumResults": "

The number of assignments on the page in the filtered results list, equivalent to the number of assignments returned by this call.

", + "ListBonusPaymentsResponse$NumResults": "

The number of bonus payments on this page in the filtered results list, equivalent to the number of bonus payments being returned by this call.

", + "ListHITsForQualificationTypeResponse$NumResults": "

The number of HITs on this page in the filtered results list, equivalent to the number of HITs being returned by this call.

", + "ListHITsResponse$NumResults": "

The number of HITs on this page in the filtered results list, equivalent to the number of HITs being returned by this call.

", + "ListQualificationRequestsResponse$NumResults": "

The number of Qualification requests on this page in the filtered results list, equivalent to the number of Qualification requests being returned by this call.

", + "ListQualificationTypesResponse$NumResults": "

The number of Qualification types on this page in the filtered results list, equivalent to the number of types this operation returns.

", + "ListReviewableHITsResponse$NumResults": "

The number of HITs on this page in the filtered results list, equivalent to the number of HITs being returned by this call.

", + "ListWorkerBlocksResponse$NumResults": "

The number of assignments on the page in the filtered results list, equivalent to the number of assignments returned by this call.

", + "ListWorkersWithQualificationTypeResponse$NumResults": "

The number of Qualifications on this page in the filtered results list, equivalent to the number of Qualifications being returned by this call.

", + "Qualification$IntegerValue": "

The value (score) of the Qualification, if the Qualification has an integer value.

", + "QualificationType$AutoGrantedValue": "

The Qualification integer value to use for automatically granted Qualifications, if AutoGranted is true. This is 1 by default.

", + "UpdateQualificationTypeRequest$AutoGrantedValue": "

The Qualification value to use for automatically granted Qualifications. This parameter is used only if the AutoGranted parameter is true.

" + } + }, + "IntegerList": { + "base": null, + "refs": { + "QualificationRequirement$IntegerValues": "

The integer value to compare against the Qualification's value. IntegerValue must not be present if Comparator is Exists or DoesNotExist. IntegerValue can only be used if the Qualification type has an integer value; it cannot be used with the Worker_Locale QualificationType ID. When performing a set comparison by using the In or the NotIn comparator, you can use up to 15 IntegerValue elements in a QualificationRequirement data structure.

" + } + }, + "ListAssignmentsForHITRequest": { + "base": null, + "refs": { + } + }, + "ListAssignmentsForHITResponse": { + "base": null, + "refs": { + } + }, + "ListBonusPaymentsRequest": { + "base": null, + "refs": { + } + }, + "ListBonusPaymentsResponse": { + "base": null, + "refs": { + } + }, + "ListHITsForQualificationTypeRequest": { + "base": null, + "refs": { + } + }, + "ListHITsForQualificationTypeResponse": { + "base": null, + "refs": { + } + }, + "ListHITsRequest": { + "base": null, + "refs": { + } + }, + "ListHITsResponse": { + "base": null, + "refs": { + } + }, + "ListQualificationRequestsRequest": { + "base": null, + "refs": { + } + }, + "ListQualificationRequestsResponse": { + "base": null, + "refs": { + } + }, + "ListQualificationTypesRequest": { + "base": null, + "refs": { + } + }, + "ListQualificationTypesResponse": { + "base": null, + "refs": { + } + }, + "ListReviewPolicyResultsForHITRequest": { + "base": null, + "refs": { + } + }, + "ListReviewPolicyResultsForHITResponse": { + "base": null, + "refs": { + } + }, + "ListReviewableHITsRequest": { + "base": null, + "refs": { + } + }, + "ListReviewableHITsResponse": { + "base": null, + "refs": { + } + }, + "ListWorkerBlocksRequest": { + "base": null, + "refs": { + } + }, + "ListWorkerBlocksResponse": { + "base": null, + "refs": { + } + }, + "ListWorkersWithQualificationTypeRequest": { + "base": null, + "refs": { + } + }, + "ListWorkersWithQualificationTypeResponse": { + "base": null, + "refs": { + } + }, + "Locale": { + "base": "

The Locale data structure represents a geographical region or location.

", + "refs": { + "LocaleList$member": null, + "Qualification$LocaleValue": null + } + }, + "LocaleList": { + "base": null, + "refs": { + "QualificationRequirement$LocaleValues": "

The locale value to compare against the Qualification's value. The local value must be a valid ISO 3166 country code or supports ISO 3166-2 subdivisions. LocaleValue can only be used with a Worker_Locale QualificationType ID. LocaleValue can only be used with the EqualTo, NotEqualTo, In, and NotIn comparators. You must only use a single LocaleValue element when using the EqualTo or NotEqualTo comparators. When performing a set comparison by using the In or the NotIn comparator, you can use up to 30 LocaleValue elements in a QualificationRequirement data structure.

" + } + }, + "Long": { + "base": null, + "refs": { + "CreateHITRequest$AutoApprovalDelayInSeconds": "

The number of seconds after an assignment for the HIT has been submitted, after which the assignment is considered Approved automatically unless the Requester explicitly rejects it.

", + "CreateHITRequest$LifetimeInSeconds": "

An amount of time, in seconds, after which the HIT is no longer available for users to accept. After the lifetime of the HIT elapses, the HIT no longer appears in HIT searches, even if not all of the assignments for the HIT have been accepted.

", + "CreateHITRequest$AssignmentDurationInSeconds": "

The amount of time, in seconds, that a Worker has to complete the HIT after accepting it. If a Worker does not complete the assignment within the specified duration, the assignment is considered abandoned. If the HIT is still active (that is, its lifetime has not elapsed), the assignment becomes available for other users to find and accept.

", + "CreateHITTypeRequest$AutoApprovalDelayInSeconds": "

The number of seconds after an assignment for the HIT has been submitted, after which the assignment is considered Approved automatically unless the Requester explicitly rejects it.

", + "CreateHITTypeRequest$AssignmentDurationInSeconds": "

The amount of time, in seconds, that a Worker has to complete the HIT after accepting it. If a Worker does not complete the assignment within the specified duration, the assignment is considered abandoned. If the HIT is still active (that is, its lifetime has not elapsed), the assignment becomes available for other users to find and accept.

", + "CreateHITWithHITTypeRequest$LifetimeInSeconds": "

An amount of time, in seconds, after which the HIT is no longer available for users to accept. After the lifetime of the HIT elapses, the HIT no longer appears in HIT searches, even if not all of the assignments for the HIT have been accepted.

", + "CreateQualificationTypeRequest$RetryDelayInSeconds": "

The number of seconds that a Worker must wait after requesting a Qualification of the Qualification type before the worker can retry the Qualification request.

Constraints: None. If not specified, retries are disabled and Workers can request a Qualification of this type only once, even if the Worker has not been granted the Qualification. It is not possible to disable retries for a Qualification type after it has been created with retries enabled. If you want to disable retries, you must delete existing retry-enabled Qualification type and then create a new Qualification type with retries disabled.

", + "CreateQualificationTypeRequest$TestDurationInSeconds": "

The number of seconds the Worker has to complete the Qualification test, starting from the time the Worker requests the Qualification.

", + "HIT$AutoApprovalDelayInSeconds": "

The amount of time, in seconds, after the Worker submits an assignment for the HIT that the results are automatically approved by Amazon Mechanical Turk. This is the amount of time the Requester has to reject an assignment submitted by a Worker before the assignment is auto-approved and the Worker is paid.

", + "HIT$AssignmentDurationInSeconds": "

The length of time, in seconds, that a Worker has to complete the HIT after accepting it.

", + "QualificationType$TestDurationInSeconds": "

The amount of time, in seconds, given to a Worker to complete the Qualification test, beginning from the time the Worker requests the Qualification.

", + "QualificationType$RetryDelayInSeconds": "

The amount of time, in seconds, Workers must wait after taking the Qualification test before they can take it again. Workers can take a Qualification test multiple times if they were not granted the Qualification from a previous attempt, or if the test offers a gradient score and they want a better score. If not specified, retries are disabled and Workers can request a Qualification only once.

", + "UpdateQualificationTypeRequest$TestDurationInSeconds": "

The number of seconds the Worker has to complete the Qualification test, starting from the time the Worker requests the Qualification.

", + "UpdateQualificationTypeRequest$RetryDelayInSeconds": "

The amount of time, in seconds, that Workers must wait after requesting a Qualification of the specified Qualification type before they can retry the Qualification request. It is not possible to disable retries for a Qualification type after it has been created with retries enabled. If you want to disable retries, you must dispose of the existing retry-enabled Qualification type using DisposeQualificationType and then create a new Qualification type with retries disabled using CreateQualificationType.

" + } + }, + "NotificationSpecification": { + "base": "

The NotificationSpecification data structure describes a HIT event notification for a HIT type.

", + "refs": { + "SendTestEventNotificationRequest$Notification": "

The notification specification to test. This value is identical to the value you would provide to the UpdateNotificationSettings operation when you establish the notification specification for a HIT type.

", + "UpdateNotificationSettingsRequest$Notification": "

The notification specification for the HIT type.

" + } + }, + "NotificationTransport": { + "base": null, + "refs": { + "NotificationSpecification$Transport": "

The method Amazon Mechanical Turk uses to send the notification. Valid Values: Email | SQS.

" + } + }, + "NotifyWorkersFailureCode": { + "base": null, + "refs": { + "NotifyWorkersFailureStatus$NotifyWorkersFailureCode": "

Encoded value for the failure type.

" + } + }, + "NotifyWorkersFailureStatus": { + "base": "

When MTurk encounters an issue with notifying the Workers you specified, it returns back this object with failure details.

", + "refs": { + "NotifyWorkersFailureStatusList$member": null + } + }, + "NotifyWorkersFailureStatusList": { + "base": null, + "refs": { + "NotifyWorkersResponse$NotifyWorkersFailureStatuses": "

When MTurk sends notifications to the list of Workers, it returns back any failures it encounters in this list of NotifyWorkersFailureStatus objects.

" + } + }, + "NotifyWorkersRequest": { + "base": null, + "refs": { + } + }, + "NotifyWorkersResponse": { + "base": null, + "refs": { + } + }, + "NumericValue": { + "base": "

A string representing a numeric value.

", + "refs": { + "BonusPayment$BonusAmount": null, + "CreateHITRequest$Reward": "

The amount of money the Requester will pay a Worker for successfully completing the HIT.

", + "CreateHITTypeRequest$Reward": "

The amount of money the Requester will pay a Worker for successfully completing the HIT.

", + "GetAccountBalanceResponse$AvailableBalance": null, + "GetAccountBalanceResponse$OnHoldBalance": null, + "HIT$Reward": null, + "SendBonusRequest$BonusAmount": "

The Bonus amount is a US Dollar amount specified using a string (for example, \"5\" represents $5.00 USD and \"101.42\" represents $101.42 USD). Do not include currency symbols or currency codes.

" + } + }, + "PaginationToken": { + "base": "

If the previous response was incomplete (because there is more data to retrieve), Amazon Mechanical Turk returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

", + "refs": { + "ListAssignmentsForHITRequest$NextToken": "

Pagination token

", + "ListAssignmentsForHITResponse$NextToken": null, + "ListBonusPaymentsRequest$NextToken": "

Pagination token

", + "ListBonusPaymentsResponse$NextToken": null, + "ListHITsForQualificationTypeRequest$NextToken": "

Pagination Token

", + "ListHITsForQualificationTypeResponse$NextToken": null, + "ListHITsRequest$NextToken": "

Pagination token

", + "ListHITsResponse$NextToken": null, + "ListQualificationRequestsRequest$NextToken": null, + "ListQualificationRequestsResponse$NextToken": null, + "ListQualificationTypesRequest$NextToken": null, + "ListQualificationTypesResponse$NextToken": null, + "ListReviewPolicyResultsForHITRequest$NextToken": "

Pagination token

", + "ListReviewPolicyResultsForHITResponse$NextToken": null, + "ListReviewableHITsRequest$NextToken": "

Pagination Token

", + "ListReviewableHITsResponse$NextToken": null, + "ListWorkerBlocksRequest$NextToken": "

Pagination token

", + "ListWorkerBlocksResponse$NextToken": null, + "ListWorkersWithQualificationTypeRequest$NextToken": "

Pagination Token

", + "ListWorkersWithQualificationTypeResponse$NextToken": null + } + }, + "ParameterMapEntry": { + "base": "

This data structure is the data type for the AnswerKey parameter of the ScoreMyKnownAnswers/2011-09-01 Review Policy.

", + "refs": { + "ParameterMapEntryList$member": null + } + }, + "ParameterMapEntryList": { + "base": null, + "refs": { + "PolicyParameter$MapEntries": "

List of ParameterMapEntry objects.

" + } + }, + "PolicyParameter": { + "base": "

Name of the parameter from the Review policy.

", + "refs": { + "PolicyParameterList$member": null + } + }, + "PolicyParameterList": { + "base": null, + "refs": { + "ReviewPolicy$Parameters": "

Name of the parameter from the Review policy.

" + } + }, + "Qualification": { + "base": "

The Qualification data structure represents a Qualification assigned to a user, including the Qualification type and the value (score).

", + "refs": { + "GetQualificationScoreResponse$Qualification": "

The Qualification data structure of the Qualification assigned to a user, including the Qualification type and the value (score).

", + "QualificationList$member": null + } + }, + "QualificationList": { + "base": null, + "refs": { + "ListWorkersWithQualificationTypeResponse$Qualifications": "

The list of Qualification elements returned by this call.

" + } + }, + "QualificationRequest": { + "base": "

The QualificationRequest data structure represents a request a Worker has made for a Qualification.

", + "refs": { + "QualificationRequestList$member": null + } + }, + "QualificationRequestList": { + "base": null, + "refs": { + "ListQualificationRequestsResponse$QualificationRequests": "

The Qualification request. The response includes one QualificationRequest element for each Qualification request returned by the query.

" + } + }, + "QualificationRequirement": { + "base": "

The QualificationRequirement data structure describes a Qualification that a Worker must have before the Worker is allowed to accept a HIT. A requirement may optionally state that a Worker must have the Qualification in order to preview the HIT.

", + "refs": { + "QualificationRequirementList$member": null + } + }, + "QualificationRequirementList": { + "base": null, + "refs": { + "CreateHITRequest$QualificationRequirements": "

A condition that a Worker's Qualifications must meet before the Worker is allowed to accept and complete the HIT.

", + "CreateHITTypeRequest$QualificationRequirements": "

A condition that a Worker's Qualifications must meet before the Worker is allowed to accept and complete the HIT.

", + "HIT$QualificationRequirements": "

A condition that a Worker's Qualifications must meet in order to accept the HIT. A HIT can have between zero and ten Qualification requirements. All requirements must be met by a Worker's Qualifications for the Worker to accept the HIT.

" + } + }, + "QualificationStatus": { + "base": null, + "refs": { + "ListWorkersWithQualificationTypeRequest$Status": "

The status of the Qualifications to return. Can be Granted | Revoked.

", + "Qualification$Status": "

The status of the Qualification. Valid values are Granted | Revoked.

" + } + }, + "QualificationType": { + "base": "

The QualificationType data structure represents a Qualification type, a description of a property of a Worker that must match the requirements of a HIT for the Worker to be able to accept the HIT. The type also describes how a Worker can obtain a Qualification of that type, such as through a Qualification test.

", + "refs": { + "CreateQualificationTypeResponse$QualificationType": "

The created Qualification type, returned as a QualificationType data structure.

", + "GetQualificationTypeResponse$QualificationType": "

The returned Qualification Type

", + "QualificationTypeList$member": null, + "UpdateQualificationTypeResponse$QualificationType": "

Contains a QualificationType data structure.

" + } + }, + "QualificationTypeList": { + "base": null, + "refs": { + "ListQualificationTypesResponse$QualificationTypes": "

The list of QualificationType elements returned by the query.

" + } + }, + "QualificationTypeStatus": { + "base": null, + "refs": { + "CreateQualificationTypeRequest$QualificationTypeStatus": "

The initial status of the Qualification type.

Constraints: Valid values are: Active | Inactive

", + "QualificationType$QualificationTypeStatus": "

The status of the Qualification type. A Qualification type's status determines if users can apply to receive a Qualification of this type, and if HITs can be created with requirements based on this type. Valid values are Active | Inactive.

", + "UpdateQualificationTypeRequest$QualificationTypeStatus": "

The new status of the Qualification type - Active | Inactive

" + } + }, + "RejectAssignmentRequest": { + "base": null, + "refs": { + } + }, + "RejectAssignmentResponse": { + "base": null, + "refs": { + } + }, + "RejectQualificationRequestRequest": { + "base": null, + "refs": { + } + }, + "RejectQualificationRequestResponse": { + "base": null, + "refs": { + } + }, + "RequestError": { + "base": "

Your request is invalid.

", + "refs": { + } + }, + "ResultSize": { + "base": null, + "refs": { + "ListAssignmentsForHITRequest$MaxResults": null, + "ListBonusPaymentsRequest$MaxResults": null, + "ListHITsForQualificationTypeRequest$MaxResults": "

Limit the number of results returned.

", + "ListHITsRequest$MaxResults": null, + "ListQualificationRequestsRequest$MaxResults": "

The maximum number of results to return in a single call.

", + "ListQualificationTypesRequest$MaxResults": "

The maximum number of results to return in a single call.

", + "ListReviewPolicyResultsForHITRequest$MaxResults": "

Limit the number of results returned.

", + "ListReviewableHITsRequest$MaxResults": "

Limit the number of results returned.

", + "ListWorkerBlocksRequest$MaxResults": null, + "ListWorkersWithQualificationTypeRequest$MaxResults": "

Limit the number of results returned.

" + } + }, + "ReviewActionDetail": { + "base": "

Both the AssignmentReviewReport and the HITReviewReport elements contains the ReviewActionDetail data structure. This structure is returned multiple times for each action specified in the Review Policy.

", + "refs": { + "ReviewActionDetailList$member": null + } + }, + "ReviewActionDetailList": { + "base": null, + "refs": { + "ReviewReport$ReviewActions": "

A list of ReviewAction objects for each action specified in the Review Policy.

" + } + }, + "ReviewActionStatus": { + "base": null, + "refs": { + "ReviewActionDetail$Status": "

The current disposition of the action: INTENDED, SUCCEEDED, FAILED, or CANCELLED.

" + } + }, + "ReviewPolicy": { + "base": "

HIT Review Policy data structures represent HIT review policies, which you specify when you create a HIT.

", + "refs": { + "CreateHITRequest$AssignmentReviewPolicy": "

The Assignment-level Review Policy applies to the assignments under the HIT. You can specify for Mechanical Turk to take various actions based on the policy.

", + "CreateHITRequest$HITReviewPolicy": "

The HIT-level Review Policy applies to the HIT. You can specify for Mechanical Turk to take various actions based on the policy.

", + "CreateHITWithHITTypeRequest$AssignmentReviewPolicy": "

The Assignment-level Review Policy applies to the assignments under the HIT. You can specify for Mechanical Turk to take various actions based on the policy.

", + "CreateHITWithHITTypeRequest$HITReviewPolicy": "

The HIT-level Review Policy applies to the HIT. You can specify for Mechanical Turk to take various actions based on the policy.

", + "ListReviewPolicyResultsForHITResponse$AssignmentReviewPolicy": "

The name of the Assignment-level Review Policy. This contains only the PolicyName element.

", + "ListReviewPolicyResultsForHITResponse$HITReviewPolicy": "

The name of the HIT-level Review Policy. This contains only the PolicyName element.

" + } + }, + "ReviewPolicyLevel": { + "base": null, + "refs": { + "ReviewPolicyLevelList$member": null + } + }, + "ReviewPolicyLevelList": { + "base": null, + "refs": { + "ListReviewPolicyResultsForHITRequest$PolicyLevels": "

The Policy Level(s) to retrieve review results for - HIT or Assignment. If omitted, the default behavior is to retrieve all data for both policy levels. For a list of all the described policies, see Review Policies.

" + } + }, + "ReviewReport": { + "base": "

Contains both ReviewResult and ReviewAction elements for a particular HIT.

", + "refs": { + "ListReviewPolicyResultsForHITResponse$AssignmentReviewReport": "

Contains both ReviewResult and ReviewAction elements for an Assignment.

", + "ListReviewPolicyResultsForHITResponse$HITReviewReport": "

Contains both ReviewResult and ReviewAction elements for a particular HIT.

" + } + }, + "ReviewResultDetail": { + "base": "

This data structure is returned multiple times for each result specified in the Review Policy.

", + "refs": { + "ReviewResultDetailList$member": null + } + }, + "ReviewResultDetailList": { + "base": null, + "refs": { + "ReviewReport$ReviewResults": "

A list of ReviewResults objects for each action specified in the Review Policy.

" + } + }, + "ReviewableHITStatus": { + "base": null, + "refs": { + "ListReviewableHITsRequest$Status": "

Can be either Reviewable or Reviewing. Reviewable is the default value.

" + } + }, + "SendBonusRequest": { + "base": null, + "refs": { + } + }, + "SendBonusResponse": { + "base": null, + "refs": { + } + }, + "SendTestEventNotificationRequest": { + "base": null, + "refs": { + } + }, + "SendTestEventNotificationResponse": { + "base": null, + "refs": { + } + }, + "ServiceFault": { + "base": "

Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

", + "refs": { + } + }, + "String": { + "base": null, + "refs": { + "AcceptQualificationRequestRequest$QualificationRequestId": "

The ID of the Qualification request, as returned by the GetQualificationRequests operation.

", + "ApproveAssignmentRequest$RequesterFeedback": "

A message for the Worker, which the Worker can see in the Status section of the web site.

", + "Assignment$Answer": "

The Worker's answers submitted for the HIT contained in a QuestionFormAnswers document, if the Worker provides an answer. If the Worker does not provide any answers, Answer may contain a QuestionFormAnswers document, or Answer may be empty.

", + "Assignment$RequesterFeedback": "

The feedback string included with the call to the ApproveAssignment operation or the RejectAssignment operation, if the Requester approved or rejected the assignment and specified feedback.

", + "BonusPayment$Reason": "

The Reason text given when the bonus was granted, if any.

", + "CreateHITRequest$Title": "

The title of the HIT. A title should be short and descriptive about the kind of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT title appears in search results, and everywhere the HIT is mentioned.

", + "CreateHITRequest$Keywords": "

One or more words or phrases that describe the HIT, separated by commas. These words are used in searches to find HITs.

", + "CreateHITRequest$Description": "

A general description of the HIT. A description includes detailed information about the kind of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT description appears in the expanded view of search results, and in the HIT and assignment screens. A good description gives the user enough information to evaluate the HIT before accepting it.

", + "CreateHITRequest$Question": "

The data the person completing the HIT uses to produce the results.

Constraints: Must be a QuestionForm data structure, an ExternalQuestion data structure, or an HTMLQuestion data structure. The XML question data must not be larger than 64 kilobytes (65,535 bytes) in size, including whitespace.

Either a Question parameter or a HITLayoutId parameter must be provided.

", + "CreateHITRequest$RequesterAnnotation": "

An arbitrary data field. The RequesterAnnotation parameter lets your application attach arbitrary data to the HIT for tracking purposes. For example, this parameter could be an identifier internal to the Requester's application that corresponds with the HIT.

The RequesterAnnotation parameter for a HIT is only visible to the Requester who created the HIT. It is not shown to the Worker, or any other Requester.

The RequesterAnnotation parameter may be different for each HIT you submit. It does not affect how your HITs are grouped.

", + "CreateHITTypeRequest$Title": "

The title of the HIT. A title should be short and descriptive about the kind of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT title appears in search results, and everywhere the HIT is mentioned.

", + "CreateHITTypeRequest$Keywords": "

One or more words or phrases that describe the HIT, separated by commas. These words are used in searches to find HITs.

", + "CreateHITTypeRequest$Description": "

A general description of the HIT. A description includes detailed information about the kind of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT description appears in the expanded view of search results, and in the HIT and assignment screens. A good description gives the user enough information to evaluate the HIT before accepting it.

", + "CreateHITWithHITTypeRequest$Question": "

The data the person completing the HIT uses to produce the results.

Constraints: Must be a QuestionForm data structure, an ExternalQuestion data structure, or an HTMLQuestion data structure. The XML question data must not be larger than 64 kilobytes (65,535 bytes) in size, including whitespace.

Either a Question parameter or a HITLayoutId parameter must be provided.

", + "CreateHITWithHITTypeRequest$RequesterAnnotation": "

An arbitrary data field. The RequesterAnnotation parameter lets your application attach arbitrary data to the HIT for tracking purposes. For example, this parameter could be an identifier internal to the Requester's application that corresponds with the HIT.

The RequesterAnnotation parameter for a HIT is only visible to the Requester who created the HIT. It is not shown to the Worker, or any other Requester.

The RequesterAnnotation parameter may be different for each HIT you submit. It does not affect how your HITs are grouped.

", + "CreateQualificationTypeRequest$Name": "

The name you give to the Qualification type. The type name is used to represent the Qualification to Workers, and to find the type using a Qualification type search. It must be unique across all of your Qualification types.

", + "CreateQualificationTypeRequest$Keywords": "

One or more words or phrases that describe the Qualification type, separated by commas. The keywords of a type make the type easier to find during a search.

", + "CreateQualificationTypeRequest$Description": "

A long description for the Qualification type. On the Amazon Mechanical Turk website, the long description is displayed when a Worker examines a Qualification type.

", + "CreateQualificationTypeRequest$Test": "

The questions for the Qualification test a Worker must answer correctly to obtain a Qualification of this type. If this parameter is specified, TestDurationInSeconds must also be specified.

Constraints: Must not be longer than 65535 bytes. Must be a QuestionForm data structure. This parameter cannot be specified if AutoGranted is true.

Constraints: None. If not specified, the Worker may request the Qualification without answering any questions.

", + "CreateQualificationTypeRequest$AnswerKey": "

The answers to the Qualification test specified in the Test parameter, in the form of an AnswerKey data structure.

Constraints: Must not be longer than 65535 bytes.

Constraints: None. If not specified, you must process Qualification requests manually.

", + "CreateWorkerBlockRequest$Reason": "

A message explaining the reason for blocking the Worker. This parameter enables you to keep track of your Workers. The Worker does not see this message.

", + "DeleteWorkerBlockRequest$Reason": "

A message that explains the reason for unblocking the Worker. The Worker does not see this message.

", + "DisassociateQualificationFromWorkerRequest$Reason": "

A text message that explains why the Qualification was revoked. The user who had the Qualification sees this message.

", + "GetFileUploadURLRequest$QuestionIdentifier": "

The identifier of the question with a FileUploadAnswer, as specified in the QuestionForm of the HIT.

", + "GetFileUploadURLResponse$FileUploadURL": "

A temporary URL for the file that the Worker uploaded for the answer.

", + "HIT$Title": "

The title of the HIT.

", + "HIT$Description": "

A general description of the HIT.

", + "HIT$Question": "

The data the Worker completing the HIT uses produce the results. This is either either a QuestionForm, HTMLQuestion or an ExternalQuestion data structure.

", + "HIT$Keywords": "

One or more words or phrases that describe the HIT, separated by commas. Search terms similar to the keywords of a HIT are more likely to have the HIT in the search results.

", + "HIT$RequesterAnnotation": "

An arbitrary data field the Requester who created the HIT can use. This field is visible only to the creator of the HIT.

", + "HITLayoutParameter$Name": "

The name of the parameter in the HITLayout.

", + "HITLayoutParameter$Value": "

The value substituted for the parameter referenced in the HITLayout.

", + "ListQualificationTypesRequest$Query": "

A text query against all of the searchable attributes of Qualification types.

", + "NotificationSpecification$Destination": "

The destination for notification messages. or email notifications (if Transport is Email), this is an email address. For Amazon Simple Queue Service (Amazon SQS) notifications (if Transport is SQS), this is the URL for your Amazon SQS queue.

", + "NotificationSpecification$Version": "

The version of the Notification API to use. Valid value is 2006-05-05.

", + "NotifyWorkersFailureStatus$NotifyWorkersFailureMessage": "

A message detailing the reason the Worker could not be notified.

", + "NotifyWorkersRequest$Subject": "

The subject line of the email message to send. Can include up to 200 characters.

", + "NotifyWorkersRequest$MessageText": "

The text of the email message to send. Can include up to 4,096 characters

", + "ParameterMapEntry$Key": "

The QuestionID from the HIT that is used to identify which question requires Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review Policy.

", + "PolicyParameter$Key": "

Name of the parameter from the list of Review Polices.

", + "QualificationRequest$QualificationRequestId": "

The ID of the Qualification request, a unique identifier generated when the request was submitted.

", + "QualificationRequest$Test": "

The contents of the Qualification test that was presented to the Worker, if the type has a test and the Worker has submitted answers. This value is identical to the QuestionForm associated with the Qualification type at the time the Worker requests the Qualification.

", + "QualificationRequest$Answer": "

The Worker's answers for the Qualification type's test contained in a QuestionFormAnswers document, if the type has a test and the Worker has submitted answers. If the Worker does not provide any answers, Answer may be empty.

", + "QualificationRequirement$QualificationTypeId": "

The ID of the Qualification type for the requirement.

", + "QualificationType$Name": "

The name of the Qualification type. The type name is used to identify the type, and to find the type using a Qualification type search.

", + "QualificationType$Description": "

A long description for the Qualification type.

", + "QualificationType$Keywords": "

One or more words or phrases that describe theQualification type, separated by commas. The Keywords make the type easier to find using a search.

", + "QualificationType$Test": "

The questions for a Qualification test associated with this Qualification type that a user can take to obtain a Qualification of this type. This parameter must be specified if AnswerKey is present. A Qualification type cannot have both a specified Test parameter and an AutoGranted value of true.

", + "QualificationType$AnswerKey": "

The answers to the Qualification test specified in the Test parameter.

", + "RejectAssignmentRequest$RequesterFeedback": "

A message for the Worker, which the Worker can see in the Status section of the web site.

", + "RejectQualificationRequestRequest$QualificationRequestId": "

The ID of the Qualification request, as returned by the ListQualificationRequests operation.

", + "RejectQualificationRequestRequest$Reason": "

A text message explaining why the request was rejected, to be shown to the Worker who made the request.

", + "ReviewActionDetail$ActionName": "

The nature of the action itself. The Review Policy is responsible for examining the HIT and Assignments, emitting results, and deciding which other actions will be necessary.

", + "ReviewActionDetail$TargetType": "

The type of object in TargetId.

", + "ReviewActionDetail$Result": "

A description of the outcome of the review.

", + "ReviewActionDetail$ErrorCode": "

Present only when the Results have a FAILED Status.

", + "ReviewPolicy$PolicyName": "

Name of a Review Policy: SimplePlurality/2011-09-01 or ScoreMyKnownAnswers/2011-09-01

", + "ReviewResultDetail$SubjectType": "

The type of the object from the SubjectId field.

", + "ReviewResultDetail$Key": "

Key identifies the particular piece of reviewed information.

", + "ReviewResultDetail$Value": "

The values of Key provided by the review policies you have selected.

", + "SendBonusRequest$Reason": "

A message that explains the reason for the bonus payment. The Worker receiving the bonus can see this message.

", + "StringList$member": null, + "UpdateQualificationTypeRequest$Description": "

The new description of the Qualification type.

", + "UpdateQualificationTypeRequest$Test": "

The questions for the Qualification test a Worker must answer correctly to obtain a Qualification of this type. If this parameter is specified, TestDurationInSeconds must also be specified.

Constraints: Must not be longer than 65535 bytes. Must be a QuestionForm data structure. This parameter cannot be specified if AutoGranted is true.

Constraints: None. If not specified, the Worker may request the Qualification without answering any questions.

", + "UpdateQualificationTypeRequest$AnswerKey": "

The answers to the Qualification test specified in the Test parameter, in the form of an AnswerKey data structure.

", + "WorkerBlock$Reason": "

A message explaining the reason the Worker was blocked.

" + } + }, + "StringList": { + "base": null, + "refs": { + "ParameterMapEntry$Values": "

The list of answers to the question specified in the MapEntry Key element. The Worker must match all values in order for the answer to be scored correctly.

", + "PolicyParameter$Values": "

The list of values of the Parameter

" + } + }, + "Timestamp": { + "base": null, + "refs": { + "Assignment$AutoApprovalTime": "

If results have been submitted, AutoApprovalTime is the date and time the results of the assignment results are considered Approved automatically if they have not already been explicitly approved or rejected by the Requester. This value is derived from the auto-approval delay specified by the Requester in the HIT. This value is omitted from the assignment if the Worker has not yet submitted results.

", + "Assignment$AcceptTime": "

The date and time the Worker accepted the assignment.

", + "Assignment$SubmitTime": "

If the Worker has submitted results, SubmitTime is the date and time the assignment was submitted. This value is omitted from the assignment if the Worker has not yet submitted results.

", + "Assignment$ApprovalTime": "

If the Worker has submitted results and the Requester has approved the results, ApprovalTime is the date and time the Requester approved the results. This value is omitted from the assignment if the Requester has not yet approved the results.

", + "Assignment$RejectionTime": "

If the Worker has submitted results and the Requester has rejected the results, RejectionTime is the date and time the Requester rejected the results.

", + "Assignment$Deadline": "

The date and time of the deadline for the assignment. This value is derived from the deadline specification for the HIT and the date and time the Worker accepted the HIT.

", + "BonusPayment$GrantTime": "

The date and time of when the bonus was granted.

", + "HIT$CreationTime": "

The date and time the HIT was created.

", + "HIT$Expiration": "

The date and time the HIT expires.

", + "Qualification$GrantTime": "

The date and time the Qualification was granted to the Worker. If the Worker's Qualification was revoked, and then re-granted based on a new Qualification request, GrantTime is the date and time of the last call to the AcceptQualificationRequest operation.

", + "QualificationRequest$SubmitTime": "

The date and time the Qualification request had a status of Submitted. This is either the time the Worker submitted answers for a Qualification test, or the time the Worker requested the Qualification if the Qualification type does not have a test.

", + "QualificationType$CreationTime": "

The date and time the Qualification type was created.

", + "ReviewActionDetail$CompleteTime": "

The date when the action was completed.

", + "UpdateExpirationForHITRequest$ExpireAt": "

The date and time at which you want the HIT to expire

" + } + }, + "TurkErrorCode": { + "base": null, + "refs": { + "RequestError$TurkErrorCode": null, + "ServiceFault$TurkErrorCode": null + } + }, + "UpdateExpirationForHITRequest": { + "base": null, + "refs": { + } + }, + "UpdateExpirationForHITResponse": { + "base": null, + "refs": { + } + }, + "UpdateHITReviewStatusRequest": { + "base": null, + "refs": { + } + }, + "UpdateHITReviewStatusResponse": { + "base": null, + "refs": { + } + }, + "UpdateHITTypeOfHITRequest": { + "base": null, + "refs": { + } + }, + "UpdateHITTypeOfHITResponse": { + "base": null, + "refs": { + } + }, + "UpdateNotificationSettingsRequest": { + "base": null, + "refs": { + } + }, + "UpdateNotificationSettingsResponse": { + "base": null, + "refs": { + } + }, + "UpdateQualificationTypeRequest": { + "base": null, + "refs": { + } + }, + "UpdateQualificationTypeResponse": { + "base": null, + "refs": { + } + }, + "WorkerBlock": { + "base": "

The WorkerBlock data structure represents a Worker who has been blocked. It has two elements: the WorkerId and the Reason for the block.

", + "refs": { + "WorkerBlockList$member": null + } + }, + "WorkerBlockList": { + "base": null, + "refs": { + "ListWorkerBlocksResponse$WorkerBlocks": "

The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/mturk-requester/2017-01-17/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/mturk-requester/2017-01-17/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/mturk-requester/2017-01-17/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/mturk-requester/2017-01-17/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/mturk-requester/2017-01-17/paginators-1.json new file mode 100644 index 000000000..4a99bf712 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/mturk-requester/2017-01-17/paginators-1.json @@ -0,0 +1,54 @@ +{ + "pagination": { + "ListAssignmentsForHIT": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListBonusPayments": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListHITs": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListHITsForQualificationType": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListQualificationRequests": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListQualificationTypes": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListReviewPolicyResultsForHIT": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListReviewableHITs": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListWorkerBlocks": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListWorkersWithQualificationType": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/opsworks/2013-02-18/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/opsworks/2013-02-18/api-2.json index 931d1680e..b56536063 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/opsworks/2013-02-18/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/opsworks/2013-02-18/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"opsworks-2013-02-18", "apiVersion":"2013-02-18", "endpointPrefix":"opsworks", "jsonVersion":"1.1", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/opsworkscm/2016-11-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/opsworkscm/2016-11-01/api-2.json new file mode 100644 index 000000000..469fb481e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/opsworkscm/2016-11-01/api-2.json @@ -0,0 +1,730 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2016-11-01", + "endpointPrefix":"opsworks-cm", + "jsonVersion":"1.1", + "protocol":"json", + "serviceAbbreviation":"OpsWorksCM", + "serviceFullName":"AWS OpsWorks for Chef Automate", + "signatureVersion":"v4", + "signingName":"opsworks-cm", + "targetPrefix":"OpsWorksCM_V2016_11_01", + "uid":"opsworkscm-2016-11-01" + }, + "operations":{ + "AssociateNode":{ + "name":"AssociateNode", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateNodeRequest"}, + "output":{"shape":"AssociateNodeResponse"}, + "errors":[ + {"shape":"InvalidStateException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "CreateBackup":{ + "name":"CreateBackup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateBackupRequest"}, + "output":{"shape":"CreateBackupResponse"}, + "errors":[ + {"shape":"InvalidStateException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "CreateServer":{ + "name":"CreateServer", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateServerRequest"}, + "output":{"shape":"CreateServerResponse"}, + "errors":[ + {"shape":"LimitExceededException"}, + {"shape":"ResourceAlreadyExistsException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "DeleteBackup":{ + "name":"DeleteBackup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteBackupRequest"}, + "output":{"shape":"DeleteBackupResponse"}, + "errors":[ + {"shape":"InvalidStateException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "DeleteServer":{ + "name":"DeleteServer", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteServerRequest"}, + "output":{"shape":"DeleteServerResponse"}, + "errors":[ + {"shape":"InvalidStateException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "DescribeAccountAttributes":{ + "name":"DescribeAccountAttributes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeAccountAttributesRequest"}, + "output":{"shape":"DescribeAccountAttributesResponse"} + }, + "DescribeBackups":{ + "name":"DescribeBackups", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeBackupsRequest"}, + "output":{"shape":"DescribeBackupsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidNextTokenException"} + ] + }, + "DescribeEvents":{ + "name":"DescribeEvents", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeEventsRequest"}, + "output":{"shape":"DescribeEventsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DescribeNodeAssociationStatus":{ + "name":"DescribeNodeAssociationStatus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeNodeAssociationStatusRequest"}, + "output":{"shape":"DescribeNodeAssociationStatusResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "DescribeServers":{ + "name":"DescribeServers", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeServersRequest"}, + "output":{"shape":"DescribeServersResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidNextTokenException"} + ] + }, + "DisassociateNode":{ + "name":"DisassociateNode", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociateNodeRequest"}, + "output":{"shape":"DisassociateNodeResponse"}, + "errors":[ + {"shape":"InvalidStateException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "RestoreServer":{ + "name":"RestoreServer", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RestoreServerRequest"}, + "output":{"shape":"RestoreServerResponse"}, + "errors":[ + {"shape":"InvalidStateException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "StartMaintenance":{ + "name":"StartMaintenance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartMaintenanceRequest"}, + "output":{"shape":"StartMaintenanceResponse"}, + "errors":[ + {"shape":"InvalidStateException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "UpdateServer":{ + "name":"UpdateServer", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateServerRequest"}, + "output":{"shape":"UpdateServerResponse"}, + "errors":[ + {"shape":"InvalidStateException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "UpdateServerEngineAttributes":{ + "name":"UpdateServerEngineAttributes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateServerEngineAttributesRequest"}, + "output":{"shape":"UpdateServerEngineAttributesResponse"}, + "errors":[ + {"shape":"InvalidStateException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + } + }, + "shapes":{ + "AccountAttribute":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "Maximum":{"shape":"Integer"}, + "Used":{"shape":"Integer"} + } + }, + "AccountAttributes":{ + "type":"list", + "member":{"shape":"AccountAttribute"} + }, + "AssociateNodeRequest":{ + "type":"structure", + "required":[ + "ServerName", + "NodeName", + "EngineAttributes" + ], + "members":{ + "ServerName":{"shape":"ServerName"}, + "NodeName":{"shape":"NodeName"}, + "EngineAttributes":{"shape":"EngineAttributes"} + } + }, + "AssociateNodeResponse":{ + "type":"structure", + "members":{ + "NodeAssociationStatusToken":{"shape":"NodeAssociationStatusToken"} + } + }, + "AttributeName":{ + "type":"string", + "max":64, + "min":1, + "pattern":"[A-Z][A-Z0-9_]*" + }, + "AttributeValue":{"type":"string"}, + "Backup":{ + "type":"structure", + "members":{ + "BackupArn":{"shape":"String"}, + "BackupId":{"shape":"BackupId"}, + "BackupType":{"shape":"BackupType"}, + "CreatedAt":{"shape":"Timestamp"}, + "Description":{"shape":"String"}, + "Engine":{"shape":"String"}, + "EngineModel":{"shape":"String"}, + "EngineVersion":{"shape":"String"}, + "InstanceProfileArn":{"shape":"String"}, + "InstanceType":{"shape":"String"}, + "KeyPair":{"shape":"String"}, + "PreferredBackupWindow":{"shape":"TimeWindowDefinition"}, + "PreferredMaintenanceWindow":{"shape":"TimeWindowDefinition"}, + "S3DataSize":{ + "shape":"Integer", + "deprecated":true + }, + "S3DataUrl":{ + "shape":"String", + "deprecated":true + }, + "S3LogUrl":{"shape":"String"}, + "SecurityGroupIds":{"shape":"Strings"}, + "ServerName":{"shape":"ServerName"}, + "ServiceRoleArn":{"shape":"String"}, + "Status":{"shape":"BackupStatus"}, + "StatusDescription":{"shape":"String"}, + "SubnetIds":{"shape":"Strings"}, + "ToolsVersion":{"shape":"String"}, + "UserArn":{"shape":"String"} + } + }, + "BackupId":{ + "type":"string", + "max":79 + }, + "BackupRetentionCountDefinition":{ + "type":"integer", + "min":1 + }, + "BackupStatus":{ + "type":"string", + "enum":[ + "IN_PROGRESS", + "OK", + "FAILED", + "DELETING" + ] + }, + "BackupType":{ + "type":"string", + "enum":[ + "AUTOMATED", + "MANUAL" + ] + }, + "Backups":{ + "type":"list", + "member":{"shape":"Backup"} + }, + "Boolean":{"type":"boolean"}, + "CreateBackupRequest":{ + "type":"structure", + "required":["ServerName"], + "members":{ + "ServerName":{"shape":"ServerName"}, + "Description":{"shape":"String"} + } + }, + "CreateBackupResponse":{ + "type":"structure", + "members":{ + "Backup":{"shape":"Backup"} + } + }, + "CreateServerRequest":{ + "type":"structure", + "required":[ + "ServerName", + "InstanceProfileArn", + "InstanceType", + "ServiceRoleArn" + ], + "members":{ + "AssociatePublicIpAddress":{"shape":"Boolean"}, + "DisableAutomatedBackup":{"shape":"Boolean"}, + "Engine":{"shape":"String"}, + "EngineModel":{"shape":"String"}, + "EngineVersion":{"shape":"String"}, + "EngineAttributes":{"shape":"EngineAttributes"}, + "BackupRetentionCount":{"shape":"BackupRetentionCountDefinition"}, + "ServerName":{"shape":"ServerName"}, + "InstanceProfileArn":{"shape":"InstanceProfileArn"}, + "InstanceType":{"shape":"String"}, + "KeyPair":{"shape":"KeyPair"}, + "PreferredMaintenanceWindow":{"shape":"TimeWindowDefinition"}, + "PreferredBackupWindow":{"shape":"TimeWindowDefinition"}, + "SecurityGroupIds":{"shape":"Strings"}, + "ServiceRoleArn":{"shape":"ServiceRoleArn"}, + "SubnetIds":{"shape":"Strings"}, + "BackupId":{"shape":"BackupId"} + } + }, + "CreateServerResponse":{ + "type":"structure", + "members":{ + "Server":{"shape":"Server"} + } + }, + "DeleteBackupRequest":{ + "type":"structure", + "required":["BackupId"], + "members":{ + "BackupId":{"shape":"BackupId"} + } + }, + "DeleteBackupResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteServerRequest":{ + "type":"structure", + "required":["ServerName"], + "members":{ + "ServerName":{"shape":"ServerName"} + } + }, + "DeleteServerResponse":{ + "type":"structure", + "members":{ + } + }, + "DescribeAccountAttributesRequest":{ + "type":"structure", + "members":{ + } + }, + "DescribeAccountAttributesResponse":{ + "type":"structure", + "members":{ + "Attributes":{"shape":"AccountAttributes"} + } + }, + "DescribeBackupsRequest":{ + "type":"structure", + "members":{ + "BackupId":{"shape":"BackupId"}, + "ServerName":{"shape":"ServerName"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "DescribeBackupsResponse":{ + "type":"structure", + "members":{ + "Backups":{"shape":"Backups"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeEventsRequest":{ + "type":"structure", + "required":["ServerName"], + "members":{ + "ServerName":{"shape":"ServerName"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "DescribeEventsResponse":{ + "type":"structure", + "members":{ + "ServerEvents":{"shape":"ServerEvents"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeNodeAssociationStatusRequest":{ + "type":"structure", + "required":[ + "NodeAssociationStatusToken", + "ServerName" + ], + "members":{ + "NodeAssociationStatusToken":{"shape":"NodeAssociationStatusToken"}, + "ServerName":{"shape":"ServerName"} + } + }, + "DescribeNodeAssociationStatusResponse":{ + "type":"structure", + "members":{ + "NodeAssociationStatus":{"shape":"NodeAssociationStatus"} + } + }, + "DescribeServersRequest":{ + "type":"structure", + "members":{ + "ServerName":{"shape":"ServerName"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "DescribeServersResponse":{ + "type":"structure", + "members":{ + "Servers":{"shape":"Servers"}, + "NextToken":{"shape":"String"} + } + }, + "DisassociateNodeRequest":{ + "type":"structure", + "required":[ + "ServerName", + "NodeName" + ], + "members":{ + "ServerName":{"shape":"ServerName"}, + "NodeName":{"shape":"NodeName"}, + "EngineAttributes":{"shape":"EngineAttributes"} + } + }, + "DisassociateNodeResponse":{ + "type":"structure", + "members":{ + "NodeAssociationStatusToken":{"shape":"NodeAssociationStatusToken"} + } + }, + "EngineAttribute":{ + "type":"structure", + "members":{ + "Name":{"shape":"EngineAttributeName"}, + "Value":{"shape":"EngineAttributeValue"} + } + }, + "EngineAttributeName":{"type":"string"}, + "EngineAttributeValue":{ + "type":"string", + "sensitive":true + }, + "EngineAttributes":{ + "type":"list", + "member":{"shape":"EngineAttribute"} + }, + "InstanceProfileArn":{ + "type":"string", + "pattern":"arn:aws:iam::[0-9]{12}:instance-profile/.*" + }, + "Integer":{"type":"integer"}, + "InvalidNextTokenException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "InvalidStateException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "KeyPair":{"type":"string"}, + "LimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "MaintenanceStatus":{ + "type":"string", + "enum":[ + "SUCCESS", + "FAILED" + ] + }, + "MaxResults":{ + "type":"integer", + "min":1 + }, + "NextToken":{"type":"string"}, + "NodeAssociationStatus":{ + "type":"string", + "enum":[ + "SUCCESS", + "FAILED", + "IN_PROGRESS" + ] + }, + "NodeAssociationStatusToken":{"type":"string"}, + "NodeName":{ + "type":"string", + "pattern":"^[\\-\\p{Alnum}_:.]+$" + }, + "ResourceAlreadyExistsException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "RestoreServerRequest":{ + "type":"structure", + "required":[ + "BackupId", + "ServerName" + ], + "members":{ + "BackupId":{"shape":"BackupId"}, + "ServerName":{"shape":"ServerName"}, + "InstanceType":{"shape":"String"}, + "KeyPair":{"shape":"KeyPair"} + } + }, + "RestoreServerResponse":{ + "type":"structure", + "members":{ + } + }, + "Server":{ + "type":"structure", + "members":{ + "AssociatePublicIpAddress":{"shape":"Boolean"}, + "BackupRetentionCount":{"shape":"Integer"}, + "ServerName":{"shape":"String"}, + "CreatedAt":{"shape":"Timestamp"}, + "CloudFormationStackArn":{"shape":"String"}, + "DisableAutomatedBackup":{"shape":"Boolean"}, + "Endpoint":{"shape":"String"}, + "Engine":{"shape":"String"}, + "EngineModel":{"shape":"String"}, + "EngineAttributes":{"shape":"EngineAttributes"}, + "EngineVersion":{"shape":"String"}, + "InstanceProfileArn":{"shape":"String"}, + "InstanceType":{"shape":"String"}, + "KeyPair":{"shape":"String"}, + "MaintenanceStatus":{"shape":"MaintenanceStatus"}, + "PreferredMaintenanceWindow":{"shape":"TimeWindowDefinition"}, + "PreferredBackupWindow":{"shape":"TimeWindowDefinition"}, + "SecurityGroupIds":{"shape":"Strings"}, + "ServiceRoleArn":{"shape":"String"}, + "Status":{"shape":"ServerStatus"}, + "StatusReason":{"shape":"String"}, + "SubnetIds":{"shape":"Strings"}, + "ServerArn":{"shape":"String"} + } + }, + "ServerEvent":{ + "type":"structure", + "members":{ + "CreatedAt":{"shape":"Timestamp"}, + "ServerName":{"shape":"String"}, + "Message":{"shape":"String"}, + "LogUrl":{"shape":"String"} + } + }, + "ServerEvents":{ + "type":"list", + "member":{"shape":"ServerEvent"} + }, + "ServerName":{ + "type":"string", + "max":40, + "min":1, + "pattern":"[a-zA-Z][a-zA-Z0-9\\-]*" + }, + "ServerStatus":{ + "type":"string", + "enum":[ + "BACKING_UP", + "CONNECTION_LOST", + "CREATING", + "DELETING", + "MODIFYING", + "FAILED", + "HEALTHY", + "RUNNING", + "RESTORING", + "SETUP", + "UNDER_MAINTENANCE", + "UNHEALTHY", + "TERMINATED" + ] + }, + "Servers":{ + "type":"list", + "member":{"shape":"Server"} + }, + "ServiceRoleArn":{ + "type":"string", + "pattern":"arn:aws:iam::[0-9]{12}:role/.*" + }, + "StartMaintenanceRequest":{ + "type":"structure", + "required":["ServerName"], + "members":{ + "ServerName":{"shape":"ServerName"} + } + }, + "StartMaintenanceResponse":{ + "type":"structure", + "members":{ + "Server":{"shape":"Server"} + } + }, + "String":{"type":"string"}, + "Strings":{ + "type":"list", + "member":{"shape":"String"} + }, + "TimeWindowDefinition":{ + "type":"string", + "pattern":"^((Mon|Tue|Wed|Thu|Fri|Sat|Sun):)?([0-1][0-9]|2[0-3]):[0-5][0-9]$" + }, + "Timestamp":{"type":"timestamp"}, + "UpdateServerEngineAttributesRequest":{ + "type":"structure", + "required":[ + "ServerName", + "AttributeName" + ], + "members":{ + "ServerName":{"shape":"ServerName"}, + "AttributeName":{"shape":"AttributeName"}, + "AttributeValue":{"shape":"AttributeValue"} + } + }, + "UpdateServerEngineAttributesResponse":{ + "type":"structure", + "members":{ + "Server":{"shape":"Server"} + } + }, + "UpdateServerRequest":{ + "type":"structure", + "required":["ServerName"], + "members":{ + "DisableAutomatedBackup":{"shape":"Boolean"}, + "BackupRetentionCount":{"shape":"Integer"}, + "ServerName":{"shape":"ServerName"}, + "PreferredMaintenanceWindow":{"shape":"TimeWindowDefinition"}, + "PreferredBackupWindow":{"shape":"TimeWindowDefinition"} + } + }, + "UpdateServerResponse":{ + "type":"structure", + "members":{ + "Server":{"shape":"Server"} + } + }, + "ValidationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/opsworkscm/2016-11-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/opsworkscm/2016-11-01/docs-2.json new file mode 100644 index 000000000..87c5ff921 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/opsworkscm/2016-11-01/docs-2.json @@ -0,0 +1,513 @@ +{ + "version": "2.0", + "service": "AWS OpsWorks for Chef Automate

AWS OpsWorks for Chef Automate is a service that runs and manages configuration management servers.

Glossary of terms

  • Server: A configuration management server that can be highly-available. The configuration manager runs on your instances by using various AWS services, such as Amazon Elastic Compute Cloud (EC2), and potentially Amazon Relational Database Service (RDS). A server is a generic abstraction over the configuration manager that you want to use, much like Amazon RDS. In AWS OpsWorks for Chef Automate, you do not start or stop servers. After you create servers, they continue to run until they are deleted.

  • Engine: The specific configuration manager that you want to use (such as Chef) is the engine.

  • Backup: This is an application-level backup of the data that the configuration manager stores. A backup creates a .tar.gz file that is stored in an Amazon Simple Storage Service (S3) bucket in your account. AWS OpsWorks for Chef Automate creates the S3 bucket when you launch the first instance. A backup maintains a snapshot of all of a server's important attributes at the time of the backup.

  • Events: Events are always related to a server. Events are written during server creation, when health checks run, when backups are created, etc. When you delete a server, the server's events are also deleted.

  • AccountAttributes: Every account has attributes that are assigned in the AWS OpsWorks for Chef Automate database. These attributes store information about configuration limits (servers, backups, etc.) and your customer account.

Endpoints

AWS OpsWorks for Chef Automate supports the following endpoints, all HTTPS. You must connect to one of the following endpoints. Chef servers can only be accessed or managed within the endpoint in which they are created.

  • opsworks-cm.us-east-1.amazonaws.com

  • opsworks-cm.us-west-2.amazonaws.com

  • opsworks-cm.eu-west-1.amazonaws.com

Throttling limits

All API operations allow for five requests per second with a burst of 10 requests per second.

", + "operations": { + "AssociateNode": "

Associates a new node with the Chef server. This command is an alternative to knife bootstrap. For more information about how to disassociate a node, see DisassociateNode.

A node can can only be associated with servers that are in a HEALTHY state. Otherwise, an InvalidStateException is thrown. A ResourceNotFoundException is thrown when the server does not exist. A ValidationException is raised when parameters of the request are not valid. The AssociateNode API call can be integrated into Auto Scaling configurations, AWS Cloudformation templates, or the user data of a server's instance.

Example: aws opsworks-cm associate-node --server-name MyServer --node-name MyManagedNode --engine-attributes \"Name=MyOrganization,Value=default\" \"Name=Chef_node_public_key,Value=Public_key_contents\"

", + "CreateBackup": "

Creates an application-level backup of a server. While the server is in the BACKING_UP state, the server cannot be changed, and no additional backup can be created.

Backups can be created for servers in RUNNING, HEALTHY, and UNHEALTHY states. By default, you can create a maximum of 50 manual backups.

This operation is asynchronous.

A LimitExceededException is thrown when the maximum number of manual backups is reached. An InvalidStateException is thrown when the server is not in any of the following states: RUNNING, HEALTHY, or UNHEALTHY. A ResourceNotFoundException is thrown when the server is not found. A ValidationException is thrown when parameters of the request are not valid.

", + "CreateServer": "

Creates and immedately starts a new server. The server is ready to use when it is in the HEALTHY state. By default, you can create a maximum of 10 servers.

This operation is asynchronous.

A LimitExceededException is thrown when you have created the maximum number of servers (10). A ResourceAlreadyExistsException is thrown when a server with the same name already exists in the account. A ResourceNotFoundException is thrown when you specify a backup ID that is not valid or is for a backup that does not exist. A ValidationException is thrown when parameters of the request are not valid.

If you do not specify a security group by adding the SecurityGroupIds parameter, AWS OpsWorks creates a new security group. The default security group opens the Chef server to the world on TCP port 443. If a KeyName is present, AWS OpsWorks enables SSH access. SSH is also open to the world on TCP port 22.

By default, the Chef Server is accessible from any IP address. We recommend that you update your security group rules to allow access from known IP addresses and address ranges only. To edit security group rules, open Security Groups in the navigation pane of the EC2 management console.

", + "DeleteBackup": "

Deletes a backup. You can delete both manual and automated backups. This operation is asynchronous.

An InvalidStateException is thrown when a backup deletion is already in progress. A ResourceNotFoundException is thrown when the backup does not exist. A ValidationException is thrown when parameters of the request are not valid.

", + "DeleteServer": "

Deletes the server and the underlying AWS CloudFormation stack (including the server's EC2 instance). When you run this command, the server state is updated to DELETING. After the server is deleted, it is no longer returned by DescribeServer requests. If the AWS CloudFormation stack cannot be deleted, the server cannot be deleted.

This operation is asynchronous.

An InvalidStateException is thrown when a server deletion is already in progress. A ResourceNotFoundException is thrown when the server does not exist. A ValidationException is raised when parameters of the request are not valid.

", + "DescribeAccountAttributes": "

Describes your account attributes, and creates requests to increase limits before they are reached or exceeded.

This operation is synchronous.

", + "DescribeBackups": "

Describes backups. The results are ordered by time, with newest backups first. If you do not specify a BackupId or ServerName, the command returns all backups.

This operation is synchronous.

A ResourceNotFoundException is thrown when the backup does not exist. A ValidationException is raised when parameters of the request are not valid.

", + "DescribeEvents": "

Describes events for a specified server. Results are ordered by time, with newest events first.

This operation is synchronous.

A ResourceNotFoundException is thrown when the server does not exist. A ValidationException is raised when parameters of the request are not valid.

", + "DescribeNodeAssociationStatus": "

Returns the current status of an existing association or disassociation request.

A ResourceNotFoundException is thrown when no recent association or disassociation request with the specified token is found, or when the server does not exist. A ValidationException is raised when parameters of the request are not valid.

", + "DescribeServers": "

Lists all configuration management servers that are identified with your account. Only the stored results from Amazon DynamoDB are returned. AWS OpsWorks for Chef Automate does not query other services.

This operation is synchronous.

A ResourceNotFoundException is thrown when the server does not exist. A ValidationException is raised when parameters of the request are not valid.

", + "DisassociateNode": "

Disassociates a node from a Chef server, and removes the node from the Chef server's managed nodes. After a node is disassociated, the node key pair is no longer valid for accessing the Chef API. For more information about how to associate a node, see AssociateNode.

A node can can only be disassociated from a server that is in a HEALTHY state. Otherwise, an InvalidStateException is thrown. A ResourceNotFoundException is thrown when the server does not exist. A ValidationException is raised when parameters of the request are not valid.

", + "RestoreServer": "

Restores a backup to a server that is in a CONNECTION_LOST, HEALTHY, RUNNING, UNHEALTHY, or TERMINATED state. When you run RestoreServer, the server's EC2 instance is deleted, and a new EC2 instance is configured. RestoreServer maintains the existing server endpoint, so configuration management of the server's client devices (nodes) should continue to work.

This operation is asynchronous.

An InvalidStateException is thrown when the server is not in a valid state. A ResourceNotFoundException is thrown when the server does not exist. A ValidationException is raised when parameters of the request are not valid.

", + "StartMaintenance": "

Manually starts server maintenance. This command can be useful if an earlier maintenance attempt failed, and the underlying cause of maintenance failure has been resolved. The server is in an UNDER_MAINTENANCE state while maintenance is in progress.

Maintenance can only be started on servers in HEALTHY and UNHEALTHY states. Otherwise, an InvalidStateException is thrown. A ResourceNotFoundException is thrown when the server does not exist. A ValidationException is raised when parameters of the request are not valid.

", + "UpdateServer": "

Updates settings for a server.

This operation is synchronous.

", + "UpdateServerEngineAttributes": "

Updates engine-specific attributes on a specified server. The server enters the MODIFYING state when this operation is in progress. Only one update can occur at a time. You can use this command to reset the Chef server's private key (CHEF_PIVOTAL_KEY).

This operation is asynchronous.

This operation can only be called for servers in HEALTHY or UNHEALTHY states. Otherwise, an InvalidStateException is raised. A ResourceNotFoundException is thrown when the server does not exist. A ValidationException is raised when parameters of the request are not valid.

" + }, + "shapes": { + "AccountAttribute": { + "base": "

Stores account attributes.

", + "refs": { + "AccountAttributes$member": null + } + }, + "AccountAttributes": { + "base": "

A list of individual account attributes.

", + "refs": { + "DescribeAccountAttributesResponse$Attributes": "

The attributes that are currently set for the account.

" + } + }, + "AssociateNodeRequest": { + "base": null, + "refs": { + } + }, + "AssociateNodeResponse": { + "base": null, + "refs": { + } + }, + "AttributeName": { + "base": null, + "refs": { + "UpdateServerEngineAttributesRequest$AttributeName": "

The name of the engine attribute to update.

" + } + }, + "AttributeValue": { + "base": null, + "refs": { + "UpdateServerEngineAttributesRequest$AttributeValue": "

The value to set for the attribute.

" + } + }, + "Backup": { + "base": "

Describes a single backup.

", + "refs": { + "Backups$member": null, + "CreateBackupResponse$Backup": "

Backup created by request.

" + } + }, + "BackupId": { + "base": null, + "refs": { + "Backup$BackupId": "

The generated ID of the backup. Example: myServerName-yyyyMMddHHmmssSSS

", + "CreateServerRequest$BackupId": "

If you specify this field, AWS OpsWorks for Chef Automate creates the server by using the backup represented by BackupId.

", + "DeleteBackupRequest$BackupId": "

The ID of the backup to delete. Run the DescribeBackups command to get a list of backup IDs. Backup IDs are in the format ServerName-yyyyMMddHHmmssSSS.

", + "DescribeBackupsRequest$BackupId": "

Describes a single backup.

", + "RestoreServerRequest$BackupId": "

The ID of the backup that you want to use to restore a server.

" + } + }, + "BackupRetentionCountDefinition": { + "base": null, + "refs": { + "CreateServerRequest$BackupRetentionCount": "

The number of automated backups that you want to keep. Whenever a new backup is created, AWS OpsWorks for Chef Automate deletes the oldest backups if this number is exceeded. The default value is 1.

" + } + }, + "BackupStatus": { + "base": null, + "refs": { + "Backup$Status": "

The status of a backup while in progress.

" + } + }, + "BackupType": { + "base": null, + "refs": { + "Backup$BackupType": "

The backup type. Valid values are automated or manual.

" + } + }, + "Backups": { + "base": null, + "refs": { + "DescribeBackupsResponse$Backups": "

Contains the response to a DescribeBackups request.

" + } + }, + "Boolean": { + "base": null, + "refs": { + "CreateServerRequest$AssociatePublicIpAddress": "

Associate a public IP address with a server that you are launching. Valid values are true or false. The default value is true.

", + "CreateServerRequest$DisableAutomatedBackup": "

Enable or disable scheduled backups. Valid values are true or false. The default value is true.

", + "Server$AssociatePublicIpAddress": "

Associate a public IP address with a server that you are launching.

", + "Server$DisableAutomatedBackup": "

Disables automated backups. The number of stored backups is dependent on the value of PreferredBackupCount.

", + "UpdateServerRequest$DisableAutomatedBackup": "

Setting DisableAutomatedBackup to true disables automated or scheduled backups. Automated backups are enabled by default.

" + } + }, + "CreateBackupRequest": { + "base": null, + "refs": { + } + }, + "CreateBackupResponse": { + "base": null, + "refs": { + } + }, + "CreateServerRequest": { + "base": null, + "refs": { + } + }, + "CreateServerResponse": { + "base": null, + "refs": { + } + }, + "DeleteBackupRequest": { + "base": null, + "refs": { + } + }, + "DeleteBackupResponse": { + "base": null, + "refs": { + } + }, + "DeleteServerRequest": { + "base": null, + "refs": { + } + }, + "DeleteServerResponse": { + "base": null, + "refs": { + } + }, + "DescribeAccountAttributesRequest": { + "base": null, + "refs": { + } + }, + "DescribeAccountAttributesResponse": { + "base": null, + "refs": { + } + }, + "DescribeBackupsRequest": { + "base": null, + "refs": { + } + }, + "DescribeBackupsResponse": { + "base": null, + "refs": { + } + }, + "DescribeEventsRequest": { + "base": null, + "refs": { + } + }, + "DescribeEventsResponse": { + "base": null, + "refs": { + } + }, + "DescribeNodeAssociationStatusRequest": { + "base": null, + "refs": { + } + }, + "DescribeNodeAssociationStatusResponse": { + "base": null, + "refs": { + } + }, + "DescribeServersRequest": { + "base": null, + "refs": { + } + }, + "DescribeServersResponse": { + "base": null, + "refs": { + } + }, + "DisassociateNodeRequest": { + "base": null, + "refs": { + } + }, + "DisassociateNodeResponse": { + "base": null, + "refs": { + } + }, + "EngineAttribute": { + "base": "

A name and value pair that is specific to the engine of the server.

", + "refs": { + "EngineAttributes$member": null + } + }, + "EngineAttributeName": { + "base": null, + "refs": { + "EngineAttribute$Name": "

The name of the engine attribute.

" + } + }, + "EngineAttributeValue": { + "base": null, + "refs": { + "EngineAttribute$Value": "

The value of the engine attribute.

" + } + }, + "EngineAttributes": { + "base": null, + "refs": { + "AssociateNodeRequest$EngineAttributes": "

Engine attributes used for associating the node.

Attributes accepted in a AssociateNode request:

  • CHEF_ORGANIZATION: The Chef organization with which the node is associated. By default only one organization named default can exist.

  • CHEF_NODE_PUBLIC_KEY: A PEM-formatted public key. This key is required for the chef-client agent to access the Chef API.

", + "CreateServerRequest$EngineAttributes": "

Optional engine attributes on a specified server.

Attributes accepted in a createServer request:

  • CHEF_PIVOTAL_KEY: A base64-encoded RSA private key that is not stored by AWS OpsWorks for Chef. This private key is required to access the Chef API. When no CHEF_PIVOTAL_KEY is set, one is generated and returned in the response.

  • CHEF_DELIVERY_ADMIN_PASSWORD: The password for the administrative user in the Chef Automate GUI. The password length is a minimum of eight characters, and a maximum of 32. The password can contain letters, numbers, and special characters (!/@#$%^&+=_). The password must contain at least one lower case letter, one upper case letter, one number, and one special character. When no CHEF_DELIVERY_ADMIN_PASSWORD is set, one is generated and returned in the response.

", + "DisassociateNodeRequest$EngineAttributes": "

Engine attributes used for disassociating the node.

Attributes accepted in a DisassociateNode request:

  • CHEF_ORGANIZATION: The Chef organization with which the node was associated. By default only one organization named default can exist.

", + "Server$EngineAttributes": "

The response of a createServer() request returns the master credential to access the server in EngineAttributes. These credentials are not stored by AWS OpsWorks for Chef Automate; they are returned only as part of the result of createServer().

Attributes returned in a createServer response:

  • CHEF_PIVOTAL_KEY: A base64-encoded RSA private key that is generated by AWS OpsWorks for Chef Automate. This private key is required to access the Chef API.

  • CHEF_STARTER_KIT: A base64-encoded ZIP file. The ZIP file contains a Chef starter kit, which includes a README, a configuration file, and the required RSA private key. Save this file, unzip it, and then change to the directory where you've unzipped the file contents. From this directory, you can run Knife commands.

" + } + }, + "InstanceProfileArn": { + "base": null, + "refs": { + "CreateServerRequest$InstanceProfileArn": "

The ARN of the instance profile that your Amazon EC2 instances use. Although the AWS OpsWorks console typically creates the instance profile for you, if you are using API commands instead, run the service-role-creation.yaml AWS CloudFormation template, located at https://s3.amazonaws.com/opsworks-cm-us-east-1-prod-default-assets/misc/opsworks-cm-roles.yaml. This template creates a CloudFormation stack that includes the instance profile you need.

" + } + }, + "Integer": { + "base": null, + "refs": { + "AccountAttribute$Maximum": "

The maximum allowed value.

", + "AccountAttribute$Used": "

The current usage, such as the current number of servers that are associated with the account.

", + "Backup$S3DataSize": "

This field is deprecated and is no longer used.

", + "Server$BackupRetentionCount": "

The number of automated backups to keep.

", + "UpdateServerRequest$BackupRetentionCount": "

Sets the number of automated backups that you want to keep.

" + } + }, + "InvalidNextTokenException": { + "base": "

This occurs when the provided nextToken is not valid.

", + "refs": { + } + }, + "InvalidStateException": { + "base": "

The resource is in a state that does not allow you to perform a specified action.

", + "refs": { + } + }, + "KeyPair": { + "base": null, + "refs": { + "CreateServerRequest$KeyPair": "

The Amazon EC2 key pair to set for the instance. This parameter is optional; if desired, you may specify this parameter to connect to your instances by using SSH.

", + "RestoreServerRequest$KeyPair": "

The name of the key pair to set on the new EC2 instance. This can be helpful if the administrator no longer has the SSH key.

" + } + }, + "LimitExceededException": { + "base": "

The limit of servers or backups has been reached.

", + "refs": { + } + }, + "MaintenanceStatus": { + "base": null, + "refs": { + "Server$MaintenanceStatus": "

The status of the most recent server maintenance run. Shows SUCCESS or FAILED.

" + } + }, + "MaxResults": { + "base": null, + "refs": { + "DescribeBackupsRequest$MaxResults": "

To receive a paginated response, use this parameter to specify the maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.

", + "DescribeEventsRequest$MaxResults": "

To receive a paginated response, use this parameter to specify the maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.

", + "DescribeServersRequest$MaxResults": "

To receive a paginated response, use this parameter to specify the maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.

" + } + }, + "NextToken": { + "base": null, + "refs": { + "DescribeBackupsRequest$NextToken": "

NextToken is a string that is returned in some command responses. It indicates that not all entries have been returned, and that you must run at least one more request to get remaining items. To get remaining results, call DescribeBackups again, and assign the token from the previous results as the value of the nextToken parameter. If there are no more results, the response object's nextToken parameter value is null. Setting a nextToken value that was not returned in your previous results causes an InvalidNextTokenException to occur.

", + "DescribeEventsRequest$NextToken": "

NextToken is a string that is returned in some command responses. It indicates that not all entries have been returned, and that you must run at least one more request to get remaining items. To get remaining results, call DescribeEvents again, and assign the token from the previous results as the value of the nextToken parameter. If there are no more results, the response object's nextToken parameter value is null. Setting a nextToken value that was not returned in your previous results causes an InvalidNextTokenException to occur.

", + "DescribeServersRequest$NextToken": "

NextToken is a string that is returned in some command responses. It indicates that not all entries have been returned, and that you must run at least one more request to get remaining items. To get remaining results, call DescribeServers again, and assign the token from the previous results as the value of the nextToken parameter. If there are no more results, the response object's nextToken parameter value is null. Setting a nextToken value that was not returned in your previous results causes an InvalidNextTokenException to occur.

" + } + }, + "NodeAssociationStatus": { + "base": "

The status of the association or disassociation request.

Possible values:

  • SUCCESS: The association or disassociation succeeded.

  • FAILED: The association or disassociation failed.

  • IN_PROGRESS: The association or disassociation is still in progress.

", + "refs": { + "DescribeNodeAssociationStatusResponse$NodeAssociationStatus": "

The status of the association or disassociation request.

Possible values:

  • SUCCESS: The association or disassociation succeeded.

  • FAILED: The association or disassociation failed.

  • IN_PROGRESS: The association or disassociation is still in progress.

" + } + }, + "NodeAssociationStatusToken": { + "base": null, + "refs": { + "AssociateNodeResponse$NodeAssociationStatusToken": "

Contains a token which can be passed to the DescribeNodeAssociationStatus API call to get the status of the association request.

", + "DescribeNodeAssociationStatusRequest$NodeAssociationStatusToken": null, + "DisassociateNodeResponse$NodeAssociationStatusToken": "

Contains a token which can be passed to the DescribeNodeAssociationStatus API call to get the status of the disassociation request.

" + } + }, + "NodeName": { + "base": "

The node name that is used by chef-client for a new node. For more information, see the Chef Documentation.

", + "refs": { + "AssociateNodeRequest$NodeName": "

The name of the Chef client node.

", + "DisassociateNodeRequest$NodeName": "

The name of the Chef client node.

" + } + }, + "ResourceAlreadyExistsException": { + "base": "

The requested resource cannot be created because it already exists.

", + "refs": { + } + }, + "ResourceNotFoundException": { + "base": "

The requested resource does not exist, or access was denied.

", + "refs": { + } + }, + "RestoreServerRequest": { + "base": null, + "refs": { + } + }, + "RestoreServerResponse": { + "base": null, + "refs": { + } + }, + "Server": { + "base": "

Describes a configuration management server.

", + "refs": { + "CreateServerResponse$Server": "

The server that is created by the request.

", + "Servers$member": null, + "StartMaintenanceResponse$Server": "

Contains the response to a StartMaintenance request.

", + "UpdateServerEngineAttributesResponse$Server": "

Contains the response to an UpdateServerEngineAttributes request.

", + "UpdateServerResponse$Server": "

Contains the response to a UpdateServer request.

" + } + }, + "ServerEvent": { + "base": "

An event that is related to the server, such as the start of maintenance or backup.

", + "refs": { + "ServerEvents$member": null + } + }, + "ServerEvents": { + "base": null, + "refs": { + "DescribeEventsResponse$ServerEvents": "

Contains the response to a DescribeEvents request.

" + } + }, + "ServerName": { + "base": null, + "refs": { + "AssociateNodeRequest$ServerName": "

The name of the server with which to associate the node.

", + "Backup$ServerName": "

The name of the server from which the backup was made.

", + "CreateBackupRequest$ServerName": "

The name of the server that you want to back up.

", + "CreateServerRequest$ServerName": "

The name of the server. The server name must be unique within your AWS account, within each region. Server names must start with a letter; then letters, numbers, or hyphens (-) are allowed, up to a maximum of 40 characters.

", + "DeleteServerRequest$ServerName": "

The ID of the server to delete.

", + "DescribeBackupsRequest$ServerName": "

Returns backups for the server with the specified ServerName.

", + "DescribeEventsRequest$ServerName": "

The name of the server for which you want to view events.

", + "DescribeNodeAssociationStatusRequest$ServerName": "

The name of the server from which to disassociate the node.

", + "DescribeServersRequest$ServerName": "

Describes the server with the specified ServerName.

", + "DisassociateNodeRequest$ServerName": "

The name of the server from which to disassociate the node.

", + "RestoreServerRequest$ServerName": "

The name of the server that you want to restore.

", + "StartMaintenanceRequest$ServerName": "

The name of the server on which to run maintenance.

", + "UpdateServerEngineAttributesRequest$ServerName": "

The name of the server to update.

", + "UpdateServerRequest$ServerName": "

The name of the server to update.

" + } + }, + "ServerStatus": { + "base": null, + "refs": { + "Server$Status": "

The server's status. This field displays the states of actions in progress, such as creating, running, or backing up the server, as well as the server's health state.

" + } + }, + "Servers": { + "base": null, + "refs": { + "DescribeServersResponse$Servers": "

Contains the response to a DescribeServers request.

" + } + }, + "ServiceRoleArn": { + "base": null, + "refs": { + "CreateServerRequest$ServiceRoleArn": "

The service role that the AWS OpsWorks for Chef Automate service backend uses to work with your account. Although the AWS OpsWorks management console typically creates the service role for you, if you are using the AWS CLI or API commands, run the service-role-creation.yaml AWS CloudFormation template, located at https://s3.amazonaws.com/opsworks-stuff/latest/service-role-creation.yaml. This template creates a CloudFormation stack that includes the service role that you need.

" + } + }, + "StartMaintenanceRequest": { + "base": null, + "refs": { + } + }, + "StartMaintenanceResponse": { + "base": null, + "refs": { + } + }, + "String": { + "base": null, + "refs": { + "AccountAttribute$Name": "

The attribute name. The following are supported attribute names.

  • ServerLimit: The number of current servers/maximum number of servers allowed. By default, you can have a maximum of 10 servers.

  • ManualBackupLimit: The number of current manual backups/maximum number of backups allowed. By default, you can have a maximum of 50 manual backups saved.

", + "Backup$BackupArn": "

The ARN of the backup.

", + "Backup$Description": "

A user-provided description for a manual backup. This field is empty for automated backups.

", + "Backup$Engine": "

The engine type that is obtained from the server when the backup is created.

", + "Backup$EngineModel": "

The engine model that is obtained from the server when the backup is created.

", + "Backup$EngineVersion": "

The engine version that is obtained from the server when the backup is created.

", + "Backup$InstanceProfileArn": "

The EC2 instance profile ARN that is obtained from the server when the backup is created. Because this value is stored, you are not required to provide the InstanceProfileArn again if you restore a backup.

", + "Backup$InstanceType": "

The instance type that is obtained from the server when the backup is created.

", + "Backup$KeyPair": "

The key pair that is obtained from the server when the backup is created.

", + "Backup$S3DataUrl": "

This field is deprecated and is no longer used.

", + "Backup$S3LogUrl": "

The Amazon S3 URL of the backup's log file.

", + "Backup$ServiceRoleArn": "

The service role ARN that is obtained from the server when the backup is created.

", + "Backup$StatusDescription": "

An informational message about backup status.

", + "Backup$ToolsVersion": "

The version of AWS OpsWorks for Chef Automate-specific tools that is obtained from the server when the backup is created.

", + "Backup$UserArn": "

The IAM user ARN of the requester for manual backups. This field is empty for automated backups.

", + "CreateBackupRequest$Description": "

A user-defined description of the backup.

", + "CreateServerRequest$Engine": "

The configuration management engine to use. Valid values include Chef.

", + "CreateServerRequest$EngineModel": "

The engine model, or option. Valid values include Single.

", + "CreateServerRequest$EngineVersion": "

The major release version of the engine that you want to use. Values depend on the engine that you choose.

", + "CreateServerRequest$InstanceType": "

The Amazon EC2 instance type to use. Valid values must be specified in the following format: ^([cm][34]|t2).* For example, m4.large. Valid values are t2.medium, m4.large, or m4.2xlarge.

", + "DescribeBackupsResponse$NextToken": "

NextToken is a string that is returned in some command responses. It indicates that not all entries have been returned, and that you must run at least one more request to get remaining items. To get remaining results, call DescribeBackups again, and assign the token from the previous results as the value of the nextToken parameter. If there are no more results, the response object's nextToken parameter value is null. Setting a nextToken value that was not returned in your previous results causes an InvalidNextTokenException to occur.

", + "DescribeEventsResponse$NextToken": "

NextToken is a string that is returned in some command responses. It indicates that not all entries have been returned, and that you must run at least one more request to get remaining items. To get remaining results, call DescribeEvents again, and assign the token from the previous results as the value of the nextToken parameter. If there are no more results, the response object's nextToken parameter value is null. Setting a nextToken value that was not returned in your previous results causes an InvalidNextTokenException to occur.

", + "DescribeServersResponse$NextToken": "

NextToken is a string that is returned in some command responses. It indicates that not all entries have been returned, and that you must run at least one more request to get remaining items. To get remaining results, call DescribeServers again, and assign the token from the previous results as the value of the nextToken parameter. If there are no more results, the response object's nextToken parameter value is null. Setting a nextToken value that was not returned in your previous results causes an InvalidNextTokenException to occur.

", + "InvalidNextTokenException$Message": "

Error or informational message that can contain more detail about a nextToken failure.

", + "InvalidStateException$Message": "

Error or informational message that provides more detail if a resource is in a state that is not valid for performing a specified action.

", + "LimitExceededException$Message": "

Error or informational message that the maximum allowed number of servers or backups has been exceeded.

", + "ResourceAlreadyExistsException$Message": "

Error or informational message in response to a CreateServer request that a resource cannot be created because it already exists.

", + "ResourceNotFoundException$Message": "

Error or informational message that can contain more detail about problems locating or accessing a resource.

", + "RestoreServerRequest$InstanceType": "

The type of the instance to create. Valid values must be specified in the following format: ^([cm][34]|t2).* For example, m4.large. Valid values are t2.medium, m4.large, and m4.2xlarge. If you do not specify this parameter, RestoreServer uses the instance type from the specified backup.

", + "Server$ServerName": "

The name of the server.

", + "Server$CloudFormationStackArn": "

The ARN of the CloudFormation stack that was used to create the server.

", + "Server$Endpoint": "

A DNS name that can be used to access the engine. Example: myserver-asdfghjkl.us-east-1.opsworks.io

", + "Server$Engine": "

The engine type of the server. The valid value in this release is Chef.

", + "Server$EngineModel": "

The engine model of the server. The valid value in this release is Single.

", + "Server$EngineVersion": "

The engine version of the server. Because Chef is the engine available in this release, the valid value for EngineVersion is 12.

", + "Server$InstanceProfileArn": "

The instance profile ARN of the server.

", + "Server$InstanceType": "

The instance type for the server, as specified in the CloudFormation stack. This might not be the same instance type that is shown in the EC2 console.

", + "Server$KeyPair": "

The key pair associated with the server.

", + "Server$ServiceRoleArn": "

The service role ARN used to create the server.

", + "Server$StatusReason": "

Depending on the server status, this field has either a human-readable message (such as a create or backup error), or an escaped block of JSON (used for health check results).

", + "Server$ServerArn": "

The ARN of the server.

", + "ServerEvent$ServerName": "

The name of the server on or for which the event occurred.

", + "ServerEvent$Message": "

A human-readable informational or status message.

", + "ServerEvent$LogUrl": "

The Amazon S3 URL of the event's log file.

", + "Strings$member": null, + "ValidationException$Message": "

Error or informational message that can contain more detail about a validation failure.

" + } + }, + "Strings": { + "base": null, + "refs": { + "Backup$SecurityGroupIds": "

The security group IDs that are obtained from the server when the backup is created.

", + "Backup$SubnetIds": "

The subnet IDs that are obtained from the server when the backup is created.

", + "CreateServerRequest$SecurityGroupIds": "

A list of security group IDs to attach to the Amazon EC2 instance. If you add this parameter, the specified security groups must be within the VPC that is specified by SubnetIds.

If you do not specify this parameter, AWS OpsWorks for Chef Automate creates one new security group that uses TCP ports 22 and 443, open to 0.0.0.0/0 (everyone).

", + "CreateServerRequest$SubnetIds": "

The IDs of subnets in which to launch the server EC2 instance.

Amazon EC2-Classic customers: This field is required. All servers must run within a VPC. The VPC must have \"Auto Assign Public IP\" enabled.

EC2-VPC customers: This field is optional. If you do not specify subnet IDs, your EC2 instances are created in a default subnet that is selected by Amazon EC2. If you specify subnet IDs, the VPC must have \"Auto Assign Public IP\" enabled.

For more information about supported Amazon EC2 platforms, see Supported Platforms.

", + "Server$SecurityGroupIds": "

The security group IDs for the server, as specified in the CloudFormation stack. These might not be the same security groups that are shown in the EC2 console.

", + "Server$SubnetIds": "

The subnet IDs specified in a CreateServer request.

" + } + }, + "TimeWindowDefinition": { + "base": "

DDD:HH:MM (weekly start time) or HH:MM (daily start time).

Time windows always use coordinated universal time (UTC). Valid strings for day of week (DDD) are: Mon, Tue, Wed, Thr, Fri, Sat, or Sun.

", + "refs": { + "Backup$PreferredBackupWindow": "

The preferred backup period that is obtained from the server when the backup is created.

", + "Backup$PreferredMaintenanceWindow": "

The preferred maintenance period that is obtained from the server when the backup is created.

", + "CreateServerRequest$PreferredMaintenanceWindow": "

The start time for a one-hour period each week during which AWS OpsWorks for Chef Automate performs maintenance on the instance. Valid values must be specified in the following format: DDD:HH:MM. The specified time is in coordinated universal time (UTC). The default value is a random one-hour period on Tuesday, Wednesday, or Friday. See TimeWindowDefinition for more information.

Example: Mon:08:00, which represents a start time of every Monday at 08:00 UTC. (8:00 a.m.)

", + "CreateServerRequest$PreferredBackupWindow": "

The start time for a one-hour period during which AWS OpsWorks for Chef Automate backs up application-level data on your server if automated backups are enabled. Valid values must be specified in one of the following formats:

  • HH:MM for daily backups

  • DDD:HH:MM for weekly backups

The specified time is in coordinated universal time (UTC). The default value is a random, daily start time.

Example: 08:00, which represents a daily start time of 08:00 UTC.

Example: Mon:08:00, which represents a start time of every Monday at 08:00 UTC. (8:00 a.m.)

", + "Server$PreferredMaintenanceWindow": "

The preferred maintenance period specified for the server.

", + "Server$PreferredBackupWindow": "

The preferred backup period specified for the server.

", + "UpdateServerRequest$PreferredMaintenanceWindow": null, + "UpdateServerRequest$PreferredBackupWindow": null + } + }, + "Timestamp": { + "base": null, + "refs": { + "Backup$CreatedAt": "

The time stamp when the backup was created in the database. Example: 2016-07-29T13:38:47.520Z

", + "Server$CreatedAt": "

Time stamp of server creation. Example 2016-07-29T13:38:47.520Z

", + "ServerEvent$CreatedAt": "

The time when the event occurred.

" + } + }, + "UpdateServerEngineAttributesRequest": { + "base": null, + "refs": { + } + }, + "UpdateServerEngineAttributesResponse": { + "base": null, + "refs": { + } + }, + "UpdateServerRequest": { + "base": null, + "refs": { + } + }, + "UpdateServerResponse": { + "base": null, + "refs": { + } + }, + "ValidationException": { + "base": "

One or more of the provided request parameters are not valid.

", + "refs": { + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/opsworkscm/2016-11-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/opsworkscm/2016-11-01/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/opsworkscm/2016-11-01/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/opsworkscm/2016-11-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/opsworkscm/2016-11-01/paginators-1.json new file mode 100644 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/opsworkscm/2016-11-01/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/organizations/2016-11-28/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/organizations/2016-11-28/api-2.json new file mode 100644 index 000000000..a8c728078 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/organizations/2016-11-28/api-2.json @@ -0,0 +1,1989 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2016-11-28", + "endpointPrefix":"organizations", + "jsonVersion":"1.1", + "protocol":"json", + "serviceAbbreviation":"Organizations", + "serviceFullName":"AWS Organizations", + "signatureVersion":"v4", + "targetPrefix":"AWSOrganizationsV20161128", + "timestampFormat":"unixTimestamp", + "uid":"organizations-2016-11-28" + }, + "operations":{ + "AcceptHandshake":{ + "name":"AcceptHandshake", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AcceptHandshakeRequest"}, + "output":{"shape":"AcceptHandshakeResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"HandshakeConstraintViolationException"}, + {"shape":"HandshakeNotFoundException"}, + {"shape":"InvalidHandshakeTransitionException"}, + {"shape":"HandshakeAlreadyInStateException"}, + {"shape":"InvalidInputException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "AttachPolicy":{ + "name":"AttachPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AttachPolicyRequest"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"ConstraintViolationException"}, + {"shape":"DuplicatePolicyAttachmentException"}, + {"shape":"InvalidInputException"}, + {"shape":"PolicyNotFoundException"}, + {"shape":"PolicyTypeNotEnabledException"}, + {"shape":"ServiceException"}, + {"shape":"TargetNotFoundException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "CancelHandshake":{ + "name":"CancelHandshake", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CancelHandshakeRequest"}, + "output":{"shape":"CancelHandshakeResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"HandshakeNotFoundException"}, + {"shape":"InvalidHandshakeTransitionException"}, + {"shape":"HandshakeAlreadyInStateException"}, + {"shape":"InvalidInputException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "CreateAccount":{ + "name":"CreateAccount", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateAccountRequest"}, + "output":{"shape":"CreateAccountResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"ConstraintViolationException"}, + {"shape":"InvalidInputException"}, + {"shape":"FinalizingOrganizationException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "CreateOrganization":{ + "name":"CreateOrganization", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateOrganizationRequest"}, + "output":{"shape":"CreateOrganizationResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AlreadyInOrganizationException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"ConstraintViolationException"}, + {"shape":"InvalidInputException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "CreateOrganizationalUnit":{ + "name":"CreateOrganizationalUnit", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateOrganizationalUnitRequest"}, + "output":{"shape":"CreateOrganizationalUnitResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"ConstraintViolationException"}, + {"shape":"DuplicateOrganizationalUnitException"}, + {"shape":"InvalidInputException"}, + {"shape":"ParentNotFoundException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "CreatePolicy":{ + "name":"CreatePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreatePolicyRequest"}, + "output":{"shape":"CreatePolicyResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"ConstraintViolationException"}, + {"shape":"DuplicatePolicyException"}, + {"shape":"InvalidInputException"}, + {"shape":"MalformedPolicyDocumentException"}, + {"shape":"PolicyTypeNotAvailableForOrganizationException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "DeclineHandshake":{ + "name":"DeclineHandshake", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeclineHandshakeRequest"}, + "output":{"shape":"DeclineHandshakeResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"HandshakeNotFoundException"}, + {"shape":"InvalidHandshakeTransitionException"}, + {"shape":"HandshakeAlreadyInStateException"}, + {"shape":"InvalidInputException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "DeleteOrganization":{ + "name":"DeleteOrganization", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"InvalidInputException"}, + {"shape":"OrganizationNotEmptyException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "DeleteOrganizationalUnit":{ + "name":"DeleteOrganizationalUnit", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteOrganizationalUnitRequest"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"InvalidInputException"}, + {"shape":"OrganizationalUnitNotEmptyException"}, + {"shape":"OrganizationalUnitNotFoundException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "DeletePolicy":{ + "name":"DeletePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeletePolicyRequest"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"InvalidInputException"}, + {"shape":"PolicyInUseException"}, + {"shape":"PolicyNotFoundException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "DescribeAccount":{ + "name":"DescribeAccount", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeAccountRequest"}, + "output":{"shape":"DescribeAccountResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AccountNotFoundException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"InvalidInputException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "DescribeCreateAccountStatus":{ + "name":"DescribeCreateAccountStatus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeCreateAccountStatusRequest"}, + "output":{"shape":"DescribeCreateAccountStatusResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"CreateAccountStatusNotFoundException"}, + {"shape":"InvalidInputException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "DescribeHandshake":{ + "name":"DescribeHandshake", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeHandshakeRequest"}, + "output":{"shape":"DescribeHandshakeResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"HandshakeNotFoundException"}, + {"shape":"InvalidInputException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "DescribeOrganization":{ + "name":"DescribeOrganization", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "output":{"shape":"DescribeOrganizationResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "DescribeOrganizationalUnit":{ + "name":"DescribeOrganizationalUnit", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeOrganizationalUnitRequest"}, + "output":{"shape":"DescribeOrganizationalUnitResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"InvalidInputException"}, + {"shape":"OrganizationalUnitNotFoundException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "DescribePolicy":{ + "name":"DescribePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribePolicyRequest"}, + "output":{"shape":"DescribePolicyResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"InvalidInputException"}, + {"shape":"PolicyNotFoundException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "DetachPolicy":{ + "name":"DetachPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DetachPolicyRequest"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"ConstraintViolationException"}, + {"shape":"InvalidInputException"}, + {"shape":"PolicyNotAttachedException"}, + {"shape":"PolicyNotFoundException"}, + {"shape":"ServiceException"}, + {"shape":"TargetNotFoundException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "DisablePolicyType":{ + "name":"DisablePolicyType", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisablePolicyTypeRequest"}, + "output":{"shape":"DisablePolicyTypeResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"ConstraintViolationException"}, + {"shape":"InvalidInputException"}, + {"shape":"PolicyTypeNotEnabledException"}, + {"shape":"RootNotFoundException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "EnableAllFeatures":{ + "name":"EnableAllFeatures", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"EnableAllFeaturesRequest"}, + "output":{"shape":"EnableAllFeaturesResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"HandshakeConstraintViolationException"}, + {"shape":"InvalidInputException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "EnablePolicyType":{ + "name":"EnablePolicyType", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"EnablePolicyTypeRequest"}, + "output":{"shape":"EnablePolicyTypeResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"ConstraintViolationException"}, + {"shape":"InvalidInputException"}, + {"shape":"PolicyTypeAlreadyEnabledException"}, + {"shape":"RootNotFoundException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"PolicyTypeNotAvailableForOrganizationException"} + ] + }, + "InviteAccountToOrganization":{ + "name":"InviteAccountToOrganization", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"InviteAccountToOrganizationRequest"}, + "output":{"shape":"InviteAccountToOrganizationResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"HandshakeConstraintViolationException"}, + {"shape":"DuplicateHandshakeException"}, + {"shape":"InvalidInputException"}, + {"shape":"FinalizingOrganizationException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "LeaveOrganization":{ + "name":"LeaveOrganization", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AccountNotFoundException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"ConstraintViolationException"}, + {"shape":"InvalidInputException"}, + {"shape":"MasterCannotLeaveOrganizationException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "ListAccounts":{ + "name":"ListAccounts", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAccountsRequest"}, + "output":{"shape":"ListAccountsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"InvalidInputException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "ListAccountsForParent":{ + "name":"ListAccountsForParent", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAccountsForParentRequest"}, + "output":{"shape":"ListAccountsForParentResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"InvalidInputException"}, + {"shape":"ParentNotFoundException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "ListChildren":{ + "name":"ListChildren", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListChildrenRequest"}, + "output":{"shape":"ListChildrenResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"InvalidInputException"}, + {"shape":"ParentNotFoundException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "ListCreateAccountStatus":{ + "name":"ListCreateAccountStatus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListCreateAccountStatusRequest"}, + "output":{"shape":"ListCreateAccountStatusResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"InvalidInputException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "ListHandshakesForAccount":{ + "name":"ListHandshakesForAccount", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListHandshakesForAccountRequest"}, + "output":{"shape":"ListHandshakesForAccountResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidInputException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "ListHandshakesForOrganization":{ + "name":"ListHandshakesForOrganization", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListHandshakesForOrganizationRequest"}, + "output":{"shape":"ListHandshakesForOrganizationResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"InvalidInputException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "ListOrganizationalUnitsForParent":{ + "name":"ListOrganizationalUnitsForParent", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListOrganizationalUnitsForParentRequest"}, + "output":{"shape":"ListOrganizationalUnitsForParentResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"InvalidInputException"}, + {"shape":"ParentNotFoundException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "ListParents":{ + "name":"ListParents", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListParentsRequest"}, + "output":{"shape":"ListParentsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"ChildNotFoundException"}, + {"shape":"InvalidInputException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "ListPolicies":{ + "name":"ListPolicies", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListPoliciesRequest"}, + "output":{"shape":"ListPoliciesResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"InvalidInputException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "ListPoliciesForTarget":{ + "name":"ListPoliciesForTarget", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListPoliciesForTargetRequest"}, + "output":{"shape":"ListPoliciesForTargetResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"InvalidInputException"}, + {"shape":"ServiceException"}, + {"shape":"TargetNotFoundException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "ListRoots":{ + "name":"ListRoots", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListRootsRequest"}, + "output":{"shape":"ListRootsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"InvalidInputException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "ListTargetsForPolicy":{ + "name":"ListTargetsForPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTargetsForPolicyRequest"}, + "output":{"shape":"ListTargetsForPolicyResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"InvalidInputException"}, + {"shape":"PolicyNotFoundException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "MoveAccount":{ + "name":"MoveAccount", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"MoveAccountRequest"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidInputException"}, + {"shape":"SourceParentNotFoundException"}, + {"shape":"DestinationParentNotFoundException"}, + {"shape":"DuplicateAccountException"}, + {"shape":"AccountNotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"ServiceException"} + ] + }, + "RemoveAccountFromOrganization":{ + "name":"RemoveAccountFromOrganization", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RemoveAccountFromOrganizationRequest"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AccountNotFoundException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"ConstraintViolationException"}, + {"shape":"InvalidInputException"}, + {"shape":"MasterCannotLeaveOrganizationException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "UpdateOrganizationalUnit":{ + "name":"UpdateOrganizationalUnit", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateOrganizationalUnitRequest"}, + "output":{"shape":"UpdateOrganizationalUnitResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"DuplicateOrganizationalUnitException"}, + {"shape":"InvalidInputException"}, + {"shape":"OrganizationalUnitNotFoundException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "UpdatePolicy":{ + "name":"UpdatePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdatePolicyRequest"}, + "output":{"shape":"UpdatePolicyResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"ConstraintViolationException"}, + {"shape":"DuplicatePolicyException"}, + {"shape":"InvalidInputException"}, + {"shape":"MalformedPolicyDocumentException"}, + {"shape":"PolicyNotFoundException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + } + }, + "shapes":{ + "AWSOrganizationsNotInUseException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "AcceptHandshakeRequest":{ + "type":"structure", + "required":["HandshakeId"], + "members":{ + "HandshakeId":{"shape":"HandshakeId"} + } + }, + "AcceptHandshakeResponse":{ + "type":"structure", + "members":{ + "Handshake":{"shape":"Handshake"} + } + }, + "AccessDeniedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "Account":{ + "type":"structure", + "members":{ + "Id":{"shape":"AccountId"}, + "Arn":{"shape":"AccountArn"}, + "Name":{"shape":"AccountName"}, + "Status":{"shape":"AccountStatus"}, + "JoinedMethod":{"shape":"AccountJoinedMethod"}, + "JoinedTimestamp":{"shape":"Timestamp"} + } + }, + "AccountArn":{ + "type":"string", + "pattern":"^arn:aws:organizations::\\d{12}:account\\/o-[a-z0-9]{10,32}\\/\\d{12}" + }, + "AccountId":{ + "type":"string", + "pattern":"^\\d{12}$" + }, + "AccountJoinedMethod":{ + "type":"string", + "enum":[ + "INVITED", + "CREATED" + ] + }, + "AccountName":{ + "type":"string", + "max":50, + "min":1, + "sensitive":true + }, + "AccountNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "AccountStatus":{ + "type":"string", + "enum":[ + "ACTIVE", + "SUSPENDED" + ] + }, + "Accounts":{ + "type":"list", + "member":{"shape":"Account"} + }, + "ActionType":{ + "type":"string", + "enum":[ + "INVITE", + "ENABLE_ALL_FEATURES", + "APPROVE_ALL_FEATURES" + ] + }, + "AlreadyInOrganizationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "AttachPolicyRequest":{ + "type":"structure", + "required":[ + "PolicyId", + "TargetId" + ], + "members":{ + "PolicyId":{"shape":"PolicyId"}, + "TargetId":{"shape":"PolicyTargetId"} + } + }, + "AwsManagedPolicy":{"type":"boolean"}, + "CancelHandshakeRequest":{ + "type":"structure", + "required":["HandshakeId"], + "members":{ + "HandshakeId":{"shape":"HandshakeId"} + } + }, + "CancelHandshakeResponse":{ + "type":"structure", + "members":{ + "Handshake":{"shape":"Handshake"} + } + }, + "Child":{ + "type":"structure", + "members":{ + "Id":{"shape":"ChildId"}, + "Type":{"shape":"ChildType"} + } + }, + "ChildId":{ + "type":"string", + "pattern":"^(\\d{12})|(ou-[0-9a-z]{4,32}-[a-z0-9]{8,32})$" + }, + "ChildNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "ChildType":{ + "type":"string", + "enum":[ + "ACCOUNT", + "ORGANIZATIONAL_UNIT" + ] + }, + "Children":{ + "type":"list", + "member":{"shape":"Child"} + }, + "ConcurrentModificationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "ConstraintViolationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"}, + "Reason":{"shape":"ConstraintViolationExceptionReason"} + }, + "exception":true + }, + "ConstraintViolationExceptionReason":{ + "type":"string", + "enum":[ + "ACCOUNT_NUMBER_LIMIT_EXCEEDED", + "HANDSHAKE_RATE_LIMIT_EXCEEDED", + "OU_NUMBER_LIMIT_EXCEEDED", + "OU_DEPTH_LIMIT_EXCEEDED", + "POLICY_NUMBER_LIMIT_EXCEEDED", + "MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED", + "MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED", + "ACCOUNT_CANNOT_LEAVE_ORGANIZATION", + "MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED", + "ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED" + ] + }, + "CreateAccountFailureReason":{ + "type":"string", + "enum":[ + "ACCOUNT_LIMIT_EXCEEDED", + "EMAIL_ALREADY_EXISTS", + "INVALID_ADDRESS", + "INTERNAL_FAILURE" + ] + }, + "CreateAccountRequest":{ + "type":"structure", + "required":[ + "Email", + "AccountName" + ], + "members":{ + "Email":{"shape":"Email"}, + "AccountName":{"shape":"AccountName"}, + "RoleName":{"shape":"RoleName"}, + "IamUserAccessToBilling":{"shape":"IAMUserAccessToBilling"} + } + }, + "CreateAccountRequestId":{ + "type":"string", + "pattern":"^car-[a-z0-9]{8,32}$" + }, + "CreateAccountResponse":{ + "type":"structure", + "members":{ + "CreateAccountStatus":{"shape":"CreateAccountStatus"} + } + }, + "CreateAccountState":{ + "type":"string", + "enum":[ + "IN_PROGRESS", + "SUCCEEDED", + "FAILED" + ] + }, + "CreateAccountStates":{ + "type":"list", + "member":{"shape":"CreateAccountState"} + }, + "CreateAccountStatus":{ + "type":"structure", + "members":{ + "Id":{"shape":"CreateAccountRequestId"}, + "AccountName":{"shape":"AccountName"}, + "State":{"shape":"CreateAccountState"}, + "RequestedTimestamp":{"shape":"Timestamp"}, + "CompletedTimestamp":{"shape":"Timestamp"}, + "AccountId":{"shape":"AccountId"}, + "FailureReason":{"shape":"CreateAccountFailureReason"} + } + }, + "CreateAccountStatusNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "CreateAccountStatuses":{ + "type":"list", + "member":{"shape":"CreateAccountStatus"} + }, + "CreateOrganizationRequest":{ + "type":"structure", + "members":{ + "FeatureSet":{"shape":"OrganizationFeatureSet"} + } + }, + "CreateOrganizationResponse":{ + "type":"structure", + "members":{ + "Organization":{"shape":"Organization"} + } + }, + "CreateOrganizationalUnitRequest":{ + "type":"structure", + "required":[ + "ParentId", + "Name" + ], + "members":{ + "ParentId":{"shape":"ParentId"}, + "Name":{"shape":"OrganizationalUnitName"} + } + }, + "CreateOrganizationalUnitResponse":{ + "type":"structure", + "members":{ + "OrganizationalUnit":{"shape":"OrganizationalUnit"} + } + }, + "CreatePolicyRequest":{ + "type":"structure", + "required":[ + "Content", + "Description", + "Name", + "Type" + ], + "members":{ + "Content":{"shape":"PolicyContent"}, + "Description":{"shape":"PolicyDescription"}, + "Name":{"shape":"PolicyName"}, + "Type":{"shape":"PolicyType"} + } + }, + "CreatePolicyResponse":{ + "type":"structure", + "members":{ + "Policy":{"shape":"Policy"} + } + }, + "DeclineHandshakeRequest":{ + "type":"structure", + "required":["HandshakeId"], + "members":{ + "HandshakeId":{"shape":"HandshakeId"} + } + }, + "DeclineHandshakeResponse":{ + "type":"structure", + "members":{ + "Handshake":{"shape":"Handshake"} + } + }, + "DeleteOrganizationalUnitRequest":{ + "type":"structure", + "required":["OrganizationalUnitId"], + "members":{ + "OrganizationalUnitId":{"shape":"OrganizationalUnitId"} + } + }, + "DeletePolicyRequest":{ + "type":"structure", + "required":["PolicyId"], + "members":{ + "PolicyId":{"shape":"PolicyId"} + } + }, + "DescribeAccountRequest":{ + "type":"structure", + "required":["AccountId"], + "members":{ + "AccountId":{"shape":"AccountId"} + } + }, + "DescribeAccountResponse":{ + "type":"structure", + "members":{ + "Account":{"shape":"Account"} + } + }, + "DescribeCreateAccountStatusRequest":{ + "type":"structure", + "required":["CreateAccountRequestId"], + "members":{ + "CreateAccountRequestId":{"shape":"CreateAccountRequestId"} + } + }, + "DescribeCreateAccountStatusResponse":{ + "type":"structure", + "members":{ + "CreateAccountStatus":{"shape":"CreateAccountStatus"} + } + }, + "DescribeHandshakeRequest":{ + "type":"structure", + "required":["HandshakeId"], + "members":{ + "HandshakeId":{"shape":"HandshakeId"} + } + }, + "DescribeHandshakeResponse":{ + "type":"structure", + "members":{ + "Handshake":{"shape":"Handshake"} + } + }, + "DescribeOrganizationResponse":{ + "type":"structure", + "members":{ + "Organization":{"shape":"Organization"} + } + }, + "DescribeOrganizationalUnitRequest":{ + "type":"structure", + "required":["OrganizationalUnitId"], + "members":{ + "OrganizationalUnitId":{"shape":"OrganizationalUnitId"} + } + }, + "DescribeOrganizationalUnitResponse":{ + "type":"structure", + "members":{ + "OrganizationalUnit":{"shape":"OrganizationalUnit"} + } + }, + "DescribePolicyRequest":{ + "type":"structure", + "required":["PolicyId"], + "members":{ + "PolicyId":{"shape":"PolicyId"} + } + }, + "DescribePolicyResponse":{ + "type":"structure", + "members":{ + "Policy":{"shape":"Policy"} + } + }, + "DestinationParentNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "DetachPolicyRequest":{ + "type":"structure", + "required":[ + "PolicyId", + "TargetId" + ], + "members":{ + "PolicyId":{"shape":"PolicyId"}, + "TargetId":{"shape":"PolicyTargetId"} + } + }, + "DisablePolicyTypeRequest":{ + "type":"structure", + "required":[ + "RootId", + "PolicyType" + ], + "members":{ + "RootId":{"shape":"RootId"}, + "PolicyType":{"shape":"PolicyType"} + } + }, + "DisablePolicyTypeResponse":{ + "type":"structure", + "members":{ + "Root":{"shape":"Root"} + } + }, + "DuplicateAccountException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "DuplicateHandshakeException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "DuplicateOrganizationalUnitException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "DuplicatePolicyAttachmentException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "DuplicatePolicyException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "Email":{ + "type":"string", + "max":64, + "min":6, + "pattern":"[\\w+=,.-]+@[\\w.-]+\\.[\\w]+", + "sensitive":true + }, + "EnableAllFeaturesRequest":{ + "type":"structure", + "members":{ + } + }, + "EnableAllFeaturesResponse":{ + "type":"structure", + "members":{ + "Handshake":{"shape":"Handshake"} + } + }, + "EnablePolicyTypeRequest":{ + "type":"structure", + "required":[ + "RootId", + "PolicyType" + ], + "members":{ + "RootId":{"shape":"RootId"}, + "PolicyType":{"shape":"PolicyType"} + } + }, + "EnablePolicyTypeResponse":{ + "type":"structure", + "members":{ + "Root":{"shape":"Root"} + } + }, + "ExceptionMessage":{"type":"string"}, + "ExceptionType":{"type":"string"}, + "FinalizingOrganizationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "GenericArn":{ + "type":"string", + "pattern":"^arn:aws:organizations::.+:.+" + }, + "Handshake":{ + "type":"structure", + "members":{ + "Id":{"shape":"HandshakeId"}, + "Arn":{"shape":"HandshakeArn"}, + "Parties":{"shape":"HandshakeParties"}, + "State":{"shape":"HandshakeState"}, + "RequestedTimestamp":{"shape":"Timestamp"}, + "ExpirationTimestamp":{"shape":"Timestamp"}, + "Action":{"shape":"ActionType"}, + "Resources":{"shape":"HandshakeResources"} + } + }, + "HandshakeAlreadyInStateException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "HandshakeArn":{ + "type":"string", + "pattern":"^arn:aws:organizations::\\d{12}:handshake\\/o-[a-z0-9]{10,32}\\/[a-z_]{1,32}\\/h-[0-9a-z]{8,32}" + }, + "HandshakeConstraintViolationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"}, + "Reason":{"shape":"HandshakeConstraintViolationExceptionReason"} + }, + "exception":true + }, + "HandshakeConstraintViolationExceptionReason":{ + "type":"string", + "enum":[ + "ACCOUNT_NUMBER_LIMIT_EXCEEDED", + "HANDSHAKE_RATE_LIMIT_EXCEEDED", + "ALREADY_IN_AN_ORGANIZATION", + "ORGANIZATION_ALREADY_HAS_ALL_FEATURES", + "INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES", + "PAYMENT_INSTRUMENT_REQUIRED", + "ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD", + "ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED" + ] + }, + "HandshakeFilter":{ + "type":"structure", + "members":{ + "ActionType":{"shape":"ActionType"}, + "ParentHandshakeId":{"shape":"HandshakeId"} + } + }, + "HandshakeId":{ + "type":"string", + "pattern":"^h-[0-9a-z]{8,32}$" + }, + "HandshakeNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "HandshakeNotes":{ + "type":"string", + "max":1024, + "sensitive":true + }, + "HandshakeParties":{ + "type":"list", + "member":{"shape":"HandshakeParty"} + }, + "HandshakeParty":{ + "type":"structure", + "members":{ + "Id":{"shape":"HandshakePartyId"}, + "Type":{"shape":"HandshakePartyType"} + } + }, + "HandshakePartyId":{ + "type":"string", + "max":64, + "min":1, + "sensitive":true + }, + "HandshakePartyType":{ + "type":"string", + "enum":[ + "ACCOUNT", + "ORGANIZATION", + "EMAIL" + ] + }, + "HandshakeResource":{ + "type":"structure", + "members":{ + "Value":{"shape":"HandshakeResourceValue"}, + "Type":{"shape":"HandshakeResourceType"}, + "Resources":{"shape":"HandshakeResources"} + } + }, + "HandshakeResourceType":{ + "type":"string", + "enum":[ + "ACCOUNT", + "ORGANIZATION", + "ORGANIZATION_FEATURE_SET", + "EMAIL", + "MASTER_EMAIL", + "MASTER_NAME", + "NOTES", + "PARENT_HANDSHAKE" + ] + }, + "HandshakeResourceValue":{ + "type":"string", + "sensitive":true + }, + "HandshakeResources":{ + "type":"list", + "member":{"shape":"HandshakeResource"} + }, + "HandshakeState":{ + "type":"string", + "enum":[ + "REQUESTED", + "OPEN", + "CANCELED", + "ACCEPTED", + "DECLINED", + "EXPIRED" + ] + }, + "Handshakes":{ + "type":"list", + "member":{"shape":"Handshake"} + }, + "IAMUserAccessToBilling":{ + "type":"string", + "enum":[ + "ALLOW", + "DENY" + ] + }, + "InvalidHandshakeTransitionException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "InvalidInputException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"}, + "Reason":{"shape":"InvalidInputExceptionReason"} + }, + "exception":true + }, + "InvalidInputExceptionReason":{ + "type":"string", + "enum":[ + "INVALID_PARTY_TYPE_TARGET", + "INVALID_SYNTAX_ORGANIZATION_ARN", + "INVALID_SYNTAX_POLICY_ID", + "INVALID_ENUM", + "INVALID_LIST_MEMBER", + "MAX_LENGTH_EXCEEDED", + "MAX_VALUE_EXCEEDED", + "MIN_LENGTH_EXCEEDED", + "MIN_VALUE_EXCEEDED", + "IMMUTABLE_POLICY", + "INVALID_PATTERN", + "INVALID_PATTERN_TARGET_ID", + "INPUT_REQUIRED", + "INVALID_NEXT_TOKEN", + "MAX_LIMIT_EXCEEDED_FILTER", + "MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS" + ] + }, + "InviteAccountToOrganizationRequest":{ + "type":"structure", + "required":["Target"], + "members":{ + "Target":{"shape":"HandshakeParty"}, + "Notes":{"shape":"HandshakeNotes"} + } + }, + "InviteAccountToOrganizationResponse":{ + "type":"structure", + "members":{ + "Handshake":{"shape":"Handshake"} + } + }, + "ListAccountsForParentRequest":{ + "type":"structure", + "required":["ParentId"], + "members":{ + "ParentId":{"shape":"ParentId"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "ListAccountsForParentResponse":{ + "type":"structure", + "members":{ + "Accounts":{"shape":"Accounts"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListAccountsRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "ListAccountsResponse":{ + "type":"structure", + "members":{ + "Accounts":{"shape":"Accounts"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListChildrenRequest":{ + "type":"structure", + "required":[ + "ParentId", + "ChildType" + ], + "members":{ + "ParentId":{"shape":"ParentId"}, + "ChildType":{"shape":"ChildType"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "ListChildrenResponse":{ + "type":"structure", + "members":{ + "Children":{"shape":"Children"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListCreateAccountStatusRequest":{ + "type":"structure", + "members":{ + "States":{"shape":"CreateAccountStates"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "ListCreateAccountStatusResponse":{ + "type":"structure", + "members":{ + "CreateAccountStatuses":{"shape":"CreateAccountStatuses"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListHandshakesForAccountRequest":{ + "type":"structure", + "members":{ + "Filter":{"shape":"HandshakeFilter"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "ListHandshakesForAccountResponse":{ + "type":"structure", + "members":{ + "Handshakes":{"shape":"Handshakes"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListHandshakesForOrganizationRequest":{ + "type":"structure", + "members":{ + "Filter":{"shape":"HandshakeFilter"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "ListHandshakesForOrganizationResponse":{ + "type":"structure", + "members":{ + "Handshakes":{"shape":"Handshakes"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListOrganizationalUnitsForParentRequest":{ + "type":"structure", + "required":["ParentId"], + "members":{ + "ParentId":{"shape":"ParentId"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "ListOrganizationalUnitsForParentResponse":{ + "type":"structure", + "members":{ + "OrganizationalUnits":{"shape":"OrganizationalUnits"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListParentsRequest":{ + "type":"structure", + "required":["ChildId"], + "members":{ + "ChildId":{"shape":"ChildId"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "ListParentsResponse":{ + "type":"structure", + "members":{ + "Parents":{"shape":"Parents"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListPoliciesForTargetRequest":{ + "type":"structure", + "required":[ + "TargetId", + "Filter" + ], + "members":{ + "TargetId":{"shape":"PolicyTargetId"}, + "Filter":{"shape":"PolicyType"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "ListPoliciesForTargetResponse":{ + "type":"structure", + "members":{ + "Policies":{"shape":"Policies"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListPoliciesRequest":{ + "type":"structure", + "required":["Filter"], + "members":{ + "Filter":{"shape":"PolicyType"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "ListPoliciesResponse":{ + "type":"structure", + "members":{ + "Policies":{"shape":"Policies"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListRootsRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "ListRootsResponse":{ + "type":"structure", + "members":{ + "Roots":{"shape":"Roots"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListTargetsForPolicyRequest":{ + "type":"structure", + "required":["PolicyId"], + "members":{ + "PolicyId":{"shape":"PolicyId"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "ListTargetsForPolicyResponse":{ + "type":"structure", + "members":{ + "Targets":{"shape":"PolicyTargets"}, + "NextToken":{"shape":"NextToken"} + } + }, + "MalformedPolicyDocumentException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "MasterCannotLeaveOrganizationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "MaxResults":{ + "type":"integer", + "box":true, + "max":20, + "min":1 + }, + "MoveAccountRequest":{ + "type":"structure", + "required":[ + "AccountId", + "SourceParentId", + "DestinationParentId" + ], + "members":{ + "AccountId":{"shape":"AccountId"}, + "SourceParentId":{"shape":"ParentId"}, + "DestinationParentId":{"shape":"ParentId"} + } + }, + "NextToken":{"type":"string"}, + "Organization":{ + "type":"structure", + "members":{ + "Id":{"shape":"OrganizationId"}, + "Arn":{"shape":"OrganizationArn"}, + "FeatureSet":{"shape":"OrganizationFeatureSet"}, + "MasterAccountArn":{"shape":"AccountArn"}, + "MasterAccountId":{"shape":"AccountId"}, + "MasterAccountEmail":{"shape":"Email"}, + "AvailablePolicyTypes":{"shape":"PolicyTypes"} + } + }, + "OrganizationArn":{ + "type":"string", + "pattern":"^arn:aws:organizations::\\d{12}:organization\\/o-[a-z0-9]{10,32}" + }, + "OrganizationFeatureSet":{ + "type":"string", + "enum":[ + "ALL", + "CONSOLIDATED_BILLING" + ] + }, + "OrganizationId":{ + "type":"string", + "pattern":"^o-[a-z0-9]{10,32}$" + }, + "OrganizationNotEmptyException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "OrganizationalUnit":{ + "type":"structure", + "members":{ + "Id":{"shape":"OrganizationalUnitId"}, + "Arn":{"shape":"OrganizationalUnitArn"}, + "Name":{"shape":"OrganizationalUnitName"} + } + }, + "OrganizationalUnitArn":{ + "type":"string", + "pattern":"^arn:aws:organizations::\\d{12}:ou\\/o-[a-z0-9]{10,32}\\/ou-[0-9a-z]{4,32}-[0-9a-z]{8,32}" + }, + "OrganizationalUnitId":{ + "type":"string", + "pattern":"^ou-[0-9a-z]{4,32}-[a-z0-9]{8,32}$" + }, + "OrganizationalUnitName":{ + "type":"string", + "max":128, + "min":1 + }, + "OrganizationalUnitNotEmptyException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "OrganizationalUnitNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "OrganizationalUnits":{ + "type":"list", + "member":{"shape":"OrganizationalUnit"} + }, + "Parent":{ + "type":"structure", + "members":{ + "Id":{"shape":"ParentId"}, + "Type":{"shape":"ParentType"} + } + }, + "ParentId":{ + "type":"string", + "pattern":"^(r-[0-9a-z]{4,32})|(ou-[0-9a-z]{4,32}-[a-z0-9]{8,32})$" + }, + "ParentNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "ParentType":{ + "type":"string", + "enum":[ + "ROOT", + "ORGANIZATIONAL_UNIT" + ] + }, + "Parents":{ + "type":"list", + "member":{"shape":"Parent"} + }, + "Policies":{ + "type":"list", + "member":{"shape":"PolicySummary"} + }, + "Policy":{ + "type":"structure", + "members":{ + "PolicySummary":{"shape":"PolicySummary"}, + "Content":{"shape":"PolicyContent"} + } + }, + "PolicyArn":{ + "type":"string", + "pattern":"^(arn:aws:organizations::\\d{12}:policy\\/o-[a-z0-9]{10,32}\\/[0-9a-z_]+\\/p-[0-9a-z]{10,32})|(arn:aws:organizations::aws:policy\\/[0-9a-z_]+\\/p-[0-9a-zA-Z_]{10,128})" + }, + "PolicyContent":{ + "type":"string", + "max":1000000, + "min":1 + }, + "PolicyDescription":{ + "type":"string", + "max":512 + }, + "PolicyId":{ + "type":"string", + "pattern":"^p-[0-9a-zA-Z_]{8,128}$" + }, + "PolicyInUseException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "PolicyName":{ + "type":"string", + "max":128, + "min":1 + }, + "PolicyNotAttachedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "PolicyNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "PolicySummary":{ + "type":"structure", + "members":{ + "Id":{"shape":"PolicyId"}, + "Arn":{"shape":"PolicyArn"}, + "Name":{"shape":"PolicyName"}, + "Description":{"shape":"PolicyDescription"}, + "Type":{"shape":"PolicyType"}, + "AwsManaged":{"shape":"AwsManagedPolicy"} + } + }, + "PolicyTargetId":{ + "type":"string", + "pattern":"^(r-[0-9a-z]{4,32})|(\\d{12})|(ou-[0-9a-z]{4,32}-[a-z0-9]{8,32})$" + }, + "PolicyTargetSummary":{ + "type":"structure", + "members":{ + "TargetId":{"shape":"PolicyTargetId"}, + "Arn":{"shape":"GenericArn"}, + "Name":{"shape":"TargetName"}, + "Type":{"shape":"TargetType"} + } + }, + "PolicyTargets":{ + "type":"list", + "member":{"shape":"PolicyTargetSummary"} + }, + "PolicyType":{ + "type":"string", + "enum":["SERVICE_CONTROL_POLICY"] + }, + "PolicyTypeAlreadyEnabledException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "PolicyTypeNotAvailableForOrganizationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "PolicyTypeNotEnabledException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "PolicyTypeStatus":{ + "type":"string", + "enum":[ + "ENABLED", + "PENDING_ENABLE", + "PENDING_DISABLE" + ] + }, + "PolicyTypeSummary":{ + "type":"structure", + "members":{ + "Type":{"shape":"PolicyType"}, + "Status":{"shape":"PolicyTypeStatus"} + } + }, + "PolicyTypes":{ + "type":"list", + "member":{"shape":"PolicyTypeSummary"} + }, + "RemoveAccountFromOrganizationRequest":{ + "type":"structure", + "required":["AccountId"], + "members":{ + "AccountId":{"shape":"AccountId"} + } + }, + "RoleName":{ + "type":"string", + "pattern":"[\\w+=,.@-]{1,64}" + }, + "Root":{ + "type":"structure", + "members":{ + "Id":{"shape":"RootId"}, + "Arn":{"shape":"RootArn"}, + "Name":{"shape":"RootName"}, + "PolicyTypes":{"shape":"PolicyTypes"} + } + }, + "RootArn":{ + "type":"string", + "pattern":"^arn:aws:organizations::\\d{12}:root\\/o-[a-z0-9]{10,32}\\/r-[0-9a-z]{4,32}" + }, + "RootId":{ + "type":"string", + "pattern":"^r-[0-9a-z]{4,32}$" + }, + "RootName":{ + "type":"string", + "max":128, + "min":1 + }, + "RootNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "Roots":{ + "type":"list", + "member":{"shape":"Root"} + }, + "ServiceException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "SourceParentNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "TargetName":{ + "type":"string", + "max":128, + "min":1 + }, + "TargetNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "TargetType":{ + "type":"string", + "enum":[ + "ACCOUNT", + "ORGANIZATIONAL_UNIT", + "ROOT" + ] + }, + "Timestamp":{"type":"timestamp"}, + "TooManyRequestsException":{ + "type":"structure", + "members":{ + "Type":{"shape":"ExceptionType"}, + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "UpdateOrganizationalUnitRequest":{ + "type":"structure", + "required":["OrganizationalUnitId"], + "members":{ + "OrganizationalUnitId":{"shape":"OrganizationalUnitId"}, + "Name":{"shape":"OrganizationalUnitName"} + } + }, + "UpdateOrganizationalUnitResponse":{ + "type":"structure", + "members":{ + "OrganizationalUnit":{"shape":"OrganizationalUnit"} + } + }, + "UpdatePolicyRequest":{ + "type":"structure", + "required":["PolicyId"], + "members":{ + "PolicyId":{"shape":"PolicyId"}, + "Name":{"shape":"PolicyName"}, + "Description":{"shape":"PolicyDescription"}, + "Content":{"shape":"PolicyContent"} + } + }, + "UpdatePolicyResponse":{ + "type":"structure", + "members":{ + "Policy":{"shape":"Policy"} + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/organizations/2016-11-28/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/organizations/2016-11-28/docs-2.json new file mode 100644 index 000000000..c48d80374 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/organizations/2016-11-28/docs-2.json @@ -0,0 +1,1206 @@ +{ + "version": "2.0", + "service": "AWS Organizations API Reference

AWS Organizations is a web service that enables you to consolidate your multiple AWS accounts into an organization and centrally manage your accounts and their resources.

This guide provides descriptions of the Organizations API. For more information about using this service, see the AWS Organizations User Guide.

API Version

This version of the Organizations API Reference documents the Organizations API version 2016-11-28.

As an alternative to using the API directly, you can use one of the AWS SDKs, which consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .NET, iOS, Android, and more). The SDKs provide a convenient way to create programmatic access to AWS Organizations. For example, the SDKs take care of cryptographically signing requests, managing errors, and retrying requests automatically. For more information about the AWS SDKs, including how to download and install them, see Tools for Amazon Web Services.

We recommend that you use the AWS SDKs to make programmatic API calls to Organizations. However, you also can use the Organizations Query API to make direct calls to the Organizations web service. To learn more about the Organizations Query API, see Making Query Requests in the AWS Organizations User Guide. Organizations supports GET and POST requests for all actions. That is, the API does not require you to use GET for some actions and POST for others. However, GET requests are subject to the limitation size of a URL. Therefore, for operations that require larger sizes, use a POST request.

Signing Requests

When you send HTTP requests to AWS, you must sign the requests so that AWS can identify who sent them. You sign requests with your AWS access key, which consists of an access key ID and a secret access key. We strongly recommend that you do not create an access key for your root account. Anyone who has the access key for your root account has unrestricted access to all the resources in your account. Instead, create an access key for an IAM user account that has administrative privileges. As another option, use AWS Security Token Service to generate temporary security credentials, and use those credentials to sign requests.

To sign requests, we recommend that you use Signature Version 4. If you have an existing application that uses Signature Version 2, you do not have to update it to use Signature Version 4. However, some operations now require Signature Version 4. The documentation for operations that require version 4 indicate this requirement.

When you use the AWS Command Line Interface (AWS CLI) or one of the AWS SDKs to make requests to AWS, these tools automatically sign the requests for you with the access key that you specify when you configure the tools.

In this release, each organization can have only one root. In a future release, a single organization will support multiple roots.

Support and Feedback for AWS Organizations

We welcome your feedback. Send your comments to feedback-awsorganizations@amazon.com or post your feedback and questions in our private AWS Organizations support forum. If you don't have access to the forum, send a request for access to the email address, along with your forum user ID. For more information about the AWS support forums, see Forums Help.

Endpoint to Call When Using the CLI or the AWS API

For the current release of Organizations, you must specify the us-east-1 region for all AWS API and CLI calls. You can do this in the CLI by using these parameters and commands:

  • Use the following parameter with each command to specify both the endpoint and its region:

    --endpoint-url https://organizations.us-east-1.amazonaws.com

  • Use the default endpoint, but configure your default region with this command:

    aws configure set default.region us-east-1

  • Use the following parameter with each command to specify the endpoint:

    --region us-east-1

For the various SDKs used to call the APIs, see the documentation for the SDK of interest to learn how to direct the requests to a specific endpoint. For more information, see Regions and Endpoints in the AWS General Reference.

How examples are presented

The JSON returned by the AWS Organizations service as response to your requests is returned as a single long string without line breaks or formatting whitespace. Both line breaks and whitespace are included in the examples in this guide to improve readability. When example input parameters also would result in long strings that would extend beyond the screen, we insert line breaks to enhance readability. You should always submit the input as a single JSON text string.

Recording API Requests

AWS Organizations supports AWS CloudTrail, a service that records AWS API calls for your AWS account and delivers log files to an Amazon S3 bucket. By using information collected by AWS CloudTrail, you can determine which requests were successfully made to Organizations, who made the request, when it was made, and so on. For more about AWS Organizations and its support for AWS CloudTrail, see Logging AWS Organizations Events with AWS CloudTrail in the AWS Organizations User Guide. To learn more about CloudTrail, including how to turn it on and find your log files, see the AWS CloudTrail User Guide.

", + "operations": { + "AcceptHandshake": "

Sends a response to the originator of a handshake agreeing to the action proposed by the handshake request.

This operation can be called only by the following principals when they also have the relevant IAM permissions:

  • Invitation to join or Approve all features request handshakes: only a principal from the member account.

  • Enable all features final confirmation handshake: only a principal from the master account.

    For more information about invitations, see Inviting an AWS Account to Join Your Organization in the AWS Organizations User Guide. For more information about requests to enable all features in the organization, see Enabling All Features in Your Organization in the AWS Organizations User Guide.

", + "AttachPolicy": "

Attaches a policy to a root, an organizational unit, or an individual account. How the policy affects accounts depends on the type of policy:

  • Service control policy (SCP) - An SCP specifies what permissions can be delegated to users in affected member accounts. The scope of influence for a policy depends on what you attach the policy to:

    • If you attach an SCP to a root, it affects all accounts in the organization.

    • If you attach an SCP to an OU, it affects all accounts in that OU and in any child OUs.

    • If you attach the policy directly to an account, then it affects only that account.

    SCPs essentially are permission \"filters\". When you attach one SCP to a higher level root or OU, and you also attach a different SCP to a child OU or to an account, the child policy can further restrict only the permissions that pass through the parent filter and are available to the child. An SCP that is attached to a child cannot grant a permission that is not already granted by the parent. For example, imagine that the parent SCP allows permissions A, B, C, D, and E. The child SCP allows C, D, E, F, and G. The result is that the accounts affected by the child SCP are allowed to use only C, D, and E. They cannot use A or B because they were filtered out by the child OU. They also cannot use F and G because they were filtered out by the parent OU. They cannot be granted back by the child SCP; child SCPs can only filter the permissions they receive from the parent SCP.

    AWS Organizations attaches a default SCP named \"FullAWSAccess to every root, OU, and account. This default SCP allows all services and actions, enabling any new child OU or account to inherit the permissions of the parent root or OU. If you detach the default policy, you must replace it with a policy that specifies the permissions that you want to allow in that OU or account.

    For more information about how Organizations policies permissions work, see Using Service Control Policies in the AWS Organizations User Guide.

This operation can be called only from the organization's master account.

", + "CancelHandshake": "

Cancels a handshake. Canceling a handshake sets the handshake state to CANCELED.

This operation can be called only from the account that originated the handshake. The recipient of the handshake can't cancel it, but can use DeclineHandshake instead. After a handshake is canceled, the recipient can no longer respond to that handshake.

", + "CreateAccount": "

Creates an AWS account that is automatically a member of the organization whose credentials made the request. This is an asynchronous request that AWS performs in the background. If you want to check the status of the request later, you need the OperationId response element from this operation to provide as a parameter to the DescribeCreateAccountStatus operation.

AWS Organizations preconfigures the new member account with a role (named OrganizationAccountAccessRole by default) that grants administrator permissions to the new account. Principals in the master account can assume the role. AWS Organizations clones the company name and address information for the new account from the organization's master account.

For more information about creating accounts, see Creating an AWS Account in Your Organization in the AWS Organizations User Guide.

You cannot remove accounts that are created with this operation from an organization. That also means that you cannot delete an organization that contains an account that is created with this operation.

When you create a member account with this operation, the account is created with the IAM User and Role Access to Billing Information switch enabled. This allows IAM users and roles that are granted appropriate permissions to view billing information. If this is disabled, then only the account root user can access billing information. For information about how to disable this for an account, see Granting Access to Your Billing Information and Tools.

This operation can be called only from the organization's master account.

", + "CreateOrganization": "

Creates an AWS organization. The account whose user is calling the CreateOrganization operation automatically becomes the master account of the new organization.

This operation must be called using credentials from the account that is to become the new organization's master account. The principal must also have the relevant IAM permissions.

By default (or if you set the FeatureSet parameter to ALL), the new organization is created with all features enabled and service control policies automatically enabled in the root. If you instead choose to create the organization supporting only the consolidated billing features by setting the FeatureSet parameter to CONSOLIDATED_BILLING\", then no policy types are enabled by default and you cannot use organization policies.

", + "CreateOrganizationalUnit": "

Creates an organizational unit (OU) within a root or parent OU. An OU is a container for accounts that enables you to organize your accounts to apply policies according to your business requirements. The number of levels deep that you can nest OUs is dependent upon the policy types enabled for that root. For service control policies, the limit is five.

For more information about OUs, see Managing Organizational Units in the AWS Organizations User Guide.

This operation can be called only from the organization's master account.

", + "CreatePolicy": "

Creates a policy of a specified type that you can attach to a root, an organizational unit (OU), or an individual AWS account.

For more information about policies and their use, see Managing Organization Policies.

This operation can be called only from the organization's master account.

", + "DeclineHandshake": "

Declines a handshake request. This sets the handshake state to DECLINED and effectively deactivates the request.

This operation can be called only from the account that received the handshake. The originator of the handshake can use CancelHandshake instead. The originator can't reactivate a declined request, but can re-initiate the process with a new handshake request.

", + "DeleteOrganization": "

Deletes the organization. You can delete an organization only by using credentials from the master account. The organization must be empty of member accounts, OUs, and policies.

If you create any accounts using Organizations operations or the Organizations console, you can't remove those accounts from the organization, which means that you can't delete the organization.

", + "DeleteOrganizationalUnit": "

Deletes an organizational unit from a root or another OU. You must first remove all accounts and child OUs from the OU that you want to delete.

This operation can be called only from the organization's master account.

", + "DeletePolicy": "

Deletes the specified policy from your organization. Before you perform this operation, you must first detach the policy from all OUs, roots, and accounts.

This operation can be called only from the organization's master account.

", + "DescribeAccount": "

Retrieves Organizations-related information about the specified account.

This operation can be called only from the organization's master account.

", + "DescribeCreateAccountStatus": "

Retrieves the current status of an asynchronous request to create an account.

This operation can be called only from the organization's master account.

", + "DescribeHandshake": "

Retrieves information about a previously requested handshake. The handshake ID comes from the response to the original InviteAccountToOrganization operation that generated the handshake.

This operation can be called from any account in the organization.

", + "DescribeOrganization": "

Retrieves information about the organization that the user's account belongs to.

This operation can be called from any account in the organization.

", + "DescribeOrganizationalUnit": "

Retrieves information about an organizational unit (OU).

This operation can be called only from the organization's master account.

", + "DescribePolicy": "

Retrieves information about a policy.

This operation can be called only from the organization's master account.

", + "DetachPolicy": "

Detaches a policy from a target root, organizational unit, or account. If the policy being detached is a service control policy (SCP), the changes to permissions for IAM users and roles in affected accounts are immediate.

Note: Every root, OU, and account must have at least one SCP attached. If you want to replace the default FullAWSAccess policy with one that limits the permissions that can be delegated, then you must attach the replacement policy before you can remove the default one. This is the authorization strategy of whitelisting. If you instead attach a second SCP and leave the FullAWSAccess SCP still attached, and specify \"Effect\": \"Deny\" in the second SCP to override the \"Effect\": \"Allow\" in the FullAWSAccess policy (or any other attached SCP), then you are using the authorization strategy of blacklisting.

This operation can be called only from the organization's master account.

", + "DisablePolicyType": "

Disables an organizational control policy type in a root. A poicy of a certain type can be attached to entities in a root only if that type is enabled in the root. After you perform this operation, you no longer can attach policies of the specified type to that root or to any OU or account in that root. You can undo this by using the EnablePolicyType operation.

This operation can be called only from the organization's master account.

", + "EnableAllFeatures": "

Enables all features in an organization. This enables the use of organization policies that can restrict the services and actions that can be called in each account. Until you enable all features, you have access only to consolidated billing, and you can't use any of the advanced account administration features that AWS Organizations supports. For more information, see Enabling All Features in Your Organization in the AWS Organizations User Guide.

This operation is required only for organizations that were created explicitly with only the consolidated billing features enabled, or that were migrated from a Consolidated Billing account family to Organizations. Calling this operation sends a handshake to every invited account in the organization. The feature set change can be finalized and the additional features enabled only after all administrators in the invited accounts approve the change by accepting the handshake.

After all invited member accounts accept the handshake, you finalize the feature set change by accepting the handshake that contains \"Action\": \"ENABLE_ALL_FEATURES\". This completes the change.

After you enable all features in your organization, the master account in the organization can apply policies on all member accounts. These policies can restrict what users and even administrators in those accounts can do. The master account can apply policies that prevent accounts from leaving the organization. Ensure that your account administrators are aware of this.

This operation can be called only from the organization's master account.

", + "EnablePolicyType": "

Enables a policy type in a root. After you enable a policy type in a root, you can attach policies of that type to the root, any OU, or account in that root. You can undo this by using the DisablePolicyType operation.

This operation can be called only from the organization's master account.

", + "InviteAccountToOrganization": "

Sends an invitation to another account to join your organization as a member account. Organizations sends email on your behalf to the email address that is associated with the other account's owner. The invitation is implemented as a Handshake whose details are in the response.

This operation can be called only from the organization's master account.

", + "LeaveOrganization": "

Removes a member account from its parent organization. This version of the operation is performed by the account that wants to leave. To remove a member account as a user in the master account, use RemoveAccountFromOrganization instead.

This operation can be called only from a member account in the organization.

The master account in an organization with all features enabled can set service control policies (SCPs) that can restrict what administrators of member accounts can do, including preventing them from successfully calling LeaveOrganization and leaving the organization.

", + "ListAccounts": "

Lists all the accounts in the organization. To request only the accounts in a root or OU, use the ListAccountsForParent operation instead.

This operation can be called only from the organization's master account.

", + "ListAccountsForParent": "

Lists the accounts in an organization that are contained by the specified target root or organizational unit (OU). If you specify the root, you get a list of all the accounts that are not in any OU. If you specify an OU, you get a list of all the accounts in only that OU, and not in any child OUs. To get a list of all accounts in the organization, use the ListAccounts operation.

", + "ListChildren": "

Lists all of the OUs or accounts that are contained in the specified parent OU or root. This operation, along with ListParents enables you to traverse the tree structure that makes up this root.

", + "ListCreateAccountStatus": "

Lists the account creation requests that match the specified status that is currently being tracked for the organization.

This operation can be called only from the organization's master account.

", + "ListHandshakesForAccount": "

Lists the current handshakes that are associated with the account of the requesting user.

This operation can be called from any account in the organization.

", + "ListHandshakesForOrganization": "

Lists the handshakes that are associated with the organization that the requesting user is part of. The ListHandshakesForOrganization operation returns a list of handshake structures. Each structure contains details and status about a handshake.

This operation can be called only from the organization's master account.

", + "ListOrganizationalUnitsForParent": "

Lists the organizational units (OUs) in a parent organizational unit or root.

This operation can be called only from the organization's master account.

", + "ListParents": "

Lists the root or organizational units (OUs) that serve as the immediate parent of the specified child OU or account. This operation, along with ListChildren enables you to traverse the tree structure that makes up this root.

This operation can be called only from the organization's master account.

In the current release, a child can have only a single parent.

", + "ListPolicies": "

Retrieves the list of all policies in an organization of a specified type.

This operation can be called only from the organization's master account.

", + "ListPoliciesForTarget": "

Lists the policies that are directly attached to the specified target root, organizational unit (OU), or account. You must specify the policy type that you want included in the returned list.

This operation can be called only from the organization's master account.

", + "ListRoots": "

Lists the roots that are defined in the current organization.

This operation can be called only from the organization's master account.

", + "ListTargetsForPolicy": "

Lists all the roots, OUs, and accounts to which the specified policy is attached.

This operation can be called only from the organization's master account.

", + "MoveAccount": "

Moves an account from its current source parent root or OU to the specified destination parent root or OU.

This operation can be called only from the organization's master account.

", + "RemoveAccountFromOrganization": "

Removes the specified account from the organization.

The removed account becomes a stand-alone account that is not a member of any organization. It is no longer subject to any policies and is responsible for its own bill payments. The organization's master account is no longer charged for any expenses accrued by the member account after it is removed from the organization.

This operation can be called only from the organization's master account. Member accounts can remove themselves with LeaveOrganization instead.

You can remove only existing accounts that were invited to join the organization. You cannot remove accounts that were created by AWS Organizations.

", + "UpdateOrganizationalUnit": "

Renames the specified organizational unit (OU). The ID and ARN do not change. The child OUs and accounts remain in place, and any attached policies of the OU remain attached.

This operation can be called only from the organization's master account.

", + "UpdatePolicy": "

Updates an existing policy with a new name, description, or content. If any parameter is not supplied, that value remains unchanged. Note that you cannot change a policy's type.

This operation can be called only from the organization's master account.

" + }, + "shapes": { + "AWSOrganizationsNotInUseException": { + "base": "

Your account is not a member of an organization. To make this request, you must use the credentials of an account that belongs to an organization.

", + "refs": { + } + }, + "AcceptHandshakeRequest": { + "base": null, + "refs": { + } + }, + "AcceptHandshakeResponse": { + "base": null, + "refs": { + } + }, + "AccessDeniedException": { + "base": "

You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide.

", + "refs": { + } + }, + "Account": { + "base": "

Contains information about an AWS account that is a member of an organization.

", + "refs": { + "Accounts$member": null, + "DescribeAccountResponse$Account": "

A structure that contains information about the requested account.

" + } + }, + "AccountArn": { + "base": null, + "refs": { + "Account$Arn": "

The Amazon Resource Name (ARN) of the account.

For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.

", + "Organization$MasterAccountArn": "

The Amazon Resource Name (ARN) of the account that is designated as the master account for the organization.

For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.

" + } + }, + "AccountId": { + "base": null, + "refs": { + "Account$Id": "

The unique identifier (ID) of the account.

The regex pattern for an account ID string requires exactly 12 digits.

", + "CreateAccountStatus$AccountId": "

If the account was created successfully, the unique identifier (ID) of the new account.

The regex pattern for an account ID string requires exactly 12 digits.

", + "DescribeAccountRequest$AccountId": "

The unique identifier (ID) of the AWS account that you want information about. You can get the ID from the ListAccounts or ListAccountsForParent operations.

The regex pattern for an account ID string requires exactly 12 digits.

", + "MoveAccountRequest$AccountId": "

The unique identifier (ID) of the account that you want to move.

The regex pattern for an account ID string requires exactly 12 digits.

", + "Organization$MasterAccountId": "

The unique identifier (ID) of the master account of an organization.

The regex pattern for an account ID string requires exactly 12 digits.

", + "RemoveAccountFromOrganizationRequest$AccountId": "

The unique identifier (ID) of the member account that you want to remove from the organization.

The regex pattern for an account ID string requires exactly 12 digits.

" + } + }, + "AccountJoinedMethod": { + "base": null, + "refs": { + "Account$JoinedMethod": "

The method by which the account joined the organization.

" + } + }, + "AccountName": { + "base": null, + "refs": { + "Account$Name": "

The friendly name of the account.

The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.

", + "CreateAccountRequest$AccountName": "

The friendly name of the member account.

", + "CreateAccountStatus$AccountName": "

The account name given to the account when it was created.

" + } + }, + "AccountNotFoundException": { + "base": "

We can't find an AWS account with the AccountId that you specified, or the account whose credentials you used to make this request is not a member of an organization.

", + "refs": { + } + }, + "AccountStatus": { + "base": null, + "refs": { + "Account$Status": "

The status of the account in the organization.

" + } + }, + "Accounts": { + "base": null, + "refs": { + "ListAccountsForParentResponse$Accounts": "

A list of the accounts in the specified root or OU.

", + "ListAccountsResponse$Accounts": "

A list of objects in the organization.

" + } + }, + "ActionType": { + "base": null, + "refs": { + "Handshake$Action": "

The type of handshake, indicating what action occurs when the recipient accepts the handshake.

", + "HandshakeFilter$ActionType": "

Specifies the type of handshake action.

If you specify ActionType, you cannot also specify ParentHandshakeId.

" + } + }, + "AlreadyInOrganizationException": { + "base": "

This account is already a member of an organization. An account can belong to only one organization at a time.

", + "refs": { + } + }, + "AttachPolicyRequest": { + "base": null, + "refs": { + } + }, + "AwsManagedPolicy": { + "base": null, + "refs": { + "PolicySummary$AwsManaged": "

A boolean value that indicates whether the specified policy is an AWS managed policy. If true, then you can attach the policy to roots, OUs, or accounts, but you cannot edit it.

" + } + }, + "CancelHandshakeRequest": { + "base": null, + "refs": { + } + }, + "CancelHandshakeResponse": { + "base": null, + "refs": { + } + }, + "Child": { + "base": "

Contains a list of child entities, either OUs or accounts.

", + "refs": { + "Children$member": null + } + }, + "ChildId": { + "base": null, + "refs": { + "Child$Id": "

The unique identifier (ID) of this child entity.

The regex pattern for a child ID string requires one of the following:

  • Account: a string that consists of exactly 12 digits.

  • Organizational unit (OU): a string that begins with \"ou-\" followed by from 4 to 32 lower-case letters or digits (the ID of the root that contains the OU) followed by a second \"-\" dash and from 8 to 32 additional lower-case letters or digits.

", + "ListParentsRequest$ChildId": "

The unique identifier (ID) of the OU or account whose parent containers you want to list. Do not specify a root.

The regex pattern for a child ID string requires one of the following:

  • Account: a string that consists of exactly 12 digits.

  • Organizational unit (OU): a string that begins with \"ou-\" followed by from 4 to 32 lower-case letters or digits (the ID of the root that contains the OU) followed by a second \"-\" dash and from 8 to 32 additional lower-case letters or digits.

" + } + }, + "ChildNotFoundException": { + "base": "

We can't find an organizational unit (OU) or AWS account with the ChildId that you specified.

", + "refs": { + } + }, + "ChildType": { + "base": null, + "refs": { + "Child$Type": "

The type of this child entity.

", + "ListChildrenRequest$ChildType": "

Filters the output to include only the specified child type.

" + } + }, + "Children": { + "base": null, + "refs": { + "ListChildrenResponse$Children": "

The list of children of the specified parent container.

" + } + }, + "ConcurrentModificationException": { + "base": "

The target of the operation is currently being modified by a different request. Try again later.

", + "refs": { + } + }, + "ConstraintViolationException": { + "base": "

Performing this operation violates a minimum or maximum value limit. For example, attempting to removing the last SCP from an OU or root, inviting or creating too many accounts to the organization, or attaching too many policies to an account, OU, or root.

", + "refs": { + } + }, + "ConstraintViolationExceptionReason": { + "base": null, + "refs": { + "ConstraintViolationException$Reason": null + } + }, + "CreateAccountFailureReason": { + "base": null, + "refs": { + "CreateAccountStatus$FailureReason": "

If the request failed, a description of the reason for the failure.

" + } + }, + "CreateAccountRequest": { + "base": null, + "refs": { + } + }, + "CreateAccountRequestId": { + "base": null, + "refs": { + "CreateAccountStatus$Id": "

The unique identifier (ID) that references this request. You get this value from the response of the initial CreateAccount request to create the account.

The regex pattern for an create account request ID string requires \"car-\" followed by from 8 to 32 lower-case letters or digits.

", + "DescribeCreateAccountStatusRequest$CreateAccountRequestId": "

Specifies the operationId that uniquely identifies the request. You can get the ID from the response to an earlier CreateAccount request, or from the ListCreateAccountStatus operation.

The regex pattern for an create account request ID string requires \"car-\" followed by from 8 to 32 lower-case letters or digits.

" + } + }, + "CreateAccountResponse": { + "base": null, + "refs": { + } + }, + "CreateAccountState": { + "base": null, + "refs": { + "CreateAccountStates$member": null, + "CreateAccountStatus$State": "

The status of the request.

" + } + }, + "CreateAccountStates": { + "base": null, + "refs": { + "ListCreateAccountStatusRequest$States": "

A list of one or more states that you want included in the response. If this parameter is not present, then all requests are included in the response.

" + } + }, + "CreateAccountStatus": { + "base": "

Contains the status about a CreateAccount request to create an AWS account in an organization.

", + "refs": { + "CreateAccountResponse$CreateAccountStatus": "

A structure that contains details about the request to create an account. This response structure might not be fully populated when you first receive it because account creation is an asynchronous process. You can pass the returned CreateAccountStatus ID as a parameter to DescribeCreateAccountStatus to get status about the progress of the request at later times.

", + "CreateAccountStatuses$member": null, + "DescribeCreateAccountStatusResponse$CreateAccountStatus": "

A structure that contains the current status of an account creation request.

" + } + }, + "CreateAccountStatusNotFoundException": { + "base": "

We can't find an create account request with the CreateAccountRequestId that you specified.

", + "refs": { + } + }, + "CreateAccountStatuses": { + "base": null, + "refs": { + "ListCreateAccountStatusResponse$CreateAccountStatuses": "

A list of objects with details about the requests. Certain elements, such as the accountId number, are present in the output only after the account has been successfully created.

" + } + }, + "CreateOrganizationRequest": { + "base": null, + "refs": { + } + }, + "CreateOrganizationResponse": { + "base": null, + "refs": { + } + }, + "CreateOrganizationalUnitRequest": { + "base": null, + "refs": { + } + }, + "CreateOrganizationalUnitResponse": { + "base": null, + "refs": { + } + }, + "CreatePolicyRequest": { + "base": null, + "refs": { + } + }, + "CreatePolicyResponse": { + "base": null, + "refs": { + } + }, + "DeclineHandshakeRequest": { + "base": null, + "refs": { + } + }, + "DeclineHandshakeResponse": { + "base": null, + "refs": { + } + }, + "DeleteOrganizationalUnitRequest": { + "base": null, + "refs": { + } + }, + "DeletePolicyRequest": { + "base": null, + "refs": { + } + }, + "DescribeAccountRequest": { + "base": null, + "refs": { + } + }, + "DescribeAccountResponse": { + "base": null, + "refs": { + } + }, + "DescribeCreateAccountStatusRequest": { + "base": null, + "refs": { + } + }, + "DescribeCreateAccountStatusResponse": { + "base": null, + "refs": { + } + }, + "DescribeHandshakeRequest": { + "base": null, + "refs": { + } + }, + "DescribeHandshakeResponse": { + "base": null, + "refs": { + } + }, + "DescribeOrganizationResponse": { + "base": null, + "refs": { + } + }, + "DescribeOrganizationalUnitRequest": { + "base": null, + "refs": { + } + }, + "DescribeOrganizationalUnitResponse": { + "base": null, + "refs": { + } + }, + "DescribePolicyRequest": { + "base": null, + "refs": { + } + }, + "DescribePolicyResponse": { + "base": null, + "refs": { + } + }, + "DestinationParentNotFoundException": { + "base": "

We can't find the destination container (a root or OU) with the ParentId that you specified.

", + "refs": { + } + }, + "DetachPolicyRequest": { + "base": null, + "refs": { + } + }, + "DisablePolicyTypeRequest": { + "base": null, + "refs": { + } + }, + "DisablePolicyTypeResponse": { + "base": null, + "refs": { + } + }, + "DuplicateAccountException": { + "base": "

That account is already present in the specified destination.

", + "refs": { + } + }, + "DuplicateHandshakeException": { + "base": "

A handshake with the same action and target already exists. For example, if you invited an account to join your organization, the invited account might already have a pending invitation from this organization. If you intend to resend an invitation to an account, ensure that existing handshakes that might be considered duplicates are canceled or declined.

", + "refs": { + } + }, + "DuplicateOrganizationalUnitException": { + "base": "

An organizational unit (OU) with the same name already exists.

", + "refs": { + } + }, + "DuplicatePolicyAttachmentException": { + "base": "

The selected policy is already attached to the specified target.

", + "refs": { + } + }, + "DuplicatePolicyException": { + "base": "

A policy with the same name already exists.

", + "refs": { + } + }, + "Email": { + "base": null, + "refs": { + "CreateAccountRequest$Email": "

The email address of the owner to assign to the new member account. This email address must not already be associated with another AWS account.

", + "Organization$MasterAccountEmail": "

The email address that is associated with the AWS account that is designated as the master account for the organization.

" + } + }, + "EnableAllFeaturesRequest": { + "base": null, + "refs": { + } + }, + "EnableAllFeaturesResponse": { + "base": null, + "refs": { + } + }, + "EnablePolicyTypeRequest": { + "base": null, + "refs": { + } + }, + "EnablePolicyTypeResponse": { + "base": null, + "refs": { + } + }, + "ExceptionMessage": { + "base": null, + "refs": { + "AWSOrganizationsNotInUseException$Message": null, + "AccessDeniedException$Message": null, + "AccountNotFoundException$Message": null, + "AlreadyInOrganizationException$Message": null, + "ChildNotFoundException$Message": null, + "ConcurrentModificationException$Message": null, + "ConstraintViolationException$Message": null, + "CreateAccountStatusNotFoundException$Message": null, + "DestinationParentNotFoundException$Message": null, + "DuplicateAccountException$Message": null, + "DuplicateHandshakeException$Message": null, + "DuplicateOrganizationalUnitException$Message": null, + "DuplicatePolicyAttachmentException$Message": null, + "DuplicatePolicyException$Message": null, + "FinalizingOrganizationException$Message": null, + "HandshakeAlreadyInStateException$Message": null, + "HandshakeConstraintViolationException$Message": null, + "HandshakeNotFoundException$Message": null, + "InvalidHandshakeTransitionException$Message": null, + "InvalidInputException$Message": null, + "MalformedPolicyDocumentException$Message": null, + "MasterCannotLeaveOrganizationException$Message": null, + "OrganizationNotEmptyException$Message": null, + "OrganizationalUnitNotEmptyException$Message": null, + "OrganizationalUnitNotFoundException$Message": null, + "ParentNotFoundException$Message": null, + "PolicyInUseException$Message": null, + "PolicyNotAttachedException$Message": null, + "PolicyNotFoundException$Message": null, + "PolicyTypeAlreadyEnabledException$Message": null, + "PolicyTypeNotAvailableForOrganizationException$Message": null, + "PolicyTypeNotEnabledException$Message": null, + "RootNotFoundException$Message": null, + "ServiceException$Message": null, + "SourceParentNotFoundException$Message": null, + "TargetNotFoundException$Message": null, + "TooManyRequestsException$Message": null + } + }, + "ExceptionType": { + "base": null, + "refs": { + "TooManyRequestsException$Type": null + } + }, + "FinalizingOrganizationException": { + "base": "

AWS Organizations could not finalize the creation of your organization. Try again later. If this persists, contact AWS customer support.

", + "refs": { + } + }, + "GenericArn": { + "base": null, + "refs": { + "PolicyTargetSummary$Arn": "

The Amazon Resource Name (ARN) of the policy target.

For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.

" + } + }, + "Handshake": { + "base": "

Contains information that must be exchanged to securely establish a relationship between two accounts (an originator and a recipient). For example, when a master account (the originator) invites another account (the recipient) to join its organization, the two accounts exchange information as a series of handshake requests and responses.

", + "refs": { + "AcceptHandshakeResponse$Handshake": "

A structure that contains details about the accepted handshake.

", + "CancelHandshakeResponse$Handshake": "

A structure that contains details about the handshake that you canceled.

", + "DeclineHandshakeResponse$Handshake": "

A structure that contains details about the declined handshake. The state is updated to show the value DECLINED.

", + "DescribeHandshakeResponse$Handshake": "

A structure that contains information about the specified handshake.

", + "EnableAllFeaturesResponse$Handshake": "

A structure that contains details about the handshake created to support this request to enable all features in the organization.

", + "Handshakes$member": null, + "InviteAccountToOrganizationResponse$Handshake": "

A structure that contains details about the handshake that is created to support this invitation request.

" + } + }, + "HandshakeAlreadyInStateException": { + "base": "

The specified handshake is already in the requested state. For example, you can't accept a handshake that was already accepted.

", + "refs": { + } + }, + "HandshakeArn": { + "base": null, + "refs": { + "Handshake$Arn": "

The Amazon Resource Name (ARN) of a handshake.

For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.

" + } + }, + "HandshakeConstraintViolationException": { + "base": "

The requested operation would violate the constraint identified in the reason code.

", + "refs": { + } + }, + "HandshakeConstraintViolationExceptionReason": { + "base": null, + "refs": { + "HandshakeConstraintViolationException$Reason": null + } + }, + "HandshakeFilter": { + "base": "

Specifies the criteria that are used to select the handshakes for the operation.

", + "refs": { + "ListHandshakesForAccountRequest$Filter": "

Filters the handshakes that you want included in the response. The default is all types. Use the ActionType element to limit the output to only a specified type, such as INVITE, ENABLE-FULL-CONTROL, or APPROVE-FULL-CONTROL. Alternatively, for the ENABLE-FULL-CONTROL handshake that generates a separate child handshake for each member account, you can specify ParentHandshakeId to see only the handshakes that were generated by that parent request.

", + "ListHandshakesForOrganizationRequest$Filter": "

A filter of the handshakes that you want included in the response. The default is all types. Use the ActionType element to limit the output to only a specified type, such as INVITE, ENABLE-ALL-FEATURES, or APPROVE-ALL-FEATURES. Alternatively, for the ENABLE-ALL-FEATURES handshake that generates a separate child handshake for each member account, you can specify the ParentHandshakeId to see only the handshakes that were generated by that parent request.

" + } + }, + "HandshakeId": { + "base": null, + "refs": { + "AcceptHandshakeRequest$HandshakeId": "

The unique identifier (ID) of the handshake that you want to accept.

The regex pattern for handshake ID string requires \"h-\" followed by from 8 to 32 lower-case letters or digits.

", + "CancelHandshakeRequest$HandshakeId": "

The unique identifier (ID) of the handshake that you want to cancel. You can get the ID from the ListHandshakesForOrganization operation.

The regex pattern for handshake ID string requires \"h-\" followed by from 8 to 32 lower-case letters or digits.

", + "DeclineHandshakeRequest$HandshakeId": "

The unique identifier (ID) of the handshake that you want to decline. You can get the ID from the ListHandshakesForAccount operation.

The regex pattern for handshake ID string requires \"h-\" followed by from 8 to 32 lower-case letters or digits.

", + "DescribeHandshakeRequest$HandshakeId": "

The unique identifier (ID) of the handshake that you want information about. You can get the ID from the original call to InviteAccountToOrganization, or from a call to ListHandshakesForAccount or ListHandshakesForOrganization.

The regex pattern for handshake ID string requires \"h-\" followed by from 8 to 32 lower-case letters or digits.

", + "Handshake$Id": "

The unique identifier (ID) of a handshake. The originating account creates the ID when it initiates the handshake.

The regex pattern for handshake ID string requires \"h-\" followed by from 8 to 32 lower-case letters or digits.

", + "HandshakeFilter$ParentHandshakeId": "

Specifies the parent handshake. Only used for handshake types that are a child of another type.

If you specify ParentHandshakeId, you cannot also specify ActionType.

The regex pattern for handshake ID string requires \"h-\" followed by from 8 to 32 lower-case letters or digits.

" + } + }, + "HandshakeNotFoundException": { + "base": "

We can't find a handshake with the HandshakeId that you specified.

", + "refs": { + } + }, + "HandshakeNotes": { + "base": null, + "refs": { + "InviteAccountToOrganizationRequest$Notes": "

Additional information that you want to include in the generated email to the recipient account owner.

" + } + }, + "HandshakeParties": { + "base": null, + "refs": { + "Handshake$Parties": "

Information about the two accounts that are participating in the handshake.

" + } + }, + "HandshakeParty": { + "base": "

Identifies a participant in a handshake.

", + "refs": { + "HandshakeParties$member": null, + "InviteAccountToOrganizationRequest$Target": "

The identifier (ID) of the AWS account that you want to invite to join your organization. This is a JSON object that contains the following elements:

{ \"Type\": \"ACCOUNT\", \"Id\": \"< account id number >\" }

If you use the AWS CLI, you can submit this as a single string, similar to the following example:

--target id=123456789012,type=ACCOUNT

If you specify \"Type\": \"ACCOUNT\", then you must provide the AWS account ID number as the Id. If you specify \"Type\": \"EMAIL\", then you must specify the email address that is associated with the account.

--target id=bill@example.com,type=EMAIL

" + } + }, + "HandshakePartyId": { + "base": null, + "refs": { + "HandshakeParty$Id": "

The unique identifier (ID) for the party.

The regex pattern for handshake ID string requires \"h-\" followed by from 8 to 32 lower-case letters or digits.

" + } + }, + "HandshakePartyType": { + "base": null, + "refs": { + "HandshakeParty$Type": "

The type of party.

" + } + }, + "HandshakeResource": { + "base": "

Contains additional data that is needed to process a handshake.

", + "refs": { + "HandshakeResources$member": null + } + }, + "HandshakeResourceType": { + "base": null, + "refs": { + "HandshakeResource$Type": "

The type of information being passed, specifying how the value is to be interpreted by the other party:

  • ACCOUNT - Specifies an AWS account ID number.

  • ORGANIZATION - Specifies an organization ID number.

  • EMAIL - Specifies the email address that is associated with the account that receives the handshake.

  • OWNER_EMAIL - Specifies the email address associated with the master account. Included as information about an organization.

  • OWNER_NAME - Specifies the name associated with the master account. Included as information about an organization.

  • NOTES - Additional text provided by the handshake initiator and intended for the recipient to read.

" + } + }, + "HandshakeResourceValue": { + "base": null, + "refs": { + "HandshakeResource$Value": "

The information that is passed to the other party in the handshake. The format of the value string must match the requirements of the specified type.

" + } + }, + "HandshakeResources": { + "base": null, + "refs": { + "Handshake$Resources": "

Additional information that is needed to process the handshake.

", + "HandshakeResource$Resources": "

When needed, contains an additional array of HandshakeResource objects.

" + } + }, + "HandshakeState": { + "base": null, + "refs": { + "Handshake$State": "

The current state of the handshake. Use the state to trace the flow of the handshake through the process from its creation to its acceptance. The meaning of each of the valid values is as follows:

  • REQUESTED: This handshake was sent to multiple recipients (applicable to only some handshake types) and not all recipients have responded yet. The request stays in this state until all recipients respond.

  • OPEN: This handshake was sent to multiple recipients (applicable to only some policy types) and all recipients have responded, allowing the originator to complete the handshake action.

  • CANCELED: This handshake is no longer active because it was canceled by the originating account.

  • ACCEPTED: This handshake is complete because it has been accepted by the recipient.

  • DECLINED: This handshake is no longer active because it was declined by the recipient account.

  • EXPIRED: This handshake is no longer active because the originator did not receive a response of any kind from the recipient before the expiration time (15 days).

" + } + }, + "Handshakes": { + "base": null, + "refs": { + "ListHandshakesForAccountResponse$Handshakes": "

A list of Handshake objects with details about each of the handshakes that is associated with the specified account.

", + "ListHandshakesForOrganizationResponse$Handshakes": "

A list of Handshake objects with details about each of the handshakes that are associated with an organization.

" + } + }, + "IAMUserAccessToBilling": { + "base": null, + "refs": { + "CreateAccountRequest$IamUserAccessToBilling": "

If set to ALLOW, the new account enables IAM users to access account billing information if they have the required permissions. If set to DENY, then only the root user of the new account can access account billing information. For more information, see Activating Access to the Billing and Cost Management Console in the AWS Billing and Cost Management User Guide.

" + } + }, + "InvalidHandshakeTransitionException": { + "base": "

You can't perform the operation on the handshake in its current state. For example, you can't cancel a handshake that was already accepted, or accept a handshake that was already declined.

", + "refs": { + } + }, + "InvalidInputException": { + "base": "

You provided invalid values for one or more of the request parameters.

", + "refs": { + } + }, + "InvalidInputExceptionReason": { + "base": null, + "refs": { + "InvalidInputException$Reason": null + } + }, + "InviteAccountToOrganizationRequest": { + "base": null, + "refs": { + } + }, + "InviteAccountToOrganizationResponse": { + "base": null, + "refs": { + } + }, + "ListAccountsForParentRequest": { + "base": null, + "refs": { + } + }, + "ListAccountsForParentResponse": { + "base": null, + "refs": { + } + }, + "ListAccountsRequest": { + "base": null, + "refs": { + } + }, + "ListAccountsResponse": { + "base": null, + "refs": { + } + }, + "ListChildrenRequest": { + "base": null, + "refs": { + } + }, + "ListChildrenResponse": { + "base": null, + "refs": { + } + }, + "ListCreateAccountStatusRequest": { + "base": null, + "refs": { + } + }, + "ListCreateAccountStatusResponse": { + "base": null, + "refs": { + } + }, + "ListHandshakesForAccountRequest": { + "base": null, + "refs": { + } + }, + "ListHandshakesForAccountResponse": { + "base": null, + "refs": { + } + }, + "ListHandshakesForOrganizationRequest": { + "base": null, + "refs": { + } + }, + "ListHandshakesForOrganizationResponse": { + "base": null, + "refs": { + } + }, + "ListOrganizationalUnitsForParentRequest": { + "base": null, + "refs": { + } + }, + "ListOrganizationalUnitsForParentResponse": { + "base": null, + "refs": { + } + }, + "ListParentsRequest": { + "base": null, + "refs": { + } + }, + "ListParentsResponse": { + "base": null, + "refs": { + } + }, + "ListPoliciesForTargetRequest": { + "base": null, + "refs": { + } + }, + "ListPoliciesForTargetResponse": { + "base": null, + "refs": { + } + }, + "ListPoliciesRequest": { + "base": null, + "refs": { + } + }, + "ListPoliciesResponse": { + "base": null, + "refs": { + } + }, + "ListRootsRequest": { + "base": null, + "refs": { + } + }, + "ListRootsResponse": { + "base": null, + "refs": { + } + }, + "ListTargetsForPolicyRequest": { + "base": null, + "refs": { + } + }, + "ListTargetsForPolicyResponse": { + "base": null, + "refs": { + } + }, + "MalformedPolicyDocumentException": { + "base": "

The provided policy document does not meet the requirements of the specified policy type. For example, the syntax might be incorrect. For details about service control policy syntax, see Service Control Policy Syntax in the AWS Organizations User Guide.

", + "refs": { + } + }, + "MasterCannotLeaveOrganizationException": { + "base": "

You can't remove a master account from an organization. If you want the master account to become a member account in another organization, you must first delete the current organization of the master account.

", + "refs": { + } + }, + "MaxResults": { + "base": null, + "refs": { + "ListAccountsForParentRequest$MaxResults": "

(Optional) Use this to limit the number of results you want included in the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

", + "ListAccountsRequest$MaxResults": "

(Optional) Use this to limit the number of results you want included in the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

", + "ListChildrenRequest$MaxResults": "

(Optional) Use this to limit the number of results you want included in the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

", + "ListCreateAccountStatusRequest$MaxResults": "

(Optional) Use this to limit the number of results you want included in the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

", + "ListHandshakesForAccountRequest$MaxResults": "

(Optional) Use this to limit the number of results you want included in the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

", + "ListHandshakesForOrganizationRequest$MaxResults": "

(Optional) Use this to limit the number of results you want included in the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

", + "ListOrganizationalUnitsForParentRequest$MaxResults": "

(Optional) Use this to limit the number of results you want included in the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

", + "ListParentsRequest$MaxResults": "

(Optional) Use this to limit the number of results you want included in the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

", + "ListPoliciesForTargetRequest$MaxResults": "

(Optional) Use this to limit the number of results you want included in the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

", + "ListPoliciesRequest$MaxResults": "

(Optional) Use this to limit the number of results you want included in the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

", + "ListRootsRequest$MaxResults": "

(Optional) Use this to limit the number of results you want included in the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

", + "ListTargetsForPolicyRequest$MaxResults": "

(Optional) Use this to limit the number of results you want included in the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

" + } + }, + "MoveAccountRequest": { + "base": null, + "refs": { + } + }, + "NextToken": { + "base": null, + "refs": { + "ListAccountsForParentRequest$NextToken": "

Use this parameter if you receive a NextToken response in a previous request that indicates that there is more output available. Set it to the value of the previous call's NextToken response to indicate where the output should continue from.

", + "ListAccountsForParentResponse$NextToken": "

If present, this value indicates that there is more output available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.

", + "ListAccountsRequest$NextToken": "

Use this parameter if you receive a NextToken response in a previous request that indicates that there is more output available. Set it to the value of the previous call's NextToken response to indicate where the output should continue from.

", + "ListAccountsResponse$NextToken": "

If present, this value indicates that there is more output available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.

", + "ListChildrenRequest$NextToken": "

Use this parameter if you receive a NextToken response in a previous request that indicates that there is more output available. Set it to the value of the previous call's NextToken response to indicate where the output should continue from.

", + "ListChildrenResponse$NextToken": "

If present, this value indicates that there is more output available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.

", + "ListCreateAccountStatusRequest$NextToken": "

Use this parameter if you receive a NextToken response in a previous request that indicates that there is more output available. Set it to the value of the previous call's NextToken response to indicate where the output should continue from.

", + "ListCreateAccountStatusResponse$NextToken": "

If present, this value indicates that there is more output available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.

", + "ListHandshakesForAccountRequest$NextToken": "

Use this parameter if you receive a NextToken response in a previous request that indicates that there is more output available. Set it to the value of the previous call's NextToken response to indicate where the output should continue from.

", + "ListHandshakesForAccountResponse$NextToken": "

If present, this value indicates that there is more output available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.

", + "ListHandshakesForOrganizationRequest$NextToken": "

Use this parameter if you receive a NextToken response in a previous request that indicates that there is more output available. Set it to the value of the previous call's NextToken response to indicate where the output should continue from.

", + "ListHandshakesForOrganizationResponse$NextToken": "

If present, this value indicates that there is more output available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.

", + "ListOrganizationalUnitsForParentRequest$NextToken": "

Use this parameter if you receive a NextToken response in a previous request that indicates that there is more output available. Set it to the value of the previous call's NextToken response to indicate where the output should continue from.

", + "ListOrganizationalUnitsForParentResponse$NextToken": "

If present, this value indicates that there is more output available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.

", + "ListParentsRequest$NextToken": "

Use this parameter if you receive a NextToken response in a previous request that indicates that there is more output available. Set it to the value of the previous call's NextToken response to indicate where the output should continue from.

", + "ListParentsResponse$NextToken": "

If present, this value indicates that there is more output available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.

", + "ListPoliciesForTargetRequest$NextToken": "

Use this parameter if you receive a NextToken response in a previous request that indicates that there is more output available. Set it to the value of the previous call's NextToken response to indicate where the output should continue from.

", + "ListPoliciesForTargetResponse$NextToken": "

If present, this value indicates that there is more output available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.

", + "ListPoliciesRequest$NextToken": "

Use this parameter if you receive a NextToken response in a previous request that indicates that there is more output available. Set it to the value of the previous call's NextToken response to indicate where the output should continue from.

", + "ListPoliciesResponse$NextToken": "

If present, this value indicates that there is more output available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.

", + "ListRootsRequest$NextToken": "

Use this parameter if you receive a NextToken response in a previous request that indicates that there is more output available. Set it to the value of the previous call's NextToken response to indicate where the output should continue from.

", + "ListRootsResponse$NextToken": "

If present, this value indicates that there is more output available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.

", + "ListTargetsForPolicyRequest$NextToken": "

Use this parameter if you receive a NextToken response in a previous request that indicates that there is more output available. Set it to the value of the previous call's NextToken response to indicate where the output should continue from.

", + "ListTargetsForPolicyResponse$NextToken": "

If present, this value indicates that there is more output available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.

" + } + }, + "Organization": { + "base": "

Contains details about an organization. An organization is a collection of accounts that are centrally managed together using consolidated billing, organized hierarchically with organizational units (OUs), and controlled with policies .

", + "refs": { + "CreateOrganizationResponse$Organization": "

A structure that contains details about the newly created organization.

", + "DescribeOrganizationResponse$Organization": "

A structure that contains information about the organization.

" + } + }, + "OrganizationArn": { + "base": null, + "refs": { + "Organization$Arn": "

The Amazon Resource Name (ARN) of an organization.

For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.

" + } + }, + "OrganizationFeatureSet": { + "base": null, + "refs": { + "CreateOrganizationRequest$FeatureSet": "

Specifies the feature set supported by the new organization. Each feature set supports different levels of functionality.

  • CONSOLIDATED_BILLING: All member accounts have their bills consolidated to and paid by the master account. For more information, see Consolidated Billing in the AWS Organizations User Guide.

  • ALL: In addition to all the features supported by the consolidated billing feature set, the master account can also apply any type of policy to any member account in the organization. For more information, see All features in the AWS Organizations User Guide.

", + "Organization$FeatureSet": "

Specifies the functionality that currently is available to the organization. If set to \"ALL\", then all features are enabled and policies can be applied to accounts in the organization. If set to \"CONSOLIDATED_BILLING\", then only consolidated billing functionality is available. For more information, see Enabling All Features in Your Organization in the AWS Organizations User Guide.

" + } + }, + "OrganizationId": { + "base": null, + "refs": { + "Organization$Id": "

The unique identifier (ID) of an organization.

The regex pattern for an organization ID string requires \"o-\" followed by from 10 to 32 lower-case letters or digits.

" + } + }, + "OrganizationNotEmptyException": { + "base": "

The organization isn't empty. To delete an organization, you must first remove all accounts except the master account, delete all organizational units (OUs), and delete all policies.

", + "refs": { + } + }, + "OrganizationalUnit": { + "base": "

Contains details about an organizational unit (OU). An OU is a container of AWS accounts within a root of an organization. Policies that are attached to an OU apply to all accounts contained in that OU and in any child OUs.

", + "refs": { + "CreateOrganizationalUnitResponse$OrganizationalUnit": "

A structure that contains details about the newly created OU.

", + "DescribeOrganizationalUnitResponse$OrganizationalUnit": "

A structure that contains details about the specified OU.

", + "OrganizationalUnits$member": null, + "UpdateOrganizationalUnitResponse$OrganizationalUnit": "

A structure that contains the details about the specified OU, including its new name.

" + } + }, + "OrganizationalUnitArn": { + "base": null, + "refs": { + "OrganizationalUnit$Arn": "

The Amazon Resource Name (ARN) of this OU.

For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.

" + } + }, + "OrganizationalUnitId": { + "base": null, + "refs": { + "DeleteOrganizationalUnitRequest$OrganizationalUnitId": "

The unique identifier (ID) of the organizational unit that you want to delete. You can get the ID from the ListOrganizationalUnitsForParent operation.

The regex pattern for an organizational unit ID string requires \"ou-\" followed by from 4 to 32 lower-case letters or digits (the ID of the root that contains the OU) followed by a second \"-\" dash and from 8 to 32 additional lower-case letters or digits.

", + "DescribeOrganizationalUnitRequest$OrganizationalUnitId": "

The unique identifier (ID) of the organizational unit that you want details about. You can get the ID from the ListOrganizationalUnitsForParent operation.

The regex pattern for an organizational unit ID string requires \"ou-\" followed by from 4 to 32 lower-case letters or digits (the ID of the root that contains the OU) followed by a second \"-\" dash and from 8 to 32 additional lower-case letters or digits.

", + "OrganizationalUnit$Id": "

The unique identifier (ID) associated with this OU.

The regex pattern for an organizational unit ID string requires \"ou-\" followed by from 4 to 32 lower-case letters or digits (the ID of the root that contains the OU) followed by a second \"-\" dash and from 8 to 32 additional lower-case letters or digits.

", + "UpdateOrganizationalUnitRequest$OrganizationalUnitId": "

The unique identifier (ID) of the OU that you want to rename. You can get the ID from the ListOrganizationalUnitsForParent operation.

The regex pattern for an organizational unit ID string requires \"ou-\" followed by from 4 to 32 lower-case letters or digits (the ID of the root that contains the OU) followed by a second \"-\" dash and from 8 to 32 additional lower-case letters or digits.

" + } + }, + "OrganizationalUnitName": { + "base": null, + "refs": { + "CreateOrganizationalUnitRequest$Name": "

The friendly name to assign to the new OU.

", + "OrganizationalUnit$Name": "

The friendly name of this OU.

The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.

", + "UpdateOrganizationalUnitRequest$Name": "

The new name that you want to assign to the OU.

The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.

" + } + }, + "OrganizationalUnitNotEmptyException": { + "base": "

The specified organizational unit (OU) is not empty. Move all accounts to another root or to other OUs, remove all child OUs, and then try the operation again.

", + "refs": { + } + }, + "OrganizationalUnitNotFoundException": { + "base": "

We can't find an organizational unit (OU) with the OrganizationalUnitId that you specified.

", + "refs": { + } + }, + "OrganizationalUnits": { + "base": null, + "refs": { + "ListOrganizationalUnitsForParentResponse$OrganizationalUnits": "

A list of the OUs in the specified root or parent OU.

" + } + }, + "Parent": { + "base": "

Contains information about either a root or an organizational unit (OU) that can contain OUs or accounts in an organization.

", + "refs": { + "Parents$member": null + } + }, + "ParentId": { + "base": null, + "refs": { + "CreateOrganizationalUnitRequest$ParentId": "

The unique identifier (ID) of the parent root or OU in which you want to create the new OU.

The regex pattern for a parent ID string requires one of the following:

  • Root: a string that begins with \"r-\" followed by from 4 to 32 lower-case letters or digits.

  • Organizational unit (OU): a string that begins with \"ou-\" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second \"-\" dash and from 8 to 32 additional lower-case letters or digits.

", + "ListAccountsForParentRequest$ParentId": "

The unique identifier (ID) for the parent root or organization unit (OU) whose accounts you want to list.

", + "ListChildrenRequest$ParentId": "

The unique identifier (ID) for the parent root or OU whose children you want to list.

The regex pattern for a parent ID string requires one of the following:

  • Root: a string that begins with \"r-\" followed by from 4 to 32 lower-case letters or digits.

  • Organizational unit (OU): a string that begins with \"ou-\" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second \"-\" dash and from 8 to 32 additional lower-case letters or digits.

", + "ListOrganizationalUnitsForParentRequest$ParentId": "

The unique identifier (ID) of the root or OU whose child OUs you want to list.

The regex pattern for a parent ID string requires one of the following:

  • Root: a string that begins with \"r-\" followed by from 4 to 32 lower-case letters or digits.

  • Organizational unit (OU): a string that begins with \"ou-\" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second \"-\" dash and from 8 to 32 additional lower-case letters or digits.

", + "MoveAccountRequest$SourceParentId": "

The unique identifier (ID) of the root or organizational unit that you want to move the account from.

The regex pattern for a parent ID string requires one of the following:

  • Root: a string that begins with \"r-\" followed by from 4 to 32 lower-case letters or digits.

  • Organizational unit (OU): a string that begins with \"ou-\" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second \"-\" dash and from 8 to 32 additional lower-case letters or digits.

", + "MoveAccountRequest$DestinationParentId": "

The unique identifier (ID) of the root or organizational unit that you want to move the account to.

The regex pattern for a parent ID string requires one of the following:

  • Root: a string that begins with \"r-\" followed by from 4 to 32 lower-case letters or digits.

  • Organizational unit (OU): a string that begins with \"ou-\" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second \"-\" dash and from 8 to 32 additional lower-case letters or digits.

", + "Parent$Id": "

The unique identifier (ID) of the parent entity.

The regex pattern for a parent ID string requires one of the following:

  • Root: a string that begins with \"r-\" followed by from 4 to 32 lower-case letters or digits.

  • Organizational unit (OU): a string that begins with \"ou-\" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second \"-\" dash and from 8 to 32 additional lower-case letters or digits.

" + } + }, + "ParentNotFoundException": { + "base": "

We can't find a root or organizational unit (OU) with the ParentId that you specified.

", + "refs": { + } + }, + "ParentType": { + "base": null, + "refs": { + "Parent$Type": "

The type of the parent entity.

" + } + }, + "Parents": { + "base": null, + "refs": { + "ListParentsResponse$Parents": "

A list of parents for the specified child account or OU.

" + } + }, + "Policies": { + "base": null, + "refs": { + "ListPoliciesForTargetResponse$Policies": "

The list of policies that match the criteria in the request.

", + "ListPoliciesResponse$Policies": "

A list of policies that match the filter criteria in the request. The output list does not include the policy contents. To see the content for a policy, see DescribePolicy.

" + } + }, + "Policy": { + "base": "

Contains rules to be applied to the affected accounts. Policies can be attached directly to accounts, or to roots and OUs to affect all accounts in those hierarchies.

", + "refs": { + "CreatePolicyResponse$Policy": "

A structure that contains details about the newly created policy.

", + "DescribePolicyResponse$Policy": "

A structure that contains details about the specified policy.

", + "UpdatePolicyResponse$Policy": "

A structure that contains details about the updated policy, showing the requested changes.

" + } + }, + "PolicyArn": { + "base": null, + "refs": { + "PolicySummary$Arn": "

The Amazon Resource Name (ARN) of the policy.

For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.

" + } + }, + "PolicyContent": { + "base": null, + "refs": { + "CreatePolicyRequest$Content": "

The policy content to add to the new policy. For example, if you create a service control policy (SCP), this string must be JSON text that specifies the permissions that admins in attached accounts can delegate to their users, groups, and roles. For more information about the SCP syntax, see Service Control Policy Syntax in the AWS Organizations User Guide.

", + "Policy$Content": "

The text content of the policy.

", + "UpdatePolicyRequest$Content": "

If provided, the new content for the policy. The text must be correctly formatted JSON that complies with the syntax for the policy's type. For more information, see Service Control Policy Syntax in the AWS Organizations User Guide.

" + } + }, + "PolicyDescription": { + "base": null, + "refs": { + "CreatePolicyRequest$Description": "

An optional description to assign to the policy.

", + "PolicySummary$Description": "

The description of the policy.

", + "UpdatePolicyRequest$Description": "

If provided, the new description for the policy.

" + } + }, + "PolicyId": { + "base": null, + "refs": { + "AttachPolicyRequest$PolicyId": "

The unique identifier (ID) of the policy that you want to attach to the target. You can get the ID for the policy by calling the ListPolicies operation.

The regex pattern for a policy ID string requires \"p-\" followed by from 8 to 128 lower-case letters or digits.

", + "DeletePolicyRequest$PolicyId": "

The unique identifier (ID) of the policy that you want to delete. You can get the ID from the ListPolicies or ListPoliciesForTarget operations.

The regex pattern for a policy ID string requires \"p-\" followed by from 8 to 128 lower-case letters or digits.

", + "DescribePolicyRequest$PolicyId": "

The unique identifier (ID) of the policy that you want details about. You can get the ID from the ListPolicies or ListPoliciesForTarget operations.

The regex pattern for a policy ID string requires \"p-\" followed by from 8 to 128 lower-case letters or digits.

", + "DetachPolicyRequest$PolicyId": "

The unique identifier (ID) of the policy you want to detach. You can get the ID from the ListPolicies or ListPoliciesForTarget operations.

The regex pattern for a policy ID string requires \"p-\" followed by from 8 to 128 lower-case letters or digits.

", + "ListTargetsForPolicyRequest$PolicyId": "

The unique identifier (ID) of the policy for which you want to know its attachments.

The regex pattern for a policy ID string requires \"p-\" followed by from 8 to 128 lower-case letters or digits.

", + "PolicySummary$Id": "

The unique identifier (ID) of the policy.

The regex pattern for a policy ID string requires \"p-\" followed by from 8 to 128 lower-case letters or digits.

", + "UpdatePolicyRequest$PolicyId": "

The unique identifier (ID) of the policy that you want to update.

The regex pattern for a policy ID string requires \"p-\" followed by from 8 to 128 lower-case letters or digits.

" + } + }, + "PolicyInUseException": { + "base": "

The policy is attached to one or more entities. You must detach it from all roots, organizational units (OUs), and accounts before performing this operation.

", + "refs": { + } + }, + "PolicyName": { + "base": null, + "refs": { + "CreatePolicyRequest$Name": "

The friendly name to assign to the policy.

The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.

", + "PolicySummary$Name": "

The friendly name of the policy.

The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.

", + "UpdatePolicyRequest$Name": "

If provided, the new name for the policy.

The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.

" + } + }, + "PolicyNotAttachedException": { + "base": "

The policy isn't attached to the specified target in the specified root.

", + "refs": { + } + }, + "PolicyNotFoundException": { + "base": "

We can't find a policy with the PolicyId that you specified.

", + "refs": { + } + }, + "PolicySummary": { + "base": "

Contains information about a policy, but does not include the content. To see the content of a policy, see DescribePolicy.

", + "refs": { + "Policies$member": null, + "Policy$PolicySummary": "

A structure that contains additional details about the policy.

" + } + }, + "PolicyTargetId": { + "base": null, + "refs": { + "AttachPolicyRequest$TargetId": "

The unique identifier (ID) of the root, OU, or account that you want to attach the policy to. You can get the ID by calling the ListRoots, ListOrganizationalUnitsForParent, or ListAccounts operations.

The regex pattern for a target ID string requires one of the following:

  • Root: a string that begins with \"r-\" followed by from 4 to 32 lower-case letters or digits.

  • Account: a string that consists of exactly 12 digits.

  • Organizational unit (OU): a string that begins with \"ou-\" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second \"-\" dash and from 8 to 32 additional lower-case letters or digits.

", + "DetachPolicyRequest$TargetId": "

The unique identifier (ID) of the root, OU, or account from which you want to detach the policy. You can get the ID from the ListRoots, ListOrganizationalUnitsForParent, or ListAccounts operations.

The regex pattern for a target ID string requires one of the following:

  • Root: a string that begins with \"r-\" followed by from 4 to 32 lower-case letters or digits.

  • Account: a string that consists of exactly 12 digits.

  • Organizational unit (OU): a string that begins with \"ou-\" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second \"-\" dash and from 8 to 32 additional lower-case letters or digits.

", + "ListPoliciesForTargetRequest$TargetId": "

The unique identifier (ID) of the root, organizational unit, or account whose policies you want to list.

The regex pattern for a target ID string requires one of the following:

  • Root: a string that begins with \"r-\" followed by from 4 to 32 lower-case letters or digits.

  • Account: a string that consists of exactly 12 digits.

  • Organizational unit (OU): a string that begins with \"ou-\" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second \"-\" dash and from 8 to 32 additional lower-case letters or digits.

", + "PolicyTargetSummary$TargetId": "

The unique identifier (ID) of the policy target.

The regex pattern for a target ID string requires one of the following:

  • Root: a string that begins with \"r-\" followed by from 4 to 32 lower-case letters or digits.

  • Account: a string that consists of exactly 12 digits.

  • Organizational unit (OU): a string that begins with \"ou-\" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second \"-\" dash and from 8 to 32 additional lower-case letters or digits.

" + } + }, + "PolicyTargetSummary": { + "base": "

Contains information about a root, OU, or account that a policy is attached to.

", + "refs": { + "PolicyTargets$member": null + } + }, + "PolicyTargets": { + "base": null, + "refs": { + "ListTargetsForPolicyResponse$Targets": "

A list of structures, each of which contains details about one of the entities to which the specified policy is attached.

" + } + }, + "PolicyType": { + "base": null, + "refs": { + "CreatePolicyRequest$Type": "

The type of policy to create.

In the current release, the only type of policy that you can create is a service control policy (SCP).

", + "DisablePolicyTypeRequest$PolicyType": "

The policy type that you want to disable in this root.

", + "EnablePolicyTypeRequest$PolicyType": "

The policy type that you want to enable.

", + "ListPoliciesForTargetRequest$Filter": "

The type of policy that you want to include in the returned list.

", + "ListPoliciesRequest$Filter": "

Specifies the type of policy that you want to include in the response.

", + "PolicySummary$Type": "

The type of policy.

", + "PolicyTypeSummary$Type": "

The name of the policy type.

" + } + }, + "PolicyTypeAlreadyEnabledException": { + "base": "

The specified policy type is already enabled in the specified root.

", + "refs": { + } + }, + "PolicyTypeNotAvailableForOrganizationException": { + "base": "

You can't use the specified policy type with the feature set currently enabled for this organization. For example, you can enable service control policies (SCPs) only after you enable all features in the organization. For more information, see Enabling and Disabling a Policy Type on a Root in the AWS Organizations User Guide.

", + "refs": { + } + }, + "PolicyTypeNotEnabledException": { + "base": "

The specified policy type is not currently enabled in this root. You cannot attach policies of the specified type to entities in a root until you enable that type in the root. For more information, see Enabling All Features in Your Organization in the AWS Organizations User Guide.

", + "refs": { + } + }, + "PolicyTypeStatus": { + "base": null, + "refs": { + "PolicyTypeSummary$Status": "

The status of the policy type as it relates to the associated root. To attach a policy of the specified type to a root or to an OU or account in that root, it must be available in the organization and enabled for that root.

" + } + }, + "PolicyTypeSummary": { + "base": "

Contains information about a policy type and its status in the associated root.

", + "refs": { + "PolicyTypes$member": null + } + }, + "PolicyTypes": { + "base": null, + "refs": { + "Organization$AvailablePolicyTypes": "

A list of policy types that are enabled for this organization. For example, if your organization has all features enabled, then service control policies (SCPs) are included in the list.

", + "Root$PolicyTypes": "

The types of policies that are currently enabled for the root and therefore can be attached to the root or to its OUs or accounts.

" + } + }, + "RemoveAccountFromOrganizationRequest": { + "base": null, + "refs": { + } + }, + "RoleName": { + "base": null, + "refs": { + "CreateAccountRequest$RoleName": "

(Optional)

The name of an IAM role that Organizations automatically preconfigures in the new member account. This role trusts the master account, allowing users in the master account to assume the role, as permitted by the master account administrator. The role has administrator permissions in the new member account.

If you do not specify this parameter, the role name defaults to OrganizationAccountAccessRole.

For more information about how to use this role to access the member account, see Accessing and Administering the Member Accounts in Your Organization in the AWS Organizations User Guide, and steps 2 and 3 in Tutorial: Delegate Access Across AWS Accounts Using IAM Roles in the IAM User Guide.

The regex pattern that is used to validate this parameter is a string of characters that can consist of uppercase letters, lowercase letters, digits with no spaces, and any of the following characters: =,.@-

" + } + }, + "Root": { + "base": "

Contains details about a root. A root is a top-level parent node in the hierarchy of an organization that can contain organizational units (OUs) and accounts. Every root contains every AWS account in the organization. Each root enables the accounts to be organized in a different way and to have different policy types enabled for use in that root.

", + "refs": { + "DisablePolicyTypeResponse$Root": "

A structure that shows the root with the updated list of enabled policy types.

", + "EnablePolicyTypeResponse$Root": "

A structure that shows the root with the updated list of enabled policy types.

", + "Roots$member": null + } + }, + "RootArn": { + "base": null, + "refs": { + "Root$Arn": "

The Amazon Resource Name (ARN) of the root.

For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.

" + } + }, + "RootId": { + "base": null, + "refs": { + "DisablePolicyTypeRequest$RootId": "

The unique identifier (ID) of the root in which you want to disable a policy type. You can get the ID from the ListPolicies operation.

The regex pattern for a root ID string requires \"r-\" followed by from 4 to 32 lower-case letters or digits.

", + "EnablePolicyTypeRequest$RootId": "

The unique identifier (ID) of the root in which you want to enable a policy type. You can get the ID from the ListRoots operation.

The regex pattern for a root ID string requires \"r-\" followed by from 4 to 32 lower-case letters or digits.

", + "Root$Id": "

The unique identifier (ID) for the root.

The regex pattern for a root ID string requires \"r-\" followed by from 4 to 32 lower-case letters or digits.

" + } + }, + "RootName": { + "base": null, + "refs": { + "Root$Name": "

The friendly name of the root.

The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.

" + } + }, + "RootNotFoundException": { + "base": "

We can't find a root with the RootId that you specified.

", + "refs": { + } + }, + "Roots": { + "base": null, + "refs": { + "ListRootsResponse$Roots": "

A list of roots that are defined in an organization.

" + } + }, + "ServiceException": { + "base": "

AWS Organizations can't complete your request because of an internal service error. Try again later.

", + "refs": { + } + }, + "SourceParentNotFoundException": { + "base": "

We can't find a source root or OU with the ParentId that you specified.

", + "refs": { + } + }, + "TargetName": { + "base": null, + "refs": { + "PolicyTargetSummary$Name": "

The friendly name of the policy target.

The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.

" + } + }, + "TargetNotFoundException": { + "base": "

We can't find a root, OU, or account with the TargetId that you specified.

", + "refs": { + } + }, + "TargetType": { + "base": null, + "refs": { + "PolicyTargetSummary$Type": "

The type of the policy target.

" + } + }, + "Timestamp": { + "base": null, + "refs": { + "Account$JoinedTimestamp": "

The date the account became a part of the organization.

", + "CreateAccountStatus$RequestedTimestamp": "

The date and time that the request was made for the account creation.

", + "CreateAccountStatus$CompletedTimestamp": "

The date and time that the account was created and the request completed.

", + "Handshake$RequestedTimestamp": "

The date and time that the handshake request was made.

", + "Handshake$ExpirationTimestamp": "

The date and time that the handshake expires. If the recipient of the handshake request fails to respond before the specified date and time, the handshake becomes inactive and is no longer valid.

" + } + }, + "TooManyRequestsException": { + "base": "

You've sent too many requests in too short a period of time. The limit helps protect against denial-of-service attacks. Try again later.

", + "refs": { + } + }, + "UpdateOrganizationalUnitRequest": { + "base": null, + "refs": { + } + }, + "UpdateOrganizationalUnitResponse": { + "base": null, + "refs": { + } + }, + "UpdatePolicyRequest": { + "base": null, + "refs": { + } + }, + "UpdatePolicyResponse": { + "base": null, + "refs": { + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/organizations/2016-11-28/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/organizations/2016-11-28/examples-1.json new file mode 100644 index 000000000..ea09a4540 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/organizations/2016-11-28/examples-1.json @@ -0,0 +1,1398 @@ +{ + "version": "1.0", + "examples": { + "AcceptHandshake": [ + { + "input": { + "HandshakeId": "h-examplehandshakeid111" + }, + "output": { + "Handshake": { + "Action": "INVITE", + "Arn": "arn:aws:organizations::111111111111:handshake/o-exampleorgid/invite/h-examplehandshakeid111", + "ExpirationTimestamp": "20170228T1215Z", + "Id": "h-examplehandshakeid111", + "Parties": [ + { + "Id": "o-exampleorgid", + "Type": "ORGANIZATION" + }, + { + "Id": "juan@example.com", + "Type": "EMAIL" + } + ], + "RequestedTimestamp": "20170214T1215Z", + "Resources": [ + { + "Resources": [ + { + "Type": "MASTER_EMAIL", + "Value": "bill@amazon.com" + }, + { + "Type": "MASTER_NAME", + "Value": "Org Master Account" + }, + { + "Type": "ORGANIZATION_FEATURE_SET", + "Value": "ALL" + } + ], + "Type": "ORGANIZATION", + "Value": "o-exampleorgid" + }, + { + "Type": "ACCOUNT", + "Value": "222222222222" + } + ], + "State": "ACCEPTED" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Bill is the owner of an organization, and he invites Juan's account (222222222222) to join his organization. The following example shows Juan's account accepting the handshake and thus agreeing to the invitation.", + "id": "to-accept-a-handshake-from-another-account-1472500561150", + "title": "To accept a handshake from another account" + } + ], + "AttachPolicy": [ + { + "input": { + "PolicyId": "p-examplepolicyid111", + "TargetId": "ou-examplerootid111-exampleouid111" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to attach a service control policy (SCP) to an OU:\n", + "id": "to-attach-a-policy-to-an-ou", + "title": "To attach a policy to an OU" + }, + { + "input": { + "PolicyId": "p-examplepolicyid111", + "TargetId": "333333333333" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to attach a service control policy (SCP) to an account:\n", + "id": "to-attach-a-policy-to-an-account", + "title": "To attach a policy to an account" + } + ], + "CancelHandshake": [ + { + "input": { + "HandshakeId": "h-examplehandshakeid111" + }, + "output": { + "Handshake": { + "Action": "INVITE", + "Arn": "arn:aws:organizations::111111111111:handshake/o-exampleorgid/invite/h-examplehandshakeid111", + "ExpirationTimestamp": "20170228T1215Z", + "Id": "h-examplehandshakeid111", + "Parties": [ + { + "Id": "o-exampleorgid", + "Type": "ORGANIZATION" + }, + { + "Id": "susan@example.com", + "Type": "EMAIL" + } + ], + "RequestedTimestamp": "20170214T1215Z", + "Resources": [ + { + "Resources": [ + { + "Type": "MASTER_EMAIL", + "Value": "bill@example.com" + }, + { + "Type": "MASTER_NAME", + "Value": "Master Account" + }, + { + "Type": "ORGANIZATION_FEATURE_SET", + "Value": "CONSOLIDATED_BILLING" + } + ], + "Type": "ORGANIZATION", + "Value": "o-exampleorgid" + }, + { + "Type": "ACCOUNT", + "Value": "222222222222" + }, + { + "Type": "NOTES", + "Value": "This is a request for Susan's account to join Bob's organization." + } + ], + "State": "CANCELED" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Bill previously sent an invitation to Susan's account to join his organization. He changes his mind and decides to cancel the invitation before Susan accepts it. The following example shows Bill's cancellation:\n", + "id": "to-cancel-a-handshake-sent-to-a-member-account-1472501320506", + "title": "To cancel a handshake sent to a member account" + } + ], + "CreateAccount": [ + { + "input": { + "AccountName": "Production Account", + "Email": "susan@example.com" + }, + "output": { + "CreateAccountStatus": { + "Id": "car-examplecreateaccountrequestid111", + "State": "IN_PROGRESS" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The owner of an organization creates a member account in the organization. The following example shows that when the organization owner creates the member account, the account is preconfigured with the name \"Production Account\" and an owner email address of susan@example.com. An IAM role is automatically created using the default name because the roleName parameter is not used. AWS Organizations sends Susan a \"Welcome to AWS\" email:\n\n", + "id": "to-create-a-new-account-that-is-automatically-part-of-the-organization-1472501463507", + "title": "To create a new account that is automatically part of the organization" + } + ], + "CreateOrganization": [ + { + "input": { + }, + "output": { + "Organization": { + "Arn": "arn:aws:organizations::111111111111:organization/o-exampleorgid", + "AvailablePolicyTypes": [ + { + "Status": "ENABLED", + "Type": "SERVICE_CONTROL_POLICY" + } + ], + "FeatureSet": "ALL", + "Id": "o-exampleorgid", + "MasterAccountArn": "arn:aws:organizations::111111111111:account/o-exampleorgid/111111111111", + "MasterAccountEmail": "bill@example.com", + "MasterAccountId": "111111111111" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Bill wants to create an organization using credentials from account 111111111111. The following example shows that the account becomes the master account in the new organization. Because he does not specify a feature set, the new organization defaults to all features enabled and service control policies enabled on the root:\n\n", + "id": "to-create-a-new-organization-with-all-features enabled", + "title": "To create a new organization with all features enabled" + }, + { + "input": { + "FeatureSet": "CONSOLIDATED_BILLING" + }, + "output": { + "Organization": { + "Arn": "arn:aws:organizations::111111111111:organization/o-exampleorgid", + "AvailablePolicyTypes": [ + + ], + "FeatureSet": "CONSOLIDATED_BILLING", + "Id": "o-exampleorgid", + "MasterAccountArn": "arn:aws:organizations::111111111111:account/o-exampleorgid/111111111111", + "MasterAccountEmail": "bill@example.com", + "MasterAccountId": "111111111111" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "In the following example, Bill creates an organization using credentials from account 111111111111, and configures the organization to support only the consolidated billing feature set:\n\n", + "id": "to-create-a-new-organization-with-consolidated-billing-features-only", + "title": "To create a new organization with consolidated billing features only" + } + ], + "CreateOrganizationalUnit": [ + { + "input": { + "Name": "AccountingOU", + "ParentId": "r-examplerootid111" + }, + "output": { + "OrganizationalUnit": { + "Arn": "arn:aws:organizations::111111111111:ou/o-exampleorgid/ou-examplerootid111-exampleouid111", + "Id": "ou-examplerootid111-exampleouid111", + "Name": "AccountingOU" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to create an OU that is named AccountingOU. The new OU is directly under the root.:\n\n", + "id": "to-create-a-new-organizational-unit", + "title": "To create a new organization unit" + } + ], + "CreatePolicy": [ + { + "input": { + "Content": "{\\\"Version\\\":\\\"2012-10-17\\\",\\\"Statement\\\":{\\\"Effect\\\":\\\"Allow\\\",\\\"Action\\\":\\\"s3:*\\\"}}", + "Description": "Enables admins of attached accounts to delegate all S3 permissions", + "Name": "AllowAllS3Actions", + "Type": "SERVICE_CONTROL_POLICY" + }, + "output": { + "Policy": { + "Content": "{\"Version\":\"2012-10-17\",\"Statement\":{\"Effect\":\"Allow\",\"Action\":\"s3:*\"}}", + "PolicySummary": { + "Arn": "arn:aws:organizations::111111111111:policy/o-exampleorgid/service_control_policy/p-examplepolicyid111", + "Description": "Allows delegation of all S3 actions", + "Name": "AllowAllS3Actions", + "Type": "SERVICE_CONTROL_POLICY" + } + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to create a service control policy (SCP) that is named AllowAllS3Actions. The JSON string in the content parameter specifies the content in the policy. The parameter string is escaped with backslashes to ensure that the embedded double quotes in the JSON policy are treated as literals in the parameter, which itself is surrounded by double quotes:\n\n", + "id": "to-create-a-service-control-policy", + "title": "To create a service control policy" + } + ], + "DeclineHandshake": [ + { + "input": { + "HandshakeId": "h-examplehandshakeid111" + }, + "output": { + "Handshake": { + "Action": "INVITE", + "Arn": "arn:aws:organizations::111111111111:handshake/o-exampleorgid/invite/h-examplehandshakeid111", + "ExpirationTimestamp": "2016-12-15T19:27:58Z", + "Id": "h-examplehandshakeid111", + "Parties": [ + { + "Id": "222222222222", + "Type": "ACCOUNT" + }, + { + "Id": "o-exampleorgid", + "Type": "ORGANIZATION" + } + ], + "RequestedTimestamp": "2016-11-30T19:27:58Z", + "Resources": [ + { + "Resources": [ + { + "Type": "MASTER_EMAIL", + "Value": "bill@example.com" + }, + { + "Type": "MASTER_NAME", + "Value": "Master Account" + } + ], + "Type": "ORGANIZATION", + "Value": "o-exampleorgid" + }, + { + "Type": "ACCOUNT", + "Value": "222222222222" + }, + { + "Type": "NOTES", + "Value": "This is an invitation to Susan's account to join the Bill's organization." + } + ], + "State": "DECLINED" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows Susan declining an invitation to join Bill's organization. The DeclineHandshake operation returns a handshake object, showing that the state is now DECLINED:", + "id": "to-decline-a-handshake-sent-from-the-master-account-1472502666967", + "title": "To decline a handshake sent from the master account" + } + ], + "DeleteOrganizationalUnit": [ + { + "input": { + "OrganizationalUnitId": "ou-examplerootid111-exampleouid111" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to delete an OU. The example assumes that you previously removed all accounts and other OUs from the OU:\n\n", + "id": "to-delete-an-organizational-unit", + "title": "To delete an organization unit" + } + ], + "DeletePolicy": [ + { + "input": { + "PolicyId": "p-examplepolicyid111" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to delete a policy from an organization. The example assumes that you previously detached the policy from all entities:\n\n", + "id": "to-delete-a-policy", + "title": "To delete a policy" + } + ], + "DescribeAccount": [ + { + "input": { + "AccountId": "555555555555" + }, + "output": { + "Account": { + "Arn": "arn:aws:organizations::111111111111:account/o-exampleorgid/555555555555", + "Id": "555555555555", + "Name": "Beta Account" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows a user in the master account (111111111111) asking for details about account 555555555555:", + "id": "to-get-the-details-about-an-account-1472503166868", + "title": "To get the details about an account" + } + ], + "DescribeCreateAccountStatus": [ + { + "input": { + "CreateAccountRequestId": "car-exampleaccountcreationrequestid" + }, + "output": { + "CreateAccountStatus": { + "AccountId": "333333333333", + "Id": "car-exampleaccountcreationrequestid", + "State": "SUCCEEDED" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to request the status about a previous request to create an account in an organization. This operation can be called only by a principal from the organization's master account. In the example, the specified \"createAccountRequestId\" comes from the response of the original call to \"CreateAccount\":", + "id": "to-get-information-about-a-request-to-create-an-account-1472503727223", + "title": "To get information about a request to create an account" + } + ], + "DescribeHandshake": [ + { + "input": { + "HandshakeId": "h-examplehandshakeid111" + }, + "output": { + "Handshake": { + "Action": "INVITE", + "Arn": "arn:aws:organizations::111111111111:handshake/o-exampleorgid/invite/h-examplehandshakeid111", + "ExpirationTimestamp": "2016-11-30T17:24:58.046Z", + "Id": "h-examplehandshakeid111", + "Parties": [ + { + "Id": "o-exampleorgid", + "Type": "ORGANIZATION" + }, + { + "Id": "333333333333", + "Type": "ACCOUNT" + } + ], + "RequestedTimestamp": "2016-11-30T17:24:58.046Z", + "Resources": [ + { + "Resources": [ + { + "Type": "MASTER_EMAIL", + "Value": "bill@example.com" + }, + { + "Type": "MASTER_NAME", + "Value": "Master Account" + } + ], + "Type": "ORGANIZATION", + "Value": "o-exampleorgid" + }, + { + "Type": "ACCOUNT", + "Value": "333333333333" + } + ], + "State": "OPEN" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows you how to request details about a handshake. The handshake ID comes either from the original call to \"InviteAccountToOrganization\", or from a call to \"ListHandshakesForAccount\" or \"ListHandshakesForOrganization\":", + "id": "to-get-information-about-a-handshake-1472503400505", + "title": "To get information about a handshake" + } + ], + "DescribeOrganization": [ + { + "output": { + "Organization": { + "Arn": "arn:aws:organizations::111111111111:organization/o-exampleorgid", + "AvailablePolicyTypes": [ + { + "Status": "ENABLED", + "Type": "SERVICE_CONTROL_POLICY" + } + ], + "FeatureSet": "ALL", + "Id": "o-exampleorgid", + "MasterAccountArn": "arn:aws:organizations::111111111111:account/o-exampleorgid/111111111111", + "MasterAccountEmail": "bill@example.com" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to request information about the current user's organization:/n/n", + "id": "to-get-information-about-an-organization-1472503400505", + "title": "To get information about an organization" + } + ], + "DescribeOrganizationalUnit": [ + { + "input": { + "OrganizationalUnitId": "ou-examplerootid111-exampleouid111" + }, + "output": { + "OrganizationalUnit": { + "Arn": "arn:aws:organizations::111111111111:ou/o-exampleorgid/ou-examplerootid111-exampleouid111", + "Id": "ou-examplerootid111-exampleouid111", + "Name": "Accounting Group" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to request details about an OU:/n/n", + "id": "to-get-information-about-an-organizational-unit", + "title": "To get information about an organizational unit" + } + ], + "DescribePolicy": [ + { + "input": { + "PolicyId": "p-examplepolicyid111" + }, + "output": { + "Policy": { + "Content": "{\\n \\\"Version\\\": \\\"2012-10-17\\\",\\n \\\"Statement\\\": [\\n {\\n \\\"Effect\\\": \\\"Allow\\\",\\n \\\"Action\\\": \\\"*\\\",\\n \\\"Resource\\\": \\\"*\\\"\\n }\\n ]\\n}", + "PolicySummary": { + "Arn": "arn:aws:organizations::111111111111:policy/o-exampleorgid/service_control_policy/p-examplepolicyid111", + "AwsManaged": false, + "Description": "Enables admins to delegate S3 permissions", + "Id": "p-examplepolicyid111", + "Name": "AllowAllS3Actions", + "Type": "SERVICE_CONTROL_POLICY" + } + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to request information about a policy:/n/n", + "id": "to-get-information-about-a-policy", + "title": "To get information about a policy" + } + ], + "DetachPolicy": [ + { + "input": { + "PolicyId": "p-examplepolicyid111", + "TargetId": "ou-examplerootid111-exampleouid111" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to detach a policy from an OU:/n/n", + "id": "to-detach-a-policy-from-a-root-ou-or-account", + "title": "To detach a policy from a root, OU, or account" + } + ], + "DisablePolicyType": [ + { + "input": { + "PolicyType": "SERVICE_CONTROL_POLICY", + "RootId": "r-examplerootid111" + }, + "output": { + "Root": { + "Arn": "arn:aws:organizations::111111111111:root/o-exampleorgid/r-examplerootid111", + "Id": "r-examplerootid111", + "Name": "Root", + "PolicyTypes": [ + + ] + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to disable the service control policy (SCP) policy type in a root. The response shows that the PolicyTypes response element no longer includes SERVICE_CONTROL_POLICY:/n/n", + "id": "to-disable-a-policy-type-in-a-root", + "title": "To disable a policy type in a root" + } + ], + "EnableAllFeatures": [ + { + "input": { + }, + "output": { + "Handshake": { + "Action": "ENABLE_ALL_FEATURES", + "Arn": "arn:aws:organizations::111111111111:handshake/o-exampleorgid/enable_all_features/h-examplehandshakeid111", + "ExpirationTimestamp": "2017-02-28T09:35:40.05Z", + "Id": "h-examplehandshakeid111", + "Parties": [ + { + "Id": "o-exampleorgid", + "Type": "ORGANIZATION" + } + ], + "RequestedTimestamp": "2017-02-13T09:35:40.05Z", + "Resources": [ + { + "Type": "ORGANIZATION", + "Value": "o-exampleorgid" + } + ], + "State": "REQUESTED" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example shows the administrator asking all the invited accounts in the organization to approve enabling all features in the organization. AWS Organizations sends an email to the address that is registered with every invited member account asking the owner to approve the change by accepting the handshake that is sent. After all invited member accounts accept the handshake, the organization administrator can finalize the change to enable all features, and those with appropriate permissions can create policies and apply them to roots, OUs, and accounts:/n/n", + "id": "to-enable-all-features-in-an-organization", + "title": "To enable all features in an organization" + } + ], + "EnablePolicyType": [ + { + "input": { + "PolicyType": "SERVICE_CONTROL_POLICY", + "RootId": "r-examplerootid111" + }, + "output": { + "Root": { + "Arn": "arn:aws:organizations::111111111111:root/o-exampleorgid/r-examplerootid111", + "Id": "r-examplerootid111", + "Name": "Root", + "PolicyTypes": [ + { + "Status": "ENABLED", + "Type": "SERVICE_CONTROL_POLICY" + } + ] + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to enable the service control policy (SCP) policy type in a root. The output shows a root object with a PolicyTypes response element showing that SCPs are now enabled:/n/n", + "id": "to-enable-a-policy-type-in-a-root", + "title": "To enable a policy type in a root" + } + ], + "InviteAccountToOrganization": [ + { + "input": { + "Notes": "This is a request for Juan's account to join Bill's organization", + "Target": { + "Id": "juan@example.com", + "Type": "EMAIL" + } + }, + "output": { + "Handshake": { + "Action": "INVITE", + "Arn": "arn:aws:organizations::111111111111:handshake/o-exampleorgid/invite/h-examplehandshakeid111", + "ExpirationTimestamp": "2017-02-16T09:36:05.02Z", + "Id": "h-examplehandshakeid111", + "Parties": [ + { + "Id": "o-exampleorgid", + "Type": "ORGANIZATION" + }, + { + "Id": "juan@example.com", + "Type": "EMAIL" + } + ], + "RequestedTimestamp": "2017-02-01T09:36:05.02Z", + "Resources": [ + { + "Resources": [ + { + "Type": "MASTER_EMAIL", + "Value": "bill@amazon.com" + }, + { + "Type": "MASTER_NAME", + "Value": "Org Master Account" + }, + { + "Type": "ORGANIZATION_FEATURE_SET", + "Value": "FULL" + } + ], + "Type": "ORGANIZATION", + "Value": "o-exampleorgid" + }, + { + "Type": "EMAIL", + "Value": "juan@example.com" + } + ], + "State": "OPEN" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows the admin of the master account owned by bill@example.com inviting the account owned by juan@example.com to join an organization.", + "id": "to-invite-an-account-to-join-an-organization-1472508594110", + "title": "To invite an account to join an organization" + } + ], + "LeaveOrganization": [ + { + "comments": { + "input": { + }, + "output": { + } + }, + "description": "TThe following example shows how to remove your member account from an organization:", + "id": "to-leave-an-organization-as-a-member-account-1472508784736", + "title": "To leave an organization as a member account" + } + ], + "ListAccounts": [ + { + "input": { + }, + "output": { + "Accounts": [ + { + "Arn": "arn:aws:organizations::111111111111:account/o-exampleorgid/111111111111", + "Id": "111111111111", + "JoinedMethod": "INVITED", + "JoinedTimestamp": "20161215T193015Z", + "Name": "Master Account", + "Status": "ACTIVE" + }, + { + "Arn": "arn:aws:organizations::111111111111:account/o-exampleorgid/222222222222", + "Id": "222222222222", + "JoinedMethod": "INVITED", + "JoinedTimestamp": "20161215T210221Z", + "Name": "Developer Account", + "Status": "ACTIVE" + }, + { + "Arn": "arn:aws:organizations::111111111111:account/o-exampleorgid/333333333333", + "Id": "333333333333", + "JoinedMethod": "INVITED", + "JoinedTimestamp": "20161215T210347Z", + "Name": "Test Account", + "Status": "ACTIVE" + }, + { + "Arn": "arn:aws:organizations::111111111111:account/o-exampleorgid/444444444444", + "Id": "444444444444", + "JoinedMethod": "INVITED", + "JoinedTimestamp": "20161215T210332Z", + "Name": "Production Account", + "Status": "ACTIVE" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows you how to request a list of the accounts in an organization:", + "id": "to-retrieve-a-list-of-all-of-the-accounts-in-an-organization-1472509590974", + "title": "To retrieve a list of all of the accounts in an organization" + } + ], + "ListAccountsForParent": [ + { + "input": { + "ParentId": "ou-examplerootid111-exampleouid111" + }, + "output": { + "Accounts": [ + { + "Arn": "arn:aws:organizations::111111111111:account/o-exampleorgid/333333333333", + "Id": "333333333333", + "JoinedMethod": "INVITED", + "JoinedTimestamp": "2016-12-28T14:43:03.39Z" + }, + { + "Arn": "arn:aws:organizations::111111111111:account/o-exampleorgid/444444444444", + "Id": "444444444444", + "JoinedMethod": "INVITED", + "JoinedTimestamp": "2016-12-28T14:47:33.23Z" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to request a list of the accounts in an OU:/n/n", + "id": "to-retrieve-a-list-of-all-of-the-accounts-in-a-root-or-ou-1472509590974", + "title": "To retrieve a list of all of the accounts in a root or OU" + } + ], + "ListChildren": [ + { + "input": { + "ChildType": "ORGANIZATIONAL_UNIT", + "ParentId": "ou-examplerootid111-exampleouid111" + }, + "output": { + "Children": [ + { + "Id": "ou-examplerootid111-exampleouid111", + "Type": "ORGANIZATIONAL_UNIT" + }, + { + "Id": "ou-examplerootid111-exampleouid222", + "Type": "ORGANIZATIONAL_UNIT" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to request a list of the child OUs in a parent root or OU:/n/n", + "id": "to-retrieve-a-list-of-all-of-the-child-accounts-and-OUs-in-a-parent-container", + "title": "To retrieve a list of all of the child accounts and OUs in a parent root or OU" + } + ], + "ListCreateAccountStatus": [ + { + "input": { + "States": [ + "SUCCEEDED" + ] + }, + "output": { + "CreateAccountStatuses": [ + { + "AccountId": "444444444444", + "AccountName": "Developer Test Account", + "CompletedTimestamp": "2017-01-15T13:45:23.6Z", + "Id": "car-exampleaccountcreationrequestid1", + "RequestedTimestamp": "2017-01-15T13:45:23.01Z", + "State": "SUCCEEDED" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows a user requesting a list of only the completed account creation requests made for the current organization:", + "id": "to-get-a-list-of-completed-account-creation-requests-made-in-the-organization", + "title": "To get a list of completed account creation requests made in the organization" + }, + { + "input": { + "States": [ + "IN_PROGRESS" + ] + }, + "output": { + "CreateAccountStatuses": [ + { + "AccountName": "Production Account", + "Id": "car-exampleaccountcreationrequestid2", + "RequestedTimestamp": "2017-01-15T13:45:23.01Z", + "State": "IN_PROGRESS" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows a user requesting a list of only the in-progress account creation requests made for the current organization:", + "id": "to-get-a-list-of-all-account-creation-requests-made-in-the-organization-1472509174532", + "title": "To get a list of all account creation requests made in the organization" + } + ], + "ListHandshakesForAccount": [ + { + "output": { + "Handshakes": [ + { + "Action": "INVITE", + "Arn": "arn:aws:organizations::111111111111:handshake/o-exampleorgid/invite/h-examplehandshakeid111", + "ExpirationTimestamp": "2017-01-28T14:35:23.3Z", + "Id": "h-examplehandshakeid111", + "Parties": [ + { + "Id": "o-exampleorgid", + "Type": "ORGANIZATION" + }, + { + "Id": "juan@example.com", + "Type": "EMAIL" + } + ], + "RequestedTimestamp": "2017-01-13T14:35:23.3Z", + "Resources": [ + { + "Resources": [ + { + "Type": "MASTER_EMAIL", + "Value": "bill@amazon.com" + }, + { + "Type": "MASTER_NAME", + "Value": "Org Master Account" + }, + { + "Type": "ORGANIZATION_FEATURE_SET", + "Value": "FULL" + } + ], + "Type": "ORGANIZATION", + "Value": "o-exampleorgid" + }, + { + "Type": "EMAIL", + "Value": "juan@example.com" + } + ], + "State": "OPEN" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows you how to get a list of handshakes that are associated with the account of the credentials used to call the operation:", + "id": "to-retrieve-a-list-of-the-handshakes-sent-to-an-account-1472510214747", + "title": "To retrieve a list of the handshakes sent to an account" + } + ], + "ListHandshakesForOrganization": [ + { + "output": { + "Handshakes": [ + { + "Action": "INVITE", + "Arn": "arn:aws:organizations::111111111111:handshake/o-exampleorgid/invite/h-examplehandshakeid111", + "ExpirationTimestamp": "2017-01-28T14:35:23.3Z", + "Id": "h-examplehandshakeid111", + "Parties": [ + { + "Id": "o-exampleorgid", + "Type": "ORGANIZATION" + }, + { + "Id": "juan@example.com", + "Type": "EMAIL" + } + ], + "RequestedTimestamp": "2017-01-13T14:35:23.3Z", + "Resources": [ + { + "Resources": [ + { + "Type": "MASTER_EMAIL", + "Value": "bill@amazon.com" + }, + { + "Type": "MASTER_NAME", + "Value": "Org Master Account" + }, + { + "Type": "ORGANIZATION_FEATURE_SET", + "Value": "FULL" + } + ], + "Type": "ORGANIZATION", + "Value": "o-exampleorgid" + }, + { + "Type": "EMAIL", + "Value": "juan@example.com" + } + ], + "State": "OPEN" + }, + { + "Action": "INVITE", + "Arn": "arn:aws:organizations::111111111111:handshake/o-exampleorgid/invite/h-examplehandshakeid111", + "ExpirationTimestamp": "2017-01-28T14:35:23.3Z", + "Id": "h-examplehandshakeid222", + "Parties": [ + { + "Id": "o-exampleorgid", + "Type": "ORGANIZATION" + }, + { + "Id": "anika@example.com", + "Type": "EMAIL" + } + ], + "RequestedTimestamp": "2017-01-13T14:35:23.3Z", + "Resources": [ + { + "Resources": [ + { + "Type": "MASTER_EMAIL", + "Value": "bill@example.com" + }, + { + "Type": "MASTER_NAME", + "Value": "Master Account" + } + ], + "Type": "ORGANIZATION", + "Value": "o-exampleorgid" + }, + { + "Type": "EMAIL", + "Value": "anika@example.com" + }, + { + "Type": "NOTES", + "Value": "This is an invitation to Anika's account to join Bill's organization." + } + ], + "State": "ACCEPTED" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows you how to get a list of handshakes associated with the current organization:", + "id": "to-retrieve-a-list-of-the-handshakes-associated-with-an-organization-1472511206653", + "title": "To retrieve a list of the handshakes associated with an organization" + } + ], + "ListOrganizationalUnitsForParent": [ + { + "input": { + "ParentId": "r-examplerootid111" + }, + "output": { + "OrganizationalUnits": [ + { + "Arn": "arn:aws:organizations::111111111111:ou/o-exampleorgid/ou-examlerootid111-exampleouid111", + "Id": "ou-examplerootid111-exampleouid111", + "Name": "Development" + }, + { + "Arn": "arn:aws:organizations::111111111111:ou/o-exampleorgid/ou-examlerootid111-exampleouid222", + "Id": "ou-examplerootid111-exampleouid222", + "Name": "Production" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to get a list of OUs in a specified root:/n/n", + "id": "to-retrieve-a-list-of-all-of-the-OUs-in-a-parent-container", + "title": "To retrieve a list of all of the child OUs in a parent root or OU" + } + ], + "ListParents": [ + { + "input": { + "ChildId": "444444444444" + }, + "output": { + "Parents": [ + { + "Id": "ou-examplerootid111-exampleouid111", + "Type": "ORGANIZATIONAL_UNIT" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to list the root or OUs that contain account 444444444444:/n/n", + "id": "to-retrieve-a-list-of-all-of-the-parents-of-a-child-ou-or-account", + "title": "To retrieve a list of all of the parents of a child OU or account" + } + ], + "ListPolicies": [ + { + "input": { + "Filter": "SERVICE_CONTROL_POLICY" + }, + "output": { + "Policies": [ + { + "Arn": "arn:aws:organizations::111111111111:policy/o-exampleorgid/service_control_policy/p-examplepolicyid111", + "AwsManaged": false, + "Description": "Enables account admins to delegate permissions for any S3 actions to users and roles in their accounts.", + "Id": "p-examplepolicyid111", + "Name": "AllowAllS3Actions", + "Type": "SERVICE_CONTROL_POLICY" + }, + { + "Arn": "arn:aws:organizations::111111111111:policy/o-exampleorgid/service_control_policy/p-examplepolicyid222", + "AwsManaged": false, + "Description": "Enables account admins to delegate permissions for any EC2 actions to users and roles in their accounts.", + "Id": "p-examplepolicyid222", + "Name": "AllowAllEC2Actions", + "Type": "SERVICE_CONTROL_POLICY" + }, + { + "Arn": "arn:aws:organizations::aws:policy/service_control_policy/p-FullAWSAccess", + "AwsManaged": true, + "Description": "Allows access to every operation", + "Id": "p-FullAWSAccess", + "Name": "FullAWSAccess", + "Type": "SERVICE_CONTROL_POLICY" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to get a list of service control policies (SCPs):/n/n", + "id": "to-retrieve-a-list-of--policies-in-the-organization", + "title": "To retrieve a list policies in the organization" + } + ], + "ListPoliciesForTarget": [ + { + "input": { + "Filter": "SERVICE_CONTROL_POLICY", + "TargetId": "444444444444" + }, + "output": { + "Policies": [ + { + "Arn": "arn:aws:organizations::111111111111:policy/o-exampleorgid/service_control_policy/p-examplepolicyid222", + "AwsManaged": false, + "Description": "Enables account admins to delegate permissions for any EC2 actions to users and roles in their accounts.", + "Id": "p-examplepolicyid222", + "Name": "AllowAllEC2Actions", + "Type": "SERVICE_CONTROL_POLICY" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to get a list of all service control policies (SCPs) of the type specified by the Filter parameter, that are directly attached to an account. The returned list does not include policies that apply to the account because of inheritance from its location in an OU hierarchy:/n/n", + "id": "to-retrieve-a-list-of-policies-attached-to-a-root-ou-or-account", + "title": "To retrieve a list policies attached to a root, OU, or account" + } + ], + "ListRoots": [ + { + "input": { + }, + "output": { + "Roots": [ + { + "Arn": "arn:aws:organizations::111111111111:root/o-exampleorgid/r-examplerootid111", + "Id": "r-examplerootid111", + "Name": "Root", + "PolicyTypes": [ + { + "Status": "ENABLED", + "Type": "SERVICE_CONTROL_POLICY" + } + ] + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to get the list of the roots in the current organization:/n/n", + "id": "to-retrieve-a-list-of-roots-in-the-organization", + "title": "To retrieve a list of roots in the organization" + } + ], + "ListTargetsForPolicy": [ + { + "input": { + "PolicyId": "p-FullAWSAccess" + }, + "output": { + "Targets": [ + { + "Arn": "arn:aws:organizations::111111111111:root/o-exampleorgid/r-examplerootid111", + "Name": "Root", + "TargetId": "r-examplerootid111", + "Type": "ROOT" + }, + { + "Arn": "arn:aws:organizations::111111111111:account/o-exampleorgid/333333333333;", + "Name": "Developer Test Account", + "TargetId": "333333333333", + "Type": "ACCOUNT" + }, + { + "Arn": "arn:aws:organizations::111111111111:ou/o-exampleorgid/ou-examplerootid111-exampleouid111", + "Name": "Accounting", + "TargetId": "ou-examplerootid111-exampleouid111", + "Type": "ORGANIZATIONAL_UNIT" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to get the list of roots, OUs, and accounts to which the specified policy is attached:/n/n", + "id": "to-retrieve-a-list-of-roots-ous-and-accounts-to-which-a-policy-is-attached", + "title": "To retrieve a list of roots, OUs, and accounts to which a policy is attached" + } + ], + "MoveAccount": [ + { + "input": { + "AccountId": "333333333333", + "DestinationParentId": "ou-examplerootid111-exampleouid111", + "SourceParentId": "r-examplerootid111" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to move a member account from the root to an OU:/n/n", + "id": "to-move-an-ou-or-account-to-another-ou-or-the-root", + "title": "To move an OU or account to another OU or the root" + } + ], + "RemoveAccountFromOrganization": [ + { + "input": { + "AccountId": "333333333333" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows you how to remove an account from an organization:", + "id": "to-remove-an-account-from-an-organization-as-the-master-account", + "title": "To remove an account from an organization as the master account" + } + ], + "UpdateOrganizationalUnit": [ + { + "input": { + "Name": "AccountingOU", + "OrganizationalUnitId": "ou-examplerootid111-exampleouid111" + }, + "output": { + "OrganizationalUnit": { + "Arn": "arn:aws:organizations::111111111111:ou/o-exampleorgid/ou-examplerootid111-exampleouid111", + "Id": "ou-examplerootid111-exampleouid111", + "Name": "AccountingOU" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to rename an OU. The output confirms the new name:/n/n", + "id": "to-rename-an-organizational-unit", + "title": "To rename an organizational unit" + } + ], + "UpdatePolicy": [ + { + "input": { + "Description": "This description replaces the original.", + "Name": "Renamed-Policy", + "PolicyId": "p-examplepolicyid111" + }, + "output": { + "Policy": { + "Content": "{ \"Version\": \"2012-10-17\", \"Statement\": { \"Effect\": \"Allow\", \"Action\": \"ec2:*\", \"Resource\": \"*\" } }", + "PolicySummary": { + "Arn": "arn:aws:organizations::111111111111:policy/o-exampleorgid/service_control_policy/p-examplepolicyid111", + "AwsManaged": false, + "Description": "This description replaces the original.", + "Id": "p-examplepolicyid111", + "Name": "Renamed-Policy", + "Type": "SERVICE_CONTROL_POLICY" + } + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to rename a policy and give it a new description and new content. The output confirms the new name and description text:/n/n", + "id": "to-update-the-details-of-a-policy", + "title": "To update the details of a policy" + }, + { + "input": { + "Content": "{ \\\"Version\\\": \\\"2012-10-17\\\", \\\"Statement\\\": {\\\"Effect\\\": \\\"Allow\\\", \\\"Action\\\": \\\"s3:*\\\", \\\"Resource\\\": \\\"*\\\" } }", + "PolicyId": "p-examplepolicyid111" + }, + "output": { + "Policy": { + "Content": "{ \\\"Version\\\": \\\"2012-10-17\\\", \\\"Statement\\\": { \\\"Effect\\\": \\\"Allow\\\", \\\"Action\\\": \\\"s3:*\\\", \\\"Resource\\\": \\\"*\\\" } }", + "PolicySummary": { + "Arn": "arn:aws:organizations::111111111111:policy/o-exampleorgid/service_control_policy/p-examplepolicyid111", + "AwsManaged": false, + "Description": "This description replaces the original.", + "Id": "p-examplepolicyid111", + "Name": "Renamed-Policy", + "Type": "SERVICE_CONTROL_POLICY" + } + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to replace the JSON text of the SCP from the preceding example with a new JSON policy text string that allows S3 actions instead of EC2 actions:/n/n", + "id": "to-update-the-content-of-a-policy", + "title": "To update the content of a policy" + } + ] + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/organizations/2016-11-28/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/organizations/2016-11-28/paginators-1.json new file mode 100644 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/organizations/2016-11-28/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint/2016-12-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint/2016-12-01/api-2.json new file mode 100644 index 000000000..bcf0daf90 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint/2016-12-01/api-2.json @@ -0,0 +1,2753 @@ +{ + "metadata" : { + "apiVersion" : "2016-12-01", + "endpointPrefix" : "pinpoint", + "signingName" : "mobiletargeting", + "serviceFullName" : "Amazon Pinpoint", + "signatureVersion":"v4", + "protocol" : "rest-json", + "jsonVersion" : "1.1" + }, + "operations" : { + "CreateCampaign" : { + "name" : "CreateCampaign", + "http" : { + "method" : "POST", + "requestUri" : "/v1/apps/{application-id}/campaigns", + "responseCode" : 201 + }, + "input" : { + "shape" : "CreateCampaignRequest" + }, + "output" : { + "shape" : "CreateCampaignResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "CreateImportJob" : { + "name" : "CreateImportJob", + "http" : { + "method" : "POST", + "requestUri" : "/v1/apps/{application-id}/jobs/import", + "responseCode" : 201 + }, + "input" : { + "shape" : "CreateImportJobRequest" + }, + "output" : { + "shape" : "CreateImportJobResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "CreateSegment" : { + "name" : "CreateSegment", + "http" : { + "method" : "POST", + "requestUri" : "/v1/apps/{application-id}/segments", + "responseCode" : 201 + }, + "input" : { + "shape" : "CreateSegmentRequest" + }, + "output" : { + "shape" : "CreateSegmentResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "DeleteApnsChannel" : { + "name" : "DeleteApnsChannel", + "http" : { + "method" : "DELETE", + "requestUri" : "/v1/apps/{application-id}/channels/apns", + "responseCode" : 200 + }, + "input" : { + "shape" : "DeleteApnsChannelRequest" + }, + "output" : { + "shape" : "DeleteApnsChannelResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "DeleteCampaign" : { + "name" : "DeleteCampaign", + "http" : { + "method" : "DELETE", + "requestUri" : "/v1/apps/{application-id}/campaigns/{campaign-id}", + "responseCode" : 200 + }, + "input" : { + "shape" : "DeleteCampaignRequest" + }, + "output" : { + "shape" : "DeleteCampaignResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "DeleteGcmChannel" : { + "name" : "DeleteGcmChannel", + "http" : { + "method" : "DELETE", + "requestUri" : "/v1/apps/{application-id}/channels/gcm", + "responseCode" : 200 + }, + "input" : { + "shape" : "DeleteGcmChannelRequest" + }, + "output" : { + "shape" : "DeleteGcmChannelResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "DeleteSegment" : { + "name" : "DeleteSegment", + "http" : { + "method" : "DELETE", + "requestUri" : "/v1/apps/{application-id}/segments/{segment-id}", + "responseCode" : 200 + }, + "input" : { + "shape" : "DeleteSegmentRequest" + }, + "output" : { + "shape" : "DeleteSegmentResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "GetApnsChannel" : { + "name" : "GetApnsChannel", + "http" : { + "method" : "GET", + "requestUri" : "/v1/apps/{application-id}/channels/apns", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetApnsChannelRequest" + }, + "output" : { + "shape" : "GetApnsChannelResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "GetApplicationSettings" : { + "name" : "GetApplicationSettings", + "http" : { + "method" : "GET", + "requestUri" : "/v1/apps/{application-id}/settings", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetApplicationSettingsRequest" + }, + "output" : { + "shape" : "GetApplicationSettingsResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "GetCampaign" : { + "name" : "GetCampaign", + "http" : { + "method" : "GET", + "requestUri" : "/v1/apps/{application-id}/campaigns/{campaign-id}", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetCampaignRequest" + }, + "output" : { + "shape" : "GetCampaignResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "GetCampaignActivities" : { + "name" : "GetCampaignActivities", + "http" : { + "method" : "GET", + "requestUri" : "/v1/apps/{application-id}/campaigns/{campaign-id}/activities", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetCampaignActivitiesRequest" + }, + "output" : { + "shape" : "GetCampaignActivitiesResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "GetCampaignVersion" : { + "name" : "GetCampaignVersion", + "http" : { + "method" : "GET", + "requestUri" : "/v1/apps/{application-id}/campaigns/{campaign-id}/versions/{version}", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetCampaignVersionRequest" + }, + "output" : { + "shape" : "GetCampaignVersionResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "GetCampaignVersions" : { + "name" : "GetCampaignVersions", + "http" : { + "method" : "GET", + "requestUri" : "/v1/apps/{application-id}/campaigns/{campaign-id}/versions", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetCampaignVersionsRequest" + }, + "output" : { + "shape" : "GetCampaignVersionsResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "GetCampaigns" : { + "name" : "GetCampaigns", + "http" : { + "method" : "GET", + "requestUri" : "/v1/apps/{application-id}/campaigns", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetCampaignsRequest" + }, + "output" : { + "shape" : "GetCampaignsResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "GetEndpoint" : { + "name" : "GetEndpoint", + "http" : { + "method" : "GET", + "requestUri" : "/v1/apps/{application-id}/endpoints/{endpoint-id}", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetEndpointRequest" + }, + "output" : { + "shape" : "GetEndpointResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "GetGcmChannel" : { + "name" : "GetGcmChannel", + "http" : { + "method" : "GET", + "requestUri" : "/v1/apps/{application-id}/channels/gcm", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetGcmChannelRequest" + }, + "output" : { + "shape" : "GetGcmChannelResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "GetImportJob" : { + "name" : "GetImportJob", + "http" : { + "method" : "GET", + "requestUri" : "/v1/apps/{application-id}/jobs/import/{job-id}", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetImportJobRequest" + }, + "output" : { + "shape" : "GetImportJobResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "GetImportJobs" : { + "name" : "GetImportJobs", + "http" : { + "method" : "GET", + "requestUri" : "/v1/apps/{application-id}/jobs/import", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetImportJobsRequest" + }, + "output" : { + "shape" : "GetImportJobsResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "GetSegment" : { + "name" : "GetSegment", + "http" : { + "method" : "GET", + "requestUri" : "/v1/apps/{application-id}/segments/{segment-id}", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetSegmentRequest" + }, + "output" : { + "shape" : "GetSegmentResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "GetSegmentImportJobs" : { + "name" : "GetSegmentImportJobs", + "http" : { + "method" : "GET", + "requestUri" : "/v1/apps/{application-id}/segments/{segment-id}/jobs/import", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetSegmentImportJobsRequest" + }, + "output" : { + "shape" : "GetSegmentImportJobsResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "GetSegmentVersion" : { + "name" : "GetSegmentVersion", + "http" : { + "method" : "GET", + "requestUri" : "/v1/apps/{application-id}/segments/{segment-id}/versions/{version}", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetSegmentVersionRequest" + }, + "output" : { + "shape" : "GetSegmentVersionResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "GetSegmentVersions" : { + "name" : "GetSegmentVersions", + "http" : { + "method" : "GET", + "requestUri" : "/v1/apps/{application-id}/segments/{segment-id}/versions", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetSegmentVersionsRequest" + }, + "output" : { + "shape" : "GetSegmentVersionsResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "GetSegments" : { + "name" : "GetSegments", + "http" : { + "method" : "GET", + "requestUri" : "/v1/apps/{application-id}/segments", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetSegmentsRequest" + }, + "output" : { + "shape" : "GetSegmentsResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "UpdateApnsChannel" : { + "name" : "UpdateApnsChannel", + "http" : { + "method" : "PUT", + "requestUri" : "/v1/apps/{application-id}/channels/apns", + "responseCode" : 200 + }, + "input" : { + "shape" : "UpdateApnsChannelRequest" + }, + "output" : { + "shape" : "UpdateApnsChannelResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "UpdateApplicationSettings" : { + "name" : "UpdateApplicationSettings", + "http" : { + "method" : "PUT", + "requestUri" : "/v1/apps/{application-id}/settings", + "responseCode" : 200 + }, + "input" : { + "shape" : "UpdateApplicationSettingsRequest" + }, + "output" : { + "shape" : "UpdateApplicationSettingsResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "UpdateCampaign" : { + "name" : "UpdateCampaign", + "http" : { + "method" : "PUT", + "requestUri" : "/v1/apps/{application-id}/campaigns/{campaign-id}", + "responseCode" : 200 + }, + "input" : { + "shape" : "UpdateCampaignRequest" + }, + "output" : { + "shape" : "UpdateCampaignResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "UpdateEndpoint" : { + "name" : "UpdateEndpoint", + "http" : { + "method" : "PUT", + "requestUri" : "/v1/apps/{application-id}/endpoints/{endpoint-id}", + "responseCode" : 202 + }, + "input" : { + "shape" : "UpdateEndpointRequest" + }, + "output" : { + "shape" : "UpdateEndpointResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "UpdateEndpointsBatch" : { + "name" : "UpdateEndpointsBatch", + "http" : { + "method" : "PUT", + "requestUri" : "/v1/apps/{application-id}/endpoints", + "responseCode" : 202 + }, + "input" : { + "shape" : "UpdateEndpointsBatchRequest" + }, + "output" : { + "shape" : "UpdateEndpointsBatchResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "UpdateGcmChannel" : { + "name" : "UpdateGcmChannel", + "http" : { + "method" : "PUT", + "requestUri" : "/v1/apps/{application-id}/channels/gcm", + "responseCode" : 200 + }, + "input" : { + "shape" : "UpdateGcmChannelRequest" + }, + "output" : { + "shape" : "UpdateGcmChannelResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "UpdateSegment" : { + "name" : "UpdateSegment", + "http" : { + "method" : "PUT", + "requestUri" : "/v1/apps/{application-id}/segments/{segment-id}", + "responseCode" : 200 + }, + "input" : { + "shape" : "UpdateSegmentRequest" + }, + "output" : { + "shape" : "UpdateSegmentResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + } + }, + "shapes" : { + "APNSChannelRequest" : { + "type" : "structure", + "members" : { + "Certificate" : { + "shape" : "__string" + }, + "PrivateKey" : { + "shape" : "__string" + } + } + }, + "APNSChannelResponse" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string" + }, + "CreationDate" : { + "shape" : "__string" + }, + "Id" : { + "shape" : "__string" + }, + "IsArchived" : { + "shape" : "__boolean" + }, + "LastModifiedBy" : { + "shape" : "__string" + }, + "LastModifiedDate" : { + "shape" : "__string" + }, + "Platform" : { + "shape" : "__string" + }, + "Version" : { + "shape" : "__integer" + } + } + }, + "Action" : { + "type" : "string", + "enum" : [ "OPEN_APP", "DEEP_LINK", "URL" ] + }, + "ActivitiesResponse" : { + "type" : "structure", + "members" : { + "Item" : { + "shape" : "ListOfActivityResponse" + } + } + }, + "ActivityResponse" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string" + }, + "CampaignId" : { + "shape" : "__string" + }, + "End" : { + "shape" : "__string" + }, + "Id" : { + "shape" : "__string" + }, + "Result" : { + "shape" : "__string" + }, + "ScheduledStart" : { + "shape" : "__string" + }, + "Start" : { + "shape" : "__string" + }, + "State" : { + "shape" : "__string" + }, + "SuccessfulEndpointCount" : { + "shape" : "__integer" + }, + "TotalEndpointCount" : { + "shape" : "__integer" + }, + "TreatmentId" : { + "shape" : "__string" + } + } + }, + "ApplicationSettingsResource" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string" + }, + "LastModifiedDate" : { + "shape" : "__string" + }, + "Limits" : { + "shape" : "CampaignLimits" + }, + "QuietTime" : { + "shape" : "QuietTime" + } + } + }, + "AttributeDimension" : { + "type" : "structure", + "members" : { + "AttributeType" : { + "shape" : "AttributeType" + }, + "Values" : { + "shape" : "ListOf__string" + } + } + }, + "AttributeType" : { + "type" : "string", + "enum" : [ "INCLUSIVE", "EXCLUSIVE" ] + }, + "BadRequestException" : { + "type" : "structure", + "members" : { + "Message" : { + "shape" : "__string" + } + }, + "exception" : true, + "error" : { + "httpStatusCode" : 400 + } + }, + "CampaignLimits" : { + "type" : "structure", + "members" : { + "Daily" : { + "shape" : "__integer" + }, + "Total" : { + "shape" : "__integer" + } + } + }, + "CampaignResponse" : { + "type" : "structure", + "members" : { + "AdditionalTreatments" : { + "shape" : "ListOfTreatmentResource" + }, + "ApplicationId" : { + "shape" : "__string" + }, + "CreationDate" : { + "shape" : "__string" + }, + "DefaultState" : { + "shape" : "CampaignState" + }, + "Description" : { + "shape" : "__string" + }, + "HoldoutPercent" : { + "shape" : "__integer" + }, + "Id" : { + "shape" : "__string" + }, + "IsPaused" : { + "shape" : "__boolean" + }, + "LastModifiedDate" : { + "shape" : "__string" + }, + "Limits" : { + "shape" : "CampaignLimits" + }, + "MessageConfiguration" : { + "shape" : "MessageConfiguration" + }, + "Name" : { + "shape" : "__string" + }, + "Schedule" : { + "shape" : "Schedule" + }, + "SegmentId" : { + "shape" : "__string" + }, + "SegmentVersion" : { + "shape" : "__integer" + }, + "State" : { + "shape" : "CampaignState" + }, + "TreatmentDescription" : { + "shape" : "__string" + }, + "TreatmentName" : { + "shape" : "__string" + }, + "Version" : { + "shape" : "__integer" + } + } + }, + "CampaignState" : { + "type" : "structure", + "members" : { + "CampaignStatus" : { + "shape" : "CampaignStatus" + } + } + }, + "CampaignStatus" : { + "type" : "string", + "enum" : [ "SCHEDULED", "EXECUTING", "PENDING_NEXT_RUN", "COMPLETED", "PAUSED" ] + }, + "CampaignsResponse" : { + "type" : "structure", + "members" : { + "Item" : { + "shape" : "ListOfCampaignResponse" + }, + "NextToken" : { + "shape" : "__string" + } + } + }, + "ChannelType" : { + "type" : "string", + "enum" : [ "APNS", "GCM" ] + }, + "CreateCampaignRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "WriteCampaignRequest" : { + "shape" : "WriteCampaignRequest" + } + }, + "required" : [ "ApplicationId", "WriteCampaignRequest" ], + "payload" : "WriteCampaignRequest" + }, + "CreateCampaignResponse" : { + "type" : "structure", + "members" : { + "CampaignResponse" : { + "shape" : "CampaignResponse" + } + }, + "required" : [ "CampaignResponse" ], + "payload" : "CampaignResponse" + }, + "CreateImportJobRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "ImportJobRequest" : { + "shape" : "ImportJobRequest" + } + }, + "required" : [ "ApplicationId", "ImportJobRequest" ], + "payload" : "ImportJobRequest" + }, + "CreateImportJobResponse" : { + "type" : "structure", + "members" : { + "ImportJobResponse" : { + "shape" : "ImportJobResponse" + } + }, + "required" : [ "ImportJobResponse" ], + "payload" : "ImportJobResponse" + }, + "CreateSegmentRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "WriteSegmentRequest" : { + "shape" : "WriteSegmentRequest" + } + }, + "required" : [ "ApplicationId", "WriteSegmentRequest" ], + "payload" : "WriteSegmentRequest" + }, + "CreateSegmentResponse" : { + "type" : "structure", + "members" : { + "SegmentResponse" : { + "shape" : "SegmentResponse" + } + }, + "required" : [ "SegmentResponse" ], + "payload" : "SegmentResponse" + }, + "DeleteApnsChannelRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + } + }, + "required" : [ "ApplicationId" ] + }, + "DeleteApnsChannelResponse" : { + "type" : "structure", + "members" : { + "APNSChannelResponse" : { + "shape" : "APNSChannelResponse" + } + }, + "required" : [ "APNSChannelResponse" ], + "payload" : "APNSChannelResponse" + }, + "DeleteCampaignRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "CampaignId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "campaign-id" + } + }, + "required" : [ "CampaignId", "ApplicationId" ] + }, + "DeleteCampaignResponse" : { + "type" : "structure", + "members" : { + "CampaignResponse" : { + "shape" : "CampaignResponse" + } + }, + "required" : [ "CampaignResponse" ], + "payload" : "CampaignResponse" + }, + "DeleteGcmChannelRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + } + }, + "required" : [ "ApplicationId" ] + }, + "DeleteGcmChannelResponse" : { + "type" : "structure", + "members" : { + "GCMChannelResponse" : { + "shape" : "GCMChannelResponse" + } + }, + "required" : [ "GCMChannelResponse" ], + "payload" : "GCMChannelResponse" + }, + "DeleteSegmentRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "SegmentId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "segment-id" + } + }, + "required" : [ "SegmentId", "ApplicationId" ] + }, + "DeleteSegmentResponse" : { + "type" : "structure", + "members" : { + "SegmentResponse" : { + "shape" : "SegmentResponse" + } + }, + "required" : [ "SegmentResponse" ], + "payload" : "SegmentResponse" + }, + "DimensionType" : { + "type" : "string", + "enum" : [ "INCLUSIVE", "EXCLUSIVE" ] + }, + "Duration" : { + "type" : "string", + "enum" : [ "HR_24", "DAY_7", "DAY_14", "DAY_30" ] + }, + "EndpointBatchItem" : { + "type" : "structure", + "members" : { + "Address" : { + "shape" : "__string" + }, + "Attributes" : { + "shape" : "MapOfListOf__string" + }, + "ChannelType" : { + "shape" : "ChannelType" + }, + "Demographic" : { + "shape" : "EndpointDemographic" + }, + "EffectiveDate" : { + "shape" : "__string" + }, + "EndpointStatus" : { + "shape" : "__string" + }, + "Id" : { + "shape" : "__string" + }, + "Location" : { + "shape" : "EndpointLocation" + }, + "Metrics" : { + "shape" : "MapOf__double" + }, + "OptOut" : { + "shape" : "__string" + }, + "RequestId" : { + "shape" : "__string" + }, + "User" : { + "shape" : "EndpointUser" + } + } + }, + "EndpointBatchRequest" : { + "type" : "structure", + "members" : { + "Item" : { + "shape" : "ListOfEndpointBatchItem" + } + } + }, + "EndpointDemographic" : { + "type" : "structure", + "members" : { + "AppVersion" : { + "shape" : "__string" + }, + "Locale" : { + "shape" : "__string" + }, + "Make" : { + "shape" : "__string" + }, + "Model" : { + "shape" : "__string" + }, + "ModelVersion" : { + "shape" : "__string" + }, + "Platform" : { + "shape" : "__string" + }, + "PlatformVersion" : { + "shape" : "__string" + }, + "Timezone" : { + "shape" : "__string" + } + } + }, + "EndpointLocation" : { + "type" : "structure", + "members" : { + "City" : { + "shape" : "__string" + }, + "Country" : { + "shape" : "__string" + }, + "Latitude" : { + "shape" : "__double" + }, + "Longitude" : { + "shape" : "__double" + }, + "PostalCode" : { + "shape" : "__string" + }, + "Region" : { + "shape" : "__string" + } + } + }, + "EndpointRequest" : { + "type" : "structure", + "members" : { + "Address" : { + "shape" : "__string" + }, + "Attributes" : { + "shape" : "MapOfListOf__string" + }, + "ChannelType" : { + "shape" : "ChannelType" + }, + "Demographic" : { + "shape" : "EndpointDemographic" + }, + "EffectiveDate" : { + "shape" : "__string" + }, + "EndpointStatus" : { + "shape" : "__string" + }, + "Location" : { + "shape" : "EndpointLocation" + }, + "Metrics" : { + "shape" : "MapOf__double" + }, + "OptOut" : { + "shape" : "__string" + }, + "RequestId" : { + "shape" : "__string" + }, + "User" : { + "shape" : "EndpointUser" + } + } + }, + "EndpointResponse" : { + "type" : "structure", + "members" : { + "Address" : { + "shape" : "__string" + }, + "ApplicationId" : { + "shape" : "__string" + }, + "Attributes" : { + "shape" : "MapOfListOf__string" + }, + "ChannelType" : { + "shape" : "ChannelType" + }, + "CohortId" : { + "shape" : "__string" + }, + "CreationDate" : { + "shape" : "__string" + }, + "Demographic" : { + "shape" : "EndpointDemographic" + }, + "EffectiveDate" : { + "shape" : "__string" + }, + "EndpointStatus" : { + "shape" : "__string" + }, + "Id" : { + "shape" : "__string" + }, + "Location" : { + "shape" : "EndpointLocation" + }, + "Metrics" : { + "shape" : "MapOf__double" + }, + "OptOut" : { + "shape" : "__string" + }, + "RequestId" : { + "shape" : "__string" + }, + "ShardId" : { + "shape" : "__string" + }, + "User" : { + "shape" : "EndpointUser" + } + } + }, + "EndpointUser" : { + "type" : "structure", + "members" : { + "UserAttributes" : { + "shape" : "MapOfListOf__string" + }, + "UserId" : { + "shape" : "__string" + } + } + }, + "ForbiddenException" : { + "type" : "structure", + "members" : { + "Message" : { + "shape" : "__string" + } + }, + "exception" : true, + "error" : { + "httpStatusCode" : 403 + } + }, + "Format" : { + "type" : "string", + "enum" : [ "CSV", "JSON" ] + }, + "Frequency" : { + "type" : "string", + "enum" : [ "ONCE", "HOURLY", "DAILY", "WEEKLY", "MONTHLY" ] + }, + "GCMChannelRequest" : { + "type" : "structure", + "members" : { + "ApiKey" : { + "shape" : "__string" + } + } + }, + "GCMChannelResponse" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string" + }, + "CreationDate" : { + "shape" : "__string" + }, + "Credential" : { + "shape" : "__string" + }, + "Id" : { + "shape" : "__string" + }, + "IsArchived" : { + "shape" : "__boolean" + }, + "LastModifiedBy" : { + "shape" : "__string" + }, + "LastModifiedDate" : { + "shape" : "__string" + }, + "Platform" : { + "shape" : "__string" + }, + "Version" : { + "shape" : "__integer" + } + } + }, + "GetApnsChannelRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + } + }, + "required" : [ "ApplicationId" ] + }, + "GetApnsChannelResponse" : { + "type" : "structure", + "members" : { + "APNSChannelResponse" : { + "shape" : "APNSChannelResponse" + } + }, + "required" : [ "APNSChannelResponse" ], + "payload" : "APNSChannelResponse" + }, + "GetApplicationSettingsRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + } + }, + "required" : [ "ApplicationId" ] + }, + "GetApplicationSettingsResponse" : { + "type" : "structure", + "members" : { + "ApplicationSettingsResource" : { + "shape" : "ApplicationSettingsResource" + } + }, + "required" : [ "ApplicationSettingsResource" ], + "payload" : "ApplicationSettingsResource" + }, + "GetCampaignActivitiesRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "CampaignId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "campaign-id" + }, + "PageSize" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "page-size" + }, + "Token" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "token" + } + }, + "required" : [ "ApplicationId", "CampaignId" ] + }, + "GetCampaignActivitiesResponse" : { + "type" : "structure", + "members" : { + "ActivitiesResponse" : { + "shape" : "ActivitiesResponse" + } + }, + "required" : [ "ActivitiesResponse" ], + "payload" : "ActivitiesResponse" + }, + "GetCampaignRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "CampaignId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "campaign-id" + } + }, + "required" : [ "CampaignId", "ApplicationId" ] + }, + "GetCampaignResponse" : { + "type" : "structure", + "members" : { + "CampaignResponse" : { + "shape" : "CampaignResponse" + } + }, + "required" : [ "CampaignResponse" ], + "payload" : "CampaignResponse" + }, + "GetCampaignVersionRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "CampaignId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "campaign-id" + }, + "Version" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "version" + } + }, + "required" : [ "Version", "ApplicationId", "CampaignId" ] + }, + "GetCampaignVersionResponse" : { + "type" : "structure", + "members" : { + "CampaignResponse" : { + "shape" : "CampaignResponse" + } + }, + "required" : [ "CampaignResponse" ], + "payload" : "CampaignResponse" + }, + "GetCampaignVersionsRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "CampaignId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "campaign-id" + }, + "PageSize" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "page-size" + }, + "Token" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "token" + } + }, + "required" : [ "ApplicationId", "CampaignId" ] + }, + "GetCampaignVersionsResponse" : { + "type" : "structure", + "members" : { + "CampaignsResponse" : { + "shape" : "CampaignsResponse" + } + }, + "required" : [ "CampaignsResponse" ], + "payload" : "CampaignsResponse" + }, + "GetCampaignsRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "PageSize" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "page-size" + }, + "Token" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "token" + } + }, + "required" : [ "ApplicationId" ] + }, + "GetCampaignsResponse" : { + "type" : "structure", + "members" : { + "CampaignsResponse" : { + "shape" : "CampaignsResponse" + } + }, + "required" : [ "CampaignsResponse" ], + "payload" : "CampaignsResponse" + }, + "GetEndpointRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "EndpointId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "endpoint-id" + } + }, + "required" : [ "ApplicationId", "EndpointId" ] + }, + "GetEndpointResponse" : { + "type" : "structure", + "members" : { + "EndpointResponse" : { + "shape" : "EndpointResponse" + } + }, + "required" : [ "EndpointResponse" ], + "payload" : "EndpointResponse" + }, + "GetGcmChannelRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + } + }, + "required" : [ "ApplicationId" ] + }, + "GetGcmChannelResponse" : { + "type" : "structure", + "members" : { + "GCMChannelResponse" : { + "shape" : "GCMChannelResponse" + } + }, + "required" : [ "GCMChannelResponse" ], + "payload" : "GCMChannelResponse" + }, + "GetImportJobRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "JobId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "job-id" + } + }, + "required" : [ "ApplicationId", "JobId" ] + }, + "GetImportJobResponse" : { + "type" : "structure", + "members" : { + "ImportJobResponse" : { + "shape" : "ImportJobResponse" + } + }, + "required" : [ "ImportJobResponse" ], + "payload" : "ImportJobResponse" + }, + "GetImportJobsRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "PageSize" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "page-size" + }, + "Token" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "token" + } + }, + "required" : [ "ApplicationId" ] + }, + "GetImportJobsResponse" : { + "type" : "structure", + "members" : { + "ImportJobsResponse" : { + "shape" : "ImportJobsResponse" + } + }, + "required" : [ "ImportJobsResponse" ], + "payload" : "ImportJobsResponse" + }, + "GetSegmentImportJobsRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "PageSize" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "page-size" + }, + "SegmentId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "segment-id" + }, + "Token" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "token" + } + }, + "required" : [ "SegmentId", "ApplicationId" ] + }, + "GetSegmentImportJobsResponse" : { + "type" : "structure", + "members" : { + "ImportJobsResponse" : { + "shape" : "ImportJobsResponse" + } + }, + "required" : [ "ImportJobsResponse" ], + "payload" : "ImportJobsResponse" + }, + "GetSegmentRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "SegmentId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "segment-id" + } + }, + "required" : [ "SegmentId", "ApplicationId" ] + }, + "GetSegmentResponse" : { + "type" : "structure", + "members" : { + "SegmentResponse" : { + "shape" : "SegmentResponse" + } + }, + "required" : [ "SegmentResponse" ], + "payload" : "SegmentResponse" + }, + "GetSegmentVersionRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "SegmentId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "segment-id" + }, + "Version" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "version" + } + }, + "required" : [ "SegmentId", "Version", "ApplicationId" ] + }, + "GetSegmentVersionResponse" : { + "type" : "structure", + "members" : { + "SegmentResponse" : { + "shape" : "SegmentResponse" + } + }, + "required" : [ "SegmentResponse" ], + "payload" : "SegmentResponse" + }, + "GetSegmentVersionsRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "PageSize" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "page-size" + }, + "SegmentId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "segment-id" + }, + "Token" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "token" + } + }, + "required" : [ "SegmentId", "ApplicationId" ] + }, + "GetSegmentVersionsResponse" : { + "type" : "structure", + "members" : { + "SegmentsResponse" : { + "shape" : "SegmentsResponse" + } + }, + "required" : [ "SegmentsResponse" ], + "payload" : "SegmentsResponse" + }, + "GetSegmentsRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "PageSize" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "page-size" + }, + "Token" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "token" + } + }, + "required" : [ "ApplicationId" ] + }, + "GetSegmentsResponse" : { + "type" : "structure", + "members" : { + "SegmentsResponse" : { + "shape" : "SegmentsResponse" + } + }, + "required" : [ "SegmentsResponse" ], + "payload" : "SegmentsResponse" + }, + "ImportJobRequest" : { + "type" : "structure", + "members" : { + "DefineSegment" : { + "shape" : "__boolean" + }, + "ExternalId" : { + "shape" : "__string" + }, + "Format" : { + "shape" : "Format" + }, + "RegisterEndpoints" : { + "shape" : "__boolean" + }, + "RoleArn" : { + "shape" : "__string" + }, + "S3Url" : { + "shape" : "__string" + }, + "SegmentId" : { + "shape" : "__string" + }, + "SegmentName" : { + "shape" : "__string" + } + } + }, + "ImportJobResource" : { + "type" : "structure", + "members" : { + "DefineSegment" : { + "shape" : "__boolean" + }, + "ExternalId" : { + "shape" : "__string" + }, + "Format" : { + "shape" : "Format" + }, + "RegisterEndpoints" : { + "shape" : "__boolean" + }, + "RoleArn" : { + "shape" : "__string" + }, + "S3Url" : { + "shape" : "__string" + }, + "SegmentId" : { + "shape" : "__string" + }, + "SegmentName" : { + "shape" : "__string" + } + } + }, + "ImportJobResponse" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string" + }, + "CompletedPieces" : { + "shape" : "__integer" + }, + "CompletionDate" : { + "shape" : "__string" + }, + "CreationDate" : { + "shape" : "__string" + }, + "Definition" : { + "shape" : "ImportJobResource" + }, + "FailedPieces" : { + "shape" : "__integer" + }, + "Failures" : { + "shape" : "ListOf__string" + }, + "Id" : { + "shape" : "__string" + }, + "JobStatus" : { + "shape" : "JobStatus" + }, + "TotalFailures" : { + "shape" : "__integer" + }, + "TotalPieces" : { + "shape" : "__integer" + }, + "TotalProcessed" : { + "shape" : "__integer" + }, + "Type" : { + "shape" : "__string" + } + } + }, + "ImportJobsResponse" : { + "type" : "structure", + "members" : { + "Item" : { + "shape" : "ListOfImportJobResponse" + }, + "NextToken" : { + "shape" : "__string" + } + } + }, + "InternalServerErrorException" : { + "type" : "structure", + "members" : { + "Message" : { + "shape" : "__string" + } + }, + "exception" : true, + "error" : { + "httpStatusCode" : 500 + } + }, + "JobStatus" : { + "type" : "string", + "enum" : [ "CREATED", "INITIALIZING", "PROCESSING", "COMPLETING", "COMPLETED", "FAILING", "FAILED" ] + }, + "ListOfActivityResponse" : { + "type" : "list", + "member" : { + "shape" : "ActivityResponse" + } + }, + "ListOfCampaignResponse" : { + "type" : "list", + "member" : { + "shape" : "CampaignResponse" + } + }, + "ListOfEndpointBatchItem" : { + "type" : "list", + "member" : { + "shape" : "EndpointBatchItem" + } + }, + "ListOfImportJobResponse" : { + "type" : "list", + "member" : { + "shape" : "ImportJobResponse" + } + }, + "ListOfSegmentResponse" : { + "type" : "list", + "member" : { + "shape" : "SegmentResponse" + } + }, + "ListOfTreatmentResource" : { + "type" : "list", + "member" : { + "shape" : "TreatmentResource" + } + }, + "ListOfWriteTreatmentResource" : { + "type" : "list", + "member" : { + "shape" : "WriteTreatmentResource" + } + }, + "ListOf__string" : { + "type" : "list", + "member" : { + "shape" : "__string" + } + }, + "MapOfAttributeDimension" : { + "type" : "map", + "key" : { + "shape" : "__string" + }, + "value" : { + "shape" : "AttributeDimension" + } + }, + "MapOfListOf__string" : { + "type" : "map", + "key" : { + "shape" : "__string" + }, + "value" : { + "shape" : "ListOf__string" + } + }, + "MapOf__double" : { + "type" : "map", + "key" : { + "shape" : "__string" + }, + "value" : { + "shape" : "__double" + } + }, + "Message" : { + "type" : "structure", + "members" : { + "Action" : { + "shape" : "Action" + }, + "Body" : { + "shape" : "__string" + }, + "ImageIconUrl" : { + "shape" : "__string" + }, + "ImageUrl" : { + "shape" : "__string" + }, + "JsonBody" : { + "shape" : "__string" + }, + "MediaUrl" : { + "shape" : "__string" + }, + "SilentPush" : { + "shape" : "__boolean" + }, + "Title" : { + "shape" : "__string" + }, + "Url" : { + "shape" : "__string" + } + } + }, + "MessageBody" : { + "type" : "structure", + "members" : { + "Message" : { + "shape" : "__string" + }, + "RequestID" : { + "shape" : "__string" + } + } + }, + "MessageConfiguration" : { + "type" : "structure", + "members" : { + "APNSMessage" : { + "shape" : "Message" + }, + "DefaultMessage" : { + "shape" : "Message" + }, + "GCMMessage" : { + "shape" : "Message" + } + } + }, + "MethodNotAllowedException" : { + "type" : "structure", + "members" : { + "Message" : { + "shape" : "__string" + } + }, + "exception" : true, + "error" : { + "httpStatusCode" : 405 + } + }, + "NotFoundException" : { + "type" : "structure", + "members" : { + "Message" : { + "shape" : "__string" + } + }, + "exception" : true, + "error" : { + "httpStatusCode" : 404 + } + }, + "QuietTime" : { + "type" : "structure", + "members" : { + "End" : { + "shape" : "__string" + }, + "Start" : { + "shape" : "__string" + } + } + }, + "RecencyDimension" : { + "type" : "structure", + "members" : { + "Duration" : { + "shape" : "Duration" + }, + "RecencyType" : { + "shape" : "RecencyType" + } + } + }, + "RecencyType" : { + "type" : "string", + "enum" : [ "ACTIVE", "INACTIVE" ] + }, + "Schedule" : { + "type" : "structure", + "members" : { + "EndTime" : { + "shape" : "__string" + }, + "Frequency" : { + "shape" : "Frequency" + }, + "IsLocalTime" : { + "shape" : "__boolean" + }, + "QuietTime" : { + "shape" : "QuietTime" + }, + "StartTime" : { + "shape" : "__string" + }, + "Timezone" : { + "shape" : "__string" + } + } + }, + "SegmentBehaviors" : { + "type" : "structure", + "members" : { + "Recency" : { + "shape" : "RecencyDimension" + } + } + }, + "SegmentDemographics" : { + "type" : "structure", + "members" : { + "AppVersion" : { + "shape" : "SetDimension" + }, + "DeviceType" : { + "shape" : "SetDimension" + }, + "Make" : { + "shape" : "SetDimension" + }, + "Model" : { + "shape" : "SetDimension" + }, + "Platform" : { + "shape" : "SetDimension" + } + } + }, + "SegmentDimensions" : { + "type" : "structure", + "members" : { + "Attributes" : { + "shape" : "MapOfAttributeDimension" + }, + "Behavior" : { + "shape" : "SegmentBehaviors" + }, + "Demographic" : { + "shape" : "SegmentDemographics" + }, + "Location" : { + "shape" : "SegmentLocation" + } + } + }, + "SegmentImportResource" : { + "type" : "structure", + "members" : { + "ExternalId" : { + "shape" : "__string" + }, + "Format" : { + "shape" : "Format" + }, + "RoleArn" : { + "shape" : "__string" + }, + "S3Url" : { + "shape" : "__string" + }, + "Size" : { + "shape" : "__integer" + } + } + }, + "SegmentLocation" : { + "type" : "structure", + "members" : { + "Country" : { + "shape" : "SetDimension" + } + } + }, + "SegmentResponse" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string" + }, + "CreationDate" : { + "shape" : "__string" + }, + "Dimensions" : { + "shape" : "SegmentDimensions" + }, + "Id" : { + "shape" : "__string" + }, + "ImportDefinition" : { + "shape" : "SegmentImportResource" + }, + "LastModifiedDate" : { + "shape" : "__string" + }, + "Name" : { + "shape" : "__string" + }, + "SegmentType" : { + "shape" : "SegmentType" + }, + "Version" : { + "shape" : "__integer" + } + } + }, + "SegmentType" : { + "type" : "string", + "enum" : [ "DIMENSIONAL", "IMPORT" ] + }, + "SegmentsResponse" : { + "type" : "structure", + "members" : { + "Item" : { + "shape" : "ListOfSegmentResponse" + }, + "NextToken" : { + "shape" : "__string" + } + } + }, + "SetDimension" : { + "type" : "structure", + "members" : { + "DimensionType" : { + "shape" : "DimensionType" + }, + "Values" : { + "shape" : "ListOf__string" + } + } + }, + "TooManyRequestsException" : { + "type" : "structure", + "members" : { + "Message" : { + "shape" : "__string" + } + }, + "exception" : true, + "error" : { + "httpStatusCode" : 429 + } + }, + "TreatmentResource" : { + "type" : "structure", + "members" : { + "Id" : { + "shape" : "__string" + }, + "MessageConfiguration" : { + "shape" : "MessageConfiguration" + }, + "Schedule" : { + "shape" : "Schedule" + }, + "SizePercent" : { + "shape" : "__integer" + }, + "State" : { + "shape" : "CampaignState" + }, + "TreatmentDescription" : { + "shape" : "__string" + }, + "TreatmentName" : { + "shape" : "__string" + } + } + }, + "UpdateApnsChannelRequest" : { + "type" : "structure", + "members" : { + "APNSChannelRequest" : { + "shape" : "APNSChannelRequest" + }, + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + } + }, + "required" : [ "ApplicationId", "APNSChannelRequest" ], + "payload" : "APNSChannelRequest" + }, + "UpdateApnsChannelResponse" : { + "type" : "structure", + "members" : { + "APNSChannelResponse" : { + "shape" : "APNSChannelResponse" + } + }, + "required" : [ "APNSChannelResponse" ], + "payload" : "APNSChannelResponse" + }, + "UpdateApplicationSettingsRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "WriteApplicationSettingsRequest" : { + "shape" : "WriteApplicationSettingsRequest" + } + }, + "required" : [ "ApplicationId", "WriteApplicationSettingsRequest" ], + "payload" : "WriteApplicationSettingsRequest" + }, + "UpdateApplicationSettingsResponse" : { + "type" : "structure", + "members" : { + "ApplicationSettingsResource" : { + "shape" : "ApplicationSettingsResource" + } + }, + "required" : [ "ApplicationSettingsResource" ], + "payload" : "ApplicationSettingsResource" + }, + "UpdateCampaignRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "CampaignId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "campaign-id" + }, + "WriteCampaignRequest" : { + "shape" : "WriteCampaignRequest" + } + }, + "required" : [ "CampaignId", "ApplicationId", "WriteCampaignRequest" ], + "payload" : "WriteCampaignRequest" + }, + "UpdateCampaignResponse" : { + "type" : "structure", + "members" : { + "CampaignResponse" : { + "shape" : "CampaignResponse" + } + }, + "required" : [ "CampaignResponse" ], + "payload" : "CampaignResponse" + }, + "UpdateEndpointRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "EndpointId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "endpoint-id" + }, + "EndpointRequest" : { + "shape" : "EndpointRequest" + } + }, + "required" : [ "ApplicationId", "EndpointId", "EndpointRequest" ], + "payload" : "EndpointRequest" + }, + "UpdateEndpointResponse" : { + "type" : "structure", + "members" : { + "MessageBody" : { + "shape" : "MessageBody" + } + }, + "required" : [ "MessageBody" ], + "payload" : "MessageBody" + }, + "UpdateEndpointsBatchRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "EndpointBatchRequest" : { + "shape" : "EndpointBatchRequest" + } + }, + "required" : [ "ApplicationId", "EndpointBatchRequest" ], + "payload" : "EndpointBatchRequest" + }, + "UpdateEndpointsBatchResponse" : { + "type" : "structure", + "members" : { + "MessageBody" : { + "shape" : "MessageBody" + } + }, + "required" : [ "MessageBody" ], + "payload" : "MessageBody" + }, + "UpdateGcmChannelRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "GCMChannelRequest" : { + "shape" : "GCMChannelRequest" + } + }, + "required" : [ "ApplicationId", "GCMChannelRequest" ], + "payload" : "GCMChannelRequest" + }, + "UpdateGcmChannelResponse" : { + "type" : "structure", + "members" : { + "GCMChannelResponse" : { + "shape" : "GCMChannelResponse" + } + }, + "required" : [ "GCMChannelResponse" ], + "payload" : "GCMChannelResponse" + }, + "UpdateSegmentRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "SegmentId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "segment-id" + }, + "WriteSegmentRequest" : { + "shape" : "WriteSegmentRequest" + } + }, + "required" : [ "SegmentId", "ApplicationId", "WriteSegmentRequest" ], + "payload" : "WriteSegmentRequest" + }, + "UpdateSegmentResponse" : { + "type" : "structure", + "members" : { + "SegmentResponse" : { + "shape" : "SegmentResponse" + } + }, + "required" : [ "SegmentResponse" ], + "payload" : "SegmentResponse" + }, + "WriteApplicationSettingsRequest" : { + "type" : "structure", + "members" : { + "Limits" : { + "shape" : "CampaignLimits" + }, + "QuietTime" : { + "shape" : "QuietTime" + } + } + }, + "WriteCampaignRequest" : { + "type" : "structure", + "members" : { + "AdditionalTreatments" : { + "shape" : "ListOfWriteTreatmentResource" + }, + "Description" : { + "shape" : "__string" + }, + "HoldoutPercent" : { + "shape" : "__integer" + }, + "IsPaused" : { + "shape" : "__boolean" + }, + "Limits" : { + "shape" : "CampaignLimits" + }, + "MessageConfiguration" : { + "shape" : "MessageConfiguration" + }, + "Name" : { + "shape" : "__string" + }, + "Schedule" : { + "shape" : "Schedule" + }, + "SegmentId" : { + "shape" : "__string" + }, + "SegmentVersion" : { + "shape" : "__integer" + }, + "TreatmentDescription" : { + "shape" : "__string" + }, + "TreatmentName" : { + "shape" : "__string" + } + } + }, + "WriteSegmentRequest" : { + "type" : "structure", + "members" : { + "Dimensions" : { + "shape" : "SegmentDimensions" + }, + "Name" : { + "shape" : "__string" + } + } + }, + "WriteTreatmentResource" : { + "type" : "structure", + "members" : { + "MessageConfiguration" : { + "shape" : "MessageConfiguration" + }, + "Schedule" : { + "shape" : "Schedule" + }, + "SizePercent" : { + "shape" : "__integer" + }, + "TreatmentDescription" : { + "shape" : "__string" + }, + "TreatmentName" : { + "shape" : "__string" + } + } + }, + "__boolean" : { + "type" : "boolean" + }, + "__double" : { + "type" : "double" + }, + "__integer" : { + "type" : "integer" + }, + "__string" : { + "type" : "string" + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint/2016-12-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint/2016-12-01/docs-2.json new file mode 100644 index 000000000..a03536b25 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint/2016-12-01/docs-2.json @@ -0,0 +1,568 @@ +{ + "version" : "2.0", + "service" : null, + "operations" : { + "CreateCampaign" : "Creates or updates a campaign.", + "CreateImportJob" : "Creates or updates an import job.", + "CreateSegment" : "Used to create or update a segment.", + "DeleteApnsChannel" : "Deletes the APNs channel for an app.", + "DeleteCampaign" : "Deletes a campaign.", + "DeleteGcmChannel" : "Deletes the GCM channel for an app.", + "DeleteSegment" : "Deletes a segment.", + "GetApnsChannel" : "Returns information about the APNs channel for an app.", + "GetApplicationSettings" : "Used to request the settings for an app.", + "GetCampaign" : "Returns information about a campaign.", + "GetCampaignActivities" : "Returns information about the activity performed by a campaign.", + "GetCampaignVersion" : "Returns information about your campaign versions.", + "GetCampaignVersions" : "Returns information about your campaign versions.", + "GetCampaigns" : "Returns information about your campaigns.", + "GetEndpoint" : "Returns information about an endpoint.", + "GetGcmChannel" : "Returns information about the GCM channel for an app.", + "GetImportJob" : "Returns information about an import job.", + "GetImportJobs" : "Returns information about your import jobs.", + "GetSegment" : "Returns information about a segment.", + "GetSegmentImportJobs" : "Returns a list of import jobs for a specific segment.", + "GetSegmentVersion" : "Returns information about a segment version.", + "GetSegmentVersions" : "Returns information about your segment versions.", + "GetSegments" : "Used to get information about your segments.", + "UpdateApnsChannel" : "Use to update the APNs channel for an app.", + "UpdateApplicationSettings" : "Used to update the settings for an app.", + "UpdateCampaign" : "Use to update a campaign.", + "UpdateEndpoint" : "Use to update an endpoint.", + "UpdateEndpointsBatch" : "Use to update your endpoints.", + "UpdateGcmChannel" : "Use to update the GCM channel for an app.", + "UpdateSegment" : "Use to update a segment." + }, + "shapes" : { + "APNSChannelRequest" : { + "base" : null, + "refs" : { } + }, + "APNSChannelResponse" : { + "base" : null, + "refs" : { } + }, + "Action" : { + "base" : null, + "refs" : { } + }, + "ActivitiesResponse" : { + "base" : null, + "refs" : { } + }, + "ActivityResponse" : { + "base" : null, + "refs" : { + "ActivitiesResponse$Item" : "List of campaign activities" + } + }, + "ApplicationSettingsResource" : { + "base" : null, + "refs" : { } + }, + "AttributeDimension" : { + "base" : null, + "refs" : { + "SegmentDimensions$Attributes" : "Custom segment attributes." + } + }, + "AttributeType" : { + "base" : null, + "refs" : { } + }, + "BadRequestException" : { + "base" : "400 response", + "refs" : { } + }, + "CampaignLimits" : { + "base" : null, + "refs" : { + "ApplicationSettingsResource$Limits" : "The default campaign limits for the app. These limits apply to each campaign for the app, unless the campaign overrides the default with limits of its own.", + "CampaignResponse$Limits" : "The campaign limits settings.", + "WriteApplicationSettingsRequest$Limits" : "The default campaign limits for the app. These limits apply to each campaign for the app, unless the campaign overrides the default with limits of its own.", + "WriteCampaignRequest$Limits" : "The campaign limits settings." + } + }, + "CampaignResponse" : { + "base" : null, + "refs" : { + "CampaignsResponse$Item" : "A list of campaigns." + } + }, + "CampaignState" : { + "base" : null, + "refs" : { + "CampaignResponse$DefaultState" : "The status of the campaign's default treatment. Only present for A/B test campaigns.", + "CampaignResponse$State" : "The campaign status.\n\nAn A/B test campaign will have a status of COMPLETED only when all treatments have a status of COMPLETED.", + "TreatmentResource$State" : "The treatment status." + } + }, + "CampaignStatus" : { + "base" : null, + "refs" : { } + }, + "CampaignsResponse" : { + "base" : null, + "refs" : { } + }, + "ChannelType" : { + "base" : null, + "refs" : { } + }, + "DimensionType" : { + "base" : null, + "refs" : { } + }, + "Duration" : { + "base" : null, + "refs" : { } + }, + "EndpointBatchItem" : { + "base" : null, + "refs" : { + "EndpointBatchRequest$Item" : "List of items to update. Maximum 100 items" + } + }, + "EndpointBatchRequest" : { + "base" : null, + "refs" : { } + }, + "EndpointDemographic" : { + "base" : null, + "refs" : { + "EndpointBatchItem$Demographic" : "The endpoint demographic attributes.", + "EndpointRequest$Demographic" : "The endpoint demographic attributes.", + "EndpointResponse$Demographic" : "The endpoint demographic attributes." + } + }, + "EndpointLocation" : { + "base" : null, + "refs" : { + "EndpointBatchItem$Location" : "The endpoint location attributes.", + "EndpointRequest$Location" : "The endpoint location attributes.", + "EndpointResponse$Location" : "The endpoint location attributes." + } + }, + "EndpointRequest" : { + "base" : null, + "refs" : { } + }, + "EndpointResponse" : { + "base" : null, + "refs" : { } + }, + "EndpointUser" : { + "base" : null, + "refs" : { + "EndpointBatchItem$User" : "Custom user-specific attributes that your app reports to Amazon Pinpoint.", + "EndpointRequest$User" : "Custom user-specific attributes that your app reports to Amazon Pinpoint.", + "EndpointResponse$User" : "Custom user-specific attributes that your app reports to Amazon Pinpoint." + } + }, + "ForbiddenException" : { + "base" : "403 response", + "refs" : { } + }, + "Format" : { + "base" : null, + "refs" : { } + }, + "Frequency" : { + "base" : null, + "refs" : { } + }, + "GCMChannelRequest" : { + "base" : null, + "refs" : { } + }, + "GCMChannelResponse" : { + "base" : null, + "refs" : { } + }, + "ImportJobRequest" : { + "base" : null, + "refs" : { } + }, + "ImportJobResource" : { + "base" : null, + "refs" : { + "ImportJobResponse$Definition" : "The import job settings." + } + }, + "ImportJobResponse" : { + "base" : null, + "refs" : { + "ImportJobsResponse$Item" : "A list of import jobs for the application." + } + }, + "ImportJobsResponse" : { + "base" : null, + "refs" : { } + }, + "InternalServerErrorException" : { + "base" : "500 response", + "refs" : { } + }, + "JobStatus" : { + "base" : null, + "refs" : { } + }, + "ListOfActivityResponse" : { + "base" : null, + "refs" : { } + }, + "ListOfCampaignResponse" : { + "base" : null, + "refs" : { } + }, + "ListOfEndpointBatchItem" : { + "base" : null, + "refs" : { } + }, + "ListOfImportJobResponse" : { + "base" : null, + "refs" : { } + }, + "ListOfSegmentResponse" : { + "base" : null, + "refs" : { } + }, + "ListOfTreatmentResource" : { + "base" : null, + "refs" : { } + }, + "ListOfWriteTreatmentResource" : { + "base" : null, + "refs" : { } + }, + "ListOf__string" : { + "base" : null, + "refs" : { } + }, + "MapOfAttributeDimension" : { + "base" : null, + "refs" : { } + }, + "MapOfListOf__string" : { + "base" : null, + "refs" : { } + }, + "MapOf__double" : { + "base" : null, + "refs" : { } + }, + "Message" : { + "base" : null, + "refs" : { + "MessageConfiguration$APNSMessage" : "The message that the campaign delivers to APNS channels. Overrides the default message.", + "MessageConfiguration$DefaultMessage" : "The default message for all channels.", + "MessageConfiguration$GCMMessage" : "The message that the campaign delivers to GCM channels. Overrides the default message." + } + }, + "MessageBody" : { + "base" : null, + "refs" : { } + }, + "MessageConfiguration" : { + "base" : null, + "refs" : { + "CampaignResponse$MessageConfiguration" : "The message configuration settings.", + "TreatmentResource$MessageConfiguration" : "The message configuration settings.", + "WriteCampaignRequest$MessageConfiguration" : "The message configuration settings.", + "WriteTreatmentResource$MessageConfiguration" : "The message configuration settings." + } + }, + "MethodNotAllowedException" : { + "base" : "405 response", + "refs" : { } + }, + "NotFoundException" : { + "base" : "404 response", + "refs" : { } + }, + "QuietTime" : { + "base" : null, + "refs" : { + "ApplicationSettingsResource$QuietTime" : "The default quiet time for the app. Each campaign for this app sends no messages during this time unless the campaign overrides the default with a quiet time of its own.", + "Schedule$QuietTime" : "The time during which the campaign sends no messages.", + "WriteApplicationSettingsRequest$QuietTime" : "The default quiet time for the app. Each campaign for this app sends no messages during this time unless the campaign overrides the default with a quiet time of its own." + } + }, + "RecencyDimension" : { + "base" : null, + "refs" : { + "SegmentBehaviors$Recency" : "The recency of use." + } + }, + "RecencyType" : { + "base" : null, + "refs" : { } + }, + "Schedule" : { + "base" : null, + "refs" : { + "CampaignResponse$Schedule" : "The campaign schedule.", + "TreatmentResource$Schedule" : "The campaign schedule.", + "WriteCampaignRequest$Schedule" : "The campaign schedule.", + "WriteTreatmentResource$Schedule" : "The campaign schedule." + } + }, + "SegmentBehaviors" : { + "base" : null, + "refs" : { + "SegmentDimensions$Behavior" : "The segment behaviors attributes." + } + }, + "SegmentDemographics" : { + "base" : null, + "refs" : { + "SegmentDimensions$Demographic" : "The segment demographics attributes." + } + }, + "SegmentDimensions" : { + "base" : null, + "refs" : { + "SegmentResponse$Dimensions" : "The segment dimensions attributes.", + "WriteSegmentRequest$Dimensions" : "The segment dimensions attributes." + } + }, + "SegmentImportResource" : { + "base" : null, + "refs" : { + "SegmentResponse$ImportDefinition" : "The import job settings." + } + }, + "SegmentLocation" : { + "base" : null, + "refs" : { + "SegmentDimensions$Location" : "The segment location attributes.\n" + } + }, + "SegmentResponse" : { + "base" : null, + "refs" : { + "SegmentsResponse$Item" : "The list of segments." + } + }, + "SegmentType" : { + "base" : null, + "refs" : { } + }, + "SegmentsResponse" : { + "base" : null, + "refs" : { } + }, + "SetDimension" : { + "base" : null, + "refs" : { + "SegmentDemographics$AppVersion" : "The app version criteria for the segment.", + "SegmentDemographics$DeviceType" : "The device type criteria for the segment.", + "SegmentDemographics$Make" : "The device make criteria for the segment.", + "SegmentDemographics$Model" : "The device model criteria for the segment.", + "SegmentDemographics$Platform" : "The device platform criteria for the segment.", + "SegmentLocation$Country" : "The country filter according to ISO 3166-1 Alpha-2 codes." + } + }, + "TooManyRequestsException" : { + "base" : "429 response", + "refs" : { } + }, + "TreatmentResource" : { + "base" : null, + "refs" : { + "CampaignResponse$AdditionalTreatments" : "Treatments that are defined in addition to the default treatment." + } + }, + "WriteApplicationSettingsRequest" : { + "base" : null, + "refs" : { } + }, + "WriteCampaignRequest" : { + "base" : null, + "refs" : { } + }, + "WriteSegmentRequest" : { + "base" : null, + "refs" : { } + }, + "WriteTreatmentResource" : { + "base" : null, + "refs" : { + "WriteCampaignRequest$AdditionalTreatments" : "Treatments that are defined in addition to the default treatment." + } + }, + "__boolean" : { + "base" : null, + "refs" : { + "APNSChannelResponse$IsArchived" : "Is this channel archived", + "CampaignResponse$IsPaused" : "Indicates whether the campaign is paused. A paused campaign does not send messages unless you resume it by setting IsPaused to false.", + "GCMChannelResponse$IsArchived" : "Is this channel archived", + "ImportJobRequest$DefineSegment" : "Sets whether the endpoints create a segment when they are imported.", + "ImportJobRequest$RegisterEndpoints" : "Sets whether the endpoints are registered with Amazon Pinpoint when they are imported.", + "ImportJobResource$DefineSegment" : "Sets whether the endpoints create a segment when they are imported.", + "ImportJobResource$RegisterEndpoints" : "Sets whether the endpoints are registered with Amazon Pinpoint when they are imported.", + "Message$SilentPush" : "Indicates if the message should display on the users device.\n\nSilent pushes can be used for Remote Configuration and Phone Home use cases. ", + "Schedule$IsLocalTime" : "Indicates whether the campaign schedule takes effect according to each user's local time.", + "WriteCampaignRequest$IsPaused" : "Indicates whether the campaign is paused. A paused campaign does not send messages unless you resume it by setting IsPaused to false." + } + }, + "__double" : { + "base" : null, + "refs" : { + "EndpointLocation$Latitude" : "The latitude of the endpoint location. Rounded to one decimal (Roughly corresponding to a mile).", + "EndpointLocation$Longitude" : "The longitude of the endpoint location. Rounded to one decimal (Roughly corresponding to a mile)." + } + }, + "__integer" : { + "base" : null, + "refs" : { + "APNSChannelResponse$Version" : "Version of channel", + "ActivityResponse$SuccessfulEndpointCount" : "The total number of endpoints to which the campaign successfully delivered messages.", + "ActivityResponse$TotalEndpointCount" : "The total number of endpoints to which the campaign attempts to deliver messages.", + "CampaignLimits$Daily" : "The maximum number of messages that the campaign can send daily.", + "CampaignLimits$Total" : "The maximum total number of messages that the campaign can send.", + "CampaignResponse$HoldoutPercent" : "The allocated percentage of end users who will not receive messages from this campaign.", + "CampaignResponse$SegmentVersion" : "The version of the segment to which the campaign sends messages.", + "CampaignResponse$Version" : "The campaign version number.", + "GCMChannelResponse$Version" : "Version of channel", + "ImportJobResponse$CompletedPieces" : "The number of pieces that have successfully imported as of the time of the request.", + "ImportJobResponse$FailedPieces" : "The number of pieces that have failed to import as of the time of the request.", + "ImportJobResponse$TotalFailures" : "The number of endpoints that failed to import; for example, because of syntax errors.", + "ImportJobResponse$TotalPieces" : "The total number of pieces that must be imported to finish the job. Each piece is an approximately equal portion of the endpoints to import.", + "ImportJobResponse$TotalProcessed" : "The number of endpoints that were processed by the import job.", + "SegmentImportResource$Size" : "The number of endpoints that were successfully imported to create this segment.", + "SegmentResponse$Version" : "The segment version number.", + "TreatmentResource$SizePercent" : "The allocated percentage of users for this treatment.", + "WriteCampaignRequest$HoldoutPercent" : "The allocated percentage of end users who will not receive messages from this campaign.", + "WriteCampaignRequest$SegmentVersion" : "The version of the segment to which the campaign sends messages.", + "WriteTreatmentResource$SizePercent" : "The allocated percentage of users for this treatment." + } + }, + "__string" : { + "base" : null, + "refs" : { + "APNSChannelRequest$Certificate" : "The distribution certificate from Apple.", + "APNSChannelRequest$PrivateKey" : "The certificate private key.", + "APNSChannelResponse$ApplicationId" : null, + "APNSChannelResponse$CreationDate" : "When was this segment created", + "APNSChannelResponse$Id" : null, + "APNSChannelResponse$LastModifiedBy" : "Who last updated this entry", + "APNSChannelResponse$LastModifiedDate" : "Last date this was updated", + "APNSChannelResponse$Platform" : "The platform type. Will be APNS.", + "ActivityResponse$ApplicationId" : "The ID of the application to which the campaign applies.", + "ActivityResponse$CampaignId" : "The ID of the campaign to which the activity applies.", + "ActivityResponse$End" : "The actual time the activity was marked CANCELLED or COMPLETED. Provided in ISO 8601 format.", + "ActivityResponse$Id" : "The unique activity ID.", + "ActivityResponse$Result" : "Indicates whether the activity succeeded.\n\nValid values: SUCCESS, FAIL", + "ActivityResponse$ScheduledStart" : "The scheduled start time for the activity in ISO 8601 format.", + "ActivityResponse$Start" : "The actual start time of the activity in ISO 8601 format.", + "ActivityResponse$State" : "The state of the activity.\n\nValid values: PENDING, INITIALIZING, RUNNING, PAUSED, CANCELLED, COMPLETED", + "ActivityResponse$TreatmentId" : "The ID of a variation of the campaign used for A/B testing.", + "ApplicationSettingsResource$ApplicationId" : "The unique ID for the application.", + "ApplicationSettingsResource$LastModifiedDate" : "The date that the settings were last updated in ISO 8601 format.", + "CampaignResponse$ApplicationId" : "The ID of the application to which the campaign applies.", + "CampaignResponse$CreationDate" : "The date the campaign was created in ISO 8601 format.", + "CampaignResponse$Description" : "A description of the campaign.", + "CampaignResponse$Id" : "The unique campaign ID.", + "CampaignResponse$LastModifiedDate" : "The date the campaign was last updated in ISO 8601 format.\t", + "CampaignResponse$Name" : "The custom name of the campaign.", + "CampaignResponse$SegmentId" : "The ID of the segment to which the campaign sends messages.", + "CampaignResponse$TreatmentDescription" : "A custom description for the treatment.", + "CampaignResponse$TreatmentName" : "The custom name of a variation of the campaign used for A/B testing.", + "CampaignsResponse$NextToken" : "The string that you use in a subsequent request to get the next page of results in a paginated response.", + "EndpointBatchItem$Address" : "The address or token of the endpoint.", + "EndpointBatchItem$EffectiveDate" : "The last time the endpoint was updated. Provided in ISO 8601 format.", + "EndpointBatchItem$EndpointStatus" : "The endpoint status. Can be either ACTIVE or INACTIVE. Will be set to INACTIVE if a delivery fails. Will be set to ACTIVE if the address is updated.", + "EndpointBatchItem$Id" : null, + "EndpointBatchItem$OptOut" : "Indicates whether a user has opted out of receiving messages with one of the following values:\n\nALL – User receives all messages.\nNONE – User receives no messages.", + "EndpointBatchItem$RequestId" : "The unique ID for the most recent request to update the endpoint.", + "EndpointDemographic$AppVersion" : "The version of the application associated with the endpoint.", + "EndpointDemographic$Locale" : "The endpoint locale in the following format: The ISO 639-1 alpha-2 code, followed by an underscore, followed by an ISO 3166-1 alpha-2 value.\n", + "EndpointDemographic$Make" : "The endpoint make, such as such as Apple or Samsung.", + "EndpointDemographic$Model" : "The endpoint model, such as iPhone.", + "EndpointDemographic$ModelVersion" : "The endpoint model version.", + "EndpointDemographic$Platform" : "The endpoint platform, such as ios or android.", + "EndpointDemographic$PlatformVersion" : "The endpoint platform version.", + "EndpointDemographic$Timezone" : "The timezone of the endpoint. Specified as a tz database value, such as Americas/Los_Angeles.", + "EndpointLocation$City" : "The city where the endpoint is located.", + "EndpointLocation$Country" : "Country according to ISO 3166-1 Alpha-2 codes. For example, US.", + "EndpointLocation$PostalCode" : "The postal code or zip code of the endpoint.", + "EndpointLocation$Region" : "The region of the endpoint location. For example, corresponds to a state in US.", + "EndpointRequest$Address" : "The address or token of the endpoint.", + "EndpointRequest$EffectiveDate" : "The last time the endpoint was updated. Provided in ISO 8601 format.", + "EndpointRequest$EndpointStatus" : "The endpoint status. Can be either ACTIVE or INACTIVE. Will be set to INACTIVE if a delivery fails. Will be set to ACTIVE if the address is updated.", + "EndpointRequest$OptOut" : "Indicates whether a user has opted out of receiving messages with one of the following values:\n\nALL – User receives all messages.\nNONE – User receives no messages.", + "EndpointRequest$RequestId" : "The unique ID for the most recent request to update the endpoint.", + "EndpointResponse$Address" : "The address or token of the endpoint.", + "EndpointResponse$ApplicationId" : "The ID of the application associated with the endpoint.", + "EndpointResponse$CohortId" : "A number from 0 - 99 that represents the cohort the endpoint is assigned to. Endpoints are grouped into cohorts randomly, and each cohort contains approximately 1 percent of the endpoints for an app. Amazon Pinpoint assigns cohorts to the holdout or treatment allocations for a campaign.", + "EndpointResponse$CreationDate" : "The last time the endpoint was created. Provided in ISO 8601 format.", + "EndpointResponse$EffectiveDate" : "The last time the endpoint was updated. Provided in ISO 8601 format.", + "EndpointResponse$EndpointStatus" : "The endpoint status. Can be either ACTIVE or INACTIVE. Will be set to INACTIVE if a delivery fails. Will be set to ACTIVE if the address is updated.", + "EndpointResponse$Id" : "The unique ID that you assigned to the endpoint. The ID should be a globally unique identifier (GUID) to ensure that it is unique compared to all other endpoints for the application.", + "EndpointResponse$OptOut" : "Indicates whether a user has opted out of receiving messages with one of the following values:\n\nALL – User receives all messages.\nNONE – User receives no messages.", + "EndpointResponse$RequestId" : "The unique ID for the most recent request to update the endpoint.", + "EndpointResponse$ShardId" : "The ShardId of endpoint", + "EndpointUser$UserId" : "The unique ID of the user.", + "GCMChannelRequest$ApiKey" : "Platform credential API key from Google.", + "GCMChannelResponse$ApplicationId" : null, + "GCMChannelResponse$CreationDate" : "When was this segment created", + "GCMChannelResponse$Credential" : "The GCM API key from Google.", + "GCMChannelResponse$Id" : null, + "GCMChannelResponse$LastModifiedBy" : "Who last updated this entry", + "GCMChannelResponse$LastModifiedDate" : "Last date this was updated", + "GCMChannelResponse$Platform" : "The platform type. Will be GCM", + "ImportJobRequest$ExternalId" : "A unique, custom ID assigned to the IAM role that restricts who can assume the role.\t", + "ImportJobRequest$RoleArn" : "The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint access to the Amazon S3 location that contains the endpoints to import.", + "ImportJobRequest$S3Url" : "A URL that points to the location within an Amazon S3 bucket that contains the endpoints to import. The location can be a folder or a single file.\nThe URL should follow this format: s3://bucket-name/folder-name/file-name\n\nAmazon Pinpoint will import endpoints from this location and any subfolders it contains.", + "ImportJobRequest$SegmentId" : "The ID of the segment to update if the import job is meant to update an existing segment.", + "ImportJobRequest$SegmentName" : "A custom name for the segment created by the import job. Use if DefineSegment is true.", + "ImportJobResource$ExternalId" : "A unique, custom ID assigned to the IAM role that restricts who can assume the role.\t", + "ImportJobResource$RoleArn" : "The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint access to the Amazon S3 location that contains the endpoints to import.", + "ImportJobResource$S3Url" : "A URL that points to the location within an Amazon S3 bucket that contains the endpoints to import. The location can be a folder or a single file.\nThe URL should follow this format: s3://bucket-name/folder-name/file-name\n\nAmazon Pinpoint will import endpoints from this location and any subfolders it contains.", + "ImportJobResource$SegmentId" : "The ID of the segment to update if the import job is meant to update an existing segment.", + "ImportJobResource$SegmentName" : "A custom name for the segment created by the import job. Use if DefineSegment is true.", + "ImportJobResponse$ApplicationId" : "The unique ID of the application to which the import job applies.", + "ImportJobResponse$CompletionDate" : "The date the import job completed in ISO 8601 format.", + "ImportJobResponse$CreationDate" : "The date the import job was created in ISO 8601 format.", + "ImportJobResponse$Id" : "The unique ID of the import job.", + "ImportJobResponse$Type" : "The job type. Will be Import.", + "ImportJobsResponse$NextToken" : "The string that you use in a subsequent request to get the next page of results in a paginated response.", + "Message$Body" : "The message body. Can include up to 140 characters.", + "Message$ImageIconUrl" : "The URL that points to the icon image for the push notification icon, for example, the app icon.", + "Message$ImageUrl" : "The URL that points to an image used in the push notification.", + "Message$JsonBody" : "The JSON payload used for a silent push.", + "Message$MediaUrl" : "The URL that points to the media resource, for example a .mp4 or .gif file.", + "Message$Title" : "The message title that displays above the message on the user's device.", + "Message$Url" : "The URL to open in the user's mobile browser. Used if the value for Action is URL.", + "MessageBody$Message" : null, + "MessageBody$RequestID" : null, + "QuietTime$End" : "The default end time for quiet time in ISO 8601 format.", + "QuietTime$Start" : "The default start time for quiet time in ISO 8601 format.", + "Schedule$EndTime" : "The scheduled time that the campaign ends in ISO 8601 format.", + "Schedule$StartTime" : "The scheduled time that the campaign begins in ISO 8601 format.", + "Schedule$Timezone" : "The starting UTC offset for the schedule if the value for isLocalTime is true\n\nValid values: \nUTC\nUTC+01\nUTC+02\nUTC+03\nUTC+03:30\nUTC+04\nUTC+04:30\nUTC+05\nUTC+05:30\nUTC+05:45\nUTC+06\nUTC+06:30\nUTC+07\nUTC+08\nUTC+09\nUTC+09:30\nUTC+10\nUTC+10:30\nUTC+11\nUTC+12\nUTC+13\nUTC-02\nUTC-03\nUTC-04\nUTC-05\nUTC-06\nUTC-07\nUTC-08\nUTC-09\nUTC-10\nUTC-11", + "SegmentImportResource$ExternalId" : "A unique, custom ID assigned to the IAM role that restricts who can assume the role.", + "SegmentImportResource$RoleArn" : "The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint access to the endpoints in Amazon S3.", + "SegmentImportResource$S3Url" : "A URL that points to the Amazon S3 location from which the endpoints for this segment were imported.", + "SegmentResponse$ApplicationId" : "The ID of the application to which the segment applies.", + "SegmentResponse$CreationDate" : "The date the segment was created in ISO 8601 format.", + "SegmentResponse$Id" : "The unique segment ID.", + "SegmentResponse$LastModifiedDate" : "The date the segment was last updated in ISO 8601 format.", + "SegmentResponse$Name" : "The name of segment", + "SegmentsResponse$NextToken" : "An identifier used to retrieve the next page of results. The token is null if no additional pages exist.", + "TreatmentResource$Id" : "The unique treatment ID.", + "TreatmentResource$TreatmentDescription" : "A custom description for the treatment.", + "TreatmentResource$TreatmentName" : "The custom name of a variation of the campaign used for A/B testing.", + "WriteCampaignRequest$Description" : "A description of the campaign.", + "WriteCampaignRequest$Name" : "The custom name of the campaign.", + "WriteCampaignRequest$SegmentId" : "The ID of the segment to which the campaign sends messages.", + "WriteCampaignRequest$TreatmentDescription" : "A custom description for the treatment.", + "WriteCampaignRequest$TreatmentName" : "The custom name of a variation of the campaign used for A/B testing.", + "WriteSegmentRequest$Name" : "The name of segment", + "WriteTreatmentResource$TreatmentDescription" : "A custom description for the treatment.", + "WriteTreatmentResource$TreatmentName" : "The custom name of a variation of the campaign used for A/B testing." + } + } + } +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint/2016-12-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint/2016-12-01/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint/2016-12-01/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/polly/2016-06-10/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/polly/2016-06-10/api-2.json new file mode 100644 index 000000000..84e08a4ca --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/polly/2016-06-10/api-2.json @@ -0,0 +1,504 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2016-06-10", + "endpointPrefix":"polly", + "protocol":"rest-json", + "serviceFullName":"Amazon Polly", + "signatureVersion":"v4", + "uid":"polly-2016-06-10" + }, + "operations":{ + "DeleteLexicon":{ + "name":"DeleteLexicon", + "http":{ + "method":"DELETE", + "requestUri":"/v1/lexicons/{LexiconName}", + "responseCode":200 + }, + "input":{"shape":"DeleteLexiconInput"}, + "output":{"shape":"DeleteLexiconOutput"}, + "errors":[ + {"shape":"LexiconNotFoundException"}, + {"shape":"ServiceFailureException"} + ] + }, + "DescribeVoices":{ + "name":"DescribeVoices", + "http":{ + "method":"GET", + "requestUri":"/v1/voices", + "responseCode":200 + }, + "input":{"shape":"DescribeVoicesInput"}, + "output":{"shape":"DescribeVoicesOutput"}, + "errors":[ + {"shape":"InvalidNextTokenException"}, + {"shape":"ServiceFailureException"} + ] + }, + "GetLexicon":{ + "name":"GetLexicon", + "http":{ + "method":"GET", + "requestUri":"/v1/lexicons/{LexiconName}", + "responseCode":200 + }, + "input":{"shape":"GetLexiconInput"}, + "output":{"shape":"GetLexiconOutput"}, + "errors":[ + {"shape":"LexiconNotFoundException"}, + {"shape":"ServiceFailureException"} + ] + }, + "ListLexicons":{ + "name":"ListLexicons", + "http":{ + "method":"GET", + "requestUri":"/v1/lexicons", + "responseCode":200 + }, + "input":{"shape":"ListLexiconsInput"}, + "output":{"shape":"ListLexiconsOutput"}, + "errors":[ + {"shape":"InvalidNextTokenException"}, + {"shape":"ServiceFailureException"} + ] + }, + "PutLexicon":{ + "name":"PutLexicon", + "http":{ + "method":"PUT", + "requestUri":"/v1/lexicons/{LexiconName}", + "responseCode":200 + }, + "input":{"shape":"PutLexiconInput"}, + "output":{"shape":"PutLexiconOutput"}, + "errors":[ + {"shape":"InvalidLexiconException"}, + {"shape":"UnsupportedPlsAlphabetException"}, + {"shape":"UnsupportedPlsLanguageException"}, + {"shape":"LexiconSizeExceededException"}, + {"shape":"MaxLexemeLengthExceededException"}, + {"shape":"MaxLexiconsNumberExceededException"}, + {"shape":"ServiceFailureException"} + ] + }, + "SynthesizeSpeech":{ + "name":"SynthesizeSpeech", + "http":{ + "method":"POST", + "requestUri":"/v1/speech", + "responseCode":200 + }, + "input":{"shape":"SynthesizeSpeechInput"}, + "output":{"shape":"SynthesizeSpeechOutput"}, + "errors":[ + {"shape":"TextLengthExceededException"}, + {"shape":"InvalidSampleRateException"}, + {"shape":"InvalidSsmlException"}, + {"shape":"LexiconNotFoundException"}, + {"shape":"ServiceFailureException"} + ] + } + }, + "shapes":{ + "Alphabet":{"type":"string"}, + "AudioStream":{ + "type":"blob", + "streaming":true + }, + "ContentType":{"type":"string"}, + "DeleteLexiconInput":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{ + "shape":"LexiconName", + "location":"uri", + "locationName":"LexiconName" + } + } + }, + "DeleteLexiconOutput":{ + "type":"structure", + "members":{ + } + }, + "DescribeVoicesInput":{ + "type":"structure", + "members":{ + "LanguageCode":{ + "shape":"LanguageCode", + "location":"querystring", + "locationName":"LanguageCode" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"NextToken" + } + } + }, + "DescribeVoicesOutput":{ + "type":"structure", + "members":{ + "Voices":{"shape":"VoiceList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ErrorMessage":{"type":"string"}, + "Gender":{ + "type":"string", + "enum":[ + "Female", + "Male" + ] + }, + "GetLexiconInput":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{ + "shape":"LexiconName", + "location":"uri", + "locationName":"LexiconName" + } + } + }, + "GetLexiconOutput":{ + "type":"structure", + "members":{ + "Lexicon":{"shape":"Lexicon"}, + "LexiconAttributes":{"shape":"LexiconAttributes"} + } + }, + "InvalidLexiconException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidNextTokenException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidSampleRateException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidSsmlException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "LanguageCode":{ + "type":"string", + "enum":[ + "cy-GB", + "da-DK", + "de-DE", + "en-AU", + "en-GB", + "en-GB-WLS", + "en-IN", + "en-US", + "es-ES", + "es-US", + "fr-CA", + "fr-FR", + "is-IS", + "it-IT", + "ja-JP", + "nb-NO", + "nl-NL", + "pl-PL", + "pt-BR", + "pt-PT", + "ro-RO", + "ru-RU", + "sv-SE", + "tr-TR" + ] + }, + "LanguageName":{"type":"string"}, + "LastModified":{"type":"timestamp"}, + "LexemesCount":{"type":"integer"}, + "Lexicon":{ + "type":"structure", + "members":{ + "Content":{"shape":"LexiconContent"}, + "Name":{"shape":"LexiconName"} + } + }, + "LexiconArn":{"type":"string"}, + "LexiconAttributes":{ + "type":"structure", + "members":{ + "Alphabet":{"shape":"Alphabet"}, + "LanguageCode":{"shape":"LanguageCode"}, + "LastModified":{"shape":"LastModified"}, + "LexiconArn":{"shape":"LexiconArn"}, + "LexemesCount":{"shape":"LexemesCount"}, + "Size":{"shape":"Size"} + } + }, + "LexiconContent":{"type":"string"}, + "LexiconDescription":{ + "type":"structure", + "members":{ + "Name":{"shape":"LexiconName"}, + "Attributes":{"shape":"LexiconAttributes"} + } + }, + "LexiconDescriptionList":{ + "type":"list", + "member":{"shape":"LexiconDescription"} + }, + "LexiconName":{ + "type":"string", + "pattern":"[0-9A-Za-z]{1,20}", + "sensitive":true + }, + "LexiconNameList":{ + "type":"list", + "member":{"shape":"LexiconName"}, + "max":5 + }, + "LexiconNotFoundException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "LexiconSizeExceededException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "ListLexiconsInput":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"NextToken" + } + } + }, + "ListLexiconsOutput":{ + "type":"structure", + "members":{ + "Lexicons":{"shape":"LexiconDescriptionList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "MaxLexemeLengthExceededException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "MaxLexiconsNumberExceededException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "NextToken":{"type":"string"}, + "OutputFormat":{ + "type":"string", + "enum":[ + "mp3", + "ogg_vorbis", + "pcm" + ] + }, + "PutLexiconInput":{ + "type":"structure", + "required":[ + "Name", + "Content" + ], + "members":{ + "Name":{ + "shape":"LexiconName", + "location":"uri", + "locationName":"LexiconName" + }, + "Content":{"shape":"LexiconContent"} + } + }, + "PutLexiconOutput":{ + "type":"structure", + "members":{ + } + }, + "RequestCharacters":{"type":"integer"}, + "SampleRate":{"type":"string"}, + "ServiceFailureException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true + }, + "Size":{"type":"integer"}, + "SynthesizeSpeechInput":{ + "type":"structure", + "required":[ + "OutputFormat", + "Text", + "VoiceId" + ], + "members":{ + "LexiconNames":{"shape":"LexiconNameList"}, + "OutputFormat":{"shape":"OutputFormat"}, + "SampleRate":{"shape":"SampleRate"}, + "Text":{"shape":"Text"}, + "TextType":{"shape":"TextType"}, + "VoiceId":{"shape":"VoiceId"} + } + }, + "SynthesizeSpeechOutput":{ + "type":"structure", + "members":{ + "AudioStream":{"shape":"AudioStream"}, + "ContentType":{ + "shape":"ContentType", + "location":"header", + "locationName":"Content-Type" + }, + "RequestCharacters":{ + "shape":"RequestCharacters", + "location":"header", + "locationName":"x-amzn-RequestCharacters" + } + }, + "payload":"AudioStream" + }, + "Text":{"type":"string"}, + "TextLengthExceededException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "TextType":{ + "type":"string", + "enum":[ + "ssml", + "text" + ] + }, + "UnsupportedPlsAlphabetException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "UnsupportedPlsLanguageException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "Voice":{ + "type":"structure", + "members":{ + "Gender":{"shape":"Gender"}, + "Id":{"shape":"VoiceId"}, + "LanguageCode":{"shape":"LanguageCode"}, + "LanguageName":{"shape":"LanguageName"}, + "Name":{"shape":"VoiceName"} + } + }, + "VoiceId":{ + "type":"string", + "enum":[ + "Geraint", + "Gwyneth", + "Mads", + "Naja", + "Hans", + "Marlene", + "Nicole", + "Russell", + "Amy", + "Brian", + "Emma", + "Raveena", + "Ivy", + "Joanna", + "Joey", + "Justin", + "Kendra", + "Kimberly", + "Salli", + "Conchita", + "Enrique", + "Miguel", + "Penelope", + "Chantal", + "Celine", + "Mathieu", + "Dora", + "Karl", + "Carla", + "Giorgio", + "Mizuki", + "Liv", + "Lotte", + "Ruben", + "Ewa", + "Jacek", + "Jan", + "Maja", + "Ricardo", + "Vitoria", + "Cristiano", + "Ines", + "Carmen", + "Maxim", + "Tatyana", + "Astrid", + "Filiz" + ] + }, + "VoiceList":{ + "type":"list", + "member":{"shape":"Voice"} + }, + "VoiceName":{"type":"string"} + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/polly/2016-06-10/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/polly/2016-06-10/docs-2.json new file mode 100644 index 000000000..76839cafe --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/polly/2016-06-10/docs-2.json @@ -0,0 +1,326 @@ +{ + "version": "2.0", + "service": "

Amazon Polly is a web service that makes it easy to synthesize speech from text.

The Amazon Polly service provides API operations for synthesizing high-quality speech from plain text and Speech Synthesis Markup Language (SSML), along with managing pronunciations lexicons that enable you to get the best results for your application domain.

", + "operations": { + "DeleteLexicon": "

Deletes the specified pronunciation lexicon stored in an AWS Region. A lexicon which has been deleted is not available for speech synthesis, nor is it possible to retrieve it using either the GetLexicon or ListLexicon APIs.

For more information, see Managing Lexicons.

", + "DescribeVoices": "

Returns the list of voices that are available for use when requesting speech synthesis. Each voice speaks a specified language, is either male or female, and is identified by an ID, which is the ASCII version of the voice name.

When synthesizing speech ( SynthesizeSpeech ), you provide the voice ID for the voice you want from the list of voices returned by DescribeVoices.

For example, you want your news reader application to read news in a specific language, but giving a user the option to choose the voice. Using the DescribeVoices operation you can provide the user with a list of available voices to select from.

You can optionally specify a language code to filter the available voices. For example, if you specify en-US, the operation returns a list of all available US English voices.

This operation requires permissions to perform the polly:DescribeVoices action.

", + "GetLexicon": "

Returns the content of the specified pronunciation lexicon stored in an AWS Region. For more information, see Managing Lexicons.

", + "ListLexicons": "

Returns a list of pronunciation lexicons stored in an AWS Region. For more information, see Managing Lexicons.

", + "PutLexicon": "

Stores a pronunciation lexicon in an AWS Region. If a lexicon with the same name already exists in the region, it is overwritten by the new lexicon. Lexicon operations have eventual consistency, therefore, it might take some time before the lexicon is available to the SynthesizeSpeech operation.

For more information, see Managing Lexicons.

", + "SynthesizeSpeech": "

Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes. SSML input must be valid, well-formed SSML. Some alphabets might not be available with all the voices (for example, Cyrillic might not be read at all by English voices) unless phoneme mapping is used. For more information, see How it Works.

" + }, + "shapes": { + "Alphabet": { + "base": null, + "refs": { + "LexiconAttributes$Alphabet": "

Phonetic alphabet used in the lexicon. Valid values are ipa and x-sampa.

" + } + }, + "AudioStream": { + "base": null, + "refs": { + "SynthesizeSpeechOutput$AudioStream": "

Stream containing the synthesized speech.

" + } + }, + "ContentType": { + "base": null, + "refs": { + "SynthesizeSpeechOutput$ContentType": "

Specifies the type audio stream. This should reflect the OutputFormat parameter in your request.

  • If you request mp3 as the OutputFormat, the ContentType returned is audio/mpeg.

  • If you request ogg_vorbis as the OutputFormat, the ContentType returned is audio/ogg.

  • If you request pcm as the OutputFormat, the ContentType returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.

" + } + }, + "DeleteLexiconInput": { + "base": null, + "refs": { + } + }, + "DeleteLexiconOutput": { + "base": null, + "refs": { + } + }, + "DescribeVoicesInput": { + "base": null, + "refs": { + } + }, + "DescribeVoicesOutput": { + "base": null, + "refs": { + } + }, + "ErrorMessage": { + "base": null, + "refs": { + "InvalidLexiconException$message": null, + "InvalidNextTokenException$message": null, + "InvalidSampleRateException$message": null, + "InvalidSsmlException$message": null, + "LexiconNotFoundException$message": null, + "LexiconSizeExceededException$message": null, + "MaxLexemeLengthExceededException$message": null, + "MaxLexiconsNumberExceededException$message": null, + "ServiceFailureException$message": null, + "TextLengthExceededException$message": null, + "UnsupportedPlsAlphabetException$message": null, + "UnsupportedPlsLanguageException$message": null + } + }, + "Gender": { + "base": null, + "refs": { + "Voice$Gender": "

Gender of the voice.

" + } + }, + "GetLexiconInput": { + "base": null, + "refs": { + } + }, + "GetLexiconOutput": { + "base": null, + "refs": { + } + }, + "InvalidLexiconException": { + "base": "

Amazon Polly can't find the specified lexicon. Verify that the lexicon's name is spelled correctly, and then try again.

", + "refs": { + } + }, + "InvalidNextTokenException": { + "base": "

The NextToken is invalid. Verify that it's spelled correctly, and then try again.

", + "refs": { + } + }, + "InvalidSampleRateException": { + "base": "

The specified sample rate is not valid.

", + "refs": { + } + }, + "InvalidSsmlException": { + "base": "

The SSML you provided is invalid. Verify the SSML syntax, spelling of tags and values, and then try again.

", + "refs": { + } + }, + "LanguageCode": { + "base": null, + "refs": { + "DescribeVoicesInput$LanguageCode": "

The language identification tag (ISO 639 code for the language name-ISO 3166 country code) for filtering the list of voices returned. If you don't specify this optional parameter, all available voices are returned.

", + "LexiconAttributes$LanguageCode": "

Language code that the lexicon applies to. A lexicon with a language code such as \"en\" would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.

", + "Voice$LanguageCode": "

Language code of the voice.

" + } + }, + "LanguageName": { + "base": null, + "refs": { + "Voice$LanguageName": "

Human readable name of the language in English.

" + } + }, + "LastModified": { + "base": null, + "refs": { + "LexiconAttributes$LastModified": "

Date lexicon was last modified (a timestamp value).

" + } + }, + "LexemesCount": { + "base": null, + "refs": { + "LexiconAttributes$LexemesCount": "

Number of lexemes in the lexicon.

" + } + }, + "Lexicon": { + "base": "

Provides lexicon name and lexicon content in string format. For more information, see Pronunciation Lexicon Specification (PLS) Version 1.0.

", + "refs": { + "GetLexiconOutput$Lexicon": "

Lexicon object that provides name and the string content of the lexicon.

" + } + }, + "LexiconArn": { + "base": null, + "refs": { + "LexiconAttributes$LexiconArn": "

Amazon Resource Name (ARN) of the lexicon.

" + } + }, + "LexiconAttributes": { + "base": "

Contains metadata describing the lexicon such as the number of lexemes, language code, and so on. For more information, see Managing Lexicons.

", + "refs": { + "GetLexiconOutput$LexiconAttributes": "

Metadata of the lexicon, including phonetic alphabetic used, language code, lexicon ARN, number of lexemes defined in the lexicon, and size of lexicon in bytes.

", + "LexiconDescription$Attributes": "

Provides lexicon metadata.

" + } + }, + "LexiconContent": { + "base": null, + "refs": { + "Lexicon$Content": "

Lexicon content in string format. The content of a lexicon must be in PLS format.

", + "PutLexiconInput$Content": "

Content of the PLS lexicon as string data.

" + } + }, + "LexiconDescription": { + "base": "

Describes the content of the lexicon.

", + "refs": { + "LexiconDescriptionList$member": null + } + }, + "LexiconDescriptionList": { + "base": null, + "refs": { + "ListLexiconsOutput$Lexicons": "

A list of lexicon names and attributes.

" + } + }, + "LexiconName": { + "base": null, + "refs": { + "DeleteLexiconInput$Name": "

The name of the lexicon to delete. Must be an existing lexicon in the region.

", + "GetLexiconInput$Name": "

Name of the lexicon.

", + "Lexicon$Name": "

Name of the lexicon.

", + "LexiconDescription$Name": "

Name of the lexicon.

", + "LexiconNameList$member": null, + "PutLexiconInput$Name": "

Name of the lexicon. The name must follow the regular express format [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric string up to 20 characters long.

" + } + }, + "LexiconNameList": { + "base": null, + "refs": { + "SynthesizeSpeechInput$LexiconNames": "

List of one or more pronunciation lexicon names you want the service to apply during synthesis. Lexicons are applied only if the language of the lexicon is the same as the language of the voice. For information about storing lexicons, see PutLexicon.

" + } + }, + "LexiconNotFoundException": { + "base": "

Amazon Polly can't find the specified lexicon. This could be caused by a lexicon that is missing, its name is misspelled or specifying a lexicon that is in a different region.

Verify that the lexicon exists, is in the region (see ListLexicons) and that you spelled its name is spelled correctly. Then try again.

", + "refs": { + } + }, + "LexiconSizeExceededException": { + "base": "

The maximum size of the specified lexicon would be exceeded by this operation.

", + "refs": { + } + }, + "ListLexiconsInput": { + "base": null, + "refs": { + } + }, + "ListLexiconsOutput": { + "base": null, + "refs": { + } + }, + "MaxLexemeLengthExceededException": { + "base": "

The maximum size of the lexeme would be exceeded by this operation.

", + "refs": { + } + }, + "MaxLexiconsNumberExceededException": { + "base": "

The maximum number of lexicons would be exceeded by this operation.

", + "refs": { + } + }, + "NextToken": { + "base": null, + "refs": { + "DescribeVoicesInput$NextToken": "

An opaque pagination token returned from the previous DescribeVoices operation. If present, this indicates where to continue the listing.

", + "DescribeVoicesOutput$NextToken": "

The pagination token to use in the next request to continue the listing of voices. NextToken is returned only if the response is truncated.

", + "ListLexiconsInput$NextToken": "

An opaque pagination token returned from previous ListLexicons operation. If present, indicates where to continue the list of lexicons.

", + "ListLexiconsOutput$NextToken": "

The pagination token to use in the next request to continue the listing of lexicons. NextToken is returned only if the response is truncated.

" + } + }, + "OutputFormat": { + "base": null, + "refs": { + "SynthesizeSpeechInput$OutputFormat": "

The audio format in which the resulting stream will be encoded.

" + } + }, + "PutLexiconInput": { + "base": null, + "refs": { + } + }, + "PutLexiconOutput": { + "base": null, + "refs": { + } + }, + "RequestCharacters": { + "base": null, + "refs": { + "SynthesizeSpeechOutput$RequestCharacters": "

Number of characters synthesized.

" + } + }, + "SampleRate": { + "base": null, + "refs": { + "SynthesizeSpeechInput$SampleRate": "

The audio frequency specified in Hz.

The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", and \"22050\". The default value is \"22050\".

Valid values for pcm are \"8000\" and \"16000\" The default value is \"16000\".

" + } + }, + "ServiceFailureException": { + "base": "

An unknown condition has caused a service failure.

", + "refs": { + } + }, + "Size": { + "base": null, + "refs": { + "LexiconAttributes$Size": "

Total size of the lexicon, in characters.

" + } + }, + "SynthesizeSpeechInput": { + "base": null, + "refs": { + } + }, + "SynthesizeSpeechOutput": { + "base": null, + "refs": { + } + }, + "Text": { + "base": null, + "refs": { + "SynthesizeSpeechInput$Text": "

Input text to synthesize. If you specify ssml as the TextType, follow the SSML format for the input text.

" + } + }, + "TextLengthExceededException": { + "base": "

The value of the \"Text\" parameter is longer than the accepted limits. The limit for input text is a maximum of 3000 characters total, of which no more than 1500 can be billed characters. SSML tags are not counted as billed characters.

", + "refs": { + } + }, + "TextType": { + "base": null, + "refs": { + "SynthesizeSpeechInput$TextType": "

Specifies whether the input text is plain text or SSML. The default value is plain text. For more information, see Using SSML.

" + } + }, + "UnsupportedPlsAlphabetException": { + "base": "

The alphabet specified by the lexicon is not a supported alphabet. Valid values are x-sampa and ipa.

", + "refs": { + } + }, + "UnsupportedPlsLanguageException": { + "base": "

The language specified in the lexicon is unsupported. For a list of supported languages, see Lexicon Attributes.

", + "refs": { + } + }, + "Voice": { + "base": "

Description of the voice.

", + "refs": { + "VoiceList$member": null + } + }, + "VoiceId": { + "base": null, + "refs": { + "SynthesizeSpeechInput$VoiceId": "

Voice ID to use for the synthesis. You can get a list of available voice IDs by calling the DescribeVoices operation.

", + "Voice$Id": "

Amazon Polly assigned voice ID. This is the ID that you specify when calling the SynthesizeSpeech operation.

" + } + }, + "VoiceList": { + "base": null, + "refs": { + "DescribeVoicesOutput$Voices": "

A list of voices with their properties.

" + } + }, + "VoiceName": { + "base": null, + "refs": { + "Voice$Name": "

Name of the voice (for example, Salli, Kendra, etc.). This provides a human readable voice name that you might display in your application.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/polly/2016-06-10/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/polly/2016-06-10/examples-1.json new file mode 100644 index 000000000..38205dbea --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/polly/2016-06-10/examples-1.json @@ -0,0 +1,171 @@ +{ + "version": "1.0", + "examples": { + "DeleteLexicon": [ + { + "input": { + "Name": "example" + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Deletes a specified pronunciation lexicon stored in an AWS Region.", + "id": "to-delete-a-lexicon-1481922498332", + "title": "To delete a lexicon" + } + ], + "DescribeVoices": [ + { + "input": { + "LanguageCode": "en-GB" + }, + "output": { + "Voices": [ + { + "Gender": "Female", + "Id": "Emma", + "LanguageCode": "en-GB", + "LanguageName": "British English", + "Name": "Emma" + }, + { + "Gender": "Male", + "Id": "Brian", + "LanguageCode": "en-GB", + "LanguageName": "British English", + "Name": "Brian" + }, + { + "Gender": "Female", + "Id": "Amy", + "LanguageCode": "en-GB", + "LanguageName": "British English", + "Name": "Amy" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns the list of voices that are available for use when requesting speech synthesis. Displayed languages are those within the specified language code. If no language code is specified, voices for all available languages are displayed.", + "id": "to-describe-available-voices-1482180557753", + "title": "To describe available voices" + } + ], + "GetLexicon": [ + { + "input": { + "Name": "" + }, + "output": { + "Lexicon": { + "Content": "\r\n\r\n \r\n W3C\r\n World Wide Web Consortium\r\n \r\n", + "Name": "example" + }, + "LexiconAttributes": { + "Alphabet": "ipa", + "LanguageCode": "en-US", + "LastModified": 1478542980.117, + "LexemesCount": 1, + "LexiconArn": "arn:aws:polly:us-east-1:123456789012:lexicon/example", + "Size": 503 + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns the content of the specified pronunciation lexicon stored in an AWS Region.", + "id": "to-retrieve-a-lexicon-1481912870836", + "title": "To retrieve a lexicon" + } + ], + "ListLexicons": [ + { + "input": { + }, + "output": { + "Lexicons": [ + { + "Attributes": { + "Alphabet": "ipa", + "LanguageCode": "en-US", + "LastModified": 1478542980.117, + "LexemesCount": 1, + "LexiconArn": "arn:aws:polly:us-east-1:123456789012:lexicon/example", + "Size": 503 + }, + "Name": "example" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns a list of pronunciation lexicons stored in an AWS Region.", + "id": "to-list-all-lexicons-in-a-region-1481842106487", + "title": "To list all lexicons in a region" + } + ], + "PutLexicon": [ + { + "input": { + "Content": "file://example.pls", + "Name": "W3C" + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Stores a pronunciation lexicon in an AWS Region.", + "id": "to-save-a-lexicon-1482272584088", + "title": "To save a lexicon" + } + ], + "SynthesizeSpeech": [ + { + "input": { + "LexiconNames": [ + "example" + ], + "OutputFormat": "mp3", + "SampleRate": "8000", + "Text": "All Gaul is divided into three parts", + "TextType": "text", + "VoiceId": "Joanna" + }, + "output": { + "AudioStream": "TEXT", + "ContentType": "audio/mpeg", + "RequestCharacters": 37 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Synthesizes plain text or SSML into a file of human-like speech.", + "id": "to-synthesize-speech-1482186064046", + "title": "To synthesize speech" + } + ] + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/api-2.json index 3868a93c7..9d772d718 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/api-2.json @@ -7,6 +7,7 @@ "serviceAbbreviation":"Amazon RDS", "serviceFullName":"Amazon Relational Database Service", "signatureVersion":"v4", + "uid":"rds-2013-01-10", "xmlNamespace":"http://rds.amazonaws.com/doc/2013-01-10/" }, "operations":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/docs-2.json index b955e246d..808bdea85 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/docs-2.json @@ -1,61 +1,61 @@ { "version": "2.0", - "service": "Amazon Relational Database Service

Amazon Relational Database Service (Amazon RDS) is a web service that makes it easier to set up, operate, and scale a relational database in the cloud. It provides cost-efficient, resizable capacity for an industry-standard relational database and manages common database administration tasks, freeing up developers to focus on what makes their applications and businesses unique.

Amazon RDS gives you access to the capabilities of a familiar MySQL or Oracle database server. This means the code, applications, and tools you already use today with your existing MySQL or Oracle databases work with Amazon RDS without modification. Amazon RDS automatically backs up your database and maintains the database software that powers your DB Instance. Amazon RDS is flexible: you can scale your database instance's compute resources and storage capacity to meet your application's demand. As with all Amazon Web Services, there are no up-front investments, and you pay only for the resources you use.

This is the Amazon RDS API Reference. It contains a comprehensive description of all Amazon RDS Query APIs and data types. Note that this API is asynchronous and some actions may require polling to determine when an action has been applied. See the parameter description to determine if a change is applied immediately or on the next instance reboot or during the maintenance window. To get started with Amazon RDS, go to the Amazon RDS Getting Started Guide. For more information on Amazon RDS concepts and usage scenarios, go to the Amazon RDS User Guide.

", + "service": null, "operations": { - "AddSourceIdentifierToSubscription": "

Adds a source identifier to an existing RDS event notification subscription.

", - "AddTagsToResource": "

Adds metadata tags to a DB Instance. These tags can also be used with cost allocation reporting to track cost associated with a DB Instance.

For an overview on tagging DB Instances, see DB Instance Tags.

", - "AuthorizeDBSecurityGroupIngress": "

Enables ingress to a DBSecurityGroup using one of two forms of authorization. First, EC2 or VPC Security Groups can be added to the DBSecurityGroup if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet. Required parameters for this API are one of CIDR range, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId for non-VPC).

You cannot authorize ingress from an EC2 security group in one Region to an Amazon RDS DB Instance in another. You cannot authorize ingress from a VPC security group in one VPC to an Amazon RDS DB Instance in another.

For an overview of CIDR ranges, go to the Wikipedia Tutorial.

", - "CopyDBSnapshot": "

Copies the specified DBSnapshot. The source DBSnapshot must be in the \"available\" state.

", - "CreateDBInstance": "

Creates a new DB instance.

", - "CreateDBInstanceReadReplica": "

Creates a DB Instance that acts as a Read Replica of a source DB Instance.

All Read Replica DB Instances are created as Single-AZ deployments with backups disabled. All other DB Instance attributes (including DB Security Groups and DB Parameter Groups) are inherited from the source DB Instance, except as specified below.

The source DB Instance must have backup retention enabled.

", - "CreateDBParameterGroup": "

Creates a new DB Parameter Group.

A DB Parameter Group is initially created with the default parameters for the database engine used by the DB Instance. To provide custom values for any of the parameters, you must modify the group after creating it using ModifyDBParameterGroup. Once you've created a DB Parameter Group, you need to associate it with your DB Instance using ModifyDBInstance. When you associate a new DB Parameter Group with a running DB Instance, you need to reboot the DB Instance for the new DB Parameter Group and associated settings to take effect.

", - "CreateDBSecurityGroup": "

Creates a new DB Security Group. DB Security Groups control access to a DB Instance.

", - "CreateDBSnapshot": "

Creates a DBSnapshot. The source DBInstance must be in \"available\" state.

", - "CreateDBSubnetGroup": "

Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region.

", - "CreateEventSubscription": "

Creates an RDS event notification subscription. This action requires a topic ARN (Amazon Resource Name) created by either the RDS console, the SNS console, or the SNS API. To obtain an ARN with SNS, you must create a topic in Amazon SNS and subscribe to the topic. The ARN is displayed in the SNS console.

You can specify the type of source (SourceType) you want to be notified of, provide a list of RDS sources (SourceIds) that triggers the events, and provide a list of event categories (EventCategories) for events you want to be notified of. For example, you can specify SourceType = db-instance, SourceIds = mydbinstance1, mydbinstance2 and EventCategories = Availability, Backup.

If you specify both the SourceType and SourceIds, such as SourceType = db-instance and SourceIdentifier = myDBInstance1, you will be notified of all the db-instance events for the specified source. If you specify a SourceType but do not specify a SourceIdentifier, you will receive notice of the events for that source type for all your RDS sources. If you do not specify either the SourceType nor the SourceIdentifier, you will be notified of events generated from all RDS sources belonging to your customer account.

", - "CreateOptionGroup": "

Creates a new Option Group.

", - "DeleteDBInstance": "

The DeleteDBInstance API deletes a previously provisioned RDS instance. A successful response from the web service indicates the request was received correctly. If a final DBSnapshot is requested the status of the RDS instance will be \"deleting\" until the DBSnapshot is created. DescribeDBInstance is used to monitor the status of this operation. This cannot be canceled or reverted once submitted.

", - "DeleteDBParameterGroup": "

Deletes a specified DBParameterGroup. The DBParameterGroup cannot be associated with any RDS instances to be deleted.

The specified DB Parameter Group cannot be associated with any DB Instances. ", - "DeleteDBSecurityGroup": "

Deletes a DB Security Group.

The specified DB Security Group must not be associated with any DB Instances.", - "DeleteDBSnapshot": "

Deletes a DBSnapshot.

The DBSnapshot must be in the available state to be deleted.", - "DeleteDBSubnetGroup": "

Deletes a DB subnet group.

The specified database subnet group must not be associated with any DB instances.", - "DeleteEventSubscription": "

Deletes an RDS event notification subscription.

", - "DeleteOptionGroup": "

Deletes an existing Option Group.

", - "DescribeDBEngineVersions": "

Returns a list of the available DB engines.

", - "DescribeDBInstances": "

Returns information about provisioned RDS instances. This API supports pagination.

", - "DescribeDBParameterGroups": "

Returns a list of DBParameterGroup descriptions. If a DBParameterGroupName is specified, the list will contain only the description of the specified DBParameterGroup.

", - "DescribeDBParameters": "

Returns the detailed parameter list for a particular DBParameterGroup.

", - "DescribeDBSecurityGroups": "

Returns a list of DBSecurityGroup descriptions. If a DBSecurityGroupName is specified, the list will contain only the descriptions of the specified DBSecurityGroup.

For an overview of CIDR ranges, go to the Wikipedia Tutorial.

", - "DescribeDBSnapshots": "

Returns information about DBSnapshots. This API supports pagination.

", - "DescribeDBSubnetGroups": "

Returns a list of DBSubnetGroup descriptions. If a DBSubnetGroupName is specified, the list will contain only the descriptions of the specified DBSubnetGroup.

For an overview of CIDR ranges, go to the Wikipedia Tutorial.

", - "DescribeEngineDefaultParameters": "

Returns the default engine and system parameter information for the specified database engine.

", - "DescribeEventCategories": "

Displays a list of categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in the Events topic in the Amazon RDS User Guide.

", - "DescribeEventSubscriptions": "

Lists all the subscription descriptions for a customer account. The description for a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType, SourceID, CreationTime, and Status.

If you specify a SubscriptionName, lists the description for that subscription.

", - "DescribeEvents": "

Returns events related to DB instances, DB security groups, DB Snapshots, and DB parameter groups for the past 14 days. Events specific to a particular DB Iinstance, DB security group, DB Snapshot, or DB parameter group can be obtained by providing the source identifier as a parameter. By default, the past hour of events are returned.

You can see a list of event categories and source types in the Events topic in the Amazon RDS User Guide.

", - "DescribeOptionGroupOptions": "

Describes all available options.

", - "DescribeOptionGroups": "

Describes the available option groups.

", - "DescribeOrderableDBInstanceOptions": "

Returns a list of orderable DB Instance options for the specified engine.

", - "DescribeReservedDBInstances": "

Returns information about reserved DB Instances for this account, or about a specified reserved DB Instance.

", - "DescribeReservedDBInstancesOfferings": "

Lists available reserved DB Instance offerings.

", - "ListTagsForResource": "

Lists all tags on a DB Instance.

For an overview on tagging DB Instances, see DB Instance Tags.

", - "ModifyDBInstance": "

Modify settings for a DB Instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.

", - "ModifyDBParameterGroup": "

Modifies the parameters of a DBParameterGroup. To modify more than one parameter submit a list of the following: ParameterName, ParameterValue, and ApplyMethod. A maximum of 20 parameters can be modified in a single request.

The apply-immediate method can be used only for dynamic parameters; the pending-reboot method can be used with MySQL and Oracle DB Instances for either dynamic or static parameters. For Microsoft SQL Server DB Instances, the pending-reboot method can be used only for static parameters.

", - "ModifyDBSubnetGroup": "

Modifies an existing DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region.

", - "ModifyEventSubscription": "

Modifies an existing RDS event notification subscription. Note that you cannot modify the source identifiers using this call; to change source identifiers for a subscription, use the AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription calls.

You can see a list of the event categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

", - "ModifyOptionGroup": "

Modifies an existing Option Group.

", - "PromoteReadReplica": "

Promotes a Read Replica DB Instance to a standalone DB Instance.

", - "PurchaseReservedDBInstancesOffering": "

Purchases a reserved DB Instance offering.

", - "RebootDBInstance": "

Reboots a previously provisioned RDS instance. This API results in the application of modified DBParameterGroup parameters with ApplyStatus of pending-reboot to the RDS instance. This action is taken as soon as possible, and results in a momentary outage to the RDS instance during which the RDS instance status is set to rebooting. If the RDS instance is configured for MultiAZ, it is possible that the reboot will be conducted through a failover. A DBInstance event is created when the reboot is completed.

", - "RemoveSourceIdentifierFromSubscription": "

Removes a source identifier from an existing RDS event notification subscription.

", - "RemoveTagsFromResource": "

Removes metadata tags from a DB Instance.

For an overview on tagging DB Instances, see DB Instance Tags.

", - "ResetDBParameterGroup": "

Modifies the parameters of a DBParameterGroup to the engine/system default value. To reset specific parameters submit a list of the following: ParameterName and ApplyMethod. To reset the entire DBParameterGroup specify the DBParameterGroup name and ResetAllParameters parameters. When resetting the entire group, dynamic parameters are updated immediately and static parameters are set to pending-reboot to take effect on the next DB instance restart or RebootDBInstance request.

", - "RestoreDBInstanceFromDBSnapshot": "

Creates a new DB Instance from a DB snapshot. The target database is created from the source database restore point with the same configuration as the original source database, except that the new RDS instance is created with the default security group.

", - "RestoreDBInstanceToPointInTime": "

Restores a DB Instance to an arbitrary point-in-time. Users can restore to any point in time before the latestRestorableTime for up to backupRetentionPeriod days. The target database is created from the source database with the same configuration as the original database except that the DB instance is created with the default DB security group.

", - "RevokeDBSecurityGroupIngress": "

Revokes ingress from a DBSecurityGroup for previously authorized IP ranges or EC2 or VPC Security Groups. Required parameters for this API are one of CIDRIP, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId).

" + "AddSourceIdentifierToSubscription": null, + "AddTagsToResource": null, + "AuthorizeDBSecurityGroupIngress": null, + "CopyDBSnapshot": null, + "CreateDBInstance": null, + "CreateDBInstanceReadReplica": null, + "CreateDBParameterGroup": null, + "CreateDBSecurityGroup": null, + "CreateDBSnapshot": null, + "CreateDBSubnetGroup": null, + "CreateEventSubscription": null, + "CreateOptionGroup": null, + "DeleteDBInstance": null, + "DeleteDBParameterGroup": null, + "DeleteDBSecurityGroup": null, + "DeleteDBSnapshot": null, + "DeleteDBSubnetGroup": null, + "DeleteEventSubscription": null, + "DeleteOptionGroup": null, + "DescribeDBEngineVersions": null, + "DescribeDBInstances": null, + "DescribeDBParameterGroups": null, + "DescribeDBParameters": null, + "DescribeDBSecurityGroups": null, + "DescribeDBSnapshots": null, + "DescribeDBSubnetGroups": null, + "DescribeEngineDefaultParameters": null, + "DescribeEventCategories": null, + "DescribeEventSubscriptions": null, + "DescribeEvents": null, + "DescribeOptionGroupOptions": null, + "DescribeOptionGroups": null, + "DescribeOrderableDBInstanceOptions": null, + "DescribeReservedDBInstances": null, + "DescribeReservedDBInstancesOfferings": null, + "ListTagsForResource": null, + "ModifyDBInstance": null, + "ModifyDBParameterGroup": null, + "ModifyDBSubnetGroup": null, + "ModifyEventSubscription": null, + "ModifyOptionGroup": null, + "PromoteReadReplica": null, + "PurchaseReservedDBInstancesOffering": null, + "RebootDBInstance": null, + "RemoveSourceIdentifierFromSubscription": null, + "RemoveTagsFromResource": null, + "ResetDBParameterGroup": null, + "RestoreDBInstanceFromDBSnapshot": null, + "RestoreDBInstanceToPointInTime": null, + "RevokeDBSecurityGroupIngress": null }, "shapes": { "AddSourceIdentifierToSubscriptionMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -65,33 +65,33 @@ } }, "AddTagsToResourceMessage": { - "base": "

", + "base": null, "refs": { } }, "ApplyMethod": { "base": null, "refs": { - "Parameter$ApplyMethod": "

Indicates when to apply parameter updates.

" + "Parameter$ApplyMethod": null } }, "AuthorizationAlreadyExistsFault": { - "base": "

The specified CIDRIP or EC2 security group is already authorized for the specified DB security group.

", + "base": "

The specified CIDRIP or EC2 security group is already authorized for the specified DB security group.

", "refs": { } }, "AuthorizationNotFoundFault": { - "base": "

Specified CIDRIP or EC2 security group is not authorized for the specified DB security group.

RDS may not also be authorized via IAM to perform necessary actions on your behalf.

", + "base": "

Specified CIDRIP or EC2 security group is not authorized for the specified DB security group.

RDS may not also be authorized via IAM to perform necessary actions on your behalf.

", "refs": { } }, "AuthorizationQuotaExceededFault": { - "base": "

DB security group authorization quota has been reached.

", + "base": "

DB security group authorization quota has been reached.

", "refs": { } }, "AuthorizeDBSecurityGroupIngressMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -101,7 +101,7 @@ } }, "AvailabilityZone": { - "base": "

Contains Availability Zone information.

This data type is used as an element in the following data type:

", + "base": null, "refs": { "AvailabilityZoneList$member": null, "Subnet$SubnetAvailabilityZone": null @@ -110,69 +110,69 @@ "AvailabilityZoneList": { "base": null, "refs": { - "OrderableDBInstanceOption$AvailabilityZones": "

A list of availability zones for the orderable DB Instance.

" + "OrderableDBInstanceOption$AvailabilityZones": null } }, "Boolean": { "base": null, "refs": { - "AvailabilityZone$ProvisionedIopsCapable": "

True indicates the availability zone is capable of provisioned IOPs.

", - "DBInstance$MultiAZ": "

Specifies if the DB Instance is a Multi-AZ deployment.

", - "DBInstance$AutoMinorVersionUpgrade": "

Indicates that minor version patches are applied automatically.

", + "AvailabilityZone$ProvisionedIopsCapable": null, + "DBInstance$MultiAZ": null, + "DBInstance$AutoMinorVersionUpgrade": null, "DBInstance$PubliclyAccessible": null, - "DeleteDBInstanceMessage$SkipFinalSnapshot": "

Determines whether a final DB Snapshot is created before the DB Instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB Snapshot is created before the DB Instance is deleted.

The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot is false.

Default: false

", - "DescribeDBEngineVersionsMessage$DefaultOnly": "

Indicates that only the default version of the specified engine or engine and major version combination is returned.

", - "EventSubscription$Enabled": "

A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.

", - "ModifyDBInstanceMessage$ApplyImmediately": "

Specifies whether or not the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow setting for the DB Instance.

If this parameter is passed as false, changes to the DB Instance are applied on the next call to RebootDBInstance, the next maintenance reboot, or the next failure reboot, whichever occurs first. See each parameter to determine when a change is applied.

Default: false

", - "ModifyDBInstanceMessage$AllowMajorVersionUpgrade": "

Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

Constraints: This parameter must be set to true when specifying a value for the EngineVersion parameter that is a different major version than the DB Instance's current version.

", - "ModifyOptionGroupMessage$ApplyImmediately": "

Indicates whether the changes should be applied immediately, or during the next maintenance window for each instance associated with the Option Group.

", - "OptionGroup$AllowsVpcAndNonVpcInstanceMemberships": "

Indicates whether this option group can be applied to both VPC and non-VPC instances. The value 'true' indicates the option group can be applied to both VPC and non-VPC instances.

", - "OptionGroupOption$PortRequired": "

Specifies whether the option requires a port.

", - "OrderableDBInstanceOption$MultiAZCapable": "

Indicates whether this orderable DB Instance is multi-AZ capable.

", - "OrderableDBInstanceOption$ReadReplicaCapable": "

Indicates whether this orderable DB Instance can have a read replica.

", - "OrderableDBInstanceOption$Vpc": "

Indicates whether this is a VPC orderable DB Instance.

", - "Parameter$IsModifiable": "

Indicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

", - "ReservedDBInstance$MultiAZ": "

Indicates if the reservation applies to Multi-AZ deployments.

", - "ReservedDBInstancesOffering$MultiAZ": "

Indicates if the offering applies to Multi-AZ deployments.

", - "ResetDBParameterGroupMessage$ResetAllParameters": "

Specifies whether (true) or not (false) to reset all parameters in the DB Parameter Group to default values.

Default: true

", - "RestoreDBInstanceToPointInTimeMessage$UseLatestRestorableTime": "

Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.

Default: false

Constraints: Cannot be specified if RestoreTime parameter is provided.

" + "DeleteDBInstanceMessage$SkipFinalSnapshot": null, + "DescribeDBEngineVersionsMessage$DefaultOnly": null, + "EventSubscription$Enabled": null, + "ModifyDBInstanceMessage$ApplyImmediately": null, + "ModifyDBInstanceMessage$AllowMajorVersionUpgrade": null, + "ModifyOptionGroupMessage$ApplyImmediately": null, + "OptionGroup$AllowsVpcAndNonVpcInstanceMemberships": null, + "OptionGroupOption$PortRequired": null, + "OrderableDBInstanceOption$MultiAZCapable": null, + "OrderableDBInstanceOption$ReadReplicaCapable": null, + "OrderableDBInstanceOption$Vpc": null, + "Parameter$IsModifiable": null, + "ReservedDBInstance$MultiAZ": null, + "ReservedDBInstancesOffering$MultiAZ": null, + "ResetDBParameterGroupMessage$ResetAllParameters": null, + "RestoreDBInstanceToPointInTimeMessage$UseLatestRestorableTime": null } }, "BooleanOptional": { "base": null, "refs": { - "CreateDBInstanceMessage$MultiAZ": "

Specifies if the DB Instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the MultiAZ parameter is set to true.

", - "CreateDBInstanceMessage$AutoMinorVersionUpgrade": "

Indicates that minor engine upgrades will be applied automatically to the DB Instance during the maintenance window.

Default: true

", + "CreateDBInstanceMessage$MultiAZ": null, + "CreateDBInstanceMessage$AutoMinorVersionUpgrade": null, "CreateDBInstanceMessage$PubliclyAccessible": null, - "CreateDBInstanceReadReplicaMessage$AutoMinorVersionUpgrade": "

Indicates that minor engine upgrades will be applied automatically to the Read Replica during the maintenance window.

Default: Inherits from the source DB Instance

", + "CreateDBInstanceReadReplicaMessage$AutoMinorVersionUpgrade": null, "CreateDBInstanceReadReplicaMessage$PubliclyAccessible": null, - "CreateEventSubscriptionMessage$Enabled": "

A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.

", - "DescribeDBEngineVersionsMessage$ListSupportedCharacterSets": "

If this parameter is specified, and if the requested engine supports the CharacterSetName parameter for CreateDBInstance, the response includes a list of supported character sets for each engine version.

", - "DescribeOrderableDBInstanceOptionsMessage$Vpc": "

The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.

", - "DescribeReservedDBInstancesMessage$MultiAZ": "

The Multi-AZ filter value. Specify this parameter to show only those reservations matching the specified Multi-AZ parameter.

", - "DescribeReservedDBInstancesOfferingsMessage$MultiAZ": "

The Multi-AZ filter value. Specify this parameter to show only the available offerings matching the specified Multi-AZ parameter.

", - "ModifyDBInstanceMessage$MultiAZ": "

Specifies if the DB Instance is a Multi-AZ deployment. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

Constraints: Cannot be specified if the DB Instance is a read replica.

", - "ModifyDBInstanceMessage$AutoMinorVersionUpgrade": "

Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window. Changing this parameter does not result in an outage except in the following case and the change is asynchronously applied as soon as possible. An outage will result if this parameter is set to true during the maintenance window, and a newer minor version is available, and RDS has enabled auto patching for that engine version.

", - "ModifyEventSubscriptionMessage$Enabled": "

A Boolean value; set to true to activate the subscription.

", - "PendingModifiedValues$MultiAZ": "

Indicates that the Single-AZ DB Instance is to change to a Multi-AZ deployment.

", - "RebootDBInstanceMessage$ForceFailover": "

When true, the reboot will be conducted through a MultiAZ failover.

Constraint: You cannot specify true if the instance is not configured for MultiAZ.

", - "RestoreDBInstanceFromDBSnapshotMessage$MultiAZ": "

Specifies if the DB Instance is a Multi-AZ deployment.

Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

", + "CreateEventSubscriptionMessage$Enabled": null, + "DescribeDBEngineVersionsMessage$ListSupportedCharacterSets": null, + "DescribeOrderableDBInstanceOptionsMessage$Vpc": null, + "DescribeReservedDBInstancesMessage$MultiAZ": null, + "DescribeReservedDBInstancesOfferingsMessage$MultiAZ": null, + "ModifyDBInstanceMessage$MultiAZ": null, + "ModifyDBInstanceMessage$AutoMinorVersionUpgrade": null, + "ModifyEventSubscriptionMessage$Enabled": null, + "PendingModifiedValues$MultiAZ": null, + "RebootDBInstanceMessage$ForceFailover": null, + "RestoreDBInstanceFromDBSnapshotMessage$MultiAZ": null, "RestoreDBInstanceFromDBSnapshotMessage$PubliclyAccessible": null, - "RestoreDBInstanceFromDBSnapshotMessage$AutoMinorVersionUpgrade": "

Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.

", - "RestoreDBInstanceToPointInTimeMessage$MultiAZ": "

Specifies if the DB Instance is a Multi-AZ deployment.

Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

", + "RestoreDBInstanceFromDBSnapshotMessage$AutoMinorVersionUpgrade": null, + "RestoreDBInstanceToPointInTimeMessage$MultiAZ": null, "RestoreDBInstanceToPointInTimeMessage$PubliclyAccessible": null, - "RestoreDBInstanceToPointInTimeMessage$AutoMinorVersionUpgrade": "

Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.

" + "RestoreDBInstanceToPointInTimeMessage$AutoMinorVersionUpgrade": null } }, "CharacterSet": { - "base": "

This data type is used as a response element in the action DescribeDBEngineVersions.

", + "base": null, "refs": { - "DBEngineVersion$DefaultCharacterSet": "

The default character set for new instances of this engine version, if the CharacterSetName parameter of the CreateDBInstance API is not specified.

", + "DBEngineVersion$DefaultCharacterSet": null, "SupportedCharacterSetsList$member": null } }, "CopyDBSnapshotMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -182,7 +182,7 @@ } }, "CreateDBInstanceMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -202,7 +202,7 @@ } }, "CreateDBParameterGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -212,7 +212,7 @@ } }, "CreateDBSecurityGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -222,7 +222,7 @@ } }, "CreateDBSnapshotMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -232,7 +232,7 @@ } }, "CreateDBSubnetGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -242,7 +242,7 @@ } }, "CreateEventSubscriptionMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -252,7 +252,7 @@ } }, "CreateOptionGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -262,7 +262,7 @@ } }, "DBEngineVersion": { - "base": "

This data type is used as a response element in the action DescribeDBEngineVersions.

", + "base": null, "refs": { "DBEngineVersionList$member": null } @@ -270,16 +270,16 @@ "DBEngineVersionList": { "base": null, "refs": { - "DBEngineVersionMessage$DBEngineVersions": "

A list of DBEngineVersion elements.

" + "DBEngineVersionMessage$DBEngineVersions": null } }, "DBEngineVersionMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBEngineVersions action.

", + "base": null, "refs": { } }, "DBInstance": { - "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBInstances action.

", + "base": null, "refs": { "CreateDBInstanceReadReplicaResult$DBInstance": null, "CreateDBInstanceResult$DBInstance": null, @@ -293,18 +293,18 @@ } }, "DBInstanceAlreadyExistsFault": { - "base": "

User already has a DB instance with the given identifier.

", + "base": "

User already has a DB instance with the given identifier.

", "refs": { } }, "DBInstanceList": { "base": null, "refs": { - "DBInstanceMessage$DBInstances": "

A list of DBInstance instances.

" + "DBInstanceMessage$DBInstances": null } }, "DBInstanceMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBInstances action.

", + "base": null, "refs": { } }, @@ -314,30 +314,30 @@ } }, "DBParameterGroup": { - "base": "

Contains the result of a successful invocation of the CreateDBParameterGroup action.

This data type is used as a request parameter in the DeleteDBParameterGroup action, and as a response element in the DescribeDBParameterGroups action.

", + "base": null, "refs": { "CreateDBParameterGroupResult$DBParameterGroup": null, "DBParameterGroupList$member": null } }, "DBParameterGroupAlreadyExistsFault": { - "base": "

A DB parameter group with the same name exists.

", + "base": "

A DB parameter group with the same name exists.

", "refs": { } }, "DBParameterGroupDetails": { - "base": "

Contains the result of a successful invocation of the DescribeDBParameters action.

", + "base": null, "refs": { } }, "DBParameterGroupList": { "base": null, "refs": { - "DBParameterGroupsMessage$DBParameterGroups": "

A list of DBParameterGroup instances.

" + "DBParameterGroupsMessage$DBParameterGroups": null } }, "DBParameterGroupNameMessage": { - "base": "

Contains the result of a successful invocation of the ModifyDBParameterGroup or ResetDBParameterGroup action.

", + "base": null, "refs": { } }, @@ -347,12 +347,12 @@ } }, "DBParameterGroupQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of DB parameter groups.

", + "base": "

Request would result in user exceeding the allowed number of DB parameter groups.

", "refs": { } }, "DBParameterGroupStatus": { - "base": "

The status of the DB Parameter Group.

This data type is used as a response element in the following actions:

", + "base": null, "refs": { "DBParameterGroupStatusList$member": null } @@ -360,16 +360,16 @@ "DBParameterGroupStatusList": { "base": null, "refs": { - "DBInstance$DBParameterGroups": "

Provides the list of DB Parameter Groups applied to this DB Instance.

" + "DBInstance$DBParameterGroups": null } }, "DBParameterGroupsMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBParameterGroups action.

", + "base": null, "refs": { } }, "DBSecurityGroup": { - "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBSecurityGroups action.

", + "base": null, "refs": { "AuthorizeDBSecurityGroupIngressResult$DBSecurityGroup": null, "CreateDBSecurityGroupResult$DBSecurityGroup": null, @@ -383,7 +383,7 @@ } }, "DBSecurityGroupMembership": { - "base": "

This data type is used as a response element in the following actions:

", + "base": null, "refs": { "DBSecurityGroupMembershipList$member": null } @@ -391,21 +391,21 @@ "DBSecurityGroupMembershipList": { "base": null, "refs": { - "DBInstance$DBSecurityGroups": "

Provides List of DB Security Group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.

", - "Option$DBSecurityGroupMemberships": "

If the Option requires access to a port, then this DB Security Group allows access to the port.

" + "DBInstance$DBSecurityGroups": null, + "Option$DBSecurityGroupMemberships": null } }, "DBSecurityGroupMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBSecurityGroups action.

", + "base": null, "refs": { } }, "DBSecurityGroupNameList": { "base": null, "refs": { - "CreateDBInstanceMessage$DBSecurityGroups": "

A list of DB Security Groups to associate with this DB Instance.

Default: The default DB Security Group for the database engine.

", - "ModifyDBInstanceMessage$DBSecurityGroups": "

A list of DB Security Groups to authorize on this DB Instance. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "OptionConfiguration$DBSecurityGroupMemberships": "

A list of DBSecurityGroupMemebrship name strings used for this option.

" + "CreateDBInstanceMessage$DBSecurityGroups": null, + "ModifyDBInstanceMessage$DBSecurityGroups": null, + "OptionConfiguration$DBSecurityGroupMemberships": null } }, "DBSecurityGroupNotFoundFault": { @@ -414,23 +414,23 @@ } }, "DBSecurityGroupNotSupportedFault": { - "base": "

A DB security group is not allowed for this action.

", + "base": "

A DB security group is not allowed for this action.

", "refs": { } }, "DBSecurityGroupQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of DB security groups.

", + "base": "

Request would result in user exceeding the allowed number of DB security groups.

", "refs": { } }, "DBSecurityGroups": { "base": null, "refs": { - "DBSecurityGroupMessage$DBSecurityGroups": "

A list of DBSecurityGroup instances.

" + "DBSecurityGroupMessage$DBSecurityGroups": null } }, "DBSnapshot": { - "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBSnapshots action.

", + "base": null, "refs": { "CopyDBSnapshotResult$DBSnapshot": null, "CreateDBSnapshotResult$DBSnapshot": null, @@ -446,11 +446,11 @@ "DBSnapshotList": { "base": null, "refs": { - "DBSnapshotMessage$DBSnapshots": "

A list of DBSnapshot instances.

" + "DBSnapshotMessage$DBSnapshots": null } }, "DBSnapshotMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBSnapshots action.

", + "base": null, "refs": { } }, @@ -460,10 +460,10 @@ } }, "DBSubnetGroup": { - "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBSubnetGroups action.

", + "base": null, "refs": { "CreateDBSubnetGroupResult$DBSubnetGroup": null, - "DBInstance$DBSubnetGroup": "

Provides the inforamtion of the subnet group associated with the DB instance, including the name, descrption and subnets in the subnet group.

", + "DBInstance$DBSubnetGroup": null, "DBSubnetGroups$member": null, "ModifyDBSubnetGroupResult$DBSubnetGroup": null } @@ -474,12 +474,12 @@ } }, "DBSubnetGroupDoesNotCoverEnoughAZs": { - "base": "

Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one Availability Zone.

", + "base": "

Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one Availability Zone.

", "refs": { } }, "DBSubnetGroupMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBSubnetGroups action.

", + "base": null, "refs": { } }, @@ -489,28 +489,28 @@ } }, "DBSubnetGroupQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of DB subnet groups.

", + "base": "

Request would result in user exceeding the allowed number of DB subnet groups.

", "refs": { } }, "DBSubnetGroups": { "base": null, "refs": { - "DBSubnetGroupMessage$DBSubnetGroups": "

A list of DBSubnetGroup instances.

" + "DBSubnetGroupMessage$DBSubnetGroups": null } }, "DBSubnetQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of subnets in a DB subnet groups.

", + "base": "

Request would result in user exceeding the allowed number of subnets in a DB subnet groups.

", "refs": { } }, "DBUpgradeDependencyFailureFault": { - "base": "

The DB upgrade failed because a resource the DB depends on could not be modified.

", + "base": "

The DB upgrade failed because a resource the DB depends on could not be modified.

", "refs": { } }, "DeleteDBInstanceMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -520,17 +520,17 @@ } }, "DeleteDBParameterGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "DeleteDBSecurityGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "DeleteDBSnapshotMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -540,12 +540,12 @@ } }, "DeleteDBSubnetGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "DeleteEventSubscriptionMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -555,7 +555,7 @@ } }, "DeleteOptionGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -565,12 +565,12 @@ } }, "DescribeDBInstancesMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeDBParameterGroupsMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -580,22 +580,22 @@ } }, "DescribeDBSecurityGroupsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeDBSnapshotsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeDBSubnetGroupsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeEngineDefaultParametersMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -605,57 +605,57 @@ } }, "DescribeEventCategoriesMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeEventSubscriptionsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeEventsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeOptionGroupOptionsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeOptionGroupsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeOrderableDBInstanceOptionsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeReservedDBInstancesMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeReservedDBInstancesOfferingsMessage": { - "base": "

", + "base": null, "refs": { } }, "Double": { "base": null, "refs": { - "RecurringCharge$RecurringChargeAmount": "

The amount of the recurring charge.

", - "ReservedDBInstance$FixedPrice": "

The fixed price charged for this reserved DB Instance.

", - "ReservedDBInstance$UsagePrice": "

The hourly price charged for this reserved DB Instance.

", - "ReservedDBInstancesOffering$FixedPrice": "

The fixed price charged for this offering.

", - "ReservedDBInstancesOffering$UsagePrice": "

The hourly price charged for this offering.

" + "RecurringCharge$RecurringChargeAmount": null, + "ReservedDBInstance$FixedPrice": null, + "ReservedDBInstance$UsagePrice": null, + "ReservedDBInstancesOffering$FixedPrice": null, + "ReservedDBInstancesOffering$UsagePrice": null } }, "EC2SecurityGroup": { - "base": "

This data type is used as a response element in the following actions:

", + "base": null, "refs": { "EC2SecurityGroupList$member": null } @@ -663,23 +663,23 @@ "EC2SecurityGroupList": { "base": null, "refs": { - "DBSecurityGroup$EC2SecurityGroups": "

Contains a list of EC2SecurityGroup elements.

" + "DBSecurityGroup$EC2SecurityGroups": null } }, "Endpoint": { - "base": "

This data type is used as a response element in the following actions:

", + "base": null, "refs": { - "DBInstance$Endpoint": "

Specifies the connection endpoint.

" + "DBInstance$Endpoint": null } }, "EngineDefaults": { - "base": "

Contains the result of a successful invocation of the DescribeEngineDefaultParameters action.

", + "base": null, "refs": { "DescribeEngineDefaultParametersResult$EngineDefaults": null } }, "Event": { - "base": "

This data type is used as a response element in the DescribeEvents action.

", + "base": null, "refs": { "EventList$member": null } @@ -687,16 +687,16 @@ "EventCategoriesList": { "base": null, "refs": { - "CreateEventSubscriptionMessage$EventCategories": "

A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

", - "DescribeEventsMessage$EventCategories": "

A list of event categories that trigger notifications for a event notification subscription.

", - "Event$EventCategories": "

Specifies the category for the event.

", - "EventCategoriesMap$EventCategories": "

The event categories for the specified source type

", - "EventSubscription$EventCategoriesList": "

A list of event categories for the RDS event notification subscription.

", - "ModifyEventSubscriptionMessage$EventCategories": "

A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

" + "CreateEventSubscriptionMessage$EventCategories": null, + "DescribeEventsMessage$EventCategories": null, + "Event$EventCategories": null, + "EventCategoriesMap$EventCategories": null, + "EventSubscription$EventCategoriesList": null, + "ModifyEventSubscriptionMessage$EventCategories": null } }, "EventCategoriesMap": { - "base": "

Contains the results of a successful invocation of the DescribeEventCategories action.

", + "base": null, "refs": { "EventCategoriesMapList$member": null } @@ -704,22 +704,22 @@ "EventCategoriesMapList": { "base": null, "refs": { - "EventCategoriesMessage$EventCategoriesMapList": "

A list of EventCategoriesMap data types.

" + "EventCategoriesMessage$EventCategoriesMapList": null } }, "EventCategoriesMessage": { - "base": "

Data returned from the DescribeEventCategories action.

", + "base": null, "refs": { } }, "EventList": { "base": null, "refs": { - "EventsMessage$Events": "

A list of Event instances.

" + "EventsMessage$Events": null } }, "EventSubscription": { - "base": "

Contains the results of a successful invocation of the DescribeEventSubscriptions action.

", + "base": null, "refs": { "AddSourceIdentifierToSubscriptionResult$EventSubscription": null, "CreateEventSubscriptionResult$EventSubscription": null, @@ -737,21 +737,21 @@ "EventSubscriptionsList": { "base": null, "refs": { - "EventSubscriptionsMessage$EventSubscriptionsList": "

A list of EventSubscriptions data types.

" + "EventSubscriptionsMessage$EventSubscriptionsList": null } }, "EventSubscriptionsMessage": { - "base": "

Data returned by the DescribeEventSubscriptions action.

", + "base": null, "refs": { } }, "EventsMessage": { - "base": "

Contains the result of a successful invocation of the DescribeEvents action.

", + "base": null, "refs": { } }, "IPRange": { - "base": "

This data type is used as a response element in the DescribeDBSecurityGroups action.

", + "base": null, "refs": { "IPRangeList$member": null } @@ -759,75 +759,75 @@ "IPRangeList": { "base": null, "refs": { - "DBSecurityGroup$IPRanges": "

Contains a list of IPRange elements.

" + "DBSecurityGroup$IPRanges": null } }, "InstanceQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of DB instances.

", + "base": "

Request would result in user exceeding the allowed number of DB instances.

", "refs": { } }, "InsufficientDBInstanceCapacityFault": { - "base": "

Specified DB instance class is not available in the specified Availability Zone.

", + "base": "

Specified DB instance class is not available in the specified Availability Zone.

", "refs": { } }, "Integer": { "base": null, "refs": { - "DBInstance$AllocatedStorage": "

Specifies the allocated storage size specified in gigabytes.

", - "DBInstance$BackupRetentionPeriod": "

Specifies the number of days for which automatic DB Snapshots are retained.

", - "DBSnapshot$AllocatedStorage": "

Specifies the allocated storage size in gigabytes (GB).

", - "DBSnapshot$Port": "

Specifies the port that the database engine was listening on at the time of the snapshot.

", - "Endpoint$Port": "

Specifies the port that the database engine is listening on.

", - "ReservedDBInstance$Duration": "

The duration of the reservation in seconds.

", - "ReservedDBInstance$DBInstanceCount": "

The number of reserved DB Instances.

", - "ReservedDBInstancesOffering$Duration": "

The duration of the offering in seconds.

" + "DBInstance$AllocatedStorage": null, + "DBInstance$BackupRetentionPeriod": null, + "DBSnapshot$AllocatedStorage": null, + "DBSnapshot$Port": null, + "Endpoint$Port": null, + "ReservedDBInstance$Duration": null, + "ReservedDBInstance$DBInstanceCount": null, + "ReservedDBInstancesOffering$Duration": null } }, "IntegerOptional": { "base": null, "refs": { - "CreateDBInstanceMessage$AllocatedStorage": "

The amount of storage (in gigabytes) to be initially allocated for the database instance.

MySQL

Constraints: Must be an integer from 5 to 1024.

Type: Integer

Oracle

Constraints: Must be an integer from 10 to 1024.

SQL Server

Constraints: Must be an integer from 200 to 1024 (Standard Edition and Enterprise Edition) or from 30 to 1024 (Express Edition and Web Edition)

", - "CreateDBInstanceMessage$BackupRetentionPeriod": "

The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

Default: 1

Constraints:

  • Must be a value from 0 to 8
  • Cannot be set to 0 if the DB Instance is a master instance with read replicas
", - "CreateDBInstanceMessage$Port": "

The port number on which the database accepts connections.

MySQL

Default: 3306

Valid Values: 1150-65535

Type: Integer

Oracle

Default: 1521

Valid Values: 1150-65535

SQL Server

Default: 1433

Valid Values: 1150-65535 except for 1434 and 3389.

", - "CreateDBInstanceMessage$Iops": "

The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB Instance.

Constraints: Must be an integer greater than 1000.

", - "CreateDBInstanceReadReplicaMessage$Port": "

The port number that the DB Instance uses for connections.

Default: Inherits from the source DB Instance

Valid Values: 1150-65535

", - "CreateDBInstanceReadReplicaMessage$Iops": "

The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB Instance.

", - "DBInstance$Iops": "

Specifies the Provisioned IOPS (I/O operations per second) value.

", - "DBSnapshot$Iops": "

Specifies the Provisioned IOPS (I/O operations per second) value of the DB Instance at the time of the snapshot.

", - "DescribeDBEngineVersionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBInstancesMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBParameterGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBParametersMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBSecurityGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBSnapshotsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBSubnetGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeEngineDefaultParametersMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeEventSubscriptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeEventsMessage$Duration": "

The number of minutes to retrieve events for.

Default: 60

", - "DescribeEventsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeOptionGroupOptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeOptionGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeOrderableDBInstanceOptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeReservedDBInstancesMessage$MaxRecords": "

The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeReservedDBInstancesOfferingsMessage$MaxRecords": "

The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "ModifyDBInstanceMessage$AllocatedStorage": "

The new storage capacity of the RDS instance. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

MySQL

Default: Uses existing setting

Valid Values: 5-1024

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

Type: Integer

Oracle

Default: Uses existing setting

Valid Values: 10-1024

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

SQL Server

Cannot be modified.

", - "ModifyDBInstanceMessage$BackupRetentionPeriod": "

The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

Changing this parameter can result in an outage if you change from 0 to a non-zero value or from a non-zero value to 0. These changes are applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request. If you change the parameter from one non-zero value to another non-zero value, the change is asynchronously applied as soon as possible.

Default: Uses existing setting

Constraints:

  • Must be a value from 0 to 8
  • Cannot be set to 0 if the DB Instance is a master instance with read replicas or if the DB Instance is a read replica
", - "ModifyDBInstanceMessage$Iops": "

The new Provisioned IOPS (I/O operations per second) value for the RDS instance. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

Default: Uses existing setting

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

Type: Integer

", - "Option$Port": "

If required, the port configured for this option to use.

", - "OptionConfiguration$Port": "

The optional port for the option.

", - "OptionGroupOption$DefaultPort": "

If the option requires a port, specifies the default port for the option.

", - "PendingModifiedValues$AllocatedStorage": "

Contains the new AllocatedStorage size for the DB Instance that will be applied or is in progress.

", - "PendingModifiedValues$Port": "

Specifies the pending port for the DB Instance.

", - "PendingModifiedValues$BackupRetentionPeriod": "

Specifies the pending number of days for which automated backups are retained.

", - "PendingModifiedValues$Iops": "

Specifies the new Provisioned IOPS value for the DB Instance that will be applied or is being applied.

", - "PromoteReadReplicaMessage$BackupRetentionPeriod": "

The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

Default: 1

Constraints:

  • Must be a value from 0 to 8
", - "PurchaseReservedDBInstancesOfferingMessage$DBInstanceCount": "

The number of instances to reserve.

Default: 1

", - "RestoreDBInstanceFromDBSnapshotMessage$Port": "

The port number on which the database accepts connections.

Default: The same port as the original DB Instance

Constraints: Value must be 1150-65535

", - "RestoreDBInstanceFromDBSnapshotMessage$Iops": "

The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB Instance.

Constraints: Must be an integer greater than 1000.

", - "RestoreDBInstanceToPointInTimeMessage$Port": "

The port number on which the database accepts connections.

Constraints: Value must be 1150-65535

Default: The same port as the original DB Instance.

", - "RestoreDBInstanceToPointInTimeMessage$Iops": "

The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB Instance.

Constraints: Must be an integer greater than 1000.

" + "CreateDBInstanceMessage$AllocatedStorage": null, + "CreateDBInstanceMessage$BackupRetentionPeriod": null, + "CreateDBInstanceMessage$Port": null, + "CreateDBInstanceMessage$Iops": null, + "CreateDBInstanceReadReplicaMessage$Port": null, + "CreateDBInstanceReadReplicaMessage$Iops": null, + "DBInstance$Iops": null, + "DBSnapshot$Iops": null, + "DescribeDBEngineVersionsMessage$MaxRecords": null, + "DescribeDBInstancesMessage$MaxRecords": null, + "DescribeDBParameterGroupsMessage$MaxRecords": null, + "DescribeDBParametersMessage$MaxRecords": null, + "DescribeDBSecurityGroupsMessage$MaxRecords": null, + "DescribeDBSnapshotsMessage$MaxRecords": null, + "DescribeDBSubnetGroupsMessage$MaxRecords": null, + "DescribeEngineDefaultParametersMessage$MaxRecords": null, + "DescribeEventSubscriptionsMessage$MaxRecords": null, + "DescribeEventsMessage$Duration": null, + "DescribeEventsMessage$MaxRecords": null, + "DescribeOptionGroupOptionsMessage$MaxRecords": null, + "DescribeOptionGroupsMessage$MaxRecords": null, + "DescribeOrderableDBInstanceOptionsMessage$MaxRecords": null, + "DescribeReservedDBInstancesMessage$MaxRecords": null, + "DescribeReservedDBInstancesOfferingsMessage$MaxRecords": null, + "ModifyDBInstanceMessage$AllocatedStorage": null, + "ModifyDBInstanceMessage$BackupRetentionPeriod": null, + "ModifyDBInstanceMessage$Iops": null, + "Option$Port": null, + "OptionConfiguration$Port": null, + "OptionGroupOption$DefaultPort": null, + "PendingModifiedValues$AllocatedStorage": null, + "PendingModifiedValues$Port": null, + "PendingModifiedValues$BackupRetentionPeriod": null, + "PendingModifiedValues$Iops": null, + "PromoteReadReplicaMessage$BackupRetentionPeriod": null, + "PurchaseReservedDBInstancesOfferingMessage$DBInstanceCount": null, + "RestoreDBInstanceFromDBSnapshotMessage$Port": null, + "RestoreDBInstanceFromDBSnapshotMessage$Iops": null, + "RestoreDBInstanceToPointInTimeMessage$Port": null, + "RestoreDBInstanceToPointInTimeMessage$Iops": null } }, "InvalidDBInstanceStateFault": { @@ -836,22 +836,22 @@ } }, "InvalidDBParameterGroupStateFault": { - "base": "

The DB parameter group cannot be deleted because it is in use.

", + "base": "

The DB parameter group cannot be deleted because it is in use.

", "refs": { } }, "InvalidDBSecurityGroupStateFault": { - "base": "

The state of the DB security group does not allow deletion.

", + "base": "

The state of the DB security group does not allow deletion.

", "refs": { } }, "InvalidDBSnapshotStateFault": { - "base": "

The state of the DB snapshot does not allow deletion.

", + "base": "

The state of the DB snapshot does not allow deletion.

", "refs": { } }, "InvalidDBSubnetGroupStateFault": { - "base": "

The DB subnet group cannot be deleted because it is in use.

", + "base": "

The DB subnet group cannot be deleted because it is in use.

", "refs": { } }, @@ -871,33 +871,33 @@ } }, "InvalidRestoreFault": { - "base": "

Cannot restore from vpc backup to non-vpc DB instance.

", + "base": "

Cannot restore from vpc backup to non-vpc DB instance.

", "refs": { } }, "InvalidSubnet": { - "base": "

The requested subnet is invalid, or multiple subnets were requested that are not all in a common VPC.

", + "base": "

The requested subnet is invalid, or multiple subnets were requested that are not all in a common VPC.

", "refs": { } }, "InvalidVPCNetworkStateFault": { - "base": "

DB subnet group does not cover all Availability Zones after it is created because users' change.

", + "base": "

DB subnet group does not cover all Availability Zones after it is created because users' change.

", "refs": { } }, "KeyList": { "base": null, "refs": { - "RemoveTagsFromResourceMessage$TagKeys": "

The tag key (name) of the tag to be removed.

" + "RemoveTagsFromResourceMessage$TagKeys": null } }, "ListTagsForResourceMessage": { - "base": "

", + "base": null, "refs": { } }, "ModifyDBInstanceMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -907,12 +907,12 @@ } }, "ModifyDBParameterGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "ModifyDBSubnetGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -922,7 +922,7 @@ } }, "ModifyEventSubscriptionMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -932,7 +932,7 @@ } }, "ModifyOptionGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -942,13 +942,13 @@ } }, "Option": { - "base": "

Option details.

", + "base": null, "refs": { "OptionsList$member": null } }, "OptionConfiguration": { - "base": "

A list of all available options

", + "base": null, "refs": { "OptionConfigurationList$member": null } @@ -956,11 +956,11 @@ "OptionConfigurationList": { "base": null, "refs": { - "ModifyOptionGroupMessage$OptionsToInclude": "

Options in this list are added to the Option Group or, if already present, the specified configuration is used to update the existing configuration.

" + "ModifyOptionGroupMessage$OptionsToInclude": null } }, "OptionGroup": { - "base": "

", + "base": null, "refs": { "CreateOptionGroupResult$OptionGroup": null, "ModifyOptionGroupResult$OptionGroup": null, @@ -968,74 +968,74 @@ } }, "OptionGroupAlreadyExistsFault": { - "base": "

The option group you are trying to create already exists.

", + "base": "

The option group you are trying to create already exists.

", "refs": { } }, "OptionGroupMembership": { "base": null, "refs": { - "DBInstance$OptionGroupMembership": "

Specifies the name and status of the option group that this instance belongs to.

" + "DBInstance$OptionGroupMembership": null } }, "OptionGroupNotFoundFault": { - "base": "

The specified option group could not be found.

", + "base": "

The specified option group could not be found.

", "refs": { } }, "OptionGroupOption": { - "base": "

Available option.

", + "base": null, "refs": { "OptionGroupOptionsList$member": null } }, "OptionGroupOptionsList": { - "base": "

List of available options.

", + "base": null, "refs": { "OptionGroupOptionsMessage$OptionGroupOptions": null } }, "OptionGroupOptionsMessage": { - "base": "

", + "base": null, "refs": { } }, "OptionGroupQuotaExceededFault": { - "base": "

The quota of 20 option groups was exceeded for this AWS account.

", + "base": "

The quota of 20 option groups was exceeded for this AWS account.

", "refs": { } }, "OptionGroups": { - "base": "

List of option groups.

", + "base": null, "refs": { } }, "OptionGroupsList": { "base": null, "refs": { - "OptionGroups$OptionGroupsList": "

List of option groups.

" + "OptionGroups$OptionGroupsList": null } }, "OptionNamesList": { "base": null, "refs": { - "ModifyOptionGroupMessage$OptionsToRemove": "

Options in this list are removed from the Option Group.

" + "ModifyOptionGroupMessage$OptionsToRemove": null } }, "OptionsDependedOn": { "base": null, "refs": { - "OptionGroupOption$OptionsDependedOn": "

List of all options that are prerequisites for this option.

" + "OptionGroupOption$OptionsDependedOn": null } }, "OptionsList": { "base": null, "refs": { - "OptionGroup$Options": "

Indicates what options are available in the option group.

" + "OptionGroup$Options": null } }, "OrderableDBInstanceOption": { - "base": "

Contains a list of available options for a DB Instance

This data type is used as a response element in the DescribeOrderableDBInstanceOptions action.

", + "base": null, "refs": { "OrderableDBInstanceOptionsList$member": null } @@ -1043,16 +1043,16 @@ "OrderableDBInstanceOptionsList": { "base": null, "refs": { - "OrderableDBInstanceOptionsMessage$OrderableDBInstanceOptions": "

An OrderableDBInstanceOption structure containing information about orderable options for the DB Instance.

" + "OrderableDBInstanceOptionsMessage$OrderableDBInstanceOptions": null } }, "OrderableDBInstanceOptionsMessage": { - "base": "

Contains the result of a successful invocation of the DescribeOrderableDBInstanceOptions action.

", + "base": null, "refs": { } }, "Parameter": { - "base": "

This data type is used as a request parameter in the ModifyDBParameterGroup and ResetDBParameterGroup actions.

This data type is used as a response element in the DescribeEngineDefaultParameters and DescribeDBParameters actions.

", + "base": null, "refs": { "ParametersList$member": null } @@ -1060,16 +1060,16 @@ "ParametersList": { "base": null, "refs": { - "DBParameterGroupDetails$Parameters": "

A list of Parameter instances.

", - "EngineDefaults$Parameters": "

Contains a list of engine default parameters.

", - "ModifyDBParameterGroupMessage$Parameters": "

An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters may be modified in a single request.

Valid Values (for the application method): immediate | pending-reboot

You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when DB Instance reboots. ", - "ResetDBParameterGroupMessage$Parameters": "

An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters may be modified in a single request.

MySQL

Valid Values (for Apply method): immediate | pending-reboot

You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when DB Instance reboots.

Oracle

Valid Values (for Apply method): pending-reboot

" + "DBParameterGroupDetails$Parameters": null, + "EngineDefaults$Parameters": null, + "ModifyDBParameterGroupMessage$Parameters": null, + "ResetDBParameterGroupMessage$Parameters": null } }, "PendingModifiedValues": { - "base": "

This data type is used as a response element in the ModifyDBInstance action.

", + "base": null, "refs": { - "DBInstance$PendingModifiedValues": "

Specifies that changes to the DB Instance are pending. This element is only included when changes are pending. Specific changes are identified by subelements.

" + "DBInstance$PendingModifiedValues": null } }, "PointInTimeRestoreNotEnabledFault": { @@ -1078,7 +1078,7 @@ } }, "PromoteReadReplicaMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1088,12 +1088,12 @@ } }, "ProvisionedIopsNotAvailableInAZFault": { - "base": "

Provisioned IOPS not available in the specified Availability Zone.

", + "base": "

Provisioned IOPS not available in the specified Availability Zone.

", "refs": { } }, "PurchaseReservedDBInstancesOfferingMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1105,11 +1105,11 @@ "ReadReplicaDBInstanceIdentifierList": { "base": null, "refs": { - "DBInstance$ReadReplicaDBInstanceIdentifiers": "

Contains one or more identifiers of the Read Replicas associated with this DB Instance.

" + "DBInstance$ReadReplicaDBInstanceIdentifiers": null } }, "RebootDBInstanceMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1119,7 +1119,7 @@ } }, "RecurringCharge": { - "base": "

This data type is used as a response element in the DescribeReservedDBInstances and DescribeReservedDBInstancesOfferings actions.

", + "base": null, "refs": { "RecurringChargeList$member": null } @@ -1127,12 +1127,12 @@ "RecurringChargeList": { "base": null, "refs": { - "ReservedDBInstance$RecurringCharges": "

The recurring price charged to run this reserved DB Instance.

", - "ReservedDBInstancesOffering$RecurringCharges": "

The recurring price charged to run this reserved DB Instance.

" + "ReservedDBInstance$RecurringCharges": null, + "ReservedDBInstancesOffering$RecurringCharges": null } }, "RemoveSourceIdentifierFromSubscriptionMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1142,45 +1142,45 @@ } }, "RemoveTagsFromResourceMessage": { - "base": "

", + "base": null, "refs": { } }, "ReservedDBInstance": { - "base": "

This data type is used as a response element in the DescribeReservedDBInstances and PurchaseReservedDBInstancesOffering actions.

", + "base": null, "refs": { "PurchaseReservedDBInstancesOfferingResult$ReservedDBInstance": null, "ReservedDBInstanceList$member": null } }, "ReservedDBInstanceAlreadyExistsFault": { - "base": "

User already has a reservation with the given identifier.

", + "base": "

User already has a reservation with the given identifier.

", "refs": { } }, "ReservedDBInstanceList": { "base": null, "refs": { - "ReservedDBInstanceMessage$ReservedDBInstances": "

A list of of reserved DB Instances.

" + "ReservedDBInstanceMessage$ReservedDBInstances": null } }, "ReservedDBInstanceMessage": { - "base": "

Contains the result of a successful invocation of the DescribeReservedDBInstances action.

", + "base": null, "refs": { } }, "ReservedDBInstanceNotFoundFault": { - "base": "

The specified reserved DB Instance not found.

", + "base": "

The specified reserved DB Instance not found.

", "refs": { } }, "ReservedDBInstanceQuotaExceededFault": { - "base": "

Request would exceed the user's DB Instance quota.

", + "base": "

Request would exceed the user's DB Instance quota.

", "refs": { } }, "ReservedDBInstancesOffering": { - "base": "

This data type is used as a response element in the DescribeReservedDBInstancesOfferings action.

", + "base": null, "refs": { "ReservedDBInstancesOfferingList$member": null } @@ -1188,26 +1188,26 @@ "ReservedDBInstancesOfferingList": { "base": null, "refs": { - "ReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferings": "

A list of reserved DB Instance offerings.

" + "ReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferings": null } }, "ReservedDBInstancesOfferingMessage": { - "base": "

Contains the result of a successful invocation of the DescribeReservedDBInstancesOfferings action.

", + "base": null, "refs": { } }, "ReservedDBInstancesOfferingNotFoundFault": { - "base": "

Specified offering does not exist.

", + "base": "

Specified offering does not exist.

", "refs": { } }, "ResetDBParameterGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "RestoreDBInstanceFromDBSnapshotMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1217,7 +1217,7 @@ } }, "RestoreDBInstanceToPointInTimeMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1227,7 +1227,7 @@ } }, "RevokeDBSecurityGroupIngressMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1252,15 +1252,15 @@ } }, "SnapshotQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of DB snapshots.

", + "base": "

Request would result in user exceeding the allowed number of DB snapshots.

", "refs": { } }, "SourceIdsList": { "base": null, "refs": { - "CreateEventSubscriptionMessage$SourceIds": "

The list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it cannot end with a hyphen or contain two consecutive hyphens.

Constraints:

  • If SourceIds are supplied, SourceType must also be provided.
  • If the source type is a DB instance, then a DBInstanceIdentifier must be supplied.
  • If the source type is a DB security group, a DBSecurityGroupName must be supplied.
  • If the source type is a DB parameter group, a DBParameterGroupName must be supplied.
  • If the source type is a DB Snapshot, a DBSnapshotIdentifier must be supplied.
", - "EventSubscription$SourceIdsList": "

A list of source Ids for the RDS event notification subscription.

" + "CreateEventSubscriptionMessage$SourceIds": null, + "EventSubscription$SourceIdsList": null } }, "SourceNotFoundFault": { @@ -1271,336 +1271,336 @@ "SourceType": { "base": null, "refs": { - "DescribeEventsMessage$SourceType": "

The event source to retrieve events for. If no value is specified, all events are returned.

", - "Event$SourceType": "

Specifies the source type for this event.

" + "DescribeEventsMessage$SourceType": null, + "Event$SourceType": null } }, "StorageQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed amount of storage available across all DB instances.

", + "base": "

Request would result in user exceeding the allowed amount of storage available across all DB instances.

", "refs": { } }, "String": { "base": null, "refs": { - "AddSourceIdentifierToSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription you want to add a source identifier to.

", - "AddSourceIdentifierToSubscriptionMessage$SourceIdentifier": "

The identifier of the event source to be added. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it cannot end with a hyphen or contain two consecutive hyphens.

Constraints:

  • If the source type is a DB instance, then a DBInstanceIdentifier must be supplied.
  • If the source type is a DB security group, a DBSecurityGroupName must be supplied.
  • If the source type is a DB parameter group, a DBParameterGroupName must be supplied.
  • If the source type is a DB Snapshot, a DBSnapshotIdentifier must be supplied.
", - "AddTagsToResourceMessage$ResourceName": "

The DB Instance the tags will be added to.

", - "AuthorizeDBSecurityGroupIngressMessage$DBSecurityGroupName": "

The name of the DB Security Group to add authorization to.

", - "AuthorizeDBSecurityGroupIngressMessage$CIDRIP": "

The IP range to authorize.

", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupName": "

Name of the EC2 Security Group to authorize. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupId": "

Id of the EC2 Security Group to authorize. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": "

AWS Account Number of the owner of the EC2 Security Group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "AvailabilityZone$Name": "

The name of the availability zone.

", - "CharacterSet$CharacterSetName": "

The name of the character set.

", - "CharacterSet$CharacterSetDescription": "

The description of the character set.

", - "CopyDBSnapshotMessage$SourceDBSnapshotIdentifier": "

The identifier for the source DB snapshot.

Constraints:

  • Must be the identifier for a valid system snapshot in the \"available\" state.

Example: rds:mydb-2012-04-02-00-01

", - "CopyDBSnapshotMessage$TargetDBSnapshotIdentifier": "

The identifier for the copied snapshot.

Constraints:

  • Cannot be null, empty, or blank
  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-db-snapshot

", - "CreateDBInstanceMessage$DBName": "

The meaning of this parameter differs according to the database engine you use.

MySQL

The name of the database to create when the DB Instance is created. If this parameter is not specified, no database is created in the DB Instance.

Constraints:

  • Must contain 1 to 64 alphanumeric characters
  • Cannot be a word reserved by the specified database engine

Type: String

Oracle

The Oracle System ID (SID) of the created DB Instance.

Default: ORCL

Constraints:

  • Cannot be longer than 8 characters

SQL Server

Not applicable. Must be null.

", - "CreateDBInstanceMessage$DBInstanceIdentifier": "

The DB Instance identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 for SQL Server).
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: mydbinstance

", - "CreateDBInstanceMessage$DBInstanceClass": "

The compute and memory capacity of the DB Instance.

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge

", - "CreateDBInstanceMessage$Engine": "

The name of the database engine to be used for this instance.

Valid Values: MySQL | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web

", - "CreateDBInstanceMessage$MasterUsername": "

The name of master user for the client DB Instance.

MySQL

Constraints:

  • Must be 1 to 16 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word for the chosen database engine.

Type: String

Oracle

Constraints:

  • Must be 1 to 30 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word for the chosen database engine.

SQL Server

Constraints:

  • Must be 1 to 128 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word for the chosen database engine.
", - "CreateDBInstanceMessage$MasterUserPassword": "

The password for the master database user. Can be any printable ASCII character except \"/\", \"\\\", or \"@\".

Type: String

MySQL

Constraints: Must contain from 8 to 41 alphanumeric characters.

Oracle

Constraints: Must contain from 8 to 30 alphanumeric characters.

SQL Server

Constraints: Must contain from 8 to 128 alphanumeric characters.

", - "CreateDBInstanceMessage$AvailabilityZone": "

The EC2 Availability Zone that the database instance will be created in.

Default: A random, system-chosen Availability Zone in the endpoint's region.

Example: us-east-1d

Constraint: The AvailabilityZone parameter cannot be specified if the MultiAZ parameter is set to true. The specified Availability Zone must be in the same region as the current endpoint.

", - "CreateDBInstanceMessage$DBSubnetGroupName": "

A DB Subnet Group to associate with this DB Instance.

If there is no DB Subnet Group, then it is a non-VPC DB instance.

", - "CreateDBInstanceMessage$PreferredMaintenanceWindow": "

The weekly time range (in UTC) during which system maintenance can occur.

Format: ddd:hh24:mi-ddd:hh24:mi

Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. The following list shows the time blocks for each region from which the default maintenance windows are assigned.

  • US-East (Northern Virginia) Region: 03:00-11:00 UTC
  • US-West (Northern California) Region: 06:00-14:00 UTC
  • EU (Ireland) Region: 22:00-06:00 UTC
  • Asia Pacific (Singapore) Region: 14:00-22:00 UTC
  • Asia Pacific (Tokyo) Region: 17:00-03:00 UTC

Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute window.

", - "CreateDBInstanceMessage$DBParameterGroupName": "

The name of the DB Parameter Group to associate with this DB instance. If this argument is omitted, the default DBParameterGroup for the specified engine will be used.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "CreateDBInstanceMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

Default: A 30-minute window selected at random from an 8-hour block of time per region. The following list shows the time blocks for each region from which the default backup windows are assigned.

  • US-East (Northern Virginia) Region: 03:00-11:00 UTC
  • US-West (Northern California) Region: 06:00-14:00 UTC
  • EU (Ireland) Region: 22:00-06:00 UTC
  • Asia Pacific (Singapore) Region: 14:00-22:00 UTC
  • Asia Pacific (Tokyo) Region: 17:00-03:00 UTC

Constraints: Must be in the format hh24:mi-hh24:mi. Times should be Universal Time Coordinated (UTC). Must not conflict with the preferred maintenance window. Must be at least 30 minutes.

", - "CreateDBInstanceMessage$EngineVersion": "

The version number of the database engine to use.

MySQL

Example: 5.1.42

Type: String

Oracle

Example: 11.2.0.2.v2

Type: String

SQL Server

Example: 10.50.2789.0.v1

", - "CreateDBInstanceMessage$LicenseModel": "

License model information for this DB Instance.

Valid values: license-included | bring-your-own-license | general-public-license

", - "CreateDBInstanceMessage$OptionGroupName": "

Indicates that the DB Instance should be associated with the specified option group.

", - "CreateDBInstanceMessage$CharacterSetName": "

For supported engines, indicates that the DB Instance should be associated with the specified CharacterSet.

", - "CreateDBInstanceReadReplicaMessage$DBInstanceIdentifier": "

The DB Instance identifier of the Read Replica. This is the unique key that identifies a DB Instance. This parameter is stored as a lowercase string.

", - "CreateDBInstanceReadReplicaMessage$SourceDBInstanceIdentifier": "

The identifier of the DB Instance that will act as the source for the Read Replica. Each DB Instance can have up to five Read Replicas.

Constraints: Must be the identifier of an existing DB Instance that is not already a Read Replica DB Instance.

", - "CreateDBInstanceReadReplicaMessage$DBInstanceClass": "

The compute and memory capacity of the Read Replica.

Valid Values: db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge

Default: Inherits from the source DB Instance.

", - "CreateDBInstanceReadReplicaMessage$AvailabilityZone": "

The Amazon EC2 Availability Zone that the Read Replica will be created in.

Default: A random, system-chosen Availability Zone in the endpoint's region.

Example: us-east-1d

", - "CreateDBInstanceReadReplicaMessage$OptionGroupName": "

The option group the DB instance will be associated with. If omitted, the default Option Group for the engine specified will be used.

", - "CreateDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB Parameter Group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
This value is stored as a lower-case string.", - "CreateDBParameterGroupMessage$DBParameterGroupFamily": "

The DB Parameter Group Family name. A DB Parameter Group can be associated with one and only one DB Parameter Group Family, and can be applied only to a DB Instance running a database engine and engine version compatible with that DB Parameter Group Family.

", - "CreateDBParameterGroupMessage$Description": "

The description for the DB Parameter Group.

", - "CreateDBSecurityGroupMessage$DBSecurityGroupName": "

The name for the DB Security Group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be \"Default\".

Example: mysecuritygroup

", - "CreateDBSecurityGroupMessage$DBSecurityGroupDescription": "

The description for the DB Security Group.

", - "CreateDBSnapshotMessage$DBSnapshotIdentifier": "

The identifier for the DB Snapshot.

Constraints:

  • Cannot be null, empty, or blank
  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

", - "CreateDBSnapshotMessage$DBInstanceIdentifier": "

The DB Instance identifier. This is the unique key that identifies a DB Instance. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "CreateDBSubnetGroupMessage$DBSubnetGroupName": "

The name for the DB Subnet Group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be \"Default\".

Example: mySubnetgroup

", - "CreateDBSubnetGroupMessage$DBSubnetGroupDescription": "

The description for the DB Subnet Group.

", - "CreateEventSubscriptionMessage$SubscriptionName": "

The name of the subscription.

Constraints: The name must be less than 255 characters.

", - "CreateEventSubscriptionMessage$SnsTopicArn": "

The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

", - "CreateEventSubscriptionMessage$SourceType": "

The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

", - "CreateOptionGroupMessage$OptionGroupName": "

Specifies the name of the option group to be created.

Constraints:

  • Must be 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: myOptiongroup

", - "CreateOptionGroupMessage$EngineName": "

Specifies the name of the engine that this option group should be associated with.

", - "CreateOptionGroupMessage$MajorEngineVersion": "

Specifies the major version of the engine that this option group should be associated with.

", - "CreateOptionGroupMessage$OptionGroupDescription": "

The description of the option group.

", - "DBEngineVersion$Engine": "

The name of the database engine.

", - "DBEngineVersion$EngineVersion": "

The version number of the database engine.

", - "DBEngineVersion$DBParameterGroupFamily": "

The name of the DBParameterGroupFamily for the database engine.

", - "DBEngineVersion$DBEngineDescription": "

The description of the database engine.

", - "DBEngineVersion$DBEngineVersionDescription": "

The description of the database engine version.

", - "DBEngineVersionMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DBInstance$DBInstanceIdentifier": "

Contains a user-supplied database identifier. This is the unique key that identifies a DB Instance.

", - "DBInstance$DBInstanceClass": "

Contains the name of the compute and memory capacity class of the DB Instance.

", - "DBInstance$Engine": "

Provides the name of the database engine to be used for this DB Instance.

", - "DBInstance$DBInstanceStatus": "

Specifies the current state of this database.

", - "DBInstance$MasterUsername": "

Contains the master username for the DB Instance.

", - "DBInstance$DBName": "

The meaning of this parameter differs according to the database engine you use.

MySQL

Contains the name of the initial database of this instance that was provided at create time, if one was specified when the DB Instance was created. This same name is returned for the life of the DB Instance.

Type: String

Oracle

Contains the Oracle System ID (SID) of the created DB Instance.

", - "DBInstance$PreferredBackupWindow": "

Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.

", - "DBInstance$AvailabilityZone": "

Specifies the name of the Availability Zone the DB Instance is located in.

", - "DBInstance$PreferredMaintenanceWindow": "

Specifies the weekly time range (in UTC) during which system maintenance can occur.

", - "DBInstance$EngineVersion": "

Indicates the database engine version.

", - "DBInstance$ReadReplicaSourceDBInstanceIdentifier": "

Contains the identifier of the source DB Instance if this DB Instance is a Read Replica.

", - "DBInstance$LicenseModel": "

License model information for this DB Instance.

", - "DBInstance$CharacterSetName": "

If present, specifies the name of the character set that this instance is associated with.

", - "DBInstance$SecondaryAvailabilityZone": "

If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.

", - "DBInstanceMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "DBParameterGroup$DBParameterGroupName": "

Provides the name of the DB Parameter Group.

", - "DBParameterGroup$DBParameterGroupFamily": "

Provides the name of the DB Parameter Group Family that this DB Parameter Group is compatible with.

", - "DBParameterGroup$Description": "

Provides the customer-specified description for this DB Parameter Group.

", - "DBParameterGroupDetails$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DBParameterGroupNameMessage$DBParameterGroupName": "

The name of the DB Parameter Group.

", - "DBParameterGroupStatus$DBParameterGroupName": "

The name of the DP Parameter Group.

", - "DBParameterGroupStatus$ParameterApplyStatus": "

The status of parameter updates.

", - "DBParameterGroupsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DBSecurityGroup$OwnerId": "

Provides the AWS ID of the owner of a specific DB Security Group.

", - "DBSecurityGroup$DBSecurityGroupName": "

Specifies the name of the DB Security Group.

", - "DBSecurityGroup$DBSecurityGroupDescription": "

Provides the description of the DB Security Group.

", - "DBSecurityGroup$VpcId": "

Provides the VpcId of the DB Security Group.

", - "DBSecurityGroupMembership$DBSecurityGroupName": "

The name of the DB Security Group.

", - "DBSecurityGroupMembership$Status": "

The status of the DB Security Group.

", - "DBSecurityGroupMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", + "AddSourceIdentifierToSubscriptionMessage$SubscriptionName": null, + "AddSourceIdentifierToSubscriptionMessage$SourceIdentifier": null, + "AddTagsToResourceMessage$ResourceName": null, + "AuthorizeDBSecurityGroupIngressMessage$DBSecurityGroupName": null, + "AuthorizeDBSecurityGroupIngressMessage$CIDRIP": null, + "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupName": null, + "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupId": null, + "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": null, + "AvailabilityZone$Name": null, + "CharacterSet$CharacterSetName": null, + "CharacterSet$CharacterSetDescription": null, + "CopyDBSnapshotMessage$SourceDBSnapshotIdentifier": null, + "CopyDBSnapshotMessage$TargetDBSnapshotIdentifier": null, + "CreateDBInstanceMessage$DBName": null, + "CreateDBInstanceMessage$DBInstanceIdentifier": null, + "CreateDBInstanceMessage$DBInstanceClass": null, + "CreateDBInstanceMessage$Engine": null, + "CreateDBInstanceMessage$MasterUsername": null, + "CreateDBInstanceMessage$MasterUserPassword": null, + "CreateDBInstanceMessage$AvailabilityZone": null, + "CreateDBInstanceMessage$DBSubnetGroupName": null, + "CreateDBInstanceMessage$PreferredMaintenanceWindow": null, + "CreateDBInstanceMessage$DBParameterGroupName": null, + "CreateDBInstanceMessage$PreferredBackupWindow": null, + "CreateDBInstanceMessage$EngineVersion": null, + "CreateDBInstanceMessage$LicenseModel": null, + "CreateDBInstanceMessage$OptionGroupName": null, + "CreateDBInstanceMessage$CharacterSetName": null, + "CreateDBInstanceReadReplicaMessage$DBInstanceIdentifier": null, + "CreateDBInstanceReadReplicaMessage$SourceDBInstanceIdentifier": null, + "CreateDBInstanceReadReplicaMessage$DBInstanceClass": null, + "CreateDBInstanceReadReplicaMessage$AvailabilityZone": null, + "CreateDBInstanceReadReplicaMessage$OptionGroupName": null, + "CreateDBParameterGroupMessage$DBParameterGroupName": null, + "CreateDBParameterGroupMessage$DBParameterGroupFamily": null, + "CreateDBParameterGroupMessage$Description": null, + "CreateDBSecurityGroupMessage$DBSecurityGroupName": null, + "CreateDBSecurityGroupMessage$DBSecurityGroupDescription": null, + "CreateDBSnapshotMessage$DBSnapshotIdentifier": null, + "CreateDBSnapshotMessage$DBInstanceIdentifier": null, + "CreateDBSubnetGroupMessage$DBSubnetGroupName": null, + "CreateDBSubnetGroupMessage$DBSubnetGroupDescription": null, + "CreateEventSubscriptionMessage$SubscriptionName": null, + "CreateEventSubscriptionMessage$SnsTopicArn": null, + "CreateEventSubscriptionMessage$SourceType": null, + "CreateOptionGroupMessage$OptionGroupName": null, + "CreateOptionGroupMessage$EngineName": null, + "CreateOptionGroupMessage$MajorEngineVersion": null, + "CreateOptionGroupMessage$OptionGroupDescription": null, + "DBEngineVersion$Engine": null, + "DBEngineVersion$EngineVersion": null, + "DBEngineVersion$DBParameterGroupFamily": null, + "DBEngineVersion$DBEngineDescription": null, + "DBEngineVersion$DBEngineVersionDescription": null, + "DBEngineVersionMessage$Marker": null, + "DBInstance$DBInstanceIdentifier": null, + "DBInstance$DBInstanceClass": null, + "DBInstance$Engine": null, + "DBInstance$DBInstanceStatus": null, + "DBInstance$MasterUsername": null, + "DBInstance$DBName": null, + "DBInstance$PreferredBackupWindow": null, + "DBInstance$AvailabilityZone": null, + "DBInstance$PreferredMaintenanceWindow": null, + "DBInstance$EngineVersion": null, + "DBInstance$ReadReplicaSourceDBInstanceIdentifier": null, + "DBInstance$LicenseModel": null, + "DBInstance$CharacterSetName": null, + "DBInstance$SecondaryAvailabilityZone": null, + "DBInstanceMessage$Marker": null, + "DBParameterGroup$DBParameterGroupName": null, + "DBParameterGroup$DBParameterGroupFamily": null, + "DBParameterGroup$Description": null, + "DBParameterGroupDetails$Marker": null, + "DBParameterGroupNameMessage$DBParameterGroupName": null, + "DBParameterGroupStatus$DBParameterGroupName": null, + "DBParameterGroupStatus$ParameterApplyStatus": null, + "DBParameterGroupsMessage$Marker": null, + "DBSecurityGroup$OwnerId": null, + "DBSecurityGroup$DBSecurityGroupName": null, + "DBSecurityGroup$DBSecurityGroupDescription": null, + "DBSecurityGroup$VpcId": null, + "DBSecurityGroupMembership$DBSecurityGroupName": null, + "DBSecurityGroupMembership$Status": null, + "DBSecurityGroupMessage$Marker": null, "DBSecurityGroupNameList$member": null, - "DBSnapshot$DBSnapshotIdentifier": "

Specifies the identifier for the DB Snapshot.

", - "DBSnapshot$DBInstanceIdentifier": "

Specifies the the DBInstanceIdentifier of the DB Instance this DB Snapshot was created from.

", - "DBSnapshot$Engine": "

Specifies the name of the database engine.

", - "DBSnapshot$Status": "

Specifies the status of this DB Snapshot.

", - "DBSnapshot$AvailabilityZone": "

Specifies the name of the Availability Zone the DB Instance was located in at the time of the DB Snapshot.

", - "DBSnapshot$VpcId": "

Provides the Vpc Id associated with the DB Snapshot.

", - "DBSnapshot$MasterUsername": "

Provides the master username for the DB Instance.

", - "DBSnapshot$EngineVersion": "

Specifies the version of the database engine.

", - "DBSnapshot$LicenseModel": "

License model information for the restored DB Instance.

", - "DBSnapshot$SnapshotType": "

Provides the type of the DB Snapshot.

", - "DBSnapshotMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DBSubnetGroup$DBSubnetGroupName": "

Specifies the name of the DB Subnet Group.

", - "DBSubnetGroup$DBSubnetGroupDescription": "

Provides the description of the DB Subnet Group.

", - "DBSubnetGroup$VpcId": "

Provides the VpcId of the DB Subnet Group.

", - "DBSubnetGroup$SubnetGroupStatus": "

Provides the status of the DB Subnet Group.

", - "DBSubnetGroupMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DeleteDBInstanceMessage$DBInstanceIdentifier": "

The DB Instance identifier for the DB Instance to be deleted. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DeleteDBInstanceMessage$FinalDBSnapshotIdentifier": "

The DBSnapshotIdentifier of the new DBSnapshot created when SkipFinalSnapshot is set to false.

Specifying this parameter and also setting the SkipFinalShapshot parameter to true results in an error.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DeleteDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB Parameter Group.

Constraints:

  • Must be the name of an existing DB Parameter Group
  • You cannot delete a default DB Parameter Group
  • Cannot be associated with any DB Instances
", - "DeleteDBSecurityGroupMessage$DBSecurityGroupName": "

The name of the DB Security Group to delete.

You cannot delete the default DB Security Group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DeleteDBSnapshotMessage$DBSnapshotIdentifier": "

The DBSnapshot identifier.

Constraints: Must be the name of an existing DB Snapshot in the available state.

", - "DeleteDBSubnetGroupMessage$DBSubnetGroupName": "

The name of the database subnet group to delete.

You cannot delete the default subnet group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DeleteEventSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription you want to delete.

", - "DeleteOptionGroupMessage$OptionGroupName": "

The name of the option group to be deleted.

You cannot delete default Option Groups.", - "DescribeDBEngineVersionsMessage$Engine": "

The database engine to return.

", - "DescribeDBEngineVersionsMessage$EngineVersion": "

The database engine version to return.

Example: 5.1.49

", - "DescribeDBEngineVersionsMessage$DBParameterGroupFamily": "

The name of a specific DB Parameter Group family to return details for.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBEngineVersionsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBInstancesMessage$DBInstanceIdentifier": "

The user-supplied instance identifier. If this parameter is specified, information from only the specific DB Instance is returned. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBInstancesMessage$Marker": "

An optional pagination token provided by a previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "DescribeDBParameterGroupsMessage$DBParameterGroupName": "

The name of a specific DB Parameter Group to return details for.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBParameterGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBParameterGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBParametersMessage$DBParameterGroupName": "

The name of a specific DB Parameter Group to return details for.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBParametersMessage$Source": "

The parameter types to return.

Default: All parameter types returned

Valid Values: user | system | engine-default

", - "DescribeDBParametersMessage$Marker": "

An optional pagination token provided by a previous DescribeDBParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBSecurityGroupsMessage$DBSecurityGroupName": "

The name of the DB Security Group to return details for.

", - "DescribeDBSecurityGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBSecurityGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBSnapshotsMessage$DBInstanceIdentifier": "

A DB Instance Identifier to retrieve the list of DB Snapshots for. Cannot be used in conjunction with DBSnapshotIdentifier. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBSnapshotsMessage$DBSnapshotIdentifier": "

A specific DB Snapshot Identifier to describe. Cannot be used in conjunction with DBInstanceIdentifier. This value is stored as a lowercase string.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
  • If this is the identifier of an automated snapshot, the SnapshotType parameter must also be specified.
", - "DescribeDBSnapshotsMessage$SnapshotType": "

An optional snapshot type for which snapshots will be returned. If not specified, the returned results will include snapshots of all types.

", - "DescribeDBSnapshotsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBSnapshots request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBSubnetGroupsMessage$DBSubnetGroupName": "

The name of the DB Subnet Group to return details for.

", - "DescribeDBSubnetGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBSubnetGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeEngineDefaultParametersMessage$DBParameterGroupFamily": "

The name of the DB Parameter Group Family.

", - "DescribeEngineDefaultParametersMessage$Marker": "

An optional pagination token provided by a previous DescribeEngineDefaultParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeEventCategoriesMessage$SourceType": "

The type of source that will be generating the events.

Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

", - "DescribeEventSubscriptionsMessage$SubscriptionName": "

The name of the RDS event notification subscription you want to describe.

", - "DescribeEventSubscriptionsMessage$Marker": "

An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "DescribeEventsMessage$SourceIdentifier": "

The identifier of the event source for which events will be returned. If not specified, then all sources are included in the response.

Constraints:

  • If SourceIdentifier is supplied, SourceType must also be provided.
  • If the source type is DBInstance, then a DBInstanceIdentifier must be supplied.
  • If the source type is DBSecurityGroup, a DBSecurityGroupName must be supplied.
  • If the source type is DBParameterGroup, a DBParameterGroupName must be supplied.
  • If the source type is DBSnapshot, a DBSnapshotIdentifier must be supplied.
  • Cannot end with a hyphen or contain two consecutive hyphens.
", - "DescribeEventsMessage$Marker": "

An optional pagination token provided by a previous DescribeEvents request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeOptionGroupOptionsMessage$EngineName": "

Options available for the given DB engine name to be described.

", - "DescribeOptionGroupOptionsMessage$MajorEngineVersion": "

If specified, filters the results to include only options for the specified major engine version.

", - "DescribeOptionGroupOptionsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeOptionGroupsMessage$OptionGroupName": "

The name of the option group to describe. Cannot be supplied together with EngineName or MajorEngineVersion.

", - "DescribeOptionGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeOptionGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeOptionGroupsMessage$EngineName": "

Filters the list of option groups to only include groups associated with a specific database engine.

", - "DescribeOptionGroupsMessage$MajorEngineVersion": "

Filters the list of option groups to only include groups associated with a specific database engine version. If specified, then EngineName must also be specified.

", - "DescribeOrderableDBInstanceOptionsMessage$Engine": "

The name of the engine to retrieve DB Instance options for.

", - "DescribeOrderableDBInstanceOptionsMessage$EngineVersion": "

The engine version filter value. Specify this parameter to show only the available offerings matching the specified engine version.

", - "DescribeOrderableDBInstanceOptionsMessage$DBInstanceClass": "

The DB Instance class filter value. Specify this parameter to show only the available offerings matching the specified DB Instance class.

", - "DescribeOrderableDBInstanceOptionsMessage$LicenseModel": "

The license model filter value. Specify this parameter to show only the available offerings matching the specified license model.

", - "DescribeOrderableDBInstanceOptionsMessage$Marker": "

An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "DescribeReservedDBInstancesMessage$ReservedDBInstanceId": "

The reserved DB Instance identifier filter value. Specify this parameter to show only the reservation that matches the specified reservation ID.

", - "DescribeReservedDBInstancesMessage$ReservedDBInstancesOfferingId": "

The offering identifier filter value. Specify this parameter to show only purchased reservations matching the specified offering identifier.

", - "DescribeReservedDBInstancesMessage$DBInstanceClass": "

The DB Instance class filter value. Specify this parameter to show only those reservations matching the specified DB Instances class.

", - "DescribeReservedDBInstancesMessage$Duration": "

The duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.

Valid Values: 1 | 3 | 31536000 | 94608000

", - "DescribeReservedDBInstancesMessage$ProductDescription": "

The product description filter value. Specify this parameter to show only those reservations matching the specified product description.

", - "DescribeReservedDBInstancesMessage$OfferingType": "

The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.

Valid Values: \"Light Utilization\" | \"Medium Utilization\" | \"Heavy Utilization\"

", - "DescribeReservedDBInstancesMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeReservedDBInstancesOfferingsMessage$ReservedDBInstancesOfferingId": "

The offering identifier filter value. Specify this parameter to show only the available offering that matches the specified reservation identifier.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

", - "DescribeReservedDBInstancesOfferingsMessage$DBInstanceClass": "

The DB Instance class filter value. Specify this parameter to show only the available offerings matching the specified DB Instance class.

", - "DescribeReservedDBInstancesOfferingsMessage$Duration": "

Duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.

Valid Values: 1 | 3 | 31536000 | 94608000

", - "DescribeReservedDBInstancesOfferingsMessage$ProductDescription": "

Product description filter value. Specify this parameter to show only the available offerings matching the specified product description.

", - "DescribeReservedDBInstancesOfferingsMessage$OfferingType": "

The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.

Valid Values: \"Light Utilization\" | \"Medium Utilization\" | \"Heavy Utilization\"

", - "DescribeReservedDBInstancesOfferingsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "EC2SecurityGroup$Status": "

Provides the status of the EC2 security group. Status can be \"authorizing\", \"authorized\", \"revoking\", and \"revoked\".

", - "EC2SecurityGroup$EC2SecurityGroupName": "

Specifies the name of the EC2 Security Group.

", - "EC2SecurityGroup$EC2SecurityGroupId": "

Specifies the id of the EC2 Security Group.

", - "EC2SecurityGroup$EC2SecurityGroupOwnerId": "

Specifies the AWS ID of the owner of the EC2 security group specified in the EC2SecurityGroupName field.

", - "Endpoint$Address": "

Specifies the DNS address of the DB Instance.

", - "EngineDefaults$DBParameterGroupFamily": "

Specifies the name of the DB Parameter Group Family which the engine default parameters apply to.

", - "EngineDefaults$Marker": "

An optional pagination token provided by a previous EngineDefaults request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "Event$SourceIdentifier": "

Provides the identifier for the source of the event.

", - "Event$Message": "

Provides the text of this event.

", + "DBSnapshot$DBSnapshotIdentifier": null, + "DBSnapshot$DBInstanceIdentifier": null, + "DBSnapshot$Engine": null, + "DBSnapshot$Status": null, + "DBSnapshot$AvailabilityZone": null, + "DBSnapshot$VpcId": null, + "DBSnapshot$MasterUsername": null, + "DBSnapshot$EngineVersion": null, + "DBSnapshot$LicenseModel": null, + "DBSnapshot$SnapshotType": null, + "DBSnapshotMessage$Marker": null, + "DBSubnetGroup$DBSubnetGroupName": null, + "DBSubnetGroup$DBSubnetGroupDescription": null, + "DBSubnetGroup$VpcId": null, + "DBSubnetGroup$SubnetGroupStatus": null, + "DBSubnetGroupMessage$Marker": null, + "DeleteDBInstanceMessage$DBInstanceIdentifier": null, + "DeleteDBInstanceMessage$FinalDBSnapshotIdentifier": null, + "DeleteDBParameterGroupMessage$DBParameterGroupName": null, + "DeleteDBSecurityGroupMessage$DBSecurityGroupName": null, + "DeleteDBSnapshotMessage$DBSnapshotIdentifier": null, + "DeleteDBSubnetGroupMessage$DBSubnetGroupName": null, + "DeleteEventSubscriptionMessage$SubscriptionName": null, + "DeleteOptionGroupMessage$OptionGroupName": null, + "DescribeDBEngineVersionsMessage$Engine": null, + "DescribeDBEngineVersionsMessage$EngineVersion": null, + "DescribeDBEngineVersionsMessage$DBParameterGroupFamily": null, + "DescribeDBEngineVersionsMessage$Marker": null, + "DescribeDBInstancesMessage$DBInstanceIdentifier": null, + "DescribeDBInstancesMessage$Marker": null, + "DescribeDBParameterGroupsMessage$DBParameterGroupName": null, + "DescribeDBParameterGroupsMessage$Marker": null, + "DescribeDBParametersMessage$DBParameterGroupName": null, + "DescribeDBParametersMessage$Source": null, + "DescribeDBParametersMessage$Marker": null, + "DescribeDBSecurityGroupsMessage$DBSecurityGroupName": null, + "DescribeDBSecurityGroupsMessage$Marker": null, + "DescribeDBSnapshotsMessage$DBInstanceIdentifier": null, + "DescribeDBSnapshotsMessage$DBSnapshotIdentifier": null, + "DescribeDBSnapshotsMessage$SnapshotType": null, + "DescribeDBSnapshotsMessage$Marker": null, + "DescribeDBSubnetGroupsMessage$DBSubnetGroupName": null, + "DescribeDBSubnetGroupsMessage$Marker": null, + "DescribeEngineDefaultParametersMessage$DBParameterGroupFamily": null, + "DescribeEngineDefaultParametersMessage$Marker": null, + "DescribeEventCategoriesMessage$SourceType": null, + "DescribeEventSubscriptionsMessage$SubscriptionName": null, + "DescribeEventSubscriptionsMessage$Marker": null, + "DescribeEventsMessage$SourceIdentifier": null, + "DescribeEventsMessage$Marker": null, + "DescribeOptionGroupOptionsMessage$EngineName": null, + "DescribeOptionGroupOptionsMessage$MajorEngineVersion": null, + "DescribeOptionGroupOptionsMessage$Marker": null, + "DescribeOptionGroupsMessage$OptionGroupName": null, + "DescribeOptionGroupsMessage$Marker": null, + "DescribeOptionGroupsMessage$EngineName": null, + "DescribeOptionGroupsMessage$MajorEngineVersion": null, + "DescribeOrderableDBInstanceOptionsMessage$Engine": null, + "DescribeOrderableDBInstanceOptionsMessage$EngineVersion": null, + "DescribeOrderableDBInstanceOptionsMessage$DBInstanceClass": null, + "DescribeOrderableDBInstanceOptionsMessage$LicenseModel": null, + "DescribeOrderableDBInstanceOptionsMessage$Marker": null, + "DescribeReservedDBInstancesMessage$ReservedDBInstanceId": null, + "DescribeReservedDBInstancesMessage$ReservedDBInstancesOfferingId": null, + "DescribeReservedDBInstancesMessage$DBInstanceClass": null, + "DescribeReservedDBInstancesMessage$Duration": null, + "DescribeReservedDBInstancesMessage$ProductDescription": null, + "DescribeReservedDBInstancesMessage$OfferingType": null, + "DescribeReservedDBInstancesMessage$Marker": null, + "DescribeReservedDBInstancesOfferingsMessage$ReservedDBInstancesOfferingId": null, + "DescribeReservedDBInstancesOfferingsMessage$DBInstanceClass": null, + "DescribeReservedDBInstancesOfferingsMessage$Duration": null, + "DescribeReservedDBInstancesOfferingsMessage$ProductDescription": null, + "DescribeReservedDBInstancesOfferingsMessage$OfferingType": null, + "DescribeReservedDBInstancesOfferingsMessage$Marker": null, + "EC2SecurityGroup$Status": null, + "EC2SecurityGroup$EC2SecurityGroupName": null, + "EC2SecurityGroup$EC2SecurityGroupId": null, + "EC2SecurityGroup$EC2SecurityGroupOwnerId": null, + "Endpoint$Address": null, + "EngineDefaults$DBParameterGroupFamily": null, + "EngineDefaults$Marker": null, + "Event$SourceIdentifier": null, + "Event$Message": null, "EventCategoriesList$member": null, - "EventCategoriesMap$SourceType": "

The source type that the returned categories belong to

", - "EventSubscription$Id": "

Not used.

", - "EventSubscription$CustomerAwsId": "

The AWS customer account associated with the RDS event notification subscription.

", - "EventSubscription$CustSubscriptionId": "

The RDS event notification subscription Id.

", - "EventSubscription$SnsTopicArn": "

The topic ARN of the RDS event notification subscription.

", - "EventSubscription$Status": "

The status of the RDS event notification subscription.

Constraints:

Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist

The status \"no-permission\" indicates that RDS no longer has permission to post to the SNS topic. The status \"topic-not-exist\" indicates that the topic was deleted after the subscription was created.

", - "EventSubscription$SubscriptionCreationTime": "

The time the RDS event notification subscription was created.

", - "EventSubscription$SourceType": "

The source type for the RDS event notification subscription.

", - "EventSubscriptionsMessage$Marker": "

An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "EventsMessage$Marker": "

An optional pagination token provided by a previous Events request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "IPRange$Status": "

Specifies the status of the IP range. Status can be \"authorizing\", \"authorized\", \"revoking\", and \"revoked\".

", - "IPRange$CIDRIP": "

Specifies the IP range.

", + "EventCategoriesMap$SourceType": null, + "EventSubscription$Id": null, + "EventSubscription$CustomerAwsId": null, + "EventSubscription$CustSubscriptionId": null, + "EventSubscription$SnsTopicArn": null, + "EventSubscription$Status": null, + "EventSubscription$SubscriptionCreationTime": null, + "EventSubscription$SourceType": null, + "EventSubscriptionsMessage$Marker": null, + "EventsMessage$Marker": null, + "IPRange$Status": null, + "IPRange$CIDRIP": null, "KeyList$member": null, - "ListTagsForResourceMessage$ResourceName": "

The DB Instance with tags to be listed.

", - "ModifyDBInstanceMessage$DBInstanceIdentifier": "

The DB Instance identifier. This value is stored as a lowercase string.

Constraints:

  • Must be the identifier for an existing DB Instance
  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "ModifyDBInstanceMessage$DBInstanceClass": "

The new compute and memory capacity of the DB Instance. To determine the instance classes that are available for a particular DB engine, use the DescribeOrderableDBInstanceOptions action.

Passing a value for this parameter causes an outage during the change and is applied during the next maintenance window, unless the ApplyImmediately parameter is specified as true for this request.

Default: Uses existing setting

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge | db.m2.2xlarge | db.m2.4xlarge

", - "ModifyDBInstanceMessage$MasterUserPassword": "

The new password for the DB Instance master user. Can be any printable ASCII character except \"/\", \"\\\", or \"@\".

Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible. Between the time of the request and the completion of the request, the MasterUserPassword element exists in the PendingModifiedValues element of the operation response.

Default: Uses existing setting

Constraints: Must be 8 to 41 alphanumeric characters (MySQL), 8 to 30 alphanumeric characters (Oracle), or 8 to 128 alphanumeric characters (SQL Server).

Amazon RDS API actions never return the password, so this action provides a way to regain access to a master instance user if the password is lost. ", - "ModifyDBInstanceMessage$DBParameterGroupName": "

The name of the DB Parameter Group to apply to this DB Instance. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

Default: Uses existing setting

Constraints: The DB Parameter Group must be in the same DB Parameter Group family as this DB Instance.

", - "ModifyDBInstanceMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

Constraints:

  • Must be in the format hh24:mi-hh24:mi
  • Times should be Universal Time Coordinated (UTC)
  • Must not conflict with the preferred maintenance window
  • Must be at least 30 minutes
", - "ModifyDBInstanceMessage$PreferredMaintenanceWindow": "

The weekly time range (in UTC) during which system maintenance can occur, which may result in an outage. Changing this parameter does not result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If there are pending actions that cause a reboot, and the maintenance window is changed to include the current time, then changing this parameter will cause a reboot of the DB Instance. If moving this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.

Default: Uses existing setting

Format: ddd:hh24:mi-ddd:hh24:mi

Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun

Constraints: Must be at least 30 minutes

", - "ModifyDBInstanceMessage$EngineVersion": "

The version number of the database engine to upgrade to. Changing this parameter results in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

For major version upgrades, if a nondefault DB Parameter Group is currently in use, a new DB Parameter Group in the DB Parameter Group Family for the new engine version must be specified. The new DB Parameter Group can be the default for that DB Parameter Group Family.

Example: 5.1.42

", - "ModifyDBInstanceMessage$OptionGroupName": "

Indicates that the DB Instance should be associated with the specified option group. Changing this parameter does not result in an outage except in the following case and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request. If the parameter change results in an option group that enables OEM, this change can cause a brief (sub-second) period during which new connections are rejected but existing connections are not interrupted.

", - "ModifyDBInstanceMessage$NewDBInstanceIdentifier": "

The new DB Instance identifier for the DB Instance when renaming a DB Instance. This value is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "ModifyDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB Parameter Group.

Constraints:

  • Must be the name of an existing DB Parameter Group
  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "ModifyDBSubnetGroupMessage$DBSubnetGroupName": "

The name for the DB Subnet Group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be \"Default\".

Example: mySubnetgroup

", - "ModifyDBSubnetGroupMessage$DBSubnetGroupDescription": "

The description for the DB Subnet Group.

", - "ModifyEventSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription.

", - "ModifyEventSubscriptionMessage$SnsTopicArn": "

The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

", - "ModifyEventSubscriptionMessage$SourceType": "

The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

", - "ModifyOptionGroupMessage$OptionGroupName": "

The name of the option group to be modified.

", - "Option$OptionName": "

The name of the option.

", - "Option$OptionDescription": "

The description of the option.

", - "OptionConfiguration$OptionName": "

The configuration of options to include in a group.

", - "OptionGroup$OptionGroupName": "

Specifies the name of the option group.

", - "OptionGroup$OptionGroupDescription": "

Provides the description of the option group.

", - "OptionGroup$EngineName": "

Engine name that this option group can be applied to.

", - "OptionGroup$MajorEngineVersion": "

Indicates the major engine version associated with this option group.

", - "OptionGroup$VpcId": "

If AllowsVpcAndNonVpcInstanceMemberships is 'false', this field is blank. If AllowsVpcAndNonVpcInstanceMemberships is 'true' and this field is blank, then this option group can be applied to both VPC and non-VPC instances. If this field contains a value, then this option group can only be applied to instances that are in the VPC indicated by this field.

", - "OptionGroupMembership$OptionGroupName": "

The name of the option group that the instance belongs to.

", - "OptionGroupMembership$Status": "

The status of the DB Instance's option group membership (e.g. in-sync, pending, pending-maintenance, applying).

", - "OptionGroupOption$Name": "

The name of the option.

", - "OptionGroupOption$Description": "

The description of the option.

", - "OptionGroupOption$EngineName": "

Engine name that this option can be applied to.

", - "OptionGroupOption$MajorEngineVersion": "

Indicates the major engine version that the option is available for.

", - "OptionGroupOption$MinimumRequiredMinorEngineVersion": "

The minimum required engine version for the option to be applied.

", - "OptionGroupOptionsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", + "ListTagsForResourceMessage$ResourceName": null, + "ModifyDBInstanceMessage$DBInstanceIdentifier": null, + "ModifyDBInstanceMessage$DBInstanceClass": null, + "ModifyDBInstanceMessage$MasterUserPassword": null, + "ModifyDBInstanceMessage$DBParameterGroupName": null, + "ModifyDBInstanceMessage$PreferredBackupWindow": null, + "ModifyDBInstanceMessage$PreferredMaintenanceWindow": null, + "ModifyDBInstanceMessage$EngineVersion": null, + "ModifyDBInstanceMessage$OptionGroupName": null, + "ModifyDBInstanceMessage$NewDBInstanceIdentifier": null, + "ModifyDBParameterGroupMessage$DBParameterGroupName": null, + "ModifyDBSubnetGroupMessage$DBSubnetGroupName": null, + "ModifyDBSubnetGroupMessage$DBSubnetGroupDescription": null, + "ModifyEventSubscriptionMessage$SubscriptionName": null, + "ModifyEventSubscriptionMessage$SnsTopicArn": null, + "ModifyEventSubscriptionMessage$SourceType": null, + "ModifyOptionGroupMessage$OptionGroupName": null, + "Option$OptionName": null, + "Option$OptionDescription": null, + "OptionConfiguration$OptionName": null, + "OptionGroup$OptionGroupName": null, + "OptionGroup$OptionGroupDescription": null, + "OptionGroup$EngineName": null, + "OptionGroup$MajorEngineVersion": null, + "OptionGroup$VpcId": null, + "OptionGroupMembership$OptionGroupName": null, + "OptionGroupMembership$Status": null, + "OptionGroupOption$Name": null, + "OptionGroupOption$Description": null, + "OptionGroupOption$EngineName": null, + "OptionGroupOption$MajorEngineVersion": null, + "OptionGroupOption$MinimumRequiredMinorEngineVersion": null, + "OptionGroupOptionsMessage$Marker": null, "OptionGroups$Marker": null, "OptionNamesList$member": null, "OptionsDependedOn$member": null, - "OrderableDBInstanceOption$Engine": "

The engine type of the orderable DB Instance.

", - "OrderableDBInstanceOption$EngineVersion": "

The engine version of the orderable DB Instance.

", - "OrderableDBInstanceOption$DBInstanceClass": "

The DB Instance Class for the orderable DB Instance

", - "OrderableDBInstanceOption$LicenseModel": "

The license model for the orderable DB Instance.

", - "OrderableDBInstanceOptionsMessage$Marker": "

An optional pagination token provided by a previous OrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "Parameter$ParameterName": "

Specifies the name of the parameter.

", - "Parameter$ParameterValue": "

Specifies the value of the parameter.

", - "Parameter$Description": "

Provides a description of the parameter.

", - "Parameter$Source": "

Indicates the source of the parameter value.

", - "Parameter$ApplyType": "

Specifies the engine specific parameters type.

", - "Parameter$DataType": "

Specifies the valid data type for the parameter.

", - "Parameter$AllowedValues": "

Specifies the valid range of values for the parameter.

", - "Parameter$MinimumEngineVersion": "

The earliest engine version to which the parameter can apply.

", - "PendingModifiedValues$DBInstanceClass": "

Contains the new DBInstanceClass for the DB Instance that will be applied or is in progress.

", - "PendingModifiedValues$MasterUserPassword": "

Contains the pending or in-progress change of the master credentials for the DB Instance.

", - "PendingModifiedValues$EngineVersion": "

Indicates the database engine version.

", - "PendingModifiedValues$DBInstanceIdentifier": "

Contains the new DBInstanceIdentifier for the DB Instance that will be applied or is in progress.

", - "PromoteReadReplicaMessage$DBInstanceIdentifier": "

The DB Instance identifier. This value is stored as a lowercase string.

Constraints:

  • Must be the identifier for an existing Read Replica DB Instance
  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: mydbinstance

", - "PromoteReadReplicaMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

Default: A 30-minute window selected at random from an 8-hour block of time per region. The following list shows the time blocks for each region from which the default backup windows are assigned.

  • US-East (Northern Virginia) Region: 03:00-11:00 UTC
  • US-West (Northern California) Region: 06:00-14:00 UTC
  • EU (Ireland) Region: 22:00-06:00 UTC
  • Asia Pacific (Singapore) Region: 14:00-22:00 UTC
  • Asia Pacific (Tokyo) Region: 17:00-03:00 UTC

Constraints: Must be in the format hh24:mi-hh24:mi. Times should be Universal Time Coordinated (UTC). Must not conflict with the preferred maintenance window. Must be at least 30 minutes.

", - "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferingId": "

The ID of the Reserved DB Instance offering to purchase.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

", - "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstanceId": "

Customer-specified identifier to track this reservation.

Example: myreservationID

", + "OrderableDBInstanceOption$Engine": null, + "OrderableDBInstanceOption$EngineVersion": null, + "OrderableDBInstanceOption$DBInstanceClass": null, + "OrderableDBInstanceOption$LicenseModel": null, + "OrderableDBInstanceOptionsMessage$Marker": null, + "Parameter$ParameterName": null, + "Parameter$ParameterValue": null, + "Parameter$Description": null, + "Parameter$Source": null, + "Parameter$ApplyType": null, + "Parameter$DataType": null, + "Parameter$AllowedValues": null, + "Parameter$MinimumEngineVersion": null, + "PendingModifiedValues$DBInstanceClass": null, + "PendingModifiedValues$MasterUserPassword": null, + "PendingModifiedValues$EngineVersion": null, + "PendingModifiedValues$DBInstanceIdentifier": null, + "PromoteReadReplicaMessage$DBInstanceIdentifier": null, + "PromoteReadReplicaMessage$PreferredBackupWindow": null, + "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferingId": null, + "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstanceId": null, "ReadReplicaDBInstanceIdentifierList$member": null, - "RebootDBInstanceMessage$DBInstanceIdentifier": "

The DB Instance identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RecurringCharge$RecurringChargeFrequency": "

The frequency of the recurring charge.

", - "RemoveSourceIdentifierFromSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription you want to remove a source identifier from.

", - "RemoveSourceIdentifierFromSubscriptionMessage$SourceIdentifier": "

The source identifier to be removed from the subscription, such as the DB instance identifier for a DB instance or the name of a security group.

", - "RemoveTagsFromResourceMessage$ResourceName": "

The DB Instance the tags will be removed from.

", - "ReservedDBInstance$ReservedDBInstanceId": "

The unique identifier for the reservation.

", - "ReservedDBInstance$ReservedDBInstancesOfferingId": "

The offering identifier.

", - "ReservedDBInstance$DBInstanceClass": "

The DB instance class for the reserved DB Instance.

", - "ReservedDBInstance$CurrencyCode": "

The currency code for the reserved DB Instance.

", - "ReservedDBInstance$ProductDescription": "

The description of the reserved DB Instance.

", - "ReservedDBInstance$OfferingType": "

The offering type of this reserved DB Instance.

", - "ReservedDBInstance$State": "

The state of the reserved DB Instance.

", - "ReservedDBInstanceMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "ReservedDBInstancesOffering$ReservedDBInstancesOfferingId": "

The offering identifier.

", - "ReservedDBInstancesOffering$DBInstanceClass": "

The DB instance class for the reserved DB Instance.

", - "ReservedDBInstancesOffering$CurrencyCode": "

The currency code for the reserved DB Instance offering.

", - "ReservedDBInstancesOffering$ProductDescription": "

The database engine used by the offering.

", - "ReservedDBInstancesOffering$OfferingType": "

The offering type.

", - "ReservedDBInstancesOfferingMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "ResetDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB Parameter Group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceIdentifier": "

The identifier for the DB Snapshot to restore from.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RestoreDBInstanceFromDBSnapshotMessage$DBSnapshotIdentifier": "

Name of the DB Instance to create from the DB Snapshot. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

", - "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceClass": "

The compute and memory capacity of the Amazon RDS DB instance.

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.2xlarge | db.m2.4xlarge

", - "RestoreDBInstanceFromDBSnapshotMessage$AvailabilityZone": "

The EC2 Availability Zone that the database instance will be created in.

Default: A random, system-chosen Availability Zone.

Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

Example: us-east-1a

", - "RestoreDBInstanceFromDBSnapshotMessage$DBSubnetGroupName": "

The DB Subnet Group name to use for the new instance.

", - "RestoreDBInstanceFromDBSnapshotMessage$LicenseModel": "

License model information for the restored DB Instance.

Default: Same as source.

Valid values: license-included | bring-your-own-license | general-public-license

", - "RestoreDBInstanceFromDBSnapshotMessage$DBName": "

The database name for the restored DB Instance.

This parameter doesn't apply to the MySQL engine.

", - "RestoreDBInstanceFromDBSnapshotMessage$Engine": "

The database engine to use for the new instance.

Default: The same as source

Constraint: Must be compatible with the engine of the source

Example: oracle-ee

", + "RebootDBInstanceMessage$DBInstanceIdentifier": null, + "RecurringCharge$RecurringChargeFrequency": null, + "RemoveSourceIdentifierFromSubscriptionMessage$SubscriptionName": null, + "RemoveSourceIdentifierFromSubscriptionMessage$SourceIdentifier": null, + "RemoveTagsFromResourceMessage$ResourceName": null, + "ReservedDBInstance$ReservedDBInstanceId": null, + "ReservedDBInstance$ReservedDBInstancesOfferingId": null, + "ReservedDBInstance$DBInstanceClass": null, + "ReservedDBInstance$CurrencyCode": null, + "ReservedDBInstance$ProductDescription": null, + "ReservedDBInstance$OfferingType": null, + "ReservedDBInstance$State": null, + "ReservedDBInstanceMessage$Marker": null, + "ReservedDBInstancesOffering$ReservedDBInstancesOfferingId": null, + "ReservedDBInstancesOffering$DBInstanceClass": null, + "ReservedDBInstancesOffering$CurrencyCode": null, + "ReservedDBInstancesOffering$ProductDescription": null, + "ReservedDBInstancesOffering$OfferingType": null, + "ReservedDBInstancesOfferingMessage$Marker": null, + "ResetDBParameterGroupMessage$DBParameterGroupName": null, + "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceIdentifier": null, + "RestoreDBInstanceFromDBSnapshotMessage$DBSnapshotIdentifier": null, + "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceClass": null, + "RestoreDBInstanceFromDBSnapshotMessage$AvailabilityZone": null, + "RestoreDBInstanceFromDBSnapshotMessage$DBSubnetGroupName": null, + "RestoreDBInstanceFromDBSnapshotMessage$LicenseModel": null, + "RestoreDBInstanceFromDBSnapshotMessage$DBName": null, + "RestoreDBInstanceFromDBSnapshotMessage$Engine": null, "RestoreDBInstanceFromDBSnapshotMessage$OptionGroupName": null, - "RestoreDBInstanceToPointInTimeMessage$SourceDBInstanceIdentifier": "

The identifier of the source DB Instance from which to restore.

Constraints:

  • Must be the identifier of an existing database instance
  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RestoreDBInstanceToPointInTimeMessage$TargetDBInstanceIdentifier": "

The name of the new database instance to be created.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RestoreDBInstanceToPointInTimeMessage$DBInstanceClass": "

The compute and memory capacity of the Amazon RDS DB instance.

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.2xlarge | db.m2.4xlarge

Default: The same DBInstanceClass as the original DB Instance.

", - "RestoreDBInstanceToPointInTimeMessage$AvailabilityZone": "

The EC2 Availability Zone that the database instance will be created in.

Default: A random, system-chosen Availability Zone.

Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

Example: us-east-1a

", - "RestoreDBInstanceToPointInTimeMessage$DBSubnetGroupName": "

The DB subnet group name to use for the new instance.

", - "RestoreDBInstanceToPointInTimeMessage$LicenseModel": "

License model information for the restored DB Instance.

Default: Same as source.

Valid values: license-included | bring-your-own-license | general-public-license

", - "RestoreDBInstanceToPointInTimeMessage$DBName": "

The database name for the restored DB Instance.

This parameter is not used for the MySQL engine.

", - "RestoreDBInstanceToPointInTimeMessage$Engine": "

The database engine to use for the new instance.

Default: The same as source

Constraint: Must be compatible with the engine of the source

Example: oracle-ee

", + "RestoreDBInstanceToPointInTimeMessage$SourceDBInstanceIdentifier": null, + "RestoreDBInstanceToPointInTimeMessage$TargetDBInstanceIdentifier": null, + "RestoreDBInstanceToPointInTimeMessage$DBInstanceClass": null, + "RestoreDBInstanceToPointInTimeMessage$AvailabilityZone": null, + "RestoreDBInstanceToPointInTimeMessage$DBSubnetGroupName": null, + "RestoreDBInstanceToPointInTimeMessage$LicenseModel": null, + "RestoreDBInstanceToPointInTimeMessage$DBName": null, + "RestoreDBInstanceToPointInTimeMessage$Engine": null, "RestoreDBInstanceToPointInTimeMessage$OptionGroupName": null, - "RevokeDBSecurityGroupIngressMessage$DBSecurityGroupName": "

The name of the DB Security Group to revoke ingress from.

", - "RevokeDBSecurityGroupIngressMessage$CIDRIP": "

The IP range to revoke access from. Must be a valid CIDR range. If CIDRIP is specified, EC2SecurityGroupName, EC2SecurityGroupId and EC2SecurityGroupOwnerId cannot be provided.

", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupName": "

The name of the EC2 Security Group to revoke access from. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupId": "

The id of the EC2 Security Group to revoke access from. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": "

The AWS Account Number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", + "RevokeDBSecurityGroupIngressMessage$DBSecurityGroupName": null, + "RevokeDBSecurityGroupIngressMessage$CIDRIP": null, + "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupName": null, + "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupId": null, + "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": null, "SourceIdsList$member": null, - "Subnet$SubnetIdentifier": "

Specifies the identifier of the subnet.

", - "Subnet$SubnetStatus": "

Specifies the status of the subnet.

", + "Subnet$SubnetIdentifier": null, + "Subnet$SubnetStatus": null, "SubnetIdentifierList$member": null, - "Tag$Key": "

A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with \"aws:\". The string may only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

", - "Tag$Value": "

A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with \"aws:\". The string may only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

", + "Tag$Key": null, + "Tag$Value": null, "VpcSecurityGroupIdList$member": null, - "VpcSecurityGroupMembership$VpcSecurityGroupId": "

The name of the VPC security group.

", - "VpcSecurityGroupMembership$Status": "

The status of the VPC Security Group.

" + "VpcSecurityGroupMembership$VpcSecurityGroupId": null, + "VpcSecurityGroupMembership$Status": null } }, "Subnet": { - "base": "

This data type is used as a response element in the DescribeDBSubnetGroups action.

", + "base": null, "refs": { "SubnetList$member": null } }, "SubnetAlreadyInUse": { - "base": "

The DB subnet is already in use in the Availability Zone.

", + "base": "

The DB subnet is already in use in the Availability Zone.

", "refs": { } }, "SubnetIdentifierList": { "base": null, "refs": { - "CreateDBSubnetGroupMessage$SubnetIds": "

The EC2 Subnet IDs for the DB Subnet Group.

", - "ModifyDBSubnetGroupMessage$SubnetIds": "

The EC2 Subnet IDs for the DB Subnet Group.

" + "CreateDBSubnetGroupMessage$SubnetIds": null, + "ModifyDBSubnetGroupMessage$SubnetIds": null } }, "SubnetList": { "base": null, "refs": { - "DBSubnetGroup$Subnets": "

Contains a list of Subnet elements.

" + "DBSubnetGroup$Subnets": null } }, "SubscriptionAlreadyExistFault": { @@ -1621,51 +1621,51 @@ "SupportedCharacterSetsList": { "base": null, "refs": { - "DBEngineVersion$SupportedCharacterSets": "

A list of the character sets supported by this engine for the CharacterSetName parameter of the CreateDBInstance API.

" + "DBEngineVersion$SupportedCharacterSets": null } }, "TStamp": { "base": null, "refs": { - "DBInstance$InstanceCreateTime": "

Provides the date and time the DB Instance was created.

", - "DBInstance$LatestRestorableTime": "

Specifies the latest time to which a database can be restored with point-in-time restore.

", - "DBSnapshot$SnapshotCreateTime": "

Provides the time (UTC) when the snapshot was taken.

", - "DBSnapshot$InstanceCreateTime": "

Specifies the time (UTC) when the snapshot was taken.

", - "DescribeEventsMessage$StartTime": "

The beginning of the time interval to retrieve events for, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

Example: 2009-07-08T18:00Z

", - "DescribeEventsMessage$EndTime": "

The end of the time interval for which to retrieve events, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

Example: 2009-07-08T18:00Z

", - "Event$Date": "

Specifies the date and time of the event.

", - "ReservedDBInstance$StartTime": "

The time the reservation started.

", - "RestoreDBInstanceToPointInTimeMessage$RestoreTime": "

The date and time to restore from.

Valid Values: Value must be a UTC time

Constraints:

  • Must be before the latest restorable time for the DB Instance
  • Cannot be specified if UseLatestRestorableTime parameter is true

Example: 2009-09-07T23:45:00Z

" + "DBInstance$InstanceCreateTime": null, + "DBInstance$LatestRestorableTime": null, + "DBSnapshot$SnapshotCreateTime": null, + "DBSnapshot$InstanceCreateTime": null, + "DescribeEventsMessage$StartTime": null, + "DescribeEventsMessage$EndTime": null, + "Event$Date": null, + "ReservedDBInstance$StartTime": null, + "RestoreDBInstanceToPointInTimeMessage$RestoreTime": null } }, "Tag": { - "base": "

Metadata assigned to a DB Instance consisting of a key-value pair.

", + "base": null, "refs": { "TagList$member": null } }, "TagList": { - "base": "

A list of tags.

", + "base": null, "refs": { - "AddTagsToResourceMessage$Tags": "

The tags to be assigned to the DB Instance.

", - "TagListMessage$TagList": "

List of tags returned by the ListTagsForResource operation.

" + "AddTagsToResourceMessage$Tags": null, + "TagListMessage$TagList": null } }, "TagListMessage": { - "base": "

", + "base": null, "refs": { } }, "VpcSecurityGroupIdList": { "base": null, "refs": { - "CreateDBInstanceMessage$VpcSecurityGroupIds": "

A list of EC2 VPC Security Groups to associate with this DB Instance.

Default: The default EC2 VPC Security Group for the DB Subnet group's VPC.

", - "ModifyDBInstanceMessage$VpcSecurityGroupIds": "

A list of EC2 VPC Security Groups to authorize on this DB Instance. This change is asynchronously applied as soon as possible.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "OptionConfiguration$VpcSecurityGroupMemberships": "

A list of VpcSecurityGroupMemebrship name strings used for this option.

" + "CreateDBInstanceMessage$VpcSecurityGroupIds": null, + "ModifyDBInstanceMessage$VpcSecurityGroupIds": null, + "OptionConfiguration$VpcSecurityGroupMemberships": null } }, "VpcSecurityGroupMembership": { - "base": "

This data type is used as a response element for queries on VPC security group membership.

", + "base": null, "refs": { "VpcSecurityGroupMembershipList$member": null } @@ -1673,8 +1673,8 @@ "VpcSecurityGroupMembershipList": { "base": null, "refs": { - "DBInstance$VpcSecurityGroups": "

Provides List of VPC security group elements that the DB Instance belongs to.

", - "Option$VpcSecurityGroupMemberships": "

If the Option requires access to a port, then this VPC Security Group allows access to the port.

" + "DBInstance$VpcSecurityGroups": null, + "Option$VpcSecurityGroupMemberships": null } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/paginators-1.json index e70d762e0..2461b481b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/paginators-1.json @@ -2,96 +2,96 @@ "pagination": { "DescribeDBEngineVersions": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBEngineVersions" }, "DescribeDBInstances": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBInstances" }, "DescribeDBParameterGroups": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBParameterGroups" }, "DescribeDBParameters": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "Parameters" }, "DescribeDBSecurityGroups": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBSecurityGroups" }, "DescribeDBSnapshots": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBSnapshots" }, "DescribeDBSubnetGroups": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBSubnetGroups" }, "DescribeEngineDefaultParameters": { "input_token": "Marker", - "output_token": "EngineDefaults.Marker", "limit_key": "MaxRecords", + "output_token": "EngineDefaults.Marker", "result_key": "EngineDefaults.Parameters" }, "DescribeEventSubscriptions": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "EventSubscriptionsList" }, "DescribeEvents": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "Events" }, "DescribeOptionGroupOptions": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "OptionGroupOptions" }, "DescribeOptionGroups": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "OptionGroupsList" }, "DescribeOrderableDBInstanceOptions": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "OrderableDBInstanceOptions" }, "DescribeReservedDBInstances": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "ReservedDBInstances" }, "DescribeReservedDBInstancesOfferings": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "ReservedDBInstancesOfferings" }, "ListTagsForResource": { "result_key": "TagList" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/api-2.json index 50bb7e4ce..14cb606a2 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/api-2.json @@ -7,6 +7,7 @@ "serviceAbbreviation":"Amazon RDS", "serviceFullName":"Amazon Relational Database Service", "signatureVersion":"v4", + "uid":"rds-2013-02-12", "xmlNamespace":"http://rds.amazonaws.com/doc/2013-02-12/" }, "operations":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/docs-2.json index 31661545e..4b1c6bc25 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/docs-2.json @@ -1,63 +1,63 @@ { "version": "2.0", - "service": "Amazon Relational Database Service

Amazon Relational Database Service (Amazon RDS) is a web service that makes it easier to set up, operate, and scale a relational database in the cloud. It provides cost-efficient, resizable capacity for an industry-standard relational database and manages common database administration tasks, freeing up developers to focus on what makes their applications and businesses unique.

Amazon RDS gives you access to the capabilities of a familiar MySQL or Oracle database server. This means the code, applications, and tools you already use today with your existing MySQL or Oracle databases work with Amazon RDS without modification. Amazon RDS automatically backs up your database and maintains the database software that powers your DB Instance. Amazon RDS is flexible: you can scale your database instance's compute resources and storage capacity to meet your application's demand. As with all Amazon Web Services, there are no up-front investments, and you pay only for the resources you use.

This is the Amazon RDS API Reference. It contains a comprehensive description of all Amazon RDS Query APIs and data types. Note that this API is asynchronous and some actions may require polling to determine when an action has been applied. See the parameter description to determine if a change is applied immediately or on the next instance reboot or during the maintenance window. For more information on Amazon RDS concepts and usage scenarios, see the Amazon RDS User Guide.

", + "service": null, "operations": { - "AddSourceIdentifierToSubscription": "

Adds a source identifier to an existing RDS event notification subscription.

", - "AddTagsToResource": "

Adds metadata tags to a DB Instance. These tags can also be used with cost allocation reporting to track cost associated with a DB Instance.

", - "AuthorizeDBSecurityGroupIngress": "

Enables ingress to a DBSecurityGroup using one of two forms of authorization. First, EC2 or VPC Security Groups can be added to the DBSecurityGroup if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet. Required parameters for this API are one of CIDR range, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId for non-VPC).

You cannot authorize ingress from an EC2 security group in one Region to an Amazon RDS DB Instance in another. You cannot authorize ingress from a VPC security group in one VPC to an Amazon RDS DB Instance in another.

For an overview of CIDR ranges, go to the Wikipedia Tutorial.

", - "CopyDBSnapshot": "

Copies the specified DBSnapshot. The source DBSnapshot must be in the \"available\" state.

", - "CreateDBInstance": "

Creates a new DB instance.

", - "CreateDBInstanceReadReplica": "

Creates a DB Instance that acts as a Read Replica of a source DB Instance.

All Read Replica DB Instances are created as Single-AZ deployments with backups disabled. All other DB Instance attributes (including DB Security Groups and DB Parameter Groups) are inherited from the source DB Instance, except as specified below.

The source DB Instance must have backup retention enabled.

", - "CreateDBParameterGroup": "

Creates a new DB Parameter Group.

A DB Parameter Group is initially created with the default parameters for the database engine used by the DB Instance. To provide custom values for any of the parameters, you must modify the group after creating it using ModifyDBParameterGroup. Once you've created a DB Parameter Group, you need to associate it with your DB Instance using ModifyDBInstance. When you associate a new DB Parameter Group with a running DB Instance, you need to reboot the DB Instance for the new DB Parameter Group and associated settings to take effect.

", - "CreateDBSecurityGroup": "

Creates a new DB Security Group. DB Security Groups control access to a DB Instance.

", - "CreateDBSnapshot": "

Creates a DBSnapshot. The source DBInstance must be in \"available\" state.

", - "CreateDBSubnetGroup": "

Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region.

", - "CreateEventSubscription": "

Creates an RDS event notification subscription. This action requires a topic ARN (Amazon Resource Name) created by either the RDS console, the SNS console, or the SNS API. To obtain an ARN with SNS, you must create a topic in Amazon SNS and subscribe to the topic. The ARN is displayed in the SNS console.

You can specify the type of source (SourceType) you want to be notified of, provide a list of RDS sources (SourceIds) that triggers the events, and provide a list of event categories (EventCategories) for events you want to be notified of. For example, you can specify SourceType = db-instance, SourceIds = mydbinstance1, mydbinstance2 and EventCategories = Availability, Backup.

If you specify both the SourceType and SourceIds, such as SourceType = db-instance and SourceIdentifier = myDBInstance1, you will be notified of all the db-instance events for the specified source. If you specify a SourceType but do not specify a SourceIdentifier, you will receive notice of the events for that source type for all your RDS sources. If you do not specify either the SourceType nor the SourceIdentifier, you will be notified of events generated from all RDS sources belonging to your customer account.

", - "CreateOptionGroup": "

Creates a new Option Group. You can create up to 20 option groups.

", - "DeleteDBInstance": "

The DeleteDBInstance action deletes a previously provisioned DB instance. A successful response from the web service indicates the request was received correctly. When you delete a DB instance, all automated backups for that instance are deleted and cannot be recovered. Manual DB Snapshots of the DB instance to be deleted are not deleted.

If a final DBSnapshot is requested the status of the RDS instance will be \"deleting\" until the DBSnapshot is created. DescribeDBInstance is used to monitor the status of this operation. This cannot be canceled or reverted once submitted.

", - "DeleteDBParameterGroup": "

Deletes a specified DBParameterGroup. The DBParameterGroup cannot be associated with any RDS instances to be deleted.

The specified DB Parameter Group cannot be associated with any DB Instances. ", - "DeleteDBSecurityGroup": "

Deletes a DB Security Group.

The specified DB Security Group must not be associated with any DB Instances.", - "DeleteDBSnapshot": "

Deletes a DBSnapshot.

The DBSnapshot must be in the available state to be deleted.", - "DeleteDBSubnetGroup": "

Deletes a DB subnet group.

The specified database subnet group must not be associated with any DB instances.", - "DeleteEventSubscription": "

Deletes an RDS event notification subscription.

", - "DeleteOptionGroup": "

Deletes an existing Option Group.

", - "DescribeDBEngineVersions": "

Returns a list of the available DB engines.

", - "DescribeDBInstances": "

Returns information about provisioned RDS instances. This API supports pagination.

", - "DescribeDBLogFiles": "

Returns a list of DB log files for the DB instance.

", - "DescribeDBParameterGroups": "

Returns a list of DBParameterGroup descriptions. If a DBParameterGroupName is specified, the list will contain only the description of the specified DBParameterGroup.

", - "DescribeDBParameters": "

Returns the detailed parameter list for a particular DBParameterGroup.

", - "DescribeDBSecurityGroups": "

Returns a list of DBSecurityGroup descriptions. If a DBSecurityGroupName is specified, the list will contain only the descriptions of the specified DBSecurityGroup.

For an overview of CIDR ranges, go to the Wikipedia Tutorial.

", - "DescribeDBSnapshots": "

Returns information about DBSnapshots. This API supports pagination.

", - "DescribeDBSubnetGroups": "

Returns a list of DBSubnetGroup descriptions. If a DBSubnetGroupName is specified, the list will contain only the descriptions of the specified DBSubnetGroup.

For an overview of CIDR ranges, go to the Wikipedia Tutorial.

", - "DescribeEngineDefaultParameters": "

Returns the default engine and system parameter information for the specified database engine.

", - "DescribeEventCategories": "

Displays a list of categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in the Events topic in the Amazon RDS User Guide.

", - "DescribeEventSubscriptions": "

Lists all the subscription descriptions for a customer account. The description for a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType, SourceID, CreationTime, and Status.

If you specify a SubscriptionName, lists the description for that subscription.

", - "DescribeEvents": "

Returns events related to DB Instances, DB Security Groups, DB Snapshots and DB Parameter Groups for the past 14 days. Events specific to a particular DB Instance, DB Security Group, database snapshot or DB Parameter Group can be obtained by providing the name as a parameter. By default, the past hour of events are returned.

", - "DescribeOptionGroupOptions": "

Describes all available options.

", - "DescribeOptionGroups": "

Describes the available option groups.

", - "DescribeOrderableDBInstanceOptions": "

Returns a list of orderable DB Instance options for the specified engine.

", - "DescribeReservedDBInstances": "

Returns information about reserved DB Instances for this account, or about a specified reserved DB Instance.

", - "DescribeReservedDBInstancesOfferings": "

Lists available reserved DB Instance offerings.

", - "DownloadDBLogFilePortion": "

Downloads the last line of the specified log file.

", - "ListTagsForResource": "

Lists all tags on a DB Instance.

", - "ModifyDBInstance": "

Modify settings for a DB Instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.

", - "ModifyDBParameterGroup": "

Modifies the parameters of a DBParameterGroup. To modify more than one parameter submit a list of the following: ParameterName, ParameterValue, and ApplyMethod. A maximum of 20 parameters can be modified in a single request.

The apply-immediate method can be used only for dynamic parameters; the pending-reboot method can be used with MySQL and Oracle DB Instances for either dynamic or static parameters. For Microsoft SQL Server DB Instances, the pending-reboot method can be used only for static parameters.

", - "ModifyDBSubnetGroup": "

Modifies an existing DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region.

", - "ModifyEventSubscription": "

Modifies an existing RDS event notification subscription. Note that you cannot modify the source identifiers using this call; to change source identifiers for a subscription, use the AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription calls.

You can see a list of the event categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

", - "ModifyOptionGroup": "

Modifies an existing Option Group.

", - "PromoteReadReplica": "

Promotes a Read Replica DB Instance to a standalone DB Instance.

", - "PurchaseReservedDBInstancesOffering": "

Purchases a reserved DB Instance offering.

", - "RebootDBInstance": "

Reboots a previously provisioned RDS instance. This API results in the application of modified DBParameterGroup parameters with ApplyStatus of pending-reboot to the RDS instance. This action is taken as soon as possible, and results in a momentary outage to the RDS instance during which the RDS instance status is set to rebooting. If the RDS instance is configured for MultiAZ, it is possible that the reboot will be conducted through a failover. A DBInstance event is created when the reboot is completed.

", - "RemoveSourceIdentifierFromSubscription": "

Removes a source identifier from an existing RDS event notification subscription.

", - "RemoveTagsFromResource": "

Removes metadata tags from a DB Instance.

", - "ResetDBParameterGroup": "

Modifies the parameters of a DBParameterGroup to the engine/system default value. To reset specific parameters submit a list of the following: ParameterName and ApplyMethod. To reset the entire DBParameterGroup specify the DBParameterGroup name and ResetAllParameters parameters. When resetting the entire group, dynamic parameters are updated immediately and static parameters are set to pending-reboot to take effect on the next DB instance restart or RebootDBInstance request.

", - "RestoreDBInstanceFromDBSnapshot": "

Creates a new DB Instance from a DB snapshot. The target database is created from the source database restore point with the same configuration as the original source database, except that the new RDS instance is created with the default security group.

", - "RestoreDBInstanceToPointInTime": "

Restores a DB Instance to an arbitrary point-in-time. Users can restore to any point in time before the latestRestorableTime for up to backupRetentionPeriod days. The target database is created from the source database with the same configuration as the original database except that the DB instance is created with the default DB security group.

", - "RevokeDBSecurityGroupIngress": "

Revokes ingress from a DBSecurityGroup for previously authorized IP ranges or EC2 or VPC Security Groups. Required parameters for this API are one of CIDRIP, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId).

" + "AddSourceIdentifierToSubscription": null, + "AddTagsToResource": null, + "AuthorizeDBSecurityGroupIngress": null, + "CopyDBSnapshot": null, + "CreateDBInstance": null, + "CreateDBInstanceReadReplica": null, + "CreateDBParameterGroup": null, + "CreateDBSecurityGroup": null, + "CreateDBSnapshot": null, + "CreateDBSubnetGroup": null, + "CreateEventSubscription": null, + "CreateOptionGroup": null, + "DeleteDBInstance": null, + "DeleteDBParameterGroup": null, + "DeleteDBSecurityGroup": null, + "DeleteDBSnapshot": null, + "DeleteDBSubnetGroup": null, + "DeleteEventSubscription": null, + "DeleteOptionGroup": null, + "DescribeDBEngineVersions": null, + "DescribeDBInstances": null, + "DescribeDBLogFiles": null, + "DescribeDBParameterGroups": null, + "DescribeDBParameters": null, + "DescribeDBSecurityGroups": null, + "DescribeDBSnapshots": null, + "DescribeDBSubnetGroups": null, + "DescribeEngineDefaultParameters": null, + "DescribeEventCategories": null, + "DescribeEventSubscriptions": null, + "DescribeEvents": null, + "DescribeOptionGroupOptions": null, + "DescribeOptionGroups": null, + "DescribeOrderableDBInstanceOptions": null, + "DescribeReservedDBInstances": null, + "DescribeReservedDBInstancesOfferings": null, + "DownloadDBLogFilePortion": null, + "ListTagsForResource": null, + "ModifyDBInstance": null, + "ModifyDBParameterGroup": null, + "ModifyDBSubnetGroup": null, + "ModifyEventSubscription": null, + "ModifyOptionGroup": null, + "PromoteReadReplica": null, + "PurchaseReservedDBInstancesOffering": null, + "RebootDBInstance": null, + "RemoveSourceIdentifierFromSubscription": null, + "RemoveTagsFromResource": null, + "ResetDBParameterGroup": null, + "RestoreDBInstanceFromDBSnapshot": null, + "RestoreDBInstanceToPointInTime": null, + "RevokeDBSecurityGroupIngress": null }, "shapes": { "AddSourceIdentifierToSubscriptionMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -67,33 +67,33 @@ } }, "AddTagsToResourceMessage": { - "base": "

", + "base": null, "refs": { } }, "ApplyMethod": { "base": null, "refs": { - "Parameter$ApplyMethod": "

Indicates when to apply parameter updates.

" + "Parameter$ApplyMethod": null } }, "AuthorizationAlreadyExistsFault": { - "base": "

The specified CIDRIP or EC2 security group is already authorized for the specified DB security group.

", + "base": "

The specified CIDRIP or EC2 security group is already authorized for the specified DB security group.

", "refs": { } }, "AuthorizationNotFoundFault": { - "base": "

Specified CIDRIP or EC2 security group is not authorized for the specified DB security group.

RDS may not also be authorized via IAM to perform necessary actions on your behalf.

", + "base": "

Specified CIDRIP or EC2 security group is not authorized for the specified DB security group.

RDS may not also be authorized via IAM to perform necessary actions on your behalf.

", "refs": { } }, "AuthorizationQuotaExceededFault": { - "base": "

DB security group authorization quota has been reached.

", + "base": "

DB security group authorization quota has been reached.

", "refs": { } }, "AuthorizeDBSecurityGroupIngressMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -103,7 +103,7 @@ } }, "AvailabilityZone": { - "base": "

Contains Availability Zone information.

This data type is used as an element in the following data type:

", + "base": null, "refs": { "AvailabilityZoneList$member": null, "Subnet$SubnetAvailabilityZone": null @@ -112,75 +112,75 @@ "AvailabilityZoneList": { "base": null, "refs": { - "OrderableDBInstanceOption$AvailabilityZones": "

A list of availability zones for the orderable DB Instance.

" + "OrderableDBInstanceOption$AvailabilityZones": null } }, "Boolean": { "base": null, "refs": { - "AvailabilityZone$ProvisionedIopsCapable": "

True indicates the availability zone is capable of provisioned IOPs.

", - "DBInstance$MultiAZ": "

Specifies if the DB Instance is a Multi-AZ deployment.

", - "DBInstance$AutoMinorVersionUpgrade": "

Indicates that minor version patches are applied automatically.

", - "DBInstance$PubliclyAccessible": "

Specifies the accessibility options for the DB Instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", - "DeleteDBInstanceMessage$SkipFinalSnapshot": "

Determines whether a final DB Snapshot is created before the DB Instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB Snapshot is created before the DB Instance is deleted.

The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot is false.

Default: false

", - "DescribeDBEngineVersionsMessage$DefaultOnly": "

Indicates that only the default version of the specified engine or engine and major version combination is returned.

", - "DownloadDBLogFilePortionDetails$AdditionalDataPending": "

Boolean value that if true, indicates there is more data to be downloaded.

", - "EventSubscription$Enabled": "

A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.

", - "ModifyDBInstanceMessage$ApplyImmediately": "

Specifies whether or not the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow setting for the DB Instance.

If this parameter is passed as false, changes to the DB Instance are applied on the next call to RebootDBInstance, the next maintenance reboot, or the next failure reboot, whichever occurs first. See each parameter to determine when a change is applied.

Default: false

", - "ModifyDBInstanceMessage$AllowMajorVersionUpgrade": "

Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

Constraints: This parameter must be set to true when specifying a value for the EngineVersion parameter that is a different major version than the DB Instance's current version.

", - "ModifyOptionGroupMessage$ApplyImmediately": "

Indicates whether the changes should be applied immediately, or during the next maintenance window for each instance associated with the Option Group.

", - "Option$Persistent": "

Indicate if this option is persistent.

", - "OptionGroup$AllowsVpcAndNonVpcInstanceMemberships": "

Indicates whether this option group can be applied to both VPC and non-VPC instances. The value 'true' indicates the option group can be applied to both VPC and non-VPC instances.

", - "OptionGroupOption$PortRequired": "

Specifies whether the option requires a port.

", - "OptionGroupOption$Persistent": "

Specifies whether the option is persistent in an option group.

", - "OptionGroupOptionSetting$IsModifiable": "

Boolean value where true indicates that this option group option can be changed from the default value.

", - "OptionSetting$IsModifiable": "

A Boolean value that, when true, indicates the option setting can be modified from the default.

", - "OptionSetting$IsCollection": "

Indicates if the option setting is part of a collection.

", - "OrderableDBInstanceOption$MultiAZCapable": "

Indicates whether this orderable DB Instance is multi-AZ capable.

", - "OrderableDBInstanceOption$ReadReplicaCapable": "

Indicates whether this orderable DB Instance can have a read replica.

", - "OrderableDBInstanceOption$Vpc": "

Indicates whether this is a VPC orderable DB Instance.

", - "Parameter$IsModifiable": "

Indicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

", - "ReservedDBInstance$MultiAZ": "

Indicates if the reservation applies to Multi-AZ deployments.

", - "ReservedDBInstancesOffering$MultiAZ": "

Indicates if the offering applies to Multi-AZ deployments.

", - "ResetDBParameterGroupMessage$ResetAllParameters": "

Specifies whether (true) or not (false) to reset all parameters in the DB Parameter Group to default values.

Default: true

", - "RestoreDBInstanceToPointInTimeMessage$UseLatestRestorableTime": "

Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.

Default: false

Constraints: Cannot be specified if RestoreTime parameter is provided.

" + "AvailabilityZone$ProvisionedIopsCapable": null, + "DBInstance$MultiAZ": null, + "DBInstance$AutoMinorVersionUpgrade": null, + "DBInstance$PubliclyAccessible": null, + "DeleteDBInstanceMessage$SkipFinalSnapshot": null, + "DescribeDBEngineVersionsMessage$DefaultOnly": null, + "DownloadDBLogFilePortionDetails$AdditionalDataPending": null, + "EventSubscription$Enabled": null, + "ModifyDBInstanceMessage$ApplyImmediately": null, + "ModifyDBInstanceMessage$AllowMajorVersionUpgrade": null, + "ModifyOptionGroupMessage$ApplyImmediately": null, + "Option$Persistent": null, + "OptionGroup$AllowsVpcAndNonVpcInstanceMemberships": null, + "OptionGroupOption$PortRequired": null, + "OptionGroupOption$Persistent": null, + "OptionGroupOptionSetting$IsModifiable": null, + "OptionSetting$IsModifiable": null, + "OptionSetting$IsCollection": null, + "OrderableDBInstanceOption$MultiAZCapable": null, + "OrderableDBInstanceOption$ReadReplicaCapable": null, + "OrderableDBInstanceOption$Vpc": null, + "Parameter$IsModifiable": null, + "ReservedDBInstance$MultiAZ": null, + "ReservedDBInstancesOffering$MultiAZ": null, + "ResetDBParameterGroupMessage$ResetAllParameters": null, + "RestoreDBInstanceToPointInTimeMessage$UseLatestRestorableTime": null } }, "BooleanOptional": { "base": null, "refs": { - "CreateDBInstanceMessage$MultiAZ": "

Specifies if the DB Instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the MultiAZ parameter is set to true.

", - "CreateDBInstanceMessage$AutoMinorVersionUpgrade": "

Indicates that minor engine upgrades will be applied automatically to the DB Instance during the maintenance window.

Default: true

", - "CreateDBInstanceMessage$PubliclyAccessible": "

Specifies the accessibility options for the DB Instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", - "CreateDBInstanceReadReplicaMessage$AutoMinorVersionUpgrade": "

Indicates that minor engine upgrades will be applied automatically to the Read Replica during the maintenance window.

Default: Inherits from the source DB Instance

", - "CreateDBInstanceReadReplicaMessage$PubliclyAccessible": "

Specifies the accessibility options for the DB Instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", - "CreateEventSubscriptionMessage$Enabled": "

A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.

", - "DescribeDBEngineVersionsMessage$ListSupportedCharacterSets": "

If this parameter is specified, and if the requested engine supports the CharacterSetName parameter for CreateDBInstance, the response includes a list of supported character sets for each engine version.

", - "DescribeOrderableDBInstanceOptionsMessage$Vpc": "

The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.

", - "DescribeReservedDBInstancesMessage$MultiAZ": "

The Multi-AZ filter value. Specify this parameter to show only those reservations matching the specified Multi-AZ parameter.

", - "DescribeReservedDBInstancesOfferingsMessage$MultiAZ": "

The Multi-AZ filter value. Specify this parameter to show only the available offerings matching the specified Multi-AZ parameter.

", - "ModifyDBInstanceMessage$MultiAZ": "

Specifies if the DB Instance is a Multi-AZ deployment. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

Constraints: Cannot be specified if the DB Instance is a read replica.

", - "ModifyDBInstanceMessage$AutoMinorVersionUpgrade": "

Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window. Changing this parameter does not result in an outage except in the following case and the change is asynchronously applied as soon as possible. An outage will result if this parameter is set to true during the maintenance window, and a newer minor version is available, and RDS has enabled auto patching for that engine version.

", - "ModifyEventSubscriptionMessage$Enabled": "

A Boolean value; set to true to activate the subscription.

", - "PendingModifiedValues$MultiAZ": "

Indicates that the Single-AZ DB Instance is to change to a Multi-AZ deployment.

", - "RebootDBInstanceMessage$ForceFailover": "

When true, the reboot will be conducted through a MultiAZ failover.

Constraint: You cannot specify true if the instance is not configured for MultiAZ.

", - "RestoreDBInstanceFromDBSnapshotMessage$MultiAZ": "

Specifies if the DB Instance is a Multi-AZ deployment.

Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

", - "RestoreDBInstanceFromDBSnapshotMessage$PubliclyAccessible": "

Specifies the accessibility options for the DB Instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", - "RestoreDBInstanceFromDBSnapshotMessage$AutoMinorVersionUpgrade": "

Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.

", - "RestoreDBInstanceToPointInTimeMessage$MultiAZ": "

Specifies if the DB Instance is a Multi-AZ deployment.

Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

", - "RestoreDBInstanceToPointInTimeMessage$PubliclyAccessible": "

Specifies the accessibility options for the DB Instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", - "RestoreDBInstanceToPointInTimeMessage$AutoMinorVersionUpgrade": "

Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.

" + "CreateDBInstanceMessage$MultiAZ": null, + "CreateDBInstanceMessage$AutoMinorVersionUpgrade": null, + "CreateDBInstanceMessage$PubliclyAccessible": null, + "CreateDBInstanceReadReplicaMessage$AutoMinorVersionUpgrade": null, + "CreateDBInstanceReadReplicaMessage$PubliclyAccessible": null, + "CreateEventSubscriptionMessage$Enabled": null, + "DescribeDBEngineVersionsMessage$ListSupportedCharacterSets": null, + "DescribeOrderableDBInstanceOptionsMessage$Vpc": null, + "DescribeReservedDBInstancesMessage$MultiAZ": null, + "DescribeReservedDBInstancesOfferingsMessage$MultiAZ": null, + "ModifyDBInstanceMessage$MultiAZ": null, + "ModifyDBInstanceMessage$AutoMinorVersionUpgrade": null, + "ModifyEventSubscriptionMessage$Enabled": null, + "PendingModifiedValues$MultiAZ": null, + "RebootDBInstanceMessage$ForceFailover": null, + "RestoreDBInstanceFromDBSnapshotMessage$MultiAZ": null, + "RestoreDBInstanceFromDBSnapshotMessage$PubliclyAccessible": null, + "RestoreDBInstanceFromDBSnapshotMessage$AutoMinorVersionUpgrade": null, + "RestoreDBInstanceToPointInTimeMessage$MultiAZ": null, + "RestoreDBInstanceToPointInTimeMessage$PubliclyAccessible": null, + "RestoreDBInstanceToPointInTimeMessage$AutoMinorVersionUpgrade": null } }, "CharacterSet": { - "base": "

This data type is used as a response element in the action DescribeDBEngineVersions.

", + "base": null, "refs": { - "DBEngineVersion$DefaultCharacterSet": "

The default character set for new instances of this engine version, if the CharacterSetName parameter of the CreateDBInstance API is not specified.

", + "DBEngineVersion$DefaultCharacterSet": null, "SupportedCharacterSetsList$member": null } }, "CopyDBSnapshotMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -190,7 +190,7 @@ } }, "CreateDBInstanceMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -210,7 +210,7 @@ } }, "CreateDBParameterGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -220,7 +220,7 @@ } }, "CreateDBSecurityGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -230,7 +230,7 @@ } }, "CreateDBSnapshotMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -240,7 +240,7 @@ } }, "CreateDBSubnetGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -250,7 +250,7 @@ } }, "CreateEventSubscriptionMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -260,7 +260,7 @@ } }, "CreateOptionGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -270,7 +270,7 @@ } }, "DBEngineVersion": { - "base": "

This data type is used as a response element in the action DescribeDBEngineVersions.

", + "base": null, "refs": { "DBEngineVersionList$member": null } @@ -278,16 +278,16 @@ "DBEngineVersionList": { "base": null, "refs": { - "DBEngineVersionMessage$DBEngineVersions": "

A list of DBEngineVersion elements.

" + "DBEngineVersionMessage$DBEngineVersions": null } }, "DBEngineVersionMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBEngineVersions action.

", + "base": null, "refs": { } }, "DBInstance": { - "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBInstances action.

", + "base": null, "refs": { "CreateDBInstanceReadReplicaResult$DBInstance": null, "CreateDBInstanceResult$DBInstance": null, @@ -301,18 +301,18 @@ } }, "DBInstanceAlreadyExistsFault": { - "base": "

User already has a DB instance with the given identifier.

", + "base": "

User already has a DB instance with the given identifier.

", "refs": { } }, "DBInstanceList": { "base": null, "refs": { - "DBInstanceMessage$DBInstances": "

A list of DBInstance instances.

" + "DBInstanceMessage$DBInstances": null } }, "DBInstanceMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBInstances action.

", + "base": null, "refs": { } }, @@ -322,35 +322,35 @@ } }, "DBLogFileNotFoundFault": { - "base": "

LogFileName does not refer to an existing DB log file.

", + "base": "

LogFileName does not refer to an existing DB log file.

", "refs": { } }, "DBParameterGroup": { - "base": "

Contains the result of a successful invocation of the CreateDBParameterGroup action.

This data type is used as a request parameter in the DeleteDBParameterGroup action, and as a response element in the DescribeDBParameterGroups action.

", + "base": null, "refs": { "CreateDBParameterGroupResult$DBParameterGroup": null, "DBParameterGroupList$member": null } }, "DBParameterGroupAlreadyExistsFault": { - "base": "

A DB parameter group with the same name exists.

", + "base": "

A DB parameter group with the same name exists.

", "refs": { } }, "DBParameterGroupDetails": { - "base": "

Contains the result of a successful invocation of the DescribeDBParameters action.

", + "base": null, "refs": { } }, "DBParameterGroupList": { "base": null, "refs": { - "DBParameterGroupsMessage$DBParameterGroups": "

A list of DBParameterGroup instances.

" + "DBParameterGroupsMessage$DBParameterGroups": null } }, "DBParameterGroupNameMessage": { - "base": "

Contains the result of a successful invocation of the ModifyDBParameterGroup or ResetDBParameterGroup action.

", + "base": null, "refs": { } }, @@ -360,12 +360,12 @@ } }, "DBParameterGroupQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of DB parameter groups.

", + "base": "

Request would result in user exceeding the allowed number of DB parameter groups.

", "refs": { } }, "DBParameterGroupStatus": { - "base": "

The status of the DB Parameter Group.

This data type is used as a response element in the following actions:

", + "base": null, "refs": { "DBParameterGroupStatusList$member": null } @@ -373,16 +373,16 @@ "DBParameterGroupStatusList": { "base": null, "refs": { - "DBInstance$DBParameterGroups": "

Provides the list of DB Parameter Groups applied to this DB Instance.

" + "DBInstance$DBParameterGroups": null } }, "DBParameterGroupsMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBParameterGroups action.

", + "base": null, "refs": { } }, "DBSecurityGroup": { - "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBSecurityGroups action.

", + "base": null, "refs": { "AuthorizeDBSecurityGroupIngressResult$DBSecurityGroup": null, "CreateDBSecurityGroupResult$DBSecurityGroup": null, @@ -396,7 +396,7 @@ } }, "DBSecurityGroupMembership": { - "base": "

This data type is used as a response element in the following actions:

", + "base": null, "refs": { "DBSecurityGroupMembershipList$member": null } @@ -404,21 +404,21 @@ "DBSecurityGroupMembershipList": { "base": null, "refs": { - "DBInstance$DBSecurityGroups": "

Provides List of DB Security Group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.

", - "Option$DBSecurityGroupMemberships": "

If the option requires access to a port, then this DB Security Group allows access to the port.

" + "DBInstance$DBSecurityGroups": null, + "Option$DBSecurityGroupMemberships": null } }, "DBSecurityGroupMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBSecurityGroups action.

", + "base": null, "refs": { } }, "DBSecurityGroupNameList": { "base": null, "refs": { - "CreateDBInstanceMessage$DBSecurityGroups": "

A list of DB Security Groups to associate with this DB Instance.

Default: The default DB Security Group for the database engine.

", - "ModifyDBInstanceMessage$DBSecurityGroups": "

A list of DB Security Groups to authorize on this DB Instance. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "OptionConfiguration$DBSecurityGroupMemberships": "

A list of DBSecurityGroupMemebrship name strings used for this option.

" + "CreateDBInstanceMessage$DBSecurityGroups": null, + "ModifyDBInstanceMessage$DBSecurityGroups": null, + "OptionConfiguration$DBSecurityGroupMemberships": null } }, "DBSecurityGroupNotFoundFault": { @@ -427,23 +427,23 @@ } }, "DBSecurityGroupNotSupportedFault": { - "base": "

A DB security group is not allowed for this action.

", + "base": "

A DB security group is not allowed for this action.

", "refs": { } }, "DBSecurityGroupQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of DB security groups.

", + "base": "

Request would result in user exceeding the allowed number of DB security groups.

", "refs": { } }, "DBSecurityGroups": { "base": null, "refs": { - "DBSecurityGroupMessage$DBSecurityGroups": "

A list of DBSecurityGroup instances.

" + "DBSecurityGroupMessage$DBSecurityGroups": null } }, "DBSnapshot": { - "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBSnapshots action.

", + "base": null, "refs": { "CopyDBSnapshotResult$DBSnapshot": null, "CreateDBSnapshotResult$DBSnapshot": null, @@ -459,11 +459,11 @@ "DBSnapshotList": { "base": null, "refs": { - "DBSnapshotMessage$DBSnapshots": "

A list of DBSnapshot instances.

" + "DBSnapshotMessage$DBSnapshots": null } }, "DBSnapshotMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBSnapshots action.

", + "base": null, "refs": { } }, @@ -473,10 +473,10 @@ } }, "DBSubnetGroup": { - "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBSubnetGroups action.

", + "base": null, "refs": { "CreateDBSubnetGroupResult$DBSubnetGroup": null, - "DBInstance$DBSubnetGroup": "

Provides the inforamtion of the subnet group associated with the DB instance, including the name, descrption and subnets in the subnet group.

", + "DBInstance$DBSubnetGroup": null, "DBSubnetGroups$member": null, "ModifyDBSubnetGroupResult$DBSubnetGroup": null } @@ -487,12 +487,12 @@ } }, "DBSubnetGroupDoesNotCoverEnoughAZs": { - "base": "

Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one Availability Zone.

", + "base": "

Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one Availability Zone.

", "refs": { } }, "DBSubnetGroupMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBSubnetGroups action.

", + "base": null, "refs": { } }, @@ -502,28 +502,28 @@ } }, "DBSubnetGroupQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of DB subnet groups.

", + "base": "

Request would result in user exceeding the allowed number of DB subnet groups.

", "refs": { } }, "DBSubnetGroups": { "base": null, "refs": { - "DBSubnetGroupMessage$DBSubnetGroups": "

A list of DBSubnetGroup instances.

" + "DBSubnetGroupMessage$DBSubnetGroups": null } }, "DBSubnetQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of subnets in a DB subnet groups.

", + "base": "

Request would result in user exceeding the allowed number of subnets in a DB subnet groups.

", "refs": { } }, "DBUpgradeDependencyFailureFault": { - "base": "

The DB upgrade failed because a resource the DB depends on could not be modified.

", + "base": "

The DB upgrade failed because a resource the DB depends on could not be modified.

", "refs": { } }, "DeleteDBInstanceMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -533,17 +533,17 @@ } }, "DeleteDBParameterGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "DeleteDBSecurityGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "DeleteDBSnapshotMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -553,12 +553,12 @@ } }, "DeleteDBSubnetGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "DeleteEventSubscriptionMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -568,7 +568,7 @@ } }, "DeleteOptionGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -578,12 +578,12 @@ } }, "DescribeDBInstancesMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeDBLogFilesDetails": { - "base": "

This data type is used as a response element to DescribeDBLogFiles.

", + "base": null, "refs": { "DescribeDBLogFilesList$member": null } @@ -591,21 +591,21 @@ "DescribeDBLogFilesList": { "base": null, "refs": { - "DescribeDBLogFilesResponse$DescribeDBLogFiles": "

The DB log files returned.

" + "DescribeDBLogFilesResponse$DescribeDBLogFiles": null } }, "DescribeDBLogFilesMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeDBLogFilesResponse": { - "base": "

The response from a call to DescribeDBLogFiles.

", + "base": null, "refs": { } }, "DescribeDBParameterGroupsMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -615,22 +615,22 @@ } }, "DescribeDBSecurityGroupsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeDBSnapshotsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeDBSubnetGroupsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeEngineDefaultParametersMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -640,67 +640,67 @@ } }, "DescribeEventCategoriesMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeEventSubscriptionsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeEventsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeOptionGroupOptionsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeOptionGroupsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeOrderableDBInstanceOptionsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeReservedDBInstancesMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeReservedDBInstancesOfferingsMessage": { - "base": "

", + "base": null, "refs": { } }, "Double": { "base": null, "refs": { - "RecurringCharge$RecurringChargeAmount": "

The amount of the recurring charge.

", - "ReservedDBInstance$FixedPrice": "

The fixed price charged for this reserved DB Instance.

", - "ReservedDBInstance$UsagePrice": "

The hourly price charged for this reserved DB Instance.

", - "ReservedDBInstancesOffering$FixedPrice": "

The fixed price charged for this offering.

", - "ReservedDBInstancesOffering$UsagePrice": "

The hourly price charged for this offering.

" + "RecurringCharge$RecurringChargeAmount": null, + "ReservedDBInstance$FixedPrice": null, + "ReservedDBInstance$UsagePrice": null, + "ReservedDBInstancesOffering$FixedPrice": null, + "ReservedDBInstancesOffering$UsagePrice": null } }, "DownloadDBLogFilePortionDetails": { - "base": "

This data type is used as a response element to DownloadDBLogFilePortion.

", + "base": null, "refs": { } }, "DownloadDBLogFilePortionMessage": { - "base": "

", + "base": null, "refs": { } }, "EC2SecurityGroup": { - "base": "

This data type is used as a response element in the following actions:

", + "base": null, "refs": { "EC2SecurityGroupList$member": null } @@ -708,23 +708,23 @@ "EC2SecurityGroupList": { "base": null, "refs": { - "DBSecurityGroup$EC2SecurityGroups": "

Contains a list of EC2SecurityGroup elements.

" + "DBSecurityGroup$EC2SecurityGroups": null } }, "Endpoint": { - "base": "

This data type is used as a response element in the following actions:

", + "base": null, "refs": { - "DBInstance$Endpoint": "

Specifies the connection endpoint.

" + "DBInstance$Endpoint": null } }, "EngineDefaults": { - "base": "

Contains the result of a successful invocation of the DescribeEngineDefaultParameters action.

", + "base": null, "refs": { "DescribeEngineDefaultParametersResult$EngineDefaults": null } }, "Event": { - "base": "

This data type is used as a response element in the DescribeEvents action.

", + "base": null, "refs": { "EventList$member": null } @@ -732,16 +732,16 @@ "EventCategoriesList": { "base": null, "refs": { - "CreateEventSubscriptionMessage$EventCategories": "

A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

", - "DescribeEventsMessage$EventCategories": "

A list of event categories that trigger notifications for a event notification subscription.

", - "Event$EventCategories": "

Specifies the category for the event.

", - "EventCategoriesMap$EventCategories": "

The event categories for the specified source type

", - "EventSubscription$EventCategoriesList": "

A list of event categories for the RDS event notification subscription.

", - "ModifyEventSubscriptionMessage$EventCategories": "

A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

" + "CreateEventSubscriptionMessage$EventCategories": null, + "DescribeEventsMessage$EventCategories": null, + "Event$EventCategories": null, + "EventCategoriesMap$EventCategories": null, + "EventSubscription$EventCategoriesList": null, + "ModifyEventSubscriptionMessage$EventCategories": null } }, "EventCategoriesMap": { - "base": "

Contains the results of a successful invocation of the DescribeEventCategories action.

", + "base": null, "refs": { "EventCategoriesMapList$member": null } @@ -749,22 +749,22 @@ "EventCategoriesMapList": { "base": null, "refs": { - "EventCategoriesMessage$EventCategoriesMapList": "

A list of EventCategoriesMap data types.

" + "EventCategoriesMessage$EventCategoriesMapList": null } }, "EventCategoriesMessage": { - "base": "

Data returned from the DescribeEventCategories action.

", + "base": null, "refs": { } }, "EventList": { "base": null, "refs": { - "EventsMessage$Events": "

A list of Event instances.

" + "EventsMessage$Events": null } }, "EventSubscription": { - "base": "

Contains the results of a successful invocation of the DescribeEventSubscriptions action.

", + "base": null, "refs": { "AddSourceIdentifierToSubscriptionResult$EventSubscription": null, "CreateEventSubscriptionResult$EventSubscription": null, @@ -782,21 +782,21 @@ "EventSubscriptionsList": { "base": null, "refs": { - "EventSubscriptionsMessage$EventSubscriptionsList": "

A list of EventSubscriptions data types.

" + "EventSubscriptionsMessage$EventSubscriptionsList": null } }, "EventSubscriptionsMessage": { - "base": "

Data returned by the DescribeEventSubscriptions action.

", + "base": null, "refs": { } }, "EventsMessage": { - "base": "

Contains the result of a successful invocation of the DescribeEvents action.

", + "base": null, "refs": { } }, "IPRange": { - "base": "

This data type is used as a response element in the DescribeDBSecurityGroups action.

", + "base": null, "refs": { "IPRangeList$member": null } @@ -804,77 +804,77 @@ "IPRangeList": { "base": null, "refs": { - "DBSecurityGroup$IPRanges": "

Contains a list of IPRange elements.

" + "DBSecurityGroup$IPRanges": null } }, "InstanceQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of DB instances.

", + "base": "

Request would result in user exceeding the allowed number of DB instances.

", "refs": { } }, "InsufficientDBInstanceCapacityFault": { - "base": "

Specified DB instance class is not available in the specified Availability Zone.

", + "base": "

Specified DB instance class is not available in the specified Availability Zone.

", "refs": { } }, "Integer": { "base": null, "refs": { - "DBInstance$AllocatedStorage": "

Specifies the allocated storage size specified in gigabytes.

", - "DBInstance$BackupRetentionPeriod": "

Specifies the number of days for which automatic DB Snapshots are retained.

", - "DBSnapshot$AllocatedStorage": "

Specifies the allocated storage size in gigabytes (GB).

", - "DBSnapshot$Port": "

Specifies the port that the database engine was listening on at the time of the snapshot.

", - "DownloadDBLogFilePortionMessage$NumberOfLines": "

The number of lines remaining to be downloaded.

", - "Endpoint$Port": "

Specifies the port that the database engine is listening on.

", - "ReservedDBInstance$Duration": "

The duration of the reservation in seconds.

", - "ReservedDBInstance$DBInstanceCount": "

The number of reserved DB Instances.

", - "ReservedDBInstancesOffering$Duration": "

The duration of the offering in seconds.

" + "DBInstance$AllocatedStorage": null, + "DBInstance$BackupRetentionPeriod": null, + "DBSnapshot$AllocatedStorage": null, + "DBSnapshot$Port": null, + "DownloadDBLogFilePortionMessage$NumberOfLines": null, + "Endpoint$Port": null, + "ReservedDBInstance$Duration": null, + "ReservedDBInstance$DBInstanceCount": null, + "ReservedDBInstancesOffering$Duration": null } }, "IntegerOptional": { "base": null, "refs": { - "CreateDBInstanceMessage$AllocatedStorage": "

The amount of storage (in gigabytes) to be initially allocated for the database instance.

MySQL

Constraints: Must be an integer from 5 to 1024.

Type: Integer

Oracle

Constraints: Must be an integer from 10 to 1024.

SQL Server

Constraints: Must be an integer from 200 to 1024 (Standard Edition and Enterprise Edition) or from 30 to 1024 (Express Edition and Web Edition)

", - "CreateDBInstanceMessage$BackupRetentionPeriod": "

The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

Default: 1

Constraints:

  • Must be a value from 0 to 8
  • Cannot be set to 0 if the DB Instance is a master instance with read replicas
", - "CreateDBInstanceMessage$Port": "

The port number on which the database accepts connections.

MySQL

Default: 3306

Valid Values: 1150-65535

Type: Integer

Oracle

Default: 1521

Valid Values: 1150-65535

SQL Server

Default: 1433

Valid Values: 1150-65535 except for 1434 and 3389.

", - "CreateDBInstanceMessage$Iops": "

The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB Instance.

Constraints: Must be an integer greater than 1000.

", - "CreateDBInstanceReadReplicaMessage$Port": "

The port number that the DB Instance uses for connections.

Default: Inherits from the source DB Instance

Valid Values: 1150-65535

", - "CreateDBInstanceReadReplicaMessage$Iops": "

The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB Instance.

", - "DBInstance$Iops": "

Specifies the Provisioned IOPS (I/O operations per second) value.

", - "DBSnapshot$Iops": "

Specifies the Provisioned IOPS (I/O operations per second) value of the DB Instance at the time of the snapshot.

", - "DescribeDBEngineVersionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBInstancesMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBLogFilesMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

", - "DescribeDBParameterGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBParametersMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBSecurityGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBSnapshotsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBSubnetGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeEngineDefaultParametersMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeEventSubscriptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeEventsMessage$Duration": "

The number of minutes to retrieve events for.

Default: 60

", - "DescribeEventsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeOptionGroupOptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeOptionGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeOrderableDBInstanceOptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeReservedDBInstancesMessage$MaxRecords": "

The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeReservedDBInstancesOfferingsMessage$MaxRecords": "

The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "ModifyDBInstanceMessage$AllocatedStorage": "

The new storage capacity of the RDS instance. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

MySQL

Default: Uses existing setting

Valid Values: 5-1024

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

Type: Integer

Oracle

Default: Uses existing setting

Valid Values: 10-1024

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

SQL Server

Cannot be modified.

If you choose to migrate your DB instance from using standard storage to using Provisioned IOPS, or from using Provisioned IOPS to using standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance will be available for use, but may experience performance degradation. While the migration takes place, nightly backups for the instance will be suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.

", - "ModifyDBInstanceMessage$BackupRetentionPeriod": "

The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

Changing this parameter can result in an outage if you change from 0 to a non-zero value or from a non-zero value to 0. These changes are applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request. If you change the parameter from one non-zero value to another non-zero value, the change is asynchronously applied as soon as possible.

Default: Uses existing setting

Constraints:

  • Must be a value from 0 to 8
  • Cannot be set to 0 if the DB Instance is a master instance with read replicas or if the DB Instance is a read replica
", - "ModifyDBInstanceMessage$Iops": "

The new Provisioned IOPS (I/O operations per second) value for the RDS instance. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

Default: Uses existing setting

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

Type: Integer

If you choose to migrate your DB instance from using standard storage to using Provisioned IOPS, or from using Provisioned IOPS to using standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance will be available for use, but may experience performance degradation. While the migration takes place, nightly backups for the instance will be suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.

", - "Option$Port": "

If required, the port configured for this option to use.

", - "OptionConfiguration$Port": "

The optional port for the option.

", - "OptionGroupOption$DefaultPort": "

If the option requires a port, specifies the default port for the option.

", - "PendingModifiedValues$AllocatedStorage": "

Contains the new AllocatedStorage size for the DB Instance that will be applied or is in progress.

", - "PendingModifiedValues$Port": "

Specifies the pending port for the DB Instance.

", - "PendingModifiedValues$BackupRetentionPeriod": "

Specifies the pending number of days for which automated backups are retained.

", - "PendingModifiedValues$Iops": "

Specifies the new Provisioned IOPS value for the DB Instance that will be applied or is being applied.

", - "PromoteReadReplicaMessage$BackupRetentionPeriod": "

The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

Default: 1

Constraints:

  • Must be a value from 0 to 8
", - "PurchaseReservedDBInstancesOfferingMessage$DBInstanceCount": "

The number of instances to reserve.

Default: 1

", - "RestoreDBInstanceFromDBSnapshotMessage$Port": "

The port number on which the database accepts connections.

Default: The same port as the original DB Instance

Constraints: Value must be 1150-65535

", - "RestoreDBInstanceFromDBSnapshotMessage$Iops": "

Specifies the amount of provisioned IOPS for the DB Instance, expressed in I/O operations per second. If this parameter is not specified, the IOPS value will be taken from the backup. If this parameter is set to 0, the new instance will be converted to a non-PIOPS instance, which will take additional time, though your DB instance will be available for connections before the conversion starts.

Constraints: Must be an integer greater than 1000.

", - "RestoreDBInstanceToPointInTimeMessage$Port": "

The port number on which the database accepts connections.

Constraints: Value must be 1150-65535

Default: The same port as the original DB Instance.

", - "RestoreDBInstanceToPointInTimeMessage$Iops": "

The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB Instance.

Constraints: Must be an integer greater than 1000.

" + "CreateDBInstanceMessage$AllocatedStorage": null, + "CreateDBInstanceMessage$BackupRetentionPeriod": null, + "CreateDBInstanceMessage$Port": null, + "CreateDBInstanceMessage$Iops": null, + "CreateDBInstanceReadReplicaMessage$Port": null, + "CreateDBInstanceReadReplicaMessage$Iops": null, + "DBInstance$Iops": null, + "DBSnapshot$Iops": null, + "DescribeDBEngineVersionsMessage$MaxRecords": null, + "DescribeDBInstancesMessage$MaxRecords": null, + "DescribeDBLogFilesMessage$MaxRecords": null, + "DescribeDBParameterGroupsMessage$MaxRecords": null, + "DescribeDBParametersMessage$MaxRecords": null, + "DescribeDBSecurityGroupsMessage$MaxRecords": null, + "DescribeDBSnapshotsMessage$MaxRecords": null, + "DescribeDBSubnetGroupsMessage$MaxRecords": null, + "DescribeEngineDefaultParametersMessage$MaxRecords": null, + "DescribeEventSubscriptionsMessage$MaxRecords": null, + "DescribeEventsMessage$Duration": null, + "DescribeEventsMessage$MaxRecords": null, + "DescribeOptionGroupOptionsMessage$MaxRecords": null, + "DescribeOptionGroupsMessage$MaxRecords": null, + "DescribeOrderableDBInstanceOptionsMessage$MaxRecords": null, + "DescribeReservedDBInstancesMessage$MaxRecords": null, + "DescribeReservedDBInstancesOfferingsMessage$MaxRecords": null, + "ModifyDBInstanceMessage$AllocatedStorage": null, + "ModifyDBInstanceMessage$BackupRetentionPeriod": null, + "ModifyDBInstanceMessage$Iops": null, + "Option$Port": null, + "OptionConfiguration$Port": null, + "OptionGroupOption$DefaultPort": null, + "PendingModifiedValues$AllocatedStorage": null, + "PendingModifiedValues$Port": null, + "PendingModifiedValues$BackupRetentionPeriod": null, + "PendingModifiedValues$Iops": null, + "PromoteReadReplicaMessage$BackupRetentionPeriod": null, + "PurchaseReservedDBInstancesOfferingMessage$DBInstanceCount": null, + "RestoreDBInstanceFromDBSnapshotMessage$Port": null, + "RestoreDBInstanceFromDBSnapshotMessage$Iops": null, + "RestoreDBInstanceToPointInTimeMessage$Port": null, + "RestoreDBInstanceToPointInTimeMessage$Iops": null } }, "InvalidDBInstanceStateFault": { @@ -883,22 +883,22 @@ } }, "InvalidDBParameterGroupStateFault": { - "base": "

The DB parameter group cannot be deleted because it is in use.

", + "base": "

The DB parameter group cannot be deleted because it is in use.

", "refs": { } }, "InvalidDBSecurityGroupStateFault": { - "base": "

The state of the DB security group does not allow deletion.

", + "base": "

The state of the DB security group does not allow deletion.

", "refs": { } }, "InvalidDBSnapshotStateFault": { - "base": "

The state of the DB snapshot does not allow deletion.

", + "base": "

The state of the DB snapshot does not allow deletion.

", "refs": { } }, "InvalidDBSubnetGroupStateFault": { - "base": "

The DB subnet group cannot be deleted because it is in use.

", + "base": "

The DB subnet group cannot be deleted because it is in use.

", "refs": { } }, @@ -918,42 +918,42 @@ } }, "InvalidRestoreFault": { - "base": "

Cannot restore from vpc backup to non-vpc DB instance.

", + "base": "

Cannot restore from vpc backup to non-vpc DB instance.

", "refs": { } }, "InvalidSubnet": { - "base": "

The requested subnet is invalid, or multiple subnets were requested that are not all in a common VPC.

", + "base": "

The requested subnet is invalid, or multiple subnets were requested that are not all in a common VPC.

", "refs": { } }, "InvalidVPCNetworkStateFault": { - "base": "

DB subnet group does not cover all Availability Zones after it is created because users' change.

", + "base": "

DB subnet group does not cover all Availability Zones after it is created because users' change.

", "refs": { } }, "KeyList": { "base": null, "refs": { - "RemoveTagsFromResourceMessage$TagKeys": "

The tag key (name) of the tag to be removed.

" + "RemoveTagsFromResourceMessage$TagKeys": null } }, "ListTagsForResourceMessage": { - "base": "

", + "base": null, "refs": { } }, "Long": { "base": null, "refs": { - "DescribeDBLogFilesDetails$LastWritten": "

The date and time that the last log entry was written.

", - "DescribeDBLogFilesDetails$Size": "

The size, in bytes, of the log file for the specified DB instance.

", - "DescribeDBLogFilesMessage$FileLastWritten": "

Filters the available log files for files written since the specified date.

", - "DescribeDBLogFilesMessage$FileSize": "

Filters the available log files for files larger than the specified size.

" + "DescribeDBLogFilesDetails$LastWritten": null, + "DescribeDBLogFilesDetails$Size": null, + "DescribeDBLogFilesMessage$FileLastWritten": null, + "DescribeDBLogFilesMessage$FileSize": null } }, "ModifyDBInstanceMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -963,12 +963,12 @@ } }, "ModifyDBParameterGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "ModifyDBSubnetGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -978,7 +978,7 @@ } }, "ModifyEventSubscriptionMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -988,7 +988,7 @@ } }, "ModifyOptionGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -998,13 +998,13 @@ } }, "Option": { - "base": "

Option details.

", + "base": null, "refs": { "OptionsList$member": null } }, "OptionConfiguration": { - "base": "

A list of all available options

", + "base": null, "refs": { "OptionConfigurationList$member": null } @@ -1012,11 +1012,11 @@ "OptionConfigurationList": { "base": null, "refs": { - "ModifyOptionGroupMessage$OptionsToInclude": "

Options in this list are added to the Option Group or, if already present, the specified configuration is used to update the existing configuration.

" + "ModifyOptionGroupMessage$OptionsToInclude": null } }, "OptionGroup": { - "base": "

", + "base": null, "refs": { "CreateOptionGroupResult$OptionGroup": null, "ModifyOptionGroupResult$OptionGroup": null, @@ -1024,12 +1024,12 @@ } }, "OptionGroupAlreadyExistsFault": { - "base": "

The option group you are trying to create already exists.

", + "base": "

The option group you are trying to create already exists.

", "refs": { } }, "OptionGroupMembership": { - "base": "

Provides information on the option groups the DB instance is a member of.

", + "base": null, "refs": { "OptionGroupMembershipList$member": null } @@ -1037,22 +1037,22 @@ "OptionGroupMembershipList": { "base": null, "refs": { - "DBInstance$OptionGroupMemberships": "

Provides the list of option group memberships for this DB Instance.

" + "DBInstance$OptionGroupMemberships": null } }, "OptionGroupNotFoundFault": { - "base": "

The specified option group could not be found.

", + "base": "

The specified option group could not be found.

", "refs": { } }, "OptionGroupOption": { - "base": "

Available option.

", + "base": null, "refs": { "OptionGroupOptionsList$member": null } }, "OptionGroupOptionSetting": { - "base": "

Option Group option settings are used to display settings available for each option with their default values and other information. These values are used with the DescribeOptionGroupOptions action.

", + "base": null, "refs": { "OptionGroupOptionSettingsList$member": null } @@ -1060,44 +1060,44 @@ "OptionGroupOptionSettingsList": { "base": null, "refs": { - "OptionGroupOption$OptionGroupOptionSettings": "

Specifies the option settings that are available (and the default value) for each option in an option group.

" + "OptionGroupOption$OptionGroupOptionSettings": null } }, "OptionGroupOptionsList": { - "base": "

List of available option group options.

", + "base": null, "refs": { "OptionGroupOptionsMessage$OptionGroupOptions": null } }, "OptionGroupOptionsMessage": { - "base": "

", + "base": null, "refs": { } }, "OptionGroupQuotaExceededFault": { - "base": "

The quota of 20 option groups was exceeded for this AWS account.

", + "base": "

The quota of 20 option groups was exceeded for this AWS account.

", "refs": { } }, "OptionGroups": { - "base": "

List of option groups.

", + "base": null, "refs": { } }, "OptionGroupsList": { "base": null, "refs": { - "OptionGroups$OptionGroupsList": "

List of option groups.

" + "OptionGroups$OptionGroupsList": null } }, "OptionNamesList": { "base": null, "refs": { - "ModifyOptionGroupMessage$OptionsToRemove": "

Options in this list are removed from the Option Group.

" + "ModifyOptionGroupMessage$OptionsToRemove": null } }, "OptionSetting": { - "base": "

Option settings are the actual settings being applied or configured for that option. It is used when you modify an option group or describe option groups. For example, the NATIVE_NETWORK_ENCRYPTION option has a setting called SQLNET.ENCRYPTION_SERVER that can have several different values.

", + "base": null, "refs": { "OptionSettingConfigurationList$member": null, "OptionSettingsList$member": null @@ -1106,29 +1106,29 @@ "OptionSettingConfigurationList": { "base": null, "refs": { - "Option$OptionSettings": "

The option settings for this option.

" + "Option$OptionSettings": null } }, "OptionSettingsList": { "base": null, "refs": { - "OptionConfiguration$OptionSettings": "

The option settings to include in an option group.

" + "OptionConfiguration$OptionSettings": null } }, "OptionsDependedOn": { "base": null, "refs": { - "OptionGroupOption$OptionsDependedOn": "

List of all options that are prerequisites for this option.

" + "OptionGroupOption$OptionsDependedOn": null } }, "OptionsList": { "base": null, "refs": { - "OptionGroup$Options": "

Indicates what options are available in the option group.

" + "OptionGroup$Options": null } }, "OrderableDBInstanceOption": { - "base": "

Contains a list of available options for a DB Instance

This data type is used as a response element in the DescribeOrderableDBInstanceOptions action.

", + "base": null, "refs": { "OrderableDBInstanceOptionsList$member": null } @@ -1136,16 +1136,16 @@ "OrderableDBInstanceOptionsList": { "base": null, "refs": { - "OrderableDBInstanceOptionsMessage$OrderableDBInstanceOptions": "

An OrderableDBInstanceOption structure containing information about orderable options for the DB Instance.

" + "OrderableDBInstanceOptionsMessage$OrderableDBInstanceOptions": null } }, "OrderableDBInstanceOptionsMessage": { - "base": "

Contains the result of a successful invocation of the DescribeOrderableDBInstanceOptions action.

", + "base": null, "refs": { } }, "Parameter": { - "base": "

This data type is used as a request parameter in the ModifyDBParameterGroup and ResetDBParameterGroup actions.

This data type is used as a response element in the DescribeEngineDefaultParameters and DescribeDBParameters actions.

", + "base": null, "refs": { "ParametersList$member": null } @@ -1153,16 +1153,16 @@ "ParametersList": { "base": null, "refs": { - "DBParameterGroupDetails$Parameters": "

A list of Parameter instances.

", - "EngineDefaults$Parameters": "

Contains a list of engine default parameters.

", - "ModifyDBParameterGroupMessage$Parameters": "

An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters may be modified in a single request.

Valid Values (for the application method): immediate | pending-reboot

You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when DB Instance reboots. ", - "ResetDBParameterGroupMessage$Parameters": "

An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters may be modified in a single request.

MySQL

Valid Values (for Apply method): immediate | pending-reboot

You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when DB Instance reboots.

Oracle

Valid Values (for Apply method): pending-reboot

" + "DBParameterGroupDetails$Parameters": null, + "EngineDefaults$Parameters": null, + "ModifyDBParameterGroupMessage$Parameters": null, + "ResetDBParameterGroupMessage$Parameters": null } }, "PendingModifiedValues": { - "base": "

This data type is used as a response element in the ModifyDBInstance action.

", + "base": null, "refs": { - "DBInstance$PendingModifiedValues": "

Specifies that changes to the DB Instance are pending. This element is only included when changes are pending. Specific changes are identified by subelements.

" + "DBInstance$PendingModifiedValues": null } }, "PointInTimeRestoreNotEnabledFault": { @@ -1171,7 +1171,7 @@ } }, "PromoteReadReplicaMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1181,12 +1181,12 @@ } }, "ProvisionedIopsNotAvailableInAZFault": { - "base": "

Provisioned IOPS not available in the specified Availability Zone.

", + "base": "

Provisioned IOPS not available in the specified Availability Zone.

", "refs": { } }, "PurchaseReservedDBInstancesOfferingMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1198,11 +1198,11 @@ "ReadReplicaDBInstanceIdentifierList": { "base": null, "refs": { - "DBInstance$ReadReplicaDBInstanceIdentifiers": "

Contains one or more identifiers of the Read Replicas associated with this DB Instance.

" + "DBInstance$ReadReplicaDBInstanceIdentifiers": null } }, "RebootDBInstanceMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1212,7 +1212,7 @@ } }, "RecurringCharge": { - "base": "

This data type is used as a response element in the DescribeReservedDBInstances and DescribeReservedDBInstancesOfferings actions.

", + "base": null, "refs": { "RecurringChargeList$member": null } @@ -1220,12 +1220,12 @@ "RecurringChargeList": { "base": null, "refs": { - "ReservedDBInstance$RecurringCharges": "

The recurring price charged to run this reserved DB Instance.

", - "ReservedDBInstancesOffering$RecurringCharges": "

The recurring price charged to run this reserved DB Instance.

" + "ReservedDBInstance$RecurringCharges": null, + "ReservedDBInstancesOffering$RecurringCharges": null } }, "RemoveSourceIdentifierFromSubscriptionMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1235,45 +1235,45 @@ } }, "RemoveTagsFromResourceMessage": { - "base": "

", + "base": null, "refs": { } }, "ReservedDBInstance": { - "base": "

This data type is used as a response element in the DescribeReservedDBInstances and PurchaseReservedDBInstancesOffering actions.

", + "base": null, "refs": { "PurchaseReservedDBInstancesOfferingResult$ReservedDBInstance": null, "ReservedDBInstanceList$member": null } }, "ReservedDBInstanceAlreadyExistsFault": { - "base": "

User already has a reservation with the given identifier.

", + "base": "

User already has a reservation with the given identifier.

", "refs": { } }, "ReservedDBInstanceList": { "base": null, "refs": { - "ReservedDBInstanceMessage$ReservedDBInstances": "

A list of of reserved DB Instances.

" + "ReservedDBInstanceMessage$ReservedDBInstances": null } }, "ReservedDBInstanceMessage": { - "base": "

Contains the result of a successful invocation of the DescribeReservedDBInstances action.

", + "base": null, "refs": { } }, "ReservedDBInstanceNotFoundFault": { - "base": "

The specified reserved DB Instance not found.

", + "base": "

The specified reserved DB Instance not found.

", "refs": { } }, "ReservedDBInstanceQuotaExceededFault": { - "base": "

Request would exceed the user's DB Instance quota.

", + "base": "

Request would exceed the user's DB Instance quota.

", "refs": { } }, "ReservedDBInstancesOffering": { - "base": "

This data type is used as a response element in the DescribeReservedDBInstancesOfferings action.

", + "base": null, "refs": { "ReservedDBInstancesOfferingList$member": null } @@ -1281,26 +1281,26 @@ "ReservedDBInstancesOfferingList": { "base": null, "refs": { - "ReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferings": "

A list of reserved DB Instance offerings.

" + "ReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferings": null } }, "ReservedDBInstancesOfferingMessage": { - "base": "

Contains the result of a successful invocation of the DescribeReservedDBInstancesOfferings action.

", + "base": null, "refs": { } }, "ReservedDBInstancesOfferingNotFoundFault": { - "base": "

Specified offering does not exist.

", + "base": "

Specified offering does not exist.

", "refs": { } }, "ResetDBParameterGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "RestoreDBInstanceFromDBSnapshotMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1310,7 +1310,7 @@ } }, "RestoreDBInstanceToPointInTimeMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1320,7 +1320,7 @@ } }, "RevokeDBSecurityGroupIngressMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1345,15 +1345,15 @@ } }, "SnapshotQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of DB snapshots.

", + "base": "

Request would result in user exceeding the allowed number of DB snapshots.

", "refs": { } }, "SourceIdsList": { "base": null, "refs": { - "CreateEventSubscriptionMessage$SourceIds": "

The list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it cannot end with a hyphen or contain two consecutive hyphens.

Constraints:

  • If SourceIds are supplied, SourceType must also be provided.
  • If the source type is a DB instance, then a DBInstanceIdentifier must be supplied.
  • If the source type is a DB security group, a DBSecurityGroupName must be supplied.
  • If the source type is a DB parameter group, a DBParameterGroupName must be supplied.
  • If the source type is a DB Snapshot, a DBSnapshotIdentifier must be supplied.
", - "EventSubscription$SourceIdsList": "

A list of source Ids for the RDS event notification subscription.

" + "CreateEventSubscriptionMessage$SourceIds": null, + "EventSubscription$SourceIdsList": null } }, "SourceNotFoundFault": { @@ -1364,358 +1364,358 @@ "SourceType": { "base": null, "refs": { - "DescribeEventsMessage$SourceType": "

The event source to retrieve events for. If no value is specified, all events are returned.

", - "Event$SourceType": "

Specifies the source type for this event.

" + "DescribeEventsMessage$SourceType": null, + "Event$SourceType": null } }, "StorageQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed amount of storage available across all DB instances.

", + "base": "

Request would result in user exceeding the allowed amount of storage available across all DB instances.

", "refs": { } }, "String": { "base": null, "refs": { - "AddSourceIdentifierToSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription you want to add a source identifier to.

", - "AddSourceIdentifierToSubscriptionMessage$SourceIdentifier": "

The identifier of the event source to be added. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it cannot end with a hyphen or contain two consecutive hyphens.

Constraints:

  • If the source type is a DB instance, then a DBInstanceIdentifier must be supplied.
  • If the source type is a DB security group, a DBSecurityGroupName must be supplied.
  • If the source type is a DB parameter group, a DBParameterGroupName must be supplied.
  • If the source type is a DB Snapshot, a DBSnapshotIdentifier must be supplied.
", - "AddTagsToResourceMessage$ResourceName": "

The DB Instance the tags will be added to. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

", - "AuthorizeDBSecurityGroupIngressMessage$DBSecurityGroupName": "

The name of the DB Security Group to add authorization to.

", - "AuthorizeDBSecurityGroupIngressMessage$CIDRIP": "

The IP range to authorize.

", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupName": "

Name of the EC2 Security Group to authorize. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupId": "

Id of the EC2 Security Group to authorize. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": "

AWS Account Number of the owner of the EC2 Security Group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "AvailabilityZone$Name": "

The name of the availability zone.

", - "CharacterSet$CharacterSetName": "

The name of the character set.

", - "CharacterSet$CharacterSetDescription": "

The description of the character set.

", - "CopyDBSnapshotMessage$SourceDBSnapshotIdentifier": "

The identifier for the source DB snapshot.

Constraints:

  • Must be the identifier for a valid system snapshot in the \"available\" state.

Example: rds:mydb-2012-04-02-00-01

", - "CopyDBSnapshotMessage$TargetDBSnapshotIdentifier": "

The identifier for the copied snapshot.

Constraints:

  • Cannot be null, empty, or blank
  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-db-snapshot

", - "CreateDBInstanceMessage$DBName": "

The meaning of this parameter differs according to the database engine you use.

MySQL

The name of the database to create when the DB Instance is created. If this parameter is not specified, no database is created in the DB Instance.

Constraints:

  • Must contain 1 to 64 alphanumeric characters
  • Cannot be a word reserved by the specified database engine

Type: String

Oracle

The Oracle System ID (SID) of the created DB Instance.

Default: ORCL

Constraints:

  • Cannot be longer than 8 characters

SQL Server

Not applicable. Must be null.

", - "CreateDBInstanceMessage$DBInstanceIdentifier": "

The DB Instance identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 for SQL Server).
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: mydbinstance

", - "CreateDBInstanceMessage$DBInstanceClass": "

The compute and memory capacity of the DB Instance.

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge

", - "CreateDBInstanceMessage$Engine": "

The name of the database engine to be used for this instance.

Valid Values: MySQL | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web

", - "CreateDBInstanceMessage$MasterUsername": "

The name of master user for the client DB Instance.

MySQL

Constraints:

  • Must be 1 to 16 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word for the chosen database engine.

Type: String

Oracle

Constraints:

  • Must be 1 to 30 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word for the chosen database engine.

SQL Server

Constraints:

  • Must be 1 to 128 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word for the chosen database engine.
", - "CreateDBInstanceMessage$MasterUserPassword": "

The password for the master database user. Can be any printable ASCII character except \"/\", \"\\\", or \"@\".

Type: String

MySQL

Constraints: Must contain from 8 to 41 alphanumeric characters.

Oracle

Constraints: Must contain from 8 to 30 alphanumeric characters.

SQL Server

Constraints: Must contain from 8 to 128 alphanumeric characters.

", - "CreateDBInstanceMessage$AvailabilityZone": "

The EC2 Availability Zone that the database instance will be created in.

Default: A random, system-chosen Availability Zone in the endpoint's region.

Example: us-east-1d

Constraint: The AvailabilityZone parameter cannot be specified if the MultiAZ parameter is set to true. The specified Availability Zone must be in the same region as the current endpoint.

", - "CreateDBInstanceMessage$DBSubnetGroupName": "

A DB Subnet Group to associate with this DB Instance.

If there is no DB Subnet Group, then it is a non-VPC DB instance.

", - "CreateDBInstanceMessage$PreferredMaintenanceWindow": "

The weekly time range (in UTC) during which system maintenance can occur.

Format: ddd:hh24:mi-ddd:hh24:mi

Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute window.

", - "CreateDBInstanceMessage$DBParameterGroupName": "

The name of the DB Parameter Group to associate with this DB instance. If this argument is omitted, the default DBParameterGroup for the specified engine will be used.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "CreateDBInstanceMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

Default: A 30-minute window selected at random from an 8-hour block of time per region. The following list shows the time blocks for each region from which the default backup windows are assigned.

  • US-East (Northern Virginia) Region: 03:00-11:00 UTC
  • US-West (Northern California) Region: 06:00-14:00 UTC
  • EU (Ireland) Region: 22:00-06:00 UTC
  • Asia Pacific (Singapore) Region: 14:00-22:00 UTC
  • Asia Pacific (Tokyo) Region: 17:00-03:00 UTC

Constraints: Must be in the format hh24:mi-hh24:mi. Times should be Universal Time Coordinated (UTC). Must not conflict with the preferred maintenance window. Must be at least 30 minutes.

", - "CreateDBInstanceMessage$EngineVersion": "

The version number of the database engine to use.

MySQL

Example: 5.1.42

Type: String

Oracle

Example: 11.2.0.2.v2

Type: String

SQL Server

Example: 10.50.2789.0.v1

", - "CreateDBInstanceMessage$LicenseModel": "

License model information for this DB Instance.

Valid values: license-included | bring-your-own-license | general-public-license

", - "CreateDBInstanceMessage$OptionGroupName": "

Indicates that the DB Instance should be associated with the specified option group.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", - "CreateDBInstanceMessage$CharacterSetName": "

For supported engines, indicates that the DB Instance should be associated with the specified CharacterSet.

", - "CreateDBInstanceReadReplicaMessage$DBInstanceIdentifier": "

The DB Instance identifier of the Read Replica. This is the unique key that identifies a DB Instance. This parameter is stored as a lowercase string.

", - "CreateDBInstanceReadReplicaMessage$SourceDBInstanceIdentifier": "

The identifier of the DB Instance that will act as the source for the Read Replica. Each DB Instance can have up to five Read Replicas.

Constraints: Must be the identifier of an existing DB Instance that is not already a Read Replica DB Instance.

", - "CreateDBInstanceReadReplicaMessage$DBInstanceClass": "

The compute and memory capacity of the Read Replica.

Valid Values: db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge

Default: Inherits from the source DB Instance.

", - "CreateDBInstanceReadReplicaMessage$AvailabilityZone": "

The Amazon EC2 Availability Zone that the Read Replica will be created in.

Default: A random, system-chosen Availability Zone in the endpoint's region.

Example: us-east-1d

", - "CreateDBInstanceReadReplicaMessage$OptionGroupName": "

The option group the DB instance will be associated with. If omitted, the default Option Group for the engine specified will be used.

", - "CreateDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB Parameter Group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
This value is stored as a lower-case string.", - "CreateDBParameterGroupMessage$DBParameterGroupFamily": "

The DB Parameter Group Family name. A DB Parameter Group can be associated with one and only one DB Parameter Group Family, and can be applied only to a DB Instance running a database engine and engine version compatible with that DB Parameter Group Family.

", - "CreateDBParameterGroupMessage$Description": "

The description for the DB Parameter Group.

", - "CreateDBSecurityGroupMessage$DBSecurityGroupName": "

The name for the DB Security Group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be \"Default\".

Example: mysecuritygroup

", - "CreateDBSecurityGroupMessage$DBSecurityGroupDescription": "

The description for the DB Security Group.

", - "CreateDBSnapshotMessage$DBSnapshotIdentifier": "

The identifier for the DB Snapshot.

Constraints:

  • Cannot be null, empty, or blank
  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

", - "CreateDBSnapshotMessage$DBInstanceIdentifier": "

The DB Instance identifier. This is the unique key that identifies a DB Instance. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "CreateDBSubnetGroupMessage$DBSubnetGroupName": "

The name for the DB Subnet Group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be \"Default\".

Example: mySubnetgroup

", - "CreateDBSubnetGroupMessage$DBSubnetGroupDescription": "

The description for the DB Subnet Group.

", - "CreateEventSubscriptionMessage$SubscriptionName": "

The name of the subscription.

Constraints: The name must be less than 255 characters.

", - "CreateEventSubscriptionMessage$SnsTopicArn": "

The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

", - "CreateEventSubscriptionMessage$SourceType": "

The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

", - "CreateOptionGroupMessage$OptionGroupName": "

Specifies the name of the option group to be created.

Constraints:

  • Must be 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: myOptiongroup

", - "CreateOptionGroupMessage$EngineName": "

Specifies the name of the engine that this option group should be associated with.

", - "CreateOptionGroupMessage$MajorEngineVersion": "

Specifies the major version of the engine that this option group should be associated with.

", - "CreateOptionGroupMessage$OptionGroupDescription": "

The description of the option group.

", - "DBEngineVersion$Engine": "

The name of the database engine.

", - "DBEngineVersion$EngineVersion": "

The version number of the database engine.

", - "DBEngineVersion$DBParameterGroupFamily": "

The name of the DBParameterGroupFamily for the database engine.

", - "DBEngineVersion$DBEngineDescription": "

The description of the database engine.

", - "DBEngineVersion$DBEngineVersionDescription": "

The description of the database engine version.

", - "DBEngineVersionMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DBInstance$DBInstanceIdentifier": "

Contains a user-supplied database identifier. This is the unique key that identifies a DB Instance.

", - "DBInstance$DBInstanceClass": "

Contains the name of the compute and memory capacity class of the DB Instance.

", - "DBInstance$Engine": "

Provides the name of the database engine to be used for this DB Instance.

", - "DBInstance$DBInstanceStatus": "

Specifies the current state of this database.

", - "DBInstance$MasterUsername": "

Contains the master username for the DB Instance.

", - "DBInstance$DBName": "

The meaning of this parameter differs according to the database engine you use.

MySQL

Contains the name of the initial database of this instance that was provided at create time, if one was specified when the DB Instance was created. This same name is returned for the life of the DB Instance.

Type: String

Oracle

Contains the Oracle System ID (SID) of the created DB Instance.

", - "DBInstance$PreferredBackupWindow": "

Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.

", - "DBInstance$AvailabilityZone": "

Specifies the name of the Availability Zone the DB Instance is located in.

", - "DBInstance$PreferredMaintenanceWindow": "

Specifies the weekly time range (in UTC) during which system maintenance can occur.

", - "DBInstance$EngineVersion": "

Indicates the database engine version.

", - "DBInstance$ReadReplicaSourceDBInstanceIdentifier": "

Contains the identifier of the source DB Instance if this DB Instance is a Read Replica.

", - "DBInstance$LicenseModel": "

License model information for this DB Instance.

", - "DBInstance$CharacterSetName": "

If present, specifies the name of the character set that this instance is associated with.

", - "DBInstance$SecondaryAvailabilityZone": "

If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.

", - "DBInstanceMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "DBParameterGroup$DBParameterGroupName": "

Provides the name of the DB Parameter Group.

", - "DBParameterGroup$DBParameterGroupFamily": "

Provides the name of the DB Parameter Group Family that this DB Parameter Group is compatible with.

", - "DBParameterGroup$Description": "

Provides the customer-specified description for this DB Parameter Group.

", - "DBParameterGroupDetails$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DBParameterGroupNameMessage$DBParameterGroupName": "

The name of the DB Parameter Group.

", - "DBParameterGroupStatus$DBParameterGroupName": "

The name of the DP Parameter Group.

", - "DBParameterGroupStatus$ParameterApplyStatus": "

The status of parameter updates.

", - "DBParameterGroupsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DBSecurityGroup$OwnerId": "

Provides the AWS ID of the owner of a specific DB Security Group.

", - "DBSecurityGroup$DBSecurityGroupName": "

Specifies the name of the DB Security Group.

", - "DBSecurityGroup$DBSecurityGroupDescription": "

Provides the description of the DB Security Group.

", - "DBSecurityGroup$VpcId": "

Provides the VpcId of the DB Security Group.

", - "DBSecurityGroupMembership$DBSecurityGroupName": "

The name of the DB Security Group.

", - "DBSecurityGroupMembership$Status": "

The status of the DB Security Group.

", - "DBSecurityGroupMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", + "AddSourceIdentifierToSubscriptionMessage$SubscriptionName": null, + "AddSourceIdentifierToSubscriptionMessage$SourceIdentifier": null, + "AddTagsToResourceMessage$ResourceName": null, + "AuthorizeDBSecurityGroupIngressMessage$DBSecurityGroupName": null, + "AuthorizeDBSecurityGroupIngressMessage$CIDRIP": null, + "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupName": null, + "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupId": null, + "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": null, + "AvailabilityZone$Name": null, + "CharacterSet$CharacterSetName": null, + "CharacterSet$CharacterSetDescription": null, + "CopyDBSnapshotMessage$SourceDBSnapshotIdentifier": null, + "CopyDBSnapshotMessage$TargetDBSnapshotIdentifier": null, + "CreateDBInstanceMessage$DBName": null, + "CreateDBInstanceMessage$DBInstanceIdentifier": null, + "CreateDBInstanceMessage$DBInstanceClass": null, + "CreateDBInstanceMessage$Engine": null, + "CreateDBInstanceMessage$MasterUsername": null, + "CreateDBInstanceMessage$MasterUserPassword": null, + "CreateDBInstanceMessage$AvailabilityZone": null, + "CreateDBInstanceMessage$DBSubnetGroupName": null, + "CreateDBInstanceMessage$PreferredMaintenanceWindow": null, + "CreateDBInstanceMessage$DBParameterGroupName": null, + "CreateDBInstanceMessage$PreferredBackupWindow": null, + "CreateDBInstanceMessage$EngineVersion": null, + "CreateDBInstanceMessage$LicenseModel": null, + "CreateDBInstanceMessage$OptionGroupName": null, + "CreateDBInstanceMessage$CharacterSetName": null, + "CreateDBInstanceReadReplicaMessage$DBInstanceIdentifier": null, + "CreateDBInstanceReadReplicaMessage$SourceDBInstanceIdentifier": null, + "CreateDBInstanceReadReplicaMessage$DBInstanceClass": null, + "CreateDBInstanceReadReplicaMessage$AvailabilityZone": null, + "CreateDBInstanceReadReplicaMessage$OptionGroupName": null, + "CreateDBParameterGroupMessage$DBParameterGroupName": null, + "CreateDBParameterGroupMessage$DBParameterGroupFamily": null, + "CreateDBParameterGroupMessage$Description": null, + "CreateDBSecurityGroupMessage$DBSecurityGroupName": null, + "CreateDBSecurityGroupMessage$DBSecurityGroupDescription": null, + "CreateDBSnapshotMessage$DBSnapshotIdentifier": null, + "CreateDBSnapshotMessage$DBInstanceIdentifier": null, + "CreateDBSubnetGroupMessage$DBSubnetGroupName": null, + "CreateDBSubnetGroupMessage$DBSubnetGroupDescription": null, + "CreateEventSubscriptionMessage$SubscriptionName": null, + "CreateEventSubscriptionMessage$SnsTopicArn": null, + "CreateEventSubscriptionMessage$SourceType": null, + "CreateOptionGroupMessage$OptionGroupName": null, + "CreateOptionGroupMessage$EngineName": null, + "CreateOptionGroupMessage$MajorEngineVersion": null, + "CreateOptionGroupMessage$OptionGroupDescription": null, + "DBEngineVersion$Engine": null, + "DBEngineVersion$EngineVersion": null, + "DBEngineVersion$DBParameterGroupFamily": null, + "DBEngineVersion$DBEngineDescription": null, + "DBEngineVersion$DBEngineVersionDescription": null, + "DBEngineVersionMessage$Marker": null, + "DBInstance$DBInstanceIdentifier": null, + "DBInstance$DBInstanceClass": null, + "DBInstance$Engine": null, + "DBInstance$DBInstanceStatus": null, + "DBInstance$MasterUsername": null, + "DBInstance$DBName": null, + "DBInstance$PreferredBackupWindow": null, + "DBInstance$AvailabilityZone": null, + "DBInstance$PreferredMaintenanceWindow": null, + "DBInstance$EngineVersion": null, + "DBInstance$ReadReplicaSourceDBInstanceIdentifier": null, + "DBInstance$LicenseModel": null, + "DBInstance$CharacterSetName": null, + "DBInstance$SecondaryAvailabilityZone": null, + "DBInstanceMessage$Marker": null, + "DBParameterGroup$DBParameterGroupName": null, + "DBParameterGroup$DBParameterGroupFamily": null, + "DBParameterGroup$Description": null, + "DBParameterGroupDetails$Marker": null, + "DBParameterGroupNameMessage$DBParameterGroupName": null, + "DBParameterGroupStatus$DBParameterGroupName": null, + "DBParameterGroupStatus$ParameterApplyStatus": null, + "DBParameterGroupsMessage$Marker": null, + "DBSecurityGroup$OwnerId": null, + "DBSecurityGroup$DBSecurityGroupName": null, + "DBSecurityGroup$DBSecurityGroupDescription": null, + "DBSecurityGroup$VpcId": null, + "DBSecurityGroupMembership$DBSecurityGroupName": null, + "DBSecurityGroupMembership$Status": null, + "DBSecurityGroupMessage$Marker": null, "DBSecurityGroupNameList$member": null, - "DBSnapshot$DBSnapshotIdentifier": "

Specifies the identifier for the DB Snapshot.

", - "DBSnapshot$DBInstanceIdentifier": "

Specifies the the DBInstanceIdentifier of the DB Instance this DB Snapshot was created from.

", - "DBSnapshot$Engine": "

Specifies the name of the database engine.

", - "DBSnapshot$Status": "

Specifies the status of this DB Snapshot.

", - "DBSnapshot$AvailabilityZone": "

Specifies the name of the Availability Zone the DB Instance was located in at the time of the DB Snapshot.

", - "DBSnapshot$VpcId": "

Provides the Vpc Id associated with the DB Snapshot.

", - "DBSnapshot$MasterUsername": "

Provides the master username for the DB Snapshot.

", - "DBSnapshot$EngineVersion": "

Specifies the version of the database engine.

", - "DBSnapshot$LicenseModel": "

License model information for the restored DB Instance.

", - "DBSnapshot$SnapshotType": "

Provides the type of the DB Snapshot.

", - "DBSnapshot$OptionGroupName": "

Provides the option group name for the DB Snapshot.

", - "DBSnapshotMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DBSubnetGroup$DBSubnetGroupName": "

Specifies the name of the DB Subnet Group.

", - "DBSubnetGroup$DBSubnetGroupDescription": "

Provides the description of the DB Subnet Group.

", - "DBSubnetGroup$VpcId": "

Provides the VpcId of the DB Subnet Group.

", - "DBSubnetGroup$SubnetGroupStatus": "

Provides the status of the DB Subnet Group.

", - "DBSubnetGroupMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DeleteDBInstanceMessage$DBInstanceIdentifier": "

The DB Instance identifier for the DB Instance to be deleted. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DeleteDBInstanceMessage$FinalDBSnapshotIdentifier": "

The DBSnapshotIdentifier of the new DBSnapshot created when SkipFinalSnapshot is set to false.

Specifying this parameter and also setting the SkipFinalShapshot parameter to true results in an error.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DeleteDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB Parameter Group.

Constraints:

  • Must be the name of an existing DB Parameter Group
  • You cannot delete a default DB Parameter Group
  • Cannot be associated with any DB Instances
", - "DeleteDBSecurityGroupMessage$DBSecurityGroupName": "

The name of the DB Security Group to delete.

You cannot delete the default DB Security Group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DeleteDBSnapshotMessage$DBSnapshotIdentifier": "

The DBSnapshot identifier.

Constraints: Must be the name of an existing DB Snapshot in the available state.

", - "DeleteDBSubnetGroupMessage$DBSubnetGroupName": "

The name of the database subnet group to delete.

You cannot delete the default subnet group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DeleteEventSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription you want to delete.

", - "DeleteOptionGroupMessage$OptionGroupName": "

The name of the option group to be deleted.

You cannot delete default Option Groups.", - "DescribeDBEngineVersionsMessage$Engine": "

The database engine to return.

", - "DescribeDBEngineVersionsMessage$EngineVersion": "

The database engine version to return.

Example: 5.1.49

", - "DescribeDBEngineVersionsMessage$DBParameterGroupFamily": "

The name of a specific DB Parameter Group family to return details for.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBEngineVersionsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBInstancesMessage$DBInstanceIdentifier": "

The user-supplied instance identifier. If this parameter is specified, information from only the specific DB Instance is returned. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBInstancesMessage$Marker": "

An optional pagination token provided by a previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "DescribeDBLogFilesDetails$LogFileName": "

The name of the log file for the specified DB instance.

", - "DescribeDBLogFilesMessage$DBInstanceIdentifier": "

The customer-assigned name of the DB Instance that contains the log files you want to list.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBLogFilesMessage$FilenameContains": "

Filters the available log files for log file names that contain the specified string.

", - "DescribeDBLogFilesMessage$Marker": "

The pagination token provided in the previous request. If this parameter is specified the response includes only records beyond the marker, up to MaxRecords.

", - "DescribeDBLogFilesResponse$Marker": "

An optional paging token.

", - "DescribeDBParameterGroupsMessage$DBParameterGroupName": "

The name of a specific DB Parameter Group to return details for.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBParameterGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBParameterGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBParametersMessage$DBParameterGroupName": "

The name of a specific DB Parameter Group to return details for.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBParametersMessage$Source": "

The parameter types to return.

Default: All parameter types returned

Valid Values: user | system | engine-default

", - "DescribeDBParametersMessage$Marker": "

An optional pagination token provided by a previous DescribeDBParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBSecurityGroupsMessage$DBSecurityGroupName": "

The name of the DB Security Group to return details for.

", - "DescribeDBSecurityGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBSecurityGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBSnapshotsMessage$DBInstanceIdentifier": "

A DB Instance Identifier to retrieve the list of DB Snapshots for. Cannot be used in conjunction with DBSnapshotIdentifier. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBSnapshotsMessage$DBSnapshotIdentifier": "

A specific DB Snapshot Identifier to describe. Cannot be used in conjunction with DBInstanceIdentifier. This value is stored as a lowercase string.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
  • If this is the identifier of an automated snapshot, the SnapshotType parameter must also be specified.
", - "DescribeDBSnapshotsMessage$SnapshotType": "

An optional snapshot type for which snapshots will be returned. If not specified, the returned results will include snapshots of all types.

", - "DescribeDBSnapshotsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBSnapshots request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBSubnetGroupsMessage$DBSubnetGroupName": "

The name of the DB Subnet Group to return details for.

", - "DescribeDBSubnetGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBSubnetGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeEngineDefaultParametersMessage$DBParameterGroupFamily": "

The name of the DB Parameter Group Family.

", - "DescribeEngineDefaultParametersMessage$Marker": "

An optional pagination token provided by a previous DescribeEngineDefaultParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeEventCategoriesMessage$SourceType": "

The type of source that will be generating the events.

Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

", - "DescribeEventSubscriptionsMessage$SubscriptionName": "

The name of the RDS event notification subscription you want to describe.

", - "DescribeEventSubscriptionsMessage$Marker": "

An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "DescribeEventsMessage$SourceIdentifier": "

The identifier of the event source for which events will be returned. If not specified, then all sources are included in the response.

Constraints:

  • If SourceIdentifier is supplied, SourceType must also be provided.
  • If the source type is DBInstance, then a DBInstanceIdentifier must be supplied.
  • If the source type is DBSecurityGroup, a DBSecurityGroupName must be supplied.
  • If the source type is DBParameterGroup, a DBParameterGroupName must be supplied.
  • If the source type is DBSnapshot, a DBSnapshotIdentifier must be supplied.
  • Cannot end with a hyphen or contain two consecutive hyphens.
", - "DescribeEventsMessage$Marker": "

An optional pagination token provided by a previous DescribeEvents request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeOptionGroupOptionsMessage$EngineName": "

A required parameter. Options available for the given Engine name will be described.

", - "DescribeOptionGroupOptionsMessage$MajorEngineVersion": "

If specified, filters the results to include only options for the specified major engine version.

", - "DescribeOptionGroupOptionsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeOptionGroupsMessage$OptionGroupName": "

The name of the option group to describe. Cannot be supplied together with EngineName or MajorEngineVersion.

", - "DescribeOptionGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeOptionGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeOptionGroupsMessage$EngineName": "

Filters the list of option groups to only include groups associated with a specific database engine.

", - "DescribeOptionGroupsMessage$MajorEngineVersion": "

Filters the list of option groups to only include groups associated with a specific database engine version. If specified, then EngineName must also be specified.

", - "DescribeOrderableDBInstanceOptionsMessage$Engine": "

The name of the engine to retrieve DB Instance options for.

", - "DescribeOrderableDBInstanceOptionsMessage$EngineVersion": "

The engine version filter value. Specify this parameter to show only the available offerings matching the specified engine version.

", - "DescribeOrderableDBInstanceOptionsMessage$DBInstanceClass": "

The DB Instance class filter value. Specify this parameter to show only the available offerings matching the specified DB Instance class.

", - "DescribeOrderableDBInstanceOptionsMessage$LicenseModel": "

The license model filter value. Specify this parameter to show only the available offerings matching the specified license model.

", - "DescribeOrderableDBInstanceOptionsMessage$Marker": "

An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "DescribeReservedDBInstancesMessage$ReservedDBInstanceId": "

The reserved DB Instance identifier filter value. Specify this parameter to show only the reservation that matches the specified reservation ID.

", - "DescribeReservedDBInstancesMessage$ReservedDBInstancesOfferingId": "

The offering identifier filter value. Specify this parameter to show only purchased reservations matching the specified offering identifier.

", - "DescribeReservedDBInstancesMessage$DBInstanceClass": "

The DB Instance class filter value. Specify this parameter to show only those reservations matching the specified DB Instances class.

", - "DescribeReservedDBInstancesMessage$Duration": "

The duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.

Valid Values: 1 | 3 | 31536000 | 94608000

", - "DescribeReservedDBInstancesMessage$ProductDescription": "

The product description filter value. Specify this parameter to show only those reservations matching the specified product description.

", - "DescribeReservedDBInstancesMessage$OfferingType": "

The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.

Valid Values: \"Light Utilization\" | \"Medium Utilization\" | \"Heavy Utilization\"

", - "DescribeReservedDBInstancesMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeReservedDBInstancesOfferingsMessage$ReservedDBInstancesOfferingId": "

The offering identifier filter value. Specify this parameter to show only the available offering that matches the specified reservation identifier.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

", - "DescribeReservedDBInstancesOfferingsMessage$DBInstanceClass": "

The DB Instance class filter value. Specify this parameter to show only the available offerings matching the specified DB Instance class.

", - "DescribeReservedDBInstancesOfferingsMessage$Duration": "

Duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.

Valid Values: 1 | 3 | 31536000 | 94608000

", - "DescribeReservedDBInstancesOfferingsMessage$ProductDescription": "

Product description filter value. Specify this parameter to show only the available offerings matching the specified product description.

", - "DescribeReservedDBInstancesOfferingsMessage$OfferingType": "

The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.

Valid Values: \"Light Utilization\" | \"Medium Utilization\" | \"Heavy Utilization\"

", - "DescribeReservedDBInstancesOfferingsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DownloadDBLogFilePortionDetails$LogFileData": "

Entries from the specified log file.

", - "DownloadDBLogFilePortionDetails$Marker": "

An optional pagination token provided by a previous DownloadDBLogFilePortion request.

", - "DownloadDBLogFilePortionMessage$DBInstanceIdentifier": "

The customer-assigned name of the DB Instance that contains the log files you want to list.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DownloadDBLogFilePortionMessage$LogFileName": "

The name of the log file to be downloaded.

", - "DownloadDBLogFilePortionMessage$Marker": "

The pagination token provided in the previous request. If this parameter is specified the response includes only records beyond the marker, up to MaxRecords.

", - "EC2SecurityGroup$Status": "

Provides the status of the EC2 security group. Status can be \"authorizing\", \"authorized\", \"revoking\", and \"revoked\".

", - "EC2SecurityGroup$EC2SecurityGroupName": "

Specifies the name of the EC2 Security Group.

", - "EC2SecurityGroup$EC2SecurityGroupId": "

Specifies the id of the EC2 Security Group.

", - "EC2SecurityGroup$EC2SecurityGroupOwnerId": "

Specifies the AWS ID of the owner of the EC2 security group specified in the EC2SecurityGroupName field.

", - "Endpoint$Address": "

Specifies the DNS address of the DB Instance.

", - "EngineDefaults$DBParameterGroupFamily": "

Specifies the name of the DB Parameter Group Family which the engine default parameters apply to.

", - "EngineDefaults$Marker": "

An optional pagination token provided by a previous EngineDefaults request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "Event$SourceIdentifier": "

Provides the identifier for the source of the event.

", - "Event$Message": "

Provides the text of this event.

", + "DBSnapshot$DBSnapshotIdentifier": null, + "DBSnapshot$DBInstanceIdentifier": null, + "DBSnapshot$Engine": null, + "DBSnapshot$Status": null, + "DBSnapshot$AvailabilityZone": null, + "DBSnapshot$VpcId": null, + "DBSnapshot$MasterUsername": null, + "DBSnapshot$EngineVersion": null, + "DBSnapshot$LicenseModel": null, + "DBSnapshot$SnapshotType": null, + "DBSnapshot$OptionGroupName": null, + "DBSnapshotMessage$Marker": null, + "DBSubnetGroup$DBSubnetGroupName": null, + "DBSubnetGroup$DBSubnetGroupDescription": null, + "DBSubnetGroup$VpcId": null, + "DBSubnetGroup$SubnetGroupStatus": null, + "DBSubnetGroupMessage$Marker": null, + "DeleteDBInstanceMessage$DBInstanceIdentifier": null, + "DeleteDBInstanceMessage$FinalDBSnapshotIdentifier": null, + "DeleteDBParameterGroupMessage$DBParameterGroupName": null, + "DeleteDBSecurityGroupMessage$DBSecurityGroupName": null, + "DeleteDBSnapshotMessage$DBSnapshotIdentifier": null, + "DeleteDBSubnetGroupMessage$DBSubnetGroupName": null, + "DeleteEventSubscriptionMessage$SubscriptionName": null, + "DeleteOptionGroupMessage$OptionGroupName": null, + "DescribeDBEngineVersionsMessage$Engine": null, + "DescribeDBEngineVersionsMessage$EngineVersion": null, + "DescribeDBEngineVersionsMessage$DBParameterGroupFamily": null, + "DescribeDBEngineVersionsMessage$Marker": null, + "DescribeDBInstancesMessage$DBInstanceIdentifier": null, + "DescribeDBInstancesMessage$Marker": null, + "DescribeDBLogFilesDetails$LogFileName": null, + "DescribeDBLogFilesMessage$DBInstanceIdentifier": null, + "DescribeDBLogFilesMessage$FilenameContains": null, + "DescribeDBLogFilesMessage$Marker": null, + "DescribeDBLogFilesResponse$Marker": null, + "DescribeDBParameterGroupsMessage$DBParameterGroupName": null, + "DescribeDBParameterGroupsMessage$Marker": null, + "DescribeDBParametersMessage$DBParameterGroupName": null, + "DescribeDBParametersMessage$Source": null, + "DescribeDBParametersMessage$Marker": null, + "DescribeDBSecurityGroupsMessage$DBSecurityGroupName": null, + "DescribeDBSecurityGroupsMessage$Marker": null, + "DescribeDBSnapshotsMessage$DBInstanceIdentifier": null, + "DescribeDBSnapshotsMessage$DBSnapshotIdentifier": null, + "DescribeDBSnapshotsMessage$SnapshotType": null, + "DescribeDBSnapshotsMessage$Marker": null, + "DescribeDBSubnetGroupsMessage$DBSubnetGroupName": null, + "DescribeDBSubnetGroupsMessage$Marker": null, + "DescribeEngineDefaultParametersMessage$DBParameterGroupFamily": null, + "DescribeEngineDefaultParametersMessage$Marker": null, + "DescribeEventCategoriesMessage$SourceType": null, + "DescribeEventSubscriptionsMessage$SubscriptionName": null, + "DescribeEventSubscriptionsMessage$Marker": null, + "DescribeEventsMessage$SourceIdentifier": null, + "DescribeEventsMessage$Marker": null, + "DescribeOptionGroupOptionsMessage$EngineName": null, + "DescribeOptionGroupOptionsMessage$MajorEngineVersion": null, + "DescribeOptionGroupOptionsMessage$Marker": null, + "DescribeOptionGroupsMessage$OptionGroupName": null, + "DescribeOptionGroupsMessage$Marker": null, + "DescribeOptionGroupsMessage$EngineName": null, + "DescribeOptionGroupsMessage$MajorEngineVersion": null, + "DescribeOrderableDBInstanceOptionsMessage$Engine": null, + "DescribeOrderableDBInstanceOptionsMessage$EngineVersion": null, + "DescribeOrderableDBInstanceOptionsMessage$DBInstanceClass": null, + "DescribeOrderableDBInstanceOptionsMessage$LicenseModel": null, + "DescribeOrderableDBInstanceOptionsMessage$Marker": null, + "DescribeReservedDBInstancesMessage$ReservedDBInstanceId": null, + "DescribeReservedDBInstancesMessage$ReservedDBInstancesOfferingId": null, + "DescribeReservedDBInstancesMessage$DBInstanceClass": null, + "DescribeReservedDBInstancesMessage$Duration": null, + "DescribeReservedDBInstancesMessage$ProductDescription": null, + "DescribeReservedDBInstancesMessage$OfferingType": null, + "DescribeReservedDBInstancesMessage$Marker": null, + "DescribeReservedDBInstancesOfferingsMessage$ReservedDBInstancesOfferingId": null, + "DescribeReservedDBInstancesOfferingsMessage$DBInstanceClass": null, + "DescribeReservedDBInstancesOfferingsMessage$Duration": null, + "DescribeReservedDBInstancesOfferingsMessage$ProductDescription": null, + "DescribeReservedDBInstancesOfferingsMessage$OfferingType": null, + "DescribeReservedDBInstancesOfferingsMessage$Marker": null, + "DownloadDBLogFilePortionDetails$LogFileData": null, + "DownloadDBLogFilePortionDetails$Marker": null, + "DownloadDBLogFilePortionMessage$DBInstanceIdentifier": null, + "DownloadDBLogFilePortionMessage$LogFileName": null, + "DownloadDBLogFilePortionMessage$Marker": null, + "EC2SecurityGroup$Status": null, + "EC2SecurityGroup$EC2SecurityGroupName": null, + "EC2SecurityGroup$EC2SecurityGroupId": null, + "EC2SecurityGroup$EC2SecurityGroupOwnerId": null, + "Endpoint$Address": null, + "EngineDefaults$DBParameterGroupFamily": null, + "EngineDefaults$Marker": null, + "Event$SourceIdentifier": null, + "Event$Message": null, "EventCategoriesList$member": null, - "EventCategoriesMap$SourceType": "

The source type that the returned categories belong to

", - "EventSubscription$CustomerAwsId": "

The AWS customer account associated with the RDS event notification subscription.

", - "EventSubscription$CustSubscriptionId": "

The RDS event notification subscription Id.

", - "EventSubscription$SnsTopicArn": "

The topic ARN of the RDS event notification subscription.

", - "EventSubscription$Status": "

The status of the RDS event notification subscription.

Constraints:

Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist

The status \"no-permission\" indicates that RDS no longer has permission to post to the SNS topic. The status \"topic-not-exist\" indicates that the topic was deleted after the subscription was created.

", - "EventSubscription$SubscriptionCreationTime": "

The time the RDS event notification subscription was created.

", - "EventSubscription$SourceType": "

The source type for the RDS event notification subscription.

", - "EventSubscriptionsMessage$Marker": "

An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "EventsMessage$Marker": "

An optional pagination token provided by a previous Events request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "IPRange$Status": "

Specifies the status of the IP range. Status can be \"authorizing\", \"authorized\", \"revoking\", and \"revoked\".

", - "IPRange$CIDRIP": "

Specifies the IP range.

", + "EventCategoriesMap$SourceType": null, + "EventSubscription$CustomerAwsId": null, + "EventSubscription$CustSubscriptionId": null, + "EventSubscription$SnsTopicArn": null, + "EventSubscription$Status": null, + "EventSubscription$SubscriptionCreationTime": null, + "EventSubscription$SourceType": null, + "EventSubscriptionsMessage$Marker": null, + "EventsMessage$Marker": null, + "IPRange$Status": null, + "IPRange$CIDRIP": null, "KeyList$member": null, - "ListTagsForResourceMessage$ResourceName": "

The DB Instance with tags to be listed. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

", - "ModifyDBInstanceMessage$DBInstanceIdentifier": "

The DB Instance identifier. This value is stored as a lowercase string.

Constraints:

  • Must be the identifier for an existing DB Instance
  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "ModifyDBInstanceMessage$DBInstanceClass": "

The new compute and memory capacity of the DB Instance. To determine the instance classes that are available for a particular DB engine, use the DescribeOrderableDBInstanceOptions action.

Passing a value for this parameter causes an outage during the change and is applied during the next maintenance window, unless the ApplyImmediately parameter is specified as true for this request.

Default: Uses existing setting

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge | db.m2.2xlarge | db.m2.4xlarge

", - "ModifyDBInstanceMessage$MasterUserPassword": "

The new password for the DB Instance master user. Can be any printable ASCII character except \"/\", \"\\\", or \"@\".

Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible. Between the time of the request and the completion of the request, the MasterUserPassword element exists in the PendingModifiedValues element of the operation response.

Default: Uses existing setting

Constraints: Must be 8 to 41 alphanumeric characters (MySQL), 8 to 30 alphanumeric characters (Oracle), or 8 to 128 alphanumeric characters (SQL Server).

Amazon RDS API actions never return the password, so this action provides a way to regain access to a master instance user if the password is lost. ", - "ModifyDBInstanceMessage$DBParameterGroupName": "

The name of the DB Parameter Group to apply to this DB Instance. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

Default: Uses existing setting

Constraints: The DB Parameter Group must be in the same DB Parameter Group family as this DB Instance.

", - "ModifyDBInstanceMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

Constraints:

  • Must be in the format hh24:mi-hh24:mi
  • Times should be Universal Time Coordinated (UTC)
  • Must not conflict with the preferred maintenance window
  • Must be at least 30 minutes
", - "ModifyDBInstanceMessage$PreferredMaintenanceWindow": "

The weekly time range (in UTC) during which system maintenance can occur, which may result in an outage. Changing this parameter does not result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If there are pending actions that cause a reboot, and the maintenance window is changed to include the current time, then changing this parameter will cause a reboot of the DB Instance. If moving this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.

Default: Uses existing setting

Format: ddd:hh24:mi-ddd:hh24:mi

Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun

Constraints: Must be at least 30 minutes

", - "ModifyDBInstanceMessage$EngineVersion": "

The version number of the database engine to upgrade to. Changing this parameter results in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

For major version upgrades, if a nondefault DB Parameter Group is currently in use, a new DB Parameter Group in the DB Parameter Group Family for the new engine version must be specified. The new DB Parameter Group can be the default for that DB Parameter Group Family.

Example: 5.1.42

", - "ModifyDBInstanceMessage$OptionGroupName": "

Indicates that the DB Instance should be associated with the specified option group. Changing this parameter does not result in an outage except in the following case and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request. If the parameter change results in an option group that enables OEM, this change can cause a brief (sub-second) period during which new connections are rejected but existing connections are not interrupted.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", - "ModifyDBInstanceMessage$NewDBInstanceIdentifier": "

The new DB Instance identifier for the DB Instance when renaming a DB Instance. This value is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "ModifyDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB Parameter Group.

Constraints:

  • Must be the name of an existing DB Parameter Group
  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "ModifyDBSubnetGroupMessage$DBSubnetGroupName": "

The name for the DB Subnet Group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be \"Default\".

Example: mySubnetgroup

", - "ModifyDBSubnetGroupMessage$DBSubnetGroupDescription": "

The description for the DB Subnet Group.

", - "ModifyEventSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription.

", - "ModifyEventSubscriptionMessage$SnsTopicArn": "

The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

", - "ModifyEventSubscriptionMessage$SourceType": "

The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

", - "ModifyOptionGroupMessage$OptionGroupName": "

The name of the option group to be modified.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", - "Option$OptionName": "

The name of the option.

", - "Option$OptionDescription": "

The description of the option.

", - "OptionConfiguration$OptionName": "

The configuration of options to include in a group.

", - "OptionGroup$OptionGroupName": "

Specifies the name of the option group.

", - "OptionGroup$OptionGroupDescription": "

Provides the description of the option group.

", - "OptionGroup$EngineName": "

Engine name that this option group can be applied to.

", - "OptionGroup$MajorEngineVersion": "

Indicates the major engine version associated with this option group.

", - "OptionGroup$VpcId": "

If AllowsVpcAndNonVpcInstanceMemberships is 'false', this field is blank. If AllowsVpcAndNonVpcInstanceMemberships is 'true' and this field is blank, then this option group can be applied to both VPC and non-VPC instances. If this field contains a value, then this option group can only be applied to instances that are in the VPC indicated by this field.

", - "OptionGroupMembership$OptionGroupName": "

The name of the option group that the instance belongs to.

", - "OptionGroupMembership$Status": "

The status of the DB Instance's option group membership (e.g. in-sync, pending, pending-maintenance, applying).

", - "OptionGroupOption$Name": "

The name of the option.

", - "OptionGroupOption$Description": "

The description of the option.

", - "OptionGroupOption$EngineName": "

Engine name that this option can be applied to.

", - "OptionGroupOption$MajorEngineVersion": "

Indicates the major engine version that the option is available for.

", - "OptionGroupOption$MinimumRequiredMinorEngineVersion": "

The minimum required engine version for the option to be applied.

", - "OptionGroupOptionSetting$SettingName": "

The name of the option group option.

", - "OptionGroupOptionSetting$SettingDescription": "

The description of the option group option.

", - "OptionGroupOptionSetting$DefaultValue": "

The default value for the option group option.

", - "OptionGroupOptionSetting$ApplyType": "

The DB engine specific parameter type for the option group option.

", - "OptionGroupOptionSetting$AllowedValues": "

Indicates the acceptable values for the option group option.

", - "OptionGroupOptionsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "OptionGroups$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", + "ListTagsForResourceMessage$ResourceName": null, + "ModifyDBInstanceMessage$DBInstanceIdentifier": null, + "ModifyDBInstanceMessage$DBInstanceClass": null, + "ModifyDBInstanceMessage$MasterUserPassword": null, + "ModifyDBInstanceMessage$DBParameterGroupName": null, + "ModifyDBInstanceMessage$PreferredBackupWindow": null, + "ModifyDBInstanceMessage$PreferredMaintenanceWindow": null, + "ModifyDBInstanceMessage$EngineVersion": null, + "ModifyDBInstanceMessage$OptionGroupName": null, + "ModifyDBInstanceMessage$NewDBInstanceIdentifier": null, + "ModifyDBParameterGroupMessage$DBParameterGroupName": null, + "ModifyDBSubnetGroupMessage$DBSubnetGroupName": null, + "ModifyDBSubnetGroupMessage$DBSubnetGroupDescription": null, + "ModifyEventSubscriptionMessage$SubscriptionName": null, + "ModifyEventSubscriptionMessage$SnsTopicArn": null, + "ModifyEventSubscriptionMessage$SourceType": null, + "ModifyOptionGroupMessage$OptionGroupName": null, + "Option$OptionName": null, + "Option$OptionDescription": null, + "OptionConfiguration$OptionName": null, + "OptionGroup$OptionGroupName": null, + "OptionGroup$OptionGroupDescription": null, + "OptionGroup$EngineName": null, + "OptionGroup$MajorEngineVersion": null, + "OptionGroup$VpcId": null, + "OptionGroupMembership$OptionGroupName": null, + "OptionGroupMembership$Status": null, + "OptionGroupOption$Name": null, + "OptionGroupOption$Description": null, + "OptionGroupOption$EngineName": null, + "OptionGroupOption$MajorEngineVersion": null, + "OptionGroupOption$MinimumRequiredMinorEngineVersion": null, + "OptionGroupOptionSetting$SettingName": null, + "OptionGroupOptionSetting$SettingDescription": null, + "OptionGroupOptionSetting$DefaultValue": null, + "OptionGroupOptionSetting$ApplyType": null, + "OptionGroupOptionSetting$AllowedValues": null, + "OptionGroupOptionsMessage$Marker": null, + "OptionGroups$Marker": null, "OptionNamesList$member": null, - "OptionSetting$Name": "

The name of the option that has settings that you can set.

", - "OptionSetting$Value": "

The current value of the option setting.

", - "OptionSetting$DefaultValue": "

The default value of the option setting.

", - "OptionSetting$Description": "

The description of the option setting.

", - "OptionSetting$ApplyType": "

The DB engine specific parameter type.

", - "OptionSetting$DataType": "

The data type of the option setting.

", - "OptionSetting$AllowedValues": "

The allowed values of the option setting.

", + "OptionSetting$Name": null, + "OptionSetting$Value": null, + "OptionSetting$DefaultValue": null, + "OptionSetting$Description": null, + "OptionSetting$ApplyType": null, + "OptionSetting$DataType": null, + "OptionSetting$AllowedValues": null, "OptionsDependedOn$member": null, - "OrderableDBInstanceOption$Engine": "

The engine type of the orderable DB Instance.

", - "OrderableDBInstanceOption$EngineVersion": "

The engine version of the orderable DB Instance.

", - "OrderableDBInstanceOption$DBInstanceClass": "

The DB Instance Class for the orderable DB Instance

", - "OrderableDBInstanceOption$LicenseModel": "

The license model for the orderable DB Instance.

", - "OrderableDBInstanceOptionsMessage$Marker": "

An optional pagination token provided by a previous OrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "Parameter$ParameterName": "

Specifies the name of the parameter.

", - "Parameter$ParameterValue": "

Specifies the value of the parameter.

", - "Parameter$Description": "

Provides a description of the parameter.

", - "Parameter$Source": "

Indicates the source of the parameter value.

", - "Parameter$ApplyType": "

Specifies the engine specific parameters type.

", - "Parameter$DataType": "

Specifies the valid data type for the parameter.

", - "Parameter$AllowedValues": "

Specifies the valid range of values for the parameter.

", - "Parameter$MinimumEngineVersion": "

The earliest engine version to which the parameter can apply.

", - "PendingModifiedValues$DBInstanceClass": "

Contains the new DBInstanceClass for the DB Instance that will be applied or is in progress.

", - "PendingModifiedValues$MasterUserPassword": "

Contains the pending or in-progress change of the master credentials for the DB Instance.

", - "PendingModifiedValues$EngineVersion": "

Indicates the database engine version.

", - "PendingModifiedValues$DBInstanceIdentifier": "

Contains the new DBInstanceIdentifier for the DB Instance that will be applied or is in progress.

", - "PromoteReadReplicaMessage$DBInstanceIdentifier": "

The DB Instance identifier. This value is stored as a lowercase string.

Constraints:

  • Must be the identifier for an existing Read Replica DB Instance
  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: mydbinstance

", - "PromoteReadReplicaMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

Default: A 30-minute window selected at random from an 8-hour block of time per region. The following list shows the time blocks for each region from which the default backup windows are assigned.

  • US-East (Northern Virginia) Region: 03:00-11:00 UTC
  • US-West (Northern California) Region: 06:00-14:00 UTC
  • EU (Ireland) Region: 22:00-06:00 UTC
  • Asia Pacific (Singapore) Region: 14:00-22:00 UTC
  • Asia Pacific (Tokyo) Region: 17:00-03:00 UTC

Constraints: Must be in the format hh24:mi-hh24:mi. Times should be Universal Time Coordinated (UTC). Must not conflict with the preferred maintenance window. Must be at least 30 minutes.

", - "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferingId": "

The ID of the Reserved DB Instance offering to purchase.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

", - "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstanceId": "

Customer-specified identifier to track this reservation.

Example: myreservationID

", + "OrderableDBInstanceOption$Engine": null, + "OrderableDBInstanceOption$EngineVersion": null, + "OrderableDBInstanceOption$DBInstanceClass": null, + "OrderableDBInstanceOption$LicenseModel": null, + "OrderableDBInstanceOptionsMessage$Marker": null, + "Parameter$ParameterName": null, + "Parameter$ParameterValue": null, + "Parameter$Description": null, + "Parameter$Source": null, + "Parameter$ApplyType": null, + "Parameter$DataType": null, + "Parameter$AllowedValues": null, + "Parameter$MinimumEngineVersion": null, + "PendingModifiedValues$DBInstanceClass": null, + "PendingModifiedValues$MasterUserPassword": null, + "PendingModifiedValues$EngineVersion": null, + "PendingModifiedValues$DBInstanceIdentifier": null, + "PromoteReadReplicaMessage$DBInstanceIdentifier": null, + "PromoteReadReplicaMessage$PreferredBackupWindow": null, + "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferingId": null, + "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstanceId": null, "ReadReplicaDBInstanceIdentifierList$member": null, - "RebootDBInstanceMessage$DBInstanceIdentifier": "

The DB Instance identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RecurringCharge$RecurringChargeFrequency": "

The frequency of the recurring charge.

", - "RemoveSourceIdentifierFromSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription you want to remove a source identifier from.

", - "RemoveSourceIdentifierFromSubscriptionMessage$SourceIdentifier": "

The source identifier to be removed from the subscription, such as the DB instance identifier for a DB instance or the name of a security group.

", - "RemoveTagsFromResourceMessage$ResourceName": "

The DB Instance the tags will be removed from. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

", - "ReservedDBInstance$ReservedDBInstanceId": "

The unique identifier for the reservation.

", - "ReservedDBInstance$ReservedDBInstancesOfferingId": "

The offering identifier.

", - "ReservedDBInstance$DBInstanceClass": "

The DB instance class for the reserved DB Instance.

", - "ReservedDBInstance$CurrencyCode": "

The currency code for the reserved DB Instance.

", - "ReservedDBInstance$ProductDescription": "

The description of the reserved DB Instance.

", - "ReservedDBInstance$OfferingType": "

The offering type of this reserved DB Instance.

", - "ReservedDBInstance$State": "

The state of the reserved DB Instance.

", - "ReservedDBInstanceMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "ReservedDBInstancesOffering$ReservedDBInstancesOfferingId": "

The offering identifier.

", - "ReservedDBInstancesOffering$DBInstanceClass": "

The DB instance class for the reserved DB Instance.

", - "ReservedDBInstancesOffering$CurrencyCode": "

The currency code for the reserved DB Instance offering.

", - "ReservedDBInstancesOffering$ProductDescription": "

The database engine used by the offering.

", - "ReservedDBInstancesOffering$OfferingType": "

The offering type.

", - "ReservedDBInstancesOfferingMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "ResetDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB Parameter Group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceIdentifier": "

The identifier for the DB Snapshot to restore from.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RestoreDBInstanceFromDBSnapshotMessage$DBSnapshotIdentifier": "

Name of the DB Instance to create from the DB Snapshot. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

", - "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceClass": "

The compute and memory capacity of the Amazon RDS DB instance.

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.2xlarge | db.m2.4xlarge

", - "RestoreDBInstanceFromDBSnapshotMessage$AvailabilityZone": "

The EC2 Availability Zone that the database instance will be created in.

Default: A random, system-chosen Availability Zone.

Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

Example: us-east-1a

", - "RestoreDBInstanceFromDBSnapshotMessage$DBSubnetGroupName": "

The DB Subnet Group name to use for the new instance.

", - "RestoreDBInstanceFromDBSnapshotMessage$LicenseModel": "

License model information for the restored DB Instance.

Default: Same as source.

Valid values: license-included | bring-your-own-license | general-public-license

", - "RestoreDBInstanceFromDBSnapshotMessage$DBName": "

The database name for the restored DB Instance.

This parameter doesn't apply to the MySQL engine.

", - "RestoreDBInstanceFromDBSnapshotMessage$Engine": "

The database engine to use for the new instance.

Default: The same as source

Constraint: Must be compatible with the engine of the source

Example: oracle-ee

", - "RestoreDBInstanceFromDBSnapshotMessage$OptionGroupName": "

The name of the option group to be used for the restored DB instance.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", - "RestoreDBInstanceToPointInTimeMessage$SourceDBInstanceIdentifier": "

The identifier of the source DB Instance from which to restore.

Constraints:

  • Must be the identifier of an existing database instance
  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RestoreDBInstanceToPointInTimeMessage$TargetDBInstanceIdentifier": "

The name of the new database instance to be created.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RestoreDBInstanceToPointInTimeMessage$DBInstanceClass": "

The compute and memory capacity of the Amazon RDS DB instance.

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.2xlarge | db.m2.4xlarge

Default: The same DBInstanceClass as the original DB Instance.

", - "RestoreDBInstanceToPointInTimeMessage$AvailabilityZone": "

The EC2 Availability Zone that the database instance will be created in.

Default: A random, system-chosen Availability Zone.

Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

Example: us-east-1a

", - "RestoreDBInstanceToPointInTimeMessage$DBSubnetGroupName": "

The DB subnet group name to use for the new instance.

", - "RestoreDBInstanceToPointInTimeMessage$LicenseModel": "

License model information for the restored DB Instance.

Default: Same as source.

Valid values: license-included | bring-your-own-license | general-public-license

", - "RestoreDBInstanceToPointInTimeMessage$DBName": "

The database name for the restored DB Instance.

This parameter is not used for the MySQL engine.

", - "RestoreDBInstanceToPointInTimeMessage$Engine": "

The database engine to use for the new instance.

Default: The same as source

Constraint: Must be compatible with the engine of the source

Example: oracle-ee

", - "RestoreDBInstanceToPointInTimeMessage$OptionGroupName": "

The name of the option group to be used for the restored DB instance.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", - "RevokeDBSecurityGroupIngressMessage$DBSecurityGroupName": "

The name of the DB Security Group to revoke ingress from.

", - "RevokeDBSecurityGroupIngressMessage$CIDRIP": "

The IP range to revoke access from. Must be a valid CIDR range. If CIDRIP is specified, EC2SecurityGroupName, EC2SecurityGroupId and EC2SecurityGroupOwnerId cannot be provided.

", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupName": "

The name of the EC2 Security Group to revoke access from. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupId": "

The id of the EC2 Security Group to revoke access from. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": "

The AWS Account Number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", + "RebootDBInstanceMessage$DBInstanceIdentifier": null, + "RecurringCharge$RecurringChargeFrequency": null, + "RemoveSourceIdentifierFromSubscriptionMessage$SubscriptionName": null, + "RemoveSourceIdentifierFromSubscriptionMessage$SourceIdentifier": null, + "RemoveTagsFromResourceMessage$ResourceName": null, + "ReservedDBInstance$ReservedDBInstanceId": null, + "ReservedDBInstance$ReservedDBInstancesOfferingId": null, + "ReservedDBInstance$DBInstanceClass": null, + "ReservedDBInstance$CurrencyCode": null, + "ReservedDBInstance$ProductDescription": null, + "ReservedDBInstance$OfferingType": null, + "ReservedDBInstance$State": null, + "ReservedDBInstanceMessage$Marker": null, + "ReservedDBInstancesOffering$ReservedDBInstancesOfferingId": null, + "ReservedDBInstancesOffering$DBInstanceClass": null, + "ReservedDBInstancesOffering$CurrencyCode": null, + "ReservedDBInstancesOffering$ProductDescription": null, + "ReservedDBInstancesOffering$OfferingType": null, + "ReservedDBInstancesOfferingMessage$Marker": null, + "ResetDBParameterGroupMessage$DBParameterGroupName": null, + "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceIdentifier": null, + "RestoreDBInstanceFromDBSnapshotMessage$DBSnapshotIdentifier": null, + "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceClass": null, + "RestoreDBInstanceFromDBSnapshotMessage$AvailabilityZone": null, + "RestoreDBInstanceFromDBSnapshotMessage$DBSubnetGroupName": null, + "RestoreDBInstanceFromDBSnapshotMessage$LicenseModel": null, + "RestoreDBInstanceFromDBSnapshotMessage$DBName": null, + "RestoreDBInstanceFromDBSnapshotMessage$Engine": null, + "RestoreDBInstanceFromDBSnapshotMessage$OptionGroupName": null, + "RestoreDBInstanceToPointInTimeMessage$SourceDBInstanceIdentifier": null, + "RestoreDBInstanceToPointInTimeMessage$TargetDBInstanceIdentifier": null, + "RestoreDBInstanceToPointInTimeMessage$DBInstanceClass": null, + "RestoreDBInstanceToPointInTimeMessage$AvailabilityZone": null, + "RestoreDBInstanceToPointInTimeMessage$DBSubnetGroupName": null, + "RestoreDBInstanceToPointInTimeMessage$LicenseModel": null, + "RestoreDBInstanceToPointInTimeMessage$DBName": null, + "RestoreDBInstanceToPointInTimeMessage$Engine": null, + "RestoreDBInstanceToPointInTimeMessage$OptionGroupName": null, + "RevokeDBSecurityGroupIngressMessage$DBSecurityGroupName": null, + "RevokeDBSecurityGroupIngressMessage$CIDRIP": null, + "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupName": null, + "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupId": null, + "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": null, "SourceIdsList$member": null, - "Subnet$SubnetIdentifier": "

Specifies the identifier of the subnet.

", - "Subnet$SubnetStatus": "

Specifies the status of the subnet.

", + "Subnet$SubnetIdentifier": null, + "Subnet$SubnetStatus": null, "SubnetIdentifierList$member": null, - "Tag$Key": "

A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with \"aws:\". The string may only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

", - "Tag$Value": "

A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with \"aws:\". The string may only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

", + "Tag$Key": null, + "Tag$Value": null, "VpcSecurityGroupIdList$member": null, - "VpcSecurityGroupMembership$VpcSecurityGroupId": "

The name of the VPC security group.

", - "VpcSecurityGroupMembership$Status": "

The status of the VPC Security Group.

" + "VpcSecurityGroupMembership$VpcSecurityGroupId": null, + "VpcSecurityGroupMembership$Status": null } }, "Subnet": { - "base": "

This data type is used as a response element in the DescribeDBSubnetGroups action.

", + "base": null, "refs": { "SubnetList$member": null } }, "SubnetAlreadyInUse": { - "base": "

The DB subnet is already in use in the Availability Zone.

", + "base": "

The DB subnet is already in use in the Availability Zone.

", "refs": { } }, "SubnetIdentifierList": { "base": null, "refs": { - "CreateDBSubnetGroupMessage$SubnetIds": "

The EC2 Subnet IDs for the DB Subnet Group.

", - "ModifyDBSubnetGroupMessage$SubnetIds": "

The EC2 Subnet IDs for the DB Subnet Group.

" + "CreateDBSubnetGroupMessage$SubnetIds": null, + "ModifyDBSubnetGroupMessage$SubnetIds": null } }, "SubnetList": { "base": null, "refs": { - "DBSubnetGroup$Subnets": "

Contains a list of Subnet elements.

" + "DBSubnetGroup$Subnets": null } }, "SubscriptionAlreadyExistFault": { @@ -1736,51 +1736,51 @@ "SupportedCharacterSetsList": { "base": null, "refs": { - "DBEngineVersion$SupportedCharacterSets": "

A list of the character sets supported by this engine for the CharacterSetName parameter of the CreateDBInstance API.

" + "DBEngineVersion$SupportedCharacterSets": null } }, "TStamp": { "base": null, "refs": { - "DBInstance$InstanceCreateTime": "

Provides the date and time the DB Instance was created.

", - "DBInstance$LatestRestorableTime": "

Specifies the latest time to which a database can be restored with point-in-time restore.

", - "DBSnapshot$SnapshotCreateTime": "

Provides the time (UTC) when the snapshot was taken.

", - "DBSnapshot$InstanceCreateTime": "

Specifies the time (UTC) when the snapshot was taken.

", - "DescribeEventsMessage$StartTime": "

The beginning of the time interval to retrieve events for, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

Example: 2009-07-08T18:00Z

", - "DescribeEventsMessage$EndTime": "

The end of the time interval for which to retrieve events, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

Example: 2009-07-08T18:00Z

", - "Event$Date": "

Specifies the date and time of the event.

", - "ReservedDBInstance$StartTime": "

The time the reservation started.

", - "RestoreDBInstanceToPointInTimeMessage$RestoreTime": "

The date and time to restore from.

Valid Values: Value must be a UTC time

Constraints:

  • Must be before the latest restorable time for the DB Instance
  • Cannot be specified if UseLatestRestorableTime parameter is true

Example: 2009-09-07T23:45:00Z

" + "DBInstance$InstanceCreateTime": null, + "DBInstance$LatestRestorableTime": null, + "DBSnapshot$SnapshotCreateTime": null, + "DBSnapshot$InstanceCreateTime": null, + "DescribeEventsMessage$StartTime": null, + "DescribeEventsMessage$EndTime": null, + "Event$Date": null, + "ReservedDBInstance$StartTime": null, + "RestoreDBInstanceToPointInTimeMessage$RestoreTime": null } }, "Tag": { - "base": "

Metadata assigned to a DB Instance consisting of a key-value pair.

", + "base": null, "refs": { "TagList$member": null } }, "TagList": { - "base": "

A list of tags.

", + "base": null, "refs": { - "AddTagsToResourceMessage$Tags": "

The tags to be assigned to the DB Instance.

", - "TagListMessage$TagList": "

List of tags returned by the ListTagsForResource operation.

" + "AddTagsToResourceMessage$Tags": null, + "TagListMessage$TagList": null } }, "TagListMessage": { - "base": "

", + "base": null, "refs": { } }, "VpcSecurityGroupIdList": { "base": null, "refs": { - "CreateDBInstanceMessage$VpcSecurityGroupIds": "

A list of EC2 VPC Security Groups to associate with this DB Instance.

Default: The default EC2 VPC Security Group for the DB Subnet group's VPC.

", - "ModifyDBInstanceMessage$VpcSecurityGroupIds": "

A list of EC2 VPC Security Groups to authorize on this DB Instance. This change is asynchronously applied as soon as possible.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "OptionConfiguration$VpcSecurityGroupMemberships": "

A list of VpcSecurityGroupMemebrship name strings used for this option.

" + "CreateDBInstanceMessage$VpcSecurityGroupIds": null, + "ModifyDBInstanceMessage$VpcSecurityGroupIds": null, + "OptionConfiguration$VpcSecurityGroupMemberships": null } }, "VpcSecurityGroupMembership": { - "base": "

This data type is used as a response element for queries on VPC security group membership.

", + "base": null, "refs": { "VpcSecurityGroupMembershipList$member": null } @@ -1788,8 +1788,8 @@ "VpcSecurityGroupMembershipList": { "base": null, "refs": { - "DBInstance$VpcSecurityGroups": "

Provides List of VPC security group elements that the DB Instance belongs to.

", - "Option$VpcSecurityGroupMemberships": "

If the option requires access to a port, then this VPC Security Group allows access to the port.

" + "DBInstance$VpcSecurityGroups": null, + "Option$VpcSecurityGroupMemberships": null } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/paginators-1.json index 662845c12..c51d8d15b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/paginators-1.json @@ -2,109 +2,109 @@ "pagination": { "DescribeDBEngineVersions": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBEngineVersions" }, "DescribeDBInstances": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBInstances" }, "DescribeDBLogFiles": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DescribeDBLogFiles" }, "DescribeDBParameterGroups": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBParameterGroups" }, "DescribeDBParameters": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "Parameters" }, "DescribeDBSecurityGroups": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBSecurityGroups" }, "DescribeDBSnapshots": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBSnapshots" }, "DescribeDBSubnetGroups": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBSubnetGroups" }, "DescribeEngineDefaultParameters": { "input_token": "Marker", - "output_token": "EngineDefaults.Marker", "limit_key": "MaxRecords", + "output_token": "EngineDefaults.Marker", "result_key": "EngineDefaults.Parameters" }, "DescribeEventSubscriptions": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "EventSubscriptionsList" }, "DescribeEvents": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "Events" }, "DescribeOptionGroupOptions": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "OptionGroupOptions" }, "DescribeOptionGroups": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "OptionGroupsList" }, "DescribeOrderableDBInstanceOptions": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "OrderableDBInstanceOptions" }, "DescribeReservedDBInstances": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "ReservedDBInstances" }, "DescribeReservedDBInstancesOfferings": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "ReservedDBInstancesOfferings" }, "DownloadDBLogFilePortion": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "NumberOfLines", "more_results": "AdditionalDataPending", + "output_token": "Marker", "result_key": "LogFileData" }, "ListTagsForResource": { "result_key": "TagList" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/api-2.json index 264239184..e08f6be6f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/api-2.json @@ -7,6 +7,7 @@ "serviceAbbreviation":"Amazon RDS", "serviceFullName":"Amazon Relational Database Service", "signatureVersion":"v4", + "uid":"rds-2013-09-09", "xmlNamespace":"http://rds.amazonaws.com/doc/2013-09-09/" }, "operations":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/docs-2.json index f0a22a6eb..111ed16d5 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/docs-2.json @@ -1,63 +1,63 @@ { "version": "2.0", - "service": "Amazon Relational Database Service

Amazon Relational Database Service (Amazon RDS) is a web service that makes it easier to set up, operate, and scale a relational database in the cloud. It provides cost-efficient, resizable capacity for an industry-standard relational database and manages common database administration tasks, freeing up developers to focus on what makes their applications and businesses unique.

Amazon RDS gives you access to the capabilities of a MySQL, PostgreSQL, Microsoft SQL Server, or Oracle database server. This means the code, applications, and tools you already use today with your existing databases work with Amazon RDS without modification. Amazon RDS automatically backs up your database and maintains the database software that powers your DB instance. Amazon RDS is flexible: you can scale your database instance's compute resources and storage capacity to meet your application's demand. As with all Amazon Web Services, there are no up-front investments, and you pay only for the resources you use.

This is an interface reference for Amazon RDS. It contains documentation for a programming or command line interface you can use to manage Amazon RDS. Note that Amazon RDS is asynchronous, which means that some interfaces may require techniques such as polling or callback functions to determine when a command has been applied. In this reference, the parameter descriptions indicate whether a command is applied immediately, on the next instance reboot, or during the maintenance window. For a summary of the Amazon RDS interfaces, go to Available RDS Interfaces.

", + "service": null, "operations": { - "AddSourceIdentifierToSubscription": "

Adds a source identifier to an existing RDS event notification subscription.

", - "AddTagsToResource": "

Adds metadata tags to an Amazon RDS resource. These tags can also be used with cost allocation reporting to track cost associated with Amazon RDS resources, or used in Condition statement in IAM policy for Amazon RDS.

For an overview on tagging Amazon RDS resources, see Tagging Amazon RDS Resources.

", - "AuthorizeDBSecurityGroupIngress": "

Enables ingress to a DBSecurityGroup using one of two forms of authorization. First, EC2 or VPC security groups can be added to the DBSecurityGroup if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet. Required parameters for this API are one of CIDR range, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId for non-VPC).

You cannot authorize ingress from an EC2 security group in one Region to an Amazon RDS DB instance in another. You cannot authorize ingress from a VPC security group in one VPC to an Amazon RDS DB instance in another.

For an overview of CIDR ranges, go to the Wikipedia Tutorial.

", - "CopyDBSnapshot": "

Copies the specified DBSnapshot. The source DBSnapshot must be in the \"available\" state.

", - "CreateDBInstance": "

Creates a new DB instance.

", - "CreateDBInstanceReadReplica": "

Creates a DB instance that acts as a read replica of a source DB instance.

All read replica DB instances are created as Single-AZ deployments with backups disabled. All other DB instance attributes (including DB security groups and DB parameter groups) are inherited from the source DB instance, except as specified below.

The source DB instance must have backup retention enabled.

", - "CreateDBParameterGroup": "

Creates a new DB parameter group.

A DB parameter group is initially created with the default parameters for the database engine used by the DB instance. To provide custom values for any of the parameters, you must modify the group after creating it using ModifyDBParameterGroup. Once you've created a DB parameter group, you need to associate it with your DB instance using ModifyDBInstance. When you associate a new DB parameter group with a running DB instance, you need to reboot the DB Instance for the new DB parameter group and associated settings to take effect.

After you create a DB parameter group, you should wait at least 5 minutes before creating your first DB instance that uses that DB parameter group as the default parameter group. This allows Amazon RDS to fully complete the create action before the parameter group is used as the default for a new DB instance. This is especially important for parameters that are critical when creating the default database for a DB instance, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon RDS console or the DescribeDBParameters command to verify that your DB parameter group has been created or modified.

", - "CreateDBSecurityGroup": "

Creates a new DB security group. DB security groups control access to a DB instance.

", - "CreateDBSnapshot": "

Creates a DBSnapshot. The source DBInstance must be in \"available\" state.

", - "CreateDBSubnetGroup": "

Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region.

", - "CreateEventSubscription": "

Creates an RDS event notification subscription. This action requires a topic ARN (Amazon Resource Name) created by either the RDS console, the SNS console, or the SNS API. To obtain an ARN with SNS, you must create a topic in Amazon SNS and subscribe to the topic. The ARN is displayed in the SNS console.

You can specify the type of source (SourceType) you want to be notified of, provide a list of RDS sources (SourceIds) that triggers the events, and provide a list of event categories (EventCategories) for events you want to be notified of. For example, you can specify SourceType = db-instance, SourceIds = mydbinstance1, mydbinstance2 and EventCategories = Availability, Backup.

If you specify both the SourceType and SourceIds, such as SourceType = db-instance and SourceIdentifier = myDBInstance1, you will be notified of all the db-instance events for the specified source. If you specify a SourceType but do not specify a SourceIdentifier, you will receive notice of the events for that source type for all your RDS sources. If you do not specify either the SourceType nor the SourceIdentifier, you will be notified of events generated from all RDS sources belonging to your customer account.

", - "CreateOptionGroup": "

Creates a new option group. You can create up to 20 option groups.

", - "DeleteDBInstance": "

The DeleteDBInstance action deletes a previously provisioned DB instance. A successful response from the web service indicates the request was received correctly. When you delete a DB instance, all automated backups for that instance are deleted and cannot be recovered. Manual DB snapshots of the DB instance to be deleted are not deleted.

If a final DB snapshot is requested the status of the RDS instance will be \"deleting\" until the DB snapshot is created. The API action DescribeDBInstance is used to monitor the status of this operation. The action cannot be canceled or reverted once submitted.

", - "DeleteDBParameterGroup": "

Deletes a specified DBParameterGroup. The DBParameterGroup cannot be associated with any RDS instances to be deleted.

The specified DB parameter group cannot be associated with any DB instances. ", - "DeleteDBSecurityGroup": "

Deletes a DB security group.

The specified DB security group must not be associated with any DB instances.", - "DeleteDBSnapshot": "

Deletes a DBSnapshot. If the snapshot is being copied, the copy operation is terminated.

The DBSnapshot must be in the available state to be deleted.", - "DeleteDBSubnetGroup": "

Deletes a DB subnet group.

The specified database subnet group must not be associated with any DB instances.", - "DeleteEventSubscription": "

Deletes an RDS event notification subscription.

", - "DeleteOptionGroup": "

Deletes an existing option group.

", - "DescribeDBEngineVersions": "

Returns a list of the available DB engines.

", - "DescribeDBInstances": "

Returns information about provisioned RDS instances. This API supports pagination.

", - "DescribeDBLogFiles": "

Returns a list of DB log files for the DB instance.

", - "DescribeDBParameterGroups": "

Returns a list of DBParameterGroup descriptions. If a DBParameterGroupName is specified, the list will contain only the description of the specified DB parameter group.

", - "DescribeDBParameters": "

Returns the detailed parameter list for a particular DB parameter group.

", - "DescribeDBSecurityGroups": "

Returns a list of DBSecurityGroup descriptions. If a DBSecurityGroupName is specified, the list will contain only the descriptions of the specified DB security group.

", - "DescribeDBSnapshots": "

Returns information about DB snapshots. This API supports pagination.

", - "DescribeDBSubnetGroups": "

Returns a list of DBSubnetGroup descriptions. If a DBSubnetGroupName is specified, the list will contain only the descriptions of the specified DBSubnetGroup.

For an overview of CIDR ranges, go to the Wikipedia Tutorial.

", - "DescribeEngineDefaultParameters": "

Returns the default engine and system parameter information for the specified database engine.

", - "DescribeEventCategories": "

Displays a list of categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in the Events topic in the Amazon RDS User Guide.

", - "DescribeEventSubscriptions": "

Lists all the subscription descriptions for a customer account. The description for a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType, SourceID, CreationTime, and Status.

If you specify a SubscriptionName, lists the description for that subscription.

", - "DescribeEvents": "

Returns events related to DB instances, DB security groups, DB snapshots, and DB parameter groups for the past 14 days. Events specific to a particular DB instance, DB security group, database snapshot, or DB parameter group can be obtained by providing the name as a parameter. By default, the past hour of events are returned.

", - "DescribeOptionGroupOptions": "

Describes all available options.

", - "DescribeOptionGroups": "

Describes the available option groups.

", - "DescribeOrderableDBInstanceOptions": "

Returns a list of orderable DB instance options for the specified engine.

", - "DescribeReservedDBInstances": "

Returns information about reserved DB instances for this account, or about a specified reserved DB instance.

", - "DescribeReservedDBInstancesOfferings": "

Lists available reserved DB instance offerings.

", - "DownloadDBLogFilePortion": "

Downloads all or a portion of the specified log file.

", - "ListTagsForResource": "

Lists all tags on an Amazon RDS resource.

For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS Resources.

", - "ModifyDBInstance": "

Modify settings for a DB instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.

", - "ModifyDBParameterGroup": "

Modifies the parameters of a DB parameter group. To modify more than one parameter, submit a list of the following: ParameterName, ParameterValue, and ApplyMethod. A maximum of 20 parameters can be modified in a single request.

The apply-immediate method can be used only for dynamic parameters; the pending-reboot method can be used with MySQL, PostgreSQL, and Oracle DB instances for either dynamic or static parameters. For Microsoft SQL Server DB instances, the pending-reboot method can be used only for static parameters.

After you modify a DB parameter group, you should wait at least 5 minutes before creating your first DB instance that uses that DB parameter group as the default parameter group. This allows Amazon RDS to fully complete the modify action before the parameter group is used as the default for a new DB instance. This is especially important for parameters that are critical when creating the default database for a DB instance, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon RDS console or the DescribeDBParameters command to verify that your DB parameter group has been created or modified.

", - "ModifyDBSubnetGroup": "

Modifies an existing DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region.

", - "ModifyEventSubscription": "

Modifies an existing RDS event notification subscription. Note that you cannot modify the source identifiers using this call; to change source identifiers for a subscription, use the AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription calls.

You can see a list of the event categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

", - "ModifyOptionGroup": "

Modifies an existing option group.

", - "PromoteReadReplica": "

Promotes a read replica DB instance to a standalone DB instance.

We recommend that you enable automated backups on your read replica before promoting the read replica. This ensures that no backup is taken during the promotion process. Once the instance is promoted to a primary instance, backups are taken based on your backup settings.

", - "PurchaseReservedDBInstancesOffering": "

Purchases a reserved DB instance offering.

", - "RebootDBInstance": "

Rebooting a DB instance restarts the database engine service. A reboot also applies to the DB instance any modifications to the associated DB parameter group that were pending. Rebooting a DB instance results in a momentary outage of the instance, during which the DB instance status is set to rebooting. If the RDS instance is configured for MultiAZ, it is possible that the reboot will be conducted through a failover. An Amazon RDS event is created when the reboot is completed.

If your DB instance is deployed in multiple Availability Zones, you can force a failover from one AZ to the other during the reboot. You might force a failover to test the availability of your DB instance deployment or to restore operations to the original AZ after a failover occurs.

The time required to reboot is a function of the specific database engine's crash recovery process. To improve the reboot time, we recommend that you reduce database activities as much as possible during the reboot process to reduce rollback activity for in-transit transactions.

", - "RemoveSourceIdentifierFromSubscription": "

Removes a source identifier from an existing RDS event notification subscription.

", - "RemoveTagsFromResource": "

Removes metadata tags from an Amazon RDS resource.

For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS Resources.

", - "ResetDBParameterGroup": "

Modifies the parameters of a DB parameter group to the engine/system default value. To reset specific parameters submit a list of the following: ParameterName and ApplyMethod. To reset the entire DB parameter group, specify the DBParameterGroup name and ResetAllParameters parameters. When resetting the entire group, dynamic parameters are updated immediately and static parameters are set to pending-reboot to take effect on the next DB instance restart or RebootDBInstance request.

", - "RestoreDBInstanceFromDBSnapshot": "

Creates a new DB instance from a DB snapshot. The target database is created from the source database restore point with the same configuration as the original source database, except that the new RDS instance is created with the default security group.

", - "RestoreDBInstanceToPointInTime": "

Restores a DB instance to an arbitrary point-in-time. Users can restore to any point in time before the latestRestorableTime for up to backupRetentionPeriod days. The target database is created from the source database with the same configuration as the original database except that the DB instance is created with the default DB security group.

", - "RevokeDBSecurityGroupIngress": "

Revokes ingress from a DBSecurityGroup for previously authorized IP ranges or EC2 or VPC Security Groups. Required parameters for this API are one of CIDRIP, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId).

" + "AddSourceIdentifierToSubscription": null, + "AddTagsToResource": null, + "AuthorizeDBSecurityGroupIngress": null, + "CopyDBSnapshot": null, + "CreateDBInstance": null, + "CreateDBInstanceReadReplica": null, + "CreateDBParameterGroup": null, + "CreateDBSecurityGroup": null, + "CreateDBSnapshot": null, + "CreateDBSubnetGroup": null, + "CreateEventSubscription": null, + "CreateOptionGroup": null, + "DeleteDBInstance": null, + "DeleteDBParameterGroup": null, + "DeleteDBSecurityGroup": null, + "DeleteDBSnapshot": null, + "DeleteDBSubnetGroup": null, + "DeleteEventSubscription": null, + "DeleteOptionGroup": null, + "DescribeDBEngineVersions": null, + "DescribeDBInstances": null, + "DescribeDBLogFiles": null, + "DescribeDBParameterGroups": null, + "DescribeDBParameters": null, + "DescribeDBSecurityGroups": null, + "DescribeDBSnapshots": null, + "DescribeDBSubnetGroups": null, + "DescribeEngineDefaultParameters": null, + "DescribeEventCategories": null, + "DescribeEventSubscriptions": null, + "DescribeEvents": null, + "DescribeOptionGroupOptions": null, + "DescribeOptionGroups": null, + "DescribeOrderableDBInstanceOptions": null, + "DescribeReservedDBInstances": null, + "DescribeReservedDBInstancesOfferings": null, + "DownloadDBLogFilePortion": null, + "ListTagsForResource": null, + "ModifyDBInstance": null, + "ModifyDBParameterGroup": null, + "ModifyDBSubnetGroup": null, + "ModifyEventSubscription": null, + "ModifyOptionGroup": null, + "PromoteReadReplica": null, + "PurchaseReservedDBInstancesOffering": null, + "RebootDBInstance": null, + "RemoveSourceIdentifierFromSubscription": null, + "RemoveTagsFromResource": null, + "ResetDBParameterGroup": null, + "RestoreDBInstanceFromDBSnapshot": null, + "RestoreDBInstanceToPointInTime": null, + "RevokeDBSecurityGroupIngress": null }, "shapes": { "AddSourceIdentifierToSubscriptionMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -67,33 +67,33 @@ } }, "AddTagsToResourceMessage": { - "base": "

", + "base": null, "refs": { } }, "ApplyMethod": { "base": null, "refs": { - "Parameter$ApplyMethod": "

Indicates when to apply parameter updates.

" + "Parameter$ApplyMethod": null } }, "AuthorizationAlreadyExistsFault": { - "base": "

The specified CIDRIP or EC2 security group is already authorized for the specified DB security group.

", + "base": "

The specified CIDRIP or EC2 security group is already authorized for the specified DB security group.

", "refs": { } }, "AuthorizationNotFoundFault": { - "base": "

Specified CIDRIP or EC2 security group is not authorized for the specified DB security group.

RDS may not also be authorized via IAM to perform necessary actions on your behalf.

", + "base": "

Specified CIDRIP or EC2 security group is not authorized for the specified DB security group.

RDS may not also be authorized via IAM to perform necessary actions on your behalf.

", "refs": { } }, "AuthorizationQuotaExceededFault": { - "base": "

DB security group authorization quota has been reached.

", + "base": "

DB security group authorization quota has been reached.

", "refs": { } }, "AuthorizeDBSecurityGroupIngressMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -103,7 +103,7 @@ } }, "AvailabilityZone": { - "base": "

Contains Availability Zone information.

This data type is used as an element in the following data type:

", + "base": null, "refs": { "AvailabilityZoneList$member": null, "Subnet$SubnetAvailabilityZone": null @@ -112,78 +112,78 @@ "AvailabilityZoneList": { "base": null, "refs": { - "OrderableDBInstanceOption$AvailabilityZones": "

A list of availability zones for the orderable DB instance.

" + "OrderableDBInstanceOption$AvailabilityZones": null } }, "Boolean": { "base": null, "refs": { - "AvailabilityZone$ProvisionedIopsCapable": "

True indicates the availability zone is capable of provisioned IOPs.

", - "DBInstance$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment.

", - "DBInstance$AutoMinorVersionUpgrade": "

Indicates that minor version patches are applied automatically.

", - "DBInstance$PubliclyAccessible": "

Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", - "DBInstanceStatusInfo$Normal": "

Boolean value that is true if the instance is operating normally, or false if the instance is in an error state.

", - "DeleteDBInstanceMessage$SkipFinalSnapshot": "

Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted.

Specify true when deleting a read replica.

The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot is false.

Default: false

", - "DescribeDBEngineVersionsMessage$DefaultOnly": "

Indicates that only the default version of the specified engine or engine and major version combination is returned.

", - "DownloadDBLogFilePortionDetails$AdditionalDataPending": "

Boolean value that if true, indicates there is more data to be downloaded.

", - "EventSubscription$Enabled": "

A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.

", - "ModifyDBInstanceMessage$ApplyImmediately": "

Specifies whether the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow setting for the DB instance.

If this parameter is set to false, changes to the DB instance are applied during the next maintenance window. Some parameter changes can cause an outage and will be applied on the next call to RebootDBInstance, or the next failure reboot. Review the table of parameters in Modifying a DB Instance and Using the Apply Immediately Parameter to see the impact that setting ApplyImmediately to true or false has for each modified parameter and to determine when the changes will be applied.

Default: false

", - "ModifyDBInstanceMessage$AllowMajorVersionUpgrade": "

Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

Constraints: This parameter must be set to true when specifying a value for the EngineVersion parameter that is a different major version than the DB instance's current version.

", - "ModifyOptionGroupMessage$ApplyImmediately": "

Indicates whether the changes should be applied immediately, or during the next maintenance window for each instance associated with the option group.

", - "Option$Persistent": "

Indicate if this option is persistent.

", - "Option$Permanent": "

Indicate if this option is permanent.

", - "OptionGroup$AllowsVpcAndNonVpcInstanceMemberships": "

Indicates whether this option group can be applied to both VPC and non-VPC instances. The value 'true' indicates the option group can be applied to both VPC and non-VPC instances.

", - "OptionGroupOption$PortRequired": "

Specifies whether the option requires a port.

", - "OptionGroupOption$Persistent": "

A persistent option cannot be removed from the option group once the option group is used, but this option can be removed from the db instance while modifying the related data and assigning another option group without this option.

", - "OptionGroupOption$Permanent": "

A permanent option cannot be removed from the option group once the option group is used, and it cannot be removed from the db instance after assigning an option group with this permanent option.

", - "OptionGroupOptionSetting$IsModifiable": "

Boolean value where true indicates that this option group option can be changed from the default value.

", - "OptionSetting$IsModifiable": "

A Boolean value that, when true, indicates the option setting can be modified from the default.

", - "OptionSetting$IsCollection": "

Indicates if the option setting is part of a collection.

", - "OrderableDBInstanceOption$MultiAZCapable": "

Indicates whether this orderable DB instance is multi-AZ capable.

", - "OrderableDBInstanceOption$ReadReplicaCapable": "

Indicates whether this orderable DB instance can have a read replica.

", - "OrderableDBInstanceOption$Vpc": "

Indicates whether this is a VPC orderable DB instance.

", - "Parameter$IsModifiable": "

Indicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

", - "ReservedDBInstance$MultiAZ": "

Indicates if the reservation applies to Multi-AZ deployments.

", - "ReservedDBInstancesOffering$MultiAZ": "

Indicates if the offering applies to Multi-AZ deployments.

", - "ResetDBParameterGroupMessage$ResetAllParameters": "

Specifies whether (true) or not (false) to reset all parameters in the DB parameter group to default values.

Default: true

", - "RestoreDBInstanceToPointInTimeMessage$UseLatestRestorableTime": "

Specifies whether (true) or not (false) the DB instance is restored from the latest backup time.

Default: false

Constraints: Cannot be specified if RestoreTime parameter is provided.

" + "AvailabilityZone$ProvisionedIopsCapable": null, + "DBInstance$MultiAZ": null, + "DBInstance$AutoMinorVersionUpgrade": null, + "DBInstance$PubliclyAccessible": null, + "DBInstanceStatusInfo$Normal": null, + "DeleteDBInstanceMessage$SkipFinalSnapshot": null, + "DescribeDBEngineVersionsMessage$DefaultOnly": null, + "DownloadDBLogFilePortionDetails$AdditionalDataPending": null, + "EventSubscription$Enabled": null, + "ModifyDBInstanceMessage$ApplyImmediately": null, + "ModifyDBInstanceMessage$AllowMajorVersionUpgrade": null, + "ModifyOptionGroupMessage$ApplyImmediately": null, + "Option$Persistent": null, + "Option$Permanent": null, + "OptionGroup$AllowsVpcAndNonVpcInstanceMemberships": null, + "OptionGroupOption$PortRequired": null, + "OptionGroupOption$Persistent": null, + "OptionGroupOption$Permanent": null, + "OptionGroupOptionSetting$IsModifiable": null, + "OptionSetting$IsModifiable": null, + "OptionSetting$IsCollection": null, + "OrderableDBInstanceOption$MultiAZCapable": null, + "OrderableDBInstanceOption$ReadReplicaCapable": null, + "OrderableDBInstanceOption$Vpc": null, + "Parameter$IsModifiable": null, + "ReservedDBInstance$MultiAZ": null, + "ReservedDBInstancesOffering$MultiAZ": null, + "ResetDBParameterGroupMessage$ResetAllParameters": null, + "RestoreDBInstanceToPointInTimeMessage$UseLatestRestorableTime": null } }, "BooleanOptional": { "base": null, "refs": { - "CreateDBInstanceMessage$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the MultiAZ parameter is set to true.

", - "CreateDBInstanceMessage$AutoMinorVersionUpgrade": "

Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window.

Default: true

", - "CreateDBInstanceMessage$PubliclyAccessible": "

Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", - "CreateDBInstanceReadReplicaMessage$AutoMinorVersionUpgrade": "

Indicates that minor engine upgrades will be applied automatically to the read replica during the maintenance window.

Default: Inherits from the source DB instance

", - "CreateDBInstanceReadReplicaMessage$PubliclyAccessible": "

Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", - "CreateEventSubscriptionMessage$Enabled": "

A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.

", - "DescribeDBEngineVersionsMessage$ListSupportedCharacterSets": "

If this parameter is specified, and if the requested engine supports the CharacterSetName parameter for CreateDBInstance, the response includes a list of supported character sets for each engine version.

", - "DescribeOrderableDBInstanceOptionsMessage$Vpc": "

The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.

", - "DescribeReservedDBInstancesMessage$MultiAZ": "

The Multi-AZ filter value. Specify this parameter to show only those reservations matching the specified Multi-AZ parameter.

", - "DescribeReservedDBInstancesOfferingsMessage$MultiAZ": "

The Multi-AZ filter value. Specify this parameter to show only the available offerings matching the specified Multi-AZ parameter.

", - "ModifyDBInstanceMessage$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

Constraints: Cannot be specified if the DB instance is a read replica.

", - "ModifyDBInstanceMessage$AutoMinorVersionUpgrade": "

Indicates that minor version upgrades will be applied automatically to the DB instance during the maintenance window. Changing this parameter does not result in an outage except in the following case and the change is asynchronously applied as soon as possible. An outage will result if this parameter is set to true during the maintenance window, and a newer minor version is available, and RDS has enabled auto patching for that engine version.

", - "ModifyEventSubscriptionMessage$Enabled": "

A Boolean value; set to true to activate the subscription.

", - "PendingModifiedValues$MultiAZ": "

Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.

", - "RebootDBInstanceMessage$ForceFailover": "

When true, the reboot will be conducted through a MultiAZ failover.

Constraint: You cannot specify true if the instance is not configured for MultiAZ.

", - "RestoreDBInstanceFromDBSnapshotMessage$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment.

Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

", - "RestoreDBInstanceFromDBSnapshotMessage$PubliclyAccessible": "

Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", - "RestoreDBInstanceFromDBSnapshotMessage$AutoMinorVersionUpgrade": "

Indicates that minor version upgrades will be applied automatically to the DB instance during the maintenance window.

", - "RestoreDBInstanceToPointInTimeMessage$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment.

Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

", - "RestoreDBInstanceToPointInTimeMessage$PubliclyAccessible": "

Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", - "RestoreDBInstanceToPointInTimeMessage$AutoMinorVersionUpgrade": "

Indicates that minor version upgrades will be applied automatically to the DB instance during the maintenance window.

" + "CreateDBInstanceMessage$MultiAZ": null, + "CreateDBInstanceMessage$AutoMinorVersionUpgrade": null, + "CreateDBInstanceMessage$PubliclyAccessible": null, + "CreateDBInstanceReadReplicaMessage$AutoMinorVersionUpgrade": null, + "CreateDBInstanceReadReplicaMessage$PubliclyAccessible": null, + "CreateEventSubscriptionMessage$Enabled": null, + "DescribeDBEngineVersionsMessage$ListSupportedCharacterSets": null, + "DescribeOrderableDBInstanceOptionsMessage$Vpc": null, + "DescribeReservedDBInstancesMessage$MultiAZ": null, + "DescribeReservedDBInstancesOfferingsMessage$MultiAZ": null, + "ModifyDBInstanceMessage$MultiAZ": null, + "ModifyDBInstanceMessage$AutoMinorVersionUpgrade": null, + "ModifyEventSubscriptionMessage$Enabled": null, + "PendingModifiedValues$MultiAZ": null, + "RebootDBInstanceMessage$ForceFailover": null, + "RestoreDBInstanceFromDBSnapshotMessage$MultiAZ": null, + "RestoreDBInstanceFromDBSnapshotMessage$PubliclyAccessible": null, + "RestoreDBInstanceFromDBSnapshotMessage$AutoMinorVersionUpgrade": null, + "RestoreDBInstanceToPointInTimeMessage$MultiAZ": null, + "RestoreDBInstanceToPointInTimeMessage$PubliclyAccessible": null, + "RestoreDBInstanceToPointInTimeMessage$AutoMinorVersionUpgrade": null } }, "CharacterSet": { - "base": "

This data type is used as a response element in the action DescribeDBEngineVersions.

", + "base": null, "refs": { - "DBEngineVersion$DefaultCharacterSet": "

The default character set for new instances of this engine version, if the CharacterSetName parameter of the CreateDBInstance API is not specified.

", + "DBEngineVersion$DefaultCharacterSet": null, "SupportedCharacterSetsList$member": null } }, "CopyDBSnapshotMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -193,7 +193,7 @@ } }, "CreateDBInstanceMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -213,7 +213,7 @@ } }, "CreateDBParameterGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -223,7 +223,7 @@ } }, "CreateDBSecurityGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -233,7 +233,7 @@ } }, "CreateDBSnapshotMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -243,7 +243,7 @@ } }, "CreateDBSubnetGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -253,7 +253,7 @@ } }, "CreateEventSubscriptionMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -263,7 +263,7 @@ } }, "CreateOptionGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -273,7 +273,7 @@ } }, "DBEngineVersion": { - "base": "

This data type is used as a response element in the action DescribeDBEngineVersions.

", + "base": null, "refs": { "DBEngineVersionList$member": null } @@ -281,16 +281,16 @@ "DBEngineVersionList": { "base": null, "refs": { - "DBEngineVersionMessage$DBEngineVersions": "

A list of DBEngineVersion elements.

" + "DBEngineVersionMessage$DBEngineVersions": null } }, "DBEngineVersionMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBEngineVersions action.

", + "base": null, "refs": { } }, "DBInstance": { - "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBInstances action.

", + "base": null, "refs": { "CreateDBInstanceReadReplicaResult$DBInstance": null, "CreateDBInstanceResult$DBInstance": null, @@ -304,18 +304,18 @@ } }, "DBInstanceAlreadyExistsFault": { - "base": "

User already has a DB instance with the given identifier.

", + "base": "

User already has a DB instance with the given identifier.

", "refs": { } }, "DBInstanceList": { "base": null, "refs": { - "DBInstanceMessage$DBInstances": "

A list of DBInstance instances.

" + "DBInstanceMessage$DBInstances": null } }, "DBInstanceMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBInstances action.

", + "base": null, "refs": { } }, @@ -325,7 +325,7 @@ } }, "DBInstanceStatusInfo": { - "base": "

Provides a list of status information for a DB instance.

", + "base": null, "refs": { "DBInstanceStatusInfoList$member": null } @@ -333,39 +333,39 @@ "DBInstanceStatusInfoList": { "base": null, "refs": { - "DBInstance$StatusInfos": "

The status of a read replica. If the instance is not a read replica, this will be blank.

" + "DBInstance$StatusInfos": null } }, "DBLogFileNotFoundFault": { - "base": "

LogFileName does not refer to an existing DB log file.

", + "base": "

LogFileName does not refer to an existing DB log file.

", "refs": { } }, "DBParameterGroup": { - "base": "

Contains the result of a successful invocation of the CreateDBParameterGroup action.

This data type is used as a request parameter in the DeleteDBParameterGroup action, and as a response element in the DescribeDBParameterGroups action.

", + "base": null, "refs": { "CreateDBParameterGroupResult$DBParameterGroup": null, "DBParameterGroupList$member": null } }, "DBParameterGroupAlreadyExistsFault": { - "base": "

A DB parameter group with the same name exists.

", + "base": "

A DB parameter group with the same name exists.

", "refs": { } }, "DBParameterGroupDetails": { - "base": "

Contains the result of a successful invocation of the DescribeDBParameters action.

", + "base": null, "refs": { } }, "DBParameterGroupList": { "base": null, "refs": { - "DBParameterGroupsMessage$DBParameterGroups": "

A list of DBParameterGroup instances.

" + "DBParameterGroupsMessage$DBParameterGroups": null } }, "DBParameterGroupNameMessage": { - "base": "

Contains the result of a successful invocation of the ModifyDBParameterGroup or ResetDBParameterGroup action.

", + "base": null, "refs": { } }, @@ -375,12 +375,12 @@ } }, "DBParameterGroupQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of DB parameter groups.

", + "base": "

Request would result in user exceeding the allowed number of DB parameter groups.

", "refs": { } }, "DBParameterGroupStatus": { - "base": "

The status of the DB parameter group.

This data type is used as a response element in the following actions:

", + "base": null, "refs": { "DBParameterGroupStatusList$member": null } @@ -388,16 +388,16 @@ "DBParameterGroupStatusList": { "base": null, "refs": { - "DBInstance$DBParameterGroups": "

Provides the list of DB parameter groups applied to this DB instance.

" + "DBInstance$DBParameterGroups": null } }, "DBParameterGroupsMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBParameterGroups action.

", + "base": null, "refs": { } }, "DBSecurityGroup": { - "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBSecurityGroups action.

", + "base": null, "refs": { "AuthorizeDBSecurityGroupIngressResult$DBSecurityGroup": null, "CreateDBSecurityGroupResult$DBSecurityGroup": null, @@ -411,7 +411,7 @@ } }, "DBSecurityGroupMembership": { - "base": "

This data type is used as a response element in the following actions:

", + "base": null, "refs": { "DBSecurityGroupMembershipList$member": null } @@ -419,21 +419,21 @@ "DBSecurityGroupMembershipList": { "base": null, "refs": { - "DBInstance$DBSecurityGroups": "

Provides List of DB security group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.

", - "Option$DBSecurityGroupMemberships": "

If the option requires access to a port, then this DB security group allows access to the port.

" + "DBInstance$DBSecurityGroups": null, + "Option$DBSecurityGroupMemberships": null } }, "DBSecurityGroupMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBSecurityGroups action.

", + "base": null, "refs": { } }, "DBSecurityGroupNameList": { "base": null, "refs": { - "CreateDBInstanceMessage$DBSecurityGroups": "

A list of DB security groups to associate with this DB instance.

Default: The default DB security group for the database engine.

", - "ModifyDBInstanceMessage$DBSecurityGroups": "

A list of DB security groups to authorize on this DB instance. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "OptionConfiguration$DBSecurityGroupMemberships": "

A list of DBSecurityGroupMemebrship name strings used for this option.

" + "CreateDBInstanceMessage$DBSecurityGroups": null, + "ModifyDBInstanceMessage$DBSecurityGroups": null, + "OptionConfiguration$DBSecurityGroupMemberships": null } }, "DBSecurityGroupNotFoundFault": { @@ -442,23 +442,23 @@ } }, "DBSecurityGroupNotSupportedFault": { - "base": "

A DB security group is not allowed for this action.

", + "base": "

A DB security group is not allowed for this action.

", "refs": { } }, "DBSecurityGroupQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of DB security groups.

", + "base": "

Request would result in user exceeding the allowed number of DB security groups.

", "refs": { } }, "DBSecurityGroups": { "base": null, "refs": { - "DBSecurityGroupMessage$DBSecurityGroups": "

A list of DBSecurityGroup instances.

" + "DBSecurityGroupMessage$DBSecurityGroups": null } }, "DBSnapshot": { - "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBSnapshots action.

", + "base": null, "refs": { "CopyDBSnapshotResult$DBSnapshot": null, "CreateDBSnapshotResult$DBSnapshot": null, @@ -474,11 +474,11 @@ "DBSnapshotList": { "base": null, "refs": { - "DBSnapshotMessage$DBSnapshots": "

A list of DBSnapshot instances.

" + "DBSnapshotMessage$DBSnapshots": null } }, "DBSnapshotMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBSnapshots action.

", + "base": null, "refs": { } }, @@ -488,10 +488,10 @@ } }, "DBSubnetGroup": { - "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBSubnetGroups action.

", + "base": null, "refs": { "CreateDBSubnetGroupResult$DBSubnetGroup": null, - "DBInstance$DBSubnetGroup": "

Specifies information on the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.

", + "DBInstance$DBSubnetGroup": null, "DBSubnetGroups$member": null, "ModifyDBSubnetGroupResult$DBSubnetGroup": null } @@ -502,17 +502,17 @@ } }, "DBSubnetGroupDoesNotCoverEnoughAZs": { - "base": "

Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one Availability Zone.

", + "base": "

Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one Availability Zone.

", "refs": { } }, "DBSubnetGroupMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBSubnetGroups action.

", + "base": null, "refs": { } }, "DBSubnetGroupNotAllowedFault": { - "base": "

Indicates that the DBSubnetGroup should not be specified while creating read replicas that lie in the same region as the source instance.

", + "base": "

Indicates that the DBSubnetGroup should not be specified while creating read replicas that lie in the same region as the source instance.

", "refs": { } }, @@ -522,28 +522,28 @@ } }, "DBSubnetGroupQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of DB subnet groups.

", + "base": "

Request would result in user exceeding the allowed number of DB subnet groups.

", "refs": { } }, "DBSubnetGroups": { "base": null, "refs": { - "DBSubnetGroupMessage$DBSubnetGroups": "

A list of DBSubnetGroup instances.

" + "DBSubnetGroupMessage$DBSubnetGroups": null } }, "DBSubnetQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of subnets in a DB subnet groups.

", + "base": "

Request would result in user exceeding the allowed number of subnets in a DB subnet groups.

", "refs": { } }, "DBUpgradeDependencyFailureFault": { - "base": "

The DB upgrade failed because a resource the DB depends on could not be modified.

", + "base": "

The DB upgrade failed because a resource the DB depends on could not be modified.

", "refs": { } }, "DeleteDBInstanceMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -553,17 +553,17 @@ } }, "DeleteDBParameterGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "DeleteDBSecurityGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "DeleteDBSnapshotMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -573,12 +573,12 @@ } }, "DeleteDBSubnetGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "DeleteEventSubscriptionMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -588,7 +588,7 @@ } }, "DeleteOptionGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -598,12 +598,12 @@ } }, "DescribeDBInstancesMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeDBLogFilesDetails": { - "base": "

This data type is used as a response element to DescribeDBLogFiles.

", + "base": null, "refs": { "DescribeDBLogFilesList$member": null } @@ -611,21 +611,21 @@ "DescribeDBLogFilesList": { "base": null, "refs": { - "DescribeDBLogFilesResponse$DescribeDBLogFiles": "

The DB log files returned.

" + "DescribeDBLogFilesResponse$DescribeDBLogFiles": null } }, "DescribeDBLogFilesMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeDBLogFilesResponse": { - "base": "

The response from a call to DescribeDBLogFiles.

", + "base": null, "refs": { } }, "DescribeDBParameterGroupsMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -635,22 +635,22 @@ } }, "DescribeDBSecurityGroupsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeDBSnapshotsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeDBSubnetGroupsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeEngineDefaultParametersMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -660,67 +660,67 @@ } }, "DescribeEventCategoriesMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeEventSubscriptionsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeEventsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeOptionGroupOptionsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeOptionGroupsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeOrderableDBInstanceOptionsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeReservedDBInstancesMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeReservedDBInstancesOfferingsMessage": { - "base": "

", + "base": null, "refs": { } }, "Double": { "base": null, "refs": { - "RecurringCharge$RecurringChargeAmount": "

The amount of the recurring charge.

", - "ReservedDBInstance$FixedPrice": "

The fixed price charged for this reserved DB instance.

", - "ReservedDBInstance$UsagePrice": "

The hourly price charged for this reserved DB instance.

", - "ReservedDBInstancesOffering$FixedPrice": "

The fixed price charged for this offering.

", - "ReservedDBInstancesOffering$UsagePrice": "

The hourly price charged for this offering.

" + "RecurringCharge$RecurringChargeAmount": null, + "ReservedDBInstance$FixedPrice": null, + "ReservedDBInstance$UsagePrice": null, + "ReservedDBInstancesOffering$FixedPrice": null, + "ReservedDBInstancesOffering$UsagePrice": null } }, "DownloadDBLogFilePortionDetails": { - "base": "

This data type is used as a response element to DownloadDBLogFilePortion.

", + "base": null, "refs": { } }, "DownloadDBLogFilePortionMessage": { - "base": "

", + "base": null, "refs": { } }, "EC2SecurityGroup": { - "base": "

This data type is used as a response element in the following actions:

", + "base": null, "refs": { "EC2SecurityGroupList$member": null } @@ -728,23 +728,23 @@ "EC2SecurityGroupList": { "base": null, "refs": { - "DBSecurityGroup$EC2SecurityGroups": "

Contains a list of EC2SecurityGroup elements.

" + "DBSecurityGroup$EC2SecurityGroups": null } }, "Endpoint": { - "base": "

This data type is used as a response element in the following actions:

", + "base": null, "refs": { - "DBInstance$Endpoint": "

Specifies the connection endpoint.

" + "DBInstance$Endpoint": null } }, "EngineDefaults": { - "base": "

Contains the result of a successful invocation of the DescribeEngineDefaultParameters action.

", + "base": null, "refs": { "DescribeEngineDefaultParametersResult$EngineDefaults": null } }, "Event": { - "base": "

This data type is used as a response element in the DescribeEvents action.

", + "base": null, "refs": { "EventList$member": null } @@ -752,16 +752,16 @@ "EventCategoriesList": { "base": null, "refs": { - "CreateEventSubscriptionMessage$EventCategories": "

A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

", - "DescribeEventsMessage$EventCategories": "

A list of event categories that trigger notifications for a event notification subscription.

", - "Event$EventCategories": "

Specifies the category for the event.

", - "EventCategoriesMap$EventCategories": "

The event categories for the specified source type

", - "EventSubscription$EventCategoriesList": "

A list of event categories for the RDS event notification subscription.

", - "ModifyEventSubscriptionMessage$EventCategories": "

A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

" + "CreateEventSubscriptionMessage$EventCategories": null, + "DescribeEventsMessage$EventCategories": null, + "Event$EventCategories": null, + "EventCategoriesMap$EventCategories": null, + "EventSubscription$EventCategoriesList": null, + "ModifyEventSubscriptionMessage$EventCategories": null } }, "EventCategoriesMap": { - "base": "

Contains the results of a successful invocation of the DescribeEventCategories action.

", + "base": null, "refs": { "EventCategoriesMapList$member": null } @@ -769,22 +769,22 @@ "EventCategoriesMapList": { "base": null, "refs": { - "EventCategoriesMessage$EventCategoriesMapList": "

A list of EventCategoriesMap data types.

" + "EventCategoriesMessage$EventCategoriesMapList": null } }, "EventCategoriesMessage": { - "base": "

Data returned from the DescribeEventCategories action.

", + "base": null, "refs": { } }, "EventList": { "base": null, "refs": { - "EventsMessage$Events": "

A list of Event instances.

" + "EventsMessage$Events": null } }, "EventSubscription": { - "base": "

Contains the results of a successful invocation of the DescribeEventSubscriptions action.

", + "base": null, "refs": { "AddSourceIdentifierToSubscriptionResult$EventSubscription": null, "CreateEventSubscriptionResult$EventSubscription": null, @@ -802,16 +802,16 @@ "EventSubscriptionsList": { "base": null, "refs": { - "EventSubscriptionsMessage$EventSubscriptionsList": "

A list of EventSubscriptions data types.

" + "EventSubscriptionsMessage$EventSubscriptionsList": null } }, "EventSubscriptionsMessage": { - "base": "

Data returned by the DescribeEventSubscriptions action.

", + "base": null, "refs": { } }, "EventsMessage": { - "base": "

Contains the result of a successful invocation of the DescribeEvents action.

", + "base": null, "refs": { } }, @@ -824,34 +824,34 @@ "FilterList": { "base": null, "refs": { - "DescribeDBEngineVersionsMessage$Filters": "

Not currently supported.

", - "DescribeDBInstancesMessage$Filters": "

This parameter is not currently supported.

", - "DescribeDBLogFilesMessage$Filters": "

This parameter is not currently supported.

", - "DescribeDBParameterGroupsMessage$Filters": "

This parameter is not currently supported.

", - "DescribeDBParametersMessage$Filters": "

This parameter is not currently supported.

", - "DescribeDBSecurityGroupsMessage$Filters": "

This parameter is not currently supported.

", - "DescribeDBSnapshotsMessage$Filters": "

This parameter is not currently supported.

", - "DescribeDBSubnetGroupsMessage$Filters": "

This parameter is not currently supported.

", - "DescribeEngineDefaultParametersMessage$Filters": "

Not currently supported.

", - "DescribeEventCategoriesMessage$Filters": "

This parameter is not currently supported.

", - "DescribeEventSubscriptionsMessage$Filters": "

This parameter is not currently supported.

", - "DescribeEventsMessage$Filters": "

This parameter is not currently supported.

", - "DescribeOptionGroupOptionsMessage$Filters": "

This parameter is not currently supported.

", - "DescribeOptionGroupsMessage$Filters": "

This parameter is not currently supported.

", - "DescribeOrderableDBInstanceOptionsMessage$Filters": "

This parameter is not currently supported.

", - "DescribeReservedDBInstancesMessage$Filters": "

This parameter is not currently supported.

", - "DescribeReservedDBInstancesOfferingsMessage$Filters": "

This parameter is not currently supported.

", - "ListTagsForResourceMessage$Filters": "

This parameter is not currently supported.

" + "DescribeDBEngineVersionsMessage$Filters": null, + "DescribeDBInstancesMessage$Filters": null, + "DescribeDBLogFilesMessage$Filters": null, + "DescribeDBParameterGroupsMessage$Filters": null, + "DescribeDBParametersMessage$Filters": null, + "DescribeDBSecurityGroupsMessage$Filters": null, + "DescribeDBSnapshotsMessage$Filters": null, + "DescribeDBSubnetGroupsMessage$Filters": null, + "DescribeEngineDefaultParametersMessage$Filters": null, + "DescribeEventCategoriesMessage$Filters": null, + "DescribeEventSubscriptionsMessage$Filters": null, + "DescribeEventsMessage$Filters": null, + "DescribeOptionGroupOptionsMessage$Filters": null, + "DescribeOptionGroupsMessage$Filters": null, + "DescribeOrderableDBInstanceOptionsMessage$Filters": null, + "DescribeReservedDBInstancesMessage$Filters": null, + "DescribeReservedDBInstancesOfferingsMessage$Filters": null, + "ListTagsForResourceMessage$Filters": null } }, "FilterValueList": { "base": null, "refs": { - "Filter$Values": "

This parameter is not currently supported.

" + "Filter$Values": null } }, "IPRange": { - "base": "

This data type is used as a response element in the DescribeDBSecurityGroups action.

", + "base": null, "refs": { "IPRangeList$member": null } @@ -859,78 +859,78 @@ "IPRangeList": { "base": null, "refs": { - "DBSecurityGroup$IPRanges": "

Contains a list of IPRange elements.

" + "DBSecurityGroup$IPRanges": null } }, "InstanceQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of DB instances.

", + "base": "

Request would result in user exceeding the allowed number of DB instances.

", "refs": { } }, "InsufficientDBInstanceCapacityFault": { - "base": "

Specified DB instance class is not available in the specified Availability Zone.

", + "base": "

Specified DB instance class is not available in the specified Availability Zone.

", "refs": { } }, "Integer": { "base": null, "refs": { - "DBInstance$AllocatedStorage": "

Specifies the allocated storage size specified in gigabytes.

", - "DBInstance$BackupRetentionPeriod": "

Specifies the number of days for which automatic DB snapshots are retained.

", - "DBSnapshot$AllocatedStorage": "

Specifies the allocated storage size in gigabytes (GB).

", - "DBSnapshot$Port": "

Specifies the port that the database engine was listening on at the time of the snapshot.

", - "DBSnapshot$PercentProgress": "

The percentage of the estimated data that has been transferred.

", - "DownloadDBLogFilePortionMessage$NumberOfLines": "

The number of lines to download.

If the NumberOfLines parameter is specified, then the block of lines returned can be from the beginning or the end of the log file, depending on the value of the Marker parameter.

  • If neither Marker or NumberOfLines are specified, the entire log file is returned.

  • If NumberOfLines is specified and Marker is not specified, then the most recent lines from the end of the log file are returned.

  • If Marker is specified as \"0\", then the specified number of lines from the beginning of the log file are returned.

  • You can download the log file in blocks of lines by specifying the size of the block using the NumberOfLines parameter, and by specifying a value of \"0\" for the Marker parameter in your first request. Include the Marker value returned in the response as the Marker value for the next request, continuing until the AdditionalDataPending response element returns false.

", - "Endpoint$Port": "

Specifies the port that the database engine is listening on.

", - "ReservedDBInstance$Duration": "

The duration of the reservation in seconds.

", - "ReservedDBInstance$DBInstanceCount": "

The number of reserved DB instances.

", - "ReservedDBInstancesOffering$Duration": "

The duration of the offering in seconds.

" + "DBInstance$AllocatedStorage": null, + "DBInstance$BackupRetentionPeriod": null, + "DBSnapshot$AllocatedStorage": null, + "DBSnapshot$Port": null, + "DBSnapshot$PercentProgress": null, + "DownloadDBLogFilePortionMessage$NumberOfLines": null, + "Endpoint$Port": null, + "ReservedDBInstance$Duration": null, + "ReservedDBInstance$DBInstanceCount": null, + "ReservedDBInstancesOffering$Duration": null } }, "IntegerOptional": { "base": null, "refs": { - "CreateDBInstanceMessage$AllocatedStorage": "

The amount of storage (in gigabytes) to be initially allocated for the database instance.

Type: Integer

MySQL

Constraints: Must be an integer from 5 to 3072.

PostgreSQL

Constraints: Must be an integer from 5 to 3072.

Oracle

Constraints: Must be an integer from 10 to 3072.

SQL Server

Constraints: Must be an integer from 200 to 1024 (Standard Edition and Enterprise Edition) or from 30 to 1024 (Express Edition and Web Edition)

", - "CreateDBInstanceMessage$BackupRetentionPeriod": "

The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

Default: 1

Constraints:

  • Must be a value from 0 to 35
  • Cannot be set to 0 if the DB instance is a source to read replicas
", - "CreateDBInstanceMessage$Port": "

The port number on which the database accepts connections.

MySQL

Default: 3306

Valid Values: 1150-65535

Type: Integer

PostgreSQL

Default: 5432

Valid Values: 1150-65535

Type: Integer

Oracle

Default: 1521

Valid Values: 1150-65535

SQL Server

Default: 1433

Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 through 49156.

", - "CreateDBInstanceMessage$Iops": "

The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.

Constraints: To use PIOPS, this value must be an integer greater than 1000.

", - "CreateDBInstanceReadReplicaMessage$Port": "

The port number that the DB instance uses for connections.

Default: Inherits from the source DB instance

Valid Values: 1150-65535

", - "CreateDBInstanceReadReplicaMessage$Iops": "

The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.

", - "DBInstance$Iops": "

Specifies the Provisioned IOPS (I/O operations per second) value.

", - "DBSnapshot$Iops": "

Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.

", - "DescribeDBEngineVersionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBInstancesMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBLogFilesMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

", - "DescribeDBParameterGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBParametersMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBSecurityGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBSnapshotsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBSubnetGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeEngineDefaultParametersMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeEventSubscriptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeEventsMessage$Duration": "

The number of minutes to retrieve events for.

Default: 60

", - "DescribeEventsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeOptionGroupOptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeOptionGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeOrderableDBInstanceOptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeReservedDBInstancesMessage$MaxRecords": "

The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeReservedDBInstancesOfferingsMessage$MaxRecords": "

The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "ModifyDBInstanceMessage$AllocatedStorage": "

The new storage capacity of the RDS instance. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

MySQL

Default: Uses existing setting

Valid Values: 5-3072

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

Type: Integer

PostgreSQL

Default: Uses existing setting

Valid Values: 5-3072

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

Type: Integer

Oracle

Default: Uses existing setting

Valid Values: 10-3072

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

SQL Server

Cannot be modified.

If you choose to migrate your DB instance from using standard storage to using Provisioned IOPS, or from using Provisioned IOPS to using standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance will be available for use, but may experience performance degradation. While the migration takes place, nightly backups for the instance will be suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.

", - "ModifyDBInstanceMessage$BackupRetentionPeriod": "

The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

Changing this parameter can result in an outage if you change from 0 to a non-zero value or from a non-zero value to 0. These changes are applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request. If you change the parameter from one non-zero value to another non-zero value, the change is asynchronously applied as soon as possible.

Default: Uses existing setting

Constraints:

  • Must be a value from 0 to 35
  • Can be specified for a read replica only if the source is running MySQL 5.6
  • Cannot be set to 0 if the DB instance is a source to read replicas
", - "ModifyDBInstanceMessage$Iops": "

The new Provisioned IOPS (I/O operations per second) value for the RDS instance. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

Default: Uses existing setting

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value. If you are migrating from Provisioned IOPS to standard storage, set this value to 0.

SQL Server

Setting the IOPS value for the SQL Server database engine is not supported.

Type: Integer

If you choose to migrate your DB instance from using standard storage to using Provisioned IOPS, or from using Provisioned IOPS to using standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance will be available for use, but may experience performance degradation. While the migration takes place, nightly backups for the instance will be suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.

", - "Option$Port": "

If required, the port configured for this option to use.

", - "OptionConfiguration$Port": "

The optional port for the option.

", - "OptionGroupOption$DefaultPort": "

If the option requires a port, specifies the default port for the option.

", - "PendingModifiedValues$AllocatedStorage": "

Contains the new AllocatedStorage size for the DB instance that will be applied or is in progress.

", - "PendingModifiedValues$Port": "

Specifies the pending port for the DB instance.

", - "PendingModifiedValues$BackupRetentionPeriod": "

Specifies the pending number of days for which automated backups are retained.

", - "PendingModifiedValues$Iops": "

Specifies the new Provisioned IOPS value for the DB instance that will be applied or is being applied.

", - "PromoteReadReplicaMessage$BackupRetentionPeriod": "

The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

Default: 1

Constraints:

  • Must be a value from 0 to 8
", - "PurchaseReservedDBInstancesOfferingMessage$DBInstanceCount": "

The number of instances to reserve.

Default: 1

", - "RestoreDBInstanceFromDBSnapshotMessage$Port": "

The port number on which the database accepts connections.

Default: The same port as the original DB instance

Constraints: Value must be 1150-65535

", - "RestoreDBInstanceFromDBSnapshotMessage$Iops": "

Specifies the amount of provisioned IOPS for the DB instance, expressed in I/O operations per second. If this parameter is not specified, the IOPS value will be taken from the backup. If this parameter is set to 0, the new instance will be converted to a non-PIOPS instance, which will take additional time, though your DB instance will be available for connections before the conversion starts.

Constraints: Must be an integer greater than 1000.

SQL Server

Setting the IOPS value for the SQL Server database engine is not supported.

", - "RestoreDBInstanceToPointInTimeMessage$Port": "

The port number on which the database accepts connections.

Constraints: Value must be 1150-65535

Default: The same port as the original DB instance.

", - "RestoreDBInstanceToPointInTimeMessage$Iops": "

The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.

Constraints: Must be an integer greater than 1000.

SQL Server

Setting the IOPS value for the SQL Server database engine is not supported.

" + "CreateDBInstanceMessage$AllocatedStorage": null, + "CreateDBInstanceMessage$BackupRetentionPeriod": null, + "CreateDBInstanceMessage$Port": null, + "CreateDBInstanceMessage$Iops": null, + "CreateDBInstanceReadReplicaMessage$Port": null, + "CreateDBInstanceReadReplicaMessage$Iops": null, + "DBInstance$Iops": null, + "DBSnapshot$Iops": null, + "DescribeDBEngineVersionsMessage$MaxRecords": null, + "DescribeDBInstancesMessage$MaxRecords": null, + "DescribeDBLogFilesMessage$MaxRecords": null, + "DescribeDBParameterGroupsMessage$MaxRecords": null, + "DescribeDBParametersMessage$MaxRecords": null, + "DescribeDBSecurityGroupsMessage$MaxRecords": null, + "DescribeDBSnapshotsMessage$MaxRecords": null, + "DescribeDBSubnetGroupsMessage$MaxRecords": null, + "DescribeEngineDefaultParametersMessage$MaxRecords": null, + "DescribeEventSubscriptionsMessage$MaxRecords": null, + "DescribeEventsMessage$Duration": null, + "DescribeEventsMessage$MaxRecords": null, + "DescribeOptionGroupOptionsMessage$MaxRecords": null, + "DescribeOptionGroupsMessage$MaxRecords": null, + "DescribeOrderableDBInstanceOptionsMessage$MaxRecords": null, + "DescribeReservedDBInstancesMessage$MaxRecords": null, + "DescribeReservedDBInstancesOfferingsMessage$MaxRecords": null, + "ModifyDBInstanceMessage$AllocatedStorage": null, + "ModifyDBInstanceMessage$BackupRetentionPeriod": null, + "ModifyDBInstanceMessage$Iops": null, + "Option$Port": null, + "OptionConfiguration$Port": null, + "OptionGroupOption$DefaultPort": null, + "PendingModifiedValues$AllocatedStorage": null, + "PendingModifiedValues$Port": null, + "PendingModifiedValues$BackupRetentionPeriod": null, + "PendingModifiedValues$Iops": null, + "PromoteReadReplicaMessage$BackupRetentionPeriod": null, + "PurchaseReservedDBInstancesOfferingMessage$DBInstanceCount": null, + "RestoreDBInstanceFromDBSnapshotMessage$Port": null, + "RestoreDBInstanceFromDBSnapshotMessage$Iops": null, + "RestoreDBInstanceToPointInTimeMessage$Port": null, + "RestoreDBInstanceToPointInTimeMessage$Iops": null } }, "InvalidDBInstanceStateFault": { @@ -939,27 +939,27 @@ } }, "InvalidDBParameterGroupStateFault": { - "base": "

The DB parameter group cannot be deleted because it is in use.

", + "base": "

The DB parameter group cannot be deleted because it is in use.

", "refs": { } }, "InvalidDBSecurityGroupStateFault": { - "base": "

The state of the DB security group does not allow deletion.

", + "base": "

The state of the DB security group does not allow deletion.

", "refs": { } }, "InvalidDBSnapshotStateFault": { - "base": "

The state of the DB snapshot does not allow deletion.

", + "base": "

The state of the DB snapshot does not allow deletion.

", "refs": { } }, "InvalidDBSubnetGroupFault": { - "base": "

Indicates the DBSubnetGroup does not belong to the same VPC as that of an existing cross region read replica of the same source instance.

", + "base": "

Indicates the DBSubnetGroup does not belong to the same VPC as that of an existing cross region read replica of the same source instance.

", "refs": { } }, "InvalidDBSubnetGroupStateFault": { - "base": "

The DB subnet group cannot be deleted because it is in use.

", + "base": "

The DB subnet group cannot be deleted because it is in use.

", "refs": { } }, @@ -979,42 +979,42 @@ } }, "InvalidRestoreFault": { - "base": "

Cannot restore from vpc backup to non-vpc DB instance.

", + "base": "

Cannot restore from vpc backup to non-vpc DB instance.

", "refs": { } }, "InvalidSubnet": { - "base": "

The requested subnet is invalid, or multiple subnets were requested that are not all in a common VPC.

", + "base": "

The requested subnet is invalid, or multiple subnets were requested that are not all in a common VPC.

", "refs": { } }, "InvalidVPCNetworkStateFault": { - "base": "

DB subnet group does not cover all Availability Zones after it is created because users' change.

", + "base": "

DB subnet group does not cover all Availability Zones after it is created because users' change.

", "refs": { } }, "KeyList": { "base": null, "refs": { - "RemoveTagsFromResourceMessage$TagKeys": "

The tag key (name) of the tag to be removed.

" + "RemoveTagsFromResourceMessage$TagKeys": null } }, "ListTagsForResourceMessage": { - "base": "

", + "base": null, "refs": { } }, "Long": { "base": null, "refs": { - "DescribeDBLogFilesDetails$LastWritten": "

A POSIX timestamp when the last log entry was written.

", - "DescribeDBLogFilesDetails$Size": "

The size, in bytes, of the log file for the specified DB instance.

", - "DescribeDBLogFilesMessage$FileLastWritten": "

Filters the available log files for files written since the specified date, in POSIX timestamp format.

", - "DescribeDBLogFilesMessage$FileSize": "

Filters the available log files for files larger than the specified size.

" + "DescribeDBLogFilesDetails$LastWritten": null, + "DescribeDBLogFilesDetails$Size": null, + "DescribeDBLogFilesMessage$FileLastWritten": null, + "DescribeDBLogFilesMessage$FileSize": null } }, "ModifyDBInstanceMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1024,12 +1024,12 @@ } }, "ModifyDBParameterGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "ModifyDBSubnetGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1039,7 +1039,7 @@ } }, "ModifyEventSubscriptionMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1049,7 +1049,7 @@ } }, "ModifyOptionGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1059,13 +1059,13 @@ } }, "Option": { - "base": "

Option details.

", + "base": null, "refs": { "OptionsList$member": null } }, "OptionConfiguration": { - "base": "

A list of all available options

", + "base": null, "refs": { "OptionConfigurationList$member": null } @@ -1073,11 +1073,11 @@ "OptionConfigurationList": { "base": null, "refs": { - "ModifyOptionGroupMessage$OptionsToInclude": "

Options in this list are added to the option group or, if already present, the specified configuration is used to update the existing configuration.

" + "ModifyOptionGroupMessage$OptionsToInclude": null } }, "OptionGroup": { - "base": "

", + "base": null, "refs": { "CreateOptionGroupResult$OptionGroup": null, "ModifyOptionGroupResult$OptionGroup": null, @@ -1085,12 +1085,12 @@ } }, "OptionGroupAlreadyExistsFault": { - "base": "

The option group you are trying to create already exists.

", + "base": "

The option group you are trying to create already exists.

", "refs": { } }, "OptionGroupMembership": { - "base": "

Provides information on the option groups the DB instance is a member of.

", + "base": null, "refs": { "OptionGroupMembershipList$member": null } @@ -1098,22 +1098,22 @@ "OptionGroupMembershipList": { "base": null, "refs": { - "DBInstance$OptionGroupMemberships": "

Provides the list of option group memberships for this DB instance.

" + "DBInstance$OptionGroupMemberships": null } }, "OptionGroupNotFoundFault": { - "base": "

The specified option group could not be found.

", + "base": "

The specified option group could not be found.

", "refs": { } }, "OptionGroupOption": { - "base": "

Available option.

", + "base": null, "refs": { "OptionGroupOptionsList$member": null } }, "OptionGroupOptionSetting": { - "base": "

option group option settings are used to display settings available for each option with their default values and other information. These values are used with the DescribeOptionGroupOptions action.

", + "base": null, "refs": { "OptionGroupOptionSettingsList$member": null } @@ -1121,44 +1121,44 @@ "OptionGroupOptionSettingsList": { "base": null, "refs": { - "OptionGroupOption$OptionGroupOptionSettings": "

Specifies the option settings that are available (and the default value) for each option in an option group.

" + "OptionGroupOption$OptionGroupOptionSettings": null } }, "OptionGroupOptionsList": { - "base": "

List of available option group options.

", + "base": null, "refs": { "OptionGroupOptionsMessage$OptionGroupOptions": null } }, "OptionGroupOptionsMessage": { - "base": "

", + "base": null, "refs": { } }, "OptionGroupQuotaExceededFault": { - "base": "

The quota of 20 option groups was exceeded for this AWS account.

", + "base": "

The quota of 20 option groups was exceeded for this AWS account.

", "refs": { } }, "OptionGroups": { - "base": "

List of option groups.

", + "base": null, "refs": { } }, "OptionGroupsList": { "base": null, "refs": { - "OptionGroups$OptionGroupsList": "

List of option groups.

" + "OptionGroups$OptionGroupsList": null } }, "OptionNamesList": { "base": null, "refs": { - "ModifyOptionGroupMessage$OptionsToRemove": "

Options in this list are removed from the option group.

" + "ModifyOptionGroupMessage$OptionsToRemove": null } }, "OptionSetting": { - "base": "

Option settings are the actual settings being applied or configured for that option. It is used when you modify an option group or describe option groups. For example, the NATIVE_NETWORK_ENCRYPTION option has a setting called SQLNET.ENCRYPTION_SERVER that can have several different values.

", + "base": null, "refs": { "OptionSettingConfigurationList$member": null, "OptionSettingsList$member": null @@ -1167,29 +1167,29 @@ "OptionSettingConfigurationList": { "base": null, "refs": { - "Option$OptionSettings": "

The option settings for this option.

" + "Option$OptionSettings": null } }, "OptionSettingsList": { "base": null, "refs": { - "OptionConfiguration$OptionSettings": "

The option settings to include in an option group.

" + "OptionConfiguration$OptionSettings": null } }, "OptionsDependedOn": { "base": null, "refs": { - "OptionGroupOption$OptionsDependedOn": "

List of all options that are prerequisites for this option.

" + "OptionGroupOption$OptionsDependedOn": null } }, "OptionsList": { "base": null, "refs": { - "OptionGroup$Options": "

Indicates what options are available in the option group.

" + "OptionGroup$Options": null } }, "OrderableDBInstanceOption": { - "base": "

Contains a list of available options for a DB instance

This data type is used as a response element in the DescribeOrderableDBInstanceOptions action.

", + "base": null, "refs": { "OrderableDBInstanceOptionsList$member": null } @@ -1197,16 +1197,16 @@ "OrderableDBInstanceOptionsList": { "base": null, "refs": { - "OrderableDBInstanceOptionsMessage$OrderableDBInstanceOptions": "

An OrderableDBInstanceOption structure containing information about orderable options for the DB instance.

" + "OrderableDBInstanceOptionsMessage$OrderableDBInstanceOptions": null } }, "OrderableDBInstanceOptionsMessage": { - "base": "

Contains the result of a successful invocation of the DescribeOrderableDBInstanceOptions action.

", + "base": null, "refs": { } }, "Parameter": { - "base": "

This data type is used as a request parameter in the ModifyDBParameterGroup and ResetDBParameterGroup actions.

This data type is used as a response element in the DescribeEngineDefaultParameters and DescribeDBParameters actions.

", + "base": null, "refs": { "ParametersList$member": null } @@ -1214,16 +1214,16 @@ "ParametersList": { "base": null, "refs": { - "DBParameterGroupDetails$Parameters": "

A list of Parameter values.

", - "EngineDefaults$Parameters": "

Contains a list of engine default parameters.

", - "ModifyDBParameterGroupMessage$Parameters": "

An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters may be modified in a single request.

Valid Values (for the application method): immediate | pending-reboot

You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when DB instance reboots. ", - "ResetDBParameterGroupMessage$Parameters": "

An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters may be modified in a single request.

MySQL

Valid Values (for Apply method): immediate | pending-reboot

You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when DB instance reboots.

Oracle

Valid Values (for Apply method): pending-reboot

" + "DBParameterGroupDetails$Parameters": null, + "EngineDefaults$Parameters": null, + "ModifyDBParameterGroupMessage$Parameters": null, + "ResetDBParameterGroupMessage$Parameters": null } }, "PendingModifiedValues": { - "base": "

This data type is used as a response element in the ModifyDBInstance action.

", + "base": null, "refs": { - "DBInstance$PendingModifiedValues": "

Specifies that changes to the DB instance are pending. This element is only included when changes are pending. Specific changes are identified by subelements.

" + "DBInstance$PendingModifiedValues": null } }, "PointInTimeRestoreNotEnabledFault": { @@ -1232,7 +1232,7 @@ } }, "PromoteReadReplicaMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1242,12 +1242,12 @@ } }, "ProvisionedIopsNotAvailableInAZFault": { - "base": "

Provisioned IOPS not available in the specified Availability Zone.

", + "base": "

Provisioned IOPS not available in the specified Availability Zone.

", "refs": { } }, "PurchaseReservedDBInstancesOfferingMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1259,11 +1259,11 @@ "ReadReplicaDBInstanceIdentifierList": { "base": null, "refs": { - "DBInstance$ReadReplicaDBInstanceIdentifiers": "

Contains one or more identifiers of the read replicas associated with this DB instance.

" + "DBInstance$ReadReplicaDBInstanceIdentifiers": null } }, "RebootDBInstanceMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1273,7 +1273,7 @@ } }, "RecurringCharge": { - "base": "

This data type is used as a response element in the DescribeReservedDBInstances and DescribeReservedDBInstancesOfferings actions.

", + "base": null, "refs": { "RecurringChargeList$member": null } @@ -1281,12 +1281,12 @@ "RecurringChargeList": { "base": null, "refs": { - "ReservedDBInstance$RecurringCharges": "

The recurring price charged to run this reserved DB instance.

", - "ReservedDBInstancesOffering$RecurringCharges": "

The recurring price charged to run this reserved DB instance.

" + "ReservedDBInstance$RecurringCharges": null, + "ReservedDBInstancesOffering$RecurringCharges": null } }, "RemoveSourceIdentifierFromSubscriptionMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1296,45 +1296,45 @@ } }, "RemoveTagsFromResourceMessage": { - "base": "

", + "base": null, "refs": { } }, "ReservedDBInstance": { - "base": "

This data type is used as a response element in the DescribeReservedDBInstances and PurchaseReservedDBInstancesOffering actions.

", + "base": null, "refs": { "PurchaseReservedDBInstancesOfferingResult$ReservedDBInstance": null, "ReservedDBInstanceList$member": null } }, "ReservedDBInstanceAlreadyExistsFault": { - "base": "

User already has a reservation with the given identifier.

", + "base": "

User already has a reservation with the given identifier.

", "refs": { } }, "ReservedDBInstanceList": { "base": null, "refs": { - "ReservedDBInstanceMessage$ReservedDBInstances": "

A list of reserved DB instances.

" + "ReservedDBInstanceMessage$ReservedDBInstances": null } }, "ReservedDBInstanceMessage": { - "base": "

Contains the result of a successful invocation of the DescribeReservedDBInstances action.

", + "base": null, "refs": { } }, "ReservedDBInstanceNotFoundFault": { - "base": "

The specified reserved DB Instance not found.

", + "base": "

The specified reserved DB Instance not found.

", "refs": { } }, "ReservedDBInstanceQuotaExceededFault": { - "base": "

Request would exceed the user's DB Instance quota.

", + "base": "

Request would exceed the user's DB Instance quota.

", "refs": { } }, "ReservedDBInstancesOffering": { - "base": "

This data type is used as a response element in the DescribeReservedDBInstancesOfferings action.

", + "base": null, "refs": { "ReservedDBInstancesOfferingList$member": null } @@ -1342,26 +1342,26 @@ "ReservedDBInstancesOfferingList": { "base": null, "refs": { - "ReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferings": "

A list of reserved DB instance offerings.

" + "ReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferings": null } }, "ReservedDBInstancesOfferingMessage": { - "base": "

Contains the result of a successful invocation of the DescribeReservedDBInstancesOfferings action.

", + "base": null, "refs": { } }, "ReservedDBInstancesOfferingNotFoundFault": { - "base": "

Specified offering does not exist.

", + "base": "

Specified offering does not exist.

", "refs": { } }, "ResetDBParameterGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "RestoreDBInstanceFromDBSnapshotMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1371,7 +1371,7 @@ } }, "RestoreDBInstanceToPointInTimeMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1381,7 +1381,7 @@ } }, "RevokeDBSecurityGroupIngressMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1406,15 +1406,15 @@ } }, "SnapshotQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of DB snapshots.

", + "base": "

Request would result in user exceeding the allowed number of DB snapshots.

", "refs": { } }, "SourceIdsList": { "base": null, "refs": { - "CreateEventSubscriptionMessage$SourceIds": "

The list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it cannot end with a hyphen or contain two consecutive hyphens.

Constraints:

  • If SourceIds are supplied, SourceType must also be provided.
  • If the source type is a DB instance, then a DBInstanceIdentifier must be supplied.
  • If the source type is a DB security group, a DBSecurityGroupName must be supplied.
  • If the source type is a DB parameter group, a DBParameterGroupName must be supplied.
  • If the source type is a DB snapshot, a DBSnapshotIdentifier must be supplied.
", - "EventSubscription$SourceIdsList": "

A list of source Ids for the RDS event notification subscription.

" + "CreateEventSubscriptionMessage$SourceIds": null, + "EventSubscription$SourceIdsList": null } }, "SourceNotFoundFault": { @@ -1425,365 +1425,365 @@ "SourceType": { "base": null, "refs": { - "DescribeEventsMessage$SourceType": "

The event source to retrieve events for. If no value is specified, all events are returned.

", - "Event$SourceType": "

Specifies the source type for this event.

" + "DescribeEventsMessage$SourceType": null, + "Event$SourceType": null } }, "StorageQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed amount of storage available across all DB instances.

", + "base": "

Request would result in user exceeding the allowed amount of storage available across all DB instances.

", "refs": { } }, "String": { "base": null, "refs": { - "AddSourceIdentifierToSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription you want to add a source identifier to.

", - "AddSourceIdentifierToSubscriptionMessage$SourceIdentifier": "

The identifier of the event source to be added. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it cannot end with a hyphen or contain two consecutive hyphens.

Constraints:

  • If the source type is a DB instance, then a DBInstanceIdentifier must be supplied.
  • If the source type is a DB security group, a DBSecurityGroupName must be supplied.
  • If the source type is a DB parameter group, a DBParameterGroupName must be supplied.
  • If the source type is a DB snapshot, a DBSnapshotIdentifier must be supplied.
", - "AddTagsToResourceMessage$ResourceName": "

The Amazon RDS resource the tags will be added to. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

", - "AuthorizeDBSecurityGroupIngressMessage$DBSecurityGroupName": "

The name of the DB security group to add authorization to.

", - "AuthorizeDBSecurityGroupIngressMessage$CIDRIP": "

The IP range to authorize.

", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupName": "

Name of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupId": "

Id of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": "

AWS Account Number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "AvailabilityZone$Name": "

The name of the availability zone.

", - "CharacterSet$CharacterSetName": "

The name of the character set.

", - "CharacterSet$CharacterSetDescription": "

The description of the character set.

", - "CopyDBSnapshotMessage$SourceDBSnapshotIdentifier": "

The identifier for the source DB snapshot.

Constraints:

  • Must specify a valid system snapshot in the \"available\" state.
  • If the source snapshot is in the same region as the copy, specify a valid DB snapshot identifier.
  • If the source snapshot is in a different region than the copy, specify a valid DB snapshot ARN. For more information, go to Copying a DB Snapshot.

Example: rds:mydb-2012-04-02-00-01

Example: arn:aws:rds:rr-regn-1:123456789012:snapshot:mysql-instance1-snapshot-20130805

", - "CopyDBSnapshotMessage$TargetDBSnapshotIdentifier": "

The identifier for the copied snapshot.

Constraints:

  • Cannot be null, empty, or blank
  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-db-snapshot

", - "CreateDBInstanceMessage$DBName": "

The meaning of this parameter differs according to the database engine you use.

Type: String

MySQL

The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance.

Constraints:

  • Must contain 1 to 64 alphanumeric characters
  • Cannot be a word reserved by the specified database engine

PostgreSQL

The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance.

Constraints:

  • Must contain 1 to 63 alphanumeric characters
  • Must begin with a letter or an underscore. Subsequent characters can be letters, underscores, or digits (0-9).
  • Cannot be a word reserved by the specified database engine

Oracle

The Oracle System ID (SID) of the created DB instance.

Default: ORCL

Constraints:

  • Cannot be longer than 8 characters

SQL Server

Not applicable. Must be null.

", - "CreateDBInstanceMessage$DBInstanceIdentifier": "

The DB instance identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 for SQL Server).
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: mydbinstance

", - "CreateDBInstanceMessage$DBInstanceClass": "

The compute and memory capacity of the DB instance.

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge

", - "CreateDBInstanceMessage$Engine": "

The name of the database engine to be used for this instance.

Valid Values: MySQL | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web | postgres

", - "CreateDBInstanceMessage$MasterUsername": "

The name of master user for the client DB instance.

MySQL

Constraints:

  • Must be 1 to 16 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word for the chosen database engine.

Type: String

Oracle

Constraints:

  • Must be 1 to 30 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word for the chosen database engine.

SQL Server

Constraints:

  • Must be 1 to 128 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word for the chosen database engine.
", - "CreateDBInstanceMessage$MasterUserPassword": "

The password for the master database user. Can be any printable ASCII character except \"/\", \"\"\", or \"@\".

Type: String

MySQL

Constraints: Must contain from 8 to 41 characters.

Oracle

Constraints: Must contain from 8 to 30 characters.

SQL Server

Constraints: Must contain from 8 to 128 characters.

", - "CreateDBInstanceMessage$AvailabilityZone": "

The EC2 Availability Zone that the database instance will be created in.

Default: A random, system-chosen Availability Zone in the endpoint's region.

Example: us-east-1d

Constraint: The AvailabilityZone parameter cannot be specified if the MultiAZ parameter is set to true. The specified Availability Zone must be in the same region as the current endpoint.

", - "CreateDBInstanceMessage$DBSubnetGroupName": "

A DB subnet group to associate with this DB instance.

If there is no DB subnet group, then it is a non-VPC DB instance.

", - "CreateDBInstanceMessage$PreferredMaintenanceWindow": "

The weekly time range (in UTC) during which system maintenance can occur.

Format: ddd:hh24:mi-ddd:hh24:mi

Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute window.

", - "CreateDBInstanceMessage$DBParameterGroupName": "

The name of the DB parameter group to associate with this DB instance. If this argument is omitted, the default DBParameterGroup for the specified engine will be used.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "CreateDBInstanceMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

Default: A 30-minute window selected at random from an 8-hour block of time per region. See the Amazon RDS User Guide for the time blocks for each region from which the default backup windows are assigned.

Constraints: Must be in the format hh24:mi-hh24:mi. Times should be Universal Time Coordinated (UTC). Must not conflict with the preferred maintenance window. Must be at least 30 minutes.

", - "CreateDBInstanceMessage$EngineVersion": "

The version number of the database engine to use.

MySQL

Example: 5.1.42

Type: String

PostgreSQL

Example: 9.3

Type: String

Oracle

Example: 11.2.0.2.v2

Type: String

SQL Server

Example: 10.50.2789.0.v1

", - "CreateDBInstanceMessage$LicenseModel": "

License model information for this DB instance.

Valid values: license-included | bring-your-own-license | general-public-license

", - "CreateDBInstanceMessage$OptionGroupName": "

Indicates that the DB instance should be associated with the specified option group.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", - "CreateDBInstanceMessage$CharacterSetName": "

For supported engines, indicates that the DB instance should be associated with the specified CharacterSet.

", - "CreateDBInstanceReadReplicaMessage$DBInstanceIdentifier": "

The DB instance identifier of the read replica. This is the unique key that identifies a DB instance. This parameter is stored as a lowercase string.

", - "CreateDBInstanceReadReplicaMessage$SourceDBInstanceIdentifier": "

The identifier of the DB instance that will act as the source for the read replica. Each DB instance can have up to five read replicas.

Constraints:

  • Must be the identifier of an existing DB instance.
  • Can specify a DB instance that is a read replica only if the source is running MySQL 5.6.
  • The specified DB instance must have automatic backups enabled, its backup retention period must be greater than 0.
  • If the source DB instance is in the same region as the read replica, specify a valid DB instance identifier.
  • If the source DB instance is in a different region than the read replica, specify a valid DB instance ARN. For more information, go to Constructing a Amazon RDS Amazon Resource Name (ARN).
", - "CreateDBInstanceReadReplicaMessage$DBInstanceClass": "

The compute and memory capacity of the read replica.

Valid Values: db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge

Default: Inherits from the source DB instance.

", - "CreateDBInstanceReadReplicaMessage$AvailabilityZone": "

The Amazon EC2 Availability Zone that the read replica will be created in.

Default: A random, system-chosen Availability Zone in the endpoint's region.

Example: us-east-1d

", - "CreateDBInstanceReadReplicaMessage$OptionGroupName": "

The option group the DB instance will be associated with. If omitted, the default option group for the engine specified will be used.

", - "CreateDBInstanceReadReplicaMessage$DBSubnetGroupName": "

Specifies a DB subnet group for the DB instance. The new DB instance will be created in the VPC associated with the DB subnet group. If no DB subnet group is specified, then the new DB instance is not created in a VPC.

Constraints:

  • Can only be specified if the source DB instance identifier specifies a DB instance in another region.
  • The specified DB subnet group must be in the same region in which the operation is running.
  • All read replicas in one region that are created from the same source DB instance must either:
    • Specify DB subnet groups from the same VPC. All these read replicas will be created in the same VPC.
    • Not specify a DB subnet group. All these read replicas will be created outside of any VPC.
", - "CreateDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB parameter group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
This value is stored as a lower-case string.", - "CreateDBParameterGroupMessage$DBParameterGroupFamily": "

The DB parameter group family name. A DB parameter group can be associated with one and only one DB parameter group family, and can be applied only to a DB instance running a database engine and engine version compatible with that DB parameter group family.

", - "CreateDBParameterGroupMessage$Description": "

The description for the DB parameter group.

", - "CreateDBSecurityGroupMessage$DBSecurityGroupName": "

The name for the DB security group. This value is stored as a lowercase string.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
  • Must not be \"Default\"
  • May not contain spaces

Example: mysecuritygroup

", - "CreateDBSecurityGroupMessage$DBSecurityGroupDescription": "

The description for the DB security group.

", - "CreateDBSnapshotMessage$DBSnapshotIdentifier": "

The identifier for the DB snapshot.

Constraints:

  • Cannot be null, empty, or blank
  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

", - "CreateDBSnapshotMessage$DBInstanceIdentifier": "

The DB instance identifier. This is the unique key that identifies a DB instance.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "CreateDBSubnetGroupMessage$DBSubnetGroupName": "

The name for the DB subnet group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be \"Default\".

Example: mySubnetgroup

", - "CreateDBSubnetGroupMessage$DBSubnetGroupDescription": "

The description for the DB subnet group.

", - "CreateEventSubscriptionMessage$SubscriptionName": "

The name of the subscription.

Constraints: The name must be less than 255 characters.

", - "CreateEventSubscriptionMessage$SnsTopicArn": "

The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

", - "CreateEventSubscriptionMessage$SourceType": "

The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

", - "CreateOptionGroupMessage$OptionGroupName": "

Specifies the name of the option group to be created.

Constraints:

  • Must be 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: myoptiongroup

", - "CreateOptionGroupMessage$EngineName": "

Specifies the name of the engine that this option group should be associated with.

", - "CreateOptionGroupMessage$MajorEngineVersion": "

Specifies the major version of the engine that this option group should be associated with.

", - "CreateOptionGroupMessage$OptionGroupDescription": "

The description of the option group.

", - "DBEngineVersion$Engine": "

The name of the database engine.

", - "DBEngineVersion$EngineVersion": "

The version number of the database engine.

", - "DBEngineVersion$DBParameterGroupFamily": "

The name of the DB parameter group family for the database engine.

", - "DBEngineVersion$DBEngineDescription": "

The description of the database engine.

", - "DBEngineVersion$DBEngineVersionDescription": "

The description of the database engine version.

", - "DBEngineVersionMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DBInstance$DBInstanceIdentifier": "

Contains a user-supplied database identifier. This is the unique key that identifies a DB instance.

", - "DBInstance$DBInstanceClass": "

Contains the name of the compute and memory capacity class of the DB instance.

", - "DBInstance$Engine": "

Provides the name of the database engine to be used for this DB instance.

", - "DBInstance$DBInstanceStatus": "

Specifies the current state of this database.

", - "DBInstance$MasterUsername": "

Contains the master username for the DB instance.

", - "DBInstance$DBName": "

The meaning of this parameter differs according to the database engine you use. For example, this value returns only MySQL information when returning values from CreateDBInstanceReadReplica since read replicas are only supported for MySQL.

MySQL

Contains the name of the initial database of this instance that was provided at create time, if one was specified when the DB instance was created. This same name is returned for the life of the DB instance.

Type: String

Oracle

Contains the Oracle System ID (SID) of the created DB instance. Not shown when the returned parameters do not apply to an Oracle DB instance.

", - "DBInstance$PreferredBackupWindow": "

Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.

", - "DBInstance$AvailabilityZone": "

Specifies the name of the Availability Zone the DB instance is located in.

", - "DBInstance$PreferredMaintenanceWindow": "

Specifies the weekly time range (in UTC) during which system maintenance can occur.

", - "DBInstance$EngineVersion": "

Indicates the database engine version.

", - "DBInstance$ReadReplicaSourceDBInstanceIdentifier": "

Contains the identifier of the source DB instance if this DB instance is a read replica.

", - "DBInstance$LicenseModel": "

License model information for this DB instance.

", - "DBInstance$CharacterSetName": "

If present, specifies the name of the character set that this instance is associated with.

", - "DBInstance$SecondaryAvailabilityZone": "

If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.

", - "DBInstanceMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "DBInstanceStatusInfo$StatusType": "

This value is currently \"read replication.\"

", - "DBInstanceStatusInfo$Status": "

Status of the DB instance. For a StatusType of read replica, the values can be replicating, error, stopped, or terminated.

", - "DBInstanceStatusInfo$Message": "

Details of the error if there is an error for the instance. If the instance is not in an error state, this value is blank.

", - "DBParameterGroup$DBParameterGroupName": "

Provides the name of the DB parameter group.

", - "DBParameterGroup$DBParameterGroupFamily": "

Provides the name of the DB parameter group family that this DB parameter group is compatible with.

", - "DBParameterGroup$Description": "

Provides the customer-specified description for this DB parameter group.

", - "DBParameterGroupDetails$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DBParameterGroupNameMessage$DBParameterGroupName": "

The name of the DB parameter group.

", - "DBParameterGroupStatus$DBParameterGroupName": "

The name of the DP parameter group.

", - "DBParameterGroupStatus$ParameterApplyStatus": "

The status of parameter updates.

", - "DBParameterGroupsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DBSecurityGroup$OwnerId": "

Provides the AWS ID of the owner of a specific DB security group.

", - "DBSecurityGroup$DBSecurityGroupName": "

Specifies the name of the DB security group.

", - "DBSecurityGroup$DBSecurityGroupDescription": "

Provides the description of the DB security group.

", - "DBSecurityGroup$VpcId": "

Provides the VpcId of the DB security group.

", - "DBSecurityGroupMembership$DBSecurityGroupName": "

The name of the DB security group.

", - "DBSecurityGroupMembership$Status": "

The status of the DB security group.

", - "DBSecurityGroupMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", + "AddSourceIdentifierToSubscriptionMessage$SubscriptionName": null, + "AddSourceIdentifierToSubscriptionMessage$SourceIdentifier": null, + "AddTagsToResourceMessage$ResourceName": null, + "AuthorizeDBSecurityGroupIngressMessage$DBSecurityGroupName": null, + "AuthorizeDBSecurityGroupIngressMessage$CIDRIP": null, + "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupName": null, + "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupId": null, + "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": null, + "AvailabilityZone$Name": null, + "CharacterSet$CharacterSetName": null, + "CharacterSet$CharacterSetDescription": null, + "CopyDBSnapshotMessage$SourceDBSnapshotIdentifier": null, + "CopyDBSnapshotMessage$TargetDBSnapshotIdentifier": null, + "CreateDBInstanceMessage$DBName": null, + "CreateDBInstanceMessage$DBInstanceIdentifier": null, + "CreateDBInstanceMessage$DBInstanceClass": null, + "CreateDBInstanceMessage$Engine": null, + "CreateDBInstanceMessage$MasterUsername": null, + "CreateDBInstanceMessage$MasterUserPassword": null, + "CreateDBInstanceMessage$AvailabilityZone": null, + "CreateDBInstanceMessage$DBSubnetGroupName": null, + "CreateDBInstanceMessage$PreferredMaintenanceWindow": null, + "CreateDBInstanceMessage$DBParameterGroupName": null, + "CreateDBInstanceMessage$PreferredBackupWindow": null, + "CreateDBInstanceMessage$EngineVersion": null, + "CreateDBInstanceMessage$LicenseModel": null, + "CreateDBInstanceMessage$OptionGroupName": null, + "CreateDBInstanceMessage$CharacterSetName": null, + "CreateDBInstanceReadReplicaMessage$DBInstanceIdentifier": null, + "CreateDBInstanceReadReplicaMessage$SourceDBInstanceIdentifier": null, + "CreateDBInstanceReadReplicaMessage$DBInstanceClass": null, + "CreateDBInstanceReadReplicaMessage$AvailabilityZone": null, + "CreateDBInstanceReadReplicaMessage$OptionGroupName": null, + "CreateDBInstanceReadReplicaMessage$DBSubnetGroupName": null, + "CreateDBParameterGroupMessage$DBParameterGroupName": null, + "CreateDBParameterGroupMessage$DBParameterGroupFamily": null, + "CreateDBParameterGroupMessage$Description": null, + "CreateDBSecurityGroupMessage$DBSecurityGroupName": null, + "CreateDBSecurityGroupMessage$DBSecurityGroupDescription": null, + "CreateDBSnapshotMessage$DBSnapshotIdentifier": null, + "CreateDBSnapshotMessage$DBInstanceIdentifier": null, + "CreateDBSubnetGroupMessage$DBSubnetGroupName": null, + "CreateDBSubnetGroupMessage$DBSubnetGroupDescription": null, + "CreateEventSubscriptionMessage$SubscriptionName": null, + "CreateEventSubscriptionMessage$SnsTopicArn": null, + "CreateEventSubscriptionMessage$SourceType": null, + "CreateOptionGroupMessage$OptionGroupName": null, + "CreateOptionGroupMessage$EngineName": null, + "CreateOptionGroupMessage$MajorEngineVersion": null, + "CreateOptionGroupMessage$OptionGroupDescription": null, + "DBEngineVersion$Engine": null, + "DBEngineVersion$EngineVersion": null, + "DBEngineVersion$DBParameterGroupFamily": null, + "DBEngineVersion$DBEngineDescription": null, + "DBEngineVersion$DBEngineVersionDescription": null, + "DBEngineVersionMessage$Marker": null, + "DBInstance$DBInstanceIdentifier": null, + "DBInstance$DBInstanceClass": null, + "DBInstance$Engine": null, + "DBInstance$DBInstanceStatus": null, + "DBInstance$MasterUsername": null, + "DBInstance$DBName": null, + "DBInstance$PreferredBackupWindow": null, + "DBInstance$AvailabilityZone": null, + "DBInstance$PreferredMaintenanceWindow": null, + "DBInstance$EngineVersion": null, + "DBInstance$ReadReplicaSourceDBInstanceIdentifier": null, + "DBInstance$LicenseModel": null, + "DBInstance$CharacterSetName": null, + "DBInstance$SecondaryAvailabilityZone": null, + "DBInstanceMessage$Marker": null, + "DBInstanceStatusInfo$StatusType": null, + "DBInstanceStatusInfo$Status": null, + "DBInstanceStatusInfo$Message": null, + "DBParameterGroup$DBParameterGroupName": null, + "DBParameterGroup$DBParameterGroupFamily": null, + "DBParameterGroup$Description": null, + "DBParameterGroupDetails$Marker": null, + "DBParameterGroupNameMessage$DBParameterGroupName": null, + "DBParameterGroupStatus$DBParameterGroupName": null, + "DBParameterGroupStatus$ParameterApplyStatus": null, + "DBParameterGroupsMessage$Marker": null, + "DBSecurityGroup$OwnerId": null, + "DBSecurityGroup$DBSecurityGroupName": null, + "DBSecurityGroup$DBSecurityGroupDescription": null, + "DBSecurityGroup$VpcId": null, + "DBSecurityGroupMembership$DBSecurityGroupName": null, + "DBSecurityGroupMembership$Status": null, + "DBSecurityGroupMessage$Marker": null, "DBSecurityGroupNameList$member": null, - "DBSnapshot$DBSnapshotIdentifier": "

Specifies the identifier for the DB snapshot.

", - "DBSnapshot$DBInstanceIdentifier": "

Specifies the DB instance identifier of the DB instance this DB snapshot was created from.

", - "DBSnapshot$Engine": "

Specifies the name of the database engine.

", - "DBSnapshot$Status": "

Specifies the status of this DB snapshot.

", - "DBSnapshot$AvailabilityZone": "

Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.

", - "DBSnapshot$VpcId": "

Provides the Vpc Id associated with the DB snapshot.

", - "DBSnapshot$MasterUsername": "

Provides the master username for the DB snapshot.

", - "DBSnapshot$EngineVersion": "

Specifies the version of the database engine.

", - "DBSnapshot$LicenseModel": "

License model information for the restored DB instance.

", - "DBSnapshot$SnapshotType": "

Provides the type of the DB snapshot.

", - "DBSnapshot$OptionGroupName": "

Provides the option group name for the DB snapshot.

", - "DBSnapshot$SourceRegion": "

The region that the DB snapshot was created in or copied from.

", - "DBSnapshotMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DBSubnetGroup$DBSubnetGroupName": "

Specifies the name of the DB subnet group.

", - "DBSubnetGroup$DBSubnetGroupDescription": "

Provides the description of the DB subnet group.

", - "DBSubnetGroup$VpcId": "

Provides the VpcId of the DB subnet group.

", - "DBSubnetGroup$SubnetGroupStatus": "

Provides the status of the DB subnet group.

", - "DBSubnetGroupMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DeleteDBInstanceMessage$DBInstanceIdentifier": "

The DB instance identifier for the DB instance to be deleted. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DeleteDBInstanceMessage$FinalDBSnapshotIdentifier": "

The DBSnapshotIdentifier of the new DBSnapshot created when SkipFinalSnapshot is set to false.

Specifying this parameter and also setting the SkipFinalShapshot parameter to true results in an error.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
  • Cannot be specified when deleting a read replica.
", - "DeleteDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB parameter group.

Constraints:

  • Must be the name of an existing DB parameter group
  • You cannot delete a default DB parameter group
  • Cannot be associated with any DB instances
", - "DeleteDBSecurityGroupMessage$DBSecurityGroupName": "

The name of the DB security group to delete.

You cannot delete the default DB security group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
  • Must not be \"Default\"
  • May not contain spaces
", - "DeleteDBSnapshotMessage$DBSnapshotIdentifier": "

The DBSnapshot identifier.

Constraints: Must be the name of an existing DB snapshot in the available state.

", - "DeleteDBSubnetGroupMessage$DBSubnetGroupName": "

The name of the database subnet group to delete.

You cannot delete the default subnet group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DeleteEventSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription you want to delete.

", - "DeleteOptionGroupMessage$OptionGroupName": "

The name of the option group to be deleted.

You cannot delete default option groups.", - "DescribeDBEngineVersionsMessage$Engine": "

The database engine to return.

", - "DescribeDBEngineVersionsMessage$EngineVersion": "

The database engine version to return.

Example: 5.1.49

", - "DescribeDBEngineVersionsMessage$DBParameterGroupFamily": "

The name of a specific DB parameter group family to return details for.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBEngineVersionsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBInstancesMessage$DBInstanceIdentifier": "

The user-supplied instance identifier. If this parameter is specified, information from only the specific DB instance is returned. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBInstancesMessage$Marker": "

An optional pagination token provided by a previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "DescribeDBLogFilesDetails$LogFileName": "

The name of the log file for the specified DB instance.

", - "DescribeDBLogFilesMessage$DBInstanceIdentifier": "

The customer-assigned name of the DB instance that contains the log files you want to list.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBLogFilesMessage$FilenameContains": "

Filters the available log files for log file names that contain the specified string.

", - "DescribeDBLogFilesMessage$Marker": "

The pagination token provided in the previous request. If this parameter is specified the response includes only records beyond the marker, up to MaxRecords.

", - "DescribeDBLogFilesResponse$Marker": "

A pagination token that can be used in a subsequent DescribeDBLogFiles request.

", - "DescribeDBParameterGroupsMessage$DBParameterGroupName": "

The name of a specific DB parameter group to return details for.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBParameterGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBParameterGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBParametersMessage$DBParameterGroupName": "

The name of a specific DB parameter group to return details for.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBParametersMessage$Source": "

The parameter types to return.

Default: All parameter types returned

Valid Values: user | system | engine-default

", - "DescribeDBParametersMessage$Marker": "

An optional pagination token provided by a previous DescribeDBParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBSecurityGroupsMessage$DBSecurityGroupName": "

The name of the DB security group to return details for.

", - "DescribeDBSecurityGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBSecurityGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBSnapshotsMessage$DBInstanceIdentifier": "

A DB instance identifier to retrieve the list of DB snapshots for. Cannot be used in conjunction with DBSnapshotIdentifier. This parameter is not case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBSnapshotsMessage$DBSnapshotIdentifier": "

A specific DB snapshot identifier to describe. Cannot be used in conjunction with DBInstanceIdentifier. This value is stored as a lowercase string.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
  • If this is the identifier of an automated snapshot, the SnapshotType parameter must also be specified.
", - "DescribeDBSnapshotsMessage$SnapshotType": "

The type of snapshots that will be returned. Values can be \"automated\" or \"manual.\" If not specified, the returned results will include all snapshots types.

", - "DescribeDBSnapshotsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBSnapshots request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBSubnetGroupsMessage$DBSubnetGroupName": "

The name of the DB subnet group to return details for.

", - "DescribeDBSubnetGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBSubnetGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeEngineDefaultParametersMessage$DBParameterGroupFamily": "

The name of the DB parameter group family.

", - "DescribeEngineDefaultParametersMessage$Marker": "

An optional pagination token provided by a previous DescribeEngineDefaultParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeEventCategoriesMessage$SourceType": "

The type of source that will be generating the events.

Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

", - "DescribeEventSubscriptionsMessage$SubscriptionName": "

The name of the RDS event notification subscription you want to describe.

", - "DescribeEventSubscriptionsMessage$Marker": "

An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "DescribeEventsMessage$SourceIdentifier": "

The identifier of the event source for which events will be returned. If not specified, then all sources are included in the response.

Constraints:

  • If SourceIdentifier is supplied, SourceType must also be provided.
  • If the source type is DBInstance, then a DBInstanceIdentifier must be supplied.
  • If the source type is DBSecurityGroup, a DBSecurityGroupName must be supplied.
  • If the source type is DBParameterGroup, a DBParameterGroupName must be supplied.
  • If the source type is DBSnapshot, a DBSnapshotIdentifier must be supplied.
  • Cannot end with a hyphen or contain two consecutive hyphens.
", - "DescribeEventsMessage$Marker": "

An optional pagination token provided by a previous DescribeEvents request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeOptionGroupOptionsMessage$EngineName": "

A required parameter. Options available for the given Engine name will be described.

", - "DescribeOptionGroupOptionsMessage$MajorEngineVersion": "

If specified, filters the results to include only options for the specified major engine version.

", - "DescribeOptionGroupOptionsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeOptionGroupsMessage$OptionGroupName": "

The name of the option group to describe. Cannot be supplied together with EngineName or MajorEngineVersion.

", - "DescribeOptionGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeOptionGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeOptionGroupsMessage$EngineName": "

Filters the list of option groups to only include groups associated with a specific database engine.

", - "DescribeOptionGroupsMessage$MajorEngineVersion": "

Filters the list of option groups to only include groups associated with a specific database engine version. If specified, then EngineName must also be specified.

", - "DescribeOrderableDBInstanceOptionsMessage$Engine": "

The name of the engine to retrieve DB instance options for.

", - "DescribeOrderableDBInstanceOptionsMessage$EngineVersion": "

The engine version filter value. Specify this parameter to show only the available offerings matching the specified engine version.

", - "DescribeOrderableDBInstanceOptionsMessage$DBInstanceClass": "

The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.

", - "DescribeOrderableDBInstanceOptionsMessage$LicenseModel": "

The license model filter value. Specify this parameter to show only the available offerings matching the specified license model.

", - "DescribeOrderableDBInstanceOptionsMessage$Marker": "

An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "DescribeReservedDBInstancesMessage$ReservedDBInstanceId": "

The reserved DB instance identifier filter value. Specify this parameter to show only the reservation that matches the specified reservation ID.

", - "DescribeReservedDBInstancesMessage$ReservedDBInstancesOfferingId": "

The offering identifier filter value. Specify this parameter to show only purchased reservations matching the specified offering identifier.

", - "DescribeReservedDBInstancesMessage$DBInstanceClass": "

The DB instance class filter value. Specify this parameter to show only those reservations matching the specified DB instances class.

", - "DescribeReservedDBInstancesMessage$Duration": "

The duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.

Valid Values: 1 | 3 | 31536000 | 94608000

", - "DescribeReservedDBInstancesMessage$ProductDescription": "

The product description filter value. Specify this parameter to show only those reservations matching the specified product description.

", - "DescribeReservedDBInstancesMessage$OfferingType": "

The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.

Valid Values: \"Light Utilization\" | \"Medium Utilization\" | \"Heavy Utilization\"

", - "DescribeReservedDBInstancesMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeReservedDBInstancesOfferingsMessage$ReservedDBInstancesOfferingId": "

The offering identifier filter value. Specify this parameter to show only the available offering that matches the specified reservation identifier.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

", - "DescribeReservedDBInstancesOfferingsMessage$DBInstanceClass": "

The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.

", - "DescribeReservedDBInstancesOfferingsMessage$Duration": "

Duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.

Valid Values: 1 | 3 | 31536000 | 94608000

", - "DescribeReservedDBInstancesOfferingsMessage$ProductDescription": "

Product description filter value. Specify this parameter to show only the available offerings matching the specified product description.

", - "DescribeReservedDBInstancesOfferingsMessage$OfferingType": "

The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.

Valid Values: \"Light Utilization\" | \"Medium Utilization\" | \"Heavy Utilization\"

", - "DescribeReservedDBInstancesOfferingsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DownloadDBLogFilePortionDetails$LogFileData": "

Entries from the specified log file.

", - "DownloadDBLogFilePortionDetails$Marker": "

A pagination token that can be used in a subsequent DownloadDBLogFilePortion request.

", - "DownloadDBLogFilePortionMessage$DBInstanceIdentifier": "

The customer-assigned name of the DB instance that contains the log files you want to list.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DownloadDBLogFilePortionMessage$LogFileName": "

The name of the log file to be downloaded.

", - "DownloadDBLogFilePortionMessage$Marker": "

The pagination token provided in the previous request or \"0\". If the Marker parameter is specified the response includes only records beyond the marker until the end of the file or up to NumberOfLines.

", - "EC2SecurityGroup$Status": "

Provides the status of the EC2 security group. Status can be \"authorizing\", \"authorized\", \"revoking\", and \"revoked\".

", - "EC2SecurityGroup$EC2SecurityGroupName": "

Specifies the name of the EC2 security group.

", - "EC2SecurityGroup$EC2SecurityGroupId": "

Specifies the id of the EC2 security group.

", - "EC2SecurityGroup$EC2SecurityGroupOwnerId": "

Specifies the AWS ID of the owner of the EC2 security group specified in the EC2SecurityGroupName field.

", - "Endpoint$Address": "

Specifies the DNS address of the DB instance.

", - "EngineDefaults$DBParameterGroupFamily": "

Specifies the name of the DB parameter group family which the engine default parameters apply to.

", - "EngineDefaults$Marker": "

An optional pagination token provided by a previous EngineDefaults request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "Event$SourceIdentifier": "

Provides the identifier for the source of the event.

", - "Event$Message": "

Provides the text of this event.

", + "DBSnapshot$DBSnapshotIdentifier": null, + "DBSnapshot$DBInstanceIdentifier": null, + "DBSnapshot$Engine": null, + "DBSnapshot$Status": null, + "DBSnapshot$AvailabilityZone": null, + "DBSnapshot$VpcId": null, + "DBSnapshot$MasterUsername": null, + "DBSnapshot$EngineVersion": null, + "DBSnapshot$LicenseModel": null, + "DBSnapshot$SnapshotType": null, + "DBSnapshot$OptionGroupName": null, + "DBSnapshot$SourceRegion": null, + "DBSnapshotMessage$Marker": null, + "DBSubnetGroup$DBSubnetGroupName": null, + "DBSubnetGroup$DBSubnetGroupDescription": null, + "DBSubnetGroup$VpcId": null, + "DBSubnetGroup$SubnetGroupStatus": null, + "DBSubnetGroupMessage$Marker": null, + "DeleteDBInstanceMessage$DBInstanceIdentifier": null, + "DeleteDBInstanceMessage$FinalDBSnapshotIdentifier": null, + "DeleteDBParameterGroupMessage$DBParameterGroupName": null, + "DeleteDBSecurityGroupMessage$DBSecurityGroupName": null, + "DeleteDBSnapshotMessage$DBSnapshotIdentifier": null, + "DeleteDBSubnetGroupMessage$DBSubnetGroupName": null, + "DeleteEventSubscriptionMessage$SubscriptionName": null, + "DeleteOptionGroupMessage$OptionGroupName": null, + "DescribeDBEngineVersionsMessage$Engine": null, + "DescribeDBEngineVersionsMessage$EngineVersion": null, + "DescribeDBEngineVersionsMessage$DBParameterGroupFamily": null, + "DescribeDBEngineVersionsMessage$Marker": null, + "DescribeDBInstancesMessage$DBInstanceIdentifier": null, + "DescribeDBInstancesMessage$Marker": null, + "DescribeDBLogFilesDetails$LogFileName": null, + "DescribeDBLogFilesMessage$DBInstanceIdentifier": null, + "DescribeDBLogFilesMessage$FilenameContains": null, + "DescribeDBLogFilesMessage$Marker": null, + "DescribeDBLogFilesResponse$Marker": null, + "DescribeDBParameterGroupsMessage$DBParameterGroupName": null, + "DescribeDBParameterGroupsMessage$Marker": null, + "DescribeDBParametersMessage$DBParameterGroupName": null, + "DescribeDBParametersMessage$Source": null, + "DescribeDBParametersMessage$Marker": null, + "DescribeDBSecurityGroupsMessage$DBSecurityGroupName": null, + "DescribeDBSecurityGroupsMessage$Marker": null, + "DescribeDBSnapshotsMessage$DBInstanceIdentifier": null, + "DescribeDBSnapshotsMessage$DBSnapshotIdentifier": null, + "DescribeDBSnapshotsMessage$SnapshotType": null, + "DescribeDBSnapshotsMessage$Marker": null, + "DescribeDBSubnetGroupsMessage$DBSubnetGroupName": null, + "DescribeDBSubnetGroupsMessage$Marker": null, + "DescribeEngineDefaultParametersMessage$DBParameterGroupFamily": null, + "DescribeEngineDefaultParametersMessage$Marker": null, + "DescribeEventCategoriesMessage$SourceType": null, + "DescribeEventSubscriptionsMessage$SubscriptionName": null, + "DescribeEventSubscriptionsMessage$Marker": null, + "DescribeEventsMessage$SourceIdentifier": null, + "DescribeEventsMessage$Marker": null, + "DescribeOptionGroupOptionsMessage$EngineName": null, + "DescribeOptionGroupOptionsMessage$MajorEngineVersion": null, + "DescribeOptionGroupOptionsMessage$Marker": null, + "DescribeOptionGroupsMessage$OptionGroupName": null, + "DescribeOptionGroupsMessage$Marker": null, + "DescribeOptionGroupsMessage$EngineName": null, + "DescribeOptionGroupsMessage$MajorEngineVersion": null, + "DescribeOrderableDBInstanceOptionsMessage$Engine": null, + "DescribeOrderableDBInstanceOptionsMessage$EngineVersion": null, + "DescribeOrderableDBInstanceOptionsMessage$DBInstanceClass": null, + "DescribeOrderableDBInstanceOptionsMessage$LicenseModel": null, + "DescribeOrderableDBInstanceOptionsMessage$Marker": null, + "DescribeReservedDBInstancesMessage$ReservedDBInstanceId": null, + "DescribeReservedDBInstancesMessage$ReservedDBInstancesOfferingId": null, + "DescribeReservedDBInstancesMessage$DBInstanceClass": null, + "DescribeReservedDBInstancesMessage$Duration": null, + "DescribeReservedDBInstancesMessage$ProductDescription": null, + "DescribeReservedDBInstancesMessage$OfferingType": null, + "DescribeReservedDBInstancesMessage$Marker": null, + "DescribeReservedDBInstancesOfferingsMessage$ReservedDBInstancesOfferingId": null, + "DescribeReservedDBInstancesOfferingsMessage$DBInstanceClass": null, + "DescribeReservedDBInstancesOfferingsMessage$Duration": null, + "DescribeReservedDBInstancesOfferingsMessage$ProductDescription": null, + "DescribeReservedDBInstancesOfferingsMessage$OfferingType": null, + "DescribeReservedDBInstancesOfferingsMessage$Marker": null, + "DownloadDBLogFilePortionDetails$LogFileData": null, + "DownloadDBLogFilePortionDetails$Marker": null, + "DownloadDBLogFilePortionMessage$DBInstanceIdentifier": null, + "DownloadDBLogFilePortionMessage$LogFileName": null, + "DownloadDBLogFilePortionMessage$Marker": null, + "EC2SecurityGroup$Status": null, + "EC2SecurityGroup$EC2SecurityGroupName": null, + "EC2SecurityGroup$EC2SecurityGroupId": null, + "EC2SecurityGroup$EC2SecurityGroupOwnerId": null, + "Endpoint$Address": null, + "EngineDefaults$DBParameterGroupFamily": null, + "EngineDefaults$Marker": null, + "Event$SourceIdentifier": null, + "Event$Message": null, "EventCategoriesList$member": null, - "EventCategoriesMap$SourceType": "

The source type that the returned categories belong to

", - "EventSubscription$CustomerAwsId": "

The AWS customer account associated with the RDS event notification subscription.

", - "EventSubscription$CustSubscriptionId": "

The RDS event notification subscription Id.

", - "EventSubscription$SnsTopicArn": "

The topic ARN of the RDS event notification subscription.

", - "EventSubscription$Status": "

The status of the RDS event notification subscription.

Constraints:

Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist

The status \"no-permission\" indicates that RDS no longer has permission to post to the SNS topic. The status \"topic-not-exist\" indicates that the topic was deleted after the subscription was created.

", - "EventSubscription$SubscriptionCreationTime": "

The time the RDS event notification subscription was created.

", - "EventSubscription$SourceType": "

The source type for the RDS event notification subscription.

", - "EventSubscriptionsMessage$Marker": "

An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "EventsMessage$Marker": "

An optional pagination token provided by a previous Events request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "Filter$Name": "

This parameter is not currently supported.

", + "EventCategoriesMap$SourceType": null, + "EventSubscription$CustomerAwsId": null, + "EventSubscription$CustSubscriptionId": null, + "EventSubscription$SnsTopicArn": null, + "EventSubscription$Status": null, + "EventSubscription$SubscriptionCreationTime": null, + "EventSubscription$SourceType": null, + "EventSubscriptionsMessage$Marker": null, + "EventsMessage$Marker": null, + "Filter$Name": null, "FilterValueList$member": null, - "IPRange$Status": "

Specifies the status of the IP range. Status can be \"authorizing\", \"authorized\", \"revoking\", and \"revoked\".

", - "IPRange$CIDRIP": "

Specifies the IP range.

", + "IPRange$Status": null, + "IPRange$CIDRIP": null, "KeyList$member": null, - "ListTagsForResourceMessage$ResourceName": "

The Amazon RDS resource with tags to be listed. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

", - "ModifyDBInstanceMessage$DBInstanceIdentifier": "

The DB instance identifier. This value is stored as a lowercase string.

Constraints:

  • Must be the identifier for an existing DB instance
  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "ModifyDBInstanceMessage$DBInstanceClass": "

The new compute and memory capacity of the DB instance. To determine the instance classes that are available for a particular DB engine, use the DescribeOrderableDBInstanceOptions action.

Passing a value for this parameter causes an outage during the change and is applied during the next maintenance window, unless the ApplyImmediately parameter is specified as true for this request.

Default: Uses existing setting

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge

", - "ModifyDBInstanceMessage$MasterUserPassword": "

The new password for the DB instance master user. Can be any printable ASCII character except \"/\", \"\"\", or \"@\".

Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible. Between the time of the request and the completion of the request, the MasterUserPassword element exists in the PendingModifiedValues element of the operation response.

Default: Uses existing setting

Constraints: Must be 8 to 41 alphanumeric characters (MySQL), 8 to 30 alphanumeric characters (Oracle), or 8 to 128 alphanumeric characters (SQL Server).

Amazon RDS API actions never return the password, so this action provides a way to regain access to a master instance user if the password is lost. ", - "ModifyDBInstanceMessage$DBParameterGroupName": "

The name of the DB parameter group to apply to the DB instance. Changing this setting does not result in an outage. The parameter group name itself is changed immediately, but the actual parameter changes are not applied until you reboot the instance without failover. The DB instance will NOT be rebooted automatically and the parameter changes will NOT be applied during the next maintenance window.

Default: Uses existing setting

Constraints: The DB parameter group must be in the same DB parameter group family as the DB instance.

", - "ModifyDBInstanceMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

Constraints:

  • Must be in the format hh24:mi-hh24:mi
  • Times should be Universal Time Coordinated (UTC)
  • Must not conflict with the preferred maintenance window
  • Must be at least 30 minutes
", - "ModifyDBInstanceMessage$PreferredMaintenanceWindow": "

The weekly time range (in UTC) during which system maintenance can occur, which may result in an outage. Changing this parameter does not result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If there are pending actions that cause a reboot, and the maintenance window is changed to include the current time, then changing this parameter will cause a reboot of the DB instance. If moving this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.

Default: Uses existing setting

Format: ddd:hh24:mi-ddd:hh24:mi

Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun

Constraints: Must be at least 30 minutes

", - "ModifyDBInstanceMessage$EngineVersion": "

The version number of the database engine to upgrade to. Changing this parameter results in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

For major version upgrades, if a non-default DB parameter group is currently in use, a new DB parameter group in the DB parameter group family for the new engine version must be specified. The new DB parameter group can be the default for that DB parameter group family.

Example: 5.1.42

", - "ModifyDBInstanceMessage$OptionGroupName": "

Indicates that the DB instance should be associated with the specified option group. Changing this parameter does not result in an outage except in the following case and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request. If the parameter change results in an option group that enables OEM, this change can cause a brief (sub-second) period during which new connections are rejected but existing connections are not interrupted.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", - "ModifyDBInstanceMessage$NewDBInstanceIdentifier": "

The new DB instance identifier for the DB instance when renaming a DB instance. When you change the DB instance identifier, an instance reboot will occur immediately if you set Apply Immediately to true, or will occur during the next maintenance window if Apply Immediately to false. This value is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "ModifyDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB parameter group.

Constraints:

  • Must be the name of an existing DB parameter group
  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "ModifyDBSubnetGroupMessage$DBSubnetGroupName": "

The name for the DB subnet group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be \"Default\".

Example: mySubnetgroup

", - "ModifyDBSubnetGroupMessage$DBSubnetGroupDescription": "

The description for the DB subnet group.

", - "ModifyEventSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription.

", - "ModifyEventSubscriptionMessage$SnsTopicArn": "

The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

", - "ModifyEventSubscriptionMessage$SourceType": "

The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

", - "ModifyOptionGroupMessage$OptionGroupName": "

The name of the option group to be modified.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", - "Option$OptionName": "

The name of the option.

", - "Option$OptionDescription": "

The description of the option.

", - "OptionConfiguration$OptionName": "

The configuration of options to include in a group.

", - "OptionGroup$OptionGroupName": "

Specifies the name of the option group.

", - "OptionGroup$OptionGroupDescription": "

Provides the description of the option group.

", - "OptionGroup$EngineName": "

Engine name that this option group can be applied to.

", - "OptionGroup$MajorEngineVersion": "

Indicates the major engine version associated with this option group.

", - "OptionGroup$VpcId": "

If AllowsVpcAndNonVpcInstanceMemberships is 'false', this field is blank. If AllowsVpcAndNonVpcInstanceMemberships is 'true' and this field is blank, then this option group can be applied to both VPC and non-VPC instances. If this field contains a value, then this option group can only be applied to instances that are in the VPC indicated by this field.

", - "OptionGroupMembership$OptionGroupName": "

The name of the option group that the instance belongs to.

", - "OptionGroupMembership$Status": "

The status of the DB instance's option group membership (e.g. in-sync, pending, pending-maintenance, applying).

", - "OptionGroupOption$Name": "

The name of the option.

", - "OptionGroupOption$Description": "

The description of the option.

", - "OptionGroupOption$EngineName": "

Engine name that this option can be applied to.

", - "OptionGroupOption$MajorEngineVersion": "

Indicates the major engine version that the option is available for.

", - "OptionGroupOption$MinimumRequiredMinorEngineVersion": "

The minimum required engine version for the option to be applied.

", - "OptionGroupOptionSetting$SettingName": "

The name of the option group option.

", - "OptionGroupOptionSetting$SettingDescription": "

The description of the option group option.

", - "OptionGroupOptionSetting$DefaultValue": "

The default value for the option group option.

", - "OptionGroupOptionSetting$ApplyType": "

The DB engine specific parameter type for the option group option.

", - "OptionGroupOptionSetting$AllowedValues": "

Indicates the acceptable values for the option group option.

", - "OptionGroupOptionsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "OptionGroups$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", + "ListTagsForResourceMessage$ResourceName": null, + "ModifyDBInstanceMessage$DBInstanceIdentifier": null, + "ModifyDBInstanceMessage$DBInstanceClass": null, + "ModifyDBInstanceMessage$MasterUserPassword": null, + "ModifyDBInstanceMessage$DBParameterGroupName": null, + "ModifyDBInstanceMessage$PreferredBackupWindow": null, + "ModifyDBInstanceMessage$PreferredMaintenanceWindow": null, + "ModifyDBInstanceMessage$EngineVersion": null, + "ModifyDBInstanceMessage$OptionGroupName": null, + "ModifyDBInstanceMessage$NewDBInstanceIdentifier": null, + "ModifyDBParameterGroupMessage$DBParameterGroupName": null, + "ModifyDBSubnetGroupMessage$DBSubnetGroupName": null, + "ModifyDBSubnetGroupMessage$DBSubnetGroupDescription": null, + "ModifyEventSubscriptionMessage$SubscriptionName": null, + "ModifyEventSubscriptionMessage$SnsTopicArn": null, + "ModifyEventSubscriptionMessage$SourceType": null, + "ModifyOptionGroupMessage$OptionGroupName": null, + "Option$OptionName": null, + "Option$OptionDescription": null, + "OptionConfiguration$OptionName": null, + "OptionGroup$OptionGroupName": null, + "OptionGroup$OptionGroupDescription": null, + "OptionGroup$EngineName": null, + "OptionGroup$MajorEngineVersion": null, + "OptionGroup$VpcId": null, + "OptionGroupMembership$OptionGroupName": null, + "OptionGroupMembership$Status": null, + "OptionGroupOption$Name": null, + "OptionGroupOption$Description": null, + "OptionGroupOption$EngineName": null, + "OptionGroupOption$MajorEngineVersion": null, + "OptionGroupOption$MinimumRequiredMinorEngineVersion": null, + "OptionGroupOptionSetting$SettingName": null, + "OptionGroupOptionSetting$SettingDescription": null, + "OptionGroupOptionSetting$DefaultValue": null, + "OptionGroupOptionSetting$ApplyType": null, + "OptionGroupOptionSetting$AllowedValues": null, + "OptionGroupOptionsMessage$Marker": null, + "OptionGroups$Marker": null, "OptionNamesList$member": null, - "OptionSetting$Name": "

The name of the option that has settings that you can set.

", - "OptionSetting$Value": "

The current value of the option setting.

", - "OptionSetting$DefaultValue": "

The default value of the option setting.

", - "OptionSetting$Description": "

The description of the option setting.

", - "OptionSetting$ApplyType": "

The DB engine specific parameter type.

", - "OptionSetting$DataType": "

The data type of the option setting.

", - "OptionSetting$AllowedValues": "

The allowed values of the option setting.

", + "OptionSetting$Name": null, + "OptionSetting$Value": null, + "OptionSetting$DefaultValue": null, + "OptionSetting$Description": null, + "OptionSetting$ApplyType": null, + "OptionSetting$DataType": null, + "OptionSetting$AllowedValues": null, "OptionsDependedOn$member": null, - "OrderableDBInstanceOption$Engine": "

The engine type of the orderable DB instance.

", - "OrderableDBInstanceOption$EngineVersion": "

The engine version of the orderable DB instance.

", - "OrderableDBInstanceOption$DBInstanceClass": "

The DB instance Class for the orderable DB instance

", - "OrderableDBInstanceOption$LicenseModel": "

The license model for the orderable DB instance.

", - "OrderableDBInstanceOptionsMessage$Marker": "

An optional pagination token provided by a previous OrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "Parameter$ParameterName": "

Specifies the name of the parameter.

", - "Parameter$ParameterValue": "

Specifies the value of the parameter.

", - "Parameter$Description": "

Provides a description of the parameter.

", - "Parameter$Source": "

Indicates the source of the parameter value.

", - "Parameter$ApplyType": "

Specifies the engine specific parameters type.

", - "Parameter$DataType": "

Specifies the valid data type for the parameter.

", - "Parameter$AllowedValues": "

Specifies the valid range of values for the parameter.

", - "Parameter$MinimumEngineVersion": "

The earliest engine version to which the parameter can apply.

", - "PendingModifiedValues$DBInstanceClass": "

Contains the new DBInstanceClass for the DB instance that will be applied or is in progress.

", - "PendingModifiedValues$MasterUserPassword": "

Contains the pending or in-progress change of the master credentials for the DB instance.

", - "PendingModifiedValues$EngineVersion": "

Indicates the database engine version.

", - "PendingModifiedValues$DBInstanceIdentifier": "

Contains the new DBInstanceIdentifier for the DB instance that will be applied or is in progress.

", - "PromoteReadReplicaMessage$DBInstanceIdentifier": "

The DB instance identifier. This value is stored as a lowercase string.

Constraints:

  • Must be the identifier for an existing read replica DB instance
  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: mydbinstance

", - "PromoteReadReplicaMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

Default: A 30-minute window selected at random from an 8-hour block of time per region. See the Amazon RDS User Guide for the time blocks for each region from which the default backup windows are assigned.

Constraints: Must be in the format hh24:mi-hh24:mi. Times should be Universal Time Coordinated (UTC). Must not conflict with the preferred maintenance window. Must be at least 30 minutes.

", - "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferingId": "

The ID of the Reserved DB instance offering to purchase.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

", - "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstanceId": "

Customer-specified identifier to track this reservation.

Example: myreservationID

", + "OrderableDBInstanceOption$Engine": null, + "OrderableDBInstanceOption$EngineVersion": null, + "OrderableDBInstanceOption$DBInstanceClass": null, + "OrderableDBInstanceOption$LicenseModel": null, + "OrderableDBInstanceOptionsMessage$Marker": null, + "Parameter$ParameterName": null, + "Parameter$ParameterValue": null, + "Parameter$Description": null, + "Parameter$Source": null, + "Parameter$ApplyType": null, + "Parameter$DataType": null, + "Parameter$AllowedValues": null, + "Parameter$MinimumEngineVersion": null, + "PendingModifiedValues$DBInstanceClass": null, + "PendingModifiedValues$MasterUserPassword": null, + "PendingModifiedValues$EngineVersion": null, + "PendingModifiedValues$DBInstanceIdentifier": null, + "PromoteReadReplicaMessage$DBInstanceIdentifier": null, + "PromoteReadReplicaMessage$PreferredBackupWindow": null, + "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferingId": null, + "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstanceId": null, "ReadReplicaDBInstanceIdentifierList$member": null, - "RebootDBInstanceMessage$DBInstanceIdentifier": "

The DB instance identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RecurringCharge$RecurringChargeFrequency": "

The frequency of the recurring charge.

", - "RemoveSourceIdentifierFromSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription you want to remove a source identifier from.

", - "RemoveSourceIdentifierFromSubscriptionMessage$SourceIdentifier": "

The source identifier to be removed from the subscription, such as the DB instance identifier for a DB instance or the name of a security group.

", - "RemoveTagsFromResourceMessage$ResourceName": "

The Amazon RDS resource the tags will be removed from. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

", - "ReservedDBInstance$ReservedDBInstanceId": "

The unique identifier for the reservation.

", - "ReservedDBInstance$ReservedDBInstancesOfferingId": "

The offering identifier.

", - "ReservedDBInstance$DBInstanceClass": "

The DB instance class for the reserved DB instance.

", - "ReservedDBInstance$CurrencyCode": "

The currency code for the reserved DB instance.

", - "ReservedDBInstance$ProductDescription": "

The description of the reserved DB instance.

", - "ReservedDBInstance$OfferingType": "

The offering type of this reserved DB instance.

", - "ReservedDBInstance$State": "

The state of the reserved DB instance.

", - "ReservedDBInstanceMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "ReservedDBInstancesOffering$ReservedDBInstancesOfferingId": "

The offering identifier.

", - "ReservedDBInstancesOffering$DBInstanceClass": "

The DB instance class for the reserved DB instance.

", - "ReservedDBInstancesOffering$CurrencyCode": "

The currency code for the reserved DB instance offering.

", - "ReservedDBInstancesOffering$ProductDescription": "

The database engine used by the offering.

", - "ReservedDBInstancesOffering$OfferingType": "

The offering type.

", - "ReservedDBInstancesOfferingMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "ResetDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB parameter group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceIdentifier": "

Name of the DB instance to create from the DB snapshot. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

", - "RestoreDBInstanceFromDBSnapshotMessage$DBSnapshotIdentifier": "

The identifier for the DB snapshot to restore from.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceClass": "

The compute and memory capacity of the Amazon RDS DB instance.

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge

", - "RestoreDBInstanceFromDBSnapshotMessage$AvailabilityZone": "

The EC2 Availability Zone that the database instance will be created in.

Default: A random, system-chosen Availability Zone.

Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

Example: us-east-1a

", - "RestoreDBInstanceFromDBSnapshotMessage$DBSubnetGroupName": "

The DB subnet group name to use for the new instance.

", - "RestoreDBInstanceFromDBSnapshotMessage$LicenseModel": "

License model information for the restored DB instance.

Default: Same as source.

Valid values: license-included | bring-your-own-license | general-public-license

", - "RestoreDBInstanceFromDBSnapshotMessage$DBName": "

The database name for the restored DB instance.

This parameter doesn't apply to the MySQL engine.

", - "RestoreDBInstanceFromDBSnapshotMessage$Engine": "

The database engine to use for the new instance.

Default: The same as source

Constraint: Must be compatible with the engine of the source

Example: oracle-ee

", - "RestoreDBInstanceFromDBSnapshotMessage$OptionGroupName": "

The name of the option group to be used for the restored DB instance.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", - "RestoreDBInstanceToPointInTimeMessage$SourceDBInstanceIdentifier": "

The identifier of the source DB instance from which to restore.

Constraints:

  • Must be the identifier of an existing database instance
  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RestoreDBInstanceToPointInTimeMessage$TargetDBInstanceIdentifier": "

The name of the new database instance to be created.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RestoreDBInstanceToPointInTimeMessage$DBInstanceClass": "

The compute and memory capacity of the Amazon RDS DB instance.

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge

Default: The same DBInstanceClass as the original DB instance.

", - "RestoreDBInstanceToPointInTimeMessage$AvailabilityZone": "

The EC2 Availability Zone that the database instance will be created in.

Default: A random, system-chosen Availability Zone.

Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

Example: us-east-1a

", - "RestoreDBInstanceToPointInTimeMessage$DBSubnetGroupName": "

The DB subnet group name to use for the new instance.

", - "RestoreDBInstanceToPointInTimeMessage$LicenseModel": "

License model information for the restored DB instance.

Default: Same as source.

Valid values: license-included | bring-your-own-license | general-public-license

", - "RestoreDBInstanceToPointInTimeMessage$DBName": "

The database name for the restored DB instance.

This parameter is not used for the MySQL engine.

", - "RestoreDBInstanceToPointInTimeMessage$Engine": "

The database engine to use for the new instance.

Default: The same as source

Constraint: Must be compatible with the engine of the source

Example: oracle-ee

", - "RestoreDBInstanceToPointInTimeMessage$OptionGroupName": "

The name of the option group to be used for the restored DB instance.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", - "RevokeDBSecurityGroupIngressMessage$DBSecurityGroupName": "

The name of the DB security group to revoke ingress from.

", - "RevokeDBSecurityGroupIngressMessage$CIDRIP": "

The IP range to revoke access from. Must be a valid CIDR range. If CIDRIP is specified, EC2SecurityGroupName, EC2SecurityGroupId and EC2SecurityGroupOwnerId cannot be provided.

", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupName": "

The name of the EC2 security group to revoke access from. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupId": "

The id of the EC2 security group to revoke access from. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": "

The AWS Account Number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", + "RebootDBInstanceMessage$DBInstanceIdentifier": null, + "RecurringCharge$RecurringChargeFrequency": null, + "RemoveSourceIdentifierFromSubscriptionMessage$SubscriptionName": null, + "RemoveSourceIdentifierFromSubscriptionMessage$SourceIdentifier": null, + "RemoveTagsFromResourceMessage$ResourceName": null, + "ReservedDBInstance$ReservedDBInstanceId": null, + "ReservedDBInstance$ReservedDBInstancesOfferingId": null, + "ReservedDBInstance$DBInstanceClass": null, + "ReservedDBInstance$CurrencyCode": null, + "ReservedDBInstance$ProductDescription": null, + "ReservedDBInstance$OfferingType": null, + "ReservedDBInstance$State": null, + "ReservedDBInstanceMessage$Marker": null, + "ReservedDBInstancesOffering$ReservedDBInstancesOfferingId": null, + "ReservedDBInstancesOffering$DBInstanceClass": null, + "ReservedDBInstancesOffering$CurrencyCode": null, + "ReservedDBInstancesOffering$ProductDescription": null, + "ReservedDBInstancesOffering$OfferingType": null, + "ReservedDBInstancesOfferingMessage$Marker": null, + "ResetDBParameterGroupMessage$DBParameterGroupName": null, + "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceIdentifier": null, + "RestoreDBInstanceFromDBSnapshotMessage$DBSnapshotIdentifier": null, + "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceClass": null, + "RestoreDBInstanceFromDBSnapshotMessage$AvailabilityZone": null, + "RestoreDBInstanceFromDBSnapshotMessage$DBSubnetGroupName": null, + "RestoreDBInstanceFromDBSnapshotMessage$LicenseModel": null, + "RestoreDBInstanceFromDBSnapshotMessage$DBName": null, + "RestoreDBInstanceFromDBSnapshotMessage$Engine": null, + "RestoreDBInstanceFromDBSnapshotMessage$OptionGroupName": null, + "RestoreDBInstanceToPointInTimeMessage$SourceDBInstanceIdentifier": null, + "RestoreDBInstanceToPointInTimeMessage$TargetDBInstanceIdentifier": null, + "RestoreDBInstanceToPointInTimeMessage$DBInstanceClass": null, + "RestoreDBInstanceToPointInTimeMessage$AvailabilityZone": null, + "RestoreDBInstanceToPointInTimeMessage$DBSubnetGroupName": null, + "RestoreDBInstanceToPointInTimeMessage$LicenseModel": null, + "RestoreDBInstanceToPointInTimeMessage$DBName": null, + "RestoreDBInstanceToPointInTimeMessage$Engine": null, + "RestoreDBInstanceToPointInTimeMessage$OptionGroupName": null, + "RevokeDBSecurityGroupIngressMessage$DBSecurityGroupName": null, + "RevokeDBSecurityGroupIngressMessage$CIDRIP": null, + "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupName": null, + "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupId": null, + "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": null, "SourceIdsList$member": null, - "Subnet$SubnetIdentifier": "

Specifies the identifier of the subnet.

", - "Subnet$SubnetStatus": "

Specifies the status of the subnet.

", + "Subnet$SubnetIdentifier": null, + "Subnet$SubnetStatus": null, "SubnetIdentifierList$member": null, - "Tag$Key": "

A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with \"aws:\" or \"rds:\". The string may only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

", - "Tag$Value": "

A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with \"aws:\" or \"rds:\". The string may only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

", + "Tag$Key": null, + "Tag$Value": null, "VpcSecurityGroupIdList$member": null, - "VpcSecurityGroupMembership$VpcSecurityGroupId": "

The name of the VPC security group.

", - "VpcSecurityGroupMembership$Status": "

The status of the VPC security group.

" + "VpcSecurityGroupMembership$VpcSecurityGroupId": null, + "VpcSecurityGroupMembership$Status": null } }, "Subnet": { - "base": "

This data type is used as a response element in the DescribeDBSubnetGroups action.

", + "base": null, "refs": { "SubnetList$member": null } }, "SubnetAlreadyInUse": { - "base": "

The DB subnet is already in use in the Availability Zone.

", + "base": "

The DB subnet is already in use in the Availability Zone.

", "refs": { } }, "SubnetIdentifierList": { "base": null, "refs": { - "CreateDBSubnetGroupMessage$SubnetIds": "

The EC2 Subnet IDs for the DB subnet group.

", - "ModifyDBSubnetGroupMessage$SubnetIds": "

The EC2 subnet IDs for the DB subnet group.

" + "CreateDBSubnetGroupMessage$SubnetIds": null, + "ModifyDBSubnetGroupMessage$SubnetIds": null } }, "SubnetList": { "base": null, "refs": { - "DBSubnetGroup$Subnets": "

Contains a list of Subnet elements.

" + "DBSubnetGroup$Subnets": null } }, "SubscriptionAlreadyExistFault": { @@ -1804,33 +1804,33 @@ "SupportedCharacterSetsList": { "base": null, "refs": { - "DBEngineVersion$SupportedCharacterSets": "

A list of the character sets supported by this engine for the CharacterSetName parameter of the CreateDBInstance API.

" + "DBEngineVersion$SupportedCharacterSets": null } }, "TStamp": { "base": null, "refs": { - "DBInstance$InstanceCreateTime": "

Provides the date and time the DB instance was created.

", - "DBInstance$LatestRestorableTime": "

Specifies the latest time to which a database can be restored with point-in-time restore.

", - "DBSnapshot$SnapshotCreateTime": "

Provides the time (UTC) when the snapshot was taken.

", - "DBSnapshot$InstanceCreateTime": "

Specifies the time (UTC) when the snapshot was taken.

", - "DescribeEventsMessage$StartTime": "

The beginning of the time interval to retrieve events for, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

Example: 2009-07-08T18:00Z

", - "DescribeEventsMessage$EndTime": "

The end of the time interval for which to retrieve events, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

Example: 2009-07-08T18:00Z

", - "Event$Date": "

Specifies the date and time of the event.

", - "ReservedDBInstance$StartTime": "

The time the reservation started.

", - "RestoreDBInstanceToPointInTimeMessage$RestoreTime": "

The date and time to restore from.

Valid Values: Value must be a UTC time

Constraints:

  • Must be before the latest restorable time for the DB instance
  • Cannot be specified if UseLatestRestorableTime parameter is true

Example: 2009-09-07T23:45:00Z

" + "DBInstance$InstanceCreateTime": null, + "DBInstance$LatestRestorableTime": null, + "DBSnapshot$SnapshotCreateTime": null, + "DBSnapshot$InstanceCreateTime": null, + "DescribeEventsMessage$StartTime": null, + "DescribeEventsMessage$EndTime": null, + "Event$Date": null, + "ReservedDBInstance$StartTime": null, + "RestoreDBInstanceToPointInTimeMessage$RestoreTime": null } }, "Tag": { - "base": "

Metadata assigned to an Amazon RDS resource consisting of a key-value pair.

", + "base": null, "refs": { "TagList$member": null } }, "TagList": { - "base": "

A list of tags.

", + "base": null, "refs": { - "AddTagsToResourceMessage$Tags": "

The tags to be assigned to the Amazon RDS resource.

", + "AddTagsToResourceMessage$Tags": null, "CopyDBSnapshotMessage$Tags": null, "CreateDBInstanceMessage$Tags": null, "CreateDBInstanceReadReplicaMessage$Tags": null, @@ -1843,24 +1843,24 @@ "PurchaseReservedDBInstancesOfferingMessage$Tags": null, "RestoreDBInstanceFromDBSnapshotMessage$Tags": null, "RestoreDBInstanceToPointInTimeMessage$Tags": null, - "TagListMessage$TagList": "

List of tags returned by the ListTagsForResource operation.

" + "TagListMessage$TagList": null } }, "TagListMessage": { - "base": "

", + "base": null, "refs": { } }, "VpcSecurityGroupIdList": { "base": null, "refs": { - "CreateDBInstanceMessage$VpcSecurityGroupIds": "

A list of EC2 VPC security groups to associate with this DB instance.

Default: The default EC2 VPC security group for the DB subnet group's VPC.

", - "ModifyDBInstanceMessage$VpcSecurityGroupIds": "

A list of EC2 VPC security groups to authorize on this DB instance. This change is asynchronously applied as soon as possible.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "OptionConfiguration$VpcSecurityGroupMemberships": "

A list of VpcSecurityGroupMemebrship name strings used for this option.

" + "CreateDBInstanceMessage$VpcSecurityGroupIds": null, + "ModifyDBInstanceMessage$VpcSecurityGroupIds": null, + "OptionConfiguration$VpcSecurityGroupMemberships": null } }, "VpcSecurityGroupMembership": { - "base": "

This data type is used as a response element for queries on VPC security group membership.

", + "base": null, "refs": { "VpcSecurityGroupMembershipList$member": null } @@ -1868,8 +1868,8 @@ "VpcSecurityGroupMembershipList": { "base": null, "refs": { - "DBInstance$VpcSecurityGroups": "

Provides List of VPC security group elements that the DB instance belongs to.

", - "Option$VpcSecurityGroupMemberships": "

If the option requires access to a port, then this VPC security group allows access to the port.

" + "DBInstance$VpcSecurityGroups": null, + "Option$VpcSecurityGroupMemberships": null } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/paginators-1.json index 662845c12..c51d8d15b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/paginators-1.json @@ -2,109 +2,109 @@ "pagination": { "DescribeDBEngineVersions": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBEngineVersions" }, "DescribeDBInstances": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBInstances" }, "DescribeDBLogFiles": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DescribeDBLogFiles" }, "DescribeDBParameterGroups": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBParameterGroups" }, "DescribeDBParameters": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "Parameters" }, "DescribeDBSecurityGroups": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBSecurityGroups" }, "DescribeDBSnapshots": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBSnapshots" }, "DescribeDBSubnetGroups": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBSubnetGroups" }, "DescribeEngineDefaultParameters": { "input_token": "Marker", - "output_token": "EngineDefaults.Marker", "limit_key": "MaxRecords", + "output_token": "EngineDefaults.Marker", "result_key": "EngineDefaults.Parameters" }, "DescribeEventSubscriptions": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "EventSubscriptionsList" }, "DescribeEvents": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "Events" }, "DescribeOptionGroupOptions": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "OptionGroupOptions" }, "DescribeOptionGroups": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "OptionGroupsList" }, "DescribeOrderableDBInstanceOptions": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "OrderableDBInstanceOptions" }, "DescribeReservedDBInstances": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "ReservedDBInstances" }, "DescribeReservedDBInstancesOfferings": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "ReservedDBInstancesOfferings" }, "DownloadDBLogFilePortion": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "NumberOfLines", "more_results": "AdditionalDataPending", + "output_token": "Marker", "result_key": "LogFileData" }, "ListTagsForResource": { "result_key": "TagList" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/api-2.json index 45271a77a..5c0b48bff 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/api-2.json @@ -7,6 +7,7 @@ "serviceAbbreviation":"Amazon RDS", "serviceFullName":"Amazon Relational Database Service", "signatureVersion":"v4", + "uid":"rds-2014-09-01", "xmlNamespace":"http://rds.amazonaws.com/doc/2014-09-01/" }, "operations":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/docs-2.json index 7c321267f..c326bd7bd 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/docs-2.json @@ -1,65 +1,65 @@ { "version": "2.0", - "service": "Amazon Relational Database Service

Amazon Relational Database Service (Amazon RDS) is a web service that makes it easier to set up, operate, and scale a relational database in the cloud. It provides cost-efficient, resizable capacity for an industry-standard relational database and manages common database administration tasks, freeing up developers to focus on what makes their applications and businesses unique.

Amazon RDS gives you access to the capabilities of a MySQL, PostgreSQL, Microsoft SQL Server, or Oracle database server. This means the code, applications, and tools you already use today with your existing databases work with Amazon RDS without modification. Amazon RDS automatically backs up your database and maintains the database software that powers your DB instance. Amazon RDS is flexible: you can scale your database instance's compute resources and storage capacity to meet your application's demand. As with all Amazon Web Services, there are no up-front investments, and you pay only for the resources you use.

This is an interface reference for Amazon RDS. It contains documentation for a programming or command line interface you can use to manage Amazon RDS. Note that Amazon RDS is asynchronous, which means that some interfaces may require techniques such as polling or callback functions to determine when a command has been applied. In this reference, the parameter descriptions indicate whether a command is applied immediately, on the next instance reboot, or during the maintenance window. For a summary of the Amazon RDS interfaces, go to Available RDS Interfaces.

", + "service": null, "operations": { - "AddSourceIdentifierToSubscription": "

Adds a source identifier to an existing RDS event notification subscription.

", - "AddTagsToResource": "

Adds metadata tags to an Amazon RDS resource. These tags can also be used with cost allocation reporting to track cost associated with Amazon RDS resources, or used in Condition statement in IAM policy for Amazon RDS.

For an overview on tagging Amazon RDS resources, see Tagging Amazon RDS Resources.

", - "AuthorizeDBSecurityGroupIngress": "

Enables ingress to a DBSecurityGroup using one of two forms of authorization. First, EC2 or VPC security groups can be added to the DBSecurityGroup if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet. Required parameters for this API are one of CIDR range, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId for non-VPC).

You cannot authorize ingress from an EC2 security group in one Region to an Amazon RDS DB instance in another. You cannot authorize ingress from a VPC security group in one VPC to an Amazon RDS DB instance in another.

For an overview of CIDR ranges, go to the Wikipedia Tutorial.

", - "CopyDBParameterGroup": "

Copies the specified DB parameter group.

", - "CopyDBSnapshot": "

Copies the specified DBSnapshot. The source DBSnapshot must be in the \"available\" state.

", - "CopyOptionGroup": "

Copies the specified option group.

", - "CreateDBInstance": "

Creates a new DB instance.

", - "CreateDBInstanceReadReplica": "

Creates a DB instance that acts as a Read Replica of a source DB instance.

All Read Replica DB instances are created as Single-AZ deployments with backups disabled. All other DB instance attributes (including DB security groups and DB parameter groups) are inherited from the source DB instance, except as specified below.

The source DB instance must have backup retention enabled.

", - "CreateDBParameterGroup": "

Creates a new DB parameter group.

A DB parameter group is initially created with the default parameters for the database engine used by the DB instance. To provide custom values for any of the parameters, you must modify the group after creating it using ModifyDBParameterGroup. Once you've created a DB parameter group, you need to associate it with your DB instance using ModifyDBInstance. When you associate a new DB parameter group with a running DB instance, you need to reboot the DB instance without failover for the new DB parameter group and associated settings to take effect.

After you create a DB parameter group, you should wait at least 5 minutes before creating your first DB instance that uses that DB parameter group as the default parameter group. This allows Amazon RDS to fully complete the create action before the parameter group is used as the default for a new DB instance. This is especially important for parameters that are critical when creating the default database for a DB instance, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon RDS console or the DescribeDBParameters command to verify that your DB parameter group has been created or modified.

", - "CreateDBSecurityGroup": "

Creates a new DB security group. DB security groups control access to a DB instance.

", - "CreateDBSnapshot": "

Creates a DBSnapshot. The source DBInstance must be in \"available\" state.

", - "CreateDBSubnetGroup": "

Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region.

", - "CreateEventSubscription": "

Creates an RDS event notification subscription. This action requires a topic ARN (Amazon Resource Name) created by either the RDS console, the SNS console, or the SNS API. To obtain an ARN with SNS, you must create a topic in Amazon SNS and subscribe to the topic. The ARN is displayed in the SNS console.

You can specify the type of source (SourceType) you want to be notified of, provide a list of RDS sources (SourceIds) that triggers the events, and provide a list of event categories (EventCategories) for events you want to be notified of. For example, you can specify SourceType = db-instance, SourceIds = mydbinstance1, mydbinstance2 and EventCategories = Availability, Backup.

If you specify both the SourceType and SourceIds, such as SourceType = db-instance and SourceIdentifier = myDBInstance1, you will be notified of all the db-instance events for the specified source. If you specify a SourceType but do not specify a SourceIdentifier, you will receive notice of the events for that source type for all your RDS sources. If you do not specify either the SourceType nor the SourceIdentifier, you will be notified of events generated from all RDS sources belonging to your customer account.

", - "CreateOptionGroup": "

Creates a new option group. You can create up to 20 option groups.

", - "DeleteDBInstance": "

The DeleteDBInstance action deletes a previously provisioned DB instance. A successful response from the web service indicates the request was received correctly. When you delete a DB instance, all automated backups for that instance are deleted and cannot be recovered. Manual DB snapshots of the DB instance to be deleted are not deleted.

If a final DB snapshot is requested the status of the RDS instance will be \"deleting\" until the DB snapshot is created. The API action DescribeDBInstance is used to monitor the status of this operation. The action cannot be canceled or reverted once submitted.

", - "DeleteDBParameterGroup": "

Deletes a specified DBParameterGroup. The DBParameterGroup to be deleted cannot be associated with any DB instances.

The specified DB parameter group cannot be associated with any DB instances. ", - "DeleteDBSecurityGroup": "

Deletes a DB security group.

The specified DB security group must not be associated with any DB instances.", - "DeleteDBSnapshot": "

Deletes a DBSnapshot. If the snapshot is being copied, the copy operation is terminated.

The DBSnapshot must be in the available state to be deleted.", - "DeleteDBSubnetGroup": "

Deletes a DB subnet group.

The specified database subnet group must not be associated with any DB instances.", - "DeleteEventSubscription": "

Deletes an RDS event notification subscription.

", - "DeleteOptionGroup": "

Deletes an existing option group.

", - "DescribeDBEngineVersions": "

Returns a list of the available DB engines.

", - "DescribeDBInstances": "

Returns information about provisioned RDS instances. This API supports pagination.

", - "DescribeDBLogFiles": "

Returns a list of DB log files for the DB instance.

", - "DescribeDBParameterGroups": "

Returns a list of DBParameterGroup descriptions. If a DBParameterGroupName is specified, the list will contain only the description of the specified DB parameter group.

", - "DescribeDBParameters": "

Returns the detailed parameter list for a particular DB parameter group.

", - "DescribeDBSecurityGroups": "

Returns a list of DBSecurityGroup descriptions. If a DBSecurityGroupName is specified, the list will contain only the descriptions of the specified DB security group.

", - "DescribeDBSnapshots": "

Returns information about DB snapshots. This API supports pagination.

", - "DescribeDBSubnetGroups": "

Returns a list of DBSubnetGroup descriptions. If a DBSubnetGroupName is specified, the list will contain only the descriptions of the specified DBSubnetGroup.

For an overview of CIDR ranges, go to the Wikipedia Tutorial.

", - "DescribeEngineDefaultParameters": "

Returns the default engine and system parameter information for the specified database engine.

", - "DescribeEventCategories": "

Displays a list of categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in the Events topic in the Amazon RDS User Guide.

", - "DescribeEventSubscriptions": "

Lists all the subscription descriptions for a customer account. The description for a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType, SourceID, CreationTime, and Status.

If you specify a SubscriptionName, lists the description for that subscription.

", - "DescribeEvents": "

Returns events related to DB instances, DB security groups, DB snapshots, and DB parameter groups for the past 14 days. Events specific to a particular DB instance, DB security group, database snapshot, or DB parameter group can be obtained by providing the name as a parameter. By default, the past hour of events are returned.

", - "DescribeOptionGroupOptions": "

Describes all available options.

", - "DescribeOptionGroups": "

Describes the available option groups.

", - "DescribeOrderableDBInstanceOptions": "

Returns a list of orderable DB instance options for the specified engine.

", - "DescribeReservedDBInstances": "

Returns information about reserved DB instances for this account, or about a specified reserved DB instance.

", - "DescribeReservedDBInstancesOfferings": "

Lists available reserved DB instance offerings.

", - "DownloadDBLogFilePortion": "

Downloads all or a portion of the specified log file.

", - "ListTagsForResource": "

Lists all tags on an Amazon RDS resource.

For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS Resources.

", - "ModifyDBInstance": "

Modify settings for a DB instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.

", - "ModifyDBParameterGroup": "

Modifies the parameters of a DB parameter group. To modify more than one parameter, submit a list of the following: ParameterName, ParameterValue, and ApplyMethod. A maximum of 20 parameters can be modified in a single request.

Changes to dynamic parameters are applied immediately. Changes to static parameters require a reboot without failover to the DB instance associated with the parameter group before the change can take effect.

After you modify a DB parameter group, you should wait at least 5 minutes before creating your first DB instance that uses that DB parameter group as the default parameter group. This allows Amazon RDS to fully complete the modify action before the parameter group is used as the default for a new DB instance. This is especially important for parameters that are critical when creating the default database for a DB instance, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon RDS console or the DescribeDBParameters command to verify that your DB parameter group has been created or modified.

", - "ModifyDBSubnetGroup": "

Modifies an existing DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region.

", - "ModifyEventSubscription": "

Modifies an existing RDS event notification subscription. Note that you cannot modify the source identifiers using this call; to change source identifiers for a subscription, use the AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription calls.

You can see a list of the event categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

", - "ModifyOptionGroup": "

Modifies an existing option group.

", - "PromoteReadReplica": "

Promotes a Read Replica DB instance to a standalone DB instance.

We recommend that you enable automated backups on your Read Replica before promoting the Read Replica. This ensures that no backup is taken during the promotion process. Once the instance is promoted to a primary instance, backups are taken based on your backup settings.

", - "PurchaseReservedDBInstancesOffering": "

Purchases a reserved DB instance offering.

", - "RebootDBInstance": "

Rebooting a DB instance restarts the database engine service. A reboot also applies to the DB instance any modifications to the associated DB parameter group that were pending. Rebooting a DB instance results in a momentary outage of the instance, during which the DB instance status is set to rebooting. If the RDS instance is configured for MultiAZ, it is possible that the reboot will be conducted through a failover. An Amazon RDS event is created when the reboot is completed.

If your DB instance is deployed in multiple Availability Zones, you can force a failover from one AZ to the other during the reboot. You might force a failover to test the availability of your DB instance deployment or to restore operations to the original AZ after a failover occurs.

The time required to reboot is a function of the specific database engine's crash recovery process. To improve the reboot time, we recommend that you reduce database activities as much as possible during the reboot process to reduce rollback activity for in-transit transactions.

", - "RemoveSourceIdentifierFromSubscription": "

Removes a source identifier from an existing RDS event notification subscription.

", - "RemoveTagsFromResource": "

Removes metadata tags from an Amazon RDS resource.

For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS Resources.

", - "ResetDBParameterGroup": "

Modifies the parameters of a DB parameter group to the engine/system default value. To reset specific parameters submit a list of the following: ParameterName and ApplyMethod. To reset the entire DB parameter group, specify the DBParameterGroup name and ResetAllParameters parameters. When resetting the entire group, dynamic parameters are updated immediately and static parameters are set to pending-reboot to take effect on the next DB instance restart or RebootDBInstance request.

", - "RestoreDBInstanceFromDBSnapshot": "

Creates a new DB instance from a DB snapshot. The target database is created from the source database restore point with the same configuration as the original source database, except that the new RDS instance is created with the default security group.

If your intent is to replace your original DB instance with the new, restored DB instance, then rename your original DB instance before you call the RestoreDBInstanceFromDBSnapshot action. RDS does not allow two DB instances with the same name. Once you have renamed your original DB instance with a different identifier, then you can pass the original name of the DB instance as the DBInstanceIdentifier in the call to the RestoreDBInstanceFromDBSnapshot action. The result is that you will replace the original DB instance with the DB instance created from the snapshot.

", - "RestoreDBInstanceToPointInTime": "

Restores a DB instance to an arbitrary point-in-time. Users can restore to any point in time before the LatestRestorableTime for up to BackupRetentionPeriod days. The target database is created from the source database with the same configuration as the original database except that the DB instance is created with the default DB security group.

", - "RevokeDBSecurityGroupIngress": "

Revokes ingress from a DBSecurityGroup for previously authorized IP ranges or EC2 or VPC Security Groups. Required parameters for this API are one of CIDRIP, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId).

" + "AddSourceIdentifierToSubscription": null, + "AddTagsToResource": null, + "AuthorizeDBSecurityGroupIngress": null, + "CopyDBParameterGroup": null, + "CopyDBSnapshot": null, + "CopyOptionGroup": null, + "CreateDBInstance": null, + "CreateDBInstanceReadReplica": null, + "CreateDBParameterGroup": null, + "CreateDBSecurityGroup": null, + "CreateDBSnapshot": null, + "CreateDBSubnetGroup": null, + "CreateEventSubscription": null, + "CreateOptionGroup": null, + "DeleteDBInstance": null, + "DeleteDBParameterGroup": null, + "DeleteDBSecurityGroup": null, + "DeleteDBSnapshot": null, + "DeleteDBSubnetGroup": null, + "DeleteEventSubscription": null, + "DeleteOptionGroup": null, + "DescribeDBEngineVersions": null, + "DescribeDBInstances": null, + "DescribeDBLogFiles": null, + "DescribeDBParameterGroups": null, + "DescribeDBParameters": null, + "DescribeDBSecurityGroups": null, + "DescribeDBSnapshots": null, + "DescribeDBSubnetGroups": null, + "DescribeEngineDefaultParameters": null, + "DescribeEventCategories": null, + "DescribeEventSubscriptions": null, + "DescribeEvents": null, + "DescribeOptionGroupOptions": null, + "DescribeOptionGroups": null, + "DescribeOrderableDBInstanceOptions": null, + "DescribeReservedDBInstances": null, + "DescribeReservedDBInstancesOfferings": null, + "DownloadDBLogFilePortion": null, + "ListTagsForResource": null, + "ModifyDBInstance": null, + "ModifyDBParameterGroup": null, + "ModifyDBSubnetGroup": null, + "ModifyEventSubscription": null, + "ModifyOptionGroup": null, + "PromoteReadReplica": null, + "PurchaseReservedDBInstancesOffering": null, + "RebootDBInstance": null, + "RemoveSourceIdentifierFromSubscription": null, + "RemoveTagsFromResource": null, + "ResetDBParameterGroup": null, + "RestoreDBInstanceFromDBSnapshot": null, + "RestoreDBInstanceToPointInTime": null, + "RevokeDBSecurityGroupIngress": null }, "shapes": { "AddSourceIdentifierToSubscriptionMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -69,33 +69,33 @@ } }, "AddTagsToResourceMessage": { - "base": "

", + "base": null, "refs": { } }, "ApplyMethod": { "base": null, "refs": { - "Parameter$ApplyMethod": "

Indicates when to apply parameter updates.

" + "Parameter$ApplyMethod": null } }, "AuthorizationAlreadyExistsFault": { - "base": "

The specified CIDRIP or EC2 security group is already authorized for the specified DB security group.

", + "base": "

The specified CIDRIP or EC2 security group is already authorized for the specified DB security group.

", "refs": { } }, "AuthorizationNotFoundFault": { - "base": "

Specified CIDRIP or EC2 security group is not authorized for the specified DB security group.

RDS may not also be authorized via IAM to perform necessary actions on your behalf.

", + "base": "

Specified CIDRIP or EC2 security group is not authorized for the specified DB security group.

RDS may not also be authorized via IAM to perform necessary actions on your behalf.

", "refs": { } }, "AuthorizationQuotaExceededFault": { - "base": "

DB security group authorization quota has been reached.

", + "base": "

DB security group authorization quota has been reached.

", "refs": { } }, "AuthorizeDBSecurityGroupIngressMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -105,7 +105,7 @@ } }, "AvailabilityZone": { - "base": "

Contains Availability Zone information.

This data type is used as an element in the following data type:

", + "base": null, "refs": { "AvailabilityZoneList$member": null, "Subnet$SubnetAvailabilityZone": null @@ -114,78 +114,78 @@ "AvailabilityZoneList": { "base": null, "refs": { - "OrderableDBInstanceOption$AvailabilityZones": "

A list of availability zones for the orderable DB instance.

" + "OrderableDBInstanceOption$AvailabilityZones": null } }, "Boolean": { "base": null, "refs": { - "DBInstance$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment.

", - "DBInstance$AutoMinorVersionUpgrade": "

Indicates that minor version patches are applied automatically.

", - "DBInstance$PubliclyAccessible": "

Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", - "DBInstanceStatusInfo$Normal": "

Boolean value that is true if the instance is operating normally, or false if the instance is in an error state.

", - "DeleteDBInstanceMessage$SkipFinalSnapshot": "

Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted.

Specify true when deleting a Read Replica.

The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot is false.

Default: false

", - "DescribeDBEngineVersionsMessage$DefaultOnly": "

Indicates that only the default version of the specified engine or engine and major version combination is returned.

", - "DownloadDBLogFilePortionDetails$AdditionalDataPending": "

Boolean value that if true, indicates there is more data to be downloaded.

", - "EventSubscription$Enabled": "

A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.

", - "ModifyDBInstanceMessage$ApplyImmediately": "

Specifies whether the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow setting for the DB instance.

If this parameter is set to false, changes to the DB instance are applied during the next maintenance window. Some parameter changes can cause an outage and will be applied on the next call to RebootDBInstance, or the next failure reboot. Review the table of parameters in Modifying a DB Instance and Using the Apply Immediately Parameter to see the impact that setting ApplyImmediately to true or false has for each modified parameter and to determine when the changes will be applied.

Default: false

", - "ModifyDBInstanceMessage$AllowMajorVersionUpgrade": "

Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

Constraints: This parameter must be set to true when specifying a value for the EngineVersion parameter that is a different major version than the DB instance's current version.

", - "ModifyOptionGroupMessage$ApplyImmediately": "

Indicates whether the changes should be applied immediately, or during the next maintenance window for each instance associated with the option group.

", - "Option$Persistent": "

Indicate if this option is persistent.

", - "Option$Permanent": "

Indicate if this option is permanent.

", - "OptionGroup$AllowsVpcAndNonVpcInstanceMemberships": "

Indicates whether this option group can be applied to both VPC and non-VPC instances. The value true indicates the option group can be applied to both VPC and non-VPC instances.

", - "OptionGroupOption$PortRequired": "

Specifies whether the option requires a port.

", - "OptionGroupOption$Persistent": "

A persistent option cannot be removed from the option group once the option group is used, but this option can be removed from the db instance while modifying the related data and assigning another option group without this option.

", - "OptionGroupOption$Permanent": "

A permanent option cannot be removed from the option group once the option group is used, and it cannot be removed from the db instance after assigning an option group with this permanent option.

", - "OptionGroupOptionSetting$IsModifiable": "

Boolean value where true indicates that this option group option can be changed from the default value.

", - "OptionSetting$IsModifiable": "

A Boolean value that, when true, indicates the option setting can be modified from the default.

", - "OptionSetting$IsCollection": "

Indicates if the option setting is part of a collection.

", - "OrderableDBInstanceOption$MultiAZCapable": "

Indicates whether this orderable DB instance is multi-AZ capable.

", - "OrderableDBInstanceOption$ReadReplicaCapable": "

Indicates whether this orderable DB instance can have a Read Replica.

", - "OrderableDBInstanceOption$Vpc": "

Indicates whether this is a VPC orderable DB instance.

", - "OrderableDBInstanceOption$SupportsIops": "

Indicates whether this orderable DB instance supports provisioned IOPS.

", - "Parameter$IsModifiable": "

Indicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

", - "ReservedDBInstance$MultiAZ": "

Indicates if the reservation applies to Multi-AZ deployments.

", - "ReservedDBInstancesOffering$MultiAZ": "

Indicates if the offering applies to Multi-AZ deployments.

", - "ResetDBParameterGroupMessage$ResetAllParameters": "

Specifies whether (true) or not (false) to reset all parameters in the DB parameter group to default values.

Default: true

", - "RestoreDBInstanceToPointInTimeMessage$UseLatestRestorableTime": "

Specifies whether (true) or not (false) the DB instance is restored from the latest backup time.

Default: false

Constraints: Cannot be specified if RestoreTime parameter is provided.

" + "DBInstance$MultiAZ": null, + "DBInstance$AutoMinorVersionUpgrade": null, + "DBInstance$PubliclyAccessible": null, + "DBInstanceStatusInfo$Normal": null, + "DeleteDBInstanceMessage$SkipFinalSnapshot": null, + "DescribeDBEngineVersionsMessage$DefaultOnly": null, + "DownloadDBLogFilePortionDetails$AdditionalDataPending": null, + "EventSubscription$Enabled": null, + "ModifyDBInstanceMessage$ApplyImmediately": null, + "ModifyDBInstanceMessage$AllowMajorVersionUpgrade": null, + "ModifyOptionGroupMessage$ApplyImmediately": null, + "Option$Persistent": null, + "Option$Permanent": null, + "OptionGroup$AllowsVpcAndNonVpcInstanceMemberships": null, + "OptionGroupOption$PortRequired": null, + "OptionGroupOption$Persistent": null, + "OptionGroupOption$Permanent": null, + "OptionGroupOptionSetting$IsModifiable": null, + "OptionSetting$IsModifiable": null, + "OptionSetting$IsCollection": null, + "OrderableDBInstanceOption$MultiAZCapable": null, + "OrderableDBInstanceOption$ReadReplicaCapable": null, + "OrderableDBInstanceOption$Vpc": null, + "OrderableDBInstanceOption$SupportsIops": null, + "Parameter$IsModifiable": null, + "ReservedDBInstance$MultiAZ": null, + "ReservedDBInstancesOffering$MultiAZ": null, + "ResetDBParameterGroupMessage$ResetAllParameters": null, + "RestoreDBInstanceToPointInTimeMessage$UseLatestRestorableTime": null } }, "BooleanOptional": { "base": null, "refs": { - "CreateDBInstanceMessage$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the MultiAZ parameter is set to true.

", - "CreateDBInstanceMessage$AutoMinorVersionUpgrade": "

Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window.

Default: true

", - "CreateDBInstanceMessage$PubliclyAccessible": "

Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", - "CreateDBInstanceReadReplicaMessage$AutoMinorVersionUpgrade": "

Indicates that minor engine upgrades will be applied automatically to the Read Replica during the maintenance window.

Default: Inherits from the source DB instance

", - "CreateDBInstanceReadReplicaMessage$PubliclyAccessible": "

Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", - "CreateEventSubscriptionMessage$Enabled": "

A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.

", - "DescribeDBEngineVersionsMessage$ListSupportedCharacterSets": "

If this parameter is specified, and if the requested engine supports the CharacterSetName parameter for CreateDBInstance, the response includes a list of supported character sets for each engine version.

", - "DescribeOrderableDBInstanceOptionsMessage$Vpc": "

The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.

", - "DescribeReservedDBInstancesMessage$MultiAZ": "

The Multi-AZ filter value. Specify this parameter to show only those reservations matching the specified Multi-AZ parameter.

", - "DescribeReservedDBInstancesOfferingsMessage$MultiAZ": "

The Multi-AZ filter value. Specify this parameter to show only the available offerings matching the specified Multi-AZ parameter.

", - "ModifyDBInstanceMessage$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

Constraints: Cannot be specified if the DB instance is a Read Replica.

", - "ModifyDBInstanceMessage$AutoMinorVersionUpgrade": "

Indicates that minor version upgrades will be applied automatically to the DB instance during the maintenance window. Changing this parameter does not result in an outage except in the following case and the change is asynchronously applied as soon as possible. An outage will result if this parameter is set to true during the maintenance window, and a newer minor version is available, and RDS has enabled auto patching for that engine version.

", - "ModifyEventSubscriptionMessage$Enabled": "

A Boolean value; set to true to activate the subscription.

", - "PendingModifiedValues$MultiAZ": "

Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.

", - "RebootDBInstanceMessage$ForceFailover": "

When true, the reboot will be conducted through a MultiAZ failover.

Constraint: You cannot specify true if the instance is not configured for MultiAZ.

", - "RestoreDBInstanceFromDBSnapshotMessage$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment.

Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

", - "RestoreDBInstanceFromDBSnapshotMessage$PubliclyAccessible": "

Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", - "RestoreDBInstanceFromDBSnapshotMessage$AutoMinorVersionUpgrade": "

Indicates that minor version upgrades will be applied automatically to the DB instance during the maintenance window.

", - "RestoreDBInstanceToPointInTimeMessage$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment.

Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

", - "RestoreDBInstanceToPointInTimeMessage$PubliclyAccessible": "

Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", - "RestoreDBInstanceToPointInTimeMessage$AutoMinorVersionUpgrade": "

Indicates that minor version upgrades will be applied automatically to the DB instance during the maintenance window.

" + "CreateDBInstanceMessage$MultiAZ": null, + "CreateDBInstanceMessage$AutoMinorVersionUpgrade": null, + "CreateDBInstanceMessage$PubliclyAccessible": null, + "CreateDBInstanceReadReplicaMessage$AutoMinorVersionUpgrade": null, + "CreateDBInstanceReadReplicaMessage$PubliclyAccessible": null, + "CreateEventSubscriptionMessage$Enabled": null, + "DescribeDBEngineVersionsMessage$ListSupportedCharacterSets": null, + "DescribeOrderableDBInstanceOptionsMessage$Vpc": null, + "DescribeReservedDBInstancesMessage$MultiAZ": null, + "DescribeReservedDBInstancesOfferingsMessage$MultiAZ": null, + "ModifyDBInstanceMessage$MultiAZ": null, + "ModifyDBInstanceMessage$AutoMinorVersionUpgrade": null, + "ModifyEventSubscriptionMessage$Enabled": null, + "PendingModifiedValues$MultiAZ": null, + "RebootDBInstanceMessage$ForceFailover": null, + "RestoreDBInstanceFromDBSnapshotMessage$MultiAZ": null, + "RestoreDBInstanceFromDBSnapshotMessage$PubliclyAccessible": null, + "RestoreDBInstanceFromDBSnapshotMessage$AutoMinorVersionUpgrade": null, + "RestoreDBInstanceToPointInTimeMessage$MultiAZ": null, + "RestoreDBInstanceToPointInTimeMessage$PubliclyAccessible": null, + "RestoreDBInstanceToPointInTimeMessage$AutoMinorVersionUpgrade": null } }, "CharacterSet": { - "base": "

This data type is used as a response element in the action DescribeDBEngineVersions.

", + "base": null, "refs": { - "DBEngineVersion$DefaultCharacterSet": "

The default character set for new instances of this engine version, if the CharacterSetName parameter of the CreateDBInstance API is not specified.

", + "DBEngineVersion$DefaultCharacterSet": null, "SupportedCharacterSetsList$member": null } }, "CopyDBParameterGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -195,7 +195,7 @@ } }, "CopyDBSnapshotMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -205,7 +205,7 @@ } }, "CopyOptionGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -215,7 +215,7 @@ } }, "CreateDBInstanceMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -235,7 +235,7 @@ } }, "CreateDBParameterGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -245,7 +245,7 @@ } }, "CreateDBSecurityGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -255,7 +255,7 @@ } }, "CreateDBSnapshotMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -265,7 +265,7 @@ } }, "CreateDBSubnetGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -275,7 +275,7 @@ } }, "CreateEventSubscriptionMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -285,7 +285,7 @@ } }, "CreateOptionGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -295,7 +295,7 @@ } }, "DBEngineVersion": { - "base": "

This data type is used as a response element in the action DescribeDBEngineVersions.

", + "base": null, "refs": { "DBEngineVersionList$member": null } @@ -303,16 +303,16 @@ "DBEngineVersionList": { "base": null, "refs": { - "DBEngineVersionMessage$DBEngineVersions": "

A list of DBEngineVersion elements.

" + "DBEngineVersionMessage$DBEngineVersions": null } }, "DBEngineVersionMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBEngineVersions action.

", + "base": null, "refs": { } }, "DBInstance": { - "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBInstances action.

", + "base": null, "refs": { "CreateDBInstanceReadReplicaResult$DBInstance": null, "CreateDBInstanceResult$DBInstance": null, @@ -326,18 +326,18 @@ } }, "DBInstanceAlreadyExistsFault": { - "base": "

User already has a DB instance with the given identifier.

", + "base": "

User already has a DB instance with the given identifier.

", "refs": { } }, "DBInstanceList": { "base": null, "refs": { - "DBInstanceMessage$DBInstances": "

A list of DBInstance instances.

" + "DBInstanceMessage$DBInstances": null } }, "DBInstanceMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBInstances action.

", + "base": null, "refs": { } }, @@ -347,7 +347,7 @@ } }, "DBInstanceStatusInfo": { - "base": "

Provides a list of status information for a DB instance.

", + "base": null, "refs": { "DBInstanceStatusInfoList$member": null } @@ -355,16 +355,16 @@ "DBInstanceStatusInfoList": { "base": null, "refs": { - "DBInstance$StatusInfos": "

The status of a Read Replica. If the instance is not a Read Replica, this will be blank.

" + "DBInstance$StatusInfos": null } }, "DBLogFileNotFoundFault": { - "base": "

LogFileName does not refer to an existing DB log file.

", + "base": "

LogFileName does not refer to an existing DB log file.

", "refs": { } }, "DBParameterGroup": { - "base": "

Contains the result of a successful invocation of the CreateDBParameterGroup action.

This data type is used as a request parameter in the DeleteDBParameterGroup action, and as a response element in the DescribeDBParameterGroups action.

", + "base": null, "refs": { "CopyDBParameterGroupResult$DBParameterGroup": null, "CreateDBParameterGroupResult$DBParameterGroup": null, @@ -372,23 +372,23 @@ } }, "DBParameterGroupAlreadyExistsFault": { - "base": "

A DB parameter group with the same name exists.

", + "base": "

A DB parameter group with the same name exists.

", "refs": { } }, "DBParameterGroupDetails": { - "base": "

Contains the result of a successful invocation of the DescribeDBParameters action.

", + "base": null, "refs": { } }, "DBParameterGroupList": { "base": null, "refs": { - "DBParameterGroupsMessage$DBParameterGroups": "

A list of DBParameterGroup instances.

" + "DBParameterGroupsMessage$DBParameterGroups": null } }, "DBParameterGroupNameMessage": { - "base": "

Contains the result of a successful invocation of the ModifyDBParameterGroup or ResetDBParameterGroup action.

", + "base": null, "refs": { } }, @@ -398,12 +398,12 @@ } }, "DBParameterGroupQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of DB parameter groups.

", + "base": "

Request would result in user exceeding the allowed number of DB parameter groups.

", "refs": { } }, "DBParameterGroupStatus": { - "base": "

The status of the DB parameter group.

This data type is used as a response element in the following actions:

", + "base": null, "refs": { "DBParameterGroupStatusList$member": null } @@ -411,16 +411,16 @@ "DBParameterGroupStatusList": { "base": null, "refs": { - "DBInstance$DBParameterGroups": "

Provides the list of DB parameter groups applied to this DB instance.

" + "DBInstance$DBParameterGroups": null } }, "DBParameterGroupsMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBParameterGroups action.

", + "base": null, "refs": { } }, "DBSecurityGroup": { - "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBSecurityGroups action.

", + "base": null, "refs": { "AuthorizeDBSecurityGroupIngressResult$DBSecurityGroup": null, "CreateDBSecurityGroupResult$DBSecurityGroup": null, @@ -434,7 +434,7 @@ } }, "DBSecurityGroupMembership": { - "base": "

This data type is used as a response element in the following actions:

", + "base": null, "refs": { "DBSecurityGroupMembershipList$member": null } @@ -442,21 +442,21 @@ "DBSecurityGroupMembershipList": { "base": null, "refs": { - "DBInstance$DBSecurityGroups": "

Provides List of DB security group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.

", - "Option$DBSecurityGroupMemberships": "

If the option requires access to a port, then this DB security group allows access to the port.

" + "DBInstance$DBSecurityGroups": null, + "Option$DBSecurityGroupMemberships": null } }, "DBSecurityGroupMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBSecurityGroups action.

", + "base": null, "refs": { } }, "DBSecurityGroupNameList": { "base": null, "refs": { - "CreateDBInstanceMessage$DBSecurityGroups": "

A list of DB security groups to associate with this DB instance.

Default: The default DB security group for the database engine.

", - "ModifyDBInstanceMessage$DBSecurityGroups": "

A list of DB security groups to authorize on this DB instance. Changing this setting does not result in an outage and the change is asynchronously applied as soon as possible.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "OptionConfiguration$DBSecurityGroupMemberships": "

A list of DBSecurityGroupMemebrship name strings used for this option.

" + "CreateDBInstanceMessage$DBSecurityGroups": null, + "ModifyDBInstanceMessage$DBSecurityGroups": null, + "OptionConfiguration$DBSecurityGroupMemberships": null } }, "DBSecurityGroupNotFoundFault": { @@ -465,23 +465,23 @@ } }, "DBSecurityGroupNotSupportedFault": { - "base": "

A DB security group is not allowed for this action.

", + "base": "

A DB security group is not allowed for this action.

", "refs": { } }, "DBSecurityGroupQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of DB security groups.

", + "base": "

Request would result in user exceeding the allowed number of DB security groups.

", "refs": { } }, "DBSecurityGroups": { "base": null, "refs": { - "DBSecurityGroupMessage$DBSecurityGroups": "

A list of DBSecurityGroup instances.

" + "DBSecurityGroupMessage$DBSecurityGroups": null } }, "DBSnapshot": { - "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBSnapshots action.

", + "base": null, "refs": { "CopyDBSnapshotResult$DBSnapshot": null, "CreateDBSnapshotResult$DBSnapshot": null, @@ -497,11 +497,11 @@ "DBSnapshotList": { "base": null, "refs": { - "DBSnapshotMessage$DBSnapshots": "

A list of DBSnapshot instances.

" + "DBSnapshotMessage$DBSnapshots": null } }, "DBSnapshotMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBSnapshots action.

", + "base": null, "refs": { } }, @@ -511,10 +511,10 @@ } }, "DBSubnetGroup": { - "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBSubnetGroups action.

", + "base": null, "refs": { "CreateDBSubnetGroupResult$DBSubnetGroup": null, - "DBInstance$DBSubnetGroup": "

Specifies information on the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.

", + "DBInstance$DBSubnetGroup": null, "DBSubnetGroups$member": null, "ModifyDBSubnetGroupResult$DBSubnetGroup": null } @@ -525,17 +525,17 @@ } }, "DBSubnetGroupDoesNotCoverEnoughAZs": { - "base": "

Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one Availability Zone.

", + "base": "

Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one Availability Zone.

", "refs": { } }, "DBSubnetGroupMessage": { - "base": "

Contains the result of a successful invocation of the DescribeDBSubnetGroups action.

", + "base": null, "refs": { } }, "DBSubnetGroupNotAllowedFault": { - "base": "

Indicates that the DBSubnetGroup should not be specified while creating read replicas that lie in the same region as the source instance.

", + "base": "

Indicates that the DBSubnetGroup should not be specified while creating read replicas that lie in the same region as the source instance.

", "refs": { } }, @@ -545,28 +545,28 @@ } }, "DBSubnetGroupQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of DB subnet groups.

", + "base": "

Request would result in user exceeding the allowed number of DB subnet groups.

", "refs": { } }, "DBSubnetGroups": { "base": null, "refs": { - "DBSubnetGroupMessage$DBSubnetGroups": "

A list of DBSubnetGroup instances.

" + "DBSubnetGroupMessage$DBSubnetGroups": null } }, "DBSubnetQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of subnets in a DB subnet groups.

", + "base": "

Request would result in user exceeding the allowed number of subnets in a DB subnet groups.

", "refs": { } }, "DBUpgradeDependencyFailureFault": { - "base": "

The DB upgrade failed because a resource the DB depends on could not be modified.

", + "base": "

The DB upgrade failed because a resource the DB depends on could not be modified.

", "refs": { } }, "DeleteDBInstanceMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -576,17 +576,17 @@ } }, "DeleteDBParameterGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "DeleteDBSecurityGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "DeleteDBSnapshotMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -596,12 +596,12 @@ } }, "DeleteDBSubnetGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "DeleteEventSubscriptionMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -611,7 +611,7 @@ } }, "DeleteOptionGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -621,12 +621,12 @@ } }, "DescribeDBInstancesMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeDBLogFilesDetails": { - "base": "

This data type is used as a response element to DescribeDBLogFiles.

", + "base": null, "refs": { "DescribeDBLogFilesList$member": null } @@ -634,21 +634,21 @@ "DescribeDBLogFilesList": { "base": null, "refs": { - "DescribeDBLogFilesResponse$DescribeDBLogFiles": "

The DB log files returned.

" + "DescribeDBLogFilesResponse$DescribeDBLogFiles": null } }, "DescribeDBLogFilesMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeDBLogFilesResponse": { - "base": "

The response from a call to DescribeDBLogFiles.

", + "base": null, "refs": { } }, "DescribeDBParameterGroupsMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -658,22 +658,22 @@ } }, "DescribeDBSecurityGroupsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeDBSnapshotsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeDBSubnetGroupsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeEngineDefaultParametersMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -683,67 +683,67 @@ } }, "DescribeEventCategoriesMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeEventSubscriptionsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeEventsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeOptionGroupOptionsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeOptionGroupsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeOrderableDBInstanceOptionsMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeReservedDBInstancesMessage": { - "base": "

", + "base": null, "refs": { } }, "DescribeReservedDBInstancesOfferingsMessage": { - "base": "

", + "base": null, "refs": { } }, "Double": { "base": null, "refs": { - "RecurringCharge$RecurringChargeAmount": "

The amount of the recurring charge.

", - "ReservedDBInstance$FixedPrice": "

The fixed price charged for this reserved DB instance.

", - "ReservedDBInstance$UsagePrice": "

The hourly price charged for this reserved DB instance.

", - "ReservedDBInstancesOffering$FixedPrice": "

The fixed price charged for this offering.

", - "ReservedDBInstancesOffering$UsagePrice": "

The hourly price charged for this offering.

" + "RecurringCharge$RecurringChargeAmount": null, + "ReservedDBInstance$FixedPrice": null, + "ReservedDBInstance$UsagePrice": null, + "ReservedDBInstancesOffering$FixedPrice": null, + "ReservedDBInstancesOffering$UsagePrice": null } }, "DownloadDBLogFilePortionDetails": { - "base": "

This data type is used as a response element to DownloadDBLogFilePortion.

", + "base": null, "refs": { } }, "DownloadDBLogFilePortionMessage": { - "base": "

", + "base": null, "refs": { } }, "EC2SecurityGroup": { - "base": "

This data type is used as a response element in the following actions:

", + "base": null, "refs": { "EC2SecurityGroupList$member": null } @@ -751,23 +751,23 @@ "EC2SecurityGroupList": { "base": null, "refs": { - "DBSecurityGroup$EC2SecurityGroups": "

Contains a list of EC2SecurityGroup elements.

" + "DBSecurityGroup$EC2SecurityGroups": null } }, "Endpoint": { - "base": "

This data type is used as a response element in the following actions:

", + "base": null, "refs": { - "DBInstance$Endpoint": "

Specifies the connection endpoint.

" + "DBInstance$Endpoint": null } }, "EngineDefaults": { - "base": "

Contains the result of a successful invocation of the DescribeEngineDefaultParameters action.

", + "base": null, "refs": { "DescribeEngineDefaultParametersResult$EngineDefaults": null } }, "Event": { - "base": "

This data type is used as a response element in the DescribeEvents action.

", + "base": null, "refs": { "EventList$member": null } @@ -775,16 +775,16 @@ "EventCategoriesList": { "base": null, "refs": { - "CreateEventSubscriptionMessage$EventCategories": "

A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

", - "DescribeEventsMessage$EventCategories": "

A list of event categories that trigger notifications for a event notification subscription.

", - "Event$EventCategories": "

Specifies the category for the event.

", - "EventCategoriesMap$EventCategories": "

The event categories for the specified source type

", - "EventSubscription$EventCategoriesList": "

A list of event categories for the RDS event notification subscription.

", - "ModifyEventSubscriptionMessage$EventCategories": "

A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

" + "CreateEventSubscriptionMessage$EventCategories": null, + "DescribeEventsMessage$EventCategories": null, + "Event$EventCategories": null, + "EventCategoriesMap$EventCategories": null, + "EventSubscription$EventCategoriesList": null, + "ModifyEventSubscriptionMessage$EventCategories": null } }, "EventCategoriesMap": { - "base": "

Contains the results of a successful invocation of the DescribeEventCategories action.

", + "base": null, "refs": { "EventCategoriesMapList$member": null } @@ -792,22 +792,22 @@ "EventCategoriesMapList": { "base": null, "refs": { - "EventCategoriesMessage$EventCategoriesMapList": "

A list of EventCategoriesMap data types.

" + "EventCategoriesMessage$EventCategoriesMapList": null } }, "EventCategoriesMessage": { - "base": "

Data returned from the DescribeEventCategories action.

", + "base": null, "refs": { } }, "EventList": { "base": null, "refs": { - "EventsMessage$Events": "

A list of Event instances.

" + "EventsMessage$Events": null } }, "EventSubscription": { - "base": "

Contains the results of a successful invocation of the DescribeEventSubscriptions action.

", + "base": null, "refs": { "AddSourceIdentifierToSubscriptionResult$EventSubscription": null, "CreateEventSubscriptionResult$EventSubscription": null, @@ -825,16 +825,16 @@ "EventSubscriptionsList": { "base": null, "refs": { - "EventSubscriptionsMessage$EventSubscriptionsList": "

A list of EventSubscriptions data types.

" + "EventSubscriptionsMessage$EventSubscriptionsList": null } }, "EventSubscriptionsMessage": { - "base": "

Data returned by the DescribeEventSubscriptions action.

", + "base": null, "refs": { } }, "EventsMessage": { - "base": "

Contains the result of a successful invocation of the DescribeEvents action.

", + "base": null, "refs": { } }, @@ -847,34 +847,34 @@ "FilterList": { "base": null, "refs": { - "DescribeDBEngineVersionsMessage$Filters": "

Not currently supported.

", - "DescribeDBInstancesMessage$Filters": "

This parameter is not currently supported.

", - "DescribeDBLogFilesMessage$Filters": "

This parameter is not currently supported.

", - "DescribeDBParameterGroupsMessage$Filters": "

This parameter is not currently supported.

", - "DescribeDBParametersMessage$Filters": "

This parameter is not currently supported.

", - "DescribeDBSecurityGroupsMessage$Filters": "

This parameter is not currently supported.

", - "DescribeDBSnapshotsMessage$Filters": "

This parameter is not currently supported.

", - "DescribeDBSubnetGroupsMessage$Filters": "

This parameter is not currently supported.

", - "DescribeEngineDefaultParametersMessage$Filters": "

Not currently supported.

", - "DescribeEventCategoriesMessage$Filters": "

This parameter is not currently supported.

", - "DescribeEventSubscriptionsMessage$Filters": "

This parameter is not currently supported.

", - "DescribeEventsMessage$Filters": "

This parameter is not currently supported.

", - "DescribeOptionGroupOptionsMessage$Filters": "

This parameter is not currently supported.

", - "DescribeOptionGroupsMessage$Filters": "

This parameter is not currently supported.

", - "DescribeOrderableDBInstanceOptionsMessage$Filters": "

This parameter is not currently supported.

", - "DescribeReservedDBInstancesMessage$Filters": "

This parameter is not currently supported.

", - "DescribeReservedDBInstancesOfferingsMessage$Filters": "

This parameter is not currently supported.

", - "ListTagsForResourceMessage$Filters": "

This parameter is not currently supported.

" + "DescribeDBEngineVersionsMessage$Filters": null, + "DescribeDBInstancesMessage$Filters": null, + "DescribeDBLogFilesMessage$Filters": null, + "DescribeDBParameterGroupsMessage$Filters": null, + "DescribeDBParametersMessage$Filters": null, + "DescribeDBSecurityGroupsMessage$Filters": null, + "DescribeDBSnapshotsMessage$Filters": null, + "DescribeDBSubnetGroupsMessage$Filters": null, + "DescribeEngineDefaultParametersMessage$Filters": null, + "DescribeEventCategoriesMessage$Filters": null, + "DescribeEventSubscriptionsMessage$Filters": null, + "DescribeEventsMessage$Filters": null, + "DescribeOptionGroupOptionsMessage$Filters": null, + "DescribeOptionGroupsMessage$Filters": null, + "DescribeOrderableDBInstanceOptionsMessage$Filters": null, + "DescribeReservedDBInstancesMessage$Filters": null, + "DescribeReservedDBInstancesOfferingsMessage$Filters": null, + "ListTagsForResourceMessage$Filters": null } }, "FilterValueList": { "base": null, "refs": { - "Filter$Values": "

This parameter is not currently supported.

" + "Filter$Values": null } }, "IPRange": { - "base": "

This data type is used as a response element in the DescribeDBSecurityGroups action.

", + "base": null, "refs": { "IPRangeList$member": null } @@ -882,78 +882,78 @@ "IPRangeList": { "base": null, "refs": { - "DBSecurityGroup$IPRanges": "

Contains a list of IPRange elements.

" + "DBSecurityGroup$IPRanges": null } }, "InstanceQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of DB instances.

", + "base": "

Request would result in user exceeding the allowed number of DB instances.

", "refs": { } }, "InsufficientDBInstanceCapacityFault": { - "base": "

Specified DB instance class is not available in the specified Availability Zone.

", + "base": "

Specified DB instance class is not available in the specified Availability Zone.

", "refs": { } }, "Integer": { "base": null, "refs": { - "DBInstance$AllocatedStorage": "

Specifies the allocated storage size specified in gigabytes.

", - "DBInstance$BackupRetentionPeriod": "

Specifies the number of days for which automatic DB snapshots are retained.

", - "DBSnapshot$AllocatedStorage": "

Specifies the allocated storage size in gigabytes (GB).

", - "DBSnapshot$Port": "

Specifies the port that the database engine was listening on at the time of the snapshot.

", - "DBSnapshot$PercentProgress": "

The percentage of the estimated data that has been transferred.

", - "DownloadDBLogFilePortionMessage$NumberOfLines": "

The number of lines to download.

If the NumberOfLines parameter is specified, then the block of lines returned can be from the beginning or the end of the log file, depending on the value of the Marker parameter.

  • If neither Marker or NumberOfLines are specified, the entire log file is returned.

  • If NumberOfLines is specified and Marker is not specified, then the most recent lines from the end of the log file are returned.

  • If Marker is specified as \"0\", then the specified number of lines from the beginning of the log file are returned.

  • You can download the log file in blocks of lines by specifying the size of the block using the NumberOfLines parameter, and by specifying a value of \"0\" for the Marker parameter in your first request. Include the Marker value returned in the response as the Marker value for the next request, continuing until the AdditionalDataPending response element returns false.

", - "Endpoint$Port": "

Specifies the port that the database engine is listening on.

", - "ReservedDBInstance$Duration": "

The duration of the reservation in seconds.

", - "ReservedDBInstance$DBInstanceCount": "

The number of reserved DB instances.

", - "ReservedDBInstancesOffering$Duration": "

The duration of the offering in seconds.

" + "DBInstance$AllocatedStorage": null, + "DBInstance$BackupRetentionPeriod": null, + "DBSnapshot$AllocatedStorage": null, + "DBSnapshot$Port": null, + "DBSnapshot$PercentProgress": null, + "DownloadDBLogFilePortionMessage$NumberOfLines": null, + "Endpoint$Port": null, + "ReservedDBInstance$Duration": null, + "ReservedDBInstance$DBInstanceCount": null, + "ReservedDBInstancesOffering$Duration": null } }, "IntegerOptional": { "base": null, "refs": { - "CreateDBInstanceMessage$AllocatedStorage": "

The amount of storage (in gigabytes) to be initially allocated for the database instance.

Type: Integer

MySQL

Constraints: Must be an integer from 5 to 3072.

PostgreSQL

Constraints: Must be an integer from 5 to 3072.

Oracle

Constraints: Must be an integer from 10 to 3072.

SQL Server

Constraints: Must be an integer from 200 to 1024 (Standard Edition and Enterprise Edition) or from 20 to 1024 (Express Edition and Web Edition)

", - "CreateDBInstanceMessage$BackupRetentionPeriod": "

The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

Default: 1

Constraints:

  • Must be a value from 0 to 35
  • Cannot be set to 0 if the DB instance is a source to Read Replicas
", - "CreateDBInstanceMessage$Port": "

The port number on which the database accepts connections.

MySQL

Default: 3306

Valid Values: 1150-65535

Type: Integer

PostgreSQL

Default: 5432

Valid Values: 1150-65535

Type: Integer

Oracle

Default: 1521

Valid Values: 1150-65535

SQL Server

Default: 1433

Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 through 49156.

", - "CreateDBInstanceMessage$Iops": "

The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.

Constraints: To use PIOPS, this value must be an integer greater than 1000.

", - "CreateDBInstanceReadReplicaMessage$Port": "

The port number that the DB instance uses for connections.

Default: Inherits from the source DB instance

Valid Values: 1150-65535

", - "CreateDBInstanceReadReplicaMessage$Iops": "

The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.

", - "DBInstance$Iops": "

Specifies the Provisioned IOPS (I/O operations per second) value.

", - "DBSnapshot$Iops": "

Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.

", - "DescribeDBEngineVersionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBInstancesMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBLogFilesMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

", - "DescribeDBParameterGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBParametersMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBSecurityGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBSnapshotsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBSubnetGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeEngineDefaultParametersMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeEventSubscriptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeEventsMessage$Duration": "

The number of minutes to retrieve events for.

Default: 60

", - "DescribeEventsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeOptionGroupOptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeOptionGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeOrderableDBInstanceOptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeReservedDBInstancesMessage$MaxRecords": "

The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeReservedDBInstancesOfferingsMessage$MaxRecords": "

The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "ModifyDBInstanceMessage$AllocatedStorage": "

The new storage capacity of the RDS instance. Changing this setting does not result in an outage and the change is applied during the next maintenance window unless ApplyImmediately is set to true for this request.

MySQL

Default: Uses existing setting

Valid Values: 5-3072

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

Type: Integer

PostgreSQL

Default: Uses existing setting

Valid Values: 5-3072

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

Type: Integer

Oracle

Default: Uses existing setting

Valid Values: 10-3072

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

SQL Server

Cannot be modified.

If you choose to migrate your DB instance from using standard storage to using Provisioned IOPS, or from using Provisioned IOPS to using standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance will be available for use, but may experience performance degradation. While the migration takes place, nightly backups for the instance will be suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.

", - "ModifyDBInstanceMessage$BackupRetentionPeriod": "

The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

Changing this parameter can result in an outage if you change from 0 to a non-zero value or from a non-zero value to 0. These changes are applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request. If you change the parameter from one non-zero value to another non-zero value, the change is asynchronously applied as soon as possible.

Default: Uses existing setting

Constraints:

  • Must be a value from 0 to 35
  • Can be specified for a MySQL Read Replica only if the source is running MySQL 5.6
  • Can be specified for a PostgreSQL Read Replica only if the source is running PostgreSQL 9.3.5
  • Cannot be set to 0 if the DB instance is a source to Read Replicas
", - "ModifyDBInstanceMessage$Iops": "

The new Provisioned IOPS (I/O operations per second) value for the RDS instance. Changing this setting does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

Default: Uses existing setting

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value. If you are migrating from Provisioned IOPS to standard storage, set this value to 0. The DB instance will require a reboot for the change in storage type to take effect.

SQL Server

Setting the IOPS value for the SQL Server database engine is not supported.

Type: Integer

If you choose to migrate your DB instance from using standard storage to using Provisioned IOPS, or from using Provisioned IOPS to using standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance will be available for use, but may experience performance degradation. While the migration takes place, nightly backups for the instance will be suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.

", - "Option$Port": "

If required, the port configured for this option to use.

", - "OptionConfiguration$Port": "

The optional port for the option.

", - "OptionGroupOption$DefaultPort": "

If the option requires a port, specifies the default port for the option.

", - "PendingModifiedValues$AllocatedStorage": "

Contains the new AllocatedStorage size for the DB instance that will be applied or is in progress.

", - "PendingModifiedValues$Port": "

Specifies the pending port for the DB instance.

", - "PendingModifiedValues$BackupRetentionPeriod": "

Specifies the pending number of days for which automated backups are retained.

", - "PendingModifiedValues$Iops": "

Specifies the new Provisioned IOPS value for the DB instance that will be applied or is being applied.

", - "PromoteReadReplicaMessage$BackupRetentionPeriod": "

The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

Default: 1

Constraints:

  • Must be a value from 0 to 8
", - "PurchaseReservedDBInstancesOfferingMessage$DBInstanceCount": "

The number of instances to reserve.

Default: 1

", - "RestoreDBInstanceFromDBSnapshotMessage$Port": "

The port number on which the database accepts connections.

Default: The same port as the original DB instance

Constraints: Value must be 1150-65535

", - "RestoreDBInstanceFromDBSnapshotMessage$Iops": "

Specifies the amount of provisioned IOPS for the DB instance, expressed in I/O operations per second. If this parameter is not specified, the IOPS value will be taken from the backup. If this parameter is set to 0, the new instance will be converted to a non-PIOPS instance, which will take additional time, though your DB instance will be available for connections before the conversion starts.

Constraints: Must be an integer greater than 1000.

SQL Server

Setting the IOPS value for the SQL Server database engine is not supported.

", - "RestoreDBInstanceToPointInTimeMessage$Port": "

The port number on which the database accepts connections.

Constraints: Value must be 1150-65535

Default: The same port as the original DB instance.

", - "RestoreDBInstanceToPointInTimeMessage$Iops": "

The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.

Constraints: Must be an integer greater than 1000.

SQL Server

Setting the IOPS value for the SQL Server database engine is not supported.

" + "CreateDBInstanceMessage$AllocatedStorage": null, + "CreateDBInstanceMessage$BackupRetentionPeriod": null, + "CreateDBInstanceMessage$Port": null, + "CreateDBInstanceMessage$Iops": null, + "CreateDBInstanceReadReplicaMessage$Port": null, + "CreateDBInstanceReadReplicaMessage$Iops": null, + "DBInstance$Iops": null, + "DBSnapshot$Iops": null, + "DescribeDBEngineVersionsMessage$MaxRecords": null, + "DescribeDBInstancesMessage$MaxRecords": null, + "DescribeDBLogFilesMessage$MaxRecords": null, + "DescribeDBParameterGroupsMessage$MaxRecords": null, + "DescribeDBParametersMessage$MaxRecords": null, + "DescribeDBSecurityGroupsMessage$MaxRecords": null, + "DescribeDBSnapshotsMessage$MaxRecords": null, + "DescribeDBSubnetGroupsMessage$MaxRecords": null, + "DescribeEngineDefaultParametersMessage$MaxRecords": null, + "DescribeEventSubscriptionsMessage$MaxRecords": null, + "DescribeEventsMessage$Duration": null, + "DescribeEventsMessage$MaxRecords": null, + "DescribeOptionGroupOptionsMessage$MaxRecords": null, + "DescribeOptionGroupsMessage$MaxRecords": null, + "DescribeOrderableDBInstanceOptionsMessage$MaxRecords": null, + "DescribeReservedDBInstancesMessage$MaxRecords": null, + "DescribeReservedDBInstancesOfferingsMessage$MaxRecords": null, + "ModifyDBInstanceMessage$AllocatedStorage": null, + "ModifyDBInstanceMessage$BackupRetentionPeriod": null, + "ModifyDBInstanceMessage$Iops": null, + "Option$Port": null, + "OptionConfiguration$Port": null, + "OptionGroupOption$DefaultPort": null, + "PendingModifiedValues$AllocatedStorage": null, + "PendingModifiedValues$Port": null, + "PendingModifiedValues$BackupRetentionPeriod": null, + "PendingModifiedValues$Iops": null, + "PromoteReadReplicaMessage$BackupRetentionPeriod": null, + "PurchaseReservedDBInstancesOfferingMessage$DBInstanceCount": null, + "RestoreDBInstanceFromDBSnapshotMessage$Port": null, + "RestoreDBInstanceFromDBSnapshotMessage$Iops": null, + "RestoreDBInstanceToPointInTimeMessage$Port": null, + "RestoreDBInstanceToPointInTimeMessage$Iops": null } }, "InvalidDBInstanceStateFault": { @@ -962,27 +962,27 @@ } }, "InvalidDBParameterGroupStateFault": { - "base": "

The DB parameter group cannot be deleted because it is in use.

", + "base": "

The DB parameter group cannot be deleted because it is in use.

", "refs": { } }, "InvalidDBSecurityGroupStateFault": { - "base": "

The state of the DB security group does not allow deletion.

", + "base": "

The state of the DB security group does not allow deletion.

", "refs": { } }, "InvalidDBSnapshotStateFault": { - "base": "

The state of the DB snapshot does not allow deletion.

", + "base": "

The state of the DB snapshot does not allow deletion.

", "refs": { } }, "InvalidDBSubnetGroupFault": { - "base": "

Indicates the DBSubnetGroup does not belong to the same VPC as that of an existing cross region read replica of the same source instance.

", + "base": "

Indicates the DBSubnetGroup does not belong to the same VPC as that of an existing cross region read replica of the same source instance.

", "refs": { } }, "InvalidDBSubnetGroupStateFault": { - "base": "

The DB subnet group cannot be deleted because it is in use.

", + "base": "

The DB subnet group cannot be deleted because it is in use.

", "refs": { } }, @@ -1002,42 +1002,42 @@ } }, "InvalidRestoreFault": { - "base": "

Cannot restore from vpc backup to non-vpc DB instance.

", + "base": "

Cannot restore from vpc backup to non-vpc DB instance.

", "refs": { } }, "InvalidSubnet": { - "base": "

The requested subnet is invalid, or multiple subnets were requested that are not all in a common VPC.

", + "base": "

The requested subnet is invalid, or multiple subnets were requested that are not all in a common VPC.

", "refs": { } }, "InvalidVPCNetworkStateFault": { - "base": "

DB subnet group does not cover all Availability Zones after it is created because users' change.

", + "base": "

DB subnet group does not cover all Availability Zones after it is created because users' change.

", "refs": { } }, "KeyList": { "base": null, "refs": { - "RemoveTagsFromResourceMessage$TagKeys": "

The tag key (name) of the tag to be removed.

" + "RemoveTagsFromResourceMessage$TagKeys": null } }, "ListTagsForResourceMessage": { - "base": "

", + "base": null, "refs": { } }, "Long": { "base": null, "refs": { - "DescribeDBLogFilesDetails$LastWritten": "

A POSIX timestamp when the last log entry was written.

", - "DescribeDBLogFilesDetails$Size": "

The size, in bytes, of the log file for the specified DB instance.

", - "DescribeDBLogFilesMessage$FileLastWritten": "

Filters the available log files for files written since the specified date, in POSIX timestamp format.

", - "DescribeDBLogFilesMessage$FileSize": "

Filters the available log files for files larger than the specified size.

" + "DescribeDBLogFilesDetails$LastWritten": null, + "DescribeDBLogFilesDetails$Size": null, + "DescribeDBLogFilesMessage$FileLastWritten": null, + "DescribeDBLogFilesMessage$FileSize": null } }, "ModifyDBInstanceMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1047,12 +1047,12 @@ } }, "ModifyDBParameterGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "ModifyDBSubnetGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1062,7 +1062,7 @@ } }, "ModifyEventSubscriptionMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1072,7 +1072,7 @@ } }, "ModifyOptionGroupMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1082,13 +1082,13 @@ } }, "Option": { - "base": "

Option details.

", + "base": null, "refs": { "OptionsList$member": null } }, "OptionConfiguration": { - "base": "

A list of all available options

", + "base": null, "refs": { "OptionConfigurationList$member": null } @@ -1096,11 +1096,11 @@ "OptionConfigurationList": { "base": null, "refs": { - "ModifyOptionGroupMessage$OptionsToInclude": "

Options in this list are added to the option group or, if already present, the specified configuration is used to update the existing configuration.

" + "ModifyOptionGroupMessage$OptionsToInclude": null } }, "OptionGroup": { - "base": "

", + "base": null, "refs": { "CopyOptionGroupResult$OptionGroup": null, "CreateOptionGroupResult$OptionGroup": null, @@ -1109,12 +1109,12 @@ } }, "OptionGroupAlreadyExistsFault": { - "base": "

The option group you are trying to create already exists.

", + "base": "

The option group you are trying to create already exists.

", "refs": { } }, "OptionGroupMembership": { - "base": "

Provides information on the option groups the DB instance is a member of.

", + "base": null, "refs": { "OptionGroupMembershipList$member": null } @@ -1122,22 +1122,22 @@ "OptionGroupMembershipList": { "base": null, "refs": { - "DBInstance$OptionGroupMemberships": "

Provides the list of option group memberships for this DB instance.

" + "DBInstance$OptionGroupMemberships": null } }, "OptionGroupNotFoundFault": { - "base": "

The specified option group could not be found.

", + "base": "

The specified option group could not be found.

", "refs": { } }, "OptionGroupOption": { - "base": "

Available option.

", + "base": null, "refs": { "OptionGroupOptionsList$member": null } }, "OptionGroupOptionSetting": { - "base": "

Option group option settings are used to display settings available for each option with their default values and other information. These values are used with the DescribeOptionGroupOptions action.

", + "base": null, "refs": { "OptionGroupOptionSettingsList$member": null } @@ -1145,44 +1145,44 @@ "OptionGroupOptionSettingsList": { "base": null, "refs": { - "OptionGroupOption$OptionGroupOptionSettings": "

Specifies the option settings that are available (and the default value) for each option in an option group.

" + "OptionGroupOption$OptionGroupOptionSettings": null } }, "OptionGroupOptionsList": { - "base": "

List of available option group options.

", + "base": null, "refs": { "OptionGroupOptionsMessage$OptionGroupOptions": null } }, "OptionGroupOptionsMessage": { - "base": "

", + "base": null, "refs": { } }, "OptionGroupQuotaExceededFault": { - "base": "

The quota of 20 option groups was exceeded for this AWS account.

", + "base": "

The quota of 20 option groups was exceeded for this AWS account.

", "refs": { } }, "OptionGroups": { - "base": "

List of option groups.

", + "base": null, "refs": { } }, "OptionGroupsList": { "base": null, "refs": { - "OptionGroups$OptionGroupsList": "

List of option groups.

" + "OptionGroups$OptionGroupsList": null } }, "OptionNamesList": { "base": null, "refs": { - "ModifyOptionGroupMessage$OptionsToRemove": "

Options in this list are removed from the option group.

" + "ModifyOptionGroupMessage$OptionsToRemove": null } }, "OptionSetting": { - "base": "

Option settings are the actual settings being applied or configured for that option. It is used when you modify an option group or describe option groups. For example, the NATIVE_NETWORK_ENCRYPTION option has a setting called SQLNET.ENCRYPTION_SERVER that can have several different values.

", + "base": null, "refs": { "OptionSettingConfigurationList$member": null, "OptionSettingsList$member": null @@ -1191,29 +1191,29 @@ "OptionSettingConfigurationList": { "base": null, "refs": { - "Option$OptionSettings": "

The option settings for this option.

" + "Option$OptionSettings": null } }, "OptionSettingsList": { "base": null, "refs": { - "OptionConfiguration$OptionSettings": "

The option settings to include in an option group.

" + "OptionConfiguration$OptionSettings": null } }, "OptionsDependedOn": { "base": null, "refs": { - "OptionGroupOption$OptionsDependedOn": "

List of all options that are prerequisites for this option.

" + "OptionGroupOption$OptionsDependedOn": null } }, "OptionsList": { "base": null, "refs": { - "OptionGroup$Options": "

Indicates what options are available in the option group.

" + "OptionGroup$Options": null } }, "OrderableDBInstanceOption": { - "base": "

Contains a list of available options for a DB instance

This data type is used as a response element in the DescribeOrderableDBInstanceOptions action.

", + "base": null, "refs": { "OrderableDBInstanceOptionsList$member": null } @@ -1221,16 +1221,16 @@ "OrderableDBInstanceOptionsList": { "base": null, "refs": { - "OrderableDBInstanceOptionsMessage$OrderableDBInstanceOptions": "

An OrderableDBInstanceOption structure containing information about orderable options for the DB instance.

" + "OrderableDBInstanceOptionsMessage$OrderableDBInstanceOptions": null } }, "OrderableDBInstanceOptionsMessage": { - "base": "

Contains the result of a successful invocation of the DescribeOrderableDBInstanceOptions action.

", + "base": null, "refs": { } }, "Parameter": { - "base": "

This data type is used as a request parameter in the ModifyDBParameterGroup and ResetDBParameterGroup actions.

This data type is used as a response element in the DescribeEngineDefaultParameters and DescribeDBParameters actions.

", + "base": null, "refs": { "ParametersList$member": null } @@ -1238,16 +1238,16 @@ "ParametersList": { "base": null, "refs": { - "DBParameterGroupDetails$Parameters": "

A list of Parameter values.

", - "EngineDefaults$Parameters": "

Contains a list of engine default parameters.

", - "ModifyDBParameterGroupMessage$Parameters": "

An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters may be modified in a single request.

Valid Values (for the application method): immediate | pending-reboot

You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when you reboot the DB instance without failover. ", - "ResetDBParameterGroupMessage$Parameters": "

An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters may be modified in a single request.

MySQL

Valid Values (for Apply method): immediate | pending-reboot

You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when DB instance reboots.

Oracle

Valid Values (for Apply method): pending-reboot

" + "DBParameterGroupDetails$Parameters": null, + "EngineDefaults$Parameters": null, + "ModifyDBParameterGroupMessage$Parameters": null, + "ResetDBParameterGroupMessage$Parameters": null } }, "PendingModifiedValues": { - "base": "

This data type is used as a response element in the ModifyDBInstance action.

", + "base": null, "refs": { - "DBInstance$PendingModifiedValues": "

Specifies that changes to the DB instance are pending. This element is only included when changes are pending. Specific changes are identified by subelements.

" + "DBInstance$PendingModifiedValues": null } }, "PointInTimeRestoreNotEnabledFault": { @@ -1256,7 +1256,7 @@ } }, "PromoteReadReplicaMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1266,12 +1266,12 @@ } }, "ProvisionedIopsNotAvailableInAZFault": { - "base": "

Provisioned IOPS not available in the specified Availability Zone.

", + "base": "

Provisioned IOPS not available in the specified Availability Zone.

", "refs": { } }, "PurchaseReservedDBInstancesOfferingMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1283,11 +1283,11 @@ "ReadReplicaDBInstanceIdentifierList": { "base": null, "refs": { - "DBInstance$ReadReplicaDBInstanceIdentifiers": "

Contains one or more identifiers of the Read Replicas associated with this DB instance.

" + "DBInstance$ReadReplicaDBInstanceIdentifiers": null } }, "RebootDBInstanceMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1297,7 +1297,7 @@ } }, "RecurringCharge": { - "base": "

This data type is used as a response element in the DescribeReservedDBInstances and DescribeReservedDBInstancesOfferings actions.

", + "base": null, "refs": { "RecurringChargeList$member": null } @@ -1305,12 +1305,12 @@ "RecurringChargeList": { "base": null, "refs": { - "ReservedDBInstance$RecurringCharges": "

The recurring price charged to run this reserved DB instance.

", - "ReservedDBInstancesOffering$RecurringCharges": "

The recurring price charged to run this reserved DB instance.

" + "ReservedDBInstance$RecurringCharges": null, + "ReservedDBInstancesOffering$RecurringCharges": null } }, "RemoveSourceIdentifierFromSubscriptionMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1320,45 +1320,45 @@ } }, "RemoveTagsFromResourceMessage": { - "base": "

", + "base": null, "refs": { } }, "ReservedDBInstance": { - "base": "

This data type is used as a response element in the DescribeReservedDBInstances and PurchaseReservedDBInstancesOffering actions.

", + "base": null, "refs": { "PurchaseReservedDBInstancesOfferingResult$ReservedDBInstance": null, "ReservedDBInstanceList$member": null } }, "ReservedDBInstanceAlreadyExistsFault": { - "base": "

User already has a reservation with the given identifier.

", + "base": "

User already has a reservation with the given identifier.

", "refs": { } }, "ReservedDBInstanceList": { "base": null, "refs": { - "ReservedDBInstanceMessage$ReservedDBInstances": "

A list of reserved DB instances.

" + "ReservedDBInstanceMessage$ReservedDBInstances": null } }, "ReservedDBInstanceMessage": { - "base": "

Contains the result of a successful invocation of the DescribeReservedDBInstances action.

", + "base": null, "refs": { } }, "ReservedDBInstanceNotFoundFault": { - "base": "

The specified reserved DB Instance not found.

", + "base": "

The specified reserved DB Instance not found.

", "refs": { } }, "ReservedDBInstanceQuotaExceededFault": { - "base": "

Request would exceed the user's DB Instance quota.

", + "base": "

Request would exceed the user's DB Instance quota.

", "refs": { } }, "ReservedDBInstancesOffering": { - "base": "

This data type is used as a response element in the DescribeReservedDBInstancesOfferings action.

", + "base": null, "refs": { "ReservedDBInstancesOfferingList$member": null } @@ -1366,26 +1366,26 @@ "ReservedDBInstancesOfferingList": { "base": null, "refs": { - "ReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferings": "

A list of reserved DB instance offerings.

" + "ReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferings": null } }, "ReservedDBInstancesOfferingMessage": { - "base": "

Contains the result of a successful invocation of the DescribeReservedDBInstancesOfferings action.

", + "base": null, "refs": { } }, "ReservedDBInstancesOfferingNotFoundFault": { - "base": "

Specified offering does not exist.

", + "base": "

Specified offering does not exist.

", "refs": { } }, "ResetDBParameterGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "RestoreDBInstanceFromDBSnapshotMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1395,7 +1395,7 @@ } }, "RestoreDBInstanceToPointInTimeMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1405,7 +1405,7 @@ } }, "RevokeDBSecurityGroupIngressMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -1430,15 +1430,15 @@ } }, "SnapshotQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed number of DB snapshots.

", + "base": "

Request would result in user exceeding the allowed number of DB snapshots.

", "refs": { } }, "SourceIdsList": { "base": null, "refs": { - "CreateEventSubscriptionMessage$SourceIds": "

The list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it cannot end with a hyphen or contain two consecutive hyphens.

Constraints:

  • If SourceIds are supplied, SourceType must also be provided.
  • If the source type is a DB instance, then a DBInstanceIdentifier must be supplied.
  • If the source type is a DB security group, a DBSecurityGroupName must be supplied.
  • If the source type is a DB parameter group, a DBParameterGroupName must be supplied.
  • If the source type is a DB snapshot, a DBSnapshotIdentifier must be supplied.
", - "EventSubscription$SourceIdsList": "

A list of source IDs for the RDS event notification subscription.

" + "CreateEventSubscriptionMessage$SourceIds": null, + "EventSubscription$SourceIdsList": null } }, "SourceNotFoundFault": { @@ -1449,12 +1449,12 @@ "SourceType": { "base": null, "refs": { - "DescribeEventsMessage$SourceType": "

The event source to retrieve events for. If no value is specified, all events are returned.

", - "Event$SourceType": "

Specifies the source type for this event.

" + "DescribeEventsMessage$SourceType": null, + "Event$SourceType": null } }, "StorageQuotaExceededFault": { - "base": "

Request would result in user exceeding the allowed amount of storage available across all DB instances.

", + "base": "

Request would result in user exceeding the allowed amount of storage available across all DB instances.

", "refs": { } }, @@ -1466,378 +1466,378 @@ "String": { "base": null, "refs": { - "AddSourceIdentifierToSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription you want to add a source identifier to.

", - "AddSourceIdentifierToSubscriptionMessage$SourceIdentifier": "

The identifier of the event source to be added. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it cannot end with a hyphen or contain two consecutive hyphens.

Constraints:

  • If the source type is a DB instance, then a DBInstanceIdentifier must be supplied.
  • If the source type is a DB security group, a DBSecurityGroupName must be supplied.
  • If the source type is a DB parameter group, a DBParameterGroupName must be supplied.
  • If the source type is a DB snapshot, a DBSnapshotIdentifier must be supplied.
", - "AddTagsToResourceMessage$ResourceName": "

The Amazon RDS resource the tags will be added to. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

", - "AuthorizeDBSecurityGroupIngressMessage$DBSecurityGroupName": "

The name of the DB security group to add authorization to.

", - "AuthorizeDBSecurityGroupIngressMessage$CIDRIP": "

The IP range to authorize.

", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupName": "

Name of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupId": "

Id of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": "

AWS Account Number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "AvailabilityZone$Name": "

The name of the availability zone.

", - "CharacterSet$CharacterSetName": "

The name of the character set.

", - "CharacterSet$CharacterSetDescription": "

The description of the character set.

", - "CopyDBParameterGroupMessage$SourceDBParameterGroupIdentifier": "

The identifier or ARN for the source DB parameter group.

Constraints:

  • Must specify a valid DB parameter group.
  • If the source DB parameter group is in the same region as the copy, specify a valid DB parameter group identifier, for example my-db-param-group, or a valid ARN.
  • If the source DB parameter group is in a different region than the copy, specify a valid DB parameter group ARN, for example arn:aws:rds:us-west-2:123456789012:pg:special-parameters.
", - "CopyDBParameterGroupMessage$TargetDBParameterGroupIdentifier": "

The identifier for the copied DB parameter group.

Constraints:

  • Cannot be null, empty, or blank
  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-db-parameter-group

", - "CopyDBParameterGroupMessage$TargetDBParameterGroupDescription": "

A description for the copied DB parameter group.

", - "CopyDBSnapshotMessage$SourceDBSnapshotIdentifier": "

The identifier for the source DB snapshot.

Constraints:

  • Must specify a valid system snapshot in the \"available\" state.
  • If the source snapshot is in the same region as the copy, specify a valid DB snapshot identifier.
  • If the source snapshot is in a different region than the copy, specify a valid DB snapshot ARN. For more information, go to Copying a DB Snapshot.

Example: rds:mydb-2012-04-02-00-01

Example: arn:aws:rds:rr-regn-1:123456789012:snapshot:mysql-instance1-snapshot-20130805

", - "CopyDBSnapshotMessage$TargetDBSnapshotIdentifier": "

The identifier for the copied snapshot.

Constraints:

  • Cannot be null, empty, or blank
  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-db-snapshot

", - "CopyOptionGroupMessage$SourceOptionGroupIdentifier": "

The identifier or ARN for the source option group.

Constraints:

  • Must specify a valid option group.
  • If the source option group is in the same region as the copy, specify a valid option group identifier, for example my-option-group, or a valid ARN.
  • If the source option group is in a different region than the copy, specify a valid option group ARN, for example arn:aws:rds:us-west-2:123456789012:og:special-options.
", - "CopyOptionGroupMessage$TargetOptionGroupIdentifier": "

The identifier for the copied option group.

Constraints:

  • Cannot be null, empty, or blank
  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-option-group

", - "CopyOptionGroupMessage$TargetOptionGroupDescription": "

The description for the copied option group.

", - "CreateDBInstanceMessage$DBName": "

The meaning of this parameter differs according to the database engine you use.

Type: String

MySQL

The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance.

Constraints:

  • Must contain 1 to 64 alphanumeric characters
  • Cannot be a word reserved by the specified database engine

PostgreSQL

The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance.

Constraints:

  • Must contain 1 to 63 alphanumeric characters
  • Must begin with a letter or an underscore. Subsequent characters can be letters, underscores, or digits (0-9).
  • Cannot be a word reserved by the specified database engine

Oracle

The Oracle System ID (SID) of the created DB instance.

Default: ORCL

Constraints:

  • Cannot be longer than 8 characters

SQL Server

Not applicable. Must be null.

", - "CreateDBInstanceMessage$DBInstanceIdentifier": "

The DB instance identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 for SQL Server).
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: mydbinstance

", - "CreateDBInstanceMessage$DBInstanceClass": "

The compute and memory capacity of the DB instance.

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium

", - "CreateDBInstanceMessage$Engine": "

The name of the database engine to be used for this instance.

Valid Values: MySQL | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web | postgres

Not every database engine is available for every AWS region.

", - "CreateDBInstanceMessage$MasterUsername": "

The name of master user for the client DB instance.

MySQL

Constraints:

  • Must be 1 to 16 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word for the chosen database engine.

Type: String

Oracle

Constraints:

  • Must be 1 to 30 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word for the chosen database engine.

SQL Server

Constraints:

  • Must be 1 to 128 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word for the chosen database engine.
", - "CreateDBInstanceMessage$MasterUserPassword": "

The password for the master database user. Can be any printable ASCII character except \"/\", \"\"\", or \"@\".

Type: String

MySQL

Constraints: Must contain from 8 to 41 characters.

Oracle

Constraints: Must contain from 8 to 30 characters.

SQL Server

Constraints: Must contain from 8 to 128 characters.

", - "CreateDBInstanceMessage$AvailabilityZone": "

The EC2 Availability Zone that the database instance will be created in. For information on regions and Availability Zones, see Regions and Availability Zones.

Default: A random, system-chosen Availability Zone in the endpoint's region.

Example: us-east-1d

Constraint: The AvailabilityZone parameter cannot be specified if the MultiAZ parameter is set to true. The specified Availability Zone must be in the same region as the current endpoint.

", - "CreateDBInstanceMessage$DBSubnetGroupName": "

A DB subnet group to associate with this DB instance.

If there is no DB subnet group, then it is a non-VPC DB instance.

", - "CreateDBInstanceMessage$PreferredMaintenanceWindow": "

The weekly time range (in UTC) during which system maintenance can occur. For more information, see DB Instance Maintenance.

Format: ddd:hh24:mi-ddd:hh24:mi

Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute window.

", - "CreateDBInstanceMessage$DBParameterGroupName": "

The name of the DB parameter group to associate with this DB instance. If this argument is omitted, the default DBParameterGroup for the specified engine will be used.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "CreateDBInstanceMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter. For more information, see DB Instance Backups.

Default: A 30-minute window selected at random from an 8-hour block of time per region. See the Amazon RDS User Guide for the time blocks for each region from which the default backup windows are assigned.

Constraints: Must be in the format hh24:mi-hh24:mi. Times should be Universal Time Coordinated (UTC). Must not conflict with the preferred maintenance window. Must be at least 30 minutes.

", - "CreateDBInstanceMessage$EngineVersion": "

The version number of the database engine to use.

The following are the database engines and major and minor versions that are available with Amazon RDS. Not every database engine is available for every AWS region.

MySQL

  • Version 5.1: 5.1.45 | 5.1.49 | 5.1.50 | 5.1.57 | 5.1.61 | 5.1.62 | 5.1.63 | 5.1.69 | 5.1.71 | 5.1.73
  • Version 5.5: 5.5.12 | 5.5.20 | 5.5.23 | 5.5.25a | 5.5.27 | 5.5.31 | 5.5.33 | 5.5.37 | 5.5.38 | 5.5.8
  • Version 5.6: 5.6.12 | 5.6.13 | 5.6.17 | 5.6.19 | 5.6.21

Oracle Database Enterprise Edition (oracle-ee)

  • Version 11.2: 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 | 11.2.0.3.v1 | 11.2.0.4.v1

Oracle Database Standard Edition (oracle-se)

  • Version 11.2: 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 | 11.2.0.3.v1 | 11.2.0.4.v1

Oracle Database Standard Edition One (oracle-se1)

  • Version 11.2: 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 | 11.2.0.3.v1 | 11.2.0.4.v1

PostgreSQL

  • Version 9.3: 9.3.1 | 9.3.2 | 9.3.3

Microsoft SQL Server Enterprise Edition (sqlserver-ee)

  • Version 10.5: 10.50.2789.0.v1
  • Version 11.0: 11.00.2100.60.v1

Microsoft SQL Server Express Edition (sqlserver-ex)

  • Version 10.5: 10.50.2789.0.v1
  • Version 11.0: 11.00.2100.60.v1

Microsoft SQL Server Standard Edition (sqlserver-se)

  • Version 10.5: 10.50.2789.0.v1
  • Version 11.0: 11.00.2100.60.v1

Microsoft SQL Server Web Edition (sqlserver-web)

  • Version 10.5: 10.50.2789.0.v1
  • Version 11.0: 11.00.2100.60.v1
", - "CreateDBInstanceMessage$LicenseModel": "

License model information for this DB instance.

Valid values: license-included | bring-your-own-license | general-public-license

", - "CreateDBInstanceMessage$OptionGroupName": "

Indicates that the DB instance should be associated with the specified option group.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", - "CreateDBInstanceMessage$CharacterSetName": "

For supported engines, indicates that the DB instance should be associated with the specified CharacterSet.

", - "CreateDBInstanceMessage$StorageType": "

Specifies storage type to be associated with the DB Instance.

Valid values: standard | gp2 | io1

If you specify io1, you must also include a value for the Iops parameter.

Default: io1 if the Iops parameter is specified; otherwise standard

", - "CreateDBInstanceMessage$TdeCredentialArn": "

The ARN from the Key Store with which to associate the instance for TDE encryption.

", - "CreateDBInstanceMessage$TdeCredentialPassword": "

The password for the given ARN from the Key Store in order to access the device.

", - "CreateDBInstanceReadReplicaMessage$DBInstanceIdentifier": "

The DB instance identifier of the Read Replica. This is the unique key that identifies a DB instance. This parameter is stored as a lowercase string.

", - "CreateDBInstanceReadReplicaMessage$SourceDBInstanceIdentifier": "

The identifier of the DB instance that will act as the source for the Read Replica. Each DB instance can have up to five Read Replicas.

Constraints:

  • Must be the identifier of an existing DB instance.
  • Can specify a DB instance that is a MySQL Read Replica only if the source is running MySQL 5.6.
  • Can specify a DB instance that is a PostgreSQL Read Replica only if the source is running PostgreSQL 9.3.5.
  • The specified DB instance must have automatic backups enabled, its backup retention period must be greater than 0.
  • If the source DB instance is in the same region as the Read Replica, specify a valid DB instance identifier.
  • If the source DB instance is in a different region than the Read Replica, specify a valid DB instance ARN. For more information, go to Constructing a Amazon RDS Amazon Resource Name (ARN).
", - "CreateDBInstanceReadReplicaMessage$DBInstanceClass": "

The compute and memory capacity of the Read Replica.

Valid Values: db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium

Default: Inherits from the source DB instance.

", - "CreateDBInstanceReadReplicaMessage$AvailabilityZone": "

The Amazon EC2 Availability Zone that the Read Replica will be created in.

Default: A random, system-chosen Availability Zone in the endpoint's region.

Example: us-east-1d

", - "CreateDBInstanceReadReplicaMessage$OptionGroupName": "

The option group the DB instance will be associated with. If omitted, the default option group for the engine specified will be used.

", - "CreateDBInstanceReadReplicaMessage$DBSubnetGroupName": "

Specifies a DB subnet group for the DB instance. The new DB instance will be created in the VPC associated with the DB subnet group. If no DB subnet group is specified, then the new DB instance is not created in a VPC.

Constraints:

  • Can only be specified if the source DB instance identifier specifies a DB instance in another region.
  • The specified DB subnet group must be in the same region in which the operation is running.
  • All Read Replicas in one region that are created from the same source DB instance must either:
    • Specify DB subnet groups from the same VPC. All these Read Replicas will be created in the same VPC.
    • Not specify a DB subnet group. All these Read Replicas will be created outside of any VPC.
", - "CreateDBInstanceReadReplicaMessage$StorageType": "

Specifies storage type to be associated with the DB Instance Read Replica.

Valid values: standard | gp2 | io1

If you specify io1, you must also include a value for the Iops parameter.

Default: io1 if the Iops parameter is specified; otherwise standard

", - "CreateDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB parameter group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
This value is stored as a lower-case string.", - "CreateDBParameterGroupMessage$DBParameterGroupFamily": "

The DB parameter group family name. A DB parameter group can be associated with one and only one DB parameter group family, and can be applied only to a DB instance running a database engine and engine version compatible with that DB parameter group family.

", - "CreateDBParameterGroupMessage$Description": "

The description for the DB parameter group.

", - "CreateDBSecurityGroupMessage$DBSecurityGroupName": "

The name for the DB security group. This value is stored as a lowercase string.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
  • Must not be \"Default\"
  • May not contain spaces

Example: mysecuritygroup

", - "CreateDBSecurityGroupMessage$DBSecurityGroupDescription": "

The description for the DB security group.

", - "CreateDBSnapshotMessage$DBSnapshotIdentifier": "

The identifier for the DB snapshot.

Constraints:

  • Cannot be null, empty, or blank
  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

", - "CreateDBSnapshotMessage$DBInstanceIdentifier": "

The DB instance identifier. This is the unique key that identifies a DB instance.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "CreateDBSubnetGroupMessage$DBSubnetGroupName": "

The name for the DB subnet group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be \"Default\".

Example: mySubnetgroup

", - "CreateDBSubnetGroupMessage$DBSubnetGroupDescription": "

The description for the DB subnet group.

", - "CreateEventSubscriptionMessage$SubscriptionName": "

The name of the subscription.

Constraints: The name must be less than 255 characters.

", - "CreateEventSubscriptionMessage$SnsTopicArn": "

The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

", - "CreateEventSubscriptionMessage$SourceType": "

The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

", - "CreateOptionGroupMessage$OptionGroupName": "

Specifies the name of the option group to be created.

Constraints:

  • Must be 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: myoptiongroup

", - "CreateOptionGroupMessage$EngineName": "

Specifies the name of the engine that this option group should be associated with.

", - "CreateOptionGroupMessage$MajorEngineVersion": "

Specifies the major version of the engine that this option group should be associated with.

", - "CreateOptionGroupMessage$OptionGroupDescription": "

The description of the option group.

", - "DBEngineVersion$Engine": "

The name of the database engine.

", - "DBEngineVersion$EngineVersion": "

The version number of the database engine.

", - "DBEngineVersion$DBParameterGroupFamily": "

The name of the DB parameter group family for the database engine.

", - "DBEngineVersion$DBEngineDescription": "

The description of the database engine.

", - "DBEngineVersion$DBEngineVersionDescription": "

The description of the database engine version.

", - "DBEngineVersionMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DBInstance$DBInstanceIdentifier": "

Contains a user-supplied database identifier. This is the unique key that identifies a DB instance.

", - "DBInstance$DBInstanceClass": "

Contains the name of the compute and memory capacity class of the DB instance.

", - "DBInstance$Engine": "

Provides the name of the database engine to be used for this DB instance.

", - "DBInstance$DBInstanceStatus": "

Specifies the current state of this database.

", - "DBInstance$MasterUsername": "

Contains the master username for the DB instance.

", - "DBInstance$DBName": "

The meaning of this parameter differs according to the database engine you use. For example, this value returns either MySQL or PostgreSQL information when returning values from CreateDBInstanceReadReplica since Read Replicas are only supported for MySQL and PostgreSQL.

MySQL, SQL Server, PostgreSQL

Contains the name of the initial database of this instance that was provided at create time, if one was specified when the DB instance was created. This same name is returned for the life of the DB instance.

Type: String

Oracle

Contains the Oracle System ID (SID) of the created DB instance. Not shown when the returned parameters do not apply to an Oracle DB instance.

", - "DBInstance$PreferredBackupWindow": "

Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.

", - "DBInstance$AvailabilityZone": "

Specifies the name of the Availability Zone the DB instance is located in.

", - "DBInstance$PreferredMaintenanceWindow": "

Specifies the weekly time range (in UTC) during which system maintenance can occur.

", - "DBInstance$EngineVersion": "

Indicates the database engine version.

", - "DBInstance$ReadReplicaSourceDBInstanceIdentifier": "

Contains the identifier of the source DB instance if this DB instance is a Read Replica.

", - "DBInstance$LicenseModel": "

License model information for this DB instance.

", - "DBInstance$CharacterSetName": "

If present, specifies the name of the character set that this instance is associated with.

", - "DBInstance$SecondaryAvailabilityZone": "

If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.

", - "DBInstance$StorageType": "

Specifies storage type associated with DB Instance.

", - "DBInstance$TdeCredentialArn": "

The ARN from the Key Store with which the instance is associated for TDE encryption.

", - "DBInstanceMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "DBInstanceStatusInfo$StatusType": "

This value is currently \"read replication.\"

", - "DBInstanceStatusInfo$Status": "

Status of the DB instance. For a StatusType of read replica, the values can be replicating, error, stopped, or terminated.

", - "DBInstanceStatusInfo$Message": "

Details of the error if there is an error for the instance. If the instance is not in an error state, this value is blank.

", - "DBParameterGroup$DBParameterGroupName": "

Provides the name of the DB parameter group.

", - "DBParameterGroup$DBParameterGroupFamily": "

Provides the name of the DB parameter group family that this DB parameter group is compatible with.

", - "DBParameterGroup$Description": "

Provides the customer-specified description for this DB parameter group.

", - "DBParameterGroupDetails$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DBParameterGroupNameMessage$DBParameterGroupName": "

The name of the DB parameter group.

", - "DBParameterGroupStatus$DBParameterGroupName": "

The name of the DP parameter group.

", - "DBParameterGroupStatus$ParameterApplyStatus": "

The status of parameter updates.

", - "DBParameterGroupsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DBSecurityGroup$OwnerId": "

Provides the AWS ID of the owner of a specific DB security group.

", - "DBSecurityGroup$DBSecurityGroupName": "

Specifies the name of the DB security group.

", - "DBSecurityGroup$DBSecurityGroupDescription": "

Provides the description of the DB security group.

", - "DBSecurityGroup$VpcId": "

Provides the VpcId of the DB security group.

", - "DBSecurityGroupMembership$DBSecurityGroupName": "

The name of the DB security group.

", - "DBSecurityGroupMembership$Status": "

The status of the DB security group.

", - "DBSecurityGroupMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", + "AddSourceIdentifierToSubscriptionMessage$SubscriptionName": null, + "AddSourceIdentifierToSubscriptionMessage$SourceIdentifier": null, + "AddTagsToResourceMessage$ResourceName": null, + "AuthorizeDBSecurityGroupIngressMessage$DBSecurityGroupName": null, + "AuthorizeDBSecurityGroupIngressMessage$CIDRIP": null, + "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupName": null, + "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupId": null, + "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": null, + "AvailabilityZone$Name": null, + "CharacterSet$CharacterSetName": null, + "CharacterSet$CharacterSetDescription": null, + "CopyDBParameterGroupMessage$SourceDBParameterGroupIdentifier": null, + "CopyDBParameterGroupMessage$TargetDBParameterGroupIdentifier": null, + "CopyDBParameterGroupMessage$TargetDBParameterGroupDescription": null, + "CopyDBSnapshotMessage$SourceDBSnapshotIdentifier": null, + "CopyDBSnapshotMessage$TargetDBSnapshotIdentifier": null, + "CopyOptionGroupMessage$SourceOptionGroupIdentifier": null, + "CopyOptionGroupMessage$TargetOptionGroupIdentifier": null, + "CopyOptionGroupMessage$TargetOptionGroupDescription": null, + "CreateDBInstanceMessage$DBName": null, + "CreateDBInstanceMessage$DBInstanceIdentifier": null, + "CreateDBInstanceMessage$DBInstanceClass": null, + "CreateDBInstanceMessage$Engine": null, + "CreateDBInstanceMessage$MasterUsername": null, + "CreateDBInstanceMessage$MasterUserPassword": null, + "CreateDBInstanceMessage$AvailabilityZone": null, + "CreateDBInstanceMessage$DBSubnetGroupName": null, + "CreateDBInstanceMessage$PreferredMaintenanceWindow": null, + "CreateDBInstanceMessage$DBParameterGroupName": null, + "CreateDBInstanceMessage$PreferredBackupWindow": null, + "CreateDBInstanceMessage$EngineVersion": null, + "CreateDBInstanceMessage$LicenseModel": null, + "CreateDBInstanceMessage$OptionGroupName": null, + "CreateDBInstanceMessage$CharacterSetName": null, + "CreateDBInstanceMessage$StorageType": null, + "CreateDBInstanceMessage$TdeCredentialArn": null, + "CreateDBInstanceMessage$TdeCredentialPassword": null, + "CreateDBInstanceReadReplicaMessage$DBInstanceIdentifier": null, + "CreateDBInstanceReadReplicaMessage$SourceDBInstanceIdentifier": null, + "CreateDBInstanceReadReplicaMessage$DBInstanceClass": null, + "CreateDBInstanceReadReplicaMessage$AvailabilityZone": null, + "CreateDBInstanceReadReplicaMessage$OptionGroupName": null, + "CreateDBInstanceReadReplicaMessage$DBSubnetGroupName": null, + "CreateDBInstanceReadReplicaMessage$StorageType": null, + "CreateDBParameterGroupMessage$DBParameterGroupName": null, + "CreateDBParameterGroupMessage$DBParameterGroupFamily": null, + "CreateDBParameterGroupMessage$Description": null, + "CreateDBSecurityGroupMessage$DBSecurityGroupName": null, + "CreateDBSecurityGroupMessage$DBSecurityGroupDescription": null, + "CreateDBSnapshotMessage$DBSnapshotIdentifier": null, + "CreateDBSnapshotMessage$DBInstanceIdentifier": null, + "CreateDBSubnetGroupMessage$DBSubnetGroupName": null, + "CreateDBSubnetGroupMessage$DBSubnetGroupDescription": null, + "CreateEventSubscriptionMessage$SubscriptionName": null, + "CreateEventSubscriptionMessage$SnsTopicArn": null, + "CreateEventSubscriptionMessage$SourceType": null, + "CreateOptionGroupMessage$OptionGroupName": null, + "CreateOptionGroupMessage$EngineName": null, + "CreateOptionGroupMessage$MajorEngineVersion": null, + "CreateOptionGroupMessage$OptionGroupDescription": null, + "DBEngineVersion$Engine": null, + "DBEngineVersion$EngineVersion": null, + "DBEngineVersion$DBParameterGroupFamily": null, + "DBEngineVersion$DBEngineDescription": null, + "DBEngineVersion$DBEngineVersionDescription": null, + "DBEngineVersionMessage$Marker": null, + "DBInstance$DBInstanceIdentifier": null, + "DBInstance$DBInstanceClass": null, + "DBInstance$Engine": null, + "DBInstance$DBInstanceStatus": null, + "DBInstance$MasterUsername": null, + "DBInstance$DBName": null, + "DBInstance$PreferredBackupWindow": null, + "DBInstance$AvailabilityZone": null, + "DBInstance$PreferredMaintenanceWindow": null, + "DBInstance$EngineVersion": null, + "DBInstance$ReadReplicaSourceDBInstanceIdentifier": null, + "DBInstance$LicenseModel": null, + "DBInstance$CharacterSetName": null, + "DBInstance$SecondaryAvailabilityZone": null, + "DBInstance$StorageType": null, + "DBInstance$TdeCredentialArn": null, + "DBInstanceMessage$Marker": null, + "DBInstanceStatusInfo$StatusType": null, + "DBInstanceStatusInfo$Status": null, + "DBInstanceStatusInfo$Message": null, + "DBParameterGroup$DBParameterGroupName": null, + "DBParameterGroup$DBParameterGroupFamily": null, + "DBParameterGroup$Description": null, + "DBParameterGroupDetails$Marker": null, + "DBParameterGroupNameMessage$DBParameterGroupName": null, + "DBParameterGroupStatus$DBParameterGroupName": null, + "DBParameterGroupStatus$ParameterApplyStatus": null, + "DBParameterGroupsMessage$Marker": null, + "DBSecurityGroup$OwnerId": null, + "DBSecurityGroup$DBSecurityGroupName": null, + "DBSecurityGroup$DBSecurityGroupDescription": null, + "DBSecurityGroup$VpcId": null, + "DBSecurityGroupMembership$DBSecurityGroupName": null, + "DBSecurityGroupMembership$Status": null, + "DBSecurityGroupMessage$Marker": null, "DBSecurityGroupNameList$member": null, - "DBSnapshot$DBSnapshotIdentifier": "

Specifies the identifier for the DB snapshot.

", - "DBSnapshot$DBInstanceIdentifier": "

Specifies the DB instance identifier of the DB instance this DB snapshot was created from.

", - "DBSnapshot$Engine": "

Specifies the name of the database engine.

", - "DBSnapshot$Status": "

Specifies the status of this DB snapshot.

", - "DBSnapshot$AvailabilityZone": "

Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.

", - "DBSnapshot$VpcId": "

Provides the Vpc Id associated with the DB snapshot.

", - "DBSnapshot$MasterUsername": "

Provides the master username for the DB snapshot.

", - "DBSnapshot$EngineVersion": "

Specifies the version of the database engine.

", - "DBSnapshot$LicenseModel": "

License model information for the restored DB instance.

", - "DBSnapshot$SnapshotType": "

Provides the type of the DB snapshot.

", - "DBSnapshot$OptionGroupName": "

Provides the option group name for the DB snapshot.

", - "DBSnapshot$SourceRegion": "

The region that the DB snapshot was created in or copied from.

", - "DBSnapshot$StorageType": "

Specifies storage type associated with DB Snapshot.

", - "DBSnapshot$TdeCredentialArn": "

The ARN from the Key Store with which to associate the instance for TDE encryption.

", - "DBSnapshotMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DBSubnetGroup$DBSubnetGroupName": "

Specifies the name of the DB subnet group.

", - "DBSubnetGroup$DBSubnetGroupDescription": "

Provides the description of the DB subnet group.

", - "DBSubnetGroup$VpcId": "

Provides the VpcId of the DB subnet group.

", - "DBSubnetGroup$SubnetGroupStatus": "

Provides the status of the DB subnet group.

", - "DBSubnetGroupMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DeleteDBInstanceMessage$DBInstanceIdentifier": "

The DB instance identifier for the DB instance to be deleted. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DeleteDBInstanceMessage$FinalDBSnapshotIdentifier": "

The DBSnapshotIdentifier of the new DBSnapshot created when SkipFinalSnapshot is set to false.

Specifying this parameter and also setting the SkipFinalShapshot parameter to true results in an error.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
  • Cannot be specified when deleting a Read Replica.
", - "DeleteDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB parameter group.

Constraints:

  • Must be the name of an existing DB parameter group
  • You cannot delete a default DB parameter group
  • Cannot be associated with any DB instances
", - "DeleteDBSecurityGroupMessage$DBSecurityGroupName": "

The name of the DB security group to delete.

You cannot delete the default DB security group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
  • Must not be \"Default\"
  • May not contain spaces
", - "DeleteDBSnapshotMessage$DBSnapshotIdentifier": "

The DBSnapshot identifier.

Constraints: Must be the name of an existing DB snapshot in the available state.

", - "DeleteDBSubnetGroupMessage$DBSubnetGroupName": "

The name of the database subnet group to delete.

You cannot delete the default subnet group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DeleteEventSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription you want to delete.

", - "DeleteOptionGroupMessage$OptionGroupName": "

The name of the option group to be deleted.

You cannot delete default option groups.", - "DescribeDBEngineVersionsMessage$Engine": "

The database engine to return.

", - "DescribeDBEngineVersionsMessage$EngineVersion": "

The database engine version to return.

Example: 5.1.49

", - "DescribeDBEngineVersionsMessage$DBParameterGroupFamily": "

The name of a specific DB parameter group family to return details for.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBEngineVersionsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBInstancesMessage$DBInstanceIdentifier": "

The user-supplied instance identifier. If this parameter is specified, information from only the specific DB instance is returned. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBInstancesMessage$Marker": "

An optional pagination token provided by a previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "DescribeDBLogFilesDetails$LogFileName": "

The name of the log file for the specified DB instance.

", - "DescribeDBLogFilesMessage$DBInstanceIdentifier": "

The customer-assigned name of the DB instance that contains the log files you want to list.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBLogFilesMessage$FilenameContains": "

Filters the available log files for log file names that contain the specified string.

", - "DescribeDBLogFilesMessage$Marker": "

The pagination token provided in the previous request. If this parameter is specified the response includes only records beyond the marker, up to MaxRecords.

", - "DescribeDBLogFilesResponse$Marker": "

A pagination token that can be used in a subsequent DescribeDBLogFiles request.

", - "DescribeDBParameterGroupsMessage$DBParameterGroupName": "

The name of a specific DB parameter group to return details for.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBParameterGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBParameterGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBParametersMessage$DBParameterGroupName": "

The name of a specific DB parameter group to return details for.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBParametersMessage$Source": "

The parameter types to return.

Default: All parameter types returned

Valid Values: user | system | engine-default

", - "DescribeDBParametersMessage$Marker": "

An optional pagination token provided by a previous DescribeDBParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBSecurityGroupsMessage$DBSecurityGroupName": "

The name of the DB security group to return details for.

", - "DescribeDBSecurityGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBSecurityGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBSnapshotsMessage$DBInstanceIdentifier": "

A DB instance identifier to retrieve the list of DB snapshots for. Cannot be used in conjunction with DBSnapshotIdentifier. This parameter is not case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBSnapshotsMessage$DBSnapshotIdentifier": "

A specific DB snapshot identifier to describe. Cannot be used in conjunction with DBInstanceIdentifier. This value is stored as a lowercase string.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
  • If this is the identifier of an automated snapshot, the SnapshotType parameter must also be specified.
", - "DescribeDBSnapshotsMessage$SnapshotType": "

The type of snapshots that will be returned. Values can be \"automated\" or \"manual.\" If not specified, the returned results will include all snapshots types.

", - "DescribeDBSnapshotsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBSnapshots request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBSubnetGroupsMessage$DBSubnetGroupName": "

The name of the DB subnet group to return details for.

", - "DescribeDBSubnetGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBSubnetGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeEngineDefaultParametersMessage$DBParameterGroupFamily": "

The name of the DB parameter group family.

", - "DescribeEngineDefaultParametersMessage$Marker": "

An optional pagination token provided by a previous DescribeEngineDefaultParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeEventCategoriesMessage$SourceType": "

The type of source that will be generating the events.

Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

", - "DescribeEventSubscriptionsMessage$SubscriptionName": "

The name of the RDS event notification subscription you want to describe.

", - "DescribeEventSubscriptionsMessage$Marker": "

An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "DescribeEventsMessage$SourceIdentifier": "

The identifier of the event source for which events will be returned. If not specified, then all sources are included in the response.

Constraints:

  • If SourceIdentifier is supplied, SourceType must also be provided.
  • If the source type is DBInstance, then a DBInstanceIdentifier must be supplied.
  • If the source type is DBSecurityGroup, a DBSecurityGroupName must be supplied.
  • If the source type is DBParameterGroup, a DBParameterGroupName must be supplied.
  • If the source type is DBSnapshot, a DBSnapshotIdentifier must be supplied.
  • Cannot end with a hyphen or contain two consecutive hyphens.
", - "DescribeEventsMessage$Marker": "

An optional pagination token provided by a previous DescribeEvents request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeOptionGroupOptionsMessage$EngineName": "

A required parameter. Options available for the given Engine name will be described.

", - "DescribeOptionGroupOptionsMessage$MajorEngineVersion": "

If specified, filters the results to include only options for the specified major engine version.

", - "DescribeOptionGroupOptionsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeOptionGroupsMessage$OptionGroupName": "

The name of the option group to describe. Cannot be supplied together with EngineName or MajorEngineVersion.

", - "DescribeOptionGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeOptionGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeOptionGroupsMessage$EngineName": "

Filters the list of option groups to only include groups associated with a specific database engine.

", - "DescribeOptionGroupsMessage$MajorEngineVersion": "

Filters the list of option groups to only include groups associated with a specific database engine version. If specified, then EngineName must also be specified.

", - "DescribeOrderableDBInstanceOptionsMessage$Engine": "

The name of the engine to retrieve DB instance options for.

", - "DescribeOrderableDBInstanceOptionsMessage$EngineVersion": "

The engine version filter value. Specify this parameter to show only the available offerings matching the specified engine version.

", - "DescribeOrderableDBInstanceOptionsMessage$DBInstanceClass": "

The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.

", - "DescribeOrderableDBInstanceOptionsMessage$LicenseModel": "

The license model filter value. Specify this parameter to show only the available offerings matching the specified license model.

", - "DescribeOrderableDBInstanceOptionsMessage$Marker": "

An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "DescribeReservedDBInstancesMessage$ReservedDBInstanceId": "

The reserved DB instance identifier filter value. Specify this parameter to show only the reservation that matches the specified reservation ID.

", - "DescribeReservedDBInstancesMessage$ReservedDBInstancesOfferingId": "

The offering identifier filter value. Specify this parameter to show only purchased reservations matching the specified offering identifier.

", - "DescribeReservedDBInstancesMessage$DBInstanceClass": "

The DB instance class filter value. Specify this parameter to show only those reservations matching the specified DB instances class.

", - "DescribeReservedDBInstancesMessage$Duration": "

The duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.

Valid Values: 1 | 3 | 31536000 | 94608000

", - "DescribeReservedDBInstancesMessage$ProductDescription": "

The product description filter value. Specify this parameter to show only those reservations matching the specified product description.

", - "DescribeReservedDBInstancesMessage$OfferingType": "

The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.

Valid Values: \"Light Utilization\" | \"Medium Utilization\" | \"Heavy Utilization\"

", - "DescribeReservedDBInstancesMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeReservedDBInstancesOfferingsMessage$ReservedDBInstancesOfferingId": "

The offering identifier filter value. Specify this parameter to show only the available offering that matches the specified reservation identifier.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

", - "DescribeReservedDBInstancesOfferingsMessage$DBInstanceClass": "

The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.

", - "DescribeReservedDBInstancesOfferingsMessage$Duration": "

Duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.

Valid Values: 1 | 3 | 31536000 | 94608000

", - "DescribeReservedDBInstancesOfferingsMessage$ProductDescription": "

Product description filter value. Specify this parameter to show only the available offerings matching the specified product description.

", - "DescribeReservedDBInstancesOfferingsMessage$OfferingType": "

The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.

Valid Values: \"Light Utilization\" | \"Medium Utilization\" | \"Heavy Utilization\"

", - "DescribeReservedDBInstancesOfferingsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DownloadDBLogFilePortionDetails$LogFileData": "

Entries from the specified log file.

", - "DownloadDBLogFilePortionDetails$Marker": "

A pagination token that can be used in a subsequent DownloadDBLogFilePortion request.

", - "DownloadDBLogFilePortionMessage$DBInstanceIdentifier": "

The customer-assigned name of the DB instance that contains the log files you want to list.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DownloadDBLogFilePortionMessage$LogFileName": "

The name of the log file to be downloaded.

", - "DownloadDBLogFilePortionMessage$Marker": "

The pagination token provided in the previous request or \"0\". If the Marker parameter is specified the response includes only records beyond the marker until the end of the file or up to NumberOfLines.

", - "EC2SecurityGroup$Status": "

Provides the status of the EC2 security group. Status can be \"authorizing\", \"authorized\", \"revoking\", and \"revoked\".

", - "EC2SecurityGroup$EC2SecurityGroupName": "

Specifies the name of the EC2 security group.

", - "EC2SecurityGroup$EC2SecurityGroupId": "

Specifies the id of the EC2 security group.

", - "EC2SecurityGroup$EC2SecurityGroupOwnerId": "

Specifies the AWS ID of the owner of the EC2 security group specified in the EC2SecurityGroupName field.

", - "Endpoint$Address": "

Specifies the DNS address of the DB instance.

", - "EngineDefaults$DBParameterGroupFamily": "

Specifies the name of the DB parameter group family which the engine default parameters apply to.

", - "EngineDefaults$Marker": "

An optional pagination token provided by a previous EngineDefaults request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "Event$SourceIdentifier": "

Provides the identifier for the source of the event.

", - "Event$Message": "

Provides the text of this event.

", + "DBSnapshot$DBSnapshotIdentifier": null, + "DBSnapshot$DBInstanceIdentifier": null, + "DBSnapshot$Engine": null, + "DBSnapshot$Status": null, + "DBSnapshot$AvailabilityZone": null, + "DBSnapshot$VpcId": null, + "DBSnapshot$MasterUsername": null, + "DBSnapshot$EngineVersion": null, + "DBSnapshot$LicenseModel": null, + "DBSnapshot$SnapshotType": null, + "DBSnapshot$OptionGroupName": null, + "DBSnapshot$SourceRegion": null, + "DBSnapshot$StorageType": null, + "DBSnapshot$TdeCredentialArn": null, + "DBSnapshotMessage$Marker": null, + "DBSubnetGroup$DBSubnetGroupName": null, + "DBSubnetGroup$DBSubnetGroupDescription": null, + "DBSubnetGroup$VpcId": null, + "DBSubnetGroup$SubnetGroupStatus": null, + "DBSubnetGroupMessage$Marker": null, + "DeleteDBInstanceMessage$DBInstanceIdentifier": null, + "DeleteDBInstanceMessage$FinalDBSnapshotIdentifier": null, + "DeleteDBParameterGroupMessage$DBParameterGroupName": null, + "DeleteDBSecurityGroupMessage$DBSecurityGroupName": null, + "DeleteDBSnapshotMessage$DBSnapshotIdentifier": null, + "DeleteDBSubnetGroupMessage$DBSubnetGroupName": null, + "DeleteEventSubscriptionMessage$SubscriptionName": null, + "DeleteOptionGroupMessage$OptionGroupName": null, + "DescribeDBEngineVersionsMessage$Engine": null, + "DescribeDBEngineVersionsMessage$EngineVersion": null, + "DescribeDBEngineVersionsMessage$DBParameterGroupFamily": null, + "DescribeDBEngineVersionsMessage$Marker": null, + "DescribeDBInstancesMessage$DBInstanceIdentifier": null, + "DescribeDBInstancesMessage$Marker": null, + "DescribeDBLogFilesDetails$LogFileName": null, + "DescribeDBLogFilesMessage$DBInstanceIdentifier": null, + "DescribeDBLogFilesMessage$FilenameContains": null, + "DescribeDBLogFilesMessage$Marker": null, + "DescribeDBLogFilesResponse$Marker": null, + "DescribeDBParameterGroupsMessage$DBParameterGroupName": null, + "DescribeDBParameterGroupsMessage$Marker": null, + "DescribeDBParametersMessage$DBParameterGroupName": null, + "DescribeDBParametersMessage$Source": null, + "DescribeDBParametersMessage$Marker": null, + "DescribeDBSecurityGroupsMessage$DBSecurityGroupName": null, + "DescribeDBSecurityGroupsMessage$Marker": null, + "DescribeDBSnapshotsMessage$DBInstanceIdentifier": null, + "DescribeDBSnapshotsMessage$DBSnapshotIdentifier": null, + "DescribeDBSnapshotsMessage$SnapshotType": null, + "DescribeDBSnapshotsMessage$Marker": null, + "DescribeDBSubnetGroupsMessage$DBSubnetGroupName": null, + "DescribeDBSubnetGroupsMessage$Marker": null, + "DescribeEngineDefaultParametersMessage$DBParameterGroupFamily": null, + "DescribeEngineDefaultParametersMessage$Marker": null, + "DescribeEventCategoriesMessage$SourceType": null, + "DescribeEventSubscriptionsMessage$SubscriptionName": null, + "DescribeEventSubscriptionsMessage$Marker": null, + "DescribeEventsMessage$SourceIdentifier": null, + "DescribeEventsMessage$Marker": null, + "DescribeOptionGroupOptionsMessage$EngineName": null, + "DescribeOptionGroupOptionsMessage$MajorEngineVersion": null, + "DescribeOptionGroupOptionsMessage$Marker": null, + "DescribeOptionGroupsMessage$OptionGroupName": null, + "DescribeOptionGroupsMessage$Marker": null, + "DescribeOptionGroupsMessage$EngineName": null, + "DescribeOptionGroupsMessage$MajorEngineVersion": null, + "DescribeOrderableDBInstanceOptionsMessage$Engine": null, + "DescribeOrderableDBInstanceOptionsMessage$EngineVersion": null, + "DescribeOrderableDBInstanceOptionsMessage$DBInstanceClass": null, + "DescribeOrderableDBInstanceOptionsMessage$LicenseModel": null, + "DescribeOrderableDBInstanceOptionsMessage$Marker": null, + "DescribeReservedDBInstancesMessage$ReservedDBInstanceId": null, + "DescribeReservedDBInstancesMessage$ReservedDBInstancesOfferingId": null, + "DescribeReservedDBInstancesMessage$DBInstanceClass": null, + "DescribeReservedDBInstancesMessage$Duration": null, + "DescribeReservedDBInstancesMessage$ProductDescription": null, + "DescribeReservedDBInstancesMessage$OfferingType": null, + "DescribeReservedDBInstancesMessage$Marker": null, + "DescribeReservedDBInstancesOfferingsMessage$ReservedDBInstancesOfferingId": null, + "DescribeReservedDBInstancesOfferingsMessage$DBInstanceClass": null, + "DescribeReservedDBInstancesOfferingsMessage$Duration": null, + "DescribeReservedDBInstancesOfferingsMessage$ProductDescription": null, + "DescribeReservedDBInstancesOfferingsMessage$OfferingType": null, + "DescribeReservedDBInstancesOfferingsMessage$Marker": null, + "DownloadDBLogFilePortionDetails$LogFileData": null, + "DownloadDBLogFilePortionDetails$Marker": null, + "DownloadDBLogFilePortionMessage$DBInstanceIdentifier": null, + "DownloadDBLogFilePortionMessage$LogFileName": null, + "DownloadDBLogFilePortionMessage$Marker": null, + "EC2SecurityGroup$Status": null, + "EC2SecurityGroup$EC2SecurityGroupName": null, + "EC2SecurityGroup$EC2SecurityGroupId": null, + "EC2SecurityGroup$EC2SecurityGroupOwnerId": null, + "Endpoint$Address": null, + "EngineDefaults$DBParameterGroupFamily": null, + "EngineDefaults$Marker": null, + "Event$SourceIdentifier": null, + "Event$Message": null, "EventCategoriesList$member": null, - "EventCategoriesMap$SourceType": "

The source type that the returned categories belong to

", - "EventSubscription$CustomerAwsId": "

The AWS customer account associated with the RDS event notification subscription.

", - "EventSubscription$CustSubscriptionId": "

The RDS event notification subscription Id.

", - "EventSubscription$SnsTopicArn": "

The topic ARN of the RDS event notification subscription.

", - "EventSubscription$Status": "

The status of the RDS event notification subscription.

Constraints:

Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist

The status \"no-permission\" indicates that RDS no longer has permission to post to the SNS topic. The status \"topic-not-exist\" indicates that the topic was deleted after the subscription was created.

", - "EventSubscription$SubscriptionCreationTime": "

The time the RDS event notification subscription was created.

", - "EventSubscription$SourceType": "

The source type for the RDS event notification subscription.

", - "EventSubscriptionsMessage$Marker": "

An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "EventsMessage$Marker": "

An optional pagination token provided by a previous Events request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "Filter$Name": "

This parameter is not currently supported.

", + "EventCategoriesMap$SourceType": null, + "EventSubscription$CustomerAwsId": null, + "EventSubscription$CustSubscriptionId": null, + "EventSubscription$SnsTopicArn": null, + "EventSubscription$Status": null, + "EventSubscription$SubscriptionCreationTime": null, + "EventSubscription$SourceType": null, + "EventSubscriptionsMessage$Marker": null, + "EventsMessage$Marker": null, + "Filter$Name": null, "FilterValueList$member": null, - "IPRange$Status": "

Specifies the status of the IP range. Status can be \"authorizing\", \"authorized\", \"revoking\", and \"revoked\".

", - "IPRange$CIDRIP": "

Specifies the IP range.

", + "IPRange$Status": null, + "IPRange$CIDRIP": null, "KeyList$member": null, - "ListTagsForResourceMessage$ResourceName": "

The Amazon RDS resource with tags to be listed. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

", - "ModifyDBInstanceMessage$DBInstanceIdentifier": "

The DB instance identifier. This value is stored as a lowercase string.

Constraints:

  • Must be the identifier for an existing DB instance
  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "ModifyDBInstanceMessage$DBInstanceClass": "

The new compute and memory capacity of the DB instance. To determine the instance classes that are available for a particular DB engine, use the DescribeOrderableDBInstanceOptions action.

Passing a value for this setting causes an outage during the change and is applied during the next maintenance window, unless ApplyImmediately is specified as true for this request.

Default: Uses existing setting

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium

", - "ModifyDBInstanceMessage$MasterUserPassword": "

The new password for the DB instance master user. Can be any printable ASCII character except \"/\", \"\"\", or \"@\".

Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible. Between the time of the request and the completion of the request, the MasterUserPassword element exists in the PendingModifiedValues element of the operation response.

Default: Uses existing setting

Constraints: Must be 8 to 41 alphanumeric characters (MySQL), 8 to 30 alphanumeric characters (Oracle), or 8 to 128 alphanumeric characters (SQL Server).

Amazon RDS API actions never return the password, so this action provides a way to regain access to a master instance user if the password is lost. This includes restoring privileges that may have been accidentally revoked. ", - "ModifyDBInstanceMessage$DBParameterGroupName": "

The name of the DB parameter group to apply to the DB instance. Changing this setting does not result in an outage. The parameter group name itself is changed immediately, but the actual parameter changes are not applied until you reboot the instance without failover. The db instance will NOT be rebooted automatically and the parameter changes will NOT be applied during the next maintenance window.

Default: Uses existing setting

Constraints: The DB parameter group must be in the same DB parameter group family as this DB instance.

", - "ModifyDBInstanceMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

Constraints:

  • Must be in the format hh24:mi-hh24:mi
  • Times should be Universal Time Coordinated (UTC)
  • Must not conflict with the preferred maintenance window
  • Must be at least 30 minutes
", - "ModifyDBInstanceMessage$PreferredMaintenanceWindow": "

The weekly time range (in UTC) during which system maintenance can occur, which may result in an outage. Changing this parameter does not result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If there are pending actions that cause a reboot, and the maintenance window is changed to include the current time, then changing this parameter will cause a reboot of the DB instance. If moving this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.

Default: Uses existing setting

Format: ddd:hh24:mi-ddd:hh24:mi

Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun

Constraints: Must be at least 30 minutes

", - "ModifyDBInstanceMessage$EngineVersion": "

The version number of the database engine to upgrade to. Changing this parameter results in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

For major version upgrades, if a non-default DB parameter group is currently in use, a new DB parameter group in the DB parameter group family for the new engine version must be specified. The new DB parameter group can be the default for that DB parameter group family.

For a list of valid engine versions, see CreateDBInstance.

", - "ModifyDBInstanceMessage$OptionGroupName": "

Indicates that the DB instance should be associated with the specified option group. Changing this parameter does not result in an outage except in the following case and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request. If the parameter change results in an option group that enables OEM, this change can cause a brief (sub-second) period during which new connections are rejected but existing connections are not interrupted.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", - "ModifyDBInstanceMessage$NewDBInstanceIdentifier": "

The new DB instance identifier for the DB instance when renaming a DB instance. When you change the DB instance identifier, an instance reboot will occur immediately if you set Apply Immediately to true, or will occur during the next maintenance window if Apply Immediately to false. This value is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "ModifyDBInstanceMessage$StorageType": "

Specifies storage type to be associated with the DB Instance.

Valid values: standard | gp2 | io1

If you specify io1, you must also include a value for the Iops parameter.

Default: io1 if the Iops parameter is specified; otherwise standard

", - "ModifyDBInstanceMessage$TdeCredentialArn": "

The ARN from the Key Store with which to associate the instance for TDE encryption.

", - "ModifyDBInstanceMessage$TdeCredentialPassword": "

The password for the given ARN from the Key Store in order to access the device.

", - "ModifyDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB parameter group.

Constraints:

  • Must be the name of an existing DB parameter group
  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "ModifyDBSubnetGroupMessage$DBSubnetGroupName": "

The name for the DB subnet group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be \"Default\".

Example: mySubnetgroup

", - "ModifyDBSubnetGroupMessage$DBSubnetGroupDescription": "

The description for the DB subnet group.

", - "ModifyEventSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription.

", - "ModifyEventSubscriptionMessage$SnsTopicArn": "

The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

", - "ModifyEventSubscriptionMessage$SourceType": "

The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

", - "ModifyOptionGroupMessage$OptionGroupName": "

The name of the option group to be modified.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", - "Option$OptionName": "

The name of the option.

", - "Option$OptionDescription": "

The description of the option.

", - "OptionConfiguration$OptionName": "

The configuration of options to include in a group.

", - "OptionGroup$OptionGroupName": "

Specifies the name of the option group.

", - "OptionGroup$OptionGroupDescription": "

Provides a description of the option group.

", - "OptionGroup$EngineName": "

Engine name that this option group can be applied to.

", - "OptionGroup$MajorEngineVersion": "

Indicates the major engine version associated with this option group.

", - "OptionGroup$VpcId": "

If AllowsVpcAndNonVpcInstanceMemberships is false, this field is blank. If AllowsVpcAndNonVpcInstanceMemberships is true and this field is blank, then this option group can be applied to both VPC and non-VPC instances. If this field contains a value, then this option group can only be applied to instances that are in the VPC indicated by this field.

", - "OptionGroupMembership$OptionGroupName": "

The name of the option group that the instance belongs to.

", - "OptionGroupMembership$Status": "

The status of the DB instance's option group membership (e.g. in-sync, pending, pending-maintenance, applying).

", - "OptionGroupOption$Name": "

The name of the option.

", - "OptionGroupOption$Description": "

The description of the option.

", - "OptionGroupOption$EngineName": "

The name of the engine that this option can be applied to.

", - "OptionGroupOption$MajorEngineVersion": "

Indicates the major engine version that the option is available for.

", - "OptionGroupOption$MinimumRequiredMinorEngineVersion": "

The minimum required engine version for the option to be applied.

", - "OptionGroupOptionSetting$SettingName": "

The name of the option group option.

", - "OptionGroupOptionSetting$SettingDescription": "

The description of the option group option.

", - "OptionGroupOptionSetting$DefaultValue": "

The default value for the option group option.

", - "OptionGroupOptionSetting$ApplyType": "

The DB engine specific parameter type for the option group option.

", - "OptionGroupOptionSetting$AllowedValues": "

Indicates the acceptable values for the option group option.

", - "OptionGroupOptionsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "OptionGroups$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", + "ListTagsForResourceMessage$ResourceName": null, + "ModifyDBInstanceMessage$DBInstanceIdentifier": null, + "ModifyDBInstanceMessage$DBInstanceClass": null, + "ModifyDBInstanceMessage$MasterUserPassword": null, + "ModifyDBInstanceMessage$DBParameterGroupName": null, + "ModifyDBInstanceMessage$PreferredBackupWindow": null, + "ModifyDBInstanceMessage$PreferredMaintenanceWindow": null, + "ModifyDBInstanceMessage$EngineVersion": null, + "ModifyDBInstanceMessage$OptionGroupName": null, + "ModifyDBInstanceMessage$NewDBInstanceIdentifier": null, + "ModifyDBInstanceMessage$StorageType": null, + "ModifyDBInstanceMessage$TdeCredentialArn": null, + "ModifyDBInstanceMessage$TdeCredentialPassword": null, + "ModifyDBParameterGroupMessage$DBParameterGroupName": null, + "ModifyDBSubnetGroupMessage$DBSubnetGroupName": null, + "ModifyDBSubnetGroupMessage$DBSubnetGroupDescription": null, + "ModifyEventSubscriptionMessage$SubscriptionName": null, + "ModifyEventSubscriptionMessage$SnsTopicArn": null, + "ModifyEventSubscriptionMessage$SourceType": null, + "ModifyOptionGroupMessage$OptionGroupName": null, + "Option$OptionName": null, + "Option$OptionDescription": null, + "OptionConfiguration$OptionName": null, + "OptionGroup$OptionGroupName": null, + "OptionGroup$OptionGroupDescription": null, + "OptionGroup$EngineName": null, + "OptionGroup$MajorEngineVersion": null, + "OptionGroup$VpcId": null, + "OptionGroupMembership$OptionGroupName": null, + "OptionGroupMembership$Status": null, + "OptionGroupOption$Name": null, + "OptionGroupOption$Description": null, + "OptionGroupOption$EngineName": null, + "OptionGroupOption$MajorEngineVersion": null, + "OptionGroupOption$MinimumRequiredMinorEngineVersion": null, + "OptionGroupOptionSetting$SettingName": null, + "OptionGroupOptionSetting$SettingDescription": null, + "OptionGroupOptionSetting$DefaultValue": null, + "OptionGroupOptionSetting$ApplyType": null, + "OptionGroupOptionSetting$AllowedValues": null, + "OptionGroupOptionsMessage$Marker": null, + "OptionGroups$Marker": null, "OptionNamesList$member": null, - "OptionSetting$Name": "

The name of the option that has settings that you can set.

", - "OptionSetting$Value": "

The current value of the option setting.

", - "OptionSetting$DefaultValue": "

The default value of the option setting.

", - "OptionSetting$Description": "

The description of the option setting.

", - "OptionSetting$ApplyType": "

The DB engine specific parameter type.

", - "OptionSetting$DataType": "

The data type of the option setting.

", - "OptionSetting$AllowedValues": "

The allowed values of the option setting.

", + "OptionSetting$Name": null, + "OptionSetting$Value": null, + "OptionSetting$DefaultValue": null, + "OptionSetting$Description": null, + "OptionSetting$ApplyType": null, + "OptionSetting$DataType": null, + "OptionSetting$AllowedValues": null, "OptionsDependedOn$member": null, - "OrderableDBInstanceOption$Engine": "

The engine type of the orderable DB instance.

", - "OrderableDBInstanceOption$EngineVersion": "

The engine version of the orderable DB instance.

", - "OrderableDBInstanceOption$DBInstanceClass": "

The DB instance Class for the orderable DB instance

", - "OrderableDBInstanceOption$LicenseModel": "

The license model for the orderable DB instance.

", - "OrderableDBInstanceOption$StorageType": "

The storage type for this orderable DB instance.

", - "OrderableDBInstanceOptionsMessage$Marker": "

An optional pagination token provided by a previous OrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "Parameter$ParameterName": "

Specifies the name of the parameter.

", - "Parameter$ParameterValue": "

Specifies the value of the parameter.

", - "Parameter$Description": "

Provides a description of the parameter.

", - "Parameter$Source": "

Indicates the source of the parameter value.

", - "Parameter$ApplyType": "

Specifies the engine specific parameters type.

", - "Parameter$DataType": "

Specifies the valid data type for the parameter.

", - "Parameter$AllowedValues": "

Specifies the valid range of values for the parameter.

", - "Parameter$MinimumEngineVersion": "

The earliest engine version to which the parameter can apply.

", - "PendingModifiedValues$DBInstanceClass": "

Contains the new DBInstanceClass for the DB instance that will be applied or is in progress.

", - "PendingModifiedValues$MasterUserPassword": "

Contains the pending or in-progress change of the master credentials for the DB instance.

", - "PendingModifiedValues$EngineVersion": "

Indicates the database engine version.

", - "PendingModifiedValues$DBInstanceIdentifier": "

Contains the new DBInstanceIdentifier for the DB instance that will be applied or is in progress.

", - "PendingModifiedValues$StorageType": "

Specifies storage type to be associated with the DB instance.

", - "PromoteReadReplicaMessage$DBInstanceIdentifier": "

The DB instance identifier. This value is stored as a lowercase string.

Constraints:

  • Must be the identifier for an existing Read Replica DB instance
  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: mydbinstance

", - "PromoteReadReplicaMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

Default: A 30-minute window selected at random from an 8-hour block of time per region. See the Amazon RDS User Guide for the time blocks for each region from which the default backup windows are assigned.

Constraints: Must be in the format hh24:mi-hh24:mi. Times should be Universal Time Coordinated (UTC). Must not conflict with the preferred maintenance window. Must be at least 30 minutes.

", - "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferingId": "

The ID of the Reserved DB instance offering to purchase.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

", - "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstanceId": "

Customer-specified identifier to track this reservation.

Example: myreservationID

", + "OrderableDBInstanceOption$Engine": null, + "OrderableDBInstanceOption$EngineVersion": null, + "OrderableDBInstanceOption$DBInstanceClass": null, + "OrderableDBInstanceOption$LicenseModel": null, + "OrderableDBInstanceOption$StorageType": null, + "OrderableDBInstanceOptionsMessage$Marker": null, + "Parameter$ParameterName": null, + "Parameter$ParameterValue": null, + "Parameter$Description": null, + "Parameter$Source": null, + "Parameter$ApplyType": null, + "Parameter$DataType": null, + "Parameter$AllowedValues": null, + "Parameter$MinimumEngineVersion": null, + "PendingModifiedValues$DBInstanceClass": null, + "PendingModifiedValues$MasterUserPassword": null, + "PendingModifiedValues$EngineVersion": null, + "PendingModifiedValues$DBInstanceIdentifier": null, + "PendingModifiedValues$StorageType": null, + "PromoteReadReplicaMessage$DBInstanceIdentifier": null, + "PromoteReadReplicaMessage$PreferredBackupWindow": null, + "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferingId": null, + "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstanceId": null, "ReadReplicaDBInstanceIdentifierList$member": null, - "RebootDBInstanceMessage$DBInstanceIdentifier": "

The DB instance identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RecurringCharge$RecurringChargeFrequency": "

The frequency of the recurring charge.

", - "RemoveSourceIdentifierFromSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription you want to remove a source identifier from.

", - "RemoveSourceIdentifierFromSubscriptionMessage$SourceIdentifier": "

The source identifier to be removed from the subscription, such as the DB instance identifier for a DB instance or the name of a security group.

", - "RemoveTagsFromResourceMessage$ResourceName": "

The Amazon RDS resource the tags will be removed from. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

", - "ReservedDBInstance$ReservedDBInstanceId": "

The unique identifier for the reservation.

", - "ReservedDBInstance$ReservedDBInstancesOfferingId": "

The offering identifier.

", - "ReservedDBInstance$DBInstanceClass": "

The DB instance class for the reserved DB instance.

", - "ReservedDBInstance$CurrencyCode": "

The currency code for the reserved DB instance.

", - "ReservedDBInstance$ProductDescription": "

The description of the reserved DB instance.

", - "ReservedDBInstance$OfferingType": "

The offering type of this reserved DB instance.

", - "ReservedDBInstance$State": "

The state of the reserved DB instance.

", - "ReservedDBInstanceMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "ReservedDBInstancesOffering$ReservedDBInstancesOfferingId": "

The offering identifier.

", - "ReservedDBInstancesOffering$DBInstanceClass": "

The DB instance class for the reserved DB instance.

", - "ReservedDBInstancesOffering$CurrencyCode": "

The currency code for the reserved DB instance offering.

", - "ReservedDBInstancesOffering$ProductDescription": "

The database engine used by the offering.

", - "ReservedDBInstancesOffering$OfferingType": "

The offering type.

", - "ReservedDBInstancesOfferingMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "ResetDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB parameter group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceIdentifier": "

Name of the DB instance to create from the DB snapshot. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

", - "RestoreDBInstanceFromDBSnapshotMessage$DBSnapshotIdentifier": "

The identifier for the DB snapshot to restore from.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceClass": "

The compute and memory capacity of the Amazon RDS DB instance.

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium

", - "RestoreDBInstanceFromDBSnapshotMessage$AvailabilityZone": "

The EC2 Availability Zone that the database instance will be created in.

Default: A random, system-chosen Availability Zone.

Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

Example: us-east-1a

", - "RestoreDBInstanceFromDBSnapshotMessage$DBSubnetGroupName": "

The DB subnet group name to use for the new instance.

", - "RestoreDBInstanceFromDBSnapshotMessage$LicenseModel": "

License model information for the restored DB instance.

Default: Same as source.

Valid values: license-included | bring-your-own-license | general-public-license

", - "RestoreDBInstanceFromDBSnapshotMessage$DBName": "

The database name for the restored DB instance.

This parameter doesn't apply to the MySQL engine.

", - "RestoreDBInstanceFromDBSnapshotMessage$Engine": "

The database engine to use for the new instance.

Default: The same as source

Constraint: Must be compatible with the engine of the source

Valid Values: MySQL | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web | postgres

", - "RestoreDBInstanceFromDBSnapshotMessage$OptionGroupName": "

The name of the option group to be used for the restored DB instance.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", - "RestoreDBInstanceFromDBSnapshotMessage$StorageType": "

Specifies storage type to be associated with the DB Instance.

Valid values: standard | gp2 | io1

If you specify io1, you must also include a value for the Iops parameter.

Default: io1 if the Iops parameter is specified; otherwise standard

", - "RestoreDBInstanceFromDBSnapshotMessage$TdeCredentialArn": "

The ARN from the Key Store with which to associate the instance for TDE encryption.

", - "RestoreDBInstanceFromDBSnapshotMessage$TdeCredentialPassword": "

The password for the given ARN from the Key Store in order to access the device.

", - "RestoreDBInstanceToPointInTimeMessage$SourceDBInstanceIdentifier": "

The identifier of the source DB instance from which to restore.

Constraints:

  • Must be the identifier of an existing database instance
  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RestoreDBInstanceToPointInTimeMessage$TargetDBInstanceIdentifier": "

The name of the new database instance to be created.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RestoreDBInstanceToPointInTimeMessage$DBInstanceClass": "

The compute and memory capacity of the Amazon RDS DB instance.

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium

Default: The same DBInstanceClass as the original DB instance.

", - "RestoreDBInstanceToPointInTimeMessage$AvailabilityZone": "

The EC2 Availability Zone that the database instance will be created in.

Default: A random, system-chosen Availability Zone.

Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

Example: us-east-1a

", - "RestoreDBInstanceToPointInTimeMessage$DBSubnetGroupName": "

The DB subnet group name to use for the new instance.

", - "RestoreDBInstanceToPointInTimeMessage$LicenseModel": "

License model information for the restored DB instance.

Default: Same as source.

Valid values: license-included | bring-your-own-license | general-public-license

", - "RestoreDBInstanceToPointInTimeMessage$DBName": "

The database name for the restored DB instance.

This parameter is not used for the MySQL engine.

", - "RestoreDBInstanceToPointInTimeMessage$Engine": "

The database engine to use for the new instance.

Default: The same as source

Constraint: Must be compatible with the engine of the source

Valid Values: MySQL | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web | postgres

", - "RestoreDBInstanceToPointInTimeMessage$OptionGroupName": "

The name of the option group to be used for the restored DB instance.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", - "RestoreDBInstanceToPointInTimeMessage$StorageType": "

Specifies storage type to be associated with the DB Instance.

Valid values: standard | gp2 | io1

If you specify io1, you must also include a value for the Iops parameter.

Default: io1 if the Iops parameter is specified; otherwise standard

", - "RestoreDBInstanceToPointInTimeMessage$TdeCredentialArn": "

The ARN from the Key Store with which to associate the instance for TDE encryption.

", - "RestoreDBInstanceToPointInTimeMessage$TdeCredentialPassword": "

The password for the given ARN from the Key Store in order to access the device.

", - "RevokeDBSecurityGroupIngressMessage$DBSecurityGroupName": "

The name of the DB security group to revoke ingress from.

", - "RevokeDBSecurityGroupIngressMessage$CIDRIP": "

The IP range to revoke access from. Must be a valid CIDR range. If CIDRIP is specified, EC2SecurityGroupName, EC2SecurityGroupId and EC2SecurityGroupOwnerId cannot be provided.

", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupName": "

The name of the EC2 security group to revoke access from. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupId": "

The id of the EC2 security group to revoke access from. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": "

The AWS Account Number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", + "RebootDBInstanceMessage$DBInstanceIdentifier": null, + "RecurringCharge$RecurringChargeFrequency": null, + "RemoveSourceIdentifierFromSubscriptionMessage$SubscriptionName": null, + "RemoveSourceIdentifierFromSubscriptionMessage$SourceIdentifier": null, + "RemoveTagsFromResourceMessage$ResourceName": null, + "ReservedDBInstance$ReservedDBInstanceId": null, + "ReservedDBInstance$ReservedDBInstancesOfferingId": null, + "ReservedDBInstance$DBInstanceClass": null, + "ReservedDBInstance$CurrencyCode": null, + "ReservedDBInstance$ProductDescription": null, + "ReservedDBInstance$OfferingType": null, + "ReservedDBInstance$State": null, + "ReservedDBInstanceMessage$Marker": null, + "ReservedDBInstancesOffering$ReservedDBInstancesOfferingId": null, + "ReservedDBInstancesOffering$DBInstanceClass": null, + "ReservedDBInstancesOffering$CurrencyCode": null, + "ReservedDBInstancesOffering$ProductDescription": null, + "ReservedDBInstancesOffering$OfferingType": null, + "ReservedDBInstancesOfferingMessage$Marker": null, + "ResetDBParameterGroupMessage$DBParameterGroupName": null, + "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceIdentifier": null, + "RestoreDBInstanceFromDBSnapshotMessage$DBSnapshotIdentifier": null, + "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceClass": null, + "RestoreDBInstanceFromDBSnapshotMessage$AvailabilityZone": null, + "RestoreDBInstanceFromDBSnapshotMessage$DBSubnetGroupName": null, + "RestoreDBInstanceFromDBSnapshotMessage$LicenseModel": null, + "RestoreDBInstanceFromDBSnapshotMessage$DBName": null, + "RestoreDBInstanceFromDBSnapshotMessage$Engine": null, + "RestoreDBInstanceFromDBSnapshotMessage$OptionGroupName": null, + "RestoreDBInstanceFromDBSnapshotMessage$StorageType": null, + "RestoreDBInstanceFromDBSnapshotMessage$TdeCredentialArn": null, + "RestoreDBInstanceFromDBSnapshotMessage$TdeCredentialPassword": null, + "RestoreDBInstanceToPointInTimeMessage$SourceDBInstanceIdentifier": null, + "RestoreDBInstanceToPointInTimeMessage$TargetDBInstanceIdentifier": null, + "RestoreDBInstanceToPointInTimeMessage$DBInstanceClass": null, + "RestoreDBInstanceToPointInTimeMessage$AvailabilityZone": null, + "RestoreDBInstanceToPointInTimeMessage$DBSubnetGroupName": null, + "RestoreDBInstanceToPointInTimeMessage$LicenseModel": null, + "RestoreDBInstanceToPointInTimeMessage$DBName": null, + "RestoreDBInstanceToPointInTimeMessage$Engine": null, + "RestoreDBInstanceToPointInTimeMessage$OptionGroupName": null, + "RestoreDBInstanceToPointInTimeMessage$StorageType": null, + "RestoreDBInstanceToPointInTimeMessage$TdeCredentialArn": null, + "RestoreDBInstanceToPointInTimeMessage$TdeCredentialPassword": null, + "RevokeDBSecurityGroupIngressMessage$DBSecurityGroupName": null, + "RevokeDBSecurityGroupIngressMessage$CIDRIP": null, + "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupName": null, + "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupId": null, + "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": null, "SourceIdsList$member": null, - "Subnet$SubnetIdentifier": "

Specifies the identifier of the subnet.

", - "Subnet$SubnetStatus": "

Specifies the status of the subnet.

", + "Subnet$SubnetIdentifier": null, + "Subnet$SubnetStatus": null, "SubnetIdentifierList$member": null, - "Tag$Key": "

A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with \"aws:\" or \"rds:\". The string may only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

", - "Tag$Value": "

A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with \"aws:\" or \"rds:\". The string may only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

", + "Tag$Key": null, + "Tag$Value": null, "VpcSecurityGroupIdList$member": null, - "VpcSecurityGroupMembership$VpcSecurityGroupId": "

The name of the VPC security group.

", - "VpcSecurityGroupMembership$Status": "

The status of the VPC security group.

" + "VpcSecurityGroupMembership$VpcSecurityGroupId": null, + "VpcSecurityGroupMembership$Status": null } }, "Subnet": { - "base": "

This data type is used as a response element in the DescribeDBSubnetGroups action.

", + "base": null, "refs": { "SubnetList$member": null } }, "SubnetAlreadyInUse": { - "base": "

The DB subnet is already in use in the Availability Zone.

", + "base": "

The DB subnet is already in use in the Availability Zone.

", "refs": { } }, "SubnetIdentifierList": { "base": null, "refs": { - "CreateDBSubnetGroupMessage$SubnetIds": "

The EC2 Subnet IDs for the DB subnet group.

", - "ModifyDBSubnetGroupMessage$SubnetIds": "

The EC2 subnet IDs for the DB subnet group.

" + "CreateDBSubnetGroupMessage$SubnetIds": null, + "ModifyDBSubnetGroupMessage$SubnetIds": null } }, "SubnetList": { "base": null, "refs": { - "DBSubnetGroup$Subnets": "

Contains a list of Subnet elements.

" + "DBSubnetGroup$Subnets": null } }, "SubscriptionAlreadyExistFault": { @@ -1858,33 +1858,33 @@ "SupportedCharacterSetsList": { "base": null, "refs": { - "DBEngineVersion$SupportedCharacterSets": "

A list of the character sets supported by this engine for the CharacterSetName parameter of the CreateDBInstance API.

" + "DBEngineVersion$SupportedCharacterSets": null } }, "TStamp": { "base": null, "refs": { - "DBInstance$InstanceCreateTime": "

Provides the date and time the DB instance was created.

", - "DBInstance$LatestRestorableTime": "

Specifies the latest time to which a database can be restored with point-in-time restore.

", - "DBSnapshot$SnapshotCreateTime": "

Provides the time (UTC) when the snapshot was taken.

", - "DBSnapshot$InstanceCreateTime": "

Specifies the time (UTC) when the snapshot was taken.

", - "DescribeEventsMessage$StartTime": "

The beginning of the time interval to retrieve events for, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

Example: 2009-07-08T18:00Z

", - "DescribeEventsMessage$EndTime": "

The end of the time interval for which to retrieve events, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

Example: 2009-07-08T18:00Z

", - "Event$Date": "

Specifies the date and time of the event.

", - "ReservedDBInstance$StartTime": "

The time the reservation started.

", - "RestoreDBInstanceToPointInTimeMessage$RestoreTime": "

The date and time to restore from.

Valid Values: Value must be a UTC time

Constraints:

  • Must be before the latest restorable time for the DB instance
  • Cannot be specified if UseLatestRestorableTime parameter is true

Example: 2009-09-07T23:45:00Z

" + "DBInstance$InstanceCreateTime": null, + "DBInstance$LatestRestorableTime": null, + "DBSnapshot$SnapshotCreateTime": null, + "DBSnapshot$InstanceCreateTime": null, + "DescribeEventsMessage$StartTime": null, + "DescribeEventsMessage$EndTime": null, + "Event$Date": null, + "ReservedDBInstance$StartTime": null, + "RestoreDBInstanceToPointInTimeMessage$RestoreTime": null } }, "Tag": { - "base": "

Metadata assigned to an Amazon RDS resource consisting of a key-value pair.

", + "base": null, "refs": { "TagList$member": null } }, "TagList": { - "base": "

A list of tags.

", + "base": null, "refs": { - "AddTagsToResourceMessage$Tags": "

The tags to be assigned to the Amazon RDS resource.

", + "AddTagsToResourceMessage$Tags": null, "CopyDBParameterGroupMessage$Tags": null, "CopyDBSnapshotMessage$Tags": null, "CopyOptionGroupMessage$Tags": null, @@ -1899,24 +1899,24 @@ "PurchaseReservedDBInstancesOfferingMessage$Tags": null, "RestoreDBInstanceFromDBSnapshotMessage$Tags": null, "RestoreDBInstanceToPointInTimeMessage$Tags": null, - "TagListMessage$TagList": "

List of tags returned by the ListTagsForResource operation.

" + "TagListMessage$TagList": null } }, "TagListMessage": { - "base": "

", + "base": null, "refs": { } }, "VpcSecurityGroupIdList": { "base": null, "refs": { - "CreateDBInstanceMessage$VpcSecurityGroupIds": "

A list of EC2 VPC security groups to associate with this DB instance.

Default: The default EC2 VPC security group for the DB subnet group's VPC.

", - "ModifyDBInstanceMessage$VpcSecurityGroupIds": "

A list of EC2 VPC security groups to authorize on this DB instance. This change is asynchronously applied as soon as possible.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "OptionConfiguration$VpcSecurityGroupMemberships": "

A list of VpcSecurityGroupMemebrship name strings used for this option.

" + "CreateDBInstanceMessage$VpcSecurityGroupIds": null, + "ModifyDBInstanceMessage$VpcSecurityGroupIds": null, + "OptionConfiguration$VpcSecurityGroupMemberships": null } }, "VpcSecurityGroupMembership": { - "base": "

This data type is used as a response element for queries on VPC security group membership.

", + "base": null, "refs": { "VpcSecurityGroupMembershipList$member": null } @@ -1924,8 +1924,8 @@ "VpcSecurityGroupMembershipList": { "base": null, "refs": { - "DBInstance$VpcSecurityGroups": "

Provides List of VPC security group elements that the DB instance belongs to.

", - "Option$VpcSecurityGroupMemberships": "

If the option requires access to a port, then this VPC security group allows access to the port.

" + "DBInstance$VpcSecurityGroups": null, + "Option$VpcSecurityGroupMemberships": null } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/paginators-1.json new file mode 100644 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/api-2.json index 4da3f665d..f5ad4601b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/api-2.json @@ -7,6 +7,7 @@ "serviceAbbreviation":"Amazon RDS", "serviceFullName":"Amazon Relational Database Service", "signatureVersion":"v4", + "uid":"rds-2014-10-31", "xmlNamespace":"http://rds.amazonaws.com/doc/2014-10-31/" }, "operations":{ @@ -49,7 +50,8 @@ "input":{"shape":"AddTagsToResourceMessage"}, "errors":[ {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSnapshotNotFoundFault"} + {"shape":"DBSnapshotNotFoundFault"}, + {"shape":"DBClusterNotFoundFault"} ] }, "ApplyPendingMaintenanceAction":{ @@ -196,9 +198,12 @@ {"shape":"InvalidDBClusterStateFault"}, {"shape":"InvalidDBSubnetGroupStateFault"}, {"shape":"InvalidSubnet"}, + {"shape":"InvalidDBInstanceStateFault"}, {"shape":"DBClusterParameterGroupNotFoundFault"}, {"shape":"KMSKeyNotAccessibleFault"}, - {"shape":"DBClusterNotFoundFault"} + {"shape":"DBClusterNotFoundFault"}, + {"shape":"DBInstanceNotFoundFault"}, + {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"} ] }, "CreateDBClusterParameterGroup":{ @@ -993,7 +998,8 @@ }, "errors":[ {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSnapshotNotFoundFault"} + {"shape":"DBSnapshotNotFoundFault"}, + {"shape":"DBClusterNotFoundFault"} ] }, "ModifyDBCluster":{ @@ -1100,6 +1106,21 @@ {"shape":"InvalidDBParameterGroupStateFault"} ] }, + "ModifyDBSnapshot":{ + "name":"ModifyDBSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyDBSnapshotMessage"}, + "output":{ + "shape":"ModifyDBSnapshotResult", + "resultWrapper":"ModifyDBSnapshotResult" + }, + "errors":[ + {"shape":"DBSnapshotNotFoundFault"} + ] + }, "ModifyDBSnapshotAttribute":{ "name":"ModifyDBSnapshotAttribute", "http":{ @@ -1275,7 +1296,8 @@ "input":{"shape":"RemoveTagsFromResourceMessage"}, "errors":[ {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSnapshotNotFoundFault"} + {"shape":"DBSnapshotNotFoundFault"}, + {"shape":"DBClusterNotFoundFault"} ] }, "ResetDBClusterParameterGroup":{ @@ -1723,6 +1745,9 @@ "members":{ "SourceDBClusterSnapshotIdentifier":{"shape":"String"}, "TargetDBClusterSnapshotIdentifier":{"shape":"String"}, + "KmsKeyId":{"shape":"String"}, + "PreSignedUrl":{"shape":"String"}, + "CopyTags":{"shape":"BooleanOptional"}, "Tags":{"shape":"TagList"} } }, @@ -1763,7 +1788,8 @@ "TargetDBSnapshotIdentifier":{"shape":"String"}, "KmsKeyId":{"shape":"String"}, "Tags":{"shape":"TagList"}, - "CopyTags":{"shape":"BooleanOptional"} + "CopyTags":{"shape":"BooleanOptional"}, + "PreSignedUrl":{"shape":"String"} } }, "CopyDBSnapshotResult":{ @@ -1818,7 +1844,8 @@ "ReplicationSourceIdentifier":{"shape":"String"}, "Tags":{"shape":"TagList"}, "StorageEncrypted":{"shape":"BooleanOptional"}, - "KmsKeyId":{"shape":"String"} + "KmsKeyId":{"shape":"String"}, + "PreSignedUrl":{"shape":"String"} } }, "CreateDBClusterParameterGroupMessage":{ @@ -1934,7 +1961,9 @@ "StorageType":{"shape":"String"}, "CopyTagsToSnapshot":{"shape":"BooleanOptional"}, "MonitoringInterval":{"shape":"IntegerOptional"}, - "MonitoringRoleArn":{"shape":"String"} + "MonitoringRoleArn":{"shape":"String"}, + "KmsKeyId":{"shape":"String"}, + "PreSignedUrl":{"shape":"String"} } }, "CreateDBInstanceReadReplicaResult":{ @@ -2085,6 +2114,7 @@ "EarliestRestorableTime":{"shape":"TStamp"}, "Endpoint":{"shape":"String"}, "ReaderEndpoint":{"shape":"String"}, + "MultiAZ":{"shape":"Boolean"}, "Engine":{"shape":"String"}, "EngineVersion":{"shape":"String"}, "LatestRestorableTime":{"shape":"TStamp"}, @@ -2102,7 +2132,8 @@ "KmsKeyId":{"shape":"String"}, "DbClusterResourceId":{"shape":"String"}, "DBClusterArn":{"shape":"String"}, - "AssociatedRoles":{"shape":"DBClusterRoles"} + "AssociatedRoles":{"shape":"DBClusterRoles"}, + "ClusterCreateTime":{"shape":"TStamp"} }, "wrapper":true }, @@ -2416,6 +2447,7 @@ "AutoMinorVersionUpgrade":{"shape":"Boolean"}, "ReadReplicaSourceDBInstanceIdentifier":{"shape":"String"}, "ReadReplicaDBInstanceIdentifiers":{"shape":"ReadReplicaDBInstanceIdentifierList"}, + "ReadReplicaDBClusterIdentifiers":{"shape":"ReadReplicaDBClusterIdentifierList"}, "LicenseModel":{"shape":"String"}, "Iops":{"shape":"IntegerOptional"}, "OptionGroupMemberships":{"shape":"OptionGroupMembershipList"}, @@ -3904,6 +3936,20 @@ "DBSnapshotAttributesResult":{"shape":"DBSnapshotAttributesResult"} } }, + "ModifyDBSnapshotMessage":{ + "type":"structure", + "required":["DBSnapshotIdentifier"], + "members":{ + "DBSnapshotIdentifier":{"shape":"String"}, + "EngineVersion":{"shape":"String"} + } + }, + "ModifyDBSnapshotResult":{ + "type":"structure", + "members":{ + "DBSnapshot":{"shape":"DBSnapshot"} + } + }, "ModifyDBSubnetGroupMessage":{ "type":"structure", "required":[ @@ -4350,6 +4396,13 @@ "ReservedDBInstance":{"shape":"ReservedDBInstance"} } }, + "ReadReplicaDBClusterIdentifierList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"ReadReplicaDBClusterIdentifier" + } + }, "ReadReplicaDBInstanceIdentifierList":{ "type":"list", "member":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/docs-2.json index 0980979ae..49ff272d3 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/docs-2.json @@ -8,15 +8,15 @@ "ApplyPendingMaintenanceAction": "

Applies a pending maintenance action to a resource (for example, to a DB instance).

", "AuthorizeDBSecurityGroupIngress": "

Enables ingress to a DBSecurityGroup using one of two forms of authorization. First, EC2 or VPC security groups can be added to the DBSecurityGroup if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet. Required parameters for this API are one of CIDR range, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId for non-VPC).

You cannot authorize ingress from an EC2 security group in one region to an Amazon RDS DB instance in another. You cannot authorize ingress from a VPC security group in one VPC to an Amazon RDS DB instance in another.

For an overview of CIDR ranges, go to the Wikipedia Tutorial.

", "CopyDBClusterParameterGroup": "

Copies the specified DB cluster parameter group.

", - "CopyDBClusterSnapshot": "

Creates a snapshot of a DB cluster. For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", + "CopyDBClusterSnapshot": "

Copies a snapshot of a DB cluster.

To copy a DB cluster snapshot from a shared manual DB cluster snapshot, SourceDBClusterSnapshotIdentifier must be the Amazon Resource Name (ARN) of the shared DB cluster snapshot.

You can copy an encrypted DB cluster snapshot from another AWS region. In that case, the region where you call the CopyDBClusterSnapshot action is the destination region for the encrypted DB cluster snapshot to be copied to. To copy an encrypted DB cluster snapshot from another region, you must provide the following values:

  • KmsKeyId - The AWS Key Management System (KMS) key identifier for the key to use to encrypt the copy of the DB cluster snapshot in the destination region.

  • PreSignedUrl - A URL that contains a Signature Version 4 signed request for the CopyDBClusterSnapshot action to be called in the source region where the DB cluster snapshot will be copied from. The pre-signed URL must be a valid request for the CopyDBClusterSnapshot API action that can be executed in the source region that contains the encrypted DB cluster snapshot to be copied.

    The pre-signed URL request must contain the following parameter values:

    • KmsKeyId - The KMS key identifier for the key to use to encrypt the copy of the DB cluster snapshot in the destination region. This is the same identifier for both the CopyDBClusterSnapshot action that is called in the destination region, and the action contained in the pre-signed URL.

    • DestinationRegion - The name of the region that the DB cluster snapshot will be created in.

    • SourceDBClusterSnapshotIdentifier - The DB cluster snapshot identifier for the encrypted DB cluster snapshot to be copied. This identifier must be in the Amazon Resource Name (ARN) format for the source region. For example, if you are copying an encrypted DB cluster snapshot from the us-west-2 region, then your SourceDBClusterSnapshotIdentifier looks like the following example: arn:aws:rds:us-west-2:123456789012:cluster-snapshot:aurora-cluster1-snapshot-20161115.

    To learn how to generate a Signature Version 4 signed request, see Authenticating Requests: Using Query Parameters (AWS Signature Version 4) and Signature Version 4 Signing Process.

  • TargetDBClusterSnapshotIdentifier - The identifier for the new copy of the DB cluster snapshot in the destination region.

  • SourceDBClusterSnapshotIdentifier - The DB cluster snapshot identifier for the encrypted DB cluster snapshot to be copied. This identifier must be in the ARN format for the source region and is the same value as the SourceDBClusterSnapshotIdentifier in the pre-signed URL.

To cancel the copy operation once it is in progress, delete the target DB cluster snapshot identified by TargetDBClusterSnapshotIdentifier while that DB cluster snapshot is in \"copying\" status.

For more information on copying encrypted DB cluster snapshots from one region to another, see Copying a DB Cluster Snapshot in the Same Account, Either in the Same Region or Across Regions in the Amazon RDS User Guide.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", "CopyDBParameterGroup": "

Copies the specified DB parameter group.

", - "CopyDBSnapshot": "

Copies the specified DB snapshot. The source DB snapshot must be in the \"available\" state.

If you are copying from a shared manual DB snapshot, the SourceDBSnapshotIdentifier must be the ARN of the shared DB snapshot.

", + "CopyDBSnapshot": "

Copies the specified DB snapshot. The source DB snapshot must be in the \"available\" state.

To copy a DB snapshot from a shared manual DB snapshot, SourceDBSnapshotIdentifier must be the Amazon Resource Name (ARN) of the shared DB snapshot.

You can copy an encrypted DB snapshot from another AWS Region. In that case, the region where you call the CopyDBSnapshot action is the destination region for the encrypted DB snapshot to be copied to. To copy an encrypted DB snapshot from another region, you must provide the following values:

  • KmsKeyId - The AWS Key Management System (KMS) key identifier for the key to use to encrypt the copy of the DB snapshot in the destination region.

  • PreSignedUrl - A URL that contains a Signature Version 4 signed request for the CopyDBSnapshot action to be called in the source region where the DB snapshot will be copied from. The presigned URL must be a valid request for the CopyDBSnapshot API action that can be executed in the source region that contains the encrypted DB snapshot to be copied.

    The presigned URL request must contain the following parameter values:

    • DestinationRegion - The AWS Region that the encrypted DB snapshot will be copied to. This region is the same one where the CopyDBSnapshot action is called that contains this presigned URL.

      For example, if you copy an encrypted DB snapshot from the us-west-2 region to the us-east-1 region, then you will call the CopyDBSnapshot action in the us-east-1 region and provide a presigned URL that contains a call to the CopyDBSnapshot action in the us-west-2 region. For this example, the DestinationRegion in the presigned URL must be set to the us-east-1 region.

    • KmsKeyId - The KMS key identifier for the key to use to encrypt the copy of the DB snapshot in the destination region. This identifier is the same for both the CopyDBSnapshot action that is called in the destination region, and the action contained in the presigned URL.

    • SourceDBSnapshotIdentifier - The DB snapshot identifier for the encrypted snapshot to be copied. This identifier must be in the Amazon Resource Name (ARN) format for the source region. For example, if you copy an encrypted DB snapshot from the us-west-2 region, then your SourceDBSnapshotIdentifier looks like this example: arn:aws:rds:us-west-2:123456789012:snapshot:mysql-instance1-snapshot-20161115.

    To learn how to generate a Signature Version 4 signed request, see Authenticating Requests: Using Query Parameters (AWS Signature Version 4) and Signature Version 4 Signing Process.

  • TargetDBSnapshotIdentifier - The identifier for the new copy of the DB snapshot in the destination region.

  • SourceDBSnapshotIdentifier - The DB snapshot identifier for the encrypted snapshot to be copied. This identifier must be in the ARN format for the source region and is the same value as the SourceDBSnapshotIdentifier in the presigned URL.

For more information on copying encrypted snapshots from one region to another, see Copying an Encrypted DB Snapshot to Another Region in the Amazon RDS User Guide.

", "CopyOptionGroup": "

Copies the specified option group.

", - "CreateDBCluster": "

Creates a new Amazon Aurora DB cluster.

You can use the ReplicationSourceIdentifier parameter to create the DB cluster as a Read Replica of another DB cluster.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", + "CreateDBCluster": "

Creates a new Amazon Aurora DB cluster.

You can use the ReplicationSourceIdentifier parameter to create the DB cluster as a Read Replica of another DB cluster or Amazon RDS MySQL DB instance. For cross-region replication where the DB cluster identified by ReplicationSourceIdentifier is encrypted, you must also specify the PreSignedUrl parameter.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", "CreateDBClusterParameterGroup": "

Creates a new DB cluster parameter group.

Parameters in a DB cluster parameter group apply to all of the instances in a DB cluster.

A DB cluster parameter group is initially created with the default parameters for the database engine used by instances in the DB cluster. To provide custom values for any of the parameters, you must modify the group after creating it using ModifyDBClusterParameterGroup. Once you've created a DB cluster parameter group, you need to associate it with your DB cluster using ModifyDBCluster. When you associate a new DB cluster parameter group with a running DB cluster, you need to reboot the DB instances in the DB cluster without failover for the new DB cluster parameter group and associated settings to take effect.

After you create a DB cluster parameter group, you should wait at least 5 minutes before creating your first DB cluster that uses that DB cluster parameter group as the default parameter group. This allows Amazon RDS to fully complete the create action before the DB cluster parameter group is used as the default for a new DB cluster. This is especially important for parameters that are critical when creating the default database for a DB cluster, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon RDS console or the DescribeDBClusterParameters command to verify that your DB cluster parameter group has been created or modified.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", "CreateDBClusterSnapshot": "

Creates a snapshot of a DB cluster. For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", "CreateDBInstance": "

Creates a new DB instance.

", - "CreateDBInstanceReadReplica": "

Creates a DB instance for a DB instance running MySQL, MariaDB, or PostgreSQL that acts as a Read Replica of a source DB instance.

All Read Replica DB instances are created as Single-AZ deployments with backups disabled. All other DB instance attributes (including DB security groups and DB parameter groups) are inherited from the source DB instance, except as specified below.

The source DB instance must have backup retention enabled.

", + "CreateDBInstanceReadReplica": "

Creates a DB instance for a DB instance running MySQL, MariaDB, or PostgreSQL that acts as a Read Replica of a source DB instance.

All Read Replica DB instances are created as Single-AZ deployments with backups disabled. All other DB instance attributes (including DB security groups and DB parameter groups) are inherited from the source DB instance, except as specified below.

The source DB instance must have backup retention enabled.

You can create an encrypted Read Replica in a different AWS Region than the source DB instance. In that case, the region where you call the CreateDBInstanceReadReplica action is the destination region of the encrypted Read Replica. The source DB instance must be encrypted.

To create an encrypted Read Replica in another AWS Region, you must provide the following values:

  • KmsKeyId - The AWS Key Management System (KMS) key identifier for the key to use to encrypt the Read Replica in the destination region.

  • PreSignedUrl - A URL that contains a Signature Version 4 signed request for the CreateDBInstanceReadReplica API action in the AWS region that contains the source DB instance. The PreSignedUrl parameter must be used when encrypting a Read Replica from another AWS region.

    The presigned URL must be a valid request for the CreateDBInstanceReadReplica API action that can be executed in the source region that contains the encrypted DB instance. The presigned URL request must contain the following parameter values:

    • DestinationRegion - The AWS Region that the Read Replica is created in. This region is the same one where the CreateDBInstanceReadReplica action is called that contains this presigned URL.

      For example, if you create an encrypted Read Replica in the us-east-1 region, and the source DB instance is in the west-2 region, then you call the CreateDBInstanceReadReplica action in the us-east-1 region and provide a presigned URL that contains a call to the CreateDBInstanceReadReplica action in the us-west-2 region. For this example, the DestinationRegion in the presigned URL must be set to the us-east-1 region.

    • KmsKeyId - The KMS key identifier for the key to use to encrypt the Read Replica in the destination region. This is the same identifier for both the CreateDBInstanceReadReplica action that is called in the destination region, and the action contained in the presigned URL.

    • SourceDBInstanceIdentifier - The DB instance identifier for the encrypted Read Replica to be created. This identifier must be in the Amazon Resource Name (ARN) format for the source region. For example, if you create an encrypted Read Replica from a DB instance in the us-west-2 region, then your SourceDBInstanceIdentifier would look like this example: arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-instance-20161115.

    To learn how to generate a Signature Version 4 signed request, see Authenticating Requests: Using Query Parameters (AWS Signature Version 4) and Signature Version 4 Signing Process.

  • DBInstanceIdentifier - The identifier for the encrypted Read Replica in the destination region.

  • SourceDBInstanceIdentifier - The DB instance identifier for the encrypted Read Replica. This identifier must be in the ARN format for the source region and is the same value as the SourceDBInstanceIdentifier in the presigned URL.

", "CreateDBParameterGroup": "

Creates a new DB parameter group.

A DB parameter group is initially created with the default parameters for the database engine used by the DB instance. To provide custom values for any of the parameters, you must modify the group after creating it using ModifyDBParameterGroup. Once you've created a DB parameter group, you need to associate it with your DB instance using ModifyDBInstance. When you associate a new DB parameter group with a running DB instance, you need to reboot the DB instance without failover for the new DB parameter group and associated settings to take effect.

After you create a DB parameter group, you should wait at least 5 minutes before creating your first DB instance that uses that DB parameter group as the default parameter group. This allows Amazon RDS to fully complete the create action before the parameter group is used as the default for a new DB instance. This is especially important for parameters that are critical when creating the default database for a DB instance, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon RDS console or the DescribeDBParameters command to verify that your DB parameter group has been created or modified.

", "CreateDBSecurityGroup": "

Creates a new DB security group. DB security groups control access to a DB instance.

", "CreateDBSnapshot": "

Creates a DBSnapshot. The source DBInstance must be in \"available\" state.

", @@ -62,13 +62,14 @@ "DescribeReservedDBInstancesOfferings": "

Lists available reserved DB instance offerings.

", "DescribeSourceRegions": "

Returns a list of the source AWS regions where the current AWS region can create a Read Replica or copy a DB snapshot from. This API action supports pagination.

", "DownloadDBLogFilePortion": "

Downloads all or a portion of the specified log file, up to 1 MB in size.

", - "FailoverDBCluster": "

Forces a failover for a DB cluster.

A failover for a DB cluster promotes one of the read-only instances in the DB cluster to the master DB instance (the cluster writer) and deletes the current primary instance.

Amazon Aurora will automatically fail over to a read-only instance, if one exists, when the primary instance fails. You can force a failover when you want to simulate a failure of a DB instance for testing. Because each instance in a DB cluster has its own endpoint address, you will need to clean up and re-establish any existing connections that use those endpoint addresses when the failover is complete.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", + "FailoverDBCluster": "

Forces a failover for a DB cluster.

A failover for a DB cluster promotes one of the Aurora Replicas (read-only instances) in the DB cluster to be the primary instance (the cluster writer).

Amazon Aurora will automatically fail over to an Aurora Replica, if one exists, when the primary instance fails. You can force a failover when you want to simulate a failure of a primary instance for testing. Because each instance in a DB cluster has its own endpoint address, you will need to clean up and re-establish any existing connections that use those endpoint addresses when the failover is complete.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", "ListTagsForResource": "

Lists all tags on an Amazon RDS resource.

For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS Resources.

", "ModifyDBCluster": "

Modify a setting for an Amazon Aurora DB cluster. You can change one or more database configuration parameters by specifying these parameters and the new values in the request. For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", "ModifyDBClusterParameterGroup": "

Modifies the parameters of a DB cluster parameter group. To modify more than one parameter, submit a list of the following: ParameterName, ParameterValue, and ApplyMethod. A maximum of 20 parameters can be modified in a single request.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

Changes to dynamic parameters are applied immediately. Changes to static parameters require a reboot without failover to the DB cluster associated with the parameter group before the change can take effect.

After you create a DB cluster parameter group, you should wait at least 5 minutes before creating your first DB cluster that uses that DB cluster parameter group as the default parameter group. This allows Amazon RDS to fully complete the create action before the parameter group is used as the default for a new DB cluster. This is especially important for parameters that are critical when creating the default database for a DB cluster, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon RDS console or the DescribeDBClusterParameters command to verify that your DB cluster parameter group has been created or modified.

", "ModifyDBClusterSnapshotAttribute": "

Adds an attribute and values to, or removes an attribute and values from, a manual DB cluster snapshot.

To share a manual DB cluster snapshot with other AWS accounts, specify restore as the AttributeName and use the ValuesToAdd parameter to add a list of IDs of the AWS accounts that are authorized to restore the manual DB cluster snapshot. Use the value all to make the manual DB cluster snapshot public, which means that it can be copied or restored by all AWS accounts. Do not add the all value for any manual DB cluster snapshots that contain private information that you don't want available to all AWS accounts.

To view which AWS accounts have access to copy or restore a manual DB cluster snapshot, or whether a manual DB cluster snapshot public or private, use the DescribeDBClusterSnapshotAttributes API action.

If a manual DB cluster snapshot is encrypted, it cannot be shared.

", "ModifyDBInstance": "

Modifies settings for a DB instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.

", "ModifyDBParameterGroup": "

Modifies the parameters of a DB parameter group. To modify more than one parameter, submit a list of the following: ParameterName, ParameterValue, and ApplyMethod. A maximum of 20 parameters can be modified in a single request.

Changes to dynamic parameters are applied immediately. Changes to static parameters require a reboot without failover to the DB instance associated with the parameter group before the change can take effect.

After you modify a DB parameter group, you should wait at least 5 minutes before creating your first DB instance that uses that DB parameter group as the default parameter group. This allows Amazon RDS to fully complete the modify action before the parameter group is used as the default for a new DB instance. This is especially important for parameters that are critical when creating the default database for a DB instance, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon RDS console or the DescribeDBParameters command to verify that your DB parameter group has been created or modified.

", + "ModifyDBSnapshot": "

Updates a manual DB snapshot, which can be encrypted or not encrypted, with a new engine version. You can update the engine version to either a new major or minor engine version.

Amazon RDS supports upgrading a MySQL DB snapshot from MySQL 5.1 to MySQL 5.5.

", "ModifyDBSnapshotAttribute": "

Adds an attribute and values to, or removes an attribute and values from, a manual DB snapshot.

To share a manual DB snapshot with other AWS accounts, specify restore as the AttributeName and use the ValuesToAdd parameter to add a list of IDs of the AWS accounts that are authorized to restore the manual DB snapshot. Uses the value all to make the manual DB snapshot public, which means it can be copied or restored by all AWS accounts. Do not add the all value for any manual DB snapshots that contain private information that you don't want available to all AWS accounts.

To view which AWS accounts have access to copy or restore a manual DB snapshot, or whether a manual DB snapshot public or private, use the DescribeDBSnapshotAttributes API action.

If the manual DB snapshot is encrypted, it cannot be shared.

", "ModifyDBSubnetGroup": "

Modifies an existing DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region.

", "ModifyEventSubscription": "

Modifies an existing RDS event notification subscription. Note that you cannot modify the source identifiers using this call; to change source identifiers for a subscription, use the AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription calls.

You can see a list of the event categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

", @@ -205,6 +206,7 @@ "Boolean": { "base": null, "refs": { + "DBCluster$MultiAZ": "

Specifies whether the DB cluster has instances in multiple Availability Zones.

", "DBCluster$StorageEncrypted": "

Specifies whether the DB cluster is encrypted.

", "DBClusterMember$IsClusterWriter": "

Value that is true if the cluster member is the primary instance for the DB cluster and false otherwise.

", "DBClusterSnapshot$StorageEncrypted": "

Specifies whether the DB cluster snapshot is encrypted.

", @@ -258,6 +260,7 @@ "BooleanOptional": { "base": null, "refs": { + "CopyDBClusterSnapshotMessage$CopyTags": null, "CopyDBSnapshotMessage$CopyTags": "

True to copy all tags from the source DB snapshot to the target DB snapshot; otherwise false. The default is false.

", "CreateDBClusterMessage$StorageEncrypted": "

Specifies whether the DB cluster is encrypted.

", "CreateDBInstanceMessage$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the MultiAZ parameter is set to true.

", @@ -847,7 +850,8 @@ "CopyDBSnapshotResult$DBSnapshot": null, "CreateDBSnapshotResult$DBSnapshot": null, "DBSnapshotList$member": null, - "DeleteDBSnapshotResult$DBSnapshot": null + "DeleteDBSnapshotResult$DBSnapshot": null, + "ModifyDBSnapshotResult$DBSnapshot": null } }, "DBSnapshotAlreadyExistsFault": { @@ -1354,9 +1358,9 @@ "DescribeDBClusterParameterGroupsMessage$Filters": "

This parameter is not currently supported.

", "DescribeDBClusterParametersMessage$Filters": "

This parameter is not currently supported.

", "DescribeDBClusterSnapshotsMessage$Filters": "

This parameter is not currently supported.

", - "DescribeDBClustersMessage$Filters": "

This parameter is not currently supported.

", + "DescribeDBClustersMessage$Filters": "

A filter that specifies one or more DB clusters to describe.

Supported filters:

  • db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs). The results list will only include information about the DB clusters identified by these ARNs.

", "DescribeDBEngineVersionsMessage$Filters": "

Not currently supported.

", - "DescribeDBInstancesMessage$Filters": "

This parameter is not currently supported.

", + "DescribeDBInstancesMessage$Filters": "

A filter that specifies one or more DB instances to describe.

Supported filters:

  • db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs). The results list will only include information about the DB instances associated with the DB Clusters identified by these ARNs.

  • db-instance-id - Accepts DB instance identifiers and DB instance Amazon Resource Names (ARNs). The results list will only include information about the DB instances identified by these ARNs.

", "DescribeDBLogFilesMessage$Filters": "

This parameter is not currently supported.

", "DescribeDBParameterGroupsMessage$Filters": "

This parameter is not currently supported.

", "DescribeDBParametersMessage$Filters": "

This parameter is not currently supported.

", @@ -1371,7 +1375,7 @@ "DescribeOptionGroupOptionsMessage$Filters": "

This parameter is not currently supported.

", "DescribeOptionGroupsMessage$Filters": "

This parameter is not currently supported.

", "DescribeOrderableDBInstanceOptionsMessage$Filters": "

This parameter is not currently supported.

", - "DescribePendingMaintenanceActionsMessage$Filters": "

A filter that specifies one or more resources to return pending maintenance actions for.

Supported filters:

  • db-instance-id - Accepts DB instance identifiers and DB instance Amazon Resource Names (ARNs). The results list will only include pending maintenance actions for the DB instances identified by these ARNs.

", + "DescribePendingMaintenanceActionsMessage$Filters": "

A filter that specifies one or more resources to return pending maintenance actions for.

Supported filters:

  • db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs). The results list will only include pending maintenance actions for the DB clusters identified by these ARNs.

  • db-instance-id - Accepts DB instance identifiers and DB instance ARNs. The results list will only include pending maintenance actions for the DB instances identified by these ARNs.

", "DescribeReservedDBInstancesMessage$Filters": "

This parameter is not currently supported.

", "DescribeReservedDBInstancesOfferingsMessage$Filters": "

This parameter is not currently supported.

", "DescribeSourceRegionsMessage$Filters": "

This parameter is not currently supported.

", @@ -1661,6 +1665,16 @@ "refs": { } }, + "ModifyDBSnapshotMessage": { + "base": null, + "refs": { + } + }, + "ModifyDBSnapshotResult": { + "base": null, + "refs": { + } + }, "ModifyDBSubnetGroupMessage": { "base": "

", "refs": { @@ -1944,6 +1958,12 @@ "refs": { } }, + "ReadReplicaDBClusterIdentifierList": { + "base": null, + "refs": { + "DBInstance$ReadReplicaDBClusterIdentifiers": "

Contains one or more identifiers of Aurora DB clusters that are Read Replicas of this DB instance.

" + } + }, "ReadReplicaDBInstanceIdentifierList": { "base": null, "refs": { @@ -2239,12 +2259,15 @@ "CopyDBClusterParameterGroupMessage$TargetDBClusterParameterGroupDescription": "

A description for the copied DB cluster parameter group.

", "CopyDBClusterSnapshotMessage$SourceDBClusterSnapshotIdentifier": "

The identifier of the DB cluster snapshot to copy. This parameter is not case-sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens.

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: my-cluster-snapshot1

", "CopyDBClusterSnapshotMessage$TargetDBClusterSnapshotIdentifier": "

The identifier of the new DB cluster snapshot to create from the source DB cluster snapshot. This parameter is not case-sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens.

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: my-cluster-snapshot2

", + "CopyDBClusterSnapshotMessage$KmsKeyId": "

The AWS KMS key ID for an encrypted DB cluster snapshot. The KMS key ID is the Amazon Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS encryption key.

If you copy an unencrypted DB cluster snapshot and specify a value for the KmsKeyId parameter, Amazon RDS encrypts the target DB cluster snapshot using the specified KMS encryption key.

If you copy an encrypted DB cluster snapshot from your AWS account, you can specify a value for KmsKeyId to encrypt the copy with a new KMS encryption key. If you don't specify a value for KmsKeyId, then the copy of the DB cluster snapshot is encrypted with the same KMS key as the source DB cluster snapshot.

If you copy an encrypted DB cluster snapshot that is shared from another AWS account, then you must specify a value for KmsKeyId.

To copy an encrypted DB cluster snapshot to another region, you must set KmsKeyId to the KMS key ID you want to use to encrypt the copy of the DB cluster snapshot in the destination region. KMS encryption keys are specific to the region that they are created in, and you cannot use encryption keys from one region in another region.

", + "CopyDBClusterSnapshotMessage$PreSignedUrl": "

The URL that contains a Signature Version 4 signed request for the CopyDBClusterSnapshot API action in the AWS region that contains the source DB cluster snapshot to copy. The PreSignedUrl parameter must be used when copying an encrypted DB cluster snapshot from another AWS region.

The pre-signed URL must be a valid request for the CopyDBSClusterSnapshot API action that can be executed in the source region that contains the encrypted DB cluster snapshot to be copied. The pre-signed URL request must contain the following parameter values:

  • KmsKeyId - The KMS key identifier for the key to use to encrypt the copy of the DB cluster snapshot in the destination region. This is the same identifier for both the CopyDBClusterSnapshot action that is called in the destination region, and the action contained in the pre-signed URL.

  • DestinationRegion - The name of the region that the DB cluster snapshot will be created in.

  • SourceDBClusterSnapshotIdentifier - The DB cluster snapshot identifier for the encrypted DB cluster snapshot to be copied. This identifier must be in the Amazon Resource Name (ARN) format for the source region. For example, if you are copying an encrypted DB cluster snapshot from the us-west-2 region, then your SourceDBClusterSnapshotIdentifier looks like the following example: arn:aws:rds:us-west-2:123456789012:cluster-snapshot:aurora-cluster1-snapshot-20161115.

To learn how to generate a Signature Version 4 signed request, see Authenticating Requests: Using Query Parameters (AWS Signature Version 4) and Signature Version 4 Signing Process.

", "CopyDBParameterGroupMessage$SourceDBParameterGroupIdentifier": "

The identifier or ARN for the source DB parameter group. For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

Constraints:

  • Must specify a valid DB parameter group.

  • Must specify a valid DB parameter group identifier, for example my-db-param-group, or a valid ARN.

", "CopyDBParameterGroupMessage$TargetDBParameterGroupIdentifier": "

The identifier for the copied DB parameter group.

Constraints:

  • Cannot be null, empty, or blank

  • Must contain from 1 to 255 alphanumeric characters or hyphens

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-db-parameter-group

", "CopyDBParameterGroupMessage$TargetDBParameterGroupDescription": "

A description for the copied DB parameter group.

", - "CopyDBSnapshotMessage$SourceDBSnapshotIdentifier": "

The identifier for the source DB snapshot.

If you are copying from a shared manual DB snapshot, this must be the ARN of the shared DB snapshot.

Constraints:

  • Must specify a valid system snapshot in the \"available\" state.

  • If the source snapshot is in the same region as the copy, specify a valid DB snapshot identifier.

  • If the source snapshot is in a different region than the copy, specify a valid DB snapshot ARN. For more information, go to Copying a DB Snapshot.

Example: rds:mydb-2012-04-02-00-01

Example: arn:aws:rds:rr-regn-1:123456789012:snapshot:mysql-instance1-snapshot-20130805

", + "CopyDBSnapshotMessage$SourceDBSnapshotIdentifier": "

The identifier for the source DB snapshot.

If you are copying from a shared manual DB snapshot, this must be the ARN of the shared DB snapshot.

You cannot copy an encrypted, shared DB snapshot from one AWS region to another.

Constraints:

  • Must specify a valid system snapshot in the \"available\" state.

  • If the source snapshot is in the same region as the copy, specify a valid DB snapshot identifier.

  • If the source snapshot is in a different region than the copy, specify a valid DB snapshot ARN. For more information, go to Copying a DB Snapshot.

Example: rds:mydb-2012-04-02-00-01

Example: arn:aws:rds:us-west-2:123456789012:snapshot:mysql-instance1-snapshot-20130805

", "CopyDBSnapshotMessage$TargetDBSnapshotIdentifier": "

The identifier for the copied snapshot.

Constraints:

  • Cannot be null, empty, or blank

  • Must contain from 1 to 255 alphanumeric characters or hyphens

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-db-snapshot

", - "CopyDBSnapshotMessage$KmsKeyId": "

The AWS Key Management Service (AWS KMS) key identifier for an encrypted DB snapshot. The KMS key identifier is the Amazon Resource Name (ARN) or the KMS key alias for the KMS encryption key.

If you copy an unencrypted DB snapshot and specify a value for the KmsKeyId parameter, Amazon RDS encrypts the target DB snapshot using the specified KMS encryption key.

If you copy an encrypted DB snapshot from your AWS account, you can specify a value for KmsKeyId to encrypt the copy with a new KMS encryption key. If you don't specify a value for KmsKeyId then the copy of the DB snapshot is encrypted with the same KMS key as the source DB snapshot.

If you copy an encrypted DB snapshot that is shared from another AWS account, then you must specify a value for KmsKeyId.

", + "CopyDBSnapshotMessage$KmsKeyId": "

The AWS KMS key ID for an encrypted DB snapshot. The KMS key ID is the Amazon Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS encryption key.

If you copy an unencrypted DB snapshot and specify a value for the KmsKeyId parameter, Amazon RDS encrypts the target DB snapshot using the specified KMS encryption key.

If you copy an encrypted DB snapshot from your AWS account, you can specify a value for KmsKeyId to encrypt the copy with a new KMS encryption key. If you don't specify a value for KmsKeyId, then the copy of the DB snapshot is encrypted with the same KMS key as the source DB snapshot.

If you copy an encrypted snapshot to a different AWS region, then you must specify a KMS key for the destination AWS region.

If you copy an encrypted DB snapshot that is shared from another AWS account, then you must specify a value for KmsKeyId.

To copy an encrypted DB snapshot to another region, you must set KmsKeyId to the KMS key ID used to encrypt the copy of the DB snapshot in the destination region. KMS encryption keys are specific to the region that they are created in, and you cannot use encryption keys from one region in another region.

", + "CopyDBSnapshotMessage$PreSignedUrl": "

The URL that contains a Signature Version 4 signed request for the CopyDBSnapshot API action in the AWS region that contains the source DB snapshot to copy. The PreSignedUrl parameter must be used when copying an encrypted DB snapshot from another AWS region.

The presigned URL must be a valid request for the CopyDBSnapshot API action that can be executed in the source region that contains the encrypted DB snapshot to be copied. The presigned URL request must contain the following parameter values:

  • DestinationRegion - The AWS Region that the encrypted DB snapshot will be copied to. This region is the same one where the CopyDBSnapshot action is called that contains this presigned URL.

    For example, if you copy an encrypted DB snapshot from the us-west-2 region to the us-east-1 region, then you will call the CopyDBSnapshot action in the us-east-1 region and provide a presigned URL that contains a call to the CopyDBSnapshot action in the us-west-2 region. For this example, the DestinationRegion in the presigned URL must be set to the us-east-1 region.

  • KmsKeyId - The KMS key identifier for the key to use to encrypt the copy of the DB snapshot in the destination region. This is the same identifier for both the CopyDBSnapshot action that is called in the destination region, and the action contained in the presigned URL.

  • SourceDBSnapshotIdentifier - The DB snapshot identifier for the encrypted snapshot to be copied. This identifier must be in the Amazon Resource Name (ARN) format for the source region. For example, if you are copying an encrypted DB snapshot from the us-west-2 region, then your SourceDBSnapshotIdentifier would look like Example: arn:aws:rds:us-west-2:123456789012:snapshot:mysql-instance1-snapshot-20161115.

To learn how to generate a Signature Version 4 signed request, see Authenticating Requests: Using Query Parameters (AWS Signature Version 4) and Signature Version 4 Signing Process.

", "CopyOptionGroupMessage$SourceOptionGroupIdentifier": "

The identifier or ARN for the source option group. For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

Constraints:

  • Must specify a valid option group.

  • If the source option group is in the same region as the copy, specify a valid option group identifier, for example my-option-group, or a valid ARN.

  • If the source option group is in a different region than the copy, specify a valid option group ARN, for example arn:aws:rds:us-west-2:123456789012:og:special-options.

", "CopyOptionGroupMessage$TargetOptionGroupIdentifier": "

The identifier for the copied option group.

Constraints:

  • Cannot be null, empty, or blank

  • Must contain from 1 to 255 alphanumeric characters or hyphens

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-option-group

", "CopyOptionGroupMessage$TargetOptionGroupDescription": "

The description for the copied option group.

", @@ -2260,8 +2283,9 @@ "CreateDBClusterMessage$OptionGroupName": "

A value that indicates that the DB cluster should be associated with the specified option group.

Permanent options cannot be removed from an option group. The option group cannot be removed from a DB cluster once it is associated with a DB cluster.

", "CreateDBClusterMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled using the BackupRetentionPeriod parameter.

Default: A 30-minute window selected at random from an 8-hour block of time per region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

Constraints:

  • Must be in the format hh24:mi-hh24:mi.

  • Times should be in Universal Coordinated Time (UTC).

  • Must not conflict with the preferred maintenance window.

  • Must be at least 30 minutes.

", "CreateDBClusterMessage$PreferredMaintenanceWindow": "

The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

Format: ddd:hh24:mi-ddd:hh24:mi

Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute window.

", - "CreateDBClusterMessage$ReplicationSourceIdentifier": "

The Amazon Resource Name (ARN) of the source DB cluster if this DB cluster is created as a Read Replica.

", - "CreateDBClusterMessage$KmsKeyId": "

The KMS key identifier for an encrypted DB cluster.

The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a DB cluster with the same AWS account that owns the KMS encryption key used to encrypt the new DB cluster, then you can use the KMS key alias instead of the ARN for the KM encryption key.

If the StorageEncrypted parameter is true, and you do not specify a value for the KmsKeyId parameter, then Amazon RDS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.

", + "CreateDBClusterMessage$ReplicationSourceIdentifier": "

The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a Read Replica.

", + "CreateDBClusterMessage$KmsKeyId": "

The KMS key identifier for an encrypted DB cluster.

The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a DB cluster with the same AWS account that owns the KMS encryption key used to encrypt the new DB cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key.

If the StorageEncrypted parameter is true, and you do not specify a value for the KmsKeyId parameter, then Amazon RDS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.

If you create a Read Replica of an encrypted DB cluster in another region, you must set KmsKeyId to a KMS key ID that is valid in the destination region. This key is used to encrypt the Read Replica in that region.

", + "CreateDBClusterMessage$PreSignedUrl": "

A URL that contains a Signature Version 4 signed request for the CreateDBCluster action to be called in the source region where the DB cluster will be replicated from. You only need to specify PreSignedUrl when you are performing cross-region replication from an encrypted DB cluster.

The pre-signed URL must be a valid request for the CreateDBCluster API action that can be executed in the source region that contains the encrypted DB cluster to be copied.

The pre-signed URL request must contain the following parameter values:

  • KmsKeyId - The KMS key identifier for the key to use to encrypt the copy of the DB cluster in the destination region. This should refer to the same KMS key for both the CreateDBCluster action that is called in the destination region, and the action contained in the pre-signed URL.

  • DestinationRegion - The name of the region that Aurora Read Replica will be created in.

  • ReplicationSourceIdentifier - The DB cluster identifier for the encrypted DB cluster to be copied. This identifier must be in the Amazon Resource Name (ARN) format for the source region. For example, if you are copying an encrypted DB cluster from the us-west-2 region, then your ReplicationSourceIdentifier would look like Example: arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1.

To learn how to generate a Signature Version 4 signed request, see Authenticating Requests: Using Query Parameters (AWS Signature Version 4) and Signature Version 4 Signing Process.

", "CreateDBClusterParameterGroupMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group.

Constraints:

  • Must be 1 to 255 alphanumeric characters

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

This value is stored as a lowercase string.

", "CreateDBClusterParameterGroupMessage$DBParameterGroupFamily": "

The DB cluster parameter group family name. A DB cluster parameter group can be associated with one and only one DB cluster parameter group family, and can be applied only to a DB cluster running a database engine and engine version compatible with that DB cluster parameter group family.

", "CreateDBClusterParameterGroupMessage$Description": "

The description for the DB cluster parameter group.

", @@ -2269,7 +2293,7 @@ "CreateDBClusterSnapshotMessage$DBClusterIdentifier": "

The identifier of the DB cluster to create a snapshot for. This parameter is not case-sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens.

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: my-cluster1

", "CreateDBInstanceMessage$DBName": "

The meaning of this parameter differs according to the database engine you use.

Type: String

MySQL

The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance.

Constraints:

  • Must contain 1 to 64 alphanumeric characters

  • Cannot be a word reserved by the specified database engine

MariaDB

The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance.

Constraints:

  • Must contain 1 to 64 alphanumeric characters

  • Cannot be a word reserved by the specified database engine

PostgreSQL

The name of the database to create when the DB instance is created. If this parameter is not specified, the default \"postgres\" database is created in the DB instance.

Constraints:

  • Must contain 1 to 63 alphanumeric characters

  • Must begin with a letter or an underscore. Subsequent characters can be letters, underscores, or digits (0-9).

  • Cannot be a word reserved by the specified database engine

Oracle

The Oracle System ID (SID) of the created DB instance.

Default: ORCL

Constraints:

  • Cannot be longer than 8 characters

SQL Server

Not applicable. Must be null.

Amazon Aurora

The name of the database to create when the primary instance of the DB cluster is created. If this parameter is not specified, no database is created in the DB instance.

Constraints:

  • Must contain 1 to 64 alphanumeric characters

  • Cannot be a word reserved by the specified database engine

", "CreateDBInstanceMessage$DBInstanceIdentifier": "

The DB instance identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 for SQL Server).

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: mydbinstance

", - "CreateDBInstanceMessage$DBInstanceClass": "

The compute and memory capacity of the DB instance.

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium | db.t2.large

", + "CreateDBInstanceMessage$DBInstanceClass": "

The compute and memory capacity of the DB instance. Note that not all instance classes are available in all regions for all DB engines.

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium | db.t2.large

", "CreateDBInstanceMessage$Engine": "

The name of the database engine to be used for this instance.

Valid Values: mysql | mariadb | oracle-se1 | oracle-se2 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | aurora

Not every database engine is available for every AWS region.

", "CreateDBInstanceMessage$MasterUsername": "

The name of master user for the client DB instance.

MySQL

Constraints:

  • Must be 1 to 16 alphanumeric characters.

  • First character must be a letter.

  • Cannot be a reserved word for the chosen database engine.

MariaDB

Constraints:

  • Must be 1 to 16 alphanumeric characters.

  • Cannot be a reserved word for the chosen database engine.

Type: String

Oracle

Constraints:

  • Must be 1 to 30 alphanumeric characters.

  • First character must be a letter.

  • Cannot be a reserved word for the chosen database engine.

SQL Server

Constraints:

  • Must be 1 to 128 alphanumeric characters.

  • First character must be a letter.

  • Cannot be a reserved word for the chosen database engine.

PostgreSQL

Constraints:

  • Must be 1 to 63 alphanumeric characters.

  • First character must be a letter.

  • Cannot be a reserved word for the chosen database engine.

", "CreateDBInstanceMessage$MasterUserPassword": "

The password for the master database user. Can be any printable ASCII character except \"/\", \"\"\", or \"@\".

Type: String

MySQL

Constraints: Must contain from 8 to 41 characters.

MariaDB

Constraints: Must contain from 8 to 41 characters.

Oracle

Constraints: Must contain from 8 to 30 characters.

SQL Server

Constraints: Must contain from 8 to 128 characters.

PostgreSQL

Constraints: Must contain from 8 to 128 characters.

Amazon Aurora

Constraints: Must contain from 8 to 41 characters.

", @@ -2278,7 +2302,7 @@ "CreateDBInstanceMessage$PreferredMaintenanceWindow": "

The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). For more information, see DB Instance Maintenance.

Format: ddd:hh24:mi-ddd:hh24:mi

Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute window.

", "CreateDBInstanceMessage$DBParameterGroupName": "

The name of the DB parameter group to associate with this DB instance. If this argument is omitted, the default DBParameterGroup for the specified engine will be used.

Constraints:

  • Must be 1 to 255 alphanumeric characters

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

", "CreateDBInstanceMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter. For more information, see DB Instance Backups.

Default: A 30-minute window selected at random from an 8-hour block of time per region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

Constraints:

  • Must be in the format hh24:mi-hh24:mi.

  • Times should be in Universal Coordinated Time (UTC).

  • Must not conflict with the preferred maintenance window.

  • Must be at least 30 minutes.

", - "CreateDBInstanceMessage$EngineVersion": "

The version number of the database engine to use.

The following are the database engines and major and minor versions that are available with Amazon RDS. Not every database engine is available for every AWS region.

Amazon Aurora

  • Version 5.6 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-2, eu-west-1, us-east-1, us-west-2): 5.6.10a

MariaDB

  • Version 10.1 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 10.1.14

  • Version 10.0 (available in all AWS regions): 10.0.17 | 10.0.24

MySQL

  • Version 5.7 (available in all AWS regions): 5.7.10 | 5.7.11

  • Version 5.6 (available in all AWS regions): 5.6.27 | 5.6.29

  • Version 5.6 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 5.6.23

  • Version 5.6 (available in these AWS regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 5.6.19a | 5.6.19b | 5.6.21 | 5.6.21b | 5.6.22

  • Version 5.5 (available in all AWS regions): 5.5.46

  • Version 5.5 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 5.5.42

  • Version 5.5 (available in these AWS regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 5.5.40b | 5.5.41

  • Version 5.5 (available in these AWS regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 5.5.40 | 5.5.40a

Oracle Database Enterprise Edition (oracle-ee)

  • Version 12.1.0.2 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 12.1.0.2.v5

  • Version 12.1.0.2 (available in all AWS regions): 12.1.0.2.v1 | 12.1.0.2.v2 | 12.1.0.2.v3 | 12.1.0.2.v4

  • Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 12.1.0.1.v6

  • Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5

  • Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-gov-west-1, us-west-1, us-west-2): 12.1.0.1.v1 | 12.1.0.1.v2

  • Version 11.2.0.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 11.2.0.4.v6 | 11.2.0.4.v9

  • Version 11.2.0.4 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 | 11.2.0.4.v4 | 11.2.0.4.v5 | 11.2.0.4.v7 | 11.2.0.4.v8

Oracle Database Standard Edition Two (oracle-se2)

  • Version 12.1.0.2 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 12.1.0.2.v5

  • Version 12.1.0.2 (available in all AWS regions): 12.1.0.2.v2 | 12.1.0.2.v3 | 12.1.0.2.v4

Oracle Database Standard Edition One (oracle-se1)

  • Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 12.1.0.1.v6

  • Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5

  • Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-gov-west-1, us-west-1, us-west-2): 12.1.0.1.v1 | 12.1.0.1.v2

  • Version 11.2.0.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 11.2.0.4.v6 | 11.2.0.4.v9

  • Version 11.2.0.4 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 | 11.2.0.4.v4 | 11.2.0.4.v5 | 11.2.0.4.v7 | 11.2.0.4.v8

Oracle Database Standard Edition (oracle-se)

  • Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 12.1.0.1.v6

  • Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5

  • Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-gov-west-1, us-west-1, us-west-2): 12.1.0.1.v1 | 12.1.0.1.v2

  • Version 11.2.0.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 11.2.0.4.v6 | 11.2.0.4.v9

  • Version 11.2.0.4 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 | 11.2.0.4.v4 | 11.2.0.4.v5 | 11.2.0.4.v7 | 11.2.0.4.v8

PostgreSQL

  • Version 9.5 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 9.5.2 | 9.5.4

  • Version 9.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 9.4.7 | 9.4.9

  • Version 9.4 (available in all AWS regions): 9.4.5

  • Version 9.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 9.4.1 | 9.4.4

  • Version 9.3 (available in these AWS regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 9.3.10 | 9.3.3 | 9.3.5 | 9.3.6 | 9.3.9

  • Version 9.3 (available in these AWS regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 9.3.1 | 9.3.2

  • Version 9.3 (available in these AWS regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 9.3.12 | 9.3.14

Microsoft SQL Server Enterprise Edition (sqlserver-ee)

  • Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 | 11.00.6020.0.v1

  • Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 | 10.50.6529.0.v1

Microsoft SQL Server Express Edition (sqlserver-ex)

  • Version 12.00 (available in all AWS regions): 12.00.4422.0.v1

  • Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 | 11.00.6020.0.v1

  • Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 | 10.50.6529.0.v1

Microsoft SQL Server Standard Edition (sqlserver-se)

  • Version 12.00 (available in all AWS regions): 12.00.4422.0.v1

  • Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 | 11.00.6020.0.v1

  • Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 | 10.50.6529.0.v1

Microsoft SQL Server Web Edition (sqlserver-web)

  • Version 12.00 (available in all AWS regions): 12.00.4422.0.v1

  • Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 | 11.00.6020.0.v1

  • Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 | 10.50.6529.0.v1

", + "CreateDBInstanceMessage$EngineVersion": "

The version number of the database engine to use.

The following are the database engines and major and minor versions that are available with Amazon RDS. Not every database engine is available for every AWS region.

Amazon Aurora

  • Version 5.6 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-2, eu-west-1, us-east-1, us-east-2, us-west-2): 5.6.10a

MariaDB

  • Version 10.1 (available in these AWS regions: us-east-2): 10.1.16

  • Version 10.1 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 10.1.14

  • Version 10.0 (available in all AWS regions): 10.0.24

  • Version 10.0 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 10.0.17

Microsoft SQL Server 2016

  • 13.00.2164.0.v1 (supported for all editions, and all AWS regions except sa-east-1)

Microsoft SQL Server 2014

  • 12.00.5000.0.v1 (supported for all editions, and all AWS regions)

  • 12.00.4422.0.v1 (supported for all editions except Enterprise Edition, and all AWS regions except us-east-2)

Microsoft SQL Server 2012

  • 11.00.6020.0.v1 (supported for all editions, and all AWS regions)

  • 11.00.5058.0.v1 (supported for all editions, and all AWS regions except us-east-2)

  • 11.00.2100.60.v1 (supported for all editions, and all AWS regions except us-east-2)

Microsoft SQL Server 2008 R2

  • 10.50.6529.0.v1 (supported for all editions, and all AWS regions except us-east-2)

  • 10.50.6000.34.v1 (supported for all editions, and all AWS regions except us-east-2)

  • 10.50.2789.0.v1 (supported for all editions, and all AWS regions except us-east-2)

MySQL

  • Version 5.7 (available in all AWS regions): 5.7.11

  • Version 5.7 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 5.7.10

  • Version 5.6 (available in all AWS regions): 5.6.29

  • Version 5.6 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 5.6.27

  • Version 5.6 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 5.6.23

  • Version 5.6 (available in these AWS regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 5.6.19a | 5.6.19b | 5.6.21 | 5.6.21b | 5.6.22

  • Version 5.5 (available in all AWS regions): 5.5.46

  • Version 5.1 (only available in AWS regions ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 5.1.73a | 5.1.73b

Oracle Database Enterprise Edition (oracle-ee)

  • Version 12.1 (available in all AWS regions except ap-south-1, ap-northeast-2): 12.1.0.1.v1 | 12.1.0.1.v2

  • Version 12.1 (only available in AWS regions ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5

  • Version 12.1 (available in all AWS regions): 12.1.0.2.v1

  • Version 12.1 (available in all AWS regions except us-gov-west-1): 12.1.0.2.v2 | 12.1.0.2.v3 | 12.1.0.2.v4

  • Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7

  • Version 11.2 (available in all AWS regions except ap-south-1, ap-northeast-2): 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.3.v3

  • Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 11.2.0.3.v4

  • Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 | 11.2.0.4.v4

  • Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5 | 11.2.0.4.v6 | 11.2.0.4.v7 | 11.2.0.4.v8

Oracle Database Standard Edition (oracle-se)

  • Version 12.1 (available in all AWS regions except ap-south-1, ap-northeast-2): 12.1.0.1.v1 | 12.1.0.1.v2

  • Version 12.1 (only available in AWS regions ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5

  • Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7

  • Version 11.2 (available in all AWS regions except ap-south-1, ap-northeast-2): 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.3.v3

  • Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 11.2.0.3.v4

  • Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 | 11.2.0.4.v4

  • Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5 | 11.2.0.4.v6 | 11.2.0.4.v7 | 11.2.0.4.v8

Oracle Database Standard Edition One (oracle-se1)

  • Version 12.1 (available in all AWS regions except ap-south-1, ap-northeast-2): 12.1.0.1.v1 | 12.1.0.1.v2

  • Version 12.1 (only available in AWS regions ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5

  • Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7

  • Version 11.2 (available in all AWS regions except ap-south-1, ap-northeast-2): 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.3.v3

  • Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 11.2.0.3.v4

  • Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 | 11.2.0.4.v4

  • Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5 | 11.2.0.4.v6 | 11.2.0.4.v7 | 11.2.0.4.v8

Oracle Database Standard Edition Two (oracle-se2)

  • Version 12.1 (available in all AWS regions except us-gov-west-1): 12.1.0.2.v2 | 12.1.0.2.v3 | 12.1.0.2.v4

PostgreSQL

  • Version 9.6: 9.6.1

  • Version 9.5: 9.5.4 | 9.5.2

  • Version 9.4: 9.4.9 | 9.4.7 | 9.4.5 | 9.4.4 | 9.4.1

  • Version 9.3: 9.3.14 | 9.3.12 | 9.3.10 | 9.3.9 | 9.3.6 | 9.3.5 | 9.3.3 | 9.3.2 | 9.3.1

Oracle 12c

  • 12.1.0.2.v6 (supported for EE in all AWS regions, and SE2 in all AWS regions except us-gov-west-1)

  • 12.1.0.2.v5 (supported for EE in all AWS regions, and SE2 in all AWS regions except us-gov-west-1)

  • 12.1.0.2.v4 (supported for EE in all AWS regions, and SE2 in all AWS regions except us-gov-west-1)

  • 12.1.0.2.v3 (supported for EE in all AWS regions, and SE2 in all AWS regions except us-gov-west-1)

  • 12.1.0.2.v2 (supported for EE in all AWS regions, and SE2 in all AWS regions except us-gov-west-1)

  • 12.1.0.2.v1 (supported for EE in all AWS regions, and SE2 in all AWS regions except us-gov-west-1)

  • 12.1.0.1.v6 (supported for EE, SE1, and SE, in all AWS regions except ap-south-1, ap-northeast-2)

  • 12.1.0.1.v5 (supported for EE, SE1, and SE, in all AWS regions except ap-south-1, ap-northeast-2)

  • 12.1.0.1.v4 (supported for EE, SE1, and SE, in all AWS regions except ap-south-1, ap-northeast-2)

  • 12.1.0.1.v3 (supported for EE, SE1, and SE, in all AWS regions except ap-south-1, ap-northeast-2)

  • 12.1.0.1.v2 (supported for EE, SE1, and SE, in all AWS regions except ap-south-1, ap-northeast-2)

  • 12.1.0.1.v1 (supported for EE, SE1, and SE, in all AWS regions except ap-south-1, ap-northeast-2)

Oracle 11g

  • 11.2.0.4.v10 (supported for EE, SE1, and SE, in all AWS regions)

  • 11.2.0.4.v9 (supported for EE, SE1, and SE, in all AWS regions)

  • 11.2.0.4.v8 (supported for EE, SE1, and SE, in all AWS regions)

  • 11.2.0.4.v7 (supported for EE, SE1, and SE, in all AWS regions)

  • 11.2.0.4.v6 (supported for EE, SE1, and SE, in all AWS regions)

  • 11.2.0.4.v5 (supported for EE, SE1, and SE, in all AWS regions)

  • 11.2.0.4.v4 (supported for EE, SE1, and SE, in all AWS regions)

  • 11.2.0.4.v3 (supported for EE, SE1, and SE, in all AWS regions)

  • 11.2.0.4.v1 (supported for EE, SE1, and SE, in all AWS regions)

PostgreSQL

  • Version 9.5 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 9.5.4

  • Version 9.5 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-east-2, us-west-1, us-west-2): 9.5.2

  • Version 9.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 9.4.9

  • Version 9.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-east-2, us-west-1, us-west-2): 9.4.7

  • Version 9.4 (available in all AWS regions): 9.4.5

  • Version 9.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 9.4.4

  • Version 9.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-east-2, us-gov-west-1, us-west-1, us-west-2): 9.4.1

  • Version 9.3 (available in these AWS regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 9.3.10 | 9.3.3 | 9.3.5 | 9.3.6 | 9.3.9

  • Version 9.3 (available in these AWS regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, us-west-2): 9.3.1 | 9.3.2

  • Version 9.3 (available in these AWS regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, us-west-2): 9.3.12 | 9.3.14

", "CreateDBInstanceMessage$LicenseModel": "

License model information for this DB instance.

Valid values: license-included | bring-your-own-license | general-public-license

", "CreateDBInstanceMessage$OptionGroupName": "

Indicates that the DB instance should be associated with the specified option group.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", "CreateDBInstanceMessage$CharacterSetName": "

For supported engines, indicates that the DB instance should be associated with the specified CharacterSet.

", @@ -2292,13 +2316,15 @@ "CreateDBInstanceMessage$DomainIAMRoleName": "

Specify the name of the IAM role to be used when making API calls to the Directory Service.

", "CreateDBInstanceMessage$Timezone": "

The time zone of the DB instance. The time zone parameter is currently supported only by Microsoft SQL Server.

", "CreateDBInstanceReadReplicaMessage$DBInstanceIdentifier": "

The DB instance identifier of the Read Replica. This identifier is the unique key that identifies a DB instance. This parameter is stored as a lowercase string.

", - "CreateDBInstanceReadReplicaMessage$SourceDBInstanceIdentifier": "

The identifier of the DB instance that will act as the source for the Read Replica. Each DB instance can have up to five Read Replicas.

Constraints:

  • Must be the identifier of an existing MySQL, MariaDB, or PostgreSQL DB instance.

  • Can specify a DB instance that is a MySQL Read Replica only if the source is running MySQL 5.6.

  • Can specify a DB instance that is a PostgreSQL Read Replica only if the source is running PostgreSQL 9.3.5.

  • The specified DB instance must have automatic backups enabled, its backup retention period must be greater than 0.

  • If the source DB instance is in the same region as the Read Replica, specify a valid DB instance identifier.

  • If the source DB instance is in a different region than the Read Replica, specify a valid DB instance ARN. For more information, go to Constructing a Amazon RDS Amazon Resource Name (ARN).

", - "CreateDBInstanceReadReplicaMessage$DBInstanceClass": "

The compute and memory capacity of the Read Replica.

Valid Values: db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium | db.t2.large

Default: Inherits from the source DB instance.

", + "CreateDBInstanceReadReplicaMessage$SourceDBInstanceIdentifier": "

The identifier of the DB instance that will act as the source for the Read Replica. Each DB instance can have up to five Read Replicas.

Constraints:

  • Must be the identifier of an existing MySQL, MariaDB, or PostgreSQL DB instance.

  • Can specify a DB instance that is a MySQL Read Replica only if the source is running MySQL 5.6.

  • Can specify a DB instance that is a PostgreSQL DB instance only if the source is running PostgreSQL 9.3.5 or later.

  • The specified DB instance must have automatic backups enabled, its backup retention period must be greater than 0.

  • If the source DB instance is in the same region as the Read Replica, specify a valid DB instance identifier.

  • If the source DB instance is in a different region than the Read Replica, specify a valid DB instance ARN. For more information, go to Constructing a Amazon RDS Amazon Resource Name (ARN).

", + "CreateDBInstanceReadReplicaMessage$DBInstanceClass": "

The compute and memory capacity of the Read Replica. Note that not all instance classes are available in all regions for all DB engines.

Valid Values: db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium | db.t2.large

Default: Inherits from the source DB instance.

", "CreateDBInstanceReadReplicaMessage$AvailabilityZone": "

The Amazon EC2 Availability Zone that the Read Replica will be created in.

Default: A random, system-chosen Availability Zone in the endpoint's region.

Example: us-east-1d

", "CreateDBInstanceReadReplicaMessage$OptionGroupName": "

The option group the DB instance will be associated with. If omitted, the default option group for the engine specified will be used.

", "CreateDBInstanceReadReplicaMessage$DBSubnetGroupName": "

Specifies a DB subnet group for the DB instance. The new DB instance will be created in the VPC associated with the DB subnet group. If no DB subnet group is specified, then the new DB instance is not created in a VPC.

Constraints:

  • Can only be specified if the source DB instance identifier specifies a DB instance in another region.

  • The specified DB subnet group must be in the same region in which the operation is running.

  • All Read Replicas in one region that are created from the same source DB instance must either:>

    • Specify DB subnet groups from the same VPC. All these Read Replicas will be created in the same VPC.

    • Not specify a DB subnet group. All these Read Replicas will be created outside of any VPC.

Constraints: Must contain no more than 255 alphanumeric characters, periods, underscores, spaces, or hyphens. Must not be default.

Example: mySubnetgroup

", "CreateDBInstanceReadReplicaMessage$StorageType": "

Specifies the storage type to be associated with the Read Replica.

Valid values: standard | gp2 | io1

If you specify io1, you must also include a value for the Iops parameter.

Default: io1 if the Iops parameter is specified; otherwise standard

", "CreateDBInstanceReadReplicaMessage$MonitoringRoleArn": "

The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess. For information on creating a monitoring role, go to To create an IAM role for Amazon RDS Enhanced Monitoring.

If MonitoringInterval is set to a value other than 0, then you must supply a MonitoringRoleArn value.

", + "CreateDBInstanceReadReplicaMessage$KmsKeyId": "

The AWS KMS key ID for an encrypted Read Replica. The KMS key ID is the Amazon Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS encryption key.

If you create an unencrypted Read Replica and specify a value for the KmsKeyId parameter, Amazon RDS encrypts the target Read Replica using the specified KMS encryption key.

If you create an encrypted Read Replica from your AWS account, you can specify a value for KmsKeyId to encrypt the Read Replica with a new KMS encryption key. If you don't specify a value for KmsKeyId, then the Read Replica is encrypted with the same KMS key as the source DB instance.

If you create an encrypted Read Replica in a different AWS region, then you must specify a KMS key for the destination AWS region. KMS encryption keys are specific to the region that they are created in, and you cannot use encryption keys from one region in another region.

", + "CreateDBInstanceReadReplicaMessage$PreSignedUrl": "

The URL that contains a Signature Version 4 signed request for the CreateDBInstanceReadReplica API action in the AWS region that contains the source DB instance. The PreSignedUrl parameter must be used when encrypting a Read Replica from another AWS region.

The presigned URL must be a valid request for the CreateDBInstanceReadReplica API action that can be executed in the source region that contains the encrypted DB instance. The presigned URL request must contain the following parameter values:

  • DestinationRegion - The AWS Region that the Read Replica is created in. This region is the same one where the CreateDBInstanceReadReplica action is called that contains this presigned URL.

    For example, if you create an encrypted Read Replica in the us-east-1 region, and the source DB instance is in the west-2 region, then you call the CreateDBInstanceReadReplica action in the us-east-1 region and provide a presigned URL that contains a call to the CreateDBInstanceReadReplica action in the us-west-2 region. For this example, the DestinationRegion in the presigned URL must be set to the us-east-1 region.

  • KmsKeyId - The KMS key identifier for the key to use to encrypt the Read Replica in the destination region. This is the same identifier for both the CreateDBInstanceReadReplica action that is called in the destination region, and the action contained in the presigned URL.

  • SourceDBInstanceIdentifier - The DB instance identifier for the encrypted Read Replica to be created. This identifier must be in the Amazon Resource Name (ARN) format for the source region. For example, if you create an encrypted Read Replica from a DB instance in the us-west-2 region, then your SourceDBInstanceIdentifier would look like this example: arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-instance-20161115.

To learn how to generate a Signature Version 4 signed request, see Authenticating Requests: Using Query Parameters (AWS Signature Version 4) and Signature Version 4 Signing Process.

", "CreateDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB parameter group.

Constraints:

  • Must be 1 to 255 alphanumeric characters

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

This value is stored as a lowercase string.

", "CreateDBParameterGroupMessage$DBParameterGroupFamily": "

The DB parameter group family name. A DB parameter group can be associated with one and only one DB parameter group family, and can be applied only to a DB instance running a database engine and engine version compatible with that DB parameter group family.

", "CreateDBParameterGroupMessage$Description": "

The description for the DB parameter group.

", @@ -2580,7 +2606,7 @@ "ModifyDBClusterSnapshotAttributeMessage$DBClusterSnapshotIdentifier": "

The identifier for the DB cluster snapshot to modify the attributes for.

", "ModifyDBClusterSnapshotAttributeMessage$AttributeName": "

The name of the DB cluster snapshot attribute to modify.

To manage authorization for other AWS accounts to copy or restore a manual DB cluster snapshot, set this value to restore.

", "ModifyDBInstanceMessage$DBInstanceIdentifier": "

The DB instance identifier. This value is stored as a lowercase string.

Constraints:

  • Must be the identifier for an existing DB instance

  • Must contain from 1 to 63 alphanumeric characters or hyphens

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

", - "ModifyDBInstanceMessage$DBInstanceClass": "

The new compute and memory capacity of the DB instance. To determine the instance classes that are available for a particular DB engine, use the DescribeOrderableDBInstanceOptions action.

Passing a value for this setting causes an outage during the change and is applied during the next maintenance window, unless ApplyImmediately is specified as true for this request.

Default: Uses existing setting

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium | db.t2.large

", + "ModifyDBInstanceMessage$DBInstanceClass": "

The new compute and memory capacity of the DB instance. To determine the instance classes that are available for a particular DB engine, use the DescribeOrderableDBInstanceOptions action. Note that not all instance classes are available in all regions for all DB engines.

Passing a value for this setting causes an outage during the change and is applied during the next maintenance window, unless ApplyImmediately is specified as true for this request.

Default: Uses existing setting

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium | db.t2.large

", "ModifyDBInstanceMessage$DBSubnetGroupName": "

The new DB subnet group for the DB instance. You can use this parameter to move your DB instance to a different VPC. If your DB instance is not in a VPC, you can also use this parameter to move your DB instance into a VPC. For more information, see Updating the VPC for a DB Instance.

Changing the subnet group causes an outage during the change. The change is applied during the next maintenance window, unless you specify true for the ApplyImmediately parameter.

Constraints: Must contain no more than 255 alphanumeric characters, periods, underscores, spaces, or hyphens.

Example: mySubnetGroup

", "ModifyDBInstanceMessage$MasterUserPassword": "

The new password for the DB instance master user. Can be any printable ASCII character except \"/\", \"\"\", or \"@\".

Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible. Between the time of the request and the completion of the request, the MasterUserPassword element exists in the PendingModifiedValues element of the operation response.

Default: Uses existing setting

Constraints: Must be 8 to 41 alphanumeric characters (MySQL, MariaDB, and Amazon Aurora), 8 to 30 alphanumeric characters (Oracle), or 8 to 128 alphanumeric characters (SQL Server).

Amazon RDS API actions never return the password, so this action provides a way to regain access to a primary instance user if the password is lost. This includes restoring privileges that might have been accidentally revoked.

", "ModifyDBInstanceMessage$DBParameterGroupName": "

The name of the DB parameter group to apply to the DB instance. Changing this setting does not result in an outage. The parameter group name itself is changed immediately, but the actual parameter changes are not applied until you reboot the instance without failover. The db instance will NOT be rebooted automatically and the parameter changes will NOT be applied during the next maintenance window.

Default: Uses existing setting

Constraints: The DB parameter group must be in the same DB parameter group family as this DB instance.

", @@ -2600,6 +2626,8 @@ "ModifyDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB parameter group.

Constraints:

  • Must be the name of an existing DB parameter group

  • Must be 1 to 255 alphanumeric characters

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

", "ModifyDBSnapshotAttributeMessage$DBSnapshotIdentifier": "

The identifier for the DB snapshot to modify the attributes for.

", "ModifyDBSnapshotAttributeMessage$AttributeName": "

The name of the DB snapshot attribute to modify.

To manage authorization for other AWS accounts to copy or restore a manual DB snapshot, set this value to restore.

", + "ModifyDBSnapshotMessage$DBSnapshotIdentifier": "

The identifier of the DB snapshot to modify.

", + "ModifyDBSnapshotMessage$EngineVersion": "

The engine version to update the DB snapshot to.

", "ModifyDBSubnetGroupMessage$DBSubnetGroupName": "

The name for the DB subnet group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters, periods, underscores, spaces, or hyphens. Must not be default.

Example: mySubnetgroup

", "ModifyDBSubnetGroupMessage$DBSubnetGroupDescription": "

The description for the DB subnet group.

", "ModifyEventSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription.

", @@ -2673,6 +2701,7 @@ "PromoteReadReplicaMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

Default: A 30-minute window selected at random from an 8-hour block of time per region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

Constraints:

  • Must be in the format hh24:mi-hh24:mi.

  • Times should be in Universal Coordinated Time (UTC).

  • Must not conflict with the preferred maintenance window.

  • Must be at least 30 minutes.

", "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferingId": "

The ID of the Reserved DB instance offering to purchase.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

", "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstanceId": "

Customer-specified identifier to track this reservation.

Example: myreservationID

", + "ReadReplicaDBClusterIdentifierList$member": null, "ReadReplicaDBInstanceIdentifierList$member": null, "ReadReplicaIdentifierList$member": null, "RebootDBInstanceMessage$DBInstanceIdentifier": "

The DB instance identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

", @@ -2738,7 +2767,7 @@ "RestoreDBInstanceFromDBSnapshotMessage$DBSubnetGroupName": "

The DB subnet group name to use for the new instance.

Constraints: Must contain no more than 255 alphanumeric characters, periods, underscores, spaces, or hyphens. Must not be default.

Example: mySubnetgroup

", "RestoreDBInstanceFromDBSnapshotMessage$LicenseModel": "

License model information for the restored DB instance.

Default: Same as source.

Valid values: license-included | bring-your-own-license | general-public-license

", "RestoreDBInstanceFromDBSnapshotMessage$DBName": "

The database name for the restored DB instance.

This parameter doesn't apply to the MySQL, PostgreSQL, or MariaDB engines.

", - "RestoreDBInstanceFromDBSnapshotMessage$Engine": "

The database engine to use for the new instance.

Default: The same as source

Constraint: Must be compatible with the engine of the source

Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | aurora

", + "RestoreDBInstanceFromDBSnapshotMessage$Engine": "

The database engine to use for the new instance.

Default: The same as source

Constraint: Must be compatible with the engine of the source. You can restore a MariaDB 10.1 DB instance from a MySQL 5.6 snapshot.

Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | aurora

", "RestoreDBInstanceFromDBSnapshotMessage$OptionGroupName": "

The name of the option group to be used for the restored DB instance.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", "RestoreDBInstanceFromDBSnapshotMessage$StorageType": "

Specifies the storage type to be associated with the DB instance.

Valid values: standard | gp2 | io1

If you specify io1, you must also include a value for the Iops parameter.

Default: io1 if the Iops parameter is specified; otherwise standard

", "RestoreDBInstanceFromDBSnapshotMessage$TdeCredentialArn": "

The ARN from the Key Store with which to associate the instance for TDE encryption.

", @@ -2841,6 +2870,7 @@ "Certificate$ValidTill": "

The final date that the certificate continues to be valid.

", "DBCluster$EarliestRestorableTime": "

Specifies the earliest time to which a database can be restored with point-in-time restore.

", "DBCluster$LatestRestorableTime": "

Specifies the latest time to which a database can be restored with point-in-time restore.

", + "DBCluster$ClusterCreateTime": "

Specifies the time when the DB cluster was created, in Universal Coordinated Time (UTC).

", "DBClusterSnapshot$SnapshotCreateTime": "

Provides the time when the snapshot was taken, in Universal Coordinated Time (UTC).

", "DBClusterSnapshot$ClusterCreateTime": "

Specifies the time when the DB cluster was created, in Universal Coordinated Time (UTC).

", "DBInstance$InstanceCreateTime": "

Provides the date and time the DB instance was created.

", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/paginators-1.json index 662845c12..c51d8d15b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/paginators-1.json @@ -2,109 +2,109 @@ "pagination": { "DescribeDBEngineVersions": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBEngineVersions" }, "DescribeDBInstances": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBInstances" }, "DescribeDBLogFiles": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DescribeDBLogFiles" }, "DescribeDBParameterGroups": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBParameterGroups" }, "DescribeDBParameters": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "Parameters" }, "DescribeDBSecurityGroups": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBSecurityGroups" }, "DescribeDBSnapshots": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBSnapshots" }, "DescribeDBSubnetGroups": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "DBSubnetGroups" }, "DescribeEngineDefaultParameters": { "input_token": "Marker", - "output_token": "EngineDefaults.Marker", "limit_key": "MaxRecords", + "output_token": "EngineDefaults.Marker", "result_key": "EngineDefaults.Parameters" }, "DescribeEventSubscriptions": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "EventSubscriptionsList" }, "DescribeEvents": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "Events" }, "DescribeOptionGroupOptions": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "OptionGroupOptions" }, "DescribeOptionGroups": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "OptionGroupsList" }, "DescribeOrderableDBInstanceOptions": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "OrderableDBInstanceOptions" }, "DescribeReservedDBInstances": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "ReservedDBInstances" }, "DescribeReservedDBInstancesOfferings": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "MaxRecords", + "output_token": "Marker", "result_key": "ReservedDBInstancesOfferings" }, "DownloadDBLogFilePortion": { "input_token": "Marker", - "output_token": "Marker", "limit_key": "NumberOfLines", "more_results": "AdditionalDataPending", + "output_token": "Marker", "result_key": "LogFileData" }, "ListTagsForResource": { "result_key": "TagList" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/api-2.json index 304f8672d..05f13d873 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"redshift-2012-12-01", "apiVersion":"2012-12-01", "endpointPrefix":"redshift", "protocol":"query", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rekognition/2016-06-27/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rekognition/2016-06-27/api-2.json new file mode 100644 index 000000000..9f030177c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rekognition/2016-06-27/api-2.json @@ -0,0 +1,844 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2016-06-27", + "endpointPrefix":"rekognition", + "jsonVersion":"1.1", + "protocol":"json", + "serviceFullName":"Amazon Rekognition", + "signatureVersion":"v4", + "targetPrefix":"RekognitionService", + "uid":"rekognition-2016-06-27" + }, + "operations":{ + "CompareFaces":{ + "name":"CompareFaces", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CompareFacesRequest"}, + "output":{"shape":"CompareFacesResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"InvalidS3ObjectException"}, + {"shape":"ImageTooLargeException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerError"}, + {"shape":"ThrottlingException"}, + {"shape":"ProvisionedThroughputExceededException"}, + {"shape":"InvalidImageFormatException"} + ] + }, + "CreateCollection":{ + "name":"CreateCollection", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateCollectionRequest"}, + "output":{"shape":"CreateCollectionResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerError"}, + {"shape":"ThrottlingException"}, + {"shape":"ProvisionedThroughputExceededException"}, + {"shape":"ResourceAlreadyExistsException"} + ] + }, + "DeleteCollection":{ + "name":"DeleteCollection", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteCollectionRequest"}, + "output":{"shape":"DeleteCollectionResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerError"}, + {"shape":"ThrottlingException"}, + {"shape":"ProvisionedThroughputExceededException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DeleteFaces":{ + "name":"DeleteFaces", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteFacesRequest"}, + "output":{"shape":"DeleteFacesResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerError"}, + {"shape":"ThrottlingException"}, + {"shape":"ProvisionedThroughputExceededException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DetectFaces":{ + "name":"DetectFaces", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DetectFacesRequest"}, + "output":{"shape":"DetectFacesResponse"}, + "errors":[ + {"shape":"InvalidS3ObjectException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ImageTooLargeException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerError"}, + {"shape":"ThrottlingException"}, + {"shape":"ProvisionedThroughputExceededException"}, + {"shape":"InvalidImageFormatException"} + ] + }, + "DetectLabels":{ + "name":"DetectLabels", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DetectLabelsRequest"}, + "output":{"shape":"DetectLabelsResponse"}, + "errors":[ + {"shape":"InvalidS3ObjectException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ImageTooLargeException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerError"}, + {"shape":"ThrottlingException"}, + {"shape":"ProvisionedThroughputExceededException"}, + {"shape":"InvalidImageFormatException"} + ] + }, + "IndexFaces":{ + "name":"IndexFaces", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"IndexFacesRequest"}, + "output":{"shape":"IndexFacesResponse"}, + "errors":[ + {"shape":"InvalidS3ObjectException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ImageTooLargeException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerError"}, + {"shape":"ThrottlingException"}, + {"shape":"ProvisionedThroughputExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidImageFormatException"} + ] + }, + "ListCollections":{ + "name":"ListCollections", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListCollectionsRequest"}, + "output":{"shape":"ListCollectionsResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerError"}, + {"shape":"ThrottlingException"}, + {"shape":"ProvisionedThroughputExceededException"}, + {"shape":"InvalidPaginationTokenException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ListFaces":{ + "name":"ListFaces", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListFacesRequest"}, + "output":{"shape":"ListFacesResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerError"}, + {"shape":"ThrottlingException"}, + {"shape":"ProvisionedThroughputExceededException"}, + {"shape":"InvalidPaginationTokenException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "SearchFaces":{ + "name":"SearchFaces", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"SearchFacesRequest"}, + "output":{"shape":"SearchFacesResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerError"}, + {"shape":"ThrottlingException"}, + {"shape":"ProvisionedThroughputExceededException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "SearchFacesByImage":{ + "name":"SearchFacesByImage", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"SearchFacesByImageRequest"}, + "output":{"shape":"SearchFacesByImageResponse"}, + "errors":[ + {"shape":"InvalidS3ObjectException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ImageTooLargeException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerError"}, + {"shape":"ThrottlingException"}, + {"shape":"ProvisionedThroughputExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidImageFormatException"} + ] + } + }, + "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "AgeRange":{ + "type":"structure", + "members":{ + "Low":{"shape":"UInteger"}, + "High":{"shape":"UInteger"} + } + }, + "Attribute":{ + "type":"string", + "enum":[ + "DEFAULT", + "ALL" + ] + }, + "Attributes":{ + "type":"list", + "member":{"shape":"Attribute"} + }, + "Beard":{ + "type":"structure", + "members":{ + "Value":{"shape":"Boolean"}, + "Confidence":{"shape":"Percent"} + } + }, + "Boolean":{"type":"boolean"}, + "BoundingBox":{ + "type":"structure", + "members":{ + "Width":{"shape":"Float"}, + "Height":{"shape":"Float"}, + "Left":{"shape":"Float"}, + "Top":{"shape":"Float"} + } + }, + "CollectionId":{ + "type":"string", + "max":255, + "min":1, + "pattern":"[a-zA-Z0-9_.\\-]+" + }, + "CollectionIdList":{ + "type":"list", + "member":{"shape":"CollectionId"} + }, + "CompareFacesMatch":{ + "type":"structure", + "members":{ + "Similarity":{"shape":"Percent"}, + "Face":{"shape":"ComparedFace"} + } + }, + "CompareFacesMatchList":{ + "type":"list", + "member":{"shape":"CompareFacesMatch"} + }, + "CompareFacesRequest":{ + "type":"structure", + "required":[ + "SourceImage", + "TargetImage" + ], + "members":{ + "SourceImage":{"shape":"Image"}, + "TargetImage":{"shape":"Image"}, + "SimilarityThreshold":{"shape":"Percent"} + } + }, + "CompareFacesResponse":{ + "type":"structure", + "members":{ + "SourceImageFace":{"shape":"ComparedSourceImageFace"}, + "FaceMatches":{"shape":"CompareFacesMatchList"} + } + }, + "ComparedFace":{ + "type":"structure", + "members":{ + "BoundingBox":{"shape":"BoundingBox"}, + "Confidence":{"shape":"Percent"} + } + }, + "ComparedSourceImageFace":{ + "type":"structure", + "members":{ + "BoundingBox":{"shape":"BoundingBox"}, + "Confidence":{"shape":"Percent"} + } + }, + "CreateCollectionRequest":{ + "type":"structure", + "required":["CollectionId"], + "members":{ + "CollectionId":{"shape":"CollectionId"} + } + }, + "CreateCollectionResponse":{ + "type":"structure", + "members":{ + "StatusCode":{"shape":"UInteger"}, + "CollectionArn":{"shape":"String"} + } + }, + "Degree":{ + "type":"float", + "max":180, + "min":-180 + }, + "DeleteCollectionRequest":{ + "type":"structure", + "required":["CollectionId"], + "members":{ + "CollectionId":{"shape":"CollectionId"} + } + }, + "DeleteCollectionResponse":{ + "type":"structure", + "members":{ + "StatusCode":{"shape":"UInteger"} + } + }, + "DeleteFacesRequest":{ + "type":"structure", + "required":[ + "CollectionId", + "FaceIds" + ], + "members":{ + "CollectionId":{"shape":"CollectionId"}, + "FaceIds":{"shape":"FaceIdList"} + } + }, + "DeleteFacesResponse":{ + "type":"structure", + "members":{ + "DeletedFaces":{"shape":"FaceIdList"} + } + }, + "DetectFacesRequest":{ + "type":"structure", + "required":["Image"], + "members":{ + "Image":{"shape":"Image"}, + "Attributes":{"shape":"Attributes"} + } + }, + "DetectFacesResponse":{ + "type":"structure", + "members":{ + "FaceDetails":{"shape":"FaceDetailList"}, + "OrientationCorrection":{"shape":"OrientationCorrection"} + } + }, + "DetectLabelsRequest":{ + "type":"structure", + "required":["Image"], + "members":{ + "Image":{"shape":"Image"}, + "MaxLabels":{"shape":"UInteger"}, + "MinConfidence":{"shape":"Percent"} + } + }, + "DetectLabelsResponse":{ + "type":"structure", + "members":{ + "Labels":{"shape":"Labels"}, + "OrientationCorrection":{"shape":"OrientationCorrection"} + } + }, + "Emotion":{ + "type":"structure", + "members":{ + "Type":{"shape":"EmotionName"}, + "Confidence":{"shape":"Percent"} + } + }, + "EmotionName":{ + "type":"string", + "enum":[ + "HAPPY", + "SAD", + "ANGRY", + "CONFUSED", + "DISGUSTED", + "SURPRISED", + "CALM", + "UNKNOWN" + ] + }, + "Emotions":{ + "type":"list", + "member":{"shape":"Emotion"} + }, + "ExternalImageId":{ + "type":"string", + "max":255, + "min":1, + "pattern":"[a-zA-Z0-9_.\\-:]+" + }, + "EyeOpen":{ + "type":"structure", + "members":{ + "Value":{"shape":"Boolean"}, + "Confidence":{"shape":"Percent"} + } + }, + "Eyeglasses":{ + "type":"structure", + "members":{ + "Value":{"shape":"Boolean"}, + "Confidence":{"shape":"Percent"} + } + }, + "Face":{ + "type":"structure", + "members":{ + "FaceId":{"shape":"FaceId"}, + "BoundingBox":{"shape":"BoundingBox"}, + "ImageId":{"shape":"ImageId"}, + "ExternalImageId":{"shape":"ExternalImageId"}, + "Confidence":{"shape":"Percent"} + } + }, + "FaceDetail":{ + "type":"structure", + "members":{ + "BoundingBox":{"shape":"BoundingBox"}, + "AgeRange":{"shape":"AgeRange"}, + "Smile":{"shape":"Smile"}, + "Eyeglasses":{"shape":"Eyeglasses"}, + "Sunglasses":{"shape":"Sunglasses"}, + "Gender":{"shape":"Gender"}, + "Beard":{"shape":"Beard"}, + "Mustache":{"shape":"Mustache"}, + "EyesOpen":{"shape":"EyeOpen"}, + "MouthOpen":{"shape":"MouthOpen"}, + "Emotions":{"shape":"Emotions"}, + "Landmarks":{"shape":"Landmarks"}, + "Pose":{"shape":"Pose"}, + "Quality":{"shape":"ImageQuality"}, + "Confidence":{"shape":"Percent"} + } + }, + "FaceDetailList":{ + "type":"list", + "member":{"shape":"FaceDetail"} + }, + "FaceId":{ + "type":"string", + "pattern":"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + "FaceIdList":{ + "type":"list", + "member":{"shape":"FaceId"}, + "max":4096, + "min":1 + }, + "FaceList":{ + "type":"list", + "member":{"shape":"Face"} + }, + "FaceMatch":{ + "type":"structure", + "members":{ + "Similarity":{"shape":"Percent"}, + "Face":{"shape":"Face"} + } + }, + "FaceMatchList":{ + "type":"list", + "member":{"shape":"FaceMatch"} + }, + "FaceRecord":{ + "type":"structure", + "members":{ + "Face":{"shape":"Face"}, + "FaceDetail":{"shape":"FaceDetail"} + } + }, + "FaceRecordList":{ + "type":"list", + "member":{"shape":"FaceRecord"} + }, + "Float":{"type":"float"}, + "Gender":{ + "type":"structure", + "members":{ + "Value":{"shape":"GenderType"}, + "Confidence":{"shape":"Percent"} + } + }, + "GenderType":{ + "type":"string", + "enum":[ + "MALE", + "FEMALE" + ] + }, + "Image":{ + "type":"structure", + "members":{ + "Bytes":{"shape":"ImageBlob"}, + "S3Object":{"shape":"S3Object"} + } + }, + "ImageBlob":{ + "type":"blob", + "max":5242880, + "min":1 + }, + "ImageId":{ + "type":"string", + "pattern":"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + "ImageQuality":{ + "type":"structure", + "members":{ + "Brightness":{"shape":"Float"}, + "Sharpness":{"shape":"Float"} + } + }, + "ImageTooLargeException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "IndexFacesRequest":{ + "type":"structure", + "required":[ + "CollectionId", + "Image" + ], + "members":{ + "CollectionId":{"shape":"CollectionId"}, + "Image":{"shape":"Image"}, + "ExternalImageId":{"shape":"ExternalImageId"}, + "DetectionAttributes":{"shape":"Attributes"} + } + }, + "IndexFacesResponse":{ + "type":"structure", + "members":{ + "FaceRecords":{"shape":"FaceRecordList"}, + "OrientationCorrection":{"shape":"OrientationCorrection"} + } + }, + "InternalServerError":{ + "type":"structure", + "members":{ + }, + "exception":true, + "fault":true + }, + "InvalidImageFormatException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidPaginationTokenException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidParameterException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidS3ObjectException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "Label":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "Confidence":{"shape":"Percent"} + } + }, + "Labels":{ + "type":"list", + "member":{"shape":"Label"} + }, + "Landmark":{ + "type":"structure", + "members":{ + "Type":{"shape":"LandmarkType"}, + "X":{"shape":"Float"}, + "Y":{"shape":"Float"} + } + }, + "LandmarkType":{ + "type":"string", + "enum":[ + "EYE_LEFT", + "EYE_RIGHT", + "NOSE", + "MOUTH_LEFT", + "MOUTH_RIGHT", + "LEFT_EYEBROW_LEFT", + "LEFT_EYEBROW_RIGHT", + "LEFT_EYEBROW_UP", + "RIGHT_EYEBROW_LEFT", + "RIGHT_EYEBROW_RIGHT", + "RIGHT_EYEBROW_UP", + "LEFT_EYE_LEFT", + "LEFT_EYE_RIGHT", + "LEFT_EYE_UP", + "LEFT_EYE_DOWN", + "RIGHT_EYE_LEFT", + "RIGHT_EYE_RIGHT", + "RIGHT_EYE_UP", + "RIGHT_EYE_DOWN", + "NOSE_LEFT", + "NOSE_RIGHT", + "MOUTH_UP", + "MOUTH_DOWN", + "LEFT_PUPIL", + "RIGHT_PUPIL" + ] + }, + "Landmarks":{ + "type":"list", + "member":{"shape":"Landmark"} + }, + "ListCollectionsRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "MaxResults":{"shape":"PageSize"} + } + }, + "ListCollectionsResponse":{ + "type":"structure", + "members":{ + "CollectionIds":{"shape":"CollectionIdList"}, + "NextToken":{"shape":"PaginationToken"} + } + }, + "ListFacesRequest":{ + "type":"structure", + "required":["CollectionId"], + "members":{ + "CollectionId":{"shape":"CollectionId"}, + "NextToken":{"shape":"PaginationToken"}, + "MaxResults":{"shape":"PageSize"} + } + }, + "ListFacesResponse":{ + "type":"structure", + "members":{ + "Faces":{"shape":"FaceList"}, + "NextToken":{"shape":"String"} + } + }, + "MaxFaces":{ + "type":"integer", + "max":4096, + "min":1 + }, + "MouthOpen":{ + "type":"structure", + "members":{ + "Value":{"shape":"Boolean"}, + "Confidence":{"shape":"Percent"} + } + }, + "Mustache":{ + "type":"structure", + "members":{ + "Value":{"shape":"Boolean"}, + "Confidence":{"shape":"Percent"} + } + }, + "OrientationCorrection":{ + "type":"string", + "enum":[ + "ROTATE_0", + "ROTATE_90", + "ROTATE_180", + "ROTATE_270" + ] + }, + "PageSize":{ + "type":"integer", + "max":4096, + "min":0 + }, + "PaginationToken":{ + "type":"string", + "max":255 + }, + "Percent":{ + "type":"float", + "max":100, + "min":0 + }, + "Pose":{ + "type":"structure", + "members":{ + "Roll":{"shape":"Degree"}, + "Yaw":{"shape":"Degree"}, + "Pitch":{"shape":"Degree"} + } + }, + "ProvisionedThroughputExceededException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "ResourceAlreadyExistsException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "S3Bucket":{ + "type":"string", + "max":255, + "min":3, + "pattern":"[0-9A-Za-z\\.\\-_]*" + }, + "S3Object":{ + "type":"structure", + "members":{ + "Bucket":{"shape":"S3Bucket"}, + "Name":{"shape":"S3ObjectName"}, + "Version":{"shape":"S3ObjectVersion"} + } + }, + "S3ObjectName":{ + "type":"string", + "max":1024, + "min":1 + }, + "S3ObjectVersion":{ + "type":"string", + "max":1024, + "min":1 + }, + "SearchFacesByImageRequest":{ + "type":"structure", + "required":[ + "CollectionId", + "Image" + ], + "members":{ + "CollectionId":{"shape":"CollectionId"}, + "Image":{"shape":"Image"}, + "MaxFaces":{"shape":"MaxFaces"}, + "FaceMatchThreshold":{"shape":"Percent"} + } + }, + "SearchFacesByImageResponse":{ + "type":"structure", + "members":{ + "SearchedFaceBoundingBox":{"shape":"BoundingBox"}, + "SearchedFaceConfidence":{"shape":"Percent"}, + "FaceMatches":{"shape":"FaceMatchList"} + } + }, + "SearchFacesRequest":{ + "type":"structure", + "required":[ + "CollectionId", + "FaceId" + ], + "members":{ + "CollectionId":{"shape":"CollectionId"}, + "FaceId":{"shape":"FaceId"}, + "MaxFaces":{"shape":"MaxFaces"}, + "FaceMatchThreshold":{"shape":"Percent"} + } + }, + "SearchFacesResponse":{ + "type":"structure", + "members":{ + "SearchedFaceId":{"shape":"FaceId"}, + "FaceMatches":{"shape":"FaceMatchList"} + } + }, + "Smile":{ + "type":"structure", + "members":{ + "Value":{"shape":"Boolean"}, + "Confidence":{"shape":"Percent"} + } + }, + "String":{"type":"string"}, + "Sunglasses":{ + "type":"structure", + "members":{ + "Value":{"shape":"Boolean"}, + "Confidence":{"shape":"Percent"} + } + }, + "ThrottlingException":{ + "type":"structure", + "members":{ + }, + "exception":true, + "fault":true + }, + "UInteger":{ + "type":"integer", + "min":0 + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rekognition/2016-06-27/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rekognition/2016-06-27/docs-2.json new file mode 100644 index 000000000..4bf0b17d6 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rekognition/2016-06-27/docs-2.json @@ -0,0 +1,599 @@ +{ + "version": "2.0", + "service": "

This is the Amazon Rekognition API reference.

", + "operations": { + "CompareFaces": "

Compares a face in the source input image with each face detected in the target input image.

If the source image contains multiple faces, the service detects the largest face and uses it to compare with each face detected in the target image.

In response, the operation returns an array of face matches ordered by similarity score with the highest similarity scores first. For each face match, the response provides a bounding box of the face and confidence value (indicating the level of confidence that the bounding box contains a face). The response also provides a similarity score, which indicates how closely the faces match.

By default, only faces with the similarity score of greater than or equal to 80% are returned in the response. You can change this value.

In addition to the face matches, the response returns information about the face in the source image, including the bounding box of the face and confidence value.

This is a stateless API operation. That is, the operation does not persist any data.

For an example, see get-started-exercise-compare-faces

This operation requires permissions to perform the rekognition:CompareFaces action.

", + "CreateCollection": "

Creates a collection in an AWS Region. You can add faces to the collection using the operation.

For example, you might create collections, one for each of your application users. A user can then index faces using the IndexFaces operation and persist results in a specific collection. Then, a user can search the collection for faces in the user-specific container.

For an example, see example1.

This operation requires permissions to perform the rekognition:CreateCollection action.

", + "DeleteCollection": "

Deletes the specified collection. Note that this operation removes all faces in the collection. For an example, see example1.

This operation requires permissions to perform the rekognition:DeleteCollection action.

", + "DeleteFaces": "

Deletes faces from a collection. You specify a collection ID and an array of face IDs to remove from the collection.

This operation requires permissions to perform the rekognition:DeleteFaces action.

", + "DetectFaces": "

Detects faces within an image (JPEG or PNG) that is provided as input.

For each face detected, the operation returns face details including a bounding box of the face, a confidence value (that the bounding box contains a face), and a fixed set of attributes such as facial landmarks (for example, coordinates of eye and mouth), gender, presence of beard, sunglasses, etc.

The face-detection algorithm is most effective on frontal faces. For non-frontal or obscured faces, the algorithm may not detect the faces or might detect faces with lower confidence.

This is a stateless API operation. That is, the operation does not persist any data.

For an example, see get-started-exercise-detect-faces.

This operation requires permissions to perform the rekognition:DetectFaces action.

", + "DetectLabels": "

Detects instances of real-world labels within an image (JPEG or PNG) provided as input. This includes objects like flower, tree, and table; events like wedding, graduation, and birthday party; and concepts like landscape, evening, and nature. For an example, see get-started-exercise-detect-labels.

For each object, scene, and concept the API returns one or more labels. Each label provides the object name, and the level of confidence that the image contains the object. For example, suppose the input image has a lighthouse, the sea, and a rock. The response will include all three labels, one for each object.

{Name: lighthouse, Confidence: 98.4629}

{Name: rock,Confidence: 79.2097}

{Name: sea,Confidence: 75.061}

In the preceding example, the operation returns one label for each of the three objects. The operation can also return multiple labels for the same object in the image. For example, if the input image shows a flower (for example, a tulip), the operation might return the following three labels.

{Name: flower,Confidence: 99.0562}

{Name: plant,Confidence: 99.0562}

{Name: tulip,Confidence: 99.0562}

In this example, the detection algorithm more precisely identifies the flower as a tulip.

You can provide the input image as an S3 object or as base64-encoded bytes. In response, the API returns an array of labels. In addition, the response also includes the orientation correction. Optionally, you can specify MinConfidence to control the confidence threshold for the labels returned. The default is 50%. You can also add the MaxLabels parameter to limit the number of labels returned.

If the object detected is a person, the operation doesn't provide the same facial details that the DetectFaces operation provides.

This is a stateless API operation. That is, the operation does not persist any data.

This operation requires permissions to perform the rekognition:DetectLabels action.

", + "IndexFaces": "

Detects faces in the input image and adds them to the specified collection.

Amazon Rekognition does not save the actual faces detected. Instead, the underlying detection algorithm first detects the faces in the input image, and for each face extracts facial features into a feature vector, and stores it in the back-end database. Amazon Rekognition uses feature vectors when performing face match and search operations using the and operations.

If you provide the optional externalImageID for the input image you provided, Amazon Rekognition associates this ID with all faces that it detects. When you call the operation, the response returns the external ID. You can use this external image ID to create a client-side index to associate the faces with each image. You can then use the index to find all faces in an image.

In response, the operation returns an array of metadata for all detected faces. This includes, the bounding box of the detected face, confidence value (indicating the bounding box contains a face), a face ID assigned by the service for each face that is detected and stored, and an image ID assigned by the service for the input image If you request all facial attributes (using the detectionAttributes parameter, Amazon Rekognition returns detailed facial attributes such as facial landmarks (for example, location of eye and mount) and other facial attributes such gender. If you provide the same image, specify the same collection, and use the same external ID in the IndexFaces operation, Amazon Rekognition doesn't save duplicate face metadata.

For an example, see example2.

This operation requires permissions to perform the rekognition:IndexFaces action.

", + "ListCollections": "

Returns list of collection IDs in your account. If the result is truncated, the response also provides a NextToken that you can use in the subsequent request to fetch the next set of collection IDs.

For an example, see example1.

This operation requires permissions to perform the rekognition:ListCollections action.

", + "ListFaces": "

Returns metadata for faces in the specified collection. This metadata includes information such as the bounding box coordinates, the confidence (that the bounding box contains a face), and face ID. For an example, see example3.

This operation requires permissions to perform the rekognition:ListFaces action.

", + "SearchFaces": "

For a given input face ID, searches for matching faces in the collection the face belongs to. You get a face ID when you add a face to the collection using the IndexFaces operation. The operation compares the features of the input face with faces in the specified collection.

You can also search faces without indexing faces by using the SearchFacesByImage operation.

The operation response returns an array of faces that match, ordered by similarity score with the highest similarity first. More specifically, it is an array of metadata for each face match that is found. Along with the metadata, the response also includes a confidence value for each face match, indicating the confidence that the specific face matches the input face.

For an example, see example3.

This operation requires permissions to perform the rekognition:SearchFaces action.

", + "SearchFacesByImage": "

For a given input image, first detects the largest face in the image, and then searches the specified collection for matching faces. The operation compares the features of the input face with faces in the specified collection.

To search for all faces in an input image, you might first call the operation, and then use the face IDs returned in subsequent calls to the operation.

You can also call the DetectFaces operation and use the bounding boxes in the response to make face crops, which then you can pass in to the SearchFacesByImage operation.

The response returns an array of faces that match, ordered by similarity score with the highest similarity first. More specifically, it is an array of metadata for each face match found. Along with the metadata, the response also includes a similarity indicating how similar the face is to the input face. In the response, the operation also returns the bounding box (and a confidence level that the bounding box contains a face) of the face that Amazon Rekognition used for the input image.

For an example, see example3.

This operation requires permissions to perform the rekognition:SearchFacesByImage action.

" + }, + "shapes": { + "AccessDeniedException": { + "base": "

You are not authorized to perform the action.

", + "refs": { + } + }, + "AgeRange": { + "base": "

Structure containing the estimated age range, in years, for a face.

Rekognition estimates an age-range for faces detected in the input image. Estimated age ranges can overlap; a face of a 5 year old may have an estimated range of 4-6 whilst the face of a 6 year old may have an estimated range of 4-8.

", + "refs": { + "FaceDetail$AgeRange": "

The estimated age range, in years, for the face. Low represents the lowest estimated age and High represents the highest estimated age.

" + } + }, + "Attribute": { + "base": null, + "refs": { + "Attributes$member": null + } + }, + "Attributes": { + "base": null, + "refs": { + "DetectFacesRequest$Attributes": "

A list of facial attributes you would like to be returned. By default, the API returns subset of facial attributes.

For example, you can specify the value as, [\"ALL\"] or [\"DEFAULT\"]. If you provide both, [\"ALL\", \"DEFAULT\"], the service uses a logical AND operator to determine which attributes to return (in this case, it is all attributes). If you specify all attributes, Amazon Rekognition performs additional detection.

", + "IndexFacesRequest$DetectionAttributes": "

(Optional) Returns detailed attributes of indexed faces. By default, the operation returns a subset of the facial attributes.

For example, you can specify the value as, [\"ALL\"] or [\"DEFAULT\"]. If you provide both, [\"ALL\", \"DEFAULT\"], Amazon Rekognition uses the logical AND operator to determine which attributes to return (in this case, it is all attributes). If you specify all attributes, the service performs additional detection, in addition to the default.

" + } + }, + "Beard": { + "base": "

Indicates whether or not the face has a beard, and the confidence level in the determination.

", + "refs": { + "FaceDetail$Beard": "

Indicates whether or not the face has a beard, and the confidence level in the determination.

" + } + }, + "Boolean": { + "base": null, + "refs": { + "Beard$Value": "

Boolean value that indicates whether the face has beard or not.

", + "EyeOpen$Value": "

Boolean value that indicates whether the eyes on the face are open.

", + "Eyeglasses$Value": "

Boolean value that indicates whether the face is wearing eye glasses or not.

", + "MouthOpen$Value": "

Boolean value that indicates whether the mouth on the face is open or not.

", + "Mustache$Value": "

Boolean value that indicates whether the face has mustache or not.

", + "Smile$Value": "

Boolean value that indicates whether the face is smiling or not.

", + "Sunglasses$Value": "

Boolean value that indicates whether the face is wearing sunglasses or not.

" + } + }, + "BoundingBox": { + "base": "

Identifies the bounding box around the object or face. The left (x-coordinate) and top (y-coordinate) are coordinates representing the top and left sides of the bounding box. Note that the upper-left corner of the image is the origin (0,0).

The top and left values returned are ratios of the overall image size. For example, if the input image is 700x200 pixels, and the top-left coordinate of the bounding box is 350x50 pixels, the API returns a left value of 0.5 (350/700) and a top value of 0.25 (50/200).

The width and height values represent the dimensions of the bounding box as a ratio of the overall image dimension. For example, if the input image is 700x200 pixels, and the bounding box width is 70 pixels, the width returned is 0.1.

The bounding box coordinates can have negative values. For example, if Amazon Rekognition is able to detect a face that is at the image edge and is only partially visible, the service can return coordinates that are outside the image bounds and, depending on the image edge, you might get negative values or values greater than 1 for the left or top values.

", + "refs": { + "ComparedFace$BoundingBox": null, + "ComparedSourceImageFace$BoundingBox": null, + "Face$BoundingBox": null, + "FaceDetail$BoundingBox": "

Bounding box of the face.

", + "SearchFacesByImageResponse$SearchedFaceBoundingBox": "

The bounding box around the face in the input image that Amazon Rekognition used for the search.

" + } + }, + "CollectionId": { + "base": null, + "refs": { + "CollectionIdList$member": null, + "CreateCollectionRequest$CollectionId": "

ID for the collection that you are creating.

", + "DeleteCollectionRequest$CollectionId": "

ID of the collection to delete.

", + "DeleteFacesRequest$CollectionId": "

Collection from which to remove the specific faces.

", + "IndexFacesRequest$CollectionId": "

ID of an existing collection to which you want to add the faces that are detected in the input images.

", + "ListFacesRequest$CollectionId": "

ID of the collection from which to list the faces.

", + "SearchFacesByImageRequest$CollectionId": "

ID of the collection to search.

", + "SearchFacesRequest$CollectionId": "

ID of the collection the face belongs to.

" + } + }, + "CollectionIdList": { + "base": null, + "refs": { + "ListCollectionsResponse$CollectionIds": "

An array of collection IDs.

" + } + }, + "CompareFacesMatch": { + "base": "

For the provided the bounding box, confidence level that the bounding box actually contains a face, and the similarity between the face in the bounding box and the face in the source image.

", + "refs": { + "CompareFacesMatchList$member": null + } + }, + "CompareFacesMatchList": { + "base": null, + "refs": { + "CompareFacesResponse$FaceMatches": "

Provides an array of CompareFacesMatch objects. Each object provides the bounding box, confidence that the bounding box contains a face, and the similarity between the face in the bounding box and the face in the source image.

" + } + }, + "CompareFacesRequest": { + "base": null, + "refs": { + } + }, + "CompareFacesResponse": { + "base": null, + "refs": { + } + }, + "ComparedFace": { + "base": "

Provides face metadata (bounding box and confidence that the bounding box actually contains a face).

", + "refs": { + "CompareFacesMatch$Face": "

Provides face metadata (bounding box and confidence that the bounding box actually contains a face).

" + } + }, + "ComparedSourceImageFace": { + "base": "

Type that describes the face Amazon Rekognition chose to compare with the faces in the target. This contains a bounding box for the selected face and confidence level that the bounding box contains a face. Note that Amazon Rekognition selects the largest face in the source image for this comparison.

", + "refs": { + "CompareFacesResponse$SourceImageFace": "

The face from the source image that was used for comparison.

" + } + }, + "CreateCollectionRequest": { + "base": null, + "refs": { + } + }, + "CreateCollectionResponse": { + "base": null, + "refs": { + } + }, + "Degree": { + "base": null, + "refs": { + "Pose$Roll": "

Value representing the face rotation on the roll axis.

", + "Pose$Yaw": "

Value representing the face rotation on the yaw axis.

", + "Pose$Pitch": "

Value representing the face rotation on the pitch axis.

" + } + }, + "DeleteCollectionRequest": { + "base": null, + "refs": { + } + }, + "DeleteCollectionResponse": { + "base": null, + "refs": { + } + }, + "DeleteFacesRequest": { + "base": null, + "refs": { + } + }, + "DeleteFacesResponse": { + "base": null, + "refs": { + } + }, + "DetectFacesRequest": { + "base": null, + "refs": { + } + }, + "DetectFacesResponse": { + "base": null, + "refs": { + } + }, + "DetectLabelsRequest": { + "base": null, + "refs": { + } + }, + "DetectLabelsResponse": { + "base": null, + "refs": { + } + }, + "Emotion": { + "base": "

The emotions detected on the face, and the confidence level in the determination. For example, HAPPY, SAD, and ANGRY.

", + "refs": { + "Emotions$member": null + } + }, + "EmotionName": { + "base": null, + "refs": { + "Emotion$Type": "

Type of emotion detected.

" + } + }, + "Emotions": { + "base": null, + "refs": { + "FaceDetail$Emotions": "

The emotions detected on the face, and the confidence level in the determination. For example, HAPPY, SAD, and ANGRY.

" + } + }, + "ExternalImageId": { + "base": null, + "refs": { + "Face$ExternalImageId": "

Identifier that you assign to all the faces in the input image.

", + "IndexFacesRequest$ExternalImageId": "

ID you want to assign to all the faces detected in the image.

" + } + }, + "EyeOpen": { + "base": "

Indicates whether or not the eyes on the face are open, and the confidence level in the determination.

", + "refs": { + "FaceDetail$EyesOpen": "

Indicates whether or not the eyes on the face are open, and the confidence level in the determination.

" + } + }, + "Eyeglasses": { + "base": "

Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.

", + "refs": { + "FaceDetail$Eyeglasses": "

Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.

" + } + }, + "Face": { + "base": "

Describes the face properties such as the bounding box, face ID, image ID of the source image, and external image ID that you assigned.

", + "refs": { + "FaceList$member": null, + "FaceMatch$Face": null, + "FaceRecord$Face": null + } + }, + "FaceDetail": { + "base": "

Structure containing attributes of the face that the algorithm detected.

", + "refs": { + "FaceDetailList$member": null, + "FaceRecord$FaceDetail": null + } + }, + "FaceDetailList": { + "base": null, + "refs": { + "DetectFacesResponse$FaceDetails": "

Details of each face found in the image.

" + } + }, + "FaceId": { + "base": null, + "refs": { + "Face$FaceId": "

Unique identifier that Amazon Rekognition assigns to the face.

", + "FaceIdList$member": null, + "SearchFacesRequest$FaceId": "

ID of a face to find matches for in the collection.

", + "SearchFacesResponse$SearchedFaceId": "

ID of the face that was searched for matches in a collection.

" + } + }, + "FaceIdList": { + "base": null, + "refs": { + "DeleteFacesRequest$FaceIds": "

An array of face IDs to delete.

", + "DeleteFacesResponse$DeletedFaces": "

An array of strings (face IDs) of the faces that were deleted.

" + } + }, + "FaceList": { + "base": null, + "refs": { + "ListFacesResponse$Faces": "

An array of Face objects.

" + } + }, + "FaceMatch": { + "base": "

Provides face metadata. In addition, it also provides the confidence in the match of this face with the input face.

", + "refs": { + "FaceMatchList$member": null + } + }, + "FaceMatchList": { + "base": null, + "refs": { + "SearchFacesByImageResponse$FaceMatches": "

An array of faces that match the input face, along with the confidence in the match.

", + "SearchFacesResponse$FaceMatches": "

An array of faces that matched the input face, along with the confidence in the match.

" + } + }, + "FaceRecord": { + "base": "

Object containing both the face metadata (stored in the back-end database) and facial attributes that are detected but aren't stored in the database.

", + "refs": { + "FaceRecordList$member": null + } + }, + "FaceRecordList": { + "base": null, + "refs": { + "IndexFacesResponse$FaceRecords": "

An array of faces detected and added to the collection. For more information, see howitworks-index-faces.

" + } + }, + "Float": { + "base": null, + "refs": { + "BoundingBox$Width": "

Width of the bounding box as a ratio of the overall image width.

", + "BoundingBox$Height": "

Height of the bounding box as a ratio of the overall image height.

", + "BoundingBox$Left": "

Left coordinate of the bounding box as a ratio of overall image width.

", + "BoundingBox$Top": "

Top coordinate of the bounding box as a ratio of overall image height.

", + "ImageQuality$Brightness": "

Value representing brightness of the face. The service returns a value between 0 and 1 (inclusive).

", + "ImageQuality$Sharpness": "

Value representing sharpness of the face.

", + "Landmark$X": "

x-coordinate from the top left of the landmark expressed as the ration of the width of the image. For example, if the images is 700x200 and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.

", + "Landmark$Y": "

y-coordinate from the top left of the landmark expressed as the ration of the height of the image. For example, if the images is 700x200 and the y-coordinate of the landmark is at 100 pixels, this value is 0.5.

" + } + }, + "Gender": { + "base": "

Gender of the face and the confidence level in the determination.

", + "refs": { + "FaceDetail$Gender": "

Gender of the face and the confidence level in the determination.

" + } + }, + "GenderType": { + "base": null, + "refs": { + "Gender$Value": "

Gender of the face.

" + } + }, + "Image": { + "base": "

Provides the source image either as bytes or an S3 object.

The region for the S3 bucket containing the S3 object must match the region you use for Amazon Rekognition operations.

You may need to Base64-encode the image bytes depending on the language you are using and whether or not you are using the AWS SDK. For more information, see example4.

If you use the Amazon CLI to call Amazon Rekognition operations, passing image bytes using the Bytes property is not supported. You must first upload the image to an Amazon S3 bucket and then call the operation using the S3Object property.

For Amazon Rekognition to process an S3 object, the user must have permission to access the S3 object. For more information, see manage-access-resource-policies.

", + "refs": { + "CompareFacesRequest$SourceImage": "

Source image either as bytes or an S3 object

", + "CompareFacesRequest$TargetImage": "

Target image either as bytes or an S3 object

", + "DetectFacesRequest$Image": "

The image in which you want to detect faces. You can specify a blob or an S3 object.

", + "DetectLabelsRequest$Image": "

The input image. You can provide a blob of image bytes or an S3 object.

", + "IndexFacesRequest$Image": null, + "SearchFacesByImageRequest$Image": null + } + }, + "ImageBlob": { + "base": null, + "refs": { + "Image$Bytes": "

Blob of image bytes up to 5 MBs.

" + } + }, + "ImageId": { + "base": null, + "refs": { + "Face$ImageId": "

Unique identifier that Amazon Rekognition assigns to the source image.

" + } + }, + "ImageQuality": { + "base": "

Identifies image brightness and sharpness.

", + "refs": { + "FaceDetail$Quality": "

Identifies image brightness and sharpness.

" + } + }, + "ImageTooLargeException": { + "base": "

The input image size exceeds the allowed limit. For more information, see limits.

", + "refs": { + } + }, + "IndexFacesRequest": { + "base": null, + "refs": { + } + }, + "IndexFacesResponse": { + "base": null, + "refs": { + } + }, + "InternalServerError": { + "base": "

Amazon Rekognition experienced a service issue. Try your call again.

", + "refs": { + } + }, + "InvalidImageFormatException": { + "base": "

The provided image format is not supported.

", + "refs": { + } + }, + "InvalidPaginationTokenException": { + "base": "

Pagination token in the request is not valid.

", + "refs": { + } + }, + "InvalidParameterException": { + "base": "

Input parameter violated a constraint. Validate your parameter before calling the API operation again.

", + "refs": { + } + }, + "InvalidS3ObjectException": { + "base": "

Amazon Rekognition is unable to access the S3 object specified in the request.

", + "refs": { + } + }, + "Label": { + "base": "

Structure containing details about the detected label, including name, and level of confidence.

", + "refs": { + "Labels$member": null + } + }, + "Labels": { + "base": null, + "refs": { + "DetectLabelsResponse$Labels": "

An array of labels for the real-world objects detected.

" + } + }, + "Landmark": { + "base": "

Indicates the location of the landmark on the face.

", + "refs": { + "Landmarks$member": null + } + }, + "LandmarkType": { + "base": null, + "refs": { + "Landmark$Type": "

Type of the landmark.

" + } + }, + "Landmarks": { + "base": null, + "refs": { + "FaceDetail$Landmarks": "

Indicates the location of the landmark on the face.

" + } + }, + "ListCollectionsRequest": { + "base": null, + "refs": { + } + }, + "ListCollectionsResponse": { + "base": null, + "refs": { + } + }, + "ListFacesRequest": { + "base": null, + "refs": { + } + }, + "ListFacesResponse": { + "base": null, + "refs": { + } + }, + "MaxFaces": { + "base": null, + "refs": { + "SearchFacesByImageRequest$MaxFaces": "

Maximum number of faces to return. The operation returns the maximum number of faces with the highest confidence in the match.

", + "SearchFacesRequest$MaxFaces": "

Maximum number of faces to return. The operation returns the maximum number of faces with the highest confidence in the match.

" + } + }, + "MouthOpen": { + "base": "

Indicates whether or not the mouth on the face is open, and the confidence level in the determination.

", + "refs": { + "FaceDetail$MouthOpen": "

Indicates whether or not the mouth on the face is open, and the confidence level in the determination.

" + } + }, + "Mustache": { + "base": "

Indicates whether or not the face has a mustache, and the confidence level in the determination.

", + "refs": { + "FaceDetail$Mustache": "

Indicates whether or not the face has a mustache, and the confidence level in the determination.

" + } + }, + "OrientationCorrection": { + "base": null, + "refs": { + "DetectFacesResponse$OrientationCorrection": "

The algorithm detects the image orientation. If it detects that the image was rotated, it returns the degrees of rotation. If your application is displaying the image, you can use this value to adjust the orientation.

For example, if the service detects that the input image was rotated by 90 degrees, it corrects orientation, performs face detection, and then returns the faces. That is, the bounding box coordinates in the response are based on the corrected orientation.

If the source image Exif metadata populates the orientation field, Amazon Rekognition does not perform orientation correction and the value of OrientationCorrection will be nil.

", + "DetectLabelsResponse$OrientationCorrection": "

Amazon Rekognition returns the orientation of the input image that was detected (clockwise direction). If your application displays the image, you can use this value to correct the orientation. If Amazon Rekognition detects that the input image was rotated (for example, by 90 degrees), it first corrects the orientation before detecting the labels.

If the source image Exif metadata populates the orientation field, Amazon Rekognition does not perform orientation correction and the value of OrientationCorrection will be nil.

", + "IndexFacesResponse$OrientationCorrection": "

The algorithm detects the image orientation. If it detects that the image was rotated, it returns the degree of rotation. You can use this value to correct the orientation and also appropriately analyze the bounding box coordinates that are returned.

If the source image Exif metadata populates the orientation field, Amazon Rekognition does not perform orientation correction and the value of OrientationCorrection will be nil.

" + } + }, + "PageSize": { + "base": null, + "refs": { + "ListCollectionsRequest$MaxResults": "

Maximum number of collection IDs to return.

", + "ListFacesRequest$MaxResults": "

Maximum number of faces to return.

" + } + }, + "PaginationToken": { + "base": null, + "refs": { + "ListCollectionsRequest$NextToken": "

Pagination token from the previous response.

", + "ListCollectionsResponse$NextToken": "

If the result is truncated, the response provides a NextToken that you can use in the subsequent request to fetch the next set of collection IDs.

", + "ListFacesRequest$NextToken": "

If the previous response was incomplete (because there is more data to retrieve), Amazon Rekognition returns a pagination token in the response. You can use this pagination token to retrieve the next set of faces.

" + } + }, + "Percent": { + "base": null, + "refs": { + "Beard$Confidence": "

Level of confidence in the determination.

", + "CompareFacesMatch$Similarity": "

Level of confidence that the faces match.

", + "CompareFacesRequest$SimilarityThreshold": "

The minimum level of confidence in the match you want included in the result.

", + "ComparedFace$Confidence": "

Level of confidence that what the bounding box contains is a face.

", + "ComparedSourceImageFace$Confidence": "

Confidence level that the selected bounding box contains a face.

", + "DetectLabelsRequest$MinConfidence": "

Specifies the minimum confidence level for the labels to return. Amazon Rekognition doesn't return any labels with confidence lower than this specified value.

If minConfidence is not specified, the operation returns labels with a confidence values greater than or equal to 50 percent.

", + "Emotion$Confidence": "

Level of confidence in the determination.

", + "EyeOpen$Confidence": "

Level of confidence in the determination.

", + "Eyeglasses$Confidence": "

Level of confidence in the determination.

", + "Face$Confidence": "

Confidence level that the bounding box contains a face (and not a different object such as a tree).

", + "FaceDetail$Confidence": "

Confidence level that the bounding box contains a face (and not a different object such as a tree).

", + "FaceMatch$Similarity": "

Confidence in the match of this face with the input face.

", + "Gender$Confidence": "

Level of confidence in the determination.

", + "Label$Confidence": "

Level of confidence.

", + "MouthOpen$Confidence": "

Level of confidence in the determination.

", + "Mustache$Confidence": "

Level of confidence in the determination.

", + "SearchFacesByImageRequest$FaceMatchThreshold": "

(Optional) Specifies the minimum confidence in the face match to return. For example, don't return any matches where confidence in matches is less than 70%.

", + "SearchFacesByImageResponse$SearchedFaceConfidence": "

The level of confidence that the searchedFaceBoundingBox, contains a face.

", + "SearchFacesRequest$FaceMatchThreshold": "

Optional value specifying the minimum confidence in the face match to return. For example, don't return any matches where confidence in matches is less than 70%.

", + "Smile$Confidence": "

Level of confidence in the determination.

", + "Sunglasses$Confidence": "

Level of confidence in the determination.

" + } + }, + "Pose": { + "base": "

Indicates the pose of the face as determined by pitch, roll, and the yaw.

", + "refs": { + "FaceDetail$Pose": "

Indicates the pose of the face as determined by pitch, roll, and the yaw.

" + } + }, + "ProvisionedThroughputExceededException": { + "base": "

The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Rekognition.

", + "refs": { + } + }, + "ResourceAlreadyExistsException": { + "base": "

A collection with the specified ID already exists.

", + "refs": { + } + }, + "ResourceNotFoundException": { + "base": "

Collection specified in the request is not found.

", + "refs": { + } + }, + "S3Bucket": { + "base": null, + "refs": { + "S3Object$Bucket": "

Name of the S3 bucket.

" + } + }, + "S3Object": { + "base": "

Provides the S3 bucket name and object name.

The region for the S3 bucket containing the S3 object must match the region you use for Amazon Rekognition operations.

For Amazon Rekognition to process an S3 object, the user must have permission to access the S3 object. For more information, see manage-access-resource-policies.

", + "refs": { + "Image$S3Object": "

Identifies an S3 object as the image source.

" + } + }, + "S3ObjectName": { + "base": null, + "refs": { + "S3Object$Name": "

S3 object key name.

" + } + }, + "S3ObjectVersion": { + "base": null, + "refs": { + "S3Object$Version": "

If the bucket is versioning enabled, you can specify the object version.

" + } + }, + "SearchFacesByImageRequest": { + "base": null, + "refs": { + } + }, + "SearchFacesByImageResponse": { + "base": null, + "refs": { + } + }, + "SearchFacesRequest": { + "base": null, + "refs": { + } + }, + "SearchFacesResponse": { + "base": null, + "refs": { + } + }, + "Smile": { + "base": "

Indicates whether or not the face is smiling, and the confidence level in the determination.

", + "refs": { + "FaceDetail$Smile": "

Indicates whether or not the face is smiling, and the confidence level in the determination.

" + } + }, + "String": { + "base": null, + "refs": { + "CreateCollectionResponse$CollectionArn": "

Amazon Resource Name (ARN) of the collection. You can use this to manage permissions on your resources.

", + "Label$Name": "

The name (label) of the object.

", + "ListFacesResponse$NextToken": "

If the response is truncated, Amazon Rekognition returns this token that you can use in the subsequent request to retrieve the next set of faces.

" + } + }, + "Sunglasses": { + "base": "

Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.

", + "refs": { + "FaceDetail$Sunglasses": "

Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.

" + } + }, + "ThrottlingException": { + "base": "

Amazon Rekognition is temporarily unable to process the request. Try your call again.

", + "refs": { + } + }, + "UInteger": { + "base": null, + "refs": { + "AgeRange$Low": "

The lowest estimated age.

", + "AgeRange$High": "

The highest estimated age.

", + "CreateCollectionResponse$StatusCode": "

HTTP status code indicating the result of the operation.

", + "DeleteCollectionResponse$StatusCode": "

HTTP status code that indicates the result of the operation.

", + "DetectLabelsRequest$MaxLabels": "

Maximum number of labels you want the service to return in the response. The service returns the specified number of highest confidence labels.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rekognition/2016-06-27/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rekognition/2016-06-27/examples-1.json new file mode 100644 index 000000000..20b032800 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rekognition/2016-06-27/examples-1.json @@ -0,0 +1,651 @@ +{ + "version": "1.0", + "examples": { + "CompareFaces": [ + { + "input": { + "SimilarityThreshold": 90, + "SourceImage": { + "S3Object": { + "Bucket": "mybucket", + "Name": "mysourceimage" + } + }, + "TargetImage": { + "S3Object": { + "Bucket": "mybucket", + "Name": "mytargetimage" + } + } + }, + "output": { + "FaceMatches": [ + { + "Face": { + "BoundingBox": { + "Height": 0.33481481671333313, + "Left": 0.31888890266418457, + "Top": 0.4933333396911621, + "Width": 0.25 + }, + "Confidence": 99.9991226196289 + }, + "Similarity": 100 + } + ], + "SourceImageFace": { + "BoundingBox": { + "Height": 0.33481481671333313, + "Left": 0.31888890266418457, + "Top": 0.4933333396911621, + "Width": 0.25 + }, + "Confidence": 99.9991226196289 + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation compares the largest face detected in the source image with each face detected in the target image.", + "id": "to-compare-two-images-1482181985581", + "title": "To compare two images" + } + ], + "CreateCollection": [ + { + "input": { + "CollectionId": "myphotos" + }, + "output": { + "CollectionArn": "aws:rekognition:us-west-2:123456789012:collection/myphotos", + "StatusCode": 200 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation creates a Rekognition collection for storing image data.", + "id": "to-create-a-collection-1481833313674", + "title": "To create a collection" + } + ], + "DeleteCollection": [ + { + "input": { + "CollectionId": "myphotos" + }, + "output": { + "StatusCode": 200 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation deletes a Rekognition collection.", + "id": "to-delete-a-collection-1481838179973", + "title": "To delete a collection" + } + ], + "DeleteFaces": [ + { + "input": { + "CollectionId": "myphotos", + "FaceIds": [ + "ff43d742-0c13-5d16-a3e8-03d3f58e980b" + ] + }, + "output": { + "DeletedFaces": [ + "ff43d742-0c13-5d16-a3e8-03d3f58e980b" + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation deletes one or more faces from a Rekognition collection.", + "id": "to-delete-a-face-1482182799377", + "title": "To delete a face" + } + ], + "DetectFaces": [ + { + "input": { + "Image": { + "S3Object": { + "Bucket": "mybucket", + "Name": "myphoto" + } + } + }, + "output": { + "FaceDetails": [ + { + "BoundingBox": { + "Height": 0.18000000715255737, + "Left": 0.5555555820465088, + "Top": 0.33666667342185974, + "Width": 0.23999999463558197 + }, + "Confidence": 100, + "Landmarks": [ + { + "Type": "EYE_LEFT", + "X": 0.6394737362861633, + "Y": 0.40819624066352844 + }, + { + "Type": "EYE_RIGHT", + "X": 0.7266660928726196, + "Y": 0.41039225459098816 + }, + { + "Type": "NOSE_LEFT", + "X": 0.6912462115287781, + "Y": 0.44240960478782654 + }, + { + "Type": "MOUTH_DOWN", + "X": 0.6306198239326477, + "Y": 0.46700039505958557 + }, + { + "Type": "MOUTH_UP", + "X": 0.7215608954429626, + "Y": 0.47114261984825134 + } + ], + "Pose": { + "Pitch": 4.050806522369385, + "Roll": 0.9950747489929199, + "Yaw": 13.693790435791016 + }, + "Quality": { + "Brightness": 37.60169982910156, + "Sharpness": 80 + } + } + ], + "OrientationCorrection": "ROTATE_0" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation detects faces in an image stored in an AWS S3 bucket.", + "id": "to-detect-faces-in-an-image-1481841782793", + "title": "To detect faces in an image" + } + ], + "DetectLabels": [ + { + "input": { + "Image": { + "S3Object": { + "Bucket": "mybucket", + "Name": "myphoto" + } + }, + "MaxLabels": 123, + "MinConfidence": 70 + }, + "output": { + "Labels": [ + { + "Confidence": 99.25072479248047, + "Name": "People" + }, + { + "Confidence": 99.25074005126953, + "Name": "Person" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation detects labels in the supplied image", + "id": "to-detect-labels-1481834255770", + "title": "To detect labels" + } + ], + "IndexFaces": [ + { + "input": { + "CollectionId": "myphotos", + "DetectionAttributes": [ + + ], + "ExternalImageId": "myphotoid", + "Image": { + "S3Object": { + "Bucket": "mybucket", + "Name": "myphoto" + } + } + }, + "output": { + "FaceRecords": [ + { + "Face": { + "BoundingBox": { + "Height": 0.33481481671333313, + "Left": 0.31888890266418457, + "Top": 0.4933333396911621, + "Width": 0.25 + }, + "Confidence": 99.9991226196289, + "FaceId": "ff43d742-0c13-5d16-a3e8-03d3f58e980b", + "ImageId": "465f4e93-763e-51d0-b030-b9667a2d94b1" + }, + "FaceDetail": { + "BoundingBox": { + "Height": 0.33481481671333313, + "Left": 0.31888890266418457, + "Top": 0.4933333396911621, + "Width": 0.25 + }, + "Confidence": 99.9991226196289, + "Landmarks": [ + { + "Type": "EYE_LEFT", + "X": 0.3976764678955078, + "Y": 0.6248345971107483 + }, + { + "Type": "EYE_RIGHT", + "X": 0.4810936450958252, + "Y": 0.6317117214202881 + }, + { + "Type": "NOSE_LEFT", + "X": 0.41986238956451416, + "Y": 0.7111940383911133 + }, + { + "Type": "MOUTH_DOWN", + "X": 0.40525302290916443, + "Y": 0.7497701048851013 + }, + { + "Type": "MOUTH_UP", + "X": 0.4753248989582062, + "Y": 0.7558549642562866 + } + ], + "Pose": { + "Pitch": -9.713645935058594, + "Roll": 4.707281112670898, + "Yaw": -24.438663482666016 + }, + "Quality": { + "Brightness": 29.23358917236328, + "Sharpness": 80 + } + } + }, + { + "Face": { + "BoundingBox": { + "Height": 0.32592591643333435, + "Left": 0.5144444704055786, + "Top": 0.15111111104488373, + "Width": 0.24444444477558136 + }, + "Confidence": 99.99950408935547, + "FaceId": "8be04dba-4e58-520d-850e-9eae4af70eb2", + "ImageId": "465f4e93-763e-51d0-b030-b9667a2d94b1" + }, + "FaceDetail": { + "BoundingBox": { + "Height": 0.32592591643333435, + "Left": 0.5144444704055786, + "Top": 0.15111111104488373, + "Width": 0.24444444477558136 + }, + "Confidence": 99.99950408935547, + "Landmarks": [ + { + "Type": "EYE_LEFT", + "X": 0.6006892323493958, + "Y": 0.290842205286026 + }, + { + "Type": "EYE_RIGHT", + "X": 0.6808141469955444, + "Y": 0.29609042406082153 + }, + { + "Type": "NOSE_LEFT", + "X": 0.6395332217216492, + "Y": 0.3522595763206482 + }, + { + "Type": "MOUTH_DOWN", + "X": 0.5892083048820496, + "Y": 0.38689887523651123 + }, + { + "Type": "MOUTH_UP", + "X": 0.674560010433197, + "Y": 0.394125759601593 + } + ], + "Pose": { + "Pitch": -4.683138370513916, + "Roll": 2.1029529571533203, + "Yaw": 6.716655254364014 + }, + "Quality": { + "Brightness": 34.951698303222656, + "Sharpness": 160 + } + } + } + ], + "OrientationCorrection": "ROTATE_0" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation detects faces in an image and adds them to the specified Rekognition collection.", + "id": "to-add-a-face-to-a-collection-1482179542923", + "title": "To add a face to a collection" + } + ], + "ListCollections": [ + { + "input": { + }, + "output": { + "CollectionIds": [ + "myphotos" + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation returns a list of Rekognition collections.", + "id": "to-list-the-collections-1482179199088", + "title": "To list the collections" + } + ], + "ListFaces": [ + { + "input": { + "CollectionId": "myphotos", + "MaxResults": 20 + }, + "output": { + "Faces": [ + { + "BoundingBox": { + "Height": 0.18000000715255737, + "Left": 0.5555559992790222, + "Top": 0.336667001247406, + "Width": 0.23999999463558197 + }, + "Confidence": 100, + "FaceId": "1c62e8b5-69a7-5b7d-b3cd-db4338a8a7e7", + "ImageId": "147fdf82-7a71-52cf-819b-e786c7b9746e" + }, + { + "BoundingBox": { + "Height": 0.16555599868297577, + "Left": 0.30963000655174255, + "Top": 0.7066670060157776, + "Width": 0.22074100375175476 + }, + "Confidence": 100, + "FaceId": "29a75abe-397b-5101-ba4f-706783b2246c", + "ImageId": "147fdf82-7a71-52cf-819b-e786c7b9746e" + }, + { + "BoundingBox": { + "Height": 0.3234420120716095, + "Left": 0.3233329951763153, + "Top": 0.5, + "Width": 0.24222199618816376 + }, + "Confidence": 99.99829864501953, + "FaceId": "38271d79-7bc2-5efb-b752-398a8d575b85", + "ImageId": "d5631190-d039-54e4-b267-abd22c8647c5" + }, + { + "BoundingBox": { + "Height": 0.03555560111999512, + "Left": 0.37388700246810913, + "Top": 0.2477779984474182, + "Width": 0.04747769981622696 + }, + "Confidence": 99.99210357666016, + "FaceId": "3b01bef0-c883-5654-ba42-d5ad28b720b3", + "ImageId": "812d9f04-86f9-54fc-9275-8d0dcbcb6784" + }, + { + "BoundingBox": { + "Height": 0.05333330109715462, + "Left": 0.2937690019607544, + "Top": 0.35666701197624207, + "Width": 0.07121659815311432 + }, + "Confidence": 99.99919891357422, + "FaceId": "4839a608-49d0-566c-8301-509d71b534d1", + "ImageId": "812d9f04-86f9-54fc-9275-8d0dcbcb6784" + }, + { + "BoundingBox": { + "Height": 0.3249259889125824, + "Left": 0.5155559778213501, + "Top": 0.1513350009918213, + "Width": 0.24333299696445465 + }, + "Confidence": 99.99949645996094, + "FaceId": "70008e50-75e4-55d0-8e80-363fb73b3a14", + "ImageId": "d5631190-d039-54e4-b267-abd22c8647c5" + }, + { + "BoundingBox": { + "Height": 0.03777780011296272, + "Left": 0.7002969980239868, + "Top": 0.18777799606323242, + "Width": 0.05044509842991829 + }, + "Confidence": 99.92639923095703, + "FaceId": "7f5f88ed-d684-5a88-b0df-01e4a521552b", + "ImageId": "812d9f04-86f9-54fc-9275-8d0dcbcb6784" + }, + { + "BoundingBox": { + "Height": 0.05555560067296028, + "Left": 0.13946600258350372, + "Top": 0.46333301067352295, + "Width": 0.07270029932260513 + }, + "Confidence": 99.99469757080078, + "FaceId": "895b4e2c-81de-5902-a4bd-d1792bda00b2", + "ImageId": "812d9f04-86f9-54fc-9275-8d0dcbcb6784" + }, + { + "BoundingBox": { + "Height": 0.3259260058403015, + "Left": 0.5144439935684204, + "Top": 0.15111100673675537, + "Width": 0.24444399774074554 + }, + "Confidence": 99.99949645996094, + "FaceId": "8be04dba-4e58-520d-850e-9eae4af70eb2", + "ImageId": "465f4e93-763e-51d0-b030-b9667a2d94b1" + }, + { + "BoundingBox": { + "Height": 0.18888899683952332, + "Left": 0.3783380091190338, + "Top": 0.2355560064315796, + "Width": 0.25222599506378174 + }, + "Confidence": 99.9999008178711, + "FaceId": "908544ad-edc3-59df-8faf-6a87cc256cf5", + "ImageId": "3c731605-d772-541a-a5e7-0375dbc68a07" + }, + { + "BoundingBox": { + "Height": 0.33481499552726746, + "Left": 0.31888899207115173, + "Top": 0.49333301186561584, + "Width": 0.25 + }, + "Confidence": 99.99909973144531, + "FaceId": "ff43d742-0c13-5d16-a3e8-03d3f58e980b", + "ImageId": "465f4e93-763e-51d0-b030-b9667a2d94b1" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation lists the faces in a Rekognition collection.", + "id": "to-list-the-faces-in-a-collection-1482181416530", + "title": "To list the faces in a collection" + } + ], + "SearchFaces": [ + { + "input": { + "CollectionId": "myphotos", + "FaceId": "70008e50-75e4-55d0-8e80-363fb73b3a14", + "FaceMatchThreshold": 90, + "MaxFaces": 10 + }, + "output": { + "FaceMatches": [ + { + "Face": { + "BoundingBox": { + "Height": 0.3259260058403015, + "Left": 0.5144439935684204, + "Top": 0.15111100673675537, + "Width": 0.24444399774074554 + }, + "Confidence": 99.99949645996094, + "FaceId": "8be04dba-4e58-520d-850e-9eae4af70eb2", + "ImageId": "465f4e93-763e-51d0-b030-b9667a2d94b1" + }, + "Similarity": 99.97222137451172 + }, + { + "Face": { + "BoundingBox": { + "Height": 0.16555599868297577, + "Left": 0.30963000655174255, + "Top": 0.7066670060157776, + "Width": 0.22074100375175476 + }, + "Confidence": 100, + "FaceId": "29a75abe-397b-5101-ba4f-706783b2246c", + "ImageId": "147fdf82-7a71-52cf-819b-e786c7b9746e" + }, + "Similarity": 97.04154968261719 + }, + { + "Face": { + "BoundingBox": { + "Height": 0.18888899683952332, + "Left": 0.3783380091190338, + "Top": 0.2355560064315796, + "Width": 0.25222599506378174 + }, + "Confidence": 99.9999008178711, + "FaceId": "908544ad-edc3-59df-8faf-6a87cc256cf5", + "ImageId": "3c731605-d772-541a-a5e7-0375dbc68a07" + }, + "Similarity": 95.94520568847656 + } + ], + "SearchedFaceId": "70008e50-75e4-55d0-8e80-363fb73b3a14" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation searches for matching faces in the collection the supplied face belongs to.", + "id": "to-delete-a-face-1482182799377", + "title": "To delete a face" + } + ], + "SearchFacesByImage": [ + { + "input": { + "CollectionId": "myphotos", + "FaceMatchThreshold": 95, + "Image": { + "S3Object": { + "Bucket": "mybucket", + "Name": "myphoto" + } + }, + "MaxFaces": 5 + }, + "output": { + "FaceMatches": [ + { + "Face": { + "BoundingBox": { + "Height": 0.3234420120716095, + "Left": 0.3233329951763153, + "Top": 0.5, + "Width": 0.24222199618816376 + }, + "Confidence": 99.99829864501953, + "FaceId": "38271d79-7bc2-5efb-b752-398a8d575b85", + "ImageId": "d5631190-d039-54e4-b267-abd22c8647c5" + }, + "Similarity": 99.97036743164062 + } + ], + "SearchedFaceBoundingBox": { + "Height": 0.33481481671333313, + "Left": 0.31888890266418457, + "Top": 0.4933333396911621, + "Width": 0.25 + }, + "SearchedFaceConfidence": 99.9991226196289 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation searches for faces in a Rekognition collection that match the largest face in an S3 bucket stored image.", + "id": "to-search-for-faces-matching-a-supplied-image-1482175994491", + "title": "To search for faces matching a supplied image" + } + ] + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rekognition/2016-06-27/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rekognition/2016-06-27/paginators-1.json new file mode 100644 index 000000000..69bb561ad --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rekognition/2016-06-27/paginators-1.json @@ -0,0 +1,16 @@ +{ + "pagination": { + "ListCollections": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "CollectionIds" + }, + "ListFaces": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "Faces" + } + } +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/api-2.json index 053ad8fd6..f1bf92df8 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/api-2.json @@ -7,7 +7,8 @@ "protocol":"rest-xml", "serviceAbbreviation":"Route 53", "serviceFullName":"Amazon Route 53", - "signatureVersion":"v4" + "signatureVersion":"v4", + "uid":"route53-2013-04-01" }, "operations":{ "AssociateVPCWithHostedZone":{ @@ -24,6 +25,7 @@ "output":{"shape":"AssociateVPCWithHostedZoneResponse"}, "errors":[ {"shape":"NoSuchHostedZone"}, + {"shape":"NotAuthorizedException"}, {"shape":"InvalidVPCId"}, {"shape":"InvalidInput"}, {"shape":"PublicZoneVPCAssociation"}, @@ -199,6 +201,26 @@ {"shape":"InvalidTrafficPolicyDocument"} ] }, + "CreateVPCAssociationAuthorization":{ + "name":"CreateVPCAssociationAuthorization", + "http":{ + "method":"POST", + "requestUri":"/2013-04-01/hostedzone/{Id}/authorizevpcassociation" + }, + "input":{ + "shape":"CreateVPCAssociationAuthorizationRequest", + "locationName":"CreateVPCAssociationAuthorizationRequest", + "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"} + }, + "output":{"shape":"CreateVPCAssociationAuthorizationResponse"}, + "errors":[ + {"shape":"ConcurrentModification"}, + {"shape":"TooManyVPCAssociationAuthorizations"}, + {"shape":"NoSuchHostedZone"}, + {"shape":"InvalidVPCId"}, + {"shape":"InvalidInput"} + ] + }, "DeleteHealthCheck":{ "name":"DeleteHealthCheck", "http":{ @@ -273,6 +295,26 @@ {"shape":"PriorRequestNotComplete"} ] }, + "DeleteVPCAssociationAuthorization":{ + "name":"DeleteVPCAssociationAuthorization", + "http":{ + "method":"POST", + "requestUri":"/2013-04-01/hostedzone/{Id}/deauthorizevpcassociation" + }, + "input":{ + "shape":"DeleteVPCAssociationAuthorizationRequest", + "locationName":"DeleteVPCAssociationAuthorizationRequest", + "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"} + }, + "output":{"shape":"DeleteVPCAssociationAuthorizationResponse"}, + "errors":[ + {"shape":"ConcurrentModification"}, + {"shape":"VPCAssociationAuthorizationNotFound"}, + {"shape":"NoSuchHostedZone"}, + {"shape":"InvalidVPCId"}, + {"shape":"InvalidInput"} + ] + }, "DisassociateVPCFromHostedZone":{ "name":"DisassociateVPCFromHostedZone", "http":{ @@ -306,20 +348,6 @@ {"shape":"InvalidInput"} ] }, - "GetChangeDetails":{ - "name":"GetChangeDetails", - "http":{ - "method":"GET", - "requestUri":"/2013-04-01/changedetails/{Id}" - }, - "input":{"shape":"GetChangeDetailsRequest"}, - "output":{"shape":"GetChangeDetailsResponse"}, - "errors":[ - {"shape":"NoSuchChange"}, - {"shape":"InvalidInput"} - ], - "deprecated":true - }, "GetCheckerIpRanges":{ "name":"GetCheckerIpRanges", "http":{ @@ -465,34 +493,6 @@ "input":{"shape":"GetTrafficPolicyInstanceCountRequest"}, "output":{"shape":"GetTrafficPolicyInstanceCountResponse"} }, - "ListChangeBatchesByHostedZone":{ - "name":"ListChangeBatchesByHostedZone", - "http":{ - "method":"GET", - "requestUri":"/2013-04-01/hostedzone/{Id}/changes" - }, - "input":{"shape":"ListChangeBatchesByHostedZoneRequest"}, - "output":{"shape":"ListChangeBatchesByHostedZoneResponse"}, - "errors":[ - {"shape":"NoSuchHostedZone"}, - {"shape":"InvalidInput"} - ], - "deprecated":true - }, - "ListChangeBatchesByRRSet":{ - "name":"ListChangeBatchesByRRSet", - "http":{ - "method":"GET", - "requestUri":"/2013-04-01/hostedzone/{Id}/rrsChanges" - }, - "input":{"shape":"ListChangeBatchesByRRSetRequest"}, - "output":{"shape":"ListChangeBatchesByRRSetResponse"}, - "errors":[ - {"shape":"NoSuchHostedZone"}, - {"shape":"InvalidInput"} - ], - "deprecated":true - }, "ListGeoLocations":{ "name":"ListGeoLocations", "http":{ @@ -672,6 +672,20 @@ {"shape":"NoSuchTrafficPolicy"} ] }, + "ListVPCAssociationAuthorizations":{ + "name":"ListVPCAssociationAuthorizations", + "http":{ + "method":"GET", + "requestUri":"/2013-04-01/hostedzone/{Id}/authorizevpcassociation" + }, + "input":{"shape":"ListVPCAssociationAuthorizationsRequest"}, + "output":{"shape":"ListVPCAssociationAuthorizationsResponse"}, + "errors":[ + {"shape":"NoSuchHostedZone"}, + {"shape":"InvalidInput"}, + {"shape":"InvalidPaginationToken"} + ] + }, "TestDNSAnswer":{ "name":"TestDNSAnswer", "http":{ @@ -760,7 +774,6 @@ } }, "shapes":{ - "AWSAccountID":{"type":"string"}, "AlarmIdentifier":{ "type":"structure", "required":[ @@ -842,31 +855,6 @@ "Changes":{"shape":"Changes"} } }, - "ChangeBatchRecord":{ - "type":"structure", - "required":[ - "Id", - "Status" - ], - "members":{ - "Id":{"shape":"ResourceId"}, - "SubmittedAt":{"shape":"TimeStamp"}, - "Status":{"shape":"ChangeStatus"}, - "Comment":{"shape":"ResourceDescription"}, - "Submitter":{"shape":"AWSAccountID"}, - "Changes":{"shape":"Changes"} - }, - "deprecated":true - }, - "ChangeBatchRecords":{ - "type":"list", - "member":{ - "shape":"ChangeBatchRecord", - "locationName":"ChangeBatchRecord" - }, - "deprecated":true, - "min":1 - }, "ChangeInfo":{ "type":"structure", "required":[ @@ -982,10 +970,13 @@ "type":"string", "enum":[ "us-east-1", + "us-east-2", "us-west-1", "us-west-2", + "ca-central-1", "eu-central-1", "eu-west-1", + "eu-west-2", "ap-south-1", "ap-southeast-1", "ap-southeast-2", @@ -1201,16 +1192,37 @@ } } }, + "CreateVPCAssociationAuthorizationRequest":{ + "type":"structure", + "required":[ + "HostedZoneId", + "VPC" + ], + "members":{ + "HostedZoneId":{ + "shape":"ResourceId", + "location":"uri", + "locationName":"Id" + }, + "VPC":{"shape":"VPC"} + } + }, + "CreateVPCAssociationAuthorizationResponse":{ + "type":"structure", + "required":[ + "HostedZoneId", + "VPC" + ], + "members":{ + "HostedZoneId":{"shape":"ResourceId"}, + "VPC":{"shape":"VPC"} + } + }, "DNSName":{ "type":"string", "max":1024 }, "DNSRCode":{"type":"string"}, - "Date":{ - "type":"string", - "deprecated":true, - "max":256 - }, "DelegationSet":{ "type":"structure", "required":["NameServers"], @@ -1360,6 +1372,26 @@ "members":{ } }, + "DeleteVPCAssociationAuthorizationRequest":{ + "type":"structure", + "required":[ + "HostedZoneId", + "VPC" + ], + "members":{ + "HostedZoneId":{ + "shape":"ResourceId", + "location":"uri", + "locationName":"Id" + }, + "VPC":{"shape":"VPC"} + } + }, + "DeleteVPCAssociationAuthorizationResponse":{ + "type":"structure", + "members":{ + } + }, "Dimension":{ "type":"structure", "required":[ @@ -1486,26 +1518,6 @@ "max":64, "min":1 }, - "GetChangeDetailsRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"ResourceId", - "location":"uri", - "locationName":"Id" - } - }, - "deprecated":true - }, - "GetChangeDetailsResponse":{ - "type":"structure", - "required":["ChangeBatchRecord"], - "members":{ - "ChangeBatchRecord":{"shape":"ChangeBatchRecord"} - }, - "deprecated":true - }, "GetChangeRequest":{ "type":"structure", "required":["Id"], @@ -1930,8 +1942,8 @@ }, "IPAddress":{ "type":"string", - "max":15, - "pattern":"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" + "max":45, + "pattern":"(^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$)" }, "IPAddressCidr":{"type":"string"}, "IncompatibleVersion":{ @@ -1980,6 +1992,14 @@ "error":{"httpStatusCode":400}, "exception":true }, + "InvalidPaginationToken":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, "InvalidTrafficPolicyDocument":{ "type":"structure", "members":{ @@ -2013,127 +2033,6 @@ }, "exception":true }, - "ListChangeBatchesByHostedZoneRequest":{ - "type":"structure", - "required":[ - "HostedZoneId", - "StartDate", - "EndDate" - ], - "members":{ - "HostedZoneId":{ - "shape":"ResourceId", - "location":"uri", - "locationName":"Id" - }, - "StartDate":{ - "shape":"Date", - "location":"querystring", - "locationName":"startDate" - }, - "EndDate":{ - "shape":"Date", - "location":"querystring", - "locationName":"endDate" - }, - "MaxItems":{ - "shape":"PageMaxItems", - "location":"querystring", - "locationName":"maxItems" - }, - "Marker":{ - "shape":"PageMarker", - "location":"querystring", - "locationName":"marker" - } - }, - "deprecated":true - }, - "ListChangeBatchesByHostedZoneResponse":{ - "type":"structure", - "required":[ - "MaxItems", - "Marker", - "ChangeBatchRecords" - ], - "members":{ - "MaxItems":{"shape":"PageMaxItems"}, - "Marker":{"shape":"PageMarker"}, - "IsTruncated":{"shape":"PageTruncated"}, - "ChangeBatchRecords":{"shape":"ChangeBatchRecords"}, - "NextMarker":{"shape":"PageMarker"} - }, - "deprecated":true - }, - "ListChangeBatchesByRRSetRequest":{ - "type":"structure", - "required":[ - "HostedZoneId", - "Name", - "Type", - "StartDate", - "EndDate" - ], - "members":{ - "HostedZoneId":{ - "shape":"ResourceId", - "location":"uri", - "locationName":"Id" - }, - "Name":{ - "shape":"DNSName", - "location":"querystring", - "locationName":"rrSet_name" - }, - "Type":{ - "shape":"RRType", - "location":"querystring", - "locationName":"type" - }, - "SetIdentifier":{ - "shape":"ResourceRecordSetIdentifier", - "location":"querystring", - "locationName":"identifier" - }, - "StartDate":{ - "shape":"Date", - "location":"querystring", - "locationName":"startDate" - }, - "EndDate":{ - "shape":"Date", - "location":"querystring", - "locationName":"endDate" - }, - "MaxItems":{ - "shape":"PageMaxItems", - "location":"querystring", - "locationName":"maxItems" - }, - "Marker":{ - "shape":"PageMarker", - "location":"querystring", - "locationName":"marker" - } - }, - "deprecated":true - }, - "ListChangeBatchesByRRSetResponse":{ - "type":"structure", - "required":[ - "MaxItems", - "Marker", - "ChangeBatchRecords" - ], - "members":{ - "MaxItems":{"shape":"PageMaxItems"}, - "Marker":{"shape":"PageMarker"}, - "IsTruncated":{"shape":"PageTruncated"}, - "ChangeBatchRecords":{"shape":"ChangeBatchRecords"}, - "NextMarker":{"shape":"PageMarker"} - }, - "deprecated":true - }, "ListGeoLocationsRequest":{ "type":"structure", "members":{ @@ -2608,6 +2507,40 @@ "MaxItems":{"shape":"PageMaxItems"} } }, + "ListVPCAssociationAuthorizationsRequest":{ + "type":"structure", + "required":["HostedZoneId"], + "members":{ + "HostedZoneId":{ + "shape":"ResourceId", + "location":"uri", + "locationName":"Id" + }, + "NextToken":{ + "shape":"PaginationToken", + "location":"querystring", + "locationName":"nexttoken" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxresults" + } + } + }, + "ListVPCAssociationAuthorizationsResponse":{ + "type":"structure", + "required":[ + "HostedZoneId", + "VPCs" + ], + "members":{ + "HostedZoneId":{"shape":"ResourceId"}, + "NextToken":{"shape":"PaginationToken"}, + "VPCs":{"shape":"VPCs"} + } + }, + "MaxResults":{"type":"string"}, "MeasureLatency":{"type":"boolean"}, "Message":{ "type":"string", @@ -2688,12 +2621,24 @@ "max":128, "min":1 }, + "NotAuthorizedException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":401}, + "exception":true + }, "PageMarker":{ "type":"string", "max":64 }, "PageMaxItems":{"type":"string"}, "PageTruncated":{"type":"boolean"}, + "PaginationToken":{ + "type":"string", + "max":256 + }, "Period":{ "type":"integer", "min":60 @@ -2815,7 +2760,9 @@ "us-east-2", "us-west-1", "us-west-2", + "ca-central-1", "eu-west-1", + "eu-west-2", "eu-central-1", "ap-southeast-1", "ap-southeast-2", @@ -2891,7 +2838,7 @@ }, "SubnetMask":{ "type":"string", - "max":2, + "max":3, "min":0 }, "TTL":{ @@ -3052,6 +2999,14 @@ "error":{"httpStatusCode":400}, "exception":true }, + "TooManyVPCAssociationAuthorizations":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, "TrafficPolicies":{ "type":"list", "member":{ @@ -3095,7 +3050,8 @@ }, "TrafficPolicyId":{ "type":"string", - "max":36 + "max":36, + "min":1 }, "TrafficPolicyInUse":{ "type":"structure", @@ -3141,7 +3097,8 @@ "TrafficPolicyInstanceCount":{"type":"integer"}, "TrafficPolicyInstanceId":{ "type":"string", - "max":36 + "max":36, + "min":1 }, "TrafficPolicyInstanceState":{"type":"string"}, "TrafficPolicyInstances":{ @@ -3301,6 +3258,14 @@ "VPCId":{"shape":"VPCId"} } }, + "VPCAssociationAuthorizationNotFound":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, "VPCAssociationNotFound":{ "type":"structure", "members":{ @@ -3321,6 +3286,7 @@ "us-west-1", "us-west-2", "eu-west-1", + "eu-west-2", "eu-central-1", "ap-southeast-1", "ap-southeast-2", @@ -3328,6 +3294,7 @@ "ap-northeast-1", "ap-northeast-2", "sa-east-1", + "ca-central-1", "cn-north-1" ], "max":64, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/docs-2.json index 67b9b039d..bcdde4ffb 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/docs-2.json @@ -2,24 +2,25 @@ "version": "2.0", "service": null, "operations": { - "AssociateVPCWithHostedZone": "

Associates an Amazon VPC with a private hosted zone.

The VPC and the hosted zone must already exist, and you must have created a private hosted zone. You cannot convert a public hosted zone into a private hosted zone.

Send a POST request to the /2013-04-01/hostedzone/hosted zone ID/associatevpc resource. The request body must include an XML document with a AssociateVPCWithHostedZoneRequest element. The response returns the AssociateVPCWithHostedZoneResponse element.

If you used different accounts to create the hosted zone and to create the Amazon VPCs that you want to associate with the hosted zone, we need to update account permissions for you. For more information, see Associating Amazon VPCs and Private Hosted Zones That You Create with Different AWS Accounts in the Amazon Route 53 Developer Guide.

", - "ChangeResourceRecordSets": "

Create, change, update, or delete authoritative DNS information on all Amazon Route 53 servers. Send a POST request to:

/2013-04-01/hostedzone/Amazon Route 53 hosted Zone ID/rrset resource.

The request body must include a document with a ChangeResourceRecordSetsRequest element. The request body contains a list of change items, known as a change batch. Change batches are considered transactional changes. When using the Amazon Route 53 API to change resource record sets, Amazon Route 53 either makes all or none of the changes in a change batch request. This ensures that Amazon Route 53 never partially implements the intended changes to the resource record sets in a hosted zone.

For example, a change batch request that deletes the CNAME record for www.example.com and creates an alias resource record set for www.example.com. Amazon Route 53 deletes the first resource record set and creates the second resource record set in a single operation. If either the DELETE or the CREATE action fails, then both changes (plus any other changes in the batch) fail, and the original CNAME record continues to exist.

Due to the nature of transactional changes, you cannot delete the same resource record set more than once in a single change batch. If you attempt to delete the same change batch more than once, Amazon Route 53 returns an InvalidChangeBatch error.

To create resource record sets for complex routing configurations, use either the traffic flow visual editor in the Amazon Route 53 console or the API actions for traffic policies and traffic policy instances. Save the configuration as a traffic policy, then associate the traffic policy with one or more domain names (such as example.com) or subdomain names (such as www.example.com), in the same hosted zone or in multiple hosted zones. You can roll back the updates if the new configuration isn't performing as expected. For more information, see Using Traffic Flow to Route DNS Traffic in the Amazon Route 53 Developer Guide.

Use ChangeResourceRecordsSetsRequest to perform the following actions:

  • CREATE: Creates a resource record set that has the specified values.

  • DELETE: Deletes an existing resource record set that has the specified values for Name, Type, Set Identifier (for code latency, weighted, geolocation, and failover resource record sets), and TTL (except alias resource record sets, for which the TTL is determined by the AWS resource you're routing queries to).

  • UPSERT: If a resource record set does not already exist, AWS creates it. If a resource set does exist, Amazon Route 53 updates it with the values in the request. Amazon Route 53 can update an existing resource record set only when all of the following values match: Name, Type, and Set Identifier (for weighted, latency, geolocation, and failover resource record sets).

In response to a ChangeResourceRecordSets request, the DNS data is changed on all Amazon Route 53 DNS servers. Initially, the status of a change is PENDING, meaning the change has not yet propagated to all the authoritative Amazon Route 53 DNS servers. When the change is propagated to all hosts, the change returns a status of INSYNC.

After sending a change request, confirm your change has propagated to all Amazon Route 53 DNS servers. Changes generally propagate to all Amazon Route 53 name servers in a few minutes. In rare circumstances, propagation can take up to 30 minutes. For more information, see GetChange.

For information about the limits on a ChangeResourceRecordSets request, see Limits in the Amazon Route 53 Developer Guide.

", + "AssociateVPCWithHostedZone": "

Associates an Amazon VPC with a private hosted zone.

To perform the association, the VPC and the private hosted zone must already exist. You can't convert a public hosted zone into a private hosted zone.

Send a POST request to the /2013-04-01/hostedzone/hosted zone ID/associatevpc resource. The request body must include a document with an AssociateVPCWithHostedZoneRequest element. The response contains a ChangeInfo data type that you can use to track the progress of the request.

If you want to associate a VPC that was created by using one AWS account with a private hosted zone that was created by using a different account, the AWS account that created the private hosted zone must first submit a CreateVPCAssociationAuthorization request. Then the account that created the VPC must submit an AssociateVPCWithHostedZone request.

", + "ChangeResourceRecordSets": "

Create, change, update, or delete authoritative DNS information on all Amazon Route 53 servers. Send a POST request to:

/2013-04-01/hostedzone/Amazon Route 53 hosted Zone ID/rrset resource.

Change Batches and Transactional Changes

The request body must include a document with a ChangeResourceRecordSetsRequest element. The request body contains a list of change items, known as a change batch. Change batches are considered transactional changes. When using the Amazon Route 53 API to change resource record sets, Amazon Route 53 either makes all or none of the changes in a change batch request. This ensures that Amazon Route 53 never partially implements the intended changes to the resource record sets in a hosted zone.

For example, a change batch request that deletes the CNAME record for www.example.com and creates an alias resource record set for www.example.com. Amazon Route 53 deletes the first resource record set and creates the second resource record set in a single operation. If either the DELETE or the CREATE action fails, then both changes (plus any other changes in the batch) fail, and the original CNAME record continues to exist.

Due to the nature of transactional changes, you can't delete the same resource record set more than once in a single change batch. If you attempt to delete the same change batch more than once, Amazon Route 53 returns an InvalidChangeBatch error.

Traffic Flow

To create resource record sets for complex routing configurations, use either the traffic flow visual editor in the Amazon Route 53 console or the API actions for traffic policies and traffic policy instances. Save the configuration as a traffic policy, then associate the traffic policy with one or more domain names (such as example.com) or subdomain names (such as www.example.com), in the same hosted zone or in multiple hosted zones. You can roll back the updates if the new configuration isn't performing as expected. For more information, see Using Traffic Flow to Route DNS Traffic in the Amazon Route 53 Developer Guide.

Create, Delete, and Upsert

Use ChangeResourceRecordsSetsRequest to perform the following actions:

  • CREATE: Creates a resource record set that has the specified values.

  • DELETE: Deletes an existing resource record set that has the specified values.

  • UPSERT: If a resource record set does not already exist, AWS creates it. If a resource set does exist, Amazon Route 53 updates it with the values in the request.

Syntaxes for Creating, Updating, and Deleting Resource Record Sets

The syntax for a request depends on the type of resource record set that you want to create, delete, or update, such as weighted, alias, or failover. The XML elements in your request must appear in the order listed in the syntax.

For an example for each type of resource record set, see \"Examples.\"

Don't refer to the syntax in the \"Parameter Syntax\" section, which includes all of the elements for every kind of resource record set that you can create, delete, or update by using ChangeResourceRecordSets.

Change Propagation to Amazon Route 53 DNS Servers

When you submit a ChangeResourceRecordSets request, Amazon Route 53 propagates your changes to all of the Amazon Route 53 authoritative DNS servers. While your changes are propagating, GetChange returns a status of PENDING. When propagation is complete, GetChange returns a status of INSYNC. Changes generally propagate to all Amazon Route 53 name servers in a few minutes. In rare circumstances, propagation can take up to 30 minutes. For more information, see GetChange.

Limits on ChangeResourceRecordSets Requests

For information about the limits on a ChangeResourceRecordSets request, see Limits in the Amazon Route 53 Developer Guide.

", "ChangeTagsForResource": "

Adds, edits, or deletes tags for a health check or a hosted zone.

For information about using tags for cost allocation, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.

", - "CreateHealthCheck": "

Creates a new health check.

To create a new health check, send a POST request to the /2013-04-01/healthcheck resource. The request body must include an XML document with a CreateHealthCheckRequest element. The response returns the CreateHealthCheckResponse element, containing the health check ID specified when adding health check to a resource record set. For information about adding health checks to resource record sets, see ResourceRecordSet$HealthCheckId in ChangeResourceRecordSets.

If you are registering Amazon EC2 instances with an Elastic Load Balancing (ELB) load balancer, do not create Amazon Route 53 health checks for the Amazon EC2 instances. When you register an Amazon EC2 instance with a load balancer, you configure settings for an ELB health check, which performs a similar function to an Amazon Route 53 health check.

You can associate health checks with failover resource record sets in a private hosted zone. Note the following:

  • Amazon Route 53 health checkers are outside the VPC. To check the health of an endpoint within a VPC by IP address, you must assign a public IP address to the instance in the VPC.

  • You can configure a health checker to check the health of an external resource that the instance relies on, such as a database server.

  • You can create a CloudWatch metric, associate an alarm with the metric, and then create a health check that is based on the state of the alarm. For example, you might create a CloudWatch metric that checks the status of the Amazon EC2 StatusCheckFailed metric, add an alarm to the metric, and then create a health check that is based on the state of the alarm. For information about creating CloudWatch metrics and alarms by using the CloudWatch console, see the Amazon CloudWatch Developer Guide.

", - "CreateHostedZone": "

Creates a new public hosted zone, used to specify how the Domain Name System (DNS) routes traffic on the Internet for a domain, such as example.com, and its subdomains.

Public hosted zones cannot be converted to a private hosted zone or vice versa. Instead, create a new hosted zone with the same name and create new resource record sets.

Send a POST request to the /2013-04-01/hostedzone resource. The request body must include an XML document with a CreateHostedZoneRequest element. The response returns the CreateHostedZoneResponse element containing metadata about the hosted zone.

Fore more information about charges for hosted zones, see Amazon Route 53 Pricing.

Note the following:

  • You cannot create a hosted zone for a top-level domain (TLD).

  • Amazon Route 53 automatically creates a default SOA record and four NS records for the zone. For more information about SOA and NS records, see NS and SOA Records that Amazon Route 53 Creates for a Hosted Zone in the Amazon Route 53 Developer Guide.

  • If your domain is registered with a registrar other than Amazon Route 53, you must update the name servers with your registrar to make Amazon Route 53 your DNS service. For more information, see Configuring Amazon Route 53 as your DNS Service in the Amazon Route 53 Developer's Guide.

After creating a zone, its initial status is PENDING. This means that it is not yet available on all DNS servers. The status of the zone changes to INSYNC when the NS and SOA records are available on all Amazon Route 53 DNS servers.

When trying to create a hosted zone using a reusable delegation set, specify an optional DelegationSetId, and Amazon Route 53 would assign those 4 NS records for the zone, instead of allotting a new one.

", - "CreateReusableDelegationSet": "

Creates a delegation set (a group of four name servers) that can be reused by multiple hosted zones. If a hosted zoned ID is specified, CreateReusableDelegationSet marks the delegation set associated with that zone as reusable

Send a POST request to the /2013-04-01/delegationset resource. The request body must include an XML document with a CreateReusableDelegationSetRequest element.

A reusable delegation set cannot be associated with a private hosted zone/

For more information, including a procedure on how to create and configure a reusable delegation set (also known as white label name servers), see Configuring White Label Name Servers.

", + "CreateHealthCheck": "

Creates a new health check.

To create a new health check, send a POST request to the /2013-04-01/healthcheck resource. The request body must include a document with a CreateHealthCheckRequest element. The response returns the CreateHealthCheckResponse element, containing the health check ID specified when adding health check to a resource record set. For information about adding health checks to resource record sets, see ResourceRecordSet$HealthCheckId in ChangeResourceRecordSets.

If you're registering EC2 instances with an Elastic Load Balancing (ELB) load balancer, do not create Amazon Route 53 health checks for the EC2 instances. When you register an EC2 instance with a load balancer, you configure settings for an ELB health check, which performs a similar function to an Amazon Route 53 health check.

You can associate health checks with failover resource record sets in a private hosted zone. Note the following:

  • Amazon Route 53 health checkers are outside the VPC. To check the health of an endpoint within a VPC by IP address, you must assign a public IP address to the instance in the VPC.

  • You can configure a health checker to check the health of an external resource that the instance relies on, such as a database server.

  • You can create a CloudWatch metric, associate an alarm with the metric, and then create a health check that is based on the state of the alarm. For example, you might create a CloudWatch metric that checks the status of the Amazon EC2 StatusCheckFailed metric, add an alarm to the metric, and then create a health check that is based on the state of the alarm. For information about creating CloudWatch metrics and alarms by using the CloudWatch console, see the Amazon CloudWatch User Guide.

", + "CreateHostedZone": "

Creates a new public hosted zone, used to specify how the Domain Name System (DNS) routes traffic on the Internet for a domain, such as example.com, and its subdomains.

Public hosted zones can't be converted to a private hosted zone or vice versa. Instead, create a new hosted zone with the same name and create new resource record sets.

Send a POST request to the /2013-04-01/hostedzone resource. The request body must include a document with a CreateHostedZoneRequest element. The response returns the CreateHostedZoneResponse element containing metadata about the hosted zone.

Fore more information about charges for hosted zones, see Amazon Route 53 Pricing.

Note the following:

  • You can't create a hosted zone for a top-level domain (TLD).

  • Amazon Route 53 automatically creates a default SOA record and four NS records for the zone. For more information about SOA and NS records, see NS and SOA Records that Amazon Route 53 Creates for a Hosted Zone in the Amazon Route 53 Developer Guide.

  • If your domain is registered with a registrar other than Amazon Route 53, you must update the name servers with your registrar to make Amazon Route 53 your DNS service. For more information, see Configuring Amazon Route 53 as your DNS Service in the Amazon Route 53 Developer's Guide.

After creating a zone, its initial status is PENDING. This means that it is not yet available on all DNS servers. The status of the zone changes to INSYNC when the NS and SOA records are available on all Amazon Route 53 DNS servers.

When trying to create a hosted zone using a reusable delegation set, specify an optional DelegationSetId, and Amazon Route 53 would assign those 4 NS records for the zone, instead of allotting a new one.

", + "CreateReusableDelegationSet": "

Creates a delegation set (a group of four name servers) that can be reused by multiple hosted zones. If a hosted zoned ID is specified, CreateReusableDelegationSet marks the delegation set associated with that zone as reusable

Send a POST request to the /2013-04-01/delegationset resource. The request body must include a document with a CreateReusableDelegationSetRequest element.

A reusable delegation set can't be associated with a private hosted zone/

For more information, including a procedure on how to create and configure a reusable delegation set (also known as white label name servers), see Configuring White Label Name Servers.

", "CreateTrafficPolicy": "

Creates a traffic policy, which you use to create multiple DNS resource record sets for one domain name (such as example.com) or one subdomain name (such as www.example.com).

Send a POST request to the /2013-04-01/trafficpolicy resource. The request body must include a document with a CreateTrafficPolicyRequest element. The response includes the CreateTrafficPolicyResponse element, which contains information about the new traffic policy.

", "CreateTrafficPolicyInstance": "

Creates resource record sets in a specified hosted zone based on the settings in a specified traffic policy version. In addition, CreateTrafficPolicyInstance associates the resource record sets with a specified domain name (such as example.com) or subdomain name (such as www.example.com). Amazon Route 53 responds to DNS queries for the domain or subdomain name by using the resource record sets that CreateTrafficPolicyInstance created.

Send a POST request to the /2013-04-01/trafficpolicyinstance resource. The request body must include a document with a CreateTrafficPolicyRequest element. The response returns the CreateTrafficPolicyInstanceResponse element, which contains information about the traffic policy instance.

", "CreateTrafficPolicyVersion": "

Creates a new version of an existing traffic policy. When you create a new version of a traffic policy, you specify the ID of the traffic policy that you want to update and a JSON-formatted document that describes the new version. You use traffic policies to create multiple DNS resource record sets for one domain name (such as example.com) or one subdomain name (such as www.example.com). You can create a maximum of 1000 versions of a traffic policy. If you reach the limit and need to create another version, you'll need to start a new traffic policy.

Send a POST request to the /2013-04-01/trafficpolicy/ resource. The request body includes a document with a CreateTrafficPolicyVersionRequest element. The response returns the CreateTrafficPolicyVersionResponse element, which contains information about the new version of the traffic policy.

", - "DeleteHealthCheck": "

Deletes a health check. Send a DELETE request to the /2013-04-01/healthcheck/health check ID resource.

Amazon Route 53 does not prevent you from deleting a health check even if the health check is associated with one or more resource record sets. If you delete a health check and you don't update the associated resource record sets, the future status of the health check cannot be predicted and may change. This will affect the routing of DNS queries for your DNS failover configuration. For more information, see Replacing and Deleting Health Checks in the Amazon Route 53 Developer Guide.

", + "CreateVPCAssociationAuthorization": "

Authorizes the AWS account that created a specified VPC to submit an AssociateVPCWithHostedZone request to associate the VPC with a specified hosted zone that was created by a different account. To submit a CreateVPCAssociationAuthorization request, you must use the account that created the hosted zone. After you authorize the association, use the account that created the VPC to submit an AssociateVPCWithHostedZone request.

If you want to associate multiple VPCs that you created by using one account with a hosted zone that you created by using a different account, you must submit one authorization request for each VPC.

Send a POST request to the /2013-04-01/hostedzone/hosted zone ID/authorizevpcassociation resource. The request body must include a document with a CreateVPCAssociationAuthorizationRequest element. The response contains information about the authorization.

", + "DeleteHealthCheck": "

Deletes a health check. Send a DELETE request to the /2013-04-01/healthcheck/health check ID resource.

Amazon Route 53 does not prevent you from deleting a health check even if the health check is associated with one or more resource record sets. If you delete a health check and you don't update the associated resource record sets, the future status of the health check can't be predicted and may change. This will affect the routing of DNS queries for your DNS failover configuration. For more information, see Replacing and Deleting Health Checks in the Amazon Route 53 Developer Guide.

", "DeleteHostedZone": "

Deletes a hosted zone. Send a DELETE request to the /Amazon Route 53 API version/hostedzone/hosted zone ID resource.

Delete a hosted zone only if there are no resource record sets other than the default SOA record and NS resource record sets. If the hosted zone contains other resource record sets, delete them before deleting the hosted zone. If you try to delete a hosted zone that contains other resource record sets, Amazon Route 53 denies your request with a HostedZoneNotEmpty error. For information about deleting records from your hosted zone, see ChangeResourceRecordSets.

", "DeleteReusableDelegationSet": "

Deletes a reusable delegation set. Send a DELETE request to the /2013-04-01/delegationset/delegation set ID resource.

You can delete a reusable delegation set only if there are no associated hosted zones.

To verify that the reusable delegation set is not associated with any hosted zones, run the GetReusableDelegationSet action and specify the ID of the reusable delegation set that you want to delete.

", "DeleteTrafficPolicy": "

Deletes a traffic policy.

Send a DELETE request to the /Amazon Route 53 API version/trafficpolicy resource.

", "DeleteTrafficPolicyInstance": "

Deletes a traffic policy instance and all of the resource record sets that Amazon Route 53 created when you created the instance.

Send a DELETE request to the /Amazon Route 53 API version/trafficpolicy/traffic policy instance ID resource.

In the Amazon Route 53 console, traffic policy instances are known as policy records.

", - "DisassociateVPCFromHostedZone": "

Disassociates a VPC from a Amazon Route 53 private hosted zone.

Send a POST request to the /2013-04-01/hostedzone/hosted zone ID/disassociatevpc resource. The request body must include an XML document with a DisassociateVPCFromHostedZoneRequest element. The response returns the DisassociateVPCFromHostedZoneResponse element.

You can only disassociate a VPC from a private hosted zone when two or more VPCs are associated with that hosted zone. You cannot convert a private hosted zone into a public hosted zone.

", + "DeleteVPCAssociationAuthorization": "

Removes authorization to submit an AssociateVPCWithHostedZone request to associate a specified VPC with a hosted zone that was created by a different account. You must use the account that created the hosted zone to submit a DeleteVPCAssociationAuthorization request.

Sending this request only prevents the AWS account that created the VPC from associating the VPC with the Amazon Route 53 hosted zone in the future. If the VPC is already associated with the hosted zone, DeleteVPCAssociationAuthorization won't disassociate the VPC from the hosted zone. If you want to delete an existing association, use DisassociateVPCFromHostedZone.

Send a DELETE request to the /2013-04-01/hostedzone/hosted zone ID/deauthorizevpcassociation resource. The request body must include a document with a DeleteVPCAssociationAuthorizationRequest element.

", + "DisassociateVPCFromHostedZone": "

Disassociates a VPC from a Amazon Route 53 private hosted zone.

You can't disassociate the last VPC from a private hosted zone.

Send a POST request to the /2013-04-01/hostedzone/hosted zone ID/disassociatevpc resource. The request body must include a document with a DisassociateVPCFromHostedZoneRequest element. The response includes a DisassociateVPCFromHostedZoneResponse element.

You can't disassociate a VPC from a private hosted zone when only one VPC is associated with the hosted zone. You also can't convert a private hosted zone into a public hosted zone.

", "GetChange": "

Returns the current status of a change batch request. The status is one of the following values:

  • PENDING indicates that the changes in this request have not replicated to all Amazon Route 53 DNS servers. This is the initial status of all change batch requests.

  • INSYNC indicates that the changes have replicated to all Amazon Route 53 DNS servers.

", - "GetChangeDetails": "

Returns the status and changes of a change batch request.

", - "GetCheckerIpRanges": "

Retrieves a list of the IP ranges used by Amazon Route 53 health checkers to check the health of your resources. Send a GET request to the /Amazon Route 53 API version/checkeripranges resource. Use these IP addresses to configure router and firewall rules to allow health checkers to check the health of your resources.

", + "GetCheckerIpRanges": "

GetCheckerIpRanges still works, but we recommend that you download ip-ranges.json, which includes IP address ranges for all AWS services. For more information, see IP Address Ranges of Amazon Route 53 Servers in the Amazon Route 53 Developer Guide.

", "GetGeoLocation": "

Retrieves a single geo location. Send a GET request to the /2013-04-01/geolocation resource with one of these options: continentcode | countrycode | countrycode and subdivisioncode.

", "GetHealthCheck": "

Gets information about a specified health check. Send a GET request to the /2013-04-01/healthcheck/health check ID resource. For more information about using the console to perform this operation, see Amazon Route 53 Health Checks and DNS Failover in the Amazon Route 53 Developer Guide.

", "GetHealthCheckCount": "

To retrieve a count of all your health checks, send a GET request to the /2013-04-01/healthcheckcount resource.

", @@ -31,8 +32,6 @@ "GetTrafficPolicy": "

Gets information about a specific traffic policy version.

Send a GET request to the /Amazon Route 53 API version/trafficpolicy resource.

", "GetTrafficPolicyInstance": "

Gets information about a specified traffic policy instance.

Send a GET request to the /Amazon Route 53 API version/trafficpolicyinstance resource.

After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance request, there's a brief delay while Amazon Route 53 creates the resource record sets that are specified in the traffic policy definition. For more information, see the State response element.

In the Amazon Route 53 console, traffic policy instances are known as policy records.

", "GetTrafficPolicyInstanceCount": "

Gets the number of traffic policy instances that are associated with the current AWS account.

To get the number of traffic policy instances, send a GET request to the /2013-04-01/trafficpolicyinstancecount resource.

", - "ListChangeBatchesByHostedZone": "

Gets the list of ChangeBatches in a given time period for a given hosted zone.

", - "ListChangeBatchesByRRSet": "

Gets the list of ChangeBatches in a given time period for a given hosted zone and RRSet.

", "ListGeoLocations": "

Retrieves a list of supported geo locations. Send a GET request to the /2013-04-01/geolocations resource. The response to this request includes a GeoLocationDetailsList element for each location that Amazon Route 53 supports.

Countries are listed first, and continents are listed last. If Amazon Route 53 supports subdivisions for a country (for example, states or provinces), the subdivisions for that country are listed in alphabetical order immediately after the corresponding country.

", "ListHealthChecks": "

Retrieve a list of your health checks. Send a GET request to the /2013-04-01/healthcheck resource. The response to this request includes a HealthChecks element with zero or more HealthCheck child elements. By default, the list of health checks is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the Marker parameter to control the health check that the list begins with.

For information about listing health checks using the Amazon Route 53 console, see Amazon Route 53 Health Checks and DNS Failover.

", "ListHostedZones": "

To retrieve a list of your public and private hosted zones, send a GET request to the /2013-04-01/hostedzone resource. The response to this request includes a HostedZones child element for each hosted zone created by the current AWS account.

Amazon Route 53 returns a maximum of 100 items in each response. If you have a lot of hosted zones, you can use the maxitems parameter to list them in groups of up to 100. The response includes four values that help navigate from one group of maxitems hosted zones to the next:

  • MaxItems is the value specified for the maxitems parameter in the request that produced the current response.

  • If the value of IsTruncated in the response is true, there are more hosted zones associated with the current AWS account.

  • NextMarker is the hosted zone ID of the next hosted zone that is associated with the current AWS account. If you want to list more hosted zones, make another call to ListHostedZones, and specify the value of the NextMarker element in the marker parameter.

    If IsTruncated is false, the NextMarker element is omitted from the response.

  • If you're making the second or subsequent call to ListHostedZones, the Marker element matches the value that you specified in the marker parameter in the previous request.

", @@ -46,19 +45,14 @@ "ListTrafficPolicyInstancesByHostedZone": "

Gets information about the traffic policy instances that you created in a specified hosted zone.

After you submit an UpdateTrafficPolicyInstance request, there's a brief delay while Amazon Route 53 creates the resource record sets that are specified in the traffic policy definition. For more information, see the State response element.

Send a GET request to the /Amazon Route 53 API version/trafficpolicyinstance resource and include the ID of the hosted zone.

Amazon Route 53 returns a maximum of 100 items in each response. If you have a lot of traffic policy instances, you can use the MaxItems parameter to list them in groups of up to 100.

The response includes four values that help you navigate from one group of MaxItems traffic policy instances to the next:

  • IsTruncated

    If the value of IsTruncated in the response is true, there are more traffic policy instances associated with the current AWS account.

    If IsTruncated is false, this response includes the last traffic policy instance that is associated with the current account.

  • MaxItems

    The value that you specified for the MaxItems parameter in the request that produced the current response.

  • TrafficPolicyInstanceNameMarker and TrafficPolicyInstanceTypeMarker

    If IsTruncated is true, these two values in the response represent the first traffic policy instance in the next group of MaxItems traffic policy instances. To list more traffic policy instances, make another call to ListTrafficPolicyInstancesByHostedZone, and specify these values in the corresponding request parameters.

    If IsTruncated is false, all three elements are omitted from the response.

", "ListTrafficPolicyInstancesByPolicy": "

Gets information about the traffic policy instances that you created by using a specify traffic policy version.

After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance request, there's a brief delay while Amazon Route 53 creates the resource record sets that are specified in the traffic policy definition. For more information, see the State response element.

Send a GET request to the /Route 53 API version/trafficpolicyinstance resource and include the ID and version of the traffic policy.

Amazon Route 53 returns a maximum of 100 items in each response. If you have a lot of traffic policy instances, you can use the MaxItems parameter to list them in groups of up to 100.

The response includes five values that help you navigate from one group of MaxItems traffic policy instances to the next:

  • IsTruncated

    If the value of IsTruncated in the response is true, there are more traffic policy instances associated with the specified traffic policy.

    If IsTruncated is false, this response includes the last traffic policy instance that is associated with the specified traffic policy.

  • MaxItems

    The value that you specified for the MaxItems parameter in the request that produced the current response.

  • HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker

    If IsTruncated is true, these values in the response represent the first traffic policy instance in the next group of MaxItems traffic policy instances. To list more traffic policy instances, make another call to ListTrafficPolicyInstancesByPolicy, and specify these values in the corresponding request parameters.

    If IsTruncated is false, all three elements are omitted from the response.

", "ListTrafficPolicyVersions": "

Gets information about all of the versions for a specified traffic policy.

Send a GET request to the /Amazon Route 53 API version/trafficpolicy resource and specify the ID of the traffic policy for which you want to list versions.

Amazon Route 53 returns a maximum of 100 items in each response. If you have a lot of traffic policies, you can use the maxitems parameter to list them in groups of up to 100.

The response includes three values that help you navigate from one group of maxitems traffic policies to the next:

  • IsTruncated

    If the value of IsTruncated in the response is true, there are more traffic policy versions associated with the specified traffic policy.

    If IsTruncated is false, this response includes the last traffic policy version that is associated with the specified traffic policy.

  • TrafficPolicyVersionMarker

    The ID of the next traffic policy version that is associated with the current AWS account. If you want to list more traffic policies, make another call to ListTrafficPolicyVersions, and specify the value of the TrafficPolicyVersionMarker element in the TrafficPolicyVersionMarker request parameter.

    If IsTruncated is false, Amazon Route 53 omits the TrafficPolicyVersionMarker element from the response.

  • MaxItems

    The value that you specified for the MaxItems parameter in the request that produced the current response.

", + "ListVPCAssociationAuthorizations": "

Gets a list of the VPCs that were created by other accounts and that can be associated with a specified hosted zone because you've submitted one or more CreateVPCAssociationAuthorization requests.

Send a GET request to the /2013-04-01/hostedzone/hosted zone ID/authorizevpcassociation resource. The response to this request includes a VPCs element with a VPC child element for each VPC that can be associated with the hosted zone.

Amazon Route 53 returns up to 50 VPCs per page. To return fewer VPCs per page, include the MaxResults parameter:

/2013-04-01/hostedzone/hosted zone ID/authorizevpcassociation?MaxItems=VPCs per page

If the response includes a NextToken element, there are more VPCs to list. To get the next page of VPCs, submit another ListVPCAssociationAuthorizations request, and include the value of the NextToken element from the response in the NextToken request parameter:

/2013-04-01/hostedzone/hosted zone ID/authorizevpcassociation?MaxItems=VPCs per page&NextToken=

", "TestDNSAnswer": "

Gets the value that Amazon Route 53 returns in response to a DNS request for a specified record name and type. You can optionally specify the IP address of a DNS resolver, an EDNS0 client subnet IP address, and a subnet mask.

", - "UpdateHealthCheck": "

Updates an existing health check.

Send a POST request to the /2013-04-01/healthcheck/health check ID resource. The request body must include an XML document with an UpdateHealthCheckRequest element. For more information about updating health checks, see Creating, Updating, and Deleting Health Checks in the Amazon Route 53 Developer Guide.

", + "UpdateHealthCheck": "

Updates an existing health check.

Send a POST request to the /2013-04-01/healthcheck/health check ID resource. The request body must include a document with an UpdateHealthCheckRequest element. For more information about updating health checks, see Creating, Updating, and Deleting Health Checks in the Amazon Route 53 Developer Guide.

", "UpdateHostedZoneComment": "

Updates the hosted zone comment. Send a POST request to the /2013-04-01/hostedzone/hosted zone ID resource.

", "UpdateTrafficPolicyComment": "

Updates the comment for a specified traffic policy version.

Send a POST request to the /2013-04-01/trafficpolicy/ resource.

The request body must include a document with an UpdateTrafficPolicyCommentRequest element.

", "UpdateTrafficPolicyInstance": "

Updates the resource record sets in a specified hosted zone that were created based on the settings in a specified traffic policy version.

Send a POST request to the /2013-04-01/trafficpolicyinstance/traffic policy ID resource. The request body must include a document with an UpdateTrafficPolicyInstanceRequest element.

When you update a traffic policy instance, Amazon Route 53 continues to respond to DNS queries for the root resource record set name (such as example.com) while it replaces one group of resource record sets with another. Amazon Route 53 performs the following operations:

  1. Amazon Route 53 creates a new group of resource record sets based on the specified traffic policy. This is true regardless of how substantial the differences are between the existing resource record sets and the new resource record sets.

  2. When all of the new resource record sets have been created, Amazon Route 53 starts to respond to DNS queries for the root resource record set name (such as example.com) by using the new resource record sets.

  3. Amazon Route 53 deletes the old group of resource record sets that are associated with the root resource record set name.

" }, "shapes": { - "AWSAccountID": { - "base": null, - "refs": { - "ChangeBatchRecord$Submitter": "

The AWS account ID attached to the changes.

" - } - }, "AlarmIdentifier": { "base": "

A complex type that identifies the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether this health check is healthy.

", "refs": { @@ -75,13 +69,13 @@ "AliasHealthEnabled": { "base": null, "refs": { - "AliasTarget$EvaluateTargetHealth": "

Applies only to alias, weighted alias, latency alias, and failover alias record sets: If you set the value of EvaluateTargetHealth to true for the resource record set or sets in an alias, weighted alias, latency alias, or failover alias resource record set, and if you specify a value for HealthCheck$Id for every resource record set that is referenced by these alias resource record sets, the alias resource record sets inherit the health of the referenced resource record sets.

In this configuration, when Amazon Route 53 receives a DNS query for an alias resource record set:

  • Amazon Route 53 looks at the resource record sets that are referenced by the alias resource record sets to determine which health checks they're using.

  • Amazon Route 53 checks the current status of each health check. (Amazon Route 53 periodically checks the health of the endpoint that is specified in a health check; it doesn't perform the health check when the DNS query arrives.)

  • Based on the status of the health checks, Amazon Route 53 determines which resource record sets are healthy. Unhealthy resource record sets are immediately removed from consideration. In addition, if all of the resource record sets that are referenced by an alias resource record set are unhealthy, that alias resource record set also is immediately removed from consideration.

  • Based on the configuration of the alias resource record sets (weighted alias or latency alias, for example) and the configuration of the resource record sets that they reference, Amazon Route 53 chooses a resource record set from the healthy resource record sets, and responds to the query.

Note the following:

  • You cannot set EvaluateTargetHealth to true when the alias target is a CloudFront distribution.

  • If the AWS resource that you specify in AliasTarget is a resource record set or a group of resource record sets (for example, a group of weighted resource record sets), but it is not another alias resource record set, we recommend that you associate a health check with all of the resource record sets in the alias target.For more information, see What Happens When You Omit Health Checks? in the Amazon Route 53 Developer Guide.

  • If you specify an Elastic Beanstalk environment in HostedZoneId and DNSName, and if the environment contains an ELB load balancer, Elastic Load Balancing routes queries only to the healthy Amazon EC2 instances that are registered with the load balancer. (An environment automatically contains an ELB load balancer if it includes more than one Amazon EC2 instance.) If you set EvaluateTargetHealth to true and either no Amazon EC2 instances are healthy or the load balancer itself is unhealthy, Amazon Route 53 routes queries to other available resources that are healthy, if any.

    If the environment contains a single Amazon EC2 instance, there are no special requirements.

  • If you specify an ELB load balancer in AliasTarget , Elastic Load Balancing routes queries only to the healthy Amazon EC2 instances that are registered with the load balancer. If no Amazon EC2 instances are healthy or if the load balancer itself is unhealthy, and if EvaluateTargetHealth is true for the corresponding alias resource record set, Amazon Route 53 routes queries to other resources. When you create a load balancer, you configure settings for Elastic Load Balancing health checks; they're not Amazon Route 53 health checks, but they perform a similar function. Do not create Amazon Route 53 health checks for the Amazon EC2 instances that you register with an ELB load balancer.

    For more information, see How Health Checks Work in More Complex Amazon Route 53 Configurations in the Amazon Route 53 Developers Guide.

  • We recommend that you set EvaluateTargetHealth to true only when you have enough idle capacity to handle the failure of one or more endpoints.

For more information and examples, see Amazon Route 53 Health Checks and DNS Failover in the Amazon Route 53 Developer Guide.

" + "AliasTarget$EvaluateTargetHealth": "

Applies only to alias, weighted alias, latency alias, and failover alias record sets: If you set the value of EvaluateTargetHealth to true for the resource record set or sets in an alias, weighted alias, latency alias, or failover alias resource record set, and if you specify a value for HealthCheck$Id for every resource record set that is referenced by these alias resource record sets, the alias resource record sets inherit the health of the referenced resource record sets.

In this configuration, when Amazon Route 53 receives a DNS query for an alias resource record set:

  • Amazon Route 53 looks at the resource record sets that are referenced by the alias resource record sets to determine which health checks they're using.

  • Amazon Route 53 checks the current status of each health check. (Amazon Route 53 periodically checks the health of the endpoint that is specified in a health check; it doesn't perform the health check when the DNS query arrives.)

  • Based on the status of the health checks, Amazon Route 53 determines which resource record sets are healthy. Unhealthy resource record sets are immediately removed from consideration. In addition, if all of the resource record sets that are referenced by an alias resource record set are unhealthy, that alias resource record set also is immediately removed from consideration.

  • Based on the configuration of the alias resource record sets (weighted alias or latency alias, for example) and the configuration of the resource record sets that they reference, Amazon Route 53 chooses a resource record set from the healthy resource record sets, and responds to the query.

Note the following:

  • You can't set EvaluateTargetHealth to true when the alias target is a CloudFront distribution.

  • If the AWS resource that you specify in AliasTarget is a resource record set or a group of resource record sets (for example, a group of weighted resource record sets), but it is not another alias resource record set, we recommend that you associate a health check with all of the resource record sets in the alias target.For more information, see What Happens When You Omit Health Checks? in the Amazon Route 53 Developer Guide.

  • If you specify an Elastic Beanstalk environment in HostedZoneId and DNSName, and if the environment contains an ELB load balancer, Elastic Load Balancing routes queries only to the healthy Amazon EC2 instances that are registered with the load balancer. (An environment automatically contains an ELB load balancer if it includes more than one EC2 instance.) If you set EvaluateTargetHealth to true and either no EC2 instances are healthy or the load balancer itself is unhealthy, Amazon Route 53 routes queries to other available resources that are healthy, if any.

    If the environment contains a single EC2 instance, there are no special requirements.

  • If you specify an ELB load balancer in AliasTarget , Elastic Load Balancing routes queries only to the healthy EC2 instances that are registered with the load balancer. If no EC2 instances are healthy or if the load balancer itself is unhealthy, and if EvaluateTargetHealth is true for the corresponding alias resource record set, Amazon Route 53 routes queries to other resources. When you create a load balancer, you configure settings for Elastic Load Balancing health checks; they're not Amazon Route 53 health checks, but they perform a similar function. Do not create Amazon Route 53 health checks for the EC2 instances that you register with an ELB load balancer.

    For more information, see How Health Checks Work in More Complex Amazon Route 53 Configurations in the Amazon Route 53 Developers Guide.

  • We recommend that you set EvaluateTargetHealth to true only when you have enough idle capacity to handle the failure of one or more endpoints.

For more information and examples, see Amazon Route 53 Health Checks and DNS Failover in the Amazon Route 53 Developer Guide.

" } }, "AliasTarget": { - "base": "

Alias resource record sets only: Information about the CloudFront distribution, Elastic Beanstalk environment, ELB load balancer, Amazon S3 bucket, or Amazon Route 53 resource record set to which you are redirecting queries. The Elastic Beanstalk environment must have a regionalized subdomain.

When creating resource record sets for a private hosted zone, note the following:

  • Resource record sets cannot be created for CloudFront distributions in a private hosted zone.

  • Creating geolocation alias resource record sets or latency alias resource record sets in a private hosted zone is unsupported.

  • For information about creating failover resource record sets in a private hosted zone, see Configuring Failover in a Private Hosted Zone.

", + "base": "

Alias resource record sets only: Information about the CloudFront distribution, Elastic Beanstalk environment, ELB load balancer, Amazon S3 bucket, or Amazon Route 53 resource record set that you're redirecting queries to. An Elastic Beanstalk environment must have a regionalized subdomain.

When creating resource record sets for a private hosted zone, note the following:

  • Resource record sets can't be created for CloudFront distributions in a private hosted zone.

  • Creating geolocation alias resource record sets or latency alias resource record sets in a private hosted zone is unsupported.

  • For information about creating failover resource record sets in a private hosted zone, see Configuring Failover in a Private Hosted Zone.

", "refs": { - "ResourceRecordSet$AliasTarget": "

Alias resource record sets only: Information about the CloudFront distribution, Elastic Beanstalk environment, ELB load balancer, Amazon S3 bucket, or Amazon Route 53 resource record set to which you are redirecting queries. The Elastic Beanstalk environment must have a regionalized subdomain.

If you're creating resource records sets for a private hosted zone, note the following:

  • You can't create alias resource record sets for CloudFront distributions in a private hosted zone.

  • Creating geolocation alias resource record sets or latency alias resource record sets in a private hosted zone is unsupported.

  • For information about creating failover resource record sets in a private hosted zone, see Configuring Failover in a Private Hosted Zone in the Amazon Route 53 Developer Guide.

" + "ResourceRecordSet$AliasTarget": "

Alias resource record sets only: Information about the CloudFront distribution, AWS Elastic Beanstalk environment, ELB load balancer, Amazon S3 bucket, or Amazon Route 53 resource record set to which you're redirecting queries. The AWS Elastic Beanstalk environment must have a regionalized subdomain.

If you're creating resource records sets for a private hosted zone, note the following:

  • You can't create alias resource record sets for CloudFront distributions in a private hosted zone.

  • Creating geolocation alias resource record sets or latency alias resource record sets in a private hosted zone is unsupported.

  • For information about creating failover resource record sets in a private hosted zone, see Configuring Failover in a Private Hosted Zone in the Amazon Route 53 Developer Guide.

" } }, "AssociateVPCComment": { @@ -91,12 +85,12 @@ } }, "AssociateVPCWithHostedZoneRequest": { - "base": "

A complex type that contains information about the VPC and the hosted zone that you want to associate.

", + "base": "

A complex type that contains information about the request to associate a VPC with a private hosted zone.

", "refs": { } }, "AssociateVPCWithHostedZoneResponse": { - "base": "

A complex type that contains the response information for the hosted zone.

", + "base": "

A complex type that contains the response information for the AssociateVPCWithHostedZone request.

", "refs": { } }, @@ -109,7 +103,7 @@ "ChangeAction": { "base": null, "refs": { - "Change$Action": "

The action to perform:

  • CREATE: Creates a resource record set that has the specified values.

  • DELETE: Deletes a existing resource record set that has the specified values for Name, Type, SetIdentifier (for latency, weighted, geolocation, and failover resource record sets), and TTL (except alias resource record sets, for which the TTL is determined by the AWS resource that you're routing DNS queries to).

    To delete the resource record set that is associated with a traffic policy instance, use DeleteTrafficPolicyInstance . Amazon Route 53will delete the resource record set automatically. If you delete the resource record set by using ChangeResourceRecordSets, Amazon Route 53 doesn't automatically delete the traffic policy instance, and you'll continue to be charged for it even though it's no longer in use.

  • UPSERT: If a resource record set does not already exist, Amazon Route 53 creates it. If a resource record set does exist, Amazon Route 53 updates it with the values in the request. Amazon Route 53 can update an existing resource record set only when all of the following values match: Name, Type, and SetIdentifier (for weighted, latency, geolocation, and failover resource record sets).

" + "Change$Action": "

The action to perform:

  • CREATE: Creates a resource record set that has the specified values.

  • DELETE: Deletes a existing resource record set.

    To delete the resource record set that is associated with a traffic policy instance, use DeleteTrafficPolicyInstance . Amazon Route 53 will delete the resource record set automatically. If you delete the resource record set by using ChangeResourceRecordSets, Amazon Route 53 doesn't automatically delete the traffic policy instance, and you'll continue to be charged for it even though it's no longer in use.

  • UPSERT: If a resource record set doesn't already exist, Amazon Route 53 creates it. If a resource record set does exist, Amazon Route 53 updates it with the values in the request.

The values that you need to include in the request depend on the type of resource record set that you're creating, deleting, or updating:

Basic resource record sets (excluding alias, failover, geolocation, latency, and weighted resource record sets)

  • Name

  • Type

  • TTL

Failover, geolocation, latency, or weighted resource record sets (excluding alias resource record sets)

  • Name

  • Type

  • TTL

  • SetIdentifier

Alias resource record sets (including failover alias, geolocation alias, latency alias, and weighted alias resource record sets)

  • Name

  • Type

  • AliasTarget (includes DNSName, EvaluateTargetHealth, and HostedZoneId)

  • SetIdentifier (for failover, geolocation, latency, and weighted resource record sets)

" } }, "ChangeBatch": { @@ -118,20 +112,6 @@ "ChangeResourceRecordSetsRequest$ChangeBatch": "

A complex type that contains an optional comment and the Changes element.

" } }, - "ChangeBatchRecord": { - "base": "

A complex type that lists the changes and information for a ChangeBatch.

", - "refs": { - "ChangeBatchRecords$member": null, - "GetChangeDetailsResponse$ChangeBatchRecord": "

A complex type that contains information about the specified change batch, including the change batch ID, the status of the change, and the contained changes.

" - } - }, - "ChangeBatchRecords": { - "base": null, - "refs": { - "ListChangeBatchesByHostedZoneResponse$ChangeBatchRecords": "

The change batches within the given hosted zone and time period.

", - "ListChangeBatchesByRRSetResponse$ChangeBatchRecords": "

The change batches within the given hosted zone and time period.

" - } - }, "ChangeInfo": { "base": "

A complex type that describes change information about changes made to your hosted zone.

", "refs": { @@ -139,7 +119,7 @@ "ChangeResourceRecordSetsResponse$ChangeInfo": "

A complex type that contains information about changes made to your hosted zone.

This element contains an ID that you use when performing a GetChange action to get detailed information about the change.

", "CreateHostedZoneResponse$ChangeInfo": "

A complex type that describes the changes made to your hosted zone.

", "DeleteHostedZoneResponse$ChangeInfo": "

A complex type that contains the ID, the status, and the date and time of your delete request.

", - "DisassociateVPCFromHostedZoneResponse$ChangeInfo": "

A complex type that describes the changes made to your hosted zone.

", + "DisassociateVPCFromHostedZoneResponse$ChangeInfo": "

A complex type that describes the changes made to the specified private hosted zone.

", "GetChangeResponse$ChangeInfo": "

A complex type that contains information about the specified change batch.

" } }, @@ -156,7 +136,6 @@ "ChangeStatus": { "base": null, "refs": { - "ChangeBatchRecord$Status": "

The current state of the request. PENDING indicates that this request has not yet been applied to all Amazon Route 53 DNS servers.

Valid Values: PENDING | INSYNC

", "ChangeInfo$Status": "

The current state of the request. PENDING indicates that this request has not yet been applied to all Amazon Route 53 DNS servers.

" } }, @@ -173,14 +152,13 @@ "Changes": { "base": null, "refs": { - "ChangeBatch$Changes": "

Information about the changes to make to the record sets.

", - "ChangeBatchRecord$Changes": "

A list of changes made in the ChangeBatch.

" + "ChangeBatch$Changes": "

Information about the changes to make to the record sets.

" } }, "CheckerIpRanges": { "base": null, "refs": { - "GetCheckerIpRangesResponse$CheckerIpRanges": "

A complex type that contains sorted list of IP ranges in CIDR format for Amazon Route 53 health checkers.

" + "GetCheckerIpRangesResponse$CheckerIpRanges": null } }, "ChildHealthCheckList": { @@ -199,7 +177,7 @@ "CloudWatchRegion": { "base": null, "refs": { - "AlarmIdentifier$Region": "

A complex type that identifies the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether this health check is healthy.

For the current list of CloudWatch regions, see Amazon CloudWatch in AWS Regions and Endpoints in the Amazon Web Services General Reference.

" + "AlarmIdentifier$Region": "

A complex type that identifies the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether this health check is healthy.

For the current list of CloudWatch regions, see Amazon CloudWatch in the AWS Regions and Endpoints chapter of the Amazon Web Services General Reference.

" } }, "ComparisonOperator": { @@ -214,7 +192,7 @@ } }, "ConflictingDomainExists": { - "base": "

You specified an Amazon VPC that you're already using for another hosted zone, and the domain that you specified for one of the hosted zones is a subdomain of the domain that you specified for the other hosted zone. For example, you cannot use the same Amazon VPC for the hosted zones for example.com and test.example.com.

", + "base": "

You specified an Amazon VPC that you're already using for another hosted zone, and the domain that you specified for one of the hosted zones is a subdomain of the domain that you specified for the other hosted zone. For example, you can't use the same Amazon VPC for the hosted zones for example.com and test.example.com.

", "refs": { } }, @@ -283,15 +261,24 @@ "refs": { } }, + "CreateVPCAssociationAuthorizationRequest": { + "base": "

A complex type that contains information about the request to authorize associating a VPC with your private hosted zone. Authorization is only required when a private hosted zone and a VPC were created by using different accounts.

", + "refs": { + } + }, + "CreateVPCAssociationAuthorizationResponse": { + "base": "

A complex type that contains the response information from a CreateVPCAssociationAuthorization request.

", + "refs": { + } + }, "DNSName": { "base": null, "refs": { - "AliasTarget$DNSName": "

Alias resource record sets only: The value that you specify depends on where you want to route queries:

  • A CloudFront distribution: Specify the domain name that CloudFront assigned when you created your distribution.

    Your CloudFront distribution must include an alternate domain name that matches the name of the resource record set. For example, if the name of the resource record set is acme.example.com, your CloudFront distribution must include acme.example.com as one of the alternate domain names. For more information, see Using Alternate Domain Names (CNAMEs) in the Amazon CloudFront Developer Guide.

  • Elastic Beanstalk environment: Specify the CNAME attribute for the environment. (The environment must have a regionalized domain name.) You can use the following methods to get the value of the CNAME attribute:

    • AWS Managment Console: For information about how to get the value by using the console, see Using Custom Domains with Elastic Beanstalk in the AWS Elastic Beanstalk Developer Guide.

    • Elastic Load Balancing API: Use the DescribeEnvironments action to get the value of the CNAME attribute. For more information, see DescribeEnvironments in the AWS Elastic Beanstalk API Reference.

    • AWS CLI: Use the describe-environments command to get the value of the CNAME attribute. For more information, see describe-environments in the AWS Command Line Interface Reference.

  • An ELB load balancer: Specify the DNS name associated with the load balancer. Get the DNS name by using the AWS Management Console, the ELB API, or the AWS CLI. Use the same method to get values for HostedZoneId and DNSName. If you get one value from the console and the other value from the API or the CLI, creating the resource record set will fail.

    • AWS Management Console: Go to the Amazon EC2 page, click Load Balancers in the navigation pane, choose the load balancer, choose the Description tab, and get the value of the DNS Name field that begins with dualstack. Use the same process to get the Hosted Zone ID. See HostedZone$Id.

    • Elastic Load Balancing API: Use DescribeLoadBalancers to get the value of CanonicalHostedZoneName. Use the same process to get the CanonicalHostedZoneNameId. See HostedZone$Id.

    • AWS CLI: Use describe-load-balancers to get the value of CanonicalHostedZoneName. Use the same process to get the CanonicalHostedZoneNameId. See HostedZoneId.

  • An Amazon S3 bucket that is configured as a static website: Specify the domain name of the Amazon S3 website endpoint in which you created the bucket; for example, s3-website-us-east-1.amazonaws.com. For more information about valid values, see the table Amazon Simple Storage Service (S3) Website Endpoints in the Amazon Web Services General Reference. For more information about using Amazon S3 buckets for websites, see Hosting a Static Website on Amazon S3 in the Amazon Simple Storage Service Developer Guide.

  • Another Amazon Route 53 resource record set: Specify the value of the Name element for a resource record set in the current hosted zone.

", + "AliasTarget$DNSName": "

Alias resource record sets only: The value that you specify depends on where you want to route queries:

CloudFront distribution

Specify the domain name that CloudFront assigned when you created your distribution.

Your CloudFront distribution must include an alternate domain name that matches the name of the resource record set. For example, if the name of the resource record set is acme.example.com, your CloudFront distribution must include acme.example.com as one of the alternate domain names. For more information, see Using Alternate Domain Names (CNAMEs) in the Amazon CloudFront Developer Guide.

Elastic Beanstalk environment

Specify the CNAME attribute for the environment. (The environment must have a regionalized domain name.) You can use the following methods to get the value of the CNAME attribute:

  • AWS Management Console: For information about how to get the value by using the console, see Using Custom Domains with AWS Elastic Beanstalk in the AWS Elastic Beanstalk Developer Guide.

  • Elastic Beanstalk API: Use the DescribeEnvironments action to get the value of the CNAME attribute. For more information, see DescribeEnvironments in the AWS Elastic Beanstalk API Reference.

  • AWS CLI: Use the describe-environments command to get the value of the CNAME attribute. For more information, see describe-environments in the AWS Command Line Interface Reference.

ELB load balancer

Specify the DNS name that is associated with the load balancer. Get the DNS name by using the AWS Management Console, the ELB API, or the AWS CLI.

  • AWS Management Console: Go to the EC2 page, choose Load Balancers in the navigation pane, choose the load balancer, choose the Description tab, and get the value of the DNS name field. (If you're routing traffic to a Classic Load Balancer, get the value that begins with dualstack.)

  • Elastic Load Balancing API: Use DescribeLoadBalancers to get the value of DNSName. For more information, see the applicable guide:

  • AWS CLI: Use describe-load-balancers to get the value of DNSName.

Amazon S3 bucket that is configured as a static website

Specify the domain name of the Amazon S3 website endpoint in which you created the bucket, for example, s3-website-us-east-2.amazonaws.com. For more information about valid values, see the table Amazon Simple Storage Service (S3) Website Endpoints in the Amazon Web Services General Reference. For more information about using S3 buckets for websites, see Getting Started with Amazon Route 53 in the Amazon Route 53 Developer Guide.

Another Amazon Route 53 resource record set

Specify the value of the Name element for a resource record set in the current hosted zone.

", "CreateHostedZoneRequest$Name": "

The name of the domain. For resource record types that include a domain name, specify a fully qualified domain name, for example, www.example.com. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.

If you're creating a public hosted zone, this is the name you have registered with your DNS registrar. If your domain name is registered with a registrar other than Amazon Route 53, change the name servers for your domain to the set of NameServers that CreateHostedZone returns in the DelegationSet element.

", "CreateTrafficPolicyInstanceRequest$Name": "

The domain name (such as example.com) or subdomain name (such as www.example.com) for which Amazon Route 53 responds to DNS queries by using the resource record sets that Amazon Route 53 creates for this traffic policy instance.

", "DelegationSetNameServers$member": null, "HostedZone$Name": "

The name of the domain. For public hosted zones, this is the name that you have registered with your DNS registrar.

For information about how to specify characters other than a-z, 0-9, and - (hyphen) and how to specify internationalized domain names, see CreateHostedZone.

", - "ListChangeBatchesByRRSetRequest$Name": "

The name of the RRSet that you want to see changes for.

", "ListHostedZonesByNameRequest$DNSName": "

(Optional) For your first request to ListHostedZonesByName, include the dnsname parameter only if you want to specify the name of the first hosted zone in the response. If you don't include the dnsname parameter, Amazon Route 53 returns all of the hosted zones that were created by the current AWS account, in ASCII order. For subsequent requests, include both dnsname and hostedzoneid parameters. For dnsname, specify the value of NextDNSName from the previous response.

", "ListHostedZonesByNameResponse$DNSName": "

For the second and subsequent calls to ListHostedZonesByName, DNSName is the value that you specified for the dnsname parameter in the request that produced the current response.

", "ListHostedZonesByNameResponse$NextDNSName": "

If IsTruncated is true, the value of NextDNSName is the name of the first hosted zone in the next group of maxitems hosted zones. Call ListHostedZonesByName again and specify the value of NextDNSName and NextHostedZoneId in the dnsname and hostedzoneid parameters, respectively.

This element is present only if IsTruncated is true.

", @@ -303,7 +290,7 @@ "ListTrafficPolicyInstancesByPolicyResponse$TrafficPolicyInstanceNameMarker": "

If IsTruncated is true, TrafficPolicyInstanceNameMarker is the name of the first traffic policy instance in the next group of MaxItems traffic policy instances.

", "ListTrafficPolicyInstancesRequest$TrafficPolicyInstanceNameMarker": "

For the first request to ListTrafficPolicyInstances, omit this value.

If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceNameMarker is the name of the first traffic policy instance in the next group of MaxItems traffic policy instances.

If the value of IsTruncated in the previous response was false, there are no more traffic policy instances to get.

", "ListTrafficPolicyInstancesResponse$TrafficPolicyInstanceNameMarker": "

If IsTruncated is true, TrafficPolicyInstanceNameMarker is the name of the first traffic policy instance in the next group of MaxItems traffic policy instances.

", - "ResourceRecordSet$Name": "

The name of the domain you want to perform the action on.

Enter a fully qualified domain name, for example, www.example.com. You can optionally include a trailing dot. If you omit the trailing dot, Amazon Route 53 still assumes that the domain name that you specify is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.

For information about how to specify characters other than a-z, 0-9, and - (hyphen) and how to specify internationalized domain names, see DNS Domain Name Format in the Amazon Route 53 Developer Guide.

You can use the asterisk (*) wildcard to replace the leftmost label in a domain name. For example, *.example.com. Note the following:

  • The * must replace the entire label. For example, you can't specify *prod.example.com or prod*.example.com.

  • The * can't replace any of the middle labels, for example, marketing.*.example.com.

  • If you include * in any position other than the leftmost label in a domain name, DNS treats it as an * character (ASCII 42), not as a wildcard.

    You can't use the * wildcard for resource records sets that have a type of NS.

You can use the * wildcard as the leftmost label in a domain name, for example, *.example.com. You cannot use an * for one of the middle labels, for example, marketing.*.example.com. In addition, the * must replace the entire label; for example, you can't specify prod*.example.com.

", + "ResourceRecordSet$Name": "

The name of the domain you want to perform the action on.

Enter a fully qualified domain name, for example, www.example.com. You can optionally include a trailing dot. If you omit the trailing dot, Amazon Route 53 still assumes that the domain name that you specify is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.

For information about how to specify characters other than a-z, 0-9, and - (hyphen) and how to specify internationalized domain names, see DNS Domain Name Format in the Amazon Route 53 Developer Guide.

You can use the asterisk (*) wildcard to replace the leftmost label in a domain name. For example, *.example.com. Note the following:

  • The * must replace the entire label. For example, you can't specify *prod.example.com or prod*.example.com.

  • The * can't replace any of the middle labels, for example, marketing.*.example.com.

  • If you include * in any position other than the leftmost label in a domain name, DNS treats it as an * character (ASCII 42), not as a wildcard.

    You can't use the * wildcard for resource records sets that have a type of NS.

You can use the * wildcard as the leftmost label in a domain name, for example, *.example.com. You can't use an * for one of the middle labels, for example, marketing.*.example.com. In addition, the * must replace the entire label; for example, you can't specify prod*.example.com.

", "TestDNSAnswerRequest$RecordName": "

The name of the resource record set that you want Amazon Route 53 to simulate a query for.

", "TestDNSAnswerResponse$RecordName": "

The name of the resource record set that you submitted a request for.

", "TrafficPolicyInstance$Name": "

The DNS name, such as www.example.com, for which Amazon Route 53 responds to queries by using the resource record sets that are associated with this traffic policy instance.

" @@ -315,15 +302,6 @@ "TestDNSAnswerResponse$ResponseCode": "

A code that indicates whether the request is valid or not. The most common response code is NOERROR, meaning that the request is valid. If the response is not valid, Amazon Route 53 returns a response code that describes the error. For a list of possible response codes, see DNS RCODES on the IANA website.

" } }, - "Date": { - "base": null, - "refs": { - "ListChangeBatchesByHostedZoneRequest$StartDate": "

The start of the time period you want to see changes for.

", - "ListChangeBatchesByHostedZoneRequest$EndDate": "

The end of the time period you want to see changes for.

", - "ListChangeBatchesByRRSetRequest$StartDate": "

The start of the time period you want to see changes for.

", - "ListChangeBatchesByRRSetRequest$EndDate": "

The end of the time period you want to see changes for.

" - } - }, "DelegationSet": { "base": "

A complex type that describes the name servers for this hosted zone.

", "refs": { @@ -421,6 +399,16 @@ "refs": { } }, + "DeleteVPCAssociationAuthorizationRequest": { + "base": "

A complex type that contains information about the request to remove authorization to associate a VPC that was created by one AWS account with a hosted zone that was created with a different AWS account.

", + "refs": { + } + }, + "DeleteVPCAssociationAuthorizationResponse": { + "base": "

Empty response for the request.

", + "refs": { + } + }, "Dimension": { "base": "

For the metric that the CloudWatch alarm is associated with, a complex type that contains information about one dimension.

", "refs": { @@ -437,7 +425,7 @@ "DimensionList": { "base": null, "refs": { - "CloudWatchAlarmConfiguration$Dimensions": "

For the metric that the CloudWatch alarm is associated with, a complex type that contains information about the dimensions for the metric.For information, see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch Developer Guide.

" + "CloudWatchAlarmConfiguration$Dimensions": "

For the metric that the CloudWatch alarm is associated with, a complex type that contains information about the dimensions for the metric.For information, see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.

" } }, "DisassociateVPCComment": { @@ -447,7 +435,7 @@ } }, "DisassociateVPCFromHostedZoneRequest": { - "base": "

A complex type that contains information about the VPC and the hosted zone that you want to disassociate.

", + "base": "

A complex type that contains information about the VPC that you want to disassociate from a specified private hosted zone.

", "refs": { } }, @@ -485,6 +473,7 @@ "InvalidArgument$message": "

Descriptive message for the error response.

", "InvalidDomainName$message": "

Descriptive message for the error response.

", "InvalidInput$message": "

Descriptive message for the error response.

", + "InvalidPaginationToken$message": null, "InvalidTrafficPolicyDocument$message": "

Descriptive message for the error response.

", "InvalidVPCId$message": "

Descriptive message for the error response.

", "LastVPCAssociation$message": "

Descriptive message for the error response.

", @@ -496,6 +485,7 @@ "NoSuchHostedZone$message": "

Descriptive message for the error response.

", "NoSuchTrafficPolicy$message": "

Descriptive message for the error response.

", "NoSuchTrafficPolicyInstance$message": "

Descriptive message for the error response.

", + "NotAuthorizedException$message": "

Descriptive message for the error response.

", "PriorRequestNotComplete$message": null, "PublicZoneVPCAssociation$message": "

Descriptive message for the error response.

", "ThrottlingException$message": null, @@ -503,9 +493,11 @@ "TooManyHostedZones$message": "

Descriptive message for the error response.

", "TooManyTrafficPolicies$message": "

Descriptive message for the error response.

", "TooManyTrafficPolicyInstances$message": "

Descriptive message for the error response.

", + "TooManyVPCAssociationAuthorizations$message": "

Descriptive message for the error response.

", "TrafficPolicyAlreadyExists$message": "

Descriptive message for the error response.

", "TrafficPolicyInUse$message": "

Descriptive message for the error response.

", "TrafficPolicyInstanceAlreadyExists$message": "

Descriptive message for the error response.

", + "VPCAssociationAuthorizationNotFound$message": "

Descriptive message for the error response.

", "VPCAssociationNotFound$message": "

Descriptive message for the error response.

" } }, @@ -524,21 +516,21 @@ "FailureThreshold": { "base": null, "refs": { - "HealthCheckConfig$FailureThreshold": "

The number of consecutive health checks that an endpoint must pass or fail for Amazon Route 53 to change the current status of the endpoint from unhealthy to healthy or vice versa. For more information, see How Amazon Route 53 Determines Whether an Endpoint Is Healthy in the Amazon Route 53 Developer Guide.

", - "UpdateHealthCheckRequest$FailureThreshold": "

The number of consecutive health checks that an endpoint must pass or fail for Amazon Route 53 to change the current status of the endpoint from unhealthy to healthy or vice versa. For more information, see How Amazon Route 53 Determines Whether an Endpoint Is Healthy in the Amazon Route 53 Developer Guide.

" + "HealthCheckConfig$FailureThreshold": "

The number of consecutive health checks that an endpoint must pass or fail for Amazon Route 53 to change the current status of the endpoint from unhealthy to healthy or vice versa. For more information, see How Amazon Route 53 Determines Whether an Endpoint Is Healthy in the Amazon Route 53 Developer Guide.

If you don't specify a value for FailureThreshold, the default value is three health checks.

", + "UpdateHealthCheckRequest$FailureThreshold": "

The number of consecutive health checks that an endpoint must pass or fail for Amazon Route 53 to change the current status of the endpoint from unhealthy to healthy or vice versa. For more information, see How Amazon Route 53 Determines Whether an Endpoint Is Healthy in the Amazon Route 53 Developer Guide.

If you don't specify a value for FailureThreshold, the default value is three health checks.

" } }, "FullyQualifiedDomainName": { "base": null, "refs": { - "HealthCheckConfig$FullyQualifiedDomainName": "

Amazon Route 53 behavior depends on whether you specify a value for IPAddress.

If you specify IPAddress:

The value that you want Amazon Route 53 to pass in the Host header in all health checks except TCP health checks. This is typically the fully qualified DNS name of the website that you are attempting to health check. When Amazon Route 53 checks the health of an endpoint, here is how it constructs the Host header:

  • If you specify a value of 80 for Port and HTTP or HTTP_STR_MATCH for Type, Amazon Route 53 passes the value of FullyQualifiedDomainName to the endpoint in the Host header.

  • If you specify a value of 443 for Port and HTTPS or HTTPS_STR_MATCH for Type, Amazon Route 53 passes the value of FullyQualifiedDomainName to the endpoint in the Host header.

  • If you specify another value for Port and any value except TCP for Type, Amazon Route 53 passes FullyQualifiedDomainName:Port to the endpoint in the Host header.

If you don't specify a value for FullyQualifiedDomainName, Amazon Route 53 substitutes the value of IPAddress in the Host header in each of the preceding cases.

If you don't specify IPAddress:

If you don't specify a value for IPAddress, Amazon Route 53 sends a DNS request to the domain that you specify in FullyQualifiedDomainName at the interval you specify in RequestInterval. Using an IP address that DNS returns, Amazon Route 53 then checks the health of the endpoint.

If you want to check the health of weighted, latency, or failover resource record sets and you choose to specify the endpoint only by FullyQualifiedDomainName, we recommend that you create a separate health check for each endpoint. For example, create a health check for each HTTP server that is serving content for www.example.com. For the value of FullyQualifiedDomainName, specify the domain name of the server (such as us-east-1-www.example.com), not the name of the resource record sets (www.example.com).

In this configuration, if you create a health check for which the value of FullyQualifiedDomainName matches the name of the resource record sets and you then associate the health check with those resource record sets, health check results will be unpredictable.

In addition, if the value that you specify for Type is HTTP, HTTPS, HTTP_STR_MATCH, or HTTPS_STR_MATCH, Amazon Route 53 passes the value of FullyQualifiedDomainName in the Host header, as it does when you specify a value for IPAddress. If the value of Type is TCP, Amazon Route 53 doesn't pass a Host header.

", - "UpdateHealthCheckRequest$FullyQualifiedDomainName": "

Amazon Route 53 behavior depends on whether you specify a value for IPAddress.

If a health check already has a value for IPAddress, you can change the value. However, you can't update an existing health check to add or remove the value of IPAddress.

If you specify IPAddress:

The value that you want Amazon Route 53 to pass in the Host header in all health checks except TCP health checks. This is typically the fully qualified DNS name of the endpoint on which you want Amazon Route 53 to perform health checks. When Amazon Route 53 checks the health of an endpoint, here is how it constructs the Host header:

  • If you specify a value of 80 for Port and HTTP or HTTP_STR_MATCH for Type, Amazon Route 53 passes the value of FullyQualifiedDomainName to the endpoint in the Host header.

  • If you specify a value of 443 for Port and HTTPS or HTTPS_STR_MATCH for Type, Amazon Route 53 passes the value of FullyQualifiedDomainName to the endpoint in the Host header.

  • If you specify another value for Port and any value except TCP for Type, Amazon Route 53 passes FullyQualifiedDomainName:Port to the endpoint in the Host header.

If you don't specify a value for FullyQualifiedDomainName, Amazon Route 53 substitutes the value of IPAddress in the Host header in each of the above cases.

If you don't specify IPAddress:

If you don't specify a value for IPAddress, Amazon Route 53 sends a DNS request to the domain that you specify in FullyQualifiedDomainName at the interval you specify in RequestInterval. Using an IP address that DNS returns, Amazon Route 53 then checks the health of the endpoint.

If you want to check the health of weighted, latency, or failover resource record sets and you choose to specify the endpoint only by FullyQualifiedDomainName, we recommend that you create a separate health check for each endpoint. For example, create a health check for each HTTP server that is serving content for www.example.com. For the value of FullyQualifiedDomainName, specify the domain name of the server (such as us-east-1-www.example.com), not the name of the resource record sets (www.example.com).

In this configuration, if the value of FullyQualifiedDomainName matches the name of the resource record sets and you then associate the health check with those resource record sets, health check results will be unpredictable.

In addition, if the value of Type is HTTP, HTTPS, HTTP_STR_MATCH, or HTTPS_STR_MATCH, Amazon Route 53 passes the value of FullyQualifiedDomainName in the Host header, as it does when you specify a value for IPAddress. If the value of Type is TCP, Amazon Route 53 doesn't pass a Host header.

" + "HealthCheckConfig$FullyQualifiedDomainName": "

Amazon Route 53 behavior depends on whether you specify a value for IPAddress.

If you specify a value for IPAddress:

Amazon Route 53 sends health check requests to the specified IPv4 or IPv6 address and passes the value of FullyQualifiedDomainName in the Host header for all health checks except TCP health checks. This is typically the fully qualified DNS name of the endpoint on which you want Amazon Route 53 to perform health checks.

When Amazon Route 53 checks the health of an endpoint, here is how it constructs the Host header:

  • If you specify a value of 80 for Port and HTTP or HTTP_STR_MATCH for Type, Amazon Route 53 passes the value of FullyQualifiedDomainName to the endpoint in the Host header.

  • If you specify a value of 443 for Port and HTTPS or HTTPS_STR_MATCH for Type, Amazon Route 53 passes the value of FullyQualifiedDomainName to the endpoint in the Host header.

  • If you specify another value for Port and any value except TCP for Type, Amazon Route 53 passes FullyQualifiedDomainName:Port to the endpoint in the Host header.

If you don't specify a value for FullyQualifiedDomainName, Amazon Route 53 substitutes the value of IPAddress in the Host header in each of the preceding cases.

If you don't specify a value for IPAddress :

Amazon Route 53 sends a DNS request to the domain that you specify for FullyQualifiedDomainName at the interval that you specify for RequestInterval. Using an IPv4 address that DNS returns, Amazon Route 53 then checks the health of the endpoint.

If you don't specify a value for IPAddress, Amazon Route 53 uses only IPv4 to send health checks to the endpoint. If there's no resource record set with a type of A for the name that you specify for FullyQualifiedDomainName, the health check fails with a \"DNS resolution failed\" error.

If you want to check the health of weighted, latency, or failover resource record sets and you choose to specify the endpoint only by FullyQualifiedDomainName, we recommend that you create a separate health check for each endpoint. For example, create a health check for each HTTP server that is serving content for www.example.com. For the value of FullyQualifiedDomainName, specify the domain name of the server (such as us-east-2-www.example.com), not the name of the resource record sets (www.example.com).

In this configuration, if you create a health check for which the value of FullyQualifiedDomainName matches the name of the resource record sets and you then associate the health check with those resource record sets, health check results will be unpredictable.

In addition, if the value that you specify for Type is HTTP, HTTPS, HTTP_STR_MATCH, or HTTPS_STR_MATCH, Amazon Route 53 passes the value of FullyQualifiedDomainName in the Host header, as it does when you specify a value for IPAddress. If the value of Type is TCP, Amazon Route 53 doesn't pass a Host header.

", + "UpdateHealthCheckRequest$FullyQualifiedDomainName": "

Amazon Route 53 behavior depends on whether you specify a value for IPAddress.

If a health check already has a value for IPAddress, you can change the value. However, you can't update an existing health check to add or remove the value of IPAddress.

If you specify a value for IPAddress:

Amazon Route 53 sends health check requests to the specified IPv4 or IPv6 address and passes the value of FullyQualifiedDomainName in the Host header for all health checks except TCP health checks. This is typically the fully qualified DNS name of the endpoint on which you want Amazon Route 53 to perform health checks.

When Amazon Route 53 checks the health of an endpoint, here is how it constructs the Host header:

  • If you specify a value of 80 for Port and HTTP or HTTP_STR_MATCH for Type, Amazon Route 53 passes the value of FullyQualifiedDomainName to the endpoint in the Host header.

  • If you specify a value of 443 for Port and HTTPS or HTTPS_STR_MATCH for Type, Amazon Route 53 passes the value of FullyQualifiedDomainName to the endpoint in the Host header.

  • If you specify another value for Port and any value except TCP for Type, Amazon Route 53 passes FullyQualifiedDomainName:Port to the endpoint in the Host header.

If you don't specify a value for FullyQualifiedDomainName, Amazon Route 53 substitutes the value of IPAddress in the Host header in each of the above cases.

If you don't specify a value for IPAddress:

If you don't specify a value for IPAddress, Amazon Route 53 sends a DNS request to the domain that you specify in FullyQualifiedDomainName at the interval you specify in RequestInterval. Using an IPv4 address that is returned by DNS, Amazon Route 53 then checks the health of the endpoint.

If you don't specify a value for IPAddress, Amazon Route 53 uses only IPv4 to send health checks to the endpoint. If there's no resource record set with a type of A for the name that you specify for FullyQualifiedDomainName, the health check fails with a \"DNS resolution failed\" error.

If you want to check the health of weighted, latency, or failover resource record sets and you choose to specify the endpoint only by FullyQualifiedDomainName, we recommend that you create a separate health check for each endpoint. For example, create a health check for each HTTP server that is serving content for www.example.com. For the value of FullyQualifiedDomainName, specify the domain name of the server (such as us-east-2-www.example.com), not the name of the resource record sets (www.example.com).

In this configuration, if the value of FullyQualifiedDomainName matches the name of the resource record sets and you then associate the health check with those resource record sets, health check results will be unpredictable.

In addition, if the value of Type is HTTP, HTTPS, HTTP_STR_MATCH, or HTTPS_STR_MATCH, Amazon Route 53 passes the value of FullyQualifiedDomainName in the Host header, as it does when you specify a value for IPAddress. If the value of Type is TCP, Amazon Route 53 doesn't pass a Host header.

" } }, "GeoLocation": { "base": "

A complex type that contains information about a geo location.

", "refs": { - "ResourceRecordSet$GeoLocation": "

Geo location resource record sets only: A complex type that lets you control how Amazon Route 53 responds to DNS queries based on the geographic origin of the query. For example, if you want all queries from Africa to be routed to a web server with an IP address of 192.0.2.111, create a resource record set with a Type of A and a ContinentCode of AF.

Creating geolocation and geolocation alias resource record sets in private hosted zones is not supported.

If you create separate resource record sets for overlapping geographic regions (for example, one resource record set for a continent and one for a country on the same continent), priority goes to the smallest geographic region. This allows you to route most queries for a continent to one resource and to route queries for a country on that continent to a different resource.

You cannot create two geolocation resource record sets that specify the same geographic location.

The value * in the CountryCode element matches all geographic locations that aren't specified in other geolocation resource record sets that have the same values for the Name and Type elements.

Geolocation works by mapping IP addresses to locations. However, some IP addresses aren't mapped to geographic locations, so even if you create geolocation resource record sets that cover all seven continents, Amazon Route 53 will receive some DNS queries from locations that it can't identify. We recommend that you create a resource record set for which the value of CountryCode is *, which handles both queries that come from locations for which you haven't created geolocation resource record sets and queries from IP addresses that aren't mapped to a location. If you don't create a * resource record set, Amazon Route 53 returns a \"no answer\" response for queries from those locations.

You cannot create non-geolocation resource record sets that have the same values for the Name and Type elements as geolocation resource record sets.

" + "ResourceRecordSet$GeoLocation": "

Geo location resource record sets only: A complex type that lets you control how Amazon Route 53 responds to DNS queries based on the geographic origin of the query. For example, if you want all queries from Africa to be routed to a web server with an IP address of 192.0.2.111, create a resource record set with a Type of A and a ContinentCode of AF.

Creating geolocation and geolocation alias resource record sets in private hosted zones is not supported.

If you create separate resource record sets for overlapping geographic regions (for example, one resource record set for a continent and one for a country on the same continent), priority goes to the smallest geographic region. This allows you to route most queries for a continent to one resource and to route queries for a country on that continent to a different resource.

You can't create two geolocation resource record sets that specify the same geographic location.

The value * in the CountryCode element matches all geographic locations that aren't specified in other geolocation resource record sets that have the same values for the Name and Type elements.

Geolocation works by mapping IP addresses to locations. However, some IP addresses aren't mapped to geographic locations, so even if you create geolocation resource record sets that cover all seven continents, Amazon Route 53 will receive some DNS queries from locations that it can't identify. We recommend that you create a resource record set for which the value of CountryCode is *, which handles both queries that come from locations for which you haven't created geolocation resource record sets and queries from IP addresses that aren't mapped to a location. If you don't create a * resource record set, Amazon Route 53 returns a \"no answer\" response for queries from those locations.

You can't create non-geolocation resource record sets that have the same values for the Name and Type elements as geolocation resource record sets.

" } }, "GeoLocationContinentCode": { @@ -602,16 +594,6 @@ "GeoLocationDetails$SubdivisionName": "

The full name of the subdivision, for example, a state in the United States or a province in Canada.

" } }, - "GetChangeDetailsRequest": { - "base": "

The input for a GetChangeDetails request.

", - "refs": { - } - }, - "GetChangeDetailsResponse": { - "base": "

A complex type that contains the ChangeBatchRecord element.

", - "refs": { - } - }, "GetChangeRequest": { "base": "

The input for a GetChange request.

", "refs": { @@ -623,12 +605,12 @@ } }, "GetCheckerIpRangesRequest": { - "base": "

Empty request.

", + "base": null, "refs": { } }, "GetCheckerIpRangesResponse": { - "base": "

A complex type that contains the CheckerIpRanges element.

", + "base": null, "refs": { } }, @@ -713,7 +695,7 @@ } }, "GetTrafficPolicyInstanceCountRequest": { - "base": "

To retrieve a count of all your traffic policy instances, send a GET request to the /2013-04-01/trafficpolicyinstancecount resource.

", + "base": "

Request to get the number of traffic policy instances that are associated with the current AWS account.

", "refs": { } }, @@ -752,7 +734,7 @@ } }, "HealthCheckAlreadyExists": { - "base": "

The health check you're attempting to create already exists.

Amazon Route 53 returns this error when a health check has already been created with the specified value for CallerReference.

", + "base": "

The health check you're attempting to create already exists. Amazon Route 53 returns this error when a health check has already been created with the specified value for CallerReference.

", "refs": { } }, @@ -776,9 +758,9 @@ "DeleteHealthCheckRequest$HealthCheckId": "

The ID of the health check that you want to delete.

", "GetHealthCheckLastFailureReasonRequest$HealthCheckId": "

The ID for the health check for which you want the last failure reason. When you created the health check, CreateHealthCheck returned the ID in the response, in the HealthCheckId element.

", "GetHealthCheckRequest$HealthCheckId": "

The identifier that Amazon Route 53 assigned to the health check when you created it. When you add or update a resource record set, you use this value to specify which health check to use. The value can be up to 64 characters long.

", - "GetHealthCheckStatusRequest$HealthCheckId": "

If you want Amazon Route 53 to return this resource record set in response to a DNS query only when a health check is passing, include the HealthCheckId element and specify the ID of the applicable health check.

Amazon Route 53 determines whether a resource record set is healthy by periodically sending a request to the endpoint that is specified in the health check. If that endpoint returns an HTTP status code of 2xx or 3xx, the endpoint is healthy. If the endpoint returns an HTTP status code of 400 or greater, or if the endpoint doesn't respond for a certain amount of time, Amazon Route 53 considers the endpoint unhealthy and also considers the resource record set unhealthy.

The HealthCheckId element is only useful when Amazon Route 53 is choosing between two or more resource record sets to respond to a DNS query, and you want Amazon Route 53 to base the choice in part on the status of a health check. Configuring health checks only makes sense in the following configurations:

  • You're checking the health of the resource record sets in a weighted, latency, geolocation, or failover resource record set, and you specify health check IDs for all of the resource record sets. If the health check for one resource record set specifies an endpoint that is not healthy, Amazon Route 53 stops responding to queries using the value for that resource record set.

  • You set EvaluateTargetHealth to true for the resource record sets in an alias, weighted alias, latency alias, geolocation alias, or failover alias resource record set, and you specify health check IDs for all of the resource record sets that are referenced by the alias resource record sets. For more information about this configuration, see EvaluateTargetHealth.

    Amazon Route 53 doesn't check the health of the endpoint specified in the resource record set, for example, the endpoint specified by the IP address in the Value element. When you add a HealthCheckId element to a resource record set, Amazon Route 53 checks the health of the endpoint that you specified in the health check.

For geolocation resource record sets, if an endpoint is unhealthy, Amazon Route 53 looks for a resource record set for the larger, associated geographic region. For example, suppose you have resource record sets for a state in the United States, for the United States, for North America, and for all locations. If the endpoint for the state resource record set is unhealthy, Amazon Route 53 checks the resource record sets for the United States, for North America, and for all locations (a resource record set for which the value of CountryCode is *), in that order, until it finds a resource record set for which the endpoint is healthy.

If your health checks specify the endpoint only by domain name, we recommend that you create a separate health check for each endpoint. For example, create a health check for each HTTP server that is serving content for www.example.com. For the value of FullyQualifiedDomainName, specify the domain name of the server (such as us-east-1-www.example.com), not the name of the resource record sets (example.com).

In this configuration, if you create a health check for which the value of FullyQualifiedDomainName matches the name of the resource record sets and then associate the health check with those resource record sets, health check results will be unpredictable.

", + "GetHealthCheckStatusRequest$HealthCheckId": "

The ID for the health check for which you want the current status. When you created the health check, CreateHealthCheck returned the ID in the response, in the HealthCheckId element.

If you want to check the status of a calculated health check, you must use the Amazon Route 53 console or the CloudWatch console. You can't use GetHealthCheckStatus to get the status of a calculated health check.

", "HealthCheck$Id": "

The identifier that Amazon Route 53assigned to the health check when you created it. When you add or update a resource record set, you use this value to specify which health check to use. The value can be up to 64 characters long.

", - "ResourceRecordSet$HealthCheckId": "

If you want Amazon Route 53 to return this resource record set in response to a DNS query only when a health check is passing, include the HealthCheckId element and specify the ID of the applicable health check.

Amazon Route 53 determines whether a resource record set is healthy based on one of the following:

  • By periodically sending a request to the endpoint that is specified in the health check

  • By aggregating the status of a specified group of health checks (calculated health checks)

  • By determining the current state of a CloudWatch alarm (CloudWatch metric health checks)

For information about how Amazon Route 53 determines whether a health check is healthy, see CreateHealthCheck.

The HealthCheckId element is only useful when Amazon Route 53 is choosing between two or more resource record sets to respond to a DNS query, and you want Amazon Route 53 to base the choice in part on the status of a health check. Configuring health checks only makes sense in the following configurations:

  • You're checking the health of the resource record sets in a weighted, latency, geolocation, or failover resource record set, and you specify health check IDs for all of the resource record sets. If the health check for one resource record set specifies an endpoint that is not healthy, Amazon Route 53 stops responding to queries using the value for that resource record set.

  • You set EvaluateTargetHealth to true for the resource record sets in an alias, weighted alias, latency alias, geolocation alias, or failover alias resource record set, and you specify health check IDs for all of the resource record sets that are referenced by the alias resource record sets.

Amazon Route 53 doesn't check the health of the endpoint specified in the resource record set, for example, the endpoint specified by the IP address in the Value element. When you add a HealthCheckId element to a resource record set, Amazon Route 53 checks the health of the endpoint that you specified in the health check.

For geolocation resource record sets, if an endpoint is unhealthy, Amazon Route 53 looks for a resource record set for the larger, associated geographic region. For example, suppose you have resource record sets for a state in the United States, for the United States, for North America, and for all locations. If the endpoint for the state resource record set is unhealthy, Amazon Route 53 checks the resource record sets for the United States, for North America, and for all locations (a resource record set for which the value of CountryCode is *), in that order, until it finds a resource record set for which the endpoint is healthy.

If your health checks specify the endpoint only by domain name, we recommend that you create a separate health check for each endpoint. For example, create a health check for each HTTP server that is serving content for www.example.com. For the value of FullyQualifiedDomainName, specify the domain name of the server (such as us-east-1-www.example.com), not the name of the resource record sets (example.com).

n this configuration, if you create a health check for which the value of FullyQualifiedDomainName matches the name of the resource record sets and then associate the health check with those resource record sets, health check results will be unpredictable.

For more information, see the following topics in the Amazon Route 53 Developer Guide:

", + "ResourceRecordSet$HealthCheckId": "

If you want Amazon Route 53 to return this resource record set in response to a DNS query only when a health check is passing, include the HealthCheckId element and specify the ID of the applicable health check.

Amazon Route 53 determines whether a resource record set is healthy based on one of the following:

  • By periodically sending a request to the endpoint that is specified in the health check

  • By aggregating the status of a specified group of health checks (calculated health checks)

  • By determining the current state of a CloudWatch alarm (CloudWatch metric health checks)

For more information, see How Amazon Route 53 Determines Whether an Endpoint Is Healthy.

The HealthCheckId element is only useful when Amazon Route 53 is choosing between two or more resource record sets to respond to a DNS query, and you want Amazon Route 53 to base the choice in part on the status of a health check. Configuring health checks only makes sense in the following configurations:

  • You're checking the health of the resource record sets in a group of weighted, latency, geolocation, or failover resource record sets, and you specify health check IDs for all of the resource record sets. If the health check for one resource record set specifies an endpoint that is not healthy, Amazon Route 53 stops responding to queries using the value for that resource record set.

  • You set EvaluateTargetHealth to true for the resource record sets in a group of alias, weighted alias, latency alias, geolocation alias, or failover alias resource record sets, and you specify health check IDs for all of the resource record sets that are referenced by the alias resource record sets.

Amazon Route 53 doesn't check the health of the endpoint specified in the resource record set, for example, the endpoint specified by the IP address in the Value element. When you add a HealthCheckId element to a resource record set, Amazon Route 53 checks the health of the endpoint that you specified in the health check.

For geolocation resource record sets, if an endpoint is unhealthy, Amazon Route 53 looks for a resource record set for the larger, associated geographic region. For example, suppose you have resource record sets for a state in the United States, for the United States, for North America, and for all locations. If the endpoint for the state resource record set is unhealthy, Amazon Route 53 checks the resource record sets for the United States, for North America, and for all locations (a resource record set for which the value of CountryCode is *), in that order, until it finds a resource record set for which the endpoint is healthy.

If your health checks specify the endpoint only by domain name, we recommend that you create a separate health check for each endpoint. For example, create a health check for each HTTP server that is serving content for www.example.com. For the value of FullyQualifiedDomainName, specify the domain name of the server (such as us-east-2-www.example.com), not the name of the resource record sets (example.com).

n this configuration, if you create a health check for which the value of FullyQualifiedDomainName matches the name of the resource record sets and then associate the health check with those resource record sets, health check results will be unpredictable.

For more information, see the following topics in the Amazon Route 53 Developer Guide:

", "UpdateHealthCheckRequest$HealthCheckId": "

The ID for the health check for which you want detailed information. When you created the health check, CreateHealthCheck returned the ID in the response, in the HealthCheckId element.

" } }, @@ -808,7 +790,7 @@ } }, "HealthCheckRegion": { - "base": "

An Amazon EC2 region that you want Amazon Route 53 to use to perform health checks.

", + "base": null, "refs": { "HealthCheckObservation$Region": "

The region of the Amazon Route 53 health checker that provided the status in StatusReport.

", "HealthCheckRegionList$member": null @@ -817,7 +799,7 @@ "HealthCheckRegionList": { "base": null, "refs": { - "HealthCheckConfig$Regions": "

A complex type that contains one Region element for each region from which you want Amazon Route 53 health checkers to check the specified endpoint.

", + "HealthCheckConfig$Regions": "

A complex type that contains one Region element for each region from which you want Amazon Route 53 health checkers to check the specified endpoint.

If you don't specify any regions, Amazon Route 53 health checkers automatically performs checks from all of the regions that are listed under Valid Values.

If you update a health check to remove a region that has been performing health checks, Amazon Route 53 will briefly continue to perform checks from that region to ensure that some health checkers are always checking the endpoint (for example, if you replace three regions with four different regions).

", "UpdateHealthCheckRequest$Regions": "

A complex type that contains one Region element for each region from which you want Amazon Route 53 health checkers to check the specified endpoint.

" } }, @@ -862,7 +844,7 @@ } }, "HostedZoneAlreadyExists": { - "base": "

The hosted zone you are trying to create already exists. Amazon Route 53 returns this error when a hosted zone has already been created with the specified CallerReference.

", + "base": "

The hosted zone you're trying to create already exists. Amazon Route 53 returns this error when a hosted zone has already been created with the specified CallerReference.

", "refs": { } }, @@ -885,7 +867,7 @@ } }, "HostedZoneNotFound": { - "base": "

The specified HostedZone cannot be found.

", + "base": "

The specified HostedZone can't be found.

", "refs": { } }, @@ -905,11 +887,11 @@ "IPAddress": { "base": null, "refs": { - "HealthCheckConfig$IPAddress": "

The IPv4 IP address of the endpoint on which you want Amazon Route 53 to perform health checks. If you don't specify a value for IPAddress, Amazon Route 53 sends a DNS request to resolve the domain name that you specify in FullyQualifiedDomainName at the interval that you specify in RequestInterval. Using an IP address that DNS returns, Amazon Route 53 then checks the health of the endpoint.

If the endpoint is an Amazon EC2 instance, we recommend that you create an Elastic IP address, associate it with your Amazon EC2 instance, and specify the Elastic IP address for IPAddress. This ensures that the IP address of your instance will never change.

For more information, see HealthCheckConfig$FullyQualifiedDomainName.

Contraints: Amazon Route 53 cannot check the health of endpoints for which the IP address is in local, private, non-routable, or multicast ranges. For more information about IP addresses for which you cannot create health checks, see RFC 5735, Special Use IPv4 Addresses and RFC 6598, IANA-Reserved IPv4 Prefix for Shared Address Space.

When the value of Type is CALCULATED or CLOUDWATCH_METRIC, omit IPAddress.

", + "HealthCheckConfig$IPAddress": "

The IPv4 or IPv6 IP address of the endpoint that you want Amazon Route 53 to perform health checks on. If you don't specify a value for IPAddress, Amazon Route 53 sends a DNS request to resolve the domain name that you specify in FullyQualifiedDomainName at the interval that you specify in RequestInterval. Using an IP address returned by DNS, Amazon Route 53 then checks the health of the endpoint.

Use one of the following formats for the value of IPAddress:

  • IPv4 address: four values between 0 and 255, separated by periods (.), for example, 192.0.2.44.

  • IPv6 address: eight groups of four hexadecimal values, separated by colons (:), for example, 2001:0db8:85a3:0000:0000:abcd:0001:2345. You can also shorten IPv6 addresses as described in RFC 5952, for example, 2001:db8:85a3::abcd:1:2345.

If the endpoint is an EC2 instance, we recommend that you create an Elastic IP address, associate it with your EC2 instance, and specify the Elastic IP address for IPAddress. This ensures that the IP address of your instance will never change.

For more information, see HealthCheckConfig$FullyQualifiedDomainName.

Constraints: Amazon Route 53 can't check the health of endpoints for which the IP address is in local, private, non-routable, or multicast ranges. For more information about IP addresses for which you can't create health checks, see the following documents:

When the value of Type is CALCULATED or CLOUDWATCH_METRIC, omit IPAddress.

", "HealthCheckObservation$IPAddress": "

The IP address of the Amazon Route 53 health checker that provided the failure reason in StatusReport.

", "TestDNSAnswerRequest$ResolverIP": "

If you want to simulate a request from a specific DNS resolver, specify the IP address for that resolver. If you omit this value, TestDnsAnswer uses the IP address of a DNS resolver in the AWS US East region.

", "TestDNSAnswerRequest$EDNS0ClientSubnetIP": "

If the resolver that you specified for resolverip supports EDNS0, specify the IP address of a client in the applicable location.

", - "UpdateHealthCheckRequest$IPAddress": "

The IPv4 IP address of the endpoint on which you want Amazon Route 53 to perform health checks. If you don't specify a value for IPAddress, Amazon Route 53 sends a DNS request to resolve the domain name that you specify in FullyQualifiedDomainName at the interval you specify in RequestInterval. Using an IP address that DNS returns, Amazon Route 53 then checks the health of the endpoint.

f the endpoint is an Amazon EC2 instance, we recommend that you create an Elastic IP address, associate it with your Amazon EC2 instance, and specify the Elastic IP address for IPAddress. This ensures that the IP address of your instance never changes. For more information, see Elastic IP Addresses (EIP) in the Amazon EC2 User Guide for Linux Instances.

If a health check already has a value for IPAddress, you can change the value. However, you can't update an existing health check to add or remove the value of IPAddress.

For more information, see UpdateHealthCheckRequest$FullyQualifiedDomainName.

" + "UpdateHealthCheckRequest$IPAddress": "

The IPv4 or IPv6 IP address for the endpoint that you want Amazon Route 53 to perform health checks on. If you don't specify a value for IPAddress, Amazon Route 53 sends a DNS request to resolve the domain name that you specify in FullyQualifiedDomainName at the interval that you specify in RequestInterval. Using an IP address that is returned by DNS, Amazon Route 53 then checks the health of the endpoint.

Use one of the following formats for the value of IPAddress:

  • IPv4 address: four values between 0 and 255, separated by periods (.), for example, 192.0.2.44.

  • IPv6 address: eight groups of four hexadecimal values, separated by colons (:), for example, 2001:0db8:85a3:0000:0000:abcd:0001:2345. You can also shorten IPv6 addresses as described in RFC 5952, for example, 2001:db8:85a3::abcd:1:2345.

If the endpoint is an EC2 instance, we recommend that you create an Elastic IP address, associate it with your EC2 instance, and specify the Elastic IP address for IPAddress. This ensures that the IP address of your instance never changes. For more information, see Elastic IP Addresses (EIP) in the Amazon EC2 User Guide for Linux Instances.

If a health check already has a value for IPAddress, you can change the value. However, you can't update an existing health check to add or remove the value of IPAddress.

For more information, see UpdateHealthCheckRequest$FullyQualifiedDomainName.

Constraints: Amazon Route 53 can't check the health of endpoints for which the IP address is in local, private, non-routable, or multicast ranges. For more information about IP addresses for which you can't create health checks, see the following documents:

" } }, "IPAddressCidr": { @@ -919,7 +901,7 @@ } }, "IncompatibleVersion": { - "base": "

The resource you are trying to access is unsupported on this Amazon Route 53 endpoint. Please consider using a newer endpoint or a tool that does so.

", + "base": "

The resource you're trying to access is unsupported on this Amazon Route 53 endpoint.

", "refs": { } }, @@ -931,7 +913,7 @@ } }, "InvalidArgument": { - "base": "

Parameter name and problem.

", + "base": "

Parameter name is invalid.

", "refs": { } }, @@ -950,13 +932,18 @@ "refs": { } }, + "InvalidPaginationToken": { + "base": null, + "refs": { + } + }, "InvalidTrafficPolicyDocument": { "base": "

The format of the traffic policy document that you specified in the Document element is invalid.

", "refs": { } }, "InvalidVPCId": { - "base": "

The hosted zone you are trying to create for your VPC_ID does not belong to you. Amazon Route 53 returns this error when the VPC specified by VPCId does not belong to you.

", + "base": "

The VPC ID that you specified either isn't a valid ID or the current account is not authorized to access this VPC.

", "refs": { } }, @@ -974,7 +961,7 @@ } }, "LastVPCAssociation": { - "base": "

Only one VPC is currently associated with the hosted zone. You cannot convert a private hosted zone into a public hosted zone by disassociating the last VPC from a hosted zone.

", + "base": "

The VPC that you're trying to disassociate from the private hosted zone is the last VPC that is associated with the hosted zone. Amazon Route 53 doesn't support disassociating the last VPC from a hosted zone.

", "refs": { } }, @@ -983,26 +970,6 @@ "refs": { } }, - "ListChangeBatchesByHostedZoneRequest": { - "base": "

The input for a ListChangeBatchesByHostedZone request.

", - "refs": { - } - }, - "ListChangeBatchesByHostedZoneResponse": { - "base": "

A complex type containing the response information for the request.

", - "refs": { - } - }, - "ListChangeBatchesByRRSetRequest": { - "base": "

The input for a ListChangeBatchesByRRSet request.

", - "refs": { - } - }, - "ListChangeBatchesByRRSetResponse": { - "base": "

The input for a ListChangeBatchesByRRSet request.

", - "refs": { - } - }, "ListGeoLocationsRequest": { "base": "

To get a list of geographic locations that Amazon Route 53 supports for geolocation, send a GET request to the /Amazon Route 53 API version/geolocations resource. The response to this request includes a GeoLocationDetails element for each location that Amazon Route 53 supports.

Countries are listed first, and continents are listed last. If Amazon Route 53 supports subdivisions for a country (for example, states or provinces), the subdivisions for that country are listed in alphabetical order immediately after the corresponding country.

", "refs": { @@ -1114,7 +1081,7 @@ } }, "ListTrafficPolicyInstancesRequest": { - "base": "

A complex type that contains the information about the request to list your traffic policy instances.

", + "base": "

A request to get information about the traffic policy instances that you created by using the current AWS account.

", "refs": { } }, @@ -1133,6 +1100,22 @@ "refs": { } }, + "ListVPCAssociationAuthorizationsRequest": { + "base": "

A complex type that contains information about that can be associated with your hosted zone.

", + "refs": { + } + }, + "ListVPCAssociationAuthorizationsResponse": { + "base": "

A complex type that contains the response information for the request.

", + "refs": { + } + }, + "MaxResults": { + "base": null, + "refs": { + "ListVPCAssociationAuthorizationsRequest$MaxResults": "

Optional: An integer that specifies the maximum number of VPCs that you want Amazon Route 53 to return.

" + } + }, "MeasureLatency": { "base": null, "refs": { @@ -1160,7 +1143,7 @@ "Namespace": { "base": null, "refs": { - "CloudWatchAlarmConfiguration$Namespace": "

The namespace of the metric that the alarm is associated with. For more information, see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch Developer Guide.

" + "CloudWatchAlarmConfiguration$Namespace": "

The namespace of the metric that the alarm is associated with. For more information, see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.

" } }, "NoSuchChange": { @@ -1207,15 +1190,14 @@ "HostedZone$CallerReference": "

The value that you specified for CallerReference when you created the hosted zone.

" } }, + "NotAuthorizedException": { + "base": "

Associating the specified VPC with the specified hosted zone has not been authorized.

", + "refs": { + } + }, "PageMarker": { "base": null, "refs": { - "ListChangeBatchesByHostedZoneRequest$Marker": "

The page marker.

", - "ListChangeBatchesByHostedZoneResponse$Marker": "

For the second and subsequent calls to ListHostedZones, Marker is the value that you specified for the marker parameter in the request that produced the current response.

", - "ListChangeBatchesByHostedZoneResponse$NextMarker": "

The next page marker.

", - "ListChangeBatchesByRRSetRequest$Marker": "

The page marker.

", - "ListChangeBatchesByRRSetResponse$Marker": "

The page marker.

", - "ListChangeBatchesByRRSetResponse$NextMarker": "

The next page marker.

", "ListHealthChecksRequest$Marker": "

If the response to a ListHealthChecks is more than one page, marker is the health check ID for the first health check on the next page of results. For more information, see ListHealthChecksResponse$MaxItems.

", "ListHealthChecksResponse$Marker": "

For the second and subsequent calls to ListHealthChecks, Marker is the value that you specified for the marker parameter in the previous request.

", "ListHealthChecksResponse$NextMarker": "

If IsTruncated is true, the value of NextMarker identifies the first health check in the next group of maxitems health checks. Call ListHealthChecks again and specify the value of NextMarker in the marker parameter.

", @@ -1230,10 +1212,6 @@ "PageMaxItems": { "base": null, "refs": { - "ListChangeBatchesByHostedZoneRequest$MaxItems": "

The maximum number of items on a page.

", - "ListChangeBatchesByHostedZoneResponse$MaxItems": "

The value that you specified for the maxitems parameter in the call to ListHostedZones that produced the current response.

", - "ListChangeBatchesByRRSetRequest$MaxItems": "

The maximum number of items on a page.

", - "ListChangeBatchesByRRSetResponse$MaxItems": "

The maximum number of items on a page.

", "ListGeoLocationsRequest$MaxItems": "

(Optional) The maximum number of geolocations to be included in the response body for this request. If more than MaxItems geolocations remain to be listed, then the value of the IsTruncated element in the response is true.

", "ListGeoLocationsResponse$MaxItems": "

The value that you specified for MaxItems in the request.

", "ListHealthChecksRequest$MaxItems": "

The maximum number of HealthCheck elements you want ListHealthChecks to return on each page of the response body. If the AWS account includes more HealthCheck elements than the value of maxitems, the response is broken into pages. Each page contains the number of HealthCheck elements specified by maxitems.

For example, suppose you specify 10 for maxitems and the current AWS account has 51 health checks. In the response, ListHealthChecks sets ListHealthChecksResponse$IsTruncated to true and includes the ListHealthChecksResponse$NextMarker element. To access the second and subsequent pages, you resend the GET ListHealthChecks request, add the ListHealthChecksResponse$Marker parameter to the request, and specify the value of the ListHealthChecksResponse$NextMarker element from the previous response. On the last (sixth) page of the response, which contains only one HealthCheck element:

", @@ -1261,8 +1239,6 @@ "PageTruncated": { "base": null, "refs": { - "ListChangeBatchesByHostedZoneResponse$IsTruncated": "

A flag that indicates if there are more change batches to list.

", - "ListChangeBatchesByRRSetResponse$IsTruncated": "

A flag that indicates if there are more change batches to list.

", "ListGeoLocationsResponse$IsTruncated": "

A value that indicates whether more locations remain to be listed after the last location in this response. If so, the value of IsTruncated is true. To get more values, submit another request and include the values of NextContinentCode, NextCountryCode, and NextSubdivisionCode in the StartContinentCode, StartCountryCode, and StartSubdivisionCode, as applicable.

", "ListHealthChecksResponse$IsTruncated": "

A flag that indicates whether there are more health checks to be listed. If the response was truncated, you can get the next group of maxitems health checks by calling ListHealthChecks again and specifying the value of the NextMarker element in the marker parameter.

Valid Values: true | false

", "ListHostedZonesByNameResponse$IsTruncated": "

A flag that indicates whether there are more hosted zones to be listed. If the response was truncated, you can get the next group of maxitems hosted zones by calling ListHostedZonesByName again and specifying the values of NextDNSName and NextHostedZoneId elements in the dnsname and hostedzoneid parameters.

", @@ -1276,6 +1252,13 @@ "ListTrafficPolicyVersionsResponse$IsTruncated": "

A flag that indicates whether there are more traffic policies to be listed. If the response was truncated, you can get the next group of maxitems traffic policies by calling ListTrafficPolicyVersions again and specifying the value of the NextMarker element in the marker parameter.

" } }, + "PaginationToken": { + "base": null, + "refs": { + "ListVPCAssociationAuthorizationsRequest$NextToken": "

Optional: If a response includes a NextToken element, there are more VPCs that can be associated with the specified hosted zone. To get the next page of results, submit another request, and include the value of the NextToken element in from the response in the NextToken parameter in another ListVPCAssociationAuthorizations request.

", + "ListVPCAssociationAuthorizationsResponse$NextToken": "

When the response includes a NextToken element, there are more VPCs that can be associated with the specified hosted zone. To get the next page of VPCs, submit another ListVPCAssociationAuthorizations request, and include the value of the NextToken element from the response in the NextToken request parameter:

/2013-04-01/hostedzone/hosted zone ID/authorizevpcassociation?MaxItems=VPCs per page&NextToken=

" + } + }, "Period": { "base": null, "refs": { @@ -1295,21 +1278,20 @@ } }, "PublicZoneVPCAssociation": { - "base": "

The hosted zone specified in HostedZoneId is a public hosted zone.

", + "base": "

You're trying to associate a VPC with a public hosted zone. Amazon Route 53 doesn't support associating a VPC with a public hosted zone.

", "refs": { } }, "RData": { "base": null, "refs": { - "ResourceRecord$Value": "

The current or new DNS record value, not to exceed 4,000 characters. In the case of a DELETE action, if the current value does not match the actual value, an error is returned. For descriptions about how to format Value for different record types, see Supported DNS Resource Record Types in the Amazon Route 53 Developer Guide.

You can specify more than one value for all record types except CNAME and SOA.

If you are creating an alias resource record set, omit Value.

" + "ResourceRecord$Value": "

The current or new DNS record value, not to exceed 4,000 characters. In the case of a DELETE action, if the current value does not match the actual value, an error is returned. For descriptions about how to format Value for different record types, see Supported DNS Resource Record Types in the Amazon Route 53 Developer Guide.

You can specify more than one value for all record types except CNAME and SOA.

If you're creating an alias resource record set, omit Value.

" } }, "RRType": { "base": null, "refs": { - "ListChangeBatchesByRRSetRequest$Type": "

The type of the RRSet that you want to see changes for.

", - "ListResourceRecordSetsRequest$StartRecordType": "

The type of resource record set to begin the record listing from.

Valid values for basic resource record sets: A | AAAA | CNAME | MX | NAPTR | NS | PTR | SOA | SPF | SRV | TXT

Values for weighted, latency, geo, and failover resource record sets: A | AAAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT

Values for alias resource record sets:

  • CloudFront distribution: A

  • Elastic Beanstalk environment that has a regionalized subdomain: A

  • ELB load balancer: A | AAAA

  • Amazon S3 bucket: A

Constraint: Specifying type without specifying name returns an InvalidInput error.

", + "ListResourceRecordSetsRequest$StartRecordType": "

The type of resource record set to begin the record listing from.

Valid values for basic resource record sets: A | AAAA | CNAME | MX | NAPTR | NS | PTR | SOA | SPF | SRV | TXT

Values for weighted, latency, geo, and failover resource record sets: A | AAAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT

Values for alias resource record sets:

  • CloudFront distribution: A or AAAA

  • Elastic Beanstalk environment that has a regionalized subdomain: A

  • ELB load balancer: A | AAAA

  • Amazon S3 bucket: A

Constraint: Specifying type without specifying name returns an InvalidInput error.

", "ListResourceRecordSetsResponse$NextRecordType": "

If the results were truncated, the type of the next record in the list.

This element is present only if IsTruncated is true.

", "ListTrafficPolicyInstancesByHostedZoneRequest$TrafficPolicyInstanceTypeMarker": "

For the first request to ListTrafficPolicyInstancesByHostedZone, omit this value.

If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceTypeMarker is the DNS type of the first traffic policy instance in the next group of MaxItems traffic policy instances.

If the value of IsTruncated in the previous response was false, there are no more traffic policy instances to get for this hosted zone.

", "ListTrafficPolicyInstancesByHostedZoneResponse$TrafficPolicyInstanceTypeMarker": "

If IsTruncated is true, TrafficPolicyInstanceTypeMarker is the DNS type of the resource record sets that are associated with the first traffic policy instance in the next group of MaxItems traffic policy instances.

", @@ -1317,7 +1299,7 @@ "ListTrafficPolicyInstancesByPolicyResponse$TrafficPolicyInstanceTypeMarker": "

If IsTruncated is true, TrafficPolicyInstanceTypeMarker is the DNS type of the resource record sets that are associated with the first traffic policy instance in the next group of MaxItems traffic policy instances.

", "ListTrafficPolicyInstancesRequest$TrafficPolicyInstanceTypeMarker": "

For the first request to ListTrafficPolicyInstances, omit this value.

If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceTypeMarker is the DNS type of the first traffic policy instance in the next group of MaxItems traffic policy instances.

If the value of IsTruncated in the previous response was false, there are no more traffic policy instances to get.

", "ListTrafficPolicyInstancesResponse$TrafficPolicyInstanceTypeMarker": "

If IsTruncated is true, TrafficPolicyInstanceTypeMarker is the DNS type of the resource record sets that are associated with the first traffic policy instance in the next group of MaxItems traffic policy instances.

", - "ResourceRecordSet$Type": "

The DNS record type. For information about different record types and how data is encoded for them, see Supported DNS Resource Record Types in the Amazon Route 53 Developer Guide.

Valid values for basic resource record sets: A | AAAA | CNAME | MX | NAPTR | NS | PTR | SOA | SPF | SRV | TXT

Values for weighted, latency, geolocation, and failover resource record sets: A | AAAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT. When creating a group of weighted, latency, geolocation, or failover resource record sets, specify the same value for all of the resource record sets in the group.

SPF records were formerly used to verify the identity of the sender of email messages. However, we no longer recommend that you create resource record sets for which the value of Type is SPF. RFC 7208, Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1, has been updated to say, \"...[I]ts existence and mechanism defined in [RFC4408] have led to some interoperability issues. Accordingly, its use is no longer appropriate for SPF version 1; implementations are not to use it.\" In RFC 7208, see section 14.1, The SPF DNS Record Type.

Values for alias resource record sets:

  • CloudFront distributions: A

  • Elastic Beanstalk environment that has a regionalized subdomain: A

  • ELB load balancers: A | AAAA

  • Amazon S3 buckets: A

  • Another resource record set in this hosted zone: Specify the type of the resource record set for which you're creating the alias. Specify any value except NS or SOA.

", + "ResourceRecordSet$Type": "

The DNS record type. For information about different record types and how data is encoded for them, see Supported DNS Resource Record Types in the Amazon Route 53 Developer Guide.

Valid values for basic resource record sets: A | AAAA | CNAME | MX | NAPTR | NS | PTR | SOA | SPF | SRV | TXT

Values for weighted, latency, geolocation, and failover resource record sets: A | AAAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT. When creating a group of weighted, latency, geolocation, or failover resource record sets, specify the same value for all of the resource record sets in the group.

SPF records were formerly used to verify the identity of the sender of email messages. However, we no longer recommend that you create resource record sets for which the value of Type is SPF. RFC 7208, Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1, has been updated to say, \"...[I]ts existence and mechanism defined in [RFC4408] have led to some interoperability issues. Accordingly, its use is no longer appropriate for SPF version 1; implementations are not to use it.\" In RFC 7208, see section 14.1, The SPF DNS Record Type.

Values for alias resource record sets:

  • CloudFront distributions: A

    If IPv6 is enabled for the distribution, create two resource record sets to route traffic to your distribution, one with a value of A and one with a value of AAAA.

  • AWS Elastic Beanstalk environment that has a regionalized subdomain: A

  • ELB load balancers: A | AAAA

  • Amazon S3 buckets: A

  • Another resource record set in this hosted zone: Specify the type of the resource record set for which you're creating the alias. Specify any value except NS or SOA.

", "TestDNSAnswerRequest$RecordType": "

The type of the resource record set.

", "TestDNSAnswerResponse$RecordType": "

The type of the resource record set that you submitted a request for.

", "TrafficPolicy$Type": "

The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance.

", @@ -1340,14 +1322,13 @@ "RequestInterval": { "base": null, "refs": { - "HealthCheckConfig$RequestInterval": "

The number of seconds between the time that Amazon Route 53 gets a response from your endpoint and the time that it sends the next health-check request. Each Amazon Route 53 health checker makes requests at this interval.

You can't change the value of RequestInterval after you create a health check.

" + "HealthCheckConfig$RequestInterval": "

The number of seconds between the time that Amazon Route 53 gets a response from your endpoint and the time that it sends the next health check request. Each Amazon Route 53 health checker makes requests at this interval.

You can't change the value of RequestInterval after you create a health check.

If you don't specify a value for RequestInterval, the default value is 30 seconds.

" } }, "ResourceDescription": { "base": null, "refs": { "ChangeBatch$Comment": "

Optional: Any comments you want to include about a change batch request.

", - "ChangeBatchRecord$Comment": "

A complex type that describes change information about changes made to your hosted zone.

This element contains an ID that you use when performing a GetChange action to get detailed information about the change.

", "ChangeInfo$Comment": "

A complex type that describes change information about changes made to your hosted zone.

This element contains an ID that you use when performing a GetChange action to get detailed information about the change.

", "HostedZoneConfig$Comment": "

Any comments that you want to include about the hosted zone.

", "UpdateHostedZoneCommentRequest$Comment": "

The new comment for the hosted zone. If you don't specify a value for Comment, Amazon Route 53 deletes the existing value of the Comment element, if any.

" @@ -1356,25 +1337,24 @@ "ResourceId": { "base": null, "refs": { - "AliasTarget$HostedZoneId": "

Alias resource records sets only: The value used depends on where the queries are routed:

A CloudFront distribution

Specify Z2FDTNDATAQYW2.

Alias resource record sets for CloudFront cannot be created in a private zone.

Elastic Beanstalk environment

Specify the hosted zone ID for the region in which you created the environment. The environment must have a regionalized subdomain. For a list of regions and the corresponding hosted zone IDs, see AWS Elastic Beanstalk in the Regions and Endpoints chapter of the AWS General Reference.

ELB load balancer

Specify the value of the hosted zone ID for the load balancer. Use the following methods to get the hosted zone ID:

  • AWS Management Console: Go to the Amazon EC2; page, click Load Balancers in the navigation pane, select the load balancer, and get the value of the Hosted Zone ID field on the Description tab. Use the same process to get the DNS Name. See HostedZone$Name.

  • Elastic Load Balancing API: Use DescribeLoadBalancers to get the value of CanonicalHostedZoneNameID. Use the same process to get the CanonicalHostedZoneName. See HostedZone$Name.

  • AWS CLI: Use describe-load-balancers to get the value of CanonicalHostedZoneNameID. Use the same process to get the CanonicalHostedZoneName. See HostedZone$Name.

An Amazon S3 bucket configured as a static website

Specify the hosted zone ID for the Amazon S3 website endpoint in which you created the bucket. For more information about valid values, see the table Amazon S3 (S3) Website Endpoints in the Amazon Web Services General Reference.

Another Amazon Route 53 resource record set in your hosted zone

Specify the hosted zone ID of your hosted zone. (An alias resource record set cannot reference a resource record set in a different hosted zone.)

", - "AssociateVPCWithHostedZoneRequest$HostedZoneId": "

The ID of the hosted zone you want to associate your VPC with.

Note that you cannot associate a VPC with a hosted zone that doesn't have an existing VPC association.

", - "ChangeBatchRecord$Id": "

The ID of the request. Use this ID to track when the change has completed across all Amazon Route 53 DNS servers.

", + "AliasTarget$HostedZoneId": "

Alias resource records sets only: The value used depends on where you want to route traffic:

CloudFront distribution

Specify Z2FDTNDATAQYW2.

Alias resource record sets for CloudFront can't be created in a private zone.

Elastic Beanstalk environment

Specify the hosted zone ID for the region in which you created the environment. The environment must have a regionalized subdomain. For a list of regions and the corresponding hosted zone IDs, see AWS Elastic Beanstalk in the \"AWS Regions and Endpoints\" chapter of the Amazon Web Services General Reference.

ELB load balancer

Specify the value of the hosted zone ID for the load balancer. Use the following methods to get the hosted zone ID:

  • Elastic Load Balancing table in the \"AWS Regions and Endpoints\" chapter of the Amazon Web Services General Reference: Use the value in the \"Amazon Route 53 Hosted Zone ID\" column that corresponds with the region that you created your load balancer in.

  • AWS Management Console: Go to the Amazon EC2 page, click Load Balancers in the navigation pane, select the load balancer, and get the value of the Hosted zone field on the Description tab.

  • Elastic Load Balancing API: Use DescribeLoadBalancers to get the value of CanonicalHostedZoneNameId. For more information, see the applicable guide:

  • AWS CLI: Use describe-load-balancers to get the value of CanonicalHostedZoneNameID.

An Amazon S3 bucket configured as a static website

Specify the hosted zone ID for the region that you created the bucket in. For more information about valid values, see the Amazon Simple Storage Service Website Endpoints table in the \"AWS Regions and Endpoints\" chapter of the Amazon Web Services General Reference.

Another Amazon Route 53 resource record set in your hosted zone

Specify the hosted zone ID of your hosted zone. (An alias resource record set can't reference a resource record set in a different hosted zone.)

", + "AssociateVPCWithHostedZoneRequest$HostedZoneId": "

The ID of the private hosted zone that you want to associate an Amazon VPC with.

Note that you can't associate a VPC with a hosted zone that doesn't have an existing VPC association.

", "ChangeInfo$Id": "

The ID of the request.

", "ChangeResourceRecordSetsRequest$HostedZoneId": "

The ID of the hosted zone that contains the resource record sets that you want to change.

", "CreateHostedZoneRequest$DelegationSetId": "

If you want to associate a reusable delegation set with this hosted zone, the ID that Amazon Route 53 assigned to the reusable delegation set when you created it. For more information about reusable delegation sets, see CreateReusableDelegationSet.

Type

String

Default

None

Parent

CreatedHostedZoneRequest

", "CreateReusableDelegationSetRequest$HostedZoneId": "

If you want to mark the delegation set for an existing hosted zone as reusable, the ID for that hosted zone.

", "CreateTrafficPolicyInstanceRequest$HostedZoneId": "

The ID of the hosted zone in which you want Amazon Route 53 to create resource record sets by using the configuration in a traffic policy.

", + "CreateVPCAssociationAuthorizationRequest$HostedZoneId": "

The ID of the private hosted zone that you want to authorize associating a VPC with.

", + "CreateVPCAssociationAuthorizationResponse$HostedZoneId": "

The ID of the hosted zone that you authorized associating a VPC with.

", "DelegationSet$Id": "

The ID that Amazon Route 53 assigns to a reusable delegation set.

", "DeleteHostedZoneRequest$Id": "

The ID of the hosted zone you want to delete.

", "DeleteReusableDelegationSetRequest$Id": "

The ID of the reusable delegation set you want to delete.

", - "DisassociateVPCFromHostedZoneRequest$HostedZoneId": "

The ID of the VPC that you want to disassociate from an Amazon Route 53 hosted zone.

", - "GetChangeDetailsRequest$Id": "

The ID of the change batch. This is the value that you specified in the change ID parameter when you submitted the request.

", + "DeleteVPCAssociationAuthorizationRequest$HostedZoneId": "

When removing authorization to associate a VPC that was created by one AWS account with a hosted zone that was created with a different AWS account, the ID of the hosted zone.

", + "DisassociateVPCFromHostedZoneRequest$HostedZoneId": "

The ID of the private hosted zone that you want to disassociate a VPC from.

", "GetChangeRequest$Id": "

The ID of the change batch request. The value that you specify here is the value that ChangeResourceRecordSets returned in the Id element when you submitted the request.

", "GetHostedZoneRequest$Id": "

The ID of the hosted zone for which you want to get a list of the name servers in the delegation set.

", "GetReusableDelegationSetRequest$Id": "

The ID of the reusable delegation set for which you want to get a list of the name server.

", "HostedZone$Id": "

The ID that Amazon Route 53 assigned to the hosted zone when you created it.

", - "ListChangeBatchesByHostedZoneRequest$HostedZoneId": "

The ID of the hosted zone that you want to see changes for.

", - "ListChangeBatchesByRRSetRequest$HostedZoneId": "

The ID of the hosted zone that you want to see changes for.

", "ListHostedZonesByNameRequest$HostedZoneId": "

(Optional) For your first request to ListHostedZonesByName, do not include the hostedzoneid parameter.

If you have more hosted zones than the value of maxitems, ListHostedZonesByName returns only the first maxitems hosted zones. To get the next group of maxitems hosted zones, submit another request to ListHostedZonesByName and include both dnsname and hostedzoneid parameters. For the value of hostedzoneid, specify the value of the NextHostedZoneId element from the previous response.

", "ListHostedZonesByNameResponse$HostedZoneId": "

The ID that Amazon Route 53 assigned to the hosted zone when you created it.

", "ListHostedZonesByNameResponse$NextHostedZoneId": "

If IsTruncated is true, the value of NextHostedZoneId identifies the first hosted zone in the next group of maxitems hosted zones. Call ListHostedZonesByName again and specify the value of NextDNSName and NextHostedZoneId in the dnsname and hostedzoneid parameters, respectively.

This element is present only if IsTruncated is true.

", @@ -1385,6 +1365,8 @@ "ListTrafficPolicyInstancesByPolicyResponse$HostedZoneIdMarker": "

If IsTruncated is true, HostedZoneIdMarker is the ID of the hosted zone of the first traffic policy instance in the next group of MaxItems traffic policy instances.

", "ListTrafficPolicyInstancesRequest$HostedZoneIdMarker": "

For the first request to ListTrafficPolicyInstances, omit this value.

If the value of IsTruncated in the previous response was true, you have more traffic policy instances. To get the next group of MaxItems traffic policy instances, submit another ListTrafficPolicyInstances request. For the value of HostedZoneIdMarker, specify the value of HostedZoneIdMarker from the previous response, which is the hosted zone ID of the first traffic policy instance in the next group of MaxItems traffic policy instances.

If the value of IsTruncated in the previous response was false, there are no more traffic policy instances to get.

", "ListTrafficPolicyInstancesResponse$HostedZoneIdMarker": "

If IsTruncated is true, HostedZoneIdMarker is the ID of the hosted zone of the first traffic policy instance in the next group of MaxItems traffic policy instances.

", + "ListVPCAssociationAuthorizationsRequest$HostedZoneId": "

The ID of the hosted zone for which you want a list of VPCs that can be associated with the hosted zone.

", + "ListVPCAssociationAuthorizationsResponse$HostedZoneId": "

The ID of the hosted zone that you can associate the listed VPCs with.

", "TestDNSAnswerRequest$HostedZoneId": "

The ID of the hosted zone that you want Amazon Route 53 to simulate a query for.

", "TrafficPolicyInstance$HostedZoneId": "

The ID of the hosted zone that Amazon Route 53 created resource record sets in.

", "UpdateHostedZoneCommentRequest$Id": "

The ID for the hosted zone for which you want to update the comment.

" @@ -1398,7 +1380,7 @@ } }, "ResourceRecord": { - "base": "

Information specific to the resource record.

If you are creating an alias resource record set, omit ResourceRecord.

", + "base": "

Information specific to the resource record.

If you're creating an alias resource record set, omit ResourceRecord.

", "refs": { "ResourceRecords$member": null } @@ -1406,20 +1388,19 @@ "ResourceRecordSet": { "base": "

Information about the resource record set to create or delete.

", "refs": { - "Change$ResourceRecordSet": "

Information about the resource record set to create or delete.

", + "Change$ResourceRecordSet": "

Information about the resource record set to create, delete, or update.

", "ResourceRecordSets$member": null } }, "ResourceRecordSetFailover": { "base": null, "refs": { - "ResourceRecordSet$Failover": "

Failover resource record sets only: To configure failover, you add the Failover element to two resource record sets. For one resource record set, you specify PRIMARY as the value for Failover; for the other resource record set, you specify SECONDARY. In addition, you include the HealthCheckId element and specify the health check that you want Amazon Route 53 to perform for each resource record set.

Except where noted, the following failover behaviors assume that you have included the HealthCheckId element in both resource record sets:

  • When the primary resource record set is healthy, Amazon Route 53 responds to DNS queries with the applicable value from the primary resource record set regardless of the health of the secondary resource record set.

  • When the primary resource record set is unhealthy and the secondary resource record set is healthy, Amazon Route 53 responds to DNS queries with the applicable value from the secondary resource record set.

  • When the secondary resource record set is unhealthy, Amazon Route 53 responds to DNS queries with the applicable value from the primary resource record set regardless of the health of the primary resource record set.

  • If you omit the HealthCheckId element for the secondary resource record set, and if the primary resource record set is unhealthy, Amazon Route 53 always responds to DNS queries with the applicable value from the secondary resource record set. This is true regardless of the health of the associated endpoint.

You cannot create non-failover resource record sets that have the same values for the Name and Type elements as failover resource record sets.

For failover alias resource record sets, you must also include the EvaluateTargetHealth element and set the value to true.

For more information about configuring failover for Amazon Route 53, see the following topics in the Amazon Route 53 Developer Guide:

Valid values: PRIMARY | SECONDARY

" + "ResourceRecordSet$Failover": "

Failover resource record sets only: To configure failover, you add the Failover element to two resource record sets. For one resource record set, you specify PRIMARY as the value for Failover; for the other resource record set, you specify SECONDARY. In addition, you include the HealthCheckId element and specify the health check that you want Amazon Route 53 to perform for each resource record set.

Except where noted, the following failover behaviors assume that you have included the HealthCheckId element in both resource record sets:

  • When the primary resource record set is healthy, Amazon Route 53 responds to DNS queries with the applicable value from the primary resource record set regardless of the health of the secondary resource record set.

  • When the primary resource record set is unhealthy and the secondary resource record set is healthy, Amazon Route 53 responds to DNS queries with the applicable value from the secondary resource record set.

  • When the secondary resource record set is unhealthy, Amazon Route 53 responds to DNS queries with the applicable value from the primary resource record set regardless of the health of the primary resource record set.

  • If you omit the HealthCheckId element for the secondary resource record set, and if the primary resource record set is unhealthy, Amazon Route 53 always responds to DNS queries with the applicable value from the secondary resource record set. This is true regardless of the health of the associated endpoint.

You can't create non-failover resource record sets that have the same values for the Name and Type elements as failover resource record sets.

For failover alias resource record sets, you must also include the EvaluateTargetHealth element and set the value to true.

For more information about configuring failover for Amazon Route 53, see the following topics in the Amazon Route 53 Developer Guide:

Valid values: PRIMARY | SECONDARY

" } }, "ResourceRecordSetIdentifier": { "base": null, "refs": { - "ListChangeBatchesByRRSetRequest$SetIdentifier": "

The identifier of the RRSet that you want to see changes for.

", "ListResourceRecordSetsRequest$StartRecordIdentifier": "

Weighted resource record sets only: If results were truncated for a given DNS name and type, specify the value of NextRecordIdentifier from the previous response to get the next resource record set that has the current DNS name and type.

", "ListResourceRecordSetsResponse$NextRecordIdentifier": "

Weighted, latency, geolocation, and failover resource record sets only: If results were truncated for a given DNS name and type, the value of SetIdentifier for the next resource record set that has the current DNS name and type.

", "ResourceRecordSet$SetIdentifier": "

Weighted, Latency, Geo, and Failover resource record sets only: An identifier that differentiates among multiple resource record sets that have the same combination of DNS name and type. The value of SetIdentifier must be unique for each resource record set that has the same combination of DNS name and type. Omit SetIdentifier for any other types of record sets.

" @@ -1428,13 +1409,13 @@ "ResourceRecordSetRegion": { "base": null, "refs": { - "ResourceRecordSet$Region": "

Latency-based resource record sets only: The Amazon EC2 region where the resource that is specified in this resource record set resides. The resource typically is an AWS resource, such as an Amazon EC2 instance or an ELB load balancer, and is referred to by an IP address or a DNS domain name, depending on the record type.

Creating latency and latency alias resource record sets in private hosted zones is not supported.

When Amazon Route 53 receives a DNS query for a domain name and type for which you have created latency resource record sets, Amazon Route 53 selects the latency resource record set that has the lowest latency between the end user and the associated Amazon EC2 region. Amazon Route 53 then returns the value that is associated with the selected resource record set.

Note the following:

  • You can only specify one ResourceRecord per latency resource record set.

  • You can only create one latency resource record set for each Amazon EC2 region.

  • You are not required to create latency resource record sets for all Amazon EC2 regions. Amazon Route 53 will choose the region with the best latency from among the regions for which you create latency resource record sets.

  • You cannot create non-latency resource record sets that have the same values for the Name and Type elements as latency resource record sets.

" + "ResourceRecordSet$Region": "

Latency-based resource record sets only: The Amazon EC2 Region where the resource that is specified in this resource record set resides. The resource typically is an AWS resource, such as an EC2 instance or an ELB load balancer, and is referred to by an IP address or a DNS domain name, depending on the record type.

Creating latency and latency alias resource record sets in private hosted zones is not supported.

When Amazon Route 53 receives a DNS query for a domain name and type for which you have created latency resource record sets, Amazon Route 53 selects the latency resource record set that has the lowest latency between the end user and the associated Amazon EC2 Region. Amazon Route 53 then returns the value that is associated with the selected resource record set.

Note the following:

  • You can only specify one ResourceRecord per latency resource record set.

  • You can only create one latency resource record set for each Amazon EC2 Region.

  • You aren't required to create latency resource record sets for all Amazon EC2 Regions. Amazon Route 53 will choose the region with the best latency from among the regions for which you create latency resource record sets.

  • You can't create non-latency resource record sets that have the same values for the Name and Type elements as latency resource record sets.

" } }, "ResourceRecordSetWeight": { "base": null, "refs": { - "ResourceRecordSet$Weight": "

Weighted resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that determines the proportion of DNS queries that Amazon Route 53 responds to using the current resource record set. Amazon Route 53 calculates the sum of the weights for the resource record sets that have the same combination of DNS name and type. Amazon Route 53 then responds to queries based on the ratio of a resource's weight to the total. Note the following:

  • You must specify a value for the Weight element for every weighted resource record set.

  • You can only specify one ResourceRecord per weighted resource record set.

  • You cannot create latency, failover, or geolocation resource record sets that have the same values for the Name and Type elements as weighted resource record sets.

  • You can create a maximum of 100 weighted resource record sets that have the same values for the Name and Type elements.

  • For weighted (but not weighted alias) resource record sets, if you set Weight to 0 for a resource record set, Amazon Route 53 never responds to queries with the applicable value for that resource record set. However, if you set Weight to 0 for all resource record sets that have the same combination of DNS name and type, traffic is routed to all resources with equal probability.

    The effect of setting Weight to 0 is different when you associate health checks with weighted resource record sets. For more information, see Options for Configuring Amazon Route 53 Active-Active and Active-Passive Failover in the Amazon Route 53 Developer Guide.

" + "ResourceRecordSet$Weight": "

Weighted resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that determines the proportion of DNS queries that Amazon Route 53 responds to using the current resource record set. Amazon Route 53 calculates the sum of the weights for the resource record sets that have the same combination of DNS name and type. Amazon Route 53 then responds to queries based on the ratio of a resource's weight to the total. Note the following:

  • You must specify a value for the Weight element for every weighted resource record set.

  • You can only specify one ResourceRecord per weighted resource record set.

  • You can't create latency, failover, or geolocation resource record sets that have the same values for the Name and Type elements as weighted resource record sets.

  • You can create a maximum of 100 weighted resource record sets that have the same values for the Name and Type elements.

  • For weighted (but not weighted alias) resource record sets, if you set Weight to 0 for a resource record set, Amazon Route 53 never responds to queries with the applicable value for that resource record set. However, if you set Weight to 0 for all resource record sets that have the same combination of DNS name and type, traffic is routed to all resources with equal probability.

    The effect of setting Weight to 0 is different when you associate health checks with weighted resource record sets. For more information, see Options for Configuring Amazon Route 53 Active-Active and Active-Passive Failover in the Amazon Route 53 Developer Guide.

" } }, "ResourceRecordSets": { @@ -1446,7 +1427,7 @@ "ResourceRecords": { "base": null, "refs": { - "ResourceRecordSet$ResourceRecords": "

Information about the resource records to act upon.

If you are creating an alias resource record set, omit ResourceRecords.

" + "ResourceRecordSet$ResourceRecords": "

Information about the resource records to act upon.

If you're creating an alias resource record set, omit ResourceRecords.

" } }, "ResourceTagSet": { @@ -1586,14 +1567,13 @@ } }, "ThrottlingException": { - "base": "

", + "base": "

The limit on the number of requests per second was exceeded.

", "refs": { } }, "TimeStamp": { "base": null, "refs": { - "ChangeBatchRecord$SubmittedAt": "

The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ, as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). The Z after the time indicates that the time is listed in Coordinated Universal Time (UTC).

", "ChangeInfo$SubmittedAt": "

The date and time the change request was submitted, in Coordinated Universal Time (UTC) format: YYYY-MM-DDThh:mm:ssZ. For more information, see the Wikipedia entry ISO 8601.

", "StatusReport$CheckedTime": "

The time at which the health checker performed the health check in ISO 8601 format and Coordinated Universal Time (UTC). For example, the value 2014-10-27T17:48:16.751Z represents October 27, 2014 at 17:48:16.751 UTC.

" } @@ -1604,7 +1584,7 @@ } }, "TooManyHostedZones": { - "base": "

This hosted zone cannot be created because the hosted zone limit is exceeded. To request a limit increase, go to the Amazon Route 53 Contact Us page.

", + "base": "

This hosted zone can't be created because the hosted zone limit is exceeded. To request a limit increase, go to the Amazon Route 53 Contact Us page.

", "refs": { } }, @@ -1618,6 +1598,11 @@ "refs": { } }, + "TooManyVPCAssociationAuthorizations": { + "base": "

You've created the maximum number of authorizations that can be created for the specified hosted zone. To authorize another VPC to be associated with the hosted zone, submit a DeleteVPCAssociationAuthorization request to remove an existing authorization. To get a list of existing authorizations, submit a ListVPCAssociationAuthorizations request.

", + "refs": { + } + }, "TrafficPolicies": { "base": null, "refs": { @@ -1651,9 +1636,9 @@ "TrafficPolicyDocument": { "base": null, "refs": { - "CreateTrafficPolicyRequest$Document": "

The definition of this traffic policy in JSON format. For more information, see Traffic Policy Document Format in the Amazon Route 53 API Reference.

", + "CreateTrafficPolicyRequest$Document": "

The definition of this traffic policy in JSON format. For more information, see Traffic Policy Document Format.

", "CreateTrafficPolicyVersionRequest$Document": "

The definition of this version of the traffic policy, in JSON format. You specified the JSON in the CreateTrafficPolicyVersion request. For more information about the JSON format, see CreateTrafficPolicy.

", - "TrafficPolicy$Document": "

The definition of a traffic policy in JSON format. You specify the JSON document to use for a new traffic policy in the CreateTrafficPolicy request. For more information about the JSON format, see Traffic Policy Document Format.

" + "TrafficPolicy$Document": "

The definition of a traffic policy in JSON format. You specify the JSON document to use for a new traffic policy in the CreateTrafficPolicy request. For more information about the JSON format, see Traffic Policy Document Format.

" } }, "TrafficPolicyId": { @@ -1812,22 +1797,30 @@ } }, "VPC": { - "base": "

A complex type that contains information about the Amazon VPC that you're associating with the specified hosted zone.

", + "base": "

A complex type that contains information about an Amazon VPC that is associated with a private hosted zone.

", "refs": { - "AssociateVPCWithHostedZoneRequest$VPC": "

A complex type containing information about the Amazon VPC that you're associating with the specified hosted zone.

", - "CreateHostedZoneRequest$VPC": "

The VPC that you want your hosted zone to be associated with. By providing this parameter, your newly created hosted cannot be resolved anywhere other than the given VPC.

", + "AssociateVPCWithHostedZoneRequest$VPC": "

A complex type that contains information about the VPC that you want to associate with a private hosted zone.

", + "CreateHostedZoneRequest$VPC": "

The VPC that you want your hosted zone to be associated with. By providing this parameter, your newly created hosted can't be resolved anywhere other than the given VPC.

", "CreateHostedZoneResponse$VPC": "

A complex type that contains information about an Amazon VPC that you associated with this hosted zone.

", - "DisassociateVPCFromHostedZoneRequest$VPC": "

A complex type containing information about the Amazon VPC that you're disassociating from the specified hosted zone.

", + "CreateVPCAssociationAuthorizationRequest$VPC": "

A complex type that contains the VPC ID and region for the VPC that you want to authorize associating with your hosted zone.

", + "CreateVPCAssociationAuthorizationResponse$VPC": "

The VPC that you authorized associating with a hosted zone.

", + "DeleteVPCAssociationAuthorizationRequest$VPC": "

When removing authorization to associate a VPC that was created by one AWS account with a hosted zone that was created with a different AWS account, a complex type that includes the ID and region of the VPC.

", + "DisassociateVPCFromHostedZoneRequest$VPC": "

A complex type that contains information about the VPC that you're disassociating from the specified hosted zone.

", "VPCs$member": null } }, + "VPCAssociationAuthorizationNotFound": { + "base": "

The VPC that you specified is not authorized to be associated with the hosted zone.

", + "refs": { + } + }, "VPCAssociationNotFound": { "base": "

The specified VPC and hosted zone are not currently associated.

", "refs": { } }, "VPCId": { - "base": "

A VPC ID

", + "base": "

The ID of an Amazon VPC.

", "refs": { "VPC$VPCId": null } @@ -1839,9 +1832,10 @@ } }, "VPCs": { - "base": "

A list of VPCs

", + "base": "

A list of VPC elements.

", "refs": { - "GetHostedZoneResponse$VPCs": "

A complex type that contains information about VPCs associated with the specified hosted zone.

" + "GetHostedZoneResponse$VPCs": "

A complex type that contains information about VPCs associated with the specified hosted zone.

", + "ListVPCAssociationAuthorizationsResponse$VPCs": "

The list of VPCs that are authorized to be associated with the specified hosted zone.

" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/examples-1.json index 0ea7e3b0b..d757c2b9b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/examples-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/examples-1.json @@ -1,5 +1,762 @@ { "version": "1.0", "examples": { + "AssociateVPCWithHostedZone": [ + { + "input": { + "Comment": "", + "HostedZoneId": "Z3M3LMPEXAMPLE", + "VPC": { + "VPCId": "vpc-1a2b3c4d", + "VPCRegion": "us-east-2" + } + }, + "output": { + "ChangeInfo": { + "Comment": "", + "Id": "/change/C3HC6WDB2UANE2", + "Status": "INSYNC", + "SubmittedAt": "2017-01-31T01:36:41.958Z" + } + }, + "comments": { + "input": { + }, + "output": { + "Status": "Valid values are PENDING and INSYNC.", + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example associates the VPC with ID vpc-1a2b3c4d with the hosted zone with ID Z3M3LMPEXAMPLE.", + "id": "to-associate-a-vpc-with-a-hosted-zone-1484069228699", + "title": "To associate a VPC with a hosted zone" + } + ], + "ChangeResourceRecordSets": [ + { + "input": { + "ChangeBatch": { + "Changes": [ + { + "Action": "CREATE", + "ResourceRecordSet": { + "Name": "example.com", + "ResourceRecords": [ + { + "Value": "192.0.2.44" + } + ], + "TTL": 60, + "Type": "A" + } + } + ], + "Comment": "Web server for example.com" + }, + "HostedZoneId": "Z3M3LMPEXAMPLE" + }, + "output": { + "ChangeInfo": { + "Comment": "Web server for example.com", + "Id": "/change/C2682N5HXP0BZ4", + "Status": "PENDING", + "SubmittedAt": "2017-02-10T01:36:41.958Z" + } + }, + "comments": { + "input": { + "Action": "Valid values: CREATE, DELETE, UPSERT", + "TTL": "The amount of time in seconds that you want DNS resolvers to cache the values in this resource record set before submitting another request to Route 53", + "Value": "The value that is applicable to the value of Type. For example, if Type is A, Value is an IPv4 address" + }, + "output": { + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example creates a resource record set that routes Internet traffic to a resource with an IP address of 192.0.2.44.", + "id": "to-create-update-or-delete-resource-record-sets-1484344703668", + "title": "To create a basic resource record set" + }, + { + "input": { + "ChangeBatch": { + "Changes": [ + { + "Action": "CREATE", + "ResourceRecordSet": { + "HealthCheckId": "abcdef11-2222-3333-4444-555555fedcba", + "Name": "example.com", + "ResourceRecords": [ + { + "Value": "192.0.2.44" + } + ], + "SetIdentifier": "Seattle data center", + "TTL": 60, + "Type": "A", + "Weight": 100 + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "HealthCheckId": "abcdef66-7777-8888-9999-000000fedcba", + "Name": "example.com", + "ResourceRecords": [ + { + "Value": "192.0.2.45" + } + ], + "SetIdentifier": "Portland data center", + "TTL": 60, + "Type": "A", + "Weight": 200 + } + } + ], + "Comment": "Web servers for example.com" + }, + "HostedZoneId": "Z3M3LMPEXAMPLE" + }, + "output": { + "ChangeInfo": { + "Comment": "Web servers for example.com", + "Id": "/change/C2682N5HXP0BZ4", + "Status": "PENDING", + "SubmittedAt": "2017-02-10T01:36:41.958Z" + } + }, + "comments": { + "input": { + "Action": "Valid values: CREATE, DELETE, UPSERT", + "TTL": "The amount of time in seconds that you want DNS resolvers to cache the values in this resource record set before submitting another request to Route 53. TTLs must be the same for all weighted resource record sets that have the same name and type.", + "Value": "The value that is applicable to the value of Type. For example, if Type is A, Value is an IPv4 address" + }, + "output": { + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example creates two weighted resource record sets. The resource with a Weight of 100 will get 1/3rd of traffic (100/100+200), and the other resource will get the rest of the traffic for example.com.", + "id": "to-create-weighted-resource-record-sets-1484348208522", + "title": "To create weighted resource record sets" + }, + { + "input": { + "ChangeBatch": { + "Changes": [ + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "d123rk29d0stfj.cloudfront.net", + "EvaluateTargetHealth": false, + "HostedZoneId": "Z2FDTNDATAQYW2" + }, + "Name": "example.com", + "Type": "A" + } + } + ], + "Comment": "CloudFront distribution for example.com" + }, + "HostedZoneId": "Z3M3LMPEXAMPLE" + }, + "output": { + "ChangeInfo": { + "Comment": "CloudFront distribution for example.com", + "Id": "/change/C2682N5HXP0BZ4", + "Status": "PENDING", + "SubmittedAt": "2017-02-10T01:36:41.958Z" + } + }, + "comments": { + "input": { + "Action": "Valid values: CREATE, DELETE, UPSERT", + "DNSName": "The DNS name assigned to the resource", + "HostedZoneId": "Depends on the type of resource that you want to route traffic to", + "Type": "A or AAAA, depending on the type of resource that you want to route traffic to" + }, + "output": { + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example creates an alias resource record set that routes traffic to a CloudFront distribution.", + "id": "to-create-an-alias-resource-record-set-1484348404062", + "title": "To create an alias resource record set" + }, + { + "input": { + "ChangeBatch": { + "Changes": [ + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "example-com-123456789.us-east-2.elb.amazonaws.com ", + "EvaluateTargetHealth": true, + "HostedZoneId": "Z3AADJGX6KTTL2" + }, + "Name": "example.com", + "SetIdentifier": "Ohio region", + "Type": "A", + "Weight": 100 + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "example-com-987654321.us-west-2.elb.amazonaws.com ", + "EvaluateTargetHealth": true, + "HostedZoneId": "Z1H1FL5HABSF5" + }, + "Name": "example.com", + "SetIdentifier": "Oregon region", + "Type": "A", + "Weight": 200 + } + } + ], + "Comment": "ELB load balancers for example.com" + }, + "HostedZoneId": "Z3M3LMPEXAMPLE" + }, + "output": { + "ChangeInfo": { + "Comment": "ELB load balancers for example.com", + "Id": "/change/C2682N5HXP0BZ4", + "Status": "PENDING", + "SubmittedAt": "2017-02-10T01:36:41.958Z" + } + }, + "comments": { + "input": { + "Action": "Valid values: CREATE, DELETE, UPSERT", + "DNSName": "The DNS name assigned to the resource", + "HostedZoneId": "Depends on the type of resource that you want to route traffic to", + "Type": "A or AAAA, depending on the type of resource that you want to route traffic to" + }, + "output": { + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example creates two weighted alias resource record sets that route traffic to ELB load balancers. The resource with a Weight of 100 will get 1/3rd of traffic (100/100+200), and the other resource will get the rest of the traffic for example.com.", + "id": "to-create-weighted-alias-resource-record-sets-1484349467416", + "title": "To create weighted alias resource record sets" + }, + { + "input": { + "ChangeBatch": { + "Changes": [ + { + "Action": "CREATE", + "ResourceRecordSet": { + "HealthCheckId": "abcdef11-2222-3333-4444-555555fedcba", + "Name": "example.com", + "Region": "us-east-2", + "ResourceRecords": [ + { + "Value": "192.0.2.44" + } + ], + "SetIdentifier": "Ohio region", + "TTL": 60, + "Type": "A" + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "HealthCheckId": "abcdef66-7777-8888-9999-000000fedcba", + "Name": "example.com", + "Region": "us-west-2", + "ResourceRecords": [ + { + "Value": "192.0.2.45" + } + ], + "SetIdentifier": "Oregon region", + "TTL": 60, + "Type": "A" + } + } + ], + "Comment": "EC2 instances for example.com" + }, + "HostedZoneId": "Z3M3LMPEXAMPLE" + }, + "output": { + "ChangeInfo": { + "Comment": "EC2 instances for example.com", + "Id": "/change/C2682N5HXP0BZ4", + "Status": "PENDING", + "SubmittedAt": "2017-02-10T01:36:41.958Z" + } + }, + "comments": { + "input": { + "Action": "Valid values: CREATE, DELETE, UPSERT", + "TTL": "The amount of time in seconds that you want DNS resolvers to cache the values in this resource record set before submitting another request to Route 53", + "Value": "The value that is applicable to the value of Type. For example, if Type is A, Value is an IPv4 address" + }, + "output": { + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example creates two latency resource record sets that route traffic to EC2 instances. Traffic for example.com is routed either to the Ohio region or the Oregon region, depending on the latency between the user and those regions.", + "id": "to-create-latency-resource-record-sets-1484350219917", + "title": "To create latency resource record sets" + }, + { + "input": { + "ChangeBatch": { + "Changes": [ + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "example-com-123456789.us-east-2.elb.amazonaws.com ", + "EvaluateTargetHealth": true, + "HostedZoneId": "Z3AADJGX6KTTL2" + }, + "Name": "example.com", + "Region": "us-east-2", + "SetIdentifier": "Ohio region", + "Type": "A" + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "example-com-987654321.us-west-2.elb.amazonaws.com ", + "EvaluateTargetHealth": true, + "HostedZoneId": "Z1H1FL5HABSF5" + }, + "Name": "example.com", + "Region": "us-west-2", + "SetIdentifier": "Oregon region", + "Type": "A" + } + } + ], + "Comment": "ELB load balancers for example.com" + }, + "HostedZoneId": "Z3M3LMPEXAMPLE" + }, + "output": { + "ChangeInfo": { + "Comment": "ELB load balancers for example.com", + "Id": "/change/C2682N5HXP0BZ4", + "Status": "PENDING", + "SubmittedAt": "2017-02-10T01:36:41.958Z" + } + }, + "comments": { + "input": { + "Action": "Valid values: CREATE, DELETE, UPSERT", + "DNSName": "The DNS name assigned to the resource", + "HostedZoneId": "Depends on the type of resource that you want to route traffic to", + "Type": "A or AAAA, depending on the type of resource that you want to route traffic to" + }, + "output": { + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example creates two latency alias resource record sets that route traffic for example.com to ELB load balancers. Requests are routed either to the Ohio region or the Oregon region, depending on the latency between the user and those regions.", + "id": "to-create-latency-alias-resource-record-sets-1484601774179", + "title": "To create latency alias resource record sets" + }, + { + "input": { + "ChangeBatch": { + "Changes": [ + { + "Action": "CREATE", + "ResourceRecordSet": { + "Failover": "PRIMARY", + "HealthCheckId": "abcdef11-2222-3333-4444-555555fedcba", + "Name": "example.com", + "ResourceRecords": [ + { + "Value": "192.0.2.44" + } + ], + "SetIdentifier": "Ohio region", + "TTL": 60, + "Type": "A" + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "Failover": "SECONDARY", + "HealthCheckId": "abcdef66-7777-8888-9999-000000fedcba", + "Name": "example.com", + "ResourceRecords": [ + { + "Value": "192.0.2.45" + } + ], + "SetIdentifier": "Oregon region", + "TTL": 60, + "Type": "A" + } + } + ], + "Comment": "Failover configuration for example.com" + }, + "HostedZoneId": "Z3M3LMPEXAMPLE" + }, + "output": { + "ChangeInfo": { + "Comment": "Failover configuration for example.com", + "Id": "/change/C2682N5HXP0BZ4", + "Status": "PENDING", + "SubmittedAt": "2017-02-10T01:36:41.958Z" + } + }, + "comments": { + "input": { + "Action": "Valid values: CREATE, DELETE, UPSERT", + "TTL": "The amount of time in seconds that you want DNS resolvers to cache the values in this resource record set before submitting another request to Route 53", + "Value": "The value that is applicable to the value of Type. For example, if Type is A, Value is an IPv4 address" + }, + "output": { + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example creates primary and secondary failover resource record sets that route traffic to EC2 instances. Traffic is generally routed to the primary resource, in the Ohio region. If that resource is unavailable, traffic is routed to the secondary resource, in the Oregon region.", + "id": "to-create-failover-resource-record-sets-1484604541740", + "title": "To create failover resource record sets" + }, + { + "input": { + "ChangeBatch": { + "Changes": [ + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "example-com-123456789.us-east-2.elb.amazonaws.com ", + "EvaluateTargetHealth": true, + "HostedZoneId": "Z3AADJGX6KTTL2" + }, + "Failover": "PRIMARY", + "Name": "example.com", + "SetIdentifier": "Ohio region", + "Type": "A" + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "example-com-987654321.us-west-2.elb.amazonaws.com ", + "EvaluateTargetHealth": true, + "HostedZoneId": "Z1H1FL5HABSF5" + }, + "Failover": "SECONDARY", + "Name": "example.com", + "SetIdentifier": "Oregon region", + "Type": "A" + } + } + ], + "Comment": "Failover alias configuration for example.com" + }, + "HostedZoneId": "Z3M3LMPEXAMPLE" + }, + "output": { + "ChangeInfo": { + "Comment": "Failover alias configuration for example.com", + "Id": "/change/C2682N5HXP0BZ4", + "Status": "PENDING", + "SubmittedAt": "2017-02-10T01:36:41.958Z" + } + }, + "comments": { + "input": { + "Action": "Valid values: CREATE, DELETE, UPSERT", + "DNSName": "The DNS name assigned to the resource", + "HostedZoneId": "Depends on the type of resource that you want to route traffic to", + "Type": "A or AAAA, depending on the type of resource that you want to route traffic to" + }, + "output": { + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example creates primary and secondary failover alias resource record sets that route traffic to ELB load balancers. Traffic is generally routed to the primary resource, in the Ohio region. If that resource is unavailable, traffic is routed to the secondary resource, in the Oregon region.", + "id": "to-create-failover-alias-resource-record-sets-1484607497724", + "title": "To create failover alias resource record sets" + }, + { + "input": { + "ChangeBatch": { + "Changes": [ + { + "Action": "CREATE", + "ResourceRecordSet": { + "GeoLocation": { + "ContinentCode": "NA" + }, + "Name": "example.com", + "ResourceRecords": [ + { + "Value": "192.0.2.44" + } + ], + "SetIdentifier": "North America", + "TTL": 60, + "Type": "A" + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "GeoLocation": { + "ContinentCode": "SA" + }, + "Name": "example.com", + "ResourceRecords": [ + { + "Value": "192.0.2.45" + } + ], + "SetIdentifier": "South America", + "TTL": 60, + "Type": "A" + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "GeoLocation": { + "ContinentCode": "EU" + }, + "Name": "example.com", + "ResourceRecords": [ + { + "Value": "192.0.2.46" + } + ], + "SetIdentifier": "Europe", + "TTL": 60, + "Type": "A" + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "GeoLocation": { + "CountryCode": "*" + }, + "Name": "example.com", + "ResourceRecords": [ + { + "Value": "192.0.2.47" + } + ], + "SetIdentifier": "Other locations", + "TTL": 60, + "Type": "A" + } + } + ], + "Comment": "Geolocation configuration for example.com" + }, + "HostedZoneId": "Z3M3LMPEXAMPLE" + }, + "output": { + "ChangeInfo": { + "Comment": "Geolocation configuration for example.com", + "Id": "/change/C2682N5HXP0BZ4", + "Status": "PENDING", + "SubmittedAt": "2017-02-10T01:36:41.958Z" + } + }, + "comments": { + "input": { + "Action": "Valid values: CREATE, DELETE, UPSERT", + "TTL": "The amount of time in seconds that you want DNS resolvers to cache the values in this resource record set before submitting another request to Route 53", + "Value": "The value that is applicable to the value of Type. For example, if Type is A, Value is an IPv4 address" + }, + "output": { + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example creates four geolocation resource record sets that use IPv4 addresses to route traffic to resources such as web servers running on EC2 instances. Traffic is routed to one of four IP addresses, for North America (NA), for South America (SA), for Europe (EU), and for all other locations (*).", + "id": "to-create-geolocation-resource-record-sets-1484612462466", + "title": "To create geolocation resource record sets" + }, + { + "input": { + "ChangeBatch": { + "Changes": [ + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "example-com-123456789.us-east-2.elb.amazonaws.com ", + "EvaluateTargetHealth": true, + "HostedZoneId": "Z3AADJGX6KTTL2" + }, + "GeoLocation": { + "ContinentCode": "NA" + }, + "Name": "example.com", + "SetIdentifier": "North America", + "Type": "A" + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "example-com-234567890.sa-east-1.elb.amazonaws.com ", + "EvaluateTargetHealth": true, + "HostedZoneId": "Z2P70J7HTTTPLU" + }, + "GeoLocation": { + "ContinentCode": "SA" + }, + "Name": "example.com", + "SetIdentifier": "South America", + "Type": "A" + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "example-com-234567890.eu-central-1.elb.amazonaws.com ", + "EvaluateTargetHealth": true, + "HostedZoneId": "Z215JYRZR1TBD5" + }, + "GeoLocation": { + "ContinentCode": "EU" + }, + "Name": "example.com", + "SetIdentifier": "Europe", + "Type": "A" + } + }, + { + "Action": "CREATE", + "ResourceRecordSet": { + "AliasTarget": { + "DNSName": "example-com-234567890.ap-southeast-1.elb.amazonaws.com ", + "EvaluateTargetHealth": true, + "HostedZoneId": "Z1LMS91P8CMLE5" + }, + "GeoLocation": { + "CountryCode": "*" + }, + "Name": "example.com", + "SetIdentifier": "Other locations", + "Type": "A" + } + } + ], + "Comment": "Geolocation alias configuration for example.com" + }, + "HostedZoneId": "Z3M3LMPEXAMPLE" + }, + "output": { + "ChangeInfo": { + "Comment": "Geolocation alias configuration for example.com", + "Id": "/change/C2682N5HXP0BZ4", + "Status": "PENDING", + "SubmittedAt": "2017-02-10T01:36:41.958Z" + } + }, + "comments": { + "input": { + "Action": "Valid values: CREATE, DELETE, UPSERT", + "DNSName": "The DNS name assigned to the resource", + "HostedZoneId": "Depends on the type of resource that you want to route traffic to", + "Type": "A or AAAA, depending on the type of resource that you want to route traffic to" + }, + "output": { + "SubmittedAt": "The date and time are in Coordinated Universal Time (UTC) and ISO 8601 format." + } + }, + "description": "The following example creates four geolocation alias resource record sets that route traffic to ELB load balancers. Traffic is routed to one of four IP addresses, for North America (NA), for South America (SA), for Europe (EU), and for all other locations (*).", + "id": "to-create-geolocation-alias-resource-record-sets-1484612871203", + "title": "To create geolocation alias resource record sets" + } + ], + "ChangeTagsForResource": [ + { + "input": { + "AddTags": [ + { + "Key": "apex", + "Value": "3874" + }, + { + "Key": "acme", + "Value": "4938" + } + ], + "RemoveTagKeys": [ + "Nadir" + ], + "ResourceId": "Z3M3LMPEXAMPLE", + "ResourceType": "hostedzone" + }, + "output": { + }, + "comments": { + "input": { + "ResourceType": "Valid values are healthcheck and hostedzone." + }, + "output": { + } + }, + "description": "The following example adds two tags and removes one tag from the hosted zone with ID Z3M3LMPEXAMPLE.", + "id": "to-add-or-remove-tags-from-a-hosted-zone-or-health-check-1484084752409", + "title": "To add or remove tags from a hosted zone or health check" + } + ], + "GetHostedZone": [ + { + "input": { + "Id": "Z3M3LMPEXAMPLE" + }, + "output": { + "DelegationSet": { + "NameServers": [ + "ns-2048.awsdns-64.com", + "ns-2049.awsdns-65.net", + "ns-2050.awsdns-66.org", + "ns-2051.awsdns-67.co.uk" + ] + }, + "HostedZone": { + "CallerReference": "C741617D-04E4-F8DE-B9D7-0D150FC61C2E", + "Config": { + "PrivateZone": false + }, + "Id": "/hostedzone/Z3M3LMPEXAMPLE", + "Name": "myawsbucket.com.", + "ResourceRecordSetCount": 8 + } + }, + "comments": { + "input": { + }, + "output": { + "Id": "The ID of the hosted zone that you specified in the GetHostedZone request.", + "Name": "The name of the hosted zone.", + "NameServers": "The servers that you specify in your domain configuration.", + "PrivateZone": "True if this is a private hosted zone, false if it's a public hosted zone." + } + }, + "description": "The following example gets information about the Z3M3LMPEXAMPLE hosted zone.", + "id": "to-get-information-about-a-hosted-zone-1481752361124", + "title": "To get information about a hosted zone" + } + ] } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/paginators-1.json index d472f47a2..5a7cea396 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/paginators-1.json @@ -2,32 +2,32 @@ "pagination": { "ListHealthChecks": { "input_token": "Marker", - "output_token": "NextMarker", - "more_results": "IsTruncated", "limit_key": "MaxItems", + "more_results": "IsTruncated", + "output_token": "NextMarker", "result_key": "HealthChecks" }, "ListHostedZones": { "input_token": "Marker", - "output_token": "NextMarker", - "more_results": "IsTruncated", "limit_key": "MaxItems", + "more_results": "IsTruncated", + "output_token": "NextMarker", "result_key": "HostedZones" }, "ListResourceRecordSets": { - "more_results": "IsTruncated", - "limit_key": "MaxItems", - "result_key": "ResourceRecordSets", "input_token": [ "StartRecordName", "StartRecordType", "StartRecordIdentifier" ], + "limit_key": "MaxItems", + "more_results": "IsTruncated", "output_token": [ "NextRecordName", "NextRecordType", "NextRecordIdentifier" - ] + ], + "result_key": "ResourceRecordSets" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53domains/2014-05-15/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/route53domains/2014-05-15/api-2.json index 6e45143e5..03ae50866 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/route53domains/2014-05-15/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/route53domains/2014-05-15/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"route53domains-2014-05-15", "apiVersion":"2014-05-15", "endpointPrefix":"route53domains", "jsonVersion":"1.1", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/runtime.lex/2016-11-28/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/runtime.lex/2016-11-28/api-2.json new file mode 100644 index 000000000..bfd92a0a5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/runtime.lex/2016-11-28/api-2.json @@ -0,0 +1,243 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2016-11-28", + "endpointPrefix":"runtime.lex", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceFullName":"Amazon Lex Runtime Service", + "signatureVersion":"v4", + "signingName":"lex", + "uid":"runtime.lex-2016-11-28" + }, + "operations":{ + "PostText":{ + "name":"PostText", + "http":{ + "method":"POST", + "requestUri":"/bot/{botName}/alias/{botAlias}/user/{userId}/text" + }, + "input":{"shape":"PostTextRequest"}, + "output":{"shape":"PostTextResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"BadRequestException"}, + {"shape":"LimitExceededException"}, + {"shape":"InternalFailureException"}, + {"shape":"ConflictException"}, + {"shape":"DependencyFailedException"}, + {"shape":"BadGatewayException"}, + {"shape":"LoopDetectedException"} + ] + } + }, + "shapes":{ + "BadGatewayException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":502}, + "exception":true + }, + "BadRequestException":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "BotAlias":{"type":"string"}, + "BotName":{"type":"string"}, + "Button":{ + "type":"structure", + "required":[ + "text", + "value" + ], + "members":{ + "text":{"shape":"ButtonTextStringWithLength"}, + "value":{"shape":"ButtonValueStringWithLength"} + } + }, + "ButtonTextStringWithLength":{ + "type":"string", + "max":15, + "min":1 + }, + "ButtonValueStringWithLength":{ + "type":"string", + "max":1000, + "min":1 + }, + "ConflictException":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "ContentType":{ + "type":"string", + "enum":["application/vnd.amazonaws.card.generic"] + }, + "DependencyFailedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":424}, + "exception":true + }, + "DialogState":{ + "type":"string", + "enum":[ + "ElicitIntent", + "ConfirmIntent", + "ElicitSlot", + "Fulfilled", + "ReadyForFulfillment", + "Failed" + ] + }, + "ErrorMessage":{"type":"string"}, + "GenericAttachment":{ + "type":"structure", + "members":{ + "title":{"shape":"StringWithLength"}, + "subTitle":{"shape":"StringWithLength"}, + "attachmentLinkUrl":{"shape":"StringUrlWithLength"}, + "imageUrl":{"shape":"StringUrlWithLength"}, + "buttons":{"shape":"listOfButtons"} + } + }, + "IntentName":{"type":"string"}, + "InternalFailureException":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true + }, + "LimitExceededException":{ + "type":"structure", + "members":{ + "retryAfterSeconds":{ + "shape":"String", + "location":"header", + "locationName":"Retry-After" + }, + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":429}, + "exception":true + }, + "LoopDetectedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":508}, + "exception":true + }, + "NotFoundException":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "PostTextRequest":{ + "type":"structure", + "required":[ + "botName", + "botAlias", + "userId", + "inputText" + ], + "members":{ + "botName":{ + "shape":"BotName", + "location":"uri", + "locationName":"botName" + }, + "botAlias":{ + "shape":"BotAlias", + "location":"uri", + "locationName":"botAlias" + }, + "userId":{ + "shape":"UserId", + "location":"uri", + "locationName":"userId" + }, + "sessionAttributes":{"shape":"StringMap"}, + "inputText":{"shape":"Text"} + } + }, + "PostTextResponse":{ + "type":"structure", + "members":{ + "intentName":{"shape":"IntentName"}, + "slots":{"shape":"StringMap"}, + "sessionAttributes":{"shape":"StringMap"}, + "message":{"shape":"Text"}, + "dialogState":{"shape":"DialogState"}, + "slotToElicit":{"shape":"String"}, + "responseCard":{"shape":"ResponseCard"} + } + }, + "ResponseCard":{ + "type":"structure", + "members":{ + "version":{"shape":"String"}, + "contentType":{"shape":"ContentType"}, + "genericAttachments":{"shape":"genericAttachmentList"} + } + }, + "String":{"type":"string"}, + "StringMap":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"String"} + }, + "StringUrlWithLength":{ + "type":"string", + "max":2048, + "min":1 + }, + "StringWithLength":{ + "type":"string", + "max":80, + "min":1 + }, + "Text":{ + "type":"string", + "max":1024, + "min":1 + }, + "UserId":{ + "type":"string", + "max":50, + "min":2, + "pattern":"[0-9a-zA-Z._:-]+" + }, + "genericAttachmentList":{ + "type":"list", + "member":{"shape":"GenericAttachment"}, + "max":10, + "min":0 + }, + "listOfButtons":{ + "type":"list", + "member":{"shape":"Button"}, + "max":5, + "min":0 + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/runtime.lex/2016-11-28/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/runtime.lex/2016-11-28/docs-2.json new file mode 100644 index 000000000..da3fc055b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/runtime.lex/2016-11-28/docs-2.json @@ -0,0 +1,189 @@ +{ + "version": "2.0", + "service": "

Amazon Lex provides both build and runtime endpoints. Each endpoint provides a set of operations (API). Your application uses the runtime API to understand user utterances (user input text or voice). For example, suppose user says \"I want pizza\", your application sends this input to Amazon Lex using the runtime API. Amazon Lex recognizes that the user request is for the OrderPizza intent (one of the intents defined in the application). Then Amazon Lex engages in user conversation on behalf of the application to elicit required information (slot values, such as pizza size and crust type), and then performs fulfillment activity (that you configured when you created the application). You use the build-time API to create and manage your Amazon Lex applications. For a list of build-time operations, see the build-time API. .

", + "operations": { + "PostText": "

Sends user input text to Amazon Lex at runtime. Amazon Lex uses the machine learning model that the service built for the application to interpret user input.

In response, Amazon Lex returns the next message to convey to the user (based on the context of the user interaction) and whether to expect a user response to the message (dialogState). For example, consider the following response messages:

  • \"What pizza toppings would you like?\" – In this case, the dialogState would be ElicitSlot (that is, a user response is expected).

  • \"Your order has been placed.\" – In this case, Amazon Lex returns one of the following dialogState values depending on how the intent fulfillment is configured (see fulfillmentActivity in CreateIntent):

    • FulFilled – The intent fulfillment is configured through a Lambda function.

    • ReadyForFulfilment – The intent's fulfillmentActivity is to simply return the intent data back to the client application.

" + }, + "shapes": { + "BadGatewayException": { + "base": "

Either the Amazon Lex bot is still building, or one of the dependent services (Amazon Polly, AWS Lambda) failed with an internal service error.

", + "refs": { + } + }, + "BadRequestException": { + "base": "

Request validation failed, there is no usable message in the context, or the bot build failed.

", + "refs": { + } + }, + "BotAlias": { + "base": null, + "refs": { + "PostTextRequest$botAlias": "

Alias of the Amazon Lex bot.

" + } + }, + "BotName": { + "base": null, + "refs": { + "PostTextRequest$botName": "

Name of the Amazon Lex bot.

" + } + }, + "Button": { + "base": "

Represents an option to be shown on the client platform (Facebook, Slack, etc.)

", + "refs": { + "listOfButtons$member": null + } + }, + "ButtonTextStringWithLength": { + "base": null, + "refs": { + "Button$text": "

Text visible to the user on the button.

" + } + }, + "ButtonValueStringWithLength": { + "base": null, + "refs": { + "Button$value": "

Value sent to Amazon Lex when user clicks the button. For example, consider button text \"NYC\". When the user clicks the button, the value sent can be \"New York City\".

" + } + }, + "ConflictException": { + "base": "

Two clients are using the same AWS account, Amazon Lex bot, and user ID.

", + "refs": { + } + }, + "ContentType": { + "base": null, + "refs": { + "ResponseCard$contentType": "

Content type of the response.

" + } + }, + "DependencyFailedException": { + "base": "

One of the downstream dependencies, such as AWS Lambda or Amazon Polly, threw an exception. For example, if Amazon Lex does not have sufficient permissions to call a Lambda function which results in AWS Lambda throwing an exception.

", + "refs": { + } + }, + "DialogState": { + "base": null, + "refs": { + "PostTextResponse$dialogState": "

Represents the message type to be conveyed to the user. For example:

  • ElicitIntent – Amazon Lex wants to elicit user intent. For example, Amazon Lex did not understand the first utterances such as \"I want to order pizza\", which indicates the OrderPizza intent. If Amazon Lex doesn't understand the intent, it returns this dialogState. Another example is when your intent is configured with a follow up prompt. For example, after OrderPizza intent is fulfilled, the intent might have a follow up prompt such as \" Do you want to order a drink or desert?\" In this case, Amazon Lex returns this dialogState.

  • ConfirmIntent – Amazon Lex is expecting a yes/no response from the user indicating whether to go ahead and fulfill the intent (for example, OK to go ahead and order the pizza). In addition to a yes/no reply, the user might provide a response with additional slot information (either new slot information or changes to the existing slot values). For example, \"Yes, but change to thick crust.\" Amazon Lex understands the additional information and updates the intent slots accordingly.

    Consider another example. Before fulfilling an order, your application might prompt for confirmation such as \"Do you want to place this pizza order?\" A user might reply with \"No, I want to order a drink.\" Amazon Lex recognizes the new OrderDrink intent.

  • ElicitSlot – Amazon Lex is expecting a value of a slot for the current intent. For example, suppose Amazon Lex asks, \"What size pizza would you like?\" A user might reply with \"Medium pepperoni pizza.\" Amazon Lex recognizes the size and the topping as the two separate slot values.

  • Fulfilled – Conveys that the Lambda function has successfully fulfilled the intent. If Lambda function returns a statement/message to convey the fulfillment result, Amazon Lex passes this string to the client. If not, Amazon Lex looks for conclusionStatement that you configured for the intent.

    If both the Lambda function statement and the conclusionStatement are missing, Amazon Lex throws a bad request exception.

  • ReadyForFulfillment – conveys that the client has to do the fulfillment work for the intent. This is the case when the current intent is configured with ReturnIntent as the fulfillmentActivity , where Amazon Lex returns this state to client.

  • Failed – Conversation with the user failed. Some of the reasons for this dialogState are: after the configured number of attempts the user didn't provide an appropriate response, or the Lambda function failed to fulfill an intent.

" + } + }, + "ErrorMessage": { + "base": null, + "refs": { + "BadGatewayException$Message": null, + "DependencyFailedException$Message": null, + "LoopDetectedException$Message": null + } + }, + "GenericAttachment": { + "base": "

Represents an option rendered to the user when a prompt is shown. It could be an image, a button, a link, or text.

", + "refs": { + "genericAttachmentList$member": null + } + }, + "IntentName": { + "base": null, + "refs": { + "PostTextResponse$intentName": "

Intent Amazon Lex inferred from the user input text. This is one of the intents configured for the bot.

" + } + }, + "InternalFailureException": { + "base": "

Internal service error. Retry the call.

", + "refs": { + } + }, + "LimitExceededException": { + "base": null, + "refs": { + } + }, + "LoopDetectedException": { + "base": "

Lambda fulfilment function returned DelegateDialogAction to Amazon Lex without changing any slot values.

", + "refs": { + } + }, + "NotFoundException": { + "base": "

Resource (such as the Amazon Lex bot or an alias) referred is not found.

", + "refs": { + } + }, + "PostTextRequest": { + "base": null, + "refs": { + } + }, + "PostTextResponse": { + "base": null, + "refs": { + } + }, + "ResponseCard": { + "base": "

If you configure a response card when creating your bots, Amazon Lex substitutes the session attributes and slot values available, and then returns it. The response card can also come from a Lambda function ( dialogCodeHook and fulfillmentActivity on an intent).

", + "refs": { + "PostTextResponse$responseCard": "

Represents the options that the user has to respond to the current prompt. Amazon Lex sends this in the response only if the dialogState value indicates that a user response is expected.

" + } + }, + "String": { + "base": null, + "refs": { + "BadRequestException$message": null, + "ConflictException$message": null, + "InternalFailureException$message": null, + "LimitExceededException$retryAfterSeconds": null, + "LimitExceededException$message": null, + "NotFoundException$message": null, + "PostTextResponse$slotToElicit": "

If dialogState value is ElicitSlot, returns the name of the slot for which Amazon Lex is eliciting a value.

", + "ResponseCard$version": "

Version of response card format.

", + "StringMap$key": null, + "StringMap$value": null + } + }, + "StringMap": { + "base": null, + "refs": { + "PostTextRequest$sessionAttributes": "

A session represents the dialog between a user and Amazon Lex. At runtime, a client application can pass contextual information (session attributes) in the request. For example, \"FirstName\" : \"Joe\". Amazon Lex passes these session attributes to the AWS Lambda functions configured for the intent (see dialogCodeHook and fulfillmentActivity.codeHook in CreateIntent).

In your Lambda function, you can use the session attributes for customization. Some examples are:

  • In a pizza ordering application, if you can pass user location as a session attribute (for example, \"Location\" : \"111 Maple street\"), your Lambda function might use this information to determine the closest pizzeria to place the order.

  • Use session attributes to personalize prompts. For example, you pass in user name as a session attribute (\"FirstName\" : \"Joe\"), you might configure subsequent prompts to refer to this attribute, as $session.FirstName\". At runtime, Amazon Lex substitutes a real value when it generates a prompt, such as \"Hello Joe, what would you like to order?\"

Amazon Lex does not persist session attributes.

If the intent is configured without a Lambda function to process the intent (that is, the client application to process the intent), Amazon Lex simply returns the session attributes back to the client application.

If the intent is configured with a Lambda function to process the intent, Amazon Lex passes the incoming session attributes to the Lambda function. The Lambda function must return these session attributes if you want Amazon Lex to return them back to the client.

", + "PostTextResponse$slots": "

Intent slots (name/value pairs) Amazon Lex detected so far from the user input in the conversation.

", + "PostTextResponse$sessionAttributes": "

Map of key value pairs representing the session specific context information.

" + } + }, + "StringUrlWithLength": { + "base": null, + "refs": { + "GenericAttachment$attachmentLinkUrl": null, + "GenericAttachment$imageUrl": "

URL of an image that is displayed to the user.

" + } + }, + "StringWithLength": { + "base": null, + "refs": { + "GenericAttachment$title": "

Title of the option.

", + "GenericAttachment$subTitle": "

Subtitle shown below the title.

" + } + }, + "Text": { + "base": null, + "refs": { + "PostTextRequest$inputText": "

Text user entered (Amazon Lex interprets this text).

", + "PostTextResponse$message": "

Prompt (or statement) to convey to the user. This is based on the application configuration and context. For example, if Amazon Lex did not understand the user intent, it sends the clarificationPrompt configured for the application. In another example, if the intent requires confirmation before taking the fulfillment action, it sends the confirmationPrompt. Suppose the Lambda function successfully fulfilled the intent, and sent a message to convey to the user. In that situation, Amazon Lex sends that message in the response.

" + } + }, + "UserId": { + "base": null, + "refs": { + "PostTextRequest$userId": "

User ID of your client application. Typically, each of your application users should have a unique ID. Note the following considerations:

  • If you want a user to start a conversation on one mobile device and continue the conversation on another device, you might choose a user-specific identifier, such as a login or Amazon Cognito user ID (assuming your application is using Amazon Cognito).

  • If you want the same user to be able to have two independent conversations on two different devices, you might choose a device-specific identifier, such as device ID, or some globally unique identifier.

" + } + }, + "genericAttachmentList": { + "base": null, + "refs": { + "ResponseCard$genericAttachments": "

An array of attachment objects representing options.

" + } + }, + "listOfButtons": { + "base": null, + "refs": { + "GenericAttachment$buttons": "

List of options to show to the user.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/runtime.lex/2016-11-28/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/runtime.lex/2016-11-28/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/runtime.lex/2016-11-28/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/runtime.lex/2016-11-28/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/runtime.lex/2016-11-28/paginators-1.json new file mode 100644 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/runtime.lex/2016-11-28/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/api-2.json index 862962cb3..9cec9dc55 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/api-2.json @@ -9,7 +9,8 @@ "serviceAbbreviation":"Amazon S3", "serviceFullName":"Amazon Simple Storage Service", "signatureVersion":"s3", - "timestampFormat":"rfc822" + "timestampFormat":"rfc822", + "uid":"s3-2006-03-01" }, "operations":{ "AbortMultipartUpload":{ @@ -84,6 +85,14 @@ "input":{"shape":"DeleteBucketRequest"}, "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketDELETE.html" }, + "DeleteBucketAnalyticsConfiguration":{ + "name":"DeleteBucketAnalyticsConfiguration", + "http":{ + "method":"DELETE", + "requestUri":"/{Bucket}?analytics" + }, + "input":{"shape":"DeleteBucketAnalyticsConfigurationRequest"} + }, "DeleteBucketCors":{ "name":"DeleteBucketCors", "http":{ @@ -93,6 +102,14 @@ "input":{"shape":"DeleteBucketCorsRequest"}, "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketDELETEcors.html" }, + "DeleteBucketInventoryConfiguration":{ + "name":"DeleteBucketInventoryConfiguration", + "http":{ + "method":"DELETE", + "requestUri":"/{Bucket}?inventory" + }, + "input":{"shape":"DeleteBucketInventoryConfigurationRequest"} + }, "DeleteBucketLifecycle":{ "name":"DeleteBucketLifecycle", "http":{ @@ -102,6 +119,14 @@ "input":{"shape":"DeleteBucketLifecycleRequest"}, "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketDELETElifecycle.html" }, + "DeleteBucketMetricsConfiguration":{ + "name":"DeleteBucketMetricsConfiguration", + "http":{ + "method":"DELETE", + "requestUri":"/{Bucket}?metrics" + }, + "input":{"shape":"DeleteBucketMetricsConfigurationRequest"} + }, "DeleteBucketPolicy":{ "name":"DeleteBucketPolicy", "http":{ @@ -147,6 +172,15 @@ "output":{"shape":"DeleteObjectOutput"}, "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectDELETE.html" }, + "DeleteObjectTagging":{ + "name":"DeleteObjectTagging", + "http":{ + "method":"DELETE", + "requestUri":"/{Bucket}/{Key+}?tagging" + }, + "input":{"shape":"DeleteObjectTaggingRequest"}, + "output":{"shape":"DeleteObjectTaggingOutput"} + }, "DeleteObjects":{ "name":"DeleteObjects", "http":{ @@ -177,6 +211,15 @@ "output":{"shape":"GetBucketAclOutput"}, "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETacl.html" }, + "GetBucketAnalyticsConfiguration":{ + "name":"GetBucketAnalyticsConfiguration", + "http":{ + "method":"GET", + "requestUri":"/{Bucket}?analytics" + }, + "input":{"shape":"GetBucketAnalyticsConfigurationRequest"}, + "output":{"shape":"GetBucketAnalyticsConfigurationOutput"} + }, "GetBucketCors":{ "name":"GetBucketCors", "http":{ @@ -187,6 +230,15 @@ "output":{"shape":"GetBucketCorsOutput"}, "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETcors.html" }, + "GetBucketInventoryConfiguration":{ + "name":"GetBucketInventoryConfiguration", + "http":{ + "method":"GET", + "requestUri":"/{Bucket}?inventory" + }, + "input":{"shape":"GetBucketInventoryConfigurationRequest"}, + "output":{"shape":"GetBucketInventoryConfigurationOutput"} + }, "GetBucketLifecycle":{ "name":"GetBucketLifecycle", "http":{ @@ -227,6 +279,15 @@ "output":{"shape":"GetBucketLoggingOutput"}, "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETlogging.html" }, + "GetBucketMetricsConfiguration":{ + "name":"GetBucketMetricsConfiguration", + "http":{ + "method":"GET", + "requestUri":"/{Bucket}?metrics" + }, + "input":{"shape":"GetBucketMetricsConfigurationRequest"}, + "output":{"shape":"GetBucketMetricsConfigurationOutput"} + }, "GetBucketNotification":{ "name":"GetBucketNotification", "http":{ @@ -332,6 +393,15 @@ ], "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectGETacl.html" }, + "GetObjectTagging":{ + "name":"GetObjectTagging", + "http":{ + "method":"GET", + "requestUri":"/{Bucket}/{Key+}?tagging" + }, + "input":{"shape":"GetObjectTaggingRequest"}, + "output":{"shape":"GetObjectTaggingOutput"} + }, "GetObjectTorrent":{ "name":"GetObjectTorrent", "http":{ @@ -367,6 +437,33 @@ ], "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectHEAD.html" }, + "ListBucketAnalyticsConfigurations":{ + "name":"ListBucketAnalyticsConfigurations", + "http":{ + "method":"GET", + "requestUri":"/{Bucket}?analytics" + }, + "input":{"shape":"ListBucketAnalyticsConfigurationsRequest"}, + "output":{"shape":"ListBucketAnalyticsConfigurationsOutput"} + }, + "ListBucketInventoryConfigurations":{ + "name":"ListBucketInventoryConfigurations", + "http":{ + "method":"GET", + "requestUri":"/{Bucket}?inventory" + }, + "input":{"shape":"ListBucketInventoryConfigurationsRequest"}, + "output":{"shape":"ListBucketInventoryConfigurationsOutput"} + }, + "ListBucketMetricsConfigurations":{ + "name":"ListBucketMetricsConfigurations", + "http":{ + "method":"GET", + "requestUri":"/{Bucket}?metrics" + }, + "input":{"shape":"ListBucketMetricsConfigurationsRequest"}, + "output":{"shape":"ListBucketMetricsConfigurationsOutput"} + }, "ListBuckets":{ "name":"ListBuckets", "http":{ @@ -451,6 +548,14 @@ "input":{"shape":"PutBucketAclRequest"}, "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTacl.html" }, + "PutBucketAnalyticsConfiguration":{ + "name":"PutBucketAnalyticsConfiguration", + "http":{ + "method":"PUT", + "requestUri":"/{Bucket}?analytics" + }, + "input":{"shape":"PutBucketAnalyticsConfigurationRequest"} + }, "PutBucketCors":{ "name":"PutBucketCors", "http":{ @@ -460,6 +565,14 @@ "input":{"shape":"PutBucketCorsRequest"}, "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTcors.html" }, + "PutBucketInventoryConfiguration":{ + "name":"PutBucketInventoryConfiguration", + "http":{ + "method":"PUT", + "requestUri":"/{Bucket}?inventory" + }, + "input":{"shape":"PutBucketInventoryConfigurationRequest"} + }, "PutBucketLifecycle":{ "name":"PutBucketLifecycle", "http":{ @@ -487,6 +600,14 @@ "input":{"shape":"PutBucketLoggingRequest"}, "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTlogging.html" }, + "PutBucketMetricsConfiguration":{ + "name":"PutBucketMetricsConfiguration", + "http":{ + "method":"PUT", + "requestUri":"/{Bucket}?metrics" + }, + "input":{"shape":"PutBucketMetricsConfigurationRequest"} + }, "PutBucketNotification":{ "name":"PutBucketNotification", "http":{ @@ -581,6 +702,15 @@ ], "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectPUTacl.html" }, + "PutObjectTagging":{ + "name":"PutObjectTagging", + "http":{ + "method":"PUT", + "requestUri":"/{Bucket}/{Key+}?tagging" + }, + "input":{"shape":"PutObjectTaggingRequest"}, + "output":{"shape":"PutObjectTaggingOutput"} + }, "RestoreObject":{ "name":"RestoreObject", "http":{ @@ -682,6 +812,7 @@ "Owner":{"shape":"Owner"} } }, + "AccountId":{"type":"string"}, "AllowedHeader":{"type":"string"}, "AllowedHeaders":{ "type":"list", @@ -700,6 +831,67 @@ "member":{"shape":"AllowedOrigin"}, "flattened":true }, + "AnalyticsAndOperator":{ + "type":"structure", + "members":{ + "Prefix":{"shape":"Prefix"}, + "Tags":{ + "shape":"TagSet", + "flattened":true, + "locationName":"Tag" + } + } + }, + "AnalyticsConfiguration":{ + "type":"structure", + "required":[ + "Id", + "StorageClassAnalysis" + ], + "members":{ + "Id":{"shape":"AnalyticsId"}, + "Filter":{"shape":"AnalyticsFilter"}, + "StorageClassAnalysis":{"shape":"StorageClassAnalysis"} + } + }, + "AnalyticsConfigurationList":{ + "type":"list", + "member":{"shape":"AnalyticsConfiguration"}, + "flattened":true + }, + "AnalyticsExportDestination":{ + "type":"structure", + "required":["S3BucketDestination"], + "members":{ + "S3BucketDestination":{"shape":"AnalyticsS3BucketDestination"} + } + }, + "AnalyticsFilter":{ + "type":"structure", + "members":{ + "Prefix":{"shape":"Prefix"}, + "Tag":{"shape":"Tag"}, + "And":{"shape":"AnalyticsAndOperator"} + } + }, + "AnalyticsId":{"type":"string"}, + "AnalyticsS3BucketDestination":{ + "type":"structure", + "required":[ + "Format", + "Bucket" + ], + "members":{ + "Format":{"shape":"AnalyticsS3ExportFileFormat"}, + "BucketAccountId":{"shape":"AccountId"}, + "Bucket":{"shape":"BucketName"}, + "Prefix":{"shape":"Prefix"} + } + }, + "AnalyticsS3ExportFileFormat":{ + "type":"string", + "enum":["CSV"] + }, "Body":{"type":"blob"}, "Bucket":{ "type":"structure", @@ -1123,6 +1315,11 @@ "location":"header", "locationName":"x-amz-metadata-directive" }, + "TaggingDirective":{ + "shape":"TaggingDirective", + "location":"header", + "locationName":"x-amz-tagging-directive" + }, "ServerSideEncryption":{ "shape":"ServerSideEncryption", "location":"header", @@ -1177,6 +1374,11 @@ "shape":"RequestPayer", "location":"header", "locationName":"x-amz-request-payer" + }, + "Tagging":{ + "shape":"TaggingHeader", + "location":"header", + "locationName":"x-amz-tagging" } } }, @@ -1456,6 +1658,25 @@ "Quiet":{"shape":"Quiet"} } }, + "DeleteBucketAnalyticsConfigurationRequest":{ + "type":"structure", + "required":[ + "Bucket", + "Id" + ], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + }, + "Id":{ + "shape":"AnalyticsId", + "location":"querystring", + "locationName":"id" + } + } + }, "DeleteBucketCorsRequest":{ "type":"structure", "required":["Bucket"], @@ -1467,6 +1688,25 @@ } } }, + "DeleteBucketInventoryConfigurationRequest":{ + "type":"structure", + "required":[ + "Bucket", + "Id" + ], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + }, + "Id":{ + "shape":"InventoryId", + "location":"querystring", + "locationName":"id" + } + } + }, "DeleteBucketLifecycleRequest":{ "type":"structure", "required":["Bucket"], @@ -1478,6 +1718,25 @@ } } }, + "DeleteBucketMetricsConfigurationRequest":{ + "type":"structure", + "required":[ + "Bucket", + "Id" + ], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + }, + "Id":{ + "shape":"MetricsId", + "location":"querystring", + "locationName":"id" + } + } + }, "DeleteBucketPolicyRequest":{ "type":"structure", "required":["Bucket"], @@ -1604,6 +1863,40 @@ } } }, + "DeleteObjectTaggingOutput":{ + "type":"structure", + "members":{ + "VersionId":{ + "shape":"ObjectVersionId", + "location":"header", + "locationName":"x-amz-version-id" + } + } + }, + "DeleteObjectTaggingRequest":{ + "type":"structure", + "required":[ + "Bucket", + "Key" + ], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + }, + "Key":{ + "shape":"ObjectKey", + "location":"uri", + "locationName":"Key" + }, + "VersionId":{ + "shape":"ObjectVersionId", + "location":"querystring", + "locationName":"versionId" + } + } + }, "DeleteObjectsOutput":{ "type":"structure", "members":{ @@ -1794,6 +2087,32 @@ } } }, + "GetBucketAnalyticsConfigurationOutput":{ + "type":"structure", + "members":{ + "AnalyticsConfiguration":{"shape":"AnalyticsConfiguration"} + }, + "payload":"AnalyticsConfiguration" + }, + "GetBucketAnalyticsConfigurationRequest":{ + "type":"structure", + "required":[ + "Bucket", + "Id" + ], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + }, + "Id":{ + "shape":"AnalyticsId", + "location":"querystring", + "locationName":"id" + } + } + }, "GetBucketCorsOutput":{ "type":"structure", "members":{ @@ -1814,6 +2133,32 @@ } } }, + "GetBucketInventoryConfigurationOutput":{ + "type":"structure", + "members":{ + "InventoryConfiguration":{"shape":"InventoryConfiguration"} + }, + "payload":"InventoryConfiguration" + }, + "GetBucketInventoryConfigurationRequest":{ + "type":"structure", + "required":[ + "Bucket", + "Id" + ], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + }, + "Id":{ + "shape":"InventoryId", + "location":"querystring", + "locationName":"id" + } + } + }, "GetBucketLifecycleConfigurationOutput":{ "type":"structure", "members":{ @@ -1888,6 +2233,32 @@ } } }, + "GetBucketMetricsConfigurationOutput":{ + "type":"structure", + "members":{ + "MetricsConfiguration":{"shape":"MetricsConfiguration"} + }, + "payload":"MetricsConfiguration" + }, + "GetBucketMetricsConfigurationRequest":{ + "type":"structure", + "required":[ + "Bucket", + "Id" + ], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + }, + "Id":{ + "shape":"MetricsId", + "location":"querystring", + "locationName":"id" + } + } + }, "GetBucketNotificationConfigurationRequest":{ "type":"structure", "required":["Bucket"], @@ -2191,6 +2562,11 @@ "shape":"PartsCount", "location":"header", "locationName":"x-amz-mp-parts-count" + }, + "TagCount":{ + "shape":"TagCount", + "location":"header", + "locationName":"x-amz-tagging-count" } }, "payload":"Body" @@ -2299,22 +2675,19 @@ } } }, - "GetObjectTorrentOutput":{ + "GetObjectTaggingOutput":{ "type":"structure", + "required":["TagSet"], "members":{ - "Body":{ - "shape":"Body", - "streaming":true - }, - "RequestCharged":{ - "shape":"RequestCharged", + "VersionId":{ + "shape":"ObjectVersionId", "location":"header", - "locationName":"x-amz-request-charged" - } - }, - "payload":"Body" + "locationName":"x-amz-version-id" + }, + "TagSet":{"shape":"TagSet"} + } }, - "GetObjectTorrentRequest":{ + "GetObjectTaggingRequest":{ "type":"structure", "required":[ "Bucket", @@ -2331,13 +2704,59 @@ "location":"uri", "locationName":"Key" }, - "RequestPayer":{ - "shape":"RequestPayer", - "location":"header", - "locationName":"x-amz-request-payer" + "VersionId":{ + "shape":"ObjectVersionId", + "location":"querystring", + "locationName":"versionId" } } }, + "GetObjectTorrentOutput":{ + "type":"structure", + "members":{ + "Body":{ + "shape":"Body", + "streaming":true + }, + "RequestCharged":{ + "shape":"RequestCharged", + "location":"header", + "locationName":"x-amz-request-charged" + } + }, + "payload":"Body" + }, + "GetObjectTorrentRequest":{ + "type":"structure", + "required":[ + "Bucket", + "Key" + ], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + }, + "Key":{ + "shape":"ObjectKey", + "location":"uri", + "locationName":"Key" + }, + "RequestPayer":{ + "shape":"RequestPayer", + "location":"header", + "locationName":"x-amz-request-payer" + } + } + }, + "GlacierJobParameters":{ + "type":"structure", + "required":["Tier"], + "members":{ + "Tier":{"shape":"Tier"} + } + }, "Grant":{ "type":"structure", "members":{ @@ -2614,6 +3033,102 @@ "DisplayName":{"shape":"DisplayName"} } }, + "InventoryConfiguration":{ + "type":"structure", + "required":[ + "Destination", + "IsEnabled", + "Id", + "IncludedObjectVersions", + "Schedule" + ], + "members":{ + "Destination":{"shape":"InventoryDestination"}, + "IsEnabled":{"shape":"IsEnabled"}, + "Filter":{"shape":"InventoryFilter"}, + "Id":{"shape":"InventoryId"}, + "IncludedObjectVersions":{"shape":"InventoryIncludedObjectVersions"}, + "OptionalFields":{"shape":"InventoryOptionalFields"}, + "Schedule":{"shape":"InventorySchedule"} + } + }, + "InventoryConfigurationList":{ + "type":"list", + "member":{"shape":"InventoryConfiguration"}, + "flattened":true + }, + "InventoryDestination":{ + "type":"structure", + "required":["S3BucketDestination"], + "members":{ + "S3BucketDestination":{"shape":"InventoryS3BucketDestination"} + } + }, + "InventoryFilter":{ + "type":"structure", + "required":["Prefix"], + "members":{ + "Prefix":{"shape":"Prefix"} + } + }, + "InventoryFormat":{ + "type":"string", + "enum":["CSV"] + }, + "InventoryFrequency":{ + "type":"string", + "enum":[ + "Daily", + "Weekly" + ] + }, + "InventoryId":{"type":"string"}, + "InventoryIncludedObjectVersions":{ + "type":"string", + "enum":[ + "All", + "Current" + ] + }, + "InventoryOptionalField":{ + "type":"string", + "enum":[ + "Size", + "LastModifiedDate", + "StorageClass", + "ETag", + "IsMultipartUploaded", + "ReplicationStatus" + ] + }, + "InventoryOptionalFields":{ + "type":"list", + "member":{ + "shape":"InventoryOptionalField", + "locationName":"Field" + } + }, + "InventoryS3BucketDestination":{ + "type":"structure", + "required":[ + "Bucket", + "Format" + ], + "members":{ + "AccountId":{"shape":"AccountId"}, + "Bucket":{"shape":"BucketName"}, + "Format":{"shape":"InventoryFormat"}, + "Prefix":{"shape":"Prefix"} + } + }, + "InventorySchedule":{ + "type":"structure", + "required":["Frequency"], + "members":{ + "Frequency":{"shape":"InventoryFrequency"} + } + }, + "IsEnabled":{"type":"boolean"}, "IsLatest":{"type":"boolean"}, "IsTruncated":{"type":"boolean"}, "KeyCount":{"type":"integer"}, @@ -2665,14 +3180,15 @@ }, "LifecycleRule":{ "type":"structure", - "required":[ - "Prefix", - "Status" - ], + "required":["Status"], "members":{ "Expiration":{"shape":"LifecycleExpiration"}, "ID":{"shape":"ID"}, - "Prefix":{"shape":"Prefix"}, + "Prefix":{ + "shape":"Prefix", + "deprecated":true + }, + "Filter":{"shape":"LifecycleRuleFilter"}, "Status":{"shape":"ExpirationStatus"}, "Transitions":{ "shape":"TransitionList", @@ -2686,11 +3202,114 @@ "AbortIncompleteMultipartUpload":{"shape":"AbortIncompleteMultipartUpload"} } }, + "LifecycleRuleAndOperator":{ + "type":"structure", + "members":{ + "Prefix":{"shape":"Prefix"}, + "Tags":{ + "shape":"TagSet", + "flattened":true, + "locationName":"Tag" + } + } + }, + "LifecycleRuleFilter":{ + "type":"structure", + "members":{ + "Prefix":{"shape":"Prefix"}, + "Tag":{"shape":"Tag"}, + "And":{"shape":"LifecycleRuleAndOperator"} + } + }, "LifecycleRules":{ "type":"list", "member":{"shape":"LifecycleRule"}, "flattened":true }, + "ListBucketAnalyticsConfigurationsOutput":{ + "type":"structure", + "members":{ + "IsTruncated":{"shape":"IsTruncated"}, + "ContinuationToken":{"shape":"Token"}, + "NextContinuationToken":{"shape":"NextToken"}, + "AnalyticsConfigurationList":{ + "shape":"AnalyticsConfigurationList", + "locationName":"AnalyticsConfiguration" + } + } + }, + "ListBucketAnalyticsConfigurationsRequest":{ + "type":"structure", + "required":["Bucket"], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + }, + "ContinuationToken":{ + "shape":"Token", + "location":"querystring", + "locationName":"continuation-token" + } + } + }, + "ListBucketInventoryConfigurationsOutput":{ + "type":"structure", + "members":{ + "ContinuationToken":{"shape":"Token"}, + "InventoryConfigurationList":{ + "shape":"InventoryConfigurationList", + "locationName":"InventoryConfiguration" + }, + "IsTruncated":{"shape":"IsTruncated"}, + "NextContinuationToken":{"shape":"NextToken"} + } + }, + "ListBucketInventoryConfigurationsRequest":{ + "type":"structure", + "required":["Bucket"], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + }, + "ContinuationToken":{ + "shape":"Token", + "location":"querystring", + "locationName":"continuation-token" + } + } + }, + "ListBucketMetricsConfigurationsOutput":{ + "type":"structure", + "members":{ + "IsTruncated":{"shape":"IsTruncated"}, + "ContinuationToken":{"shape":"Token"}, + "NextContinuationToken":{"shape":"NextToken"}, + "MetricsConfigurationList":{ + "shape":"MetricsConfigurationList", + "locationName":"MetricsConfiguration" + } + } + }, + "ListBucketMetricsConfigurationsRequest":{ + "type":"structure", + "required":["Bucket"], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + }, + "ContinuationToken":{ + "shape":"Token", + "location":"querystring", + "locationName":"continuation-token" + } + } + }, "ListBucketsOutput":{ "type":"structure", "members":{ @@ -3066,6 +3685,39 @@ }, "MetadataKey":{"type":"string"}, "MetadataValue":{"type":"string"}, + "MetricsAndOperator":{ + "type":"structure", + "members":{ + "Prefix":{"shape":"Prefix"}, + "Tags":{ + "shape":"TagSet", + "flattened":true, + "locationName":"Tag" + } + } + }, + "MetricsConfiguration":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{"shape":"MetricsId"}, + "Filter":{"shape":"MetricsFilter"} + } + }, + "MetricsConfigurationList":{ + "type":"list", + "member":{"shape":"MetricsConfiguration"}, + "flattened":true + }, + "MetricsFilter":{ + "type":"structure", + "members":{ + "Prefix":{"shape":"Prefix"}, + "Tag":{"shape":"Tag"}, + "And":{"shape":"MetricsAndOperator"} + } + }, + "MetricsId":{"type":"string"}, "MissingMeta":{"type":"integer"}, "MultipartUpload":{ "type":"structure", @@ -3371,6 +4023,32 @@ }, "payload":"AccessControlPolicy" }, + "PutBucketAnalyticsConfigurationRequest":{ + "type":"structure", + "required":[ + "Bucket", + "Id", + "AnalyticsConfiguration" + ], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + }, + "Id":{ + "shape":"AnalyticsId", + "location":"querystring", + "locationName":"id" + }, + "AnalyticsConfiguration":{ + "shape":"AnalyticsConfiguration", + "locationName":"AnalyticsConfiguration", + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + } + }, + "payload":"AnalyticsConfiguration" + }, "PutBucketCorsRequest":{ "type":"structure", "required":[ @@ -3396,6 +4074,32 @@ }, "payload":"CORSConfiguration" }, + "PutBucketInventoryConfigurationRequest":{ + "type":"structure", + "required":[ + "Bucket", + "Id", + "InventoryConfiguration" + ], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + }, + "Id":{ + "shape":"InventoryId", + "location":"querystring", + "locationName":"id" + }, + "InventoryConfiguration":{ + "shape":"InventoryConfiguration", + "locationName":"InventoryConfiguration", + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + } + }, + "payload":"InventoryConfiguration" + }, "PutBucketLifecycleConfigurationRequest":{ "type":"structure", "required":["Bucket"], @@ -3460,6 +4164,32 @@ }, "payload":"BucketLoggingStatus" }, + "PutBucketMetricsConfigurationRequest":{ + "type":"structure", + "required":[ + "Bucket", + "Id", + "MetricsConfiguration" + ], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + }, + "Id":{ + "shape":"MetricsId", + "location":"querystring", + "locationName":"id" + }, + "MetricsConfiguration":{ + "shape":"MetricsConfiguration", + "locationName":"MetricsConfiguration", + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + } + }, + "payload":"MetricsConfiguration" + }, "PutBucketNotificationConfigurationRequest":{ "type":"structure", "required":[ @@ -3911,10 +4641,61 @@ "shape":"RequestPayer", "location":"header", "locationName":"x-amz-request-payer" + }, + "Tagging":{ + "shape":"TaggingHeader", + "location":"header", + "locationName":"x-amz-tagging" } }, "payload":"Body" }, + "PutObjectTaggingOutput":{ + "type":"structure", + "members":{ + "VersionId":{ + "shape":"ObjectVersionId", + "location":"header", + "locationName":"x-amz-version-id" + } + } + }, + "PutObjectTaggingRequest":{ + "type":"structure", + "required":[ + "Bucket", + "Key", + "Tagging" + ], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + }, + "Key":{ + "shape":"ObjectKey", + "location":"uri", + "locationName":"Key" + }, + "VersionId":{ + "shape":"ObjectVersionId", + "location":"querystring", + "locationName":"versionId" + }, + "ContentMD5":{ + "shape":"ContentMD5", + "location":"header", + "locationName":"Content-MD5" + }, + "Tagging":{ + "shape":"Tagging", + "locationName":"Tagging", + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + } + }, + "payload":"Tagging" + }, "QueueArn":{"type":"string"}, "QueueConfiguration":{ "type":"structure", @@ -4097,7 +4878,8 @@ "type":"structure", "required":["Days"], "members":{ - "Days":{"shape":"Days"} + "Days":{"shape":"Days"}, + "GlacierJobParameters":{"shape":"GlacierJobParameters"} } }, "Role":{"type":"string"}, @@ -4174,6 +4956,27 @@ "STANDARD_IA" ] }, + "StorageClassAnalysis":{ + "type":"structure", + "members":{ + "DataExport":{"shape":"StorageClassAnalysisDataExport"} + } + }, + "StorageClassAnalysisDataExport":{ + "type":"structure", + "required":[ + "OutputSchemaVersion", + "Destination" + ], + "members":{ + "OutputSchemaVersion":{"shape":"StorageClassAnalysisSchemaVersion"}, + "Destination":{"shape":"AnalyticsExportDestination"} + } + }, + "StorageClassAnalysisSchemaVersion":{ + "type":"string", + "enum":["V_1"] + }, "Suffix":{"type":"string"}, "Tag":{ "type":"structure", @@ -4186,6 +4989,7 @@ "Value":{"shape":"Value"} } }, + "TagCount":{"type":"integer"}, "TagSet":{ "type":"list", "member":{ @@ -4200,6 +5004,14 @@ "TagSet":{"shape":"TagSet"} } }, + "TaggingDirective":{ + "type":"string", + "enum":[ + "COPY", + "REPLACE" + ] + }, + "TaggingHeader":{"type":"string"}, "TargetBucket":{"type":"string"}, "TargetGrant":{ "type":"structure", @@ -4216,6 +5028,14 @@ } }, "TargetPrefix":{"type":"string"}, + "Tier":{ + "type":"string", + "enum":[ + "Standard", + "Bulk", + "Expedited" + ] + }, "Token":{"type":"string"}, "TopicArn":{"type":"string"}, "TopicConfiguration":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/docs-2.json index 1dc4eb04b..59a39d242 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/docs-2.json @@ -8,21 +8,28 @@ "CreateBucket": "Creates a new bucket.", "CreateMultipartUpload": "

Initiates a multipart upload and returns an upload ID.

Note: After you initiate multipart upload and upload one or more parts, you must either complete or abort multipart upload in order to stop getting charged for storage of the uploaded parts. Only after you either complete or abort multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts storage.

", "DeleteBucket": "Deletes the bucket. All objects (including all object versions and Delete Markers) in the bucket must be deleted before the bucket itself can be deleted.", + "DeleteBucketAnalyticsConfiguration": "Deletes an analytics configuration for the bucket (specified by the analytics configuration ID).", "DeleteBucketCors": "Deletes the cors configuration information set for the bucket.", + "DeleteBucketInventoryConfiguration": "Deletes an inventory configuration (identified by the inventory ID) from the bucket.", "DeleteBucketLifecycle": "Deletes the lifecycle configuration from the bucket.", + "DeleteBucketMetricsConfiguration": "Deletes a metrics configuration (specified by the metrics configuration ID) from the bucket.", "DeleteBucketPolicy": "Deletes the policy from the bucket.", "DeleteBucketReplication": "Deletes the replication configuration from the bucket.", "DeleteBucketTagging": "Deletes the tags from the bucket.", "DeleteBucketWebsite": "This operation removes the website configuration from the bucket.", "DeleteObject": "Removes the null version (if there is one) of an object and inserts a delete marker, which becomes the latest version of the object. If there isn't a null version, Amazon S3 does not remove any objects.", + "DeleteObjectTagging": "Removes the tag-set from an existing object.", "DeleteObjects": "This operation enables you to delete multiple objects from a bucket using a single HTTP request. You may specify up to 1000 keys.", "GetBucketAccelerateConfiguration": "Returns the accelerate configuration of a bucket.", "GetBucketAcl": "Gets the access control policy for the bucket.", + "GetBucketAnalyticsConfiguration": "Gets an analytics configuration for the bucket (specified by the analytics configuration ID).", "GetBucketCors": "Returns the cors configuration for the bucket.", + "GetBucketInventoryConfiguration": "Returns an inventory configuration (identified by the inventory ID) from the bucket.", "GetBucketLifecycle": "Deprecated, see the GetBucketLifecycleConfiguration operation.", "GetBucketLifecycleConfiguration": "Returns the lifecycle configuration information set on the bucket.", "GetBucketLocation": "Returns the region the bucket resides in.", "GetBucketLogging": "Returns the logging status of a bucket and the permissions users have to view and modify that status. To use GET, you must be the bucket owner.", + "GetBucketMetricsConfiguration": "Gets a metrics configuration (specified by the metrics configuration ID) from the bucket.", "GetBucketNotification": "Deprecated, see the GetBucketNotificationConfiguration operation.", "GetBucketNotificationConfiguration": "Returns the notification configuration of a bucket.", "GetBucketPolicy": "Returns the policy of a specified bucket.", @@ -33,9 +40,13 @@ "GetBucketWebsite": "Returns the website configuration for a bucket.", "GetObject": "Retrieves objects from Amazon S3.", "GetObjectAcl": "Returns the access control list (ACL) of an object.", + "GetObjectTagging": "Returns the tag-set of an object.", "GetObjectTorrent": "Return torrent files from a bucket.", "HeadBucket": "This operation is useful to determine if a bucket exists and you have permission to access it.", "HeadObject": "The HEAD operation retrieves metadata from an object without returning the object itself. This operation is useful if you're only interested in an object's metadata. To use HEAD, you must have READ access to the object.", + "ListBucketAnalyticsConfigurations": "Lists the analytics configurations for the bucket.", + "ListBucketInventoryConfigurations": "Returns a list of inventory configurations for the bucket.", + "ListBucketMetricsConfigurations": "Lists the metrics configurations for the bucket.", "ListBuckets": "Returns a list of all buckets owned by the authenticated sender of the request.", "ListMultipartUploads": "This operation lists in-progress multipart uploads.", "ListObjectVersions": "Returns metadata about all of the versions of objects in a bucket.", @@ -44,10 +55,13 @@ "ListParts": "Lists the parts that have been uploaded for a specific multipart upload.", "PutBucketAccelerateConfiguration": "Sets the accelerate configuration of an existing bucket.", "PutBucketAcl": "Sets the permissions on a bucket using access control lists (ACL).", + "PutBucketAnalyticsConfiguration": "Sets an analytics configuration for the bucket (specified by the analytics configuration ID).", "PutBucketCors": "Sets the cors configuration for a bucket.", + "PutBucketInventoryConfiguration": "Adds an inventory configuration (identified by the inventory ID) from the bucket.", "PutBucketLifecycle": "Deprecated, see the PutBucketLifecycleConfiguration operation.", "PutBucketLifecycleConfiguration": "Sets lifecycle configuration for your bucket. If a lifecycle configuration exists, it replaces it.", "PutBucketLogging": "Set the logging parameters for a bucket and to specify permissions for who can view and modify the logging parameters. To set the logging status of a bucket, you must be the bucket owner.", + "PutBucketMetricsConfiguration": "Sets a metrics configuration (specified by the metrics configuration ID) for the bucket.", "PutBucketNotification": "Deprecated, see the PutBucketNotificationConfiguraiton operation.", "PutBucketNotificationConfiguration": "Enables notifications of specified events for a bucket.", "PutBucketPolicy": "Replaces a policy on a bucket. If the bucket already has a policy, the one in this request completely replaces it.", @@ -58,6 +72,7 @@ "PutBucketWebsite": "Set the website configuration for a bucket.", "PutObject": "Adds an object to a bucket.", "PutObjectAcl": "uses the acl subresource to set the access control list (ACL) permissions for an object that already exists in a bucket", + "PutObjectTagging": "Sets the supplied tag-set to an object that already exists in a bucket", "RestoreObject": "Restores an archived copy of an object back into Amazon S3", "UploadPart": "

Uploads a part in a multipart upload.

Note: After you initiate multipart upload and upload one or more parts, you must either complete or abort multipart upload in order to stop getting charged for storage of the uploaded parts. Only after you either complete or abort multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts storage.

", "UploadPartCopy": "Uploads a part by copying data from an existing object as data source." @@ -114,6 +129,13 @@ "PutObjectAclRequest$AccessControlPolicy": null } }, + "AccountId": { + "base": null, + "refs": { + "AnalyticsS3BucketDestination$BucketAccountId": "The account ID that owns the destination bucket. If no account ID is provided, the owner will not be validated prior to exporting data.", + "InventoryS3BucketDestination$AccountId": "The ID of the account that owns the destination bucket." + } + }, "AllowedHeader": { "base": null, "refs": { @@ -150,6 +172,59 @@ "CORSRule$AllowedOrigins": "One or more origins you want customers to be able to access the bucket from." } }, + "AnalyticsAndOperator": { + "base": null, + "refs": { + "AnalyticsFilter$And": "A conjunction (logical AND) of predicates, which is used in evaluating an analytics filter. The operator must have at least two predicates." + } + }, + "AnalyticsConfiguration": { + "base": null, + "refs": { + "AnalyticsConfigurationList$member": null, + "GetBucketAnalyticsConfigurationOutput$AnalyticsConfiguration": "The configuration and any analyses for the analytics filter.", + "PutBucketAnalyticsConfigurationRequest$AnalyticsConfiguration": "The configuration and any analyses for the analytics filter." + } + }, + "AnalyticsConfigurationList": { + "base": null, + "refs": { + "ListBucketAnalyticsConfigurationsOutput$AnalyticsConfigurationList": "The list of analytics configurations for a bucket." + } + }, + "AnalyticsExportDestination": { + "base": null, + "refs": { + "StorageClassAnalysisDataExport$Destination": "The place to store the data for an analysis." + } + }, + "AnalyticsFilter": { + "base": null, + "refs": { + "AnalyticsConfiguration$Filter": "The filter used to describe a set of objects for analyses. A filter must have exactly one prefix, one tag, or one conjunction (AnalyticsAndOperator). If no filter is provided, all objects will be considered in any analysis." + } + }, + "AnalyticsId": { + "base": null, + "refs": { + "AnalyticsConfiguration$Id": "The identifier used to represent an analytics configuration.", + "DeleteBucketAnalyticsConfigurationRequest$Id": "The identifier used to represent an analytics configuration.", + "GetBucketAnalyticsConfigurationRequest$Id": "The identifier used to represent an analytics configuration.", + "PutBucketAnalyticsConfigurationRequest$Id": "The identifier used to represent an analytics configuration." + } + }, + "AnalyticsS3BucketDestination": { + "base": null, + "refs": { + "AnalyticsExportDestination$S3BucketDestination": "A destination signifying output to an S3 bucket." + } + }, + "AnalyticsS3ExportFileFormat": { + "base": null, + "refs": { + "AnalyticsS3BucketDestination$Format": "The file format used when exporting data to Amazon S3." + } + }, "Body": { "base": null, "refs": { @@ -218,6 +293,7 @@ "base": null, "refs": { "AbortMultipartUploadRequest$Bucket": null, + "AnalyticsS3BucketDestination$Bucket": "The Amazon resource name (ARN) of the bucket to which data is exported.", "Bucket$Name": "The name of the bucket.", "CompleteMultipartUploadOutput$Bucket": null, "CompleteMultipartUploadRequest$Bucket": null, @@ -225,23 +301,30 @@ "CreateBucketRequest$Bucket": null, "CreateMultipartUploadOutput$Bucket": "Name of the bucket to which the multipart upload was initiated.", "CreateMultipartUploadRequest$Bucket": null, + "DeleteBucketAnalyticsConfigurationRequest$Bucket": "The name of the bucket from which an analytics configuration is deleted.", "DeleteBucketCorsRequest$Bucket": null, + "DeleteBucketInventoryConfigurationRequest$Bucket": "The name of the bucket containing the inventory configuration to delete.", "DeleteBucketLifecycleRequest$Bucket": null, + "DeleteBucketMetricsConfigurationRequest$Bucket": "The name of the bucket containing the metrics configuration to delete.", "DeleteBucketPolicyRequest$Bucket": null, "DeleteBucketReplicationRequest$Bucket": null, "DeleteBucketRequest$Bucket": null, "DeleteBucketTaggingRequest$Bucket": null, "DeleteBucketWebsiteRequest$Bucket": null, "DeleteObjectRequest$Bucket": null, + "DeleteObjectTaggingRequest$Bucket": null, "DeleteObjectsRequest$Bucket": null, "Destination$Bucket": "Amazon resource name (ARN) of the bucket where you want Amazon S3 to store replicas of the object identified by the rule.", "GetBucketAccelerateConfigurationRequest$Bucket": "Name of the bucket for which the accelerate configuration is retrieved.", "GetBucketAclRequest$Bucket": null, + "GetBucketAnalyticsConfigurationRequest$Bucket": "The name of the bucket from which an analytics configuration is retrieved.", "GetBucketCorsRequest$Bucket": null, + "GetBucketInventoryConfigurationRequest$Bucket": "The name of the bucket containing the inventory configuration to retrieve.", "GetBucketLifecycleConfigurationRequest$Bucket": null, "GetBucketLifecycleRequest$Bucket": null, "GetBucketLocationRequest$Bucket": null, "GetBucketLoggingRequest$Bucket": null, + "GetBucketMetricsConfigurationRequest$Bucket": "The name of the bucket containing the metrics configuration to retrieve.", "GetBucketNotificationConfigurationRequest$Bucket": "Name of the bucket to get the notification configuration for.", "GetBucketPolicyRequest$Bucket": null, "GetBucketReplicationRequest$Bucket": null, @@ -251,9 +334,14 @@ "GetBucketWebsiteRequest$Bucket": null, "GetObjectAclRequest$Bucket": null, "GetObjectRequest$Bucket": null, + "GetObjectTaggingRequest$Bucket": null, "GetObjectTorrentRequest$Bucket": null, "HeadBucketRequest$Bucket": null, "HeadObjectRequest$Bucket": null, + "InventoryS3BucketDestination$Bucket": "The Amazon resource name (ARN) of the bucket where inventory results will be published.", + "ListBucketAnalyticsConfigurationsRequest$Bucket": "The name of the bucket from which analytics configurations are retrieved.", + "ListBucketInventoryConfigurationsRequest$Bucket": "The name of the bucket containing the inventory configurations to retrieve.", + "ListBucketMetricsConfigurationsRequest$Bucket": "The name of the bucket containing the metrics configurations to retrieve.", "ListMultipartUploadsOutput$Bucket": "Name of the bucket to which the multipart upload was initiated.", "ListMultipartUploadsRequest$Bucket": null, "ListObjectVersionsOutput$Name": null, @@ -266,10 +354,13 @@ "ListPartsRequest$Bucket": null, "PutBucketAccelerateConfigurationRequest$Bucket": "Name of the bucket for which the accelerate configuration is set.", "PutBucketAclRequest$Bucket": null, + "PutBucketAnalyticsConfigurationRequest$Bucket": "The name of the bucket to which an analytics configuration is stored.", "PutBucketCorsRequest$Bucket": null, + "PutBucketInventoryConfigurationRequest$Bucket": "The name of the bucket where the inventory configuration will be stored.", "PutBucketLifecycleConfigurationRequest$Bucket": null, "PutBucketLifecycleRequest$Bucket": null, "PutBucketLoggingRequest$Bucket": null, + "PutBucketMetricsConfigurationRequest$Bucket": "The name of the bucket for which the metrics configuration is set.", "PutBucketNotificationConfigurationRequest$Bucket": null, "PutBucketNotificationRequest$Bucket": null, "PutBucketPolicyRequest$Bucket": null, @@ -280,6 +371,7 @@ "PutBucketWebsiteRequest$Bucket": null, "PutObjectAclRequest$Bucket": null, "PutObjectRequest$Bucket": "Name of the bucket to which the PUT operation was initiated.", + "PutObjectTaggingRequest$Bucket": null, "RestoreObjectRequest$Bucket": null, "UploadPartCopyRequest$Bucket": null, "UploadPartRequest$Bucket": "Name of the bucket to which the multipart upload was initiated." @@ -455,6 +547,7 @@ "PutBucketWebsiteRequest$ContentMD5": null, "PutObjectAclRequest$ContentMD5": null, "PutObjectRequest$ContentMD5": "The base64-encoded 128-bit MD5 digest of the part data.", + "PutObjectTaggingRequest$ContentMD5": null, "UploadPartRequest$ContentMD5": "The base64-encoded 128-bit MD5 digest of the part data." } }, @@ -626,16 +719,31 @@ "DeleteObjectsRequest$Delete": null } }, + "DeleteBucketAnalyticsConfigurationRequest": { + "base": null, + "refs": { + } + }, "DeleteBucketCorsRequest": { "base": null, "refs": { } }, + "DeleteBucketInventoryConfigurationRequest": { + "base": null, + "refs": { + } + }, "DeleteBucketLifecycleRequest": { "base": null, "refs": { } }, + "DeleteBucketMetricsConfigurationRequest": { + "base": null, + "refs": { + } + }, "DeleteBucketPolicyRequest": { "base": null, "refs": { @@ -698,6 +806,16 @@ "refs": { } }, + "DeleteObjectTaggingOutput": { + "base": null, + "refs": { + } + }, + "DeleteObjectTaggingRequest": { + "base": null, + "refs": { + } + }, "DeleteObjectsOutput": { "base": null, "refs": { @@ -916,6 +1034,16 @@ "refs": { } }, + "GetBucketAnalyticsConfigurationOutput": { + "base": null, + "refs": { + } + }, + "GetBucketAnalyticsConfigurationRequest": { + "base": null, + "refs": { + } + }, "GetBucketCorsOutput": { "base": null, "refs": { @@ -926,6 +1054,16 @@ "refs": { } }, + "GetBucketInventoryConfigurationOutput": { + "base": null, + "refs": { + } + }, + "GetBucketInventoryConfigurationRequest": { + "base": null, + "refs": { + } + }, "GetBucketLifecycleConfigurationOutput": { "base": null, "refs": { @@ -966,6 +1104,16 @@ "refs": { } }, + "GetBucketMetricsConfigurationOutput": { + "base": null, + "refs": { + } + }, + "GetBucketMetricsConfigurationRequest": { + "base": null, + "refs": { + } + }, "GetBucketNotificationConfigurationRequest": { "base": null, "refs": { @@ -1051,6 +1199,16 @@ "refs": { } }, + "GetObjectTaggingOutput": { + "base": null, + "refs": { + } + }, + "GetObjectTaggingRequest": { + "base": null, + "refs": { + } + }, "GetObjectTorrentOutput": { "base": null, "refs": { @@ -1061,6 +1219,12 @@ "refs": { } }, + "GlacierJobParameters": { + "base": null, + "refs": { + "RestoreRequest$GlacierJobParameters": "Glacier related prameters pertaining to this job." + } + }, "Grant": { "base": null, "refs": { @@ -1227,6 +1391,89 @@ "MultipartUpload$Initiator": "Identifies who initiated the multipart upload." } }, + "InventoryConfiguration": { + "base": null, + "refs": { + "GetBucketInventoryConfigurationOutput$InventoryConfiguration": "Specifies the inventory configuration.", + "InventoryConfigurationList$member": null, + "PutBucketInventoryConfigurationRequest$InventoryConfiguration": "Specifies the inventory configuration." + } + }, + "InventoryConfigurationList": { + "base": null, + "refs": { + "ListBucketInventoryConfigurationsOutput$InventoryConfigurationList": "The list of inventory configurations for a bucket." + } + }, + "InventoryDestination": { + "base": null, + "refs": { + "InventoryConfiguration$Destination": "Contains information about where to publish the inventory results." + } + }, + "InventoryFilter": { + "base": null, + "refs": { + "InventoryConfiguration$Filter": "Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria." + } + }, + "InventoryFormat": { + "base": null, + "refs": { + "InventoryS3BucketDestination$Format": "Specifies the output format of the inventory results." + } + }, + "InventoryFrequency": { + "base": null, + "refs": { + "InventorySchedule$Frequency": "Specifies how frequently inventory results are produced." + } + }, + "InventoryId": { + "base": null, + "refs": { + "DeleteBucketInventoryConfigurationRequest$Id": "The ID used to identify the inventory configuration.", + "GetBucketInventoryConfigurationRequest$Id": "The ID used to identify the inventory configuration.", + "InventoryConfiguration$Id": "The ID used to identify the inventory configuration.", + "PutBucketInventoryConfigurationRequest$Id": "The ID used to identify the inventory configuration." + } + }, + "InventoryIncludedObjectVersions": { + "base": null, + "refs": { + "InventoryConfiguration$IncludedObjectVersions": "Specifies which object version(s) to included in the inventory results." + } + }, + "InventoryOptionalField": { + "base": null, + "refs": { + "InventoryOptionalFields$member": null + } + }, + "InventoryOptionalFields": { + "base": null, + "refs": { + "InventoryConfiguration$OptionalFields": "Contains the optional fields that are included in the inventory results." + } + }, + "InventoryS3BucketDestination": { + "base": null, + "refs": { + "InventoryDestination$S3BucketDestination": "Contains the bucket name, file format, bucket owner (optional), and prefix (optional) where inventory results are published." + } + }, + "InventorySchedule": { + "base": null, + "refs": { + "InventoryConfiguration$Schedule": "Specifies the schedule for generating inventory results." + } + }, + "IsEnabled": { + "base": null, + "refs": { + "InventoryConfiguration$IsEnabled": "Specifies whether the inventory is enabled or disabled." + } + }, "IsLatest": { "base": null, "refs": { @@ -1237,6 +1484,9 @@ "IsTruncated": { "base": null, "refs": { + "ListBucketAnalyticsConfigurationsOutput$IsTruncated": "Indicates whether the returned list of analytics configurations is complete. A value of true indicates that the list is not complete and the NextContinuationToken will be provided for a subsequent request.", + "ListBucketInventoryConfigurationsOutput$IsTruncated": "Indicates whether the returned list of inventory configurations is truncated in this response. A value of true indicates that the list is truncated.", + "ListBucketMetricsConfigurationsOutput$IsTruncated": "Indicates whether the returned list of metrics configurations is complete. A value of true indicates that the list is not complete and the NextContinuationToken will be provided for a subsequent request.", "ListMultipartUploadsOutput$IsTruncated": "Indicates whether the returned list of multipart uploads is truncated. A value of true indicates that the list was truncated. The list can be truncated if the number of multipart uploads exceeds the limit allowed or specified by max uploads.", "ListObjectVersionsOutput$IsTruncated": "A flag that indicates whether or not Amazon S3 returned all of the results that satisfied the search criteria. If your results were truncated, you can make a follow-up paginated request using the NextKeyMarker and NextVersionIdMarker response parameters as a starting place in another request to return the rest of the results.", "ListObjectsOutput$IsTruncated": "A flag that indicates whether or not Amazon S3 returned all of the results that satisfied the search criteria.", @@ -1315,6 +1565,18 @@ "LifecycleRules$member": null } }, + "LifecycleRuleAndOperator": { + "base": "This is used in a Lifecycle Rule Filter to apply a logical AND to two or more predicates. The Lifecycle Rule will apply to any object matching all of the predicates configured inside the And operator.", + "refs": { + "LifecycleRuleFilter$And": null + } + }, + "LifecycleRuleFilter": { + "base": "The Filter is used to identify objects that a Lifecycle Rule applies to. A Filter must have exactly one of Prefix, Tag, or And specified.", + "refs": { + "LifecycleRule$Filter": null + } + }, "LifecycleRules": { "base": null, "refs": { @@ -1322,6 +1584,36 @@ "GetBucketLifecycleConfigurationOutput$Rules": null } }, + "ListBucketAnalyticsConfigurationsOutput": { + "base": null, + "refs": { + } + }, + "ListBucketAnalyticsConfigurationsRequest": { + "base": null, + "refs": { + } + }, + "ListBucketInventoryConfigurationsOutput": { + "base": null, + "refs": { + } + }, + "ListBucketInventoryConfigurationsRequest": { + "base": null, + "refs": { + } + }, + "ListBucketMetricsConfigurationsOutput": { + "base": null, + "refs": { + } + }, + "ListBucketMetricsConfigurationsRequest": { + "base": null, + "refs": { + } + }, "ListBucketsOutput": { "base": null, "refs": { @@ -1483,6 +1775,41 @@ "Metadata$value": null } }, + "MetricsAndOperator": { + "base": null, + "refs": { + "MetricsFilter$And": "A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter. The operator must have at least two predicates, and an object must match all of the predicates in order for the filter to apply." + } + }, + "MetricsConfiguration": { + "base": null, + "refs": { + "GetBucketMetricsConfigurationOutput$MetricsConfiguration": "Specifies the metrics configuration.", + "MetricsConfigurationList$member": null, + "PutBucketMetricsConfigurationRequest$MetricsConfiguration": "Specifies the metrics configuration." + } + }, + "MetricsConfigurationList": { + "base": null, + "refs": { + "ListBucketMetricsConfigurationsOutput$MetricsConfigurationList": "The list of metrics configurations for a bucket." + } + }, + "MetricsFilter": { + "base": null, + "refs": { + "MetricsConfiguration$Filter": "Specifies a metrics configuration filter. The metrics configuration will only include objects that meet the filter's criteria. A filter must be a prefix, a tag, or a conjunction (MetricsAndOperator)." + } + }, + "MetricsId": { + "base": null, + "refs": { + "DeleteBucketMetricsConfigurationRequest$Id": "The ID used to identify the metrics configuration.", + "GetBucketMetricsConfigurationRequest$Id": "The ID used to identify the metrics configuration.", + "MetricsConfiguration$Id": "The ID used to identify the metrics configuration.", + "PutBucketMetricsConfigurationRequest$Id": "The ID used to identify the metrics configuration." + } + }, "MissingMeta": { "base": null, "refs": { @@ -1537,6 +1864,9 @@ "NextToken": { "base": null, "refs": { + "ListBucketAnalyticsConfigurationsOutput$NextContinuationToken": "NextContinuationToken is sent when isTruncated is true, which indicates that there are more analytics configurations to list. The next request must include this NextContinuationToken. The token is obfuscated and is not a usable value.", + "ListBucketInventoryConfigurationsOutput$NextContinuationToken": "The marker used to continue this inventory configuration listing. Use the NextContinuationToken from this response to continue the listing in a subsequent request. The continuation token is an opaque value that Amazon S3 understands.", + "ListBucketMetricsConfigurationsOutput$NextContinuationToken": "The marker used to continue a metrics configuration listing that has been truncated. Use the NextContinuationToken from a previously truncated list response to continue the listing. The continuation token is an opaque value that Amazon S3 understands.", "ListObjectsV2Output$NextContinuationToken": "NextContinuationToken is sent when isTruncated is true which means there are more keys in the bucket that can be listed. The next list requests to Amazon S3 can be continued with this NextContinuationToken. NextContinuationToken is obfuscated and is not a real key" } }, @@ -1661,11 +1991,13 @@ "CreateMultipartUploadRequest$Key": null, "DeleteMarkerEntry$Key": "The object key.", "DeleteObjectRequest$Key": null, + "DeleteObjectTaggingRequest$Key": null, "DeletedObject$Key": null, "Error$Key": null, "ErrorDocument$Key": "The object key name to use when a 4XX class error occurs.", "GetObjectAclRequest$Key": null, "GetObjectRequest$Key": null, + "GetObjectTaggingRequest$Key": null, "GetObjectTorrentRequest$Key": null, "HeadObjectRequest$Key": null, "ListPartsOutput$Key": "Object key for which the multipart upload was initiated.", @@ -1676,6 +2008,7 @@ "ObjectVersion$Key": "The object key.", "PutObjectAclRequest$Key": null, "PutObjectRequest$Key": "Object key for which the PUT operation was initiated.", + "PutObjectTaggingRequest$Key": null, "RestoreObjectRequest$Key": null, "Tag$Key": "Name of the tag.", "UploadPartCopyRequest$Key": null, @@ -1714,17 +2047,23 @@ "DeleteMarkerEntry$VersionId": "Version ID of an object.", "DeleteObjectOutput$VersionId": "Returns the version ID of the delete marker created as a result of the DELETE operation.", "DeleteObjectRequest$VersionId": "VersionId used to reference a specific version of the object.", + "DeleteObjectTaggingOutput$VersionId": "The versionId of the object the tag-set was removed from.", + "DeleteObjectTaggingRequest$VersionId": "The versionId of the object that the tag-set will be removed from.", "DeletedObject$VersionId": null, "Error$VersionId": null, "GetObjectAclRequest$VersionId": "VersionId used to reference a specific version of the object.", "GetObjectOutput$VersionId": "Version of the object.", "GetObjectRequest$VersionId": "VersionId used to reference a specific version of the object.", + "GetObjectTaggingOutput$VersionId": null, + "GetObjectTaggingRequest$VersionId": null, "HeadObjectOutput$VersionId": "Version of the object.", "HeadObjectRequest$VersionId": "VersionId used to reference a specific version of the object.", "ObjectIdentifier$VersionId": "VersionId for the specific version of the object to delete.", "ObjectVersion$VersionId": "Version ID of an object.", "PutObjectAclRequest$VersionId": "VersionId used to reference a specific version of the object.", "PutObjectOutput$VersionId": "Version of the object.", + "PutObjectTaggingOutput$VersionId": null, + "PutObjectTaggingRequest$VersionId": null, "RestoreObjectRequest$VersionId": null } }, @@ -1814,8 +2153,15 @@ "Prefix": { "base": null, "refs": { + "AnalyticsAndOperator$Prefix": "The prefix to use when evaluating an AND predicate.", + "AnalyticsFilter$Prefix": "The prefix to use when evaluating an analytics filter.", + "AnalyticsS3BucketDestination$Prefix": "The prefix to use when exporting data. The exported data begins with this prefix.", "CommonPrefix$Prefix": null, - "LifecycleRule$Prefix": "Prefix identifying one or more objects to which the rule applies.", + "InventoryFilter$Prefix": "The prefix that an object must have to be included in the inventory results.", + "InventoryS3BucketDestination$Prefix": "The prefix that is prepended to all inventory results.", + "LifecycleRule$Prefix": "Prefix identifying one or more objects to which the rule applies. This is deprecated; use Filter instead.", + "LifecycleRuleAndOperator$Prefix": null, + "LifecycleRuleFilter$Prefix": "Prefix identifying one or more objects to which the rule applies.", "ListMultipartUploadsOutput$Prefix": "When a prefix is provided in the request, this field contains the specified prefix. The result contains only keys starting with the specified prefix.", "ListMultipartUploadsRequest$Prefix": "Lists in-progress uploads only for those keys that begin with the specified prefix.", "ListObjectVersionsOutput$Prefix": null, @@ -1824,6 +2170,8 @@ "ListObjectsRequest$Prefix": "Limits the response to keys that begin with the specified prefix.", "ListObjectsV2Output$Prefix": "Limits the response to keys that begin with the specified prefix.", "ListObjectsV2Request$Prefix": "Limits the response to keys that begin with the specified prefix.", + "MetricsAndOperator$Prefix": "The prefix used when evaluating an AND predicate.", + "MetricsFilter$Prefix": "The prefix used when evaluating a metrics filter.", "ReplicationRule$Prefix": "Object keyname prefix identifying one or more objects to which the rule applies. Maximum prefix length can be up to 1,024 characters. Overlapping prefixes are not supported.", "Rule$Prefix": "Prefix identifying one or more objects to which the rule applies." } @@ -1845,11 +2193,21 @@ "refs": { } }, + "PutBucketAnalyticsConfigurationRequest": { + "base": null, + "refs": { + } + }, "PutBucketCorsRequest": { "base": null, "refs": { } }, + "PutBucketInventoryConfigurationRequest": { + "base": null, + "refs": { + } + }, "PutBucketLifecycleConfigurationRequest": { "base": null, "refs": { @@ -1865,6 +2223,11 @@ "refs": { } }, + "PutBucketMetricsConfigurationRequest": { + "base": null, + "refs": { + } + }, "PutBucketNotificationConfigurationRequest": { "base": null, "refs": { @@ -1925,6 +2288,16 @@ "refs": { } }, + "PutObjectTaggingOutput": { + "base": null, + "refs": { + } + }, + "PutObjectTaggingRequest": { + "base": null, + "refs": { + } + }, "QueueArn": { "base": null, "refs": { @@ -2277,6 +2650,24 @@ "PutObjectRequest$StorageClass": "The type of storage to use for the object. Defaults to 'STANDARD'." } }, + "StorageClassAnalysis": { + "base": null, + "refs": { + "AnalyticsConfiguration$StorageClassAnalysis": "If present, it indicates that data related to access patterns will be collected and made available to analyze the tradeoffs between different storage classes." + } + }, + "StorageClassAnalysisDataExport": { + "base": null, + "refs": { + "StorageClassAnalysis$DataExport": "A container used to describe how data related to the storage class analysis should be exported." + } + }, + "StorageClassAnalysisSchemaVersion": { + "base": null, + "refs": { + "StorageClassAnalysisDataExport$OutputSchemaVersion": "The version of the output schema to use when exporting data. Must be V_1." + } + }, "Suffix": { "base": null, "refs": { @@ -2286,20 +2677,47 @@ "Tag": { "base": null, "refs": { + "AnalyticsFilter$Tag": "The tag to use when evaluating an analytics filter.", + "LifecycleRuleFilter$Tag": "This tag must exist in the object's tag set in order for the rule to apply.", + "MetricsFilter$Tag": "The tag used when evaluating a metrics filter.", "TagSet$member": null } }, + "TagCount": { + "base": null, + "refs": { + "GetObjectOutput$TagCount": "The number of tags, if any, on the object." + } + }, "TagSet": { "base": null, "refs": { + "AnalyticsAndOperator$Tags": "The list of tags to use when evaluating an AND predicate.", "GetBucketTaggingOutput$TagSet": null, + "GetObjectTaggingOutput$TagSet": null, + "LifecycleRuleAndOperator$Tags": "All of these tags must exist in the object's tag set in order for the rule to apply.", + "MetricsAndOperator$Tags": "The list of tags used when evaluating an AND predicate.", "Tagging$TagSet": null } }, "Tagging": { "base": null, "refs": { - "PutBucketTaggingRequest$Tagging": null + "PutBucketTaggingRequest$Tagging": null, + "PutObjectTaggingRequest$Tagging": null + } + }, + "TaggingDirective": { + "base": null, + "refs": { + "CopyObjectRequest$TaggingDirective": "Specifies whether the object tag-set are copied from the source object or replaced with tag-set provided in the request." + } + }, + "TaggingHeader": { + "base": null, + "refs": { + "CopyObjectRequest$Tagging": "The tag-set for the object destination object this value must be used in conjunction with the TaggingDirective. The tag-set must be encoded as URL Query parameters", + "PutObjectRequest$Tagging": "The tag-set for the object. The tag-set must be encoded as URL Query parameters" } }, "TargetBucket": { @@ -2326,9 +2744,21 @@ "LoggingEnabled$TargetPrefix": "This element lets you specify a prefix for the keys that the log files will be stored under." } }, + "Tier": { + "base": null, + "refs": { + "GlacierJobParameters$Tier": "Glacier retrieval tier at which the restore will be processed." + } + }, "Token": { "base": null, "refs": { + "ListBucketAnalyticsConfigurationsOutput$ContinuationToken": "The ContinuationToken that represents where this request began.", + "ListBucketAnalyticsConfigurationsRequest$ContinuationToken": "The ContinuationToken that represents a placeholder from where this request should begin.", + "ListBucketInventoryConfigurationsOutput$ContinuationToken": "If sent in the request, the marker that is used as a starting point for this inventory configuration list response.", + "ListBucketInventoryConfigurationsRequest$ContinuationToken": "The marker used to continue an inventory configuration listing that has been truncated. Use the NextContinuationToken from a previously truncated list response to continue the listing. The continuation token is an opaque value that Amazon S3 understands.", + "ListBucketMetricsConfigurationsOutput$ContinuationToken": "The marker that is used as a starting point for this metrics configuration list response. This value is present if it was sent in the request.", + "ListBucketMetricsConfigurationsRequest$ContinuationToken": "The marker that is used to continue a metrics configuration listing that has been truncated. Use the NextContinuationToken from a previously truncated list response to continue the listing. The continuation token is an opaque value that Amazon S3 understands.", "ListObjectsV2Output$ContinuationToken": "ContinuationToken indicates Amazon S3 that the list is being continued on this bucket with a token. ContinuationToken is obfuscated and is not a real key", "ListObjectsV2Request$ContinuationToken": "ContinuationToken indicates Amazon S3 that the list is being continued on this bucket with a token. ContinuationToken is obfuscated and is not a real key" } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/servicecatalog/2015-12-10/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/servicecatalog/2015-12-10/api-2.json index c346c3745..326efbc61 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/servicecatalog/2015-12-10/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/servicecatalog/2015-12-10/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"servicecatalog-2015-12-10", "apiVersion":"2015-12-10", "endpointPrefix":"servicecatalog", "jsonVersion":"1.1", @@ -10,6 +11,208 @@ "targetPrefix":"AWS242ServiceCatalogService" }, "operations":{ + "AcceptPortfolioShare":{ + "name":"AcceptPortfolioShare", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AcceptPortfolioShareInput"}, + "output":{"shape":"AcceptPortfolioShareOutput"}, + "errors":[ + {"shape":"InvalidParametersException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"LimitExceededException"} + ] + }, + "AssociatePrincipalWithPortfolio":{ + "name":"AssociatePrincipalWithPortfolio", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociatePrincipalWithPortfolioInput"}, + "output":{"shape":"AssociatePrincipalWithPortfolioOutput"}, + "errors":[ + {"shape":"InvalidParametersException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"LimitExceededException"} + ] + }, + "AssociateProductWithPortfolio":{ + "name":"AssociateProductWithPortfolio", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateProductWithPortfolioInput"}, + "output":{"shape":"AssociateProductWithPortfolioOutput"}, + "errors":[ + {"shape":"InvalidParametersException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"LimitExceededException"} + ] + }, + "CreateConstraint":{ + "name":"CreateConstraint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateConstraintInput"}, + "output":{"shape":"CreateConstraintOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParametersException"}, + {"shape":"LimitExceededException"}, + {"shape":"DuplicateResourceException"} + ] + }, + "CreatePortfolio":{ + "name":"CreatePortfolio", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreatePortfolioInput"}, + "output":{"shape":"CreatePortfolioOutput"}, + "errors":[ + {"shape":"InvalidParametersException"}, + {"shape":"LimitExceededException"} + ] + }, + "CreatePortfolioShare":{ + "name":"CreatePortfolioShare", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreatePortfolioShareInput"}, + "output":{"shape":"CreatePortfolioShareOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"LimitExceededException"}, + {"shape":"InvalidParametersException"} + ] + }, + "CreateProduct":{ + "name":"CreateProduct", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateProductInput"}, + "output":{"shape":"CreateProductOutput"}, + "errors":[ + {"shape":"InvalidParametersException"}, + {"shape":"LimitExceededException"} + ] + }, + "CreateProvisioningArtifact":{ + "name":"CreateProvisioningArtifact", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateProvisioningArtifactInput"}, + "output":{"shape":"CreateProvisioningArtifactOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParametersException"}, + {"shape":"LimitExceededException"} + ] + }, + "DeleteConstraint":{ + "name":"DeleteConstraint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteConstraintInput"}, + "output":{"shape":"DeleteConstraintOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParametersException"} + ] + }, + "DeletePortfolio":{ + "name":"DeletePortfolio", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeletePortfolioInput"}, + "output":{"shape":"DeletePortfolioOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParametersException"}, + {"shape":"ResourceInUseException"} + ] + }, + "DeletePortfolioShare":{ + "name":"DeletePortfolioShare", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeletePortfolioShareInput"}, + "output":{"shape":"DeletePortfolioShareOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ] + }, + "DeleteProduct":{ + "name":"DeleteProduct", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteProductInput"}, + "output":{"shape":"DeleteProductOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InvalidParametersException"} + ] + }, + "DeleteProvisioningArtifact":{ + "name":"DeleteProvisioningArtifact", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteProvisioningArtifactInput"}, + "output":{"shape":"DeleteProvisioningArtifactOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InvalidParametersException"} + ] + }, + "DescribeConstraint":{ + "name":"DescribeConstraint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeConstraintInput"}, + "output":{"shape":"DescribeConstraintOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ] + }, + "DescribePortfolio":{ + "name":"DescribePortfolio", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribePortfolioInput"}, + "output":{"shape":"DescribePortfolioOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ] + }, "DescribeProduct":{ "name":"DescribeProduct", "http":{ @@ -23,6 +226,18 @@ {"shape":"InvalidParametersException"} ] }, + "DescribeProductAsAdmin":{ + "name":"DescribeProductAsAdmin", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeProductAsAdminInput"}, + "output":{"shape":"DescribeProductAsAdminOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ] + }, "DescribeProductView":{ "name":"DescribeProductView", "http":{ @@ -36,6 +251,18 @@ {"shape":"InvalidParametersException"} ] }, + "DescribeProvisioningArtifact":{ + "name":"DescribeProvisioningArtifact", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeProvisioningArtifactInput"}, + "output":{"shape":"DescribeProvisioningArtifactOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ] + }, "DescribeProvisioningParameters":{ "name":"DescribeProvisioningParameters", "http":{ @@ -61,6 +288,57 @@ {"shape":"ResourceNotFoundException"} ] }, + "DisassociatePrincipalFromPortfolio":{ + "name":"DisassociatePrincipalFromPortfolio", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociatePrincipalFromPortfolioInput"}, + "output":{"shape":"DisassociatePrincipalFromPortfolioOutput"}, + "errors":[ + {"shape":"InvalidParametersException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DisassociateProductFromPortfolio":{ + "name":"DisassociateProductFromPortfolio", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociateProductFromPortfolioInput"}, + "output":{"shape":"DisassociateProductFromPortfolioOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParametersException"} + ] + }, + "ListAcceptedPortfolioShares":{ + "name":"ListAcceptedPortfolioShares", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAcceptedPortfolioSharesInput"}, + "output":{"shape":"ListAcceptedPortfolioSharesOutput"}, + "errors":[ + {"shape":"InvalidParametersException"} + ] + }, + "ListConstraintsForPortfolio":{ + "name":"ListConstraintsForPortfolio", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListConstraintsForPortfolioInput"}, + "output":{"shape":"ListConstraintsForPortfolioOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParametersException"} + ] + }, "ListLaunchPaths":{ "name":"ListLaunchPaths", "http":{ @@ -74,6 +352,69 @@ {"shape":"ResourceNotFoundException"} ] }, + "ListPortfolioAccess":{ + "name":"ListPortfolioAccess", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListPortfolioAccessInput"}, + "output":{"shape":"ListPortfolioAccessOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ] + }, + "ListPortfolios":{ + "name":"ListPortfolios", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListPortfoliosInput"}, + "output":{"shape":"ListPortfoliosOutput"}, + "errors":[ + {"shape":"InvalidParametersException"} + ] + }, + "ListPortfoliosForProduct":{ + "name":"ListPortfoliosForProduct", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListPortfoliosForProductInput"}, + "output":{"shape":"ListPortfoliosForProductOutput"}, + "errors":[ + {"shape":"InvalidParametersException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ListPrincipalsForPortfolio":{ + "name":"ListPrincipalsForPortfolio", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListPrincipalsForPortfolioInput"}, + "output":{"shape":"ListPrincipalsForPortfolioOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParametersException"} + ] + }, + "ListProvisioningArtifacts":{ + "name":"ListProvisioningArtifacts", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListProvisioningArtifactsInput"}, + "output":{"shape":"ListProvisioningArtifactsOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParametersException"} + ] + }, "ListRecordHistory":{ "name":"ListRecordHistory", "http":{ @@ -100,6 +441,18 @@ {"shape":"DuplicateResourceException"} ] }, + "RejectPortfolioShare":{ + "name":"RejectPortfolioShare", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RejectPortfolioShareInput"}, + "output":{"shape":"RejectPortfolioShareOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ] + }, "ScanProvisionedProducts":{ "name":"ScanProvisionedProducts", "http":{ @@ -124,6 +477,19 @@ {"shape":"InvalidParametersException"} ] }, + "SearchProductsAsAdmin":{ + "name":"SearchProductsAsAdmin", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"SearchProductsAsAdminInput"}, + "output":{"shape":"SearchProductsAsAdminOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParametersException"} + ] + }, "TerminateProvisionedProduct":{ "name":"TerminateProvisionedProduct", "http":{ @@ -136,24 +502,90 @@ {"shape":"ResourceNotFoundException"} ] }, - "UpdateProvisionedProduct":{ - "name":"UpdateProvisionedProduct", + "UpdateConstraint":{ + "name":"UpdateConstraint", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"UpdateProvisionedProductInput"}, - "output":{"shape":"UpdateProvisionedProductOutput"}, + "input":{"shape":"UpdateConstraintInput"}, + "output":{"shape":"UpdateConstraintOutput"}, "errors":[ - {"shape":"InvalidParametersException"}, - {"shape":"ResourceNotFoundException"} + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParametersException"} ] - } - }, - "shapes":{ - "AcceptLanguage":{"type":"string"}, - "AccessLevelFilter":{ - "type":"structure", + }, + "UpdatePortfolio":{ + "name":"UpdatePortfolio", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdatePortfolioInput"}, + "output":{"shape":"UpdatePortfolioOutput"}, + "errors":[ + {"shape":"InvalidParametersException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"LimitExceededException"} + ] + }, + "UpdateProduct":{ + "name":"UpdateProduct", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateProductInput"}, + "output":{"shape":"UpdateProductOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParametersException"} + ] + }, + "UpdateProvisionedProduct":{ + "name":"UpdateProvisionedProduct", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateProvisionedProductInput"}, + "output":{"shape":"UpdateProvisionedProductOutput"}, + "errors":[ + {"shape":"InvalidParametersException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "UpdateProvisioningArtifact":{ + "name":"UpdateProvisioningArtifact", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateProvisioningArtifactInput"}, + "output":{"shape":"UpdateProvisioningArtifactOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParametersException"} + ] + } + }, + "shapes":{ + "AcceptLanguage":{"type":"string"}, + "AcceptPortfolioShareInput":{ + "type":"structure", + "required":["PortfolioId"], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "PortfolioId":{"shape":"Id"} + } + }, + "AcceptPortfolioShareOutput":{ + "type":"structure", + "members":{ + } + }, + "AccessLevelFilter":{ + "type":"structure", "members":{ "Key":{"shape":"AccessLevelFilterKey"}, "Value":{"shape":"AccessLevelFilterValue"} @@ -168,14 +600,81 @@ ] }, "AccessLevelFilterValue":{"type":"string"}, + "AccountId":{ + "type":"string", + "pattern":"^[0-9]{12}$" + }, + "AccountIds":{ + "type":"list", + "member":{"shape":"AccountId"} + }, + "AddTags":{ + "type":"list", + "member":{"shape":"Tag"}, + "max":20 + }, "AllowedValue":{"type":"string"}, "AllowedValues":{ "type":"list", "member":{"shape":"AllowedValue"} }, "ApproximateCount":{"type":"integer"}, + "AssociatePrincipalWithPortfolioInput":{ + "type":"structure", + "required":[ + "PortfolioId", + "PrincipalARN", + "PrincipalType" + ], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "PortfolioId":{"shape":"Id"}, + "PrincipalARN":{"shape":"PrincipalARN"}, + "PrincipalType":{"shape":"PrincipalType"} + } + }, + "AssociatePrincipalWithPortfolioOutput":{ + "type":"structure", + "members":{ + } + }, + "AssociateProductWithPortfolioInput":{ + "type":"structure", + "required":[ + "ProductId", + "PortfolioId" + ], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "ProductId":{"shape":"Id"}, + "PortfolioId":{"shape":"Id"}, + "SourcePortfolioId":{"shape":"Id"} + } + }, + "AssociateProductWithPortfolioOutput":{ + "type":"structure", + "members":{ + } + }, "AttributeValue":{"type":"string"}, - "ConstraintDescription":{"type":"string"}, + "ConstraintDescription":{ + "type":"string", + "max":2000 + }, + "ConstraintDetail":{ + "type":"structure", + "members":{ + "ConstraintId":{"shape":"Id"}, + "Type":{"shape":"ConstraintType"}, + "Description":{"shape":"ConstraintDescription"}, + "Owner":{"shape":"AccountId"} + } + }, + "ConstraintDetails":{ + "type":"list", + "member":{"shape":"ConstraintDetail"} + }, + "ConstraintParameters":{"type":"string"}, "ConstraintSummaries":{ "type":"list", "member":{"shape":"ConstraintSummary"} @@ -187,9 +686,266 @@ "Description":{"shape":"ConstraintDescription"} } }, - "ConstraintType":{"type":"string"}, + "ConstraintType":{ + "type":"string", + "max":1024, + "min":1 + }, + "CreateConstraintInput":{ + "type":"structure", + "required":[ + "PortfolioId", + "ProductId", + "Parameters", + "Type", + "IdempotencyToken" + ], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "PortfolioId":{"shape":"Id"}, + "ProductId":{"shape":"Id"}, + "Parameters":{"shape":"ConstraintParameters"}, + "Type":{"shape":"ConstraintType"}, + "Description":{"shape":"ConstraintDescription"}, + "IdempotencyToken":{ + "shape":"IdempotencyToken", + "idempotencyToken":true + } + } + }, + "CreateConstraintOutput":{ + "type":"structure", + "members":{ + "ConstraintDetail":{"shape":"ConstraintDetail"}, + "ConstraintParameters":{"shape":"ConstraintParameters"}, + "Status":{"shape":"Status"} + } + }, + "CreatePortfolioInput":{ + "type":"structure", + "required":[ + "DisplayName", + "ProviderName", + "IdempotencyToken" + ], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "DisplayName":{"shape":"PortfolioDisplayName"}, + "Description":{"shape":"PortfolioDescription"}, + "ProviderName":{"shape":"ProviderName"}, + "Tags":{"shape":"AddTags"}, + "IdempotencyToken":{ + "shape":"IdempotencyToken", + "idempotencyToken":true + } + } + }, + "CreatePortfolioOutput":{ + "type":"structure", + "members":{ + "PortfolioDetail":{"shape":"PortfolioDetail"}, + "Tags":{"shape":"Tags"} + } + }, + "CreatePortfolioShareInput":{ + "type":"structure", + "required":[ + "PortfolioId", + "AccountId" + ], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "PortfolioId":{"shape":"Id"}, + "AccountId":{"shape":"AccountId"} + } + }, + "CreatePortfolioShareOutput":{ + "type":"structure", + "members":{ + } + }, + "CreateProductInput":{ + "type":"structure", + "required":[ + "Name", + "Owner", + "ProductType", + "ProvisioningArtifactParameters", + "IdempotencyToken" + ], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "Name":{"shape":"ProductViewName"}, + "Owner":{"shape":"ProductViewOwner"}, + "Description":{"shape":"ProductViewShortDescription"}, + "Distributor":{"shape":"ProductViewOwner"}, + "SupportDescription":{"shape":"SupportDescription"}, + "SupportEmail":{"shape":"SupportEmail"}, + "SupportUrl":{"shape":"SupportUrl"}, + "ProductType":{"shape":"ProductType"}, + "Tags":{"shape":"AddTags"}, + "ProvisioningArtifactParameters":{"shape":"ProvisioningArtifactProperties"}, + "IdempotencyToken":{ + "shape":"IdempotencyToken", + "idempotencyToken":true + } + } + }, + "CreateProductOutput":{ + "type":"structure", + "members":{ + "ProductViewDetail":{"shape":"ProductViewDetail"}, + "ProvisioningArtifactDetail":{"shape":"ProvisioningArtifactDetail"}, + "Tags":{"shape":"Tags"} + } + }, + "CreateProvisioningArtifactInput":{ + "type":"structure", + "required":[ + "ProductId", + "Parameters", + "IdempotencyToken" + ], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "ProductId":{"shape":"Id"}, + "Parameters":{"shape":"ProvisioningArtifactProperties"}, + "IdempotencyToken":{ + "shape":"IdempotencyToken", + "idempotencyToken":true + } + } + }, + "CreateProvisioningArtifactOutput":{ + "type":"structure", + "members":{ + "ProvisioningArtifactDetail":{"shape":"ProvisioningArtifactDetail"}, + "Info":{"shape":"ProvisioningArtifactInfo"}, + "Status":{"shape":"Status"} + } + }, "CreatedTime":{"type":"timestamp"}, + "CreationTime":{"type":"timestamp"}, "DefaultValue":{"type":"string"}, + "DeleteConstraintInput":{ + "type":"structure", + "required":["Id"], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "Id":{"shape":"Id"} + } + }, + "DeleteConstraintOutput":{ + "type":"structure", + "members":{ + } + }, + "DeletePortfolioInput":{ + "type":"structure", + "required":["Id"], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "Id":{"shape":"Id"} + } + }, + "DeletePortfolioOutput":{ + "type":"structure", + "members":{ + } + }, + "DeletePortfolioShareInput":{ + "type":"structure", + "required":[ + "PortfolioId", + "AccountId" + ], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "PortfolioId":{"shape":"Id"}, + "AccountId":{"shape":"AccountId"} + } + }, + "DeletePortfolioShareOutput":{ + "type":"structure", + "members":{ + } + }, + "DeleteProductInput":{ + "type":"structure", + "required":["Id"], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "Id":{"shape":"Id"} + } + }, + "DeleteProductOutput":{ + "type":"structure", + "members":{ + } + }, + "DeleteProvisioningArtifactInput":{ + "type":"structure", + "required":[ + "ProductId", + "ProvisioningArtifactId" + ], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "ProductId":{"shape":"Id"}, + "ProvisioningArtifactId":{"shape":"Id"} + } + }, + "DeleteProvisioningArtifactOutput":{ + "type":"structure", + "members":{ + } + }, + "DescribeConstraintInput":{ + "type":"structure", + "required":["Id"], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "Id":{"shape":"Id"} + } + }, + "DescribeConstraintOutput":{ + "type":"structure", + "members":{ + "ConstraintDetail":{"shape":"ConstraintDetail"}, + "ConstraintParameters":{"shape":"ConstraintParameters"}, + "Status":{"shape":"Status"} + } + }, + "DescribePortfolioInput":{ + "type":"structure", + "required":["Id"], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "Id":{"shape":"Id"} + } + }, + "DescribePortfolioOutput":{ + "type":"structure", + "members":{ + "PortfolioDetail":{"shape":"PortfolioDetail"}, + "Tags":{"shape":"Tags"} + } + }, + "DescribeProductAsAdminInput":{ + "type":"structure", + "required":["Id"], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "Id":{"shape":"Id"} + } + }, + "DescribeProductAsAdminOutput":{ + "type":"structure", + "members":{ + "ProductViewDetail":{"shape":"ProductViewDetail"}, + "Tags":{"shape":"Tags"} + } + }, "DescribeProductInput":{ "type":"structure", "required":["Id"], @@ -220,6 +976,26 @@ "ProvisioningArtifacts":{"shape":"ProvisioningArtifacts"} } }, + "DescribeProvisioningArtifactInput":{ + "type":"structure", + "required":[ + "ProvisioningArtifactId", + "ProductId" + ], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "ProvisioningArtifactId":{"shape":"Id"}, + "ProductId":{"shape":"Id"} + } + }, + "DescribeProvisioningArtifactOutput":{ + "type":"structure", + "members":{ + "ProvisioningArtifactDetail":{"shape":"ProvisioningArtifactDetail"}, + "Info":{"shape":"ProvisioningArtifactInfo"}, + "Status":{"shape":"Status"} + } + }, "DescribeProvisioningParametersInput":{ "type":"structure", "required":[ @@ -246,20 +1022,54 @@ "required":["Id"], "members":{ "AcceptLanguage":{"shape":"AcceptLanguage"}, - "Id":{"shape":"Id"}, - "PageToken":{"shape":"PageToken"}, - "PageSize":{"shape":"PageSize"} + "Id":{"shape":"Id"}, + "PageToken":{"shape":"PageToken"}, + "PageSize":{"shape":"PageSize"} + } + }, + "DescribeRecordOutput":{ + "type":"structure", + "members":{ + "RecordDetail":{"shape":"RecordDetail"}, + "RecordOutputs":{"shape":"RecordOutputs"}, + "NextPageToken":{"shape":"PageToken"} + } + }, + "Description":{"type":"string"}, + "DisassociatePrincipalFromPortfolioInput":{ + "type":"structure", + "required":[ + "PortfolioId", + "PrincipalARN" + ], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "PortfolioId":{"shape":"Id"}, + "PrincipalARN":{"shape":"PrincipalARN"} + } + }, + "DisassociatePrincipalFromPortfolioOutput":{ + "type":"structure", + "members":{ + } + }, + "DisassociateProductFromPortfolioInput":{ + "type":"structure", + "required":[ + "ProductId", + "PortfolioId" + ], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "ProductId":{"shape":"Id"}, + "PortfolioId":{"shape":"Id"} } }, - "DescribeRecordOutput":{ + "DisassociateProductFromPortfolioOutput":{ "type":"structure", "members":{ - "RecordDetail":{"shape":"RecordDetail"}, - "RecordOutputs":{"shape":"RecordOutputs"}, - "NextPageToken":{"shape":"PageToken"} } }, - "Description":{"type":"string"}, "DuplicateResourceException":{ "type":"structure", "members":{ @@ -271,6 +1081,7 @@ "HasDefaultPath":{"type":"boolean"}, "Id":{ "type":"string", + "max":100, "min":1 }, "IdempotencyToken":{ @@ -302,6 +1113,45 @@ "Name":{"shape":"PortfolioName"} } }, + "LimitExceededException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "ListAcceptedPortfolioSharesInput":{ + "type":"structure", + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "PageToken":{"shape":"PageToken"}, + "PageSize":{"shape":"PageSize"} + } + }, + "ListAcceptedPortfolioSharesOutput":{ + "type":"structure", + "members":{ + "PortfolioDetails":{"shape":"PortfolioDetails"}, + "NextPageToken":{"shape":"PageToken"} + } + }, + "ListConstraintsForPortfolioInput":{ + "type":"structure", + "required":["PortfolioId"], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "PortfolioId":{"shape":"Id"}, + "ProductId":{"shape":"Id"}, + "PageSize":{"shape":"PageSize"}, + "PageToken":{"shape":"PageToken"} + } + }, + "ListConstraintsForPortfolioOutput":{ + "type":"structure", + "members":{ + "ConstraintDetails":{"shape":"ConstraintDetails"}, + "NextPageToken":{"shape":"PageToken"} + } + }, "ListLaunchPathsInput":{ "type":"structure", "required":["ProductId"], @@ -319,6 +1169,85 @@ "NextPageToken":{"shape":"PageToken"} } }, + "ListPortfolioAccessInput":{ + "type":"structure", + "required":["PortfolioId"], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "PortfolioId":{"shape":"Id"} + } + }, + "ListPortfolioAccessOutput":{ + "type":"structure", + "members":{ + "AccountIds":{"shape":"AccountIds"}, + "NextPageToken":{"shape":"PageToken"} + } + }, + "ListPortfoliosForProductInput":{ + "type":"structure", + "required":["ProductId"], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "ProductId":{"shape":"Id"}, + "PageToken":{"shape":"PageToken"}, + "PageSize":{"shape":"PageSize"} + } + }, + "ListPortfoliosForProductOutput":{ + "type":"structure", + "members":{ + "PortfolioDetails":{"shape":"PortfolioDetails"}, + "NextPageToken":{"shape":"PageToken"} + } + }, + "ListPortfoliosInput":{ + "type":"structure", + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "PageToken":{"shape":"PageToken"}, + "PageSize":{"shape":"PageSize"} + } + }, + "ListPortfoliosOutput":{ + "type":"structure", + "members":{ + "PortfolioDetails":{"shape":"PortfolioDetails"}, + "NextPageToken":{"shape":"PageToken"} + } + }, + "ListPrincipalsForPortfolioInput":{ + "type":"structure", + "required":["PortfolioId"], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "PortfolioId":{"shape":"Id"}, + "PageSize":{"shape":"PageSize"}, + "PageToken":{"shape":"PageToken"} + } + }, + "ListPrincipalsForPortfolioOutput":{ + "type":"structure", + "members":{ + "Principals":{"shape":"Principals"}, + "NextPageToken":{"shape":"PageToken"} + } + }, + "ListProvisioningArtifactsInput":{ + "type":"structure", + "required":["ProductId"], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "ProductId":{"shape":"Id"} + } + }, + "ListProvisioningArtifactsOutput":{ + "type":"structure", + "members":{ + "ProvisioningArtifactDetails":{"shape":"ProvisioningArtifactDetails"}, + "NextPageToken":{"shape":"PageToken"} + } + }, "ListRecordHistoryInput":{ "type":"structure", "members":{ @@ -372,11 +1301,69 @@ "AllowedValues":{"shape":"AllowedValues"} } }, - "ParameterKey":{"type":"string"}, + "ParameterKey":{ + "type":"string", + "max":1000, + "min":1 + }, "ParameterType":{"type":"string"}, - "ParameterValue":{"type":"string"}, + "ParameterValue":{ + "type":"string", + "max":1000 + }, + "PortfolioDescription":{ + "type":"string", + "max":2000 + }, + "PortfolioDetail":{ + "type":"structure", + "members":{ + "Id":{"shape":"Id"}, + "ARN":{"shape":"ResourceARN"}, + "DisplayName":{"shape":"PortfolioDisplayName"}, + "Description":{"shape":"PortfolioDescription"}, + "CreatedTime":{"shape":"CreationTime"}, + "ProviderName":{"shape":"ProviderName"} + } + }, + "PortfolioDetails":{ + "type":"list", + "member":{"shape":"PortfolioDetail"} + }, + "PortfolioDisplayName":{ + "type":"string", + "max":100, + "min":1 + }, "PortfolioName":{"type":"string"}, - "ProductType":{"type":"string"}, + "Principal":{ + "type":"structure", + "members":{ + "PrincipalARN":{"shape":"PrincipalARN"}, + "PrincipalType":{"shape":"PrincipalType"} + } + }, + "PrincipalARN":{ + "type":"string", + "max":1000, + "min":1 + }, + "PrincipalType":{ + "type":"string", + "enum":["IAM"] + }, + "Principals":{ + "type":"list", + "member":{"shape":"Principal"} + }, + "ProductSource":{ + "type":"string", + "enum":["ACCOUNT"] + }, + "ProductType":{ + "type":"string", + "enum":["CLOUD_FORMATION_TEMPLATE"] + }, "ProductViewAggregationType":{"type":"string"}, "ProductViewAggregationValue":{ "type":"structure", @@ -394,6 +1381,19 @@ "key":{"shape":"ProductViewAggregationType"}, "value":{"shape":"ProductViewAggregationValues"} }, + "ProductViewDetail":{ + "type":"structure", + "members":{ + "ProductViewSummary":{"shape":"ProductViewSummary"}, + "Status":{"shape":"Status"}, + "ProductARN":{"shape":"ResourceARN"}, + "CreatedTime":{"shape":"CreatedTime"} + } + }, + "ProductViewDetails":{ + "type":"list", + "member":{"shape":"ProductViewDetail"} + }, "ProductViewDistributor":{"type":"string"}, "ProductViewFilterBy":{ "type":"string", @@ -444,6 +1444,11 @@ "SupportUrl":{"shape":"SupportUrl"} } }, + "ProviderName":{ + "type":"string", + "max":20, + "min":1 + }, "ProvisionProductInput":{ "type":"structure", "required":[ @@ -512,6 +1517,29 @@ }, "ProvisioningArtifactCreatedTime":{"type":"timestamp"}, "ProvisioningArtifactDescription":{"type":"string"}, + "ProvisioningArtifactDetail":{ + "type":"structure", + "members":{ + "Id":{"shape":"Id"}, + "Name":{"shape":"ProvisioningArtifactName"}, + "Description":{"shape":"ProvisioningArtifactName"}, + "Type":{"shape":"ProvisioningArtifactType"}, + "CreatedTime":{"shape":"CreationTime"} + } + }, + "ProvisioningArtifactDetails":{ + "type":"list", + "member":{"shape":"ProvisioningArtifactDetail"} + }, + "ProvisioningArtifactInfo":{ + "type":"map", + "key":{"shape":"ProvisioningArtifactInfoKey"}, + "value":{"shape":"ProvisioningArtifactInfoValue"}, + "max":1, + "min":1 + }, + "ProvisioningArtifactInfoKey":{"type":"string"}, + "ProvisioningArtifactInfoValue":{"type":"string"}, "ProvisioningArtifactName":{"type":"string"}, "ProvisioningArtifactParameter":{ "type":"structure", @@ -528,6 +1556,20 @@ "type":"list", "member":{"shape":"ProvisioningArtifactParameter"} }, + "ProvisioningArtifactProperties":{ + "type":"structure", + "required":["Info"], + "members":{ + "Name":{"shape":"ProvisioningArtifactName"}, + "Description":{"shape":"ProvisioningArtifactDescription"}, + "Info":{"shape":"ProvisioningArtifactInfo"}, + "Type":{"shape":"ProvisioningArtifactType"} + } + }, + "ProvisioningArtifactType":{ + "type":"string", + "enum":["CLOUD_FORMATION_TEMPLATE"] + }, "ProvisioningArtifacts":{ "type":"list", "member":{"shape":"ProvisioningArtifact"} @@ -618,9 +1660,33 @@ "RecordTags":{ "type":"list", "member":{"shape":"RecordTag"}, - "max":10 + "max":50 }, "RecordType":{"type":"string"}, + "RejectPortfolioShareInput":{ + "type":"structure", + "required":["PortfolioId"], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "PortfolioId":{"shape":"Id"} + } + }, + "RejectPortfolioShareOutput":{ + "type":"structure", + "members":{ + } + }, + "ResourceARN":{ + "type":"string", + "max":150, + "min":1 + }, + "ResourceInUseException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "ResourceNotFoundException":{ "type":"structure", "members":{ @@ -645,6 +1711,26 @@ }, "SearchFilterKey":{"type":"string"}, "SearchFilterValue":{"type":"string"}, + "SearchProductsAsAdminInput":{ + "type":"structure", + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "PortfolioId":{"shape":"Id"}, + "Filters":{"shape":"ProductViewFilters"}, + "SortBy":{"shape":"ProductViewSortBy"}, + "SortOrder":{"shape":"SortOrder"}, + "PageToken":{"shape":"PageToken"}, + "PageSize":{"shape":"PageSize"}, + "ProductSource":{"shape":"ProductSource"} + } + }, + "SearchProductsAsAdminOutput":{ + "type":"structure", + "members":{ + "ProductViewDetails":{"shape":"ProductViewDetails"}, + "NextPageToken":{"shape":"PageToken"} + } + }, "SearchProductsInput":{ "type":"structure", "members":{ @@ -671,11 +1757,23 @@ "DESCENDING" ] }, + "Status":{ + "type":"string", + "enum":[ + "AVAILABLE", + "CREATING", + "FAILED" + ] + }, "SupportDescription":{"type":"string"}, "SupportEmail":{"type":"string"}, "SupportUrl":{"type":"string"}, "Tag":{ "type":"structure", + "required":[ + "Key", + "Value" + ], "members":{ "Key":{"shape":"TagKey"}, "Value":{"shape":"TagValue"} @@ -685,18 +1783,22 @@ "type":"string", "max":128, "min":1, - "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-%@]*)$" + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + }, + "TagKeys":{ + "type":"list", + "member":{"shape":"TagKey"} }, "TagValue":{ "type":"string", "max":256, "min":1, - "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-%@]*)$" + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" }, "Tags":{ "type":"list", "member":{"shape":"Tag"}, - "max":10 + "max":50 }, "TerminateProvisionedProductInput":{ "type":"structure", @@ -718,6 +1820,67 @@ "RecordDetail":{"shape":"RecordDetail"} } }, + "UpdateConstraintInput":{ + "type":"structure", + "required":["Id"], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "Id":{"shape":"Id"}, + "Description":{"shape":"ConstraintDescription"} + } + }, + "UpdateConstraintOutput":{ + "type":"structure", + "members":{ + "ConstraintDetail":{"shape":"ConstraintDetail"}, + "ConstraintParameters":{"shape":"ConstraintParameters"}, + "Status":{"shape":"Status"} + } + }, + "UpdatePortfolioInput":{ + "type":"structure", + "required":["Id"], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "Id":{"shape":"Id"}, + "DisplayName":{"shape":"PortfolioDisplayName"}, + "Description":{"shape":"PortfolioDescription"}, + "ProviderName":{"shape":"ProviderName"}, + "AddTags":{"shape":"AddTags"}, + "RemoveTags":{"shape":"TagKeys"} + } + }, + "UpdatePortfolioOutput":{ + "type":"structure", + "members":{ + "PortfolioDetail":{"shape":"PortfolioDetail"}, + "Tags":{"shape":"Tags"} + } + }, + "UpdateProductInput":{ + "type":"structure", + "required":["Id"], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "Id":{"shape":"Id"}, + "Name":{"shape":"ProductViewName"}, + "Owner":{"shape":"ProductViewOwner"}, + "Description":{"shape":"ProductViewShortDescription"}, + "Distributor":{"shape":"ProductViewOwner"}, + "SupportDescription":{"shape":"SupportDescription"}, + "SupportEmail":{"shape":"SupportEmail"}, + "SupportUrl":{"shape":"SupportUrl"}, + "AddTags":{"shape":"AddTags"}, + "RemoveTags":{"shape":"TagKeys"} + } + }, + "UpdateProductOutput":{ + "type":"structure", + "members":{ + "ProductViewDetail":{"shape":"ProductViewDetail"}, + "Tags":{"shape":"Tags"} + } + }, "UpdateProvisionedProductInput":{ "type":"structure", "required":["UpdateToken"], @@ -741,6 +1904,28 @@ "RecordDetail":{"shape":"RecordDetail"} } }, + "UpdateProvisioningArtifactInput":{ + "type":"structure", + "required":[ + "ProductId", + "ProvisioningArtifactId" + ], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "ProductId":{"shape":"Id"}, + "ProvisioningArtifactId":{"shape":"Id"}, + "Name":{"shape":"ProvisioningArtifactName"}, + "Description":{"shape":"ProvisioningArtifactDescription"} + } + }, + "UpdateProvisioningArtifactOutput":{ + "type":"structure", + "members":{ + "ProvisioningArtifactDetail":{"shape":"ProvisioningArtifactDetail"}, + "Info":{"shape":"ProvisioningArtifactInfo"}, + "Status":{"shape":"Status"} + } + }, "UpdateProvisioningParameter":{ "type":"structure", "members":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/servicecatalog/2015-12-10/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/servicecatalog/2015-12-10/docs-2.json index 8f40c3802..225aa2560 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/servicecatalog/2015-12-10/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/servicecatalog/2015-12-10/docs-2.json @@ -2,33 +2,107 @@ "version": "2.0", "service": "AWS Service Catalog

Overview

AWS Service Catalog allows organizations to create and manage catalogs of IT services that are approved for use on AWS. This documentation provides reference material for the AWS Service Catalog end user API. To get the most out of this documentation, you need to be familiar with the terminology discussed in AWS Service Catalog Concepts.

Additional Resources

", "operations": { + "AcceptPortfolioShare": "

Accepts an offer to share a portfolio.

", + "AssociatePrincipalWithPortfolio": "

Associates the specified principal ARN with the specified portfolio.

", + "AssociateProductWithPortfolio": "

Associates a product with a portfolio.

", + "CreateConstraint": "

Creates a new constraint.

", + "CreatePortfolio": "

Creates a new portfolio.

", + "CreatePortfolioShare": "

Creates a new portfolio share.

", + "CreateProduct": "

Creates a new product.

", + "CreateProvisioningArtifact": "

Create a new provisioning artifact for the specified product. This operation will not work with a product that has been shared with you.

", + "DeleteConstraint": "

Deletes the specified constraint.

", + "DeletePortfolio": "

Deletes the specified portfolio. This operation will not work with a portfolio that has been shared with you or if it has products, users, constraints, or shared accounts associated with it.

", + "DeletePortfolioShare": "

Deletes the specified portfolio share.

", + "DeleteProduct": "

Deletes the specified product. This operation will not work with a product that has been shared with you or is associated with a portfolio.

", + "DeleteProvisioningArtifact": "

Deletes the specified provisioning artifact. This operation will not work on a provisioning artifact associated with a product that has been shared with you, or on the last provisioning artifact associated with a product (a product must have at least one provisioning artifact).

", + "DescribeConstraint": "

Retrieves detailed information for a specified constraint.

", + "DescribePortfolio": "

Retrieves detailed information and any tags associated with the specified portfolio.

", "DescribeProduct": "

Retrieves information about a specified product.

This operation is functionally identical to DescribeProductView except that it takes as input ProductId instead of ProductViewId.

", + "DescribeProductAsAdmin": "

Retrieves information about a specified product, run with administrator access.

", "DescribeProductView": "

Retrieves information about a specified product.

This operation is functionally identical to DescribeProduct except that it takes as input ProductViewId instead of ProductId.

", + "DescribeProvisioningArtifact": "

Retrieves detailed information about the specified provisioning artifact.

", "DescribeProvisioningParameters": "

Provides information about parameters required to provision a specified product in a specified manner. Use this operation to obtain the list of ProvisioningArtifactParameters parameters available to call the ProvisionProduct operation for the specified product.

", "DescribeRecord": "

Retrieves a paginated list of the full details of a specific request. Use this operation after calling a request operation (ProvisionProduct, TerminateProvisionedProduct, or UpdateProvisionedProduct).

", + "DisassociatePrincipalFromPortfolio": "

Disassociates a previously associated principal ARN from a specified portfolio.

", + "DisassociateProductFromPortfolio": "

Disassociates the specified product from the specified portfolio.

", + "ListAcceptedPortfolioShares": "

Lists details of all portfolios for which sharing was accepted by this account.

", + "ListConstraintsForPortfolio": "

Retrieves detailed constraint information for the specified portfolio and product.

", "ListLaunchPaths": "

Returns a paginated list of all paths to a specified product. A path is how the user has access to a specified product, and is necessary when provisioning a product. A path also determines the constraints put on the product.

", + "ListPortfolioAccess": "

Lists the account IDs that have been authorized sharing of the specified portfolio.

", + "ListPortfolios": "

Lists all portfolios in the catalog.

", + "ListPortfoliosForProduct": "

Lists all portfolios that the specified product is associated with.

", + "ListPrincipalsForPortfolio": "

Lists all principal ARNs associated with the specified portfolio.

", + "ListProvisioningArtifacts": "

Lists all provisioning artifacts associated with the specified product.

", "ListRecordHistory": "

Returns a paginated list of all performed requests, in the form of RecordDetails objects that are filtered as specified.

", "ProvisionProduct": "

Requests a Provision of a specified product. A ProvisionedProduct is a resourced instance for a product. For example, provisioning a CloudFormation-template-backed product results in launching a CloudFormation stack and all the underlying resources that come with it.

You can check the status of this request using the DescribeRecord operation.

", + "RejectPortfolioShare": "

Rejects an offer to share a portfolio.

", "ScanProvisionedProducts": "

Returns a paginated list of all the ProvisionedProduct objects that are currently available (not terminated).

", "SearchProducts": "

Returns a paginated list all of the Products objects to which the caller has access.

The output of this operation can be used as input for other operations, such as DescribeProductView.

", + "SearchProductsAsAdmin": "

Retrieves summary and status information about all products created within the caller's account. If a portfolio ID is provided, this operation retrieves information for only those products that are associated with the specified portfolio.

", "TerminateProvisionedProduct": "

Requests termination of an existing ProvisionedProduct object. If there are Tags associated with the object, they are terminated when the ProvisionedProduct object is terminated.

This operation does not delete any records associated with the ProvisionedProduct object.

You can check the status of this request using the DescribeRecord operation.

", - "UpdateProvisionedProduct": "

Requests updates to the configuration of an existing ProvisionedProduct object. If there are tags associated with the object, they cannot be updated or added with this operation. Depending on the specific updates requested, this operation may update with no interruption, with some interruption, or replace the ProvisionedProduct object entirely.

You can check the status of this request using the DescribeRecord operation.

" + "UpdateConstraint": "

Updates an existing constraint.

", + "UpdatePortfolio": "

Updates the specified portfolio's details. This operation will not work with a product that has been shared with you.

", + "UpdateProduct": "

Updates an existing product.

", + "UpdateProvisionedProduct": "

Requests updates to the configuration of an existing ProvisionedProduct object. If there are tags associated with the object, they cannot be updated or added with this operation. Depending on the specific updates requested, this operation may update with no interruption, with some interruption, or replace the ProvisionedProduct object entirely.

You can check the status of this request using the DescribeRecord operation.

", + "UpdateProvisioningArtifact": "

Updates an existing provisioning artifact's information. This operation will not work on a provisioning artifact associated with a product that has been shared with you.

" }, "shapes": { "AcceptLanguage": { "base": null, "refs": { + "AcceptPortfolioShareInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "AssociatePrincipalWithPortfolioInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "AssociateProductWithPortfolioInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "CreateConstraintInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "CreatePortfolioInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "CreatePortfolioShareInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "CreateProductInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "CreateProvisioningArtifactInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "DeleteConstraintInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "DeletePortfolioInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "DeletePortfolioShareInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "DeleteProductInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "DeleteProvisioningArtifactInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "DescribeConstraintInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "DescribePortfolioInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "DescribeProductAsAdminInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", "DescribeProductInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", "DescribeProductViewInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "DescribeProvisioningArtifactInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", "DescribeProvisioningParametersInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", "DescribeRecordInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "DisassociatePrincipalFromPortfolioInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "DisassociateProductFromPortfolioInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "ListAcceptedPortfolioSharesInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "ListConstraintsForPortfolioInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", "ListLaunchPathsInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "ListPortfolioAccessInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "ListPortfoliosForProductInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "ListPortfoliosInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "ListPrincipalsForPortfolioInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "ListProvisioningArtifactsInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", "ListRecordHistoryInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", "ProvisionProductInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "RejectPortfolioShareInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", "ScanProvisionedProductsInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "SearchProductsAsAdminInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", "SearchProductsInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", "TerminateProvisionedProductInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", - "UpdateProvisionedProductInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

" + "UpdateConstraintInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "UpdatePortfolioInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "UpdateProductInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "UpdateProvisionedProductInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

", + "UpdateProvisioningArtifactInput$AcceptLanguage": "

The language code to use for this operation. Supported language codes are as follows:

\"en\" (English)

\"jp\" (Japanese)

\"zh\" (Chinese)

If no code is specified, \"en\" is used as the default.

" + } + }, + "AcceptPortfolioShareInput": { + "base": null, + "refs": { + } + }, + "AcceptPortfolioShareOutput": { + "base": null, + "refs": { } }, "AccessLevelFilter": { @@ -50,6 +124,30 @@ "AccessLevelFilter$Value": "

Specifies the user to which the access level applies. A value of Self is currently supported.

" } }, + "AccountId": { + "base": null, + "refs": { + "AccountIds$member": null, + "ConstraintDetail$Owner": "

The owner of the constraint.

", + "CreatePortfolioShareInput$AccountId": "

The account ID with which to share the portfolio.

", + "DeletePortfolioShareInput$AccountId": "

The account ID associated with the share to delete.

" + } + }, + "AccountIds": { + "base": null, + "refs": { + "ListPortfolioAccessOutput$AccountIds": "

List of account IDs associated with access to the portfolio.

" + } + }, + "AddTags": { + "base": null, + "refs": { + "CreatePortfolioInput$Tags": "

Tags to associate with the new portfolio.

", + "CreateProductInput$Tags": "

Tags to associate with the new product.

", + "UpdatePortfolioInput$AddTags": "

Tags to add to the existing list of tags associated with the portfolio.

", + "UpdateProductInput$AddTags": "

Tags to add to the existing list of tags associated with the product.

" + } + }, "AllowedValue": { "base": null, "refs": { @@ -68,6 +166,26 @@ "ProductViewAggregationValue$ApproximateCount": "

An approximate count of the products that match the value.

" } }, + "AssociatePrincipalWithPortfolioInput": { + "base": null, + "refs": { + } + }, + "AssociatePrincipalWithPortfolioOutput": { + "base": null, + "refs": { + } + }, + "AssociateProductWithPortfolioInput": { + "base": null, + "refs": { + } + }, + "AssociateProductWithPortfolioOutput": { + "base": null, + "refs": { + } + }, "AttributeValue": { "base": null, "refs": { @@ -77,7 +195,34 @@ "ConstraintDescription": { "base": null, "refs": { - "ConstraintSummary$Description": "

The text description of the constraint.

" + "ConstraintDetail$Description": "

The text description of the constraint.

", + "ConstraintSummary$Description": "

The text description of the constraint.

", + "CreateConstraintInput$Description": "

The text description of the constraint.

", + "UpdateConstraintInput$Description": "

The updated text description of the constraint.

" + } + }, + "ConstraintDetail": { + "base": "

Detailed constraint information.

", + "refs": { + "ConstraintDetails$member": null, + "CreateConstraintOutput$ConstraintDetail": "

The resulting detailed constraint information.

", + "DescribeConstraintOutput$ConstraintDetail": "

Detailed constraint information.

", + "UpdateConstraintOutput$ConstraintDetail": "

The resulting detailed constraint information.

" + } + }, + "ConstraintDetails": { + "base": null, + "refs": { + "ListConstraintsForPortfolioOutput$ConstraintDetails": "

List of detailed constraint information objects.

" + } + }, + "ConstraintParameters": { + "base": null, + "refs": { + "CreateConstraintInput$Parameters": "

The constraint parameters.

", + "CreateConstraintOutput$ConstraintParameters": "

The resulting constraint parameters.

", + "DescribeConstraintOutput$ConstraintParameters": "

The current parameters associated with the specified constraint.

", + "UpdateConstraintOutput$ConstraintParameters": "

The resulting updated constraint parameters.

" } }, "ConstraintSummaries": { @@ -96,14 +241,74 @@ "ConstraintType": { "base": null, "refs": { - "ConstraintSummary$Type": "

The type of the constraint.

" + "ConstraintDetail$Type": "

The type of the constraint.

", + "ConstraintSummary$Type": "

The type of the constraint.

", + "CreateConstraintInput$Type": "

The type of the constraint.

" + } + }, + "CreateConstraintInput": { + "base": null, + "refs": { + } + }, + "CreateConstraintOutput": { + "base": null, + "refs": { + } + }, + "CreatePortfolioInput": { + "base": null, + "refs": { + } + }, + "CreatePortfolioOutput": { + "base": null, + "refs": { + } + }, + "CreatePortfolioShareInput": { + "base": null, + "refs": { + } + }, + "CreatePortfolioShareOutput": { + "base": null, + "refs": { + } + }, + "CreateProductInput": { + "base": null, + "refs": { + } + }, + "CreateProductOutput": { + "base": null, + "refs": { + } + }, + "CreateProvisioningArtifactInput": { + "base": null, + "refs": { + } + }, + "CreateProvisioningArtifactOutput": { + "base": null, + "refs": { } }, "CreatedTime": { "base": null, "refs": { - "ProvisionedProductDetail$CreatedTime": "

The time the ProvisionedProduct was created.

", - "RecordDetail$CreatedTime": "

The time when the record for the ProvisionedProduct object was created.

" + "ProductViewDetail$CreatedTime": "

The UTC timestamp of the creation time.

", + "ProvisionedProductDetail$CreatedTime": "

The UTC timestamp of the creation time.

", + "RecordDetail$CreatedTime": "

The UTC timestamp of the creation time.

" + } + }, + "CreationTime": { + "base": null, + "refs": { + "PortfolioDetail$CreatedTime": "

The UTC timestamp of the creation time.

", + "ProvisioningArtifactDetail$CreatedTime": "

The UTC timestamp of the creation time.

" } }, "DefaultValue": { @@ -112,6 +317,86 @@ "ProvisioningArtifactParameter$DefaultValue": "

The default value for this parameter.

" } }, + "DeleteConstraintInput": { + "base": null, + "refs": { + } + }, + "DeleteConstraintOutput": { + "base": null, + "refs": { + } + }, + "DeletePortfolioInput": { + "base": null, + "refs": { + } + }, + "DeletePortfolioOutput": { + "base": null, + "refs": { + } + }, + "DeletePortfolioShareInput": { + "base": null, + "refs": { + } + }, + "DeletePortfolioShareOutput": { + "base": null, + "refs": { + } + }, + "DeleteProductInput": { + "base": null, + "refs": { + } + }, + "DeleteProductOutput": { + "base": null, + "refs": { + } + }, + "DeleteProvisioningArtifactInput": { + "base": null, + "refs": { + } + }, + "DeleteProvisioningArtifactOutput": { + "base": null, + "refs": { + } + }, + "DescribeConstraintInput": { + "base": null, + "refs": { + } + }, + "DescribeConstraintOutput": { + "base": null, + "refs": { + } + }, + "DescribePortfolioInput": { + "base": null, + "refs": { + } + }, + "DescribePortfolioOutput": { + "base": null, + "refs": { + } + }, + "DescribeProductAsAdminInput": { + "base": null, + "refs": { + } + }, + "DescribeProductAsAdminOutput": { + "base": null, + "refs": { + } + }, "DescribeProductInput": { "base": null, "refs": { @@ -132,6 +417,16 @@ "refs": { } }, + "DescribeProvisioningArtifactInput": { + "base": null, + "refs": { + } + }, + "DescribeProvisioningArtifactOutput": { + "base": null, + "refs": { + } + }, "DescribeProvisioningParametersInput": { "base": null, "refs": { @@ -159,6 +454,26 @@ "RecordOutput$Description": "

The text description of the output.

" } }, + "DisassociatePrincipalFromPortfolioInput": { + "base": null, + "refs": { + } + }, + "DisassociatePrincipalFromPortfolioOutput": { + "base": null, + "refs": { + } + }, + "DisassociateProductFromPortfolioInput": { + "base": null, + "refs": { + } + }, + "DisassociateProductFromPortfolioOutput": { + "base": null, + "refs": { + } + }, "DuplicateResourceException": { "base": "

The specified resource is a duplicate.

", "refs": { @@ -185,37 +500,80 @@ "Id": { "base": null, "refs": { + "AcceptPortfolioShareInput$PortfolioId": "

The portfolio identifier.

", + "AssociatePrincipalWithPortfolioInput$PortfolioId": "

The portfolio identifier.

", + "AssociateProductWithPortfolioInput$ProductId": "

The product identifier.

", + "AssociateProductWithPortfolioInput$PortfolioId": "

The portfolio identifier.

", + "AssociateProductWithPortfolioInput$SourcePortfolioId": "

The identifier of the source portfolio to use with this association.

", + "ConstraintDetail$ConstraintId": "

The identifier of the constraint.

", + "CreateConstraintInput$PortfolioId": "

The portfolio identifier.

", + "CreateConstraintInput$ProductId": "

The product identifier.

", + "CreatePortfolioShareInput$PortfolioId": "

The portfolio identifier.

", + "CreateProvisioningArtifactInput$ProductId": "

The product identifier.

", + "DeleteConstraintInput$Id": "

The identifier of the constraint to delete.

", + "DeletePortfolioInput$Id": "

The identifier of the portfolio for the delete request.

", + "DeletePortfolioShareInput$PortfolioId": "

The portfolio identifier.

", + "DeleteProductInput$Id": "

The identifier of the product for the delete request.

", + "DeleteProvisioningArtifactInput$ProductId": "

The product identifier.

", + "DeleteProvisioningArtifactInput$ProvisioningArtifactId": "

The identifier of the provisioning artifact for the delete request.

", + "DescribeConstraintInput$Id": "

The identifier of the constraint.

", + "DescribePortfolioInput$Id": "

The identifier of the portfolio for which to retrieve information.

", + "DescribeProductAsAdminInput$Id": "

The identifier of the product for which to retrieve information.

", "DescribeProductInput$Id": "

The ProductId of the product to describe.

", "DescribeProductViewInput$Id": "

The ProductViewId of the product to describe.

", - "DescribeProvisioningParametersInput$ProductId": "

The identifier of the product.

", + "DescribeProvisioningArtifactInput$ProvisioningArtifactId": "

The identifier of the provisioning artifact.

", + "DescribeProvisioningArtifactInput$ProductId": "

The product identifier.

", + "DescribeProvisioningParametersInput$ProductId": "

The product identifier.

", "DescribeProvisioningParametersInput$ProvisioningArtifactId": "

The provisioning artifact identifier for this product.

", "DescribeProvisioningParametersInput$PathId": "

The identifier of the path for this product's provisioning. This value is optional if the product has a default path, and is required if there is more than one path for the specified product.

", "DescribeRecordInput$Id": "

The record identifier of the ProvisionedProduct object for which to retrieve output information. This is the RecordDetail.RecordId obtained from the request operation's response.

", + "DisassociatePrincipalFromPortfolioInput$PortfolioId": "

The portfolio identifier.

", + "DisassociateProductFromPortfolioInput$ProductId": "

The product identifier.

", + "DisassociateProductFromPortfolioInput$PortfolioId": "

The portfolio identifier.

", "LaunchPathSummary$Id": "

The unique identifier of the product path.

", - "ListLaunchPathsInput$ProductId": "

Identifies the product for which to retrieve LaunchPathSummaries information.

", + "ListConstraintsForPortfolioInput$PortfolioId": "

The portfolio identifier.

", + "ListConstraintsForPortfolioInput$ProductId": "

The product identifier.

", + "ListLaunchPathsInput$ProductId": "

The product identifier.. Identifies the product for which to retrieve LaunchPathSummaries information.

", + "ListPortfolioAccessInput$PortfolioId": "

The portfolio identifier.

", + "ListPortfoliosForProductInput$ProductId": "

The product identifier.

", + "ListPrincipalsForPortfolioInput$PortfolioId": "

The portfolio identifier.

", + "ListProvisioningArtifactsInput$ProductId": "

The product identifier.

", + "PortfolioDetail$Id": "

The identifier for the portfolio.

", "ProductViewSummary$Id": "

The product view identifier.

", "ProductViewSummary$ProductId": "

The product identifier.

", - "ProvisionProductInput$ProductId": "

The identifier of the product.

", + "ProvisionProductInput$ProductId": "

The product identifier.

", "ProvisionProductInput$ProvisioningArtifactId": "

The provisioning artifact identifier for this product.

", "ProvisionProductInput$PathId": "

The identifier of the path for this product's provisioning. This value is optional if the product has a default path, and is required if there is more than one path for the specified product.

", "ProvisioningArtifact$Id": "

The identifier for the artifact.

", + "ProvisioningArtifactDetail$Id": "

The identifier of the provisioning artifact.

", "RecordDetail$RecordId": "

The identifier of the ProvisionedProduct object record.

", "RecordDetail$ProvisionedProductId": "

The identifier of the ProvisionedProduct object.

", - "RecordDetail$ProductId": "

The identifier of the product.

", + "RecordDetail$ProductId": "

The product identifier.

", "RecordDetail$ProvisioningArtifactId": "

The provisioning artifact identifier for this product.

", "RecordDetail$PathId": "

The identifier of the path for this product's provisioning.

", + "RejectPortfolioShareInput$PortfolioId": "

The portfolio identifier.

", + "SearchProductsAsAdminInput$PortfolioId": "

The portfolio identifier.

", "TerminateProvisionedProductInput$ProvisionedProductId": "

The identifier of the ProvisionedProduct object to terminate. You must specify either ProvisionedProductName or ProvisionedProductId, but not both.

", + "UpdateConstraintInput$Id": "

The identifier of the constraint to update.

", + "UpdatePortfolioInput$Id": "

The identifier of the portfolio for the update request.

", + "UpdateProductInput$Id": "

The identifier of the product for the update request.

", "UpdateProvisionedProductInput$ProvisionedProductId": "

The identifier of the ProvisionedProduct object to update. You must specify either ProvisionedProductName or ProvisionedProductId, but not both.

", "UpdateProvisionedProductInput$ProductId": "

The identifier of the ProvisionedProduct object.

", "UpdateProvisionedProductInput$ProvisioningArtifactId": "

The provisioning artifact identifier for this product.

", - "UpdateProvisionedProductInput$PathId": "

The identifier of the path to use in the updated ProvisionedProduct object. This value is optional if the product has a default path, and is required if there is more than one path for the specified product.

" + "UpdateProvisionedProductInput$PathId": "

The identifier of the path to use in the updated ProvisionedProduct object. This value is optional if the product has a default path, and is required if there is more than one path for the specified product.

", + "UpdateProvisioningArtifactInput$ProductId": "

The product identifier.

", + "UpdateProvisioningArtifactInput$ProvisioningArtifactId": "

The identifier of the provisioning artifact for the update request.

" } }, "IdempotencyToken": { "base": null, "refs": { + "CreateConstraintInput$IdempotencyToken": "

A token to disambiguate duplicate requests. You can create multiple resources using the same input in multiple requests, provided that you also specify a different idempotency token for each request.

", + "CreatePortfolioInput$IdempotencyToken": "

A token to disambiguate duplicate requests. You can create multiple resources using the same input in multiple requests, provided that you also specify a different idempotency token for each request.

", + "CreateProductInput$IdempotencyToken": "

A token to disambiguate duplicate requests. You can create multiple resources using the same input in multiple requests, provided that you also specify a different idempotency token for each request.

", + "CreateProvisioningArtifactInput$IdempotencyToken": "

A token to disambiguate duplicate requests. You can create multiple resources using the same input in multiple requests, provided that you also specify a different idempotency token for each request.

", "ProvisionProductInput$ProvisionToken": "

An idempotency token that uniquely identifies the provisioning request.

", - "ProvisionedProductDetail$IdempotencyToken": "

An idempotency token that uniquely identifies this ProvisionedProduct.

", + "ProvisionedProductDetail$IdempotencyToken": "

A token to disambiguate duplicate requests. You can create multiple resources using the same input in multiple requests, provided that you also specify a different idempotency token for each request.

", "TerminateProvisionedProductInput$TerminateToken": "

An idempotency token that uniquely identifies the termination request. This token is only valid during the termination process. After the ProvisionedProduct object is terminated, further requests to terminate the same ProvisionedProduct object always return ResourceNotFound regardless of the value of TerminateToken.

", "UpdateProvisionedProductInput$UpdateToken": "

The idempotency token that uniquely identifies the provisioning update request.

" } @@ -261,6 +619,31 @@ "LaunchPathSummaries$member": null } }, + "LimitExceededException": { + "base": "

The current limits of the service would have been exceeded by this operation. Reduce the resource use or increase the service limits and retry the operation.

", + "refs": { + } + }, + "ListAcceptedPortfolioSharesInput": { + "base": null, + "refs": { + } + }, + "ListAcceptedPortfolioSharesOutput": { + "base": null, + "refs": { + } + }, + "ListConstraintsForPortfolioInput": { + "base": null, + "refs": { + } + }, + "ListConstraintsForPortfolioOutput": { + "base": null, + "refs": { + } + }, "ListLaunchPathsInput": { "base": null, "refs": { @@ -271,6 +654,56 @@ "refs": { } }, + "ListPortfolioAccessInput": { + "base": null, + "refs": { + } + }, + "ListPortfolioAccessOutput": { + "base": null, + "refs": { + } + }, + "ListPortfoliosForProductInput": { + "base": null, + "refs": { + } + }, + "ListPortfoliosForProductOutput": { + "base": null, + "refs": { + } + }, + "ListPortfoliosInput": { + "base": null, + "refs": { + } + }, + "ListPortfoliosOutput": { + "base": null, + "refs": { + } + }, + "ListPrincipalsForPortfolioInput": { + "base": null, + "refs": { + } + }, + "ListPrincipalsForPortfolioOutput": { + "base": null, + "refs": { + } + }, + "ListProvisioningArtifactsInput": { + "base": null, + "refs": { + } + }, + "ListProvisioningArtifactsOutput": { + "base": null, + "refs": { + } + }, "ListRecordHistoryInput": { "base": null, "refs": { @@ -321,9 +754,15 @@ "base": null, "refs": { "DescribeRecordInput$PageSize": "

The maximum number of items to return in the results. If more results exist than fit in the specified PageSize, the value of NextPageToken in the response is non-null.

", + "ListAcceptedPortfolioSharesInput$PageSize": "

The maximum number of items to return in the results. If more results exist than fit in the specified PageSize, the value of NextPageToken in the response is non-null.

", + "ListConstraintsForPortfolioInput$PageSize": "

The maximum number of items to return in the results. If more results exist than fit in the specified PageSize, the value of NextPageToken in the response is non-null.

", "ListLaunchPathsInput$PageSize": "

The maximum number of items to return in the results. If more results exist than fit in the specified PageSize, the value of NextPageToken in the response is non-null.

", + "ListPortfoliosForProductInput$PageSize": "

The maximum number of items to return in the results. If more results exist than fit in the specified PageSize, the value of NextPageToken in the response is non-null.

", + "ListPortfoliosInput$PageSize": "

The maximum number of items to return in the results. If more results exist than fit in the specified PageSize, the value of NextPageToken in the response is non-null.

", + "ListPrincipalsForPortfolioInput$PageSize": "

The maximum number of items to return in the results. If more results exist than fit in the specified PageSize, the value of NextPageToken in the response is non-null.

", "ListRecordHistoryInput$PageSize": "

The maximum number of items to return in the results. If more results exist than fit in the specified PageSize, the value of NextPageToken in the response is non-null.

", "ScanProvisionedProductsInput$PageSize": "

The maximum number of items to return in the results. If more results exist than fit in the specified PageSize, the value of NextPageToken in the response is non-null.

", + "SearchProductsAsAdminInput$PageSize": "

The maximum number of items to return in the results. If more results exist than fit in the specified PageSize, the value of NextPageToken in the response is non-null.

", "SearchProductsInput$PageSize": "

The maximum number of items to return in the results. If more results exist than fit in the specified PageSize, the value of NextPageToken in the response is non-null.

" } }, @@ -332,12 +771,26 @@ "refs": { "DescribeRecordInput$PageToken": "

The page token of the first page retrieved. If null, this retrieves the first page of size PageSize.

", "DescribeRecordOutput$NextPageToken": "

The page token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.

", + "ListAcceptedPortfolioSharesInput$PageToken": "

The page token of the first page retrieved. If null, this retrieves the first page of size PageSize.

", + "ListAcceptedPortfolioSharesOutput$NextPageToken": "

The page token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.

", + "ListConstraintsForPortfolioInput$PageToken": "

The page token of the first page retrieved. If null, this retrieves the first page of size PageSize.

", + "ListConstraintsForPortfolioOutput$NextPageToken": "

The page token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.

", "ListLaunchPathsInput$PageToken": "

The page token of the first page retrieved. If null, this retrieves the first page of size PageSize.

", "ListLaunchPathsOutput$NextPageToken": "

The page token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.

", + "ListPortfolioAccessOutput$NextPageToken": "

The page token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.

", + "ListPortfoliosForProductInput$PageToken": "

The page token of the first page retrieved. If null, this retrieves the first page of size PageSize.

", + "ListPortfoliosForProductOutput$NextPageToken": "

The page token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.

", + "ListPortfoliosInput$PageToken": "

The page token of the first page retrieved. If null, this retrieves the first page of size PageSize.

", + "ListPortfoliosOutput$NextPageToken": "

The page token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.

", + "ListPrincipalsForPortfolioInput$PageToken": "

The page token of the first page retrieved. If null, this retrieves the first page of size PageSize.

", + "ListPrincipalsForPortfolioOutput$NextPageToken": "

The page token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.

", + "ListProvisioningArtifactsOutput$NextPageToken": "

The page token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.

", "ListRecordHistoryInput$PageToken": "

The page token of the first page retrieved. If null, this retrieves the first page of size PageSize.

", "ListRecordHistoryOutput$NextPageToken": "

The page token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.

", "ScanProvisionedProductsInput$PageToken": "

The page token of the first page retrieved. If null, this retrieves the first page of size PageSize.

", "ScanProvisionedProductsOutput$NextPageToken": "

The page token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.

", + "SearchProductsAsAdminInput$PageToken": "

The page token of the first page retrieved. If null, this retrieves the first page of size PageSize.

", + "SearchProductsAsAdminOutput$NextPageToken": "

The page token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.

", "SearchProductsInput$PageToken": "

The page token of the first page retrieved. If null, this retrieves the first page of size PageSize.

", "SearchProductsOutput$NextPageToken": "

The page token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.

" } @@ -369,15 +822,82 @@ "UpdateProvisioningParameter$Value": "

The value to use for updating the product provisioning. Any constraints on this value can be found in the ProvisioningArtifactParameter parameter for Key.

" } }, + "PortfolioDescription": { + "base": null, + "refs": { + "CreatePortfolioInput$Description": "

The text description of the portfolio.

", + "PortfolioDetail$Description": "

The text description of the portfolio.

", + "UpdatePortfolioInput$Description": "

The updated text description of the portfolio.

" + } + }, + "PortfolioDetail": { + "base": "

Detailed portfolio information.

", + "refs": { + "CreatePortfolioOutput$PortfolioDetail": "

The resulting detailed portfolio information.

", + "DescribePortfolioOutput$PortfolioDetail": "

Detailed portfolio information.

", + "PortfolioDetails$member": null, + "UpdatePortfolioOutput$PortfolioDetail": "

The resulting detailed portfolio information.

" + } + }, + "PortfolioDetails": { + "base": null, + "refs": { + "ListAcceptedPortfolioSharesOutput$PortfolioDetails": "

List of detailed portfolio information objects.

", + "ListPortfoliosForProductOutput$PortfolioDetails": "

List of detailed portfolio information objects.

", + "ListPortfoliosOutput$PortfolioDetails": "

List of detailed portfolio information objects.

" + } + }, + "PortfolioDisplayName": { + "base": null, + "refs": { + "CreatePortfolioInput$DisplayName": "

The name to use for display purposes.

", + "PortfolioDetail$DisplayName": "

The name to use for display purposes.

", + "UpdatePortfolioInput$DisplayName": "

The name to use for display purposes.

" + } + }, "PortfolioName": { "base": null, "refs": { "LaunchPathSummary$Name": "

Corresponds to the name of the portfolio to which the user was assigned.

" } }, + "Principal": { + "base": "

A principal's ARN and type.

", + "refs": { + "Principals$member": null + } + }, + "PrincipalARN": { + "base": null, + "refs": { + "AssociatePrincipalWithPortfolioInput$PrincipalARN": "

The ARN representing the principal (IAM user, role, or group).

", + "DisassociatePrincipalFromPortfolioInput$PrincipalARN": "

The ARN representing the principal (IAM user, role, or group).

", + "Principal$PrincipalARN": "

The ARN representing the principal (IAM user, role, or group).

" + } + }, + "PrincipalType": { + "base": null, + "refs": { + "AssociatePrincipalWithPortfolioInput$PrincipalType": "

The principal type. Must be IAM

", + "Principal$PrincipalType": "

The principal type. Must be IAM

" + } + }, + "Principals": { + "base": null, + "refs": { + "ListPrincipalsForPortfolioOutput$Principals": "

The IAM principals (users or roles) associated with the portfolio.

" + } + }, + "ProductSource": { + "base": null, + "refs": { + "SearchProductsAsAdminInput$ProductSource": "

Access level of the source of the product.

" + } + }, "ProductType": { "base": null, "refs": { + "CreateProductInput$ProductType": "

The type of the product to create.

", "ProductViewSummary$Type": "

The product type. Contact the product administrator for the significance of this value.

" } }, @@ -405,6 +925,21 @@ "SearchProductsOutput$ProductViewAggregations": "

A list of the product view aggregation value objects.

" } }, + "ProductViewDetail": { + "base": "

Detailed product view information.

", + "refs": { + "CreateProductOutput$ProductViewDetail": "

The resulting detailed product view information.

", + "DescribeProductAsAdminOutput$ProductViewDetail": "

Detailed product view information.

", + "ProductViewDetails$member": null, + "UpdateProductOutput$ProductViewDetail": "

The resulting detailed product view information.

" + } + }, + "ProductViewDetails": { + "base": null, + "refs": { + "SearchProductsAsAdminOutput$ProductViewDetails": "

List of detailed product view information objects.

" + } + }, "ProductViewDistributor": { "base": null, "refs": { @@ -432,30 +967,40 @@ "ProductViewFilters": { "base": null, "refs": { + "SearchProductsAsAdminInput$Filters": "

The list of filters with which to limit search results. If no search filters are specified, the output is all the products to which the administrator has access.

", "SearchProductsInput$Filters": "

The list of filters with which to limit search results. If no search filters are specified, the output is all the products to which the calling user has access.

" } }, "ProductViewName": { "base": null, "refs": { - "ProductViewSummary$Name": "

The name of the product.

" + "CreateProductInput$Name": "

The name of the product.

", + "ProductViewSummary$Name": "

The name of the product.

", + "UpdateProductInput$Name": "

The updated product name.

" } }, "ProductViewOwner": { "base": null, "refs": { - "ProductViewSummary$Owner": "

The owner of the product. Contact the product administrator for the significance of this value.

" + "CreateProductInput$Owner": "

The owner of the product.

", + "CreateProductInput$Distributor": "

The distributor of the product.

", + "ProductViewSummary$Owner": "

The owner of the product. Contact the product administrator for the significance of this value.

", + "UpdateProductInput$Owner": "

The updated owner of the product.

", + "UpdateProductInput$Distributor": "

The updated distributor of the product.

" } }, "ProductViewShortDescription": { "base": null, "refs": { - "ProductViewSummary$ShortDescription": "

Short description of the product.

" + "CreateProductInput$Description": "

The text description of the product.

", + "ProductViewSummary$ShortDescription": "

Short description of the product.

", + "UpdateProductInput$Description": "

The updated text description of the product.

" } }, "ProductViewSortBy": { "base": null, "refs": { + "SearchProductsAsAdminInput$SortBy": "

The sort field specifier. If no value is specified, results are not sorted.

", "SearchProductsInput$SortBy": "

The sort field specifier. If no value is specified, results are not sorted.

" } }, @@ -470,9 +1015,18 @@ "refs": { "DescribeProductOutput$ProductViewSummary": "

The summary metadata about the specified product.

", "DescribeProductViewOutput$ProductViewSummary": "

The summary metadata about the specified product.

", + "ProductViewDetail$ProductViewSummary": "

The summary metadata about the specified product view.

", "ProductViewSummaries$member": null } }, + "ProviderName": { + "base": null, + "refs": { + "CreatePortfolioInput$ProviderName": "

The name of the portfolio provider.

", + "PortfolioDetail$ProviderName": "

The name of the portfolio provider.

", + "UpdatePortfolioInput$ProviderName": "

The updated name of the portfolio provider.

" + } + }, "ProvisionProductInput": { "base": null, "refs": { @@ -539,19 +1093,62 @@ "ProvisioningArtifactCreatedTime": { "base": null, "refs": { - "ProvisioningArtifact$CreatedTime": "

The time that the artifact was created by the Administrator.

" + "ProvisioningArtifact$CreatedTime": "

The UTC timestamp of the creation time.

" } }, "ProvisioningArtifactDescription": { "base": null, "refs": { - "ProvisioningArtifact$Description": "

The text description of the artifact.

" + "ProvisioningArtifact$Description": "

The text description of the artifact.

", + "ProvisioningArtifactProperties$Description": "

The text description of the provisioning artifact properties.

", + "UpdateProvisioningArtifactInput$Description": "

The updated text description of the provisioning artifact.

" + } + }, + "ProvisioningArtifactDetail": { + "base": "

Detailed provisioning artifact information.

", + "refs": { + "CreateProductOutput$ProvisioningArtifactDetail": "

The resulting detailed provisioning artifact information.

", + "CreateProvisioningArtifactOutput$ProvisioningArtifactDetail": "

The resulting detailed provisioning artifact information.

", + "DescribeProvisioningArtifactOutput$ProvisioningArtifactDetail": "

Detailed provisioning artifact information.

", + "ProvisioningArtifactDetails$member": null, + "UpdateProvisioningArtifactOutput$ProvisioningArtifactDetail": "

The resulting detailed provisioning artifact information.

" + } + }, + "ProvisioningArtifactDetails": { + "base": null, + "refs": { + "ListProvisioningArtifactsOutput$ProvisioningArtifactDetails": "

List of detailed provisioning artifact information objects.

" + } + }, + "ProvisioningArtifactInfo": { + "base": null, + "refs": { + "CreateProvisioningArtifactOutput$Info": "

Additional information about the provisioning artifact create request.

", + "DescribeProvisioningArtifactOutput$Info": "

Additional information about the provisioning artifact.

", + "ProvisioningArtifactProperties$Info": "

Additional information about the provisioning artifact properties.

", + "UpdateProvisioningArtifactOutput$Info": "

Additional information about the provisioning artifact update request.

" + } + }, + "ProvisioningArtifactInfoKey": { + "base": null, + "refs": { + "ProvisioningArtifactInfo$key": null + } + }, + "ProvisioningArtifactInfoValue": { + "base": null, + "refs": { + "ProvisioningArtifactInfo$value": null } }, "ProvisioningArtifactName": { "base": null, "refs": { - "ProvisioningArtifact$Name": "

The name of the artifact.

" + "ProvisioningArtifact$Name": "

The name of the artifact.

", + "ProvisioningArtifactDetail$Name": "

The name assigned to the provisioning artifact.

", + "ProvisioningArtifactDetail$Description": "

The text description of the provisioning artifact.

", + "ProvisioningArtifactProperties$Name": "

The name assigned to the provisioning artifact properties.

", + "UpdateProvisioningArtifactInput$Name": "

The updated name of the provisioning artifact.

" } }, "ProvisioningArtifactParameter": { @@ -566,6 +1163,20 @@ "DescribeProvisioningParametersOutput$ProvisioningArtifactParameters": "

The list of parameters used to successfully provision the product. Each parameter includes a list of allowable values and additional metadata about each parameter.

" } }, + "ProvisioningArtifactProperties": { + "base": "

Provisioning artifact properties.

", + "refs": { + "CreateProductInput$ProvisioningArtifactParameters": "

Parameters for the provisioning artifact.

", + "CreateProvisioningArtifactInput$Parameters": "

The parameters to use when creating the new provisioning artifact.

" + } + }, + "ProvisioningArtifactType": { + "base": null, + "refs": { + "ProvisioningArtifactDetail$Type": "

The type of the provisioning artifact.

", + "ProvisioningArtifactProperties$Type": "

The type of the provisioning artifact properties.

" + } + }, "ProvisioningArtifacts": { "base": null, "refs": { @@ -662,6 +1273,28 @@ "RecordDetail$RecordType": "

The record type for this record.

" } }, + "RejectPortfolioShareInput": { + "base": null, + "refs": { + } + }, + "RejectPortfolioShareOutput": { + "base": null, + "refs": { + } + }, + "ResourceARN": { + "base": null, + "refs": { + "PortfolioDetail$ARN": "

The ARN assigned to the portfolio.

", + "ProductViewDetail$ProductARN": "

The ARN associated with the product.

" + } + }, + "ResourceInUseException": { + "base": "

The operation was requested against a resource that is currently in use. Free the resource from use and retry the operation.

", + "refs": { + } + }, "ResourceNotFoundException": { "base": "

The specified resource was not found.

", "refs": { @@ -689,6 +1322,16 @@ "ListRecordHistorySearchFilter$Value": "

The filter value for Key.

" } }, + "SearchProductsAsAdminInput": { + "base": null, + "refs": { + } + }, + "SearchProductsAsAdminOutput": { + "base": null, + "refs": { + } + }, "SearchProductsInput": { "base": null, "refs": { @@ -702,37 +1345,65 @@ "SortOrder": { "base": null, "refs": { + "SearchProductsAsAdminInput$SortOrder": "

The sort order specifier. If no value is specified, results are not sorted.

", "SearchProductsInput$SortOrder": "

The sort order specifier. If no value is specified, results are not sorted.

" } }, + "Status": { + "base": null, + "refs": { + "CreateConstraintOutput$Status": "

The status of the current request.

", + "CreateProvisioningArtifactOutput$Status": "

The status of the current request.

", + "DescribeConstraintOutput$Status": "

The status of the current request.

", + "DescribeProvisioningArtifactOutput$Status": "

The status of the current request.

", + "ProductViewDetail$Status": "

Current status of the product.

", + "UpdateConstraintOutput$Status": "

The status of the current request.

", + "UpdateProvisioningArtifactOutput$Status": "

The status of the current request.

" + } + }, "SupportDescription": { "base": null, "refs": { - "ProductViewSummary$SupportDescription": "

The description of the support for this Product.

" + "CreateProductInput$SupportDescription": "

Support information about the product.

", + "ProductViewSummary$SupportDescription": "

The description of the support for this Product.

", + "UpdateProductInput$SupportDescription": "

The updated support description for the product.

" } }, "SupportEmail": { "base": null, "refs": { - "ProductViewSummary$SupportEmail": "

The email contact information to obtain support for this Product.

" + "CreateProductInput$SupportEmail": "

Contact email for product support.

", + "ProductViewSummary$SupportEmail": "

The email contact information to obtain support for this Product.

", + "UpdateProductInput$SupportEmail": "

The updated support email for the product.

" } }, "SupportUrl": { "base": null, "refs": { - "ProductViewSummary$SupportUrl": "

The URL information to obtain support for this Product.

" + "CreateProductInput$SupportUrl": "

Contact URL for product support.

", + "ProductViewSummary$SupportUrl": "

The URL information to obtain support for this Product.

", + "UpdateProductInput$SupportUrl": "

The updated support URL for the product.

" } }, "Tag": { "base": "

Key/value pairs to associate with this provisioning. These tags are entirely discretionary and are propagated to the resources created in the provisioning.

", "refs": { + "AddTags$member": null, "Tags$member": null } }, "TagKey": { "base": null, "refs": { - "Tag$Key": "

The ProvisioningArtifactParameter.TagKey parameter from DescribeProvisioningParameters.

" + "Tag$Key": "

The ProvisioningArtifactParameter.TagKey parameter from DescribeProvisioningParameters.

", + "TagKeys$member": null + } + }, + "TagKeys": { + "base": null, + "refs": { + "UpdatePortfolioInput$RemoveTags": "

Tags to remove from the existing list of tags associated with the portfolio.

", + "UpdateProductInput$RemoveTags": "

Tags to remove from the existing list of tags associated with the product.

" } }, "TagValue": { @@ -744,8 +1415,14 @@ "Tags": { "base": null, "refs": { + "CreatePortfolioOutput$Tags": "

Tags successfully associated with the new portfolio.

", + "CreateProductOutput$Tags": "

Tags successfully associated with the new product.

", + "DescribePortfolioOutput$Tags": "

Tags associated with the portfolio.

", + "DescribeProductAsAdminOutput$Tags": "

Tags associated with the product.

", "LaunchPathSummary$Tags": "

List of tags used by this launch path.

", - "ProvisionProductInput$Tags": "

A list of tags to use as provisioning options.

" + "ProvisionProductInput$Tags": "

A list of tags to use as provisioning options.

", + "UpdatePortfolioOutput$Tags": "

Tags associated with the portfolio.

", + "UpdateProductOutput$Tags": "

Tags associated with the product.

" } }, "TerminateProvisionedProductInput": { @@ -758,6 +1435,36 @@ "refs": { } }, + "UpdateConstraintInput": { + "base": null, + "refs": { + } + }, + "UpdateConstraintOutput": { + "base": null, + "refs": { + } + }, + "UpdatePortfolioInput": { + "base": null, + "refs": { + } + }, + "UpdatePortfolioOutput": { + "base": null, + "refs": { + } + }, + "UpdateProductInput": { + "base": null, + "refs": { + } + }, + "UpdateProductOutput": { + "base": null, + "refs": { + } + }, "UpdateProvisionedProductInput": { "base": null, "refs": { @@ -768,6 +1475,16 @@ "refs": { } }, + "UpdateProvisioningArtifactInput": { + "base": null, + "refs": { + } + }, + "UpdateProvisioningArtifactOutput": { + "base": null, + "refs": { + } + }, "UpdateProvisioningParameter": { "base": "

The parameter key/value pair used to update a ProvisionedProduct object. If UsePreviousValue is set to true, Value is ignored and the value for Key is kept as previously set (current value).

", "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/shield/2016-06-02/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/shield/2016-06-02/api-2.json new file mode 100644 index 000000000..90e117cc2 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/shield/2016-06-02/api-2.json @@ -0,0 +1,494 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2016-06-02", + "endpointPrefix":"shield", + "jsonVersion":"1.1", + "protocol":"json", + "serviceAbbreviation":"AWS Shield", + "serviceFullName":"AWS Shield", + "signatureVersion":"v4", + "targetPrefix":"AWSShield_20160616", + "uid":"shield-2016-06-02" + }, + "operations":{ + "CreateProtection":{ + "name":"CreateProtection", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateProtectionRequest"}, + "output":{"shape":"CreateProtectionResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"InvalidResourceException"}, + {"shape":"InvalidOperationException"}, + {"shape":"LimitsExceededException"}, + {"shape":"ResourceAlreadyExistsException"}, + {"shape":"OptimisticLockException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "CreateSubscription":{ + "name":"CreateSubscription", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateSubscriptionRequest"}, + "output":{"shape":"CreateSubscriptionResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"ResourceAlreadyExistsException"} + ] + }, + "DeleteProtection":{ + "name":"DeleteProtection", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteProtectionRequest"}, + "output":{"shape":"DeleteProtectionResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"OptimisticLockException"} + ] + }, + "DeleteSubscription":{ + "name":"DeleteSubscription", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteSubscriptionRequest"}, + "output":{"shape":"DeleteSubscriptionResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"LockedSubscriptionException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DescribeAttack":{ + "name":"DescribeAttack", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeAttackRequest"}, + "output":{"shape":"DescribeAttackResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"InvalidParameterException"} + ] + }, + "DescribeProtection":{ + "name":"DescribeProtection", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeProtectionRequest"}, + "output":{"shape":"DescribeProtectionResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DescribeSubscription":{ + "name":"DescribeSubscription", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeSubscriptionRequest"}, + "output":{"shape":"DescribeSubscriptionResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ListAttacks":{ + "name":"ListAttacks", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAttacksRequest"}, + "output":{"shape":"ListAttacksResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InvalidOperationException"} + ] + }, + "ListProtections":{ + "name":"ListProtections", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListProtectionsRequest"}, + "output":{"shape":"ListProtectionsResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"ResourceNotFoundException"} + ] + } + }, + "shapes":{ + "AttackDetail":{ + "type":"structure", + "members":{ + "AttackId":{"shape":"AttackId"}, + "ResourceArn":{"shape":"ResourceArn"}, + "SubResources":{"shape":"SubResourceSummaryList"}, + "StartTime":{"shape":"AttackTimestamp"}, + "EndTime":{"shape":"AttackTimestamp"}, + "AttackCounters":{"shape":"SummarizedCounterList"}, + "Mitigations":{"shape":"MitigationList"} + } + }, + "AttackId":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[a-zA-Z0-9\\\\-]*" + }, + "AttackSummaries":{ + "type":"list", + "member":{"shape":"AttackSummary"} + }, + "AttackSummary":{ + "type":"structure", + "members":{ + "AttackId":{"shape":"String"}, + "ResourceArn":{"shape":"String"}, + "StartTime":{"shape":"AttackTimestamp"}, + "EndTime":{"shape":"AttackTimestamp"}, + "AttackVectors":{"shape":"AttackVectorDescriptionList"} + } + }, + "AttackTimestamp":{"type":"timestamp"}, + "AttackVectorDescription":{ + "type":"structure", + "required":["VectorType"], + "members":{ + "VectorType":{"shape":"String"} + } + }, + "AttackVectorDescriptionList":{ + "type":"list", + "member":{"shape":"AttackVectorDescription"} + }, + "CreateProtectionRequest":{ + "type":"structure", + "required":[ + "Name", + "ResourceArn" + ], + "members":{ + "Name":{"shape":"ProtectionName"}, + "ResourceArn":{"shape":"ResourceArn"} + } + }, + "CreateProtectionResponse":{ + "type":"structure", + "members":{ + "ProtectionId":{"shape":"ProtectionId"} + } + }, + "CreateSubscriptionRequest":{ + "type":"structure", + "members":{ + } + }, + "CreateSubscriptionResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteProtectionRequest":{ + "type":"structure", + "required":["ProtectionId"], + "members":{ + "ProtectionId":{"shape":"ProtectionId"} + } + }, + "DeleteProtectionResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteSubscriptionRequest":{ + "type":"structure", + "members":{ + } + }, + "DeleteSubscriptionResponse":{ + "type":"structure", + "members":{ + } + }, + "DescribeAttackRequest":{ + "type":"structure", + "required":["AttackId"], + "members":{ + "AttackId":{"shape":"AttackId"} + } + }, + "DescribeAttackResponse":{ + "type":"structure", + "members":{ + "Attack":{"shape":"AttackDetail"} + } + }, + "DescribeProtectionRequest":{ + "type":"structure", + "required":["ProtectionId"], + "members":{ + "ProtectionId":{"shape":"ProtectionId"} + } + }, + "DescribeProtectionResponse":{ + "type":"structure", + "members":{ + "Protection":{"shape":"Protection"} + } + }, + "DescribeSubscriptionRequest":{ + "type":"structure", + "members":{ + } + }, + "DescribeSubscriptionResponse":{ + "type":"structure", + "members":{ + "Subscription":{"shape":"Subscription"} + } + }, + "Double":{"type":"double"}, + "DurationInSeconds":{ + "type":"long", + "min":0 + }, + "Integer":{"type":"integer"}, + "InternalErrorException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true, + "fault":true + }, + "InvalidOperationException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, + "InvalidParameterException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, + "InvalidResourceException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, + "LimitNumber":{"type":"long"}, + "LimitType":{"type":"string"}, + "LimitsExceededException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"}, + "Type":{"shape":"LimitType"}, + "Limit":{"shape":"LimitNumber"} + }, + "exception":true + }, + "ListAttacksRequest":{ + "type":"structure", + "members":{ + "ResourceArns":{"shape":"ResourceArnFilterList"}, + "StartTime":{"shape":"TimeRange"}, + "EndTime":{"shape":"TimeRange"}, + "NextToken":{"shape":"Token"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "ListAttacksResponse":{ + "type":"structure", + "members":{ + "AttackSummaries":{"shape":"AttackSummaries"}, + "NextToken":{"shape":"Token"} + } + }, + "ListProtectionsRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"Token"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "ListProtectionsResponse":{ + "type":"structure", + "members":{ + "Protections":{"shape":"Protections"}, + "NextToken":{"shape":"Token"} + } + }, + "LockedSubscriptionException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, + "MaxResults":{ + "type":"integer", + "box":true, + "max":100, + "min":0 + }, + "Mitigation":{ + "type":"structure", + "members":{ + "MitigationName":{"shape":"String"} + } + }, + "MitigationList":{ + "type":"list", + "member":{"shape":"Mitigation"} + }, + "OptimisticLockException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, + "Protection":{ + "type":"structure", + "members":{ + "Id":{"shape":"ProtectionId"}, + "Name":{"shape":"ProtectionName"}, + "ResourceArn":{"shape":"ResourceArn"} + } + }, + "ProtectionId":{ + "type":"string", + "max":36, + "min":1, + "pattern":"[a-zA-Z0-9\\\\-]*" + }, + "ProtectionName":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[ a-zA-Z0-9_\\\\.\\\\-]*" + }, + "Protections":{ + "type":"list", + "member":{"shape":"Protection"} + }, + "ResourceAlreadyExistsException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, + "ResourceArn":{ + "type":"string", + "min":1 + }, + "ResourceArnFilterList":{ + "type":"list", + "member":{"shape":"ResourceArn"} + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, + "String":{"type":"string"}, + "SubResourceSummary":{ + "type":"structure", + "members":{ + "Type":{"shape":"SubResourceType"}, + "Id":{"shape":"String"}, + "AttackVectors":{"shape":"SummarizedAttackVectorList"}, + "Counters":{"shape":"SummarizedCounterList"} + } + }, + "SubResourceSummaryList":{ + "type":"list", + "member":{"shape":"SubResourceSummary"} + }, + "SubResourceType":{ + "type":"string", + "enum":[ + "IP", + "URL" + ] + }, + "Subscription":{ + "type":"structure", + "members":{ + "StartTime":{"shape":"Timestamp"}, + "TimeCommitmentInSeconds":{"shape":"DurationInSeconds"} + } + }, + "SummarizedAttackVector":{ + "type":"structure", + "required":["VectorType"], + "members":{ + "VectorType":{"shape":"String"}, + "VectorCounters":{"shape":"SummarizedCounterList"} + } + }, + "SummarizedAttackVectorList":{ + "type":"list", + "member":{"shape":"SummarizedAttackVector"} + }, + "SummarizedCounter":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "Max":{"shape":"Double"}, + "Average":{"shape":"Double"}, + "Sum":{"shape":"Double"}, + "N":{"shape":"Integer"}, + "Unit":{"shape":"String"} + } + }, + "SummarizedCounterList":{ + "type":"list", + "member":{"shape":"SummarizedCounter"} + }, + "TimeRange":{ + "type":"structure", + "members":{ + "FromInclusive":{"shape":"AttackTimestamp"}, + "ToExclusive":{"shape":"AttackTimestamp"} + } + }, + "Timestamp":{"type":"timestamp"}, + "Token":{ + "type":"string", + "min":1 + }, + "errorMessage":{"type":"string"} + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/shield/2016-06-02/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/shield/2016-06-02/docs-2.json new file mode 100644 index 000000000..52b52c2bb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/shield/2016-06-02/docs-2.json @@ -0,0 +1,394 @@ +{ + "version": "2.0", + "service": "AWS Shield Advanced

This is the AWS Shield Advanced API Reference. This guide is for developers who need detailed information about the AWS Shield Advanced API actions, data types, and errors. For detailed information about AWS WAF and AWS Shield Advanced features and an overview of how to use the AWS WAF and AWS Shield Advanced APIs, see the AWS WAF and AWS Shield Developer Guide.

", + "operations": { + "CreateProtection": "

Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, or an Amazon Route 53 hosted zone.

", + "CreateSubscription": "

Activates AWS Shield Advanced for an account.

", + "DeleteProtection": "

Deletes an AWS Shield Advanced Protection.

", + "DeleteSubscription": "

Removes AWS Shield Advanced from an account.

", + "DescribeAttack": "

Describes the details of a DDoS attack.

", + "DescribeProtection": "

Lists the details of a Protection object.

", + "DescribeSubscription": "

Provides details about the AWS Shield Advanced subscription for an account.

", + "ListAttacks": "

Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period.

", + "ListProtections": "

Lists all Protection objects for the account.

" + }, + "shapes": { + "AttackDetail": { + "base": "

The details of a DDoS attack.

", + "refs": { + "DescribeAttackResponse$Attack": "

The attack that is described.

" + } + }, + "AttackId": { + "base": null, + "refs": { + "AttackDetail$AttackId": "

The unique identifier (ID) of the attack.

", + "DescribeAttackRequest$AttackId": "

The unique identifier (ID) for the attack that to be described.

" + } + }, + "AttackSummaries": { + "base": null, + "refs": { + "ListAttacksResponse$AttackSummaries": "

The attack information for the specified time range.

" + } + }, + "AttackSummary": { + "base": "

Summarizes all DDoS attacks for a specified time period.

", + "refs": { + "AttackSummaries$member": null + } + }, + "AttackTimestamp": { + "base": null, + "refs": { + "AttackDetail$StartTime": "

The time the attack started, in the format 2016-12-16T13:50Z.

", + "AttackDetail$EndTime": "

The time the attack ended, in the format 2016-12-16T13:50Z.

", + "AttackSummary$StartTime": "

The start time of the attack, in the format 2016-12-16T13:50Z.

", + "AttackSummary$EndTime": "

The end time of the attack, in the format 2016-12-16T13:50Z.

", + "TimeRange$FromInclusive": "

The start time, in the format 2016-12-16T13:50Z.

", + "TimeRange$ToExclusive": "

The end time, in the format 2016-12-16T15:50Z.

" + } + }, + "AttackVectorDescription": { + "base": "

Describes the attack.

", + "refs": { + "AttackVectorDescriptionList$member": null + } + }, + "AttackVectorDescriptionList": { + "base": null, + "refs": { + "AttackSummary$AttackVectors": "

The list of attacks for a specified time period.

" + } + }, + "CreateProtectionRequest": { + "base": null, + "refs": { + } + }, + "CreateProtectionResponse": { + "base": null, + "refs": { + } + }, + "CreateSubscriptionRequest": { + "base": null, + "refs": { + } + }, + "CreateSubscriptionResponse": { + "base": null, + "refs": { + } + }, + "DeleteProtectionRequest": { + "base": null, + "refs": { + } + }, + "DeleteProtectionResponse": { + "base": null, + "refs": { + } + }, + "DeleteSubscriptionRequest": { + "base": null, + "refs": { + } + }, + "DeleteSubscriptionResponse": { + "base": null, + "refs": { + } + }, + "DescribeAttackRequest": { + "base": null, + "refs": { + } + }, + "DescribeAttackResponse": { + "base": null, + "refs": { + } + }, + "DescribeProtectionRequest": { + "base": null, + "refs": { + } + }, + "DescribeProtectionResponse": { + "base": null, + "refs": { + } + }, + "DescribeSubscriptionRequest": { + "base": null, + "refs": { + } + }, + "DescribeSubscriptionResponse": { + "base": null, + "refs": { + } + }, + "Double": { + "base": null, + "refs": { + "SummarizedCounter$Max": "

The maximum value of the counter for a specified time period.

", + "SummarizedCounter$Average": "

The average value of the counter for a specified time period.

", + "SummarizedCounter$Sum": "

The total of counter values for a specified time period.

" + } + }, + "DurationInSeconds": { + "base": null, + "refs": { + "Subscription$TimeCommitmentInSeconds": "

The length, in seconds, of the AWS Shield Advanced subscription for the account.

" + } + }, + "Integer": { + "base": null, + "refs": { + "SummarizedCounter$N": "

The number of counters for a specified time period.

" + } + }, + "InternalErrorException": { + "base": "

Exception that indicates that a problem occurred with the service infrastructure. You can retry the request.

", + "refs": { + } + }, + "InvalidOperationException": { + "base": "

Exception that indicates that the operation would not cause any change to occur.

", + "refs": { + } + }, + "InvalidParameterException": { + "base": "

Exception that indicates that the parameters passed to the API are invalid.

", + "refs": { + } + }, + "InvalidResourceException": { + "base": "

Exception that indicates that the resource is invalid. You might not have access to the resource, or the resource might not exist.

", + "refs": { + } + }, + "LimitNumber": { + "base": null, + "refs": { + "LimitsExceededException$Limit": null + } + }, + "LimitType": { + "base": null, + "refs": { + "LimitsExceededException$Type": null + } + }, + "LimitsExceededException": { + "base": "

Exception that indicates that the operation would exceed a limit.

", + "refs": { + } + }, + "ListAttacksRequest": { + "base": null, + "refs": { + } + }, + "ListAttacksResponse": { + "base": null, + "refs": { + } + }, + "ListProtectionsRequest": { + "base": null, + "refs": { + } + }, + "ListProtectionsResponse": { + "base": null, + "refs": { + } + }, + "LockedSubscriptionException": { + "base": "

Exception that indicates that the subscription has been modified by another client. You can retry the request.

", + "refs": { + } + }, + "MaxResults": { + "base": null, + "refs": { + "ListAttacksRequest$MaxResults": "

The maximum number of AttackSummary objects to be returned. If this is left blank, the first 20 results will be returned.

", + "ListProtectionsRequest$MaxResults": "

The maximum number of Protection objects to be returned. If this is left blank the first 20 results will be returned.

" + } + }, + "Mitigation": { + "base": "

The mitigation applied to a DDoS attack.

", + "refs": { + "MitigationList$member": null + } + }, + "MitigationList": { + "base": null, + "refs": { + "AttackDetail$Mitigations": "

List of mitigation actions taken for the attack.

" + } + }, + "OptimisticLockException": { + "base": "

Exception that indicates that the protection state has been modified by another client. You can retry the request.

", + "refs": { + } + }, + "Protection": { + "base": "

An object that represents a resource that is under DDoS protection.

", + "refs": { + "DescribeProtectionResponse$Protection": "

The Protection object that is described.

", + "Protections$member": null + } + }, + "ProtectionId": { + "base": null, + "refs": { + "CreateProtectionResponse$ProtectionId": "

The unique identifier (ID) for the Protection object that is created.

", + "DeleteProtectionRequest$ProtectionId": "

The unique identifier (ID) for the Protection object to be deleted.

", + "DescribeProtectionRequest$ProtectionId": "

The unique identifier (ID) for the Protection object that is described.

", + "Protection$Id": "

The unique identifier (ID) of the protection.

" + } + }, + "ProtectionName": { + "base": null, + "refs": { + "CreateProtectionRequest$Name": "

Friendly name for the Protection you are creating.

", + "Protection$Name": "

The friendly name of the protection. For example, My CloudFront distributions.

" + } + }, + "Protections": { + "base": null, + "refs": { + "ListProtectionsResponse$Protections": "

The array of enabled Protection objects.

" + } + }, + "ResourceAlreadyExistsException": { + "base": "

Exception indicating the specified resource already exists.

", + "refs": { + } + }, + "ResourceArn": { + "base": null, + "refs": { + "AttackDetail$ResourceArn": "

The ARN (Amazon Resource Name) of the resource that was attacked.

", + "CreateProtectionRequest$ResourceArn": "

The ARN (Amazon Resource Name) of the resource to be protected.

", + "Protection$ResourceArn": "

The ARN (Amazon Resource Name) of the AWS resource that is protected.

", + "ResourceArnFilterList$member": null + } + }, + "ResourceArnFilterList": { + "base": null, + "refs": { + "ListAttacksRequest$ResourceArns": "

The ARN (Amazon Resource Name) of the resource that was attacked. If this is left blank, all applicable resources for this account will be included.

" + } + }, + "ResourceNotFoundException": { + "base": "

Exception indicating the specified resource does not exist.

", + "refs": { + } + }, + "String": { + "base": null, + "refs": { + "AttackSummary$AttackId": "

The unique identifier (ID) of the attack.

", + "AttackSummary$ResourceArn": "

The ARN (Amazon Resource Name) of the resource that was attacked.

", + "AttackVectorDescription$VectorType": "

The attack type, for example, SNMP reflection or SYN flood.

", + "Mitigation$MitigationName": "

The name of the mitigation taken for this attack.

", + "SubResourceSummary$Id": "

The unique identifier (ID) of the SubResource.

", + "SummarizedAttackVector$VectorType": "

The attack type, for example, SNMP reflection or SYN flood.

", + "SummarizedCounter$Name": "

The counter name.

", + "SummarizedCounter$Unit": "

The unit of the counters.

" + } + }, + "SubResourceSummary": { + "base": "

The attack information for the specified SubResource.

", + "refs": { + "SubResourceSummaryList$member": null + } + }, + "SubResourceSummaryList": { + "base": null, + "refs": { + "AttackDetail$SubResources": "

If applicable, additional detail about the resource being attacked, for example, IP address or URL.

" + } + }, + "SubResourceType": { + "base": null, + "refs": { + "SubResourceSummary$Type": "

The SubResource type.

" + } + }, + "Subscription": { + "base": "

Information about the AWS Shield Advanced subscription for an account.

", + "refs": { + "DescribeSubscriptionResponse$Subscription": "

The AWS Shield Advanced subscription details for an account.

" + } + }, + "SummarizedAttackVector": { + "base": "

A summary of information about the attack.

", + "refs": { + "SummarizedAttackVectorList$member": null + } + }, + "SummarizedAttackVectorList": { + "base": null, + "refs": { + "SubResourceSummary$AttackVectors": "

The list of attack types and associated counters.

" + } + }, + "SummarizedCounter": { + "base": "

The counter that describes a DDoS attack.

", + "refs": { + "SummarizedCounterList$member": null + } + }, + "SummarizedCounterList": { + "base": null, + "refs": { + "AttackDetail$AttackCounters": "

List of counters that describe the attack for the specified time period.

", + "SubResourceSummary$Counters": "

The counters that describe the details of the attack.

", + "SummarizedAttackVector$VectorCounters": "

The list of counters that describe the details of the attack.

" + } + }, + "TimeRange": { + "base": "

The time range.

", + "refs": { + "ListAttacksRequest$StartTime": "

The time period for the attacks.

", + "ListAttacksRequest$EndTime": "

The end of the time period for the attacks.

" + } + }, + "Timestamp": { + "base": null, + "refs": { + "Subscription$StartTime": "

The start time of the subscription, in the format \"2016-12-16T13:50Z\".

" + } + }, + "Token": { + "base": null, + "refs": { + "ListAttacksRequest$NextToken": "

The ListAttacksRequest.NextMarker value from a previous call to ListAttacksRequest. Pass null if this is the first call.

", + "ListAttacksResponse$NextToken": "

The token returned by a previous call to indicate that there is more data available. If not null, more results are available. Pass this value for the NextMarker parameter in a subsequent call to ListAttacks to retrieve the next set of items.

", + "ListProtectionsRequest$NextToken": "

The ListProtectionsRequest.NextToken value from a previous call to ListProtections. Pass null if this is the first call.

", + "ListProtectionsResponse$NextToken": "

If you specify a value for MaxResults and you have more Protections than the value of MaxResults, AWS Shield Advanced returns a NextToken value in the response that allows you to list another group of Protections. For the second and subsequent ListProtections requests, specify the value of NextToken from the previous response to get information about another batch of Protections.

" + } + }, + "errorMessage": { + "base": null, + "refs": { + "InternalErrorException$message": null, + "InvalidOperationException$message": null, + "InvalidParameterException$message": null, + "InvalidResourceException$message": null, + "LimitsExceededException$message": null, + "LockedSubscriptionException$message": null, + "OptimisticLockException$message": null, + "ResourceAlreadyExistsException$message": null, + "ResourceNotFoundException$message": null + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/shield/2016-06-02/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/shield/2016-06-02/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/shield/2016-06-02/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sms/2016-10-24/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sms/2016-10-24/api-2.json new file mode 100644 index 000000000..4df02ea95 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/sms/2016-10-24/api-2.json @@ -0,0 +1,612 @@ +{ + "version":"2.0", + "metadata":{ + "uid":"sms-2016-10-24", + "apiVersion":"2016-10-24", + "endpointPrefix":"sms", + "jsonVersion":"1.1", + "protocol":"json", + "serviceAbbreviation":"SMS", + "serviceFullName":"AWS Server Migration Service", + "signatureVersion":"v4", + "targetPrefix":"AWSServerMigrationService_V2016_10_24" + }, + "operations":{ + "CreateReplicationJob":{ + "name":"CreateReplicationJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateReplicationJobRequest"}, + "output":{"shape":"CreateReplicationJobResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"ServerCannotBeReplicatedException"}, + {"shape":"ReplicationJobAlreadyExistsException"}, + {"shape":"NoConnectorsAvailableException"}, + {"shape":"InternalError"} + ] + }, + "DeleteReplicationJob":{ + "name":"DeleteReplicationJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteReplicationJobRequest"}, + "output":{"shape":"DeleteReplicationJobResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"ReplicationJobNotFoundException"} + ] + }, + "DeleteServerCatalog":{ + "name":"DeleteServerCatalog", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteServerCatalogRequest"}, + "output":{"shape":"DeleteServerCatalogResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"} + ] + }, + "DisassociateConnector":{ + "name":"DisassociateConnector", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociateConnectorRequest"}, + "output":{"shape":"DisassociateConnectorResponse"}, + "errors":[ + {"shape":"MissingRequiredParameterException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"InvalidParameterException"} + ] + }, + "GetConnectors":{ + "name":"GetConnectors", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetConnectorsRequest"}, + "output":{"shape":"GetConnectorsResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"} + ] + }, + "GetReplicationJobs":{ + "name":"GetReplicationJobs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetReplicationJobsRequest"}, + "output":{"shape":"GetReplicationJobsResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"UnauthorizedOperationException"} + ] + }, + "GetReplicationRuns":{ + "name":"GetReplicationRuns", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetReplicationRunsRequest"}, + "output":{"shape":"GetReplicationRunsResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"UnauthorizedOperationException"} + ] + }, + "GetServers":{ + "name":"GetServers", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetServersRequest"}, + "output":{"shape":"GetServersResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"} + ] + }, + "ImportServerCatalog":{ + "name":"ImportServerCatalog", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ImportServerCatalogRequest"}, + "output":{"shape":"ImportServerCatalogResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"NoConnectorsAvailableException"} + ] + }, + "StartOnDemandReplicationRun":{ + "name":"StartOnDemandReplicationRun", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartOnDemandReplicationRunRequest"}, + "output":{"shape":"StartOnDemandReplicationRunResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"ReplicationRunLimitExceededException"} + ] + }, + "UpdateReplicationJob":{ + "name":"UpdateReplicationJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateReplicationJobRequest"}, + "output":{"shape":"UpdateReplicationJobResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"ServerCannotBeReplicatedException"}, + {"shape":"ReplicationJobNotFoundException"}, + {"shape":"InternalError"} + ] + } + }, + "shapes":{ + "AmiId":{"type":"string"}, + "Connector":{ + "type":"structure", + "members":{ + "connectorId":{"shape":"ConnectorId"}, + "version":{"shape":"ConnectorVersion"}, + "status":{"shape":"ConnectorStatus"}, + "capabilityList":{"shape":"ConnectorCapabilityList"}, + "vmManagerName":{"shape":"VmManagerName"}, + "vmManagerType":{"shape":"VmManagerType"}, + "vmManagerId":{"shape":"VmManagerId"}, + "ipAddress":{"shape":"IpAddress"}, + "macAddress":{"shape":"MacAddress"}, + "associatedOn":{"shape":"Timestamp"} + } + }, + "ConnectorCapability":{ + "type":"string", + "enum":["VSPHERE"] + }, + "ConnectorCapabilityList":{ + "type":"list", + "member":{ + "shape":"ConnectorCapability", + "locationName":"item" + } + }, + "ConnectorId":{"type":"string"}, + "ConnectorList":{ + "type":"list", + "member":{ + "shape":"Connector", + "locationName":"item" + } + }, + "ConnectorStatus":{ + "type":"string", + "enum":[ + "HEALTHY", + "UNHEALTHY" + ] + }, + "ConnectorVersion":{"type":"string"}, + "CreateReplicationJobRequest":{ + "type":"structure", + "required":[ + "serverId", + "seedReplicationTime", + "frequency" + ], + "members":{ + "serverId":{"shape":"ServerId"}, + "seedReplicationTime":{"shape":"Timestamp"}, + "frequency":{"shape":"Frequency"}, + "licenseType":{"shape":"LicenseType"}, + "roleName":{"shape":"RoleName"}, + "description":{"shape":"Description"} + } + }, + "CreateReplicationJobResponse":{ + "type":"structure", + "members":{ + "replicationJobId":{"shape":"ReplicationJobId"} + } + }, + "DeleteReplicationJobRequest":{ + "type":"structure", + "required":["replicationJobId"], + "members":{ + "replicationJobId":{"shape":"ReplicationJobId"} + } + }, + "DeleteReplicationJobResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteServerCatalogRequest":{ + "type":"structure", + "members":{ + } + }, + "DeleteServerCatalogResponse":{ + "type":"structure", + "members":{ + } + }, + "Description":{"type":"string"}, + "DisassociateConnectorRequest":{ + "type":"structure", + "required":["connectorId"], + "members":{ + "connectorId":{"shape":"ConnectorId"} + } + }, + "DisassociateConnectorResponse":{ + "type":"structure", + "members":{ + } + }, + "ErrorMessage":{"type":"string"}, + "Frequency":{"type":"integer"}, + "GetConnectorsRequest":{ + "type":"structure", + "members":{ + "nextToken":{"shape":"NextToken"}, + "maxResults":{"shape":"MaxResults"} + } + }, + "GetConnectorsResponse":{ + "type":"structure", + "members":{ + "connectorList":{"shape":"ConnectorList"}, + "nextToken":{"shape":"NextToken"} + } + }, + "GetReplicationJobsRequest":{ + "type":"structure", + "members":{ + "replicationJobId":{"shape":"ReplicationJobId"}, + "nextToken":{"shape":"NextToken"}, + "maxResults":{"shape":"MaxResults"} + } + }, + "GetReplicationJobsResponse":{ + "type":"structure", + "members":{ + "replicationJobList":{"shape":"ReplicationJobList"}, + "nextToken":{"shape":"NextToken"} + } + }, + "GetReplicationRunsRequest":{ + "type":"structure", + "required":["replicationJobId"], + "members":{ + "replicationJobId":{"shape":"ReplicationJobId"}, + "nextToken":{"shape":"NextToken"}, + "maxResults":{"shape":"MaxResults"} + } + }, + "GetReplicationRunsResponse":{ + "type":"structure", + "members":{ + "replicationJob":{"shape":"ReplicationJob"}, + "replicationRunList":{"shape":"ReplicationRunList"}, + "nextToken":{"shape":"NextToken"} + } + }, + "GetServersRequest":{ + "type":"structure", + "members":{ + "nextToken":{"shape":"NextToken"}, + "maxResults":{"shape":"MaxResults"} + } + }, + "GetServersResponse":{ + "type":"structure", + "members":{ + "lastModifiedOn":{"shape":"Timestamp"}, + "serverCatalogStatus":{"shape":"ServerCatalogStatus"}, + "serverList":{"shape":"ServerList"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ImportServerCatalogRequest":{ + "type":"structure", + "members":{ + } + }, + "ImportServerCatalogResponse":{ + "type":"structure", + "members":{ + } + }, + "InternalError":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true, + "fault":true + }, + "InvalidParameterException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "IpAddress":{"type":"string"}, + "LicenseType":{ + "type":"string", + "enum":[ + "AWS", + "BYOL" + ] + }, + "MacAddress":{"type":"string"}, + "MaxResults":{"type":"integer"}, + "MissingRequiredParameterException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "NextToken":{"type":"string"}, + "NoConnectorsAvailableException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "OperationNotPermittedException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ReplicationJob":{ + "type":"structure", + "members":{ + "replicationJobId":{"shape":"ReplicationJobId"}, + "serverId":{"shape":"ServerId"}, + "serverType":{"shape":"ServerType"}, + "vmServer":{"shape":"VmServer"}, + "seedReplicationTime":{"shape":"Timestamp"}, + "frequency":{"shape":"Frequency"}, + "nextReplicationRunStartTime":{"shape":"Timestamp"}, + "licenseType":{"shape":"LicenseType"}, + "roleName":{"shape":"RoleName"}, + "latestAmiId":{"shape":"AmiId"}, + "state":{"shape":"ReplicationJobState"}, + "statusMessage":{"shape":"ReplicationJobStatusMessage"}, + "description":{"shape":"Description"}, + "replicationRunList":{"shape":"ReplicationRunList"} + } + }, + "ReplicationJobAlreadyExistsException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ReplicationJobId":{"type":"string"}, + "ReplicationJobList":{ + "type":"list", + "member":{ + "shape":"ReplicationJob", + "locationName":"item" + } + }, + "ReplicationJobNotFoundException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ReplicationJobState":{ + "type":"string", + "enum":[ + "PENDING", + "ACTIVE", + "FAILED", + "DELETING", + "DELETED" + ] + }, + "ReplicationJobStatusMessage":{"type":"string"}, + "ReplicationJobTerminated":{"type":"boolean"}, + "ReplicationRun":{ + "type":"structure", + "members":{ + "replicationRunId":{"shape":"ReplicationRunId"}, + "state":{"shape":"ReplicationRunState"}, + "type":{"shape":"ReplicationRunType"}, + "statusMessage":{"shape":"ReplicationRunStatusMessage"}, + "amiId":{"shape":"AmiId"}, + "scheduledStartTime":{"shape":"Timestamp"}, + "completedTime":{"shape":"Timestamp"}, + "description":{"shape":"Description"} + } + }, + "ReplicationRunId":{"type":"string"}, + "ReplicationRunLimitExceededException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ReplicationRunList":{ + "type":"list", + "member":{ + "shape":"ReplicationRun", + "locationName":"item" + } + }, + "ReplicationRunState":{ + "type":"string", + "enum":[ + "PENDING", + "MISSED", + "ACTIVE", + "FAILED", + "COMPLETED", + "DELETING", + "DELETED" + ] + }, + "ReplicationRunStatusMessage":{"type":"string"}, + "ReplicationRunType":{ + "type":"string", + "enum":[ + "ON_DEMAND", + "AUTOMATIC" + ] + }, + "RoleName":{"type":"string"}, + "Server":{ + "type":"structure", + "members":{ + "serverId":{"shape":"ServerId"}, + "serverType":{"shape":"ServerType"}, + "vmServer":{"shape":"VmServer"}, + "replicationJobId":{"shape":"ReplicationJobId"}, + "replicationJobTerminated":{"shape":"ReplicationJobTerminated"} + } + }, + "ServerCannotBeReplicatedException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ServerCatalogStatus":{ + "type":"string", + "enum":[ + "NOT_IMPORTED", + "IMPORTING", + "AVAILABLE", + "DELETED", + "EXPIRED" + ] + }, + "ServerId":{"type":"string"}, + "ServerList":{ + "type":"list", + "member":{ + "shape":"Server", + "locationName":"item" + } + }, + "ServerType":{ + "type":"string", + "enum":["VIRTUAL_MACHINE"] + }, + "StartOnDemandReplicationRunRequest":{ + "type":"structure", + "required":["replicationJobId"], + "members":{ + "replicationJobId":{"shape":"ReplicationJobId"}, + "description":{"shape":"Description"} + } + }, + "StartOnDemandReplicationRunResponse":{ + "type":"structure", + "members":{ + "replicationRunId":{"shape":"ReplicationRunId"} + } + }, + "Timestamp":{"type":"timestamp"}, + "UnauthorizedOperationException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "UpdateReplicationJobRequest":{ + "type":"structure", + "required":["replicationJobId"], + "members":{ + "replicationJobId":{"shape":"ReplicationJobId"}, + "frequency":{"shape":"Frequency"}, + "nextReplicationRunStartTime":{"shape":"Timestamp"}, + "licenseType":{"shape":"LicenseType"}, + "roleName":{"shape":"RoleName"}, + "description":{"shape":"Description"} + } + }, + "UpdateReplicationJobResponse":{ + "type":"structure", + "members":{ + } + }, + "VmId":{"type":"string"}, + "VmManagerId":{"type":"string"}, + "VmManagerName":{"type":"string"}, + "VmManagerType":{ + "type":"string", + "enum":["VSPHERE"] + }, + "VmName":{"type":"string"}, + "VmPath":{"type":"string"}, + "VmServer":{ + "type":"structure", + "members":{ + "vmServerAddress":{"shape":"VmServerAddress"}, + "vmName":{"shape":"VmName"}, + "vmManagerName":{"shape":"VmManagerName"}, + "vmManagerType":{"shape":"VmManagerType"}, + "vmPath":{"shape":"VmPath"} + } + }, + "VmServerAddress":{ + "type":"structure", + "members":{ + "vmManagerId":{"shape":"VmManagerId"}, + "vmId":{"shape":"VmId"} + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sms/2016-10-24/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sms/2016-10-24/docs-2.json new file mode 100644 index 000000000..a4d9d5222 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/sms/2016-10-24/docs-2.json @@ -0,0 +1,492 @@ +{ + "version": "2.0", + "service": "Amazon Server Migration Service automates the process of migrating servers to EC2.", + "operations": { + "CreateReplicationJob": "The CreateReplicationJob API is used to create a ReplicationJob to replicate a server on AWS. Call this API to first create a ReplicationJob, which will then schedule periodic ReplicationRuns to replicate your server to AWS. Each ReplicationRun will result in the creation of an AWS AMI.", + "DeleteReplicationJob": "The DeleteReplicationJob API is used to delete a ReplicationJob, resulting in no further ReplicationRuns. This will delete the contents of the S3 bucket used to store SMS artifacts, but will not delete any AMIs created by the SMS service.", + "DeleteServerCatalog": "The DeleteServerCatalog API clears all servers from your server catalog. This means that these servers will no longer be accessible to the Server Migration Service.", + "DisassociateConnector": "The DisassociateConnector API will disassociate a connector from the Server Migration Service, rendering it unavailable to support replication jobs.", + "GetConnectors": "The GetConnectors API returns a list of connectors that are registered with the Server Migration Service.", + "GetReplicationJobs": "The GetReplicationJobs API will return all of your ReplicationJobs and their details. This API returns a paginated list, that may be consecutively called with nextToken to retrieve all ReplicationJobs.", + "GetReplicationRuns": "The GetReplicationRuns API will return all ReplicationRuns for a given ReplicationJob. This API returns a paginated list, that may be consecutively called with nextToken to retrieve all ReplicationRuns for a ReplicationJob.", + "GetServers": "The GetServers API returns a list of all servers in your server catalog. For this call to succeed, you must previously have called ImportServerCatalog.", + "ImportServerCatalog": "The ImportServerCatalog API is used to gather the complete list of on-premises servers on your premises. This API call requires connectors to be installed and monitoring all servers you would like imported. This API call returns immediately, but may take some time to retrieve all of the servers.", + "StartOnDemandReplicationRun": "The StartOnDemandReplicationRun API is used to start a ReplicationRun on demand (in addition to those that are scheduled based on your frequency). This ReplicationRun will start immediately. StartOnDemandReplicationRun is subject to limits on how many on demand ReplicationRuns you may call per 24-hour period.", + "UpdateReplicationJob": "The UpdateReplicationJob API is used to change the settings of your existing ReplicationJob created using CreateReplicationJob. Calling this API will affect the next scheduled ReplicationRun." + }, + "shapes": { + "AmiId": { + "base": "The AMI id for the image resulting from a Replication Run.", + "refs": { + "ReplicationJob$latestAmiId": null, + "ReplicationRun$amiId": null + } + }, + "Connector": { + "base": "Object representing a Connector", + "refs": { + "ConnectorList$member": null + } + }, + "ConnectorCapability": { + "base": "Capabilities for a Connector", + "refs": { + "ConnectorCapabilityList$member": null + } + }, + "ConnectorCapabilityList": { + "base": "List of Connector Capabilities", + "refs": { + "Connector$capabilityList": null + } + }, + "ConnectorId": { + "base": "Unique Identifier for Connector", + "refs": { + "Connector$connectorId": null, + "DisassociateConnectorRequest$connectorId": null + } + }, + "ConnectorList": { + "base": "List of connectors", + "refs": { + "GetConnectorsResponse$connectorList": null + } + }, + "ConnectorStatus": { + "base": "Status of on-premise Connector", + "refs": { + "Connector$status": null + } + }, + "ConnectorVersion": { + "base": "Connector version string", + "refs": { + "Connector$version": null + } + }, + "CreateReplicationJobRequest": { + "base": null, + "refs": { + } + }, + "CreateReplicationJobResponse": { + "base": null, + "refs": { + } + }, + "DeleteReplicationJobRequest": { + "base": null, + "refs": { + } + }, + "DeleteReplicationJobResponse": { + "base": null, + "refs": { + } + }, + "DeleteServerCatalogRequest": { + "base": null, + "refs": { + } + }, + "DeleteServerCatalogResponse": { + "base": null, + "refs": { + } + }, + "Description": { + "base": "The description for a Replication Job/Run.", + "refs": { + "CreateReplicationJobRequest$description": null, + "ReplicationJob$description": null, + "ReplicationRun$description": null, + "StartOnDemandReplicationRunRequest$description": null, + "UpdateReplicationJobRequest$description": null + } + }, + "DisassociateConnectorRequest": { + "base": null, + "refs": { + } + }, + "DisassociateConnectorResponse": { + "base": null, + "refs": { + } + }, + "ErrorMessage": { + "base": "Error Message string", + "refs": { + "InternalError$message": null, + "InvalidParameterException$message": null, + "MissingRequiredParameterException$message": null, + "NoConnectorsAvailableException$message": null, + "OperationNotPermittedException$message": null, + "ReplicationJobAlreadyExistsException$message": null, + "ReplicationJobNotFoundException$message": null, + "ReplicationRunLimitExceededException$message": null, + "ServerCannotBeReplicatedException$message": null, + "UnauthorizedOperationException$message": null + } + }, + "Frequency": { + "base": "Interval between Replication Runs. This value is specified in hours, and represents the time between consecutive Replication Runs.", + "refs": { + "CreateReplicationJobRequest$frequency": null, + "ReplicationJob$frequency": null, + "UpdateReplicationJobRequest$frequency": null + } + }, + "GetConnectorsRequest": { + "base": null, + "refs": { + } + }, + "GetConnectorsResponse": { + "base": null, + "refs": { + } + }, + "GetReplicationJobsRequest": { + "base": null, + "refs": { + } + }, + "GetReplicationJobsResponse": { + "base": null, + "refs": { + } + }, + "GetReplicationRunsRequest": { + "base": null, + "refs": { + } + }, + "GetReplicationRunsResponse": { + "base": null, + "refs": { + } + }, + "GetServersRequest": { + "base": null, + "refs": { + } + }, + "GetServersResponse": { + "base": null, + "refs": { + } + }, + "ImportServerCatalogRequest": { + "base": null, + "refs": { + } + }, + "ImportServerCatalogResponse": { + "base": null, + "refs": { + } + }, + "InternalError": { + "base": "An internal error has occured.", + "refs": { + } + }, + "InvalidParameterException": { + "base": "A parameter specified in the request is not valid, is unsupported, or cannot be used.", + "refs": { + } + }, + "IpAddress": { + "base": "Internet Protocol (IP) Address", + "refs": { + "Connector$ipAddress": null + } + }, + "LicenseType": { + "base": "The license type to be used for the Amazon Machine Image (AMI) created after a successful ReplicationRun.", + "refs": { + "CreateReplicationJobRequest$licenseType": null, + "ReplicationJob$licenseType": null, + "UpdateReplicationJobRequest$licenseType": null + } + }, + "MacAddress": { + "base": "Hardware (MAC) address", + "refs": { + "Connector$macAddress": null + } + }, + "MaxResults": { + "base": "The maximum number of results to return in one API call. If left empty, this will default to 50.", + "refs": { + "GetConnectorsRequest$maxResults": null, + "GetReplicationJobsRequest$maxResults": null, + "GetReplicationRunsRequest$maxResults": null, + "GetServersRequest$maxResults": null + } + }, + "MissingRequiredParameterException": { + "base": "The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request.", + "refs": { + } + }, + "NextToken": { + "base": "Pagination token to pass as input to API call", + "refs": { + "GetConnectorsRequest$nextToken": null, + "GetConnectorsResponse$nextToken": null, + "GetReplicationJobsRequest$nextToken": null, + "GetReplicationJobsResponse$nextToken": null, + "GetReplicationRunsRequest$nextToken": null, + "GetReplicationRunsResponse$nextToken": null, + "GetServersRequest$nextToken": null, + "GetServersResponse$nextToken": null + } + }, + "NoConnectorsAvailableException": { + "base": "No connectors are available to handle this request. Please associate connector(s) and verify any existing connectors are healthy and can respond to requests.", + "refs": { + } + }, + "OperationNotPermittedException": { + "base": "The specified operation is not allowed. This error can occur for a number of reasons; for example, you might be trying to start a Replication Run before seed Replication Run.", + "refs": { + } + }, + "ReplicationJob": { + "base": "Object representing a Replication Job", + "refs": { + "GetReplicationRunsResponse$replicationJob": null, + "ReplicationJobList$member": null + } + }, + "ReplicationJobAlreadyExistsException": { + "base": "An active Replication Job already exists for the specified server.", + "refs": { + } + }, + "ReplicationJobId": { + "base": "The unique identifier for a Replication Job.", + "refs": { + "CreateReplicationJobResponse$replicationJobId": null, + "DeleteReplicationJobRequest$replicationJobId": null, + "GetReplicationJobsRequest$replicationJobId": null, + "GetReplicationRunsRequest$replicationJobId": null, + "ReplicationJob$replicationJobId": null, + "Server$replicationJobId": null, + "StartOnDemandReplicationRunRequest$replicationJobId": null, + "UpdateReplicationJobRequest$replicationJobId": null + } + }, + "ReplicationJobList": { + "base": "List of Replication Jobs", + "refs": { + "GetReplicationJobsResponse$replicationJobList": null + } + }, + "ReplicationJobNotFoundException": { + "base": "The specified Replication Job cannot be found.", + "refs": { + } + }, + "ReplicationJobState": { + "base": "Current state of Replication Job", + "refs": { + "ReplicationJob$state": null + } + }, + "ReplicationJobStatusMessage": { + "base": "String describing current status of Replication Job", + "refs": { + "ReplicationJob$statusMessage": null + } + }, + "ReplicationJobTerminated": { + "base": "An indicator of the Replication Job being deleted or failed.", + "refs": { + "Server$replicationJobTerminated": null + } + }, + "ReplicationRun": { + "base": "Object representing a Replication Run", + "refs": { + "ReplicationRunList$member": null + } + }, + "ReplicationRunId": { + "base": "The unique identifier for a Replication Run.", + "refs": { + "ReplicationRun$replicationRunId": null, + "StartOnDemandReplicationRunResponse$replicationRunId": null + } + }, + "ReplicationRunLimitExceededException": { + "base": "This user has exceeded the maximum allowed Replication Run limit.", + "refs": { + } + }, + "ReplicationRunList": { + "base": "List of Replication Runs", + "refs": { + "GetReplicationRunsResponse$replicationRunList": null, + "ReplicationJob$replicationRunList": null + } + }, + "ReplicationRunState": { + "base": "Current state of Replication Run", + "refs": { + "ReplicationRun$state": null + } + }, + "ReplicationRunStatusMessage": { + "base": "String describing current status of Replication Run", + "refs": { + "ReplicationRun$statusMessage": null + } + }, + "ReplicationRunType": { + "base": "Type of Replication Run", + "refs": { + "ReplicationRun$type": null + } + }, + "RoleName": { + "base": "Name of service role in customer's account to be used by SMS service.", + "refs": { + "CreateReplicationJobRequest$roleName": null, + "ReplicationJob$roleName": null, + "UpdateReplicationJobRequest$roleName": null + } + }, + "Server": { + "base": "Object representing a server", + "refs": { + "ServerList$member": null + } + }, + "ServerCannotBeReplicatedException": { + "base": "The provided server cannot be replicated.", + "refs": { + } + }, + "ServerCatalogStatus": { + "base": "Status of Server catalog", + "refs": { + "GetServersResponse$serverCatalogStatus": null + } + }, + "ServerId": { + "base": "Unique Identifier for a server", + "refs": { + "CreateReplicationJobRequest$serverId": null, + "ReplicationJob$serverId": null, + "Server$serverId": null + } + }, + "ServerList": { + "base": "List of servers from catalog", + "refs": { + "GetServersResponse$serverList": null + } + }, + "ServerType": { + "base": "Type of server.", + "refs": { + "ReplicationJob$serverType": null, + "Server$serverType": null + } + }, + "StartOnDemandReplicationRunRequest": { + "base": null, + "refs": { + } + }, + "StartOnDemandReplicationRunResponse": { + "base": null, + "refs": { + } + }, + "Timestamp": { + "base": "Timestamp of an operation", + "refs": { + "Connector$associatedOn": null, + "CreateReplicationJobRequest$seedReplicationTime": null, + "GetServersResponse$lastModifiedOn": null, + "ReplicationJob$seedReplicationTime": null, + "ReplicationJob$nextReplicationRunStartTime": null, + "ReplicationRun$scheduledStartTime": null, + "ReplicationRun$completedTime": null, + "UpdateReplicationJobRequest$nextReplicationRunStartTime": null + } + }, + "UnauthorizedOperationException": { + "base": "This user does not have permissions to perform this operation.", + "refs": { + } + }, + "UpdateReplicationJobRequest": { + "base": null, + "refs": { + } + }, + "UpdateReplicationJobResponse": { + "base": null, + "refs": { + } + }, + "VmId": { + "base": "Unique Identifier for a VM", + "refs": { + "VmServerAddress$vmId": null + } + }, + "VmManagerId": { + "base": "Unique Identifier for VM Manager", + "refs": { + "Connector$vmManagerId": null, + "VmServerAddress$vmManagerId": null + } + }, + "VmManagerName": { + "base": "VM Manager Name", + "refs": { + "Connector$vmManagerName": null, + "VmServer$vmManagerName": null + } + }, + "VmManagerType": { + "base": "VM Management Product", + "refs": { + "Connector$vmManagerType": null, + "VmServer$vmManagerType": null + } + }, + "VmName": { + "base": "Name of Virtual Machine", + "refs": { + "VmServer$vmName": null + } + }, + "VmPath": { + "base": "Path to VM", + "refs": { + "VmServer$vmPath": null + } + }, + "VmServer": { + "base": "Object representing a VM server", + "refs": { + "ReplicationJob$vmServer": null, + "Server$vmServer": null + } + }, + "VmServerAddress": { + "base": "Object representing a server's location", + "refs": { + "VmServer$vmServerAddress": null + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sms/2016-10-24/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sms/2016-10-24/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/sms/2016-10-24/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sms/2016-10-24/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sms/2016-10-24/paginators-1.json new file mode 100644 index 000000000..6523699ab --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/sms/2016-10-24/paginators-1.json @@ -0,0 +1,28 @@ +{ + "pagination":{ + "GetReplicationJobs": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "replicationJobList" + }, + "GetReplicationRuns": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "replicationRunList" + }, + "GetConnectors": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "connectorList" + }, + "GetServers": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "serverList" + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/snowball/2016-06-30/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/snowball/2016-06-30/api-2.json index 70d8eafcd..088a0ca7b 100755 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/snowball/2016-06-30/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/snowball/2016-06-30/api-2.json @@ -8,9 +8,24 @@ "serviceAbbreviation":"Amazon Snowball", "serviceFullName":"Amazon Import/Export Snowball", "signatureVersion":"v4", - "targetPrefix":"AWSIESnowballJobManagementService" + "targetPrefix":"AWSIESnowballJobManagementService", + "uid":"snowball-2016-06-30" }, "operations":{ + "CancelCluster":{ + "name":"CancelCluster", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CancelClusterRequest"}, + "output":{"shape":"CancelClusterResult"}, + "errors":[ + {"shape":"KMSRequestFailedException"}, + {"shape":"InvalidJobStateException"}, + {"shape":"InvalidResourceException"} + ] + }, "CancelJob":{ "name":"CancelJob", "http":{ @@ -38,6 +53,20 @@ {"shape":"UnsupportedAddressException"} ] }, + "CreateCluster":{ + "name":"CreateCluster", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateClusterRequest"}, + "output":{"shape":"CreateClusterResult"}, + "errors":[ + {"shape":"InvalidResourceException"}, + {"shape":"KMSRequestFailedException"}, + {"shape":"InvalidInputCombinationException"} + ] + }, "CreateJob":{ "name":"CreateJob", "http":{ @@ -48,7 +77,9 @@ "output":{"shape":"CreateJobResult"}, "errors":[ {"shape":"InvalidResourceException"}, - {"shape":"KMSRequestFailedException"} + {"shape":"KMSRequestFailedException"}, + {"shape":"InvalidInputCombinationException"}, + {"shape":"ClusterLimitExceededException"} ] }, "DescribeAddress":{ @@ -75,6 +106,18 @@ {"shape":"InvalidResourceException"} ] }, + "DescribeCluster":{ + "name":"DescribeCluster", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeClusterRequest"}, + "output":{"shape":"DescribeClusterResult"}, + "errors":[ + {"shape":"InvalidResourceException"} + ] + }, "DescribeJob":{ "name":"DescribeJob", "http":{ @@ -122,6 +165,27 @@ "input":{"shape":"GetSnowballUsageRequest"}, "output":{"shape":"GetSnowballUsageResult"} }, + "ListClusterJobs":{ + "name":"ListClusterJobs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListClusterJobsRequest"}, + "output":{"shape":"ListClusterJobsResult"}, + "errors":[ + {"shape":"InvalidResourceException"} + ] + }, + "ListClusters":{ + "name":"ListClusters", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListClustersRequest"}, + "output":{"shape":"ListClustersResult"} + }, "ListJobs":{ "name":"ListJobs", "http":{ @@ -131,6 +195,21 @@ "input":{"shape":"ListJobsRequest"}, "output":{"shape":"ListJobsResult"} }, + "UpdateCluster":{ + "name":"UpdateCluster", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateClusterRequest"}, + "output":{"shape":"UpdateClusterResult"}, + "errors":[ + {"shape":"InvalidResourceException"}, + {"shape":"InvalidJobStateException"}, + {"shape":"KMSRequestFailedException"}, + {"shape":"InvalidInputCombinationException"} + ] + }, "UpdateJob":{ "name":"UpdateJob", "http":{ @@ -142,7 +221,9 @@ "errors":[ {"shape":"InvalidResourceException"}, {"shape":"InvalidJobStateException"}, - {"shape":"KMSRequestFailedException"} + {"shape":"KMSRequestFailedException"}, + {"shape":"InvalidInputCombinationException"}, + {"shape":"ClusterLimitExceededException"} ] } }, @@ -176,6 +257,18 @@ "member":{"shape":"Address"} }, "Boolean":{"type":"boolean"}, + "CancelClusterRequest":{ + "type":"structure", + "required":["ClusterId"], + "members":{ + "ClusterId":{"shape":"ClusterId"} + } + }, + "CancelClusterResult":{ + "type":"structure", + "members":{ + } + }, "CancelJobRequest":{ "type":"structure", "required":["JobId"], @@ -188,6 +281,59 @@ "members":{ } }, + "ClusterId":{ + "type":"string", + "max":39, + "min":39, + "pattern":"CID[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + "ClusterLimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "ClusterListEntry":{ + "type":"structure", + "members":{ + "ClusterId":{"shape":"String"}, + "ClusterState":{"shape":"ClusterState"}, + "CreationDate":{"shape":"Timestamp"}, + "Description":{"shape":"String"} + } + }, + "ClusterListEntryList":{ + "type":"list", + "member":{"shape":"ClusterListEntry"} + }, + "ClusterMetadata":{ + "type":"structure", + "members":{ + "ClusterId":{"shape":"String"}, + "Description":{"shape":"String"}, + "KmsKeyARN":{"shape":"KmsKeyARN"}, + "RoleARN":{"shape":"RoleARN"}, + "ClusterState":{"shape":"ClusterState"}, + "JobType":{"shape":"JobType"}, + "SnowballType":{"shape":"SnowballType"}, + "CreationDate":{"shape":"Timestamp"}, + "Resources":{"shape":"JobResource"}, + "AddressId":{"shape":"AddressId"}, + "ShippingOption":{"shape":"ShippingOption"}, + "Notification":{"shape":"Notification"} + } + }, + "ClusterState":{ + "type":"string", + "enum":[ + "AwaitingQuorum", + "Pending", + "InUse", + "Complete", + "Cancelled" + ] + }, "CreateAddressRequest":{ "type":"structure", "required":["Address"], @@ -201,7 +347,7 @@ "AddressId":{"shape":"String"} } }, - "CreateJobRequest":{ + "CreateClusterRequest":{ "type":"structure", "required":[ "JobType", @@ -217,11 +363,33 @@ "AddressId":{"shape":"AddressId"}, "KmsKeyARN":{"shape":"KmsKeyARN"}, "RoleARN":{"shape":"RoleARN"}, - "SnowballCapacityPreference":{"shape":"SnowballCapacity"}, + "SnowballType":{"shape":"SnowballType"}, "ShippingOption":{"shape":"ShippingOption"}, "Notification":{"shape":"Notification"} } }, + "CreateClusterResult":{ + "type":"structure", + "members":{ + "ClusterId":{"shape":"ClusterId"} + } + }, + "CreateJobRequest":{ + "type":"structure", + "members":{ + "JobType":{"shape":"JobType"}, + "Resources":{"shape":"JobResource"}, + "Description":{"shape":"String"}, + "AddressId":{"shape":"AddressId"}, + "KmsKeyARN":{"shape":"KmsKeyARN"}, + "RoleARN":{"shape":"RoleARN"}, + "SnowballCapacityPreference":{"shape":"SnowballCapacity"}, + "ShippingOption":{"shape":"ShippingOption"}, + "Notification":{"shape":"Notification"}, + "ClusterId":{"shape":"ClusterId"}, + "SnowballType":{"shape":"SnowballType"} + } + }, "CreateJobResult":{ "type":"structure", "members":{ @@ -264,6 +432,19 @@ "NextToken":{"shape":"String"} } }, + "DescribeClusterRequest":{ + "type":"structure", + "required":["ClusterId"], + "members":{ + "ClusterId":{"shape":"ClusterId"} + } + }, + "DescribeClusterResult":{ + "type":"structure", + "members":{ + "ClusterMetadata":{"shape":"ClusterMetadata"} + } + }, "DescribeJobRequest":{ "type":"structure", "required":["JobId"], @@ -278,6 +459,16 @@ "SubJobMetadata":{"shape":"JobMetadataList"} } }, + "EventTriggerDefinition":{ + "type":"structure", + "members":{ + "EventResourceARN":{"shape":"ResourceARN"} + } + }, + "EventTriggerDefinitionList":{ + "type":"list", + "member":{"shape":"EventTriggerDefinition"} + }, "GetJobManifestRequest":{ "type":"structure", "required":["JobId"], @@ -324,6 +515,13 @@ }, "exception":true }, + "InvalidInputCombinationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, "InvalidJobStateException":{ "type":"structure", "members":{ @@ -349,7 +547,11 @@ "members":{ "JobId":{"shape":"String"}, "JobState":{"shape":"JobState"}, - "IsMaster":{"shape":"Boolean"} + "IsMaster":{"shape":"Boolean"}, + "JobType":{"shape":"JobType"}, + "SnowballType":{"shape":"SnowballType"}, + "CreationDate":{"shape":"Timestamp"}, + "Description":{"shape":"String"} } }, "JobListEntryList":{ @@ -370,6 +572,7 @@ "JobId":{"shape":"String"}, "JobState":{"shape":"JobState"}, "JobType":{"shape":"JobType"}, + "SnowballType":{"shape":"SnowballType"}, "CreationDate":{"shape":"Timestamp"}, "Resources":{"shape":"JobResource"}, "Description":{"shape":"String"}, @@ -380,7 +583,8 @@ "SnowballCapacityPreference":{"shape":"SnowballCapacity"}, "Notification":{"shape":"Notification"}, "DataTransferProgress":{"shape":"DataTransfer"}, - "JobLogInfo":{"shape":"JobLogs"} + "JobLogInfo":{"shape":"JobLogs"}, + "ClusterId":{"shape":"String"} } }, "JobMetadataList":{ @@ -390,7 +594,8 @@ "JobResource":{ "type":"structure", "members":{ - "S3Resources":{"shape":"S3ResourceList"} + "S3Resources":{"shape":"S3ResourceList"}, + "LambdaResources":{"shape":"LambdaResourceList"} } }, "JobState":{ @@ -418,7 +623,8 @@ "type":"string", "enum":[ "IMPORT", - "EXPORT" + "EXPORT", + "LOCAL_USE" ] }, "KMSRequestFailedException":{ @@ -440,6 +646,47 @@ "max":255, "pattern":"arn:(aws|aws-us-gov):kms:.*:[0-9]{12}:key/.*" }, + "LambdaResource":{ + "type":"structure", + "members":{ + "LambdaArn":{"shape":"ResourceARN"}, + "EventTriggers":{"shape":"EventTriggerDefinitionList"} + } + }, + "LambdaResourceList":{ + "type":"list", + "member":{"shape":"LambdaResource"} + }, + "ListClusterJobsRequest":{ + "type":"structure", + "required":["ClusterId"], + "members":{ + "ClusterId":{"shape":"ClusterId"}, + "MaxResults":{"shape":"ListLimit"}, + "NextToken":{"shape":"String"} + } + }, + "ListClusterJobsResult":{ + "type":"structure", + "members":{ + "JobListEntries":{"shape":"JobListEntryList"}, + "NextToken":{"shape":"String"} + } + }, + "ListClustersRequest":{ + "type":"structure", + "members":{ + "MaxResults":{"shape":"ListLimit"}, + "NextToken":{"shape":"String"} + } + }, + "ListClustersResult":{ + "type":"structure", + "members":{ + "ClusterListEntries":{"shape":"ClusterListEntryList"}, + "NextToken":{"shape":"String"} + } + }, "ListJobsRequest":{ "type":"structure", "members":{ @@ -470,8 +717,7 @@ }, "ResourceARN":{ "type":"string", - "max":255, - "pattern":"arn:(aws|aws-us-gov):s3:::.*" + "max":255 }, "RoleARN":{ "type":"string", @@ -518,9 +764,17 @@ "enum":[ "T50", "T80", + "T100", "NoPreference" ] }, + "SnowballType":{ + "type":"string", + "enum":[ + "STANDARD", + "EDGE" + ] + }, "SnsTopicARN":{ "type":"string", "max":255, @@ -539,6 +793,24 @@ }, "exception":true }, + "UpdateClusterRequest":{ + "type":"structure", + "required":["ClusterId"], + "members":{ + "ClusterId":{"shape":"ClusterId"}, + "RoleARN":{"shape":"RoleARN"}, + "Description":{"shape":"String"}, + "Resources":{"shape":"JobResource"}, + "AddressId":{"shape":"AddressId"}, + "ShippingOption":{"shape":"ShippingOption"}, + "Notification":{"shape":"Notification"} + } + }, + "UpdateClusterResult":{ + "type":"structure", + "members":{ + } + }, "UpdateJobRequest":{ "type":"structure", "required":["JobId"], diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/snowball/2016-06-30/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/snowball/2016-06-30/docs-2.json index dadf029a8..ca3b33d60 100755 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/snowball/2016-06-30/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/snowball/2016-06-30/docs-2.json @@ -1,17 +1,23 @@ { "version": "2.0", - "service": "

AWS Import/Export Snowball is a petabyte-scale data transport solution that uses secure appliances to transfer large amounts of data between your on-premises data centers and Amazon Simple Storage Service (Amazon S3). The Snowball commands described here provide access to the same functionality that is available in the AWS Snowball Management Console, which enables you to create and manage jobs for Snowball. To transfer data locally with a Snowball appliance, you'll need to use the Snowball client or the Amazon S3 API adapter for Snowball. For more information, see the User Guide.

", + "service": "

AWS Snowball is a petabyte-scale data transport solution that uses secure appliances to transfer large amounts of data between your on-premises data centers and Amazon Simple Storage Service (Amazon S3). The Snowball commands described here provide access to the same functionality that is available in the AWS Snowball Management Console, which enables you to create and manage jobs for Snowball. To transfer data locally with a Snowball appliance, you'll need to use the Snowball client or the Amazon S3 API adapter for Snowball. For more information, see the User Guide.

", "operations": { - "CancelJob": "

Cancels the specified job. Note that you can only cancel a job before its JobState value changes to PreparingAppliance. Requesting the ListJobs or DescribeJob action will return a job's JobState as part of the response element data returned.

", + "CancelCluster": "

Cancels a cluster job. You can only cancel a cluster job while it's in the AwaitingQuorum status. You'll have at least an hour after creating a cluster job to cancel it.

", + "CancelJob": "

Cancels the specified job. You can only cancel a job before its JobState value changes to PreparingAppliance. Requesting the ListJobs or DescribeJob action will return a job's JobState as part of the response element data returned.

", "CreateAddress": "

Creates an address for a Snowball to be shipped to.

Addresses are validated at the time of creation. The address you provide must be located within the serviceable area of your region. If the address is invalid or unsupported, then an exception is thrown.

", - "CreateJob": "

Creates a job to import or export data between Amazon S3 and your on-premises data center. Note that your AWS account must have the right trust policies and permissions in place to create a job for Snowball. For more information, see api-reference-policies.

", + "CreateCluster": "

Creates an empty cluster. Each cluster supports five nodes. You use the CreateJob action separately to create the jobs for each of these nodes. The cluster does not ship until these five node jobs have been created.

", + "CreateJob": "

Creates a job to import or export data between Amazon S3 and your on-premises data center. Your AWS account must have the right trust policies and permissions in place to create a job for Snowball. If you're creating a job for a node in a cluster, you only need to provide the clusterId value; the other job attributes are inherited from the cluster. .

", "DescribeAddress": "

Takes an AddressId and returns specific details about that address in the form of an Address object.

", "DescribeAddresses": "

Returns a specified number of ADDRESS objects. Calling this API in one of the US regions will return addresses from the list of all addresses associated with this account in all US regions.

", - "DescribeJob": "

Returns information about a specific job including shipping information, job status, and other important metadata.

", - "GetJobManifest": "

Returns a link to an Amazon S3 presigned URL for the manifest file associated with the specified JobId value. You can access the manifest file for up to 60 minutes after this request has been made. To access the manifest file after 60 minutes have passed, you'll have to make another call to the GetJobManifest action.

The manifest is an encrypted file that you can download after your job enters the WithCustomer status. The manifest is decrypted by using the UnlockCode code value, when you pass both values to the Snowball through the Snowball client when the client is started for the first time.

As a best practice, we recommend that you don't save a copy of an UnlockCode value in the same location as the manifest file for that job. Saving these separately helps prevent unauthorized parties from gaining access to the Snowball associated with that job.

Note that the credentials of a given job, including its manifest file and unlock code, expire 90 days after the job is created.

", + "DescribeCluster": "

Returns information about a specific cluster including shipping information, cluster status, and other important metadata.

", + "DescribeJob": "

Returns information about a specific job including shipping information, job status, and other important metadata. .

", + "GetJobManifest": "

Returns a link to an Amazon S3 presigned URL for the manifest file associated with the specified JobId value. You can access the manifest file for up to 60 minutes after this request has been made. To access the manifest file after 60 minutes have passed, you'll have to make another call to the GetJobManifest action.

The manifest is an encrypted file that you can download after your job enters the WithCustomer status. The manifest is decrypted by using the UnlockCode code value, when you pass both values to the Snowball through the Snowball client when the client is started for the first time.

As a best practice, we recommend that you don't save a copy of an UnlockCode value in the same location as the manifest file for that job. Saving these separately helps prevent unauthorized parties from gaining access to the Snowball associated with that job.

The credentials of a given job, including its manifest file and unlock code, expire 90 days after the job is created.

", "GetJobUnlockCode": "

Returns the UnlockCode code value for the specified job. A particular UnlockCode value can be accessed for up to 90 days after the associated job has been created.

The UnlockCode value is a 29-character code with 25 alphanumeric characters and 4 hyphens. This code is used to decrypt the manifest file when it is passed along with the manifest to the Snowball through the Snowball client when the client is started for the first time.

As a best practice, we recommend that you don't save a copy of the UnlockCode in the same location as the manifest file for that job. Saving these separately helps prevent unauthorized parties from gaining access to the Snowball associated with that job.

", - "GetSnowballUsage": "

Returns information about the Snowball service limit for your account, and also the number of Snowballs your account has in use.

Note that the default service limit for the number of Snowballs that you can have at one time is 1. If you want to increase your service limit, contact AWS Support.

", + "GetSnowballUsage": "

Returns information about the Snowball service limit for your account, and also the number of Snowballs your account has in use.

The default service limit for the number of Snowballs that you can have at one time is 1. If you want to increase your service limit, contact AWS Support.

", + "ListClusterJobs": "

Returns an array of JobListEntry objects of the specified length. Each JobListEntry object is for a job in the specified cluster and contains a job's state, a job's ID, and other information.

", + "ListClusters": "

Returns an array of ClusterListEntry objects of the specified length. Each ClusterListEntry object contains a cluster's state, a cluster's ID, and other important status information.

", "ListJobs": "

Returns an array of JobListEntry objects of the specified length. Each JobListEntry object contains a job's state, a job's ID, and a value that indicates whether the job is a job part, in the case of export jobs. Calling this API action in one of the US regions will return jobs from the list of all jobs associated with this account in all US regions.

", + "UpdateCluster": "

While a cluster's ClusterState value is in the AwaitingQuorum state, you can update some of the information associated with a cluster. Once the cluster changes to a different job state, usually 60 minutes after the cluster being created, this action is no longer available.

", "UpdateJob": "

While a job's JobState value is New, you can update some of the information associated with a job. Once the job changes to a different job state, usually within 60 minutes of the job being created, this action is no longer available.

" }, "shapes": { @@ -27,9 +33,12 @@ "base": null, "refs": { "Address$AddressId": "

The unique ID for an address.

", + "ClusterMetadata$AddressId": "

The automatically generated ID for a specific address.

", + "CreateClusterRequest$AddressId": "

The ID for the address that you want the cluster shipped to.>

", "CreateJobRequest$AddressId": "

The ID for the address that you want the Snowball shipped to.

", "DescribeAddressRequest$AddressId": "

The automatically generated ID for a specific address.

", "JobMetadata$AddressId": "

The ID for the address that you want the Snowball shipped to.

", + "UpdateClusterRequest$AddressId": "

The ID of the updated Address object.

", "UpdateJobRequest$AddressId": "

The ID of the updated Address object.

" } }, @@ -46,6 +55,16 @@ "Notification$NotifyAll": "

Any change in job state will trigger a notification for this job.

" } }, + "CancelClusterRequest": { + "base": null, + "refs": { + } + }, + "CancelClusterResult": { + "base": null, + "refs": { + } + }, "CancelJobRequest": { "base": null, "refs": { @@ -56,6 +75,47 @@ "refs": { } }, + "ClusterId": { + "base": null, + "refs": { + "CancelClusterRequest$ClusterId": "

The 39-character ID for the cluster that you want to cancel, for example CID123e4567-e89b-12d3-a456-426655440000.

", + "CreateClusterResult$ClusterId": "

The automatically generated ID for a cluster.

", + "CreateJobRequest$ClusterId": "

The ID of a cluster. If you're creating a job for a node in a cluster, you need to provide only this clusterId value. The other job attributes are inherited from the cluster.

", + "DescribeClusterRequest$ClusterId": "

The automatically generated ID for a cluster.

", + "ListClusterJobsRequest$ClusterId": "

The 39-character ID for the cluster that you want to list, for example CID123e4567-e89b-12d3-a456-426655440000.

", + "UpdateClusterRequest$ClusterId": "

The cluster ID of the cluster that you want to update, for example CID123e4567-e89b-12d3-a456-426655440000.

" + } + }, + "ClusterLimitExceededException": { + "base": "

Job creation failed. Currently, clusters support five nodes. If you have less than five nodes for your cluster and you have more nodes to create for this cluster, try again and create jobs until your cluster has exactly five notes.

", + "refs": { + } + }, + "ClusterListEntry": { + "base": "

Contains a cluster's state, a cluster's ID, and other important information.

", + "refs": { + "ClusterListEntryList$member": null + } + }, + "ClusterListEntryList": { + "base": null, + "refs": { + "ListClustersResult$ClusterListEntries": "

Each ClusterListEntry object contains a cluster's state, a cluster's ID, and other important status information.

" + } + }, + "ClusterMetadata": { + "base": "

Contains metadata about a specific cluster.

", + "refs": { + "DescribeClusterResult$ClusterMetadata": "

Information about a specific cluster, including shipping information, cluster status, and other important metadata.

" + } + }, + "ClusterState": { + "base": null, + "refs": { + "ClusterListEntry$ClusterState": "

The current state of this cluster. For information about the state of a specific node, see JobListEntry$JobState.

", + "ClusterMetadata$ClusterState": "

The current status of the cluster.

" + } + }, "CreateAddressRequest": { "base": null, "refs": { @@ -66,6 +126,16 @@ "refs": { } }, + "CreateClusterRequest": { + "base": null, + "refs": { + } + }, + "CreateClusterResult": { + "base": null, + "refs": { + } + }, "CreateJobRequest": { "base": null, "refs": { @@ -77,9 +147,9 @@ } }, "DataTransfer": { - "base": "

Defines the real-time status of a Snowball's data transfer while the appliance is at AWS. Note that this data is only available while a job has a JobState value of InProgress, for both import and export jobs.

", + "base": "

Defines the real-time status of a Snowball's data transfer while the appliance is at AWS. This data is only available while a job has a JobState value of InProgress, for both import and export jobs.

", "refs": { - "JobMetadata$DataTransferProgress": "

A value that defines the real-time status of a Snowball's data transfer while the appliance is at AWS. Note that this data is only available while a job has a JobState value of InProgress, for both import and export jobs.

" + "JobMetadata$DataTransferProgress": "

A value that defines the real-time status of a Snowball's data transfer while the appliance is at AWS. This data is only available while a job has a JobState value of InProgress, for both import and export jobs.

" } }, "DescribeAddressRequest": { @@ -102,6 +172,16 @@ "refs": { } }, + "DescribeClusterRequest": { + "base": null, + "refs": { + } + }, + "DescribeClusterResult": { + "base": null, + "refs": { + } + }, "DescribeJobRequest": { "base": null, "refs": { @@ -112,6 +192,18 @@ "refs": { } }, + "EventTriggerDefinition": { + "base": "

The container for the EventTriggerDefinition$EventResourceARN.

", + "refs": { + "EventTriggerDefinitionList$member": null + } + }, + "EventTriggerDefinitionList": { + "base": null, + "refs": { + "LambdaResource$EventTriggers": "

The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated with this job.

" + } + }, "GetJobManifestRequest": { "base": null, "refs": { @@ -154,6 +246,11 @@ "refs": { } }, + "InvalidInputCombinationException": { + "base": "

Job or cluster creation failed. One ore more inputs were invalid. Confirm that the CreateClusterRequest$SnowballType value supports your CreateJobRequest$JobType, and try again.

", + "refs": { + } + }, "InvalidJobStateException": { "base": "

The action can't be performed because the job's current state doesn't allow that action to be performed.

", "refs": { @@ -167,7 +264,7 @@ "JobId": { "base": null, "refs": { - "CancelJobRequest$JobId": "

The 39 character job ID for the job that you want to cancel, for example JID123e4567-e89b-12d3-a456-426655440000.

", + "CancelJobRequest$JobId": "

The 39-character job ID for the job that you want to cancel, for example JID123e4567-e89b-12d3-a456-426655440000.

", "CreateJobResult$JobId": "

The automatically generated ID for a job, for example JID123e4567-e89b-12d3-a456-426655440000.

", "DescribeJobRequest$JobId": "

The automatically generated ID for a job, for example JID123e4567-e89b-12d3-a456-426655440000.

", "GetJobManifestRequest$JobId": "

The ID for a job that you want to get the manifest file for, for example JID123e4567-e89b-12d3-a456-426655440000.

", @@ -184,6 +281,7 @@ "JobListEntryList": { "base": null, "refs": { + "ListClusterJobsResult$JobListEntries": "

Each JobListEntry object contains a job's state, a job's ID, and a value that indicates whether the job is a job part, in the case of export jobs.

", "ListJobsResult$JobListEntries": "

Each JobListEntry object contains a job's state, a job's ID, and a value that indicates whether the job is a job part, in the case of export jobs.

" } }, @@ -196,21 +294,24 @@ "JobMetadata": { "base": "

Contains information about a specific job including shipping information, job status, and other important metadata. This information is returned as a part of the response syntax of the DescribeJob action.

", "refs": { - "DescribeJobResult$JobMetadata": "

Information about a specific job, including shipping information, job status, and other important metadata.

", + "DescribeJobResult$JobMetadata": "

Information about a specific job, including shipping information, job status, and other important metadata.

", "JobMetadataList$member": null } }, "JobMetadataList": { "base": null, "refs": { - "DescribeJobResult$SubJobMetadata": "

Information about a specific job part (in the case of an export job), including shipping information, job status, and other important metadata.

" + "DescribeJobResult$SubJobMetadata": "

Information about a specific job part (in the case of an export job), including shipping information, job status, and other important metadata.

" } }, "JobResource": { "base": "

Contains an array of S3Resource objects. Each S3Resource object represents an Amazon S3 bucket that your transferred data will be exported from or imported into.

", "refs": { + "ClusterMetadata$Resources": "

The arrays of JobResource objects that can include updated S3Resource objects or LambdaResource objects.

", + "CreateClusterRequest$Resources": "

The resources associated with the cluster job. These resources include Amazon S3 buckets and optional AWS Lambda functions written in the Python language.

", "CreateJobRequest$Resources": "

Defines the Amazon S3 buckets associated with this job.

With IMPORT jobs, you specify the bucket or buckets that your transferred data will be imported into.

With EXPORT jobs, you specify the bucket or buckets that your transferred data will be exported from. Optionally, you can also specify a KeyRange value. If you choose to export a range, you define the length of the range by providing either an inclusive BeginMarker value, an inclusive EndMarker value, or both. Ranges are UTF-8 binary sorted.

", "JobMetadata$Resources": "

An array of S3Resource objects. Each S3Resource object represents an Amazon S3 bucket that your transferred data will be exported from or imported into.

", + "UpdateClusterRequest$Resources": "

The updated arrays of JobResource objects that can include updated S3Resource objects or LambdaResource objects.

", "UpdateJobRequest$Resources": "

The updated S3Resource object (for a single Amazon S3 bucket or key range), or the updated JobResource object (for multiple buckets or key ranges).

" } }, @@ -218,7 +319,7 @@ "base": null, "refs": { "JobListEntry$JobState": "

The current state of this job.

", - "JobMetadata$JobState": "

The current state of the jobs.

", + "JobMetadata$JobState": "

The current status of the jobs.

", "JobStateList$member": null } }, @@ -231,7 +332,10 @@ "JobType": { "base": null, "refs": { + "ClusterMetadata$JobType": "

The type of job for this cluster. Currently, the only job type supported for clusters is LOCAL_USE.

", + "CreateClusterRequest$JobType": "

The type of job for this cluster. Currently, the only job type supported for clusters is LOCAL_USE.

", "CreateJobRequest$JobType": "

Defines the type of job that you're creating.

", + "JobListEntry$JobType": "

The type of job.

", "JobMetadata$JobType": "

The type of job.

" } }, @@ -249,10 +353,44 @@ "KmsKeyARN": { "base": null, "refs": { + "ClusterMetadata$KmsKeyARN": "

The KmsKeyARN Amazon Resource Name (ARN) associated with this cluster. This ARN was created using the CreateKey API action in AWS Key Management Service (AWS KMS).

", + "CreateClusterRequest$KmsKeyARN": "

The KmsKeyARN value that you want to associate with this cluster. KmsKeyARN values are created by using the CreateKey API action in AWS Key Management Service (AWS KMS).

", "CreateJobRequest$KmsKeyARN": "

The KmsKeyARN that you want to associate with this job. KmsKeyARNs are created using the CreateKey AWS Key Management Service (KMS) API action.

", "JobMetadata$KmsKeyARN": "

The Amazon Resource Name (ARN) for the AWS Key Management Service (AWS KMS) key associated with this job. This ARN was created using the CreateKey API action in AWS KMS.

" } }, + "LambdaResource": { + "base": "

Identifies

", + "refs": { + "LambdaResourceList$member": null + } + }, + "LambdaResourceList": { + "base": null, + "refs": { + "JobResource$LambdaResources": "

The Python-language Lambda functions for this job.

" + } + }, + "ListClusterJobsRequest": { + "base": null, + "refs": { + } + }, + "ListClusterJobsResult": { + "base": null, + "refs": { + } + }, + "ListClustersRequest": { + "base": null, + "refs": { + } + }, + "ListClustersResult": { + "base": null, + "refs": { + } + }, "ListJobsRequest": { "base": null, "refs": { @@ -267,6 +405,8 @@ "base": null, "refs": { "DescribeAddressesRequest$MaxResults": "

The number of ADDRESS objects to return.

", + "ListClusterJobsRequest$MaxResults": "

The number of JobListEntry objects to return.

", + "ListClustersRequest$MaxResults": "

The number of ClusterListEntry objects to return.

", "ListJobsRequest$MaxResults": "

The number of JobListEntry objects to return.

" } }, @@ -282,22 +422,30 @@ "Notification": { "base": "

The Amazon Simple Notification Service (Amazon SNS) notification settings associated with a specific job. The Notification object is returned as a part of the response syntax of the DescribeJob action in the JobMetadata data type.

When the notification settings are defined during job creation, you can choose to notify based on a specific set of job states using the JobStatesToNotify array of strings, or you can specify that you want to have Amazon SNS notifications sent out for all job states with NotifyAll set to true.

", "refs": { + "ClusterMetadata$Notification": "

The Amazon Simple Notification Service (Amazon SNS) notification settings for this cluster.

", + "CreateClusterRequest$Notification": "

The Amazon Simple Notification Service (Amazon SNS) notification settings for this cluster.

", "CreateJobRequest$Notification": "

Defines the Amazon Simple Notification Service (Amazon SNS) notification settings for this job.

", "JobMetadata$Notification": "

The Amazon Simple Notification Service (Amazon SNS) notification settings associated with a specific job. The Notification object is returned as a part of the response syntax of the DescribeJob action in the JobMetadata data type.

", + "UpdateClusterRequest$Notification": "

The new or updated Notification object.

", "UpdateJobRequest$Notification": "

The new or updated Notification object.

" } }, "ResourceARN": { "base": null, "refs": { + "EventTriggerDefinition$EventResourceARN": "

The Amazon Resource Name (ARN) for any local Amazon S3 resource that is an AWS Lambda function's event trigger associated with this job.

", + "LambdaResource$LambdaArn": "

An Amazon Resource Name (ARN) that represents an AWS Lambda function to be triggered by PUT object actions on the associated local Amazon S3 resource.

", "S3Resource$BucketArn": "

The Amazon Resource Name (ARN) of an Amazon S3 bucket.

" } }, "RoleARN": { "base": null, "refs": { + "ClusterMetadata$RoleARN": "

The role ARN associated with this cluster. This ARN was created using the CreateRole API action in AWS Identity and Access Management (IAM).

", + "CreateClusterRequest$RoleARN": "

The RoleARN that you want to associate with this cluster. RoleArn values are created by using the CreateRole API action in AWS Identity and Access Management (IAM).

", "CreateJobRequest$RoleARN": "

The RoleARN that you want to associate with this job. RoleArns are created using the CreateRole AWS Identity and Access Management (IAM) API action.

", "JobMetadata$RoleARN": "

The role ARN associated with this job. This ARN was created using the CreateRole API action in AWS Identity and Access Management (IAM).

", + "UpdateClusterRequest$RoleARN": "

The new role Amazon Resource Name (ARN) that you want to associate with this cluster. To create a role ARN, use the CreateRole API action in AWS Identity and Access Management (IAM).

", "UpdateJobRequest$RoleARN": "

The new role Amazon Resource Name (ARN) that you want to associate with this job. To create a role ARN, use the CreateRole AWS Identity and Access Management (IAM) API action.

" } }, @@ -329,8 +477,11 @@ "ShippingOption": { "base": null, "refs": { - "CreateJobRequest$ShippingOption": "

The shipping speed for this job. Note that this speed does not dictate how soon you'll get the Snowball, rather it represents how quickly the Snowball moves to its destination while in transit. Regional shipping speeds are as follows:

  • In Australia, you have access to express shipping. Typically, Snowballs shipped express are delivered in about a day.

  • In the European Union (EU), you have access to express shipping. Typically, Snowballs shipped express are delivered in about a day. In addition, most countries in the EU have access to standard shipping, which typically takes less than a week, one way.

  • In India, Snowballs are delivered in one to seven days.

  • In the US, you have access to one-day shipping and two-day shipping.

", - "ShippingDetails$ShippingOption": "

The shipping speed for a particular job. Note that this speed does not dictate how soon you'll get the Snowball from the job's creation date. This speed represents how quickly it moves to its destination while in transit. Regional shipping speeds are as follows:

  • In Australia, you have access to express shipping. Typically, Snowballs shipped express are delivered in about a day.

  • In the European Union (EU), you have access to express shipping. Typically, Snowballs shipped express are delivered in about a day. In addition, most countries in the EU have access to standard shipping, which typically takes less than a week, one way.

  • In India, Snowballs are delivered in one to seven days.

  • In the United States of America (US), you have access to one-day shipping and two-day shipping.

", + "ClusterMetadata$ShippingOption": "

The shipping speed for each node in this cluster. This speed doesn't dictate how soon you'll get each Snowball Edge appliance, rather it represents how quickly each appliance moves to its destination while in transit. Regional shipping speeds are as follows:

  • In Australia, you have access to express shipping. Typically, appliances shipped express are delivered in about a day.

  • In the European Union (EU), you have access to express shipping. Typically, Snowball Edges shipped express are delivered in about a day. In addition, most countries in the EU have access to standard shipping, which typically takes less than a week, one way.

  • In India, Snowball Edges are delivered in one to seven days.

  • In the US, you have access to one-day shipping and two-day shipping.

", + "CreateClusterRequest$ShippingOption": "

The shipping speed for each node in this cluster. This speed doesn't dictate how soon you'll get each Snowball Edge appliance, rather it represents how quickly each appliance moves to its destination while in transit. Regional shipping speeds are as follows:

  • In Australia, you have access to express shipping. Typically, appliances shipped express are delivered in about a day.

  • In the European Union (EU), you have access to express shipping. Typically, Snowball Edges shipped express are delivered in about a day. In addition, most countries in the EU have access to standard shipping, which typically takes less than a week, one way.

  • In India, Snowball Edges are delivered in one to seven days.

  • In the US, you have access to one-day shipping and two-day shipping.

", + "CreateJobRequest$ShippingOption": "

The shipping speed for this job. This speed doesn't dictate how soon you'll get the Snowball, rather it represents how quickly the Snowball moves to its destination while in transit. Regional shipping speeds are as follows:

  • In Australia, you have access to express shipping. Typically, Snowballs shipped express are delivered in about a day.

  • In the European Union (EU), you have access to express shipping. Typically, Snowballs shipped express are delivered in about a day. In addition, most countries in the EU have access to standard shipping, which typically takes less than a week, one way.

  • In India, Snowballs are delivered in one to seven days.

  • In the US, you have access to one-day shipping and two-day shipping.

", + "ShippingDetails$ShippingOption": "

The shipping speed for a particular job. This speed doesn't dictate how soon you'll get the Snowball from the job's creation date. This speed represents how quickly it moves to its destination while in transit. Regional shipping speeds are as follows:

  • In Australia, you have access to express shipping. Typically, Snowballs shipped express are delivered in about a day.

  • In the European Union (EU), you have access to express shipping. Typically, Snowballs shipped express are delivered in about a day. In addition, most countries in the EU have access to standard shipping, which typically takes less than a week, one way.

  • In India, Snowballs are delivered in one to seven days.

  • In the United States of America (US), you have access to one-day shipping and two-day shipping.

", + "UpdateClusterRequest$ShippingOption": "

The updated shipping option value of this cluster's ShippingDetails object.

", "UpdateJobRequest$ShippingOption": "

The updated shipping option value of this job's ShippingDetails object.

" } }, @@ -339,13 +490,23 @@ "refs": { "CreateJobRequest$SnowballCapacityPreference": "

If your job is being created in one of the US regions, you have the option of specifying what size Snowball you'd like for this job. In all other regions, Snowballs come with 80 TB in storage capacity.

", "JobMetadata$SnowballCapacityPreference": "

The Snowball capacity preference for this job, specified at job creation. In US regions, you can choose between 50 TB and 80 TB Snowballs. All other regions use 80 TB capacity Snowballs.

", - "UpdateJobRequest$SnowballCapacityPreference": "

The updated SnowballCapacityPreference of this job's JobMetadata object. Note that the 50 TB Snowballs are only available in the US regions.

" + "UpdateJobRequest$SnowballCapacityPreference": "

The updated SnowballCapacityPreference of this job's JobMetadata object. The 50 TB Snowballs are only available in the US regions.

" + } + }, + "SnowballType": { + "base": null, + "refs": { + "ClusterMetadata$SnowballType": "

The type of AWS Snowball appliance to use for this cluster. Currently, the only supported appliance type for cluster jobs is EDGE.

", + "CreateClusterRequest$SnowballType": "

The type of AWS Snowball appliance to use for this cluster. Currently, the only supported appliance type for cluster jobs is EDGE.

", + "CreateJobRequest$SnowballType": "

The type of AWS Snowball appliance to use for this job. Currently, the only supported appliance type for cluster jobs is EDGE.

", + "JobListEntry$SnowballType": "

The type of appliance used with this job.

", + "JobMetadata$SnowballType": "

The type of appliance used with this job.

" } }, "SnsTopicARN": { "base": null, "refs": { - "Notification$SnsTopicARN": "

The new SNS TopicArn that you want to associate with this job. You can create Amazon Resource Names (ARNs) for topics by using the CreateTopic Amazon SNS API action.

Note that you can subscribe email addresses to an Amazon SNS topic through the AWS Management Console, or by using the Subscribe AWS Simple Notification Service (SNS) API action.

" + "Notification$SnsTopicARN": "

The new SNS TopicArn that you want to associate with this job. You can create Amazon Resource Names (ARNs) for topics by using the CreateTopic Amazon SNS API action.

You can subscribe email addresses to an Amazon SNS topic through the AWS Management Console, or by using the Subscribe AWS Simple Notification Service (SNS) API action.

" } }, "String": { @@ -358,40 +519,57 @@ "Address$Street3": "

The third line in a street address that a Snowball is to be delivered to.

", "Address$City": "

The city in an address that a Snowball is to be delivered to.

", "Address$StateOrProvince": "

The state or province in an address that a Snowball is to be delivered to.

", - "Address$PrefectureOrDistrict": "

The prefecture or district in an address that a Snowball is to be delivered to.

", - "Address$Landmark": "

A landmark listed in an address that a Snowball is to be delivered to.

", + "Address$PrefectureOrDistrict": "

The prefecture or district that the appliance will be shipped to.

", + "Address$Landmark": "

The landmark identifying the address that the appliance will be shipped to.

", "Address$Country": "

The country in an address that a Snowball is to be delivered to.

", "Address$PostalCode": "

The postal code in an address that a Snowball is to be delivered to.

", "Address$PhoneNumber": "

The phone number associated with an address that a Snowball is to be delivered to.

", + "ClusterLimitExceededException$Message": null, + "ClusterListEntry$ClusterId": "

The 39-character ID for the cluster that you want to list, for example CID123e4567-e89b-12d3-a456-426655440000.

", + "ClusterListEntry$Description": "

Defines an optional description of the cluster, for example Environmental Data Cluster-01.

", + "ClusterMetadata$ClusterId": "

The automatically generated ID for a cluster.

", + "ClusterMetadata$Description": "

The optional description of the cluster.

", "CreateAddressResult$AddressId": "

The automatically generated ID for a specific address. You'll use this ID when you create a job to specify which address you want the Snowball for that job shipped to.

", + "CreateClusterRequest$Description": "

An optional description of this specific cluster, for example Environmental Data Cluster-01.

", "CreateJobRequest$Description": "

Defines an optional description of this specific job, for example Important Photos 2016-08-11.

", "DescribeAddressesRequest$NextToken": "

HTTP requests are stateless. To identify what object comes \"next\" in the list of ADDRESS objects, you have the option of specifying a value for NextToken as the starting point for your list of returned addresses.

", "DescribeAddressesResult$NextToken": "

HTTP requests are stateless. If you use the automatically generated NextToken value in your next DescribeAddresses call, your list of returned addresses will start from this point in the array.

", "GetJobManifestResult$ManifestURI": "

The Amazon S3 presigned URL for the manifest file associated with the specified JobId value.

", "GetJobUnlockCodeResult$UnlockCode": "

The UnlockCode value for the specified job. The UnlockCode value can be accessed for up to 90 days after the job has been created.

", "InvalidAddressException$Message": null, + "InvalidInputCombinationException$Message": null, "InvalidJobStateException$Message": null, "InvalidResourceException$Message": null, "JobListEntry$JobId": "

The automatically generated ID for a job, for example JID123e4567-e89b-12d3-a456-426655440000.

", + "JobListEntry$Description": "

The optional description of this specific job, for example Important Photos 2016-08-11.

", "JobLogs$JobCompletionReportURI": "

A link to an Amazon S3 presigned URL where the job completion report is located.

", "JobLogs$JobSuccessLogURI": "

A link to an Amazon S3 presigned URL where the job success log is located.

", "JobLogs$JobFailureLogURI": "

A link to an Amazon S3 presigned URL where the job failure log is located.

", "JobMetadata$JobId": "

The automatically generated ID for a job, for example JID123e4567-e89b-12d3-a456-426655440000.

", "JobMetadata$Description": "

The description of the job, provided at job creation.

", + "JobMetadata$ClusterId": "

The 39-character ID for the cluster, for example CID123e4567-e89b-12d3-a456-426655440000.

", "KMSRequestFailedException$Message": null, "KeyRange$BeginMarker": "

The key that starts an optional key range for an export job. Ranges are inclusive and UTF-8 binary sorted.

", "KeyRange$EndMarker": "

The key that ends an optional key range for an export job. Ranges are inclusive and UTF-8 binary sorted.

", + "ListClusterJobsRequest$NextToken": "

HTTP requests are stateless. To identify what object comes \"next\" in the list of JobListEntry objects, you have the option of specifying NextToken as the starting point for your returned list.

", + "ListClusterJobsResult$NextToken": "

HTTP requests are stateless. If you use the automatically generated NextToken value in your next ListClusterJobsResult call, your list of returned jobs will start from this point in the array.

", + "ListClustersRequest$NextToken": "

HTTP requests are stateless. To identify what object comes \"next\" in the list of ClusterListEntry objects, you have the option of specifying NextToken as the starting point for your returned list.

", + "ListClustersResult$NextToken": "

HTTP requests are stateless. If you use the automatically generated NextToken value in your next ClusterListEntry call, your list of returned clusters will start from this point in the array.

", "ListJobsRequest$NextToken": "

HTTP requests are stateless. To identify what object comes \"next\" in the list of JobListEntry objects, you have the option of specifying NextToken as the starting point for your returned list.

", "ListJobsResult$NextToken": "

HTTP requests are stateless. If you use this automatically generated NextToken value in your next ListJobs call, your returned JobListEntry objects will start from this point in the array.

", "Shipment$Status": "

Status information for a shipment. Valid statuses include NEW, IN_TRANSIT, and DELIVERED.

", "Shipment$TrackingNumber": "

The tracking number for this job. Using this tracking number with your region's carrier's website, you can track a Snowball as the carrier transports it.

For India, the carrier is Amazon Logistics. For all other regions, UPS is the carrier.

", "UnsupportedAddressException$Message": null, + "UpdateClusterRequest$Description": "

The updated description of this cluster.

", "UpdateJobRequest$Description": "

The updated description of this job's JobMetadata object.

" } }, "Timestamp": { "base": null, "refs": { + "ClusterListEntry$CreationDate": "

The creation date for this cluster.

", + "ClusterMetadata$CreationDate": "

The creation date for this cluster.

", + "JobListEntry$CreationDate": "

The creation date for this job.

", "JobMetadata$CreationDate": "

The creation date for this job.

" } }, @@ -400,6 +578,16 @@ "refs": { } }, + "UpdateClusterRequest": { + "base": null, + "refs": { + } + }, + "UpdateClusterResult": { + "base": null, + "refs": { + } + }, "UpdateJobRequest": { "base": null, "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/snowball/2016-06-30/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/snowball/2016-06-30/examples-1.json index 0ea7e3b0b..9d6997186 100755 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/snowball/2016-06-30/examples-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/snowball/2016-06-30/examples-1.json @@ -1,5 +1,442 @@ { "version": "1.0", "examples": { + "CancelCluster": [ + { + "input": { + "ClusterId": "CID123e4567-e89b-12d3-a456-426655440000" + }, + "comments": { + }, + "description": "This operation cancels a cluster job. You can only cancel a cluster job while it's in the AwaitingQuorum status.", + "id": "to-cancel-a-cluster-job-1482533760554", + "title": "To cancel a cluster job" + } + ], + "CancelJob": [ + { + "input": { + "JobId": "JID123e4567-e89b-12d3-a456-426655440000" + }, + "comments": { + }, + "description": "This operation cancels a job. You can only cancel a job before its JobState value changes to PreparingAppliance.", + "id": "to-cancel-a-job-for-a-snowball-device-1482534699477", + "title": "To cancel a job for a Snowball device" + } + ], + "CreateAddress": [ + { + "input": { + "Address": { + "City": "Seattle", + "Company": "My Company's Name", + "Country": "USA", + "Name": "My Name", + "PhoneNumber": "425-555-5555", + "PostalCode": "98101", + "StateOrProvince": "WA", + "Street1": "123 Main Street" + } + }, + "output": { + "AddressId": "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b" + }, + "comments": { + }, + "description": "This operation creates an address for a job. Addresses are validated at the time of creation. The address you provide must be located within the serviceable area of your region. If the address is invalid or unsupported, then an exception is thrown.", + "id": "to-create-an-address-for-a-job-1482535416294", + "title": "To create an address for a job" + } + ], + "CreateCluster": [ + { + "input": { + "AddressId": "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b", + "Description": "MyCluster", + "JobType": "LOCAL_USE", + "KmsKeyARN": "arn:aws:kms:us-east-1:123456789012:key/abcd1234-12ab-34cd-56ef-123456123456", + "Notification": { + "JobStatesToNotify": [ + + ], + "NotifyAll": false + }, + "Resources": { + "S3Resources": [ + { + "BucketArn": "arn:aws:s3:::MyBucket", + "KeyRange": { + } + } + ] + }, + "RoleARN": "arn:aws:iam::123456789012:role/snowball-import-S3-role", + "ShippingOption": "SECOND_DAY", + "SnowballType": "EDGE" + }, + "output": { + "ClusterId": "CID123e4567-e89b-12d3-a456-426655440000" + }, + "comments": { + }, + "description": "Creates an empty cluster. Each cluster supports five nodes. You use the CreateJob action separately to create the jobs for each of these nodes. The cluster does not ship until these five node jobs have been created.", + "id": "to-create-a-cluster-1482864724077", + "title": "To create a cluster" + } + ], + "CreateJob": [ + { + "input": { + "AddressId": "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b", + "Description": "My Job", + "JobType": "IMPORT", + "KmsKeyARN": "arn:aws:kms:us-east-1:123456789012:key/abcd1234-12ab-34cd-56ef-123456123456", + "Notification": { + "JobStatesToNotify": [ + + ], + "NotifyAll": false + }, + "Resources": { + "S3Resources": [ + { + "BucketArn": "arn:aws:s3:::MyBucket", + "KeyRange": { + } + } + ] + }, + "RoleARN": "arn:aws:iam::123456789012:role/snowball-import-S3-role", + "ShippingOption": "SECOND_DAY", + "SnowballCapacityPreference": "T80", + "SnowballType": "STANDARD" + }, + "output": { + "JobId": "JID123e4567-e89b-12d3-a456-426655440000" + }, + "comments": { + }, + "description": "Creates a job to import or export data between Amazon S3 and your on-premises data center. Your AWS account must have the right trust policies and permissions in place to create a job for Snowball. If you're creating a job for a node in a cluster, you only need to provide the clusterId value; the other job attributes are inherited from the cluster.", + "id": "to-create-a-job-1482864834886", + "title": "To create a job" + } + ], + "DescribeAddress": [ + { + "input": { + "AddressId": "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b" + }, + "output": { + "Address": { + "AddressId": "ADID5643ec50-3eec-4eb3-9be6-9374c10eb51b", + "City": "Seattle", + "Company": "My Company", + "Country": "US", + "Name": "My Name", + "PhoneNumber": "425-555-5555", + "PostalCode": "98101", + "StateOrProvince": "WA", + "Street1": "123 Main Street" + } + }, + "comments": { + }, + "description": "This operation describes an address for a job.", + "id": "to-describe-an-address-for-a-job-1482538608745", + "title": "To describe an address for a job" + } + ], + "DescribeAddresses": [ + { + "input": { + }, + "output": { + "Addresses": [ + { + "AddressId": "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b", + "City": "Seattle", + "Company": "My Company", + "Country": "US", + "Name": "My Name", + "PhoneNumber": "425-555-5555", + "PostalCode": "98101", + "StateOrProvince": "WA", + "Street1": "123 Main Street" + } + ] + }, + "comments": { + }, + "description": "This operation describes all the addresses that you've created for AWS Snowball. Calling this API in one of the US regions will return addresses from the list of all addresses associated with this account in all US regions.", + "id": "to-describe-all-the-addresses-youve-created-for-aws-snowball-1482538936603", + "title": "To describe all the addresses you've created for AWS Snowball" + } + ], + "DescribeCluster": [ + { + "input": { + "ClusterId": "CID123e4567-e89b-12d3-a456-426655440000" + }, + "output": { + "ClusterMetadata": { + "AddressId": "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b", + "ClusterId": "CID123e4567-e89b-12d3-a456-426655440000", + "ClusterState": "Pending", + "CreationDate": "1480475517.0", + "Description": "MyCluster", + "JobType": "LOCAL_USE", + "KmsKeyARN": "arn:aws:kms:us-east-1:123456789012:key/abcd1234-12ab-34cd-56ef-123456123456", + "Notification": { + "JobStatesToNotify": [ + + ], + "NotifyAll": false + }, + "Resources": { + "S3Resources": [ + { + "BucketArn": "arn:aws:s3:::MyBucket", + "KeyRange": { + } + } + ] + }, + "RoleARN": "arn:aws:iam::123456789012:role/snowball-import-S3-role", + "ShippingOption": "SECOND_DAY" + } + }, + "comments": { + }, + "description": "Returns information about a specific cluster including shipping information, cluster status, and other important metadata.", + "id": "to-describe-a-cluster-1482864218396", + "title": "To describe a cluster" + } + ], + "DescribeJob": [ + { + "input": { + "JobId": "JID123e4567-e89b-12d3-a456-426655440000" + }, + "output": { + "JobMetadata": { + "AddressId": "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b", + "CreationDate": "1475626164", + "Description": "My Job", + "JobId": "JID123e4567-e89b-12d3-a456-426655440000", + "JobState": "New", + "JobType": "IMPORT", + "KmsKeyARN": "arn:aws:kms:us-east-1:123456789012:key/abcd1234-12ab-34cd-56ef-123456123456", + "Notification": { + "JobStatesToNotify": [ + + ], + "NotifyAll": false + }, + "Resources": { + "S3Resources": [ + { + "BucketArn": "arn:aws:s3:::MyBucket", + "KeyRange": { + } + } + ] + }, + "RoleARN": "arn:aws:iam::123456789012:role/snowball-import-S3-role", + "ShippingDetails": { + "ShippingOption": "SECOND_DAY" + }, + "SnowballCapacityPreference": "T80", + "SnowballType": "STANDARD" + } + }, + "comments": { + }, + "description": "This operation describes a job you've created for AWS Snowball.", + "id": "to-describe-a-job-youve-created-for-aws-snowball-1482539500180", + "title": "To describe a job you've created for AWS Snowball" + } + ], + "GetJobManifest": [ + { + "input": { + "JobId": "JID123e4567-e89b-12d3-a456-426655440000" + }, + "output": { + "ManifestURI": "https://awsie-frosty-manifests-prod.s3.amazonaws.com/JID123e4567-e89b-12d3-a456-426655440000_manifest.bin?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20161224T005115Z&X-Amz-SignedHeaders=..." + }, + "comments": { + }, + "description": "Returns a link to an Amazon S3 presigned URL for the manifest file associated with the specified JobId value. You can access the manifest file for up to 60 minutes after this request has been made. To access the manifest file after 60 minutes have passed, you'll have to make another call to the GetJobManifest action.\n\nThe manifest is an encrypted file that you can download after your job enters the WithCustomer status. The manifest is decrypted by using the UnlockCode code value, when you pass both values to the Snowball through the Snowball client when the client is started for the first time.\n\nAs a best practice, we recommend that you don't save a copy of an UnlockCode value in the same location as the manifest file for that job. Saving these separately helps prevent unauthorized parties from gaining access to the Snowball associated with that job.\n\nThe credentials of a given job, including its manifest file and unlock code, expire 90 days after the job is created.", + "id": "to-get-the-manifest-for-a-job-youve-created-for-aws-snowball-1482540389246", + "title": "To get the manifest for a job you've created for AWS Snowball" + } + ], + "GetJobUnlockCode": [ + { + "input": { + "JobId": "JID123e4567-e89b-12d3-a456-426655440000" + }, + "output": { + "UnlockCode": "12345-abcde-56789-fghij-01234" + }, + "comments": { + }, + "description": "Returns the UnlockCode code value for the specified job. A particular UnlockCode value can be accessed for up to 90 days after the associated job has been created.\n\nThe UnlockCode value is a 29-character code with 25 alphanumeric characters and 4 hyphens. This code is used to decrypt the manifest file when it is passed along with the manifest to the Snowball through the Snowball client when the client is started for the first time.\n\nAs a best practice, we recommend that you don't save a copy of the UnlockCode in the same location as the manifest file for that job. Saving these separately helps prevent unauthorized parties from gaining access to the Snowball associated with that job.", + "id": "to-get-the-unlock-code-for-a-job-youve-created-for-aws-snowball-1482541987286", + "title": "To get the unlock code for a job you've created for AWS Snowball" + } + ], + "GetSnowballUsage": [ + { + "input": { + }, + "output": { + "SnowballLimit": 1, + "SnowballsInUse": 0 + }, + "comments": { + }, + "description": "Returns information about the Snowball service limit for your account, and also the number of Snowballs your account has in use.\n\nThe default service limit for the number of Snowballs that you can have at one time is 1. If you want to increase your service limit, contact AWS Support.", + "id": "to-see-your-snowball-service-limit-and-the-number-of-snowballs-you-have-in-use-1482863394588", + "title": "To see your Snowball service limit and the number of Snowballs you have in use" + } + ], + "ListClusterJobs": [ + { + "input": { + "ClusterId": "CID123e4567-e89b-12d3-a456-426655440000" + }, + "output": { + "JobListEntries": [ + { + "CreationDate": "1480475524.0", + "Description": "MyClustrer-node-001", + "IsMaster": false, + "JobId": "JID123e4567-e89b-12d3-a456-426655440000", + "JobState": "New", + "JobType": "LOCAL_USE", + "SnowballType": "EDGE" + }, + { + "CreationDate": "1480475525.0", + "Description": "MyClustrer-node-002", + "IsMaster": false, + "JobId": "JID123e4567-e89b-12d3-a456-426655440001", + "JobState": "New", + "JobType": "LOCAL_USE", + "SnowballType": "EDGE" + }, + { + "CreationDate": "1480475525.0", + "Description": "MyClustrer-node-003", + "IsMaster": false, + "JobId": "JID123e4567-e89b-12d3-a456-426655440002", + "JobState": "New", + "JobType": "LOCAL_USE", + "SnowballType": "EDGE" + }, + { + "CreationDate": "1480475525.0", + "Description": "MyClustrer-node-004", + "IsMaster": false, + "JobId": "JID123e4567-e89b-12d3-a456-426655440003", + "JobState": "New", + "JobType": "LOCAL_USE", + "SnowballType": "EDGE" + }, + { + "CreationDate": "1480475525.0", + "Description": "MyClustrer-node-005", + "IsMaster": false, + "JobId": "JID123e4567-e89b-12d3-a456-426655440004", + "JobState": "New", + "JobType": "LOCAL_USE", + "SnowballType": "EDGE" + } + ] + }, + "comments": { + }, + "description": "Returns an array of JobListEntry objects of the specified length. Each JobListEntry object is for a job in the specified cluster and contains a job's state, a job's ID, and other information.", + "id": "to-get-a-list-of-jobs-in-a-cluster-that-youve-created-for-aws-snowball-1482863105773", + "title": "To get a list of jobs in a cluster that you've created for AWS Snowball" + } + ], + "ListClusters": [ + { + "input": { + }, + "output": { + "ClusterListEntries": [ + { + "ClusterId": "CID123e4567-e89b-12d3-a456-426655440000", + "ClusterState": "Pending", + "CreationDate": "1480475517.0", + "Description": "MyCluster" + } + ] + }, + "comments": { + }, + "description": "Returns an array of ClusterListEntry objects of the specified length. Each ClusterListEntry object contains a cluster's state, a cluster's ID, and other important status information.", + "id": "to-get-a-list-of-clusters-that-youve-created-for-aws-snowball-1482862223003", + "title": "To get a list of clusters that you've created for AWS Snowball" + } + ], + "ListJobs": [ + { + "input": { + }, + "output": { + "JobListEntries": [ + { + "CreationDate": "1460678186.0", + "Description": "MyJob", + "IsMaster": false, + "JobId": "JID123e4567-e89b-12d3-a456-426655440000", + "JobState": "New", + "JobType": "IMPORT", + "SnowballType": "STANDARD" + } + ] + }, + "comments": { + }, + "description": "Returns an array of JobListEntry objects of the specified length. Each JobListEntry object contains a job's state, a job's ID, and a value that indicates whether the job is a job part, in the case of export jobs. Calling this API action in one of the US regions will return jobs from the list of all jobs associated with this account in all US regions.", + "id": "to-get-a-list-of-jobs-that-youve-created-for-aws-snowball-1482542167627", + "title": "To get a list of jobs that you've created for AWS Snowball" + } + ], + "UpdateCluster": [ + { + "input": { + "AddressId": "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b", + "ClusterId": "CID123e4567-e89b-12d3-a456-426655440000", + "Description": "Updated the address to send this to image processing - RJ" + }, + "comments": { + }, + "description": "This action allows you to update certain parameters for a cluster. Once the cluster changes to a different state, usually within 60 minutes of it being created, this action is no longer available.", + "id": "to-update-a-cluster-1482863900595", + "title": "To update a cluster" + } + ], + "UpdateJob": [ + { + "input": { + "AddressId": "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b", + "Description": "Upgraded to Edge, shipped to Finance Dept, and requested faster shipping speed - TS.", + "JobId": "JID123e4567-e89b-12d3-a456-426655440000", + "ShippingOption": "NEXT_DAY", + "SnowballCapacityPreference": "T100" + }, + "comments": { + }, + "description": "This action allows you to update certain parameters for a job. Once the job changes to a different job state, usually within 60 minutes of the job being created, this action is no longer available.", + "id": "to-update-a-job-1482863556886", + "title": "To update a job" + } + ] } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sns/2010-03-31/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sns/2010-03-31/api-2.json index d2ae067b9..de483026a 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/sns/2010-03-31/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/sns/2010-03-31/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"sns-2010-03-31", "apiVersion":"2010-03-31", "endpointPrefix":"sns", "protocol":"query", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/api-2.json index b30100f88..e6753ed1f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/api-2.json @@ -7,6 +7,7 @@ "serviceAbbreviation":"Amazon SQS", "serviceFullName":"Amazon Simple Queue Service", "signatureVersion":"v4", + "uid":"sqs-2012-11-05", "xmlNamespace":"http://queue.amazonaws.com/doc/2012-11-05/" }, "operations":{ @@ -277,19 +278,6 @@ "Actions":{"shape":"ActionNameList"} } }, - "AttributeMap":{ - "type":"map", - "key":{ - "shape":"QueueAttributeName", - "locationName":"Name" - }, - "value":{ - "shape":"String", - "locationName":"Value" - }, - "flattened":true, - "locationName":"Attribute" - }, "AttributeNameList":{ "type":"list", "member":{ @@ -427,7 +415,7 @@ "members":{ "QueueName":{"shape":"String"}, "Attributes":{ - "shape":"AttributeMap", + "shape":"QueueAttributeMap", "locationName":"Attribute" } } @@ -535,7 +523,7 @@ "type":"structure", "members":{ "Attributes":{ - "shape":"AttributeMap", + "shape":"QueueAttributeMap", "locationName":"Attribute" } } @@ -618,28 +606,16 @@ "MD5OfBody":{"shape":"String"}, "Body":{"shape":"String"}, "Attributes":{ - "shape":"AttributeMap", + "shape":"MessageSystemAttributeMap", "locationName":"Attribute" }, "MD5OfMessageAttributes":{"shape":"String"}, "MessageAttributes":{ - "shape":"MessageAttributeMap", + "shape":"MessageBodyAttributeMap", "locationName":"MessageAttribute" } } }, - "MessageAttributeMap":{ - "type":"map", - "key":{ - "shape":"String", - "locationName":"Name" - }, - "value":{ - "shape":"MessageAttributeValue", - "locationName":"Value" - }, - "flattened":true - }, "MessageAttributeName":{"type":"string"}, "MessageAttributeNameList":{ "type":"list", @@ -668,6 +644,18 @@ "DataType":{"shape":"String"} } }, + "MessageBodyAttributeMap":{ + "type":"map", + "key":{ + "shape":"String", + "locationName":"Name" + }, + "value":{ + "shape":"MessageAttributeValue", + "locationName":"Value" + }, + "flattened":true + }, "MessageList":{ "type":"list", "member":{ @@ -687,6 +675,31 @@ }, "exception":true }, + "MessageSystemAttributeMap":{ + "type":"map", + "key":{ + "shape":"MessageSystemAttributeName", + "locationName":"Name" + }, + "value":{ + "shape":"String", + "locationName":"Value" + }, + "flattened":true, + "locationName":"Attribute" + }, + "MessageSystemAttributeName":{ + "type":"string", + "enum":[ + "SenderId", + "SentTimestamp", + "ApproximateReceiveCount", + "ApproximateFirstReceiveTimestamp", + "SequenceNumber", + "MessageDeduplicationId", + "MessageGroupId" + ] + }, "OverLimit":{ "type":"structure", "members":{ @@ -716,9 +729,23 @@ "QueueUrl":{"shape":"String"} } }, + "QueueAttributeMap":{ + "type":"map", + "key":{ + "shape":"QueueAttributeName", + "locationName":"Name" + }, + "value":{ + "shape":"String", + "locationName":"Value" + }, + "flattened":true, + "locationName":"Attribute" + }, "QueueAttributeName":{ "type":"string", "enum":[ + "All", "Policy", "VisibilityTimeout", "MaximumMessageSize", @@ -731,7 +758,9 @@ "ApproximateNumberOfMessagesDelayed", "DelaySeconds", "ReceiveMessageWaitTimeSeconds", - "RedrivePolicy" + "RedrivePolicy", + "FifoQueue", + "ContentBasedDeduplication" ] }, "QueueDeletedRecently":{ @@ -790,7 +819,8 @@ "MessageAttributeNames":{"shape":"MessageAttributeNameList"}, "MaxNumberOfMessages":{"shape":"Integer"}, "VisibilityTimeout":{"shape":"Integer"}, - "WaitTimeSeconds":{"shape":"Integer"} + "WaitTimeSeconds":{"shape":"Integer"}, + "ReceiveRequestAttemptId":{"shape":"String"} } }, "ReceiveMessageResult":{ @@ -832,9 +862,11 @@ "MessageBody":{"shape":"String"}, "DelaySeconds":{"shape":"Integer"}, "MessageAttributes":{ - "shape":"MessageAttributeMap", + "shape":"MessageBodyAttributeMap", "locationName":"MessageAttribute" - } + }, + "MessageDeduplicationId":{"shape":"String"}, + "MessageGroupId":{"shape":"String"} } }, "SendMessageBatchRequestEntryList":{ @@ -867,7 +899,8 @@ "Id":{"shape":"String"}, "MessageId":{"shape":"String"}, "MD5OfMessageBody":{"shape":"String"}, - "MD5OfMessageAttributes":{"shape":"String"} + "MD5OfMessageAttributes":{"shape":"String"}, + "SequenceNumber":{"shape":"String"} } }, "SendMessageBatchResultEntryList":{ @@ -889,9 +922,11 @@ "MessageBody":{"shape":"String"}, "DelaySeconds":{"shape":"Integer"}, "MessageAttributes":{ - "shape":"MessageAttributeMap", + "shape":"MessageBodyAttributeMap", "locationName":"MessageAttribute" - } + }, + "MessageDeduplicationId":{"shape":"String"}, + "MessageGroupId":{"shape":"String"} } }, "SendMessageResult":{ @@ -899,7 +934,8 @@ "members":{ "MD5OfMessageBody":{"shape":"String"}, "MD5OfMessageAttributes":{"shape":"String"}, - "MessageId":{"shape":"String"} + "MessageId":{"shape":"String"}, + "SequenceNumber":{"shape":"String"} } }, "SetQueueAttributesRequest":{ @@ -911,7 +947,7 @@ "members":{ "QueueUrl":{"shape":"String"}, "Attributes":{ - "shape":"AttributeMap", + "shape":"QueueAttributeMap", "locationName":"Attribute" } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/docs-2.json index 3722552f8..d377eeffd 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/docs-2.json @@ -1,36 +1,36 @@ { "version": "2.0", - "service": "

Welcome to the Amazon Simple Queue Service API Reference. This section describes who should read this guide, how the guide is organized, and other resources related to the Amazon Simple Queue Service (Amazon SQS).

Amazon SQS offers reliable and scalable hosted queues for storing messages as they travel between computers. By using Amazon SQS, you can move data between distributed components of your applications that perform different tasks without losing messages or requiring each component to be always available.

Helpful Links:

We also provide SDKs that enable you to access Amazon SQS from your preferred programming language. The SDKs contain functionality that automatically takes care of tasks such as:

  • Cryptographically signing your service requests

  • Retrying requests

  • Handling error responses

For a list of available SDKs, go to Tools for Amazon Web Services.

", + "service": "

Welcome to the Amazon Simple Queue Service API Reference.

Amazon Simple Queue Service (Amazon SQS) is a reliable, highly-scalable hosted queue for storing messages as they travel between applications or microservices. Amazon SQS moves data between distributed application components and helps you decouple these components.

Standard queues are available in all regions. FIFO queues are available in US West (Oregon) and US East (Ohio).

You can use AWS SDKs to access Amazon SQS using your favorite programming language. The SDKs perform tasks such as the following automatically:

  • Cryptographically sign your service requests

  • Retry requests

  • Handle error responses

Additional Information

", "operations": { - "AddPermission": "

Adds a permission to a queue for a specific principal. This allows for sharing access to the queue.

When you create a queue, you have full control access rights for the queue. Only you (as owner of the queue) can grant or deny permissions to the queue. For more information about these permissions, see Shared Queues in the Amazon SQS Developer Guide.

AddPermission writes an Amazon SQS-generated policy. If you want to write your own policy, use SetQueueAttributes to upload your policy. For more information about writing your own policy, see Using The Access Policy Language in the Amazon SQS Developer Guide.

Some API actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

", - "ChangeMessageVisibility": "

Changes the visibility timeout of a specified message in a queue to a new value. The maximum allowed timeout value you can set the value to is 12 hours. This means you can't extend the timeout of a message in an existing queue to more than a total visibility timeout of 12 hours. (For more information visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide.)

For example, let's say you have a message and its default message visibility timeout is 5 minutes. After 3 minutes, you call ChangeMessageVisiblity with a timeout of 10 minutes. At that time, the timeout for the message would be extended by 10 minutes beyond the time of the ChangeMessageVisibility call. This results in a total visibility timeout of 13 minutes. You can continue to call ChangeMessageVisibility to extend the visibility timeout to a maximum of 12 hours. If you try to extend beyond 12 hours, the request will be rejected.

There is a 120,000 limit for the number of inflight messages per queue. Messages are inflight after they have been received from the queue by a consuming component, but have not yet been deleted from the queue. If you reach the 120,000 limit, you will receive an OverLimit error message from Amazon SQS. To help avoid reaching the limit, you should delete the messages from the queue after they have been processed. You can also increase the number of queues you use to process the messages.

If you attempt to set the VisibilityTimeout to an amount more than the maximum time left, Amazon SQS returns an error. It will not automatically recalculate and increase the timeout to the maximum time remaining.

Unlike with a queue, when you change the visibility timeout for a specific message, that timeout value is applied immediately but is not saved in memory for that message. If you don't delete a message after it is received, the visibility timeout for the message the next time it is received reverts to the original timeout value, not the value you set with the ChangeMessageVisibility action.

", - "ChangeMessageVisibilityBatch": "

Changes the visibility timeout of multiple messages. This is a batch version of ChangeMessageVisibility. The result of the action on each message is reported individually in the response. You can send up to 10 ChangeMessageVisibility requests with each ChangeMessageVisibilityBatch action.

Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

Some API actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

", - "CreateQueue": "

Creates a new queue, or returns the URL of an existing one. When you request CreateQueue, you provide a name for the queue. To successfully create a new queue, you must provide a name that is unique within the scope of your own queues.

If you delete a queue, you must wait at least 60 seconds before creating a queue with the same name.

You may pass one or more attributes in the request. If you do not provide a value for any attribute, the queue will have the default value for that attribute.

Use GetQueueUrl to get a queue's URL. GetQueueUrl requires only the QueueName parameter.

If you provide the name of an existing queue, along with the exact names and values of all the queue's attributes, CreateQueue returns the queue URL for the existing queue. If the queue name, attribute names, or attribute values do not match an existing queue, CreateQueue returns an error.

Some API actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

", - "DeleteMessage": "

Deletes the specified message from the specified queue. You specify the message by using the message's receipt handle and not the message ID you received when you sent the message. Even if the message is locked by another reader due to the visibility timeout setting, it is still deleted from the queue. If you leave a message in the queue for longer than the queue's configured retention period, Amazon SQS automatically deletes it.

The receipt handle is associated with a specific instance of receiving the message. If you receive a message more than once, the receipt handle you get each time you receive the message is different. When you request DeleteMessage, if you don't provide the most recently received receipt handle for the message, the request will still succeed, but the message might not be deleted.

It is possible you will receive a message even after you have deleted it. This might happen on rare occasions if one of the servers storing a copy of the message is unavailable when you request to delete the message. The copy remains on the server and might be returned to you again on a subsequent receive request. You should create your system to be idempotent so that receiving a particular message more than once is not a problem.

", - "DeleteMessageBatch": "

Deletes up to ten messages from the specified queue. This is a batch version of DeleteMessage. The result of the delete action on each message is reported individually in the response.

Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

Some API actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

", - "DeleteQueue": "

Deletes the queue specified by the queue URL, regardless of whether the queue is empty. If the specified queue does not exist, Amazon SQS returns a successful response.

Use DeleteQueue with care; once you delete your queue, any messages in the queue are no longer available.

When you delete a queue, the deletion process takes up to 60 seconds. Requests you send involving that queue during the 60 seconds might succeed. For example, a SendMessage request might succeed, but after the 60 seconds, the queue and that message you sent no longer exist. Also, when you delete a queue, you must wait at least 60 seconds before creating a queue with the same name.

We reserve the right to delete queues that have had no activity for more than 30 days. For more information, see How Amazon SQS Queues Work in the Amazon SQS Developer Guide.

", - "GetQueueAttributes": "

Gets attributes for the specified queue.

Some API actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

", - "GetQueueUrl": "

Returns the URL of an existing queue. This action provides a simple way to retrieve the URL of an Amazon SQS queue.

To access a queue that belongs to another AWS account, use the QueueOwnerAWSAccountId parameter to specify the account ID of the queue's owner. The queue's owner must grant you permission to access the queue. For more information about shared queue access, see AddPermission or go to Shared Queues in the Amazon SQS Developer Guide.

", - "ListDeadLetterSourceQueues": "

Returns a list of your queues that have the RedrivePolicy queue attribute configured with a dead letter queue.

For more information about using dead letter queues, see Using Amazon SQS Dead Letter Queues.

", - "ListQueues": "

Returns a list of your queues. The maximum number of queues that can be returned is 1000. If you specify a value for the optional QueueNamePrefix parameter, only queues with a name beginning with the specified value are returned.

", - "PurgeQueue": "

Deletes the messages in a queue specified by the queue URL.

When you use the PurgeQueue API, the deleted messages in the queue cannot be retrieved.

When you purge a queue, the message deletion process takes up to 60 seconds. All messages sent to the queue before calling PurgeQueue will be deleted; messages sent to the queue while it is being purged may be deleted. While the queue is being purged, messages sent to the queue before PurgeQueue was called may be received, but will be deleted within the next minute.

", - "ReceiveMessage": "

Retrieves one or more messages, with a maximum limit of 10 messages, from the specified queue. Long poll support is enabled by using the WaitTimeSeconds parameter. For more information, see Amazon SQS Long Poll in the Amazon SQS Developer Guide.

Short poll is the default behavior where a weighted random set of machines is sampled on a ReceiveMessage call. This means only the messages on the sampled machines are returned. If the number of messages in the queue is small (less than 1000), it is likely you will get fewer messages than you requested per ReceiveMessage call. If the number of messages in the queue is extremely small, you might not receive any messages in a particular ReceiveMessage response; in which case you should repeat the request.

For each message returned, the response includes the following:

  • Message body

  • MD5 digest of the message body. For information about MD5, go to http://www.faqs.org/rfcs/rfc1321.html.

  • Message ID you received when you sent the message to the queue.

  • Receipt handle.

  • Message attributes.

  • MD5 digest of the message attributes.

The receipt handle is the identifier you must provide when deleting the message. For more information, see Queue and Message Identifiers in the Amazon SQS Developer Guide.

You can provide the VisibilityTimeout parameter in your request, which will be applied to the messages that Amazon SQS returns in the response. If you do not include the parameter, the overall visibility timeout for the queue is used for the returned messages. For more information, see Visibility Timeout in the Amazon SQS Developer Guide.

Going forward, new attributes might be added. If you are writing code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully.

", + "AddPermission": "

Adds a permission to a queue for a specific principal. This allows sharing access to the queue.

When you create a queue, you have full control access rights for the queue. Only you, the owner of the queue, can grant or deny permissions to the queue. For more information about these permissions, see Shared Queues in the Amazon SQS Developer Guide.

AddPermission writes an Amazon-SQS-generated policy. If you want to write your own policy, use SetQueueAttributes to upload your policy. For more information about writing your own policy, see Using The Access Policy Language in the Amazon SQS Developer Guide.

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=this

&Attribute.2=that

", + "ChangeMessageVisibility": "

Changes the visibility timeout of a specified message in a queue to a new value. The maximum allowed timeout value is 12 hours. Thus, you can't extend the timeout of a message in an existing queue to more than a total visibility timeout of 12 hours. For more information, see Visibility Timeout in the Amazon SQS Developer Guide.

For example, you have a message and with the default visibility timeout of 5 minutes. After 3 minutes, you call ChangeMessageVisiblity with a timeout of 10 minutes. At that time, the timeout for the message is extended by 10 minutes beyond the time of the ChangeMessageVisibility action. This results in a total visibility timeout of 13 minutes. You can continue to call the ChangeMessageVisibility to extend the visibility timeout to a maximum of 12 hours. If you try to extend the visibility timeout beyond 12 hours, your request is rejected.

A message is considered to be in flight after it's received from a queue by a consumer, but not yet deleted from the queue.

For standard queues, there can be a maximum of 120,000 inflight messages per queue. If you reach this limit, Amazon SQS returns the OverLimit error message. To avoid reaching the limit, you should delete messages from the queue after they're processed. You can also increase the number of queues you use to process your messages.

For FIFO queues, there can be a maximum of 20,000 inflight messages per queue. If you reach this limit, Amazon SQS returns no error messages.

If you attempt to set the VisibilityTimeout to a value greater than the maximum time left, Amazon SQS returns an error. Amazon SQS doesn't automatically recalculate and increase the timeout to the maximum remaining time.

Unlike with a queue, when you change the visibility timeout for a specific message the timeout value is applied immediately but isn't saved in memory for that message. If you don't delete a message after it is received, the visibility timeout for the message reverts to the original timeout value (not to the value you set using the ChangeMessageVisibility action) the next time the message is received.

", + "ChangeMessageVisibilityBatch": "

Changes the visibility timeout of multiple messages. This is a batch version of ChangeMessageVisibility . The result of the action on each message is reported individually in the response. You can send up to 10 ChangeMessageVisibility requests with each ChangeMessageVisibilityBatch action.

Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=this

&Attribute.2=that

", + "CreateQueue": "

Creates a new standard or FIFO queue or returns the URL of an existing queue. You can pass one or more attributes in the request. Keep the following caveats in mind:

  • If you don't specify the FifoQueue attribute, Amazon SQS creates a standard queue.

    You can't change the queue type after you create it and you can't convert an existing standard queue into a FIFO queue. You must either create a new FIFO queue for your application or delete your existing standard queue and recreate it as a FIFO queue. For more information, see Moving From a Standard Queue to a FIFO Queue in the Amazon SQS Developer Guide.

  • If you don't provide a value for an attribute, the queue is created with the default value for the attribute.

  • If you delete a queue, you must wait at least 60 seconds before creating a queue with the same name.

To successfully create a new queue, you must provide a queue name that adheres to the limits related to queues and is unique within the scope of your queues.

To get the queue URL, use the GetQueueUrl action. GetQueueUrl requires only the QueueName parameter. be aware of existing queue names:

  • If you provide the name of an existing queue along with the exact names and values of all the queue's attributes, CreateQueue returns the queue URL for the existing queue.

  • If the queue name, attribute names, or attribute values don't match an existing queue, CreateQueue returns an error.

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=this

&Attribute.2=that

", + "DeleteMessage": "

Deletes the specified message from the specified queue. You specify the message by using the message's receipt handle and not the MessageId you receive when you send the message. Even if the message is locked by another reader due to the visibility timeout setting, it is still deleted from the queue. If you leave a message in the queue for longer than the queue's configured retention period, Amazon SQS automatically deletes the message.

The receipt handle is associated with a specific instance of receiving the message. If you receive a message more than once, the receipt handle you get each time you receive the message is different. If you don't provide the most recently received receipt handle for the message when you use the DeleteMessage action, the request succeeds, but the message might not be deleted.

For standard queues, it is possible to receive a message even after you deleting it. This might happen on rare occasions if one of the servers storing a copy of the message is unavailable when you send the request to delete the message. The copy remains on the server and might be returned to you on a subsequent receive request. You should ensure that your application is idempotent, so that receiving a message more than once does not cause issues.

", + "DeleteMessageBatch": "

Deletes up to ten messages from the specified queue. This is a batch version of DeleteMessage . The result of the action on each message is reported individually in the response.

Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=this

&Attribute.2=that

", + "DeleteQueue": "

Deletes the queue specified by the QueueUrl, even if the queue is empty. If the specified queue doesn't exist, Amazon SQS returns a successful response.

Be careful with the DeleteQueue action: When you delete a queue, any messages in the queue are no longer available.

When you delete a queue, the deletion process takes up to 60 seconds. Requests you send involving that queue during the 60 seconds might succeed. For example, a SendMessage request might succeed, but after 60 seconds the queue and the message you sent no longer exist.

When you delete a queue, you must wait at least 60 seconds before creating a queue with the same name.

", + "GetQueueAttributes": "

Gets attributes for the specified queue.

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=this

&Attribute.2=that

", + "GetQueueUrl": "

Returns the URL of an existing queue. This action provides a simple way to retrieve the URL of an Amazon SQS queue.

To access a queue that belongs to another AWS account, use the QueueOwnerAWSAccountId parameter to specify the account ID of the queue's owner. The queue's owner must grant you permission to access the queue. For more information about shared queue access, see AddPermission or see Shared Queues in the Amazon SQS Developer Guide.

", + "ListDeadLetterSourceQueues": "

Returns a list of your queues that have the RedrivePolicy queue attribute configured with a dead letter queue.

For more information about using dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.

", + "ListQueues": "

Returns a list of your queues. The maximum number of queues that can be returned is 1,000. If you specify a value for the optional QueueNamePrefix parameter, only queues with a name that begins with the specified value are returned.

", + "PurgeQueue": "

Deletes the messages in a queue specified by the QueueURL parameter.

When you use the PurgeQueue action, you can't retrieve a message deleted from a queue.

When you purge a queue, the message deletion process takes up to 60 seconds. All messages sent to the queue before calling the PurgeQueue action are deleted. Messages sent to the queue while it is being purged might be deleted. While the queue is being purged, messages sent to the queue before PurgeQueue is called might be received, but are deleted within the next minute.

", + "ReceiveMessage": "

Retrieves one or more messages (up to 10), from the specified queue. Using the WaitTimeSeconds parameter enables long-poll support. For more information, see Amazon SQS Long Polling in the Amazon SQS Developer Guide.

Short poll is the default behavior where a weighted random set of machines is sampled on a ReceiveMessage call. Thus, only the messages on the sampled machines are returned. If the number of messages in the queue is small (fewer than 1,000), you most likely get fewer messages than you requested per ReceiveMessage call. If the number of messages in the queue is extremely small, you might not receive any messages in a particular ReceiveMessage response. If this happens, repeat the request.

For each message returned, the response includes the following:

  • The message body.

  • An MD5 digest of the message body. For information on MD5, see RFC1321.

  • The MessageId you received when you sent the message to the queue.

  • The receipt handle.

  • The message attributes.

  • An MD5 digest of the message attributes.

The receipt handle is the identifier you must provide when deleting the message. For more information, see Queue and Message Identifiers in the Amazon SQS Developer Guide.

You can provide the VisibilityTimeout parameter in your request. The parameter is applied to the messages that Amazon SQS returns in the response. If you don't include the parameter, the overall visibility timeout for the queue is used for the returned messages. For more information, see Visibility Timeout in the Amazon SQS Developer Guide.

A message that isn't deleted or a message whose visibility isn't extended before the visibility timeout expires counts as a failed receive. Depending on the configuration of the queue, the message might be sent to the dead letter queue.

In the future, new attributes might be added. If you write code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully.

", "RemovePermission": "

Revokes any permissions in the queue policy that matches the specified Label parameter. Only the owner of the queue can remove permissions.

", - "SendMessage": "

Delivers a message to the specified queue. With Amazon SQS, you now have the ability to send large payload messages that are up to 256KB (262,144 bytes) in size. To send large payloads, you must use an AWS SDK that supports SigV4 signing. To verify whether SigV4 is supported for an AWS SDK, check the SDK release notes.

The following list shows the characters (in Unicode) allowed in your message, according to the W3C XML specification. For more information, go to http://www.w3.org/TR/REC-xml/#charsets If you send any characters not included in the list, your request will be rejected.

#x9 | #xA | #xD | [#x20 to #xD7FF] | [#xE000 to #xFFFD] | [#x10000 to #x10FFFF]

", - "SendMessageBatch": "

Delivers up to ten messages to the specified queue. This is a batch version of SendMessage. The result of the send action on each message is reported individually in the response. The maximum allowed individual message size is 256 KB (262,144 bytes).

The maximum total payload size (i.e., the sum of all a batch's individual message lengths) is also 256 KB (262,144 bytes).

If the DelaySeconds parameter is not specified for an entry, the default for the queue is used.

The following list shows the characters (in Unicode) that are allowed in your message, according to the W3C XML specification. For more information, go to http://www.faqs.org/rfcs/rfc1321.html. If you send any characters that are not included in the list, your request will be rejected.

#x9 | #xA | #xD | [#x20 to #xD7FF] | [#xE000 to #xFFFD] | [#x10000 to #x10FFFF]

Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

Some API actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

", - "SetQueueAttributes": "

Sets the value of one or more queue attributes. When you change a queue's attributes, the change can take up to 60 seconds for most of the attributes to propagate throughout the SQS system. Changes made to the MessageRetentionPeriod attribute can take up to 15 minutes.

Going forward, new attributes might be added. If you are writing code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully.

" + "SendMessage": "

Delivers a message to the specified queue.

The following list shows the characters (in Unicode) that are allowed in your message, according to the W3C XML specification:

  • #x9

  • #xA

  • #xD

  • #x20 to #xD7FF

  • #xE000 to #xFFFD

  • #x10000 to #x10FFFF

For more information, see RFC1321. If you send any characters that aren't included in this list, your request is rejected.

", + "SendMessageBatch": "

Delivers up to ten messages to the specified queue. This is a batch version of SendMessage . For a FIFO queue, multiple messages within a single batch are enqueued in the order they are sent.

The result of sending each message is reported individually in the response. Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

The maximum allowed individual message size and the maximum total payload size (the sum of the individual lengths of all of the batched messages) are both 256 KB (262,144 bytes).

The following list shows the characters (in Unicode) that are allowed in your message, according to the W3C XML specification:

  • #x9

  • #xA

  • #xD

  • #x20 to #xD7FF

  • #xE000 to #xFFFD

  • #x10000 to #x10FFFF

For more information, see RFC1321. If you send any characters that aren't included in this list, your request is rejected.

If you don't specify the DelaySeconds parameter for an entry, Amazon SQS uses the default value for the queue.

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=this

&Attribute.2=that

", + "SetQueueAttributes": "

Sets the value of one or more queue attributes. When you change a queue's attributes, the change can take up to 60 seconds for most of the attributes to propagate throughout the Amazon SQS system. Changes made to the MessageRetentionPeriod attribute can take up to 15 minutes.

In the future, new attributes might be added. If you write code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully.

" }, "shapes": { "AWSAccountIdList": { "base": null, "refs": { - "AddPermissionRequest$AWSAccountIds": "

The AWS account number of the principal who will be given permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. For information about locating the AWS account identification, see Your AWS Identifiers in the Amazon SQS Developer Guide.

" + "AddPermissionRequest$AWSAccountIds": "

The AWS account number of the principal who is given permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. For information about locating the AWS account identification, see Your AWS Identifiers in the Amazon SQS Developer Guide.

" } }, "ActionNameList": { "base": null, "refs": { - "AddPermissionRequest$Actions": "

The action the client wants to allow for the specified principal. The following are valid values: * | SendMessage | ReceiveMessage | DeleteMessage | ChangeMessageVisibility | GetQueueAttributes | GetQueueUrl. For more information about these actions, see Understanding Permissions in the Amazon SQS Developer Guide.

Specifying SendMessage, DeleteMessage, or ChangeMessageVisibility for the ActionName.n also grants permissions for the corresponding batch versions of those actions: SendMessageBatch, DeleteMessageBatch, and ChangeMessageVisibilityBatch.

" + "AddPermissionRequest$Actions": "

The action the client wants to allow for the specified principal. The following values are valid:

  • *

  • ChangeMessageVisibility

  • DeleteMessage

  • GetQueueAttributes

  • GetQueueUrl

  • ReceiveMessage

  • SendMessage

For more information about these actions, see Understanding Permissions in the Amazon SQS Developer Guide.

Specifying SendMessage, DeleteMessage, or ChangeMessageVisibility for ActionName.n also grants permissions for the corresponding batch versions of those actions: SendMessageBatch, DeleteMessageBatch, and ChangeMessageVisibilityBatch.

" } }, "AddPermissionRequest": { @@ -38,24 +38,15 @@ "refs": { } }, - "AttributeMap": { - "base": null, - "refs": { - "CreateQueueRequest$Attributes": "

A map of attributes with their corresponding values.

The following lists the names, descriptions, and values of the special request parameters the CreateQueue action uses:

  • DelaySeconds - The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 (zero).

  • MaximumMessageSize - The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB).

  • MessageRetentionPeriod - The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days).

  • Policy - The queue's policy. A valid AWS policy. For more information about policy structure, see Overview of AWS IAM Policies in the Amazon IAM User Guide.

  • ReceiveMessageWaitTimeSeconds - The time for which a ReceiveMessage call will wait for a message to arrive. An integer from 0 to 20 (seconds). The default for this attribute is 0.

  • RedrivePolicy - The parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.

  • VisibilityTimeout - The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide.

Any other valid special request parameters that are specified (such as ApproximateNumberOfMessages, ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible, CreatedTimestamp, LastModifiedTimestamp, and QueueArn) will be ignored.

", - "GetQueueAttributesResult$Attributes": "

A map of attributes to the respective values.

", - "Message$Attributes": "

SenderId, SentTimestamp, ApproximateReceiveCount, and/or ApproximateFirstReceiveTimestamp. SentTimestamp and ApproximateFirstReceiveTimestamp are each returned as an integer representing the epoch time in milliseconds.

", - "SetQueueAttributesRequest$Attributes": "

A map of attributes to set.

The following lists the names, descriptions, and values of the special request parameters the SetQueueAttributes action uses:

  • DelaySeconds - The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 (zero).

  • MaximumMessageSize - The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB).

  • MessageRetentionPeriod - The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days).

  • Policy - The queue's policy. A valid AWS policy. For more information about policy structure, see Overview of AWS IAM Policies in the Amazon IAM User Guide.

  • ReceiveMessageWaitTimeSeconds - The time for which a ReceiveMessage call will wait for a message to arrive. An integer from 0 to 20 (seconds). The default for this attribute is 0.

  • VisibilityTimeout - The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide.

  • RedrivePolicy - The parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.

Any other valid special request parameters that are specified (such as ApproximateNumberOfMessages, ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible, CreatedTimestamp, LastModifiedTimestamp, and QueueArn) will be ignored.

" - } - }, "AttributeNameList": { "base": null, "refs": { - "GetQueueAttributesRequest$AttributeNames": "

A list of attributes to retrieve information for. The following attributes are supported:

  • All - returns all values.

  • ApproximateNumberOfMessages - returns the approximate number of visible messages in a queue. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide.

  • ApproximateNumberOfMessagesNotVisible - returns the approximate number of messages that are not timed-out and not deleted. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide.

  • VisibilityTimeout - returns the visibility timeout for the queue. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide.

  • CreatedTimestamp - returns the time when the queue was created (epoch time in seconds).

  • LastModifiedTimestamp - returns the time when the queue was last changed (epoch time in seconds).

  • Policy - returns the queue's policy.

  • MaximumMessageSize - returns the limit of how many bytes a message can contain before Amazon SQS rejects it.

  • MessageRetentionPeriod - returns the number of seconds Amazon SQS retains a message.

  • QueueArn - returns the queue's Amazon resource name (ARN).

  • ApproximateNumberOfMessagesDelayed - returns the approximate number of messages that are pending to be added to the queue.

  • DelaySeconds - returns the default delay on the queue in seconds.

  • ReceiveMessageWaitTimeSeconds - returns the time for which a ReceiveMessage call will wait for a message to arrive.

  • RedrivePolicy - returns the parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.

Going forward, new attributes might be added. If you are writing code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully.

", - "ReceiveMessageRequest$AttributeNames": "

A list of attributes that need to be returned along with each message. These attributes include:

  • All - returns all values.

  • ApproximateFirstReceiveTimestamp - returns the time when the message was first received from the queue (epoch time in milliseconds).

  • ApproximateReceiveCount - returns the number of times a message has been received from the queue but not deleted.

  • SenderId - returns the AWS account number (or the IP address, if anonymous access is allowed) of the sender.

  • SentTimestamp - returns the time when the message was sent to the queue (epoch time in milliseconds).

Any other valid special request parameters that are specified (such as ApproximateNumberOfMessages, ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible, CreatedTimestamp, DelaySeconds, LastModifiedTimestamp, MaximumMessageSize, MessageRetentionPeriod, Policy, QueueArn, ReceiveMessageWaitTimeSeconds, RedrivePolicy, and VisibilityTimeout) will be ignored.

" + "GetQueueAttributesRequest$AttributeNames": "

A list of attributes for which to retrieve information.

In the future, new attributes might be added. If you write code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully.

The following attributes are supported:

  • All - Returns all values.

  • ApproximateNumberOfMessages - Returns the approximate number of visible messages in a queue. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide.

  • ApproximateNumberOfMessagesDelayed - Returns the approximate number of messages that are waiting to be added to the queue.

  • ApproximateNumberOfMessagesNotVisible - Returns the approximate number of messages that have not timed-out and aren't deleted. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide.

  • CreatedTimestamp - Returns the time when the queue was created in seconds (epoch time).

  • DelaySeconds - Returns the default delay on the queue in seconds.

  • LastModifiedTimestamp - Returns the time when the queue was last changed in seconds (epoch time).

  • MaximumMessageSize - Returns the limit of how many bytes a message can contain before Amazon SQS rejects it.

  • MessageRetentionPeriod - Returns the number of seconds for which Amazon SQS retains a message.

  • Policy - Returns the policy of the queue.

  • QueueArn - Returns the Amazon resource name (ARN) of the queue.

  • ReceiveMessageWaitTimeSeconds - Returns the number of seconds for which the ReceiveMessage action waits for a message to arrive.

  • RedrivePolicy - Returns the parameters for dead letter queue functionality of the source queue. For more information about the redrive policy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.

  • VisibilityTimeout - Returns the visibility timeout for the queue. For more information about the visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide.

The following attributes apply only to FIFO (first-in-first-out) queues:

  • FifoQueue - Returns whether the queue is FIFO. For more information, see FIFO Queue Logic in the Amazon SQS Developer Guide.

  • ContentBasedDeduplication - Returns whether content-based deduplication is enabled for the queue. For more information, see Exactly-Once Processing in the Amazon SQS Developer Guide.

", + "ReceiveMessageRequest$AttributeNames": "

A list of attributes that need to be returned along with each message. These attributes include:

  • All - Returns all values.

  • ApproximateFirstReceiveTimestamp - Returns the time the message was first received from the queue (epoch time in milliseconds).

  • ApproximateReceiveCount - Returns the number of times a message has been received from the queue but not deleted.

  • SenderId

    • For an IAM user, returns the IAM user ID, for example ABCDEFGHI1JKLMNOPQ23R.

    • For an IAM role, returns the IAM role ID, for example ABCDE1F2GH3I4JK5LMNOP:i-a123b456.

  • SentTimestamp - Returns the time the message was sent to the queue (epoch time in milliseconds).

  • MessageDeduplicationId - Returns the value provided by the sender that calls the SendMessage action.

  • MessageGroupId - Returns the value provided by the sender that calls the SendMessage action. Messages with the same MessageGroupId are returned in sequence.

  • SequenceNumber - Returns the value provided by Amazon SQS.

Any other valid special request parameters (such as the following) are ignored:

  • ApproximateNumberOfMessages

  • ApproximateNumberOfMessagesDelayed

  • ApproximateNumberOfMessagesNotVisible

  • CreatedTimestamp

  • ContentBasedDeduplication

  • DelaySeconds

  • FifoQueue

  • LastModifiedTimestamp

  • MaximumMessageSize

  • MessageRetentionPeriod

  • Policy

  • QueueArn,

  • ReceiveMessageWaitTimeSeconds

  • RedrivePolicy

  • VisibilityTimeout

" } }, "BatchEntryIdsNotDistinct": { - "base": "

Two or more batch entries have the same Id in the request.

", + "base": "

Two or more batch entries in the request have the same Id.

", "refs": { } }, @@ -73,16 +64,16 @@ "BatchResultErrorEntryList": { "base": null, "refs": { - "ChangeMessageVisibilityBatchResult$Failed": "

A list of BatchResultErrorEntry items.

", - "DeleteMessageBatchResult$Failed": "

A list of BatchResultErrorEntry items.

", - "SendMessageBatchResult$Failed": "

A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.

" + "ChangeMessageVisibilityBatchResult$Failed": "

A list of BatchResultErrorEntry items.

", + "DeleteMessageBatchResult$Failed": "

A list of BatchResultErrorEntry items.

", + "SendMessageBatchResult$Failed": "

A list of BatchResultErrorEntry items with error details about each message that can't be enqueued.

" } }, "Binary": { "base": null, "refs": { "BinaryList$member": null, - "MessageAttributeValue$BinaryValue": "

Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.

" + "MessageAttributeValue$BinaryValue": "

Binary type attributes can store any binary data, such as compressed data, encrypted data, or images.

" } }, "BinaryList": { @@ -94,7 +85,7 @@ "Boolean": { "base": null, "refs": { - "BatchResultErrorEntry$SenderFault": "

Whether the error happened due to the sender's fault.

" + "BatchResultErrorEntry$SenderFault": "

Specifies whether the error happened due to the sender's fault.

" } }, "ChangeMessageVisibilityBatchRequest": { @@ -103,7 +94,7 @@ } }, "ChangeMessageVisibilityBatchRequestEntry": { - "base": "

Encloses a receipt handle and an entry id for each message in ChangeMessageVisibilityBatch.

All of the following parameters are list parameters that must be prefixed with ChangeMessageVisibilityBatchRequestEntry.n, where n is an integer value starting with 1. For example, a parameter list for this action might look like this:

Your_Receipt_Handle]]>

", + "base": "

Encloses a receipt handle and an entry id for each message in ChangeMessageVisibilityBatch .

All of the following list parameters must be prefixed with ChangeMessageVisibilityBatchRequestEntry.n, where n is an integer value starting with 1. For example, a parameter list for this action might look like this:

&amp;ChangeMessageVisibilityBatchRequestEntry.1.Id=change_visibility_msg_2

&amp;ChangeMessageVisibilityBatchRequestEntry.1.ReceiptHandle=<replaceable>Your_Receipt_Handle</replaceable>

&amp;ChangeMessageVisibilityBatchRequestEntry.1.VisibilityTimeout=45

", "refs": { "ChangeMessageVisibilityBatchRequestEntryList$member": null } @@ -115,12 +106,12 @@ } }, "ChangeMessageVisibilityBatchResult": { - "base": "

For each message in the batch, the response contains a ChangeMessageVisibilityBatchResultEntry tag if the message succeeds or a BatchResultErrorEntry tag if the message fails.

", + "base": "

For each message in the batch, the response contains a ChangeMessageVisibilityBatchResultEntry tag if the message succeeds or a BatchResultErrorEntry tag if the message fails.

", "refs": { } }, "ChangeMessageVisibilityBatchResultEntry": { - "base": "

Encloses the id of an entry in ChangeMessageVisibilityBatch.

", + "base": "

Encloses the Id of an entry in ChangeMessageVisibilityBatch .

", "refs": { "ChangeMessageVisibilityBatchResultEntryList$member": null } @@ -128,7 +119,7 @@ "ChangeMessageVisibilityBatchResultEntryList": { "base": null, "refs": { - "ChangeMessageVisibilityBatchResult$Successful": "

A list of ChangeMessageVisibilityBatchResultEntry items.

" + "ChangeMessageVisibilityBatchResult$Successful": "

A list of ChangeMessageVisibilityBatchResultEntry items.

" } }, "ChangeMessageVisibilityRequest": { @@ -142,7 +133,7 @@ } }, "CreateQueueResult": { - "base": "

Returns the QueueUrl element of the created queue.

", + "base": "

Returns the QueueUrl attribute of the created queue.

", "refs": { } }, @@ -164,12 +155,12 @@ } }, "DeleteMessageBatchResult": { - "base": "

For each message in the batch, the response contains a DeleteMessageBatchResultEntry tag if the message is deleted or a BatchResultErrorEntry tag if the message cannot be deleted.

", + "base": "

For each message in the batch, the response contains a DeleteMessageBatchResultEntry tag if the message is deleted or a BatchResultErrorEntry tag if the message can't be deleted.

", "refs": { } }, "DeleteMessageBatchResultEntry": { - "base": "

Encloses the id an entry in DeleteMessageBatch.

", + "base": "

Encloses the Id of an entry in DeleteMessageBatch .

", "refs": { "DeleteMessageBatchResultEntryList$member": null } @@ -177,7 +168,7 @@ "DeleteMessageBatchResultEntryList": { "base": null, "refs": { - "DeleteMessageBatchResult$Successful": "

A list of DeleteMessageBatchResultEntry items.

" + "DeleteMessageBatchResult$Successful": "

A list of DeleteMessageBatchResultEntry items.

" } }, "DeleteMessageRequest": { @@ -191,7 +182,7 @@ } }, "EmptyBatchRequest": { - "base": "

Batch request does not contain an entry.

", + "base": "

The batch request doesn't contain any entries.

", "refs": { } }, @@ -219,26 +210,26 @@ "base": null, "refs": { "ChangeMessageVisibilityBatchRequestEntry$VisibilityTimeout": "

The new value (in seconds) for the message's visibility timeout.

", - "ChangeMessageVisibilityRequest$VisibilityTimeout": "

The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message's visibility timeout.

", - "ReceiveMessageRequest$MaxNumberOfMessages": "

The maximum number of messages to return. Amazon SQS never returns more messages than this value but may return fewer. Values can be from 1 to 10. Default is 1.

All of the messages are not necessarily returned.

", + "ChangeMessageVisibilityRequest$VisibilityTimeout": "

The new value for the message's visibility timeout (in seconds). Values values: 0 to 43200. Maximum: 12 hours.

", + "ReceiveMessageRequest$MaxNumberOfMessages": "

The maximum number of messages to return. Amazon SQS never returns more messages than this value (however, fewer messages might be returned). Valid values are 1 to 10. Default is 1.

", "ReceiveMessageRequest$VisibilityTimeout": "

The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request.

", - "ReceiveMessageRequest$WaitTimeSeconds": "

The duration (in seconds) for which the call will wait for a message to arrive in the queue before returning. If a message is available, the call will return sooner than WaitTimeSeconds.

", - "SendMessageBatchRequestEntry$DelaySeconds": "

The number of seconds for which the message has to be delayed.

", - "SendMessageRequest$DelaySeconds": "

The number of seconds (0 to 900 - 15 minutes) to delay a specific message. Messages with a positive DelaySeconds value become available for processing after the delay time is finished. If you don't specify a value, the default value for the queue applies.

" + "ReceiveMessageRequest$WaitTimeSeconds": "

The duration (in seconds) for which the call waits for a message to arrive in the queue before returning. If a message is available, the call returns sooner than WaitTimeSeconds.

", + "SendMessageBatchRequestEntry$DelaySeconds": "

The number of seconds for which a specific message is delayed. Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive DelaySeconds value become available for processing after the delay period is finished. If you don't specify a value, the default value for the queue is applied.

When you set FifoQueue, you can't set DelaySeconds per message. You can set this parameter only on a queue level.

", + "SendMessageRequest$DelaySeconds": "

The number of seconds to delay a specific message. Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive DelaySeconds value become available for processing after the delay period is finished. If you don't specify a value, the default value for the queue applies.

When you set FifoQueue, you can't set DelaySeconds per message. You can set this parameter only on a queue level.

" } }, "InvalidAttributeName": { - "base": "

The attribute referred to does not exist.

", + "base": "

The attribute referred to doesn't exist.

", "refs": { } }, "InvalidBatchEntryId": { - "base": "

The Id of a batch entry in a batch request does not abide by the specification.

", + "base": "

The Id of a batch entry in a batch request doesn't abide by the specification.

", "refs": { } }, "InvalidIdFormat": { - "base": "

The receipt handle is not valid for the current version.

", + "base": "

The receipt handle isn't valid for the current version.

", "refs": { } }, @@ -273,14 +264,6 @@ "MessageList$member": null } }, - "MessageAttributeMap": { - "base": null, - "refs": { - "Message$MessageAttributes": "

Each message attribute consists of a Name, Type, and Value. For more information, see Message Attribute Items.

", - "SendMessageBatchRequestEntry$MessageAttributes": "

Each message attribute consists of a Name, Type, and Value. For more information, see Message Attribute Items.

", - "SendMessageRequest$MessageAttributes": "

Each message attribute consists of a Name, Type, and Value. For more information, see Message Attribute Items.

" - } - }, "MessageAttributeName": { "base": null, "refs": { @@ -290,13 +273,21 @@ "MessageAttributeNameList": { "base": null, "refs": { - "ReceiveMessageRequest$MessageAttributeNames": "

The name of the message attribute, where N is the index. The message attribute name can contain the following characters: A-Z, a-z, 0-9, underscore (_), hyphen (-), and period (.). The name must not start or end with a period, and it should not have successive periods. The name is case sensitive and must be unique among all attribute names for the message. The name can be up to 256 characters long. The name cannot start with \"AWS.\" or \"Amazon.\" (or any variations in casing), because these prefixes are reserved for use by Amazon Web Services.

When using ReceiveMessage, you can send a list of attribute names to receive, or you can return all of the attributes by specifying \"All\" or \".*\" in your request. You can also use \"bar.*\" to return all message attributes starting with the \"bar\" prefix.

" + "ReceiveMessageRequest$MessageAttributeNames": "

The name of the message attribute, where N is the index.

  • The name can contain alphanumeric characters and the underscore (_), hyphen (-), and period (.).

  • The name is case-sensitive and must be unique among all attribute names for the message.

  • The name must not start with AWS-reserved prefixes such as AWS. or Amazon. (or any casing variants).

  • The name must not start or end with a period (.), and it should not have periods in succession (..).

  • The name can be up to 256 characters long.

When using ReceiveMessage, you can send a list of attribute names to receive, or you can return all of the attributes by specifying All or .* in your request. You can also use all message attributes starting with a prefix, for example bar.*.

" } }, "MessageAttributeValue": { - "base": "

The user-specified message attribute value. For string data types, the value attribute has the same restrictions on the content as the message body. For more information, see SendMessage.

Name, type, and value must not be empty or null. In addition, the message body should not be empty or null. All parts of the message attribute, including name, type, and value, are included in the message size restriction, which is currently 256 KB (262,144 bytes).

", + "base": "

The user-specified message attribute value. For string data types, the Value attribute has the same restrictions on the content as the message body. For more information, see SendMessage .

Name, type, value and the message body must not be empty or null. All parts of the message attribute, including Name, Type, and Value, are part of the message size restriction (256 KB or 262,144 bytes).

", + "refs": { + "MessageBodyAttributeMap$value": null + } + }, + "MessageBodyAttributeMap": { + "base": null, "refs": { - "MessageAttributeMap$value": null + "Message$MessageAttributes": "

Each message attribute consists of a Name, Type, and Value. For more information, see Message Attribute Items and Validation in the Amazon SQS Developer Guide.

", + "SendMessageBatchRequestEntry$MessageAttributes": "

Each message attribute consists of a Name, Type, and Value. For more information, see Message Attribute Items and Validation in the Amazon SQS Developer Guide.

", + "SendMessageRequest$MessageAttributes": "

Each message attribute consists of a Name, Type, and Value. For more information, see Message Attribute Items and Validation in the Amazon SQS Developer Guide.

" } }, "MessageList": { @@ -306,17 +297,29 @@ } }, "MessageNotInflight": { - "base": "

The message referred to is not in flight.

", + "base": "

The message referred to isn't in flight.

", "refs": { } }, + "MessageSystemAttributeMap": { + "base": null, + "refs": { + "Message$Attributes": "

SenderId, SentTimestamp, ApproximateReceiveCount, and/or ApproximateFirstReceiveTimestamp. SentTimestamp and ApproximateFirstReceiveTimestamp are each returned as an integer representing the epoch time in milliseconds.

" + } + }, + "MessageSystemAttributeName": { + "base": null, + "refs": { + "MessageSystemAttributeMap$key": null + } + }, "OverLimit": { - "base": "

The action that you requested would violate a limit. For example, ReceiveMessage returns this error if the maximum number of messages inflight has already been reached. AddPermission returns this error if the maximum number of permissions for the queue has already been reached.

", + "base": "

The action that you requested would violate a limit. For example, ReceiveMessage returns this error if the maximum number of inflight messages is reached. AddPermission returns this error if the maximum number of permissions for the queue is reached.

", "refs": { } }, "PurgeQueueInProgress": { - "base": "

Indicates that the specified queue previously received a PurgeQueue request within the last 60 seconds, the time it can take to delete the messages in the queue.

", + "base": "

Indicates that the specified queue previously received a PurgeQueue request within the last 60 seconds (the time it can take to delete the messages in the queue).

", "refs": { } }, @@ -325,20 +328,28 @@ "refs": { } }, + "QueueAttributeMap": { + "base": null, + "refs": { + "CreateQueueRequest$Attributes": "

A map of attributes with their corresponding values.

The following lists the names, descriptions, and values of the special request parameters that the CreateQueue action uses:

  • DelaySeconds - The number of seconds for which the delivery of all messages in the queue is delayed. Valid values: An integer from 0 to 900 seconds (15 minutes). The default is 0 (zero).

  • MaximumMessageSize - The limit of how many bytes a message can contain before Amazon SQS rejects it. Valid values: An integer from 1,024 bytes (1 KiB) to 262,144 bytes (256 KiB). The default is 262,144 (256 KiB).

  • MessageRetentionPeriod - The number of seconds for which Amazon SQS retains a message. Valid values: An integer from 60 seconds (1 minute) to 1,209,600 seconds (14 days). The default is 345,600 (4 days).

  • Policy - The queue's policy. A valid AWS policy. For more information about policy structure, see Overview of AWS IAM Policies in the Amazon IAM User Guide.

  • ReceiveMessageWaitTimeSeconds - The number of seconds for which a ReceiveMessage action waits for a message to arrive. Valid values: An integer from 0 to 20 (seconds). The default is 0 (zero).

  • RedrivePolicy - The parameters for the dead letter queue functionality of the source queue. For more information about the redrive policy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.

    The dead letter queue of a FIFO queue must also be a FIFO queue. Similarly, the dead letter queue of a standard queue must also be a standard queue.

  • VisibilityTimeout - The visibility timeout for the queue. Valid values: An integer from 0 to 43,200 (12 hours). The default is 30. For more information about the visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide.

The following attributes apply only to FIFO (first-in-first-out) queues:

  • FifoQueue - Designates a queue as FIFO. You can provide this attribute only during queue creation. You can't change it for an existing queue. When you set this attribute, you must provide a MessageGroupId explicitly.

    For more information, see FIFO Queue Logic in the Amazon SQS Developer Guide.

  • ContentBasedDeduplication - Enables content-based deduplication. For more information, see Exactly-Once Processing in the Amazon SQS Developer Guide.

    • Every message must have a unique MessageDeduplicationId,

      • You may provide a MessageDeduplicationId explicitly.

      • If you aren't able to provide a MessageDeduplicationId and you enable ContentBasedDeduplication for your queue, Amazon SQS uses a SHA-256 hash to generate the MessageDeduplicationId using the body of the message (but not the attributes of the message).

      • If you don't provide a MessageDeduplicationId and the queue doesn't have ContentBasedDeduplication set, the action fails with an error.

      • If the queue has ContentBasedDeduplication set, your MessageDeduplicationId overrides the generated one.

    • When ContentBasedDeduplication is in effect, messages with identical content sent within the deduplication interval are treated as duplicates and only one copy of the message is delivered.

    • You can also use ContentBasedDeduplication for messages with identical content to be treated as duplicates.

    • If you send one message with ContentBasedDeduplication enabled and then another message with a MessageDeduplicationId that is the same as the one generated for the first MessageDeduplicationId, the two messages are treated as duplicates and only one copy of the message is delivered.

Any other valid special request parameters (such as the following) are ignored:

  • ApproximateNumberOfMessages

  • ApproximateNumberOfMessagesDelayed

  • ApproximateNumberOfMessagesNotVisible

  • CreatedTimestamp

  • LastModifiedTimestamp

  • QueueArn

", + "GetQueueAttributesResult$Attributes": "

A map of attributes to their respective values.

", + "SetQueueAttributesRequest$Attributes": "

A map of attributes to set.

The following lists the names, descriptions, and values of the special request parameters that the SetQueueAttributes action uses:

  • DelaySeconds - The number of seconds for which the delivery of all messages in the queue is delayed. Valid values: An integer from 0 to 900 (15 minutes). The default is 0 (zero).

  • MaximumMessageSize - The limit of how many bytes a message can contain before Amazon SQS rejects it. Valid values: An integer from 1,024 bytes (1 KiB) up to 262,144 bytes (256 KiB). The default is 262,144 (256 KiB).

  • MessageRetentionPeriod - The number of seconds for which Amazon SQS retains a message. Valid values: An integer representing seconds, from 60 (1 minute) to 1,209,600 (14 days). The default is 345,600 (4 days).

  • Policy - The queue's policy. A valid AWS policy. For more information about policy structure, see Overview of AWS IAM Policies in the Amazon IAM User Guide.

  • ReceiveMessageWaitTimeSeconds - The number of seconds for which a ReceiveMessage action waits for a message to arrive. Valid values: an integer from 0 to 20 (seconds). The default is 0.

  • RedrivePolicy - The parameters for the dead letter queue functionality of the source queue. For more information about the redrive policy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.

    The dead letter queue of a FIFO queue must also be a FIFO queue. Similarly, the dead letter queue of a standard queue must also be a standard queue.

  • VisibilityTimeout - The visibility timeout for the queue. Valid values: an integer from 0 to 43,200 (12 hours). The default is 30. For more information about the visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide.

The following attribute applies only to FIFO (first-in-first-out) queues:

  • ContentBasedDeduplication - Enables content-based deduplication. For more information, see Exactly-Once Processing in the Amazon SQS Developer Guide.

    • Every message must have a unique MessageDeduplicationId,

      • You may provide a MessageDeduplicationId explicitly.

      • If you aren't able to provide a MessageDeduplicationId and you enable ContentBasedDeduplication for your queue, Amazon SQS uses a SHA-256 hash to generate the MessageDeduplicationId using the body of the message (but not the attributes of the message).

      • If you don't provide a MessageDeduplicationId and the queue doesn't have ContentBasedDeduplication set, the action fails with an error.

      • If the queue has ContentBasedDeduplication set, your MessageDeduplicationId overrides the generated one.

    • When ContentBasedDeduplication is in effect, messages with identical content sent within the deduplication interval are treated as duplicates and only one copy of the message is delivered.

    • You can also use ContentBasedDeduplication for messages with identical content to be treated as duplicates.

    • If you send one message with ContentBasedDeduplication enabled and then another message with a MessageDeduplicationId that is the same as the one generated for the first MessageDeduplicationId, the two messages are treated as duplicates and only one copy of the message is delivered.

Any other valid special request parameters (such as the following) are ignored:

  • ApproximateNumberOfMessages

  • ApproximateNumberOfMessagesDelayed

  • ApproximateNumberOfMessagesNotVisible

  • CreatedTimestamp

  • LastModifiedTimestamp

  • QueueArn

" + } + }, "QueueAttributeName": { "base": null, "refs": { - "AttributeMap$key": null, - "AttributeNameList$member": null + "AttributeNameList$member": null, + "QueueAttributeMap$key": null } }, "QueueDeletedRecently": { - "base": "

You must wait 60 seconds after deleting a queue before you can create another with the same name.

", + "base": "

You must wait 60 seconds after deleting a queue before you can create another one with the same name.

", "refs": { } }, "QueueDoesNotExist": { - "base": "

The queue referred to does not exist.

", + "base": "

The queue referred to doesn't exist.

", "refs": { } }, @@ -350,12 +361,12 @@ "QueueUrlList": { "base": null, "refs": { - "ListDeadLetterSourceQueuesResult$queueUrls": "

A list of source queue URLs that have the RedrivePolicy queue attribute configured with a dead letter queue.

", - "ListQueuesResult$QueueUrls": "

A list of queue URLs, up to 1000 entries.

" + "ListDeadLetterSourceQueuesResult$queueUrls": "

A list of source queue URLs that have the RedrivePolicy queue attribute configured with a dead letter queue.

", + "ListQueuesResult$QueueUrls": "

A list of queue URLs, up to 1,000 entries.

" } }, "ReceiptHandleIsInvalid": { - "base": "

The receipt handle provided is not valid.

", + "base": "

The receipt handle provided isn't valid.

", "refs": { } }, @@ -380,7 +391,7 @@ } }, "SendMessageBatchRequestEntry": { - "base": "

Contains the details of a single Amazon SQS message along with a Id.

", + "base": "

Contains the details of a single Amazon SQS message along with an Id.

", "refs": { "SendMessageBatchRequestEntryList$member": null } @@ -388,16 +399,16 @@ "SendMessageBatchRequestEntryList": { "base": null, "refs": { - "SendMessageBatchRequest$Entries": "

A list of SendMessageBatchRequestEntry items.

" + "SendMessageBatchRequest$Entries": "

A list of SendMessageBatchRequestEntry items.

" } }, "SendMessageBatchResult": { - "base": "

For each message in the batch, the response contains a SendMessageBatchResultEntry tag if the message succeeds or a BatchResultErrorEntry tag if the message fails.

", + "base": "

For each message in the batch, the response contains a SendMessageBatchResultEntry tag if the message succeeds or a BatchResultErrorEntry tag if the message fails.

", "refs": { } }, "SendMessageBatchResultEntry": { - "base": "

Encloses a message ID for successfully enqueued message of a SendMessageBatch.

", + "base": "

Encloses a MessageId for a successfully-enqueued message in a SendMessageBatch .

", "refs": { "SendMessageBatchResultEntryList$member": null } @@ -405,7 +416,7 @@ "SendMessageBatchResultEntryList": { "base": null, "refs": { - "SendMessageBatchResult$Successful": "

A list of SendMessageBatchResultEntry items.

" + "SendMessageBatchResult$Successful": "

A list of SendMessageBatchResultEntry items.

" } }, "SendMessageRequest": { @@ -414,7 +425,7 @@ } }, "SendMessageResult": { - "base": "

The MD5OfMessageBody and MessageId elements.

", + "base": "

The MD5OfMessageBody and MessageId elements.

", "refs": { } }, @@ -428,59 +439,67 @@ "refs": { "AWSAccountIdList$member": null, "ActionNameList$member": null, - "AddPermissionRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", - "AddPermissionRequest$Label": "

The unique identification of the permission you're setting (e.g., AliceSendMessage). Constraints: Maximum 80 characters; alphanumeric characters, hyphens (-), and underscores (_) are allowed.

", - "AttributeMap$value": null, - "BatchResultErrorEntry$Id": "

The id of an entry in a batch request.

", + "AddPermissionRequest$QueueUrl": "

The URL of the Amazon SQS queue to which permissions are added.

Queue URLs are case-sensitive.

", + "AddPermissionRequest$Label": "

The unique identification of the permission you're setting (for example, AliceSendMessage). Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens (-), and underscores (_).

", + "BatchResultErrorEntry$Id": "

The Id of an entry in a batch request.

", "BatchResultErrorEntry$Code": "

An error code representing why the action failed on this entry.

", "BatchResultErrorEntry$Message": "

A message explaining why the action failed on this entry.

", - "ChangeMessageVisibilityBatchRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", - "ChangeMessageVisibilityBatchRequestEntry$Id": "

An identifier for this particular receipt handle. This is used to communicate the result. Note that the Ids of a batch request need to be unique within the request.

", + "ChangeMessageVisibilityBatchRequest$QueueUrl": "

The URL of the Amazon SQS queue whose messages' visibility is changed.

Queue URLs are case-sensitive.

", + "ChangeMessageVisibilityBatchRequestEntry$Id": "

An identifier for this particular receipt handle used to communicate the result.

The Ids of a batch request need to be unique within a request

", "ChangeMessageVisibilityBatchRequestEntry$ReceiptHandle": "

A receipt handle.

", "ChangeMessageVisibilityBatchResultEntry$Id": "

Represents a message whose visibility timeout has been changed successfully.

", - "ChangeMessageVisibilityRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", - "ChangeMessageVisibilityRequest$ReceiptHandle": "

The receipt handle associated with the message whose visibility timeout should be changed. This parameter is returned by the ReceiveMessage action.

", - "CreateQueueRequest$QueueName": "

The name for the queue to be created.

Queue names are case-sensitive.

", - "CreateQueueResult$QueueUrl": "

The URL for the created Amazon SQS queue.

", - "DeleteMessageBatchRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", - "DeleteMessageBatchRequestEntry$Id": "

An identifier for this particular receipt handle. This is used to communicate the result. Note that the Ids of a batch request need to be unique within the request.

", + "ChangeMessageVisibilityRequest$QueueUrl": "

The URL of the Amazon SQS queue whose message's visibility is changed.

Queue URLs are case-sensitive.

", + "ChangeMessageVisibilityRequest$ReceiptHandle": "

The receipt handle associated with the message whose visibility timeout is changed. This parameter is returned by the ReceiveMessage action.

", + "CreateQueueRequest$QueueName": "

The name of the new queue. The following limits apply to this name:

  • A queue name can have up to 80 characters.

  • Valid values: alphanumeric characters, hyphens (-), and underscores (_).

  • A FIFO queue name must end with the .fifo suffix.

Queue names are case-sensitive.

", + "CreateQueueResult$QueueUrl": "

The URL of the created Amazon SQS queue.

", + "DeleteMessageBatchRequest$QueueUrl": "

The URL of the Amazon SQS queue from which messages are deleted.

Queue URLs are case-sensitive.

", + "DeleteMessageBatchRequestEntry$Id": "

An identifier for this particular receipt handle. This is used to communicate the result.

The Ids of a batch request need to be unique within a request

", "DeleteMessageBatchRequestEntry$ReceiptHandle": "

A receipt handle.

", "DeleteMessageBatchResultEntry$Id": "

Represents a successfully deleted message.

", - "DeleteMessageRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", + "DeleteMessageRequest$QueueUrl": "

The URL of the Amazon SQS queue from which messages are deleted.

Queue URLs are case-sensitive.

", "DeleteMessageRequest$ReceiptHandle": "

The receipt handle associated with the message to delete.

", - "DeleteQueueRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", - "GetQueueAttributesRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", - "GetQueueUrlRequest$QueueName": "

The name of the queue whose URL must be fetched. Maximum 80 characters; alphanumeric characters, hyphens (-), and underscores (_) are allowed.

Queue names are case-sensitive.

", + "DeleteQueueRequest$QueueUrl": "

The URL of the Amazon SQS queue to delete.

Queue URLs are case-sensitive.

", + "GetQueueAttributesRequest$QueueUrl": "

The URL of the Amazon SQS queue whose attribute information is retrieved.

Queue URLs are case-sensitive.

", + "GetQueueUrlRequest$QueueName": "

The name of the queue whose URL must be fetched. Maximum 80 characters. Valid values: alphanumeric characters, hyphens (-), and underscores (_).

Queue names are case-sensitive.

", "GetQueueUrlRequest$QueueOwnerAWSAccountId": "

The AWS account ID of the account that created the queue.

", - "GetQueueUrlResult$QueueUrl": "

The URL for the queue.

", - "ListDeadLetterSourceQueuesRequest$QueueUrl": "

The queue URL of a dead letter queue.

Queue URLs are case-sensitive.

", + "GetQueueUrlResult$QueueUrl": "

The URL of the queue.

", + "ListDeadLetterSourceQueuesRequest$QueueUrl": "

The URL of a dead letter queue.

Queue URLs are case-sensitive.

", "ListQueuesRequest$QueueNamePrefix": "

A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned.

Queue names are case-sensitive.

", - "Message$MessageId": "

A unique identifier for the message. Message IDs are considered unique across all AWS accounts for an extended period of time.

", + "Message$MessageId": "

A unique identifier for the message. A MessageIdis considered unique across all AWS accounts for an extended period of time.

", "Message$ReceiptHandle": "

An identifier associated with the act of receiving the message. A new receipt handle is returned every time you receive a message. When deleting a message, you provide the last received receipt handle to delete the message.

", "Message$MD5OfBody": "

An MD5 digest of the non-URL-encoded message body string.

", "Message$Body": "

The message's contents (not URL-encoded).

", - "Message$MD5OfMessageAttributes": "

An MD5 digest of the non-URL-encoded message attribute string. This can be used to verify that Amazon SQS received the message correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, go to http://www.faqs.org/rfcs/rfc1321.html.

", - "MessageAttributeMap$key": null, - "MessageAttributeValue$StringValue": "

Strings are Unicode with UTF8 binary encoding. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

", - "MessageAttributeValue$DataType": "

Amazon SQS supports the following logical data types: String, Number, and Binary. For the Number data type, you must use StringValue.

You can also append custom labels. For more information, see Message Attribute Data Types.

", - "PurgeQueueRequest$QueueUrl": "

The queue URL of the queue to delete the messages from when using the PurgeQueue API.

Queue URLs are case-sensitive.

", + "Message$MD5OfMessageAttributes": "

An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information on MD5, see RFC1321.

", + "MessageAttributeValue$StringValue": "

Strings are Unicode with UTF-8 binary encoding. For a list of code values, see ASCII Printable Characters.

", + "MessageAttributeValue$DataType": "

Amazon SQS supports the following logical data types: String, Number, and Binary. For the Number data type, you must use StringValue.

You can also append custom labels. For more information, see Message Attribute Data Types and Validation in the Amazon SQS Developer Guide.

", + "MessageBodyAttributeMap$key": null, + "MessageSystemAttributeMap$value": null, + "PurgeQueueRequest$QueueUrl": "

The URL of the queue from which the PurgeQueue action deletes messages.

Queue URLs are case-sensitive.

", + "QueueAttributeMap$value": null, "QueueUrlList$member": null, - "ReceiveMessageRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", - "RemovePermissionRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", - "RemovePermissionRequest$Label": "

The identification of the permission to remove. This is the label added with the AddPermission action.

", - "SendMessageBatchRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", - "SendMessageBatchRequestEntry$Id": "

An identifier for the message in this batch. This is used to communicate the result. Note that the Ids of a batch request need to be unique within the request.

", - "SendMessageBatchRequestEntry$MessageBody": "

Body of the message.

", + "ReceiveMessageRequest$QueueUrl": "

The URL of the Amazon SQS queue from which messages are received.

Queue URLs are case-sensitive.

", + "ReceiveMessageRequest$ReceiveRequestAttemptId": "

This parameter applies only to FIFO (first-in-first-out) queues.

The token used for deduplication of ReceiveMessage calls. If a networking issue occurs after a ReceiveMessage action, and instead of a response you receive a generic error, you can retry the same action with an identical ReceiveRequestAttemptId to retrieve the same set of messages, even if their visibility timeout has not yet expired.

  • You can use ReceiveRequestAttemptId only for 5 minutes after a ReceiveMessage action.

  • When you set FifoQueue, a caller of the ReceiveMessage action can provide a ReceiveRequestAttemptId explicitly.

  • If a caller of the ReceiveMessage action doesn't provide a ReceiveRequestAttemptId, Amazon SQS generates a ReceiveRequestAttemptId.

  • You can retry the ReceiveMessage action with the same ReceiveRequestAttemptId if none of the messages have been modified (deleted or had their visibility changes).

  • During a visibility timeout, subsequent calls with the same ReceiveRequestAttemptId return the same messages and receipt handles. If a retry occurs within the deduplication interval, it resets the visibility timeout. For more information, see Visibility Timeout in the Amazon Simple Queue Service Developer Guide.

    If a caller of the ReceiveMessage action is still processing messages when the visibility timeout expires and messages become visible, another worker reading from the same queue can receive the same messages and therefore process duplicates. Also, if a reader whose message processing time is longer than the visibility timeout tries to delete the processed messages, the action fails with an error.

    To mitigate this effect, ensure that your application observes a safe threshold before the visibility timeout expires and extend the visibility timeout as necessary.

  • While messages with a particular MessageGroupId are invisible, no more messages belonging to the same MessageGroupId are returned until the visibility timeout expires. You can still receive messages with another MessageGroupId as long as it is also visible.

  • If a caller of ReceiveMessage can't track the ReceiveRequestAttemptId, no retries work until the original visibility timeout expires. As a result, delays might occur but the messages in the queue remain in a strict order.

The length of ReceiveRequestAttemptId is 128 characters. ReceiveRequestAttemptId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~).

For best practices of using ReceiveRequestAttemptId, see Using the ReceiveRequestAttemptId Request Parameter in the Amazon Simple Queue Service Developer Guide.

", + "RemovePermissionRequest$QueueUrl": "

The URL of the Amazon SQS queue from which permissions are removed.

Queue URLs are case-sensitive.

", + "RemovePermissionRequest$Label": "

The identification of the permission to remove. This is the label added using the AddPermission action.

", + "SendMessageBatchRequest$QueueUrl": "

The URL of the Amazon SQS queue to which batched messages are sent.

Queue URLs are case-sensitive.

", + "SendMessageBatchRequestEntry$Id": "

An identifier for a message in this batch used to communicate the result.

The Ids of a batch request need to be unique within a request

", + "SendMessageBatchRequestEntry$MessageBody": "

The body of the message.

", + "SendMessageBatchRequestEntry$MessageDeduplicationId": "

This parameter applies only to FIFO (first-in-first-out) queues.

The token used for deduplication of messages within a 5-minute minimum deduplication interval. If a message with a particular MessageDeduplicationId is sent successfully, subsequent messages with the same MessageDeduplicationId are accepted successfully but aren't delivered. For more information, see Exactly-Once Processing in the Amazon SQS Developer Guide.

  • Every message must have a unique MessageDeduplicationId,

    • You may provide a MessageDeduplicationId explicitly.

    • If you aren't able to provide a MessageDeduplicationId and you enable ContentBasedDeduplication for your queue, Amazon SQS uses a SHA-256 hash to generate the MessageDeduplicationId using the body of the message (but not the attributes of the message).

    • If you don't provide a MessageDeduplicationId and the queue doesn't have ContentBasedDeduplication set, the action fails with an error.

    • If the queue has ContentBasedDeduplication set, your MessageDeduplicationId overrides the generated one.

  • When ContentBasedDeduplication is in effect, messages with identical content sent within the deduplication interval are treated as duplicates and only one copy of the message is delivered.

  • You can also use ContentBasedDeduplication for messages with identical content to be treated as duplicates.

  • If you send one message with ContentBasedDeduplication enabled and then another message with a MessageDeduplicationId that is the same as the one generated for the first MessageDeduplicationId, the two messages are treated as duplicates and only one copy of the message is delivered.

The MessageDeduplicationId is available to the recipient of the message (this can be useful for troubleshooting delivery issues).

If a message is sent successfully but the acknowledgement is lost and the message is resent with the same MessageDeduplicationId after the deduplication interval, Amazon SQS can't detect duplicate messages.

The length of MessageDeduplicationId is 128 characters. MessageDeduplicationId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~).

For best practices of using MessageDeduplicationId, see Using the MessageDeduplicationId Property in the Amazon Simple Queue Service Developer Guide.

", + "SendMessageBatchRequestEntry$MessageGroupId": "

This parameter applies only to FIFO (first-in-first-out) queues.

The tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). To interleave multiple ordered streams within a single queue, use MessageGroupId values (for example, session data for multiple users). In this scenario, multiple readers can process the queue, but the session data of each user is processed in a FIFO fashion.

  • You must associate a non-empty MessageGroupId with a message. If you don't provide a MessageGroupId, the action fails.

  • ReceiveMessage might return messages with multiple MessageGroupId values. For each MessageGroupId, the messages are sorted by time sent. The caller can't specify a MessageGroupId.

The length of MessageGroupId is 128 characters. Valid values are alphanumeric characters and punctuation (!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~).

For best practices of using MessageGroupId, see Using the MessageGroupId Property in the Amazon Simple Queue Service Developer Guide.

", "SendMessageBatchResultEntry$Id": "

An identifier for the message in this batch.

", "SendMessageBatchResultEntry$MessageId": "

An identifier for the message.

", - "SendMessageBatchResultEntry$MD5OfMessageBody": "

An MD5 digest of the non-URL-encoded message body string. This can be used to verify that Amazon SQS received the message correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, go to http://www.faqs.org/rfcs/rfc1321.html.

", - "SendMessageBatchResultEntry$MD5OfMessageAttributes": "

An MD5 digest of the non-URL-encoded message attribute string. This can be used to verify that Amazon SQS received the message batch correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, go to http://www.faqs.org/rfcs/rfc1321.html.

", - "SendMessageRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", - "SendMessageRequest$MessageBody": "

The message to send. String maximum 256 KB in size. For a list of allowed characters, see the preceding important note.

", - "SendMessageResult$MD5OfMessageBody": "

An MD5 digest of the non-URL-encoded message body string. This can be used to verify that Amazon SQS received the message correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, go to http://www.faqs.org/rfcs/rfc1321.html.

", - "SendMessageResult$MD5OfMessageAttributes": "

An MD5 digest of the non-URL-encoded message attribute string. This can be used to verify that Amazon SQS received the message correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, go to http://www.faqs.org/rfcs/rfc1321.html.

", - "SendMessageResult$MessageId": "

An element containing the message ID of the message sent to the queue. For more information, see Queue and Message Identifiers in the Amazon SQS Developer Guide.

", - "SetQueueAttributesRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", + "SendMessageBatchResultEntry$MD5OfMessageBody": "

An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information on MD5, see RFC1321.

", + "SendMessageBatchResultEntry$MD5OfMessageAttributes": "

An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information on MD5, see RFC1321.

", + "SendMessageBatchResultEntry$SequenceNumber": "

This parameter applies only to FIFO (first-in-first-out) queues.

A large, non-consecutive number that Amazon SQS assigns to each message.

The length of SequenceNumber is 128 bits. As SequenceNumber continues to increase for a particular MessageGroupId.

", + "SendMessageRequest$QueueUrl": "

The URL of the Amazon SQS queue to which a message is sent.

Queue URLs are case-sensitive.

", + "SendMessageRequest$MessageBody": "

The message to send. The maximum string size is 256 KB.

The following list shows the characters (in Unicode) that are allowed in your message, according to the W3C XML specification:

  • #x9

  • #xA

  • #xD

  • #x20 to #xD7FF

  • #xE000 to #xFFFD

  • #x10000 to #x10FFFF

For more information, see RFC1321. If you send any characters that aren't included in this list, your request is rejected.

", + "SendMessageRequest$MessageDeduplicationId": "

This parameter applies only to FIFO (first-in-first-out) queues.

The token used for deduplication of sent messages. If a message with a particular MessageDeduplicationId is sent successfully, any messages sent with the same MessageDeduplicationId are accepted successfully but aren't delivered during the 5-minute deduplication interval. For more information, see Exactly-Once Processing in the Amazon SQS Developer Guide.

  • Every message must have a unique MessageDeduplicationId,

    • You may provide a MessageDeduplicationId explicitly.

    • If you aren't able to provide a MessageDeduplicationId and you enable ContentBasedDeduplication for your queue, Amazon SQS uses a SHA-256 hash to generate the MessageDeduplicationId using the body of the message (but not the attributes of the message).

    • If you don't provide a MessageDeduplicationId and the queue doesn't have ContentBasedDeduplication set, the action fails with an error.

    • If the queue has ContentBasedDeduplication set, your MessageDeduplicationId overrides the generated one.

  • When ContentBasedDeduplication is in effect, messages with identical content sent within the deduplication interval are treated as duplicates and only one copy of the message is delivered.

  • You can also use ContentBasedDeduplication for messages with identical content to be treated as duplicates.

  • If you send one message with ContentBasedDeduplication enabled and then another message with a MessageDeduplicationId that is the same as the one generated for the first MessageDeduplicationId, the two messages are treated as duplicates and only one copy of the message is delivered.

The MessageDeduplicationId is available to the recipient of the message (this can be useful for troubleshooting delivery issues).

If a message is sent successfully but the acknowledgement is lost and the message is resent with the same MessageDeduplicationId after the deduplication interval, Amazon SQS can't detect duplicate messages.

The length of MessageDeduplicationId is 128 characters. MessageDeduplicationId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~).

For best practices of using MessageDeduplicationId, see Using the MessageDeduplicationId Property in the Amazon Simple Queue Service Developer Guide.

", + "SendMessageRequest$MessageGroupId": "

This parameter applies only to FIFO (first-in-first-out) queues.

The tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). To interleave multiple ordered streams within a single queue, use MessageGroupId values (for example, session data for multiple users). In this scenario, multiple readers can process the queue, but the session data of each user is processed in a FIFO fashion.

  • You must associate a non-empty MessageGroupId with a message. If you don't provide a MessageGroupId, the action fails.

  • ReceiveMessage might return messages with multiple MessageGroupId values. For each MessageGroupId, the messages are sorted by time sent. The caller can't specify a MessageGroupId.

The length of MessageGroupId is 128 characters. Valid values are alphanumeric characters and punctuation (!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~).

For best practices of using MessageGroupId, see Using the MessageGroupId Property in the Amazon Simple Queue Service Developer Guide.

", + "SendMessageResult$MD5OfMessageBody": "

An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information on MD5, see RFC1321.

", + "SendMessageResult$MD5OfMessageAttributes": "

An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information on MD5, see RFC1321.

", + "SendMessageResult$MessageId": "

An attribute containing the MessageId of the message sent to the queue. For more information, see Queue and Message Identifiers in the Amazon SQS Developer Guide.

", + "SendMessageResult$SequenceNumber": "

This parameter applies only to FIFO (first-in-first-out) queues.

A large, non-consecutive number that Amazon SQS assigns to each message.

The length of SequenceNumber is 128 bits. SequenceNumber continues to increase for a particular MessageGroupId.

", + "SetQueueAttributesRequest$QueueUrl": "

The URL of the Amazon SQS queue whose attributes are set.

Queue URLs are case-sensitive.

", "StringList$member": null } }, @@ -491,7 +510,7 @@ } }, "TooManyEntriesInBatchRequest": { - "base": "

Batch request contains more number of entries than permissible.

", + "base": "

The batch request contains more entries than permissible.

", "refs": { } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/examples-1.json index 21b72de86..0ea7e3b0b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/examples-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/examples-1.json @@ -1,618 +1,5 @@ { "version": "1.0", "examples": { - "AddPermission": [ - { - "input": { - "AWSAccountIds": [ - "12345EXAMPLE" - ], - "Actions": [ - "SendMessage" - ], - "Label": "SendMessagesFromMyQueue", - "QueueUrl": "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyQueue" - }, - "output": { - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example allows the specified AWS account to send messages to the specified queue.", - "id": "to-add-a-permission-to-a-queue-1472079068305", - "title": "To add a permission to a queue" - } - ], - "ChangeMessageVisibility": [ - { - "input": { - "QueueUrl": "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyQueue", - "ReceiptHandle": "AQEBTpyI...t6HyQg==", - "VisibilityTimeout": 36000 - }, - "output": { - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example changes the visibility timeout of the specified message to 10 hours (10 hours * 60 minutes * 60 seconds).", - "id": "to-change-the-visibility-timeout-of-a-single-message-1472079046292", - "title": "To change the visibility timeout of a single message" - } - ], - "ChangeMessageVisibilityBatch": [ - { - "input": { - "Entries": [ - { - "Id": "FirstMessage", - "ReceiptHandle": "AQEBhz2q...Jf3kaw==", - "VisibilityTimeout": 36000 - }, - { - "Id": "SecondMessage", - "ReceiptHandle": "AQEBkTUH...HifSnw==", - "VisibilityTimeout": 36000 - } - ], - "QueueUrl": "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyQueue" - }, - "output": { - "Failed": [ - - ], - "Successful": [ - - ] - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example changes the visibility timeout of the two specified messages to 10 hours (10 hours * 60 minutes * 60 seconds).", - "id": "to-change-the-visibility-timeout-of-multiple-messages-1472079027081", - "title": "To change the visibility timeout of multiple messages" - } - ], - "CreateQueue": [ - { - "input": { - "Attributes": { - "MessageRetentionPeriod": "259200", - "RedrivePolicy": "{\"deadLetterTargetArn\":\"arn:aws:sqs:us-east-1:80398EXAMPLE:MyDeadLetterQueue\",\"maxReceiveCount\":\"1000\"}" - }, - "QueueName": "MyQueue" - }, - "output": { - "QueueUrl": "https://queue.amazonaws.com/80398EXAMPLE/MyQueue" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation creates an Amazon SQS queue named MyQueue.", - "id": "to-create-an-sqs-queue-1472078982579", - "title": "To create an Amazon SQS queue" - } - ], - "DeleteMessage": [ - { - "input": { - "QueueUrl": "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyQueue", - "ReceiptHandle": "AQEBRXTo...q2doVA==" - }, - "output": { - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example deletes the specified message.", - "id": "to-delete-a-single-message-1472078961585", - "title": "To delete a single message" - } - ], - "DeleteMessageBatch": [ - { - "input": { - "Entries": [ - { - "Id": "FirstMessage", - "ReceiptHandle": "AQEB1mgl...Z4GuLw==" - }, - { - "Id": "SecondMessage", - "ReceiptHandle": "AQEBLsYM...VQubAA==" - } - ], - "QueueUrl": "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyQueue" - }, - "output": { - "Failed": [ - - ], - "Successful": [ - { - "Id": "FirstMessage" - }, - { - "Id": "SecondMessage" - } - ] - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example deletes the two specified messages.", - "id": "to-delete-multiple-messages-1472078930327", - "title": "To delete multiple messages" - } - ], - "DeleteQueue": [ - { - "input": { - "QueueUrl": "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyNewerQueue" - }, - "output": { - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example deletes the specified queue.", - "id": "to-delete-a-queue-1472151853558", - "title": "To delete a queue" - } - ], - "GetQueueAttributes": [ - { - "input": { - "AttributeNames": [ - "All" - ], - "QueueUrl": "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyQueue" - }, - "output": { - "Attributes": { - "ApproximateNumberOfMessages": "0", - "ApproximateNumberOfMessagesDelayed": "0", - "ApproximateNumberOfMessagesNotVisible": "0", - "CreatedTimestamp": "1442426968", - "DelaySeconds": "0", - "LastModifiedTimestamp": "1442426968", - "MaximumMessageSize": "262144", - "MessageRetentionPeriod": "345600", - "QueueArn": "arn:aws:sqs:us-east-1:80398EXAMPLE:MyNewQueue", - "ReceiveMessageWaitTimeSeconds": "0", - "RedrivePolicy": "{\"deadLetterTargetArn\":\"arn:aws:sqs:us-east-1:80398EXAMPLE:MyDeadLetterQueue\",\"maxReceiveCount\":1000}", - "VisibilityTimeout": "30" - } - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example gets all attributes of the specified queue.", - "id": "to-get-the-attributes-of-a-queue-1472149421128", - "title": "To get the attributes of a queue" - }, - { - "input": { - "AttributeNames": [ - "MaximumMessageSize VisibilityTimeout" - ], - "QueueUrl": "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyNewQueue" - }, - "output": { - "Attributes": { - "MaximumMessageSize": "262144", - "VisibilityTimeout": "30" - } - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example gets only the specified queue's maximum message size and visibility timeout attributes.", - "id": "to-get-the-attributes-of-a-queue-1472517012839", - "title": "To get the attributes of a queue" - } - ], - "GetQueueUrl": [ - { - "input": { - "QueueName": "MyQueue", - "QueueOwnerAWSAccountId": "123456789101" - }, - "output": { - "QueueUrl": "https://queue.amazonaws.com/123456789101/MyQueue" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example gets the URL of the specified queue.", - "id": "to-get-the-url-of-a-queue-1472078901091", - "title": "To get the URL of a queue" - } - ], - "ListDeadLetterSourceQueues": [ - { - "input": { - "QueueUrl": "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyDeadLetterQueue" - }, - "output": { - "queueUrls": [ - "https://queue.amazonaws.com/80398EXAMPLE/MyQueue", - "https://queue.amazonaws.com/80398EXAMPLE/MyOtherQueue" - ] - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example lists the source queues associated with the specified dead letter queue.", - "id": "to-list-the-source-queues-of-a-dead-letter-queue-1472150435081", - "title": "To list the source queues of a dead letter queue" - } - ], - "ListQueues": [ - { - "input": { - "QueueNamePrefix": "" - }, - "output": { - "QueueUrls": [ - "https://queue.amazonaws.com/80398EXAMPLE/MyDeadLetterQueue", - "https://queue.amazonaws.com/80398EXAMPLE/MyQueue", - "https://queue.amazonaws.com/80398EXAMPLE/MyOtherQueue", - "https://queue.amazonaws.com/80398EXAMPLE/TestQueue1", - "https://queue.amazonaws.com/80398EXAMPLE/TestQueue2" - ] - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example lists all queues.", - "id": "to-list-queues-1472150595914", - "title": "To list queues" - }, - { - "input": { - "QueueNamePrefix": "My" - }, - "output": { - "QueueUrls": [ - "https://queue.amazonaws.com/80398EXAMPLE/MyDeadLetterQueue", - "https://queue.amazonaws.com/80398EXAMPLE/MyQueue", - "https://queue.amazonaws.com/80398EXAMPLE/MyOtherQueue" - ] - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example lists only queues that start with "Ty".", - "id": "to-list-queues-1472517240103", - "title": "To list queues" - } - ], - "PurgeQueue": [ - { - "input": { - "QueueUrl": "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyNewQueue" - }, - "output": { - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example deletes all messages in the specified queue.", - "id": "to-purge-a-queue-1472150819702", - "title": "To purge a queue" - } - ], - "ReceiveMessage": [ - { - "input": { - "AttributeNames": [ - "All" - ], - "MaxNumberOfMessages": 10, - "MessageAttributeNames": [ - "All" - ], - "QueueUrl": "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyQueue", - "VisibilityTimeout": 123, - "WaitTimeSeconds": 123 - }, - "output": { - "Messages": [ - { - "Attributes": { - "ApproximateFirstReceiveTimestamp": "1442428276921", - "ApproximateReceiveCount": "5", - "SenderId": "AIDAIAZKMSNQ7TEXAMPLE", - "SentTimestamp": "1442428276921" - }, - "Body": "My first message.", - "MD5OfBody": "1000f835...a35411fa", - "MD5OfMessageAttributes": "9424c491...26bc3ae7", - "MessageAttributes": { - "City": { - "DataType": "String", - "StringValue": "Any City" - }, - "PostalCode": { - "DataType": "String", - "StringValue": "ABC123" - } - }, - "MessageId": "d6790f8d-d575-4f01-bc51-40122EXAMPLE", - "ReceiptHandle": "AQEBzbVv...fqNzFw==" - } - ] - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example receives up to 10 available messages, returning all available attributes.", - "id": "to-receive-a-message-1472151462717", - "title": "To receive a message" - }, - { - "input": { - "AttributeNames": [ - "SenderId SentTimestamp" - ], - "MaxNumberOfMessages": 123, - "MessageAttributeNames": [ - "PostalCode" - ], - "QueueUrl": "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyQueue", - "VisibilityTimeout": 123, - "WaitTimeSeconds": 123 - }, - "output": { - "Messages": [ - { - "Attributes": { - "SenderId": "AIDAIAZKMSNQ7TEXAMPLE", - "SentTimestamp": "1442428276921" - }, - "Body": "My first message.", - "MD5OfBody": "1000f835...a35411fa", - "MD5OfMessageAttributes": "b8e89563...e088e74f", - "MessageAttributes": { - "PostalCode": { - "DataType": "String", - "StringValue": "ABC123" - } - }, - "MessageId": "d6790f8d-d575-4f01-bc51-40122EXAMPLE", - "ReceiptHandle": "AQEB6nR4...HzlvZQ==" - } - ] - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example receives the next available message, returning only the SenderId and SentTimestamp attributes and the PostalCode message attribute.", - "id": "to-receive-a-message-1472517398871", - "title": "To receive a message" - } - ], - "RemovePermission": [ - { - "input": { - "Label": "SendMessagesFromMyQueue", - "QueueUrl": "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyQueue" - }, - "output": { - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example removes the permission with the specified label from the specified queue.", - "id": "to-remove-a-permission-from-a-queue-1472151967252", - "title": "To remove a permission from a queue" - } - ], - "SendMessage": [ - { - "input": { - "DelaySeconds": 10, - "MessageAttributes": { - "City": { - "DataType": "String", - "StringValue": "Any City" - }, - "Greeting": { - "BinaryValue": "Hello, World!", - "DataType": "Binary" - }, - "Population": { - "DataType": "Number", - "StringValue": "1250800" - } - }, - "MessageBody": "Information about the largest city in Any Region.", - "QueueUrl": "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyQueue" - }, - "output": { - "MD5OfMessageAttributes": "00484c68...59e48f06", - "MD5OfMessageBody": "51b0a325...39163aa0", - "MessageId": "da68f62c-0c07-4bee-bf5f-7e856EXAMPLE" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example sends a message with the specified message body, delay period, and message attributes to the specified queue.", - "id": "to-send-a-message-to-a-queue-1472152022619", - "title": "To send a message to a queue" - } - ], - "SendMessageBatch": [ - { - "input": { - "Entries": [ - { - "DelaySeconds": 10, - "Id": "FuelReport-0001-2015-09-16T140731Z", - "MessageAttributes": { - "City": { - "DataType": "String", - "StringValue": "Any City" - }, - "PostalCode": { - "DataType": "String", - "StringValue": "99065" - }, - "PricePerGallon": { - "DataType": "Number", - "StringValue": "1.99" - }, - "Region": { - "DataType": "String", - "StringValue": "WA" - }, - "SellerName": { - "DataType": "String", - "StringValue": "Example Store" - } - }, - "MessageBody": "Fuel report for account 0001 on 2015-09-16 at 02:07:31 PM." - }, - { - "DelaySeconds": 10, - "Id": "FuelReport-0002-2015-09-16T140930Z", - "MessageAttributes": { - "City": { - "DataType": "String", - "StringValue": "North Town" - }, - "PostalCode": { - "DataType": "String", - "StringValue": "99123" - }, - "PricePerGallon": { - "DataType": "Number", - "StringValue": "1.87" - }, - "Region": { - "DataType": "String", - "StringValue": "WA" - }, - "SellerName": { - "DataType": "String", - "StringValue": "Example Fuels" - } - }, - "MessageBody": "Fuel report for account 0002 on 2015-09-16 at 02:09:30 PM." - } - ], - "QueueUrl": "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyQueue" - }, - "output": { - "Failed": [ - - ], - "Successful": [ - { - "Id": "FuelReport-0001-2015-09-16T140731Z", - "MD5OfMessageAttributes": "10809b55...baf283ef", - "MD5OfMessageBody": "203c4a38...7943237e", - "MessageId": "d175070c-d6b8-4101-861d-adeb3EXAMPLE" - }, - { - "Id": "FuelReport-0002-2015-09-16T140930Z", - "MD5OfMessageAttributes": "55623928...ae354a25", - "MD5OfMessageBody": "2cf0159a...c1980595", - "MessageId": "f9b7d55d-0570-413e-b9c5-a9264EXAMPLE" - } - ] - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example sends two messages with the specified message bodies, delay periods, and message attributes to the specified queue.", - "id": "to-send-multiple-messages-1472152282144", - "title": "To send multiple messages" - } - ], - "SetQueueAttributes": [ - { - "input": { - "Attributes": { - "DelaySeconds": "10", - "MaximumMessageSize": "131072", - "MessageRetentionPeriod": "259200", - "ReceiveMessageWaitTimeSeconds": "20", - "RedrivePolicy": "{\"deadLetterTargetArn\":\"arn:aws:sqs:us-east-1:80398EXAMPLE:MyDeadLetterQueue\",\"maxReceiveCount\":\"1000\"}", - "VisibilityTimeout": "60" - }, - "QueueUrl": "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyNewQueue" - }, - "output": { - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example sets the specified queue to a delivery delay of 10 seconds, a maximum message size of 128 KB (128 KB * 1,024 bytes), a message retention period of 3 days (3 days * 24 hours * 60 minutes * 60 seconds), a receive message wait time of 20 seconds, and a default visibility timeout of 60 seconds. This example also associates the specified dead letter queue with a maximum receive count of 1,000 messages.", - "id": "to-set-the-attributes-of-a-queue-1472152379646", - "title": "To set the attributes of a queue" - } - ] } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/api-2.json index 4b7ba3b69..88d224ffe 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/api-2.json @@ -6,9 +6,10 @@ "jsonVersion":"1.1", "protocol":"json", "serviceAbbreviation":"Amazon SSM", - "serviceFullName":"Amazon Simple Systems Management Service", + "serviceFullName":"Amazon Simple Systems Manager (SSM)", "signatureVersion":"v4", - "targetPrefix":"AmazonSSM" + "targetPrefix":"AmazonSSM", + "uid":"ssm-2014-11-06" }, "operations":{ "AddTagsToResource":{ @@ -22,7 +23,8 @@ "errors":[ {"shape":"InvalidResourceType"}, {"shape":"InvalidResourceId"}, - {"shape":"InternalServerError"} + {"shape":"InternalServerError"}, + {"shape":"TooManyTagsError"} ] }, "CancelCommand":{ @@ -65,9 +67,13 @@ {"shape":"AssociationLimitExceeded"}, {"shape":"InternalServerError"}, {"shape":"InvalidDocument"}, + {"shape":"InvalidDocumentVersion"}, {"shape":"InvalidInstanceId"}, {"shape":"UnsupportedPlatformType"}, - {"shape":"InvalidParameters"} + {"shape":"InvalidOutputLocation"}, + {"shape":"InvalidParameters"}, + {"shape":"InvalidTarget"}, + {"shape":"InvalidSchedule"} ] }, "CreateAssociationBatch":{ @@ -81,11 +87,15 @@ "errors":[ {"shape":"InternalServerError"}, {"shape":"InvalidDocument"}, + {"shape":"InvalidDocumentVersion"}, {"shape":"InvalidInstanceId"}, {"shape":"InvalidParameters"}, {"shape":"DuplicateInstanceId"}, {"shape":"AssociationLimitExceeded"}, - {"shape":"UnsupportedPlatformType"} + {"shape":"UnsupportedPlatformType"}, + {"shape":"InvalidOutputLocation"}, + {"shape":"InvalidTarget"}, + {"shape":"InvalidSchedule"} ] }, "CreateDocument":{ @@ -101,7 +111,36 @@ {"shape":"MaxDocumentSizeExceeded"}, {"shape":"InternalServerError"}, {"shape":"InvalidDocumentContent"}, - {"shape":"DocumentLimitExceeded"} + {"shape":"DocumentLimitExceeded"}, + {"shape":"InvalidDocumentSchemaVersion"} + ] + }, + "CreateMaintenanceWindow":{ + "name":"CreateMaintenanceWindow", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateMaintenanceWindowRequest"}, + "output":{"shape":"CreateMaintenanceWindowResult"}, + "errors":[ + {"shape":"IdempotentParameterMismatch"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"InternalServerError"} + ] + }, + "CreatePatchBaseline":{ + "name":"CreatePatchBaseline", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreatePatchBaselineRequest"}, + "output":{"shape":"CreatePatchBaselineResult"}, + "errors":[ + {"shape":"IdempotentParameterMismatch"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"InternalServerError"} ] }, "DeleteActivation":{ @@ -149,6 +188,44 @@ {"shape":"AssociatedInstances"} ] }, + "DeleteMaintenanceWindow":{ + "name":"DeleteMaintenanceWindow", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteMaintenanceWindowRequest"}, + "output":{"shape":"DeleteMaintenanceWindowResult"}, + "errors":[ + {"shape":"InternalServerError"} + ] + }, + "DeleteParameter":{ + "name":"DeleteParameter", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteParameterRequest"}, + "output":{"shape":"DeleteParameterResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"ParameterNotFound"} + ] + }, + "DeletePatchBaseline":{ + "name":"DeletePatchBaseline", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeletePatchBaselineRequest"}, + "output":{"shape":"DeletePatchBaselineResult"}, + "errors":[ + {"shape":"ResourceInUseException"}, + {"shape":"InternalServerError"} + ] + }, "DeregisterManagedInstance":{ "name":"DeregisterManagedInstance", "http":{ @@ -162,6 +239,45 @@ {"shape":"InternalServerError"} ] }, + "DeregisterPatchBaselineForPatchGroup":{ + "name":"DeregisterPatchBaselineForPatchGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeregisterPatchBaselineForPatchGroupRequest"}, + "output":{"shape":"DeregisterPatchBaselineForPatchGroupResult"}, + "errors":[ + {"shape":"InvalidResourceId"}, + {"shape":"InternalServerError"} + ] + }, + "DeregisterTargetFromMaintenanceWindow":{ + "name":"DeregisterTargetFromMaintenanceWindow", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeregisterTargetFromMaintenanceWindowRequest"}, + "output":{"shape":"DeregisterTargetFromMaintenanceWindowResult"}, + "errors":[ + {"shape":"DoesNotExistException"}, + {"shape":"InternalServerError"} + ] + }, + "DeregisterTaskFromMaintenanceWindow":{ + "name":"DeregisterTaskFromMaintenanceWindow", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeregisterTaskFromMaintenanceWindowRequest"}, + "output":{"shape":"DeregisterTaskFromMaintenanceWindowResult"}, + "errors":[ + {"shape":"DoesNotExistException"}, + {"shape":"InternalServerError"} + ] + }, "DescribeActivations":{ "name":"DescribeActivations", "http":{ @@ -191,6 +307,31 @@ {"shape":"InvalidInstanceId"} ] }, + "DescribeAutomationExecutions":{ + "name":"DescribeAutomationExecutions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeAutomationExecutionsRequest"}, + "output":{"shape":"DescribeAutomationExecutionsResult"}, + "errors":[ + {"shape":"InvalidNextToken"}, + {"shape":"InternalServerError"} + ] + }, + "DescribeAvailablePatches":{ + "name":"DescribeAvailablePatches", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeAvailablePatchesRequest"}, + "output":{"shape":"DescribeAvailablePatchesResult"}, + "errors":[ + {"shape":"InternalServerError"} + ] + }, "DescribeDocument":{ "name":"DescribeDocument", "http":{ @@ -201,7 +342,8 @@ "output":{"shape":"DescribeDocumentResult"}, "errors":[ {"shape":"InternalServerError"}, - {"shape":"InvalidDocument"} + {"shape":"InvalidDocument"}, + {"shape":"InvalidDocumentVersion"} ] }, "DescribeDocumentPermission":{ @@ -218,6 +360,48 @@ {"shape":"InvalidPermissionType"} ] }, + "DescribeEffectiveInstanceAssociations":{ + "name":"DescribeEffectiveInstanceAssociations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeEffectiveInstanceAssociationsRequest"}, + "output":{"shape":"DescribeEffectiveInstanceAssociationsResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidInstanceId"}, + {"shape":"InvalidNextToken"} + ] + }, + "DescribeEffectivePatchesForPatchBaseline":{ + "name":"DescribeEffectivePatchesForPatchBaseline", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeEffectivePatchesForPatchBaselineRequest"}, + "output":{"shape":"DescribeEffectivePatchesForPatchBaselineResult"}, + "errors":[ + {"shape":"InvalidResourceId"}, + {"shape":"DoesNotExistException"}, + {"shape":"InternalServerError"} + ] + }, + "DescribeInstanceAssociationsStatus":{ + "name":"DescribeInstanceAssociationsStatus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeInstanceAssociationsStatusRequest"}, + "output":{"shape":"DescribeInstanceAssociationsStatusResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidInstanceId"}, + {"shape":"InvalidNextToken"} + ] + }, "DescribeInstanceInformation":{ "name":"DescribeInstanceInformation", "http":{ @@ -234,751 +418,2072 @@ {"shape":"InvalidFilterKey"} ] }, - "GetDocument":{ - "name":"GetDocument", + "DescribeInstancePatchStates":{ + "name":"DescribeInstancePatchStates", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"GetDocumentRequest"}, - "output":{"shape":"GetDocumentResult"}, + "input":{"shape":"DescribeInstancePatchStatesRequest"}, + "output":{"shape":"DescribeInstancePatchStatesResult"}, "errors":[ {"shape":"InternalServerError"}, - {"shape":"InvalidDocument"} + {"shape":"InvalidNextToken"} ] }, - "ListAssociations":{ - "name":"ListAssociations", + "DescribeInstancePatchStatesForPatchGroup":{ + "name":"DescribeInstancePatchStatesForPatchGroup", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"ListAssociationsRequest"}, - "output":{"shape":"ListAssociationsResult"}, + "input":{"shape":"DescribeInstancePatchStatesForPatchGroupRequest"}, + "output":{"shape":"DescribeInstancePatchStatesForPatchGroupResult"}, "errors":[ {"shape":"InternalServerError"}, + {"shape":"InvalidFilter"}, {"shape":"InvalidNextToken"} ] }, - "ListCommandInvocations":{ - "name":"ListCommandInvocations", + "DescribeInstancePatches":{ + "name":"DescribeInstancePatches", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"ListCommandInvocationsRequest"}, - "output":{"shape":"ListCommandInvocationsResult"}, + "input":{"shape":"DescribeInstancePatchesRequest"}, + "output":{"shape":"DescribeInstancePatchesResult"}, "errors":[ {"shape":"InternalServerError"}, - {"shape":"InvalidCommandId"}, {"shape":"InvalidInstanceId"}, - {"shape":"InvalidFilterKey"}, + {"shape":"InvalidFilter"}, {"shape":"InvalidNextToken"} ] }, - "ListCommands":{ - "name":"ListCommands", + "DescribeMaintenanceWindowExecutionTaskInvocations":{ + "name":"DescribeMaintenanceWindowExecutionTaskInvocations", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"ListCommandsRequest"}, - "output":{"shape":"ListCommandsResult"}, + "input":{"shape":"DescribeMaintenanceWindowExecutionTaskInvocationsRequest"}, + "output":{"shape":"DescribeMaintenanceWindowExecutionTaskInvocationsResult"}, "errors":[ - {"shape":"InternalServerError"}, - {"shape":"InvalidCommandId"}, - {"shape":"InvalidInstanceId"}, - {"shape":"InvalidFilterKey"}, - {"shape":"InvalidNextToken"} + {"shape":"DoesNotExistException"}, + {"shape":"InternalServerError"} ] }, - "ListDocuments":{ - "name":"ListDocuments", + "DescribeMaintenanceWindowExecutionTasks":{ + "name":"DescribeMaintenanceWindowExecutionTasks", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"ListDocumentsRequest"}, - "output":{"shape":"ListDocumentsResult"}, + "input":{"shape":"DescribeMaintenanceWindowExecutionTasksRequest"}, + "output":{"shape":"DescribeMaintenanceWindowExecutionTasksResult"}, "errors":[ - {"shape":"InternalServerError"}, - {"shape":"InvalidNextToken"}, - {"shape":"InvalidFilterKey"} + {"shape":"DoesNotExistException"}, + {"shape":"InternalServerError"} ] }, - "ListTagsForResource":{ - "name":"ListTagsForResource", + "DescribeMaintenanceWindowExecutions":{ + "name":"DescribeMaintenanceWindowExecutions", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"ListTagsForResourceRequest"}, - "output":{"shape":"ListTagsForResourceResult"}, + "input":{"shape":"DescribeMaintenanceWindowExecutionsRequest"}, + "output":{"shape":"DescribeMaintenanceWindowExecutionsResult"}, "errors":[ - {"shape":"InvalidResourceType"}, - {"shape":"InvalidResourceId"}, {"shape":"InternalServerError"} ] }, - "ModifyDocumentPermission":{ - "name":"ModifyDocumentPermission", + "DescribeMaintenanceWindowTargets":{ + "name":"DescribeMaintenanceWindowTargets", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"ModifyDocumentPermissionRequest"}, - "output":{"shape":"ModifyDocumentPermissionResponse"}, + "input":{"shape":"DescribeMaintenanceWindowTargetsRequest"}, + "output":{"shape":"DescribeMaintenanceWindowTargetsResult"}, "errors":[ - {"shape":"InternalServerError"}, - {"shape":"InvalidDocument"}, - {"shape":"InvalidPermissionType"}, - {"shape":"DocumentPermissionLimit"}, - {"shape":"DocumentLimitExceeded"} + {"shape":"DoesNotExistException"}, + {"shape":"InternalServerError"} ] }, - "RemoveTagsFromResource":{ - "name":"RemoveTagsFromResource", + "DescribeMaintenanceWindowTasks":{ + "name":"DescribeMaintenanceWindowTasks", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"RemoveTagsFromResourceRequest"}, - "output":{"shape":"RemoveTagsFromResourceResult"}, + "input":{"shape":"DescribeMaintenanceWindowTasksRequest"}, + "output":{"shape":"DescribeMaintenanceWindowTasksResult"}, "errors":[ - {"shape":"InvalidResourceType"}, - {"shape":"InvalidResourceId"}, + {"shape":"DoesNotExistException"}, {"shape":"InternalServerError"} ] }, - "SendCommand":{ - "name":"SendCommand", + "DescribeMaintenanceWindows":{ + "name":"DescribeMaintenanceWindows", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"SendCommandRequest"}, - "output":{"shape":"SendCommandResult"}, + "input":{"shape":"DescribeMaintenanceWindowsRequest"}, + "output":{"shape":"DescribeMaintenanceWindowsResult"}, "errors":[ - {"shape":"DuplicateInstanceId"}, - {"shape":"InternalServerError"}, - {"shape":"InvalidInstanceId"}, - {"shape":"InvalidDocument"}, - {"shape":"InvalidOutputFolder"}, - {"shape":"InvalidParameters"}, - {"shape":"UnsupportedPlatformType"}, - {"shape":"MaxDocumentSizeExceeded"}, - {"shape":"InvalidRole"}, - {"shape":"InvalidNotificationConfig"} + {"shape":"InternalServerError"} ] }, - "UpdateAssociationStatus":{ - "name":"UpdateAssociationStatus", + "DescribeParameters":{ + "name":"DescribeParameters", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"UpdateAssociationStatusRequest"}, - "output":{"shape":"UpdateAssociationStatusResult"}, + "input":{"shape":"DescribeParametersRequest"}, + "output":{"shape":"DescribeParametersResult"}, "errors":[ {"shape":"InternalServerError"}, - {"shape":"InvalidInstanceId"}, - {"shape":"InvalidDocument"}, - {"shape":"AssociationDoesNotExist"}, - {"shape":"StatusUnchanged"}, - {"shape":"TooManyUpdates"} + {"shape":"InvalidFilterValue"}, + {"shape":"InvalidNextToken"} ] }, - "UpdateManagedInstanceRole":{ - "name":"UpdateManagedInstanceRole", + "DescribePatchBaselines":{ + "name":"DescribePatchBaselines", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"UpdateManagedInstanceRoleRequest"}, - "output":{"shape":"UpdateManagedInstanceRoleResult"}, + "input":{"shape":"DescribePatchBaselinesRequest"}, + "output":{"shape":"DescribePatchBaselinesResult"}, "errors":[ - {"shape":"InvalidInstanceId"}, {"shape":"InternalServerError"} ] - } - }, - "shapes":{ - "AccountId":{ - "type":"string", - "pattern":"(?i)all|[0-9]{12}" }, - "AccountIdList":{ - "type":"list", - "member":{ - "shape":"AccountId", - "locationName":"AccountId" + "DescribePatchGroupState":{ + "name":"DescribePatchGroupState", + "http":{ + "method":"POST", + "requestUri":"/" }, - "max":20 + "input":{"shape":"DescribePatchGroupStateRequest"}, + "output":{"shape":"DescribePatchGroupStateResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidNextToken"} + ] }, - "Activation":{ - "type":"structure", - "members":{ - "ActivationId":{"shape":"ActivationId"}, - "Description":{"shape":"ActivationDescription"}, - "DefaultInstanceName":{"shape":"DefaultInstanceName"}, - "IamRole":{"shape":"IamRole"}, - "RegistrationLimit":{"shape":"RegistrationLimit"}, - "RegistrationsCount":{"shape":"RegistrationsCount"}, - "ExpirationDate":{"shape":"ExpirationDate"}, - "Expired":{"shape":"Boolean"}, - "CreatedDate":{"shape":"CreatedDate"} - } + "DescribePatchGroups":{ + "name":"DescribePatchGroups", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribePatchGroupsRequest"}, + "output":{"shape":"DescribePatchGroupsResult"}, + "errors":[ + {"shape":"InternalServerError"} + ] }, - "ActivationCode":{ - "type":"string", - "max":250, - "min":20 + "GetAutomationExecution":{ + "name":"GetAutomationExecution", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetAutomationExecutionRequest"}, + "output":{"shape":"GetAutomationExecutionResult"}, + "errors":[ + {"shape":"AutomationExecutionNotFoundException"}, + {"shape":"InternalServerError"} + ] + }, + "GetCommandInvocation":{ + "name":"GetCommandInvocation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetCommandInvocationRequest"}, + "output":{"shape":"GetCommandInvocationResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidCommandId"}, + {"shape":"InvalidInstanceId"}, + {"shape":"InvalidPluginName"}, + {"shape":"InvocationDoesNotExist"} + ] + }, + "GetDefaultPatchBaseline":{ + "name":"GetDefaultPatchBaseline", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetDefaultPatchBaselineRequest"}, + "output":{"shape":"GetDefaultPatchBaselineResult"}, + "errors":[ + {"shape":"InternalServerError"} + ] + }, + "GetDeployablePatchSnapshotForInstance":{ + "name":"GetDeployablePatchSnapshotForInstance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetDeployablePatchSnapshotForInstanceRequest"}, + "output":{"shape":"GetDeployablePatchSnapshotForInstanceResult"}, + "errors":[ + {"shape":"InternalServerError"} + ] + }, + "GetDocument":{ + "name":"GetDocument", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetDocumentRequest"}, + "output":{"shape":"GetDocumentResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidDocument"}, + {"shape":"InvalidDocumentVersion"} + ] + }, + "GetInventory":{ + "name":"GetInventory", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetInventoryRequest"}, + "output":{"shape":"GetInventoryResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidFilter"}, + {"shape":"InvalidNextToken"}, + {"shape":"InvalidTypeNameException"}, + {"shape":"InvalidResultAttributeException"} + ] + }, + "GetInventorySchema":{ + "name":"GetInventorySchema", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetInventorySchemaRequest"}, + "output":{"shape":"GetInventorySchemaResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidTypeNameException"}, + {"shape":"InvalidNextToken"} + ] + }, + "GetMaintenanceWindow":{ + "name":"GetMaintenanceWindow", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetMaintenanceWindowRequest"}, + "output":{"shape":"GetMaintenanceWindowResult"}, + "errors":[ + {"shape":"DoesNotExistException"}, + {"shape":"InternalServerError"} + ] + }, + "GetMaintenanceWindowExecution":{ + "name":"GetMaintenanceWindowExecution", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetMaintenanceWindowExecutionRequest"}, + "output":{"shape":"GetMaintenanceWindowExecutionResult"}, + "errors":[ + {"shape":"DoesNotExistException"}, + {"shape":"InternalServerError"} + ] + }, + "GetMaintenanceWindowExecutionTask":{ + "name":"GetMaintenanceWindowExecutionTask", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetMaintenanceWindowExecutionTaskRequest"}, + "output":{"shape":"GetMaintenanceWindowExecutionTaskResult"}, + "errors":[ + {"shape":"DoesNotExistException"}, + {"shape":"InternalServerError"} + ] + }, + "GetParameterHistory":{ + "name":"GetParameterHistory", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetParameterHistoryRequest"}, + "output":{"shape":"GetParameterHistoryResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"ParameterNotFound"}, + {"shape":"InvalidNextToken"} + ] + }, + "GetParameters":{ + "name":"GetParameters", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetParametersRequest"}, + "output":{"shape":"GetParametersResult"}, + "errors":[ + {"shape":"InternalServerError"} + ] + }, + "GetPatchBaseline":{ + "name":"GetPatchBaseline", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetPatchBaselineRequest"}, + "output":{"shape":"GetPatchBaselineResult"}, + "errors":[ + {"shape":"DoesNotExistException"}, + {"shape":"InvalidResourceId"}, + {"shape":"InternalServerError"} + ] + }, + "GetPatchBaselineForPatchGroup":{ + "name":"GetPatchBaselineForPatchGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetPatchBaselineForPatchGroupRequest"}, + "output":{"shape":"GetPatchBaselineForPatchGroupResult"}, + "errors":[ + {"shape":"InternalServerError"} + ] + }, + "ListAssociations":{ + "name":"ListAssociations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAssociationsRequest"}, + "output":{"shape":"ListAssociationsResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidNextToken"} + ] + }, + "ListCommandInvocations":{ + "name":"ListCommandInvocations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListCommandInvocationsRequest"}, + "output":{"shape":"ListCommandInvocationsResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidCommandId"}, + {"shape":"InvalidInstanceId"}, + {"shape":"InvalidFilterKey"}, + {"shape":"InvalidNextToken"} + ] + }, + "ListCommands":{ + "name":"ListCommands", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListCommandsRequest"}, + "output":{"shape":"ListCommandsResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidCommandId"}, + {"shape":"InvalidInstanceId"}, + {"shape":"InvalidFilterKey"}, + {"shape":"InvalidNextToken"} + ] + }, + "ListDocumentVersions":{ + "name":"ListDocumentVersions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListDocumentVersionsRequest"}, + "output":{"shape":"ListDocumentVersionsResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidNextToken"}, + {"shape":"InvalidDocument"} + ] + }, + "ListDocuments":{ + "name":"ListDocuments", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListDocumentsRequest"}, + "output":{"shape":"ListDocumentsResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidNextToken"}, + {"shape":"InvalidFilterKey"} + ] + }, + "ListInventoryEntries":{ + "name":"ListInventoryEntries", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListInventoryEntriesRequest"}, + "output":{"shape":"ListInventoryEntriesResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidInstanceId"}, + {"shape":"InvalidTypeNameException"}, + {"shape":"InvalidFilter"}, + {"shape":"InvalidNextToken"} + ] + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResult"}, + "errors":[ + {"shape":"InvalidResourceType"}, + {"shape":"InvalidResourceId"}, + {"shape":"InternalServerError"} + ] + }, + "ModifyDocumentPermission":{ + "name":"ModifyDocumentPermission", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyDocumentPermissionRequest"}, + "output":{"shape":"ModifyDocumentPermissionResponse"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidDocument"}, + {"shape":"InvalidPermissionType"}, + {"shape":"DocumentPermissionLimit"}, + {"shape":"DocumentLimitExceeded"} + ] + }, + "PutInventory":{ + "name":"PutInventory", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutInventoryRequest"}, + "output":{"shape":"PutInventoryResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidInstanceId"}, + {"shape":"InvalidTypeNameException"}, + {"shape":"InvalidItemContentException"}, + {"shape":"TotalSizeLimitExceededException"}, + {"shape":"ItemSizeLimitExceededException"}, + {"shape":"ItemContentMismatchException"}, + {"shape":"CustomSchemaCountLimitExceededException"}, + {"shape":"UnsupportedInventorySchemaVersionException"} + ] + }, + "PutParameter":{ + "name":"PutParameter", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutParameterRequest"}, + "output":{"shape":"PutParameterResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidKeyId"}, + {"shape":"ParameterLimitExceeded"}, + {"shape":"TooManyUpdates"}, + {"shape":"ParameterAlreadyExists"}, + {"shape":"UnsupportedParameterType"} + ] + }, + "RegisterDefaultPatchBaseline":{ + "name":"RegisterDefaultPatchBaseline", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RegisterDefaultPatchBaselineRequest"}, + "output":{"shape":"RegisterDefaultPatchBaselineResult"}, + "errors":[ + {"shape":"InvalidResourceId"}, + {"shape":"DoesNotExistException"}, + {"shape":"InternalServerError"} + ] + }, + "RegisterPatchBaselineForPatchGroup":{ + "name":"RegisterPatchBaselineForPatchGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RegisterPatchBaselineForPatchGroupRequest"}, + "output":{"shape":"RegisterPatchBaselineForPatchGroupResult"}, + "errors":[ + {"shape":"AlreadyExistsException"}, + {"shape":"DoesNotExistException"}, + {"shape":"InvalidResourceId"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"InternalServerError"} + ] + }, + "RegisterTargetWithMaintenanceWindow":{ + "name":"RegisterTargetWithMaintenanceWindow", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RegisterTargetWithMaintenanceWindowRequest"}, + "output":{"shape":"RegisterTargetWithMaintenanceWindowResult"}, + "errors":[ + {"shape":"IdempotentParameterMismatch"}, + {"shape":"DoesNotExistException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"InternalServerError"} + ] + }, + "RegisterTaskWithMaintenanceWindow":{ + "name":"RegisterTaskWithMaintenanceWindow", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RegisterTaskWithMaintenanceWindowRequest"}, + "output":{"shape":"RegisterTaskWithMaintenanceWindowResult"}, + "errors":[ + {"shape":"IdempotentParameterMismatch"}, + {"shape":"DoesNotExistException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"InternalServerError"} + ] + }, + "RemoveTagsFromResource":{ + "name":"RemoveTagsFromResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RemoveTagsFromResourceRequest"}, + "output":{"shape":"RemoveTagsFromResourceResult"}, + "errors":[ + {"shape":"InvalidResourceType"}, + {"shape":"InvalidResourceId"}, + {"shape":"InternalServerError"} + ] + }, + "SendCommand":{ + "name":"SendCommand", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"SendCommandRequest"}, + "output":{"shape":"SendCommandResult"}, + "errors":[ + {"shape":"DuplicateInstanceId"}, + {"shape":"InternalServerError"}, + {"shape":"InvalidInstanceId"}, + {"shape":"InvalidDocument"}, + {"shape":"InvalidOutputFolder"}, + {"shape":"InvalidParameters"}, + {"shape":"UnsupportedPlatformType"}, + {"shape":"MaxDocumentSizeExceeded"}, + {"shape":"InvalidRole"}, + {"shape":"InvalidNotificationConfig"} + ] + }, + "StartAutomationExecution":{ + "name":"StartAutomationExecution", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartAutomationExecutionRequest"}, + "output":{"shape":"StartAutomationExecutionResult"}, + "errors":[ + {"shape":"AutomationDefinitionNotFoundException"}, + {"shape":"InvalidAutomationExecutionParametersException"}, + {"shape":"AutomationExecutionLimitExceededException"}, + {"shape":"AutomationDefinitionVersionNotFoundException"}, + {"shape":"InternalServerError"} + ] + }, + "StopAutomationExecution":{ + "name":"StopAutomationExecution", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopAutomationExecutionRequest"}, + "output":{"shape":"StopAutomationExecutionResult"}, + "errors":[ + {"shape":"AutomationExecutionNotFoundException"}, + {"shape":"InternalServerError"} + ] + }, + "UpdateAssociation":{ + "name":"UpdateAssociation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateAssociationRequest"}, + "output":{"shape":"UpdateAssociationResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidSchedule"}, + {"shape":"InvalidParameters"}, + {"shape":"InvalidOutputLocation"}, + {"shape":"InvalidDocumentVersion"}, + {"shape":"AssociationDoesNotExist"}, + {"shape":"InvalidUpdate"}, + {"shape":"TooManyUpdates"} + ] + }, + "UpdateAssociationStatus":{ + "name":"UpdateAssociationStatus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateAssociationStatusRequest"}, + "output":{"shape":"UpdateAssociationStatusResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidInstanceId"}, + {"shape":"InvalidDocument"}, + {"shape":"AssociationDoesNotExist"}, + {"shape":"StatusUnchanged"}, + {"shape":"TooManyUpdates"} + ] + }, + "UpdateDocument":{ + "name":"UpdateDocument", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateDocumentRequest"}, + "output":{"shape":"UpdateDocumentResult"}, + "errors":[ + {"shape":"MaxDocumentSizeExceeded"}, + {"shape":"DocumentVersionLimitExceeded"}, + {"shape":"InternalServerError"}, + {"shape":"DuplicateDocumentContent"}, + {"shape":"InvalidDocumentContent"}, + {"shape":"InvalidDocumentVersion"}, + {"shape":"InvalidDocumentSchemaVersion"}, + {"shape":"InvalidDocument"} + ] + }, + "UpdateDocumentDefaultVersion":{ + "name":"UpdateDocumentDefaultVersion", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateDocumentDefaultVersionRequest"}, + "output":{"shape":"UpdateDocumentDefaultVersionResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidDocument"}, + {"shape":"InvalidDocumentVersion"}, + {"shape":"InvalidDocumentSchemaVersion"} + ] + }, + "UpdateMaintenanceWindow":{ + "name":"UpdateMaintenanceWindow", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateMaintenanceWindowRequest"}, + "output":{"shape":"UpdateMaintenanceWindowResult"}, + "errors":[ + {"shape":"DoesNotExistException"}, + {"shape":"InternalServerError"} + ] + }, + "UpdateManagedInstanceRole":{ + "name":"UpdateManagedInstanceRole", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateManagedInstanceRoleRequest"}, + "output":{"shape":"UpdateManagedInstanceRoleResult"}, + "errors":[ + {"shape":"InvalidInstanceId"}, + {"shape":"InternalServerError"} + ] + }, + "UpdatePatchBaseline":{ + "name":"UpdatePatchBaseline", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdatePatchBaselineRequest"}, + "output":{"shape":"UpdatePatchBaselineResult"}, + "errors":[ + {"shape":"DoesNotExistException"}, + {"shape":"InternalServerError"} + ] + } + }, + "shapes":{ + "AccountId":{ + "type":"string", + "pattern":"(?i)all|[0-9]{12}" + }, + "AccountIdList":{ + "type":"list", + "member":{ + "shape":"AccountId", + "locationName":"AccountId" + }, + "max":20 + }, + "Activation":{ + "type":"structure", + "members":{ + "ActivationId":{"shape":"ActivationId"}, + "Description":{"shape":"ActivationDescription"}, + "DefaultInstanceName":{"shape":"DefaultInstanceName"}, + "IamRole":{"shape":"IamRole"}, + "RegistrationLimit":{"shape":"RegistrationLimit"}, + "RegistrationsCount":{"shape":"RegistrationsCount"}, + "ExpirationDate":{"shape":"ExpirationDate"}, + "Expired":{"shape":"Boolean"}, + "CreatedDate":{"shape":"CreatedDate"} + } + }, + "ActivationCode":{ + "type":"string", + "max":250, + "min":20 }, "ActivationDescription":{ "type":"string", - "max":256, - "min":0 + "max":256, + "min":0 + }, + "ActivationId":{ + "type":"string", + "pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" + }, + "ActivationList":{ + "type":"list", + "member":{"shape":"Activation"} + }, + "AddTagsToResourceRequest":{ + "type":"structure", + "required":[ + "ResourceType", + "ResourceId", + "Tags" + ], + "members":{ + "ResourceType":{"shape":"ResourceTypeForTagging"}, + "ResourceId":{"shape":"ResourceId"}, + "Tags":{"shape":"TagList"} + } + }, + "AddTagsToResourceResult":{ + "type":"structure", + "members":{ + } + }, + "AgentErrorCode":{ + "type":"string", + "max":10 + }, + "AlreadyExistsException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "ApproveAfterDays":{ + "type":"integer", + "max":100, + "min":0 + }, + "AssociatedInstances":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "Association":{ + "type":"structure", + "members":{ + "Name":{"shape":"DocumentName"}, + "InstanceId":{"shape":"InstanceId"}, + "AssociationId":{"shape":"AssociationId"}, + "DocumentVersion":{"shape":"DocumentVersion"}, + "Targets":{"shape":"Targets"}, + "LastExecutionDate":{"shape":"DateTime"}, + "Overview":{"shape":"AssociationOverview"}, + "ScheduleExpression":{"shape":"ScheduleExpression"} + } + }, + "AssociationAlreadyExists":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "AssociationDescription":{ + "type":"structure", + "members":{ + "Name":{"shape":"DocumentName"}, + "InstanceId":{"shape":"InstanceId"}, + "Date":{"shape":"DateTime"}, + "LastUpdateAssociationDate":{"shape":"DateTime"}, + "Status":{"shape":"AssociationStatus"}, + "Overview":{"shape":"AssociationOverview"}, + "DocumentVersion":{"shape":"DocumentVersion"}, + "Parameters":{"shape":"Parameters"}, + "AssociationId":{"shape":"AssociationId"}, + "Targets":{"shape":"Targets"}, + "ScheduleExpression":{"shape":"ScheduleExpression"}, + "OutputLocation":{"shape":"InstanceAssociationOutputLocation"}, + "LastExecutionDate":{"shape":"DateTime"}, + "LastSuccessfulExecutionDate":{"shape":"DateTime"} + } + }, + "AssociationDescriptionList":{ + "type":"list", + "member":{ + "shape":"AssociationDescription", + "locationName":"AssociationDescription" + } + }, + "AssociationDoesNotExist":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "AssociationFilter":{ + "type":"structure", + "required":[ + "key", + "value" + ], + "members":{ + "key":{"shape":"AssociationFilterKey"}, + "value":{"shape":"AssociationFilterValue"} + } + }, + "AssociationFilterKey":{ + "type":"string", + "enum":[ + "InstanceId", + "Name", + "AssociationId", + "AssociationStatusName", + "LastExecutedBefore", + "LastExecutedAfter" + ] + }, + "AssociationFilterList":{ + "type":"list", + "member":{ + "shape":"AssociationFilter", + "locationName":"AssociationFilter" + }, + "min":1 + }, + "AssociationFilterValue":{ + "type":"string", + "min":1 + }, + "AssociationId":{ + "type":"string", + "pattern":"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}" + }, + "AssociationLimitExceeded":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "AssociationList":{ + "type":"list", + "member":{ + "shape":"Association", + "locationName":"Association" + } + }, + "AssociationOverview":{ + "type":"structure", + "members":{ + "Status":{"shape":"StatusName"}, + "DetailedStatus":{"shape":"StatusName"}, + "AssociationStatusAggregatedCount":{"shape":"AssociationStatusAggregatedCount"} + } + }, + "AssociationStatus":{ + "type":"structure", + "required":[ + "Date", + "Name", + "Message" + ], + "members":{ + "Date":{"shape":"DateTime"}, + "Name":{"shape":"AssociationStatusName"}, + "Message":{"shape":"StatusMessage"}, + "AdditionalInfo":{"shape":"StatusAdditionalInfo"} + } + }, + "AssociationStatusAggregatedCount":{ + "type":"map", + "key":{"shape":"StatusName"}, + "value":{"shape":"InstanceCount"} + }, + "AssociationStatusName":{ + "type":"string", + "enum":[ + "Pending", + "Success", + "Failed" + ] + }, + "AttributeName":{ + "type":"string", + "max":64, + "min":1 + }, + "AttributeValue":{ + "type":"string", + "max":1024, + "min":0 + }, + "AutomationActionName":{ + "type":"string", + "pattern":"^aws:[a-zA-Z]{3,25}$" + }, + "AutomationDefinitionNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "AutomationDefinitionVersionNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "AutomationExecution":{ + "type":"structure", + "members":{ + "AutomationExecutionId":{"shape":"AutomationExecutionId"}, + "DocumentName":{"shape":"DocumentName"}, + "DocumentVersion":{"shape":"DocumentVersion"}, + "ExecutionStartTime":{"shape":"DateTime"}, + "ExecutionEndTime":{"shape":"DateTime"}, + "AutomationExecutionStatus":{"shape":"AutomationExecutionStatus"}, + "StepExecutions":{"shape":"StepExecutionList"}, + "Parameters":{"shape":"AutomationParameterMap"}, + "Outputs":{"shape":"AutomationParameterMap"}, + "FailureMessage":{"shape":"String"} + } + }, + "AutomationExecutionFilter":{ + "type":"structure", + "required":[ + "Key", + "Values" + ], + "members":{ + "Key":{"shape":"AutomationExecutionFilterKey"}, + "Values":{"shape":"AutomationExecutionFilterValueList"} + } + }, + "AutomationExecutionFilterKey":{ + "type":"string", + "enum":[ + "DocumentNamePrefix", + "ExecutionStatus" + ] + }, + "AutomationExecutionFilterList":{ + "type":"list", + "member":{"shape":"AutomationExecutionFilter"}, + "max":10, + "min":1 + }, + "AutomationExecutionFilterValue":{ + "type":"string", + "max":150, + "min":1 + }, + "AutomationExecutionFilterValueList":{ + "type":"list", + "member":{"shape":"AutomationExecutionFilterValue"}, + "max":10, + "min":1 + }, + "AutomationExecutionId":{ + "type":"string", + "max":36, + "min":36 + }, + "AutomationExecutionLimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "AutomationExecutionMetadata":{ + "type":"structure", + "members":{ + "AutomationExecutionId":{"shape":"AutomationExecutionId"}, + "DocumentName":{"shape":"DocumentName"}, + "DocumentVersion":{"shape":"DocumentVersion"}, + "AutomationExecutionStatus":{"shape":"AutomationExecutionStatus"}, + "ExecutionStartTime":{"shape":"DateTime"}, + "ExecutionEndTime":{"shape":"DateTime"}, + "ExecutedBy":{"shape":"String"}, + "LogFile":{"shape":"String"}, + "Outputs":{"shape":"AutomationParameterMap"} + } + }, + "AutomationExecutionMetadataList":{ + "type":"list", + "member":{"shape":"AutomationExecutionMetadata"}, + "max":50, + "min":0 + }, + "AutomationExecutionNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "AutomationExecutionStatus":{ + "type":"string", + "enum":[ + "Pending", + "InProgress", + "Success", + "TimedOut", + "Cancelled", + "Failed" + ] + }, + "AutomationParameterKey":{ + "type":"string", + "max":30, + "min":1 + }, + "AutomationParameterMap":{ + "type":"map", + "key":{"shape":"AutomationParameterKey"}, + "value":{"shape":"AutomationParameterValueList"}, + "max":200, + "min":1 + }, + "AutomationParameterValue":{ + "type":"string", + "max":512, + "min":1 + }, + "AutomationParameterValueList":{ + "type":"list", + "member":{"shape":"AutomationParameterValue"}, + "max":10, + "min":0 + }, + "BaselineDescription":{ + "type":"string", + "max":1024, + "min":1 + }, + "BaselineId":{ + "type":"string", + "max":128, + "min":20, + "pattern":"^[a-zA-Z0-9_\\-:/]{20,128}$" + }, + "BaselineName":{ + "type":"string", + "max":128, + "min":3, + "pattern":"^[a-zA-Z0-9_\\-.]{3,128}$" + }, + "BatchErrorMessage":{"type":"string"}, + "Boolean":{"type":"boolean"}, + "CancelCommandRequest":{ + "type":"structure", + "required":["CommandId"], + "members":{ + "CommandId":{"shape":"CommandId"}, + "InstanceIds":{"shape":"InstanceIdList"} + } + }, + "CancelCommandResult":{ + "type":"structure", + "members":{ + } + }, + "ClientToken":{ + "type":"string", + "max":64, + "min":1 + }, + "Command":{ + "type":"structure", + "members":{ + "CommandId":{"shape":"CommandId"}, + "DocumentName":{"shape":"DocumentName"}, + "Comment":{"shape":"Comment"}, + "ExpiresAfter":{"shape":"DateTime"}, + "Parameters":{"shape":"Parameters"}, + "InstanceIds":{"shape":"InstanceIdList"}, + "Targets":{"shape":"Targets"}, + "RequestedDateTime":{"shape":"DateTime"}, + "Status":{"shape":"CommandStatus"}, + "StatusDetails":{"shape":"StatusDetails"}, + "OutputS3Region":{"shape":"S3Region"}, + "OutputS3BucketName":{"shape":"S3BucketName"}, + "OutputS3KeyPrefix":{"shape":"S3KeyPrefix"}, + "MaxConcurrency":{"shape":"VelocityConstraint"}, + "MaxErrors":{"shape":"VelocityConstraint"}, + "TargetCount":{"shape":"TargetCount"}, + "CompletedCount":{"shape":"CompletedCount"}, + "ErrorCount":{"shape":"ErrorCount"}, + "ServiceRole":{"shape":"ServiceRole"}, + "NotificationConfig":{"shape":"NotificationConfig"} + } + }, + "CommandFilter":{ + "type":"structure", + "required":[ + "key", + "value" + ], + "members":{ + "key":{"shape":"CommandFilterKey"}, + "value":{"shape":"CommandFilterValue"} + } + }, + "CommandFilterKey":{ + "type":"string", + "enum":[ + "InvokedAfter", + "InvokedBefore", + "Status" + ] }, - "ActivationId":{ + "CommandFilterList":{ + "type":"list", + "member":{"shape":"CommandFilter"}, + "max":3, + "min":1 + }, + "CommandFilterValue":{ "type":"string", - "pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" + "min":1 }, - "ActivationList":{ + "CommandId":{ + "type":"string", + "max":36, + "min":36 + }, + "CommandInvocation":{ + "type":"structure", + "members":{ + "CommandId":{"shape":"CommandId"}, + "InstanceId":{"shape":"InstanceId"}, + "InstanceName":{"shape":"InstanceTagName"}, + "Comment":{"shape":"Comment"}, + "DocumentName":{"shape":"DocumentName"}, + "RequestedDateTime":{"shape":"DateTime"}, + "Status":{"shape":"CommandInvocationStatus"}, + "StatusDetails":{"shape":"StatusDetails"}, + "TraceOutput":{"shape":"InvocationTraceOutput"}, + "StandardOutputUrl":{"shape":"Url"}, + "StandardErrorUrl":{"shape":"Url"}, + "CommandPlugins":{"shape":"CommandPluginList"}, + "ServiceRole":{"shape":"ServiceRole"}, + "NotificationConfig":{"shape":"NotificationConfig"} + } + }, + "CommandInvocationList":{ "type":"list", - "member":{"shape":"Activation"} + "member":{"shape":"CommandInvocation"} + }, + "CommandInvocationStatus":{ + "type":"string", + "enum":[ + "Pending", + "InProgress", + "Delayed", + "Success", + "Cancelled", + "TimedOut", + "Failed", + "Cancelling" + ] + }, + "CommandList":{ + "type":"list", + "member":{"shape":"Command"} + }, + "CommandMaxResults":{ + "type":"integer", + "max":50, + "min":1 + }, + "CommandPlugin":{ + "type":"structure", + "members":{ + "Name":{"shape":"CommandPluginName"}, + "Status":{"shape":"CommandPluginStatus"}, + "StatusDetails":{"shape":"StatusDetails"}, + "ResponseCode":{"shape":"ResponseCode"}, + "ResponseStartDateTime":{"shape":"DateTime"}, + "ResponseFinishDateTime":{"shape":"DateTime"}, + "Output":{"shape":"CommandPluginOutput"}, + "StandardOutputUrl":{"shape":"Url"}, + "StandardErrorUrl":{"shape":"Url"}, + "OutputS3Region":{"shape":"S3Region"}, + "OutputS3BucketName":{"shape":"S3BucketName"}, + "OutputS3KeyPrefix":{"shape":"S3KeyPrefix"} + } + }, + "CommandPluginList":{ + "type":"list", + "member":{"shape":"CommandPlugin"} + }, + "CommandPluginName":{ + "type":"string", + "min":4 + }, + "CommandPluginOutput":{ + "type":"string", + "max":2500 + }, + "CommandPluginStatus":{ + "type":"string", + "enum":[ + "Pending", + "InProgress", + "Success", + "TimedOut", + "Cancelled", + "Failed" + ] + }, + "CommandStatus":{ + "type":"string", + "enum":[ + "Pending", + "InProgress", + "Success", + "Cancelled", + "Failed", + "TimedOut", + "Cancelling" + ] + }, + "Comment":{ + "type":"string", + "max":100 + }, + "CompletedCount":{"type":"integer"}, + "ComputerName":{ + "type":"string", + "max":255, + "min":1 + }, + "CreateActivationRequest":{ + "type":"structure", + "required":["IamRole"], + "members":{ + "Description":{"shape":"ActivationDescription"}, + "DefaultInstanceName":{"shape":"DefaultInstanceName"}, + "IamRole":{"shape":"IamRole"}, + "RegistrationLimit":{ + "shape":"RegistrationLimit", + "box":true + }, + "ExpirationDate":{"shape":"ExpirationDate"} + } + }, + "CreateActivationResult":{ + "type":"structure", + "members":{ + "ActivationId":{"shape":"ActivationId"}, + "ActivationCode":{"shape":"ActivationCode"} + } + }, + "CreateAssociationBatchRequest":{ + "type":"structure", + "required":["Entries"], + "members":{ + "Entries":{"shape":"CreateAssociationBatchRequestEntries"} + } + }, + "CreateAssociationBatchRequestEntries":{ + "type":"list", + "member":{ + "shape":"CreateAssociationBatchRequestEntry", + "locationName":"entries" + }, + "min":1 + }, + "CreateAssociationBatchRequestEntry":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"DocumentName"}, + "InstanceId":{"shape":"InstanceId"}, + "Parameters":{"shape":"Parameters"}, + "DocumentVersion":{"shape":"DocumentVersion"}, + "Targets":{"shape":"Targets"}, + "ScheduleExpression":{"shape":"ScheduleExpression"}, + "OutputLocation":{"shape":"InstanceAssociationOutputLocation"} + } + }, + "CreateAssociationBatchResult":{ + "type":"structure", + "members":{ + "Successful":{"shape":"AssociationDescriptionList"}, + "Failed":{"shape":"FailedCreateAssociationList"} + } + }, + "CreateAssociationRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"DocumentName"}, + "DocumentVersion":{"shape":"DocumentVersion"}, + "InstanceId":{"shape":"InstanceId"}, + "Parameters":{"shape":"Parameters"}, + "Targets":{"shape":"Targets"}, + "ScheduleExpression":{"shape":"ScheduleExpression"}, + "OutputLocation":{"shape":"InstanceAssociationOutputLocation"} + } + }, + "CreateAssociationResult":{ + "type":"structure", + "members":{ + "AssociationDescription":{"shape":"AssociationDescription"} + } + }, + "CreateDocumentRequest":{ + "type":"structure", + "required":[ + "Content", + "Name" + ], + "members":{ + "Content":{"shape":"DocumentContent"}, + "Name":{"shape":"DocumentName"}, + "DocumentType":{"shape":"DocumentType"} + } + }, + "CreateDocumentResult":{ + "type":"structure", + "members":{ + "DocumentDescription":{"shape":"DocumentDescription"} + } + }, + "CreateMaintenanceWindowRequest":{ + "type":"structure", + "required":[ + "Name", + "Schedule", + "Duration", + "Cutoff", + "AllowUnassociatedTargets" + ], + "members":{ + "Name":{"shape":"MaintenanceWindowName"}, + "Schedule":{"shape":"MaintenanceWindowSchedule"}, + "Duration":{"shape":"MaintenanceWindowDurationHours"}, + "Cutoff":{"shape":"MaintenanceWindowCutoff"}, + "AllowUnassociatedTargets":{"shape":"MaintenanceWindowAllowUnassociatedTargets"}, + "ClientToken":{ + "shape":"ClientToken", + "idempotencyToken":true + } + } + }, + "CreateMaintenanceWindowResult":{ + "type":"structure", + "members":{ + "WindowId":{"shape":"MaintenanceWindowId"} + } + }, + "CreatePatchBaselineRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"BaselineName"}, + "GlobalFilters":{"shape":"PatchFilterGroup"}, + "ApprovalRules":{"shape":"PatchRuleGroup"}, + "ApprovedPatches":{"shape":"PatchIdList"}, + "RejectedPatches":{"shape":"PatchIdList"}, + "Description":{"shape":"BaselineDescription"}, + "ClientToken":{ + "shape":"ClientToken", + "idempotencyToken":true + } + } + }, + "CreatePatchBaselineResult":{ + "type":"structure", + "members":{ + "BaselineId":{"shape":"BaselineId"} + } + }, + "CreatedDate":{"type":"timestamp"}, + "CustomSchemaCountLimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "DateTime":{"type":"timestamp"}, + "DefaultBaseline":{"type":"boolean"}, + "DefaultInstanceName":{ + "type":"string", + "max":256, + "min":0, + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + }, + "DeleteActivationRequest":{ + "type":"structure", + "required":["ActivationId"], + "members":{ + "ActivationId":{"shape":"ActivationId"} + } }, - "AddTagsToResourceRequest":{ + "DeleteActivationResult":{ "type":"structure", - "required":[ - "ResourceType", - "ResourceId", - "Tags" - ], "members":{ - "ResourceType":{"shape":"ResourceTypeForTagging"}, - "ResourceId":{"shape":"ResourceId"}, - "Tags":{"shape":"TagList"} } }, - "AddTagsToResourceResult":{ + "DeleteAssociationRequest":{ "type":"structure", "members":{ + "Name":{"shape":"DocumentName"}, + "InstanceId":{"shape":"InstanceId"}, + "AssociationId":{"shape":"AssociationId"} } }, - "AssociatedInstances":{ + "DeleteAssociationResult":{ "type":"structure", "members":{ - }, - "exception":true + } }, - "Association":{ + "DeleteDocumentRequest":{ "type":"structure", + "required":["Name"], "members":{ - "Name":{"shape":"DocumentName"}, - "InstanceId":{"shape":"InstanceId"} + "Name":{"shape":"DocumentName"} } }, - "AssociationAlreadyExists":{ + "DeleteDocumentResult":{ "type":"structure", "members":{ - }, - "exception":true + } }, - "AssociationDescription":{ + "DeleteMaintenanceWindowRequest":{ "type":"structure", + "required":["WindowId"], "members":{ - "Name":{"shape":"DocumentName"}, - "InstanceId":{"shape":"InstanceId"}, - "Date":{"shape":"DateTime"}, - "Status":{"shape":"AssociationStatus"}, - "Parameters":{"shape":"Parameters"} + "WindowId":{"shape":"MaintenanceWindowId"} } }, - "AssociationDescriptionList":{ - "type":"list", - "member":{ - "shape":"AssociationDescription", - "locationName":"AssociationDescription" + "DeleteMaintenanceWindowResult":{ + "type":"structure", + "members":{ + "WindowId":{"shape":"MaintenanceWindowId"} } }, - "AssociationDoesNotExist":{ + "DeleteParameterRequest":{ "type":"structure", + "required":["Name"], "members":{ - }, - "exception":true + "Name":{"shape":"PSParameterName"} + } }, - "AssociationFilter":{ + "DeleteParameterResult":{ "type":"structure", - "required":[ - "key", - "value" - ], "members":{ - "key":{"shape":"AssociationFilterKey"}, - "value":{"shape":"AssociationFilterValue"} } }, - "AssociationFilterKey":{ - "type":"string", - "enum":[ - "InstanceId", - "Name" - ] - }, - "AssociationFilterList":{ - "type":"list", - "member":{ - "shape":"AssociationFilter", - "locationName":"AssociationFilter" - }, - "min":1 + "DeletePatchBaselineRequest":{ + "type":"structure", + "required":["BaselineId"], + "members":{ + "BaselineId":{"shape":"BaselineId"} + } }, - "AssociationFilterValue":{ - "type":"string", - "min":1 + "DeletePatchBaselineResult":{ + "type":"structure", + "members":{ + "BaselineId":{"shape":"BaselineId"} + } }, - "AssociationLimitExceeded":{ + "DeregisterManagedInstanceRequest":{ "type":"structure", + "required":["InstanceId"], "members":{ - }, - "exception":true + "InstanceId":{"shape":"ManagedInstanceId"} + } }, - "AssociationList":{ - "type":"list", - "member":{ - "shape":"Association", - "locationName":"Association" + "DeregisterManagedInstanceResult":{ + "type":"structure", + "members":{ } }, - "AssociationStatus":{ + "DeregisterPatchBaselineForPatchGroupRequest":{ "type":"structure", "required":[ - "Date", - "Name", - "Message" + "BaselineId", + "PatchGroup" ], "members":{ - "Date":{"shape":"DateTime"}, - "Name":{"shape":"AssociationStatusName"}, - "Message":{"shape":"StatusMessage"}, - "AdditionalInfo":{"shape":"StatusAdditionalInfo"} + "BaselineId":{"shape":"BaselineId"}, + "PatchGroup":{"shape":"PatchGroup"} } }, - "AssociationStatusName":{ - "type":"string", - "enum":[ - "Pending", - "Success", - "Failed" - ] - }, - "BatchErrorMessage":{"type":"string"}, - "Boolean":{"type":"boolean"}, - "CancelCommandRequest":{ + "DeregisterPatchBaselineForPatchGroupResult":{ "type":"structure", - "required":["CommandId"], "members":{ - "CommandId":{"shape":"CommandId"}, - "InstanceIds":{"shape":"InstanceIdList"} + "BaselineId":{"shape":"BaselineId"}, + "PatchGroup":{"shape":"PatchGroup"} } }, - "CancelCommandResult":{ + "DeregisterTargetFromMaintenanceWindowRequest":{ "type":"structure", + "required":[ + "WindowId", + "WindowTargetId" + ], "members":{ + "WindowId":{"shape":"MaintenanceWindowId"}, + "WindowTargetId":{"shape":"MaintenanceWindowTargetId"} } }, - "Command":{ + "DeregisterTargetFromMaintenanceWindowResult":{ "type":"structure", "members":{ - "CommandId":{"shape":"CommandId"}, - "DocumentName":{"shape":"DocumentName"}, - "Comment":{"shape":"Comment"}, - "ExpiresAfter":{"shape":"DateTime"}, - "Parameters":{"shape":"Parameters"}, - "InstanceIds":{"shape":"InstanceIdList"}, - "RequestedDateTime":{"shape":"DateTime"}, - "Status":{"shape":"CommandStatus"}, - "OutputS3BucketName":{"shape":"S3BucketName"}, - "OutputS3KeyPrefix":{"shape":"S3KeyPrefix"}, - "ServiceRole":{"shape":"ServiceRole"}, - "NotificationConfig":{"shape":"NotificationConfig"} + "WindowId":{"shape":"MaintenanceWindowId"}, + "WindowTargetId":{"shape":"MaintenanceWindowTargetId"} } }, - "CommandFilter":{ + "DeregisterTaskFromMaintenanceWindowRequest":{ "type":"structure", "required":[ - "key", - "value" + "WindowId", + "WindowTaskId" ], "members":{ - "key":{"shape":"CommandFilterKey"}, - "value":{"shape":"CommandFilterValue"} + "WindowId":{"shape":"MaintenanceWindowId"}, + "WindowTaskId":{"shape":"MaintenanceWindowTaskId"} } }, - "CommandFilterKey":{ + "DeregisterTaskFromMaintenanceWindowResult":{ + "type":"structure", + "members":{ + "WindowId":{"shape":"MaintenanceWindowId"}, + "WindowTaskId":{"shape":"MaintenanceWindowTaskId"} + } + }, + "DescribeActivationsFilter":{ + "type":"structure", + "members":{ + "FilterKey":{"shape":"DescribeActivationsFilterKeys"}, + "FilterValues":{"shape":"StringList"} + } + }, + "DescribeActivationsFilterKeys":{ "type":"string", "enum":[ - "InvokedAfter", - "InvokedBefore", - "Status" + "ActivationIds", + "DefaultInstanceName", + "IamRole" ] }, - "CommandFilterList":{ + "DescribeActivationsFilterList":{ "type":"list", - "member":{"shape":"CommandFilter"}, - "max":3, - "min":1 + "member":{"shape":"DescribeActivationsFilter"} }, - "CommandFilterValue":{ - "type":"string", - "min":1 + "DescribeActivationsRequest":{ + "type":"structure", + "members":{ + "Filters":{"shape":"DescribeActivationsFilterList"}, + "MaxResults":{ + "shape":"MaxResults", + "box":true + }, + "NextToken":{"shape":"NextToken"} + } }, - "CommandId":{ - "type":"string", - "max":36, - "min":36 + "DescribeActivationsResult":{ + "type":"structure", + "members":{ + "ActivationList":{"shape":"ActivationList"}, + "NextToken":{"shape":"NextToken"} + } }, - "CommandInvocation":{ + "DescribeAssociationRequest":{ "type":"structure", "members":{ - "CommandId":{"shape":"CommandId"}, + "Name":{"shape":"DocumentName"}, "InstanceId":{"shape":"InstanceId"}, - "Comment":{"shape":"Comment"}, - "DocumentName":{"shape":"DocumentName"}, - "RequestedDateTime":{"shape":"DateTime"}, - "Status":{"shape":"CommandInvocationStatus"}, - "TraceOutput":{"shape":"InvocationTraceOutput"}, - "CommandPlugins":{"shape":"CommandPluginList"}, - "ServiceRole":{"shape":"ServiceRole"}, - "NotificationConfig":{"shape":"NotificationConfig"} + "AssociationId":{"shape":"AssociationId"} } }, - "CommandInvocationList":{ - "type":"list", - "member":{"shape":"CommandInvocation"} - }, - "CommandInvocationStatus":{ - "type":"string", - "enum":[ - "Pending", - "InProgress", - "Cancelling", - "Success", - "TimedOut", - "Cancelled", - "Failed" - ] - }, - "CommandList":{ - "type":"list", - "member":{"shape":"Command"} - }, - "CommandMaxResults":{ - "type":"integer", - "max":50, - "min":1 + "DescribeAssociationResult":{ + "type":"structure", + "members":{ + "AssociationDescription":{"shape":"AssociationDescription"} + } }, - "CommandPlugin":{ + "DescribeAutomationExecutionsRequest":{ "type":"structure", "members":{ - "Name":{"shape":"CommandPluginName"}, - "Status":{"shape":"CommandPluginStatus"}, - "ResponseCode":{"shape":"ResponseCode"}, - "ResponseStartDateTime":{"shape":"DateTime"}, - "ResponseFinishDateTime":{"shape":"DateTime"}, - "Output":{"shape":"CommandPluginOutput"}, - "OutputS3BucketName":{"shape":"S3BucketName"}, - "OutputS3KeyPrefix":{"shape":"S3KeyPrefix"} + "Filters":{"shape":"AutomationExecutionFilterList"}, + "MaxResults":{ + "shape":"MaxResults", + "box":true + }, + "NextToken":{"shape":"NextToken"} } }, - "CommandPluginList":{ - "type":"list", - "member":{"shape":"CommandPlugin"} + "DescribeAutomationExecutionsResult":{ + "type":"structure", + "members":{ + "AutomationExecutionMetadataList":{"shape":"AutomationExecutionMetadataList"}, + "NextToken":{"shape":"NextToken"} + } }, - "CommandPluginName":{ - "type":"string", - "min":4 + "DescribeAvailablePatchesRequest":{ + "type":"structure", + "members":{ + "Filters":{"shape":"PatchOrchestratorFilterList"}, + "MaxResults":{ + "shape":"PatchBaselineMaxResults", + "box":true + }, + "NextToken":{"shape":"NextToken"} + } }, - "CommandPluginOutput":{ - "type":"string", - "max":2500 + "DescribeAvailablePatchesResult":{ + "type":"structure", + "members":{ + "Patches":{"shape":"PatchList"}, + "NextToken":{"shape":"NextToken"} + } }, - "CommandPluginStatus":{ - "type":"string", - "enum":[ - "Pending", - "InProgress", - "Success", - "TimedOut", - "Cancelled", - "Failed" - ] + "DescribeDocumentPermissionRequest":{ + "type":"structure", + "required":[ + "Name", + "PermissionType" + ], + "members":{ + "Name":{"shape":"DocumentName"}, + "PermissionType":{"shape":"DocumentPermissionType"} + } }, - "CommandStatus":{ - "type":"string", - "enum":[ - "Pending", - "InProgress", - "Cancelling", - "Success", - "TimedOut", - "Cancelled", - "Failed" - ] + "DescribeDocumentPermissionResponse":{ + "type":"structure", + "members":{ + "AccountIds":{"shape":"AccountIdList"} + } }, - "Comment":{ - "type":"string", - "max":100 + "DescribeDocumentRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"DocumentARN"}, + "DocumentVersion":{"shape":"DocumentVersion"} + } }, - "ComputerName":{ - "type":"string", - "max":255, - "min":1 + "DescribeDocumentResult":{ + "type":"structure", + "members":{ + "Document":{"shape":"DocumentDescription"} + } }, - "CreateActivationRequest":{ + "DescribeEffectiveInstanceAssociationsRequest":{ "type":"structure", - "required":["IamRole"], + "required":["InstanceId"], "members":{ - "Description":{"shape":"ActivationDescription"}, - "DefaultInstanceName":{"shape":"DefaultInstanceName"}, - "IamRole":{"shape":"IamRole"}, - "RegistrationLimit":{ - "shape":"RegistrationLimit", + "InstanceId":{"shape":"InstanceId"}, + "MaxResults":{ + "shape":"EffectiveInstanceAssociationMaxResults", "box":true }, - "ExpirationDate":{"shape":"ExpirationDate"} + "NextToken":{"shape":"NextToken"} } }, - "CreateActivationResult":{ + "DescribeEffectiveInstanceAssociationsResult":{ "type":"structure", "members":{ - "ActivationId":{"shape":"ActivationId"}, - "ActivationCode":{"shape":"ActivationCode"} + "Associations":{"shape":"InstanceAssociationList"}, + "NextToken":{"shape":"NextToken"} } }, - "CreateAssociationBatchRequest":{ + "DescribeEffectivePatchesForPatchBaselineRequest":{ "type":"structure", - "required":["Entries"], + "required":["BaselineId"], "members":{ - "Entries":{"shape":"CreateAssociationBatchRequestEntries"} + "BaselineId":{"shape":"BaselineId"}, + "MaxResults":{ + "shape":"PatchBaselineMaxResults", + "box":true + }, + "NextToken":{"shape":"NextToken"} } }, - "CreateAssociationBatchRequestEntries":{ - "type":"list", - "member":{ - "shape":"CreateAssociationBatchRequestEntry", - "locationName":"entries" + "DescribeEffectivePatchesForPatchBaselineResult":{ + "type":"structure", + "members":{ + "EffectivePatches":{"shape":"EffectivePatchList"}, + "NextToken":{"shape":"NextToken"} } }, - "CreateAssociationBatchRequestEntry":{ + "DescribeInstanceAssociationsStatusRequest":{ "type":"structure", + "required":["InstanceId"], "members":{ - "Name":{"shape":"DocumentName"}, "InstanceId":{"shape":"InstanceId"}, - "Parameters":{"shape":"Parameters"} + "MaxResults":{ + "shape":"MaxResults", + "box":true + }, + "NextToken":{"shape":"NextToken"} } }, - "CreateAssociationBatchResult":{ + "DescribeInstanceAssociationsStatusResult":{ "type":"structure", "members":{ - "Successful":{"shape":"AssociationDescriptionList"}, - "Failed":{"shape":"FailedCreateAssociationList"} + "InstanceAssociationStatusInfos":{"shape":"InstanceAssociationStatusInfos"}, + "NextToken":{"shape":"NextToken"} } }, - "CreateAssociationRequest":{ + "DescribeInstanceInformationRequest":{ "type":"structure", - "required":[ - "Name", - "InstanceId" - ], "members":{ - "Name":{"shape":"DocumentName"}, - "InstanceId":{"shape":"InstanceId"}, - "Parameters":{"shape":"Parameters"} + "InstanceInformationFilterList":{"shape":"InstanceInformationFilterList"}, + "Filters":{"shape":"InstanceInformationStringFilterList"}, + "MaxResults":{ + "shape":"MaxResultsEC2Compatible", + "box":true + }, + "NextToken":{"shape":"NextToken"} } }, - "CreateAssociationResult":{ + "DescribeInstanceInformationResult":{ "type":"structure", "members":{ - "AssociationDescription":{"shape":"AssociationDescription"} + "InstanceInformationList":{"shape":"InstanceInformationList"}, + "NextToken":{"shape":"NextToken"} } }, - "CreateDocumentRequest":{ + "DescribeInstancePatchStatesForPatchGroupRequest":{ "type":"structure", - "required":[ - "Content", - "Name" - ], + "required":["PatchGroup"], "members":{ - "Content":{"shape":"DocumentContent"}, - "Name":{"shape":"DocumentName"} + "PatchGroup":{"shape":"PatchGroup"}, + "Filters":{"shape":"InstancePatchStateFilterList"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{ + "shape":"PatchComplianceMaxResults", + "box":true + } } }, - "CreateDocumentResult":{ + "DescribeInstancePatchStatesForPatchGroupResult":{ "type":"structure", "members":{ - "DocumentDescription":{"shape":"DocumentDescription"} + "InstancePatchStates":{"shape":"InstancePatchStatesList"}, + "NextToken":{"shape":"NextToken"} } }, - "CreatedDate":{"type":"timestamp"}, - "DateTime":{"type":"timestamp"}, - "DefaultInstanceName":{ - "type":"string", - "max":256, - "min":0, - "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + "DescribeInstancePatchStatesRequest":{ + "type":"structure", + "required":["InstanceIds"], + "members":{ + "InstanceIds":{"shape":"InstanceIdList"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{ + "shape":"PatchComplianceMaxResults", + "box":true + } + } }, - "DeleteActivationRequest":{ + "DescribeInstancePatchStatesResult":{ "type":"structure", - "required":["ActivationId"], "members":{ - "ActivationId":{"shape":"ActivationId"} + "InstancePatchStates":{"shape":"InstancePatchStateList"}, + "NextToken":{"shape":"NextToken"} } }, - "DeleteActivationResult":{ + "DescribeInstancePatchesRequest":{ "type":"structure", + "required":["InstanceId"], "members":{ + "InstanceId":{"shape":"InstanceId"}, + "Filters":{"shape":"PatchOrchestratorFilterList"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{ + "shape":"PatchComplianceMaxResults", + "box":true + } } }, - "DeleteAssociationRequest":{ + "DescribeInstancePatchesResult":{ + "type":"structure", + "members":{ + "Patches":{"shape":"PatchComplianceDataList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "DescribeMaintenanceWindowExecutionTaskInvocationsRequest":{ "type":"structure", "required":[ - "Name", - "InstanceId" + "WindowExecutionId", + "TaskId" ], "members":{ - "Name":{"shape":"DocumentName"}, - "InstanceId":{"shape":"InstanceId"} + "WindowExecutionId":{"shape":"MaintenanceWindowExecutionId"}, + "TaskId":{"shape":"MaintenanceWindowExecutionTaskId"}, + "Filters":{"shape":"MaintenanceWindowFilterList"}, + "MaxResults":{ + "shape":"MaintenanceWindowMaxResults", + "box":true + }, + "NextToken":{"shape":"NextToken"} } }, - "DeleteAssociationResult":{ + "DescribeMaintenanceWindowExecutionTaskInvocationsResult":{ "type":"structure", "members":{ + "WindowExecutionTaskInvocationIdentities":{"shape":"MaintenanceWindowExecutionTaskInvocationIdentityList"}, + "NextToken":{"shape":"NextToken"} } }, - "DeleteDocumentRequest":{ + "DescribeMaintenanceWindowExecutionTasksRequest":{ "type":"structure", - "required":["Name"], + "required":["WindowExecutionId"], "members":{ - "Name":{"shape":"DocumentName"} + "WindowExecutionId":{"shape":"MaintenanceWindowExecutionId"}, + "Filters":{"shape":"MaintenanceWindowFilterList"}, + "MaxResults":{ + "shape":"MaintenanceWindowMaxResults", + "box":true + }, + "NextToken":{"shape":"NextToken"} } }, - "DeleteDocumentResult":{ + "DescribeMaintenanceWindowExecutionTasksResult":{ "type":"structure", "members":{ + "WindowExecutionTaskIdentities":{"shape":"MaintenanceWindowExecutionTaskIdentityList"}, + "NextToken":{"shape":"NextToken"} } }, - "DeregisterManagedInstanceRequest":{ + "DescribeMaintenanceWindowExecutionsRequest":{ "type":"structure", - "required":["InstanceId"], + "required":["WindowId"], "members":{ - "InstanceId":{"shape":"ManagedInstanceId"} + "WindowId":{"shape":"MaintenanceWindowId"}, + "Filters":{"shape":"MaintenanceWindowFilterList"}, + "MaxResults":{ + "shape":"MaintenanceWindowMaxResults", + "box":true + }, + "NextToken":{"shape":"NextToken"} } }, - "DeregisterManagedInstanceResult":{ + "DescribeMaintenanceWindowExecutionsResult":{ "type":"structure", "members":{ + "WindowExecutions":{"shape":"MaintenanceWindowExecutionList"}, + "NextToken":{"shape":"NextToken"} } }, - "DescribeActivationsFilter":{ + "DescribeMaintenanceWindowTargetsRequest":{ "type":"structure", + "required":["WindowId"], "members":{ - "FilterKey":{"shape":"DescribeActivationsFilterKeys"}, - "FilterValues":{"shape":"StringList"} + "WindowId":{"shape":"MaintenanceWindowId"}, + "Filters":{"shape":"MaintenanceWindowFilterList"}, + "MaxResults":{ + "shape":"MaintenanceWindowMaxResults", + "box":true + }, + "NextToken":{"shape":"NextToken"} } }, - "DescribeActivationsFilterKeys":{ - "type":"string", - "enum":[ - "ActivationIds", - "DefaultInstanceName", - "IamRole" - ] + "DescribeMaintenanceWindowTargetsResult":{ + "type":"structure", + "members":{ + "Targets":{"shape":"MaintenanceWindowTargetList"}, + "NextToken":{"shape":"NextToken"} + } }, - "DescribeActivationsFilterList":{ - "type":"list", - "member":{"shape":"DescribeActivationsFilter"} + "DescribeMaintenanceWindowTasksRequest":{ + "type":"structure", + "required":["WindowId"], + "members":{ + "WindowId":{"shape":"MaintenanceWindowId"}, + "Filters":{"shape":"MaintenanceWindowFilterList"}, + "MaxResults":{ + "shape":"MaintenanceWindowMaxResults", + "box":true + }, + "NextToken":{"shape":"NextToken"} + } }, - "DescribeActivationsRequest":{ + "DescribeMaintenanceWindowTasksResult":{ "type":"structure", "members":{ - "Filters":{"shape":"DescribeActivationsFilterList"}, + "Tasks":{"shape":"MaintenanceWindowTaskList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "DescribeMaintenanceWindowsRequest":{ + "type":"structure", + "members":{ + "Filters":{"shape":"MaintenanceWindowFilterList"}, "MaxResults":{ - "shape":"MaxResults", + "shape":"MaintenanceWindowMaxResults", "box":true }, "NextToken":{"shape":"NextToken"} } }, - "DescribeActivationsResult":{ + "DescribeMaintenanceWindowsResult":{ "type":"structure", "members":{ - "ActivationList":{"shape":"ActivationList"}, + "WindowIdentities":{"shape":"MaintenanceWindowIdentityList"}, "NextToken":{"shape":"NextToken"} } }, - "DescribeAssociationRequest":{ + "DescribeParametersRequest":{ "type":"structure", - "required":[ - "Name", - "InstanceId" - ], "members":{ - "Name":{"shape":"DocumentName"}, - "InstanceId":{"shape":"InstanceId"} + "Filters":{"shape":"ParametersFilterList"}, + "MaxResults":{ + "shape":"MaxResults", + "box":true + }, + "NextToken":{"shape":"NextToken"} } }, - "DescribeAssociationResult":{ + "DescribeParametersResult":{ "type":"structure", "members":{ - "AssociationDescription":{"shape":"AssociationDescription"} + "Parameters":{"shape":"ParameterMetadataList"}, + "NextToken":{"shape":"NextToken"} } }, - "DescribeDocumentPermissionRequest":{ + "DescribePatchBaselinesRequest":{ "type":"structure", - "required":[ - "Name", - "PermissionType" - ], "members":{ - "Name":{"shape":"DocumentName"}, - "PermissionType":{"shape":"DocumentPermissionType"} + "Filters":{"shape":"PatchOrchestratorFilterList"}, + "MaxResults":{ + "shape":"PatchBaselineMaxResults", + "box":true + }, + "NextToken":{"shape":"NextToken"} } }, - "DescribeDocumentPermissionResponse":{ + "DescribePatchBaselinesResult":{ "type":"structure", "members":{ - "AccountIds":{"shape":"AccountIdList"} + "BaselineIdentities":{"shape":"PatchBaselineIdentityList"}, + "NextToken":{"shape":"NextToken"} } }, - "DescribeDocumentRequest":{ + "DescribePatchGroupStateRequest":{ "type":"structure", - "required":["Name"], + "required":["PatchGroup"], "members":{ - "Name":{"shape":"DocumentARN"} + "PatchGroup":{"shape":"PatchGroup"} } }, - "DescribeDocumentResult":{ + "DescribePatchGroupStateResult":{ "type":"structure", "members":{ - "Document":{"shape":"DocumentDescription"} + "Instances":{"shape":"Integer"}, + "InstancesWithInstalledPatches":{"shape":"Integer"}, + "InstancesWithInstalledOtherPatches":{"shape":"Integer"}, + "InstancesWithMissingPatches":{"shape":"Integer"}, + "InstancesWithFailedPatches":{"shape":"Integer"}, + "InstancesWithNotApplicablePatches":{"shape":"Integer"} } }, - "DescribeInstanceInformationRequest":{ + "DescribePatchGroupsRequest":{ "type":"structure", "members":{ - "InstanceInformationFilterList":{"shape":"InstanceInformationFilterList"}, "MaxResults":{ - "shape":"MaxResultsEC2Compatible", + "shape":"PatchBaselineMaxResults", "box":true }, "NextToken":{"shape":"NextToken"} } }, - "DescribeInstanceInformationResult":{ + "DescribePatchGroupsResult":{ "type":"structure", "members":{ - "InstanceInformationList":{"shape":"InstanceInformationList"}, + "Mappings":{"shape":"PatchGroupPatchBaselineMappingList"}, "NextToken":{"shape":"NextToken"} } }, @@ -998,6 +2503,13 @@ "type":"string", "min":1 }, + "DocumentDefaultVersionDescription":{ + "type":"structure", + "members":{ + "Name":{"shape":"DocumentName"}, + "DefaultVersion":{"shape":"DocumentVersion"} + } + }, "DocumentDescription":{ "type":"structure", "members":{ @@ -1008,9 +2520,14 @@ "Owner":{"shape":"DocumentOwner"}, "CreatedDate":{"shape":"DateTime"}, "Status":{"shape":"DocumentStatus"}, + "DocumentVersion":{"shape":"DocumentVersion"}, "Description":{"shape":"DescriptionInDocument"}, "Parameters":{"shape":"DocumentParameterList"}, - "PlatformTypes":{"shape":"PlatformTypeList"} + "PlatformTypes":{"shape":"PlatformTypeList"}, + "DocumentType":{"shape":"DocumentType"}, + "SchemaVersion":{"shape":"DocumentSchemaVersion"}, + "LatestVersion":{"shape":"DocumentVersion"}, + "DefaultVersion":{"shape":"DocumentVersion"} } }, "DocumentFilter":{ @@ -1029,7 +2546,8 @@ "enum":[ "Name", "Owner", - "PlatformTypes" + "PlatformTypes", + "DocumentType" ] }, "DocumentFilterList":{ @@ -1060,7 +2578,10 @@ "members":{ "Name":{"shape":"DocumentARN"}, "Owner":{"shape":"DocumentOwner"}, - "PlatformTypes":{"shape":"PlatformTypeList"} + "PlatformTypes":{"shape":"PlatformTypeList"}, + "DocumentVersion":{"shape":"DocumentVersion"}, + "DocumentType":{"shape":"DocumentType"}, + "SchemaVersion":{"shape":"DocumentSchemaVersion"} } }, "DocumentIdentifierList":{ @@ -1119,21 +2640,94 @@ "type":"string", "enum":["Share"] }, + "DocumentSchemaVersion":{ + "type":"string", + "pattern":"([0-9]+)\\.([0-9]+)" + }, "DocumentSha1":{"type":"string"}, "DocumentStatus":{ "type":"string", "enum":[ "Creating", "Active", + "Updating", "Deleting" ] }, + "DocumentType":{ + "type":"string", + "enum":[ + "Command", + "Policy", + "Automation" + ] + }, + "DocumentVersion":{ + "type":"string", + "pattern":"([$]LATEST|[$]DEFAULT|^[1-9][0-9]*$)" + }, + "DocumentVersionInfo":{ + "type":"structure", + "members":{ + "Name":{"shape":"DocumentName"}, + "DocumentVersion":{"shape":"DocumentVersion"}, + "CreatedDate":{"shape":"DateTime"}, + "IsDefaultVersion":{"shape":"Boolean"} + } + }, + "DocumentVersionLimitExceeded":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "DocumentVersionList":{ + "type":"list", + "member":{"shape":"DocumentVersionInfo"}, + "min":1 + }, + "DocumentVersionNumber":{ + "type":"string", + "pattern":"(^[1-9][0-9]*$)" + }, + "DoesNotExistException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "DuplicateDocumentContent":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, "DuplicateInstanceId":{ "type":"structure", "members":{ }, "exception":true }, + "EffectiveInstanceAssociationMaxResults":{ + "type":"integer", + "max":5, + "min":1 + }, + "EffectivePatch":{ + "type":"structure", + "members":{ + "Patch":{"shape":"Patch"}, + "PatchStatus":{"shape":"PatchStatus"} + } + }, + "EffectivePatchList":{ + "type":"list", + "member":{"shape":"EffectivePatch"} + }, + "ErrorCount":{"type":"integer"}, "ExpirationDate":{"type":"timestamp"}, "FailedCreateAssociation":{ "type":"structure", @@ -1143,44 +2737,377 @@ "Fault":{"shape":"Fault"} } }, - "FailedCreateAssociationList":{ - "type":"list", - "member":{ - "shape":"FailedCreateAssociation", - "locationName":"FailedCreateAssociationEntry" + "FailedCreateAssociationList":{ + "type":"list", + "member":{ + "shape":"FailedCreateAssociation", + "locationName":"FailedCreateAssociationEntry" + } + }, + "Fault":{ + "type":"string", + "enum":[ + "Client", + "Server", + "Unknown" + ] + }, + "GetAutomationExecutionRequest":{ + "type":"structure", + "required":["AutomationExecutionId"], + "members":{ + "AutomationExecutionId":{"shape":"AutomationExecutionId"} + } + }, + "GetAutomationExecutionResult":{ + "type":"structure", + "members":{ + "AutomationExecution":{"shape":"AutomationExecution"} + } + }, + "GetCommandInvocationRequest":{ + "type":"structure", + "required":[ + "CommandId", + "InstanceId" + ], + "members":{ + "CommandId":{"shape":"CommandId"}, + "InstanceId":{"shape":"InstanceId"}, + "PluginName":{"shape":"CommandPluginName"} + } + }, + "GetCommandInvocationResult":{ + "type":"structure", + "members":{ + "CommandId":{"shape":"CommandId"}, + "InstanceId":{"shape":"InstanceId"}, + "Comment":{"shape":"Comment"}, + "DocumentName":{"shape":"DocumentName"}, + "PluginName":{"shape":"CommandPluginName"}, + "ResponseCode":{"shape":"ResponseCode"}, + "ExecutionStartDateTime":{"shape":"StringDateTime"}, + "ExecutionElapsedTime":{"shape":"StringDateTime"}, + "ExecutionEndDateTime":{"shape":"StringDateTime"}, + "Status":{"shape":"CommandInvocationStatus"}, + "StatusDetails":{"shape":"StatusDetails"}, + "StandardOutputContent":{"shape":"StandardOutputContent"}, + "StandardOutputUrl":{"shape":"Url"}, + "StandardErrorContent":{"shape":"StandardErrorContent"}, + "StandardErrorUrl":{"shape":"Url"} + } + }, + "GetDefaultPatchBaselineRequest":{ + "type":"structure", + "members":{ + } + }, + "GetDefaultPatchBaselineResult":{ + "type":"structure", + "members":{ + "BaselineId":{"shape":"BaselineId"} + } + }, + "GetDeployablePatchSnapshotForInstanceRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "SnapshotId" + ], + "members":{ + "InstanceId":{"shape":"InstanceId"}, + "SnapshotId":{"shape":"SnapshotId"} + } + }, + "GetDeployablePatchSnapshotForInstanceResult":{ + "type":"structure", + "members":{ + "InstanceId":{"shape":"InstanceId"}, + "SnapshotId":{"shape":"SnapshotId"}, + "SnapshotDownloadUrl":{"shape":"SnapshotDownloadUrl"} + } + }, + "GetDocumentRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"DocumentARN"}, + "DocumentVersion":{"shape":"DocumentVersion"} + } + }, + "GetDocumentResult":{ + "type":"structure", + "members":{ + "Name":{"shape":"DocumentARN"}, + "DocumentVersion":{"shape":"DocumentVersion"}, + "Content":{"shape":"DocumentContent"}, + "DocumentType":{"shape":"DocumentType"} + } + }, + "GetInventoryRequest":{ + "type":"structure", + "members":{ + "Filters":{"shape":"InventoryFilterList"}, + "ResultAttributes":{"shape":"ResultAttributeList"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{ + "shape":"MaxResults", + "box":true + } + } + }, + "GetInventoryResult":{ + "type":"structure", + "members":{ + "Entities":{"shape":"InventoryResultEntityList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "GetInventorySchemaMaxResults":{ + "type":"integer", + "max":200, + "min":50 + }, + "GetInventorySchemaRequest":{ + "type":"structure", + "members":{ + "TypeName":{"shape":"InventoryItemTypeNameFilter"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{ + "shape":"GetInventorySchemaMaxResults", + "box":true + } + } + }, + "GetInventorySchemaResult":{ + "type":"structure", + "members":{ + "Schemas":{"shape":"InventoryItemSchemaResultList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "GetMaintenanceWindowExecutionRequest":{ + "type":"structure", + "required":["WindowExecutionId"], + "members":{ + "WindowExecutionId":{"shape":"MaintenanceWindowExecutionId"} + } + }, + "GetMaintenanceWindowExecutionResult":{ + "type":"structure", + "members":{ + "WindowExecutionId":{"shape":"MaintenanceWindowExecutionId"}, + "TaskIds":{"shape":"MaintenanceWindowExecutionTaskIdList"}, + "Status":{"shape":"MaintenanceWindowExecutionStatus"}, + "StatusDetails":{"shape":"MaintenanceWindowExecutionStatusDetails"}, + "StartTime":{"shape":"DateTime"}, + "EndTime":{"shape":"DateTime"} + } + }, + "GetMaintenanceWindowExecutionTaskRequest":{ + "type":"structure", + "required":[ + "WindowExecutionId", + "TaskId" + ], + "members":{ + "WindowExecutionId":{"shape":"MaintenanceWindowExecutionId"}, + "TaskId":{"shape":"MaintenanceWindowExecutionTaskId"} + } + }, + "GetMaintenanceWindowExecutionTaskResult":{ + "type":"structure", + "members":{ + "WindowExecutionId":{"shape":"MaintenanceWindowExecutionId"}, + "TaskExecutionId":{"shape":"MaintenanceWindowExecutionTaskId"}, + "TaskArn":{"shape":"MaintenanceWindowTaskArn"}, + "ServiceRole":{"shape":"ServiceRole"}, + "Type":{"shape":"MaintenanceWindowTaskType"}, + "TaskParameters":{"shape":"MaintenanceWindowTaskParametersList"}, + "Priority":{"shape":"MaintenanceWindowTaskPriority"}, + "MaxConcurrency":{"shape":"VelocityConstraint"}, + "MaxErrors":{"shape":"VelocityConstraint"}, + "Status":{"shape":"MaintenanceWindowExecutionStatus"}, + "StatusDetails":{"shape":"MaintenanceWindowExecutionStatusDetails"}, + "StartTime":{"shape":"DateTime"}, + "EndTime":{"shape":"DateTime"} + } + }, + "GetMaintenanceWindowRequest":{ + "type":"structure", + "required":["WindowId"], + "members":{ + "WindowId":{"shape":"MaintenanceWindowId"} + } + }, + "GetMaintenanceWindowResult":{ + "type":"structure", + "members":{ + "WindowId":{"shape":"MaintenanceWindowId"}, + "Name":{"shape":"MaintenanceWindowName"}, + "Schedule":{"shape":"MaintenanceWindowSchedule"}, + "Duration":{"shape":"MaintenanceWindowDurationHours"}, + "Cutoff":{"shape":"MaintenanceWindowCutoff"}, + "AllowUnassociatedTargets":{"shape":"MaintenanceWindowAllowUnassociatedTargets"}, + "Enabled":{"shape":"MaintenanceWindowEnabled"}, + "CreatedDate":{"shape":"DateTime"}, + "ModifiedDate":{"shape":"DateTime"} + } + }, + "GetParameterHistoryRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"PSParameterName"}, + "WithDecryption":{ + "shape":"Boolean", + "box":true + }, + "MaxResults":{ + "shape":"MaxResults", + "box":true + }, + "NextToken":{"shape":"NextToken"} + } + }, + "GetParameterHistoryResult":{ + "type":"structure", + "members":{ + "Parameters":{"shape":"ParameterHistoryList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "GetParametersRequest":{ + "type":"structure", + "required":["Names"], + "members":{ + "Names":{"shape":"ParameterNameList"}, + "WithDecryption":{ + "shape":"Boolean", + "box":true + } + } + }, + "GetParametersResult":{ + "type":"structure", + "members":{ + "Parameters":{"shape":"ParameterList"}, + "InvalidParameters":{"shape":"ParameterNameList"} + } + }, + "GetPatchBaselineForPatchGroupRequest":{ + "type":"structure", + "required":["PatchGroup"], + "members":{ + "PatchGroup":{"shape":"PatchGroup"} + } + }, + "GetPatchBaselineForPatchGroupResult":{ + "type":"structure", + "members":{ + "BaselineId":{"shape":"BaselineId"}, + "PatchGroup":{"shape":"PatchGroup"} + } + }, + "GetPatchBaselineRequest":{ + "type":"structure", + "required":["BaselineId"], + "members":{ + "BaselineId":{"shape":"BaselineId"} + } + }, + "GetPatchBaselineResult":{ + "type":"structure", + "members":{ + "BaselineId":{"shape":"BaselineId"}, + "Name":{"shape":"BaselineName"}, + "GlobalFilters":{"shape":"PatchFilterGroup"}, + "ApprovalRules":{"shape":"PatchRuleGroup"}, + "ApprovedPatches":{"shape":"PatchIdList"}, + "RejectedPatches":{"shape":"PatchIdList"}, + "PatchGroups":{"shape":"PatchGroupList"}, + "CreatedDate":{"shape":"DateTime"}, + "ModifiedDate":{"shape":"DateTime"}, + "Description":{"shape":"BaselineDescription"} + } + }, + "IPAddress":{ + "type":"string", + "max":46, + "min":1 + }, + "IamRole":{ + "type":"string", + "max":64 + }, + "IdempotentParameterMismatch":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "InstanceAggregatedAssociationOverview":{ + "type":"structure", + "members":{ + "DetailedStatus":{"shape":"StatusName"}, + "InstanceAssociationStatusAggregatedCount":{"shape":"InstanceAssociationStatusAggregatedCount"} + } + }, + "InstanceAssociation":{ + "type":"structure", + "members":{ + "AssociationId":{"shape":"AssociationId"}, + "InstanceId":{"shape":"InstanceId"}, + "Content":{"shape":"DocumentContent"} } }, - "Fault":{ + "InstanceAssociationExecutionSummary":{ "type":"string", - "enum":[ - "Client", - "Server", - "Unknown" - ] + "max":512, + "min":1 }, - "GetDocumentRequest":{ + "InstanceAssociationList":{ + "type":"list", + "member":{"shape":"InstanceAssociation"} + }, + "InstanceAssociationOutputLocation":{ "type":"structure", - "required":["Name"], "members":{ - "Name":{"shape":"DocumentARN"} + "S3Location":{"shape":"S3OutputLocation"} } }, - "GetDocumentResult":{ + "InstanceAssociationOutputUrl":{ "type":"structure", "members":{ - "Name":{"shape":"DocumentARN"}, - "Content":{"shape":"DocumentContent"} + "S3OutputUrl":{"shape":"S3OutputUrl"} } }, - "IPAddress":{ - "type":"string", - "max":46, - "min":1 + "InstanceAssociationStatusAggregatedCount":{ + "type":"map", + "key":{"shape":"StatusName"}, + "value":{"shape":"InstanceCount"} }, - "IamRole":{ - "type":"string", - "max":64 + "InstanceAssociationStatusInfo":{ + "type":"structure", + "members":{ + "AssociationId":{"shape":"AssociationId"}, + "Name":{"shape":"DocumentName"}, + "DocumentVersion":{"shape":"DocumentVersion"}, + "InstanceId":{"shape":"InstanceId"}, + "ExecutionDate":{"shape":"DateTime"}, + "Status":{"shape":"StatusName"}, + "DetailedStatus":{"shape":"StatusName"}, + "ExecutionSummary":{"shape":"InstanceAssociationExecutionSummary"}, + "ErrorCode":{"shape":"AgentErrorCode"}, + "OutputUrl":{"shape":"InstanceAssociationOutputUrl"} + } + }, + "InstanceAssociationStatusInfos":{ + "type":"list", + "member":{"shape":"InstanceAssociationStatusInfo"} }, + "InstanceCount":{"type":"integer"}, "InstanceId":{ "type":"string", "pattern":"(^i-(\\w{8}|\\w{17})$)|(^mi-\\w{17}$)" @@ -1189,7 +3116,7 @@ "type":"list", "member":{"shape":"InstanceId"}, "max":50, - "min":1 + "min":0 }, "InstanceInformation":{ "type":"structure", @@ -1217,7 +3144,11 @@ "ResourceType":{"shape":"ResourceType"}, "Name":{"shape":"String"}, "IPAddress":{"shape":"IPAddress"}, - "ComputerName":{"shape":"ComputerName"} + "ComputerName":{"shape":"ComputerName"}, + "AssociationStatus":{"shape":"StatusName"}, + "LastAssociationExecutionDate":{"shape":"DateTime"}, + "LastSuccessfulAssociationExecutionDate":{"shape":"DateTime"}, + "AssociationOverview":{"shape":"InstanceAggregatedAssociationOverview"} } }, "InstanceInformationFilter":{ @@ -1240,7 +3171,8 @@ "PlatformTypes", "ActivationIds", "IamRole", - "ResourceType" + "ResourceType", + "AssociationStatus" ] }, "InstanceInformationFilterList":{ @@ -1249,7 +3181,7 @@ "shape":"InstanceInformationFilter", "locationName":"InstanceInformationFilter" }, - "min":1 + "min":0 }, "InstanceInformationFilterValue":{ "type":"string", @@ -1271,6 +3203,110 @@ "locationName":"InstanceInformation" } }, + "InstanceInformationStringFilter":{ + "type":"structure", + "required":[ + "Key", + "Values" + ], + "members":{ + "Key":{"shape":"InstanceInformationStringFilterKey"}, + "Values":{"shape":"InstanceInformationFilterValueSet"} + } + }, + "InstanceInformationStringFilterKey":{ + "type":"string", + "min":1 + }, + "InstanceInformationStringFilterList":{ + "type":"list", + "member":{ + "shape":"InstanceInformationStringFilter", + "locationName":"InstanceInformationStringFilter" + }, + "min":0 + }, + "InstancePatchState":{ + "type":"structure", + "required":[ + "InstanceId", + "PatchGroup", + "BaselineId", + "OperationStartTime", + "OperationEndTime", + "Operation" + ], + "members":{ + "InstanceId":{"shape":"InstanceId"}, + "PatchGroup":{"shape":"PatchGroup"}, + "BaselineId":{"shape":"BaselineId"}, + "SnapshotId":{"shape":"SnapshotId"}, + "OwnerInformation":{"shape":"OwnerInformation"}, + "InstalledCount":{"shape":"PatchInstalledCount"}, + "InstalledOtherCount":{"shape":"PatchInstalledOtherCount"}, + "MissingCount":{"shape":"PatchMissingCount"}, + "FailedCount":{"shape":"PatchFailedCount"}, + "NotApplicableCount":{"shape":"PatchNotApplicableCount"}, + "OperationStartTime":{"shape":"PatchOperationStartTime"}, + "OperationEndTime":{"shape":"PatchOperationEndTime"}, + "Operation":{"shape":"PatchOperationType"} + } + }, + "InstancePatchStateFilter":{ + "type":"structure", + "required":[ + "Key", + "Values", + "Type" + ], + "members":{ + "Key":{"shape":"InstancePatchStateFilterKey"}, + "Values":{"shape":"InstancePatchStateFilterValues"}, + "Type":{"shape":"InstancePatchStateOperatorType"} + } + }, + "InstancePatchStateFilterKey":{ + "type":"string", + "max":200, + "min":1 + }, + "InstancePatchStateFilterList":{ + "type":"list", + "member":{"shape":"InstancePatchStateFilter"}, + "max":4, + "min":0 + }, + "InstancePatchStateFilterValue":{"type":"string"}, + "InstancePatchStateFilterValues":{ + "type":"list", + "member":{"shape":"InstancePatchStateFilterValue"}, + "max":1, + "min":1 + }, + "InstancePatchStateList":{ + "type":"list", + "member":{"shape":"InstancePatchState"} + }, + "InstancePatchStateOperatorType":{ + "type":"string", + "enum":[ + "Equal", + "NotEqual", + "LessThan", + "GreaterThan" + ] + }, + "InstancePatchStatesList":{ + "type":"list", + "member":{"shape":"InstancePatchState"}, + "max":5, + "min":1 + }, + "InstanceTagName":{ + "type":"string", + "max":255 + }, + "Integer":{"type":"integer"}, "InternalServerError":{ "type":"structure", "members":{ @@ -1292,6 +3328,13 @@ }, "exception":true }, + "InvalidAutomationExecutionParametersException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, "InvalidCommandId":{ "type":"structure", "members":{ @@ -1319,6 +3362,20 @@ }, "exception":true }, + "InvalidDocumentSchemaVersion":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "InvalidDocumentVersion":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, "InvalidFilter":{ "type":"structure", "members":{ @@ -1332,83 +3389,359 @@ }, "exception":true }, - "InvalidInstanceId":{ - "type":"structure", - "members":{ - "Message":{"shape":"String"} + "InvalidFilterValue":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "InvalidInstanceId":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "InvalidInstanceInformationFilterValue":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "exception":true + }, + "InvalidItemContentException":{ + "type":"structure", + "members":{ + "TypeName":{"shape":"InventoryItemTypeName"}, + "Message":{"shape":"String"} + }, + "exception":true + }, + "InvalidKeyId":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "exception":true + }, + "InvalidNextToken":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidNotificationConfig":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "InvalidOutputFolder":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidOutputLocation":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidParameters":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "InvalidPermissionType":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "InvalidPluginName":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidResourceId":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidResourceType":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidResultAttributeException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "InvalidRole":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "InvalidSchedule":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "InvalidTarget":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "InvalidTypeNameException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "InvalidUpdate":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "InventoryAttributeDataType":{ + "type":"string", + "enum":[ + "string", + "number" + ] + }, + "InventoryFilter":{ + "type":"structure", + "required":[ + "Key", + "Values" + ], + "members":{ + "Key":{"shape":"InventoryFilterKey"}, + "Values":{"shape":"InventoryFilterValueList"}, + "Type":{"shape":"InventoryQueryOperatorType"} + } + }, + "InventoryFilterKey":{ + "type":"string", + "max":200, + "min":1 + }, + "InventoryFilterList":{ + "type":"list", + "member":{ + "shape":"InventoryFilter", + "locationName":"InventoryFilter" + }, + "max":5, + "min":1 + }, + "InventoryFilterValue":{"type":"string"}, + "InventoryFilterValueList":{ + "type":"list", + "member":{ + "shape":"InventoryFilterValue", + "locationName":"FilterValue" }, - "exception":true + "max":20, + "min":1 }, - "InvalidInstanceInformationFilterValue":{ + "InventoryItem":{ "type":"structure", + "required":[ + "TypeName", + "SchemaVersion", + "CaptureTime" + ], "members":{ - "message":{"shape":"String"} - }, - "exception":true + "TypeName":{"shape":"InventoryItemTypeName"}, + "SchemaVersion":{"shape":"InventoryItemSchemaVersion"}, + "CaptureTime":{"shape":"InventoryItemCaptureTime"}, + "ContentHash":{"shape":"InventoryItemContentHash"}, + "Content":{"shape":"InventoryItemEntryList"} + } }, - "InvalidNextToken":{ + "InventoryItemAttribute":{ "type":"structure", + "required":[ + "Name", + "DataType" + ], "members":{ + "Name":{"shape":"InventoryItemAttributeName"}, + "DataType":{"shape":"InventoryAttributeDataType"} + } + }, + "InventoryItemAttributeList":{ + "type":"list", + "member":{ + "shape":"InventoryItemAttribute", + "locationName":"Attribute" }, - "exception":true + "max":50, + "min":1 }, - "InvalidNotificationConfig":{ - "type":"structure", - "members":{ - "Message":{"shape":"String"} + "InventoryItemAttributeName":{"type":"string"}, + "InventoryItemCaptureTime":{ + "type":"string", + "pattern":"^(20)[0-9][0-9]-(0[1-9]|1[012])-([12][0-9]|3[01]|0[1-9])(T)(2[0-3]|[0-1][0-9])(:[0-5][0-9])(:[0-5][0-9])(Z)$" + }, + "InventoryItemContentHash":{ + "type":"string", + "max":256 + }, + "InventoryItemEntry":{ + "type":"map", + "key":{"shape":"AttributeName"}, + "value":{"shape":"AttributeValue"}, + "max":50, + "min":0 + }, + "InventoryItemEntryList":{ + "type":"list", + "member":{"shape":"InventoryItemEntry"}, + "max":10000, + "min":0 + }, + "InventoryItemList":{ + "type":"list", + "member":{ + "shape":"InventoryItem", + "locationName":"Item" }, - "exception":true + "max":30, + "min":1 }, - "InvalidOutputFolder":{ + "InventoryItemSchema":{ "type":"structure", + "required":[ + "TypeName", + "Attributes" + ], "members":{ - }, - "exception":true + "TypeName":{"shape":"InventoryItemTypeName"}, + "Version":{"shape":"InventoryItemSchemaVersion"}, + "Attributes":{"shape":"InventoryItemAttributeList"} + } }, - "InvalidParameters":{ + "InventoryItemSchemaResultList":{ + "type":"list", + "member":{"shape":"InventoryItemSchema"} + }, + "InventoryItemSchemaVersion":{ + "type":"string", + "pattern":"^([0-9]{1,6})(\\.[0-9]{1,6})$" + }, + "InventoryItemTypeName":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^(AWS|Custom):.*$" + }, + "InventoryItemTypeNameFilter":{ + "type":"string", + "max":100, + "min":0 + }, + "InventoryQueryOperatorType":{ + "type":"string", + "enum":[ + "Equal", + "NotEqual", + "BeginWith", + "LessThan", + "GreaterThan" + ] + }, + "InventoryResultEntity":{ "type":"structure", "members":{ - "Message":{"shape":"String"} - }, - "exception":true + "Id":{"shape":"InventoryResultEntityId"}, + "Data":{"shape":"InventoryResultItemMap"} + } }, - "InvalidPermissionType":{ + "InventoryResultEntityId":{"type":"string"}, + "InventoryResultEntityList":{ + "type":"list", + "member":{ + "shape":"InventoryResultEntity", + "locationName":"Entity" + } + }, + "InventoryResultItem":{ "type":"structure", + "required":[ + "TypeName", + "SchemaVersion", + "Content" + ], "members":{ - "Message":{"shape":"String"} - }, - "exception":true + "TypeName":{"shape":"InventoryItemTypeName"}, + "SchemaVersion":{"shape":"InventoryItemSchemaVersion"}, + "CaptureTime":{"shape":"InventoryItemCaptureTime"}, + "ContentHash":{"shape":"InventoryItemContentHash"}, + "Content":{"shape":"InventoryItemEntryList"} + } }, - "InvalidResourceId":{ + "InventoryResultItemKey":{"type":"string"}, + "InventoryResultItemMap":{ + "type":"map", + "key":{"shape":"InventoryResultItemKey"}, + "value":{"shape":"InventoryResultItem"} + }, + "InvocationDoesNotExist":{ "type":"structure", "members":{ }, "exception":true }, - "InvalidResourceType":{ + "InvocationTraceOutput":{ + "type":"string", + "max":2500 + }, + "ItemContentMismatchException":{ "type":"structure", "members":{ + "TypeName":{"shape":"InventoryItemTypeName"}, + "Message":{"shape":"String"} }, "exception":true }, - "InvalidRole":{ + "ItemSizeLimitExceededException":{ "type":"structure", "members":{ + "TypeName":{"shape":"InventoryItemTypeName"}, "Message":{"shape":"String"} }, "exception":true }, - "InvocationTraceOutput":{ - "type":"string", - "max":2500 - }, "KeyList":{ "type":"list", "member":{"shape":"TagKey"} }, "ListAssociationsRequest":{ "type":"structure", - "required":["AssociationFilterList"], "members":{ "AssociationFilterList":{"shape":"AssociationFilterList"}, "MaxResults":{ @@ -1466,40 +3799,372 @@ "NextToken":{"shape":"NextToken"} } }, - "ListDocumentsRequest":{ + "ListDocumentVersionsRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"DocumentName"}, + "MaxResults":{ + "shape":"MaxResults", + "box":true + }, + "NextToken":{"shape":"NextToken"} + } + }, + "ListDocumentVersionsResult":{ + "type":"structure", + "members":{ + "DocumentVersions":{"shape":"DocumentVersionList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListDocumentsRequest":{ + "type":"structure", + "members":{ + "DocumentFilterList":{"shape":"DocumentFilterList"}, + "MaxResults":{ + "shape":"MaxResults", + "box":true + }, + "NextToken":{"shape":"NextToken"} + } + }, + "ListDocumentsResult":{ + "type":"structure", + "members":{ + "DocumentIdentifiers":{"shape":"DocumentIdentifierList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListInventoryEntriesRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "TypeName" + ], + "members":{ + "InstanceId":{"shape":"InstanceId"}, + "TypeName":{"shape":"InventoryItemTypeName"}, + "Filters":{"shape":"InventoryFilterList"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{ + "shape":"MaxResults", + "box":true + } + } + }, + "ListInventoryEntriesResult":{ + "type":"structure", + "members":{ + "TypeName":{"shape":"InventoryItemTypeName"}, + "InstanceId":{"shape":"InstanceId"}, + "SchemaVersion":{"shape":"InventoryItemSchemaVersion"}, + "CaptureTime":{"shape":"InventoryItemCaptureTime"}, + "Entries":{"shape":"InventoryItemEntryList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":[ + "ResourceType", + "ResourceId" + ], + "members":{ + "ResourceType":{"shape":"ResourceTypeForTagging"}, + "ResourceId":{"shape":"ResourceId"} + } + }, + "ListTagsForResourceResult":{ + "type":"structure", + "members":{ + "TagList":{"shape":"TagList"} + } + }, + "LoggingInfo":{ + "type":"structure", + "required":[ + "S3BucketName", + "S3Region" + ], + "members":{ + "S3BucketName":{"shape":"S3BucketName"}, + "S3KeyPrefix":{"shape":"S3KeyPrefix"}, + "S3Region":{"shape":"S3Region"} + } + }, + "MaintenanceWindowAllowUnassociatedTargets":{"type":"boolean"}, + "MaintenanceWindowCutoff":{ + "type":"integer", + "max":23, + "min":0 + }, + "MaintenanceWindowDurationHours":{ + "type":"integer", + "max":24, + "min":1 + }, + "MaintenanceWindowEnabled":{"type":"boolean"}, + "MaintenanceWindowExecution":{ + "type":"structure", + "members":{ + "WindowId":{"shape":"MaintenanceWindowId"}, + "WindowExecutionId":{"shape":"MaintenanceWindowExecutionId"}, + "Status":{"shape":"MaintenanceWindowExecutionStatus"}, + "StatusDetails":{"shape":"MaintenanceWindowExecutionStatusDetails"}, + "StartTime":{"shape":"DateTime"}, + "EndTime":{"shape":"DateTime"} + } + }, + "MaintenanceWindowExecutionId":{ + "type":"string", + "max":36, + "min":36, + "pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$" + }, + "MaintenanceWindowExecutionList":{ + "type":"list", + "member":{"shape":"MaintenanceWindowExecution"} + }, + "MaintenanceWindowExecutionStatus":{ + "type":"string", + "enum":[ + "PENDING", + "IN_PROGRESS", + "SUCCESS", + "FAILED", + "TIMED_OUT", + "CANCELLING", + "CANCELLED", + "SKIPPED_OVERLAPPING" + ] + }, + "MaintenanceWindowExecutionStatusDetails":{ + "type":"string", + "max":250, + "min":0 + }, + "MaintenanceWindowExecutionTaskExecutionId":{"type":"string"}, + "MaintenanceWindowExecutionTaskId":{ + "type":"string", + "max":36, + "min":36, + "pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$" + }, + "MaintenanceWindowExecutionTaskIdList":{ + "type":"list", + "member":{"shape":"MaintenanceWindowExecutionTaskId"} + }, + "MaintenanceWindowExecutionTaskIdentity":{ + "type":"structure", + "members":{ + "WindowExecutionId":{"shape":"MaintenanceWindowExecutionId"}, + "TaskExecutionId":{"shape":"MaintenanceWindowExecutionTaskId"}, + "Status":{"shape":"MaintenanceWindowExecutionStatus"}, + "StatusDetails":{"shape":"MaintenanceWindowExecutionStatusDetails"}, + "StartTime":{"shape":"DateTime"}, + "EndTime":{"shape":"DateTime"}, + "TaskArn":{"shape":"MaintenanceWindowTaskArn"}, + "TaskType":{"shape":"MaintenanceWindowTaskType"} + } + }, + "MaintenanceWindowExecutionTaskIdentityList":{ + "type":"list", + "member":{"shape":"MaintenanceWindowExecutionTaskIdentity"} + }, + "MaintenanceWindowExecutionTaskInvocationId":{ + "type":"string", + "max":36, + "min":36, + "pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$" + }, + "MaintenanceWindowExecutionTaskInvocationIdentity":{ + "type":"structure", + "members":{ + "WindowExecutionId":{"shape":"MaintenanceWindowExecutionId"}, + "TaskExecutionId":{"shape":"MaintenanceWindowExecutionTaskId"}, + "InvocationId":{"shape":"MaintenanceWindowExecutionTaskInvocationId"}, + "ExecutionId":{"shape":"MaintenanceWindowExecutionTaskExecutionId"}, + "Parameters":{"shape":"MaintenanceWindowExecutionTaskInvocationParameters"}, + "Status":{"shape":"MaintenanceWindowExecutionStatus"}, + "StatusDetails":{"shape":"MaintenanceWindowExecutionStatusDetails"}, + "StartTime":{"shape":"DateTime"}, + "EndTime":{"shape":"DateTime"}, + "OwnerInformation":{"shape":"OwnerInformation"}, + "WindowTargetId":{"shape":"MaintenanceWindowTaskTargetId"} + } + }, + "MaintenanceWindowExecutionTaskInvocationIdentityList":{ + "type":"list", + "member":{"shape":"MaintenanceWindowExecutionTaskInvocationIdentity"} + }, + "MaintenanceWindowExecutionTaskInvocationParameters":{ + "type":"string", + "sensitive":true + }, + "MaintenanceWindowFilter":{ + "type":"structure", + "members":{ + "Key":{"shape":"MaintenanceWindowFilterKey"}, + "Values":{"shape":"MaintenanceWindowFilterValues"} + } + }, + "MaintenanceWindowFilterKey":{ + "type":"string", + "max":128, + "min":1 + }, + "MaintenanceWindowFilterList":{ + "type":"list", + "member":{"shape":"MaintenanceWindowFilter"}, + "max":5, + "min":0 + }, + "MaintenanceWindowFilterValue":{ + "type":"string", + "max":256, + "min":1 + }, + "MaintenanceWindowFilterValues":{ + "type":"list", + "member":{"shape":"MaintenanceWindowFilterValue"} + }, + "MaintenanceWindowId":{ + "type":"string", + "max":20, + "min":20, + "pattern":"^mw-[0-9a-f]{17}$" + }, + "MaintenanceWindowIdentity":{ + "type":"structure", + "members":{ + "WindowId":{"shape":"MaintenanceWindowId"}, + "Name":{"shape":"MaintenanceWindowName"}, + "Enabled":{"shape":"MaintenanceWindowEnabled"}, + "Duration":{"shape":"MaintenanceWindowDurationHours"}, + "Cutoff":{"shape":"MaintenanceWindowCutoff"} + } + }, + "MaintenanceWindowIdentityList":{ + "type":"list", + "member":{"shape":"MaintenanceWindowIdentity"} + }, + "MaintenanceWindowMaxResults":{ + "type":"integer", + "max":100, + "min":10 + }, + "MaintenanceWindowName":{ + "type":"string", + "max":128, + "min":3, + "pattern":"^[a-zA-Z0-9_\\-.]{3,128}$" + }, + "MaintenanceWindowResourceType":{ + "type":"string", + "enum":["INSTANCE"] + }, + "MaintenanceWindowSchedule":{ + "type":"string", + "max":256, + "min":1 + }, + "MaintenanceWindowTarget":{ "type":"structure", "members":{ - "DocumentFilterList":{"shape":"DocumentFilterList"}, - "MaxResults":{ - "shape":"MaxResults", - "box":true - }, - "NextToken":{"shape":"NextToken"} + "WindowId":{"shape":"MaintenanceWindowId"}, + "WindowTargetId":{"shape":"MaintenanceWindowTargetId"}, + "ResourceType":{"shape":"MaintenanceWindowResourceType"}, + "Targets":{"shape":"Targets"}, + "OwnerInformation":{"shape":"OwnerInformation"} } }, - "ListDocumentsResult":{ - "type":"structure", - "members":{ - "DocumentIdentifiers":{"shape":"DocumentIdentifierList"}, - "NextToken":{"shape":"NextToken"} - } + "MaintenanceWindowTargetId":{ + "type":"string", + "max":36, + "min":36, + "pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$" }, - "ListTagsForResourceRequest":{ + "MaintenanceWindowTargetList":{ + "type":"list", + "member":{"shape":"MaintenanceWindowTarget"} + }, + "MaintenanceWindowTask":{ "type":"structure", - "required":[ - "ResourceType", - "ResourceId" - ], "members":{ - "ResourceType":{"shape":"ResourceTypeForTagging"}, - "ResourceId":{"shape":"ResourceId"} + "WindowId":{"shape":"MaintenanceWindowId"}, + "WindowTaskId":{"shape":"MaintenanceWindowTaskId"}, + "TaskArn":{"shape":"MaintenanceWindowTaskArn"}, + "Type":{"shape":"MaintenanceWindowTaskType"}, + "Targets":{"shape":"Targets"}, + "TaskParameters":{"shape":"MaintenanceWindowTaskParameters"}, + "Priority":{"shape":"MaintenanceWindowTaskPriority"}, + "LoggingInfo":{"shape":"LoggingInfo"}, + "ServiceRoleArn":{"shape":"ServiceRole"}, + "MaxConcurrency":{"shape":"VelocityConstraint"}, + "MaxErrors":{"shape":"VelocityConstraint"} } }, - "ListTagsForResourceResult":{ + "MaintenanceWindowTaskArn":{ + "type":"string", + "max":1600, + "min":1 + }, + "MaintenanceWindowTaskId":{ + "type":"string", + "max":36, + "min":36, + "pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$" + }, + "MaintenanceWindowTaskList":{ + "type":"list", + "member":{"shape":"MaintenanceWindowTask"} + }, + "MaintenanceWindowTaskParameterName":{ + "type":"string", + "max":255, + "min":1 + }, + "MaintenanceWindowTaskParameterValue":{ + "type":"string", + "max":255, + "min":1, + "sensitive":true + }, + "MaintenanceWindowTaskParameterValueExpression":{ "type":"structure", "members":{ - "TagList":{"shape":"TagList"} - } + "Values":{"shape":"MaintenanceWindowTaskParameterValueList"} + }, + "sensitive":true + }, + "MaintenanceWindowTaskParameterValueList":{ + "type":"list", + "member":{"shape":"MaintenanceWindowTaskParameterValue"}, + "sensitive":true + }, + "MaintenanceWindowTaskParameters":{ + "type":"map", + "key":{"shape":"MaintenanceWindowTaskParameterName"}, + "value":{"shape":"MaintenanceWindowTaskParameterValueExpression"}, + "sensitive":true + }, + "MaintenanceWindowTaskParametersList":{ + "type":"list", + "member":{"shape":"MaintenanceWindowTaskParameters"}, + "sensitive":true + }, + "MaintenanceWindowTaskPriority":{ + "type":"integer", + "min":0 + }, + "MaintenanceWindowTaskTargetId":{ + "type":"string", + "max":36 + }, + "MaintenanceWindowTaskType":{ + "type":"string", + "enum":["RUN_COMMAND"] }, "ManagedInstanceId":{ "type":"string", @@ -1541,6 +4206,11 @@ } }, "NextToken":{"type":"string"}, + "NormalStringMap":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"String"} + }, "NotificationArn":{"type":"string"}, "NotificationConfig":{ "type":"structure", @@ -1572,7 +4242,114 @@ "Invocation" ] }, + "OwnerInformation":{ + "type":"string", + "max":128, + "min":1, + "sensitive":true + }, + "PSParameterName":{ + "type":"string", + "max":1024, + "min":1, + "pattern":"^(?!^([aA][wW][sS]|[sS][sS][mM]))(?=^[a-zA-Z0-9_.-]*$).*$" + }, + "PSParameterValue":{ + "type":"string", + "max":1024, + "min":1, + "pattern":"^(?:(?!(\\{\\{.*\\}\\})).)*$" + }, + "Parameter":{ + "type":"structure", + "members":{ + "Name":{"shape":"PSParameterName"}, + "Type":{"shape":"ParameterType"}, + "Value":{"shape":"PSParameterValue"} + } + }, + "ParameterAlreadyExists":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "exception":true + }, + "ParameterDescription":{ + "type":"string", + "max":1024, + "min":1 + }, + "ParameterHistory":{ + "type":"structure", + "members":{ + "Name":{"shape":"PSParameterName"}, + "Type":{"shape":"ParameterType"}, + "KeyId":{"shape":"ParameterKeyId"}, + "LastModifiedDate":{"shape":"DateTime"}, + "LastModifiedUser":{"shape":"String"}, + "Description":{"shape":"ParameterDescription"}, + "Value":{"shape":"PSParameterValue"} + } + }, + "ParameterHistoryList":{ + "type":"list", + "member":{"shape":"ParameterHistory"} + }, + "ParameterKeyId":{ + "type":"string", + "max":256, + "min":1, + "pattern":"^([a-zA-Z0-9:/_-]+)$" + }, + "ParameterLimitExceeded":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "exception":true + }, + "ParameterList":{ + "type":"list", + "member":{"shape":"Parameter"} + }, + "ParameterMetadata":{ + "type":"structure", + "members":{ + "Name":{"shape":"PSParameterName"}, + "Type":{"shape":"ParameterType"}, + "KeyId":{"shape":"ParameterKeyId"}, + "LastModifiedDate":{"shape":"DateTime"}, + "LastModifiedUser":{"shape":"String"}, + "Description":{"shape":"ParameterDescription"} + } + }, + "ParameterMetadataList":{ + "type":"list", + "member":{"shape":"ParameterMetadata"} + }, "ParameterName":{"type":"string"}, + "ParameterNameList":{ + "type":"list", + "member":{"shape":"PSParameterName"}, + "max":10, + "min":1 + }, + "ParameterNotFound":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "exception":true + }, + "ParameterType":{ + "type":"string", + "enum":[ + "String", + "StringList", + "SecureString" + ] + }, "ParameterValue":{"type":"string"}, "ParameterValueList":{ "type":"list", @@ -1583,6 +4360,287 @@ "key":{"shape":"ParameterName"}, "value":{"shape":"ParameterValueList"} }, + "ParametersFilter":{ + "type":"structure", + "required":["Values"], + "members":{ + "Key":{"shape":"ParametersFilterKey"}, + "Values":{"shape":"ParametersFilterValueList"} + } + }, + "ParametersFilterKey":{ + "type":"string", + "enum":[ + "Name", + "Type", + "KeyId" + ] + }, + "ParametersFilterList":{ + "type":"list", + "member":{"shape":"ParametersFilter"} + }, + "ParametersFilterValue":{ + "type":"string", + "max":100, + "min":1 + }, + "ParametersFilterValueList":{ + "type":"list", + "member":{"shape":"ParametersFilterValue"}, + "max":50, + "min":1 + }, + "Patch":{ + "type":"structure", + "members":{ + "Id":{"shape":"PatchId"}, + "ReleaseDate":{"shape":"DateTime"}, + "Title":{"shape":"PatchTitle"}, + "Description":{"shape":"PatchDescription"}, + "ContentUrl":{"shape":"PatchContentUrl"}, + "Vendor":{"shape":"PatchVendor"}, + "ProductFamily":{"shape":"PatchProductFamily"}, + "Product":{"shape":"PatchProduct"}, + "Classification":{"shape":"PatchClassification"}, + "MsrcSeverity":{"shape":"PatchMsrcSeverity"}, + "KbNumber":{"shape":"PatchKbNumber"}, + "MsrcNumber":{"shape":"PatchMsrcNumber"}, + "Language":{"shape":"PatchLanguage"} + } + }, + "PatchBaselineIdentity":{ + "type":"structure", + "members":{ + "BaselineId":{"shape":"BaselineId"}, + "BaselineName":{"shape":"BaselineName"}, + "BaselineDescription":{"shape":"BaselineDescription"}, + "DefaultBaseline":{"shape":"DefaultBaseline"} + } + }, + "PatchBaselineIdentityList":{ + "type":"list", + "member":{"shape":"PatchBaselineIdentity"} + }, + "PatchBaselineMaxResults":{ + "type":"integer", + "max":100, + "min":1 + }, + "PatchClassification":{"type":"string"}, + "PatchComplianceData":{ + "type":"structure", + "required":[ + "Title", + "KBId", + "Classification", + "Severity", + "State", + "InstalledTime" + ], + "members":{ + "Title":{"shape":"PatchTitle"}, + "KBId":{"shape":"PatchKbNumber"}, + "Classification":{"shape":"PatchClassification"}, + "Severity":{"shape":"PatchSeverity"}, + "State":{"shape":"PatchComplianceDataState"}, + "InstalledTime":{"shape":"PatchInstalledTime"} + } + }, + "PatchComplianceDataList":{ + "type":"list", + "member":{"shape":"PatchComplianceData"} + }, + "PatchComplianceDataState":{ + "type":"string", + "enum":[ + "INSTALLED", + "INSTALLED_OTHER", + "MISSING", + "NOT_APPLICABLE", + "FAILED" + ] + }, + "PatchComplianceMaxResults":{ + "type":"integer", + "max":100, + "min":10 + }, + "PatchContentUrl":{"type":"string"}, + "PatchDeploymentStatus":{ + "type":"string", + "enum":[ + "APPROVED", + "PENDING_APPROVAL", + "EXPLICIT_APPROVED", + "EXPLICIT_REJECTED" + ] + }, + "PatchDescription":{"type":"string"}, + "PatchFailedCount":{"type":"integer"}, + "PatchFilter":{ + "type":"structure", + "required":[ + "Key", + "Values" + ], + "members":{ + "Key":{"shape":"PatchFilterKey"}, + "Values":{"shape":"PatchFilterValueList"} + } + }, + "PatchFilterGroup":{ + "type":"structure", + "required":["PatchFilters"], + "members":{ + "PatchFilters":{"shape":"PatchFilterList"} + } + }, + "PatchFilterKey":{ + "type":"string", + "enum":[ + "PRODUCT", + "CLASSIFICATION", + "MSRC_SEVERITY", + "PATCH_ID" + ] + }, + "PatchFilterList":{ + "type":"list", + "member":{"shape":"PatchFilter"}, + "max":4, + "min":0 + }, + "PatchFilterValue":{ + "type":"string", + "max":64, + "min":1 + }, + "PatchFilterValueList":{ + "type":"list", + "member":{"shape":"PatchFilterValue"}, + "max":20, + "min":1 + }, + "PatchGroup":{ + "type":"string", + "max":256, + "min":1, + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + }, + "PatchGroupList":{ + "type":"list", + "member":{"shape":"PatchGroup"} + }, + "PatchGroupPatchBaselineMapping":{ + "type":"structure", + "members":{ + "PatchGroup":{"shape":"PatchGroup"}, + "BaselineIdentity":{"shape":"PatchBaselineIdentity"} + } + }, + "PatchGroupPatchBaselineMappingList":{ + "type":"list", + "member":{"shape":"PatchGroupPatchBaselineMapping"} + }, + "PatchId":{ + "type":"string", + "pattern":"(^KB[0-9]{1,7}$)|(^MS[0-9]{2}\\-[0-9]{3}$)" + }, + "PatchIdList":{ + "type":"list", + "member":{"shape":"PatchId"}, + "max":50, + "min":0 + }, + "PatchInstalledCount":{"type":"integer"}, + "PatchInstalledOtherCount":{"type":"integer"}, + "PatchInstalledTime":{"type":"timestamp"}, + "PatchKbNumber":{"type":"string"}, + "PatchLanguage":{"type":"string"}, + "PatchList":{ + "type":"list", + "member":{"shape":"Patch"} + }, + "PatchMissingCount":{"type":"integer"}, + "PatchMsrcNumber":{"type":"string"}, + "PatchMsrcSeverity":{"type":"string"}, + "PatchNotApplicableCount":{"type":"integer"}, + "PatchOperationEndTime":{"type":"timestamp"}, + "PatchOperationStartTime":{"type":"timestamp"}, + "PatchOperationType":{ + "type":"string", + "enum":[ + "Scan", + "Install" + ] + }, + "PatchOrchestratorFilter":{ + "type":"structure", + "members":{ + "Key":{"shape":"PatchOrchestratorFilterKey"}, + "Values":{"shape":"PatchOrchestratorFilterValues"} + } + }, + "PatchOrchestratorFilterKey":{ + "type":"string", + "max":128, + "min":1 + }, + "PatchOrchestratorFilterList":{ + "type":"list", + "member":{"shape":"PatchOrchestratorFilter"}, + "max":5, + "min":0 + }, + "PatchOrchestratorFilterValue":{ + "type":"string", + "max":256, + "min":1 + }, + "PatchOrchestratorFilterValues":{ + "type":"list", + "member":{"shape":"PatchOrchestratorFilterValue"} + }, + "PatchProduct":{"type":"string"}, + "PatchProductFamily":{"type":"string"}, + "PatchRule":{ + "type":"structure", + "required":[ + "PatchFilterGroup", + "ApproveAfterDays" + ], + "members":{ + "PatchFilterGroup":{"shape":"PatchFilterGroup"}, + "ApproveAfterDays":{ + "shape":"ApproveAfterDays", + "box":true + } + } + }, + "PatchRuleGroup":{ + "type":"structure", + "required":["PatchRules"], + "members":{ + "PatchRules":{"shape":"PatchRuleList"} + } + }, + "PatchRuleList":{ + "type":"list", + "member":{"shape":"PatchRule"}, + "max":10, + "min":0 + }, + "PatchSeverity":{"type":"string"}, + "PatchStatus":{ + "type":"structure", + "members":{ + "DeploymentStatus":{"shape":"PatchDeploymentStatus"}, + "ApprovalDate":{"shape":"DateTime"} + } + }, + "PatchTitle":{"type":"string"}, + "PatchVendor":{"type":"string"}, "PingStatus":{ "type":"string", "enum":[ @@ -1605,6 +4663,138 @@ "locationName":"PlatformType" } }, + "PutInventoryRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "Items" + ], + "members":{ + "InstanceId":{"shape":"InstanceId"}, + "Items":{"shape":"InventoryItemList"} + } + }, + "PutInventoryResult":{ + "type":"structure", + "members":{ + } + }, + "PutParameterRequest":{ + "type":"structure", + "required":[ + "Name", + "Value", + "Type" + ], + "members":{ + "Name":{"shape":"PSParameterName"}, + "Description":{"shape":"ParameterDescription"}, + "Value":{"shape":"PSParameterValue"}, + "Type":{"shape":"ParameterType"}, + "KeyId":{"shape":"ParameterKeyId"}, + "Overwrite":{ + "shape":"Boolean", + "box":true + } + } + }, + "PutParameterResult":{ + "type":"structure", + "members":{ + } + }, + "RegisterDefaultPatchBaselineRequest":{ + "type":"structure", + "required":["BaselineId"], + "members":{ + "BaselineId":{"shape":"BaselineId"} + } + }, + "RegisterDefaultPatchBaselineResult":{ + "type":"structure", + "members":{ + "BaselineId":{"shape":"BaselineId"} + } + }, + "RegisterPatchBaselineForPatchGroupRequest":{ + "type":"structure", + "required":[ + "BaselineId", + "PatchGroup" + ], + "members":{ + "BaselineId":{"shape":"BaselineId"}, + "PatchGroup":{"shape":"PatchGroup"} + } + }, + "RegisterPatchBaselineForPatchGroupResult":{ + "type":"structure", + "members":{ + "BaselineId":{"shape":"BaselineId"}, + "PatchGroup":{"shape":"PatchGroup"} + } + }, + "RegisterTargetWithMaintenanceWindowRequest":{ + "type":"structure", + "required":[ + "WindowId", + "ResourceType", + "Targets" + ], + "members":{ + "WindowId":{"shape":"MaintenanceWindowId"}, + "ResourceType":{"shape":"MaintenanceWindowResourceType"}, + "Targets":{"shape":"Targets"}, + "OwnerInformation":{"shape":"OwnerInformation"}, + "ClientToken":{ + "shape":"ClientToken", + "idempotencyToken":true + } + } + }, + "RegisterTargetWithMaintenanceWindowResult":{ + "type":"structure", + "members":{ + "WindowTargetId":{"shape":"MaintenanceWindowTargetId"} + } + }, + "RegisterTaskWithMaintenanceWindowRequest":{ + "type":"structure", + "required":[ + "WindowId", + "Targets", + "TaskArn", + "ServiceRoleArn", + "TaskType", + "MaxConcurrency", + "MaxErrors" + ], + "members":{ + "WindowId":{"shape":"MaintenanceWindowId"}, + "Targets":{"shape":"Targets"}, + "TaskArn":{"shape":"MaintenanceWindowTaskArn"}, + "ServiceRoleArn":{"shape":"ServiceRole"}, + "TaskType":{"shape":"MaintenanceWindowTaskType"}, + "TaskParameters":{"shape":"MaintenanceWindowTaskParameters"}, + "Priority":{ + "shape":"MaintenanceWindowTaskPriority", + "box":true + }, + "MaxConcurrency":{"shape":"VelocityConstraint"}, + "MaxErrors":{"shape":"VelocityConstraint"}, + "LoggingInfo":{"shape":"LoggingInfo"}, + "ClientToken":{ + "shape":"ClientToken", + "idempotencyToken":true + } + } + }, + "RegisterTaskWithMaintenanceWindowResult":{ + "type":"structure", + "members":{ + "WindowTaskId":{"shape":"MaintenanceWindowTaskId"} + } + }, "RegistrationLimit":{ "type":"integer", "max":1000, @@ -1633,9 +4823,20 @@ "members":{ } }, - "ResourceId":{ - "type":"string", - "pattern":"^mi-[0-9a-f]{17}$" + "ResourceId":{"type":"string"}, + "ResourceInUseException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "ResourceLimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true }, "ResourceType":{ "type":"string", @@ -1647,9 +4848,29 @@ }, "ResourceTypeForTagging":{ "type":"string", - "enum":["ManagedInstance"] + "enum":[ + "ManagedInstance", + "MaintenanceWindow", + "Parameter" + ] }, "ResponseCode":{"type":"integer"}, + "ResultAttribute":{ + "type":"structure", + "required":["TypeName"], + "members":{ + "TypeName":{"shape":"InventoryItemTypeName"} + } + }, + "ResultAttributeList":{ + "type":"list", + "member":{ + "shape":"ResultAttribute", + "locationName":"ResultAttribute" + }, + "max":1, + "min":1 + }, "S3BucketName":{ "type":"string", "max":63, @@ -1659,14 +4880,36 @@ "type":"string", "max":500 }, + "S3OutputLocation":{ + "type":"structure", + "members":{ + "OutputS3Region":{"shape":"S3Region"}, + "OutputS3BucketName":{"shape":"S3BucketName"}, + "OutputS3KeyPrefix":{"shape":"S3KeyPrefix"} + } + }, + "S3OutputUrl":{ + "type":"structure", + "members":{ + "OutputUrl":{"shape":"Url"} + } + }, + "S3Region":{ + "type":"string", + "max":20, + "min":3 + }, + "ScheduleExpression":{ + "type":"string", + "max":256, + "min":1 + }, "SendCommandRequest":{ "type":"structure", - "required":[ - "InstanceIds", - "DocumentName" - ], + "required":["DocumentName"], "members":{ "InstanceIds":{"shape":"InstanceIdList"}, + "Targets":{"shape":"Targets"}, "DocumentName":{"shape":"DocumentARN"}, "DocumentHash":{"shape":"DocumentHash"}, "DocumentHashType":{"shape":"DocumentHashType"}, @@ -1676,8 +4919,11 @@ }, "Comment":{"shape":"Comment"}, "Parameters":{"shape":"Parameters"}, + "OutputS3Region":{"shape":"S3Region"}, "OutputS3BucketName":{"shape":"S3BucketName"}, "OutputS3KeyPrefix":{"shape":"S3KeyPrefix"}, + "MaxConcurrency":{"shape":"VelocityConstraint"}, + "MaxErrors":{"shape":"VelocityConstraint"}, "ServiceRoleArn":{"shape":"ServiceRole"}, "NotificationConfig":{"shape":"NotificationConfig"} } @@ -1689,21 +4935,98 @@ } }, "ServiceRole":{"type":"string"}, + "SnapshotDownloadUrl":{"type":"string"}, + "SnapshotId":{ + "type":"string", + "max":36, + "min":36, + "pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" + }, + "StandardErrorContent":{ + "type":"string", + "max":8000 + }, + "StandardOutputContent":{ + "type":"string", + "max":24000 + }, + "StartAutomationExecutionRequest":{ + "type":"structure", + "required":["DocumentName"], + "members":{ + "DocumentName":{"shape":"DocumentARN"}, + "DocumentVersion":{ + "shape":"DocumentVersion", + "box":true + }, + "Parameters":{"shape":"AutomationParameterMap"} + } + }, + "StartAutomationExecutionResult":{ + "type":"structure", + "members":{ + "AutomationExecutionId":{"shape":"AutomationExecutionId"} + } + }, "StatusAdditionalInfo":{ "type":"string", "max":1024 }, + "StatusDetails":{ + "type":"string", + "max":100, + "min":0 + }, "StatusMessage":{ "type":"string", - "max":1024 + "max":1024, + "min":1 }, + "StatusName":{"type":"string"}, "StatusUnchanged":{ "type":"structure", "members":{ }, "exception":true }, + "StepExecution":{ + "type":"structure", + "members":{ + "StepName":{"shape":"String"}, + "Action":{"shape":"AutomationActionName"}, + "ExecutionStartTime":{"shape":"DateTime"}, + "ExecutionEndTime":{"shape":"DateTime"}, + "StepStatus":{"shape":"AutomationExecutionStatus"}, + "ResponseCode":{"shape":"String"}, + "Inputs":{"shape":"NormalStringMap"}, + "Outputs":{"shape":"AutomationParameterMap"}, + "Response":{"shape":"String"}, + "FailureMessage":{"shape":"String"} + } + }, + "StepExecutionList":{ + "type":"list", + "member":{"shape":"StepExecution"}, + "max":100, + "min":0 + }, + "StopAutomationExecutionRequest":{ + "type":"structure", + "required":["AutomationExecutionId"], + "members":{ + "AutomationExecutionId":{"shape":"AutomationExecutionId"} + } + }, + "StopAutomationExecutionResult":{ + "type":"structure", + "members":{ + } + }, "String":{"type":"string"}, + "StringDateTime":{ + "type":"string", + "pattern":"^([\\-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24\\:?00)([\\.,]\\d(?!:))?)?(\\17[0-5]\\d([\\.,]\\d)?)?([zZ]|([\\-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$" + }, "StringList":{ "type":"list", "member":{"shape":"String"} @@ -1735,17 +5058,71 @@ "min":1, "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" }, + "Target":{ + "type":"structure", + "members":{ + "Key":{"shape":"TargetKey"}, + "Values":{"shape":"TargetValues"} + } + }, + "TargetCount":{"type":"integer"}, + "TargetKey":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^[\\p{L}\\p{Z}\\p{N}_.:/=\\-@]*$" + }, + "TargetValue":{"type":"string"}, + "TargetValues":{ + "type":"list", + "member":{"shape":"TargetValue"}, + "max":50, + "min":0 + }, + "Targets":{ + "type":"list", + "member":{"shape":"Target"}, + "max":5, + "min":0 + }, "TimeoutSeconds":{ "type":"integer", "max":2592000, "min":30 }, + "TooManyTagsError":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "TooManyUpdates":{ "type":"structure", "members":{ }, "exception":true }, + "TotalSizeLimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "UnsupportedInventorySchemaVersionException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "UnsupportedParameterType":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "exception":true + }, "UnsupportedPlatformType":{ "type":"structure", "members":{ @@ -1753,6 +5130,23 @@ }, "exception":true }, + "UpdateAssociationRequest":{ + "type":"structure", + "required":["AssociationId"], + "members":{ + "AssociationId":{"shape":"AssociationId"}, + "Parameters":{"shape":"Parameters"}, + "DocumentVersion":{"shape":"DocumentVersion"}, + "ScheduleExpression":{"shape":"ScheduleExpression"}, + "OutputLocation":{"shape":"InstanceAssociationOutputLocation"} + } + }, + "UpdateAssociationResult":{ + "type":"structure", + "members":{ + "AssociationDescription":{"shape":"AssociationDescription"} + } + }, "UpdateAssociationStatusRequest":{ "type":"structure", "required":[ @@ -1772,6 +5166,78 @@ "AssociationDescription":{"shape":"AssociationDescription"} } }, + "UpdateDocumentDefaultVersionRequest":{ + "type":"structure", + "required":[ + "Name", + "DocumentVersion" + ], + "members":{ + "Name":{"shape":"DocumentName"}, + "DocumentVersion":{"shape":"DocumentVersionNumber"} + } + }, + "UpdateDocumentDefaultVersionResult":{ + "type":"structure", + "members":{ + "Description":{"shape":"DocumentDefaultVersionDescription"} + } + }, + "UpdateDocumentRequest":{ + "type":"structure", + "required":[ + "Content", + "Name" + ], + "members":{ + "Content":{"shape":"DocumentContent"}, + "Name":{"shape":"DocumentName"}, + "DocumentVersion":{"shape":"DocumentVersion"} + } + }, + "UpdateDocumentResult":{ + "type":"structure", + "members":{ + "DocumentDescription":{"shape":"DocumentDescription"} + } + }, + "UpdateMaintenanceWindowRequest":{ + "type":"structure", + "required":["WindowId"], + "members":{ + "WindowId":{"shape":"MaintenanceWindowId"}, + "Name":{"shape":"MaintenanceWindowName"}, + "Schedule":{"shape":"MaintenanceWindowSchedule"}, + "Duration":{ + "shape":"MaintenanceWindowDurationHours", + "box":true + }, + "Cutoff":{ + "shape":"MaintenanceWindowCutoff", + "box":true + }, + "AllowUnassociatedTargets":{ + "shape":"MaintenanceWindowAllowUnassociatedTargets", + "box":true + }, + "Enabled":{ + "shape":"MaintenanceWindowEnabled", + "box":true + } + } + }, + "UpdateMaintenanceWindowResult":{ + "type":"structure", + "members":{ + "WindowId":{"shape":"MaintenanceWindowId"}, + "Name":{"shape":"MaintenanceWindowName"}, + "Schedule":{"shape":"MaintenanceWindowSchedule"}, + "Duration":{"shape":"MaintenanceWindowDurationHours"}, + "Cutoff":{"shape":"MaintenanceWindowCutoff"}, + "AllowUnassociatedTargets":{"shape":"MaintenanceWindowAllowUnassociatedTargets"}, + "Enabled":{"shape":"MaintenanceWindowEnabled"} + } + }, "UpdateManagedInstanceRoleRequest":{ "type":"structure", "required":[ @@ -1788,6 +5254,40 @@ "members":{ } }, + "UpdatePatchBaselineRequest":{ + "type":"structure", + "required":["BaselineId"], + "members":{ + "BaselineId":{"shape":"BaselineId"}, + "Name":{"shape":"BaselineName"}, + "GlobalFilters":{"shape":"PatchFilterGroup"}, + "ApprovalRules":{"shape":"PatchRuleGroup"}, + "ApprovedPatches":{"shape":"PatchIdList"}, + "RejectedPatches":{"shape":"PatchIdList"}, + "Description":{"shape":"BaselineDescription"} + } + }, + "UpdatePatchBaselineResult":{ + "type":"structure", + "members":{ + "BaselineId":{"shape":"BaselineId"}, + "Name":{"shape":"BaselineName"}, + "GlobalFilters":{"shape":"PatchFilterGroup"}, + "ApprovalRules":{"shape":"PatchRuleGroup"}, + "ApprovedPatches":{"shape":"PatchIdList"}, + "RejectedPatches":{"shape":"PatchIdList"}, + "CreatedDate":{"shape":"DateTime"}, + "ModifiedDate":{"shape":"DateTime"}, + "Description":{"shape":"BaselineDescription"} + } + }, + "Url":{"type":"string"}, + "VelocityConstraint":{ + "type":"string", + "max":7, + "min":1, + "pattern":"^[1-9]\\d*$|[0-9][%]|[1-9][0-9][%]|[1][0][0][%]|[0-9]?" + }, "Version":{ "type":"string", "pattern":"^[0-9]{1,6}(\\.[0-9]{1,6}){2,3}$" diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/docs-2.json index ef38cc153..9731a0b64 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/docs-2.json @@ -1,33 +1,87 @@ { "version": "2.0", - "service": "

Amazon EC2 Simple Systems Manager (SSM) enables you to remotely manage the configuration of your Amazon EC2 instances, virtual machines (VMs), or servers in your on-premises environment or in an environment provided by other cloud providers using scripts, commands, or the Amazon EC2 console. SSM includes an on-demand solution called Amazon EC2 Run Command and a lightweight instance configuration solution called SSM Config.

This references is intended to be used with the EC2 Run Command User Guide for Linux or Windows.

You must register your on-premises servers and VMs through an activation process before you can configure them using Run Command. Registered servers and VMs are called managed instances. For more information, see Setting Up Run Command On Managed Instances (On-Premises Servers and VMs) on Linux or Setting Up Run Command On Managed Instances (On-Premises Servers and VMs) on Windows.

Run Command

Run Command provides an on-demand experience for executing commands. You can use pre-defined SSM documents to perform the actions listed later in this section, or you can create your own documents. With these documents, you can remotely configure your instances by sending commands using the Commands page in the Amazon EC2 console, AWS Tools for Windows PowerShell, the AWS CLI, or AWS SDKs.

Run Command reports the status of the command execution for each instance targeted by a command. You can also audit the command execution to understand who executed commands, when, and what changes were made. By switching between different SSM documents, you can quickly configure your instances with different types of commands. To get started with Run Command, verify that your environment meets the prerequisites for remotely running commands on EC2 instances (Linux or Windows).

SSM Config

SSM Config is a lightweight instance configuration solution. SSM Config is currently only available for Windows instances. With SSM Config, you can specify a setup configuration for your instances. SSM Config is similar to EC2 User Data, which is another way of running one-time scripts or applying settings during instance launch. SSM Config is an extension of this capability. Using SSM documents, you can specify which actions the system should perform on your instances, including which applications to install, which AWS Directory Service directory to join, which Microsoft PowerShell modules to install, etc. If an instance is missing one or more of these configurations, the system makes those changes. By default, the system checks every five minutes to see if there is a new configuration to apply as defined in a new SSM document. If so, the system updates the instances accordingly. In this way, you can remotely maintain a consistent configuration baseline on your instances. SSM Config is available using the AWS CLI or the AWS Tools for Windows PowerShell. For more information, see Managing Windows Instance Configuration.

SSM Config and Run Command include the following pre-defined documents.

Linux

  • AWS-RunShellScript to run shell scripts

  • AWS-UpdateSSMAgent to update the Amazon SSM agent

Windows

  • AWS-JoinDirectoryServiceDomain to join an AWS Directory

  • AWS-RunPowerShellScript to run PowerShell commands or scripts

  • AWS-UpdateEC2Config to update the EC2Config service

  • AWS-ConfigureWindowsUpdate to configure Windows Update settings

  • AWS-InstallApplication to install, repair, or uninstall software using an MSI package

  • AWS-InstallPowerShellModule to install PowerShell modules

  • AWS-ConfigureCloudWatch to configure Amazon CloudWatch Logs to monitor applications and systems

  • AWS-ListWindowsInventory to collect information about an EC2 instance running in Windows.

  • AWS-FindWindowsUpdates to scan an instance and determines which updates are missing.

  • AWS-InstallMissingWindowsUpdates to install missing updates on your EC2 instance.

  • AWS-InstallSpecificWindowsUpdates to install one or more specific updates.

The commands or scripts specified in SSM documents run with administrative privilege on your instances because the Amazon SSM agent runs as root on Linux and the EC2Config service runs in the Local System account on Windows. If a user has permission to execute any of the pre-defined SSM documents (any document that begins with AWS-*) then that user also has administrator access to the instance. Delegate access to Run Command and SSM Config judiciously. This becomes extremely important if you create your own SSM documents. Amazon Web Services does not provide guidance about how to create secure SSM documents. You create SSM documents and delegate access to Run Command at your own risk. As a security best practice, we recommend that you assign access to \"AWS-*\" documents, especially the AWS-RunShellScript document on Linux and the AWS-RunPowerShellScript document on Windows, to trusted administrators only. You can create SSM documents for specific tasks and delegate access to non-administrators.

For information about creating and sharing SSM documents, see the following topics in the SSM User Guide:

", + "service": "

Amazon EC2 Systems Manager is a collection of capabilities that helps you automate management tasks such as collecting system inventory, applying operating system (OS) patches, automating the creation of Amazon Machine Images (AMIs), and configuring operating systems (OSs) and applications at scale. Systems Manager works with managed instances: Amazon EC2 instances and servers or virtual machines (VMs) in your on-premises environment that are configured for Systems Manager.

This references is intended to be used with the EC2 Systems Manager User Guide (Linux) (Windows).

To get started, verify prerequisites and configure managed instances (Linux) (Windows).

", "operations": { - "AddTagsToResource": "

Adds or overwrites one or more tags for the specified resource. Tags are metadata that you assign to your managed instances. Tags enable you to categorize your managed instances in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value, both of which you define. For example, you could define a set of tags for your account's managed instances that helps you track each instance's owner and stack level. For example: Key=Owner and Value=DbAdmin, SysAdmin, or Dev. Or Key=Stack and Value=Production, Pre-Production, or Test. Each resource can have a maximum of 10 tags.

We recommend that you devise a set of tag keys that meets your needs for each resource type. Using a consistent set of tag keys makes it easier for you to manage your resources. You can search and filter the resources based on the tags you add. Tags don't have any semantic meaning to Amazon EC2 and are interpreted strictly as a string of characters.

For more information about tags, see Tagging Your Amazon EC2 Resources in the Amazon EC2 User Guide.

", + "AddTagsToResource": "

Adds or overwrites one or more tags for the specified resource. Tags are metadata that you assign to your managed instances. Tags enable you to categorize your managed instances in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value, both of which you define. For example, you could define a set of tags for your account's managed instances that helps you track each instance's owner and stack level. For example: Key=Owner and Value=DbAdmin, SysAdmin, or Dev. Or Key=Stack and Value=Production, Pre-Production, or Test. Each resource can have a maximum of 10 tags.

We recommend that you devise a set of tag keys that meets your needs for each resource type. Using a consistent set of tag keys makes it easier for you to manage your resources. You can search and filter the resources based on the tags you add. Tags don't have any semantic meaning to Amazon EC2 and are interpreted strictly as a string of characters.

For more information about tags, see Tagging Your Amazon EC2 Resources in the Amazon EC2 User Guide.

", "CancelCommand": "

Attempts to cancel the command specified by the Command ID. There is no guarantee that the command will be terminated and the underlying process stopped.

", "CreateActivation": "

Registers your on-premises server or virtual machine with Amazon EC2 so that you can manage these resources using Run Command. An on-premises server or virtual machine that has been registered with EC2 is called a managed instance. For more information about activations, see Setting Up Managed Instances (Linux) or Setting Up Managed Instances (Windows) in the Amazon EC2 User Guide.

", - "CreateAssociation": "

Associates the specified SSM document with the specified instance.

When you associate an SSM document with an instance, the configuration agent on the instance (SSM agent for Linux and EC2Config service for Windows) processes the document and configures the instance as specified.

If you associate a document with an instance that already has an associated document, the system throws the AssociationAlreadyExists exception.

", - "CreateAssociationBatch": "

Associates the specified SSM document with the specified instances.

When you associate an SSM document with an instance, the configuration agent on the instance (SSM agent for Linux and EC2Config service for Windows) processes the document and configures the instance as specified.

If you associate a document with an instance that already has an associated document, the system throws the AssociationAlreadyExists exception.

", + "CreateAssociation": "

Associates the specified SSM document with the specified instances or targets.

When you associate an SSM document with one or more instances using instance IDs or tags, the SSM agent running on the instance processes the document and configures the instance as specified.

If you associate a document with an instance that already has an associated document, the system throws the AssociationAlreadyExists exception.

", + "CreateAssociationBatch": "

Associates the specified SSM document with the specified instances or targets.

When you associate an SSM document with one or more instances using instance IDs or tags, the SSM agent running on the instance processes the document and configures the instance as specified.

If you associate a document with an instance that already has an associated document, the system throws the AssociationAlreadyExists exception.

", "CreateDocument": "

Creates an SSM document.

After you create an SSM document, you can use CreateAssociation to associate it with one or more running instances.

", + "CreateMaintenanceWindow": "

Creates a new Maintenance Window.

", + "CreatePatchBaseline": "

Creates a patch baseline.

", "DeleteActivation": "

Deletes an activation. You are not required to delete an activation. If you delete an activation, you can no longer use it to register additional managed instances. Deleting an activation does not de-register managed instances. You must manually de-register managed instances.

", "DeleteAssociation": "

Disassociates the specified SSM document from the specified instance.

When you disassociate an SSM document from an instance, it does not change the configuration of the instance. To change the configuration state of an instance after you disassociate a document, you must create a new document with the desired configuration and associate it with the instance.

", "DeleteDocument": "

Deletes the SSM document and all instance associations to the document.

Before you delete the SSM document, we recommend that you use DeleteAssociation to disassociate all instances that are associated with the document.

", + "DeleteMaintenanceWindow": "

Deletes a Maintenance Window.

", + "DeleteParameter": "

Delete a parameter from the system.

", + "DeletePatchBaseline": "

Deletes a patch baseline.

", "DeregisterManagedInstance": "

Removes the server or virtual machine from the list of registered servers. You can reregister the instance again at any time. If you don’t plan to use Run Command on the server, we suggest uninstalling the SSM agent first.

", + "DeregisterPatchBaselineForPatchGroup": "

Removes a patch group from a patch baseline.

", + "DeregisterTargetFromMaintenanceWindow": "

Removes a target from a Maintenance Window.

", + "DeregisterTaskFromMaintenanceWindow": "

Removes a task from a Maintenance Window.

", "DescribeActivations": "

Details about the activation, including: the date and time the activation was created, the expiration date, the IAM role assigned to the instances in the activation, and the number of instances activated by this registration.

", "DescribeAssociation": "

Describes the associations for the specified SSM document or instance.

", + "DescribeAutomationExecutions": "

Provides details about all active and terminated Automation executions.

", + "DescribeAvailablePatches": "

Lists all patches that could possibly be included in a patch baseline.

", "DescribeDocument": "

Describes the specified SSM document.

", "DescribeDocumentPermission": "

Describes the permissions for an SSM document. If you created the document, you are the owner. If a document is shared, it can either be shared privately (by specifying a user’s AWS account ID) or publicly (All).

", + "DescribeEffectiveInstanceAssociations": "

All associations for the instance(s).

", + "DescribeEffectivePatchesForPatchBaseline": "

Retrieves the current effective patches (the patch and the approval state) for the specified patch baseline.

", + "DescribeInstanceAssociationsStatus": "

The status of the associations for the instance(s).

", "DescribeInstanceInformation": "

Describes one or more of your instances. You can use this to get information about instances like the operating system platform, the SSM agent version (Linux), status etc. If you specify one or more instance IDs, it returns information for those instances. If you do not specify instance IDs, it returns information for all your instances. If you specify an instance ID that is not valid or an instance that you do not own, you receive an error.

", + "DescribeInstancePatchStates": "

Retrieves the high-level patch state of one or more instances.

", + "DescribeInstancePatchStatesForPatchGroup": "

Retrieves the high-level patch state for the instances in the specified patch group.

", + "DescribeInstancePatches": "

Retrieves information about the patches on the specified instance and their state relative to the patch baseline being used for the instance.

", + "DescribeMaintenanceWindowExecutionTaskInvocations": "

Retrieves the individual task executions (one per target) for a particular task executed as part of a Maintenance Window execution.

", + "DescribeMaintenanceWindowExecutionTasks": "

For a given Maintenance Window execution, lists the tasks that were executed.

", + "DescribeMaintenanceWindowExecutions": "

Lists the executions of a Maintenance Window (meaning, information about when the Maintenance Window was scheduled to be active and information about tasks registered and run with the Maintenance Window).

", + "DescribeMaintenanceWindowTargets": "

Lists the targets registered with the Maintenance Window.

", + "DescribeMaintenanceWindowTasks": "

Lists the tasks in a Maintenance Window.

", + "DescribeMaintenanceWindows": "

Retrieves the Maintenance Windows in an AWS account.

", + "DescribeParameters": "

Get information about a parameter.

", + "DescribePatchBaselines": "

Lists the patch baselines in your AWS account.

", + "DescribePatchGroupState": "

Returns high-level aggregated patch compliance state for a patch group.

", + "DescribePatchGroups": "

Lists all patch groups that have been registered with patch baselines.

", + "GetAutomationExecution": "

Get detailed information about a particular Automation execution.

", + "GetCommandInvocation": "

Returns detailed information about command execution for an invocation or plugin.

", + "GetDefaultPatchBaseline": "

Retrieves the default patch baseline.

", + "GetDeployablePatchSnapshotForInstance": "

Retrieves the current snapshot for the patch baseline the instance uses. This API is primarily used by the AWS-ApplyPatchBaseline Systems Manager document.

", "GetDocument": "

Gets the contents of the specified SSM document.

", + "GetInventory": "

Query inventory information.

", + "GetInventorySchema": "

Return a list of inventory type names for the account, or return a list of attribute names for a specific Inventory item type.

", + "GetMaintenanceWindow": "

Retrieves a Maintenance Window.

", + "GetMaintenanceWindowExecution": "

Retrieves details about a specific task executed as part of a Maintenance Window execution.

", + "GetMaintenanceWindowExecutionTask": "

Retrieves the details about a specific task executed as part of a Maintenance Window execution.

", + "GetParameterHistory": "

Query a list of all parameters used by the AWS account.

", + "GetParameters": "

Get a list of parameters used by the AWS account.>

", + "GetPatchBaseline": "

Retrieves information about a patch baseline.

", + "GetPatchBaselineForPatchGroup": "

Retrieves the patch baseline that should be used for the specified patch group.

", "ListAssociations": "

Lists the associations for the specified SSM document or instance.

", "ListCommandInvocations": "

An invocation is copy of a command sent to a specific instance. A command can apply to one or more instances. A command invocation applies to one instance. For example, if a user executes SendCommand against three instances, then a command invocation is created for each requested instance ID. ListCommandInvocations provide status about command execution.

", "ListCommands": "

Lists the commands requested by users of the AWS account.

", + "ListDocumentVersions": "

List all versions for a document.

", "ListDocuments": "

Describes one or more of your SSM documents.

", + "ListInventoryEntries": "

A list of inventory items returned by the request.

", "ListTagsForResource": "

Returns a list of the tags assigned to the specified resource.

", "ModifyDocumentPermission": "

Share a document publicly or privately. If you share a document privately, you must specify the AWS user account IDs for those people who can use the document. If you share a document publicly, you must specify All as the account ID.

", + "PutInventory": "

Bulk update custom inventory items on one more instance. The request adds an inventory item, if it doesn't already exist, or updates an inventory item, if it does exist.

", + "PutParameter": "

Add one or more paramaters to the system.

", + "RegisterDefaultPatchBaseline": "

Defines the default patch baseline.

", + "RegisterPatchBaselineForPatchGroup": "

Registers a patch baseline for a patch group.

", + "RegisterTargetWithMaintenanceWindow": "

Registers a target with a Maintenance Window.

", + "RegisterTaskWithMaintenanceWindow": "

Adds a new task to a Maintenance Window.

", "RemoveTagsFromResource": "

Removes all tags from the specified resource.

", "SendCommand": "

Executes commands on one or more remote instances.

", + "StartAutomationExecution": "

Initiates execution of an Automation document.

", + "StopAutomationExecution": "

Stop an Automation that is currently executing.

", + "UpdateAssociation": "

Updates an association. You can only update the document version, schedule, parameters, and Amazon S3 output of an association.

", "UpdateAssociationStatus": "

Updates the status of the SSM document associated with the specified instance.

", - "UpdateManagedInstanceRole": "

Assigns or changes an Amazon Identity and Access Management (IAM) role to the managed instance.

" + "UpdateDocument": "

The document you want to update.

", + "UpdateDocumentDefaultVersion": "

Set the default version of a document.

", + "UpdateMaintenanceWindow": "

Updates an existing Maintenance Window. Only specified parameters are modified.

", + "UpdateManagedInstanceRole": "

Assigns or changes an Amazon Identity and Access Management (IAM) role to the managed instance.

", + "UpdatePatchBaseline": "

Modifies an existing patch baseline. Fields not specified in the request are left unchanged.

" }, "shapes": { "AccountId": { @@ -66,10 +120,10 @@ "ActivationId": { "base": null, "refs": { - "Activation$ActivationId": "

The ID created by SSM when you submitted the activation.

", + "Activation$ActivationId": "

The ID created by Systems Manager when you submitted the activation.

", "CreateActivationResult$ActivationId": "

The ID number generated by the system when it processed the activation. The activation ID functions like a user name.

", "DeleteActivationRequest$ActivationId": "

The ID of the activation that you want to delete.

", - "InstanceInformation$ActivationId": "

The activation ID created by SSM when the server or VM was registered.

" + "InstanceInformation$ActivationId": "

The activation ID created by Systems Manager when the server or VM was registered.

" } }, "ActivationList": { @@ -88,6 +142,23 @@ "refs": { } }, + "AgentErrorCode": { + "base": null, + "refs": { + "InstanceAssociationStatusInfo$ErrorCode": "

An error code returned by the request to create the association.

" + } + }, + "AlreadyExistsException": { + "base": "

Error returned if an attempt is made to register a patch group with a patch baseline that is already registered with a different patch baseline.

", + "refs": { + } + }, + "ApproveAfterDays": { + "base": null, + "refs": { + "PatchRule$ApproveAfterDays": "

The number of days after the release date of each patch matched by the rule the patch is marked as approved in the patch baseline.

" + } + }, "AssociatedInstances": { "base": "

You must disassociate an SSM document from all instances before you can delete it.

", "refs": { @@ -110,6 +181,7 @@ "AssociationDescriptionList$member": null, "CreateAssociationResult$AssociationDescription": "

Information about the association.

", "DescribeAssociationResult$AssociationDescription": "

Information about the association.

", + "UpdateAssociationResult$AssociationDescription": "

The description of the association that was updated.

", "UpdateAssociationStatusResult$AssociationDescription": "

Information about the association.

" } }, @@ -148,6 +220,18 @@ "AssociationFilter$value": "

The filter value.

" } }, + "AssociationId": { + "base": null, + "refs": { + "Association$AssociationId": "

The ID created by the system when you create an association. An association is a binding between a document and a set of targets with a schedule.

", + "AssociationDescription$AssociationId": "

The association ID.

", + "DeleteAssociationRequest$AssociationId": "

The association ID that you want to delete.

", + "DescribeAssociationRequest$AssociationId": "

The association ID for which you want information.

", + "InstanceAssociation$AssociationId": "

The association ID.

", + "InstanceAssociationStatusInfo$AssociationId": "

The association ID.

", + "UpdateAssociationRequest$AssociationId": "

The ID of the association you want to update.

" + } + }, "AssociationLimitExceeded": { "base": "

You can have at most 2,000 active associations.

", "refs": { @@ -159,6 +243,13 @@ "ListAssociationsResult$Associations": "

The associations.

" } }, + "AssociationOverview": { + "base": "

Information about the association.

", + "refs": { + "Association$Overview": "

Information about the association.

", + "AssociationDescription$Overview": "

Information about the association.

" + } + }, "AssociationStatus": { "base": "

Describes an association status.

", "refs": { @@ -166,12 +257,193 @@ "UpdateAssociationStatusRequest$AssociationStatus": "

The association status.

" } }, + "AssociationStatusAggregatedCount": { + "base": null, + "refs": { + "AssociationOverview$AssociationStatusAggregatedCount": "

Returns the number of targets for the association status. For example, if you created an association with two instances, and one of them was successful, this would return the count of instances by status.

" + } + }, "AssociationStatusName": { "base": null, "refs": { "AssociationStatus$Name": "

The status.

" } }, + "AttributeName": { + "base": null, + "refs": { + "InventoryItemEntry$key": null + } + }, + "AttributeValue": { + "base": null, + "refs": { + "InventoryItemEntry$value": null + } + }, + "AutomationActionName": { + "base": null, + "refs": { + "StepExecution$Action": "

The action this step performs. The action determines the behavior of the step.

" + } + }, + "AutomationDefinitionNotFoundException": { + "base": "

An Automation document with the specified name could not be found.

", + "refs": { + } + }, + "AutomationDefinitionVersionNotFoundException": { + "base": "

An Automation document with the specified name and version could not be found.

", + "refs": { + } + }, + "AutomationExecution": { + "base": "

Detailed information about the current state of an individual Automation execution.

", + "refs": { + "GetAutomationExecutionResult$AutomationExecution": "

Detailed information about the current state of an automation execution.

" + } + }, + "AutomationExecutionFilter": { + "base": "

A filter used to match specific automation executions. This is used to limit the scope of Automation execution information returned.

", + "refs": { + "AutomationExecutionFilterList$member": null + } + }, + "AutomationExecutionFilterKey": { + "base": null, + "refs": { + "AutomationExecutionFilter$Key": "

The aspect of the Automation execution information that should be limited.

" + } + }, + "AutomationExecutionFilterList": { + "base": null, + "refs": { + "DescribeAutomationExecutionsRequest$Filters": "

Filters used to limit the scope of executions that are requested.

" + } + }, + "AutomationExecutionFilterValue": { + "base": null, + "refs": { + "AutomationExecutionFilterValueList$member": null + } + }, + "AutomationExecutionFilterValueList": { + "base": null, + "refs": { + "AutomationExecutionFilter$Values": "

The values used to limit the execution information associated with the filter's key.

" + } + }, + "AutomationExecutionId": { + "base": null, + "refs": { + "AutomationExecution$AutomationExecutionId": "

The execution ID.

", + "AutomationExecutionMetadata$AutomationExecutionId": "

The execution ID.

", + "GetAutomationExecutionRequest$AutomationExecutionId": "

The unique identifier for an existing automation execution to examine. The execution ID is returned by StartAutomationExecution when the execution of an Automation document is initiated.

", + "StartAutomationExecutionResult$AutomationExecutionId": "

The unique ID of a newly scheduled automation execution.

", + "StopAutomationExecutionRequest$AutomationExecutionId": "

The execution ID of the Automation to stop.

" + } + }, + "AutomationExecutionLimitExceededException": { + "base": "

The number of simultaneously running Automation executions exceeded the allowable limit.

", + "refs": { + } + }, + "AutomationExecutionMetadata": { + "base": "

Details about a specific Automation execution.

", + "refs": { + "AutomationExecutionMetadataList$member": null + } + }, + "AutomationExecutionMetadataList": { + "base": null, + "refs": { + "DescribeAutomationExecutionsResult$AutomationExecutionMetadataList": "

The list of details about each automation execution which has occurred which matches the filter specification, if any.

" + } + }, + "AutomationExecutionNotFoundException": { + "base": "

There is no automation execution information for the requested automation execution ID.

", + "refs": { + } + }, + "AutomationExecutionStatus": { + "base": null, + "refs": { + "AutomationExecution$AutomationExecutionStatus": "

The execution status of the Automation.

", + "AutomationExecutionMetadata$AutomationExecutionStatus": "

The status of the execution. Valid values include: Running, Succeeded, Failed, Timed out, or Cancelled.

", + "StepExecution$StepStatus": "

The execution status for this step. Valid values include: Pending, InProgress, Success, Cancelled, Failed, and TimedOut.

" + } + }, + "AutomationParameterKey": { + "base": null, + "refs": { + "AutomationParameterMap$key": null + } + }, + "AutomationParameterMap": { + "base": null, + "refs": { + "AutomationExecution$Parameters": "

The key-value map of execution parameters, which were supplied when calling StartAutomationExecution.

", + "AutomationExecution$Outputs": "

The list of execution outputs as defined in the automation document.

", + "AutomationExecutionMetadata$Outputs": "

The list of execution outputs as defined in the Automation document.

", + "StartAutomationExecutionRequest$Parameters": "

A key-value map of execution parameters, which match the declared parameters in the Automation document.

", + "StepExecution$Outputs": "

Returned values from the execution of the step.

" + } + }, + "AutomationParameterValue": { + "base": null, + "refs": { + "AutomationParameterValueList$member": null + } + }, + "AutomationParameterValueList": { + "base": null, + "refs": { + "AutomationParameterMap$value": null + } + }, + "BaselineDescription": { + "base": null, + "refs": { + "CreatePatchBaselineRequest$Description": "

A description of the patch baseline.

", + "GetPatchBaselineResult$Description": "

A description of the patch baseline.

", + "PatchBaselineIdentity$BaselineDescription": "

The description of the patch baseline.

", + "UpdatePatchBaselineRequest$Description": "

A description of the patch baseline.

", + "UpdatePatchBaselineResult$Description": "

A description of the Patch Baseline.

" + } + }, + "BaselineId": { + "base": null, + "refs": { + "CreatePatchBaselineResult$BaselineId": "

The ID of the created patch baseline.

", + "DeletePatchBaselineRequest$BaselineId": "

The ID of the patch baseline to delete.

", + "DeletePatchBaselineResult$BaselineId": "

The ID of the deleted patch baseline.

", + "DeregisterPatchBaselineForPatchGroupRequest$BaselineId": "

The ID of the patch baseline to deregister the patch group from.

", + "DeregisterPatchBaselineForPatchGroupResult$BaselineId": "

The ID of the patch baseline the patch group was deregistered from.

", + "DescribeEffectivePatchesForPatchBaselineRequest$BaselineId": "

The ID of the patch baseline to retrieve the effective patches for.

", + "GetDefaultPatchBaselineResult$BaselineId": "

The ID of the default patch baseline.

", + "GetPatchBaselineForPatchGroupResult$BaselineId": "

The ID of the patch baseline that should be used for the patch group.

", + "GetPatchBaselineRequest$BaselineId": "

The ID of the patch baseline to retrieve.

", + "GetPatchBaselineResult$BaselineId": "

The ID of the retrieved patch baseline.

", + "InstancePatchState$BaselineId": "

The ID of the patch baseline used to patch the instance.

", + "PatchBaselineIdentity$BaselineId": "

The ID of the patch baseline.

", + "RegisterDefaultPatchBaselineRequest$BaselineId": "

The ID of the patch baseline that should be the default patch baseline.

", + "RegisterDefaultPatchBaselineResult$BaselineId": "

The ID of the default patch baseline.

", + "RegisterPatchBaselineForPatchGroupRequest$BaselineId": "

The ID of the patch baseline to register the patch group with.

", + "RegisterPatchBaselineForPatchGroupResult$BaselineId": "

The ID of the patch baseline the patch group was registered with.

", + "UpdatePatchBaselineRequest$BaselineId": "

The ID of the patch baseline to update.

", + "UpdatePatchBaselineResult$BaselineId": "

The ID of the deleted patch baseline.

" + } + }, + "BaselineName": { + "base": null, + "refs": { + "CreatePatchBaselineRequest$Name": "

The name of the patch baseline.

", + "GetPatchBaselineResult$Name": "

The name of the patch baseline.

", + "PatchBaselineIdentity$BaselineName": "

The name of the patch baseline.

", + "UpdatePatchBaselineRequest$Name": "

The name of the patch baseline.

", + "UpdatePatchBaselineResult$Name": "

The name of the patch baseline.

" + } + }, "BatchErrorMessage": { "base": null, "refs": { @@ -182,8 +454,12 @@ "base": null, "refs": { "Activation$Expired": "

Whether or not the activation is expired.

", + "DocumentVersionInfo$IsDefaultVersion": "

An identifier for the default version of the document.

", + "GetParameterHistoryRequest$WithDecryption": "

Return decrypted values for secure string parameters. This flag is ignored for String and StringList parameter types.

", + "GetParametersRequest$WithDecryption": "

Return decrypted secure string value. Return decrypted values for secure string parameters. This flag is ignored for String and StringList parameter types.

", "InstanceInformation$IsLatestVersion": "

Indicates whether latest version of the SSM agent is running on your instance.

", - "ListCommandInvocationsRequest$Details": "

(Optional) If set this returns the response of the command executions and any command output. By default this is set to False.

" + "ListCommandInvocationsRequest$Details": "

(Optional) If set this returns the response of the command executions and any command output. By default this is set to False.

", + "PutParameterRequest$Overwrite": "

Overwrite an existing parameter.

" } }, "CancelCommandRequest": { @@ -196,11 +472,20 @@ "refs": { } }, + "ClientToken": { + "base": null, + "refs": { + "CreateMaintenanceWindowRequest$ClientToken": "

User-provided idempotency token.

", + "CreatePatchBaselineRequest$ClientToken": "

Caller-provided idempotency token.

", + "RegisterTargetWithMaintenanceWindowRequest$ClientToken": "

User-provided idempotency token.

", + "RegisterTaskWithMaintenanceWindowRequest$ClientToken": "

User-provided idempotency token.

" + } + }, "Command": { "base": "

Describes a command request.

", "refs": { "CommandList$member": null, - "SendCommandResult$Command": "

The request as it was received by SSM. Also provides the command ID which can be used future references to this request.

" + "SendCommandResult$Command": "

The request as it was received by Systems Manager. Also provides the command ID which can be used future references to this request.

" } }, "CommandFilter": { @@ -234,6 +519,8 @@ "CancelCommandRequest$CommandId": "

The ID of the command you want to cancel.

", "Command$CommandId": "

A unique identifier for this command.

", "CommandInvocation$CommandId": "

The command against which this invocation was requested.

", + "GetCommandInvocationRequest$CommandId": "

(Required) The parent command ID of the invocation plugin.

", + "GetCommandInvocationResult$CommandId": "

The parent command ID of the invocation plugin.

", "ListCommandInvocationsRequest$CommandId": "

(Optional) The invocations for a specific command ID.

", "ListCommandsRequest$CommandId": "

(Optional) If provided, lists only the specified command.

" } @@ -253,7 +540,8 @@ "CommandInvocationStatus": { "base": null, "refs": { - "CommandInvocation$Status": "

Whether or not the invocation succeeded, failed, or is pending.

" + "CommandInvocation$Status": "

Whether or not the invocation succeeded, failed, or is pending.

", + "GetCommandInvocationResult$Status": "

The status of the parent command for this invocation. This status can be different than StatusDetails.

" } }, "CommandList": { @@ -284,7 +572,9 @@ "CommandPluginName": { "base": null, "refs": { - "CommandPlugin$Name": "

The name of the plugin. Must be one of the following: aws:updateAgent, aws:domainjoin, aws:applications, aws:runPowerShellScript, aws:psmodule, aws:cloudWatch, aws:runShellScript, or aws:updateSSMAgent.

" + "CommandPlugin$Name": "

The name of the plugin. Must be one of the following: aws:updateAgent, aws:domainjoin, aws:applications, aws:runPowerShellScript, aws:psmodule, aws:cloudWatch, aws:runShellScript, or aws:updateSSMAgent.

", + "GetCommandInvocationRequest$PluginName": "

(Optional) The name of the plugin for which you want detailed results. If the SSM document contains only one plugin, the name can be omitted and the details will be returned.

", + "GetCommandInvocationResult$PluginName": "

The name of the plugin for which you want detailed results. For example, aws:RunShellScript is a plugin.

" } }, "CommandPluginOutput": { @@ -310,9 +600,16 @@ "refs": { "Command$Comment": "

User-specified information about the command, such as a brief description of what the command should do.

", "CommandInvocation$Comment": "

User-specified information about the command, such as a brief description of what the command should do.

", + "GetCommandInvocationResult$Comment": "

The comment text for the command.

", "SendCommandRequest$Comment": "

User-specified information about the command, such as a brief description of what the command should do.

" } }, + "CompletedCount": { + "base": null, + "refs": { + "Command$CompletedCount": "

The number of targets for which the command invocation reached a terminal state. Terminal states include the following: Success, Failed, Execution Timed Out, Delivery Timed Out, Canceled, Terminated, or Undeliverable.

" + } + }, "ComputerName": { "base": null, "refs": { @@ -372,25 +669,90 @@ "refs": { } }, + "CreateMaintenanceWindowRequest": { + "base": null, + "refs": { + } + }, + "CreateMaintenanceWindowResult": { + "base": null, + "refs": { + } + }, + "CreatePatchBaselineRequest": { + "base": null, + "refs": { + } + }, + "CreatePatchBaselineResult": { + "base": null, + "refs": { + } + }, "CreatedDate": { "base": null, "refs": { "Activation$CreatedDate": "

The date the activation was created.

" } }, + "CustomSchemaCountLimitExceededException": { + "base": "

You have exceeded the limit for custom schemas. Delete one or more custom schemas and try again.

", + "refs": { + } + }, "DateTime": { "base": null, "refs": { + "Association$LastExecutionDate": "

The date on which the association was last run.

", "AssociationDescription$Date": "

The date when the association was made.

", + "AssociationDescription$LastUpdateAssociationDate": "

The date when the association was last updated.

", + "AssociationDescription$LastExecutionDate": "

The date on which the association was last run.

", + "AssociationDescription$LastSuccessfulExecutionDate": "

The last date on which the association was successfully run.

", "AssociationStatus$Date": "

The date when the status changed.

", + "AutomationExecution$ExecutionStartTime": "

The time the execution started.

", + "AutomationExecution$ExecutionEndTime": "

The time the execution finished.

", + "AutomationExecutionMetadata$ExecutionStartTime": "

The time the execution started.>

", + "AutomationExecutionMetadata$ExecutionEndTime": "

The time the execution finished. This is not populated if the execution is still in progress.

", "Command$ExpiresAfter": "

If this time is reached and the command has not already started executing, it will not execute. Calculated based on the ExpiresAfter user input provided as part of the SendCommand API.

", "Command$RequestedDateTime": "

The date and time the command was requested.

", "CommandInvocation$RequestedDateTime": "

The time and date the request was sent to this instance.

", "CommandPlugin$ResponseStartDateTime": "

The time the plugin started executing.

", "CommandPlugin$ResponseFinishDateTime": "

The time the plugin stopped executing. Could stop prematurely if, for example, a cancel command was sent.

", "DocumentDescription$CreatedDate": "

The date when the SSM document was created.

", - "InstanceInformation$LastPingDateTime": "

The date and time when agent last pinged SSM service.

", - "InstanceInformation$RegistrationDate": "

The date the server or VM was registered with AWS as a managed instance.

" + "DocumentVersionInfo$CreatedDate": "

The date the document was created.

", + "GetMaintenanceWindowExecutionResult$StartTime": "

The time the Maintenance Window started executing.

", + "GetMaintenanceWindowExecutionResult$EndTime": "

The time the Maintenance Window finished executing.

", + "GetMaintenanceWindowExecutionTaskResult$StartTime": "

The time the task execution started.

", + "GetMaintenanceWindowExecutionTaskResult$EndTime": "

The time the task execution completed.

", + "GetMaintenanceWindowResult$CreatedDate": "

The date the Maintenance Window was created.

", + "GetMaintenanceWindowResult$ModifiedDate": "

The date the Maintenance Window was last modified.

", + "GetPatchBaselineResult$CreatedDate": "

The date the patch baseline was created.

", + "GetPatchBaselineResult$ModifiedDate": "

The date the patch baseline was last modified.

", + "InstanceAssociationStatusInfo$ExecutionDate": "

The date the instance association executed.

", + "InstanceInformation$LastPingDateTime": "

The date and time when agent last pinged Systems Manager service.

", + "InstanceInformation$RegistrationDate": "

The date the server or VM was registered with AWS as a managed instance.

", + "InstanceInformation$LastAssociationExecutionDate": "

The date the association was last executed.

", + "InstanceInformation$LastSuccessfulAssociationExecutionDate": "

The last date the association was successfully run.

", + "MaintenanceWindowExecution$StartTime": "

The time the execution started.

", + "MaintenanceWindowExecution$EndTime": "

The time the execution finished.

", + "MaintenanceWindowExecutionTaskIdentity$StartTime": "

The time the task execution started.

", + "MaintenanceWindowExecutionTaskIdentity$EndTime": "

The time the task execution finished.

", + "MaintenanceWindowExecutionTaskInvocationIdentity$StartTime": "

The time the invocation started.

", + "MaintenanceWindowExecutionTaskInvocationIdentity$EndTime": "

The time the invocation finished.

", + "ParameterHistory$LastModifiedDate": "

Date the parameter was last changed or updated.

", + "ParameterMetadata$LastModifiedDate": "

Date the parameter was last changed or updated.

", + "Patch$ReleaseDate": "

The date the patch was released.

", + "PatchStatus$ApprovalDate": "

The date the patch was approved (or will be approved if the status is PENDING_APPROVAL).

", + "StepExecution$ExecutionStartTime": "

If a step has begun execution, this contains the time the step started. If the step is in Pending status, this field is not populated.

", + "StepExecution$ExecutionEndTime": "

If a step has finished execution, this contains the time the execution ended. If the step has not yet concluded, this field is not populated.

", + "UpdatePatchBaselineResult$CreatedDate": "

The date when the patch baseline was created.

", + "UpdatePatchBaselineResult$ModifiedDate": "

The date when the patch baseline was last modified.

" + } + }, + "DefaultBaseline": { + "base": null, + "refs": { + "PatchBaselineIdentity$DefaultBaseline": "

Whether this is the default baseline.

" } }, "DefaultInstanceName": { @@ -430,670 +792,2595 @@ "refs": { } }, - "DeregisterManagedInstanceRequest": { + "DeleteMaintenanceWindowRequest": { "base": null, "refs": { } }, - "DeregisterManagedInstanceResult": { + "DeleteMaintenanceWindowResult": { "base": null, "refs": { } }, - "DescribeActivationsFilter": { - "base": "

Filter for the DescribeActivation API.

", + "DeleteParameterRequest": { + "base": null, "refs": { - "DescribeActivationsFilterList$member": null } }, - "DescribeActivationsFilterKeys": { + "DeleteParameterResult": { "base": null, "refs": { - "DescribeActivationsFilter$FilterKey": "

The name of the filter.

" } }, - "DescribeActivationsFilterList": { + "DeletePatchBaselineRequest": { "base": null, "refs": { - "DescribeActivationsRequest$Filters": "

A filter to view information about your activations.

" } }, - "DescribeActivationsRequest": { + "DeletePatchBaselineResult": { "base": null, "refs": { } }, - "DescribeActivationsResult": { + "DeregisterManagedInstanceRequest": { "base": null, "refs": { } }, - "DescribeAssociationRequest": { + "DeregisterManagedInstanceResult": { "base": null, "refs": { } }, - "DescribeAssociationResult": { + "DeregisterPatchBaselineForPatchGroupRequest": { "base": null, "refs": { } }, - "DescribeDocumentPermissionRequest": { + "DeregisterPatchBaselineForPatchGroupResult": { "base": null, "refs": { } }, - "DescribeDocumentPermissionResponse": { + "DeregisterTargetFromMaintenanceWindowRequest": { "base": null, "refs": { } }, - "DescribeDocumentRequest": { + "DeregisterTargetFromMaintenanceWindowResult": { "base": null, "refs": { } }, - "DescribeDocumentResult": { + "DeregisterTaskFromMaintenanceWindowRequest": { "base": null, "refs": { } }, - "DescribeInstanceInformationRequest": { + "DeregisterTaskFromMaintenanceWindowResult": { "base": null, "refs": { } }, - "DescribeInstanceInformationResult": { - "base": null, + "DescribeActivationsFilter": { + "base": "

Filter for the DescribeActivation API.

", "refs": { + "DescribeActivationsFilterList$member": null } }, - "DescriptionInDocument": { + "DescribeActivationsFilterKeys": { "base": null, "refs": { - "DocumentDescription$Description": "

A description of the document.

" + "DescribeActivationsFilter$FilterKey": "

The name of the filter.

" } }, - "DocumentARN": { + "DescribeActivationsFilterList": { "base": null, "refs": { - "DescribeDocumentRequest$Name": "

The name of the SSM document.

", - "DocumentDescription$Name": "

The name of the SSM document.

", - "DocumentIdentifier$Name": "

The name of the SSM document.

", - "GetDocumentRequest$Name": "

The name of the SSM document.

", - "GetDocumentResult$Name": "

The name of the SSM document.

", - "SendCommandRequest$DocumentName": "

Required. The name of the SSM document to execute. This can be an SSM public document or a custom document.

" + "DescribeActivationsRequest$Filters": "

A filter to view information about your activations.

" } }, - "DocumentAlreadyExists": { - "base": "

The specified SSM document already exists.

", + "DescribeActivationsRequest": { + "base": null, "refs": { } }, - "DocumentContent": { + "DescribeActivationsResult": { "base": null, "refs": { - "CreateDocumentRequest$Content": "

A valid JSON string.

", - "GetDocumentResult$Content": "

The contents of the SSM document.

" } }, - "DocumentDescription": { - "base": "

Describes an SSM document.

", + "DescribeAssociationRequest": { + "base": null, "refs": { - "CreateDocumentResult$DocumentDescription": "

Information about the SSM document.

", - "DescribeDocumentResult$Document": "

Information about the SSM document.

" } }, - "DocumentFilter": { - "base": "

Describes a filter.

", + "DescribeAssociationResult": { + "base": null, "refs": { - "DocumentFilterList$member": null } }, - "DocumentFilterKey": { + "DescribeAutomationExecutionsRequest": { "base": null, "refs": { - "DocumentFilter$key": "

The name of the filter.

" } }, - "DocumentFilterList": { + "DescribeAutomationExecutionsResult": { "base": null, "refs": { - "ListDocumentsRequest$DocumentFilterList": "

One or more filters. Use a filter to return a more specific list of results.

" } }, - "DocumentFilterValue": { + "DescribeAvailablePatchesRequest": { "base": null, "refs": { - "DocumentFilter$value": "

The value of the filter.

" } }, - "DocumentHash": { + "DescribeAvailablePatchesResult": { "base": null, "refs": { - "DocumentDescription$Hash": "

The Sha256 or Sha1 hash created by the system when the document was created.

Sha1 hashes have been deprecated.

", - "SendCommandRequest$DocumentHash": "

The Sha256 or Sha1 hash created by the system when the document was created.

Sha1 hashes have been deprecated.

" } }, - "DocumentHashType": { + "DescribeDocumentPermissionRequest": { "base": null, "refs": { - "DocumentDescription$HashType": "

Sha256 or Sha1.

Sha1 hashes have been deprecated.

", - "SendCommandRequest$DocumentHashType": "

Sha256 or Sha1.

Sha1 hashes have been deprecated.

" } }, - "DocumentIdentifier": { - "base": "

Describes the name of an SSM document.

", + "DescribeDocumentPermissionResponse": { + "base": null, "refs": { - "DocumentIdentifierList$member": null } }, - "DocumentIdentifierList": { + "DescribeDocumentRequest": { "base": null, "refs": { - "ListDocumentsResult$DocumentIdentifiers": "

The names of the SSM documents.

" } }, - "DocumentLimitExceeded": { - "base": "

You can have at most 200 active SSM documents.

", + "DescribeDocumentResult": { + "base": null, "refs": { } }, - "DocumentName": { + "DescribeEffectiveInstanceAssociationsRequest": { "base": null, "refs": { - "Association$Name": "

The name of the SSM document.

", - "AssociationDescription$Name": "

The name of the SSM document.

", - "Command$DocumentName": "

The name of the SSM document requested for execution.

", - "CommandInvocation$DocumentName": "

The document name that was requested for execution.

", - "CreateAssociationBatchRequestEntry$Name": "

The name of the configuration document.

", - "CreateAssociationRequest$Name": "

The name of the SSM document.

", - "CreateDocumentRequest$Name": "

A name for the SSM document.

", - "DeleteAssociationRequest$Name": "

The name of the SSM document.

", - "DeleteDocumentRequest$Name": "

The name of the SSM document.

", - "DescribeAssociationRequest$Name": "

The name of the SSM document.

", - "DescribeDocumentPermissionRequest$Name": "

The name of the document for which you are the owner.

", - "ModifyDocumentPermissionRequest$Name": "

The name of the document that you want to share.

", - "UpdateAssociationStatusRequest$Name": "

The name of the SSM document.

" } }, - "DocumentOwner": { + "DescribeEffectiveInstanceAssociationsResult": { "base": null, "refs": { - "DocumentDescription$Owner": "

The AWS user account of the person who created the document.

", - "DocumentIdentifier$Owner": "

The AWS user account of the person who created the document.

" } }, - "DocumentParameter": { - "base": "

Parameters specified in the SSM document that execute on the server when the command is run.

", + "DescribeEffectivePatchesForPatchBaselineRequest": { + "base": null, "refs": { - "DocumentParameterList$member": null } }, - "DocumentParameterDefaultValue": { + "DescribeEffectivePatchesForPatchBaselineResult": { "base": null, "refs": { - "DocumentParameter$DefaultValue": "

If specified, the default values for the parameters. Parameters without a default value are required. Parameters with a default value are optional.

" } }, - "DocumentParameterDescrption": { + "DescribeInstanceAssociationsStatusRequest": { "base": null, "refs": { - "DocumentParameter$Description": "

A description of what the parameter does, how to use it, the default value, and whether or not the parameter is optional.

" } }, - "DocumentParameterList": { + "DescribeInstanceAssociationsStatusResult": { "base": null, "refs": { - "DocumentDescription$Parameters": "

A description of the parameters for a document.

" } }, - "DocumentParameterName": { + "DescribeInstanceInformationRequest": { "base": null, "refs": { - "DocumentParameter$Name": "

The name of the parameter.

" } }, - "DocumentParameterType": { + "DescribeInstanceInformationResult": { "base": null, "refs": { - "DocumentParameter$Type": "

The type of parameter. The type can be either “String” or “StringList”.

" } }, - "DocumentPermissionLimit": { - "base": "

The document cannot be shared with more AWS user accounts. You can share a document with a maximum of 20 accounts. You can publicly share up to five documents. If you need to increase this limit, contact AWS Support.

", + "DescribeInstancePatchStatesForPatchGroupRequest": { + "base": null, "refs": { } }, - "DocumentPermissionType": { + "DescribeInstancePatchStatesForPatchGroupResult": { "base": null, "refs": { - "DescribeDocumentPermissionRequest$PermissionType": "

The permission type for the document. The permission type can be Share.

", - "ModifyDocumentPermissionRequest$PermissionType": "

The permission type for the document. The permission type can be Share.

" + } + }, + "DescribeInstancePatchStatesRequest": { + "base": null, + "refs": { + } + }, + "DescribeInstancePatchStatesResult": { + "base": null, + "refs": { + } + }, + "DescribeInstancePatchesRequest": { + "base": null, + "refs": { + } + }, + "DescribeInstancePatchesResult": { + "base": null, + "refs": { + } + }, + "DescribeMaintenanceWindowExecutionTaskInvocationsRequest": { + "base": null, + "refs": { + } + }, + "DescribeMaintenanceWindowExecutionTaskInvocationsResult": { + "base": null, + "refs": { + } + }, + "DescribeMaintenanceWindowExecutionTasksRequest": { + "base": null, + "refs": { + } + }, + "DescribeMaintenanceWindowExecutionTasksResult": { + "base": null, + "refs": { + } + }, + "DescribeMaintenanceWindowExecutionsRequest": { + "base": null, + "refs": { + } + }, + "DescribeMaintenanceWindowExecutionsResult": { + "base": null, + "refs": { + } + }, + "DescribeMaintenanceWindowTargetsRequest": { + "base": null, + "refs": { + } + }, + "DescribeMaintenanceWindowTargetsResult": { + "base": null, + "refs": { + } + }, + "DescribeMaintenanceWindowTasksRequest": { + "base": null, + "refs": { + } + }, + "DescribeMaintenanceWindowTasksResult": { + "base": null, + "refs": { + } + }, + "DescribeMaintenanceWindowsRequest": { + "base": null, + "refs": { + } + }, + "DescribeMaintenanceWindowsResult": { + "base": null, + "refs": { + } + }, + "DescribeParametersRequest": { + "base": null, + "refs": { + } + }, + "DescribeParametersResult": { + "base": null, + "refs": { + } + }, + "DescribePatchBaselinesRequest": { + "base": null, + "refs": { + } + }, + "DescribePatchBaselinesResult": { + "base": null, + "refs": { + } + }, + "DescribePatchGroupStateRequest": { + "base": null, + "refs": { + } + }, + "DescribePatchGroupStateResult": { + "base": null, + "refs": { + } + }, + "DescribePatchGroupsRequest": { + "base": null, + "refs": { + } + }, + "DescribePatchGroupsResult": { + "base": null, + "refs": { + } + }, + "DescriptionInDocument": { + "base": null, + "refs": { + "DocumentDescription$Description": "

A description of the document.

" + } + }, + "DocumentARN": { + "base": null, + "refs": { + "DescribeDocumentRequest$Name": "

The name of the SSM document.

", + "DocumentDescription$Name": "

The name of the SSM document.

", + "DocumentIdentifier$Name": "

The name of the SSM document.

", + "GetDocumentRequest$Name": "

The name of the SSM document.

", + "GetDocumentResult$Name": "

The name of the SSM document.

", + "SendCommandRequest$DocumentName": "

Required. The name of the SSM document to execute. This can be an SSM public document or a custom document.

", + "StartAutomationExecutionRequest$DocumentName": "

The name of the Automation document to use for this execution.

" + } + }, + "DocumentAlreadyExists": { + "base": "

The specified SSM document already exists.

", + "refs": { + } + }, + "DocumentContent": { + "base": null, + "refs": { + "CreateDocumentRequest$Content": "

A valid JSON string.

", + "GetDocumentResult$Content": "

The contents of the SSM document.

", + "InstanceAssociation$Content": "

The content of the association document for the instance(s).

", + "UpdateDocumentRequest$Content": "

The content in a document that you want to update.

" + } + }, + "DocumentDefaultVersionDescription": { + "base": "

A default version of a document.

", + "refs": { + "UpdateDocumentDefaultVersionResult$Description": "

The description of a custom document that you want to set as the default version.

" + } + }, + "DocumentDescription": { + "base": "

Describes an SSM document.

", + "refs": { + "CreateDocumentResult$DocumentDescription": "

Information about the SSM document.

", + "DescribeDocumentResult$Document": "

Information about the SSM document.

", + "UpdateDocumentResult$DocumentDescription": "

A description of the document that was updated.

" + } + }, + "DocumentFilter": { + "base": "

Describes a filter.

", + "refs": { + "DocumentFilterList$member": null + } + }, + "DocumentFilterKey": { + "base": null, + "refs": { + "DocumentFilter$key": "

The name of the filter.

" + } + }, + "DocumentFilterList": { + "base": null, + "refs": { + "ListDocumentsRequest$DocumentFilterList": "

One or more filters. Use a filter to return a more specific list of results.

" + } + }, + "DocumentFilterValue": { + "base": null, + "refs": { + "DocumentFilter$value": "

The value of the filter.

" + } + }, + "DocumentHash": { + "base": null, + "refs": { + "DocumentDescription$Hash": "

The Sha256 or Sha1 hash created by the system when the document was created.

Sha1 hashes have been deprecated.

", + "SendCommandRequest$DocumentHash": "

The Sha256 or Sha1 hash created by the system when the document was created.

Sha1 hashes have been deprecated.

" + } + }, + "DocumentHashType": { + "base": null, + "refs": { + "DocumentDescription$HashType": "

Sha256 or Sha1.

Sha1 hashes have been deprecated.

", + "SendCommandRequest$DocumentHashType": "

Sha256 or Sha1.

Sha1 hashes have been deprecated.

" + } + }, + "DocumentIdentifier": { + "base": "

Describes the name of an SSM document.

", + "refs": { + "DocumentIdentifierList$member": null + } + }, + "DocumentIdentifierList": { + "base": null, + "refs": { + "ListDocumentsResult$DocumentIdentifiers": "

The names of the SSM documents.

" + } + }, + "DocumentLimitExceeded": { + "base": "

You can have at most 200 active SSM documents.

", + "refs": { + } + }, + "DocumentName": { + "base": null, + "refs": { + "Association$Name": "

The name of the SSM document.

", + "AssociationDescription$Name": "

The name of the SSM document.

", + "AutomationExecution$DocumentName": "

The name of the Automation document used during the execution.

", + "AutomationExecutionMetadata$DocumentName": "

The name of the Automation document used during execution.

", + "Command$DocumentName": "

The name of the SSM document requested for execution.

", + "CommandInvocation$DocumentName": "

The document name that was requested for execution.

", + "CreateAssociationBatchRequestEntry$Name": "

The name of the configuration document.

", + "CreateAssociationRequest$Name": "

The name of the SSM document.

", + "CreateDocumentRequest$Name": "

A name for the SSM document.

", + "DeleteAssociationRequest$Name": "

The name of the SSM document.

", + "DeleteDocumentRequest$Name": "

The name of the SSM document.

", + "DescribeAssociationRequest$Name": "

The name of the SSM document.

", + "DescribeDocumentPermissionRequest$Name": "

The name of the document for which you are the owner.

", + "DocumentDefaultVersionDescription$Name": "

The name of the document.

", + "DocumentVersionInfo$Name": "

The document name.

", + "GetCommandInvocationResult$DocumentName": "

The name of the SSM document that was executed. For example, AWS-RunShellScript is an SSM document.

", + "InstanceAssociationStatusInfo$Name": "

The name of the association.

", + "ListDocumentVersionsRequest$Name": "

The name of the document about which you want version information.

", + "ModifyDocumentPermissionRequest$Name": "

The name of the document that you want to share.

", + "UpdateAssociationStatusRequest$Name": "

The name of the SSM document.

", + "UpdateDocumentDefaultVersionRequest$Name": "

The name of a custom document that you want to set as the default version.

", + "UpdateDocumentRequest$Name": "

The name of the document that you want to update.

" + } + }, + "DocumentOwner": { + "base": null, + "refs": { + "DocumentDescription$Owner": "

The AWS user account of the person who created the document.

", + "DocumentIdentifier$Owner": "

The AWS user account of the person who created the document.

" + } + }, + "DocumentParameter": { + "base": "

Parameters specified in the SSM document that execute on the server when the command is run.

", + "refs": { + "DocumentParameterList$member": null + } + }, + "DocumentParameterDefaultValue": { + "base": null, + "refs": { + "DocumentParameter$DefaultValue": "

If specified, the default values for the parameters. Parameters without a default value are required. Parameters with a default value are optional.

" + } + }, + "DocumentParameterDescrption": { + "base": null, + "refs": { + "DocumentParameter$Description": "

A description of what the parameter does, how to use it, the default value, and whether or not the parameter is optional.

" + } + }, + "DocumentParameterList": { + "base": null, + "refs": { + "DocumentDescription$Parameters": "

A description of the parameters for a document.

" + } + }, + "DocumentParameterName": { + "base": null, + "refs": { + "DocumentParameter$Name": "

The name of the parameter.

" + } + }, + "DocumentParameterType": { + "base": null, + "refs": { + "DocumentParameter$Type": "

The type of parameter. The type can be either “String” or “StringList”.

" + } + }, + "DocumentPermissionLimit": { + "base": "

The document cannot be shared with more AWS user accounts. You can share a document with a maximum of 20 accounts. You can publicly share up to five documents. If you need to increase this limit, contact AWS Support.

", + "refs": { + } + }, + "DocumentPermissionType": { + "base": null, + "refs": { + "DescribeDocumentPermissionRequest$PermissionType": "

The permission type for the document. The permission type can be Share.

", + "ModifyDocumentPermissionRequest$PermissionType": "

The permission type for the document. The permission type can be Share.

" + } + }, + "DocumentSchemaVersion": { + "base": null, + "refs": { + "DocumentDescription$SchemaVersion": "

The schema version.

", + "DocumentIdentifier$SchemaVersion": "

The schema version.

" } }, "DocumentSha1": { "base": null, "refs": { - "DocumentDescription$Sha1": "

The SHA1 hash of the document, which you can use for verification purposes.

" + "DocumentDescription$Sha1": "

The SHA1 hash of the document, which you can use for verification purposes.

" + } + }, + "DocumentStatus": { + "base": null, + "refs": { + "DocumentDescription$Status": "

The status of the SSM document.

" + } + }, + "DocumentType": { + "base": null, + "refs": { + "CreateDocumentRequest$DocumentType": "

The type of document to create. Valid document types include: Policy, Automation, and Command.

", + "DocumentDescription$DocumentType": "

The type of document.

", + "DocumentIdentifier$DocumentType": "

The document type.

", + "GetDocumentResult$DocumentType": "

The document type.

" + } + }, + "DocumentVersion": { + "base": null, + "refs": { + "Association$DocumentVersion": "

The version of the document used in the association.

", + "AssociationDescription$DocumentVersion": "

The document version.

", + "AutomationExecution$DocumentVersion": "

The version of the document to use during execution.

", + "AutomationExecutionMetadata$DocumentVersion": "

The document version used during the execution.

", + "CreateAssociationBatchRequestEntry$DocumentVersion": "

The document version.

", + "CreateAssociationRequest$DocumentVersion": "

The document version you want to associate with the target(s). Can be a specific version or the default version.

", + "DescribeDocumentRequest$DocumentVersion": "

The document version for which you want information. Can be a specific version or the default version.

", + "DocumentDefaultVersionDescription$DefaultVersion": "

The default version of the document.

", + "DocumentDescription$DocumentVersion": "

The document version.

", + "DocumentDescription$LatestVersion": "

The latest version of the document.

", + "DocumentDescription$DefaultVersion": "

The default version.

", + "DocumentIdentifier$DocumentVersion": "

The document version.

", + "DocumentVersionInfo$DocumentVersion": "

The document version.

", + "GetDocumentRequest$DocumentVersion": "

The document version for which you want information.

", + "GetDocumentResult$DocumentVersion": "

The document version.

", + "InstanceAssociationStatusInfo$DocumentVersion": "

The association document verions.

", + "StartAutomationExecutionRequest$DocumentVersion": "

The version of the Automation document to use for this execution.

", + "UpdateAssociationRequest$DocumentVersion": "

The document version you want update for the association.

", + "UpdateDocumentRequest$DocumentVersion": "

The version of the document that you want to update.

" + } + }, + "DocumentVersionInfo": { + "base": "

Version information about the document.

", + "refs": { + "DocumentVersionList$member": null + } + }, + "DocumentVersionLimitExceeded": { + "base": "

The document has too many versions. Delete one or more document versions and try again.

", + "refs": { + } + }, + "DocumentVersionList": { + "base": null, + "refs": { + "ListDocumentVersionsResult$DocumentVersions": "

The document versions.

" + } + }, + "DocumentVersionNumber": { + "base": null, + "refs": { + "UpdateDocumentDefaultVersionRequest$DocumentVersion": "

The version of a custom document that you want to set as the default version.

" + } + }, + "DoesNotExistException": { + "base": "

Error returned when the ID specified for a resource (e.g. a Maintenance Window) doesn’t exist.

", + "refs": { + } + }, + "DuplicateDocumentContent": { + "base": "

The content of the association document matches another document. Change the content of the document and try again.

", + "refs": { + } + }, + "DuplicateInstanceId": { + "base": "

You cannot specify an instance ID in more than one association.

", + "refs": { + } + }, + "EffectiveInstanceAssociationMaxResults": { + "base": null, + "refs": { + "DescribeEffectiveInstanceAssociationsRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

" + } + }, + "EffectivePatch": { + "base": "

The EffectivePatch structure defines metadata about a patch along with the approval state of the patch in a particular patch baseline. The approval state includes information about whether the patch is currently approved, due to be approved by a rule, explicitly approved, or explicitly rejected and the date the patch was or will be approved.

", + "refs": { + "EffectivePatchList$member": null + } + }, + "EffectivePatchList": { + "base": null, + "refs": { + "DescribeEffectivePatchesForPatchBaselineResult$EffectivePatches": "

An array of patches and patch status.

" + } + }, + "ErrorCount": { + "base": null, + "refs": { + "Command$ErrorCount": "

The number of targets for which the status is Failed or Execution Timed Out.

" + } + }, + "ExpirationDate": { + "base": null, + "refs": { + "Activation$ExpirationDate": "

The date when this activation can no longer be used to register managed instances.

", + "CreateActivationRequest$ExpirationDate": "

The date by which this activation request should expire. The default value is 24 hours.

" + } + }, + "FailedCreateAssociation": { + "base": "

Describes a failed association.

", + "refs": { + "FailedCreateAssociationList$member": null + } + }, + "FailedCreateAssociationList": { + "base": null, + "refs": { + "CreateAssociationBatchResult$Failed": "

Information about the associations that failed.

" + } + }, + "Fault": { + "base": null, + "refs": { + "FailedCreateAssociation$Fault": "

The source of the failure.

" + } + }, + "GetAutomationExecutionRequest": { + "base": null, + "refs": { + } + }, + "GetAutomationExecutionResult": { + "base": null, + "refs": { + } + }, + "GetCommandInvocationRequest": { + "base": null, + "refs": { + } + }, + "GetCommandInvocationResult": { + "base": null, + "refs": { + } + }, + "GetDefaultPatchBaselineRequest": { + "base": null, + "refs": { + } + }, + "GetDefaultPatchBaselineResult": { + "base": null, + "refs": { + } + }, + "GetDeployablePatchSnapshotForInstanceRequest": { + "base": null, + "refs": { + } + }, + "GetDeployablePatchSnapshotForInstanceResult": { + "base": null, + "refs": { + } + }, + "GetDocumentRequest": { + "base": null, + "refs": { + } + }, + "GetDocumentResult": { + "base": null, + "refs": { + } + }, + "GetInventoryRequest": { + "base": null, + "refs": { + } + }, + "GetInventoryResult": { + "base": null, + "refs": { + } + }, + "GetInventorySchemaMaxResults": { + "base": null, + "refs": { + "GetInventorySchemaRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

" + } + }, + "GetInventorySchemaRequest": { + "base": null, + "refs": { + } + }, + "GetInventorySchemaResult": { + "base": null, + "refs": { + } + }, + "GetMaintenanceWindowExecutionRequest": { + "base": null, + "refs": { + } + }, + "GetMaintenanceWindowExecutionResult": { + "base": null, + "refs": { + } + }, + "GetMaintenanceWindowExecutionTaskRequest": { + "base": null, + "refs": { + } + }, + "GetMaintenanceWindowExecutionTaskResult": { + "base": null, + "refs": { + } + }, + "GetMaintenanceWindowRequest": { + "base": null, + "refs": { + } + }, + "GetMaintenanceWindowResult": { + "base": null, + "refs": { + } + }, + "GetParameterHistoryRequest": { + "base": null, + "refs": { + } + }, + "GetParameterHistoryResult": { + "base": null, + "refs": { + } + }, + "GetParametersRequest": { + "base": null, + "refs": { + } + }, + "GetParametersResult": { + "base": null, + "refs": { + } + }, + "GetPatchBaselineForPatchGroupRequest": { + "base": null, + "refs": { + } + }, + "GetPatchBaselineForPatchGroupResult": { + "base": null, + "refs": { + } + }, + "GetPatchBaselineRequest": { + "base": null, + "refs": { + } + }, + "GetPatchBaselineResult": { + "base": null, + "refs": { + } + }, + "IPAddress": { + "base": null, + "refs": { + "InstanceInformation$IPAddress": "

The IP address of the managed instance.

" + } + }, + "IamRole": { + "base": null, + "refs": { + "Activation$IamRole": "

The Amazon Identity and Access Management (IAM) role to assign to the managed instance.

", + "CreateActivationRequest$IamRole": "

The Amazon Identity and Access Management (IAM) role that you want to assign to the managed instance.

", + "InstanceInformation$IamRole": "

The Amazon Identity and Access Management (IAM) role assigned to EC2 instances or managed instances.

", + "UpdateManagedInstanceRoleRequest$IamRole": "

The IAM role you want to assign or change.

" + } + }, + "IdempotentParameterMismatch": { + "base": "

Error returned when an idempotent operation is retried and the parameters don’t match the original call to the API with the same idempotency token.

", + "refs": { + } + }, + "InstanceAggregatedAssociationOverview": { + "base": "

Status information about the aggregated associations.

", + "refs": { + "InstanceInformation$AssociationOverview": "

Information about the association.

" + } + }, + "InstanceAssociation": { + "base": "

One or more association documents on the instance.

", + "refs": { + "InstanceAssociationList$member": null + } + }, + "InstanceAssociationExecutionSummary": { + "base": null, + "refs": { + "InstanceAssociationStatusInfo$ExecutionSummary": "

Summary information about association execution.

" + } + }, + "InstanceAssociationList": { + "base": null, + "refs": { + "DescribeEffectiveInstanceAssociationsResult$Associations": "

The associations for the requested instance.

" + } + }, + "InstanceAssociationOutputLocation": { + "base": "

An Amazon S3 bucket where you want to store the results of this request.

", + "refs": { + "AssociationDescription$OutputLocation": "

An Amazon S3 bucket where you want to store the output details of the request.

", + "CreateAssociationBatchRequestEntry$OutputLocation": "

An Amazon S3 bucket where you want to store the results of this request.

", + "CreateAssociationRequest$OutputLocation": "

An Amazon S3 bucket where you want to store the output details of the request. For example:

\"{ \\\"S3Location\\\": { \\\"OutputS3Region\\\": \\\"<region>\\\", \\\"OutputS3BucketName\\\": \\\"bucket name\\\", \\\"OutputS3KeyPrefix\\\": \\\"folder name\\\" } }\"

", + "UpdateAssociationRequest$OutputLocation": "

An Amazon S3 bucket where you want to store the results of this request.

\"{ \\\"S3Location\\\": { \\\"OutputS3Region\\\": \\\"<region>\\\", \\\"OutputS3BucketName\\\": \\\"bucket name\\\", \\\"OutputS3KeyPrefix\\\": \\\"folder name\\\" } }\"

" + } + }, + "InstanceAssociationOutputUrl": { + "base": "

The URL of Amazon S3 bucket where you want to store the results of this request.

", + "refs": { + "InstanceAssociationStatusInfo$OutputUrl": "

A URL for an Amazon S3 bucket where you want to store the results of this request.

" + } + }, + "InstanceAssociationStatusAggregatedCount": { + "base": null, + "refs": { + "InstanceAggregatedAssociationOverview$InstanceAssociationStatusAggregatedCount": "

The number of associations for the instance(s).

" + } + }, + "InstanceAssociationStatusInfo": { + "base": "

Status information about the instance association.

", + "refs": { + "InstanceAssociationStatusInfos$member": null + } + }, + "InstanceAssociationStatusInfos": { + "base": null, + "refs": { + "DescribeInstanceAssociationsStatusResult$InstanceAssociationStatusInfos": "

Status information about the association.

" + } + }, + "InstanceCount": { + "base": null, + "refs": { + "AssociationStatusAggregatedCount$value": null, + "InstanceAssociationStatusAggregatedCount$value": null + } + }, + "InstanceId": { + "base": null, + "refs": { + "Association$InstanceId": "

The ID of the instance.

", + "AssociationDescription$InstanceId": "

The ID of the instance.

", + "CommandInvocation$InstanceId": "

The instance ID in which this invocation was requested.

", + "CreateAssociationBatchRequestEntry$InstanceId": "

The ID of the instance.

", + "CreateAssociationRequest$InstanceId": "

The instance ID.

", + "DeleteAssociationRequest$InstanceId": "

The ID of the instance.

", + "DescribeAssociationRequest$InstanceId": "

The instance ID.

", + "DescribeEffectiveInstanceAssociationsRequest$InstanceId": "

The instance ID for which you want to view all associations.

", + "DescribeInstanceAssociationsStatusRequest$InstanceId": "

The instance IDs for which you want association status information.

", + "DescribeInstancePatchesRequest$InstanceId": "

The ID of the instance whose patch state information should be retrieved.

", + "GetCommandInvocationRequest$InstanceId": "

(Required) The ID of the managed instance targeted by the command. A managed instance can be an Amazon EC2 instance or an instance in your hybrid environment that is configured for Systems Manager.

", + "GetCommandInvocationResult$InstanceId": "

The ID of the managed instance targeted by the command. A managed instance can be an Amazon EC2 instance or an instance in your hybrid environment that is configured for Systems Manager.

", + "GetDeployablePatchSnapshotForInstanceRequest$InstanceId": "

The ID of the instance for which the appropriate patch snapshot should be retrieved.

", + "GetDeployablePatchSnapshotForInstanceResult$InstanceId": "

The ID of the instance.

", + "InstanceAssociation$InstanceId": "

The instance ID.

", + "InstanceAssociationStatusInfo$InstanceId": "

The instance ID where the association was created.

", + "InstanceIdList$member": null, + "InstanceInformation$InstanceId": "

The instance ID.

", + "InstancePatchState$InstanceId": "

The ID of the managed instance the high-level patch compliance information was collected for.

", + "ListCommandInvocationsRequest$InstanceId": "

(Optional) The command execution details for a specific instance ID.

", + "ListCommandsRequest$InstanceId": "

(Optional) Lists commands issued against this instance ID.

", + "ListInventoryEntriesRequest$InstanceId": "

The instance ID for which you want inventory information.

", + "ListInventoryEntriesResult$InstanceId": "

The instance ID targeted by the request to query inventory information.

", + "PutInventoryRequest$InstanceId": "

One or more instance IDs where you want to add or update inventory items.

", + "UpdateAssociationStatusRequest$InstanceId": "

The ID of the instance.

" + } + }, + "InstanceIdList": { + "base": null, + "refs": { + "CancelCommandRequest$InstanceIds": "

(Optional) A list of instance IDs on which you want to cancel the command. If not provided, the command is canceled on every instance on which it was requested.

", + "Command$InstanceIds": "

The instance IDs against which this command was requested.

", + "DescribeInstancePatchStatesRequest$InstanceIds": "

The ID of the instance whose patch state information should be retrieved.

", + "SendCommandRequest$InstanceIds": "

Required. The instance IDs where the command should execute. You can specify a maximum of 50 IDs.

" + } + }, + "InstanceInformation": { + "base": "

Describes a filter for a specific list of instances.

", + "refs": { + "InstanceInformationList$member": null + } + }, + "InstanceInformationFilter": { + "base": "

Describes a filter for a specific list of instances.

", + "refs": { + "InstanceInformationFilterList$member": null + } + }, + "InstanceInformationFilterKey": { + "base": null, + "refs": { + "InstanceInformationFilter$key": "

The name of the filter.

" + } + }, + "InstanceInformationFilterList": { + "base": null, + "refs": { + "DescribeInstanceInformationRequest$InstanceInformationFilterList": "

One or more filters. Use a filter to return a more specific list of instances.

" + } + }, + "InstanceInformationFilterValue": { + "base": null, + "refs": { + "InstanceInformationFilterValueSet$member": null + } + }, + "InstanceInformationFilterValueSet": { + "base": null, + "refs": { + "InstanceInformationFilter$valueSet": "

The filter values.

", + "InstanceInformationStringFilter$Values": "

The filter values.

" + } + }, + "InstanceInformationList": { + "base": null, + "refs": { + "DescribeInstanceInformationResult$InstanceInformationList": "

The instance information list.

" + } + }, + "InstanceInformationStringFilter": { + "base": "

The filters to describe or get information about your managed instances.

", + "refs": { + "InstanceInformationStringFilterList$member": null + } + }, + "InstanceInformationStringFilterKey": { + "base": null, + "refs": { + "InstanceInformationStringFilter$Key": "

The filter key name to describe your instances. For example:

\"InstanceIds\"|\"AgentVersion\"|\"PingStatus\"|\"PlatformTypes\"|\"ActivationIds\"|\"IamRole\"|\"ResourceType\"|”AssociationStatus”|”Tag Key”

" + } + }, + "InstanceInformationStringFilterList": { + "base": null, + "refs": { + "DescribeInstanceInformationRequest$Filters": "

One or more filters. Use a filter to return a more specific list of instances.

" + } + }, + "InstancePatchState": { + "base": "

Defines the high-level patch compliance state for a managed instance, providing information about the number of installed, missing, not applicable, and failed patches along with metadata about the operation when this information was gathered for the instance.

", + "refs": { + "InstancePatchStateList$member": null, + "InstancePatchStatesList$member": null + } + }, + "InstancePatchStateFilter": { + "base": "

Defines a filter used in DescribeInstancePatchStatesForPatchGroup used to scope down the information returned by the API.

", + "refs": { + "InstancePatchStateFilterList$member": null + } + }, + "InstancePatchStateFilterKey": { + "base": null, + "refs": { + "InstancePatchStateFilter$Key": "

The key for the filter. Supported values are FailedCount, InstalledCount, InstalledOtherCount, MissingCount and NotApplicableCount.

" + } + }, + "InstancePatchStateFilterList": { + "base": null, + "refs": { + "DescribeInstancePatchStatesForPatchGroupRequest$Filters": "

Each entry in the array is a structure containing:

Key (string 1 ≤ length ≤ 200)

Values (array containing a single string)

Type (string “Equal”, “NotEqual”, “LessThan”, “GreaterThan”)

" + } + }, + "InstancePatchStateFilterValue": { + "base": null, + "refs": { + "InstancePatchStateFilterValues$member": null + } + }, + "InstancePatchStateFilterValues": { + "base": null, + "refs": { + "InstancePatchStateFilter$Values": "

The value for the filter, must be an integer greater than or equal to 0.

" + } + }, + "InstancePatchStateList": { + "base": null, + "refs": { + "DescribeInstancePatchStatesResult$InstancePatchStates": "

The high-level patch state for the requested instances.

" + } + }, + "InstancePatchStateOperatorType": { + "base": null, + "refs": { + "InstancePatchStateFilter$Type": "

The type of comparison that should be performed for the value: Equal, NotEqual, LessThan or GreaterThan.

" + } + }, + "InstancePatchStatesList": { + "base": null, + "refs": { + "DescribeInstancePatchStatesForPatchGroupResult$InstancePatchStates": "

The high-level patch state for the requested instances.

" + } + }, + "InstanceTagName": { + "base": null, + "refs": { + "CommandInvocation$InstanceName": "

The name of the invocation target. For Amazon EC2 instances this is the value for the aws:Name tag. For on-premises instances, this is the name of the instance.

" + } + }, + "Integer": { + "base": null, + "refs": { + "DescribePatchGroupStateResult$Instances": "

The number of instances in the patch group.

", + "DescribePatchGroupStateResult$InstancesWithInstalledPatches": "

The number of instances with installed patches.

", + "DescribePatchGroupStateResult$InstancesWithInstalledOtherPatches": "

The number of instances with patches installed that aren’t defined in the patch baseline.

", + "DescribePatchGroupStateResult$InstancesWithMissingPatches": "

The number of instances with missing patches from the patch baseline.

", + "DescribePatchGroupStateResult$InstancesWithFailedPatches": "

The number of instances with patches from the patch baseline that failed to install.

", + "DescribePatchGroupStateResult$InstancesWithNotApplicablePatches": "

The number of instances with patches that aren’t applicable.

" + } + }, + "InternalServerError": { + "base": "

An error occurred on the server side.

", + "refs": { + } + }, + "InvalidActivation": { + "base": "

The activation is not valid. The activation might have been deleted, or the ActivationId and the ActivationCode do not match.

", + "refs": { + } + }, + "InvalidActivationId": { + "base": "

The activation ID is not valid. Verify the you entered the correct ActivationId or ActivationCode and try again.

", + "refs": { + } + }, + "InvalidAutomationExecutionParametersException": { + "base": "

The supplied parameters for invoking the specified Automation document are incorrect. For example, they may not match the set of parameters permitted for the specified Automation document.

", + "refs": { + } + }, + "InvalidCommandId": { + "base": null, + "refs": { + } + }, + "InvalidDocument": { + "base": "

The specified document does not exist.

", + "refs": { + } + }, + "InvalidDocumentContent": { + "base": "

The content for the SSM document is not valid.

", + "refs": { + } + }, + "InvalidDocumentOperation": { + "base": "

You attempted to delete a document while it is still shared. You must stop sharing the document before you can delete it.

", + "refs": { + } + }, + "InvalidDocumentSchemaVersion": { + "base": "

The version of the document schema is not supported.

", + "refs": { + } + }, + "InvalidDocumentVersion": { + "base": "

The document version is not valid or does not exist.

", + "refs": { + } + }, + "InvalidFilter": { + "base": "

The filter name is not valid. Verify the you entered the correct name and try again.

", + "refs": { + } + }, + "InvalidFilterKey": { + "base": "

The specified key is not valid.

", + "refs": { + } + }, + "InvalidFilterValue": { + "base": "

The filter value is not valid. Verify the value and try again.

", + "refs": { + } + }, + "InvalidInstanceId": { + "base": "

The following problems can cause this exception:

You do not have permission to access the instance.

The SSM agent is not running. On managed instances and Linux instances, verify that the SSM agent is running. On EC2 Windows instances, verify that the EC2Config service is running.

The SSM agent or EC2Config service is not registered to the SSM endpoint. Try reinstalling the SSM agent or EC2Config service.

The instance is not in valid state. Valid states are: Running, Pending, Stopped, Stopping. Invalid states are: Shutting-down and Terminated.

", + "refs": { + } + }, + "InvalidInstanceInformationFilterValue": { + "base": "

The specified filter value is not valid.

", + "refs": { + } + }, + "InvalidItemContentException": { + "base": "

One or more content items is not valid.

", + "refs": { + } + }, + "InvalidKeyId": { + "base": "

The query key ID is not valid.

", + "refs": { + } + }, + "InvalidNextToken": { + "base": "

The specified token is not valid.

", + "refs": { + } + }, + "InvalidNotificationConfig": { + "base": "

One or more configuration items is not valid. Verify that a valid Amazon Resource Name (ARN) was provided for an Amazon SNS topic.

", + "refs": { + } + }, + "InvalidOutputFolder": { + "base": "

The S3 bucket does not exist.

", + "refs": { + } + }, + "InvalidOutputLocation": { + "base": "

The output location is not valid or does not exist.

", + "refs": { + } + }, + "InvalidParameters": { + "base": "

You must specify values for all required parameters in the SSM document. You can only supply values to parameters defined in the SSM document.

", + "refs": { + } + }, + "InvalidPermissionType": { + "base": "

The permission type is not supported. Share is the only supported permission type.

", + "refs": { + } + }, + "InvalidPluginName": { + "base": "

The plugin name is not valid.

", + "refs": { + } + }, + "InvalidResourceId": { + "base": "

The resource ID is not valid. Verify that you entered the correct ID and try again.

", + "refs": { + } + }, + "InvalidResourceType": { + "base": "

The resource type is not valid. If you are attempting to tag an instance, the instance must be a registered, managed instance.

", + "refs": { + } + }, + "InvalidResultAttributeException": { + "base": "

The specified inventory item result attribute is not valid.

", + "refs": { + } + }, + "InvalidRole": { + "base": "

The role name can't contain invalid characters. Also verify that you specified an IAM role for notifications that includes the required trust policy. For information about configuring the IAM role for Run Command notifications, see Getting Amazon SNS Notifications When a Command Changes Status in the Amazon Elastic Compute Cloud User Guide .

", + "refs": { + } + }, + "InvalidSchedule": { + "base": "

The schedule is invalid. Verify your cron or rate expression and try again.

", + "refs": { + } + }, + "InvalidTarget": { + "base": "

The target is not valid or does not exist. It might not be configured for EC2 Systems Manager or you might not have permission to perform the operation.

", + "refs": { + } + }, + "InvalidTypeNameException": { + "base": "

The parameter type name is not valid.

", + "refs": { + } + }, + "InvalidUpdate": { + "base": "

The update is not valid.

", + "refs": { + } + }, + "InventoryAttributeDataType": { + "base": null, + "refs": { + "InventoryItemAttribute$DataType": "

The data type of the inventory item attribute.

" + } + }, + "InventoryFilter": { + "base": "

One or more filters. Use a filter to return a more specific list of results.

", + "refs": { + "InventoryFilterList$member": null + } + }, + "InventoryFilterKey": { + "base": null, + "refs": { + "InventoryFilter$Key": "

The name of the filter key.

" + } + }, + "InventoryFilterList": { + "base": null, + "refs": { + "GetInventoryRequest$Filters": "

One or more filters. Use a filter to return a more specific list of results.

", + "ListInventoryEntriesRequest$Filters": "

One or more filters. Use a filter to return a more specific list of results.

" + } + }, + "InventoryFilterValue": { + "base": null, + "refs": { + "InventoryFilterValueList$member": null + } + }, + "InventoryFilterValueList": { + "base": null, + "refs": { + "InventoryFilter$Values": "

Inventory filter values. Example: inventory filter where instance IDs are specified as values Key=AWS:InstanceInformation.InstanceId,Values= i-a12b3c4d5e6g, i-1a2b3c4d5e6,Type=Equal

" + } + }, + "InventoryItem": { + "base": "

Information collected from managed instances based on your inventory policy document

", + "refs": { + "InventoryItemList$member": null + } + }, + "InventoryItemAttribute": { + "base": "

Attributes are the entries within the inventory item content. It contains name and value.

", + "refs": { + "InventoryItemAttributeList$member": null + } + }, + "InventoryItemAttributeList": { + "base": null, + "refs": { + "InventoryItemSchema$Attributes": "

The schema attributes for inventory. This contains data type and attribute name.

" + } + }, + "InventoryItemAttributeName": { + "base": null, + "refs": { + "InventoryItemAttribute$Name": "

Name of the inventory item attribute.

" + } + }, + "InventoryItemCaptureTime": { + "base": null, + "refs": { + "InventoryItem$CaptureTime": "

The time the inventory information was collected.

", + "InventoryResultItem$CaptureTime": "

The time inventory item data was captured.

", + "ListInventoryEntriesResult$CaptureTime": "

The time that inventory information was collected for the instance(s).

" + } + }, + "InventoryItemContentHash": { + "base": null, + "refs": { + "InventoryItem$ContentHash": "

MD5 hash of the inventory item type contents. The content hash is used to determine whether to update inventory information. The PutInventory API does not update the inventory item type contents if the MD5 hash has not changed since last update.

", + "InventoryResultItem$ContentHash": "

MD5 hash of the inventory item type contents. The content hash is used to determine whether to update inventory information. The PutInventory API does not update the inventory item type contents if the MD5 hash has not changed since last update.

" + } + }, + "InventoryItemEntry": { + "base": null, + "refs": { + "InventoryItemEntryList$member": null + } + }, + "InventoryItemEntryList": { + "base": null, + "refs": { + "InventoryItem$Content": "

The inventory data of the inventory type.

", + "InventoryResultItem$Content": "

Contains all the inventory data of the item type. Results include attribute names and values.

", + "ListInventoryEntriesResult$Entries": "

A list of inventory items on the instance(s).

" + } + }, + "InventoryItemList": { + "base": null, + "refs": { + "PutInventoryRequest$Items": "

The inventory items that you want to add or update on instances.

" + } + }, + "InventoryItemSchema": { + "base": "

The inventory item schema definition. Users can use this to compose inventory query filters.

", + "refs": { + "InventoryItemSchemaResultList$member": null + } + }, + "InventoryItemSchemaResultList": { + "base": null, + "refs": { + "GetInventorySchemaResult$Schemas": "

Inventory schemas returned by the request.

" + } + }, + "InventoryItemSchemaVersion": { + "base": null, + "refs": { + "InventoryItem$SchemaVersion": "

The schema version for the inventory item.

", + "InventoryItemSchema$Version": "

The schema version for the inventory item.

", + "InventoryResultItem$SchemaVersion": "

The schema version for the inventory result item/

", + "ListInventoryEntriesResult$SchemaVersion": "

The inventory schema version used by the instance(s).

" + } + }, + "InventoryItemTypeName": { + "base": null, + "refs": { + "InvalidItemContentException$TypeName": null, + "InventoryItem$TypeName": "

The name of the inventory type. Default inventory item type names start with AWS. Custom inventory type names will start with Custom. Default inventory item types include the following: AWS:AWSComponent, AWS:Application, AWS:InstanceInformation, AWS:Network, and AWS:WindowsUpdate.

", + "InventoryItemSchema$TypeName": "

The name of the inventory type. Default inventory item type names start with AWS. Custom inventory type names will start with Custom. Default inventory item types include the following: AWS:AWSComponent, AWS:Application, AWS:InstanceInformation, AWS:Network, and AWS:WindowsUpdate.

", + "InventoryResultItem$TypeName": "

The name of the inventory result item type.

", + "ItemContentMismatchException$TypeName": null, + "ItemSizeLimitExceededException$TypeName": null, + "ListInventoryEntriesRequest$TypeName": "

The type of inventory item for which you want information.

", + "ListInventoryEntriesResult$TypeName": "

The type of inventory item returned by the request.

", + "ResultAttribute$TypeName": "

Name of the inventory item type. Valid value: “AWS:InstanceInformation”. Default Value: “AWS:InstanceInformation”.

" + } + }, + "InventoryItemTypeNameFilter": { + "base": null, + "refs": { + "GetInventorySchemaRequest$TypeName": "

The type of inventory item to return.

" + } + }, + "InventoryQueryOperatorType": { + "base": null, + "refs": { + "InventoryFilter$Type": "

The type of filter. Valid values include the following: \"Equal\"|\"NotEqual\"|\"BeginWith\"|\"LessThan\"|\"GreaterThan\"

" + } + }, + "InventoryResultEntity": { + "base": "

Inventory query results.

", + "refs": { + "InventoryResultEntityList$member": null + } + }, + "InventoryResultEntityId": { + "base": null, + "refs": { + "InventoryResultEntity$Id": "

ID of the inventory result entity. For example, for managed instance inventory the result will be the managed instance ID. For EC2 instance inventory, the result will be the instance ID.

" + } + }, + "InventoryResultEntityList": { + "base": null, + "refs": { + "GetInventoryResult$Entities": "

Collection of inventory entities such as a collection of instance inventory.

" + } + }, + "InventoryResultItem": { + "base": "

The inventory result item.

", + "refs": { + "InventoryResultItemMap$value": null + } + }, + "InventoryResultItemKey": { + "base": null, + "refs": { + "InventoryResultItemMap$key": null + } + }, + "InventoryResultItemMap": { + "base": null, + "refs": { + "InventoryResultEntity$Data": "

The data section in the inventory result entity json.

" + } + }, + "InvocationDoesNotExist": { + "base": "

The command ID and instance ID you specified did not match any invocations. Verify the command ID adn the instance ID and try again.

", + "refs": { + } + }, + "InvocationTraceOutput": { + "base": null, + "refs": { + "CommandInvocation$TraceOutput": "

Gets the trace output sent by the agent.

" + } + }, + "ItemContentMismatchException": { + "base": "

The inventory item has invalid content.

", + "refs": { + } + }, + "ItemSizeLimitExceededException": { + "base": "

The inventory item size has exceeded the size limit.

", + "refs": { + } + }, + "KeyList": { + "base": null, + "refs": { + "RemoveTagsFromResourceRequest$TagKeys": "

Tag keys that you want to remove from the specified resource.

" + } + }, + "ListAssociationsRequest": { + "base": null, + "refs": { + } + }, + "ListAssociationsResult": { + "base": null, + "refs": { + } + }, + "ListCommandInvocationsRequest": { + "base": null, + "refs": { + } + }, + "ListCommandInvocationsResult": { + "base": null, + "refs": { + } + }, + "ListCommandsRequest": { + "base": null, + "refs": { + } + }, + "ListCommandsResult": { + "base": null, + "refs": { + } + }, + "ListDocumentVersionsRequest": { + "base": null, + "refs": { + } + }, + "ListDocumentVersionsResult": { + "base": null, + "refs": { + } + }, + "ListDocumentsRequest": { + "base": null, + "refs": { + } + }, + "ListDocumentsResult": { + "base": null, + "refs": { + } + }, + "ListInventoryEntriesRequest": { + "base": null, + "refs": { + } + }, + "ListInventoryEntriesResult": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceRequest": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceResult": { + "base": null, + "refs": { + } + }, + "LoggingInfo": { + "base": "

Information about an Amazon S3 bucket to write instance-level logs to.

", + "refs": { + "MaintenanceWindowTask$LoggingInfo": "

Information about an Amazon S3 bucket to write task-level logs to.

", + "RegisterTaskWithMaintenanceWindowRequest$LoggingInfo": "

A structure containing information about an Amazon S3 bucket to write instance-level logs to.

" + } + }, + "MaintenanceWindowAllowUnassociatedTargets": { + "base": null, + "refs": { + "CreateMaintenanceWindowRequest$AllowUnassociatedTargets": "

Whether targets must be registered with the Maintenance Window before tasks can be defined for those targets.

", + "GetMaintenanceWindowResult$AllowUnassociatedTargets": "

Whether targets must be registered with the Maintenance Window before tasks can be defined for those targets.

", + "UpdateMaintenanceWindowRequest$AllowUnassociatedTargets": "

Whether targets must be registered with the Maintenance Window before tasks can be defined for those targets.

", + "UpdateMaintenanceWindowResult$AllowUnassociatedTargets": "

Whether targets must be registered with the Maintenance Window before tasks can be defined for those targets.

" + } + }, + "MaintenanceWindowCutoff": { + "base": null, + "refs": { + "CreateMaintenanceWindowRequest$Cutoff": "

The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution.

", + "GetMaintenanceWindowResult$Cutoff": "

The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution.

", + "MaintenanceWindowIdentity$Cutoff": "

The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution.

", + "UpdateMaintenanceWindowRequest$Cutoff": "

The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution.

", + "UpdateMaintenanceWindowResult$Cutoff": "

The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution.

" + } + }, + "MaintenanceWindowDurationHours": { + "base": null, + "refs": { + "CreateMaintenanceWindowRequest$Duration": "

The duration of the Maintenance Window in hours.

", + "GetMaintenanceWindowResult$Duration": "

The duration of the Maintenance Window in hours.

", + "MaintenanceWindowIdentity$Duration": "

The duration of the Maintenance Window in hours.

", + "UpdateMaintenanceWindowRequest$Duration": "

The duration of the Maintenance Window in hours.

", + "UpdateMaintenanceWindowResult$Duration": "

The duration of the Maintenance Window in hours.

" + } + }, + "MaintenanceWindowEnabled": { + "base": null, + "refs": { + "GetMaintenanceWindowResult$Enabled": "

Whether the Maintenance Windows is enabled.

", + "MaintenanceWindowIdentity$Enabled": "

Whether the Maintenance Window is enabled.

", + "UpdateMaintenanceWindowRequest$Enabled": "

Whether the Maintenance Window is enabled.

", + "UpdateMaintenanceWindowResult$Enabled": "

Whether the Maintenance Window is enabled.

" + } + }, + "MaintenanceWindowExecution": { + "base": "

Describes the information about an execution of a Maintenance Window.

", + "refs": { + "MaintenanceWindowExecutionList$member": null + } + }, + "MaintenanceWindowExecutionId": { + "base": null, + "refs": { + "DescribeMaintenanceWindowExecutionTaskInvocationsRequest$WindowExecutionId": "

The ID of the Maintenance Window execution the task is part of.

", + "DescribeMaintenanceWindowExecutionTasksRequest$WindowExecutionId": "

The ID of the Maintenance Window execution whose task executions should be retrieved.

", + "GetMaintenanceWindowExecutionRequest$WindowExecutionId": "

The ID of the Maintenance Window execution that includes the task.

", + "GetMaintenanceWindowExecutionResult$WindowExecutionId": "

The ID of the Maintenance Window execution.

", + "GetMaintenanceWindowExecutionTaskRequest$WindowExecutionId": "

The ID of the Maintenance Window execution that includes the task.

", + "GetMaintenanceWindowExecutionTaskResult$WindowExecutionId": "

The ID of the Maintenance Window execution that includes the task.

", + "MaintenanceWindowExecution$WindowExecutionId": "

The ID of the Maintenance Window execution.

", + "MaintenanceWindowExecutionTaskIdentity$WindowExecutionId": "

The ID of the Maintenance Window execution that ran the task.

", + "MaintenanceWindowExecutionTaskInvocationIdentity$WindowExecutionId": "

The ID of the Maintenance Window execution that ran the task.

" + } + }, + "MaintenanceWindowExecutionList": { + "base": null, + "refs": { + "DescribeMaintenanceWindowExecutionsResult$WindowExecutions": "

Information about the Maintenance Windows execution.

" + } + }, + "MaintenanceWindowExecutionStatus": { + "base": null, + "refs": { + "GetMaintenanceWindowExecutionResult$Status": "

The status of the Maintenance Window execution.

", + "GetMaintenanceWindowExecutionTaskResult$Status": "

The status of the task.

", + "MaintenanceWindowExecution$Status": "

The status of the execution.

", + "MaintenanceWindowExecutionTaskIdentity$Status": "

The status of the task execution.

", + "MaintenanceWindowExecutionTaskInvocationIdentity$Status": "

The status of the task invocation.

" + } + }, + "MaintenanceWindowExecutionStatusDetails": { + "base": null, + "refs": { + "GetMaintenanceWindowExecutionResult$StatusDetails": "

The details explaining the Status. Only available for certain status values.

", + "GetMaintenanceWindowExecutionTaskResult$StatusDetails": "

The details explaining the Status. Only available for certain status values.

", + "MaintenanceWindowExecution$StatusDetails": "

The details explaining the Status. Only available for certain status values.

", + "MaintenanceWindowExecutionTaskIdentity$StatusDetails": "

The details explaining the status of the task execution. Only available for certain status values.

", + "MaintenanceWindowExecutionTaskInvocationIdentity$StatusDetails": "

The details explaining the status of the task invocation. Only available for certain Status values.

" + } + }, + "MaintenanceWindowExecutionTaskExecutionId": { + "base": null, + "refs": { + "MaintenanceWindowExecutionTaskInvocationIdentity$ExecutionId": "

The ID of the action performed in the service that actually handled the task invocation. If the task type is RUN_COMMAND, this value is the command ID.

" + } + }, + "MaintenanceWindowExecutionTaskId": { + "base": null, + "refs": { + "DescribeMaintenanceWindowExecutionTaskInvocationsRequest$TaskId": "

The ID of the specific task in the Maintenance Window task that should be retrieved.

", + "GetMaintenanceWindowExecutionTaskRequest$TaskId": "

The ID of the specific task execution in the Maintenance Window task that should be retrieved.

", + "GetMaintenanceWindowExecutionTaskResult$TaskExecutionId": "

The ID of the specific task execution in the Maintenance Window task that was retrieved.

", + "MaintenanceWindowExecutionTaskIdList$member": null, + "MaintenanceWindowExecutionTaskIdentity$TaskExecutionId": "

The ID of the specific task execution in the Maintenance Window execution.

", + "MaintenanceWindowExecutionTaskInvocationIdentity$TaskExecutionId": "

The ID of the specific task execution in the Maintenance Window execution.

" + } + }, + "MaintenanceWindowExecutionTaskIdList": { + "base": null, + "refs": { + "GetMaintenanceWindowExecutionResult$TaskIds": "

The ID of the task executions from the Maintenance Window execution.

" + } + }, + "MaintenanceWindowExecutionTaskIdentity": { + "base": "

Information about a task execution performed as part of a Maintenance Window execution.

", + "refs": { + "MaintenanceWindowExecutionTaskIdentityList$member": null + } + }, + "MaintenanceWindowExecutionTaskIdentityList": { + "base": null, + "refs": { + "DescribeMaintenanceWindowExecutionTasksResult$WindowExecutionTaskIdentities": "

Information about the task executions.

" + } + }, + "MaintenanceWindowExecutionTaskInvocationId": { + "base": null, + "refs": { + "MaintenanceWindowExecutionTaskInvocationIdentity$InvocationId": "

The ID of the task invocation.

" + } + }, + "MaintenanceWindowExecutionTaskInvocationIdentity": { + "base": "

Describes the information about a task invocation for a particular target as part of a task execution performed as part of a Maintenance Window execution.

", + "refs": { + "MaintenanceWindowExecutionTaskInvocationIdentityList$member": null + } + }, + "MaintenanceWindowExecutionTaskInvocationIdentityList": { + "base": null, + "refs": { + "DescribeMaintenanceWindowExecutionTaskInvocationsResult$WindowExecutionTaskInvocationIdentities": "

Information about the task invocation results per invocation.

" + } + }, + "MaintenanceWindowExecutionTaskInvocationParameters": { + "base": null, + "refs": { + "MaintenanceWindowExecutionTaskInvocationIdentity$Parameters": "

The parameters that were provided for the invocation when it was executed.

" + } + }, + "MaintenanceWindowFilter": { + "base": "

Filter used in the request.

", + "refs": { + "MaintenanceWindowFilterList$member": null + } + }, + "MaintenanceWindowFilterKey": { + "base": null, + "refs": { + "MaintenanceWindowFilter$Key": "

The name of the filter.

" + } + }, + "MaintenanceWindowFilterList": { + "base": null, + "refs": { + "DescribeMaintenanceWindowExecutionTaskInvocationsRequest$Filters": "

Optional filters used to scope down the returned task invocations. The supported filter key is STATUS with the corresponding values PENDING, IN_PROGRESS, SUCCESS, FAILED, TIMED_OUT, CANCELLING, and CANCELLED.

", + "DescribeMaintenanceWindowExecutionTasksRequest$Filters": "

Optional filters used to scope down the returned tasks. The supported filter key is STATUS with the corresponding values PENDING, IN_PROGRESS, SUCCESS, FAILED, TIMED_OUT, CANCELLING, and CANCELLED.

", + "DescribeMaintenanceWindowExecutionsRequest$Filters": "

Each entry in the array is a structure containing:

Key (string, 1 ≤ length ≤ 128)

Values (array of strings 1 ≤ length ≤ 256)

The supported Keys are ExecutedBefore and ExecutedAfter with the value being a date/time string such as 2016-11-04T05:00:00Z.

", + "DescribeMaintenanceWindowTargetsRequest$Filters": "

Optional filters that can be used to narrow down the scope of the returned window targets. The supported filter keys are Type, WindowTargetId and OwnerInformation.

", + "DescribeMaintenanceWindowTasksRequest$Filters": "

Optional filters used to narrow down the scope of the returned tasks. The supported filter keys are WindowTaskId, TaskArn, Priority, and TaskType.

", + "DescribeMaintenanceWindowsRequest$Filters": "

Optional filters used to narrow down the scope of the returned Maintenance Windows. Supported filter keys are Name and Enabled.

" + } + }, + "MaintenanceWindowFilterValue": { + "base": null, + "refs": { + "MaintenanceWindowFilterValues$member": null + } + }, + "MaintenanceWindowFilterValues": { + "base": null, + "refs": { + "MaintenanceWindowFilter$Values": "

The filter values.

" + } + }, + "MaintenanceWindowId": { + "base": null, + "refs": { + "CreateMaintenanceWindowResult$WindowId": "

The ID of the created Maintenance Window.

", + "DeleteMaintenanceWindowRequest$WindowId": "

The ID of the Maintenance Window to delete.

", + "DeleteMaintenanceWindowResult$WindowId": "

The ID of the deleted Maintenance Window.

", + "DeregisterTargetFromMaintenanceWindowRequest$WindowId": "

The ID of the Maintenance Window the target should be removed from.

", + "DeregisterTargetFromMaintenanceWindowResult$WindowId": "

The ID of the Maintenance Window the target was removed from.

", + "DeregisterTaskFromMaintenanceWindowRequest$WindowId": "

The ID of the Maintenance Window the task should be removed from.

", + "DeregisterTaskFromMaintenanceWindowResult$WindowId": "

The ID of the Maintenance Window the task was removed from.

", + "DescribeMaintenanceWindowExecutionsRequest$WindowId": "

The ID of the Maintenance Window whose executions should be retrieved.

", + "DescribeMaintenanceWindowTargetsRequest$WindowId": "

The ID of the Maintenance Window whose targets should be retrieved.

", + "DescribeMaintenanceWindowTasksRequest$WindowId": "

The ID of the Maintenance Window whose tasks should be retrieved.

", + "GetMaintenanceWindowRequest$WindowId": "

The ID of the desired Maintenance Window.

", + "GetMaintenanceWindowResult$WindowId": "

The ID of the created Maintenance Window.

", + "MaintenanceWindowExecution$WindowId": "

The ID of the Maintenance Window.

", + "MaintenanceWindowIdentity$WindowId": "

The ID of the Maintenance Window.

", + "MaintenanceWindowTarget$WindowId": "

The Maintenance Window ID where the target is registered.

", + "MaintenanceWindowTask$WindowId": "

The Maintenance Window ID where the task is registered.

", + "RegisterTargetWithMaintenanceWindowRequest$WindowId": "

The ID of the Maintenance Window the target should be registered with.

", + "RegisterTaskWithMaintenanceWindowRequest$WindowId": "

The id of the Maintenance Window the task should be added to.

", + "UpdateMaintenanceWindowRequest$WindowId": "

The ID of the Maintenance Window to update.

", + "UpdateMaintenanceWindowResult$WindowId": "

The ID of the created Maintenance Window.

" + } + }, + "MaintenanceWindowIdentity": { + "base": "

Information about the Maintenance Window.

", + "refs": { + "MaintenanceWindowIdentityList$member": null + } + }, + "MaintenanceWindowIdentityList": { + "base": null, + "refs": { + "DescribeMaintenanceWindowsResult$WindowIdentities": "

Information about the Maintenance Windows.

" + } + }, + "MaintenanceWindowMaxResults": { + "base": null, + "refs": { + "DescribeMaintenanceWindowExecutionTaskInvocationsRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

", + "DescribeMaintenanceWindowExecutionTasksRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

", + "DescribeMaintenanceWindowExecutionsRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

", + "DescribeMaintenanceWindowTargetsRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

", + "DescribeMaintenanceWindowTasksRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

", + "DescribeMaintenanceWindowsRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

" + } + }, + "MaintenanceWindowName": { + "base": null, + "refs": { + "CreateMaintenanceWindowRequest$Name": "

The name of the Maintenance Window.

", + "GetMaintenanceWindowResult$Name": "

The name of the Maintenance Window.

", + "MaintenanceWindowIdentity$Name": "

The name of the Maintenance Window.

", + "UpdateMaintenanceWindowRequest$Name": "

The name of the Maintenance Window.

", + "UpdateMaintenanceWindowResult$Name": "

The name of the Maintenance Window.

" + } + }, + "MaintenanceWindowResourceType": { + "base": null, + "refs": { + "MaintenanceWindowTarget$ResourceType": "

The type of target.

", + "RegisterTargetWithMaintenanceWindowRequest$ResourceType": "

The type of target being registered with the Maintenance Window.

" + } + }, + "MaintenanceWindowSchedule": { + "base": null, + "refs": { + "CreateMaintenanceWindowRequest$Schedule": "

The schedule of the Maintenance Window in the form of a cron or rate expression.

", + "GetMaintenanceWindowResult$Schedule": "

The schedule of the Maintenance Window in the form of a cron or rate expression.

", + "UpdateMaintenanceWindowRequest$Schedule": "

The schedule of the Maintenance Window in the form of a cron or rate expression.

", + "UpdateMaintenanceWindowResult$Schedule": "

The schedule of the Maintenance Window in the form of a cron or rate expression.

" + } + }, + "MaintenanceWindowTarget": { + "base": "

The target registered with the Maintenance Window.

", + "refs": { + "MaintenanceWindowTargetList$member": null + } + }, + "MaintenanceWindowTargetId": { + "base": null, + "refs": { + "DeregisterTargetFromMaintenanceWindowRequest$WindowTargetId": "

The ID of the target definition to remove.

", + "DeregisterTargetFromMaintenanceWindowResult$WindowTargetId": "

The ID of the removed target definition.

", + "MaintenanceWindowTarget$WindowTargetId": "

The ID of the target.

", + "RegisterTargetWithMaintenanceWindowResult$WindowTargetId": "

The ID of the target definition in this Maintenance Window.

" + } + }, + "MaintenanceWindowTargetList": { + "base": null, + "refs": { + "DescribeMaintenanceWindowTargetsResult$Targets": "

Information about the targets in the Maintenance Window.

" + } + }, + "MaintenanceWindowTask": { + "base": "

Information about a task defined for a Maintenance Window.

", + "refs": { + "MaintenanceWindowTaskList$member": null + } + }, + "MaintenanceWindowTaskArn": { + "base": null, + "refs": { + "GetMaintenanceWindowExecutionTaskResult$TaskArn": "

The ARN of the executed task.

", + "MaintenanceWindowExecutionTaskIdentity$TaskArn": "

The ARN of the executed task.

", + "MaintenanceWindowTask$TaskArn": "

The ARN of the task to execute.

", + "RegisterTaskWithMaintenanceWindowRequest$TaskArn": "

The ARN of the task to execute

" + } + }, + "MaintenanceWindowTaskId": { + "base": null, + "refs": { + "DeregisterTaskFromMaintenanceWindowRequest$WindowTaskId": "

The ID of the task to remove from the Maintenance Window.

", + "DeregisterTaskFromMaintenanceWindowResult$WindowTaskId": "

The ID of the task removed from the Maintenance Window.

", + "MaintenanceWindowTask$WindowTaskId": "

The task ID.

", + "RegisterTaskWithMaintenanceWindowResult$WindowTaskId": "

The id of the task in the Maintenance Window.

" + } + }, + "MaintenanceWindowTaskList": { + "base": null, + "refs": { + "DescribeMaintenanceWindowTasksResult$Tasks": "

Information about the tasks in the Maintenance Window.

" + } + }, + "MaintenanceWindowTaskParameterName": { + "base": null, + "refs": { + "MaintenanceWindowTaskParameters$key": null + } + }, + "MaintenanceWindowTaskParameterValue": { + "base": null, + "refs": { + "MaintenanceWindowTaskParameterValueList$member": null + } + }, + "MaintenanceWindowTaskParameterValueExpression": { + "base": "

Defines the values for a task parameter.

", + "refs": { + "MaintenanceWindowTaskParameters$value": null + } + }, + "MaintenanceWindowTaskParameterValueList": { + "base": null, + "refs": { + "MaintenanceWindowTaskParameterValueExpression$Values": "

This field contains an array of 0 or more strings, each 1 to 255 characters in length.

" + } + }, + "MaintenanceWindowTaskParameters": { + "base": null, + "refs": { + "MaintenanceWindowTask$TaskParameters": "

The parameters that should be passed to the task when it is executed.

", + "MaintenanceWindowTaskParametersList$member": null, + "RegisterTaskWithMaintenanceWindowRequest$TaskParameters": "

The parameters that should be passed to the task when it is executed.

" + } + }, + "MaintenanceWindowTaskParametersList": { + "base": null, + "refs": { + "GetMaintenanceWindowExecutionTaskResult$TaskParameters": "

The parameters passed to the task when it was executed. The map has the following format:

Key: string, 1 ≤ length ≤ 255

Value: an array of strings where each string 1 ≤ length ≤ 255

" + } + }, + "MaintenanceWindowTaskPriority": { + "base": null, + "refs": { + "GetMaintenanceWindowExecutionTaskResult$Priority": "

The priority of the task.

", + "MaintenanceWindowTask$Priority": "

The priority of the task in the Maintenance Window, the lower the number the higher the priority. Tasks in a Maintenance Window are scheduled in priority order with tasks that have the same priority scheduled in parallel.

", + "RegisterTaskWithMaintenanceWindowRequest$Priority": "

The priority of the task in the Maintenance Window, the lower the number the higher the priority. Tasks in a Maintenance Window are scheduled in priority order with tasks that have the same priority scheduled in parallel.

" + } + }, + "MaintenanceWindowTaskTargetId": { + "base": null, + "refs": { + "MaintenanceWindowExecutionTaskInvocationIdentity$WindowTargetId": "

The ID of the target definition in this Maintenance Window the invocation was performed for.

" + } + }, + "MaintenanceWindowTaskType": { + "base": null, + "refs": { + "GetMaintenanceWindowExecutionTaskResult$Type": "

The type of task executed.

", + "MaintenanceWindowExecutionTaskIdentity$TaskType": "

The type of executed task.

", + "MaintenanceWindowTask$Type": "

The type of task.

", + "RegisterTaskWithMaintenanceWindowRequest$TaskType": "

The type of task being registered.

" + } + }, + "ManagedInstanceId": { + "base": null, + "refs": { + "DeregisterManagedInstanceRequest$InstanceId": "

The ID assigned to the managed instance when you registered it using the activation process.

", + "UpdateManagedInstanceRoleRequest$InstanceId": "

The ID of the managed instance where you want to update the role.

" + } + }, + "MaxDocumentSizeExceeded": { + "base": "

The size limit of an SSM document is 64 KB.

", + "refs": { + } + }, + "MaxResults": { + "base": null, + "refs": { + "DescribeActivationsRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

", + "DescribeAutomationExecutionsRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

", + "DescribeInstanceAssociationsStatusRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

", + "DescribeParametersRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

", + "GetInventoryRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

", + "GetParameterHistoryRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

", + "ListAssociationsRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

", + "ListDocumentVersionsRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

", + "ListDocumentsRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

", + "ListInventoryEntriesRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

" + } + }, + "MaxResultsEC2Compatible": { + "base": null, + "refs": { + "DescribeInstanceInformationRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

" } }, - "DocumentStatus": { + "ModifyDocumentPermissionRequest": { "base": null, "refs": { - "DocumentDescription$Status": "

The status of the SSM document.

" } }, - "DuplicateInstanceId": { - "base": "

You cannot specify an instance ID in more than one association.

", + "ModifyDocumentPermissionResponse": { + "base": null, "refs": { } }, - "ExpirationDate": { + "NextToken": { "base": null, "refs": { - "Activation$ExpirationDate": "

The date when this activation can no longer be used to register managed instances.

", - "CreateActivationRequest$ExpirationDate": "

The date by which this activation request should expire. The default value is 24 hours.

" + "DescribeActivationsRequest$NextToken": "

A token to start the list. Use this token to get the next set of results.

", + "DescribeActivationsResult$NextToken": "

The token for the next set of items to return. Use this token to get the next set of results.

", + "DescribeAutomationExecutionsRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "DescribeAutomationExecutionsResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribeAvailablePatchesRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "DescribeAvailablePatchesResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribeEffectiveInstanceAssociationsRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "DescribeEffectiveInstanceAssociationsResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribeEffectivePatchesForPatchBaselineRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "DescribeEffectivePatchesForPatchBaselineResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribeInstanceAssociationsStatusRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "DescribeInstanceAssociationsStatusResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribeInstanceInformationRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "DescribeInstanceInformationResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribeInstancePatchStatesForPatchGroupRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "DescribeInstancePatchStatesForPatchGroupResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribeInstancePatchStatesRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "DescribeInstancePatchStatesResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribeInstancePatchesRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "DescribeInstancePatchesResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribeMaintenanceWindowExecutionTaskInvocationsRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "DescribeMaintenanceWindowExecutionTaskInvocationsResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribeMaintenanceWindowExecutionTasksRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "DescribeMaintenanceWindowExecutionTasksResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribeMaintenanceWindowExecutionsRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "DescribeMaintenanceWindowExecutionsResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribeMaintenanceWindowTargetsRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "DescribeMaintenanceWindowTargetsResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribeMaintenanceWindowTasksRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "DescribeMaintenanceWindowTasksResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribeMaintenanceWindowsRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "DescribeMaintenanceWindowsResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribeParametersRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "DescribeParametersResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribePatchBaselinesRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "DescribePatchBaselinesResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribePatchGroupsRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "DescribePatchGroupsResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "GetInventoryRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "GetInventoryResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "GetInventorySchemaRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "GetInventorySchemaResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "GetParameterHistoryRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "GetParameterHistoryResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "ListAssociationsRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "ListAssociationsResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "ListCommandInvocationsRequest$NextToken": "

(Optional) The token for the next set of items to return. (You received this token from a previous call.)

", + "ListCommandInvocationsResult$NextToken": "

(Optional) The token for the next set of items to return. (You received this token from a previous call.)

", + "ListCommandsRequest$NextToken": "

(Optional) The token for the next set of items to return. (You received this token from a previous call.)

", + "ListCommandsResult$NextToken": "

(Optional) The token for the next set of items to return. (You received this token from a previous call.)

", + "ListDocumentVersionsRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "ListDocumentVersionsResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "ListDocumentsRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "ListDocumentsResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "ListInventoryEntriesRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "ListInventoryEntriesResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

" } }, - "FailedCreateAssociation": { - "base": "

Describes a failed association.

", + "NormalStringMap": { + "base": null, "refs": { - "FailedCreateAssociationList$member": null + "StepExecution$Inputs": "

Fully-resolved values passed into the step before execution.

" } }, - "FailedCreateAssociationList": { + "NotificationArn": { "base": null, "refs": { - "CreateAssociationBatchResult$Failed": "

Information about the associations that failed.

" + "NotificationConfig$NotificationArn": "

An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic. Run Command pushes notifications about command status changes to this topic.

" } }, - "Fault": { + "NotificationConfig": { + "base": "

Configurations for sending notifications.

", + "refs": { + "Command$NotificationConfig": "

Configurations for sending notifications about command status changes.

", + "CommandInvocation$NotificationConfig": "

Configurations for sending notifications about command status changes on a per instance basis.

", + "SendCommandRequest$NotificationConfig": "

Configurations for sending notifications.

" + } + }, + "NotificationEvent": { "base": null, "refs": { - "FailedCreateAssociation$Fault": "

The source of the failure.

" + "NotificationEventList$member": null } }, - "GetDocumentRequest": { + "NotificationEventList": { "base": null, "refs": { + "NotificationConfig$NotificationEvents": "

The different events for which you can receive notifications. These events include the following: All (events), InProgress, Success, TimedOut, Cancelled, Failed. To learn more about these events, see Monitoring Commands in the Amazon Elastic Compute Cloud User Guide .

" } }, - "GetDocumentResult": { + "NotificationType": { "base": null, "refs": { + "NotificationConfig$NotificationType": "

Command: Receive notification when the status of a command changes. Invocation: For commands sent to multiple instances, receive notification on a per-instance basis when the status of a command changes.

" } }, - "IPAddress": { + "OwnerInformation": { "base": null, "refs": { - "InstanceInformation$IPAddress": "

The IP address of the managed instance.

" + "InstancePatchState$OwnerInformation": "

Placeholder information, this field will always be empty in the current release of the service.

", + "MaintenanceWindowExecutionTaskInvocationIdentity$OwnerInformation": "

User-provided value that was specified when the target was registered with the Maintenance Window. This was also included in any CloudWatch events raised during the task invocation.

", + "MaintenanceWindowTarget$OwnerInformation": "

User-provided value that will be included in any CloudWatch events raised while running tasks for these targets in this Maintenance Window.

", + "RegisterTargetWithMaintenanceWindowRequest$OwnerInformation": "

User-provided value that will be included in any CloudWatch events raised while running tasks for these targets in this Maintenance Window.

" } }, - "IamRole": { + "PSParameterName": { "base": null, "refs": { - "Activation$IamRole": "

The Amazon Identity and Access Management (IAM) role to assign to the managed instance.

", - "CreateActivationRequest$IamRole": "

The Amazon Identity and Access Management (IAM) role that you want to assign to the managed instance.

", - "InstanceInformation$IamRole": "

The Amazon Identity and Access Management (IAM) role assigned to EC2 instances or managed instances.

", - "UpdateManagedInstanceRoleRequest$IamRole": "

The IAM role you want to assign or change.

" + "DeleteParameterRequest$Name": "

The name of the parameter to delete.

", + "GetParameterHistoryRequest$Name": "

The name of a parameter you want to query.

", + "Parameter$Name": "

The name of the parameter.

", + "ParameterHistory$Name": "

The name of the parameter.

", + "ParameterMetadata$Name": "

The parameter name.

", + "ParameterNameList$member": null, + "PutParameterRequest$Name": "

The name of the parameter that you want to add to the system.

" } }, - "InstanceId": { + "PSParameterValue": { "base": null, "refs": { - "Association$InstanceId": "

The ID of the instance.

", - "AssociationDescription$InstanceId": "

The ID of the instance.

", - "CommandInvocation$InstanceId": "

The instance ID in which this invocation was requested.

", - "CreateAssociationBatchRequestEntry$InstanceId": "

The ID of the instance.

", - "CreateAssociationRequest$InstanceId": "

The instance ID.

", - "DeleteAssociationRequest$InstanceId": "

The ID of the instance.

", - "DescribeAssociationRequest$InstanceId": "

The instance ID.

", - "InstanceIdList$member": null, - "InstanceInformation$InstanceId": "

The instance ID.

", - "ListCommandInvocationsRequest$InstanceId": "

(Optional) The command execution details for a specific instance ID.

", - "ListCommandsRequest$InstanceId": "

(Optional) Lists commands issued against this instance ID.

", - "UpdateAssociationStatusRequest$InstanceId": "

The ID of the instance.

" + "Parameter$Value": "

The parameter value.

", + "ParameterHistory$Value": "

The parameter value.

", + "PutParameterRequest$Value": "

The parameter value that you want to add to the system.

" } }, - "InstanceIdList": { + "Parameter": { + "base": "

An Amazon EC2 Systems Manager parameter in Parameter Store.

", + "refs": { + "ParameterList$member": null + } + }, + "ParameterAlreadyExists": { + "base": "

The parameter already exists. You can't create duplicate parameters.

", + "refs": { + } + }, + "ParameterDescription": { "base": null, "refs": { - "CancelCommandRequest$InstanceIds": "

(Optional) A list of instance IDs on which you want to cancel the command. If not provided, the command is canceled on every instance on which it was requested.

", - "Command$InstanceIds": "

The instance IDs against which this command was requested.

", - "SendCommandRequest$InstanceIds": "

Required. The instance IDs where the command should execute. You can specify a maximum of 50 IDs.

" + "ParameterHistory$Description": "

Information about the parameter.

", + "ParameterMetadata$Description": "

Description of the parameter actions.

", + "PutParameterRequest$Description": "

Information about the parameter that you want to add to the system

" } }, - "InstanceInformation": { - "base": "

Describes a filter for a specific list of instances.

", + "ParameterHistory": { + "base": "

Information about parameter usage.

", "refs": { - "InstanceInformationList$member": null + "ParameterHistoryList$member": null } }, - "InstanceInformationFilter": { - "base": "

Describes a filter for a specific list of instances.

", + "ParameterHistoryList": { + "base": null, "refs": { - "InstanceInformationFilterList$member": null + "GetParameterHistoryResult$Parameters": "

A list of parameters returned by the request.

" } }, - "InstanceInformationFilterKey": { + "ParameterKeyId": { "base": null, "refs": { - "InstanceInformationFilter$key": "

The name of the filter.

" + "ParameterHistory$KeyId": "

The ID of the query key used for this parameter.

", + "ParameterMetadata$KeyId": "

The ID of the query key used for this parameter.

", + "PutParameterRequest$KeyId": "

The parameter key ID that you want to add to the system.

" } }, - "InstanceInformationFilterList": { + "ParameterLimitExceeded": { + "base": "

You have exceeded the number of parameters for this AWS account. Delete one or more parameters and try again.

", + "refs": { + } + }, + "ParameterList": { "base": null, "refs": { - "DescribeInstanceInformationRequest$InstanceInformationFilterList": "

One or more filters. Use a filter to return a more specific list of instances.

" + "GetParametersResult$Parameters": "

A list of parameters used by the AWS account.

" } }, - "InstanceInformationFilterValue": { + "ParameterMetadata": { + "base": "

Metada includes information like the ARN of the last user and the date/time the parameter was last used.

", + "refs": { + "ParameterMetadataList$member": null + } + }, + "ParameterMetadataList": { "base": null, "refs": { - "InstanceInformationFilterValueSet$member": null + "DescribeParametersResult$Parameters": "

Parameters returned by the request.

" } }, - "InstanceInformationFilterValueSet": { + "ParameterName": { "base": null, "refs": { - "InstanceInformationFilter$valueSet": "

The filter values.

" + "Parameters$key": null } }, - "InstanceInformationList": { + "ParameterNameList": { "base": null, "refs": { - "DescribeInstanceInformationResult$InstanceInformationList": "

The instance information list.

" + "GetParametersRequest$Names": "

Names of the parameters for which you want to query information.

", + "GetParametersResult$InvalidParameters": "

A list of parameters that are not formatted correctly or do not run when executed.

" } }, - "InternalServerError": { - "base": "

An error occurred on the server side.

", + "ParameterNotFound": { + "base": "

The parameter could not be found. Verify the name and try again.

", "refs": { } }, - "InvalidActivation": { - "base": "

The activation is not valid. The activation might have been deleted, or the ActivationId and the ActivationCode do not match.

", + "ParameterType": { + "base": null, "refs": { + "Parameter$Type": "

The type of parameter. Valid values include the following: String, String list, Secure string.

", + "ParameterHistory$Type": "

The type of parameter used.

", + "ParameterMetadata$Type": "

The type of parameter. Valid parameter types include the following: String, String list, Secure string.

", + "PutParameterRequest$Type": "

The type of parameter that you want to add to the system.

" } }, - "InvalidActivationId": { - "base": "

The activation ID is not valid. Verify the you entered the correct ActivationId or ActivationCode and try again.

", + "ParameterValue": { + "base": null, "refs": { + "ParameterValueList$member": null } }, - "InvalidCommandId": { + "ParameterValueList": { "base": null, "refs": { + "Parameters$value": null } }, - "InvalidDocument": { - "base": "

The specified document does not exist.

", + "Parameters": { + "base": null, + "refs": { + "AssociationDescription$Parameters": "

A description of the parameters for a document.

", + "Command$Parameters": "

The parameter values to be inserted in the SSM document when executing the command.

", + "CreateAssociationBatchRequestEntry$Parameters": "

A description of the parameters for a document.

", + "CreateAssociationRequest$Parameters": "

The parameters for the documents runtime configuration.

", + "SendCommandRequest$Parameters": "

The required and optional parameters specified in the SSM document being executed.

", + "UpdateAssociationRequest$Parameters": "

The parameters you want to update for the association. If you create a parameter using Parameter Store, you can reference the parameter using {{ssm:parameter-name}}

" + } + }, + "ParametersFilter": { + "base": "

One or more filters. Use a filter to return a more specific list of results.

", "refs": { + "ParametersFilterList$member": null } }, - "InvalidDocumentContent": { - "base": "

The content for the SSM document is not valid.

", + "ParametersFilterKey": { + "base": null, "refs": { + "ParametersFilter$Key": "

The name of the filter.

" } }, - "InvalidDocumentOperation": { - "base": "

You attempted to delete a document while it is still shared. You must stop sharing the document before you can delete it.

", + "ParametersFilterList": { + "base": null, "refs": { + "DescribeParametersRequest$Filters": "

One or more filters. Use a filter to return a more specific list of results.

" } }, - "InvalidFilter": { - "base": "

The filter name is not valid. Verify the you entered the correct name and try again.

", + "ParametersFilterValue": { + "base": null, "refs": { + "ParametersFilterValueList$member": null } }, - "InvalidFilterKey": { - "base": "

The specified key is not valid.

", + "ParametersFilterValueList": { + "base": null, "refs": { + "ParametersFilter$Values": "

The filter values.

" } }, - "InvalidInstanceId": { - "base": "

The instance is not in valid state. Valid states are: Running, Pending, Stopped, Stopping. Invalid states are: Shutting-down and Terminated.

", + "Patch": { + "base": "

Represents metadata about a patch.

", "refs": { + "EffectivePatch$Patch": "

Provides metadata for a patch, including information such as the KB ID, severity, classification and a URL for where more information can be obtained about the patch.

", + "PatchList$member": null } }, - "InvalidInstanceInformationFilterValue": { - "base": "

The specified filter value is not valid.

", + "PatchBaselineIdentity": { + "base": "

Defines the basic information about a patch baseline.

", "refs": { + "PatchBaselineIdentityList$member": null, + "PatchGroupPatchBaselineMapping$BaselineIdentity": "

The patch baseline the patch group is registered with.

" } }, - "InvalidNextToken": { - "base": "

The specified token is not valid.

", + "PatchBaselineIdentityList": { + "base": null, "refs": { + "DescribePatchBaselinesResult$BaselineIdentities": "

An array of PatchBaselineIdentity elements.

" } }, - "InvalidNotificationConfig": { - "base": "

One or more configuration items is not valid. Verify that a valid Amazon Resource Name (ARN) was provided for an Amazon SNS topic.

", + "PatchBaselineMaxResults": { + "base": null, "refs": { + "DescribeAvailablePatchesRequest$MaxResults": "

The maximum number of patches to return (per page).

", + "DescribeEffectivePatchesForPatchBaselineRequest$MaxResults": "

The maximum number of patches to return (per page).

", + "DescribePatchBaselinesRequest$MaxResults": "

The maximum number of patch baselines to return (per page).

", + "DescribePatchGroupsRequest$MaxResults": "

The maximum number of patch groups to return (per page).

" } }, - "InvalidOutputFolder": { - "base": "

The S3 bucket does not exist.

", + "PatchClassification": { + "base": null, + "refs": { + "Patch$Classification": "

The classification of the patch (for example, SecurityUpdates, Updates, CriticalUpdates).

", + "PatchComplianceData$Classification": "

The classification of the patch (for example, SecurityUpdates, Updates, CriticalUpdates).

" + } + }, + "PatchComplianceData": { + "base": "

Information about the state of a patch on a particular instance as it relates to the patch baseline used to patch the instance.

", + "refs": { + "PatchComplianceDataList$member": null + } + }, + "PatchComplianceDataList": { + "base": null, + "refs": { + "DescribeInstancePatchesResult$Patches": "

Each entry in the array is a structure containing:

Title (string)

KBId (string)

Classification (string)

Severity (string)

State (string – “INSTALLED”, “INSTALLED_OTHER”, “MISSING”, “NOT_APPLICABLE”, “FAILED”)

InstalledTime (DateTime)

InstalledBy (string)

" + } + }, + "PatchComplianceDataState": { + "base": null, + "refs": { + "PatchComplianceData$State": "

The state of the patch on the instance (INSTALLED, INSTALLED_OTHER, MISSING, NOT_APPLICABLE or FAILED).

" + } + }, + "PatchComplianceMaxResults": { + "base": null, + "refs": { + "DescribeInstancePatchStatesForPatchGroupRequest$MaxResults": "

The maximum number of patches to return (per page).

", + "DescribeInstancePatchStatesRequest$MaxResults": "

The maximum number of instances to return (per page).

", + "DescribeInstancePatchesRequest$MaxResults": "

The maximum number of patches to return (per page).

" + } + }, + "PatchContentUrl": { + "base": null, + "refs": { + "Patch$ContentUrl": "

The URL where more information can be obtained about the patch.

" + } + }, + "PatchDeploymentStatus": { + "base": null, + "refs": { + "PatchStatus$DeploymentStatus": "

The approval status of a patch (APPROVED, PENDING_APPROVAL, EXPLICIT_APPROVED, EXPLICIT_REJECTED).

" + } + }, + "PatchDescription": { + "base": null, + "refs": { + "Patch$Description": "

The description of the patch.

" + } + }, + "PatchFailedCount": { + "base": null, + "refs": { + "InstancePatchState$FailedCount": "

The number of patches from the patch baseline that were attempted to be installed during the last patching operation, but failed to install.

" + } + }, + "PatchFilter": { + "base": "

Defines a patch filter.

", + "refs": { + "PatchFilterList$member": null + } + }, + "PatchFilterGroup": { + "base": "

A set of patch filters, typically used for approval rules.

", + "refs": { + "CreatePatchBaselineRequest$GlobalFilters": "

A set of global filters used to exclude patches from the baseline.

", + "GetPatchBaselineResult$GlobalFilters": "

A set of global filters used to exclude patches from the baseline.

", + "PatchRule$PatchFilterGroup": "

The patch filter group that defines the criteria for the rule.

", + "UpdatePatchBaselineRequest$GlobalFilters": "

A set of global filters used to exclude patches from the baseline.

", + "UpdatePatchBaselineResult$GlobalFilters": "

A set of global filters used to exclude patches from the baseline.

" + } + }, + "PatchFilterKey": { + "base": null, + "refs": { + "PatchFilter$Key": "

The key for the filter (PRODUCT, CLASSIFICATION, MSRC_SEVERITY, PATCH_ID)

" + } + }, + "PatchFilterList": { + "base": null, + "refs": { + "PatchFilterGroup$PatchFilters": "

The set of patch filters that make up the group.

" + } + }, + "PatchFilterValue": { + "base": null, + "refs": { + "PatchFilterValueList$member": null + } + }, + "PatchFilterValueList": { + "base": null, + "refs": { + "PatchFilter$Values": "

The value for the filter key.

" + } + }, + "PatchGroup": { + "base": null, + "refs": { + "DeregisterPatchBaselineForPatchGroupRequest$PatchGroup": "

The name of the patch group that should be deregistered from the patch baseline.

", + "DeregisterPatchBaselineForPatchGroupResult$PatchGroup": "

The name of the patch group deregistered from the patch baseline.

", + "DescribeInstancePatchStatesForPatchGroupRequest$PatchGroup": "

The name of the patch group for which the patch state information should be retrieved.

", + "DescribePatchGroupStateRequest$PatchGroup": "

The name of the patch group whose patch snapshot should be retrieved.

", + "GetPatchBaselineForPatchGroupRequest$PatchGroup": "

The name of the patch group whose patch baseline should be retrieved.

", + "GetPatchBaselineForPatchGroupResult$PatchGroup": "

The name of the patch group.

", + "InstancePatchState$PatchGroup": "

The name of the patch group the managed instance belongs to.

", + "PatchGroupList$member": null, + "PatchGroupPatchBaselineMapping$PatchGroup": "

The name of the patch group registered with the patch baseline.

", + "RegisterPatchBaselineForPatchGroupRequest$PatchGroup": "

The name of the patch group that should be registered with the patch baseline.

", + "RegisterPatchBaselineForPatchGroupResult$PatchGroup": "

The name of the patch group registered with the patch baseline.

" + } + }, + "PatchGroupList": { + "base": null, + "refs": { + "GetPatchBaselineResult$PatchGroups": "

Patch groups included in the patch baseline.

" + } + }, + "PatchGroupPatchBaselineMapping": { + "base": "

The mapping between a patch group and the patch baseline the patch group is registered with.

", + "refs": { + "PatchGroupPatchBaselineMappingList$member": null + } + }, + "PatchGroupPatchBaselineMappingList": { + "base": null, + "refs": { + "DescribePatchGroupsResult$Mappings": "

Each entry in the array contains:

PatchGroup: string (1 ≤ length ≤ 256, Regex: ^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$)

PatchBaselineIdentity: A PatchBaselineIdentity element.

" + } + }, + "PatchId": { + "base": null, + "refs": { + "Patch$Id": "

The ID of the patch (this is different than the Microsoft Knowledge Base ID).

", + "PatchIdList$member": null + } + }, + "PatchIdList": { + "base": null, + "refs": { + "CreatePatchBaselineRequest$ApprovedPatches": "

A list of explicitly approved patches for the baseline.

", + "CreatePatchBaselineRequest$RejectedPatches": "

A list of explicitly rejected patches for the baseline.

", + "GetPatchBaselineResult$ApprovedPatches": "

A list of explicitly approved patches for the baseline.

", + "GetPatchBaselineResult$RejectedPatches": "

A list of explicitly rejected patches for the baseline.

", + "UpdatePatchBaselineRequest$ApprovedPatches": "

A list of explicitly approved patches for the baseline.

", + "UpdatePatchBaselineRequest$RejectedPatches": "

A list of explicitly rejected patches for the baseline.

", + "UpdatePatchBaselineResult$ApprovedPatches": "

A list of explicitly approved patches for the baseline.

", + "UpdatePatchBaselineResult$RejectedPatches": "

A list of explicitly rejected patches for the baseline.

" + } + }, + "PatchInstalledCount": { + "base": null, + "refs": { + "InstancePatchState$InstalledCount": "

The number of patches from the patch baseline that are installed on the instance.

" + } + }, + "PatchInstalledOtherCount": { + "base": null, + "refs": { + "InstancePatchState$InstalledOtherCount": "

The number of patches not specified in the patch baseline that are installed on the instance.

" + } + }, + "PatchInstalledTime": { + "base": null, + "refs": { + "PatchComplianceData$InstalledTime": "

The date/time the patch was installed on the instance.

" + } + }, + "PatchKbNumber": { + "base": null, + "refs": { + "Patch$KbNumber": "

The Microsoft Knowledge Base ID of the patch.

", + "PatchComplianceData$KBId": "

The Microsoft Knowledge Base ID of the patch.

" + } + }, + "PatchLanguage": { + "base": null, + "refs": { + "Patch$Language": "

The language of the patch if it’s language-specific.

" + } + }, + "PatchList": { + "base": null, "refs": { + "DescribeAvailablePatchesResult$Patches": "

An array of patches. Each entry in the array is a patch structure.

" } }, - "InvalidParameters": { - "base": "

You must specify values for all required parameters in the SSM document. You can only supply values to parameters defined in the SSM document.

", + "PatchMissingCount": { + "base": null, "refs": { + "InstancePatchState$MissingCount": "

The number of patches from the patch baseline that are applicable for the instance but aren’t currently installed.

" } }, - "InvalidPermissionType": { - "base": "

The permission type is not supported. Share is the only supported permission type.

", + "PatchMsrcNumber": { + "base": null, "refs": { + "Patch$MsrcNumber": "

The ID of the MSRC bulletin the patch is related to.

" } }, - "InvalidResourceId": { - "base": "

The resource ID is not valid. Verify that you entered the correct ID and try again.

", + "PatchMsrcSeverity": { + "base": null, "refs": { + "Patch$MsrcSeverity": "

The severity of the patch (for example Critical, Important, Moderate).

" } }, - "InvalidResourceType": { - "base": "

The resource type is not valid. If you are attempting to tag an instance, the instance must be a registered, managed instance.

", + "PatchNotApplicableCount": { + "base": null, "refs": { + "InstancePatchState$NotApplicableCount": "

The number of patches from the patch baseline that aren’t applicable for the instance and hence aren’t installed on the instance.

" } }, - "InvalidRole": { - "base": "

The role name can't contain invalid characters. Also verify that you specified an IAM role for notifications that includes the required trust policy. For information about configuring the IAM role for SSM notifications, see Configuring SNS Notifications SSM in the Amazon Elastic Compute Cloud User Guide .

", + "PatchOperationEndTime": { + "base": null, "refs": { + "InstancePatchState$OperationEndTime": "

The time the most recent patching operation completed on the instance.

" } }, - "InvocationTraceOutput": { + "PatchOperationStartTime": { "base": null, "refs": { - "CommandInvocation$TraceOutput": "

Gets the trace output sent by the agent.

" + "InstancePatchState$OperationStartTime": "

The time the most recent patching operation was started on the instance.

" } }, - "KeyList": { + "PatchOperationType": { "base": null, "refs": { - "RemoveTagsFromResourceRequest$TagKeys": "

Tag keys that you want to remove from the specified resource.

" + "InstancePatchState$Operation": "

The type of patching operation that was performed: SCAN (assess patch compliance state) or INSTALL (install missing patches).

" } }, - "ListAssociationsRequest": { - "base": null, + "PatchOrchestratorFilter": { + "base": "

Defines a filter used in Patch Manager APIs.

", "refs": { + "PatchOrchestratorFilterList$member": null } }, - "ListAssociationsResult": { + "PatchOrchestratorFilterKey": { "base": null, "refs": { + "PatchOrchestratorFilter$Key": "

The key for the filter.

" } }, - "ListCommandInvocationsRequest": { + "PatchOrchestratorFilterList": { "base": null, "refs": { + "DescribeAvailablePatchesRequest$Filters": "

Filters used to scope down the returned patches.

", + "DescribeInstancePatchesRequest$Filters": "

Each entry in the array is a structure containing:

Key (string, 1 ≤ length ≤ 128)

Values (array of strings 1 ≤ length ≤ 256)

", + "DescribePatchBaselinesRequest$Filters": "

Each element in the array is a structure containing:

Key: (string, “NAME_PREFIX” or “OWNER”)

Value: (array of strings, exactly 1 entry, 1 ≤ length ≤ 255)

" } }, - "ListCommandInvocationsResult": { + "PatchOrchestratorFilterValue": { "base": null, "refs": { + "PatchOrchestratorFilterValues$member": null } }, - "ListCommandsRequest": { + "PatchOrchestratorFilterValues": { "base": null, "refs": { + "PatchOrchestratorFilter$Values": "

The value for the filter.

" } }, - "ListCommandsResult": { + "PatchProduct": { "base": null, "refs": { + "Patch$Product": "

The specific product the patch is applicable for (for example, WindowsServer2016).

" } }, - "ListDocumentsRequest": { + "PatchProductFamily": { "base": null, "refs": { + "Patch$ProductFamily": "

The product family the patch is applicable for (for example, Windows).

" } }, - "ListDocumentsResult": { - "base": null, + "PatchRule": { + "base": "

Defines an approval rule for a patch baseline.

", "refs": { + "PatchRuleList$member": null } }, - "ListTagsForResourceRequest": { - "base": null, + "PatchRuleGroup": { + "base": "

A set of rules defining the approval rules for a patch baseline.

", "refs": { + "CreatePatchBaselineRequest$ApprovalRules": "

A set of rules used to include patches in the baseline.

", + "GetPatchBaselineResult$ApprovalRules": "

A set of rules used to include patches in the baseline.

", + "UpdatePatchBaselineRequest$ApprovalRules": "

A set of rules used to include patches in the baseline.

", + "UpdatePatchBaselineResult$ApprovalRules": "

A set of rules used to include patches in the baseline.

" } }, - "ListTagsForResourceResult": { + "PatchRuleList": { "base": null, "refs": { + "PatchRuleGroup$PatchRules": "

The rules that make up the rule group.

" } }, - "ManagedInstanceId": { + "PatchSeverity": { "base": null, "refs": { - "DeregisterManagedInstanceRequest$InstanceId": "

The ID assigned to the managed instance when you registered it using the activation process.

", - "UpdateManagedInstanceRoleRequest$InstanceId": "

The ID of the managed instance where you want to update the role.

" + "PatchComplianceData$Severity": "

The severity of the patch (for example, Critical, Important, Moderate).

" } }, - "MaxDocumentSizeExceeded": { - "base": "

The size limit of an SSM document is 64 KB.

", + "PatchStatus": { + "base": "

Information about the approval status of a patch.

", "refs": { + "EffectivePatch$PatchStatus": "

The status of the patch in a patch baseline. This includes information about whether the patch is currently approved, due to be approved by a rule, explicitly approved, or explicitly rejected and the date the patch was or will be approved.

" } }, - "MaxResults": { + "PatchTitle": { "base": null, "refs": { - "DescribeActivationsRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

", - "ListAssociationsRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

", - "ListDocumentsRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

" + "Patch$Title": "

The title of the patch.

", + "PatchComplianceData$Title": "

The title of the patch.

" } }, - "MaxResultsEC2Compatible": { + "PatchVendor": { "base": null, "refs": { - "DescribeInstanceInformationRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

" + "Patch$Vendor": "

The name of the vendor providing the patch.

" } }, - "ModifyDocumentPermissionRequest": { + "PingStatus": { "base": null, "refs": { + "InstanceInformation$PingStatus": "

Connection status of the SSM agent.

" } }, - "ModifyDocumentPermissionResponse": { + "PlatformType": { "base": null, "refs": { + "InstanceInformation$PlatformType": "

The operating system platform type.

", + "PlatformTypeList$member": null } }, - "NextToken": { + "PlatformTypeList": { "base": null, "refs": { - "DescribeActivationsRequest$NextToken": "

A token to start the list. Use this token to get the next set of results.

", - "DescribeActivationsResult$NextToken": "

The token for the next set of items to return. Use this token to get the next set of results.

", - "DescribeInstanceInformationRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", - "DescribeInstanceInformationResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", - "ListAssociationsRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", - "ListAssociationsResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", - "ListCommandInvocationsRequest$NextToken": "

(Optional) The token for the next set of items to return. (You received this token from a previous call.)

", - "ListCommandInvocationsResult$NextToken": "

(Optional) The token for the next set of items to return. (You received this token from a previous call.)

", - "ListCommandsRequest$NextToken": "

(Optional) The token for the next set of items to return. (You received this token from a previous call.)

", - "ListCommandsResult$NextToken": "

(Optional) The token for the next set of items to return. (You received this token from a previous call.)

", - "ListDocumentsRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", - "ListDocumentsResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

" + "DocumentDescription$PlatformTypes": "

The list of OS platforms compatible with this SSM document.

", + "DocumentIdentifier$PlatformTypes": "

The operating system platform.

" } }, - "NotificationArn": { + "PutInventoryRequest": { "base": null, "refs": { - "NotificationConfig$NotificationArn": "

An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic. SSM pushes notifications about command status changes to this topic.

" } }, - "NotificationConfig": { - "base": "

Configurations for sending notifications.

", + "PutInventoryResult": { + "base": null, "refs": { - "Command$NotificationConfig": "

Configurations for sending notifications about command status changes.

", - "CommandInvocation$NotificationConfig": "

Configurations for sending notifications about command status changes on a per instance basis.

", - "SendCommandRequest$NotificationConfig": "

Configurations for sending notifications.

" } }, - "NotificationEvent": { + "PutParameterRequest": { "base": null, "refs": { - "NotificationEventList$member": null } }, - "NotificationEventList": { + "PutParameterResult": { "base": null, "refs": { - "NotificationConfig$NotificationEvents": "

The different events for which you can receive notifications. These events include the following: All (events), InProgress, Success, TimedOut, Cancelled, Failed. To learn more about these events, see Monitoring Commands in the Amazon Elastic Compute Cloud User Guide .

" } }, - "NotificationType": { + "RegisterDefaultPatchBaselineRequest": { "base": null, "refs": { - "NotificationConfig$NotificationType": "

Command: Receive notification when the status of a command changes. Invocation: For commands sent to multiple instances, receive notification on a per-instance basis when the status of a command changes.

" } }, - "ParameterName": { + "RegisterDefaultPatchBaselineResult": { "base": null, "refs": { - "Parameters$key": null } }, - "ParameterValue": { + "RegisterPatchBaselineForPatchGroupRequest": { "base": null, "refs": { - "ParameterValueList$member": null } }, - "ParameterValueList": { + "RegisterPatchBaselineForPatchGroupResult": { "base": null, "refs": { - "Parameters$value": null } }, - "Parameters": { + "RegisterTargetWithMaintenanceWindowRequest": { "base": null, "refs": { - "AssociationDescription$Parameters": "

A description of the parameters for a document.

", - "Command$Parameters": "

The parameter values to be inserted in the SSM document when executing the command.

", - "CreateAssociationBatchRequestEntry$Parameters": "

A description of the parameters for a document.

", - "CreateAssociationRequest$Parameters": "

The parameters for the documents runtime configuration.

", - "SendCommandRequest$Parameters": "

The required and optional parameters specified in the SSM document being executed.

" } }, - "PingStatus": { + "RegisterTargetWithMaintenanceWindowResult": { "base": null, "refs": { - "InstanceInformation$PingStatus": "

Connection status of the SSM agent.

" } }, - "PlatformType": { + "RegisterTaskWithMaintenanceWindowRequest": { "base": null, "refs": { - "InstanceInformation$PlatformType": "

The operating system platform type.

", - "PlatformTypeList$member": null } }, - "PlatformTypeList": { + "RegisterTaskWithMaintenanceWindowResult": { "base": null, "refs": { - "DocumentDescription$PlatformTypes": "

The list of OS platforms compatible with this SSM document.

", - "DocumentIdentifier$PlatformTypes": "

The operating system platform.

" } }, "RegistrationLimit": { @@ -1127,6 +3414,16 @@ "RemoveTagsFromResourceRequest$ResourceId": "

The resource ID for which you want to remove tags.

" } }, + "ResourceInUseException": { + "base": "

Error returned if an attempt is made to delete a patch baseline that is registered for a patch group.

", + "refs": { + } + }, + "ResourceLimitExceededException": { + "base": "

Error returned when the caller has exceeded the default resource limits (e.g. too many Maintenance Windows have been created).

", + "refs": { + } + }, "ResourceType": { "base": null, "refs": { @@ -1144,14 +3441,29 @@ "ResponseCode": { "base": null, "refs": { - "CommandPlugin$ResponseCode": "

A numeric response code generated after executing the plugin.

" + "CommandPlugin$ResponseCode": "

A numeric response code generated after executing the plugin.

", + "GetCommandInvocationResult$ResponseCode": "

The error level response code for the plugin script. If the response code is -1, then the command has not started executing on the instance, or it was not received by the instance.

" + } + }, + "ResultAttribute": { + "base": "

The inventory item result attribute.

", + "refs": { + "ResultAttributeList$member": null + } + }, + "ResultAttributeList": { + "base": null, + "refs": { + "GetInventoryRequest$ResultAttributes": "

The list of inventory item types to return.

" } }, "S3BucketName": { "base": null, "refs": { "Command$OutputS3BucketName": "

The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command.

", - "CommandPlugin$OutputS3BucketName": "

The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command.

", + "CommandPlugin$OutputS3BucketName": "

The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command. For example, in the following response:

test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript

test_folder is the name of the Amazon S3 bucket;

ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;

i-1234567876543 is the instance ID;

awsrunShellScript is the name of the plugin.

", + "LoggingInfo$S3BucketName": "

The name of an Amazon S3 bucket where execution logs are stored .

", + "S3OutputLocation$OutputS3BucketName": "

The name of the Amazon S3 bucket.

", "SendCommandRequest$OutputS3BucketName": "

The name of the S3 bucket where command execution responses should be stored.

" } }, @@ -1159,10 +3471,44 @@ "base": null, "refs": { "Command$OutputS3KeyPrefix": "

The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command.

", - "CommandPlugin$OutputS3KeyPrefix": "

The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command.

", + "CommandPlugin$OutputS3KeyPrefix": "

The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command. For example, in the following response:

test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript

test_folder is the name of the Amazon S3 bucket;

ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;

i-1234567876543 is the instance ID;

awsrunShellScript is the name of the plugin.

", + "LoggingInfo$S3KeyPrefix": "

(Optional) The Amazon S3 bucket subfolder.

", + "S3OutputLocation$OutputS3KeyPrefix": "

The Amazon S3 bucket subfolder.

", "SendCommandRequest$OutputS3KeyPrefix": "

The directory structure within the S3 bucket where the responses should be stored.

" } }, + "S3OutputLocation": { + "base": "

An Amazon S3 bucket where you want to store the results of this request.

", + "refs": { + "InstanceAssociationOutputLocation$S3Location": "

An Amazon S3 bucket where you want to store the results of this request.

" + } + }, + "S3OutputUrl": { + "base": "

A URL for the Amazon S3 bucket where you want to store the results of this request.

", + "refs": { + "InstanceAssociationOutputUrl$S3OutputUrl": "

The URL of Amazon S3 bucket where you want to store the results of this request.

" + } + }, + "S3Region": { + "base": null, + "refs": { + "Command$OutputS3Region": "

The region where the Amazon Simple Storage Service (Amazon S3) output bucket is located. The default value is the region where Run Command is being called.

", + "CommandPlugin$OutputS3Region": "

The name of the region where the output is stored in Amazon S3.

", + "LoggingInfo$S3Region": "

The region where the Amazon S3 bucket is located.

", + "S3OutputLocation$OutputS3Region": "

The Amazon S3 region where the association information is stored.

", + "SendCommandRequest$OutputS3Region": "

(Optional) The region where the Amazon Simple Storage Service (Amazon S3) output bucket is located. The default value is the region where Run Command is being called.

" + } + }, + "ScheduleExpression": { + "base": null, + "refs": { + "Association$ScheduleExpression": "

A cron expression that specifies a schedule when the association runs.

", + "AssociationDescription$ScheduleExpression": "

A cron expression that specifies a schedule when the association runs.

", + "CreateAssociationBatchRequestEntry$ScheduleExpression": "

A cron expression that specifies a schedule when the association runs.

", + "CreateAssociationRequest$ScheduleExpression": "

A cron expression when the association will be applied to the target(s). Supported expressions are every half, 1, 2, 4, 8 or 12 hour(s); every specified day and time of the week. For example: cron(0 0/30 * 1/1 * ? *) to run every thirty minutes; cron(0 0 0/4 1/1 * ? *) to run every four hours; and cron(0 0 10 ? * SUN *) to run every Sunday at 10 a.m.

", + "UpdateAssociationRequest$ScheduleExpression": "

The cron expression used to schedule the association that you want to update. Supported expressions are every half, 1, 2, 4, 8 or 12 hour(s); every specified day and time of the week. For example: cron(0 0/30 * 1/1 * ? *) to run every thirty minutes; cron(0 0 0/4 1/1 * ? *) to run every four hours; and cron(0 0 10 ? * SUN *) to run every Sunday at 10 a.m.

" + } + }, "SendCommandRequest": { "base": null, "refs": { @@ -1176,9 +3522,48 @@ "ServiceRole": { "base": null, "refs": { - "Command$ServiceRole": "

The IAM service role that SSM uses to act on your behalf when sending notifications about command status changes.

", - "CommandInvocation$ServiceRole": "

The IAM service role that SSM uses to act on your behalf when sending notifications about command status changes on a per instance basis.

", - "SendCommandRequest$ServiceRoleArn": "

The IAM role that SSM uses to send notifications.

" + "Command$ServiceRole": "

The IAM service role that Run Command uses to act on your behalf when sending notifications about command status changes.

", + "CommandInvocation$ServiceRole": "

The IAM service role that Run Command uses to act on your behalf when sending notifications about command status changes on a per instance basis.

", + "GetMaintenanceWindowExecutionTaskResult$ServiceRole": "

The role that was assumed when executing the task.

", + "MaintenanceWindowTask$ServiceRoleArn": "

The role that should be assumed when executing the task

", + "RegisterTaskWithMaintenanceWindowRequest$ServiceRoleArn": "

The role that should be assumed when executing the task.

", + "SendCommandRequest$ServiceRoleArn": "

The IAM role that Systems Manager uses to send notifications.

" + } + }, + "SnapshotDownloadUrl": { + "base": null, + "refs": { + "GetDeployablePatchSnapshotForInstanceResult$SnapshotDownloadUrl": "

A pre-signed Amazon S3 URL that can be used to download the patch snapshot.

" + } + }, + "SnapshotId": { + "base": null, + "refs": { + "GetDeployablePatchSnapshotForInstanceRequest$SnapshotId": "

The user-defined snapshot ID.

", + "GetDeployablePatchSnapshotForInstanceResult$SnapshotId": "

The user-defined snapshot ID.

", + "InstancePatchState$SnapshotId": "

The ID of the patch baseline snapshot used during the patching operation when this compliance data was collected.

" + } + }, + "StandardErrorContent": { + "base": null, + "refs": { + "GetCommandInvocationResult$StandardErrorContent": "

The first 8,000 characters written by the plugin to stderr. If the command has not finished executing, then this string is empty.

" + } + }, + "StandardOutputContent": { + "base": null, + "refs": { + "GetCommandInvocationResult$StandardOutputContent": "

The first 24,000 characters written by the plugin to stdout. If the command has not finished executing, if ExecutionStatus is neither Succeeded nor Failed, then this string is empty.

" + } + }, + "StartAutomationExecutionRequest": { + "base": null, + "refs": { + } + }, + "StartAutomationExecutionResult": { + "base": null, + "refs": { } }, "StatusAdditionalInfo": { @@ -1187,44 +3572,139 @@ "AssociationStatus$AdditionalInfo": "

A user-defined string.

" } }, + "StatusDetails": { + "base": null, + "refs": { + "Command$StatusDetails": "

A detailed status of the command execution. StatusDetails includes more information than Status because it includes states resulting from error and concurrency control parameters. StatusDetails can show different results than Status. For more information about these statuses, see Monitor Commands (Linux) or Monitor Commands (Windows). StatusDetails can be one of the following values:

  • Pending – The command has not been sent to any instances.

  • In Progress – The command has been sent to at least one instance but has not reached a final state on all instances.

  • Success – The command successfully executed on all invocations. This is a terminal state.

  • Delivery Timed Out – The value of MaxErrors or more command invocations shows a status of Delivery Timed Out. This is a terminal state.

  • Execution Timed Out – The value of MaxErrors or more command invocations shows a status of Execution Timed Out. This is a terminal state.

  • Failed – The value of MaxErrors or more command invocations shows a status of Failed. This is a terminal state.

  • Incomplete – The command was attempted on all instances and one or more invocations does not have a value of Success but not enough invocations failed for the status to be Failed. This is a terminal state.

  • Canceled – The command was terminated before it was completed. This is a terminal state.

  • Rate Exceeded – The number of instances targeted by the command exceeded the account limit for pending invocations. The system has canceled the command before executing it on any instance. This is a terminal state.

", + "CommandInvocation$StatusDetails": "

A detailed status of the command execution for each invocation (each instance targeted by the command). StatusDetails includes more information than Status because it includes states resulting from error and concurrency control parameters. StatusDetails can show different results than Status. For more information about these statuses, see Monitor Commands (Linux) or Monitor Commands (Windows). StatusDetails can be one of the following values:

  • Pending – The command has not been sent to the instance.

  • In Progress – The command has been sent to the instance but has not reached a terminal state.

  • Success – The execution of the command or plugin was successfully completed. This is a terminal state.

  • Delivery Timed Out – The command was not delivered to the instance before the delivery timeout expired. Delivery timeouts do not count against the parent command’s MaxErrors limit, but they do contribute to whether the parent command status is Success or Incomplete. This is a terminal state.

  • Execution Timed Out – Command execution started on the instance, but the execution was not complete before the execution timeout expired. Execution timeouts count against the MaxErrors limit of the parent command. This is a terminal state.

  • Failed – The command was not successful on the instance. For a plugin, this indicates that the result code was not zero. For a command invocation, this indicates that the result code for one or more plugins was not zero. Invocation failures count against the MaxErrors limit of the parent command. This is a terminal state.

  • Canceled – The command was terminated before it was completed. This is a terminal state.

  • Undeliverable – The command can't be delivered to the instance. The instance might not exist or might not be responding. Undeliverable invocations don't count against the parent command’s MaxErrors limit and don't contribute to whether the parent command status is Success or Incomplete. This is a terminal state.

  • Terminated – The parent command exceeded its MaxErrors limit and subsequent command invocations were canceled by the system. This is a terminal state.

", + "CommandPlugin$StatusDetails": "

A detailed status of the plugin execution. StatusDetails includes more information than Status because it includes states resulting from error and concurrency control parameters. StatusDetails can show different results than Status. For more information about these statuses, see Monitor Commands (Linux) or Monitor Commands (Windows). StatusDetails can be one of the following values:

  • Pending – The command has not been sent to the instance.

  • In Progress – The command has been sent to the instance but has not reached a terminal state.

  • Success – The execution of the command or plugin was successfully completed. This is a terminal state.

  • Delivery Timed Out – The command was not delivered to the instance before the delivery timeout expired. Delivery timeouts do not count against the parent command’s MaxErrors limit, but they do contribute to whether the parent command status is Success or Incomplete. This is a terminal state.

  • Execution Timed Out – Command execution started on the instance, but the execution was not complete before the execution timeout expired. Execution timeouts count against the MaxErrors limit of the parent command. This is a terminal state.

  • Failed – The command was not successful on the instance. For a plugin, this indicates that the result code was not zero. For a command invocation, this indicates that the result code for one or more plugins was not zero. Invocation failures count against the MaxErrors limit of the parent command. This is a terminal state.

  • Canceled – The command was terminated before it was completed. This is a terminal state.

  • Undeliverable – The command can't be delivered to the instance. The instance might not exist, or it might not be responding. Undeliverable invocations don't count against the parent command’s MaxErrors limit, and they don't contribute to whether the parent command status is Success or Incomplete. This is a terminal state.

  • Terminated – The parent command exceeded its MaxErrors limit and subsequent command invocations were canceled by the system. This is a terminal state.

", + "GetCommandInvocationResult$StatusDetails": "

A detailed status of the command execution for an invocation. StatusDetails includes more information than Status because it includes states resulting from error and concurrency control parameters. StatusDetails can show different results than Status. For more information about these statuses, see Monitor Commands (Linux) or Monitor Commands (Windows). StatusDetails can be one of the following values:

  • Pending – The command has not been sent to the instance.

  • In Progress – The command has been sent to the instance but has not reached a terminal state.

  • Delayed – The system attempted to send the command to the target, but the target was not available. The instance might not be available because of network issues, the instance was stopped, etc. The system will try to deliver the command again.

  • Success – The command or plugin was executed successfully. This is a terminal state.

  • Delivery Timed Out – The command was not delivered to the instance before the delivery timeout expired. Delivery timeouts do not count against the parent command’s MaxErrors limit, but they do contribute to whether the parent command status is Success or Incomplete. This is a terminal state.

  • Execution Timed Out – The command started to execute on the instance, but the execution was not complete before the timeout expired. Execution timeouts count against the MaxErrors limit of the parent command. This is a terminal state.

  • Failed – The command wasn't executed successfully on the instance. For a plugin, this indicates that the result code was not zero. For a command invocation, this indicates that the result code for one or more plugins was not zero. Invocation failures count against the MaxErrors limit of the parent command. This is a terminal state.

  • Canceled – The command was terminated before it was completed. This is a terminal state.

  • Undeliverable – The command can't be delivered to the instance. The instance might not exist or might not be responding. Undeliverable invocations don't count against the parent command’s MaxErrors limit and don't contribute to whether the parent command status is Success or Incomplete. This is a terminal state.

  • Terminated – The parent command exceeded its MaxErrors limit and subsequent command invocations were canceled by the system. This is a terminal state.

" + } + }, "StatusMessage": { "base": null, "refs": { "AssociationStatus$Message": "

The reason for the status.

" } }, + "StatusName": { + "base": null, + "refs": { + "AssociationOverview$Status": "

The status of the association. Status can be: Pending, Success, or Failed.

", + "AssociationOverview$DetailedStatus": "

A detailed status of the association.

", + "AssociationStatusAggregatedCount$key": null, + "InstanceAggregatedAssociationOverview$DetailedStatus": "

Detailed status information about the aggregated associations.

", + "InstanceAssociationStatusAggregatedCount$key": null, + "InstanceAssociationStatusInfo$Status": "

Status information about the instance association.

", + "InstanceAssociationStatusInfo$DetailedStatus": "

Detailed status information about the instance association.

", + "InstanceInformation$AssociationStatus": "

The status of the association.

" + } + }, "StatusUnchanged": { "base": "

The updated status is the same as the current status.

", "refs": { } }, + "StepExecution": { + "base": "

Detailed information about an the execution state of an Automation step.

", + "refs": { + "StepExecutionList$member": null + } + }, + "StepExecutionList": { + "base": null, + "refs": { + "AutomationExecution$StepExecutions": "

A list of details about the current state of all steps that comprise an execution. An Automation document contains a list of steps that are executed in order.

" + } + }, + "StopAutomationExecutionRequest": { + "base": null, + "refs": { + } + }, + "StopAutomationExecutionResult": { + "base": null, + "refs": { + } + }, "String": { "base": null, "refs": { + "AlreadyExistsException$Message": null, + "AssociationDoesNotExist$Message": null, + "AutomationDefinitionNotFoundException$Message": null, + "AutomationDefinitionVersionNotFoundException$Message": null, + "AutomationExecution$FailureMessage": "

A message describing why an execution has failed, if the status is set to Failed.

", + "AutomationExecutionLimitExceededException$Message": null, + "AutomationExecutionMetadata$ExecutedBy": "

The IAM role ARN of the user who executed the Automation.

", + "AutomationExecutionMetadata$LogFile": "

An Amazon S3 bucket where execution information is stored.

", + "AutomationExecutionNotFoundException$Message": null, + "CustomSchemaCountLimitExceededException$Message": null, "DocumentAlreadyExists$Message": null, "DocumentLimitExceeded$Message": null, "DocumentPermissionLimit$Message": null, + "DocumentVersionLimitExceeded$Message": null, + "DoesNotExistException$Message": null, + "DuplicateDocumentContent$Message": null, + "IdempotentParameterMismatch$Message": null, "InstanceInformation$PlatformName": "

The name of the operating system platform running on your instance.

", "InstanceInformation$PlatformVersion": "

The version of the OS platform running on your instance.

", "InstanceInformation$Name": "

The name of the managed instance.

", "InternalServerError$Message": null, "InvalidActivation$Message": null, "InvalidActivationId$Message": null, + "InvalidAutomationExecutionParametersException$Message": null, "InvalidDocument$Message": "

The SSM document does not exist or the document is not available to the user. This exception can be issued by CreateAssociation, CreateAssociationBatch, DeleteAssociation, DeleteDocument, DescribeAssociation, DescribeDocument, GetDocument, SendCommand, or UpdateAssociationStatus.

", "InvalidDocumentContent$Message": "

A description of the validation error.

", "InvalidDocumentOperation$Message": null, + "InvalidDocumentSchemaVersion$Message": null, + "InvalidDocumentVersion$Message": null, "InvalidFilter$Message": null, + "InvalidFilterValue$Message": null, "InvalidInstanceId$Message": null, "InvalidInstanceInformationFilterValue$message": null, + "InvalidItemContentException$Message": null, + "InvalidKeyId$message": null, "InvalidNotificationConfig$Message": null, "InvalidParameters$Message": null, "InvalidPermissionType$Message": null, + "InvalidResultAttributeException$Message": null, "InvalidRole$Message": null, + "InvalidSchedule$Message": null, + "InvalidTarget$Message": null, + "InvalidTypeNameException$Message": null, + "InvalidUpdate$Message": null, + "ItemContentMismatchException$Message": null, + "ItemSizeLimitExceededException$Message": null, "MaxDocumentSizeExceeded$Message": null, + "NormalStringMap$key": null, + "NormalStringMap$value": null, + "ParameterAlreadyExists$message": null, + "ParameterHistory$LastModifiedUser": "

Amazon Resource Name (ARN) of the AWS user who last changed the parameter.

", + "ParameterLimitExceeded$message": null, + "ParameterMetadata$LastModifiedUser": "

Amazon Resource Name (ARN) of the AWS user who last changed the parameter.

", + "ParameterNotFound$message": null, + "ResourceInUseException$Message": null, + "ResourceLimitExceededException$Message": null, + "StepExecution$StepName": "

The name of this execution step.

", + "StepExecution$ResponseCode": "

The response code returned by the execution of the step.

", + "StepExecution$Response": "

A message associated with the response code for an execution.

", + "StepExecution$FailureMessage": "

If a step failed, this message explains why the execution failed.

", "StringList$member": null, + "TotalSizeLimitExceededException$Message": null, + "UnsupportedInventorySchemaVersionException$Message": null, + "UnsupportedParameterType$message": null, "UnsupportedPlatformType$Message": null } }, + "StringDateTime": { + "base": null, + "refs": { + "GetCommandInvocationResult$ExecutionStartDateTime": "

The date and time the plugin started executing. Date and time are written in ISO 8601 format. For example, August 28, 2016 is represented as 2016-08-28. If the plugin has not started to execute, the string is empty.

", + "GetCommandInvocationResult$ExecutionElapsedTime": "

Duration since ExecutionStartDateTime.

", + "GetCommandInvocationResult$ExecutionEndDateTime": "

The date and time the plugin was finished executing. Date and time are written in ISO 8601 format. For example, August 28, 2016 is represented as 2016-08-28. If the plugin has not started to execute, the string is empty.

" + } + }, "StringList": { "base": null, "refs": { @@ -1232,7 +3712,7 @@ } }, "Tag": { - "base": "

Metadata that you assign to your managed instances. Tags enable you to categorize your managed instances in different ways, for example, by purpose, owner, or environment.

", + "base": "

Metadata that you assign to your managed instances. Tags enable you to categorize your managed instances in different ways, for example, by purpose, owner, or environment.

", "refs": { "TagList$member": null } @@ -1257,22 +3737,97 @@ "Tag$Value": "

The value of the tag.

" } }, + "Target": { + "base": "

An array of search criteria that targets instances using a Key;Value combination that you specify. Targets is required if you don't provide one or more instance IDs in the call.

", + "refs": { + "Targets$member": null + } + }, + "TargetCount": { + "base": null, + "refs": { + "Command$TargetCount": "

The number of targets for the command.

" + } + }, + "TargetKey": { + "base": null, + "refs": { + "Target$Key": "

User-defined criteria for sending commands that target instances that meet the criteria. Key can be tag:<Amazon EC2 tag> or name:<Amazon EC2 instance ID>. For example, tag:ServerRole or name:0123456789012345. For more information about how to send commands that target instances using Key;Value parameters, see Executing a Command Using Amazon EC2 Run Command (Linux) or Executing a Command Using Amazon EC2 Run Command (Windows).

" + } + }, + "TargetValue": { + "base": null, + "refs": { + "TargetValues$member": null + } + }, + "TargetValues": { + "base": null, + "refs": { + "Target$Values": "

User-defined criteria that maps to Key. For example, if you specified tag:ServerRole, you could specify value:WebServer to execute a command on instances that include Amazon EC2 tags of ServerRole;WebServer. For more information about how to send commands that target instances using Key;Value parameters, see Executing a Command Using Amazon EC2 Run Command (Linux) or Executing a Command Using Amazon EC2 Run Command (Windows).

" + } + }, + "Targets": { + "base": null, + "refs": { + "Association$Targets": "

The instances targeted by the request to create an association.

", + "AssociationDescription$Targets": "

The instances targeted by the request.

", + "Command$Targets": "

An array of search criteria that targets instances using a Key;Value combination that you specify. Targets is required if you don't provide one or more instance IDs in the call.

", + "CreateAssociationBatchRequestEntry$Targets": "

The instances targeted by the request.

", + "CreateAssociationRequest$Targets": "

The targets (either instances or tags) for the association. Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag name>,Values=<tag value>.

", + "MaintenanceWindowTarget$Targets": "

The targets (either instances or tags). Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag name>,Values=<tag value>.

", + "MaintenanceWindowTask$Targets": "

The targets (either instances or tags). Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag name>,Values=<tag value>.

", + "RegisterTargetWithMaintenanceWindowRequest$Targets": "

The targets (either instances or tags). Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag name>,Values=<tag value>.

", + "RegisterTaskWithMaintenanceWindowRequest$Targets": "

The targets (either instances or tags). Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag name>,Values=<tag value>.

", + "SendCommandRequest$Targets": "

(Optional) An array of search criteria that targets instances using a Key;Value combination that you specify. Targets is required if you don't provide one or more instance IDs in the call. For more information about how to use Targets, see Executing a Command Using Amazon EC2 Run Command (Linux) or Executing a Command Using Amazon EC2 Run Command (Windows).

" + } + }, "TimeoutSeconds": { "base": null, "refs": { "SendCommandRequest$TimeoutSeconds": "

If this time is reached and the command has not already started executing, it will not execute.

" } }, + "TooManyTagsError": { + "base": "

The Targets parameter includes too many tags. Remove one or more tags and try the command again.

", + "refs": { + } + }, "TooManyUpdates": { "base": "

There are concurrent updates for a resource that supports one update at a time.

", "refs": { } }, + "TotalSizeLimitExceededException": { + "base": "

The size of inventory data has exceeded the total size limit for the resource.

", + "refs": { + } + }, + "UnsupportedInventorySchemaVersionException": { + "base": "

Inventory item type schema version has to match supported versions in the service. Check output of GetInventorySchema to see the available schema version for each type.

", + "refs": { + } + }, + "UnsupportedParameterType": { + "base": "

The parameter type is not supported.

", + "refs": { + } + }, "UnsupportedPlatformType": { "base": "

The document does not support the platform type of the given instance ID(s). For example, you sent an SSM document for a Windows instance to a Linux instance.

", "refs": { } }, + "UpdateAssociationRequest": { + "base": null, + "refs": { + } + }, + "UpdateAssociationResult": { + "base": null, + "refs": { + } + }, "UpdateAssociationStatusRequest": { "base": null, "refs": { @@ -1283,6 +3838,36 @@ "refs": { } }, + "UpdateDocumentDefaultVersionRequest": { + "base": null, + "refs": { + } + }, + "UpdateDocumentDefaultVersionResult": { + "base": null, + "refs": { + } + }, + "UpdateDocumentRequest": { + "base": null, + "refs": { + } + }, + "UpdateDocumentResult": { + "base": null, + "refs": { + } + }, + "UpdateMaintenanceWindowRequest": { + "base": null, + "refs": { + } + }, + "UpdateMaintenanceWindowResult": { + "base": null, + "refs": { + } + }, "UpdateManagedInstanceRoleRequest": { "base": null, "refs": { @@ -1293,6 +3878,43 @@ "refs": { } }, + "UpdatePatchBaselineRequest": { + "base": null, + "refs": { + } + }, + "UpdatePatchBaselineResult": { + "base": null, + "refs": { + } + }, + "Url": { + "base": null, + "refs": { + "CommandInvocation$StandardOutputUrl": "

The URL to the plugin’s StdOut file in Amazon S3, if the Amazon S3 bucket was defined for the parent command. For an invocation, StandardOutputUrl is populated if there is just one plugin defined for the command, and the Amazon S3 bucket was defined for the command.

", + "CommandInvocation$StandardErrorUrl": "

The URL to the plugin’s StdErr file in Amazon S3, if the Amazon S3 bucket was defined for the parent command. For an invocation, StandardErrorUrl is populated if there is just one plugin defined for the command, and the Amazon S3 bucket was defined for the command.

", + "CommandPlugin$StandardOutputUrl": "

The URL for the complete text written by the plugin to stdout in Amazon S3. If the Amazon S3 bucket for the command was not specified, then this string is empty.

", + "CommandPlugin$StandardErrorUrl": "

The URL for the complete text written by the plugin to stderr. If execution is not yet complete, then this string is empty.

", + "GetCommandInvocationResult$StandardOutputUrl": "

The URL for the complete text written by the plugin to stdout in Amazon S3. If an Amazon S3 bucket was not specified, then this string is empty.

", + "GetCommandInvocationResult$StandardErrorUrl": "

The URL for the complete text written by the plugin to stderr. If the command has not finished executing, then this string is empty.

", + "S3OutputUrl$OutputUrl": "

A URL for an Amazon S3 bucket where you want to store the results of this request.

" + } + }, + "VelocityConstraint": { + "base": null, + "refs": { + "Command$MaxConcurrency": "

The maximum number of instances that are allowed to execute the command at the same time. You can specify a number of instances, such as 10, or a percentage of instances, such as 10%. The default value is 50. For more information about how to use MaxConcurrency, see Executing a Command Using Amazon EC2 Run Command (Linux) or Executing a Command Using Amazon EC2 Run Command (Windows).

", + "Command$MaxErrors": "

The maximum number of errors allowed before the system stops sending the command to additional targets. You can specify a number of errors, such as 10, or a percentage or errors, such as 10%. The default value is 50. For more information about how to use MaxErrors, see Executing a Command Using Amazon EC2 Run Command (Linux) or Executing a Command Using Amazon EC2 Run Command (Windows).

", + "GetMaintenanceWindowExecutionTaskResult$MaxConcurrency": "

The defined maximum number of task executions that could be run in parallel.

", + "GetMaintenanceWindowExecutionTaskResult$MaxErrors": "

The defined maximum number of task execution errors allowed before scheduling of the task execution would have been stopped.

", + "MaintenanceWindowTask$MaxConcurrency": "

The maximum number of targets this task can be run for in parallel.

", + "MaintenanceWindowTask$MaxErrors": "

The maximum number of errors allowed before this task stops being scheduled.

", + "RegisterTaskWithMaintenanceWindowRequest$MaxConcurrency": "

The maximum number of targets this task can be run for in parallel.

", + "RegisterTaskWithMaintenanceWindowRequest$MaxErrors": "

The maximum number of errors allowed before this task stops being scheduled.

", + "SendCommandRequest$MaxConcurrency": "

(Optional) The maximum number of instances that are allowed to execute the command at the same time. You can specify a number such as “10” or a percentage such as “10%”. The default value is 50. For more information about how to use MaxConcurrency, see Executing a Command Using Amazon EC2 Run Command (Linux) or Executing a Command Using Amazon EC2 Run Command (Windows).

", + "SendCommandRequest$MaxErrors": "

The maximum number of errors allowed without the command failing. When the command fails one more time beyond the value of MaxErrors, the systems stops sending the command to additional targets. You can specify a number like “10” or a percentage like “10%”. The default value is 50. For more information about how to use MaxErrors, see Executing a Command Using Amazon EC2 Run Command (Linux) or Executing a Command Using Amazon EC2 Run Command (Windows).

" + } + }, "Version": { "base": null, "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/states/2016-11-23/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/states/2016-11-23/api-2.json new file mode 100644 index 000000000..e9bf2d981 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/states/2016-11-23/api-2.json @@ -0,0 +1,1021 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2016-11-23", + "endpointPrefix":"states", + "jsonVersion":"1.0", + "protocol":"json", + "serviceAbbreviation":"AWS SFN", + "serviceFullName":"AWS Step Functions", + "signatureVersion":"v4", + "targetPrefix":"AWSStepFunctions", + "uid":"states-2016-11-23" + }, + "operations":{ + "CreateActivity":{ + "name":"CreateActivity", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateActivityInput"}, + "output":{"shape":"CreateActivityOutput"}, + "errors":[ + {"shape":"ActivityLimitExceeded"}, + {"shape":"InvalidName"} + ], + "idempotent":true + }, + "CreateStateMachine":{ + "name":"CreateStateMachine", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateStateMachineInput"}, + "output":{"shape":"CreateStateMachineOutput"}, + "errors":[ + {"shape":"InvalidArn"}, + {"shape":"InvalidDefinition"}, + {"shape":"InvalidName"}, + {"shape":"StateMachineAlreadyExists"}, + {"shape":"StateMachineDeleting"}, + {"shape":"StateMachineLimitExceeded"} + ], + "idempotent":true + }, + "DeleteActivity":{ + "name":"DeleteActivity", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteActivityInput"}, + "output":{"shape":"DeleteActivityOutput"}, + "errors":[ + {"shape":"InvalidArn"} + ] + }, + "DeleteStateMachine":{ + "name":"DeleteStateMachine", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteStateMachineInput"}, + "output":{"shape":"DeleteStateMachineOutput"}, + "errors":[ + {"shape":"InvalidArn"} + ] + }, + "DescribeActivity":{ + "name":"DescribeActivity", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeActivityInput"}, + "output":{"shape":"DescribeActivityOutput"}, + "errors":[ + {"shape":"ActivityDoesNotExist"}, + {"shape":"InvalidArn"} + ] + }, + "DescribeExecution":{ + "name":"DescribeExecution", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeExecutionInput"}, + "output":{"shape":"DescribeExecutionOutput"}, + "errors":[ + {"shape":"ExecutionDoesNotExist"}, + {"shape":"InvalidArn"} + ] + }, + "DescribeStateMachine":{ + "name":"DescribeStateMachine", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeStateMachineInput"}, + "output":{"shape":"DescribeStateMachineOutput"}, + "errors":[ + {"shape":"InvalidArn"}, + {"shape":"StateMachineDoesNotExist"} + ] + }, + "GetActivityTask":{ + "name":"GetActivityTask", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetActivityTaskInput"}, + "output":{"shape":"GetActivityTaskOutput"}, + "errors":[ + {"shape":"ActivityDoesNotExist"}, + {"shape":"ActivityWorkerLimitExceeded"}, + {"shape":"InvalidArn"} + ] + }, + "GetExecutionHistory":{ + "name":"GetExecutionHistory", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetExecutionHistoryInput"}, + "output":{"shape":"GetExecutionHistoryOutput"}, + "errors":[ + {"shape":"ExecutionDoesNotExist"}, + {"shape":"InvalidArn"}, + {"shape":"InvalidToken"} + ] + }, + "ListActivities":{ + "name":"ListActivities", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListActivitiesInput"}, + "output":{"shape":"ListActivitiesOutput"}, + "errors":[ + {"shape":"InvalidToken"} + ] + }, + "ListExecutions":{ + "name":"ListExecutions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListExecutionsInput"}, + "output":{"shape":"ListExecutionsOutput"}, + "errors":[ + {"shape":"InvalidArn"}, + {"shape":"InvalidToken"}, + {"shape":"StateMachineDoesNotExist"} + ] + }, + "ListStateMachines":{ + "name":"ListStateMachines", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListStateMachinesInput"}, + "output":{"shape":"ListStateMachinesOutput"}, + "errors":[ + {"shape":"InvalidToken"} + ] + }, + "SendTaskFailure":{ + "name":"SendTaskFailure", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"SendTaskFailureInput"}, + "output":{"shape":"SendTaskFailureOutput"}, + "errors":[ + {"shape":"TaskDoesNotExist"}, + {"shape":"InvalidToken"}, + {"shape":"TaskTimedOut"} + ] + }, + "SendTaskHeartbeat":{ + "name":"SendTaskHeartbeat", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"SendTaskHeartbeatInput"}, + "output":{"shape":"SendTaskHeartbeatOutput"}, + "errors":[ + {"shape":"TaskDoesNotExist"}, + {"shape":"InvalidToken"}, + {"shape":"TaskTimedOut"} + ] + }, + "SendTaskSuccess":{ + "name":"SendTaskSuccess", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"SendTaskSuccessInput"}, + "output":{"shape":"SendTaskSuccessOutput"}, + "errors":[ + {"shape":"TaskDoesNotExist"}, + {"shape":"InvalidOutput"}, + {"shape":"InvalidToken"}, + {"shape":"TaskTimedOut"} + ] + }, + "StartExecution":{ + "name":"StartExecution", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartExecutionInput"}, + "output":{"shape":"StartExecutionOutput"}, + "errors":[ + {"shape":"ExecutionLimitExceeded"}, + {"shape":"ExecutionAlreadyExists"}, + {"shape":"InvalidArn"}, + {"shape":"InvalidExecutionInput"}, + {"shape":"InvalidName"}, + {"shape":"StateMachineDoesNotExist"}, + {"shape":"StateMachineDeleting"} + ], + "idempotent":true + }, + "StopExecution":{ + "name":"StopExecution", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopExecutionInput"}, + "output":{"shape":"StopExecutionOutput"}, + "errors":[ + {"shape":"ExecutionDoesNotExist"}, + {"shape":"InvalidArn"} + ] + } + }, + "shapes":{ + "ActivityDoesNotExist":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ActivityFailedEventDetails":{ + "type":"structure", + "members":{ + "error":{"shape":"Error"}, + "cause":{"shape":"Cause"} + } + }, + "ActivityLimitExceeded":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ActivityList":{ + "type":"list", + "member":{"shape":"ActivityListItem"} + }, + "ActivityListItem":{ + "type":"structure", + "required":[ + "activityArn", + "name", + "creationDate" + ], + "members":{ + "activityArn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "creationDate":{"shape":"Timestamp"} + } + }, + "ActivityScheduleFailedEventDetails":{ + "type":"structure", + "members":{ + "error":{"shape":"Error"}, + "cause":{"shape":"Cause"} + } + }, + "ActivityScheduledEventDetails":{ + "type":"structure", + "required":["resource"], + "members":{ + "resource":{"shape":"Arn"}, + "input":{"shape":"Data"}, + "timeoutInSeconds":{ + "shape":"TimeoutInSeconds", + "box":true + }, + "heartbeatInSeconds":{ + "shape":"TimeoutInSeconds", + "box":true + } + } + }, + "ActivityStartedEventDetails":{ + "type":"structure", + "members":{ + "workerName":{"shape":"Identity"} + } + }, + "ActivitySucceededEventDetails":{ + "type":"structure", + "members":{ + "output":{"shape":"Data"} + } + }, + "ActivityTimedOutEventDetails":{ + "type":"structure", + "members":{ + "error":{"shape":"Error"}, + "cause":{"shape":"Cause"} + } + }, + "ActivityWorkerLimitExceeded":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "Arn":{ + "type":"string", + "max":256, + "min":1 + }, + "Cause":{ + "type":"string", + "max":32768, + "min":0 + }, + "CreateActivityInput":{ + "type":"structure", + "required":["name"], + "members":{ + "name":{"shape":"Name"} + } + }, + "CreateActivityOutput":{ + "type":"structure", + "required":[ + "activityArn", + "creationDate" + ], + "members":{ + "activityArn":{"shape":"Arn"}, + "creationDate":{"shape":"Timestamp"} + } + }, + "CreateStateMachineInput":{ + "type":"structure", + "required":[ + "name", + "definition", + "roleArn" + ], + "members":{ + "name":{"shape":"Name"}, + "definition":{"shape":"Definition"}, + "roleArn":{"shape":"Arn"} + } + }, + "CreateStateMachineOutput":{ + "type":"structure", + "required":[ + "stateMachineArn", + "creationDate" + ], + "members":{ + "stateMachineArn":{"shape":"Arn"}, + "creationDate":{"shape":"Timestamp"} + } + }, + "Data":{ + "type":"string", + "max":32768 + }, + "Definition":{ + "type":"string", + "max":1048576, + "min":1 + }, + "DeleteActivityInput":{ + "type":"structure", + "required":["activityArn"], + "members":{ + "activityArn":{"shape":"Arn"} + } + }, + "DeleteActivityOutput":{ + "type":"structure", + "members":{ + } + }, + "DeleteStateMachineInput":{ + "type":"structure", + "required":["stateMachineArn"], + "members":{ + "stateMachineArn":{"shape":"Arn"} + } + }, + "DeleteStateMachineOutput":{ + "type":"structure", + "members":{ + } + }, + "DescribeActivityInput":{ + "type":"structure", + "required":["activityArn"], + "members":{ + "activityArn":{"shape":"Arn"} + } + }, + "DescribeActivityOutput":{ + "type":"structure", + "required":[ + "activityArn", + "name", + "creationDate" + ], + "members":{ + "activityArn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "creationDate":{"shape":"Timestamp"} + } + }, + "DescribeExecutionInput":{ + "type":"structure", + "required":["executionArn"], + "members":{ + "executionArn":{"shape":"Arn"} + } + }, + "DescribeExecutionOutput":{ + "type":"structure", + "required":[ + "executionArn", + "stateMachineArn", + "status", + "startDate", + "input" + ], + "members":{ + "executionArn":{"shape":"Arn"}, + "stateMachineArn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "status":{"shape":"ExecutionStatus"}, + "startDate":{"shape":"Timestamp"}, + "stopDate":{"shape":"Timestamp"}, + "input":{"shape":"Data"}, + "output":{"shape":"Data"} + } + }, + "DescribeStateMachineInput":{ + "type":"structure", + "required":["stateMachineArn"], + "members":{ + "stateMachineArn":{"shape":"Arn"} + } + }, + "DescribeStateMachineOutput":{ + "type":"structure", + "required":[ + "stateMachineArn", + "name", + "definition", + "roleArn", + "creationDate" + ], + "members":{ + "stateMachineArn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "status":{"shape":"StateMachineStatus"}, + "definition":{"shape":"Definition"}, + "roleArn":{"shape":"Arn"}, + "creationDate":{"shape":"Timestamp"} + } + }, + "Error":{ + "type":"string", + "max":256, + "min":0 + }, + "ErrorMessage":{"type":"string"}, + "EventId":{"type":"long"}, + "ExecutionAbortedEventDetails":{ + "type":"structure", + "members":{ + "error":{"shape":"Error"}, + "cause":{"shape":"Cause"} + } + }, + "ExecutionAlreadyExists":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ExecutionDoesNotExist":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ExecutionFailedEventDetails":{ + "type":"structure", + "members":{ + "error":{"shape":"Error"}, + "cause":{"shape":"Cause"} + } + }, + "ExecutionLimitExceeded":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ExecutionList":{ + "type":"list", + "member":{"shape":"ExecutionListItem"} + }, + "ExecutionListItem":{ + "type":"structure", + "required":[ + "executionArn", + "stateMachineArn", + "name", + "status", + "startDate" + ], + "members":{ + "executionArn":{"shape":"Arn"}, + "stateMachineArn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "status":{"shape":"ExecutionStatus"}, + "startDate":{"shape":"Timestamp"}, + "stopDate":{"shape":"Timestamp"} + } + }, + "ExecutionStartedEventDetails":{ + "type":"structure", + "members":{ + "input":{"shape":"Data"}, + "roleArn":{"shape":"Arn"} + } + }, + "ExecutionStatus":{ + "type":"string", + "enum":[ + "RUNNING", + "SUCCEEDED", + "FAILED", + "TIMED_OUT", + "ABORTED" + ] + }, + "ExecutionSucceededEventDetails":{ + "type":"structure", + "members":{ + "output":{"shape":"Data"} + } + }, + "ExecutionTimedOutEventDetails":{ + "type":"structure", + "members":{ + "error":{"shape":"Error"}, + "cause":{"shape":"Cause"} + } + }, + "GetActivityTaskInput":{ + "type":"structure", + "required":["activityArn"], + "members":{ + "activityArn":{"shape":"Arn"}, + "workerName":{"shape":"Name"} + } + }, + "GetActivityTaskOutput":{ + "type":"structure", + "members":{ + "taskToken":{"shape":"TaskToken"}, + "input":{"shape":"Data"} + } + }, + "GetExecutionHistoryInput":{ + "type":"structure", + "required":["executionArn"], + "members":{ + "executionArn":{"shape":"Arn"}, + "maxResults":{"shape":"PageSize"}, + "reverseOrder":{"shape":"ReverseOrder"}, + "nextToken":{"shape":"PageToken"} + } + }, + "GetExecutionHistoryOutput":{ + "type":"structure", + "required":["events"], + "members":{ + "events":{"shape":"HistoryEventList"}, + "nextToken":{"shape":"PageToken"} + } + }, + "HistoryEvent":{ + "type":"structure", + "required":[ + "timestamp", + "type", + "id" + ], + "members":{ + "timestamp":{"shape":"Timestamp"}, + "type":{"shape":"HistoryEventType"}, + "id":{"shape":"EventId"}, + "previousEventId":{"shape":"EventId"}, + "activityFailedEventDetails":{"shape":"ActivityFailedEventDetails"}, + "activityScheduleFailedEventDetails":{"shape":"ActivityScheduleFailedEventDetails"}, + "activityScheduledEventDetails":{"shape":"ActivityScheduledEventDetails"}, + "activityStartedEventDetails":{"shape":"ActivityStartedEventDetails"}, + "activitySucceededEventDetails":{"shape":"ActivitySucceededEventDetails"}, + "activityTimedOutEventDetails":{"shape":"ActivityTimedOutEventDetails"}, + "executionFailedEventDetails":{"shape":"ExecutionFailedEventDetails"}, + "executionStartedEventDetails":{"shape":"ExecutionStartedEventDetails"}, + "executionSucceededEventDetails":{"shape":"ExecutionSucceededEventDetails"}, + "executionAbortedEventDetails":{"shape":"ExecutionAbortedEventDetails"}, + "executionTimedOutEventDetails":{"shape":"ExecutionTimedOutEventDetails"}, + "lambdaFunctionFailedEventDetails":{"shape":"LambdaFunctionFailedEventDetails"}, + "lambdaFunctionScheduleFailedEventDetails":{"shape":"LambdaFunctionScheduleFailedEventDetails"}, + "lambdaFunctionScheduledEventDetails":{"shape":"LambdaFunctionScheduledEventDetails"}, + "lambdaFunctionStartFailedEventDetails":{"shape":"LambdaFunctionStartFailedEventDetails"}, + "lambdaFunctionSucceededEventDetails":{"shape":"LambdaFunctionSucceededEventDetails"}, + "lambdaFunctionTimedOutEventDetails":{"shape":"LambdaFunctionTimedOutEventDetails"}, + "stateEnteredEventDetails":{"shape":"StateEnteredEventDetails"}, + "stateExitedEventDetails":{"shape":"StateExitedEventDetails"} + } + }, + "HistoryEventList":{ + "type":"list", + "member":{"shape":"HistoryEvent"} + }, + "HistoryEventType":{ + "type":"string", + "enum":[ + "ActivityFailed", + "ActivityScheduleFailed", + "ActivityScheduled", + "ActivityStarted", + "ActivitySucceeded", + "ActivityTimedOut", + "ChoiceStateEntered", + "ChoiceStateExited", + "ExecutionFailed", + "ExecutionStarted", + "ExecutionSucceeded", + "ExecutionAborted", + "ExecutionTimedOut", + "FailStateEntered", + "LambdaFunctionFailed", + "LambdaFunctionScheduleFailed", + "LambdaFunctionScheduled", + "LambdaFunctionStartFailed", + "LambdaFunctionStarted", + "LambdaFunctionSucceeded", + "LambdaFunctionTimedOut", + "SucceedStateEntered", + "SucceedStateExited", + "TaskStateEntered", + "TaskStateExited", + "PassStateEntered", + "PassStateExited", + "ParallelStateEntered", + "ParallelStateExited", + "WaitStateEntered", + "WaitStateExited" + ] + }, + "Identity":{ + "type":"string", + "max":256 + }, + "InvalidArn":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "InvalidDefinition":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "InvalidExecutionInput":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "InvalidName":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "InvalidOutput":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "InvalidToken":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "LambdaFunctionFailedEventDetails":{ + "type":"structure", + "members":{ + "error":{"shape":"Error"}, + "cause":{"shape":"Cause"} + } + }, + "LambdaFunctionScheduleFailedEventDetails":{ + "type":"structure", + "members":{ + "error":{"shape":"Error"}, + "cause":{"shape":"Cause"} + } + }, + "LambdaFunctionScheduledEventDetails":{ + "type":"structure", + "required":["resource"], + "members":{ + "resource":{"shape":"Arn"}, + "input":{"shape":"Data"}, + "timeoutInSeconds":{ + "shape":"TimeoutInSeconds", + "box":true + } + } + }, + "LambdaFunctionStartFailedEventDetails":{ + "type":"structure", + "members":{ + "error":{"shape":"Error"}, + "cause":{"shape":"Cause"} + } + }, + "LambdaFunctionSucceededEventDetails":{ + "type":"structure", + "members":{ + "output":{"shape":"Data"} + } + }, + "LambdaFunctionTimedOutEventDetails":{ + "type":"structure", + "members":{ + "error":{"shape":"Error"}, + "cause":{"shape":"Cause"} + } + }, + "ListActivitiesInput":{ + "type":"structure", + "members":{ + "maxResults":{"shape":"PageSize"}, + "nextToken":{"shape":"PageToken"} + } + }, + "ListActivitiesOutput":{ + "type":"structure", + "required":["activities"], + "members":{ + "activities":{"shape":"ActivityList"}, + "nextToken":{"shape":"PageToken"} + } + }, + "ListExecutionsInput":{ + "type":"structure", + "required":["stateMachineArn"], + "members":{ + "stateMachineArn":{"shape":"Arn"}, + "statusFilter":{"shape":"ExecutionStatus"}, + "maxResults":{"shape":"PageSize"}, + "nextToken":{"shape":"PageToken"} + } + }, + "ListExecutionsOutput":{ + "type":"structure", + "required":["executions"], + "members":{ + "executions":{"shape":"ExecutionList"}, + "nextToken":{"shape":"PageToken"} + } + }, + "ListStateMachinesInput":{ + "type":"structure", + "members":{ + "maxResults":{"shape":"PageSize"}, + "nextToken":{"shape":"PageToken"} + } + }, + "ListStateMachinesOutput":{ + "type":"structure", + "required":["stateMachines"], + "members":{ + "stateMachines":{"shape":"StateMachineList"}, + "nextToken":{"shape":"PageToken"} + } + }, + "Name":{ + "type":"string", + "max":80, + "min":1 + }, + "PageSize":{ + "type":"integer", + "max":1000, + "min":0 + }, + "PageToken":{ + "type":"string", + "max":1024, + "min":1 + }, + "ReverseOrder":{"type":"boolean"}, + "SendTaskFailureInput":{ + "type":"structure", + "required":["taskToken"], + "members":{ + "taskToken":{"shape":"TaskToken"}, + "error":{"shape":"Error"}, + "cause":{"shape":"Cause"} + } + }, + "SendTaskFailureOutput":{ + "type":"structure", + "members":{ + } + }, + "SendTaskHeartbeatInput":{ + "type":"structure", + "required":["taskToken"], + "members":{ + "taskToken":{"shape":"TaskToken"} + } + }, + "SendTaskHeartbeatOutput":{ + "type":"structure", + "members":{ + } + }, + "SendTaskSuccessInput":{ + "type":"structure", + "required":[ + "taskToken", + "output" + ], + "members":{ + "taskToken":{"shape":"TaskToken"}, + "output":{"shape":"Data"} + } + }, + "SendTaskSuccessOutput":{ + "type":"structure", + "members":{ + } + }, + "StartExecutionInput":{ + "type":"structure", + "required":["stateMachineArn"], + "members":{ + "stateMachineArn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "input":{"shape":"Data"} + } + }, + "StartExecutionOutput":{ + "type":"structure", + "required":[ + "executionArn", + "startDate" + ], + "members":{ + "executionArn":{"shape":"Arn"}, + "startDate":{"shape":"Timestamp"} + } + }, + "StateEnteredEventDetails":{ + "type":"structure", + "required":["name"], + "members":{ + "name":{"shape":"Name"}, + "input":{"shape":"Data"} + } + }, + "StateExitedEventDetails":{ + "type":"structure", + "required":["name"], + "members":{ + "name":{"shape":"Name"}, + "output":{"shape":"Data"} + } + }, + "StateMachineAlreadyExists":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "StateMachineDeleting":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "StateMachineDoesNotExist":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "StateMachineLimitExceeded":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "StateMachineList":{ + "type":"list", + "member":{"shape":"StateMachineListItem"} + }, + "StateMachineListItem":{ + "type":"structure", + "required":[ + "stateMachineArn", + "name", + "creationDate" + ], + "members":{ + "stateMachineArn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "creationDate":{"shape":"Timestamp"} + } + }, + "StateMachineStatus":{ + "type":"string", + "enum":[ + "ACTIVE", + "DELETING" + ] + }, + "StopExecutionInput":{ + "type":"structure", + "required":["executionArn"], + "members":{ + "executionArn":{"shape":"Arn"}, + "error":{"shape":"Error"}, + "cause":{"shape":"Cause"} + } + }, + "StopExecutionOutput":{ + "type":"structure", + "required":["stopDate"], + "members":{ + "stopDate":{"shape":"Timestamp"} + } + }, + "TaskDoesNotExist":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "TaskTimedOut":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "TaskToken":{ + "type":"string", + "max":1024, + "min":1 + }, + "TimeoutInSeconds":{"type":"long"}, + "Timestamp":{"type":"timestamp"} + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/states/2016-11-23/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/states/2016-11-23/docs-2.json new file mode 100644 index 000000000..b0a3f956d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/states/2016-11-23/docs-2.json @@ -0,0 +1,673 @@ +{ + "version": "2.0", + "service": "AWS Step Functions

AWS Step Functions is a web service that enables you to coordinate the components of distributed applications and microservices using visual workflows. You build applications from individual components that each perform a discrete function, or task, allowing you to scale and change applications quickly. Step Functions provides a graphical console to visualize the components of your application as a series of steps. It automatically triggers and tracks each step, and retries when there are errors, so your application executes in order and as expected, every time. Step Functions logs the state of each step, so when things do go wrong, you can diagnose and debug problems quickly.

Step Functions manages the operations and underlying infrastructure for you to ensure your application is available at any scale. You can run tasks on the AWS cloud, on your own servers, or an any system that has access to AWS. Step Functions can be accessed and used with the Step Functions console, the AWS SDKs (included with your Beta release invitation email), or an HTTP API (the subject of this document).

", + "operations": { + "CreateActivity": "

Creates an activity.

", + "CreateStateMachine": "

Creates a state machine.

", + "DeleteActivity": "

Deletes an activity.

", + "DeleteStateMachine": "

Deletes a state machine. This is an asynchronous operation-- it sets the state machine's status to \"DELETING\" and begins the delete process.

", + "DescribeActivity": "

Describes an activity.

", + "DescribeExecution": "

Describes an execution.

", + "DescribeStateMachine": "

Describes a state machine.

", + "GetActivityTask": "

Used by workers to retrieve a task (with the specified activity ARN) scheduled for execution by a running state machine. This initiates a long poll, where the service holds the HTTP connection open and responds as soon as a task becomes available (i.e. an execution of a task of this type is needed.) The maximum time the service holds on to the request before responding is 60 seconds. If no task is available within 60 seconds, the poll will return an empty result, that is, the taskToken returned is an empty string.

Workers should set their client side socket timeout to at least 65 seconds (5 seconds higher than the maximum time the service may hold the poll request).

", + "GetExecutionHistory": "

Returns the history of the specified execution as a list of events. By default, the results are returned in ascending order of the timeStamp of the events. Use the reverseOrder parameter to get the latest events first. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the nextToken returned by the previous call.

", + "ListActivities": "

Lists the existing activities. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the nextToken returned by the previous call.

", + "ListExecutions": "

Lists the executions of a state machine that meet the filtering criteria. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the nextToken returned by the previous call.

", + "ListStateMachines": "

Lists the existing state machines. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the nextToken returned by the previous call.

", + "SendTaskFailure": "

Used by workers to report that the task identified by the taskToken failed.

", + "SendTaskHeartbeat": "

Used by workers to report to the service that the task represented by the specified taskToken is still making progress. This action resets the Heartbeat clock. The Heartbeat threshold is specified in the state machine's Amazon States Language definition. This action does not in itself create an event in the execution history. However, if the task times out, the execution history will contain an ActivityTimedOut event.

The Timeout of a task, defined in the state machine's Amazon States Language definition, is its maximum allowed duration, regardless of the number of SendTaskHeartbeat requests received.

This operation is only useful for long-lived tasks to report the liveliness of the task.

", + "SendTaskSuccess": "

Used by workers to report that the task identified by the taskToken completed successfully.

", + "StartExecution": "

Starts a state machine execution.

", + "StopExecution": "

Stops an execution.

" + }, + "shapes": { + "ActivityDoesNotExist": { + "base": "

The specified activity does not exist.

", + "refs": { + } + }, + "ActivityFailedEventDetails": { + "base": null, + "refs": { + "HistoryEvent$activityFailedEventDetails": null + } + }, + "ActivityLimitExceeded": { + "base": "

The maximum number of activities has been reached. Existing activities must be deleted before a new activity can be created.

", + "refs": { + } + }, + "ActivityList": { + "base": null, + "refs": { + "ListActivitiesOutput$activities": "

The list of activities.

" + } + }, + "ActivityListItem": { + "base": null, + "refs": { + "ActivityList$member": null + } + }, + "ActivityScheduleFailedEventDetails": { + "base": null, + "refs": { + "HistoryEvent$activityScheduleFailedEventDetails": null + } + }, + "ActivityScheduledEventDetails": { + "base": null, + "refs": { + "HistoryEvent$activityScheduledEventDetails": null + } + }, + "ActivityStartedEventDetails": { + "base": null, + "refs": { + "HistoryEvent$activityStartedEventDetails": null + } + }, + "ActivitySucceededEventDetails": { + "base": null, + "refs": { + "HistoryEvent$activitySucceededEventDetails": null + } + }, + "ActivityTimedOutEventDetails": { + "base": null, + "refs": { + "HistoryEvent$activityTimedOutEventDetails": null + } + }, + "ActivityWorkerLimitExceeded": { + "base": "

The maximum number of workers concurrently polling for activity tasks has been reached.

", + "refs": { + } + }, + "Arn": { + "base": null, + "refs": { + "ActivityListItem$activityArn": "

The Amazon Resource Name (ARN) that identifies the activity.

", + "ActivityScheduledEventDetails$resource": "

The Amazon Resource Name (ARN) of the scheduled activity.

", + "CreateActivityOutput$activityArn": "

The Amazon Resource Name (ARN) that identifies the created activity.

", + "CreateStateMachineInput$roleArn": "

The Amazon Resource Name (ARN) of the IAM role to use for this state machine.

", + "CreateStateMachineOutput$stateMachineArn": "

The Amazon Resource Name (ARN) that identifies the created state machine.

", + "DeleteActivityInput$activityArn": "

The Amazon Resource Name (ARN) of the activity to delete.

", + "DeleteStateMachineInput$stateMachineArn": "

The Amazon Resource Name (ARN) of the state machine to delete.

", + "DescribeActivityInput$activityArn": "

The Amazon Resource Name (ARN) of the activity to describe.

", + "DescribeActivityOutput$activityArn": "

The Amazon Resource Name (ARN) that identifies the activity.

", + "DescribeExecutionInput$executionArn": "

The Amazon Resource Name (ARN) of the execution to describe.

", + "DescribeExecutionOutput$executionArn": "

The Amazon Resource Name (ARN) that identifies the execution.

", + "DescribeExecutionOutput$stateMachineArn": "

The Amazon Resource Name (ARN) of the executed stated machine.

", + "DescribeStateMachineInput$stateMachineArn": "

The Amazon Resource Name (ARN) of the state machine to describe.

", + "DescribeStateMachineOutput$stateMachineArn": "

The Amazon Resource Name (ARN) that identifies the state machine.

", + "DescribeStateMachineOutput$roleArn": "

The Amazon Resource Name (ARN) of the IAM role used for executing this state machine.

", + "ExecutionListItem$executionArn": "

The Amazon Resource Name (ARN) that identifies the execution.

", + "ExecutionListItem$stateMachineArn": "

The Amazon Resource Name (ARN) of the executed state machine.

", + "ExecutionStartedEventDetails$roleArn": "

The Amazon Resource Name (ARN) of the IAM role used for executing AWS Lambda tasks.

", + "GetActivityTaskInput$activityArn": "

The Amazon Resource Name (ARN) of the activity to retrieve tasks from.

", + "GetExecutionHistoryInput$executionArn": "

The Amazon Resource Name (ARN) of the execution.

", + "LambdaFunctionScheduledEventDetails$resource": "

The Amazon Resource Name (ARN) of the scheduled lambda function.

", + "ListExecutionsInput$stateMachineArn": "

The Amazon Resource Name (ARN) of the state machine whose executions will be listed.

", + "StartExecutionInput$stateMachineArn": "

The Amazon Resource Name (ARN) of the state machine to execute.

", + "StartExecutionOutput$executionArn": "

The Amazon Resource Name (ARN) that identifies the execution.

", + "StateMachineListItem$stateMachineArn": "

The Amazon Resource Name (ARN) that identifies the state machine.

", + "StopExecutionInput$executionArn": "

The Amazon Resource Name (ARN) of the execution to stop.

" + } + }, + "Cause": { + "base": null, + "refs": { + "ActivityFailedEventDetails$cause": "

A more detailed explanation of the cause of the failure.

", + "ActivityScheduleFailedEventDetails$cause": "

A more detailed explanation of the cause of the failure.

", + "ActivityTimedOutEventDetails$cause": "

A more detailed explanation of the cause of the timeout.

", + "ExecutionAbortedEventDetails$cause": "

A more detailed explanation of the cause of the failure.

", + "ExecutionFailedEventDetails$cause": "

A more detailed explanation of the cause of the failure.

", + "ExecutionTimedOutEventDetails$cause": "

A more detailed explanation of the cause of the timeout.

", + "LambdaFunctionFailedEventDetails$cause": "

A more detailed explanation of the cause of the failure.

", + "LambdaFunctionScheduleFailedEventDetails$cause": "

A more detailed explanation of the cause of the failure.

", + "LambdaFunctionStartFailedEventDetails$cause": "

A more detailed explanation of the cause of the failure.

", + "LambdaFunctionTimedOutEventDetails$cause": "

A more detailed explanation of the cause of the timeout.

", + "SendTaskFailureInput$cause": "

A more detailed explanation of the cause of the failure.

", + "StopExecutionInput$cause": "

A more detailed explanation of the cause of the termination.

" + } + }, + "CreateActivityInput": { + "base": null, + "refs": { + } + }, + "CreateActivityOutput": { + "base": null, + "refs": { + } + }, + "CreateStateMachineInput": { + "base": null, + "refs": { + } + }, + "CreateStateMachineOutput": { + "base": null, + "refs": { + } + }, + "Data": { + "base": null, + "refs": { + "ActivityScheduledEventDetails$input": "

The JSON data input to the activity task.

", + "ActivitySucceededEventDetails$output": "

The JSON data output by the activity task.

", + "DescribeExecutionOutput$input": "

The JSON input data of the execution.

", + "DescribeExecutionOutput$output": "

The JSON output data of the execution.

", + "ExecutionStartedEventDetails$input": "

The JSON data input to the execution.

", + "ExecutionSucceededEventDetails$output": "

The JSON data output by the execution.

", + "GetActivityTaskOutput$input": "

The JSON input data for the task.

", + "LambdaFunctionScheduledEventDetails$input": "

The JSON data input to the lambda function.

", + "LambdaFunctionSucceededEventDetails$output": "

The JSON data output by the lambda function.

", + "SendTaskSuccessInput$output": "

The JSON output of the task.

", + "StartExecutionInput$input": "

The JSON input data for the execution.

", + "StateEnteredEventDetails$input": "

The JSON input data to the state.

", + "StateExitedEventDetails$output": "

The JSON output data of the state.

" + } + }, + "Definition": { + "base": null, + "refs": { + "CreateStateMachineInput$definition": "

The Amazon States Language definition of the state machine.

", + "DescribeStateMachineOutput$definition": "

The Amazon States Language definition of the state machine.

" + } + }, + "DeleteActivityInput": { + "base": null, + "refs": { + } + }, + "DeleteActivityOutput": { + "base": null, + "refs": { + } + }, + "DeleteStateMachineInput": { + "base": null, + "refs": { + } + }, + "DeleteStateMachineOutput": { + "base": null, + "refs": { + } + }, + "DescribeActivityInput": { + "base": null, + "refs": { + } + }, + "DescribeActivityOutput": { + "base": null, + "refs": { + } + }, + "DescribeExecutionInput": { + "base": null, + "refs": { + } + }, + "DescribeExecutionOutput": { + "base": null, + "refs": { + } + }, + "DescribeStateMachineInput": { + "base": null, + "refs": { + } + }, + "DescribeStateMachineOutput": { + "base": null, + "refs": { + } + }, + "Error": { + "base": null, + "refs": { + "ActivityFailedEventDetails$error": "

The error code of the failure.

", + "ActivityScheduleFailedEventDetails$error": "

The error code of the failure.

", + "ActivityTimedOutEventDetails$error": "

The error code of the failure.

", + "ExecutionAbortedEventDetails$error": "

The error code of the failure.

", + "ExecutionFailedEventDetails$error": "

The error code of the failure.

", + "ExecutionTimedOutEventDetails$error": "

The error code of the failure.

", + "LambdaFunctionFailedEventDetails$error": "

The error code of the failure.

", + "LambdaFunctionScheduleFailedEventDetails$error": "

The error code of the failure.

", + "LambdaFunctionStartFailedEventDetails$error": "

The error code of the failure.

", + "LambdaFunctionTimedOutEventDetails$error": "

The error code of the failure.

", + "SendTaskFailureInput$error": "

An arbitrary error code that identifies the cause of the failure.

", + "StopExecutionInput$error": "

An arbitrary error code that identifies the cause of the termination.

" + } + }, + "ErrorMessage": { + "base": null, + "refs": { + "ActivityDoesNotExist$message": null, + "ActivityLimitExceeded$message": null, + "ActivityWorkerLimitExceeded$message": null, + "ExecutionAlreadyExists$message": null, + "ExecutionDoesNotExist$message": null, + "ExecutionLimitExceeded$message": null, + "InvalidArn$message": null, + "InvalidDefinition$message": null, + "InvalidExecutionInput$message": null, + "InvalidName$message": null, + "InvalidOutput$message": null, + "InvalidToken$message": null, + "StateMachineAlreadyExists$message": null, + "StateMachineDeleting$message": null, + "StateMachineDoesNotExist$message": null, + "StateMachineLimitExceeded$message": null, + "TaskDoesNotExist$message": null, + "TaskTimedOut$message": null + } + }, + "EventId": { + "base": null, + "refs": { + "HistoryEvent$id": "

The id of the event. Events are numbered sequentially, starting at one.

", + "HistoryEvent$previousEventId": "

The id of the previous event.

" + } + }, + "ExecutionAbortedEventDetails": { + "base": null, + "refs": { + "HistoryEvent$executionAbortedEventDetails": null + } + }, + "ExecutionAlreadyExists": { + "base": "

An execution with the same name already exists.

", + "refs": { + } + }, + "ExecutionDoesNotExist": { + "base": "

The specified execution does not exist.

", + "refs": { + } + }, + "ExecutionFailedEventDetails": { + "base": null, + "refs": { + "HistoryEvent$executionFailedEventDetails": null + } + }, + "ExecutionLimitExceeded": { + "base": "

The maximum number of running executions has been reached. Running executions must end or be stopped before a new execution can be started.

", + "refs": { + } + }, + "ExecutionList": { + "base": null, + "refs": { + "ListExecutionsOutput$executions": "

The list of matching executions.

" + } + }, + "ExecutionListItem": { + "base": null, + "refs": { + "ExecutionList$member": null + } + }, + "ExecutionStartedEventDetails": { + "base": null, + "refs": { + "HistoryEvent$executionStartedEventDetails": null + } + }, + "ExecutionStatus": { + "base": null, + "refs": { + "DescribeExecutionOutput$status": "

The current status of the execution.

", + "ExecutionListItem$status": "

The current status of the execution.

", + "ListExecutionsInput$statusFilter": "

If specified, only list the executions whose current execution status matches the given filter.

" + } + }, + "ExecutionSucceededEventDetails": { + "base": null, + "refs": { + "HistoryEvent$executionSucceededEventDetails": null + } + }, + "ExecutionTimedOutEventDetails": { + "base": null, + "refs": { + "HistoryEvent$executionTimedOutEventDetails": null + } + }, + "GetActivityTaskInput": { + "base": null, + "refs": { + } + }, + "GetActivityTaskOutput": { + "base": null, + "refs": { + } + }, + "GetExecutionHistoryInput": { + "base": null, + "refs": { + } + }, + "GetExecutionHistoryOutput": { + "base": null, + "refs": { + } + }, + "HistoryEvent": { + "base": null, + "refs": { + "HistoryEventList$member": null + } + }, + "HistoryEventList": { + "base": null, + "refs": { + "GetExecutionHistoryOutput$events": "

The list of events that occurred in the execution.

" + } + }, + "HistoryEventType": { + "base": null, + "refs": { + "HistoryEvent$type": "

The type of the event.

" + } + }, + "Identity": { + "base": null, + "refs": { + "ActivityStartedEventDetails$workerName": "

The name of the worker that the task was assigned to. These names are provided by the workers when calling GetActivityTask.

" + } + }, + "InvalidArn": { + "base": "

The provided Amazon Resource Name (ARN) is invalid.

", + "refs": { + } + }, + "InvalidDefinition": { + "base": "

The provided Amazon States Language definition is invalid.

", + "refs": { + } + }, + "InvalidExecutionInput": { + "base": "

The provided JSON input data is invalid.

", + "refs": { + } + }, + "InvalidName": { + "base": "

The provided name is invalid.

", + "refs": { + } + }, + "InvalidOutput": { + "base": "

The provided JSON output data is invalid.

", + "refs": { + } + }, + "InvalidToken": { + "base": "

The provided token is invalid.

", + "refs": { + } + }, + "LambdaFunctionFailedEventDetails": { + "base": null, + "refs": { + "HistoryEvent$lambdaFunctionFailedEventDetails": null + } + }, + "LambdaFunctionScheduleFailedEventDetails": { + "base": null, + "refs": { + "HistoryEvent$lambdaFunctionScheduleFailedEventDetails": null + } + }, + "LambdaFunctionScheduledEventDetails": { + "base": null, + "refs": { + "HistoryEvent$lambdaFunctionScheduledEventDetails": null + } + }, + "LambdaFunctionStartFailedEventDetails": { + "base": null, + "refs": { + "HistoryEvent$lambdaFunctionStartFailedEventDetails": null + } + }, + "LambdaFunctionSucceededEventDetails": { + "base": null, + "refs": { + "HistoryEvent$lambdaFunctionSucceededEventDetails": null + } + }, + "LambdaFunctionTimedOutEventDetails": { + "base": null, + "refs": { + "HistoryEvent$lambdaFunctionTimedOutEventDetails": null + } + }, + "ListActivitiesInput": { + "base": null, + "refs": { + } + }, + "ListActivitiesOutput": { + "base": null, + "refs": { + } + }, + "ListExecutionsInput": { + "base": null, + "refs": { + } + }, + "ListExecutionsOutput": { + "base": null, + "refs": { + } + }, + "ListStateMachinesInput": { + "base": null, + "refs": { + } + }, + "ListStateMachinesOutput": { + "base": null, + "refs": { + } + }, + "Name": { + "base": null, + "refs": { + "ActivityListItem$name": "

The name of the activity.

", + "CreateActivityInput$name": "

The name of the activity to create. This name must be unique for your AWS account and region.

", + "CreateStateMachineInput$name": "

The name of the state machine. This name must be unique for your AWS account and region.

", + "DescribeActivityOutput$name": "

The name of the activity.

", + "DescribeExecutionOutput$name": "

The name of the execution.

", + "DescribeStateMachineOutput$name": "

The name of the state machine.

", + "ExecutionListItem$name": "

The name of the execution.

", + "GetActivityTaskInput$workerName": "

An arbitrary name may be provided in order to identify the worker that the task is assigned to. This name will be used when it is logged in the execution history.

", + "StartExecutionInput$name": "

The name of the execution. This name must be unique for your AWS account and region.

", + "StateEnteredEventDetails$name": "

The name of the state.

", + "StateExitedEventDetails$name": "

The name of the state.

", + "StateMachineListItem$name": "

The name of the state machine.

" + } + }, + "PageSize": { + "base": null, + "refs": { + "GetExecutionHistoryInput$maxResults": "

The maximum number of results that will be returned per call. nextToken can be used to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000.

This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.

", + "ListActivitiesInput$maxResults": "

The maximum number of results that will be returned per call. nextToken can be used to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000.

This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.

", + "ListExecutionsInput$maxResults": "

The maximum number of results that will be returned per call. nextToken can be used to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000.

This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.

", + "ListStateMachinesInput$maxResults": "

The maximum number of results that will be returned per call. nextToken can be used to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000.

This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.

" + } + }, + "PageToken": { + "base": null, + "refs": { + "GetExecutionHistoryInput$nextToken": "

If a nextToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextToken. Keep all other arguments unchanged.

The configured maxResults determines how many results can be returned in a single call.

", + "GetExecutionHistoryOutput$nextToken": "

If a nextToken is returned, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextToken. Keep all other arguments unchanged.

The configured maxResults determines how many results can be returned in a single call.

", + "ListActivitiesInput$nextToken": "

If a nextToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextToken. Keep all other arguments unchanged.

The configured maxResults determines how many results can be returned in a single call.

", + "ListActivitiesOutput$nextToken": "

If a nextToken is returned, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextToken. Keep all other arguments unchanged.

The configured maxResults determines how many results can be returned in a single call.

", + "ListExecutionsInput$nextToken": "

If a nextToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextToken. Keep all other arguments unchanged.

The configured maxResults determines how many results can be returned in a single call.

", + "ListExecutionsOutput$nextToken": "

If a nextToken is returned, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextToken. Keep all other arguments unchanged.

The configured maxResults determines how many results can be returned in a single call.

", + "ListStateMachinesInput$nextToken": "

If a nextToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextToken. Keep all other arguments unchanged.

The configured maxResults determines how many results can be returned in a single call.

", + "ListStateMachinesOutput$nextToken": "

If a nextToken is returned, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextToken. Keep all other arguments unchanged.

The configured maxResults determines how many results can be returned in a single call.

" + } + }, + "ReverseOrder": { + "base": null, + "refs": { + "GetExecutionHistoryInput$reverseOrder": "

Lists events in descending order of their timeStamp.

" + } + }, + "SendTaskFailureInput": { + "base": null, + "refs": { + } + }, + "SendTaskFailureOutput": { + "base": null, + "refs": { + } + }, + "SendTaskHeartbeatInput": { + "base": null, + "refs": { + } + }, + "SendTaskHeartbeatOutput": { + "base": null, + "refs": { + } + }, + "SendTaskSuccessInput": { + "base": null, + "refs": { + } + }, + "SendTaskSuccessOutput": { + "base": null, + "refs": { + } + }, + "StartExecutionInput": { + "base": null, + "refs": { + } + }, + "StartExecutionOutput": { + "base": null, + "refs": { + } + }, + "StateEnteredEventDetails": { + "base": null, + "refs": { + "HistoryEvent$stateEnteredEventDetails": null + } + }, + "StateExitedEventDetails": { + "base": null, + "refs": { + "HistoryEvent$stateExitedEventDetails": null + } + }, + "StateMachineAlreadyExists": { + "base": "

A state machine with the same name but a different definition or role ARN already exists.

", + "refs": { + } + }, + "StateMachineDeleting": { + "base": "

The specified state machine is being deleted.

", + "refs": { + } + }, + "StateMachineDoesNotExist": { + "base": "

The specified state machine does not exist.

", + "refs": { + } + }, + "StateMachineLimitExceeded": { + "base": "

The maximum number of state machines has been reached. Existing state machines must be deleted before a new state machine can be created.

", + "refs": { + } + }, + "StateMachineList": { + "base": null, + "refs": { + "ListStateMachinesOutput$stateMachines": null + } + }, + "StateMachineListItem": { + "base": null, + "refs": { + "StateMachineList$member": null + } + }, + "StateMachineStatus": { + "base": null, + "refs": { + "DescribeStateMachineOutput$status": "

The current status of the state machine.

" + } + }, + "StopExecutionInput": { + "base": null, + "refs": { + } + }, + "StopExecutionOutput": { + "base": null, + "refs": { + } + }, + "TaskDoesNotExist": { + "base": null, + "refs": { + } + }, + "TaskTimedOut": { + "base": null, + "refs": { + } + }, + "TaskToken": { + "base": null, + "refs": { + "GetActivityTaskOutput$taskToken": "

A token that identifies the scheduled task. This token must be copied and included in subsequent calls to SendTaskHeartbeat, SendTaskSuccess or SendTaskFailure in order to report the progress or completion of the task.

", + "SendTaskFailureInput$taskToken": "

The token that represents this task. Task tokens are generated by the service when the tasks are assigned to a worker (see GetActivityTask::taskToken).

", + "SendTaskHeartbeatInput$taskToken": "

The token that represents this task. Task tokens are generated by the service when the tasks are assigned to a worker (see GetActivityTask::taskToken).

", + "SendTaskSuccessInput$taskToken": "

The token that represents this task. Task tokens are generated by the service when the tasks are assigned to a worker (see GetActivityTask::taskToken).

" + } + }, + "TimeoutInSeconds": { + "base": null, + "refs": { + "ActivityScheduledEventDetails$timeoutInSeconds": "

The maximum allowed duration of the activity task.

", + "ActivityScheduledEventDetails$heartbeatInSeconds": "

The maximum allowed duration between two heartbeats for the activity task.

", + "LambdaFunctionScheduledEventDetails$timeoutInSeconds": "

The maximum allowed duration of the lambda function.

" + } + }, + "Timestamp": { + "base": null, + "refs": { + "ActivityListItem$creationDate": "

The date the activity was created.

", + "CreateActivityOutput$creationDate": "

The date the activity was created.

", + "CreateStateMachineOutput$creationDate": "

The date the state machine was created.

", + "DescribeActivityOutput$creationDate": "

The date the activity was created.

", + "DescribeExecutionOutput$startDate": "

The date the execution was started.

", + "DescribeExecutionOutput$stopDate": "

If the execution has already ended, the date the execution stopped.

", + "DescribeStateMachineOutput$creationDate": "

The date the state machine was created.

", + "ExecutionListItem$startDate": "

The date the execution started.

", + "ExecutionListItem$stopDate": "

If the execution already ended, the date the execution stopped.

", + "HistoryEvent$timestamp": "

The date the event occured.

", + "StartExecutionOutput$startDate": "

The date the execution was started.

", + "StateMachineListItem$creationDate": "

The date the state machine was created.

", + "StopExecutionOutput$stopDate": "

The date the execution was stopped.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/states/2016-11-23/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/states/2016-11-23/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/states/2016-11-23/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/states/2016-11-23/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/states/2016-11-23/paginators-1.json new file mode 100644 index 000000000..9feccba63 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/states/2016-11-23/paginators-1.json @@ -0,0 +1,28 @@ +{ + "pagination": { + "GetExecutionHistory": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "events" + }, + "ListActivities": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "activities" + }, + "ListExecutions": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "executions" + }, + "ListStateMachines": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "stateMachines" + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/api-2.json index f84fe73fc..478243d91 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/api-2.json @@ -7,7 +7,8 @@ "protocol":"json", "serviceFullName":"AWS Storage Gateway", "signatureVersion":"v4", - "targetPrefix":"StorageGateway_20130630" + "targetPrefix":"StorageGateway_20130630", + "uid":"storagegateway-2013-06-30" }, "operations":{ "ActivateGateway":{ @@ -114,6 +115,19 @@ {"shape":"InternalServerError"} ] }, + "CreateNFSFileShare":{ + "name":"CreateNFSFileShare", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateNFSFileShareInput"}, + "output":{"shape":"CreateNFSFileShareOutput"}, + "errors":[ + {"shape":"InvalidGatewayRequestException"}, + {"shape":"InternalServerError"} + ] + }, "CreateSnapshot":{ "name":"CreateSnapshot", "http":{ @@ -124,7 +138,8 @@ "output":{"shape":"CreateSnapshotOutput"}, "errors":[ {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + {"shape":"InternalServerError"}, + {"shape":"ServiceUnavailableError"} ] }, "CreateSnapshotFromVolumeRecoveryPoint":{ @@ -137,7 +152,8 @@ "output":{"shape":"CreateSnapshotFromVolumeRecoveryPointOutput"}, "errors":[ {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + {"shape":"InternalServerError"}, + {"shape":"ServiceUnavailableError"} ] }, "CreateStorediSCSIVolume":{ @@ -205,6 +221,19 @@ {"shape":"InternalServerError"} ] }, + "DeleteFileShare":{ + "name":"DeleteFileShare", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteFileShareInput"}, + "output":{"shape":"DeleteFileShareOutput"}, + "errors":[ + {"shape":"InvalidGatewayRequestException"}, + {"shape":"InternalServerError"} + ] + }, "DeleteGateway":{ "name":"DeleteGateway", "http":{ @@ -348,6 +377,19 @@ {"shape":"InternalServerError"} ] }, + "DescribeNFSFileShares":{ + "name":"DescribeNFSFileShares", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeNFSFileSharesInput"}, + "output":{"shape":"DescribeNFSFileSharesOutput"}, + "errors":[ + {"shape":"InvalidGatewayRequestException"}, + {"shape":"InternalServerError"} + ] + }, "DescribeSnapshotSchedule":{ "name":"DescribeSnapshotSchedule", "http":{ @@ -465,6 +507,19 @@ {"shape":"InternalServerError"} ] }, + "ListFileShares":{ + "name":"ListFileShares", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListFileSharesInput"}, + "output":{"shape":"ListFileSharesOutput"}, + "errors":[ + {"shape":"InvalidGatewayRequestException"}, + {"shape":"InternalServerError"} + ] + }, "ListGateways":{ "name":"ListGateways", "http":{ @@ -712,6 +767,19 @@ {"shape":"InternalServerError"} ] }, + "UpdateNFSFileShare":{ + "name":"UpdateNFSFileShare", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateNFSFileShareInput"}, + "output":{"shape":"UpdateNFSFileShareOutput"}, + "errors":[ + {"shape":"InvalidGatewayRequestException"}, + {"shape":"InternalServerError"} + ] + }, "UpdateSnapshotSchedule":{ "name":"UpdateSnapshotSchedule", "http":{ @@ -850,6 +918,7 @@ "type":"long", "min":51200 }, + "Boolean":{"type":"boolean"}, "CachediSCSIVolume":{ "type":"structure", "members":{ @@ -860,7 +929,8 @@ "VolumeSizeInBytes":{"shape":"long"}, "VolumeProgress":{"shape":"DoubleObject"}, "SourceSnapshotId":{"shape":"SnapshotId"}, - "VolumeiSCSIAttributes":{"shape":"VolumeiSCSIAttributes"} + "VolumeiSCSIAttributes":{"shape":"VolumeiSCSIAttributes"}, + "CreatedDate":{"shape":"CreatedDate"} } }, "CachediSCSIVolumes":{ @@ -938,6 +1008,7 @@ "VolumeSizeInBytes":{"shape":"long"}, "SnapshotId":{"shape":"SnapshotId"}, "TargetName":{"shape":"TargetName"}, + "SourceVolumeARN":{"shape":"VolumeARN"}, "NetworkInterfaceId":{"shape":"NetworkInterfaceId"}, "ClientToken":{"shape":"ClientToken"} } @@ -949,6 +1020,32 @@ "TargetARN":{"shape":"TargetARN"} } }, + "CreateNFSFileShareInput":{ + "type":"structure", + "required":[ + "ClientToken", + "GatewayARN", + "Role", + "LocationARN" + ], + "members":{ + "ClientToken":{"shape":"ClientToken"}, + "NFSFileShareDefaults":{"shape":"NFSFileShareDefaults"}, + "GatewayARN":{"shape":"GatewayARN"}, + "KMSEncrypted":{"shape":"Boolean"}, + "KMSKey":{"shape":"KMSKey"}, + "Role":{"shape":"Role"}, + "LocationARN":{"shape":"LocationARN"}, + "DefaultStorageClass":{"shape":"StorageClass"}, + "ClientList":{"shape":"FileShareClientList"} + } + }, + "CreateNFSFileShareOutput":{ + "type":"structure", + "members":{ + "FileShareARN":{"shape":"FileShareARN"} + } + }, "CreateSnapshotFromVolumeRecoveryPointInput":{ "type":"structure", "required":[ @@ -1054,6 +1151,7 @@ "TapeARNs":{"shape":"TapeARNs"} } }, + "CreatedDate":{"type":"timestamp"}, "DayOfWeek":{ "type":"integer", "max":6, @@ -1094,6 +1192,19 @@ "InitiatorName":{"shape":"IqnName"} } }, + "DeleteFileShareInput":{ + "type":"structure", + "required":["FileShareARN"], + "members":{ + "FileShareARN":{"shape":"FileShareARN"} + } + }, + "DeleteFileShareOutput":{ + "type":"structure", + "members":{ + "FileShareARN":{"shape":"FileShareARN"} + } + }, "DeleteGatewayInput":{ "type":"structure", "required":["GatewayARN"], @@ -1261,6 +1372,19 @@ "Timezone":{"shape":"GatewayTimezone"} } }, + "DescribeNFSFileSharesInput":{ + "type":"structure", + "required":["FileShareARNList"], + "members":{ + "FileShareARNList":{"shape":"FileShareARNList"} + } + }, + "DescribeNFSFileSharesOutput":{ + "type":"structure", + "members":{ + "NFSFileShareInfoList":{"shape":"NFSFileShareInfoList"} + } + }, "DescribeSnapshotScheduleInput":{ "type":"structure", "required":["VolumeARN"], @@ -1519,6 +1643,46 @@ "VolumeNotReady" ] }, + "FileShareARN":{ + "type":"string", + "max":500, + "min":50 + }, + "FileShareARNList":{ + "type":"list", + "member":{"shape":"FileShareARN"}, + "max":10, + "min":1 + }, + "FileShareClientList":{ + "type":"list", + "member":{"shape":"IPV4AddressCIDR"}, + "max":100, + "min":1 + }, + "FileShareId":{ + "type":"string", + "max":30, + "min":12 + }, + "FileShareInfo":{ + "type":"structure", + "members":{ + "FileShareARN":{"shape":"FileShareARN"}, + "FileShareId":{"shape":"FileShareId"}, + "FileShareStatus":{"shape":"FileShareStatus"}, + "GatewayARN":{"shape":"GatewayARN"} + } + }, + "FileShareInfoList":{ + "type":"list", + "member":{"shape":"FileShareInfo"} + }, + "FileShareStatus":{ + "type":"string", + "max":50, + "min":3 + }, "GatewayARN":{ "type":"string", "max":500, @@ -1578,6 +1742,10 @@ "max":23, "min":0 }, + "IPV4AddressCIDR":{ + "type":"string", + "pattern":"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))?$" + }, "Initiator":{ "type":"string", "max":50, @@ -1609,11 +1777,32 @@ "min":1, "pattern":"[0-9a-z:.-]+" }, + "KMSKey":{ + "type":"string", + "max":2048, + "min":20 + }, "LastSoftwareUpdate":{ "type":"string", "max":25, "min":1 }, + "ListFileSharesInput":{ + "type":"structure", + "members":{ + "GatewayARN":{"shape":"GatewayARN"}, + "Limit":{"shape":"PositiveIntObject"}, + "Marker":{"shape":"Marker"} + } + }, + "ListFileSharesOutput":{ + "type":"structure", + "members":{ + "Marker":{"shape":"Marker"}, + "NextMarker":{"shape":"Marker"}, + "FileShareInfoList":{"shape":"FileShareInfoList"} + } + }, "ListGatewaysInput":{ "type":"structure", "members":{ @@ -1724,6 +1913,11 @@ "pattern":"^[ -~]+$", "sensitive":true }, + "LocationARN":{ + "type":"string", + "max":310, + "min":16 + }, "Marker":{ "type":"string", "max":1000, @@ -1739,6 +1933,36 @@ "max":59, "min":0 }, + "NFSFileShareDefaults":{ + "type":"structure", + "members":{ + "FileMode":{"shape":"PermissionMode"}, + "DirectoryMode":{"shape":"PermissionMode"}, + "GroupId":{"shape":"PermissionId"}, + "OwnerId":{"shape":"PermissionId"} + } + }, + "NFSFileShareInfo":{ + "type":"structure", + "members":{ + "NFSFileShareDefaults":{"shape":"NFSFileShareDefaults"}, + "FileShareARN":{"shape":"FileShareARN"}, + "FileShareId":{"shape":"FileShareId"}, + "FileShareStatus":{"shape":"FileShareStatus"}, + "GatewayARN":{"shape":"GatewayARN"}, + "KMSEncrypted":{"shape":"boolean"}, + "KMSKey":{"shape":"KMSKey"}, + "Path":{"shape":"Path"}, + "Role":{"shape":"Role"}, + "LocationARN":{"shape":"LocationARN"}, + "DefaultStorageClass":{"shape":"StorageClass"}, + "ClientList":{"shape":"FileShareClientList"} + } + }, + "NFSFileShareInfoList":{ + "type":"list", + "member":{"shape":"NFSFileShareInfo"} + }, "NetworkInterface":{ "type":"structure", "members":{ @@ -1761,6 +1985,18 @@ "max":10, "min":1 }, + "Path":{"type":"string"}, + "PermissionId":{ + "type":"long", + "max":4294967294, + "min":0 + }, + "PermissionMode":{ + "type":"string", + "max":4, + "min":1, + "pattern":"^[0-7]{4}$" + }, "PositiveIntObject":{ "type":"integer", "min":1 @@ -1844,6 +2080,19 @@ "TapeARN":{"shape":"TapeARN"} } }, + "Role":{ + "type":"string", + "max":2048, + "min":20 + }, + "ServiceUnavailableError":{ + "type":"structure", + "members":{ + "message":{"shape":"string"}, + "error":{"shape":"StorageGatewayError"} + }, + "exception":true + }, "SetLocalConsolePasswordInput":{ "type":"structure", "required":[ @@ -1896,6 +2145,11 @@ "GatewayARN":{"shape":"GatewayARN"} } }, + "StorageClass":{ + "type":"string", + "max":20, + "min":5 + }, "StorageGatewayError":{ "type":"structure", "members":{ @@ -1915,7 +2169,8 @@ "VolumeDiskId":{"shape":"DiskId"}, "SourceSnapshotId":{"shape":"SnapshotId"}, "PreservedExistingData":{"shape":"boolean"}, - "VolumeiSCSIAttributes":{"shape":"VolumeiSCSIAttributes"} + "VolumeiSCSIAttributes":{"shape":"VolumeiSCSIAttributes"}, + "CreatedDate":{"shape":"CreatedDate"} } }, "StorediSCSIVolumes":{ @@ -1956,6 +2211,7 @@ "members":{ "TapeARN":{"shape":"TapeARN"}, "TapeBarcode":{"shape":"TapeBarcode"}, + "TapeCreatedDate":{"shape":"Time"}, "TapeSizeInBytes":{"shape":"TapeSize"}, "TapeStatus":{"shape":"TapeStatus"}, "VTLDevice":{"shape":"VTLDeviceARN"}, @@ -1965,7 +2221,8 @@ "TapeARN":{ "type":"string", "max":500, - "min":50 + "min":50, + "pattern":"^arn:(aws|aws-cn):storagegateway:[a-z\\-0-9]+:[0-9]+:tape\\/[0-9A-Z]{7,16}$" }, "TapeARNs":{ "type":"list", @@ -1976,6 +2233,7 @@ "members":{ "TapeARN":{"shape":"TapeARN"}, "TapeBarcode":{"shape":"TapeBarcode"}, + "TapeCreatedDate":{"shape":"Time"}, "TapeSizeInBytes":{"shape":"TapeSize"}, "CompletionTime":{"shape":"Time"}, "RetrievedTo":{"shape":"GatewayARN"}, @@ -2136,6 +2394,24 @@ "GatewayARN":{"shape":"GatewayARN"} } }, + "UpdateNFSFileShareInput":{ + "type":"structure", + "required":["FileShareARN"], + "members":{ + "FileShareARN":{"shape":"FileShareARN"}, + "KMSEncrypted":{"shape":"Boolean"}, + "KMSKey":{"shape":"KMSKey"}, + "NFSFileShareDefaults":{"shape":"NFSFileShareDefaults"}, + "DefaultStorageClass":{"shape":"StorageClass"}, + "ClientList":{"shape":"FileShareClientList"} + } + }, + "UpdateNFSFileShareOutput":{ + "type":"structure", + "members":{ + "FileShareARN":{"shape":"FileShareARN"} + } + }, "UpdateSnapshotScheduleInput":{ "type":"structure", "required":[ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/docs-2.json index 0702cc75f..0828b6e9d 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/docs-2.json @@ -1,22 +1,24 @@ { "version": "2.0", - "service": "AWS Storage Gateway Service

AWS Storage Gateway is the service that connects an on-premises software appliance with cloud-based storage to provide seamless and secure integration between an organization's on-premises IT environment and AWS's storage infrastructure. The service enables you to securely upload data to the AWS cloud for cost effective backup and rapid disaster recovery.

Use the following links to get started using the AWS Storage Gateway Service API Reference:

AWS Storage Gateway resource IDs are in uppercase. When you use these resource IDs with the Amazon EC2 API, EC2 expects resource IDs in lowercase. You must change your resource ID to lowercase to use it with the EC2 API. For example, in Storage Gateway the ID for a volume might be vol-1122AABB. When you use this ID with the EC2 API, you must change it to vol-1122aabb. Otherwise, the EC2 API might not behave as expected.

IDs for Storage Gateway volumes and Amazon EBS snapshots created from gateway volumes are changing to a longer format. Starting in December 2016, all new volumes and snapshots will be created with a 17-character string. Starting in April 2016, you will be able to use these longer IDs so you can test your systems with the new format. For more information, see Longer EC2 and EBS Resource IDs.

For example, a volume ARN with the longer volume ID format will look like this:

arn:aws:storagegateway:us-west-2:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABBCCDDEEFFG.

A snapshot ID with the longer ID format will look like this: snap-78e226633445566ee.

For more information, see Announcement: Heads-up – Longer AWS Storage Gateway volume and snapshot IDs coming in 2016.

", + "service": "AWS Storage Gateway Service

AWS Storage Gateway is the service that connects an on-premises software appliance with cloud-based storage to provide seamless and secure integration between an organization's on-premises IT environment and AWS's storage infrastructure. The service enables you to securely upload data to the AWS cloud for cost effective backup and rapid disaster recovery.

Use the following links to get started using the AWS Storage Gateway Service API Reference:

AWS Storage Gateway resource IDs are in uppercase. When you use these resource IDs with the Amazon EC2 API, EC2 expects resource IDs in lowercase. You must change your resource ID to lowercase to use it with the EC2 API. For example, in Storage Gateway the ID for a volume might be vol-1122AABB. When you use this ID with the EC2 API, you must change it to vol-1122aabb. Otherwise, the EC2 API might not behave as expected.

IDs for Storage Gateway volumes and Amazon EBS snapshots created from gateway volumes are changing to a longer format. Starting in December 2016, all new volumes and snapshots will be created with a 17-character string. Starting in April 2016, you will be able to use these longer IDs so you can test your systems with the new format. For more information, see Longer EC2 and EBS Resource IDs.

For example, a volume ARN with the longer volume ID format will look like this:

arn:aws:storagegateway:us-west-2:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABBCCDDEEFFG.

A snapshot ID with the longer ID format will look like this: snap-78e226633445566ee.

For more information, see Announcement: Heads-up – Longer AWS Storage Gateway volume and snapshot IDs coming in 2016.

", "operations": { - "ActivateGateway": "

Activates the gateway you previously deployed on your host. For more information, see Activate the AWS Storage Gateway. In the activation process, you specify information such as the you want to use for storing snapshots, the time zone for scheduled snapshots the gateway snapshot schedule window, an activation key, and a name for your gateway. The activation process also associates your gateway with your account; for more information, see UpdateGatewayInformation.

You must turn on the gateway VM before you can activate your gateway.

", + "ActivateGateway": "

Activates the gateway you previously deployed on your host. For more information, see Activate the AWS Storage Gateway. In the activation process, you specify information such as the you want to use for storing snapshots, the time zone for scheduled snapshots the gateway snapshot schedule window, an activation key, and a name for your gateway. The activation process also associates your gateway with your account; for more information, see UpdateGatewayInformation.

You must turn on the gateway VM before you can activate your gateway.

", "AddCache": "

Configures one or more gateway local disks as cache for a cached-volume gateway. This operation is supported only for the gateway-cached volume architecture (see Storage Gateway Concepts).

In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add cache, and one or more disk IDs that you want to configure as cache.

", "AddTagsToResource": "

Adds one or more tags to the specified resource. You use tags to add metadata to resources, which you can use to categorize these resources. For example, you can categorize resources by purpose, owner, environment, or team. Each tag consists of a key and a value, which you define. You can add tags to the following AWS Storage Gateway resources:

  • Storage gateways of all types

  • Storage Volumes

  • Virtual Tapes

You can create a maximum of 10 tags for each resource. Virtual tapes and storage volumes that are recovered to a new gateway maintain their tags.

", "AddUploadBuffer": "

Configures one or more gateway local disks as upload buffer for a specified gateway. This operation is supported for both the gateway-stored and gateway-cached volume architectures.

In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add upload buffer, and one or more disk IDs that you want to configure as upload buffer.

", "AddWorkingStorage": "

Configures one or more gateway local disks as working storage for a gateway. This operation is supported only for the gateway-stored volume architecture. This operation is deprecated in cached-volumes API version 20120630. Use AddUploadBuffer instead.

Working storage is also referred to as upload buffer. You can also use the AddUploadBuffer operation to add upload buffer to a stored-volume gateway.

In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add working storage, and one or more disk IDs that you want to configure as working storage.

", "CancelArchival": "

Cancels archiving of a virtual tape to the virtual tape shelf (VTS) after the archiving process is initiated.

", "CancelRetrieval": "

Cancels retrieval of a virtual tape from the virtual tape shelf (VTS) to a gateway after the retrieval process is initiated. The virtual tape is returned to the VTS.

", - "CreateCachediSCSIVolume": "

Creates a cached volume on a specified cached gateway. This operation is supported only for the gateway-cached volume architecture.

Cache storage must be allocated to the gateway before you can create a cached volume. Use the AddCache operation to add cache storage to a gateway.

In the request, you must specify the gateway, size of the volume in bytes, the iSCSI target name, an IP address on which to expose the target, and a unique client token. In response, AWS Storage Gateway creates the volume and returns information about it such as the volume Amazon Resource Name (ARN), its size, and the iSCSI target ARN that initiators can use to connect to the volume target.

", - "CreateSnapshot": "

Initiates a snapshot of a volume.

AWS Storage Gateway provides the ability to back up point-in-time snapshots of your data to Amazon Simple Storage (S3) for durable off-site recovery, as well as import the data to an Amazon Elastic Block Store (EBS) volume in Amazon Elastic Compute Cloud (EC2). You can take snapshots of your gateway volume on a scheduled or ad-hoc basis. This API enables you to take ad-hoc snapshot. For more information, see Working With Snapshots in the AWS Storage Gateway Console.

In the CreateSnapshot request you identify the volume by providing its Amazon Resource Name (ARN). You must also provide description for the snapshot. When AWS Storage Gateway takes the snapshot of specified volume, the snapshot and description appears in the AWS Storage Gateway Console. In response, AWS Storage Gateway returns you a snapshot ID. You can use this snapshot ID to check the snapshot progress or later use it when you want to create a volume from a snapshot.

To list or delete a snapshot, you must use the Amazon EC2 API. For more information, see DescribeSnapshots or DeleteSnapshot in the EC2 API reference.

Volume and snapshot IDs are changing to a longer length ID format. For more information, see the important note on the Welcome page.

", + "CreateCachediSCSIVolume": "

Creates a cached volume on a specified cached gateway. This operation is supported only for the gateway-cached volume architecture.

Cache storage must be allocated to the gateway before you can create a cached volume. Use the AddCache operation to add cache storage to a gateway.

In the request, you must specify the gateway, size of the volume in bytes, the iSCSI target name, an IP address on which to expose the target, and a unique client token. In response, AWS Storage Gateway creates the volume and returns information about it. This information includes the volume Amazon Resource Name (ARN), its size, and the iSCSI target ARN that initiators can use to connect to the volume target.

Optionally, you can provide the ARN for an existing volume as the SourceVolumeARN for this cached volume, which creates an exact copy of the existing volume’s latest recovery point. The VolumeSizeInBytes value must be equal to or larger than the size of the copied volume, in bytes.

", + "CreateNFSFileShare": "

Creates a file share on an existing file gateway. In Storage Gateway, a file share is a file system mount point backed by Amazon S3 cloud storage. Storage Gateway exposes file shares using a Network File System (NFS) interface.

", + "CreateSnapshot": "

Initiates a snapshot of a volume.

AWS Storage Gateway provides the ability to back up point-in-time snapshots of your data to Amazon Simple Storage (S3) for durable off-site recovery, as well as import the data to an Amazon Elastic Block Store (EBS) volume in Amazon Elastic Compute Cloud (EC2). You can take snapshots of your gateway volume on a scheduled or ad-hoc basis. This API enables you to take ad-hoc snapshot. For more information, see Working With Snapshots in the AWS Storage Gateway Console.

In the CreateSnapshot request you identify the volume by providing its Amazon Resource Name (ARN). You must also provide description for the snapshot. When AWS Storage Gateway takes the snapshot of specified volume, the snapshot and description appears in the AWS Storage Gateway Console. In response, AWS Storage Gateway returns you a snapshot ID. You can use this snapshot ID to check the snapshot progress or later use it when you want to create a volume from a snapshot.

To list or delete a snapshot, you must use the Amazon EC2 API. For more information, see DescribeSnapshots or DeleteSnapshot in the EC2 API reference.

Volume and snapshot IDs are changing to a longer length ID format. For more information, see the important note on the Welcome page.

", "CreateSnapshotFromVolumeRecoveryPoint": "

Initiates a snapshot of a gateway from a volume recovery point. This operation is supported only for the gateway-cached volume architecture.

A volume recovery point is a point in time at which all data of the volume is consistent and from which you can create a snapshot. To get a list of volume recovery point for gateway-cached volumes, use ListVolumeRecoveryPoints.

In the CreateSnapshotFromVolumeRecoveryPoint request, you identify the volume by providing its Amazon Resource Name (ARN). You must also provide a description for the snapshot. When AWS Storage Gateway takes a snapshot of the specified volume, the snapshot and its description appear in the AWS Storage Gateway console. In response, AWS Storage Gateway returns you a snapshot ID. You can use this snapshot ID to check the snapshot progress or later use it when you want to create a volume from a snapshot.

To list or delete a snapshot, you must use the Amazon EC2 API. For more information, in Amazon Elastic Compute Cloud API Reference.

", "CreateStorediSCSIVolume": "

Creates a volume on a specified gateway. This operation is supported only for the gateway-stored volume architecture.

The size of the volume to create is inferred from the disk size. You can choose to preserve existing data on the disk, create volume from an existing snapshot, or create an empty volume. If you choose to create an empty gateway volume, then any existing data on the disk is erased.

In the request you must specify the gateway and the disk information on which you are creating the volume. In response, AWS Storage Gateway creates the volume and returns volume information such as the volume Amazon Resource Name (ARN), its size, and the iSCSI target ARN that initiators can use to connect to the volume target.

", - "CreateTapeWithBarcode": "

Creates a virtual tape by using your own barcode. You write data to the virtual tape and then archive the tape.

Cache storage must be allocated to the gateway before you can create a virtual tape. Use the AddCache operation to add cache storage to a gateway.

", - "CreateTapes": "

Creates one or more virtual tapes. You write data to the virtual tapes and then archive the tapes.

Cache storage must be allocated to the gateway before you can create virtual tapes. Use the AddCache operation to add cache storage to a gateway.

", + "CreateTapeWithBarcode": "

Creates a virtual tape by using your own barcode. You write data to the virtual tape and then archive the tape.

Cache storage must be allocated to the gateway before you can create a virtual tape. Use the AddCache operation to add cache storage to a gateway.

", + "CreateTapes": "

Creates one or more virtual tapes. You write data to the virtual tapes and then archive the tapes.

Cache storage must be allocated to the gateway before you can create virtual tapes. Use the AddCache operation to add cache storage to a gateway.

", "DeleteBandwidthRateLimit": "

Deletes the bandwidth rate limits of a gateway. You can delete either the upload and download bandwidth rate limit, or you can delete both. If you delete only one of the limits, the other limit remains unchanged. To specify which gateway to work with, use the Amazon Resource Name (ARN) of the gateway in your request.

", "DeleteChapCredentials": "

Deletes Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target and initiator pair.

", + "DeleteFileShare": "

Deletes a file share from a file gateway.

", "DeleteGateway": "

Deletes a gateway. To specify which gateway to delete, use the Amazon Resource Name (ARN) of the gateway in your request. The operation deletes the gateway; however, it does not delete the gateway virtual machine (VM) from your host computer.

After you delete a gateway, you cannot reactivate it. Completed snapshots of the gateway volumes are not deleted upon deleting the gateway, however, pending snapshots will not complete. After you delete a gateway, your next step is to remove it from your environment.

You no longer pay software charges after the gateway is deleted; however, your existing Amazon EBS snapshots persist and you will continue to be billed for these snapshots. You can choose to remove all remaining Amazon EBS snapshots by canceling your Amazon EC2 subscription.  If you prefer not to cancel your Amazon EC2 subscription, you can delete your snapshots using the Amazon EC2 console. For more information, see the AWS Storage Gateway Detail Page.

", "DeleteSnapshotSchedule": "

Deletes a snapshot of a volume.

You can take snapshots of your gateway volumes on a scheduled or ad hoc basis. This API action enables you to delete a snapshot schedule for a volume. For more information, see Working with Snapshots. In the DeleteSnapshotSchedule request, you identify the volume by providing its Amazon Resource Name (ARN).

To list or delete a snapshot, you must use the Amazon EC2 API. in Amazon Elastic Compute Cloud API Reference.

", "DeleteTape": "

Deletes the specified virtual tape.

", @@ -28,6 +30,7 @@ "DescribeChapCredentials": "

Returns an array of Challenge-Handshake Authentication Protocol (CHAP) credentials information for a specified iSCSI target, one for each target-initiator pair.

", "DescribeGatewayInformation": "

Returns metadata about a gateway such as its name, network interfaces, configured time zone, and the state (whether the gateway is running or not). To specify which gateway to describe, use the Amazon Resource Name (ARN) of the gateway in your request.

", "DescribeMaintenanceStartTime": "

Returns your gateway's weekly maintenance start time including the day and time of the week. Note that values are in terms of the gateway's time zone.

", + "DescribeNFSFileShares": "

Gets a description for one or more file shares from a file gateway.

", "DescribeSnapshotSchedule": "

Describes the snapshot schedule for the specified gateway volume. The snapshot schedule information includes intervals at which snapshots are automatically initiated on the volume.

", "DescribeStorediSCSIVolumes": "

Returns the description of the gateway volumes specified in the request. The list of gateway volumes in the request must be from one gateway. In the response Amazon Storage Gateway returns volume information sorted by volume ARNs.

", "DescribeTapeArchives": "

Returns a description of specified virtual tapes in the virtual tape shelf (VTS).

If a specific TapeARN is not specified, AWS Storage Gateway returns a description of all virtual tapes found in the VTS associated with your account.

", @@ -36,26 +39,28 @@ "DescribeUploadBuffer": "

Returns information about the upload buffer of a gateway. This operation is supported for both the gateway-stored and gateway-cached volume architectures.

The response includes disk IDs that are configured as upload buffer space, and it includes the amount of upload buffer space allocated and used.

", "DescribeVTLDevices": "

Returns a description of virtual tape library (VTL) devices for the specified gateway. In the response, AWS Storage Gateway returns VTL device information.

The list of VTL devices must be from one gateway.

", "DescribeWorkingStorage": "

Returns information about the working storage of a gateway. This operation is supported only for the gateway-stored volume architecture. This operation is deprecated in cached-volumes API version (20120630). Use DescribeUploadBuffer instead.

Working storage is also referred to as upload buffer. You can also use the DescribeUploadBuffer operation to add upload buffer to a stored-volume gateway.

The response includes disk IDs that are configured as working storage, and it includes the amount of working storage allocated and used.

", - "DisableGateway": "

Disables a gateway when the gateway is no longer functioning. For example, if your gateway VM is damaged, you can disable the gateway so you can recover virtual tapes.

Use this operation for a gateway-VTL that is not reachable or not functioning.

Once a gateway is disabled it cannot be enabled.

", + "DisableGateway": "

Disables a gateway when the gateway is no longer functioning. For example, if your gateway VM is damaged, you can disable the gateway so you can recover virtual tapes.

Use this operation for a gateway-VTL that is not reachable or not functioning.

Once a gateway is disabled it cannot be enabled.

", + "ListFileShares": "

Gets a list of the file shares for a specific file gateway, or the list of file shares that belong to the calling user account.

", "ListGateways": "

Lists gateways owned by an AWS account in a region specified in the request. The returned list is ordered by gateway Amazon Resource Name (ARN).

By default, the operation returns a maximum of 100 gateways. This operation supports pagination that allows you to optionally reduce the number of gateways returned in a response.

If you have more gateways than are returned in a response (that is, the response returns only a truncated list of your gateways), the response contains a marker that you can specify in your next request to fetch the next page of gateways.

", "ListLocalDisks": "

Returns a list of the gateway's local disks. To specify which gateway to describe, you use the Amazon Resource Name (ARN) of the gateway in the body of the request.

The request returns a list of all disks, specifying which are configured as working storage, cache storage, or stored volume or not configured at all. The response includes a DiskStatus field. This field can have a value of present (the disk is available to use), missing (the disk is no longer connected to the gateway), or mismatch (the disk node is occupied by a disk that has incorrect metadata or the disk content is corrupted).

", "ListTagsForResource": "

Lists the tags that have been added to the specified resource.

", "ListTapes": "

Lists virtual tapes in your virtual tape library (VTL) and your virtual tape shelf (VTS). You specify the tapes to list by specifying one or more tape Amazon Resource Names (ARNs). If you don't specify a tape ARN, the operation lists all virtual tapes in both your VTL and VTS.

This operation supports pagination. By default, the operation returns a maximum of up to 100 tapes. You can optionally specify the Limit parameter in the body to limit the number of tapes in the response. If the number of tapes returned in the response is truncated, the response includes a Marker element that you can use in your subsequent request to retrieve the next set of tapes.

", "ListVolumeInitiators": "

Lists iSCSI initiators that are connected to a volume. You can use this operation to determine whether a volume is being used or not.

", "ListVolumeRecoveryPoints": "

Lists the recovery points for a specified gateway. This operation is supported only for the gateway-cached volume architecture.

Each gateway-cached volume has one recovery point. A volume recovery point is a point in time at which all data of the volume is consistent and from which you can create a snapshot. To create a snapshot from a volume recovery point use the CreateSnapshotFromVolumeRecoveryPoint operation.

", - "ListVolumes": "

Lists the iSCSI stored volumes of a gateway. Results are sorted by volume ARN. The response includes only the volume ARNs. If you want additional volume information, use the DescribeStorediSCSIVolumes API.

The operation supports pagination. By default, the operation returns a maximum of up to 100 volumes. You can optionally specify the Limit field in the body to limit the number of volumes in the response. If the number of volumes returned in the response is truncated, the response includes a Marker field. You can use this Marker value in your subsequent request to retrieve the next set of volumes.

", + "ListVolumes": "

Lists the iSCSI stored volumes of a gateway. Results are sorted by volume ARN. The response includes only the volume ARNs. If you want additional volume information, use the DescribeStorediSCSIVolumes or the DescribeCachediSCSIVolumes API.

The operation supports pagination. By default, the operation returns a maximum of up to 100 volumes. You can optionally specify the Limit field in the body to limit the number of volumes in the response. If the number of volumes returned in the response is truncated, the response includes a Marker field. You can use this Marker value in your subsequent request to retrieve the next set of volumes.

", "RemoveTagsFromResource": "

Removes one or more tags from the specified resource.

", "ResetCache": "

Resets all cache disks that have encountered a error and makes the disks available for reconfiguration as cache storage. If your cache disk encounters a error, the gateway prevents read and write operations on virtual tapes in the gateway. For example, an error can occur when a disk is corrupted or removed from the gateway. When a cache is reset, the gateway loses its cache storage. At this point you can reconfigure the disks as cache disks.

If the cache disk you are resetting contains data that has not been uploaded to Amazon S3 yet, that data can be lost. After you reset cache disks, there will be no configured cache disks left in the gateway, so you must configure at least one new cache disk for your gateway to function properly.

", "RetrieveTapeArchive": "

Retrieves an archived virtual tape from the virtual tape shelf (VTS) to a gateway-VTL. Virtual tapes archived in the VTS are not associated with any gateway. However after a tape is retrieved, it is associated with a gateway, even though it is also listed in the VTS.

Once a tape is successfully retrieved to a gateway, it cannot be retrieved again to another gateway. You must archive the tape again before you can retrieve it to another gateway.

", - "RetrieveTapeRecoveryPoint": "

Retrieves the recovery point for the specified virtual tape.

A recovery point is a point in time view of a virtual tape at which all the data on the tape is consistent. If your gateway crashes, virtual tapes that have recovery points can be recovered to a new gateway.

The virtual tape can be retrieved to only one gateway. The retrieved tape is read-only. The virtual tape can be retrieved to only a gateway-VTL. There is no charge for retrieving recovery points.

", + "RetrieveTapeRecoveryPoint": "

Retrieves the recovery point for the specified virtual tape.

A recovery point is a point in time view of a virtual tape at which all the data on the tape is consistent. If your gateway crashes, virtual tapes that have recovery points can be recovered to a new gateway.

The virtual tape can be retrieved to only one gateway. The retrieved tape is read-only. The virtual tape can be retrieved to only a gateway-VTL. There is no charge for retrieving recovery points.

", "SetLocalConsolePassword": "

Sets the password for your VM local console. When you log in to the local console for the first time, you log in to the VM with the default credentials. We recommend that you set a new password. You don't need to know the default password to set a new password.

", - "ShutdownGateway": "

Shuts down a gateway. To specify which gateway to shut down, use the Amazon Resource Name (ARN) of the gateway in the body of your request.

The operation shuts down the gateway service component running in the storage gateway's virtual machine (VM) and not the VM.

If you want to shut down the VM, it is recommended that you first shut down the gateway component in the VM to avoid unpredictable conditions.

After the gateway is shutdown, you cannot call any other API except StartGateway, DescribeGatewayInformation, and ListGateways. For more information, see ActivateGateway. Your applications cannot read from or write to the gateway's storage volumes, and there are no snapshots taken.

When you make a shutdown request, you will get a 200 OK success response immediately. However, it might take some time for the gateway to shut down. You can call the DescribeGatewayInformation API to check the status. For more information, see ActivateGateway.

If do not intend to use the gateway again, you must delete the gateway (using DeleteGateway) to no longer pay software charges associated with the gateway.

", - "StartGateway": "

Starts a gateway that you previously shut down (see ShutdownGateway). After the gateway starts, you can then make other API calls, your applications can read from or write to the gateway's storage volumes and you will be able to take snapshot backups.

When you make a request, you will get a 200 OK success response immediately. However, it might take some time for the gateway to be ready. You should call DescribeGatewayInformation and check the status before making any additional API calls. For more information, see ActivateGateway.

To specify which gateway to start, use the Amazon Resource Name (ARN) of the gateway in your request.

", + "ShutdownGateway": "

Shuts down a gateway. To specify which gateway to shut down, use the Amazon Resource Name (ARN) of the gateway in the body of your request.

The operation shuts down the gateway service component running in the storage gateway's virtual machine (VM) and not the VM.

If you want to shut down the VM, it is recommended that you first shut down the gateway component in the VM to avoid unpredictable conditions.

After the gateway is shutdown, you cannot call any other API except StartGateway, DescribeGatewayInformation, and ListGateways. For more information, see ActivateGateway. Your applications cannot read from or write to the gateway's storage volumes, and there are no snapshots taken.

When you make a shutdown request, you will get a 200 OK success response immediately. However, it might take some time for the gateway to shut down. You can call the DescribeGatewayInformation API to check the status. For more information, see ActivateGateway.

If do not intend to use the gateway again, you must delete the gateway (using DeleteGateway) to no longer pay software charges associated with the gateway.

", + "StartGateway": "

Starts a gateway that you previously shut down (see ShutdownGateway). After the gateway starts, you can then make other API calls, your applications can read from or write to the gateway's storage volumes and you will be able to take snapshot backups.

When you make a request, you will get a 200 OK success response immediately. However, it might take some time for the gateway to be ready. You should call DescribeGatewayInformation and check the status before making any additional API calls. For more information, see ActivateGateway.

To specify which gateway to start, use the Amazon Resource Name (ARN) of the gateway in your request.

", "UpdateBandwidthRateLimit": "

Updates the bandwidth rate limits of a gateway. You can update both the upload and download bandwidth rate limit or specify only one of the two. If you don't set a bandwidth rate limit, the existing rate limit remains.

By default, a gateway's bandwidth rate limits are not set. If you don't set any limit, the gateway does not have any limitations on its bandwidth usage and could potentially use the maximum available bandwidth.

To specify which gateway to update, use the Amazon Resource Name (ARN) of the gateway in your request.

", "UpdateChapCredentials": "

Updates the Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target. By default, a gateway does not have CHAP enabled; however, for added security, you might use it.

When you update CHAP credentials, all existing connections on the target are closed and initiators must reconnect with the new credentials.

", - "UpdateGatewayInformation": "

Updates a gateway's metadata, which includes the gateway's name and time zone. To specify which gateway to update, use the Amazon Resource Name (ARN) of the gateway in your request.

For Gateways activated after September 2, 2015, the gateway's ARN contains the gateway ID rather than the gateway name. However, changing the name of the gateway has no effect on the gateway's ARN.

", - "UpdateGatewaySoftwareNow": "

Updates the gateway virtual machine (VM) software. The request immediately triggers the software update.

When you make this request, you get a 200 OK success response immediately. However, it might take some time for the update to complete. You can call DescribeGatewayInformation to verify the gateway is in the STATE_RUNNING state.

A software update forces a system restart of your gateway. You can minimize the chance of any disruption to your applications by increasing your iSCSI Initiators' timeouts. For more information about increasing iSCSI Initiator timeouts for Windows and Linux, see Customizing Your Windows iSCSI Settings and Customizing Your Linux iSCSI Settings, respectively.

", + "UpdateGatewayInformation": "

Updates a gateway's metadata, which includes the gateway's name and time zone. To specify which gateway to update, use the Amazon Resource Name (ARN) of the gateway in your request.

For Gateways activated after September 2, 2015, the gateway's ARN contains the gateway ID rather than the gateway name. However, changing the name of the gateway has no effect on the gateway's ARN.

", + "UpdateGatewaySoftwareNow": "

Updates the gateway virtual machine (VM) software. The request immediately triggers the software update.

When you make this request, you get a 200 OK success response immediately. However, it might take some time for the update to complete. You can call DescribeGatewayInformation to verify the gateway is in the STATE_RUNNING state.

A software update forces a system restart of your gateway. You can minimize the chance of any disruption to your applications by increasing your iSCSI Initiators' timeouts. For more information about increasing iSCSI Initiator timeouts for Windows and Linux, see Customizing Your Windows iSCSI Settings and Customizing Your Linux iSCSI Settings, respectively.

", "UpdateMaintenanceStartTime": "

Updates a gateway's weekly maintenance start time information, including day and time of the week. The maintenance time is the time in your gateway's time zone.

", + "UpdateNFSFileShare": "

Updates a file share.

To leave a file share field unchanged, set the corresponding input field to null.

", "UpdateSnapshotSchedule": "

Updates a snapshot schedule configured for a gateway volume.

The default snapshot schedule for volume is once every 24 hours, starting at the creation time of the volume. You can use this API to change the snapshot schedule configured for the volume.

In the request you must identify the gateway volume whose snapshot schedule you want to update, and the schedule information, including when you want the snapshot to begin on a day and the frequency (in hours) of snapshots.

", "UpdateVTLDeviceType": "

Updates the type of medium changer in a gateway-VTL. When you activate a gateway-VTL, you select a medium changer type for the gateway-VTL. This operation enables you to select a different type of medium changer after a gateway-VTL is activated.

" }, @@ -66,7 +71,7 @@ } }, "ActivateGatewayOutput": { - "base": "

AWS Storage Gateway returns the Amazon Resource Name (ARN) of the activated gateway. It is a string made of information such as your account, gateway name, and region. This ARN is used to reference the gateway in other API operations as well as resource-based authorization.

For gateways activated prior to September 02, 2015 the gateway ARN contains the gateway name rather than the gateway id. Changing the name of the gateway has no effect on the gateway ARN.

", + "base": "

AWS Storage Gateway returns the Amazon Resource Name (ARN) of the activated gateway. It is a string made of information such as your account, gateway name, and region. This ARN is used to reference the gateway in other API operations as well as resource-based authorization.

For gateways activated prior to September 02, 2015 the gateway ARN contains the gateway name rather than the gateway id. Changing the name of the gateway has no effect on the gateway ARN.

", "refs": { } }, @@ -126,7 +131,7 @@ "BandwidthType": { "base": null, "refs": { - "DeleteBandwidthRateLimitInput$BandwidthType": null + "DeleteBandwidthRateLimitInput$BandwidthType": "

One of the BandwidthType values that indicates the gateway bandwidth rate limit to delete.

Valid Values: Upload, Download, All.

" } }, "BandwidthUploadRateLimit": { @@ -136,8 +141,15 @@ "UpdateBandwidthRateLimitInput$AverageUploadRateLimitInBitsPerSec": "

The average upload bandwidth rate limit in bits per second.

" } }, - "CachediSCSIVolume": { + "Boolean": { "base": null, + "refs": { + "CreateNFSFileShareInput$KMSEncrypted": "

True to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.

", + "UpdateNFSFileShareInput$KMSEncrypted": "

True to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.

" + } + }, + "CachediSCSIVolume": { + "base": "

Describes an iSCSI cached volume.

", "refs": { "CachediSCSIVolumes$member": null } @@ -185,15 +197,16 @@ "refs": { "ChapInfo$SecretToAuthenticateInitiator": "

The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.

", "ChapInfo$SecretToAuthenticateTarget": "

The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).

", - "UpdateChapCredentialsInput$SecretToAuthenticateInitiator": "

The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.

The secret key must be between 12 and 16 bytes when encoded in UTF-8.

", - "UpdateChapCredentialsInput$SecretToAuthenticateTarget": "

The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).

Byte constraints: Minimum bytes of 12. Maximum bytes of 16.

The secret key must be between 12 and 16 bytes when encoded in UTF-8.

" + "UpdateChapCredentialsInput$SecretToAuthenticateInitiator": "

The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.

The secret key must be between 12 and 16 bytes when encoded in UTF-8.

", + "UpdateChapCredentialsInput$SecretToAuthenticateTarget": "

The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).

Byte constraints: Minimum bytes of 12. Maximum bytes of 16.

The secret key must be between 12 and 16 bytes when encoded in UTF-8.

" } }, "ClientToken": { "base": null, "refs": { "CreateCachediSCSIVolumeInput$ClientToken": null, - "CreateTapesInput$ClientToken": "

A unique identifier that you use to retry a request. If you retry a request, use the same ClientToken you specified in the initial request.

Using the same ClientToken prevents creating the tape multiple times.

" + "CreateNFSFileShareInput$ClientToken": "

A unique string value that you supply that is used by file gateway to ensure idempotent file share creation.

", + "CreateTapesInput$ClientToken": "

A unique identifier that you use to retry a request. If you retry a request, use the same ClientToken you specified in the initial request.

Using the same ClientToken prevents creating the tape multiple times.

" } }, "CreateCachediSCSIVolumeInput": { @@ -206,6 +219,16 @@ "refs": { } }, + "CreateNFSFileShareInput": { + "base": "

CreateNFSFileShareInput

", + "refs": { + } + }, + "CreateNFSFileShareOutput": { + "base": "

CreateNFSFileShareOutput

", + "refs": { + } + }, "CreateSnapshotFromVolumeRecoveryPointInput": { "base": null, "refs": { @@ -256,15 +279,22 @@ "refs": { } }, + "CreatedDate": { + "base": null, + "refs": { + "CachediSCSIVolume$CreatedDate": null, + "StorediSCSIVolume$CreatedDate": null + } + }, "DayOfWeek": { "base": null, "refs": { - "DescribeMaintenanceStartTimeOutput$DayOfWeek": null, - "UpdateMaintenanceStartTimeInput$DayOfWeek": "

The maintenance start time day of the week.

" + "DescribeMaintenanceStartTimeOutput$DayOfWeek": "

An ordinal number between 0 and 6 that represents the day of the week, where 0 represents Sunday and 6 represents Saturday. The day of week is in the time zone of the gateway.

", + "UpdateMaintenanceStartTimeInput$DayOfWeek": "

The maintenance start time day of the week represented as an ordinal number from 0 to 6, where 0 represents Sunday and 6 Saturday.

" } }, "DeleteBandwidthRateLimitInput": { - "base": null, + "base": "

A JSON object containing the following fields:

", "refs": { } }, @@ -283,6 +313,16 @@ "refs": { } }, + "DeleteFileShareInput": { + "base": "

DeleteFileShareInput

", + "refs": { + } + }, + "DeleteFileShareOutput": { + "base": "

DeleteFileShareOutput

", + "refs": { + } + }, "DeleteGatewayInput": { "base": "

A JSON object containing the id of the gateway to delete.

", "refs": { @@ -389,7 +429,17 @@ } }, "DescribeMaintenanceStartTimeOutput": { - "base": null, + "base": "

A JSON object containing the following fields:

", + "refs": { + } + }, + "DescribeNFSFileSharesInput": { + "base": "

DescribeNFSFileSharesInput

", + "refs": { + } + }, + "DescribeNFSFileSharesOutput": { + "base": "

DescribeNFSFileSharesOutput

", "refs": { } }, @@ -520,7 +570,7 @@ "CreateStorediSCSIVolumeInput$DiskId": "

The unique identifier for the gateway local disk that is configured as a stored volume. Use ListLocalDisks to list disk IDs for a gateway.

", "Disk$DiskId": null, "DiskIds$member": null, - "StorediSCSIVolume$VolumeDiskId": null + "StorediSCSIVolume$VolumeDiskId": "

The ID of the local disk that was specified in the CreateStorediSCSIVolume operation.

" } }, "DiskIds": { @@ -543,8 +593,8 @@ "DoubleObject": { "base": null, "refs": { - "CachediSCSIVolume$VolumeProgress": null, - "StorediSCSIVolume$VolumeProgress": null, + "CachediSCSIVolume$VolumeProgress": "

Represents the percentage complete if the volume is restoring or bootstrapping that represents the percent of data transferred. This field does not appear in the response if the cached volume is not restoring or bootstrapping.

", + "StorediSCSIVolume$VolumeProgress": "

Represents the percentage complete if the volume is restoring or bootstrapping that represents the percent of data transferred. This field does not appear in the response if the stored volume is not restoring or bootstrapping.

", "Tape$Progress": "

For archiving virtual tapes, indicates how much data remains to be uploaded before archiving is complete.

Range: 0 (not started) to 100 (complete).

" } }, @@ -554,6 +604,59 @@ "StorageGatewayError$errorCode": "

Additional information about the error.

" } }, + "FileShareARN": { + "base": "

The Amazon Resource Name (ARN) of the file share.

", + "refs": { + "CreateNFSFileShareOutput$FileShareARN": "

The Amazon Resource Name (ARN) of the newly created file share.

", + "DeleteFileShareInput$FileShareARN": "

The Amazon Resource Name (ARN) of the file share to be deleted.

", + "DeleteFileShareOutput$FileShareARN": "

The Amazon Resource Name (ARN) of the deleted file share.

", + "FileShareARNList$member": null, + "FileShareInfo$FileShareARN": null, + "NFSFileShareInfo$FileShareARN": null, + "UpdateNFSFileShareInput$FileShareARN": "

The Amazon Resource Name (ARN) of the file share to be updated.

", + "UpdateNFSFileShareOutput$FileShareARN": "

The Amazon Resource Name (ARN) of the updated file share.

" + } + }, + "FileShareARNList": { + "base": null, + "refs": { + "DescribeNFSFileSharesInput$FileShareARNList": "

An array containing the Amazon Resource Name (ARN) of each file share to be described.

" + } + }, + "FileShareClientList": { + "base": "

The list of clients that are allowed to access the file gateway. The list must contain either valid IP addresses or valid CIDR blocks.

", + "refs": { + "CreateNFSFileShareInput$ClientList": "

The list of clients that are allowed to access the file gateway. The list must contain either valid IP addresses or valid CIDR blocks.

", + "NFSFileShareInfo$ClientList": null, + "UpdateNFSFileShareInput$ClientList": "

The list of clients that are allowed to access the file gateway. The list must contain either valid IP addresses or valid CIDR blocks.

" + } + }, + "FileShareId": { + "base": "

The ID of the file share.

", + "refs": { + "FileShareInfo$FileShareId": null, + "NFSFileShareInfo$FileShareId": null + } + }, + "FileShareInfo": { + "base": "

Describes a file share.

", + "refs": { + "FileShareInfoList$member": null + } + }, + "FileShareInfoList": { + "base": null, + "refs": { + "ListFileSharesOutput$FileShareInfoList": "

An array of information about the file gateway's file shares.

" + } + }, + "FileShareStatus": { + "base": "

The status of the file share. Possible values are CREATING, UPDATING, AVAILABLE and DELETING.

", + "refs": { + "FileShareInfo$FileShareStatus": null, + "NFSFileShareInfo$FileShareStatus": null + } + }, "GatewayARN": { "base": "

The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and region.

", "refs": { @@ -567,6 +670,7 @@ "CancelArchivalInput$GatewayARN": null, "CancelRetrievalInput$GatewayARN": null, "CreateCachediSCSIVolumeInput$GatewayARN": null, + "CreateNFSFileShareInput$GatewayARN": "

The Amazon Resource Name (ARN) of the file gateway on which you want to create a file share.

", "CreateStorediSCSIVolumeInput$GatewayARN": null, "CreateTapeWithBarcodeInput$GatewayARN": "

The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tape with. Use the ListGateways operation to return a list of gateways for your account and region.

", "CreateTapesInput$GatewayARN": "

The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tapes with. Use the ListGateways operation to return a list of gateways for your account and region.

", @@ -594,13 +698,16 @@ "DescribeWorkingStorageOutput$GatewayARN": null, "DisableGatewayInput$GatewayARN": null, "DisableGatewayOutput$GatewayARN": "

The unique Amazon Resource Name of the disabled gateway.

", + "FileShareInfo$GatewayARN": null, "GatewayInfo$GatewayARN": "

The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and region.

", + "ListFileSharesInput$GatewayARN": "

The Amazon resource Name (ARN) of the gateway whose file shares you want to list. If this field is not present, all file shares under your account are listed.

", "ListLocalDisksInput$GatewayARN": null, "ListLocalDisksOutput$GatewayARN": null, "ListVolumeRecoveryPointsInput$GatewayARN": null, "ListVolumeRecoveryPointsOutput$GatewayARN": null, "ListVolumesInput$GatewayARN": null, "ListVolumesOutput$GatewayARN": null, + "NFSFileShareInfo$GatewayARN": null, "ResetCacheInput$GatewayARN": null, "ResetCacheOutput$GatewayARN": null, "RetrieveTapeArchiveInput$GatewayARN": "

The Amazon Resource Name (ARN) of the gateway you want to retrieve the virtual tape to. Use the ListGateways operation to return a list of gateways for your account and region.

You retrieve archived virtual tapes to only one gateway and the gateway must be a gateway-VTL.

", @@ -690,12 +797,18 @@ "HourOfDay": { "base": null, "refs": { - "DescribeMaintenanceStartTimeOutput$HourOfDay": null, + "DescribeMaintenanceStartTimeOutput$HourOfDay": "

The hour component of the maintenance start time represented as hh, where hh is the hour (0 to 23). The hour of the day is in the time zone of the gateway.

", "DescribeSnapshotScheduleOutput$StartAt": null, "UpdateMaintenanceStartTimeInput$HourOfDay": "

The hour component of the maintenance start time represented as hh, where hh is the hour (00 to 23). The hour of the day is in the time zone of the gateway.

", "UpdateSnapshotScheduleInput$StartAt": "

The hour of the day at which the snapshot schedule begins represented as hh, where hh is the hour (0 to 23). The hour of the day is in the time zone of the gateway.

" } }, + "IPV4AddressCIDR": { + "base": null, + "refs": { + "FileShareClientList$member": null + } + }, "Initiator": { "base": null, "refs": { @@ -728,12 +841,30 @@ "UpdateChapCredentialsOutput$InitiatorName": "

The iSCSI initiator that connects to the target. This is the same initiator name specified in the request.

" } }, + "KMSKey": { + "base": "

The ARN of the KMS key used for Amazon S3 server side encryption.

", + "refs": { + "CreateNFSFileShareInput$KMSKey": "

The KMS key used for Amazon S3 server side encryption. This value can only be set when KmsEncrypted is true. Optional.

", + "NFSFileShareInfo$KMSKey": null, + "UpdateNFSFileShareInput$KMSKey": "

The KMS key used for Amazon S3 server side encryption. This value can only be set when KmsEncrypted is true. Optional.

" + } + }, "LastSoftwareUpdate": { "base": null, "refs": { "DescribeGatewayInformationOutput$LastSoftwareUpdate": "

The date on which the last software update was applied to the gateway. If the gateway has never been updated, this field does not return a value in the response.

" } }, + "ListFileSharesInput": { + "base": "

ListFileShareInput

", + "refs": { + } + }, + "ListFileSharesOutput": { + "base": "

ListFileShareOutput

", + "refs": { + } + }, "ListGatewaysInput": { "base": "

A JSON object containing zero or more of the following fields:

", "refs": { @@ -810,6 +941,13 @@ "SetLocalConsolePasswordInput$LocalConsolePassword": "

The password you want to set for your VM local console.

" } }, + "LocationARN": { + "base": "

The ARN of the backend storage used for storing file data.

", + "refs": { + "CreateNFSFileShareInput$LocationARN": "

The ARN of the backend storage used for storing file data.

", + "NFSFileShareInfo$LocationARN": null + } + }, "Marker": { "base": null, "refs": { @@ -821,6 +959,9 @@ "DescribeTapesOutput$Marker": "

An opaque string which can be used as part of a subsequent DescribeTapes call to retrieve the next page of results.

If a response does not contain a marker, then there are no more results to be retrieved.

", "DescribeVTLDevicesInput$Marker": "

An opaque string that indicates the position at which to begin describing the VTL devices.

", "DescribeVTLDevicesOutput$Marker": "

An opaque string that indicates the position at which the VTL devices that were fetched for description ended. Use the marker in your next request to fetch the next set of VTL devices in the list. If there are no more VTL devices to describe, this field does not appear in the response.

", + "ListFileSharesInput$Marker": "

Opaque pagination token returned from a previous ListFileShares operation. If present, Marker specifies where to continue the list from after a previous call to ListFileShares. Optional.

", + "ListFileSharesOutput$Marker": "

If the request includes Marker, the response returns that value in this field.

", + "ListFileSharesOutput$NextMarker": "

If a value is present, there are more file shares to return. In a subsequent request, use NextMarker as the value for Marker to retrieve the next set of file shares.

", "ListGatewaysInput$Marker": "

An opaque string that indicates the position at which to begin the returned list of gateways.

", "ListGatewaysOutput$Marker": null, "ListTagsForResourceInput$Marker": "

An opaque string that indicates the position at which to begin returning the list of tags.

", @@ -840,10 +981,30 @@ "MinuteOfHour": { "base": null, "refs": { - "DescribeMaintenanceStartTimeOutput$MinuteOfHour": null, + "DescribeMaintenanceStartTimeOutput$MinuteOfHour": "

The minute component of the maintenance start time represented as mm, where mm is the minute (0 to 59). The minute of the hour is in the time zone of the gateway.

", "UpdateMaintenanceStartTimeInput$MinuteOfHour": "

The minute component of the maintenance start time represented as mm, where mm is the minute (00 to 59). The minute of the hour is in the time zone of the gateway.

" } }, + "NFSFileShareDefaults": { + "base": "

Describes file share default values. Files and folders stored as Amazon S3 objects in S3 buckets don't, by default, have Unix file permissions assigned to them. Upon discovery in an S3 bucket by Storage Gateway, the S3 objects that represent files and folders are assigned these default Unix permissions.

", + "refs": { + "CreateNFSFileShareInput$NFSFileShareDefaults": "

File share default values. Optional.

", + "NFSFileShareInfo$NFSFileShareDefaults": null, + "UpdateNFSFileShareInput$NFSFileShareDefaults": "

The default values for the file share. Optional.

" + } + }, + "NFSFileShareInfo": { + "base": "

The Unix file permissions and ownership information assigned, by default, to native S3 objects when Storage Gateway discovers them in S3 buckets.

", + "refs": { + "NFSFileShareInfoList$member": null + } + }, + "NFSFileShareInfoList": { + "base": null, + "refs": { + "DescribeNFSFileSharesOutput$NFSFileShareInfoList": "

An array containing a description for each requested file share.

" + } + }, "NetworkInterface": { "base": "

Describes a gateway's network interface.

", "refs": { @@ -871,13 +1032,34 @@ "CreateTapesInput$NumTapesToCreate": "

The number of virtual tapes that you want to create.

" } }, + "Path": { + "base": "

The file share path used by the NFS client to identify the mount point.

", + "refs": { + "NFSFileShareInfo$Path": null + } + }, + "PermissionId": { + "base": null, + "refs": { + "NFSFileShareDefaults$GroupId": "

The default group ID for the file share (unless the files have another group ID specified). The default value is nfsnobody.

", + "NFSFileShareDefaults$OwnerId": "

The default owner ID for files in the file share (unless the files have another owner ID specified). The default value is nfsnobody.

" + } + }, + "PermissionMode": { + "base": null, + "refs": { + "NFSFileShareDefaults$FileMode": "

The Unix file mode in the form \"nnnn\". For example, \"0666\" represents the default file mode inside the file share. The default value is 0666.

", + "NFSFileShareDefaults$DirectoryMode": "

The Unix directory mode in the form \"nnnn\". For example, \"0666\" represents the default access mode for all directories inside the file share. The default value is 0777.

" + } + }, "PositiveIntObject": { "base": null, "refs": { "DescribeTapeArchivesInput$Limit": "

Specifies that the number of virtual tapes descried be limited to the specified number.

", "DescribeTapeRecoveryPointsInput$Limit": "

Specifies that the number of virtual tape recovery points that are described be limited to the specified number.

", - "DescribeTapesInput$Limit": "

Specifies that the number of virtual tapes described be limited to the specified number.

Amazon Web Services may impose its own limit, if this field is not set.

", + "DescribeTapesInput$Limit": "

Specifies that the number of virtual tapes described be limited to the specified number.

Amazon Web Services may impose its own limit, if this field is not set.

", "DescribeVTLDevicesInput$Limit": "

Specifies that the number of VTL devices described be limited to the specified number.

", + "ListFileSharesInput$Limit": "

The maximum number of file shares to return in the response. The value must be an integer with a value greater than zero. Optional.

", "ListGatewaysInput$Limit": "

Specifies that the list of gateways returned be limited to the specified number of items.

", "ListTagsForResourceInput$Limit": "

Specifies that the list of tags returned be limited to the specified number of items.

", "ListTapesInput$Limit": "

An optional number limit for the tapes in the list returned by this call.

", @@ -949,6 +1131,18 @@ "refs": { } }, + "Role": { + "base": "

The ARN of the IAM role that file gateway assumes when it accesses the underlying storage.

", + "refs": { + "CreateNFSFileShareInput$Role": "

The ARN of the AWS Identity and Access Management (IAM) role that a file gateway assumes when it accesses the underlying storage.

", + "NFSFileShareInfo$Role": null + } + }, + "ServiceUnavailableError": { + "base": "

An internal server error has occurred because the service is unavailable. For more information, see the error and message fields.

", + "refs": { + } + }, "SetLocalConsolePasswordInput": { "base": "

SetLocalConsolePasswordInput

", "refs": { @@ -979,12 +1173,12 @@ "SnapshotId": { "base": null, "refs": { - "CachediSCSIVolume$SourceSnapshotId": null, + "CachediSCSIVolume$SourceSnapshotId": "

If the cached volume was created from a snapshot, this field contains the snapshot ID used, e.g. snap-78e22663. Otherwise, this field is not included.

", "CreateCachediSCSIVolumeInput$SnapshotId": null, "CreateSnapshotFromVolumeRecoveryPointOutput$SnapshotId": null, "CreateSnapshotOutput$SnapshotId": "

The snapshot ID that is used to refer to the snapshot in future operations such as describing snapshots (Amazon Elastic Compute Cloud API DescribeSnapshots) or creating a volume from a snapshot (CreateStorediSCSIVolume).

", "CreateStorediSCSIVolumeInput$SnapshotId": "

The snapshot ID (e.g. \"snap-1122aabb\") of the snapshot to restore as the new stored volume. Specify this field if you want to create the iSCSI storage volume from a snapshot otherwise do not include this field. To list snapshots for your account use DescribeSnapshots in the Amazon Elastic Compute Cloud API Reference.

", - "StorediSCSIVolume$SourceSnapshotId": null + "StorediSCSIVolume$SourceSnapshotId": "

If the stored volume was created from a snapshot, this field contains the snapshot ID used, e.g. snap-78e22663. Otherwise, this field is not included.

" } }, "StartGatewayInput": { @@ -997,15 +1191,24 @@ "refs": { } }, + "StorageClass": { + "base": "

", + "refs": { + "CreateNFSFileShareInput$DefaultStorageClass": "

The default storage class for objects put into an Amazon S3 bucket by file gateway. Possible values are S3_STANDARD or S3_STANDARD_IA. If this field is not populated, the default value S3_STANDARD is used. Optional.

", + "NFSFileShareInfo$DefaultStorageClass": "

The default storage class for objects put into an Amazon S3 bucket by file gateway. Possible values are S3_STANDARD or S3_STANDARD_IA. If this field is not populated, the default value S3_STANDARD is used. Optional.

", + "UpdateNFSFileShareInput$DefaultStorageClass": "

The default storage class for objects put into an Amazon S3 bucket by a file gateway. Possible values are S3_STANDARD or S3_STANDARD_IA. If this field is not populated, the default value S3_STANDARD is used. Optional.

" + } + }, "StorageGatewayError": { "base": "

Provides additional information about an error that was returned by the service as an or. See the errorCode and errorDetails members for more information about the error.

", "refs": { "InternalServerError$error": "

A StorageGatewayError that provides more information about the cause of the error.

", - "InvalidGatewayRequestException$error": "

A StorageGatewayError that provides more detail about the cause of the error.

" + "InvalidGatewayRequestException$error": "

A StorageGatewayError that provides more detail about the cause of the error.

", + "ServiceUnavailableError$error": "

A StorageGatewayError that provides more information about the cause of the error.

" } }, "StorediSCSIVolume": { - "base": null, + "base": "

Describes an iSCSI stored volume.

", "refs": { "StorediSCSIVolumes$member": null } @@ -1116,7 +1319,7 @@ "TapeBarcodePrefix": { "base": null, "refs": { - "CreateTapesInput$TapeBarcodePrefix": "

A prefix that you append to the barcode of the virtual tape you are creating. This prefix makes the barcode unique.

The prefix must be 1 to 4 characters in length and must be one of the uppercase letters from A to Z.

" + "CreateTapesInput$TapeBarcodePrefix": "

A prefix that you append to the barcode of the virtual tape you are creating. This prefix makes the barcode unique.

The prefix must be 1 to 4 characters in length and must be one of the uppercase letters from A to Z.

" } }, "TapeDriveType": { @@ -1158,8 +1361,8 @@ "TapeSize": { "base": null, "refs": { - "CreateTapeWithBarcodeInput$TapeSizeInBytes": "

The size, in bytes, of the virtual tape that you want to create.

The size must be aligned by gigabyte (1024*1024*1024 byte).

", - "CreateTapesInput$TapeSizeInBytes": "

The size, in bytes, of the virtual tapes that you want to create.

The size must be aligned by gigabyte (1024*1024*1024 byte).

", + "CreateTapeWithBarcodeInput$TapeSizeInBytes": "

The size, in bytes, of the virtual tape that you want to create.

The size must be aligned by gigabyte (1024*1024*1024 byte).

", + "CreateTapesInput$TapeSizeInBytes": "

The size, in bytes, of the virtual tapes that you want to create.

The size must be aligned by gigabyte (1024*1024*1024 byte).

", "Tape$TapeSizeInBytes": "

The size, in bytes, of the virtual tape.

", "TapeArchive$TapeSizeInBytes": "

The size, in bytes, of the archived virtual tape.

", "TapeInfo$TapeSizeInBytes": "

The size, in bytes, of a virtual tape.

", @@ -1204,6 +1407,8 @@ "Time": { "base": null, "refs": { + "Tape$TapeCreatedDate": null, + "TapeArchive$TapeCreatedDate": null, "TapeArchive$CompletionTime": "

The time that the archiving of the virtual tape was completed.

The string format of the completion time is in the ISO8601 extended YYYY-MM-DD'T'HH:MM:SS'Z' format.

", "TapeRecoveryPointInfo$TapeRecoveryPointTime": "

The time when the point-in-time view of the virtual tape was replicated for later recovery.

The string format of the tape recovery point time is in the ISO8601 extended YYYY-MM-DD'T'HH:MM:SS'Z' format.

" } @@ -1258,6 +1463,16 @@ "refs": { } }, + "UpdateNFSFileShareInput": { + "base": "

UpdateNFSFileShareInput

", + "refs": { + } + }, + "UpdateNFSFileShareOutput": { + "base": "

UpdateNFSFileShareOutput

", + "refs": { + } + }, "UpdateSnapshotScheduleInput": { "base": "

A JSON object containing one or more of the following fields:

", "refs": { @@ -1297,7 +1512,7 @@ "VTLDeviceARNs": { "base": null, "refs": { - "DescribeVTLDevicesInput$VTLDeviceARNs": "

An array of strings, where each string represents the Amazon Resource Name (ARN) of a VTL device.

All of the specified VTL devices must be from the same gateway. If no VTL devices are specified, the result will contain all devices on the specified gateway.

" + "DescribeVTLDevicesInput$VTLDeviceARNs": "

An array of strings, where each string represents the Amazon Resource Name (ARN) of a VTL device.

All of the specified VTL devices must be from the same gateway. If no VTL devices are specified, the result will contain all devices on the specified gateway.

" } }, "VTLDeviceProductIdentifier": { @@ -1327,7 +1542,8 @@ "VolumeARN": { "base": null, "refs": { - "CachediSCSIVolume$VolumeARN": null, + "CachediSCSIVolume$VolumeARN": "

The Amazon Resource Name (ARN) of the storage volume.

", + "CreateCachediSCSIVolumeInput$SourceVolumeARN": "

The ARN for an existing volume. Specifying this ARN makes the new volume into an exact copy of the specified existing volume's latest recovery point. The VolumeSizeInBytes value for this new volume must be equal to or larger than the size of the existing volume, in bytes.

", "CreateCachediSCSIVolumeOutput$VolumeARN": null, "CreateSnapshotFromVolumeRecoveryPointInput$VolumeARN": null, "CreateSnapshotFromVolumeRecoveryPointOutput$VolumeARN": null, @@ -1341,7 +1557,7 @@ "DescribeSnapshotScheduleInput$VolumeARN": "

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.

", "DescribeSnapshotScheduleOutput$VolumeARN": null, "ListVolumeInitiatorsInput$VolumeARN": "

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes for the gateway.

", - "StorediSCSIVolume$VolumeARN": null, + "StorediSCSIVolume$VolumeARN": "

The Amazon Resource Name (ARN) of the storage volume.

", "UpdateSnapshotScheduleInput$VolumeARN": "

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.

", "UpdateSnapshotScheduleOutput$VolumeARN": "

", "VolumeARNs$member": null, @@ -1359,8 +1575,8 @@ "VolumeId": { "base": null, "refs": { - "CachediSCSIVolume$VolumeId": null, - "StorediSCSIVolume$VolumeId": null, + "CachediSCSIVolume$VolumeId": "

The unique identifier of the volume, e.g. vol-AE4B946D.

", + "StorediSCSIVolume$VolumeId": "

The unique identifier of the volume, e.g. vol-AE4B946D.

", "VolumeInfo$VolumeId": "

The unique identifier assigned to the volume. This ID becomes part of the volume Amazon Resource Name (ARN), which you use as input for other operations.

Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).

" } }, @@ -1391,23 +1607,23 @@ "VolumeStatus": { "base": null, "refs": { - "CachediSCSIVolume$VolumeStatus": null, - "StorediSCSIVolume$VolumeStatus": null + "CachediSCSIVolume$VolumeStatus": "

One of the VolumeStatus values that indicates the state of the storage volume.

", + "StorediSCSIVolume$VolumeStatus": "

One of the VolumeStatus values that indicates the state of the storage volume.

" } }, "VolumeType": { "base": null, "refs": { - "CachediSCSIVolume$VolumeType": null, - "StorediSCSIVolume$VolumeType": null, + "CachediSCSIVolume$VolumeType": "

One of the VolumeType enumeration values that describes the type of the volume.

", + "StorediSCSIVolume$VolumeType": "

One of the VolumeType enumeration values describing the type of the volume.

", "VolumeInfo$VolumeType": null } }, "VolumeiSCSIAttributes": { "base": "

Lists iSCSI information about a volume.

", "refs": { - "CachediSCSIVolume$VolumeiSCSIAttributes": null, - "StorediSCSIVolume$VolumeiSCSIAttributes": null + "CachediSCSIVolume$VolumeiSCSIAttributes": "

An VolumeiSCSIAttributes object that represents a collection of iSCSI attributes for one stored volume.

", + "StorediSCSIVolume$VolumeiSCSIAttributes": "

An VolumeiSCSIAttributes object that represents a collection of iSCSI attributes for one stored volume.

" } }, "boolean": { @@ -1415,7 +1631,8 @@ "refs": { "CreateStorediSCSIVolumeInput$PreserveExistingData": "

Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this field as false creates an empty volume.

Valid Values: true, false

", "DeviceiSCSIAttributes$ChapEnabled": "

Indicates whether mutual CHAP is enabled for the iSCSI target.

", - "StorediSCSIVolume$PreservedExistingData": null, + "NFSFileShareInfo$KMSEncrypted": "

True to use Amazon S3 server side encryption with your own KMS key, or false to use a key managed by Amazon S3. Optional.

", + "StorediSCSIVolume$PreservedExistingData": "

Indicates if when the stored volume was created, existing data on the underlying local disk was preserved.

Valid Values: true, false

", "VolumeiSCSIAttributes$ChapEnabled": "

Indicates whether mutual CHAP is enabled for the iSCSI target.

" } }, @@ -1444,7 +1661,7 @@ "long": { "base": null, "refs": { - "CachediSCSIVolume$VolumeSizeInBytes": null, + "CachediSCSIVolume$VolumeSizeInBytes": "

The size of the volume in bytes.

", "CreateCachediSCSIVolumeInput$VolumeSizeInBytes": null, "CreateStorediSCSIVolumeOutput$VolumeSizeInBytes": "

The size of the volume in bytes.

", "DescribeCacheOutput$CacheAllocatedInBytes": null, @@ -1453,8 +1670,8 @@ "DescribeWorkingStorageOutput$WorkingStorageUsedInBytes": "

The total working storage in bytes in use by the gateway. If no working storage is configured for the gateway, this field returns 0.

", "DescribeWorkingStorageOutput$WorkingStorageAllocatedInBytes": "

The total working storage in bytes allocated for the gateway. If no working storage is configured for the gateway, this field returns 0.

", "Disk$DiskSizeInBytes": null, - "StorediSCSIVolume$VolumeSizeInBytes": null, - "VolumeInfo$VolumeSizeInBytes": "

The size, in bytes, of the volume.

Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).

", + "StorediSCSIVolume$VolumeSizeInBytes": "

The size of the volume in bytes.

", + "VolumeInfo$VolumeSizeInBytes": "

The size of the volume in bytes.

Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).

", "VolumeRecoveryPointInfo$VolumeSizeInBytes": null, "VolumeRecoveryPointInfo$VolumeUsageInBytes": null } @@ -1472,8 +1689,9 @@ "InternalServerError$message": "

A human-readable message describing the error that occurred.

", "InvalidGatewayRequestException$message": "

A human-readable message describing the error that occurred.

", "NetworkInterface$Ipv4Address": "

The Internet Protocol version 4 (IPv4) address of the interface.

", - "NetworkInterface$MacAddress": "

The Media Access Control (MAC) address of the interface.

This is currently unsupported and will not be returned in output.

", + "NetworkInterface$MacAddress": "

The Media Access Control (MAC) address of the interface.

This is currently unsupported and will not be returned in output.

", "NetworkInterface$Ipv6Address": "

The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.

", + "ServiceUnavailableError$message": "

A human-readable message describing the error that occurred.

", "UpdateGatewayInformationOutput$GatewayName": null, "VolumeRecoveryPointInfo$VolumeRecoveryPointTime": null, "errorDetails$key": null, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/examples-1.json index 0ea7e3b0b..7cc0d7d41 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/examples-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/examples-1.json @@ -1,5 +1,1381 @@ { "version": "1.0", "examples": { + "ActivateGateway": [ + { + "input": { + "ActivationKey": "29AV1-3OFV9-VVIUB-NKT0I-LRO6V", + "GatewayName": "My_Gateway", + "GatewayRegion": "us-east-1", + "GatewayTimezone": "GMT-12:00", + "GatewayType": "STORED", + "MediumChangerType": "AWS-Gateway-VTL", + "TapeDriveType": "IBM-ULT3580-TD5" + }, + "output": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Activates the gateway you previously deployed on your host.", + "id": "to-activate-the-gateway-1471281611207", + "title": "To activate the gateway" + } + ], + "AddCache": [ + { + "input": { + "DiskIds": [ + "pci-0000:03:00.0-scsi-0:0:0:0", + "pci-0000:03:00.0-scsi-0:0:1:0" + ], + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "output": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows a request that activates a gateway-stored volume.", + "id": "to-add-a-cache-1471043606854", + "title": "To add a cache" + } + ], + "AddTagsToResource": [ + { + "input": { + "ResourceARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B", + "Tags": [ + { + "Key": "Dev Gatgeway Region", + "Value": "East Coast" + } + ] + }, + "output": { + "ResourceARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Adds one or more tags to the specified resource.", + "id": "to-add-tags-to-resource-1471283689460", + "title": "To add tags to resource" + } + ], + "AddUploadBuffer": [ + { + "input": { + "DiskIds": [ + "pci-0000:03:00.0-scsi-0:0:0:0", + "pci-0000:03:00.0-scsi-0:0:1:0" + ], + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "output": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Configures one or more gateway local disks as upload buffer for a specified gateway.", + "id": "to-add-upload-buffer-on-local-disk-1471293902847", + "title": "To add upload buffer on local disk" + } + ], + "AddWorkingStorage": [ + { + "input": { + "DiskIds": [ + "pci-0000:03:00.0-scsi-0:0:0:0", + "pci-0000:03:00.0-scsi-0:0:1:0" + ], + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "output": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Configures one or more gateway local disks as working storage for a gateway. (Working storage is also referred to as upload buffer.)", + "id": "to-add-storage-on-local-disk-1471294305401", + "title": "To add storage on local disk" + } + ], + "CancelArchival": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", + "TapeARN": "arn:aws:storagegateway:us-east-1:999999999999:tape/AMZN01A2A4" + }, + "output": { + "TapeARN": "arn:aws:storagegateway:us-east-1:999999999999:tape/AMZN01A2A4" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Cancels archiving of a virtual tape to the virtual tape shelf (VTS) after the archiving process is initiated.", + "id": "to-cancel-virtual-tape-archiving-1471294865203", + "title": "To cancel virtual tape archiving" + } + ], + "CancelRetrieval": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", + "TapeARN": "arn:aws:storagegateway:us-east-1:999999999999:tape/AMZN01A2A4" + }, + "output": { + "TapeARN": "arn:aws:storagegateway:us-east-1:999999999999:tape/AMZN01A2A4" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Cancels retrieval of a virtual tape from the virtual tape shelf (VTS) to a gateway after the retrieval process is initiated.", + "id": "to-cancel-virtual-tape-retrieval-1471295704491", + "title": "To cancel virtual tape retrieval" + } + ], + "CreateCachediSCSIVolume": [ + { + "input": { + "ClientToken": "cachedvol112233", + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", + "NetworkInterfaceId": "10.1.1.1", + "SnapshotId": "snap-f47b7b94", + "TargetName": "my-volume", + "VolumeSizeInBytes": 536870912000 + }, + "output": { + "TargetARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume", + "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Creates a cached volume on a specified cached gateway.", + "id": "to-create-a-cached-iscsi-volume-1471296661787", + "title": "To create a cached iSCSI volume" + } + ], + "CreateSnapshot": [ + { + "input": { + "SnapshotDescription": "My root volume snapshot as of 10/03/2017", + "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB" + }, + "output": { + "SnapshotId": "snap-78e22663", + "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Initiates an ad-hoc snapshot of a gateway volume.", + "id": "to-create-a-snapshot-of-a-gateway-volume-1471301469561", + "title": "To create a snapshot of a gateway volume" + } + ], + "CreateSnapshotFromVolumeRecoveryPoint": [ + { + "input": { + "SnapshotDescription": "My root volume snapshot as of 2017-06-30T10:10:10.000Z", + "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB" + }, + "output": { + "SnapshotId": "snap-78e22663", + "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB", + "VolumeRecoveryPointTime": "2017-06-30T10:10:10.000Z" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Initiates a snapshot of a gateway from a volume recovery point.", + "id": "to-create-a-snapshot-of-a-gateway-volume-1471301469561", + "title": "To create a snapshot of a gateway volume" + } + ], + "CreateStorediSCSIVolume": [ + { + "input": { + "DiskId": "pci-0000:03:00.0-scsi-0:0:0:0", + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", + "NetworkInterfaceId": "10.1.1.1", + "PreserveExistingData": true, + "SnapshotId": "snap-f47b7b94", + "TargetName": "my-volume" + }, + "output": { + "TargetARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume", + "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB", + "VolumeSizeInBytes": 1099511627776 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Creates a stored volume on a specified stored gateway.", + "id": "to-create-a-stored-iscsi-volume-1471367662813", + "title": "To create a stored iSCSI volume" + } + ], + "CreateTapeWithBarcode": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B", + "TapeBarcode": "TEST12345", + "TapeSizeInBytes": 107374182400 + }, + "output": { + "TapeARN": "arn:aws:storagegateway:us-east-1:999999999999:tape/TEST12345" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Creates a virtual tape by using your own barcode.", + "id": "to-create-a-virtual-tape-using-a-barcode-1471371842452", + "title": "To create a virtual tape using a barcode" + } + ], + "CreateTapes": [ + { + "input": { + "ClientToken": "77777", + "GatewayARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B", + "NumTapesToCreate": 3, + "TapeBarcodePrefix": "TEST", + "TapeSizeInBytes": 107374182400 + }, + "output": { + "TapeARNs": [ + "arn:aws:storagegateway:us-east-1:999999999999:tape/TEST38A29D", + "arn:aws:storagegateway:us-east-1:204469490176:tape/TEST3AA29F", + "arn:aws:storagegateway:us-east-1:204469490176:tape/TEST3BA29E" + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Creates one or more virtual tapes.", + "id": "to-create-a-virtual-tape-1471372061659", + "title": "To create a virtual tape" + } + ], + "DeleteBandwidthRateLimit": [ + { + "input": { + "BandwidthType": "All", + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "output": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Deletes the bandwidth rate limits of a gateway; either the upload or download limit, or both.", + "id": "to-delete-bandwidth-rate-limits-of-gateway-1471373225520", + "title": "To delete bandwidth rate limits of gateway" + } + ], + "DeleteChapCredentials": [ + { + "input": { + "InitiatorName": "iqn.1991-05.com.microsoft:computername.domain.example.com", + "TargetARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume" + }, + "output": { + "InitiatorName": "iqn.1991-05.com.microsoft:computername.domain.example.com", + "TargetARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Deletes Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target and initiator pair.", + "id": "to-delete-chap-credentials-1471375025612", + "title": "To delete CHAP credentials" + } + ], + "DeleteGateway": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "output": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation deletes the gateway, but not the gateway's VM from the host computer.", + "id": "to-delete-a-gatgeway-1471381697333", + "title": "To delete a gatgeway" + } + ], + "DeleteSnapshotSchedule": [ + { + "input": { + "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB" + }, + "output": { + "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This action enables you to delete a snapshot schedule for a volume.", + "id": "to-delete-a-snapshot-of-a-volume-1471382234377", + "title": "To delete a snapshot of a volume" + } + ], + "DeleteTape": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:204469490176:gateway/sgw-12A3456B", + "TapeARN": "arn:aws:storagegateway:us-east-1:204469490176:tape/TEST05A2A0" + }, + "output": { + "TapeARN": "arn:aws:storagegateway:us-east-1:204469490176:tape/TEST05A2A0" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes the specified virtual tape.", + "id": "to-delete-a-virtual-tape-1471382444157", + "title": "To delete a virtual tape" + } + ], + "DeleteTapeArchive": [ + { + "input": { + "TapeARN": "arn:aws:storagegateway:us-east-1:204469490176:tape/TEST05A2A0" + }, + "output": { + "TapeARN": "arn:aws:storagegateway:us-east-1:204469490176:tape/TEST05A2A0" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Deletes the specified virtual tape from the virtual tape shelf (VTS).", + "id": "to-delete-a-virtual-tape-from-the-shelf-vts-1471383964329", + "title": "To delete a virtual tape from the shelf (VTS)" + } + ], + "DeleteVolume": [ + { + "input": { + "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB" + }, + "output": { + "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Deletes the specified gateway volume that you previously created using the CreateCachediSCSIVolume or CreateStorediSCSIVolume API.", + "id": "to-delete-a-gateway-volume-1471384418416", + "title": "To delete a gateway volume" + } + ], + "DescribeBandwidthRateLimit": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "output": { + "AverageDownloadRateLimitInBitsPerSec": 204800, + "AverageUploadRateLimitInBitsPerSec": 102400, + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns a value for a bandwidth rate limit if set. If not set, then only the gateway ARN is returned.", + "id": "to-describe-the-bandwidth-rate-limits-of-a-gateway-1471384826404", + "title": "To describe the bandwidth rate limits of a gateway" + } + ], + "DescribeCache": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "output": { + "CacheAllocatedInBytes": 2199023255552, + "CacheDirtyPercentage": 0.07, + "CacheHitPercentage": 99.68, + "CacheMissPercentage": 0.32, + "CacheUsedPercentage": 0.07, + "DiskIds": [ + "pci-0000:03:00.0-scsi-0:0:0:0", + "pci-0000:04:00.0-scsi-0:1:0:0" + ], + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns information about the cache of a gateway.", + "id": "to-describe-cache-information-1471385756036", + "title": "To describe cache information" + } + ], + "DescribeCachediSCSIVolumes": [ + { + "input": { + "VolumeARNs": [ + "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB" + ] + }, + "output": { + "CachediSCSIVolumes": [ + { + "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB", + "VolumeId": "vol-1122AABB", + "VolumeSizeInBytes": 1099511627776, + "VolumeStatus": "AVAILABLE", + "VolumeType": "CACHED iSCSI", + "VolumeiSCSIAttributes": { + "ChapEnabled": true, + "LunNumber": 1, + "NetworkInterfaceId": "10.243.43.207", + "NetworkInterfacePort": 3260, + "TargetARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume" + } + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns a description of the gateway cached iSCSI volumes specified in the request.", + "id": "to-describe-gateway-cached-iscsi-volumes-1471458094649", + "title": "To describe gateway cached iSCSI volumes" + } + ], + "DescribeChapCredentials": [ + { + "input": { + "TargetARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume" + }, + "output": { + "ChapCredentials": [ + { + "InitiatorName": "iqn.1991-05.com.microsoft:computername.domain.example.com", + "SecretToAuthenticateInitiator": "111111111111", + "SecretToAuthenticateTarget": "222222222222", + "TargetARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns an array of Challenge-Handshake Authentication Protocol (CHAP) credentials information for a specified iSCSI target, one for each target-initiator pair.", + "id": "to-describe-chap-credetnitals-for-an-iscsi-1471467462967", + "title": "To describe CHAP credetnitals for an iSCSI" + } + ], + "DescribeGatewayInformation": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "output": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", + "GatewayId": "sgw-AABB1122", + "GatewayName": "My_Gateway", + "GatewayNetworkInterfaces": [ + { + "Ipv4Address": "10.35.69.216" + } + ], + "GatewayState": "STATE_RUNNING", + "GatewayTimezone": "GMT-8:00", + "GatewayType": "STORED", + "LastSoftwareUpdate": "2016-01-02T16:00:00", + "NextUpdateAvailabilityDate": "2017-01-02T16:00:00" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns metadata about a gateway such as its name, network interfaces, configured time zone, and the state (whether the gateway is running or not).", + "id": "to-describe-metadata-about-the-gateway-1471467849079", + "title": "To describe metadata about the gateway" + } + ], + "DescribeMaintenanceStartTime": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "output": { + "DayOfWeek": 2, + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", + "HourOfDay": 15, + "MinuteOfHour": 35, + "Timezone": "GMT+7:00" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns your gateway's weekly maintenance start time including the day and time of the week.", + "id": "to-describe-gateways-maintenance-start-time-1471470727387", + "title": "To describe gateway's maintenance start time" + } + ], + "DescribeSnapshotSchedule": [ + { + "input": { + "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB" + }, + "output": { + "Description": "sgw-AABB1122:vol-AABB1122:Schedule", + "RecurrenceInHours": 24, + "StartAt": 6, + "Timezone": "GMT+7:00", + "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Describes the snapshot schedule for the specified gateway volume including intervals at which snapshots are automatically initiated.", + "id": "to-describe-snapshot-schedule-for-gateway-volume-1471471139538", + "title": "To describe snapshot schedule for gateway volume" + } + ], + "DescribeStorediSCSIVolumes": [ + { + "input": { + "VolumeARNs": [ + "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB" + ] + }, + "output": { + "StorediSCSIVolumes": [ + { + "PreservedExistingData": false, + "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB", + "VolumeDiskId": "pci-0000:03:00.0-scsi-0:0:0:0", + "VolumeId": "vol-1122AABB", + "VolumeProgress": 23.7, + "VolumeSizeInBytes": 1099511627776, + "VolumeStatus": "BOOTSTRAPPING", + "VolumeiSCSIAttributes": { + "ChapEnabled": true, + "NetworkInterfaceId": "10.243.43.207", + "NetworkInterfacePort": 3260, + "TargetARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume" + } + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns the description of the gateway volumes specified in the request belonging to the same gateway.", + "id": "to-describe-the-volumes-of-a-gateway-1471472640660", + "title": "To describe the volumes of a gateway" + } + ], + "DescribeTapeArchives": [ + { + "input": { + "Limit": 123, + "Marker": "1", + "TapeARNs": [ + "arn:aws:storagegateway:us-east-1:999999999999:tape/AM08A1AD", + "arn:aws:storagegateway:us-east-1:999999999999:tape/AMZN01A2A4" + ] + }, + "output": { + "Marker": "1", + "TapeArchives": [ + { + "CompletionTime": "2016-12-16T13:50Z", + "TapeARN": "arn:aws:storagegateway:us-east-1:999999999:tape/AM08A1AD", + "TapeBarcode": "AM08A1AD", + "TapeSizeInBytes": 107374182400, + "TapeStatus": "ARCHIVED" + }, + { + "CompletionTime": "2016-12-16T13:59Z", + "TapeARN": "arn:aws:storagegateway:us-east-1:999999999:tape/AMZN01A2A4", + "TapeBarcode": "AMZN01A2A4", + "TapeSizeInBytes": 429496729600, + "TapeStatus": "ARCHIVED" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns a description of specified virtual tapes in the virtual tape shelf (VTS).", + "id": "to-describe-virtual-tapes-in-the-vts-1471473188198", + "title": "To describe virtual tapes in the VTS" + } + ], + "DescribeTapeRecoveryPoints": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", + "Limit": 1, + "Marker": "1" + }, + "output": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", + "Marker": "1", + "TapeRecoveryPointInfos": [ + { + "TapeARN": "arn:aws:storagegateway:us-east-1:999999999:tape/AMZN01A2A4", + "TapeRecoveryPointTime": "2016-12-16T13:50Z", + "TapeSizeInBytes": 1471550497, + "TapeStatus": "AVAILABLE" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns a list of virtual tape recovery points that are available for the specified gateway-VTL.", + "id": "to-describe-virtual-tape-recovery-points-1471542042026", + "title": "To describe virtual tape recovery points" + } + ], + "DescribeTapes": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B", + "Limit": 2, + "Marker": "1", + "TapeARNs": [ + "arn:aws:storagegateway:us-east-1:999999999999:tape/TEST04A2A1", + "arn:aws:storagegateway:us-east-1:999999999999:tape/TEST05A2A0" + ] + }, + "output": { + "Marker": "1", + "Tapes": [ + { + "TapeARN": "arn:aws:storagegateway:us-east-1:999999999999:tape/TEST04A2A1", + "TapeBarcode": "TEST04A2A1", + "TapeSizeInBytes": 107374182400, + "TapeStatus": "AVAILABLE" + }, + { + "TapeARN": "arn:aws:storagegateway:us-east-1:999999999999:tape/TEST05A2A0", + "TapeBarcode": "TEST05A2A0", + "TapeSizeInBytes": 107374182400, + "TapeStatus": "AVAILABLE" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns a description of the specified Amazon Resource Name (ARN) of virtual tapes. If a TapeARN is not specified, returns a description of all virtual tapes.", + "id": "to-describe-virtual-tapes-associated-with-gateway-1471629287727", + "title": "To describe virtual tape(s) associated with gateway" + } + ], + "DescribeUploadBuffer": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "output": { + "DiskIds": [ + "pci-0000:03:00.0-scsi-0:0:0:0", + "pci-0000:04:00.0-scsi-0:1:0:0" + ], + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", + "UploadBufferAllocatedInBytes": 0, + "UploadBufferUsedInBytes": 161061273600 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns information about the upload buffer of a gateway including disk IDs and the amount of upload buffer space allocated/used.", + "id": "to-describe-upload-buffer-of-gateway-1471631099003", + "title": "To describe upload buffer of gateway" + }, + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "output": { + "DiskIds": [ + "pci-0000:03:00.0-scsi-0:0:0:0", + "pci-0000:04:00.0-scsi-0:1:0:0" + ], + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", + "UploadBufferAllocatedInBytes": 161061273600, + "UploadBufferUsedInBytes": 0 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns information about the upload buffer of a gateway including disk IDs and the amount of upload buffer space allocated and used.", + "id": "to-describe-upload-buffer-of-a-gateway--1471904566370", + "title": "To describe upload buffer of a gateway" + } + ], + "DescribeVTLDevices": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B", + "Limit": 123, + "Marker": "1", + "VTLDeviceARNs": [ + + ] + }, + "output": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B", + "Marker": "1", + "VTLDevices": [ + { + "DeviceiSCSIAttributes": { + "ChapEnabled": false, + "NetworkInterfaceId": "10.243.43.207", + "NetworkInterfacePort": 3260, + "TargetARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:sgw-1fad4876-mediachanger" + }, + "VTLDeviceARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B/device/AMZN_SGW-1FAD4876_MEDIACHANGER_00001", + "VTLDeviceProductIdentifier": "L700", + "VTLDeviceType": "Medium Changer", + "VTLDeviceVendor": "STK" + }, + { + "DeviceiSCSIAttributes": { + "ChapEnabled": false, + "NetworkInterfaceId": "10.243.43.209", + "NetworkInterfacePort": 3260, + "TargetARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:sgw-1fad4876-tapedrive-01" + }, + "VTLDeviceARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B/device/AMZN_SGW-1FAD4876_TAPEDRIVE_00001", + "VTLDeviceProductIdentifier": "ULT3580-TD5", + "VTLDeviceType": "Tape Drive", + "VTLDeviceVendor": "IBM" + }, + { + "DeviceiSCSIAttributes": { + "ChapEnabled": false, + "NetworkInterfaceId": "10.243.43.209", + "NetworkInterfacePort": 3260, + "TargetARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:sgw-1fad4876-tapedrive-02" + }, + "VTLDeviceARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B/device/AMZN_SGW-1FAD4876_TAPEDRIVE_00002", + "VTLDeviceProductIdentifier": "ULT3580-TD5", + "VTLDeviceType": "Tape Drive", + "VTLDeviceVendor": "IBM" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Returns a description of virtual tape library (VTL) devices for the specified gateway.", + "id": "to-describe-virtual-tape-library-vtl-devices-of-a-single-gateway-1471906071410", + "title": "To describe virtual tape library (VTL) devices of a single gateway" + } + ], + "DescribeWorkingStorage": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "output": { + "DiskIds": [ + "pci-0000:03:00.0-scsi-0:0:0:0", + "pci-0000:03:00.0-scsi-0:0:1:0" + ], + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", + "WorkingStorageAllocatedInBytes": 2199023255552, + "WorkingStorageUsedInBytes": 789207040 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation is supported only for the gateway-stored volume architecture. This operation is deprecated in cached-volumes API version (20120630). Use DescribeUploadBuffer instead.", + "id": "to-describe-the-working-storage-of-a-gateway-depreciated-1472070842332", + "title": "To describe the working storage of a gateway [Depreciated]" + } + ], + "DisableGateway": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "output": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Disables a gateway when the gateway is no longer functioning. Use this operation for a gateway-VTL that is not reachable or not functioning.", + "id": "to-disable-a-gateway-when-it-is-no-longer-functioning-1472076046936", + "title": "To disable a gateway when it is no longer functioning" + } + ], + "ListGateways": [ + { + "input": { + "Limit": 2, + "Marker": "1" + }, + "output": { + "Gateways": [ + { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-23A4567C" + } + ], + "Marker": "1" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists gateways owned by an AWS account in a specified region as requested. Results are sorted by gateway ARN up to a maximum of 100 gateways.", + "id": "to-lists-region-specific-gateways-per-aws-account-1472077860657", + "title": "To lists region specific gateways per AWS account" + } + ], + "ListLocalDisks": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "output": { + "Disks": [ + { + "DiskAllocationType": "CACHE_STORAGE", + "DiskId": "pci-0000:03:00.0-scsi-0:0:0:0", + "DiskNode": "SCSI(0:0)", + "DiskPath": "/dev/sda", + "DiskSizeInBytes": 1099511627776, + "DiskStatus": "missing" + }, + { + "DiskAllocationResource": "", + "DiskAllocationType": "UPLOAD_BUFFER", + "DiskId": "pci-0000:03:00.0-scsi-0:0:1:0", + "DiskNode": "SCSI(0:1)", + "DiskPath": "/dev/sdb", + "DiskSizeInBytes": 1099511627776, + "DiskStatus": "present" + } + ], + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The request returns a list of all disks, specifying which are configured as working storage, cache storage, or stored volume or not configured at all.", + "id": "to-list-the-gateways-local-disks-1472079564618", + "title": "To list the gateway's local disks" + } + ], + "ListTagsForResource": [ + { + "input": { + "Limit": 1, + "Marker": "1", + "ResourceARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B" + }, + "output": { + "Marker": "1", + "ResourceARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B", + "Tags": [ + { + "Key": "Dev Gatgeway Region", + "Value": "East Coast" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists the tags that have been added to the specified resource.", + "id": "to-list-tags-that-have-been-added-to-a-resource-1472080268972", + "title": "To list tags that have been added to a resource" + } + ], + "ListVolumeRecoveryPoints": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "output": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", + "VolumeRecoveryPointInfos": [ + { + "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB", + "VolumeRecoveryPointTime": "2012-09-04T21:08:44.627Z", + "VolumeSizeInBytes": 536870912000 + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists the recovery points for a specified gateway in which all data of the volume is consistent and can be used to create a snapshot.", + "id": "to-list-recovery-points-for-a-gateway-1472143015088", + "title": "To list recovery points for a gateway" + } + ], + "ListVolumes": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", + "Limit": 2, + "Marker": "1" + }, + "output": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", + "Marker": "1", + "VolumeInfos": [ + { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", + "GatewayId": "sgw-12A3456B", + "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB", + "VolumeId": "vol-1122AABB", + "VolumeSizeInBytes": 107374182400, + "VolumeType": "STORED" + }, + { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-13B4567C", + "GatewayId": "sgw-gw-13B4567C", + "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-13B4567C/volume/vol-3344CCDD", + "VolumeId": "vol-1122AABB", + "VolumeSizeInBytes": 107374182400, + "VolumeType": "STORED" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists the iSCSI stored volumes of a gateway. Results are sorted by volume ARN up to a maximum of 100 volumes.", + "id": "to-list-the-iscsi-stored-volumes-of-a-gateway-1472145723653", + "title": "To list the iSCSI stored volumes of a gateway" + } + ], + "RemoveTagsFromResource": [ + { + "input": { + "ResourceARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B", + "TagKeys": [ + "Dev Gatgeway Region", + "East Coast" + ] + }, + "output": { + "ResourceARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Lists the iSCSI stored volumes of a gateway. Removes one or more tags from the specified resource.", + "id": "to-remove-tags-from-a-resource-1472147210553", + "title": "To remove tags from a resource" + } + ], + "ResetCache": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-13B4567C" + }, + "output": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-13B4567C" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Resets all cache disks that have encountered a error and makes the disks available for reconfiguration as cache storage.", + "id": "to-reset-cache-disks-in-error-status-1472148909807", + "title": "To reset cache disks in error status" + } + ], + "RetrieveTapeArchive": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B", + "TapeARN": "arn:aws:storagegateway:us-east-1:999999999999:tape/TEST0AA2AF" + }, + "output": { + "TapeARN": "arn:aws:storagegateway:us-east-1:999999999999:tape/TEST0AA2AF" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Retrieves an archived virtual tape from the virtual tape shelf (VTS) to a gateway-VTL. Virtual tapes archived in the VTS are not associated with any gateway.", + "id": "to-retrieve-an-archived-tape-from-the-vts-1472149812358", + "title": "To retrieve an archived tape from the VTS" + } + ], + "RetrieveTapeRecoveryPoint": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B", + "TapeARN": "arn:aws:storagegateway:us-east-1:999999999999:tape/TEST0AA2AF" + }, + "output": { + "TapeARN": "arn:aws:storagegateway:us-east-1:999999999999:tape/TEST0AA2AF" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Retrieves the recovery point for the specified virtual tape.", + "id": "to-retrieve-the-recovery-point-of-a-virtual-tape-1472150014805", + "title": "To retrieve the recovery point of a virtual tape" + } + ], + "SetLocalConsolePassword": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B", + "LocalConsolePassword": "PassWordMustBeAtLeast6Chars." + }, + "output": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Sets the password for your VM local console.", + "id": "to-set-a-password-for-your-vm-1472150202632", + "title": "To set a password for your VM" + } + ], + "ShutdownGateway": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B" + }, + "output": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This operation shuts down the gateway service component running in the storage gateway's virtual machine (VM) and not the VM.", + "id": "to-shut-down-a-gateway-service-1472150508835", + "title": "To shut down a gateway service" + } + ], + "StartGateway": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B" + }, + "output": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Starts a gateway service that was previously shut down.", + "id": "to-start-a-gateway-service-1472150722315", + "title": "To start a gateway service" + } + ], + "UpdateBandwidthRateLimit": [ + { + "input": { + "AverageDownloadRateLimitInBitsPerSec": 102400, + "AverageUploadRateLimitInBitsPerSec": 51200, + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "output": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Updates the bandwidth rate limits of a gateway. Both the upload and download bandwidth rate limit can be set, or either one of the two. If a new limit is not set, the existing rate limit remains.", + "id": "to-update-the-bandwidth-rate-limits-of-a-gateway-1472151016202", + "title": "To update the bandwidth rate limits of a gateway" + } + ], + "UpdateChapCredentials": [ + { + "input": { + "InitiatorName": "iqn.1991-05.com.microsoft:computername.domain.example.com", + "SecretToAuthenticateInitiator": "111111111111", + "SecretToAuthenticateTarget": "222222222222", + "TargetARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume" + }, + "output": { + "InitiatorName": "iqn.1991-05.com.microsoft:computername.domain.example.com", + "TargetARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Updates the Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target.", + "id": "to-update-chap-credentials-for-an-iscsi-target-1472151325795", + "title": "To update CHAP credentials for an iSCSI target" + } + ], + "UpdateGatewayInformation": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", + "GatewayName": "MyGateway2", + "GatewayTimezone": "GMT-12:00" + }, + "output": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", + "GatewayName": "" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Updates a gateway's metadata, which includes the gateway's name and time zone.", + "id": "to-update-a-gateways-metadata-1472151688693", + "title": "To update a gateway's metadata" + } + ], + "UpdateGatewaySoftwareNow": [ + { + "input": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "output": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Updates the gateway virtual machine (VM) software. The request immediately triggers the software update.", + "id": "to-update-a-gateways-vm-software-1472152020929", + "title": "To update a gateway's VM software" + } + ], + "UpdateMaintenanceStartTime": [ + { + "input": { + "DayOfWeek": 2, + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", + "HourOfDay": 0, + "MinuteOfHour": 30 + }, + "output": { + "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Updates a gateway's weekly maintenance start time information, including day and time of the week. The maintenance time is in your gateway's time zone.", + "id": "to-update-a-gateways-maintenance-start-time-1472152552031", + "title": "To update a gateway's maintenance start time" + } + ], + "UpdateSnapshotSchedule": [ + { + "input": { + "Description": "Hourly snapshot", + "RecurrenceInHours": 1, + "StartAt": 0, + "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB" + }, + "output": { + "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Updates a snapshot schedule configured for a gateway volume.", + "id": "to-update-a-volume-snapshot-schedule-1472152757068", + "title": "To update a volume snapshot schedule" + } + ], + "UpdateVTLDeviceType": [ + { + "input": { + "DeviceType": "Medium Changer", + "VTLDeviceARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B/device/AMZN_SGW-1FAD4876_MEDIACHANGER_00001" + }, + "output": { + "VTLDeviceARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B/device/AMZN_SGW-1FAD4876_MEDIACHANGER_00001" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "Updates the type of medium changer in a gateway-VTL after a gateway-VTL is activated.", + "id": "to-update-a-vtl-device-type-1472153012967", + "title": "To update a VTL device type" + } + ] } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/paginators-1.json index 286915c63..24130821b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/paginators-1.json @@ -49,4 +49,4 @@ "result_key": "VolumeInfos" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/api-2.json index 6c2839083..88074c282 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/api-2.json @@ -8,7 +8,8 @@ "serviceFullName":"Amazon DynamoDB Streams", "signatureVersion":"v4", "signingName":"dynamodb", - "targetPrefix":"DynamoDBStreams_20120810" + "targetPrefix":"DynamoDBStreams_20120810", + "uid":"streams-dynamodb-2012-08-10" }, "operations":{ "DescribeStream":{ @@ -158,6 +159,13 @@ "ShardIterator":{"shape":"ShardIterator"} } }, + "Identity":{ + "type":"structure", + "members":{ + "PrincipalId":{"shape":"String"}, + "Type":{"shape":"String"} + } + }, "InternalServerError":{ "type":"structure", "members":{ @@ -256,7 +264,8 @@ "eventVersion":{"shape":"String"}, "eventSource":{"shape":"String"}, "awsRegion":{"shape":"String"}, - "dynamodb":{"shape":"StreamRecord"} + "dynamodb":{"shape":"StreamRecord"}, + "userIdentity":{"shape":"Identity"} } }, "RecordList":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/docs-2.json index 583c171b5..827a7046b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/docs-2.json @@ -1,11 +1,11 @@ { "version": "2.0", - "service": "Amazon DynamoDB

Amazon DynamoDB Streams provides API actions for accessing streams and processing stream records. To learn more about application development with Streams, see Capturing Table Activity with DynamoDB Streams in the Amazon DynamoDB Developer Guide.

The following are short descriptions of each low-level DynamoDB Streams action:

  • DescribeStream - Returns detailed information about a particular stream.

  • GetRecords - Retrieves the stream records from within a shard.

  • GetShardIterator - Returns information on how to retrieve the streams record from a shard with a given shard ID.

  • ListStreams - Returns a list of all the streams associated with the current AWS account and endpoint.

", + "service": "Amazon DynamoDB

Amazon DynamoDB Streams provides API actions for accessing streams and processing stream records. To learn more about application development with Streams, see Capturing Table Activity with DynamoDB Streams in the Amazon DynamoDB Developer Guide.

", "operations": { - "DescribeStream": "

Returns information about a stream, including the current status of the stream, its Amazon Resource Name (ARN), the composition of its shards, and its corresponding DynamoDB table.

You can call DescribeStream at a maximum rate of 10 times per second.

Each shard in the stream has a SequenceNumberRange associated with it. If the SequenceNumberRange has a StartingSequenceNumber but no EndingSequenceNumber, then the shard is still open (able to receive more stream records). If both StartingSequenceNumber and EndingSequenceNumber are present, then that shard is closed and can no longer receive more data.

", + "DescribeStream": "

Returns information about a stream, including the current status of the stream, its Amazon Resource Name (ARN), the composition of its shards, and its corresponding DynamoDB table.

You can call DescribeStream at a maximum rate of 10 times per second.

Each shard in the stream has a SequenceNumberRange associated with it. If the SequenceNumberRange has a StartingSequenceNumber but no EndingSequenceNumber, then the shard is still open (able to receive more stream records). If both StartingSequenceNumber and EndingSequenceNumber are present, then that shard is closed and can no longer receive more data.

", "GetRecords": "

Retrieves the stream records from a given shard.

Specify a shard iterator using the ShardIterator parameter. The shard iterator specifies the position in the shard from which you want to start reading stream records sequentially. If there are no stream records available in the portion of the shard that the iterator points to, GetRecords returns an empty list. Note that it might take multiple calls to get to a portion of the shard that contains stream records.

GetRecords can retrieve a maximum of 1 MB of data or 1000 stream records, whichever comes first.

", "GetShardIterator": "

Returns a shard iterator. A shard iterator provides information about how to retrieve the stream records from within a shard. Use the shard iterator in a subsequent GetRecords request to read the stream records from the shard.

A shard iterator expires 15 minutes after it is returned to the requester.

", - "ListStreams": "

Returns an array of stream ARNs associated with the current account and endpoint. If the TableName parameter is present, then ListStreams will return only the streams ARNs for that table.

You can call ListStreams at a maximum rate of 5 times per second.

" + "ListStreams": "

Returns an array of stream ARNs associated with the current account and endpoint. If the TableName parameter is present, then ListStreams will return only the streams ARNs for that table.

You can call ListStreams at a maximum rate of 5 times per second.

" }, "shapes": { "AttributeMap": { @@ -58,12 +58,12 @@ } }, "DescribeStreamInput": { - "base": "

Represents the input of a DescribeStream operation.

", + "base": "

Represents the input of a DescribeStream operation.

", "refs": { } }, "DescribeStreamOutput": { - "base": "

Represents the output of a DescribeStream operation.

", + "base": "

Represents the output of a DescribeStream operation.

", "refs": { } }, @@ -78,30 +78,36 @@ } }, "ExpiredIteratorException": { - "base": "

The shard iterator has expired and can no longer be used to retrieve stream records. A shard iterator expires 15 minutes after it is retrieved using the GetShardIterator action.

", + "base": "

The shard iterator has expired and can no longer be used to retrieve stream records. A shard iterator expires 15 minutes after it is retrieved using the GetShardIterator action.

", "refs": { } }, "GetRecordsInput": { - "base": "

Represents the input of a GetRecords operation.

", + "base": "

Represents the input of a GetRecords operation.

", "refs": { } }, "GetRecordsOutput": { - "base": "

Represents the output of a GetRecords operation.

", + "base": "

Represents the output of a GetRecords operation.

", "refs": { } }, "GetShardIteratorInput": { - "base": "

Represents the input of a GetShardIterator operation.

", + "base": "

Represents the input of a GetShardIterator operation.

", "refs": { } }, "GetShardIteratorOutput": { - "base": "

Represents the output of a GetShardIterator operation.

", + "base": "

Represents the output of a GetShardIterator operation.

", "refs": { } }, + "Identity": { + "base": "

Contains details about the type of identity that made the request.

", + "refs": { + "Record$userIdentity": "

Items that are deleted by the Time to Live process after expiration have the following fields:

  • Records[].userIdentity.type

    \"Service\"

  • Records[].userIdentity.principalId

    \"dynamodb.amazonaws.com\"

" + } + }, "InternalServerError": { "base": "

An error occurred on the server side.

", "refs": { @@ -120,7 +126,7 @@ } }, "KeySchemaElement": { - "base": "

Represents a single element of a key schema. A key schema specifies the attributes that make up the primary key of a table, or the key attributes of an index.

A KeySchemaElement represents exactly one attribute of the primary key. For example, a simple primary key (partition key) would be represented by one KeySchemaElement. A composite primary key (partition key and sort key) would require one KeySchemaElement for the partition key, and another KeySchemaElement for the sort key.

The partition key of an item is also known as its hash attribute. The term \"hash attribute\" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.

The sort key of an item is also known as its range attribute. The term \"range attribute\" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.

", + "base": "

Represents a single element of a key schema. A key schema specifies the attributes that make up the primary key of a table, or the key attributes of an index.

A KeySchemaElement represents exactly one attribute of the primary key. For example, a simple primary key (partition key) would be represented by one KeySchemaElement. A composite primary key (partition key and sort key) would require one KeySchemaElement for the partition key, and another KeySchemaElement for the sort key.

The partition key of an item is also known as its hash attribute. The term \"hash attribute\" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.

The sort key of an item is also known as its range attribute. The term \"range attribute\" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.

", "refs": { "KeySchema$member": null } @@ -143,12 +149,12 @@ } }, "ListStreamsInput": { - "base": "

Represents the input of a ListStreams operation.

", + "base": "

Represents the input of a ListStreams operation.

", "refs": { } }, "ListStreamsOutput": { - "base": "

Represents the output of a ListStreams operation.

", + "base": "

Represents the output of a ListStreams operation.

", "refs": { } }, @@ -316,12 +322,14 @@ "String": { "base": null, "refs": { + "Identity$PrincipalId": "

A unique identifier for the entity that made the call. For Time To Live, the principalId is \"dynamodb.amazonaws.com\".

", + "Identity$Type": "

The type of the identity. For Time To Live, the type is \"Service\".

", "Record$eventID": "

A globally unique identifier for the event that was recorded in this stream record.

", - "Record$eventVersion": "

The version number of the stream record format. This number is updated whenever the structure of Record is modified.

Client applications must not assume that eventVersion will remain at a particular value, as this number is subject to change at any time. In general, eventVersion will only increase as the low-level DynamoDB Streams API evolves.

", - "Record$eventSource": "

The AWS service from which the stream record originated. For DynamoDB Streams, this is aws:dynamodb.

", - "Record$awsRegion": "

The region in which the GetRecords request was received.

", - "Stream$StreamLabel": "

A timestamp, in ISO 8601 format, for this stream.

Note that LatestStreamLabel is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique:

  • the AWS customer ID.

  • the table name

  • the StreamLabel

", - "StreamDescription$StreamLabel": "

A timestamp, in ISO 8601 format, for this stream.

Note that LatestStreamLabel is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique:

  • the AWS customer ID.

  • the table name

  • the StreamLabel

" + "Record$eventVersion": "

The version number of the stream record format. This number is updated whenever the structure of Record is modified.

Client applications must not assume that eventVersion will remain at a particular value, as this number is subject to change at any time. In general, eventVersion will only increase as the low-level DynamoDB Streams API evolves.

", + "Record$eventSource": "

The AWS service from which the stream record originated. For DynamoDB Streams, this is aws:dynamodb.

", + "Record$awsRegion": "

The region in which the GetRecords request was received.

", + "Stream$StreamLabel": "

A timestamp, in ISO 8601 format, for this stream.

Note that LatestStreamLabel is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique:

  • the AWS customer ID.

  • the table name

  • the StreamLabel

", + "StreamDescription$StreamLabel": "

A timestamp, in ISO 8601 format, for this stream.

Note that LatestStreamLabel is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique:

  • the AWS customer ID.

  • the table name

  • the StreamLabel

" } }, "StringAttributeValue": { @@ -346,7 +354,7 @@ } }, "TrimmedDataAccessException": { - "base": "

The operation attempted to read past the oldest stream record in a shard.

In DynamoDB Streams, there is a 24 hour limit on data retention. Stream records whose age exceeds this limit are subject to removal (trimming) from the stream. You might receive a TrimmedDataAccessException if:

  • You request a shard iterator with a sequence number older than the trim point (24 hours).

  • You obtain a shard iterator, but before you use the iterator in a GetRecords request, a stream record in the shard exceeds the 24 hour period and is trimmed. This causes the iterator to access a record that no longer exists.

", + "base": "

The operation attempted to read past the oldest stream record in a shard.

In DynamoDB Streams, there is a 24 hour limit on data retention. Stream records whose age exceeds this limit are subject to removal (trimming) from the stream. You might receive a TrimmedDataAccessException if:

  • You request a shard iterator with a sequence number older than the trim point (24 hours).

  • You obtain a shard iterator, but before you use the iterator in a GetRecords request, a stream record in the shard exceeds the 24 hour period and is trimmed. This causes the iterator to access a record that no longer exists.

", "refs": { } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/examples-1.json index 0ea7e3b0b..8287e2c49 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/examples-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/examples-1.json @@ -1,5 +1,212 @@ { "version": "1.0", "examples": { + "DescribeStream": [ + { + "input": { + "StreamArn": "arn:aws:dynamodb:us-west-2:111122223333:table/Forum/stream/2015-05-20T20:51:10.252" + }, + "output": { + "StreamDescription": { + "CreationRequestDateTime": "Wed May 20 13:51:10 PDT 2015", + "KeySchema": [ + { + "AttributeName": "ForumName", + "KeyType": "HASH" + }, + { + "AttributeName": "Subject", + "KeyType": "RANGE" + } + ], + "Shards": [ + { + "SequenceNumberRange": { + "EndingSequenceNumber": "20500000000000000910398", + "StartingSequenceNumber": "20500000000000000910398" + }, + "ShardId": "shardId-00000001414562045508-2bac9cd2" + }, + { + "ParentShardId": "shardId-00000001414562045508-2bac9cd2", + "SequenceNumberRange": { + "EndingSequenceNumber": "820400000000000001192334", + "StartingSequenceNumber": "820400000000000001192334" + }, + "ShardId": "shardId-00000001414576573621-f55eea83" + }, + { + "ParentShardId": "shardId-00000001414576573621-f55eea83", + "SequenceNumberRange": { + "EndingSequenceNumber": "1683700000000000001135967", + "StartingSequenceNumber": "1683700000000000001135967" + }, + "ShardId": "shardId-00000001414592258131-674fd923" + }, + { + "ParentShardId": "shardId-00000001414592258131-674fd923", + "SequenceNumberRange": { + "StartingSequenceNumber": "2574600000000000000935255" + }, + "ShardId": "shardId-00000001414608446368-3a1afbaf" + } + ], + "StreamArn": "arn:aws:dynamodb:us-west-2:111122223333:table/Forum/stream/2015-05-20T20:51:10.252", + "StreamLabel": "2015-05-20T20:51:10.252", + "StreamStatus": "ENABLED", + "StreamViewType": "NEW_AND_OLD_IMAGES", + "TableName": "Forum" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example describes a stream with a given stream ARN.", + "id": "to-describe-a-stream-with-a-given-stream-arn-1473457835200", + "title": "To describe a stream with a given stream ARN" + } + ], + "GetRecords": [ + { + "input": { + "ShardIterator": "arn:aws:dynamodb:us-west-2:111122223333:table/Forum/stream/2015-05-20T20:51:10.252|1|AAAAAAAAAAEvJp6D+zaQ... ..." + }, + "output": { + "NextShardIterator": "arn:aws:dynamodb:us-west-2:111122223333:table/Forum/stream/2015-05-20T20:51:10.252|1|AAAAAAAAAAGQBYshYDEe ... ...", + "Records": [ + { + "awsRegion": "us-west-2", + "dynamodb": { + "ApproximateCreationDateTime": "1.46480646E9", + "Keys": { + "ForumName": { + "S": "DynamoDB" + }, + "Subject": { + "S": "DynamoDB Thread 3" + } + }, + "SequenceNumber": "300000000000000499659", + "SizeBytes": 41, + "StreamViewType": "KEYS_ONLY" + }, + "eventID": "e2fd9c34eff2d779b297b26f5fef4206", + "eventName": "INSERT", + "eventSource": "aws:dynamodb", + "eventVersion": "1.0" + }, + { + "awsRegion": "us-west-2", + "dynamodb": { + "ApproximateCreationDateTime": "1.46480527E9", + "Keys": { + "ForumName": { + "S": "DynamoDB" + }, + "Subject": { + "S": "DynamoDB Thread 1" + } + }, + "SequenceNumber": "400000000000000499660", + "SizeBytes": 41, + "StreamViewType": "KEYS_ONLY" + }, + "eventID": "4b25bd0da9a181a155114127e4837252", + "eventName": "MODIFY", + "eventSource": "aws:dynamodb", + "eventVersion": "1.0" + }, + { + "awsRegion": "us-west-2", + "dynamodb": { + "ApproximateCreationDateTime": "1.46480646E9", + "Keys": { + "ForumName": { + "S": "DynamoDB" + }, + "Subject": { + "S": "DynamoDB Thread 2" + } + }, + "SequenceNumber": "500000000000000499661", + "SizeBytes": 41, + "StreamViewType": "KEYS_ONLY" + }, + "eventID": "740280c73a3df7842edab3548a1b08ad", + "eventName": "REMOVE", + "eventSource": "aws:dynamodb", + "eventVersion": "1.0" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example retrieves all the stream records from a shard.", + "id": "to-retrieve-all-the-stream-records-from-a-shard-1473707781419", + "title": "To retrieve all the stream records from a shard" + } + ], + "GetShardIterator": [ + { + "input": { + "ShardId": "00000001414576573621-f55eea83", + "ShardIteratorType": "TRIM_HORIZON", + "StreamArn": "arn:aws:dynamodb:us-west-2:111122223333:table/Forum/stream/2015-05-20T20:51:10.252" + }, + "output": { + "ShardIterator": "arn:aws:dynamodb:us-west-2:111122223333:table/Forum/stream/2015-05-20T20:51:10.252|1|AAAAAAAAAAEvJp6D+zaQ... ..." + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns a shard iterator for the provided stream ARN and shard ID.", + "id": "to-obtain-a-shard-iterator-for-the-provided-stream-arn-and-shard-id-1473459941476", + "title": "To obtain a shard iterator for the provided stream ARN and shard ID" + } + ], + "ListStreams": [ + { + "input": { + }, + "output": { + "Streams": [ + { + "StreamArn": "arn:aws:dynamodb:us-wesst-2:111122223333:table/Forum/stream/2015-05-20T20:51:10.252", + "StreamLabel": "2015-05-20T20:51:10.252", + "TableName": "Forum" + }, + { + "StreamArn": "arn:aws:dynamodb:us-west-2:111122223333:table/Forum/stream/2015-05-20T20:50:02.714", + "StreamLabel": "2015-05-20T20:50:02.714", + "TableName": "Forum" + }, + { + "StreamArn": "arn:aws:dynamodb:us-west-2:111122223333:table/Forum/stream/2015-05-19T23:03:50.641", + "StreamLabel": "2015-05-19T23:03:50.641", + "TableName": "Forum" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example lists all of the stream ARNs.", + "id": "to-list-all-of-the-stream-arns--1473459534285", + "title": "To list all of the stream ARNs " + } + ] } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/paginators-1.json new file mode 100644 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/api-2.json index 5859e0e50..d6b652473 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/api-2.json @@ -8,6 +8,7 @@ "serviceAbbreviation":"AWS STS", "serviceFullName":"AWS Security Token Service", "signatureVersion":"v4", + "uid":"sts-2011-06-15", "xmlNamespace":"https://sts.amazonaws.com/doc/2011-06-15/" }, "operations":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/docs-2.json index dd8b5aab6..e2439b794 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/docs-2.json @@ -4,11 +4,11 @@ "operations": { "AssumeRole": "

Returns a set of temporary security credentials (consisting of an access key ID, a secret access key, and a security token) that you can use to access AWS resources that you might not normally have access to. Typically, you use AssumeRole for cross-account access or federation. For a comparison of AssumeRole with the other APIs that produce temporary credentials, see Requesting Temporary Security Credentials and Comparing the AWS STS APIs in the IAM User Guide.

Important: You cannot call AssumeRole by using AWS root account credentials; access is denied. You must use credentials for an IAM user or an IAM role to call AssumeRole.

For cross-account access, imagine that you own multiple accounts and need to access resources in each account. You could create long-term credentials in each account to access those resources. However, managing all those credentials and remembering which one can access which account can be time consuming. Instead, you can create one set of long-term credentials in one account and then use temporary security credentials to access all the other accounts by assuming roles in those accounts. For more information about roles, see IAM Roles (Delegation and Federation) in the IAM User Guide.

For federation, you can, for example, grant single sign-on access to the AWS Management Console. If you already have an identity and authentication system in your corporate network, you don't have to recreate user identities in AWS in order to grant those user identities access to AWS. Instead, after a user has been authenticated, you call AssumeRole (and specify the role with the appropriate permissions) to get temporary security credentials for that user. With those temporary security credentials, you construct a sign-in URL that users can use to access the console. For more information, see Common Scenarios for Temporary Credentials in the IAM User Guide.

The temporary security credentials are valid for the duration that you specified when calling AssumeRole, which can be from 900 seconds (15 minutes) to a maximum of 3600 seconds (1 hour). The default is 1 hour.

The temporary security credentials created by AssumeRole can be used to make API calls to any AWS service with the following exception: you cannot call the STS service's GetFederationToken or GetSessionToken APIs.

Optionally, you can pass an IAM access policy to this operation. If you choose not to pass a policy, the temporary security credentials that are returned by the operation have the permissions that are defined in the access policy of the role that is being assumed. If you pass a policy to this operation, the temporary security credentials that are returned by the operation have the permissions that are allowed by both the access policy of the role that is being assumed, and the policy that you pass. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use the passed policy to grant permissions that are in excess of those allowed by the access policy of the role that is being assumed. For more information, see Permissions for AssumeRole, AssumeRoleWithSAML, and AssumeRoleWithWebIdentity in the IAM User Guide.

To assume a role, your AWS account must be trusted by the role. The trust relationship is defined in the role's trust policy when the role is created. That trust policy states which accounts are allowed to delegate access to this account's role.

The user who wants to access the role must also have permissions delegated from the role's administrator. If the user is in a different account than the role, then the user's administrator must attach a policy that allows the user to call AssumeRole on the ARN of the role in the other account. If the user is in the same account as the role, then you can either attach a policy to the user (identical to the previous different account user), or you can add the user as a principal directly in the role's trust policy

Using MFA with AssumeRole

You can optionally include multi-factor authentication (MFA) information when you call AssumeRole. This is useful for cross-account scenarios in which you want to make sure that the user who is assuming the role has been authenticated using an AWS MFA device. In that scenario, the trust policy of the role being assumed includes a condition that tests for MFA authentication; if the caller does not include valid MFA information, the request to assume the role is denied. The condition in a trust policy that tests for MFA authentication might look like the following example.

\"Condition\": {\"Bool\": {\"aws:MultiFactorAuthPresent\": true}}

For more information, see Configuring MFA-Protected API Access in the IAM User Guide guide.

To use MFA with AssumeRole, you pass values for the SerialNumber and TokenCode parameters. The SerialNumber value identifies the user's hardware or virtual MFA device. The TokenCode is the time-based one-time password (TOTP) that the MFA devices produces.

", "AssumeRoleWithSAML": "

Returns a set of temporary security credentials for users who have been authenticated via a SAML authentication response. This operation provides a mechanism for tying an enterprise identity store or directory to role-based AWS access without user-specific credentials or configuration. For a comparison of AssumeRoleWithSAML with the other APIs that produce temporary credentials, see Requesting Temporary Security Credentials and Comparing the AWS STS APIs in the IAM User Guide.

The temporary security credentials returned by this operation consist of an access key ID, a secret access key, and a security token. Applications can use these temporary security credentials to sign calls to AWS services.

The temporary security credentials are valid for the duration that you specified when calling AssumeRole, or until the time specified in the SAML authentication response's SessionNotOnOrAfter value, whichever is shorter. The duration can be from 900 seconds (15 minutes) to a maximum of 3600 seconds (1 hour). The default is 1 hour.

The temporary security credentials created by AssumeRoleWithSAML can be used to make API calls to any AWS service with the following exception: you cannot call the STS service's GetFederationToken or GetSessionToken APIs.

Optionally, you can pass an IAM access policy to this operation. If you choose not to pass a policy, the temporary security credentials that are returned by the operation have the permissions that are defined in the access policy of the role that is being assumed. If you pass a policy to this operation, the temporary security credentials that are returned by the operation have the permissions that are allowed by the intersection of both the access policy of the role that is being assumed, and the policy that you pass. This means that both policies must grant the permission for the action to be allowed. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use the passed policy to grant permissions that are in excess of those allowed by the access policy of the role that is being assumed. For more information, see Permissions for AssumeRole, AssumeRoleWithSAML, and AssumeRoleWithWebIdentity in the IAM User Guide.

Before your application can call AssumeRoleWithSAML, you must configure your SAML identity provider (IdP) to issue the claims required by AWS. Additionally, you must use AWS Identity and Access Management (IAM) to create a SAML provider entity in your AWS account that represents your identity provider, and create an IAM role that specifies this SAML provider in its trust policy.

Calling AssumeRoleWithSAML does not require the use of AWS security credentials. The identity of the caller is validated by using keys in the metadata document that is uploaded for the SAML provider entity for your identity provider.

Calling AssumeRoleWithSAML can result in an entry in your AWS CloudTrail logs. The entry includes the value in the NameID element of the SAML assertion. We recommend that you use a NameIDType that is not associated with any personally identifiable information (PII). For example, you could instead use the Persistent Identifier (urn:oasis:names:tc:SAML:2.0:nameid-format:persistent).

For more information, see the following resources:

", - "AssumeRoleWithWebIdentity": "

Returns a set of temporary security credentials for users who have been authenticated in a mobile or web application with a web identity provider, such as Amazon Cognito, Login with Amazon, Facebook, Google, or any OpenID Connect-compatible identity provider.

For mobile applications, we recommend that you use Amazon Cognito. You can use Amazon Cognito with the AWS SDK for iOS and the AWS SDK for Android to uniquely identify a user and supply the user with a consistent identity throughout the lifetime of an application.

To learn more about Amazon Cognito, see Amazon Cognito Overview in the AWS SDK for Android Developer Guide guide and Amazon Cognito Overview in the AWS SDK for iOS Developer Guide.

Calling AssumeRoleWithWebIdentity does not require the use of AWS security credentials. Therefore, you can distribute an application (for example, on mobile devices) that requests temporary security credentials without including long-term AWS credentials in the application, and without deploying server-based proxy services that use long-term AWS credentials. Instead, the identity of the caller is validated by using a token from the web identity provider. For a comparison of AssumeRoleWithWebIdentity with the other APIs that produce temporary credentials, see Requesting Temporary Security Credentials and Comparing the AWS STS APIs in the IAM User Guide.

The temporary security credentials returned by this API consist of an access key ID, a secret access key, and a security token. Applications can use these temporary security credentials to sign calls to AWS service APIs.

The credentials are valid for the duration that you specified when calling AssumeRoleWithWebIdentity, which can be from 900 seconds (15 minutes) to a maximum of 3600 seconds (1 hour). The default is 1 hour.

The temporary security credentials created by AssumeRoleWithWebIdentity can be used to make API calls to any AWS service with the following exception: you cannot call the STS service's GetFederationToken or GetSessionToken APIs.

Optionally, you can pass an IAM access policy to this operation. If you choose not to pass a policy, the temporary security credentials that are returned by the operation have the permissions that are defined in the access policy of the role that is being assumed. If you pass a policy to this operation, the temporary security credentials that are returned by the operation have the permissions that are allowed by both the access policy of the role that is being assumed, and the policy that you pass. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use the passed policy to grant permissions that are in excess of those allowed by the access policy of the role that is being assumed. For more information, see Permissions for AssumeRole, AssumeRoleWithSAML, and AssumeRoleWithWebIdentity in the IAM User Guide.

Before your application can call AssumeRoleWithWebIdentity, you must have an identity token from a supported identity provider and create a role that the application can assume. The role that your application assumes must trust the identity provider that is associated with the identity token. In other words, the identity provider must be specified in the role's trust policy.

Calling AssumeRoleWithWebIdentity can result in an entry in your AWS CloudTrail logs. The entry includes the Subject of the provided Web Identity Token. We recommend that you avoid using any personally identifiable information (PII) in this field. For example, you could instead use a GUID or a pairwise identifier, as suggested in the OIDC specification.

For more information about how to use web identity federation and the AssumeRoleWithWebIdentity API, see the following resources:

", + "AssumeRoleWithWebIdentity": "

Returns a set of temporary security credentials for users who have been authenticated in a mobile or web application with a web identity provider, such as Amazon Cognito, Login with Amazon, Facebook, Google, or any OpenID Connect-compatible identity provider.

For mobile applications, we recommend that you use Amazon Cognito. You can use Amazon Cognito with the AWS SDK for iOS and the AWS SDK for Android to uniquely identify a user and supply the user with a consistent identity throughout the lifetime of an application.

To learn more about Amazon Cognito, see Amazon Cognito Overview in the AWS SDK for Android Developer Guide guide and Amazon Cognito Overview in the AWS SDK for iOS Developer Guide.

Calling AssumeRoleWithWebIdentity does not require the use of AWS security credentials. Therefore, you can distribute an application (for example, on mobile devices) that requests temporary security credentials without including long-term AWS credentials in the application, and without deploying server-based proxy services that use long-term AWS credentials. Instead, the identity of the caller is validated by using a token from the web identity provider. For a comparison of AssumeRoleWithWebIdentity with the other APIs that produce temporary credentials, see Requesting Temporary Security Credentials and Comparing the AWS STS APIs in the IAM User Guide.

The temporary security credentials returned by this API consist of an access key ID, a secret access key, and a security token. Applications can use these temporary security credentials to sign calls to AWS service APIs.

The credentials are valid for the duration that you specified when calling AssumeRoleWithWebIdentity, which can be from 900 seconds (15 minutes) to a maximum of 3600 seconds (1 hour). The default is 1 hour.

The temporary security credentials created by AssumeRoleWithWebIdentity can be used to make API calls to any AWS service with the following exception: you cannot call the STS service's GetFederationToken or GetSessionToken APIs.

Optionally, you can pass an IAM access policy to this operation. If you choose not to pass a policy, the temporary security credentials that are returned by the operation have the permissions that are defined in the access policy of the role that is being assumed. If you pass a policy to this operation, the temporary security credentials that are returned by the operation have the permissions that are allowed by both the access policy of the role that is being assumed, and the policy that you pass. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use the passed policy to grant permissions that are in excess of those allowed by the access policy of the role that is being assumed. For more information, see Permissions for AssumeRole, AssumeRoleWithSAML, and AssumeRoleWithWebIdentity in the IAM User Guide.

Before your application can call AssumeRoleWithWebIdentity, you must have an identity token from a supported identity provider and create a role that the application can assume. The role that your application assumes must trust the identity provider that is associated with the identity token. In other words, the identity provider must be specified in the role's trust policy.

Calling AssumeRoleWithWebIdentity can result in an entry in your AWS CloudTrail logs. The entry includes the Subject of the provided Web Identity Token. We recommend that you avoid using any personally identifiable information (PII) in this field. For example, you could instead use a GUID or a pairwise identifier, as suggested in the OIDC specification.

For more information about how to use web identity federation and the AssumeRoleWithWebIdentity API, see the following resources:

", "DecodeAuthorizationMessage": "

Decodes additional information about the authorization status of a request from an encoded message returned in response to an AWS request.

For example, if a user is not authorized to perform an action that he or she has requested, the request returns a Client.UnauthorizedOperation response (an HTTP 403 response). Some AWS actions additionally return an encoded message that can provide details about this authorization failure.

Only certain AWS actions return an encoded authorization message. The documentation for an individual action indicates whether that action returns an encoded message in addition to returning an HTTP code.

The message is encoded because the details of the authorization status can constitute privileged information that the user who requested the action should not see. To decode an authorization status message, a user must be granted permissions via an IAM policy to request the DecodeAuthorizationMessage (sts:DecodeAuthorizationMessage) action.

The decoded message includes the following type of information:

  • Whether the request was denied due to an explicit deny or due to the absence of an explicit allow. For more information, see Determining Whether a Request is Allowed or Denied in the IAM User Guide.

  • The principal who made the request.

  • The requested action.

  • The requested resource.

  • The values of condition keys in the context of the user's request.

", "GetCallerIdentity": "

Returns details about the IAM identity whose credentials are used to call the API.

", - "GetFederationToken": "

Returns a set of temporary security credentials (consisting of an access key ID, a secret access key, and a security token) for a federated user. A typical use is in a proxy application that gets temporary security credentials on behalf of distributed applications inside a corporate network. Because you must call the GetFederationToken action using the long-term security credentials of an IAM user, this call is appropriate in contexts where those credentials can be safely stored, usually in a server-based application. For a comparison of GetFederationToken with the other APIs that produce temporary credentials, see Requesting Temporary Security Credentials and Comparing the AWS STS APIs in the IAM User Guide.

If you are creating a mobile-based or browser-based app that can authenticate users using a web identity provider like Login with Amazon, Facebook, Google, or an OpenID Connect-compatible identity provider, we recommend that you use Amazon Cognito or AssumeRoleWithWebIdentity. For more information, see Federation Through a Web-based Identity Provider.

The GetFederationToken action must be called by using the long-term AWS security credentials of an IAM user. You can also call GetFederationToken using the security credentials of an AWS root account, but we do not recommended it. Instead, we recommend that you create an IAM user for the purpose of the proxy application and then attach a policy to the IAM user that limits federated users to only the actions and resources that they need access to. For more information, see IAM Best Practices in the IAM User Guide.

The temporary security credentials that are obtained by using the long-term credentials of an IAM user are valid for the specified duration, from 900 seconds (15 minutes) up to a maximium of 129600 seconds (36 hours). The default is 43200 seconds (12 hours). Temporary credentials that are obtained by using AWS root account credentials have a maximum duration of 3600 seconds (1 hour).

The temporary security credentials created by GetFederationToken can be used to make API calls to any AWS service with the following exceptions:

  • You cannot use these credentials to call any IAM APIs.

  • You cannot call any STS APIs.

Permissions

The permissions for the temporary security credentials returned by GetFederationToken are determined by a combination of the following:

  • The policy or policies that are attached to the IAM user whose credentials are used to call GetFederationToken.

  • The policy that is passed as a parameter in the call.

The passed policy is attached to the temporary security credentials that result from the GetFederationToken API call--that is, to the federated user. When the federated user makes an AWS request, AWS evaluates the policy attached to the federated user in combination with the policy or policies attached to the IAM user whose credentials were used to call GetFederationToken. AWS allows the federated user's request only when both the federated user and the IAM user are explicitly allowed to perform the requested action. The passed policy cannot grant more permissions than those that are defined in the IAM user policy.

A typical use case is that the permissions of the IAM user whose credentials are used to call GetFederationToken are designed to allow access to all the actions and resources that any federated user will need. Then, for individual users, you pass a policy to the operation that scopes down the permissions to a level that's appropriate to that individual user, using a policy that allows only a subset of permissions that are granted to the IAM user.

If you do not pass a policy, the resulting temporary security credentials have no effective permissions. The only exception is when the temporary security credentials are used to access a resource that has a resource-based policy that specifically allows the federated user to access the resource.

For more information about how permissions work, see Permissions for GetFederationToken. For information about using GetFederationToken to create temporary security credentials, see GetFederationToken—Federation Through a Custom Identity Broker.

", - "GetSessionToken": "

Returns a set of temporary credentials for an AWS account or IAM user. The credentials consist of an access key ID, a secret access key, and a security token. Typically, you use GetSessionToken if you want to use MFA to protect programmatic calls to specific AWS APIs like Amazon EC2 StopInstances. MFA-enabled IAM users would need to call GetSessionToken and submit an MFA code that is associated with their MFA device. Using the temporary security credentials that are returned from the call, IAM users can then make programmatic calls to APIs that require MFA authentication. If you do not supply a correct MFA code, then the API returns an access denied error. For a comparison of GetSessionToken with the other APIs that produce temporary credentials, see Requesting Temporary Security Credentials and Comparing the AWS STS APIs in the IAM User Guide.

The GetSessionToken action must be called by using the long-term AWS security credentials of the AWS account or an IAM user. Credentials that are created by IAM users are valid for the duration that you specify, from 900 seconds (15 minutes) up to a maximum of 129600 seconds (36 hours), with a default of 43200 seconds (12 hours); credentials that are created by using account credentials can range from 900 seconds (15 minutes) up to a maximum of 3600 seconds (1 hour), with a default of 1 hour.

The temporary security credentials created by GetSessionToken can be used to make API calls to any AWS service with the following exceptions:

  • You cannot call any IAM APIs unless MFA authentication information is included in the request.

  • You cannot call any STS API except AssumeRole.

We recommend that you do not call GetSessionToken with root account credentials. Instead, follow our best practices by creating one or more IAM users, giving them the necessary permissions, and using IAM users for everyday interaction with AWS.

The permissions associated with the temporary security credentials returned by GetSessionToken are based on the permissions associated with account or IAM user whose credentials are used to call the action. If GetSessionToken is called using root account credentials, the temporary credentials have root account permissions. Similarly, if GetSessionToken is called using the credentials of an IAM user, the temporary credentials have the same permissions as the IAM user.

For more information about using GetSessionToken to create temporary credentials, go to Temporary Credentials for Users in Untrusted Environments in the IAM User Guide.

" + "GetFederationToken": "

Returns a set of temporary security credentials (consisting of an access key ID, a secret access key, and a security token) for a federated user. A typical use is in a proxy application that gets temporary security credentials on behalf of distributed applications inside a corporate network. Because you must call the GetFederationToken action using the long-term security credentials of an IAM user, this call is appropriate in contexts where those credentials can be safely stored, usually in a server-based application. For a comparison of GetFederationToken with the other APIs that produce temporary credentials, see Requesting Temporary Security Credentials and Comparing the AWS STS APIs in the IAM User Guide.

If you are creating a mobile-based or browser-based app that can authenticate users using a web identity provider like Login with Amazon, Facebook, Google, or an OpenID Connect-compatible identity provider, we recommend that you use Amazon Cognito or AssumeRoleWithWebIdentity. For more information, see Federation Through a Web-based Identity Provider.

The GetFederationToken action must be called by using the long-term AWS security credentials of an IAM user. You can also call GetFederationToken using the security credentials of an AWS root account, but we do not recommended it. Instead, we recommend that you create an IAM user for the purpose of the proxy application and then attach a policy to the IAM user that limits federated users to only the actions and resources that they need access to. For more information, see IAM Best Practices in the IAM User Guide.

The temporary security credentials that are obtained by using the long-term credentials of an IAM user are valid for the specified duration, from 900 seconds (15 minutes) up to a maximium of 129600 seconds (36 hours). The default is 43200 seconds (12 hours). Temporary credentials that are obtained by using AWS root account credentials have a maximum duration of 3600 seconds (1 hour).

The temporary security credentials created by GetFederationToken can be used to make API calls to any AWS service with the following exceptions:

  • You cannot use these credentials to call any IAM APIs.

  • You cannot call any STS APIs except GetCallerIdentity.

Permissions

The permissions for the temporary security credentials returned by GetFederationToken are determined by a combination of the following:

  • The policy or policies that are attached to the IAM user whose credentials are used to call GetFederationToken.

  • The policy that is passed as a parameter in the call.

The passed policy is attached to the temporary security credentials that result from the GetFederationToken API call--that is, to the federated user. When the federated user makes an AWS request, AWS evaluates the policy attached to the federated user in combination with the policy or policies attached to the IAM user whose credentials were used to call GetFederationToken. AWS allows the federated user's request only when both the federated user and the IAM user are explicitly allowed to perform the requested action. The passed policy cannot grant more permissions than those that are defined in the IAM user policy.

A typical use case is that the permissions of the IAM user whose credentials are used to call GetFederationToken are designed to allow access to all the actions and resources that any federated user will need. Then, for individual users, you pass a policy to the operation that scopes down the permissions to a level that's appropriate to that individual user, using a policy that allows only a subset of permissions that are granted to the IAM user.

If you do not pass a policy, the resulting temporary security credentials have no effective permissions. The only exception is when the temporary security credentials are used to access a resource that has a resource-based policy that specifically allows the federated user to access the resource.

For more information about how permissions work, see Permissions for GetFederationToken. For information about using GetFederationToken to create temporary security credentials, see GetFederationToken—Federation Through a Custom Identity Broker.

", + "GetSessionToken": "

Returns a set of temporary credentials for an AWS account or IAM user. The credentials consist of an access key ID, a secret access key, and a security token. Typically, you use GetSessionToken if you want to use MFA to protect programmatic calls to specific AWS APIs like Amazon EC2 StopInstances. MFA-enabled IAM users would need to call GetSessionToken and submit an MFA code that is associated with their MFA device. Using the temporary security credentials that are returned from the call, IAM users can then make programmatic calls to APIs that require MFA authentication. If you do not supply a correct MFA code, then the API returns an access denied error. For a comparison of GetSessionToken with the other APIs that produce temporary credentials, see Requesting Temporary Security Credentials and Comparing the AWS STS APIs in the IAM User Guide.

The GetSessionToken action must be called by using the long-term AWS security credentials of the AWS account or an IAM user. Credentials that are created by IAM users are valid for the duration that you specify, from 900 seconds (15 minutes) up to a maximum of 129600 seconds (36 hours), with a default of 43200 seconds (12 hours); credentials that are created by using account credentials can range from 900 seconds (15 minutes) up to a maximum of 3600 seconds (1 hour), with a default of 1 hour.

The temporary security credentials created by GetSessionToken can be used to make API calls to any AWS service with the following exceptions:

  • You cannot call any IAM APIs unless MFA authentication information is included in the request.

  • You cannot call any STS API except AssumeRole or GetCallerIdentity.

We recommend that you do not call GetSessionToken with root account credentials. Instead, follow our best practices by creating one or more IAM users, giving them the necessary permissions, and using IAM users for everyday interaction with AWS.

The permissions associated with the temporary security credentials returned by GetSessionToken are based on the permissions associated with account or IAM user whose credentials are used to call the action. If GetSessionToken is called using root account credentials, the temporary credentials have root account permissions. Similarly, if GetSessionToken is called using the credentials of an IAM user, the temporary credentials have the same permissions as the IAM user.

For more information about using GetSessionToken to create temporary credentials, go to Temporary Credentials for Users in Untrusted Environments in the IAM User Guide.

" }, "shapes": { "AssumeRoleRequest": { @@ -259,7 +259,7 @@ "externalIdType": { "base": null, "refs": { - "AssumeRoleRequest$ExternalId": "

A unique identifier that is used by third parties when assuming roles in their customers' accounts. For each role that the third party can assume, they should instruct their customers to ensure the role's trust policy checks for the external ID that the third party generated. Each time the third party assumes the role, they should pass the customer's external ID. The external ID is useful in order to help third parties bind a role to the customer who created it. For more information about the external ID, see How to Use an External ID When Granting Access to Your AWS Resources to a Third Party in the IAM User Guide.

The format for this parameter, as described by its regex pattern, is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@:\\/-

" + "AssumeRoleRequest$ExternalId": "

A unique identifier that is used by third parties when assuming roles in their customers' accounts. For each role that the third party can assume, they should instruct their customers to ensure the role's trust policy checks for the external ID that the third party generated. Each time the third party assumes the role, they should pass the customer's external ID. The external ID is useful in order to help third parties bind a role to the customer who created it. For more information about the external ID, see How to Use an External ID When Granting Access to Your AWS Resources to a Third Party in the IAM User Guide.

The regex used to validated this parameter is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@:\\/-

" } }, "federatedIdType": { @@ -330,15 +330,15 @@ "roleSessionNameType": { "base": null, "refs": { - "AssumeRoleRequest$RoleSessionName": "

An identifier for the assumed role session.

Use the role session name to uniquely identify a session when the same role is assumed by different principals or for different reasons. In cross-account scenarios, the role session name is visible to, and can be logged by the account that owns the role. The role session name is also used in the ARN of the assumed role principal. This means that subsequent cross-account API requests using the temporary security credentials will expose the role session name to the external account in their CloudTrail logs.

The format for this parameter, as described by its regex pattern, is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-

", - "AssumeRoleWithWebIdentityRequest$RoleSessionName": "

An identifier for the assumed role session. Typically, you pass the name or identifier that is associated with the user who is using your application. That way, the temporary security credentials that your application will use are associated with that user. This session name is included as part of the ARN and assumed role ID in the AssumedRoleUser response element.

The format for this parameter, as described by its regex pattern, is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-

" + "AssumeRoleRequest$RoleSessionName": "

An identifier for the assumed role session.

Use the role session name to uniquely identify a session when the same role is assumed by different principals or for different reasons. In cross-account scenarios, the role session name is visible to, and can be logged by the account that owns the role. The role session name is also used in the ARN of the assumed role principal. This means that subsequent cross-account API requests using the temporary security credentials will expose the role session name to the external account in their CloudTrail logs.

The regex used to validate this parameter is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-

", + "AssumeRoleWithWebIdentityRequest$RoleSessionName": "

An identifier for the assumed role session. Typically, you pass the name or identifier that is associated with the user who is using your application. That way, the temporary security credentials that your application will use are associated with that user. This session name is included as part of the ARN and assumed role ID in the AssumedRoleUser response element.

The regex used to validate this parameter is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-

" } }, "serialNumberType": { "base": null, "refs": { - "AssumeRoleRequest$SerialNumber": "

The identification number of the MFA device that is associated with the user who is making the AssumeRole call. Specify this value if the trust policy of the role being assumed includes a condition that requires MFA authentication. The value is either the serial number for a hardware device (such as GAHT12345678) or an Amazon Resource Name (ARN) for a virtual device (such as arn:aws:iam::123456789012:mfa/user).

The format for this parameter, as described by its regex pattern, is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-

", - "GetSessionTokenRequest$SerialNumber": "

The identification number of the MFA device that is associated with the IAM user who is making the GetSessionToken call. Specify this value if the IAM user has a policy that requires MFA authentication. The value is either the serial number for a hardware device (such as GAHT12345678) or an Amazon Resource Name (ARN) for a virtual device (such as arn:aws:iam::123456789012:mfa/user). You can find the device for an IAM user by going to the AWS Management Console and viewing the user's security credentials.

The format for this parameter, as described by its regex pattern, is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-

" + "AssumeRoleRequest$SerialNumber": "

The identification number of the MFA device that is associated with the user who is making the AssumeRole call. Specify this value if the trust policy of the role being assumed includes a condition that requires MFA authentication. The value is either the serial number for a hardware device (such as GAHT12345678) or an Amazon Resource Name (ARN) for a virtual device (such as arn:aws:iam::123456789012:mfa/user).

The regex used to validate this parameter is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-

", + "GetSessionTokenRequest$SerialNumber": "

The identification number of the MFA device that is associated with the IAM user who is making the GetSessionToken call. Specify this value if the IAM user has a policy that requires MFA authentication. The value is either the serial number for a hardware device (such as GAHT12345678) or an Amazon Resource Name (ARN) for a virtual device (such as arn:aws:iam::123456789012:mfa/user). You can find the device for an IAM user by going to the AWS Management Console and viewing the user's security credentials.

The regex used to validate this parameter is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-

" } }, "sessionPolicyDocumentType": { @@ -378,7 +378,7 @@ "userNameType": { "base": null, "refs": { - "GetFederationTokenRequest$Name": "

The name of the federated user. The name is used as an identifier for the temporary security credentials (such as Bob). For example, you can reference the federated user name in a resource-based policy, such as in an Amazon S3 bucket policy.

The format for this parameter, as described by its regex pattern, is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-

" + "GetFederationTokenRequest$Name": "

The name of the federated user. The name is used as an identifier for the temporary security credentials (such as Bob). For example, you can reference the federated user name in a resource-based policy, such as in an Amazon S3 bucket policy.

The regex used to validate this parameter is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-

" } }, "webIdentitySubjectType": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/examples-1.json index 0ea7e3b0b..84442a109 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/examples-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/examples-1.json @@ -1,5 +1,206 @@ { "version": "1.0", "examples": { + "AssumeRole": [ + { + "input": { + "DurationSeconds": 3600, + "ExternalId": "123ABC", + "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Stmt1\",\"Effect\":\"Allow\",\"Action\":\"s3:*\",\"Resource\":\"*\"}]}", + "RoleArn": "arn:aws:iam::123456789012:role/demo", + "RoleSessionName": "Bob" + }, + "output": { + "AssumedRoleUser": { + "Arn": "arn:aws:sts::123456789012:assumed-role/demo/Bob", + "AssumedRoleId": "ARO123EXAMPLE123:Bob" + }, + "Credentials": { + "AccessKeyId": "AKIAIOSFODNN7EXAMPLE", + "Expiration": "2011-07-15T23:28:33.359Z", + "SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY", + "SessionToken": "AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA==" + }, + "PackedPolicySize": 6 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "", + "id": "to-assume-a-role-1480532402212", + "title": "To assume a role" + } + ], + "AssumeRoleWithWebIdentity": [ + { + "input": { + "DurationSeconds": 3600, + "ProviderId": "www.amazon.com", + "RoleArn": "arn:aws:iam::123456789012:role/FederatedWebIdentityRole", + "RoleSessionName": "app1", + "WebIdentityToken": "Atza%7CIQEBLjAsAhRFiXuWpUXuRvQ9PZL3GMFcYevydwIUFAHZwXZXXXXXXXXJnrulxKDHwy87oGKPznh0D6bEQZTSCzyoCtL_8S07pLpr0zMbn6w1lfVZKNTBdDansFBmtGnIsIapjI6xKR02Yc_2bQ8LZbUXSGm6Ry6_BG7PrtLZtj_dfCTj92xNGed-CrKqjG7nPBjNIL016GGvuS5gSvPRUxWES3VYfm1wl7WTI7jn-Pcb6M-buCgHhFOzTQxod27L9CqnOLio7N3gZAGpsp6n1-AJBOCJckcyXe2c6uD0srOJeZlKUm2eTDVMf8IehDVI0r1QOnTV6KzzAI3OY87Vd_cVMQ" + }, + "output": { + "AssumedRoleUser": { + "Arn": "arn:aws:sts::123456789012:assumed-role/FederatedWebIdentityRole/app1", + "AssumedRoleId": "AROACLKWSDQRAOEXAMPLE:app1" + }, + "Audience": "client.5498841531868486423.1548@apps.example.com", + "Credentials": { + "AccessKeyId": "AKIAIOSFODNN7EXAMPLE", + "Expiration": "2014-10-24T23:00:23Z", + "SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY", + "SessionToken": "AQoDYXdzEE0a8ANXXXXXXXXNO1ewxE5TijQyp+IEXAMPLE" + }, + "PackedPolicySize": 123, + "Provider": "www.amazon.com", + "SubjectFromWebIdentityToken": "amzn1.account.AF6RHO7KZU5XRVQJGXK6HEXAMPLE" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "", + "id": "to-assume-a-role-as-an-openid-connect-federated-user-1480533445696", + "title": "To assume a role as an OpenID Connect-federated user" + } + ], + "DecodeAuthorizationMessage": [ + { + "input": { + "EncodedMessage": "" + }, + "output": { + "DecodedMessage": "{\"allowed\": \"false\",\"explicitDeny\": \"false\",\"matchedStatements\": \"\",\"failures\": \"\",\"context\": {\"principal\": {\"id\": \"AIDACKCEVSQ6C2EXAMPLE\",\"name\": \"Bob\",\"arn\": \"arn:aws:iam::123456789012:user/Bob\"},\"action\": \"ec2:StopInstances\",\"resource\": \"arn:aws:ec2:us-east-1:123456789012:instance/i-dd01c9bd\",\"conditions\": [{\"item\": {\"key\": \"ec2:Tenancy\",\"values\": [\"default\"]},{\"item\": {\"key\": \"ec2:ResourceTag/elasticbeanstalk:environment-name\",\"values\": [\"Default-Environment\"]}},(Additional items ...)]}}" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "", + "id": "to-decode-information-about-an-authorization-status-of-a-request-1480533854499", + "title": "To decode information about an authorization status of a request" + } + ], + "GetCallerIdentity": [ + { + "input": { + }, + "output": { + "Account": "123456789012", + "Arn": "arn:aws:iam::123456789012:user/Alice", + "UserId": "AKIAI44QH8DHBEXAMPLE" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example shows a request and response made with the credentials for a user named Alice in the AWS account 123456789012.", + "id": "to-get-details-about-a-calling-iam-user-1480540050376", + "title": "To get details about a calling IAM user" + }, + { + "input": { + }, + "output": { + "Account": "123456789012", + "Arn": "arn:aws:sts::123456789012:assumed-role/my-role-name/my-role-session-name", + "UserId": "AKIAI44QH8DHBEXAMPLE:my-role-session-name" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example shows a request and response made with temporary credentials created by AssumeRole. The name of the assumed role is my-role-name, and the RoleSessionName is set to my-role-session-name.", + "id": "to-get-details-about-a-calling-user-federated-with-assumerole-1480540158545", + "title": "To get details about a calling user federated with AssumeRole" + }, + { + "input": { + }, + "output": { + "Account": "123456789012", + "Arn": "arn:aws:sts::123456789012:federated-user/my-federated-user-name", + "UserId": "123456789012:my-federated-user-name" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example shows a request and response made with temporary credentials created by using GetFederationToken. The Name parameter is set to my-federated-user-name.", + "id": "to-get-details-about-a-calling-user-federated-with-getfederationtoken-1480540231316", + "title": "To get details about a calling user federated with GetFederationToken" + } + ], + "GetFederationToken": [ + { + "input": { + "DurationSeconds": 3600, + "Name": "Bob", + "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Stmt1\",\"Effect\":\"Allow\",\"Action\":\"s3:*\",\"Resource\":\"*\"}]}" + }, + "output": { + "Credentials": { + "AccessKeyId": "AKIAIOSFODNN7EXAMPLE", + "Expiration": "2011-07-15T23:28:33.359Z", + "SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY", + "SessionToken": "AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA==" + }, + "FederatedUser": { + "Arn": "arn:aws:sts::123456789012:federated-user/Bob", + "FederatedUserId": "123456789012:Bob" + }, + "PackedPolicySize": 6 + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "", + "id": "to-get-temporary-credentials-for-a-role-by-using-getfederationtoken-1480540749900", + "title": "To get temporary credentials for a role by using GetFederationToken" + } + ], + "GetSessionToken": [ + { + "input": { + "DurationSeconds": 3600, + "SerialNumber": "YourMFASerialNumber", + "TokenCode": "123456" + }, + "output": { + "Credentials": { + "AccessKeyId": "AKIAIOSFODNN7EXAMPLE", + "Expiration": "2011-07-11T19:55:29.611Z", + "SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY", + "SessionToken": "AQoEXAMPLEH4aoAH0gNCAPyJxz4BlCFFxWNE1OPTgk5TthT+FvwqnKwRcOIfrRh3c/LTo6UDdyJwOOvEVPvLXCrrrUtdnniCEXAMPLE/IvU1dYUg2RVAJBanLiHb4IgRmpRV3zrkuWJOgQs8IZZaIv2BXIa2R4OlgkBN9bkUDNCJiBeb/AXlzBBko7b15fjrBs2+cTQtpZ3CYWFXG8C5zqx37wnOE49mRl/+OtkIKGO7fAE" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "", + "id": "to-get-temporary-credentials-for-an-iam-user-or-an-aws-account-1480540814038", + "title": "To get temporary credentials for an IAM user or an AWS account" + } + ] } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/support/2013-04-15/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/support/2013-04-15/api-2.json index 3d509266e..f9f07ec83 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/support/2013-04-15/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/support/2013-04-15/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"support-2013-04-15", "apiVersion":"2013-04-15", "endpointPrefix":"support", "jsonVersion":"1.1", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/swf/2012-01-25/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/swf/2012-01-25/api-2.json index 63486b94d..af5d426ee 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/swf/2012-01-25/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/swf/2012-01-25/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"swf-2012-01-25", "apiVersion":"2012-01-25", "endpointPrefix":"swf", "jsonVersion":"1.0", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/waf-regional/2016-11-28/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/waf-regional/2016-11-28/api-2.json new file mode 100644 index 000000000..4c20fc555 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/waf-regional/2016-11-28/api-2.json @@ -0,0 +1,2090 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2016-11-28", + "endpointPrefix":"waf-regional", + "jsonVersion":"1.1", + "protocol":"json", + "serviceAbbreviation":"WAF Regional", + "serviceFullName":"AWS WAF Regional", + "signatureVersion":"v4", + "targetPrefix":"AWSWAF_Regional_20161128", + "uid":"waf-regional-2016-11-28" + }, + "operations":{ + "AssociateWebACL":{ + "name":"AssociateWebACL", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateWebACLRequest"}, + "output":{"shape":"AssociateWebACLResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFInvalidParameterException"}, + {"shape":"WAFNonexistentItemException"}, + {"shape":"WAFUnavailableEntityException"} + ] + }, + "CreateByteMatchSet":{ + "name":"CreateByteMatchSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateByteMatchSetRequest"}, + "output":{"shape":"CreateByteMatchSetResponse"}, + "errors":[ + {"shape":"WAFDisallowedNameException"}, + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFInvalidParameterException"}, + {"shape":"WAFStaleDataException"}, + {"shape":"WAFLimitsExceededException"} + ] + }, + "CreateIPSet":{ + "name":"CreateIPSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateIPSetRequest"}, + "output":{"shape":"CreateIPSetResponse"}, + "errors":[ + {"shape":"WAFStaleDataException"}, + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFDisallowedNameException"}, + {"shape":"WAFInvalidParameterException"}, + {"shape":"WAFLimitsExceededException"} + ] + }, + "CreateRule":{ + "name":"CreateRule", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateRuleRequest"}, + "output":{"shape":"CreateRuleResponse"}, + "errors":[ + {"shape":"WAFStaleDataException"}, + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFDisallowedNameException"}, + {"shape":"WAFInvalidParameterException"}, + {"shape":"WAFLimitsExceededException"} + ] + }, + "CreateSizeConstraintSet":{ + "name":"CreateSizeConstraintSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateSizeConstraintSetRequest"}, + "output":{"shape":"CreateSizeConstraintSetResponse"}, + "errors":[ + {"shape":"WAFStaleDataException"}, + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFDisallowedNameException"}, + {"shape":"WAFInvalidParameterException"}, + {"shape":"WAFLimitsExceededException"} + ] + }, + "CreateSqlInjectionMatchSet":{ + "name":"CreateSqlInjectionMatchSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateSqlInjectionMatchSetRequest"}, + "output":{"shape":"CreateSqlInjectionMatchSetResponse"}, + "errors":[ + {"shape":"WAFDisallowedNameException"}, + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFInvalidParameterException"}, + {"shape":"WAFStaleDataException"}, + {"shape":"WAFLimitsExceededException"} + ] + }, + "CreateWebACL":{ + "name":"CreateWebACL", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateWebACLRequest"}, + "output":{"shape":"CreateWebACLResponse"}, + "errors":[ + {"shape":"WAFStaleDataException"}, + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFDisallowedNameException"}, + {"shape":"WAFInvalidParameterException"}, + {"shape":"WAFLimitsExceededException"} + ] + }, + "CreateXssMatchSet":{ + "name":"CreateXssMatchSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateXssMatchSetRequest"}, + "output":{"shape":"CreateXssMatchSetResponse"}, + "errors":[ + {"shape":"WAFDisallowedNameException"}, + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFInvalidParameterException"}, + {"shape":"WAFStaleDataException"}, + {"shape":"WAFLimitsExceededException"} + ] + }, + "DeleteByteMatchSet":{ + "name":"DeleteByteMatchSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteByteMatchSetRequest"}, + "output":{"shape":"DeleteByteMatchSetResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFNonexistentItemException"}, + {"shape":"WAFReferencedItemException"}, + {"shape":"WAFStaleDataException"}, + {"shape":"WAFNonEmptyEntityException"} + ] + }, + "DeleteIPSet":{ + "name":"DeleteIPSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteIPSetRequest"}, + "output":{"shape":"DeleteIPSetResponse"}, + "errors":[ + {"shape":"WAFStaleDataException"}, + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFNonexistentItemException"}, + {"shape":"WAFReferencedItemException"}, + {"shape":"WAFNonEmptyEntityException"} + ] + }, + "DeleteRule":{ + "name":"DeleteRule", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteRuleRequest"}, + "output":{"shape":"DeleteRuleResponse"}, + "errors":[ + {"shape":"WAFStaleDataException"}, + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFNonexistentItemException"}, + {"shape":"WAFReferencedItemException"}, + {"shape":"WAFNonEmptyEntityException"} + ] + }, + "DeleteSizeConstraintSet":{ + "name":"DeleteSizeConstraintSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteSizeConstraintSetRequest"}, + "output":{"shape":"DeleteSizeConstraintSetResponse"}, + "errors":[ + {"shape":"WAFStaleDataException"}, + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFNonexistentItemException"}, + {"shape":"WAFReferencedItemException"}, + {"shape":"WAFNonEmptyEntityException"} + ] + }, + "DeleteSqlInjectionMatchSet":{ + "name":"DeleteSqlInjectionMatchSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteSqlInjectionMatchSetRequest"}, + "output":{"shape":"DeleteSqlInjectionMatchSetResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFNonexistentItemException"}, + {"shape":"WAFReferencedItemException"}, + {"shape":"WAFStaleDataException"}, + {"shape":"WAFNonEmptyEntityException"} + ] + }, + "DeleteWebACL":{ + "name":"DeleteWebACL", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteWebACLRequest"}, + "output":{"shape":"DeleteWebACLResponse"}, + "errors":[ + {"shape":"WAFStaleDataException"}, + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFNonexistentItemException"}, + {"shape":"WAFReferencedItemException"}, + {"shape":"WAFNonEmptyEntityException"} + ] + }, + "DeleteXssMatchSet":{ + "name":"DeleteXssMatchSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteXssMatchSetRequest"}, + "output":{"shape":"DeleteXssMatchSetResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFNonexistentItemException"}, + {"shape":"WAFReferencedItemException"}, + {"shape":"WAFStaleDataException"}, + {"shape":"WAFNonEmptyEntityException"} + ] + }, + "DisassociateWebACL":{ + "name":"DisassociateWebACL", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociateWebACLRequest"}, + "output":{"shape":"DisassociateWebACLResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFInvalidParameterException"}, + {"shape":"WAFNonexistentItemException"} + ] + }, + "GetByteMatchSet":{ + "name":"GetByteMatchSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetByteMatchSetRequest"}, + "output":{"shape":"GetByteMatchSetResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFNonexistentItemException"} + ] + }, + "GetChangeToken":{ + "name":"GetChangeToken", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetChangeTokenRequest"}, + "output":{"shape":"GetChangeTokenResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"} + ] + }, + "GetChangeTokenStatus":{ + "name":"GetChangeTokenStatus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetChangeTokenStatusRequest"}, + "output":{"shape":"GetChangeTokenStatusResponse"}, + "errors":[ + {"shape":"WAFNonexistentItemException"}, + {"shape":"WAFInternalErrorException"} + ] + }, + "GetIPSet":{ + "name":"GetIPSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetIPSetRequest"}, + "output":{"shape":"GetIPSetResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFNonexistentItemException"} + ] + }, + "GetRule":{ + "name":"GetRule", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetRuleRequest"}, + "output":{"shape":"GetRuleResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFNonexistentItemException"} + ] + }, + "GetSampledRequests":{ + "name":"GetSampledRequests", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetSampledRequestsRequest"}, + "output":{"shape":"GetSampledRequestsResponse"}, + "errors":[ + {"shape":"WAFNonexistentItemException"}, + {"shape":"WAFInternalErrorException"} + ] + }, + "GetSizeConstraintSet":{ + "name":"GetSizeConstraintSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetSizeConstraintSetRequest"}, + "output":{"shape":"GetSizeConstraintSetResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFNonexistentItemException"} + ] + }, + "GetSqlInjectionMatchSet":{ + "name":"GetSqlInjectionMatchSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetSqlInjectionMatchSetRequest"}, + "output":{"shape":"GetSqlInjectionMatchSetResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFNonexistentItemException"} + ] + }, + "GetWebACL":{ + "name":"GetWebACL", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetWebACLRequest"}, + "output":{"shape":"GetWebACLResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFNonexistentItemException"} + ] + }, + "GetWebACLForResource":{ + "name":"GetWebACLForResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetWebACLForResourceRequest"}, + "output":{"shape":"GetWebACLForResourceResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFNonexistentItemException"}, + {"shape":"WAFInvalidParameterException"}, + {"shape":"WAFUnavailableEntityException"} + ] + }, + "GetXssMatchSet":{ + "name":"GetXssMatchSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetXssMatchSetRequest"}, + "output":{"shape":"GetXssMatchSetResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFNonexistentItemException"} + ] + }, + "ListByteMatchSets":{ + "name":"ListByteMatchSets", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListByteMatchSetsRequest"}, + "output":{"shape":"ListByteMatchSetsResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"} + ] + }, + "ListIPSets":{ + "name":"ListIPSets", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListIPSetsRequest"}, + "output":{"shape":"ListIPSetsResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"} + ] + }, + "ListResourcesForWebACL":{ + "name":"ListResourcesForWebACL", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListResourcesForWebACLRequest"}, + "output":{"shape":"ListResourcesForWebACLResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFNonexistentItemException"} + ] + }, + "ListRules":{ + "name":"ListRules", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListRulesRequest"}, + "output":{"shape":"ListRulesResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"} + ] + }, + "ListSizeConstraintSets":{ + "name":"ListSizeConstraintSets", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListSizeConstraintSetsRequest"}, + "output":{"shape":"ListSizeConstraintSetsResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"} + ] + }, + "ListSqlInjectionMatchSets":{ + "name":"ListSqlInjectionMatchSets", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListSqlInjectionMatchSetsRequest"}, + "output":{"shape":"ListSqlInjectionMatchSetsResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"} + ] + }, + "ListWebACLs":{ + "name":"ListWebACLs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListWebACLsRequest"}, + "output":{"shape":"ListWebACLsResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"} + ] + }, + "ListXssMatchSets":{ + "name":"ListXssMatchSets", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListXssMatchSetsRequest"}, + "output":{"shape":"ListXssMatchSetsResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"} + ] + }, + "UpdateByteMatchSet":{ + "name":"UpdateByteMatchSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateByteMatchSetRequest"}, + "output":{"shape":"UpdateByteMatchSetResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFInvalidOperationException"}, + {"shape":"WAFInvalidParameterException"}, + {"shape":"WAFNonexistentContainerException"}, + {"shape":"WAFNonexistentItemException"}, + {"shape":"WAFStaleDataException"}, + {"shape":"WAFLimitsExceededException"} + ] + }, + "UpdateIPSet":{ + "name":"UpdateIPSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateIPSetRequest"}, + "output":{"shape":"UpdateIPSetResponse"}, + "errors":[ + {"shape":"WAFStaleDataException"}, + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFInvalidOperationException"}, + {"shape":"WAFInvalidParameterException"}, + {"shape":"WAFNonexistentContainerException"}, + {"shape":"WAFNonexistentItemException"}, + {"shape":"WAFReferencedItemException"}, + {"shape":"WAFLimitsExceededException"} + ] + }, + "UpdateRule":{ + "name":"UpdateRule", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateRuleRequest"}, + "output":{"shape":"UpdateRuleResponse"}, + "errors":[ + {"shape":"WAFStaleDataException"}, + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFInvalidOperationException"}, + {"shape":"WAFInvalidParameterException"}, + {"shape":"WAFNonexistentContainerException"}, + {"shape":"WAFNonexistentItemException"}, + {"shape":"WAFReferencedItemException"}, + {"shape":"WAFLimitsExceededException"} + ] + }, + "UpdateSizeConstraintSet":{ + "name":"UpdateSizeConstraintSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateSizeConstraintSetRequest"}, + "output":{"shape":"UpdateSizeConstraintSetResponse"}, + "errors":[ + {"shape":"WAFStaleDataException"}, + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFInvalidOperationException"}, + {"shape":"WAFInvalidParameterException"}, + {"shape":"WAFNonexistentContainerException"}, + {"shape":"WAFNonexistentItemException"}, + {"shape":"WAFReferencedItemException"}, + {"shape":"WAFLimitsExceededException"} + ] + }, + "UpdateSqlInjectionMatchSet":{ + "name":"UpdateSqlInjectionMatchSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateSqlInjectionMatchSetRequest"}, + "output":{"shape":"UpdateSqlInjectionMatchSetResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFInvalidOperationException"}, + {"shape":"WAFInvalidParameterException"}, + {"shape":"WAFNonexistentContainerException"}, + {"shape":"WAFNonexistentItemException"}, + {"shape":"WAFStaleDataException"}, + {"shape":"WAFLimitsExceededException"} + ] + }, + "UpdateWebACL":{ + "name":"UpdateWebACL", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateWebACLRequest"}, + "output":{"shape":"UpdateWebACLResponse"}, + "errors":[ + {"shape":"WAFStaleDataException"}, + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFInvalidOperationException"}, + {"shape":"WAFInvalidParameterException"}, + {"shape":"WAFNonexistentContainerException"}, + {"shape":"WAFNonexistentItemException"}, + {"shape":"WAFReferencedItemException"}, + {"shape":"WAFLimitsExceededException"} + ] + }, + "UpdateXssMatchSet":{ + "name":"UpdateXssMatchSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateXssMatchSetRequest"}, + "output":{"shape":"UpdateXssMatchSetResponse"}, + "errors":[ + {"shape":"WAFInternalErrorException"}, + {"shape":"WAFInvalidAccountException"}, + {"shape":"WAFInvalidOperationException"}, + {"shape":"WAFInvalidParameterException"}, + {"shape":"WAFNonexistentContainerException"}, + {"shape":"WAFNonexistentItemException"}, + {"shape":"WAFStaleDataException"}, + {"shape":"WAFLimitsExceededException"} + ] + } + }, + "shapes":{ + "Action":{"type":"string"}, + "ActivatedRule":{ + "type":"structure", + "required":[ + "Priority", + "RuleId", + "Action" + ], + "members":{ + "Priority":{"shape":"RulePriority"}, + "RuleId":{"shape":"ResourceId"}, + "Action":{"shape":"WafAction"} + } + }, + "ActivatedRules":{ + "type":"list", + "member":{"shape":"ActivatedRule"} + }, + "AssociateWebACLRequest":{ + "type":"structure", + "required":[ + "WebACLId", + "ResourceArn" + ], + "members":{ + "WebACLId":{"shape":"ResourceId"}, + "ResourceArn":{"shape":"ResourceArn"} + } + }, + "AssociateWebACLResponse":{ + "type":"structure", + "members":{ + } + }, + "ByteMatchSet":{ + "type":"structure", + "required":[ + "ByteMatchSetId", + "ByteMatchTuples" + ], + "members":{ + "ByteMatchSetId":{"shape":"ResourceId"}, + "Name":{"shape":"ResourceName"}, + "ByteMatchTuples":{"shape":"ByteMatchTuples"} + } + }, + "ByteMatchSetSummaries":{ + "type":"list", + "member":{"shape":"ByteMatchSetSummary"} + }, + "ByteMatchSetSummary":{ + "type":"structure", + "required":[ + "ByteMatchSetId", + "Name" + ], + "members":{ + "ByteMatchSetId":{"shape":"ResourceId"}, + "Name":{"shape":"ResourceName"} + } + }, + "ByteMatchSetUpdate":{ + "type":"structure", + "required":[ + "Action", + "ByteMatchTuple" + ], + "members":{ + "Action":{"shape":"ChangeAction"}, + "ByteMatchTuple":{"shape":"ByteMatchTuple"} + } + }, + "ByteMatchSetUpdates":{ + "type":"list", + "member":{"shape":"ByteMatchSetUpdate"} + }, + "ByteMatchTargetString":{"type":"blob"}, + "ByteMatchTuple":{ + "type":"structure", + "required":[ + "FieldToMatch", + "TargetString", + "TextTransformation", + "PositionalConstraint" + ], + "members":{ + "FieldToMatch":{"shape":"FieldToMatch"}, + "TargetString":{"shape":"ByteMatchTargetString"}, + "TextTransformation":{"shape":"TextTransformation"}, + "PositionalConstraint":{"shape":"PositionalConstraint"} + } + }, + "ByteMatchTuples":{ + "type":"list", + "member":{"shape":"ByteMatchTuple"} + }, + "ChangeAction":{ + "type":"string", + "enum":[ + "INSERT", + "DELETE" + ] + }, + "ChangeToken":{ + "type":"string", + "min":1 + }, + "ChangeTokenStatus":{ + "type":"string", + "enum":[ + "PROVISIONED", + "PENDING", + "INSYNC" + ] + }, + "ComparisonOperator":{ + "type":"string", + "enum":[ + "EQ", + "NE", + "LE", + "LT", + "GE", + "GT" + ] + }, + "Country":{"type":"string"}, + "CreateByteMatchSetRequest":{ + "type":"structure", + "required":[ + "Name", + "ChangeToken" + ], + "members":{ + "Name":{"shape":"ResourceName"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "CreateByteMatchSetResponse":{ + "type":"structure", + "members":{ + "ByteMatchSet":{"shape":"ByteMatchSet"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "CreateIPSetRequest":{ + "type":"structure", + "required":[ + "Name", + "ChangeToken" + ], + "members":{ + "Name":{"shape":"ResourceName"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "CreateIPSetResponse":{ + "type":"structure", + "members":{ + "IPSet":{"shape":"IPSet"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "CreateRuleRequest":{ + "type":"structure", + "required":[ + "Name", + "MetricName", + "ChangeToken" + ], + "members":{ + "Name":{"shape":"ResourceName"}, + "MetricName":{"shape":"MetricName"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "CreateRuleResponse":{ + "type":"structure", + "members":{ + "Rule":{"shape":"Rule"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "CreateSizeConstraintSetRequest":{ + "type":"structure", + "required":[ + "Name", + "ChangeToken" + ], + "members":{ + "Name":{"shape":"ResourceName"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "CreateSizeConstraintSetResponse":{ + "type":"structure", + "members":{ + "SizeConstraintSet":{"shape":"SizeConstraintSet"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "CreateSqlInjectionMatchSetRequest":{ + "type":"structure", + "required":[ + "Name", + "ChangeToken" + ], + "members":{ + "Name":{"shape":"ResourceName"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "CreateSqlInjectionMatchSetResponse":{ + "type":"structure", + "members":{ + "SqlInjectionMatchSet":{"shape":"SqlInjectionMatchSet"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "CreateWebACLRequest":{ + "type":"structure", + "required":[ + "Name", + "MetricName", + "DefaultAction", + "ChangeToken" + ], + "members":{ + "Name":{"shape":"ResourceName"}, + "MetricName":{"shape":"MetricName"}, + "DefaultAction":{"shape":"WafAction"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "CreateWebACLResponse":{ + "type":"structure", + "members":{ + "WebACL":{"shape":"WebACL"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "CreateXssMatchSetRequest":{ + "type":"structure", + "required":[ + "Name", + "ChangeToken" + ], + "members":{ + "Name":{"shape":"ResourceName"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "CreateXssMatchSetResponse":{ + "type":"structure", + "members":{ + "XssMatchSet":{"shape":"XssMatchSet"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "DeleteByteMatchSetRequest":{ + "type":"structure", + "required":[ + "ByteMatchSetId", + "ChangeToken" + ], + "members":{ + "ByteMatchSetId":{"shape":"ResourceId"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "DeleteByteMatchSetResponse":{ + "type":"structure", + "members":{ + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "DeleteIPSetRequest":{ + "type":"structure", + "required":[ + "IPSetId", + "ChangeToken" + ], + "members":{ + "IPSetId":{"shape":"ResourceId"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "DeleteIPSetResponse":{ + "type":"structure", + "members":{ + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "DeleteRuleRequest":{ + "type":"structure", + "required":[ + "RuleId", + "ChangeToken" + ], + "members":{ + "RuleId":{"shape":"ResourceId"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "DeleteRuleResponse":{ + "type":"structure", + "members":{ + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "DeleteSizeConstraintSetRequest":{ + "type":"structure", + "required":[ + "SizeConstraintSetId", + "ChangeToken" + ], + "members":{ + "SizeConstraintSetId":{"shape":"ResourceId"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "DeleteSizeConstraintSetResponse":{ + "type":"structure", + "members":{ + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "DeleteSqlInjectionMatchSetRequest":{ + "type":"structure", + "required":[ + "SqlInjectionMatchSetId", + "ChangeToken" + ], + "members":{ + "SqlInjectionMatchSetId":{"shape":"ResourceId"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "DeleteSqlInjectionMatchSetResponse":{ + "type":"structure", + "members":{ + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "DeleteWebACLRequest":{ + "type":"structure", + "required":[ + "WebACLId", + "ChangeToken" + ], + "members":{ + "WebACLId":{"shape":"ResourceId"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "DeleteWebACLResponse":{ + "type":"structure", + "members":{ + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "DeleteXssMatchSetRequest":{ + "type":"structure", + "required":[ + "XssMatchSetId", + "ChangeToken" + ], + "members":{ + "XssMatchSetId":{"shape":"ResourceId"}, + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "DeleteXssMatchSetResponse":{ + "type":"structure", + "members":{ + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "DisassociateWebACLRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{"shape":"ResourceArn"} + } + }, + "DisassociateWebACLResponse":{ + "type":"structure", + "members":{ + } + }, + "FieldToMatch":{ + "type":"structure", + "required":["Type"], + "members":{ + "Type":{"shape":"MatchFieldType"}, + "Data":{"shape":"MatchFieldData"} + } + }, + "GetByteMatchSetRequest":{ + "type":"structure", + "required":["ByteMatchSetId"], + "members":{ + "ByteMatchSetId":{"shape":"ResourceId"} + } + }, + "GetByteMatchSetResponse":{ + "type":"structure", + "members":{ + "ByteMatchSet":{"shape":"ByteMatchSet"} + } + }, + "GetChangeTokenRequest":{ + "type":"structure", + "members":{ + } + }, + "GetChangeTokenResponse":{ + "type":"structure", + "members":{ + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "GetChangeTokenStatusRequest":{ + "type":"structure", + "required":["ChangeToken"], + "members":{ + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "GetChangeTokenStatusResponse":{ + "type":"structure", + "members":{ + "ChangeTokenStatus":{"shape":"ChangeTokenStatus"} + } + }, + "GetIPSetRequest":{ + "type":"structure", + "required":["IPSetId"], + "members":{ + "IPSetId":{"shape":"ResourceId"} + } + }, + "GetIPSetResponse":{ + "type":"structure", + "members":{ + "IPSet":{"shape":"IPSet"} + } + }, + "GetRuleRequest":{ + "type":"structure", + "required":["RuleId"], + "members":{ + "RuleId":{"shape":"ResourceId"} + } + }, + "GetRuleResponse":{ + "type":"structure", + "members":{ + "Rule":{"shape":"Rule"} + } + }, + "GetSampledRequestsMaxItems":{ + "type":"long", + "max":500, + "min":1 + }, + "GetSampledRequestsRequest":{ + "type":"structure", + "required":[ + "WebAclId", + "RuleId", + "TimeWindow", + "MaxItems" + ], + "members":{ + "WebAclId":{"shape":"ResourceId"}, + "RuleId":{"shape":"ResourceId"}, + "TimeWindow":{"shape":"TimeWindow"}, + "MaxItems":{"shape":"GetSampledRequestsMaxItems"} + } + }, + "GetSampledRequestsResponse":{ + "type":"structure", + "members":{ + "SampledRequests":{"shape":"SampledHTTPRequests"}, + "PopulationSize":{"shape":"PopulationSize"}, + "TimeWindow":{"shape":"TimeWindow"} + } + }, + "GetSizeConstraintSetRequest":{ + "type":"structure", + "required":["SizeConstraintSetId"], + "members":{ + "SizeConstraintSetId":{"shape":"ResourceId"} + } + }, + "GetSizeConstraintSetResponse":{ + "type":"structure", + "members":{ + "SizeConstraintSet":{"shape":"SizeConstraintSet"} + } + }, + "GetSqlInjectionMatchSetRequest":{ + "type":"structure", + "required":["SqlInjectionMatchSetId"], + "members":{ + "SqlInjectionMatchSetId":{"shape":"ResourceId"} + } + }, + "GetSqlInjectionMatchSetResponse":{ + "type":"structure", + "members":{ + "SqlInjectionMatchSet":{"shape":"SqlInjectionMatchSet"} + } + }, + "GetWebACLForResourceRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{"shape":"ResourceArn"} + } + }, + "GetWebACLForResourceResponse":{ + "type":"structure", + "members":{ + "WebACLSummary":{"shape":"WebACLSummary"} + } + }, + "GetWebACLRequest":{ + "type":"structure", + "required":["WebACLId"], + "members":{ + "WebACLId":{"shape":"ResourceId"} + } + }, + "GetWebACLResponse":{ + "type":"structure", + "members":{ + "WebACL":{"shape":"WebACL"} + } + }, + "GetXssMatchSetRequest":{ + "type":"structure", + "required":["XssMatchSetId"], + "members":{ + "XssMatchSetId":{"shape":"ResourceId"} + } + }, + "GetXssMatchSetResponse":{ + "type":"structure", + "members":{ + "XssMatchSet":{"shape":"XssMatchSet"} + } + }, + "HTTPHeader":{ + "type":"structure", + "members":{ + "Name":{"shape":"HeaderName"}, + "Value":{"shape":"HeaderValue"} + } + }, + "HTTPHeaders":{ + "type":"list", + "member":{"shape":"HTTPHeader"} + }, + "HTTPMethod":{"type":"string"}, + "HTTPRequest":{ + "type":"structure", + "members":{ + "ClientIP":{"shape":"IPString"}, + "Country":{"shape":"Country"}, + "URI":{"shape":"URIString"}, + "Method":{"shape":"HTTPMethod"}, + "HTTPVersion":{"shape":"HTTPVersion"}, + "Headers":{"shape":"HTTPHeaders"} + } + }, + "HTTPVersion":{"type":"string"}, + "HeaderName":{"type":"string"}, + "HeaderValue":{"type":"string"}, + "IPSet":{ + "type":"structure", + "required":[ + "IPSetId", + "IPSetDescriptors" + ], + "members":{ + "IPSetId":{"shape":"ResourceId"}, + "Name":{"shape":"ResourceName"}, + "IPSetDescriptors":{"shape":"IPSetDescriptors"} + } + }, + "IPSetDescriptor":{ + "type":"structure", + "required":[ + "Type", + "Value" + ], + "members":{ + "Type":{"shape":"IPSetDescriptorType"}, + "Value":{"shape":"IPSetDescriptorValue"} + } + }, + "IPSetDescriptorType":{ + "type":"string", + "enum":[ + "IPV4", + "IPV6" + ] + }, + "IPSetDescriptorValue":{"type":"string"}, + "IPSetDescriptors":{ + "type":"list", + "member":{"shape":"IPSetDescriptor"} + }, + "IPSetSummaries":{ + "type":"list", + "member":{"shape":"IPSetSummary"} + }, + "IPSetSummary":{ + "type":"structure", + "required":[ + "IPSetId", + "Name" + ], + "members":{ + "IPSetId":{"shape":"ResourceId"}, + "Name":{"shape":"ResourceName"} + } + }, + "IPSetUpdate":{ + "type":"structure", + "required":[ + "Action", + "IPSetDescriptor" + ], + "members":{ + "Action":{"shape":"ChangeAction"}, + "IPSetDescriptor":{"shape":"IPSetDescriptor"} + } + }, + "IPSetUpdates":{ + "type":"list", + "member":{"shape":"IPSetUpdate"} + }, + "IPString":{"type":"string"}, + "ListByteMatchSetsRequest":{ + "type":"structure", + "members":{ + "NextMarker":{"shape":"NextMarker"}, + "Limit":{"shape":"PaginationLimit"} + } + }, + "ListByteMatchSetsResponse":{ + "type":"structure", + "members":{ + "NextMarker":{"shape":"NextMarker"}, + "ByteMatchSets":{"shape":"ByteMatchSetSummaries"} + } + }, + "ListIPSetsRequest":{ + "type":"structure", + "members":{ + "NextMarker":{"shape":"NextMarker"}, + "Limit":{"shape":"PaginationLimit"} + } + }, + "ListIPSetsResponse":{ + "type":"structure", + "members":{ + "NextMarker":{"shape":"NextMarker"}, + "IPSets":{"shape":"IPSetSummaries"} + } + }, + "ListResourcesForWebACLRequest":{ + "type":"structure", + "required":["WebACLId"], + "members":{ + "WebACLId":{"shape":"ResourceId"} + } + }, + "ListResourcesForWebACLResponse":{ + "type":"structure", + "members":{ + "ResourceArns":{"shape":"ResourceArns"} + } + }, + "ListRulesRequest":{ + "type":"structure", + "members":{ + "NextMarker":{"shape":"NextMarker"}, + "Limit":{"shape":"PaginationLimit"} + } + }, + "ListRulesResponse":{ + "type":"structure", + "members":{ + "NextMarker":{"shape":"NextMarker"}, + "Rules":{"shape":"RuleSummaries"} + } + }, + "ListSizeConstraintSetsRequest":{ + "type":"structure", + "members":{ + "NextMarker":{"shape":"NextMarker"}, + "Limit":{"shape":"PaginationLimit"} + } + }, + "ListSizeConstraintSetsResponse":{ + "type":"structure", + "members":{ + "NextMarker":{"shape":"NextMarker"}, + "SizeConstraintSets":{"shape":"SizeConstraintSetSummaries"} + } + }, + "ListSqlInjectionMatchSetsRequest":{ + "type":"structure", + "members":{ + "NextMarker":{"shape":"NextMarker"}, + "Limit":{"shape":"PaginationLimit"} + } + }, + "ListSqlInjectionMatchSetsResponse":{ + "type":"structure", + "members":{ + "NextMarker":{"shape":"NextMarker"}, + "SqlInjectionMatchSets":{"shape":"SqlInjectionMatchSetSummaries"} + } + }, + "ListWebACLsRequest":{ + "type":"structure", + "members":{ + "NextMarker":{"shape":"NextMarker"}, + "Limit":{"shape":"PaginationLimit"} + } + }, + "ListWebACLsResponse":{ + "type":"structure", + "members":{ + "NextMarker":{"shape":"NextMarker"}, + "WebACLs":{"shape":"WebACLSummaries"} + } + }, + "ListXssMatchSetsRequest":{ + "type":"structure", + "members":{ + "NextMarker":{"shape":"NextMarker"}, + "Limit":{"shape":"PaginationLimit"} + } + }, + "ListXssMatchSetsResponse":{ + "type":"structure", + "members":{ + "NextMarker":{"shape":"NextMarker"}, + "XssMatchSets":{"shape":"XssMatchSetSummaries"} + } + }, + "MatchFieldData":{"type":"string"}, + "MatchFieldType":{ + "type":"string", + "enum":[ + "URI", + "QUERY_STRING", + "HEADER", + "METHOD", + "BODY" + ] + }, + "MetricName":{"type":"string"}, + "Negated":{"type":"boolean"}, + "NextMarker":{ + "type":"string", + "min":1 + }, + "PaginationLimit":{ + "type":"integer", + "max":100, + "min":0 + }, + "ParameterExceptionField":{ + "type":"string", + "enum":[ + "CHANGE_ACTION", + "WAF_ACTION", + "PREDICATE_TYPE", + "IPSET_TYPE", + "BYTE_MATCH_FIELD_TYPE", + "SQL_INJECTION_MATCH_FIELD_TYPE", + "BYTE_MATCH_TEXT_TRANSFORMATION", + "BYTE_MATCH_POSITIONAL_CONSTRAINT", + "SIZE_CONSTRAINT_COMPARISON_OPERATOR" + ] + }, + "ParameterExceptionParameter":{ + "type":"string", + "min":1 + }, + "ParameterExceptionReason":{ + "type":"string", + "enum":[ + "INVALID_OPTION", + "ILLEGAL_COMBINATION" + ] + }, + "PopulationSize":{"type":"long"}, + "PositionalConstraint":{ + "type":"string", + "enum":[ + "EXACTLY", + "STARTS_WITH", + "ENDS_WITH", + "CONTAINS", + "CONTAINS_WORD" + ] + }, + "Predicate":{ + "type":"structure", + "required":[ + "Negated", + "Type", + "DataId" + ], + "members":{ + "Negated":{"shape":"Negated"}, + "Type":{"shape":"PredicateType"}, + "DataId":{"shape":"ResourceId"} + } + }, + "PredicateType":{ + "type":"string", + "enum":[ + "IPMatch", + "ByteMatch", + "SqlInjectionMatch", + "SizeConstraint", + "XssMatch" + ] + }, + "Predicates":{ + "type":"list", + "member":{"shape":"Predicate"} + }, + "ResourceArn":{ + "type":"string", + "max":1224, + "min":1 + }, + "ResourceArns":{ + "type":"list", + "member":{"shape":"ResourceArn"} + }, + "ResourceId":{ + "type":"string", + "max":128, + "min":1 + }, + "ResourceName":{ + "type":"string", + "max":128, + "min":1 + }, + "Rule":{ + "type":"structure", + "required":[ + "RuleId", + "Predicates" + ], + "members":{ + "RuleId":{"shape":"ResourceId"}, + "Name":{"shape":"ResourceName"}, + "MetricName":{"shape":"MetricName"}, + "Predicates":{"shape":"Predicates"} + } + }, + "RulePriority":{"type":"integer"}, + "RuleSummaries":{ + "type":"list", + "member":{"shape":"RuleSummary"} + }, + "RuleSummary":{ + "type":"structure", + "required":[ + "RuleId", + "Name" + ], + "members":{ + "RuleId":{"shape":"ResourceId"}, + "Name":{"shape":"ResourceName"} + } + }, + "RuleUpdate":{ + "type":"structure", + "required":[ + "Action", + "Predicate" + ], + "members":{ + "Action":{"shape":"ChangeAction"}, + "Predicate":{"shape":"Predicate"} + } + }, + "RuleUpdates":{ + "type":"list", + "member":{"shape":"RuleUpdate"} + }, + "SampleWeight":{ + "type":"long", + "min":0 + }, + "SampledHTTPRequest":{ + "type":"structure", + "required":[ + "Request", + "Weight" + ], + "members":{ + "Request":{"shape":"HTTPRequest"}, + "Weight":{"shape":"SampleWeight"}, + "Timestamp":{"shape":"Timestamp"}, + "Action":{"shape":"Action"} + } + }, + "SampledHTTPRequests":{ + "type":"list", + "member":{"shape":"SampledHTTPRequest"} + }, + "Size":{ + "type":"long", + "max":21474836480, + "min":0 + }, + "SizeConstraint":{ + "type":"structure", + "required":[ + "FieldToMatch", + "TextTransformation", + "ComparisonOperator", + "Size" + ], + "members":{ + "FieldToMatch":{"shape":"FieldToMatch"}, + "TextTransformation":{"shape":"TextTransformation"}, + "ComparisonOperator":{"shape":"ComparisonOperator"}, + "Size":{"shape":"Size"} + } + }, + "SizeConstraintSet":{ + "type":"structure", + "required":[ + "SizeConstraintSetId", + "SizeConstraints" + ], + "members":{ + "SizeConstraintSetId":{"shape":"ResourceId"}, + "Name":{"shape":"ResourceName"}, + "SizeConstraints":{"shape":"SizeConstraints"} + } + }, + "SizeConstraintSetSummaries":{ + "type":"list", + "member":{"shape":"SizeConstraintSetSummary"} + }, + "SizeConstraintSetSummary":{ + "type":"structure", + "required":[ + "SizeConstraintSetId", + "Name" + ], + "members":{ + "SizeConstraintSetId":{"shape":"ResourceId"}, + "Name":{"shape":"ResourceName"} + } + }, + "SizeConstraintSetUpdate":{ + "type":"structure", + "required":[ + "Action", + "SizeConstraint" + ], + "members":{ + "Action":{"shape":"ChangeAction"}, + "SizeConstraint":{"shape":"SizeConstraint"} + } + }, + "SizeConstraintSetUpdates":{ + "type":"list", + "member":{"shape":"SizeConstraintSetUpdate"} + }, + "SizeConstraints":{ + "type":"list", + "member":{"shape":"SizeConstraint"} + }, + "SqlInjectionMatchSet":{ + "type":"structure", + "required":[ + "SqlInjectionMatchSetId", + "SqlInjectionMatchTuples" + ], + "members":{ + "SqlInjectionMatchSetId":{"shape":"ResourceId"}, + "Name":{"shape":"ResourceName"}, + "SqlInjectionMatchTuples":{"shape":"SqlInjectionMatchTuples"} + } + }, + "SqlInjectionMatchSetSummaries":{ + "type":"list", + "member":{"shape":"SqlInjectionMatchSetSummary"} + }, + "SqlInjectionMatchSetSummary":{ + "type":"structure", + "required":[ + "SqlInjectionMatchSetId", + "Name" + ], + "members":{ + "SqlInjectionMatchSetId":{"shape":"ResourceId"}, + "Name":{"shape":"ResourceName"} + } + }, + "SqlInjectionMatchSetUpdate":{ + "type":"structure", + "required":[ + "Action", + "SqlInjectionMatchTuple" + ], + "members":{ + "Action":{"shape":"ChangeAction"}, + "SqlInjectionMatchTuple":{"shape":"SqlInjectionMatchTuple"} + } + }, + "SqlInjectionMatchSetUpdates":{ + "type":"list", + "member":{"shape":"SqlInjectionMatchSetUpdate"} + }, + "SqlInjectionMatchTuple":{ + "type":"structure", + "required":[ + "FieldToMatch", + "TextTransformation" + ], + "members":{ + "FieldToMatch":{"shape":"FieldToMatch"}, + "TextTransformation":{"shape":"TextTransformation"} + } + }, + "SqlInjectionMatchTuples":{ + "type":"list", + "member":{"shape":"SqlInjectionMatchTuple"} + }, + "TextTransformation":{ + "type":"string", + "enum":[ + "NONE", + "COMPRESS_WHITE_SPACE", + "HTML_ENTITY_DECODE", + "LOWERCASE", + "CMD_LINE", + "URL_DECODE" + ] + }, + "TimeWindow":{ + "type":"structure", + "required":[ + "StartTime", + "EndTime" + ], + "members":{ + "StartTime":{"shape":"Timestamp"}, + "EndTime":{"shape":"Timestamp"} + } + }, + "Timestamp":{"type":"timestamp"}, + "URIString":{"type":"string"}, + "UpdateByteMatchSetRequest":{ + "type":"structure", + "required":[ + "ByteMatchSetId", + "ChangeToken", + "Updates" + ], + "members":{ + "ByteMatchSetId":{"shape":"ResourceId"}, + "ChangeToken":{"shape":"ChangeToken"}, + "Updates":{"shape":"ByteMatchSetUpdates"} + } + }, + "UpdateByteMatchSetResponse":{ + "type":"structure", + "members":{ + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "UpdateIPSetRequest":{ + "type":"structure", + "required":[ + "IPSetId", + "ChangeToken", + "Updates" + ], + "members":{ + "IPSetId":{"shape":"ResourceId"}, + "ChangeToken":{"shape":"ChangeToken"}, + "Updates":{"shape":"IPSetUpdates"} + } + }, + "UpdateIPSetResponse":{ + "type":"structure", + "members":{ + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "UpdateRuleRequest":{ + "type":"structure", + "required":[ + "RuleId", + "ChangeToken", + "Updates" + ], + "members":{ + "RuleId":{"shape":"ResourceId"}, + "ChangeToken":{"shape":"ChangeToken"}, + "Updates":{"shape":"RuleUpdates"} + } + }, + "UpdateRuleResponse":{ + "type":"structure", + "members":{ + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "UpdateSizeConstraintSetRequest":{ + "type":"structure", + "required":[ + "SizeConstraintSetId", + "ChangeToken", + "Updates" + ], + "members":{ + "SizeConstraintSetId":{"shape":"ResourceId"}, + "ChangeToken":{"shape":"ChangeToken"}, + "Updates":{"shape":"SizeConstraintSetUpdates"} + } + }, + "UpdateSizeConstraintSetResponse":{ + "type":"structure", + "members":{ + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "UpdateSqlInjectionMatchSetRequest":{ + "type":"structure", + "required":[ + "SqlInjectionMatchSetId", + "ChangeToken", + "Updates" + ], + "members":{ + "SqlInjectionMatchSetId":{"shape":"ResourceId"}, + "ChangeToken":{"shape":"ChangeToken"}, + "Updates":{"shape":"SqlInjectionMatchSetUpdates"} + } + }, + "UpdateSqlInjectionMatchSetResponse":{ + "type":"structure", + "members":{ + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "UpdateWebACLRequest":{ + "type":"structure", + "required":[ + "WebACLId", + "ChangeToken" + ], + "members":{ + "WebACLId":{"shape":"ResourceId"}, + "ChangeToken":{"shape":"ChangeToken"}, + "Updates":{"shape":"WebACLUpdates"}, + "DefaultAction":{"shape":"WafAction"} + } + }, + "UpdateWebACLResponse":{ + "type":"structure", + "members":{ + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "UpdateXssMatchSetRequest":{ + "type":"structure", + "required":[ + "XssMatchSetId", + "ChangeToken", + "Updates" + ], + "members":{ + "XssMatchSetId":{"shape":"ResourceId"}, + "ChangeToken":{"shape":"ChangeToken"}, + "Updates":{"shape":"XssMatchSetUpdates"} + } + }, + "UpdateXssMatchSetResponse":{ + "type":"structure", + "members":{ + "ChangeToken":{"shape":"ChangeToken"} + } + }, + "WAFDisallowedNameException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, + "WAFInternalErrorException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true, + "fault":true + }, + "WAFInvalidAccountException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "WAFInvalidOperationException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, + "WAFInvalidParameterException":{ + "type":"structure", + "members":{ + "field":{"shape":"ParameterExceptionField"}, + "parameter":{"shape":"ParameterExceptionParameter"}, + "reason":{"shape":"ParameterExceptionReason"} + }, + "exception":true + }, + "WAFLimitsExceededException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, + "WAFNonEmptyEntityException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, + "WAFNonexistentContainerException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, + "WAFNonexistentItemException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, + "WAFReferencedItemException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, + "WAFStaleDataException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, + "WAFUnavailableEntityException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, + "WafAction":{ + "type":"structure", + "required":["Type"], + "members":{ + "Type":{"shape":"WafActionType"} + } + }, + "WafActionType":{ + "type":"string", + "enum":[ + "BLOCK", + "ALLOW", + "COUNT" + ] + }, + "WebACL":{ + "type":"structure", + "required":[ + "WebACLId", + "DefaultAction", + "Rules" + ], + "members":{ + "WebACLId":{"shape":"ResourceId"}, + "Name":{"shape":"ResourceName"}, + "MetricName":{"shape":"MetricName"}, + "DefaultAction":{"shape":"WafAction"}, + "Rules":{"shape":"ActivatedRules"} + } + }, + "WebACLSummaries":{ + "type":"list", + "member":{"shape":"WebACLSummary"} + }, + "WebACLSummary":{ + "type":"structure", + "required":[ + "WebACLId", + "Name" + ], + "members":{ + "WebACLId":{"shape":"ResourceId"}, + "Name":{"shape":"ResourceName"} + } + }, + "WebACLUpdate":{ + "type":"structure", + "required":[ + "Action", + "ActivatedRule" + ], + "members":{ + "Action":{"shape":"ChangeAction"}, + "ActivatedRule":{"shape":"ActivatedRule"} + } + }, + "WebACLUpdates":{ + "type":"list", + "member":{"shape":"WebACLUpdate"} + }, + "XssMatchSet":{ + "type":"structure", + "required":[ + "XssMatchSetId", + "XssMatchTuples" + ], + "members":{ + "XssMatchSetId":{"shape":"ResourceId"}, + "Name":{"shape":"ResourceName"}, + "XssMatchTuples":{"shape":"XssMatchTuples"} + } + }, + "XssMatchSetSummaries":{ + "type":"list", + "member":{"shape":"XssMatchSetSummary"} + }, + "XssMatchSetSummary":{ + "type":"structure", + "required":[ + "XssMatchSetId", + "Name" + ], + "members":{ + "XssMatchSetId":{"shape":"ResourceId"}, + "Name":{"shape":"ResourceName"} + } + }, + "XssMatchSetUpdate":{ + "type":"structure", + "required":[ + "Action", + "XssMatchTuple" + ], + "members":{ + "Action":{"shape":"ChangeAction"}, + "XssMatchTuple":{"shape":"XssMatchTuple"} + } + }, + "XssMatchSetUpdates":{ + "type":"list", + "member":{"shape":"XssMatchSetUpdate"} + }, + "XssMatchTuple":{ + "type":"structure", + "required":[ + "FieldToMatch", + "TextTransformation" + ], + "members":{ + "FieldToMatch":{"shape":"FieldToMatch"}, + "TextTransformation":{"shape":"TextTransformation"} + } + }, + "XssMatchTuples":{ + "type":"list", + "member":{"shape":"XssMatchTuple"} + }, + "errorMessage":{"type":"string"} + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/waf-regional/2016-11-28/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/waf-regional/2016-11-28/docs-2.json new file mode 100644 index 000000000..fe76b87f1 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/waf-regional/2016-11-28/docs-2.json @@ -0,0 +1,1276 @@ +{ + "version": "2.0", + "service": "

This is the AWS WAF Regional API Reference for using AWS WAF with Elastic Load Balancing (ELB) Application Load Balancers. The AWS WAF actions and data types listed in the reference are available for protecting Application Load Balancers. You can use these actions and data types by means of the endpoints listed in AWS Regions and Endpoints. This guide is for developers who need detailed information about the AWS WAF API actions, data types, and errors. For detailed information about AWS WAF features and an overview of how to use the AWS WAF API, see the AWS WAF Developer Guide.

", + "operations": { + "AssociateWebACL": "

Associates a web ACL with a resource.

", + "CreateByteMatchSet": "

Creates a ByteMatchSet. You then use UpdateByteMatchSet to identify the part of a web request that you want AWS WAF to inspect, such as the values of the User-Agent header or the query string. For example, you can create a ByteMatchSet that matches any requests with User-Agent headers that contain the string BadBot. You can then configure AWS WAF to reject those requests.

To create and configure a ByteMatchSet, perform the following steps:

  1. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateByteMatchSet request.

  2. Submit a CreateByteMatchSet request.

  3. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateByteMatchSet request.

  4. Submit an UpdateByteMatchSet request to specify the part of the request that you want AWS WAF to inspect (for example, the header or the URI) and the value that you want AWS WAF to watch for.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

", + "CreateIPSet": "

Creates an IPSet, which you use to specify which web requests you want to allow or block based on the IP addresses that the requests originate from. For example, if you're receiving a lot of requests from one or more individual IP addresses or one or more ranges of IP addresses and you want to block the requests, you can create an IPSet that contains those IP addresses and then configure AWS WAF to block the requests.

To create and configure an IPSet, perform the following steps:

  1. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateIPSet request.

  2. Submit a CreateIPSet request.

  3. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateIPSet request.

  4. Submit an UpdateIPSet request to specify the IP addresses that you want AWS WAF to watch for.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

", + "CreateRule": "

Creates a Rule, which contains the IPSet objects, ByteMatchSet objects, and other predicates that identify the requests that you want to block. If you add more than one predicate to a Rule, a request must match all of the specifications to be allowed or blocked. For example, suppose you add the following to a Rule:

  • An IPSet that matches the IP address 192.0.2.44/32

  • A ByteMatchSet that matches BadBot in the User-Agent header

You then add the Rule to a WebACL and specify that you want to blocks requests that satisfy the Rule. For a request to be blocked, it must come from the IP address 192.0.2.44 and the User-Agent header in the request must contain the value BadBot.

To create and configure a Rule, perform the following steps:

  1. Create and update the predicates that you want to include in the Rule. For more information, see CreateByteMatchSet, CreateIPSet, and CreateSqlInjectionMatchSet.

  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateRule request.

  3. Submit a CreateRule request.

  4. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateRule request.

  5. Submit an UpdateRule request to specify the predicates that you want to include in the Rule.

  6. Create and update a WebACL that contains the Rule. For more information, see CreateWebACL.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

", + "CreateSizeConstraintSet": "

Creates a SizeConstraintSet. You then use UpdateSizeConstraintSet to identify the part of a web request that you want AWS WAF to check for length, such as the length of the User-Agent header or the length of the query string. For example, you can create a SizeConstraintSet that matches any requests that have a query string that is longer than 100 bytes. You can then configure AWS WAF to reject those requests.

To create and configure a SizeConstraintSet, perform the following steps:

  1. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateSizeConstraintSet request.

  2. Submit a CreateSizeConstraintSet request.

  3. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateSizeConstraintSet request.

  4. Submit an UpdateSizeConstraintSet request to specify the part of the request that you want AWS WAF to inspect (for example, the header or the URI) and the value that you want AWS WAF to watch for.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

", + "CreateSqlInjectionMatchSet": "

Creates a SqlInjectionMatchSet, which you use to allow, block, or count requests that contain snippets of SQL code in a specified part of web requests. AWS WAF searches for character sequences that are likely to be malicious strings.

To create and configure a SqlInjectionMatchSet, perform the following steps:

  1. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateSqlInjectionMatchSet request.

  2. Submit a CreateSqlInjectionMatchSet request.

  3. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateSqlInjectionMatchSet request.

  4. Submit an UpdateSqlInjectionMatchSet request to specify the parts of web requests in which you want to allow, block, or count malicious SQL code.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

", + "CreateWebACL": "

Creates a WebACL, which contains the Rules that identify the CloudFront web requests that you want to allow, block, or count. AWS WAF evaluates Rules in order based on the value of Priority for each Rule.

You also specify a default action, either ALLOW or BLOCK. If a web request doesn't match any of the Rules in a WebACL, AWS WAF responds to the request with the default action.

To create and configure a WebACL, perform the following steps:

  1. Create and update the ByteMatchSet objects and other predicates that you want to include in Rules. For more information, see CreateByteMatchSet, UpdateByteMatchSet, CreateIPSet, UpdateIPSet, CreateSqlInjectionMatchSet, and UpdateSqlInjectionMatchSet.

  2. Create and update the Rules that you want to include in the WebACL. For more information, see CreateRule and UpdateRule.

  3. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateWebACL request.

  4. Submit a CreateWebACL request.

  5. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateWebACL request.

  6. Submit an UpdateWebACL request to specify the Rules that you want to include in the WebACL, to specify the default action, and to associate the WebACL with a CloudFront distribution.

For more information about how to use the AWS WAF API, see the AWS WAF Developer Guide.

", + "CreateXssMatchSet": "

Creates an XssMatchSet, which you use to allow, block, or count requests that contain cross-site scripting attacks in the specified part of web requests. AWS WAF searches for character sequences that are likely to be malicious strings.

To create and configure an XssMatchSet, perform the following steps:

  1. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateXssMatchSet request.

  2. Submit a CreateXssMatchSet request.

  3. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateXssMatchSet request.

  4. Submit an UpdateXssMatchSet request to specify the parts of web requests in which you want to allow, block, or count cross-site scripting attacks.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

", + "DeleteByteMatchSet": "

Permanently deletes a ByteMatchSet. You can't delete a ByteMatchSet if it's still used in any Rules or if it still includes any ByteMatchTuple objects (any filters).

If you just want to remove a ByteMatchSet from a Rule, use UpdateRule.

To permanently delete a ByteMatchSet, perform the following steps:

  1. Update the ByteMatchSet to remove filters, if any. For more information, see UpdateByteMatchSet.

  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a DeleteByteMatchSet request.

  3. Submit a DeleteByteMatchSet request.

", + "DeleteIPSet": "

Permanently deletes an IPSet. You can't delete an IPSet if it's still used in any Rules or if it still includes any IP addresses.

If you just want to remove an IPSet from a Rule, use UpdateRule.

To permanently delete an IPSet from AWS WAF, perform the following steps:

  1. Update the IPSet to remove IP address ranges, if any. For more information, see UpdateIPSet.

  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a DeleteIPSet request.

  3. Submit a DeleteIPSet request.

", + "DeleteRule": "

Permanently deletes a Rule. You can't delete a Rule if it's still used in any WebACL objects or if it still includes any predicates, such as ByteMatchSet objects.

If you just want to remove a Rule from a WebACL, use UpdateWebACL.

To permanently delete a Rule from AWS WAF, perform the following steps:

  1. Update the Rule to remove predicates, if any. For more information, see UpdateRule.

  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a DeleteRule request.

  3. Submit a DeleteRule request.

", + "DeleteSizeConstraintSet": "

Permanently deletes a SizeConstraintSet. You can't delete a SizeConstraintSet if it's still used in any Rules or if it still includes any SizeConstraint objects (any filters).

If you just want to remove a SizeConstraintSet from a Rule, use UpdateRule.

To permanently delete a SizeConstraintSet, perform the following steps:

  1. Update the SizeConstraintSet to remove filters, if any. For more information, see UpdateSizeConstraintSet.

  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a DeleteSizeConstraintSet request.

  3. Submit a DeleteSizeConstraintSet request.

", + "DeleteSqlInjectionMatchSet": "

Permanently deletes a SqlInjectionMatchSet. You can't delete a SqlInjectionMatchSet if it's still used in any Rules or if it still contains any SqlInjectionMatchTuple objects.

If you just want to remove a SqlInjectionMatchSet from a Rule, use UpdateRule.

To permanently delete a SqlInjectionMatchSet from AWS WAF, perform the following steps:

  1. Update the SqlInjectionMatchSet to remove filters, if any. For more information, see UpdateSqlInjectionMatchSet.

  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a DeleteSqlInjectionMatchSet request.

  3. Submit a DeleteSqlInjectionMatchSet request.

", + "DeleteWebACL": "

Permanently deletes a WebACL. You can't delete a WebACL if it still contains any Rules.

To delete a WebACL, perform the following steps:

  1. Update the WebACL to remove Rules, if any. For more information, see UpdateWebACL.

  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a DeleteWebACL request.

  3. Submit a DeleteWebACL request.

", + "DeleteXssMatchSet": "

Permanently deletes an XssMatchSet. You can't delete an XssMatchSet if it's still used in any Rules or if it still contains any XssMatchTuple objects.

If you just want to remove an XssMatchSet from a Rule, use UpdateRule.

To permanently delete an XssMatchSet from AWS WAF, perform the following steps:

  1. Update the XssMatchSet to remove filters, if any. For more information, see UpdateXssMatchSet.

  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a DeleteXssMatchSet request.

  3. Submit a DeleteXssMatchSet request.

", + "DisassociateWebACL": "

Removes a web ACL from the specified resource.

", + "GetByteMatchSet": "

Returns the ByteMatchSet specified by ByteMatchSetId.

", + "GetChangeToken": "

When you want to create, update, or delete AWS WAF objects, get a change token and include the change token in the create, update, or delete request. Change tokens ensure that your application doesn't submit conflicting requests to AWS WAF.

Each create, update, or delete request must use a unique change token. If your application submits a GetChangeToken request and then submits a second GetChangeToken request before submitting a create, update, or delete request, the second GetChangeToken request returns the same value as the first GetChangeToken request.

When you use a change token in a create, update, or delete request, the status of the change token changes to PENDING, which indicates that AWS WAF is propagating the change to all AWS WAF servers. Use GetChangeTokenStatus to determine the status of your change token.

", + "GetChangeTokenStatus": "

Returns the status of a ChangeToken that you got by calling GetChangeToken. ChangeTokenStatus is one of the following values:

  • PROVISIONED: You requested the change token by calling GetChangeToken, but you haven't used it yet in a call to create, update, or delete an AWS WAF object.

  • PENDING: AWS WAF is propagating the create, update, or delete request to all AWS WAF servers.

  • IN_SYNC: Propagation is complete.

", + "GetIPSet": "

Returns the IPSet that is specified by IPSetId.

", + "GetRule": "

Returns the Rule that is specified by the RuleId that you included in the GetRule request.

", + "GetSampledRequests": "

Gets detailed information about a specified number of requests--a sample--that AWS WAF randomly selects from among the first 5,000 requests that your AWS resource received during a time range that you choose. You can specify a sample size of up to 500 requests, and you can specify any time range in the previous three hours.

GetSampledRequests returns a time range, which is usually the time range that you specified. However, if your resource (such as a CloudFront distribution) received 5,000 requests before the specified time range elapsed, GetSampledRequests returns an updated time range. This new time range indicates the actual period during which AWS WAF selected the requests in the sample.

", + "GetSizeConstraintSet": "

Returns the SizeConstraintSet specified by SizeConstraintSetId.

", + "GetSqlInjectionMatchSet": "

Returns the SqlInjectionMatchSet that is specified by SqlInjectionMatchSetId.

", + "GetWebACL": "

Returns the WebACL that is specified by WebACLId.

", + "GetWebACLForResource": "

Returns the web ACL for the specified resource.

", + "GetXssMatchSet": "

Returns the XssMatchSet that is specified by XssMatchSetId.

", + "ListByteMatchSets": "

Returns an array of ByteMatchSetSummary objects.

", + "ListIPSets": "

Returns an array of IPSetSummary objects in the response.

", + "ListResourcesForWebACL": "

Returns an array of resources associated with the specified web ACL.

", + "ListRules": "

Returns an array of RuleSummary objects.

", + "ListSizeConstraintSets": "

Returns an array of SizeConstraintSetSummary objects.

", + "ListSqlInjectionMatchSets": "

Returns an array of SqlInjectionMatchSet objects.

", + "ListWebACLs": "

Returns an array of WebACLSummary objects in the response.

", + "ListXssMatchSets": "

Returns an array of XssMatchSet objects.

", + "UpdateByteMatchSet": "

Inserts or deletes ByteMatchTuple objects (filters) in a ByteMatchSet. For each ByteMatchTuple object, you specify the following values:

  • Whether to insert or delete the object from the array. If you want to change a ByteMatchSetUpdate object, you delete the existing object and add a new one.

  • The part of a web request that you want AWS WAF to inspect, such as a query string or the value of the User-Agent header.

  • The bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to look for. For more information, including how you specify the values for the AWS WAF API and the AWS CLI or SDKs, see TargetString in the ByteMatchTuple data type.

  • Where to look, such as at the beginning or the end of a query string.

  • Whether to perform any conversions on the request, such as converting it to lowercase, before inspecting it for the specified string.

For example, you can add a ByteMatchSetUpdate object that matches web requests in which User-Agent headers contain the string BadBot. You can then configure AWS WAF to block those requests.

To create and configure a ByteMatchSet, perform the following steps:

  1. Create a ByteMatchSet. For more information, see CreateByteMatchSet.

  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateByteMatchSet request.

  3. Submit an UpdateByteMatchSet request to specify the part of the request that you want AWS WAF to inspect (for example, the header or the URI) and the value that you want AWS WAF to watch for.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

", + "UpdateIPSet": "

Inserts or deletes IPSetDescriptor objects in an IPSet. For each IPSetDescriptor object, you specify the following values:

  • Whether to insert or delete the object from the array. If you want to change an IPSetDescriptor object, you delete the existing object and add a new one.

  • The IP address version, IPv4 or IPv6.

  • The IP address in CIDR notation, for example, 192.0.2.0/24 (for the range of IP addresses from 192.0.2.0 to 192.0.2.255) or 192.0.2.44/32 (for the individual IP address 192.0.2.44).

AWS WAF supports /8, /16, /24, and /32 IP address ranges for IPv4, and /24, /32, /48, /56, /64 and /128 for IPv6. For more information about CIDR notation, see the Wikipedia entry Classless Inter-Domain Routing.

IPv6 addresses can be represented using any of the following formats:

  • 1111:0000:0000:0000:0000:0000:0000:0111/128

  • 1111:0:0:0:0:0:0:0111/128

  • 1111::0111/128

  • 1111::111/128

You use an IPSet to specify which web requests you want to allow or block based on the IP addresses that the requests originated from. For example, if you're receiving a lot of requests from one or a small number of IP addresses and you want to block the requests, you can create an IPSet that specifies those IP addresses, and then configure AWS WAF to block the requests.

To create and configure an IPSet, perform the following steps:

  1. Submit a CreateIPSet request.

  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateIPSet request.

  3. Submit an UpdateIPSet request to specify the IP addresses that you want AWS WAF to watch for.

When you update an IPSet, you specify the IP addresses that you want to add and/or the IP addresses that you want to delete. If you want to change an IP address, you delete the existing IP address and add the new one.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

", + "UpdateRule": "

Inserts or deletes Predicate objects in a Rule. Each Predicate object identifies a predicate, such as a ByteMatchSet or an IPSet, that specifies the web requests that you want to allow, block, or count. If you add more than one predicate to a Rule, a request must match all of the specifications to be allowed, blocked, or counted. For example, suppose you add the following to a Rule:

  • A ByteMatchSet that matches the value BadBot in the User-Agent header

  • An IPSet that matches the IP address 192.0.2.44

You then add the Rule to a WebACL and specify that you want to block requests that satisfy the Rule. For a request to be blocked, the User-Agent header in the request must contain the value BadBot and the request must originate from the IP address 192.0.2.44.

To create and configure a Rule, perform the following steps:

  1. Create and update the predicates that you want to include in the Rule.

  2. Create the Rule. See CreateRule.

  3. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateRule request.

  4. Submit an UpdateRule request to add predicates to the Rule.

  5. Create and update a WebACL that contains the Rule. See CreateWebACL.

If you want to replace one ByteMatchSet or IPSet with another, you delete the existing one and add the new one.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

", + "UpdateSizeConstraintSet": "

Inserts or deletes SizeConstraint objects (filters) in a SizeConstraintSet. For each SizeConstraint object, you specify the following values:

  • Whether to insert or delete the object from the array. If you want to change a SizeConstraintSetUpdate object, you delete the existing object and add a new one.

  • The part of a web request that you want AWS WAF to evaluate, such as the length of a query string or the length of the User-Agent header.

  • Whether to perform any transformations on the request, such as converting it to lowercase, before checking its length. Note that transformations of the request body are not supported because the AWS resource forwards only the first 8192 bytes of your request to AWS WAF.

  • A ComparisonOperator used for evaluating the selected part of the request against the specified Size, such as equals, greater than, less than, and so on.

  • The length, in bytes, that you want AWS WAF to watch for in selected part of the request. The length is computed after applying the transformation.

For example, you can add a SizeConstraintSetUpdate object that matches web requests in which the length of the User-Agent header is greater than 100 bytes. You can then configure AWS WAF to block those requests.

To create and configure a SizeConstraintSet, perform the following steps:

  1. Create a SizeConstraintSet. For more information, see CreateSizeConstraintSet.

  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateSizeConstraintSet request.

  3. Submit an UpdateSizeConstraintSet request to specify the part of the request that you want AWS WAF to inspect (for example, the header or the URI) and the value that you want AWS WAF to watch for.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

", + "UpdateSqlInjectionMatchSet": "

Inserts or deletes SqlInjectionMatchTuple objects (filters) in a SqlInjectionMatchSet. For each SqlInjectionMatchTuple object, you specify the following values:

  • Action: Whether to insert the object into or delete the object from the array. To change a SqlInjectionMatchTuple, you delete the existing object and add a new one.

  • FieldToMatch: The part of web requests that you want AWS WAF to inspect and, if you want AWS WAF to inspect a header, the name of the header.

  • TextTransformation: Which text transformation, if any, to perform on the web request before inspecting the request for snippets of malicious SQL code.

You use SqlInjectionMatchSet objects to specify which CloudFront requests you want to allow, block, or count. For example, if you're receiving requests that contain snippets of SQL code in the query string and you want to block the requests, you can create a SqlInjectionMatchSet with the applicable settings, and then configure AWS WAF to block the requests.

To create and configure a SqlInjectionMatchSet, perform the following steps:

  1. Submit a CreateSqlInjectionMatchSet request.

  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateIPSet request.

  3. Submit an UpdateSqlInjectionMatchSet request to specify the parts of web requests that you want AWS WAF to inspect for snippets of SQL code.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

", + "UpdateWebACL": "

Inserts or deletes ActivatedRule objects in a WebACL. Each Rule identifies web requests that you want to allow, block, or count. When you update a WebACL, you specify the following values:

  • A default action for the WebACL, either ALLOW or BLOCK. AWS WAF performs the default action if a request doesn't match the criteria in any of the Rules in a WebACL.

  • The Rules that you want to add and/or delete. If you want to replace one Rule with another, you delete the existing Rule and add the new one.

  • For each Rule, whether you want AWS WAF to allow requests, block requests, or count requests that match the conditions in the Rule.

  • The order in which you want AWS WAF to evaluate the Rules in a WebACL. If you add more than one Rule to a WebACL, AWS WAF evaluates each request against the Rules in order based on the value of Priority. (The Rule that has the lowest value for Priority is evaluated first.) When a web request matches all of the predicates (such as ByteMatchSets and IPSets) in a Rule, AWS WAF immediately takes the corresponding action, allow or block, and doesn't evaluate the request against the remaining Rules in the WebACL, if any.

To create and configure a WebACL, perform the following steps:

  1. Create and update the predicates that you want to include in Rules. For more information, see CreateByteMatchSet, UpdateByteMatchSet, CreateIPSet, UpdateIPSet, CreateSqlInjectionMatchSet, and UpdateSqlInjectionMatchSet.

  2. Create and update the Rules that you want to include in the WebACL. For more information, see CreateRule and UpdateRule.

  3. Create a WebACL. See CreateWebACL.

  4. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateWebACL request.

  5. Submit an UpdateWebACL request to specify the Rules that you want to include in the WebACL, to specify the default action, and to associate the WebACL with a CloudFront distribution.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

", + "UpdateXssMatchSet": "

Inserts or deletes XssMatchTuple objects (filters) in an XssMatchSet. For each XssMatchTuple object, you specify the following values:

  • Action: Whether to insert the object into or delete the object from the array. To change a XssMatchTuple, you delete the existing object and add a new one.

  • FieldToMatch: The part of web requests that you want AWS WAF to inspect and, if you want AWS WAF to inspect a header, the name of the header.

  • TextTransformation: Which text transformation, if any, to perform on the web request before inspecting the request for cross-site scripting attacks.

You use XssMatchSet objects to specify which CloudFront requests you want to allow, block, or count. For example, if you're receiving requests that contain cross-site scripting attacks in the request body and you want to block the requests, you can create an XssMatchSet with the applicable settings, and then configure AWS WAF to block the requests.

To create and configure an XssMatchSet, perform the following steps:

  1. Submit a CreateXssMatchSet request.

  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateIPSet request.

  3. Submit an UpdateXssMatchSet request to specify the parts of web requests that you want AWS WAF to inspect for cross-site scripting attacks.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

" + }, + "shapes": { + "Action": { + "base": null, + "refs": { + "SampledHTTPRequest$Action": "

The action for the Rule that the request matched: ALLOW, BLOCK, or COUNT.

" + } + }, + "ActivatedRule": { + "base": "

The ActivatedRule object in an UpdateWebACL request specifies a Rule that you want to insert or delete, the priority of the Rule in the WebACL, and the action that you want AWS WAF to take when a web request matches the Rule (ALLOW, BLOCK, or COUNT).

To specify whether to insert or delete a Rule, use the Action parameter in the WebACLUpdate data type.

", + "refs": { + "ActivatedRules$member": null, + "WebACLUpdate$ActivatedRule": "

The ActivatedRule object in an UpdateWebACL request specifies a Rule that you want to insert or delete, the priority of the Rule in the WebACL, and the action that you want AWS WAF to take when a web request matches the Rule (ALLOW, BLOCK, or COUNT).

" + } + }, + "ActivatedRules": { + "base": null, + "refs": { + "WebACL$Rules": "

An array that contains the action for each Rule in a WebACL, the priority of the Rule, and the ID of the Rule.

" + } + }, + "AssociateWebACLRequest": { + "base": null, + "refs": { + } + }, + "AssociateWebACLResponse": { + "base": null, + "refs": { + } + }, + "ByteMatchSet": { + "base": "

In a GetByteMatchSet request, ByteMatchSet is a complex type that contains the ByteMatchSetId and Name of a ByteMatchSet, and the values that you specified when you updated the ByteMatchSet.

A complex type that contains ByteMatchTuple objects, which specify the parts of web requests that you want AWS WAF to inspect and the values that you want AWS WAF to search for. If a ByteMatchSet contains more than one ByteMatchTuple object, a request needs to match the settings in only one ByteMatchTuple to be considered a match.

", + "refs": { + "CreateByteMatchSetResponse$ByteMatchSet": "

A ByteMatchSet that contains no ByteMatchTuple objects.

", + "GetByteMatchSetResponse$ByteMatchSet": "

Information about the ByteMatchSet that you specified in the GetByteMatchSet request. For more information, see the following topics:

  • ByteMatchSet: Contains ByteMatchSetId, ByteMatchTuples, and Name

  • ByteMatchTuples: Contains an array of ByteMatchTuple objects. Each ByteMatchTuple object contains FieldToMatch, PositionalConstraint, TargetString, and TextTransformation

  • FieldToMatch: Contains Data and Type

" + } + }, + "ByteMatchSetSummaries": { + "base": null, + "refs": { + "ListByteMatchSetsResponse$ByteMatchSets": "

An array of ByteMatchSetSummary objects.

" + } + }, + "ByteMatchSetSummary": { + "base": "

Returned by ListByteMatchSets. Each ByteMatchSetSummary object includes the Name and ByteMatchSetId for one ByteMatchSet.

", + "refs": { + "ByteMatchSetSummaries$member": null + } + }, + "ByteMatchSetUpdate": { + "base": "

In an UpdateByteMatchSet request, ByteMatchSetUpdate specifies whether to insert or delete a ByteMatchTuple and includes the settings for the ByteMatchTuple.

", + "refs": { + "ByteMatchSetUpdates$member": null + } + }, + "ByteMatchSetUpdates": { + "base": null, + "refs": { + "UpdateByteMatchSetRequest$Updates": "

An array of ByteMatchSetUpdate objects that you want to insert into or delete from a ByteMatchSet. For more information, see the applicable data types:

" + } + }, + "ByteMatchTargetString": { + "base": null, + "refs": { + "ByteMatchTuple$TargetString": "

The value that you want AWS WAF to search for. AWS WAF searches for the specified string in the part of web requests that you specified in FieldToMatch. The maximum length of the value is 50 bytes.

Valid values depend on the values that you specified for FieldToMatch:

  • HEADER: The value that you want AWS WAF to search for in the request header that you specified in FieldToMatch, for example, the value of the User-Agent or Referer header.

  • METHOD: The HTTP method, which indicates the type of operation specified in the request. CloudFront supports the following methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT.

  • QUERY_STRING: The value that you want AWS WAF to search for in the query string, which is the part of a URL that appears after a ? character.

  • URI: The value that you want AWS WAF to search for in the part of a URL that identifies a resource, for example, /images/daily-ad.jpg.

  • BODY: The part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form. The request body immediately follows the request headers. Note that only the first 8192 bytes of the request body are forwarded to AWS WAF for inspection. To allow or block requests based on the length of the body, you can create a size constraint set. For more information, see CreateSizeConstraintSet.

If TargetString includes alphabetic characters A-Z and a-z, note that the value is case sensitive.

If you're using the AWS WAF API

Specify a base64-encoded version of the value. The maximum length of the value before you base64-encode it is 50 bytes.

For example, suppose the value of Type is HEADER and the value of Data is User-Agent. If you want to search the User-Agent header for the value BadBot, you base64-encode BadBot using MIME base64 encoding and include the resulting value, QmFkQm90, in the value of TargetString.

If you're using the AWS CLI or one of the AWS SDKs

The value that you want AWS WAF to search for. The SDK automatically base64 encodes the value.

" + } + }, + "ByteMatchTuple": { + "base": "

The bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings.

", + "refs": { + "ByteMatchSetUpdate$ByteMatchTuple": "

Information about the part of a web request that you want AWS WAF to inspect and the value that you want AWS WAF to search for. If you specify DELETE for the value of Action, the ByteMatchTuple values must exactly match the values in the ByteMatchTuple that you want to delete from the ByteMatchSet.

", + "ByteMatchTuples$member": null + } + }, + "ByteMatchTuples": { + "base": null, + "refs": { + "ByteMatchSet$ByteMatchTuples": "

Specifies the bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings.

" + } + }, + "ChangeAction": { + "base": null, + "refs": { + "ByteMatchSetUpdate$Action": "

Specifies whether to insert or delete a ByteMatchTuple.

", + "IPSetUpdate$Action": "

Specifies whether to insert or delete an IP address with UpdateIPSet.

", + "RuleUpdate$Action": "

Specify INSERT to add a Predicate to a Rule. Use DELETE to remove a Predicate from a Rule.

", + "SizeConstraintSetUpdate$Action": "

Specify INSERT to add a SizeConstraintSetUpdate to a SizeConstraintSet. Use DELETE to remove a SizeConstraintSetUpdate from a SizeConstraintSet.

", + "SqlInjectionMatchSetUpdate$Action": "

Specify INSERT to add a SqlInjectionMatchSetUpdate to a SqlInjectionMatchSet. Use DELETE to remove a SqlInjectionMatchSetUpdate from a SqlInjectionMatchSet.

", + "WebACLUpdate$Action": "

Specifies whether to insert a Rule into or delete a Rule from a WebACL.

", + "XssMatchSetUpdate$Action": "

Specify INSERT to add a XssMatchSetUpdate to an XssMatchSet. Use DELETE to remove a XssMatchSetUpdate from an XssMatchSet.

" + } + }, + "ChangeToken": { + "base": null, + "refs": { + "CreateByteMatchSetRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "CreateByteMatchSetResponse$ChangeToken": "

The ChangeToken that you used to submit the CreateByteMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

", + "CreateIPSetRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "CreateIPSetResponse$ChangeToken": "

The ChangeToken that you used to submit the CreateIPSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

", + "CreateRuleRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "CreateRuleResponse$ChangeToken": "

The ChangeToken that you used to submit the CreateRule request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

", + "CreateSizeConstraintSetRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "CreateSizeConstraintSetResponse$ChangeToken": "

The ChangeToken that you used to submit the CreateSizeConstraintSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

", + "CreateSqlInjectionMatchSetRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "CreateSqlInjectionMatchSetResponse$ChangeToken": "

The ChangeToken that you used to submit the CreateSqlInjectionMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

", + "CreateWebACLRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "CreateWebACLResponse$ChangeToken": "

The ChangeToken that you used to submit the CreateWebACL request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

", + "CreateXssMatchSetRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "CreateXssMatchSetResponse$ChangeToken": "

The ChangeToken that you used to submit the CreateXssMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

", + "DeleteByteMatchSetRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "DeleteByteMatchSetResponse$ChangeToken": "

The ChangeToken that you used to submit the DeleteByteMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

", + "DeleteIPSetRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "DeleteIPSetResponse$ChangeToken": "

The ChangeToken that you used to submit the DeleteIPSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

", + "DeleteRuleRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "DeleteRuleResponse$ChangeToken": "

The ChangeToken that you used to submit the DeleteRule request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

", + "DeleteSizeConstraintSetRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "DeleteSizeConstraintSetResponse$ChangeToken": "

The ChangeToken that you used to submit the DeleteSizeConstraintSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

", + "DeleteSqlInjectionMatchSetRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "DeleteSqlInjectionMatchSetResponse$ChangeToken": "

The ChangeToken that you used to submit the DeleteSqlInjectionMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

", + "DeleteWebACLRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "DeleteWebACLResponse$ChangeToken": "

The ChangeToken that you used to submit the DeleteWebACL request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

", + "DeleteXssMatchSetRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "DeleteXssMatchSetResponse$ChangeToken": "

The ChangeToken that you used to submit the DeleteXssMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

", + "GetChangeTokenResponse$ChangeToken": "

The ChangeToken that you used in the request. Use this value in a GetChangeTokenStatus request to get the current status of the request.

", + "GetChangeTokenStatusRequest$ChangeToken": "

The change token for which you want to get the status. This change token was previously returned in the GetChangeToken response.

", + "UpdateByteMatchSetRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "UpdateByteMatchSetResponse$ChangeToken": "

The ChangeToken that you used to submit the UpdateByteMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

", + "UpdateIPSetRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "UpdateIPSetResponse$ChangeToken": "

The ChangeToken that you used to submit the UpdateIPSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

", + "UpdateRuleRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "UpdateRuleResponse$ChangeToken": "

The ChangeToken that you used to submit the UpdateRule request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

", + "UpdateSizeConstraintSetRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "UpdateSizeConstraintSetResponse$ChangeToken": "

The ChangeToken that you used to submit the UpdateSizeConstraintSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

", + "UpdateSqlInjectionMatchSetRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "UpdateSqlInjectionMatchSetResponse$ChangeToken": "

The ChangeToken that you used to submit the UpdateSqlInjectionMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

", + "UpdateWebACLRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "UpdateWebACLResponse$ChangeToken": "

The ChangeToken that you used to submit the UpdateWebACL request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

", + "UpdateXssMatchSetRequest$ChangeToken": "

The value returned by the most recent call to GetChangeToken.

", + "UpdateXssMatchSetResponse$ChangeToken": "

The ChangeToken that you used to submit the UpdateXssMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

" + } + }, + "ChangeTokenStatus": { + "base": null, + "refs": { + "GetChangeTokenStatusResponse$ChangeTokenStatus": "

The status of the change token.

" + } + }, + "ComparisonOperator": { + "base": null, + "refs": { + "SizeConstraint$ComparisonOperator": "

The type of comparison you want AWS WAF to perform. AWS WAF uses this in combination with the provided Size and FieldToMatch to build an expression in the form of \"Size ComparisonOperator size in bytes of FieldToMatch\". If that expression is true, the SizeConstraint is considered to match.

EQ: Used to test if the Size is equal to the size of the FieldToMatch

NE: Used to test if the Size is not equal to the size of the FieldToMatch

LE: Used to test if the Size is less than or equal to the size of the FieldToMatch

LT: Used to test if the Size is strictly less than the size of the FieldToMatch

GE: Used to test if the Size is greater than or equal to the size of the FieldToMatch

GT: Used to test if the Size is strictly greater than the size of the FieldToMatch

" + } + }, + "Country": { + "base": null, + "refs": { + "HTTPRequest$Country": "

The two-letter country code for the country that the request originated from. For a current list of country codes, see the Wikipedia entry ISO 3166-1 alpha-2.

" + } + }, + "CreateByteMatchSetRequest": { + "base": null, + "refs": { + } + }, + "CreateByteMatchSetResponse": { + "base": null, + "refs": { + } + }, + "CreateIPSetRequest": { + "base": null, + "refs": { + } + }, + "CreateIPSetResponse": { + "base": null, + "refs": { + } + }, + "CreateRuleRequest": { + "base": null, + "refs": { + } + }, + "CreateRuleResponse": { + "base": null, + "refs": { + } + }, + "CreateSizeConstraintSetRequest": { + "base": null, + "refs": { + } + }, + "CreateSizeConstraintSetResponse": { + "base": null, + "refs": { + } + }, + "CreateSqlInjectionMatchSetRequest": { + "base": "

A request to create a SqlInjectionMatchSet.

", + "refs": { + } + }, + "CreateSqlInjectionMatchSetResponse": { + "base": "

The response to a CreateSqlInjectionMatchSet request.

", + "refs": { + } + }, + "CreateWebACLRequest": { + "base": null, + "refs": { + } + }, + "CreateWebACLResponse": { + "base": null, + "refs": { + } + }, + "CreateXssMatchSetRequest": { + "base": "

A request to create an XssMatchSet.

", + "refs": { + } + }, + "CreateXssMatchSetResponse": { + "base": "

The response to a CreateXssMatchSet request.

", + "refs": { + } + }, + "DeleteByteMatchSetRequest": { + "base": null, + "refs": { + } + }, + "DeleteByteMatchSetResponse": { + "base": null, + "refs": { + } + }, + "DeleteIPSetRequest": { + "base": null, + "refs": { + } + }, + "DeleteIPSetResponse": { + "base": null, + "refs": { + } + }, + "DeleteRuleRequest": { + "base": null, + "refs": { + } + }, + "DeleteRuleResponse": { + "base": null, + "refs": { + } + }, + "DeleteSizeConstraintSetRequest": { + "base": null, + "refs": { + } + }, + "DeleteSizeConstraintSetResponse": { + "base": null, + "refs": { + } + }, + "DeleteSqlInjectionMatchSetRequest": { + "base": "

A request to delete a SqlInjectionMatchSet from AWS WAF.

", + "refs": { + } + }, + "DeleteSqlInjectionMatchSetResponse": { + "base": "

The response to a request to delete a SqlInjectionMatchSet from AWS WAF.

", + "refs": { + } + }, + "DeleteWebACLRequest": { + "base": null, + "refs": { + } + }, + "DeleteWebACLResponse": { + "base": null, + "refs": { + } + }, + "DeleteXssMatchSetRequest": { + "base": "

A request to delete an XssMatchSet from AWS WAF.

", + "refs": { + } + }, + "DeleteXssMatchSetResponse": { + "base": "

The response to a request to delete an XssMatchSet from AWS WAF.

", + "refs": { + } + }, + "DisassociateWebACLRequest": { + "base": null, + "refs": { + } + }, + "DisassociateWebACLResponse": { + "base": null, + "refs": { + } + }, + "FieldToMatch": { + "base": "

Specifies where in a web request to look for TargetString.

", + "refs": { + "ByteMatchTuple$FieldToMatch": "

The part of a web request that you want AWS WAF to search, such as a specified header or a query string. For more information, see FieldToMatch.

", + "SizeConstraint$FieldToMatch": "

Specifies where in a web request to look for the size constraint.

", + "SqlInjectionMatchTuple$FieldToMatch": "

Specifies where in a web request to look for snippets of malicious SQL code.

", + "XssMatchTuple$FieldToMatch": "

Specifies where in a web request to look for cross-site scripting attacks.

" + } + }, + "GetByteMatchSetRequest": { + "base": null, + "refs": { + } + }, + "GetByteMatchSetResponse": { + "base": null, + "refs": { + } + }, + "GetChangeTokenRequest": { + "base": null, + "refs": { + } + }, + "GetChangeTokenResponse": { + "base": null, + "refs": { + } + }, + "GetChangeTokenStatusRequest": { + "base": null, + "refs": { + } + }, + "GetChangeTokenStatusResponse": { + "base": null, + "refs": { + } + }, + "GetIPSetRequest": { + "base": null, + "refs": { + } + }, + "GetIPSetResponse": { + "base": null, + "refs": { + } + }, + "GetRuleRequest": { + "base": null, + "refs": { + } + }, + "GetRuleResponse": { + "base": null, + "refs": { + } + }, + "GetSampledRequestsMaxItems": { + "base": null, + "refs": { + "GetSampledRequestsRequest$MaxItems": "

The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value of MaxItems, GetSampledRequests returns information about all of them.

" + } + }, + "GetSampledRequestsRequest": { + "base": null, + "refs": { + } + }, + "GetSampledRequestsResponse": { + "base": null, + "refs": { + } + }, + "GetSizeConstraintSetRequest": { + "base": null, + "refs": { + } + }, + "GetSizeConstraintSetResponse": { + "base": null, + "refs": { + } + }, + "GetSqlInjectionMatchSetRequest": { + "base": "

A request to get a SqlInjectionMatchSet.

", + "refs": { + } + }, + "GetSqlInjectionMatchSetResponse": { + "base": "

The response to a GetSqlInjectionMatchSet request.

", + "refs": { + } + }, + "GetWebACLForResourceRequest": { + "base": null, + "refs": { + } + }, + "GetWebACLForResourceResponse": { + "base": null, + "refs": { + } + }, + "GetWebACLRequest": { + "base": null, + "refs": { + } + }, + "GetWebACLResponse": { + "base": null, + "refs": { + } + }, + "GetXssMatchSetRequest": { + "base": "

A request to get an XssMatchSet.

", + "refs": { + } + }, + "GetXssMatchSetResponse": { + "base": "

The response to a GetXssMatchSet request.

", + "refs": { + } + }, + "HTTPHeader": { + "base": "

The response from a GetSampledRequests request includes an HTTPHeader complex type that appears as Headers in the response syntax. HTTPHeader contains the names and values of all of the headers that appear in one of the web requests that were returned by GetSampledRequests.

", + "refs": { + "HTTPHeaders$member": null + } + }, + "HTTPHeaders": { + "base": null, + "refs": { + "HTTPRequest$Headers": "

A complex type that contains two values for each header in the sampled web request: the name of the header and the value of the header.

" + } + }, + "HTTPMethod": { + "base": null, + "refs": { + "HTTPRequest$Method": "

The HTTP method specified in the sampled web request. CloudFront supports the following methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT.

" + } + }, + "HTTPRequest": { + "base": "

The response from a GetSampledRequests request includes an HTTPRequest complex type that appears as Request in the response syntax. HTTPRequest contains information about one of the web requests that were returned by GetSampledRequests.

", + "refs": { + "SampledHTTPRequest$Request": "

A complex type that contains detailed information about the request.

" + } + }, + "HTTPVersion": { + "base": null, + "refs": { + "HTTPRequest$HTTPVersion": "

The HTTP version specified in the sampled web request, for example, HTTP/1.1.

" + } + }, + "HeaderName": { + "base": null, + "refs": { + "HTTPHeader$Name": "

The name of one of the headers in the sampled web request.

" + } + }, + "HeaderValue": { + "base": null, + "refs": { + "HTTPHeader$Value": "

The value of one of the headers in the sampled web request.

" + } + }, + "IPSet": { + "base": "

Contains one or more IP addresses or blocks of IP addresses specified in Classless Inter-Domain Routing (CIDR) notation. AWS WAF supports /8, /16, /24, and /32 IP address ranges for IPv4, and /24, /32, /48, /56, /64 and /128 for IPv6.

To specify an individual IP address, you specify the four-part IP address followed by a /32, for example, 192.0.2.0/31. To block a range of IP addresses, you can specify a /128, /64, /56, /48, /32, /24, /16, or /8 CIDR. For more information about CIDR notation, see the Wikipedia entry Classless Inter-Domain Routing.

", + "refs": { + "CreateIPSetResponse$IPSet": "

The IPSet returned in the CreateIPSet response.

", + "GetIPSetResponse$IPSet": "

Information about the IPSet that you specified in the GetIPSet request. For more information, see the following topics:

  • IPSet: Contains IPSetDescriptors, IPSetId, and Name

  • IPSetDescriptors: Contains an array of IPSetDescriptor objects. Each IPSetDescriptor object contains Type and Value

" + } + }, + "IPSetDescriptor": { + "base": "

Specifies the IP address type (IPV4 or IPV6) and the IP address range (in CIDR format) that web requests originate from.

", + "refs": { + "IPSetDescriptors$member": null, + "IPSetUpdate$IPSetDescriptor": "

The IP address type (IPV4 or IPV6) and the IP address range (in CIDR notation) that web requests originate from.

" + } + }, + "IPSetDescriptorType": { + "base": null, + "refs": { + "IPSetDescriptor$Type": "

Specify IPV4 or IPV6.

" + } + }, + "IPSetDescriptorValue": { + "base": null, + "refs": { + "IPSetDescriptor$Value": "

Specify an IPv4 address by using CIDR notation. For example:

  • To configure AWS WAF to allow, block, or count requests that originated from the IP address 192.0.2.44, specify 192.0.2.44/32.

  • To configure AWS WAF to allow, block, or count requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify 192.0.2.0/24.

For more information about CIDR notation, see the Wikipedia entry Classless Inter-Domain Routing.

Specify an IPv6 address by using CIDR notation. For example:

  • To configure AWS WAF to allow, block, or count requests that originated from the IP address 1111:0000:0000:0000:0000:0000:0000:0111, specify 1111:0000:0000:0000:0000:0000:0000:0111/128.

  • To configure AWS WAF to allow, block, or count requests that originated from IP addresses 1111:0000:0000:0000:0000:0000:0000:0000 to 1111:0000:0000:0000:ffff:ffff:ffff:ffff, specify 1111:0000:0000:0000:0000:0000:0000:0000/64.

" + } + }, + "IPSetDescriptors": { + "base": null, + "refs": { + "IPSet$IPSetDescriptors": "

The IP address type (IPV4 or IPV6) and the IP address range (in CIDR notation) that web requests originate from. If the WebACL is associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs:

  • c-ip, if the viewer did not use an HTTP proxy or a load balancer to send the request

  • x-forwarded-for, if the viewer did use an HTTP proxy or a load balancer to send the request

" + } + }, + "IPSetSummaries": { + "base": null, + "refs": { + "ListIPSetsResponse$IPSets": "

An array of IPSetSummary objects.

" + } + }, + "IPSetSummary": { + "base": "

Contains the identifier and the name of the IPSet.

", + "refs": { + "IPSetSummaries$member": null + } + }, + "IPSetUpdate": { + "base": "

Specifies the type of update to perform to an IPSet with UpdateIPSet.

", + "refs": { + "IPSetUpdates$member": null + } + }, + "IPSetUpdates": { + "base": null, + "refs": { + "UpdateIPSetRequest$Updates": "

An array of IPSetUpdate objects that you want to insert into or delete from an IPSet. For more information, see the applicable data types:

" + } + }, + "IPString": { + "base": null, + "refs": { + "HTTPRequest$ClientIP": "

The IP address that the request originated from. If the WebACL is associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs:

  • c-ip, if the viewer did not use an HTTP proxy or a load balancer to send the request

  • x-forwarded-for, if the viewer did use an HTTP proxy or a load balancer to send the request

" + } + }, + "ListByteMatchSetsRequest": { + "base": null, + "refs": { + } + }, + "ListByteMatchSetsResponse": { + "base": null, + "refs": { + } + }, + "ListIPSetsRequest": { + "base": null, + "refs": { + } + }, + "ListIPSetsResponse": { + "base": null, + "refs": { + } + }, + "ListResourcesForWebACLRequest": { + "base": null, + "refs": { + } + }, + "ListResourcesForWebACLResponse": { + "base": null, + "refs": { + } + }, + "ListRulesRequest": { + "base": null, + "refs": { + } + }, + "ListRulesResponse": { + "base": null, + "refs": { + } + }, + "ListSizeConstraintSetsRequest": { + "base": null, + "refs": { + } + }, + "ListSizeConstraintSetsResponse": { + "base": null, + "refs": { + } + }, + "ListSqlInjectionMatchSetsRequest": { + "base": "

A request to list the SqlInjectionMatchSet objects created by the current AWS account.

", + "refs": { + } + }, + "ListSqlInjectionMatchSetsResponse": { + "base": "

The response to a ListSqlInjectionMatchSets request.

", + "refs": { + } + }, + "ListWebACLsRequest": { + "base": null, + "refs": { + } + }, + "ListWebACLsResponse": { + "base": null, + "refs": { + } + }, + "ListXssMatchSetsRequest": { + "base": "

A request to list the XssMatchSet objects created by the current AWS account.

", + "refs": { + } + }, + "ListXssMatchSetsResponse": { + "base": "

The response to a ListXssMatchSets request.

", + "refs": { + } + }, + "MatchFieldData": { + "base": null, + "refs": { + "FieldToMatch$Data": "

When the value of Type is HEADER, enter the name of the header that you want AWS WAF to search, for example, User-Agent or Referer. If the value of Type is any other value, omit Data.

The name of the header is not case sensitive.

" + } + }, + "MatchFieldType": { + "base": null, + "refs": { + "FieldToMatch$Type": "

The part of the web request that you want AWS WAF to search for a specified string. Parts of a request that you can search include the following:

  • HEADER: A specified request header, for example, the value of the User-Agent or Referer header. If you choose HEADER for the type, specify the name of the header in Data.

  • METHOD: The HTTP method, which indicated the type of operation that the request is asking the origin to perform. Amazon CloudFront supports the following methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT.

  • QUERY_STRING: A query string, which is the part of a URL that appears after a ? character, if any.

  • URI: The part of a web request that identifies a resource, for example, /images/daily-ad.jpg.

  • BODY: The part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form. The request body immediately follows the request headers. Note that only the first 8192 bytes of the request body are forwarded to AWS WAF for inspection. To allow or block requests based on the length of the body, you can create a size constraint set. For more information, see CreateSizeConstraintSet.

" + } + }, + "MetricName": { + "base": null, + "refs": { + "CreateRuleRequest$MetricName": "

A friendly name or description for the metrics for this Rule. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change the name of the metric after you create the Rule.

", + "CreateWebACLRequest$MetricName": "

A friendly name or description for the metrics for this WebACL. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change MetricName after you create the WebACL.

", + "Rule$MetricName": "

A friendly name or description for the metrics for this Rule. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change MetricName after you create the Rule.

", + "WebACL$MetricName": "

A friendly name or description for the metrics for this WebACL. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change MetricName after you create the WebACL.

" + } + }, + "Negated": { + "base": null, + "refs": { + "Predicate$Negated": "

Set Negated to False if you want AWS WAF to allow, block, or count requests based on the settings in the specified ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, or SizeConstraintSet. For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow or block requests based on that IP address.

Set Negated to True if you want AWS WAF to allow or block a request based on the negation of the settings in the ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, or SizeConstraintSet. For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow, block, or count requests based on all IP addresses except 192.0.2.44.

" + } + }, + "NextMarker": { + "base": null, + "refs": { + "ListByteMatchSetsRequest$NextMarker": "

If you specify a value for Limit and you have more ByteMatchSets than the value of Limit, AWS WAF returns a NextMarker value in the response that allows you to list another group of ByteMatchSets. For the second and subsequent ListByteMatchSets requests, specify the value of NextMarker from the previous response to get information about another batch of ByteMatchSets.

", + "ListByteMatchSetsResponse$NextMarker": "

If you have more ByteMatchSet objects than the number that you specified for Limit in the request, the response includes a NextMarker value. To list more ByteMatchSet objects, submit another ListByteMatchSets request, and specify the NextMarker value from the response in the NextMarker value in the next request.

", + "ListIPSetsRequest$NextMarker": "

If you specify a value for Limit and you have more IPSets than the value of Limit, AWS WAF returns a NextMarker value in the response that allows you to list another group of IPSets. For the second and subsequent ListIPSets requests, specify the value of NextMarker from the previous response to get information about another batch of ByteMatchSets.

", + "ListIPSetsResponse$NextMarker": "

If you have more IPSet objects than the number that you specified for Limit in the request, the response includes a NextMarker value. To list more IPSet objects, submit another ListIPSets request, and specify the NextMarker value from the response in the NextMarker value in the next request.

", + "ListRulesRequest$NextMarker": "

If you specify a value for Limit and you have more Rules than the value of Limit, AWS WAF returns a NextMarker value in the response that allows you to list another group of Rules. For the second and subsequent ListRules requests, specify the value of NextMarker from the previous response to get information about another batch of Rules.

", + "ListRulesResponse$NextMarker": "

If you have more Rules than the number that you specified for Limit in the request, the response includes a NextMarker value. To list more Rules, submit another ListRules request, and specify the NextMarker value from the response in the NextMarker value in the next request.

", + "ListSizeConstraintSetsRequest$NextMarker": "

If you specify a value for Limit and you have more SizeConstraintSets than the value of Limit, AWS WAF returns a NextMarker value in the response that allows you to list another group of SizeConstraintSets. For the second and subsequent ListSizeConstraintSets requests, specify the value of NextMarker from the previous response to get information about another batch of SizeConstraintSets.

", + "ListSizeConstraintSetsResponse$NextMarker": "

If you have more SizeConstraintSet objects than the number that you specified for Limit in the request, the response includes a NextMarker value. To list more SizeConstraintSet objects, submit another ListSizeConstraintSets request, and specify the NextMarker value from the response in the NextMarker value in the next request.

", + "ListSqlInjectionMatchSetsRequest$NextMarker": "

If you specify a value for Limit and you have more SqlInjectionMatchSet objects than the value of Limit, AWS WAF returns a NextMarker value in the response that allows you to list another group of SqlInjectionMatchSets. For the second and subsequent ListSqlInjectionMatchSets requests, specify the value of NextMarker from the previous response to get information about another batch of SqlInjectionMatchSets.

", + "ListSqlInjectionMatchSetsResponse$NextMarker": "

If you have more SqlInjectionMatchSet objects than the number that you specified for Limit in the request, the response includes a NextMarker value. To list more SqlInjectionMatchSet objects, submit another ListSqlInjectionMatchSets request, and specify the NextMarker value from the response in the NextMarker value in the next request.

", + "ListWebACLsRequest$NextMarker": "

If you specify a value for Limit and you have more WebACL objects than the number that you specify for Limit, AWS WAF returns a NextMarker value in the response that allows you to list another group of WebACL objects. For the second and subsequent ListWebACLs requests, specify the value of NextMarker from the previous response to get information about another batch of WebACL objects.

", + "ListWebACLsResponse$NextMarker": "

If you have more WebACL objects than the number that you specified for Limit in the request, the response includes a NextMarker value. To list more WebACL objects, submit another ListWebACLs request, and specify the NextMarker value from the response in the NextMarker value in the next request.

", + "ListXssMatchSetsRequest$NextMarker": "

If you specify a value for Limit and you have more XssMatchSet objects than the value of Limit, AWS WAF returns a NextMarker value in the response that allows you to list another group of XssMatchSets. For the second and subsequent ListXssMatchSets requests, specify the value of NextMarker from the previous response to get information about another batch of XssMatchSets.

", + "ListXssMatchSetsResponse$NextMarker": "

If you have more XssMatchSet objects than the number that you specified for Limit in the request, the response includes a NextMarker value. To list more XssMatchSet objects, submit another ListXssMatchSets request, and specify the NextMarker value from the response in the NextMarker value in the next request.

" + } + }, + "PaginationLimit": { + "base": null, + "refs": { + "ListByteMatchSetsRequest$Limit": "

Specifies the number of ByteMatchSet objects that you want AWS WAF to return for this request. If you have more ByteMatchSets objects than the number you specify for Limit, the response includes a NextMarker value that you can use to get another batch of ByteMatchSet objects.

", + "ListIPSetsRequest$Limit": "

Specifies the number of IPSet objects that you want AWS WAF to return for this request. If you have more IPSet objects than the number you specify for Limit, the response includes a NextMarker value that you can use to get another batch of IPSet objects.

", + "ListRulesRequest$Limit": "

Specifies the number of Rules that you want AWS WAF to return for this request. If you have more Rules than the number that you specify for Limit, the response includes a NextMarker value that you can use to get another batch of Rules.

", + "ListSizeConstraintSetsRequest$Limit": "

Specifies the number of SizeConstraintSet objects that you want AWS WAF to return for this request. If you have more SizeConstraintSets objects than the number you specify for Limit, the response includes a NextMarker value that you can use to get another batch of SizeConstraintSet objects.

", + "ListSqlInjectionMatchSetsRequest$Limit": "

Specifies the number of SqlInjectionMatchSet objects that you want AWS WAF to return for this request. If you have more SqlInjectionMatchSet objects than the number you specify for Limit, the response includes a NextMarker value that you can use to get another batch of Rules.

", + "ListWebACLsRequest$Limit": "

Specifies the number of WebACL objects that you want AWS WAF to return for this request. If you have more WebACL objects than the number that you specify for Limit, the response includes a NextMarker value that you can use to get another batch of WebACL objects.

", + "ListXssMatchSetsRequest$Limit": "

Specifies the number of XssMatchSet objects that you want AWS WAF to return for this request. If you have more XssMatchSet objects than the number you specify for Limit, the response includes a NextMarker value that you can use to get another batch of Rules.

" + } + }, + "ParameterExceptionField": { + "base": null, + "refs": { + "WAFInvalidParameterException$field": null + } + }, + "ParameterExceptionParameter": { + "base": null, + "refs": { + "WAFInvalidParameterException$parameter": null + } + }, + "ParameterExceptionReason": { + "base": null, + "refs": { + "WAFInvalidParameterException$reason": null + } + }, + "PopulationSize": { + "base": null, + "refs": { + "GetSampledRequestsResponse$PopulationSize": "

The total number of requests from which GetSampledRequests got a sample of MaxItems requests. If PopulationSize is less than MaxItems, the sample includes every request that your AWS resource received during the specified time range.

" + } + }, + "PositionalConstraint": { + "base": null, + "refs": { + "ByteMatchTuple$PositionalConstraint": "

Within the portion of a web request that you want to search (for example, in the query string, if any), specify where you want AWS WAF to search. Valid values include the following:

CONTAINS

The specified part of the web request must include the value of TargetString, but the location doesn't matter.

CONTAINS_WORD

The specified part of the web request must include the value of TargetString, and TargetString must contain only alphanumeric characters or underscore (A-Z, a-z, 0-9, or _). In addition, TargetString must be a word, which means one of the following:

  • TargetString exactly matches the value of the specified part of the web request, such as the value of a header.

  • TargetString is at the beginning of the specified part of the web request and is followed by a character other than an alphanumeric character or underscore (_), for example, BadBot;.

  • TargetString is at the end of the specified part of the web request and is preceded by a character other than an alphanumeric character or underscore (_), for example, ;BadBot.

  • TargetString is in the middle of the specified part of the web request and is preceded and followed by characters other than alphanumeric characters or underscore (_), for example, -BadBot;.

EXACTLY

The value of the specified part of the web request must exactly match the value of TargetString.

STARTS_WITH

The value of TargetString must appear at the beginning of the specified part of the web request.

ENDS_WITH

The value of TargetString must appear at the end of the specified part of the web request.

" + } + }, + "Predicate": { + "base": "

Specifies the ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, and SizeConstraintSet objects that you want to add to a Rule and, for each object, indicates whether you want to negate the settings, for example, requests that do NOT originate from the IP address 192.0.2.44.

", + "refs": { + "Predicates$member": null, + "RuleUpdate$Predicate": "

The ID of the Predicate (such as an IPSet) that you want to add to a Rule.

" + } + }, + "PredicateType": { + "base": null, + "refs": { + "Predicate$Type": "

The type of predicate in a Rule, such as ByteMatchSet or IPSet.

" + } + }, + "Predicates": { + "base": null, + "refs": { + "Rule$Predicates": "

The Predicates object contains one Predicate element for each ByteMatchSet, IPSet, or SqlInjectionMatchSet object that you want to include in a Rule.

" + } + }, + "ResourceArn": { + "base": null, + "refs": { + "AssociateWebACLRequest$ResourceArn": "

The ARN (Amazon Resource Name) of the resource to be protected.

", + "DisassociateWebACLRequest$ResourceArn": "

The ARN (Amazon Resource Name) of the resource from which the web ACL is being removed.

", + "GetWebACLForResourceRequest$ResourceArn": "

The ARN (Amazon Resource Name) of the resource for which to get the web ACL.

", + "ResourceArns$member": null + } + }, + "ResourceArns": { + "base": null, + "refs": { + "ListResourcesForWebACLResponse$ResourceArns": "

An array of ARNs (Amazon Resource Names) of the resources associated with the specified web ACL. An array with zero elements is returned if there are no resources associated with the web ACL.

" + } + }, + "ResourceId": { + "base": null, + "refs": { + "ActivatedRule$RuleId": "

The RuleId for a Rule. You use RuleId to get more information about a Rule (see GetRule), update a Rule (see UpdateRule), insert a Rule into a WebACL or delete a one from a WebACL (see UpdateWebACL), or delete a Rule from AWS WAF (see DeleteRule).

RuleId is returned by CreateRule and by ListRules.

", + "AssociateWebACLRequest$WebACLId": "

A unique identifier (ID) for the web ACL.

", + "ByteMatchSet$ByteMatchSetId": "

The ByteMatchSetId for a ByteMatchSet. You use ByteMatchSetId to get information about a ByteMatchSet (see GetByteMatchSet), update a ByteMatchSet (see UpdateByteMatchSet), insert a ByteMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a ByteMatchSet from AWS WAF (see DeleteByteMatchSet).

ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets.

", + "ByteMatchSetSummary$ByteMatchSetId": "

The ByteMatchSetId for a ByteMatchSet. You use ByteMatchSetId to get information about a ByteMatchSet, update a ByteMatchSet, remove a ByteMatchSet from a Rule, and delete a ByteMatchSet from AWS WAF.

ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets.

", + "DeleteByteMatchSetRequest$ByteMatchSetId": "

The ByteMatchSetId of the ByteMatchSet that you want to delete. ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets.

", + "DeleteIPSetRequest$IPSetId": "

The IPSetId of the IPSet that you want to delete. IPSetId is returned by CreateIPSet and by ListIPSets.

", + "DeleteRuleRequest$RuleId": "

The RuleId of the Rule that you want to delete. RuleId is returned by CreateRule and by ListRules.

", + "DeleteSizeConstraintSetRequest$SizeConstraintSetId": "

The SizeConstraintSetId of the SizeConstraintSet that you want to delete. SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.

", + "DeleteSqlInjectionMatchSetRequest$SqlInjectionMatchSetId": "

The SqlInjectionMatchSetId of the SqlInjectionMatchSet that you want to delete. SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.

", + "DeleteWebACLRequest$WebACLId": "

The WebACLId of the WebACL that you want to delete. WebACLId is returned by CreateWebACL and by ListWebACLs.

", + "DeleteXssMatchSetRequest$XssMatchSetId": "

The XssMatchSetId of the XssMatchSet that you want to delete. XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets.

", + "GetByteMatchSetRequest$ByteMatchSetId": "

The ByteMatchSetId of the ByteMatchSet that you want to get. ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets.

", + "GetIPSetRequest$IPSetId": "

The IPSetId of the IPSet that you want to get. IPSetId is returned by CreateIPSet and by ListIPSets.

", + "GetRuleRequest$RuleId": "

The RuleId of the Rule that you want to get. RuleId is returned by CreateRule and by ListRules.

", + "GetSampledRequestsRequest$WebAclId": "

The WebACLId of the WebACL for which you want GetSampledRequests to return a sample of requests.

", + "GetSampledRequestsRequest$RuleId": "

RuleId is one of two values:

  • The RuleId of the Rule for which you want GetSampledRequests to return a sample of requests.

  • Default_Action, which causes GetSampledRequests to return a sample of the requests that didn't match any of the rules in the specified WebACL.

", + "GetSizeConstraintSetRequest$SizeConstraintSetId": "

The SizeConstraintSetId of the SizeConstraintSet that you want to get. SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.

", + "GetSqlInjectionMatchSetRequest$SqlInjectionMatchSetId": "

The SqlInjectionMatchSetId of the SqlInjectionMatchSet that you want to get. SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.

", + "GetWebACLRequest$WebACLId": "

The WebACLId of the WebACL that you want to get. WebACLId is returned by CreateWebACL and by ListWebACLs.

", + "GetXssMatchSetRequest$XssMatchSetId": "

The XssMatchSetId of the XssMatchSet that you want to get. XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets.

", + "IPSet$IPSetId": "

The IPSetId for an IPSet. You use IPSetId to get information about an IPSet (see GetIPSet), update an IPSet (see UpdateIPSet), insert an IPSet into a Rule or delete one from a Rule (see UpdateRule), and delete an IPSet from AWS WAF (see DeleteIPSet).

IPSetId is returned by CreateIPSet and by ListIPSets.

", + "IPSetSummary$IPSetId": "

The IPSetId for an IPSet. You can use IPSetId in a GetIPSet request to get detailed information about an IPSet.

", + "ListResourcesForWebACLRequest$WebACLId": "

The unique identifier (ID) of the web ACL for which to list the associated resources.

", + "Predicate$DataId": "

A unique identifier for a predicate in a Rule, such as ByteMatchSetId or IPSetId. The ID is returned by the corresponding Create or List command.

", + "Rule$RuleId": "

A unique identifier for a Rule. You use RuleId to get more information about a Rule (see GetRule), update a Rule (see UpdateRule), insert a Rule into a WebACL or delete a one from a WebACL (see UpdateWebACL), or delete a Rule from AWS WAF (see DeleteRule).

RuleId is returned by CreateRule and by ListRules.

", + "RuleSummary$RuleId": "

A unique identifier for a Rule. You use RuleId to get more information about a Rule (see GetRule), update a Rule (see UpdateRule), insert a Rule into a WebACL or delete one from a WebACL (see UpdateWebACL), or delete a Rule from AWS WAF (see DeleteRule).

RuleId is returned by CreateRule and by ListRules.

", + "SizeConstraintSet$SizeConstraintSetId": "

A unique identifier for a SizeConstraintSet. You use SizeConstraintSetId to get information about a SizeConstraintSet (see GetSizeConstraintSet), update a SizeConstraintSet (see UpdateSizeConstraintSet), insert a SizeConstraintSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SizeConstraintSet from AWS WAF (see DeleteSizeConstraintSet).

SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.

", + "SizeConstraintSetSummary$SizeConstraintSetId": "

A unique identifier for a SizeConstraintSet. You use SizeConstraintSetId to get information about a SizeConstraintSet (see GetSizeConstraintSet), update a SizeConstraintSet (see UpdateSizeConstraintSet), insert a SizeConstraintSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SizeConstraintSet from AWS WAF (see DeleteSizeConstraintSet).

SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.

", + "SqlInjectionMatchSet$SqlInjectionMatchSetId": "

A unique identifier for a SqlInjectionMatchSet. You use SqlInjectionMatchSetId to get information about a SqlInjectionMatchSet (see GetSqlInjectionMatchSet), update a SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet), insert a SqlInjectionMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SqlInjectionMatchSet from AWS WAF (see DeleteSqlInjectionMatchSet).

SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.

", + "SqlInjectionMatchSetSummary$SqlInjectionMatchSetId": "

A unique identifier for a SqlInjectionMatchSet. You use SqlInjectionMatchSetId to get information about a SqlInjectionMatchSet (see GetSqlInjectionMatchSet), update a SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet), insert a SqlInjectionMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SqlInjectionMatchSet from AWS WAF (see DeleteSqlInjectionMatchSet).

SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.

", + "UpdateByteMatchSetRequest$ByteMatchSetId": "

The ByteMatchSetId of the ByteMatchSet that you want to update. ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets.

", + "UpdateIPSetRequest$IPSetId": "

The IPSetId of the IPSet that you want to update. IPSetId is returned by CreateIPSet and by ListIPSets.

", + "UpdateRuleRequest$RuleId": "

The RuleId of the Rule that you want to update. RuleId is returned by CreateRule and by ListRules.

", + "UpdateSizeConstraintSetRequest$SizeConstraintSetId": "

The SizeConstraintSetId of the SizeConstraintSet that you want to update. SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.

", + "UpdateSqlInjectionMatchSetRequest$SqlInjectionMatchSetId": "

The SqlInjectionMatchSetId of the SqlInjectionMatchSet that you want to update. SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.

", + "UpdateWebACLRequest$WebACLId": "

The WebACLId of the WebACL that you want to update. WebACLId is returned by CreateWebACL and by ListWebACLs.

", + "UpdateXssMatchSetRequest$XssMatchSetId": "

The XssMatchSetId of the XssMatchSet that you want to update. XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets.

", + "WebACL$WebACLId": "

A unique identifier for a WebACL. You use WebACLId to get information about a WebACL (see GetWebACL), update a WebACL (see UpdateWebACL), and delete a WebACL from AWS WAF (see DeleteWebACL).

WebACLId is returned by CreateWebACL and by ListWebACLs.

", + "WebACLSummary$WebACLId": "

A unique identifier for a WebACL. You use WebACLId to get information about a WebACL (see GetWebACL), update a WebACL (see UpdateWebACL), and delete a WebACL from AWS WAF (see DeleteWebACL).

WebACLId is returned by CreateWebACL and by ListWebACLs.

", + "XssMatchSet$XssMatchSetId": "

A unique identifier for an XssMatchSet. You use XssMatchSetId to get information about an XssMatchSet (see GetXssMatchSet), update an XssMatchSet (see UpdateXssMatchSet), insert an XssMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete an XssMatchSet from AWS WAF (see DeleteXssMatchSet).

XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets.

", + "XssMatchSetSummary$XssMatchSetId": "

A unique identifier for an XssMatchSet. You use XssMatchSetId to get information about a XssMatchSet (see GetXssMatchSet), update an XssMatchSet (see UpdateXssMatchSet), insert an XssMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete an XssMatchSet from AWS WAF (see DeleteXssMatchSet).

XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets.

" + } + }, + "ResourceName": { + "base": null, + "refs": { + "ByteMatchSet$Name": "

A friendly name or description of the ByteMatchSet. You can't change Name after you create a ByteMatchSet.

", + "ByteMatchSetSummary$Name": "

A friendly name or description of the ByteMatchSet. You can't change Name after you create a ByteMatchSet.

", + "CreateByteMatchSetRequest$Name": "

A friendly name or description of the ByteMatchSet. You can't change Name after you create a ByteMatchSet.

", + "CreateIPSetRequest$Name": "

A friendly name or description of the IPSet. You can't change Name after you create the IPSet.

", + "CreateRuleRequest$Name": "

A friendly name or description of the Rule. You can't change the name of a Rule after you create it.

", + "CreateSizeConstraintSetRequest$Name": "

A friendly name or description of the SizeConstraintSet. You can't change Name after you create a SizeConstraintSet.

", + "CreateSqlInjectionMatchSetRequest$Name": "

A friendly name or description for the SqlInjectionMatchSet that you're creating. You can't change Name after you create the SqlInjectionMatchSet.

", + "CreateWebACLRequest$Name": "

A friendly name or description of the WebACL. You can't change Name after you create the WebACL.

", + "CreateXssMatchSetRequest$Name": "

A friendly name or description for the XssMatchSet that you're creating. You can't change Name after you create the XssMatchSet.

", + "IPSet$Name": "

A friendly name or description of the IPSet. You can't change the name of an IPSet after you create it.

", + "IPSetSummary$Name": "

A friendly name or description of the IPSet. You can't change the name of an IPSet after you create it.

", + "Rule$Name": "

The friendly name or description for the Rule. You can't change the name of a Rule after you create it.

", + "RuleSummary$Name": "

A friendly name or description of the Rule. You can't change the name of a Rule after you create it.

", + "SizeConstraintSet$Name": "

The name, if any, of the SizeConstraintSet.

", + "SizeConstraintSetSummary$Name": "

The name of the SizeConstraintSet, if any.

", + "SqlInjectionMatchSet$Name": "

The name, if any, of the SqlInjectionMatchSet.

", + "SqlInjectionMatchSetSummary$Name": "

The name of the SqlInjectionMatchSet, if any, specified by Id.

", + "WebACL$Name": "

A friendly name or description of the WebACL. You can't change the name of a WebACL after you create it.

", + "WebACLSummary$Name": "

A friendly name or description of the WebACL. You can't change the name of a WebACL after you create it.

", + "XssMatchSet$Name": "

The name, if any, of the XssMatchSet.

", + "XssMatchSetSummary$Name": "

The name of the XssMatchSet, if any, specified by Id.

" + } + }, + "Rule": { + "base": "

A combination of ByteMatchSet, IPSet, and/or SqlInjectionMatchSet objects that identify the web requests that you want to allow, block, or count. For example, you might create a Rule that includes the following predicates:

  • An IPSet that causes AWS WAF to search for web requests that originate from the IP address 192.0.2.44

  • A ByteMatchSet that causes AWS WAF to search for web requests for which the value of the User-Agent header is BadBot.

To match the settings in this Rule, a request must originate from 192.0.2.44 AND include a User-Agent header for which the value is BadBot.

", + "refs": { + "CreateRuleResponse$Rule": "

The Rule returned in the CreateRule response.

", + "GetRuleResponse$Rule": "

Information about the Rule that you specified in the GetRule request. For more information, see the following topics:

  • Rule: Contains MetricName, Name, an array of Predicate objects, and RuleId

  • Predicate: Each Predicate object contains DataId, Negated, and Type

" + } + }, + "RulePriority": { + "base": null, + "refs": { + "ActivatedRule$Priority": "

Specifies the order in which the Rules in a WebACL are evaluated. Rules with a lower value for Priority are evaluated before Rules with a higher value. The value must be a unique integer. If you add multiple Rules to a WebACL, the values don't need to be consecutive.

" + } + }, + "RuleSummaries": { + "base": null, + "refs": { + "ListRulesResponse$Rules": "

An array of RuleSummary objects.

" + } + }, + "RuleSummary": { + "base": "

Contains the identifier and the friendly name or description of the Rule.

", + "refs": { + "RuleSummaries$member": null + } + }, + "RuleUpdate": { + "base": "

Specifies a Predicate (such as an IPSet) and indicates whether you want to add it to a Rule or delete it from a Rule.

", + "refs": { + "RuleUpdates$member": null + } + }, + "RuleUpdates": { + "base": null, + "refs": { + "UpdateRuleRequest$Updates": "

An array of RuleUpdate objects that you want to insert into or delete from a Rule. For more information, see the applicable data types:

" + } + }, + "SampleWeight": { + "base": null, + "refs": { + "SampledHTTPRequest$Weight": "

A value that indicates how one result in the response relates proportionally to other results in the response. A result that has a weight of 2 represents roughly twice as many CloudFront web requests as a result that has a weight of 1.

" + } + }, + "SampledHTTPRequest": { + "base": "

The response from a GetSampledRequests request includes a SampledHTTPRequests complex type that appears as SampledRequests in the response syntax. SampledHTTPRequests contains one SampledHTTPRequest object for each web request that is returned by GetSampledRequests.

", + "refs": { + "SampledHTTPRequests$member": null + } + }, + "SampledHTTPRequests": { + "base": null, + "refs": { + "GetSampledRequestsResponse$SampledRequests": "

A complex type that contains detailed information about each of the requests in the sample.

" + } + }, + "Size": { + "base": null, + "refs": { + "SizeConstraint$Size": "

The size in bytes that you want AWS WAF to compare against the size of the specified FieldToMatch. AWS WAF uses this in combination with ComparisonOperator and FieldToMatch to build an expression in the form of \"Size ComparisonOperator size in bytes of FieldToMatch\". If that expression is true, the SizeConstraint is considered to match.

Valid values for size are 0 - 21474836480 bytes (0 - 20 GB).

If you specify URI for the value of Type, the / in the URI counts as one character. For example, the URI /logo.jpg is nine characters long.

" + } + }, + "SizeConstraint": { + "base": "

Specifies a constraint on the size of a part of the web request. AWS WAF uses the Size, ComparisonOperator, and FieldToMatch to build an expression in the form of \"Size ComparisonOperator size in bytes of FieldToMatch\". If that expression is true, the SizeConstraint is considered to match.

", + "refs": { + "SizeConstraintSetUpdate$SizeConstraint": "

Specifies a constraint on the size of a part of the web request. AWS WAF uses the Size, ComparisonOperator, and FieldToMatch to build an expression in the form of \"Size ComparisonOperator size in bytes of FieldToMatch\". If that expression is true, the SizeConstraint is considered to match.

", + "SizeConstraints$member": null + } + }, + "SizeConstraintSet": { + "base": "

A complex type that contains SizeConstraint objects, which specify the parts of web requests that you want AWS WAF to inspect the size of. If a SizeConstraintSet contains more than one SizeConstraint object, a request only needs to match one constraint to be considered a match.

", + "refs": { + "CreateSizeConstraintSetResponse$SizeConstraintSet": "

A SizeConstraintSet that contains no SizeConstraint objects.

", + "GetSizeConstraintSetResponse$SizeConstraintSet": "

Information about the SizeConstraintSet that you specified in the GetSizeConstraintSet request. For more information, see the following topics:

" + } + }, + "SizeConstraintSetSummaries": { + "base": null, + "refs": { + "ListSizeConstraintSetsResponse$SizeConstraintSets": "

An array of SizeConstraintSetSummary objects.

" + } + }, + "SizeConstraintSetSummary": { + "base": "

The Id and Name of a SizeConstraintSet.

", + "refs": { + "SizeConstraintSetSummaries$member": null + } + }, + "SizeConstraintSetUpdate": { + "base": "

Specifies the part of a web request that you want to inspect the size of and indicates whether you want to add the specification to a SizeConstraintSet or delete it from a SizeConstraintSet.

", + "refs": { + "SizeConstraintSetUpdates$member": null + } + }, + "SizeConstraintSetUpdates": { + "base": null, + "refs": { + "UpdateSizeConstraintSetRequest$Updates": "

An array of SizeConstraintSetUpdate objects that you want to insert into or delete from a SizeConstraintSet. For more information, see the applicable data types:

" + } + }, + "SizeConstraints": { + "base": null, + "refs": { + "SizeConstraintSet$SizeConstraints": "

Specifies the parts of web requests that you want to inspect the size of.

" + } + }, + "SqlInjectionMatchSet": { + "base": "

A complex type that contains SqlInjectionMatchTuple objects, which specify the parts of web requests that you want AWS WAF to inspect for snippets of malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header. If a SqlInjectionMatchSet contains more than one SqlInjectionMatchTuple object, a request needs to include snippets of SQL code in only one of the specified parts of the request to be considered a match.

", + "refs": { + "CreateSqlInjectionMatchSetResponse$SqlInjectionMatchSet": "

A SqlInjectionMatchSet.

", + "GetSqlInjectionMatchSetResponse$SqlInjectionMatchSet": "

Information about the SqlInjectionMatchSet that you specified in the GetSqlInjectionMatchSet request. For more information, see the following topics:

" + } + }, + "SqlInjectionMatchSetSummaries": { + "base": null, + "refs": { + "ListSqlInjectionMatchSetsResponse$SqlInjectionMatchSets": "

An array of SqlInjectionMatchSetSummary objects.

" + } + }, + "SqlInjectionMatchSetSummary": { + "base": "

The Id and Name of a SqlInjectionMatchSet.

", + "refs": { + "SqlInjectionMatchSetSummaries$member": null + } + }, + "SqlInjectionMatchSetUpdate": { + "base": "

Specifies the part of a web request that you want to inspect for snippets of malicious SQL code and indicates whether you want to add the specification to a SqlInjectionMatchSet or delete it from a SqlInjectionMatchSet.

", + "refs": { + "SqlInjectionMatchSetUpdates$member": null + } + }, + "SqlInjectionMatchSetUpdates": { + "base": null, + "refs": { + "UpdateSqlInjectionMatchSetRequest$Updates": "

An array of SqlInjectionMatchSetUpdate objects that you want to insert into or delete from a SqlInjectionMatchSet. For more information, see the applicable data types:

" + } + }, + "SqlInjectionMatchTuple": { + "base": "

Specifies the part of a web request that you want AWS WAF to inspect for snippets of malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header.

", + "refs": { + "SqlInjectionMatchSetUpdate$SqlInjectionMatchTuple": "

Specifies the part of a web request that you want AWS WAF to inspect for snippets of malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header.

", + "SqlInjectionMatchTuples$member": null + } + }, + "SqlInjectionMatchTuples": { + "base": null, + "refs": { + "SqlInjectionMatchSet$SqlInjectionMatchTuples": "

Specifies the parts of web requests that you want to inspect for snippets of malicious SQL code.

" + } + }, + "TextTransformation": { + "base": null, + "refs": { + "ByteMatchTuple$TextTransformation": "

Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on TargetString before inspecting a request for a match.

CMD_LINE

When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:

  • Delete the following characters: \\ \" ' ^

  • Delete spaces before the following characters: / (

  • Replace the following characters with a space: , ;

  • Replace multiple spaces with one space

  • Convert uppercase letters (A-Z) to lowercase (a-z)

COMPRESS_WHITE_SPACE

Use this option to replace the following characters with a space character (decimal 32):

  • \\f, formfeed, decimal 12

  • \\t, tab, decimal 9

  • \\n, newline, decimal 10

  • \\r, carriage return, decimal 13

  • \\v, vertical tab, decimal 11

  • non-breaking space, decimal 160

COMPRESS_WHITE_SPACE also replaces multiple spaces with one space.

HTML_ENTITY_DECODE

Use this option to replace HTML-encoded characters with unencoded characters. HTML_ENTITY_DECODE performs the following operations:

  • Replaces (ampersand)quot; with \"

  • Replaces (ampersand)nbsp; with a non-breaking space, decimal 160

  • Replaces (ampersand)lt; with a \"less than\" symbol

  • Replaces (ampersand)gt; with >

  • Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, with the corresponding characters

  • Replaces characters that are represented in decimal format, (ampersand)#nnnn;, with the corresponding characters

LOWERCASE

Use this option to convert uppercase letters (A-Z) to lowercase (a-z).

URL_DECODE

Use this option to decode a URL-encoded value.

NONE

Specify NONE if you don't want to perform any text transformations.

", + "SizeConstraint$TextTransformation": "

Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on FieldToMatch before inspecting a request for a match.

Note that if you choose BODY for the value of Type, you must choose NONE for TextTransformation because CloudFront forwards only the first 8192 bytes for inspection.

NONE

Specify NONE if you don't want to perform any text transformations.

CMD_LINE

When you're concerned that attackers are injecting an operating system command line command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:

  • Delete the following characters: \\ \" ' ^

  • Delete spaces before the following characters: / (

  • Replace the following characters with a space: , ;

  • Replace multiple spaces with one space

  • Convert uppercase letters (A-Z) to lowercase (a-z)

COMPRESS_WHITE_SPACE

Use this option to replace the following characters with a space character (decimal 32):

  • \\f, formfeed, decimal 12

  • \\t, tab, decimal 9

  • \\n, newline, decimal 10

  • \\r, carriage return, decimal 13

  • \\v, vertical tab, decimal 11

  • non-breaking space, decimal 160

COMPRESS_WHITE_SPACE also replaces multiple spaces with one space.

HTML_ENTITY_DECODE

Use this option to replace HTML-encoded characters with unencoded characters. HTML_ENTITY_DECODE performs the following operations:

  • Replaces (ampersand)quot; with \"

  • Replaces (ampersand)nbsp; with a non-breaking space, decimal 160

  • Replaces (ampersand)lt; with a \"less than\" symbol

  • Replaces (ampersand)gt; with >

  • Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, with the corresponding characters

  • Replaces characters that are represented in decimal format, (ampersand)#nnnn;, with the corresponding characters

LOWERCASE

Use this option to convert uppercase letters (A-Z) to lowercase (a-z).

URL_DECODE

Use this option to decode a URL-encoded value.

", + "SqlInjectionMatchTuple$TextTransformation": "

Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on FieldToMatch before inspecting a request for a match.

CMD_LINE

When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:

  • Delete the following characters: \\ \" ' ^

  • Delete spaces before the following characters: / (

  • Replace the following characters with a space: , ;

  • Replace multiple spaces with one space

  • Convert uppercase letters (A-Z) to lowercase (a-z)

COMPRESS_WHITE_SPACE

Use this option to replace the following characters with a space character (decimal 32):

  • \\f, formfeed, decimal 12

  • \\t, tab, decimal 9

  • \\n, newline, decimal 10

  • \\r, carriage return, decimal 13

  • \\v, vertical tab, decimal 11

  • non-breaking space, decimal 160

COMPRESS_WHITE_SPACE also replaces multiple spaces with one space.

HTML_ENTITY_DECODE

Use this option to replace HTML-encoded characters with unencoded characters. HTML_ENTITY_DECODE performs the following operations:

  • Replaces (ampersand)quot; with \"

  • Replaces (ampersand)nbsp; with a non-breaking space, decimal 160

  • Replaces (ampersand)lt; with a \"less than\" symbol

  • Replaces (ampersand)gt; with >

  • Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, with the corresponding characters

  • Replaces characters that are represented in decimal format, (ampersand)#nnnn;, with the corresponding characters

LOWERCASE

Use this option to convert uppercase letters (A-Z) to lowercase (a-z).

URL_DECODE

Use this option to decode a URL-encoded value.

NONE

Specify NONE if you don't want to perform any text transformations.

", + "XssMatchTuple$TextTransformation": "

Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on FieldToMatch before inspecting a request for a match.

CMD_LINE

When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:

  • Delete the following characters: \\ \" ' ^

  • Delete spaces before the following characters: / (

  • Replace the following characters with a space: , ;

  • Replace multiple spaces with one space

  • Convert uppercase letters (A-Z) to lowercase (a-z)

COMPRESS_WHITE_SPACE

Use this option to replace the following characters with a space character (decimal 32):

  • \\f, formfeed, decimal 12

  • \\t, tab, decimal 9

  • \\n, newline, decimal 10

  • \\r, carriage return, decimal 13

  • \\v, vertical tab, decimal 11

  • non-breaking space, decimal 160

COMPRESS_WHITE_SPACE also replaces multiple spaces with one space.

HTML_ENTITY_DECODE

Use this option to replace HTML-encoded characters with unencoded characters. HTML_ENTITY_DECODE performs the following operations:

  • Replaces (ampersand)quot; with \"

  • Replaces (ampersand)nbsp; with a non-breaking space, decimal 160

  • Replaces (ampersand)lt; with a \"less than\" symbol

  • Replaces (ampersand)gt; with >

  • Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, with the corresponding characters

  • Replaces characters that are represented in decimal format, (ampersand)#nnnn;, with the corresponding characters

LOWERCASE

Use this option to convert uppercase letters (A-Z) to lowercase (a-z).

URL_DECODE

Use this option to decode a URL-encoded value.

NONE

Specify NONE if you don't want to perform any text transformations.

" + } + }, + "TimeWindow": { + "base": "

In a GetSampledRequests request, the StartTime and EndTime objects specify the time range for which you want AWS WAF to return a sample of web requests.

In a GetSampledRequests response, the StartTime and EndTime objects specify the time range for which AWS WAF actually returned a sample of web requests. AWS WAF gets the specified number of requests from among the first 5,000 requests that your AWS resource receives during the specified time period. If your resource receives more than 5,000 requests during that period, AWS WAF stops sampling after the 5,000th request. In that case, EndTime is the time that AWS WAF received the 5,000th request.

", + "refs": { + "GetSampledRequestsRequest$TimeWindow": "

The start date and time and the end date and time of the range for which you want GetSampledRequests to return a sample of requests. Specify the date and time in the following format: \"2016-09-27T14:50Z\". You can specify any time range in the previous three hours.

", + "GetSampledRequestsResponse$TimeWindow": "

Usually, TimeWindow is the time range that you specified in the GetSampledRequests request. However, if your AWS resource received more than 5,000 requests during the time range that you specified in the request, GetSampledRequests returns the time range for the first 5,000 requests.

" + } + }, + "Timestamp": { + "base": null, + "refs": { + "SampledHTTPRequest$Timestamp": "

The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).

", + "TimeWindow$StartTime": "

The beginning of the time range from which you want GetSampledRequests to return a sample of the requests that your AWS resource received. Specify the date and time in the following format: \"2016-09-27T14:50Z\". You can specify any time range in the previous three hours.

", + "TimeWindow$EndTime": "

The end of the time range from which you want GetSampledRequests to return a sample of the requests that your AWS resource received. Specify the date and time in the following format: \"2016-09-27T14:50Z\". You can specify any time range in the previous three hours.

" + } + }, + "URIString": { + "base": null, + "refs": { + "HTTPRequest$URI": "

The part of a web request that identifies the resource, for example, /images/daily-ad.jpg.

" + } + }, + "UpdateByteMatchSetRequest": { + "base": null, + "refs": { + } + }, + "UpdateByteMatchSetResponse": { + "base": null, + "refs": { + } + }, + "UpdateIPSetRequest": { + "base": null, + "refs": { + } + }, + "UpdateIPSetResponse": { + "base": null, + "refs": { + } + }, + "UpdateRuleRequest": { + "base": null, + "refs": { + } + }, + "UpdateRuleResponse": { + "base": null, + "refs": { + } + }, + "UpdateSizeConstraintSetRequest": { + "base": null, + "refs": { + } + }, + "UpdateSizeConstraintSetResponse": { + "base": null, + "refs": { + } + }, + "UpdateSqlInjectionMatchSetRequest": { + "base": "

A request to update a SqlInjectionMatchSet.

", + "refs": { + } + }, + "UpdateSqlInjectionMatchSetResponse": { + "base": "

The response to an UpdateSqlInjectionMatchSets request.

", + "refs": { + } + }, + "UpdateWebACLRequest": { + "base": null, + "refs": { + } + }, + "UpdateWebACLResponse": { + "base": null, + "refs": { + } + }, + "UpdateXssMatchSetRequest": { + "base": "

A request to update an XssMatchSet.

", + "refs": { + } + }, + "UpdateXssMatchSetResponse": { + "base": "

The response to an UpdateXssMatchSets request.

", + "refs": { + } + }, + "WAFDisallowedNameException": { + "base": "

The name specified is invalid.

", + "refs": { + } + }, + "WAFInternalErrorException": { + "base": "

The operation failed because of a system problem, even though the request was valid. Retry your request.

", + "refs": { + } + }, + "WAFInvalidAccountException": { + "base": "

The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.

", + "refs": { + } + }, + "WAFInvalidOperationException": { + "base": "

The operation failed because there was nothing to do. For example:

  • You tried to remove a Rule from a WebACL, but the Rule isn't in the specified WebACL.

  • You tried to remove an IP address from an IPSet, but the IP address isn't in the specified IPSet.

  • You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple isn't in the specified WebACL.

  • You tried to add a Rule to a WebACL, but the Rule already exists in the specified WebACL.

  • You tried to add an IP address to an IPSet, but the IP address already exists in the specified IPSet.

  • You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple already exists in the specified WebACL.

", + "refs": { + } + }, + "WAFInvalidParameterException": { + "base": "

The operation failed because AWS WAF didn't recognize a parameter in the request. For example:

  • You specified an invalid parameter name.

  • You specified an invalid value.

  • You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using an action other than INSERT or DELETE.

  • You tried to create a WebACL with a DefaultAction Type other than ALLOW, BLOCK, or COUNT.

  • You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, or COUNT.

  • You tried to update a ByteMatchSet with a FieldToMatch Type other than HEADER, QUERY_STRING, or URI.

  • You tried to update a ByteMatchSet with a Field of HEADER but no value for Data.

  • Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.

", + "refs": { + } + }, + "WAFLimitsExceededException": { + "base": "

The operation exceeds a resource limit, for example, the maximum number of WebACL objects that you can create for an AWS account. For more information, see Limits in the AWS WAF Developer Guide.

", + "refs": { + } + }, + "WAFNonEmptyEntityException": { + "base": "

The operation failed because you tried to delete an object that isn't empty. For example:

  • You tried to delete a WebACL that still contains one or more Rule objects.

  • You tried to delete a Rule that still contains one or more ByteMatchSet objects or other predicates.

  • You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple objects.

  • You tried to delete an IPSet that references one or more IP addresses.

", + "refs": { + } + }, + "WAFNonexistentContainerException": { + "base": "

The operation failed because you tried to add an object to or delete an object from another object that doesn't exist. For example:

  • You tried to add a Rule to or delete a Rule from a WebACL that doesn't exist.

  • You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule that doesn't exist.

  • You tried to add an IP address to or delete an IP address from an IPSet that doesn't exist.

  • You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a ByteMatchSet that doesn't exist.

", + "refs": { + } + }, + "WAFNonexistentItemException": { + "base": "

The operation failed because the referenced object doesn't exist.

", + "refs": { + } + }, + "WAFReferencedItemException": { + "base": "

The operation failed because you tried to delete an object that is still in use. For example:

  • You tried to delete a ByteMatchSet that is still referenced by a Rule.

  • You tried to delete a Rule that is still referenced by a WebACL.

", + "refs": { + } + }, + "WAFStaleDataException": { + "base": "

The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.

", + "refs": { + } + }, + "WAFUnavailableEntityException": { + "base": "

The operation failed because the entity referenced is temporarily unavailable. Retry your request.

", + "refs": { + } + }, + "WafAction": { + "base": "

For the action that is associated with a rule in a WebACL, specifies the action that you want AWS WAF to perform when a web request matches all of the conditions in a rule. For the default action in a WebACL, specifies the action that you want AWS WAF to take when a web request doesn't match all of the conditions in any of the rules in a WebACL.

", + "refs": { + "ActivatedRule$Action": "

Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the Rule. Valid values for Action include the following:

  • ALLOW: CloudFront responds with the requested object.

  • BLOCK: CloudFront responds with an HTTP 403 (Forbidden) status code.

  • COUNT: AWS WAF increments a counter of requests that match the conditions in the rule and then continues to inspect the web request based on the remaining rules in the web ACL.

", + "CreateWebACLRequest$DefaultAction": "

The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the Rule objects that are associated with the WebACL.

", + "UpdateWebACLRequest$DefaultAction": "

A default action for the web ACL, either ALLOW or BLOCK. AWS WAF performs the default action if a request doesn't match the criteria in any of the rules in a web ACL.

", + "WebACL$DefaultAction": "

The action to perform if none of the Rules contained in the WebACL match. The action is specified by the WafAction object.

" + } + }, + "WafActionType": { + "base": null, + "refs": { + "WafAction$Type": "

Specifies how you want AWS WAF to respond to requests that match the settings in a Rule. Valid settings include the following:

  • ALLOW: AWS WAF allows requests

  • BLOCK: AWS WAF blocks requests

  • COUNT: AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specify COUNT for the default action for a WebACL.

" + } + }, + "WebACL": { + "base": "

Contains the Rules that identify the requests that you want to allow, block, or count. In a WebACL, you also specify a default action (ALLOW or BLOCK), and the action for each Rule that you add to a WebACL, for example, block requests from specified IP addresses or block requests from specified referrers. You also associate the WebACL with a CloudFront distribution to identify the requests that you want AWS WAF to filter. If you add more than one Rule to a WebACL, a request needs to match only one of the specifications to be allowed, blocked, or counted. For more information, see UpdateWebACL.

", + "refs": { + "CreateWebACLResponse$WebACL": "

The WebACL returned in the CreateWebACL response.

", + "GetWebACLResponse$WebACL": "

Information about the WebACL that you specified in the GetWebACL request. For more information, see the following topics:

  • WebACL: Contains DefaultAction, MetricName, Name, an array of Rule objects, and WebACLId

  • DefaultAction (Data type is WafAction): Contains Type

  • Rules: Contains an array of ActivatedRule objects, which contain Action, Priority, and RuleId

  • Action: Contains Type

" + } + }, + "WebACLSummaries": { + "base": null, + "refs": { + "ListWebACLsResponse$WebACLs": "

An array of WebACLSummary objects.

" + } + }, + "WebACLSummary": { + "base": "

Contains the identifier and the name or description of the WebACL.

", + "refs": { + "GetWebACLForResourceResponse$WebACLSummary": "

Information about the web ACL that you specified in the GetWebACLForResource request. If there is no associated resource, a null WebACLSummary is returned.

", + "WebACLSummaries$member": null + } + }, + "WebACLUpdate": { + "base": "

Specifies whether to insert a Rule into or delete a Rule from a WebACL.

", + "refs": { + "WebACLUpdates$member": null + } + }, + "WebACLUpdates": { + "base": null, + "refs": { + "UpdateWebACLRequest$Updates": "

An array of updates to make to the WebACL.

An array of WebACLUpdate objects that you want to insert into or delete from a WebACL. For more information, see the applicable data types:

" + } + }, + "XssMatchSet": { + "base": "

A complex type that contains XssMatchTuple objects, which specify the parts of web requests that you want AWS WAF to inspect for cross-site scripting attacks and, if you want AWS WAF to inspect a header, the name of the header. If a XssMatchSet contains more than one XssMatchTuple object, a request needs to include cross-site scripting attacks in only one of the specified parts of the request to be considered a match.

", + "refs": { + "CreateXssMatchSetResponse$XssMatchSet": "

An XssMatchSet.

", + "GetXssMatchSetResponse$XssMatchSet": "

Information about the XssMatchSet that you specified in the GetXssMatchSet request. For more information, see the following topics:

  • XssMatchSet: Contains Name, XssMatchSetId, and an array of XssMatchTuple objects

  • XssMatchTuple: Each XssMatchTuple object contains FieldToMatch and TextTransformation

  • FieldToMatch: Contains Data and Type

" + } + }, + "XssMatchSetSummaries": { + "base": null, + "refs": { + "ListXssMatchSetsResponse$XssMatchSets": "

An array of XssMatchSetSummary objects.

" + } + }, + "XssMatchSetSummary": { + "base": "

The Id and Name of an XssMatchSet.

", + "refs": { + "XssMatchSetSummaries$member": null + } + }, + "XssMatchSetUpdate": { + "base": "

Specifies the part of a web request that you want to inspect for cross-site scripting attacks and indicates whether you want to add the specification to an XssMatchSet or delete it from an XssMatchSet.

", + "refs": { + "XssMatchSetUpdates$member": null + } + }, + "XssMatchSetUpdates": { + "base": null, + "refs": { + "UpdateXssMatchSetRequest$Updates": "

An array of XssMatchSetUpdate objects that you want to insert into or delete from a XssMatchSet. For more information, see the applicable data types:

" + } + }, + "XssMatchTuple": { + "base": "

Specifies the part of a web request that you want AWS WAF to inspect for cross-site scripting attacks and, if you want AWS WAF to inspect a header, the name of the header.

", + "refs": { + "XssMatchSetUpdate$XssMatchTuple": "

Specifies the part of a web request that you want AWS WAF to inspect for cross-site scripting attacks and, if you want AWS WAF to inspect a header, the name of the header.

", + "XssMatchTuples$member": null + } + }, + "XssMatchTuples": { + "base": null, + "refs": { + "XssMatchSet$XssMatchTuples": "

Specifies the parts of web requests that you want to inspect for cross-site scripting attacks.

" + } + }, + "errorMessage": { + "base": null, + "refs": { + "WAFDisallowedNameException$message": null, + "WAFInternalErrorException$message": null, + "WAFInvalidOperationException$message": null, + "WAFLimitsExceededException$message": null, + "WAFNonEmptyEntityException$message": null, + "WAFNonexistentContainerException$message": null, + "WAFNonexistentItemException$message": null, + "WAFReferencedItemException$message": null, + "WAFStaleDataException$message": null, + "WAFUnavailableEntityException$message": null + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/waf-regional/2016-11-28/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/waf-regional/2016-11-28/examples-1.json new file mode 100644 index 000000000..eee5b6f4f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/waf-regional/2016-11-28/examples-1.json @@ -0,0 +1,1017 @@ +{ + "version": "1.0", + "examples": { + "CreateIPSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "Name": "MyIPSetFriendlyName" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "IPSet": { + "IPSetDescriptors": [ + { + "Type": "IPV4", + "Value": "192.0.2.44/32" + } + ], + "IPSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "Name": "MyIPSetFriendlyName" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example creates an IP match set named MyIPSetFriendlyName.", + "id": "createipset-1472501003122", + "title": "To create an IP set" + } + ], + "CreateRule": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "MetricName": "WAFByteHeaderRule", + "Name": "WAFByteHeaderRule" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "Rule": { + "MetricName": "WAFByteHeaderRule", + "Name": "WAFByteHeaderRule", + "Predicates": [ + { + "DataId": "MyByteMatchSetID", + "Negated": false, + "Type": "ByteMatch" + } + ], + "RuleId": "WAFRule-1-Example" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example creates a rule named WAFByteHeaderRule.", + "id": "createrule-1474072675555", + "title": "To create a rule" + } + ], + "CreateSizeConstraintSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "Name": "MySampleSizeConstraintSet" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "SizeConstraintSet": { + "Name": "MySampleSizeConstraintSet", + "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "SizeConstraints": [ + { + "ComparisonOperator": "GT", + "FieldToMatch": { + "Type": "QUERY_STRING" + }, + "Size": 0, + "TextTransformation": "NONE" + } + ] + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example creates size constraint set named MySampleSizeConstraintSet.", + "id": "createsizeconstraint-1474299140754", + "title": "To create a size constraint" + } + ], + "CreateSqlInjectionMatchSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "Name": "MySQLInjectionMatchSet" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "SqlInjectionMatchSet": { + "Name": "MySQLInjectionMatchSet", + "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "SqlInjectionMatchTuples": [ + { + "FieldToMatch": { + "Type": "QUERY_STRING" + }, + "TextTransformation": "URL_DECODE" + } + ] + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example creates a SQL injection match set named MySQLInjectionMatchSet.", + "id": "createsqlinjectionmatchset-1474492796105", + "title": "To create a SQL injection match set" + } + ], + "CreateWebACL": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "DefaultAction": { + "Type": "ALLOW" + }, + "MetricName": "CreateExample", + "Name": "CreateExample" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "WebACL": { + "DefaultAction": { + "Type": "ALLOW" + }, + "MetricName": "CreateExample", + "Name": "CreateExample", + "Rules": [ + { + "Action": { + "Type": "ALLOW" + }, + "Priority": 1, + "RuleId": "WAFRule-1-Example" + } + ], + "WebACLId": "example-46da-4444-5555-example" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example creates a web ACL named CreateExample.", + "id": "createwebacl-1472061481310", + "title": "To create a web ACL" + } + ], + "CreateXssMatchSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "Name": "MySampleXssMatchSet" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "XssMatchSet": { + "Name": "MySampleXssMatchSet", + "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "XssMatchTuples": [ + { + "FieldToMatch": { + "Type": "QUERY_STRING" + }, + "TextTransformation": "URL_DECODE" + } + ] + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example creates an XSS match set named MySampleXssMatchSet.", + "id": "createxssmatchset-1474560868500", + "title": "To create an XSS match set" + } + ], + "DeleteByteMatchSet": [ + { + "input": { + "ByteMatchSetId": "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5", + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes a byte match set with the ID exampleIDs3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "deletebytematchset-1473367566229", + "title": "To delete a byte match set" + } + ], + "DeleteIPSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "IPSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes an IP match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "deleteipset-1472767434306", + "title": "To delete an IP set" + } + ], + "DeleteRule": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "RuleId": "WAFRule-1-Example" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes a rule with the ID WAFRule-1-Example.", + "id": "deleterule-1474073108749", + "title": "To delete a rule" + } + ], + "DeleteSizeConstraintSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes a size constraint set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "deletesizeconstraintset-1474299857905", + "title": "To delete a size constraint set" + } + ], + "DeleteSqlInjectionMatchSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes a SQL injection match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "deletesqlinjectionmatchset-1474493373197", + "title": "To delete a SQL injection match set" + } + ], + "DeleteWebACL": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "WebACLId": "example-46da-4444-5555-example" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes a web ACL with the ID example-46da-4444-5555-example.", + "id": "deletewebacl-1472767755931", + "title": "To delete a web ACL" + } + ], + "DeleteXssMatchSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes an XSS match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "deletexssmatchset-1474561302618", + "title": "To delete an XSS match set" + } + ], + "GetByteMatchSet": [ + { + "input": { + "ByteMatchSetId": "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "ByteMatchSet": { + "ByteMatchSetId": "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5", + "ByteMatchTuples": [ + { + "FieldToMatch": { + "Data": "referer", + "Type": "HEADER" + }, + "PositionalConstraint": "CONTAINS", + "TargetString": "badrefer1", + "TextTransformation": "NONE" + } + ], + "Name": "ByteMatchNameExample" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns the details of a byte match set with the ID exampleIDs3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "getbytematchset-1473273311532", + "title": "To get a byte match set" + } + ], + "GetChangeToken": [ + { + "input": { + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns a change token to use for a create, update or delete operation.", + "id": "get-change-token-example-1471635120794", + "title": "To get a change token" + } + ], + "GetChangeTokenStatus": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "output": { + "ChangeTokenStatus": "PENDING" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns the status of a change token with the ID abcd12f2-46da-4fdb-b8d5-fbd4c466928f.", + "id": "getchangetokenstatus-1474658417107", + "title": "To get the change token status" + } + ], + "GetIPSet": [ + { + "input": { + "IPSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "IPSet": { + "IPSetDescriptors": [ + { + "Type": "IPV4", + "Value": "192.0.2.44/32" + } + ], + "IPSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "Name": "MyIPSetFriendlyName" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns the details of an IP match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "getipset-1474658688675", + "title": "To get an IP set" + } + ], + "GetRule": [ + { + "input": { + "RuleId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "Rule": { + "MetricName": "WAFByteHeaderRule", + "Name": "WAFByteHeaderRule", + "Predicates": [ + { + "DataId": "MyByteMatchSetID", + "Negated": false, + "Type": "ByteMatch" + } + ], + "RuleId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns the details of a rule with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "getrule-1474659238790", + "title": "To get a rule" + } + ], + "GetSampledRequests": [ + { + "input": { + "MaxItems": 100, + "RuleId": "WAFRule-1-Example", + "TimeWindow": { + "EndTime": "2016-09-27T15:50Z", + "StartTime": "2016-09-27T15:50Z" + }, + "WebAclId": "createwebacl-1472061481310" + }, + "output": { + "PopulationSize": 50, + "SampledRequests": [ + { + "Action": "BLOCK", + "Request": { + "ClientIP": "192.0.2.44", + "Country": "US", + "HTTPVersion": "HTTP/1.1", + "Headers": [ + { + "Name": "User-Agent", + "Value": "BadBot " + } + ], + "Method": "HEAD" + }, + "Timestamp": "2016-09-27T14:55Z", + "Weight": 1 + } + ], + "TimeWindow": { + "EndTime": "2016-09-27T15:50Z", + "StartTime": "2016-09-27T14:50Z" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns detailed information about 100 requests --a sample-- that AWS WAF randomly selects from among the first 5,000 requests that your AWS resource received between the time period 2016-09-27T15:50Z to 2016-09-27T15:50Z.", + "id": "getsampledrequests-1474927997195", + "title": "To get a sampled requests" + } + ], + "GetSizeConstraintSet": [ + { + "input": { + "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "SizeConstraintSet": { + "Name": "MySampleSizeConstraintSet", + "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "SizeConstraints": [ + { + "ComparisonOperator": "GT", + "FieldToMatch": { + "Type": "QUERY_STRING" + }, + "Size": 0, + "TextTransformation": "NONE" + } + ] + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns the details of a size constraint match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "getsizeconstraintset-1475005422493", + "title": "To get a size constraint set" + } + ], + "GetSqlInjectionMatchSet": [ + { + "input": { + "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "SqlInjectionMatchSet": { + "Name": "MySQLInjectionMatchSet", + "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "SqlInjectionMatchTuples": [ + { + "FieldToMatch": { + "Type": "QUERY_STRING" + }, + "TextTransformation": "URL_DECODE" + } + ] + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns the details of a SQL injection match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "getsqlinjectionmatchset-1475005940137", + "title": "To get a SQL injection match set" + } + ], + "GetWebACL": [ + { + "input": { + "WebACLId": "createwebacl-1472061481310" + }, + "output": { + "WebACL": { + "DefaultAction": { + "Type": "ALLOW" + }, + "MetricName": "CreateExample", + "Name": "CreateExample", + "Rules": [ + { + "Action": { + "Type": "ALLOW" + }, + "Priority": 1, + "RuleId": "WAFRule-1-Example" + } + ], + "WebACLId": "createwebacl-1472061481310" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns the details of a web ACL with the ID createwebacl-1472061481310.", + "id": "getwebacl-1475006348525", + "title": "To get a web ACL" + } + ], + "GetXssMatchSet": [ + { + "input": { + "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "XssMatchSet": { + "Name": "MySampleXssMatchSet", + "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "XssMatchTuples": [ + { + "FieldToMatch": { + "Type": "QUERY_STRING" + }, + "TextTransformation": "URL_DECODE" + } + ] + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns the details of an XSS match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "getxssmatchset-1475187879017", + "title": "To get an XSS match set" + } + ], + "ListIPSets": [ + { + "input": { + "Limit": 100 + }, + "output": { + "IPSets": [ + { + "IPSetId": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "Name": "MyIPSetFriendlyName" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns an array of up to 100 IP match sets.", + "id": "listipsets-1472235676229", + "title": "To list IP sets" + } + ], + "ListRules": [ + { + "input": { + "Limit": 100 + }, + "output": { + "Rules": [ + { + "Name": "WAFByteHeaderRule", + "RuleId": "WAFRule-1-Example" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns an array of up to 100 rules.", + "id": "listrules-1475258406433", + "title": "To list rules" + } + ], + "ListSizeConstraintSets": [ + { + "input": { + "Limit": 100 + }, + "output": { + "SizeConstraintSets": [ + { + "Name": "MySampleSizeConstraintSet", + "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns an array of up to 100 size contraint match sets.", + "id": "listsizeconstraintsets-1474300067597", + "title": "To list a size constraint sets" + } + ], + "ListSqlInjectionMatchSets": [ + { + "input": { + "Limit": 100 + }, + "output": { + "SqlInjectionMatchSets": [ + { + "Name": "MySQLInjectionMatchSet", + "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns an array of up to 100 SQL injection match sets.", + "id": "listsqlinjectionmatchset-1474493560103", + "title": "To list SQL injection match sets" + } + ], + "ListWebACLs": [ + { + "input": { + "Limit": 100 + }, + "output": { + "WebACLs": [ + { + "Name": "WebACLexample", + "WebACLId": "webacl-1472061481310" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns an array of up to 100 web ACLs.", + "id": "listwebacls-1475258732691", + "title": "To list Web ACLs" + } + ], + "ListXssMatchSets": [ + { + "input": { + "Limit": 100 + }, + "output": { + "XssMatchSets": [ + { + "Name": "MySampleXssMatchSet", + "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns an array of up to 100 XSS match sets.", + "id": "listxssmatchsets-1474561481168", + "title": "To list XSS match sets" + } + ], + "UpdateByteMatchSet": [ + { + "input": { + "ByteMatchSetId": "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5", + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "Updates": [ + { + "Action": "DELETE", + "ByteMatchTuple": { + "FieldToMatch": { + "Data": "referer", + "Type": "HEADER" + }, + "PositionalConstraint": "CONTAINS", + "TargetString": "badrefer1", + "TextTransformation": "NONE" + } + } + ] + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes a ByteMatchTuple object (filters) in an byte match set with the ID exampleIDs3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "updatebytematchset-1475259074558", + "title": "To update a byte match set" + } + ], + "UpdateIPSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "IPSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "Updates": [ + { + "Action": "DELETE", + "IPSetDescriptor": { + "Type": "IPV4", + "Value": "192.0.2.44/32" + } + } + ] + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes an IPSetDescriptor object in an IP match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "updateipset-1475259733625", + "title": "To update an IP set" + } + ], + "UpdateRule": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "RuleId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "Updates": [ + { + "Action": "DELETE", + "Predicate": { + "DataId": "MyByteMatchSetID", + "Negated": false, + "Type": "ByteMatch" + } + } + ] + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes a Predicate object in a rule with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "updaterule-1475260064720", + "title": "To update a rule" + } + ], + "UpdateSizeConstraintSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "Updates": [ + { + "Action": "DELETE", + "SizeConstraint": { + "ComparisonOperator": "GT", + "FieldToMatch": { + "Type": "QUERY_STRING" + }, + "Size": 0, + "TextTransformation": "NONE" + } + } + ] + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes a SizeConstraint object (filters) in a size constraint set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "updatesizeconstraintset-1475531697891", + "title": "To update a size constraint set" + } + ], + "UpdateSqlInjectionMatchSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "Updates": [ + { + "Action": "DELETE", + "SqlInjectionMatchTuple": { + "FieldToMatch": { + "Type": "QUERY_STRING" + }, + "TextTransformation": "URL_DECODE" + } + } + ] + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes a SqlInjectionMatchTuple object (filters) in a SQL injection match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "updatesqlinjectionmatchset-1475532094686", + "title": "To update a SQL injection match set" + } + ], + "UpdateWebACL": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "DefaultAction": { + "Type": "ALLOW" + }, + "Updates": [ + { + "Action": "DELETE", + "ActivatedRule": { + "Action": { + "Type": "ALLOW" + }, + "Priority": 1, + "RuleId": "WAFRule-1-Example" + } + } + ], + "WebACLId": "webacl-1472061481310" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes an ActivatedRule object in a WebACL with the ID webacl-1472061481310.", + "id": "updatewebacl-1475533627385", + "title": "To update a Web ACL" + } + ], + "UpdateXssMatchSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "Updates": [ + { + "Action": "DELETE", + "XssMatchTuple": { + "FieldToMatch": { + "Type": "QUERY_STRING" + }, + "TextTransformation": "URL_DECODE" + } + } + ], + "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes an XssMatchTuple object (filters) in an XssMatchSet with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "updatexssmatchset-1475534098881", + "title": "To update an XSS match set" + } + ] + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/waf-regional/2016-11-28/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/waf-regional/2016-11-28/paginators-1.json new file mode 100644 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/waf-regional/2016-11-28/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/api-2.json index fc73c3171..3b5dcb44f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/api-2.json @@ -8,7 +8,8 @@ "serviceAbbreviation":"WAF", "serviceFullName":"AWS WAF", "signatureVersion":"v4", - "targetPrefix":"AWSWAF_20150824" + "targetPrefix":"AWSWAF_20150824", + "uid":"waf-2015-08-24" }, "operations":{ "CreateByteMatchSet":{ @@ -1047,6 +1048,11 @@ "Rule":{"shape":"Rule"} } }, + "GetSampledRequestsMaxItems":{ + "type":"long", + "max":500, + "min":1 + }, "GetSampledRequestsRequest":{ "type":"structure", "required":[ @@ -1059,7 +1065,7 @@ "WebAclId":{"shape":"ResourceId"}, "RuleId":{"shape":"ResourceId"}, "TimeWindow":{"shape":"TimeWindow"}, - "MaxItems":{"shape":"ListMaxItems"} + "MaxItems":{"shape":"GetSampledRequestsMaxItems"} } }, "GetSampledRequestsResponse":{ @@ -1242,11 +1248,6 @@ "IPSets":{"shape":"IPSetSummaries"} } }, - "ListMaxItems":{ - "type":"long", - "max":100, - "min":1 - }, "ListRulesRequest":{ "type":"structure", "members":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/docs-2.json index 5c225ddbf..8dfa0a97e 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/docs-2.json @@ -1,6 +1,6 @@ { "version": "2.0", - "service": "

This is the AWS WAF API Reference. This guide is for developers who need detailed information about the AWS WAF API actions, data types, and errors. For detailed information about AWS WAF features and an overview of how to use the AWS WAF API, see the AWS WAF Developer Guide.

", + "service": "

This is the AWS WAF API Reference for using AWS WAF with Amazon CloudFront. The AWS WAF actions and data types listed in the reference are available for protecting Amazon CloudFront distributions. You can use these actions and data types via the endpoint waf.amazonaws.com. This guide is for developers who need detailed information about the AWS WAF API actions, data types, and errors. For detailed information about AWS WAF features and an overview of how to use the AWS WAF API, see the AWS WAF Developer Guide.

", "operations": { "CreateByteMatchSet": "

Creates a ByteMatchSet. You then use UpdateByteMatchSet to identify the part of a web request that you want AWS WAF to inspect, such as the values of the User-Agent header or the query string. For example, you can create a ByteMatchSet that matches any requests with User-Agent headers that contain the string BadBot. You can then configure AWS WAF to reject those requests.

To create and configure a ByteMatchSet, perform the following steps:

  1. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateByteMatchSet request.

  2. Submit a CreateByteMatchSet request.

  3. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateByteMatchSet request.

  4. Submit an UpdateByteMatchSet request to specify the part of the request that you want AWS WAF to inspect (for example, the header or the URI) and the value that you want AWS WAF to watch for.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

", "CreateIPSet": "

Creates an IPSet, which you use to specify which web requests you want to allow or block based on the IP addresses that the requests originate from. For example, if you're receiving a lot of requests from one or more individual IP addresses or one or more ranges of IP addresses and you want to block the requests, you can create an IPSet that contains those IP addresses and then configure AWS WAF to block the requests.

To create and configure an IPSet, perform the following steps:

  1. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateIPSet request.

  2. Submit a CreateIPSet request.

  3. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateIPSet request.

  4. Submit an UpdateIPSet request to specify the IP addresses that you want AWS WAF to watch for.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

", @@ -21,7 +21,7 @@ "GetChangeTokenStatus": "

Returns the status of a ChangeToken that you got by calling GetChangeToken. ChangeTokenStatus is one of the following values:

  • PROVISIONED: You requested the change token by calling GetChangeToken, but you haven't used it yet in a call to create, update, or delete an AWS WAF object.

  • PENDING: AWS WAF is propagating the create, update, or delete request to all AWS WAF servers.

  • IN_SYNC: Propagation is complete.

", "GetIPSet": "

Returns the IPSet that is specified by IPSetId.

", "GetRule": "

Returns the Rule that is specified by the RuleId that you included in the GetRule request.

", - "GetSampledRequests": "

Gets detailed information about a specified number of requests--a sample--that AWS WAF randomly selects from among the first 5,000 requests that your AWS resource received during a time range that you choose. You can specify a sample size of up to 100 requests, and you can specify any time range in the previous three hours.

GetSampledRequests returns a time range, which is usually the time range that you specified. However, if your resource (such as a CloudFront distribution) received 5,000 requests before the specified time range elapsed, GetSampledRequests returns an updated time range. This new time range indicates the actual period during which AWS WAF selected the requests in the sample.

", + "GetSampledRequests": "

Gets detailed information about a specified number of requests--a sample--that AWS WAF randomly selects from among the first 5,000 requests that your AWS resource received during a time range that you choose. You can specify a sample size of up to 500 requests, and you can specify any time range in the previous three hours.

GetSampledRequests returns a time range, which is usually the time range that you specified. However, if your resource (such as a CloudFront distribution) received 5,000 requests before the specified time range elapsed, GetSampledRequests returns an updated time range. This new time range indicates the actual period during which AWS WAF selected the requests in the sample.

", "GetSizeConstraintSet": "

Returns the SizeConstraintSet specified by SizeConstraintSetId.

", "GetSqlInjectionMatchSet": "

Returns the SqlInjectionMatchSet that is specified by SqlInjectionMatchSetId.

", "GetWebACL": "

Returns the WebACL that is specified by WebACLId.

", @@ -38,7 +38,7 @@ "UpdateRule": "

Inserts or deletes Predicate objects in a Rule. Each Predicate object identifies a predicate, such as a ByteMatchSet or an IPSet, that specifies the web requests that you want to allow, block, or count. If you add more than one predicate to a Rule, a request must match all of the specifications to be allowed, blocked, or counted. For example, suppose you add the following to a Rule:

  • A ByteMatchSet that matches the value BadBot in the User-Agent header

  • An IPSet that matches the IP address 192.0.2.44

You then add the Rule to a WebACL and specify that you want to block requests that satisfy the Rule. For a request to be blocked, the User-Agent header in the request must contain the value BadBot and the request must originate from the IP address 192.0.2.44.

To create and configure a Rule, perform the following steps:

  1. Create and update the predicates that you want to include in the Rule.

  2. Create the Rule. See CreateRule.

  3. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateRule request.

  4. Submit an UpdateRule request to add predicates to the Rule.

  5. Create and update a WebACL that contains the Rule. See CreateWebACL.

If you want to replace one ByteMatchSet or IPSet with another, you delete the existing one and add the new one.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

", "UpdateSizeConstraintSet": "

Inserts or deletes SizeConstraint objects (filters) in a SizeConstraintSet. For each SizeConstraint object, you specify the following values:

  • Whether to insert or delete the object from the array. If you want to change a SizeConstraintSetUpdate object, you delete the existing object and add a new one.

  • The part of a web request that you want AWS WAF to evaluate, such as the length of a query string or the length of the User-Agent header.

  • Whether to perform any transformations on the request, such as converting it to lowercase, before checking its length. Note that transformations of the request body are not supported because the AWS resource forwards only the first 8192 bytes of your request to AWS WAF.

  • A ComparisonOperator used for evaluating the selected part of the request against the specified Size, such as equals, greater than, less than, and so on.

  • The length, in bytes, that you want AWS WAF to watch for in selected part of the request. The length is computed after applying the transformation.

For example, you can add a SizeConstraintSetUpdate object that matches web requests in which the length of the User-Agent header is greater than 100 bytes. You can then configure AWS WAF to block those requests.

To create and configure a SizeConstraintSet, perform the following steps:

  1. Create a SizeConstraintSet. For more information, see CreateSizeConstraintSet.

  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateSizeConstraintSet request.

  3. Submit an UpdateSizeConstraintSet request to specify the part of the request that you want AWS WAF to inspect (for example, the header or the URI) and the value that you want AWS WAF to watch for.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

", "UpdateSqlInjectionMatchSet": "

Inserts or deletes SqlInjectionMatchTuple objects (filters) in a SqlInjectionMatchSet. For each SqlInjectionMatchTuple object, you specify the following values:

  • Action: Whether to insert the object into or delete the object from the array. To change a SqlInjectionMatchTuple, you delete the existing object and add a new one.

  • FieldToMatch: The part of web requests that you want AWS WAF to inspect and, if you want AWS WAF to inspect a header, the name of the header.

  • TextTransformation: Which text transformation, if any, to perform on the web request before inspecting the request for snippets of malicious SQL code.

You use SqlInjectionMatchSet objects to specify which CloudFront requests you want to allow, block, or count. For example, if you're receiving requests that contain snippets of SQL code in the query string and you want to block the requests, you can create a SqlInjectionMatchSet with the applicable settings, and then configure AWS WAF to block the requests.

To create and configure a SqlInjectionMatchSet, perform the following steps:

  1. Submit a CreateSqlInjectionMatchSet request.

  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateIPSet request.

  3. Submit an UpdateSqlInjectionMatchSet request to specify the parts of web requests that you want AWS WAF to inspect for snippets of SQL code.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

", - "UpdateWebACL": "

Inserts or deletes ActivatedRule objects in a WebACL. Each Rule identifies web requests that you want to allow, block, or count. When you update a WebACL, you specify the following values:

  • A default action for the WebACL, either ALLOW or BLOCK. AWS WAF performs the default action if a request doesn't match the criteria in any of the Rules in a WebACL.

  • The Rules that you want to add and/or delete. If you want to replace one Rule with another, you delete the existing Rule and add the new one.

  • For each Rule, whether you want AWS WAF to allow requests, block requests, or count requests that match the conditions in the Rule.

  • The order in which you want AWS WAF to evaluate the Rules in a WebACL. If you add more than one Rule to a WebACL, AWS WAF evaluates each request against the Rules in order based on the value of Priority. (The Rule that has the lowest value for Priority is evaluated first.) When a web request matches all of the predicates (such as ByteMatchSets and IPSets) in a Rule, AWS WAF immediately takes the corresponding action, allow or block, and doesn't evaluate the request against the remaining Rules in the WebACL, if any.

  • The CloudFront distribution that you want to associate with the WebACL.

To create and configure a WebACL, perform the following steps:

  1. Create and update the predicates that you want to include in Rules. For more information, see CreateByteMatchSet, UpdateByteMatchSet, CreateIPSet, UpdateIPSet, CreateSqlInjectionMatchSet, and UpdateSqlInjectionMatchSet.

  2. Create and update the Rules that you want to include in the WebACL. For more information, see CreateRule and UpdateRule.

  3. Create a WebACL. See CreateWebACL.

  4. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateWebACL request.

  5. Submit an UpdateWebACL request to specify the Rules that you want to include in the WebACL, to specify the default action, and to associate the WebACL with a CloudFront distribution.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

", + "UpdateWebACL": "

Inserts or deletes ActivatedRule objects in a WebACL. Each Rule identifies web requests that you want to allow, block, or count. When you update a WebACL, you specify the following values:

  • A default action for the WebACL, either ALLOW or BLOCK. AWS WAF performs the default action if a request doesn't match the criteria in any of the Rules in a WebACL.

  • The Rules that you want to add and/or delete. If you want to replace one Rule with another, you delete the existing Rule and add the new one.

  • For each Rule, whether you want AWS WAF to allow requests, block requests, or count requests that match the conditions in the Rule.

  • The order in which you want AWS WAF to evaluate the Rules in a WebACL. If you add more than one Rule to a WebACL, AWS WAF evaluates each request against the Rules in order based on the value of Priority. (The Rule that has the lowest value for Priority is evaluated first.) When a web request matches all of the predicates (such as ByteMatchSets and IPSets) in a Rule, AWS WAF immediately takes the corresponding action, allow or block, and doesn't evaluate the request against the remaining Rules in the WebACL, if any.

To create and configure a WebACL, perform the following steps:

  1. Create and update the predicates that you want to include in Rules. For more information, see CreateByteMatchSet, UpdateByteMatchSet, CreateIPSet, UpdateIPSet, CreateSqlInjectionMatchSet, and UpdateSqlInjectionMatchSet.

  2. Create and update the Rules that you want to include in the WebACL. For more information, see CreateRule and UpdateRule.

  3. Create a WebACL. See CreateWebACL.

  4. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateWebACL request.

  5. Submit an UpdateWebACL request to specify the Rules that you want to include in the WebACL, to specify the default action, and to associate the WebACL with a CloudFront distribution.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

", "UpdateXssMatchSet": "

Inserts or deletes XssMatchTuple objects (filters) in an XssMatchSet. For each XssMatchTuple object, you specify the following values:

  • Action: Whether to insert the object into or delete the object from the array. To change a XssMatchTuple, you delete the existing object and add a new one.

  • FieldToMatch: The part of web requests that you want AWS WAF to inspect and, if you want AWS WAF to inspect a header, the name of the header.

  • TextTransformation: Which text transformation, if any, to perform on the web request before inspecting the request for cross-site scripting attacks.

You use XssMatchSet objects to specify which CloudFront requests you want to allow, block, or count. For example, if you're receiving requests that contain cross-site scripting attacks in the request body and you want to block the requests, you can create an XssMatchSet with the applicable settings, and then configure AWS WAF to block the requests.

To create and configure an XssMatchSet, perform the following steps:

  1. Submit a CreateXssMatchSet request.

  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateIPSet request.

  3. Submit an UpdateXssMatchSet request to specify the parts of web requests that you want AWS WAF to inspect for cross-site scripting attacks.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

" }, "shapes": { @@ -52,7 +52,7 @@ "base": "

The ActivatedRule object in an UpdateWebACL request specifies a Rule that you want to insert or delete, the priority of the Rule in the WebACL, and the action that you want AWS WAF to take when a web request matches the Rule (ALLOW, BLOCK, or COUNT).

To specify whether to insert or delete a Rule, use the Action parameter in the WebACLUpdate data type.

", "refs": { "ActivatedRules$member": null, - "WebACLUpdate$ActivatedRule": null + "WebACLUpdate$ActivatedRule": "

The ActivatedRule object in an UpdateWebACL request specifies a Rule that you want to insert or delete, the priority of the Rule in the WebACL, and the action that you want AWS WAF to take when a web request matches the Rule (ALLOW, BLOCK, or COUNT).

" } }, "ActivatedRules": { @@ -334,9 +334,9 @@ "base": "

Specifies where in a web request to look for TargetString.

", "refs": { "ByteMatchTuple$FieldToMatch": "

The part of a web request that you want AWS WAF to search, such as a specified header or a query string. For more information, see FieldToMatch.

", - "SizeConstraint$FieldToMatch": null, - "SqlInjectionMatchTuple$FieldToMatch": null, - "XssMatchTuple$FieldToMatch": null + "SizeConstraint$FieldToMatch": "

Specifies where in a web request to look for the size constraint.

", + "SqlInjectionMatchTuple$FieldToMatch": "

Specifies where in a web request to look for snippets of malicious SQL code.

", + "XssMatchTuple$FieldToMatch": "

Specifies where in a web request to look for cross-site scripting attacks.

" } }, "GetByteMatchSetRequest": { @@ -389,6 +389,12 @@ "refs": { } }, + "GetSampledRequestsMaxItems": { + "base": null, + "refs": { + "GetSampledRequestsRequest$MaxItems": "

The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value of MaxItems, GetSampledRequests returns information about all of them.

" + } + }, "GetSampledRequestsRequest": { "base": null, "refs": { @@ -563,12 +569,6 @@ "refs": { } }, - "ListMaxItems": { - "base": null, - "refs": { - "GetSampledRequestsRequest$MaxItems": "

The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value of MaxItems, GetSampledRequests returns information about all of them.

" - } - }, "ListRulesRequest": { "base": null, "refs": { @@ -636,8 +636,8 @@ "refs": { "CreateRuleRequest$MetricName": "

A friendly name or description for the metrics for this Rule. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change the name of the metric after you create the Rule.

", "CreateWebACLRequest$MetricName": "

A friendly name or description for the metrics for this WebACL. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change MetricName after you create the WebACL.

", - "Rule$MetricName": null, - "WebACL$MetricName": null + "Rule$MetricName": "

A friendly name or description for the metrics for this Rule. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change MetricName after you create the Rule.

", + "WebACL$MetricName": "

A friendly name or description for the metrics for this WebACL. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change MetricName after you create the WebACL.

" } }, "Negated": { @@ -957,7 +957,7 @@ "TimeWindow": { "base": "

In a GetSampledRequests request, the StartTime and EndTime objects specify the time range for which you want AWS WAF to return a sample of web requests.

In a GetSampledRequests response, the StartTime and EndTime objects specify the time range for which AWS WAF actually returned a sample of web requests. AWS WAF gets the specified number of requests from among the first 5,000 requests that your AWS resource receives during the specified time period. If your resource receives more than 5,000 requests during that period, AWS WAF stops sampling after the 5,000th request. In that case, EndTime is the time that AWS WAF received the 5,000th request.

", "refs": { - "GetSampledRequestsRequest$TimeWindow": "

The start date and time and the end date and time of the range for which you want GetSampledRequests to return a sample of requests. Specify the date and time in Unix time format (in seconds). You can specify any time range in the previous three hours.

", + "GetSampledRequestsRequest$TimeWindow": "

The start date and time and the end date and time of the range for which you want GetSampledRequests to return a sample of requests. Specify the date and time in the following format: \"2016-09-27T14:50Z\". You can specify any time range in the previous three hours.

", "GetSampledRequestsResponse$TimeWindow": "

Usually, TimeWindow is the time range that you specified in the GetSampledRequests request. However, if your AWS resource received more than 5,000 requests during the time range that you specified in the request, GetSampledRequests returns the time range for the first 5,000 requests.

" } }, @@ -965,8 +965,8 @@ "base": null, "refs": { "SampledHTTPRequest$Timestamp": "

The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).

", - "TimeWindow$StartTime": "

The beginning of the time range from which you want GetSampledRequests to return a sample of the requests that your AWS resource received. You can specify any time range in the previous three hours.

", - "TimeWindow$EndTime": "

The end of the time range from which you want GetSampledRequests to return a sample of the requests that your AWS resource received. You can specify any time range in the previous three hours.

" + "TimeWindow$StartTime": "

The beginning of the time range from which you want GetSampledRequests to return a sample of the requests that your AWS resource received. Specify the date and time in the following format: \"2016-09-27T14:50Z\". You can specify any time range in the previous three hours.

", + "TimeWindow$EndTime": "

The end of the time range from which you want GetSampledRequests to return a sample of the requests that your AWS resource received. Specify the date and time in the following format: \"2016-09-27T14:50Z\". You can specify any time range in the previous three hours.

" } }, "URIString": { @@ -1066,7 +1066,7 @@ } }, "WAFInvalidParameterException": { - "base": "

The operation failed because AWS WAF didn't recognize a parameter in the request. For example:

  • You specified an invalid parameter name.

  • You specified an invalid value.

  • You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using an action other than INSERT or DELETE.

  • You tried to create a WebACL with a DefaultAction Type other than ALLOW, BLOCK, or COUNT.

  • You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, or COUNT.

  • You tried to update a ByteMatchSet with a FieldToMatch Type other than HEADER, QUERY_STRING, or URI.

  • You tried to update a ByteMatchSet with a Field of HEADER but no value for Data.

", + "base": "

The operation failed because AWS WAF didn't recognize a parameter in the request. For example:

  • You specified an invalid parameter name.

  • You specified an invalid value.

  • You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using an action other than INSERT or DELETE.

  • You tried to create a WebACL with a DefaultAction Type other than ALLOW, BLOCK, or COUNT.

  • You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, or COUNT.

  • You tried to update a ByteMatchSet with a FieldToMatch Type other than HEADER, QUERY_STRING, or URI.

  • You tried to update a ByteMatchSet with a Field of HEADER but no value for Data.

  • Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.

", "refs": { } }, @@ -1105,7 +1105,7 @@ "refs": { "ActivatedRule$Action": "

Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the Rule. Valid values for Action include the following:

  • ALLOW: CloudFront responds with the requested object.

  • BLOCK: CloudFront responds with an HTTP 403 (Forbidden) status code.

  • COUNT: AWS WAF increments a counter of requests that match the conditions in the rule and then continues to inspect the web request based on the remaining rules in the web ACL.

", "CreateWebACLRequest$DefaultAction": "

The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the Rule objects that are associated with the WebACL.

", - "UpdateWebACLRequest$DefaultAction": null, + "UpdateWebACLRequest$DefaultAction": "

A default action for the web ACL, either ALLOW or BLOCK. AWS WAF performs the default action if a request doesn't match the criteria in any of the rules in a web ACL.

", "WebACL$DefaultAction": "

The action to perform if none of the Rules contained in the WebACL match. The action is specified by the WafAction object.

" } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/examples-1.json index 0ea7e3b0b..eee5b6f4f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/examples-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/examples-1.json @@ -1,5 +1,1017 @@ { "version": "1.0", "examples": { + "CreateIPSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "Name": "MyIPSetFriendlyName" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "IPSet": { + "IPSetDescriptors": [ + { + "Type": "IPV4", + "Value": "192.0.2.44/32" + } + ], + "IPSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "Name": "MyIPSetFriendlyName" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example creates an IP match set named MyIPSetFriendlyName.", + "id": "createipset-1472501003122", + "title": "To create an IP set" + } + ], + "CreateRule": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "MetricName": "WAFByteHeaderRule", + "Name": "WAFByteHeaderRule" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "Rule": { + "MetricName": "WAFByteHeaderRule", + "Name": "WAFByteHeaderRule", + "Predicates": [ + { + "DataId": "MyByteMatchSetID", + "Negated": false, + "Type": "ByteMatch" + } + ], + "RuleId": "WAFRule-1-Example" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example creates a rule named WAFByteHeaderRule.", + "id": "createrule-1474072675555", + "title": "To create a rule" + } + ], + "CreateSizeConstraintSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "Name": "MySampleSizeConstraintSet" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "SizeConstraintSet": { + "Name": "MySampleSizeConstraintSet", + "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "SizeConstraints": [ + { + "ComparisonOperator": "GT", + "FieldToMatch": { + "Type": "QUERY_STRING" + }, + "Size": 0, + "TextTransformation": "NONE" + } + ] + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example creates size constraint set named MySampleSizeConstraintSet.", + "id": "createsizeconstraint-1474299140754", + "title": "To create a size constraint" + } + ], + "CreateSqlInjectionMatchSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "Name": "MySQLInjectionMatchSet" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "SqlInjectionMatchSet": { + "Name": "MySQLInjectionMatchSet", + "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "SqlInjectionMatchTuples": [ + { + "FieldToMatch": { + "Type": "QUERY_STRING" + }, + "TextTransformation": "URL_DECODE" + } + ] + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example creates a SQL injection match set named MySQLInjectionMatchSet.", + "id": "createsqlinjectionmatchset-1474492796105", + "title": "To create a SQL injection match set" + } + ], + "CreateWebACL": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "DefaultAction": { + "Type": "ALLOW" + }, + "MetricName": "CreateExample", + "Name": "CreateExample" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "WebACL": { + "DefaultAction": { + "Type": "ALLOW" + }, + "MetricName": "CreateExample", + "Name": "CreateExample", + "Rules": [ + { + "Action": { + "Type": "ALLOW" + }, + "Priority": 1, + "RuleId": "WAFRule-1-Example" + } + ], + "WebACLId": "example-46da-4444-5555-example" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example creates a web ACL named CreateExample.", + "id": "createwebacl-1472061481310", + "title": "To create a web ACL" + } + ], + "CreateXssMatchSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "Name": "MySampleXssMatchSet" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "XssMatchSet": { + "Name": "MySampleXssMatchSet", + "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "XssMatchTuples": [ + { + "FieldToMatch": { + "Type": "QUERY_STRING" + }, + "TextTransformation": "URL_DECODE" + } + ] + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example creates an XSS match set named MySampleXssMatchSet.", + "id": "createxssmatchset-1474560868500", + "title": "To create an XSS match set" + } + ], + "DeleteByteMatchSet": [ + { + "input": { + "ByteMatchSetId": "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5", + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes a byte match set with the ID exampleIDs3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "deletebytematchset-1473367566229", + "title": "To delete a byte match set" + } + ], + "DeleteIPSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "IPSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes an IP match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "deleteipset-1472767434306", + "title": "To delete an IP set" + } + ], + "DeleteRule": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "RuleId": "WAFRule-1-Example" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes a rule with the ID WAFRule-1-Example.", + "id": "deleterule-1474073108749", + "title": "To delete a rule" + } + ], + "DeleteSizeConstraintSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes a size constraint set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "deletesizeconstraintset-1474299857905", + "title": "To delete a size constraint set" + } + ], + "DeleteSqlInjectionMatchSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes a SQL injection match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "deletesqlinjectionmatchset-1474493373197", + "title": "To delete a SQL injection match set" + } + ], + "DeleteWebACL": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "WebACLId": "example-46da-4444-5555-example" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes a web ACL with the ID example-46da-4444-5555-example.", + "id": "deletewebacl-1472767755931", + "title": "To delete a web ACL" + } + ], + "DeleteXssMatchSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes an XSS match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "deletexssmatchset-1474561302618", + "title": "To delete an XSS match set" + } + ], + "GetByteMatchSet": [ + { + "input": { + "ByteMatchSetId": "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "ByteMatchSet": { + "ByteMatchSetId": "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5", + "ByteMatchTuples": [ + { + "FieldToMatch": { + "Data": "referer", + "Type": "HEADER" + }, + "PositionalConstraint": "CONTAINS", + "TargetString": "badrefer1", + "TextTransformation": "NONE" + } + ], + "Name": "ByteMatchNameExample" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns the details of a byte match set with the ID exampleIDs3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "getbytematchset-1473273311532", + "title": "To get a byte match set" + } + ], + "GetChangeToken": [ + { + "input": { + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns a change token to use for a create, update or delete operation.", + "id": "get-change-token-example-1471635120794", + "title": "To get a change token" + } + ], + "GetChangeTokenStatus": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "output": { + "ChangeTokenStatus": "PENDING" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns the status of a change token with the ID abcd12f2-46da-4fdb-b8d5-fbd4c466928f.", + "id": "getchangetokenstatus-1474658417107", + "title": "To get the change token status" + } + ], + "GetIPSet": [ + { + "input": { + "IPSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "IPSet": { + "IPSetDescriptors": [ + { + "Type": "IPV4", + "Value": "192.0.2.44/32" + } + ], + "IPSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "Name": "MyIPSetFriendlyName" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns the details of an IP match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "getipset-1474658688675", + "title": "To get an IP set" + } + ], + "GetRule": [ + { + "input": { + "RuleId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "Rule": { + "MetricName": "WAFByteHeaderRule", + "Name": "WAFByteHeaderRule", + "Predicates": [ + { + "DataId": "MyByteMatchSetID", + "Negated": false, + "Type": "ByteMatch" + } + ], + "RuleId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns the details of a rule with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "getrule-1474659238790", + "title": "To get a rule" + } + ], + "GetSampledRequests": [ + { + "input": { + "MaxItems": 100, + "RuleId": "WAFRule-1-Example", + "TimeWindow": { + "EndTime": "2016-09-27T15:50Z", + "StartTime": "2016-09-27T15:50Z" + }, + "WebAclId": "createwebacl-1472061481310" + }, + "output": { + "PopulationSize": 50, + "SampledRequests": [ + { + "Action": "BLOCK", + "Request": { + "ClientIP": "192.0.2.44", + "Country": "US", + "HTTPVersion": "HTTP/1.1", + "Headers": [ + { + "Name": "User-Agent", + "Value": "BadBot " + } + ], + "Method": "HEAD" + }, + "Timestamp": "2016-09-27T14:55Z", + "Weight": 1 + } + ], + "TimeWindow": { + "EndTime": "2016-09-27T15:50Z", + "StartTime": "2016-09-27T14:50Z" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns detailed information about 100 requests --a sample-- that AWS WAF randomly selects from among the first 5,000 requests that your AWS resource received between the time period 2016-09-27T15:50Z to 2016-09-27T15:50Z.", + "id": "getsampledrequests-1474927997195", + "title": "To get a sampled requests" + } + ], + "GetSizeConstraintSet": [ + { + "input": { + "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "SizeConstraintSet": { + "Name": "MySampleSizeConstraintSet", + "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "SizeConstraints": [ + { + "ComparisonOperator": "GT", + "FieldToMatch": { + "Type": "QUERY_STRING" + }, + "Size": 0, + "TextTransformation": "NONE" + } + ] + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns the details of a size constraint match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "getsizeconstraintset-1475005422493", + "title": "To get a size constraint set" + } + ], + "GetSqlInjectionMatchSet": [ + { + "input": { + "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "SqlInjectionMatchSet": { + "Name": "MySQLInjectionMatchSet", + "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "SqlInjectionMatchTuples": [ + { + "FieldToMatch": { + "Type": "QUERY_STRING" + }, + "TextTransformation": "URL_DECODE" + } + ] + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns the details of a SQL injection match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "getsqlinjectionmatchset-1475005940137", + "title": "To get a SQL injection match set" + } + ], + "GetWebACL": [ + { + "input": { + "WebACLId": "createwebacl-1472061481310" + }, + "output": { + "WebACL": { + "DefaultAction": { + "Type": "ALLOW" + }, + "MetricName": "CreateExample", + "Name": "CreateExample", + "Rules": [ + { + "Action": { + "Type": "ALLOW" + }, + "Priority": 1, + "RuleId": "WAFRule-1-Example" + } + ], + "WebACLId": "createwebacl-1472061481310" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns the details of a web ACL with the ID createwebacl-1472061481310.", + "id": "getwebacl-1475006348525", + "title": "To get a web ACL" + } + ], + "GetXssMatchSet": [ + { + "input": { + "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "XssMatchSet": { + "Name": "MySampleXssMatchSet", + "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "XssMatchTuples": [ + { + "FieldToMatch": { + "Type": "QUERY_STRING" + }, + "TextTransformation": "URL_DECODE" + } + ] + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns the details of an XSS match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "getxssmatchset-1475187879017", + "title": "To get an XSS match set" + } + ], + "ListIPSets": [ + { + "input": { + "Limit": 100 + }, + "output": { + "IPSets": [ + { + "IPSetId": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "Name": "MyIPSetFriendlyName" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns an array of up to 100 IP match sets.", + "id": "listipsets-1472235676229", + "title": "To list IP sets" + } + ], + "ListRules": [ + { + "input": { + "Limit": 100 + }, + "output": { + "Rules": [ + { + "Name": "WAFByteHeaderRule", + "RuleId": "WAFRule-1-Example" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns an array of up to 100 rules.", + "id": "listrules-1475258406433", + "title": "To list rules" + } + ], + "ListSizeConstraintSets": [ + { + "input": { + "Limit": 100 + }, + "output": { + "SizeConstraintSets": [ + { + "Name": "MySampleSizeConstraintSet", + "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns an array of up to 100 size contraint match sets.", + "id": "listsizeconstraintsets-1474300067597", + "title": "To list a size constraint sets" + } + ], + "ListSqlInjectionMatchSets": [ + { + "input": { + "Limit": 100 + }, + "output": { + "SqlInjectionMatchSets": [ + { + "Name": "MySQLInjectionMatchSet", + "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns an array of up to 100 SQL injection match sets.", + "id": "listsqlinjectionmatchset-1474493560103", + "title": "To list SQL injection match sets" + } + ], + "ListWebACLs": [ + { + "input": { + "Limit": 100 + }, + "output": { + "WebACLs": [ + { + "Name": "WebACLexample", + "WebACLId": "webacl-1472061481310" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns an array of up to 100 web ACLs.", + "id": "listwebacls-1475258732691", + "title": "To list Web ACLs" + } + ], + "ListXssMatchSets": [ + { + "input": { + "Limit": 100 + }, + "output": { + "XssMatchSets": [ + { + "Name": "MySampleXssMatchSet", + "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example returns an array of up to 100 XSS match sets.", + "id": "listxssmatchsets-1474561481168", + "title": "To list XSS match sets" + } + ], + "UpdateByteMatchSet": [ + { + "input": { + "ByteMatchSetId": "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5", + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "Updates": [ + { + "Action": "DELETE", + "ByteMatchTuple": { + "FieldToMatch": { + "Data": "referer", + "Type": "HEADER" + }, + "PositionalConstraint": "CONTAINS", + "TargetString": "badrefer1", + "TextTransformation": "NONE" + } + } + ] + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes a ByteMatchTuple object (filters) in an byte match set with the ID exampleIDs3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "updatebytematchset-1475259074558", + "title": "To update a byte match set" + } + ], + "UpdateIPSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "IPSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "Updates": [ + { + "Action": "DELETE", + "IPSetDescriptor": { + "Type": "IPV4", + "Value": "192.0.2.44/32" + } + } + ] + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes an IPSetDescriptor object in an IP match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "updateipset-1475259733625", + "title": "To update an IP set" + } + ], + "UpdateRule": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "RuleId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "Updates": [ + { + "Action": "DELETE", + "Predicate": { + "DataId": "MyByteMatchSetID", + "Negated": false, + "Type": "ByteMatch" + } + } + ] + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes a Predicate object in a rule with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "updaterule-1475260064720", + "title": "To update a rule" + } + ], + "UpdateSizeConstraintSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "Updates": [ + { + "Action": "DELETE", + "SizeConstraint": { + "ComparisonOperator": "GT", + "FieldToMatch": { + "Type": "QUERY_STRING" + }, + "Size": 0, + "TextTransformation": "NONE" + } + } + ] + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes a SizeConstraint object (filters) in a size constraint set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "updatesizeconstraintset-1475531697891", + "title": "To update a size constraint set" + } + ], + "UpdateSqlInjectionMatchSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", + "Updates": [ + { + "Action": "DELETE", + "SqlInjectionMatchTuple": { + "FieldToMatch": { + "Type": "QUERY_STRING" + }, + "TextTransformation": "URL_DECODE" + } + } + ] + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes a SqlInjectionMatchTuple object (filters) in a SQL injection match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "updatesqlinjectionmatchset-1475532094686", + "title": "To update a SQL injection match set" + } + ], + "UpdateWebACL": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "DefaultAction": { + "Type": "ALLOW" + }, + "Updates": [ + { + "Action": "DELETE", + "ActivatedRule": { + "Action": { + "Type": "ALLOW" + }, + "Priority": 1, + "RuleId": "WAFRule-1-Example" + } + } + ], + "WebACLId": "webacl-1472061481310" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes an ActivatedRule object in a WebACL with the ID webacl-1472061481310.", + "id": "updatewebacl-1475533627385", + "title": "To update a Web ACL" + } + ], + "UpdateXssMatchSet": [ + { + "input": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", + "Updates": [ + { + "Action": "DELETE", + "XssMatchTuple": { + "FieldToMatch": { + "Type": "QUERY_STRING" + }, + "TextTransformation": "URL_DECODE" + } + } + ], + "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" + }, + "output": { + "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example deletes an XssMatchTuple object (filters) in an XssMatchSet with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", + "id": "updatexssmatchset-1475534098881", + "title": "To update an XSS match set" + } + ] } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/paginators-1.json new file mode 100644 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/workdocs/2016-05-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/workdocs/2016-05-01/api-2.json new file mode 100644 index 000000000..cc03e6253 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/workdocs/2016-05-01/api-2.json @@ -0,0 +1,1781 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2016-05-01", + "endpointPrefix":"workdocs", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceFullName":"Amazon WorkDocs", + "signatureVersion":"v4", + "uid":"workdocs-2016-05-01" + }, + "operations":{ + "AbortDocumentVersionUpload":{ + "name":"AbortDocumentVersionUpload", + "http":{ + "method":"DELETE", + "requestUri":"/api/v1/documents/{DocumentId}/versions/{VersionId}", + "responseCode":204 + }, + "input":{"shape":"AbortDocumentVersionUploadRequest"}, + "errors":[ + {"shape":"EntityNotExistsException"}, + {"shape":"ProhibitedStateException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "ActivateUser":{ + "name":"ActivateUser", + "http":{ + "method":"POST", + "requestUri":"/api/v1/users/{UserId}/activation", + "responseCode":200 + }, + "input":{"shape":"ActivateUserRequest"}, + "output":{"shape":"ActivateUserResponse"}, + "errors":[ + {"shape":"EntityNotExistsException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "AddResourcePermissions":{ + "name":"AddResourcePermissions", + "http":{ + "method":"POST", + "requestUri":"/api/v1/resources/{ResourceId}/permissions", + "responseCode":201 + }, + "input":{"shape":"AddResourcePermissionsRequest"}, + "output":{"shape":"AddResourcePermissionsResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "CreateFolder":{ + "name":"CreateFolder", + "http":{ + "method":"POST", + "requestUri":"/api/v1/folders", + "responseCode":201 + }, + "input":{"shape":"CreateFolderRequest"}, + "output":{"shape":"CreateFolderResponse"}, + "errors":[ + {"shape":"EntityNotExistsException"}, + {"shape":"EntityAlreadyExistsException"}, + {"shape":"ProhibitedStateException"}, + {"shape":"LimitExceededException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "CreateNotificationSubscription":{ + "name":"CreateNotificationSubscription", + "http":{ + "method":"POST", + "requestUri":"/api/v1/organizations/{OrganizationId}/subscriptions", + "responseCode":200 + }, + "input":{"shape":"CreateNotificationSubscriptionRequest"}, + "output":{"shape":"CreateNotificationSubscriptionResponse"}, + "errors":[ + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"TooManySubscriptionsException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "CreateUser":{ + "name":"CreateUser", + "http":{ + "method":"POST", + "requestUri":"/api/v1/users", + "responseCode":201 + }, + "input":{"shape":"CreateUserRequest"}, + "output":{"shape":"CreateUserResponse"}, + "errors":[ + {"shape":"EntityAlreadyExistsException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "DeactivateUser":{ + "name":"DeactivateUser", + "http":{ + "method":"DELETE", + "requestUri":"/api/v1/users/{UserId}/activation", + "responseCode":204 + }, + "input":{"shape":"DeactivateUserRequest"}, + "errors":[ + {"shape":"EntityNotExistsException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "DeleteDocument":{ + "name":"DeleteDocument", + "http":{ + "method":"DELETE", + "requestUri":"/api/v1/documents/{DocumentId}", + "responseCode":204 + }, + "input":{"shape":"DeleteDocumentRequest"}, + "errors":[ + {"shape":"EntityNotExistsException"}, + {"shape":"ProhibitedStateException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "DeleteFolder":{ + "name":"DeleteFolder", + "http":{ + "method":"DELETE", + "requestUri":"/api/v1/folders/{FolderId}", + "responseCode":204 + }, + "input":{"shape":"DeleteFolderRequest"}, + "errors":[ + {"shape":"EntityNotExistsException"}, + {"shape":"ProhibitedStateException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "DeleteFolderContents":{ + "name":"DeleteFolderContents", + "http":{ + "method":"DELETE", + "requestUri":"/api/v1/folders/{FolderId}/contents", + "responseCode":204 + }, + "input":{"shape":"DeleteFolderContentsRequest"}, + "errors":[ + {"shape":"EntityNotExistsException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "DeleteNotificationSubscription":{ + "name":"DeleteNotificationSubscription", + "http":{ + "method":"DELETE", + "requestUri":"/api/v1/organizations/{OrganizationId}/subscriptions/{SubscriptionId}", + "responseCode":200 + }, + "input":{"shape":"DeleteNotificationSubscriptionRequest"}, + "errors":[ + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"EntityNotExistsException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ProhibitedStateException"} + ] + }, + "DeleteUser":{ + "name":"DeleteUser", + "http":{ + "method":"DELETE", + "requestUri":"/api/v1/users/{UserId}", + "responseCode":204 + }, + "input":{"shape":"DeleteUserRequest"}, + "errors":[ + {"shape":"EntityNotExistsException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "DescribeDocumentVersions":{ + "name":"DescribeDocumentVersions", + "http":{ + "method":"GET", + "requestUri":"/api/v1/documents/{DocumentId}/versions", + "responseCode":200 + }, + "input":{"shape":"DescribeDocumentVersionsRequest"}, + "output":{"shape":"DescribeDocumentVersionsResponse"}, + "errors":[ + {"shape":"EntityNotExistsException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ProhibitedStateException"} + ] + }, + "DescribeFolderContents":{ + "name":"DescribeFolderContents", + "http":{ + "method":"GET", + "requestUri":"/api/v1/folders/{FolderId}/contents", + "responseCode":200 + }, + "input":{"shape":"DescribeFolderContentsRequest"}, + "output":{"shape":"DescribeFolderContentsResponse"}, + "errors":[ + {"shape":"EntityNotExistsException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ProhibitedStateException"} + ] + }, + "DescribeNotificationSubscriptions":{ + "name":"DescribeNotificationSubscriptions", + "http":{ + "method":"GET", + "requestUri":"/api/v1/organizations/{OrganizationId}/subscriptions", + "responseCode":200 + }, + "input":{"shape":"DescribeNotificationSubscriptionsRequest"}, + "output":{"shape":"DescribeNotificationSubscriptionsResponse"}, + "errors":[ + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"EntityNotExistsException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "DescribeResourcePermissions":{ + "name":"DescribeResourcePermissions", + "http":{ + "method":"GET", + "requestUri":"/api/v1/resources/{ResourceId}/permissions", + "responseCode":200 + }, + "input":{"shape":"DescribeResourcePermissionsRequest"}, + "output":{"shape":"DescribeResourcePermissionsResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "DescribeUsers":{ + "name":"DescribeUsers", + "http":{ + "method":"GET", + "requestUri":"/api/v1/users", + "responseCode":200 + }, + "input":{"shape":"DescribeUsersRequest"}, + "output":{"shape":"DescribeUsersResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"InvalidArgumentException"} + ] + }, + "GetDocument":{ + "name":"GetDocument", + "http":{ + "method":"GET", + "requestUri":"/api/v1/documents/{DocumentId}", + "responseCode":200 + }, + "input":{"shape":"GetDocumentRequest"}, + "output":{"shape":"GetDocumentResponse"}, + "errors":[ + {"shape":"EntityNotExistsException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "GetDocumentPath":{ + "name":"GetDocumentPath", + "http":{ + "method":"GET", + "requestUri":"/api/v1/documents/{DocumentId}/path", + "responseCode":200 + }, + "input":{"shape":"GetDocumentPathRequest"}, + "output":{"shape":"GetDocumentPathResponse"}, + "errors":[ + {"shape":"EntityNotExistsException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "GetDocumentVersion":{ + "name":"GetDocumentVersion", + "http":{ + "method":"GET", + "requestUri":"/api/v1/documents/{DocumentId}/versions/{VersionId}", + "responseCode":200 + }, + "input":{"shape":"GetDocumentVersionRequest"}, + "output":{"shape":"GetDocumentVersionResponse"}, + "errors":[ + {"shape":"EntityNotExistsException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ProhibitedStateException"} + ] + }, + "GetFolder":{ + "name":"GetFolder", + "http":{ + "method":"GET", + "requestUri":"/api/v1/folders/{FolderId}", + "responseCode":200 + }, + "input":{"shape":"GetFolderRequest"}, + "output":{"shape":"GetFolderResponse"}, + "errors":[ + {"shape":"EntityNotExistsException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ProhibitedStateException"} + ] + }, + "GetFolderPath":{ + "name":"GetFolderPath", + "http":{ + "method":"GET", + "requestUri":"/api/v1/folders/{FolderId}/path", + "responseCode":200 + }, + "input":{"shape":"GetFolderPathRequest"}, + "output":{"shape":"GetFolderPathResponse"}, + "errors":[ + {"shape":"EntityNotExistsException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "InitiateDocumentVersionUpload":{ + "name":"InitiateDocumentVersionUpload", + "http":{ + "method":"POST", + "requestUri":"/api/v1/documents", + "responseCode":201 + }, + "input":{"shape":"InitiateDocumentVersionUploadRequest"}, + "output":{"shape":"InitiateDocumentVersionUploadResponse"}, + "errors":[ + {"shape":"EntityNotExistsException"}, + {"shape":"EntityAlreadyExistsException"}, + {"shape":"StorageLimitExceededException"}, + {"shape":"StorageLimitWillExceedException"}, + {"shape":"ProhibitedStateException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "RemoveAllResourcePermissions":{ + "name":"RemoveAllResourcePermissions", + "http":{ + "method":"DELETE", + "requestUri":"/api/v1/resources/{ResourceId}/permissions", + "responseCode":204 + }, + "input":{"shape":"RemoveAllResourcePermissionsRequest"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "RemoveResourcePermission":{ + "name":"RemoveResourcePermission", + "http":{ + "method":"DELETE", + "requestUri":"/api/v1/resources/{ResourceId}/permissions/{PrincipalId}", + "responseCode":204 + }, + "input":{"shape":"RemoveResourcePermissionRequest"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "UpdateDocument":{ + "name":"UpdateDocument", + "http":{ + "method":"PATCH", + "requestUri":"/api/v1/documents/{DocumentId}", + "responseCode":200 + }, + "input":{"shape":"UpdateDocumentRequest"}, + "errors":[ + {"shape":"EntityNotExistsException"}, + {"shape":"EntityAlreadyExistsException"}, + {"shape":"LimitExceededException"}, + {"shape":"ProhibitedStateException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "UpdateDocumentVersion":{ + "name":"UpdateDocumentVersion", + "http":{ + "method":"PATCH", + "requestUri":"/api/v1/documents/{DocumentId}/versions/{VersionId}", + "responseCode":200 + }, + "input":{"shape":"UpdateDocumentVersionRequest"}, + "errors":[ + {"shape":"EntityNotExistsException"}, + {"shape":"ProhibitedStateException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"InvalidOperationException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "UpdateFolder":{ + "name":"UpdateFolder", + "http":{ + "method":"PATCH", + "requestUri":"/api/v1/folders/{FolderId}", + "responseCode":200 + }, + "input":{"shape":"UpdateFolderRequest"}, + "errors":[ + {"shape":"EntityNotExistsException"}, + {"shape":"EntityAlreadyExistsException"}, + {"shape":"ProhibitedStateException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"LimitExceededException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "UpdateUser":{ + "name":"UpdateUser", + "http":{ + "method":"PATCH", + "requestUri":"/api/v1/users/{UserId}", + "responseCode":200 + }, + "input":{"shape":"UpdateUserRequest"}, + "output":{"shape":"UpdateUserResponse"}, + "errors":[ + {"shape":"EntityNotExistsException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"IllegalUserStateException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"DeactivatingLastSystemUserException"} + ] + } + }, + "shapes":{ + "AbortDocumentVersionUploadRequest":{ + "type":"structure", + "required":[ + "DocumentId", + "VersionId" + ], + "members":{ + "DocumentId":{ + "shape":"ResourceIdType", + "location":"uri", + "locationName":"DocumentId" + }, + "VersionId":{ + "shape":"DocumentVersionIdType", + "location":"uri", + "locationName":"VersionId" + } + } + }, + "ActivateUserRequest":{ + "type":"structure", + "required":["UserId"], + "members":{ + "UserId":{ + "shape":"IdType", + "location":"uri", + "locationName":"UserId" + } + } + }, + "ActivateUserResponse":{ + "type":"structure", + "members":{ + "User":{"shape":"User"} + } + }, + "AddResourcePermissionsRequest":{ + "type":"structure", + "required":[ + "ResourceId", + "Principals" + ], + "members":{ + "ResourceId":{ + "shape":"ResourceIdType", + "location":"uri", + "locationName":"ResourceId" + }, + "Principals":{"shape":"SharePrincipalList"} + } + }, + "AddResourcePermissionsResponse":{ + "type":"structure", + "members":{ + "ShareResults":{"shape":"ShareResultsList"} + } + }, + "ConcurrentModificationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessageType"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "CreateFolderRequest":{ + "type":"structure", + "required":["ParentFolderId"], + "members":{ + "Name":{"shape":"ResourceNameType"}, + "ParentFolderId":{"shape":"ResourceIdType"} + } + }, + "CreateFolderResponse":{ + "type":"structure", + "members":{ + "Metadata":{"shape":"FolderMetadata"} + } + }, + "CreateNotificationSubscriptionRequest":{ + "type":"structure", + "required":[ + "OrganizationId", + "Endpoint", + "Protocol", + "SubscriptionType" + ], + "members":{ + "OrganizationId":{ + "shape":"IdType", + "location":"uri", + "locationName":"OrganizationId" + }, + "Endpoint":{"shape":"SubscriptionEndPointType"}, + "Protocol":{"shape":"SubscriptionProtocolType"}, + "SubscriptionType":{"shape":"SubscriptionType"} + } + }, + "CreateNotificationSubscriptionResponse":{ + "type":"structure", + "members":{ + "Subscription":{"shape":"Subscription"} + } + }, + "CreateUserRequest":{ + "type":"structure", + "required":[ + "Username", + "GivenName", + "Surname", + "Password" + ], + "members":{ + "OrganizationId":{"shape":"IdType"}, + "Username":{"shape":"UsernameType"}, + "GivenName":{"shape":"UserAttributeValueType"}, + "Surname":{"shape":"UserAttributeValueType"}, + "Password":{"shape":"PasswordType"}, + "TimeZoneId":{"shape":"TimeZoneIdType"}, + "StorageRule":{"shape":"StorageRuleType"} + } + }, + "CreateUserResponse":{ + "type":"structure", + "members":{ + "User":{"shape":"User"} + } + }, + "DeactivateUserRequest":{ + "type":"structure", + "required":["UserId"], + "members":{ + "UserId":{ + "shape":"IdType", + "location":"uri", + "locationName":"UserId" + } + } + }, + "DeactivatingLastSystemUserException":{ + "type":"structure", + "members":{ + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "DeleteDocumentRequest":{ + "type":"structure", + "required":["DocumentId"], + "members":{ + "DocumentId":{ + "shape":"ResourceIdType", + "location":"uri", + "locationName":"DocumentId" + } + } + }, + "DeleteFolderContentsRequest":{ + "type":"structure", + "required":["FolderId"], + "members":{ + "FolderId":{ + "shape":"ResourceIdType", + "location":"uri", + "locationName":"FolderId" + } + } + }, + "DeleteFolderRequest":{ + "type":"structure", + "required":["FolderId"], + "members":{ + "FolderId":{ + "shape":"ResourceIdType", + "location":"uri", + "locationName":"FolderId" + } + } + }, + "DeleteNotificationSubscriptionRequest":{ + "type":"structure", + "required":[ + "SubscriptionId", + "OrganizationId" + ], + "members":{ + "SubscriptionId":{ + "shape":"IdType", + "location":"uri", + "locationName":"SubscriptionId" + }, + "OrganizationId":{ + "shape":"IdType", + "location":"uri", + "locationName":"OrganizationId" + } + } + }, + "DeleteUserRequest":{ + "type":"structure", + "required":["UserId"], + "members":{ + "UserId":{ + "shape":"IdType", + "location":"uri", + "locationName":"UserId" + } + } + }, + "DescribeDocumentVersionsRequest":{ + "type":"structure", + "required":["DocumentId"], + "members":{ + "DocumentId":{ + "shape":"ResourceIdType", + "location":"uri", + "locationName":"DocumentId" + }, + "Marker":{ + "shape":"PageMarkerType", + "location":"querystring", + "locationName":"marker" + }, + "Limit":{ + "shape":"LimitType", + "location":"querystring", + "locationName":"limit" + }, + "Include":{ + "shape":"FieldNamesType", + "location":"querystring", + "locationName":"include" + }, + "Fields":{ + "shape":"FieldNamesType", + "location":"querystring", + "locationName":"fields" + } + } + }, + "DescribeDocumentVersionsResponse":{ + "type":"structure", + "members":{ + "DocumentVersions":{"shape":"DocumentVersionMetadataList"}, + "Marker":{"shape":"PageMarkerType"} + } + }, + "DescribeFolderContentsRequest":{ + "type":"structure", + "required":["FolderId"], + "members":{ + "FolderId":{ + "shape":"ResourceIdType", + "location":"uri", + "locationName":"FolderId" + }, + "Sort":{ + "shape":"ResourceSortType", + "location":"querystring", + "locationName":"sort" + }, + "Order":{ + "shape":"OrderType", + "location":"querystring", + "locationName":"order" + }, + "Limit":{ + "shape":"LimitType", + "location":"querystring", + "locationName":"limit" + }, + "Marker":{ + "shape":"PageMarkerType", + "location":"querystring", + "locationName":"marker" + }, + "Type":{ + "shape":"FolderContentType", + "location":"querystring", + "locationName":"type" + }, + "Include":{ + "shape":"FieldNamesType", + "location":"querystring", + "locationName":"include" + } + } + }, + "DescribeFolderContentsResponse":{ + "type":"structure", + "members":{ + "Folders":{"shape":"FolderMetadataList"}, + "Documents":{"shape":"DocumentMetadataList"}, + "Marker":{"shape":"PageMarkerType"} + } + }, + "DescribeNotificationSubscriptionsRequest":{ + "type":"structure", + "required":["OrganizationId"], + "members":{ + "OrganizationId":{ + "shape":"IdType", + "location":"uri", + "locationName":"OrganizationId" + }, + "Marker":{ + "shape":"PageMarkerType", + "location":"querystring", + "locationName":"marker" + }, + "Limit":{ + "shape":"LimitType", + "location":"querystring", + "locationName":"limit" + } + } + }, + "DescribeNotificationSubscriptionsResponse":{ + "type":"structure", + "members":{ + "Subscriptions":{"shape":"SubscriptionList"}, + "Marker":{"shape":"PageMarkerType"} + } + }, + "DescribeResourcePermissionsRequest":{ + "type":"structure", + "required":["ResourceId"], + "members":{ + "ResourceId":{ + "shape":"ResourceIdType", + "location":"uri", + "locationName":"ResourceId" + }, + "Limit":{ + "shape":"LimitType", + "location":"querystring", + "locationName":"limit" + }, + "Marker":{ + "shape":"PageMarkerType", + "location":"querystring", + "locationName":"marker" + } + } + }, + "DescribeResourcePermissionsResponse":{ + "type":"structure", + "members":{ + "Principals":{"shape":"PrincipalList"}, + "Marker":{"shape":"PageMarkerType"} + } + }, + "DescribeUsersRequest":{ + "type":"structure", + "members":{ + "OrganizationId":{ + "shape":"IdType", + "location":"querystring", + "locationName":"organizationId" + }, + "UserIds":{ + "shape":"UserIdsType", + "location":"querystring", + "locationName":"userIds" + }, + "Query":{ + "shape":"SearchQueryType", + "location":"querystring", + "locationName":"query" + }, + "Include":{ + "shape":"UserFilterType", + "location":"querystring", + "locationName":"include" + }, + "Order":{ + "shape":"OrderType", + "location":"querystring", + "locationName":"order" + }, + "Sort":{ + "shape":"UserSortType", + "location":"querystring", + "locationName":"sort" + }, + "Marker":{ + "shape":"PageMarkerType", + "location":"querystring", + "locationName":"marker" + }, + "Limit":{ + "shape":"LimitType", + "location":"querystring", + "locationName":"limit" + }, + "Fields":{ + "shape":"FieldNamesType", + "location":"querystring", + "locationName":"fields" + } + } + }, + "DescribeUsersResponse":{ + "type":"structure", + "members":{ + "Users":{"shape":"OrganizationUserList"}, + "TotalNumberOfUsers":{"shape":"SizeType"}, + "Marker":{"shape":"PageMarkerType"} + } + }, + "DocumentContentType":{ + "type":"string", + "max":128, + "min":1 + }, + "DocumentMetadata":{ + "type":"structure", + "members":{ + "Id":{"shape":"ResourceIdType"}, + "CreatorId":{"shape":"IdType"}, + "ParentFolderId":{"shape":"ResourceIdType"}, + "CreatedTimestamp":{"shape":"TimestampType"}, + "ModifiedTimestamp":{"shape":"TimestampType"}, + "LatestVersionMetadata":{"shape":"DocumentVersionMetadata"}, + "ResourceState":{"shape":"ResourceStateType"} + } + }, + "DocumentMetadataList":{ + "type":"list", + "member":{"shape":"DocumentMetadata"} + }, + "DocumentSourceType":{ + "type":"string", + "enum":[ + "ORIGINAL", + "WITH_COMMENTS" + ] + }, + "DocumentSourceUrlMap":{ + "type":"map", + "key":{"shape":"DocumentSourceType"}, + "value":{"shape":"UrlType"} + }, + "DocumentStatusType":{ + "type":"string", + "enum":[ + "INITIALIZED", + "ACTIVE" + ] + }, + "DocumentThumbnailType":{ + "type":"string", + "enum":[ + "SMALL", + "SMALL_HQ", + "LARGE" + ] + }, + "DocumentThumbnailUrlMap":{ + "type":"map", + "key":{"shape":"DocumentThumbnailType"}, + "value":{"shape":"UrlType"} + }, + "DocumentVersionIdType":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[\\w+-.@]+" + }, + "DocumentVersionMetadata":{ + "type":"structure", + "members":{ + "Id":{"shape":"DocumentVersionIdType"}, + "Name":{"shape":"ResourceNameType"}, + "ContentType":{"shape":"DocumentContentType"}, + "Size":{"shape":"SizeType"}, + "Signature":{"shape":"HashType"}, + "Status":{"shape":"DocumentStatusType"}, + "CreatedTimestamp":{"shape":"TimestampType"}, + "ModifiedTimestamp":{"shape":"TimestampType"}, + "ContentCreatedTimestamp":{"shape":"TimestampType"}, + "ContentModifiedTimestamp":{"shape":"TimestampType"}, + "CreatorId":{"shape":"IdType"}, + "Thumbnail":{"shape":"DocumentThumbnailUrlMap"}, + "Source":{"shape":"DocumentSourceUrlMap"} + } + }, + "DocumentVersionMetadataList":{ + "type":"list", + "member":{"shape":"DocumentVersionMetadata"} + }, + "DocumentVersionStatus":{ + "type":"string", + "enum":["ACTIVE"] + }, + "EmailAddressType":{ + "type":"string", + "max":256, + "min":1, + "pattern":"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}" + }, + "EntityAlreadyExistsException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessageType"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "EntityIdList":{ + "type":"list", + "member":{"shape":"IdType"} + }, + "EntityNotExistsException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessageType"}, + "EntityIds":{"shape":"EntityIdList"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "ErrorMessageType":{"type":"string"}, + "FailedDependencyException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessageType"} + }, + "error":{"httpStatusCode":424}, + "exception":true + }, + "FieldNamesType":{ + "type":"string", + "max":256, + "min":1, + "pattern":"[\\w,]+" + }, + "FolderContentType":{ + "type":"string", + "enum":[ + "ALL", + "DOCUMENT", + "FOLDER" + ] + }, + "FolderMetadata":{ + "type":"structure", + "members":{ + "Id":{"shape":"ResourceIdType"}, + "Name":{"shape":"ResourceNameType"}, + "CreatorId":{"shape":"IdType"}, + "ParentFolderId":{"shape":"ResourceIdType"}, + "CreatedTimestamp":{"shape":"TimestampType"}, + "ModifiedTimestamp":{"shape":"TimestampType"}, + "ResourceState":{"shape":"ResourceStateType"}, + "Signature":{"shape":"HashType"} + } + }, + "FolderMetadataList":{ + "type":"list", + "member":{"shape":"FolderMetadata"} + }, + "GetDocumentPathRequest":{ + "type":"structure", + "required":["DocumentId"], + "members":{ + "DocumentId":{ + "shape":"IdType", + "location":"uri", + "locationName":"DocumentId" + }, + "Limit":{ + "shape":"LimitType", + "location":"querystring", + "locationName":"limit" + }, + "Fields":{ + "shape":"FieldNamesType", + "location":"querystring", + "locationName":"fields" + }, + "Marker":{ + "shape":"PageMarkerType", + "location":"querystring", + "locationName":"marker" + } + } + }, + "GetDocumentPathResponse":{ + "type":"structure", + "members":{ + "Path":{"shape":"ResourcePath"} + } + }, + "GetDocumentRequest":{ + "type":"structure", + "required":["DocumentId"], + "members":{ + "DocumentId":{ + "shape":"ResourceIdType", + "location":"uri", + "locationName":"DocumentId" + } + } + }, + "GetDocumentResponse":{ + "type":"structure", + "members":{ + "Metadata":{"shape":"DocumentMetadata"} + } + }, + "GetDocumentVersionRequest":{ + "type":"structure", + "required":[ + "DocumentId", + "VersionId" + ], + "members":{ + "DocumentId":{ + "shape":"ResourceIdType", + "location":"uri", + "locationName":"DocumentId" + }, + "VersionId":{ + "shape":"DocumentVersionIdType", + "location":"uri", + "locationName":"VersionId" + }, + "Fields":{ + "shape":"FieldNamesType", + "location":"querystring", + "locationName":"fields" + } + } + }, + "GetDocumentVersionResponse":{ + "type":"structure", + "members":{ + "Metadata":{"shape":"DocumentVersionMetadata"} + } + }, + "GetFolderPathRequest":{ + "type":"structure", + "required":["FolderId"], + "members":{ + "FolderId":{ + "shape":"IdType", + "location":"uri", + "locationName":"FolderId" + }, + "Limit":{ + "shape":"LimitType", + "location":"querystring", + "locationName":"limit" + }, + "Fields":{ + "shape":"FieldNamesType", + "location":"querystring", + "locationName":"fields" + }, + "Marker":{ + "shape":"PageMarkerType", + "location":"querystring", + "locationName":"marker" + } + } + }, + "GetFolderPathResponse":{ + "type":"structure", + "members":{ + "Path":{"shape":"ResourcePath"} + } + }, + "GetFolderRequest":{ + "type":"structure", + "required":["FolderId"], + "members":{ + "FolderId":{ + "shape":"ResourceIdType", + "location":"uri", + "locationName":"FolderId" + } + } + }, + "GetFolderResponse":{ + "type":"structure", + "members":{ + "Metadata":{"shape":"FolderMetadata"} + } + }, + "HashType":{ + "type":"string", + "max":128, + "min":0, + "pattern":"[&\\w+-.@]+" + }, + "HeaderNameType":{ + "type":"string", + "max":256, + "min":1, + "pattern":"[\\w-]+" + }, + "HeaderValueType":{ + "type":"string", + "max":1024, + "min":1 + }, + "IdType":{ + "type":"string", + "max":256, + "min":1, + "pattern":"[&\\w+-.@]+" + }, + "IllegalUserStateException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessageType"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "InitiateDocumentVersionUploadRequest":{ + "type":"structure", + "required":["ParentFolderId"], + "members":{ + "Id":{"shape":"ResourceIdType"}, + "Name":{"shape":"ResourceNameType"}, + "ContentCreatedTimestamp":{"shape":"TimestampType"}, + "ContentModifiedTimestamp":{"shape":"TimestampType"}, + "ContentType":{"shape":"DocumentContentType"}, + "DocumentSizeInBytes":{"shape":"SizeType"}, + "ParentFolderId":{"shape":"ResourceIdType"} + } + }, + "InitiateDocumentVersionUploadResponse":{ + "type":"structure", + "members":{ + "Metadata":{"shape":"DocumentMetadata"}, + "UploadMetadata":{"shape":"UploadMetadata"} + } + }, + "InvalidArgumentException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessageType"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidOperationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessageType"} + }, + "error":{"httpStatusCode":405}, + "exception":true + }, + "LimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessageType"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "LimitType":{ + "type":"integer", + "max":999, + "min":1 + }, + "LocaleType":{ + "type":"string", + "enum":[ + "en", + "fr", + "ko", + "de", + "es", + "ja", + "ru", + "zh_CN", + "zh_TW", + "pt_BR", + "default" + ] + }, + "MessageType":{ + "type":"string", + "max":2048, + "min":0, + "sensitive":true + }, + "OrderType":{ + "type":"string", + "enum":[ + "ASCENDING", + "DESCENDING" + ] + }, + "OrganizationUserList":{ + "type":"list", + "member":{"shape":"User"} + }, + "PageMarkerType":{ + "type":"string", + "max":2048, + "min":1 + }, + "PasswordType":{ + "type":"string", + "max":32, + "min":4, + "pattern":"[\\u0020-\\u00FF]+", + "sensitive":true + }, + "PermissionInfo":{ + "type":"structure", + "members":{ + "Role":{"shape":"RoleType"}, + "Type":{"shape":"RolePermissionType"} + } + }, + "PermissionInfoList":{ + "type":"list", + "member":{"shape":"PermissionInfo"} + }, + "PositiveSizeType":{ + "type":"long", + "min":0 + }, + "Principal":{ + "type":"structure", + "members":{ + "Id":{"shape":"IdType"}, + "Type":{"shape":"PrincipalType"}, + "Roles":{"shape":"PermissionInfoList"} + } + }, + "PrincipalList":{ + "type":"list", + "member":{"shape":"Principal"} + }, + "PrincipalType":{ + "type":"string", + "enum":[ + "USER", + "GROUP", + "INVITE", + "ANONYMOUS", + "ORGANIZATION" + ] + }, + "ProhibitedStateException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessageType"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "RemoveAllResourcePermissionsRequest":{ + "type":"structure", + "required":["ResourceId"], + "members":{ + "ResourceId":{ + "shape":"ResourceIdType", + "location":"uri", + "locationName":"ResourceId" + } + } + }, + "RemoveResourcePermissionRequest":{ + "type":"structure", + "required":[ + "ResourceId", + "PrincipalId" + ], + "members":{ + "ResourceId":{ + "shape":"ResourceIdType", + "location":"uri", + "locationName":"ResourceId" + }, + "PrincipalId":{ + "shape":"IdType", + "location":"uri", + "locationName":"PrincipalId" + }, + "PrincipalType":{ + "shape":"PrincipalType", + "location":"querystring", + "locationName":"type" + } + } + }, + "ResourceIdType":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[\\w+-.@]+" + }, + "ResourceNameType":{ + "type":"string", + "max":255, + "min":1, + "pattern":"[\\u0020-\\u202D\\u202F-\\uFFFF]+" + }, + "ResourcePath":{ + "type":"structure", + "members":{ + "Components":{"shape":"ResourcePathComponentList"} + } + }, + "ResourcePathComponent":{ + "type":"structure", + "members":{ + "Id":{"shape":"IdType"}, + "Name":{"shape":"ResourceNameType"} + } + }, + "ResourcePathComponentList":{ + "type":"list", + "member":{"shape":"ResourcePathComponent"} + }, + "ResourceSortType":{ + "type":"string", + "enum":[ + "DATE", + "NAME" + ] + }, + "ResourceStateType":{ + "type":"string", + "enum":[ + "ACTIVE", + "RESTORING", + "RECYCLING", + "RECYCLED" + ] + }, + "RolePermissionType":{ + "type":"string", + "enum":[ + "DIRECT", + "INHERITED" + ] + }, + "RoleType":{ + "type":"string", + "enum":[ + "VIEWER", + "CONTRIBUTOR", + "OWNER", + "COOWNER" + ] + }, + "SearchQueryType":{ + "type":"string", + "max":512, + "min":1, + "pattern":"[\\u0020-\\uFFFF]+", + "sensitive":true + }, + "ServiceUnavailableException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessageType"} + }, + "error":{"httpStatusCode":503}, + "exception":true, + "fault":true + }, + "SharePrincipal":{ + "type":"structure", + "required":[ + "Id", + "Type", + "Role" + ], + "members":{ + "Id":{"shape":"IdType"}, + "Type":{"shape":"PrincipalType"}, + "Role":{"shape":"RoleType"} + } + }, + "SharePrincipalList":{ + "type":"list", + "member":{"shape":"SharePrincipal"} + }, + "ShareResult":{ + "type":"structure", + "members":{ + "PrincipalId":{"shape":"IdType"}, + "Role":{"shape":"RoleType"}, + "Status":{"shape":"ShareStatusType"}, + "ShareId":{"shape":"ResourceIdType"}, + "StatusMessage":{"shape":"MessageType"} + } + }, + "ShareResultsList":{ + "type":"list", + "member":{"shape":"ShareResult"} + }, + "ShareStatusType":{ + "type":"string", + "enum":[ + "SUCCESS", + "FAILURE" + ] + }, + "SignedHeaderMap":{ + "type":"map", + "key":{"shape":"HeaderNameType"}, + "value":{"shape":"HeaderValueType"} + }, + "SizeType":{"type":"long"}, + "StorageLimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessageType"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "StorageLimitWillExceedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessageType"} + }, + "error":{"httpStatusCode":413}, + "exception":true + }, + "StorageRuleType":{ + "type":"structure", + "members":{ + "StorageAllocatedInBytes":{"shape":"PositiveSizeType"}, + "StorageType":{"shape":"StorageType"} + } + }, + "StorageType":{ + "type":"string", + "enum":[ + "UNLIMITED", + "QUOTA" + ] + }, + "Subscription":{ + "type":"structure", + "members":{ + "SubscriptionId":{"shape":"IdType"}, + "EndPoint":{"shape":"SubscriptionEndPointType"}, + "Protocol":{"shape":"SubscriptionProtocolType"} + } + }, + "SubscriptionEndPointType":{ + "type":"string", + "max":256, + "min":1 + }, + "SubscriptionList":{ + "type":"list", + "member":{"shape":"Subscription"}, + "max":256 + }, + "SubscriptionProtocolType":{ + "type":"string", + "enum":["HTTPS"] + }, + "SubscriptionType":{ + "type":"string", + "enum":["ALL"] + }, + "TimeZoneIdType":{ + "type":"string", + "max":256, + "min":1 + }, + "TimestampType":{"type":"timestamp"}, + "TooManySubscriptionsException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessageType"} + }, + "error":{"httpStatusCode":429}, + "exception":true + }, + "UnauthorizedOperationException":{ + "type":"structure", + "members":{ + }, + "error":{"httpStatusCode":403}, + "exception":true + }, + "UnauthorizedResourceAccessException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessageType"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "UpdateDocumentRequest":{ + "type":"structure", + "required":["DocumentId"], + "members":{ + "DocumentId":{ + "shape":"ResourceIdType", + "location":"uri", + "locationName":"DocumentId" + }, + "Name":{"shape":"ResourceNameType"}, + "ParentFolderId":{"shape":"ResourceIdType"}, + "ResourceState":{"shape":"ResourceStateType"} + } + }, + "UpdateDocumentVersionRequest":{ + "type":"structure", + "required":[ + "DocumentId", + "VersionId" + ], + "members":{ + "DocumentId":{ + "shape":"ResourceIdType", + "location":"uri", + "locationName":"DocumentId" + }, + "VersionId":{ + "shape":"DocumentVersionIdType", + "location":"uri", + "locationName":"VersionId" + }, + "VersionStatus":{"shape":"DocumentVersionStatus"} + } + }, + "UpdateFolderRequest":{ + "type":"structure", + "required":["FolderId"], + "members":{ + "FolderId":{ + "shape":"ResourceIdType", + "location":"uri", + "locationName":"FolderId" + }, + "Name":{"shape":"ResourceNameType"}, + "ParentFolderId":{"shape":"ResourceIdType"}, + "ResourceState":{"shape":"ResourceStateType"} + } + }, + "UpdateUserRequest":{ + "type":"structure", + "required":["UserId"], + "members":{ + "UserId":{ + "shape":"IdType", + "location":"uri", + "locationName":"UserId" + }, + "GivenName":{"shape":"UserAttributeValueType"}, + "Surname":{"shape":"UserAttributeValueType"}, + "Type":{"shape":"UserType"}, + "StorageRule":{"shape":"StorageRuleType"}, + "TimeZoneId":{"shape":"TimeZoneIdType"}, + "Locale":{"shape":"LocaleType"} + } + }, + "UpdateUserResponse":{ + "type":"structure", + "members":{ + "User":{"shape":"User"} + } + }, + "UploadMetadata":{ + "type":"structure", + "members":{ + "UploadUrl":{"shape":"UrlType"}, + "SignedHeaders":{"shape":"SignedHeaderMap"} + } + }, + "UrlType":{ + "type":"string", + "max":1024, + "min":1, + "sensitive":true + }, + "User":{ + "type":"structure", + "members":{ + "Id":{"shape":"IdType"}, + "Username":{"shape":"UsernameType"}, + "EmailAddress":{"shape":"EmailAddressType"}, + "GivenName":{"shape":"UserAttributeValueType"}, + "Surname":{"shape":"UserAttributeValueType"}, + "OrganizationId":{"shape":"IdType"}, + "RootFolderId":{"shape":"ResourceIdType"}, + "RecycleBinFolderId":{"shape":"ResourceIdType"}, + "Status":{"shape":"UserStatusType"}, + "Type":{"shape":"UserType"}, + "CreatedTimestamp":{"shape":"TimestampType"}, + "ModifiedTimestamp":{"shape":"TimestampType"}, + "TimeZoneId":{"shape":"TimeZoneIdType"}, + "Locale":{"shape":"LocaleType"}, + "Storage":{"shape":"UserStorageMetadata"} + } + }, + "UserAttributeValueType":{ + "type":"string", + "max":64, + "min":1 + }, + "UserFilterType":{ + "type":"string", + "enum":[ + "ALL", + "ACTIVE_PENDING" + ] + }, + "UserIdsType":{ + "type":"string", + "max":2000, + "min":1, + "pattern":"[&\\w+-.@, ]+" + }, + "UserSortType":{ + "type":"string", + "enum":[ + "USER_NAME", + "FULL_NAME", + "STORAGE_LIMIT", + "USER_STATUS", + "STORAGE_USED" + ] + }, + "UserStatusType":{ + "type":"string", + "enum":[ + "ACTIVE", + "INACTIVE", + "PENDING" + ] + }, + "UserStorageMetadata":{ + "type":"structure", + "members":{ + "StorageUtilizedInBytes":{"shape":"SizeType"}, + "StorageRule":{"shape":"StorageRuleType"} + } + }, + "UserType":{ + "type":"string", + "enum":[ + "USER", + "ADMIN" + ] + }, + "UsernameType":{ + "type":"string", + "max":256, + "min":1, + "pattern":"[\\w\\-.]+(@[a-zA-Z0-9.\\-]+\\.[a-zA-Z]+)?" + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/workdocs/2016-05-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/workdocs/2016-05-01/docs-2.json new file mode 100644 index 000000000..085477f8f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/workdocs/2016-05-01/docs-2.json @@ -0,0 +1,931 @@ +{ + "version": "2.0", + "service": "

The WorkDocs API is designed for the following use cases:

  • File Migration: File migration applications are supported for users who want to migrate their files from an on-premise or off-premise file system or service. Users can insert files into a user directory structure, as well as allow for basic metadata changes, such as modifications to the permissions of files.

  • Security: Support security applications are supported for users who have additional security needs, such as anti-virus or data loss prevention. The APIs, in conjunction with Amazon CloudTrail, allow these applications to detect when changes occur in Amazon WorkDocs, so the application can take the necessary actions and replace the target file. The application can also choose to email the user if the target file violates the policy.

  • eDiscovery/Analytics: General administrative applications are supported, such as eDiscovery and analytics. These applications can choose to mimic and/or record the actions in an Amazon WorkDocs site, in conjunction with Amazon CloudTrails, to replicate data for eDiscovery, backup, or analytical applications.

All Amazon WorkDocs APIs are Amazon authenticated, certificate-signed APIs. They not only require the use of the AWS SDK, but also allow for the exclusive use of IAM users and roles to help facilitate access, trust, and permission policies. By creating a role and allowing an IAM user to access the Amazon WorkDocs site, the IAM user gains full administrative visibility into the entire Amazon WorkDocs site (or as set in the IAM policy). This includes, but is not limited to, the ability to modify file permissions and upload any file to any user. This allows developers to perform the three use cases above, as well as give users the ability to grant access on a selective basis using the IAM model.

", + "operations": { + "AbortDocumentVersionUpload": "

Aborts the upload of the specified document version that was previously initiated by InitiateDocumentVersionUpload. The client should make this call only when it no longer intends or fails to upload the document version.

", + "ActivateUser": "

Activates the specified user. Only active users can access Amazon WorkDocs.

", + "AddResourcePermissions": "

Creates a set of permissions for the specified folder or document. The resource permissions are overwritten if the principals already have different permissions.

", + "CreateFolder": "

Creates a folder with the specified name and parent folder.

", + "CreateNotificationSubscription": "

Configure WorkDocs to use Amazon SNS notifications.

The endpoint receives a confirmation message, and must confirm the subscription. For more information, see Confirm the Subscription in the Amazon Simple Notification Service Developer Guide.

", + "CreateUser": "

Creates a user in a Simple AD or Microsoft AD directory. The status of a newly created user is \"ACTIVE\". New users can access Amazon WorkDocs.

", + "DeactivateUser": "

Deactivates the specified user, which revokes the user's access to Amazon WorkDocs.

", + "DeleteDocument": "

Permanently deletes the specified document and its associated metadata.

", + "DeleteFolder": "

Permanently deletes the specified folder and its contents.

", + "DeleteFolderContents": "

Deletes the contents of the specified folder.

", + "DeleteNotificationSubscription": "

Deletes the specified subscription from the specified organization.

", + "DeleteUser": "

Deletes the specified user from a Simple AD or Microsoft AD directory.

", + "DescribeDocumentVersions": "

Retrieves the document versions for the specified document.

By default, only active versions are returned.

", + "DescribeFolderContents": "

Describes the contents of the specified folder, including its documents and sub-folders.

By default, Amazon WorkDocs returns the first 100 active document and folder metadata items. If there are more results, the response includes a marker that you can use to request the next set of results. You can also request initialized documents.

", + "DescribeNotificationSubscriptions": "

Lists the specified notification subscriptions.

", + "DescribeResourcePermissions": "

Describes the permissions of a specified resource.

", + "DescribeUsers": "

Describes the specified users. You can describe all users or filter the results (for example, by status or organization).

By default, Amazon WorkDocs returns the first 24 active or pending users. If there are more results, the response includes a marker that you can use to request the next set of results.

", + "GetDocument": "

Retrieves the specified document object.

", + "GetDocumentPath": "

Retrieves the path information (the hierarchy from the root folder) for the requested document.

By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the requested document and only includes the IDs of the parent folders in the path. You can limit the maximum number of levels. You can also request the names of the parent folders.

", + "GetDocumentVersion": "

Retrieves version metadata for the specified document.

", + "GetFolder": "

Retrieves the metadata of the specified folder.

", + "GetFolderPath": "

Retrieves the path information (the hierarchy from the root folder) for the specified folder.

By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the requested folder and only includes the IDs of the parent folders in the path. You can limit the maximum number of levels. You can also request the parent folder names.

", + "InitiateDocumentVersionUpload": "

Creates a new document object and version object.

The client specifies the parent folder ID and name of the document to upload. The ID is optionally specified when creating a new version of an existing document. This is the first step to upload a document. Next, upload the document to the URL returned from the call, and then call UpdateDocumentVersion.

To cancel the document upload, call AbortDocumentVersionUpload.

", + "RemoveAllResourcePermissions": "

Removes all the permissions from the specified resource.

", + "RemoveResourcePermission": "

Removes the permission for the specified principal from the specified resource.

", + "UpdateDocument": "

Updates the specified attributes of the specified document. The user must have access to both the document and its parent folder, if applicable.

", + "UpdateDocumentVersion": "

Changes the status of the document version to ACTIVE.

Amazon WorkDocs also sets its document container to ACTIVE. This is the last step in a document upload, after the client uploads the document to an S3-presigned URL returned by InitiateDocumentVersionUpload.

", + "UpdateFolder": "

Updates the specified attributes of the specified folder. The user must have access to both the folder and its parent folder, if applicable.

", + "UpdateUser": "

Updates the specified attributes of the specified user, and grants or revokes administrative privileges to the Amazon WorkDocs site.

" + }, + "shapes": { + "AbortDocumentVersionUploadRequest": { + "base": null, + "refs": { + } + }, + "ActivateUserRequest": { + "base": null, + "refs": { + } + }, + "ActivateUserResponse": { + "base": null, + "refs": { + } + }, + "AddResourcePermissionsRequest": { + "base": null, + "refs": { + } + }, + "AddResourcePermissionsResponse": { + "base": null, + "refs": { + } + }, + "ConcurrentModificationException": { + "base": "

The resource hierarchy is changing.

", + "refs": { + } + }, + "CreateFolderRequest": { + "base": null, + "refs": { + } + }, + "CreateFolderResponse": { + "base": null, + "refs": { + } + }, + "CreateNotificationSubscriptionRequest": { + "base": null, + "refs": { + } + }, + "CreateNotificationSubscriptionResponse": { + "base": null, + "refs": { + } + }, + "CreateUserRequest": { + "base": null, + "refs": { + } + }, + "CreateUserResponse": { + "base": null, + "refs": { + } + }, + "DeactivateUserRequest": { + "base": null, + "refs": { + } + }, + "DeactivatingLastSystemUserException": { + "base": "

The last user in the organization is being deactivated.

", + "refs": { + } + }, + "DeleteDocumentRequest": { + "base": null, + "refs": { + } + }, + "DeleteFolderContentsRequest": { + "base": null, + "refs": { + } + }, + "DeleteFolderRequest": { + "base": null, + "refs": { + } + }, + "DeleteNotificationSubscriptionRequest": { + "base": null, + "refs": { + } + }, + "DeleteUserRequest": { + "base": null, + "refs": { + } + }, + "DescribeDocumentVersionsRequest": { + "base": null, + "refs": { + } + }, + "DescribeDocumentVersionsResponse": { + "base": null, + "refs": { + } + }, + "DescribeFolderContentsRequest": { + "base": null, + "refs": { + } + }, + "DescribeFolderContentsResponse": { + "base": null, + "refs": { + } + }, + "DescribeNotificationSubscriptionsRequest": { + "base": null, + "refs": { + } + }, + "DescribeNotificationSubscriptionsResponse": { + "base": null, + "refs": { + } + }, + "DescribeResourcePermissionsRequest": { + "base": null, + "refs": { + } + }, + "DescribeResourcePermissionsResponse": { + "base": null, + "refs": { + } + }, + "DescribeUsersRequest": { + "base": null, + "refs": { + } + }, + "DescribeUsersResponse": { + "base": null, + "refs": { + } + }, + "DocumentContentType": { + "base": null, + "refs": { + "DocumentVersionMetadata$ContentType": "

The content type of the document.

", + "InitiateDocumentVersionUploadRequest$ContentType": "

The content type of the document.

" + } + }, + "DocumentMetadata": { + "base": "

Describes the document.

", + "refs": { + "DocumentMetadataList$member": null, + "GetDocumentResponse$Metadata": "

The document object.

", + "InitiateDocumentVersionUploadResponse$Metadata": "

The document metadata.

" + } + }, + "DocumentMetadataList": { + "base": null, + "refs": { + "DescribeFolderContentsResponse$Documents": "

The documents in the specified folder.

" + } + }, + "DocumentSourceType": { + "base": null, + "refs": { + "DocumentSourceUrlMap$key": null + } + }, + "DocumentSourceUrlMap": { + "base": null, + "refs": { + "DocumentVersionMetadata$Source": "

The source of the document.

" + } + }, + "DocumentStatusType": { + "base": null, + "refs": { + "DocumentVersionMetadata$Status": "

The status of the document.

" + } + }, + "DocumentThumbnailType": { + "base": null, + "refs": { + "DocumentThumbnailUrlMap$key": null + } + }, + "DocumentThumbnailUrlMap": { + "base": null, + "refs": { + "DocumentVersionMetadata$Thumbnail": "

The thumbnail of the document.

" + } + }, + "DocumentVersionIdType": { + "base": null, + "refs": { + "AbortDocumentVersionUploadRequest$VersionId": "

The ID of the version.

", + "DocumentVersionMetadata$Id": "

The ID of the version.

", + "GetDocumentVersionRequest$VersionId": "

The version ID of the document.

", + "UpdateDocumentVersionRequest$VersionId": "

The version ID of the document.

" + } + }, + "DocumentVersionMetadata": { + "base": "

Describes a version of a document.

", + "refs": { + "DocumentMetadata$LatestVersionMetadata": "

The latest version of the document.

", + "DocumentVersionMetadataList$member": null, + "GetDocumentVersionResponse$Metadata": "

The version metadata.

" + } + }, + "DocumentVersionMetadataList": { + "base": null, + "refs": { + "DescribeDocumentVersionsResponse$DocumentVersions": "

The document versions.

" + } + }, + "DocumentVersionStatus": { + "base": null, + "refs": { + "UpdateDocumentVersionRequest$VersionStatus": "

The status of the version.

" + } + }, + "EmailAddressType": { + "base": null, + "refs": { + "User$EmailAddress": "

The email address of the user.

" + } + }, + "EntityAlreadyExistsException": { + "base": "

The resource already exists.

", + "refs": { + } + }, + "EntityIdList": { + "base": null, + "refs": { + "EntityNotExistsException$EntityIds": null + } + }, + "EntityNotExistsException": { + "base": "

The resource does not exist.

", + "refs": { + } + }, + "ErrorMessageType": { + "base": null, + "refs": { + "ConcurrentModificationException$Message": null, + "EntityAlreadyExistsException$Message": null, + "EntityNotExistsException$Message": null, + "FailedDependencyException$Message": null, + "IllegalUserStateException$Message": null, + "InvalidArgumentException$Message": null, + "InvalidOperationException$Message": null, + "LimitExceededException$Message": null, + "ProhibitedStateException$Message": null, + "ServiceUnavailableException$Message": null, + "StorageLimitExceededException$Message": null, + "StorageLimitWillExceedException$Message": null, + "TooManySubscriptionsException$Message": null, + "UnauthorizedResourceAccessException$Message": null + } + }, + "FailedDependencyException": { + "base": "

The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected active directory.

", + "refs": { + } + }, + "FieldNamesType": { + "base": null, + "refs": { + "DescribeDocumentVersionsRequest$Include": "

A comma-separated list of values. Specify \"INITIALIZED\" to include incomplete versions.

", + "DescribeDocumentVersionsRequest$Fields": "

Specify \"SOURCE\" to include initialized versions and a URL for the source document.

", + "DescribeFolderContentsRequest$Include": "

The contents to include. Specify \"INITIALIZED\" to include initialized documents.

", + "DescribeUsersRequest$Fields": "

A comma-separated list of values. Specify \"STORAGE_METADATA\" to include the user storage quota and utilization information.

", + "GetDocumentPathRequest$Fields": "

A comma-separated list of values. Specify \"NAME\" to include the names of the parent folders.

", + "GetDocumentVersionRequest$Fields": "

A comma-separated list of values. Specify \"SOURCE\" to include a URL for the source document.

", + "GetFolderPathRequest$Fields": "

A comma-separated list of values. Specify \"NAME\" to include the names of the parent folders.

" + } + }, + "FolderContentType": { + "base": null, + "refs": { + "DescribeFolderContentsRequest$Type": "

The type of items.

" + } + }, + "FolderMetadata": { + "base": "

Describes a folder.

", + "refs": { + "CreateFolderResponse$Metadata": "

The metadata of the folder.

", + "FolderMetadataList$member": null, + "GetFolderResponse$Metadata": "

The metadata of the folder.

" + } + }, + "FolderMetadataList": { + "base": null, + "refs": { + "DescribeFolderContentsResponse$Folders": "

The sub-folders in the specified folder.

" + } + }, + "GetDocumentPathRequest": { + "base": null, + "refs": { + } + }, + "GetDocumentPathResponse": { + "base": null, + "refs": { + } + }, + "GetDocumentRequest": { + "base": null, + "refs": { + } + }, + "GetDocumentResponse": { + "base": null, + "refs": { + } + }, + "GetDocumentVersionRequest": { + "base": null, + "refs": { + } + }, + "GetDocumentVersionResponse": { + "base": null, + "refs": { + } + }, + "GetFolderPathRequest": { + "base": null, + "refs": { + } + }, + "GetFolderPathResponse": { + "base": null, + "refs": { + } + }, + "GetFolderRequest": { + "base": null, + "refs": { + } + }, + "GetFolderResponse": { + "base": null, + "refs": { + } + }, + "HashType": { + "base": null, + "refs": { + "DocumentVersionMetadata$Signature": "

The signature of the document.

", + "FolderMetadata$Signature": "

The unique identifier created from the subfolders and documents of the folder.

" + } + }, + "HeaderNameType": { + "base": null, + "refs": { + "SignedHeaderMap$key": null + } + }, + "HeaderValueType": { + "base": null, + "refs": { + "SignedHeaderMap$value": null + } + }, + "IdType": { + "base": null, + "refs": { + "ActivateUserRequest$UserId": "

The ID of the user.

", + "CreateNotificationSubscriptionRequest$OrganizationId": "

The ID of the organization.

", + "CreateUserRequest$OrganizationId": "

The ID of the organization.

", + "DeactivateUserRequest$UserId": "

The ID of the user.

", + "DeleteNotificationSubscriptionRequest$SubscriptionId": "

The ID of the subscription.

", + "DeleteNotificationSubscriptionRequest$OrganizationId": "

The ID of the organization.

", + "DeleteUserRequest$UserId": "

The ID of the user.

", + "DescribeNotificationSubscriptionsRequest$OrganizationId": "

The ID of the organization.

", + "DescribeUsersRequest$OrganizationId": "

The ID of the organization.

", + "DocumentMetadata$CreatorId": "

The ID of the creator.

", + "DocumentVersionMetadata$CreatorId": "

The ID of the creator.

", + "EntityIdList$member": null, + "FolderMetadata$CreatorId": "

The ID of the creator.

", + "GetDocumentPathRequest$DocumentId": "

The ID of the document.

", + "GetFolderPathRequest$FolderId": "

The ID of the folder.

", + "Principal$Id": "

The ID of the resource.

", + "RemoveResourcePermissionRequest$PrincipalId": "

The principal ID of the resource.

", + "ResourcePathComponent$Id": "

The ID of the resource path.

", + "SharePrincipal$Id": "

The ID of the recipient.

", + "ShareResult$PrincipalId": "

The ID of the principal.

", + "Subscription$SubscriptionId": "

The ID of the subscription.

", + "UpdateUserRequest$UserId": "

The ID of the user.

", + "User$Id": "

The ID of the user.

", + "User$OrganizationId": "

The ID of the organization.

" + } + }, + "IllegalUserStateException": { + "base": "

The user is undergoing transfer of ownership.

", + "refs": { + } + }, + "InitiateDocumentVersionUploadRequest": { + "base": null, + "refs": { + } + }, + "InitiateDocumentVersionUploadResponse": { + "base": null, + "refs": { + } + }, + "InvalidArgumentException": { + "base": "

The pagination marker and/or limit fields are not valid.

", + "refs": { + } + }, + "InvalidOperationException": { + "base": "

The operation is invalid.

", + "refs": { + } + }, + "LimitExceededException": { + "base": "

You've exceeded the maximum of 100,000 folders under the parent folder.

", + "refs": { + } + }, + "LimitType": { + "base": null, + "refs": { + "DescribeDocumentVersionsRequest$Limit": "

The maximum number of versions to return with this call.

", + "DescribeFolderContentsRequest$Limit": "

The maximum number of items to return with this call.

", + "DescribeNotificationSubscriptionsRequest$Limit": "

The maximum number of items to return with this call.

", + "DescribeResourcePermissionsRequest$Limit": "

The maximum number of items to return with this call.

", + "DescribeUsersRequest$Limit": "

The maximum number of items to return.

", + "GetDocumentPathRequest$Limit": "

The maximum number of levels in the hierarchy to return.

", + "GetFolderPathRequest$Limit": "

The maximum number of levels in the hierarchy to return.

" + } + }, + "LocaleType": { + "base": null, + "refs": { + "UpdateUserRequest$Locale": "

The locale of the user.

", + "User$Locale": "

The locale of the user.

" + } + }, + "MessageType": { + "base": null, + "refs": { + "ShareResult$StatusMessage": "

The status message.

" + } + }, + "OrderType": { + "base": null, + "refs": { + "DescribeFolderContentsRequest$Order": "

The order for the contents of the folder.

", + "DescribeUsersRequest$Order": "

The order for the results.

" + } + }, + "OrganizationUserList": { + "base": null, + "refs": { + "DescribeUsersResponse$Users": "

The users.

" + } + }, + "PageMarkerType": { + "base": null, + "refs": { + "DescribeDocumentVersionsRequest$Marker": "

The marker for the next set of results. (You received this marker from a previous call.)

", + "DescribeDocumentVersionsResponse$Marker": "

The marker to use when requesting the next set of results. If there are no additional results, the string is empty.

", + "DescribeFolderContentsRequest$Marker": "

The marker for the next set of results. (You received this marker from a previous call.)

", + "DescribeFolderContentsResponse$Marker": "

The marker to use when requesting the next set of results. If there are no additional results, the string is empty.

", + "DescribeNotificationSubscriptionsRequest$Marker": "

The marker for the next set of results. (You received this marker from a previous call.)

", + "DescribeNotificationSubscriptionsResponse$Marker": "

The marker to use when requesting the next set of results. If there are no additional results, the string is empty.

", + "DescribeResourcePermissionsRequest$Marker": "

The marker for the next set of results. (You received this marker from a previous call)

", + "DescribeResourcePermissionsResponse$Marker": "

The marker to use when requesting the next set of results. If there are no additional results, the string is empty.

", + "DescribeUsersRequest$Marker": "

The marker for the next set of results. (You received this marker from a previous call.)

", + "DescribeUsersResponse$Marker": "

The marker to use when requesting the next set of results. If there are no additional results, the string is empty.

", + "GetDocumentPathRequest$Marker": "

This value is not supported.

", + "GetFolderPathRequest$Marker": "

This value is not supported.

" + } + }, + "PasswordType": { + "base": null, + "refs": { + "CreateUserRequest$Password": "

The password of the user.

" + } + }, + "PermissionInfo": { + "base": "

Describes the permissions.

", + "refs": { + "PermissionInfoList$member": null + } + }, + "PermissionInfoList": { + "base": null, + "refs": { + "Principal$Roles": "

The permission information for the resource.

" + } + }, + "PositiveSizeType": { + "base": null, + "refs": { + "StorageRuleType$StorageAllocatedInBytes": "

The amount of storage allocated, in bytes.

" + } + }, + "Principal": { + "base": "

Describes a resource.

", + "refs": { + "PrincipalList$member": null + } + }, + "PrincipalList": { + "base": null, + "refs": { + "DescribeResourcePermissionsResponse$Principals": "

The principals.

" + } + }, + "PrincipalType": { + "base": null, + "refs": { + "Principal$Type": "

The type of resource.

", + "RemoveResourcePermissionRequest$PrincipalType": "

The principal type of the resource.

", + "SharePrincipal$Type": "

The type of the recipient.

" + } + }, + "ProhibitedStateException": { + "base": "

The specified document version is not in the INITIALIZED state.

", + "refs": { + } + }, + "RemoveAllResourcePermissionsRequest": { + "base": null, + "refs": { + } + }, + "RemoveResourcePermissionRequest": { + "base": null, + "refs": { + } + }, + "ResourceIdType": { + "base": null, + "refs": { + "AbortDocumentVersionUploadRequest$DocumentId": "

The ID of the document.

", + "AddResourcePermissionsRequest$ResourceId": "

The ID of the resource.

", + "CreateFolderRequest$ParentFolderId": "

The ID of the parent folder.

", + "DeleteDocumentRequest$DocumentId": "

The ID of the document.

", + "DeleteFolderContentsRequest$FolderId": "

The ID of the folder.

", + "DeleteFolderRequest$FolderId": "

The ID of the folder.

", + "DescribeDocumentVersionsRequest$DocumentId": "

The ID of the document.

", + "DescribeFolderContentsRequest$FolderId": "

The ID of the folder.

", + "DescribeResourcePermissionsRequest$ResourceId": "

The ID of the resource.

", + "DocumentMetadata$Id": "

The ID of the document.

", + "DocumentMetadata$ParentFolderId": "

The ID of the parent folder.

", + "FolderMetadata$Id": "

The ID of the folder.

", + "FolderMetadata$ParentFolderId": "

The ID of the parent folder.

", + "GetDocumentRequest$DocumentId": "

The ID of the document object.

", + "GetDocumentVersionRequest$DocumentId": "

The ID of the document.

", + "GetFolderRequest$FolderId": "

The ID of the folder.

", + "InitiateDocumentVersionUploadRequest$Id": "

The ID of the document.

", + "InitiateDocumentVersionUploadRequest$ParentFolderId": "

The ID of the parent folder.

", + "RemoveAllResourcePermissionsRequest$ResourceId": "

The ID of the resource.

", + "RemoveResourcePermissionRequest$ResourceId": "

The ID of the resource.

", + "ShareResult$ShareId": "

The ID of the resource that was shared.

", + "UpdateDocumentRequest$DocumentId": "

The ID of the document.

", + "UpdateDocumentRequest$ParentFolderId": "

The ID of the parent folder.

", + "UpdateDocumentVersionRequest$DocumentId": "

The ID of the document.

", + "UpdateFolderRequest$FolderId": "

The ID of the folder.

", + "UpdateFolderRequest$ParentFolderId": "

The ID of the parent folder.

", + "User$RootFolderId": "

The ID of the root folder.

", + "User$RecycleBinFolderId": "

The ID of the recycle bin folder.

" + } + }, + "ResourceNameType": { + "base": null, + "refs": { + "CreateFolderRequest$Name": "

The name of the new folder.

", + "DocumentVersionMetadata$Name": "

The name of the version.

", + "FolderMetadata$Name": "

The name of the folder.

", + "InitiateDocumentVersionUploadRequest$Name": "

The name of the document.

", + "ResourcePathComponent$Name": "

The name of the resource path.

", + "UpdateDocumentRequest$Name": "

The name of the document.

", + "UpdateFolderRequest$Name": "

The name of the folder.

" + } + }, + "ResourcePath": { + "base": "

Describes the path information of a resource.

", + "refs": { + "GetDocumentPathResponse$Path": "

The path information.

", + "GetFolderPathResponse$Path": "

The path information.

" + } + }, + "ResourcePathComponent": { + "base": "

Describes the resource path.

", + "refs": { + "ResourcePathComponentList$member": null + } + }, + "ResourcePathComponentList": { + "base": null, + "refs": { + "ResourcePath$Components": "

The components of the resource path.

" + } + }, + "ResourceSortType": { + "base": null, + "refs": { + "DescribeFolderContentsRequest$Sort": "

The sorting criteria.

" + } + }, + "ResourceStateType": { + "base": null, + "refs": { + "DocumentMetadata$ResourceState": "

The resource state.

", + "FolderMetadata$ResourceState": "

The resource state of the folder.

", + "UpdateDocumentRequest$ResourceState": "

The resource state of the document. Note that only ACTIVE and RECYCLED are supported.

", + "UpdateFolderRequest$ResourceState": "

The resource state of the folder. Note that only ACTIVE and RECYCLED are accepted values from the API.

" + } + }, + "RolePermissionType": { + "base": null, + "refs": { + "PermissionInfo$Type": "

The type of permissions.

" + } + }, + "RoleType": { + "base": null, + "refs": { + "PermissionInfo$Role": "

The role of the user.

", + "SharePrincipal$Role": "

The role of the recipient.

", + "ShareResult$Role": "

The role.

" + } + }, + "SearchQueryType": { + "base": null, + "refs": { + "DescribeUsersRequest$Query": "

A query to filter users by user name.

" + } + }, + "ServiceUnavailableException": { + "base": "

One or more of the dependencies is unavailable.

", + "refs": { + } + }, + "SharePrincipal": { + "base": "

Describes the recipient type and ID, if available.

", + "refs": { + "SharePrincipalList$member": null + } + }, + "SharePrincipalList": { + "base": null, + "refs": { + "AddResourcePermissionsRequest$Principals": "

The users, groups, or organization being granted permission.

" + } + }, + "ShareResult": { + "base": "

Describes the share results of a resource.

", + "refs": { + "ShareResultsList$member": null + } + }, + "ShareResultsList": { + "base": null, + "refs": { + "AddResourcePermissionsResponse$ShareResults": "

The share results.

" + } + }, + "ShareStatusType": { + "base": null, + "refs": { + "ShareResult$Status": "

The status.

" + } + }, + "SignedHeaderMap": { + "base": null, + "refs": { + "UploadMetadata$SignedHeaders": "

The signed headers.

" + } + }, + "SizeType": { + "base": null, + "refs": { + "DescribeUsersResponse$TotalNumberOfUsers": "

The total number of users included in the results.

", + "DocumentVersionMetadata$Size": "

The size of the document, in bytes.

", + "InitiateDocumentVersionUploadRequest$DocumentSizeInBytes": "

The size of the document, in bytes.

", + "UserStorageMetadata$StorageUtilizedInBytes": "

The amount of storage utilized, in bytes.

" + } + }, + "StorageLimitExceededException": { + "base": "

The storage limit has been exceeded.

", + "refs": { + } + }, + "StorageLimitWillExceedException": { + "base": "

The storage limit will be exceeded.

", + "refs": { + } + }, + "StorageRuleType": { + "base": "

Describes the storage for a user.

", + "refs": { + "CreateUserRequest$StorageRule": "

The amount of storage for the user.

", + "UpdateUserRequest$StorageRule": "

The amount of storage for the user.

", + "UserStorageMetadata$StorageRule": "

The storage for a user.

" + } + }, + "StorageType": { + "base": null, + "refs": { + "StorageRuleType$StorageType": "

The type of storage.

" + } + }, + "Subscription": { + "base": "

Describes a subscription.

", + "refs": { + "CreateNotificationSubscriptionResponse$Subscription": "

The subscription.

", + "SubscriptionList$member": null + } + }, + "SubscriptionEndPointType": { + "base": null, + "refs": { + "CreateNotificationSubscriptionRequest$Endpoint": "

The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins with \"https://\".

", + "Subscription$EndPoint": "

The endpoint of the subscription.

" + } + }, + "SubscriptionList": { + "base": null, + "refs": { + "DescribeNotificationSubscriptionsResponse$Subscriptions": "

The subscriptions.

" + } + }, + "SubscriptionProtocolType": { + "base": null, + "refs": { + "CreateNotificationSubscriptionRequest$Protocol": "

The protocol to use. The supported value is https, which delivers JSON-encoded messasges using HTTPS POST.

", + "Subscription$Protocol": "

The protocol of the subscription.

" + } + }, + "SubscriptionType": { + "base": null, + "refs": { + "CreateNotificationSubscriptionRequest$SubscriptionType": "

The notification type.

" + } + }, + "TimeZoneIdType": { + "base": null, + "refs": { + "CreateUserRequest$TimeZoneId": "

The time zone ID of the user.

", + "UpdateUserRequest$TimeZoneId": "

The time zone ID of the user.

", + "User$TimeZoneId": "

The time zone ID of the user.

" + } + }, + "TimestampType": { + "base": null, + "refs": { + "DocumentMetadata$CreatedTimestamp": "

The time when the document was created.

", + "DocumentMetadata$ModifiedTimestamp": "

The time when the document was updated.

", + "DocumentVersionMetadata$CreatedTimestamp": "

The time stamp when the document was first uploaded.

", + "DocumentVersionMetadata$ModifiedTimestamp": "

The time stamp when the document was last uploaded.

", + "DocumentVersionMetadata$ContentCreatedTimestamp": "

The time stamp when the content of the document was originally created.

", + "DocumentVersionMetadata$ContentModifiedTimestamp": "

The time stamp when the content of the document was modified.

", + "FolderMetadata$CreatedTimestamp": "

The time when the folder was created.

", + "FolderMetadata$ModifiedTimestamp": "

The time when the folder was updated.

", + "InitiateDocumentVersionUploadRequest$ContentCreatedTimestamp": "

The time stamp when the content of the document was originally created.

", + "InitiateDocumentVersionUploadRequest$ContentModifiedTimestamp": "

The time stamp when the content of the document was modified.

", + "User$CreatedTimestamp": "

The time when the user was created.

", + "User$ModifiedTimestamp": "

The time when the user was modified.

" + } + }, + "TooManySubscriptionsException": { + "base": "

You've reached the limit on the number of subscriptions for the WorkDocs instance.

", + "refs": { + } + }, + "UnauthorizedOperationException": { + "base": "

The operation is not permitted.

", + "refs": { + } + }, + "UnauthorizedResourceAccessException": { + "base": "

The caller does not have access to perform the action on the resource.

", + "refs": { + } + }, + "UpdateDocumentRequest": { + "base": null, + "refs": { + } + }, + "UpdateDocumentVersionRequest": { + "base": null, + "refs": { + } + }, + "UpdateFolderRequest": { + "base": null, + "refs": { + } + }, + "UpdateUserRequest": { + "base": null, + "refs": { + } + }, + "UpdateUserResponse": { + "base": null, + "refs": { + } + }, + "UploadMetadata": { + "base": "

Describes the upload.

", + "refs": { + "InitiateDocumentVersionUploadResponse$UploadMetadata": "

The upload metadata.

" + } + }, + "UrlType": { + "base": null, + "refs": { + "DocumentSourceUrlMap$value": null, + "DocumentThumbnailUrlMap$value": null, + "UploadMetadata$UploadUrl": "

The URL of the upload.

" + } + }, + "User": { + "base": "

Describes a user.

", + "refs": { + "ActivateUserResponse$User": "

The user information.

", + "CreateUserResponse$User": "

The user information.

", + "OrganizationUserList$member": null, + "UpdateUserResponse$User": "

The user information.

" + } + }, + "UserAttributeValueType": { + "base": null, + "refs": { + "CreateUserRequest$GivenName": "

The given name of the user.

", + "CreateUserRequest$Surname": "

The surname of the user.

", + "UpdateUserRequest$GivenName": "

The given name of the user.

", + "UpdateUserRequest$Surname": "

The surname of the user.

", + "User$GivenName": "

The given name of the user.

", + "User$Surname": "

The surname of the user.

" + } + }, + "UserFilterType": { + "base": null, + "refs": { + "DescribeUsersRequest$Include": "

The state of the users. Specify \"ALL\" to include inactive users.

" + } + }, + "UserIdsType": { + "base": null, + "refs": { + "DescribeUsersRequest$UserIds": "

The IDs of the users.

" + } + }, + "UserSortType": { + "base": null, + "refs": { + "DescribeUsersRequest$Sort": "

The sorting criteria.

" + } + }, + "UserStatusType": { + "base": null, + "refs": { + "User$Status": "

The status of the user.

" + } + }, + "UserStorageMetadata": { + "base": "

Describes the storage for a user.

", + "refs": { + "User$Storage": "

The storage for the user.

" + } + }, + "UserType": { + "base": null, + "refs": { + "UpdateUserRequest$Type": "

The type of the user.

", + "User$Type": "

The type of user.

" + } + }, + "UsernameType": { + "base": null, + "refs": { + "CreateUserRequest$Username": "

The login name of the user.

", + "User$Username": "

The login name of the user.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/workdocs/2016-05-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/workdocs/2016-05-01/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/workdocs/2016-05-01/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/workdocs/2016-05-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/workdocs/2016-05-01/paginators-1.json new file mode 100644 index 000000000..42c39b2ff --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/workdocs/2016-05-01/paginators-1.json @@ -0,0 +1,25 @@ +{ + "pagination": { + "DescribeDocumentVersions": { + "input_token": "Marker", + "limit_key": "Limit", + "output_token": "Marker", + "result_key": "DocumentVersions" + }, + "DescribeFolderContents": { + "input_token": "Marker", + "limit_key": "Limit", + "output_token": "Marker", + "result_key": [ + "Folders", + "Documents" + ] + }, + "DescribeUsers": { + "input_token": "Marker", + "limit_key": "Limit", + "output_token": "Marker", + "result_key": "Users" + } + } +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/api-2.json index 45b672b2b..133d9bd42 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/api-2.json @@ -1,6 +1,7 @@ { "version":"2.0", "metadata":{ + "uid":"workspaces-2015-04-08", "apiVersion":"2015-04-08", "endpointPrefix":"workspaces", "jsonVersion":"1.1", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/xray/2016-04-12/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/xray/2016-04-12/api-2.json new file mode 100644 index 000000000..886477360 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/xray/2016-04-12/api-2.json @@ -0,0 +1,491 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2016-04-12", + "endpointPrefix":"xray", + "protocol":"rest-json", + "serviceFullName":"AWS X-Ray", + "signatureVersion":"v4", + "uid":"xray-2016-04-12" + }, + "operations":{ + "BatchGetTraces":{ + "name":"BatchGetTraces", + "http":{ + "method":"POST", + "requestUri":"/Traces" + }, + "input":{"shape":"BatchGetTracesRequest"}, + "output":{"shape":"BatchGetTracesResult"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottledException"} + ] + }, + "GetServiceGraph":{ + "name":"GetServiceGraph", + "http":{ + "method":"POST", + "requestUri":"/ServiceGraph" + }, + "input":{"shape":"GetServiceGraphRequest"}, + "output":{"shape":"GetServiceGraphResult"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottledException"} + ] + }, + "GetTraceGraph":{ + "name":"GetTraceGraph", + "http":{ + "method":"POST", + "requestUri":"/TraceGraph" + }, + "input":{"shape":"GetTraceGraphRequest"}, + "output":{"shape":"GetTraceGraphResult"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottledException"} + ] + }, + "GetTraceSummaries":{ + "name":"GetTraceSummaries", + "http":{ + "method":"POST", + "requestUri":"/TraceSummaries" + }, + "input":{"shape":"GetTraceSummariesRequest"}, + "output":{"shape":"GetTraceSummariesResult"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottledException"} + ] + }, + "PutTelemetryRecords":{ + "name":"PutTelemetryRecords", + "http":{ + "method":"POST", + "requestUri":"/TelemetryRecords" + }, + "input":{"shape":"PutTelemetryRecordsRequest"}, + "output":{"shape":"PutTelemetryRecordsResult"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottledException"} + ] + }, + "PutTraceSegments":{ + "name":"PutTraceSegments", + "http":{ + "method":"POST", + "requestUri":"/TraceSegments" + }, + "input":{"shape":"PutTraceSegmentsRequest"}, + "output":{"shape":"PutTraceSegmentsResult"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottledException"} + ] + } + }, + "shapes":{ + "Alias":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "Names":{"shape":"AliasNames"}, + "Type":{"shape":"String"} + } + }, + "AliasList":{ + "type":"list", + "member":{"shape":"Alias"} + }, + "AliasNames":{ + "type":"list", + "member":{"shape":"String"} + }, + "AnnotationKey":{"type":"string"}, + "AnnotationValue":{ + "type":"structure", + "members":{ + "NumberValue":{"shape":"NullableDouble"}, + "BooleanValue":{"shape":"NullableBoolean"}, + "StringValue":{"shape":"String"} + } + }, + "Annotations":{ + "type":"map", + "key":{"shape":"AnnotationKey"}, + "value":{"shape":"ValuesWithServiceIds"} + }, + "BackendConnectionErrors":{ + "type":"structure", + "members":{ + "TimeoutCount":{"shape":"NullableInteger"}, + "ConnectionRefusedCount":{"shape":"NullableInteger"}, + "HTTPCode4XXCount":{"shape":"NullableInteger"}, + "HTTPCode5XXCount":{"shape":"NullableInteger"}, + "UnknownHostCount":{"shape":"NullableInteger"}, + "OtherCount":{"shape":"NullableInteger"} + } + }, + "BatchGetTracesRequest":{ + "type":"structure", + "required":["TraceIds"], + "members":{ + "TraceIds":{"shape":"TraceIdList"}, + "NextToken":{"shape":"String"} + } + }, + "BatchGetTracesResult":{ + "type":"structure", + "members":{ + "Traces":{"shape":"TraceList"}, + "UnprocessedTraceIds":{"shape":"UnprocessedTraceIdList"}, + "NextToken":{"shape":"String"} + } + }, + "Double":{"type":"double"}, + "Edge":{ + "type":"structure", + "members":{ + "ReferenceId":{"shape":"NullableInteger"}, + "StartTime":{"shape":"Timestamp"}, + "EndTime":{"shape":"Timestamp"}, + "SummaryStatistics":{"shape":"EdgeStatistics"}, + "ResponseTimeHistogram":{"shape":"Histogram"}, + "Aliases":{"shape":"AliasList"} + } + }, + "EdgeList":{ + "type":"list", + "member":{"shape":"Edge"} + }, + "EdgeStatistics":{ + "type":"structure", + "members":{ + "OkCount":{"shape":"NullableLong"}, + "ErrorStatistics":{"shape":"ErrorStatistics"}, + "FaultStatistics":{"shape":"FaultStatistics"}, + "TotalCount":{"shape":"NullableLong"}, + "TotalResponseTime":{"shape":"NullableDouble"} + } + }, + "ErrorStatistics":{ + "type":"structure", + "members":{ + "ThrottleCount":{"shape":"NullableLong"}, + "OtherCount":{"shape":"NullableLong"}, + "TotalCount":{"shape":"NullableLong"} + } + }, + "FaultStatistics":{ + "type":"structure", + "members":{ + "OtherCount":{"shape":"NullableLong"}, + "TotalCount":{"shape":"NullableLong"} + } + }, + "FilterExpression":{ + "type":"string", + "max":2000, + "min":0 + }, + "GetServiceGraphRequest":{ + "type":"structure", + "required":[ + "StartTime", + "EndTime" + ], + "members":{ + "StartTime":{"shape":"Timestamp"}, + "EndTime":{"shape":"Timestamp"}, + "NextToken":{"shape":"String"} + } + }, + "GetServiceGraphResult":{ + "type":"structure", + "members":{ + "StartTime":{"shape":"Timestamp"}, + "EndTime":{"shape":"Timestamp"}, + "Services":{"shape":"ServiceList"}, + "NextToken":{"shape":"String"} + } + }, + "GetTraceGraphRequest":{ + "type":"structure", + "required":["TraceIds"], + "members":{ + "TraceIds":{"shape":"TraceIdList"}, + "NextToken":{"shape":"String"} + } + }, + "GetTraceGraphResult":{ + "type":"structure", + "members":{ + "Services":{"shape":"ServiceList"}, + "NextToken":{"shape":"String"} + } + }, + "GetTraceSummariesRequest":{ + "type":"structure", + "required":[ + "StartTime", + "EndTime" + ], + "members":{ + "StartTime":{"shape":"Timestamp"}, + "EndTime":{"shape":"Timestamp"}, + "Sampling":{"shape":"NullableBoolean"}, + "FilterExpression":{"shape":"FilterExpression"}, + "NextToken":{"shape":"String"} + } + }, + "GetTraceSummariesResult":{ + "type":"structure", + "members":{ + "TraceSummaries":{"shape":"TraceSummaryList"}, + "ApproximateTime":{"shape":"Timestamp"}, + "TracesProcessedCount":{"shape":"NullableLong"}, + "NextToken":{"shape":"String"} + } + }, + "Histogram":{ + "type":"list", + "member":{"shape":"HistogramEntry"} + }, + "HistogramEntry":{ + "type":"structure", + "members":{ + "Value":{"shape":"Double"}, + "Count":{"shape":"Integer"} + } + }, + "Http":{ + "type":"structure", + "members":{ + "HttpURL":{"shape":"String"}, + "HttpStatus":{"shape":"NullableInteger"}, + "HttpMethod":{"shape":"String"}, + "UserAgent":{"shape":"String"}, + "ClientIp":{"shape":"String"} + } + }, + "Integer":{"type":"integer"}, + "InvalidRequestException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "NullableBoolean":{"type":"boolean"}, + "NullableDouble":{"type":"double"}, + "NullableInteger":{"type":"integer"}, + "NullableLong":{"type":"long"}, + "PutTelemetryRecordsRequest":{ + "type":"structure", + "required":["TelemetryRecords"], + "members":{ + "TelemetryRecords":{"shape":"TelemetryRecordList"}, + "EC2InstanceId":{"shape":"String"}, + "Hostname":{"shape":"String"}, + "ResourceARN":{"shape":"String"} + } + }, + "PutTelemetryRecordsResult":{ + "type":"structure", + "members":{ + } + }, + "PutTraceSegmentsRequest":{ + "type":"structure", + "required":["TraceSegmentDocuments"], + "members":{ + "TraceSegmentDocuments":{"shape":"TraceSegmentDocumentList"} + } + }, + "PutTraceSegmentsResult":{ + "type":"structure", + "members":{ + "UnprocessedTraceSegments":{"shape":"UnprocessedTraceSegmentList"} + } + }, + "Segment":{ + "type":"structure", + "members":{ + "Id":{"shape":"SegmentId"}, + "Document":{"shape":"SegmentDocument"} + } + }, + "SegmentDocument":{ + "type":"string", + "min":1 + }, + "SegmentId":{ + "type":"string", + "max":16, + "min":16 + }, + "SegmentList":{ + "type":"list", + "member":{"shape":"Segment"} + }, + "Service":{ + "type":"structure", + "members":{ + "ReferenceId":{"shape":"NullableInteger"}, + "Name":{"shape":"String"}, + "Names":{"shape":"ServiceNames"}, + "Root":{"shape":"NullableBoolean"}, + "AccountId":{"shape":"String"}, + "Type":{"shape":"String"}, + "State":{"shape":"String"}, + "StartTime":{"shape":"Timestamp"}, + "EndTime":{"shape":"Timestamp"}, + "Edges":{"shape":"EdgeList"}, + "SummaryStatistics":{"shape":"ServiceStatistics"}, + "DurationHistogram":{"shape":"Histogram"} + } + }, + "ServiceId":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "Names":{"shape":"ServiceNames"}, + "AccountId":{"shape":"String"}, + "Type":{"shape":"String"} + } + }, + "ServiceIds":{ + "type":"list", + "member":{"shape":"ServiceId"} + }, + "ServiceList":{ + "type":"list", + "member":{"shape":"Service"} + }, + "ServiceNames":{ + "type":"list", + "member":{"shape":"String"} + }, + "ServiceStatistics":{ + "type":"structure", + "members":{ + "OkCount":{"shape":"NullableLong"}, + "ErrorStatistics":{"shape":"ErrorStatistics"}, + "FaultStatistics":{"shape":"FaultStatistics"}, + "TotalCount":{"shape":"NullableLong"}, + "TotalResponseTime":{"shape":"NullableDouble"} + } + }, + "String":{"type":"string"}, + "TelemetryRecord":{ + "type":"structure", + "members":{ + "Timestamp":{"shape":"Timestamp"}, + "SegmentsReceivedCount":{"shape":"NullableInteger"}, + "SegmentsSentCount":{"shape":"NullableInteger"}, + "SegmentsSpilloverCount":{"shape":"NullableInteger"}, + "SegmentsRejectedCount":{"shape":"NullableInteger"}, + "BackendConnectionErrors":{"shape":"BackendConnectionErrors"} + } + }, + "TelemetryRecordList":{ + "type":"list", + "member":{"shape":"TelemetryRecord"} + }, + "ThrottledException":{ + "type":"structure", + "members":{ + }, + "error":{"httpStatusCode":429}, + "exception":true + }, + "Timestamp":{"type":"timestamp"}, + "Trace":{ + "type":"structure", + "members":{ + "Id":{"shape":"TraceId"}, + "Duration":{"shape":"NullableDouble"}, + "Segments":{"shape":"SegmentList"} + } + }, + "TraceId":{ + "type":"string", + "max":35, + "min":35 + }, + "TraceIdList":{ + "type":"list", + "member":{"shape":"TraceId"} + }, + "TraceList":{ + "type":"list", + "member":{"shape":"Trace"} + }, + "TraceSegmentDocument":{"type":"string"}, + "TraceSegmentDocumentList":{ + "type":"list", + "member":{"shape":"TraceSegmentDocument"} + }, + "TraceSummary":{ + "type":"structure", + "members":{ + "Id":{"shape":"TraceId"}, + "Duration":{"shape":"NullableDouble"}, + "ResponseTime":{"shape":"NullableDouble"}, + "HasFault":{"shape":"NullableBoolean"}, + "HasError":{"shape":"NullableBoolean"}, + "HasThrottle":{"shape":"NullableBoolean"}, + "IsPartial":{"shape":"NullableBoolean"}, + "Http":{"shape":"Http"}, + "Annotations":{"shape":"Annotations"}, + "Users":{"shape":"TraceUsers"}, + "ServiceIds":{"shape":"ServiceIds"} + } + }, + "TraceSummaryList":{ + "type":"list", + "member":{"shape":"TraceSummary"} + }, + "TraceUser":{ + "type":"structure", + "members":{ + "UserName":{"shape":"String"}, + "ServiceIds":{"shape":"ServiceIds"} + } + }, + "TraceUsers":{ + "type":"list", + "member":{"shape":"TraceUser"} + }, + "UnprocessedTraceIdList":{ + "type":"list", + "member":{"shape":"TraceId"} + }, + "UnprocessedTraceSegment":{ + "type":"structure", + "members":{ + "Id":{"shape":"String"}, + "ErrorCode":{"shape":"String"}, + "Message":{"shape":"String"} + } + }, + "UnprocessedTraceSegmentList":{ + "type":"list", + "member":{"shape":"UnprocessedTraceSegment"} + }, + "ValueWithServiceIds":{ + "type":"structure", + "members":{ + "AnnotationValue":{"shape":"AnnotationValue"}, + "ServiceIds":{"shape":"ServiceIds"} + } + }, + "ValuesWithServiceIds":{ + "type":"list", + "member":{"shape":"ValueWithServiceIds"} + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/xray/2016-04-12/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/xray/2016-04-12/docs-2.json new file mode 100644 index 000000000..c89a02260 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/xray/2016-04-12/docs-2.json @@ -0,0 +1,474 @@ +{ + "version": "2.0", + "service": "

AWS X-Ray provides APIs for managing debug traces and retrieving service maps and other data created by processing those traces.

", + "operations": { + "BatchGetTraces": "

Retrieves a list of traces specified by ID. Each trace is a collection of segment documents that originates from a single request. Use GetTraceSummaries to get a list of trace IDs.

", + "GetServiceGraph": "

Retrieves a document that describes services that process incoming requests, and downstream services that they call as a result. Root services process incoming requests and make calls to downstream services. Root services are applications that use the AWS X-Ray SDK. Downstream services can be other applications, AWS resources, HTTP web APIs, or SQL databases.

", + "GetTraceGraph": "

Retrieves a service graph for one or more specific trace IDs.

", + "GetTraceSummaries": "

Retrieves IDs and metadata for traces available for a specified time frame using an optional filter. To get the full traces, pass the trace IDs to BatchGetTraces.

", + "PutTelemetryRecords": "

Used by the AWS X-Ray daemon to upload telemetry.

", + "PutTraceSegments": "

Uploads segment documents to AWS X-Ray. The X-Ray SDK generates segment documents and sends them to the X-Ray daemon, which uploads them in batches. A segment document can be a completed segment, an in-progress segment, or an array of subsegments.

" + }, + "shapes": { + "Alias": { + "base": "

An alias for an edge.

", + "refs": { + "AliasList$member": null + } + }, + "AliasList": { + "base": null, + "refs": { + "Edge$Aliases": "

Aliases for the edge.

" + } + }, + "AliasNames": { + "base": null, + "refs": { + "Alias$Names": "

A list of names for the alias, including the canonical name.

" + } + }, + "AnnotationKey": { + "base": null, + "refs": { + "Annotations$key": null + } + }, + "AnnotationValue": { + "base": "

Value of a segment annotation. Has one of three value types: Number, Boolean or String.

", + "refs": { + "ValueWithServiceIds$AnnotationValue": "

Values of the annotation.

" + } + }, + "Annotations": { + "base": null, + "refs": { + "TraceSummary$Annotations": "

Annotations from the trace's segment documents.

" + } + }, + "BackendConnectionErrors": { + "base": "

", + "refs": { + "TelemetryRecord$BackendConnectionErrors": "

" + } + }, + "BatchGetTracesRequest": { + "base": null, + "refs": { + } + }, + "BatchGetTracesResult": { + "base": null, + "refs": { + } + }, + "Double": { + "base": null, + "refs": { + "HistogramEntry$Value": "

The value of the entry.

" + } + }, + "Edge": { + "base": "

Information about a connection between two services.

", + "refs": { + "EdgeList$member": null + } + }, + "EdgeList": { + "base": null, + "refs": { + "Service$Edges": "

Connections to downstream services.

" + } + }, + "EdgeStatistics": { + "base": "

Response statistics for an edge.

", + "refs": { + "Edge$SummaryStatistics": "

Response statistics for segments on the edge.

" + } + }, + "ErrorStatistics": { + "base": "

Information about requests that failed with a 4xx Client Error status code.

", + "refs": { + "EdgeStatistics$ErrorStatistics": "

Information about requests that failed with a 4xx Client Error status code.

", + "ServiceStatistics$ErrorStatistics": "

Information about requests that failed with a 4xx Client Error status code.

" + } + }, + "FaultStatistics": { + "base": "

Information about requests that failed with a 5xx Server Error status code.

", + "refs": { + "EdgeStatistics$FaultStatistics": "

Information about requests that failed with a 5xx Server Error status code.

", + "ServiceStatistics$FaultStatistics": "

Information about requests that failed with a 5xx Server Error status code.

" + } + }, + "FilterExpression": { + "base": null, + "refs": { + "GetTraceSummariesRequest$FilterExpression": "

Specify a filter expression to retrieve trace summaries for services or requests that meet certain requirements.

" + } + }, + "GetServiceGraphRequest": { + "base": null, + "refs": { + } + }, + "GetServiceGraphResult": { + "base": null, + "refs": { + } + }, + "GetTraceGraphRequest": { + "base": null, + "refs": { + } + }, + "GetTraceGraphResult": { + "base": null, + "refs": { + } + }, + "GetTraceSummariesRequest": { + "base": null, + "refs": { + } + }, + "GetTraceSummariesResult": { + "base": null, + "refs": { + } + }, + "Histogram": { + "base": null, + "refs": { + "Edge$ResponseTimeHistogram": "

Histogram describing the prominence of response times on the edge.

", + "Service$DurationHistogram": "

Histogram mapping the spread of trace durations

" + } + }, + "HistogramEntry": { + "base": "

An entry in a histogram for a statistic. A histogram maps the range of observed values on the X axis, and the prevalence of each value on the Y axis.

", + "refs": { + "Histogram$member": null + } + }, + "Http": { + "base": "

Information about an HTTP request.

", + "refs": { + "TraceSummary$Http": "

Information about the HTTP request served by the trace.

" + } + }, + "Integer": { + "base": null, + "refs": { + "HistogramEntry$Count": "

The prevalence of the entry.

" + } + }, + "InvalidRequestException": { + "base": "

The request is missing required parameters or has invalid parameters.

", + "refs": { + } + }, + "NullableBoolean": { + "base": null, + "refs": { + "AnnotationValue$BooleanValue": "

Value for a Boolean annotation.

", + "GetTraceSummariesRequest$Sampling": "

Set to true to get summaries for only a subset of available traces.

", + "Service$Root": "

Indicates that the service was the first service to process a request.

", + "TraceSummary$HasFault": "

One or more of the segment documents has a 500 series error.

", + "TraceSummary$HasError": "

One or more of the segment documents has a 400 series error.

", + "TraceSummary$HasThrottle": "

One or more of the segment documents has a 429 throttling error.

", + "TraceSummary$IsPartial": "

One or more of the segment documents is in progress.

" + } + }, + "NullableDouble": { + "base": null, + "refs": { + "AnnotationValue$NumberValue": "

Value for a Number annotation.

", + "EdgeStatistics$TotalResponseTime": "

The aggregate response time of completed requests.

", + "ServiceStatistics$TotalResponseTime": "

The aggregate response time of completed requests.

", + "Trace$Duration": "

The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.

", + "TraceSummary$Duration": "

The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.

", + "TraceSummary$ResponseTime": "

The length of time in seconds between the start and end times of the root segment. If the service performs work asynchronously, the response time measures the time before the response is sent to the user, while the duration measures the amount of time before the last traced activity completes.

" + } + }, + "NullableInteger": { + "base": null, + "refs": { + "BackendConnectionErrors$TimeoutCount": "

", + "BackendConnectionErrors$ConnectionRefusedCount": "

", + "BackendConnectionErrors$HTTPCode4XXCount": "

", + "BackendConnectionErrors$HTTPCode5XXCount": "

", + "BackendConnectionErrors$UnknownHostCount": "

", + "BackendConnectionErrors$OtherCount": "

", + "Edge$ReferenceId": "

Identifier of the edge. Unique within a service map.

", + "Http$HttpStatus": "

The response status.

", + "Service$ReferenceId": "

Identifier for the service. Unique within the service map.

", + "TelemetryRecord$SegmentsReceivedCount": "

", + "TelemetryRecord$SegmentsSentCount": "

", + "TelemetryRecord$SegmentsSpilloverCount": "

", + "TelemetryRecord$SegmentsRejectedCount": "

" + } + }, + "NullableLong": { + "base": null, + "refs": { + "EdgeStatistics$OkCount": "

The number of requests that completed with a 2xx Success status code.

", + "EdgeStatistics$TotalCount": "

The total number of completed requests.

", + "ErrorStatistics$ThrottleCount": "

The number of requests that failed with a 419 throttling status code.

", + "ErrorStatistics$OtherCount": "

The number of requests that failed with untracked 4xx Client Error status codes.

", + "ErrorStatistics$TotalCount": "

The total number of requests that failed with a 4xx Client Error status code.

", + "FaultStatistics$OtherCount": "

The number of requests that failed with untracked 5xx Server Error status codes.

", + "FaultStatistics$TotalCount": "

The total number of requests that failed with a 5xx Server Error status code.

", + "GetTraceSummariesResult$TracesProcessedCount": "

The number of traces that were processed to get this set of summaries.

", + "ServiceStatistics$OkCount": "

The number of requests that completed with a 2xx Success status code.

", + "ServiceStatistics$TotalCount": "

The total number of completed requests.

" + } + }, + "PutTelemetryRecordsRequest": { + "base": null, + "refs": { + } + }, + "PutTelemetryRecordsResult": { + "base": null, + "refs": { + } + }, + "PutTraceSegmentsRequest": { + "base": null, + "refs": { + } + }, + "PutTraceSegmentsResult": { + "base": null, + "refs": { + } + }, + "Segment": { + "base": "

Information about a segment

", + "refs": { + "SegmentList$member": null + } + }, + "SegmentDocument": { + "base": null, + "refs": { + "Segment$Document": "

The segment document.

" + } + }, + "SegmentId": { + "base": null, + "refs": { + "Segment$Id": "

The segment's ID.

" + } + }, + "SegmentList": { + "base": null, + "refs": { + "Trace$Segments": "

Segment documents for the segments and subsegments that comprise the trace.

" + } + }, + "Service": { + "base": "

Information about an application that processed requests, users that made requests, or downstream services, resources and applications that an application used.

", + "refs": { + "ServiceList$member": null + } + }, + "ServiceId": { + "base": "

", + "refs": { + "ServiceIds$member": null + } + }, + "ServiceIds": { + "base": null, + "refs": { + "TraceSummary$ServiceIds": "

Service IDs from the trace's segment documents.

", + "TraceUser$ServiceIds": "

Services that the user's request hit.

", + "ValueWithServiceIds$ServiceIds": "

Services to which the annotation applies.

" + } + }, + "ServiceList": { + "base": null, + "refs": { + "GetServiceGraphResult$Services": "

The services that have processed a traced request during the specified time frame.

", + "GetTraceGraphResult$Services": "

The services that have processed one of the specified requests.

" + } + }, + "ServiceNames": { + "base": null, + "refs": { + "Service$Names": "

A list of names for the service, including the canonical name.

", + "ServiceId$Names": "

" + } + }, + "ServiceStatistics": { + "base": "

Response statistics for a service.

", + "refs": { + "Service$SummaryStatistics": "

Aggregated statistics for the service.

" + } + }, + "String": { + "base": null, + "refs": { + "Alias$Name": "

The canonical name of the alias.

", + "Alias$Type": "

The type of the alias.

", + "AliasNames$member": null, + "AnnotationValue$StringValue": "

Value for a String annotation.

", + "BatchGetTracesRequest$NextToken": "

Pagination token. Not used.

", + "BatchGetTracesResult$NextToken": "

Pagination token. Not used.

", + "GetServiceGraphRequest$NextToken": "

Pagination token. Not used.

", + "GetServiceGraphResult$NextToken": "

Pagination token. Not used.

", + "GetTraceGraphRequest$NextToken": "

Pagination token. Not used.

", + "GetTraceGraphResult$NextToken": "

Pagination token. Not used.

", + "GetTraceSummariesRequest$NextToken": "

Specify the pagination token returned by a previous request to retrieve the next page of results.

", + "GetTraceSummariesResult$NextToken": "

If the requested time frame contained more than one page of results, you can use this token to retrieve the next page. The first page contains the most most recent results, closest to the end of the time frame.

", + "Http$HttpURL": "

The request URL.

", + "Http$HttpMethod": "

The request method.

", + "Http$UserAgent": "

The request's user agent string.

", + "Http$ClientIp": "

The IP address of the requestor.

", + "PutTelemetryRecordsRequest$EC2InstanceId": "

", + "PutTelemetryRecordsRequest$Hostname": "

", + "PutTelemetryRecordsRequest$ResourceARN": "

", + "Service$Name": "

The canonical name of the service.

", + "Service$AccountId": "

Identifier of the AWS account in which the service runs.

", + "Service$Type": "

The type of service.

  • AWS Resource - The type of an AWS resource. For example, AWS::EC2::Instance for a application running on Amazon EC2 or AWS::DynamoDB::Table for an Amazon DynamoDB table that the application used.

  • AWS Service - The type of an AWS service. For example, AWS::DynamoDB for downstream calls to Amazon DynamoDB that didn't target a specific table.

  • client - Represents the clients that sent requests to a root service.

  • remote - A downstream service of indeterminate type.

", + "Service$State": "

The service's state.

", + "ServiceId$Name": "

", + "ServiceId$AccountId": "

", + "ServiceId$Type": "

", + "ServiceNames$member": null, + "TraceUser$UserName": "

The user's name.

", + "UnprocessedTraceSegment$Id": "

The segment's ID.

", + "UnprocessedTraceSegment$ErrorCode": "

The error that caused processing to fail.

", + "UnprocessedTraceSegment$Message": "

The error message.

" + } + }, + "TelemetryRecord": { + "base": "

", + "refs": { + "TelemetryRecordList$member": null + } + }, + "TelemetryRecordList": { + "base": null, + "refs": { + "PutTelemetryRecordsRequest$TelemetryRecords": "

" + } + }, + "ThrottledException": { + "base": "

The request exceeds the maximum number of requests per second.

", + "refs": { + } + }, + "Timestamp": { + "base": null, + "refs": { + "Edge$StartTime": "

The start time of the first segment on the edge.

", + "Edge$EndTime": "

The end time of the last segment on the edge.

", + "GetServiceGraphRequest$StartTime": "

The start of the time frame for which to generate a graph.

", + "GetServiceGraphRequest$EndTime": "

The end of the time frame for which to generate a graph.

", + "GetServiceGraphResult$StartTime": "

The start of the time frame for which the graph was generated.

", + "GetServiceGraphResult$EndTime": "

The end of the time frame for which the graph was generated.

", + "GetTraceSummariesRequest$StartTime": "

The start of the time frame for which to retrieve traces.

", + "GetTraceSummariesRequest$EndTime": "

The end of the time frame for which to retrieve traces.

", + "GetTraceSummariesResult$ApproximateTime": "

The start time of this page of results.

", + "Service$StartTime": "

The start time of the first segment that the service generated.

", + "Service$EndTime": "

The end time of the last segment that the service generated.

", + "TelemetryRecord$Timestamp": "

" + } + }, + "Trace": { + "base": "

A collection of segment documents with matching trace IDs.

", + "refs": { + "TraceList$member": null + } + }, + "TraceId": { + "base": null, + "refs": { + "Trace$Id": "

The unique identifier for the request that generated the trace's segments and subsegments.

", + "TraceIdList$member": null, + "TraceSummary$Id": "

The unique identifier for the request that generated the trace's segments and subsegments.

", + "UnprocessedTraceIdList$member": null + } + }, + "TraceIdList": { + "base": null, + "refs": { + "BatchGetTracesRequest$TraceIds": "

Specify the trace IDs of requests for which to retrieve segments.

", + "GetTraceGraphRequest$TraceIds": "

Trace IDs of requests for which to generate a service graph.

" + } + }, + "TraceList": { + "base": null, + "refs": { + "BatchGetTracesResult$Traces": "

Full traces for the specified requests.

" + } + }, + "TraceSegmentDocument": { + "base": null, + "refs": { + "TraceSegmentDocumentList$member": null + } + }, + "TraceSegmentDocumentList": { + "base": null, + "refs": { + "PutTraceSegmentsRequest$TraceSegmentDocuments": "

A JSON document defining one or more segments or subsegments. Segments must include the following fields.

Required Segment Document Fields

  • name - The name of the service that handled the request.

  • id - A 64-bit identifier for the segment, unique among segments in the same trace, in 16 hexadecimal digits.

  • trace_id - A unique identifier that connects all segments and subsegments originating from a single client request.

  • start_time - Time the segment or subsegment was created, in floating point seconds in epoch time, accurate to milliseconds. For example, 1480615200.010 or 1.480615200010E9.

  • end_time - Time the segment or subsegment was closed. For example, 1480615200.090 or 1.480615200090E9. Specify either an end_time or in_progress.

  • in_progress - Set to true instead of specifying an end_time to record that a segment has been started, but is not complete. Send an in progress segment when your application receives a request that will take a long time to serve, to trace the fact that the request was received. When the response is sent, send the complete segment to overwrite the in-progress segment.

A trace_id consists of three numbers separated by hyphens. For example, 1-58406520-a006649127e371903a2de979. This includes:

Trace ID Format

  • The version number, i.e. 1.

  • The time of the original request, in Unix epoch time, in 8 hexadecimal digits. For example, 10:00AM December 2nd, 2016 PST in epoch time is 1480615200 seconds, or 58406520 in hexadecimal.

  • A 96-bit identifier for the trace, globally unique, in 24 hexadecimal digits.

" + } + }, + "TraceSummary": { + "base": "

Metadata generated from the segment documents in a trace.

", + "refs": { + "TraceSummaryList$member": null + } + }, + "TraceSummaryList": { + "base": null, + "refs": { + "GetTraceSummariesResult$TraceSummaries": "

Trace IDs and metadata for traces that were found in the specified time frame.

" + } + }, + "TraceUser": { + "base": "

Information about a user recorded in segment documents.

", + "refs": { + "TraceUsers$member": null + } + }, + "TraceUsers": { + "base": null, + "refs": { + "TraceSummary$Users": "

Users from the trace's segment documents.

" + } + }, + "UnprocessedTraceIdList": { + "base": null, + "refs": { + "BatchGetTracesResult$UnprocessedTraceIds": "

Trace IDs of requests that haven't been processed.

" + } + }, + "UnprocessedTraceSegment": { + "base": "

Information about a segment that failed processing.

", + "refs": { + "UnprocessedTraceSegmentList$member": null + } + }, + "UnprocessedTraceSegmentList": { + "base": null, + "refs": { + "PutTraceSegmentsResult$UnprocessedTraceSegments": "

Segments that failed processing.

" + } + }, + "ValueWithServiceIds": { + "base": "

Information about a segment annotation.

", + "refs": { + "ValuesWithServiceIds$member": null + } + }, + "ValuesWithServiceIds": { + "base": null, + "refs": { + "Annotations$value": null + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/xray/2016-04-12/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/xray/2016-04-12/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/xray/2016-04-12/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/customizations/service-aliases.json b/vendor/github.com/aws/aws-sdk-go/models/customizations/service-aliases.json new file mode 100644 index 000000000..14b90378d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/customizations/service-aliases.json @@ -0,0 +1,5 @@ +{ + "elasticloadbalancing": "ELB", + "elasticloadbalancingv2": "ELBV2", + "config": "ConfigService" +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/endpoints/endpoints.json b/vendor/github.com/aws/aws-sdk-go/models/endpoints/endpoints.json new file mode 100644 index 000000000..131aba24a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/endpoints/endpoints.json @@ -0,0 +1,1936 @@ +{ + "partitions": [ + { + "defaults": { + "hostname": "{service}.{region}.{dnsSuffix}", + "protocols": [ + "https" + ], + "signatureVersions": [ + "v4" + ] + }, + "dnsSuffix": "amazonaws.com", + "partition": "aws", + "partitionName": "AWS Standard", + "regionRegex": "^(us|eu|ap|sa|ca)\\-\\w+\\-\\d+$", + "regions": { + "ap-northeast-1": { + "description": "Asia Pacific (Tokyo)" + }, + "ap-northeast-2": { + "description": "Asia Pacific (Seoul)" + }, + "ap-south-1": { + "description": "Asia Pacific (Mumbai)" + }, + "ap-southeast-1": { + "description": "Asia Pacific (Singapore)" + }, + "ap-southeast-2": { + "description": "Asia Pacific (Sydney)" + }, + "ca-central-1": { + "description": "Canada (Central)" + }, + "eu-central-1": { + "description": "EU (Frankfurt)" + }, + "eu-west-1": { + "description": "EU (Ireland)" + }, + "eu-west-2": { + "description": "EU (London)" + }, + "sa-east-1": { + "description": "South America (Sao Paulo)" + }, + "us-east-1": { + "description": "US East (N. Virginia)" + }, + "us-east-2": { + "description": "US East (Ohio)" + }, + "us-west-1": { + "description": "US West (N. California)" + }, + "us-west-2": { + "description": "US West (Oregon)" + } + }, + "services": { + "acm": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "apigateway": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "application-autoscaling": { + "defaults": { + "credentialScope": { + "service": "application-autoscaling" + }, + "hostname": "autoscaling.{region}.amazonaws.com", + "protocols": [ + "http", + "https" + ] + }, + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "appstream2": { + "defaults": { + "credentialScope": { + "service": "appstream" + }, + "protocols": [ + "https" + ] + }, + "endpoints": { + "ap-northeast-1": {}, + "eu-west-1": {}, + "us-east-1": {}, + "us-west-2": {} + } + }, + "autoscaling": { + "defaults": { + "protocols": [ + "http", + "https" + ] + }, + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "batch": { + "endpoints": { + "us-east-1": {} + } + }, + "budgets": { + "endpoints": { + "aws-global": { + "credentialScope": { + "region": "us-east-1" + }, + "hostname": "budgets.amazonaws.com" + } + }, + "isRegionalized": false, + "partitionEndpoint": "aws-global" + }, + "clouddirectory": { + "endpoints": { + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "eu-west-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-2": {} + } + }, + "cloudformation": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "cloudfront": { + "endpoints": { + "aws-global": { + "credentialScope": { + "region": "us-east-1" + }, + "hostname": "cloudfront.amazonaws.com", + "protocols": [ + "http", + "https" + ] + } + }, + "isRegionalized": false, + "partitionEndpoint": "aws-global" + }, + "cloudhsm": { + "endpoints": { + "ap-northeast-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "cloudsearch": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "cloudtrail": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "codebuild": { + "endpoints": { + "eu-west-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-2": {} + } + }, + "codecommit": { + "endpoints": { + "eu-west-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-2": {} + } + }, + "codedeploy": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "codepipeline": { + "endpoints": { + "ap-northeast-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-2": {} + } + }, + "cognito-identity": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-southeast-2": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-2": {} + } + }, + "cognito-idp": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-southeast-2": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-2": {} + } + }, + "cognito-sync": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-southeast-2": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-2": {} + } + }, + "config": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "cur": { + "endpoints": { + "us-east-1": {} + } + }, + "data.iot": { + "defaults": { + "credentialScope": { + "service": "iotdata" + }, + "protocols": [ + "https" + ] + }, + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "us-east-1": {}, + "us-west-2": {} + } + }, + "datapipeline": { + "endpoints": { + "ap-northeast-1": {}, + "ap-southeast-2": {}, + "eu-west-1": {}, + "us-east-1": {}, + "us-west-2": {} + } + }, + "devicefarm": { + "endpoints": { + "us-west-2": {} + } + }, + "directconnect": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "discovery": { + "endpoints": { + "us-west-2": {} + } + }, + "dms": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "ds": { + "endpoints": { + "ap-northeast-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "us-east-1": {}, + "us-west-2": {} + } + }, + "dynamodb": { + "defaults": { + "protocols": [ + "http", + "https" + ] + }, + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "local": { + "credentialScope": { + "region": "us-east-1" + }, + "hostname": "localhost:8000", + "protocols": [ + "http" + ] + }, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "ec2": { + "defaults": { + "protocols": [ + "http", + "https" + ] + }, + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "ecr": { + "endpoints": { + "ap-northeast-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "ecs": { + "endpoints": { + "ap-northeast-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "elasticache": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "elasticbeanstalk": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "elasticfilesystem": { + "endpoints": { + "eu-west-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-2": {} + } + }, + "elasticloadbalancing": { + "defaults": { + "protocols": [ + "http", + "https" + ] + }, + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "elasticmapreduce": { + "defaults": { + "protocols": [ + "http", + "https" + ], + "sslCommonName": "{region}.{service}.{dnsSuffix}" + }, + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": { + "sslCommonName": "{service}.{region}.{dnsSuffix}" + }, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": { + "sslCommonName": "{service}.{region}.{dnsSuffix}" + }, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "elastictranscoder": { + "endpoints": { + "ap-northeast-1": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "eu-west-1": {}, + "us-east-1": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "email": { + "endpoints": { + "eu-west-1": {}, + "us-east-1": {}, + "us-west-2": {} + } + }, + "es": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "events": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "firehose": { + "endpoints": { + "eu-west-1": {}, + "us-east-1": {}, + "us-west-2": {} + } + }, + "gamelift": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-west-2": {} + } + }, + "glacier": { + "defaults": { + "protocols": [ + "http", + "https" + ] + }, + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "health": { + "endpoints": { + "us-east-1": {} + } + }, + "iam": { + "endpoints": { + "aws-global": { + "credentialScope": { + "region": "us-east-1" + }, + "hostname": "iam.amazonaws.com" + } + }, + "isRegionalized": false, + "partitionEndpoint": "aws-global" + }, + "importexport": { + "endpoints": { + "aws-global": { + "credentialScope": { + "region": "us-east-1", + "service": "IngestionService" + }, + "hostname": "importexport.amazonaws.com", + "signatureVersions": [ + "v2", + "v4" + ] + } + }, + "isRegionalized": false, + "partitionEndpoint": "aws-global" + }, + "inspector": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-2": {}, + "eu-west-1": {}, + "us-east-1": {}, + "us-west-2": {} + } + }, + "iot": { + "defaults": { + "credentialScope": { + "service": "execute-api" + } + }, + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-2": {} + } + }, + "kinesis": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "kinesisanalytics": { + "endpoints": { + "eu-west-1": {}, + "us-east-1": {}, + "us-west-2": {} + } + }, + "kms": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "lambda": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "lightsail": { + "endpoints": { + "us-east-1": {} + } + }, + "logs": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "machinelearning": { + "endpoints": { + "eu-west-1": {}, + "us-east-1": {} + } + }, + "marketplacecommerceanalytics": { + "endpoints": { + "us-east-1": {} + } + }, + "metering.marketplace": { + "defaults": { + "credentialScope": { + "service": "aws-marketplace" + } + }, + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "mobileanalytics": { + "endpoints": { + "us-east-1": {} + } + }, + "monitoring": { + "defaults": { + "protocols": [ + "http", + "https" + ] + }, + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "mturk-requester": { + "endpoints": { + "sandbox": { + "hostname": "mturk-requester-sandbox.us-east-1.amazonaws.com" + }, + "us-east-1": {} + }, + "isRegionalized": false + }, + "opsworks": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "opsworks-cm": { + "endpoints": { + "eu-west-1": {}, + "us-east-1": {}, + "us-west-2": {} + } + }, + "organizations": { + "endpoints": { + "aws-global": { + "credentialScope": { + "region": "us-east-1" + }, + "hostname": "organizations.us-east-1.amazonaws.com" + } + }, + "isRegionalized": false, + "partitionEndpoint": "aws-global" + }, + "pinpoint": { + "defaults": { + "credentialScope": { + "service": "mobiletargeting" + } + }, + "endpoints": { + "us-east-1": {} + } + }, + "polly": { + "endpoints": { + "eu-west-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-2": {} + } + }, + "rds": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": { + "sslCommonName": "{service}.{dnsSuffix}" + }, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "redshift": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "rekognition": { + "endpoints": { + "eu-west-1": {}, + "us-east-1": {}, + "us-west-2": {} + } + }, + "route53": { + "endpoints": { + "aws-global": { + "credentialScope": { + "region": "us-east-1" + }, + "hostname": "route53.amazonaws.com" + } + }, + "isRegionalized": false, + "partitionEndpoint": "aws-global" + }, + "route53domains": { + "endpoints": { + "us-east-1": {} + } + }, + "runtime.lex": { + "defaults": { + "credentialScope": { + "service": "lex" + } + }, + "endpoints": { + "us-east-1": {} + } + }, + "s3": { + "defaults": { + "protocols": [ + "http", + "https" + ], + "signatureVersions": [ + "s3v4" + ] + }, + "endpoints": { + "ap-northeast-1": { + "hostname": "s3-ap-northeast-1.amazonaws.com", + "signatureVersions": [ + "s3", + "s3v4" + ] + }, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": { + "hostname": "s3-ap-southeast-1.amazonaws.com", + "signatureVersions": [ + "s3", + "s3v4" + ] + }, + "ap-southeast-2": { + "hostname": "s3-ap-southeast-2.amazonaws.com", + "signatureVersions": [ + "s3", + "s3v4" + ] + }, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": { + "hostname": "s3-eu-west-1.amazonaws.com", + "signatureVersions": [ + "s3", + "s3v4" + ] + }, + "eu-west-2": {}, + "s3-external-1": { + "credentialScope": { + "region": "us-east-1" + }, + "hostname": "s3-external-1.amazonaws.com", + "signatureVersions": [ + "s3", + "s3v4" + ] + }, + "sa-east-1": { + "hostname": "s3-sa-east-1.amazonaws.com", + "signatureVersions": [ + "s3", + "s3v4" + ] + }, + "us-east-1": { + "hostname": "s3.amazonaws.com", + "signatureVersions": [ + "s3", + "s3v4" + ] + }, + "us-east-2": {}, + "us-west-1": { + "hostname": "s3-us-west-1.amazonaws.com", + "signatureVersions": [ + "s3", + "s3v4" + ] + }, + "us-west-2": { + "hostname": "s3-us-west-2.amazonaws.com", + "signatureVersions": [ + "s3", + "s3v4" + ] + } + }, + "isRegionalized": true, + "partitionEndpoint": "us-east-1" + }, + "sdb": { + "defaults": { + "protocols": [ + "http", + "https" + ], + "signatureVersions": [ + "v2" + ] + }, + "endpoints": { + "ap-northeast-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "eu-west-1": {}, + "sa-east-1": {}, + "us-east-1": { + "hostname": "sdb.amazonaws.com" + }, + "us-west-1": {}, + "us-west-2": {} + } + }, + "servicecatalog": { + "endpoints": { + "ap-northeast-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-2": {} + } + }, + "shield": { + "defaults": { + "protocols": [ + "https" + ], + "sslCommonName": "Shield.us-east-1.amazonaws.com" + }, + "endpoints": { + "us-east-1": {} + }, + "isRegionalized": false + }, + "sms": { + "endpoints": { + "ap-southeast-2": {}, + "eu-west-1": {}, + "us-east-1": {} + } + }, + "snowball": { + "endpoints": { + "ap-south-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "sns": { + "defaults": { + "protocols": [ + "http", + "https" + ] + }, + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "sqs": { + "defaults": { + "protocols": [ + "http", + "https" + ], + "sslCommonName": "{region}.queue.{dnsSuffix}" + }, + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": { + "sslCommonName": "queue.{dnsSuffix}" + }, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "ssm": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "states": { + "endpoints": { + "ap-northeast-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-2": {} + } + }, + "storagegateway": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "streams.dynamodb": { + "defaults": { + "credentialScope": { + "service": "dynamodb" + }, + "protocols": [ + "http", + "http", + "https", + "https" + ] + }, + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "local": { + "credentialScope": { + "region": "us-east-1" + }, + "hostname": "localhost:8000", + "protocols": [ + "http" + ] + }, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "sts": { + "defaults": { + "credentialScope": { + "region": "us-east-1" + }, + "hostname": "sts.amazonaws.com" + }, + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": { + "credentialScope": { + "region": "ap-northeast-2" + }, + "hostname": "sts.ap-northeast-2.amazonaws.com" + }, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "aws-global": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + }, + "partitionEndpoint": "aws-global" + }, + "support": { + "endpoints": { + "us-east-1": {} + } + }, + "swf": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "ca-central-1": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "eu-west-2": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + }, + "waf": { + "endpoints": { + "aws-global": { + "credentialScope": { + "region": "us-east-1" + }, + "hostname": "waf.amazonaws.com" + } + }, + "isRegionalized": false, + "partitionEndpoint": "aws-global" + }, + "waf-regional": { + "endpoints": { + "ap-northeast-1": {}, + "eu-west-1": {}, + "us-east-1": {}, + "us-west-2": {} + } + }, + "workdocs": { + "endpoints": { + "ap-northeast-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "eu-west-1": {}, + "us-east-1": {}, + "us-west-2": {} + } + }, + "workspaces": { + "endpoints": { + "ap-northeast-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "us-east-1": {}, + "us-west-2": {} + } + }, + "xray": { + "endpoints": { + "ap-northeast-1": {}, + "ap-northeast-2": {}, + "ap-south-1": {}, + "ap-southeast-1": {}, + "ap-southeast-2": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "sa-east-1": {}, + "us-east-1": {}, + "us-east-2": {}, + "us-west-1": {}, + "us-west-2": {} + } + } + } + }, + { + "defaults": { + "hostname": "{service}.{region}.{dnsSuffix}", + "protocols": [ + "https" + ], + "signatureVersions": [ + "v4" + ] + }, + "dnsSuffix": "amazonaws.com.cn", + "partition": "aws-cn", + "partitionName": "AWS China", + "regionRegex": "^cn\\-\\w+\\-\\d+$", + "regions": { + "cn-north-1": { + "description": "China (Beijing)" + } + }, + "services": { + "autoscaling": { + "defaults": { + "protocols": [ + "http", + "https" + ] + }, + "endpoints": { + "cn-north-1": {} + } + }, + "cloudformation": { + "endpoints": { + "cn-north-1": {} + } + }, + "cloudtrail": { + "endpoints": { + "cn-north-1": {} + } + }, + "config": { + "endpoints": { + "cn-north-1": {} + } + }, + "directconnect": { + "endpoints": { + "cn-north-1": {} + } + }, + "dynamodb": { + "defaults": { + "protocols": [ + "http", + "https" + ] + }, + "endpoints": { + "cn-north-1": {} + } + }, + "ec2": { + "defaults": { + "protocols": [ + "http", + "https" + ] + }, + "endpoints": { + "cn-north-1": {} + } + }, + "elasticache": { + "endpoints": { + "cn-north-1": {} + } + }, + "elasticbeanstalk": { + "endpoints": { + "cn-north-1": {} + } + }, + "elasticloadbalancing": { + "defaults": { + "protocols": [ + "http", + "https" + ] + }, + "endpoints": { + "cn-north-1": {} + } + }, + "elasticmapreduce": { + "defaults": { + "protocols": [ + "http", + "https" + ] + }, + "endpoints": { + "cn-north-1": {} + } + }, + "events": { + "endpoints": { + "cn-north-1": {} + } + }, + "glacier": { + "defaults": { + "protocols": [ + "http", + "https" + ] + }, + "endpoints": { + "cn-north-1": {} + } + }, + "iam": { + "endpoints": { + "aws-cn-global": { + "credentialScope": { + "region": "cn-north-1" + }, + "hostname": "iam.cn-north-1.amazonaws.com.cn" + } + }, + "isRegionalized": false, + "partitionEndpoint": "aws-cn-global" + }, + "kinesis": { + "endpoints": { + "cn-north-1": {} + } + }, + "logs": { + "endpoints": { + "cn-north-1": {} + } + }, + "monitoring": { + "defaults": { + "protocols": [ + "http", + "https" + ] + }, + "endpoints": { + "cn-north-1": {} + } + }, + "rds": { + "endpoints": { + "cn-north-1": {} + } + }, + "redshift": { + "endpoints": { + "cn-north-1": {} + } + }, + "s3": { + "defaults": { + "protocols": [ + "http", + "https" + ], + "signatureVersions": [ + "s3v4" + ] + }, + "endpoints": { + "cn-north-1": {} + } + }, + "sns": { + "defaults": { + "protocols": [ + "http", + "https" + ] + }, + "endpoints": { + "cn-north-1": {} + } + }, + "sqs": { + "defaults": { + "protocols": [ + "http", + "https" + ], + "sslCommonName": "{region}.queue.{dnsSuffix}" + }, + "endpoints": { + "cn-north-1": {} + } + }, + "storagegateway": { + "endpoints": { + "cn-north-1": {} + } + }, + "streams.dynamodb": { + "defaults": { + "credentialScope": { + "service": "dynamodb" + }, + "protocols": [ + "http", + "http", + "https", + "https" + ] + }, + "endpoints": { + "cn-north-1": {} + } + }, + "sts": { + "endpoints": { + "cn-north-1": {} + } + }, + "swf": { + "endpoints": { + "cn-north-1": {} + } + } + } + }, + { + "defaults": { + "hostname": "{service}.{region}.{dnsSuffix}", + "protocols": [ + "https" + ], + "signatureVersions": [ + "v4" + ] + }, + "dnsSuffix": "amazonaws.com", + "partition": "aws-us-gov", + "partitionName": "AWS GovCloud (US)", + "regionRegex": "^us\\-gov\\-\\w+\\-\\d+$", + "regions": { + "us-gov-west-1": { + "description": "AWS GovCloud (US)" + } + }, + "services": { + "autoscaling": { + "endpoints": { + "us-gov-west-1": { + "protocols": [ + "http", + "https" + ] + } + } + }, + "cloudformation": { + "endpoints": { + "us-gov-west-1": {} + } + }, + "cloudhsm": { + "endpoints": { + "us-gov-west-1": {} + } + }, + "cloudtrail": { + "endpoints": { + "us-gov-west-1": {} + } + }, + "config": { + "endpoints": { + "us-gov-west-1": {} + } + }, + "directconnect": { + "endpoints": { + "us-gov-west-1": {} + } + }, + "dynamodb": { + "endpoints": { + "us-gov-west-1": {} + } + }, + "ec2": { + "endpoints": { + "us-gov-west-1": {} + } + }, + "elasticache": { + "endpoints": { + "us-gov-west-1": {} + } + }, + "elasticloadbalancing": { + "endpoints": { + "us-gov-west-1": { + "protocols": [ + "http", + "https" + ] + } + } + }, + "elasticmapreduce": { + "endpoints": { + "us-gov-west-1": { + "protocols": [ + "http", + "https" + ] + } + } + }, + "glacier": { + "endpoints": { + "us-gov-west-1": { + "protocols": [ + "http", + "https" + ] + } + } + }, + "iam": { + "endpoints": { + "aws-us-gov-global": { + "credentialScope": { + "region": "us-gov-west-1" + }, + "hostname": "iam.us-gov.amazonaws.com" + } + }, + "isRegionalized": false, + "partitionEndpoint": "aws-us-gov-global" + }, + "kinesis": { + "endpoints": { + "us-gov-west-1": {} + } + }, + "kms": { + "endpoints": { + "us-gov-west-1": {} + } + }, + "logs": { + "endpoints": { + "us-gov-west-1": {} + } + }, + "monitoring": { + "endpoints": { + "us-gov-west-1": {} + } + }, + "rds": { + "endpoints": { + "us-gov-west-1": {} + } + }, + "redshift": { + "endpoints": { + "us-gov-west-1": {} + } + }, + "s3": { + "defaults": { + "signatureVersions": [ + "s3", + "s3v4" + ] + }, + "endpoints": { + "fips-us-gov-west-1": { + "credentialScope": { + "region": "us-gov-west-1" + }, + "hostname": "s3-fips-us-gov-west-1.amazonaws.com" + }, + "us-gov-west-1": { + "hostname": "s3-us-gov-west-1.amazonaws.com", + "protocols": [ + "http", + "https" + ] + } + } + }, + "snowball": { + "endpoints": { + "us-gov-west-1": {} + } + }, + "sns": { + "endpoints": { + "us-gov-west-1": { + "protocols": [ + "http", + "https" + ] + } + } + }, + "sqs": { + "endpoints": { + "us-gov-west-1": { + "protocols": [ + "http", + "https" + ], + "sslCommonName": "{region}.queue.{dnsSuffix}" + } + } + }, + "streams.dynamodb": { + "defaults": { + "credentialScope": { + "service": "dynamodb" + } + }, + "endpoints": { + "us-gov-west-1": {} + } + }, + "sts": { + "endpoints": { + "us-gov-west-1": {} + } + }, + "swf": { + "endpoints": { + "us-gov-west-1": {} + } + } + } + } + ], + "version": 3 +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/endpoints/generate.go b/vendor/github.com/aws/aws-sdk-go/models/endpoints/generate.go new file mode 100644 index 000000000..f00db98de --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/endpoints/generate.go @@ -0,0 +1,6 @@ +// Package endpoints contains the models for endpoints that should be used +// to generate endpoint definition files for the SDK. +package endpoints + +//go:generate go run -tags codegen ../../private/model/cli/gen-endpoints/main.go -model ./endpoints.json -out ../../aws/endpoints/defaults.go +//go:generate gofmt -s -w ../../aws/endpoints diff --git a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/ec2.json b/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/ec2.json index 046626eab..eebce2f3e 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/ec2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/ec2.json @@ -369,7 +369,7 @@ "members": { "Token": { "shape": "StringType", - "idempotencyToken": true + "idempotencyToken": true } } }, @@ -383,19 +383,15 @@ "input": { "shape": "InputShape" }, - "http": { - "method": "POST", - "requestUri": "/path" - }, "name": "OperationName" }, "params": { "Token": "abc123" }, "serialized": { - "uri": "/path", + "uri": "/", "headers": {}, - "body": "Token=abc123" + "body": "Action=OperationName&Version=2014-01-01&Token=abc123" } }, { @@ -403,18 +399,14 @@ "input": { "shape": "InputShape" }, - "http": { - "method": "POST", - "requestUri": "/path" - }, "name": "OperationName" }, "params": { }, "serialized": { - "uri": "/path", + "uri": "/", "headers": {}, - "body": "Token=00000000-0000-4000-8000-000000000000" + "body": "Action=OperationName&Version=2014-01-01&Token=00000000-0000-4000-8000-000000000000" } } ] diff --git a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/json.json b/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/json.json index 32d734efb..2da02a066 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/json.json +++ b/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/json.json @@ -488,7 +488,7 @@ "members": { "Token": { "shape": "StringType", - "idempotencyToken": true + "idempotencyToken": true } } }, @@ -503,8 +503,7 @@ "shape": "InputShape" }, "http": { - "method": "POST", - "requestUri": "/path" + "method": "POST" }, "name": "OperationName" }, @@ -512,7 +511,7 @@ "Token": "abc123" }, "serialized": { - "uri": "/path", + "uri": "/", "headers": {}, "body": "{\"Token\": \"abc123\"}" } @@ -523,15 +522,14 @@ "shape": "InputShape" }, "http": { - "method": "POST", - "requestUri": "/path" + "method": "POST" }, "name": "OperationName" }, "params": { }, "serialized": { - "uri": "/path", + "uri": "/", "headers": {}, "body": "{\"Token\": \"00000000-0000-4000-8000-000000000000\"}" } diff --git a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/query.json b/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/query.json index 971b7ee61..a79766d95 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/query.json +++ b/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/query.json @@ -789,7 +789,7 @@ "members": { "Token": { "shape": "StringType", - "idempotencyToken": true + "idempotencyToken": true } } }, @@ -804,8 +804,7 @@ "shape": "InputShape" }, "http": { - "method": "POST", - "requestUri": "/path" + "method": "POST" }, "name": "OperationName" }, @@ -813,9 +812,9 @@ "Token": "abc123" }, "serialized": { - "uri": "/path", + "uri": "/", "headers": {}, - "body": "Token=abc123" + "body": "Action=OperationName&Version=2014-01-01&Token=abc123" } }, { @@ -824,17 +823,16 @@ "shape": "InputShape" }, "http": { - "method": "POST", - "requestUri": "/path" + "method": "POST" }, "name": "OperationName" }, "params": { }, "serialized": { - "uri": "/path", + "uri": "/", "headers": {}, - "body": "Token=00000000-0000-4000-8000-000000000000" + "body": "Action=OperationName&Version=2014-01-01&Token=00000000-0000-4000-8000-000000000000" } } ] diff --git a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/rest-json.json b/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/rest-json.json index 01d6ab217..b9cb9b07c 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/rest-json.json +++ b/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/rest-json.json @@ -286,6 +286,70 @@ } ] }, + { + "description": "Boolean in querystring", + "metadata": { + "protocol": "rest-json", + "apiVersion": "2014-01-01" + }, + "shapes": { + "InputShape": { + "type": "structure", + "members": { + "BoolQuery": { + "shape": "BoolType", + "location": "querystring", + "locationName": "bool-query" + } + } + }, + "BoolType": { + "type": "boolean" + } + }, + "cases": [ + { + "given": { + "http": { + "method": "GET", + "requestUri": "/path" + }, + "input": { + "shape": "InputShape" + }, + "name": "OperationName" + }, + "params": { + "BoolQuery": true + }, + "serialized": { + "body": "", + "uri": "/path?bool-query=true", + "headers": {} + } + }, + { + "given": { + "http": { + "method": "GET", + "requestUri": "/path" + }, + "input": { + "shape": "InputShape" + }, + "name": "OperationName" + }, + "params": { + "BoolQuery": false + }, + "serialized": { + "body": "", + "uri": "/path?bool-query=false", + "headers": {} + } + } + ] + }, { "description": "URI parameter and querystring params", "metadata": { @@ -594,7 +658,7 @@ { "given": { "http": { - "method": "GET", + "method": "POST", "requestUri": "/2014-01-01/{Foo}" }, "input": { @@ -613,7 +677,7 @@ } ] }, - { + { "description": "Blob payload", "metadata": { "protocol": "rest-json", @@ -1187,7 +1251,7 @@ "members": { "Token": { "shape": "StringType", - "idempotencyToken": true + "idempotencyToken": true } } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/rest-xml.json b/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/rest-xml.json index ad3f30441..6cde813e5 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/rest-xml.json +++ b/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/rest-xml.json @@ -898,7 +898,70 @@ } ] }, - + { + "description": "Boolean in querystring", + "metadata": { + "protocol": "rest-xml", + "apiVersion": "2014-01-01" + }, + "shapes": { + "InputShape": { + "type": "structure", + "members": { + "BoolQuery": { + "shape": "BoolType", + "location": "querystring", + "locationName": "bool-query" + } + } + }, + "BoolType": { + "type": "boolean" + } + }, + "cases": [ + { + "given": { + "http": { + "method": "GET", + "requestUri": "/path" + }, + "input": { + "shape": "InputShape" + }, + "name": "OperationName" + }, + "params": { + "BoolQuery": true + }, + "serialized": { + "body": "", + "uri": "/path?bool-query=true", + "headers": {} + } + }, + { + "given": { + "http": { + "method": "GET", + "requestUri": "/path" + }, + "input": { + "shape": "InputShape" + }, + "name": "OperationName" + }, + "params": { + "BoolQuery": false + }, + "serialized": { + "body": "", + "uri": "/path?bool-query=false", + "headers": {} + } + } + ] + }, { "description": "String payload", "metadata": { @@ -1580,7 +1643,7 @@ "members": { "Token": { "shape": "StringType", - "idempotencyToken": true + "idempotencyToken": true } } }, @@ -1606,7 +1669,7 @@ "serialized": { "uri": "/path", "headers": {}, - "body": "abc123" + "body": "abc123" } }, { @@ -1625,7 +1688,7 @@ "serialized": { "uri": "/path", "headers": {}, - "body": "00000000-0000-4000-8000-000000000000" + "body": "00000000-0000-4000-8000-000000000000" } } ] diff --git a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.go b/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.go deleted file mode 100644 index 19d97562f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.go +++ /dev/null @@ -1,70 +0,0 @@ -// Package endpoints validates regional endpoints for services. -package endpoints - -//go:generate go run -tags codegen ../model/cli/gen-endpoints/main.go endpoints.json endpoints_map.go -//go:generate gofmt -s -w endpoints_map.go - -import ( - "fmt" - "regexp" - "strings" -) - -// NormalizeEndpoint takes and endpoint and service API information to return a -// normalized endpoint and signing region. If the endpoint is not an empty string -// the service name and region will be used to look up the service's API endpoint. -// If the endpoint is provided the scheme will be added if it is not present. -func NormalizeEndpoint(endpoint, serviceName, region string, disableSSL, useDualStack bool) (normEndpoint, signingRegion string) { - if endpoint == "" { - return EndpointForRegion(serviceName, region, disableSSL, useDualStack) - } - - return AddScheme(endpoint, disableSSL), "" -} - -// EndpointForRegion returns an endpoint and its signing region for a service and region. -// if the service and region pair are not found endpoint and signingRegion will be empty. -func EndpointForRegion(svcName, region string, disableSSL, useDualStack bool) (endpoint, signingRegion string) { - dualStackField := "" - if useDualStack { - dualStackField = "/dualstack" - } - - derivedKeys := []string{ - region + "/" + svcName + dualStackField, - region + "/*" + dualStackField, - "*/" + svcName + dualStackField, - "*/*" + dualStackField, - } - - for _, key := range derivedKeys { - if val, ok := endpointsMap.Endpoints[key]; ok { - ep := val.Endpoint - ep = strings.Replace(ep, "{region}", region, -1) - ep = strings.Replace(ep, "{service}", svcName, -1) - - endpoint = ep - signingRegion = val.SigningRegion - break - } - } - - return AddScheme(endpoint, disableSSL), signingRegion -} - -// Regular expression to determine if the endpoint string is prefixed with a scheme. -var schemeRE = regexp.MustCompile("^([^:]+)://") - -// AddScheme adds the HTTP or HTTPS schemes to a endpoint URL if there is no -// scheme. If disableSSL is true HTTP will be added instead of the default HTTPS. -func AddScheme(endpoint string, disableSSL bool) string { - if endpoint != "" && !schemeRE.MatchString(endpoint) { - scheme := "https" - if disableSSL { - scheme = "http" - } - endpoint = fmt.Sprintf("%s://%s", scheme, endpoint) - } - - return endpoint -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.json b/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.json deleted file mode 100644 index c5bf3c7c3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "version": 2, - "endpoints": { - "*/*": { - "endpoint": "{service}.{region}.amazonaws.com" - }, - "cn-north-1/*": { - "endpoint": "{service}.{region}.amazonaws.com.cn", - "signatureVersion": "v4" - }, - "cn-north-1/ec2metadata": { - "endpoint": "http://169.254.169.254/latest" - }, - "us-gov-west-1/iam": { - "endpoint": "iam.us-gov.amazonaws.com" - }, - "us-gov-west-1/sts": { - "endpoint": "sts.us-gov-west-1.amazonaws.com" - }, - "us-gov-west-1/s3": { - "endpoint": "s3-{region}.amazonaws.com" - }, - "us-gov-west-1/ec2metadata": { - "endpoint": "http://169.254.169.254/latest" - }, - "*/cloudfront": { - "endpoint": "cloudfront.amazonaws.com", - "signingRegion": "us-east-1" - }, - "*/cloudsearchdomain": { - "endpoint": "", - "signingRegion": "us-east-1" - }, - "*/data.iot": { - "endpoint": "", - "signingRegion": "us-east-1" - }, - "*/ec2metadata": { - "endpoint": "http://169.254.169.254/latest" - }, - "*/iam": { - "endpoint": "iam.amazonaws.com", - "signingRegion": "us-east-1" - }, - "*/importexport": { - "endpoint": "importexport.amazonaws.com", - "signingRegion": "us-east-1" - }, - "*/route53": { - "endpoint": "route53.amazonaws.com", - "signingRegion": "us-east-1" - }, - "*/sts": { - "endpoint": "sts.amazonaws.com", - "signingRegion": "us-east-1" - }, - "*/waf": { - "endpoint": "waf.amazonaws.com", - "signingRegion": "us-east-1" - }, - "us-east-1/sdb": { - "endpoint": "sdb.amazonaws.com", - "signingRegion": "us-east-1" - }, - "*/s3": { - "endpoint": "s3-{region}.amazonaws.com" - }, - "*/s3/dualstack": { - "endpoint": "s3.dualstack.{region}.amazonaws.com" - }, - "us-east-1/s3": { - "endpoint": "s3.amazonaws.com" - }, - "eu-central-1/s3": { - "endpoint": "{service}.{region}.amazonaws.com" - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_map.go b/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_map.go deleted file mode 100644 index a81d158c3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_map.go +++ /dev/null @@ -1,91 +0,0 @@ -package endpoints - -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -type endpointStruct struct { - Version int - Endpoints map[string]endpointEntry -} - -type endpointEntry struct { - Endpoint string - SigningRegion string -} - -var endpointsMap = endpointStruct{ - Version: 2, - Endpoints: map[string]endpointEntry{ - "*/*": { - Endpoint: "{service}.{region}.amazonaws.com", - }, - "*/cloudfront": { - Endpoint: "cloudfront.amazonaws.com", - SigningRegion: "us-east-1", - }, - "*/cloudsearchdomain": { - Endpoint: "", - SigningRegion: "us-east-1", - }, - "*/data.iot": { - Endpoint: "", - SigningRegion: "us-east-1", - }, - "*/ec2metadata": { - Endpoint: "http://169.254.169.254/latest", - }, - "*/iam": { - Endpoint: "iam.amazonaws.com", - SigningRegion: "us-east-1", - }, - "*/importexport": { - Endpoint: "importexport.amazonaws.com", - SigningRegion: "us-east-1", - }, - "*/route53": { - Endpoint: "route53.amazonaws.com", - SigningRegion: "us-east-1", - }, - "*/s3": { - Endpoint: "s3-{region}.amazonaws.com", - }, - "*/s3/dualstack": { - Endpoint: "s3.dualstack.{region}.amazonaws.com", - }, - "*/sts": { - Endpoint: "sts.amazonaws.com", - SigningRegion: "us-east-1", - }, - "*/waf": { - Endpoint: "waf.amazonaws.com", - SigningRegion: "us-east-1", - }, - "cn-north-1/*": { - Endpoint: "{service}.{region}.amazonaws.com.cn", - }, - "cn-north-1/ec2metadata": { - Endpoint: "http://169.254.169.254/latest", - }, - "eu-central-1/s3": { - Endpoint: "{service}.{region}.amazonaws.com", - }, - "us-east-1/s3": { - Endpoint: "s3.amazonaws.com", - }, - "us-east-1/sdb": { - Endpoint: "sdb.amazonaws.com", - SigningRegion: "us-east-1", - }, - "us-gov-west-1/ec2metadata": { - Endpoint: "http://169.254.169.254/latest", - }, - "us-gov-west-1/iam": { - Endpoint: "iam.us-gov.amazonaws.com", - }, - "us-gov-west-1/s3": { - Endpoint: "s3-{region}.amazonaws.com", - }, - "us-gov-west-1/sts": { - Endpoint: "sts.us-gov-west-1.amazonaws.com", - }, - }, -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_test.go b/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_test.go deleted file mode 100644 index 271f8652a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_test.go +++ /dev/null @@ -1,65 +0,0 @@ -package endpoints_test - -import ( - "fmt" - "testing" - - "github.com/stretchr/testify/assert" - - "github.com/aws/aws-sdk-go/private/endpoints" -) - -func TestGenericEndpoint(t *testing.T) { - name := "service" - region := "mock-region-1" - - ep, sr := endpoints.EndpointForRegion(name, region, false, false) - assert.Equal(t, fmt.Sprintf("https://%s.%s.amazonaws.com", name, region), ep) - assert.Empty(t, sr) -} - -func TestGlobalEndpoints(t *testing.T) { - region := "mock-region-1" - svcs := []string{"cloudfront", "iam", "importexport", "route53", "sts", "waf"} - - for _, name := range svcs { - ep, sr := endpoints.EndpointForRegion(name, region, false, false) - assert.Equal(t, fmt.Sprintf("https://%s.amazonaws.com", name), ep) - assert.Equal(t, "us-east-1", sr) - } -} - -func TestDualStackEndpoint(t *testing.T) { - ep, sr := endpoints.EndpointForRegion("s3", "mock-region-1", false, true) - assert.Equal(t, "https://s3.dualstack.mock-region-1.amazonaws.com", ep) - assert.Equal(t, "", sr) - - ep, sr = endpoints.EndpointForRegion("mock-svc", "mock-region-1", false, true) - assert.Equal(t, "", ep) - assert.Equal(t, "", sr) - - ep, sr = endpoints.EndpointForRegion("s3", "mock-region-1", false, false) - assert.Equal(t, "https://s3-mock-region-1.amazonaws.com", ep) - assert.Equal(t, "", sr) -} - -func TestServicesInCN(t *testing.T) { - region := "cn-north-1" - svcs := []string{"cloudfront", "iam", "importexport", "route53", "sts", "s3", "waf"} - - for _, name := range svcs { - ep, sr := endpoints.EndpointForRegion(name, region, false, false) - assert.Equal(t, fmt.Sprintf("https://%s.%s.amazonaws.com.cn", name, region), ep) - assert.Empty(t, sr) - } -} - -func TestEC2MetadataEndpoints(t *testing.T) { - regions := []string{"us-east-1", "us-gov-west-1", "cn-north-1", "mock-region-1"} - - for _, region := range regions { - ep, sr := endpoints.EndpointForRegion("ec2metadata", region, false, false) - assert.Equal(t, "http://169.254.169.254/latest", ep) - assert.Equal(t, "", sr) - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/api.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/api.go index 33f15ad4c..a0600e0be 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/api.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/api.go @@ -5,8 +5,11 @@ package api import ( "bytes" + "encoding/json" "fmt" + "io/ioutil" "path" + "path/filepath" "regexp" "sort" "strings" @@ -39,12 +42,17 @@ type API struct { // Set to true to not generate validation shapes NoValidataShapeMethods bool + // Set to true to not generate struct field accessors + NoGenStructFieldAccessors bool + SvcClientImportPath string initialized bool imports map[string]bool name string path string + + BaseCrosslinkURL string } // A Metadata is the metadata about an API's definition. @@ -58,6 +66,21 @@ type Metadata struct { JSONVersion string TargetPrefix string Protocol string + UID string + EndpointsID string + + NoResolveEndpoint bool +} + +var serviceAliases map[string]string + +func Bootstrap() error { + b, err := ioutil.ReadFile(filepath.Join("..", "models", "customizations", "service-aliases.json")) + if err != nil { + return err + } + + return json.Unmarshal(b, &serviceAliases) } // PackageName name of the API package @@ -81,14 +104,9 @@ func (a *API) StructName() string { } name = nameRegex.ReplaceAllString(name, "") - switch strings.ToLower(name) { - case "elasticloadbalancing": - a.name = "ELB" - case "elasticloadbalancingv2": - a.name = "ELBV2" - case "config": - a.name = "ConfigService" - default: + + a.name = name + if name, ok := serviceAliases[strings.ToLower(name)]; ok { a.name = name } } @@ -169,10 +187,21 @@ func (a *API) ShapeList() []*Shape { list := make([]*Shape, 0, len(a.Shapes)) for _, n := range a.ShapeNames() { // Ignore error shapes in list - if a.Shapes[n].IsError { - continue + if s := a.Shapes[n]; !s.IsError { + list = append(list, s) + } + } + return list +} + +// ShapeListErrors returns a list of the errors defined by the API model +func (a *API) ShapeListErrors() []*Shape { + list := []*Shape{} + for _, n := range a.ShapeNames() { + // Ignore error shapes in list + if s := a.Shapes[n]; s.IsError { + list = append(list, s) } - list = append(list, a.Shapes[n]) } return list } @@ -261,10 +290,69 @@ func (a *API) APIGoCode() string { return code } +var noCrossLinkServices = map[string]struct{}{ + "apigateway": struct{}{}, + "budgets": struct{}{}, + "cloudsearch": struct{}{}, + "cloudsearchdomain": struct{}{}, + "discovery": struct{}{}, + "elastictranscoder": struct{}{}, + "es": struct{}{}, + "glacier": struct{}{}, + "importexport": struct{}{}, + "iot": struct{}{}, + "iot-data": struct{}{}, + "lambda": struct{}{}, + "machinelearning": struct{}{}, + "rekognition": struct{}{}, + "sdb": struct{}{}, + "swf": struct{}{}, +} + +func GetCrosslinkURL(baseURL, name, uid string, params ...string) string { + _, ok := noCrossLinkServices[strings.ToLower(name)] + if baseURL != "" && !ok { + return strings.Join(append([]string{baseURL, "goto", "WebAPI", uid}, params...), "/") + } + return "" +} + +func (a *API) APIName() string { + return a.name +} + // A tplService defines the template for the service generated code. -var tplService = template.Must(template.New("service").Parse(` -{{ .Documentation }}//The service client's operations are safe to be used concurrently. +var tplService = template.Must(template.New("service").Funcs(template.FuncMap{ + "ServiceNameValue": func(a *API) string { + if a.NoConstServiceNames { + return fmt.Sprintf("%q", a.Metadata.EndpointPrefix) + } + return "ServiceName" + }, + "GetCrosslinkURL": GetCrosslinkURL, + "EndpointsIDConstValue": func(a *API) string { + if a.NoConstServiceNames { + return fmt.Sprintf("%q", a.Metadata.EndpointPrefix) + } + if a.Metadata.EndpointPrefix == a.Metadata.EndpointsID { + return "ServiceName" + } + return fmt.Sprintf("%q", a.Metadata.EndpointsID) + }, + "EndpointsIDValue": func(a *API) string { + if a.NoConstServiceNames { + return fmt.Sprintf("%q", a.Metadata.EndpointPrefix) + } + + return "EndpointsID" + }, +}).Parse(` +{{ .Documentation }}// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +{{ $crosslinkURL := GetCrosslinkURL $.BaseCrosslinkURL $.APIName $.Metadata.UID -}} +{{ if ne $crosslinkURL "" -}} +// Please also see {{ $crosslinkURL }} +{{ end -}} type {{ .StructName }} struct { *client.Client } @@ -276,10 +364,14 @@ var initClient func(*client.Client) var initRequest func(*request.Request) {{ end }} -{{ if not .NoConstServiceNames }} -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "{{ .Metadata.EndpointPrefix }}" -{{ end }} + +{{ if not .NoConstServiceNames -}} +// Service information constants +const ( + ServiceName = "{{ .Metadata.EndpointPrefix }}" // Service endpoint prefix API calls made to. + EndpointsID = {{ EndpointsIDConstValue . }} // Service ID for Regions and Endpoints metadata. +) +{{- end }} // New creates a new instance of the {{ .StructName }} client with a session. // If additional configuration is needed for the client instance use the optional @@ -292,24 +384,41 @@ const ServiceName = "{{ .Metadata.EndpointPrefix }}" // // Create a {{ .StructName }} client with additional configuration // svc := {{ .PackageName }}.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *{{ .StructName }} { - c := p.ClientConfig({{ if .NoConstServiceNames }}"{{ .Metadata.EndpointPrefix }}"{{ else }}ServiceName{{ end }}, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + {{ if .Metadata.NoResolveEndpoint -}} + var c client.Config + if v, ok := p.(client.ConfigNoResolveEndpointProvider); ok { + c = v.ClientConfigNoResolveEndpoint(cfgs...) + } else { + c = p.ClientConfig({{ EndpointsIDValue . }}, cfgs...) + } + {{- else -}} + c := p.ClientConfig({{ EndpointsIDValue . }}, cfgs...) + {{- end }} + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *{{ .StructName }} { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *{{ .StructName }} { + {{- if .Metadata.SigningName }} + if len(signingName) == 0 { + signingName = "{{ .Metadata.SigningName }}" + } + {{- end }} svc := &{{ .StructName }}{ Client: client.New( cfg, metadata.ClientInfo{ - ServiceName: {{ if .NoConstServiceNames }}"{{ .Metadata.EndpointPrefix }}"{{ else }}ServiceName{{ end }}, {{ if ne .Metadata.SigningName "" }} - SigningName: "{{ .Metadata.SigningName }}",{{ end }} + ServiceName: {{ ServiceNameValue . }}, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "{{ .Metadata.APIVersion }}", -{{ if eq .Metadata.Protocol "json" }}JSONVersion: "{{ .Metadata.JSONVersion }}", - TargetPrefix: "{{ .Metadata.TargetPrefix }}", -{{ end }} + {{ if .Metadata.JSONVersion -}} + JSONVersion: "{{ .Metadata.JSONVersion }}", + {{- end }} + {{ if .Metadata.TargetPrefix -}} + TargetPrefix: "{{ .Metadata.TargetPrefix }}", + {{- end }} }, handlers, ), @@ -317,8 +426,10 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio // Handlers svc.Handlers.Sign.PushBackNamed({{if eq .Metadata.SignatureVersion "v2"}}v2{{else}}v4{{end}}.SignRequestHandler) - {{if eq .Metadata.SignatureVersion "v2"}}svc.Handlers.Sign.PushBackNamed(corehandlers.BuildContentLengthHandler) - {{end}}svc.Handlers.Build.PushBackNamed({{ .ProtocolPackage }}.BuildHandler) + {{- if eq .Metadata.SignatureVersion "v2" }} + svc.Handlers.Sign.PushBackNamed(corehandlers.BuildContentLengthHandler) + {{- end }} + svc.Handlers.Build.PushBackNamed({{ .ProtocolPackage }}.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed({{ .ProtocolPackage }}.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed({{ .ProtocolPackage }}.UnmarshalMetaHandler) svc.Handlers.UnmarshalError.PushBackNamed({{ .ProtocolPackage }}.UnmarshalErrorHandler) @@ -374,20 +485,29 @@ func (a *API) ServiceGoCode() string { // ExampleGoCode renders service example code. Returning it as a string. func (a *API) ExampleGoCode() string { exs := []string{} + imports := map[string]bool{} for _, o := range a.OperationList() { + o.imports = map[string]bool{} exs = append(exs, o.Example()) + for k, v := range o.imports { + imports[k] = v + } } - code := fmt.Sprintf("import (\n%q\n%q\n%q\n\n%q\n%q\n%q\n)\n\n"+ - "var _ time.Duration\nvar _ bytes.Buffer\n\n%s", + code := fmt.Sprintf("import (\n%q\n%q\n%q\n\n%q\n%q\n%q\n", "bytes", "fmt", "time", "github.com/aws/aws-sdk-go/aws", "github.com/aws/aws-sdk-go/aws/session", path.Join(a.SvcClientImportPath, a.PackageName()), - strings.Join(exs, "\n\n"), ) + for k, _ := range imports { + code += fmt.Sprintf("%q\n", k) + } + code += ")\n\n" + code += "var _ time.Duration\nvar _ bytes.Buffer\n\n" + code += strings.Join(exs, "\n\n") return code } @@ -425,7 +545,7 @@ var tplInterface = template.Must(template.New("interface").Parse(` // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mock{{ .StructName }}Client{} // @@ -540,3 +660,29 @@ func resolveShapeValidations(s *Shape, ancestry ...*Shape) { } ancestry = ancestry[:len(ancestry)-1] } + +// A tplAPIErrors is the top level template for the API +var tplAPIErrors = template.Must(template.New("api").Parse(` +const ( +{{ range $_, $s := $.ShapeListErrors }} + // {{ $s.ErrorCodeName }} for service response error code + // {{ printf "%q" $s.ErrorName }}. + {{ if $s.Docstring -}} + // + {{ $s.Docstring }} + {{ end -}} + {{ $s.ErrorCodeName }} = {{ printf "%q" $s.ErrorName }} +{{ end }} +) +`)) + +func (a *API) APIErrorsGoCode() string { + var buf bytes.Buffer + err := tplAPIErrors.Execute(&buf, a) + + if err != nil { + panic(err) + } + + return strings.TrimSpace(buf.String()) +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/customization_passes.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/customization_passes.go index 890c161f8..609fdf05c 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/customization_passes.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/customization_passes.go @@ -4,16 +4,45 @@ package api import ( "fmt" + "io/ioutil" "path/filepath" "strings" ) +type service struct { + srcName string + dstName string + + serviceVersion string +} + +var mergeServices = map[string]service{ + "dynamodbstreams": service{ + dstName: "dynamodb", + srcName: "streams.dynamodb", + }, + "wafregional": service{ + dstName: "waf", + srcName: "waf-regional", + serviceVersion: "2015-08-24", + }, +} + // customizationPasses Executes customization logic for the API by package name. func (a *API) customizationPasses() { var svcCustomizations = map[string]func(*API){ - "s3": s3Customizations, - "cloudfront": cloudfrontCustomizations, - "dynamodbstreams": dynamodbstreamsCustomizations, + "s3": s3Customizations, + "cloudfront": cloudfrontCustomizations, + "rds": rdsCustomizations, + + // Disable endpoint resolving for services that require customer + // to provide endpoint them selves. + "cloudsearchdomain": disableEndpointResolving, + "iotdataplane": disableEndpointResolving, + } + + for k, _ := range mergeServices { + svcCustomizations[k] = mergeServicesCustomizations } if fn := svcCustomizations[a.PackageName()]; fn != nil { @@ -89,18 +118,59 @@ func cloudfrontCustomizations(a *API) { } } -// dynamodbstreamsCustomizations references any duplicate shapes from DynamoDB -func dynamodbstreamsCustomizations(a *API) { - p := strings.Replace(a.path, "streams.dynamodb", "dynamodb", -1) +// mergeServicesCustomizations references any duplicate shapes from DynamoDB +func mergeServicesCustomizations(a *API) { + info := mergeServices[a.PackageName()] + + p := strings.Replace(a.path, info.srcName, info.dstName, -1) + + if info.serviceVersion != "" { + index := strings.LastIndex(p, "/") + files, _ := ioutil.ReadDir(p[:index]) + if len(files) > 1 { + panic("New version was introduced") + } + p = p[:index] + "/" + info.serviceVersion + } + file := filepath.Join(p, "api-2.json") - dbAPI := API{} - dbAPI.Attach(file) - dbAPI.Setup() + serviceAPI := API{} + serviceAPI.Attach(file) + serviceAPI.Setup() for n := range a.Shapes { - if _, ok := dbAPI.Shapes[n]; ok { - a.Shapes[n].resolvePkg = "github.com/aws/aws-sdk-go/service/dynamodb" + if _, ok := serviceAPI.Shapes[n]; ok { + a.Shapes[n].resolvePkg = "github.com/aws/aws-sdk-go/service/" + info.dstName } } } + +// rdsCustomizations are customization for the service/rds. This adds non-modeled fields used for presigning. +func rdsCustomizations(a *API) { + inputs := []string{ + "CopyDBSnapshotInput", + "CreateDBInstanceReadReplicaInput", + "CopyDBClusterSnapshotInput", + "CreateDBClusterInput", + } + for _, input := range inputs { + if ref, ok := a.Shapes[input]; ok { + ref.MemberRefs["SourceRegion"] = &ShapeRef{ + Documentation: docstring(`SourceRegion is the source region where the resource exists. This is not sent over the wire and is only used for presigning. This value should always have the same region as the source ARN.`), + ShapeName: "String", + Shape: a.Shapes["String"], + Ignore: true, + } + ref.MemberRefs["DestinationRegion"] = &ShapeRef{ + Documentation: docstring(`DestinationRegion is used for presigning the request to a given region.`), + ShapeName: "String", + Shape: a.Shapes["String"], + } + } + } +} + +func disableEndpointResolving(a *API) { + a.Metadata.NoResolveEndpoint = true +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/docstring.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/docstring.go index 38a7a1659..ebdd741d5 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/docstring.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/docstring.go @@ -10,6 +10,8 @@ import ( "os" "regexp" "strings" + + xhtml "golang.org/x/net/html" ) type apiDocumentation struct { @@ -78,9 +80,6 @@ var reMultiSpace = regexp.MustCompile(`\s+`) var reComments = regexp.MustCompile(``) var reFullname = regexp.MustCompile(`\s*.+?<\/fullname?>\s*`) var reExamples = regexp.MustCompile(`.+?<\/examples?>`) -var rePara = regexp.MustCompile(`<(?:p|h\d)>(.+?)`) -var reLink = regexp.MustCompile(`(.+?)`) -var reTag = regexp.MustCompile(`<.+?>`) var reEndNL = regexp.MustCompile(`\n+$`) // docstring rewrites a string to insert godocs formatting. @@ -90,21 +89,31 @@ func docstring(doc string) string { doc = reComments.ReplaceAllString(doc, "") doc = reFullname.ReplaceAllString(doc, "") doc = reExamples.ReplaceAllString(doc, "") - doc = rePara.ReplaceAllString(doc, "$1\n\n") - doc = reLink.ReplaceAllString(doc, "$2 ($1)") - doc = reTag.ReplaceAllString(doc, "$1") + doc = generateDoc(doc) doc = reEndNL.ReplaceAllString(doc, "") - doc = strings.TrimSpace(doc) if doc == "" { return "\n" } doc = html.UnescapeString(doc) - doc = wrap(doc, 72) - return commentify(doc) } +const ( + indent = " " +) + +// style is what we want to prefix a string with. +// For instance,
  • Foo
  • Bar
  • , will generate +// * Foo +// * Bar +var style = map[string]string{ + "ul": indent + "* ", + "li": indent + "* ", + "code": indent, + "pre": indent, +} + // commentify converts a string to a Go comment func commentify(doc string) string { lines := strings.Split(doc, "\n") @@ -122,7 +131,7 @@ func commentify(doc string) string { // wrap returns a rewritten version of text to have line breaks // at approximately length characters. Line breaks will only be // inserted into whitespace. -func wrap(text string, length int) string { +func wrap(text string, length int, isIndented bool) string { var buf bytes.Buffer var last rune var lastNL bool @@ -134,17 +143,22 @@ func wrap(text string, length int) string { continue // and also don't track `last` case '\n': // ignore this too, but reset col if col >= length || last == '\n' { - buf.WriteString("\n\n") + buf.WriteString("\n") } + buf.WriteString("\n") col = 0 case ' ', '\t': // opportunity to split if col >= length { buf.WriteByte('\n') col = 0 - } else { - if !lastNL { - buf.WriteRune(c) + if isIndented { + buf.WriteString(indent) + col += 3 } + } else { + // We only want to write a leading space if the col is greater than zero. + // This will provide the proper spacing for documentation. + buf.WriteRune(c) col++ // count column } default: @@ -152,7 +166,219 @@ func wrap(text string, length int) string { col++ } lastNL = c == '\n' + _ = lastNL last = c } return buf.String() } + +type tagInfo struct { + tag string + key string + val string + txt string + raw string + closingTag bool +} + +// generateDoc will generate the proper doc string for html encoded or plain text doc entries. +func generateDoc(htmlSrc string) string { + tokenizer := xhtml.NewTokenizer(strings.NewReader(htmlSrc)) + tokens := buildTokenArray(tokenizer) + scopes := findScopes(tokens) + return walk(scopes) +} + +func buildTokenArray(tokenizer *xhtml.Tokenizer) []tagInfo { + tokens := []tagInfo{} + for tt := tokenizer.Next(); tt != xhtml.ErrorToken; tt = tokenizer.Next() { + switch tt { + case xhtml.TextToken: + txt := string(tokenizer.Text()) + if len(tokens) == 0 { + info := tagInfo{ + raw: txt, + } + tokens = append(tokens, info) + } + tn, _ := tokenizer.TagName() + key, val, _ := tokenizer.TagAttr() + info := tagInfo{ + tag: string(tn), + key: string(key), + val: string(val), + txt: txt, + } + tokens = append(tokens, info) + case xhtml.StartTagToken: + tn, _ := tokenizer.TagName() + key, val, _ := tokenizer.TagAttr() + info := tagInfo{ + tag: string(tn), + key: string(key), + val: string(val), + } + tokens = append(tokens, info) + case xhtml.SelfClosingTagToken, xhtml.EndTagToken: + tn, _ := tokenizer.TagName() + key, val, _ := tokenizer.TagAttr() + info := tagInfo{ + tag: string(tn), + key: string(key), + val: string(val), + closingTag: true, + } + tokens = append(tokens, info) + } + } + return tokens +} + +// walk is used to traverse each scoped block. These scoped +// blocks will act as blocked text where we do most of our +// text manipulation. +func walk(scopes [][]tagInfo) string { + doc := "" + // Documentation will be chunked by scopes. + // Meaning, for each scope will be divided by one or more newlines. + for _, scope := range scopes { + indentStr, isIndented := priorityIndentation(scope) + block := "" + href := "" + after := false + level := 0 + lastTag := "" + for _, token := range scope { + if token.closingTag { + endl := closeTag(token, level) + block += endl + level-- + lastTag = "" + } else if token.txt == "" { + if token.val != "" { + href, after = formatText(token, "") + } + if level == 1 && isIndented { + block += indentStr + } + level++ + lastTag = token.tag + } else { + if token.txt != " " { + str, _ := formatText(token, lastTag) + block += str + if after { + block += href + after = false + } + } else { + fmt.Println(token.tag) + str, _ := formatText(tagInfo{}, lastTag) + block += str + } + } + } + if !isIndented { + block = strings.TrimPrefix(block, " ") + } + block = wrap(block, 72, isIndented) + doc += block + } + return doc +} + +// closeTag will divide up the blocks of documentation to be formated properly. +func closeTag(token tagInfo, level int) string { + switch token.tag { + case "pre", "li", "div": + return "\n" + case "p", "h1", "h2", "h3", "h4", "h5", "h6": + return "\n\n" + case "code": + // indented code is only at the 0th level. + if level == 0 { + return "\n" + } + } + return "" +} + +// formatText will format any sort of text based off of a tag. It will also return +// a boolean to add the string after the text token. +func formatText(token tagInfo, lastTag string) (string, bool) { + switch token.tag { + case "a": + if token.val != "" { + return fmt.Sprintf(" (%s)", token.val), true + } + } + + // We don't care about a single space nor no text. + if len(token.txt) == 0 || token.txt == " " { + return "", false + } + + // Here we want to indent code blocks that are newlines + if lastTag == "code" { + // Greater than one, because we don't care about newlines in the beginning + block := "" + if lines := strings.Split(token.txt, "\n"); len(lines) > 1 { + for _, line := range lines { + block += indent + line + } + block += "\n" + return block, false + } + } + return token.txt, false +} + +// This is a parser to check what type of indention is needed. +func priorityIndentation(blocks []tagInfo) (string, bool) { + if len(blocks) == 0 { + return "", false + } + + v, ok := style[blocks[0].tag] + return v, ok +} + +// Divides into scopes based off levels. +// For instance, +//

    Testing123

    • Foo
    +// This has 2 scopes, the

    and

      +func findScopes(tokens []tagInfo) [][]tagInfo { + level := 0 + scope := []tagInfo{} + scopes := [][]tagInfo{} + for _, token := range tokens { + // we will clear empty tagged tokens from the array + txt := strings.TrimSpace(token.txt) + tag := strings.TrimSpace(token.tag) + if len(txt) == 0 && len(tag) == 0 { + continue + } + + scope = append(scope, token) + + // If it is a closing tag then we check what level + // we are on. If it is 0, then that means we have found a + // scoped block. + if token.closingTag { + level-- + if level == 0 { + scopes = append(scopes, scope) + scope = []tagInfo{} + } + // Check opening tags and increment the level + } else if token.txt == "" { + level++ + } + } + // In this case, we did not run into a closing tag. This would mean + // we have plaintext for documentation. + if len(scopes) == 0 { + scopes = append(scopes, scope) + } + return scopes +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/docstring_test.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/docstring_test.go new file mode 100644 index 000000000..64e78afc0 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/docstring_test.go @@ -0,0 +1,82 @@ +// +build codegen + +package api + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestNonHTMLDocGen(t *testing.T) { + doc := "Testing 1 2 3" + expected := "// Testing 1 2 3\n" + doc = docstring(doc) + + assert.Equal(t, expected, doc) +} + +func TestListsHTMLDocGen(t *testing.T) { + doc := "
      • Testing 1 2 3
      • FooBar
      " + expected := "// * Testing 1 2 3\n// * FooBar\n" + doc = docstring(doc) + + assert.Equal(t, expected, doc) + + doc = "
      • Testing 1 2 3
      • FooBar
      " + expected = "// * Testing 1 2 3\n// * FooBar\n" + doc = docstring(doc) + + assert.Equal(t, expected, doc) + + // Test leading spaces + doc = "
      • Testing 1 2 3
      • FooBar
      " + doc = docstring(doc) + assert.Equal(t, expected, doc) + + // Paragraph check + doc = "
      • Testing 1 2 3

      • FooBar

      " + expected = "// * Testing 1 2 3\n// \n// * FooBar\n" + doc = docstring(doc) + assert.Equal(t, expected, doc) +} + +func TestInlineCodeHTMLDocGen(t *testing.T) { + doc := "
      • Testing: 1 2 3
      • FooBar
      " + expected := "// * Testing: 1 2 3\n// * FooBar\n" + doc = docstring(doc) + + assert.Equal(t, expected, doc) +} + +func TestInlineCodeInParagraphHTMLDocGen(t *testing.T) { + doc := "

      Testing: 1 2 3

      " + expected := "// Testing: 1 2 3\n" + doc = docstring(doc) + + assert.Equal(t, expected, doc) +} + +func TestEmptyPREInlineCodeHTMLDocGen(t *testing.T) { + doc := "
      Testing
      " + expected := "// Testing\n" + doc = docstring(doc) + + assert.Equal(t, expected, doc) +} + +func TestParagraph(t *testing.T) { + doc := "

      Testing 1 2 3

      " + expected := "// Testing 1 2 3\n" + doc = docstring(doc) + + assert.Equal(t, expected, doc) +} + +func TestComplexListParagraphCode(t *testing.T) { + doc := "
      • FOO Bar

      • Xyz ABC

      " + expected := "// * FOO Bar\n// \n// * Xyz ABC\n" + doc = docstring(doc) + + assert.Equal(t, expected, doc) +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/load.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/load.go index 407f7030e..5f3b9e20b 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/load.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/load.go @@ -50,6 +50,7 @@ func (a *API) AttachString(str string) { // Setup initializes the API. func (a *API) Setup() { + a.setMetadataEndpointsKey() a.writeShapeNames() a.resolveReferences() a.fixStutterNames() diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/operation.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/operation.go index 89b0f00c5..f3e5f7366 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/operation.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/operation.go @@ -24,6 +24,7 @@ type Operation struct { Paginator *Paginator Deprecated bool `json:"deprecated"` AuthType string `json:"authtype"` + imports map[string]bool } // A HTTPInfo defines the method of HTTP request for the Operation. @@ -44,7 +45,9 @@ func (o *Operation) HasOutput() bool { } // tplOperation defines a template for rendering an API Operation -var tplOperation = template.Must(template.New("operation").Parse(` +var tplOperation = template.Must(template.New("operation").Funcs(template.FuncMap{ + "GetCrosslinkURL": GetCrosslinkURL, +}).Parse(` const op{{ .ExportedName }} = "{{ .Name }}" // {{ .ExportedName }}Request generates a "aws/request.Request" representing the @@ -70,7 +73,11 @@ const op{{ .ExportedName }} = "{{ .Name }}" // if err == nil { // resp is now filled // fmt.Println(resp) // } +{{ $crosslinkURL := GetCrosslinkURL $.API.BaseCrosslinkURL $.API.APIName $.API.Metadata.UID $.ExportedName -}} +{{ if ne $crosslinkURL "" -}} // +// Please also see {{ $crosslinkURL }} +{{ end -}} func (c *{{ .API.StructName }}) {{ .ExportedName }}Request(` + `input {{ .InputRef.GoType }}) (req *request.Request, output {{ .OutputRef.GoType }}) { {{ if (or .Deprecated (or .InputRef.Deprecated .OutputRef.Deprecated)) }}if c.Client.Config.Logger != nil { @@ -93,12 +100,12 @@ func (c *{{ .API.StructName }}) {{ .ExportedName }}Request(` + input = &{{ .InputRef.GoTypeElem }}{} } + output = &{{ .OutputRef.GoTypeElem }}{} req = c.newRequest(op, input, output){{ if eq .OutputRef.Shape.Placeholder true }} req.Handlers.Unmarshal.Remove({{ .API.ProtocolPackage }}.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler){{ end }} {{ if eq .AuthType "none" }}req.Config.Credentials = credentials.AnonymousCredentials - output = &{{ .OutputRef.GoTypeElem }}{} {{ else }} output = &{{ .OutputRef.GoTypeElem }}{} {{ end }} - req.Data = output + {{ end -}} return } @@ -118,13 +125,17 @@ func (c *{{ .API.StructName }}) {{ .ExportedName }}Request(` + // // Returned Error Codes: {{ range $_, $err := .ErrorRefs -}} - {{ $errDoc := $err.IndentedDocstring -}} -// * {{ $err.Shape.ErrorName }} -{{ if $errDoc -}} -{{ $errDoc }}{{ end }} +// * {{ $err.Shape.ErrorCodeName }} "{{ $err.Shape.ErrorName}}" +{{ if $err.Docstring -}} +{{ $err.IndentedDocstring }} +{{ end -}} // {{ end -}} {{ end -}} +{{ $crosslinkURL := GetCrosslinkURL $.API.BaseCrosslinkURL $.API.APIName $.API.Metadata.UID $.ExportedName -}} +{{ if ne $crosslinkURL "" -}} +// Please also see {{ $crosslinkURL }} +{{ end -}} func (c *{{ .API.StructName }}) {{ .ExportedName }}(` + `input {{ .InputRef.GoType }}) ({{ .OutputRef.GoType }}, error) { req, out := c.{{ .ExportedName }}Request(input) @@ -198,11 +209,7 @@ func (o *Operation) InterfaceSignature() string { // tplExample defines the template for rendering an Operation example var tplExample = template.Must(template.New("operationExample").Parse(` func Example{{ .API.StructName }}_{{ .ExportedName }}() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := {{ .API.PackageName }}.New(sess) @@ -235,6 +242,10 @@ func (o *Operation) Example() string { // ExampleInput return a string of the rendered Go code for an example's input parameters func (o *Operation) ExampleInput() string { if len(o.InputRef.Shape.MemberRefs) == 0 { + if strings.Contains(o.InputRef.GoTypeElem(), ".") { + o.imports["github.com/aws/aws-sdk-go/service/"+strings.Split(o.InputRef.GoTypeElem(), ".")[0]] = true + return fmt.Sprintf("var params *%s", o.InputRef.GoTypeElem()) + } return fmt.Sprintf("var params *%s.%s", o.API.PackageName(), o.InputRef.GoTypeElem()) } @@ -274,7 +285,14 @@ var reType = regexp.MustCompile(`\b([A-Z])`) // traverseStruct returns rendered Go code for a structure type shape. func (e *example) traverseStruct(s *Shape, required, payload bool) string { var buf bytes.Buffer - buf.WriteString("&" + s.API.PackageName() + "." + s.GoTypeElem() + "{") + + if s.resolvePkg != "" { + e.imports[s.resolvePkg] = true + buf.WriteString("&" + s.GoTypeElem() + "{") + } else { + buf.WriteString("&" + s.API.PackageName() + "." + s.GoTypeElem() + "{") + } + if required { buf.WriteString(" // Required") } @@ -314,7 +332,14 @@ func (e *example) traverseStruct(s *Shape, required, payload bool) string { // traverseMap returns rendered Go code for a map type shape. func (e *example) traverseMap(s *Shape, required, payload bool) string { var buf bytes.Buffer - t := reType.ReplaceAllString(s.GoTypeElem(), s.API.PackageName()+".$1") + + t := "" + if s.resolvePkg != "" { + e.imports[s.resolvePkg] = true + t = s.GoTypeElem() + } else { + t = reType.ReplaceAllString(s.GoTypeElem(), s.API.PackageName()+".$1") + } buf.WriteString(t + "{") if required { buf.WriteString(" // Required") @@ -339,7 +364,14 @@ func (e *example) traverseMap(s *Shape, required, payload bool) string { // traverseList returns rendered Go code for a list type shape. func (e *example) traverseList(s *Shape, required, payload bool) string { var buf bytes.Buffer - t := reType.ReplaceAllString(s.GoTypeElem(), s.API.PackageName()+".$1") + t := "" + if s.resolvePkg != "" { + e.imports[s.resolvePkg] = true + t = s.GoTypeElem() + } else { + t = reType.ReplaceAllString(s.GoTypeElem(), s.API.PackageName()+".$1") + } + buf.WriteString(t + "{") if required { buf.WriteString(" // Required") diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/param_filler.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/param_filler.go index 4626e7246..eb3edb9d2 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/param_filler.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/param_filler.go @@ -55,7 +55,7 @@ func (f paramFiller) paramsStructAny(value interface{}, shape *Shape) string { case "blob": v := reflect.Indirect(reflect.ValueOf(value)) if v.IsValid() && shape.Streaming { - return fmt.Sprintf("aws.ReadSeekCloser(bytes.NewBufferString(%#v))", v.Interface()) + return fmt.Sprintf("bytes.NewReader([]byte(%#v))", v.Interface()) } else if v.IsValid() { return fmt.Sprintf("[]byte(%#v)", v.Interface()) } diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/passes.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/passes.go index 3ae3af7e2..eb6c3c434 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/passes.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/passes.go @@ -261,3 +261,23 @@ func (a *API) removeUnusedShapes() { } } } + +// Represents the service package name to EndpointsID mapping +var custEndpointsKey = map[string]string{ + "applicationautoscaling": "application-autoscaling", +} + +// Sents the EndpointsID field of Metadata with the value of the +// EndpointPrefix if EndpointsID is not set. Also adds +// customizations for services if EndpointPrefix is not a valid key. +func (a *API) setMetadataEndpointsKey() { + if len(a.Metadata.EndpointsID) != 0 { + return + } + + if v, ok := custEndpointsKey[a.PackageName()]; ok { + a.Metadata.EndpointsID = v + } else { + a.Metadata.EndpointsID = a.Metadata.EndpointPrefix + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/shape.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/shape.go index 3143dd33d..24f2567e6 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/shape.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/shape.go @@ -14,20 +14,24 @@ import ( // A ShapeRef defines the usage of a shape within the API. type ShapeRef struct { - API *API `json:"-"` - Shape *Shape `json:"-"` - Documentation string - ShapeName string `json:"shape"` - Location string - LocationName string - QueryName string - Flattened bool - Streaming bool - XMLAttribute bool + API *API `json:"-"` + Shape *Shape `json:"-"` + Documentation string + ShapeName string `json:"shape"` + Location string + LocationName string + QueryName string + Flattened bool + Streaming bool + XMLAttribute bool + // Ignore, if set, will not be sent over the wire + Ignore bool XMLNamespace XMLInfo Payload string IdempotencyToken bool `json:"idempotencyToken"` Deprecated bool `json:"deprecated"` + + OrigShapeName string `json:"-"` } // ErrorInfo represents the error block of a shape's structure @@ -69,6 +73,8 @@ type Shape struct { refs []*ShapeRef // References to this shape resolvePkg string // use this package in the goType() if present + OrigShapeName string `json:"-"` + // Defines if the shape is a placeholder and should not be used directly Placeholder bool @@ -81,8 +87,14 @@ type Shape struct { ErrorInfo ErrorInfo `json:"error"` } +// ErrorCodeName will return the error shape's name formated for +// error code const. +func (s *Shape) ErrorCodeName() string { + return "ErrCode" + s.ShapeName +} + // ErrorName will return the shape's name or error code if available based -// on the API's protocol. +// on the API's protocol. This is the error code string returned by the service. func (s *Shape) ErrorName() string { name := s.ShapeName switch s.API.Metadata.Protocol { @@ -105,10 +117,12 @@ func (s *Shape) GoTags(root, required bool) string { // the associated API's reference to use newName. func (s *Shape) Rename(newName string) { for _, r := range s.refs { + r.OrigShapeName = r.ShapeName r.ShapeName = newName } delete(s.API.Shapes, s.ShapeName) + s.OrigShapeName = s.ShapeName s.API.Shapes[newName] = s s.ShapeName = newName } @@ -130,14 +144,38 @@ func (s *Shape) GoTypeWithPkgName() string { return goType(s, true) } +// GenAccessors returns if the shape's reference should have setters generated. +func (s *ShapeRef) UseIndirection() bool { + switch s.Shape.Type { + case "map", "list", "blob", "structure": + return false + } + + if s.Streaming || s.Shape.Streaming { + return false + } + + return true +} + +// GoStructValueType returns the Shape's Go type value instead of a pointer +// for the type. +func (s *Shape) GoStructValueType(name string, ref *ShapeRef) string { + v := s.GoStructType(name, ref) + + if ref.UseIndirection() && v[0] == '*' { + return v[1:] + } + + return v +} + // GoStructType returns the type of a struct field based on the API // model definition. func (s *Shape) GoStructType(name string, ref *ShapeRef) string { if (ref.Streaming || ref.Shape.Streaming) && s.Payload == name { rtype := "io.ReadSeeker" - if len(s.refs) > 1 { - rtype = "aws.ReaderSeekCloser" - } else if strings.HasSuffix(s.ShapeName, "Output") { + if strings.HasSuffix(s.ShapeName, "Output") { rtype = "io.ReadCloser" } @@ -357,6 +395,10 @@ func (ref *ShapeRef) GoTags(toplevel bool, isRequired bool) string { tags = append(tags, ShapeTag{"idempotencyToken", "true"}) } + if ref.Ignore { + tags = append(tags, ShapeTag{"ignore", "true"}) + } + return fmt.Sprintf("`%s`", tags) } @@ -445,12 +487,25 @@ func (s *Shape) NestedShape() *Shape { return nestedShape } -var structShapeTmpl = template.Must(template.New("StructShape").Parse(` +var structShapeTmpl = template.Must(template.New("StructShape").Funcs(template.FuncMap{ + "GetCrosslinkURL": GetCrosslinkURL, +}).Parse(` {{ .Docstring }} +{{ if ne $.OrigShapeName "" -}} +{{ $crosslinkURL := GetCrosslinkURL $.API.BaseCrosslinkURL $.API.APIName $.API.Metadata.UID $.OrigShapeName -}} +{{ if ne $crosslinkURL "" -}} +// Please also see {{ $crosslinkURL }} +{{ end -}} +{{ else -}} +{{ $crosslinkURL := GetCrosslinkURL $.API.BaseCrosslinkURL $.API.APIName $.API.Metadata.UID $.ShapeName -}} +{{ if ne $crosslinkURL "" -}} +// Please also see {{ $crosslinkURL }} +{{ end -}} +{{ end -}} +{{ $context := . -}} type {{ .ShapeName }} struct { _ struct{} {{ .GoTags true false }} - {{ $context := . -}} {{ range $_, $name := $context.MemberNames -}} {{ $elem := index $context.MemberRefs $name -}} {{ $isRequired := $context.IsRequired $name -}} @@ -475,6 +530,26 @@ type {{ .ShapeName }} struct { {{ .Validations.GoCode . }} {{ end }} {{ end }} + +{{ if not .API.NoGenStructFieldAccessors }} + +{{ $builderShapeName := print .ShapeName -}} + +{{ range $_, $name := $context.MemberNames -}} + {{ $elem := index $context.MemberRefs $name -}} + +// Set{{ $name }} sets the {{ $name }} field's value. +func (s *{{ $builderShapeName }}) Set{{ $name }}(v {{ $context.GoStructValueType $name $elem }}) *{{ $builderShapeName }} { + {{ if $elem.UseIndirection -}} + s.{{ $name }} = &v + {{ else -}} + s.{{ $name }} = v + {{ end -}} + return s +} + +{{ end }} +{{ end }} `)) var enumShapeTmpl = template.Must(template.New("EnumShape").Parse(` diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/cli/gen-api/main.go b/vendor/github.com/aws/aws-sdk-go/private/model/cli/gen-api/main.go index 668ad278c..889cfd148 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/cli/gen-api/main.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/cli/gen-api/main.go @@ -34,7 +34,7 @@ var excludeServices = map[string]struct{}{ // If the SERVICES environment variable is set, and this service is not apart of the list // this service will be skipped. func newGenerateInfo(modelFile, svcPath, svcImportPath string) *generateInfo { - g := &generateInfo{API: &api.API{SvcClientImportPath: svcImportPath}} + g := &generateInfo{API: &api.API{SvcClientImportPath: svcImportPath, BaseCrosslinkURL: "https://docs.aws.amazon.com"}} g.API.Attach(modelFile) if _, ok := excludeServices[g.API.PackageName()]; ok { @@ -103,6 +103,7 @@ func main() { flag.StringVar(&sessionPath, "sessionPath", filepath.Join("aws", "session"), "generate session service client factories") flag.StringVar(&svcImportPath, "svc-import-path", "github.com/aws/aws-sdk-go/service", "namespace to generate service client Go code import path under") flag.Parse() + api.Bootstrap() files := []string{} for i := 0; i < flag.NArg(); i++ { @@ -180,6 +181,7 @@ func writeServiceFiles(g *generateInfo, filename string) { Must(writeServiceFile(g)) Must(writeInterfaceFile(g)) Must(writeWaitersFile(g)) + Must(writeAPIErrorsFile(g)) } // Must will panic if the error passed in is not nil. @@ -260,3 +262,13 @@ func writeAPIFile(g *generateInfo) error { g.API.APIGoCode(), ) } + +// writeAPIErrorsFile writes out the service api errors file. +func writeAPIErrorsFile(g *generateInfo) error { + return writeGoFile(filepath.Join(g.PackageDir, "errors.go"), + codeLayout, + "", + g.API.PackageName(), + g.API.APIErrorsGoCode(), + ) +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/cli/gen-endpoints/main.go b/vendor/github.com/aws/aws-sdk-go/private/model/cli/gen-endpoints/main.go index d6655fcf5..961eaaf2a 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/cli/gen-endpoints/main.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/cli/gen-endpoints/main.go @@ -1,49 +1,56 @@ // +build codegen -// Command aws-gen-goendpoints parses a JSON description of the AWS endpoint +// Command gen-endpoints parses a JSON description of the AWS endpoint // discovery logic and generates a Go file which returns an endpoint. // // aws-gen-goendpoints apis/_endpoints.json aws/endpoints_map.go package main import ( - "encoding/json" + "flag" + "fmt" "os" - "github.com/aws/aws-sdk-go/private/model" + "github.com/aws/aws-sdk-go/aws/endpoints" ) // Generates the endpoints from json description // -// CLI Args: -// [0] This file's execution path -// [1] The definition file to use -// [2] The output file to generate +// Args: +// -model The definition file to use +// -out The output file to generate func main() { - in, err := os.Open(os.Args[1]) - if err != nil { - panic(err) - } - defer in.Close() + var modelName, outName string + flag.StringVar(&modelName, "model", "", "Endpoints definition model") + flag.StringVar(&outName, "out", "", "File to write generated endpoints to.") + flag.Parse() - var endpoints struct { - Version int - Endpoints map[string]struct { - Endpoint string - SigningRegion string - } + if len(modelName) == 0 || len(outName) == 0 { + exitErrorf("model and out both required.") } - if err = json.NewDecoder(in).Decode(&endpoints); err != nil { - panic(err) + + modelFile, err := os.Open(modelName) + if err != nil { + exitErrorf("failed to open model definition, %v.", err) } + defer modelFile.Close() - out, err := os.Create(os.Args[2]) + outFile, err := os.Create(outName) if err != nil { - panic(err) + exitErrorf("failed to open out file, %v.", err) } - defer out.Close() + defer func() { + if err := outFile.Close(); err != nil { + exitErrorf("failed to successfully write %q file, %v", outName, err) + } + }() - if err := model.GenerateEndpoints(endpoints, out); err != nil { - panic(err) + if err := endpoints.CodeGenModel(modelFile, outFile); err != nil { + exitErrorf("failed to codegen model, %v", err) } } + +func exitErrorf(msg string, args ...interface{}) { + fmt.Fprintf(os.Stderr, msg+"\n", args...) + os.Exit(1) +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/endpoints.go b/vendor/github.com/aws/aws-sdk-go/private/model/endpoints.go deleted file mode 100644 index 91e5b1620..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/model/endpoints.go +++ /dev/null @@ -1,59 +0,0 @@ -// +build codegen - -package model - -import ( - "bytes" - "go/format" - "io" - "text/template" -) - -// GenerateEndpoints writes a Go file to the given writer. -func GenerateEndpoints(endpoints interface{}, w io.Writer) error { - tmpl, err := template.New("endpoints").Parse(t) - if err != nil { - return err - } - - out := bytes.NewBuffer(nil) - if err = tmpl.Execute(out, endpoints); err != nil { - return err - } - - b, err := format.Source(bytes.TrimSpace(out.Bytes())) - if err != nil { - return err - } - - _, err = io.Copy(w, bytes.NewReader(b)) - return err -} - -const t = ` -package endpoints - -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -type endpointStruct struct { - Version int - Endpoints map[string]endpointEntry -} - -type endpointEntry struct { - Endpoint string - SigningRegion string -} - -var endpointsMap = endpointStruct{ - Version: {{ .Version }}, - Endpoints: map[string]endpointEntry{ - {{ range $key, $entry := .Endpoints }}"{{ $key }}": endpointEntry{ - Endpoint: "{{ $entry.Endpoint }}", - {{ if ne $entry.SigningRegion "" }}SigningRegion: "{{ $entry.SigningRegion }}", - {{ end }} - }, - {{ end }} - }, -} -` diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/build_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/build_test.go index 3ad2131b7..b5f9827e3 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/build_test.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/build_test.go @@ -43,7 +43,7 @@ func init() { protocol.RandReader = &awstesting.ZeroReader{} } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService1ProtocolTest struct { *client.Client @@ -61,16 +61,17 @@ type InputService1ProtocolTest struct { // svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest { c := p.ClientConfig("inputservice1protocoltest", cfgs...) - return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService1ProtocolTest { +func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService1ProtocolTest { svc := &InputService1ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice1protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -122,7 +123,6 @@ const opInputService1TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputService1TestCaseOperation1Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService1TestCaseOperation1, @@ -133,11 +133,10 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input input = &InputService1TestShapeInputService1TestCaseOperation1Input{} } + output = &InputService1TestShapeInputService1TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService1TestShapeInputService1TestCaseOperation1Output{} - req.Data = output return } @@ -163,11 +162,23 @@ type InputService1TestShapeInputService1TestCaseOperation1Input struct { Foo *string `type:"string"` } +// SetBar sets the Bar field's value. +func (s *InputService1TestShapeInputService1TestCaseOperation1Input) SetBar(v string) *InputService1TestShapeInputService1TestCaseOperation1Input { + s.Bar = &v + return s +} + +// SetFoo sets the Foo field's value. +func (s *InputService1TestShapeInputService1TestCaseOperation1Input) SetFoo(v string) *InputService1TestShapeInputService1TestCaseOperation1Input { + s.Foo = &v + return s +} + type InputService1TestShapeInputService1TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService2ProtocolTest struct { *client.Client @@ -185,16 +196,17 @@ type InputService2ProtocolTest struct { // svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest { c := p.ClientConfig("inputservice2protocoltest", cfgs...) - return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService2ProtocolTest { +func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService2ProtocolTest { svc := &InputService2ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice2protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -246,7 +258,6 @@ const opInputService2TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService2TestCaseOperation1, @@ -257,11 +268,10 @@ func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input input = &InputService2TestShapeInputService2TestCaseOperation1Input{} } + output = &InputService2TestShapeInputService2TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService2TestShapeInputService2TestCaseOperation1Output{} - req.Data = output return } @@ -289,11 +299,29 @@ type InputService2TestShapeInputService2TestCaseOperation1Input struct { Yuck *string `locationName:"yuckLocationName" queryName:"yuckQueryName" type:"string"` } +// SetBar sets the Bar field's value. +func (s *InputService2TestShapeInputService2TestCaseOperation1Input) SetBar(v string) *InputService2TestShapeInputService2TestCaseOperation1Input { + s.Bar = &v + return s +} + +// SetFoo sets the Foo field's value. +func (s *InputService2TestShapeInputService2TestCaseOperation1Input) SetFoo(v string) *InputService2TestShapeInputService2TestCaseOperation1Input { + s.Foo = &v + return s +} + +// SetYuck sets the Yuck field's value. +func (s *InputService2TestShapeInputService2TestCaseOperation1Input) SetYuck(v string) *InputService2TestShapeInputService2TestCaseOperation1Input { + s.Yuck = &v + return s +} + type InputService2TestShapeInputService2TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService3ProtocolTest struct { *client.Client @@ -311,16 +339,17 @@ type InputService3ProtocolTest struct { // svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest { c := p.ClientConfig("inputservice3protocoltest", cfgs...) - return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService3ProtocolTest { +func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService3ProtocolTest { svc := &InputService3ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice3protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -372,7 +401,6 @@ const opInputService3TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputService3TestCaseOperation1Input) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService3TestCaseOperation1, @@ -383,11 +411,10 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input input = &InputService3TestShapeInputService3TestCaseOperation1Input{} } + output = &InputService3TestShapeInputService3TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService3TestShapeInputService3TestCaseOperation1Output{} - req.Data = output return } @@ -411,6 +438,12 @@ type InputService3TestShapeInputService3TestCaseOperation1Input struct { StructArg *InputService3TestShapeStructType `locationName:"Struct" type:"structure"` } +// SetStructArg sets the StructArg field's value. +func (s *InputService3TestShapeInputService3TestCaseOperation1Input) SetStructArg(v *InputService3TestShapeStructType) *InputService3TestShapeInputService3TestCaseOperation1Input { + s.StructArg = v + return s +} + type InputService3TestShapeInputService3TestCaseOperation1Output struct { _ struct{} `type:"structure"` } @@ -421,7 +454,13 @@ type InputService3TestShapeStructType struct { ScalarArg *string `locationName:"Scalar" type:"string"` } -//The service client's operations are safe to be used concurrently. +// SetScalarArg sets the ScalarArg field's value. +func (s *InputService3TestShapeStructType) SetScalarArg(v string) *InputService3TestShapeStructType { + s.ScalarArg = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService4ProtocolTest struct { *client.Client @@ -439,16 +478,17 @@ type InputService4ProtocolTest struct { // svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest { c := p.ClientConfig("inputservice4protocoltest", cfgs...) - return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService4ProtocolTest { +func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService4ProtocolTest { svc := &InputService4ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice4protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -500,7 +540,6 @@ const opInputService4TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputService4TestCaseOperation1Input) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService4TestCaseOperation1, @@ -511,11 +550,10 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input input = &InputService4TestShapeInputService4TestCaseOperation1Input{} } + output = &InputService4TestShapeInputService4TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService4TestShapeInputService4TestCaseOperation1Output{} - req.Data = output return } @@ -539,11 +577,17 @@ type InputService4TestShapeInputService4TestCaseOperation1Input struct { ListArg []*string `type:"list"` } +// SetListArg sets the ListArg field's value. +func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetListArg(v []*string) *InputService4TestShapeInputService4TestCaseOperation1Input { + s.ListArg = v + return s +} + type InputService4TestShapeInputService4TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService5ProtocolTest struct { *client.Client @@ -561,16 +605,17 @@ type InputService5ProtocolTest struct { // svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest { c := p.ClientConfig("inputservice5protocoltest", cfgs...) - return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService5ProtocolTest { +func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService5ProtocolTest { svc := &InputService5ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice5protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -622,7 +667,6 @@ const opInputService5TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService5TestCaseOperation1, @@ -633,11 +677,10 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input input = &InputService5TestShapeInputService5TestCaseOperation1Input{} } + output = &InputService5TestShapeInputService5TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService5TestShapeInputService5TestCaseOperation1Output{} - req.Data = output return } @@ -661,11 +704,17 @@ type InputService5TestShapeInputService5TestCaseOperation1Input struct { ListArg []*string `locationName:"ListMemberName" locationNameList:"item" type:"list"` } +// SetListArg sets the ListArg field's value. +func (s *InputService5TestShapeInputService5TestCaseOperation1Input) SetListArg(v []*string) *InputService5TestShapeInputService5TestCaseOperation1Input { + s.ListArg = v + return s +} + type InputService5TestShapeInputService5TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService6ProtocolTest struct { *client.Client @@ -683,16 +732,17 @@ type InputService6ProtocolTest struct { // svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest { c := p.ClientConfig("inputservice6protocoltest", cfgs...) - return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService6ProtocolTest { +func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService6ProtocolTest { svc := &InputService6ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice6protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -744,7 +794,6 @@ const opInputService6TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService6TestCaseOperation1, @@ -755,11 +804,10 @@ func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input input = &InputService6TestShapeInputService6TestCaseOperation1Input{} } + output = &InputService6TestShapeInputService6TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService6TestShapeInputService6TestCaseOperation1Output{} - req.Data = output return } @@ -783,11 +831,17 @@ type InputService6TestShapeInputService6TestCaseOperation1Input struct { ListArg []*string `locationName:"ListMemberName" queryName:"ListQueryName" locationNameList:"item" type:"list"` } +// SetListArg sets the ListArg field's value. +func (s *InputService6TestShapeInputService6TestCaseOperation1Input) SetListArg(v []*string) *InputService6TestShapeInputService6TestCaseOperation1Input { + s.ListArg = v + return s +} + type InputService6TestShapeInputService6TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService7ProtocolTest struct { *client.Client @@ -805,16 +859,17 @@ type InputService7ProtocolTest struct { // svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest { c := p.ClientConfig("inputservice7protocoltest", cfgs...) - return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService7ProtocolTest { +func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService7ProtocolTest { svc := &InputService7ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice7protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -866,7 +921,6 @@ const opInputService7TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService7TestCaseOperation1, @@ -877,11 +931,10 @@ func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input input = &InputService7TestShapeInputService7TestCaseOperation1Input{} } + output = &InputService7TestShapeInputService7TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService7TestShapeInputService7TestCaseOperation1Output{} - req.Data = output return } @@ -906,11 +959,17 @@ type InputService7TestShapeInputService7TestCaseOperation1Input struct { BlobArg []byte `type:"blob"` } +// SetBlobArg sets the BlobArg field's value. +func (s *InputService7TestShapeInputService7TestCaseOperation1Input) SetBlobArg(v []byte) *InputService7TestShapeInputService7TestCaseOperation1Input { + s.BlobArg = v + return s +} + type InputService7TestShapeInputService7TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService8ProtocolTest struct { *client.Client @@ -928,16 +987,17 @@ type InputService8ProtocolTest struct { // svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest { c := p.ClientConfig("inputservice8protocoltest", cfgs...) - return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService8ProtocolTest { +func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService8ProtocolTest { svc := &InputService8ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice8protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -989,7 +1049,6 @@ const opInputService8TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputService8TestCaseOperation1Input) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService8TestCaseOperation1, @@ -1000,11 +1059,10 @@ func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input input = &InputService8TestShapeInputService8TestCaseOperation1Input{} } + output = &InputService8TestShapeInputService8TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService8TestShapeInputService8TestCaseOperation1Output{} - req.Data = output return } @@ -1028,11 +1086,17 @@ type InputService8TestShapeInputService8TestCaseOperation1Input struct { TimeArg *time.Time `type:"timestamp" timestampFormat:"iso8601"` } +// SetTimeArg sets the TimeArg field's value. +func (s *InputService8TestShapeInputService8TestCaseOperation1Input) SetTimeArg(v time.Time) *InputService8TestShapeInputService8TestCaseOperation1Input { + s.TimeArg = &v + return s +} + type InputService8TestShapeInputService8TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService9ProtocolTest struct { *client.Client @@ -1050,16 +1114,17 @@ type InputService9ProtocolTest struct { // svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest { c := p.ClientConfig("inputservice9protocoltest", cfgs...) - return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService9ProtocolTest { +func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService9ProtocolTest { svc := &InputService9ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice9protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1111,23 +1176,20 @@ const opInputService9TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input *InputService9TestShapeInputShape) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation1Output) { op := &request.Operation{ - Name: opInputService9TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/path", + Name: opInputService9TestCaseOperation1, + HTTPPath: "/", } if input == nil { input = &InputService9TestShapeInputShape{} } + output = &InputService9TestShapeInputService9TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService9TestShapeInputService9TestCaseOperation1Output{} - req.Data = output return } @@ -1170,23 +1232,20 @@ const opInputService9TestCaseOperation2 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService9ProtocolTest) InputService9TestCaseOperation2Request(input *InputService9TestShapeInputShape) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation2Output) { op := &request.Operation{ - Name: opInputService9TestCaseOperation2, - HTTPMethod: "POST", - HTTPPath: "/path", + Name: opInputService9TestCaseOperation2, + HTTPPath: "/", } if input == nil { input = &InputService9TestShapeInputShape{} } + output = &InputService9TestShapeInputService9TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService9TestShapeInputService9TestCaseOperation2Output{} - req.Data = output return } @@ -1218,6 +1277,12 @@ type InputService9TestShapeInputShape struct { Token *string `type:"string" idempotencyToken:"true"` } +// SetToken sets the Token field's value. +func (s *InputService9TestShapeInputShape) SetToken(v string) *InputService9TestShapeInputShape { + s.Token = &v + return s +} + // // Tests begin here // @@ -1446,10 +1511,10 @@ func TestInputService9ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) { // assert body assert.NotNil(t, r.Body) body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Token=abc123`, util.Trim(string(body))) + awstesting.AssertQuery(t, `Action=OperationName&Token=abc123&Version=2014-01-01`, util.Trim(string(body))) // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) + awstesting.AssertURL(t, "https://test/", r.URL.String()) // assert headers @@ -1468,10 +1533,10 @@ func TestInputService9ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) { // assert body assert.NotNil(t, r.Body) body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Token=00000000-0000-4000-8000-000000000000`, util.Trim(string(body))) + awstesting.AssertQuery(t, `Action=OperationName&Token=00000000-0000-4000-8000-000000000000&Version=2014-01-01`, util.Trim(string(body))) // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) + awstesting.AssertURL(t, "https://test/", r.URL.String()) // assert headers diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/unmarshal_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/unmarshal_test.go index 852ce1e18..77ba42b44 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/unmarshal_test.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/unmarshal_test.go @@ -43,7 +43,7 @@ func init() { protocol.RandReader = &awstesting.ZeroReader{} } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService1ProtocolTest struct { *client.Client @@ -61,16 +61,17 @@ type OutputService1ProtocolTest struct { // svc := outputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService1ProtocolTest { c := p.ClientConfig("outputservice1protocoltest", cfgs...) - return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService1ProtocolTest { +func newOutputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService1ProtocolTest { svc := &OutputService1ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice1protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -122,7 +123,6 @@ const opOutputService1TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (req *request.Request, output *OutputService1TestShapeOutputService1TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService1TestCaseOperation1, @@ -133,9 +133,8 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(inp input = &OutputService1TestShapeOutputService1TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService1TestShapeOutputService1TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -177,7 +176,55 @@ type OutputService1TestShapeOutputService1TestCaseOperation1Output struct { TrueBool *bool `type:"boolean"` } -//The service client's operations are safe to be used concurrently. +// SetChar sets the Char field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetChar(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Char = &v + return s +} + +// SetDouble sets the Double field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetDouble(v float64) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Double = &v + return s +} + +// SetFalseBool sets the FalseBool field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetFalseBool(v bool) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.FalseBool = &v + return s +} + +// SetFloat sets the Float field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetFloat(v float64) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Float = &v + return s +} + +// SetLong sets the Long field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetLong(v int64) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Long = &v + return s +} + +// SetNum sets the Num field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetNum(v int64) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Num = &v + return s +} + +// SetStr sets the Str field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetStr(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Str = &v + return s +} + +// SetTrueBool sets the TrueBool field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetTrueBool(v bool) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.TrueBool = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService2ProtocolTest struct { *client.Client @@ -195,16 +242,17 @@ type OutputService2ProtocolTest struct { // svc := outputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService2ProtocolTest { c := p.ClientConfig("outputservice2protocoltest", cfgs...) - return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService2ProtocolTest { +func newOutputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService2ProtocolTest { svc := &OutputService2ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice2protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -256,7 +304,6 @@ const opOutputService2TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (req *request.Request, output *OutputService2TestShapeOutputService2TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService2TestCaseOperation1, @@ -267,9 +314,8 @@ func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(inp input = &OutputService2TestShapeOutputService2TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService2TestShapeOutputService2TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -298,7 +344,13 @@ type OutputService2TestShapeOutputService2TestCaseOperation1Output struct { Blob []byte `type:"blob"` } -//The service client's operations are safe to be used concurrently. +// SetBlob sets the Blob field's value. +func (s *OutputService2TestShapeOutputService2TestCaseOperation1Output) SetBlob(v []byte) *OutputService2TestShapeOutputService2TestCaseOperation1Output { + s.Blob = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService3ProtocolTest struct { *client.Client @@ -316,16 +368,17 @@ type OutputService3ProtocolTest struct { // svc := outputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService3ProtocolTest { c := p.ClientConfig("outputservice3protocoltest", cfgs...) - return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService3ProtocolTest { +func newOutputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService3ProtocolTest { svc := &OutputService3ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice3protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -377,7 +430,6 @@ const opOutputService3TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (req *request.Request, output *OutputService3TestShapeOutputService3TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService3TestCaseOperation1, @@ -388,9 +440,8 @@ func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(inp input = &OutputService3TestShapeOutputService3TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService3TestShapeOutputService3TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -418,7 +469,13 @@ type OutputService3TestShapeOutputService3TestCaseOperation1Output struct { ListMember []*string `type:"list"` } -//The service client's operations are safe to be used concurrently. +// SetListMember sets the ListMember field's value. +func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetListMember(v []*string) *OutputService3TestShapeOutputService3TestCaseOperation1Output { + s.ListMember = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService4ProtocolTest struct { *client.Client @@ -436,16 +493,17 @@ type OutputService4ProtocolTest struct { // svc := outputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService4ProtocolTest { c := p.ClientConfig("outputservice4protocoltest", cfgs...) - return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService4ProtocolTest { +func newOutputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService4ProtocolTest { svc := &OutputService4ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice4protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -497,7 +555,6 @@ const opOutputService4TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (req *request.Request, output *OutputService4TestShapeOutputService4TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService4TestCaseOperation1, @@ -508,9 +565,8 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(inp input = &OutputService4TestShapeOutputService4TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService4TestShapeOutputService4TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -538,7 +594,13 @@ type OutputService4TestShapeOutputService4TestCaseOperation1Output struct { ListMember []*string `locationNameList:"item" type:"list"` } -//The service client's operations are safe to be used concurrently. +// SetListMember sets the ListMember field's value. +func (s *OutputService4TestShapeOutputService4TestCaseOperation1Output) SetListMember(v []*string) *OutputService4TestShapeOutputService4TestCaseOperation1Output { + s.ListMember = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService5ProtocolTest struct { *client.Client @@ -556,16 +618,17 @@ type OutputService5ProtocolTest struct { // svc := outputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService5ProtocolTest { c := p.ClientConfig("outputservice5protocoltest", cfgs...) - return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService5ProtocolTest { +func newOutputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService5ProtocolTest { svc := &OutputService5ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice5protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -617,7 +680,6 @@ const opOutputService5TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (req *request.Request, output *OutputService5TestShapeOutputService5TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService5TestCaseOperation1, @@ -628,9 +690,8 @@ func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(inp input = &OutputService5TestShapeOutputService5TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService5TestShapeOutputService5TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -658,7 +719,13 @@ type OutputService5TestShapeOutputService5TestCaseOperation1Output struct { ListMember []*string `type:"list" flattened:"true"` } -//The service client's operations are safe to be used concurrently. +// SetListMember sets the ListMember field's value. +func (s *OutputService5TestShapeOutputService5TestCaseOperation1Output) SetListMember(v []*string) *OutputService5TestShapeOutputService5TestCaseOperation1Output { + s.ListMember = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService6ProtocolTest struct { *client.Client @@ -676,16 +743,17 @@ type OutputService6ProtocolTest struct { // svc := outputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService6ProtocolTest { c := p.ClientConfig("outputservice6protocoltest", cfgs...) - return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService6ProtocolTest { +func newOutputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService6ProtocolTest { svc := &OutputService6ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice6protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -737,7 +805,6 @@ const opOutputService6TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (req *request.Request, output *OutputService6TestShapeOutputService6TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService6TestCaseOperation1, @@ -748,9 +815,8 @@ func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(inp input = &OutputService6TestShapeOutputService6TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService6TestShapeOutputService6TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -778,13 +844,25 @@ type OutputService6TestShapeOutputService6TestCaseOperation1Output struct { Map map[string]*OutputService6TestShapeStructureType `type:"map"` } +// SetMap sets the Map field's value. +func (s *OutputService6TestShapeOutputService6TestCaseOperation1Output) SetMap(v map[string]*OutputService6TestShapeStructureType) *OutputService6TestShapeOutputService6TestCaseOperation1Output { + s.Map = v + return s +} + type OutputService6TestShapeStructureType struct { _ struct{} `type:"structure"` Foo *string `locationName:"foo" type:"string"` } -//The service client's operations are safe to be used concurrently. +// SetFoo sets the Foo field's value. +func (s *OutputService6TestShapeStructureType) SetFoo(v string) *OutputService6TestShapeStructureType { + s.Foo = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService7ProtocolTest struct { *client.Client @@ -802,16 +880,17 @@ type OutputService7ProtocolTest struct { // svc := outputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService7ProtocolTest { c := p.ClientConfig("outputservice7protocoltest", cfgs...) - return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService7ProtocolTest { +func newOutputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService7ProtocolTest { svc := &OutputService7ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice7protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -863,7 +942,6 @@ const opOutputService7TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (req *request.Request, output *OutputService7TestShapeOutputService7TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService7TestCaseOperation1, @@ -874,9 +952,8 @@ func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(inp input = &OutputService7TestShapeOutputService7TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService7TestShapeOutputService7TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -904,7 +981,13 @@ type OutputService7TestShapeOutputService7TestCaseOperation1Output struct { Map map[string]*string `type:"map" flattened:"true"` } -//The service client's operations are safe to be used concurrently. +// SetMap sets the Map field's value. +func (s *OutputService7TestShapeOutputService7TestCaseOperation1Output) SetMap(v map[string]*string) *OutputService7TestShapeOutputService7TestCaseOperation1Output { + s.Map = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService8ProtocolTest struct { *client.Client @@ -922,16 +1005,17 @@ type OutputService8ProtocolTest struct { // svc := outputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService8ProtocolTest { c := p.ClientConfig("outputservice8protocoltest", cfgs...) - return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService8ProtocolTest { +func newOutputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService8ProtocolTest { svc := &OutputService8ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice8protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -983,7 +1067,6 @@ const opOutputService8TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (req *request.Request, output *OutputService8TestShapeOutputService8TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService8TestCaseOperation1, @@ -994,9 +1077,8 @@ func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(inp input = &OutputService8TestShapeOutputService8TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService8TestShapeOutputService8TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1024,7 +1106,13 @@ type OutputService8TestShapeOutputService8TestCaseOperation1Output struct { Map map[string]*string `locationNameKey:"foo" locationNameValue:"bar" type:"map" flattened:"true"` } -//The service client's operations are safe to be used concurrently. +// SetMap sets the Map field's value. +func (s *OutputService8TestShapeOutputService8TestCaseOperation1Output) SetMap(v map[string]*string) *OutputService8TestShapeOutputService8TestCaseOperation1Output { + s.Map = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService9ProtocolTest struct { *client.Client @@ -1042,16 +1130,17 @@ type OutputService9ProtocolTest struct { // svc := outputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService9ProtocolTest { c := p.ClientConfig("outputservice9protocoltest", cfgs...) - return newOutputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService9ProtocolTest { +func newOutputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService9ProtocolTest { svc := &OutputService9ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice9protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -1103,7 +1192,6 @@ const opOutputService9TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1Request(input *OutputService9TestShapeOutputService9TestCaseOperation1Input) (req *request.Request, output *OutputService9TestShapeOutputService9TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService9TestCaseOperation1, @@ -1114,9 +1202,8 @@ func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1Request(inp input = &OutputService9TestShapeOutputService9TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService9TestShapeOutputService9TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1144,6 +1231,12 @@ type OutputService9TestShapeOutputService9TestCaseOperation1Output struct { Foo *string `type:"string"` } +// SetFoo sets the Foo field's value. +func (s *OutputService9TestShapeOutputService9TestCaseOperation1Output) SetFoo(v string) *OutputService9TestShapeOutputService9TestCaseOperation1Output { + s.Foo = &v + return s +} + // // Tests begin here // diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/build.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/build.go index 4504efe2b..6efe43d5f 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/build.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/build.go @@ -4,7 +4,9 @@ package jsonutil import ( "bytes" "encoding/base64" + "encoding/json" "fmt" + "math" "reflect" "sort" "strconv" @@ -25,6 +27,7 @@ func BuildJSON(v interface{}) ([]byte, error) { } func buildAny(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) error { + origVal := value value = reflect.Indirect(value) if !value.IsValid() { return nil @@ -61,7 +64,7 @@ func buildAny(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) err case "map": return buildMap(value, buf, tag) default: - return buildScalar(value, buf, tag) + return buildScalar(origVal, buf, tag) } } @@ -87,6 +90,10 @@ func buildStruct(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) first := true for i := 0; i < t.NumField(); i++ { member := value.Field(i) + + // This allocates the most memory. + // Additionally, we cannot skip nil fields due to + // idempotency auto filling. field := t.Field(i) if field.PkgPath != "" { @@ -98,6 +105,9 @@ func buildStruct(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) if field.Tag.Get("location") != "" { continue // ignore non-body elements } + if field.Tag.Get("ignore") != "" { + continue + } if protocol.CanSetIdempotencyToken(member, field) { token := protocol.GetIdempotencyToken() @@ -179,21 +189,32 @@ func buildMap(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) err return nil } -func buildScalar(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) error { - switch value.Kind() { +func buildScalar(v reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) error { + // prevents allocation on the heap. + scratch := [64]byte{} + switch value := reflect.Indirect(v); value.Kind() { case reflect.String: writeString(value.String(), buf) case reflect.Bool: - buf.WriteString(strconv.FormatBool(value.Bool())) + if value.Bool() { + buf.WriteString("true") + } else { + buf.WriteString("false") + } case reflect.Int64: - buf.WriteString(strconv.FormatInt(value.Int(), 10)) + buf.Write(strconv.AppendInt(scratch[:0], value.Int(), 10)) case reflect.Float64: - buf.WriteString(strconv.FormatFloat(value.Float(), 'f', -1, 64)) + f := value.Float() + if math.IsInf(f, 0) || math.IsNaN(f) { + return &json.UnsupportedValueError{Value: v, Str: strconv.FormatFloat(f, 'f', -1, 64)} + } + buf.Write(strconv.AppendFloat(scratch[:0], f, 'f', -1, 64)) default: switch value.Type() { case timeType: - converted := value.Interface().(time.Time) - buf.WriteString(strconv.FormatInt(converted.UTC().Unix(), 10)) + converted := v.Interface().(*time.Time) + + buf.Write(strconv.AppendInt(scratch[:0], converted.UTC().Unix(), 10)) case byteSliceType: if !value.IsNil() { converted := value.Interface().([]byte) @@ -219,27 +240,31 @@ func buildScalar(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) return nil } +var hex = "0123456789abcdef" + func writeString(s string, buf *bytes.Buffer) { buf.WriteByte('"') - for _, r := range s { - if r == '"' { + for i := 0; i < len(s); i++ { + if s[i] == '"' { buf.WriteString(`\"`) - } else if r == '\\' { + } else if s[i] == '\\' { buf.WriteString(`\\`) - } else if r == '\b' { + } else if s[i] == '\b' { buf.WriteString(`\b`) - } else if r == '\f' { + } else if s[i] == '\f' { buf.WriteString(`\f`) - } else if r == '\r' { + } else if s[i] == '\r' { buf.WriteString(`\r`) - } else if r == '\t' { + } else if s[i] == '\t' { buf.WriteString(`\t`) - } else if r == '\n' { + } else if s[i] == '\n' { buf.WriteString(`\n`) - } else if r < 32 { - fmt.Fprintf(buf, "\\u%0.4x", r) + } else if s[i] < 32 { + buf.WriteString("\\u00") + buf.WriteByte(hex[s[i]>>4]) + buf.WriteByte(hex[s[i]&0xF]) } else { - buf.WriteRune(r) + buf.WriteByte(s[i]) } } buf.WriteByte('"') diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/build_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/build_test.go index cb9cc458f..e86f4240e 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/build_test.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/build_test.go @@ -33,6 +33,8 @@ type J struct { T *time.Time } +var zero = 0.0 + var jsonTests = []struct { in interface{} out string @@ -68,6 +70,13 @@ var jsonTests = []struct { `{"S":"\u0000føøÿ\n\\\"\r\t\b\f"}`, ``, }, + { + J{ + F: F(4.56 / zero), + }, + "", + `json: unsupported value: +Inf`, + }, } func TestBuildJSON(t *testing.T) { diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/build_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/build_test.go index 6faf05ea2..c147fb091 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/build_test.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/build_test.go @@ -43,7 +43,7 @@ func init() { protocol.RandReader = &awstesting.ZeroReader{} } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService1ProtocolTest struct { *client.Client @@ -61,16 +61,17 @@ type InputService1ProtocolTest struct { // svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest { c := p.ClientConfig("inputservice1protocoltest", cfgs...) - return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService1ProtocolTest { +func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService1ProtocolTest { svc := &InputService1ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice1protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -124,7 +125,6 @@ const opInputService1TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputService1TestCaseOperation1Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService1TestCaseOperation1, @@ -136,11 +136,10 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input input = &InputService1TestShapeInputService1TestCaseOperation1Input{} } + output = &InputService1TestShapeInputService1TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService1TestShapeInputService1TestCaseOperation1Output{} - req.Data = output return } @@ -164,11 +163,17 @@ type InputService1TestShapeInputService1TestCaseOperation1Input struct { Name *string `type:"string"` } +// SetName sets the Name field's value. +func (s *InputService1TestShapeInputService1TestCaseOperation1Input) SetName(v string) *InputService1TestShapeInputService1TestCaseOperation1Input { + s.Name = &v + return s +} + type InputService1TestShapeInputService1TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService2ProtocolTest struct { *client.Client @@ -186,16 +191,17 @@ type InputService2ProtocolTest struct { // svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest { c := p.ClientConfig("inputservice2protocoltest", cfgs...) - return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService2ProtocolTest { +func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService2ProtocolTest { svc := &InputService2ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice2protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -249,7 +255,6 @@ const opInputService2TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService2TestCaseOperation1, @@ -260,11 +265,10 @@ func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input input = &InputService2TestShapeInputService2TestCaseOperation1Input{} } + output = &InputService2TestShapeInputService2TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService2TestShapeInputService2TestCaseOperation1Output{} - req.Data = output return } @@ -288,11 +292,17 @@ type InputService2TestShapeInputService2TestCaseOperation1Input struct { TimeArg *time.Time `type:"timestamp" timestampFormat:"unix"` } +// SetTimeArg sets the TimeArg field's value. +func (s *InputService2TestShapeInputService2TestCaseOperation1Input) SetTimeArg(v time.Time) *InputService2TestShapeInputService2TestCaseOperation1Input { + s.TimeArg = &v + return s +} + type InputService2TestShapeInputService2TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService3ProtocolTest struct { *client.Client @@ -310,16 +320,17 @@ type InputService3ProtocolTest struct { // svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest { c := p.ClientConfig("inputservice3protocoltest", cfgs...) - return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService3ProtocolTest { +func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService3ProtocolTest { svc := &InputService3ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice3protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -373,7 +384,6 @@ const opInputService3TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputShape) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService3TestCaseOperation1, @@ -384,11 +394,10 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input input = &InputService3TestShapeInputShape{} } + output = &InputService3TestShapeInputService3TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService3TestShapeInputService3TestCaseOperation1Output{} - req.Data = output return } @@ -431,7 +440,6 @@ const opInputService3TestCaseOperation2 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input *InputService3TestShapeInputShape) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation2Output) { op := &request.Operation{ Name: opInputService3TestCaseOperation2, @@ -442,11 +450,10 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input input = &InputService3TestShapeInputShape{} } + output = &InputService3TestShapeInputService3TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService3TestShapeInputService3TestCaseOperation2Output{} - req.Data = output return } @@ -481,7 +488,19 @@ type InputService3TestShapeInputShape struct { BlobMap map[string][]byte `type:"map"` } -//The service client's operations are safe to be used concurrently. +// SetBlobArg sets the BlobArg field's value. +func (s *InputService3TestShapeInputShape) SetBlobArg(v []byte) *InputService3TestShapeInputShape { + s.BlobArg = v + return s +} + +// SetBlobMap sets the BlobMap field's value. +func (s *InputService3TestShapeInputShape) SetBlobMap(v map[string][]byte) *InputService3TestShapeInputShape { + s.BlobMap = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService4ProtocolTest struct { *client.Client @@ -499,16 +518,17 @@ type InputService4ProtocolTest struct { // svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest { c := p.ClientConfig("inputservice4protocoltest", cfgs...) - return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService4ProtocolTest { +func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService4ProtocolTest { svc := &InputService4ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice4protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -562,7 +582,6 @@ const opInputService4TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputService4TestCaseOperation1Input) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService4TestCaseOperation1, @@ -574,11 +593,10 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input input = &InputService4TestShapeInputService4TestCaseOperation1Input{} } + output = &InputService4TestShapeInputService4TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService4TestShapeInputService4TestCaseOperation1Output{} - req.Data = output return } @@ -602,11 +620,17 @@ type InputService4TestShapeInputService4TestCaseOperation1Input struct { ListParam [][]byte `type:"list"` } +// SetListParam sets the ListParam field's value. +func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetListParam(v [][]byte) *InputService4TestShapeInputService4TestCaseOperation1Input { + s.ListParam = v + return s +} + type InputService4TestShapeInputService4TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService5ProtocolTest struct { *client.Client @@ -624,16 +648,17 @@ type InputService5ProtocolTest struct { // svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest { c := p.ClientConfig("inputservice5protocoltest", cfgs...) - return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService5ProtocolTest { +func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService5ProtocolTest { svc := &InputService5ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice5protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -687,7 +712,6 @@ const opInputService5TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputShape) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService5TestCaseOperation1, @@ -698,11 +722,10 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input input = &InputService5TestShapeInputShape{} } + output = &InputService5TestShapeInputService5TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService5TestShapeInputService5TestCaseOperation1Output{} - req.Data = output return } @@ -745,7 +768,6 @@ const opInputService5TestCaseOperation2 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService5ProtocolTest) InputService5TestCaseOperation2Request(input *InputService5TestShapeInputShape) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation2Output) { op := &request.Operation{ Name: opInputService5TestCaseOperation2, @@ -756,11 +778,10 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation2Request(input input = &InputService5TestShapeInputShape{} } + output = &InputService5TestShapeInputService5TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService5TestShapeInputService5TestCaseOperation2Output{} - req.Data = output return } @@ -803,7 +824,6 @@ const opInputService5TestCaseOperation3 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService5ProtocolTest) InputService5TestCaseOperation3Request(input *InputService5TestShapeInputShape) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation3Output) { op := &request.Operation{ Name: opInputService5TestCaseOperation3, @@ -814,11 +834,10 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation3Request(input input = &InputService5TestShapeInputShape{} } + output = &InputService5TestShapeInputService5TestCaseOperation3Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService5TestShapeInputService5TestCaseOperation3Output{} - req.Data = output return } @@ -861,7 +880,6 @@ const opInputService5TestCaseOperation4 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService5ProtocolTest) InputService5TestCaseOperation4Request(input *InputService5TestShapeInputShape) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation4Output) { op := &request.Operation{ Name: opInputService5TestCaseOperation4, @@ -872,11 +890,10 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation4Request(input input = &InputService5TestShapeInputShape{} } + output = &InputService5TestShapeInputService5TestCaseOperation4Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService5TestShapeInputService5TestCaseOperation4Output{} - req.Data = output return } @@ -919,7 +936,6 @@ const opInputService5TestCaseOperation5 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService5ProtocolTest) InputService5TestCaseOperation5Request(input *InputService5TestShapeInputShape) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation5Output) { op := &request.Operation{ Name: opInputService5TestCaseOperation5, @@ -930,11 +946,10 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation5Request(input input = &InputService5TestShapeInputShape{} } + output = &InputService5TestShapeInputService5TestCaseOperation5Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService5TestShapeInputService5TestCaseOperation5Output{} - req.Data = output return } @@ -977,7 +992,6 @@ const opInputService5TestCaseOperation6 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService5ProtocolTest) InputService5TestCaseOperation6Request(input *InputService5TestShapeInputShape) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation6Output) { op := &request.Operation{ Name: opInputService5TestCaseOperation6, @@ -988,11 +1002,10 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation6Request(input input = &InputService5TestShapeInputShape{} } + output = &InputService5TestShapeInputService5TestCaseOperation6Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService5TestShapeInputService5TestCaseOperation6Output{} - req.Data = output return } @@ -1040,6 +1053,12 @@ type InputService5TestShapeInputShape struct { RecursiveStruct *InputService5TestShapeRecursiveStructType `type:"structure"` } +// SetRecursiveStruct sets the RecursiveStruct field's value. +func (s *InputService5TestShapeInputShape) SetRecursiveStruct(v *InputService5TestShapeRecursiveStructType) *InputService5TestShapeInputShape { + s.RecursiveStruct = v + return s +} + type InputService5TestShapeRecursiveStructType struct { _ struct{} `type:"structure"` @@ -1052,7 +1071,31 @@ type InputService5TestShapeRecursiveStructType struct { RecursiveStruct *InputService5TestShapeRecursiveStructType `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// SetNoRecurse sets the NoRecurse field's value. +func (s *InputService5TestShapeRecursiveStructType) SetNoRecurse(v string) *InputService5TestShapeRecursiveStructType { + s.NoRecurse = &v + return s +} + +// SetRecursiveList sets the RecursiveList field's value. +func (s *InputService5TestShapeRecursiveStructType) SetRecursiveList(v []*InputService5TestShapeRecursiveStructType) *InputService5TestShapeRecursiveStructType { + s.RecursiveList = v + return s +} + +// SetRecursiveMap sets the RecursiveMap field's value. +func (s *InputService5TestShapeRecursiveStructType) SetRecursiveMap(v map[string]*InputService5TestShapeRecursiveStructType) *InputService5TestShapeRecursiveStructType { + s.RecursiveMap = v + return s +} + +// SetRecursiveStruct sets the RecursiveStruct field's value. +func (s *InputService5TestShapeRecursiveStructType) SetRecursiveStruct(v *InputService5TestShapeRecursiveStructType) *InputService5TestShapeRecursiveStructType { + s.RecursiveStruct = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService6ProtocolTest struct { *client.Client @@ -1070,16 +1113,17 @@ type InputService6ProtocolTest struct { // svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest { c := p.ClientConfig("inputservice6protocoltest", cfgs...) - return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService6ProtocolTest { +func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService6ProtocolTest { svc := &InputService6ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice6protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -1133,7 +1177,6 @@ const opInputService6TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService6TestCaseOperation1, @@ -1145,11 +1188,10 @@ func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input input = &InputService6TestShapeInputService6TestCaseOperation1Input{} } + output = &InputService6TestShapeInputService6TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService6TestShapeInputService6TestCaseOperation1Output{} - req.Data = output return } @@ -1173,11 +1215,17 @@ type InputService6TestShapeInputService6TestCaseOperation1Input struct { Map map[string]*string `type:"map"` } +// SetMap sets the Map field's value. +func (s *InputService6TestShapeInputService6TestCaseOperation1Input) SetMap(v map[string]*string) *InputService6TestShapeInputService6TestCaseOperation1Input { + s.Map = v + return s +} + type InputService6TestShapeInputService6TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService7ProtocolTest struct { *client.Client @@ -1195,21 +1243,20 @@ type InputService7ProtocolTest struct { // svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest { c := p.ClientConfig("inputservice7protocoltest", cfgs...) - return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService7ProtocolTest { +func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService7ProtocolTest { svc := &InputService7ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice7protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", - JSONVersion: "", - TargetPrefix: "", }, handlers, ), @@ -1258,23 +1305,21 @@ const opInputService7TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputShape) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService7TestCaseOperation1, HTTPMethod: "POST", - HTTPPath: "/path", + HTTPPath: "/", } if input == nil { input = &InputService7TestShapeInputShape{} } + output = &InputService7TestShapeInputService7TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService7TestShapeInputService7TestCaseOperation1Output{} - req.Data = output return } @@ -1317,23 +1362,21 @@ const opInputService7TestCaseOperation2 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService7ProtocolTest) InputService7TestCaseOperation2Request(input *InputService7TestShapeInputShape) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation2Output) { op := &request.Operation{ Name: opInputService7TestCaseOperation2, HTTPMethod: "POST", - HTTPPath: "/path", + HTTPPath: "/", } if input == nil { input = &InputService7TestShapeInputShape{} } + output = &InputService7TestShapeInputService7TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService7TestShapeInputService7TestCaseOperation2Output{} - req.Data = output return } @@ -1365,6 +1408,12 @@ type InputService7TestShapeInputShape struct { Token *string `type:"string" idempotencyToken:"true"` } +// SetToken sets the Token field's value. +func (s *InputService7TestShapeInputShape) SetToken(v string) *InputService7TestShapeInputShape { + s.Token = &v + return s +} + // // Tests begin here // @@ -1748,7 +1797,7 @@ func TestInputService7ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) { awstesting.AssertJSON(t, `{"Token":"abc123"}`, util.Trim(string(body))) // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) + awstesting.AssertURL(t, "https://test/", r.URL.String()) // assert headers @@ -1770,7 +1819,7 @@ func TestInputService7ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) { awstesting.AssertJSON(t, `{"Token":"00000000-0000-4000-8000-000000000000"}`, util.Trim(string(body))) // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) + awstesting.AssertURL(t, "https://test/", r.URL.String()) // assert headers diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/unmarshal_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/unmarshal_test.go index 972478dfd..79354a59e 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/unmarshal_test.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/unmarshal_test.go @@ -43,7 +43,7 @@ func init() { protocol.RandReader = &awstesting.ZeroReader{} } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService1ProtocolTest struct { *client.Client @@ -61,21 +61,20 @@ type OutputService1ProtocolTest struct { // svc := outputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService1ProtocolTest { c := p.ClientConfig("outputservice1protocoltest", cfgs...) - return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService1ProtocolTest { +func newOutputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService1ProtocolTest { svc := &OutputService1ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice1protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", - JSONVersion: "", - TargetPrefix: "", }, handlers, ), @@ -124,7 +123,6 @@ const opOutputService1TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (req *request.Request, output *OutputService1TestShapeOutputService1TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService1TestCaseOperation1, @@ -135,9 +133,8 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(inp input = &OutputService1TestShapeOutputService1TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService1TestShapeOutputService1TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -179,7 +176,55 @@ type OutputService1TestShapeOutputService1TestCaseOperation1Output struct { TrueBool *bool `type:"boolean"` } -//The service client's operations are safe to be used concurrently. +// SetChar sets the Char field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetChar(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Char = &v + return s +} + +// SetDouble sets the Double field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetDouble(v float64) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Double = &v + return s +} + +// SetFalseBool sets the FalseBool field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetFalseBool(v bool) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.FalseBool = &v + return s +} + +// SetFloat sets the Float field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetFloat(v float64) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Float = &v + return s +} + +// SetLong sets the Long field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetLong(v int64) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Long = &v + return s +} + +// SetNum sets the Num field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetNum(v int64) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Num = &v + return s +} + +// SetStr sets the Str field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetStr(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Str = &v + return s +} + +// SetTrueBool sets the TrueBool field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetTrueBool(v bool) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.TrueBool = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService2ProtocolTest struct { *client.Client @@ -197,21 +242,20 @@ type OutputService2ProtocolTest struct { // svc := outputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService2ProtocolTest { c := p.ClientConfig("outputservice2protocoltest", cfgs...) - return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService2ProtocolTest { +func newOutputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService2ProtocolTest { svc := &OutputService2ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice2protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", - JSONVersion: "", - TargetPrefix: "", }, handlers, ), @@ -260,7 +304,6 @@ const opOutputService2TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (req *request.Request, output *OutputService2TestShapeOutputService2TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService2TestCaseOperation1, @@ -271,9 +314,8 @@ func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(inp input = &OutputService2TestShapeOutputService2TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService2TestShapeOutputService2TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -298,6 +340,12 @@ type OutputService2TestShapeBlobContainer struct { Foo []byte `locationName:"foo" type:"blob"` } +// SetFoo sets the Foo field's value. +func (s *OutputService2TestShapeBlobContainer) SetFoo(v []byte) *OutputService2TestShapeBlobContainer { + s.Foo = v + return s +} + type OutputService2TestShapeOutputService2TestCaseOperation1Input struct { _ struct{} `type:"structure"` } @@ -311,7 +359,19 @@ type OutputService2TestShapeOutputService2TestCaseOperation1Output struct { StructMember *OutputService2TestShapeBlobContainer `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// SetBlobMember sets the BlobMember field's value. +func (s *OutputService2TestShapeOutputService2TestCaseOperation1Output) SetBlobMember(v []byte) *OutputService2TestShapeOutputService2TestCaseOperation1Output { + s.BlobMember = v + return s +} + +// SetStructMember sets the StructMember field's value. +func (s *OutputService2TestShapeOutputService2TestCaseOperation1Output) SetStructMember(v *OutputService2TestShapeBlobContainer) *OutputService2TestShapeOutputService2TestCaseOperation1Output { + s.StructMember = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService3ProtocolTest struct { *client.Client @@ -329,21 +389,20 @@ type OutputService3ProtocolTest struct { // svc := outputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService3ProtocolTest { c := p.ClientConfig("outputservice3protocoltest", cfgs...) - return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService3ProtocolTest { +func newOutputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService3ProtocolTest { svc := &OutputService3ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice3protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", - JSONVersion: "", - TargetPrefix: "", }, handlers, ), @@ -392,7 +451,6 @@ const opOutputService3TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (req *request.Request, output *OutputService3TestShapeOutputService3TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService3TestCaseOperation1, @@ -403,9 +461,8 @@ func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(inp input = &OutputService3TestShapeOutputService3TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService3TestShapeOutputService3TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -435,13 +492,31 @@ type OutputService3TestShapeOutputService3TestCaseOperation1Output struct { TimeMember *time.Time `type:"timestamp" timestampFormat:"unix"` } +// SetStructMember sets the StructMember field's value. +func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetStructMember(v *OutputService3TestShapeTimeContainer) *OutputService3TestShapeOutputService3TestCaseOperation1Output { + s.StructMember = v + return s +} + +// SetTimeMember sets the TimeMember field's value. +func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetTimeMember(v time.Time) *OutputService3TestShapeOutputService3TestCaseOperation1Output { + s.TimeMember = &v + return s +} + type OutputService3TestShapeTimeContainer struct { _ struct{} `type:"structure"` Foo *time.Time `locationName:"foo" type:"timestamp" timestampFormat:"unix"` } -//The service client's operations are safe to be used concurrently. +// SetFoo sets the Foo field's value. +func (s *OutputService3TestShapeTimeContainer) SetFoo(v time.Time) *OutputService3TestShapeTimeContainer { + s.Foo = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService4ProtocolTest struct { *client.Client @@ -459,21 +534,20 @@ type OutputService4ProtocolTest struct { // svc := outputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService4ProtocolTest { c := p.ClientConfig("outputservice4protocoltest", cfgs...) - return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService4ProtocolTest { +func newOutputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService4ProtocolTest { svc := &OutputService4ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice4protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", - JSONVersion: "", - TargetPrefix: "", }, handlers, ), @@ -522,7 +596,6 @@ const opOutputService4TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (req *request.Request, output *OutputService4TestShapeOutputShape) { op := &request.Operation{ Name: opOutputService4TestCaseOperation1, @@ -533,9 +606,8 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(inp input = &OutputService4TestShapeOutputService4TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService4TestShapeOutputShape{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -578,7 +650,6 @@ const opOutputService4TestCaseOperation2 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation2Request(input *OutputService4TestShapeOutputService4TestCaseOperation2Input) (req *request.Request, output *OutputService4TestShapeOutputShape) { op := &request.Operation{ Name: opOutputService4TestCaseOperation2, @@ -589,9 +660,8 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation2Request(inp input = &OutputService4TestShapeOutputService4TestCaseOperation2Input{} } - req = c.newRequest(op, input, output) output = &OutputService4TestShapeOutputShape{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -627,11 +697,29 @@ type OutputService4TestShapeOutputShape struct { ListMemberStruct []*OutputService4TestShapeStructType `type:"list"` } +// SetListMember sets the ListMember field's value. +func (s *OutputService4TestShapeOutputShape) SetListMember(v []*string) *OutputService4TestShapeOutputShape { + s.ListMember = v + return s +} + +// SetListMemberMap sets the ListMemberMap field's value. +func (s *OutputService4TestShapeOutputShape) SetListMemberMap(v []map[string]*string) *OutputService4TestShapeOutputShape { + s.ListMemberMap = v + return s +} + +// SetListMemberStruct sets the ListMemberStruct field's value. +func (s *OutputService4TestShapeOutputShape) SetListMemberStruct(v []*OutputService4TestShapeStructType) *OutputService4TestShapeOutputShape { + s.ListMemberStruct = v + return s +} + type OutputService4TestShapeStructType struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService5ProtocolTest struct { *client.Client @@ -649,21 +737,20 @@ type OutputService5ProtocolTest struct { // svc := outputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService5ProtocolTest { c := p.ClientConfig("outputservice5protocoltest", cfgs...) - return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService5ProtocolTest { +func newOutputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService5ProtocolTest { svc := &OutputService5ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice5protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", - JSONVersion: "", - TargetPrefix: "", }, handlers, ), @@ -712,7 +799,6 @@ const opOutputService5TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (req *request.Request, output *OutputService5TestShapeOutputService5TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService5TestCaseOperation1, @@ -723,9 +809,8 @@ func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(inp input = &OutputService5TestShapeOutputService5TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService5TestShapeOutputService5TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -753,7 +838,13 @@ type OutputService5TestShapeOutputService5TestCaseOperation1Output struct { MapMember map[string][]*int64 `type:"map"` } -//The service client's operations are safe to be used concurrently. +// SetMapMember sets the MapMember field's value. +func (s *OutputService5TestShapeOutputService5TestCaseOperation1Output) SetMapMember(v map[string][]*int64) *OutputService5TestShapeOutputService5TestCaseOperation1Output { + s.MapMember = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService6ProtocolTest struct { *client.Client @@ -771,21 +862,20 @@ type OutputService6ProtocolTest struct { // svc := outputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService6ProtocolTest { c := p.ClientConfig("outputservice6protocoltest", cfgs...) - return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService6ProtocolTest { +func newOutputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService6ProtocolTest { svc := &OutputService6ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice6protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", - JSONVersion: "", - TargetPrefix: "", }, handlers, ), @@ -834,7 +924,6 @@ const opOutputService6TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (req *request.Request, output *OutputService6TestShapeOutputService6TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService6TestCaseOperation1, @@ -845,9 +934,8 @@ func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(inp input = &OutputService6TestShapeOutputService6TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService6TestShapeOutputService6TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -875,6 +963,12 @@ type OutputService6TestShapeOutputService6TestCaseOperation1Output struct { StrType *string `type:"string"` } +// SetStrType sets the StrType field's value. +func (s *OutputService6TestShapeOutputService6TestCaseOperation1Output) SetStrType(v string) *OutputService6TestShapeOutputService6TestCaseOperation1Output { + s.StrType = &v + return s +} + // // Tests begin here // diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/build_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/query/build_test.go index a6ab112f0..a8e586f23 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/build_test.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/query/build_test.go @@ -43,7 +43,7 @@ func init() { protocol.RandReader = &awstesting.ZeroReader{} } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService1ProtocolTest struct { *client.Client @@ -61,16 +61,17 @@ type InputService1ProtocolTest struct { // svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest { c := p.ClientConfig("inputservice1protocoltest", cfgs...) - return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService1ProtocolTest { +func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService1ProtocolTest { svc := &InputService1ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice1protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -122,7 +123,6 @@ const opInputService1TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService1TestCaseOperation1, @@ -133,11 +133,10 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input input = &InputService1TestShapeInputShape{} } + output = &InputService1TestShapeInputService1TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService1TestShapeInputService1TestCaseOperation1Output{} - req.Data = output return } @@ -180,7 +179,6 @@ const opInputService1TestCaseOperation2 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService1ProtocolTest) InputService1TestCaseOperation2Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation2Output) { op := &request.Operation{ Name: opInputService1TestCaseOperation2, @@ -191,11 +189,10 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation2Request(input input = &InputService1TestShapeInputShape{} } + output = &InputService1TestShapeInputService1TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService1TestShapeInputService1TestCaseOperation2Output{} - req.Data = output return } @@ -238,7 +235,6 @@ const opInputService1TestCaseOperation3 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService1ProtocolTest) InputService1TestCaseOperation3Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation3Output) { op := &request.Operation{ Name: opInputService1TestCaseOperation3, @@ -249,11 +245,10 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation3Request(input input = &InputService1TestShapeInputShape{} } + output = &InputService1TestShapeInputService1TestCaseOperation3Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService1TestShapeInputService1TestCaseOperation3Output{} - req.Data = output return } @@ -293,7 +288,25 @@ type InputService1TestShapeInputShape struct { Foo *string `type:"string"` } -//The service client's operations are safe to be used concurrently. +// SetBar sets the Bar field's value. +func (s *InputService1TestShapeInputShape) SetBar(v string) *InputService1TestShapeInputShape { + s.Bar = &v + return s +} + +// SetBaz sets the Baz field's value. +func (s *InputService1TestShapeInputShape) SetBaz(v bool) *InputService1TestShapeInputShape { + s.Baz = &v + return s +} + +// SetFoo sets the Foo field's value. +func (s *InputService1TestShapeInputShape) SetFoo(v string) *InputService1TestShapeInputShape { + s.Foo = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService2ProtocolTest struct { *client.Client @@ -311,16 +324,17 @@ type InputService2ProtocolTest struct { // svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest { c := p.ClientConfig("inputservice2protocoltest", cfgs...) - return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService2ProtocolTest { +func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService2ProtocolTest { svc := &InputService2ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice2protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -372,7 +386,6 @@ const opInputService2TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService2TestCaseOperation1, @@ -383,11 +396,10 @@ func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input input = &InputService2TestShapeInputService2TestCaseOperation1Input{} } + output = &InputService2TestShapeInputService2TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService2TestShapeInputService2TestCaseOperation1Output{} - req.Data = output return } @@ -411,6 +423,12 @@ type InputService2TestShapeInputService2TestCaseOperation1Input struct { StructArg *InputService2TestShapeStructType `type:"structure"` } +// SetStructArg sets the StructArg field's value. +func (s *InputService2TestShapeInputService2TestCaseOperation1Input) SetStructArg(v *InputService2TestShapeStructType) *InputService2TestShapeInputService2TestCaseOperation1Input { + s.StructArg = v + return s +} + type InputService2TestShapeInputService2TestCaseOperation1Output struct { _ struct{} `type:"structure"` } @@ -421,7 +439,13 @@ type InputService2TestShapeStructType struct { ScalarArg *string `type:"string"` } -//The service client's operations are safe to be used concurrently. +// SetScalarArg sets the ScalarArg field's value. +func (s *InputService2TestShapeStructType) SetScalarArg(v string) *InputService2TestShapeStructType { + s.ScalarArg = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService3ProtocolTest struct { *client.Client @@ -439,16 +463,17 @@ type InputService3ProtocolTest struct { // svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest { c := p.ClientConfig("inputservice3protocoltest", cfgs...) - return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService3ProtocolTest { +func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService3ProtocolTest { svc := &InputService3ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice3protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -500,7 +525,6 @@ const opInputService3TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputShape) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService3TestCaseOperation1, @@ -511,11 +535,10 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input input = &InputService3TestShapeInputShape{} } + output = &InputService3TestShapeInputService3TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService3TestShapeInputService3TestCaseOperation1Output{} - req.Data = output return } @@ -558,7 +581,6 @@ const opInputService3TestCaseOperation2 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input *InputService3TestShapeInputShape) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation2Output) { op := &request.Operation{ Name: opInputService3TestCaseOperation2, @@ -569,11 +591,10 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input input = &InputService3TestShapeInputShape{} } + output = &InputService3TestShapeInputService3TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService3TestShapeInputService3TestCaseOperation2Output{} - req.Data = output return } @@ -605,7 +626,13 @@ type InputService3TestShapeInputShape struct { ListArg []*string `type:"list"` } -//The service client's operations are safe to be used concurrently. +// SetListArg sets the ListArg field's value. +func (s *InputService3TestShapeInputShape) SetListArg(v []*string) *InputService3TestShapeInputShape { + s.ListArg = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService4ProtocolTest struct { *client.Client @@ -623,16 +650,17 @@ type InputService4ProtocolTest struct { // svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest { c := p.ClientConfig("inputservice4protocoltest", cfgs...) - return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService4ProtocolTest { +func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService4ProtocolTest { svc := &InputService4ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice4protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -684,7 +712,6 @@ const opInputService4TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputShape) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService4TestCaseOperation1, @@ -695,11 +722,10 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input input = &InputService4TestShapeInputShape{} } + output = &InputService4TestShapeInputService4TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService4TestShapeInputService4TestCaseOperation1Output{} - req.Data = output return } @@ -742,7 +768,6 @@ const opInputService4TestCaseOperation2 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService4ProtocolTest) InputService4TestCaseOperation2Request(input *InputService4TestShapeInputShape) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation2Output) { op := &request.Operation{ Name: opInputService4TestCaseOperation2, @@ -753,11 +778,10 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation2Request(input input = &InputService4TestShapeInputShape{} } + output = &InputService4TestShapeInputService4TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService4TestShapeInputService4TestCaseOperation2Output{} - req.Data = output return } @@ -793,7 +817,25 @@ type InputService4TestShapeInputShape struct { ScalarArg *string `type:"string"` } -//The service client's operations are safe to be used concurrently. +// SetListArg sets the ListArg field's value. +func (s *InputService4TestShapeInputShape) SetListArg(v []*string) *InputService4TestShapeInputShape { + s.ListArg = v + return s +} + +// SetNamedListArg sets the NamedListArg field's value. +func (s *InputService4TestShapeInputShape) SetNamedListArg(v []*string) *InputService4TestShapeInputShape { + s.NamedListArg = v + return s +} + +// SetScalarArg sets the ScalarArg field's value. +func (s *InputService4TestShapeInputShape) SetScalarArg(v string) *InputService4TestShapeInputShape { + s.ScalarArg = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService5ProtocolTest struct { *client.Client @@ -811,16 +853,17 @@ type InputService5ProtocolTest struct { // svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest { c := p.ClientConfig("inputservice5protocoltest", cfgs...) - return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService5ProtocolTest { +func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService5ProtocolTest { svc := &InputService5ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice5protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -872,7 +915,6 @@ const opInputService5TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService5TestCaseOperation1, @@ -883,11 +925,10 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input input = &InputService5TestShapeInputService5TestCaseOperation1Input{} } + output = &InputService5TestShapeInputService5TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService5TestShapeInputService5TestCaseOperation1Output{} - req.Data = output return } @@ -911,11 +952,17 @@ type InputService5TestShapeInputService5TestCaseOperation1Input struct { MapArg map[string]*string `type:"map" flattened:"true"` } +// SetMapArg sets the MapArg field's value. +func (s *InputService5TestShapeInputService5TestCaseOperation1Input) SetMapArg(v map[string]*string) *InputService5TestShapeInputService5TestCaseOperation1Input { + s.MapArg = v + return s +} + type InputService5TestShapeInputService5TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService6ProtocolTest struct { *client.Client @@ -933,16 +980,17 @@ type InputService6ProtocolTest struct { // svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest { c := p.ClientConfig("inputservice6protocoltest", cfgs...) - return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService6ProtocolTest { +func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService6ProtocolTest { svc := &InputService6ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice6protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -994,7 +1042,6 @@ const opInputService6TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService6TestCaseOperation1, @@ -1005,11 +1052,10 @@ func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input input = &InputService6TestShapeInputService6TestCaseOperation1Input{} } + output = &InputService6TestShapeInputService6TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService6TestShapeInputService6TestCaseOperation1Output{} - req.Data = output return } @@ -1033,11 +1079,17 @@ type InputService6TestShapeInputService6TestCaseOperation1Input struct { ListArg []*string `locationNameList:"item" type:"list"` } +// SetListArg sets the ListArg field's value. +func (s *InputService6TestShapeInputService6TestCaseOperation1Input) SetListArg(v []*string) *InputService6TestShapeInputService6TestCaseOperation1Input { + s.ListArg = v + return s +} + type InputService6TestShapeInputService6TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService7ProtocolTest struct { *client.Client @@ -1055,16 +1107,17 @@ type InputService7ProtocolTest struct { // svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest { c := p.ClientConfig("inputservice7protocoltest", cfgs...) - return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService7ProtocolTest { +func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService7ProtocolTest { svc := &InputService7ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice7protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1116,7 +1169,6 @@ const opInputService7TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService7TestCaseOperation1, @@ -1127,11 +1179,10 @@ func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input input = &InputService7TestShapeInputService7TestCaseOperation1Input{} } + output = &InputService7TestShapeInputService7TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService7TestShapeInputService7TestCaseOperation1Output{} - req.Data = output return } @@ -1157,11 +1208,23 @@ type InputService7TestShapeInputService7TestCaseOperation1Input struct { ScalarArg *string `type:"string"` } +// SetListArg sets the ListArg field's value. +func (s *InputService7TestShapeInputService7TestCaseOperation1Input) SetListArg(v []*string) *InputService7TestShapeInputService7TestCaseOperation1Input { + s.ListArg = v + return s +} + +// SetScalarArg sets the ScalarArg field's value. +func (s *InputService7TestShapeInputService7TestCaseOperation1Input) SetScalarArg(v string) *InputService7TestShapeInputService7TestCaseOperation1Input { + s.ScalarArg = &v + return s +} + type InputService7TestShapeInputService7TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService8ProtocolTest struct { *client.Client @@ -1179,16 +1242,17 @@ type InputService8ProtocolTest struct { // svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest { c := p.ClientConfig("inputservice8protocoltest", cfgs...) - return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService8ProtocolTest { +func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService8ProtocolTest { svc := &InputService8ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice8protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1240,7 +1304,6 @@ const opInputService8TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputService8TestCaseOperation1Input) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService8TestCaseOperation1, @@ -1251,11 +1314,10 @@ func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input input = &InputService8TestShapeInputService8TestCaseOperation1Input{} } + output = &InputService8TestShapeInputService8TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService8TestShapeInputService8TestCaseOperation1Output{} - req.Data = output return } @@ -1279,11 +1341,17 @@ type InputService8TestShapeInputService8TestCaseOperation1Input struct { MapArg map[string]*string `type:"map"` } +// SetMapArg sets the MapArg field's value. +func (s *InputService8TestShapeInputService8TestCaseOperation1Input) SetMapArg(v map[string]*string) *InputService8TestShapeInputService8TestCaseOperation1Input { + s.MapArg = v + return s +} + type InputService8TestShapeInputService8TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService9ProtocolTest struct { *client.Client @@ -1301,16 +1369,17 @@ type InputService9ProtocolTest struct { // svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest { c := p.ClientConfig("inputservice9protocoltest", cfgs...) - return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService9ProtocolTest { +func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService9ProtocolTest { svc := &InputService9ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice9protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1362,7 +1431,6 @@ const opInputService9TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input *InputService9TestShapeInputService9TestCaseOperation1Input) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService9TestCaseOperation1, @@ -1373,11 +1441,10 @@ func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input input = &InputService9TestShapeInputService9TestCaseOperation1Input{} } + output = &InputService9TestShapeInputService9TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService9TestShapeInputService9TestCaseOperation1Output{} - req.Data = output return } @@ -1401,11 +1468,17 @@ type InputService9TestShapeInputService9TestCaseOperation1Input struct { MapArg map[string]*string `locationNameKey:"TheKey" locationNameValue:"TheValue" type:"map"` } +// SetMapArg sets the MapArg field's value. +func (s *InputService9TestShapeInputService9TestCaseOperation1Input) SetMapArg(v map[string]*string) *InputService9TestShapeInputService9TestCaseOperation1Input { + s.MapArg = v + return s +} + type InputService9TestShapeInputService9TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService10ProtocolTest struct { *client.Client @@ -1423,16 +1496,17 @@ type InputService10ProtocolTest struct { // svc := inputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService10ProtocolTest { c := p.ClientConfig("inputservice10protocoltest", cfgs...) - return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService10ProtocolTest { +func newInputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService10ProtocolTest { svc := &InputService10ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice10protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1484,7 +1558,6 @@ const opInputService10TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(input *InputService10TestShapeInputService10TestCaseOperation1Input) (req *request.Request, output *InputService10TestShapeInputService10TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService10TestCaseOperation1, @@ -1495,11 +1568,10 @@ func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(inp input = &InputService10TestShapeInputService10TestCaseOperation1Input{} } + output = &InputService10TestShapeInputService10TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService10TestShapeInputService10TestCaseOperation1Output{} - req.Data = output return } @@ -1524,11 +1596,17 @@ type InputService10TestShapeInputService10TestCaseOperation1Input struct { BlobArg []byte `type:"blob"` } +// SetBlobArg sets the BlobArg field's value. +func (s *InputService10TestShapeInputService10TestCaseOperation1Input) SetBlobArg(v []byte) *InputService10TestShapeInputService10TestCaseOperation1Input { + s.BlobArg = v + return s +} + type InputService10TestShapeInputService10TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService11ProtocolTest struct { *client.Client @@ -1546,16 +1624,17 @@ type InputService11ProtocolTest struct { // svc := inputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService11ProtocolTest { c := p.ClientConfig("inputservice11protocoltest", cfgs...) - return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService11ProtocolTest { +func newInputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService11ProtocolTest { svc := &InputService11ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice11protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1607,7 +1686,6 @@ const opInputService11TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(input *InputService11TestShapeInputService11TestCaseOperation1Input) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService11TestCaseOperation1, @@ -1618,11 +1696,10 @@ func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(inp input = &InputService11TestShapeInputService11TestCaseOperation1Input{} } + output = &InputService11TestShapeInputService11TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService11TestShapeInputService11TestCaseOperation1Output{} - req.Data = output return } @@ -1646,11 +1723,17 @@ type InputService11TestShapeInputService11TestCaseOperation1Input struct { TimeArg *time.Time `type:"timestamp" timestampFormat:"iso8601"` } +// SetTimeArg sets the TimeArg field's value. +func (s *InputService11TestShapeInputService11TestCaseOperation1Input) SetTimeArg(v time.Time) *InputService11TestShapeInputService11TestCaseOperation1Input { + s.TimeArg = &v + return s +} + type InputService11TestShapeInputService11TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService12ProtocolTest struct { *client.Client @@ -1668,16 +1751,17 @@ type InputService12ProtocolTest struct { // svc := inputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService12ProtocolTest { c := p.ClientConfig("inputservice12protocoltest", cfgs...) - return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService12ProtocolTest { +func newInputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService12ProtocolTest { svc := &InputService12ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice12protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1729,7 +1813,6 @@ const opInputService12TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService12TestCaseOperation1, @@ -1740,11 +1823,10 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(inp input = &InputService12TestShapeInputShape{} } + output = &InputService12TestShapeInputService12TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService12TestShapeInputService12TestCaseOperation1Output{} - req.Data = output return } @@ -1787,7 +1869,6 @@ const opInputService12TestCaseOperation2 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService12ProtocolTest) InputService12TestCaseOperation2Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation2Output) { op := &request.Operation{ Name: opInputService12TestCaseOperation2, @@ -1798,11 +1879,10 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation2Request(inp input = &InputService12TestShapeInputShape{} } + output = &InputService12TestShapeInputService12TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService12TestShapeInputService12TestCaseOperation2Output{} - req.Data = output return } @@ -1845,7 +1925,6 @@ const opInputService12TestCaseOperation3 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService12ProtocolTest) InputService12TestCaseOperation3Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation3Output) { op := &request.Operation{ Name: opInputService12TestCaseOperation3, @@ -1856,11 +1935,10 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation3Request(inp input = &InputService12TestShapeInputShape{} } + output = &InputService12TestShapeInputService12TestCaseOperation3Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService12TestShapeInputService12TestCaseOperation3Output{} - req.Data = output return } @@ -1903,7 +1981,6 @@ const opInputService12TestCaseOperation4 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService12ProtocolTest) InputService12TestCaseOperation4Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation4Output) { op := &request.Operation{ Name: opInputService12TestCaseOperation4, @@ -1914,11 +1991,10 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation4Request(inp input = &InputService12TestShapeInputShape{} } + output = &InputService12TestShapeInputService12TestCaseOperation4Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService12TestShapeInputService12TestCaseOperation4Output{} - req.Data = output return } @@ -1961,7 +2037,6 @@ const opInputService12TestCaseOperation5 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService12ProtocolTest) InputService12TestCaseOperation5Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation5Output) { op := &request.Operation{ Name: opInputService12TestCaseOperation5, @@ -1972,11 +2047,10 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation5Request(inp input = &InputService12TestShapeInputShape{} } + output = &InputService12TestShapeInputService12TestCaseOperation5Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService12TestShapeInputService12TestCaseOperation5Output{} - req.Data = output return } @@ -2019,7 +2093,6 @@ const opInputService12TestCaseOperation6 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService12ProtocolTest) InputService12TestCaseOperation6Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation6Output) { op := &request.Operation{ Name: opInputService12TestCaseOperation6, @@ -2030,11 +2103,10 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation6Request(inp input = &InputService12TestShapeInputShape{} } + output = &InputService12TestShapeInputService12TestCaseOperation6Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService12TestShapeInputService12TestCaseOperation6Output{} - req.Data = output return } @@ -2082,6 +2154,12 @@ type InputService12TestShapeInputShape struct { RecursiveStruct *InputService12TestShapeRecursiveStructType `type:"structure"` } +// SetRecursiveStruct sets the RecursiveStruct field's value. +func (s *InputService12TestShapeInputShape) SetRecursiveStruct(v *InputService12TestShapeRecursiveStructType) *InputService12TestShapeInputShape { + s.RecursiveStruct = v + return s +} + type InputService12TestShapeRecursiveStructType struct { _ struct{} `type:"structure"` @@ -2094,7 +2172,31 @@ type InputService12TestShapeRecursiveStructType struct { RecursiveStruct *InputService12TestShapeRecursiveStructType `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// SetNoRecurse sets the NoRecurse field's value. +func (s *InputService12TestShapeRecursiveStructType) SetNoRecurse(v string) *InputService12TestShapeRecursiveStructType { + s.NoRecurse = &v + return s +} + +// SetRecursiveList sets the RecursiveList field's value. +func (s *InputService12TestShapeRecursiveStructType) SetRecursiveList(v []*InputService12TestShapeRecursiveStructType) *InputService12TestShapeRecursiveStructType { + s.RecursiveList = v + return s +} + +// SetRecursiveMap sets the RecursiveMap field's value. +func (s *InputService12TestShapeRecursiveStructType) SetRecursiveMap(v map[string]*InputService12TestShapeRecursiveStructType) *InputService12TestShapeRecursiveStructType { + s.RecursiveMap = v + return s +} + +// SetRecursiveStruct sets the RecursiveStruct field's value. +func (s *InputService12TestShapeRecursiveStructType) SetRecursiveStruct(v *InputService12TestShapeRecursiveStructType) *InputService12TestShapeRecursiveStructType { + s.RecursiveStruct = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService13ProtocolTest struct { *client.Client @@ -2112,16 +2214,17 @@ type InputService13ProtocolTest struct { // svc := inputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService13ProtocolTest { c := p.ClientConfig("inputservice13protocoltest", cfgs...) - return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService13ProtocolTest { +func newInputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService13ProtocolTest { svc := &InputService13ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice13protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -2173,23 +2276,21 @@ const opInputService13TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(input *InputService13TestShapeInputShape) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService13TestCaseOperation1, HTTPMethod: "POST", - HTTPPath: "/path", + HTTPPath: "/", } if input == nil { input = &InputService13TestShapeInputShape{} } + output = &InputService13TestShapeInputService13TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService13TestShapeInputService13TestCaseOperation1Output{} - req.Data = output return } @@ -2232,23 +2333,21 @@ const opInputService13TestCaseOperation2 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService13ProtocolTest) InputService13TestCaseOperation2Request(input *InputService13TestShapeInputShape) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation2Output) { op := &request.Operation{ Name: opInputService13TestCaseOperation2, HTTPMethod: "POST", - HTTPPath: "/path", + HTTPPath: "/", } if input == nil { input = &InputService13TestShapeInputShape{} } + output = &InputService13TestShapeInputService13TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService13TestShapeInputService13TestCaseOperation2Output{} - req.Data = output return } @@ -2280,6 +2379,12 @@ type InputService13TestShapeInputShape struct { Token *string `type:"string" idempotencyToken:"true"` } +// SetToken sets the Token field's value. +func (s *InputService13TestShapeInputShape) SetToken(v string) *InputService13TestShapeInputShape { + s.Token = &v + return s +} + // // Tests begin here // @@ -2878,10 +2983,10 @@ func TestInputService13ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) { // assert body assert.NotNil(t, r.Body) body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Token=abc123`, util.Trim(string(body))) + awstesting.AssertQuery(t, `Action=OperationName&Token=abc123&Version=2014-01-01`, util.Trim(string(body))) // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) + awstesting.AssertURL(t, "https://test/", r.URL.String()) // assert headers @@ -2900,10 +3005,10 @@ func TestInputService13ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) { // assert body assert.NotNil(t, r.Body) body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Token=00000000-0000-4000-8000-000000000000`, util.Trim(string(body))) + awstesting.AssertQuery(t, `Action=OperationName&Token=00000000-0000-4000-8000-000000000000&Version=2014-01-01`, util.Trim(string(body))) // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) + awstesting.AssertURL(t, "https://test/", r.URL.String()) // assert headers diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/queryutil/queryutil.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/query/queryutil/queryutil.go index 60ea0bd1e..524ca952a 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/queryutil/queryutil.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/query/queryutil/queryutil.go @@ -76,6 +76,9 @@ func (q *queryParser) parseStruct(v url.Values, value reflect.Value, prefix stri if field.PkgPath != "" { continue // ignore unexported fields } + if field.Tag.Get("ignore") != "" { + continue + } if protocol.CanSetIdempotencyToken(value.Field(i), field) { token := protocol.GetIdempotencyToken() @@ -120,7 +123,11 @@ func (q *queryParser) parseList(v url.Values, value reflect.Value, prefix string // check for unflattened list member if !q.isEC2 && tag.Get("flattened") == "" { - prefix += ".member" + if listName := tag.Get("locationNameList"); listName == "" { + prefix += ".member" + } else { + prefix += "." + listName + } } for i := 0; i < value.Len(); i++ { diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_test.go index 266a36375..50ec0febf 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_test.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_test.go @@ -43,7 +43,7 @@ func init() { protocol.RandReader = &awstesting.ZeroReader{} } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService1ProtocolTest struct { *client.Client @@ -61,16 +61,17 @@ type OutputService1ProtocolTest struct { // svc := outputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService1ProtocolTest { c := p.ClientConfig("outputservice1protocoltest", cfgs...) - return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService1ProtocolTest { +func newOutputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService1ProtocolTest { svc := &OutputService1ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice1protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -122,7 +123,6 @@ const opOutputService1TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (req *request.Request, output *OutputService1TestShapeOutputService1TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService1TestCaseOperation1, @@ -133,9 +133,8 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(inp input = &OutputService1TestShapeOutputService1TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService1TestShapeOutputService1TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -179,7 +178,61 @@ type OutputService1TestShapeOutputService1TestCaseOperation1Output struct { TrueBool *bool `type:"boolean"` } -//The service client's operations are safe to be used concurrently. +// SetChar sets the Char field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetChar(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Char = &v + return s +} + +// SetDouble sets the Double field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetDouble(v float64) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Double = &v + return s +} + +// SetFalseBool sets the FalseBool field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetFalseBool(v bool) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.FalseBool = &v + return s +} + +// SetFloat sets the Float field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetFloat(v float64) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Float = &v + return s +} + +// SetLong sets the Long field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetLong(v int64) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Long = &v + return s +} + +// SetNum sets the Num field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetNum(v int64) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Num = &v + return s +} + +// SetStr sets the Str field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetStr(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Str = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetTimestamp(v time.Time) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Timestamp = &v + return s +} + +// SetTrueBool sets the TrueBool field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetTrueBool(v bool) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.TrueBool = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService2ProtocolTest struct { *client.Client @@ -197,16 +250,17 @@ type OutputService2ProtocolTest struct { // svc := outputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService2ProtocolTest { c := p.ClientConfig("outputservice2protocoltest", cfgs...) - return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService2ProtocolTest { +func newOutputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService2ProtocolTest { svc := &OutputService2ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice2protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -258,7 +312,6 @@ const opOutputService2TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (req *request.Request, output *OutputService2TestShapeOutputService2TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService2TestCaseOperation1, @@ -269,9 +322,8 @@ func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(inp input = &OutputService2TestShapeOutputService2TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService2TestShapeOutputService2TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -301,7 +353,19 @@ type OutputService2TestShapeOutputService2TestCaseOperation1Output struct { Str *string `type:"string"` } -//The service client's operations are safe to be used concurrently. +// SetNum sets the Num field's value. +func (s *OutputService2TestShapeOutputService2TestCaseOperation1Output) SetNum(v int64) *OutputService2TestShapeOutputService2TestCaseOperation1Output { + s.Num = &v + return s +} + +// SetStr sets the Str field's value. +func (s *OutputService2TestShapeOutputService2TestCaseOperation1Output) SetStr(v string) *OutputService2TestShapeOutputService2TestCaseOperation1Output { + s.Str = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService3ProtocolTest struct { *client.Client @@ -319,16 +383,17 @@ type OutputService3ProtocolTest struct { // svc := outputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService3ProtocolTest { c := p.ClientConfig("outputservice3protocoltest", cfgs...) - return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService3ProtocolTest { +func newOutputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService3ProtocolTest { svc := &OutputService3ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice3protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -380,7 +445,6 @@ const opOutputService3TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (req *request.Request, output *OutputService3TestShapeOutputService3TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService3TestCaseOperation1, @@ -391,9 +455,8 @@ func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(inp input = &OutputService3TestShapeOutputService3TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService3TestShapeOutputService3TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -422,7 +485,13 @@ type OutputService3TestShapeOutputService3TestCaseOperation1Output struct { Blob []byte `type:"blob"` } -//The service client's operations are safe to be used concurrently. +// SetBlob sets the Blob field's value. +func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetBlob(v []byte) *OutputService3TestShapeOutputService3TestCaseOperation1Output { + s.Blob = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService4ProtocolTest struct { *client.Client @@ -440,16 +509,17 @@ type OutputService4ProtocolTest struct { // svc := outputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService4ProtocolTest { c := p.ClientConfig("outputservice4protocoltest", cfgs...) - return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService4ProtocolTest { +func newOutputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService4ProtocolTest { svc := &OutputService4ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice4protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -501,7 +571,6 @@ const opOutputService4TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (req *request.Request, output *OutputService4TestShapeOutputService4TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService4TestCaseOperation1, @@ -512,9 +581,8 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(inp input = &OutputService4TestShapeOutputService4TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService4TestShapeOutputService4TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -542,7 +610,13 @@ type OutputService4TestShapeOutputService4TestCaseOperation1Output struct { ListMember []*string `type:"list"` } -//The service client's operations are safe to be used concurrently. +// SetListMember sets the ListMember field's value. +func (s *OutputService4TestShapeOutputService4TestCaseOperation1Output) SetListMember(v []*string) *OutputService4TestShapeOutputService4TestCaseOperation1Output { + s.ListMember = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService5ProtocolTest struct { *client.Client @@ -560,16 +634,17 @@ type OutputService5ProtocolTest struct { // svc := outputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService5ProtocolTest { c := p.ClientConfig("outputservice5protocoltest", cfgs...) - return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService5ProtocolTest { +func newOutputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService5ProtocolTest { svc := &OutputService5ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice5protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -621,7 +696,6 @@ const opOutputService5TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (req *request.Request, output *OutputService5TestShapeOutputService5TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService5TestCaseOperation1, @@ -632,9 +706,8 @@ func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(inp input = &OutputService5TestShapeOutputService5TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService5TestShapeOutputService5TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -662,7 +735,13 @@ type OutputService5TestShapeOutputService5TestCaseOperation1Output struct { ListMember []*string `locationNameList:"item" type:"list"` } -//The service client's operations are safe to be used concurrently. +// SetListMember sets the ListMember field's value. +func (s *OutputService5TestShapeOutputService5TestCaseOperation1Output) SetListMember(v []*string) *OutputService5TestShapeOutputService5TestCaseOperation1Output { + s.ListMember = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService6ProtocolTest struct { *client.Client @@ -680,16 +759,17 @@ type OutputService6ProtocolTest struct { // svc := outputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService6ProtocolTest { c := p.ClientConfig("outputservice6protocoltest", cfgs...) - return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService6ProtocolTest { +func newOutputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService6ProtocolTest { svc := &OutputService6ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice6protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -741,7 +821,6 @@ const opOutputService6TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (req *request.Request, output *OutputService6TestShapeOutputService6TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService6TestCaseOperation1, @@ -752,9 +831,8 @@ func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(inp input = &OutputService6TestShapeOutputService6TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService6TestShapeOutputService6TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -782,7 +860,13 @@ type OutputService6TestShapeOutputService6TestCaseOperation1Output struct { ListMember []*string `type:"list" flattened:"true"` } -//The service client's operations are safe to be used concurrently. +// SetListMember sets the ListMember field's value. +func (s *OutputService6TestShapeOutputService6TestCaseOperation1Output) SetListMember(v []*string) *OutputService6TestShapeOutputService6TestCaseOperation1Output { + s.ListMember = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService7ProtocolTest struct { *client.Client @@ -800,16 +884,17 @@ type OutputService7ProtocolTest struct { // svc := outputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService7ProtocolTest { c := p.ClientConfig("outputservice7protocoltest", cfgs...) - return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService7ProtocolTest { +func newOutputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService7ProtocolTest { svc := &OutputService7ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice7protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -861,7 +946,6 @@ const opOutputService7TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (req *request.Request, output *OutputService7TestShapeOutputService7TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService7TestCaseOperation1, @@ -872,9 +956,8 @@ func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(inp input = &OutputService7TestShapeOutputService7TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService7TestShapeOutputService7TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -902,7 +985,13 @@ type OutputService7TestShapeOutputService7TestCaseOperation1Output struct { ListMember []*string `type:"list" flattened:"true"` } -//The service client's operations are safe to be used concurrently. +// SetListMember sets the ListMember field's value. +func (s *OutputService7TestShapeOutputService7TestCaseOperation1Output) SetListMember(v []*string) *OutputService7TestShapeOutputService7TestCaseOperation1Output { + s.ListMember = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService8ProtocolTest struct { *client.Client @@ -920,16 +1009,17 @@ type OutputService8ProtocolTest struct { // svc := outputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService8ProtocolTest { c := p.ClientConfig("outputservice8protocoltest", cfgs...) - return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService8ProtocolTest { +func newOutputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService8ProtocolTest { svc := &OutputService8ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice8protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -981,7 +1071,6 @@ const opOutputService8TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (req *request.Request, output *OutputService8TestShapeOutputService8TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService8TestCaseOperation1, @@ -992,9 +1081,8 @@ func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(inp input = &OutputService8TestShapeOutputService8TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService8TestShapeOutputService8TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1022,6 +1110,12 @@ type OutputService8TestShapeOutputService8TestCaseOperation1Output struct { List []*OutputService8TestShapeStructureShape `type:"list"` } +// SetList sets the List field's value. +func (s *OutputService8TestShapeOutputService8TestCaseOperation1Output) SetList(v []*OutputService8TestShapeStructureShape) *OutputService8TestShapeOutputService8TestCaseOperation1Output { + s.List = v + return s +} + type OutputService8TestShapeStructureShape struct { _ struct{} `type:"structure"` @@ -1032,7 +1126,25 @@ type OutputService8TestShapeStructureShape struct { Foo *string `type:"string"` } -//The service client's operations are safe to be used concurrently. +// SetBar sets the Bar field's value. +func (s *OutputService8TestShapeStructureShape) SetBar(v string) *OutputService8TestShapeStructureShape { + s.Bar = &v + return s +} + +// SetBaz sets the Baz field's value. +func (s *OutputService8TestShapeStructureShape) SetBaz(v string) *OutputService8TestShapeStructureShape { + s.Baz = &v + return s +} + +// SetFoo sets the Foo field's value. +func (s *OutputService8TestShapeStructureShape) SetFoo(v string) *OutputService8TestShapeStructureShape { + s.Foo = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService9ProtocolTest struct { *client.Client @@ -1050,16 +1162,17 @@ type OutputService9ProtocolTest struct { // svc := outputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService9ProtocolTest { c := p.ClientConfig("outputservice9protocoltest", cfgs...) - return newOutputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService9ProtocolTest { +func newOutputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService9ProtocolTest { svc := &OutputService9ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice9protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -1111,7 +1224,6 @@ const opOutputService9TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1Request(input *OutputService9TestShapeOutputService9TestCaseOperation1Input) (req *request.Request, output *OutputService9TestShapeOutputService9TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService9TestCaseOperation1, @@ -1122,9 +1234,8 @@ func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1Request(inp input = &OutputService9TestShapeOutputService9TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService9TestShapeOutputService9TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1152,6 +1263,12 @@ type OutputService9TestShapeOutputService9TestCaseOperation1Output struct { List []*OutputService9TestShapeStructureShape `type:"list" flattened:"true"` } +// SetList sets the List field's value. +func (s *OutputService9TestShapeOutputService9TestCaseOperation1Output) SetList(v []*OutputService9TestShapeStructureShape) *OutputService9TestShapeOutputService9TestCaseOperation1Output { + s.List = v + return s +} + type OutputService9TestShapeStructureShape struct { _ struct{} `type:"structure"` @@ -1162,7 +1279,25 @@ type OutputService9TestShapeStructureShape struct { Foo *string `type:"string"` } -//The service client's operations are safe to be used concurrently. +// SetBar sets the Bar field's value. +func (s *OutputService9TestShapeStructureShape) SetBar(v string) *OutputService9TestShapeStructureShape { + s.Bar = &v + return s +} + +// SetBaz sets the Baz field's value. +func (s *OutputService9TestShapeStructureShape) SetBaz(v string) *OutputService9TestShapeStructureShape { + s.Baz = &v + return s +} + +// SetFoo sets the Foo field's value. +func (s *OutputService9TestShapeStructureShape) SetFoo(v string) *OutputService9TestShapeStructureShape { + s.Foo = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService10ProtocolTest struct { *client.Client @@ -1180,16 +1315,17 @@ type OutputService10ProtocolTest struct { // svc := outputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService10ProtocolTest { c := p.ClientConfig("outputservice10protocoltest", cfgs...) - return newOutputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService10ProtocolTest { +func newOutputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService10ProtocolTest { svc := &OutputService10ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice10protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -1241,7 +1377,6 @@ const opOutputService10TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1Request(input *OutputService10TestShapeOutputService10TestCaseOperation1Input) (req *request.Request, output *OutputService10TestShapeOutputService10TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService10TestCaseOperation1, @@ -1252,9 +1387,8 @@ func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1Request(i input = &OutputService10TestShapeOutputService10TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService10TestShapeOutputService10TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1282,7 +1416,13 @@ type OutputService10TestShapeOutputService10TestCaseOperation1Output struct { List []*string `locationNameList:"NamedList" type:"list" flattened:"true"` } -//The service client's operations are safe to be used concurrently. +// SetList sets the List field's value. +func (s *OutputService10TestShapeOutputService10TestCaseOperation1Output) SetList(v []*string) *OutputService10TestShapeOutputService10TestCaseOperation1Output { + s.List = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService11ProtocolTest struct { *client.Client @@ -1300,16 +1440,17 @@ type OutputService11ProtocolTest struct { // svc := outputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService11ProtocolTest { c := p.ClientConfig("outputservice11protocoltest", cfgs...) - return newOutputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService11ProtocolTest { +func newOutputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService11ProtocolTest { svc := &OutputService11ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice11protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -1361,7 +1502,6 @@ const opOutputService11TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1Request(input *OutputService11TestShapeOutputService11TestCaseOperation1Input) (req *request.Request, output *OutputService11TestShapeOutputService11TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService11TestCaseOperation1, @@ -1372,9 +1512,8 @@ func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1Request(i input = &OutputService11TestShapeOutputService11TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService11TestShapeOutputService11TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1402,13 +1541,25 @@ type OutputService11TestShapeOutputService11TestCaseOperation1Output struct { Map map[string]*OutputService11TestShapeStructType `type:"map"` } +// SetMap sets the Map field's value. +func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetMap(v map[string]*OutputService11TestShapeStructType) *OutputService11TestShapeOutputService11TestCaseOperation1Output { + s.Map = v + return s +} + type OutputService11TestShapeStructType struct { _ struct{} `type:"structure"` Foo *string `locationName:"foo" type:"string"` } -//The service client's operations are safe to be used concurrently. +// SetFoo sets the Foo field's value. +func (s *OutputService11TestShapeStructType) SetFoo(v string) *OutputService11TestShapeStructType { + s.Foo = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService12ProtocolTest struct { *client.Client @@ -1426,16 +1577,17 @@ type OutputService12ProtocolTest struct { // svc := outputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService12ProtocolTest { c := p.ClientConfig("outputservice12protocoltest", cfgs...) - return newOutputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService12ProtocolTest { +func newOutputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService12ProtocolTest { svc := &OutputService12ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice12protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -1487,7 +1639,6 @@ const opOutputService12TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1Request(input *OutputService12TestShapeOutputService12TestCaseOperation1Input) (req *request.Request, output *OutputService12TestShapeOutputService12TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService12TestCaseOperation1, @@ -1498,9 +1649,8 @@ func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1Request(i input = &OutputService12TestShapeOutputService12TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService12TestShapeOutputService12TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1528,7 +1678,13 @@ type OutputService12TestShapeOutputService12TestCaseOperation1Output struct { Map map[string]*string `type:"map" flattened:"true"` } -//The service client's operations are safe to be used concurrently. +// SetMap sets the Map field's value. +func (s *OutputService12TestShapeOutputService12TestCaseOperation1Output) SetMap(v map[string]*string) *OutputService12TestShapeOutputService12TestCaseOperation1Output { + s.Map = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService13ProtocolTest struct { *client.Client @@ -1546,16 +1702,17 @@ type OutputService13ProtocolTest struct { // svc := outputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService13ProtocolTest { c := p.ClientConfig("outputservice13protocoltest", cfgs...) - return newOutputService13ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService13ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService13ProtocolTest { +func newOutputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService13ProtocolTest { svc := &OutputService13ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice13protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -1607,7 +1764,6 @@ const opOutputService13TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation1Request(input *OutputService13TestShapeOutputService13TestCaseOperation1Input) (req *request.Request, output *OutputService13TestShapeOutputService13TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService13TestCaseOperation1, @@ -1618,9 +1774,8 @@ func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation1Request(i input = &OutputService13TestShapeOutputService13TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService13TestShapeOutputService13TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1648,7 +1803,13 @@ type OutputService13TestShapeOutputService13TestCaseOperation1Output struct { Map map[string]*string `locationName:"Attribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` } -//The service client's operations are safe to be used concurrently. +// SetMap sets the Map field's value. +func (s *OutputService13TestShapeOutputService13TestCaseOperation1Output) SetMap(v map[string]*string) *OutputService13TestShapeOutputService13TestCaseOperation1Output { + s.Map = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService14ProtocolTest struct { *client.Client @@ -1666,16 +1827,17 @@ type OutputService14ProtocolTest struct { // svc := outputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService14ProtocolTest { c := p.ClientConfig("outputservice14protocoltest", cfgs...) - return newOutputService14ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService14ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService14ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService14ProtocolTest { +func newOutputService14ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService14ProtocolTest { svc := &OutputService14ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice14protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -1727,7 +1889,6 @@ const opOutputService14TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation1Request(input *OutputService14TestShapeOutputService14TestCaseOperation1Input) (req *request.Request, output *OutputService14TestShapeOutputService14TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService14TestCaseOperation1, @@ -1738,9 +1899,8 @@ func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation1Request(i input = &OutputService14TestShapeOutputService14TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService14TestShapeOutputService14TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1768,7 +1928,13 @@ type OutputService14TestShapeOutputService14TestCaseOperation1Output struct { Map map[string]*string `locationNameKey:"foo" locationNameValue:"bar" type:"map" flattened:"true"` } -//The service client's operations are safe to be used concurrently. +// SetMap sets the Map field's value. +func (s *OutputService14TestShapeOutputService14TestCaseOperation1Output) SetMap(v map[string]*string) *OutputService14TestShapeOutputService14TestCaseOperation1Output { + s.Map = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService15ProtocolTest struct { *client.Client @@ -1786,16 +1952,17 @@ type OutputService15ProtocolTest struct { // svc := outputservice15protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService15ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService15ProtocolTest { c := p.ClientConfig("outputservice15protocoltest", cfgs...) - return newOutputService15ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService15ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService15ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService15ProtocolTest { +func newOutputService15ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService15ProtocolTest { svc := &OutputService15ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice15protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -1847,7 +2014,6 @@ const opOutputService15TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService15ProtocolTest) OutputService15TestCaseOperation1Request(input *OutputService15TestShapeOutputService15TestCaseOperation1Input) (req *request.Request, output *OutputService15TestShapeOutputService15TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService15TestCaseOperation1, @@ -1858,9 +2024,8 @@ func (c *OutputService15ProtocolTest) OutputService15TestCaseOperation1Request(i input = &OutputService15TestShapeOutputService15TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService15TestShapeOutputService15TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1888,6 +2053,12 @@ type OutputService15TestShapeOutputService15TestCaseOperation1Output struct { Foo *string `type:"string"` } +// SetFoo sets the Foo field's value. +func (s *OutputService15TestShapeOutputService15TestCaseOperation1Output) SetFoo(v string) *OutputService15TestShapeOutputService15TestCaseOperation1Output { + s.Foo = &v + return s +} + // // Tests begin here // diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/build.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/build.go index 5f412516d..20a41d462 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/build.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/build.go @@ -14,6 +14,7 @@ import ( "strings" "time" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" ) @@ -46,14 +47,29 @@ var BuildHandler = request.NamedHandler{Name: "awssdk.rest.Build", Fn: Build} func Build(r *request.Request) { if r.ParamsFilled() { v := reflect.ValueOf(r.Params).Elem() - buildLocationElements(r, v) + buildLocationElements(r, v, false) buildBody(r, v) } } -func buildLocationElements(r *request.Request, v reflect.Value) { +// BuildAsGET builds the REST component of a service request with the ability to hoist +// data from the body. +func BuildAsGET(r *request.Request) { + if r.ParamsFilled() { + v := reflect.ValueOf(r.Params).Elem() + buildLocationElements(r, v, true) + buildBody(r, v) + } +} + +func buildLocationElements(r *request.Request, v reflect.Value, buildGETQuery bool) { query := r.HTTPRequest.URL.Query() + // Setup the raw path to match the base path pattern. This is needed + // so that when the path is mutated a custom escaped version can be + // stored in RawPath that will be used by the Go client. + r.HTTPRequest.URL.RawPath = r.HTTPRequest.URL.Path + for i := 0; i < v.NumField(); i++ { m := v.Field(i) if n := v.Type().Field(i).Name; n[0:1] == strings.ToLower(n[0:1]) { @@ -72,6 +88,9 @@ func buildLocationElements(r *request.Request, v reflect.Value) { if !m.IsValid() { continue } + if field.Tag.Get("ignore") != "" { + continue + } var err error switch field.Tag.Get("location") { @@ -83,6 +102,10 @@ func buildLocationElements(r *request.Request, v reflect.Value) { err = buildURI(r.HTTPRequest.URL, m, name) case "querystring": err = buildQueryString(query, m, name) + default: + if buildGETQuery { + err = buildQueryString(query, m, name) + } } r.Error = err } @@ -92,7 +115,9 @@ func buildLocationElements(r *request.Request, v reflect.Value) { } r.HTTPRequest.URL.RawQuery = query.Encode() - updatePath(r.HTTPRequest.URL, r.HTTPRequest.URL.Path) + if !aws.BoolValue(r.Config.DisableRestProtocolURICleaning) { + cleanPath(r.HTTPRequest.URL) + } } func buildBody(r *request.Request, v reflect.Value) { @@ -156,10 +181,11 @@ func buildURI(u *url.URL, v reflect.Value, name string) error { return awserr.New("SerializationError", "failed to encode REST request", err) } - uri := u.Path - uri = strings.Replace(uri, "{"+name+"}", EscapePath(value, true), -1) - uri = strings.Replace(uri, "{"+name+"+}", EscapePath(value, false), -1) - u.Path = uri + u.Path = strings.Replace(u.Path, "{"+name+"}", value, -1) + u.Path = strings.Replace(u.Path, "{"+name+"+}", value, -1) + + u.RawPath = strings.Replace(u.RawPath, "{"+name+"}", EscapePath(value, true), -1) + u.RawPath = strings.Replace(u.RawPath, "{"+name+"+}", EscapePath(value, false), -1) return nil } @@ -193,25 +219,17 @@ func buildQueryString(query url.Values, v reflect.Value, name string) error { return nil } -func updatePath(url *url.URL, urlPath string) { - scheme, query := url.Scheme, url.RawQuery +func cleanPath(u *url.URL) { + hasSlash := strings.HasSuffix(u.Path, "/") - hasSlash := strings.HasSuffix(urlPath, "/") + // clean up path, removing duplicate `/` + u.Path = path.Clean(u.Path) + u.RawPath = path.Clean(u.RawPath) - // clean up path - urlPath = path.Clean(urlPath) - if hasSlash && !strings.HasSuffix(urlPath, "/") { - urlPath += "/" + if hasSlash && !strings.HasSuffix(u.Path, "/") { + u.Path += "/" + u.RawPath += "/" } - - // get formatted URL minus scheme so we can build this into Opaque - url.Scheme, url.Path, url.RawQuery = "", "", "" - s := url.String() - url.Scheme = scheme - url.RawQuery = query - - // build opaque URI - url.Opaque = s + urlPath } // EscapePath escapes part of a URL path in Amazon style diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/build_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/build_test.go new file mode 100644 index 000000000..9f18081a9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/build_test.go @@ -0,0 +1,63 @@ +package rest + +import ( + "net/http" + "net/url" + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" +) + +func TestCleanPath(t *testing.T) { + uri := &url.URL{ + Path: "//foo//bar", + Scheme: "https", + Host: "host", + } + cleanPath(uri) + + expected := "https://host/foo/bar" + if a, e := uri.String(), expected; a != e { + t.Errorf("expect %q URI, got %q", e, a) + } +} + +func TestMarshalPath(t *testing.T) { + in := struct { + Bucket *string `location:"uri" locationName:"bucket"` + Key *string `location:"uri" locationName:"key"` + }{ + Bucket: aws.String("mybucket"), + Key: aws.String("my/cool+thing space/object世界"), + } + + expectURL := `/mybucket/my/cool+thing space/object世界` + expectEscapedURL := `/mybucket/my/cool%2Bthing%20space/object%E4%B8%96%E7%95%8C` + + req := &request.Request{ + HTTPRequest: &http.Request{ + URL: &url.URL{Scheme: "https", Host: "exmaple.com", Path: "/{bucket}/{key+}"}, + }, + Params: &in, + } + + Build(req) + + if req.Error != nil { + t.Fatalf("unexpected error, %v", req.Error) + } + + if a, e := req.HTTPRequest.URL.Path, expectURL; a != e { + t.Errorf("expect %q URI, got %q", e, a) + } + + if a, e := req.HTTPRequest.URL.RawPath, expectEscapedURL; a != e { + t.Errorf("expect %q escaped URI, got %q", e, a) + } + + if a, e := req.HTTPRequest.URL.EscapedPath(), expectEscapedURL; a != e { + t.Errorf("expect %q escaped URI, got %q", e, a) + } + +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/unmarshal.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/unmarshal.go index 2cba1d9aa..9c00921c0 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/unmarshal.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/unmarshal.go @@ -1,6 +1,7 @@ package rest import ( + "bytes" "encoding/base64" "fmt" "io" @@ -11,7 +12,6 @@ import ( "strings" "time" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" ) @@ -70,10 +70,16 @@ func unmarshalBody(r *request.Request, v reflect.Value) { } default: switch payload.Type().String() { - case "io.ReadSeeker": - payload.Set(reflect.ValueOf(aws.ReadSeekCloser(r.HTTPResponse.Body))) - case "aws.ReadSeekCloser", "io.ReadCloser": + case "io.ReadCloser": payload.Set(reflect.ValueOf(r.HTTPResponse.Body)) + case "io.ReadSeeker": + b, err := ioutil.ReadAll(r.HTTPResponse.Body) + if err != nil { + r.Error = awserr.New("SerializationError", + "failed to read response body", err) + return + } + payload.Set(reflect.ValueOf(ioutil.NopCloser(bytes.NewReader(b)))) default: io.Copy(ioutil.Discard, r.HTTPResponse.Body) defer r.HTTPResponse.Body.Close() diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/build_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/build_test.go index f6ed92ae2..fa1089882 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/build_test.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/build_test.go @@ -43,7 +43,7 @@ func init() { protocol.RandReader = &awstesting.ZeroReader{} } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService1ProtocolTest struct { *client.Client @@ -61,16 +61,17 @@ type InputService1ProtocolTest struct { // svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest { c := p.ClientConfig("inputservice1protocoltest", cfgs...) - return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService1ProtocolTest { +func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService1ProtocolTest { svc := &InputService1ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice1protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -122,7 +123,6 @@ const opInputService1TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputService1TestCaseOperation1Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService1TestCaseOperation1, @@ -134,11 +134,10 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input input = &InputService1TestShapeInputService1TestCaseOperation1Input{} } + output = &InputService1TestShapeInputService1TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService1TestShapeInputService1TestCaseOperation1Output{} - req.Data = output return } @@ -164,7 +163,7 @@ type InputService1TestShapeInputService1TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService2ProtocolTest struct { *client.Client @@ -182,16 +181,17 @@ type InputService2ProtocolTest struct { // svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest { c := p.ClientConfig("inputservice2protocoltest", cfgs...) - return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService2ProtocolTest { +func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService2ProtocolTest { svc := &InputService2ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice2protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -243,7 +243,6 @@ const opInputService2TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService2TestCaseOperation1, @@ -255,11 +254,10 @@ func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input input = &InputService2TestShapeInputService2TestCaseOperation1Input{} } + output = &InputService2TestShapeInputService2TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService2TestShapeInputService2TestCaseOperation1Output{} - req.Data = output return } @@ -283,11 +281,17 @@ type InputService2TestShapeInputService2TestCaseOperation1Input struct { PipelineId *string `location:"uri" type:"string"` } +// SetPipelineId sets the PipelineId field's value. +func (s *InputService2TestShapeInputService2TestCaseOperation1Input) SetPipelineId(v string) *InputService2TestShapeInputService2TestCaseOperation1Input { + s.PipelineId = &v + return s +} + type InputService2TestShapeInputService2TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService3ProtocolTest struct { *client.Client @@ -305,16 +309,17 @@ type InputService3ProtocolTest struct { // svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest { c := p.ClientConfig("inputservice3protocoltest", cfgs...) - return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService3ProtocolTest { +func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService3ProtocolTest { svc := &InputService3ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice3protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -366,7 +371,6 @@ const opInputService3TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputService3TestCaseOperation1Input) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService3TestCaseOperation1, @@ -378,11 +382,10 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input input = &InputService3TestShapeInputService3TestCaseOperation1Input{} } + output = &InputService3TestShapeInputService3TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService3TestShapeInputService3TestCaseOperation1Output{} - req.Data = output return } @@ -406,11 +409,17 @@ type InputService3TestShapeInputService3TestCaseOperation1Input struct { Foo *string `location:"uri" locationName:"PipelineId" type:"string"` } +// SetFoo sets the Foo field's value. +func (s *InputService3TestShapeInputService3TestCaseOperation1Input) SetFoo(v string) *InputService3TestShapeInputService3TestCaseOperation1Input { + s.Foo = &v + return s +} + type InputService3TestShapeInputService3TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService4ProtocolTest struct { *client.Client @@ -428,16 +437,17 @@ type InputService4ProtocolTest struct { // svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest { c := p.ClientConfig("inputservice4protocoltest", cfgs...) - return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService4ProtocolTest { +func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService4ProtocolTest { svc := &InputService4ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice4protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -489,7 +499,6 @@ const opInputService4TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputService4TestCaseOperation1Input) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService4TestCaseOperation1, @@ -501,11 +510,10 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input input = &InputService4TestShapeInputService4TestCaseOperation1Input{} } + output = &InputService4TestShapeInputService4TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService4TestShapeInputService4TestCaseOperation1Output{} - req.Data = output return } @@ -529,11 +537,17 @@ type InputService4TestShapeInputService4TestCaseOperation1Input struct { Items []*string `location:"querystring" locationName:"item" type:"list"` } +// SetItems sets the Items field's value. +func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetItems(v []*string) *InputService4TestShapeInputService4TestCaseOperation1Input { + s.Items = v + return s +} + type InputService4TestShapeInputService4TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService5ProtocolTest struct { *client.Client @@ -551,16 +565,17 @@ type InputService5ProtocolTest struct { // svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest { c := p.ClientConfig("inputservice5protocoltest", cfgs...) - return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService5ProtocolTest { +func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService5ProtocolTest { svc := &InputService5ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice5protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -612,7 +627,6 @@ const opInputService5TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService5TestCaseOperation1, @@ -624,11 +638,10 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input input = &InputService5TestShapeInputService5TestCaseOperation1Input{} } + output = &InputService5TestShapeInputService5TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService5TestShapeInputService5TestCaseOperation1Output{} - req.Data = output return } @@ -654,11 +667,23 @@ type InputService5TestShapeInputService5TestCaseOperation1Input struct { QueryDoc map[string]*string `location:"querystring" type:"map"` } +// SetPipelineId sets the PipelineId field's value. +func (s *InputService5TestShapeInputService5TestCaseOperation1Input) SetPipelineId(v string) *InputService5TestShapeInputService5TestCaseOperation1Input { + s.PipelineId = &v + return s +} + +// SetQueryDoc sets the QueryDoc field's value. +func (s *InputService5TestShapeInputService5TestCaseOperation1Input) SetQueryDoc(v map[string]*string) *InputService5TestShapeInputService5TestCaseOperation1Input { + s.QueryDoc = v + return s +} + type InputService5TestShapeInputService5TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService6ProtocolTest struct { *client.Client @@ -676,16 +701,17 @@ type InputService6ProtocolTest struct { // svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest { c := p.ClientConfig("inputservice6protocoltest", cfgs...) - return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService6ProtocolTest { +func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService6ProtocolTest { svc := &InputService6ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice6protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -737,7 +763,6 @@ const opInputService6TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService6TestCaseOperation1, @@ -749,11 +774,10 @@ func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input input = &InputService6TestShapeInputService6TestCaseOperation1Input{} } + output = &InputService6TestShapeInputService6TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService6TestShapeInputService6TestCaseOperation1Output{} - req.Data = output return } @@ -779,11 +803,23 @@ type InputService6TestShapeInputService6TestCaseOperation1Input struct { QueryDoc map[string][]*string `location:"querystring" type:"map"` } +// SetPipelineId sets the PipelineId field's value. +func (s *InputService6TestShapeInputService6TestCaseOperation1Input) SetPipelineId(v string) *InputService6TestShapeInputService6TestCaseOperation1Input { + s.PipelineId = &v + return s +} + +// SetQueryDoc sets the QueryDoc field's value. +func (s *InputService6TestShapeInputService6TestCaseOperation1Input) SetQueryDoc(v map[string][]*string) *InputService6TestShapeInputService6TestCaseOperation1Input { + s.QueryDoc = v + return s +} + type InputService6TestShapeInputService6TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService7ProtocolTest struct { *client.Client @@ -801,16 +837,17 @@ type InputService7ProtocolTest struct { // svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest { c := p.ClientConfig("inputservice7protocoltest", cfgs...) - return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService7ProtocolTest { +func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService7ProtocolTest { svc := &InputService7ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice7protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -862,23 +899,21 @@ const opInputService7TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) { +func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputShape) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService7TestCaseOperation1, HTTPMethod: "GET", - HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}", + HTTPPath: "/path", } if input == nil { - input = &InputService7TestShapeInputService7TestCaseOperation1Input{} + input = &InputService7TestShapeInputShape{} } + output = &InputService7TestShapeInputService7TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService7TestShapeInputService7TestCaseOperation1Output{} - req.Data = output return } @@ -890,27 +925,90 @@ func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input // // See the AWS API reference guide for 's // API operation InputService7TestCaseOperation1 for usage and error information. -func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { +func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputShape) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { req, out := c.InputService7TestCaseOperation1Request(input) err := req.Send() return out, err } -type InputService7TestShapeInputService7TestCaseOperation1Input struct { - _ struct{} `type:"structure"` +const opInputService7TestCaseOperation2 = "OperationName" - Ascending *string `location:"querystring" locationName:"Ascending" type:"string"` +// InputService7TestCaseOperation2Request generates a "aws/request.Request" representing the +// client's request for the InputService7TestCaseOperation2 operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See InputService7TestCaseOperation2 for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the InputService7TestCaseOperation2 method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the InputService7TestCaseOperation2Request method. +// req, resp := client.InputService7TestCaseOperation2Request(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *InputService7ProtocolTest) InputService7TestCaseOperation2Request(input *InputService7TestShapeInputShape) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation2Output) { + op := &request.Operation{ + Name: opInputService7TestCaseOperation2, + HTTPMethod: "GET", + HTTPPath: "/path", + } - PageToken *string `location:"querystring" locationName:"PageToken" type:"string"` + if input == nil { + input = &InputService7TestShapeInputShape{} + } - PipelineId *string `location:"uri" locationName:"PipelineId" type:"string"` + output = &InputService7TestShapeInputService7TestCaseOperation2Output{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// InputService7TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService7TestCaseOperation2 for usage and error information. +func (c *InputService7ProtocolTest) InputService7TestCaseOperation2(input *InputService7TestShapeInputShape) (*InputService7TestShapeInputService7TestCaseOperation2Output, error) { + req, out := c.InputService7TestCaseOperation2Request(input) + err := req.Send() + return out, err } type InputService7TestShapeInputService7TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +type InputService7TestShapeInputService7TestCaseOperation2Output struct { + _ struct{} `type:"structure"` +} + +type InputService7TestShapeInputShape struct { + _ struct{} `type:"structure"` + + BoolQuery *bool `location:"querystring" locationName:"bool-query" type:"boolean"` +} + +// SetBoolQuery sets the BoolQuery field's value. +func (s *InputService7TestShapeInputShape) SetBoolQuery(v bool) *InputService7TestShapeInputShape { + s.BoolQuery = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService8ProtocolTest struct { *client.Client @@ -928,16 +1026,17 @@ type InputService8ProtocolTest struct { // svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest { c := p.ClientConfig("inputservice8protocoltest", cfgs...) - return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService8ProtocolTest { +func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService8ProtocolTest { svc := &InputService8ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice8protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -989,11 +1088,10 @@ const opInputService8TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputService8TestCaseOperation1Input) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService8TestCaseOperation1, - HTTPMethod: "POST", + HTTPMethod: "GET", HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}", } @@ -1001,11 +1099,10 @@ func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input input = &InputService8TestShapeInputService8TestCaseOperation1Input{} } + output = &InputService8TestShapeInputService8TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService8TestShapeInputService8TestCaseOperation1Output{} - req.Data = output return } @@ -1028,26 +1125,34 @@ type InputService8TestShapeInputService8TestCaseOperation1Input struct { Ascending *string `location:"querystring" locationName:"Ascending" type:"string"` - Config *InputService8TestShapeStructType `type:"structure"` - PageToken *string `location:"querystring" locationName:"PageToken" type:"string"` PipelineId *string `location:"uri" locationName:"PipelineId" type:"string"` } -type InputService8TestShapeInputService8TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +// SetAscending sets the Ascending field's value. +func (s *InputService8TestShapeInputService8TestCaseOperation1Input) SetAscending(v string) *InputService8TestShapeInputService8TestCaseOperation1Input { + s.Ascending = &v + return s } -type InputService8TestShapeStructType struct { - _ struct{} `type:"structure"` +// SetPageToken sets the PageToken field's value. +func (s *InputService8TestShapeInputService8TestCaseOperation1Input) SetPageToken(v string) *InputService8TestShapeInputService8TestCaseOperation1Input { + s.PageToken = &v + return s +} - A *string `type:"string"` +// SetPipelineId sets the PipelineId field's value. +func (s *InputService8TestShapeInputService8TestCaseOperation1Input) SetPipelineId(v string) *InputService8TestShapeInputService8TestCaseOperation1Input { + s.PipelineId = &v + return s +} - B *string `type:"string"` +type InputService8TestShapeInputService8TestCaseOperation1Output struct { + _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService9ProtocolTest struct { *client.Client @@ -1065,16 +1170,17 @@ type InputService9ProtocolTest struct { // svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest { c := p.ClientConfig("inputservice9protocoltest", cfgs...) - return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService9ProtocolTest { +func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService9ProtocolTest { svc := &InputService9ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice9protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1126,7 +1232,6 @@ const opInputService9TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input *InputService9TestShapeInputService9TestCaseOperation1Input) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService9TestCaseOperation1, @@ -1138,11 +1243,10 @@ func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input input = &InputService9TestShapeInputService9TestCaseOperation1Input{} } + output = &InputService9TestShapeInputService9TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService9TestShapeInputService9TestCaseOperation1Output{} - req.Data = output return } @@ -1165,8 +1269,6 @@ type InputService9TestShapeInputService9TestCaseOperation1Input struct { Ascending *string `location:"querystring" locationName:"Ascending" type:"string"` - Checksum *string `location:"header" locationName:"x-amz-checksum" type:"string"` - Config *InputService9TestShapeStructType `type:"structure"` PageToken *string `location:"querystring" locationName:"PageToken" type:"string"` @@ -1174,6 +1276,30 @@ type InputService9TestShapeInputService9TestCaseOperation1Input struct { PipelineId *string `location:"uri" locationName:"PipelineId" type:"string"` } +// SetAscending sets the Ascending field's value. +func (s *InputService9TestShapeInputService9TestCaseOperation1Input) SetAscending(v string) *InputService9TestShapeInputService9TestCaseOperation1Input { + s.Ascending = &v + return s +} + +// SetConfig sets the Config field's value. +func (s *InputService9TestShapeInputService9TestCaseOperation1Input) SetConfig(v *InputService9TestShapeStructType) *InputService9TestShapeInputService9TestCaseOperation1Input { + s.Config = v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *InputService9TestShapeInputService9TestCaseOperation1Input) SetPageToken(v string) *InputService9TestShapeInputService9TestCaseOperation1Input { + s.PageToken = &v + return s +} + +// SetPipelineId sets the PipelineId field's value. +func (s *InputService9TestShapeInputService9TestCaseOperation1Input) SetPipelineId(v string) *InputService9TestShapeInputService9TestCaseOperation1Input { + s.PipelineId = &v + return s +} + type InputService9TestShapeInputService9TestCaseOperation1Output struct { _ struct{} `type:"structure"` } @@ -1186,7 +1312,19 @@ type InputService9TestShapeStructType struct { B *string `type:"string"` } -//The service client's operations are safe to be used concurrently. +// SetA sets the A field's value. +func (s *InputService9TestShapeStructType) SetA(v string) *InputService9TestShapeStructType { + s.A = &v + return s +} + +// SetB sets the B field's value. +func (s *InputService9TestShapeStructType) SetB(v string) *InputService9TestShapeStructType { + s.B = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService10ProtocolTest struct { *client.Client @@ -1204,16 +1342,17 @@ type InputService10ProtocolTest struct { // svc := inputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService10ProtocolTest { c := p.ClientConfig("inputservice10protocoltest", cfgs...) - return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService10ProtocolTest { +func newInputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService10ProtocolTest { svc := &InputService10ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice10protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1265,23 +1404,21 @@ const opInputService10TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(input *InputService10TestShapeInputService10TestCaseOperation1Input) (req *request.Request, output *InputService10TestShapeInputService10TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService10TestCaseOperation1, HTTPMethod: "POST", - HTTPPath: "/2014-01-01/vaults/{vaultName}/archives", + HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}", } if input == nil { input = &InputService10TestShapeInputService10TestCaseOperation1Input{} } + output = &InputService10TestShapeInputService10TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService10TestShapeInputService10TestCaseOperation1Output{} - req.Data = output return } @@ -1300,34 +1437,74 @@ func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *Inp } type InputService10TestShapeInputService10TestCaseOperation1Input struct { - _ struct{} `type:"structure" payload:"Body"` + _ struct{} `type:"structure"` - Body io.ReadSeeker `locationName:"body" type:"blob"` + Ascending *string `location:"querystring" locationName:"Ascending" type:"string"` - Checksum *string `location:"header" locationName:"x-amz-sha256-tree-hash" type:"string"` + Checksum *string `location:"header" locationName:"x-amz-checksum" type:"string"` - // VaultName is a required field - VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + Config *InputService10TestShapeStructType `type:"structure"` + + PageToken *string `location:"querystring" locationName:"PageToken" type:"string"` + + PipelineId *string `location:"uri" locationName:"PipelineId" type:"string"` } -// Validate inspects the fields of the type to determine if they are valid. -func (s *InputService10TestShapeInputService10TestCaseOperation1Input) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InputService10TestShapeInputService10TestCaseOperation1Input"} - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } +// SetAscending sets the Ascending field's value. +func (s *InputService10TestShapeInputService10TestCaseOperation1Input) SetAscending(v string) *InputService10TestShapeInputService10TestCaseOperation1Input { + s.Ascending = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetChecksum sets the Checksum field's value. +func (s *InputService10TestShapeInputService10TestCaseOperation1Input) SetChecksum(v string) *InputService10TestShapeInputService10TestCaseOperation1Input { + s.Checksum = &v + return s +} + +// SetConfig sets the Config field's value. +func (s *InputService10TestShapeInputService10TestCaseOperation1Input) SetConfig(v *InputService10TestShapeStructType) *InputService10TestShapeInputService10TestCaseOperation1Input { + s.Config = v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *InputService10TestShapeInputService10TestCaseOperation1Input) SetPageToken(v string) *InputService10TestShapeInputService10TestCaseOperation1Input { + s.PageToken = &v + return s +} + +// SetPipelineId sets the PipelineId field's value. +func (s *InputService10TestShapeInputService10TestCaseOperation1Input) SetPipelineId(v string) *InputService10TestShapeInputService10TestCaseOperation1Input { + s.PipelineId = &v + return s } type InputService10TestShapeInputService10TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +type InputService10TestShapeStructType struct { + _ struct{} `type:"structure"` + + A *string `type:"string"` + + B *string `type:"string"` +} + +// SetA sets the A field's value. +func (s *InputService10TestShapeStructType) SetA(v string) *InputService10TestShapeStructType { + s.A = &v + return s +} + +// SetB sets the B field's value. +func (s *InputService10TestShapeStructType) SetB(v string) *InputService10TestShapeStructType { + s.B = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService11ProtocolTest struct { *client.Client @@ -1345,16 +1522,17 @@ type InputService11ProtocolTest struct { // svc := inputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService11ProtocolTest { c := p.ClientConfig("inputservice11protocoltest", cfgs...) - return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService11ProtocolTest { +func newInputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService11ProtocolTest { svc := &InputService11ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice11protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1406,23 +1584,21 @@ const opInputService11TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(input *InputService11TestShapeInputService11TestCaseOperation1Input) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService11TestCaseOperation1, - HTTPMethod: "GET", - HTTPPath: "/2014-01-01/{Foo}", + HTTPMethod: "POST", + HTTPPath: "/2014-01-01/vaults/{vaultName}/archives", } if input == nil { input = &InputService11TestShapeInputService11TestCaseOperation1Input{} } + output = &InputService11TestShapeInputService11TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService11TestShapeInputService11TestCaseOperation1Output{} - req.Data = output return } @@ -1441,20 +1617,21 @@ func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *Inp } type InputService11TestShapeInputService11TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure" payload:"Body"` - // Bar is automatically base64 encoded/decoded by the SDK. - Bar []byte `type:"blob"` + Body io.ReadSeeker `locationName:"body" type:"blob"` - // Foo is a required field - Foo *string `location:"uri" locationName:"Foo" type:"string" required:"true"` + Checksum *string `location:"header" locationName:"x-amz-sha256-tree-hash" type:"string"` + + // VaultName is a required field + VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` } // Validate inspects the fields of the type to determine if they are valid. func (s *InputService11TestShapeInputService11TestCaseOperation1Input) Validate() error { invalidParams := request.ErrInvalidParams{Context: "InputService11TestShapeInputService11TestCaseOperation1Input"} - if s.Foo == nil { - invalidParams.Add(request.NewErrParamRequired("Foo")) + if s.VaultName == nil { + invalidParams.Add(request.NewErrParamRequired("VaultName")) } if invalidParams.Len() > 0 { @@ -1463,11 +1640,29 @@ func (s *InputService11TestShapeInputService11TestCaseOperation1Input) Validate( return nil } +// SetBody sets the Body field's value. +func (s *InputService11TestShapeInputService11TestCaseOperation1Input) SetBody(v io.ReadSeeker) *InputService11TestShapeInputService11TestCaseOperation1Input { + s.Body = v + return s +} + +// SetChecksum sets the Checksum field's value. +func (s *InputService11TestShapeInputService11TestCaseOperation1Input) SetChecksum(v string) *InputService11TestShapeInputService11TestCaseOperation1Input { + s.Checksum = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *InputService11TestShapeInputService11TestCaseOperation1Input) SetVaultName(v string) *InputService11TestShapeInputService11TestCaseOperation1Input { + s.VaultName = &v + return s +} + type InputService11TestShapeInputService11TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService12ProtocolTest struct { *client.Client @@ -1485,16 +1680,17 @@ type InputService12ProtocolTest struct { // svc := inputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService12ProtocolTest { c := p.ClientConfig("inputservice12protocoltest", cfgs...) - return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService12ProtocolTest { +func newInputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService12ProtocolTest { svc := &InputService12ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice12protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1546,23 +1742,21 @@ const opInputService12TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation1Output) { +func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(input *InputService12TestShapeInputService12TestCaseOperation1Input) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService12TestCaseOperation1, HTTPMethod: "POST", - HTTPPath: "/", + HTTPPath: "/2014-01-01/{Foo}", } if input == nil { - input = &InputService12TestShapeInputShape{} + input = &InputService12TestShapeInputService12TestCaseOperation1Input{} } + output = &InputService12TestShapeInputService12TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService12TestShapeInputService12TestCaseOperation1Output{} - req.Data = output return } @@ -1574,86 +1768,52 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(inp // // See the AWS API reference guide for 's // API operation InputService12TestCaseOperation1 for usage and error information. -func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) { +func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputService12TestCaseOperation1Input) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) { req, out := c.InputService12TestCaseOperation1Request(input) err := req.Send() return out, err } -const opInputService12TestCaseOperation2 = "OperationName" +type InputService12TestShapeInputService12TestCaseOperation1Input struct { + _ struct{} `type:"structure"` -// InputService12TestCaseOperation2Request generates a "aws/request.Request" representing the -// client's request for the InputService12TestCaseOperation2 operation. The "output" return -// value can be used to capture response data after the request's "Send" method -// is called. -// -// See InputService12TestCaseOperation2 for usage and error information. -// -// Creating a request object using this method should be used when you want to inject -// custom logic into the request's lifecycle using a custom handler, or if you want to -// access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService12TestCaseOperation2 method directly -// instead. -// -// Note: You must call the "Send" method on the returned request object in order -// to execute the request. -// -// // Example sending a request using the InputService12TestCaseOperation2Request method. -// req, resp := client.InputService12TestCaseOperation2Request(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -func (c *InputService12ProtocolTest) InputService12TestCaseOperation2Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService12TestCaseOperation2, - HTTPMethod: "POST", - HTTPPath: "/", - } + // Bar is automatically base64 encoded/decoded by the SDK. + Bar []byte `type:"blob"` - if input == nil { - input = &InputService12TestShapeInputShape{} + // Foo is a required field + Foo *string `location:"uri" locationName:"Foo" type:"string" required:"true"` +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService12TestShapeInputService12TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService12TestShapeInputService12TestCaseOperation1Input"} + if s.Foo == nil { + invalidParams.Add(request.NewErrParamRequired("Foo")) } - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService12TestShapeInputService12TestCaseOperation2Output{} - req.Data = output - return + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// InputService12TestCaseOperation2 API operation for . -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for 's -// API operation InputService12TestCaseOperation2 for usage and error information. -func (c *InputService12ProtocolTest) InputService12TestCaseOperation2(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation2Output, error) { - req, out := c.InputService12TestCaseOperation2Request(input) - err := req.Send() - return out, err +// SetBar sets the Bar field's value. +func (s *InputService12TestShapeInputService12TestCaseOperation1Input) SetBar(v []byte) *InputService12TestShapeInputService12TestCaseOperation1Input { + s.Bar = v + return s } -type InputService12TestShapeInputService12TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +// SetFoo sets the Foo field's value. +func (s *InputService12TestShapeInputService12TestCaseOperation1Input) SetFoo(v string) *InputService12TestShapeInputService12TestCaseOperation1Input { + s.Foo = &v + return s } -type InputService12TestShapeInputService12TestCaseOperation2Output struct { +type InputService12TestShapeInputService12TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -type InputService12TestShapeInputShape struct { - _ struct{} `type:"structure" payload:"Foo"` - - Foo []byte `locationName:"foo" type:"blob"` -} - -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService13ProtocolTest struct { *client.Client @@ -1671,16 +1831,17 @@ type InputService13ProtocolTest struct { // svc := inputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService13ProtocolTest { c := p.ClientConfig("inputservice13protocoltest", cfgs...) - return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService13ProtocolTest { +func newInputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService13ProtocolTest { svc := &InputService13ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice13protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1732,7 +1893,6 @@ const opInputService13TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(input *InputService13TestShapeInputShape) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService13TestCaseOperation1, @@ -1744,11 +1904,10 @@ func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(inp input = &InputService13TestShapeInputShape{} } + output = &InputService13TestShapeInputService13TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService13TestShapeInputService13TestCaseOperation1Output{} - req.Data = output return } @@ -1791,7 +1950,6 @@ const opInputService13TestCaseOperation2 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService13ProtocolTest) InputService13TestCaseOperation2Request(input *InputService13TestShapeInputShape) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation2Output) { op := &request.Operation{ Name: opInputService13TestCaseOperation2, @@ -1803,11 +1961,10 @@ func (c *InputService13ProtocolTest) InputService13TestCaseOperation2Request(inp input = &InputService13TestShapeInputShape{} } + output = &InputService13TestShapeInputService13TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService13TestShapeInputService13TestCaseOperation2Output{} - req.Data = output return } @@ -1825,12 +1982,6 @@ func (c *InputService13ProtocolTest) InputService13TestCaseOperation2(input *Inp return out, err } -type InputService13TestShapeFooShape struct { - _ struct{} `locationName:"foo" type:"structure"` - - Baz *string `locationName:"baz" type:"string"` -} - type InputService13TestShapeInputService13TestCaseOperation1Output struct { _ struct{} `type:"structure"` } @@ -1842,10 +1993,16 @@ type InputService13TestShapeInputService13TestCaseOperation2Output struct { type InputService13TestShapeInputShape struct { _ struct{} `type:"structure" payload:"Foo"` - Foo *InputService13TestShapeFooShape `locationName:"foo" type:"structure"` + Foo []byte `locationName:"foo" type:"blob"` } -//The service client's operations are safe to be used concurrently. +// SetFoo sets the Foo field's value. +func (s *InputService13TestShapeInputShape) SetFoo(v []byte) *InputService13TestShapeInputShape { + s.Foo = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService14ProtocolTest struct { *client.Client @@ -1863,16 +2020,17 @@ type InputService14ProtocolTest struct { // svc := inputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService14ProtocolTest { c := p.ClientConfig("inputservice14protocoltest", cfgs...) - return newInputService14ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService14ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService14ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService14ProtocolTest { +func newInputService14ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService14ProtocolTest { svc := &InputService14ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice14protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1924,23 +2082,21 @@ const opInputService14TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService14ProtocolTest) InputService14TestCaseOperation1Request(input *InputService14TestShapeInputShape) (req *request.Request, output *InputService14TestShapeInputService14TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService14TestCaseOperation1, HTTPMethod: "POST", - HTTPPath: "/path", + HTTPPath: "/", } if input == nil { input = &InputService14TestShapeInputShape{} } + output = &InputService14TestShapeInputService14TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService14TestShapeInputService14TestCaseOperation1Output{} - req.Data = output return } @@ -1983,23 +2139,21 @@ const opInputService14TestCaseOperation2 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService14ProtocolTest) InputService14TestCaseOperation2Request(input *InputService14TestShapeInputShape) (req *request.Request, output *InputService14TestShapeInputService14TestCaseOperation2Output) { op := &request.Operation{ Name: opInputService14TestCaseOperation2, HTTPMethod: "POST", - HTTPPath: "/path?abc=mno", + HTTPPath: "/", } if input == nil { input = &InputService14TestShapeInputShape{} } + output = &InputService14TestShapeInputService14TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService14TestShapeInputService14TestCaseOperation2Output{} - req.Data = output return } @@ -2017,6 +2171,18 @@ func (c *InputService14ProtocolTest) InputService14TestCaseOperation2(input *Inp return out, err } +type InputService14TestShapeFooShape struct { + _ struct{} `locationName:"foo" type:"structure"` + + Baz *string `locationName:"baz" type:"string"` +} + +// SetBaz sets the Baz field's value. +func (s *InputService14TestShapeFooShape) SetBaz(v string) *InputService14TestShapeFooShape { + s.Baz = &v + return s +} + type InputService14TestShapeInputService14TestCaseOperation1Output struct { _ struct{} `type:"structure"` } @@ -2026,12 +2192,18 @@ type InputService14TestShapeInputService14TestCaseOperation2Output struct { } type InputService14TestShapeInputShape struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure" payload:"Foo"` - Foo *string `location:"querystring" locationName:"param-name" type:"string"` + Foo *InputService14TestShapeFooShape `locationName:"foo" type:"structure"` } -//The service client's operations are safe to be used concurrently. +// SetFoo sets the Foo field's value. +func (s *InputService14TestShapeInputShape) SetFoo(v *InputService14TestShapeFooShape) *InputService14TestShapeInputShape { + s.Foo = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService15ProtocolTest struct { *client.Client @@ -2049,16 +2221,17 @@ type InputService15ProtocolTest struct { // svc := inputservice15protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService15ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService15ProtocolTest { c := p.ClientConfig("inputservice15protocoltest", cfgs...) - return newInputService15ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService15ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService15ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService15ProtocolTest { +func newInputService15ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService15ProtocolTest { svc := &InputService15ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice15protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -2110,7 +2283,6 @@ const opInputService15TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService15ProtocolTest) InputService15TestCaseOperation1Request(input *InputService15TestShapeInputShape) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService15TestCaseOperation1, @@ -2122,11 +2294,10 @@ func (c *InputService15ProtocolTest) InputService15TestCaseOperation1Request(inp input = &InputService15TestShapeInputShape{} } + output = &InputService15TestShapeInputService15TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService15TestShapeInputService15TestCaseOperation1Output{} - req.Data = output return } @@ -2169,23 +2340,21 @@ const opInputService15TestCaseOperation2 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService15ProtocolTest) InputService15TestCaseOperation2Request(input *InputService15TestShapeInputShape) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation2Output) { op := &request.Operation{ Name: opInputService15TestCaseOperation2, HTTPMethod: "POST", - HTTPPath: "/path", + HTTPPath: "/path?abc=mno", } if input == nil { input = &InputService15TestShapeInputShape{} } + output = &InputService15TestShapeInputService15TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService15TestShapeInputService15TestCaseOperation2Output{} - req.Data = output return } @@ -2203,367 +2372,337 @@ func (c *InputService15ProtocolTest) InputService15TestCaseOperation2(input *Inp return out, err } -const opInputService15TestCaseOperation3 = "OperationName" +type InputService15TestShapeInputService15TestCaseOperation1Output struct { + _ struct{} `type:"structure"` +} + +type InputService15TestShapeInputService15TestCaseOperation2Output struct { + _ struct{} `type:"structure"` +} + +type InputService15TestShapeInputShape struct { + _ struct{} `type:"structure"` + + Foo *string `location:"querystring" locationName:"param-name" type:"string"` +} + +// SetFoo sets the Foo field's value. +func (s *InputService15TestShapeInputShape) SetFoo(v string) *InputService15TestShapeInputShape { + s.Foo = &v + return s +} + +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +type InputService16ProtocolTest struct { + *client.Client +} + +// New creates a new instance of the InputService16ProtocolTest client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a InputService16ProtocolTest client from just a session. +// svc := inputservice16protocoltest.New(mySession) +// +// // Create a InputService16ProtocolTest client with additional configuration +// svc := inputservice16protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func NewInputService16ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService16ProtocolTest { + c := p.ClientConfig("inputservice16protocoltest", cfgs...) + return newInputService16ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newInputService16ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService16ProtocolTest { + svc := &InputService16ProtocolTest{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: "inputservice16protocoltest", + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2014-01-01", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + + return svc +} + +// newRequest creates a new request for a InputService16ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService16ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) -// InputService15TestCaseOperation3Request generates a "aws/request.Request" representing the -// client's request for the InputService15TestCaseOperation3 operation. The "output" return + return req +} + +const opInputService16TestCaseOperation1 = "OperationName" + +// InputService16TestCaseOperation1Request generates a "aws/request.Request" representing the +// client's request for the InputService16TestCaseOperation1 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService15TestCaseOperation3 for usage and error information. +// See InputService16TestCaseOperation1 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService15TestCaseOperation3 method directly +// you just want the service response, call the InputService16TestCaseOperation1 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService15TestCaseOperation3Request method. -// req, resp := client.InputService15TestCaseOperation3Request(params) +// // Example sending a request using the InputService16TestCaseOperation1Request method. +// req, resp := client.InputService16TestCaseOperation1Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService15ProtocolTest) InputService15TestCaseOperation3Request(input *InputService15TestShapeInputShape) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation3Output) { +func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(input *InputService16TestShapeInputShape) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation1Output) { op := &request.Operation{ - Name: opInputService15TestCaseOperation3, + Name: opInputService16TestCaseOperation1, HTTPMethod: "POST", HTTPPath: "/path", } if input == nil { - input = &InputService15TestShapeInputShape{} + input = &InputService16TestShapeInputShape{} } + output = &InputService16TestShapeInputService16TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService15TestShapeInputService15TestCaseOperation3Output{} - req.Data = output return } -// InputService15TestCaseOperation3 API operation for . +// InputService16TestCaseOperation1 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService15TestCaseOperation3 for usage and error information. -func (c *InputService15ProtocolTest) InputService15TestCaseOperation3(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation3Output, error) { - req, out := c.InputService15TestCaseOperation3Request(input) +// API operation InputService16TestCaseOperation1 for usage and error information. +func (c *InputService16ProtocolTest) InputService16TestCaseOperation1(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) { + req, out := c.InputService16TestCaseOperation1Request(input) err := req.Send() return out, err } -const opInputService15TestCaseOperation4 = "OperationName" +const opInputService16TestCaseOperation2 = "OperationName" -// InputService15TestCaseOperation4Request generates a "aws/request.Request" representing the -// client's request for the InputService15TestCaseOperation4 operation. The "output" return +// InputService16TestCaseOperation2Request generates a "aws/request.Request" representing the +// client's request for the InputService16TestCaseOperation2 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService15TestCaseOperation4 for usage and error information. +// See InputService16TestCaseOperation2 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService15TestCaseOperation4 method directly +// you just want the service response, call the InputService16TestCaseOperation2 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService15TestCaseOperation4Request method. -// req, resp := client.InputService15TestCaseOperation4Request(params) +// // Example sending a request using the InputService16TestCaseOperation2Request method. +// req, resp := client.InputService16TestCaseOperation2Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService15ProtocolTest) InputService15TestCaseOperation4Request(input *InputService15TestShapeInputShape) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation4Output) { +func (c *InputService16ProtocolTest) InputService16TestCaseOperation2Request(input *InputService16TestShapeInputShape) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation2Output) { op := &request.Operation{ - Name: opInputService15TestCaseOperation4, + Name: opInputService16TestCaseOperation2, HTTPMethod: "POST", HTTPPath: "/path", } if input == nil { - input = &InputService15TestShapeInputShape{} + input = &InputService16TestShapeInputShape{} } + output = &InputService16TestShapeInputService16TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService15TestShapeInputService15TestCaseOperation4Output{} - req.Data = output return } -// InputService15TestCaseOperation4 API operation for . +// InputService16TestCaseOperation2 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService15TestCaseOperation4 for usage and error information. -func (c *InputService15ProtocolTest) InputService15TestCaseOperation4(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation4Output, error) { - req, out := c.InputService15TestCaseOperation4Request(input) +// API operation InputService16TestCaseOperation2 for usage and error information. +func (c *InputService16ProtocolTest) InputService16TestCaseOperation2(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) { + req, out := c.InputService16TestCaseOperation2Request(input) err := req.Send() return out, err } -const opInputService15TestCaseOperation5 = "OperationName" +const opInputService16TestCaseOperation3 = "OperationName" -// InputService15TestCaseOperation5Request generates a "aws/request.Request" representing the -// client's request for the InputService15TestCaseOperation5 operation. The "output" return +// InputService16TestCaseOperation3Request generates a "aws/request.Request" representing the +// client's request for the InputService16TestCaseOperation3 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService15TestCaseOperation5 for usage and error information. +// See InputService16TestCaseOperation3 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService15TestCaseOperation5 method directly +// you just want the service response, call the InputService16TestCaseOperation3 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService15TestCaseOperation5Request method. -// req, resp := client.InputService15TestCaseOperation5Request(params) +// // Example sending a request using the InputService16TestCaseOperation3Request method. +// req, resp := client.InputService16TestCaseOperation3Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService15ProtocolTest) InputService15TestCaseOperation5Request(input *InputService15TestShapeInputShape) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation5Output) { +func (c *InputService16ProtocolTest) InputService16TestCaseOperation3Request(input *InputService16TestShapeInputShape) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation3Output) { op := &request.Operation{ - Name: opInputService15TestCaseOperation5, + Name: opInputService16TestCaseOperation3, HTTPMethod: "POST", HTTPPath: "/path", } if input == nil { - input = &InputService15TestShapeInputShape{} + input = &InputService16TestShapeInputShape{} } + output = &InputService16TestShapeInputService16TestCaseOperation3Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService15TestShapeInputService15TestCaseOperation5Output{} - req.Data = output return } -// InputService15TestCaseOperation5 API operation for . +// InputService16TestCaseOperation3 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService15TestCaseOperation5 for usage and error information. -func (c *InputService15ProtocolTest) InputService15TestCaseOperation5(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation5Output, error) { - req, out := c.InputService15TestCaseOperation5Request(input) +// API operation InputService16TestCaseOperation3 for usage and error information. +func (c *InputService16ProtocolTest) InputService16TestCaseOperation3(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation3Output, error) { + req, out := c.InputService16TestCaseOperation3Request(input) err := req.Send() return out, err } -const opInputService15TestCaseOperation6 = "OperationName" +const opInputService16TestCaseOperation4 = "OperationName" -// InputService15TestCaseOperation6Request generates a "aws/request.Request" representing the -// client's request for the InputService15TestCaseOperation6 operation. The "output" return +// InputService16TestCaseOperation4Request generates a "aws/request.Request" representing the +// client's request for the InputService16TestCaseOperation4 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService15TestCaseOperation6 for usage and error information. +// See InputService16TestCaseOperation4 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService15TestCaseOperation6 method directly +// you just want the service response, call the InputService16TestCaseOperation4 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService15TestCaseOperation6Request method. -// req, resp := client.InputService15TestCaseOperation6Request(params) +// // Example sending a request using the InputService16TestCaseOperation4Request method. +// req, resp := client.InputService16TestCaseOperation4Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService15ProtocolTest) InputService15TestCaseOperation6Request(input *InputService15TestShapeInputShape) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation6Output) { +func (c *InputService16ProtocolTest) InputService16TestCaseOperation4Request(input *InputService16TestShapeInputShape) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation4Output) { op := &request.Operation{ - Name: opInputService15TestCaseOperation6, + Name: opInputService16TestCaseOperation4, HTTPMethod: "POST", HTTPPath: "/path", } if input == nil { - input = &InputService15TestShapeInputShape{} + input = &InputService16TestShapeInputShape{} } + output = &InputService16TestShapeInputService16TestCaseOperation4Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService15TestShapeInputService15TestCaseOperation6Output{} - req.Data = output return } -// InputService15TestCaseOperation6 API operation for . +// InputService16TestCaseOperation4 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService15TestCaseOperation6 for usage and error information. -func (c *InputService15ProtocolTest) InputService15TestCaseOperation6(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation6Output, error) { - req, out := c.InputService15TestCaseOperation6Request(input) +// API operation InputService16TestCaseOperation4 for usage and error information. +func (c *InputService16ProtocolTest) InputService16TestCaseOperation4(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation4Output, error) { + req, out := c.InputService16TestCaseOperation4Request(input) err := req.Send() return out, err } -type InputService15TestShapeInputService15TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} +const opInputService16TestCaseOperation5 = "OperationName" -type InputService15TestShapeInputService15TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService15TestShapeInputService15TestCaseOperation3Output struct { - _ struct{} `type:"structure"` -} - -type InputService15TestShapeInputService15TestCaseOperation4Output struct { - _ struct{} `type:"structure"` -} - -type InputService15TestShapeInputService15TestCaseOperation5Output struct { - _ struct{} `type:"structure"` -} - -type InputService15TestShapeInputService15TestCaseOperation6Output struct { - _ struct{} `type:"structure"` -} - -type InputService15TestShapeInputShape struct { - _ struct{} `type:"structure"` - - RecursiveStruct *InputService15TestShapeRecursiveStructType `type:"structure"` -} - -type InputService15TestShapeRecursiveStructType struct { - _ struct{} `type:"structure"` - - NoRecurse *string `type:"string"` - - RecursiveList []*InputService15TestShapeRecursiveStructType `type:"list"` - - RecursiveMap map[string]*InputService15TestShapeRecursiveStructType `type:"map"` - - RecursiveStruct *InputService15TestShapeRecursiveStructType `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService16ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService16ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService16ProtocolTest client from just a session. -// svc := inputservice16protocoltest.New(mySession) -// -// // Create a InputService16ProtocolTest client with additional configuration -// svc := inputservice16protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService16ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService16ProtocolTest { - c := p.ClientConfig("inputservice16protocoltest", cfgs...) - return newInputService16ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService16ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService16ProtocolTest { - svc := &InputService16ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice16protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService16ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService16ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService16TestCaseOperation1 = "OperationName" - -// InputService16TestCaseOperation1Request generates a "aws/request.Request" representing the -// client's request for the InputService16TestCaseOperation1 operation. The "output" return +// InputService16TestCaseOperation5Request generates a "aws/request.Request" representing the +// client's request for the InputService16TestCaseOperation5 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService16TestCaseOperation1 for usage and error information. +// See InputService16TestCaseOperation5 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService16TestCaseOperation1 method directly +// you just want the service response, call the InputService16TestCaseOperation5 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService16TestCaseOperation1Request method. -// req, resp := client.InputService16TestCaseOperation1Request(params) +// // Example sending a request using the InputService16TestCaseOperation5Request method. +// req, resp := client.InputService16TestCaseOperation5Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(input *InputService16TestShapeInputShape) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation1Output) { +func (c *InputService16ProtocolTest) InputService16TestCaseOperation5Request(input *InputService16TestShapeInputShape) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation5Output) { op := &request.Operation{ - Name: opInputService16TestCaseOperation1, + Name: opInputService16TestCaseOperation5, HTTPMethod: "POST", HTTPPath: "/path", } @@ -2572,57 +2711,55 @@ func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(inp input = &InputService16TestShapeInputShape{} } + output = &InputService16TestShapeInputService16TestCaseOperation5Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService16TestShapeInputService16TestCaseOperation1Output{} - req.Data = output return } -// InputService16TestCaseOperation1 API operation for . +// InputService16TestCaseOperation5 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService16TestCaseOperation1 for usage and error information. -func (c *InputService16ProtocolTest) InputService16TestCaseOperation1(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) { - req, out := c.InputService16TestCaseOperation1Request(input) +// API operation InputService16TestCaseOperation5 for usage and error information. +func (c *InputService16ProtocolTest) InputService16TestCaseOperation5(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation5Output, error) { + req, out := c.InputService16TestCaseOperation5Request(input) err := req.Send() return out, err } -const opInputService16TestCaseOperation2 = "OperationName" +const opInputService16TestCaseOperation6 = "OperationName" -// InputService16TestCaseOperation2Request generates a "aws/request.Request" representing the -// client's request for the InputService16TestCaseOperation2 operation. The "output" return +// InputService16TestCaseOperation6Request generates a "aws/request.Request" representing the +// client's request for the InputService16TestCaseOperation6 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService16TestCaseOperation2 for usage and error information. +// See InputService16TestCaseOperation6 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService16TestCaseOperation2 method directly +// you just want the service response, call the InputService16TestCaseOperation6 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService16TestCaseOperation2Request method. -// req, resp := client.InputService16TestCaseOperation2Request(params) +// // Example sending a request using the InputService16TestCaseOperation6Request method. +// req, resp := client.InputService16TestCaseOperation6Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService16ProtocolTest) InputService16TestCaseOperation2Request(input *InputService16TestShapeInputShape) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation2Output) { +func (c *InputService16ProtocolTest) InputService16TestCaseOperation6Request(input *InputService16TestShapeInputShape) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation6Output) { op := &request.Operation{ - Name: opInputService16TestCaseOperation2, + Name: opInputService16TestCaseOperation6, HTTPMethod: "POST", HTTPPath: "/path", } @@ -2631,24 +2768,23 @@ func (c *InputService16ProtocolTest) InputService16TestCaseOperation2Request(inp input = &InputService16TestShapeInputShape{} } + output = &InputService16TestShapeInputService16TestCaseOperation6Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService16TestShapeInputService16TestCaseOperation2Output{} - req.Data = output return } -// InputService16TestCaseOperation2 API operation for . +// InputService16TestCaseOperation6 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService16TestCaseOperation2 for usage and error information. -func (c *InputService16ProtocolTest) InputService16TestCaseOperation2(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) { - req, out := c.InputService16TestCaseOperation2Request(input) +// API operation InputService16TestCaseOperation6 for usage and error information. +func (c *InputService16ProtocolTest) InputService16TestCaseOperation6(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation6Output, error) { + req, out := c.InputService16TestCaseOperation6Request(input) err := req.Send() return out, err } @@ -2661,15 +2797,71 @@ type InputService16TestShapeInputService16TestCaseOperation2Output struct { _ struct{} `type:"structure"` } +type InputService16TestShapeInputService16TestCaseOperation3Output struct { + _ struct{} `type:"structure"` +} + +type InputService16TestShapeInputService16TestCaseOperation4Output struct { + _ struct{} `type:"structure"` +} + +type InputService16TestShapeInputService16TestCaseOperation5Output struct { + _ struct{} `type:"structure"` +} + +type InputService16TestShapeInputService16TestCaseOperation6Output struct { + _ struct{} `type:"structure"` +} + type InputService16TestShapeInputShape struct { _ struct{} `type:"structure"` - TimeArg *time.Time `type:"timestamp" timestampFormat:"unix"` + RecursiveStruct *InputService16TestShapeRecursiveStructType `type:"structure"` +} - TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp" timestampFormat:"rfc822"` +// SetRecursiveStruct sets the RecursiveStruct field's value. +func (s *InputService16TestShapeInputShape) SetRecursiveStruct(v *InputService16TestShapeRecursiveStructType) *InputService16TestShapeInputShape { + s.RecursiveStruct = v + return s } -//The service client's operations are safe to be used concurrently. +type InputService16TestShapeRecursiveStructType struct { + _ struct{} `type:"structure"` + + NoRecurse *string `type:"string"` + + RecursiveList []*InputService16TestShapeRecursiveStructType `type:"list"` + + RecursiveMap map[string]*InputService16TestShapeRecursiveStructType `type:"map"` + + RecursiveStruct *InputService16TestShapeRecursiveStructType `type:"structure"` +} + +// SetNoRecurse sets the NoRecurse field's value. +func (s *InputService16TestShapeRecursiveStructType) SetNoRecurse(v string) *InputService16TestShapeRecursiveStructType { + s.NoRecurse = &v + return s +} + +// SetRecursiveList sets the RecursiveList field's value. +func (s *InputService16TestShapeRecursiveStructType) SetRecursiveList(v []*InputService16TestShapeRecursiveStructType) *InputService16TestShapeRecursiveStructType { + s.RecursiveList = v + return s +} + +// SetRecursiveMap sets the RecursiveMap field's value. +func (s *InputService16TestShapeRecursiveStructType) SetRecursiveMap(v map[string]*InputService16TestShapeRecursiveStructType) *InputService16TestShapeRecursiveStructType { + s.RecursiveMap = v + return s +} + +// SetRecursiveStruct sets the RecursiveStruct field's value. +func (s *InputService16TestShapeRecursiveStructType) SetRecursiveStruct(v *InputService16TestShapeRecursiveStructType) *InputService16TestShapeRecursiveStructType { + s.RecursiveStruct = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService17ProtocolTest struct { *client.Client @@ -2687,16 +2879,17 @@ type InputService17ProtocolTest struct { // svc := inputservice17protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService17ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService17ProtocolTest { c := p.ClientConfig("inputservice17protocoltest", cfgs...) - return newInputService17ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService17ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService17ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService17ProtocolTest { +func newInputService17ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService17ProtocolTest { svc := &InputService17ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice17protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -2748,8 +2941,7 @@ const opInputService17TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService17ProtocolTest) InputService17TestCaseOperation1Request(input *InputService17TestShapeInputService17TestCaseOperation1Input) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation1Output) { +func (c *InputService17ProtocolTest) InputService17TestCaseOperation1Request(input *InputService17TestShapeInputShape) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService17TestCaseOperation1, HTTPMethod: "POST", @@ -2757,14 +2949,13 @@ func (c *InputService17ProtocolTest) InputService17TestCaseOperation1Request(inp } if input == nil { - input = &InputService17TestShapeInputService17TestCaseOperation1Input{} + input = &InputService17TestShapeInputShape{} } + output = &InputService17TestShapeInputService17TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService17TestShapeInputService17TestCaseOperation1Output{} - req.Data = output return } @@ -2776,23 +2967,98 @@ func (c *InputService17ProtocolTest) InputService17TestCaseOperation1Request(inp // // See the AWS API reference guide for 's // API operation InputService17TestCaseOperation1 for usage and error information. -func (c *InputService17ProtocolTest) InputService17TestCaseOperation1(input *InputService17TestShapeInputService17TestCaseOperation1Input) (*InputService17TestShapeInputService17TestCaseOperation1Output, error) { +func (c *InputService17ProtocolTest) InputService17TestCaseOperation1(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation1Output, error) { req, out := c.InputService17TestCaseOperation1Request(input) err := req.Send() return out, err } -type InputService17TestShapeInputService17TestCaseOperation1Input struct { - _ struct{} `type:"structure"` +const opInputService17TestCaseOperation2 = "OperationName" + +// InputService17TestCaseOperation2Request generates a "aws/request.Request" representing the +// client's request for the InputService17TestCaseOperation2 operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See InputService17TestCaseOperation2 for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the InputService17TestCaseOperation2 method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the InputService17TestCaseOperation2Request method. +// req, resp := client.InputService17TestCaseOperation2Request(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *InputService17ProtocolTest) InputService17TestCaseOperation2Request(input *InputService17TestShapeInputShape) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation2Output) { + op := &request.Operation{ + Name: opInputService17TestCaseOperation2, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService17TestShapeInputShape{} + } + + output = &InputService17TestShapeInputService17TestCaseOperation2Output{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// InputService17TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService17TestCaseOperation2 for usage and error information. +func (c *InputService17ProtocolTest) InputService17TestCaseOperation2(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation2Output, error) { + req, out := c.InputService17TestCaseOperation2Request(input) + err := req.Send() + return out, err +} + +type InputService17TestShapeInputService17TestCaseOperation1Output struct { + _ struct{} `type:"structure"` +} + +type InputService17TestShapeInputService17TestCaseOperation2Output struct { + _ struct{} `type:"structure"` +} + +type InputService17TestShapeInputShape struct { + _ struct{} `type:"structure"` + + TimeArg *time.Time `type:"timestamp" timestampFormat:"unix"` + + TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp" timestampFormat:"rfc822"` +} - TimeArg *time.Time `locationName:"timestamp_location" type:"timestamp" timestampFormat:"unix"` +// SetTimeArg sets the TimeArg field's value. +func (s *InputService17TestShapeInputShape) SetTimeArg(v time.Time) *InputService17TestShapeInputShape { + s.TimeArg = &v + return s } -type InputService17TestShapeInputService17TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +// SetTimeArgInHeader sets the TimeArgInHeader field's value. +func (s *InputService17TestShapeInputShape) SetTimeArgInHeader(v time.Time) *InputService17TestShapeInputShape { + s.TimeArgInHeader = &v + return s } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService18ProtocolTest struct { *client.Client @@ -2810,16 +3076,17 @@ type InputService18ProtocolTest struct { // svc := inputservice18protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService18ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService18ProtocolTest { c := p.ClientConfig("inputservice18protocoltest", cfgs...) - return newInputService18ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService18ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService18ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService18ProtocolTest { +func newInputService18ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService18ProtocolTest { svc := &InputService18ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice18protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -2871,23 +3138,21 @@ const opInputService18TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService18ProtocolTest) InputService18TestCaseOperation1Request(input *InputService18TestShapeInputService18TestCaseOperation1Input) (req *request.Request, output *InputService18TestShapeInputService18TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService18TestCaseOperation1, HTTPMethod: "POST", - HTTPPath: "/", + HTTPPath: "/path", } if input == nil { input = &InputService18TestShapeInputService18TestCaseOperation1Input{} } + output = &InputService18TestShapeInputService18TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService18TestShapeInputService18TestCaseOperation1Output{} - req.Data = output return } @@ -2906,16 +3171,22 @@ func (c *InputService18ProtocolTest) InputService18TestCaseOperation1(input *Inp } type InputService18TestShapeInputService18TestCaseOperation1Input struct { - _ struct{} `type:"structure" payload:"Foo"` + _ struct{} `type:"structure"` - Foo *string `locationName:"foo" type:"string"` + TimeArg *time.Time `locationName:"timestamp_location" type:"timestamp" timestampFormat:"unix"` +} + +// SetTimeArg sets the TimeArg field's value. +func (s *InputService18TestShapeInputService18TestCaseOperation1Input) SetTimeArg(v time.Time) *InputService18TestShapeInputService18TestCaseOperation1Input { + s.TimeArg = &v + return s } type InputService18TestShapeInputService18TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService19ProtocolTest struct { *client.Client @@ -2933,16 +3204,17 @@ type InputService19ProtocolTest struct { // svc := inputservice19protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService19ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService19ProtocolTest { c := p.ClientConfig("inputservice19protocoltest", cfgs...) - return newInputService19ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService19ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService19ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService19ProtocolTest { +func newInputService19ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService19ProtocolTest { svc := &InputService19ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice19protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -2994,23 +3266,21 @@ const opInputService19TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService19ProtocolTest) InputService19TestCaseOperation1Request(input *InputService19TestShapeInputShape) (req *request.Request, output *InputService19TestShapeInputService19TestCaseOperation1Output) { +func (c *InputService19ProtocolTest) InputService19TestCaseOperation1Request(input *InputService19TestShapeInputService19TestCaseOperation1Input) (req *request.Request, output *InputService19TestShapeInputService19TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService19TestCaseOperation1, HTTPMethod: "POST", - HTTPPath: "/path", + HTTPPath: "/", } if input == nil { - input = &InputService19TestShapeInputShape{} + input = &InputService19TestShapeInputService19TestCaseOperation1Input{} } + output = &InputService19TestShapeInputService19TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService19TestShapeInputService19TestCaseOperation1Output{} - req.Data = output return } @@ -3022,85 +3292,217 @@ func (c *InputService19ProtocolTest) InputService19TestCaseOperation1Request(inp // // See the AWS API reference guide for 's // API operation InputService19TestCaseOperation1 for usage and error information. -func (c *InputService19ProtocolTest) InputService19TestCaseOperation1(input *InputService19TestShapeInputShape) (*InputService19TestShapeInputService19TestCaseOperation1Output, error) { +func (c *InputService19ProtocolTest) InputService19TestCaseOperation1(input *InputService19TestShapeInputService19TestCaseOperation1Input) (*InputService19TestShapeInputService19TestCaseOperation1Output, error) { req, out := c.InputService19TestCaseOperation1Request(input) err := req.Send() return out, err } -const opInputService19TestCaseOperation2 = "OperationName" +type InputService19TestShapeInputService19TestCaseOperation1Input struct { + _ struct{} `type:"structure" payload:"Foo"` + + Foo *string `locationName:"foo" type:"string"` +} + +// SetFoo sets the Foo field's value. +func (s *InputService19TestShapeInputService19TestCaseOperation1Input) SetFoo(v string) *InputService19TestShapeInputService19TestCaseOperation1Input { + s.Foo = &v + return s +} + +type InputService19TestShapeInputService19TestCaseOperation1Output struct { + _ struct{} `type:"structure"` +} + +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +type InputService20ProtocolTest struct { + *client.Client +} + +// New creates a new instance of the InputService20ProtocolTest client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a InputService20ProtocolTest client from just a session. +// svc := inputservice20protocoltest.New(mySession) +// +// // Create a InputService20ProtocolTest client with additional configuration +// svc := inputservice20protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func NewInputService20ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService20ProtocolTest { + c := p.ClientConfig("inputservice20protocoltest", cfgs...) + return newInputService20ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newInputService20ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService20ProtocolTest { + svc := &InputService20ProtocolTest{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: "inputservice20protocoltest", + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2014-01-01", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + + return svc +} + +// newRequest creates a new request for a InputService20ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService20ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService20TestCaseOperation1 = "OperationName" -// InputService19TestCaseOperation2Request generates a "aws/request.Request" representing the -// client's request for the InputService19TestCaseOperation2 operation. The "output" return +// InputService20TestCaseOperation1Request generates a "aws/request.Request" representing the +// client's request for the InputService20TestCaseOperation1 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService19TestCaseOperation2 for usage and error information. +// See InputService20TestCaseOperation1 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService19TestCaseOperation2 method directly +// you just want the service response, call the InputService20TestCaseOperation1 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService19TestCaseOperation2Request method. -// req, resp := client.InputService19TestCaseOperation2Request(params) +// // Example sending a request using the InputService20TestCaseOperation1Request method. +// req, resp := client.InputService20TestCaseOperation1Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } +func (c *InputService20ProtocolTest) InputService20TestCaseOperation1Request(input *InputService20TestShapeInputShape) (req *request.Request, output *InputService20TestShapeInputService20TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService20TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService20TestShapeInputShape{} + } + + output = &InputService20TestShapeInputService20TestCaseOperation1Output{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// InputService20TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService20TestCaseOperation1 for usage and error information. +func (c *InputService20ProtocolTest) InputService20TestCaseOperation1(input *InputService20TestShapeInputShape) (*InputService20TestShapeInputService20TestCaseOperation1Output, error) { + req, out := c.InputService20TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +const opInputService20TestCaseOperation2 = "OperationName" + +// InputService20TestCaseOperation2Request generates a "aws/request.Request" representing the +// client's request for the InputService20TestCaseOperation2 operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See InputService20TestCaseOperation2 for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the InputService20TestCaseOperation2 method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the InputService20TestCaseOperation2Request method. +// req, resp := client.InputService20TestCaseOperation2Request(params) // -func (c *InputService19ProtocolTest) InputService19TestCaseOperation2Request(input *InputService19TestShapeInputShape) (req *request.Request, output *InputService19TestShapeInputService19TestCaseOperation2Output) { +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *InputService20ProtocolTest) InputService20TestCaseOperation2Request(input *InputService20TestShapeInputShape) (req *request.Request, output *InputService20TestShapeInputService20TestCaseOperation2Output) { op := &request.Operation{ - Name: opInputService19TestCaseOperation2, + Name: opInputService20TestCaseOperation2, HTTPMethod: "POST", HTTPPath: "/path", } if input == nil { - input = &InputService19TestShapeInputShape{} + input = &InputService20TestShapeInputShape{} } + output = &InputService20TestShapeInputService20TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService19TestShapeInputService19TestCaseOperation2Output{} - req.Data = output return } -// InputService19TestCaseOperation2 API operation for . +// InputService20TestCaseOperation2 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService19TestCaseOperation2 for usage and error information. -func (c *InputService19ProtocolTest) InputService19TestCaseOperation2(input *InputService19TestShapeInputShape) (*InputService19TestShapeInputService19TestCaseOperation2Output, error) { - req, out := c.InputService19TestCaseOperation2Request(input) +// API operation InputService20TestCaseOperation2 for usage and error information. +func (c *InputService20ProtocolTest) InputService20TestCaseOperation2(input *InputService20TestShapeInputShape) (*InputService20TestShapeInputService20TestCaseOperation2Output, error) { + req, out := c.InputService20TestCaseOperation2Request(input) err := req.Send() return out, err } -type InputService19TestShapeInputService19TestCaseOperation1Output struct { +type InputService20TestShapeInputService20TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -type InputService19TestShapeInputService19TestCaseOperation2Output struct { +type InputService20TestShapeInputService20TestCaseOperation2Output struct { _ struct{} `type:"structure"` } -type InputService19TestShapeInputShape struct { +type InputService20TestShapeInputShape struct { _ struct{} `type:"structure"` Token *string `type:"string" idempotencyToken:"true"` } +// SetToken sets the Token field's value. +func (s *InputService20TestShapeInputShape) SetToken(v string) *InputService20TestShapeInputShape { + s.Token = &v + return s +} + // // Tests begin here // @@ -3233,14 +3635,52 @@ func TestInputService6ProtocolTestStringToStringListMapsInQuerystringCase1(t *te } -func TestInputService7ProtocolTestURIParameterAndQuerystringParamsCase1(t *testing.T) { +func TestInputService7ProtocolTestBooleanInQuerystringCase1(t *testing.T) { + svc := NewInputService7ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService7TestShapeInputShape{ + BoolQuery: aws.Bool(true), + } + req, _ := svc.InputService7TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert URL + awstesting.AssertURL(t, "https://test/path?bool-query=true", r.URL.String()) + + // assert headers + +} + +func TestInputService7ProtocolTestBooleanInQuerystringCase2(t *testing.T) { svc := NewInputService7ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService7TestShapeInputService7TestCaseOperation1Input{ + input := &InputService7TestShapeInputShape{ + BoolQuery: aws.Bool(false), + } + req, _ := svc.InputService7TestCaseOperation2Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert URL + awstesting.AssertURL(t, "https://test/path?bool-query=false", r.URL.String()) + + // assert headers + +} + +func TestInputService8ProtocolTestURIParameterAndQuerystringParamsCase1(t *testing.T) { + svc := NewInputService8ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService8TestShapeInputService8TestCaseOperation1Input{ Ascending: aws.String("true"), PageToken: aws.String("bar"), PipelineId: aws.String("foo"), } - req, _ := svc.InputService7TestCaseOperation1Request(input) + req, _ := svc.InputService8TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -3254,18 +3694,18 @@ func TestInputService7ProtocolTestURIParameterAndQuerystringParamsCase1(t *testi } -func TestInputService8ProtocolTestURIParameterQuerystringParamsAndJSONBodyCase1(t *testing.T) { - svc := NewInputService8ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService8TestShapeInputService8TestCaseOperation1Input{ +func TestInputService9ProtocolTestURIParameterQuerystringParamsAndJSONBodyCase1(t *testing.T) { + svc := NewInputService9ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService9TestShapeInputService9TestCaseOperation1Input{ Ascending: aws.String("true"), - Config: &InputService8TestShapeStructType{ + Config: &InputService9TestShapeStructType{ A: aws.String("one"), B: aws.String("two"), }, PageToken: aws.String("bar"), PipelineId: aws.String("foo"), } - req, _ := svc.InputService8TestCaseOperation1Request(input) + req, _ := svc.InputService9TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -3284,19 +3724,19 @@ func TestInputService8ProtocolTestURIParameterQuerystringParamsAndJSONBodyCase1( } -func TestInputService9ProtocolTestURIParameterQuerystringParamsHeadersAndJSONBodyCase1(t *testing.T) { - svc := NewInputService9ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService9TestShapeInputService9TestCaseOperation1Input{ +func TestInputService10ProtocolTestURIParameterQuerystringParamsHeadersAndJSONBodyCase1(t *testing.T) { + svc := NewInputService10ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService10TestShapeInputService10TestCaseOperation1Input{ Ascending: aws.String("true"), Checksum: aws.String("12345"), - Config: &InputService9TestShapeStructType{ + Config: &InputService10TestShapeStructType{ A: aws.String("one"), B: aws.String("two"), }, PageToken: aws.String("bar"), PipelineId: aws.String("foo"), } - req, _ := svc.InputService9TestCaseOperation1Request(input) + req, _ := svc.InputService10TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -3316,14 +3756,14 @@ func TestInputService9ProtocolTestURIParameterQuerystringParamsHeadersAndJSONBod } -func TestInputService10ProtocolTestStreamingPayloadCase1(t *testing.T) { - svc := NewInputService10ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService10TestShapeInputService10TestCaseOperation1Input{ - Body: aws.ReadSeekCloser(bytes.NewBufferString("contents")), +func TestInputService11ProtocolTestStreamingPayloadCase1(t *testing.T) { + svc := NewInputService11ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService11TestShapeInputService11TestCaseOperation1Input{ + Body: bytes.NewReader([]byte("contents")), Checksum: aws.String("foo"), VaultName: aws.String("name"), } - req, _ := svc.InputService10TestCaseOperation1Request(input) + req, _ := svc.InputService11TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -3343,13 +3783,13 @@ func TestInputService10ProtocolTestStreamingPayloadCase1(t *testing.T) { } -func TestInputService11ProtocolTestSerializeBlobsInBodyCase1(t *testing.T) { - svc := NewInputService11ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService11TestShapeInputService11TestCaseOperation1Input{ +func TestInputService12ProtocolTestSerializeBlobsInBodyCase1(t *testing.T) { + svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService12TestShapeInputService12TestCaseOperation1Input{ Bar: []byte("Blob param"), Foo: aws.String("foo_name"), } - req, _ := svc.InputService11TestCaseOperation1Request(input) + req, _ := svc.InputService12TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -3368,12 +3808,12 @@ func TestInputService11ProtocolTestSerializeBlobsInBodyCase1(t *testing.T) { } -func TestInputService12ProtocolTestBlobPayloadCase1(t *testing.T) { - svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService12TestShapeInputShape{ +func TestInputService13ProtocolTestBlobPayloadCase1(t *testing.T) { + svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService13TestShapeInputShape{ Foo: []byte("bar"), } - req, _ := svc.InputService12TestCaseOperation1Request(input) + req, _ := svc.InputService13TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -3392,10 +3832,10 @@ func TestInputService12ProtocolTestBlobPayloadCase1(t *testing.T) { } -func TestInputService12ProtocolTestBlobPayloadCase2(t *testing.T) { - svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService12TestShapeInputShape{} - req, _ := svc.InputService12TestCaseOperation2Request(input) +func TestInputService13ProtocolTestBlobPayloadCase2(t *testing.T) { + svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService13TestShapeInputShape{} + req, _ := svc.InputService13TestCaseOperation2Request(input) r := req.HTTPRequest // build request @@ -3409,14 +3849,14 @@ func TestInputService12ProtocolTestBlobPayloadCase2(t *testing.T) { } -func TestInputService13ProtocolTestStructurePayloadCase1(t *testing.T) { - svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService13TestShapeInputShape{ - Foo: &InputService13TestShapeFooShape{ +func TestInputService14ProtocolTestStructurePayloadCase1(t *testing.T) { + svc := NewInputService14ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService14TestShapeInputShape{ + Foo: &InputService14TestShapeFooShape{ Baz: aws.String("bar"), }, } - req, _ := svc.InputService13TestCaseOperation1Request(input) + req, _ := svc.InputService14TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -3435,10 +3875,10 @@ func TestInputService13ProtocolTestStructurePayloadCase1(t *testing.T) { } -func TestInputService13ProtocolTestStructurePayloadCase2(t *testing.T) { - svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService13TestShapeInputShape{} - req, _ := svc.InputService13TestCaseOperation2Request(input) +func TestInputService14ProtocolTestStructurePayloadCase2(t *testing.T) { + svc := NewInputService14ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService14TestShapeInputShape{} + req, _ := svc.InputService14TestCaseOperation2Request(input) r := req.HTTPRequest // build request @@ -3452,10 +3892,10 @@ func TestInputService13ProtocolTestStructurePayloadCase2(t *testing.T) { } -func TestInputService14ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase1(t *testing.T) { - svc := NewInputService14ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService14TestShapeInputShape{} - req, _ := svc.InputService14TestCaseOperation1Request(input) +func TestInputService15ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase1(t *testing.T) { + svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService15TestShapeInputShape{} + req, _ := svc.InputService15TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -3469,12 +3909,12 @@ func TestInputService14ProtocolTestOmitsNullQueryParamsButSerializesEmptyStrings } -func TestInputService14ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase2(t *testing.T) { - svc := NewInputService14ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService14TestShapeInputShape{ +func TestInputService15ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase2(t *testing.T) { + svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService15TestShapeInputShape{ Foo: aws.String(""), } - req, _ := svc.InputService14TestCaseOperation2Request(input) + req, _ := svc.InputService15TestCaseOperation2Request(input) r := req.HTTPRequest // build request @@ -3488,14 +3928,14 @@ func TestInputService14ProtocolTestOmitsNullQueryParamsButSerializesEmptyStrings } -func TestInputService15ProtocolTestRecursiveShapesCase1(t *testing.T) { - svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService15TestShapeInputShape{ - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ +func TestInputService16ProtocolTestRecursiveShapesCase1(t *testing.T) { + svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService16TestShapeInputShape{ + RecursiveStruct: &InputService16TestShapeRecursiveStructType{ NoRecurse: aws.String("foo"), }, } - req, _ := svc.InputService15TestCaseOperation1Request(input) + req, _ := svc.InputService16TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -3514,16 +3954,16 @@ func TestInputService15ProtocolTestRecursiveShapesCase1(t *testing.T) { } -func TestInputService15ProtocolTestRecursiveShapesCase2(t *testing.T) { - svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService15TestShapeInputShape{ - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ +func TestInputService16ProtocolTestRecursiveShapesCase2(t *testing.T) { + svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService16TestShapeInputShape{ + RecursiveStruct: &InputService16TestShapeRecursiveStructType{ + RecursiveStruct: &InputService16TestShapeRecursiveStructType{ NoRecurse: aws.String("foo"), }, }, } - req, _ := svc.InputService15TestCaseOperation2Request(input) + req, _ := svc.InputService16TestCaseOperation2Request(input) r := req.HTTPRequest // build request @@ -3542,20 +3982,20 @@ func TestInputService15ProtocolTestRecursiveShapesCase2(t *testing.T) { } -func TestInputService15ProtocolTestRecursiveShapesCase3(t *testing.T) { - svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService15TestShapeInputShape{ - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ +func TestInputService16ProtocolTestRecursiveShapesCase3(t *testing.T) { + svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService16TestShapeInputShape{ + RecursiveStruct: &InputService16TestShapeRecursiveStructType{ + RecursiveStruct: &InputService16TestShapeRecursiveStructType{ + RecursiveStruct: &InputService16TestShapeRecursiveStructType{ + RecursiveStruct: &InputService16TestShapeRecursiveStructType{ NoRecurse: aws.String("foo"), }, }, }, }, } - req, _ := svc.InputService15TestCaseOperation3Request(input) + req, _ := svc.InputService16TestCaseOperation3Request(input) r := req.HTTPRequest // build request @@ -3574,11 +4014,11 @@ func TestInputService15ProtocolTestRecursiveShapesCase3(t *testing.T) { } -func TestInputService15ProtocolTestRecursiveShapesCase4(t *testing.T) { - svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService15TestShapeInputShape{ - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ - RecursiveList: []*InputService15TestShapeRecursiveStructType{ +func TestInputService16ProtocolTestRecursiveShapesCase4(t *testing.T) { + svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService16TestShapeInputShape{ + RecursiveStruct: &InputService16TestShapeRecursiveStructType{ + RecursiveList: []*InputService16TestShapeRecursiveStructType{ { NoRecurse: aws.String("foo"), }, @@ -3588,7 +4028,7 @@ func TestInputService15ProtocolTestRecursiveShapesCase4(t *testing.T) { }, }, } - req, _ := svc.InputService15TestCaseOperation4Request(input) + req, _ := svc.InputService16TestCaseOperation4Request(input) r := req.HTTPRequest // build request @@ -3607,23 +4047,23 @@ func TestInputService15ProtocolTestRecursiveShapesCase4(t *testing.T) { } -func TestInputService15ProtocolTestRecursiveShapesCase5(t *testing.T) { - svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService15TestShapeInputShape{ - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ - RecursiveList: []*InputService15TestShapeRecursiveStructType{ +func TestInputService16ProtocolTestRecursiveShapesCase5(t *testing.T) { + svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService16TestShapeInputShape{ + RecursiveStruct: &InputService16TestShapeRecursiveStructType{ + RecursiveList: []*InputService16TestShapeRecursiveStructType{ { NoRecurse: aws.String("foo"), }, { - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ + RecursiveStruct: &InputService16TestShapeRecursiveStructType{ NoRecurse: aws.String("bar"), }, }, }, }, } - req, _ := svc.InputService15TestCaseOperation5Request(input) + req, _ := svc.InputService16TestCaseOperation5Request(input) r := req.HTTPRequest // build request @@ -3642,11 +4082,11 @@ func TestInputService15ProtocolTestRecursiveShapesCase5(t *testing.T) { } -func TestInputService15ProtocolTestRecursiveShapesCase6(t *testing.T) { - svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService15TestShapeInputShape{ - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ - RecursiveMap: map[string]*InputService15TestShapeRecursiveStructType{ +func TestInputService16ProtocolTestRecursiveShapesCase6(t *testing.T) { + svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService16TestShapeInputShape{ + RecursiveStruct: &InputService16TestShapeRecursiveStructType{ + RecursiveMap: map[string]*InputService16TestShapeRecursiveStructType{ "bar": { NoRecurse: aws.String("bar"), }, @@ -3656,7 +4096,7 @@ func TestInputService15ProtocolTestRecursiveShapesCase6(t *testing.T) { }, }, } - req, _ := svc.InputService15TestCaseOperation6Request(input) + req, _ := svc.InputService16TestCaseOperation6Request(input) r := req.HTTPRequest // build request @@ -3675,12 +4115,12 @@ func TestInputService15ProtocolTestRecursiveShapesCase6(t *testing.T) { } -func TestInputService16ProtocolTestTimestampValuesCase1(t *testing.T) { - svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService16TestShapeInputShape{ +func TestInputService17ProtocolTestTimestampValuesCase1(t *testing.T) { + svc := NewInputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService17TestShapeInputShape{ TimeArg: aws.Time(time.Unix(1422172800, 0)), } - req, _ := svc.InputService16TestCaseOperation1Request(input) + req, _ := svc.InputService17TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -3699,12 +4139,12 @@ func TestInputService16ProtocolTestTimestampValuesCase1(t *testing.T) { } -func TestInputService16ProtocolTestTimestampValuesCase2(t *testing.T) { - svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService16TestShapeInputShape{ +func TestInputService17ProtocolTestTimestampValuesCase2(t *testing.T) { + svc := NewInputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService17TestShapeInputShape{ TimeArgInHeader: aws.Time(time.Unix(1422172800, 0)), } - req, _ := svc.InputService16TestCaseOperation2Request(input) + req, _ := svc.InputService17TestCaseOperation2Request(input) r := req.HTTPRequest // build request @@ -3719,12 +4159,12 @@ func TestInputService16ProtocolTestTimestampValuesCase2(t *testing.T) { } -func TestInputService17ProtocolTestNamedLocationsInJSONBodyCase1(t *testing.T) { - svc := NewInputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService17TestShapeInputService17TestCaseOperation1Input{ +func TestInputService18ProtocolTestNamedLocationsInJSONBodyCase1(t *testing.T) { + svc := NewInputService18ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService18TestShapeInputService18TestCaseOperation1Input{ TimeArg: aws.Time(time.Unix(1422172800, 0)), } - req, _ := svc.InputService17TestCaseOperation1Request(input) + req, _ := svc.InputService18TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -3743,12 +4183,12 @@ func TestInputService17ProtocolTestNamedLocationsInJSONBodyCase1(t *testing.T) { } -func TestInputService18ProtocolTestStringPayloadCase1(t *testing.T) { - svc := NewInputService18ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService18TestShapeInputService18TestCaseOperation1Input{ +func TestInputService19ProtocolTestStringPayloadCase1(t *testing.T) { + svc := NewInputService19ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService19TestShapeInputService19TestCaseOperation1Input{ Foo: aws.String("bar"), } - req, _ := svc.InputService18TestCaseOperation1Request(input) + req, _ := svc.InputService19TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -3767,12 +4207,12 @@ func TestInputService18ProtocolTestStringPayloadCase1(t *testing.T) { } -func TestInputService19ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) { - svc := NewInputService19ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService19TestShapeInputShape{ +func TestInputService20ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) { + svc := NewInputService20ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService20TestShapeInputShape{ Token: aws.String("abc123"), } - req, _ := svc.InputService19TestCaseOperation1Request(input) + req, _ := svc.InputService20TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -3791,10 +4231,10 @@ func TestInputService19ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) { } -func TestInputService19ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) { - svc := NewInputService19ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService19TestShapeInputShape{} - req, _ := svc.InputService19TestCaseOperation2Request(input) +func TestInputService20ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) { + svc := NewInputService20ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService20TestShapeInputShape{} + req, _ := svc.InputService20TestCaseOperation2Request(input) r := req.HTTPRequest // build request diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/unmarshal_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/unmarshal_test.go index 0775ce672..3ac657017 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/unmarshal_test.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/unmarshal_test.go @@ -43,7 +43,7 @@ func init() { protocol.RandReader = &awstesting.ZeroReader{} } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService1ProtocolTest struct { *client.Client @@ -61,16 +61,17 @@ type OutputService1ProtocolTest struct { // svc := outputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService1ProtocolTest { c := p.ClientConfig("outputservice1protocoltest", cfgs...) - return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService1ProtocolTest { +func newOutputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService1ProtocolTest { svc := &OutputService1ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice1protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -122,7 +123,6 @@ const opOutputService1TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (req *request.Request, output *OutputService1TestShapeOutputService1TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService1TestCaseOperation1, @@ -133,9 +133,8 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(inp input = &OutputService1TestShapeOutputService1TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService1TestShapeOutputService1TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -183,7 +182,73 @@ type OutputService1TestShapeOutputService1TestCaseOperation1Output struct { TrueBool *bool `type:"boolean"` } -//The service client's operations are safe to be used concurrently. +// SetChar sets the Char field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetChar(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Char = &v + return s +} + +// SetDouble sets the Double field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetDouble(v float64) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Double = &v + return s +} + +// SetFalseBool sets the FalseBool field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetFalseBool(v bool) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.FalseBool = &v + return s +} + +// SetFloat sets the Float field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetFloat(v float64) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Float = &v + return s +} + +// SetImaHeader sets the ImaHeader field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetImaHeader(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.ImaHeader = &v + return s +} + +// SetImaHeaderLocation sets the ImaHeaderLocation field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetImaHeaderLocation(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.ImaHeaderLocation = &v + return s +} + +// SetLong sets the Long field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetLong(v int64) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Long = &v + return s +} + +// SetNum sets the Num field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetNum(v int64) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Num = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetStatus(v int64) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Status = &v + return s +} + +// SetStr sets the Str field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetStr(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.Str = &v + return s +} + +// SetTrueBool sets the TrueBool field's value. +func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetTrueBool(v bool) *OutputService1TestShapeOutputService1TestCaseOperation1Output { + s.TrueBool = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService2ProtocolTest struct { *client.Client @@ -201,16 +266,17 @@ type OutputService2ProtocolTest struct { // svc := outputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService2ProtocolTest { c := p.ClientConfig("outputservice2protocoltest", cfgs...) - return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService2ProtocolTest { +func newOutputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService2ProtocolTest { svc := &OutputService2ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice2protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -262,7 +328,6 @@ const opOutputService2TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (req *request.Request, output *OutputService2TestShapeOutputService2TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService2TestCaseOperation1, @@ -273,9 +338,8 @@ func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(inp input = &OutputService2TestShapeOutputService2TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService2TestShapeOutputService2TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -300,6 +364,12 @@ type OutputService2TestShapeBlobContainer struct { Foo []byte `locationName:"foo" type:"blob"` } +// SetFoo sets the Foo field's value. +func (s *OutputService2TestShapeBlobContainer) SetFoo(v []byte) *OutputService2TestShapeBlobContainer { + s.Foo = v + return s +} + type OutputService2TestShapeOutputService2TestCaseOperation1Input struct { _ struct{} `type:"structure"` } @@ -313,7 +383,19 @@ type OutputService2TestShapeOutputService2TestCaseOperation1Output struct { StructMember *OutputService2TestShapeBlobContainer `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// SetBlobMember sets the BlobMember field's value. +func (s *OutputService2TestShapeOutputService2TestCaseOperation1Output) SetBlobMember(v []byte) *OutputService2TestShapeOutputService2TestCaseOperation1Output { + s.BlobMember = v + return s +} + +// SetStructMember sets the StructMember field's value. +func (s *OutputService2TestShapeOutputService2TestCaseOperation1Output) SetStructMember(v *OutputService2TestShapeBlobContainer) *OutputService2TestShapeOutputService2TestCaseOperation1Output { + s.StructMember = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService3ProtocolTest struct { *client.Client @@ -331,16 +413,17 @@ type OutputService3ProtocolTest struct { // svc := outputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService3ProtocolTest { c := p.ClientConfig("outputservice3protocoltest", cfgs...) - return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService3ProtocolTest { +func newOutputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService3ProtocolTest { svc := &OutputService3ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice3protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -392,7 +475,6 @@ const opOutputService3TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (req *request.Request, output *OutputService3TestShapeOutputService3TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService3TestCaseOperation1, @@ -403,9 +485,8 @@ func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(inp input = &OutputService3TestShapeOutputService3TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService3TestShapeOutputService3TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -435,13 +516,31 @@ type OutputService3TestShapeOutputService3TestCaseOperation1Output struct { TimeMember *time.Time `type:"timestamp" timestampFormat:"unix"` } +// SetStructMember sets the StructMember field's value. +func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetStructMember(v *OutputService3TestShapeTimeContainer) *OutputService3TestShapeOutputService3TestCaseOperation1Output { + s.StructMember = v + return s +} + +// SetTimeMember sets the TimeMember field's value. +func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetTimeMember(v time.Time) *OutputService3TestShapeOutputService3TestCaseOperation1Output { + s.TimeMember = &v + return s +} + type OutputService3TestShapeTimeContainer struct { _ struct{} `type:"structure"` Foo *time.Time `locationName:"foo" type:"timestamp" timestampFormat:"unix"` } -//The service client's operations are safe to be used concurrently. +// SetFoo sets the Foo field's value. +func (s *OutputService3TestShapeTimeContainer) SetFoo(v time.Time) *OutputService3TestShapeTimeContainer { + s.Foo = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService4ProtocolTest struct { *client.Client @@ -459,16 +558,17 @@ type OutputService4ProtocolTest struct { // svc := outputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService4ProtocolTest { c := p.ClientConfig("outputservice4protocoltest", cfgs...) - return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService4ProtocolTest { +func newOutputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService4ProtocolTest { svc := &OutputService4ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice4protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -520,7 +620,6 @@ const opOutputService4TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (req *request.Request, output *OutputService4TestShapeOutputService4TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService4TestCaseOperation1, @@ -531,9 +630,8 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(inp input = &OutputService4TestShapeOutputService4TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService4TestShapeOutputService4TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -561,7 +659,13 @@ type OutputService4TestShapeOutputService4TestCaseOperation1Output struct { ListMember []*string `type:"list"` } -//The service client's operations are safe to be used concurrently. +// SetListMember sets the ListMember field's value. +func (s *OutputService4TestShapeOutputService4TestCaseOperation1Output) SetListMember(v []*string) *OutputService4TestShapeOutputService4TestCaseOperation1Output { + s.ListMember = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService5ProtocolTest struct { *client.Client @@ -579,16 +683,17 @@ type OutputService5ProtocolTest struct { // svc := outputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService5ProtocolTest { c := p.ClientConfig("outputservice5protocoltest", cfgs...) - return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService5ProtocolTest { +func newOutputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService5ProtocolTest { svc := &OutputService5ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice5protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -640,7 +745,6 @@ const opOutputService5TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (req *request.Request, output *OutputService5TestShapeOutputService5TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService5TestCaseOperation1, @@ -651,9 +755,8 @@ func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(inp input = &OutputService5TestShapeOutputService5TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService5TestShapeOutputService5TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -681,13 +784,25 @@ type OutputService5TestShapeOutputService5TestCaseOperation1Output struct { ListMember []*OutputService5TestShapeSingleStruct `type:"list"` } +// SetListMember sets the ListMember field's value. +func (s *OutputService5TestShapeOutputService5TestCaseOperation1Output) SetListMember(v []*OutputService5TestShapeSingleStruct) *OutputService5TestShapeOutputService5TestCaseOperation1Output { + s.ListMember = v + return s +} + type OutputService5TestShapeSingleStruct struct { _ struct{} `type:"structure"` Foo *string `type:"string"` } -//The service client's operations are safe to be used concurrently. +// SetFoo sets the Foo field's value. +func (s *OutputService5TestShapeSingleStruct) SetFoo(v string) *OutputService5TestShapeSingleStruct { + s.Foo = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService6ProtocolTest struct { *client.Client @@ -705,16 +820,17 @@ type OutputService6ProtocolTest struct { // svc := outputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService6ProtocolTest { c := p.ClientConfig("outputservice6protocoltest", cfgs...) - return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService6ProtocolTest { +func newOutputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService6ProtocolTest { svc := &OutputService6ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice6protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -766,7 +882,6 @@ const opOutputService6TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (req *request.Request, output *OutputService6TestShapeOutputService6TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService6TestCaseOperation1, @@ -777,9 +892,8 @@ func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(inp input = &OutputService6TestShapeOutputService6TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService6TestShapeOutputService6TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -807,7 +921,13 @@ type OutputService6TestShapeOutputService6TestCaseOperation1Output struct { MapMember map[string][]*int64 `type:"map"` } -//The service client's operations are safe to be used concurrently. +// SetMapMember sets the MapMember field's value. +func (s *OutputService6TestShapeOutputService6TestCaseOperation1Output) SetMapMember(v map[string][]*int64) *OutputService6TestShapeOutputService6TestCaseOperation1Output { + s.MapMember = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService7ProtocolTest struct { *client.Client @@ -825,16 +945,17 @@ type OutputService7ProtocolTest struct { // svc := outputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService7ProtocolTest { c := p.ClientConfig("outputservice7protocoltest", cfgs...) - return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService7ProtocolTest { +func newOutputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService7ProtocolTest { svc := &OutputService7ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice7protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -886,7 +1007,6 @@ const opOutputService7TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (req *request.Request, output *OutputService7TestShapeOutputService7TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService7TestCaseOperation1, @@ -897,9 +1017,8 @@ func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(inp input = &OutputService7TestShapeOutputService7TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService7TestShapeOutputService7TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -927,7 +1046,13 @@ type OutputService7TestShapeOutputService7TestCaseOperation1Output struct { MapMember map[string]*time.Time `type:"map"` } -//The service client's operations are safe to be used concurrently. +// SetMapMember sets the MapMember field's value. +func (s *OutputService7TestShapeOutputService7TestCaseOperation1Output) SetMapMember(v map[string]*time.Time) *OutputService7TestShapeOutputService7TestCaseOperation1Output { + s.MapMember = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService8ProtocolTest struct { *client.Client @@ -945,16 +1070,17 @@ type OutputService8ProtocolTest struct { // svc := outputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService8ProtocolTest { c := p.ClientConfig("outputservice8protocoltest", cfgs...) - return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService8ProtocolTest { +func newOutputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService8ProtocolTest { svc := &OutputService8ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice8protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -1006,7 +1132,6 @@ const opOutputService8TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (req *request.Request, output *OutputService8TestShapeOutputService8TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService8TestCaseOperation1, @@ -1017,9 +1142,8 @@ func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(inp input = &OutputService8TestShapeOutputService8TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService8TestShapeOutputService8TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1047,7 +1171,13 @@ type OutputService8TestShapeOutputService8TestCaseOperation1Output struct { StrType *string `type:"string"` } -//The service client's operations are safe to be used concurrently. +// SetStrType sets the StrType field's value. +func (s *OutputService8TestShapeOutputService8TestCaseOperation1Output) SetStrType(v string) *OutputService8TestShapeOutputService8TestCaseOperation1Output { + s.StrType = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService9ProtocolTest struct { *client.Client @@ -1065,16 +1195,17 @@ type OutputService9ProtocolTest struct { // svc := outputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService9ProtocolTest { c := p.ClientConfig("outputservice9protocoltest", cfgs...) - return newOutputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService9ProtocolTest { +func newOutputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService9ProtocolTest { svc := &OutputService9ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice9protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -1126,7 +1257,6 @@ const opOutputService9TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1Request(input *OutputService9TestShapeOutputService9TestCaseOperation1Input) (req *request.Request, output *OutputService9TestShapeOutputService9TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService9TestCaseOperation1, @@ -1137,9 +1267,8 @@ func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1Request(inp input = &OutputService9TestShapeOutputService9TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService9TestShapeOutputService9TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1169,7 +1298,19 @@ type OutputService9TestShapeOutputService9TestCaseOperation1Output struct { PrefixedHeaders map[string]*string `location:"headers" locationName:"X-" type:"map"` } -//The service client's operations are safe to be used concurrently. +// SetAllHeaders sets the AllHeaders field's value. +func (s *OutputService9TestShapeOutputService9TestCaseOperation1Output) SetAllHeaders(v map[string]*string) *OutputService9TestShapeOutputService9TestCaseOperation1Output { + s.AllHeaders = v + return s +} + +// SetPrefixedHeaders sets the PrefixedHeaders field's value. +func (s *OutputService9TestShapeOutputService9TestCaseOperation1Output) SetPrefixedHeaders(v map[string]*string) *OutputService9TestShapeOutputService9TestCaseOperation1Output { + s.PrefixedHeaders = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService10ProtocolTest struct { *client.Client @@ -1187,16 +1328,17 @@ type OutputService10ProtocolTest struct { // svc := outputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService10ProtocolTest { c := p.ClientConfig("outputservice10protocoltest", cfgs...) - return newOutputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService10ProtocolTest { +func newOutputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService10ProtocolTest { svc := &OutputService10ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice10protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -1248,7 +1390,6 @@ const opOutputService10TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1Request(input *OutputService10TestShapeOutputService10TestCaseOperation1Input) (req *request.Request, output *OutputService10TestShapeOutputService10TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService10TestCaseOperation1, @@ -1259,9 +1400,8 @@ func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1Request(i input = &OutputService10TestShapeOutputService10TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService10TestShapeOutputService10TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1285,6 +1425,12 @@ type OutputService10TestShapeBodyStructure struct { Foo *string `type:"string"` } +// SetFoo sets the Foo field's value. +func (s *OutputService10TestShapeBodyStructure) SetFoo(v string) *OutputService10TestShapeBodyStructure { + s.Foo = &v + return s +} + type OutputService10TestShapeOutputService10TestCaseOperation1Input struct { _ struct{} `type:"structure"` } @@ -1297,7 +1443,19 @@ type OutputService10TestShapeOutputService10TestCaseOperation1Output struct { Header *string `location:"header" locationName:"X-Foo" type:"string"` } -//The service client's operations are safe to be used concurrently. +// SetData sets the Data field's value. +func (s *OutputService10TestShapeOutputService10TestCaseOperation1Output) SetData(v *OutputService10TestShapeBodyStructure) *OutputService10TestShapeOutputService10TestCaseOperation1Output { + s.Data = v + return s +} + +// SetHeader sets the Header field's value. +func (s *OutputService10TestShapeOutputService10TestCaseOperation1Output) SetHeader(v string) *OutputService10TestShapeOutputService10TestCaseOperation1Output { + s.Header = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService11ProtocolTest struct { *client.Client @@ -1315,16 +1473,17 @@ type OutputService11ProtocolTest struct { // svc := outputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService11ProtocolTest { c := p.ClientConfig("outputservice11protocoltest", cfgs...) - return newOutputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService11ProtocolTest { +func newOutputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService11ProtocolTest { svc := &OutputService11ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice11protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -1376,7 +1535,6 @@ const opOutputService11TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1Request(input *OutputService11TestShapeOutputService11TestCaseOperation1Input) (req *request.Request, output *OutputService11TestShapeOutputService11TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService11TestCaseOperation1, @@ -1387,9 +1545,8 @@ func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1Request(i input = &OutputService11TestShapeOutputService11TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService11TestShapeOutputService11TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1417,6 +1574,12 @@ type OutputService11TestShapeOutputService11TestCaseOperation1Output struct { Stream []byte `type:"blob"` } +// SetStream sets the Stream field's value. +func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetStream(v []byte) *OutputService11TestShapeOutputService11TestCaseOperation1Output { + s.Stream = v + return s +} + // // Tests begin here // diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/build_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/build_test.go index 7ff9c66a7..eb7225889 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/build_test.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/build_test.go @@ -43,7 +43,7 @@ func init() { protocol.RandReader = &awstesting.ZeroReader{} } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService1ProtocolTest struct { *client.Client @@ -61,16 +61,17 @@ type InputService1ProtocolTest struct { // svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest { c := p.ClientConfig("inputservice1protocoltest", cfgs...) - return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService1ProtocolTest { +func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService1ProtocolTest { svc := &InputService1ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice1protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -122,7 +123,6 @@ const opInputService1TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService1TestCaseOperation1, @@ -134,11 +134,10 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input input = &InputService1TestShapeInputShape{} } + output = &InputService1TestShapeInputService1TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService1TestShapeInputService1TestCaseOperation1Output{} - req.Data = output return } @@ -181,7 +180,6 @@ const opInputService1TestCaseOperation2 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService1ProtocolTest) InputService1TestCaseOperation2Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation2Output) { op := &request.Operation{ Name: opInputService1TestCaseOperation2, @@ -193,11 +191,10 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation2Request(input input = &InputService1TestShapeInputShape{} } + output = &InputService1TestShapeInputService1TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService1TestShapeInputService1TestCaseOperation2Output{} - req.Data = output return } @@ -240,7 +237,6 @@ const opInputService1TestCaseOperation3 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService1ProtocolTest) InputService1TestCaseOperation3Request(input *InputService1TestShapeInputService1TestCaseOperation3Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation3Output) { op := &request.Operation{ Name: opInputService1TestCaseOperation3, @@ -252,11 +248,10 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation3Request(input input = &InputService1TestShapeInputService1TestCaseOperation3Input{} } + output = &InputService1TestShapeInputService1TestCaseOperation3Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService1TestShapeInputService1TestCaseOperation3Output{} - req.Data = output return } @@ -298,7 +293,19 @@ type InputService1TestShapeInputShape struct { Name *string `type:"string"` } -//The service client's operations are safe to be used concurrently. +// SetDescription sets the Description field's value. +func (s *InputService1TestShapeInputShape) SetDescription(v string) *InputService1TestShapeInputShape { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *InputService1TestShapeInputShape) SetName(v string) *InputService1TestShapeInputShape { + s.Name = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService2ProtocolTest struct { *client.Client @@ -316,16 +323,17 @@ type InputService2ProtocolTest struct { // svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest { c := p.ClientConfig("inputservice2protocoltest", cfgs...) - return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService2ProtocolTest { +func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService2ProtocolTest { svc := &InputService2ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice2protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -377,7 +385,6 @@ const opInputService2TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService2TestCaseOperation1, @@ -389,11 +396,10 @@ func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input input = &InputService2TestShapeInputService2TestCaseOperation1Input{} } + output = &InputService2TestShapeInputService2TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService2TestShapeInputService2TestCaseOperation1Output{} - req.Data = output return } @@ -423,11 +429,35 @@ type InputService2TestShapeInputService2TestCaseOperation1Input struct { Third *float64 `type:"float"` } +// SetFirst sets the First field's value. +func (s *InputService2TestShapeInputService2TestCaseOperation1Input) SetFirst(v bool) *InputService2TestShapeInputService2TestCaseOperation1Input { + s.First = &v + return s +} + +// SetFourth sets the Fourth field's value. +func (s *InputService2TestShapeInputService2TestCaseOperation1Input) SetFourth(v int64) *InputService2TestShapeInputService2TestCaseOperation1Input { + s.Fourth = &v + return s +} + +// SetSecond sets the Second field's value. +func (s *InputService2TestShapeInputService2TestCaseOperation1Input) SetSecond(v bool) *InputService2TestShapeInputService2TestCaseOperation1Input { + s.Second = &v + return s +} + +// SetThird sets the Third field's value. +func (s *InputService2TestShapeInputService2TestCaseOperation1Input) SetThird(v float64) *InputService2TestShapeInputService2TestCaseOperation1Input { + s.Third = &v + return s +} + type InputService2TestShapeInputService2TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService3ProtocolTest struct { *client.Client @@ -445,16 +475,17 @@ type InputService3ProtocolTest struct { // svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest { c := p.ClientConfig("inputservice3protocoltest", cfgs...) - return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService3ProtocolTest { +func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService3ProtocolTest { svc := &InputService3ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice3protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -506,7 +537,6 @@ const opInputService3TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputShape) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService3TestCaseOperation1, @@ -518,11 +548,10 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input input = &InputService3TestShapeInputShape{} } + output = &InputService3TestShapeInputService3TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService3TestShapeInputService3TestCaseOperation1Output{} - req.Data = output return } @@ -565,7 +594,6 @@ const opInputService3TestCaseOperation2 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input *InputService3TestShapeInputShape) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation2Output) { op := &request.Operation{ Name: opInputService3TestCaseOperation2, @@ -577,11 +605,10 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input input = &InputService3TestShapeInputShape{} } + output = &InputService3TestShapeInputService3TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService3TestShapeInputService3TestCaseOperation2Output{} - req.Data = output return } @@ -615,6 +642,18 @@ type InputService3TestShapeInputShape struct { SubStructure *InputService3TestShapeSubStructure `type:"structure"` } +// SetDescription sets the Description field's value. +func (s *InputService3TestShapeInputShape) SetDescription(v string) *InputService3TestShapeInputShape { + s.Description = &v + return s +} + +// SetSubStructure sets the SubStructure field's value. +func (s *InputService3TestShapeInputShape) SetSubStructure(v *InputService3TestShapeSubStructure) *InputService3TestShapeInputShape { + s.SubStructure = v + return s +} + type InputService3TestShapeSubStructure struct { _ struct{} `type:"structure"` @@ -623,7 +662,19 @@ type InputService3TestShapeSubStructure struct { Foo *string `type:"string"` } -//The service client's operations are safe to be used concurrently. +// SetBar sets the Bar field's value. +func (s *InputService3TestShapeSubStructure) SetBar(v string) *InputService3TestShapeSubStructure { + s.Bar = &v + return s +} + +// SetFoo sets the Foo field's value. +func (s *InputService3TestShapeSubStructure) SetFoo(v string) *InputService3TestShapeSubStructure { + s.Foo = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService4ProtocolTest struct { *client.Client @@ -641,16 +692,17 @@ type InputService4ProtocolTest struct { // svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest { c := p.ClientConfig("inputservice4protocoltest", cfgs...) - return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService4ProtocolTest { +func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService4ProtocolTest { svc := &InputService4ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice4protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -702,7 +754,6 @@ const opInputService4TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputService4TestCaseOperation1Input) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService4TestCaseOperation1, @@ -714,11 +765,10 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input input = &InputService4TestShapeInputService4TestCaseOperation1Input{} } + output = &InputService4TestShapeInputService4TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService4TestShapeInputService4TestCaseOperation1Output{} - req.Data = output return } @@ -744,6 +794,18 @@ type InputService4TestShapeInputService4TestCaseOperation1Input struct { SubStructure *InputService4TestShapeSubStructure `type:"structure"` } +// SetDescription sets the Description field's value. +func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetDescription(v string) *InputService4TestShapeInputService4TestCaseOperation1Input { + s.Description = &v + return s +} + +// SetSubStructure sets the SubStructure field's value. +func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetSubStructure(v *InputService4TestShapeSubStructure) *InputService4TestShapeInputService4TestCaseOperation1Input { + s.SubStructure = v + return s +} + type InputService4TestShapeInputService4TestCaseOperation1Output struct { _ struct{} `type:"structure"` } @@ -756,7 +818,19 @@ type InputService4TestShapeSubStructure struct { Foo *string `type:"string"` } -//The service client's operations are safe to be used concurrently. +// SetBar sets the Bar field's value. +func (s *InputService4TestShapeSubStructure) SetBar(v string) *InputService4TestShapeSubStructure { + s.Bar = &v + return s +} + +// SetFoo sets the Foo field's value. +func (s *InputService4TestShapeSubStructure) SetFoo(v string) *InputService4TestShapeSubStructure { + s.Foo = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService5ProtocolTest struct { *client.Client @@ -774,16 +848,17 @@ type InputService5ProtocolTest struct { // svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest { c := p.ClientConfig("inputservice5protocoltest", cfgs...) - return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService5ProtocolTest { +func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService5ProtocolTest { svc := &InputService5ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice5protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -835,7 +910,6 @@ const opInputService5TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService5TestCaseOperation1, @@ -847,11 +921,10 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input input = &InputService5TestShapeInputService5TestCaseOperation1Input{} } + output = &InputService5TestShapeInputService5TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService5TestShapeInputService5TestCaseOperation1Output{} - req.Data = output return } @@ -875,11 +948,17 @@ type InputService5TestShapeInputService5TestCaseOperation1Input struct { ListParam []*string `type:"list"` } +// SetListParam sets the ListParam field's value. +func (s *InputService5TestShapeInputService5TestCaseOperation1Input) SetListParam(v []*string) *InputService5TestShapeInputService5TestCaseOperation1Input { + s.ListParam = v + return s +} + type InputService5TestShapeInputService5TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService6ProtocolTest struct { *client.Client @@ -897,16 +976,17 @@ type InputService6ProtocolTest struct { // svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest { c := p.ClientConfig("inputservice6protocoltest", cfgs...) - return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService6ProtocolTest { +func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService6ProtocolTest { svc := &InputService6ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice6protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -958,7 +1038,6 @@ const opInputService6TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService6TestCaseOperation1, @@ -970,11 +1049,10 @@ func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input input = &InputService6TestShapeInputService6TestCaseOperation1Input{} } + output = &InputService6TestShapeInputService6TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService6TestShapeInputService6TestCaseOperation1Output{} - req.Data = output return } @@ -998,11 +1076,17 @@ type InputService6TestShapeInputService6TestCaseOperation1Input struct { ListParam []*string `locationName:"AlternateName" locationNameList:"NotMember" type:"list"` } +// SetListParam sets the ListParam field's value. +func (s *InputService6TestShapeInputService6TestCaseOperation1Input) SetListParam(v []*string) *InputService6TestShapeInputService6TestCaseOperation1Input { + s.ListParam = v + return s +} + type InputService6TestShapeInputService6TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService7ProtocolTest struct { *client.Client @@ -1020,16 +1104,17 @@ type InputService7ProtocolTest struct { // svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest { c := p.ClientConfig("inputservice7protocoltest", cfgs...) - return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService7ProtocolTest { +func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService7ProtocolTest { svc := &InputService7ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice7protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1081,7 +1166,6 @@ const opInputService7TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService7TestCaseOperation1, @@ -1093,11 +1177,10 @@ func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input input = &InputService7TestShapeInputService7TestCaseOperation1Input{} } + output = &InputService7TestShapeInputService7TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService7TestShapeInputService7TestCaseOperation1Output{} - req.Data = output return } @@ -1121,11 +1204,17 @@ type InputService7TestShapeInputService7TestCaseOperation1Input struct { ListParam []*string `type:"list" flattened:"true"` } +// SetListParam sets the ListParam field's value. +func (s *InputService7TestShapeInputService7TestCaseOperation1Input) SetListParam(v []*string) *InputService7TestShapeInputService7TestCaseOperation1Input { + s.ListParam = v + return s +} + type InputService7TestShapeInputService7TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService8ProtocolTest struct { *client.Client @@ -1143,16 +1232,17 @@ type InputService8ProtocolTest struct { // svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest { c := p.ClientConfig("inputservice8protocoltest", cfgs...) - return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService8ProtocolTest { +func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService8ProtocolTest { svc := &InputService8ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice8protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1204,7 +1294,6 @@ const opInputService8TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputService8TestCaseOperation1Input) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService8TestCaseOperation1, @@ -1216,11 +1305,10 @@ func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input input = &InputService8TestShapeInputService8TestCaseOperation1Input{} } + output = &InputService8TestShapeInputService8TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService8TestShapeInputService8TestCaseOperation1Output{} - req.Data = output return } @@ -1244,11 +1332,17 @@ type InputService8TestShapeInputService8TestCaseOperation1Input struct { ListParam []*string `locationName:"item" type:"list" flattened:"true"` } +// SetListParam sets the ListParam field's value. +func (s *InputService8TestShapeInputService8TestCaseOperation1Input) SetListParam(v []*string) *InputService8TestShapeInputService8TestCaseOperation1Input { + s.ListParam = v + return s +} + type InputService8TestShapeInputService8TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService9ProtocolTest struct { *client.Client @@ -1266,16 +1360,17 @@ type InputService9ProtocolTest struct { // svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest { c := p.ClientConfig("inputservice9protocoltest", cfgs...) - return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService9ProtocolTest { +func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService9ProtocolTest { svc := &InputService9ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice9protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1327,7 +1422,6 @@ const opInputService9TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input *InputService9TestShapeInputService9TestCaseOperation1Input) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService9TestCaseOperation1, @@ -1339,11 +1433,10 @@ func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input input = &InputService9TestShapeInputService9TestCaseOperation1Input{} } + output = &InputService9TestShapeInputService9TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService9TestShapeInputService9TestCaseOperation1Output{} - req.Data = output return } @@ -1367,6 +1460,12 @@ type InputService9TestShapeInputService9TestCaseOperation1Input struct { ListParam []*InputService9TestShapeSingleFieldStruct `locationName:"item" type:"list" flattened:"true"` } +// SetListParam sets the ListParam field's value. +func (s *InputService9TestShapeInputService9TestCaseOperation1Input) SetListParam(v []*InputService9TestShapeSingleFieldStruct) *InputService9TestShapeInputService9TestCaseOperation1Input { + s.ListParam = v + return s +} + type InputService9TestShapeInputService9TestCaseOperation1Output struct { _ struct{} `type:"structure"` } @@ -1377,7 +1476,13 @@ type InputService9TestShapeSingleFieldStruct struct { Element *string `locationName:"value" type:"string"` } -//The service client's operations are safe to be used concurrently. +// SetElement sets the Element field's value. +func (s *InputService9TestShapeSingleFieldStruct) SetElement(v string) *InputService9TestShapeSingleFieldStruct { + s.Element = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService10ProtocolTest struct { *client.Client @@ -1395,16 +1500,17 @@ type InputService10ProtocolTest struct { // svc := inputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService10ProtocolTest { c := p.ClientConfig("inputservice10protocoltest", cfgs...) - return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService10ProtocolTest { +func newInputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService10ProtocolTest { svc := &InputService10ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice10protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1456,7 +1562,6 @@ const opInputService10TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(input *InputService10TestShapeInputService10TestCaseOperation1Input) (req *request.Request, output *InputService10TestShapeInputService10TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService10TestCaseOperation1, @@ -1468,11 +1573,10 @@ func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(inp input = &InputService10TestShapeInputService10TestCaseOperation1Input{} } + output = &InputService10TestShapeInputService10TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService10TestShapeInputService10TestCaseOperation1Output{} - req.Data = output return } @@ -1496,6 +1600,12 @@ type InputService10TestShapeInputService10TestCaseOperation1Input struct { StructureParam *InputService10TestShapeStructureShape `type:"structure"` } +// SetStructureParam sets the StructureParam field's value. +func (s *InputService10TestShapeInputService10TestCaseOperation1Input) SetStructureParam(v *InputService10TestShapeStructureShape) *InputService10TestShapeInputService10TestCaseOperation1Input { + s.StructureParam = v + return s +} + type InputService10TestShapeInputService10TestCaseOperation1Output struct { _ struct{} `type:"structure"` } @@ -1509,7 +1619,19 @@ type InputService10TestShapeStructureShape struct { T *time.Time `locationName:"t" type:"timestamp" timestampFormat:"iso8601"` } -//The service client's operations are safe to be used concurrently. +// SetB sets the B field's value. +func (s *InputService10TestShapeStructureShape) SetB(v []byte) *InputService10TestShapeStructureShape { + s.B = v + return s +} + +// SetT sets the T field's value. +func (s *InputService10TestShapeStructureShape) SetT(v time.Time) *InputService10TestShapeStructureShape { + s.T = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService11ProtocolTest struct { *client.Client @@ -1527,16 +1649,17 @@ type InputService11ProtocolTest struct { // svc := inputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService11ProtocolTest { c := p.ClientConfig("inputservice11protocoltest", cfgs...) - return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService11ProtocolTest { +func newInputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService11ProtocolTest { svc := &InputService11ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice11protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1588,7 +1711,6 @@ const opInputService11TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(input *InputService11TestShapeInputService11TestCaseOperation1Input) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService11TestCaseOperation1, @@ -1600,11 +1722,10 @@ func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(inp input = &InputService11TestShapeInputService11TestCaseOperation1Input{} } + output = &InputService11TestShapeInputService11TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService11TestShapeInputService11TestCaseOperation1Output{} - req.Data = output return } @@ -1628,11 +1749,17 @@ type InputService11TestShapeInputService11TestCaseOperation1Input struct { Foo map[string]*string `location:"headers" locationName:"x-foo-" type:"map"` } +// SetFoo sets the Foo field's value. +func (s *InputService11TestShapeInputService11TestCaseOperation1Input) SetFoo(v map[string]*string) *InputService11TestShapeInputService11TestCaseOperation1Input { + s.Foo = v + return s +} + type InputService11TestShapeInputService11TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService12ProtocolTest struct { *client.Client @@ -1650,16 +1777,17 @@ type InputService12ProtocolTest struct { // svc := inputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService12ProtocolTest { c := p.ClientConfig("inputservice12protocoltest", cfgs...) - return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService12ProtocolTest { +func newInputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService12ProtocolTest { svc := &InputService12ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice12protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1711,7 +1839,6 @@ const opInputService12TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(input *InputService12TestShapeInputService12TestCaseOperation1Input) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService12TestCaseOperation1, @@ -1723,11 +1850,10 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(inp input = &InputService12TestShapeInputService12TestCaseOperation1Input{} } + output = &InputService12TestShapeInputService12TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService12TestShapeInputService12TestCaseOperation1Output{} - req.Data = output return } @@ -1751,11 +1877,17 @@ type InputService12TestShapeInputService12TestCaseOperation1Input struct { Items []*string `location:"querystring" locationName:"item" type:"list"` } +// SetItems sets the Items field's value. +func (s *InputService12TestShapeInputService12TestCaseOperation1Input) SetItems(v []*string) *InputService12TestShapeInputService12TestCaseOperation1Input { + s.Items = v + return s +} + type InputService12TestShapeInputService12TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService13ProtocolTest struct { *client.Client @@ -1773,16 +1905,17 @@ type InputService13ProtocolTest struct { // svc := inputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService13ProtocolTest { c := p.ClientConfig("inputservice13protocoltest", cfgs...) - return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService13ProtocolTest { +func newInputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService13ProtocolTest { svc := &InputService13ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice13protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1834,7 +1967,6 @@ const opInputService13TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(input *InputService13TestShapeInputService13TestCaseOperation1Input) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService13TestCaseOperation1, @@ -1846,11 +1978,10 @@ func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(inp input = &InputService13TestShapeInputService13TestCaseOperation1Input{} } + output = &InputService13TestShapeInputService13TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService13TestShapeInputService13TestCaseOperation1Output{} - req.Data = output return } @@ -1876,11 +2007,23 @@ type InputService13TestShapeInputService13TestCaseOperation1Input struct { QueryDoc map[string]*string `location:"querystring" type:"map"` } +// SetPipelineId sets the PipelineId field's value. +func (s *InputService13TestShapeInputService13TestCaseOperation1Input) SetPipelineId(v string) *InputService13TestShapeInputService13TestCaseOperation1Input { + s.PipelineId = &v + return s +} + +// SetQueryDoc sets the QueryDoc field's value. +func (s *InputService13TestShapeInputService13TestCaseOperation1Input) SetQueryDoc(v map[string]*string) *InputService13TestShapeInputService13TestCaseOperation1Input { + s.QueryDoc = v + return s +} + type InputService13TestShapeInputService13TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService14ProtocolTest struct { *client.Client @@ -1898,16 +2041,17 @@ type InputService14ProtocolTest struct { // svc := inputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService14ProtocolTest { c := p.ClientConfig("inputservice14protocoltest", cfgs...) - return newInputService14ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService14ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService14ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService14ProtocolTest { +func newInputService14ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService14ProtocolTest { svc := &InputService14ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice14protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -1959,7 +2103,6 @@ const opInputService14TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService14ProtocolTest) InputService14TestCaseOperation1Request(input *InputService14TestShapeInputService14TestCaseOperation1Input) (req *request.Request, output *InputService14TestShapeInputService14TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService14TestCaseOperation1, @@ -1971,11 +2114,10 @@ func (c *InputService14ProtocolTest) InputService14TestCaseOperation1Request(inp input = &InputService14TestShapeInputService14TestCaseOperation1Input{} } + output = &InputService14TestShapeInputService14TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService14TestShapeInputService14TestCaseOperation1Output{} - req.Data = output return } @@ -2001,11 +2143,23 @@ type InputService14TestShapeInputService14TestCaseOperation1Input struct { QueryDoc map[string][]*string `location:"querystring" type:"map"` } +// SetPipelineId sets the PipelineId field's value. +func (s *InputService14TestShapeInputService14TestCaseOperation1Input) SetPipelineId(v string) *InputService14TestShapeInputService14TestCaseOperation1Input { + s.PipelineId = &v + return s +} + +// SetQueryDoc sets the QueryDoc field's value. +func (s *InputService14TestShapeInputService14TestCaseOperation1Input) SetQueryDoc(v map[string][]*string) *InputService14TestShapeInputService14TestCaseOperation1Input { + s.QueryDoc = v + return s +} + type InputService14TestShapeInputService14TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService15ProtocolTest struct { *client.Client @@ -2023,16 +2177,17 @@ type InputService15ProtocolTest struct { // svc := inputservice15protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService15ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService15ProtocolTest { c := p.ClientConfig("inputservice15protocoltest", cfgs...) - return newInputService15ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService15ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService15ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService15ProtocolTest { +func newInputService15ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService15ProtocolTest { svc := &InputService15ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice15protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -2084,23 +2239,21 @@ const opInputService15TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService15ProtocolTest) InputService15TestCaseOperation1Request(input *InputService15TestShapeInputService15TestCaseOperation1Input) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation1Output) { +func (c *InputService15ProtocolTest) InputService15TestCaseOperation1Request(input *InputService15TestShapeInputShape) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService15TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/", + HTTPMethod: "GET", + HTTPPath: "/path", } if input == nil { - input = &InputService15TestShapeInputService15TestCaseOperation1Input{} + input = &InputService15TestShapeInputShape{} } + output = &InputService15TestShapeInputService15TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService15TestShapeInputService15TestCaseOperation1Output{} - req.Data = output return } @@ -2112,23 +2265,90 @@ func (c *InputService15ProtocolTest) InputService15TestCaseOperation1Request(inp // // See the AWS API reference guide for 's // API operation InputService15TestCaseOperation1 for usage and error information. -func (c *InputService15ProtocolTest) InputService15TestCaseOperation1(input *InputService15TestShapeInputService15TestCaseOperation1Input) (*InputService15TestShapeInputService15TestCaseOperation1Output, error) { +func (c *InputService15ProtocolTest) InputService15TestCaseOperation1(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation1Output, error) { req, out := c.InputService15TestCaseOperation1Request(input) err := req.Send() return out, err } -type InputService15TestShapeInputService15TestCaseOperation1Input struct { - _ struct{} `type:"structure" payload:"Foo"` +const opInputService15TestCaseOperation2 = "OperationName" - Foo *string `locationName:"foo" type:"string"` +// InputService15TestCaseOperation2Request generates a "aws/request.Request" representing the +// client's request for the InputService15TestCaseOperation2 operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See InputService15TestCaseOperation2 for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the InputService15TestCaseOperation2 method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the InputService15TestCaseOperation2Request method. +// req, resp := client.InputService15TestCaseOperation2Request(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *InputService15ProtocolTest) InputService15TestCaseOperation2Request(input *InputService15TestShapeInputShape) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation2Output) { + op := &request.Operation{ + Name: opInputService15TestCaseOperation2, + HTTPMethod: "GET", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService15TestShapeInputShape{} + } + + output = &InputService15TestShapeInputService15TestCaseOperation2Output{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// InputService15TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService15TestCaseOperation2 for usage and error information. +func (c *InputService15ProtocolTest) InputService15TestCaseOperation2(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation2Output, error) { + req, out := c.InputService15TestCaseOperation2Request(input) + err := req.Send() + return out, err } type InputService15TestShapeInputService15TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +type InputService15TestShapeInputService15TestCaseOperation2Output struct { + _ struct{} `type:"structure"` +} + +type InputService15TestShapeInputShape struct { + _ struct{} `type:"structure"` + + BoolQuery *bool `location:"querystring" locationName:"bool-query" type:"boolean"` +} + +// SetBoolQuery sets the BoolQuery field's value. +func (s *InputService15TestShapeInputShape) SetBoolQuery(v bool) *InputService15TestShapeInputShape { + s.BoolQuery = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService16ProtocolTest struct { *client.Client @@ -2146,16 +2366,17 @@ type InputService16ProtocolTest struct { // svc := inputservice16protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService16ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService16ProtocolTest { c := p.ClientConfig("inputservice16protocoltest", cfgs...) - return newInputService16ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService16ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService16ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService16ProtocolTest { +func newInputService16ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService16ProtocolTest { svc := &InputService16ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice16protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -2207,8 +2428,7 @@ const opInputService16TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(input *InputService16TestShapeInputShape) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation1Output) { +func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(input *InputService16TestShapeInputService16TestCaseOperation1Input) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService16TestCaseOperation1, HTTPMethod: "POST", @@ -2216,14 +2436,13 @@ func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(inp } if input == nil { - input = &InputService16TestShapeInputShape{} + input = &InputService16TestShapeInputService16TestCaseOperation1Input{} } + output = &InputService16TestShapeInputService16TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService16TestShapeInputService16TestCaseOperation1Output{} - req.Data = output return } @@ -2235,86 +2454,29 @@ func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(inp // // See the AWS API reference guide for 's // API operation InputService16TestCaseOperation1 for usage and error information. -func (c *InputService16ProtocolTest) InputService16TestCaseOperation1(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) { +func (c *InputService16ProtocolTest) InputService16TestCaseOperation1(input *InputService16TestShapeInputService16TestCaseOperation1Input) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) { req, out := c.InputService16TestCaseOperation1Request(input) err := req.Send() return out, err } -const opInputService16TestCaseOperation2 = "OperationName" - -// InputService16TestCaseOperation2Request generates a "aws/request.Request" representing the -// client's request for the InputService16TestCaseOperation2 operation. The "output" return -// value can be used to capture response data after the request's "Send" method -// is called. -// -// See InputService16TestCaseOperation2 for usage and error information. -// -// Creating a request object using this method should be used when you want to inject -// custom logic into the request's lifecycle using a custom handler, or if you want to -// access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService16TestCaseOperation2 method directly -// instead. -// -// Note: You must call the "Send" method on the returned request object in order -// to execute the request. -// -// // Example sending a request using the InputService16TestCaseOperation2Request method. -// req, resp := client.InputService16TestCaseOperation2Request(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -func (c *InputService16ProtocolTest) InputService16TestCaseOperation2Request(input *InputService16TestShapeInputShape) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService16TestCaseOperation2, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &InputService16TestShapeInputShape{} - } +type InputService16TestShapeInputService16TestCaseOperation1Input struct { + _ struct{} `type:"structure" payload:"Foo"` - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService16TestShapeInputService16TestCaseOperation2Output{} - req.Data = output - return + Foo *string `locationName:"foo" type:"string"` } -// InputService16TestCaseOperation2 API operation for . -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for 's -// API operation InputService16TestCaseOperation2 for usage and error information. -func (c *InputService16ProtocolTest) InputService16TestCaseOperation2(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) { - req, out := c.InputService16TestCaseOperation2Request(input) - err := req.Send() - return out, err +// SetFoo sets the Foo field's value. +func (s *InputService16TestShapeInputService16TestCaseOperation1Input) SetFoo(v string) *InputService16TestShapeInputService16TestCaseOperation1Input { + s.Foo = &v + return s } type InputService16TestShapeInputService16TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -type InputService16TestShapeInputService16TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService16TestShapeInputShape struct { - _ struct{} `type:"structure" payload:"Foo"` - - Foo []byte `locationName:"foo" type:"blob"` -} - -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type InputService17ProtocolTest struct { *client.Client @@ -2332,16 +2494,17 @@ type InputService17ProtocolTest struct { // svc := inputservice17protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewInputService17ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService17ProtocolTest { c := p.ClientConfig("inputservice17protocoltest", cfgs...) - return newInputService17ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newInputService17ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService17ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService17ProtocolTest { +func newInputService17ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService17ProtocolTest { svc := &InputService17ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "inputservice17protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -2393,7 +2556,6 @@ const opInputService17TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService17ProtocolTest) InputService17TestCaseOperation1Request(input *InputService17TestShapeInputShape) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation1Output) { op := &request.Operation{ Name: opInputService17TestCaseOperation1, @@ -2405,11 +2567,10 @@ func (c *InputService17ProtocolTest) InputService17TestCaseOperation1Request(inp input = &InputService17TestShapeInputShape{} } + output = &InputService17TestShapeInputService17TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService17TestShapeInputService17TestCaseOperation1Output{} - req.Data = output return } @@ -2452,7 +2613,6 @@ const opInputService17TestCaseOperation2 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *InputService17ProtocolTest) InputService17TestCaseOperation2Request(input *InputService17TestShapeInputShape) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation2Output) { op := &request.Operation{ Name: opInputService17TestCaseOperation2, @@ -2464,11 +2624,10 @@ func (c *InputService17ProtocolTest) InputService17TestCaseOperation2Request(inp input = &InputService17TestShapeInputShape{} } + output = &InputService17TestShapeInputService17TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService17TestShapeInputService17TestCaseOperation2Output{} - req.Data = output return } @@ -2486,180 +2645,378 @@ func (c *InputService17ProtocolTest) InputService17TestCaseOperation2(input *Inp return out, err } -const opInputService17TestCaseOperation3 = "OperationName" +type InputService17TestShapeInputService17TestCaseOperation1Output struct { + _ struct{} `type:"structure"` +} -// InputService17TestCaseOperation3Request generates a "aws/request.Request" representing the -// client's request for the InputService17TestCaseOperation3 operation. The "output" return -// value can be used to capture response data after the request's "Send" method -// is called. -// -// See InputService17TestCaseOperation3 for usage and error information. -// -// Creating a request object using this method should be used when you want to inject -// custom logic into the request's lifecycle using a custom handler, or if you want to -// access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService17TestCaseOperation3 method directly -// instead. -// -// Note: You must call the "Send" method on the returned request object in order -// to execute the request. -// -// // Example sending a request using the InputService17TestCaseOperation3Request method. -// req, resp := client.InputService17TestCaseOperation3Request(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -func (c *InputService17ProtocolTest) InputService17TestCaseOperation3Request(input *InputService17TestShapeInputShape) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation3Output) { - op := &request.Operation{ - Name: opInputService17TestCaseOperation3, - HTTPMethod: "POST", - HTTPPath: "/", - } +type InputService17TestShapeInputService17TestCaseOperation2Output struct { + _ struct{} `type:"structure"` +} - if input == nil { - input = &InputService17TestShapeInputShape{} - } +type InputService17TestShapeInputShape struct { + _ struct{} `type:"structure" payload:"Foo"` + Foo []byte `locationName:"foo" type:"blob"` +} + +// SetFoo sets the Foo field's value. +func (s *InputService17TestShapeInputShape) SetFoo(v []byte) *InputService17TestShapeInputShape { + s.Foo = v + return s +} + +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +type InputService18ProtocolTest struct { + *client.Client +} + +// New creates a new instance of the InputService18ProtocolTest client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a InputService18ProtocolTest client from just a session. +// svc := inputservice18protocoltest.New(mySession) +// +// // Create a InputService18ProtocolTest client with additional configuration +// svc := inputservice18protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func NewInputService18ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService18ProtocolTest { + c := p.ClientConfig("inputservice18protocoltest", cfgs...) + return newInputService18ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newInputService18ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService18ProtocolTest { + svc := &InputService18ProtocolTest{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: "inputservice18protocoltest", + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2014-01-01", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) + + return svc +} + +// newRequest creates a new request for a InputService18ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService18ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService18TestCaseOperation1 = "OperationName" + +// InputService18TestCaseOperation1Request generates a "aws/request.Request" representing the +// client's request for the InputService18TestCaseOperation1 operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See InputService18TestCaseOperation1 for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the InputService18TestCaseOperation1 method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the InputService18TestCaseOperation1Request method. +// req, resp := client.InputService18TestCaseOperation1Request(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *InputService18ProtocolTest) InputService18TestCaseOperation1Request(input *InputService18TestShapeInputShape) (req *request.Request, output *InputService18TestShapeInputService18TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService18TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &InputService18TestShapeInputShape{} + } + + output = &InputService18TestShapeInputService18TestCaseOperation1Output{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// InputService18TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService18TestCaseOperation1 for usage and error information. +func (c *InputService18ProtocolTest) InputService18TestCaseOperation1(input *InputService18TestShapeInputShape) (*InputService18TestShapeInputService18TestCaseOperation1Output, error) { + req, out := c.InputService18TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +const opInputService18TestCaseOperation2 = "OperationName" + +// InputService18TestCaseOperation2Request generates a "aws/request.Request" representing the +// client's request for the InputService18TestCaseOperation2 operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See InputService18TestCaseOperation2 for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the InputService18TestCaseOperation2 method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the InputService18TestCaseOperation2Request method. +// req, resp := client.InputService18TestCaseOperation2Request(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *InputService18ProtocolTest) InputService18TestCaseOperation2Request(input *InputService18TestShapeInputShape) (req *request.Request, output *InputService18TestShapeInputService18TestCaseOperation2Output) { + op := &request.Operation{ + Name: opInputService18TestCaseOperation2, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &InputService18TestShapeInputShape{} + } + + output = &InputService18TestShapeInputService18TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService17TestShapeInputService17TestCaseOperation3Output{} - req.Data = output return } -// InputService17TestCaseOperation3 API operation for . +// InputService18TestCaseOperation2 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService17TestCaseOperation3 for usage and error information. -func (c *InputService17ProtocolTest) InputService17TestCaseOperation3(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation3Output, error) { - req, out := c.InputService17TestCaseOperation3Request(input) +// API operation InputService18TestCaseOperation2 for usage and error information. +func (c *InputService18ProtocolTest) InputService18TestCaseOperation2(input *InputService18TestShapeInputShape) (*InputService18TestShapeInputService18TestCaseOperation2Output, error) { + req, out := c.InputService18TestCaseOperation2Request(input) err := req.Send() return out, err } -const opInputService17TestCaseOperation4 = "OperationName" +const opInputService18TestCaseOperation3 = "OperationName" -// InputService17TestCaseOperation4Request generates a "aws/request.Request" representing the -// client's request for the InputService17TestCaseOperation4 operation. The "output" return +// InputService18TestCaseOperation3Request generates a "aws/request.Request" representing the +// client's request for the InputService18TestCaseOperation3 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService17TestCaseOperation4 for usage and error information. +// See InputService18TestCaseOperation3 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService17TestCaseOperation4 method directly +// you just want the service response, call the InputService18TestCaseOperation3 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService17TestCaseOperation4Request method. -// req, resp := client.InputService17TestCaseOperation4Request(params) +// // Example sending a request using the InputService18TestCaseOperation3Request method. +// req, resp := client.InputService18TestCaseOperation3Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } +func (c *InputService18ProtocolTest) InputService18TestCaseOperation3Request(input *InputService18TestShapeInputShape) (req *request.Request, output *InputService18TestShapeInputService18TestCaseOperation3Output) { + op := &request.Operation{ + Name: opInputService18TestCaseOperation3, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &InputService18TestShapeInputShape{} + } + + output = &InputService18TestShapeInputService18TestCaseOperation3Output{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// InputService18TestCaseOperation3 API operation for . // -func (c *InputService17ProtocolTest) InputService17TestCaseOperation4Request(input *InputService17TestShapeInputShape) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation4Output) { +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService18TestCaseOperation3 for usage and error information. +func (c *InputService18ProtocolTest) InputService18TestCaseOperation3(input *InputService18TestShapeInputShape) (*InputService18TestShapeInputService18TestCaseOperation3Output, error) { + req, out := c.InputService18TestCaseOperation3Request(input) + err := req.Send() + return out, err +} + +const opInputService18TestCaseOperation4 = "OperationName" + +// InputService18TestCaseOperation4Request generates a "aws/request.Request" representing the +// client's request for the InputService18TestCaseOperation4 operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See InputService18TestCaseOperation4 for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the InputService18TestCaseOperation4 method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the InputService18TestCaseOperation4Request method. +// req, resp := client.InputService18TestCaseOperation4Request(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *InputService18ProtocolTest) InputService18TestCaseOperation4Request(input *InputService18TestShapeInputShape) (req *request.Request, output *InputService18TestShapeInputService18TestCaseOperation4Output) { op := &request.Operation{ - Name: opInputService17TestCaseOperation4, + Name: opInputService18TestCaseOperation4, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &InputService17TestShapeInputShape{} + input = &InputService18TestShapeInputShape{} } + output = &InputService18TestShapeInputService18TestCaseOperation4Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService17TestShapeInputService17TestCaseOperation4Output{} - req.Data = output return } -// InputService17TestCaseOperation4 API operation for . +// InputService18TestCaseOperation4 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService17TestCaseOperation4 for usage and error information. -func (c *InputService17ProtocolTest) InputService17TestCaseOperation4(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation4Output, error) { - req, out := c.InputService17TestCaseOperation4Request(input) +// API operation InputService18TestCaseOperation4 for usage and error information. +func (c *InputService18ProtocolTest) InputService18TestCaseOperation4(input *InputService18TestShapeInputShape) (*InputService18TestShapeInputService18TestCaseOperation4Output, error) { + req, out := c.InputService18TestCaseOperation4Request(input) err := req.Send() return out, err } -type InputService17TestShapeFooShape struct { +type InputService18TestShapeFooShape struct { _ struct{} `locationName:"foo" type:"structure"` Baz *string `locationName:"baz" type:"string"` } -type InputService17TestShapeInputService17TestCaseOperation1Output struct { +// SetBaz sets the Baz field's value. +func (s *InputService18TestShapeFooShape) SetBaz(v string) *InputService18TestShapeFooShape { + s.Baz = &v + return s +} + +type InputService18TestShapeInputService18TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -type InputService17TestShapeInputService17TestCaseOperation2Output struct { +type InputService18TestShapeInputService18TestCaseOperation2Output struct { _ struct{} `type:"structure"` } -type InputService17TestShapeInputService17TestCaseOperation3Output struct { +type InputService18TestShapeInputService18TestCaseOperation3Output struct { _ struct{} `type:"structure"` } -type InputService17TestShapeInputService17TestCaseOperation4Output struct { +type InputService18TestShapeInputService18TestCaseOperation4Output struct { _ struct{} `type:"structure"` } -type InputService17TestShapeInputShape struct { +type InputService18TestShapeInputShape struct { _ struct{} `type:"structure" payload:"Foo"` - Foo *InputService17TestShapeFooShape `locationName:"foo" type:"structure"` + Foo *InputService18TestShapeFooShape `locationName:"foo" type:"structure"` +} + +// SetFoo sets the Foo field's value. +func (s *InputService18TestShapeInputShape) SetFoo(v *InputService18TestShapeFooShape) *InputService18TestShapeInputShape { + s.Foo = v + return s } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. -type InputService18ProtocolTest struct { +type InputService19ProtocolTest struct { *client.Client } -// New creates a new instance of the InputService18ProtocolTest client with a session. +// New creates a new instance of the InputService19ProtocolTest client with a session. // If additional configuration is needed for the client instance use the optional // aws.Config parameter to add your extra config. // // Example: -// // Create a InputService18ProtocolTest client from just a session. -// svc := inputservice18protocoltest.New(mySession) +// // Create a InputService19ProtocolTest client from just a session. +// svc := inputservice19protocoltest.New(mySession) // -// // Create a InputService18ProtocolTest client with additional configuration -// svc := inputservice18protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService18ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService18ProtocolTest { - c := p.ClientConfig("inputservice18protocoltest", cfgs...) - return newInputService18ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) +// // Create a InputService19ProtocolTest client with additional configuration +// svc := inputservice19protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func NewInputService19ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService19ProtocolTest { + c := p.ClientConfig("inputservice19protocoltest", cfgs...) + return newInputService19ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService18ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService18ProtocolTest { - svc := &InputService18ProtocolTest{ +func newInputService19ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService19ProtocolTest { + svc := &InputService19ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ - ServiceName: "inputservice18protocoltest", + ServiceName: "inputservice19protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -2678,80 +3035,84 @@ func newInputService18ProtocolTestClient(cfg aws.Config, handlers request.Handle return svc } -// newRequest creates a new request for a InputService18ProtocolTest operation and runs any +// newRequest creates a new request for a InputService19ProtocolTest operation and runs any // custom request initialization. -func (c *InputService18ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { +func (c *InputService19ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { req := c.NewRequest(op, params, data) return req } -const opInputService18TestCaseOperation1 = "OperationName" +const opInputService19TestCaseOperation1 = "OperationName" -// InputService18TestCaseOperation1Request generates a "aws/request.Request" representing the -// client's request for the InputService18TestCaseOperation1 operation. The "output" return +// InputService19TestCaseOperation1Request generates a "aws/request.Request" representing the +// client's request for the InputService19TestCaseOperation1 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService18TestCaseOperation1 for usage and error information. +// See InputService19TestCaseOperation1 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService18TestCaseOperation1 method directly +// you just want the service response, call the InputService19TestCaseOperation1 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService18TestCaseOperation1Request method. -// req, resp := client.InputService18TestCaseOperation1Request(params) +// // Example sending a request using the InputService19TestCaseOperation1Request method. +// req, resp := client.InputService19TestCaseOperation1Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService18ProtocolTest) InputService18TestCaseOperation1Request(input *InputService18TestShapeInputService18TestCaseOperation1Input) (req *request.Request, output *InputService18TestShapeInputService18TestCaseOperation1Output) { +func (c *InputService19ProtocolTest) InputService19TestCaseOperation1Request(input *InputService19TestShapeInputService19TestCaseOperation1Input) (req *request.Request, output *InputService19TestShapeInputService19TestCaseOperation1Output) { op := &request.Operation{ - Name: opInputService18TestCaseOperation1, + Name: opInputService19TestCaseOperation1, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &InputService18TestShapeInputService18TestCaseOperation1Input{} + input = &InputService19TestShapeInputService19TestCaseOperation1Input{} } + output = &InputService19TestShapeInputService19TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService18TestShapeInputService18TestCaseOperation1Output{} - req.Data = output return } -// InputService18TestCaseOperation1 API operation for . +// InputService19TestCaseOperation1 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService18TestCaseOperation1 for usage and error information. -func (c *InputService18ProtocolTest) InputService18TestCaseOperation1(input *InputService18TestShapeInputService18TestCaseOperation1Input) (*InputService18TestShapeInputService18TestCaseOperation1Output, error) { - req, out := c.InputService18TestCaseOperation1Request(input) +// API operation InputService19TestCaseOperation1 for usage and error information. +func (c *InputService19ProtocolTest) InputService19TestCaseOperation1(input *InputService19TestShapeInputService19TestCaseOperation1Input) (*InputService19TestShapeInputService19TestCaseOperation1Output, error) { + req, out := c.InputService19TestCaseOperation1Request(input) err := req.Send() return out, err } -type InputService18TestShapeGrant struct { +type InputService19TestShapeGrant struct { _ struct{} `locationName:"Grant" type:"structure"` - Grantee *InputService18TestShapeGrantee `type:"structure"` + Grantee *InputService19TestShapeGrantee `type:"structure"` } -type InputService18TestShapeGrantee struct { +// SetGrantee sets the Grantee field's value. +func (s *InputService19TestShapeGrant) SetGrantee(v *InputService19TestShapeGrantee) *InputService19TestShapeGrant { + s.Grantee = v + return s +} + +type InputService19TestShapeGrantee struct { _ struct{} `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"` EmailAddress *string `type:"string"` @@ -2759,44 +3120,63 @@ type InputService18TestShapeGrantee struct { Type *string `locationName:"xsi:type" type:"string" xmlAttribute:"true"` } -type InputService18TestShapeInputService18TestCaseOperation1Input struct { +// SetEmailAddress sets the EmailAddress field's value. +func (s *InputService19TestShapeGrantee) SetEmailAddress(v string) *InputService19TestShapeGrantee { + s.EmailAddress = &v + return s +} + +// SetType sets the Type field's value. +func (s *InputService19TestShapeGrantee) SetType(v string) *InputService19TestShapeGrantee { + s.Type = &v + return s +} + +type InputService19TestShapeInputService19TestCaseOperation1Input struct { _ struct{} `type:"structure" payload:"Grant"` - Grant *InputService18TestShapeGrant `locationName:"Grant" type:"structure"` + Grant *InputService19TestShapeGrant `locationName:"Grant" type:"structure"` } -type InputService18TestShapeInputService18TestCaseOperation1Output struct { +// SetGrant sets the Grant field's value. +func (s *InputService19TestShapeInputService19TestCaseOperation1Input) SetGrant(v *InputService19TestShapeGrant) *InputService19TestShapeInputService19TestCaseOperation1Input { + s.Grant = v + return s +} + +type InputService19TestShapeInputService19TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. -type InputService19ProtocolTest struct { +type InputService20ProtocolTest struct { *client.Client } -// New creates a new instance of the InputService19ProtocolTest client with a session. +// New creates a new instance of the InputService20ProtocolTest client with a session. // If additional configuration is needed for the client instance use the optional // aws.Config parameter to add your extra config. // // Example: -// // Create a InputService19ProtocolTest client from just a session. -// svc := inputservice19protocoltest.New(mySession) +// // Create a InputService20ProtocolTest client from just a session. +// svc := inputservice20protocoltest.New(mySession) // -// // Create a InputService19ProtocolTest client with additional configuration -// svc := inputservice19protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService19ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService19ProtocolTest { - c := p.ClientConfig("inputservice19protocoltest", cfgs...) - return newInputService19ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) +// // Create a InputService20ProtocolTest client with additional configuration +// svc := inputservice20protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func NewInputService20ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService20ProtocolTest { + c := p.ClientConfig("inputservice20protocoltest", cfgs...) + return newInputService20ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService19ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService19ProtocolTest { - svc := &InputService19ProtocolTest{ +func newInputService20ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService20ProtocolTest { + svc := &InputService20ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ - ServiceName: "inputservice19protocoltest", + ServiceName: "inputservice20protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -2815,74 +3195,72 @@ func newInputService19ProtocolTestClient(cfg aws.Config, handlers request.Handle return svc } -// newRequest creates a new request for a InputService19ProtocolTest operation and runs any +// newRequest creates a new request for a InputService20ProtocolTest operation and runs any // custom request initialization. -func (c *InputService19ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { +func (c *InputService20ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { req := c.NewRequest(op, params, data) return req } -const opInputService19TestCaseOperation1 = "OperationName" +const opInputService20TestCaseOperation1 = "OperationName" -// InputService19TestCaseOperation1Request generates a "aws/request.Request" representing the -// client's request for the InputService19TestCaseOperation1 operation. The "output" return +// InputService20TestCaseOperation1Request generates a "aws/request.Request" representing the +// client's request for the InputService20TestCaseOperation1 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService19TestCaseOperation1 for usage and error information. +// See InputService20TestCaseOperation1 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService19TestCaseOperation1 method directly +// you just want the service response, call the InputService20TestCaseOperation1 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService19TestCaseOperation1Request method. -// req, resp := client.InputService19TestCaseOperation1Request(params) +// // Example sending a request using the InputService20TestCaseOperation1Request method. +// req, resp := client.InputService20TestCaseOperation1Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService19ProtocolTest) InputService19TestCaseOperation1Request(input *InputService19TestShapeInputService19TestCaseOperation1Input) (req *request.Request, output *InputService19TestShapeInputService19TestCaseOperation1Output) { +func (c *InputService20ProtocolTest) InputService20TestCaseOperation1Request(input *InputService20TestShapeInputService20TestCaseOperation1Input) (req *request.Request, output *InputService20TestShapeInputService20TestCaseOperation1Output) { op := &request.Operation{ - Name: opInputService19TestCaseOperation1, + Name: opInputService20TestCaseOperation1, HTTPMethod: "GET", HTTPPath: "/{Bucket}/{Key+}", } if input == nil { - input = &InputService19TestShapeInputService19TestCaseOperation1Input{} + input = &InputService20TestShapeInputService20TestCaseOperation1Input{} } + output = &InputService20TestShapeInputService20TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService19TestShapeInputService19TestCaseOperation1Output{} - req.Data = output return } -// InputService19TestCaseOperation1 API operation for . +// InputService20TestCaseOperation1 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService19TestCaseOperation1 for usage and error information. -func (c *InputService19ProtocolTest) InputService19TestCaseOperation1(input *InputService19TestShapeInputService19TestCaseOperation1Input) (*InputService19TestShapeInputService19TestCaseOperation1Output, error) { - req, out := c.InputService19TestCaseOperation1Request(input) +// API operation InputService20TestCaseOperation1 for usage and error information. +func (c *InputService20ProtocolTest) InputService20TestCaseOperation1(input *InputService20TestShapeInputService20TestCaseOperation1Input) (*InputService20TestShapeInputService20TestCaseOperation1Output, error) { + req, out := c.InputService20TestCaseOperation1Request(input) err := req.Send() return out, err } -type InputService19TestShapeInputService19TestCaseOperation1Input struct { +type InputService20TestShapeInputService20TestCaseOperation1Input struct { _ struct{} `type:"structure"` Bucket *string `location:"uri" type:"string"` @@ -2890,38 +3268,51 @@ type InputService19TestShapeInputService19TestCaseOperation1Input struct { Key *string `location:"uri" type:"string"` } -type InputService19TestShapeInputService19TestCaseOperation1Output struct { +// SetBucket sets the Bucket field's value. +func (s *InputService20TestShapeInputService20TestCaseOperation1Input) SetBucket(v string) *InputService20TestShapeInputService20TestCaseOperation1Input { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *InputService20TestShapeInputService20TestCaseOperation1Input) SetKey(v string) *InputService20TestShapeInputService20TestCaseOperation1Input { + s.Key = &v + return s +} + +type InputService20TestShapeInputService20TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. -type InputService20ProtocolTest struct { +type InputService21ProtocolTest struct { *client.Client } -// New creates a new instance of the InputService20ProtocolTest client with a session. +// New creates a new instance of the InputService21ProtocolTest client with a session. // If additional configuration is needed for the client instance use the optional // aws.Config parameter to add your extra config. // // Example: -// // Create a InputService20ProtocolTest client from just a session. -// svc := inputservice20protocoltest.New(mySession) +// // Create a InputService21ProtocolTest client from just a session. +// svc := inputservice21protocoltest.New(mySession) // -// // Create a InputService20ProtocolTest client with additional configuration -// svc := inputservice20protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService20ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService20ProtocolTest { - c := p.ClientConfig("inputservice20protocoltest", cfgs...) - return newInputService20ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) +// // Create a InputService21ProtocolTest client with additional configuration +// svc := inputservice21protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func NewInputService21ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService21ProtocolTest { + c := p.ClientConfig("inputservice21protocoltest", cfgs...) + return newInputService21ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService20ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService20ProtocolTest { - svc := &InputService20ProtocolTest{ +func newInputService21ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService21ProtocolTest { + svc := &InputService21ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ - ServiceName: "inputservice20protocoltest", + ServiceName: "inputservice21protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -2940,174 +3331,177 @@ func newInputService20ProtocolTestClient(cfg aws.Config, handlers request.Handle return svc } -// newRequest creates a new request for a InputService20ProtocolTest operation and runs any +// newRequest creates a new request for a InputService21ProtocolTest operation and runs any // custom request initialization. -func (c *InputService20ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { +func (c *InputService21ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { req := c.NewRequest(op, params, data) return req } -const opInputService20TestCaseOperation1 = "OperationName" +const opInputService21TestCaseOperation1 = "OperationName" -// InputService20TestCaseOperation1Request generates a "aws/request.Request" representing the -// client's request for the InputService20TestCaseOperation1 operation. The "output" return +// InputService21TestCaseOperation1Request generates a "aws/request.Request" representing the +// client's request for the InputService21TestCaseOperation1 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService20TestCaseOperation1 for usage and error information. +// See InputService21TestCaseOperation1 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService20TestCaseOperation1 method directly +// you just want the service response, call the InputService21TestCaseOperation1 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService20TestCaseOperation1Request method. -// req, resp := client.InputService20TestCaseOperation1Request(params) +// // Example sending a request using the InputService21TestCaseOperation1Request method. +// req, resp := client.InputService21TestCaseOperation1Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService20ProtocolTest) InputService20TestCaseOperation1Request(input *InputService20TestShapeInputShape) (req *request.Request, output *InputService20TestShapeInputService20TestCaseOperation1Output) { +func (c *InputService21ProtocolTest) InputService21TestCaseOperation1Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation1Output) { op := &request.Operation{ - Name: opInputService20TestCaseOperation1, + Name: opInputService21TestCaseOperation1, HTTPMethod: "POST", HTTPPath: "/path", } if input == nil { - input = &InputService20TestShapeInputShape{} + input = &InputService21TestShapeInputShape{} } + output = &InputService21TestShapeInputService21TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService20TestShapeInputService20TestCaseOperation1Output{} - req.Data = output return } -// InputService20TestCaseOperation1 API operation for . +// InputService21TestCaseOperation1 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService20TestCaseOperation1 for usage and error information. -func (c *InputService20ProtocolTest) InputService20TestCaseOperation1(input *InputService20TestShapeInputShape) (*InputService20TestShapeInputService20TestCaseOperation1Output, error) { - req, out := c.InputService20TestCaseOperation1Request(input) +// API operation InputService21TestCaseOperation1 for usage and error information. +func (c *InputService21ProtocolTest) InputService21TestCaseOperation1(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation1Output, error) { + req, out := c.InputService21TestCaseOperation1Request(input) err := req.Send() return out, err } -const opInputService20TestCaseOperation2 = "OperationName" +const opInputService21TestCaseOperation2 = "OperationName" -// InputService20TestCaseOperation2Request generates a "aws/request.Request" representing the -// client's request for the InputService20TestCaseOperation2 operation. The "output" return +// InputService21TestCaseOperation2Request generates a "aws/request.Request" representing the +// client's request for the InputService21TestCaseOperation2 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService20TestCaseOperation2 for usage and error information. +// See InputService21TestCaseOperation2 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService20TestCaseOperation2 method directly +// you just want the service response, call the InputService21TestCaseOperation2 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService20TestCaseOperation2Request method. -// req, resp := client.InputService20TestCaseOperation2Request(params) +// // Example sending a request using the InputService21TestCaseOperation2Request method. +// req, resp := client.InputService21TestCaseOperation2Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService20ProtocolTest) InputService20TestCaseOperation2Request(input *InputService20TestShapeInputShape) (req *request.Request, output *InputService20TestShapeInputService20TestCaseOperation2Output) { +func (c *InputService21ProtocolTest) InputService21TestCaseOperation2Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation2Output) { op := &request.Operation{ - Name: opInputService20TestCaseOperation2, + Name: opInputService21TestCaseOperation2, HTTPMethod: "POST", HTTPPath: "/path?abc=mno", } if input == nil { - input = &InputService20TestShapeInputShape{} + input = &InputService21TestShapeInputShape{} } + output = &InputService21TestShapeInputService21TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService20TestShapeInputService20TestCaseOperation2Output{} - req.Data = output return } -// InputService20TestCaseOperation2 API operation for . +// InputService21TestCaseOperation2 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService20TestCaseOperation2 for usage and error information. -func (c *InputService20ProtocolTest) InputService20TestCaseOperation2(input *InputService20TestShapeInputShape) (*InputService20TestShapeInputService20TestCaseOperation2Output, error) { - req, out := c.InputService20TestCaseOperation2Request(input) +// API operation InputService21TestCaseOperation2 for usage and error information. +func (c *InputService21ProtocolTest) InputService21TestCaseOperation2(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation2Output, error) { + req, out := c.InputService21TestCaseOperation2Request(input) err := req.Send() return out, err } -type InputService20TestShapeInputService20TestCaseOperation1Output struct { +type InputService21TestShapeInputService21TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -type InputService20TestShapeInputService20TestCaseOperation2Output struct { +type InputService21TestShapeInputService21TestCaseOperation2Output struct { _ struct{} `type:"structure"` } -type InputService20TestShapeInputShape struct { +type InputService21TestShapeInputShape struct { _ struct{} `type:"structure"` Foo *string `location:"querystring" locationName:"param-name" type:"string"` } -//The service client's operations are safe to be used concurrently. +// SetFoo sets the Foo field's value. +func (s *InputService21TestShapeInputShape) SetFoo(v string) *InputService21TestShapeInputShape { + s.Foo = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. -type InputService21ProtocolTest struct { +type InputService22ProtocolTest struct { *client.Client } -// New creates a new instance of the InputService21ProtocolTest client with a session. +// New creates a new instance of the InputService22ProtocolTest client with a session. // If additional configuration is needed for the client instance use the optional // aws.Config parameter to add your extra config. // // Example: -// // Create a InputService21ProtocolTest client from just a session. -// svc := inputservice21protocoltest.New(mySession) +// // Create a InputService22ProtocolTest client from just a session. +// svc := inputservice22protocoltest.New(mySession) // -// // Create a InputService21ProtocolTest client with additional configuration -// svc := inputservice21protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService21ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService21ProtocolTest { - c := p.ClientConfig("inputservice21protocoltest", cfgs...) - return newInputService21ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) +// // Create a InputService22ProtocolTest client with additional configuration +// svc := inputservice22protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func NewInputService22ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService22ProtocolTest { + c := p.ClientConfig("inputservice22protocoltest", cfgs...) + return newInputService22ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService21ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService21ProtocolTest { - svc := &InputService21ProtocolTest{ +func newInputService22ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService22ProtocolTest { + svc := &InputService22ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ - ServiceName: "inputservice21protocoltest", + ServiceName: "inputservice22protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -3126,438 +3520,457 @@ func newInputService21ProtocolTestClient(cfg aws.Config, handlers request.Handle return svc } -// newRequest creates a new request for a InputService21ProtocolTest operation and runs any +// newRequest creates a new request for a InputService22ProtocolTest operation and runs any // custom request initialization. -func (c *InputService21ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { +func (c *InputService22ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { req := c.NewRequest(op, params, data) return req } -const opInputService21TestCaseOperation1 = "OperationName" +const opInputService22TestCaseOperation1 = "OperationName" -// InputService21TestCaseOperation1Request generates a "aws/request.Request" representing the -// client's request for the InputService21TestCaseOperation1 operation. The "output" return +// InputService22TestCaseOperation1Request generates a "aws/request.Request" representing the +// client's request for the InputService22TestCaseOperation1 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService21TestCaseOperation1 for usage and error information. +// See InputService22TestCaseOperation1 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService21TestCaseOperation1 method directly +// you just want the service response, call the InputService22TestCaseOperation1 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService21TestCaseOperation1Request method. -// req, resp := client.InputService21TestCaseOperation1Request(params) +// // Example sending a request using the InputService22TestCaseOperation1Request method. +// req, resp := client.InputService22TestCaseOperation1Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService21ProtocolTest) InputService21TestCaseOperation1Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation1Output) { +func (c *InputService22ProtocolTest) InputService22TestCaseOperation1Request(input *InputService22TestShapeInputShape) (req *request.Request, output *InputService22TestShapeInputService22TestCaseOperation1Output) { op := &request.Operation{ - Name: opInputService21TestCaseOperation1, + Name: opInputService22TestCaseOperation1, HTTPMethod: "POST", HTTPPath: "/path", } if input == nil { - input = &InputService21TestShapeInputShape{} + input = &InputService22TestShapeInputShape{} } + output = &InputService22TestShapeInputService22TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService21TestShapeInputService21TestCaseOperation1Output{} - req.Data = output return } -// InputService21TestCaseOperation1 API operation for . +// InputService22TestCaseOperation1 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService21TestCaseOperation1 for usage and error information. -func (c *InputService21ProtocolTest) InputService21TestCaseOperation1(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation1Output, error) { - req, out := c.InputService21TestCaseOperation1Request(input) +// API operation InputService22TestCaseOperation1 for usage and error information. +func (c *InputService22ProtocolTest) InputService22TestCaseOperation1(input *InputService22TestShapeInputShape) (*InputService22TestShapeInputService22TestCaseOperation1Output, error) { + req, out := c.InputService22TestCaseOperation1Request(input) err := req.Send() return out, err } -const opInputService21TestCaseOperation2 = "OperationName" +const opInputService22TestCaseOperation2 = "OperationName" -// InputService21TestCaseOperation2Request generates a "aws/request.Request" representing the -// client's request for the InputService21TestCaseOperation2 operation. The "output" return +// InputService22TestCaseOperation2Request generates a "aws/request.Request" representing the +// client's request for the InputService22TestCaseOperation2 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService21TestCaseOperation2 for usage and error information. +// See InputService22TestCaseOperation2 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService21TestCaseOperation2 method directly +// you just want the service response, call the InputService22TestCaseOperation2 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService21TestCaseOperation2Request method. -// req, resp := client.InputService21TestCaseOperation2Request(params) +// // Example sending a request using the InputService22TestCaseOperation2Request method. +// req, resp := client.InputService22TestCaseOperation2Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService21ProtocolTest) InputService21TestCaseOperation2Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation2Output) { +func (c *InputService22ProtocolTest) InputService22TestCaseOperation2Request(input *InputService22TestShapeInputShape) (req *request.Request, output *InputService22TestShapeInputService22TestCaseOperation2Output) { op := &request.Operation{ - Name: opInputService21TestCaseOperation2, + Name: opInputService22TestCaseOperation2, HTTPMethod: "POST", HTTPPath: "/path", } if input == nil { - input = &InputService21TestShapeInputShape{} + input = &InputService22TestShapeInputShape{} } + output = &InputService22TestShapeInputService22TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService21TestShapeInputService21TestCaseOperation2Output{} - req.Data = output return } -// InputService21TestCaseOperation2 API operation for . +// InputService22TestCaseOperation2 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService21TestCaseOperation2 for usage and error information. -func (c *InputService21ProtocolTest) InputService21TestCaseOperation2(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation2Output, error) { - req, out := c.InputService21TestCaseOperation2Request(input) +// API operation InputService22TestCaseOperation2 for usage and error information. +func (c *InputService22ProtocolTest) InputService22TestCaseOperation2(input *InputService22TestShapeInputShape) (*InputService22TestShapeInputService22TestCaseOperation2Output, error) { + req, out := c.InputService22TestCaseOperation2Request(input) err := req.Send() return out, err } -const opInputService21TestCaseOperation3 = "OperationName" +const opInputService22TestCaseOperation3 = "OperationName" -// InputService21TestCaseOperation3Request generates a "aws/request.Request" representing the -// client's request for the InputService21TestCaseOperation3 operation. The "output" return +// InputService22TestCaseOperation3Request generates a "aws/request.Request" representing the +// client's request for the InputService22TestCaseOperation3 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService21TestCaseOperation3 for usage and error information. +// See InputService22TestCaseOperation3 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService21TestCaseOperation3 method directly +// you just want the service response, call the InputService22TestCaseOperation3 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService21TestCaseOperation3Request method. -// req, resp := client.InputService21TestCaseOperation3Request(params) +// // Example sending a request using the InputService22TestCaseOperation3Request method. +// req, resp := client.InputService22TestCaseOperation3Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService21ProtocolTest) InputService21TestCaseOperation3Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation3Output) { +func (c *InputService22ProtocolTest) InputService22TestCaseOperation3Request(input *InputService22TestShapeInputShape) (req *request.Request, output *InputService22TestShapeInputService22TestCaseOperation3Output) { op := &request.Operation{ - Name: opInputService21TestCaseOperation3, + Name: opInputService22TestCaseOperation3, HTTPMethod: "POST", HTTPPath: "/path", } if input == nil { - input = &InputService21TestShapeInputShape{} + input = &InputService22TestShapeInputShape{} } + output = &InputService22TestShapeInputService22TestCaseOperation3Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService21TestShapeInputService21TestCaseOperation3Output{} - req.Data = output return } -// InputService21TestCaseOperation3 API operation for . +// InputService22TestCaseOperation3 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService21TestCaseOperation3 for usage and error information. -func (c *InputService21ProtocolTest) InputService21TestCaseOperation3(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation3Output, error) { - req, out := c.InputService21TestCaseOperation3Request(input) +// API operation InputService22TestCaseOperation3 for usage and error information. +func (c *InputService22ProtocolTest) InputService22TestCaseOperation3(input *InputService22TestShapeInputShape) (*InputService22TestShapeInputService22TestCaseOperation3Output, error) { + req, out := c.InputService22TestCaseOperation3Request(input) err := req.Send() return out, err } -const opInputService21TestCaseOperation4 = "OperationName" +const opInputService22TestCaseOperation4 = "OperationName" -// InputService21TestCaseOperation4Request generates a "aws/request.Request" representing the -// client's request for the InputService21TestCaseOperation4 operation. The "output" return +// InputService22TestCaseOperation4Request generates a "aws/request.Request" representing the +// client's request for the InputService22TestCaseOperation4 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService21TestCaseOperation4 for usage and error information. +// See InputService22TestCaseOperation4 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService21TestCaseOperation4 method directly +// you just want the service response, call the InputService22TestCaseOperation4 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService21TestCaseOperation4Request method. -// req, resp := client.InputService21TestCaseOperation4Request(params) +// // Example sending a request using the InputService22TestCaseOperation4Request method. +// req, resp := client.InputService22TestCaseOperation4Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService21ProtocolTest) InputService21TestCaseOperation4Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation4Output) { +func (c *InputService22ProtocolTest) InputService22TestCaseOperation4Request(input *InputService22TestShapeInputShape) (req *request.Request, output *InputService22TestShapeInputService22TestCaseOperation4Output) { op := &request.Operation{ - Name: opInputService21TestCaseOperation4, + Name: opInputService22TestCaseOperation4, HTTPMethod: "POST", HTTPPath: "/path", } if input == nil { - input = &InputService21TestShapeInputShape{} + input = &InputService22TestShapeInputShape{} } + output = &InputService22TestShapeInputService22TestCaseOperation4Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService21TestShapeInputService21TestCaseOperation4Output{} - req.Data = output return } -// InputService21TestCaseOperation4 API operation for . +// InputService22TestCaseOperation4 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService21TestCaseOperation4 for usage and error information. -func (c *InputService21ProtocolTest) InputService21TestCaseOperation4(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation4Output, error) { - req, out := c.InputService21TestCaseOperation4Request(input) +// API operation InputService22TestCaseOperation4 for usage and error information. +func (c *InputService22ProtocolTest) InputService22TestCaseOperation4(input *InputService22TestShapeInputShape) (*InputService22TestShapeInputService22TestCaseOperation4Output, error) { + req, out := c.InputService22TestCaseOperation4Request(input) err := req.Send() return out, err } -const opInputService21TestCaseOperation5 = "OperationName" +const opInputService22TestCaseOperation5 = "OperationName" -// InputService21TestCaseOperation5Request generates a "aws/request.Request" representing the -// client's request for the InputService21TestCaseOperation5 operation. The "output" return +// InputService22TestCaseOperation5Request generates a "aws/request.Request" representing the +// client's request for the InputService22TestCaseOperation5 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService21TestCaseOperation5 for usage and error information. +// See InputService22TestCaseOperation5 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService21TestCaseOperation5 method directly +// you just want the service response, call the InputService22TestCaseOperation5 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService21TestCaseOperation5Request method. -// req, resp := client.InputService21TestCaseOperation5Request(params) +// // Example sending a request using the InputService22TestCaseOperation5Request method. +// req, resp := client.InputService22TestCaseOperation5Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService21ProtocolTest) InputService21TestCaseOperation5Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation5Output) { +func (c *InputService22ProtocolTest) InputService22TestCaseOperation5Request(input *InputService22TestShapeInputShape) (req *request.Request, output *InputService22TestShapeInputService22TestCaseOperation5Output) { op := &request.Operation{ - Name: opInputService21TestCaseOperation5, + Name: opInputService22TestCaseOperation5, HTTPMethod: "POST", HTTPPath: "/path", } if input == nil { - input = &InputService21TestShapeInputShape{} + input = &InputService22TestShapeInputShape{} } + output = &InputService22TestShapeInputService22TestCaseOperation5Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService21TestShapeInputService21TestCaseOperation5Output{} - req.Data = output return } -// InputService21TestCaseOperation5 API operation for . +// InputService22TestCaseOperation5 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService21TestCaseOperation5 for usage and error information. -func (c *InputService21ProtocolTest) InputService21TestCaseOperation5(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation5Output, error) { - req, out := c.InputService21TestCaseOperation5Request(input) +// API operation InputService22TestCaseOperation5 for usage and error information. +func (c *InputService22ProtocolTest) InputService22TestCaseOperation5(input *InputService22TestShapeInputShape) (*InputService22TestShapeInputService22TestCaseOperation5Output, error) { + req, out := c.InputService22TestCaseOperation5Request(input) err := req.Send() return out, err } -const opInputService21TestCaseOperation6 = "OperationName" +const opInputService22TestCaseOperation6 = "OperationName" -// InputService21TestCaseOperation6Request generates a "aws/request.Request" representing the -// client's request for the InputService21TestCaseOperation6 operation. The "output" return +// InputService22TestCaseOperation6Request generates a "aws/request.Request" representing the +// client's request for the InputService22TestCaseOperation6 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService21TestCaseOperation6 for usage and error information. +// See InputService22TestCaseOperation6 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService21TestCaseOperation6 method directly +// you just want the service response, call the InputService22TestCaseOperation6 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService21TestCaseOperation6Request method. -// req, resp := client.InputService21TestCaseOperation6Request(params) +// // Example sending a request using the InputService22TestCaseOperation6Request method. +// req, resp := client.InputService22TestCaseOperation6Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService21ProtocolTest) InputService21TestCaseOperation6Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation6Output) { +func (c *InputService22ProtocolTest) InputService22TestCaseOperation6Request(input *InputService22TestShapeInputShape) (req *request.Request, output *InputService22TestShapeInputService22TestCaseOperation6Output) { op := &request.Operation{ - Name: opInputService21TestCaseOperation6, + Name: opInputService22TestCaseOperation6, HTTPMethod: "POST", HTTPPath: "/path", } if input == nil { - input = &InputService21TestShapeInputShape{} + input = &InputService22TestShapeInputShape{} } + output = &InputService22TestShapeInputService22TestCaseOperation6Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService21TestShapeInputService21TestCaseOperation6Output{} - req.Data = output return } -// InputService21TestCaseOperation6 API operation for . +// InputService22TestCaseOperation6 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService21TestCaseOperation6 for usage and error information. -func (c *InputService21ProtocolTest) InputService21TestCaseOperation6(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation6Output, error) { - req, out := c.InputService21TestCaseOperation6Request(input) +// API operation InputService22TestCaseOperation6 for usage and error information. +func (c *InputService22ProtocolTest) InputService22TestCaseOperation6(input *InputService22TestShapeInputShape) (*InputService22TestShapeInputService22TestCaseOperation6Output, error) { + req, out := c.InputService22TestCaseOperation6Request(input) err := req.Send() return out, err } -type InputService21TestShapeInputService21TestCaseOperation1Output struct { +type InputService22TestShapeInputService22TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -type InputService21TestShapeInputService21TestCaseOperation2Output struct { +type InputService22TestShapeInputService22TestCaseOperation2Output struct { _ struct{} `type:"structure"` } -type InputService21TestShapeInputService21TestCaseOperation3Output struct { +type InputService22TestShapeInputService22TestCaseOperation3Output struct { _ struct{} `type:"structure"` } -type InputService21TestShapeInputService21TestCaseOperation4Output struct { +type InputService22TestShapeInputService22TestCaseOperation4Output struct { _ struct{} `type:"structure"` } -type InputService21TestShapeInputService21TestCaseOperation5Output struct { +type InputService22TestShapeInputService22TestCaseOperation5Output struct { _ struct{} `type:"structure"` } -type InputService21TestShapeInputService21TestCaseOperation6Output struct { +type InputService22TestShapeInputService22TestCaseOperation6Output struct { _ struct{} `type:"structure"` } -type InputService21TestShapeInputShape struct { +type InputService22TestShapeInputShape struct { _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` - RecursiveStruct *InputService21TestShapeRecursiveStructType `type:"structure"` + RecursiveStruct *InputService22TestShapeRecursiveStructType `type:"structure"` +} + +// SetRecursiveStruct sets the RecursiveStruct field's value. +func (s *InputService22TestShapeInputShape) SetRecursiveStruct(v *InputService22TestShapeRecursiveStructType) *InputService22TestShapeInputShape { + s.RecursiveStruct = v + return s } -type InputService21TestShapeRecursiveStructType struct { +type InputService22TestShapeRecursiveStructType struct { _ struct{} `type:"structure"` NoRecurse *string `type:"string"` - RecursiveList []*InputService21TestShapeRecursiveStructType `type:"list"` + RecursiveList []*InputService22TestShapeRecursiveStructType `type:"list"` + + RecursiveMap map[string]*InputService22TestShapeRecursiveStructType `type:"map"` + + RecursiveStruct *InputService22TestShapeRecursiveStructType `type:"structure"` +} + +// SetNoRecurse sets the NoRecurse field's value. +func (s *InputService22TestShapeRecursiveStructType) SetNoRecurse(v string) *InputService22TestShapeRecursiveStructType { + s.NoRecurse = &v + return s +} + +// SetRecursiveList sets the RecursiveList field's value. +func (s *InputService22TestShapeRecursiveStructType) SetRecursiveList(v []*InputService22TestShapeRecursiveStructType) *InputService22TestShapeRecursiveStructType { + s.RecursiveList = v + return s +} - RecursiveMap map[string]*InputService21TestShapeRecursiveStructType `type:"map"` +// SetRecursiveMap sets the RecursiveMap field's value. +func (s *InputService22TestShapeRecursiveStructType) SetRecursiveMap(v map[string]*InputService22TestShapeRecursiveStructType) *InputService22TestShapeRecursiveStructType { + s.RecursiveMap = v + return s +} - RecursiveStruct *InputService21TestShapeRecursiveStructType `type:"structure"` +// SetRecursiveStruct sets the RecursiveStruct field's value. +func (s *InputService22TestShapeRecursiveStructType) SetRecursiveStruct(v *InputService22TestShapeRecursiveStructType) *InputService22TestShapeRecursiveStructType { + s.RecursiveStruct = v + return s } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. -type InputService22ProtocolTest struct { +type InputService23ProtocolTest struct { *client.Client } -// New creates a new instance of the InputService22ProtocolTest client with a session. +// New creates a new instance of the InputService23ProtocolTest client with a session. // If additional configuration is needed for the client instance use the optional // aws.Config parameter to add your extra config. // // Example: -// // Create a InputService22ProtocolTest client from just a session. -// svc := inputservice22protocoltest.New(mySession) +// // Create a InputService23ProtocolTest client from just a session. +// svc := inputservice23protocoltest.New(mySession) // -// // Create a InputService22ProtocolTest client with additional configuration -// svc := inputservice22protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService22ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService22ProtocolTest { - c := p.ClientConfig("inputservice22protocoltest", cfgs...) - return newInputService22ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) +// // Create a InputService23ProtocolTest client with additional configuration +// svc := inputservice23protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func NewInputService23ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService23ProtocolTest { + c := p.ClientConfig("inputservice23protocoltest", cfgs...) + return newInputService23ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService22ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService22ProtocolTest { - svc := &InputService22ProtocolTest{ +func newInputService23ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService23ProtocolTest { + svc := &InputService23ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ - ServiceName: "inputservice22protocoltest", + ServiceName: "inputservice23protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -3576,111 +3989,116 @@ func newInputService22ProtocolTestClient(cfg aws.Config, handlers request.Handle return svc } -// newRequest creates a new request for a InputService22ProtocolTest operation and runs any +// newRequest creates a new request for a InputService23ProtocolTest operation and runs any // custom request initialization. -func (c *InputService22ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { +func (c *InputService23ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { req := c.NewRequest(op, params, data) return req } -const opInputService22TestCaseOperation1 = "OperationName" +const opInputService23TestCaseOperation1 = "OperationName" -// InputService22TestCaseOperation1Request generates a "aws/request.Request" representing the -// client's request for the InputService22TestCaseOperation1 operation. The "output" return +// InputService23TestCaseOperation1Request generates a "aws/request.Request" representing the +// client's request for the InputService23TestCaseOperation1 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService22TestCaseOperation1 for usage and error information. +// See InputService23TestCaseOperation1 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService22TestCaseOperation1 method directly +// you just want the service response, call the InputService23TestCaseOperation1 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService22TestCaseOperation1Request method. -// req, resp := client.InputService22TestCaseOperation1Request(params) +// // Example sending a request using the InputService23TestCaseOperation1Request method. +// req, resp := client.InputService23TestCaseOperation1Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService22ProtocolTest) InputService22TestCaseOperation1Request(input *InputService22TestShapeInputService22TestCaseOperation1Input) (req *request.Request, output *InputService22TestShapeInputService22TestCaseOperation1Output) { +func (c *InputService23ProtocolTest) InputService23TestCaseOperation1Request(input *InputService23TestShapeInputService23TestCaseOperation1Input) (req *request.Request, output *InputService23TestShapeInputService23TestCaseOperation1Output) { op := &request.Operation{ - Name: opInputService22TestCaseOperation1, + Name: opInputService23TestCaseOperation1, HTTPMethod: "POST", HTTPPath: "/path", } if input == nil { - input = &InputService22TestShapeInputService22TestCaseOperation1Input{} + input = &InputService23TestShapeInputService23TestCaseOperation1Input{} } + output = &InputService23TestShapeInputService23TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService22TestShapeInputService22TestCaseOperation1Output{} - req.Data = output return } -// InputService22TestCaseOperation1 API operation for . +// InputService23TestCaseOperation1 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService22TestCaseOperation1 for usage and error information. -func (c *InputService22ProtocolTest) InputService22TestCaseOperation1(input *InputService22TestShapeInputService22TestCaseOperation1Input) (*InputService22TestShapeInputService22TestCaseOperation1Output, error) { - req, out := c.InputService22TestCaseOperation1Request(input) +// API operation InputService23TestCaseOperation1 for usage and error information. +func (c *InputService23ProtocolTest) InputService23TestCaseOperation1(input *InputService23TestShapeInputService23TestCaseOperation1Input) (*InputService23TestShapeInputService23TestCaseOperation1Output, error) { + req, out := c.InputService23TestCaseOperation1Request(input) err := req.Send() return out, err } -type InputService22TestShapeInputService22TestCaseOperation1Input struct { +type InputService23TestShapeInputService23TestCaseOperation1Input struct { _ struct{} `type:"structure"` TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp" timestampFormat:"rfc822"` } -type InputService22TestShapeInputService22TestCaseOperation1Output struct { +// SetTimeArgInHeader sets the TimeArgInHeader field's value. +func (s *InputService23TestShapeInputService23TestCaseOperation1Input) SetTimeArgInHeader(v time.Time) *InputService23TestShapeInputService23TestCaseOperation1Input { + s.TimeArgInHeader = &v + return s +} + +type InputService23TestShapeInputService23TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. -type InputService23ProtocolTest struct { +type InputService24ProtocolTest struct { *client.Client } -// New creates a new instance of the InputService23ProtocolTest client with a session. +// New creates a new instance of the InputService24ProtocolTest client with a session. // If additional configuration is needed for the client instance use the optional // aws.Config parameter to add your extra config. // // Example: -// // Create a InputService23ProtocolTest client from just a session. -// svc := inputservice23protocoltest.New(mySession) +// // Create a InputService24ProtocolTest client from just a session. +// svc := inputservice24protocoltest.New(mySession) // -// // Create a InputService23ProtocolTest client with additional configuration -// svc := inputservice23protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService23ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService23ProtocolTest { - c := p.ClientConfig("inputservice23protocoltest", cfgs...) - return newInputService23ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) +// // Create a InputService24ProtocolTest client with additional configuration +// svc := inputservice24protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func NewInputService24ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService24ProtocolTest { + c := p.ClientConfig("inputservice24protocoltest", cfgs...) + return newInputService24ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newInputService23ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService23ProtocolTest { - svc := &InputService23ProtocolTest{ +func newInputService24ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService24ProtocolTest { + svc := &InputService24ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ - ServiceName: "inputservice23protocoltest", + ServiceName: "inputservice24protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-01-01", @@ -3699,146 +4117,148 @@ func newInputService23ProtocolTestClient(cfg aws.Config, handlers request.Handle return svc } -// newRequest creates a new request for a InputService23ProtocolTest operation and runs any +// newRequest creates a new request for a InputService24ProtocolTest operation and runs any // custom request initialization. -func (c *InputService23ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { +func (c *InputService24ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { req := c.NewRequest(op, params, data) return req } -const opInputService23TestCaseOperation1 = "OperationName" +const opInputService24TestCaseOperation1 = "OperationName" -// InputService23TestCaseOperation1Request generates a "aws/request.Request" representing the -// client's request for the InputService23TestCaseOperation1 operation. The "output" return +// InputService24TestCaseOperation1Request generates a "aws/request.Request" representing the +// client's request for the InputService24TestCaseOperation1 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService23TestCaseOperation1 for usage and error information. +// See InputService24TestCaseOperation1 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService23TestCaseOperation1 method directly +// you just want the service response, call the InputService24TestCaseOperation1 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService23TestCaseOperation1Request method. -// req, resp := client.InputService23TestCaseOperation1Request(params) +// // Example sending a request using the InputService24TestCaseOperation1Request method. +// req, resp := client.InputService24TestCaseOperation1Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService23ProtocolTest) InputService23TestCaseOperation1Request(input *InputService23TestShapeInputShape) (req *request.Request, output *InputService23TestShapeInputService23TestCaseOperation1Output) { +func (c *InputService24ProtocolTest) InputService24TestCaseOperation1Request(input *InputService24TestShapeInputShape) (req *request.Request, output *InputService24TestShapeInputService24TestCaseOperation1Output) { op := &request.Operation{ - Name: opInputService23TestCaseOperation1, + Name: opInputService24TestCaseOperation1, HTTPMethod: "POST", HTTPPath: "/path", } if input == nil { - input = &InputService23TestShapeInputShape{} + input = &InputService24TestShapeInputShape{} } + output = &InputService24TestShapeInputService24TestCaseOperation1Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService23TestShapeInputService23TestCaseOperation1Output{} - req.Data = output return } -// InputService23TestCaseOperation1 API operation for . +// InputService24TestCaseOperation1 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService23TestCaseOperation1 for usage and error information. -func (c *InputService23ProtocolTest) InputService23TestCaseOperation1(input *InputService23TestShapeInputShape) (*InputService23TestShapeInputService23TestCaseOperation1Output, error) { - req, out := c.InputService23TestCaseOperation1Request(input) +// API operation InputService24TestCaseOperation1 for usage and error information. +func (c *InputService24ProtocolTest) InputService24TestCaseOperation1(input *InputService24TestShapeInputShape) (*InputService24TestShapeInputService24TestCaseOperation1Output, error) { + req, out := c.InputService24TestCaseOperation1Request(input) err := req.Send() return out, err } -const opInputService23TestCaseOperation2 = "OperationName" +const opInputService24TestCaseOperation2 = "OperationName" -// InputService23TestCaseOperation2Request generates a "aws/request.Request" representing the -// client's request for the InputService23TestCaseOperation2 operation. The "output" return +// InputService24TestCaseOperation2Request generates a "aws/request.Request" representing the +// client's request for the InputService24TestCaseOperation2 operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See InputService23TestCaseOperation2 for usage and error information. +// See InputService24TestCaseOperation2 for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the InputService23TestCaseOperation2 method directly +// you just want the service response, call the InputService24TestCaseOperation2 method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the InputService23TestCaseOperation2Request method. -// req, resp := client.InputService23TestCaseOperation2Request(params) +// // Example sending a request using the InputService24TestCaseOperation2Request method. +// req, resp := client.InputService24TestCaseOperation2Request(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *InputService23ProtocolTest) InputService23TestCaseOperation2Request(input *InputService23TestShapeInputShape) (req *request.Request, output *InputService23TestShapeInputService23TestCaseOperation2Output) { +func (c *InputService24ProtocolTest) InputService24TestCaseOperation2Request(input *InputService24TestShapeInputShape) (req *request.Request, output *InputService24TestShapeInputService24TestCaseOperation2Output) { op := &request.Operation{ - Name: opInputService23TestCaseOperation2, + Name: opInputService24TestCaseOperation2, HTTPMethod: "POST", HTTPPath: "/path", } if input == nil { - input = &InputService23TestShapeInputShape{} + input = &InputService24TestShapeInputShape{} } + output = &InputService24TestShapeInputService24TestCaseOperation2Output{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService23TestShapeInputService23TestCaseOperation2Output{} - req.Data = output return } -// InputService23TestCaseOperation2 API operation for . +// InputService24TestCaseOperation2 API operation for . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for 's -// API operation InputService23TestCaseOperation2 for usage and error information. -func (c *InputService23ProtocolTest) InputService23TestCaseOperation2(input *InputService23TestShapeInputShape) (*InputService23TestShapeInputService23TestCaseOperation2Output, error) { - req, out := c.InputService23TestCaseOperation2Request(input) +// API operation InputService24TestCaseOperation2 for usage and error information. +func (c *InputService24ProtocolTest) InputService24TestCaseOperation2(input *InputService24TestShapeInputShape) (*InputService24TestShapeInputService24TestCaseOperation2Output, error) { + req, out := c.InputService24TestCaseOperation2Request(input) err := req.Send() return out, err } -type InputService23TestShapeInputService23TestCaseOperation1Output struct { +type InputService24TestShapeInputService24TestCaseOperation1Output struct { _ struct{} `type:"structure"` } -type InputService23TestShapeInputService23TestCaseOperation2Output struct { +type InputService24TestShapeInputService24TestCaseOperation2Output struct { _ struct{} `type:"structure"` } -type InputService23TestShapeInputShape struct { +type InputService24TestShapeInputShape struct { _ struct{} `type:"structure"` Token *string `type:"string" idempotencyToken:"true"` } +// SetToken sets the Token field's value. +func (s *InputService24TestShapeInputShape) SetToken(v string) *InputService24TestShapeInputShape { + s.Token = &v + return s +} + // // Tests begin here // @@ -4288,10 +4708,10 @@ func TestInputService14ProtocolTestStringToStringListMapsInQuerystringCase1(t *t } -func TestInputService15ProtocolTestStringPayloadCase1(t *testing.T) { +func TestInputService15ProtocolTestBooleanInQuerystringCase1(t *testing.T) { svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService15TestShapeInputService15TestCaseOperation1Input{ - Foo: aws.String("bar"), + input := &InputService15TestShapeInputShape{ + BoolQuery: aws.Bool(true), } req, _ := svc.InputService15TestCaseOperation1Request(input) r := req.HTTPRequest @@ -4300,6 +4720,44 @@ func TestInputService15ProtocolTestStringPayloadCase1(t *testing.T) { restxml.Build(req) assert.NoError(t, req.Error) + // assert URL + awstesting.AssertURL(t, "https://test/path?bool-query=true", r.URL.String()) + + // assert headers + +} + +func TestInputService15ProtocolTestBooleanInQuerystringCase2(t *testing.T) { + svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService15TestShapeInputShape{ + BoolQuery: aws.Bool(false), + } + req, _ := svc.InputService15TestCaseOperation2Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert URL + awstesting.AssertURL(t, "https://test/path?bool-query=false", r.URL.String()) + + // assert headers + +} + +func TestInputService16ProtocolTestStringPayloadCase1(t *testing.T) { + svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService16TestShapeInputService16TestCaseOperation1Input{ + Foo: aws.String("bar"), + } + req, _ := svc.InputService16TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + // assert body assert.NotNil(t, r.Body) body := util.SortXML(r.Body) @@ -4312,12 +4770,12 @@ func TestInputService15ProtocolTestStringPayloadCase1(t *testing.T) { } -func TestInputService16ProtocolTestBlobPayloadCase1(t *testing.T) { - svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService16TestShapeInputShape{ +func TestInputService17ProtocolTestBlobPayloadCase1(t *testing.T) { + svc := NewInputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService17TestShapeInputShape{ Foo: []byte("bar"), } - req, _ := svc.InputService16TestCaseOperation1Request(input) + req, _ := svc.InputService17TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -4336,10 +4794,10 @@ func TestInputService16ProtocolTestBlobPayloadCase1(t *testing.T) { } -func TestInputService16ProtocolTestBlobPayloadCase2(t *testing.T) { - svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService16TestShapeInputShape{} - req, _ := svc.InputService16TestCaseOperation2Request(input) +func TestInputService17ProtocolTestBlobPayloadCase2(t *testing.T) { + svc := NewInputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService17TestShapeInputShape{} + req, _ := svc.InputService17TestCaseOperation2Request(input) r := req.HTTPRequest // build request @@ -4353,14 +4811,14 @@ func TestInputService16ProtocolTestBlobPayloadCase2(t *testing.T) { } -func TestInputService17ProtocolTestStructurePayloadCase1(t *testing.T) { - svc := NewInputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService17TestShapeInputShape{ - Foo: &InputService17TestShapeFooShape{ +func TestInputService18ProtocolTestStructurePayloadCase1(t *testing.T) { + svc := NewInputService18ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService18TestShapeInputShape{ + Foo: &InputService18TestShapeFooShape{ Baz: aws.String("bar"), }, } - req, _ := svc.InputService17TestCaseOperation1Request(input) + req, _ := svc.InputService18TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -4370,7 +4828,7 @@ func TestInputService17ProtocolTestStructurePayloadCase1(t *testing.T) { // assert body assert.NotNil(t, r.Body) body := util.SortXML(r.Body) - awstesting.AssertXML(t, `bar`, util.Trim(string(body)), InputService17TestShapeInputShape{}) + awstesting.AssertXML(t, `bar`, util.Trim(string(body)), InputService18TestShapeInputShape{}) // assert URL awstesting.AssertURL(t, "https://test/", r.URL.String()) @@ -4379,10 +4837,10 @@ func TestInputService17ProtocolTestStructurePayloadCase1(t *testing.T) { } -func TestInputService17ProtocolTestStructurePayloadCase2(t *testing.T) { - svc := NewInputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService17TestShapeInputShape{} - req, _ := svc.InputService17TestCaseOperation2Request(input) +func TestInputService18ProtocolTestStructurePayloadCase2(t *testing.T) { + svc := NewInputService18ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService18TestShapeInputShape{} + req, _ := svc.InputService18TestCaseOperation2Request(input) r := req.HTTPRequest // build request @@ -4396,12 +4854,12 @@ func TestInputService17ProtocolTestStructurePayloadCase2(t *testing.T) { } -func TestInputService17ProtocolTestStructurePayloadCase3(t *testing.T) { - svc := NewInputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService17TestShapeInputShape{ - Foo: &InputService17TestShapeFooShape{}, +func TestInputService18ProtocolTestStructurePayloadCase3(t *testing.T) { + svc := NewInputService18ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService18TestShapeInputShape{ + Foo: &InputService18TestShapeFooShape{}, } - req, _ := svc.InputService17TestCaseOperation3Request(input) + req, _ := svc.InputService18TestCaseOperation3Request(input) r := req.HTTPRequest // build request @@ -4411,7 +4869,7 @@ func TestInputService17ProtocolTestStructurePayloadCase3(t *testing.T) { // assert body assert.NotNil(t, r.Body) body := util.SortXML(r.Body) - awstesting.AssertXML(t, ``, util.Trim(string(body)), InputService17TestShapeInputShape{}) + awstesting.AssertXML(t, ``, util.Trim(string(body)), InputService18TestShapeInputShape{}) // assert URL awstesting.AssertURL(t, "https://test/", r.URL.String()) @@ -4420,10 +4878,10 @@ func TestInputService17ProtocolTestStructurePayloadCase3(t *testing.T) { } -func TestInputService17ProtocolTestStructurePayloadCase4(t *testing.T) { - svc := NewInputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService17TestShapeInputShape{} - req, _ := svc.InputService17TestCaseOperation4Request(input) +func TestInputService18ProtocolTestStructurePayloadCase4(t *testing.T) { + svc := NewInputService18ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService18TestShapeInputShape{} + req, _ := svc.InputService18TestCaseOperation4Request(input) r := req.HTTPRequest // build request @@ -4437,17 +4895,17 @@ func TestInputService17ProtocolTestStructurePayloadCase4(t *testing.T) { } -func TestInputService18ProtocolTestXMLAttributeCase1(t *testing.T) { - svc := NewInputService18ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService18TestShapeInputService18TestCaseOperation1Input{ - Grant: &InputService18TestShapeGrant{ - Grantee: &InputService18TestShapeGrantee{ +func TestInputService19ProtocolTestXMLAttributeCase1(t *testing.T) { + svc := NewInputService19ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService19TestShapeInputService19TestCaseOperation1Input{ + Grant: &InputService19TestShapeGrant{ + Grantee: &InputService19TestShapeGrantee{ EmailAddress: aws.String("foo@example.com"), Type: aws.String("CanonicalUser"), }, }, } - req, _ := svc.InputService18TestCaseOperation1Request(input) + req, _ := svc.InputService19TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -4457,7 +4915,7 @@ func TestInputService18ProtocolTestXMLAttributeCase1(t *testing.T) { // assert body assert.NotNil(t, r.Body) body := util.SortXML(r.Body) - awstesting.AssertXML(t, `foo@example.com`, util.Trim(string(body)), InputService18TestShapeInputService18TestCaseOperation1Input{}) + awstesting.AssertXML(t, `foo@example.com`, util.Trim(string(body)), InputService19TestShapeInputService19TestCaseOperation1Input{}) // assert URL awstesting.AssertURL(t, "https://test/", r.URL.String()) @@ -4466,13 +4924,13 @@ func TestInputService18ProtocolTestXMLAttributeCase1(t *testing.T) { } -func TestInputService19ProtocolTestGreedyKeysCase1(t *testing.T) { - svc := NewInputService19ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService19TestShapeInputService19TestCaseOperation1Input{ +func TestInputService20ProtocolTestGreedyKeysCase1(t *testing.T) { + svc := NewInputService20ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService20TestShapeInputService20TestCaseOperation1Input{ Bucket: aws.String("my/bucket"), Key: aws.String("testing /123"), } - req, _ := svc.InputService19TestCaseOperation1Request(input) + req, _ := svc.InputService20TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -4486,10 +4944,10 @@ func TestInputService19ProtocolTestGreedyKeysCase1(t *testing.T) { } -func TestInputService20ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase1(t *testing.T) { - svc := NewInputService20ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService20TestShapeInputShape{} - req, _ := svc.InputService20TestCaseOperation1Request(input) +func TestInputService21ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase1(t *testing.T) { + svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService21TestShapeInputShape{} + req, _ := svc.InputService21TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -4503,12 +4961,12 @@ func TestInputService20ProtocolTestOmitsNullQueryParamsButSerializesEmptyStrings } -func TestInputService20ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase2(t *testing.T) { - svc := NewInputService20ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService20TestShapeInputShape{ +func TestInputService21ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase2(t *testing.T) { + svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService21TestShapeInputShape{ Foo: aws.String(""), } - req, _ := svc.InputService20TestCaseOperation2Request(input) + req, _ := svc.InputService21TestCaseOperation2Request(input) r := req.HTTPRequest // build request @@ -4522,14 +4980,14 @@ func TestInputService20ProtocolTestOmitsNullQueryParamsButSerializesEmptyStrings } -func TestInputService21ProtocolTestRecursiveShapesCase1(t *testing.T) { - svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService21TestShapeInputShape{ - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ +func TestInputService22ProtocolTestRecursiveShapesCase1(t *testing.T) { + svc := NewInputService22ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService22TestShapeInputShape{ + RecursiveStruct: &InputService22TestShapeRecursiveStructType{ NoRecurse: aws.String("foo"), }, } - req, _ := svc.InputService21TestCaseOperation1Request(input) + req, _ := svc.InputService22TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -4539,7 +4997,7 @@ func TestInputService21ProtocolTestRecursiveShapesCase1(t *testing.T) { // assert body assert.NotNil(t, r.Body) body := util.SortXML(r.Body) - awstesting.AssertXML(t, `foo`, util.Trim(string(body)), InputService21TestShapeInputShape{}) + awstesting.AssertXML(t, `foo`, util.Trim(string(body)), InputService22TestShapeInputShape{}) // assert URL awstesting.AssertURL(t, "https://test/path", r.URL.String()) @@ -4548,16 +5006,16 @@ func TestInputService21ProtocolTestRecursiveShapesCase1(t *testing.T) { } -func TestInputService21ProtocolTestRecursiveShapesCase2(t *testing.T) { - svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService21TestShapeInputShape{ - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ +func TestInputService22ProtocolTestRecursiveShapesCase2(t *testing.T) { + svc := NewInputService22ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService22TestShapeInputShape{ + RecursiveStruct: &InputService22TestShapeRecursiveStructType{ + RecursiveStruct: &InputService22TestShapeRecursiveStructType{ NoRecurse: aws.String("foo"), }, }, } - req, _ := svc.InputService21TestCaseOperation2Request(input) + req, _ := svc.InputService22TestCaseOperation2Request(input) r := req.HTTPRequest // build request @@ -4567,7 +5025,7 @@ func TestInputService21ProtocolTestRecursiveShapesCase2(t *testing.T) { // assert body assert.NotNil(t, r.Body) body := util.SortXML(r.Body) - awstesting.AssertXML(t, `foo`, util.Trim(string(body)), InputService21TestShapeInputShape{}) + awstesting.AssertXML(t, `foo`, util.Trim(string(body)), InputService22TestShapeInputShape{}) // assert URL awstesting.AssertURL(t, "https://test/path", r.URL.String()) @@ -4576,20 +5034,20 @@ func TestInputService21ProtocolTestRecursiveShapesCase2(t *testing.T) { } -func TestInputService21ProtocolTestRecursiveShapesCase3(t *testing.T) { - svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService21TestShapeInputShape{ - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ +func TestInputService22ProtocolTestRecursiveShapesCase3(t *testing.T) { + svc := NewInputService22ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService22TestShapeInputShape{ + RecursiveStruct: &InputService22TestShapeRecursiveStructType{ + RecursiveStruct: &InputService22TestShapeRecursiveStructType{ + RecursiveStruct: &InputService22TestShapeRecursiveStructType{ + RecursiveStruct: &InputService22TestShapeRecursiveStructType{ NoRecurse: aws.String("foo"), }, }, }, }, } - req, _ := svc.InputService21TestCaseOperation3Request(input) + req, _ := svc.InputService22TestCaseOperation3Request(input) r := req.HTTPRequest // build request @@ -4599,7 +5057,7 @@ func TestInputService21ProtocolTestRecursiveShapesCase3(t *testing.T) { // assert body assert.NotNil(t, r.Body) body := util.SortXML(r.Body) - awstesting.AssertXML(t, `foo`, util.Trim(string(body)), InputService21TestShapeInputShape{}) + awstesting.AssertXML(t, `foo`, util.Trim(string(body)), InputService22TestShapeInputShape{}) // assert URL awstesting.AssertURL(t, "https://test/path", r.URL.String()) @@ -4608,11 +5066,11 @@ func TestInputService21ProtocolTestRecursiveShapesCase3(t *testing.T) { } -func TestInputService21ProtocolTestRecursiveShapesCase4(t *testing.T) { - svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService21TestShapeInputShape{ - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ - RecursiveList: []*InputService21TestShapeRecursiveStructType{ +func TestInputService22ProtocolTestRecursiveShapesCase4(t *testing.T) { + svc := NewInputService22ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService22TestShapeInputShape{ + RecursiveStruct: &InputService22TestShapeRecursiveStructType{ + RecursiveList: []*InputService22TestShapeRecursiveStructType{ { NoRecurse: aws.String("foo"), }, @@ -4622,7 +5080,7 @@ func TestInputService21ProtocolTestRecursiveShapesCase4(t *testing.T) { }, }, } - req, _ := svc.InputService21TestCaseOperation4Request(input) + req, _ := svc.InputService22TestCaseOperation4Request(input) r := req.HTTPRequest // build request @@ -4632,7 +5090,7 @@ func TestInputService21ProtocolTestRecursiveShapesCase4(t *testing.T) { // assert body assert.NotNil(t, r.Body) body := util.SortXML(r.Body) - awstesting.AssertXML(t, `foobar`, util.Trim(string(body)), InputService21TestShapeInputShape{}) + awstesting.AssertXML(t, `foobar`, util.Trim(string(body)), InputService22TestShapeInputShape{}) // assert URL awstesting.AssertURL(t, "https://test/path", r.URL.String()) @@ -4641,23 +5099,23 @@ func TestInputService21ProtocolTestRecursiveShapesCase4(t *testing.T) { } -func TestInputService21ProtocolTestRecursiveShapesCase5(t *testing.T) { - svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService21TestShapeInputShape{ - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ - RecursiveList: []*InputService21TestShapeRecursiveStructType{ +func TestInputService22ProtocolTestRecursiveShapesCase5(t *testing.T) { + svc := NewInputService22ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService22TestShapeInputShape{ + RecursiveStruct: &InputService22TestShapeRecursiveStructType{ + RecursiveList: []*InputService22TestShapeRecursiveStructType{ { NoRecurse: aws.String("foo"), }, { - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ + RecursiveStruct: &InputService22TestShapeRecursiveStructType{ NoRecurse: aws.String("bar"), }, }, }, }, } - req, _ := svc.InputService21TestCaseOperation5Request(input) + req, _ := svc.InputService22TestCaseOperation5Request(input) r := req.HTTPRequest // build request @@ -4667,7 +5125,7 @@ func TestInputService21ProtocolTestRecursiveShapesCase5(t *testing.T) { // assert body assert.NotNil(t, r.Body) body := util.SortXML(r.Body) - awstesting.AssertXML(t, `foobar`, util.Trim(string(body)), InputService21TestShapeInputShape{}) + awstesting.AssertXML(t, `foobar`, util.Trim(string(body)), InputService22TestShapeInputShape{}) // assert URL awstesting.AssertURL(t, "https://test/path", r.URL.String()) @@ -4676,11 +5134,11 @@ func TestInputService21ProtocolTestRecursiveShapesCase5(t *testing.T) { } -func TestInputService21ProtocolTestRecursiveShapesCase6(t *testing.T) { - svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService21TestShapeInputShape{ - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ - RecursiveMap: map[string]*InputService21TestShapeRecursiveStructType{ +func TestInputService22ProtocolTestRecursiveShapesCase6(t *testing.T) { + svc := NewInputService22ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService22TestShapeInputShape{ + RecursiveStruct: &InputService22TestShapeRecursiveStructType{ + RecursiveMap: map[string]*InputService22TestShapeRecursiveStructType{ "bar": { NoRecurse: aws.String("bar"), }, @@ -4690,7 +5148,7 @@ func TestInputService21ProtocolTestRecursiveShapesCase6(t *testing.T) { }, }, } - req, _ := svc.InputService21TestCaseOperation6Request(input) + req, _ := svc.InputService22TestCaseOperation6Request(input) r := req.HTTPRequest // build request @@ -4700,7 +5158,7 @@ func TestInputService21ProtocolTestRecursiveShapesCase6(t *testing.T) { // assert body assert.NotNil(t, r.Body) body := util.SortXML(r.Body) - awstesting.AssertXML(t, `foofoobarbar`, util.Trim(string(body)), InputService21TestShapeInputShape{}) + awstesting.AssertXML(t, `foofoobarbar`, util.Trim(string(body)), InputService22TestShapeInputShape{}) // assert URL awstesting.AssertURL(t, "https://test/path", r.URL.String()) @@ -4709,12 +5167,12 @@ func TestInputService21ProtocolTestRecursiveShapesCase6(t *testing.T) { } -func TestInputService22ProtocolTestTimestampInHeaderCase1(t *testing.T) { - svc := NewInputService22ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService22TestShapeInputService22TestCaseOperation1Input{ +func TestInputService23ProtocolTestTimestampInHeaderCase1(t *testing.T) { + svc := NewInputService23ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService23TestShapeInputService23TestCaseOperation1Input{ TimeArgInHeader: aws.Time(time.Unix(1422172800, 0)), } - req, _ := svc.InputService22TestCaseOperation1Request(input) + req, _ := svc.InputService23TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -4729,12 +5187,12 @@ func TestInputService22ProtocolTestTimestampInHeaderCase1(t *testing.T) { } -func TestInputService23ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) { - svc := NewInputService23ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService23TestShapeInputShape{ +func TestInputService24ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) { + svc := NewInputService24ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService24TestShapeInputShape{ Token: aws.String("abc123"), } - req, _ := svc.InputService23TestCaseOperation1Request(input) + req, _ := svc.InputService24TestCaseOperation1Request(input) r := req.HTTPRequest // build request @@ -4744,7 +5202,7 @@ func TestInputService23ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) { // assert body assert.NotNil(t, r.Body) body := util.SortXML(r.Body) - awstesting.AssertXML(t, `abc123`, util.Trim(string(body)), InputService23TestShapeInputShape{}) + awstesting.AssertXML(t, `abc123`, util.Trim(string(body)), InputService24TestShapeInputShape{}) // assert URL awstesting.AssertURL(t, "https://test/path", r.URL.String()) @@ -4753,10 +5211,10 @@ func TestInputService23ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) { } -func TestInputService23ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) { - svc := NewInputService23ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService23TestShapeInputShape{} - req, _ := svc.InputService23TestCaseOperation2Request(input) +func TestInputService24ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) { + svc := NewInputService24ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + input := &InputService24TestShapeInputShape{} + req, _ := svc.InputService24TestCaseOperation2Request(input) r := req.HTTPRequest // build request @@ -4766,7 +5224,7 @@ func TestInputService23ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) { // assert body assert.NotNil(t, r.Body) body := util.SortXML(r.Body) - awstesting.AssertXML(t, `00000000-0000-4000-8000-000000000000`, util.Trim(string(body)), InputService23TestShapeInputShape{}) + awstesting.AssertXML(t, `00000000-0000-4000-8000-000000000000`, util.Trim(string(body)), InputService24TestShapeInputShape{}) // assert URL awstesting.AssertURL(t, "https://test/path", r.URL.String()) diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/unmarshal_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/unmarshal_test.go index bebf5b2c4..3753f5604 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/unmarshal_test.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/unmarshal_test.go @@ -43,7 +43,7 @@ func init() { protocol.RandReader = &awstesting.ZeroReader{} } -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService1ProtocolTest struct { *client.Client @@ -61,16 +61,17 @@ type OutputService1ProtocolTest struct { // svc := outputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService1ProtocolTest { c := p.ClientConfig("outputservice1protocoltest", cfgs...) - return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService1ProtocolTest { +func newOutputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService1ProtocolTest { svc := &OutputService1ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice1protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -122,7 +123,6 @@ const opOutputService1TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (req *request.Request, output *OutputService1TestShapeOutputShape) { op := &request.Operation{ Name: opOutputService1TestCaseOperation1, @@ -133,9 +133,8 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(inp input = &OutputService1TestShapeOutputService1TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService1TestShapeOutputShape{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -178,7 +177,6 @@ const opOutputService1TestCaseOperation2 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation2Request(input *OutputService1TestShapeOutputService1TestCaseOperation2Input) (req *request.Request, output *OutputService1TestShapeOutputShape) { op := &request.Operation{ Name: opOutputService1TestCaseOperation2, @@ -189,9 +187,8 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation2Request(inp input = &OutputService1TestShapeOutputService1TestCaseOperation2Input{} } - req = c.newRequest(op, input, output) output = &OutputService1TestShapeOutputShape{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -243,7 +240,73 @@ type OutputService1TestShapeOutputShape struct { TrueBool *bool `type:"boolean"` } -//The service client's operations are safe to be used concurrently. +// SetChar sets the Char field's value. +func (s *OutputService1TestShapeOutputShape) SetChar(v string) *OutputService1TestShapeOutputShape { + s.Char = &v + return s +} + +// SetDouble sets the Double field's value. +func (s *OutputService1TestShapeOutputShape) SetDouble(v float64) *OutputService1TestShapeOutputShape { + s.Double = &v + return s +} + +// SetFalseBool sets the FalseBool field's value. +func (s *OutputService1TestShapeOutputShape) SetFalseBool(v bool) *OutputService1TestShapeOutputShape { + s.FalseBool = &v + return s +} + +// SetFloat sets the Float field's value. +func (s *OutputService1TestShapeOutputShape) SetFloat(v float64) *OutputService1TestShapeOutputShape { + s.Float = &v + return s +} + +// SetImaHeader sets the ImaHeader field's value. +func (s *OutputService1TestShapeOutputShape) SetImaHeader(v string) *OutputService1TestShapeOutputShape { + s.ImaHeader = &v + return s +} + +// SetImaHeaderLocation sets the ImaHeaderLocation field's value. +func (s *OutputService1TestShapeOutputShape) SetImaHeaderLocation(v string) *OutputService1TestShapeOutputShape { + s.ImaHeaderLocation = &v + return s +} + +// SetLong sets the Long field's value. +func (s *OutputService1TestShapeOutputShape) SetLong(v int64) *OutputService1TestShapeOutputShape { + s.Long = &v + return s +} + +// SetNum sets the Num field's value. +func (s *OutputService1TestShapeOutputShape) SetNum(v int64) *OutputService1TestShapeOutputShape { + s.Num = &v + return s +} + +// SetStr sets the Str field's value. +func (s *OutputService1TestShapeOutputShape) SetStr(v string) *OutputService1TestShapeOutputShape { + s.Str = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *OutputService1TestShapeOutputShape) SetTimestamp(v time.Time) *OutputService1TestShapeOutputShape { + s.Timestamp = &v + return s +} + +// SetTrueBool sets the TrueBool field's value. +func (s *OutputService1TestShapeOutputShape) SetTrueBool(v bool) *OutputService1TestShapeOutputShape { + s.TrueBool = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService2ProtocolTest struct { *client.Client @@ -261,16 +324,17 @@ type OutputService2ProtocolTest struct { // svc := outputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService2ProtocolTest { c := p.ClientConfig("outputservice2protocoltest", cfgs...) - return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService2ProtocolTest { +func newOutputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService2ProtocolTest { svc := &OutputService2ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice2protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -322,7 +386,6 @@ const opOutputService2TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (req *request.Request, output *OutputService2TestShapeOutputService2TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService2TestCaseOperation1, @@ -333,9 +396,8 @@ func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(inp input = &OutputService2TestShapeOutputService2TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService2TestShapeOutputService2TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -364,7 +426,13 @@ type OutputService2TestShapeOutputService2TestCaseOperation1Output struct { Blob []byte `type:"blob"` } -//The service client's operations are safe to be used concurrently. +// SetBlob sets the Blob field's value. +func (s *OutputService2TestShapeOutputService2TestCaseOperation1Output) SetBlob(v []byte) *OutputService2TestShapeOutputService2TestCaseOperation1Output { + s.Blob = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService3ProtocolTest struct { *client.Client @@ -382,16 +450,17 @@ type OutputService3ProtocolTest struct { // svc := outputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService3ProtocolTest { c := p.ClientConfig("outputservice3protocoltest", cfgs...) - return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService3ProtocolTest { +func newOutputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService3ProtocolTest { svc := &OutputService3ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice3protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -443,7 +512,6 @@ const opOutputService3TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (req *request.Request, output *OutputService3TestShapeOutputService3TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService3TestCaseOperation1, @@ -454,9 +522,8 @@ func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(inp input = &OutputService3TestShapeOutputService3TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService3TestShapeOutputService3TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -484,7 +551,13 @@ type OutputService3TestShapeOutputService3TestCaseOperation1Output struct { ListMember []*string `type:"list"` } -//The service client's operations are safe to be used concurrently. +// SetListMember sets the ListMember field's value. +func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetListMember(v []*string) *OutputService3TestShapeOutputService3TestCaseOperation1Output { + s.ListMember = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService4ProtocolTest struct { *client.Client @@ -502,16 +575,17 @@ type OutputService4ProtocolTest struct { // svc := outputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService4ProtocolTest { c := p.ClientConfig("outputservice4protocoltest", cfgs...) - return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService4ProtocolTest { +func newOutputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService4ProtocolTest { svc := &OutputService4ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice4protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -563,7 +637,6 @@ const opOutputService4TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (req *request.Request, output *OutputService4TestShapeOutputService4TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService4TestCaseOperation1, @@ -574,9 +647,8 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(inp input = &OutputService4TestShapeOutputService4TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService4TestShapeOutputService4TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -604,7 +676,13 @@ type OutputService4TestShapeOutputService4TestCaseOperation1Output struct { ListMember []*string `locationNameList:"item" type:"list"` } -//The service client's operations are safe to be used concurrently. +// SetListMember sets the ListMember field's value. +func (s *OutputService4TestShapeOutputService4TestCaseOperation1Output) SetListMember(v []*string) *OutputService4TestShapeOutputService4TestCaseOperation1Output { + s.ListMember = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService5ProtocolTest struct { *client.Client @@ -622,16 +700,17 @@ type OutputService5ProtocolTest struct { // svc := outputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService5ProtocolTest { c := p.ClientConfig("outputservice5protocoltest", cfgs...) - return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService5ProtocolTest { +func newOutputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService5ProtocolTest { svc := &OutputService5ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice5protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -683,7 +762,6 @@ const opOutputService5TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (req *request.Request, output *OutputService5TestShapeOutputService5TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService5TestCaseOperation1, @@ -694,9 +772,8 @@ func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(inp input = &OutputService5TestShapeOutputService5TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService5TestShapeOutputService5TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -724,7 +801,13 @@ type OutputService5TestShapeOutputService5TestCaseOperation1Output struct { ListMember []*string `type:"list" flattened:"true"` } -//The service client's operations are safe to be used concurrently. +// SetListMember sets the ListMember field's value. +func (s *OutputService5TestShapeOutputService5TestCaseOperation1Output) SetListMember(v []*string) *OutputService5TestShapeOutputService5TestCaseOperation1Output { + s.ListMember = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService6ProtocolTest struct { *client.Client @@ -742,16 +825,17 @@ type OutputService6ProtocolTest struct { // svc := outputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService6ProtocolTest { c := p.ClientConfig("outputservice6protocoltest", cfgs...) - return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService6ProtocolTest { +func newOutputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService6ProtocolTest { svc := &OutputService6ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice6protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -803,7 +887,6 @@ const opOutputService6TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (req *request.Request, output *OutputService6TestShapeOutputService6TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService6TestCaseOperation1, @@ -814,9 +897,8 @@ func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(inp input = &OutputService6TestShapeOutputService6TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService6TestShapeOutputService6TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -844,13 +926,25 @@ type OutputService6TestShapeOutputService6TestCaseOperation1Output struct { Map map[string]*OutputService6TestShapeSingleStructure `type:"map"` } +// SetMap sets the Map field's value. +func (s *OutputService6TestShapeOutputService6TestCaseOperation1Output) SetMap(v map[string]*OutputService6TestShapeSingleStructure) *OutputService6TestShapeOutputService6TestCaseOperation1Output { + s.Map = v + return s +} + type OutputService6TestShapeSingleStructure struct { _ struct{} `type:"structure"` Foo *string `locationName:"foo" type:"string"` } -//The service client's operations are safe to be used concurrently. +// SetFoo sets the Foo field's value. +func (s *OutputService6TestShapeSingleStructure) SetFoo(v string) *OutputService6TestShapeSingleStructure { + s.Foo = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService7ProtocolTest struct { *client.Client @@ -868,16 +962,17 @@ type OutputService7ProtocolTest struct { // svc := outputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService7ProtocolTest { c := p.ClientConfig("outputservice7protocoltest", cfgs...) - return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService7ProtocolTest { +func newOutputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService7ProtocolTest { svc := &OutputService7ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice7protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -929,7 +1024,6 @@ const opOutputService7TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (req *request.Request, output *OutputService7TestShapeOutputService7TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService7TestCaseOperation1, @@ -940,9 +1034,8 @@ func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(inp input = &OutputService7TestShapeOutputService7TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService7TestShapeOutputService7TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -970,7 +1063,13 @@ type OutputService7TestShapeOutputService7TestCaseOperation1Output struct { Map map[string]*string `type:"map" flattened:"true"` } -//The service client's operations are safe to be used concurrently. +// SetMap sets the Map field's value. +func (s *OutputService7TestShapeOutputService7TestCaseOperation1Output) SetMap(v map[string]*string) *OutputService7TestShapeOutputService7TestCaseOperation1Output { + s.Map = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService8ProtocolTest struct { *client.Client @@ -988,16 +1087,17 @@ type OutputService8ProtocolTest struct { // svc := outputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService8ProtocolTest { c := p.ClientConfig("outputservice8protocoltest", cfgs...) - return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService8ProtocolTest { +func newOutputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService8ProtocolTest { svc := &OutputService8ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice8protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -1049,7 +1149,6 @@ const opOutputService8TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (req *request.Request, output *OutputService8TestShapeOutputService8TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService8TestCaseOperation1, @@ -1060,9 +1159,8 @@ func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(inp input = &OutputService8TestShapeOutputService8TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService8TestShapeOutputService8TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1090,7 +1188,13 @@ type OutputService8TestShapeOutputService8TestCaseOperation1Output struct { Map map[string]*string `locationNameKey:"foo" locationNameValue:"bar" type:"map"` } -//The service client's operations are safe to be used concurrently. +// SetMap sets the Map field's value. +func (s *OutputService8TestShapeOutputService8TestCaseOperation1Output) SetMap(v map[string]*string) *OutputService8TestShapeOutputService8TestCaseOperation1Output { + s.Map = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService9ProtocolTest struct { *client.Client @@ -1108,16 +1212,17 @@ type OutputService9ProtocolTest struct { // svc := outputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService9ProtocolTest { c := p.ClientConfig("outputservice9protocoltest", cfgs...) - return newOutputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService9ProtocolTest { +func newOutputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService9ProtocolTest { svc := &OutputService9ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice9protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -1169,7 +1274,6 @@ const opOutputService9TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1Request(input *OutputService9TestShapeOutputService9TestCaseOperation1Input) (req *request.Request, output *OutputService9TestShapeOutputService9TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService9TestCaseOperation1, @@ -1180,9 +1284,8 @@ func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1Request(inp input = &OutputService9TestShapeOutputService9TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService9TestShapeOutputService9TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1212,13 +1315,31 @@ type OutputService9TestShapeOutputService9TestCaseOperation1Output struct { Header *string `location:"header" locationName:"X-Foo" type:"string"` } +// SetData sets the Data field's value. +func (s *OutputService9TestShapeOutputService9TestCaseOperation1Output) SetData(v *OutputService9TestShapeSingleStructure) *OutputService9TestShapeOutputService9TestCaseOperation1Output { + s.Data = v + return s +} + +// SetHeader sets the Header field's value. +func (s *OutputService9TestShapeOutputService9TestCaseOperation1Output) SetHeader(v string) *OutputService9TestShapeOutputService9TestCaseOperation1Output { + s.Header = &v + return s +} + type OutputService9TestShapeSingleStructure struct { _ struct{} `type:"structure"` Foo *string `type:"string"` } -//The service client's operations are safe to be used concurrently. +// SetFoo sets the Foo field's value. +func (s *OutputService9TestShapeSingleStructure) SetFoo(v string) *OutputService9TestShapeSingleStructure { + s.Foo = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService10ProtocolTest struct { *client.Client @@ -1236,16 +1357,17 @@ type OutputService10ProtocolTest struct { // svc := outputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService10ProtocolTest { c := p.ClientConfig("outputservice10protocoltest", cfgs...) - return newOutputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService10ProtocolTest { +func newOutputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService10ProtocolTest { svc := &OutputService10ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice10protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -1297,7 +1419,6 @@ const opOutputService10TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1Request(input *OutputService10TestShapeOutputService10TestCaseOperation1Input) (req *request.Request, output *OutputService10TestShapeOutputService10TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService10TestCaseOperation1, @@ -1308,9 +1429,8 @@ func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1Request(i input = &OutputService10TestShapeOutputService10TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService10TestShapeOutputService10TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1338,7 +1458,13 @@ type OutputService10TestShapeOutputService10TestCaseOperation1Output struct { Stream []byte `type:"blob"` } -//The service client's operations are safe to be used concurrently. +// SetStream sets the Stream field's value. +func (s *OutputService10TestShapeOutputService10TestCaseOperation1Output) SetStream(v []byte) *OutputService10TestShapeOutputService10TestCaseOperation1Output { + s.Stream = v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService11ProtocolTest struct { *client.Client @@ -1356,16 +1482,17 @@ type OutputService11ProtocolTest struct { // svc := outputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService11ProtocolTest { c := p.ClientConfig("outputservice11protocoltest", cfgs...) - return newOutputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService11ProtocolTest { +func newOutputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService11ProtocolTest { svc := &OutputService11ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice11protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -1417,7 +1544,6 @@ const opOutputService11TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1Request(input *OutputService11TestShapeOutputService11TestCaseOperation1Input) (req *request.Request, output *OutputService11TestShapeOutputService11TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService11TestCaseOperation1, @@ -1428,9 +1554,8 @@ func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1Request(i input = &OutputService11TestShapeOutputService11TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService11TestShapeOutputService11TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1474,7 +1599,61 @@ type OutputService11TestShapeOutputService11TestCaseOperation1Output struct { TrueBool *bool `location:"header" locationName:"x-true-bool" type:"boolean"` } -//The service client's operations are safe to be used concurrently. +// SetChar sets the Char field's value. +func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetChar(v string) *OutputService11TestShapeOutputService11TestCaseOperation1Output { + s.Char = &v + return s +} + +// SetDouble sets the Double field's value. +func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetDouble(v float64) *OutputService11TestShapeOutputService11TestCaseOperation1Output { + s.Double = &v + return s +} + +// SetFalseBool sets the FalseBool field's value. +func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetFalseBool(v bool) *OutputService11TestShapeOutputService11TestCaseOperation1Output { + s.FalseBool = &v + return s +} + +// SetFloat sets the Float field's value. +func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetFloat(v float64) *OutputService11TestShapeOutputService11TestCaseOperation1Output { + s.Float = &v + return s +} + +// SetInteger sets the Integer field's value. +func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetInteger(v int64) *OutputService11TestShapeOutputService11TestCaseOperation1Output { + s.Integer = &v + return s +} + +// SetLong sets the Long field's value. +func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetLong(v int64) *OutputService11TestShapeOutputService11TestCaseOperation1Output { + s.Long = &v + return s +} + +// SetStr sets the Str field's value. +func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetStr(v string) *OutputService11TestShapeOutputService11TestCaseOperation1Output { + s.Str = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetTimestamp(v time.Time) *OutputService11TestShapeOutputService11TestCaseOperation1Output { + s.Timestamp = &v + return s +} + +// SetTrueBool sets the TrueBool field's value. +func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetTrueBool(v bool) *OutputService11TestShapeOutputService11TestCaseOperation1Output { + s.TrueBool = &v + return s +} + +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type OutputService12ProtocolTest struct { *client.Client @@ -1492,16 +1671,17 @@ type OutputService12ProtocolTest struct { // svc := outputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func NewOutputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService12ProtocolTest { c := p.ClientConfig("outputservice12protocoltest", cfgs...) - return newOutputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + return newOutputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newOutputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService12ProtocolTest { +func newOutputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OutputService12ProtocolTest { svc := &OutputService12ProtocolTest{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: "outputservice12protocoltest", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "", @@ -1553,7 +1733,6 @@ const opOutputService12TestCaseOperation1 = "OperationName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1Request(input *OutputService12TestShapeOutputService12TestCaseOperation1Input) (req *request.Request, output *OutputService12TestShapeOutputService12TestCaseOperation1Output) { op := &request.Operation{ Name: opOutputService12TestCaseOperation1, @@ -1564,9 +1743,8 @@ func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1Request(i input = &OutputService12TestShapeOutputService12TestCaseOperation1Input{} } - req = c.newRequest(op, input, output) output = &OutputService12TestShapeOutputService12TestCaseOperation1Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1594,6 +1772,12 @@ type OutputService12TestShapeOutputService12TestCaseOperation1Output struct { Foo *string `type:"string"` } +// SetFoo sets the Foo field's value. +func (s *OutputService12TestShapeOutputService12TestCaseOperation1Output) SetFoo(v string) *OutputService12TestShapeOutputService12TestCaseOperation1Output { + s.Foo = &v + return s +} + // // Tests begin here // diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go index 221029baf..c74c19196 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go @@ -127,6 +127,10 @@ func (b *xmlBuilder) buildStruct(value reflect.Value, current *XMLNode, tag refl if field.PkgPath != "" { continue // ignore unexported fields } + if field.Tag.Get("ignore") != "" { + continue + } + mTag := field.Tag if mTag.Get("location") != "" { // skip non-body members diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/unmarshal.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/unmarshal.go index 49f291a85..64b6ddd3e 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/unmarshal.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/unmarshal.go @@ -111,11 +111,8 @@ func parseStruct(r reflect.Value, node *XMLNode, tag reflect.StructTag) error { elems := node.Children[name] if elems == nil { // try to find the field in attributes - for _, a := range node.Attr { - if name == a.Name.Local { - // turn this into a text node for de-serializing - elems = []*XMLNode{{Text: a.Value}} - } + if val, ok := node.findElem(name); ok { + elems = []*XMLNode{{Text: val}} } } diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/xml_to_struct.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/xml_to_struct.go index 72c198a9d..3112512a2 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/xml_to_struct.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/xml_to_struct.go @@ -2,6 +2,7 @@ package xmlutil import ( "encoding/xml" + "fmt" "io" "sort" ) @@ -12,6 +13,9 @@ type XMLNode struct { Children map[string][]*XMLNode `json:",omitempty"` Text string `json:",omitempty"` Attr []xml.Attr `json:",omitempty"` + + namespaces map[string]string + parent *XMLNode } // NewXMLElement returns a pointer to a new XMLNode initialized to default values. @@ -59,21 +63,54 @@ func XMLToStruct(d *xml.Decoder, s *xml.StartElement) (*XMLNode, error) { slice = []*XMLNode{} } node, e := XMLToStruct(d, &el) + out.findNamespaces() if e != nil { return out, e } node.Name = typed.Name + node.findNamespaces() + tempOut := *out + // Save into a temp variable, simply because out gets squashed during + // loop iterations + node.parent = &tempOut slice = append(slice, node) out.Children[name] = slice case xml.EndElement: if s != nil && s.Name.Local == typed.Name.Local { // matching end token return out, nil } + out = &XMLNode{} } } return out, nil } +func (n *XMLNode) findNamespaces() { + ns := map[string]string{} + for _, a := range n.Attr { + if a.Name.Space == "xmlns" { + ns[a.Value] = a.Name.Local + } + } + + n.namespaces = ns +} + +func (n *XMLNode) findElem(name string) (string, bool) { + for node := n; node != nil; node = node.parent { + for _, a := range node.Attr { + namespace := a.Name.Space + if v, ok := node.namespaces[namespace]; ok { + namespace = v + } + if name == fmt.Sprintf("%s:%s", namespace, a.Name.Local) { + return a.Value, true + } + } + } + return "", false +} + // StructToXML writes an XMLNode to a xml.Encoder as tokens. func StructToXML(e *xml.Encoder, node *XMLNode, sorted bool) error { e.EncodeToken(xml.StartElement{Name: node.Name, Attr: node.Attr}) diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/xml_to_struct_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/xml_to_struct_test.go new file mode 100644 index 000000000..d1fd21f44 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/xml_to_struct_test.go @@ -0,0 +1,53 @@ +package xmlutil_test + +import ( + "net/http" + "net/http/httptest" + "testing" + + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/awstesting/unit" + "github.com/aws/aws-sdk-go/service/s3" +) + +func TestUnmarshal(t *testing.T) { + xmlVal := []byte(` + foo-iduserfoo-iduserFULL_CONTROL< + /AccessControlPolicy>`) + + var server = httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + w.Write(xmlVal) + })) + + sess := unit.Session + sess.Config.Endpoint = &server.URL + sess.Config.S3ForcePathStyle = aws.Bool(true) + svc := s3.New(sess) + + out, err := svc.GetBucketAcl(&s3.GetBucketAclInput{ + Bucket: aws.String("foo"), + }) + + assert.NoError(t, err) + + expected := &s3.GetBucketAclOutput{ + Grants: []*s3.Grant{ + { + Grantee: &s3.Grantee{ + DisplayName: aws.String("user"), + ID: aws.String("foo-id"), + Type: aws.String("type"), + }, + Permission: aws.String("FULL_CONTROL"), + }, + }, + + Owner: &s3.Owner{ + DisplayName: aws.String("user"), + ID: aws.String("foo-id"), + }, + } + assert.Equal(t, expected, out) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/acm/acmiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/acm/acmiface/interface.go index 65d9daa86..bede8989b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/acm/acmiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/acm/acmiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockACMClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/acm/api.go b/vendor/github.com/aws/aws-sdk-go/service/acm/api.go index c4f832133..d17990db4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/acm/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/acm/api.go @@ -39,6 +39,7 @@ const opAddTagsToCertificate = "AddTagsToCertificate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate func (c *ACM) AddTagsToCertificateRequest(input *AddTagsToCertificateInput) (req *request.Request, output *AddTagsToCertificateOutput) { op := &request.Operation{ Name: opAddTagsToCertificate, @@ -50,11 +51,10 @@ func (c *ACM) AddTagsToCertificateRequest(input *AddTagsToCertificateInput) (req input = &AddTagsToCertificateInput{} } + output = &AddTagsToCertificateOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AddTagsToCertificateOutput{} - req.Data = output return } @@ -86,20 +86,21 @@ func (c *ACM) AddTagsToCertificateRequest(input *AddTagsToCertificateInput) (req // API operation AddTagsToCertificate for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified certificate cannot be found in the caller's account, or the // caller's account cannot be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * InvalidTagException +// * ErrCodeInvalidTagException "InvalidTagException" // One or both of the values that make up the key-value pair is not valid. For // example, you cannot specify a tag value that begins with aws:. // -// * TooManyTagsException +// * ErrCodeTooManyTagsException "TooManyTagsException" // The request contains too many tags. Try the request again with fewer tags. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate func (c *ACM) AddTagsToCertificate(input *AddTagsToCertificateInput) (*AddTagsToCertificateOutput, error) { req, out := c.AddTagsToCertificateRequest(input) err := req.Send() @@ -132,6 +133,7 @@ const opDeleteCertificate = "DeleteCertificate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate func (c *ACM) DeleteCertificateRequest(input *DeleteCertificateInput) (req *request.Request, output *DeleteCertificateOutput) { op := &request.Operation{ Name: opDeleteCertificate, @@ -143,11 +145,10 @@ func (c *ACM) DeleteCertificateRequest(input *DeleteCertificateInput) (req *requ input = &DeleteCertificateInput{} } + output = &DeleteCertificateOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteCertificateOutput{} - req.Data = output return } @@ -159,9 +160,9 @@ func (c *ACM) DeleteCertificateRequest(input *DeleteCertificateInput) (req *requ // by calling the GetCertificate action. The certificate will not be available // for use by other AWS services. // -// You cannot delete an ACM Certificate that is being used by another AWS -// service. To delete a certificate that is in use, the certificate association -// must first be removed. +// You cannot delete an ACM Certificate that is being used by another AWS service. +// To delete a certificate that is in use, the certificate association must +// first be removed. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -171,17 +172,18 @@ func (c *ACM) DeleteCertificateRequest(input *DeleteCertificateInput) (req *requ // API operation DeleteCertificate for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified certificate cannot be found in the caller's account, or the // caller's account cannot be found. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The certificate is in use by another AWS service in the caller's account. // Remove the association and try again. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate func (c *ACM) DeleteCertificate(input *DeleteCertificateInput) (*DeleteCertificateOutput, error) { req, out := c.DeleteCertificateRequest(input) err := req.Send() @@ -214,6 +216,7 @@ const opDescribeCertificate = "DescribeCertificate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate func (c *ACM) DescribeCertificateRequest(input *DescribeCertificateInput) (req *request.Request, output *DescribeCertificateOutput) { op := &request.Operation{ Name: opDescribeCertificate, @@ -225,19 +228,14 @@ func (c *ACM) DescribeCertificateRequest(input *DescribeCertificateInput) (req * input = &DescribeCertificateInput{} } - req = c.newRequest(op, input, output) output = &DescribeCertificateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeCertificate API operation for AWS Certificate Manager. // -// Returns a list of the fields contained in the specified ACM Certificate. -// For example, this action returns the certificate status, a flag that indicates -// whether the certificate is associated with any other AWS service, and the -// date at which the certificate request was created. You specify the ACM Certificate -// on input by its Amazon Resource Name (ARN). +// Returns detailed metadata about the specified ACM Certificate. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -247,13 +245,14 @@ func (c *ACM) DescribeCertificateRequest(input *DescribeCertificateInput) (req * // API operation DescribeCertificate for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified certificate cannot be found in the caller's account, or the // caller's account cannot be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate func (c *ACM) DescribeCertificate(input *DescribeCertificateInput) (*DescribeCertificateOutput, error) { req, out := c.DescribeCertificateRequest(input) err := req.Send() @@ -286,6 +285,7 @@ const opGetCertificate = "GetCertificate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate func (c *ACM) GetCertificateRequest(input *GetCertificateInput) (req *request.Request, output *GetCertificateOutput) { op := &request.Operation{ Name: opGetCertificate, @@ -297,9 +297,8 @@ func (c *ACM) GetCertificateRequest(input *GetCertificateInput) (req *request.Re input = &GetCertificateInput{} } - req = c.newRequest(op, input, output) output = &GetCertificateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -312,7 +311,7 @@ func (c *ACM) GetCertificateRequest(input *GetCertificateInput) (req *request.Re // you want to decode the certificate chain to see the individual certificate // fields, you can use OpenSSL. // -// Currently, ACM Certificates can be used only with Elastic Load Balancing +// Currently, ACM Certificates can be used only with Elastic Load Balancing // and Amazon CloudFront. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -323,17 +322,18 @@ func (c *ACM) GetCertificateRequest(input *GetCertificateInput) (req *request.Re // API operation GetCertificate for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified certificate cannot be found in the caller's account, or the // caller's account cannot be found. // -// * RequestInProgressException +// * ErrCodeRequestInProgressException "RequestInProgressException" // The certificate request is in process and the certificate in your account // has not yet been issued. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate func (c *ACM) GetCertificate(input *GetCertificateInput) (*GetCertificateOutput, error) { req, out := c.GetCertificateRequest(input) err := req.Send() @@ -366,6 +366,7 @@ const opImportCertificate = "ImportCertificate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate func (c *ACM) ImportCertificateRequest(input *ImportCertificateInput) (req *request.Request, output *ImportCertificateOutput) { op := &request.Operation{ Name: opImportCertificate, @@ -377,9 +378,8 @@ func (c *ACM) ImportCertificateRequest(input *ImportCertificateInput) (req *requ input = &ImportCertificateInput{} } - req = c.newRequest(op, input, output) output = &ImportCertificateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -388,10 +388,10 @@ func (c *ACM) ImportCertificateRequest(input *ImportCertificateInput) (req *requ // Imports an SSL/TLS certificate into AWS Certificate Manager (ACM) to use // with ACM's integrated AWS services (http://docs.aws.amazon.com/acm/latest/userguide/acm-services.html). // -// ACM does not provide managed renewal (http://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html) +// ACM does not provide managed renewal (http://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html) // for certificates that you import. // -// For more information about importing certificates into ACM, including the +// For more information about importing certificates into ACM, including the // differences between certificates that you import and those that ACM provides, // see Importing Certificates (http://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html) // in the AWS Certificate Manager User Guide. @@ -420,17 +420,18 @@ func (c *ACM) ImportCertificateRequest(input *ImportCertificateInput) (req *requ // API operation ImportCertificate for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified certificate cannot be found in the caller's account, or the // caller's account cannot be found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // An ACM limit has been exceeded. For example, you may have input more domains // than are allowed or you've requested too many certificates for your account. // See the exception message returned by ACM to determine which limit you have // violated. For more information about ACM limits, see the Limits (http://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html) // topic. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate func (c *ACM) ImportCertificate(input *ImportCertificateInput) (*ImportCertificateOutput, error) { req, out := c.ImportCertificateRequest(input) err := req.Send() @@ -463,6 +464,7 @@ const opListCertificates = "ListCertificates" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates func (c *ACM) ListCertificatesRequest(input *ListCertificatesInput) (req *request.Request, output *ListCertificatesOutput) { op := &request.Operation{ Name: opListCertificates, @@ -480,9 +482,8 @@ func (c *ACM) ListCertificatesRequest(input *ListCertificatesInput) (req *reques input = &ListCertificatesInput{} } - req = c.newRequest(op, input, output) output = &ListCertificatesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -498,6 +499,7 @@ func (c *ACM) ListCertificatesRequest(input *ListCertificatesInput) (req *reques // // See the AWS API reference guide for AWS Certificate Manager's // API operation ListCertificates for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates func (c *ACM) ListCertificates(input *ListCertificatesInput) (*ListCertificatesOutput, error) { req, out := c.ListCertificatesRequest(input) err := req.Send() @@ -555,6 +557,7 @@ const opListTagsForCertificate = "ListTagsForCertificate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate func (c *ACM) ListTagsForCertificateRequest(input *ListTagsForCertificateInput) (req *request.Request, output *ListTagsForCertificateOutput) { op := &request.Operation{ Name: opListTagsForCertificate, @@ -566,18 +569,17 @@ func (c *ACM) ListTagsForCertificateRequest(input *ListTagsForCertificateInput) input = &ListTagsForCertificateInput{} } - req = c.newRequest(op, input, output) output = &ListTagsForCertificateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // ListTagsForCertificate API operation for AWS Certificate Manager. // -// Lists the tags that have been applied to the ACM Certificate. Use the certificate -// ARN to specify the certificate. To add a tag to an ACM Certificate, use the -// AddTagsToCertificate action. To delete a tag, use the RemoveTagsFromCertificate -// action. +// Lists the tags that have been applied to the ACM Certificate. Use the certificate's +// Amazon Resource Name (ARN) to specify the certificate. To add a tag to an +// ACM Certificate, use the AddTagsToCertificate action. To delete a tag, use +// the RemoveTagsFromCertificate action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -587,13 +589,14 @@ func (c *ACM) ListTagsForCertificateRequest(input *ListTagsForCertificateInput) // API operation ListTagsForCertificate for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified certificate cannot be found in the caller's account, or the // caller's account cannot be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate func (c *ACM) ListTagsForCertificate(input *ListTagsForCertificateInput) (*ListTagsForCertificateOutput, error) { req, out := c.ListTagsForCertificateRequest(input) err := req.Send() @@ -626,6 +629,7 @@ const opRemoveTagsFromCertificate = "RemoveTagsFromCertificate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificate func (c *ACM) RemoveTagsFromCertificateRequest(input *RemoveTagsFromCertificateInput) (req *request.Request, output *RemoveTagsFromCertificateOutput) { op := &request.Operation{ Name: opRemoveTagsFromCertificate, @@ -637,11 +641,10 @@ func (c *ACM) RemoveTagsFromCertificateRequest(input *RemoveTagsFromCertificateI input = &RemoveTagsFromCertificateInput{} } + output = &RemoveTagsFromCertificateOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RemoveTagsFromCertificateOutput{} - req.Data = output return } @@ -664,17 +667,18 @@ func (c *ACM) RemoveTagsFromCertificateRequest(input *RemoveTagsFromCertificateI // API operation RemoveTagsFromCertificate for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified certificate cannot be found in the caller's account, or the // caller's account cannot be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * InvalidTagException +// * ErrCodeInvalidTagException "InvalidTagException" // One or both of the values that make up the key-value pair is not valid. For // example, you cannot specify a tag value that begins with aws:. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificate func (c *ACM) RemoveTagsFromCertificate(input *RemoveTagsFromCertificateInput) (*RemoveTagsFromCertificateOutput, error) { req, out := c.RemoveTagsFromCertificateRequest(input) err := req.Send() @@ -707,6 +711,7 @@ const opRequestCertificate = "RequestCertificate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate func (c *ACM) RequestCertificateRequest(input *RequestCertificateInput) (req *request.Request, output *RequestCertificateOutput) { op := &request.Operation{ Name: opRequestCertificate, @@ -718,9 +723,8 @@ func (c *ACM) RequestCertificateRequest(input *RequestCertificateInput) (req *re input = &RequestCertificateInput{} } - req = c.newRequest(op, input, output) output = &RequestCertificateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -742,16 +746,17 @@ func (c *ACM) RequestCertificateRequest(input *RequestCertificateInput) (req *re // API operation RequestCertificate for usage and error information. // // Returned Error Codes: -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // An ACM limit has been exceeded. For example, you may have input more domains // than are allowed or you've requested too many certificates for your account. // See the exception message returned by ACM to determine which limit you have // violated. For more information about ACM limits, see the Limits (http://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html) // topic. // -// * InvalidDomainValidationOptionsException +// * ErrCodeInvalidDomainValidationOptionsException "InvalidDomainValidationOptionsException" // One or more values in the DomainValidationOption structure is incorrect. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate func (c *ACM) RequestCertificate(input *RequestCertificateInput) (*RequestCertificateOutput, error) { req, out := c.RequestCertificateRequest(input) err := req.Send() @@ -784,6 +789,7 @@ const opResendValidationEmail = "ResendValidationEmail" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail func (c *ACM) ResendValidationEmailRequest(input *ResendValidationEmailInput) (req *request.Request, output *ResendValidationEmailOutput) { op := &request.Operation{ Name: opResendValidationEmail, @@ -795,11 +801,10 @@ func (c *ACM) ResendValidationEmailRequest(input *ResendValidationEmailInput) (r input = &ResendValidationEmailInput{} } + output = &ResendValidationEmailOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ResendValidationEmailOutput{} - req.Data = output return } @@ -823,35 +828,37 @@ func (c *ACM) ResendValidationEmailRequest(input *ResendValidationEmailInput) (r // API operation ResendValidationEmail for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified certificate cannot be found in the caller's account, or the // caller's account cannot be found. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // Processing has reached an invalid state. For example, this exception can // occur if the specified domain is not using email validation, or the current // certificate status does not permit the requested operation. See the exception // message returned by ACM to determine which state is not valid. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * InvalidDomainValidationOptionsException +// * ErrCodeInvalidDomainValidationOptionsException "InvalidDomainValidationOptionsException" // One or more values in the DomainValidationOption structure is incorrect. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail func (c *ACM) ResendValidationEmail(input *ResendValidationEmailInput) (*ResendValidationEmailOutput, error) { req, out := c.ResendValidationEmailRequest(input) err := req.Send() return out, err } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificateRequest type AddTagsToCertificateInput struct { _ struct{} `type:"structure"` // String that contains the ARN of the ACM Certificate to which the tag is to // be applied. This must be of the form: // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 + // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). @@ -907,6 +914,19 @@ func (s *AddTagsToCertificateInput) Validate() error { return nil } +// SetCertificateArn sets the CertificateArn field's value. +func (s *AddTagsToCertificateInput) SetCertificateArn(v string) *AddTagsToCertificateInput { + s.CertificateArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsToCertificateInput) SetTags(v []*Tag) *AddTagsToCertificateInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificateOutput type AddTagsToCertificateOutput struct { _ struct{} `type:"structure"` } @@ -921,8 +941,9 @@ func (s AddTagsToCertificateOutput) GoString() string { return s.String() } -// Contains detailed metadata about an ACM Certificate. This structure is returned -// in the response to a DescribeCertificate request. +// Contains metadata about an ACM certificate. This structure is returned in +// the response to a DescribeCertificate request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/CertificateDetail type CertificateDetail struct { _ struct{} `type:"structure"` @@ -939,8 +960,9 @@ type CertificateDetail struct { // or example.com. DomainName *string `min:"1" type:"string"` - // Contains information about the email address or addresses used for domain - // validation. This field exists only when the certificate type is AMAZON_ISSUED. + // Contains information about the initial validation of each domain name that + // occurs as a result of the RequestCertificate request. This field exists only + // when the certificate type is AMAZON_ISSUED. DomainValidationOptions []*DomainValidation `min:"1" type:"list"` // The reason the certificate request failed. This value exists only when the @@ -974,6 +996,11 @@ type CertificateDetail struct { // The time before which the certificate is not valid. NotBefore *time.Time `type:"timestamp" timestampFormat:"unix"` + // Contains information about the status of ACM's managed renewal (http://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html) + // for the certificate. This field exists only when the certificate type is + // AMAZON_ISSUED. + RenewalSummary *RenewalSummary `type:"structure"` + // The reason the certificate was revoked. This value exists only when the certificate // status is REVOKED. RevocationReason *string `type:"string" enum:"RevocationReason"` @@ -1022,13 +1049,140 @@ func (s CertificateDetail) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *CertificateDetail) SetCertificateArn(v string) *CertificateDetail { + s.CertificateArn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *CertificateDetail) SetCreatedAt(v time.Time) *CertificateDetail { + s.CreatedAt = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *CertificateDetail) SetDomainName(v string) *CertificateDetail { + s.DomainName = &v + return s +} + +// SetDomainValidationOptions sets the DomainValidationOptions field's value. +func (s *CertificateDetail) SetDomainValidationOptions(v []*DomainValidation) *CertificateDetail { + s.DomainValidationOptions = v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *CertificateDetail) SetFailureReason(v string) *CertificateDetail { + s.FailureReason = &v + return s +} + +// SetImportedAt sets the ImportedAt field's value. +func (s *CertificateDetail) SetImportedAt(v time.Time) *CertificateDetail { + s.ImportedAt = &v + return s +} + +// SetInUseBy sets the InUseBy field's value. +func (s *CertificateDetail) SetInUseBy(v []*string) *CertificateDetail { + s.InUseBy = v + return s +} + +// SetIssuedAt sets the IssuedAt field's value. +func (s *CertificateDetail) SetIssuedAt(v time.Time) *CertificateDetail { + s.IssuedAt = &v + return s +} + +// SetIssuer sets the Issuer field's value. +func (s *CertificateDetail) SetIssuer(v string) *CertificateDetail { + s.Issuer = &v + return s +} + +// SetKeyAlgorithm sets the KeyAlgorithm field's value. +func (s *CertificateDetail) SetKeyAlgorithm(v string) *CertificateDetail { + s.KeyAlgorithm = &v + return s +} + +// SetNotAfter sets the NotAfter field's value. +func (s *CertificateDetail) SetNotAfter(v time.Time) *CertificateDetail { + s.NotAfter = &v + return s +} + +// SetNotBefore sets the NotBefore field's value. +func (s *CertificateDetail) SetNotBefore(v time.Time) *CertificateDetail { + s.NotBefore = &v + return s +} + +// SetRenewalSummary sets the RenewalSummary field's value. +func (s *CertificateDetail) SetRenewalSummary(v *RenewalSummary) *CertificateDetail { + s.RenewalSummary = v + return s +} + +// SetRevocationReason sets the RevocationReason field's value. +func (s *CertificateDetail) SetRevocationReason(v string) *CertificateDetail { + s.RevocationReason = &v + return s +} + +// SetRevokedAt sets the RevokedAt field's value. +func (s *CertificateDetail) SetRevokedAt(v time.Time) *CertificateDetail { + s.RevokedAt = &v + return s +} + +// SetSerial sets the Serial field's value. +func (s *CertificateDetail) SetSerial(v string) *CertificateDetail { + s.Serial = &v + return s +} + +// SetSignatureAlgorithm sets the SignatureAlgorithm field's value. +func (s *CertificateDetail) SetSignatureAlgorithm(v string) *CertificateDetail { + s.SignatureAlgorithm = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CertificateDetail) SetStatus(v string) *CertificateDetail { + s.Status = &v + return s +} + +// SetSubject sets the Subject field's value. +func (s *CertificateDetail) SetSubject(v string) *CertificateDetail { + s.Subject = &v + return s +} + +// SetSubjectAlternativeNames sets the SubjectAlternativeNames field's value. +func (s *CertificateDetail) SetSubjectAlternativeNames(v []*string) *CertificateDetail { + s.SubjectAlternativeNames = v + return s +} + +// SetType sets the Type field's value. +func (s *CertificateDetail) SetType(v string) *CertificateDetail { + s.Type = &v + return s +} + // This structure is returned in the response object of ListCertificates action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/CertificateSummary type CertificateSummary struct { _ struct{} `type:"structure"` // Amazon Resource Name (ARN) of the certificate. This is of the form: // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 + // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). @@ -1049,13 +1203,26 @@ func (s CertificateSummary) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *CertificateSummary) SetCertificateArn(v string) *CertificateSummary { + s.CertificateArn = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *CertificateSummary) SetDomainName(v string) *CertificateSummary { + s.DomainName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificateRequest type DeleteCertificateInput struct { _ struct{} `type:"structure"` // String that contains the ARN of the ACM Certificate to be deleted. This must // be of the form: // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 + // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). @@ -1090,6 +1257,13 @@ func (s *DeleteCertificateInput) Validate() error { return nil } +// SetCertificateArn sets the CertificateArn field's value. +func (s *DeleteCertificateInput) SetCertificateArn(v string) *DeleteCertificateInput { + s.CertificateArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificateOutput type DeleteCertificateOutput struct { _ struct{} `type:"structure"` } @@ -1104,12 +1278,14 @@ func (s DeleteCertificateOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificateRequest type DescribeCertificateInput struct { _ struct{} `type:"structure"` - // String that contains an ACM Certificate ARN. The ARN must be of the form: + // The Amazon Resource Name (ARN) of the ACM Certificate. The ARN must have + // the following form: // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 + // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). @@ -1144,10 +1320,17 @@ func (s *DescribeCertificateInput) Validate() error { return nil } +// SetCertificateArn sets the CertificateArn field's value. +func (s *DescribeCertificateInput) SetCertificateArn(v string) *DescribeCertificateInput { + s.CertificateArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificateResponse type DescribeCertificateOutput struct { _ struct{} `type:"structure"` - // Contains a CertificateDetail structure that lists the fields of an ACM Certificate. + // Metadata about an ACM certificate. Certificate *CertificateDetail `type:"structure"` } @@ -1161,23 +1344,31 @@ func (s DescribeCertificateOutput) GoString() string { return s.String() } -// Structure that contains the domain name, the base validation domain to which -// validation email is sent, and the email addresses used to validate the domain -// identity. +// SetCertificate sets the Certificate field's value. +func (s *DescribeCertificateOutput) SetCertificate(v *CertificateDetail) *DescribeCertificateOutput { + s.Certificate = v + return s +} + +// Contains information about the validation of each domain name in the certificate. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DomainValidation type DomainValidation struct { _ struct{} `type:"structure"` - // Fully Qualified Domain Name (FQDN) of the form www.example.com or example.com. + // A fully qualified domain name (FQDN) in the certificate. For example, www.example.com + // or example.com. // // DomainName is a required field DomainName *string `min:"1" type:"string" required:"true"` - // The base validation domain that acts as the suffix of the email addresses - // that are used to send the emails. + // The domain name that ACM used to send domain validation emails. ValidationDomain *string `min:"1" type:"string"` - // A list of contact address for the domain registrant. + // A list of email addresses that ACM used to send domain validation emails. ValidationEmails []*string `type:"list"` + + // The validation status of the domain name. + ValidationStatus *string `type:"string" enum:"DomainStatus"` } // String returns the string representation @@ -1190,32 +1381,57 @@ func (s DomainValidation) GoString() string { return s.String() } -// This structure is used in the request object of the RequestCertificate action. +// SetDomainName sets the DomainName field's value. +func (s *DomainValidation) SetDomainName(v string) *DomainValidation { + s.DomainName = &v + return s +} + +// SetValidationDomain sets the ValidationDomain field's value. +func (s *DomainValidation) SetValidationDomain(v string) *DomainValidation { + s.ValidationDomain = &v + return s +} + +// SetValidationEmails sets the ValidationEmails field's value. +func (s *DomainValidation) SetValidationEmails(v []*string) *DomainValidation { + s.ValidationEmails = v + return s +} + +// SetValidationStatus sets the ValidationStatus field's value. +func (s *DomainValidation) SetValidationStatus(v string) *DomainValidation { + s.ValidationStatus = &v + return s +} + +// Contains information about the domain names that you want ACM to use to send +// you emails to validate your ownership of the domain. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DomainValidationOption type DomainValidationOption struct { _ struct{} `type:"structure"` - // Fully Qualified Domain Name (FQDN) of the certificate being requested. + // A fully qualified domain name (FQDN) in the certificate request. // // DomainName is a required field DomainName *string `min:"1" type:"string" required:"true"` - // The domain to which validation email is sent. This is the base validation - // domain that will act as the suffix of the email addresses. This must be the - // same as the DomainName value or a superdomain of the DomainName value. For - // example, if you requested a certificate for site.subdomain.example.com and - // specify a ValidationDomain of subdomain.example.com, ACM sends email to the - // domain registrant, technical contact, and administrative contact in WHOIS - // for the base domain and the following five addresses: + // The domain name that you want ACM to use to send you validation emails. This + // domain name is the suffix of the email addresses that you want ACM to use. + // This must be the same as the DomainName value or a superdomain of the DomainName + // value. For example, if you request a certificate for testing.example.com, + // you can specify example.com for this value. In that case, ACM sends domain + // validation emails to the following five addresses: // - // admin@subdomain.example.com + // * admin@example.com // - // administrator@subdomain.example.com + // * administrator@example.com // - // hostmaster@subdomain.example.com + // * hostmaster@example.com // - // postmaster@subdomain.example.com + // * postmaster@example.com // - // webmaster@subdomain.example.com + // * webmaster@example.com // // ValidationDomain is a required field ValidationDomain *string `min:"1" type:"string" required:"true"` @@ -1253,12 +1469,25 @@ func (s *DomainValidationOption) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DomainValidationOption) SetDomainName(v string) *DomainValidationOption { + s.DomainName = &v + return s +} + +// SetValidationDomain sets the ValidationDomain field's value. +func (s *DomainValidationOption) SetValidationDomain(v string) *DomainValidationOption { + s.ValidationDomain = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificateRequest type GetCertificateInput struct { _ struct{} `type:"structure"` // String that contains a certificate ARN in the following format: // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 + // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). @@ -1293,6 +1522,13 @@ func (s *GetCertificateInput) Validate() error { return nil } +// SetCertificateArn sets the CertificateArn field's value. +func (s *GetCertificateInput) SetCertificateArn(v string) *GetCertificateInput { + s.CertificateArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificateResponse type GetCertificateOutput struct { _ struct{} `type:"structure"` @@ -1315,18 +1551,31 @@ func (s GetCertificateOutput) GoString() string { return s.String() } +// SetCertificate sets the Certificate field's value. +func (s *GetCertificateOutput) SetCertificate(v string) *GetCertificateOutput { + s.Certificate = &v + return s +} + +// SetCertificateChain sets the CertificateChain field's value. +func (s *GetCertificateOutput) SetCertificateChain(v string) *GetCertificateOutput { + s.CertificateChain = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificateRequest type ImportCertificateInput struct { _ struct{} `type:"structure"` // The certificate to import. It must meet the following requirements: // - // Must be PEM-encoded. + // * Must be PEM-encoded. // - // Must contain a 1024-bit or 2048-bit RSA public key. + // * Must contain a 1024-bit or 2048-bit RSA public key. // - // Must be valid at the time of import. You cannot import a certificate before - // its validity period begins (the certificate's NotBefore date) or after it - // expires (the certificate's NotAfter date). + // * Must be valid at the time of import. You cannot import a certificate + // before its validity period begins (the certificate's NotBefore date) or + // after it expires (the certificate's NotAfter date). // // Certificate is automatically base64 encoded/decoded by the SDK. // @@ -1346,10 +1595,10 @@ type ImportCertificateInput struct { // The private key that matches the public key in the certificate. It must meet // the following requirements: // - // Must be PEM-encoded. + // * Must be PEM-encoded. // - // Must be unencrypted. You cannot import a private key that is protected - // by a password or passphrase. + // * Must be unencrypted. You cannot import a private key that is protected + // by a password or passphrase. // // PrivateKey is automatically base64 encoded/decoded by the SDK. // @@ -1395,6 +1644,31 @@ func (s *ImportCertificateInput) Validate() error { return nil } +// SetCertificate sets the Certificate field's value. +func (s *ImportCertificateInput) SetCertificate(v []byte) *ImportCertificateInput { + s.Certificate = v + return s +} + +// SetCertificateArn sets the CertificateArn field's value. +func (s *ImportCertificateInput) SetCertificateArn(v string) *ImportCertificateInput { + s.CertificateArn = &v + return s +} + +// SetCertificateChain sets the CertificateChain field's value. +func (s *ImportCertificateInput) SetCertificateChain(v []byte) *ImportCertificateInput { + s.CertificateChain = v + return s +} + +// SetPrivateKey sets the PrivateKey field's value. +func (s *ImportCertificateInput) SetPrivateKey(v []byte) *ImportCertificateInput { + s.PrivateKey = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificateResponse type ImportCertificateOutput struct { _ struct{} `type:"structure"` @@ -1413,6 +1687,13 @@ func (s ImportCertificateOutput) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *ImportCertificateOutput) SetCertificateArn(v string) *ImportCertificateOutput { + s.CertificateArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificatesRequest type ListCertificatesInput struct { _ struct{} `type:"structure"` @@ -1457,6 +1738,25 @@ func (s *ListCertificatesInput) Validate() error { return nil } +// SetCertificateStatuses sets the CertificateStatuses field's value. +func (s *ListCertificatesInput) SetCertificateStatuses(v []*string) *ListCertificatesInput { + s.CertificateStatuses = v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListCertificatesInput) SetMaxItems(v int64) *ListCertificatesInput { + s.MaxItems = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCertificatesInput) SetNextToken(v string) *ListCertificatesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificatesResponse type ListCertificatesOutput struct { _ struct{} `type:"structure"` @@ -1478,13 +1778,26 @@ func (s ListCertificatesOutput) GoString() string { return s.String() } +// SetCertificateSummaryList sets the CertificateSummaryList field's value. +func (s *ListCertificatesOutput) SetCertificateSummaryList(v []*CertificateSummary) *ListCertificatesOutput { + s.CertificateSummaryList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCertificatesOutput) SetNextToken(v string) *ListCertificatesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificateRequest type ListTagsForCertificateInput struct { _ struct{} `type:"structure"` // String that contains the ARN of the ACM Certificate for which you want to - // list the tags. This must be of the form: + // list the tags. This has the following form: // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 + // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). @@ -1519,6 +1832,13 @@ func (s *ListTagsForCertificateInput) Validate() error { return nil } +// SetCertificateArn sets the CertificateArn field's value. +func (s *ListTagsForCertificateInput) SetCertificateArn(v string) *ListTagsForCertificateInput { + s.CertificateArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificateResponse type ListTagsForCertificateOutput struct { _ struct{} `type:"structure"` @@ -1536,13 +1856,20 @@ func (s ListTagsForCertificateOutput) GoString() string { return s.String() } +// SetTags sets the Tags field's value. +func (s *ListTagsForCertificateOutput) SetTags(v []*Tag) *ListTagsForCertificateOutput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificateRequest type RemoveTagsFromCertificateInput struct { _ struct{} `type:"structure"` // String that contains the ARN of the ACM Certificate with one or more tags // that you want to remove. This must be of the form: // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 + // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). @@ -1598,6 +1925,19 @@ func (s *RemoveTagsFromCertificateInput) Validate() error { return nil } +// SetCertificateArn sets the CertificateArn field's value. +func (s *RemoveTagsFromCertificateInput) SetCertificateArn(v string) *RemoveTagsFromCertificateInput { + s.CertificateArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *RemoveTagsFromCertificateInput) SetTags(v []*Tag) *RemoveTagsFromCertificateInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificateOutput type RemoveTagsFromCertificateOutput struct { _ struct{} `type:"structure"` } @@ -1612,33 +1952,65 @@ func (s RemoveTagsFromCertificateOutput) GoString() string { return s.String() } +// Contains information about the status of ACM's managed renewal (http://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html) +// for the certificate. This structure exists only when the certificate type +// is AMAZON_ISSUED. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RenewalSummary +type RenewalSummary struct { + _ struct{} `type:"structure"` + + // Contains information about the validation of each domain name in the certificate, + // as it pertains to ACM's managed renewal (http://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html). + // This is different from the initial validation that occurs as a result of + // the RequestCertificate request. This field exists only when the certificate + // type is AMAZON_ISSUED. + // + // DomainValidationOptions is a required field + DomainValidationOptions []*DomainValidation `min:"1" type:"list" required:"true"` + + // The status of ACM's managed renewal (http://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html) + // of the certificate. + // + // RenewalStatus is a required field + RenewalStatus *string `type:"string" required:"true" enum:"RenewalStatus"` +} + +// String returns the string representation +func (s RenewalSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RenewalSummary) GoString() string { + return s.String() +} + +// SetDomainValidationOptions sets the DomainValidationOptions field's value. +func (s *RenewalSummary) SetDomainValidationOptions(v []*DomainValidation) *RenewalSummary { + s.DomainValidationOptions = v + return s +} + +// SetRenewalStatus sets the RenewalStatus field's value. +func (s *RenewalSummary) SetRenewalStatus(v string) *RenewalSummary { + s.RenewalStatus = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificateRequest type RequestCertificateInput struct { _ struct{} `type:"structure"` // Fully qualified domain name (FQDN), such as www.example.com, of the site - // you want to secure with an ACM Certificate. Use an asterisk (*) to create + // that you want to secure with an ACM Certificate. Use an asterisk (*) to create // a wildcard certificate that protects several sites in the same domain. For // example, *.example.com protects www.example.com, site.example.com, and images.example.com. // // DomainName is a required field DomainName *string `min:"1" type:"string" required:"true"` - // The base validation domain that will act as the suffix of the email addresses - // that are used to send the emails. This must be the same as the Domain value - // or a superdomain of the Domain value. For example, if you requested a certificate - // for test.example.com and specify DomainValidationOptions of example.com, - // ACM sends email to the domain registrant, technical contact, and administrative - // contact in WHOIS and the following five addresses: - // - // admin@example.com - // - // administrator@example.com - // - // hostmaster@example.com - // - // postmaster@example.com - // - // webmaster@example.com + // The domain name that you want ACM to use to send you emails to validate your + // ownership of the domain. DomainValidationOptions []*DomainValidationOption `min:"1" type:"list"` // Customer chosen string that can be used to distinguish between calls to RequestCertificate. @@ -1701,13 +2073,38 @@ func (s *RequestCertificateInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *RequestCertificateInput) SetDomainName(v string) *RequestCertificateInput { + s.DomainName = &v + return s +} + +// SetDomainValidationOptions sets the DomainValidationOptions field's value. +func (s *RequestCertificateInput) SetDomainValidationOptions(v []*DomainValidationOption) *RequestCertificateInput { + s.DomainValidationOptions = v + return s +} + +// SetIdempotencyToken sets the IdempotencyToken field's value. +func (s *RequestCertificateInput) SetIdempotencyToken(v string) *RequestCertificateInput { + s.IdempotencyToken = &v + return s +} + +// SetSubjectAlternativeNames sets the SubjectAlternativeNames field's value. +func (s *RequestCertificateInput) SetSubjectAlternativeNames(v []*string) *RequestCertificateInput { + s.SubjectAlternativeNames = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificateResponse type RequestCertificateOutput struct { _ struct{} `type:"structure"` // String that contains the ARN of the issued certificate. This must be of the // form: // - // arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012 + // arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012 CertificateArn *string `min:"20" type:"string"` } @@ -1721,6 +2118,13 @@ func (s RequestCertificateOutput) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *RequestCertificateOutput) SetCertificateArn(v string) *RequestCertificateOutput { + s.CertificateArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmailRequest type ResendValidationEmailInput struct { _ struct{} `type:"structure"` @@ -1731,12 +2135,12 @@ type ResendValidationEmailInput struct { // // The ARN must be of the form: // - // arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012 + // arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012 // // CertificateArn is a required field CertificateArn *string `min:"20" type:"string" required:"true"` - // The Fully Qualified Domain Name (FQDN) of the certificate that needs to be + // The fully qualified domain name (FQDN) of the certificate that needs to be // validated. // // Domain is a required field @@ -1749,15 +2153,15 @@ type ResendValidationEmailInput struct { // ACM sends email to the domain registrant, technical contact, and administrative // contact in WHOIS and the following five addresses: // - // admin@subdomain.example.com + // * admin@subdomain.example.com // - // administrator@subdomain.example.com + // * administrator@subdomain.example.com // - // hostmaster@subdomain.example.com + // * hostmaster@subdomain.example.com // - // postmaster@subdomain.example.com + // * postmaster@subdomain.example.com // - // webmaster@subdomain.example.com + // * webmaster@subdomain.example.com // // ValidationDomain is a required field ValidationDomain *string `min:"1" type:"string" required:"true"` @@ -1801,6 +2205,25 @@ func (s *ResendValidationEmailInput) Validate() error { return nil } +// SetCertificateArn sets the CertificateArn field's value. +func (s *ResendValidationEmailInput) SetCertificateArn(v string) *ResendValidationEmailInput { + s.CertificateArn = &v + return s +} + +// SetDomain sets the Domain field's value. +func (s *ResendValidationEmailInput) SetDomain(v string) *ResendValidationEmailInput { + s.Domain = &v + return s +} + +// SetValidationDomain sets the ValidationDomain field's value. +func (s *ResendValidationEmailInput) SetValidationDomain(v string) *ResendValidationEmailInput { + s.ValidationDomain = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmailOutput type ResendValidationEmailOutput struct { _ struct{} `type:"structure"` } @@ -1816,6 +2239,7 @@ func (s ResendValidationEmailOutput) GoString() string { } // A key-value pair that identifies or specifies metadata about an ACM resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/Tag type Tag struct { _ struct{} `type:"structure"` @@ -1854,6 +2278,18 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + const ( // CertificateStatusPendingValidation is a CertificateStatus enum value CertificateStatusPendingValidation = "PENDING_VALIDATION" @@ -1885,6 +2321,17 @@ const ( CertificateTypeAmazonIssued = "AMAZON_ISSUED" ) +const ( + // DomainStatusPendingValidation is a DomainStatus enum value + DomainStatusPendingValidation = "PENDING_VALIDATION" + + // DomainStatusSuccess is a DomainStatus enum value + DomainStatusSuccess = "SUCCESS" + + // DomainStatusFailed is a DomainStatus enum value + DomainStatusFailed = "FAILED" +) + const ( // FailureReasonNoAvailableContacts is a FailureReason enum value FailureReasonNoAvailableContacts = "NO_AVAILABLE_CONTACTS" @@ -1913,6 +2360,20 @@ const ( KeyAlgorithmEcPrime256v1 = "EC_prime256v1" ) +const ( + // RenewalStatusPendingAutoRenewal is a RenewalStatus enum value + RenewalStatusPendingAutoRenewal = "PENDING_AUTO_RENEWAL" + + // RenewalStatusPendingValidation is a RenewalStatus enum value + RenewalStatusPendingValidation = "PENDING_VALIDATION" + + // RenewalStatusSuccess is a RenewalStatus enum value + RenewalStatusSuccess = "SUCCESS" + + // RenewalStatusFailed is a RenewalStatus enum value + RenewalStatusFailed = "FAILED" +) + const ( // RevocationReasonUnspecified is a RevocationReason enum value RevocationReasonUnspecified = "UNSPECIFIED" diff --git a/vendor/github.com/aws/aws-sdk-go/service/acm/errors.go b/vendor/github.com/aws/aws-sdk-go/service/acm/errors.go new file mode 100644 index 000000000..73093d1c5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/acm/errors.go @@ -0,0 +1,71 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package acm + +const ( + + // ErrCodeInvalidArnException for service response error code + // "InvalidArnException". + // + // The requested Amazon Resource Name (ARN) does not refer to an existing resource. + ErrCodeInvalidArnException = "InvalidArnException" + + // ErrCodeInvalidDomainValidationOptionsException for service response error code + // "InvalidDomainValidationOptionsException". + // + // One or more values in the DomainValidationOption structure is incorrect. + ErrCodeInvalidDomainValidationOptionsException = "InvalidDomainValidationOptionsException" + + // ErrCodeInvalidStateException for service response error code + // "InvalidStateException". + // + // Processing has reached an invalid state. For example, this exception can + // occur if the specified domain is not using email validation, or the current + // certificate status does not permit the requested operation. See the exception + // message returned by ACM to determine which state is not valid. + ErrCodeInvalidStateException = "InvalidStateException" + + // ErrCodeInvalidTagException for service response error code + // "InvalidTagException". + // + // One or both of the values that make up the key-value pair is not valid. For + // example, you cannot specify a tag value that begins with aws:. + ErrCodeInvalidTagException = "InvalidTagException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // An ACM limit has been exceeded. For example, you may have input more domains + // than are allowed or you've requested too many certificates for your account. + // See the exception message returned by ACM to determine which limit you have + // violated. For more information about ACM limits, see the Limits (http://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html) + // topic. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeRequestInProgressException for service response error code + // "RequestInProgressException". + // + // The certificate request is in process and the certificate in your account + // has not yet been issued. + ErrCodeRequestInProgressException = "RequestInProgressException" + + // ErrCodeResourceInUseException for service response error code + // "ResourceInUseException". + // + // The certificate is in use by another AWS service in the caller's account. + // Remove the association and try again. + ErrCodeResourceInUseException = "ResourceInUseException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The specified certificate cannot be found in the caller's account, or the + // caller's account cannot be found. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeTooManyTagsException for service response error code + // "TooManyTagsException". + // + // The request contains too many tags. Try the request again with fewer tags. + ErrCodeTooManyTagsException = "TooManyTagsException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/acm/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/acm/examples_test.go index 154e453f9..97d97b760 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/acm/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/acm/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleACM_AddTagsToCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := acm.New(sess) @@ -48,11 +44,7 @@ func ExampleACM_AddTagsToCertificate() { } func ExampleACM_DeleteCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := acm.New(sess) @@ -73,11 +65,7 @@ func ExampleACM_DeleteCertificate() { } func ExampleACM_DescribeCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := acm.New(sess) @@ -98,11 +86,7 @@ func ExampleACM_DescribeCertificate() { } func ExampleACM_GetCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := acm.New(sess) @@ -123,11 +107,7 @@ func ExampleACM_GetCertificate() { } func ExampleACM_ImportCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := acm.New(sess) @@ -151,11 +131,7 @@ func ExampleACM_ImportCertificate() { } func ExampleACM_ListCertificates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := acm.New(sess) @@ -181,11 +157,7 @@ func ExampleACM_ListCertificates() { } func ExampleACM_ListTagsForCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := acm.New(sess) @@ -206,11 +178,7 @@ func ExampleACM_ListTagsForCertificate() { } func ExampleACM_RemoveTagsFromCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := acm.New(sess) @@ -238,11 +206,7 @@ func ExampleACM_RemoveTagsFromCertificate() { } func ExampleACM_RequestCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := acm.New(sess) @@ -275,11 +239,7 @@ func ExampleACM_RequestCertificate() { } func ExampleACM_ResendValidationEmail() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := acm.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/acm/service.go b/vendor/github.com/aws/aws-sdk-go/service/acm/service.go index b93b909a6..0c1d69a59 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/acm/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/acm/service.go @@ -14,10 +14,11 @@ import ( // Welcome to the AWS Certificate Manager (ACM) API documentation. // // You can use ACM to manage SSL/TLS certificates for your AWS-based websites -// and applications. For general information about using ACM, see the AWS Certificate -// Manager User Guide (http://docs.aws.amazon.com/acm/latest/userguide/). -//The service client's operations are safe to be used concurrently. +// and applications. For general information about using ACM, see the AWS Certificate +// Manager User Guide (http://docs.aws.amazon.com/acm/latest/userguide/). +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08 type ACM struct { *client.Client } @@ -28,8 +29,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "acm" +// Service information constants +const ( + ServiceName = "acm" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the ACM client with a session. // If additional configuration is needed for the client instance use the optional @@ -42,17 +46,18 @@ const ServiceName = "acm" // // Create a ACM client with additional configuration // svc := acm.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ACM { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ACM { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *ACM { svc := &ACM{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-12-08", diff --git a/vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go b/vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go index 8b4858191..e0af3861b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go @@ -37,7 +37,6 @@ const opCreateApiKey = "CreateApiKey" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) CreateApiKeyRequest(input *CreateApiKeyInput) (req *request.Request, output *ApiKey) { op := &request.Operation{ Name: opCreateApiKey, @@ -49,9 +48,8 @@ func (c *APIGateway) CreateApiKeyRequest(input *CreateApiKeyInput) (req *request input = &CreateApiKeyInput{} } - req = c.newRequest(op, input, output) output = &ApiKey{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -69,23 +67,17 @@ func (c *APIGateway) CreateApiKeyRequest(input *CreateApiKeyInput) (req *request // API operation CreateApiKey for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * LimitExceededException - +// * ErrCodeLimitExceededException "LimitExceededException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // func (c *APIGateway) CreateApiKey(input *CreateApiKeyInput) (*ApiKey, error) { req, out := c.CreateApiKeyRequest(input) @@ -118,7 +110,6 @@ const opCreateAuthorizer = "CreateAuthorizer" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) CreateAuthorizerRequest(input *CreateAuthorizerInput) (req *request.Request, output *Authorizer) { op := &request.Operation{ Name: opCreateAuthorizer, @@ -130,9 +121,8 @@ func (c *APIGateway) CreateAuthorizerRequest(input *CreateAuthorizerInput) (req input = &CreateAuthorizerInput{} } - req = c.newRequest(op, input, output) output = &Authorizer{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -150,20 +140,15 @@ func (c *APIGateway) CreateAuthorizerRequest(input *CreateAuthorizerInput) (req // API operation CreateAuthorizer for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * LimitExceededException - +// * ErrCodeLimitExceededException "LimitExceededException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) CreateAuthorizer(input *CreateAuthorizerInput) (*Authorizer, error) { req, out := c.CreateAuthorizerRequest(input) @@ -196,7 +181,6 @@ const opCreateBasePathMapping = "CreateBasePathMapping" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) CreateBasePathMappingRequest(input *CreateBasePathMappingInput) (req *request.Request, output *BasePathMapping) { op := &request.Operation{ Name: opCreateBasePathMapping, @@ -208,9 +192,8 @@ func (c *APIGateway) CreateBasePathMappingRequest(input *CreateBasePathMappingIn input = &CreateBasePathMappingInput{} } - req = c.newRequest(op, input, output) output = &BasePathMapping{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -226,20 +209,15 @@ func (c *APIGateway) CreateBasePathMappingRequest(input *CreateBasePathMappingIn // API operation CreateBasePathMapping for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) CreateBasePathMapping(input *CreateBasePathMappingInput) (*BasePathMapping, error) { req, out := c.CreateBasePathMappingRequest(input) @@ -272,7 +250,6 @@ const opCreateDeployment = "CreateDeployment" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) CreateDeploymentRequest(input *CreateDeploymentInput) (req *request.Request, output *Deployment) { op := &request.Operation{ Name: opCreateDeployment, @@ -284,9 +261,8 @@ func (c *APIGateway) CreateDeploymentRequest(input *CreateDeploymentInput) (req input = &CreateDeploymentInput{} } - req = c.newRequest(op, input, output) output = &Deployment{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -303,29 +279,160 @@ func (c *APIGateway) CreateDeploymentRequest(input *CreateDeploymentInput) (req // API operation CreateDeployment for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" +// +// * ErrCodeConflictException "ConflictException" // -// * ConflictException +// * ErrCodeLimitExceededException "LimitExceededException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// +func (c *APIGateway) CreateDeployment(input *CreateDeploymentInput) (*Deployment, error) { + req, out := c.CreateDeploymentRequest(input) + err := req.Send() + return out, err +} +const opCreateDocumentationPart = "CreateDocumentationPart" + +// CreateDocumentationPartRequest generates a "aws/request.Request" representing the +// client's request for the CreateDocumentationPart operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateDocumentationPart for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateDocumentationPart method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. // -// * LimitExceededException +// // Example sending a request using the CreateDocumentationPartRequest method. +// req, resp := client.CreateDocumentationPartRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *APIGateway) CreateDocumentationPartRequest(input *CreateDocumentationPartInput) (req *request.Request, output *DocumentationPart) { + op := &request.Operation{ + Name: opCreateDocumentationPart, + HTTPMethod: "POST", + HTTPPath: "/restapis/{restapi_id}/documentation/parts", + } + + if input == nil { + input = &CreateDocumentationPartInput{} + } + + output = &DocumentationPart{} + req = c.newRequest(op, input, output) + return +} +// CreateDocumentationPart API operation for Amazon API Gateway. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation CreateDocumentationPart for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// +// * ErrCodeConflictException "ConflictException" +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// +// * ErrCodeNotFoundException "NotFoundException" +// +// * ErrCodeLimitExceededException "LimitExceededException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * TooManyRequestsException +func (c *APIGateway) CreateDocumentationPart(input *CreateDocumentationPartInput) (*DocumentationPart, error) { + req, out := c.CreateDocumentationPartRequest(input) + err := req.Send() + return out, err +} + +const opCreateDocumentationVersion = "CreateDocumentationVersion" +// CreateDocumentationVersionRequest generates a "aws/request.Request" representing the +// client's request for the CreateDocumentationVersion operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateDocumentationVersion for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateDocumentationVersion method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateDocumentationVersionRequest method. +// req, resp := client.CreateDocumentationVersionRequest(params) // -// * ServiceUnavailableException +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *APIGateway) CreateDocumentationVersionRequest(input *CreateDocumentationVersionInput) (req *request.Request, output *DocumentationVersion) { + op := &request.Operation{ + Name: opCreateDocumentationVersion, + HTTPMethod: "POST", + HTTPPath: "/restapis/{restapi_id}/documentation/versions", + } + + if input == nil { + input = &CreateDocumentationVersionInput{} + } + + output = &DocumentationVersion{} + req = c.newRequest(op, input, output) + return +} +// CreateDocumentationVersion API operation for Amazon API Gateway. // -func (c *APIGateway) CreateDeployment(input *CreateDeploymentInput) (*Deployment, error) { - req, out := c.CreateDeploymentRequest(input) +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation CreateDocumentationVersion for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// +// * ErrCodeConflictException "ConflictException" +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// +// * ErrCodeNotFoundException "NotFoundException" +// +// * ErrCodeLimitExceededException "LimitExceededException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +func (c *APIGateway) CreateDocumentationVersion(input *CreateDocumentationVersionInput) (*DocumentationVersion, error) { + req, out := c.CreateDocumentationVersionRequest(input) err := req.Send() return out, err } @@ -355,7 +462,6 @@ const opCreateDomainName = "CreateDomainName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) CreateDomainNameRequest(input *CreateDomainNameInput) (req *request.Request, output *DomainName) { op := &request.Operation{ Name: opCreateDomainName, @@ -367,9 +473,8 @@ func (c *APIGateway) CreateDomainNameRequest(input *CreateDomainNameInput) (req input = &CreateDomainNameInput{} } - req = c.newRequest(op, input, output) output = &DomainName{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -385,17 +490,13 @@ func (c *APIGateway) CreateDomainNameRequest(input *CreateDomainNameInput) (req // API operation CreateDomainName for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) CreateDomainName(input *CreateDomainNameInput) (*DomainName, error) { req, out := c.CreateDomainNameRequest(input) @@ -428,7 +529,6 @@ const opCreateModel = "CreateModel" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) CreateModelRequest(input *CreateModelInput) (req *request.Request, output *Model) { op := &request.Operation{ Name: opCreateModel, @@ -440,9 +540,8 @@ func (c *APIGateway) CreateModelRequest(input *CreateModelInput) (req *request.R input = &CreateModelInput{} } - req = c.newRequest(op, input, output) output = &Model{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -458,23 +557,17 @@ func (c *APIGateway) CreateModelRequest(input *CreateModelInput) (req *request.R // API operation CreateModel for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // -// * LimitExceededException - +// * ErrCodeLimitExceededException "LimitExceededException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) CreateModel(input *CreateModelInput) (*Model, error) { req, out := c.CreateModelRequest(input) @@ -507,7 +600,6 @@ const opCreateResource = "CreateResource" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) CreateResourceRequest(input *CreateResourceInput) (req *request.Request, output *Resource) { op := &request.Operation{ Name: opCreateResource, @@ -519,9 +611,8 @@ func (c *APIGateway) CreateResourceRequest(input *CreateResourceInput) (req *req input = &CreateResourceInput{} } - req = c.newRequest(op, input, output) output = &Resource{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -537,23 +628,17 @@ func (c *APIGateway) CreateResourceRequest(input *CreateResourceInput) (req *req // API operation CreateResource for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // -// * LimitExceededException - +// * ErrCodeLimitExceededException "LimitExceededException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) CreateResource(input *CreateResourceInput) (*Resource, error) { req, out := c.CreateResourceRequest(input) @@ -586,7 +671,6 @@ const opCreateRestApi = "CreateRestApi" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) CreateRestApiRequest(input *CreateRestApiInput) (req *request.Request, output *RestApi) { op := &request.Operation{ Name: opCreateRestApi, @@ -598,9 +682,8 @@ func (c *APIGateway) CreateRestApiRequest(input *CreateRestApiInput) (req *reque input = &CreateRestApiInput{} } - req = c.newRequest(op, input, output) output = &RestApi{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -616,17 +699,13 @@ func (c *APIGateway) CreateRestApiRequest(input *CreateRestApiInput) (req *reque // API operation CreateRestApi for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * LimitExceededException - +// * ErrCodeLimitExceededException "LimitExceededException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) CreateRestApi(input *CreateRestApiInput) (*RestApi, error) { req, out := c.CreateRestApiRequest(input) @@ -659,7 +738,6 @@ const opCreateStage = "CreateStage" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) CreateStageRequest(input *CreateStageInput) (req *request.Request, output *Stage) { op := &request.Operation{ Name: opCreateStage, @@ -671,9 +749,8 @@ func (c *APIGateway) CreateStageRequest(input *CreateStageInput) (req *request.R input = &CreateStageInput{} } - req = c.newRequest(op, input, output) output = &Stage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -690,23 +767,17 @@ func (c *APIGateway) CreateStageRequest(input *CreateStageInput) (req *request.R // API operation CreateStage for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // -// * LimitExceededException - +// * ErrCodeLimitExceededException "LimitExceededException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) CreateStage(input *CreateStageInput) (*Stage, error) { req, out := c.CreateStageRequest(input) @@ -739,7 +810,6 @@ const opCreateUsagePlan = "CreateUsagePlan" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) CreateUsagePlanRequest(input *CreateUsagePlanInput) (req *request.Request, output *UsagePlan) { op := &request.Operation{ Name: opCreateUsagePlan, @@ -751,9 +821,8 @@ func (c *APIGateway) CreateUsagePlanRequest(input *CreateUsagePlanInput) (req *r input = &CreateUsagePlanInput{} } - req = c.newRequest(op, input, output) output = &UsagePlan{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -770,20 +839,17 @@ func (c *APIGateway) CreateUsagePlanRequest(input *CreateUsagePlanInput) (req *r // API operation CreateUsagePlan for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * LimitExceededException - +// * ErrCodeLimitExceededException "LimitExceededException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" +// +// * ErrCodeNotFoundException "NotFoundException" // func (c *APIGateway) CreateUsagePlan(input *CreateUsagePlanInput) (*UsagePlan, error) { req, out := c.CreateUsagePlanRequest(input) @@ -816,7 +882,6 @@ const opCreateUsagePlanKey = "CreateUsagePlanKey" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) CreateUsagePlanKeyRequest(input *CreateUsagePlanKeyInput) (req *request.Request, output *UsagePlanKey) { op := &request.Operation{ Name: opCreateUsagePlanKey, @@ -828,9 +893,8 @@ func (c *APIGateway) CreateUsagePlanKeyRequest(input *CreateUsagePlanKeyInput) ( input = &CreateUsagePlanKeyInput{} } - req = c.newRequest(op, input, output) output = &UsagePlanKey{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -846,20 +910,15 @@ func (c *APIGateway) CreateUsagePlanKeyRequest(input *CreateUsagePlanKeyInput) ( // API operation CreateUsagePlanKey for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) CreateUsagePlanKey(input *CreateUsagePlanKeyInput) (*UsagePlanKey, error) { req, out := c.CreateUsagePlanKeyRequest(input) @@ -892,7 +951,6 @@ const opDeleteApiKey = "DeleteApiKey" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) DeleteApiKeyRequest(input *DeleteApiKeyInput) (req *request.Request, output *DeleteApiKeyOutput) { op := &request.Operation{ Name: opDeleteApiKey, @@ -904,11 +962,10 @@ func (c *APIGateway) DeleteApiKeyRequest(input *DeleteApiKeyInput) (req *request input = &DeleteApiKeyInput{} } + output = &DeleteApiKeyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteApiKeyOutput{} - req.Data = output return } @@ -924,14 +981,11 @@ func (c *APIGateway) DeleteApiKeyRequest(input *DeleteApiKeyInput) (req *request // API operation DeleteApiKey for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) DeleteApiKey(input *DeleteApiKeyInput) (*DeleteApiKeyOutput, error) { req, out := c.DeleteApiKeyRequest(input) @@ -964,7 +1018,6 @@ const opDeleteAuthorizer = "DeleteAuthorizer" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) DeleteAuthorizerRequest(input *DeleteAuthorizerInput) (req *request.Request, output *DeleteAuthorizerOutput) { op := &request.Operation{ Name: opDeleteAuthorizer, @@ -976,11 +1029,10 @@ func (c *APIGateway) DeleteAuthorizerRequest(input *DeleteAuthorizerInput) (req input = &DeleteAuthorizerInput{} } + output = &DeleteAuthorizerOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAuthorizerOutput{} - req.Data = output return } @@ -998,20 +1050,15 @@ func (c *APIGateway) DeleteAuthorizerRequest(input *DeleteAuthorizerInput) (req // API operation DeleteAuthorizer for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // func (c *APIGateway) DeleteAuthorizer(input *DeleteAuthorizerInput) (*DeleteAuthorizerOutput, error) { req, out := c.DeleteAuthorizerRequest(input) @@ -1044,7 +1091,6 @@ const opDeleteBasePathMapping = "DeleteBasePathMapping" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) DeleteBasePathMappingRequest(input *DeleteBasePathMappingInput) (req *request.Request, output *DeleteBasePathMappingOutput) { op := &request.Operation{ Name: opDeleteBasePathMapping, @@ -1056,11 +1102,10 @@ func (c *APIGateway) DeleteBasePathMappingRequest(input *DeleteBasePathMappingIn input = &DeleteBasePathMappingInput{} } + output = &DeleteBasePathMappingOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteBasePathMappingOutput{} - req.Data = output return } @@ -1076,14 +1121,11 @@ func (c *APIGateway) DeleteBasePathMappingRequest(input *DeleteBasePathMappingIn // API operation DeleteBasePathMapping for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) DeleteBasePathMapping(input *DeleteBasePathMappingInput) (*DeleteBasePathMappingOutput, error) { req, out := c.DeleteBasePathMappingRequest(input) @@ -1116,7 +1158,6 @@ const opDeleteClientCertificate = "DeleteClientCertificate" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) DeleteClientCertificateRequest(input *DeleteClientCertificateInput) (req *request.Request, output *DeleteClientCertificateOutput) { op := &request.Operation{ Name: opDeleteClientCertificate, @@ -1128,11 +1169,10 @@ func (c *APIGateway) DeleteClientCertificateRequest(input *DeleteClientCertifica input = &DeleteClientCertificateInput{} } + output = &DeleteClientCertificateOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteClientCertificateOutput{} - req.Data = output return } @@ -1148,17 +1188,13 @@ func (c *APIGateway) DeleteClientCertificateRequest(input *DeleteClientCertifica // API operation DeleteClientCertificate for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // func (c *APIGateway) DeleteClientCertificate(input *DeleteClientCertificateInput) (*DeleteClientCertificateOutput, error) { req, out := c.DeleteClientCertificateRequest(input) @@ -1191,7 +1227,6 @@ const opDeleteDeployment = "DeleteDeployment" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) DeleteDeploymentRequest(input *DeleteDeploymentInput) (req *request.Request, output *DeleteDeploymentOutput) { op := &request.Operation{ Name: opDeleteDeployment, @@ -1203,11 +1238,10 @@ func (c *APIGateway) DeleteDeploymentRequest(input *DeleteDeploymentInput) (req input = &DeleteDeploymentInput{} } + output = &DeleteDeploymentOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteDeploymentOutput{} - req.Data = output return } @@ -1224,17 +1258,13 @@ func (c *APIGateway) DeleteDeploymentRequest(input *DeleteDeploymentInput) (req // API operation DeleteDeployment for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) DeleteDeployment(input *DeleteDeploymentInput) (*DeleteDeploymentOutput, error) { req, out := c.DeleteDeploymentRequest(input) @@ -1242,146 +1272,273 @@ func (c *APIGateway) DeleteDeployment(input *DeleteDeploymentInput) (*DeleteDepl return out, err } -const opDeleteDomainName = "DeleteDomainName" +const opDeleteDocumentationPart = "DeleteDocumentationPart" -// DeleteDomainNameRequest generates a "aws/request.Request" representing the -// client's request for the DeleteDomainName operation. The "output" return +// DeleteDocumentationPartRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDocumentationPart operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DeleteDomainName for usage and error information. +// See DeleteDocumentationPart for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DeleteDomainName method directly +// you just want the service response, call the DeleteDocumentationPart method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DeleteDomainNameRequest method. -// req, resp := client.DeleteDomainNameRequest(params) +// // Example sending a request using the DeleteDocumentationPartRequest method. +// req, resp := client.DeleteDocumentationPartRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *APIGateway) DeleteDomainNameRequest(input *DeleteDomainNameInput) (req *request.Request, output *DeleteDomainNameOutput) { +func (c *APIGateway) DeleteDocumentationPartRequest(input *DeleteDocumentationPartInput) (req *request.Request, output *DeleteDocumentationPartOutput) { op := &request.Operation{ - Name: opDeleteDomainName, + Name: opDeleteDocumentationPart, HTTPMethod: "DELETE", - HTTPPath: "/domainnames/{domain_name}", + HTTPPath: "/restapis/{restapi_id}/documentation/parts/{part_id}", } if input == nil { - input = &DeleteDomainNameInput{} + input = &DeleteDocumentationPartInput{} } + output = &DeleteDocumentationPartOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteDomainNameOutput{} - req.Data = output return } -// DeleteDomainName API operation for Amazon API Gateway. -// -// Deletes the DomainName resource. +// DeleteDocumentationPart API operation for Amazon API Gateway. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon API Gateway's -// API operation DeleteDomainName for usage and error information. +// API operation DeleteDocumentationPart for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -func (c *APIGateway) DeleteDomainName(input *DeleteDomainNameInput) (*DeleteDomainNameOutput, error) { - req, out := c.DeleteDomainNameRequest(input) +// * ErrCodeConflictException "ConflictException" +// +// * ErrCodeBadRequestException "BadRequestException" +// +func (c *APIGateway) DeleteDocumentationPart(input *DeleteDocumentationPartInput) (*DeleteDocumentationPartOutput, error) { + req, out := c.DeleteDocumentationPartRequest(input) err := req.Send() return out, err } -const opDeleteIntegration = "DeleteIntegration" +const opDeleteDocumentationVersion = "DeleteDocumentationVersion" -// DeleteIntegrationRequest generates a "aws/request.Request" representing the -// client's request for the DeleteIntegration operation. The "output" return +// DeleteDocumentationVersionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDocumentationVersion operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DeleteIntegration for usage and error information. +// See DeleteDocumentationVersion for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DeleteIntegration method directly +// you just want the service response, call the DeleteDocumentationVersion method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DeleteIntegrationRequest method. -// req, resp := client.DeleteIntegrationRequest(params) +// // Example sending a request using the DeleteDocumentationVersionRequest method. +// req, resp := client.DeleteDocumentationVersionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -// -func (c *APIGateway) DeleteIntegrationRequest(input *DeleteIntegrationInput) (req *request.Request, output *DeleteIntegrationOutput) { +func (c *APIGateway) DeleteDocumentationVersionRequest(input *DeleteDocumentationVersionInput) (req *request.Request, output *DeleteDocumentationVersionOutput) { op := &request.Operation{ - Name: opDeleteIntegration, + Name: opDeleteDocumentationVersion, HTTPMethod: "DELETE", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration", + HTTPPath: "/restapis/{restapi_id}/documentation/versions/{doc_version}", } if input == nil { - input = &DeleteIntegrationInput{} + input = &DeleteDocumentationVersionInput{} } + output = &DeleteDocumentationVersionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteIntegrationOutput{} - req.Data = output return } -// DeleteIntegration API operation for Amazon API Gateway. -// -// Represents a delete integration. +// DeleteDocumentationVersion API operation for Amazon API Gateway. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon API Gateway's -// API operation DeleteIntegration for usage and error information. +// API operation DeleteDocumentationVersion for usage and error information. // // Returned Error Codes: -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" +// +// * ErrCodeNotFoundException "NotFoundException" +// +// * ErrCodeBadRequestException "BadRequestException" +// +// * ErrCodeConflictException "ConflictException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +func (c *APIGateway) DeleteDocumentationVersion(input *DeleteDocumentationVersionInput) (*DeleteDocumentationVersionOutput, error) { + req, out := c.DeleteDocumentationVersionRequest(input) + err := req.Send() + return out, err +} + +const opDeleteDomainName = "DeleteDomainName" +// DeleteDomainNameRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDomainName operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. // -// * NotFoundException +// See DeleteDomainName for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteDomainName method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteDomainNameRequest method. +// req, resp := client.DeleteDomainNameRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *APIGateway) DeleteDomainNameRequest(input *DeleteDomainNameInput) (req *request.Request, output *DeleteDomainNameOutput) { + op := &request.Operation{ + Name: opDeleteDomainName, + HTTPMethod: "DELETE", + HTTPPath: "/domainnames/{domain_name}", + } + + if input == nil { + input = &DeleteDomainNameInput{} + } + + output = &DeleteDomainNameOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} +// DeleteDomainName API operation for Amazon API Gateway. +// +// Deletes the DomainName resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation DeleteDomainName for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedException "UnauthorizedException" +// +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +func (c *APIGateway) DeleteDomainName(input *DeleteDomainNameInput) (*DeleteDomainNameOutput, error) { + req, out := c.DeleteDomainNameRequest(input) + err := req.Send() + return out, err +} + +const opDeleteIntegration = "DeleteIntegration" +// DeleteIntegrationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteIntegration operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteIntegration for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteIntegration method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteIntegrationRequest method. +// req, resp := client.DeleteIntegrationRequest(params) // -// * ConflictException +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *APIGateway) DeleteIntegrationRequest(input *DeleteIntegrationInput) (req *request.Request, output *DeleteIntegrationOutput) { + op := &request.Operation{ + Name: opDeleteIntegration, + HTTPMethod: "DELETE", + HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration", + } + + if input == nil { + input = &DeleteIntegrationInput{} + } + output = &DeleteIntegrationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteIntegration API operation for Amazon API Gateway. +// +// Represents a delete integration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation DeleteIntegration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedException "UnauthorizedException" +// +// * ErrCodeNotFoundException "NotFoundException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +// * ErrCodeConflictException "ConflictException" // func (c *APIGateway) DeleteIntegration(input *DeleteIntegrationInput) (*DeleteIntegrationOutput, error) { req, out := c.DeleteIntegrationRequest(input) @@ -1414,7 +1571,6 @@ const opDeleteIntegrationResponse = "DeleteIntegrationResponse" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) DeleteIntegrationResponseRequest(input *DeleteIntegrationResponseInput) (req *request.Request, output *DeleteIntegrationResponseOutput) { op := &request.Operation{ Name: opDeleteIntegrationResponse, @@ -1426,11 +1582,10 @@ func (c *APIGateway) DeleteIntegrationResponseRequest(input *DeleteIntegrationRe input = &DeleteIntegrationResponseInput{} } + output = &DeleteIntegrationResponseOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteIntegrationResponseOutput{} - req.Data = output return } @@ -1446,20 +1601,15 @@ func (c *APIGateway) DeleteIntegrationResponseRequest(input *DeleteIntegrationRe // API operation DeleteIntegrationResponse for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // func (c *APIGateway) DeleteIntegrationResponse(input *DeleteIntegrationResponseInput) (*DeleteIntegrationResponseOutput, error) { req, out := c.DeleteIntegrationResponseRequest(input) @@ -1492,7 +1642,6 @@ const opDeleteMethod = "DeleteMethod" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) DeleteMethodRequest(input *DeleteMethodInput) (req *request.Request, output *DeleteMethodOutput) { op := &request.Operation{ Name: opDeleteMethod, @@ -1504,11 +1653,10 @@ func (c *APIGateway) DeleteMethodRequest(input *DeleteMethodInput) (req *request input = &DeleteMethodInput{} } + output = &DeleteMethodOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteMethodOutput{} - req.Data = output return } @@ -1524,17 +1672,13 @@ func (c *APIGateway) DeleteMethodRequest(input *DeleteMethodInput) (req *request // API operation DeleteMethod for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // func (c *APIGateway) DeleteMethod(input *DeleteMethodInput) (*DeleteMethodOutput, error) { req, out := c.DeleteMethodRequest(input) @@ -1567,7 +1711,6 @@ const opDeleteMethodResponse = "DeleteMethodResponse" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) DeleteMethodResponseRequest(input *DeleteMethodResponseInput) (req *request.Request, output *DeleteMethodResponseOutput) { op := &request.Operation{ Name: opDeleteMethodResponse, @@ -1579,11 +1722,10 @@ func (c *APIGateway) DeleteMethodResponseRequest(input *DeleteMethodResponseInpu input = &DeleteMethodResponseInput{} } + output = &DeleteMethodResponseOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteMethodResponseOutput{} - req.Data = output return } @@ -1599,20 +1741,15 @@ func (c *APIGateway) DeleteMethodResponseRequest(input *DeleteMethodResponseInpu // API operation DeleteMethodResponse for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // func (c *APIGateway) DeleteMethodResponse(input *DeleteMethodResponseInput) (*DeleteMethodResponseOutput, error) { req, out := c.DeleteMethodResponseRequest(input) @@ -1645,7 +1782,6 @@ const opDeleteModel = "DeleteModel" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) DeleteModelRequest(input *DeleteModelInput) (req *request.Request, output *DeleteModelOutput) { op := &request.Operation{ Name: opDeleteModel, @@ -1657,11 +1793,10 @@ func (c *APIGateway) DeleteModelRequest(input *DeleteModelInput) (req *request.R input = &DeleteModelInput{} } + output = &DeleteModelOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteModelOutput{} - req.Data = output return } @@ -1677,20 +1812,15 @@ func (c *APIGateway) DeleteModelRequest(input *DeleteModelInput) (req *request.R // API operation DeleteModel for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // func (c *APIGateway) DeleteModel(input *DeleteModelInput) (*DeleteModelOutput, error) { req, out := c.DeleteModelRequest(input) @@ -1723,7 +1853,6 @@ const opDeleteResource = "DeleteResource" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) DeleteResourceRequest(input *DeleteResourceInput) (req *request.Request, output *DeleteResourceOutput) { op := &request.Operation{ Name: opDeleteResource, @@ -1735,11 +1864,10 @@ func (c *APIGateway) DeleteResourceRequest(input *DeleteResourceInput) (req *req input = &DeleteResourceInput{} } + output = &DeleteResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteResourceOutput{} - req.Data = output return } @@ -1755,20 +1883,15 @@ func (c *APIGateway) DeleteResourceRequest(input *DeleteResourceInput) (req *req // API operation DeleteResource for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) DeleteResource(input *DeleteResourceInput) (*DeleteResourceOutput, error) { req, out := c.DeleteResourceRequest(input) @@ -1801,7 +1924,6 @@ const opDeleteRestApi = "DeleteRestApi" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) DeleteRestApiRequest(input *DeleteRestApiInput) (req *request.Request, output *DeleteRestApiOutput) { op := &request.Operation{ Name: opDeleteRestApi, @@ -1813,11 +1935,10 @@ func (c *APIGateway) DeleteRestApiRequest(input *DeleteRestApiInput) (req *reque input = &DeleteRestApiInput{} } + output = &DeleteRestApiOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteRestApiOutput{} - req.Data = output return } @@ -1833,17 +1954,13 @@ func (c *APIGateway) DeleteRestApiRequest(input *DeleteRestApiInput) (req *reque // API operation DeleteRestApi for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // func (c *APIGateway) DeleteRestApi(input *DeleteRestApiInput) (*DeleteRestApiOutput, error) { req, out := c.DeleteRestApiRequest(input) @@ -1876,7 +1993,6 @@ const opDeleteStage = "DeleteStage" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) DeleteStageRequest(input *DeleteStageInput) (req *request.Request, output *DeleteStageOutput) { op := &request.Operation{ Name: opDeleteStage, @@ -1888,11 +2004,10 @@ func (c *APIGateway) DeleteStageRequest(input *DeleteStageInput) (req *request.R input = &DeleteStageInput{} } + output = &DeleteStageOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteStageOutput{} - req.Data = output return } @@ -1908,17 +2023,13 @@ func (c *APIGateway) DeleteStageRequest(input *DeleteStageInput) (req *request.R // API operation DeleteStage for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // func (c *APIGateway) DeleteStage(input *DeleteStageInput) (*DeleteStageOutput, error) { req, out := c.DeleteStageRequest(input) @@ -1951,7 +2062,6 @@ const opDeleteUsagePlan = "DeleteUsagePlan" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) DeleteUsagePlanRequest(input *DeleteUsagePlanInput) (req *request.Request, output *DeleteUsagePlanOutput) { op := &request.Operation{ Name: opDeleteUsagePlan, @@ -1963,11 +2073,10 @@ func (c *APIGateway) DeleteUsagePlanRequest(input *DeleteUsagePlanInput) (req *r input = &DeleteUsagePlanInput{} } + output = &DeleteUsagePlanOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteUsagePlanOutput{} - req.Data = output return } @@ -1983,17 +2092,13 @@ func (c *APIGateway) DeleteUsagePlanRequest(input *DeleteUsagePlanInput) (req *r // API operation DeleteUsagePlan for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // func (c *APIGateway) DeleteUsagePlan(input *DeleteUsagePlanInput) (*DeleteUsagePlanOutput, error) { req, out := c.DeleteUsagePlanRequest(input) @@ -2026,7 +2131,6 @@ const opDeleteUsagePlanKey = "DeleteUsagePlanKey" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) DeleteUsagePlanKeyRequest(input *DeleteUsagePlanKeyInput) (req *request.Request, output *DeleteUsagePlanKeyOutput) { op := &request.Operation{ Name: opDeleteUsagePlanKey, @@ -2038,11 +2142,10 @@ func (c *APIGateway) DeleteUsagePlanKeyRequest(input *DeleteUsagePlanKeyInput) ( input = &DeleteUsagePlanKeyInput{} } + output = &DeleteUsagePlanKeyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteUsagePlanKeyOutput{} - req.Data = output return } @@ -2059,20 +2162,15 @@ func (c *APIGateway) DeleteUsagePlanKeyRequest(input *DeleteUsagePlanKeyInput) ( // API operation DeleteUsagePlanKey for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) DeleteUsagePlanKey(input *DeleteUsagePlanKeyInput) (*DeleteUsagePlanKeyOutput, error) { req, out := c.DeleteUsagePlanKeyRequest(input) @@ -2105,7 +2203,6 @@ const opFlushStageAuthorizersCache = "FlushStageAuthorizersCache" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) FlushStageAuthorizersCacheRequest(input *FlushStageAuthorizersCacheInput) (req *request.Request, output *FlushStageAuthorizersCacheOutput) { op := &request.Operation{ Name: opFlushStageAuthorizersCache, @@ -2117,11 +2214,10 @@ func (c *APIGateway) FlushStageAuthorizersCacheRequest(input *FlushStageAuthoriz input = &FlushStageAuthorizersCacheInput{} } + output = &FlushStageAuthorizersCacheOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &FlushStageAuthorizersCacheOutput{} - req.Data = output return } @@ -2137,17 +2233,13 @@ func (c *APIGateway) FlushStageAuthorizersCacheRequest(input *FlushStageAuthoriz // API operation FlushStageAuthorizersCache for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) FlushStageAuthorizersCache(input *FlushStageAuthorizersCacheInput) (*FlushStageAuthorizersCacheOutput, error) { req, out := c.FlushStageAuthorizersCacheRequest(input) @@ -2180,7 +2272,6 @@ const opFlushStageCache = "FlushStageCache" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) FlushStageCacheRequest(input *FlushStageCacheInput) (req *request.Request, output *FlushStageCacheOutput) { op := &request.Operation{ Name: opFlushStageCache, @@ -2192,11 +2283,10 @@ func (c *APIGateway) FlushStageCacheRequest(input *FlushStageCacheInput) (req *r input = &FlushStageCacheInput{} } + output = &FlushStageCacheOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &FlushStageCacheOutput{} - req.Data = output return } @@ -2212,17 +2302,13 @@ func (c *APIGateway) FlushStageCacheRequest(input *FlushStageCacheInput) (req *r // API operation FlushStageCache for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) FlushStageCache(input *FlushStageCacheInput) (*FlushStageCacheOutput, error) { req, out := c.FlushStageCacheRequest(input) @@ -2255,7 +2341,6 @@ const opGenerateClientCertificate = "GenerateClientCertificate" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GenerateClientCertificateRequest(input *GenerateClientCertificateInput) (req *request.Request, output *ClientCertificate) { op := &request.Operation{ Name: opGenerateClientCertificate, @@ -2267,9 +2352,8 @@ func (c *APIGateway) GenerateClientCertificateRequest(input *GenerateClientCerti input = &GenerateClientCertificateInput{} } - req = c.newRequest(op, input, output) output = &ClientCertificate{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2285,14 +2369,11 @@ func (c *APIGateway) GenerateClientCertificateRequest(input *GenerateClientCerti // API operation GenerateClientCertificate for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * LimitExceededException - +// * ErrCodeLimitExceededException "LimitExceededException" // func (c *APIGateway) GenerateClientCertificate(input *GenerateClientCertificateInput) (*ClientCertificate, error) { req, out := c.GenerateClientCertificateRequest(input) @@ -2325,7 +2406,6 @@ const opGetAccount = "GetAccount" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetAccountRequest(input *GetAccountInput) (req *request.Request, output *Account) { op := &request.Operation{ Name: opGetAccount, @@ -2337,9 +2417,8 @@ func (c *APIGateway) GetAccountRequest(input *GetAccountInput) (req *request.Req input = &GetAccountInput{} } - req = c.newRequest(op, input, output) output = &Account{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2355,14 +2434,11 @@ func (c *APIGateway) GetAccountRequest(input *GetAccountInput) (req *request.Req // API operation GetAccount for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetAccount(input *GetAccountInput) (*Account, error) { req, out := c.GetAccountRequest(input) @@ -2395,7 +2471,6 @@ const opGetApiKey = "GetApiKey" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetApiKeyRequest(input *GetApiKeyInput) (req *request.Request, output *ApiKey) { op := &request.Operation{ Name: opGetApiKey, @@ -2407,9 +2482,8 @@ func (c *APIGateway) GetApiKeyRequest(input *GetApiKeyInput) (req *request.Reque input = &GetApiKeyInput{} } - req = c.newRequest(op, input, output) output = &ApiKey{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2425,14 +2499,11 @@ func (c *APIGateway) GetApiKeyRequest(input *GetApiKeyInput) (req *request.Reque // API operation GetApiKey for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetApiKey(input *GetApiKeyInput) (*ApiKey, error) { req, out := c.GetApiKeyRequest(input) @@ -2465,7 +2536,6 @@ const opGetApiKeys = "GetApiKeys" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetApiKeysRequest(input *GetApiKeysInput) (req *request.Request, output *GetApiKeysOutput) { op := &request.Operation{ Name: opGetApiKeys, @@ -2483,9 +2553,8 @@ func (c *APIGateway) GetApiKeysRequest(input *GetApiKeysInput) (req *request.Req input = &GetApiKeysInput{} } - req = c.newRequest(op, input, output) output = &GetApiKeysOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2501,14 +2570,11 @@ func (c *APIGateway) GetApiKeysRequest(input *GetApiKeysInput) (req *request.Req // API operation GetApiKeys for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetApiKeys(input *GetApiKeysInput) (*GetApiKeysOutput, error) { req, out := c.GetApiKeysRequest(input) @@ -2566,7 +2632,6 @@ const opGetAuthorizer = "GetAuthorizer" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetAuthorizerRequest(input *GetAuthorizerInput) (req *request.Request, output *Authorizer) { op := &request.Operation{ Name: opGetAuthorizer, @@ -2578,9 +2643,8 @@ func (c *APIGateway) GetAuthorizerRequest(input *GetAuthorizerInput) (req *reque input = &GetAuthorizerInput{} } - req = c.newRequest(op, input, output) output = &Authorizer{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2598,14 +2662,11 @@ func (c *APIGateway) GetAuthorizerRequest(input *GetAuthorizerInput) (req *reque // API operation GetAuthorizer for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetAuthorizer(input *GetAuthorizerInput) (*Authorizer, error) { req, out := c.GetAuthorizerRequest(input) @@ -2638,7 +2699,6 @@ const opGetAuthorizers = "GetAuthorizers" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetAuthorizersRequest(input *GetAuthorizersInput) (req *request.Request, output *GetAuthorizersOutput) { op := &request.Operation{ Name: opGetAuthorizers, @@ -2650,9 +2710,8 @@ func (c *APIGateway) GetAuthorizersRequest(input *GetAuthorizersInput) (req *req input = &GetAuthorizersInput{} } - req = c.newRequest(op, input, output) output = &GetAuthorizersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2670,17 +2729,13 @@ func (c *APIGateway) GetAuthorizersRequest(input *GetAuthorizersInput) (req *req // API operation GetAuthorizers for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetAuthorizers(input *GetAuthorizersInput) (*GetAuthorizersOutput, error) { req, out := c.GetAuthorizersRequest(input) @@ -2713,7 +2768,6 @@ const opGetBasePathMapping = "GetBasePathMapping" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetBasePathMappingRequest(input *GetBasePathMappingInput) (req *request.Request, output *BasePathMapping) { op := &request.Operation{ Name: opGetBasePathMapping, @@ -2725,9 +2779,8 @@ func (c *APIGateway) GetBasePathMappingRequest(input *GetBasePathMappingInput) ( input = &GetBasePathMappingInput{} } - req = c.newRequest(op, input, output) output = &BasePathMapping{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2743,14 +2796,11 @@ func (c *APIGateway) GetBasePathMappingRequest(input *GetBasePathMappingInput) ( // API operation GetBasePathMapping for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetBasePathMapping(input *GetBasePathMappingInput) (*BasePathMapping, error) { req, out := c.GetBasePathMappingRequest(input) @@ -2783,7 +2833,6 @@ const opGetBasePathMappings = "GetBasePathMappings" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetBasePathMappingsRequest(input *GetBasePathMappingsInput) (req *request.Request, output *GetBasePathMappingsOutput) { op := &request.Operation{ Name: opGetBasePathMappings, @@ -2801,9 +2850,8 @@ func (c *APIGateway) GetBasePathMappingsRequest(input *GetBasePathMappingsInput) input = &GetBasePathMappingsInput{} } - req = c.newRequest(op, input, output) output = &GetBasePathMappingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2819,14 +2867,11 @@ func (c *APIGateway) GetBasePathMappingsRequest(input *GetBasePathMappingsInput) // API operation GetBasePathMappings for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetBasePathMappings(input *GetBasePathMappingsInput) (*GetBasePathMappingsOutput, error) { req, out := c.GetBasePathMappingsRequest(input) @@ -2884,7 +2929,6 @@ const opGetClientCertificate = "GetClientCertificate" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetClientCertificateRequest(input *GetClientCertificateInput) (req *request.Request, output *ClientCertificate) { op := &request.Operation{ Name: opGetClientCertificate, @@ -2896,9 +2940,8 @@ func (c *APIGateway) GetClientCertificateRequest(input *GetClientCertificateInpu input = &GetClientCertificateInput{} } - req = c.newRequest(op, input, output) output = &ClientCertificate{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2914,14 +2957,11 @@ func (c *APIGateway) GetClientCertificateRequest(input *GetClientCertificateInpu // API operation GetClientCertificate for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetClientCertificate(input *GetClientCertificateInput) (*ClientCertificate, error) { req, out := c.GetClientCertificateRequest(input) @@ -2954,7 +2994,6 @@ const opGetClientCertificates = "GetClientCertificates" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetClientCertificatesRequest(input *GetClientCertificatesInput) (req *request.Request, output *GetClientCertificatesOutput) { op := &request.Operation{ Name: opGetClientCertificates, @@ -2972,9 +3011,8 @@ func (c *APIGateway) GetClientCertificatesRequest(input *GetClientCertificatesIn input = &GetClientCertificatesInput{} } - req = c.newRequest(op, input, output) output = &GetClientCertificatesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2990,14 +3028,11 @@ func (c *APIGateway) GetClientCertificatesRequest(input *GetClientCertificatesIn // API operation GetClientCertificates for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetClientCertificates(input *GetClientCertificatesInput) (*GetClientCertificatesOutput, error) { req, out := c.GetClientCertificatesRequest(input) @@ -3055,7 +3090,6 @@ const opGetDeployment = "GetDeployment" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetDeploymentRequest(input *GetDeploymentInput) (req *request.Request, output *Deployment) { op := &request.Operation{ Name: opGetDeployment, @@ -3067,9 +3101,8 @@ func (c *APIGateway) GetDeploymentRequest(input *GetDeploymentInput) (req *reque input = &GetDeploymentInput{} } - req = c.newRequest(op, input, output) output = &Deployment{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3085,17 +3118,13 @@ func (c *APIGateway) GetDeploymentRequest(input *GetDeploymentInput) (req *reque // API operation GetDeployment for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * ServiceUnavailableException - +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // func (c *APIGateway) GetDeployment(input *GetDeploymentInput) (*Deployment, error) { req, out := c.GetDeploymentRequest(input) @@ -3128,7 +3157,6 @@ const opGetDeployments = "GetDeployments" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetDeploymentsRequest(input *GetDeploymentsInput) (req *request.Request, output *GetDeploymentsOutput) { op := &request.Operation{ Name: opGetDeployments, @@ -3146,9 +3174,8 @@ func (c *APIGateway) GetDeploymentsRequest(input *GetDeploymentsInput) (req *req input = &GetDeploymentsInput{} } - req = c.newRequest(op, input, output) output = &GetDeploymentsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3164,17 +3191,13 @@ func (c *APIGateway) GetDeploymentsRequest(input *GetDeploymentsInput) (req *req // API operation GetDeployments for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * ServiceUnavailableException - +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // func (c *APIGateway) GetDeployments(input *GetDeploymentsInput) (*GetDeploymentsOutput, error) { req, out := c.GetDeploymentsRequest(input) @@ -3207,6 +3230,262 @@ func (c *APIGateway) GetDeploymentsPages(input *GetDeploymentsInput, fn func(p * }) } +const opGetDocumentationPart = "GetDocumentationPart" + +// GetDocumentationPartRequest generates a "aws/request.Request" representing the +// client's request for the GetDocumentationPart operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetDocumentationPart for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetDocumentationPart method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetDocumentationPartRequest method. +// req, resp := client.GetDocumentationPartRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *APIGateway) GetDocumentationPartRequest(input *GetDocumentationPartInput) (req *request.Request, output *DocumentationPart) { + op := &request.Operation{ + Name: opGetDocumentationPart, + HTTPMethod: "GET", + HTTPPath: "/restapis/{restapi_id}/documentation/parts/{part_id}", + } + + if input == nil { + input = &GetDocumentationPartInput{} + } + + output = &DocumentationPart{} + req = c.newRequest(op, input, output) + return +} + +// GetDocumentationPart API operation for Amazon API Gateway. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetDocumentationPart for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedException "UnauthorizedException" +// +// * ErrCodeNotFoundException "NotFoundException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +func (c *APIGateway) GetDocumentationPart(input *GetDocumentationPartInput) (*DocumentationPart, error) { + req, out := c.GetDocumentationPartRequest(input) + err := req.Send() + return out, err +} + +const opGetDocumentationParts = "GetDocumentationParts" + +// GetDocumentationPartsRequest generates a "aws/request.Request" representing the +// client's request for the GetDocumentationParts operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetDocumentationParts for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetDocumentationParts method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetDocumentationPartsRequest method. +// req, resp := client.GetDocumentationPartsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *APIGateway) GetDocumentationPartsRequest(input *GetDocumentationPartsInput) (req *request.Request, output *GetDocumentationPartsOutput) { + op := &request.Operation{ + Name: opGetDocumentationParts, + HTTPMethod: "GET", + HTTPPath: "/restapis/{restapi_id}/documentation/parts", + } + + if input == nil { + input = &GetDocumentationPartsInput{} + } + + output = &GetDocumentationPartsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDocumentationParts API operation for Amazon API Gateway. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetDocumentationParts for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// +// * ErrCodeNotFoundException "NotFoundException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +func (c *APIGateway) GetDocumentationParts(input *GetDocumentationPartsInput) (*GetDocumentationPartsOutput, error) { + req, out := c.GetDocumentationPartsRequest(input) + err := req.Send() + return out, err +} + +const opGetDocumentationVersion = "GetDocumentationVersion" + +// GetDocumentationVersionRequest generates a "aws/request.Request" representing the +// client's request for the GetDocumentationVersion operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetDocumentationVersion for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetDocumentationVersion method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetDocumentationVersionRequest method. +// req, resp := client.GetDocumentationVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *APIGateway) GetDocumentationVersionRequest(input *GetDocumentationVersionInput) (req *request.Request, output *DocumentationVersion) { + op := &request.Operation{ + Name: opGetDocumentationVersion, + HTTPMethod: "GET", + HTTPPath: "/restapis/{restapi_id}/documentation/versions/{doc_version}", + } + + if input == nil { + input = &GetDocumentationVersionInput{} + } + + output = &DocumentationVersion{} + req = c.newRequest(op, input, output) + return +} + +// GetDocumentationVersion API operation for Amazon API Gateway. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetDocumentationVersion for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedException "UnauthorizedException" +// +// * ErrCodeNotFoundException "NotFoundException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +func (c *APIGateway) GetDocumentationVersion(input *GetDocumentationVersionInput) (*DocumentationVersion, error) { + req, out := c.GetDocumentationVersionRequest(input) + err := req.Send() + return out, err +} + +const opGetDocumentationVersions = "GetDocumentationVersions" + +// GetDocumentationVersionsRequest generates a "aws/request.Request" representing the +// client's request for the GetDocumentationVersions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetDocumentationVersions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetDocumentationVersions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetDocumentationVersionsRequest method. +// req, resp := client.GetDocumentationVersionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *APIGateway) GetDocumentationVersionsRequest(input *GetDocumentationVersionsInput) (req *request.Request, output *GetDocumentationVersionsOutput) { + op := &request.Operation{ + Name: opGetDocumentationVersions, + HTTPMethod: "GET", + HTTPPath: "/restapis/{restapi_id}/documentation/versions", + } + + if input == nil { + input = &GetDocumentationVersionsInput{} + } + + output = &GetDocumentationVersionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDocumentationVersions API operation for Amazon API Gateway. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetDocumentationVersions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// +// * ErrCodeNotFoundException "NotFoundException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +func (c *APIGateway) GetDocumentationVersions(input *GetDocumentationVersionsInput) (*GetDocumentationVersionsOutput, error) { + req, out := c.GetDocumentationVersionsRequest(input) + err := req.Send() + return out, err +} + const opGetDomainName = "GetDomainName" // GetDomainNameRequest generates a "aws/request.Request" representing the @@ -3232,7 +3511,6 @@ const opGetDomainName = "GetDomainName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetDomainNameRequest(input *GetDomainNameInput) (req *request.Request, output *DomainName) { op := &request.Operation{ Name: opGetDomainName, @@ -3244,9 +3522,8 @@ func (c *APIGateway) GetDomainNameRequest(input *GetDomainNameInput) (req *reque input = &GetDomainNameInput{} } - req = c.newRequest(op, input, output) output = &DomainName{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3263,17 +3540,13 @@ func (c *APIGateway) GetDomainNameRequest(input *GetDomainNameInput) (req *reque // API operation GetDomainName for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * ServiceUnavailableException - +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetDomainName(input *GetDomainNameInput) (*DomainName, error) { req, out := c.GetDomainNameRequest(input) @@ -3306,7 +3579,6 @@ const opGetDomainNames = "GetDomainNames" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetDomainNamesRequest(input *GetDomainNamesInput) (req *request.Request, output *GetDomainNamesOutput) { op := &request.Operation{ Name: opGetDomainNames, @@ -3324,9 +3596,8 @@ func (c *APIGateway) GetDomainNamesRequest(input *GetDomainNamesInput) (req *req input = &GetDomainNamesInput{} } - req = c.newRequest(op, input, output) output = &GetDomainNamesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3342,14 +3613,11 @@ func (c *APIGateway) GetDomainNamesRequest(input *GetDomainNamesInput) (req *req // API operation GetDomainNames for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetDomainNames(input *GetDomainNamesInput) (*GetDomainNamesOutput, error) { req, out := c.GetDomainNamesRequest(input) @@ -3407,7 +3675,6 @@ const opGetExport = "GetExport" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetExportRequest(input *GetExportInput) (req *request.Request, output *GetExportOutput) { op := &request.Operation{ Name: opGetExport, @@ -3419,9 +3686,8 @@ func (c *APIGateway) GetExportRequest(input *GetExportInput) (req *request.Reque input = &GetExportInput{} } - req = c.newRequest(op, input, output) output = &GetExportOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3437,17 +3703,13 @@ func (c *APIGateway) GetExportRequest(input *GetExportInput) (req *request.Reque // API operation GetExport for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetExport(input *GetExportInput) (*GetExportOutput, error) { req, out := c.GetExportRequest(input) @@ -3480,7 +3742,6 @@ const opGetIntegration = "GetIntegration" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetIntegrationRequest(input *GetIntegrationInput) (req *request.Request, output *Integration) { op := &request.Operation{ Name: opGetIntegration, @@ -3492,9 +3753,8 @@ func (c *APIGateway) GetIntegrationRequest(input *GetIntegrationInput) (req *req input = &GetIntegrationInput{} } - req = c.newRequest(op, input, output) output = &Integration{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3510,14 +3770,11 @@ func (c *APIGateway) GetIntegrationRequest(input *GetIntegrationInput) (req *req // API operation GetIntegration for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetIntegration(input *GetIntegrationInput) (*Integration, error) { req, out := c.GetIntegrationRequest(input) @@ -3550,7 +3807,6 @@ const opGetIntegrationResponse = "GetIntegrationResponse" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetIntegrationResponseRequest(input *GetIntegrationResponseInput) (req *request.Request, output *IntegrationResponse) { op := &request.Operation{ Name: opGetIntegrationResponse, @@ -3562,9 +3818,8 @@ func (c *APIGateway) GetIntegrationResponseRequest(input *GetIntegrationResponse input = &GetIntegrationResponseInput{} } - req = c.newRequest(op, input, output) output = &IntegrationResponse{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3580,14 +3835,11 @@ func (c *APIGateway) GetIntegrationResponseRequest(input *GetIntegrationResponse // API operation GetIntegrationResponse for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetIntegrationResponse(input *GetIntegrationResponseInput) (*IntegrationResponse, error) { req, out := c.GetIntegrationResponseRequest(input) @@ -3620,7 +3872,6 @@ const opGetMethod = "GetMethod" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetMethodRequest(input *GetMethodInput) (req *request.Request, output *Method) { op := &request.Operation{ Name: opGetMethod, @@ -3632,9 +3883,8 @@ func (c *APIGateway) GetMethodRequest(input *GetMethodInput) (req *request.Reque input = &GetMethodInput{} } - req = c.newRequest(op, input, output) output = &Method{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3650,14 +3900,11 @@ func (c *APIGateway) GetMethodRequest(input *GetMethodInput) (req *request.Reque // API operation GetMethod for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetMethod(input *GetMethodInput) (*Method, error) { req, out := c.GetMethodRequest(input) @@ -3690,7 +3937,6 @@ const opGetMethodResponse = "GetMethodResponse" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetMethodResponseRequest(input *GetMethodResponseInput) (req *request.Request, output *MethodResponse) { op := &request.Operation{ Name: opGetMethodResponse, @@ -3702,9 +3948,8 @@ func (c *APIGateway) GetMethodResponseRequest(input *GetMethodResponseInput) (re input = &GetMethodResponseInput{} } - req = c.newRequest(op, input, output) output = &MethodResponse{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3720,14 +3965,11 @@ func (c *APIGateway) GetMethodResponseRequest(input *GetMethodResponseInput) (re // API operation GetMethodResponse for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetMethodResponse(input *GetMethodResponseInput) (*MethodResponse, error) { req, out := c.GetMethodResponseRequest(input) @@ -3760,7 +4002,6 @@ const opGetModel = "GetModel" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetModelRequest(input *GetModelInput) (req *request.Request, output *Model) { op := &request.Operation{ Name: opGetModel, @@ -3772,9 +4013,8 @@ func (c *APIGateway) GetModelRequest(input *GetModelInput) (req *request.Request input = &GetModelInput{} } - req = c.newRequest(op, input, output) output = &Model{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3790,14 +4030,11 @@ func (c *APIGateway) GetModelRequest(input *GetModelInput) (req *request.Request // API operation GetModel for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetModel(input *GetModelInput) (*Model, error) { req, out := c.GetModelRequest(input) @@ -3830,7 +4067,6 @@ const opGetModelTemplate = "GetModelTemplate" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetModelTemplateRequest(input *GetModelTemplateInput) (req *request.Request, output *GetModelTemplateOutput) { op := &request.Operation{ Name: opGetModelTemplate, @@ -3842,9 +4078,8 @@ func (c *APIGateway) GetModelTemplateRequest(input *GetModelTemplateInput) (req input = &GetModelTemplateInput{} } - req = c.newRequest(op, input, output) output = &GetModelTemplateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3861,17 +4096,13 @@ func (c *APIGateway) GetModelTemplateRequest(input *GetModelTemplateInput) (req // API operation GetModelTemplate for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetModelTemplate(input *GetModelTemplateInput) (*GetModelTemplateOutput, error) { req, out := c.GetModelTemplateRequest(input) @@ -3904,7 +4135,6 @@ const opGetModels = "GetModels" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetModelsRequest(input *GetModelsInput) (req *request.Request, output *GetModelsOutput) { op := &request.Operation{ Name: opGetModels, @@ -3922,9 +4152,8 @@ func (c *APIGateway) GetModelsRequest(input *GetModelsInput) (req *request.Reque input = &GetModelsInput{} } - req = c.newRequest(op, input, output) output = &GetModelsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3940,17 +4169,13 @@ func (c *APIGateway) GetModelsRequest(input *GetModelsInput) (req *request.Reque // API operation GetModels for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetModels(input *GetModelsInput) (*GetModelsOutput, error) { req, out := c.GetModelsRequest(input) @@ -4008,7 +4233,6 @@ const opGetResource = "GetResource" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetResourceRequest(input *GetResourceInput) (req *request.Request, output *Resource) { op := &request.Operation{ Name: opGetResource, @@ -4020,9 +4244,8 @@ func (c *APIGateway) GetResourceRequest(input *GetResourceInput) (req *request.R input = &GetResourceInput{} } - req = c.newRequest(op, input, output) output = &Resource{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4038,14 +4261,11 @@ func (c *APIGateway) GetResourceRequest(input *GetResourceInput) (req *request.R // API operation GetResource for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetResource(input *GetResourceInput) (*Resource, error) { req, out := c.GetResourceRequest(input) @@ -4078,7 +4298,6 @@ const opGetResources = "GetResources" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetResourcesRequest(input *GetResourcesInput) (req *request.Request, output *GetResourcesOutput) { op := &request.Operation{ Name: opGetResources, @@ -4096,9 +4315,8 @@ func (c *APIGateway) GetResourcesRequest(input *GetResourcesInput) (req *request input = &GetResourcesInput{} } - req = c.newRequest(op, input, output) output = &GetResourcesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4114,17 +4332,13 @@ func (c *APIGateway) GetResourcesRequest(input *GetResourcesInput) (req *request // API operation GetResources for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetResources(input *GetResourcesInput) (*GetResourcesOutput, error) { req, out := c.GetResourcesRequest(input) @@ -4182,7 +4396,6 @@ const opGetRestApi = "GetRestApi" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetRestApiRequest(input *GetRestApiInput) (req *request.Request, output *RestApi) { op := &request.Operation{ Name: opGetRestApi, @@ -4194,9 +4407,8 @@ func (c *APIGateway) GetRestApiRequest(input *GetRestApiInput) (req *request.Req input = &GetRestApiInput{} } - req = c.newRequest(op, input, output) output = &RestApi{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4212,14 +4424,11 @@ func (c *APIGateway) GetRestApiRequest(input *GetRestApiInput) (req *request.Req // API operation GetRestApi for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetRestApi(input *GetRestApiInput) (*RestApi, error) { req, out := c.GetRestApiRequest(input) @@ -4252,7 +4461,6 @@ const opGetRestApis = "GetRestApis" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetRestApisRequest(input *GetRestApisInput) (req *request.Request, output *GetRestApisOutput) { op := &request.Operation{ Name: opGetRestApis, @@ -4270,9 +4478,8 @@ func (c *APIGateway) GetRestApisRequest(input *GetRestApisInput) (req *request.R input = &GetRestApisInput{} } - req = c.newRequest(op, input, output) output = &GetRestApisOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4288,14 +4495,11 @@ func (c *APIGateway) GetRestApisRequest(input *GetRestApisInput) (req *request.R // API operation GetRestApis for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetRestApis(input *GetRestApisInput) (*GetRestApisOutput, error) { req, out := c.GetRestApisRequest(input) @@ -4353,7 +4557,6 @@ const opGetSdk = "GetSdk" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetSdkRequest(input *GetSdkInput) (req *request.Request, output *GetSdkOutput) { op := &request.Operation{ Name: opGetSdk, @@ -4365,9 +4568,8 @@ func (c *APIGateway) GetSdkRequest(input *GetSdkInput) (req *request.Request, ou input = &GetSdkInput{} } - req = c.newRequest(op, input, output) output = &GetSdkOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4383,20 +4585,140 @@ func (c *APIGateway) GetSdkRequest(input *GetSdkInput) (req *request.Request, ou // API operation GetSdk for usage and error information. // // Returned Error Codes: -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" +// +// * ErrCodeNotFoundException "NotFoundException" +// +// * ErrCodeBadRequestException "BadRequestException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +func (c *APIGateway) GetSdk(input *GetSdkInput) (*GetSdkOutput, error) { + req, out := c.GetSdkRequest(input) + err := req.Send() + return out, err +} +const opGetSdkType = "GetSdkType" + +// GetSdkTypeRequest generates a "aws/request.Request" representing the +// client's request for the GetSdkType operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetSdkType for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetSdkType method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. // -// * NotFoundException +// // Example sending a request using the GetSdkTypeRequest method. +// req, resp := client.GetSdkTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *APIGateway) GetSdkTypeRequest(input *GetSdkTypeInput) (req *request.Request, output *SdkType) { + op := &request.Operation{ + Name: opGetSdkType, + HTTPMethod: "GET", + HTTPPath: "/sdktypes/{sdktype_id}", + } + + if input == nil { + input = &GetSdkTypeInput{} + } + + output = &SdkType{} + req = c.newRequest(op, input, output) + return +} +// GetSdkType API operation for Amazon API Gateway. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetSdkType for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedException "UnauthorizedException" +// +// * ErrCodeNotFoundException "NotFoundException" // -// * BadRequestException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +func (c *APIGateway) GetSdkType(input *GetSdkTypeInput) (*SdkType, error) { + req, out := c.GetSdkTypeRequest(input) + err := req.Send() + return out, err +} +const opGetSdkTypes = "GetSdkTypes" + +// GetSdkTypesRequest generates a "aws/request.Request" representing the +// client's request for the GetSdkTypes operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetSdkTypes for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetSdkTypes method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. // -// * TooManyRequestsException +// // Example sending a request using the GetSdkTypesRequest method. +// req, resp := client.GetSdkTypesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *APIGateway) GetSdkTypesRequest(input *GetSdkTypesInput) (req *request.Request, output *GetSdkTypesOutput) { + op := &request.Operation{ + Name: opGetSdkTypes, + HTTPMethod: "GET", + HTTPPath: "/sdktypes", + } + + if input == nil { + input = &GetSdkTypesInput{} + } + + output = &GetSdkTypesOutput{} + req = c.newRequest(op, input, output) + return +} +// GetSdkTypes API operation for Amazon API Gateway. // -func (c *APIGateway) GetSdk(input *GetSdkInput) (*GetSdkOutput, error) { - req, out := c.GetSdkRequest(input) +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetSdkTypes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedException "UnauthorizedException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +func (c *APIGateway) GetSdkTypes(input *GetSdkTypesInput) (*GetSdkTypesOutput, error) { + req, out := c.GetSdkTypesRequest(input) err := req.Send() return out, err } @@ -4426,7 +4748,6 @@ const opGetStage = "GetStage" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetStageRequest(input *GetStageInput) (req *request.Request, output *Stage) { op := &request.Operation{ Name: opGetStage, @@ -4438,9 +4759,8 @@ func (c *APIGateway) GetStageRequest(input *GetStageInput) (req *request.Request input = &GetStageInput{} } - req = c.newRequest(op, input, output) output = &Stage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4456,14 +4776,11 @@ func (c *APIGateway) GetStageRequest(input *GetStageInput) (req *request.Request // API operation GetStage for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetStage(input *GetStageInput) (*Stage, error) { req, out := c.GetStageRequest(input) @@ -4496,7 +4813,6 @@ const opGetStages = "GetStages" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetStagesRequest(input *GetStagesInput) (req *request.Request, output *GetStagesOutput) { op := &request.Operation{ Name: opGetStages, @@ -4508,9 +4824,8 @@ func (c *APIGateway) GetStagesRequest(input *GetStagesInput) (req *request.Reque input = &GetStagesInput{} } - req = c.newRequest(op, input, output) output = &GetStagesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4526,14 +4841,11 @@ func (c *APIGateway) GetStagesRequest(input *GetStagesInput) (req *request.Reque // API operation GetStages for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetStages(input *GetStagesInput) (*GetStagesOutput, error) { req, out := c.GetStagesRequest(input) @@ -4566,7 +4878,6 @@ const opGetUsage = "GetUsage" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetUsageRequest(input *GetUsageInput) (req *request.Request, output *Usage) { op := &request.Operation{ Name: opGetUsage, @@ -4584,9 +4895,8 @@ func (c *APIGateway) GetUsageRequest(input *GetUsageInput) (req *request.Request input = &GetUsageInput{} } - req = c.newRequest(op, input, output) output = &Usage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4602,17 +4912,13 @@ func (c *APIGateway) GetUsageRequest(input *GetUsageInput) (req *request.Request // API operation GetUsage for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetUsage(input *GetUsageInput) (*Usage, error) { req, out := c.GetUsageRequest(input) @@ -4670,7 +4976,6 @@ const opGetUsagePlan = "GetUsagePlan" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetUsagePlanRequest(input *GetUsagePlanInput) (req *request.Request, output *UsagePlan) { op := &request.Operation{ Name: opGetUsagePlan, @@ -4682,9 +4987,8 @@ func (c *APIGateway) GetUsagePlanRequest(input *GetUsagePlanInput) (req *request input = &GetUsagePlanInput{} } - req = c.newRequest(op, input, output) output = &UsagePlan{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4700,17 +5004,13 @@ func (c *APIGateway) GetUsagePlanRequest(input *GetUsagePlanInput) (req *request // API operation GetUsagePlan for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetUsagePlan(input *GetUsagePlanInput) (*UsagePlan, error) { req, out := c.GetUsagePlanRequest(input) @@ -4743,7 +5043,6 @@ const opGetUsagePlanKey = "GetUsagePlanKey" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetUsagePlanKeyRequest(input *GetUsagePlanKeyInput) (req *request.Request, output *UsagePlanKey) { op := &request.Operation{ Name: opGetUsagePlanKey, @@ -4755,9 +5054,8 @@ func (c *APIGateway) GetUsagePlanKeyRequest(input *GetUsagePlanKeyInput) (req *r input = &GetUsagePlanKeyInput{} } - req = c.newRequest(op, input, output) output = &UsagePlanKey{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4773,17 +5071,13 @@ func (c *APIGateway) GetUsagePlanKeyRequest(input *GetUsagePlanKeyInput) (req *r // API operation GetUsagePlanKey for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetUsagePlanKey(input *GetUsagePlanKeyInput) (*UsagePlanKey, error) { req, out := c.GetUsagePlanKeyRequest(input) @@ -4816,7 +5110,6 @@ const opGetUsagePlanKeys = "GetUsagePlanKeys" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetUsagePlanKeysRequest(input *GetUsagePlanKeysInput) (req *request.Request, output *GetUsagePlanKeysOutput) { op := &request.Operation{ Name: opGetUsagePlanKeys, @@ -4834,9 +5127,8 @@ func (c *APIGateway) GetUsagePlanKeysRequest(input *GetUsagePlanKeysInput) (req input = &GetUsagePlanKeysInput{} } - req = c.newRequest(op, input, output) output = &GetUsagePlanKeysOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4853,17 +5145,13 @@ func (c *APIGateway) GetUsagePlanKeysRequest(input *GetUsagePlanKeysInput) (req // API operation GetUsagePlanKeys for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) GetUsagePlanKeys(input *GetUsagePlanKeysInput) (*GetUsagePlanKeysOutput, error) { req, out := c.GetUsagePlanKeysRequest(input) @@ -4921,7 +5209,6 @@ const opGetUsagePlans = "GetUsagePlans" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) GetUsagePlansRequest(input *GetUsagePlansInput) (req *request.Request, output *GetUsagePlansOutput) { op := &request.Operation{ Name: opGetUsagePlans, @@ -4939,9 +5226,8 @@ func (c *APIGateway) GetUsagePlansRequest(input *GetUsagePlansInput) (req *reque input = &GetUsagePlansInput{} } - req = c.newRequest(op, input, output) output = &GetUsagePlansOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4957,17 +5243,15 @@ func (c *APIGateway) GetUsagePlansRequest(input *GetUsagePlansInput) (req *reque // API operation GetUsagePlans for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" +// +// * ErrCodeNotFoundException "NotFoundException" // func (c *APIGateway) GetUsagePlans(input *GetUsagePlansInput) (*GetUsagePlansOutput, error) { req, out := c.GetUsagePlansRequest(input) @@ -5025,7 +5309,6 @@ const opImportApiKeys = "ImportApiKeys" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) ImportApiKeysRequest(input *ImportApiKeysInput) (req *request.Request, output *ImportApiKeysOutput) { op := &request.Operation{ Name: opImportApiKeys, @@ -5037,9 +5320,8 @@ func (c *APIGateway) ImportApiKeysRequest(input *ImportApiKeysInput) (req *reque input = &ImportApiKeysInput{} } - req = c.newRequest(op, input, output) output = &ImportApiKeysOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5055,23 +5337,17 @@ func (c *APIGateway) ImportApiKeysRequest(input *ImportApiKeysInput) (req *reque // API operation ImportApiKeys for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * LimitExceededException - +// * ErrCodeLimitExceededException "LimitExceededException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // func (c *APIGateway) ImportApiKeys(input *ImportApiKeysInput) (*ImportApiKeysOutput, error) { req, out := c.ImportApiKeysRequest(input) @@ -5079,6 +5355,73 @@ func (c *APIGateway) ImportApiKeys(input *ImportApiKeysInput) (*ImportApiKeysOut return out, err } +const opImportDocumentationParts = "ImportDocumentationParts" + +// ImportDocumentationPartsRequest generates a "aws/request.Request" representing the +// client's request for the ImportDocumentationParts operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ImportDocumentationParts for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ImportDocumentationParts method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ImportDocumentationPartsRequest method. +// req, resp := client.ImportDocumentationPartsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *APIGateway) ImportDocumentationPartsRequest(input *ImportDocumentationPartsInput) (req *request.Request, output *ImportDocumentationPartsOutput) { + op := &request.Operation{ + Name: opImportDocumentationParts, + HTTPMethod: "PUT", + HTTPPath: "/restapis/{restapi_id}/documentation/parts", + } + + if input == nil { + input = &ImportDocumentationPartsInput{} + } + + output = &ImportDocumentationPartsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ImportDocumentationParts API operation for Amazon API Gateway. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation ImportDocumentationParts for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedException "UnauthorizedException" +// +// * ErrCodeNotFoundException "NotFoundException" +// +// * ErrCodeBadRequestException "BadRequestException" +// +// * ErrCodeLimitExceededException "LimitExceededException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +func (c *APIGateway) ImportDocumentationParts(input *ImportDocumentationPartsInput) (*ImportDocumentationPartsOutput, error) { + req, out := c.ImportDocumentationPartsRequest(input) + err := req.Send() + return out, err +} + const opImportRestApi = "ImportRestApi" // ImportRestApiRequest generates a "aws/request.Request" representing the @@ -5104,7 +5447,6 @@ const opImportRestApi = "ImportRestApi" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) ImportRestApiRequest(input *ImportRestApiInput) (req *request.Request, output *RestApi) { op := &request.Operation{ Name: opImportRestApi, @@ -5116,9 +5458,8 @@ func (c *APIGateway) ImportRestApiRequest(input *ImportRestApiInput) (req *reque input = &ImportRestApiInput{} } - req = c.newRequest(op, input, output) output = &RestApi{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5135,20 +5476,15 @@ func (c *APIGateway) ImportRestApiRequest(input *ImportRestApiInput) (req *reque // API operation ImportRestApi for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * LimitExceededException - +// * ErrCodeLimitExceededException "LimitExceededException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // func (c *APIGateway) ImportRestApi(input *ImportRestApiInput) (*RestApi, error) { req, out := c.ImportRestApiRequest(input) @@ -5181,7 +5517,6 @@ const opPutIntegration = "PutIntegration" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) PutIntegrationRequest(input *PutIntegrationInput) (req *request.Request, output *Integration) { op := &request.Operation{ Name: opPutIntegration, @@ -5193,9 +5528,8 @@ func (c *APIGateway) PutIntegrationRequest(input *PutIntegrationInput) (req *req input = &PutIntegrationInput{} } - req = c.newRequest(op, input, output) output = &Integration{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5211,20 +5545,15 @@ func (c *APIGateway) PutIntegrationRequest(input *PutIntegrationInput) (req *req // API operation PutIntegration for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) PutIntegration(input *PutIntegrationInput) (*Integration, error) { req, out := c.PutIntegrationRequest(input) @@ -5257,7 +5586,6 @@ const opPutIntegrationResponse = "PutIntegrationResponse" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) PutIntegrationResponseRequest(input *PutIntegrationResponseInput) (req *request.Request, output *IntegrationResponse) { op := &request.Operation{ Name: opPutIntegrationResponse, @@ -5269,9 +5597,8 @@ func (c *APIGateway) PutIntegrationResponseRequest(input *PutIntegrationResponse input = &PutIntegrationResponseInput{} } - req = c.newRequest(op, input, output) output = &IntegrationResponse{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5287,23 +5614,17 @@ func (c *APIGateway) PutIntegrationResponseRequest(input *PutIntegrationResponse // API operation PutIntegrationResponse for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * LimitExceededException - +// * ErrCodeLimitExceededException "LimitExceededException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // func (c *APIGateway) PutIntegrationResponse(input *PutIntegrationResponseInput) (*IntegrationResponse, error) { req, out := c.PutIntegrationResponseRequest(input) @@ -5336,7 +5657,6 @@ const opPutMethod = "PutMethod" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) PutMethodRequest(input *PutMethodInput) (req *request.Request, output *Method) { op := &request.Operation{ Name: opPutMethod, @@ -5348,9 +5668,8 @@ func (c *APIGateway) PutMethodRequest(input *PutMethodInput) (req *request.Reque input = &PutMethodInput{} } - req = c.newRequest(op, input, output) output = &Method{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5366,23 +5685,17 @@ func (c *APIGateway) PutMethodRequest(input *PutMethodInput) (req *request.Reque // API operation PutMethod for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // -// * LimitExceededException - +// * ErrCodeLimitExceededException "LimitExceededException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) PutMethod(input *PutMethodInput) (*Method, error) { req, out := c.PutMethodRequest(input) @@ -5415,7 +5728,6 @@ const opPutMethodResponse = "PutMethodResponse" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) PutMethodResponseRequest(input *PutMethodResponseInput) (req *request.Request, output *MethodResponse) { op := &request.Operation{ Name: opPutMethodResponse, @@ -5427,9 +5739,8 @@ func (c *APIGateway) PutMethodResponseRequest(input *PutMethodResponseInput) (re input = &PutMethodResponseInput{} } - req = c.newRequest(op, input, output) output = &MethodResponse{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5445,23 +5756,17 @@ func (c *APIGateway) PutMethodResponseRequest(input *PutMethodResponseInput) (re // API operation PutMethodResponse for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // -// * LimitExceededException - +// * ErrCodeLimitExceededException "LimitExceededException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) PutMethodResponse(input *PutMethodResponseInput) (*MethodResponse, error) { req, out := c.PutMethodResponseRequest(input) @@ -5494,7 +5799,6 @@ const opPutRestApi = "PutRestApi" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) PutRestApiRequest(input *PutRestApiInput) (req *request.Request, output *RestApi) { op := &request.Operation{ Name: opPutRestApi, @@ -5506,9 +5810,8 @@ func (c *APIGateway) PutRestApiRequest(input *PutRestApiInput) (req *request.Req input = &PutRestApiInput{} } - req = c.newRequest(op, input, output) output = &RestApi{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5527,23 +5830,17 @@ func (c *APIGateway) PutRestApiRequest(input *PutRestApiInput) (req *request.Req // API operation PutRestApi for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * LimitExceededException - +// * ErrCodeLimitExceededException "LimitExceededException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // func (c *APIGateway) PutRestApi(input *PutRestApiInput) (*RestApi, error) { req, out := c.PutRestApiRequest(input) @@ -5576,7 +5873,6 @@ const opTestInvokeAuthorizer = "TestInvokeAuthorizer" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) TestInvokeAuthorizerRequest(input *TestInvokeAuthorizerInput) (req *request.Request, output *TestInvokeAuthorizerOutput) { op := &request.Operation{ Name: opTestInvokeAuthorizer, @@ -5588,9 +5884,8 @@ func (c *APIGateway) TestInvokeAuthorizerRequest(input *TestInvokeAuthorizerInpu input = &TestInvokeAuthorizerInput{} } - req = c.newRequest(op, input, output) output = &TestInvokeAuthorizerOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5599,7 +5894,7 @@ func (c *APIGateway) TestInvokeAuthorizerRequest(input *TestInvokeAuthorizerInpu // Simulate the execution of an Authorizer in your RestApi with headers, parameters, // and an incoming request body. // -// Enable custom authorizers (http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html) +// Enable custom authorizers (http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html) // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -5609,17 +5904,13 @@ func (c *APIGateway) TestInvokeAuthorizerRequest(input *TestInvokeAuthorizerInpu // API operation TestInvokeAuthorizer for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) TestInvokeAuthorizer(input *TestInvokeAuthorizerInput) (*TestInvokeAuthorizerOutput, error) { req, out := c.TestInvokeAuthorizerRequest(input) @@ -5652,7 +5943,6 @@ const opTestInvokeMethod = "TestInvokeMethod" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) TestInvokeMethodRequest(input *TestInvokeMethodInput) (req *request.Request, output *TestInvokeMethodOutput) { op := &request.Operation{ Name: opTestInvokeMethod, @@ -5664,9 +5954,8 @@ func (c *APIGateway) TestInvokeMethodRequest(input *TestInvokeMethodInput) (req input = &TestInvokeMethodInput{} } - req = c.newRequest(op, input, output) output = &TestInvokeMethodOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5683,17 +5972,13 @@ func (c *APIGateway) TestInvokeMethodRequest(input *TestInvokeMethodInput) (req // API operation TestInvokeMethod for usage and error information. // // Returned Error Codes: -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) TestInvokeMethod(input *TestInvokeMethodInput) (*TestInvokeMethodOutput, error) { req, out := c.TestInvokeMethodRequest(input) @@ -5726,7 +6011,6 @@ const opUpdateAccount = "UpdateAccount" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) UpdateAccountRequest(input *UpdateAccountInput) (req *request.Request, output *Account) { op := &request.Operation{ Name: opUpdateAccount, @@ -5738,9 +6022,8 @@ func (c *APIGateway) UpdateAccountRequest(input *UpdateAccountInput) (req *reque input = &UpdateAccountInput{} } - req = c.newRequest(op, input, output) output = &Account{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5756,17 +6039,13 @@ func (c *APIGateway) UpdateAccountRequest(input *UpdateAccountInput) (req *reque // API operation UpdateAccount for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) UpdateAccount(input *UpdateAccountInput) (*Account, error) { req, out := c.UpdateAccountRequest(input) @@ -5799,7 +6078,6 @@ const opUpdateApiKey = "UpdateApiKey" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) UpdateApiKeyRequest(input *UpdateApiKeyInput) (req *request.Request, output *ApiKey) { op := &request.Operation{ Name: opUpdateApiKey, @@ -5811,9 +6089,8 @@ func (c *APIGateway) UpdateApiKeyRequest(input *UpdateApiKeyInput) (req *request input = &UpdateApiKeyInput{} } - req = c.newRequest(op, input, output) output = &ApiKey{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5829,20 +6106,15 @@ func (c *APIGateway) UpdateApiKeyRequest(input *UpdateApiKeyInput) (req *request // API operation UpdateApiKey for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // func (c *APIGateway) UpdateApiKey(input *UpdateApiKeyInput) (*ApiKey, error) { req, out := c.UpdateApiKeyRequest(input) @@ -5875,7 +6147,6 @@ const opUpdateAuthorizer = "UpdateAuthorizer" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) UpdateAuthorizerRequest(input *UpdateAuthorizerInput) (req *request.Request, output *Authorizer) { op := &request.Operation{ Name: opUpdateAuthorizer, @@ -5887,9 +6158,8 @@ func (c *APIGateway) UpdateAuthorizerRequest(input *UpdateAuthorizerInput) (req input = &UpdateAuthorizerInput{} } - req = c.newRequest(op, input, output) output = &Authorizer{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5907,17 +6177,13 @@ func (c *APIGateway) UpdateAuthorizerRequest(input *UpdateAuthorizerInput) (req // API operation UpdateAuthorizer for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) UpdateAuthorizer(input *UpdateAuthorizerInput) (*Authorizer, error) { req, out := c.UpdateAuthorizerRequest(input) @@ -5950,7 +6216,6 @@ const opUpdateBasePathMapping = "UpdateBasePathMapping" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) UpdateBasePathMappingRequest(input *UpdateBasePathMappingInput) (req *request.Request, output *BasePathMapping) { op := &request.Operation{ Name: opUpdateBasePathMapping, @@ -5962,9 +6227,8 @@ func (c *APIGateway) UpdateBasePathMappingRequest(input *UpdateBasePathMappingIn input = &UpdateBasePathMappingInput{} } - req = c.newRequest(op, input, output) output = &BasePathMapping{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5980,20 +6244,15 @@ func (c *APIGateway) UpdateBasePathMappingRequest(input *UpdateBasePathMappingIn // API operation UpdateBasePathMapping for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) UpdateBasePathMapping(input *UpdateBasePathMappingInput) (*BasePathMapping, error) { req, out := c.UpdateBasePathMappingRequest(input) @@ -6026,7 +6285,6 @@ const opUpdateClientCertificate = "UpdateClientCertificate" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) UpdateClientCertificateRequest(input *UpdateClientCertificateInput) (req *request.Request, output *ClientCertificate) { op := &request.Operation{ Name: opUpdateClientCertificate, @@ -6038,9 +6296,8 @@ func (c *APIGateway) UpdateClientCertificateRequest(input *UpdateClientCertifica input = &UpdateClientCertificateInput{} } - req = c.newRequest(op, input, output) output = &ClientCertificate{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6056,17 +6313,13 @@ func (c *APIGateway) UpdateClientCertificateRequest(input *UpdateClientCertifica // API operation UpdateClientCertificate for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // func (c *APIGateway) UpdateClientCertificate(input *UpdateClientCertificateInput) (*ClientCertificate, error) { req, out := c.UpdateClientCertificateRequest(input) @@ -6099,7 +6352,6 @@ const opUpdateDeployment = "UpdateDeployment" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) UpdateDeploymentRequest(input *UpdateDeploymentInput) (req *request.Request, output *Deployment) { op := &request.Operation{ Name: opUpdateDeployment, @@ -6111,9 +6363,8 @@ func (c *APIGateway) UpdateDeploymentRequest(input *UpdateDeploymentInput) (req input = &UpdateDeploymentInput{} } - req = c.newRequest(op, input, output) output = &Deployment{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6129,23 +6380,154 @@ func (c *APIGateway) UpdateDeploymentRequest(input *UpdateDeploymentInput) (req // API operation UpdateDeployment for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" +// +// * ErrCodeNotFoundException "NotFoundException" +// +// * ErrCodeBadRequestException "BadRequestException" // -// * NotFoundException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// +func (c *APIGateway) UpdateDeployment(input *UpdateDeploymentInput) (*Deployment, error) { + req, out := c.UpdateDeploymentRequest(input) + err := req.Send() + return out, err +} + +const opUpdateDocumentationPart = "UpdateDocumentationPart" +// UpdateDocumentationPartRequest generates a "aws/request.Request" representing the +// client's request for the UpdateDocumentationPart operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateDocumentationPart for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateDocumentationPart method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateDocumentationPartRequest method. +// req, resp := client.UpdateDocumentationPartRequest(params) // -// * BadRequestException +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *APIGateway) UpdateDocumentationPartRequest(input *UpdateDocumentationPartInput) (req *request.Request, output *DocumentationPart) { + op := &request.Operation{ + Name: opUpdateDocumentationPart, + HTTPMethod: "PATCH", + HTTPPath: "/restapis/{restapi_id}/documentation/parts/{part_id}", + } + + if input == nil { + input = &UpdateDocumentationPartInput{} + } + + output = &DocumentationPart{} + req = c.newRequest(op, input, output) + return +} +// UpdateDocumentationPart API operation for Amazon API Gateway. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation UpdateDocumentationPart for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// +// * ErrCodeNotFoundException "NotFoundException" // -// * TooManyRequestsException +// * ErrCodeConflictException "ConflictException" +// +// * ErrCodeLimitExceededException "LimitExceededException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +func (c *APIGateway) UpdateDocumentationPart(input *UpdateDocumentationPartInput) (*DocumentationPart, error) { + req, out := c.UpdateDocumentationPartRequest(input) + err := req.Send() + return out, err +} +const opUpdateDocumentationVersion = "UpdateDocumentationVersion" + +// UpdateDocumentationVersionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateDocumentationVersion operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateDocumentationVersion for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateDocumentationVersion method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. // -// * ServiceUnavailableException +// // Example sending a request using the UpdateDocumentationVersionRequest method. +// req, resp := client.UpdateDocumentationVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *APIGateway) UpdateDocumentationVersionRequest(input *UpdateDocumentationVersionInput) (req *request.Request, output *DocumentationVersion) { + op := &request.Operation{ + Name: opUpdateDocumentationVersion, + HTTPMethod: "PATCH", + HTTPPath: "/restapis/{restapi_id}/documentation/versions/{doc_version}", + } + + if input == nil { + input = &UpdateDocumentationVersionInput{} + } + + output = &DocumentationVersion{} + req = c.newRequest(op, input, output) + return +} +// UpdateDocumentationVersion API operation for Amazon API Gateway. // -func (c *APIGateway) UpdateDeployment(input *UpdateDeploymentInput) (*Deployment, error) { - req, out := c.UpdateDeploymentRequest(input) +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation UpdateDocumentationVersion for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedException "UnauthorizedException" +// +// * ErrCodeNotFoundException "NotFoundException" +// +// * ErrCodeConflictException "ConflictException" +// +// * ErrCodeBadRequestException "BadRequestException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +func (c *APIGateway) UpdateDocumentationVersion(input *UpdateDocumentationVersionInput) (*DocumentationVersion, error) { + req, out := c.UpdateDocumentationVersionRequest(input) err := req.Send() return out, err } @@ -6175,7 +6557,6 @@ const opUpdateDomainName = "UpdateDomainName" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) UpdateDomainNameRequest(input *UpdateDomainNameInput) (req *request.Request, output *DomainName) { op := &request.Operation{ Name: opUpdateDomainName, @@ -6187,9 +6568,8 @@ func (c *APIGateway) UpdateDomainNameRequest(input *UpdateDomainNameInput) (req input = &UpdateDomainNameInput{} } - req = c.newRequest(op, input, output) output = &DomainName{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6205,20 +6585,15 @@ func (c *APIGateway) UpdateDomainNameRequest(input *UpdateDomainNameInput) (req // API operation UpdateDomainName for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) UpdateDomainName(input *UpdateDomainNameInput) (*DomainName, error) { req, out := c.UpdateDomainNameRequest(input) @@ -6251,7 +6626,6 @@ const opUpdateIntegration = "UpdateIntegration" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) UpdateIntegrationRequest(input *UpdateIntegrationInput) (req *request.Request, output *Integration) { op := &request.Operation{ Name: opUpdateIntegration, @@ -6263,9 +6637,8 @@ func (c *APIGateway) UpdateIntegrationRequest(input *UpdateIntegrationInput) (re input = &UpdateIntegrationInput{} } - req = c.newRequest(op, input, output) output = &Integration{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6281,20 +6654,15 @@ func (c *APIGateway) UpdateIntegrationRequest(input *UpdateIntegrationInput) (re // API operation UpdateIntegration for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // func (c *APIGateway) UpdateIntegration(input *UpdateIntegrationInput) (*Integration, error) { req, out := c.UpdateIntegrationRequest(input) @@ -6327,7 +6695,6 @@ const opUpdateIntegrationResponse = "UpdateIntegrationResponse" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) UpdateIntegrationResponseRequest(input *UpdateIntegrationResponseInput) (req *request.Request, output *IntegrationResponse) { op := &request.Operation{ Name: opUpdateIntegrationResponse, @@ -6339,9 +6706,8 @@ func (c *APIGateway) UpdateIntegrationResponseRequest(input *UpdateIntegrationRe input = &UpdateIntegrationResponseInput{} } - req = c.newRequest(op, input, output) output = &IntegrationResponse{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6357,20 +6723,15 @@ func (c *APIGateway) UpdateIntegrationResponseRequest(input *UpdateIntegrationRe // API operation UpdateIntegrationResponse for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) UpdateIntegrationResponse(input *UpdateIntegrationResponseInput) (*IntegrationResponse, error) { req, out := c.UpdateIntegrationResponseRequest(input) @@ -6403,7 +6764,6 @@ const opUpdateMethod = "UpdateMethod" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) UpdateMethodRequest(input *UpdateMethodInput) (req *request.Request, output *Method) { op := &request.Operation{ Name: opUpdateMethod, @@ -6415,9 +6775,8 @@ func (c *APIGateway) UpdateMethodRequest(input *UpdateMethodInput) (req *request input = &UpdateMethodInput{} } - req = c.newRequest(op, input, output) output = &Method{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6433,20 +6792,15 @@ func (c *APIGateway) UpdateMethodRequest(input *UpdateMethodInput) (req *request // API operation UpdateMethod for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) UpdateMethod(input *UpdateMethodInput) (*Method, error) { req, out := c.UpdateMethodRequest(input) @@ -6479,7 +6833,6 @@ const opUpdateMethodResponse = "UpdateMethodResponse" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) UpdateMethodResponseRequest(input *UpdateMethodResponseInput) (req *request.Request, output *MethodResponse) { op := &request.Operation{ Name: opUpdateMethodResponse, @@ -6491,9 +6844,8 @@ func (c *APIGateway) UpdateMethodResponseRequest(input *UpdateMethodResponseInpu input = &UpdateMethodResponseInput{} } - req = c.newRequest(op, input, output) output = &MethodResponse{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6509,23 +6861,17 @@ func (c *APIGateway) UpdateMethodResponseRequest(input *UpdateMethodResponseInpu // API operation UpdateMethodResponse for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // -// * LimitExceededException - +// * ErrCodeLimitExceededException "LimitExceededException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) UpdateMethodResponse(input *UpdateMethodResponseInput) (*MethodResponse, error) { req, out := c.UpdateMethodResponseRequest(input) @@ -6558,7 +6904,6 @@ const opUpdateModel = "UpdateModel" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) UpdateModelRequest(input *UpdateModelInput) (req *request.Request, output *Model) { op := &request.Operation{ Name: opUpdateModel, @@ -6570,9 +6915,8 @@ func (c *APIGateway) UpdateModelRequest(input *UpdateModelInput) (req *request.R input = &UpdateModelInput{} } - req = c.newRequest(op, input, output) output = &Model{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6588,20 +6932,15 @@ func (c *APIGateway) UpdateModelRequest(input *UpdateModelInput) (req *request.R // API operation UpdateModel for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) UpdateModel(input *UpdateModelInput) (*Model, error) { req, out := c.UpdateModelRequest(input) @@ -6634,7 +6973,6 @@ const opUpdateResource = "UpdateResource" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) UpdateResourceRequest(input *UpdateResourceInput) (req *request.Request, output *Resource) { op := &request.Operation{ Name: opUpdateResource, @@ -6646,9 +6984,8 @@ func (c *APIGateway) UpdateResourceRequest(input *UpdateResourceInput) (req *req input = &UpdateResourceInput{} } - req = c.newRequest(op, input, output) output = &Resource{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6664,20 +7001,15 @@ func (c *APIGateway) UpdateResourceRequest(input *UpdateResourceInput) (req *req // API operation UpdateResource for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) UpdateResource(input *UpdateResourceInput) (*Resource, error) { req, out := c.UpdateResourceRequest(input) @@ -6710,7 +7042,6 @@ const opUpdateRestApi = "UpdateRestApi" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) UpdateRestApiRequest(input *UpdateRestApiInput) (req *request.Request, output *RestApi) { op := &request.Operation{ Name: opUpdateRestApi, @@ -6722,9 +7053,8 @@ func (c *APIGateway) UpdateRestApiRequest(input *UpdateRestApiInput) (req *reque input = &UpdateRestApiInput{} } - req = c.newRequest(op, input, output) output = &RestApi{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6740,20 +7070,15 @@ func (c *APIGateway) UpdateRestApiRequest(input *UpdateRestApiInput) (req *reque // API operation UpdateRestApi for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) UpdateRestApi(input *UpdateRestApiInput) (*RestApi, error) { req, out := c.UpdateRestApiRequest(input) @@ -6786,7 +7111,6 @@ const opUpdateStage = "UpdateStage" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) UpdateStageRequest(input *UpdateStageInput) (req *request.Request, output *Stage) { op := &request.Operation{ Name: opUpdateStage, @@ -6798,9 +7122,8 @@ func (c *APIGateway) UpdateStageRequest(input *UpdateStageInput) (req *request.R input = &UpdateStageInput{} } - req = c.newRequest(op, input, output) output = &Stage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6816,20 +7139,15 @@ func (c *APIGateway) UpdateStageRequest(input *UpdateStageInput) (req *request.R // API operation UpdateStage for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *APIGateway) UpdateStage(input *UpdateStageInput) (*Stage, error) { req, out := c.UpdateStageRequest(input) @@ -6862,7 +7180,6 @@ const opUpdateUsage = "UpdateUsage" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) UpdateUsageRequest(input *UpdateUsageInput) (req *request.Request, output *Usage) { op := &request.Operation{ Name: opUpdateUsage, @@ -6874,9 +7191,8 @@ func (c *APIGateway) UpdateUsageRequest(input *UpdateUsageInput) (req *request.R input = &UpdateUsageInput{} } - req = c.newRequest(op, input, output) output = &Usage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6893,17 +7209,13 @@ func (c *APIGateway) UpdateUsageRequest(input *UpdateUsageInput) (req *request.R // API operation UpdateUsage for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // func (c *APIGateway) UpdateUsage(input *UpdateUsageInput) (*Usage, error) { req, out := c.UpdateUsageRequest(input) @@ -6936,7 +7248,6 @@ const opUpdateUsagePlan = "UpdateUsagePlan" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *APIGateway) UpdateUsagePlanRequest(input *UpdateUsagePlanInput) (req *request.Request, output *UsagePlan) { op := &request.Operation{ Name: opUpdateUsagePlan, @@ -6948,9 +7259,8 @@ func (c *APIGateway) UpdateUsagePlanRequest(input *UpdateUsagePlanInput) (req *r input = &UpdateUsagePlanInput{} } - req = c.newRequest(op, input, output) output = &UsagePlan{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6966,20 +7276,15 @@ func (c *APIGateway) UpdateUsagePlanRequest(input *UpdateUsagePlanInput) (req *r // API operation UpdateUsagePlan for usage and error information. // // Returned Error Codes: -// * UnauthorizedException - +// * ErrCodeUnauthorizedException "UnauthorizedException" // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * BadRequestException - +// * ErrCodeBadRequestException "BadRequestException" // -// * NotFoundException - +// * ErrCodeNotFoundException "NotFoundException" // -// * ConflictException - +// * ErrCodeConflictException "ConflictException" // func (c *APIGateway) UpdateUsagePlan(input *UpdateUsagePlanInput) (*UsagePlan, error) { req, out := c.UpdateUsagePlanRequest(input) @@ -6989,15 +7294,17 @@ func (c *APIGateway) UpdateUsagePlan(input *UpdateUsagePlanInput) (*UsagePlan, e // Represents an AWS account that is associated with Amazon API Gateway. // -// To view the account info, call GET on this resource. +// To view the account info, call GET on this resource. // // Error Codes // // The following exception may be thrown when the request fails. // -// UnauthorizedException NotFoundException TooManyRequestsException For detailed -// error code information, including the corresponding HTTP Status Codes, see -// API Gateway Error Codes (http://docs.aws.amazon.com/apigateway/api-reference/handling-errors/#api-error-codes) +// UnauthorizedException +// NotFoundException +// TooManyRequestsException +// For detailed error code information, including the corresponding HTTP Status +// Codes, see API Gateway Error Codes (http://docs.aws.amazon.com/apigateway/api-reference/handling-errors/#api-error-codes) // // Example: Get the information about an account. // @@ -7005,7 +7312,8 @@ func (c *APIGateway) UpdateUsagePlan(input *UpdateUsagePlanInput) (*UsagePlan, e // // GET /account HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com // X-Amz-Date: 20160531T184618Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/us-east-1/apigateway/aws4_request, -// SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response +// SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} +// Response // // The successful response returns a 200 OK status code and a payload similar // to the following: @@ -7013,12 +7321,12 @@ func (c *APIGateway) UpdateUsagePlan(input *UpdateUsagePlanInput) (*UsagePlan, e // { "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/account-apigateway-{rel}.html", // "name": "account", "templated": true }, "self": { "href": "/account" }, "account:update": // { "href": "/account" } }, "cloudwatchRoleArn": "arn:aws:iam::123456789012:role/apigAwsProxyRole", -// "throttleSettings": { "rateLimit": 500, "burstLimit": 1000 } } In addition -// to making the REST API call directly, you can use the AWS CLI and an AWS -// SDK to access this resource. +// "throttleSettings": { "rateLimit": 500, "burstLimit": 1000 } } +// In addition to making the REST API call directly, you can use the AWS CLI +// and an AWS SDK to access this resource. // -// API Gateway Limits (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-limits.html) -// Developer Guide (http://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html), +// API Gateway Limits (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-limits.html)Developer +// Guide (http://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html), // AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-account.html) type Account struct { _ struct{} `type:"structure"` @@ -7047,19 +7355,46 @@ func (s Account) GoString() string { return s.String() } +// SetApiKeyVersion sets the ApiKeyVersion field's value. +func (s *Account) SetApiKeyVersion(v string) *Account { + s.ApiKeyVersion = &v + return s +} + +// SetCloudwatchRoleArn sets the CloudwatchRoleArn field's value. +func (s *Account) SetCloudwatchRoleArn(v string) *Account { + s.CloudwatchRoleArn = &v + return s +} + +// SetFeatures sets the Features field's value. +func (s *Account) SetFeatures(v []*string) *Account { + s.Features = v + return s +} + +// SetThrottleSettings sets the ThrottleSettings field's value. +func (s *Account) SetThrottleSettings(v *ThrottleSettings) *Account { + s.ThrottleSettings = v + return s +} + // A resource that can be distributed to callers for executing Method resources // that require an API key. API keys can be mapped to any Stage on any RestApi, // which indicates that the callers with the API key can make requests to that // stage. // -// Use API Keys (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-api-keys.html) +// Use API Keys (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-api-keys.html) type ApiKey struct { _ struct{} `type:"structure"` - // The date when the API Key was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" - // target="_blank). + // The timestamp when the API Key was created. CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"` + // An AWS Marketplace customer identifier , when integrating with the AWS SaaS + // Marketplace. + CustomerId *string `locationName:"customerId" type:"string"` + // The description of the API Key. Description *string `locationName:"description" type:"string"` @@ -7069,7 +7404,7 @@ type ApiKey struct { // The identifier of the API Key. Id *string `locationName:"id" type:"string"` - // When the API Key was last updated, in ISO 8601 format. + // The timestamp when the API Key was last updated. LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"` // The name of the API Key. @@ -7092,6 +7427,60 @@ func (s ApiKey) GoString() string { return s.String() } +// SetCreatedDate sets the CreatedDate field's value. +func (s *ApiKey) SetCreatedDate(v time.Time) *ApiKey { + s.CreatedDate = &v + return s +} + +// SetCustomerId sets the CustomerId field's value. +func (s *ApiKey) SetCustomerId(v string) *ApiKey { + s.CustomerId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ApiKey) SetDescription(v string) *ApiKey { + s.Description = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *ApiKey) SetEnabled(v bool) *ApiKey { + s.Enabled = &v + return s +} + +// SetId sets the Id field's value. +func (s *ApiKey) SetId(v string) *ApiKey { + s.Id = &v + return s +} + +// SetLastUpdatedDate sets the LastUpdatedDate field's value. +func (s *ApiKey) SetLastUpdatedDate(v time.Time) *ApiKey { + s.LastUpdatedDate = &v + return s +} + +// SetName sets the Name field's value. +func (s *ApiKey) SetName(v string) *ApiKey { + s.Name = &v + return s +} + +// SetStageKeys sets the StageKeys field's value. +func (s *ApiKey) SetStageKeys(v []*string) *ApiKey { + s.StageKeys = v + return s +} + +// SetValue sets the Value field's value. +func (s *ApiKey) SetValue(v string) *ApiKey { + s.Value = &v + return s +} + // API stage name of the associated API stage in a usage plan. type ApiStage struct { _ struct{} `type:"structure"` @@ -7113,10 +7502,22 @@ func (s ApiStage) GoString() string { return s.String() } +// SetApiId sets the ApiId field's value. +func (s *ApiStage) SetApiId(v string) *ApiStage { + s.ApiId = &v + return s +} + +// SetStage sets the Stage field's value. +func (s *ApiStage) SetStage(v string) *ApiStage { + s.Stage = &v + return s +} + // Represents an authorization layer for methods. If enabled on a method, API // Gateway will activate the authorizer when a client calls the method. // -// Enable custom authorization (http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html) +// Enable custom authorization (http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html) type Authorizer struct { _ struct{} `type:"structure"` @@ -7136,22 +7537,24 @@ type Authorizer struct { AuthorizerResultTtlInSeconds *int64 `locationName:"authorizerResultTtlInSeconds" type:"integer"` // [Required] Specifies the authorizer's Uniform Resource Identifier (URI). - // For TOKEN authorizers, this must be a well-formed Lambda function URI. The - // URI should be of the form arn:aws:apigateway:{region}:lambda:path/{service_api}. - // Region is used to determine the right endpoint. In this case, path is used - // to indicate that the remaining substring in the URI should be treated as - // the path to the resource, including the initial /. For Lambda functions, - // this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations + // For TOKEN authorizers, this must be a well-formed Lambda function URI, for + // example, arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations. + // In general, the URI has this form arn:aws:apigateway:{region}:lambda:path/{service_api}, + // where {region} is the same as the region hosting the Lambda function, path + // indicates that the remaining substring in the URI should be treated as the + // path to the resource, including the initial /. For Lambda functions, this + // is usually of the form /2015-03-31/functions/[FunctionARN]/invocations. AuthorizerUri *string `locationName:"authorizerUri" type:"string"` // The identifier for the authorizer resource. Id *string `locationName:"id" type:"string"` - // [Required] The source of the identity in an incoming request. For TOKEN authorizers, - // this value is a mapping expression with the same syntax as integration parameter - // mappings. The only valid source for tokens is 'header', so the expression - // should match 'method.request.header.[headerName]'. The value of the header - // '[headerName]' will be interpreted as the incoming token. + // [Required] The source of the identity in an incoming request. For a TOKEN + // authorizer, this value is a mapping expression with the same syntax as integration + // parameter mappings. The only valid source for tokens is 'header', so the + // expression should match 'method.request.header.[headerName]'. The value of + // the header '[headerName]' will be interpreted as the incoming token. For + // COGNITO_USER_POOLS authorizers, this property is used. IdentitySource *string `locationName:"identitySource" type:"string"` // A validation expression for the incoming identity. For TOKEN authorizers, @@ -7163,11 +7566,13 @@ type Authorizer struct { // [Required] The name of the authorizer. Name *string `locationName:"name" type:"string"` - // A list of the provider ARNs of the authorizer. + // A list of the provider ARNs of the authorizer. For an TOKEN authorizer, this + // is not defined. For authorizers of the COGNITO_USER_POOLS type, each element + // corresponds to a user pool ARN of this format: arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. ProviderARNs []*string `locationName:"providerARNs" type:"list"` - // [Required] The type of the authorizer. Currently, the only valid type is - // TOKEN. + // [Required] The type of the authorizer. Currently, the valid type is TOKEN + // for a Lambda function or COGNITO_USER_POOLS for an Amazon Cognito user pool. Type *string `locationName:"type" type:"string" enum:"AuthorizerType"` } @@ -7181,11 +7586,72 @@ func (s Authorizer) GoString() string { return s.String() } +// SetAuthType sets the AuthType field's value. +func (s *Authorizer) SetAuthType(v string) *Authorizer { + s.AuthType = &v + return s +} + +// SetAuthorizerCredentials sets the AuthorizerCredentials field's value. +func (s *Authorizer) SetAuthorizerCredentials(v string) *Authorizer { + s.AuthorizerCredentials = &v + return s +} + +// SetAuthorizerResultTtlInSeconds sets the AuthorizerResultTtlInSeconds field's value. +func (s *Authorizer) SetAuthorizerResultTtlInSeconds(v int64) *Authorizer { + s.AuthorizerResultTtlInSeconds = &v + return s +} + +// SetAuthorizerUri sets the AuthorizerUri field's value. +func (s *Authorizer) SetAuthorizerUri(v string) *Authorizer { + s.AuthorizerUri = &v + return s +} + +// SetId sets the Id field's value. +func (s *Authorizer) SetId(v string) *Authorizer { + s.Id = &v + return s +} + +// SetIdentitySource sets the IdentitySource field's value. +func (s *Authorizer) SetIdentitySource(v string) *Authorizer { + s.IdentitySource = &v + return s +} + +// SetIdentityValidationExpression sets the IdentityValidationExpression field's value. +func (s *Authorizer) SetIdentityValidationExpression(v string) *Authorizer { + s.IdentityValidationExpression = &v + return s +} + +// SetName sets the Name field's value. +func (s *Authorizer) SetName(v string) *Authorizer { + s.Name = &v + return s +} + +// SetProviderARNs sets the ProviderARNs field's value. +func (s *Authorizer) SetProviderARNs(v []*string) *Authorizer { + s.ProviderARNs = v + return s +} + +// SetType sets the Type field's value. +func (s *Authorizer) SetType(v string) *Authorizer { + s.Type = &v + return s +} + // Represents the base path that callers of the API must provide as part of // the URL after the domain name. // // A custom domain name plus a BasePathMapping specification identifies a deployed -// RestApi in a given stage of the owner Account. Use Custom Domain Names (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) +// RestApi in a given stage of the owner Account. +// Use Custom Domain Names (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) type BasePathMapping struct { _ struct{} `type:"structure"` @@ -7210,27 +7676,43 @@ func (s BasePathMapping) GoString() string { return s.String() } +// SetBasePath sets the BasePath field's value. +func (s *BasePathMapping) SetBasePath(v string) *BasePathMapping { + s.BasePath = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *BasePathMapping) SetRestApiId(v string) *BasePathMapping { + s.RestApiId = &v + return s +} + +// SetStage sets the Stage field's value. +func (s *BasePathMapping) SetStage(v string) *BasePathMapping { + s.Stage = &v + return s +} + // Represents a client certificate used to configure client-side SSL authentication // while sending requests to the integration endpoint. // // Client certificates are used authenticate an API by the back-end server. -// To authenticate an API client (or user), use a custom Authorizer. Use Client-Side -// Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-client-side-ssl-authentication.html) +// To authenticate an API client (or user), use a custom Authorizer. +// Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-client-side-ssl-authentication.html) type ClientCertificate struct { _ struct{} `type:"structure"` // The identifier of the client certificate. ClientCertificateId *string `locationName:"clientCertificateId" type:"string"` - // The date when the client certificate was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" - // target="_blank). + // The timestamp when the client certificate was created. CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"` // The description of the client certificate. Description *string `locationName:"description" type:"string"` - // The date when the client certificate will expire, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" - // target="_blank). + // The timestamp when the client certificate will expire. ExpirationDate *time.Time `locationName:"expirationDate" type:"timestamp" timestampFormat:"unix"` // The PEM-encoded public key of the client certificate, which can be used to @@ -7248,10 +7730,44 @@ func (s ClientCertificate) GoString() string { return s.String() } +// SetClientCertificateId sets the ClientCertificateId field's value. +func (s *ClientCertificate) SetClientCertificateId(v string) *ClientCertificate { + s.ClientCertificateId = &v + return s +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *ClientCertificate) SetCreatedDate(v time.Time) *ClientCertificate { + s.CreatedDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ClientCertificate) SetDescription(v string) *ClientCertificate { + s.Description = &v + return s +} + +// SetExpirationDate sets the ExpirationDate field's value. +func (s *ClientCertificate) SetExpirationDate(v time.Time) *ClientCertificate { + s.ExpirationDate = &v + return s +} + +// SetPemEncodedCertificate sets the PemEncodedCertificate field's value. +func (s *ClientCertificate) SetPemEncodedCertificate(v string) *ClientCertificate { + s.PemEncodedCertificate = &v + return s +} + // Request to create an ApiKey resource. type CreateApiKeyInput struct { _ struct{} `type:"structure"` + // An AWS Marketplace customer identifier , when integrating with the AWS SaaS + // Marketplace. + CustomerId *string `locationName:"customerId" type:"string"` + // The description of the ApiKey. Description *string `locationName:"description" type:"string"` @@ -7282,6 +7798,48 @@ func (s CreateApiKeyInput) GoString() string { return s.String() } +// SetCustomerId sets the CustomerId field's value. +func (s *CreateApiKeyInput) SetCustomerId(v string) *CreateApiKeyInput { + s.CustomerId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateApiKeyInput) SetDescription(v string) *CreateApiKeyInput { + s.Description = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *CreateApiKeyInput) SetEnabled(v bool) *CreateApiKeyInput { + s.Enabled = &v + return s +} + +// SetGenerateDistinctId sets the GenerateDistinctId field's value. +func (s *CreateApiKeyInput) SetGenerateDistinctId(v bool) *CreateApiKeyInput { + s.GenerateDistinctId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateApiKeyInput) SetName(v string) *CreateApiKeyInput { + s.Name = &v + return s +} + +// SetStageKeys sets the StageKeys field's value. +func (s *CreateApiKeyInput) SetStageKeys(v []*StageKey) *CreateApiKeyInput { + s.StageKeys = v + return s +} + +// SetValue sets the Value field's value. +func (s *CreateApiKeyInput) SetValue(v string) *CreateApiKeyInput { + s.Value = &v + return s +} + // Request to add a new Authorizer to an existing RestApi resource. type CreateAuthorizerInput struct { _ struct{} `type:"structure"` @@ -7358,6 +7916,66 @@ func (s *CreateAuthorizerInput) Validate() error { return nil } +// SetAuthType sets the AuthType field's value. +func (s *CreateAuthorizerInput) SetAuthType(v string) *CreateAuthorizerInput { + s.AuthType = &v + return s +} + +// SetAuthorizerCredentials sets the AuthorizerCredentials field's value. +func (s *CreateAuthorizerInput) SetAuthorizerCredentials(v string) *CreateAuthorizerInput { + s.AuthorizerCredentials = &v + return s +} + +// SetAuthorizerResultTtlInSeconds sets the AuthorizerResultTtlInSeconds field's value. +func (s *CreateAuthorizerInput) SetAuthorizerResultTtlInSeconds(v int64) *CreateAuthorizerInput { + s.AuthorizerResultTtlInSeconds = &v + return s +} + +// SetAuthorizerUri sets the AuthorizerUri field's value. +func (s *CreateAuthorizerInput) SetAuthorizerUri(v string) *CreateAuthorizerInput { + s.AuthorizerUri = &v + return s +} + +// SetIdentitySource sets the IdentitySource field's value. +func (s *CreateAuthorizerInput) SetIdentitySource(v string) *CreateAuthorizerInput { + s.IdentitySource = &v + return s +} + +// SetIdentityValidationExpression sets the IdentityValidationExpression field's value. +func (s *CreateAuthorizerInput) SetIdentityValidationExpression(v string) *CreateAuthorizerInput { + s.IdentityValidationExpression = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateAuthorizerInput) SetName(v string) *CreateAuthorizerInput { + s.Name = &v + return s +} + +// SetProviderARNs sets the ProviderARNs field's value. +func (s *CreateAuthorizerInput) SetProviderARNs(v []*string) *CreateAuthorizerInput { + s.ProviderARNs = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *CreateAuthorizerInput) SetRestApiId(v string) *CreateAuthorizerInput { + s.RestApiId = &v + return s +} + +// SetType sets the Type field's value. +func (s *CreateAuthorizerInput) SetType(v string) *CreateAuthorizerInput { + s.Type = &v + return s +} + // Requests Amazon API Gateway to create a new BasePathMapping resource. type CreateBasePathMappingInput struct { _ struct{} `type:"structure"` @@ -7410,6 +8028,30 @@ func (s *CreateBasePathMappingInput) Validate() error { return nil } +// SetBasePath sets the BasePath field's value. +func (s *CreateBasePathMappingInput) SetBasePath(v string) *CreateBasePathMappingInput { + s.BasePath = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *CreateBasePathMappingInput) SetDomainName(v string) *CreateBasePathMappingInput { + s.DomainName = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *CreateBasePathMappingInput) SetRestApiId(v string) *CreateBasePathMappingInput { + s.RestApiId = &v + return s +} + +// SetStage sets the Stage field's value. +func (s *CreateBasePathMappingInput) SetStage(v string) *CreateBasePathMappingInput { + s.Stage = &v + return s +} + // Requests Amazon API Gateway to create a Deployment resource. type CreateDeploymentInput struct { _ struct{} `type:"structure"` @@ -7433,9 +8075,7 @@ type CreateDeploymentInput struct { StageDescription *string `locationName:"stageDescription" type:"string"` // The name of the Stage resource for the Deployment resource to create. - // - // StageName is a required field - StageName *string `locationName:"stageName" type:"string" required:"true"` + StageName *string `locationName:"stageName" type:"string"` // A map that defines the stage variables for the Stage resource that is associated // with the new deployment. Variable names can have alphanumeric and underscore @@ -7459,8 +8099,170 @@ func (s *CreateDeploymentInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCacheClusterEnabled sets the CacheClusterEnabled field's value. +func (s *CreateDeploymentInput) SetCacheClusterEnabled(v bool) *CreateDeploymentInput { + s.CacheClusterEnabled = &v + return s +} + +// SetCacheClusterSize sets the CacheClusterSize field's value. +func (s *CreateDeploymentInput) SetCacheClusterSize(v string) *CreateDeploymentInput { + s.CacheClusterSize = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateDeploymentInput) SetDescription(v string) *CreateDeploymentInput { + s.Description = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *CreateDeploymentInput) SetRestApiId(v string) *CreateDeploymentInput { + s.RestApiId = &v + return s +} + +// SetStageDescription sets the StageDescription field's value. +func (s *CreateDeploymentInput) SetStageDescription(v string) *CreateDeploymentInput { + s.StageDescription = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *CreateDeploymentInput) SetStageName(v string) *CreateDeploymentInput { + s.StageName = &v + return s +} + +// SetVariables sets the Variables field's value. +func (s *CreateDeploymentInput) SetVariables(v map[string]*string) *CreateDeploymentInput { + s.Variables = v + return s +} + +// Creates a new documentation part of a given API. +type CreateDocumentationPartInput struct { + _ struct{} `type:"structure"` + + // [Required] The location of the targeted API entity of the to-be-created documentation + // part. + // + // Location is a required field + Location *DocumentationPartLocation `locationName:"location" type:"structure" required:"true"` + + // [Required] The new documentation content map of the targeted API entity. + // Enclosed key-value pairs are API-specific, but only Swagger-compliant key-value + // pairs can be exported and, hence, published. + // + // Properties is a required field + Properties *string `locationName:"properties" type:"string" required:"true"` + + // [Required] The identifier of an API of the to-be-created documentation part. + // + // RestApiId is a required field + RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateDocumentationPartInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDocumentationPartInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDocumentationPartInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDocumentationPartInput"} + if s.Location == nil { + invalidParams.Add(request.NewErrParamRequired("Location")) + } + if s.Properties == nil { + invalidParams.Add(request.NewErrParamRequired("Properties")) + } + if s.RestApiId == nil { + invalidParams.Add(request.NewErrParamRequired("RestApiId")) + } + if s.Location != nil { + if err := s.Location.Validate(); err != nil { + invalidParams.AddNested("Location", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLocation sets the Location field's value. +func (s *CreateDocumentationPartInput) SetLocation(v *DocumentationPartLocation) *CreateDocumentationPartInput { + s.Location = v + return s +} + +// SetProperties sets the Properties field's value. +func (s *CreateDocumentationPartInput) SetProperties(v string) *CreateDocumentationPartInput { + s.Properties = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *CreateDocumentationPartInput) SetRestApiId(v string) *CreateDocumentationPartInput { + s.RestApiId = &v + return s +} + +// Creates a new documentation version of a given API. +type CreateDocumentationVersionInput struct { + _ struct{} `type:"structure"` + + // A description about the new documentation snapshot. + Description *string `locationName:"description" type:"string"` + + // [Required] The version identifier of the new snapshot. + // + // DocumentationVersion is a required field + DocumentationVersion *string `locationName:"documentationVersion" type:"string" required:"true"` + + // [Required] Specifies the API identifier of the to-be-created documentation + // version. + // + // RestApiId is a required field + RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` + + // The stage name to be associated with the new documentation snapshot. + StageName *string `locationName:"stageName" type:"string"` +} + +// String returns the string representation +func (s CreateDocumentationVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDocumentationVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDocumentationVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDocumentationVersionInput"} + if s.DocumentationVersion == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentationVersion")) + } + if s.RestApiId == nil { + invalidParams.Add(request.NewErrParamRequired("RestApiId")) } if invalidParams.Len() > 0 { @@ -7469,36 +8271,57 @@ func (s *CreateDeploymentInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateDocumentationVersionInput) SetDescription(v string) *CreateDocumentationVersionInput { + s.Description = &v + return s +} + +// SetDocumentationVersion sets the DocumentationVersion field's value. +func (s *CreateDocumentationVersionInput) SetDocumentationVersion(v string) *CreateDocumentationVersionInput { + s.DocumentationVersion = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *CreateDocumentationVersionInput) SetRestApiId(v string) *CreateDocumentationVersionInput { + s.RestApiId = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *CreateDocumentationVersionInput) SetStageName(v string) *CreateDocumentationVersionInput { + s.StageName = &v + return s +} + // A request to create a new domain name. type CreateDomainNameInput struct { _ struct{} `type:"structure"` - // The body of the server certificate provided by your certificate authority. - // - // CertificateBody is a required field - CertificateBody *string `locationName:"certificateBody" type:"string" required:"true"` + // The reference to an AWS-managed certificate. AWS Certificate Manager is the + // only supported source. + CertificateArn *string `locationName:"certificateArn" type:"string"` + + // [Deprecated] The body of the server certificate provided by your certificate + // authority. + CertificateBody *string `locationName:"certificateBody" type:"string"` - // The intermediate certificates and optionally the root certificate, one after - // the other without any blank lines. If you include the root certificate, your - // certificate chain must start with intermediate certificates and end with - // the root certificate. Use the intermediate certificates that were provided + // [Deprecated] The intermediate certificates and optionally the root certificate, + // one after the other without any blank lines. If you include the root certificate, + // your certificate chain must start with intermediate certificates and end + // with the root certificate. Use the intermediate certificates that were provided // by your certificate authority. Do not include any intermediaries that are // not in the chain of trust path. - // - // CertificateChain is a required field - CertificateChain *string `locationName:"certificateChain" type:"string" required:"true"` + CertificateChain *string `locationName:"certificateChain" type:"string"` - // The name of the certificate. - // - // CertificateName is a required field - CertificateName *string `locationName:"certificateName" type:"string" required:"true"` + // The user-friendly name of the certificate. + CertificateName *string `locationName:"certificateName" type:"string"` - // Your certificate's private key. - // - // CertificatePrivateKey is a required field - CertificatePrivateKey *string `locationName:"certificatePrivateKey" type:"string" required:"true"` + // [Deprecated] Your certificate's private key. + CertificatePrivateKey *string `locationName:"certificatePrivateKey" type:"string"` - // The name of the DomainName resource. + // (Required) The name of the DomainName resource. // // DomainName is a required field DomainName *string `locationName:"domainName" type:"string" required:"true"` @@ -7517,18 +8340,6 @@ func (s CreateDomainNameInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *CreateDomainNameInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateDomainNameInput"} - if s.CertificateBody == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateBody")) - } - if s.CertificateChain == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateChain")) - } - if s.CertificateName == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateName")) - } - if s.CertificatePrivateKey == nil { - invalidParams.Add(request.NewErrParamRequired("CertificatePrivateKey")) - } if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } @@ -7539,6 +8350,42 @@ func (s *CreateDomainNameInput) Validate() error { return nil } +// SetCertificateArn sets the CertificateArn field's value. +func (s *CreateDomainNameInput) SetCertificateArn(v string) *CreateDomainNameInput { + s.CertificateArn = &v + return s +} + +// SetCertificateBody sets the CertificateBody field's value. +func (s *CreateDomainNameInput) SetCertificateBody(v string) *CreateDomainNameInput { + s.CertificateBody = &v + return s +} + +// SetCertificateChain sets the CertificateChain field's value. +func (s *CreateDomainNameInput) SetCertificateChain(v string) *CreateDomainNameInput { + s.CertificateChain = &v + return s +} + +// SetCertificateName sets the CertificateName field's value. +func (s *CreateDomainNameInput) SetCertificateName(v string) *CreateDomainNameInput { + s.CertificateName = &v + return s +} + +// SetCertificatePrivateKey sets the CertificatePrivateKey field's value. +func (s *CreateDomainNameInput) SetCertificatePrivateKey(v string) *CreateDomainNameInput { + s.CertificatePrivateKey = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *CreateDomainNameInput) SetDomainName(v string) *CreateDomainNameInput { + s.DomainName = &v + return s +} + // Request to add a new Model to an existing RestApi resource. type CreateModelInput struct { _ struct{} `type:"structure"` @@ -7562,7 +8409,7 @@ type CreateModelInput struct { RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` // The schema for the model. For application/json models, this should be JSON-schema - // draft v4 (http://json-schema.org/documentation.html" target="_blank) model. + // draft v4 (http://json-schema.org/documentation.html) model. Schema *string `locationName:"schema" type:"string"` } @@ -7595,6 +8442,36 @@ func (s *CreateModelInput) Validate() error { return nil } +// SetContentType sets the ContentType field's value. +func (s *CreateModelInput) SetContentType(v string) *CreateModelInput { + s.ContentType = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateModelInput) SetDescription(v string) *CreateModelInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateModelInput) SetName(v string) *CreateModelInput { + s.Name = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *CreateModelInput) SetRestApiId(v string) *CreateModelInput { + s.RestApiId = &v + return s +} + +// SetSchema sets the Schema field's value. +func (s *CreateModelInput) SetSchema(v string) *CreateModelInput { + s.Schema = &v + return s +} + // Requests Amazon API Gateway to create a Resource resource. type CreateResourceInput struct { _ struct{} `type:"structure"` @@ -7644,10 +8521,32 @@ func (s *CreateResourceInput) Validate() error { return nil } +// SetParentId sets the ParentId field's value. +func (s *CreateResourceInput) SetParentId(v string) *CreateResourceInput { + s.ParentId = &v + return s +} + +// SetPathPart sets the PathPart field's value. +func (s *CreateResourceInput) SetPathPart(v string) *CreateResourceInput { + s.PathPart = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *CreateResourceInput) SetRestApiId(v string) *CreateResourceInput { + s.RestApiId = &v + return s +} + // The POST Request to add a new RestApi resource to your collection. type CreateRestApiInput struct { _ struct{} `type:"structure"` + // The list of binary media types supported by the RestApi. By default, the + // RestApi supports only UTF-8-encoded text payloads. + BinaryMediaTypes []*string `locationName:"binaryMediaTypes" type:"list"` + // The ID of the RestApi that you want to clone from. CloneFrom *string `locationName:"cloneFrom" type:"string"` @@ -7658,6 +8557,9 @@ type CreateRestApiInput struct { // // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` + + // A version identifier for the API. + Version *string `locationName:"version" type:"string"` } // String returns the string representation @@ -7683,6 +8585,36 @@ func (s *CreateRestApiInput) Validate() error { return nil } +// SetBinaryMediaTypes sets the BinaryMediaTypes field's value. +func (s *CreateRestApiInput) SetBinaryMediaTypes(v []*string) *CreateRestApiInput { + s.BinaryMediaTypes = v + return s +} + +// SetCloneFrom sets the CloneFrom field's value. +func (s *CreateRestApiInput) SetCloneFrom(v string) *CreateRestApiInput { + s.CloneFrom = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateRestApiInput) SetDescription(v string) *CreateRestApiInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateRestApiInput) SetName(v string) *CreateRestApiInput { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *CreateRestApiInput) SetVersion(v string) *CreateRestApiInput { + s.Version = &v + return s +} + // Requests Amazon API Gateway to create a Stage resource. type CreateStageInput struct { _ struct{} `type:"structure"` @@ -7701,6 +8633,9 @@ type CreateStageInput struct { // The description of the Stage resource. Description *string `locationName:"description" type:"string"` + // The version of the associated API documentation. + DocumentationVersion *string `locationName:"documentationVersion" type:"string"` + // The identifier of the RestApi resource for the Stage resource to create. // // RestApiId is a required field @@ -7746,6 +8681,54 @@ func (s *CreateStageInput) Validate() error { return nil } +// SetCacheClusterEnabled sets the CacheClusterEnabled field's value. +func (s *CreateStageInput) SetCacheClusterEnabled(v bool) *CreateStageInput { + s.CacheClusterEnabled = &v + return s +} + +// SetCacheClusterSize sets the CacheClusterSize field's value. +func (s *CreateStageInput) SetCacheClusterSize(v string) *CreateStageInput { + s.CacheClusterSize = &v + return s +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *CreateStageInput) SetDeploymentId(v string) *CreateStageInput { + s.DeploymentId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateStageInput) SetDescription(v string) *CreateStageInput { + s.Description = &v + return s +} + +// SetDocumentationVersion sets the DocumentationVersion field's value. +func (s *CreateStageInput) SetDocumentationVersion(v string) *CreateStageInput { + s.DocumentationVersion = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *CreateStageInput) SetRestApiId(v string) *CreateStageInput { + s.RestApiId = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *CreateStageInput) SetStageName(v string) *CreateStageInput { + s.StageName = &v + return s +} + +// SetVariables sets the Variables field's value. +func (s *CreateStageInput) SetVariables(v map[string]*string) *CreateStageInput { + s.Variables = v + return s +} + // The POST request to create a usage plan with the name, description, throttle // limits and quota limits, as well as the associated API stages, specified // in the payload. @@ -7793,6 +8776,36 @@ func (s *CreateUsagePlanInput) Validate() error { return nil } +// SetApiStages sets the ApiStages field's value. +func (s *CreateUsagePlanInput) SetApiStages(v []*ApiStage) *CreateUsagePlanInput { + s.ApiStages = v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateUsagePlanInput) SetDescription(v string) *CreateUsagePlanInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateUsagePlanInput) SetName(v string) *CreateUsagePlanInput { + s.Name = &v + return s +} + +// SetQuota sets the Quota field's value. +func (s *CreateUsagePlanInput) SetQuota(v *QuotaSettings) *CreateUsagePlanInput { + s.Quota = v + return s +} + +// SetThrottle sets the Throttle field's value. +func (s *CreateUsagePlanInput) SetThrottle(v *ThrottleSettings) *CreateUsagePlanInput { + s.Throttle = v + return s +} + // The POST request to create a usage plan key for adding an existing API key // to a usage plan. type CreateUsagePlanKeyInput struct { @@ -7844,6 +8857,24 @@ func (s *CreateUsagePlanKeyInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *CreateUsagePlanKeyInput) SetKeyId(v string) *CreateUsagePlanKeyInput { + s.KeyId = &v + return s +} + +// SetKeyType sets the KeyType field's value. +func (s *CreateUsagePlanKeyInput) SetKeyType(v string) *CreateUsagePlanKeyInput { + s.KeyType = &v + return s +} + +// SetUsagePlanId sets the UsagePlanId field's value. +func (s *CreateUsagePlanKeyInput) SetUsagePlanId(v string) *CreateUsagePlanKeyInput { + s.UsagePlanId = &v + return s +} + // A request to delete the ApiKey resource. type DeleteApiKeyInput struct { _ struct{} `type:"structure"` @@ -7877,6 +8908,12 @@ func (s *DeleteApiKeyInput) Validate() error { return nil } +// SetApiKey sets the ApiKey field's value. +func (s *DeleteApiKeyInput) SetApiKey(v string) *DeleteApiKeyInput { + s.ApiKey = &v + return s +} + type DeleteApiKeyOutput struct { _ struct{} `type:"structure"` } @@ -7932,6 +8969,18 @@ func (s *DeleteAuthorizerInput) Validate() error { return nil } +// SetAuthorizerId sets the AuthorizerId field's value. +func (s *DeleteAuthorizerInput) SetAuthorizerId(v string) *DeleteAuthorizerInput { + s.AuthorizerId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteAuthorizerInput) SetRestApiId(v string) *DeleteAuthorizerInput { + s.RestApiId = &v + return s +} + type DeleteAuthorizerOutput struct { _ struct{} `type:"structure"` } @@ -7987,6 +9036,18 @@ func (s *DeleteBasePathMappingInput) Validate() error { return nil } +// SetBasePath sets the BasePath field's value. +func (s *DeleteBasePathMappingInput) SetBasePath(v string) *DeleteBasePathMappingInput { + s.BasePath = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DeleteBasePathMappingInput) SetDomainName(v string) *DeleteBasePathMappingInput { + s.DomainName = &v + return s +} + type DeleteBasePathMappingOutput struct { _ struct{} `type:"structure"` } @@ -8034,6 +9095,12 @@ func (s *DeleteClientCertificateInput) Validate() error { return nil } +// SetClientCertificateId sets the ClientCertificateId field's value. +func (s *DeleteClientCertificateInput) SetClientCertificateId(v string) *DeleteClientCertificateInput { + s.ClientCertificateId = &v + return s +} + type DeleteClientCertificateOutput struct { _ struct{} `type:"structure"` } @@ -8089,6 +9156,18 @@ func (s *DeleteDeploymentInput) Validate() error { return nil } +// SetDeploymentId sets the DeploymentId field's value. +func (s *DeleteDeploymentInput) SetDeploymentId(v string) *DeleteDeploymentInput { + s.DeploymentId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteDeploymentInput) SetRestApiId(v string) *DeleteDeploymentInput { + s.RestApiId = &v + return s +} + type DeleteDeploymentOutput struct { _ struct{} `type:"structure"` } @@ -8103,6 +9182,141 @@ func (s DeleteDeploymentOutput) GoString() string { return s.String() } +// Deletes an existing documentation part of an API. +type DeleteDocumentationPartInput struct { + _ struct{} `type:"structure"` + + // [Required] The identifier of the to-be-deleted documentation part. + // + // DocumentationPartId is a required field + DocumentationPartId *string `location:"uri" locationName:"part_id" type:"string" required:"true"` + + // [Required] Specifies the identifier of an API of the to-be-deleted documentation + // part. + // + // RestApiId is a required field + RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteDocumentationPartInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDocumentationPartInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDocumentationPartInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDocumentationPartInput"} + if s.DocumentationPartId == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentationPartId")) + } + if s.RestApiId == nil { + invalidParams.Add(request.NewErrParamRequired("RestApiId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocumentationPartId sets the DocumentationPartId field's value. +func (s *DeleteDocumentationPartInput) SetDocumentationPartId(v string) *DeleteDocumentationPartInput { + s.DocumentationPartId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteDocumentationPartInput) SetRestApiId(v string) *DeleteDocumentationPartInput { + s.RestApiId = &v + return s +} + +type DeleteDocumentationPartOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteDocumentationPartOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDocumentationPartOutput) GoString() string { + return s.String() +} + +// Deletes an existing documentation version of an API. +type DeleteDocumentationVersionInput struct { + _ struct{} `type:"structure"` + + // [Required] The version identifier of a to-be-deleted documentation snapshot. + // + // DocumentationVersion is a required field + DocumentationVersion *string `location:"uri" locationName:"doc_version" type:"string" required:"true"` + + // [Required] The identifier of an API of a to-be-deleted documentation snapshot. + // + // RestApiId is a required field + RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteDocumentationVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDocumentationVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDocumentationVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDocumentationVersionInput"} + if s.DocumentationVersion == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentationVersion")) + } + if s.RestApiId == nil { + invalidParams.Add(request.NewErrParamRequired("RestApiId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocumentationVersion sets the DocumentationVersion field's value. +func (s *DeleteDocumentationVersionInput) SetDocumentationVersion(v string) *DeleteDocumentationVersionInput { + s.DocumentationVersion = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteDocumentationVersionInput) SetRestApiId(v string) *DeleteDocumentationVersionInput { + s.RestApiId = &v + return s +} + +type DeleteDocumentationVersionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteDocumentationVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDocumentationVersionOutput) GoString() string { + return s.String() +} + // A request to delete the DomainName resource. type DeleteDomainNameInput struct { _ struct{} `type:"structure"` @@ -8136,6 +9350,12 @@ func (s *DeleteDomainNameInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DeleteDomainNameInput) SetDomainName(v string) *DeleteDomainNameInput { + s.DomainName = &v + return s +} + type DeleteDomainNameOutput struct { _ struct{} `type:"structure"` } @@ -8199,6 +9419,24 @@ func (s *DeleteIntegrationInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *DeleteIntegrationInput) SetHttpMethod(v string) *DeleteIntegrationInput { + s.HttpMethod = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *DeleteIntegrationInput) SetResourceId(v string) *DeleteIntegrationInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteIntegrationInput) SetRestApiId(v string) *DeleteIntegrationInput { + s.RestApiId = &v + return s +} + type DeleteIntegrationOutput struct { _ struct{} `type:"structure"` } @@ -8270,6 +9508,30 @@ func (s *DeleteIntegrationResponseInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *DeleteIntegrationResponseInput) SetHttpMethod(v string) *DeleteIntegrationResponseInput { + s.HttpMethod = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *DeleteIntegrationResponseInput) SetResourceId(v string) *DeleteIntegrationResponseInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteIntegrationResponseInput) SetRestApiId(v string) *DeleteIntegrationResponseInput { + s.RestApiId = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *DeleteIntegrationResponseInput) SetStatusCode(v string) *DeleteIntegrationResponseInput { + s.StatusCode = &v + return s +} + type DeleteIntegrationResponseOutput struct { _ struct{} `type:"structure"` } @@ -8333,6 +9595,24 @@ func (s *DeleteMethodInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *DeleteMethodInput) SetHttpMethod(v string) *DeleteMethodInput { + s.HttpMethod = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *DeleteMethodInput) SetResourceId(v string) *DeleteMethodInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteMethodInput) SetRestApiId(v string) *DeleteMethodInput { + s.RestApiId = &v + return s +} + type DeleteMethodOutput struct { _ struct{} `type:"structure"` } @@ -8404,6 +9684,30 @@ func (s *DeleteMethodResponseInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *DeleteMethodResponseInput) SetHttpMethod(v string) *DeleteMethodResponseInput { + s.HttpMethod = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *DeleteMethodResponseInput) SetResourceId(v string) *DeleteMethodResponseInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteMethodResponseInput) SetRestApiId(v string) *DeleteMethodResponseInput { + s.RestApiId = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *DeleteMethodResponseInput) SetStatusCode(v string) *DeleteMethodResponseInput { + s.StatusCode = &v + return s +} + type DeleteMethodResponseOutput struct { _ struct{} `type:"structure"` } @@ -8459,6 +9763,18 @@ func (s *DeleteModelInput) Validate() error { return nil } +// SetModelName sets the ModelName field's value. +func (s *DeleteModelInput) SetModelName(v string) *DeleteModelInput { + s.ModelName = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteModelInput) SetRestApiId(v string) *DeleteModelInput { + s.RestApiId = &v + return s +} + type DeleteModelOutput struct { _ struct{} `type:"structure"` } @@ -8514,6 +9830,18 @@ func (s *DeleteResourceInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *DeleteResourceInput) SetResourceId(v string) *DeleteResourceInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteResourceInput) SetRestApiId(v string) *DeleteResourceInput { + s.RestApiId = &v + return s +} + type DeleteResourceOutput struct { _ struct{} `type:"structure"` } @@ -8561,6 +9889,12 @@ func (s *DeleteRestApiInput) Validate() error { return nil } +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteRestApiInput) SetRestApiId(v string) *DeleteRestApiInput { + s.RestApiId = &v + return s +} + type DeleteRestApiOutput struct { _ struct{} `type:"structure"` } @@ -8616,6 +9950,18 @@ func (s *DeleteStageInput) Validate() error { return nil } +// SetRestApiId sets the RestApiId field's value. +func (s *DeleteStageInput) SetRestApiId(v string) *DeleteStageInput { + s.RestApiId = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *DeleteStageInput) SetStageName(v string) *DeleteStageInput { + s.StageName = &v + return s +} + type DeleteStageOutput struct { _ struct{} `type:"structure"` } @@ -8663,6 +10009,12 @@ func (s *DeleteUsagePlanInput) Validate() error { return nil } +// SetUsagePlanId sets the UsagePlanId field's value. +func (s *DeleteUsagePlanInput) SetUsagePlanId(v string) *DeleteUsagePlanInput { + s.UsagePlanId = &v + return s +} + // The DELETE request to delete a usage plan key and remove the underlying API // key from the associated usage plan. type DeleteUsagePlanKeyInput struct { @@ -8706,6 +10058,18 @@ func (s *DeleteUsagePlanKeyInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *DeleteUsagePlanKeyInput) SetKeyId(v string) *DeleteUsagePlanKeyInput { + s.KeyId = &v + return s +} + +// SetUsagePlanId sets the UsagePlanId field's value. +func (s *DeleteUsagePlanKeyInput) SetUsagePlanId(v string) *DeleteUsagePlanKeyInput { + s.UsagePlanId = &v + return s +} + type DeleteUsagePlanKeyOutput struct { _ struct{} `type:"structure"` } @@ -8741,6 +10105,7 @@ func (s DeleteUsagePlanOutput) GoString() string { // To create a deployment, call POST on the Deployments resource of a RestApi. // To view, update, or delete a deployment, call GET, PATCH, or DELETE on the // specified deployment resource (/restapis/{restapi_id}/deployments/{deployment_id}). +// // RestApi, Deployments, Stage, AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-deployment.html), // AWS SDKs (https://aws.amazon.com/tools/) type Deployment struct { @@ -8770,72 +10135,159 @@ func (s Deployment) GoString() string { return s.String() } -// Represents a domain name that is contained in a simpler, more intuitive URL -// that can be called. +// SetApiSummary sets the ApiSummary field's value. +func (s *Deployment) SetApiSummary(v map[string]map[string]*MethodSnapshot) *Deployment { + s.ApiSummary = v + return s +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *Deployment) SetCreatedDate(v time.Time) *Deployment { + s.CreatedDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Deployment) SetDescription(v string) *Deployment { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *Deployment) SetId(v string) *Deployment { + s.Id = &v + return s +} + +// A documentation part for a targeted API entity. // -// Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) -type DomainName struct { +// A documentation part consists of a content map (properties) and a target +// (location). The target specifies an API entity to which the documentation +// content applies. The supported API entity types are API, AUTHORIZER, MODEL, +// RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, +// RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. Valid location fields depend +// on the API entity type. All valid fields are not required. +// +// The content map is a JSON string of API-specific key-value pairs. Although +// an API can use any shape for the content map, only the Swagger-compliant +// documentation fields will be injected into the associated API entity definition +// in the exported Swagger definition file. +// +// Documenting an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api.html), +// DocumentationParts +type DocumentationPart struct { _ struct{} `type:"structure"` - // The name of the certificate. - CertificateName *string `locationName:"certificateName" type:"string"` - - // The date when the certificate was uploaded, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" - // target="_blank). - CertificateUploadDate *time.Time `locationName:"certificateUploadDate" type:"timestamp" timestampFormat:"unix"` + // The DocumentationPart identifier, generated by Amazon API Gateway when the + // DocumentationPart is created. + Id *string `locationName:"id" type:"string"` - // The domain name of the Amazon CloudFront distribution. For more information, - // see the Amazon CloudFront documentation (http://aws.amazon.com/documentation/cloudfront/" - // target="_blank). - DistributionDomainName *string `locationName:"distributionDomainName" type:"string"` + // The location of the API entity to which the documentation applies. Valid + // fields depend on the targeted API entity type. All the valid location fields + // are not required. If not explicitly specified, a valid location field is + // treated as a wildcard and associated documentation content may be inherited + // by matching entities, unless overridden. + Location *DocumentationPartLocation `locationName:"location" type:"structure"` - // The name of the DomainName resource. - DomainName *string `locationName:"domainName" type:"string"` + // A content map of API-specific key-value pairs describing the targeted API + // entity. The map must be encoded as a JSON string, e.g., "{ \"description\": + // \"The API does ...\" }". Only Swagger-compliant documentation-related fields + // from the properties map are exported and, hence, published as part of the + // API entity definitions, while the original documentation parts are exported + // in a Swagger extension of x-amazon-apigateway-documentation. + Properties *string `locationName:"properties" type:"string"` } // String returns the string representation -func (s DomainName) String() string { +func (s DocumentationPart) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DomainName) GoString() string { +func (s DocumentationPart) GoString() string { return s.String() } -// Request to flush authorizer cache entries on a specified stage. -type FlushStageAuthorizersCacheInput struct { +// SetId sets the Id field's value. +func (s *DocumentationPart) SetId(v string) *DocumentationPart { + s.Id = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *DocumentationPart) SetLocation(v *DocumentationPartLocation) *DocumentationPart { + s.Location = v + return s +} + +// SetProperties sets the Properties field's value. +func (s *DocumentationPart) SetProperties(v string) *DocumentationPart { + s.Properties = &v + return s +} + +// Specifies the target API entity to which the documentation applies. +type DocumentationPartLocation struct { _ struct{} `type:"structure"` - // The API identifier of the stage to flush. - // - // RestApiId is a required field - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` + // The HTTP verb of a method. It is a valid field for the API entity types of + // METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, + // RESPONSE_HEADER, and RESPONSE_BODY. The default value is * for any method. + // When an applicable child entity inherits the content of an entity of the + // same type with more general specifications of the other location attributes, + // the child entity's method attribute must match that of the parent entity + // exactly. + Method *string `locationName:"method" type:"string"` + + // The name of the targeted API entity. It is a valid and required field for + // the API entity types of AUTHORIZER, MODEL, PATH_PARAMETER, QUERY_PARAMETER, + // REQUEST_HEADER, REQUEST_BODY and RESPONSE_HEADER. It is an invalid field + // for any other entity type. + Name *string `locationName:"name" type:"string"` - // The name of the stage to flush. + // The URL path of the target. It is a valid field for the API entity types + // of RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, + // RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. The default value is / for + // the root resource. When an applicable child entity inherits the content of + // another entity of the same type with more general specifications of the other + // location attributes, the child entity's path attribute must match that of + // the parent entity as a prefix. + Path *string `locationName:"path" type:"string"` + + // The HTTP status code of a response. It is a valid field for the API entity + // types of RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. The default value + // is * for any status code. When an applicable child entity inherits the content + // of an entity of the same type with more general specifications of the other + // location attributes, the child entity's statusCode attribute must match that + // of the parent entity exactly. + StatusCode *string `locationName:"statusCode" type:"string"` + + // The type of API entity to which the documentation content applies. It is + // a valid and required field for API entity types of API, AUTHORIZER, MODEL, + // RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, + // RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. Content inheritance does not + // apply to any entity of the API, AUTHROZER, METHOD, MODEL, REQUEST_BODY, or + // RESOURCE type. // - // StageName is a required field - StageName *string `location:"uri" locationName:"stage_name" type:"string" required:"true"` + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"DocumentationPartType"` } // String returns the string representation -func (s FlushStageAuthorizersCacheInput) String() string { +func (s DocumentationPartLocation) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s FlushStageAuthorizersCacheInput) GoString() string { +func (s DocumentationPartLocation) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *FlushStageAuthorizersCacheInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "FlushStageAuthorizersCacheInput"} - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) +func (s *DocumentationPartLocation) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DocumentationPartLocation"} + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) } if invalidParams.Len() > 0 { @@ -8844,6 +10296,203 @@ func (s *FlushStageAuthorizersCacheInput) Validate() error { return nil } +// SetMethod sets the Method field's value. +func (s *DocumentationPartLocation) SetMethod(v string) *DocumentationPartLocation { + s.Method = &v + return s +} + +// SetName sets the Name field's value. +func (s *DocumentationPartLocation) SetName(v string) *DocumentationPartLocation { + s.Name = &v + return s +} + +// SetPath sets the Path field's value. +func (s *DocumentationPartLocation) SetPath(v string) *DocumentationPartLocation { + s.Path = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *DocumentationPartLocation) SetStatusCode(v string) *DocumentationPartLocation { + s.StatusCode = &v + return s +} + +// SetType sets the Type field's value. +func (s *DocumentationPartLocation) SetType(v string) *DocumentationPartLocation { + s.Type = &v + return s +} + +// A snapshot of the documentation of an API. +// +// Publishing API documentation involves creating a documentation version associated +// with an API stage and exporting the versioned documentation to an external +// (e.g., Swagger) file. +// +// Documenting an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api.html), +// DocumentationPart, DocumentationVersions +type DocumentationVersion struct { + _ struct{} `type:"structure"` + + // The date when the API documentation snapshot is created. + CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"` + + // The description of the API documentation snapshot. + Description *string `locationName:"description" type:"string"` + + // The version identifier of the API documentation snapshot. + Version *string `locationName:"version" type:"string"` +} + +// String returns the string representation +func (s DocumentationVersion) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DocumentationVersion) GoString() string { + return s.String() +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *DocumentationVersion) SetCreatedDate(v time.Time) *DocumentationVersion { + s.CreatedDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DocumentationVersion) SetDescription(v string) *DocumentationVersion { + s.Description = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *DocumentationVersion) SetVersion(v string) *DocumentationVersion { + s.Version = &v + return s +} + +// Represents a domain name that is contained in a simpler, more intuitive URL +// that can be called. +// +// Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) +type DomainName struct { + _ struct{} `type:"structure"` + + // The reference to an AWS-managed certificate. AWS Certificate Manager is the + // only supported source. + CertificateArn *string `locationName:"certificateArn" type:"string"` + + // The name of the certificate. + CertificateName *string `locationName:"certificateName" type:"string"` + + // The timestamp when the certificate was uploaded. + CertificateUploadDate *time.Time `locationName:"certificateUploadDate" type:"timestamp" timestampFormat:"unix"` + + // The domain name of the Amazon CloudFront distribution. For more information, + // see the Amazon CloudFront documentation (http://aws.amazon.com/documentation/cloudfront/). + DistributionDomainName *string `locationName:"distributionDomainName" type:"string"` + + // The name of the DomainName resource. + DomainName *string `locationName:"domainName" type:"string"` +} + +// String returns the string representation +func (s DomainName) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DomainName) GoString() string { + return s.String() +} + +// SetCertificateArn sets the CertificateArn field's value. +func (s *DomainName) SetCertificateArn(v string) *DomainName { + s.CertificateArn = &v + return s +} + +// SetCertificateName sets the CertificateName field's value. +func (s *DomainName) SetCertificateName(v string) *DomainName { + s.CertificateName = &v + return s +} + +// SetCertificateUploadDate sets the CertificateUploadDate field's value. +func (s *DomainName) SetCertificateUploadDate(v time.Time) *DomainName { + s.CertificateUploadDate = &v + return s +} + +// SetDistributionDomainName sets the DistributionDomainName field's value. +func (s *DomainName) SetDistributionDomainName(v string) *DomainName { + s.DistributionDomainName = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DomainName) SetDomainName(v string) *DomainName { + s.DomainName = &v + return s +} + +// Request to flush authorizer cache entries on a specified stage. +type FlushStageAuthorizersCacheInput struct { + _ struct{} `type:"structure"` + + // The API identifier of the stage to flush. + // + // RestApiId is a required field + RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` + + // The name of the stage to flush. + // + // StageName is a required field + StageName *string `location:"uri" locationName:"stage_name" type:"string" required:"true"` +} + +// String returns the string representation +func (s FlushStageAuthorizersCacheInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FlushStageAuthorizersCacheInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *FlushStageAuthorizersCacheInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FlushStageAuthorizersCacheInput"} + if s.RestApiId == nil { + invalidParams.Add(request.NewErrParamRequired("RestApiId")) + } + if s.StageName == nil { + invalidParams.Add(request.NewErrParamRequired("StageName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRestApiId sets the RestApiId field's value. +func (s *FlushStageAuthorizersCacheInput) SetRestApiId(v string) *FlushStageAuthorizersCacheInput { + s.RestApiId = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *FlushStageAuthorizersCacheInput) SetStageName(v string) *FlushStageAuthorizersCacheInput { + s.StageName = &v + return s +} + type FlushStageAuthorizersCacheOutput struct { _ struct{} `type:"structure"` } @@ -8899,6 +10548,18 @@ func (s *FlushStageCacheInput) Validate() error { return nil } +// SetRestApiId sets the RestApiId field's value. +func (s *FlushStageCacheInput) SetRestApiId(v string) *FlushStageCacheInput { + s.RestApiId = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *FlushStageCacheInput) SetStageName(v string) *FlushStageCacheInput { + s.StageName = &v + return s +} + type FlushStageCacheOutput struct { _ struct{} `type:"structure"` } @@ -8931,6 +10592,12 @@ func (s GenerateClientCertificateInput) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *GenerateClientCertificateInput) SetDescription(v string) *GenerateClientCertificateInput { + s.Description = &v + return s +} + // Requests Amazon API Gateway to get information about the current Account // resource. type GetAccountInput struct { @@ -8984,10 +10651,26 @@ func (s *GetApiKeyInput) Validate() error { return nil } +// SetApiKey sets the ApiKey field's value. +func (s *GetApiKeyInput) SetApiKey(v string) *GetApiKeyInput { + s.ApiKey = &v + return s +} + +// SetIncludeValue sets the IncludeValue field's value. +func (s *GetApiKeyInput) SetIncludeValue(v bool) *GetApiKeyInput { + s.IncludeValue = &v + return s +} + // A request to get information about the current ApiKeys resource. type GetApiKeysInput struct { _ struct{} `type:"structure"` + // The identifier of a customer in AWS Marketplace or an external system, such + // as a developer portal. + CustomerId *string `location:"querystring" locationName:"customerId" type:"string"` + // A boolean flag to specify whether (true) or not (false) the result contains // key values. IncludeValues *bool `location:"querystring" locationName:"includeValues" type:"boolean"` @@ -9012,9 +10695,39 @@ func (s GetApiKeysInput) GoString() string { return s.String() } +// SetCustomerId sets the CustomerId field's value. +func (s *GetApiKeysInput) SetCustomerId(v string) *GetApiKeysInput { + s.CustomerId = &v + return s +} + +// SetIncludeValues sets the IncludeValues field's value. +func (s *GetApiKeysInput) SetIncludeValues(v bool) *GetApiKeysInput { + s.IncludeValues = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *GetApiKeysInput) SetLimit(v int64) *GetApiKeysInput { + s.Limit = &v + return s +} + +// SetNameQuery sets the NameQuery field's value. +func (s *GetApiKeysInput) SetNameQuery(v string) *GetApiKeysInput { + s.NameQuery = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetApiKeysInput) SetPosition(v string) *GetApiKeysInput { + s.Position = &v + return s +} + // Represents a collection of API keys as represented by an ApiKeys resource. // -// Use API Keys (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-api-keys.html) +// Use API Keys (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-api-keys.html) type GetApiKeysOutput struct { _ struct{} `type:"structure"` @@ -9038,6 +10751,24 @@ func (s GetApiKeysOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetApiKeysOutput) SetItems(v []*ApiKey) *GetApiKeysOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetApiKeysOutput) SetPosition(v string) *GetApiKeysOutput { + s.Position = &v + return s +} + +// SetWarnings sets the Warnings field's value. +func (s *GetApiKeysOutput) SetWarnings(v []*string) *GetApiKeysOutput { + s.Warnings = v + return s +} + // Request to describe an existing Authorizer resource. type GetAuthorizerInput struct { _ struct{} `type:"structure"` @@ -9079,6 +10810,18 @@ func (s *GetAuthorizerInput) Validate() error { return nil } +// SetAuthorizerId sets the AuthorizerId field's value. +func (s *GetAuthorizerInput) SetAuthorizerId(v string) *GetAuthorizerInput { + s.AuthorizerId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetAuthorizerInput) SetRestApiId(v string) *GetAuthorizerInput { + s.RestApiId = &v + return s +} + // Request to describe an existing Authorizers resource. type GetAuthorizersInput struct { _ struct{} `type:"structure"` @@ -9119,9 +10862,27 @@ func (s *GetAuthorizersInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *GetAuthorizersInput) SetLimit(v int64) *GetAuthorizersInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetAuthorizersInput) SetPosition(v string) *GetAuthorizersInput { + s.Position = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetAuthorizersInput) SetRestApiId(v string) *GetAuthorizersInput { + s.RestApiId = &v + return s +} + // Represents a collection of Authorizer resources. // -// Enable custom authorization (http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html) +// Enable custom authorization (http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html) type GetAuthorizersOutput struct { _ struct{} `type:"structure"` @@ -9141,6 +10902,18 @@ func (s GetAuthorizersOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetAuthorizersOutput) SetItems(v []*Authorizer) *GetAuthorizersOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetAuthorizersOutput) SetPosition(v string) *GetAuthorizersOutput { + s.Position = &v + return s +} + // Request to describe a BasePathMapping resource. type GetBasePathMappingInput struct { _ struct{} `type:"structure"` @@ -9185,6 +10958,18 @@ func (s *GetBasePathMappingInput) Validate() error { return nil } +// SetBasePath sets the BasePath field's value. +func (s *GetBasePathMappingInput) SetBasePath(v string) *GetBasePathMappingInput { + s.BasePath = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *GetBasePathMappingInput) SetDomainName(v string) *GetBasePathMappingInput { + s.DomainName = &v + return s +} + // A request to get information about a collection of BasePathMapping resources. type GetBasePathMappingsInput struct { _ struct{} `type:"structure"` @@ -9227,9 +11012,27 @@ func (s *GetBasePathMappingsInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *GetBasePathMappingsInput) SetDomainName(v string) *GetBasePathMappingsInput { + s.DomainName = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *GetBasePathMappingsInput) SetLimit(v int64) *GetBasePathMappingsInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetBasePathMappingsInput) SetPosition(v string) *GetBasePathMappingsInput { + s.Position = &v + return s +} + // Represents a collection of BasePathMapping resources. // -// Use Custom Domain Names (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) +// Use Custom Domain Names (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) type GetBasePathMappingsOutput struct { _ struct{} `type:"structure"` @@ -9250,6 +11053,18 @@ func (s GetBasePathMappingsOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetBasePathMappingsOutput) SetItems(v []*BasePathMapping) *GetBasePathMappingsOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetBasePathMappingsOutput) SetPosition(v string) *GetBasePathMappingsOutput { + s.Position = &v + return s +} + // A request to get information about the current ClientCertificate resource. type GetClientCertificateInput struct { _ struct{} `type:"structure"` @@ -9283,6 +11098,12 @@ func (s *GetClientCertificateInput) Validate() error { return nil } +// SetClientCertificateId sets the ClientCertificateId field's value. +func (s *GetClientCertificateInput) SetClientCertificateId(v string) *GetClientCertificateInput { + s.ClientCertificateId = &v + return s +} + // A request to get information about a collection of ClientCertificate resources. type GetClientCertificatesInput struct { _ struct{} `type:"structure"` @@ -9292,75 +11113,433 @@ type GetClientCertificatesInput struct { // 1 - 500. Limit *int64 `location:"querystring" locationName:"limit" type:"integer"` - // The position of the current ClientCertificate resource in the collection - // to get information about. - Position *string `location:"querystring" locationName:"position" type:"string"` + // The position of the current ClientCertificate resource in the collection + // to get information about. + Position *string `location:"querystring" locationName:"position" type:"string"` +} + +// String returns the string representation +func (s GetClientCertificatesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetClientCertificatesInput) GoString() string { + return s.String() +} + +// SetLimit sets the Limit field's value. +func (s *GetClientCertificatesInput) SetLimit(v int64) *GetClientCertificatesInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetClientCertificatesInput) SetPosition(v string) *GetClientCertificatesInput { + s.Position = &v + return s +} + +// Represents a collection of ClientCertificate resources. +// +// Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-client-side-ssl-authentication.html) +type GetClientCertificatesOutput struct { + _ struct{} `type:"structure"` + + // The current page of any ClientCertificate resources in the collection of + // ClientCertificate resources. + Items []*ClientCertificate `locationName:"item" type:"list"` + + Position *string `locationName:"position" type:"string"` +} + +// String returns the string representation +func (s GetClientCertificatesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetClientCertificatesOutput) GoString() string { + return s.String() +} + +// SetItems sets the Items field's value. +func (s *GetClientCertificatesOutput) SetItems(v []*ClientCertificate) *GetClientCertificatesOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetClientCertificatesOutput) SetPosition(v string) *GetClientCertificatesOutput { + s.Position = &v + return s +} + +// Requests Amazon API Gateway to get information about a Deployment resource. +type GetDeploymentInput struct { + _ struct{} `type:"structure"` + + // The identifier of the Deployment resource to get information about. + // + // DeploymentId is a required field + DeploymentId *string `location:"uri" locationName:"deployment_id" type:"string" required:"true"` + + // The identifier of the RestApi resource for the Deployment resource to get + // information about. + // + // RestApiId is a required field + RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetDeploymentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDeploymentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDeploymentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInput"} + if s.DeploymentId == nil { + invalidParams.Add(request.NewErrParamRequired("DeploymentId")) + } + if s.RestApiId == nil { + invalidParams.Add(request.NewErrParamRequired("RestApiId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *GetDeploymentInput) SetDeploymentId(v string) *GetDeploymentInput { + s.DeploymentId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetDeploymentInput) SetRestApiId(v string) *GetDeploymentInput { + s.RestApiId = &v + return s +} + +// Requests Amazon API Gateway to get information about a Deployments collection. +type GetDeploymentsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of Deployment resources in the collection to get information + // about. The default limit is 25. It should be an integer between 1 - 500. + Limit *int64 `location:"querystring" locationName:"limit" type:"integer"` + + // The position of the current Deployment resource in the collection to get + // information about. + Position *string `location:"querystring" locationName:"position" type:"string"` + + // The identifier of the RestApi resource for the collection of Deployment resources + // to get information about. + // + // RestApiId is a required field + RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetDeploymentsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDeploymentsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDeploymentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDeploymentsInput"} + if s.RestApiId == nil { + invalidParams.Add(request.NewErrParamRequired("RestApiId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLimit sets the Limit field's value. +func (s *GetDeploymentsInput) SetLimit(v int64) *GetDeploymentsInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetDeploymentsInput) SetPosition(v string) *GetDeploymentsInput { + s.Position = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetDeploymentsInput) SetRestApiId(v string) *GetDeploymentsInput { + s.RestApiId = &v + return s +} + +// Represents a collection resource that contains zero or more references to +// your existing deployments, and links that guide you on how to interact with +// your collection. The collection offers a paginated view of the contained +// deployments. +// +// To create a new deployment of a RestApi, make a POST request against this +// resource. To view, update, or delete an existing deployment, make a GET, +// PATCH, or DELETE request, respectively, on a specified Deployment resource. +// +// Deploying an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-deploy-api.html), +// AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-deployment.html), +// AWS SDKs (https://aws.amazon.com/tools/) +type GetDeploymentsOutput struct { + _ struct{} `type:"structure"` + + // The current page of any Deployment resources in the collection of deployment + // resources. + Items []*Deployment `locationName:"item" type:"list"` + + Position *string `locationName:"position" type:"string"` +} + +// String returns the string representation +func (s GetDeploymentsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDeploymentsOutput) GoString() string { + return s.String() +} + +// SetItems sets the Items field's value. +func (s *GetDeploymentsOutput) SetItems(v []*Deployment) *GetDeploymentsOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetDeploymentsOutput) SetPosition(v string) *GetDeploymentsOutput { + s.Position = &v + return s +} + +// Gets a specified documentation part of a given API. +type GetDocumentationPartInput struct { + _ struct{} `type:"structure"` + + // [Required] The identifier of the to-be-retrieved documentation part. + // + // DocumentationPartId is a required field + DocumentationPartId *string `location:"uri" locationName:"part_id" type:"string" required:"true"` + + // [Required] The identifier of an API of the to-be-retrieved documentation + // part. + // + // RestApiId is a required field + RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetDocumentationPartInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDocumentationPartInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDocumentationPartInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDocumentationPartInput"} + if s.DocumentationPartId == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentationPartId")) + } + if s.RestApiId == nil { + invalidParams.Add(request.NewErrParamRequired("RestApiId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocumentationPartId sets the DocumentationPartId field's value. +func (s *GetDocumentationPartInput) SetDocumentationPartId(v string) *GetDocumentationPartInput { + s.DocumentationPartId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetDocumentationPartInput) SetRestApiId(v string) *GetDocumentationPartInput { + s.RestApiId = &v + return s +} + +// Gets the documentation parts of an API. The result may be filtered by the +// type, name, or path of API entities (targets). +type GetDocumentationPartsInput struct { + _ struct{} `type:"structure"` + + // The size of the paged results. + Limit *int64 `location:"querystring" locationName:"limit" type:"integer"` + + // The name of API entities of the to-be-retrieved documentation parts. + NameQuery *string `location:"querystring" locationName:"name" type:"string"` + + // The path of API entities of the to-be-retrieved documentation parts. + Path *string `location:"querystring" locationName:"path" type:"string"` + + // The position of the to-be-retrieved documentation part in the DocumentationParts + // collection. + Position *string `location:"querystring" locationName:"position" type:"string"` + + // [Required] The identifier of the API of the to-be-retrieved documentation + // parts. + // + // RestApiId is a required field + RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` + + // The type of API entities of the to-be-retrieved documentation parts. + Type *string `location:"querystring" locationName:"type" type:"string" enum:"DocumentationPartType"` +} + +// String returns the string representation +func (s GetDocumentationPartsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDocumentationPartsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDocumentationPartsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDocumentationPartsInput"} + if s.RestApiId == nil { + invalidParams.Add(request.NewErrParamRequired("RestApiId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLimit sets the Limit field's value. +func (s *GetDocumentationPartsInput) SetLimit(v int64) *GetDocumentationPartsInput { + s.Limit = &v + return s +} + +// SetNameQuery sets the NameQuery field's value. +func (s *GetDocumentationPartsInput) SetNameQuery(v string) *GetDocumentationPartsInput { + s.NameQuery = &v + return s +} + +// SetPath sets the Path field's value. +func (s *GetDocumentationPartsInput) SetPath(v string) *GetDocumentationPartsInput { + s.Path = &v + return s } -// String returns the string representation -func (s GetClientCertificatesInput) String() string { - return awsutil.Prettify(s) +// SetPosition sets the Position field's value. +func (s *GetDocumentationPartsInput) SetPosition(v string) *GetDocumentationPartsInput { + s.Position = &v + return s } -// GoString returns the string representation -func (s GetClientCertificatesInput) GoString() string { - return s.String() +// SetRestApiId sets the RestApiId field's value. +func (s *GetDocumentationPartsInput) SetRestApiId(v string) *GetDocumentationPartsInput { + s.RestApiId = &v + return s } -// Represents a collection of ClientCertificate resources. +// SetType sets the Type field's value. +func (s *GetDocumentationPartsInput) SetType(v string) *GetDocumentationPartsInput { + s.Type = &v + return s +} + +// The collection of documentation parts of an API. // -// Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-client-side-ssl-authentication.html) -type GetClientCertificatesOutput struct { +// Documenting an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api.html), DocumentationPart +type GetDocumentationPartsOutput struct { _ struct{} `type:"structure"` - // The current page of any ClientCertificate resources in the collection of - // ClientCertificate resources. - Items []*ClientCertificate `locationName:"item" type:"list"` + // The current page of DocumentationPart resources in the DocumentationParts + // collection. + Items []*DocumentationPart `locationName:"item" type:"list"` Position *string `locationName:"position" type:"string"` } // String returns the string representation -func (s GetClientCertificatesOutput) String() string { +func (s GetDocumentationPartsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetClientCertificatesOutput) GoString() string { +func (s GetDocumentationPartsOutput) GoString() string { return s.String() } -// Requests Amazon API Gateway to get information about a Deployment resource. -type GetDeploymentInput struct { +// SetItems sets the Items field's value. +func (s *GetDocumentationPartsOutput) SetItems(v []*DocumentationPart) *GetDocumentationPartsOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetDocumentationPartsOutput) SetPosition(v string) *GetDocumentationPartsOutput { + s.Position = &v + return s +} + +// Gets a documentation snapshot of an API. +type GetDocumentationVersionInput struct { _ struct{} `type:"structure"` - // The identifier of the Deployment resource to get information about. + // [Required] The version identifier of the to-be-retrieved documentation snapshot. // - // DeploymentId is a required field - DeploymentId *string `location:"uri" locationName:"deployment_id" type:"string" required:"true"` + // DocumentationVersion is a required field + DocumentationVersion *string `location:"uri" locationName:"doc_version" type:"string" required:"true"` - // The identifier of the RestApi resource for the Deployment resource to get - // information about. + // [Required] The identifier of the API of the to-be-retrieved documentation + // snapshot. // // RestApiId is a required field RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` } // String returns the string representation -func (s GetDeploymentInput) String() string { +func (s GetDocumentationVersionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDeploymentInput) GoString() string { +func (s GetDocumentationVersionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetDeploymentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInput"} - if s.DeploymentId == nil { - invalidParams.Add(request.NewErrParamRequired("DeploymentId")) +func (s *GetDocumentationVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDocumentationVersionInput"} + if s.DocumentationVersion == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentationVersion")) } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) @@ -9372,38 +11551,49 @@ func (s *GetDeploymentInput) Validate() error { return nil } -// Requests Amazon API Gateway to get information about a Deployments collection. -type GetDeploymentsInput struct { +// SetDocumentationVersion sets the DocumentationVersion field's value. +func (s *GetDocumentationVersionInput) SetDocumentationVersion(v string) *GetDocumentationVersionInput { + s.DocumentationVersion = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetDocumentationVersionInput) SetRestApiId(v string) *GetDocumentationVersionInput { + s.RestApiId = &v + return s +} + +// Gets the documentation versions of an API. +type GetDocumentationVersionsInput struct { _ struct{} `type:"structure"` - // The maximum number of Deployment resources in the collection to get information - // about. The default limit is 25. It should be an integer between 1 - 500. + // The page size of the returned documentation versions. Limit *int64 `location:"querystring" locationName:"limit" type:"integer"` - // The position of the current Deployment resource in the collection to get - // information about. + // The position of the returned DocumentationVersion in the DocumentationVersions + // collection. Position *string `location:"querystring" locationName:"position" type:"string"` - // The identifier of the RestApi resource for the collection of Deployment resources - // to get information about. + // [Required] The identifier of an API of the to-be-retrieved documentation + // versions. // // RestApiId is a required field RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` } // String returns the string representation -func (s GetDeploymentsInput) String() string { +func (s GetDocumentationVersionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDeploymentsInput) GoString() string { +func (s GetDocumentationVersionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetDeploymentsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDeploymentsInput"} +func (s *GetDocumentationVersionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDocumentationVersionsInput"} if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } @@ -9414,37 +11604,63 @@ func (s *GetDeploymentsInput) Validate() error { return nil } -// Represents a collection resource that contains zero or more references to -// your existing deployments, and links that guide you on how to interact with -// your collection. The collection offers a paginated view of the contained -// deployments. +// SetLimit sets the Limit field's value. +func (s *GetDocumentationVersionsInput) SetLimit(v int64) *GetDocumentationVersionsInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetDocumentationVersionsInput) SetPosition(v string) *GetDocumentationVersionsInput { + s.Position = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetDocumentationVersionsInput) SetRestApiId(v string) *GetDocumentationVersionsInput { + s.RestApiId = &v + return s +} + +// The collection of documentation snapshots of an API. // -// To create a new deployment of a RestApi, make a POST request against this -// resource. To view, update, or delete an existing deployment, make a GET, -// PATCH, or DELETE request, respectively, on a specified Deployment resource. -// Deploying an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-deploy-api.html), -// AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-deployment.html), -// AWS SDKs (https://aws.amazon.com/tools/) -type GetDeploymentsOutput struct { +// Use the DocumentationVersions to manage documentation snapshots associated +// with various API stages. +// +// Documenting an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api.html), +// DocumentationPart, DocumentationVersion +type GetDocumentationVersionsOutput struct { _ struct{} `type:"structure"` - // The current page of any Deployment resources in the collection of deployment - // resources. - Items []*Deployment `locationName:"item" type:"list"` + // The current page of DocumentationVersion items from the DocumentationVersions + // collection of an API. + Items []*DocumentationVersion `locationName:"item" type:"list"` Position *string `locationName:"position" type:"string"` } // String returns the string representation -func (s GetDeploymentsOutput) String() string { +func (s GetDocumentationVersionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDeploymentsOutput) GoString() string { +func (s GetDocumentationVersionsOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetDocumentationVersionsOutput) SetItems(v []*DocumentationVersion) *GetDocumentationVersionsOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetDocumentationVersionsOutput) SetPosition(v string) *GetDocumentationVersionsOutput { + s.Position = &v + return s +} + // Request to get the name of a DomainName resource. type GetDomainNameInput struct { _ struct{} `type:"structure"` @@ -9478,6 +11694,12 @@ func (s *GetDomainNameInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *GetDomainNameInput) SetDomainName(v string) *GetDomainNameInput { + s.DomainName = &v + return s +} + // Request to describe a collection of DomainName resources. type GetDomainNamesInput struct { _ struct{} `type:"structure"` @@ -9500,9 +11722,21 @@ func (s GetDomainNamesInput) GoString() string { return s.String() } +// SetLimit sets the Limit field's value. +func (s *GetDomainNamesInput) SetLimit(v int64) *GetDomainNamesInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetDomainNamesInput) SetPosition(v string) *GetDomainNamesInput { + s.Position = &v + return s +} + // Represents a collection of DomainName resources. // -// Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) +// Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) type GetDomainNamesOutput struct { _ struct{} `type:"structure"` @@ -9523,6 +11757,18 @@ func (s GetDomainNamesOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetDomainNamesOutput) SetItems(v []*DomainName) *GetDomainNamesOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetDomainNamesOutput) SetPosition(v string) *GetDomainNamesOutput { + s.Position = &v + return s +} + // Request a new export of a RestApi for a particular Stage. type GetExportInput struct { _ struct{} `type:"structure"` @@ -9538,7 +11784,7 @@ type GetExportInput struct { ExportType *string `location:"uri" locationName:"export_type" type:"string" required:"true"` // A key-value map of query string parameters that specify properties of the - // export, depending on the requested exportType. For exportType swagger, any + // export, depending on the requested exportType. For exportTypeswagger, any // combination of the following parameters are supported: integrations will // export the API with x-amazon-apigateway-integration extensions. authorizers // will export the API with x-amazon-apigateway-authorizer extensions. postman @@ -9586,6 +11832,36 @@ func (s *GetExportInput) Validate() error { return nil } +// SetAccepts sets the Accepts field's value. +func (s *GetExportInput) SetAccepts(v string) *GetExportInput { + s.Accepts = &v + return s +} + +// SetExportType sets the ExportType field's value. +func (s *GetExportInput) SetExportType(v string) *GetExportInput { + s.ExportType = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *GetExportInput) SetParameters(v map[string]*string) *GetExportInput { + s.Parameters = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetExportInput) SetRestApiId(v string) *GetExportInput { + s.RestApiId = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *GetExportInput) SetStageName(v string) *GetExportInput { + s.StageName = &v + return s +} + // The binary blob response to GetExport, which contains the generated SDK. type GetExportOutput struct { _ struct{} `type:"structure" payload:"Body"` @@ -9611,6 +11887,24 @@ func (s GetExportOutput) GoString() string { return s.String() } +// SetBody sets the Body field's value. +func (s *GetExportOutput) SetBody(v []byte) *GetExportOutput { + s.Body = v + return s +} + +// SetContentDisposition sets the ContentDisposition field's value. +func (s *GetExportOutput) SetContentDisposition(v string) *GetExportOutput { + s.ContentDisposition = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *GetExportOutput) SetContentType(v string) *GetExportOutput { + s.ContentType = &v + return s +} + // Represents a get integration request. type GetIntegrationInput struct { _ struct{} `type:"structure"` @@ -9660,6 +11954,24 @@ func (s *GetIntegrationInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *GetIntegrationInput) SetHttpMethod(v string) *GetIntegrationInput { + s.HttpMethod = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *GetIntegrationInput) SetResourceId(v string) *GetIntegrationInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetIntegrationInput) SetRestApiId(v string) *GetIntegrationInput { + s.RestApiId = &v + return s +} + // Represents a get integration response request. type GetIntegrationResponseInput struct { _ struct{} `type:"structure"` @@ -9717,6 +12029,30 @@ func (s *GetIntegrationResponseInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *GetIntegrationResponseInput) SetHttpMethod(v string) *GetIntegrationResponseInput { + s.HttpMethod = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *GetIntegrationResponseInput) SetResourceId(v string) *GetIntegrationResponseInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetIntegrationResponseInput) SetRestApiId(v string) *GetIntegrationResponseInput { + s.RestApiId = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *GetIntegrationResponseInput) SetStatusCode(v string) *GetIntegrationResponseInput { + s.StatusCode = &v + return s +} + // Request to describe an existing Method resource. type GetMethodInput struct { _ struct{} `type:"structure"` @@ -9766,6 +12102,24 @@ func (s *GetMethodInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *GetMethodInput) SetHttpMethod(v string) *GetMethodInput { + s.HttpMethod = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *GetMethodInput) SetResourceId(v string) *GetMethodInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetMethodInput) SetRestApiId(v string) *GetMethodInput { + s.RestApiId = &v + return s +} + // Request to describe a MethodResponse resource. type GetMethodResponseInput struct { _ struct{} `type:"structure"` @@ -9823,6 +12177,30 @@ func (s *GetMethodResponseInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *GetMethodResponseInput) SetHttpMethod(v string) *GetMethodResponseInput { + s.HttpMethod = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *GetMethodResponseInput) SetResourceId(v string) *GetMethodResponseInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetMethodResponseInput) SetRestApiId(v string) *GetMethodResponseInput { + s.RestApiId = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *GetMethodResponseInput) SetStatusCode(v string) *GetMethodResponseInput { + s.StatusCode = &v + return s +} + // Request to list information about a model in an existing RestApi resource. type GetModelInput struct { _ struct{} `type:"structure"` @@ -9869,6 +12247,24 @@ func (s *GetModelInput) Validate() error { return nil } +// SetFlatten sets the Flatten field's value. +func (s *GetModelInput) SetFlatten(v bool) *GetModelInput { + s.Flatten = &v + return s +} + +// SetModelName sets the ModelName field's value. +func (s *GetModelInput) SetModelName(v string) *GetModelInput { + s.ModelName = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetModelInput) SetRestApiId(v string) *GetModelInput { + s.RestApiId = &v + return s +} + // Request to generate a sample mapping template used to transform the payload. type GetModelTemplateInput struct { _ struct{} `type:"structure"` @@ -9910,14 +12306,26 @@ func (s *GetModelTemplateInput) Validate() error { return nil } +// SetModelName sets the ModelName field's value. +func (s *GetModelTemplateInput) SetModelName(v string) *GetModelTemplateInput { + s.ModelName = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetModelTemplateInput) SetRestApiId(v string) *GetModelTemplateInput { + s.RestApiId = &v + return s +} + // Represents a mapping template used to transform a payload. // -// Mapping Templates (http://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html#models-mappings-mappings) +// Mapping Templates (http://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html#models-mappings-mappings) type GetModelTemplateOutput struct { _ struct{} `type:"structure"` - // The Apache Velocity Template Language (VTL) (http://velocity.apache.org/engine/devel/vtl-reference-guide.html" - // target="_blank) template content used for the template resource. + // The Apache Velocity Template Language (VTL) (http://velocity.apache.org/engine/devel/vtl-reference-guide.html) + // template content used for the template resource. Value *string `locationName:"value" type:"string"` } @@ -9931,6 +12339,12 @@ func (s GetModelTemplateOutput) GoString() string { return s.String() } +// SetValue sets the Value field's value. +func (s *GetModelTemplateOutput) SetValue(v string) *GetModelTemplateOutput { + s.Value = &v + return s +} + // Request to list existing Models defined for a RestApi resource. type GetModelsInput struct { _ struct{} `type:"structure"` @@ -9972,9 +12386,27 @@ func (s *GetModelsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *GetModelsInput) SetLimit(v int64) *GetModelsInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetModelsInput) SetPosition(v string) *GetModelsInput { + s.Position = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetModelsInput) SetRestApiId(v string) *GetModelsInput { + s.RestApiId = &v + return s +} + // Represents a collection of Model resources. // -// Method, MethodResponse, Models and Mappings (http://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html) +// Method, MethodResponse, Models and Mappings (http://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html) type GetModelsOutput struct { _ struct{} `type:"structure"` @@ -9994,6 +12426,18 @@ func (s GetModelsOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetModelsOutput) SetItems(v []*Model) *GetModelsOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetModelsOutput) SetPosition(v string) *GetModelsOutput { + s.Position = &v + return s +} + // Request to list information about a resource. type GetResourceInput struct { _ struct{} `type:"structure"` @@ -10035,6 +12479,18 @@ func (s *GetResourceInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *GetResourceInput) SetResourceId(v string) *GetResourceInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetResourceInput) SetRestApiId(v string) *GetResourceInput { + s.RestApiId = &v + return s +} + // Request to list information about a collection of resources. type GetResourcesInput struct { _ struct{} `type:"structure"` @@ -10076,9 +12532,27 @@ func (s *GetResourcesInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *GetResourcesInput) SetLimit(v int64) *GetResourcesInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetResourcesInput) SetPosition(v string) *GetResourcesInput { + s.Position = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetResourcesInput) SetRestApiId(v string) *GetResourcesInput { + s.RestApiId = &v + return s +} + // Represents a collection of Resource resources. // -// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) +// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) type GetResourcesOutput struct { _ struct{} `type:"structure"` @@ -10098,6 +12572,18 @@ func (s GetResourcesOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetResourcesOutput) SetItems(v []*Resource) *GetResourcesOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetResourcesOutput) SetPosition(v string) *GetResourcesOutput { + s.Position = &v + return s +} + // The GET request to list an existing RestApi defined for your collection. type GetRestApiInput struct { _ struct{} `type:"structure"` @@ -10131,6 +12617,12 @@ func (s *GetRestApiInput) Validate() error { return nil } +// SetRestApiId sets the RestApiId field's value. +func (s *GetRestApiInput) SetRestApiId(v string) *GetRestApiInput { + s.RestApiId = &v + return s +} + // The GET request to list existing RestApis defined for your collection. type GetRestApisInput struct { _ struct{} `type:"structure"` @@ -10154,10 +12646,22 @@ func (s GetRestApisInput) GoString() string { return s.String() } +// SetLimit sets the Limit field's value. +func (s *GetRestApisInput) SetLimit(v int64) *GetRestApisInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetRestApisInput) SetPosition(v string) *GetRestApisInput { + s.Position = &v + return s +} + // Contains references to your APIs and links that guide you in how to interact // with your collection. A collection offers a paginated view of your APIs. // -// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) +// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) type GetRestApisOutput struct { _ struct{} `type:"structure"` @@ -10177,6 +12681,18 @@ func (s GetRestApisOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetRestApisOutput) SetItems(v []*RestApi) *GetRestApisOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetRestApisOutput) SetPosition(v string) *GetRestApisOutput { + s.Position = &v + return s +} + // Request a new generated client SDK for a RestApi and Stage. type GetSdkInput struct { _ struct{} `type:"structure"` @@ -10233,30 +12749,176 @@ func (s *GetSdkInput) Validate() error { return nil } -// The binary blob response to GetSdk, which contains the generated SDK. -type GetSdkOutput struct { - _ struct{} `type:"structure" payload:"Body"` +// SetParameters sets the Parameters field's value. +func (s *GetSdkInput) SetParameters(v map[string]*string) *GetSdkInput { + s.Parameters = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetSdkInput) SetRestApiId(v string) *GetSdkInput { + s.RestApiId = &v + return s +} + +// SetSdkType sets the SdkType field's value. +func (s *GetSdkInput) SetSdkType(v string) *GetSdkInput { + s.SdkType = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *GetSdkInput) SetStageName(v string) *GetSdkInput { + s.StageName = &v + return s +} + +// The binary blob response to GetSdk, which contains the generated SDK. +type GetSdkOutput struct { + _ struct{} `type:"structure" payload:"Body"` + + // The binary blob response to GetSdk, which contains the generated SDK. + Body []byte `locationName:"body" type:"blob"` + + // The content-disposition header value in the HTTP response. + ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"` + + // The content-type header value in the HTTP response. + ContentType *string `location:"header" locationName:"Content-Type" type:"string"` +} + +// String returns the string representation +func (s GetSdkOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetSdkOutput) GoString() string { + return s.String() +} + +// SetBody sets the Body field's value. +func (s *GetSdkOutput) SetBody(v []byte) *GetSdkOutput { + s.Body = v + return s +} + +// SetContentDisposition sets the ContentDisposition field's value. +func (s *GetSdkOutput) SetContentDisposition(v string) *GetSdkOutput { + s.ContentDisposition = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *GetSdkOutput) SetContentType(v string) *GetSdkOutput { + s.ContentType = &v + return s +} + +// Get an SdkType instance. +type GetSdkTypeInput struct { + _ struct{} `type:"structure"` + + // The identifier of the queried SdkType instance. + // + // Id is a required field + Id *string `location:"uri" locationName:"sdktype_id" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetSdkTypeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetSdkTypeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetSdkTypeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSdkTypeInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *GetSdkTypeInput) SetId(v string) *GetSdkTypeInput { + s.Id = &v + return s +} + +// Get the SdkTypes collection. +type GetSdkTypesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of SdkType instances to be returned. + Limit *int64 `location:"querystring" locationName:"limit" type:"integer"` + + // The position of the last fetched element in the SdkTypes collection. + Position *string `location:"querystring" locationName:"position" type:"string"` +} + +// String returns the string representation +func (s GetSdkTypesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetSdkTypesInput) GoString() string { + return s.String() +} + +// SetLimit sets the Limit field's value. +func (s *GetSdkTypesInput) SetLimit(v int64) *GetSdkTypesInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetSdkTypesInput) SetPosition(v string) *GetSdkTypesInput { + s.Position = &v + return s +} - // The binary blob response to GetSdk, which contains the generated SDK. - Body []byte `locationName:"body" type:"blob"` +// The collection of SdkType instances. +type GetSdkTypesOutput struct { + _ struct{} `type:"structure"` - // The content-disposition header value in the HTTP response. - ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"` + // The set of SdkType items that comprise this view of the SdkTypes collection. + Items []*SdkType `locationName:"item" type:"list"` - // The content-type header value in the HTTP response. - ContentType *string `location:"header" locationName:"Content-Type" type:"string"` + Position *string `locationName:"position" type:"string"` } // String returns the string representation -func (s GetSdkOutput) String() string { +func (s GetSdkTypesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetSdkOutput) GoString() string { +func (s GetSdkTypesOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetSdkTypesOutput) SetItems(v []*SdkType) *GetSdkTypesOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetSdkTypesOutput) SetPosition(v string) *GetSdkTypesOutput { + s.Position = &v + return s +} + // Requests Amazon API Gateway to get information about a Stage resource. type GetStageInput struct { _ struct{} `type:"structure"` @@ -10299,6 +12961,18 @@ func (s *GetStageInput) Validate() error { return nil } +// SetRestApiId sets the RestApiId field's value. +func (s *GetStageInput) SetRestApiId(v string) *GetStageInput { + s.RestApiId = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *GetStageInput) SetStageName(v string) *GetStageInput { + s.StageName = &v + return s +} + // Requests Amazon API Gateway to get information about one or more Stage resources. type GetStagesInput struct { _ struct{} `type:"structure"` @@ -10335,6 +13009,18 @@ func (s *GetStagesInput) Validate() error { return nil } +// SetDeploymentId sets the DeploymentId field's value. +func (s *GetStagesInput) SetDeploymentId(v string) *GetStagesInput { + s.DeploymentId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *GetStagesInput) SetRestApiId(v string) *GetStagesInput { + s.RestApiId = &v + return s +} + // A list of Stage resources that are associated with the ApiKey resource. // // Deploying API in Stages (http://docs.aws.amazon.com/apigateway/latest/developerguide/stages.html) @@ -10355,6 +13041,12 @@ func (s GetStagesOutput) GoString() string { return s.String() } +// SetItem sets the Item field's value. +func (s *GetStagesOutput) SetItem(v []*Stage) *GetStagesOutput { + s.Item = v + return s +} + // The GET request to get the usage data of a usage plan in a specified time // interval. type GetUsageInput struct { @@ -10414,6 +13106,42 @@ func (s *GetUsageInput) Validate() error { return nil } +// SetEndDate sets the EndDate field's value. +func (s *GetUsageInput) SetEndDate(v string) *GetUsageInput { + s.EndDate = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *GetUsageInput) SetKeyId(v string) *GetUsageInput { + s.KeyId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *GetUsageInput) SetLimit(v int64) *GetUsageInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetUsageInput) SetPosition(v string) *GetUsageInput { + s.Position = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *GetUsageInput) SetStartDate(v string) *GetUsageInput { + s.StartDate = &v + return s +} + +// SetUsagePlanId sets the UsagePlanId field's value. +func (s *GetUsageInput) SetUsagePlanId(v string) *GetUsageInput { + s.UsagePlanId = &v + return s +} + // The GET request to get a usage plan of a given plan identifier. type GetUsagePlanInput struct { _ struct{} `type:"structure"` @@ -10447,6 +13175,12 @@ func (s *GetUsagePlanInput) Validate() error { return nil } +// SetUsagePlanId sets the UsagePlanId field's value. +func (s *GetUsagePlanInput) SetUsagePlanId(v string) *GetUsagePlanInput { + s.UsagePlanId = &v + return s +} + // The GET request to get a usage plan key of a given key identifier. type GetUsagePlanKeyInput struct { _ struct{} `type:"structure"` @@ -10490,6 +13224,18 @@ func (s *GetUsagePlanKeyInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *GetUsagePlanKeyInput) SetKeyId(v string) *GetUsagePlanKeyInput { + s.KeyId = &v + return s +} + +// SetUsagePlanId sets the UsagePlanId field's value. +func (s *GetUsagePlanKeyInput) SetUsagePlanId(v string) *GetUsagePlanKeyInput { + s.UsagePlanId = &v + return s +} + // The GET request to get all the usage plan keys representing the API keys // added to a specified usage plan. type GetUsagePlanKeysInput struct { @@ -10536,10 +13282,34 @@ func (s *GetUsagePlanKeysInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *GetUsagePlanKeysInput) SetLimit(v int64) *GetUsagePlanKeysInput { + s.Limit = &v + return s +} + +// SetNameQuery sets the NameQuery field's value. +func (s *GetUsagePlanKeysInput) SetNameQuery(v string) *GetUsagePlanKeysInput { + s.NameQuery = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetUsagePlanKeysInput) SetPosition(v string) *GetUsagePlanKeysInput { + s.Position = &v + return s +} + +// SetUsagePlanId sets the UsagePlanId field's value. +func (s *GetUsagePlanKeysInput) SetUsagePlanId(v string) *GetUsagePlanKeysInput { + s.UsagePlanId = &v + return s +} + // Represents the collection of usage plan keys added to usage plans for the // associated API keys and, possibly, other types of keys. // -// Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) +// Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) type GetUsagePlanKeysOutput struct { _ struct{} `type:"structure"` @@ -10559,6 +13329,18 @@ func (s GetUsagePlanKeysOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetUsagePlanKeysOutput) SetItems(v []*UsagePlanKey) *GetUsagePlanKeysOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetUsagePlanKeysOutput) SetPosition(v string) *GetUsagePlanKeysOutput { + s.Position = &v + return s +} + // The GET request to get all the usage plans of the caller's account. type GetUsagePlansInput struct { _ struct{} `type:"structure"` @@ -10584,9 +13366,27 @@ func (s GetUsagePlansInput) GoString() string { return s.String() } +// SetKeyId sets the KeyId field's value. +func (s *GetUsagePlansInput) SetKeyId(v string) *GetUsagePlansInput { + s.KeyId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *GetUsagePlansInput) SetLimit(v int64) *GetUsagePlansInput { + s.Limit = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetUsagePlansInput) SetPosition(v string) *GetUsagePlansInput { + s.Position = &v + return s +} + // Represents a collection of usage plans for an AWS account. // -// Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) +// Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) type GetUsagePlansOutput struct { _ struct{} `type:"structure"` @@ -10606,6 +13406,18 @@ func (s GetUsagePlansOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *GetUsagePlansOutput) SetItems(v []*UsagePlan) *GetUsagePlansOutput { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetUsagePlansOutput) SetPosition(v string) *GetUsagePlansOutput { + s.Position = &v + return s +} + // The POST request to import API keys from an external source, such as a CSV-formatted // file. type ImportApiKeysInput struct { @@ -10654,7 +13466,25 @@ func (s *ImportApiKeysInput) Validate() error { return nil } -// The identifier of an API key used to reference an API key in a usage plan. +// SetBody sets the Body field's value. +func (s *ImportApiKeysInput) SetBody(v []byte) *ImportApiKeysInput { + s.Body = v + return s +} + +// SetFailOnWarnings sets the FailOnWarnings field's value. +func (s *ImportApiKeysInput) SetFailOnWarnings(v bool) *ImportApiKeysInput { + s.FailOnWarnings = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *ImportApiKeysInput) SetFormat(v string) *ImportApiKeysInput { + s.Format = &v + return s +} + +// The identifier of an ApiKey used in a UsagePlan. type ImportApiKeysOutput struct { _ struct{} `type:"structure"` @@ -10675,6 +13505,133 @@ func (s ImportApiKeysOutput) GoString() string { return s.String() } +// SetIds sets the Ids field's value. +func (s *ImportApiKeysOutput) SetIds(v []*string) *ImportApiKeysOutput { + s.Ids = v + return s +} + +// SetWarnings sets the Warnings field's value. +func (s *ImportApiKeysOutput) SetWarnings(v []*string) *ImportApiKeysOutput { + s.Warnings = v + return s +} + +// Import documentation parts from an external (e.g., Swagger) definition file. +type ImportDocumentationPartsInput struct { + _ struct{} `type:"structure" payload:"Body"` + + // [Required] Raw byte array representing the to-be-imported documentation parts. + // To import from a Swagger file, this is a JSON object. + // + // Body is a required field + Body []byte `locationName:"body" type:"blob" required:"true"` + + // A query parameter to specify whether to rollback the documentation importation + // (true) or not (false) when a warning is encountered. The default value is + // false. + FailOnWarnings *bool `location:"querystring" locationName:"failonwarnings" type:"boolean"` + + // A query parameter to indicate whether to overwrite (OVERWRITE) any existing + // DocumentationParts definition or to merge (MERGE) the new definition into + // the existing one. The default value is MERGE. + Mode *string `location:"querystring" locationName:"mode" type:"string" enum:"PutMode"` + + // [Required] The identifier of an API of the to-be-imported documentation parts. + // + // RestApiId is a required field + RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` +} + +// String returns the string representation +func (s ImportDocumentationPartsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportDocumentationPartsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ImportDocumentationPartsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ImportDocumentationPartsInput"} + if s.Body == nil { + invalidParams.Add(request.NewErrParamRequired("Body")) + } + if s.RestApiId == nil { + invalidParams.Add(request.NewErrParamRequired("RestApiId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBody sets the Body field's value. +func (s *ImportDocumentationPartsInput) SetBody(v []byte) *ImportDocumentationPartsInput { + s.Body = v + return s +} + +// SetFailOnWarnings sets the FailOnWarnings field's value. +func (s *ImportDocumentationPartsInput) SetFailOnWarnings(v bool) *ImportDocumentationPartsInput { + s.FailOnWarnings = &v + return s +} + +// SetMode sets the Mode field's value. +func (s *ImportDocumentationPartsInput) SetMode(v string) *ImportDocumentationPartsInput { + s.Mode = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *ImportDocumentationPartsInput) SetRestApiId(v string) *ImportDocumentationPartsInput { + s.RestApiId = &v + return s +} + +// A collection of the imported DocumentationPart identifiers. +// +// This is used to return the result when documentation parts in an external +// (e.g., Swagger) file are imported into Amazon API Gateway +// Documenting an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api.html), +// documentationpart:import (http://docs.aws.amazon.com/apigateway/api-reference/link-relation/documentationpart-import/), +// DocumentationPart +type ImportDocumentationPartsOutput struct { + _ struct{} `type:"structure"` + + // A list of the returned documentation part identifiers. + Ids []*string `locationName:"ids" type:"list"` + + // A list of warning messages reported during import of documentation parts. + Warnings []*string `locationName:"warnings" type:"list"` +} + +// String returns the string representation +func (s ImportDocumentationPartsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportDocumentationPartsOutput) GoString() string { + return s.String() +} + +// SetIds sets the Ids field's value. +func (s *ImportDocumentationPartsOutput) SetIds(v []*string) *ImportDocumentationPartsOutput { + s.Ids = v + return s +} + +// SetWarnings sets the Warnings field's value. +func (s *ImportDocumentationPartsOutput) SetWarnings(v []*string) *ImportDocumentationPartsOutput { + s.Warnings = v + return s +} + // A POST request to import an API to Amazon API Gateway using an input of an // API definition file. type ImportRestApiInput struct { @@ -10717,10 +13674,29 @@ func (s *ImportRestApiInput) Validate() error { return nil } -// Represents an HTTP, AWS, or Mock integration. +// SetBody sets the Body field's value. +func (s *ImportRestApiInput) SetBody(v []byte) *ImportRestApiInput { + s.Body = v + return s +} + +// SetFailOnWarnings sets the FailOnWarnings field's value. +func (s *ImportRestApiInput) SetFailOnWarnings(v bool) *ImportRestApiInput { + s.FailOnWarnings = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *ImportRestApiInput) SetParameters(v map[string]*string) *ImportRestApiInput { + s.Parameters = v + return s +} + +// Represents an HTTP, HTTP_PROXY, AWS, AWS_PROXY, or Mock integration. // // In the API Gateway console, the built-in Lambda integration is an AWS integration. -// Creating an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) +// +// Creating an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) type Integration struct { _ struct{} `type:"structure"` @@ -10730,6 +13706,20 @@ type Integration struct { // Specifies the integration's cache namespace. CacheNamespace *string `locationName:"cacheNamespace" type:"string"` + // Specifies how to handle request payload content type conversions. Supported + // values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors: + // + // * CONVERT_TO_BINARY: Converts a request payload from a Base64-encoded + // string to the corresponding binary blob. + // + // * CONVERT_TO_TEXT: Converts a request payload from a binary blob to a + // Base64-encoded string. + // + // If this property is not defined, the request payload will be passed through + // from the method request to integration request without modification, provided + // that the passthroughBehaviors is configured to support payload pass-through. + ContentHandling *string `locationName:"contentHandling" type:"string" enum:"ContentHandlingStrategy"` + // Specifies the credentials required for the integration, if any. For AWS integrations, // three options are available. To specify an IAM Role for Amazon API Gateway // to assume, use the role's Amazon Resource Name (ARN). To require that the @@ -10743,16 +13733,17 @@ type Integration struct { // Specifies the integration's responses. // - // Example: Get integration responses of a method + // Example: Get integration responses of a method // // Request // - // GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200 + // GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200 // HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com // X-Amz-Date: 20160607T191449Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160607/us-east-1/apigateway/aws4_request, - // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response + // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} + // Response // - // The successful response returns 200 OK status and a payload as follows: + // The successful response returns 200 OKstatus and a payload as follows: // // { "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", // "name": "integrationresponse", "templated": true }, "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", @@ -10761,7 +13752,7 @@ type Integration struct { // } }, "responseParameters": { "method.response.header.Content-Type": "'application/xml'" // }, "responseTemplates": { "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E#foreach($stream // in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n" - // }, "statusCode": "200" } Creating an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) + // }, "statusCode": "200" } IntegrationResponses map[string]*IntegrationResponse `locationName:"integrationResponses" type:"map"` // Specifies how the method request body of an unmapped content type will be @@ -10771,15 +13762,16 @@ type Integration struct { // in requestTemplates. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, // and NEVER. // - // WHEN_NO_MATCH passes the method request body through the integration request + // WHEN_NO_MATCH passes the method request body through the integration request // to the back end without transformation when the method request content type // does not match any content type associated with the mapping templates defined - // in the integration request. WHEN_NO_TEMPLATES passes the method request - // body through the integration request to the back end without transformation - // when no mapping template is defined in the integration request. If a template - // is defined when this option is selected, the method request of an unmapped - // content-type will be rejected with an HTTP 415 Unsupported Media Type response. - // NEVER rejects the method request with an HTTP 415 Unsupported Media Type + // in the integration request. + // WHEN_NO_TEMPLATES passes the method request body through the integration + // request to the back end without transformation when no mapping template is + // defined in the integration request. If a template is defined when this option + // is selected, the method request of an unmapped content-type will be rejected + // with an HTTP 415 Unsupported Media Type response. + // NEVER rejects the method request with an HTTP 415 Unsupported Media Type // response when either the method request content type does not match any content // type associated with the mapping templates defined in the integration request // or no mapping template is defined in the integration request. @@ -10809,8 +13801,8 @@ type Integration struct { // Specifies the integration's Uniform Resource Identifier (URI). For HTTP integrations, // the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 - // specification (https://www.ietf.org/rfc/rfc3986.txt" target="_blank). For - // AWS integrations, the URI should be of the form arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}. + // specification (https://en.wikipedia.org/wiki/Uniform_Resource_Identifier). + // For AWS integrations, the URI should be of the form arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}. // Region, subdomain and service are used to determine the right endpoint. For // AWS services that use the Action= query string parameter, service_api should // be a valid action for the desired service. For RESTful AWS service APIs, @@ -10829,14 +13821,93 @@ func (s Integration) GoString() string { return s.String() } +// SetCacheKeyParameters sets the CacheKeyParameters field's value. +func (s *Integration) SetCacheKeyParameters(v []*string) *Integration { + s.CacheKeyParameters = v + return s +} + +// SetCacheNamespace sets the CacheNamespace field's value. +func (s *Integration) SetCacheNamespace(v string) *Integration { + s.CacheNamespace = &v + return s +} + +// SetContentHandling sets the ContentHandling field's value. +func (s *Integration) SetContentHandling(v string) *Integration { + s.ContentHandling = &v + return s +} + +// SetCredentials sets the Credentials field's value. +func (s *Integration) SetCredentials(v string) *Integration { + s.Credentials = &v + return s +} + +// SetHttpMethod sets the HttpMethod field's value. +func (s *Integration) SetHttpMethod(v string) *Integration { + s.HttpMethod = &v + return s +} + +// SetIntegrationResponses sets the IntegrationResponses field's value. +func (s *Integration) SetIntegrationResponses(v map[string]*IntegrationResponse) *Integration { + s.IntegrationResponses = v + return s +} + +// SetPassthroughBehavior sets the PassthroughBehavior field's value. +func (s *Integration) SetPassthroughBehavior(v string) *Integration { + s.PassthroughBehavior = &v + return s +} + +// SetRequestParameters sets the RequestParameters field's value. +func (s *Integration) SetRequestParameters(v map[string]*string) *Integration { + s.RequestParameters = v + return s +} + +// SetRequestTemplates sets the RequestTemplates field's value. +func (s *Integration) SetRequestTemplates(v map[string]*string) *Integration { + s.RequestTemplates = v + return s +} + +// SetType sets the Type field's value. +func (s *Integration) SetType(v string) *Integration { + s.Type = &v + return s +} + +// SetUri sets the Uri field's value. +func (s *Integration) SetUri(v string) *Integration { + s.Uri = &v + return s +} + // Represents an integration response. The status code must map to an existing // MethodResponse, and parameters and templates can be used to transform the // back-end response. // -// Creating an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) +// Creating an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) type IntegrationResponse struct { _ struct{} `type:"structure"` + // Specifies how to handle response payload content type conversions. Supported + // values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors: + // + // * CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded + // string to the corresponding binary blob. + // + // * CONVERT_TO_TEXT: Converts a response payload from a binary blob to a + // Base64-encoded string. + // + // If this property is not defined, the response payload will be passed through + // from the integration response to the method response without modification. + ContentHandling *string `locationName:"contentHandling" type:"string" enum:"ContentHandlingStrategy"` + // A key-value map specifying response parameters that are passed to the method // response from the back end. The key is a method response header parameter // name and the mapped value is an integration response header value, a static @@ -10879,6 +13950,36 @@ func (s IntegrationResponse) GoString() string { return s.String() } +// SetContentHandling sets the ContentHandling field's value. +func (s *IntegrationResponse) SetContentHandling(v string) *IntegrationResponse { + s.ContentHandling = &v + return s +} + +// SetResponseParameters sets the ResponseParameters field's value. +func (s *IntegrationResponse) SetResponseParameters(v map[string]*string) *IntegrationResponse { + s.ResponseParameters = v + return s +} + +// SetResponseTemplates sets the ResponseTemplates field's value. +func (s *IntegrationResponse) SetResponseTemplates(v map[string]*string) *IntegrationResponse { + s.ResponseTemplates = v + return s +} + +// SetSelectionPattern sets the SelectionPattern field's value. +func (s *IntegrationResponse) SetSelectionPattern(v string) *IntegrationResponse { + s.SelectionPattern = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *IntegrationResponse) SetStatusCode(v string) *IntegrationResponse { + s.StatusCode = &v + return s +} + // Represents a client-facing interface by which the client calls the API to // access back-end resources. A Method resource is integrated with an Integration // resource. Both consist of a request and one or more responses. The method @@ -10890,64 +13991,66 @@ func (s IntegrationResponse) GoString() string { // resource, whereas an integration response is represented by an IntegrationResponse // resource. // -// Example: Retrive the GET method on a specified resource +// Example: Retrive the GET method on a specified resource // // Request // // The following example request retrieves the information about the GET method // on an API resource (3kzxbg5sa2) of an API (fugvjdxtri). // -// GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1 Content-Type: -// application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20160603T210259Z -// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request, -// SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response +// GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1 Content-Type: +// application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: +// 20160603T210259Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request, +// SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} +// Response // // The successful response returns a 200 OK status code and a payload similar // to the following: // -// { "_links": { "curies": [ { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", -// "name": "integration", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", -// "name": "integrationresponse", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html", -// "name": "method", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html", -// "name": "methodresponse", "templated": true } ], "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET", -// "name": "GET", "title": "GET" }, "integration:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" -// }, "method:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET" -// }, "method:integration": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" -// }, "method:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", -// "name": "200", "title": "200" }, "method:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET" -// }, "methodresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/{status_code}", -// "templated": true } }, "apiKeyRequired": true, "authorizationType": "NONE", -// "httpMethod": "GET", "_embedded": { "method:integration": { "_links": { "self": -// { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" -// }, "integration:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" -// }, "integration:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", -// "name": "200", "title": "200" }, "integration:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" -// }, "integrationresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/{status_code}", -// "templated": true } }, "cacheKeyParameters": [], "cacheNamespace": "3kzxbg5sa2", -// "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole", "httpMethod": -// "POST", "passthroughBehavior": "WHEN_NO_MATCH", "requestParameters": { "integration.request.header.Content-Type": -// "'application/x-amz-json-1.1'" }, "requestTemplates": { "application/json": -// "{\n}" }, "type": "AWS", "uri": "arn:aws:apigateway:us-east-1:kinesis:action/ListStreams", -// "_embedded": { "integration:responses": { "_links": { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", -// "name": "200", "title": "200" }, "integrationresponse:delete": { "href": -// "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" -// }, "integrationresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" -// } }, "responseParameters": { "method.response.header.Content-Type": "'application/xml'" -// }, "responseTemplates": { "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E%23foreach(%24stream%20in%20%24input.path(%27%24.StreamNames%27))%3Cstream%3E%3Cname%3E%24stream%3C%2Fname%3E%3C%2Fstream%3E%23end%3C%2FkinesisStreams%3E\")" -// }, "statusCode": "200" } } }, "method:responses": { "_links": { "self": { -// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", -// "name": "200", "title": "200" }, "methodresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" -// }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" -// } }, "responseModels": { "application/json": "Empty" }, "responseParameters": -// { "method.response.header.Content-Type": false }, "statusCode": "200" } } -// } In the example above, the response template for the 200 OK response maps +// { "_links": { "curies": [ { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", +// "name": "integration", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", +// "name": "integrationresponse", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html", +// "name": "method", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html", +// "name": "methodresponse", "templated": true } ], "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET", +// "name": "GET", "title": "GET" }, "integration:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" +// }, "method:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET" +// }, "method:integration": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" +// }, "method:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", +// "name": "200", "title": "200" }, "method:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET" +// }, "methodresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/{status_code}", +// "templated": true } }, "apiKeyRequired": true, "authorizationType": "NONE", +// "httpMethod": "GET", "_embedded": { "method:integration": { "_links": +// { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" +// }, "integration:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" +// }, "integration:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", +// "name": "200", "title": "200" }, "integration:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" +// }, "integrationresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/{status_code}", +// "templated": true } }, "cacheKeyParameters": [], "cacheNamespace": "3kzxbg5sa2", +// "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole", "httpMethod": +// "POST", "passthroughBehavior": "WHEN_NO_MATCH", "requestParameters": { +// "integration.request.header.Content-Type": "'application/x-amz-json-1.1'" +// }, "requestTemplates": { "application/json": "{\n}" }, "type": "AWS", +// "uri": "arn:aws:apigateway:us-east-1:kinesis:action/ListStreams", "_embedded": +// { "integration:responses": { "_links": { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", +// "name": "200", "title": "200" }, "integrationresponse:delete": { "href": +// "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" +// }, "integrationresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" +// } }, "responseParameters": { "method.response.header.Content-Type": "'application/xml'" +// }, "responseTemplates": { "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E%23foreach(%24stream%20in%20%24input.path(%27%24.StreamNames%27))%3Cstream%3E%3Cname%3E%24stream%3C%2Fname%3E%3C%2Fstream%3E%23end%3C%2FkinesisStreams%3E\")" +// }, "statusCode": "200" } } }, "method:responses": { "_links": { "self": +// { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", +// "name": "200", "title": "200" }, "methodresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" +// }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" +// } }, "responseModels": { "application/json": "Empty" }, "responseParameters": +// { "method.response.header.Content-Type": false }, "statusCode": "200" +// } } } +// In the example above, the response template for the 200 OK response maps // the JSON output from the ListStreams action in the back end to an XML output. // The mapping template is URL-encoded as %3CkinesisStreams%3E%23foreach(%24stream%20in%20%24input.path(%27%24.StreamNames%27))%3Cstream%3E%3Cname%3E%24stream%3C%2Fname%3E%3C%2Fstream%3E%23end%3C%2FkinesisStreams%3E // and the output is decoded using the $util.urlDecode() (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html#util-templat-reference) // helper function. // -// MethodResponse, Integration, IntegrationResponse, Resource, Set up an -// API's method (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-method-settings.html) +// MethodResponse, Integration, IntegrationResponse, Resource, Set up an API's method (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-method-settings.html) type Method struct { _ struct{} `type:"structure"` @@ -10969,17 +14072,17 @@ type Method struct { // request to the back end and performing necessary transformations to make // the request compliant with the back end. // - // Example: + // Example: // // Request // - // GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration HTTP/1.1 + // GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration HTTP/1.1 // Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com Content-Length: // 117 X-Amz-Date: 20160613T213210Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, - // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response + // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} + // Response // - // The successful response returns a 200 OK status code and a payload similar - // to the following: + // The successful response returns a 200 OKstatus code and a payload similar to the following: // // { "_links": { "curies": [ { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", // "name": "integration", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", @@ -11003,13 +14106,13 @@ type Method struct { // "#set($res = $input.path('$'))\n{\n \"result\": \"$res.a, $res.b, $res.op // => $res.c\",\n \"a\" : \"$res.a\",\n \"b\" : \"$res.b\",\n \"op\" : \"$res.op\",\n // \"c\" : \"$res.c\"\n}" }, "selectionPattern": "", "statusCode": "200" } } - // } AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-integration.html) + // } MethodIntegration *Integration `locationName:"methodIntegration" type:"structure"` // Gets a method response associated with a given HTTP status code. // - // The collection of method responses are encapsulated in a key-value map, - // where the key is a response's HTTP status code and the value is a MethodResponse + // The collection of method responses are encapsulated in a key-value map, where + // the key is a response's HTTP status code and the value is a MethodResponse // resource that specifies the response returned to the caller from the back // end through the integration response. // @@ -11017,24 +14120,31 @@ type Method struct { // // Request // - // GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200 HTTP/1.1 - // Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com Content-Length: - // 117 X-Amz-Date: 20160613T215008Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, - // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response + // GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200 HTTP/1.1 + // Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com + // Content-Length: 117 X-Amz-Date: 20160613T215008Z Authorization: AWS4-HMAC-SHA256 + // Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, + // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} + // Response // // The successful response returns a 200 OK status code and a payload similar // to the following: // - // { "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html", - // "name": "methodresponse", "templated": true }, "self": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200", - // "title": "200" }, "methodresponse:delete": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200" - // }, "methodresponse:update": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200" - // } }, "responseModels": { "application/json": "Empty" }, "responseParameters": - // { "method.response.header.operator": false, "method.response.header.operand_2": - // false, "method.response.header.operand_1": false }, "statusCode": "200" } - // AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-method-response.html) + // { "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html", + // "name": "methodresponse", "templated": true }, "self": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200", + // "title": "200" }, "methodresponse:delete": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200" + // }, "methodresponse:update": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200" + // } }, "responseModels": { "application/json": "Empty" }, "responseParameters": + // { "method.response.header.operator": false, "method.response.header.operand_2": + // false, "method.response.header.operand_1": false }, "statusCode": "200" + // } MethodResponses map[string]*MethodResponse `locationName:"methodResponses" type:"map"` + // A human-friendly operation identifier for the method. For example, you can + // assign the operationName of ListPets for the GET /pets method in PetStore + // (http://petstore-demo-endpoint.execute-api.com/petstore/pets) example. + OperationName *string `locationName:"operationName" type:"string"` + // A key-value map specifying data schemas, represented by Model resources, // (as the mapped value) of the request payloads of given content types (as // the mapping key). @@ -11061,30 +14171,85 @@ func (s Method) GoString() string { return s.String() } +// SetApiKeyRequired sets the ApiKeyRequired field's value. +func (s *Method) SetApiKeyRequired(v bool) *Method { + s.ApiKeyRequired = &v + return s +} + +// SetAuthorizationType sets the AuthorizationType field's value. +func (s *Method) SetAuthorizationType(v string) *Method { + s.AuthorizationType = &v + return s +} + +// SetAuthorizerId sets the AuthorizerId field's value. +func (s *Method) SetAuthorizerId(v string) *Method { + s.AuthorizerId = &v + return s +} + +// SetHttpMethod sets the HttpMethod field's value. +func (s *Method) SetHttpMethod(v string) *Method { + s.HttpMethod = &v + return s +} + +// SetMethodIntegration sets the MethodIntegration field's value. +func (s *Method) SetMethodIntegration(v *Integration) *Method { + s.MethodIntegration = v + return s +} + +// SetMethodResponses sets the MethodResponses field's value. +func (s *Method) SetMethodResponses(v map[string]*MethodResponse) *Method { + s.MethodResponses = v + return s +} + +// SetOperationName sets the OperationName field's value. +func (s *Method) SetOperationName(v string) *Method { + s.OperationName = &v + return s +} + +// SetRequestModels sets the RequestModels field's value. +func (s *Method) SetRequestModels(v map[string]*string) *Method { + s.RequestModels = v + return s +} + +// SetRequestParameters sets the RequestParameters field's value. +func (s *Method) SetRequestParameters(v map[string]*bool) *Method { + s.RequestParameters = v + return s +} + // Represents a method response of a given HTTP status code returned to the // client. The method response is passed from the back end through the associated // integration response that can be transformed using a mapping template. // -// Example: A MethodResponse instance of an API +// Example: A MethodResponse instance of an API // // Request // // The example request retrieves a MethodResponse of the 200 status code. // -// GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200 -// HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com -// X-Amz-Date: 20160603T222952Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request, -// SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response +// GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200 +// HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com +// X-Amz-Date: 20160603T222952Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request, +// SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} +// Response // // The successful response returns 200 OK status and a payload as follows: // -// { "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html", -// "name": "methodresponse", "templated": true }, "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", -// "title": "200" }, "methodresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" -// }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" -// } }, "responseModels": { "application/json": "Empty" }, "responseParameters": -// { "method.response.header.Content-Type": false }, "statusCode": "200" } -// Method, IntegrationResponse, Integration Creating an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) +// { "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html", +// "name": "methodresponse", "templated": true }, "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", +// "title": "200" }, "methodresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" +// }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" +// } }, "responseModels": { "application/json": "Empty" }, "responseParameters": +// { "method.response.header.Content-Type": false }, "statusCode": "200" +// } type MethodResponse struct { _ struct{} `type:"structure"` @@ -11121,6 +14286,24 @@ func (s MethodResponse) GoString() string { return s.String() } +// SetResponseModels sets the ResponseModels field's value. +func (s *MethodResponse) SetResponseModels(v map[string]*string) *MethodResponse { + s.ResponseModels = v + return s +} + +// SetResponseParameters sets the ResponseParameters field's value. +func (s *MethodResponse) SetResponseParameters(v map[string]*bool) *MethodResponse { + s.ResponseParameters = v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *MethodResponse) SetStatusCode(v string) *MethodResponse { + s.StatusCode = &v + return s +} + // Specifies the method setting properties. type MethodSetting struct { _ struct{} `type:"structure"` @@ -11187,6 +14370,66 @@ func (s MethodSetting) GoString() string { return s.String() } +// SetCacheDataEncrypted sets the CacheDataEncrypted field's value. +func (s *MethodSetting) SetCacheDataEncrypted(v bool) *MethodSetting { + s.CacheDataEncrypted = &v + return s +} + +// SetCacheTtlInSeconds sets the CacheTtlInSeconds field's value. +func (s *MethodSetting) SetCacheTtlInSeconds(v int64) *MethodSetting { + s.CacheTtlInSeconds = &v + return s +} + +// SetCachingEnabled sets the CachingEnabled field's value. +func (s *MethodSetting) SetCachingEnabled(v bool) *MethodSetting { + s.CachingEnabled = &v + return s +} + +// SetDataTraceEnabled sets the DataTraceEnabled field's value. +func (s *MethodSetting) SetDataTraceEnabled(v bool) *MethodSetting { + s.DataTraceEnabled = &v + return s +} + +// SetLoggingLevel sets the LoggingLevel field's value. +func (s *MethodSetting) SetLoggingLevel(v string) *MethodSetting { + s.LoggingLevel = &v + return s +} + +// SetMetricsEnabled sets the MetricsEnabled field's value. +func (s *MethodSetting) SetMetricsEnabled(v bool) *MethodSetting { + s.MetricsEnabled = &v + return s +} + +// SetRequireAuthorizationForCacheControl sets the RequireAuthorizationForCacheControl field's value. +func (s *MethodSetting) SetRequireAuthorizationForCacheControl(v bool) *MethodSetting { + s.RequireAuthorizationForCacheControl = &v + return s +} + +// SetThrottlingBurstLimit sets the ThrottlingBurstLimit field's value. +func (s *MethodSetting) SetThrottlingBurstLimit(v int64) *MethodSetting { + s.ThrottlingBurstLimit = &v + return s +} + +// SetThrottlingRateLimit sets the ThrottlingRateLimit field's value. +func (s *MethodSetting) SetThrottlingRateLimit(v float64) *MethodSetting { + s.ThrottlingRateLimit = &v + return s +} + +// SetUnauthorizedCacheControlHeaderStrategy sets the UnauthorizedCacheControlHeaderStrategy field's value. +func (s *MethodSetting) SetUnauthorizedCacheControlHeaderStrategy(v string) *MethodSetting { + s.UnauthorizedCacheControlHeaderStrategy = &v + return s +} + // Represents a summary of a Method resource, given a particular date and time. type MethodSnapshot struct { _ struct{} `type:"structure"` @@ -11208,9 +14451,21 @@ func (s MethodSnapshot) GoString() string { return s.String() } +// SetApiKeyRequired sets the ApiKeyRequired field's value. +func (s *MethodSnapshot) SetApiKeyRequired(v bool) *MethodSnapshot { + s.ApiKeyRequired = &v + return s +} + +// SetAuthorizationType sets the AuthorizationType field's value. +func (s *MethodSnapshot) SetAuthorizationType(v string) *MethodSnapshot { + s.AuthorizationType = &v + return s +} + // Represents the data structure of a method's request or response payload. // -// A request model defines the data structure of the client-supplied request +// A request model defines the data structure of the client-supplied request // payload. A response model defines the data structure of the response payload // returned by the back end. Although not required, models are useful for mapping // payloads between the front end and back end. @@ -11218,7 +14473,7 @@ func (s MethodSnapshot) GoString() string { // A model is used for generating an API's SDK, validating the input request // body, and creating a skeletal mapping template. // -// Method, MethodResponse, Models and Mappings (http://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html) +// Method, MethodResponse, Models and Mappings (http://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html) type Model struct { _ struct{} `type:"structure"` @@ -11235,11 +14490,11 @@ type Model struct { Name *string `locationName:"name" type:"string"` // The schema for the model. For application/json models, this should be JSON-schema - // draft v4 (http://json-schema.org/documentation.html" target="_blank) model. - // Do not include "\*/" characters in the description of any properties because - // such "\*/" characters may be interpreted as the closing marker for comments - // in some languages, such as Java or JavaScript, causing the installation of - // your API's SDK generated by API Gateway to fail. + // draft v4 (http://json-schema.org/documentation.html) model. Do not include + // "\*/" characters in the description of any properties because such "\*/" + // characters may be interpreted as the closing marker for comments in some + // languages, such as Java or JavaScript, causing the installation of your API's + // SDK generated by API Gateway to fail. Schema *string `locationName:"schema" type:"string"` } @@ -11248,9 +14503,39 @@ func (s Model) String() string { return awsutil.Prettify(s) } -// GoString returns the string representation -func (s Model) GoString() string { - return s.String() +// GoString returns the string representation +func (s Model) GoString() string { + return s.String() +} + +// SetContentType sets the ContentType field's value. +func (s *Model) SetContentType(v string) *Model { + s.ContentType = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Model) SetDescription(v string) *Model { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *Model) SetId(v string) *Model { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *Model) SetName(v string) *Model { + s.Name = &v + return s +} + +// SetSchema sets the Schema field's value. +func (s *Model) SetSchema(v string) *Model { + s.Schema = &v + return s } // A single patch operation to apply to the specified resource. Please refer @@ -11293,6 +14578,30 @@ func (s PatchOperation) GoString() string { return s.String() } +// SetFrom sets the From field's value. +func (s *PatchOperation) SetFrom(v string) *PatchOperation { + s.From = &v + return s +} + +// SetOp sets the Op field's value. +func (s *PatchOperation) SetOp(v string) *PatchOperation { + s.Op = &v + return s +} + +// SetPath sets the Path field's value. +func (s *PatchOperation) SetPath(v string) *PatchOperation { + s.Path = &v + return s +} + +// SetValue sets the Value field's value. +func (s *PatchOperation) SetValue(v string) *PatchOperation { + s.Value = &v + return s +} + // Represents a put integration request. type PutIntegrationInput struct { _ struct{} `type:"structure"` @@ -11303,6 +14612,20 @@ type PutIntegrationInput struct { // Specifies a put integration input's cache namespace. CacheNamespace *string `locationName:"cacheNamespace" type:"string"` + // Specifies how to handle request payload content type conversions. Supported + // values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors: + // + // * CONVERT_TO_BINARY: Converts a request payload from a Base64-encoded + // string to the corresponding binary blob. + // + // * CONVERT_TO_TEXT: Converts a request payload from a binary blob to a + // Base64-encoded string. + // + // If this property is not defined, the request payload will be passed through + // from the method request to integration request without modification, provided + // that the passthroughBehaviors is configured to support payload pass-through. + ContentHandling *string `locationName:"contentHandling" type:"string" enum:"ContentHandlingStrategy"` + // Specifies whether credentials are required for a put integration. Credentials *string `locationName:"credentials" type:"string"` @@ -11320,15 +14643,15 @@ type PutIntegrationInput struct { // requestTemplates property on the Integration resource. There are three valid // values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and NEVER. // - // WHEN_NO_MATCH passes the request body for unmapped content types through - // to the integration back end without transformation. + // * WHEN_NO_MATCH passes the request body for unmapped content types through + // to the integration back end without transformation. // - // NEVER rejects unmapped content types with an HTTP 415 'Unsupported Media - // Type' response. + // * NEVER rejects unmapped content types with an HTTP 415 'Unsupported Media + // Type' response. // - // WHEN_NO_TEMPLATES allows pass-through when the integration has NO content - // types mapped to templates. However if there is at least one content type - // defined, unmapped content types will be rejected with the same 415 response. + // * WHEN_NO_TEMPLATES allows pass-through when the integration has NO content + // types mapped to templates. However if there is at least one content type + // defined, unmapped content types will be rejected with the same 415 response. PassthroughBehavior *string `locationName:"passthroughBehavior" type:"string"` // A key-value map specifying request parameters that are passed from the method @@ -11400,10 +14723,101 @@ func (s *PutIntegrationInput) Validate() error { return nil } +// SetCacheKeyParameters sets the CacheKeyParameters field's value. +func (s *PutIntegrationInput) SetCacheKeyParameters(v []*string) *PutIntegrationInput { + s.CacheKeyParameters = v + return s +} + +// SetCacheNamespace sets the CacheNamespace field's value. +func (s *PutIntegrationInput) SetCacheNamespace(v string) *PutIntegrationInput { + s.CacheNamespace = &v + return s +} + +// SetContentHandling sets the ContentHandling field's value. +func (s *PutIntegrationInput) SetContentHandling(v string) *PutIntegrationInput { + s.ContentHandling = &v + return s +} + +// SetCredentials sets the Credentials field's value. +func (s *PutIntegrationInput) SetCredentials(v string) *PutIntegrationInput { + s.Credentials = &v + return s +} + +// SetHttpMethod sets the HttpMethod field's value. +func (s *PutIntegrationInput) SetHttpMethod(v string) *PutIntegrationInput { + s.HttpMethod = &v + return s +} + +// SetIntegrationHttpMethod sets the IntegrationHttpMethod field's value. +func (s *PutIntegrationInput) SetIntegrationHttpMethod(v string) *PutIntegrationInput { + s.IntegrationHttpMethod = &v + return s +} + +// SetPassthroughBehavior sets the PassthroughBehavior field's value. +func (s *PutIntegrationInput) SetPassthroughBehavior(v string) *PutIntegrationInput { + s.PassthroughBehavior = &v + return s +} + +// SetRequestParameters sets the RequestParameters field's value. +func (s *PutIntegrationInput) SetRequestParameters(v map[string]*string) *PutIntegrationInput { + s.RequestParameters = v + return s +} + +// SetRequestTemplates sets the RequestTemplates field's value. +func (s *PutIntegrationInput) SetRequestTemplates(v map[string]*string) *PutIntegrationInput { + s.RequestTemplates = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *PutIntegrationInput) SetResourceId(v string) *PutIntegrationInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *PutIntegrationInput) SetRestApiId(v string) *PutIntegrationInput { + s.RestApiId = &v + return s +} + +// SetType sets the Type field's value. +func (s *PutIntegrationInput) SetType(v string) *PutIntegrationInput { + s.Type = &v + return s +} + +// SetUri sets the Uri field's value. +func (s *PutIntegrationInput) SetUri(v string) *PutIntegrationInput { + s.Uri = &v + return s +} + // Represents a put integration response request. type PutIntegrationResponseInput struct { _ struct{} `type:"structure"` + // Specifies how to handle response payload content type conversions. Supported + // values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors: + // + // * CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded + // string to the corresponding binary blob. + // + // * CONVERT_TO_TEXT: Converts a response payload from a binary blob to a + // Base64-encoded string. + // + // If this property is not defined, the response payload will be passed through + // from the integration response to the method response without modification. + ContentHandling *string `locationName:"contentHandling" type:"string" enum:"ContentHandlingStrategy"` + // Specifies a put integration response request's HTTP method. // // HttpMethod is a required field @@ -11476,6 +14890,54 @@ func (s *PutIntegrationResponseInput) Validate() error { return nil } +// SetContentHandling sets the ContentHandling field's value. +func (s *PutIntegrationResponseInput) SetContentHandling(v string) *PutIntegrationResponseInput { + s.ContentHandling = &v + return s +} + +// SetHttpMethod sets the HttpMethod field's value. +func (s *PutIntegrationResponseInput) SetHttpMethod(v string) *PutIntegrationResponseInput { + s.HttpMethod = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *PutIntegrationResponseInput) SetResourceId(v string) *PutIntegrationResponseInput { + s.ResourceId = &v + return s +} + +// SetResponseParameters sets the ResponseParameters field's value. +func (s *PutIntegrationResponseInput) SetResponseParameters(v map[string]*string) *PutIntegrationResponseInput { + s.ResponseParameters = v + return s +} + +// SetResponseTemplates sets the ResponseTemplates field's value. +func (s *PutIntegrationResponseInput) SetResponseTemplates(v map[string]*string) *PutIntegrationResponseInput { + s.ResponseTemplates = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *PutIntegrationResponseInput) SetRestApiId(v string) *PutIntegrationResponseInput { + s.RestApiId = &v + return s +} + +// SetSelectionPattern sets the SelectionPattern field's value. +func (s *PutIntegrationResponseInput) SetSelectionPattern(v string) *PutIntegrationResponseInput { + s.SelectionPattern = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *PutIntegrationResponseInput) SetStatusCode(v string) *PutIntegrationResponseInput { + s.StatusCode = &v + return s +} + // Request to add a method to an existing Resource resource. type PutMethodInput struct { _ struct{} `type:"structure"` @@ -11497,6 +14959,11 @@ type PutMethodInput struct { // HttpMethod is a required field HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"` + // A human-friendly operation identifier for the method. For example, you can + // assign the operationName of ListPets for the GET /pets method in PetStore + // (http://petstore-demo-endpoint.execute-api.com/petstore/pets) example. + OperationName *string `locationName:"operationName" type:"string"` + // Specifies the Model resources used for the request's content type. Request // models are represented as a key/value map, with a content type as the key // and a Model name as the value. @@ -11555,6 +15022,60 @@ func (s *PutMethodInput) Validate() error { return nil } +// SetApiKeyRequired sets the ApiKeyRequired field's value. +func (s *PutMethodInput) SetApiKeyRequired(v bool) *PutMethodInput { + s.ApiKeyRequired = &v + return s +} + +// SetAuthorizationType sets the AuthorizationType field's value. +func (s *PutMethodInput) SetAuthorizationType(v string) *PutMethodInput { + s.AuthorizationType = &v + return s +} + +// SetAuthorizerId sets the AuthorizerId field's value. +func (s *PutMethodInput) SetAuthorizerId(v string) *PutMethodInput { + s.AuthorizerId = &v + return s +} + +// SetHttpMethod sets the HttpMethod field's value. +func (s *PutMethodInput) SetHttpMethod(v string) *PutMethodInput { + s.HttpMethod = &v + return s +} + +// SetOperationName sets the OperationName field's value. +func (s *PutMethodInput) SetOperationName(v string) *PutMethodInput { + s.OperationName = &v + return s +} + +// SetRequestModels sets the RequestModels field's value. +func (s *PutMethodInput) SetRequestModels(v map[string]*string) *PutMethodInput { + s.RequestModels = v + return s +} + +// SetRequestParameters sets the RequestParameters field's value. +func (s *PutMethodInput) SetRequestParameters(v map[string]*bool) *PutMethodInput { + s.RequestParameters = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *PutMethodInput) SetResourceId(v string) *PutMethodInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *PutMethodInput) SetRestApiId(v string) *PutMethodInput { + s.RestApiId = &v + return s +} + // Request to add a MethodResponse to an existing Method resource. type PutMethodResponseInput struct { _ struct{} `type:"structure"` @@ -11630,6 +15151,42 @@ func (s *PutMethodResponseInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *PutMethodResponseInput) SetHttpMethod(v string) *PutMethodResponseInput { + s.HttpMethod = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *PutMethodResponseInput) SetResourceId(v string) *PutMethodResponseInput { + s.ResourceId = &v + return s +} + +// SetResponseModels sets the ResponseModels field's value. +func (s *PutMethodResponseInput) SetResponseModels(v map[string]*string) *PutMethodResponseInput { + s.ResponseModels = v + return s +} + +// SetResponseParameters sets the ResponseParameters field's value. +func (s *PutMethodResponseInput) SetResponseParameters(v map[string]*bool) *PutMethodResponseInput { + s.ResponseParameters = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *PutMethodResponseInput) SetRestApiId(v string) *PutMethodResponseInput { + s.RestApiId = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *PutMethodResponseInput) SetStatusCode(v string) *PutMethodResponseInput { + s.StatusCode = &v + return s +} + // A PUT request to update an existing API, with external API definitions specified // as the request body. type PutRestApiInput struct { @@ -11684,6 +15241,36 @@ func (s *PutRestApiInput) Validate() error { return nil } +// SetBody sets the Body field's value. +func (s *PutRestApiInput) SetBody(v []byte) *PutRestApiInput { + s.Body = v + return s +} + +// SetFailOnWarnings sets the FailOnWarnings field's value. +func (s *PutRestApiInput) SetFailOnWarnings(v bool) *PutRestApiInput { + s.FailOnWarnings = &v + return s +} + +// SetMode sets the Mode field's value. +func (s *PutRestApiInput) SetMode(v string) *PutRestApiInput { + s.Mode = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *PutRestApiInput) SetParameters(v map[string]*string) *PutRestApiInput { + s.Parameters = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *PutRestApiInput) SetRestApiId(v string) *PutRestApiInput { + s.RestApiId = &v + return s +} + // Quotas configured for a usage plan. type QuotaSettings struct { _ struct{} `type:"structure"` @@ -11710,9 +15297,27 @@ func (s QuotaSettings) GoString() string { return s.String() } +// SetLimit sets the Limit field's value. +func (s *QuotaSettings) SetLimit(v int64) *QuotaSettings { + s.Limit = &v + return s +} + +// SetOffset sets the Offset field's value. +func (s *QuotaSettings) SetOffset(v int64) *QuotaSettings { + s.Offset = &v + return s +} + +// SetPeriod sets the Period field's value. +func (s *QuotaSettings) SetPeriod(v string) *QuotaSettings { + s.Period = &v + return s +} + // Represents an API resource. // -// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) +// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) type Resource struct { _ struct{} `type:"structure"` @@ -11730,7 +15335,7 @@ type Resource struct { // Gets an API resource's method of a given HTTP verb. // - // The resource methods are a map of methods indexed by methods' HTTP verbs + // The resource methods are a map of methods indexed by methods' HTTP verbs // enabled on the resource. This method map is included in the 200 OK response // of the GET /restapis/{restapi_id}/resources/{resource_id} or GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods // request. @@ -11742,7 +15347,8 @@ type Resource struct { // GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1 Content-Type: // application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20160608T031827Z // Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160608/us-east-1/apigateway/aws4_request, - // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response + // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} + // Response // // { "_links": { "curies": [ { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", // "name": "integration", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", @@ -11780,7 +15386,8 @@ type Resource struct { // }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" // } }, "responseModels": { "application/json": "Empty" }, "responseParameters": // { "method.response.header.Content-Type": false }, "statusCode": "200" } } - // } If the OPTIONS is enabled on the resource, you can follow the example here + // } + // If the OPTIONS is enabled on the resource, you can follow the example here // to get that method. Just replace the GET of the last path segment in the // request URL with OPTIONS. ResourceMethods map[string]*Method `locationName:"resourceMethods" type:"map"` @@ -11796,14 +15403,47 @@ func (s Resource) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *Resource) SetId(v string) *Resource { + s.Id = &v + return s +} + +// SetParentId sets the ParentId field's value. +func (s *Resource) SetParentId(v string) *Resource { + s.ParentId = &v + return s +} + +// SetPath sets the Path field's value. +func (s *Resource) SetPath(v string) *Resource { + s.Path = &v + return s +} + +// SetPathPart sets the PathPart field's value. +func (s *Resource) SetPathPart(v string) *Resource { + s.PathPart = &v + return s +} + +// SetResourceMethods sets the ResourceMethods field's value. +func (s *Resource) SetResourceMethods(v map[string]*Method) *Resource { + s.ResourceMethods = v + return s +} + // Represents a REST API. // -// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) +// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) type RestApi struct { _ struct{} `type:"structure"` - // The date when the API was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" - // target="_blank). + // The list of binary media types supported by the RestApi. By default, the + // RestApi supports only UTF-8-encoded text payloads. + BinaryMediaTypes []*string `locationName:"binaryMediaTypes" type:"list"` + + // The timestamp when the API was created. CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"` // The API's description. @@ -11816,6 +15456,9 @@ type RestApi struct { // The API's name. Name *string `locationName:"name" type:"string"` + // A version identifier for the API. + Version *string `locationName:"version" type:"string"` + // The warning messages reported when failonwarnings is turned on during API // import. Warnings []*string `locationName:"warnings" type:"list"` @@ -11831,10 +15474,164 @@ func (s RestApi) GoString() string { return s.String() } +// SetBinaryMediaTypes sets the BinaryMediaTypes field's value. +func (s *RestApi) SetBinaryMediaTypes(v []*string) *RestApi { + s.BinaryMediaTypes = v + return s +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *RestApi) SetCreatedDate(v time.Time) *RestApi { + s.CreatedDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *RestApi) SetDescription(v string) *RestApi { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *RestApi) SetId(v string) *RestApi { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *RestApi) SetName(v string) *RestApi { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *RestApi) SetVersion(v string) *RestApi { + s.Version = &v + return s +} + +// SetWarnings sets the Warnings field's value. +func (s *RestApi) SetWarnings(v []*string) *RestApi { + s.Warnings = v + return s +} + +// A configuration property of an SDK type. +type SdkConfigurationProperty struct { + _ struct{} `type:"structure"` + + // The default value of an SdkType configuration property. + DefaultValue *string `locationName:"defaultValue" type:"string"` + + // The description of an SdkType configuration property. + Description *string `locationName:"description" type:"string"` + + // The user-friendly name of an SdkType configuration property. + FriendlyName *string `locationName:"friendlyName" type:"string"` + + // The name of a an SdkType configuration property. + Name *string `locationName:"name" type:"string"` + + // A boolean flag of an SdkType configuration property to indicate if the associated + // SDK configuration property is required (true) or not (false). + Required *bool `locationName:"required" type:"boolean"` +} + +// String returns the string representation +func (s SdkConfigurationProperty) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SdkConfigurationProperty) GoString() string { + return s.String() +} + +// SetDefaultValue sets the DefaultValue field's value. +func (s *SdkConfigurationProperty) SetDefaultValue(v string) *SdkConfigurationProperty { + s.DefaultValue = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *SdkConfigurationProperty) SetDescription(v string) *SdkConfigurationProperty { + s.Description = &v + return s +} + +// SetFriendlyName sets the FriendlyName field's value. +func (s *SdkConfigurationProperty) SetFriendlyName(v string) *SdkConfigurationProperty { + s.FriendlyName = &v + return s +} + +// SetName sets the Name field's value. +func (s *SdkConfigurationProperty) SetName(v string) *SdkConfigurationProperty { + s.Name = &v + return s +} + +// SetRequired sets the Required field's value. +func (s *SdkConfigurationProperty) SetRequired(v bool) *SdkConfigurationProperty { + s.Required = &v + return s +} + +// A type of SDK that API Gateway can generate. +type SdkType struct { + _ struct{} `type:"structure"` + + // A list of configuration properties of an SdkType. + ConfigurationProperties []*SdkConfigurationProperty `locationName:"configurationProperties" type:"list"` + + // The description of an SdkType. + Description *string `locationName:"description" type:"string"` + + // The user-friendly name of an SdkType instance. + FriendlyName *string `locationName:"friendlyName" type:"string"` + + // The identifier of an SdkType instance. + Id *string `locationName:"id" type:"string"` +} + +// String returns the string representation +func (s SdkType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SdkType) GoString() string { + return s.String() +} + +// SetConfigurationProperties sets the ConfigurationProperties field's value. +func (s *SdkType) SetConfigurationProperties(v []*SdkConfigurationProperty) *SdkType { + s.ConfigurationProperties = v + return s +} + +// SetDescription sets the Description field's value. +func (s *SdkType) SetDescription(v string) *SdkType { + s.Description = &v + return s +} + +// SetFriendlyName sets the FriendlyName field's value. +func (s *SdkType) SetFriendlyName(v string) *SdkType { + s.FriendlyName = &v + return s +} + +// SetId sets the Id field's value. +func (s *SdkType) SetId(v string) *SdkType { + s.Id = &v + return s +} + // Represents a unique identifier for a version of a deployed RestApi that is // callable by users. // -// Deploy an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-deploy-api.html) +// Deploy an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-deploy-api.html) type Stage struct { _ struct{} `type:"structure"` @@ -11850,8 +15647,7 @@ type Stage struct { // The identifier of a client certificate for an API stage. ClientCertificateId *string `locationName:"clientCertificateId" type:"string"` - // The date and time that the stage was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" - // target="_blank). + // The timestamp when the stage was created. CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"` // The identifier of the Deployment that the stage points to. @@ -11860,8 +15656,10 @@ type Stage struct { // The stage's description. Description *string `locationName:"description" type:"string"` - // The date and time that information about the stage was last updated, in ISO - // 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" target="_blank). + // The version of the associated API documentation. + DocumentationVersion *string `locationName:"documentationVersion" type:"string"` + + // The timestamp when the stage last updated. LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"` // A map that defines the method settings for a Stage resource. Keys (designated @@ -11890,6 +15688,78 @@ func (s Stage) GoString() string { return s.String() } +// SetCacheClusterEnabled sets the CacheClusterEnabled field's value. +func (s *Stage) SetCacheClusterEnabled(v bool) *Stage { + s.CacheClusterEnabled = &v + return s +} + +// SetCacheClusterSize sets the CacheClusterSize field's value. +func (s *Stage) SetCacheClusterSize(v string) *Stage { + s.CacheClusterSize = &v + return s +} + +// SetCacheClusterStatus sets the CacheClusterStatus field's value. +func (s *Stage) SetCacheClusterStatus(v string) *Stage { + s.CacheClusterStatus = &v + return s +} + +// SetClientCertificateId sets the ClientCertificateId field's value. +func (s *Stage) SetClientCertificateId(v string) *Stage { + s.ClientCertificateId = &v + return s +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *Stage) SetCreatedDate(v time.Time) *Stage { + s.CreatedDate = &v + return s +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *Stage) SetDeploymentId(v string) *Stage { + s.DeploymentId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Stage) SetDescription(v string) *Stage { + s.Description = &v + return s +} + +// SetDocumentationVersion sets the DocumentationVersion field's value. +func (s *Stage) SetDocumentationVersion(v string) *Stage { + s.DocumentationVersion = &v + return s +} + +// SetLastUpdatedDate sets the LastUpdatedDate field's value. +func (s *Stage) SetLastUpdatedDate(v time.Time) *Stage { + s.LastUpdatedDate = &v + return s +} + +// SetMethodSettings sets the MethodSettings field's value. +func (s *Stage) SetMethodSettings(v map[string]*MethodSetting) *Stage { + s.MethodSettings = v + return s +} + +// SetStageName sets the StageName field's value. +func (s *Stage) SetStageName(v string) *Stage { + s.StageName = &v + return s +} + +// SetVariables sets the Variables field's value. +func (s *Stage) SetVariables(v map[string]*string) *Stage { + s.Variables = v + return s +} + // A reference to a unique stage identified in the format {restApiId}/{stage}. type StageKey struct { _ struct{} `type:"structure"` @@ -11911,6 +15781,18 @@ func (s StageKey) GoString() string { return s.String() } +// SetRestApiId sets the RestApiId field's value. +func (s *StageKey) SetRestApiId(v string) *StageKey { + s.RestApiId = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *StageKey) SetStageName(v string) *StageKey { + s.StageName = &v + return s +} + // Make a request to simulate the execution of an Authorizer. type TestInvokeAuthorizerInput struct { _ struct{} `type:"structure"` @@ -11971,6 +15853,48 @@ func (s *TestInvokeAuthorizerInput) Validate() error { return nil } +// SetAdditionalContext sets the AdditionalContext field's value. +func (s *TestInvokeAuthorizerInput) SetAdditionalContext(v map[string]*string) *TestInvokeAuthorizerInput { + s.AdditionalContext = v + return s +} + +// SetAuthorizerId sets the AuthorizerId field's value. +func (s *TestInvokeAuthorizerInput) SetAuthorizerId(v string) *TestInvokeAuthorizerInput { + s.AuthorizerId = &v + return s +} + +// SetBody sets the Body field's value. +func (s *TestInvokeAuthorizerInput) SetBody(v string) *TestInvokeAuthorizerInput { + s.Body = &v + return s +} + +// SetHeaders sets the Headers field's value. +func (s *TestInvokeAuthorizerInput) SetHeaders(v map[string]*string) *TestInvokeAuthorizerInput { + s.Headers = v + return s +} + +// SetPathWithQueryString sets the PathWithQueryString field's value. +func (s *TestInvokeAuthorizerInput) SetPathWithQueryString(v string) *TestInvokeAuthorizerInput { + s.PathWithQueryString = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *TestInvokeAuthorizerInput) SetRestApiId(v string) *TestInvokeAuthorizerInput { + s.RestApiId = &v + return s +} + +// SetStageVariables sets the StageVariables field's value. +func (s *TestInvokeAuthorizerInput) SetStageVariables(v map[string]*string) *TestInvokeAuthorizerInput { + s.StageVariables = v + return s +} + // Represents the response of the test invoke request for a custom Authorizer type TestInvokeAuthorizerOutput struct { _ struct{} `type:"structure"` @@ -12009,6 +15933,48 @@ func (s TestInvokeAuthorizerOutput) GoString() string { return s.String() } +// SetAuthorization sets the Authorization field's value. +func (s *TestInvokeAuthorizerOutput) SetAuthorization(v map[string][]*string) *TestInvokeAuthorizerOutput { + s.Authorization = v + return s +} + +// SetClaims sets the Claims field's value. +func (s *TestInvokeAuthorizerOutput) SetClaims(v map[string]*string) *TestInvokeAuthorizerOutput { + s.Claims = v + return s +} + +// SetClientStatus sets the ClientStatus field's value. +func (s *TestInvokeAuthorizerOutput) SetClientStatus(v int64) *TestInvokeAuthorizerOutput { + s.ClientStatus = &v + return s +} + +// SetLatency sets the Latency field's value. +func (s *TestInvokeAuthorizerOutput) SetLatency(v int64) *TestInvokeAuthorizerOutput { + s.Latency = &v + return s +} + +// SetLog sets the Log field's value. +func (s *TestInvokeAuthorizerOutput) SetLog(v string) *TestInvokeAuthorizerOutput { + s.Log = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *TestInvokeAuthorizerOutput) SetPolicy(v string) *TestInvokeAuthorizerOutput { + s.Policy = &v + return s +} + +// SetPrincipalId sets the PrincipalId field's value. +func (s *TestInvokeAuthorizerOutput) SetPrincipalId(v string) *TestInvokeAuthorizerOutput { + s.PrincipalId = &v + return s +} + // Make a request to simulate the execution of a Method. type TestInvokeMethodInput struct { _ struct{} `type:"structure"` @@ -12071,15 +16037,63 @@ func (s *TestInvokeMethodInput) Validate() error { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBody sets the Body field's value. +func (s *TestInvokeMethodInput) SetBody(v string) *TestInvokeMethodInput { + s.Body = &v + return s +} + +// SetClientCertificateId sets the ClientCertificateId field's value. +func (s *TestInvokeMethodInput) SetClientCertificateId(v string) *TestInvokeMethodInput { + s.ClientCertificateId = &v + return s +} + +// SetHeaders sets the Headers field's value. +func (s *TestInvokeMethodInput) SetHeaders(v map[string]*string) *TestInvokeMethodInput { + s.Headers = v + return s +} + +// SetHttpMethod sets the HttpMethod field's value. +func (s *TestInvokeMethodInput) SetHttpMethod(v string) *TestInvokeMethodInput { + s.HttpMethod = &v + return s +} + +// SetPathWithQueryString sets the PathWithQueryString field's value. +func (s *TestInvokeMethodInput) SetPathWithQueryString(v string) *TestInvokeMethodInput { + s.PathWithQueryString = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *TestInvokeMethodInput) SetResourceId(v string) *TestInvokeMethodInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *TestInvokeMethodInput) SetRestApiId(v string) *TestInvokeMethodInput { + s.RestApiId = &v + return s +} + +// SetStageVariables sets the StageVariables field's value. +func (s *TestInvokeMethodInput) SetStageVariables(v map[string]*string) *TestInvokeMethodInput { + s.StageVariables = v + return s } // Represents the response of the test invoke request in the HTTP method. // -// Test API using the API Gateway console (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-test-method.html#how-to-test-method-console) +// Test API using the API Gateway console (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-test-method.html#how-to-test-method-console) type TestInvokeMethodOutput struct { _ struct{} `type:"structure"` @@ -12109,6 +16123,36 @@ func (s TestInvokeMethodOutput) GoString() string { return s.String() } +// SetBody sets the Body field's value. +func (s *TestInvokeMethodOutput) SetBody(v string) *TestInvokeMethodOutput { + s.Body = &v + return s +} + +// SetHeaders sets the Headers field's value. +func (s *TestInvokeMethodOutput) SetHeaders(v map[string]*string) *TestInvokeMethodOutput { + s.Headers = v + return s +} + +// SetLatency sets the Latency field's value. +func (s *TestInvokeMethodOutput) SetLatency(v int64) *TestInvokeMethodOutput { + s.Latency = &v + return s +} + +// SetLog sets the Log field's value. +func (s *TestInvokeMethodOutput) SetLog(v string) *TestInvokeMethodOutput { + s.Log = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *TestInvokeMethodOutput) SetStatus(v int64) *TestInvokeMethodOutput { + s.Status = &v + return s +} + // The API request rate limits. type ThrottleSettings struct { _ struct{} `type:"structure"` @@ -12132,6 +16176,18 @@ func (s ThrottleSettings) GoString() string { return s.String() } +// SetBurstLimit sets the BurstLimit field's value. +func (s *ThrottleSettings) SetBurstLimit(v int64) *ThrottleSettings { + s.BurstLimit = &v + return s +} + +// SetRateLimit sets the RateLimit field's value. +func (s *ThrottleSettings) SetRateLimit(v float64) *ThrottleSettings { + s.RateLimit = &v + return s +} + // Requests Amazon API Gateway to change information about the current Account // resource. type UpdateAccountInput struct { @@ -12152,6 +16208,12 @@ func (s UpdateAccountInput) GoString() string { return s.String() } +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateAccountInput) SetPatchOperations(v []*PatchOperation) *UpdateAccountInput { + s.PatchOperations = v + return s +} + // A request to change information about an ApiKey resource. type UpdateApiKeyInput struct { _ struct{} `type:"structure"` @@ -12189,6 +16251,18 @@ func (s *UpdateApiKeyInput) Validate() error { return nil } +// SetApiKey sets the ApiKey field's value. +func (s *UpdateApiKeyInput) SetApiKey(v string) *UpdateApiKeyInput { + s.ApiKey = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateApiKeyInput) SetPatchOperations(v []*PatchOperation) *UpdateApiKeyInput { + s.PatchOperations = v + return s +} + // Request to update an existing Authorizer resource. type UpdateAuthorizerInput struct { _ struct{} `type:"structure"` @@ -12234,6 +16308,24 @@ func (s *UpdateAuthorizerInput) Validate() error { return nil } +// SetAuthorizerId sets the AuthorizerId field's value. +func (s *UpdateAuthorizerInput) SetAuthorizerId(v string) *UpdateAuthorizerInput { + s.AuthorizerId = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateAuthorizerInput) SetPatchOperations(v []*PatchOperation) *UpdateAuthorizerInput { + s.PatchOperations = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateAuthorizerInput) SetRestApiId(v string) *UpdateAuthorizerInput { + s.RestApiId = &v + return s +} + // A request to change information about the BasePathMapping resource. type UpdateBasePathMappingInput struct { _ struct{} `type:"structure"` @@ -12279,6 +16371,24 @@ func (s *UpdateBasePathMappingInput) Validate() error { return nil } +// SetBasePath sets the BasePath field's value. +func (s *UpdateBasePathMappingInput) SetBasePath(v string) *UpdateBasePathMappingInput { + s.BasePath = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *UpdateBasePathMappingInput) SetDomainName(v string) *UpdateBasePathMappingInput { + s.DomainName = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateBasePathMappingInput) SetPatchOperations(v []*PatchOperation) *UpdateBasePathMappingInput { + s.PatchOperations = v + return s +} + // A request to change information about an ClientCertificate resource. type UpdateClientCertificateInput struct { _ struct{} `type:"structure"` @@ -12316,6 +16426,18 @@ func (s *UpdateClientCertificateInput) Validate() error { return nil } +// SetClientCertificateId sets the ClientCertificateId field's value. +func (s *UpdateClientCertificateInput) SetClientCertificateId(v string) *UpdateClientCertificateInput { + s.ClientCertificateId = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateClientCertificateInput) SetPatchOperations(v []*PatchOperation) *UpdateClientCertificateInput { + s.PatchOperations = v + return s +} + // Requests Amazon API Gateway to change information about a Deployment resource. type UpdateDeploymentInput struct { _ struct{} `type:"structure"` @@ -12363,6 +16485,150 @@ func (s *UpdateDeploymentInput) Validate() error { return nil } +// SetDeploymentId sets the DeploymentId field's value. +func (s *UpdateDeploymentInput) SetDeploymentId(v string) *UpdateDeploymentInput { + s.DeploymentId = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateDeploymentInput) SetPatchOperations(v []*PatchOperation) *UpdateDeploymentInput { + s.PatchOperations = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateDeploymentInput) SetRestApiId(v string) *UpdateDeploymentInput { + s.RestApiId = &v + return s +} + +// Updates an existing documentation part of a given API. +type UpdateDocumentationPartInput struct { + _ struct{} `type:"structure"` + + // [Required] The identifier of the to-be-updated documentation part. + // + // DocumentationPartId is a required field + DocumentationPartId *string `location:"uri" locationName:"part_id" type:"string" required:"true"` + + // A list of update operations to be applied to the specified resource and in + // the order specified in this list. + PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"` + + // [Required] The identifier of an API of the to-be-updated documentation part. + // + // RestApiId is a required field + RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateDocumentationPartInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateDocumentationPartInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateDocumentationPartInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateDocumentationPartInput"} + if s.DocumentationPartId == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentationPartId")) + } + if s.RestApiId == nil { + invalidParams.Add(request.NewErrParamRequired("RestApiId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocumentationPartId sets the DocumentationPartId field's value. +func (s *UpdateDocumentationPartInput) SetDocumentationPartId(v string) *UpdateDocumentationPartInput { + s.DocumentationPartId = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateDocumentationPartInput) SetPatchOperations(v []*PatchOperation) *UpdateDocumentationPartInput { + s.PatchOperations = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateDocumentationPartInput) SetRestApiId(v string) *UpdateDocumentationPartInput { + s.RestApiId = &v + return s +} + +// Updates an existing documentation version of an API. +type UpdateDocumentationVersionInput struct { + _ struct{} `type:"structure"` + + // [Required] The version identifier of the to-be-updated documentation version. + // + // DocumentationVersion is a required field + DocumentationVersion *string `location:"uri" locationName:"doc_version" type:"string" required:"true"` + + // A list of update operations to be applied to the specified resource and in + // the order specified in this list. + PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"` + + // [Required] The identifier of an API of the to-be-updated documentation version. + // + // RestApiId is a required field + RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateDocumentationVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateDocumentationVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateDocumentationVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateDocumentationVersionInput"} + if s.DocumentationVersion == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentationVersion")) + } + if s.RestApiId == nil { + invalidParams.Add(request.NewErrParamRequired("RestApiId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocumentationVersion sets the DocumentationVersion field's value. +func (s *UpdateDocumentationVersionInput) SetDocumentationVersion(v string) *UpdateDocumentationVersionInput { + s.DocumentationVersion = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateDocumentationVersionInput) SetPatchOperations(v []*PatchOperation) *UpdateDocumentationVersionInput { + s.PatchOperations = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateDocumentationVersionInput) SetRestApiId(v string) *UpdateDocumentationVersionInput { + s.RestApiId = &v + return s +} + // A request to change information about the DomainName resource. type UpdateDomainNameInput struct { _ struct{} `type:"structure"` @@ -12400,6 +16666,18 @@ func (s *UpdateDomainNameInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *UpdateDomainNameInput) SetDomainName(v string) *UpdateDomainNameInput { + s.DomainName = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateDomainNameInput) SetPatchOperations(v []*PatchOperation) *UpdateDomainNameInput { + s.PatchOperations = v + return s +} + // Represents an update integration request. type UpdateIntegrationInput struct { _ struct{} `type:"structure"` @@ -12453,6 +16731,30 @@ func (s *UpdateIntegrationInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *UpdateIntegrationInput) SetHttpMethod(v string) *UpdateIntegrationInput { + s.HttpMethod = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateIntegrationInput) SetPatchOperations(v []*PatchOperation) *UpdateIntegrationInput { + s.PatchOperations = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *UpdateIntegrationInput) SetResourceId(v string) *UpdateIntegrationInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateIntegrationInput) SetRestApiId(v string) *UpdateIntegrationInput { + s.RestApiId = &v + return s +} + // Represents an update integration response request. type UpdateIntegrationResponseInput struct { _ struct{} `type:"structure"` @@ -12514,6 +16816,36 @@ func (s *UpdateIntegrationResponseInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *UpdateIntegrationResponseInput) SetHttpMethod(v string) *UpdateIntegrationResponseInput { + s.HttpMethod = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateIntegrationResponseInput) SetPatchOperations(v []*PatchOperation) *UpdateIntegrationResponseInput { + s.PatchOperations = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *UpdateIntegrationResponseInput) SetResourceId(v string) *UpdateIntegrationResponseInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateIntegrationResponseInput) SetRestApiId(v string) *UpdateIntegrationResponseInput { + s.RestApiId = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *UpdateIntegrationResponseInput) SetStatusCode(v string) *UpdateIntegrationResponseInput { + s.StatusCode = &v + return s +} + // Request to update an existing Method resource. type UpdateMethodInput struct { _ struct{} `type:"structure"` @@ -12567,6 +16899,30 @@ func (s *UpdateMethodInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *UpdateMethodInput) SetHttpMethod(v string) *UpdateMethodInput { + s.HttpMethod = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateMethodInput) SetPatchOperations(v []*PatchOperation) *UpdateMethodInput { + s.PatchOperations = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *UpdateMethodInput) SetResourceId(v string) *UpdateMethodInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateMethodInput) SetRestApiId(v string) *UpdateMethodInput { + s.RestApiId = &v + return s +} + // A request to update an existing MethodResponse resource. type UpdateMethodResponseInput struct { _ struct{} `type:"structure"` @@ -12628,6 +16984,36 @@ func (s *UpdateMethodResponseInput) Validate() error { return nil } +// SetHttpMethod sets the HttpMethod field's value. +func (s *UpdateMethodResponseInput) SetHttpMethod(v string) *UpdateMethodResponseInput { + s.HttpMethod = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateMethodResponseInput) SetPatchOperations(v []*PatchOperation) *UpdateMethodResponseInput { + s.PatchOperations = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *UpdateMethodResponseInput) SetResourceId(v string) *UpdateMethodResponseInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateMethodResponseInput) SetRestApiId(v string) *UpdateMethodResponseInput { + s.RestApiId = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *UpdateMethodResponseInput) SetStatusCode(v string) *UpdateMethodResponseInput { + s.StatusCode = &v + return s +} + // Request to update an existing model in an existing RestApi resource. type UpdateModelInput struct { _ struct{} `type:"structure"` @@ -12673,6 +17059,24 @@ func (s *UpdateModelInput) Validate() error { return nil } +// SetModelName sets the ModelName field's value. +func (s *UpdateModelInput) SetModelName(v string) *UpdateModelInput { + s.ModelName = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateModelInput) SetPatchOperations(v []*PatchOperation) *UpdateModelInput { + s.PatchOperations = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateModelInput) SetRestApiId(v string) *UpdateModelInput { + s.RestApiId = &v + return s +} + // Request to change information about a Resource resource. type UpdateResourceInput struct { _ struct{} `type:"structure"` @@ -12718,6 +17122,24 @@ func (s *UpdateResourceInput) Validate() error { return nil } +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateResourceInput) SetPatchOperations(v []*PatchOperation) *UpdateResourceInput { + s.PatchOperations = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *UpdateResourceInput) SetResourceId(v string) *UpdateResourceInput { + s.ResourceId = &v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateResourceInput) SetRestApiId(v string) *UpdateResourceInput { + s.RestApiId = &v + return s +} + // Request to update an existing RestApi resource in your collection. type UpdateRestApiInput struct { _ struct{} `type:"structure"` @@ -12755,6 +17177,18 @@ func (s *UpdateRestApiInput) Validate() error { return nil } +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateRestApiInput) SetPatchOperations(v []*PatchOperation) *UpdateRestApiInput { + s.PatchOperations = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateRestApiInput) SetRestApiId(v string) *UpdateRestApiInput { + s.RestApiId = &v + return s +} + // Requests Amazon API Gateway to change information about a Stage resource. type UpdateStageInput struct { _ struct{} `type:"structure"` @@ -12801,6 +17235,24 @@ func (s *UpdateStageInput) Validate() error { return nil } +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateStageInput) SetPatchOperations(v []*PatchOperation) *UpdateStageInput { + s.PatchOperations = v + return s +} + +// SetRestApiId sets the RestApiId field's value. +func (s *UpdateStageInput) SetRestApiId(v string) *UpdateStageInput { + s.RestApiId = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *UpdateStageInput) SetStageName(v string) *UpdateStageInput { + s.StageName = &v + return s +} + // The PATCH request to grant a temporary extension to the reamining quota of // a usage plan associated with a specified API key. type UpdateUsageInput struct { @@ -12848,6 +17300,24 @@ func (s *UpdateUsageInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *UpdateUsageInput) SetKeyId(v string) *UpdateUsageInput { + s.KeyId = &v + return s +} + +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateUsageInput) SetPatchOperations(v []*PatchOperation) *UpdateUsageInput { + s.PatchOperations = v + return s +} + +// SetUsagePlanId sets the UsagePlanId field's value. +func (s *UpdateUsageInput) SetUsagePlanId(v string) *UpdateUsageInput { + s.UsagePlanId = &v + return s +} + // The PATCH request to update a usage plan of a given plan Id. type UpdateUsagePlanInput struct { _ struct{} `type:"structure"` @@ -12885,10 +17355,21 @@ func (s *UpdateUsagePlanInput) Validate() error { return nil } +// SetPatchOperations sets the PatchOperations field's value. +func (s *UpdateUsagePlanInput) SetPatchOperations(v []*PatchOperation) *UpdateUsagePlanInput { + s.PatchOperations = v + return s +} + +// SetUsagePlanId sets the UsagePlanId field's value. +func (s *UpdateUsagePlanInput) SetUsagePlanId(v string) *UpdateUsagePlanInput { + s.UsagePlanId = &v + return s +} + // Represents the usage data of a usage plan. // -// Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html), -// Manage Usage in a Usage Plan (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-create-usage-plans-with-console.html#api-gateway-usage-plan-manage-usage) +// Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html), Manage Usage in a Usage Plan (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-create-usage-plans-with-console.html#api-gateway-usage-plan-manage-usage) type Usage struct { _ struct{} `type:"structure"` @@ -12921,14 +17402,44 @@ func (s Usage) GoString() string { return s.String() } +// SetEndDate sets the EndDate field's value. +func (s *Usage) SetEndDate(v string) *Usage { + s.EndDate = &v + return s +} + +// SetItems sets the Items field's value. +func (s *Usage) SetItems(v map[string][][]*int64) *Usage { + s.Items = v + return s +} + +// SetPosition sets the Position field's value. +func (s *Usage) SetPosition(v string) *Usage { + s.Position = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *Usage) SetStartDate(v string) *Usage { + s.StartDate = &v + return s +} + +// SetUsagePlanId sets the UsagePlanId field's value. +func (s *Usage) SetUsagePlanId(v string) *Usage { + s.UsagePlanId = &v + return s +} + // Represents a usage plan than can specify who can assess associated API stages // with specified request limits and quotas. // -// In a usage plan, you associate an API by specifying the API's Id and a -// stage name of the specified API. You add plan customers by adding API keys -// to the plan. +// In a usage plan, you associate an API by specifying the API's Id and a stage +// name of the specified API. You add plan customers by adding API keys to the +// plan. // -// Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) +// Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) type UsagePlan struct { _ struct{} `type:"structure"` @@ -12944,6 +17455,10 @@ type UsagePlan struct { // The name of a usage plan. Name *string `locationName:"name" type:"string"` + // The AWS Markeplace product identifier to associate with the usage plan as + // a SaaS product on AWS Marketplace. + ProductCode *string `locationName:"productCode" type:"string"` + // The maximum number of permitted requests per a given unit time interval. Quota *QuotaSettings `locationName:"quota" type:"structure"` @@ -12961,12 +17476,54 @@ func (s UsagePlan) GoString() string { return s.String() } +// SetApiStages sets the ApiStages field's value. +func (s *UsagePlan) SetApiStages(v []*ApiStage) *UsagePlan { + s.ApiStages = v + return s +} + +// SetDescription sets the Description field's value. +func (s *UsagePlan) SetDescription(v string) *UsagePlan { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *UsagePlan) SetId(v string) *UsagePlan { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *UsagePlan) SetName(v string) *UsagePlan { + s.Name = &v + return s +} + +// SetProductCode sets the ProductCode field's value. +func (s *UsagePlan) SetProductCode(v string) *UsagePlan { + s.ProductCode = &v + return s +} + +// SetQuota sets the Quota field's value. +func (s *UsagePlan) SetQuota(v *QuotaSettings) *UsagePlan { + s.Quota = v + return s +} + +// SetThrottle sets the Throttle field's value. +func (s *UsagePlan) SetThrottle(v *ThrottleSettings) *UsagePlan { + s.Throttle = v + return s +} + // Represents a usage plan key to identify a plan customer. // -// To associate an API stage with a selected API key in a usage plan, you -// must create a UsagePlanKey resource to represent the selected ApiKey. +// To associate an API stage with a selected API key in a usage plan, you must +// create a UsagePlanKey resource to represent the selected ApiKey. // -// " Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) +// " Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) type UsagePlanKey struct { _ struct{} `type:"structure"` @@ -12993,12 +17550,37 @@ func (s UsagePlanKey) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *UsagePlanKey) SetId(v string) *UsagePlanKey { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *UsagePlanKey) SetName(v string) *UsagePlanKey { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *UsagePlanKey) SetType(v string) *UsagePlanKey { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *UsagePlanKey) SetValue(v string) *UsagePlanKey { + s.Value = &v + return s +} + const ( // ApiKeysFormatCsv is a ApiKeysFormat enum value ApiKeysFormatCsv = "csv" ) -// The authorizer type. the only current value is TOKEN. +// The authorizer type. the current value is TOKEN for a Lambda function or +// COGNITO_USER_POOLS for an Amazon Cognito Your User Pool. const ( // AuthorizerTypeToken is a AuthorizerType enum value AuthorizerTypeToken = "TOKEN" @@ -13052,6 +17634,52 @@ const ( CacheClusterStatusFlushInProgress = "FLUSH_IN_PROGRESS" ) +const ( + // ContentHandlingStrategyConvertToBinary is a ContentHandlingStrategy enum value + ContentHandlingStrategyConvertToBinary = "CONVERT_TO_BINARY" + + // ContentHandlingStrategyConvertToText is a ContentHandlingStrategy enum value + ContentHandlingStrategyConvertToText = "CONVERT_TO_TEXT" +) + +const ( + // DocumentationPartTypeApi is a DocumentationPartType enum value + DocumentationPartTypeApi = "API" + + // DocumentationPartTypeAuthorizer is a DocumentationPartType enum value + DocumentationPartTypeAuthorizer = "AUTHORIZER" + + // DocumentationPartTypeModel is a DocumentationPartType enum value + DocumentationPartTypeModel = "MODEL" + + // DocumentationPartTypeResource is a DocumentationPartType enum value + DocumentationPartTypeResource = "RESOURCE" + + // DocumentationPartTypeMethod is a DocumentationPartType enum value + DocumentationPartTypeMethod = "METHOD" + + // DocumentationPartTypePathParameter is a DocumentationPartType enum value + DocumentationPartTypePathParameter = "PATH_PARAMETER" + + // DocumentationPartTypeQueryParameter is a DocumentationPartType enum value + DocumentationPartTypeQueryParameter = "QUERY_PARAMETER" + + // DocumentationPartTypeRequestHeader is a DocumentationPartType enum value + DocumentationPartTypeRequestHeader = "REQUEST_HEADER" + + // DocumentationPartTypeRequestBody is a DocumentationPartType enum value + DocumentationPartTypeRequestBody = "REQUEST_BODY" + + // DocumentationPartTypeResponse is a DocumentationPartType enum value + DocumentationPartTypeResponse = "RESPONSE" + + // DocumentationPartTypeResponseHeader is a DocumentationPartType enum value + DocumentationPartTypeResponseHeader = "RESPONSE_HEADER" + + // DocumentationPartTypeResponseBody is a DocumentationPartType enum value + DocumentationPartTypeResponseBody = "RESPONSE_BODY" +) + // The integration type. The valid value is HTTP for integrating with an HTTP // back end, AWS for any AWS service endpoints, MOCK for testing without actually // invoking the back end, HTTP_PROXY for integrating with the HTTP proxy integration, diff --git a/vendor/github.com/aws/aws-sdk-go/service/apigateway/apigatewayiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/apigateway/apigatewayiface/interface.go index 2a9a8860c..97062499c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/apigateway/apigatewayiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/apigateway/apigatewayiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockAPIGatewayClient{} // @@ -75,6 +75,14 @@ type APIGatewayAPI interface { CreateDeployment(*apigateway.CreateDeploymentInput) (*apigateway.Deployment, error) + CreateDocumentationPartRequest(*apigateway.CreateDocumentationPartInput) (*request.Request, *apigateway.DocumentationPart) + + CreateDocumentationPart(*apigateway.CreateDocumentationPartInput) (*apigateway.DocumentationPart, error) + + CreateDocumentationVersionRequest(*apigateway.CreateDocumentationVersionInput) (*request.Request, *apigateway.DocumentationVersion) + + CreateDocumentationVersion(*apigateway.CreateDocumentationVersionInput) (*apigateway.DocumentationVersion, error) + CreateDomainNameRequest(*apigateway.CreateDomainNameInput) (*request.Request, *apigateway.DomainName) CreateDomainName(*apigateway.CreateDomainNameInput) (*apigateway.DomainName, error) @@ -123,6 +131,14 @@ type APIGatewayAPI interface { DeleteDeployment(*apigateway.DeleteDeploymentInput) (*apigateway.DeleteDeploymentOutput, error) + DeleteDocumentationPartRequest(*apigateway.DeleteDocumentationPartInput) (*request.Request, *apigateway.DeleteDocumentationPartOutput) + + DeleteDocumentationPart(*apigateway.DeleteDocumentationPartInput) (*apigateway.DeleteDocumentationPartOutput, error) + + DeleteDocumentationVersionRequest(*apigateway.DeleteDocumentationVersionInput) (*request.Request, *apigateway.DeleteDocumentationVersionOutput) + + DeleteDocumentationVersion(*apigateway.DeleteDocumentationVersionInput) (*apigateway.DeleteDocumentationVersionOutput, error) + DeleteDomainNameRequest(*apigateway.DeleteDomainNameInput) (*request.Request, *apigateway.DeleteDomainNameOutput) DeleteDomainName(*apigateway.DeleteDomainNameInput) (*apigateway.DeleteDomainNameOutput, error) @@ -231,6 +247,22 @@ type APIGatewayAPI interface { GetDeploymentsPages(*apigateway.GetDeploymentsInput, func(*apigateway.GetDeploymentsOutput, bool) bool) error + GetDocumentationPartRequest(*apigateway.GetDocumentationPartInput) (*request.Request, *apigateway.DocumentationPart) + + GetDocumentationPart(*apigateway.GetDocumentationPartInput) (*apigateway.DocumentationPart, error) + + GetDocumentationPartsRequest(*apigateway.GetDocumentationPartsInput) (*request.Request, *apigateway.GetDocumentationPartsOutput) + + GetDocumentationParts(*apigateway.GetDocumentationPartsInput) (*apigateway.GetDocumentationPartsOutput, error) + + GetDocumentationVersionRequest(*apigateway.GetDocumentationVersionInput) (*request.Request, *apigateway.DocumentationVersion) + + GetDocumentationVersion(*apigateway.GetDocumentationVersionInput) (*apigateway.DocumentationVersion, error) + + GetDocumentationVersionsRequest(*apigateway.GetDocumentationVersionsInput) (*request.Request, *apigateway.GetDocumentationVersionsOutput) + + GetDocumentationVersions(*apigateway.GetDocumentationVersionsInput) (*apigateway.GetDocumentationVersionsOutput, error) + GetDomainNameRequest(*apigateway.GetDomainNameInput) (*request.Request, *apigateway.DomainName) GetDomainName(*apigateway.GetDomainNameInput) (*apigateway.DomainName, error) @@ -299,6 +331,14 @@ type APIGatewayAPI interface { GetSdk(*apigateway.GetSdkInput) (*apigateway.GetSdkOutput, error) + GetSdkTypeRequest(*apigateway.GetSdkTypeInput) (*request.Request, *apigateway.SdkType) + + GetSdkType(*apigateway.GetSdkTypeInput) (*apigateway.SdkType, error) + + GetSdkTypesRequest(*apigateway.GetSdkTypesInput) (*request.Request, *apigateway.GetSdkTypesOutput) + + GetSdkTypes(*apigateway.GetSdkTypesInput) (*apigateway.GetSdkTypesOutput, error) + GetStageRequest(*apigateway.GetStageInput) (*request.Request, *apigateway.Stage) GetStage(*apigateway.GetStageInput) (*apigateway.Stage, error) @@ -337,6 +377,10 @@ type APIGatewayAPI interface { ImportApiKeys(*apigateway.ImportApiKeysInput) (*apigateway.ImportApiKeysOutput, error) + ImportDocumentationPartsRequest(*apigateway.ImportDocumentationPartsInput) (*request.Request, *apigateway.ImportDocumentationPartsOutput) + + ImportDocumentationParts(*apigateway.ImportDocumentationPartsInput) (*apigateway.ImportDocumentationPartsOutput, error) + ImportRestApiRequest(*apigateway.ImportRestApiInput) (*request.Request, *apigateway.RestApi) ImportRestApi(*apigateway.ImportRestApiInput) (*apigateway.RestApi, error) @@ -393,6 +437,14 @@ type APIGatewayAPI interface { UpdateDeployment(*apigateway.UpdateDeploymentInput) (*apigateway.Deployment, error) + UpdateDocumentationPartRequest(*apigateway.UpdateDocumentationPartInput) (*request.Request, *apigateway.DocumentationPart) + + UpdateDocumentationPart(*apigateway.UpdateDocumentationPartInput) (*apigateway.DocumentationPart, error) + + UpdateDocumentationVersionRequest(*apigateway.UpdateDocumentationVersionInput) (*request.Request, *apigateway.DocumentationVersion) + + UpdateDocumentationVersion(*apigateway.UpdateDocumentationVersionInput) (*apigateway.DocumentationVersion, error) + UpdateDomainNameRequest(*apigateway.UpdateDomainNameInput) (*request.Request, *apigateway.DomainName) UpdateDomainName(*apigateway.UpdateDomainNameInput) (*apigateway.DomainName, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/apigateway/errors.go b/vendor/github.com/aws/aws-sdk-go/service/apigateway/errors.go new file mode 100644 index 000000000..b06644b71 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/apigateway/errors.go @@ -0,0 +1,34 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package apigateway + +const ( + + // ErrCodeBadRequestException for service response error code + // "BadRequestException". + ErrCodeBadRequestException = "BadRequestException" + + // ErrCodeConflictException for service response error code + // "ConflictException". + ErrCodeConflictException = "ConflictException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeNotFoundException for service response error code + // "NotFoundException". + ErrCodeNotFoundException = "NotFoundException" + + // ErrCodeServiceUnavailableException for service response error code + // "ServiceUnavailableException". + ErrCodeServiceUnavailableException = "ServiceUnavailableException" + + // ErrCodeTooManyRequestsException for service response error code + // "TooManyRequestsException". + ErrCodeTooManyRequestsException = "TooManyRequestsException" + + // ErrCodeUnauthorizedException for service response error code + // "UnauthorizedException". + ErrCodeUnauthorizedException = "UnauthorizedException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/apigateway/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/apigateway/examples_test.go index c12953328..925e5d1a3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/apigateway/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/apigateway/examples_test.go @@ -16,15 +16,12 @@ var _ time.Duration var _ bytes.Buffer func ExampleAPIGateway_CreateApiKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) params := &apigateway.CreateApiKeyInput{ + CustomerId: aws.String("String"), Description: aws.String("String"), Enabled: aws.Bool(true), GenerateDistinctId: aws.Bool(true), @@ -52,11 +49,7 @@ func ExampleAPIGateway_CreateApiKey() { } func ExampleAPIGateway_CreateAuthorizer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -89,11 +82,7 @@ func ExampleAPIGateway_CreateAuthorizer() { } func ExampleAPIGateway_CreateBasePathMapping() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -117,21 +106,17 @@ func ExampleAPIGateway_CreateBasePathMapping() { } func ExampleAPIGateway_CreateDeployment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) params := &apigateway.CreateDeploymentInput{ RestApiId: aws.String("String"), // Required - StageName: aws.String("String"), // Required CacheClusterEnabled: aws.Bool(true), CacheClusterSize: aws.String("CacheClusterSize"), Description: aws.String("String"), StageDescription: aws.String("String"), + StageName: aws.String("String"), Variables: map[string]*string{ "Key": aws.String("String"), // Required // More values... @@ -150,21 +135,71 @@ func ExampleAPIGateway_CreateDeployment() { fmt.Println(resp) } -func ExampleAPIGateway_CreateDomainName() { - sess, err := session.NewSession() +func ExampleAPIGateway_CreateDocumentationPart() { + sess := session.Must(session.NewSession()) + + svc := apigateway.New(sess) + + params := &apigateway.CreateDocumentationPartInput{ + Location: &apigateway.DocumentationPartLocation{ // Required + Type: aws.String("DocumentationPartType"), // Required + Method: aws.String("String"), + Name: aws.String("String"), + Path: aws.String("String"), + StatusCode: aws.String("DocumentationPartLocationStatusCode"), + }, + Properties: aws.String("String"), // Required + RestApiId: aws.String("String"), // Required + } + resp, err := svc.CreateDocumentationPart(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAPIGateway_CreateDocumentationVersion() { + sess := session.Must(session.NewSession()) + + svc := apigateway.New(sess) + + params := &apigateway.CreateDocumentationVersionInput{ + DocumentationVersion: aws.String("String"), // Required + RestApiId: aws.String("String"), // Required + Description: aws.String("String"), + StageName: aws.String("String"), + } + resp, err := svc.CreateDocumentationVersion(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAPIGateway_CreateDomainName() { + sess := session.Must(session.NewSession()) + svc := apigateway.New(sess) params := &apigateway.CreateDomainNameInput{ - CertificateBody: aws.String("String"), // Required - CertificateChain: aws.String("String"), // Required - CertificateName: aws.String("String"), // Required - CertificatePrivateKey: aws.String("String"), // Required DomainName: aws.String("String"), // Required + CertificateArn: aws.String("String"), + CertificateBody: aws.String("String"), + CertificateChain: aws.String("String"), + CertificateName: aws.String("String"), + CertificatePrivateKey: aws.String("String"), } resp, err := svc.CreateDomainName(params) @@ -180,11 +215,7 @@ func ExampleAPIGateway_CreateDomainName() { } func ExampleAPIGateway_CreateModel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -209,11 +240,7 @@ func ExampleAPIGateway_CreateModel() { } func ExampleAPIGateway_CreateResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -236,18 +263,19 @@ func ExampleAPIGateway_CreateResource() { } func ExampleAPIGateway_CreateRestApi() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) params := &apigateway.CreateRestApiInput{ - Name: aws.String("String"), // Required + Name: aws.String("String"), // Required + BinaryMediaTypes: []*string{ + aws.String("String"), // Required + // More values... + }, CloneFrom: aws.String("String"), Description: aws.String("String"), + Version: aws.String("String"), } resp, err := svc.CreateRestApi(params) @@ -263,21 +291,18 @@ func ExampleAPIGateway_CreateRestApi() { } func ExampleAPIGateway_CreateStage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) params := &apigateway.CreateStageInput{ - DeploymentId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - StageName: aws.String("String"), // Required - CacheClusterEnabled: aws.Bool(true), - CacheClusterSize: aws.String("CacheClusterSize"), - Description: aws.String("String"), + DeploymentId: aws.String("String"), // Required + RestApiId: aws.String("String"), // Required + StageName: aws.String("String"), // Required + CacheClusterEnabled: aws.Bool(true), + CacheClusterSize: aws.String("CacheClusterSize"), + Description: aws.String("String"), + DocumentationVersion: aws.String("String"), Variables: map[string]*string{ "Key": aws.String("String"), // Required // More values... @@ -297,11 +322,7 @@ func ExampleAPIGateway_CreateStage() { } func ExampleAPIGateway_CreateUsagePlan() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -339,11 +360,7 @@ func ExampleAPIGateway_CreateUsagePlan() { } func ExampleAPIGateway_CreateUsagePlanKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -366,11 +383,7 @@ func ExampleAPIGateway_CreateUsagePlanKey() { } func ExampleAPIGateway_DeleteApiKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -391,11 +404,7 @@ func ExampleAPIGateway_DeleteApiKey() { } func ExampleAPIGateway_DeleteAuthorizer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -417,11 +426,7 @@ func ExampleAPIGateway_DeleteAuthorizer() { } func ExampleAPIGateway_DeleteBasePathMapping() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -443,11 +448,7 @@ func ExampleAPIGateway_DeleteBasePathMapping() { } func ExampleAPIGateway_DeleteClientCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -468,11 +469,7 @@ func ExampleAPIGateway_DeleteClientCertificate() { } func ExampleAPIGateway_DeleteDeployment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -493,13 +490,53 @@ func ExampleAPIGateway_DeleteDeployment() { fmt.Println(resp) } -func ExampleAPIGateway_DeleteDomainName() { - sess, err := session.NewSession() +func ExampleAPIGateway_DeleteDocumentationPart() { + sess := session.Must(session.NewSession()) + + svc := apigateway.New(sess) + + params := &apigateway.DeleteDocumentationPartInput{ + DocumentationPartId: aws.String("String"), // Required + RestApiId: aws.String("String"), // Required + } + resp, err := svc.DeleteDocumentationPart(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAPIGateway_DeleteDocumentationVersion() { + sess := session.Must(session.NewSession()) + + svc := apigateway.New(sess) + + params := &apigateway.DeleteDocumentationVersionInput{ + DocumentationVersion: aws.String("String"), // Required + RestApiId: aws.String("String"), // Required + } + resp, err := svc.DeleteDocumentationVersion(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAPIGateway_DeleteDomainName() { + sess := session.Must(session.NewSession()) + svc := apigateway.New(sess) params := &apigateway.DeleteDomainNameInput{ @@ -519,11 +556,7 @@ func ExampleAPIGateway_DeleteDomainName() { } func ExampleAPIGateway_DeleteIntegration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -546,11 +579,7 @@ func ExampleAPIGateway_DeleteIntegration() { } func ExampleAPIGateway_DeleteIntegrationResponse() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -574,11 +603,7 @@ func ExampleAPIGateway_DeleteIntegrationResponse() { } func ExampleAPIGateway_DeleteMethod() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -601,11 +626,7 @@ func ExampleAPIGateway_DeleteMethod() { } func ExampleAPIGateway_DeleteMethodResponse() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -629,11 +650,7 @@ func ExampleAPIGateway_DeleteMethodResponse() { } func ExampleAPIGateway_DeleteModel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -655,11 +672,7 @@ func ExampleAPIGateway_DeleteModel() { } func ExampleAPIGateway_DeleteResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -681,11 +694,7 @@ func ExampleAPIGateway_DeleteResource() { } func ExampleAPIGateway_DeleteRestApi() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -706,11 +715,7 @@ func ExampleAPIGateway_DeleteRestApi() { } func ExampleAPIGateway_DeleteStage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -732,11 +737,7 @@ func ExampleAPIGateway_DeleteStage() { } func ExampleAPIGateway_DeleteUsagePlan() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -757,11 +758,7 @@ func ExampleAPIGateway_DeleteUsagePlan() { } func ExampleAPIGateway_DeleteUsagePlanKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -783,11 +780,7 @@ func ExampleAPIGateway_DeleteUsagePlanKey() { } func ExampleAPIGateway_FlushStageAuthorizersCache() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -809,11 +802,7 @@ func ExampleAPIGateway_FlushStageAuthorizersCache() { } func ExampleAPIGateway_FlushStageCache() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -835,11 +824,7 @@ func ExampleAPIGateway_FlushStageCache() { } func ExampleAPIGateway_GenerateClientCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -860,11 +845,7 @@ func ExampleAPIGateway_GenerateClientCertificate() { } func ExampleAPIGateway_GetAccount() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -883,11 +864,7 @@ func ExampleAPIGateway_GetAccount() { } func ExampleAPIGateway_GetApiKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -909,15 +886,12 @@ func ExampleAPIGateway_GetApiKey() { } func ExampleAPIGateway_GetApiKeys() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) params := &apigateway.GetApiKeysInput{ + CustomerId: aws.String("String"), IncludeValues: aws.Bool(true), Limit: aws.Int64(1), NameQuery: aws.String("String"), @@ -937,11 +911,7 @@ func ExampleAPIGateway_GetApiKeys() { } func ExampleAPIGateway_GetAuthorizer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -963,11 +933,7 @@ func ExampleAPIGateway_GetAuthorizer() { } func ExampleAPIGateway_GetAuthorizers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -990,11 +956,7 @@ func ExampleAPIGateway_GetAuthorizers() { } func ExampleAPIGateway_GetBasePathMapping() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1016,11 +978,7 @@ func ExampleAPIGateway_GetBasePathMapping() { } func ExampleAPIGateway_GetBasePathMappings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1043,11 +1001,7 @@ func ExampleAPIGateway_GetBasePathMappings() { } func ExampleAPIGateway_GetClientCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1068,11 +1022,7 @@ func ExampleAPIGateway_GetClientCertificate() { } func ExampleAPIGateway_GetClientCertificates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1094,11 +1044,7 @@ func ExampleAPIGateway_GetClientCertificates() { } func ExampleAPIGateway_GetDeployment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1120,20 +1066,64 @@ func ExampleAPIGateway_GetDeployment() { } func ExampleAPIGateway_GetDeployments() { - sess, err := session.NewSession() + sess := session.Must(session.NewSession()) + + svc := apigateway.New(sess) + + params := &apigateway.GetDeploymentsInput{ + RestApiId: aws.String("String"), // Required + Limit: aws.Int64(1), + Position: aws.String("String"), + } + resp, err := svc.GetDeployments(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAPIGateway_GetDocumentationPart() { + sess := session.Must(session.NewSession()) + svc := apigateway.New(sess) - params := &apigateway.GetDeploymentsInput{ + params := &apigateway.GetDocumentationPartInput{ + DocumentationPartId: aws.String("String"), // Required + RestApiId: aws.String("String"), // Required + } + resp, err := svc.GetDocumentationPart(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAPIGateway_GetDocumentationParts() { + sess := session.Must(session.NewSession()) + + svc := apigateway.New(sess) + + params := &apigateway.GetDocumentationPartsInput{ RestApiId: aws.String("String"), // Required Limit: aws.Int64(1), + NameQuery: aws.String("String"), + Path: aws.String("String"), Position: aws.String("String"), + Type: aws.String("DocumentationPartType"), } - resp, err := svc.GetDeployments(params) + resp, err := svc.GetDocumentationParts(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -1146,13 +1136,54 @@ func ExampleAPIGateway_GetDeployments() { fmt.Println(resp) } -func ExampleAPIGateway_GetDomainName() { - sess, err := session.NewSession() +func ExampleAPIGateway_GetDocumentationVersion() { + sess := session.Must(session.NewSession()) + + svc := apigateway.New(sess) + + params := &apigateway.GetDocumentationVersionInput{ + DocumentationVersion: aws.String("String"), // Required + RestApiId: aws.String("String"), // Required + } + resp, err := svc.GetDocumentationVersion(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAPIGateway_GetDocumentationVersions() { + sess := session.Must(session.NewSession()) + + svc := apigateway.New(sess) + + params := &apigateway.GetDocumentationVersionsInput{ + RestApiId: aws.String("String"), // Required + Limit: aws.Int64(1), + Position: aws.String("String"), + } + resp, err := svc.GetDocumentationVersions(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAPIGateway_GetDomainName() { + sess := session.Must(session.NewSession()) + svc := apigateway.New(sess) params := &apigateway.GetDomainNameInput{ @@ -1172,11 +1203,7 @@ func ExampleAPIGateway_GetDomainName() { } func ExampleAPIGateway_GetDomainNames() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1198,11 +1225,7 @@ func ExampleAPIGateway_GetDomainNames() { } func ExampleAPIGateway_GetExport() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1230,11 +1253,7 @@ func ExampleAPIGateway_GetExport() { } func ExampleAPIGateway_GetIntegration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1257,11 +1276,7 @@ func ExampleAPIGateway_GetIntegration() { } func ExampleAPIGateway_GetIntegrationResponse() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1285,11 +1300,7 @@ func ExampleAPIGateway_GetIntegrationResponse() { } func ExampleAPIGateway_GetMethod() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1312,11 +1323,7 @@ func ExampleAPIGateway_GetMethod() { } func ExampleAPIGateway_GetMethodResponse() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1340,11 +1347,7 @@ func ExampleAPIGateway_GetMethodResponse() { } func ExampleAPIGateway_GetModel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1367,11 +1370,7 @@ func ExampleAPIGateway_GetModel() { } func ExampleAPIGateway_GetModelTemplate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1393,11 +1392,7 @@ func ExampleAPIGateway_GetModelTemplate() { } func ExampleAPIGateway_GetModels() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1420,11 +1415,7 @@ func ExampleAPIGateway_GetModels() { } func ExampleAPIGateway_GetResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1446,11 +1437,7 @@ func ExampleAPIGateway_GetResource() { } func ExampleAPIGateway_GetResources() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1473,11 +1460,7 @@ func ExampleAPIGateway_GetResources() { } func ExampleAPIGateway_GetRestApi() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1498,11 +1481,7 @@ func ExampleAPIGateway_GetRestApi() { } func ExampleAPIGateway_GetRestApis() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1524,11 +1503,7 @@ func ExampleAPIGateway_GetRestApis() { } func ExampleAPIGateway_GetSdk() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1554,13 +1529,52 @@ func ExampleAPIGateway_GetSdk() { fmt.Println(resp) } -func ExampleAPIGateway_GetStage() { - sess, err := session.NewSession() +func ExampleAPIGateway_GetSdkType() { + sess := session.Must(session.NewSession()) + + svc := apigateway.New(sess) + + params := &apigateway.GetSdkTypeInput{ + Id: aws.String("String"), // Required + } + resp, err := svc.GetSdkType(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAPIGateway_GetSdkTypes() { + sess := session.Must(session.NewSession()) + + svc := apigateway.New(sess) + + params := &apigateway.GetSdkTypesInput{ + Limit: aws.Int64(1), + Position: aws.String("String"), + } + resp, err := svc.GetSdkTypes(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAPIGateway_GetStage() { + sess := session.Must(session.NewSession()) + svc := apigateway.New(sess) params := &apigateway.GetStageInput{ @@ -1581,11 +1595,7 @@ func ExampleAPIGateway_GetStage() { } func ExampleAPIGateway_GetStages() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1607,11 +1617,7 @@ func ExampleAPIGateway_GetStages() { } func ExampleAPIGateway_GetUsage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1637,11 +1643,7 @@ func ExampleAPIGateway_GetUsage() { } func ExampleAPIGateway_GetUsagePlan() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1662,11 +1664,7 @@ func ExampleAPIGateway_GetUsagePlan() { } func ExampleAPIGateway_GetUsagePlanKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1688,11 +1686,7 @@ func ExampleAPIGateway_GetUsagePlanKey() { } func ExampleAPIGateway_GetUsagePlanKeys() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1716,11 +1710,7 @@ func ExampleAPIGateway_GetUsagePlanKeys() { } func ExampleAPIGateway_GetUsagePlans() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1743,11 +1733,7 @@ func ExampleAPIGateway_GetUsagePlans() { } func ExampleAPIGateway_ImportApiKeys() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1769,13 +1755,33 @@ func ExampleAPIGateway_ImportApiKeys() { fmt.Println(resp) } -func ExampleAPIGateway_ImportRestApi() { - sess, err := session.NewSession() +func ExampleAPIGateway_ImportDocumentationParts() { + sess := session.Must(session.NewSession()) + + svc := apigateway.New(sess) + + params := &apigateway.ImportDocumentationPartsInput{ + Body: []byte("PAYLOAD"), // Required + RestApiId: aws.String("String"), // Required + FailOnWarnings: aws.Bool(true), + Mode: aws.String("PutMode"), + } + resp, err := svc.ImportDocumentationParts(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAPIGateway_ImportRestApi() { + sess := session.Must(session.NewSession()) + svc := apigateway.New(sess) params := &apigateway.ImportRestApiInput{ @@ -1800,11 +1806,7 @@ func ExampleAPIGateway_ImportRestApi() { } func ExampleAPIGateway_PutIntegration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1818,6 +1820,7 @@ func ExampleAPIGateway_PutIntegration() { // More values... }, CacheNamespace: aws.String("String"), + ContentHandling: aws.String("ContentHandlingStrategy"), Credentials: aws.String("String"), IntegrationHttpMethod: aws.String("String"), PassthroughBehavior: aws.String("String"), @@ -1845,19 +1848,16 @@ func ExampleAPIGateway_PutIntegration() { } func ExampleAPIGateway_PutIntegrationResponse() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) params := &apigateway.PutIntegrationResponseInput{ - HttpMethod: aws.String("String"), // Required - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - StatusCode: aws.String("StatusCode"), // Required + HttpMethod: aws.String("String"), // Required + ResourceId: aws.String("String"), // Required + RestApiId: aws.String("String"), // Required + StatusCode: aws.String("StatusCode"), // Required + ContentHandling: aws.String("ContentHandlingStrategy"), ResponseParameters: map[string]*string{ "Key": aws.String("String"), // Required // More values... @@ -1882,11 +1882,7 @@ func ExampleAPIGateway_PutIntegrationResponse() { } func ExampleAPIGateway_PutMethod() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1897,6 +1893,7 @@ func ExampleAPIGateway_PutMethod() { RestApiId: aws.String("String"), // Required ApiKeyRequired: aws.Bool(true), AuthorizerId: aws.String("String"), + OperationName: aws.String("String"), RequestModels: map[string]*string{ "Key": aws.String("String"), // Required // More values... @@ -1920,11 +1917,7 @@ func ExampleAPIGateway_PutMethod() { } func ExampleAPIGateway_PutMethodResponse() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1956,11 +1949,7 @@ func ExampleAPIGateway_PutMethodResponse() { } func ExampleAPIGateway_PutRestApi() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -1988,11 +1977,7 @@ func ExampleAPIGateway_PutRestApi() { } func ExampleAPIGateway_TestInvokeAuthorizer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2028,11 +2013,7 @@ func ExampleAPIGateway_TestInvokeAuthorizer() { } func ExampleAPIGateway_TestInvokeMethod() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2066,11 +2047,7 @@ func ExampleAPIGateway_TestInvokeMethod() { } func ExampleAPIGateway_UpdateAccount() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2099,11 +2076,7 @@ func ExampleAPIGateway_UpdateAccount() { } func ExampleAPIGateway_UpdateApiKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2133,11 +2106,7 @@ func ExampleAPIGateway_UpdateApiKey() { } func ExampleAPIGateway_UpdateAuthorizer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2168,11 +2137,7 @@ func ExampleAPIGateway_UpdateAuthorizer() { } func ExampleAPIGateway_UpdateBasePathMapping() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2203,11 +2168,7 @@ func ExampleAPIGateway_UpdateBasePathMapping() { } func ExampleAPIGateway_UpdateClientCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2237,11 +2198,7 @@ func ExampleAPIGateway_UpdateClientCertificate() { } func ExampleAPIGateway_UpdateDeployment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2271,13 +2228,71 @@ func ExampleAPIGateway_UpdateDeployment() { fmt.Println(resp) } -func ExampleAPIGateway_UpdateDomainName() { - sess, err := session.NewSession() +func ExampleAPIGateway_UpdateDocumentationPart() { + sess := session.Must(session.NewSession()) + + svc := apigateway.New(sess) + + params := &apigateway.UpdateDocumentationPartInput{ + DocumentationPartId: aws.String("String"), // Required + RestApiId: aws.String("String"), // Required + PatchOperations: []*apigateway.PatchOperation{ + { // Required + From: aws.String("String"), + Op: aws.String("Op"), + Path: aws.String("String"), + Value: aws.String("String"), + }, + // More values... + }, + } + resp, err := svc.UpdateDocumentationPart(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAPIGateway_UpdateDocumentationVersion() { + sess := session.Must(session.NewSession()) + + svc := apigateway.New(sess) + + params := &apigateway.UpdateDocumentationVersionInput{ + DocumentationVersion: aws.String("String"), // Required + RestApiId: aws.String("String"), // Required + PatchOperations: []*apigateway.PatchOperation{ + { // Required + From: aws.String("String"), + Op: aws.String("Op"), + Path: aws.String("String"), + Value: aws.String("String"), + }, + // More values... + }, + } + resp, err := svc.UpdateDocumentationVersion(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAPIGateway_UpdateDomainName() { + sess := session.Must(session.NewSession()) + svc := apigateway.New(sess) params := &apigateway.UpdateDomainNameInput{ @@ -2306,11 +2321,7 @@ func ExampleAPIGateway_UpdateDomainName() { } func ExampleAPIGateway_UpdateIntegration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2342,11 +2353,7 @@ func ExampleAPIGateway_UpdateIntegration() { } func ExampleAPIGateway_UpdateIntegrationResponse() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2379,11 +2386,7 @@ func ExampleAPIGateway_UpdateIntegrationResponse() { } func ExampleAPIGateway_UpdateMethod() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2415,11 +2418,7 @@ func ExampleAPIGateway_UpdateMethod() { } func ExampleAPIGateway_UpdateMethodResponse() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2452,11 +2451,7 @@ func ExampleAPIGateway_UpdateMethodResponse() { } func ExampleAPIGateway_UpdateModel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2487,11 +2482,7 @@ func ExampleAPIGateway_UpdateModel() { } func ExampleAPIGateway_UpdateResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2522,11 +2513,7 @@ func ExampleAPIGateway_UpdateResource() { } func ExampleAPIGateway_UpdateRestApi() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2556,11 +2543,7 @@ func ExampleAPIGateway_UpdateRestApi() { } func ExampleAPIGateway_UpdateStage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2591,11 +2574,7 @@ func ExampleAPIGateway_UpdateStage() { } func ExampleAPIGateway_UpdateUsage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) @@ -2626,11 +2605,7 @@ func ExampleAPIGateway_UpdateUsage() { } func ExampleAPIGateway_UpdateUsagePlan() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := apigateway.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/apigateway/service.go b/vendor/github.com/aws/aws-sdk-go/service/apigateway/service.go index 27539d8e2..052f84a69 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/apigateway/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/apigateway/service.go @@ -16,7 +16,7 @@ import ( // to securely connect mobile and web applications to APIs that run on AWS Lambda, // Amazon EC2, or other publicly addressable web services that are hosted outside // of AWS. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type APIGateway struct { *client.Client @@ -28,8 +28,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "apigateway" +// Service information constants +const ( + ServiceName = "apigateway" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the APIGateway client with a session. // If additional configuration is needed for the client instance use the optional @@ -42,17 +45,18 @@ const ServiceName = "apigateway" // // Create a APIGateway client with additional configuration // svc := apigateway.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *APIGateway { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *APIGateway { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *APIGateway { svc := &APIGateway{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-07-09", diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/api.go b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/api.go index 0bcf442a9..ba6abe54f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/api.go @@ -37,6 +37,7 @@ const opDeleteScalingPolicy = "DeleteScalingPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicy func (c *ApplicationAutoScaling) DeleteScalingPolicyRequest(input *DeleteScalingPolicyInput) (req *request.Request, output *DeleteScalingPolicyOutput) { op := &request.Operation{ Name: opDeleteScalingPolicy, @@ -48,23 +49,20 @@ func (c *ApplicationAutoScaling) DeleteScalingPolicyRequest(input *DeleteScaling input = &DeleteScalingPolicyInput{} } - req = c.newRequest(op, input, output) output = &DeleteScalingPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DeleteScalingPolicy API operation for Application Auto Scaling. // -// Deletes an Application Auto Scaling scaling policy that was previously created. -// If you are no longer using a scaling policy, you can delete it with this -// operation. +// Deletes the specified Application Auto Scaling scaling policy. // // Deleting a policy deletes the underlying alarm action, but does not delete // the CloudWatch alarm associated with the scaling policy, even if it no longer // has an associated action. // -// To create a new scaling policy or update an existing one, see PutScalingPolicy. +// To create a scaling policy or update an existing one, see PutScalingPolicy. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -74,11 +72,11 @@ func (c *ApplicationAutoScaling) DeleteScalingPolicyRequest(input *DeleteScaling // API operation DeleteScalingPolicy for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // An exception was thrown for a validation issue. Review the available parameters // for the API request. // -// * ObjectNotFoundException +// * ErrCodeObjectNotFoundException "ObjectNotFoundException" // The specified object could not be found. For any Put or Register API operation, // which depends on the existence of a scalable target, this exception is thrown // if the scalable target with the specified service namespace, resource ID, @@ -86,13 +84,14 @@ func (c *ApplicationAutoScaling) DeleteScalingPolicyRequest(input *DeleteScaling // this exception is thrown if the resource that is to be deleted or deregistered // cannot be found. // -// * ConcurrentUpdateException +// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" // Concurrent updates caused an exception, for example, if you request an update // to an Application Auto Scaling resource that already has a pending update. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicy func (c *ApplicationAutoScaling) DeleteScalingPolicy(input *DeleteScalingPolicyInput) (*DeleteScalingPolicyOutput, error) { req, out := c.DeleteScalingPolicyRequest(input) err := req.Send() @@ -125,6 +124,7 @@ const opDeregisterScalableTarget = "DeregisterScalableTarget" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTarget func (c *ApplicationAutoScaling) DeregisterScalableTargetRequest(input *DeregisterScalableTargetInput) (req *request.Request, output *DeregisterScalableTargetOutput) { op := &request.Operation{ Name: opDeregisterScalableTarget, @@ -136,20 +136,19 @@ func (c *ApplicationAutoScaling) DeregisterScalableTargetRequest(input *Deregist input = &DeregisterScalableTargetInput{} } - req = c.newRequest(op, input, output) output = &DeregisterScalableTargetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DeregisterScalableTarget API operation for Application Auto Scaling. // -// Deregisters a scalable target that was previously registered. If you are -// no longer using a scalable target, you can delete it with this operation. -// When you deregister a scalable target, all of the scaling policies that are -// associated with that scalable target are deleted. +// Deregisters a scalable target. // -// To create a new scalable target or update an existing one, see RegisterScalableTarget. +// Deregistering a scalable target deletes the scaling policies that are associated +// with it. +// +// To create a scalable target or update an existing one, see RegisterScalableTarget. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -159,11 +158,11 @@ func (c *ApplicationAutoScaling) DeregisterScalableTargetRequest(input *Deregist // API operation DeregisterScalableTarget for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // An exception was thrown for a validation issue. Review the available parameters // for the API request. // -// * ObjectNotFoundException +// * ErrCodeObjectNotFoundException "ObjectNotFoundException" // The specified object could not be found. For any Put or Register API operation, // which depends on the existence of a scalable target, this exception is thrown // if the scalable target with the specified service namespace, resource ID, @@ -171,13 +170,14 @@ func (c *ApplicationAutoScaling) DeregisterScalableTargetRequest(input *Deregist // this exception is thrown if the resource that is to be deleted or deregistered // cannot be found. // -// * ConcurrentUpdateException +// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" // Concurrent updates caused an exception, for example, if you request an update // to an Application Auto Scaling resource that already has a pending update. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTarget func (c *ApplicationAutoScaling) DeregisterScalableTarget(input *DeregisterScalableTargetInput) (*DeregisterScalableTargetOutput, error) { req, out := c.DeregisterScalableTargetRequest(input) err := req.Send() @@ -210,6 +210,7 @@ const opDescribeScalableTargets = "DescribeScalableTargets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargets func (c *ApplicationAutoScaling) DescribeScalableTargetsRequest(input *DescribeScalableTargetsInput) (req *request.Request, output *DescribeScalableTargetsOutput) { op := &request.Operation{ Name: opDescribeScalableTargets, @@ -227,22 +228,20 @@ func (c *ApplicationAutoScaling) DescribeScalableTargetsRequest(input *DescribeS input = &DescribeScalableTargetsInput{} } - req = c.newRequest(op, input, output) output = &DescribeScalableTargetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeScalableTargets API operation for Application Auto Scaling. // -// Provides descriptive information for scalable targets with a specified service +// Provides descriptive information about the scalable targets in the specified // namespace. // -// You can filter the results in a service namespace with the ResourceIds and -// ScalableDimension parameters. +// You can filter the results using the ResourceIds and ScalableDimension parameters. // -// To create a new scalable target or update an existing one, see RegisterScalableTarget. -// If you are no longer using a scalable target, you can deregister it with +// To create a scalable target or update an existing one, see RegisterScalableTarget. +// If you are no longer using a scalable target, you can deregister it using // DeregisterScalableTarget. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -253,20 +252,21 @@ func (c *ApplicationAutoScaling) DescribeScalableTargetsRequest(input *DescribeS // API operation DescribeScalableTargets for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // An exception was thrown for a validation issue. Review the available parameters // for the API request. // -// * InvalidNextTokenException +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" // The next token supplied was invalid. // -// * ConcurrentUpdateException +// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" // Concurrent updates caused an exception, for example, if you request an update // to an Application Auto Scaling resource that already has a pending update. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargets func (c *ApplicationAutoScaling) DescribeScalableTargets(input *DescribeScalableTargetsInput) (*DescribeScalableTargetsOutput, error) { req, out := c.DescribeScalableTargetsRequest(input) err := req.Send() @@ -324,6 +324,7 @@ const opDescribeScalingActivities = "DescribeScalingActivities" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivities func (c *ApplicationAutoScaling) DescribeScalingActivitiesRequest(input *DescribeScalingActivitiesInput) (req *request.Request, output *DescribeScalingActivitiesOutput) { op := &request.Operation{ Name: opDescribeScalingActivities, @@ -341,24 +342,22 @@ func (c *ApplicationAutoScaling) DescribeScalingActivitiesRequest(input *Describ input = &DescribeScalingActivitiesInput{} } - req = c.newRequest(op, input, output) output = &DescribeScalingActivitiesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeScalingActivities API operation for Application Auto Scaling. // -// Provides descriptive information for scaling activities with a specified -// service namespace for the previous six weeks. +// Provides descriptive information about the scaling activities in the specified +// namespace from the previous six weeks. // -// You can filter the results in a service namespace with the ResourceId and -// ScalableDimension parameters. +// You can filter the results using the ResourceId and ScalableDimension parameters. // // Scaling activities are triggered by CloudWatch alarms that are associated -// with scaling policies. To view the existing scaling policies for a service -// namespace, see DescribeScalingPolicies. To create a new scaling policy or -// update an existing one, see PutScalingPolicy. +// with scaling policies. To view the scaling policies for a service namespace, +// see DescribeScalingPolicies. To create a scaling policy or update an existing +// one, see PutScalingPolicy. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -368,20 +367,21 @@ func (c *ApplicationAutoScaling) DescribeScalingActivitiesRequest(input *Describ // API operation DescribeScalingActivities for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // An exception was thrown for a validation issue. Review the available parameters // for the API request. // -// * InvalidNextTokenException +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" // The next token supplied was invalid. // -// * ConcurrentUpdateException +// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" // Concurrent updates caused an exception, for example, if you request an update // to an Application Auto Scaling resource that already has a pending update. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivities func (c *ApplicationAutoScaling) DescribeScalingActivities(input *DescribeScalingActivitiesInput) (*DescribeScalingActivitiesOutput, error) { req, out := c.DescribeScalingActivitiesRequest(input) err := req.Send() @@ -439,6 +439,7 @@ const opDescribeScalingPolicies = "DescribeScalingPolicies" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingPolicies func (c *ApplicationAutoScaling) DescribeScalingPoliciesRequest(input *DescribeScalingPoliciesInput) (req *request.Request, output *DescribeScalingPoliciesOutput) { op := &request.Operation{ Name: opDescribeScalingPolicies, @@ -456,22 +457,21 @@ func (c *ApplicationAutoScaling) DescribeScalingPoliciesRequest(input *DescribeS input = &DescribeScalingPoliciesInput{} } - req = c.newRequest(op, input, output) output = &DescribeScalingPoliciesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeScalingPolicies API operation for Application Auto Scaling. // -// Provides descriptive information for scaling policies with a specified service +// Provides descriptive information about the scaling policies in the specified // namespace. // -// You can filter the results in a service namespace with the ResourceId, ScalableDimension, -// and PolicyNames parameters. +// You can filter the results using the ResourceId, ScalableDimension, and PolicyNames +// parameters. // -// To create a new scaling policy or update an existing one, see PutScalingPolicy. -// If you are no longer using a scaling policy, you can delete it with DeleteScalingPolicy. +// To create a scaling policy or update an existing one, see PutScalingPolicy. +// If you are no longer using a scaling policy, you can delete it using DeleteScalingPolicy. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -481,11 +481,11 @@ func (c *ApplicationAutoScaling) DescribeScalingPoliciesRequest(input *DescribeS // API operation DescribeScalingPolicies for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // An exception was thrown for a validation issue. Review the available parameters // for the API request. // -// * FailedResourceAccessException +// * ErrCodeFailedResourceAccessException "FailedResourceAccessException" // Failed access to resources caused an exception. This exception currently // only applies to DescribeScalingPolicies. It is thrown when Application Auto // Scaling is unable to retrieve the alarms associated with a scaling policy @@ -494,16 +494,17 @@ func (c *ApplicationAutoScaling) DescribeScalingPoliciesRequest(input *DescribeS // (http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html) // API operation on behalf of your account. // -// * InvalidNextTokenException +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" // The next token supplied was invalid. // -// * ConcurrentUpdateException +// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" // Concurrent updates caused an exception, for example, if you request an update // to an Application Auto Scaling resource that already has a pending update. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingPolicies func (c *ApplicationAutoScaling) DescribeScalingPolicies(input *DescribeScalingPoliciesInput) (*DescribeScalingPoliciesOutput, error) { req, out := c.DescribeScalingPoliciesRequest(input) err := req.Send() @@ -561,6 +562,7 @@ const opPutScalingPolicy = "PutScalingPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicy func (c *ApplicationAutoScaling) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req *request.Request, output *PutScalingPolicyOutput) { op := &request.Operation{ Name: opPutScalingPolicy, @@ -572,27 +574,26 @@ func (c *ApplicationAutoScaling) PutScalingPolicyRequest(input *PutScalingPolicy input = &PutScalingPolicyInput{} } - req = c.newRequest(op, input, output) output = &PutScalingPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // PutScalingPolicy API operation for Application Auto Scaling. // -// Creates or updates a policy for an existing Application Auto Scaling scalable -// target. Each scalable target is identified by service namespace, a resource -// ID, and a scalable dimension, and a scaling policy applies to a scalable -// target that is identified by those three attributes. You cannot create a -// scaling policy without first registering a scalable target with RegisterScalableTarget. +// Creates or updates a policy for an Application Auto Scaling scalable target. +// +// Each scalable target is identified by a service namespace, resource ID, and +// scalable dimension. A scaling policy applies to the scalable target identified +// by those three attributes. You cannot create a scaling policy without first +// registering a scalable target using RegisterScalableTarget. // -// To update an existing policy, use the existing policy name and set the parameters -// you want to change. Any existing parameter not changed in an update to an -// existing policy is not changed in this update request. +// To update a policy, specify its policy name and the parameters that you want +// to change. Any parameters that you don't specify are not changed by this +// update request. // -// You can view the existing scaling policies for a service namespace with -// DescribeScalingPolicies. If you are no longer using a scaling policy, you -// can delete it with DeleteScalingPolicy. +// You can view the scaling policies for a service namespace using DescribeScalingPolicies. +// If you are no longer using a scaling policy, you can delete it using DeleteScalingPolicy. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -602,16 +603,16 @@ func (c *ApplicationAutoScaling) PutScalingPolicyRequest(input *PutScalingPolicy // API operation PutScalingPolicy for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // An exception was thrown for a validation issue. Review the available parameters // for the API request. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // Your account exceeded a limit. This exception is thrown when a per-account // resource limit is exceeded. For more information, see Application Auto Scaling // Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_as-app). // -// * ObjectNotFoundException +// * ErrCodeObjectNotFoundException "ObjectNotFoundException" // The specified object could not be found. For any Put or Register API operation, // which depends on the existence of a scalable target, this exception is thrown // if the scalable target with the specified service namespace, resource ID, @@ -619,13 +620,14 @@ func (c *ApplicationAutoScaling) PutScalingPolicyRequest(input *PutScalingPolicy // this exception is thrown if the resource that is to be deleted or deregistered // cannot be found. // -// * ConcurrentUpdateException +// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" // Concurrent updates caused an exception, for example, if you request an update // to an Application Auto Scaling resource that already has a pending update. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicy func (c *ApplicationAutoScaling) PutScalingPolicy(input *PutScalingPolicyInput) (*PutScalingPolicyOutput, error) { req, out := c.PutScalingPolicyRequest(input) err := req.Send() @@ -658,6 +660,7 @@ const opRegisterScalableTarget = "RegisterScalableTarget" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTarget func (c *ApplicationAutoScaling) RegisterScalableTargetRequest(input *RegisterScalableTargetInput) (req *request.Request, output *RegisterScalableTargetOutput) { op := &request.Operation{ Name: opRegisterScalableTarget, @@ -669,24 +672,22 @@ func (c *ApplicationAutoScaling) RegisterScalableTargetRequest(input *RegisterSc input = &RegisterScalableTargetInput{} } - req = c.newRequest(op, input, output) output = &RegisterScalableTargetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // RegisterScalableTarget API operation for Application Auto Scaling. // // Registers or updates a scalable target. A scalable target is a resource that -// can be scaled out or in with Application Auto Scaling. After you have registered +// Application Auto Scaling can scale out or scale in. After you have registered // a scalable target, you can use this operation to update the minimum and maximum // values for your scalable dimension. // -// After you register a scalable target with Application Auto Scaling, you -// can create and apply scaling policies to it with PutScalingPolicy. You can -// view the existing scaling policies for a service namespace with DescribeScalableTargets. -// If you are no longer using a scalable target, you can deregister it with -// DeregisterScalableTarget. +// After you register a scalable target, you can create and apply scaling policies +// using PutScalingPolicy. You can view the scaling policies for a service namespace +// using DescribeScalableTargets. If you are no longer using a scalable target, +// you can deregister it using DeregisterScalableTarget. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -696,29 +697,31 @@ func (c *ApplicationAutoScaling) RegisterScalableTargetRequest(input *RegisterSc // API operation RegisterScalableTarget for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // An exception was thrown for a validation issue. Review the available parameters // for the API request. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // Your account exceeded a limit. This exception is thrown when a per-account // resource limit is exceeded. For more information, see Application Auto Scaling // Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_as-app). // -// * ConcurrentUpdateException +// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" // Concurrent updates caused an exception, for example, if you request an update // to an Application Auto Scaling resource that already has a pending update. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTarget func (c *ApplicationAutoScaling) RegisterScalableTarget(input *RegisterScalableTargetInput) (*RegisterScalableTargetOutput, error) { req, out := c.RegisterScalableTargetRequest(input) err := req.Send() return out, err } -// An object representing a CloudWatch alarm associated with a scaling policy. +// Represents a CloudWatch alarm associated with a scaling policy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/Alarm type Alarm struct { _ struct{} `type:"structure"` @@ -743,34 +746,58 @@ func (s Alarm) GoString() string { return s.String() } +// SetAlarmARN sets the AlarmARN field's value. +func (s *Alarm) SetAlarmARN(v string) *Alarm { + s.AlarmARN = &v + return s +} + +// SetAlarmName sets the AlarmName field's value. +func (s *Alarm) SetAlarmName(v string) *Alarm { + s.AlarmName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicyRequest type DeleteScalingPolicyInput struct { _ struct{} `type:"structure"` - // The name of the scaling policy to delete. + // The name of the scaling policy. // // PolicyName is a required field PolicyName *string `min:"1" type:"string" required:"true"` - // The resource type and unique identifier string for the resource associated - // with the scaling policy. For Amazon ECS services, the resource type is services, - // and the identifier is the cluster name and service name; for example, service/default/sample-webapp. - // For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, - // and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // The identifier of the resource associated with the scalable target. This + // string consists of the resource type and unique identifier. + // + // * ECS service - The resource type is service and the unique identifier + // is the cluster name and service name. Example: service/default/sample-webapp. + // + // * Spot fleet request - The resource type is spot-fleet-request and the + // unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // + // * EMR cluster - The resource type is instancegroup and the unique identifier + // is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0. // // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` - // The scalable dimension associated with the scaling policy. The scalable dimension - // contains the service namespace, resource type, and scaling property, such - // as ecs:service:DesiredCount for the desired task count of an Amazon ECS service, - // or ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon - // EC2 Spot fleet request. + // The scalable dimension. This string consists of the service namespace, resource + // type, and scaling property. + // + // * ecs:service:DesiredCount - The desired task count of an ECS service. + // + // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot + // fleet request. + // + // * elasticmapreduce:instancegroup:InstanceCount - The instance count of + // an EMR Instance Group. // // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - // The namespace for the AWS service that the scaling policy is associated with. - // For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + // The namespace of the AWS service. For more information, see AWS Service Namespaces + // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) // in the Amazon Web Services General Reference. // // ServiceNamespace is a required field @@ -815,6 +842,31 @@ func (s *DeleteScalingPolicyInput) Validate() error { return nil } +// SetPolicyName sets the PolicyName field's value. +func (s *DeleteScalingPolicyInput) SetPolicyName(v string) *DeleteScalingPolicyInput { + s.PolicyName = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *DeleteScalingPolicyInput) SetResourceId(v string) *DeleteScalingPolicyInput { + s.ResourceId = &v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *DeleteScalingPolicyInput) SetScalableDimension(v string) *DeleteScalingPolicyInput { + s.ScalableDimension = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *DeleteScalingPolicyInput) SetServiceNamespace(v string) *DeleteScalingPolicyInput { + s.ServiceNamespace = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicyResponse type DeleteScalingPolicyOutput struct { _ struct{} `type:"structure"` } @@ -829,29 +881,41 @@ func (s DeleteScalingPolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTargetRequest type DeregisterScalableTargetInput struct { _ struct{} `type:"structure"` - // The resource type and unique identifier string for the resource associated - // with the scalable target. For Amazon ECS services, the resource type is services, - // and the identifier is the cluster name and service name; for example, service/default/sample-webapp. - // For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, - // and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // The identifier of the resource associated with the scalable target. This + // string consists of the resource type and unique identifier. + // + // * ECS service - The resource type is service and the unique identifier + // is the cluster name and service name. Example: service/default/sample-webapp. + // + // * Spot fleet request - The resource type is spot-fleet-request and the + // unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // + // * EMR cluster - The resource type is instancegroup and the unique identifier + // is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0. // // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` - // The scalable dimension associated with the scalable target. The scalable - // dimension contains the service namespace, resource type, and scaling property, - // such as ecs:service:DesiredCount for the desired task count of an Amazon - // ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity - // of an Amazon EC2 Spot fleet request. + // The scalable dimension associated with the scalable target. This string consists + // of the service namespace, resource type, and scaling property. + // + // * ecs:service:DesiredCount - The desired task count of an ECS service. + // + // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot + // fleet request. + // + // * elasticmapreduce:instancegroup:InstanceCount - The instance count of + // an EMR Instance Group. // // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - // The namespace for the AWS service that the scalable target is associated - // with. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + // The namespace of the AWS service. For more information, see AWS Service Namespaces + // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) // in the Amazon Web Services General Reference. // // ServiceNamespace is a required field @@ -890,6 +954,25 @@ func (s *DeregisterScalableTargetInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *DeregisterScalableTargetInput) SetResourceId(v string) *DeregisterScalableTargetInput { + s.ResourceId = &v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *DeregisterScalableTargetInput) SetScalableDimension(v string) *DeregisterScalableTargetInput { + s.ScalableDimension = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *DeregisterScalableTargetInput) SetServiceNamespace(v string) *DeregisterScalableTargetInput { + s.ServiceNamespace = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTargetResponse type DeregisterScalableTargetOutput struct { _ struct{} `type:"structure"` } @@ -904,43 +987,51 @@ func (s DeregisterScalableTargetOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargetsRequest type DescribeScalableTargetsInput struct { _ struct{} `type:"structure"` - // The maximum number of scalable target results returned by DescribeScalableTargets - // in paginated output. When this parameter is used, DescribeScalableTargets - // returns up to MaxResults results in a single page along with a NextToken - // response element. The remaining results of the initial request can be seen - // by sending another DescribeScalableTargets request with the returned NextToken - // value. This value can be between 1 and 50. If this parameter is not used, - // then DescribeScalableTargets returns up to 50 results and a NextToken value, - // if applicable. + // The maximum number of scalable target results. This value can be between + // 1 and 50. The default value is 50. + // + // If this parameter is used, the operation returns up to MaxResults results + // at a time, along with a NextToken value. To get the next set of results, + // include the NextToken value in a subsequent call. If this parameter is not + // used, the operation returns up to 50 results and a NextToken value, if applicable. MaxResults *int64 `type:"integer"` - // The NextToken value returned from a previous paginated DescribeScalableTargets - // request. Pagination continues from the end of the previous results that returned - // the NextToken value. This value is null when there are no more results to - // return. + // The token for the next set of results. NextToken *string `type:"string"` - // The resource type and unique identifier string for the resource associated - // with the scalable target. For Amazon ECS services, the resource type is services, - // and the identifier is the cluster name and service name; for example, service/default/sample-webapp. - // For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, - // and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. - // If you specify a scalable dimension, you must also specify a resource ID. + // The identifier of the resource associated with the scalable target. This + // string consists of the resource type and unique identifier. If you specify + // a scalable dimension, you must also specify a resource ID. + // + // * ECS service - The resource type is service and the unique identifier + // is the cluster name and service name. Example: service/default/sample-webapp. + // + // * Spot fleet request - The resource type is spot-fleet-request and the + // unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // + // * EMR cluster - The resource type is instancegroup and the unique identifier + // is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0. ResourceIds []*string `type:"list"` - // The scalable dimension associated with the scalable target. The scalable - // dimension contains the service namespace, resource type, and scaling property, - // such as ecs:service:DesiredCount for the desired task count of an Amazon - // ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity - // of an Amazon EC2 Spot fleet request. If you specify a scalable dimension, - // you must also specify a resource ID. + // The scalable dimension associated with the scalable target. This string consists + // of the service namespace, resource type, and scaling property. If you specify + // a scalable dimension, you must also specify a resource ID. + // + // * ecs:service:DesiredCount - The desired task count of an ECS service. + // + // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot + // fleet request. + // + // * elasticmapreduce:instancegroup:InstanceCount - The instance count of + // an EMR Instance Group. ScalableDimension *string `type:"string" enum:"ScalableDimension"` - // The namespace for the AWS service that the scalable target is associated - // with. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + // The namespace of the AWS service. For more information, see AWS Service Namespaces + // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) // in the Amazon Web Services General Reference. // // ServiceNamespace is a required field @@ -970,13 +1061,42 @@ func (s *DescribeScalableTargetsInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeScalableTargetsInput) SetMaxResults(v int64) *DescribeScalableTargetsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeScalableTargetsInput) SetNextToken(v string) *DescribeScalableTargetsInput { + s.NextToken = &v + return s +} + +// SetResourceIds sets the ResourceIds field's value. +func (s *DescribeScalableTargetsInput) SetResourceIds(v []*string) *DescribeScalableTargetsInput { + s.ResourceIds = v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *DescribeScalableTargetsInput) SetScalableDimension(v string) *DescribeScalableTargetsInput { + s.ScalableDimension = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *DescribeScalableTargetsInput) SetServiceNamespace(v string) *DescribeScalableTargetsInput { + s.ServiceNamespace = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargetsResponse type DescribeScalableTargetsOutput struct { _ struct{} `type:"structure"` - // The NextToken value to include in a future DescribeScalableTargets request. - // When the results of a DescribeScalableTargets request exceed MaxResults, - // this value can be used to retrieve the next page of results. This value is - // null when there are no more results to return. + // The token required to get the next set of results. This value is null if + // there are no more results to return. NextToken *string `type:"string"` // The list of scalable targets that matches the request parameters. @@ -993,44 +1113,63 @@ func (s DescribeScalableTargetsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeScalableTargetsOutput) SetNextToken(v string) *DescribeScalableTargetsOutput { + s.NextToken = &v + return s +} + +// SetScalableTargets sets the ScalableTargets field's value. +func (s *DescribeScalableTargetsOutput) SetScalableTargets(v []*ScalableTarget) *DescribeScalableTargetsOutput { + s.ScalableTargets = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivitiesRequest type DescribeScalingActivitiesInput struct { _ struct{} `type:"structure"` - // The maximum number of scaling activity results returned by DescribeScalingActivities - // in paginated output. When this parameter is used, DescribeScalingActivities - // returns up to MaxResults results in a single page along with a NextToken - // response element. The remaining results of the initial request can be seen - // by sending another DescribeScalingActivities request with the returned NextToken - // value. This value can be between 1 and 50. If this parameter is not used, - // then DescribeScalingActivities returns up to 50 results and a NextToken value, - // if applicable. + // The maximum number of scalable target results. This value can be between + // 1 and 50. The default value is 50. + // + // If this parameter is used, the operation returns up to MaxResults results + // at a time, along with a NextToken value. To get the next set of results, + // include the NextToken value in a subsequent call. If this parameter is not + // used, the operation returns up to 50 results and a NextToken value, if applicable. MaxResults *int64 `type:"integer"` - // The NextToken value returned from a previous paginated DescribeScalingActivities - // request. Pagination continues from the end of the previous results that returned - // the NextToken value. This value is null when there are no more results to - // return. + // The token for the next set of results. NextToken *string `type:"string"` - // The resource type and unique identifier string for the resource associated - // with the scaling activity. For Amazon ECS services, the resource type is - // services, and the identifier is the cluster name and service name; for example, - // service/default/sample-webapp. For Amazon EC2 Spot fleet requests, the resource - // type is spot-fleet-request, and the identifier is the Spot fleet request - // ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. - // If you specify a scalable dimension, you must also specify a resource ID. + // The identifier of the resource associated with the scaling activity. This + // string consists of the resource type and unique identifier. If you specify + // a scalable dimension, you must also specify a resource ID. + // + // * ECS service - The resource type is service and the unique identifier + // is the cluster name and service name. Example: service/default/sample-webapp. + // + // * Spot fleet request - The resource type is spot-fleet-request and the + // unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // + // * EMR cluster - The resource type is instancegroup and the unique identifier + // is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0. ResourceId *string `min:"1" type:"string"` - // The scalable dimension associated with the scaling activity. The scalable - // dimension contains the service namespace, resource type, and scaling property, - // such as ecs:service:DesiredCount for the desired task count of an Amazon - // ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity - // of an Amazon EC2 Spot fleet request. If you specify a scalable dimension, - // you must also specify a resource ID. + // The scalable dimension. This string consists of the service namespace, resource + // type, and scaling property. If you specify a scalable dimension, you must + // also specify a resource ID. + // + // * ecs:service:DesiredCount - The desired task count of an ECS service. + // + // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot + // fleet request. + // + // * elasticmapreduce:instancegroup:InstanceCount - The instance count of + // an EMR Instance Group. ScalableDimension *string `type:"string" enum:"ScalableDimension"` - // The namespace for the AWS service that the scaling activity is associated - // with. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + // The namespace of the AWS service. For more information, see AWS Service Namespaces + // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) // in the Amazon Web Services General Reference. // // ServiceNamespace is a required field @@ -1063,13 +1202,42 @@ func (s *DescribeScalingActivitiesInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeScalingActivitiesInput) SetMaxResults(v int64) *DescribeScalingActivitiesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeScalingActivitiesInput) SetNextToken(v string) *DescribeScalingActivitiesInput { + s.NextToken = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *DescribeScalingActivitiesInput) SetResourceId(v string) *DescribeScalingActivitiesInput { + s.ResourceId = &v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *DescribeScalingActivitiesInput) SetScalableDimension(v string) *DescribeScalingActivitiesInput { + s.ScalableDimension = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *DescribeScalingActivitiesInput) SetServiceNamespace(v string) *DescribeScalingActivitiesInput { + s.ServiceNamespace = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivitiesResponse type DescribeScalingActivitiesOutput struct { _ struct{} `type:"structure"` - // The NextToken value to include in a future DescribeScalingActivities request. - // When the results of a DescribeScalingActivities request exceed MaxResults, - // this value can be used to retrieve the next page of results. This value is - // null when there are no more results to return. + // The token required to get the next set of results. This value is null if + // there are no more results to return. NextToken *string `type:"string"` // A list of scaling activity objects. @@ -1086,47 +1254,66 @@ func (s DescribeScalingActivitiesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeScalingActivitiesOutput) SetNextToken(v string) *DescribeScalingActivitiesOutput { + s.NextToken = &v + return s +} + +// SetScalingActivities sets the ScalingActivities field's value. +func (s *DescribeScalingActivitiesOutput) SetScalingActivities(v []*ScalingActivity) *DescribeScalingActivitiesOutput { + s.ScalingActivities = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingPoliciesRequest type DescribeScalingPoliciesInput struct { _ struct{} `type:"structure"` - // The maximum number of scaling policy results returned by DescribeScalingPolicies - // in paginated output. When this parameter is used, DescribeScalingPolicies - // returns up to MaxResults results in a single page along with a NextToken - // response element. The remaining results of the initial request can be seen - // by sending another DescribeScalingPolicies request with the returned NextToken - // value. This value can be between 1 and 50. If this parameter is not used, - // then DescribeScalingPolicies returns up to 50 results and a NextToken value, - // if applicable. + // The maximum number of scalable target results. This value can be between + // 1 and 50. The default value is 50. + // + // If this parameter is used, the operation returns up to MaxResults results + // at a time, along with a NextToken value. To get the next set of results, + // include the NextToken value in a subsequent call. If this parameter is not + // used, the operation returns up to 50 results and a NextToken value, if applicable. MaxResults *int64 `type:"integer"` - // The NextToken value returned from a previous paginated DescribeScalingPolicies - // request. Pagination continues from the end of the previous results that returned - // the NextToken value. This value is null when there are no more results to - // return. + // The token for the next set of results. NextToken *string `type:"string"` // The names of the scaling policies to describe. PolicyNames []*string `type:"list"` - // The unique resource identifier string of the scalable target that the scaling - // policy is associated with. For Amazon ECS services, the resource type is - // services, and the identifier is the cluster name and service name; for example, - // service/default/sample-webapp. For Amazon EC2 Spot fleet requests, the resource - // type is spot-fleet-request, and the identifier is the Spot fleet request - // ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. - // If you specify a scalable dimension, you must also specify a resource ID. + // The identifier of the resource associated with the scaling policy. This string + // consists of the resource type and unique identifier. If you specify a scalable + // dimension, you must also specify a resource ID. + // + // * ECS service - The resource type is service and the unique identifier + // is the cluster name and service name. Example: service/default/sample-webapp. + // + // * Spot fleet request - The resource type is spot-fleet-request and the + // unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // + // * EMR cluster - The resource type is instancegroup and the unique identifier + // is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0. ResourceId *string `min:"1" type:"string"` - // The scalable dimension of the scalable target that the scaling policy is - // associated with. The scalable dimension contains the service namespace, resource - // type, and scaling property, such as ecs:service:DesiredCount for the desired - // task count of an Amazon ECS service, or ec2:spot-fleet-request:TargetCapacity - // for the target capacity of an Amazon EC2 Spot fleet request. If you specify - // a scalable dimension, you must also specify a resource ID. + // The scalable dimension. This string consists of the service namespace, resource + // type, and scaling property. If you specify a scalable dimension, you must + // also specify a resource ID. + // + // * ecs:service:DesiredCount - The desired task count of an ECS service. + // + // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot + // fleet request. + // + // * elasticmapreduce:instancegroup:InstanceCount - The instance count of + // an EMR Instance Group. ScalableDimension *string `type:"string" enum:"ScalableDimension"` - // The AWS service namespace of the scalable target that the scaling policy - // is associated with. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + // The namespace of the AWS service. For more information, see AWS Service Namespaces + // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) // in the Amazon Web Services General Reference. // // ServiceNamespace is a required field @@ -1159,13 +1346,48 @@ func (s *DescribeScalingPoliciesInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeScalingPoliciesInput) SetMaxResults(v int64) *DescribeScalingPoliciesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeScalingPoliciesInput) SetNextToken(v string) *DescribeScalingPoliciesInput { + s.NextToken = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *DescribeScalingPoliciesInput) SetPolicyNames(v []*string) *DescribeScalingPoliciesInput { + s.PolicyNames = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *DescribeScalingPoliciesInput) SetResourceId(v string) *DescribeScalingPoliciesInput { + s.ResourceId = &v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *DescribeScalingPoliciesInput) SetScalableDimension(v string) *DescribeScalingPoliciesInput { + s.ScalableDimension = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *DescribeScalingPoliciesInput) SetServiceNamespace(v string) *DescribeScalingPoliciesInput { + s.ServiceNamespace = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingPoliciesResponse type DescribeScalingPoliciesOutput struct { _ struct{} `type:"structure"` - // The NextToken value to include in a future DescribeScalingPolicies request. - // When the results of a DescribeScalingPolicies request exceed MaxResults, - // this value can be used to retrieve the next page of results. This value is - // null when there are no more results to return. + // The token required to get the next set of results. This value is null if + // there are no more results to return. NextToken *string `type:"string"` // A list of scaling policy objects. @@ -1182,6 +1404,19 @@ func (s DescribeScalingPoliciesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeScalingPoliciesOutput) SetNextToken(v string) *DescribeScalingPoliciesOutput { + s.NextToken = &v + return s +} + +// SetScalingPolicies sets the ScalingPolicies field's value. +func (s *DescribeScalingPoliciesOutput) SetScalingPolicies(v []*ScalingPolicy) *DescribeScalingPoliciesOutput { + s.ScalingPolicies = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicyRequest type PutScalingPolicyInput struct { _ struct{} `type:"structure"` @@ -1191,37 +1426,48 @@ type PutScalingPolicyInput struct { PolicyName *string `min:"1" type:"string" required:"true"` // The policy type. If you are creating a new policy, this parameter is required. - // If you are updating an existing policy, this parameter is not required. + // If you are updating a policy, this parameter is not required. PolicyType *string `type:"string" enum:"PolicyType"` - // The unique resource identifier string for the scalable target that this scaling - // policy applies to. For Amazon ECS services, the resource type is services, - // and the identifier is the cluster name and service name; for example, service/default/sample-webapp. - // For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, - // and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // The identifier of the resource associated with the scaling policy. This string + // consists of the resource type and unique identifier. + // + // * ECS service - The resource type is service and the unique identifier + // is the cluster name and service name. Example: service/default/sample-webapp. + // + // * Spot fleet request - The resource type is spot-fleet-request and the + // unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // + // * EMR cluster - The resource type is instancegroup and the unique identifier + // is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0. // // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` - // The scalable dimension of the scalable target that this scaling policy applies - // to. The scalable dimension contains the service namespace, resource type, - // and scaling property, such as ecs:service:DesiredCount for the desired task - // count of an Amazon ECS service, or ec2:spot-fleet-request:TargetCapacity - // for the target capacity of an Amazon EC2 Spot fleet request. + // The scalable dimension. This string consists of the service namespace, resource + // type, and scaling property. + // + // * ecs:service:DesiredCount - The desired task count of an ECS service. + // + // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot + // fleet request. + // + // * elasticmapreduce:instancegroup:InstanceCount - The instance count of + // an EMR Instance Group. // // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - // The AWS service namespace of the scalable target that this scaling policy - // applies to. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + // The namespace of the AWS service. For more information, see AWS Service Namespaces + // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) // in the Amazon Web Services General Reference. // // ServiceNamespace is a required field ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"` // The configuration for the step scaling policy. If you are creating a new - // policy, this parameter is required. If you are updating an existing policy, - // this parameter is not required. For more information, see StepScalingPolicyConfiguration + // policy, this parameter is required. If you are updating a policy, this parameter + // is not required. For more information, see StepScalingPolicyConfiguration // and StepAdjustment. StepScalingPolicyConfiguration *StepScalingPolicyConfiguration `type:"structure"` } @@ -1269,6 +1515,43 @@ func (s *PutScalingPolicyInput) Validate() error { return nil } +// SetPolicyName sets the PolicyName field's value. +func (s *PutScalingPolicyInput) SetPolicyName(v string) *PutScalingPolicyInput { + s.PolicyName = &v + return s +} + +// SetPolicyType sets the PolicyType field's value. +func (s *PutScalingPolicyInput) SetPolicyType(v string) *PutScalingPolicyInput { + s.PolicyType = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *PutScalingPolicyInput) SetResourceId(v string) *PutScalingPolicyInput { + s.ResourceId = &v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *PutScalingPolicyInput) SetScalableDimension(v string) *PutScalingPolicyInput { + s.ScalableDimension = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *PutScalingPolicyInput) SetServiceNamespace(v string) *PutScalingPolicyInput { + s.ServiceNamespace = &v + return s +} + +// SetStepScalingPolicyConfiguration sets the StepScalingPolicyConfiguration field's value. +func (s *PutScalingPolicyInput) SetStepScalingPolicyConfiguration(v *StepScalingPolicyConfiguration) *PutScalingPolicyInput { + s.StepScalingPolicyConfiguration = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicyResponse type PutScalingPolicyOutput struct { _ struct{} `type:"structure"` @@ -1288,46 +1571,62 @@ func (s PutScalingPolicyOutput) GoString() string { return s.String() } +// SetPolicyARN sets the PolicyARN field's value. +func (s *PutScalingPolicyOutput) SetPolicyARN(v string) *PutScalingPolicyOutput { + s.PolicyARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTargetRequest type RegisterScalableTargetInput struct { _ struct{} `type:"structure"` - // The maximum value for this scalable target to scale out to in response to - // scaling activities. This parameter is required if you are registering a new - // scalable target, and it is optional if you are updating an existing one. + // The maximum value to scale to in response to a scale out event. This parameter + // is required if you are registering a scalable target and optional if you + // are updating one. MaxCapacity *int64 `type:"integer"` - // The minimum value for this scalable target to scale in to in response to - // scaling activities. This parameter is required if you are registering a new - // scalable target, and it is optional if you are updating an existing one. + // The minimum value to scale to in response to a scale in event. This parameter + // is required if you are registering a scalable target and optional if you + // are updating one. MinCapacity *int64 `type:"integer"` - // The resource type and unique identifier string for the resource to associate - // with the scalable target. For Amazon ECS services, the resource type is services, - // and the identifier is the cluster name and service name; for example, service/default/sample-webapp. - // For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, - // and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // The identifier of the resource associated with the scalable target. This + // string consists of the resource type and unique identifier. + // + // * ECS service - The resource type is service and the unique identifier + // is the cluster name and service name. Example: service/default/sample-webapp. + // + // * Spot fleet request - The resource type is spot-fleet-request and the + // unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // + // * EMR cluster - The resource type is instancegroup and the unique identifier + // is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0. // // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` - // The ARN of the IAM role that allows Application Auto Scaling to modify your - // scalable target on your behalf. This parameter is required if you are registering - // a new scalable target, and it is optional if you are updating an existing - // one. + // The ARN of an IAM role that allows Application Auto Scaling to modify the + // scalable target on your behalf. This parameter is required when you register + // a scalable target and optional when you update one. RoleARN *string `min:"1" type:"string"` - // The scalable dimension associated with the scalable target. The scalable - // dimension contains the service namespace, resource type, and scaling property, - // such as ecs:service:DesiredCount for the desired task count of an Amazon - // ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity - // of an Amazon EC2 Spot fleet request. + // The scalable dimension associated with the scalable target. This string consists + // of the service namespace, resource type, and scaling property. + // + // * ecs:service:DesiredCount - The desired task count of an ECS service. + // + // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot + // fleet request. + // + // * elasticmapreduce:instancegroup:InstanceCount - The instance count of + // an EMR Instance Group. // // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - // The namespace for the AWS service that the scalable target is associated - // with. For Amazon ECS services, the namespace value is ecs. For more information, - // see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + // The namespace of the AWS service. For more information, see AWS Service Namespaces + // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) // in the Amazon Web Services General Reference. // // ServiceNamespace is a required field @@ -1369,6 +1668,43 @@ func (s *RegisterScalableTargetInput) Validate() error { return nil } +// SetMaxCapacity sets the MaxCapacity field's value. +func (s *RegisterScalableTargetInput) SetMaxCapacity(v int64) *RegisterScalableTargetInput { + s.MaxCapacity = &v + return s +} + +// SetMinCapacity sets the MinCapacity field's value. +func (s *RegisterScalableTargetInput) SetMinCapacity(v int64) *RegisterScalableTargetInput { + s.MinCapacity = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *RegisterScalableTargetInput) SetResourceId(v string) *RegisterScalableTargetInput { + s.ResourceId = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *RegisterScalableTargetInput) SetRoleARN(v string) *RegisterScalableTargetInput { + s.RoleARN = &v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *RegisterScalableTargetInput) SetScalableDimension(v string) *RegisterScalableTargetInput { + s.ScalableDimension = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *RegisterScalableTargetInput) SetServiceNamespace(v string) *RegisterScalableTargetInput { + s.ServiceNamespace = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTargetResponse type RegisterScalableTargetOutput struct { _ struct{} `type:"structure"` } @@ -1383,7 +1719,8 @@ func (s RegisterScalableTargetOutput) GoString() string { return s.String() } -// An object representing a scalable target. +// Represents a scalable target. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ScalableTarget type ScalableTarget struct { _ struct{} `type:"structure"` @@ -1392,44 +1729,53 @@ type ScalableTarget struct { // CreationTime is a required field CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` - // The maximum value for this scalable target to scale out to in response to - // scaling activities. + // The maximum value to scale to in response to a scale out event. // // MaxCapacity is a required field MaxCapacity *int64 `type:"integer" required:"true"` - // The minimum value for this scalable target to scale in to in response to - // scaling activities. + // The minimum value to scale to in response to a scale in event. // // MinCapacity is a required field MinCapacity *int64 `type:"integer" required:"true"` - // The resource type and unique identifier string for the resource associated - // with the scalable target. For Amazon ECS services, the resource type is services, - // and the identifier is the cluster name and service name; for example, service/default/sample-webapp. - // For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, - // and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // The identifier of the resource associated with the scalable target. This + // string consists of the resource type and unique identifier. + // + // * ECS service - The resource type is service and the unique identifier + // is the cluster name and service name. Example: service/default/sample-webapp. + // + // * Spot fleet request - The resource type is spot-fleet-request and the + // unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // + // * EMR cluster - The resource type is instancegroup and the unique identifier + // is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0. // // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` - // The ARN of the IAM role that allows Application Auto Scaling to modify your + // The ARN of an IAM role that allows Application Auto Scaling to modify the // scalable target on your behalf. // // RoleARN is a required field RoleARN *string `min:"1" type:"string" required:"true"` - // The scalable dimension associated with the scalable target. The scalable - // dimension contains the service namespace, resource type, and scaling property, - // such as ecs:service:DesiredCount for the desired task count of an Amazon - // ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity - // of an Amazon EC2 Spot fleet request. + // The scalable dimension associated with the scalable target. This string consists + // of the service namespace, resource type, and scaling property. + // + // * ecs:service:DesiredCount - The desired task count of an ECS service. + // + // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot + // fleet request. + // + // * elasticmapreduce:instancegroup:InstanceCount - The instance count of + // an EMR Instance Group. // // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - // The namespace for the AWS service that the scalable target is associated - // with. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + // The namespace of the AWS service. For more information, see AWS Service Namespaces + // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) // in the Amazon Web Services General Reference. // // ServiceNamespace is a required field @@ -1446,11 +1792,54 @@ func (s ScalableTarget) GoString() string { return s.String() } -// An object representing a scaling activity. +// SetCreationTime sets the CreationTime field's value. +func (s *ScalableTarget) SetCreationTime(v time.Time) *ScalableTarget { + s.CreationTime = &v + return s +} + +// SetMaxCapacity sets the MaxCapacity field's value. +func (s *ScalableTarget) SetMaxCapacity(v int64) *ScalableTarget { + s.MaxCapacity = &v + return s +} + +// SetMinCapacity sets the MinCapacity field's value. +func (s *ScalableTarget) SetMinCapacity(v int64) *ScalableTarget { + s.MinCapacity = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *ScalableTarget) SetResourceId(v string) *ScalableTarget { + s.ResourceId = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *ScalableTarget) SetRoleARN(v string) *ScalableTarget { + s.RoleARN = &v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *ScalableTarget) SetScalableDimension(v string) *ScalableTarget { + s.ScalableDimension = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *ScalableTarget) SetServiceNamespace(v string) *ScalableTarget { + s.ServiceNamespace = &v + return s +} + +// Represents a scaling activity. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ScalingActivity type ScalingActivity struct { _ struct{} `type:"structure"` - // The unique identifier string for the scaling activity. + // The unique identifier of the scaling activity. // // ActivityId is a required field ActivityId *string `type:"string" required:"true"` @@ -1471,27 +1860,37 @@ type ScalingActivity struct { // The Unix timestamp for when the scaling activity ended. EndTime *time.Time `type:"timestamp" timestampFormat:"unix"` - // The resource type and unique identifier string for the resource associated - // with the scaling activity. For Amazon ECS services, the resource type is - // services, and the identifier is the cluster name and service name; for example, - // service/default/sample-webapp. For Amazon EC2 Spot fleet requests, the resource - // type is spot-fleet-request, and the identifier is the Spot fleet request - // ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // The identifier of the resource associated with the scaling activity. This + // string consists of the resource type and unique identifier. + // + // * ECS service - The resource type is service and the unique identifier + // is the cluster name and service name. Example: service/default/sample-webapp. + // + // * Spot fleet request - The resource type is spot-fleet-request and the + // unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // + // * EMR cluster - The resource type is instancegroup and the unique identifier + // is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0. // // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` - // The scalable dimension associated with the scaling activity. The scalable - // dimension contains the service namespace, resource type, and scaling property, - // such as ecs:service:DesiredCount for the desired task count of an Amazon - // ECS service, or ec2:spot-fleet-request:TargetCapacity for the target capacity - // of an Amazon EC2 Spot fleet request. + // The scalable dimension. This string consists of the service namespace, resource + // type, and scaling property. + // + // * ecs:service:DesiredCount - The desired task count of an ECS service. + // + // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot + // fleet request. + // + // * elasticmapreduce:instancegroup:InstanceCount - The instance count of + // an EMR Instance Group. // // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - // The namespace for the AWS service that the scaling activity is associated - // with. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + // The namespace of the AWS service. For more information, see AWS Service Namespaces + // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) // in the Amazon Web Services General Reference. // // ServiceNamespace is a required field @@ -1521,11 +1920,78 @@ func (s ScalingActivity) GoString() string { return s.String() } -// An object representing a scaling policy. +// SetActivityId sets the ActivityId field's value. +func (s *ScalingActivity) SetActivityId(v string) *ScalingActivity { + s.ActivityId = &v + return s +} + +// SetCause sets the Cause field's value. +func (s *ScalingActivity) SetCause(v string) *ScalingActivity { + s.Cause = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ScalingActivity) SetDescription(v string) *ScalingActivity { + s.Description = &v + return s +} + +// SetDetails sets the Details field's value. +func (s *ScalingActivity) SetDetails(v string) *ScalingActivity { + s.Details = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *ScalingActivity) SetEndTime(v time.Time) *ScalingActivity { + s.EndTime = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *ScalingActivity) SetResourceId(v string) *ScalingActivity { + s.ResourceId = &v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *ScalingActivity) SetScalableDimension(v string) *ScalingActivity { + s.ScalableDimension = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *ScalingActivity) SetServiceNamespace(v string) *ScalingActivity { + s.ServiceNamespace = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *ScalingActivity) SetStartTime(v time.Time) *ScalingActivity { + s.StartTime = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *ScalingActivity) SetStatusCode(v string) *ScalingActivity { + s.StatusCode = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ScalingActivity) SetStatusMessage(v string) *ScalingActivity { + s.StatusMessage = &v + return s +} + +// Represents a scaling policy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ScalingPolicy type ScalingPolicy struct { _ struct{} `type:"structure"` - // The CloudWatch alarms that are associated with the scaling policy. + // The CloudWatch alarms associated with the scaling policy. Alarms []*Alarm `type:"list"` // The Unix timestamp for when the scaling policy was created. @@ -1548,26 +2014,37 @@ type ScalingPolicy struct { // PolicyType is a required field PolicyType *string `type:"string" required:"true" enum:"PolicyType"` - // The resource type and unique identifier string for the resource associated - // with the scaling policy. For Amazon ECS services, the resource type is services, - // and the identifier is the cluster name and service name; for example, service/default/sample-webapp. - // For Amazon EC2 Spot fleet requests, the resource type is spot-fleet-request, - // and the identifier is the Spot fleet request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // The identifier of the resource associated with the scaling policy. This string + // consists of the resource type and unique identifier. + // + // * ECS service - The resource type is service and the unique identifier + // is the cluster name and service name. Example: service/default/sample-webapp. + // + // * Spot fleet request - The resource type is spot-fleet-request and the + // unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. + // + // * EMR cluster - The resource type is instancegroup and the unique identifier + // is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0. // // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` - // The scalable dimension associated with the scaling policy. The scalable dimension - // contains the service namespace, resource type, and scaling property, such - // as ecs:service:DesiredCount for the desired task count of an Amazon ECS service, - // or ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon - // EC2 Spot fleet request. + // The scalable dimension. This string consists of the service namespace, resource + // type, and scaling property. + // + // * ecs:service:DesiredCount - The desired task count of an ECS service. + // + // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot + // fleet request. + // + // * elasticmapreduce:instancegroup:InstanceCount - The instance count of + // an EMR Instance Group. // // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - // The namespace for the AWS service that the scaling policy is associated with. - // For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + // The namespace of the AWS service. For more information, see AWS Service Namespaces + // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) // in the Amazon Web Services General Reference. // // ServiceNamespace is a required field @@ -1587,35 +2064,89 @@ func (s ScalingPolicy) GoString() string { return s.String() } -// An object representing a step adjustment for a StepScalingPolicyConfiguration. -// Describes an adjustment based on the difference between the value of the -// aggregated CloudWatch metric and the breach threshold that you've defined -// for the alarm. +// SetAlarms sets the Alarms field's value. +func (s *ScalingPolicy) SetAlarms(v []*Alarm) *ScalingPolicy { + s.Alarms = v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *ScalingPolicy) SetCreationTime(v time.Time) *ScalingPolicy { + s.CreationTime = &v + return s +} + +// SetPolicyARN sets the PolicyARN field's value. +func (s *ScalingPolicy) SetPolicyARN(v string) *ScalingPolicy { + s.PolicyARN = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *ScalingPolicy) SetPolicyName(v string) *ScalingPolicy { + s.PolicyName = &v + return s +} + +// SetPolicyType sets the PolicyType field's value. +func (s *ScalingPolicy) SetPolicyType(v string) *ScalingPolicy { + s.PolicyType = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *ScalingPolicy) SetResourceId(v string) *ScalingPolicy { + s.ResourceId = &v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *ScalingPolicy) SetScalableDimension(v string) *ScalingPolicy { + s.ScalableDimension = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *ScalingPolicy) SetServiceNamespace(v string) *ScalingPolicy { + s.ServiceNamespace = &v + return s +} + +// SetStepScalingPolicyConfiguration sets the StepScalingPolicyConfiguration field's value. +func (s *ScalingPolicy) SetStepScalingPolicyConfiguration(v *StepScalingPolicyConfiguration) *ScalingPolicy { + s.StepScalingPolicyConfiguration = v + return s +} + +// Represents a step adjustment for a StepScalingPolicyConfiguration. Describes +// an adjustment based on the difference between the value of the aggregated +// CloudWatch metric and the breach threshold that you've defined for the alarm. // // For the following examples, suppose that you have an alarm with a breach // threshold of 50: // -// If you want the adjustment to be triggered when the metric is greater -// than or equal to 50 and less than 60, specify a lower bound of 0 and an upper -// bound of 10. +// * To trigger the adjustment when the metric is greater than or equal to +// 50 and less than 60, specify a lower bound of 0 and an upper bound of +// 10. // -// If you want the adjustment to be triggered when the metric is greater -// than 40 and less than or equal to 50, specify a lower bound of -10 and an -// upper bound of 0. +// * To trigger the adjustment when the metric is greater than 40 and less +// than or equal to 50, specify a lower bound of -10 and an upper bound of +// 0. // -// There are a few rules for the step adjustments for your step policy: +// There are a few rules for the step adjustments for your step policy: // -// The ranges of your step adjustments can't overlap or have a gap. +// * The ranges of your step adjustments can't overlap or have a gap. // -// At most one step adjustment can have a null lower bound. If one step adjustment -// has a negative lower bound, then there must be a step adjustment with a null -// lower bound. +// * At most one step adjustment can have a null lower bound. If one step +// adjustment has a negative lower bound, then there must be a step adjustment +// with a null lower bound. // -// At most one step adjustment can have a null upper bound. If one step adjustment -// has a positive upper bound, then there must be a step adjustment with a null -// upper bound. +// * At most one step adjustment can have a null upper bound. If one step +// adjustment has a positive upper bound, then there must be a step adjustment +// with a null upper bound. // -// The upper and lower bound can't be null in the same step adjustment. +// * The upper and lower bound can't be null in the same step adjustment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/StepAdjustment type StepAdjustment struct { _ struct{} `type:"structure"` @@ -1667,7 +2198,26 @@ func (s *StepAdjustment) Validate() error { return nil } -// An object representing a step scaling policy configuration. +// SetMetricIntervalLowerBound sets the MetricIntervalLowerBound field's value. +func (s *StepAdjustment) SetMetricIntervalLowerBound(v float64) *StepAdjustment { + s.MetricIntervalLowerBound = &v + return s +} + +// SetMetricIntervalUpperBound sets the MetricIntervalUpperBound field's value. +func (s *StepAdjustment) SetMetricIntervalUpperBound(v float64) *StepAdjustment { + s.MetricIntervalUpperBound = &v + return s +} + +// SetScalingAdjustment sets the ScalingAdjustment field's value. +func (s *StepAdjustment) SetScalingAdjustment(v int64) *StepAdjustment { + s.ScalingAdjustment = &v + return s +} + +// Represents a step scaling policy configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/StepScalingPolicyConfiguration type StepScalingPolicyConfiguration struct { _ struct{} `type:"structure"` @@ -1742,6 +2292,36 @@ func (s *StepScalingPolicyConfiguration) Validate() error { return nil } +// SetAdjustmentType sets the AdjustmentType field's value. +func (s *StepScalingPolicyConfiguration) SetAdjustmentType(v string) *StepScalingPolicyConfiguration { + s.AdjustmentType = &v + return s +} + +// SetCooldown sets the Cooldown field's value. +func (s *StepScalingPolicyConfiguration) SetCooldown(v int64) *StepScalingPolicyConfiguration { + s.Cooldown = &v + return s +} + +// SetMetricAggregationType sets the MetricAggregationType field's value. +func (s *StepScalingPolicyConfiguration) SetMetricAggregationType(v string) *StepScalingPolicyConfiguration { + s.MetricAggregationType = &v + return s +} + +// SetMinAdjustmentMagnitude sets the MinAdjustmentMagnitude field's value. +func (s *StepScalingPolicyConfiguration) SetMinAdjustmentMagnitude(v int64) *StepScalingPolicyConfiguration { + s.MinAdjustmentMagnitude = &v + return s +} + +// SetStepAdjustments sets the StepAdjustments field's value. +func (s *StepScalingPolicyConfiguration) SetStepAdjustments(v []*StepAdjustment) *StepScalingPolicyConfiguration { + s.StepAdjustments = v + return s +} + const ( // AdjustmentTypeChangeInCapacity is a AdjustmentType enum value AdjustmentTypeChangeInCapacity = "ChangeInCapacity" @@ -1775,6 +2355,9 @@ const ( // ScalableDimensionEc2SpotFleetRequestTargetCapacity is a ScalableDimension enum value ScalableDimensionEc2SpotFleetRequestTargetCapacity = "ec2:spot-fleet-request:TargetCapacity" + + // ScalableDimensionElasticmapreduceInstancegroupInstanceCount is a ScalableDimension enum value + ScalableDimensionElasticmapreduceInstancegroupInstanceCount = "elasticmapreduce:instancegroup:InstanceCount" ) const ( @@ -1801,6 +2384,9 @@ const ( // ServiceNamespaceEcs is a ServiceNamespace enum value ServiceNamespaceEcs = "ecs" + // ServiceNamespaceElasticmapreduce is a ServiceNamespace enum value + ServiceNamespaceElasticmapreduce = "elasticmapreduce" + // ServiceNamespaceEc2 is a ServiceNamespace enum value ServiceNamespaceEc2 = "ec2" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/applicationautoscalingiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/applicationautoscalingiface/interface.go index eb39954dd..126f7d45f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/applicationautoscalingiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/applicationautoscalingiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockApplicationAutoScalingClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/errors.go b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/errors.go new file mode 100644 index 000000000..019a4bfc4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/errors.go @@ -0,0 +1,63 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package applicationautoscaling + +const ( + + // ErrCodeConcurrentUpdateException for service response error code + // "ConcurrentUpdateException". + // + // Concurrent updates caused an exception, for example, if you request an update + // to an Application Auto Scaling resource that already has a pending update. + ErrCodeConcurrentUpdateException = "ConcurrentUpdateException" + + // ErrCodeFailedResourceAccessException for service response error code + // "FailedResourceAccessException". + // + // Failed access to resources caused an exception. This exception currently + // only applies to DescribeScalingPolicies. It is thrown when Application Auto + // Scaling is unable to retrieve the alarms associated with a scaling policy + // due to a client error, for example, if the role ARN specified for a scalable + // target does not have the proper permissions to call the CloudWatch DescribeAlarms + // (http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html) + // API operation on behalf of your account. + ErrCodeFailedResourceAccessException = "FailedResourceAccessException" + + // ErrCodeInternalServiceException for service response error code + // "InternalServiceException". + // + // The service encountered an internal error. + ErrCodeInternalServiceException = "InternalServiceException" + + // ErrCodeInvalidNextTokenException for service response error code + // "InvalidNextTokenException". + // + // The next token supplied was invalid. + ErrCodeInvalidNextTokenException = "InvalidNextTokenException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // Your account exceeded a limit. This exception is thrown when a per-account + // resource limit is exceeded. For more information, see Application Auto Scaling + // Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_as-app). + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeObjectNotFoundException for service response error code + // "ObjectNotFoundException". + // + // The specified object could not be found. For any Put or Register API operation, + // which depends on the existence of a scalable target, this exception is thrown + // if the scalable target with the specified service namespace, resource ID, + // and scalable dimension does not exist. For any Delete or Deregister API operation, + // this exception is thrown if the resource that is to be deleted or deregistered + // cannot be found. + ErrCodeObjectNotFoundException = "ObjectNotFoundException" + + // ErrCodeValidationException for service response error code + // "ValidationException". + // + // An exception was thrown for a validation issue. Review the available parameters + // for the API request. + ErrCodeValidationException = "ValidationException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/examples_test.go index 952643a68..d4b597e24 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleApplicationAutoScaling_DeleteScalingPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationautoscaling.New(sess) @@ -44,11 +40,7 @@ func ExampleApplicationAutoScaling_DeleteScalingPolicy() { } func ExampleApplicationAutoScaling_DeregisterScalableTarget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationautoscaling.New(sess) @@ -71,11 +63,7 @@ func ExampleApplicationAutoScaling_DeregisterScalableTarget() { } func ExampleApplicationAutoScaling_DescribeScalableTargets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationautoscaling.New(sess) @@ -103,11 +91,7 @@ func ExampleApplicationAutoScaling_DescribeScalableTargets() { } func ExampleApplicationAutoScaling_DescribeScalingActivities() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationautoscaling.New(sess) @@ -132,11 +116,7 @@ func ExampleApplicationAutoScaling_DescribeScalingActivities() { } func ExampleApplicationAutoScaling_DescribeScalingPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationautoscaling.New(sess) @@ -165,11 +145,7 @@ func ExampleApplicationAutoScaling_DescribeScalingPolicies() { } func ExampleApplicationAutoScaling_PutScalingPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationautoscaling.New(sess) @@ -208,11 +184,7 @@ func ExampleApplicationAutoScaling_PutScalingPolicy() { } func ExampleApplicationAutoScaling_RegisterScalableTarget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationautoscaling.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/service.go b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/service.go index 348b5aa7b..80a749856 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/service.go @@ -11,43 +11,36 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) -// Application Auto Scaling is a general purpose Auto Scaling service for supported -// elastic AWS resources. With Application Auto Scaling, you can automatically -// scale your AWS resources, with an experience similar to that of Auto Scaling. +// With Application Auto Scaling, you can automatically scale your AWS resources. +// The experience similar to that of Auto Scaling (https://aws.amazon.com/autoscaling/). +// You can use Application Auto Scaling to accomplish the following tasks: // -// Application Auto Scaling supports scaling the following AWS resources: +// * Define scaling policies to automatically scale your AWS resources // -// Amazon ECS services +// * Scale your resources in response to CloudWatch alarms // -// Amazon EC2 Spot fleet instances +// * View the history of your scaling events // -// You can use Application Auto Scaling to accomplish the following tasks: +// Application Auto Scaling can scale the following AWS resources: // -// Define scaling policies for automatically adjusting your AWS resources +// * Amazon ECS services. For more information, see Service Auto Scaling +// (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-auto-scaling.html) +// in the Amazon EC2 Container Service Developer Guide. // -// Scale your resources in response to CloudWatch alarms +// * Amazon EC2 Spot fleets. For more information, see Automatic Scaling +// for Spot Fleet (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/fleet-auto-scaling.html) +// in the Amazon EC2 User Guide. // -// View history of your scaling events +// * Amazon EMR clusters. For more information, see Using Automatic Scaling +// in Amazon EMR (http://docs.aws.amazon.com/ElasticMapReduce/latest/ManagementGuide/emr-automatic-scaling.html) +// in the Amazon EMR Management Guide. // -// Application Auto Scaling is available in the following regions: -// -// us-east-1 -// -// us-west-1 -// -// us-west-2 -// -// ap-southeast-1 -// -// ap-southeast-2 -// -// ap-northeast-1 -// -// eu-central-1 -// -// eu-west-1 -//The service client's operations are safe to be used concurrently. +// For a list of supported regions, see AWS Regions and Endpoints: Application +// Auto Scaling (http://docs.aws.amazon.com/general/latest/gr/rande.html#as-app_region) +// in the AWS General Reference. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06 type ApplicationAutoScaling struct { *client.Client } @@ -58,8 +51,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "autoscaling" +// Service information constants +const ( + ServiceName = "autoscaling" // Service endpoint prefix API calls made to. + EndpointsID = "application-autoscaling" // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the ApplicationAutoScaling client with a session. // If additional configuration is needed for the client instance use the optional @@ -72,18 +68,21 @@ const ServiceName = "autoscaling" // // Create a ApplicationAutoScaling client with additional configuration // svc := applicationautoscaling.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ApplicationAutoScaling { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ApplicationAutoScaling { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *ApplicationAutoScaling { + if len(signingName) == 0 { + signingName = "application-autoscaling" + } svc := &ApplicationAutoScaling{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, - SigningName: "application-autoscaling", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2016-02-06", diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/api.go index 3913375ac..c82426586 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/api.go @@ -11,6 +11,158 @@ import ( "github.com/aws/aws-sdk-go/aws/request" ) +const opAssociateConfigurationItemsToApplication = "AssociateConfigurationItemsToApplication" + +// AssociateConfigurationItemsToApplicationRequest generates a "aws/request.Request" representing the +// client's request for the AssociateConfigurationItemsToApplication operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AssociateConfigurationItemsToApplication for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AssociateConfigurationItemsToApplication method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AssociateConfigurationItemsToApplicationRequest method. +// req, resp := client.AssociateConfigurationItemsToApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication +func (c *ApplicationDiscoveryService) AssociateConfigurationItemsToApplicationRequest(input *AssociateConfigurationItemsToApplicationInput) (req *request.Request, output *AssociateConfigurationItemsToApplicationOutput) { + op := &request.Operation{ + Name: opAssociateConfigurationItemsToApplication, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AssociateConfigurationItemsToApplicationInput{} + } + + output = &AssociateConfigurationItemsToApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssociateConfigurationItemsToApplication API operation for AWS Application Discovery Service. +// +// Associates one or more configuration items with an application. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation AssociateConfigurationItemsToApplication for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters are not valid. Verify the parameters and try again. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// The value of one or more parameters are either invalid or out of range. Verify +// the parameter values and try again. +// +// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// The server experienced an internal error. Try again. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication +func (c *ApplicationDiscoveryService) AssociateConfigurationItemsToApplication(input *AssociateConfigurationItemsToApplicationInput) (*AssociateConfigurationItemsToApplicationOutput, error) { + req, out := c.AssociateConfigurationItemsToApplicationRequest(input) + err := req.Send() + return out, err +} + +const opCreateApplication = "CreateApplication" + +// CreateApplicationRequest generates a "aws/request.Request" representing the +// client's request for the CreateApplication operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateApplication for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateApplication method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateApplicationRequest method. +// req, resp := client.CreateApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication +func (c *ApplicationDiscoveryService) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput) { + op := &request.Operation{ + Name: opCreateApplication, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateApplicationInput{} + } + + output = &CreateApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateApplication API operation for AWS Application Discovery Service. +// +// Creates an application with the given name and description. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation CreateApplication for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters are not valid. Verify the parameters and try again. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// The value of one or more parameters are either invalid or out of range. Verify +// the parameter values and try again. +// +// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// The server experienced an internal error. Try again. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication +func (c *ApplicationDiscoveryService) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) { + req, out := c.CreateApplicationRequest(input) + err := req.Send() + return out, err +} + const opCreateTags = "CreateTags" // CreateTagsRequest generates a "aws/request.Request" representing the @@ -37,6 +189,7 @@ const opCreateTags = "CreateTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags func (c *ApplicationDiscoveryService) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, output *CreateTagsOutput) { op := &request.Operation{ Name: opCreateTags, @@ -48,9 +201,8 @@ func (c *ApplicationDiscoveryService) CreateTagsRequest(input *CreateTagsInput) input = &CreateTagsInput{} } - req = c.newRequest(op, input, output) output = &CreateTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -68,30 +220,108 @@ func (c *ApplicationDiscoveryService) CreateTagsRequest(input *CreateTagsInput) // API operation CreateTags for usage and error information. // // Returned Error Codes: -// * AuthorizationErrorException +// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified configuration ID was not located. Verify the configuration // ID and try again. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. Verify the parameters and try again. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ServerInternalErrorException +// * ErrCodeServerInternalErrorException "ServerInternalErrorException" // The server experienced an internal error. Try again. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags func (c *ApplicationDiscoveryService) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) { req, out := c.CreateTagsRequest(input) err := req.Send() return out, err } +const opDeleteApplications = "DeleteApplications" + +// DeleteApplicationsRequest generates a "aws/request.Request" representing the +// client's request for the DeleteApplications operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteApplications for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteApplications method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteApplicationsRequest method. +// req, resp := client.DeleteApplicationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications +func (c *ApplicationDiscoveryService) DeleteApplicationsRequest(input *DeleteApplicationsInput) (req *request.Request, output *DeleteApplicationsOutput) { + op := &request.Operation{ + Name: opDeleteApplications, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteApplicationsInput{} + } + + output = &DeleteApplicationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteApplications API operation for AWS Application Discovery Service. +// +// Deletes a list of applications and their associations with configuration +// items. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation DeleteApplications for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters are not valid. Verify the parameters and try again. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// The value of one or more parameters are either invalid or out of range. Verify +// the parameter values and try again. +// +// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// The server experienced an internal error. Try again. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications +func (c *ApplicationDiscoveryService) DeleteApplications(input *DeleteApplicationsInput) (*DeleteApplicationsOutput, error) { + req, out := c.DeleteApplicationsRequest(input) + err := req.Send() + return out, err +} + const opDeleteTags = "DeleteTags" // DeleteTagsRequest generates a "aws/request.Request" representing the @@ -118,6 +348,7 @@ const opDeleteTags = "DeleteTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags func (c *ApplicationDiscoveryService) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) { op := &request.Operation{ Name: opDeleteTags, @@ -129,9 +360,8 @@ func (c *ApplicationDiscoveryService) DeleteTagsRequest(input *DeleteTagsInput) input = &DeleteTagsInput{} } - req = c.newRequest(op, input, output) output = &DeleteTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -148,24 +378,25 @@ func (c *ApplicationDiscoveryService) DeleteTagsRequest(input *DeleteTagsInput) // API operation DeleteTags for usage and error information. // // Returned Error Codes: -// * AuthorizationErrorException +// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified configuration ID was not located. Verify the configuration // ID and try again. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. Verify the parameters and try again. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ServerInternalErrorException +// * ErrCodeServerInternalErrorException "ServerInternalErrorException" // The server experienced an internal error. Try again. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags func (c *ApplicationDiscoveryService) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) err := req.Send() @@ -198,6 +429,7 @@ const opDescribeAgents = "DescribeAgents" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents func (c *ApplicationDiscoveryService) DescribeAgentsRequest(input *DescribeAgentsInput) (req *request.Request, output *DescribeAgentsOutput) { op := &request.Operation{ Name: opDescribeAgents, @@ -209,16 +441,15 @@ func (c *ApplicationDiscoveryService) DescribeAgentsRequest(input *DescribeAgent input = &DescribeAgentsInput{} } - req = c.newRequest(op, input, output) output = &DescribeAgentsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeAgents API operation for AWS Application Discovery Service. // -// Lists AWS agents by ID or lists all agents associated with your user account -// if you did not specify an agent ID. +// Lists agents or the Connector by ID or lists all agents/Connectors associated +// with your user account if you did not specify an ID. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -228,20 +459,21 @@ func (c *ApplicationDiscoveryService) DescribeAgentsRequest(input *DescribeAgent // API operation DescribeAgents for usage and error information. // // Returned Error Codes: -// * AuthorizationErrorException +// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. Verify the parameters and try again. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ServerInternalErrorException +// * ErrCodeServerInternalErrorException "ServerInternalErrorException" // The server experienced an internal error. Try again. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents func (c *ApplicationDiscoveryService) DescribeAgents(input *DescribeAgentsInput) (*DescribeAgentsOutput, error) { req, out := c.DescribeAgentsRequest(input) err := req.Send() @@ -274,6 +506,7 @@ const opDescribeConfigurations = "DescribeConfigurations" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations func (c *ApplicationDiscoveryService) DescribeConfigurationsRequest(input *DescribeConfigurationsInput) (req *request.Request, output *DescribeConfigurationsOutput) { op := &request.Operation{ Name: opDescribeConfigurations, @@ -285,18 +518,21 @@ func (c *ApplicationDiscoveryService) DescribeConfigurationsRequest(input *Descr input = &DescribeConfigurationsInput{} } - req = c.newRequest(op, input, output) output = &DescribeConfigurationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeConfigurations API operation for AWS Application Discovery Service. // -// Retrieves a list of attributes for a specific configuration ID. For example, -// the output for a server configuration item includes a list of attributes -// about the server, including host name, operating system, number of network -// cards, etc. +// Retrieves attributes for a list of configuration item IDs. All of the supplied +// IDs must be for the same asset type (server, application, process, or connection). +// Output fields are specific to the asset type selected. For example, the output +// for a server configuration item includes a list of attributes about the server, +// such as host name, operating system, and number of network cards. +// +// For a complete list of outputs for each asset type, see Querying Discovered +// Configuration Items (http://docs.aws.amazon.com/application-discovery/latest/APIReference/querying-configuration-items.html#DescribeConfigurations). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -306,20 +542,21 @@ func (c *ApplicationDiscoveryService) DescribeConfigurationsRequest(input *Descr // API operation DescribeConfigurations for usage and error information. // // Returned Error Codes: -// * AuthorizationErrorException +// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. Verify the parameters and try again. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ServerInternalErrorException +// * ErrCodeServerInternalErrorException "ServerInternalErrorException" // The server experienced an internal error. Try again. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations func (c *ApplicationDiscoveryService) DescribeConfigurations(input *DescribeConfigurationsInput) (*DescribeConfigurationsOutput, error) { req, out := c.DescribeConfigurationsRequest(input) err := req.Send() @@ -352,6 +589,7 @@ const opDescribeExportConfigurations = "DescribeExportConfigurations" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations func (c *ApplicationDiscoveryService) DescribeExportConfigurationsRequest(input *DescribeExportConfigurationsInput) (req *request.Request, output *DescribeExportConfigurationsOutput) { op := &request.Operation{ Name: opDescribeExportConfigurations, @@ -363,9 +601,8 @@ func (c *ApplicationDiscoveryService) DescribeExportConfigurationsRequest(input input = &DescribeExportConfigurationsInput{} } - req = c.newRequest(op, input, output) output = &DescribeExportConfigurationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -382,24 +619,25 @@ func (c *ApplicationDiscoveryService) DescribeExportConfigurationsRequest(input // API operation DescribeExportConfigurations for usage and error information. // // Returned Error Codes: -// * AuthorizationErrorException +// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified configuration ID was not located. Verify the configuration // ID and try again. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. Verify the parameters and try again. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ServerInternalErrorException +// * ErrCodeServerInternalErrorException "ServerInternalErrorException" // The server experienced an internal error. Try again. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations func (c *ApplicationDiscoveryService) DescribeExportConfigurations(input *DescribeExportConfigurationsInput) (*DescribeExportConfigurationsOutput, error) { req, out := c.DescribeExportConfigurationsRequest(input) err := req.Send() @@ -432,6 +670,7 @@ const opDescribeTags = "DescribeTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags func (c *ApplicationDiscoveryService) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) { op := &request.Operation{ Name: opDescribeTags, @@ -443,9 +682,8 @@ func (c *ApplicationDiscoveryService) DescribeTagsRequest(input *DescribeTagsInp input = &DescribeTagsInput{} } - req = c.newRequest(op, input, output) output = &DescribeTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -462,272 +700,504 @@ func (c *ApplicationDiscoveryService) DescribeTagsRequest(input *DescribeTagsInp // API operation DescribeTags for usage and error information. // // Returned Error Codes: -// * AuthorizationErrorException +// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified configuration ID was not located. Verify the configuration // ID and try again. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. Verify the parameters and try again. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ServerInternalErrorException +// * ErrCodeServerInternalErrorException "ServerInternalErrorException" // The server experienced an internal error. Try again. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags func (c *ApplicationDiscoveryService) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() return out, err } -const opExportConfigurations = "ExportConfigurations" +const opDisassociateConfigurationItemsFromApplication = "DisassociateConfigurationItemsFromApplication" -// ExportConfigurationsRequest generates a "aws/request.Request" representing the -// client's request for the ExportConfigurations operation. The "output" return +// DisassociateConfigurationItemsFromApplicationRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateConfigurationItemsFromApplication operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ExportConfigurations for usage and error information. +// See DisassociateConfigurationItemsFromApplication for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ExportConfigurations method directly +// you just want the service response, call the DisassociateConfigurationItemsFromApplication method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ExportConfigurationsRequest method. -// req, resp := client.ExportConfigurationsRequest(params) +// // Example sending a request using the DisassociateConfigurationItemsFromApplicationRequest method. +// req, resp := client.DisassociateConfigurationItemsFromApplicationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *ApplicationDiscoveryService) ExportConfigurationsRequest(input *ExportConfigurationsInput) (req *request.Request, output *ExportConfigurationsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication +func (c *ApplicationDiscoveryService) DisassociateConfigurationItemsFromApplicationRequest(input *DisassociateConfigurationItemsFromApplicationInput) (req *request.Request, output *DisassociateConfigurationItemsFromApplicationOutput) { op := &request.Operation{ - Name: opExportConfigurations, + Name: opDisassociateConfigurationItemsFromApplication, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ExportConfigurationsInput{} + input = &DisassociateConfigurationItemsFromApplicationInput{} } + output = &DisassociateConfigurationItemsFromApplicationOutput{} req = c.newRequest(op, input, output) - output = &ExportConfigurationsOutput{} - req.Data = output return } -// ExportConfigurations API operation for AWS Application Discovery Service. +// DisassociateConfigurationItemsFromApplication API operation for AWS Application Discovery Service. // -// Exports all discovered configuration data to an Amazon S3 bucket or an application -// that enables you to view and evaluate the data. Data includes tags and tag -// associations, processes, connections, servers, and system performance. This -// API returns an export ID which you can query using the GetExportStatus API. -// The system imposes a limit of two configuration exports in six hours. +// Disassociates one or more configuration items from an application. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's -// API operation ExportConfigurations for usage and error information. +// API operation DisassociateConfigurationItemsFromApplication for usage and error information. // // Returned Error Codes: -// * AuthorizationErrorException +// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. Verify the parameters and try again. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ServerInternalErrorException +// * ErrCodeServerInternalErrorException "ServerInternalErrorException" // The server experienced an internal error. Try again. // -// * OperationNotPermittedException -// This operation is not permitted. -// -func (c *ApplicationDiscoveryService) ExportConfigurations(input *ExportConfigurationsInput) (*ExportConfigurationsOutput, error) { - req, out := c.ExportConfigurationsRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication +func (c *ApplicationDiscoveryService) DisassociateConfigurationItemsFromApplication(input *DisassociateConfigurationItemsFromApplicationInput) (*DisassociateConfigurationItemsFromApplicationOutput, error) { + req, out := c.DisassociateConfigurationItemsFromApplicationRequest(input) err := req.Send() return out, err } -const opListConfigurations = "ListConfigurations" +const opExportConfigurations = "ExportConfigurations" -// ListConfigurationsRequest generates a "aws/request.Request" representing the -// client's request for the ListConfigurations operation. The "output" return +// ExportConfigurationsRequest generates a "aws/request.Request" representing the +// client's request for the ExportConfigurations operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ListConfigurations for usage and error information. +// See ExportConfigurations for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ListConfigurations method directly +// you just want the service response, call the ExportConfigurations method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ListConfigurationsRequest method. -// req, resp := client.ListConfigurationsRequest(params) +// // Example sending a request using the ExportConfigurationsRequest method. +// req, resp := client.ExportConfigurationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *ApplicationDiscoveryService) ListConfigurationsRequest(input *ListConfigurationsInput) (req *request.Request, output *ListConfigurationsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations +func (c *ApplicationDiscoveryService) ExportConfigurationsRequest(input *ExportConfigurationsInput) (req *request.Request, output *ExportConfigurationsOutput) { op := &request.Operation{ - Name: opListConfigurations, + Name: opExportConfigurations, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ListConfigurationsInput{} + input = &ExportConfigurationsInput{} } + output = &ExportConfigurationsOutput{} req = c.newRequest(op, input, output) - output = &ListConfigurationsOutput{} - req.Data = output return } -// ListConfigurations API operation for AWS Application Discovery Service. +// ExportConfigurations API operation for AWS Application Discovery Service. // -// Retrieves a list of configurations items according to the criteria you specify -// in a filter. The filter criteria identify relationship requirements. +// Exports all discovered configuration data to an Amazon S3 bucket or an application +// that enables you to view and evaluate the data. Data includes tags and tag +// associations, processes, connections, servers, and system performance. This +// API returns an export ID which you can query using the DescribeExportConfigurations +// API. The system imposes a limit of two configuration exports in six hours. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's -// API operation ListConfigurations for usage and error information. +// API operation ExportConfigurations for usage and error information. // // Returned Error Codes: -// * AuthorizationErrorException +// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ResourceNotFoundException -// The specified configuration ID was not located. Verify the configuration -// ID and try again. -// -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. Verify the parameters and try again. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ServerInternalErrorException +// * ErrCodeServerInternalErrorException "ServerInternalErrorException" // The server experienced an internal error. Try again. // -func (c *ApplicationDiscoveryService) ListConfigurations(input *ListConfigurationsInput) (*ListConfigurationsOutput, error) { - req, out := c.ListConfigurationsRequest(input) +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not permitted. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations +func (c *ApplicationDiscoveryService) ExportConfigurations(input *ExportConfigurationsInput) (*ExportConfigurationsOutput, error) { + req, out := c.ExportConfigurationsRequest(input) err := req.Send() return out, err } -const opStartDataCollectionByAgentIds = "StartDataCollectionByAgentIds" +const opGetDiscoverySummary = "GetDiscoverySummary" -// StartDataCollectionByAgentIdsRequest generates a "aws/request.Request" representing the -// client's request for the StartDataCollectionByAgentIds operation. The "output" return +// GetDiscoverySummaryRequest generates a "aws/request.Request" representing the +// client's request for the GetDiscoverySummary operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See StartDataCollectionByAgentIds for usage and error information. +// See GetDiscoverySummary for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the StartDataCollectionByAgentIds method directly +// you just want the service response, call the GetDiscoverySummary method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the StartDataCollectionByAgentIdsRequest method. -// req, resp := client.StartDataCollectionByAgentIdsRequest(params) +// // Example sending a request using the GetDiscoverySummaryRequest method. +// req, resp := client.GetDiscoverySummaryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIdsRequest(input *StartDataCollectionByAgentIdsInput) (req *request.Request, output *StartDataCollectionByAgentIdsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary +func (c *ApplicationDiscoveryService) GetDiscoverySummaryRequest(input *GetDiscoverySummaryInput) (req *request.Request, output *GetDiscoverySummaryOutput) { op := &request.Operation{ - Name: opStartDataCollectionByAgentIds, + Name: opGetDiscoverySummary, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StartDataCollectionByAgentIdsInput{} + input = &GetDiscoverySummaryInput{} } + output = &GetDiscoverySummaryOutput{} req = c.newRequest(op, input, output) - output = &StartDataCollectionByAgentIdsOutput{} - req.Data = output return } -// StartDataCollectionByAgentIds API operation for AWS Application Discovery Service. +// GetDiscoverySummary API operation for AWS Application Discovery Service. // -// Instructs the specified agents to start collecting data. Agents can reside -// on host servers or virtual machines in your data center. +// Retrieves a short summary of discovered assets. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's -// API operation StartDataCollectionByAgentIds for usage and error information. +// API operation GetDiscoverySummary for usage and error information. // // Returned Error Codes: -// * AuthorizationErrorException +// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. Verify the parameters and try again. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ServerInternalErrorException +// * ErrCodeServerInternalErrorException "ServerInternalErrorException" // The server experienced an internal error. Try again. // -func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIds(input *StartDataCollectionByAgentIdsInput) (*StartDataCollectionByAgentIdsOutput, error) { - req, out := c.StartDataCollectionByAgentIdsRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary +func (c *ApplicationDiscoveryService) GetDiscoverySummary(input *GetDiscoverySummaryInput) (*GetDiscoverySummaryOutput, error) { + req, out := c.GetDiscoverySummaryRequest(input) err := req.Send() return out, err } -const opStopDataCollectionByAgentIds = "StopDataCollectionByAgentIds" +const opListConfigurations = "ListConfigurations" -// StopDataCollectionByAgentIdsRequest generates a "aws/request.Request" representing the -// client's request for the StopDataCollectionByAgentIds operation. The "output" return +// ListConfigurationsRequest generates a "aws/request.Request" representing the +// client's request for the ListConfigurations operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListConfigurations for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListConfigurations method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListConfigurationsRequest method. +// req, resp := client.ListConfigurationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations +func (c *ApplicationDiscoveryService) ListConfigurationsRequest(input *ListConfigurationsInput) (req *request.Request, output *ListConfigurationsOutput) { + op := &request.Operation{ + Name: opListConfigurations, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListConfigurationsInput{} + } + + output = &ListConfigurationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListConfigurations API operation for AWS Application Discovery Service. +// +// Retrieves a list of configuration items according to criteria you specify +// in a filter. The filter criteria identify relationship requirements. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation ListConfigurations for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified configuration ID was not located. Verify the configuration +// ID and try again. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters are not valid. Verify the parameters and try again. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// The value of one or more parameters are either invalid or out of range. Verify +// the parameter values and try again. +// +// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// The server experienced an internal error. Try again. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations +func (c *ApplicationDiscoveryService) ListConfigurations(input *ListConfigurationsInput) (*ListConfigurationsOutput, error) { + req, out := c.ListConfigurationsRequest(input) + err := req.Send() + return out, err +} + +const opListServerNeighbors = "ListServerNeighbors" + +// ListServerNeighborsRequest generates a "aws/request.Request" representing the +// client's request for the ListServerNeighbors operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListServerNeighbors for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListServerNeighbors method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListServerNeighborsRequest method. +// req, resp := client.ListServerNeighborsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors +func (c *ApplicationDiscoveryService) ListServerNeighborsRequest(input *ListServerNeighborsInput) (req *request.Request, output *ListServerNeighborsOutput) { + op := &request.Operation{ + Name: opListServerNeighbors, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListServerNeighborsInput{} + } + + output = &ListServerNeighborsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListServerNeighbors API operation for AWS Application Discovery Service. +// +// Retrieves a list of servers which are one network hop away from a specified +// server. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation ListServerNeighbors for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters are not valid. Verify the parameters and try again. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// The value of one or more parameters are either invalid or out of range. Verify +// the parameter values and try again. +// +// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// The server experienced an internal error. Try again. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors +func (c *ApplicationDiscoveryService) ListServerNeighbors(input *ListServerNeighborsInput) (*ListServerNeighborsOutput, error) { + req, out := c.ListServerNeighborsRequest(input) + err := req.Send() + return out, err +} + +const opStartDataCollectionByAgentIds = "StartDataCollectionByAgentIds" + +// StartDataCollectionByAgentIdsRequest generates a "aws/request.Request" representing the +// client's request for the StartDataCollectionByAgentIds operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See StartDataCollectionByAgentIds for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the StartDataCollectionByAgentIds method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the StartDataCollectionByAgentIdsRequest method. +// req, resp := client.StartDataCollectionByAgentIdsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds +func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIdsRequest(input *StartDataCollectionByAgentIdsInput) (req *request.Request, output *StartDataCollectionByAgentIdsOutput) { + op := &request.Operation{ + Name: opStartDataCollectionByAgentIds, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartDataCollectionByAgentIdsInput{} + } + + output = &StartDataCollectionByAgentIdsOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartDataCollectionByAgentIds API operation for AWS Application Discovery Service. +// +// Instructs the specified agents or Connectors to start collecting data. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation StartDataCollectionByAgentIds for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters are not valid. Verify the parameters and try again. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// The value of one or more parameters are either invalid or out of range. Verify +// the parameter values and try again. +// +// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// The server experienced an internal error. Try again. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds +func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIds(input *StartDataCollectionByAgentIdsInput) (*StartDataCollectionByAgentIdsOutput, error) { + req, out := c.StartDataCollectionByAgentIdsRequest(input) + err := req.Send() + return out, err +} + +const opStopDataCollectionByAgentIds = "StopDataCollectionByAgentIds" + +// StopDataCollectionByAgentIdsRequest generates a "aws/request.Request" representing the +// client's request for the StopDataCollectionByAgentIds operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // @@ -750,6 +1220,7 @@ const opStopDataCollectionByAgentIds = "StopDataCollectionByAgentIds" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIdsRequest(input *StopDataCollectionByAgentIdsInput) (req *request.Request, output *StopDataCollectionByAgentIdsOutput) { op := &request.Operation{ Name: opStopDataCollectionByAgentIds, @@ -761,15 +1232,14 @@ func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIdsRequest(input input = &StopDataCollectionByAgentIdsInput{} } - req = c.newRequest(op, input, output) output = &StopDataCollectionByAgentIdsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // StopDataCollectionByAgentIds API operation for AWS Application Discovery Service. // -// Instructs the specified agents to stop collecting data. +// Instructs the specified agents or Connectors to stop collecting data. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -779,40 +1249,118 @@ func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIdsRequest(input // API operation StopDataCollectionByAgentIds for usage and error information. // // Returned Error Codes: -// * AuthorizationErrorException +// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. Verify the parameters and try again. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ServerInternalErrorException +// * ErrCodeServerInternalErrorException "ServerInternalErrorException" // The server experienced an internal error. Try again. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIds(input *StopDataCollectionByAgentIdsInput) (*StopDataCollectionByAgentIdsOutput, error) { req, out := c.StopDataCollectionByAgentIdsRequest(input) err := req.Send() return out, err } -// Information about agents that were instructed to start collecting data. Information -// includes the agent ID, a description of the operation, and whether or not -// the agent configuration was updated. +const opUpdateApplication = "UpdateApplication" + +// UpdateApplicationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateApplication operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateApplication for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateApplication method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateApplicationRequest method. +// req, resp := client.UpdateApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication +func (c *ApplicationDiscoveryService) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput) { + op := &request.Operation{ + Name: opUpdateApplication, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateApplicationInput{} + } + + output = &UpdateApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateApplication API operation for AWS Application Discovery Service. +// +// Updates metadata about an application. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation UpdateApplication for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters are not valid. Verify the parameters and try again. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// The value of one or more parameters are either invalid or out of range. Verify +// the parameter values and try again. +// +// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// The server experienced an internal error. Try again. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication +func (c *ApplicationDiscoveryService) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) { + req, out := c.UpdateApplicationRequest(input) + err := req.Send() + return out, err +} + +// Information about agents or Connectors that were instructed to start collecting +// data. Information includes the agent/Connector ID, a description of the operation, +// and whether or not the agent/Connector configuration was updated. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AgentConfigurationStatus type AgentConfigurationStatus struct { _ struct{} `type:"structure"` - // The agent ID. + // The agent/Connector ID. AgentId *string `locationName:"agentId" type:"string"` // A description of the operation performed. Description *string `locationName:"description" type:"string"` // Information about the status of the StartDataCollection and StopDataCollection - // operations. The system has recorded the data collection operation. The agent + // operations. The system has recorded the data collection operation. The agent/Connector // receives this command the next time it polls for a new command. OperationSucceeded *bool `locationName:"operationSucceeded" type:"boolean"` } @@ -827,142 +1375,665 @@ func (s AgentConfigurationStatus) GoString() string { return s.String() } -// Information about agents associated with the user’s AWS account. Information -// includes agent IDs, IP addresses, media access control (MAC) addresses, agent -// health, hostname where the agent resides, and agent version for each agent. -type AgentInfo struct { - _ struct{} `type:"structure"` +// SetAgentId sets the AgentId field's value. +func (s *AgentConfigurationStatus) SetAgentId(v string) *AgentConfigurationStatus { + s.AgentId = &v + return s +} - // The agent ID. - AgentId *string `locationName:"agentId" type:"string"` +// SetDescription sets the Description field's value. +func (s *AgentConfigurationStatus) SetDescription(v string) *AgentConfigurationStatus { + s.Description = &v + return s +} + +// SetOperationSucceeded sets the OperationSucceeded field's value. +func (s *AgentConfigurationStatus) SetOperationSucceeded(v bool) *AgentConfigurationStatus { + s.OperationSucceeded = &v + return s +} - // Network details about the host where the agent resides. +// Information about agents or connectors associated with the user’s AWS account. +// Information includes agent or connector IDs, IP addresses, media access control +// (MAC) addresses, agent or connector health, hostname where the agent or connector +// resides, and agent version for each agent. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AgentInfo +type AgentInfo struct { + _ struct{} `type:"structure"` + + // The agent or connector ID. + AgentId *string `locationName:"agentId" type:"string"` + + // Network details about the host where the agent or connector resides. AgentNetworkInfoList []*AgentNetworkInfo `locationName:"agentNetworkInfoList" type:"list"` - // This data type is currently not valid. + // Type of agent. + AgentType *string `locationName:"agentType" type:"string"` + + // Status of the collection process for an agent or connector. + CollectionStatus *string `locationName:"collectionStatus" type:"string"` + + // The ID of the connector. ConnectorId *string `locationName:"connectorId" type:"string"` - // The health of the agent. + // The health of the agent or connector. Health *string `locationName:"health" type:"string" enum:"AgentStatus"` - // The name of the host where the agent resides. The host can be a server or - // virtual machine. + // The name of the host where the agent or connector resides. The host can be + // a server or virtual machine. HostName *string `locationName:"hostName" type:"string"` - // The agent version. - Version *string `locationName:"version" type:"string"` + // Time since agent or connector health was reported. + LastHealthPingTime *string `locationName:"lastHealthPingTime" type:"string"` + + // Agent's first registration time stamp in UTC. + RegisteredTime *string `locationName:"registeredTime" type:"string"` + + // The agent or connector version. + Version *string `locationName:"version" type:"string"` +} + +// String returns the string representation +func (s AgentInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AgentInfo) GoString() string { + return s.String() +} + +// SetAgentId sets the AgentId field's value. +func (s *AgentInfo) SetAgentId(v string) *AgentInfo { + s.AgentId = &v + return s +} + +// SetAgentNetworkInfoList sets the AgentNetworkInfoList field's value. +func (s *AgentInfo) SetAgentNetworkInfoList(v []*AgentNetworkInfo) *AgentInfo { + s.AgentNetworkInfoList = v + return s +} + +// SetAgentType sets the AgentType field's value. +func (s *AgentInfo) SetAgentType(v string) *AgentInfo { + s.AgentType = &v + return s +} + +// SetCollectionStatus sets the CollectionStatus field's value. +func (s *AgentInfo) SetCollectionStatus(v string) *AgentInfo { + s.CollectionStatus = &v + return s +} + +// SetConnectorId sets the ConnectorId field's value. +func (s *AgentInfo) SetConnectorId(v string) *AgentInfo { + s.ConnectorId = &v + return s +} + +// SetHealth sets the Health field's value. +func (s *AgentInfo) SetHealth(v string) *AgentInfo { + s.Health = &v + return s +} + +// SetHostName sets the HostName field's value. +func (s *AgentInfo) SetHostName(v string) *AgentInfo { + s.HostName = &v + return s +} + +// SetLastHealthPingTime sets the LastHealthPingTime field's value. +func (s *AgentInfo) SetLastHealthPingTime(v string) *AgentInfo { + s.LastHealthPingTime = &v + return s +} + +// SetRegisteredTime sets the RegisteredTime field's value. +func (s *AgentInfo) SetRegisteredTime(v string) *AgentInfo { + s.RegisteredTime = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *AgentInfo) SetVersion(v string) *AgentInfo { + s.Version = &v + return s +} + +// Network details about the host where the agent/Connector resides. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AgentNetworkInfo +type AgentNetworkInfo struct { + _ struct{} `type:"structure"` + + // The IP address for the host where the agent/Connector resides. + IpAddress *string `locationName:"ipAddress" type:"string"` + + // The MAC address for the host where the agent/Connector resides. + MacAddress *string `locationName:"macAddress" type:"string"` +} + +// String returns the string representation +func (s AgentNetworkInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AgentNetworkInfo) GoString() string { + return s.String() +} + +// SetIpAddress sets the IpAddress field's value. +func (s *AgentNetworkInfo) SetIpAddress(v string) *AgentNetworkInfo { + s.IpAddress = &v + return s +} + +// SetMacAddress sets the MacAddress field's value. +func (s *AgentNetworkInfo) SetMacAddress(v string) *AgentNetworkInfo { + s.MacAddress = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplicationRequest +type AssociateConfigurationItemsToApplicationInput struct { + _ struct{} `type:"structure"` + + // The configuration ID of an application with which items are to be associated. + // + // ApplicationConfigurationId is a required field + ApplicationConfigurationId *string `locationName:"applicationConfigurationId" type:"string" required:"true"` + + // The ID of each configuration item to be associated with an application. + // + // ConfigurationIds is a required field + ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"` +} + +// String returns the string representation +func (s AssociateConfigurationItemsToApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateConfigurationItemsToApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateConfigurationItemsToApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateConfigurationItemsToApplicationInput"} + if s.ApplicationConfigurationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationConfigurationId")) + } + if s.ConfigurationIds == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationIds")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationConfigurationId sets the ApplicationConfigurationId field's value. +func (s *AssociateConfigurationItemsToApplicationInput) SetApplicationConfigurationId(v string) *AssociateConfigurationItemsToApplicationInput { + s.ApplicationConfigurationId = &v + return s +} + +// SetConfigurationIds sets the ConfigurationIds field's value. +func (s *AssociateConfigurationItemsToApplicationInput) SetConfigurationIds(v []*string) *AssociateConfigurationItemsToApplicationInput { + s.ConfigurationIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplicationResponse +type AssociateConfigurationItemsToApplicationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateConfigurationItemsToApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateConfigurationItemsToApplicationOutput) GoString() string { + return s.String() +} + +// Tags for a configuration item. Tags are metadata that help you categorize +// IT assets. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ConfigurationTag +type ConfigurationTag struct { + _ struct{} `type:"structure"` + + // The configuration ID for the item you want to tag. You can specify a list + // of keys and values. + ConfigurationId *string `locationName:"configurationId" type:"string"` + + // A type of IT asset that you want to tag. + ConfigurationType *string `locationName:"configurationType" type:"string" enum:"ConfigurationItemType"` + + // A type of tag to filter on. For example, serverType. + Key *string `locationName:"key" type:"string"` + + // The time the configuration tag was created in Coordinated Universal Time + // (UTC). + TimeOfCreation *time.Time `locationName:"timeOfCreation" type:"timestamp" timestampFormat:"unix"` + + // A value to filter on. For example key = serverType and value = web server. + Value *string `locationName:"value" type:"string"` +} + +// String returns the string representation +func (s ConfigurationTag) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConfigurationTag) GoString() string { + return s.String() +} + +// SetConfigurationId sets the ConfigurationId field's value. +func (s *ConfigurationTag) SetConfigurationId(v string) *ConfigurationTag { + s.ConfigurationId = &v + return s +} + +// SetConfigurationType sets the ConfigurationType field's value. +func (s *ConfigurationTag) SetConfigurationType(v string) *ConfigurationTag { + s.ConfigurationType = &v + return s +} + +// SetKey sets the Key field's value. +func (s *ConfigurationTag) SetKey(v string) *ConfigurationTag { + s.Key = &v + return s +} + +// SetTimeOfCreation sets the TimeOfCreation field's value. +func (s *ConfigurationTag) SetTimeOfCreation(v time.Time) *ConfigurationTag { + s.TimeOfCreation = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ConfigurationTag) SetValue(v string) *ConfigurationTag { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplicationRequest +type CreateApplicationInput struct { + _ struct{} `type:"structure"` + + // Description of the application to be created. + Description *string `locationName:"description" type:"string"` + + // Name of the application to be created. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateApplicationInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *CreateApplicationInput) SetDescription(v string) *CreateApplicationInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateApplicationInput) SetName(v string) *CreateApplicationInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplicationResponse +type CreateApplicationOutput struct { + _ struct{} `type:"structure"` + + // Configuration ID of an application to be created. + ConfigurationId *string `locationName:"configurationId" type:"string"` +} + +// String returns the string representation +func (s CreateApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateApplicationOutput) GoString() string { + return s.String() +} + +// SetConfigurationId sets the ConfigurationId field's value. +func (s *CreateApplicationOutput) SetConfigurationId(v string) *CreateApplicationOutput { + s.ConfigurationId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTagsRequest +type CreateTagsInput struct { + _ struct{} `type:"structure"` + + // A list of configuration items that you want to tag. + // + // ConfigurationIds is a required field + ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"` + + // Tags that you want to associate with one or more configuration items. Specify + // the tags that you want to create in a key-value format. For example: + // + // {"key": "serverType", "value": "webServer"} + // + // Tags is a required field + Tags []*Tag `locationName:"tags" locationNameList:"item" type:"list" required:"true"` +} + +// String returns the string representation +func (s CreateTagsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateTagsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateTagsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateTagsInput"} + if s.ConfigurationIds == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationIds")) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationIds sets the ConfigurationIds field's value. +func (s *CreateTagsInput) SetConfigurationIds(v []*string) *CreateTagsInput { + s.ConfigurationIds = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateTagsInput) SetTags(v []*Tag) *CreateTagsInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTagsResponse +type CreateTagsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateTagsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateTagsOutput) GoString() string { + return s.String() +} + +// Inventory data for installed discovery agents. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CustomerAgentInfo +type CustomerAgentInfo struct { + _ struct{} `type:"structure"` + + // Number of active discovery agents. + // + // ActiveAgents is a required field + ActiveAgents *int64 `locationName:"activeAgents" type:"integer" required:"true"` + + // Number of blacklisted discovery agents. + // + // BlackListedAgents is a required field + BlackListedAgents *int64 `locationName:"blackListedAgents" type:"integer" required:"true"` + + // Number of healthy discovery agents + // + // HealthyAgents is a required field + HealthyAgents *int64 `locationName:"healthyAgents" type:"integer" required:"true"` + + // Number of discovery agents with status SHUTDOWN. + // + // ShutdownAgents is a required field + ShutdownAgents *int64 `locationName:"shutdownAgents" type:"integer" required:"true"` + + // Total number of discovery agents. + // + // TotalAgents is a required field + TotalAgents *int64 `locationName:"totalAgents" type:"integer" required:"true"` + + // Number of unhealthy discovery agents. + // + // UnhealthyAgents is a required field + UnhealthyAgents *int64 `locationName:"unhealthyAgents" type:"integer" required:"true"` + + // Number of unknown discovery agents. + // + // UnknownAgents is a required field + UnknownAgents *int64 `locationName:"unknownAgents" type:"integer" required:"true"` } // String returns the string representation -func (s AgentInfo) String() string { +func (s CustomerAgentInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AgentInfo) GoString() string { +func (s CustomerAgentInfo) GoString() string { return s.String() } -// Network details about the host where the agent resides. -type AgentNetworkInfo struct { - _ struct{} `type:"structure"` +// SetActiveAgents sets the ActiveAgents field's value. +func (s *CustomerAgentInfo) SetActiveAgents(v int64) *CustomerAgentInfo { + s.ActiveAgents = &v + return s +} - // The IP address for the host where the agent resides. - IpAddress *string `locationName:"ipAddress" type:"string"` +// SetBlackListedAgents sets the BlackListedAgents field's value. +func (s *CustomerAgentInfo) SetBlackListedAgents(v int64) *CustomerAgentInfo { + s.BlackListedAgents = &v + return s +} - // The MAC address for the host where the agent resides. - MacAddress *string `locationName:"macAddress" type:"string"` +// SetHealthyAgents sets the HealthyAgents field's value. +func (s *CustomerAgentInfo) SetHealthyAgents(v int64) *CustomerAgentInfo { + s.HealthyAgents = &v + return s } -// String returns the string representation -func (s AgentNetworkInfo) String() string { - return awsutil.Prettify(s) +// SetShutdownAgents sets the ShutdownAgents field's value. +func (s *CustomerAgentInfo) SetShutdownAgents(v int64) *CustomerAgentInfo { + s.ShutdownAgents = &v + return s } -// GoString returns the string representation -func (s AgentNetworkInfo) GoString() string { - return s.String() +// SetTotalAgents sets the TotalAgents field's value. +func (s *CustomerAgentInfo) SetTotalAgents(v int64) *CustomerAgentInfo { + s.TotalAgents = &v + return s } -// Tags for a configuration item. Tags are metadata that help you categorize -// IT assets. -type ConfigurationTag struct { +// SetUnhealthyAgents sets the UnhealthyAgents field's value. +func (s *CustomerAgentInfo) SetUnhealthyAgents(v int64) *CustomerAgentInfo { + s.UnhealthyAgents = &v + return s +} + +// SetUnknownAgents sets the UnknownAgents field's value. +func (s *CustomerAgentInfo) SetUnknownAgents(v int64) *CustomerAgentInfo { + s.UnknownAgents = &v + return s +} + +// Inventory data for installed discovery connectors. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CustomerConnectorInfo +type CustomerConnectorInfo struct { _ struct{} `type:"structure"` - // The configuration ID for the item you want to tag. You can specify a list - // of keys and values. - ConfigurationId *string `locationName:"configurationId" type:"string"` + // Number of active discovery connectors. + // + // ActiveConnectors is a required field + ActiveConnectors *int64 `locationName:"activeConnectors" type:"integer" required:"true"` - // A type of IT asset that you want to tag. - ConfigurationType *string `locationName:"configurationType" type:"string" enum:"ConfigurationItemType"` + // Number of blacklisted discovery connectors. + // + // BlackListedConnectors is a required field + BlackListedConnectors *int64 `locationName:"blackListedConnectors" type:"integer" required:"true"` - // A type of tag to filter on. For example, serverType. - Key *string `locationName:"key" type:"string"` + // Number of healthy discovery connectors. + // + // HealthyConnectors is a required field + HealthyConnectors *int64 `locationName:"healthyConnectors" type:"integer" required:"true"` - // The time the configuration tag was created in Coordinated Universal Time - // (UTC). - TimeOfCreation *time.Time `locationName:"timeOfCreation" type:"timestamp" timestampFormat:"unix"` + // Number of discovery connectors with status SHUTDOWN, + // + // ShutdownConnectors is a required field + ShutdownConnectors *int64 `locationName:"shutdownConnectors" type:"integer" required:"true"` - // A value to filter on. For example key = serverType and value = web server. - Value *string `locationName:"value" type:"string"` + // Total number of discovery connectors. + // + // TotalConnectors is a required field + TotalConnectors *int64 `locationName:"totalConnectors" type:"integer" required:"true"` + + // Number of unhealthy discovery connectors. + // + // UnhealthyConnectors is a required field + UnhealthyConnectors *int64 `locationName:"unhealthyConnectors" type:"integer" required:"true"` + + // Number of unknown discovery connectors. + // + // UnknownConnectors is a required field + UnknownConnectors *int64 `locationName:"unknownConnectors" type:"integer" required:"true"` } // String returns the string representation -func (s ConfigurationTag) String() string { +func (s CustomerConnectorInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ConfigurationTag) GoString() string { +func (s CustomerConnectorInfo) GoString() string { return s.String() } -type CreateTagsInput struct { +// SetActiveConnectors sets the ActiveConnectors field's value. +func (s *CustomerConnectorInfo) SetActiveConnectors(v int64) *CustomerConnectorInfo { + s.ActiveConnectors = &v + return s +} + +// SetBlackListedConnectors sets the BlackListedConnectors field's value. +func (s *CustomerConnectorInfo) SetBlackListedConnectors(v int64) *CustomerConnectorInfo { + s.BlackListedConnectors = &v + return s +} + +// SetHealthyConnectors sets the HealthyConnectors field's value. +func (s *CustomerConnectorInfo) SetHealthyConnectors(v int64) *CustomerConnectorInfo { + s.HealthyConnectors = &v + return s +} + +// SetShutdownConnectors sets the ShutdownConnectors field's value. +func (s *CustomerConnectorInfo) SetShutdownConnectors(v int64) *CustomerConnectorInfo { + s.ShutdownConnectors = &v + return s +} + +// SetTotalConnectors sets the TotalConnectors field's value. +func (s *CustomerConnectorInfo) SetTotalConnectors(v int64) *CustomerConnectorInfo { + s.TotalConnectors = &v + return s +} + +// SetUnhealthyConnectors sets the UnhealthyConnectors field's value. +func (s *CustomerConnectorInfo) SetUnhealthyConnectors(v int64) *CustomerConnectorInfo { + s.UnhealthyConnectors = &v + return s +} + +// SetUnknownConnectors sets the UnknownConnectors field's value. +func (s *CustomerConnectorInfo) SetUnknownConnectors(v int64) *CustomerConnectorInfo { + s.UnknownConnectors = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplicationsRequest +type DeleteApplicationsInput struct { _ struct{} `type:"structure"` - // A list of configuration items that you want to tag. + // Configuration ID of an application to be deleted. // // ConfigurationIds is a required field ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"` - - // Tags that you want to associate with one or more configuration items. Specify - // the tags that you want to create in a key-value format. For example: - // - // {"key": "serverType", "value": "webServer"} - // - // Tags is a required field - Tags []*Tag `locationName:"tags" locationNameList:"item" type:"list" required:"true"` } // String returns the string representation -func (s CreateTagsInput) String() string { +func (s DeleteApplicationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateTagsInput) GoString() string { +func (s DeleteApplicationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateTagsInput"} +func (s *DeleteApplicationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationsInput"} if s.ConfigurationIds == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationIds")) } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } if invalidParams.Len() > 0 { return invalidParams @@ -970,20 +2041,28 @@ func (s *CreateTagsInput) Validate() error { return nil } -type CreateTagsOutput struct { +// SetConfigurationIds sets the ConfigurationIds field's value. +func (s *DeleteApplicationsInput) SetConfigurationIds(v []*string) *DeleteApplicationsInput { + s.ConfigurationIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplicationsResponse +type DeleteApplicationsOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s CreateTagsOutput) String() string { +func (s DeleteApplicationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateTagsOutput) GoString() string { +func (s DeleteApplicationsOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTagsRequest type DeleteTagsInput struct { _ struct{} `type:"structure"` @@ -995,7 +2074,7 @@ type DeleteTagsInput struct { // Tags that you want to delete from one or more configuration items. Specify // the tags that you want to delete in a key-value format. For example: // - // {"key": "serverType", "value": "webServer"} + // {"key": "serverType", "value": "webServer"} Tags []*Tag `locationName:"tags" locationNameList:"item" type:"list"` } @@ -1032,6 +2111,19 @@ func (s *DeleteTagsInput) Validate() error { return nil } +// SetConfigurationIds sets the ConfigurationIds field's value. +func (s *DeleteTagsInput) SetConfigurationIds(v []*string) *DeleteTagsInput { + s.ConfigurationIds = v + return s +} + +// SetTags sets the Tags field's value. +func (s *DeleteTagsInput) SetTags(v []*Tag) *DeleteTagsInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTagsResponse type DeleteTagsOutput struct { _ struct{} `type:"structure"` } @@ -1046,18 +2138,33 @@ func (s DeleteTagsOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgentsRequest type DescribeAgentsInput struct { _ struct{} `type:"structure"` - // The agent IDs for which you want information. If you specify no IDs, the - // system returns information about all agents associated with your AWS user - // account. + // The agent or the Connector IDs for which you want information. If you specify + // no IDs, the system returns information about all agents/Connectors associated + // with your AWS user account. AgentIds []*string `locationName:"agentIds" type:"list"` - // The total number of agents to return. The maximum value is 100. + // You can filter the request using various logical operators and a key-value + // format. For example: + // + // {"key": "collectionStatus", "value": "STARTED"} + // + // For a complete list of filter options and guidance about using them with + // this action, see Managing AWS Application Discovery Service Agents and the + // AWS Application Discovery Connector (http://docs.aws.amazon.com/application-discovery/latest/APIReference/managing-agent.html). + Filters []*Filter `locationName:"filters" type:"list"` + + // The total number of agents/Connectors to return in a single page of output. + // The maximum value is 100. MaxResults *int64 `locationName:"maxResults" type:"integer"` - // A token to start the list. Use this token to get the next set of results. + // Token to retrieve the next set of results. For example, if you previously + // specified 100 IDs for DescribeAgentsRequest$agentIds but set DescribeAgentsRequest$maxResults + // to 10, you received a set of 10 results along with a token. Use that token + // in this query to get the next set of 10. NextToken *string `locationName:"nextToken" type:"string"` } @@ -1071,16 +2178,65 @@ func (s DescribeAgentsInput) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeAgentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeAgentsInput"} + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAgentIds sets the AgentIds field's value. +func (s *DescribeAgentsInput) SetAgentIds(v []*string) *DescribeAgentsInput { + s.AgentIds = v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeAgentsInput) SetFilters(v []*Filter) *DescribeAgentsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeAgentsInput) SetMaxResults(v int64) *DescribeAgentsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAgentsInput) SetNextToken(v string) *DescribeAgentsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgentsResponse type DescribeAgentsOutput struct { _ struct{} `type:"structure"` - // Lists AWS agents by ID or lists all agents associated with your user account - // if you did not specify an agent ID. The output includes agent IDs, IP addresses, - // media access control (MAC) addresses, agent health, host name where the agent - // resides, and the version number of each agent. + // Lists agents or the Connector by ID or lists all agents/Connectors associated + // with your user account if you did not specify an agent/Connector ID. The + // output includes agent/Connector IDs, IP addresses, media access control (MAC) + // addresses, agent/Connector health, host name where the agent/Connector resides, + // and the version number of each agent/Connector. AgentsInfo []*AgentInfo `locationName:"agentsInfo" type:"list"` - // The call returns a token. Use this token to get the next set of results. + // Token to retrieve the next set of results. For example, if you specified + // 100 IDs for DescribeAgentsRequest$agentIds but set DescribeAgentsRequest$maxResults + // to 10, you received a set of 10 results along with this token. Use this token + // in the next query to retrieve the next set of 10. NextToken *string `locationName:"nextToken" type:"string"` } @@ -1094,6 +2250,19 @@ func (s DescribeAgentsOutput) GoString() string { return s.String() } +// SetAgentsInfo sets the AgentsInfo field's value. +func (s *DescribeAgentsOutput) SetAgentsInfo(v []*AgentInfo) *DescribeAgentsOutput { + s.AgentsInfo = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAgentsOutput) SetNextToken(v string) *DescribeAgentsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurationsRequest type DescribeConfigurationsInput struct { _ struct{} `type:"structure"` @@ -1126,6 +2295,13 @@ func (s *DescribeConfigurationsInput) Validate() error { return nil } +// SetConfigurationIds sets the ConfigurationIds field's value. +func (s *DescribeConfigurationsInput) SetConfigurationIds(v []*string) *DescribeConfigurationsInput { + s.ConfigurationIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurationsResponse type DescribeConfigurationsOutput struct { _ struct{} `type:"structure"` @@ -1143,6 +2319,13 @@ func (s DescribeConfigurationsOutput) GoString() string { return s.String() } +// SetConfigurations sets the Configurations field's value. +func (s *DescribeConfigurationsOutput) SetConfigurations(v []map[string]*string) *DescribeConfigurationsOutput { + s.Configurations = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurationsRequest type DescribeExportConfigurationsInput struct { _ struct{} `type:"structure"` @@ -1153,7 +2336,7 @@ type DescribeExportConfigurationsInput struct { MaxResults *int64 `locationName:"maxResults" type:"integer"` // A token to get the next set of results. For example, if you specified 100 - // IDs for DescribeConfigurationsRequest$configurationIds but set DescribeExportConfigurationsRequest$maxResults + // IDs for DescribeExportConfigurationsRequest$exportIds but set DescribeExportConfigurationsRequest$maxResults // to 10, you will get results in a set of 10. Use the token in the query to // get the next set of 10. NextToken *string `locationName:"nextToken" type:"string"` @@ -1169,6 +2352,25 @@ func (s DescribeExportConfigurationsInput) GoString() string { return s.String() } +// SetExportIds sets the ExportIds field's value. +func (s *DescribeExportConfigurationsInput) SetExportIds(v []*string) *DescribeExportConfigurationsInput { + s.ExportIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeExportConfigurationsInput) SetMaxResults(v int64) *DescribeExportConfigurationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeExportConfigurationsInput) SetNextToken(v string) *DescribeExportConfigurationsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurationsResponse type DescribeExportConfigurationsOutput struct { _ struct{} `type:"structure"` @@ -1177,7 +2379,7 @@ type DescribeExportConfigurationsOutput struct { ExportsInfo []*ExportInfo `locationName:"exportsInfo" type:"list"` // A token to get the next set of results. For example, if you specified 100 - // IDs for DescribeConfigurationsRequest$configurationIds but set DescribeExportConfigurationsRequest$maxResults + // IDs for DescribeExportConfigurationsRequest$exportIds but set DescribeExportConfigurationsRequest$maxResults // to 10, you will get results in a set of 10. Use the token in the query to // get the next set of 10. NextToken *string `locationName:"nextToken" type:"string"` @@ -1193,15 +2395,33 @@ func (s DescribeExportConfigurationsOutput) GoString() string { return s.String() } +// SetExportsInfo sets the ExportsInfo field's value. +func (s *DescribeExportConfigurationsOutput) SetExportsInfo(v []*ExportInfo) *DescribeExportConfigurationsOutput { + s.ExportsInfo = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeExportConfigurationsOutput) SetNextToken(v string) *DescribeExportConfigurationsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTagsRequest type DescribeTagsInput struct { _ struct{} `type:"structure"` // You can filter the list using a key-value format. You can separate these // items by using logical operators. Allowed filters include tagKey, tagValue, // and configurationId. + // + // For a complete list of filter options and guidance about using them with + // this action, see Managing AWS Application Discovery Service Agents and the + // AWS Application Discovery Connector (http://docs.aws.amazon.com/application-discovery/latest/APIReference/managing-agents.html). Filters []*TagFilter `locationName:"filters" type:"list"` - // The total number of items to return. The maximum value is 100. + // The total number of items to return in a single page of output. The maximum + // value is 100. MaxResults *int64 `locationName:"maxResults" type:"integer"` // A token to start the list. Use this token to get the next set of results. @@ -1238,6 +2458,25 @@ func (s *DescribeTagsInput) Validate() error { return nil } +// SetFilters sets the Filters field's value. +func (s *DescribeTagsInput) SetFilters(v []*TagFilter) *DescribeTagsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeTagsInput) SetMaxResults(v int64) *DescribeTagsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeTagsInput) SetNextToken(v string) *DescribeTagsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTagsResponse type DescribeTagsOutput struct { _ struct{} `type:"structure"` @@ -1259,6 +2498,87 @@ func (s DescribeTagsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeTagsOutput) SetNextToken(v string) *DescribeTagsOutput { + s.NextToken = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *DescribeTagsOutput) SetTags(v []*ConfigurationTag) *DescribeTagsOutput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplicationRequest +type DisassociateConfigurationItemsFromApplicationInput struct { + _ struct{} `type:"structure"` + + // Configuration ID of an application from which each item will be disassociated. + // + // ApplicationConfigurationId is a required field + ApplicationConfigurationId *string `locationName:"applicationConfigurationId" type:"string" required:"true"` + + // Configuration ID of each item be be disassociated from an application. + // + // ConfigurationIds is a required field + ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"` +} + +// String returns the string representation +func (s DisassociateConfigurationItemsFromApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateConfigurationItemsFromApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateConfigurationItemsFromApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateConfigurationItemsFromApplicationInput"} + if s.ApplicationConfigurationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationConfigurationId")) + } + if s.ConfigurationIds == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationIds")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationConfigurationId sets the ApplicationConfigurationId field's value. +func (s *DisassociateConfigurationItemsFromApplicationInput) SetApplicationConfigurationId(v string) *DisassociateConfigurationItemsFromApplicationInput { + s.ApplicationConfigurationId = &v + return s +} + +// SetConfigurationIds sets the ConfigurationIds field's value. +func (s *DisassociateConfigurationItemsFromApplicationInput) SetConfigurationIds(v []*string) *DisassociateConfigurationItemsFromApplicationInput { + s.ConfigurationIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplicationResponse +type DisassociateConfigurationItemsFromApplicationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisassociateConfigurationItemsFromApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateConfigurationItemsFromApplicationOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurationsInput type ExportConfigurationsInput struct { _ struct{} `type:"structure"` } @@ -1273,6 +2593,7 @@ func (s ExportConfigurationsInput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurationsResponse type ExportConfigurationsOutput struct { _ struct{} `type:"structure"` @@ -1290,8 +2611,15 @@ func (s ExportConfigurationsOutput) GoString() string { return s.String() } +// SetExportId sets the ExportId field's value. +func (s *ExportConfigurationsOutput) SetExportId(v string) *ExportConfigurationsOutput { + s.ExportId = &v + return s +} + // Information regarding the export status of the discovered data. The value // is an array of objects. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportInfo type ExportInfo struct { _ struct{} `type:"structure"` @@ -1332,92 +2660,55 @@ func (s ExportInfo) GoString() string { return s.String() } +// SetConfigurationsDownloadUrl sets the ConfigurationsDownloadUrl field's value. +func (s *ExportInfo) SetConfigurationsDownloadUrl(v string) *ExportInfo { + s.ConfigurationsDownloadUrl = &v + return s +} + +// SetExportId sets the ExportId field's value. +func (s *ExportInfo) SetExportId(v string) *ExportInfo { + s.ExportId = &v + return s +} + +// SetExportRequestTime sets the ExportRequestTime field's value. +func (s *ExportInfo) SetExportRequestTime(v time.Time) *ExportInfo { + s.ExportRequestTime = &v + return s +} + +// SetExportStatus sets the ExportStatus field's value. +func (s *ExportInfo) SetExportStatus(v string) *ExportInfo { + s.ExportStatus = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ExportInfo) SetStatusMessage(v string) *ExportInfo { + s.StatusMessage = &v + return s +} + // A filter that can use conditional operators. +// +// for a complete list of filters and guidance for using them with the Application +// Discovery Service, see Querying Discovered Configuration Items (http://docs.aws.amazon.com/application-discovery/latest/APIReference/querying-configuration-items.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/Filter type Filter struct { _ struct{} `type:"structure"` // A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS, // CONTAINS, NOT_CONTAINS. If you specify multiple filters, the system utilizes - // all filters as though concatenated by AND. If you specify multiple values - // for a particular filter, the system differentiates the values using OR. Calling - // either DescribeConfigurations or ListConfigurations returns attributes of - // matching configuration items. - // - // Condition is a required field - Condition *string `locationName:"condition" type:"string" required:"true"` - - // The name of the filter. The following filter names are allowed for SERVER - // configuration items. - // - // Server server.hostName - // - // server.osName - // - // server.osVersion - // - // server.configurationid - // - // server.agentid - // - // The name of the filter. The following filter names are allowed for PROCESS - // configuration items. - // - // Process process.configurationid - // - // process.name - // - // process.commandLine - // - // server.configurationid - // - // server.hostName - // - // server.osName - // - // server.osVersion - // - // server.agentId - // - // The name of the filter. The following filter names are allowed for CONNECTION - // configuration items. - // - // Connection connection.sourceIp - // - // connection.destinationIp - // - // connection.destinationPort - // - // sourceProcess.configurationId - // - // sourceProcess.name - // - // sourceProcess.commandLine - // - // destinationProcess.configurationId - // - // destinationProcess.name - // - // destinationProcess.commandLine - // - // sourceServer.configurationId - // - // sourceServer.hostName - // - // sourceServer.osName - // - // sourceServer.osVersion - // - // sourceServer.agentId - // - // destinationServer.configurationId - // - // destinationServer.hostName - // - // destinationServer.osName - // - // destinationServer.osVersion + // all filters as though concatenated by AND. If you specify multiple values + // for a particular filter, the system differentiates the values using OR. Calling + // either DescribeConfigurations or ListConfigurations returns attributes of + // matching configuration items. // - // destinationServer.agentId + // Condition is a required field + Condition *string `locationName:"condition" type:"string" required:"true"` + + // The name of the filter. // // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` @@ -1459,6 +2750,109 @@ func (s *Filter) Validate() error { return nil } +// SetCondition sets the Condition field's value. +func (s *Filter) SetCondition(v string) *Filter { + s.Condition = &v + return s +} + +// SetName sets the Name field's value. +func (s *Filter) SetName(v string) *Filter { + s.Name = &v + return s +} + +// SetValues sets the Values field's value. +func (s *Filter) SetValues(v []*string) *Filter { + s.Values = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummaryRequest +type GetDiscoverySummaryInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s GetDiscoverySummaryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDiscoverySummaryInput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummaryResponse +type GetDiscoverySummaryOutput struct { + _ struct{} `type:"structure"` + + // Details about discovered agents, including agent status and health. + AgentSummary *CustomerAgentInfo `locationName:"agentSummary" type:"structure"` + + // Number of applications discovered. + Applications *int64 `locationName:"applications" type:"long"` + + // Details about discovered connectors, including connector status and health. + ConnectorSummary *CustomerConnectorInfo `locationName:"connectorSummary" type:"structure"` + + // Number of servers discovered. + Servers *int64 `locationName:"servers" type:"long"` + + // Number of servers mapped to applications. + ServersMappedToApplications *int64 `locationName:"serversMappedToApplications" type:"long"` + + // Number of servers mapped to tags. + ServersMappedtoTags *int64 `locationName:"serversMappedtoTags" type:"long"` +} + +// String returns the string representation +func (s GetDiscoverySummaryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDiscoverySummaryOutput) GoString() string { + return s.String() +} + +// SetAgentSummary sets the AgentSummary field's value. +func (s *GetDiscoverySummaryOutput) SetAgentSummary(v *CustomerAgentInfo) *GetDiscoverySummaryOutput { + s.AgentSummary = v + return s +} + +// SetApplications sets the Applications field's value. +func (s *GetDiscoverySummaryOutput) SetApplications(v int64) *GetDiscoverySummaryOutput { + s.Applications = &v + return s +} + +// SetConnectorSummary sets the ConnectorSummary field's value. +func (s *GetDiscoverySummaryOutput) SetConnectorSummary(v *CustomerConnectorInfo) *GetDiscoverySummaryOutput { + s.ConnectorSummary = v + return s +} + +// SetServers sets the Servers field's value. +func (s *GetDiscoverySummaryOutput) SetServers(v int64) *GetDiscoverySummaryOutput { + s.Servers = &v + return s +} + +// SetServersMappedToApplications sets the ServersMappedToApplications field's value. +func (s *GetDiscoverySummaryOutput) SetServersMappedToApplications(v int64) *GetDiscoverySummaryOutput { + s.ServersMappedToApplications = &v + return s +} + +// SetServersMappedtoTags sets the ServersMappedtoTags field's value. +func (s *GetDiscoverySummaryOutput) SetServersMappedtoTags(v int64) *GetDiscoverySummaryOutput { + s.ServersMappedtoTags = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurationsRequest type ListConfigurationsInput struct { _ struct{} `type:"structure"` @@ -1467,18 +2861,28 @@ type ListConfigurationsInput struct { // ConfigurationType is a required field ConfigurationType *string `locationName:"configurationType" type:"string" required:"true" enum:"ConfigurationItemType"` - // You can filter the list using a key-value format. For example: + // You can filter the request using various logical operators and a key-value + // format. For example: // - // {"key": "serverType", "value": "webServer"} + // {"key": "serverType", "value": "webServer"} // - // You can separate these items by using logical operators. + // For a complete list of filter options and guidance about using them with + // this action, see Querying Discovered Configuration Items (http://docs.aws.amazon.com/application-discovery/latest/APIReference/querying-configuration-items.html#ListConfigurations). Filters []*Filter `locationName:"filters" type:"list"` // The total number of items to return. The maximum value is 100. MaxResults *int64 `locationName:"maxResults" type:"integer"` - // A token to start the list. Use this token to get the next set of results. + // Token to retrieve the next set of results. For example, if a previous call + // to ListConfigurations returned 100 items, but you set ListConfigurationsRequest$maxResults + // to 10, you received a set of 10 results along with a token. Use that token + // in this query to get the next set of 10. NextToken *string `locationName:"nextToken" type:"string"` + + // Certain filter criteria return output that can be sorted in ascending or + // descending order. For a list of output characteristics for each filter, see + // Querying Discovered Configuration Items (http://docs.aws.amazon.com/application-discovery/latest/APIReference/querying-configuration-items.html#ListConfigurations). + OrderBy []*OrderByElement `locationName:"orderBy" type:"list"` } // String returns the string representation @@ -1507,6 +2911,16 @@ func (s *ListConfigurationsInput) Validate() error { } } } + if s.OrderBy != nil { + for i, v := range s.OrderBy { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OrderBy", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -1514,6 +2928,37 @@ func (s *ListConfigurationsInput) Validate() error { return nil } +// SetConfigurationType sets the ConfigurationType field's value. +func (s *ListConfigurationsInput) SetConfigurationType(v string) *ListConfigurationsInput { + s.ConfigurationType = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *ListConfigurationsInput) SetFilters(v []*Filter) *ListConfigurationsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListConfigurationsInput) SetMaxResults(v int64) *ListConfigurationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListConfigurationsInput) SetNextToken(v string) *ListConfigurationsInput { + s.NextToken = &v + return s +} + +// SetOrderBy sets the OrderBy field's value. +func (s *ListConfigurationsInput) SetOrderBy(v []*OrderByElement) *ListConfigurationsInput { + s.OrderBy = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurationsResponse type ListConfigurationsOutput struct { _ struct{} `type:"structure"` @@ -1521,7 +2966,10 @@ type ListConfigurationsOutput struct { // names, and attribute values. Configurations []map[string]*string `locationName:"configurations" type:"list"` - // The call returns a token. Use this token to get the next set of results. + // Token to retrieve the next set of results. For example, if your call to ListConfigurations + // returned 100 items, but you set ListConfigurationsRequest$maxResults to 10, + // you received a set of 10 results along with this token. Use this token in + // the next query to retrieve the next set of 10. NextToken *string `locationName:"nextToken" type:"string"` } @@ -1535,16 +2983,272 @@ func (s ListConfigurationsOutput) GoString() string { return s.String() } +// SetConfigurations sets the Configurations field's value. +func (s *ListConfigurationsOutput) SetConfigurations(v []map[string]*string) *ListConfigurationsOutput { + s.Configurations = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListConfigurationsOutput) SetNextToken(v string) *ListConfigurationsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighborsRequest +type ListServerNeighborsInput struct { + _ struct{} `type:"structure"` + + // Configuration ID of the server for which neighbors are being listed. + // + // ConfigurationId is a required field + ConfigurationId *string `locationName:"configurationId" type:"string" required:"true"` + + // Maximum number of results to return in a single page of output. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // List of configuration IDs to test for one-hop-away. + NeighborConfigurationIds []*string `locationName:"neighborConfigurationIds" type:"list"` + + // Token to retrieve the next set of results. For example, if you previously + // specified 100 IDs for ListServerNeighborsRequest$neighborConfigurationIds + // but set ListServerNeighborsRequest$maxResults to 10, you received a set of + // 10 results along with a token. Use that token in this query to get the next + // set of 10. + NextToken *string `locationName:"nextToken" type:"string"` + + // Flag to indicate if port and protocol information is needed as part of the + // response. + PortInformationNeeded *bool `locationName:"portInformationNeeded" type:"boolean"` +} + +// String returns the string representation +func (s ListServerNeighborsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListServerNeighborsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListServerNeighborsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListServerNeighborsInput"} + if s.ConfigurationId == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationId sets the ConfigurationId field's value. +func (s *ListServerNeighborsInput) SetConfigurationId(v string) *ListServerNeighborsInput { + s.ConfigurationId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListServerNeighborsInput) SetMaxResults(v int64) *ListServerNeighborsInput { + s.MaxResults = &v + return s +} + +// SetNeighborConfigurationIds sets the NeighborConfigurationIds field's value. +func (s *ListServerNeighborsInput) SetNeighborConfigurationIds(v []*string) *ListServerNeighborsInput { + s.NeighborConfigurationIds = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListServerNeighborsInput) SetNextToken(v string) *ListServerNeighborsInput { + s.NextToken = &v + return s +} + +// SetPortInformationNeeded sets the PortInformationNeeded field's value. +func (s *ListServerNeighborsInput) SetPortInformationNeeded(v bool) *ListServerNeighborsInput { + s.PortInformationNeeded = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighborsResponse +type ListServerNeighborsOutput struct { + _ struct{} `type:"structure"` + + // Count of distinct servers that are one hop away from the given server. + KnownDependencyCount *int64 `locationName:"knownDependencyCount" type:"long"` + + // List of distinct servers that are one hop away from the given server. + // + // Neighbors is a required field + Neighbors []*NeighborConnectionDetail `locationName:"neighbors" type:"list" required:"true"` + + // Token to retrieve the next set of results. For example, if you specified + // 100 IDs for ListServerNeighborsRequest$neighborConfigurationIds but set ListServerNeighborsRequest$maxResults + // to 10, you received a set of 10 results along with this token. Use this token + // in the next query to retrieve the next set of 10. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListServerNeighborsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListServerNeighborsOutput) GoString() string { + return s.String() +} + +// SetKnownDependencyCount sets the KnownDependencyCount field's value. +func (s *ListServerNeighborsOutput) SetKnownDependencyCount(v int64) *ListServerNeighborsOutput { + s.KnownDependencyCount = &v + return s +} + +// SetNeighbors sets the Neighbors field's value. +func (s *ListServerNeighborsOutput) SetNeighbors(v []*NeighborConnectionDetail) *ListServerNeighborsOutput { + s.Neighbors = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListServerNeighborsOutput) SetNextToken(v string) *ListServerNeighborsOutput { + s.NextToken = &v + return s +} + +// Details about neighboring servers. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/NeighborConnectionDetail +type NeighborConnectionDetail struct { + _ struct{} `type:"structure"` + + // Number of open network connections with the neighboring server. + // + // ConnectionsCount is a required field + ConnectionsCount *int64 `locationName:"connectionsCount" type:"long" required:"true"` + + // Destination network port for the connection. + DestinationPort *int64 `locationName:"destinationPort" type:"integer"` + + // ID of the server that accepted the networker connection. + // + // DestinationServerId is a required field + DestinationServerId *string `locationName:"destinationServerId" type:"string" required:"true"` + + // ID of server that opened the network connection. + // + // SourceServerId is a required field + SourceServerId *string `locationName:"sourceServerId" type:"string" required:"true"` + + // Network protocol used for the connection. + TransportProtocol *string `locationName:"transportProtocol" type:"string"` +} + +// String returns the string representation +func (s NeighborConnectionDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NeighborConnectionDetail) GoString() string { + return s.String() +} + +// SetConnectionsCount sets the ConnectionsCount field's value. +func (s *NeighborConnectionDetail) SetConnectionsCount(v int64) *NeighborConnectionDetail { + s.ConnectionsCount = &v + return s +} + +// SetDestinationPort sets the DestinationPort field's value. +func (s *NeighborConnectionDetail) SetDestinationPort(v int64) *NeighborConnectionDetail { + s.DestinationPort = &v + return s +} + +// SetDestinationServerId sets the DestinationServerId field's value. +func (s *NeighborConnectionDetail) SetDestinationServerId(v string) *NeighborConnectionDetail { + s.DestinationServerId = &v + return s +} + +// SetSourceServerId sets the SourceServerId field's value. +func (s *NeighborConnectionDetail) SetSourceServerId(v string) *NeighborConnectionDetail { + s.SourceServerId = &v + return s +} + +// SetTransportProtocol sets the TransportProtocol field's value. +func (s *NeighborConnectionDetail) SetTransportProtocol(v string) *NeighborConnectionDetail { + s.TransportProtocol = &v + return s +} + +// Field and direction for ordered output. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/OrderByElement +type OrderByElement struct { + _ struct{} `type:"structure"` + + // Field to order on. + // + // FieldName is a required field + FieldName *string `locationName:"fieldName" type:"string" required:"true"` + + // Ordering direction. + SortOrder *string `locationName:"sortOrder" type:"string" enum:"orderString"` +} + +// String returns the string representation +func (s OrderByElement) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OrderByElement) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *OrderByElement) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OrderByElement"} + if s.FieldName == nil { + invalidParams.Add(request.NewErrParamRequired("FieldName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFieldName sets the FieldName field's value. +func (s *OrderByElement) SetFieldName(v string) *OrderByElement { + s.FieldName = &v + return s +} + +// SetSortOrder sets the SortOrder field's value. +func (s *OrderByElement) SetSortOrder(v string) *OrderByElement { + s.SortOrder = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIdsRequest type StartDataCollectionByAgentIdsInput struct { _ struct{} `type:"structure"` - // The IDs of the agents that you want to start collecting data. If you send - // a request to an AWS agent ID that you do not have permission to contact, - // according to your AWS account, the service does not throw an exception. Instead, - // it returns the error in the Description field. If you send a request to multiple - // agents and you do not have permission to contact some of those agents, the - // system does not throw an exception. Instead, the system shows Failed in the - // Description field. + // The IDs of the agents or Connectors that you want to start collecting data. + // If you send a request to an agent/Connector ID that you do not have permission + // to contact, according to your AWS account, the service does not throw an + // exception. Instead, it returns the error in the Description field. If you + // send a request to multiple agents/Connectors and you do not have permission + // to contact some of those agents/Connectors, the system does not throw an + // exception. Instead, the system shows Failed in the Description field. // // AgentIds is a required field AgentIds []*string `locationName:"agentIds" type:"list" required:"true"` @@ -1573,12 +3277,19 @@ func (s *StartDataCollectionByAgentIdsInput) Validate() error { return nil } +// SetAgentIds sets the AgentIds field's value. +func (s *StartDataCollectionByAgentIdsInput) SetAgentIds(v []*string) *StartDataCollectionByAgentIdsInput { + s.AgentIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIdsResponse type StartDataCollectionByAgentIdsOutput struct { _ struct{} `type:"structure"` - // Information about agents that were instructed to start collecting data. Information - // includes the agent ID, a description of the operation performed, and whether - // or not the agent configuration was updated. + // Information about agents or the Connector that were instructed to start collecting + // data. Information includes the agent/Connector ID, a description of the operation + // performed, and whether or not the agent/Connector configuration was updated. AgentsConfigurationStatus []*AgentConfigurationStatus `locationName:"agentsConfigurationStatus" type:"list"` } @@ -1592,10 +3303,17 @@ func (s StartDataCollectionByAgentIdsOutput) GoString() string { return s.String() } +// SetAgentsConfigurationStatus sets the AgentsConfigurationStatus field's value. +func (s *StartDataCollectionByAgentIdsOutput) SetAgentsConfigurationStatus(v []*AgentConfigurationStatus) *StartDataCollectionByAgentIdsOutput { + s.AgentsConfigurationStatus = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIdsRequest type StopDataCollectionByAgentIdsInput struct { _ struct{} `type:"structure"` - // The IDs of the agents that you want to stop collecting data. + // The IDs of the agents or Connectors that you want to stop collecting data. // // AgentIds is a required field AgentIds []*string `locationName:"agentIds" type:"list" required:"true"` @@ -1624,12 +3342,19 @@ func (s *StopDataCollectionByAgentIdsInput) Validate() error { return nil } +// SetAgentIds sets the AgentIds field's value. +func (s *StopDataCollectionByAgentIdsInput) SetAgentIds(v []*string) *StopDataCollectionByAgentIdsInput { + s.AgentIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIdsResponse type StopDataCollectionByAgentIdsOutput struct { _ struct{} `type:"structure"` - // Information about agents that were instructed to stop collecting data. Information - // includes the agent ID, a description of the operation performed, and whether - // or not the agent configuration was updated. + // Information about agents or the Connector that were instructed to stop collecting + // data. Information includes the agent/Connector ID, a description of the operation + // performed, and whether or not the agent/Connector configuration was updated. AgentsConfigurationStatus []*AgentConfigurationStatus `locationName:"agentsConfigurationStatus" type:"list"` } @@ -1643,7 +3368,14 @@ func (s StopDataCollectionByAgentIdsOutput) GoString() string { return s.String() } +// SetAgentsConfigurationStatus sets the AgentsConfigurationStatus field's value. +func (s *StopDataCollectionByAgentIdsOutput) SetAgentsConfigurationStatus(v []*AgentConfigurationStatus) *StopDataCollectionByAgentIdsOutput { + s.AgentsConfigurationStatus = v + return s +} + // Metadata that help you categorize IT assets. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/Tag type Tag struct { _ struct{} `type:"structure"` @@ -1684,7 +3416,20 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // The name of a tag filter. Valid names are: tagKey, tagValue, configurationId. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/TagFilter type TagFilter struct { _ struct{} `type:"structure"` @@ -1725,6 +3470,90 @@ func (s *TagFilter) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *TagFilter) SetName(v string) *TagFilter { + s.Name = &v + return s +} + +// SetValues sets the Values field's value. +func (s *TagFilter) SetValues(v []*string) *TagFilter { + s.Values = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplicationRequest +type UpdateApplicationInput struct { + _ struct{} `type:"structure"` + + // Configuration ID of the application to be updated. + // + // ConfigurationId is a required field + ConfigurationId *string `locationName:"configurationId" type:"string" required:"true"` + + // New description of the application to be updated. + Description *string `locationName:"description" type:"string"` + + // New name of the application to be updated. + Name *string `locationName:"name" type:"string"` +} + +// String returns the string representation +func (s UpdateApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationInput"} + if s.ConfigurationId == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationId sets the ConfigurationId field's value. +func (s *UpdateApplicationInput) SetConfigurationId(v string) *UpdateApplicationInput { + s.ConfigurationId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateApplicationInput) SetDescription(v string) *UpdateApplicationInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateApplicationInput) SetName(v string) *UpdateApplicationInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplicationResponse +type UpdateApplicationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateApplicationOutput) GoString() string { + return s.String() +} + const ( // AgentStatusHealthy is a AgentStatus enum value AgentStatusHealthy = "HEALTHY" @@ -1754,6 +3583,9 @@ const ( // ConfigurationItemTypeConnection is a ConfigurationItemType enum value ConfigurationItemTypeConnection = "CONNECTION" + + // ConfigurationItemTypeApplication is a ConfigurationItemType enum value + ConfigurationItemTypeApplication = "APPLICATION" ) const ( @@ -1766,3 +3598,11 @@ const ( // ExportStatusInProgress is a ExportStatus enum value ExportStatusInProgress = "IN_PROGRESS" ) + +const ( + // OrderStringAsc is a orderString enum value + OrderStringAsc = "ASC" + + // OrderStringDesc is a orderString enum value + OrderStringDesc = "DESC" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/applicationdiscoveryserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/applicationdiscoveryserviceiface/interface.go index 7277f61c0..df629e114 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/applicationdiscoveryserviceiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/applicationdiscoveryserviceiface/interface.go @@ -25,7 +25,7 @@ import ( // // myFunc uses an SDK service client to make a request to // // AWS Application Discovery Service. // func myFunc(svc applicationdiscoveryserviceiface.ApplicationDiscoveryServiceAPI) bool { -// // Make svc.CreateTags request +// // Make svc.AssociateConfigurationItemsToApplication request // } // // func main() { @@ -41,11 +41,11 @@ import ( // type mockApplicationDiscoveryServiceClient struct { // applicationdiscoveryserviceiface.ApplicationDiscoveryServiceAPI // } -// func (m *mockApplicationDiscoveryServiceClient) CreateTags(input *applicationdiscoveryservice.CreateTagsInput) (*applicationdiscoveryservice.CreateTagsOutput, error) { +// func (m *mockApplicationDiscoveryServiceClient) AssociateConfigurationItemsToApplication(input *applicationdiscoveryservice.AssociateConfigurationItemsToApplicationInput) (*applicationdiscoveryservice.AssociateConfigurationItemsToApplicationOutput, error) { // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockApplicationDiscoveryServiceClient{} // @@ -59,10 +59,22 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type ApplicationDiscoveryServiceAPI interface { + AssociateConfigurationItemsToApplicationRequest(*applicationdiscoveryservice.AssociateConfigurationItemsToApplicationInput) (*request.Request, *applicationdiscoveryservice.AssociateConfigurationItemsToApplicationOutput) + + AssociateConfigurationItemsToApplication(*applicationdiscoveryservice.AssociateConfigurationItemsToApplicationInput) (*applicationdiscoveryservice.AssociateConfigurationItemsToApplicationOutput, error) + + CreateApplicationRequest(*applicationdiscoveryservice.CreateApplicationInput) (*request.Request, *applicationdiscoveryservice.CreateApplicationOutput) + + CreateApplication(*applicationdiscoveryservice.CreateApplicationInput) (*applicationdiscoveryservice.CreateApplicationOutput, error) + CreateTagsRequest(*applicationdiscoveryservice.CreateTagsInput) (*request.Request, *applicationdiscoveryservice.CreateTagsOutput) CreateTags(*applicationdiscoveryservice.CreateTagsInput) (*applicationdiscoveryservice.CreateTagsOutput, error) + DeleteApplicationsRequest(*applicationdiscoveryservice.DeleteApplicationsInput) (*request.Request, *applicationdiscoveryservice.DeleteApplicationsOutput) + + DeleteApplications(*applicationdiscoveryservice.DeleteApplicationsInput) (*applicationdiscoveryservice.DeleteApplicationsOutput, error) + DeleteTagsRequest(*applicationdiscoveryservice.DeleteTagsInput) (*request.Request, *applicationdiscoveryservice.DeleteTagsOutput) DeleteTags(*applicationdiscoveryservice.DeleteTagsInput) (*applicationdiscoveryservice.DeleteTagsOutput, error) @@ -83,14 +95,26 @@ type ApplicationDiscoveryServiceAPI interface { DescribeTags(*applicationdiscoveryservice.DescribeTagsInput) (*applicationdiscoveryservice.DescribeTagsOutput, error) + DisassociateConfigurationItemsFromApplicationRequest(*applicationdiscoveryservice.DisassociateConfigurationItemsFromApplicationInput) (*request.Request, *applicationdiscoveryservice.DisassociateConfigurationItemsFromApplicationOutput) + + DisassociateConfigurationItemsFromApplication(*applicationdiscoveryservice.DisassociateConfigurationItemsFromApplicationInput) (*applicationdiscoveryservice.DisassociateConfigurationItemsFromApplicationOutput, error) + ExportConfigurationsRequest(*applicationdiscoveryservice.ExportConfigurationsInput) (*request.Request, *applicationdiscoveryservice.ExportConfigurationsOutput) ExportConfigurations(*applicationdiscoveryservice.ExportConfigurationsInput) (*applicationdiscoveryservice.ExportConfigurationsOutput, error) + GetDiscoverySummaryRequest(*applicationdiscoveryservice.GetDiscoverySummaryInput) (*request.Request, *applicationdiscoveryservice.GetDiscoverySummaryOutput) + + GetDiscoverySummary(*applicationdiscoveryservice.GetDiscoverySummaryInput) (*applicationdiscoveryservice.GetDiscoverySummaryOutput, error) + ListConfigurationsRequest(*applicationdiscoveryservice.ListConfigurationsInput) (*request.Request, *applicationdiscoveryservice.ListConfigurationsOutput) ListConfigurations(*applicationdiscoveryservice.ListConfigurationsInput) (*applicationdiscoveryservice.ListConfigurationsOutput, error) + ListServerNeighborsRequest(*applicationdiscoveryservice.ListServerNeighborsInput) (*request.Request, *applicationdiscoveryservice.ListServerNeighborsOutput) + + ListServerNeighbors(*applicationdiscoveryservice.ListServerNeighborsInput) (*applicationdiscoveryservice.ListServerNeighborsOutput, error) + StartDataCollectionByAgentIdsRequest(*applicationdiscoveryservice.StartDataCollectionByAgentIdsInput) (*request.Request, *applicationdiscoveryservice.StartDataCollectionByAgentIdsOutput) StartDataCollectionByAgentIds(*applicationdiscoveryservice.StartDataCollectionByAgentIdsInput) (*applicationdiscoveryservice.StartDataCollectionByAgentIdsOutput, error) @@ -98,6 +122,10 @@ type ApplicationDiscoveryServiceAPI interface { StopDataCollectionByAgentIdsRequest(*applicationdiscoveryservice.StopDataCollectionByAgentIdsInput) (*request.Request, *applicationdiscoveryservice.StopDataCollectionByAgentIdsOutput) StopDataCollectionByAgentIds(*applicationdiscoveryservice.StopDataCollectionByAgentIdsInput) (*applicationdiscoveryservice.StopDataCollectionByAgentIdsOutput, error) + + UpdateApplicationRequest(*applicationdiscoveryservice.UpdateApplicationInput) (*request.Request, *applicationdiscoveryservice.UpdateApplicationOutput) + + UpdateApplication(*applicationdiscoveryservice.UpdateApplicationInput) (*applicationdiscoveryservice.UpdateApplicationOutput, error) } var _ ApplicationDiscoveryServiceAPI = (*applicationdiscoveryservice.ApplicationDiscoveryService)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/errors.go b/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/errors.go new file mode 100644 index 000000000..58e534a31 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/errors.go @@ -0,0 +1,45 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package applicationdiscoveryservice + +const ( + + // ErrCodeAuthorizationErrorException for service response error code + // "AuthorizationErrorException". + // + // The AWS user account does not have permission to perform the action. Check + // the IAM policy associated with this account. + ErrCodeAuthorizationErrorException = "AuthorizationErrorException" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameterException". + // + // One or more parameters are not valid. Verify the parameters and try again. + ErrCodeInvalidParameterException = "InvalidParameterException" + + // ErrCodeInvalidParameterValueException for service response error code + // "InvalidParameterValueException". + // + // The value of one or more parameters are either invalid or out of range. Verify + // the parameter values and try again. + ErrCodeInvalidParameterValueException = "InvalidParameterValueException" + + // ErrCodeOperationNotPermittedException for service response error code + // "OperationNotPermittedException". + // + // This operation is not permitted. + ErrCodeOperationNotPermittedException = "OperationNotPermittedException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The specified configuration ID was not located. Verify the configuration + // ID and try again. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeServerInternalErrorException for service response error code + // "ServerInternalErrorException". + // + // The server experienced an internal error. Try again. + ErrCodeServerInternalErrorException = "ServerInternalErrorException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/examples_test.go index e39f906bc..62b12615b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/examples_test.go @@ -15,13 +15,56 @@ import ( var _ time.Duration var _ bytes.Buffer -func ExampleApplicationDiscoveryService_CreateTags() { - sess, err := session.NewSession() +func ExampleApplicationDiscoveryService_AssociateConfigurationItemsToApplication() { + sess := session.Must(session.NewSession()) + + svc := applicationdiscoveryservice.New(sess) + + params := &applicationdiscoveryservice.AssociateConfigurationItemsToApplicationInput{ + ApplicationConfigurationId: aws.String("ApplicationId"), // Required + ConfigurationIds: []*string{ // Required + aws.String("ConfigurationId"), // Required + // More values... + }, + } + resp, err := svc.AssociateConfigurationItemsToApplication(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleApplicationDiscoveryService_CreateApplication() { + sess := session.Must(session.NewSession()) + + svc := applicationdiscoveryservice.New(sess) + + params := &applicationdiscoveryservice.CreateApplicationInput{ + Name: aws.String("String"), // Required + Description: aws.String("String"), + } + resp, err := svc.CreateApplication(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleApplicationDiscoveryService_CreateTags() { + sess := session.Must(session.NewSession()) + svc := applicationdiscoveryservice.New(sess) params := &applicationdiscoveryservice.CreateTagsInput{ @@ -50,13 +93,33 @@ func ExampleApplicationDiscoveryService_CreateTags() { fmt.Println(resp) } -func ExampleApplicationDiscoveryService_DeleteTags() { - sess, err := session.NewSession() +func ExampleApplicationDiscoveryService_DeleteApplications() { + sess := session.Must(session.NewSession()) + + svc := applicationdiscoveryservice.New(sess) + + params := &applicationdiscoveryservice.DeleteApplicationsInput{ + ConfigurationIds: []*string{ // Required + aws.String("ApplicationId"), // Required + // More values... + }, + } + resp, err := svc.DeleteApplications(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleApplicationDiscoveryService_DeleteTags() { + sess := session.Must(session.NewSession()) + svc := applicationdiscoveryservice.New(sess) params := &applicationdiscoveryservice.DeleteTagsInput{ @@ -86,11 +149,7 @@ func ExampleApplicationDiscoveryService_DeleteTags() { } func ExampleApplicationDiscoveryService_DescribeAgents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -99,6 +158,17 @@ func ExampleApplicationDiscoveryService_DescribeAgents() { aws.String("AgentId"), // Required // More values... }, + Filters: []*applicationdiscoveryservice.Filter{ + { // Required + Condition: aws.String("Condition"), // Required + Name: aws.String("String"), // Required + Values: []*string{ // Required + aws.String("FilterValue"), // Required + // More values... + }, + }, + // More values... + }, MaxResults: aws.Int64(1), NextToken: aws.String("NextToken"), } @@ -116,11 +186,7 @@ func ExampleApplicationDiscoveryService_DescribeAgents() { } func ExampleApplicationDiscoveryService_DescribeConfigurations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -144,11 +210,7 @@ func ExampleApplicationDiscoveryService_DescribeConfigurations() { } func ExampleApplicationDiscoveryService_DescribeExportConfigurations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -174,11 +236,7 @@ func ExampleApplicationDiscoveryService_DescribeExportConfigurations() { } func ExampleApplicationDiscoveryService_DescribeTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -209,13 +267,34 @@ func ExampleApplicationDiscoveryService_DescribeTags() { fmt.Println(resp) } -func ExampleApplicationDiscoveryService_ExportConfigurations() { - sess, err := session.NewSession() +func ExampleApplicationDiscoveryService_DisassociateConfigurationItemsFromApplication() { + sess := session.Must(session.NewSession()) + + svc := applicationdiscoveryservice.New(sess) + + params := &applicationdiscoveryservice.DisassociateConfigurationItemsFromApplicationInput{ + ApplicationConfigurationId: aws.String("ApplicationId"), // Required + ConfigurationIds: []*string{ // Required + aws.String("ConfigurationId"), // Required + // More values... + }, + } + resp, err := svc.DisassociateConfigurationItemsFromApplication(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleApplicationDiscoveryService_ExportConfigurations() { + sess := session.Must(session.NewSession()) + svc := applicationdiscoveryservice.New(sess) var params *applicationdiscoveryservice.ExportConfigurationsInput @@ -232,13 +311,28 @@ func ExampleApplicationDiscoveryService_ExportConfigurations() { fmt.Println(resp) } -func ExampleApplicationDiscoveryService_ListConfigurations() { - sess, err := session.NewSession() +func ExampleApplicationDiscoveryService_GetDiscoverySummary() { + sess := session.Must(session.NewSession()) + + svc := applicationdiscoveryservice.New(sess) + + var params *applicationdiscoveryservice.GetDiscoverySummaryInput + resp, err := svc.GetDiscoverySummary(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleApplicationDiscoveryService_ListConfigurations() { + sess := session.Must(session.NewSession()) + svc := applicationdiscoveryservice.New(sess) params := &applicationdiscoveryservice.ListConfigurationsInput{ @@ -256,6 +350,13 @@ func ExampleApplicationDiscoveryService_ListConfigurations() { }, MaxResults: aws.Int64(1), NextToken: aws.String("NextToken"), + OrderBy: []*applicationdiscoveryservice.OrderByElement{ + { // Required + FieldName: aws.String("String"), // Required + SortOrder: aws.String("orderString"), + }, + // More values... + }, } resp, err := svc.ListConfigurations(params) @@ -270,13 +371,37 @@ func ExampleApplicationDiscoveryService_ListConfigurations() { fmt.Println(resp) } -func ExampleApplicationDiscoveryService_StartDataCollectionByAgentIds() { - sess, err := session.NewSession() +func ExampleApplicationDiscoveryService_ListServerNeighbors() { + sess := session.Must(session.NewSession()) + + svc := applicationdiscoveryservice.New(sess) + + params := &applicationdiscoveryservice.ListServerNeighborsInput{ + ConfigurationId: aws.String("ConfigurationId"), // Required + MaxResults: aws.Int64(1), + NeighborConfigurationIds: []*string{ + aws.String("ConfigurationId"), // Required + // More values... + }, + NextToken: aws.String("String"), + PortInformationNeeded: aws.Bool(true), + } + resp, err := svc.ListServerNeighbors(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleApplicationDiscoveryService_StartDataCollectionByAgentIds() { + sess := session.Must(session.NewSession()) + svc := applicationdiscoveryservice.New(sess) params := &applicationdiscoveryservice.StartDataCollectionByAgentIdsInput{ @@ -299,11 +424,7 @@ func ExampleApplicationDiscoveryService_StartDataCollectionByAgentIds() { } func ExampleApplicationDiscoveryService_StopDataCollectionByAgentIds() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := applicationdiscoveryservice.New(sess) @@ -325,3 +446,26 @@ func ExampleApplicationDiscoveryService_StopDataCollectionByAgentIds() { // Pretty-print the response data. fmt.Println(resp) } + +func ExampleApplicationDiscoveryService_UpdateApplication() { + sess := session.Must(session.NewSession()) + + svc := applicationdiscoveryservice.New(sess) + + params := &applicationdiscoveryservice.UpdateApplicationInput{ + ConfigurationId: aws.String("ApplicationId"), // Required + Description: aws.String("String"), + Name: aws.String("String"), + } + resp, err := svc.UpdateApplication(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/service.go b/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/service.go index 0e3ad5726..6fe27b009 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/service.go @@ -11,203 +11,69 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) -// The AWS Application Discovery Service helps Systems Integrators quickly and -// reliably plan application migration projects by automatically identifying -// applications running in on-premises data centers, their associated dependencies, -// and their performance profile. -// -// Planning data center migrations can involve thousands of workloads that -// are often deeply interdependent. Application discovery and dependency mapping -// are important early first steps in the migration process, but difficult to -// perform at scale due to the lack of automated tools. -// -// The AWS Application Discovery Service automatically collects configuration -// and usage data from servers to develop a list of applications, how they perform, -// and how they are interdependent. This information is securely retained in -// an AWS Application Discovery Service database which you can export as a CSV -// file into your preferred visualization tool or cloud migration solution to -// help reduce the complexity and time in planning your cloud migration. -// -// The Application Discovery Service is currently available for preview. Only -// customers who are engaged with AWS Professional Services (https://aws.amazon.com/professional-services/) -// or a certified AWS partner can use the service. To see the list of certified -// partners and request access to the Application Discovery Service, complete -// the following preview form (http://aws.amazon.com/application-discovery/preview/). +// AWS Application Discovery Service helps you plan application migration projects +// by automatically identifying servers, virtual machines (VMs), software, and +// software dependencies running in your on-premises data centers. Application +// Discovery Service also collects application performance data, which can help +// you assess the outcome of your migration. The data collected by Application +// Discovery Service is securely retained in an Amazon-hosted and managed database +// in the cloud. You can export the data as a CSV or XML file into your preferred +// visualization tool or cloud-migration solution to plan your migration. For +// more information, see the Application Discovery Service FAQ (http://aws.amazon.com/application-discovery/faqs/). +// +// Application Discovery Service offers two modes of operation. +// +// * Agentless discovery mode is recommended for environments that use VMware +// vCenter Server. This mode doesn't require you to install an agent on each +// host. Agentless discovery gathers server information regardless of the +// operating systems, which minimizes the time required for initial on-premises +// infrastructure assessment. Agentless discovery doesn't collect information +// about software and software dependencies. It also doesn't work in non-VMware +// environments. We recommend that you use agent-based discovery for non-VMware +// environments and if you want to collect information about software and +// software dependencies. You can also run agent-based and agentless discovery +// simultaneously. Use agentless discovery to quickly complete the initial +// infrastructure assessment and then install agents on select hosts to gather +// information about software and software dependencies. +// +// * Agent-based discovery mode collects a richer set of data than agentless +// discovery by using Amazon software, the AWS Application Discovery Agent, +// which you install on one or more hosts in your data center. The agent +// captures infrastructure and application information, including an inventory +// of installed software applications, system and process performance, resource +// utilization, and network dependencies between workloads. The information +// collected by agents is secured at rest and in transit to the Application +// Discovery Service database in the cloud. +// +// Application Discovery Service integrates with application discovery solutions +// from AWS Partner Network (APN) partners. Third-party application discovery +// tools can query the Application Discovery Service and write to the Application +// Discovery Service database using a public API. You can then import the data +// into either a visualization tool or cloud-migration solution. +// +// Application Discovery Service doesn't gather sensitive information. All data +// is handled according to the AWS Privacy Policy (http://aws.amazon.com/privacy/). +// You can operate Application Discovery Service using offline mode to inspect +// collected data before it is shared with the service. +// +// Your AWS account must be granted access to Application Discovery Service, +// a process called whitelisting. This is true for AWS partners and customers +// alike. To request access, sign up for the AWS Application Discovery Service +// here (http://aws.amazon.com/application-discovery/preview/). We will send +// you information about how to get started. // // This API reference provides descriptions, syntax, and usage examples for -// each of the actions and data types for the Discovery Service. The topic for -// each action shows the API request parameters and the response. Alternatively, -// you can use one of the AWS SDKs to access an API that is tailored to the -// programming language or platform that you're using. For more information, +// each of the actions and data types for the Application Discovery Service. +// The topic for each action shows the API request parameters and the response. +// Alternatively, you can use one of the AWS SDKs to access an API that is tailored +// to the programming language or platform that you're using. For more information, // see AWS SDKs (http://aws.amazon.com/tools/#SDKs). // -// This guide is intended for use with the AWS Discovery Service User Guide -// (http://docs.aws.amazon.com/application-discovery/latest/userguide/what-is-appdiscovery.html). -// -// The following are short descriptions of each API action, organized by function. -// -// Managing AWS Agents Using the Application Discovery Service -// -// An AWS agent is software that you install on on-premises servers and virtual -// machines that are targeted for discovery and migration. Agents run on Linux -// and Windows Server and collect server configuration and activity information -// about your applications and infrastructure. Specifically, agents collect -// the following information and send it to the Application Discovery Service -// using Secure Sockets Layer (SSL) encryption: -// -// User information (user name, home directory) -// -// Group information (name) -// -// List of installed packages -// -// List of kernel modules -// -// All create and stop process events -// -// DNS queries -// -// NIC information -// -// TCP/UDP process listening ports -// -// TCPV4/V6 connections -// -// Operating system information -// -// System performance -// -// Process performance -// -// The Application Discovery Service API includes the following actions to -// manage AWS agents: -// -// StartDataCollectionByAgentIds: Instructs the specified agents to start -// collecting data. The Application Discovery Service takes several minutes -// to receive and process data after you initiate data collection. -// -// StopDataCollectionByAgentIds: Instructs the specified agents to stop -// collecting data. -// -// DescribeAgents: Lists AWS agents by ID or lists all agents associated -// with your user account if you did not specify an agent ID. The output includes -// agent IDs, IP addresses, media access control (MAC) addresses, agent health, -// host name where the agent resides, and the version number of each agent. -// -// Querying Configuration Items -// -// A configuration item is an IT asset that was discovered in your data center -// by an AWS agent. When you use the Application Discovery Service, you can -// specify filters and query specific configuration items. The service supports -// Server, Process, and Connection configuration items. This means you can specify -// a value for the following keys and query your IT assets: -// -// Server server.HostName -// -// server.osName -// -// server.osVersion -// -// server.configurationId -// -// server.agentId -// -// Process process.name -// -// process.CommandLine -// -// process.configurationId -// -// server.hostName -// -// server.osName -// -// server.osVersion -// -// server.configurationId -// -// server.agentId -// -// Connection connection.sourceIp -// -// connection.sourcePort -// -// connection.destinationIp -// -// connection.destinationPort -// -// sourceProcess.configurationId -// -// sourceProcess.commandLine -// -// sourceProcess.name -// -// destinationProcessId.configurationId -// -// destinationProcess.commandLine -// -// destinationProcess.name -// -// sourceServer.configurationId -// -// sourceServer.hostName -// -// sourceServer.osName -// -// sourceServer.osVersion -// -// destinationServer.configurationId -// -// destinationServer.hostName -// -// destinationServer.osName -// -// destinationServer.osVersion -// -// The Application Discovery Service includes the following actions for querying -// configuration items. -// -// DescribeConfigurations: Retrieves a list of attributes for a specific -// configuration ID. For example, the output for a server configuration item -// includes a list of attributes about the server, including host name, operating -// system, number of network cards, etc. -// -// ListConfigurations: Retrieves a list of configuration items according -// to the criteria you specify in a filter. The filter criteria identify relationship -// requirements. For example, you can specify filter criteria of process.name -// with values of nginx and apache. -// -// Tagging Discovered Configuration Items -// -// You can tag discovered configuration items. Tags are metadata that help -// you categorize IT assets in your data center. Tags use a key-value format. -// For example, {"key": "serverType", "value": "webServer"}. -// -// CreateTags: Creates one or more tags for a configuration items. -// -// DescribeTags: Retrieves a list of configuration items that are tagged -// with a specific tag. Or, retrieves a list of all tags assigned to a specific -// configuration item. -// -// DeleteTags: Deletes the association between a configuration item and -// one or more tags. -// -// Exporting Data -// -// You can export data as a CSV file to an Amazon S3 bucket or into your preferred -// visualization tool or cloud migration solution to help reduce the complexity -// and time in planning your cloud migration. -// -// ExportConfigurations: Exports all discovered configuration data to an -// Amazon S3 bucket. Data includes tags and tag associations, processes, connections, -// servers, and system performance. This API returns an export ID which you -// can query using the GetExportStatus API. -// -// DescribeExportConfigurations: Gets the status of the data export. When -// the export is complete, the service returns an Amazon S3 URL where you can -// download CSV files that include the data. -//The service client's operations are safe to be used concurrently. +// This guide is intended for use with the AWS Application Discovery Service +// User Guide (http://docs.aws.amazon.com/application-discovery/latest/userguide/). +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01 type ApplicationDiscoveryService struct { *client.Client } @@ -218,8 +84,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "discovery" +// Service information constants +const ( + ServiceName = "discovery" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the ApplicationDiscoveryService client with a session. // If additional configuration is needed for the client instance use the optional @@ -232,17 +101,18 @@ const ServiceName = "discovery" // // Create a ApplicationDiscoveryService client with additional configuration // svc := applicationdiscoveryservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ApplicationDiscoveryService { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ApplicationDiscoveryService { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *ApplicationDiscoveryService { svc := &ApplicationDiscoveryService{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-11-01", diff --git a/vendor/github.com/aws/aws-sdk-go/service/appstream/api.go b/vendor/github.com/aws/aws-sdk-go/service/appstream/api.go new file mode 100644 index 000000000..b587032ce --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/appstream/api.go @@ -0,0 +1,3603 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package appstream provides a client for Amazon AppStream. +package appstream + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opAssociateFleet = "AssociateFleet" + +// AssociateFleetRequest generates a "aws/request.Request" representing the +// client's request for the AssociateFleet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AssociateFleet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AssociateFleet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AssociateFleetRequest method. +// req, resp := client.AssociateFleetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/AssociateFleet +func (c *AppStream) AssociateFleetRequest(input *AssociateFleetInput) (req *request.Request, output *AssociateFleetOutput) { + op := &request.Operation{ + Name: opAssociateFleet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AssociateFleetInput{} + } + + output = &AssociateFleetOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssociateFleet API operation for Amazon AppStream. +// +// Associate a fleet to a stack. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon AppStream's +// API operation AssociateFleet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested limit exceeds the permitted limit for an account. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/AssociateFleet +func (c *AppStream) AssociateFleet(input *AssociateFleetInput) (*AssociateFleetOutput, error) { + req, out := c.AssociateFleetRequest(input) + err := req.Send() + return out, err +} + +const opCreateFleet = "CreateFleet" + +// CreateFleetRequest generates a "aws/request.Request" representing the +// client's request for the CreateFleet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateFleet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateFleet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateFleetRequest method. +// req, resp := client.CreateFleetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateFleet +func (c *AppStream) CreateFleetRequest(input *CreateFleetInput) (req *request.Request, output *CreateFleetOutput) { + op := &request.Operation{ + Name: opCreateFleet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateFleetInput{} + } + + output = &CreateFleetOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateFleet API operation for Amazon AppStream. +// +// Creates a new fleet. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon AppStream's +// API operation CreateFleet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// The specified resource already exists. +// +// * ErrCodeResourceNotAvailableException "ResourceNotAvailableException" +// The specified resource exists and is not in use, but isn't available. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested limit exceeds the permitted limit for an account. +// +// * ErrCodeInvalidRoleException "InvalidRoleException" +// The specified role is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateFleet +func (c *AppStream) CreateFleet(input *CreateFleetInput) (*CreateFleetOutput, error) { + req, out := c.CreateFleetRequest(input) + err := req.Send() + return out, err +} + +const opCreateStack = "CreateStack" + +// CreateStackRequest generates a "aws/request.Request" representing the +// client's request for the CreateStack operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateStack for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateStack method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateStackRequest method. +// req, resp := client.CreateStackRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStack +func (c *AppStream) CreateStackRequest(input *CreateStackInput) (req *request.Request, output *CreateStackOutput) { + op := &request.Operation{ + Name: opCreateStack, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateStackInput{} + } + + output = &CreateStackOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateStack API operation for Amazon AppStream. +// +// Create a new stack. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon AppStream's +// API operation CreateStack for usage and error information. +// +// Returned Error Codes: +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested limit exceeds the permitted limit for an account. +// +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// The specified resource already exists. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStack +func (c *AppStream) CreateStack(input *CreateStackInput) (*CreateStackOutput, error) { + req, out := c.CreateStackRequest(input) + err := req.Send() + return out, err +} + +const opCreateStreamingURL = "CreateStreamingURL" + +// CreateStreamingURLRequest generates a "aws/request.Request" representing the +// client's request for the CreateStreamingURL operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateStreamingURL for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateStreamingURL method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateStreamingURLRequest method. +// req, resp := client.CreateStreamingURLRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStreamingURL +func (c *AppStream) CreateStreamingURLRequest(input *CreateStreamingURLInput) (req *request.Request, output *CreateStreamingURLOutput) { + op := &request.Operation{ + Name: opCreateStreamingURL, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateStreamingURLInput{} + } + + output = &CreateStreamingURLOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateStreamingURL API operation for Amazon AppStream. +// +// Creates a URL to start an AppStream 2.0 streaming session for a user. By +// default, the URL is valid only for 1 minute from the time that it is generated. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon AppStream's +// API operation CreateStreamingURL for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeResourceNotAvailableException "ResourceNotAvailableException" +// The specified resource exists and is not in use, but isn't available. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// The attempted operation is not permitted. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStreamingURL +func (c *AppStream) CreateStreamingURL(input *CreateStreamingURLInput) (*CreateStreamingURLOutput, error) { + req, out := c.CreateStreamingURLRequest(input) + err := req.Send() + return out, err +} + +const opDeleteFleet = "DeleteFleet" + +// DeleteFleetRequest generates a "aws/request.Request" representing the +// client's request for the DeleteFleet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteFleet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteFleet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteFleetRequest method. +// req, resp := client.DeleteFleetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteFleet +func (c *AppStream) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Request, output *DeleteFleetOutput) { + op := &request.Operation{ + Name: opDeleteFleet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteFleetInput{} + } + + output = &DeleteFleetOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteFleet API operation for Amazon AppStream. +// +// Deletes a fleet. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon AppStream's +// API operation DeleteFleet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceInUseException "ResourceInUseException" +// The specified resource is in use. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteFleet +func (c *AppStream) DeleteFleet(input *DeleteFleetInput) (*DeleteFleetOutput, error) { + req, out := c.DeleteFleetRequest(input) + err := req.Send() + return out, err +} + +const opDeleteStack = "DeleteStack" + +// DeleteStackRequest generates a "aws/request.Request" representing the +// client's request for the DeleteStack operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteStack for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteStack method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteStackRequest method. +// req, resp := client.DeleteStackRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteStack +func (c *AppStream) DeleteStackRequest(input *DeleteStackInput) (req *request.Request, output *DeleteStackOutput) { + op := &request.Operation{ + Name: opDeleteStack, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteStackInput{} + } + + output = &DeleteStackOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteStack API operation for Amazon AppStream. +// +// Deletes the stack. After this operation completes, the environment can no +// longer be activated, and any reservations made for the stack are released. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon AppStream's +// API operation DeleteStack for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceInUseException "ResourceInUseException" +// The specified resource is in use. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteStack +func (c *AppStream) DeleteStack(input *DeleteStackInput) (*DeleteStackOutput, error) { + req, out := c.DeleteStackRequest(input) + err := req.Send() + return out, err +} + +const opDescribeFleets = "DescribeFleets" + +// DescribeFleetsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeFleets operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeFleets for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeFleets method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeFleetsRequest method. +// req, resp := client.DescribeFleetsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeFleets +func (c *AppStream) DescribeFleetsRequest(input *DescribeFleetsInput) (req *request.Request, output *DescribeFleetsOutput) { + op := &request.Operation{ + Name: opDescribeFleets, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeFleetsInput{} + } + + output = &DescribeFleetsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeFleets API operation for Amazon AppStream. +// +// If fleet names are provided, this operation describes the specified fleets; +// otherwise, all the fleets in the account are described. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon AppStream's +// API operation DescribeFleets for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeFleets +func (c *AppStream) DescribeFleets(input *DescribeFleetsInput) (*DescribeFleetsOutput, error) { + req, out := c.DescribeFleetsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeImages = "DescribeImages" + +// DescribeImagesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeImages operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeImages for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeImages method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeImagesRequest method. +// req, resp := client.DescribeImagesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImages +func (c *AppStream) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Request, output *DescribeImagesOutput) { + op := &request.Operation{ + Name: opDescribeImages, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeImagesInput{} + } + + output = &DescribeImagesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeImages API operation for Amazon AppStream. +// +// Describes the images. If a list of names is not provided, all images in your +// account are returned. This operation does not return a paginated result. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon AppStream's +// API operation DescribeImages for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImages +func (c *AppStream) DescribeImages(input *DescribeImagesInput) (*DescribeImagesOutput, error) { + req, out := c.DescribeImagesRequest(input) + err := req.Send() + return out, err +} + +const opDescribeSessions = "DescribeSessions" + +// DescribeSessionsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeSessions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeSessions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeSessions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeSessionsRequest method. +// req, resp := client.DescribeSessionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeSessions +func (c *AppStream) DescribeSessionsRequest(input *DescribeSessionsInput) (req *request.Request, output *DescribeSessionsOutput) { + op := &request.Operation{ + Name: opDescribeSessions, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeSessionsInput{} + } + + output = &DescribeSessionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeSessions API operation for Amazon AppStream. +// +// Describes the streaming sessions for a stack and a fleet. If a user ID is +// provided, this operation returns streaming sessions for only that user. Pass +// this value for the nextToken parameter in a subsequent call to this operation +// to retrieve the next set of items. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon AppStream's +// API operation DescribeSessions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeSessions +func (c *AppStream) DescribeSessions(input *DescribeSessionsInput) (*DescribeSessionsOutput, error) { + req, out := c.DescribeSessionsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeStacks = "DescribeStacks" + +// DescribeStacksRequest generates a "aws/request.Request" representing the +// client's request for the DescribeStacks operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeStacks for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeStacks method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeStacksRequest method. +// req, resp := client.DescribeStacksRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeStacks +func (c *AppStream) DescribeStacksRequest(input *DescribeStacksInput) (req *request.Request, output *DescribeStacksOutput) { + op := &request.Operation{ + Name: opDescribeStacks, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeStacksInput{} + } + + output = &DescribeStacksOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeStacks API operation for Amazon AppStream. +// +// If stack names are not provided, this operation describes the specified stacks; +// otherwise, all stacks in the account are described. Pass the nextToken value +// in a subsequent call to this operation to retrieve the next set of items. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon AppStream's +// API operation DescribeStacks for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeStacks +func (c *AppStream) DescribeStacks(input *DescribeStacksInput) (*DescribeStacksOutput, error) { + req, out := c.DescribeStacksRequest(input) + err := req.Send() + return out, err +} + +const opDisassociateFleet = "DisassociateFleet" + +// DisassociateFleetRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateFleet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DisassociateFleet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DisassociateFleet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DisassociateFleetRequest method. +// req, resp := client.DisassociateFleetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisassociateFleet +func (c *AppStream) DisassociateFleetRequest(input *DisassociateFleetInput) (req *request.Request, output *DisassociateFleetOutput) { + op := &request.Operation{ + Name: opDisassociateFleet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisassociateFleetInput{} + } + + output = &DisassociateFleetOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateFleet API operation for Amazon AppStream. +// +// Disassociates a fleet from a stack. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon AppStream's +// API operation DisassociateFleet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceInUseException "ResourceInUseException" +// The specified resource is in use. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisassociateFleet +func (c *AppStream) DisassociateFleet(input *DisassociateFleetInput) (*DisassociateFleetOutput, error) { + req, out := c.DisassociateFleetRequest(input) + err := req.Send() + return out, err +} + +const opExpireSession = "ExpireSession" + +// ExpireSessionRequest generates a "aws/request.Request" representing the +// client's request for the ExpireSession operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ExpireSession for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ExpireSession method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ExpireSessionRequest method. +// req, resp := client.ExpireSessionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ExpireSession +func (c *AppStream) ExpireSessionRequest(input *ExpireSessionInput) (req *request.Request, output *ExpireSessionOutput) { + op := &request.Operation{ + Name: opExpireSession, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ExpireSessionInput{} + } + + output = &ExpireSessionOutput{} + req = c.newRequest(op, input, output) + return +} + +// ExpireSession API operation for Amazon AppStream. +// +// This operation immediately stops a streaming session. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon AppStream's +// API operation ExpireSession for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ExpireSession +func (c *AppStream) ExpireSession(input *ExpireSessionInput) (*ExpireSessionOutput, error) { + req, out := c.ExpireSessionRequest(input) + err := req.Send() + return out, err +} + +const opListAssociatedFleets = "ListAssociatedFleets" + +// ListAssociatedFleetsRequest generates a "aws/request.Request" representing the +// client's request for the ListAssociatedFleets operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListAssociatedFleets for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListAssociatedFleets method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListAssociatedFleetsRequest method. +// req, resp := client.ListAssociatedFleetsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListAssociatedFleets +func (c *AppStream) ListAssociatedFleetsRequest(input *ListAssociatedFleetsInput) (req *request.Request, output *ListAssociatedFleetsOutput) { + op := &request.Operation{ + Name: opListAssociatedFleets, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListAssociatedFleetsInput{} + } + + output = &ListAssociatedFleetsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAssociatedFleets API operation for Amazon AppStream. +// +// Lists all fleets associated with the stack. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon AppStream's +// API operation ListAssociatedFleets for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListAssociatedFleets +func (c *AppStream) ListAssociatedFleets(input *ListAssociatedFleetsInput) (*ListAssociatedFleetsOutput, error) { + req, out := c.ListAssociatedFleetsRequest(input) + err := req.Send() + return out, err +} + +const opListAssociatedStacks = "ListAssociatedStacks" + +// ListAssociatedStacksRequest generates a "aws/request.Request" representing the +// client's request for the ListAssociatedStacks operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListAssociatedStacks for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListAssociatedStacks method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListAssociatedStacksRequest method. +// req, resp := client.ListAssociatedStacksRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListAssociatedStacks +func (c *AppStream) ListAssociatedStacksRequest(input *ListAssociatedStacksInput) (req *request.Request, output *ListAssociatedStacksOutput) { + op := &request.Operation{ + Name: opListAssociatedStacks, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListAssociatedStacksInput{} + } + + output = &ListAssociatedStacksOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAssociatedStacks API operation for Amazon AppStream. +// +// Lists all stacks to which the specified fleet is associated. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon AppStream's +// API operation ListAssociatedStacks for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListAssociatedStacks +func (c *AppStream) ListAssociatedStacks(input *ListAssociatedStacksInput) (*ListAssociatedStacksOutput, error) { + req, out := c.ListAssociatedStacksRequest(input) + err := req.Send() + return out, err +} + +const opStartFleet = "StartFleet" + +// StartFleetRequest generates a "aws/request.Request" representing the +// client's request for the StartFleet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See StartFleet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the StartFleet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the StartFleetRequest method. +// req, resp := client.StartFleetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StartFleet +func (c *AppStream) StartFleetRequest(input *StartFleetInput) (req *request.Request, output *StartFleetOutput) { + op := &request.Operation{ + Name: opStartFleet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartFleetInput{} + } + + output = &StartFleetOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartFleet API operation for Amazon AppStream. +// +// Starts a fleet. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon AppStream's +// API operation StartFleet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested limit exceeds the permitted limit for an account. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StartFleet +func (c *AppStream) StartFleet(input *StartFleetInput) (*StartFleetOutput, error) { + req, out := c.StartFleetRequest(input) + err := req.Send() + return out, err +} + +const opStopFleet = "StopFleet" + +// StopFleetRequest generates a "aws/request.Request" representing the +// client's request for the StopFleet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See StopFleet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the StopFleet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the StopFleetRequest method. +// req, resp := client.StopFleetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StopFleet +func (c *AppStream) StopFleetRequest(input *StopFleetInput) (req *request.Request, output *StopFleetOutput) { + op := &request.Operation{ + Name: opStopFleet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopFleetInput{} + } + + output = &StopFleetOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopFleet API operation for Amazon AppStream. +// +// Stops a fleet. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon AppStream's +// API operation StopFleet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StopFleet +func (c *AppStream) StopFleet(input *StopFleetInput) (*StopFleetOutput, error) { + req, out := c.StopFleetRequest(input) + err := req.Send() + return out, err +} + +const opUpdateFleet = "UpdateFleet" + +// UpdateFleetRequest generates a "aws/request.Request" representing the +// client's request for the UpdateFleet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateFleet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateFleet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateFleetRequest method. +// req, resp := client.UpdateFleetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateFleet +func (c *AppStream) UpdateFleetRequest(input *UpdateFleetInput) (req *request.Request, output *UpdateFleetOutput) { + op := &request.Operation{ + Name: opUpdateFleet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateFleetInput{} + } + + output = &UpdateFleetOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateFleet API operation for Amazon AppStream. +// +// Updates an existing fleet. All the attributes except the fleet name can be +// updated in the STOPPED state. Only ComputeCapacity and ImageName can be updated +// in any other state. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon AppStream's +// API operation UpdateFleet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceInUseException "ResourceInUseException" +// The specified resource is in use. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested limit exceeds the permitted limit for an account. +// +// * ErrCodeInvalidRoleException "InvalidRoleException" +// The specified role is invalid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateFleet +func (c *AppStream) UpdateFleet(input *UpdateFleetInput) (*UpdateFleetOutput, error) { + req, out := c.UpdateFleetRequest(input) + err := req.Send() + return out, err +} + +const opUpdateStack = "UpdateStack" + +// UpdateStackRequest generates a "aws/request.Request" representing the +// client's request for the UpdateStack operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateStack for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateStack method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateStackRequest method. +// req, resp := client.UpdateStackRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateStack +func (c *AppStream) UpdateStackRequest(input *UpdateStackInput) (req *request.Request, output *UpdateStackOutput) { + op := &request.Operation{ + Name: opUpdateStack, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateStackInput{} + } + + output = &UpdateStackOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateStack API operation for Amazon AppStream. +// +// Updates the specified fields in the stack with the specified name. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon AppStream's +// API operation UpdateStack for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The specified resource is in use. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateStack +func (c *AppStream) UpdateStack(input *UpdateStackInput) (*UpdateStackOutput, error) { + req, out := c.UpdateStackRequest(input) + err := req.Send() + return out, err +} + +// An entry for a single application in the application catalog. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/Application +type Application struct { + _ struct{} `type:"structure"` + + // The name of the application shown to the end users. + DisplayName *string `min:"1" type:"string"` + + // An application can be disabled after image creation if there is a problem. + Enabled *bool `type:"boolean"` + + // The URL for the application icon. This URL may be time-limited. + IconURL *string `min:"1" type:"string"` + + // A list of arguments that are passed to the application at launch. + LaunchParameters *string `min:"1" type:"string"` + + // The path to the application executable in the instance. + LaunchPath *string `min:"1" type:"string"` + + // Additional attributes that describes the application. + Metadata map[string]*string `type:"map"` + + // The unique identifier for the application. + Name *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s Application) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Application) GoString() string { + return s.String() +} + +// SetDisplayName sets the DisplayName field's value. +func (s *Application) SetDisplayName(v string) *Application { + s.DisplayName = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *Application) SetEnabled(v bool) *Application { + s.Enabled = &v + return s +} + +// SetIconURL sets the IconURL field's value. +func (s *Application) SetIconURL(v string) *Application { + s.IconURL = &v + return s +} + +// SetLaunchParameters sets the LaunchParameters field's value. +func (s *Application) SetLaunchParameters(v string) *Application { + s.LaunchParameters = &v + return s +} + +// SetLaunchPath sets the LaunchPath field's value. +func (s *Application) SetLaunchPath(v string) *Application { + s.LaunchPath = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *Application) SetMetadata(v map[string]*string) *Application { + s.Metadata = v + return s +} + +// SetName sets the Name field's value. +func (s *Application) SetName(v string) *Application { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/AssociateFleetRequest +type AssociateFleetInput struct { + _ struct{} `type:"structure"` + + // The name of the fleet to associate. + // + // FleetName is a required field + FleetName *string `min:"1" type:"string" required:"true"` + + // The name of the stack to which the fleet is associated. + // + // StackName is a required field + StackName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateFleetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateFleetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateFleetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateFleetInput"} + if s.FleetName == nil { + invalidParams.Add(request.NewErrParamRequired("FleetName")) + } + if s.FleetName != nil && len(*s.FleetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FleetName", 1)) + } + if s.StackName == nil { + invalidParams.Add(request.NewErrParamRequired("StackName")) + } + if s.StackName != nil && len(*s.StackName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFleetName sets the FleetName field's value. +func (s *AssociateFleetInput) SetFleetName(v string) *AssociateFleetInput { + s.FleetName = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *AssociateFleetInput) SetStackName(v string) *AssociateFleetInput { + s.StackName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/AssociateFleetResult +type AssociateFleetOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateFleetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateFleetOutput) GoString() string { + return s.String() +} + +// The capacity configuration for the fleet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ComputeCapacity +type ComputeCapacity struct { + _ struct{} `type:"structure"` + + // The desired number of streaming instances. + // + // DesiredInstances is a required field + DesiredInstances *int64 `type:"integer" required:"true"` +} + +// String returns the string representation +func (s ComputeCapacity) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ComputeCapacity) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ComputeCapacity) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ComputeCapacity"} + if s.DesiredInstances == nil { + invalidParams.Add(request.NewErrParamRequired("DesiredInstances")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDesiredInstances sets the DesiredInstances field's value. +func (s *ComputeCapacity) SetDesiredInstances(v int64) *ComputeCapacity { + s.DesiredInstances = &v + return s +} + +// The capacity information for the fleet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ComputeCapacityStatus +type ComputeCapacityStatus struct { + _ struct{} `type:"structure"` + + // The number of currently available instances that can be used to stream sessions. + Available *int64 `type:"integer"` + + // The desired number of streaming instances. + // + // Desired is a required field + Desired *int64 `type:"integer" required:"true"` + + // The number of instances that are being used for streaming. + InUse *int64 `type:"integer"` + + // The total number of simultaneous streaming instances that are running. + Running *int64 `type:"integer"` +} + +// String returns the string representation +func (s ComputeCapacityStatus) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ComputeCapacityStatus) GoString() string { + return s.String() +} + +// SetAvailable sets the Available field's value. +func (s *ComputeCapacityStatus) SetAvailable(v int64) *ComputeCapacityStatus { + s.Available = &v + return s +} + +// SetDesired sets the Desired field's value. +func (s *ComputeCapacityStatus) SetDesired(v int64) *ComputeCapacityStatus { + s.Desired = &v + return s +} + +// SetInUse sets the InUse field's value. +func (s *ComputeCapacityStatus) SetInUse(v int64) *ComputeCapacityStatus { + s.InUse = &v + return s +} + +// SetRunning sets the Running field's value. +func (s *ComputeCapacityStatus) SetRunning(v int64) *ComputeCapacityStatus { + s.Running = &v + return s +} + +// Contains the parameters for the new fleet to create. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateFleetRequest +type CreateFleetInput struct { + _ struct{} `type:"structure"` + + // The parameters for the capacity allocated to the fleet. + // + // ComputeCapacity is a required field + ComputeCapacity *ComputeCapacity `type:"structure" required:"true"` + + // The description of the fleet. + Description *string `type:"string"` + + // The time after disconnection when a session is considered to have ended. + // If a user who got disconnected reconnects within this timeout interval, the + // user is connected back to his/her previous session. + DisconnectTimeoutInSeconds *int64 `type:"integer"` + + // The display name of the fleet. + DisplayName *string `type:"string"` + + // Unique name of the image used by the fleet. + // + // ImageName is a required field + ImageName *string `min:"1" type:"string" required:"true"` + + // The instance type of compute resources for the fleet. Fleet instances are + // launched from this instance type. + // + // InstanceType is a required field + InstanceType *string `min:"1" type:"string" required:"true"` + + // The maximum time up to which a streaming session can run. + MaxUserDurationInSeconds *int64 `type:"integer"` + + // A unique identifier for the fleet. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The VPC configuration for the fleet. + VpcConfig *VpcConfig `type:"structure"` +} + +// String returns the string representation +func (s CreateFleetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateFleetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateFleetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateFleetInput"} + if s.ComputeCapacity == nil { + invalidParams.Add(request.NewErrParamRequired("ComputeCapacity")) + } + if s.ImageName == nil { + invalidParams.Add(request.NewErrParamRequired("ImageName")) + } + if s.ImageName != nil && len(*s.ImageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ImageName", 1)) + } + if s.InstanceType == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceType")) + } + if s.InstanceType != nil && len(*s.InstanceType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.ComputeCapacity != nil { + if err := s.ComputeCapacity.Validate(); err != nil { + invalidParams.AddNested("ComputeCapacity", err.(request.ErrInvalidParams)) + } + } + if s.VpcConfig != nil { + if err := s.VpcConfig.Validate(); err != nil { + invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetComputeCapacity sets the ComputeCapacity field's value. +func (s *CreateFleetInput) SetComputeCapacity(v *ComputeCapacity) *CreateFleetInput { + s.ComputeCapacity = v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateFleetInput) SetDescription(v string) *CreateFleetInput { + s.Description = &v + return s +} + +// SetDisconnectTimeoutInSeconds sets the DisconnectTimeoutInSeconds field's value. +func (s *CreateFleetInput) SetDisconnectTimeoutInSeconds(v int64) *CreateFleetInput { + s.DisconnectTimeoutInSeconds = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *CreateFleetInput) SetDisplayName(v string) *CreateFleetInput { + s.DisplayName = &v + return s +} + +// SetImageName sets the ImageName field's value. +func (s *CreateFleetInput) SetImageName(v string) *CreateFleetInput { + s.ImageName = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *CreateFleetInput) SetInstanceType(v string) *CreateFleetInput { + s.InstanceType = &v + return s +} + +// SetMaxUserDurationInSeconds sets the MaxUserDurationInSeconds field's value. +func (s *CreateFleetInput) SetMaxUserDurationInSeconds(v int64) *CreateFleetInput { + s.MaxUserDurationInSeconds = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateFleetInput) SetName(v string) *CreateFleetInput { + s.Name = &v + return s +} + +// SetVpcConfig sets the VpcConfig field's value. +func (s *CreateFleetInput) SetVpcConfig(v *VpcConfig) *CreateFleetInput { + s.VpcConfig = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateFleetResult +type CreateFleetOutput struct { + _ struct{} `type:"structure"` + + // The details for the created fleet. + Fleet *Fleet `type:"structure"` +} + +// String returns the string representation +func (s CreateFleetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateFleetOutput) GoString() string { + return s.String() +} + +// SetFleet sets the Fleet field's value. +func (s *CreateFleetOutput) SetFleet(v *Fleet) *CreateFleetOutput { + s.Fleet = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStackRequest +type CreateStackInput struct { + _ struct{} `type:"structure"` + + // The description displayed to end users on the AppStream 2.0 portal. + Description *string `type:"string"` + + // The name displayed to end users on the AppStream 2.0 portal. + DisplayName *string `type:"string"` + + // The unique identifier for this stack. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateStackInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateStackInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateStackInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateStackInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *CreateStackInput) SetDescription(v string) *CreateStackInput { + s.Description = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *CreateStackInput) SetDisplayName(v string) *CreateStackInput { + s.DisplayName = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateStackInput) SetName(v string) *CreateStackInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStackResult +type CreateStackOutput struct { + _ struct{} `type:"structure"` + + // The details for the created stack. + Stack *Stack `type:"structure"` +} + +// String returns the string representation +func (s CreateStackOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateStackOutput) GoString() string { + return s.String() +} + +// SetStack sets the Stack field's value. +func (s *CreateStackOutput) SetStack(v *Stack) *CreateStackOutput { + s.Stack = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStreamingURLRequest +type CreateStreamingURLInput struct { + _ struct{} `type:"structure"` + + // The ID of the application that must be launched after the session starts. + ApplicationId *string `min:"1" type:"string"` + + // The fleet for which the URL is generated. + // + // FleetName is a required field + FleetName *string `min:"1" type:"string" required:"true"` + + // The sessionContext of the streaming URL. + SessionContext *string `min:"1" type:"string"` + + // The stack for which the URL is generated. + // + // StackName is a required field + StackName *string `min:"1" type:"string" required:"true"` + + // A unique user ID for whom the URL is generated. + // + // UserId is a required field + UserId *string `min:"2" type:"string" required:"true"` + + // The validity duration of the URL in seconds. After this duration, the URL + // returned by this operation becomes invalid. + Validity *int64 `type:"long"` +} + +// String returns the string representation +func (s CreateStreamingURLInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateStreamingURLInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateStreamingURLInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateStreamingURLInput"} + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.FleetName == nil { + invalidParams.Add(request.NewErrParamRequired("FleetName")) + } + if s.FleetName != nil && len(*s.FleetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FleetName", 1)) + } + if s.SessionContext != nil && len(*s.SessionContext) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SessionContext", 1)) + } + if s.StackName == nil { + invalidParams.Add(request.NewErrParamRequired("StackName")) + } + if s.StackName != nil && len(*s.StackName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) + } + if s.UserId == nil { + invalidParams.Add(request.NewErrParamRequired("UserId")) + } + if s.UserId != nil && len(*s.UserId) < 2 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 2)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *CreateStreamingURLInput) SetApplicationId(v string) *CreateStreamingURLInput { + s.ApplicationId = &v + return s +} + +// SetFleetName sets the FleetName field's value. +func (s *CreateStreamingURLInput) SetFleetName(v string) *CreateStreamingURLInput { + s.FleetName = &v + return s +} + +// SetSessionContext sets the SessionContext field's value. +func (s *CreateStreamingURLInput) SetSessionContext(v string) *CreateStreamingURLInput { + s.SessionContext = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *CreateStreamingURLInput) SetStackName(v string) *CreateStreamingURLInput { + s.StackName = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *CreateStreamingURLInput) SetUserId(v string) *CreateStreamingURLInput { + s.UserId = &v + return s +} + +// SetValidity sets the Validity field's value. +func (s *CreateStreamingURLInput) SetValidity(v int64) *CreateStreamingURLInput { + s.Validity = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStreamingURLResult +type CreateStreamingURLOutput struct { + _ struct{} `type:"structure"` + + // Elapsed seconds after the Unix epoch, at which time this URL expires. + Expires *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The URL to start the AppStream 2.0 streaming session. + StreamingURL *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s CreateStreamingURLOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateStreamingURLOutput) GoString() string { + return s.String() +} + +// SetExpires sets the Expires field's value. +func (s *CreateStreamingURLOutput) SetExpires(v time.Time) *CreateStreamingURLOutput { + s.Expires = &v + return s +} + +// SetStreamingURL sets the StreamingURL field's value. +func (s *CreateStreamingURLOutput) SetStreamingURL(v string) *CreateStreamingURLOutput { + s.StreamingURL = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteFleetRequest +type DeleteFleetInput struct { + _ struct{} `type:"structure"` + + // The name of the fleet to be deleted. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteFleetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFleetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteFleetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFleetInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *DeleteFleetInput) SetName(v string) *DeleteFleetInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteFleetResult +type DeleteFleetOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteFleetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFleetOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteStackRequest +type DeleteStackInput struct { + _ struct{} `type:"structure"` + + // The name of the stack to delete. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteStackInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteStackInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteStackInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteStackInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *DeleteStackInput) SetName(v string) *DeleteStackInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteStackResult +type DeleteStackOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteStackOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteStackOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeFleetsRequest +type DescribeFleetsInput struct { + _ struct{} `type:"structure"` + + // The fleet names to describe. Use null to describe all the fleets for the + // AWS account. + Names []*string `type:"list"` + + // The pagination token to use to retrieve the next page of results for this + // operation. If this value is null, it retrieves the first page. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeFleetsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeFleetsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeFleetsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeFleetsInput"} + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNames sets the Names field's value. +func (s *DescribeFleetsInput) SetNames(v []*string) *DescribeFleetsInput { + s.Names = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeFleetsInput) SetNextToken(v string) *DescribeFleetsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeFleetsResult +type DescribeFleetsOutput struct { + _ struct{} `type:"structure"` + + // The list of fleet details. + Fleets []*Fleet `type:"list"` + + // The pagination token to use to retrieve the next page of results for this + // operation. If there are no more pages, this value is null. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeFleetsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeFleetsOutput) GoString() string { + return s.String() +} + +// SetFleets sets the Fleets field's value. +func (s *DescribeFleetsOutput) SetFleets(v []*Fleet) *DescribeFleetsOutput { + s.Fleets = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeFleetsOutput) SetNextToken(v string) *DescribeFleetsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImagesRequest +type DescribeImagesInput struct { + _ struct{} `type:"structure"` + + // A specific list of images to describe. + Names []*string `type:"list"` +} + +// String returns the string representation +func (s DescribeImagesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeImagesInput) GoString() string { + return s.String() +} + +// SetNames sets the Names field's value. +func (s *DescribeImagesInput) SetNames(v []*string) *DescribeImagesInput { + s.Names = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImagesResult +type DescribeImagesOutput struct { + _ struct{} `type:"structure"` + + // The list of images. + Images []*Image `type:"list"` +} + +// String returns the string representation +func (s DescribeImagesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeImagesOutput) GoString() string { + return s.String() +} + +// SetImages sets the Images field's value. +func (s *DescribeImagesOutput) SetImages(v []*Image) *DescribeImagesOutput { + s.Images = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeSessionsRequest +type DescribeSessionsInput struct { + _ struct{} `type:"structure"` + + // The name of the fleet for which to list sessions. + // + // FleetName is a required field + FleetName *string `min:"1" type:"string" required:"true"` + + // The size of each page of results. The default value is 20 and the maximum + // supported value is 50. + Limit *int64 `type:"integer"` + + // The pagination token to use to retrieve the next page of results for this + // operation. If this value is null, it retrieves the first page. + NextToken *string `min:"1" type:"string"` + + // The name of the stack for which to list sessions. + // + // StackName is a required field + StackName *string `min:"1" type:"string" required:"true"` + + // The user for whom to list sessions. Use null to describe all the sessions + // for the stack and fleet. + UserId *string `min:"2" type:"string"` +} + +// String returns the string representation +func (s DescribeSessionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeSessionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeSessionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeSessionsInput"} + if s.FleetName == nil { + invalidParams.Add(request.NewErrParamRequired("FleetName")) + } + if s.FleetName != nil && len(*s.FleetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FleetName", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.StackName == nil { + invalidParams.Add(request.NewErrParamRequired("StackName")) + } + if s.StackName != nil && len(*s.StackName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) + } + if s.UserId != nil && len(*s.UserId) < 2 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 2)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFleetName sets the FleetName field's value. +func (s *DescribeSessionsInput) SetFleetName(v string) *DescribeSessionsInput { + s.FleetName = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeSessionsInput) SetLimit(v int64) *DescribeSessionsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSessionsInput) SetNextToken(v string) *DescribeSessionsInput { + s.NextToken = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DescribeSessionsInput) SetStackName(v string) *DescribeSessionsInput { + s.StackName = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *DescribeSessionsInput) SetUserId(v string) *DescribeSessionsInput { + s.UserId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeSessionsResult +type DescribeSessionsOutput struct { + _ struct{} `type:"structure"` + + // The pagination token to use to retrieve the next page of results for this + // operation. If there are no more pages, this value is null. + NextToken *string `min:"1" type:"string"` + + // The list of streaming sessions. + Sessions []*Session `type:"list"` +} + +// String returns the string representation +func (s DescribeSessionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeSessionsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSessionsOutput) SetNextToken(v string) *DescribeSessionsOutput { + s.NextToken = &v + return s +} + +// SetSessions sets the Sessions field's value. +func (s *DescribeSessionsOutput) SetSessions(v []*Session) *DescribeSessionsOutput { + s.Sessions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeStacksRequest +type DescribeStacksInput struct { + _ struct{} `type:"structure"` + + // The stack names to describe. Use null to describe all the stacks for the + // AWS account. + Names []*string `type:"list"` + + // The pagination token to use to retrieve the next page of results for this + // operation. If this value is null, it retrieves the first page. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeStacksInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeStacksInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeStacksInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeStacksInput"} + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNames sets the Names field's value. +func (s *DescribeStacksInput) SetNames(v []*string) *DescribeStacksInput { + s.Names = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeStacksInput) SetNextToken(v string) *DescribeStacksInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeStacksResult +type DescribeStacksOutput struct { + _ struct{} `type:"structure"` + + // The pagination token to use to retrieve the next page of results for this + // operation. If there are no more pages, this value is null. + NextToken *string `min:"1" type:"string"` + + // The list of stack details. + Stacks []*Stack `type:"list"` +} + +// String returns the string representation +func (s DescribeStacksOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeStacksOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeStacksOutput) SetNextToken(v string) *DescribeStacksOutput { + s.NextToken = &v + return s +} + +// SetStacks sets the Stacks field's value. +func (s *DescribeStacksOutput) SetStacks(v []*Stack) *DescribeStacksOutput { + s.Stacks = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisassociateFleetRequest +type DisassociateFleetInput struct { + _ struct{} `type:"structure"` + + // The name of the fleet to disassociate. + // + // FleetName is a required field + FleetName *string `min:"1" type:"string" required:"true"` + + // The name of the stack with which the fleet is associated. + // + // StackName is a required field + StackName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateFleetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateFleetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateFleetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateFleetInput"} + if s.FleetName == nil { + invalidParams.Add(request.NewErrParamRequired("FleetName")) + } + if s.FleetName != nil && len(*s.FleetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FleetName", 1)) + } + if s.StackName == nil { + invalidParams.Add(request.NewErrParamRequired("StackName")) + } + if s.StackName != nil && len(*s.StackName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFleetName sets the FleetName field's value. +func (s *DisassociateFleetInput) SetFleetName(v string) *DisassociateFleetInput { + s.FleetName = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DisassociateFleetInput) SetStackName(v string) *DisassociateFleetInput { + s.StackName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisassociateFleetResult +type DisassociateFleetOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisassociateFleetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateFleetOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ExpireSessionRequest +type ExpireSessionInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the streaming session to be stopped. + // + // SessionId is a required field + SessionId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ExpireSessionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExpireSessionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ExpireSessionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExpireSessionInput"} + if s.SessionId == nil { + invalidParams.Add(request.NewErrParamRequired("SessionId")) + } + if s.SessionId != nil && len(*s.SessionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SessionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSessionId sets the SessionId field's value. +func (s *ExpireSessionInput) SetSessionId(v string) *ExpireSessionInput { + s.SessionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ExpireSessionResult +type ExpireSessionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s ExpireSessionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExpireSessionOutput) GoString() string { + return s.String() +} + +// Contains the parameters for a fleet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/Fleet +type Fleet struct { + _ struct{} `type:"structure"` + + // The ARN for the fleet. + // + // Arn is a required field + Arn *string `type:"string" required:"true"` + + // The capacity information for the fleet. + // + // ComputeCapacityStatus is a required field + ComputeCapacityStatus *ComputeCapacityStatus `type:"structure" required:"true"` + + // The time at which the fleet was created. + CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The description displayed to end users on the AppStream 2.0 portal. + Description *string `min:"1" type:"string"` + + // The time after disconnection when a session is considered to have ended. + // When a user reconnects after a disconnection, the user is connected to the + // same session and instance within this time interval. + DisconnectTimeoutInSeconds *int64 `type:"integer"` + + // The name displayed to end users on the AppStream 2.0 portal. + DisplayName *string `min:"1" type:"string"` + + // The list of fleet errors is appended to this list. + FleetErrors []*FleetError `type:"list"` + + // The image used by the fleet. + // + // ImageName is a required field + ImageName *string `min:"1" type:"string" required:"true"` + + // The instance type of compute resources for the fleet. The fleet instances + // are launched from this instance type. + // + // InstanceType is a required field + InstanceType *string `min:"1" type:"string" required:"true"` + + // The maximum time during which a streaming session can run. + MaxUserDurationInSeconds *int64 `type:"integer"` + + // The name of the fleet. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The current state for the fleet. + // + // State is a required field + State *string `type:"string" required:"true" enum:"FleetState"` + + // The VPC configuration for the fleet. + VpcConfig *VpcConfig `type:"structure"` +} + +// String returns the string representation +func (s Fleet) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Fleet) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *Fleet) SetArn(v string) *Fleet { + s.Arn = &v + return s +} + +// SetComputeCapacityStatus sets the ComputeCapacityStatus field's value. +func (s *Fleet) SetComputeCapacityStatus(v *ComputeCapacityStatus) *Fleet { + s.ComputeCapacityStatus = v + return s +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *Fleet) SetCreatedTime(v time.Time) *Fleet { + s.CreatedTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Fleet) SetDescription(v string) *Fleet { + s.Description = &v + return s +} + +// SetDisconnectTimeoutInSeconds sets the DisconnectTimeoutInSeconds field's value. +func (s *Fleet) SetDisconnectTimeoutInSeconds(v int64) *Fleet { + s.DisconnectTimeoutInSeconds = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *Fleet) SetDisplayName(v string) *Fleet { + s.DisplayName = &v + return s +} + +// SetFleetErrors sets the FleetErrors field's value. +func (s *Fleet) SetFleetErrors(v []*FleetError) *Fleet { + s.FleetErrors = v + return s +} + +// SetImageName sets the ImageName field's value. +func (s *Fleet) SetImageName(v string) *Fleet { + s.ImageName = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *Fleet) SetInstanceType(v string) *Fleet { + s.InstanceType = &v + return s +} + +// SetMaxUserDurationInSeconds sets the MaxUserDurationInSeconds field's value. +func (s *Fleet) SetMaxUserDurationInSeconds(v int64) *Fleet { + s.MaxUserDurationInSeconds = &v + return s +} + +// SetName sets the Name field's value. +func (s *Fleet) SetName(v string) *Fleet { + s.Name = &v + return s +} + +// SetState sets the State field's value. +func (s *Fleet) SetState(v string) *Fleet { + s.State = &v + return s +} + +// SetVpcConfig sets the VpcConfig field's value. +func (s *Fleet) SetVpcConfig(v *VpcConfig) *Fleet { + s.VpcConfig = v + return s +} + +// The details of the fleet error. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/FleetError +type FleetError struct { + _ struct{} `type:"structure"` + + // The error code for the fleet error. + ErrorCode *string `type:"string" enum:"FleetErrorCode"` + + // The error message generated when the fleet has errors. + ErrorMessage *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s FleetError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FleetError) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *FleetError) SetErrorCode(v string) *FleetError { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *FleetError) SetErrorMessage(v string) *FleetError { + s.ErrorMessage = &v + return s +} + +// New streaming instances are booted from images. The image stores the application +// catalog and is connected to fleets. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/Image +type Image struct { + _ struct{} `type:"structure"` + + // The applications associated with an image. + Applications []*Application `type:"list"` + + // The ARN for the image. + Arn *string `type:"string"` + + // The source image ARN from which this image was created. + BaseImageArn *string `type:"string"` + + // The timestamp when the image was created. + CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // A meaningful description for the image. + Description *string `min:"1" type:"string"` + + // The display name for the image. + DisplayName *string `min:"1" type:"string"` + + // The unique identifier for the image. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The operating system platform of the image. + Platform *string `type:"string" enum:"PlatformType"` + + // The image starts in the PENDING state, and then moves to AVAILABLE if image + // creation succeeds and FAILED if image creation has failed. + State *string `type:"string" enum:"ImageState"` + + // The reason why the last state change occurred. + StateChangeReason *ImageStateChangeReason `type:"structure"` + + // The visibility of an image to the user; images can be public or private. + Visibility *string `type:"string" enum:"VisibilityType"` +} + +// String returns the string representation +func (s Image) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Image) GoString() string { + return s.String() +} + +// SetApplications sets the Applications field's value. +func (s *Image) SetApplications(v []*Application) *Image { + s.Applications = v + return s +} + +// SetArn sets the Arn field's value. +func (s *Image) SetArn(v string) *Image { + s.Arn = &v + return s +} + +// SetBaseImageArn sets the BaseImageArn field's value. +func (s *Image) SetBaseImageArn(v string) *Image { + s.BaseImageArn = &v + return s +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *Image) SetCreatedTime(v time.Time) *Image { + s.CreatedTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Image) SetDescription(v string) *Image { + s.Description = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *Image) SetDisplayName(v string) *Image { + s.DisplayName = &v + return s +} + +// SetName sets the Name field's value. +func (s *Image) SetName(v string) *Image { + s.Name = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *Image) SetPlatform(v string) *Image { + s.Platform = &v + return s +} + +// SetState sets the State field's value. +func (s *Image) SetState(v string) *Image { + s.State = &v + return s +} + +// SetStateChangeReason sets the StateChangeReason field's value. +func (s *Image) SetStateChangeReason(v *ImageStateChangeReason) *Image { + s.StateChangeReason = v + return s +} + +// SetVisibility sets the Visibility field's value. +func (s *Image) SetVisibility(v string) *Image { + s.Visibility = &v + return s +} + +// The reason why the last state change occurred. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ImageStateChangeReason +type ImageStateChangeReason struct { + _ struct{} `type:"structure"` + + // The state change reason code of the image. + Code *string `type:"string" enum:"ImageStateChangeReasonCode"` + + // The state change reason message to the end user. + Message *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ImageStateChangeReason) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImageStateChangeReason) GoString() string { + return s.String() +} + +// SetCode sets the Code field's value. +func (s *ImageStateChangeReason) SetCode(v string) *ImageStateChangeReason { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *ImageStateChangeReason) SetMessage(v string) *ImageStateChangeReason { + s.Message = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListAssociatedFleetsRequest +type ListAssociatedFleetsInput struct { + _ struct{} `type:"structure"` + + // The pagination token to use to retrieve the next page of results for this + // operation. If this value is null, it retrieves the first page. + NextToken *string `min:"1" type:"string"` + + // The name of the stack whose associated fleets are listed. + // + // StackName is a required field + StackName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListAssociatedFleetsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAssociatedFleetsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAssociatedFleetsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAssociatedFleetsInput"} + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.StackName == nil { + invalidParams.Add(request.NewErrParamRequired("StackName")) + } + if s.StackName != nil && len(*s.StackName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssociatedFleetsInput) SetNextToken(v string) *ListAssociatedFleetsInput { + s.NextToken = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *ListAssociatedFleetsInput) SetStackName(v string) *ListAssociatedFleetsInput { + s.StackName = &v + return s +} + +// The response from a successful operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListAssociatedFleetsResult +type ListAssociatedFleetsOutput struct { + _ struct{} `type:"structure"` + + // The names of associated fleets. + Names []*string `type:"list"` + + // The pagination token to use to retrieve the next page of results for this + // operation. If there are no more pages, this value is null. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListAssociatedFleetsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAssociatedFleetsOutput) GoString() string { + return s.String() +} + +// SetNames sets the Names field's value. +func (s *ListAssociatedFleetsOutput) SetNames(v []*string) *ListAssociatedFleetsOutput { + s.Names = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssociatedFleetsOutput) SetNextToken(v string) *ListAssociatedFleetsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListAssociatedStacksRequest +type ListAssociatedStacksInput struct { + _ struct{} `type:"structure"` + + // The name of the fleet whose associated stacks are listed. + // + // FleetName is a required field + FleetName *string `min:"1" type:"string" required:"true"` + + // The pagination token to use to retrieve the next page of results for this + // operation. If this value is null, it retrieves the first page. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListAssociatedStacksInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAssociatedStacksInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAssociatedStacksInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAssociatedStacksInput"} + if s.FleetName == nil { + invalidParams.Add(request.NewErrParamRequired("FleetName")) + } + if s.FleetName != nil && len(*s.FleetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FleetName", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFleetName sets the FleetName field's value. +func (s *ListAssociatedStacksInput) SetFleetName(v string) *ListAssociatedStacksInput { + s.FleetName = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssociatedStacksInput) SetNextToken(v string) *ListAssociatedStacksInput { + s.NextToken = &v + return s +} + +// The response from a successful operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListAssociatedStacksResult +type ListAssociatedStacksOutput struct { + _ struct{} `type:"structure"` + + // The names of associated stacks. + Names []*string `type:"list"` + + // The pagination token to use to retrieve the next page of results for this + // operation. If there are no more pages, this value is null. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListAssociatedStacksOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAssociatedStacksOutput) GoString() string { + return s.String() +} + +// SetNames sets the Names field's value. +func (s *ListAssociatedStacksOutput) SetNames(v []*string) *ListAssociatedStacksOutput { + s.Names = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssociatedStacksOutput) SetNextToken(v string) *ListAssociatedStacksOutput { + s.NextToken = &v + return s +} + +// Contains the parameters for a streaming session. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/Session +type Session struct { + _ struct{} `type:"structure"` + + // The name of the fleet for which the streaming session was created. + // + // FleetName is a required field + FleetName *string `min:"1" type:"string" required:"true"` + + // The unique ID for a streaming session. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` + + // The name of the stack for which the streaming session was created. + // + // StackName is a required field + StackName *string `min:"1" type:"string" required:"true"` + + // The current state of the streaming session. + // + // State is a required field + State *string `type:"string" required:"true" enum:"SessionState"` + + // The identifier of the user for whom the session was created. + // + // UserId is a required field + UserId *string `min:"2" type:"string" required:"true"` +} + +// String returns the string representation +func (s Session) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Session) GoString() string { + return s.String() +} + +// SetFleetName sets the FleetName field's value. +func (s *Session) SetFleetName(v string) *Session { + s.FleetName = &v + return s +} + +// SetId sets the Id field's value. +func (s *Session) SetId(v string) *Session { + s.Id = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *Session) SetStackName(v string) *Session { + s.StackName = &v + return s +} + +// SetState sets the State field's value. +func (s *Session) SetState(v string) *Session { + s.State = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *Session) SetUserId(v string) *Session { + s.UserId = &v + return s +} + +// Details about a stack. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/Stack +type Stack struct { + _ struct{} `type:"structure"` + + // The ARN of the stack. + Arn *string `type:"string"` + + // The timestamp when the stack was created. + CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // A meaningful description for the stack. + Description *string `min:"1" type:"string"` + + // A display name for the stack. + DisplayName *string `min:"1" type:"string"` + + // The unique identifier of the stack. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s Stack) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Stack) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *Stack) SetArn(v string) *Stack { + s.Arn = &v + return s +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *Stack) SetCreatedTime(v time.Time) *Stack { + s.CreatedTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Stack) SetDescription(v string) *Stack { + s.Description = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *Stack) SetDisplayName(v string) *Stack { + s.DisplayName = &v + return s +} + +// SetName sets the Name field's value. +func (s *Stack) SetName(v string) *Stack { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StartFleetRequest +type StartFleetInput struct { + _ struct{} `type:"structure"` + + // The name of the fleet to start. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s StartFleetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartFleetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartFleetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartFleetInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *StartFleetInput) SetName(v string) *StartFleetInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StartFleetResult +type StartFleetOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s StartFleetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartFleetOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StopFleetRequest +type StopFleetInput struct { + _ struct{} `type:"structure"` + + // The name of the fleet to stop. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s StopFleetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopFleetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopFleetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopFleetInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *StopFleetInput) SetName(v string) *StopFleetInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StopFleetResult +type StopFleetOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s StopFleetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopFleetOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateFleetRequest +type UpdateFleetInput struct { + _ struct{} `type:"structure"` + + // The parameters for the capacity allocated to the fleet. + ComputeCapacity *ComputeCapacity `type:"structure"` + + // Delete the VPC association for the specified fleet. + DeleteVpcConfig *bool `type:"boolean"` + + // The description displayed to end users on the AppStream 2.0 portal. + Description *string `type:"string"` + + // The time after disconnection when a session is considered to have ended. + // When the user reconnects after a disconnection, the user is connected to + // the same instance within this time interval. + DisconnectTimeoutInSeconds *int64 `type:"integer"` + + // The name displayed to end users on the AppStream 2.0 portal. + DisplayName *string `type:"string"` + + // The image name from which a fleet is created. + ImageName *string `min:"1" type:"string"` + + // The instance type of compute resources for the fleet. Fleet instances are + // launched from this instance type. + InstanceType *string `min:"1" type:"string"` + + // The maximum time during which a streaming session can run. + MaxUserDurationInSeconds *int64 `type:"integer"` + + // The name of the fleet. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The VPC configuration for the fleet. + VpcConfig *VpcConfig `type:"structure"` +} + +// String returns the string representation +func (s UpdateFleetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateFleetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateFleetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateFleetInput"} + if s.ImageName != nil && len(*s.ImageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ImageName", 1)) + } + if s.InstanceType != nil && len(*s.InstanceType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.ComputeCapacity != nil { + if err := s.ComputeCapacity.Validate(); err != nil { + invalidParams.AddNested("ComputeCapacity", err.(request.ErrInvalidParams)) + } + } + if s.VpcConfig != nil { + if err := s.VpcConfig.Validate(); err != nil { + invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetComputeCapacity sets the ComputeCapacity field's value. +func (s *UpdateFleetInput) SetComputeCapacity(v *ComputeCapacity) *UpdateFleetInput { + s.ComputeCapacity = v + return s +} + +// SetDeleteVpcConfig sets the DeleteVpcConfig field's value. +func (s *UpdateFleetInput) SetDeleteVpcConfig(v bool) *UpdateFleetInput { + s.DeleteVpcConfig = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateFleetInput) SetDescription(v string) *UpdateFleetInput { + s.Description = &v + return s +} + +// SetDisconnectTimeoutInSeconds sets the DisconnectTimeoutInSeconds field's value. +func (s *UpdateFleetInput) SetDisconnectTimeoutInSeconds(v int64) *UpdateFleetInput { + s.DisconnectTimeoutInSeconds = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *UpdateFleetInput) SetDisplayName(v string) *UpdateFleetInput { + s.DisplayName = &v + return s +} + +// SetImageName sets the ImageName field's value. +func (s *UpdateFleetInput) SetImageName(v string) *UpdateFleetInput { + s.ImageName = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *UpdateFleetInput) SetInstanceType(v string) *UpdateFleetInput { + s.InstanceType = &v + return s +} + +// SetMaxUserDurationInSeconds sets the MaxUserDurationInSeconds field's value. +func (s *UpdateFleetInput) SetMaxUserDurationInSeconds(v int64) *UpdateFleetInput { + s.MaxUserDurationInSeconds = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateFleetInput) SetName(v string) *UpdateFleetInput { + s.Name = &v + return s +} + +// SetVpcConfig sets the VpcConfig field's value. +func (s *UpdateFleetInput) SetVpcConfig(v *VpcConfig) *UpdateFleetInput { + s.VpcConfig = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateFleetResult +type UpdateFleetOutput struct { + _ struct{} `type:"structure"` + + // A list of fleet details. + Fleet *Fleet `type:"structure"` +} + +// String returns the string representation +func (s UpdateFleetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateFleetOutput) GoString() string { + return s.String() +} + +// SetFleet sets the Fleet field's value. +func (s *UpdateFleetOutput) SetFleet(v *Fleet) *UpdateFleetOutput { + s.Fleet = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateStackRequest +type UpdateStackInput struct { + _ struct{} `type:"structure"` + + // The description displayed to end users on the AppStream 2.0 portal. + Description *string `type:"string"` + + // The name displayed to end users on the AppStream 2.0 portal. + DisplayName *string `type:"string"` + + // The name of the stack to update. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateStackInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateStackInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateStackInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateStackInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *UpdateStackInput) SetDescription(v string) *UpdateStackInput { + s.Description = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *UpdateStackInput) SetDisplayName(v string) *UpdateStackInput { + s.DisplayName = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateStackInput) SetName(v string) *UpdateStackInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateStackResult +type UpdateStackOutput struct { + _ struct{} `type:"structure"` + + // A list of stack details. + Stack *Stack `type:"structure"` +} + +// String returns the string representation +func (s UpdateStackOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateStackOutput) GoString() string { + return s.String() +} + +// SetStack sets the Stack field's value. +func (s *UpdateStackOutput) SetStack(v *Stack) *UpdateStackOutput { + s.Stack = v + return s +} + +// The VPC in which the fleet is launched. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/VpcConfig +type VpcConfig struct { + _ struct{} `type:"structure"` + + // The list of subnets to which a network interface is established from the + // fleet instance. + // + // SubnetIds is a required field + SubnetIds []*string `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s VpcConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VpcConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *VpcConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "VpcConfig"} + if s.SubnetIds == nil { + invalidParams.Add(request.NewErrParamRequired("SubnetIds")) + } + if s.SubnetIds != nil && len(s.SubnetIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SubnetIds", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *VpcConfig) SetSubnetIds(v []*string) *VpcConfig { + s.SubnetIds = v + return s +} + +const ( + // FleetErrorCodeIamServiceRoleMissingEniDescribeAction is a FleetErrorCode enum value + FleetErrorCodeIamServiceRoleMissingEniDescribeAction = "IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION" + + // FleetErrorCodeIamServiceRoleMissingEniCreateAction is a FleetErrorCode enum value + FleetErrorCodeIamServiceRoleMissingEniCreateAction = "IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION" + + // FleetErrorCodeIamServiceRoleMissingEniDeleteAction is a FleetErrorCode enum value + FleetErrorCodeIamServiceRoleMissingEniDeleteAction = "IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION" + + // FleetErrorCodeNetworkInterfaceLimitExceeded is a FleetErrorCode enum value + FleetErrorCodeNetworkInterfaceLimitExceeded = "NETWORK_INTERFACE_LIMIT_EXCEEDED" + + // FleetErrorCodeInternalServiceError is a FleetErrorCode enum value + FleetErrorCodeInternalServiceError = "INTERNAL_SERVICE_ERROR" + + // FleetErrorCodeIamServiceRoleIsMissing is a FleetErrorCode enum value + FleetErrorCodeIamServiceRoleIsMissing = "IAM_SERVICE_ROLE_IS_MISSING" + + // FleetErrorCodeSubnetHasInsufficientIpAddresses is a FleetErrorCode enum value + FleetErrorCodeSubnetHasInsufficientIpAddresses = "SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES" + + // FleetErrorCodeIamServiceRoleMissingDescribeSubnetAction is a FleetErrorCode enum value + FleetErrorCodeIamServiceRoleMissingDescribeSubnetAction = "IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION" + + // FleetErrorCodeSubnetNotFound is a FleetErrorCode enum value + FleetErrorCodeSubnetNotFound = "SUBNET_NOT_FOUND" + + // FleetErrorCodeImageNotFound is a FleetErrorCode enum value + FleetErrorCodeImageNotFound = "IMAGE_NOT_FOUND" + + // FleetErrorCodeInvalidSubnetConfiguration is a FleetErrorCode enum value + FleetErrorCodeInvalidSubnetConfiguration = "INVALID_SUBNET_CONFIGURATION" +) + +const ( + // FleetStateStarting is a FleetState enum value + FleetStateStarting = "STARTING" + + // FleetStateRunning is a FleetState enum value + FleetStateRunning = "RUNNING" + + // FleetStateStopping is a FleetState enum value + FleetStateStopping = "STOPPING" + + // FleetStateStopped is a FleetState enum value + FleetStateStopped = "STOPPED" +) + +const ( + // ImageStatePending is a ImageState enum value + ImageStatePending = "PENDING" + + // ImageStateAvailable is a ImageState enum value + ImageStateAvailable = "AVAILABLE" + + // ImageStateFailed is a ImageState enum value + ImageStateFailed = "FAILED" + + // ImageStateDeleting is a ImageState enum value + ImageStateDeleting = "DELETING" +) + +const ( + // ImageStateChangeReasonCodeInternalError is a ImageStateChangeReasonCode enum value + ImageStateChangeReasonCodeInternalError = "INTERNAL_ERROR" + + // ImageStateChangeReasonCodeImageBuilderNotAvailable is a ImageStateChangeReasonCode enum value + ImageStateChangeReasonCodeImageBuilderNotAvailable = "IMAGE_BUILDER_NOT_AVAILABLE" +) + +const ( + // PlatformTypeWindows is a PlatformType enum value + PlatformTypeWindows = "WINDOWS" +) + +// Possible values for the state of a streaming session. +const ( + // SessionStateActive is a SessionState enum value + SessionStateActive = "ACTIVE" + + // SessionStatePending is a SessionState enum value + SessionStatePending = "PENDING" + + // SessionStateExpired is a SessionState enum value + SessionStateExpired = "EXPIRED" +) + +const ( + // VisibilityTypePublic is a VisibilityType enum value + VisibilityTypePublic = "PUBLIC" + + // VisibilityTypePrivate is a VisibilityType enum value + VisibilityTypePrivate = "PRIVATE" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/appstream/appstreamiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/appstream/appstreamiface/interface.go new file mode 100644 index 000000000..6e2137f88 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/appstream/appstreamiface/interface.go @@ -0,0 +1,139 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package appstreamiface provides an interface to enable mocking the Amazon AppStream service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package appstreamiface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/appstream" +) + +// AppStreamAPI provides an interface to enable mocking the +// appstream.AppStream service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Amazon AppStream. +// func myFunc(svc appstreamiface.AppStreamAPI) bool { +// // Make svc.AssociateFleet request +// } +// +// func main() { +// sess := session.New() +// svc := appstream.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockAppStreamClient struct { +// appstreamiface.AppStreamAPI +// } +// func (m *mockAppStreamClient) AssociateFleet(input *appstream.AssociateFleetInput) (*appstream.AssociateFleetOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockAppStreamClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type AppStreamAPI interface { + AssociateFleetRequest(*appstream.AssociateFleetInput) (*request.Request, *appstream.AssociateFleetOutput) + + AssociateFleet(*appstream.AssociateFleetInput) (*appstream.AssociateFleetOutput, error) + + CreateFleetRequest(*appstream.CreateFleetInput) (*request.Request, *appstream.CreateFleetOutput) + + CreateFleet(*appstream.CreateFleetInput) (*appstream.CreateFleetOutput, error) + + CreateStackRequest(*appstream.CreateStackInput) (*request.Request, *appstream.CreateStackOutput) + + CreateStack(*appstream.CreateStackInput) (*appstream.CreateStackOutput, error) + + CreateStreamingURLRequest(*appstream.CreateStreamingURLInput) (*request.Request, *appstream.CreateStreamingURLOutput) + + CreateStreamingURL(*appstream.CreateStreamingURLInput) (*appstream.CreateStreamingURLOutput, error) + + DeleteFleetRequest(*appstream.DeleteFleetInput) (*request.Request, *appstream.DeleteFleetOutput) + + DeleteFleet(*appstream.DeleteFleetInput) (*appstream.DeleteFleetOutput, error) + + DeleteStackRequest(*appstream.DeleteStackInput) (*request.Request, *appstream.DeleteStackOutput) + + DeleteStack(*appstream.DeleteStackInput) (*appstream.DeleteStackOutput, error) + + DescribeFleetsRequest(*appstream.DescribeFleetsInput) (*request.Request, *appstream.DescribeFleetsOutput) + + DescribeFleets(*appstream.DescribeFleetsInput) (*appstream.DescribeFleetsOutput, error) + + DescribeImagesRequest(*appstream.DescribeImagesInput) (*request.Request, *appstream.DescribeImagesOutput) + + DescribeImages(*appstream.DescribeImagesInput) (*appstream.DescribeImagesOutput, error) + + DescribeSessionsRequest(*appstream.DescribeSessionsInput) (*request.Request, *appstream.DescribeSessionsOutput) + + DescribeSessions(*appstream.DescribeSessionsInput) (*appstream.DescribeSessionsOutput, error) + + DescribeStacksRequest(*appstream.DescribeStacksInput) (*request.Request, *appstream.DescribeStacksOutput) + + DescribeStacks(*appstream.DescribeStacksInput) (*appstream.DescribeStacksOutput, error) + + DisassociateFleetRequest(*appstream.DisassociateFleetInput) (*request.Request, *appstream.DisassociateFleetOutput) + + DisassociateFleet(*appstream.DisassociateFleetInput) (*appstream.DisassociateFleetOutput, error) + + ExpireSessionRequest(*appstream.ExpireSessionInput) (*request.Request, *appstream.ExpireSessionOutput) + + ExpireSession(*appstream.ExpireSessionInput) (*appstream.ExpireSessionOutput, error) + + ListAssociatedFleetsRequest(*appstream.ListAssociatedFleetsInput) (*request.Request, *appstream.ListAssociatedFleetsOutput) + + ListAssociatedFleets(*appstream.ListAssociatedFleetsInput) (*appstream.ListAssociatedFleetsOutput, error) + + ListAssociatedStacksRequest(*appstream.ListAssociatedStacksInput) (*request.Request, *appstream.ListAssociatedStacksOutput) + + ListAssociatedStacks(*appstream.ListAssociatedStacksInput) (*appstream.ListAssociatedStacksOutput, error) + + StartFleetRequest(*appstream.StartFleetInput) (*request.Request, *appstream.StartFleetOutput) + + StartFleet(*appstream.StartFleetInput) (*appstream.StartFleetOutput, error) + + StopFleetRequest(*appstream.StopFleetInput) (*request.Request, *appstream.StopFleetOutput) + + StopFleet(*appstream.StopFleetInput) (*appstream.StopFleetOutput, error) + + UpdateFleetRequest(*appstream.UpdateFleetInput) (*request.Request, *appstream.UpdateFleetOutput) + + UpdateFleet(*appstream.UpdateFleetInput) (*appstream.UpdateFleetOutput, error) + + UpdateStackRequest(*appstream.UpdateStackInput) (*request.Request, *appstream.UpdateStackOutput) + + UpdateStack(*appstream.UpdateStackInput) (*appstream.UpdateStackOutput, error) + + WaitUntilFleetStarted(*appstream.DescribeFleetsInput) error + + WaitUntilFleetStopped(*appstream.DescribeFleetsInput) error +} + +var _ AppStreamAPI = (*appstream.AppStream)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/appstream/errors.go b/vendor/github.com/aws/aws-sdk-go/service/appstream/errors.go new file mode 100644 index 000000000..4ed7236ea --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/appstream/errors.go @@ -0,0 +1,48 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package appstream + +const ( + + // ErrCodeInvalidRoleException for service response error code + // "InvalidRoleException". + // + // The specified role is invalid. + ErrCodeInvalidRoleException = "InvalidRoleException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // The requested limit exceeds the permitted limit for an account. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeOperationNotPermittedException for service response error code + // "OperationNotPermittedException". + // + // The attempted operation is not permitted. + ErrCodeOperationNotPermittedException = "OperationNotPermittedException" + + // ErrCodeResourceAlreadyExistsException for service response error code + // "ResourceAlreadyExistsException". + // + // The specified resource already exists. + ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" + + // ErrCodeResourceInUseException for service response error code + // "ResourceInUseException". + // + // The specified resource is in use. + ErrCodeResourceInUseException = "ResourceInUseException" + + // ErrCodeResourceNotAvailableException for service response error code + // "ResourceNotAvailableException". + // + // The specified resource exists and is not in use, but isn't available. + ErrCodeResourceNotAvailableException = "ResourceNotAvailableException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The specified resource was not found. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/appstream/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/appstream/examples_test.go new file mode 100644 index 000000000..fd6b4d12c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/appstream/examples_test.go @@ -0,0 +1,453 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package appstream_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/appstream" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExampleAppStream_AssociateFleet() { + sess := session.Must(session.NewSession()) + + svc := appstream.New(sess) + + params := &appstream.AssociateFleetInput{ + FleetName: aws.String("String"), // Required + StackName: aws.String("String"), // Required + } + resp, err := svc.AssociateFleet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAppStream_CreateFleet() { + sess := session.Must(session.NewSession()) + + svc := appstream.New(sess) + + params := &appstream.CreateFleetInput{ + ComputeCapacity: &appstream.ComputeCapacity{ // Required + DesiredInstances: aws.Int64(1), // Required + }, + ImageName: aws.String("String"), // Required + InstanceType: aws.String("String"), // Required + Name: aws.String("Name"), // Required + Description: aws.String("Description"), + DisconnectTimeoutInSeconds: aws.Int64(1), + DisplayName: aws.String("DisplayName"), + MaxUserDurationInSeconds: aws.Int64(1), + VpcConfig: &appstream.VpcConfig{ + SubnetIds: []*string{ // Required + aws.String("String"), // Required + // More values... + }, + }, + } + resp, err := svc.CreateFleet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAppStream_CreateStack() { + sess := session.Must(session.NewSession()) + + svc := appstream.New(sess) + + params := &appstream.CreateStackInput{ + Name: aws.String("String"), // Required + Description: aws.String("Description"), + DisplayName: aws.String("DisplayName"), + } + resp, err := svc.CreateStack(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAppStream_CreateStreamingURL() { + sess := session.Must(session.NewSession()) + + svc := appstream.New(sess) + + params := &appstream.CreateStreamingURLInput{ + FleetName: aws.String("String"), // Required + StackName: aws.String("String"), // Required + UserId: aws.String("UserId"), // Required + ApplicationId: aws.String("String"), + SessionContext: aws.String("String"), + Validity: aws.Int64(1), + } + resp, err := svc.CreateStreamingURL(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAppStream_DeleteFleet() { + sess := session.Must(session.NewSession()) + + svc := appstream.New(sess) + + params := &appstream.DeleteFleetInput{ + Name: aws.String("String"), // Required + } + resp, err := svc.DeleteFleet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAppStream_DeleteStack() { + sess := session.Must(session.NewSession()) + + svc := appstream.New(sess) + + params := &appstream.DeleteStackInput{ + Name: aws.String("String"), // Required + } + resp, err := svc.DeleteStack(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAppStream_DescribeFleets() { + sess := session.Must(session.NewSession()) + + svc := appstream.New(sess) + + params := &appstream.DescribeFleetsInput{ + Names: []*string{ + aws.String("String"), // Required + // More values... + }, + NextToken: aws.String("String"), + } + resp, err := svc.DescribeFleets(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAppStream_DescribeImages() { + sess := session.Must(session.NewSession()) + + svc := appstream.New(sess) + + params := &appstream.DescribeImagesInput{ + Names: []*string{ + aws.String("String"), // Required + // More values... + }, + } + resp, err := svc.DescribeImages(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAppStream_DescribeSessions() { + sess := session.Must(session.NewSession()) + + svc := appstream.New(sess) + + params := &appstream.DescribeSessionsInput{ + FleetName: aws.String("String"), // Required + StackName: aws.String("String"), // Required + Limit: aws.Int64(1), + NextToken: aws.String("String"), + UserId: aws.String("UserId"), + } + resp, err := svc.DescribeSessions(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAppStream_DescribeStacks() { + sess := session.Must(session.NewSession()) + + svc := appstream.New(sess) + + params := &appstream.DescribeStacksInput{ + Names: []*string{ + aws.String("String"), // Required + // More values... + }, + NextToken: aws.String("String"), + } + resp, err := svc.DescribeStacks(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAppStream_DisassociateFleet() { + sess := session.Must(session.NewSession()) + + svc := appstream.New(sess) + + params := &appstream.DisassociateFleetInput{ + FleetName: aws.String("String"), // Required + StackName: aws.String("String"), // Required + } + resp, err := svc.DisassociateFleet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAppStream_ExpireSession() { + sess := session.Must(session.NewSession()) + + svc := appstream.New(sess) + + params := &appstream.ExpireSessionInput{ + SessionId: aws.String("String"), // Required + } + resp, err := svc.ExpireSession(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAppStream_ListAssociatedFleets() { + sess := session.Must(session.NewSession()) + + svc := appstream.New(sess) + + params := &appstream.ListAssociatedFleetsInput{ + StackName: aws.String("String"), // Required + NextToken: aws.String("String"), + } + resp, err := svc.ListAssociatedFleets(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAppStream_ListAssociatedStacks() { + sess := session.Must(session.NewSession()) + + svc := appstream.New(sess) + + params := &appstream.ListAssociatedStacksInput{ + FleetName: aws.String("String"), // Required + NextToken: aws.String("String"), + } + resp, err := svc.ListAssociatedStacks(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAppStream_StartFleet() { + sess := session.Must(session.NewSession()) + + svc := appstream.New(sess) + + params := &appstream.StartFleetInput{ + Name: aws.String("String"), // Required + } + resp, err := svc.StartFleet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAppStream_StopFleet() { + sess := session.Must(session.NewSession()) + + svc := appstream.New(sess) + + params := &appstream.StopFleetInput{ + Name: aws.String("String"), // Required + } + resp, err := svc.StopFleet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAppStream_UpdateFleet() { + sess := session.Must(session.NewSession()) + + svc := appstream.New(sess) + + params := &appstream.UpdateFleetInput{ + Name: aws.String("String"), // Required + ComputeCapacity: &appstream.ComputeCapacity{ + DesiredInstances: aws.Int64(1), // Required + }, + DeleteVpcConfig: aws.Bool(true), + Description: aws.String("Description"), + DisconnectTimeoutInSeconds: aws.Int64(1), + DisplayName: aws.String("DisplayName"), + ImageName: aws.String("String"), + InstanceType: aws.String("String"), + MaxUserDurationInSeconds: aws.Int64(1), + VpcConfig: &appstream.VpcConfig{ + SubnetIds: []*string{ // Required + aws.String("String"), // Required + // More values... + }, + }, + } + resp, err := svc.UpdateFleet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleAppStream_UpdateStack() { + sess := session.Must(session.NewSession()) + + svc := appstream.New(sess) + + params := &appstream.UpdateStackInput{ + Name: aws.String("String"), // Required + Description: aws.String("Description"), + DisplayName: aws.String("DisplayName"), + } + resp, err := svc.UpdateStack(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/appstream/service.go b/vendor/github.com/aws/aws-sdk-go/service/appstream/service.go new file mode 100644 index 000000000..7e45e34d5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/appstream/service.go @@ -0,0 +1,96 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package appstream + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" +) + +// API documentation for Amazon AppStream 2.0. +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01 +type AppStream struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "appstream2" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the AppStream client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a AppStream client from just a session. +// svc := appstream.New(mySession) +// +// // Create a AppStream client with additional configuration +// svc := appstream.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *AppStream { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *AppStream { + if len(signingName) == 0 { + signingName = "appstream" + } + svc := &AppStream{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2016-12-01", + JSONVersion: "1.1", + TargetPrefix: "PhotonAdminProxyService", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a AppStream operation and runs any +// custom request initialization. +func (c *AppStream) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/appstream/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/appstream/waiters.go new file mode 100644 index 000000000..013c5296f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/appstream/waiters.go @@ -0,0 +1,85 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package appstream + +import ( + "github.com/aws/aws-sdk-go/private/waiter" +) + +// WaitUntilFleetStarted uses the Amazon AppStream API operation +// DescribeFleets to wait for a condition to be met before returning. +// If the condition is not meet within the max attempt window an error will +// be returned. +func (c *AppStream) WaitUntilFleetStarted(input *DescribeFleetsInput) error { + waiterCfg := waiter.Config{ + Operation: "DescribeFleets", + Delay: 30, + MaxAttempts: 40, + Acceptors: []waiter.WaitAcceptor{ + { + State: "success", + Matcher: "pathAll", + Argument: "fleets[].state", + Expected: "ACTIVE", + }, + { + State: "failure", + Matcher: "pathAny", + Argument: "fleets[].state", + Expected: "PENDING_DEACTIVATE", + }, + { + State: "failure", + Matcher: "pathAny", + Argument: "fleets[].state", + Expected: "INACTIVE", + }, + }, + } + + w := waiter.Waiter{ + Client: c, + Input: input, + Config: waiterCfg, + } + return w.Wait() +} + +// WaitUntilFleetStopped uses the Amazon AppStream API operation +// DescribeFleets to wait for a condition to be met before returning. +// If the condition is not meet within the max attempt window an error will +// be returned. +func (c *AppStream) WaitUntilFleetStopped(input *DescribeFleetsInput) error { + waiterCfg := waiter.Config{ + Operation: "DescribeFleets", + Delay: 30, + MaxAttempts: 40, + Acceptors: []waiter.WaitAcceptor{ + { + State: "success", + Matcher: "pathAll", + Argument: "fleets[].state", + Expected: "INACTIVE", + }, + { + State: "failure", + Matcher: "pathAny", + Argument: "fleets[].state", + Expected: "PENDING_ACTIVATE", + }, + { + State: "failure", + Matcher: "pathAny", + Argument: "fleets[].state", + Expected: "ACTIVE", + }, + }, + } + + w := waiter.Waiter{ + Client: c, + Input: input, + Config: waiterCfg, + } + return w.Wait() +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/api.go b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/api.go index 2f40e8506..64bb6017f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/api.go @@ -39,6 +39,7 @@ const opAttachInstances = "AttachInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstances func (c *AutoScaling) AttachInstancesRequest(input *AttachInstancesInput) (req *request.Request, output *AttachInstancesOutput) { op := &request.Operation{ Name: opAttachInstances, @@ -50,11 +51,10 @@ func (c *AutoScaling) AttachInstancesRequest(input *AttachInstancesInput) (req * input = &AttachInstancesInput{} } + output = &AttachInstancesOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AttachInstancesOutput{} - req.Data = output return } @@ -73,7 +73,7 @@ func (c *AutoScaling) AttachInstancesRequest(input *AttachInstancesInput) (req * // with the target groups. // // For more information, see Attach EC2 Instances to Your Auto Scaling Group -// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/attach-instance-asg.html) +// (http://docs.aws.amazon.com/autoscaling/latest/userguide/attach-instance-asg.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -84,10 +84,11 @@ func (c *AutoScaling) AttachInstancesRequest(input *AttachInstancesInput) (req * // API operation AttachInstances for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstances func (c *AutoScaling) AttachInstances(input *AttachInstancesInput) (*AttachInstancesOutput, error) { req, out := c.AttachInstancesRequest(input) err := req.Send() @@ -120,6 +121,7 @@ const opAttachLoadBalancerTargetGroups = "AttachLoadBalancerTargetGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroups func (c *AutoScaling) AttachLoadBalancerTargetGroupsRequest(input *AttachLoadBalancerTargetGroupsInput) (req *request.Request, output *AttachLoadBalancerTargetGroupsOutput) { op := &request.Operation{ Name: opAttachLoadBalancerTargetGroups, @@ -131,9 +133,8 @@ func (c *AutoScaling) AttachLoadBalancerTargetGroupsRequest(input *AttachLoadBal input = &AttachLoadBalancerTargetGroupsInput{} } - req = c.newRequest(op, input, output) output = &AttachLoadBalancerTargetGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -145,7 +146,7 @@ func (c *AutoScaling) AttachLoadBalancerTargetGroupsRequest(input *AttachLoadBal // To detach the target group from the Auto Scaling group, use DetachLoadBalancerTargetGroups. // // For more information, see Attach a Load Balancer to Your Auto Scaling Group -// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/attach-load-balancer-asg.html) +// (http://docs.aws.amazon.com/autoscaling/latest/userguide/attach-load-balancer-asg.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -156,10 +157,11 @@ func (c *AutoScaling) AttachLoadBalancerTargetGroupsRequest(input *AttachLoadBal // API operation AttachLoadBalancerTargetGroups for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroups func (c *AutoScaling) AttachLoadBalancerTargetGroups(input *AttachLoadBalancerTargetGroupsInput) (*AttachLoadBalancerTargetGroupsOutput, error) { req, out := c.AttachLoadBalancerTargetGroupsRequest(input) err := req.Send() @@ -192,6 +194,7 @@ const opAttachLoadBalancers = "AttachLoadBalancers" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancers func (c *AutoScaling) AttachLoadBalancersRequest(input *AttachLoadBalancersInput) (req *request.Request, output *AttachLoadBalancersOutput) { op := &request.Operation{ Name: opAttachLoadBalancers, @@ -203,9 +206,8 @@ func (c *AutoScaling) AttachLoadBalancersRequest(input *AttachLoadBalancersInput input = &AttachLoadBalancersInput{} } - req = c.newRequest(op, input, output) output = &AttachLoadBalancersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -220,7 +222,7 @@ func (c *AutoScaling) AttachLoadBalancersRequest(input *AttachLoadBalancersInput // To detach the load balancer from the Auto Scaling group, use DetachLoadBalancers. // // For more information, see Attach a Load Balancer to Your Auto Scaling Group -// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/attach-load-balancer-asg.html) +// (http://docs.aws.amazon.com/autoscaling/latest/userguide/attach-load-balancer-asg.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -231,10 +233,11 @@ func (c *AutoScaling) AttachLoadBalancersRequest(input *AttachLoadBalancersInput // API operation AttachLoadBalancers for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancers func (c *AutoScaling) AttachLoadBalancers(input *AttachLoadBalancersInput) (*AttachLoadBalancersOutput, error) { req, out := c.AttachLoadBalancersRequest(input) err := req.Send() @@ -267,6 +270,7 @@ const opCompleteLifecycleAction = "CompleteLifecycleAction" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleAction func (c *AutoScaling) CompleteLifecycleActionRequest(input *CompleteLifecycleActionInput) (req *request.Request, output *CompleteLifecycleActionOutput) { op := &request.Operation{ Name: opCompleteLifecycleAction, @@ -278,9 +282,8 @@ func (c *AutoScaling) CompleteLifecycleActionRequest(input *CompleteLifecycleAct input = &CompleteLifecycleActionInput{} } - req = c.newRequest(op, input, output) output = &CompleteLifecycleActionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -292,24 +295,22 @@ func (c *AutoScaling) CompleteLifecycleActionRequest(input *CompleteLifecycleAct // This step is a part of the procedure for adding a lifecycle hook to an Auto // Scaling group: // -// (Optional) Create a Lambda function and a rule that allows CloudWatch -// Events to invoke your Lambda function when Auto Scaling launches or terminates -// instances. +// (Optional) Create a Lambda function and a rule that allows CloudWatch Events +// to invoke your Lambda function when Auto Scaling launches or terminates instances. // -// (Optional) Create a notification target and an IAM role. The target can -// be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto -// Scaling to publish lifecycle notifications to the target. +// (Optional) Create a notification target and an IAM role. The target can be +// either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling +// to publish lifecycle notifications to the target. // -// Create the lifecycle hook. Specify whether the hook is used when the instances +// Create the lifecycle hook. Specify whether the hook is used when the instances // launch or terminate. // -// If you need more time, record the lifecycle action heartbeat to keep the +// If you need more time, record the lifecycle action heartbeat to keep the // instance in a pending state. // -// If you finish before the timeout period ends, complete the lifecycle -// action. +// If you finish before the timeout period ends, complete the lifecycle action. // -// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) +// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -320,10 +321,11 @@ func (c *AutoScaling) CompleteLifecycleActionRequest(input *CompleteLifecycleAct // API operation CompleteLifecycleAction for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleAction func (c *AutoScaling) CompleteLifecycleAction(input *CompleteLifecycleActionInput) (*CompleteLifecycleActionOutput, error) { req, out := c.CompleteLifecycleActionRequest(input) err := req.Send() @@ -356,6 +358,7 @@ const opCreateAutoScalingGroup = "CreateAutoScalingGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup func (c *AutoScaling) CreateAutoScalingGroupRequest(input *CreateAutoScalingGroupInput) (req *request.Request, output *CreateAutoScalingGroupOutput) { op := &request.Operation{ Name: opCreateAutoScalingGroup, @@ -367,11 +370,10 @@ func (c *AutoScaling) CreateAutoScalingGroupRequest(input *CreateAutoScalingGrou input = &CreateAutoScalingGroupInput{} } + output = &CreateAutoScalingGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CreateAutoScalingGroupOutput{} - req.Data = output return } @@ -383,7 +385,7 @@ func (c *AutoScaling) CreateAutoScalingGroupRequest(input *CreateAutoScalingGrou // is 20 per region, the call fails. For information about viewing and updating // this limit, see DescribeAccountLimits. // -// For more information, see Auto Scaling Groups (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroup.html) +// For more information, see Auto Scaling Groups (http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroup.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -394,19 +396,20 @@ func (c *AutoScaling) CreateAutoScalingGroupRequest(input *CreateAutoScalingGrou // API operation CreateAutoScalingGroup for usage and error information. // // Returned Error Codes: -// * AlreadyExists +// * ErrCodeAlreadyExistsFault "AlreadyExists" // You already have an Auto Scaling group or launch configuration with this // name. // -// * LimitExceeded +// * ErrCodeLimitExceededFault "LimitExceeded" // You have already reached a limit for your Auto Scaling resources (for example, // groups, launch configurations, or lifecycle hooks). For more information, // see DescribeAccountLimits. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup func (c *AutoScaling) CreateAutoScalingGroup(input *CreateAutoScalingGroupInput) (*CreateAutoScalingGroupOutput, error) { req, out := c.CreateAutoScalingGroupRequest(input) err := req.Send() @@ -439,6 +442,7 @@ const opCreateLaunchConfiguration = "CreateLaunchConfiguration" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfiguration func (c *AutoScaling) CreateLaunchConfigurationRequest(input *CreateLaunchConfigurationInput) (req *request.Request, output *CreateLaunchConfigurationOutput) { op := &request.Operation{ Name: opCreateLaunchConfiguration, @@ -450,11 +454,10 @@ func (c *AutoScaling) CreateLaunchConfigurationRequest(input *CreateLaunchConfig input = &CreateLaunchConfigurationInput{} } + output = &CreateLaunchConfigurationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CreateLaunchConfigurationOutput{} - req.Data = output return } @@ -466,7 +469,7 @@ func (c *AutoScaling) CreateLaunchConfigurationRequest(input *CreateLaunchConfig // is 100 per region, the call fails. For information about viewing and updating // this limit, see DescribeAccountLimits. // -// For more information, see Launch Configurations (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/LaunchConfiguration.html) +// For more information, see Launch Configurations (http://docs.aws.amazon.com/autoscaling/latest/userguide/LaunchConfiguration.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -477,19 +480,20 @@ func (c *AutoScaling) CreateLaunchConfigurationRequest(input *CreateLaunchConfig // API operation CreateLaunchConfiguration for usage and error information. // // Returned Error Codes: -// * AlreadyExists +// * ErrCodeAlreadyExistsFault "AlreadyExists" // You already have an Auto Scaling group or launch configuration with this // name. // -// * LimitExceeded +// * ErrCodeLimitExceededFault "LimitExceeded" // You have already reached a limit for your Auto Scaling resources (for example, // groups, launch configurations, or lifecycle hooks). For more information, // see DescribeAccountLimits. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfiguration func (c *AutoScaling) CreateLaunchConfiguration(input *CreateLaunchConfigurationInput) (*CreateLaunchConfigurationOutput, error) { req, out := c.CreateLaunchConfigurationRequest(input) err := req.Send() @@ -522,6 +526,7 @@ const opCreateOrUpdateTags = "CreateOrUpdateTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTags func (c *AutoScaling) CreateOrUpdateTagsRequest(input *CreateOrUpdateTagsInput) (req *request.Request, output *CreateOrUpdateTagsOutput) { op := &request.Operation{ Name: opCreateOrUpdateTags, @@ -533,11 +538,10 @@ func (c *AutoScaling) CreateOrUpdateTagsRequest(input *CreateOrUpdateTagsInput) input = &CreateOrUpdateTagsInput{} } + output = &CreateOrUpdateTagsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CreateOrUpdateTagsOutput{} - req.Data = output return } @@ -548,7 +552,7 @@ func (c *AutoScaling) CreateOrUpdateTagsRequest(input *CreateOrUpdateTagsInput) // When you specify a tag with a key that already exists, the operation overwrites // the previous tag definition, and you do not get an error message. // -// For more information, see Tagging Auto Scaling Groups and Instances (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/ASTagging.html) +// For more information, see Tagging Auto Scaling Groups and Instances (http://docs.aws.amazon.com/autoscaling/latest/userguide/autoscaling-tagging.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -559,19 +563,20 @@ func (c *AutoScaling) CreateOrUpdateTagsRequest(input *CreateOrUpdateTagsInput) // API operation CreateOrUpdateTags for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededFault "LimitExceeded" // You have already reached a limit for your Auto Scaling resources (for example, // groups, launch configurations, or lifecycle hooks). For more information, // see DescribeAccountLimits. // -// * AlreadyExists +// * ErrCodeAlreadyExistsFault "AlreadyExists" // You already have an Auto Scaling group or launch configuration with this // name. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTags func (c *AutoScaling) CreateOrUpdateTags(input *CreateOrUpdateTagsInput) (*CreateOrUpdateTagsOutput, error) { req, out := c.CreateOrUpdateTagsRequest(input) err := req.Send() @@ -604,6 +609,7 @@ const opDeleteAutoScalingGroup = "DeleteAutoScalingGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroup func (c *AutoScaling) DeleteAutoScalingGroupRequest(input *DeleteAutoScalingGroupInput) (req *request.Request, output *DeleteAutoScalingGroupOutput) { op := &request.Operation{ Name: opDeleteAutoScalingGroup, @@ -615,11 +621,10 @@ func (c *AutoScaling) DeleteAutoScalingGroupRequest(input *DeleteAutoScalingGrou input = &DeleteAutoScalingGroupInput{} } + output = &DeleteAutoScalingGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAutoScalingGroupOutput{} - req.Data = output return } @@ -630,17 +635,16 @@ func (c *AutoScaling) DeleteAutoScalingGroupRequest(input *DeleteAutoScalingGrou // If the group has instances or scaling activities in progress, you must specify // the option to force the deletion in order for it to succeed. // -// If the group has policies, deleting the group deletes the policies, the -// underlying alarm actions, and any alarm that no longer has an associated -// action. +// If the group has policies, deleting the group deletes the policies, the underlying +// alarm actions, and any alarm that no longer has an associated action. // // To remove instances from the Auto Scaling group before deleting it, call // DetachInstances with the list of instances and the option to decrement the // desired capacity so that Auto Scaling does not launch replacement instances. // -// To terminate all instances before deleting the Auto Scaling group, call -// UpdateAutoScalingGroup and set the minimum size and desired capacity of the -// Auto Scaling group to zero. +// To terminate all instances before deleting the Auto Scaling group, call UpdateAutoScalingGroup +// and set the minimum size and desired capacity of the Auto Scaling group to +// zero. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -650,17 +654,18 @@ func (c *AutoScaling) DeleteAutoScalingGroupRequest(input *DeleteAutoScalingGrou // API operation DeleteAutoScalingGroup for usage and error information. // // Returned Error Codes: -// * ScalingActivityInProgress +// * ErrCodeScalingActivityInProgressFault "ScalingActivityInProgress" // The operation can't be performed because there are scaling activities in // progress. // -// * ResourceInUse +// * ErrCodeResourceInUseFault "ResourceInUse" // The operation can't be performed because the resource is in use. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroup func (c *AutoScaling) DeleteAutoScalingGroup(input *DeleteAutoScalingGroupInput) (*DeleteAutoScalingGroupOutput, error) { req, out := c.DeleteAutoScalingGroupRequest(input) err := req.Send() @@ -693,6 +698,7 @@ const opDeleteLaunchConfiguration = "DeleteLaunchConfiguration" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration func (c *AutoScaling) DeleteLaunchConfigurationRequest(input *DeleteLaunchConfigurationInput) (req *request.Request, output *DeleteLaunchConfigurationOutput) { op := &request.Operation{ Name: opDeleteLaunchConfiguration, @@ -704,11 +710,10 @@ func (c *AutoScaling) DeleteLaunchConfigurationRequest(input *DeleteLaunchConfig input = &DeleteLaunchConfigurationInput{} } + output = &DeleteLaunchConfigurationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteLaunchConfigurationOutput{} - req.Data = output return } @@ -716,9 +721,9 @@ func (c *AutoScaling) DeleteLaunchConfigurationRequest(input *DeleteLaunchConfig // // Deletes the specified launch configuration. // -// The launch configuration must not be attached to an Auto Scaling group. -// When this call completes, the launch configuration is no longer available -// for use. +// The launch configuration must not be attached to an Auto Scaling group. When +// this call completes, the launch configuration is no longer available for +// use. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -728,13 +733,14 @@ func (c *AutoScaling) DeleteLaunchConfigurationRequest(input *DeleteLaunchConfig // API operation DeleteLaunchConfiguration for usage and error information. // // Returned Error Codes: -// * ResourceInUse +// * ErrCodeResourceInUseFault "ResourceInUse" // The operation can't be performed because the resource is in use. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration func (c *AutoScaling) DeleteLaunchConfiguration(input *DeleteLaunchConfigurationInput) (*DeleteLaunchConfigurationOutput, error) { req, out := c.DeleteLaunchConfigurationRequest(input) err := req.Send() @@ -767,6 +773,7 @@ const opDeleteLifecycleHook = "DeleteLifecycleHook" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook func (c *AutoScaling) DeleteLifecycleHookRequest(input *DeleteLifecycleHookInput) (req *request.Request, output *DeleteLifecycleHookOutput) { op := &request.Operation{ Name: opDeleteLifecycleHook, @@ -778,9 +785,8 @@ func (c *AutoScaling) DeleteLifecycleHookRequest(input *DeleteLifecycleHookInput input = &DeleteLifecycleHookInput{} } - req = c.newRequest(op, input, output) output = &DeleteLifecycleHookOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -799,10 +805,11 @@ func (c *AutoScaling) DeleteLifecycleHookRequest(input *DeleteLifecycleHookInput // API operation DeleteLifecycleHook for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook func (c *AutoScaling) DeleteLifecycleHook(input *DeleteLifecycleHookInput) (*DeleteLifecycleHookOutput, error) { req, out := c.DeleteLifecycleHookRequest(input) err := req.Send() @@ -835,6 +842,7 @@ const opDeleteNotificationConfiguration = "DeleteNotificationConfiguration" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration func (c *AutoScaling) DeleteNotificationConfigurationRequest(input *DeleteNotificationConfigurationInput) (req *request.Request, output *DeleteNotificationConfigurationOutput) { op := &request.Operation{ Name: opDeleteNotificationConfiguration, @@ -846,11 +854,10 @@ func (c *AutoScaling) DeleteNotificationConfigurationRequest(input *DeleteNotifi input = &DeleteNotificationConfigurationInput{} } + output = &DeleteNotificationConfigurationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteNotificationConfigurationOutput{} - req.Data = output return } @@ -866,10 +873,11 @@ func (c *AutoScaling) DeleteNotificationConfigurationRequest(input *DeleteNotifi // API operation DeleteNotificationConfiguration for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration func (c *AutoScaling) DeleteNotificationConfiguration(input *DeleteNotificationConfigurationInput) (*DeleteNotificationConfigurationOutput, error) { req, out := c.DeleteNotificationConfigurationRequest(input) err := req.Send() @@ -902,6 +910,7 @@ const opDeletePolicy = "DeletePolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicy func (c *AutoScaling) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Request, output *DeletePolicyOutput) { op := &request.Operation{ Name: opDeletePolicy, @@ -913,11 +922,10 @@ func (c *AutoScaling) DeletePolicyRequest(input *DeletePolicyInput) (req *reques input = &DeletePolicyInput{} } + output = &DeletePolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeletePolicyOutput{} - req.Data = output return } @@ -936,10 +944,11 @@ func (c *AutoScaling) DeletePolicyRequest(input *DeletePolicyInput) (req *reques // API operation DeletePolicy for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicy func (c *AutoScaling) DeletePolicy(input *DeletePolicyInput) (*DeletePolicyOutput, error) { req, out := c.DeletePolicyRequest(input) err := req.Send() @@ -972,6 +981,7 @@ const opDeleteScheduledAction = "DeleteScheduledAction" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction func (c *AutoScaling) DeleteScheduledActionRequest(input *DeleteScheduledActionInput) (req *request.Request, output *DeleteScheduledActionOutput) { op := &request.Operation{ Name: opDeleteScheduledAction, @@ -983,11 +993,10 @@ func (c *AutoScaling) DeleteScheduledActionRequest(input *DeleteScheduledActionI input = &DeleteScheduledActionInput{} } + output = &DeleteScheduledActionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteScheduledActionOutput{} - req.Data = output return } @@ -1003,10 +1012,11 @@ func (c *AutoScaling) DeleteScheduledActionRequest(input *DeleteScheduledActionI // API operation DeleteScheduledAction for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction func (c *AutoScaling) DeleteScheduledAction(input *DeleteScheduledActionInput) (*DeleteScheduledActionOutput, error) { req, out := c.DeleteScheduledActionRequest(input) err := req.Send() @@ -1039,6 +1049,7 @@ const opDeleteTags = "DeleteTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTags func (c *AutoScaling) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) { op := &request.Operation{ Name: opDeleteTags, @@ -1050,11 +1061,10 @@ func (c *AutoScaling) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Re input = &DeleteTagsInput{} } + output = &DeleteTagsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteTagsOutput{} - req.Data = output return } @@ -1070,10 +1080,11 @@ func (c *AutoScaling) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Re // API operation DeleteTags for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTags func (c *AutoScaling) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) err := req.Send() @@ -1106,6 +1117,7 @@ const opDescribeAccountLimits = "DescribeAccountLimits" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits func (c *AutoScaling) DescribeAccountLimitsRequest(input *DescribeAccountLimitsInput) (req *request.Request, output *DescribeAccountLimitsOutput) { op := &request.Operation{ Name: opDescribeAccountLimits, @@ -1117,9 +1129,8 @@ func (c *AutoScaling) DescribeAccountLimitsRequest(input *DescribeAccountLimitsI input = &DescribeAccountLimitsInput{} } - req = c.newRequest(op, input, output) output = &DescribeAccountLimitsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1139,10 +1150,11 @@ func (c *AutoScaling) DescribeAccountLimitsRequest(input *DescribeAccountLimitsI // API operation DescribeAccountLimits for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits func (c *AutoScaling) DescribeAccountLimits(input *DescribeAccountLimitsInput) (*DescribeAccountLimitsOutput, error) { req, out := c.DescribeAccountLimitsRequest(input) err := req.Send() @@ -1175,6 +1187,7 @@ const opDescribeAdjustmentTypes = "DescribeAdjustmentTypes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes func (c *AutoScaling) DescribeAdjustmentTypesRequest(input *DescribeAdjustmentTypesInput) (req *request.Request, output *DescribeAdjustmentTypesOutput) { op := &request.Operation{ Name: opDescribeAdjustmentTypes, @@ -1186,9 +1199,8 @@ func (c *AutoScaling) DescribeAdjustmentTypesRequest(input *DescribeAdjustmentTy input = &DescribeAdjustmentTypesInput{} } - req = c.newRequest(op, input, output) output = &DescribeAdjustmentTypesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1204,10 +1216,11 @@ func (c *AutoScaling) DescribeAdjustmentTypesRequest(input *DescribeAdjustmentTy // API operation DescribeAdjustmentTypes for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes func (c *AutoScaling) DescribeAdjustmentTypes(input *DescribeAdjustmentTypesInput) (*DescribeAdjustmentTypesOutput, error) { req, out := c.DescribeAdjustmentTypesRequest(input) err := req.Send() @@ -1240,6 +1253,7 @@ const opDescribeAutoScalingGroups = "DescribeAutoScalingGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups func (c *AutoScaling) DescribeAutoScalingGroupsRequest(input *DescribeAutoScalingGroupsInput) (req *request.Request, output *DescribeAutoScalingGroupsOutput) { op := &request.Operation{ Name: opDescribeAutoScalingGroups, @@ -1257,9 +1271,8 @@ func (c *AutoScaling) DescribeAutoScalingGroupsRequest(input *DescribeAutoScalin input = &DescribeAutoScalingGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeAutoScalingGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1275,13 +1288,14 @@ func (c *AutoScaling) DescribeAutoScalingGroupsRequest(input *DescribeAutoScalin // API operation DescribeAutoScalingGroups for usage and error information. // // Returned Error Codes: -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The NextToken value is not valid. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups func (c *AutoScaling) DescribeAutoScalingGroups(input *DescribeAutoScalingGroupsInput) (*DescribeAutoScalingGroupsOutput, error) { req, out := c.DescribeAutoScalingGroupsRequest(input) err := req.Send() @@ -1339,6 +1353,7 @@ const opDescribeAutoScalingInstances = "DescribeAutoScalingInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances func (c *AutoScaling) DescribeAutoScalingInstancesRequest(input *DescribeAutoScalingInstancesInput) (req *request.Request, output *DescribeAutoScalingInstancesOutput) { op := &request.Operation{ Name: opDescribeAutoScalingInstances, @@ -1356,9 +1371,8 @@ func (c *AutoScaling) DescribeAutoScalingInstancesRequest(input *DescribeAutoSca input = &DescribeAutoScalingInstancesInput{} } - req = c.newRequest(op, input, output) output = &DescribeAutoScalingInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1374,13 +1388,14 @@ func (c *AutoScaling) DescribeAutoScalingInstancesRequest(input *DescribeAutoSca // API operation DescribeAutoScalingInstances for usage and error information. // // Returned Error Codes: -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The NextToken value is not valid. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances func (c *AutoScaling) DescribeAutoScalingInstances(input *DescribeAutoScalingInstancesInput) (*DescribeAutoScalingInstancesOutput, error) { req, out := c.DescribeAutoScalingInstancesRequest(input) err := req.Send() @@ -1438,6 +1453,7 @@ const opDescribeAutoScalingNotificationTypes = "DescribeAutoScalingNotificationT // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes func (c *AutoScaling) DescribeAutoScalingNotificationTypesRequest(input *DescribeAutoScalingNotificationTypesInput) (req *request.Request, output *DescribeAutoScalingNotificationTypesOutput) { op := &request.Operation{ Name: opDescribeAutoScalingNotificationTypes, @@ -1449,9 +1465,8 @@ func (c *AutoScaling) DescribeAutoScalingNotificationTypesRequest(input *Describ input = &DescribeAutoScalingNotificationTypesInput{} } - req = c.newRequest(op, input, output) output = &DescribeAutoScalingNotificationTypesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1467,10 +1482,11 @@ func (c *AutoScaling) DescribeAutoScalingNotificationTypesRequest(input *Describ // API operation DescribeAutoScalingNotificationTypes for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes func (c *AutoScaling) DescribeAutoScalingNotificationTypes(input *DescribeAutoScalingNotificationTypesInput) (*DescribeAutoScalingNotificationTypesOutput, error) { req, out := c.DescribeAutoScalingNotificationTypesRequest(input) err := req.Send() @@ -1503,6 +1519,7 @@ const opDescribeLaunchConfigurations = "DescribeLaunchConfigurations" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations func (c *AutoScaling) DescribeLaunchConfigurationsRequest(input *DescribeLaunchConfigurationsInput) (req *request.Request, output *DescribeLaunchConfigurationsOutput) { op := &request.Operation{ Name: opDescribeLaunchConfigurations, @@ -1520,9 +1537,8 @@ func (c *AutoScaling) DescribeLaunchConfigurationsRequest(input *DescribeLaunchC input = &DescribeLaunchConfigurationsInput{} } - req = c.newRequest(op, input, output) output = &DescribeLaunchConfigurationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1538,13 +1554,14 @@ func (c *AutoScaling) DescribeLaunchConfigurationsRequest(input *DescribeLaunchC // API operation DescribeLaunchConfigurations for usage and error information. // // Returned Error Codes: -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The NextToken value is not valid. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations func (c *AutoScaling) DescribeLaunchConfigurations(input *DescribeLaunchConfigurationsInput) (*DescribeLaunchConfigurationsOutput, error) { req, out := c.DescribeLaunchConfigurationsRequest(input) err := req.Send() @@ -1602,6 +1619,7 @@ const opDescribeLifecycleHookTypes = "DescribeLifecycleHookTypes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHookTypes func (c *AutoScaling) DescribeLifecycleHookTypesRequest(input *DescribeLifecycleHookTypesInput) (req *request.Request, output *DescribeLifecycleHookTypesOutput) { op := &request.Operation{ Name: opDescribeLifecycleHookTypes, @@ -1613,9 +1631,8 @@ func (c *AutoScaling) DescribeLifecycleHookTypesRequest(input *DescribeLifecycle input = &DescribeLifecycleHookTypesInput{} } - req = c.newRequest(op, input, output) output = &DescribeLifecycleHookTypesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1631,10 +1648,11 @@ func (c *AutoScaling) DescribeLifecycleHookTypesRequest(input *DescribeLifecycle // API operation DescribeLifecycleHookTypes for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHookTypes func (c *AutoScaling) DescribeLifecycleHookTypes(input *DescribeLifecycleHookTypesInput) (*DescribeLifecycleHookTypesOutput, error) { req, out := c.DescribeLifecycleHookTypesRequest(input) err := req.Send() @@ -1667,6 +1685,7 @@ const opDescribeLifecycleHooks = "DescribeLifecycleHooks" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooks func (c *AutoScaling) DescribeLifecycleHooksRequest(input *DescribeLifecycleHooksInput) (req *request.Request, output *DescribeLifecycleHooksOutput) { op := &request.Operation{ Name: opDescribeLifecycleHooks, @@ -1678,9 +1697,8 @@ func (c *AutoScaling) DescribeLifecycleHooksRequest(input *DescribeLifecycleHook input = &DescribeLifecycleHooksInput{} } - req = c.newRequest(op, input, output) output = &DescribeLifecycleHooksOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1696,10 +1714,11 @@ func (c *AutoScaling) DescribeLifecycleHooksRequest(input *DescribeLifecycleHook // API operation DescribeLifecycleHooks for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooks func (c *AutoScaling) DescribeLifecycleHooks(input *DescribeLifecycleHooksInput) (*DescribeLifecycleHooksOutput, error) { req, out := c.DescribeLifecycleHooksRequest(input) err := req.Send() @@ -1732,6 +1751,7 @@ const opDescribeLoadBalancerTargetGroups = "DescribeLoadBalancerTargetGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroups func (c *AutoScaling) DescribeLoadBalancerTargetGroupsRequest(input *DescribeLoadBalancerTargetGroupsInput) (req *request.Request, output *DescribeLoadBalancerTargetGroupsOutput) { op := &request.Operation{ Name: opDescribeLoadBalancerTargetGroups, @@ -1743,9 +1763,8 @@ func (c *AutoScaling) DescribeLoadBalancerTargetGroupsRequest(input *DescribeLoa input = &DescribeLoadBalancerTargetGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeLoadBalancerTargetGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1761,10 +1780,11 @@ func (c *AutoScaling) DescribeLoadBalancerTargetGroupsRequest(input *DescribeLoa // API operation DescribeLoadBalancerTargetGroups for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroups func (c *AutoScaling) DescribeLoadBalancerTargetGroups(input *DescribeLoadBalancerTargetGroupsInput) (*DescribeLoadBalancerTargetGroupsOutput, error) { req, out := c.DescribeLoadBalancerTargetGroupsRequest(input) err := req.Send() @@ -1797,6 +1817,7 @@ const opDescribeLoadBalancers = "DescribeLoadBalancers" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancers func (c *AutoScaling) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) (req *request.Request, output *DescribeLoadBalancersOutput) { op := &request.Operation{ Name: opDescribeLoadBalancers, @@ -1808,9 +1829,8 @@ func (c *AutoScaling) DescribeLoadBalancersRequest(input *DescribeLoadBalancersI input = &DescribeLoadBalancersInput{} } - req = c.newRequest(op, input, output) output = &DescribeLoadBalancersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1829,10 +1849,11 @@ func (c *AutoScaling) DescribeLoadBalancersRequest(input *DescribeLoadBalancersI // API operation DescribeLoadBalancers for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancers func (c *AutoScaling) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error) { req, out := c.DescribeLoadBalancersRequest(input) err := req.Send() @@ -1865,6 +1886,7 @@ const opDescribeMetricCollectionTypes = "DescribeMetricCollectionTypes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes func (c *AutoScaling) DescribeMetricCollectionTypesRequest(input *DescribeMetricCollectionTypesInput) (req *request.Request, output *DescribeMetricCollectionTypesOutput) { op := &request.Operation{ Name: opDescribeMetricCollectionTypes, @@ -1876,9 +1898,8 @@ func (c *AutoScaling) DescribeMetricCollectionTypesRequest(input *DescribeMetric input = &DescribeMetricCollectionTypesInput{} } - req = c.newRequest(op, input, output) output = &DescribeMetricCollectionTypesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1897,10 +1918,11 @@ func (c *AutoScaling) DescribeMetricCollectionTypesRequest(input *DescribeMetric // API operation DescribeMetricCollectionTypes for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes func (c *AutoScaling) DescribeMetricCollectionTypes(input *DescribeMetricCollectionTypesInput) (*DescribeMetricCollectionTypesOutput, error) { req, out := c.DescribeMetricCollectionTypesRequest(input) err := req.Send() @@ -1933,6 +1955,7 @@ const opDescribeNotificationConfigurations = "DescribeNotificationConfigurations // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations func (c *AutoScaling) DescribeNotificationConfigurationsRequest(input *DescribeNotificationConfigurationsInput) (req *request.Request, output *DescribeNotificationConfigurationsOutput) { op := &request.Operation{ Name: opDescribeNotificationConfigurations, @@ -1950,9 +1973,8 @@ func (c *AutoScaling) DescribeNotificationConfigurationsRequest(input *DescribeN input = &DescribeNotificationConfigurationsInput{} } - req = c.newRequest(op, input, output) output = &DescribeNotificationConfigurationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1969,13 +1991,14 @@ func (c *AutoScaling) DescribeNotificationConfigurationsRequest(input *DescribeN // API operation DescribeNotificationConfigurations for usage and error information. // // Returned Error Codes: -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The NextToken value is not valid. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations func (c *AutoScaling) DescribeNotificationConfigurations(input *DescribeNotificationConfigurationsInput) (*DescribeNotificationConfigurationsOutput, error) { req, out := c.DescribeNotificationConfigurationsRequest(input) err := req.Send() @@ -2033,6 +2056,7 @@ const opDescribePolicies = "DescribePolicies" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies func (c *AutoScaling) DescribePoliciesRequest(input *DescribePoliciesInput) (req *request.Request, output *DescribePoliciesOutput) { op := &request.Operation{ Name: opDescribePolicies, @@ -2050,9 +2074,8 @@ func (c *AutoScaling) DescribePoliciesRequest(input *DescribePoliciesInput) (req input = &DescribePoliciesInput{} } - req = c.newRequest(op, input, output) output = &DescribePoliciesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2068,13 +2091,14 @@ func (c *AutoScaling) DescribePoliciesRequest(input *DescribePoliciesInput) (req // API operation DescribePolicies for usage and error information. // // Returned Error Codes: -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The NextToken value is not valid. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies func (c *AutoScaling) DescribePolicies(input *DescribePoliciesInput) (*DescribePoliciesOutput, error) { req, out := c.DescribePoliciesRequest(input) err := req.Send() @@ -2132,6 +2156,7 @@ const opDescribeScalingActivities = "DescribeScalingActivities" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities func (c *AutoScaling) DescribeScalingActivitiesRequest(input *DescribeScalingActivitiesInput) (req *request.Request, output *DescribeScalingActivitiesOutput) { op := &request.Operation{ Name: opDescribeScalingActivities, @@ -2149,9 +2174,8 @@ func (c *AutoScaling) DescribeScalingActivitiesRequest(input *DescribeScalingAct input = &DescribeScalingActivitiesInput{} } - req = c.newRequest(op, input, output) output = &DescribeScalingActivitiesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2167,13 +2191,14 @@ func (c *AutoScaling) DescribeScalingActivitiesRequest(input *DescribeScalingAct // API operation DescribeScalingActivities for usage and error information. // // Returned Error Codes: -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The NextToken value is not valid. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities func (c *AutoScaling) DescribeScalingActivities(input *DescribeScalingActivitiesInput) (*DescribeScalingActivitiesOutput, error) { req, out := c.DescribeScalingActivitiesRequest(input) err := req.Send() @@ -2231,6 +2256,7 @@ const opDescribeScalingProcessTypes = "DescribeScalingProcessTypes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes func (c *AutoScaling) DescribeScalingProcessTypesRequest(input *DescribeScalingProcessTypesInput) (req *request.Request, output *DescribeScalingProcessTypesOutput) { op := &request.Operation{ Name: opDescribeScalingProcessTypes, @@ -2242,9 +2268,8 @@ func (c *AutoScaling) DescribeScalingProcessTypesRequest(input *DescribeScalingP input = &DescribeScalingProcessTypesInput{} } - req = c.newRequest(op, input, output) output = &DescribeScalingProcessTypesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2260,10 +2285,11 @@ func (c *AutoScaling) DescribeScalingProcessTypesRequest(input *DescribeScalingP // API operation DescribeScalingProcessTypes for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes func (c *AutoScaling) DescribeScalingProcessTypes(input *DescribeScalingProcessTypesInput) (*DescribeScalingProcessTypesOutput, error) { req, out := c.DescribeScalingProcessTypesRequest(input) err := req.Send() @@ -2296,6 +2322,7 @@ const opDescribeScheduledActions = "DescribeScheduledActions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions func (c *AutoScaling) DescribeScheduledActionsRequest(input *DescribeScheduledActionsInput) (req *request.Request, output *DescribeScheduledActionsOutput) { op := &request.Operation{ Name: opDescribeScheduledActions, @@ -2313,9 +2340,8 @@ func (c *AutoScaling) DescribeScheduledActionsRequest(input *DescribeScheduledAc input = &DescribeScheduledActionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeScheduledActionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2332,13 +2358,14 @@ func (c *AutoScaling) DescribeScheduledActionsRequest(input *DescribeScheduledAc // API operation DescribeScheduledActions for usage and error information. // // Returned Error Codes: -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The NextToken value is not valid. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions func (c *AutoScaling) DescribeScheduledActions(input *DescribeScheduledActionsInput) (*DescribeScheduledActionsOutput, error) { req, out := c.DescribeScheduledActionsRequest(input) err := req.Send() @@ -2396,6 +2423,7 @@ const opDescribeTags = "DescribeTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags func (c *AutoScaling) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) { op := &request.Operation{ Name: opDescribeTags, @@ -2413,9 +2441,8 @@ func (c *AutoScaling) DescribeTagsRequest(input *DescribeTagsInput) (req *reques input = &DescribeTagsInput{} } - req = c.newRequest(op, input, output) output = &DescribeTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2440,13 +2467,14 @@ func (c *AutoScaling) DescribeTagsRequest(input *DescribeTagsInput) (req *reques // API operation DescribeTags for usage and error information. // // Returned Error Codes: -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The NextToken value is not valid. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags func (c *AutoScaling) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -2504,6 +2532,7 @@ const opDescribeTerminationPolicyTypes = "DescribeTerminationPolicyTypes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes func (c *AutoScaling) DescribeTerminationPolicyTypesRequest(input *DescribeTerminationPolicyTypesInput) (req *request.Request, output *DescribeTerminationPolicyTypesOutput) { op := &request.Operation{ Name: opDescribeTerminationPolicyTypes, @@ -2515,9 +2544,8 @@ func (c *AutoScaling) DescribeTerminationPolicyTypesRequest(input *DescribeTermi input = &DescribeTerminationPolicyTypesInput{} } - req = c.newRequest(op, input, output) output = &DescribeTerminationPolicyTypesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2533,10 +2561,11 @@ func (c *AutoScaling) DescribeTerminationPolicyTypesRequest(input *DescribeTermi // API operation DescribeTerminationPolicyTypes for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes func (c *AutoScaling) DescribeTerminationPolicyTypes(input *DescribeTerminationPolicyTypesInput) (*DescribeTerminationPolicyTypesOutput, error) { req, out := c.DescribeTerminationPolicyTypesRequest(input) err := req.Send() @@ -2569,6 +2598,7 @@ const opDetachInstances = "DetachInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstances func (c *AutoScaling) DetachInstancesRequest(input *DetachInstancesInput) (req *request.Request, output *DetachInstancesOutput) { op := &request.Operation{ Name: opDetachInstances, @@ -2580,9 +2610,8 @@ func (c *AutoScaling) DetachInstancesRequest(input *DetachInstancesInput) (req * input = &DetachInstancesInput{} } - req = c.newRequest(op, input, output) output = &DetachInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2596,13 +2625,13 @@ func (c *AutoScaling) DetachInstancesRequest(input *DetachInstancesInput) (req * // If you do not specify the option to decrement the desired capacity, Auto // Scaling launches instances to replace the ones that are detached. // -// If there is a Classic load balancer attached to the Auto Scaling group, -// the instances are deregistered from the load balancer. If there are target -// groups attached to the Auto Scaling group, the instances are deregistered -// from the target groups. +// If there is a Classic load balancer attached to the Auto Scaling group, the +// instances are deregistered from the load balancer. If there are target groups +// attached to the Auto Scaling group, the instances are deregistered from the +// target groups. // // For more information, see Detach EC2 Instances from Your Auto Scaling Group -// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/detach-instance-asg.html) +// (http://docs.aws.amazon.com/autoscaling/latest/userguide/detach-instance-asg.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2613,10 +2642,11 @@ func (c *AutoScaling) DetachInstancesRequest(input *DetachInstancesInput) (req * // API operation DetachInstances for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstances func (c *AutoScaling) DetachInstances(input *DetachInstancesInput) (*DetachInstancesOutput, error) { req, out := c.DetachInstancesRequest(input) err := req.Send() @@ -2649,6 +2679,7 @@ const opDetachLoadBalancerTargetGroups = "DetachLoadBalancerTargetGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancerTargetGroups func (c *AutoScaling) DetachLoadBalancerTargetGroupsRequest(input *DetachLoadBalancerTargetGroupsInput) (req *request.Request, output *DetachLoadBalancerTargetGroupsOutput) { op := &request.Operation{ Name: opDetachLoadBalancerTargetGroups, @@ -2660,9 +2691,8 @@ func (c *AutoScaling) DetachLoadBalancerTargetGroupsRequest(input *DetachLoadBal input = &DetachLoadBalancerTargetGroupsInput{} } - req = c.newRequest(op, input, output) output = &DetachLoadBalancerTargetGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2678,10 +2708,11 @@ func (c *AutoScaling) DetachLoadBalancerTargetGroupsRequest(input *DetachLoadBal // API operation DetachLoadBalancerTargetGroups for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancerTargetGroups func (c *AutoScaling) DetachLoadBalancerTargetGroups(input *DetachLoadBalancerTargetGroupsInput) (*DetachLoadBalancerTargetGroupsOutput, error) { req, out := c.DetachLoadBalancerTargetGroupsRequest(input) err := req.Send() @@ -2714,6 +2745,7 @@ const opDetachLoadBalancers = "DetachLoadBalancers" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancers func (c *AutoScaling) DetachLoadBalancersRequest(input *DetachLoadBalancersInput) (req *request.Request, output *DetachLoadBalancersOutput) { op := &request.Operation{ Name: opDetachLoadBalancers, @@ -2725,9 +2757,8 @@ func (c *AutoScaling) DetachLoadBalancersRequest(input *DetachLoadBalancersInput input = &DetachLoadBalancersInput{} } - req = c.newRequest(op, input, output) output = &DetachLoadBalancersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2752,10 +2783,11 @@ func (c *AutoScaling) DetachLoadBalancersRequest(input *DetachLoadBalancersInput // API operation DetachLoadBalancers for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancers func (c *AutoScaling) DetachLoadBalancers(input *DetachLoadBalancersInput) (*DetachLoadBalancersOutput, error) { req, out := c.DetachLoadBalancersRequest(input) err := req.Send() @@ -2788,6 +2820,7 @@ const opDisableMetricsCollection = "DisableMetricsCollection" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollection func (c *AutoScaling) DisableMetricsCollectionRequest(input *DisableMetricsCollectionInput) (req *request.Request, output *DisableMetricsCollectionOutput) { op := &request.Operation{ Name: opDisableMetricsCollection, @@ -2799,11 +2832,10 @@ func (c *AutoScaling) DisableMetricsCollectionRequest(input *DisableMetricsColle input = &DisableMetricsCollectionInput{} } + output = &DisableMetricsCollectionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DisableMetricsCollectionOutput{} - req.Data = output return } @@ -2819,10 +2851,11 @@ func (c *AutoScaling) DisableMetricsCollectionRequest(input *DisableMetricsColle // API operation DisableMetricsCollection for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollection func (c *AutoScaling) DisableMetricsCollection(input *DisableMetricsCollectionInput) (*DisableMetricsCollectionOutput, error) { req, out := c.DisableMetricsCollectionRequest(input) err := req.Send() @@ -2855,6 +2888,7 @@ const opEnableMetricsCollection = "EnableMetricsCollection" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnableMetricsCollection func (c *AutoScaling) EnableMetricsCollectionRequest(input *EnableMetricsCollectionInput) (req *request.Request, output *EnableMetricsCollectionOutput) { op := &request.Operation{ Name: opEnableMetricsCollection, @@ -2866,18 +2900,17 @@ func (c *AutoScaling) EnableMetricsCollectionRequest(input *EnableMetricsCollect input = &EnableMetricsCollectionInput{} } + output = &EnableMetricsCollectionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &EnableMetricsCollectionOutput{} - req.Data = output return } // EnableMetricsCollection API operation for Auto Scaling. // // Enables group metrics for the specified Auto Scaling group. For more information, -// see Monitoring Your Auto Scaling Groups and Instances (http://docs.aws.amazon.com/AutoScaling/latest/userguide/as-instance-monitoring.html) +// see Monitoring Your Auto Scaling Groups and Instances (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-monitoring.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2888,10 +2921,11 @@ func (c *AutoScaling) EnableMetricsCollectionRequest(input *EnableMetricsCollect // API operation EnableMetricsCollection for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnableMetricsCollection func (c *AutoScaling) EnableMetricsCollection(input *EnableMetricsCollectionInput) (*EnableMetricsCollectionOutput, error) { req, out := c.EnableMetricsCollectionRequest(input) err := req.Send() @@ -2924,6 +2958,7 @@ const opEnterStandby = "EnterStandby" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandby func (c *AutoScaling) EnterStandbyRequest(input *EnterStandbyInput) (req *request.Request, output *EnterStandbyOutput) { op := &request.Operation{ Name: opEnterStandby, @@ -2935,9 +2970,8 @@ func (c *AutoScaling) EnterStandbyRequest(input *EnterStandbyInput) (req *reques input = &EnterStandbyInput{} } - req = c.newRequest(op, input, output) output = &EnterStandbyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2945,7 +2979,7 @@ func (c *AutoScaling) EnterStandbyRequest(input *EnterStandbyInput) (req *reques // // Moves the specified instances into Standby mode. // -// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) +// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2956,10 +2990,11 @@ func (c *AutoScaling) EnterStandbyRequest(input *EnterStandbyInput) (req *reques // API operation EnterStandby for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandby func (c *AutoScaling) EnterStandby(input *EnterStandbyInput) (*EnterStandbyOutput, error) { req, out := c.EnterStandbyRequest(input) err := req.Send() @@ -2992,6 +3027,7 @@ const opExecutePolicy = "ExecutePolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicy func (c *AutoScaling) ExecutePolicyRequest(input *ExecutePolicyInput) (req *request.Request, output *ExecutePolicyOutput) { op := &request.Operation{ Name: opExecutePolicy, @@ -3003,11 +3039,10 @@ func (c *AutoScaling) ExecutePolicyRequest(input *ExecutePolicyInput) (req *requ input = &ExecutePolicyInput{} } + output = &ExecutePolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ExecutePolicyOutput{} - req.Data = output return } @@ -3023,14 +3058,15 @@ func (c *AutoScaling) ExecutePolicyRequest(input *ExecutePolicyInput) (req *requ // API operation ExecutePolicy for usage and error information. // // Returned Error Codes: -// * ScalingActivityInProgress +// * ErrCodeScalingActivityInProgressFault "ScalingActivityInProgress" // The operation can't be performed because there are scaling activities in // progress. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicy func (c *AutoScaling) ExecutePolicy(input *ExecutePolicyInput) (*ExecutePolicyOutput, error) { req, out := c.ExecutePolicyRequest(input) err := req.Send() @@ -3063,6 +3099,7 @@ const opExitStandby = "ExitStandby" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandby func (c *AutoScaling) ExitStandbyRequest(input *ExitStandbyInput) (req *request.Request, output *ExitStandbyOutput) { op := &request.Operation{ Name: opExitStandby, @@ -3074,9 +3111,8 @@ func (c *AutoScaling) ExitStandbyRequest(input *ExitStandbyInput) (req *request. input = &ExitStandbyInput{} } - req = c.newRequest(op, input, output) output = &ExitStandbyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3084,7 +3120,7 @@ func (c *AutoScaling) ExitStandbyRequest(input *ExitStandbyInput) (req *request. // // Moves the specified instances out of Standby mode. // -// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) +// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3095,10 +3131,11 @@ func (c *AutoScaling) ExitStandbyRequest(input *ExitStandbyInput) (req *request. // API operation ExitStandby for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandby func (c *AutoScaling) ExitStandby(input *ExitStandbyInput) (*ExitStandbyOutput, error) { req, out := c.ExitStandbyRequest(input) err := req.Send() @@ -3131,6 +3168,7 @@ const opPutLifecycleHook = "PutLifecycleHook" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHook func (c *AutoScaling) PutLifecycleHookRequest(input *PutLifecycleHookInput) (req *request.Request, output *PutLifecycleHookOutput) { op := &request.Operation{ Name: opPutLifecycleHook, @@ -3142,9 +3180,8 @@ func (c *AutoScaling) PutLifecycleHookRequest(input *PutLifecycleHookInput) (req input = &PutLifecycleHookInput{} } - req = c.newRequest(op, input, output) output = &PutLifecycleHookOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3159,23 +3196,22 @@ func (c *AutoScaling) PutLifecycleHookRequest(input *PutLifecycleHookInput) (req // This step is a part of the procedure for adding a lifecycle hook to an Auto // Scaling group: // -// (Optional) Create a Lambda function and a rule that allows CloudWatch -// Events to invoke your Lambda function when Auto Scaling launches or terminates -// instances. +// (Optional) Create a Lambda function and a rule that allows CloudWatch Events +// to invoke your Lambda function when Auto Scaling launches or terminates instances. // -// (Optional) Create a notification target and an IAM role. The target can -// be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto -// Scaling to publish lifecycle notifications to the target. +// (Optional) Create a notification target and an IAM role. The target can be +// either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling +// to publish lifecycle notifications to the target. // -// Create the lifecycle hook. Specify whether the hook is used when the -// instances launch or terminate. +// Create the lifecycle hook. Specify whether the hook is used when the instances +// launch or terminate. // -// If you need more time, record the lifecycle action heartbeat to keep the +// If you need more time, record the lifecycle action heartbeat to keep the // instance in a pending state. // -// If you finish before the timeout period ends, complete the lifecycle action. +// If you finish before the timeout period ends, complete the lifecycle action. // -// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) +// For more information, see Auto Scaling Lifecycle Hooks (http://docs.aws.amazon.com/autoscaling/latest/userguide/lifecycle-hooks.html) // in the Auto Scaling User Guide. // // If you exceed your maximum limit of lifecycle hooks, which by default is @@ -3191,15 +3227,16 @@ func (c *AutoScaling) PutLifecycleHookRequest(input *PutLifecycleHookInput) (req // API operation PutLifecycleHook for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededFault "LimitExceeded" // You have already reached a limit for your Auto Scaling resources (for example, // groups, launch configurations, or lifecycle hooks). For more information, // see DescribeAccountLimits. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHook func (c *AutoScaling) PutLifecycleHook(input *PutLifecycleHookInput) (*PutLifecycleHookOutput, error) { req, out := c.PutLifecycleHookRequest(input) err := req.Send() @@ -3232,6 +3269,7 @@ const opPutNotificationConfiguration = "PutNotificationConfiguration" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutNotificationConfiguration func (c *AutoScaling) PutNotificationConfigurationRequest(input *PutNotificationConfigurationInput) (req *request.Request, output *PutNotificationConfigurationOutput) { op := &request.Operation{ Name: opPutNotificationConfiguration, @@ -3243,11 +3281,10 @@ func (c *AutoScaling) PutNotificationConfigurationRequest(input *PutNotification input = &PutNotificationConfigurationInput{} } + output = &PutNotificationConfigurationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutNotificationConfigurationOutput{} - req.Data = output return } @@ -3260,7 +3297,7 @@ func (c *AutoScaling) PutNotificationConfigurationRequest(input *PutNotification // This configuration overwrites any existing configuration. // // For more information see Getting SNS Notifications When Your Auto Scaling -// Group Scales (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/ASGettingNotifications.html) +// Group Scales (http://docs.aws.amazon.com/autoscaling/latest/userguide/ASGettingNotifications.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3271,15 +3308,16 @@ func (c *AutoScaling) PutNotificationConfigurationRequest(input *PutNotification // API operation PutNotificationConfiguration for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededFault "LimitExceeded" // You have already reached a limit for your Auto Scaling resources (for example, // groups, launch configurations, or lifecycle hooks). For more information, // see DescribeAccountLimits. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutNotificationConfiguration func (c *AutoScaling) PutNotificationConfiguration(input *PutNotificationConfigurationInput) (*PutNotificationConfigurationOutput, error) { req, out := c.PutNotificationConfigurationRequest(input) err := req.Send() @@ -3312,6 +3350,7 @@ const opPutScalingPolicy = "PutScalingPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScalingPolicy func (c *AutoScaling) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req *request.Request, output *PutScalingPolicyOutput) { op := &request.Operation{ Name: opPutScalingPolicy, @@ -3323,9 +3362,8 @@ func (c *AutoScaling) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req input = &PutScalingPolicyInput{} } - req = c.newRequest(op, input, output) output = &PutScalingPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3349,15 +3387,16 @@ func (c *AutoScaling) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req // API operation PutScalingPolicy for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededFault "LimitExceeded" // You have already reached a limit for your Auto Scaling resources (for example, // groups, launch configurations, or lifecycle hooks). For more information, // see DescribeAccountLimits. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScalingPolicy func (c *AutoScaling) PutScalingPolicy(input *PutScalingPolicyInput) (*PutScalingPolicyOutput, error) { req, out := c.PutScalingPolicyRequest(input) err := req.Send() @@ -3390,6 +3429,7 @@ const opPutScheduledUpdateGroupAction = "PutScheduledUpdateGroupAction" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupAction func (c *AutoScaling) PutScheduledUpdateGroupActionRequest(input *PutScheduledUpdateGroupActionInput) (req *request.Request, output *PutScheduledUpdateGroupActionOutput) { op := &request.Operation{ Name: opPutScheduledUpdateGroupAction, @@ -3401,11 +3441,10 @@ func (c *AutoScaling) PutScheduledUpdateGroupActionRequest(input *PutScheduledUp input = &PutScheduledUpdateGroupActionInput{} } + output = &PutScheduledUpdateGroupActionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutScheduledUpdateGroupActionOutput{} - req.Data = output return } @@ -3413,9 +3452,9 @@ func (c *AutoScaling) PutScheduledUpdateGroupActionRequest(input *PutScheduledUp // // Creates or updates a scheduled scaling action for an Auto Scaling group. // When updating a scheduled scaling action, if you leave a parameter unspecified, -// the corresponding value remains unchanged in the affected Auto Scaling group. +// the corresponding value remains unchanged. // -// For more information, see Scheduled Scaling (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/schedule_time.html) +// For more information, see Scheduled Scaling (http://docs.aws.amazon.com/autoscaling/latest/userguide/schedule_time.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3426,19 +3465,20 @@ func (c *AutoScaling) PutScheduledUpdateGroupActionRequest(input *PutScheduledUp // API operation PutScheduledUpdateGroupAction for usage and error information. // // Returned Error Codes: -// * AlreadyExists +// * ErrCodeAlreadyExistsFault "AlreadyExists" // You already have an Auto Scaling group or launch configuration with this // name. // -// * LimitExceeded +// * ErrCodeLimitExceededFault "LimitExceeded" // You have already reached a limit for your Auto Scaling resources (for example, // groups, launch configurations, or lifecycle hooks). For more information, // see DescribeAccountLimits. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupAction func (c *AutoScaling) PutScheduledUpdateGroupAction(input *PutScheduledUpdateGroupActionInput) (*PutScheduledUpdateGroupActionOutput, error) { req, out := c.PutScheduledUpdateGroupActionRequest(input) err := req.Send() @@ -3471,6 +3511,7 @@ const opRecordLifecycleActionHeartbeat = "RecordLifecycleActionHeartbeat" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeat func (c *AutoScaling) RecordLifecycleActionHeartbeatRequest(input *RecordLifecycleActionHeartbeatInput) (req *request.Request, output *RecordLifecycleActionHeartbeatOutput) { op := &request.Operation{ Name: opRecordLifecycleActionHeartbeat, @@ -3482,9 +3523,8 @@ func (c *AutoScaling) RecordLifecycleActionHeartbeatRequest(input *RecordLifecyc input = &RecordLifecycleActionHeartbeatInput{} } - req = c.newRequest(op, input, output) output = &RecordLifecycleActionHeartbeatOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3497,23 +3537,22 @@ func (c *AutoScaling) RecordLifecycleActionHeartbeatRequest(input *RecordLifecyc // This step is a part of the procedure for adding a lifecycle hook to an Auto // Scaling group: // -// (Optional) Create a Lambda function and a rule that allows CloudWatch -// Events to invoke your Lambda function when Auto Scaling launches or terminates -// instances. +// (Optional) Create a Lambda function and a rule that allows CloudWatch Events +// to invoke your Lambda function when Auto Scaling launches or terminates instances. // -// (Optional) Create a notification target and an IAM role. The target can -// be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto -// Scaling to publish lifecycle notifications to the target. +// (Optional) Create a notification target and an IAM role. The target can be +// either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling +// to publish lifecycle notifications to the target. // -// Create the lifecycle hook. Specify whether the hook is used when the instances +// Create the lifecycle hook. Specify whether the hook is used when the instances // launch or terminate. // -// If you need more time, record the lifecycle action heartbeat to keep -// the instance in a pending state. +// If you need more time, record the lifecycle action heartbeat to keep the +// instance in a pending state. // -// If you finish before the timeout period ends, complete the lifecycle action. +// If you finish before the timeout period ends, complete the lifecycle action. // -// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) +// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3524,10 +3563,11 @@ func (c *AutoScaling) RecordLifecycleActionHeartbeatRequest(input *RecordLifecyc // API operation RecordLifecycleActionHeartbeat for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeat func (c *AutoScaling) RecordLifecycleActionHeartbeat(input *RecordLifecycleActionHeartbeatInput) (*RecordLifecycleActionHeartbeatOutput, error) { req, out := c.RecordLifecycleActionHeartbeatRequest(input) err := req.Send() @@ -3560,6 +3600,7 @@ const opResumeProcesses = "ResumeProcesses" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ResumeProcesses func (c *AutoScaling) ResumeProcessesRequest(input *ScalingProcessQuery) (req *request.Request, output *ResumeProcessesOutput) { op := &request.Operation{ Name: opResumeProcesses, @@ -3571,11 +3612,10 @@ func (c *AutoScaling) ResumeProcessesRequest(input *ScalingProcessQuery) (req *r input = &ScalingProcessQuery{} } + output = &ResumeProcessesOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ResumeProcessesOutput{} - req.Data = output return } @@ -3585,7 +3625,7 @@ func (c *AutoScaling) ResumeProcessesRequest(input *ScalingProcessQuery) (req *r // process, for the specified Auto Scaling group. // // For more information, see Suspending and Resuming Auto Scaling Processes -// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SuspendResume.html) +// (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-suspend-resume-processes.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3596,13 +3636,14 @@ func (c *AutoScaling) ResumeProcessesRequest(input *ScalingProcessQuery) (req *r // API operation ResumeProcesses for usage and error information. // // Returned Error Codes: -// * ResourceInUse +// * ErrCodeResourceInUseFault "ResourceInUse" // The operation can't be performed because the resource is in use. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ResumeProcesses func (c *AutoScaling) ResumeProcesses(input *ScalingProcessQuery) (*ResumeProcessesOutput, error) { req, out := c.ResumeProcessesRequest(input) err := req.Send() @@ -3635,6 +3676,7 @@ const opSetDesiredCapacity = "SetDesiredCapacity" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetDesiredCapacity func (c *AutoScaling) SetDesiredCapacityRequest(input *SetDesiredCapacityInput) (req *request.Request, output *SetDesiredCapacityOutput) { op := &request.Operation{ Name: opSetDesiredCapacity, @@ -3646,11 +3688,10 @@ func (c *AutoScaling) SetDesiredCapacityRequest(input *SetDesiredCapacityInput) input = &SetDesiredCapacityInput{} } + output = &SetDesiredCapacityOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetDesiredCapacityOutput{} - req.Data = output return } @@ -3658,7 +3699,7 @@ func (c *AutoScaling) SetDesiredCapacityRequest(input *SetDesiredCapacityInput) // // Sets the size of the specified Auto Scaling group. // -// For more information about desired capacity, see What Is Auto Scaling? (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/WhatIsAutoScaling.html) +// For more information about desired capacity, see What Is Auto Scaling? (http://docs.aws.amazon.com/autoscaling/latest/userguide/WhatIsAutoScaling.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3669,14 +3710,15 @@ func (c *AutoScaling) SetDesiredCapacityRequest(input *SetDesiredCapacityInput) // API operation SetDesiredCapacity for usage and error information. // // Returned Error Codes: -// * ScalingActivityInProgress +// * ErrCodeScalingActivityInProgressFault "ScalingActivityInProgress" // The operation can't be performed because there are scaling activities in // progress. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetDesiredCapacity func (c *AutoScaling) SetDesiredCapacity(input *SetDesiredCapacityInput) (*SetDesiredCapacityOutput, error) { req, out := c.SetDesiredCapacityRequest(input) err := req.Send() @@ -3709,6 +3751,7 @@ const opSetInstanceHealth = "SetInstanceHealth" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceHealth func (c *AutoScaling) SetInstanceHealthRequest(input *SetInstanceHealthInput) (req *request.Request, output *SetInstanceHealthOutput) { op := &request.Operation{ Name: opSetInstanceHealth, @@ -3720,11 +3763,10 @@ func (c *AutoScaling) SetInstanceHealthRequest(input *SetInstanceHealthInput) (r input = &SetInstanceHealthInput{} } + output = &SetInstanceHealthOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetInstanceHealthOutput{} - req.Data = output return } @@ -3732,7 +3774,7 @@ func (c *AutoScaling) SetInstanceHealthRequest(input *SetInstanceHealthInput) (r // // Sets the health status of the specified instance. // -// For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html) +// For more information, see Health Checks (http://docs.aws.amazon.com/autoscaling/latest/userguide/healthcheck.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3743,10 +3785,11 @@ func (c *AutoScaling) SetInstanceHealthRequest(input *SetInstanceHealthInput) (r // API operation SetInstanceHealth for usage and error information. // // Returned Error Codes: -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceHealth func (c *AutoScaling) SetInstanceHealth(input *SetInstanceHealthInput) (*SetInstanceHealthOutput, error) { req, out := c.SetInstanceHealthRequest(input) err := req.Send() @@ -3779,6 +3822,7 @@ const opSetInstanceProtection = "SetInstanceProtection" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtection func (c *AutoScaling) SetInstanceProtectionRequest(input *SetInstanceProtectionInput) (req *request.Request, output *SetInstanceProtectionOutput) { op := &request.Operation{ Name: opSetInstanceProtection, @@ -3790,9 +3834,8 @@ func (c *AutoScaling) SetInstanceProtectionRequest(input *SetInstanceProtectionI input = &SetInstanceProtectionInput{} } - req = c.newRequest(op, input, output) output = &SetInstanceProtectionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3800,7 +3843,7 @@ func (c *AutoScaling) SetInstanceProtectionRequest(input *SetInstanceProtectionI // // Updates the instance protection settings of the specified instances. // -// For more information, see Instance Protection (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingBehavior.InstanceTermination.html#instance-protection) +// For more information, see Instance Protection (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-termination.html#instance-protection) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3811,15 +3854,16 @@ func (c *AutoScaling) SetInstanceProtectionRequest(input *SetInstanceProtectionI // API operation SetInstanceProtection for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededFault "LimitExceeded" // You have already reached a limit for your Auto Scaling resources (for example, // groups, launch configurations, or lifecycle hooks). For more information, // see DescribeAccountLimits. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtection func (c *AutoScaling) SetInstanceProtection(input *SetInstanceProtectionInput) (*SetInstanceProtectionOutput, error) { req, out := c.SetInstanceProtectionRequest(input) err := req.Send() @@ -3852,6 +3896,7 @@ const opSuspendProcesses = "SuspendProcesses" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SuspendProcesses func (c *AutoScaling) SuspendProcessesRequest(input *ScalingProcessQuery) (req *request.Request, output *SuspendProcessesOutput) { op := &request.Operation{ Name: opSuspendProcesses, @@ -3863,11 +3908,10 @@ func (c *AutoScaling) SuspendProcessesRequest(input *ScalingProcessQuery) (req * input = &ScalingProcessQuery{} } + output = &SuspendProcessesOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SuspendProcessesOutput{} - req.Data = output return } @@ -3882,7 +3926,7 @@ func (c *AutoScaling) SuspendProcessesRequest(input *ScalingProcessQuery) (req * // To resume processes that have been suspended, use ResumeProcesses. // // For more information, see Suspending and Resuming Auto Scaling Processes -// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SuspendResume.html) +// (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-suspend-resume-processes.html) // in the Auto Scaling User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3893,13 +3937,14 @@ func (c *AutoScaling) SuspendProcessesRequest(input *ScalingProcessQuery) (req * // API operation SuspendProcesses for usage and error information. // // Returned Error Codes: -// * ResourceInUse +// * ErrCodeResourceInUseFault "ResourceInUse" // The operation can't be performed because the resource is in use. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SuspendProcesses func (c *AutoScaling) SuspendProcesses(input *ScalingProcessQuery) (*SuspendProcessesOutput, error) { req, out := c.SuspendProcessesRequest(input) err := req.Send() @@ -3932,6 +3977,7 @@ const opTerminateInstanceInAutoScalingGroup = "TerminateInstanceInAutoScalingGro // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroup func (c *AutoScaling) TerminateInstanceInAutoScalingGroupRequest(input *TerminateInstanceInAutoScalingGroupInput) (req *request.Request, output *TerminateInstanceInAutoScalingGroupOutput) { op := &request.Operation{ Name: opTerminateInstanceInAutoScalingGroup, @@ -3943,9 +3989,8 @@ func (c *AutoScaling) TerminateInstanceInAutoScalingGroupRequest(input *Terminat input = &TerminateInstanceInAutoScalingGroupInput{} } - req = c.newRequest(op, input, output) output = &TerminateInstanceInAutoScalingGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3965,14 +4010,15 @@ func (c *AutoScaling) TerminateInstanceInAutoScalingGroupRequest(input *Terminat // API operation TerminateInstanceInAutoScalingGroup for usage and error information. // // Returned Error Codes: -// * ScalingActivityInProgress +// * ErrCodeScalingActivityInProgressFault "ScalingActivityInProgress" // The operation can't be performed because there are scaling activities in // progress. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroup func (c *AutoScaling) TerminateInstanceInAutoScalingGroup(input *TerminateInstanceInAutoScalingGroupInput) (*TerminateInstanceInAutoScalingGroupOutput, error) { req, out := c.TerminateInstanceInAutoScalingGroupRequest(input) err := req.Send() @@ -4005,6 +4051,7 @@ const opUpdateAutoScalingGroup = "UpdateAutoScalingGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup func (c *AutoScaling) UpdateAutoScalingGroupRequest(input *UpdateAutoScalingGroupInput) (req *request.Request, output *UpdateAutoScalingGroupOutput) { op := &request.Operation{ Name: opUpdateAutoScalingGroup, @@ -4016,11 +4063,10 @@ func (c *AutoScaling) UpdateAutoScalingGroupRequest(input *UpdateAutoScalingGrou input = &UpdateAutoScalingGroupInput{} } + output = &UpdateAutoScalingGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateAutoScalingGroupOutput{} - req.Data = output return } @@ -4039,17 +4085,17 @@ func (c *AutoScaling) UpdateAutoScalingGroupRequest(input *UpdateAutoScalingGrou // // Note the following: // -// If you specify a new value for MinSize without specifying a value for -// DesiredCapacity, and the new MinSize is larger than the current size of the -// group, we implicitly call SetDesiredCapacity to set the size of the group -// to the new value of MinSize. +// * If you specify a new value for MinSize without specifying a value for +// DesiredCapacity, and the new MinSize is larger than the current size of +// the group, we implicitly call SetDesiredCapacity to set the size of the +// group to the new value of MinSize. // -// If you specify a new value for MaxSize without specifying a value for -// DesiredCapacity, and the new MaxSize is smaller than the current size of -// the group, we implicitly call SetDesiredCapacity to set the size of the group -// to the new value of MaxSize. +// * If you specify a new value for MaxSize without specifying a value for +// DesiredCapacity, and the new MaxSize is smaller than the current size +// of the group, we implicitly call SetDesiredCapacity to set the size of +// the group to the new value of MaxSize. // -// All other optional parameters are left unchanged if not specified. +// * All other optional parameters are left unchanged if not specified. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4059,14 +4105,15 @@ func (c *AutoScaling) UpdateAutoScalingGroupRequest(input *UpdateAutoScalingGrou // API operation UpdateAutoScalingGroup for usage and error information. // // Returned Error Codes: -// * ScalingActivityInProgress +// * ErrCodeScalingActivityInProgressFault "ScalingActivityInProgress" // The operation can't be performed because there are scaling activities in // progress. // -// * ResourceContention +// * ErrCodeResourceContentionFault "ResourceContention" // You already have a pending update to an Auto Scaling resource (for example, // a group, instance, or load balancer). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup func (c *AutoScaling) UpdateAutoScalingGroup(input *UpdateAutoScalingGroupInput) (*UpdateAutoScalingGroupOutput, error) { req, out := c.UpdateAutoScalingGroupRequest(input) err := req.Send() @@ -4076,6 +4123,7 @@ func (c *AutoScaling) UpdateAutoScalingGroup(input *UpdateAutoScalingGroupInput) // Describes scaling activity, which is a long-running process that represents // a change to your Auto Scaling group, such as changing its size or replacing // an instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/Activity type Activity struct { _ struct{} `type:"structure"` @@ -4130,10 +4178,71 @@ func (s Activity) GoString() string { return s.String() } +// SetActivityId sets the ActivityId field's value. +func (s *Activity) SetActivityId(v string) *Activity { + s.ActivityId = &v + return s +} + +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *Activity) SetAutoScalingGroupName(v string) *Activity { + s.AutoScalingGroupName = &v + return s +} + +// SetCause sets the Cause field's value. +func (s *Activity) SetCause(v string) *Activity { + s.Cause = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Activity) SetDescription(v string) *Activity { + s.Description = &v + return s +} + +// SetDetails sets the Details field's value. +func (s *Activity) SetDetails(v string) *Activity { + s.Details = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *Activity) SetEndTime(v time.Time) *Activity { + s.EndTime = &v + return s +} + +// SetProgress sets the Progress field's value. +func (s *Activity) SetProgress(v int64) *Activity { + s.Progress = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *Activity) SetStartTime(v time.Time) *Activity { + s.StartTime = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *Activity) SetStatusCode(v string) *Activity { + s.StatusCode = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *Activity) SetStatusMessage(v string) *Activity { + s.StatusMessage = &v + return s +} + // Describes a policy adjustment type. // // For more information, see Dynamic Scaling (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-scale-based-on-demand.html) // in the Auto Scaling User Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AdjustmentType type AdjustmentType struct { _ struct{} `type:"structure"` @@ -4152,7 +4261,14 @@ func (s AdjustmentType) GoString() string { return s.String() } +// SetAdjustmentType sets the AdjustmentType field's value. +func (s *AdjustmentType) SetAdjustmentType(v string) *AdjustmentType { + s.AdjustmentType = &v + return s +} + // Describes an alarm. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/Alarm type Alarm struct { _ struct{} `type:"structure"` @@ -4173,7 +4289,20 @@ func (s Alarm) GoString() string { return s.String() } +// SetAlarmARN sets the AlarmARN field's value. +func (s *Alarm) SetAlarmARN(v string) *Alarm { + s.AlarmARN = &v + return s +} + +// SetAlarmName sets the AlarmName field's value. +func (s *Alarm) SetAlarmName(v string) *Alarm { + s.AlarmName = &v + return s +} + // Contains the parameters for AttachInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstancesQuery type AttachInstancesInput struct { _ struct{} `type:"structure"` @@ -4212,6 +4341,19 @@ func (s *AttachInstancesInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *AttachInstancesInput) SetAutoScalingGroupName(v string) *AttachInstancesInput { + s.AutoScalingGroupName = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *AttachInstancesInput) SetInstanceIds(v []*string) *AttachInstancesInput { + s.InstanceIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstancesOutput type AttachInstancesOutput struct { _ struct{} `type:"structure"` } @@ -4227,6 +4369,7 @@ func (s AttachInstancesOutput) GoString() string { } // Contains the parameters for AttachLoadBalancerTargetGroups. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroupsType type AttachLoadBalancerTargetGroupsInput struct { _ struct{} `type:"structure"` @@ -4270,6 +4413,19 @@ func (s *AttachLoadBalancerTargetGroupsInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *AttachLoadBalancerTargetGroupsInput) SetAutoScalingGroupName(v string) *AttachLoadBalancerTargetGroupsInput { + s.AutoScalingGroupName = &v + return s +} + +// SetTargetGroupARNs sets the TargetGroupARNs field's value. +func (s *AttachLoadBalancerTargetGroupsInput) SetTargetGroupARNs(v []*string) *AttachLoadBalancerTargetGroupsInput { + s.TargetGroupARNs = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroupsResultType type AttachLoadBalancerTargetGroupsOutput struct { _ struct{} `type:"structure"` } @@ -4285,6 +4441,7 @@ func (s AttachLoadBalancerTargetGroupsOutput) GoString() string { } // Contains the parameters for AttachLoadBalancers. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancersType type AttachLoadBalancersInput struct { _ struct{} `type:"structure"` @@ -4328,7 +4485,20 @@ func (s *AttachLoadBalancersInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *AttachLoadBalancersInput) SetAutoScalingGroupName(v string) *AttachLoadBalancersInput { + s.AutoScalingGroupName = &v + return s +} + +// SetLoadBalancerNames sets the LoadBalancerNames field's value. +func (s *AttachLoadBalancersInput) SetLoadBalancerNames(v []*string) *AttachLoadBalancersInput { + s.LoadBalancerNames = v + return s +} + // Contains the output of AttachLoadBalancers. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancersResultType type AttachLoadBalancersOutput struct { _ struct{} `type:"structure"` } @@ -4344,6 +4514,7 @@ func (s AttachLoadBalancersOutput) GoString() string { } // Describes a block device mapping. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BlockDeviceMapping type BlockDeviceMapping struct { _ struct{} `type:"structure"` @@ -4400,7 +4571,32 @@ func (s *BlockDeviceMapping) Validate() error { return nil } +// SetDeviceName sets the DeviceName field's value. +func (s *BlockDeviceMapping) SetDeviceName(v string) *BlockDeviceMapping { + s.DeviceName = &v + return s +} + +// SetEbs sets the Ebs field's value. +func (s *BlockDeviceMapping) SetEbs(v *Ebs) *BlockDeviceMapping { + s.Ebs = v + return s +} + +// SetNoDevice sets the NoDevice field's value. +func (s *BlockDeviceMapping) SetNoDevice(v bool) *BlockDeviceMapping { + s.NoDevice = &v + return s +} + +// SetVirtualName sets the VirtualName field's value. +func (s *BlockDeviceMapping) SetVirtualName(v string) *BlockDeviceMapping { + s.VirtualName = &v + return s +} + // Contains the parameters for CompleteLifecycleAction. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleActionType type CompleteLifecycleActionInput struct { _ struct{} `type:"structure"` @@ -4470,7 +4666,38 @@ func (s *CompleteLifecycleActionInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *CompleteLifecycleActionInput) SetAutoScalingGroupName(v string) *CompleteLifecycleActionInput { + s.AutoScalingGroupName = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CompleteLifecycleActionInput) SetInstanceId(v string) *CompleteLifecycleActionInput { + s.InstanceId = &v + return s +} + +// SetLifecycleActionResult sets the LifecycleActionResult field's value. +func (s *CompleteLifecycleActionInput) SetLifecycleActionResult(v string) *CompleteLifecycleActionInput { + s.LifecycleActionResult = &v + return s +} + +// SetLifecycleActionToken sets the LifecycleActionToken field's value. +func (s *CompleteLifecycleActionInput) SetLifecycleActionToken(v string) *CompleteLifecycleActionInput { + s.LifecycleActionToken = &v + return s +} + +// SetLifecycleHookName sets the LifecycleHookName field's value. +func (s *CompleteLifecycleActionInput) SetLifecycleHookName(v string) *CompleteLifecycleActionInput { + s.LifecycleHookName = &v + return s +} + // Contains the output of CompleteLifecycleAction. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleActionAnswer type CompleteLifecycleActionOutput struct { _ struct{} `type:"structure"` } @@ -4486,6 +4713,7 @@ func (s CompleteLifecycleActionOutput) GoString() string { } // Contains the parameters for CreateAutoScalingGroup. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroupType type CreateAutoScalingGroupInput struct { _ struct{} `type:"structure"` @@ -4502,7 +4730,7 @@ type CreateAutoScalingGroupInput struct { // The amount of time, in seconds, after a scaling activity completes before // another scaling activity can start. The default is 300. // - // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html) + // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/autoscaling/latest/userguide/Cooldown.html) // in the Auto Scaling User Guide. DefaultCooldown *int64 `type:"integer"` @@ -4518,14 +4746,14 @@ type CreateAutoScalingGroupInput struct { // // This parameter is required if you are adding an ELB health check. // - // For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html) + // For more information, see Health Checks (http://docs.aws.amazon.com/autoscaling/latest/userguide/healthcheck.html) // in the Auto Scaling User Guide. HealthCheckGracePeriod *int64 `type:"integer"` // The service to use for the health checks. The valid values are EC2 and ELB. // // By default, health checks use Amazon EC2 instance status checks to determine - // the health of an instance. For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html) + // the health of an instance. For more information, see Health Checks (http://docs.aws.amazon.com/autoscaling/latest/userguide/healthcheck.html) // in the Auto Scaling User Guide. HealthCheckType *string `min:"1" type:"string"` @@ -4538,7 +4766,7 @@ type CreateAutoScalingGroupInput struct { // the block device mapping. // // For more information, see Create an Auto Scaling Group Using an EC2 Instance - // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/create-asg-from-instance.html) + // (http://docs.aws.amazon.com/autoscaling/latest/userguide/create-asg-from-instance.html) // in the Auto Scaling User Guide. InstanceId *string `min:"1" type:"string"` @@ -4550,7 +4778,7 @@ type CreateAutoScalingGroupInput struct { // use TargetGroupARNs instead. // // For more information, see Using a Load Balancer With an Auto Scaling Group - // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SetUpASLBApp.html) + // (http://docs.aws.amazon.com/autoscaling/latest/userguide/create-asg-from-instance.html) // in the Auto Scaling User Guide. LoadBalancerNames []*string `type:"list"` @@ -4575,7 +4803,7 @@ type CreateAutoScalingGroupInput struct { // One or more tags. // - // For more information, see Tagging Auto Scaling Groups and Instances (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/ASTagging.html) + // For more information, see Tagging Auto Scaling Groups and Instances (http://docs.aws.amazon.com/autoscaling/latest/userguide/autoscaling-tagging.html) // in the Auto Scaling User Guide. Tags []*Tag `type:"list"` @@ -4586,7 +4814,7 @@ type CreateAutoScalingGroupInput struct { // These policies are executed in the order that they are listed. // // For more information, see Controlling Which Instances Auto Scaling Terminates - // During Scale In (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingBehavior.InstanceTermination.html) + // During Scale In (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-termination.html) // in the Auto Scaling User Guide. TerminationPolicies []*string `type:"list"` @@ -4596,7 +4824,7 @@ type CreateAutoScalingGroupInput struct { // If you specify subnets and Availability Zones with this call, ensure that // the subnets' Availability Zones match the Availability Zones specified. // - // For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html) + // For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/autoscaling/latest/userguide/asg-in-vpc.html) // in the Auto Scaling User Guide. VPCZoneIdentifier *string `min:"1" type:"string"` } @@ -4661,6 +4889,109 @@ func (s *CreateAutoScalingGroupInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *CreateAutoScalingGroupInput) SetAutoScalingGroupName(v string) *CreateAutoScalingGroupInput { + s.AutoScalingGroupName = &v + return s +} + +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *CreateAutoScalingGroupInput) SetAvailabilityZones(v []*string) *CreateAutoScalingGroupInput { + s.AvailabilityZones = v + return s +} + +// SetDefaultCooldown sets the DefaultCooldown field's value. +func (s *CreateAutoScalingGroupInput) SetDefaultCooldown(v int64) *CreateAutoScalingGroupInput { + s.DefaultCooldown = &v + return s +} + +// SetDesiredCapacity sets the DesiredCapacity field's value. +func (s *CreateAutoScalingGroupInput) SetDesiredCapacity(v int64) *CreateAutoScalingGroupInput { + s.DesiredCapacity = &v + return s +} + +// SetHealthCheckGracePeriod sets the HealthCheckGracePeriod field's value. +func (s *CreateAutoScalingGroupInput) SetHealthCheckGracePeriod(v int64) *CreateAutoScalingGroupInput { + s.HealthCheckGracePeriod = &v + return s +} + +// SetHealthCheckType sets the HealthCheckType field's value. +func (s *CreateAutoScalingGroupInput) SetHealthCheckType(v string) *CreateAutoScalingGroupInput { + s.HealthCheckType = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CreateAutoScalingGroupInput) SetInstanceId(v string) *CreateAutoScalingGroupInput { + s.InstanceId = &v + return s +} + +// SetLaunchConfigurationName sets the LaunchConfigurationName field's value. +func (s *CreateAutoScalingGroupInput) SetLaunchConfigurationName(v string) *CreateAutoScalingGroupInput { + s.LaunchConfigurationName = &v + return s +} + +// SetLoadBalancerNames sets the LoadBalancerNames field's value. +func (s *CreateAutoScalingGroupInput) SetLoadBalancerNames(v []*string) *CreateAutoScalingGroupInput { + s.LoadBalancerNames = v + return s +} + +// SetMaxSize sets the MaxSize field's value. +func (s *CreateAutoScalingGroupInput) SetMaxSize(v int64) *CreateAutoScalingGroupInput { + s.MaxSize = &v + return s +} + +// SetMinSize sets the MinSize field's value. +func (s *CreateAutoScalingGroupInput) SetMinSize(v int64) *CreateAutoScalingGroupInput { + s.MinSize = &v + return s +} + +// SetNewInstancesProtectedFromScaleIn sets the NewInstancesProtectedFromScaleIn field's value. +func (s *CreateAutoScalingGroupInput) SetNewInstancesProtectedFromScaleIn(v bool) *CreateAutoScalingGroupInput { + s.NewInstancesProtectedFromScaleIn = &v + return s +} + +// SetPlacementGroup sets the PlacementGroup field's value. +func (s *CreateAutoScalingGroupInput) SetPlacementGroup(v string) *CreateAutoScalingGroupInput { + s.PlacementGroup = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateAutoScalingGroupInput) SetTags(v []*Tag) *CreateAutoScalingGroupInput { + s.Tags = v + return s +} + +// SetTargetGroupARNs sets the TargetGroupARNs field's value. +func (s *CreateAutoScalingGroupInput) SetTargetGroupARNs(v []*string) *CreateAutoScalingGroupInput { + s.TargetGroupARNs = v + return s +} + +// SetTerminationPolicies sets the TerminationPolicies field's value. +func (s *CreateAutoScalingGroupInput) SetTerminationPolicies(v []*string) *CreateAutoScalingGroupInput { + s.TerminationPolicies = v + return s +} + +// SetVPCZoneIdentifier sets the VPCZoneIdentifier field's value. +func (s *CreateAutoScalingGroupInput) SetVPCZoneIdentifier(v string) *CreateAutoScalingGroupInput { + s.VPCZoneIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroupOutput type CreateAutoScalingGroupOutput struct { _ struct{} `type:"structure"` } @@ -4676,20 +5007,21 @@ func (s CreateAutoScalingGroupOutput) GoString() string { } // Contains the parameters for CreateLaunchConfiguration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfigurationType type CreateLaunchConfigurationInput struct { _ struct{} `type:"structure"` // Used for groups that launch instances into a virtual private cloud (VPC). // Specifies whether to assign a public IP address to each instance. For more - // information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html) + // information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/autoscaling/latest/userguide/asg-in-vpc.html) // in the Auto Scaling User Guide. // // If you specify this parameter, be sure to specify at least one subnet when // you create your group. // - // Default: If the instance is launched into a default subnet, the default - // is true. If the instance is launched into a nondefault subnet, the default - // is false. For more information, see Supported Platforms (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html) + // Default: If the instance is launched into a default subnet, the default is + // true. If the instance is launched into a nondefault subnet, the default is + // false. For more information, see Supported Platforms (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html) // in the Amazon Elastic Compute Cloud User Guide. AssociatePublicIpAddress *bool `type:"boolean"` @@ -4726,7 +5058,7 @@ type CreateLaunchConfigurationInput struct { // credentials available. You can use IAM roles with Auto Scaling to automatically // enable applications running on your EC2 instances to securely access other // AWS resources. For more information, see Launch Auto Scaling Instances with - // an IAM Role (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/us-iam-role.html) + // an IAM Role (http://docs.aws.amazon.com/autoscaling/latest/userguide/us-iam-role.html) // in the Auto Scaling User Guide. IamInstanceProfile *string `min:"1" type:"string"` @@ -4737,14 +5069,14 @@ type CreateLaunchConfigurationInput struct { // The ID of the instance to use to create the launch configuration. // - // The new launch configuration derives attributes from the instance, with - // the exception of the block device mapping. + // The new launch configuration derives attributes from the instance, with the + // exception of the block device mapping. // // To create a launch configuration with a block device mapping or override // any other instance attributes, specify them as part of the same request. // // For more information, see Create a Launch Configuration Using an EC2 Instance - // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/create-lc-with-instanceID.html) + // (http://docs.aws.amazon.com/autoscaling/latest/userguide/create-lc-with-instanceID.html) // in the Auto Scaling User Guide. InstanceId *string `min:"1" type:"string"` @@ -4774,14 +5106,14 @@ type CreateLaunchConfigurationInput struct { // The tenancy of the instance. An instance with a tenancy of dedicated runs // on single-tenant hardware and can only be launched into a VPC. // - // You must set the value of this parameter to dedicated if want to launch - // Dedicated Instances into a shared tenancy VPC (VPC with instance placement - // tenancy attribute set to default). + // You must set the value of this parameter to dedicated if want to launch Dedicated + // Instances into a shared tenancy VPC (VPC with instance placement tenancy + // attribute set to default). // // If you specify this parameter, be sure to specify at least one subnet when // you create your group. // - // For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html) + // For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/autoscaling/latest/userguide/asg-in-vpc.html) // in the Auto Scaling User Guide. // // Valid values: default | dedicated @@ -4805,7 +5137,7 @@ type CreateLaunchConfigurationInput struct { // The maximum hourly price to be paid for any Spot Instance launched to fulfill // the request. Spot Instances are launched when the price you specify exceeds // the current Spot market price. For more information, see Launching Spot Instances - // in Your Auto Scaling Group (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US-SpotInstances.html) + // in Your Auto Scaling Group (http://docs.aws.amazon.com/autoscaling/latest/userguide/US-SpotInstances.html) // in the Auto Scaling User Guide. SpotPrice *string `min:"1" type:"string"` @@ -4881,6 +5213,115 @@ func (s *CreateLaunchConfigurationInput) Validate() error { return nil } +// SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value. +func (s *CreateLaunchConfigurationInput) SetAssociatePublicIpAddress(v bool) *CreateLaunchConfigurationInput { + s.AssociatePublicIpAddress = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *CreateLaunchConfigurationInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *CreateLaunchConfigurationInput { + s.BlockDeviceMappings = v + return s +} + +// SetClassicLinkVPCId sets the ClassicLinkVPCId field's value. +func (s *CreateLaunchConfigurationInput) SetClassicLinkVPCId(v string) *CreateLaunchConfigurationInput { + s.ClassicLinkVPCId = &v + return s +} + +// SetClassicLinkVPCSecurityGroups sets the ClassicLinkVPCSecurityGroups field's value. +func (s *CreateLaunchConfigurationInput) SetClassicLinkVPCSecurityGroups(v []*string) *CreateLaunchConfigurationInput { + s.ClassicLinkVPCSecurityGroups = v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *CreateLaunchConfigurationInput) SetEbsOptimized(v bool) *CreateLaunchConfigurationInput { + s.EbsOptimized = &v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *CreateLaunchConfigurationInput) SetIamInstanceProfile(v string) *CreateLaunchConfigurationInput { + s.IamInstanceProfile = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *CreateLaunchConfigurationInput) SetImageId(v string) *CreateLaunchConfigurationInput { + s.ImageId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CreateLaunchConfigurationInput) SetInstanceId(v string) *CreateLaunchConfigurationInput { + s.InstanceId = &v + return s +} + +// SetInstanceMonitoring sets the InstanceMonitoring field's value. +func (s *CreateLaunchConfigurationInput) SetInstanceMonitoring(v *InstanceMonitoring) *CreateLaunchConfigurationInput { + s.InstanceMonitoring = v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *CreateLaunchConfigurationInput) SetInstanceType(v string) *CreateLaunchConfigurationInput { + s.InstanceType = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *CreateLaunchConfigurationInput) SetKernelId(v string) *CreateLaunchConfigurationInput { + s.KernelId = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *CreateLaunchConfigurationInput) SetKeyName(v string) *CreateLaunchConfigurationInput { + s.KeyName = &v + return s +} + +// SetLaunchConfigurationName sets the LaunchConfigurationName field's value. +func (s *CreateLaunchConfigurationInput) SetLaunchConfigurationName(v string) *CreateLaunchConfigurationInput { + s.LaunchConfigurationName = &v + return s +} + +// SetPlacementTenancy sets the PlacementTenancy field's value. +func (s *CreateLaunchConfigurationInput) SetPlacementTenancy(v string) *CreateLaunchConfigurationInput { + s.PlacementTenancy = &v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *CreateLaunchConfigurationInput) SetRamdiskId(v string) *CreateLaunchConfigurationInput { + s.RamdiskId = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *CreateLaunchConfigurationInput) SetSecurityGroups(v []*string) *CreateLaunchConfigurationInput { + s.SecurityGroups = v + return s +} + +// SetSpotPrice sets the SpotPrice field's value. +func (s *CreateLaunchConfigurationInput) SetSpotPrice(v string) *CreateLaunchConfigurationInput { + s.SpotPrice = &v + return s +} + +// SetUserData sets the UserData field's value. +func (s *CreateLaunchConfigurationInput) SetUserData(v string) *CreateLaunchConfigurationInput { + s.UserData = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfigurationOutput type CreateLaunchConfigurationOutput struct { _ struct{} `type:"structure"` } @@ -4896,6 +5337,7 @@ func (s CreateLaunchConfigurationOutput) GoString() string { } // Contains the parameters for CreateOrUpdateTags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTagsType type CreateOrUpdateTagsInput struct { _ struct{} `type:"structure"` @@ -4938,6 +5380,13 @@ func (s *CreateOrUpdateTagsInput) Validate() error { return nil } +// SetTags sets the Tags field's value. +func (s *CreateOrUpdateTagsInput) SetTags(v []*Tag) *CreateOrUpdateTagsInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTagsOutput type CreateOrUpdateTagsOutput struct { _ struct{} `type:"structure"` } @@ -4953,6 +5402,7 @@ func (s CreateOrUpdateTagsOutput) GoString() string { } // Contains the parameters for DeleteAutoScalingGroup. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroupType type DeleteAutoScalingGroupInput struct { _ struct{} `type:"structure"` @@ -4993,6 +5443,19 @@ func (s *DeleteAutoScalingGroupInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DeleteAutoScalingGroupInput) SetAutoScalingGroupName(v string) *DeleteAutoScalingGroupInput { + s.AutoScalingGroupName = &v + return s +} + +// SetForceDelete sets the ForceDelete field's value. +func (s *DeleteAutoScalingGroupInput) SetForceDelete(v bool) *DeleteAutoScalingGroupInput { + s.ForceDelete = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroupOutput type DeleteAutoScalingGroupOutput struct { _ struct{} `type:"structure"` } @@ -5008,6 +5471,7 @@ func (s DeleteAutoScalingGroupOutput) GoString() string { } // Contains the parameters for DeleteLaunchConfiguration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchConfigurationNameType type DeleteLaunchConfigurationInput struct { _ struct{} `type:"structure"` @@ -5043,6 +5507,13 @@ func (s *DeleteLaunchConfigurationInput) Validate() error { return nil } +// SetLaunchConfigurationName sets the LaunchConfigurationName field's value. +func (s *DeleteLaunchConfigurationInput) SetLaunchConfigurationName(v string) *DeleteLaunchConfigurationInput { + s.LaunchConfigurationName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfigurationOutput type DeleteLaunchConfigurationOutput struct { _ struct{} `type:"structure"` } @@ -5058,6 +5529,7 @@ func (s DeleteLaunchConfigurationOutput) GoString() string { } // Contains the parameters for DeleteLifecycleHook. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHookType type DeleteLifecycleHookInput struct { _ struct{} `type:"structure"` @@ -5104,7 +5576,20 @@ func (s *DeleteLifecycleHookInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DeleteLifecycleHookInput) SetAutoScalingGroupName(v string) *DeleteLifecycleHookInput { + s.AutoScalingGroupName = &v + return s +} + +// SetLifecycleHookName sets the LifecycleHookName field's value. +func (s *DeleteLifecycleHookInput) SetLifecycleHookName(v string) *DeleteLifecycleHookInput { + s.LifecycleHookName = &v + return s +} + // Contains the output of DeleteLifecycleHook. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHookAnswer type DeleteLifecycleHookOutput struct { _ struct{} `type:"structure"` } @@ -5120,6 +5605,7 @@ func (s DeleteLifecycleHookOutput) GoString() string { } // Contains the parameters for DeleteNotificationConfiguration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfigurationType type DeleteNotificationConfigurationInput struct { _ struct{} `type:"structure"` @@ -5167,6 +5653,19 @@ func (s *DeleteNotificationConfigurationInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DeleteNotificationConfigurationInput) SetAutoScalingGroupName(v string) *DeleteNotificationConfigurationInput { + s.AutoScalingGroupName = &v + return s +} + +// SetTopicARN sets the TopicARN field's value. +func (s *DeleteNotificationConfigurationInput) SetTopicARN(v string) *DeleteNotificationConfigurationInput { + s.TopicARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfigurationOutput type DeleteNotificationConfigurationOutput struct { _ struct{} `type:"structure"` } @@ -5182,6 +5681,7 @@ func (s DeleteNotificationConfigurationOutput) GoString() string { } // Contains the parameters for DeletePolicy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicyType type DeletePolicyInput struct { _ struct{} `type:"structure"` @@ -5223,6 +5723,19 @@ func (s *DeletePolicyInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DeletePolicyInput) SetAutoScalingGroupName(v string) *DeletePolicyInput { + s.AutoScalingGroupName = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *DeletePolicyInput) SetPolicyName(v string) *DeletePolicyInput { + s.PolicyName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicyOutput type DeletePolicyOutput struct { _ struct{} `type:"structure"` } @@ -5238,6 +5751,7 @@ func (s DeletePolicyOutput) GoString() string { } // Contains the parameters for DeleteScheduledAction. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledActionType type DeleteScheduledActionInput struct { _ struct{} `type:"structure"` @@ -5284,6 +5798,19 @@ func (s *DeleteScheduledActionInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DeleteScheduledActionInput) SetAutoScalingGroupName(v string) *DeleteScheduledActionInput { + s.AutoScalingGroupName = &v + return s +} + +// SetScheduledActionName sets the ScheduledActionName field's value. +func (s *DeleteScheduledActionInput) SetScheduledActionName(v string) *DeleteScheduledActionInput { + s.ScheduledActionName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledActionOutput type DeleteScheduledActionOutput struct { _ struct{} `type:"structure"` } @@ -5299,6 +5826,7 @@ func (s DeleteScheduledActionOutput) GoString() string { } // Contains the parameters for DeleteTags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTagsType type DeleteTagsInput struct { _ struct{} `type:"structure"` @@ -5341,6 +5869,13 @@ func (s *DeleteTagsInput) Validate() error { return nil } +// SetTags sets the Tags field's value. +func (s *DeleteTagsInput) SetTags(v []*Tag) *DeleteTagsInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTagsOutput type DeleteTagsOutput struct { _ struct{} `type:"structure"` } @@ -5355,6 +5890,7 @@ func (s DeleteTagsOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimitsInput type DescribeAccountLimitsInput struct { _ struct{} `type:"structure"` } @@ -5370,6 +5906,7 @@ func (s DescribeAccountLimitsInput) GoString() string { } // Contains the parameters for DescribeAccountLimits. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimitsAnswer type DescribeAccountLimitsOutput struct { _ struct{} `type:"structure"` @@ -5398,6 +5935,31 @@ func (s DescribeAccountLimitsOutput) GoString() string { return s.String() } +// SetMaxNumberOfAutoScalingGroups sets the MaxNumberOfAutoScalingGroups field's value. +func (s *DescribeAccountLimitsOutput) SetMaxNumberOfAutoScalingGroups(v int64) *DescribeAccountLimitsOutput { + s.MaxNumberOfAutoScalingGroups = &v + return s +} + +// SetMaxNumberOfLaunchConfigurations sets the MaxNumberOfLaunchConfigurations field's value. +func (s *DescribeAccountLimitsOutput) SetMaxNumberOfLaunchConfigurations(v int64) *DescribeAccountLimitsOutput { + s.MaxNumberOfLaunchConfigurations = &v + return s +} + +// SetNumberOfAutoScalingGroups sets the NumberOfAutoScalingGroups field's value. +func (s *DescribeAccountLimitsOutput) SetNumberOfAutoScalingGroups(v int64) *DescribeAccountLimitsOutput { + s.NumberOfAutoScalingGroups = &v + return s +} + +// SetNumberOfLaunchConfigurations sets the NumberOfLaunchConfigurations field's value. +func (s *DescribeAccountLimitsOutput) SetNumberOfLaunchConfigurations(v int64) *DescribeAccountLimitsOutput { + s.NumberOfLaunchConfigurations = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypesInput type DescribeAdjustmentTypesInput struct { _ struct{} `type:"structure"` } @@ -5413,6 +5975,7 @@ func (s DescribeAdjustmentTypesInput) GoString() string { } // Contains the parameters for DescribeAdjustmentTypes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypesAnswer type DescribeAdjustmentTypesOutput struct { _ struct{} `type:"structure"` @@ -5430,7 +5993,14 @@ func (s DescribeAdjustmentTypesOutput) GoString() string { return s.String() } +// SetAdjustmentTypes sets the AdjustmentTypes field's value. +func (s *DescribeAdjustmentTypesOutput) SetAdjustmentTypes(v []*AdjustmentType) *DescribeAdjustmentTypesOutput { + s.AdjustmentTypes = v + return s +} + // Contains the parameters for DescribeAutoScalingGroups. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/GroupNamesType type DescribeAutoScalingGroupsInput struct { _ struct{} `type:"structure"` @@ -5456,7 +6026,26 @@ func (s DescribeAutoScalingGroupsInput) GoString() string { return s.String() } +// SetAutoScalingGroupNames sets the AutoScalingGroupNames field's value. +func (s *DescribeAutoScalingGroupsInput) SetAutoScalingGroupNames(v []*string) *DescribeAutoScalingGroupsInput { + s.AutoScalingGroupNames = v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeAutoScalingGroupsInput) SetMaxRecords(v int64) *DescribeAutoScalingGroupsInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAutoScalingGroupsInput) SetNextToken(v string) *DescribeAutoScalingGroupsInput { + s.NextToken = &v + return s +} + // Contains the output for DescribeAutoScalingGroups. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/GroupsType type DescribeAutoScalingGroupsOutput struct { _ struct{} `type:"structure"` @@ -5480,7 +6069,20 @@ func (s DescribeAutoScalingGroupsOutput) GoString() string { return s.String() } +// SetAutoScalingGroups sets the AutoScalingGroups field's value. +func (s *DescribeAutoScalingGroupsOutput) SetAutoScalingGroups(v []*Group) *DescribeAutoScalingGroupsOutput { + s.AutoScalingGroups = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAutoScalingGroupsOutput) SetNextToken(v string) *DescribeAutoScalingGroupsOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeAutoScalingInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstancesType type DescribeAutoScalingInstancesInput struct { _ struct{} `type:"structure"` @@ -5507,7 +6109,26 @@ func (s DescribeAutoScalingInstancesInput) GoString() string { return s.String() } +// SetInstanceIds sets the InstanceIds field's value. +func (s *DescribeAutoScalingInstancesInput) SetInstanceIds(v []*string) *DescribeAutoScalingInstancesInput { + s.InstanceIds = v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeAutoScalingInstancesInput) SetMaxRecords(v int64) *DescribeAutoScalingInstancesInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAutoScalingInstancesInput) SetNextToken(v string) *DescribeAutoScalingInstancesInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeAutoScalingInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstancesType type DescribeAutoScalingInstancesOutput struct { _ struct{} `type:"structure"` @@ -5529,6 +6150,19 @@ func (s DescribeAutoScalingInstancesOutput) GoString() string { return s.String() } +// SetAutoScalingInstances sets the AutoScalingInstances field's value. +func (s *DescribeAutoScalingInstancesOutput) SetAutoScalingInstances(v []*InstanceDetails) *DescribeAutoScalingInstancesOutput { + s.AutoScalingInstances = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAutoScalingInstancesOutput) SetNextToken(v string) *DescribeAutoScalingInstancesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypesInput type DescribeAutoScalingNotificationTypesInput struct { _ struct{} `type:"structure"` } @@ -5544,6 +6178,7 @@ func (s DescribeAutoScalingNotificationTypesInput) GoString() string { } // Contains the output of DescribeAutoScalingNotificationTypes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypesAnswer type DescribeAutoScalingNotificationTypesOutput struct { _ struct{} `type:"structure"` @@ -5561,7 +6196,14 @@ func (s DescribeAutoScalingNotificationTypesOutput) GoString() string { return s.String() } +// SetAutoScalingNotificationTypes sets the AutoScalingNotificationTypes field's value. +func (s *DescribeAutoScalingNotificationTypesOutput) SetAutoScalingNotificationTypes(v []*string) *DescribeAutoScalingNotificationTypesOutput { + s.AutoScalingNotificationTypes = v + return s +} + // Contains the parameters for DescribeLaunchConfigurations. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchConfigurationNamesType type DescribeLaunchConfigurationsInput struct { _ struct{} `type:"structure"` @@ -5587,7 +6229,26 @@ func (s DescribeLaunchConfigurationsInput) GoString() string { return s.String() } +// SetLaunchConfigurationNames sets the LaunchConfigurationNames field's value. +func (s *DescribeLaunchConfigurationsInput) SetLaunchConfigurationNames(v []*string) *DescribeLaunchConfigurationsInput { + s.LaunchConfigurationNames = v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeLaunchConfigurationsInput) SetMaxRecords(v int64) *DescribeLaunchConfigurationsInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLaunchConfigurationsInput) SetNextToken(v string) *DescribeLaunchConfigurationsInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeLaunchConfigurations. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchConfigurationsType type DescribeLaunchConfigurationsOutput struct { _ struct{} `type:"structure"` @@ -5611,6 +6272,19 @@ func (s DescribeLaunchConfigurationsOutput) GoString() string { return s.String() } +// SetLaunchConfigurations sets the LaunchConfigurations field's value. +func (s *DescribeLaunchConfigurationsOutput) SetLaunchConfigurations(v []*LaunchConfiguration) *DescribeLaunchConfigurationsOutput { + s.LaunchConfigurations = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLaunchConfigurationsOutput) SetNextToken(v string) *DescribeLaunchConfigurationsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHookTypesInput type DescribeLifecycleHookTypesInput struct { _ struct{} `type:"structure"` } @@ -5626,6 +6300,7 @@ func (s DescribeLifecycleHookTypesInput) GoString() string { } // Contains the output of DescribeLifecycleHookTypes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHookTypesAnswer type DescribeLifecycleHookTypesOutput struct { _ struct{} `type:"structure"` @@ -5643,7 +6318,14 @@ func (s DescribeLifecycleHookTypesOutput) GoString() string { return s.String() } +// SetLifecycleHookTypes sets the LifecycleHookTypes field's value. +func (s *DescribeLifecycleHookTypesOutput) SetLifecycleHookTypes(v []*string) *DescribeLifecycleHookTypesOutput { + s.LifecycleHookTypes = v + return s +} + // Contains the parameters for DescribeLifecycleHooks. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooksType type DescribeLifecycleHooksInput struct { _ struct{} `type:"structure"` @@ -5683,7 +6365,20 @@ func (s *DescribeLifecycleHooksInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DescribeLifecycleHooksInput) SetAutoScalingGroupName(v string) *DescribeLifecycleHooksInput { + s.AutoScalingGroupName = &v + return s +} + +// SetLifecycleHookNames sets the LifecycleHookNames field's value. +func (s *DescribeLifecycleHooksInput) SetLifecycleHookNames(v []*string) *DescribeLifecycleHooksInput { + s.LifecycleHookNames = v + return s +} + // Contains the output of DescribeLifecycleHooks. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooksAnswer type DescribeLifecycleHooksOutput struct { _ struct{} `type:"structure"` @@ -5701,7 +6396,14 @@ func (s DescribeLifecycleHooksOutput) GoString() string { return s.String() } +// SetLifecycleHooks sets the LifecycleHooks field's value. +func (s *DescribeLifecycleHooksOutput) SetLifecycleHooks(v []*LifecycleHook) *DescribeLifecycleHooksOutput { + s.LifecycleHooks = v + return s +} + // Contains the parameters for DescribeLoadBalancerTargetGroups. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroupsRequest type DescribeLoadBalancerTargetGroupsInput struct { _ struct{} `type:"structure"` @@ -5744,7 +6446,26 @@ func (s *DescribeLoadBalancerTargetGroupsInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DescribeLoadBalancerTargetGroupsInput) SetAutoScalingGroupName(v string) *DescribeLoadBalancerTargetGroupsInput { + s.AutoScalingGroupName = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeLoadBalancerTargetGroupsInput) SetMaxRecords(v int64) *DescribeLoadBalancerTargetGroupsInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLoadBalancerTargetGroupsInput) SetNextToken(v string) *DescribeLoadBalancerTargetGroupsInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeLoadBalancerTargetGroups. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroupsResponse type DescribeLoadBalancerTargetGroupsOutput struct { _ struct{} `type:"structure"` @@ -5766,7 +6487,20 @@ func (s DescribeLoadBalancerTargetGroupsOutput) GoString() string { return s.String() } +// SetLoadBalancerTargetGroups sets the LoadBalancerTargetGroups field's value. +func (s *DescribeLoadBalancerTargetGroupsOutput) SetLoadBalancerTargetGroups(v []*LoadBalancerTargetGroupState) *DescribeLoadBalancerTargetGroupsOutput { + s.LoadBalancerTargetGroups = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLoadBalancerTargetGroupsOutput) SetNextToken(v string) *DescribeLoadBalancerTargetGroupsOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeLoadBalancers. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancersRequest type DescribeLoadBalancersInput struct { _ struct{} `type:"structure"` @@ -5809,7 +6543,26 @@ func (s *DescribeLoadBalancersInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DescribeLoadBalancersInput) SetAutoScalingGroupName(v string) *DescribeLoadBalancersInput { + s.AutoScalingGroupName = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeLoadBalancersInput) SetMaxRecords(v int64) *DescribeLoadBalancersInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLoadBalancersInput) SetNextToken(v string) *DescribeLoadBalancersInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeLoadBalancers. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancersResponse type DescribeLoadBalancersOutput struct { _ struct{} `type:"structure"` @@ -5831,6 +6584,19 @@ func (s DescribeLoadBalancersOutput) GoString() string { return s.String() } +// SetLoadBalancers sets the LoadBalancers field's value. +func (s *DescribeLoadBalancersOutput) SetLoadBalancers(v []*LoadBalancerState) *DescribeLoadBalancersOutput { + s.LoadBalancers = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLoadBalancersOutput) SetNextToken(v string) *DescribeLoadBalancersOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypesInput type DescribeMetricCollectionTypesInput struct { _ struct{} `type:"structure"` } @@ -5846,6 +6612,7 @@ func (s DescribeMetricCollectionTypesInput) GoString() string { } // Contains the output of DescribeMetricsCollectionTypes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypesAnswer type DescribeMetricCollectionTypesOutput struct { _ struct{} `type:"structure"` @@ -5866,7 +6633,20 @@ func (s DescribeMetricCollectionTypesOutput) GoString() string { return s.String() } +// SetGranularities sets the Granularities field's value. +func (s *DescribeMetricCollectionTypesOutput) SetGranularities(v []*MetricGranularityType) *DescribeMetricCollectionTypesOutput { + s.Granularities = v + return s +} + +// SetMetrics sets the Metrics field's value. +func (s *DescribeMetricCollectionTypesOutput) SetMetrics(v []*MetricCollectionType) *DescribeMetricCollectionTypesOutput { + s.Metrics = v + return s +} + // Contains the parameters for DescribeNotificationConfigurations. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurationsType type DescribeNotificationConfigurationsInput struct { _ struct{} `type:"structure"` @@ -5891,7 +6671,26 @@ func (s DescribeNotificationConfigurationsInput) GoString() string { return s.String() } +// SetAutoScalingGroupNames sets the AutoScalingGroupNames field's value. +func (s *DescribeNotificationConfigurationsInput) SetAutoScalingGroupNames(v []*string) *DescribeNotificationConfigurationsInput { + s.AutoScalingGroupNames = v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeNotificationConfigurationsInput) SetMaxRecords(v int64) *DescribeNotificationConfigurationsInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeNotificationConfigurationsInput) SetNextToken(v string) *DescribeNotificationConfigurationsInput { + s.NextToken = &v + return s +} + // Contains the output from DescribeNotificationConfigurations. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurationsAnswer type DescribeNotificationConfigurationsOutput struct { _ struct{} `type:"structure"` @@ -5915,7 +6714,20 @@ func (s DescribeNotificationConfigurationsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeNotificationConfigurationsOutput) SetNextToken(v string) *DescribeNotificationConfigurationsOutput { + s.NextToken = &v + return s +} + +// SetNotificationConfigurations sets the NotificationConfigurations field's value. +func (s *DescribeNotificationConfigurationsOutput) SetNotificationConfigurations(v []*NotificationConfiguration) *DescribeNotificationConfigurationsOutput { + s.NotificationConfigurations = v + return s +} + // Contains the parameters for DescribePolicies. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePoliciesType type DescribePoliciesInput struct { _ struct{} `type:"structure"` @@ -5962,7 +6774,38 @@ func (s *DescribePoliciesInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DescribePoliciesInput) SetAutoScalingGroupName(v string) *DescribePoliciesInput { + s.AutoScalingGroupName = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribePoliciesInput) SetMaxRecords(v int64) *DescribePoliciesInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribePoliciesInput) SetNextToken(v string) *DescribePoliciesInput { + s.NextToken = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *DescribePoliciesInput) SetPolicyNames(v []*string) *DescribePoliciesInput { + s.PolicyNames = v + return s +} + +// SetPolicyTypes sets the PolicyTypes field's value. +func (s *DescribePoliciesInput) SetPolicyTypes(v []*string) *DescribePoliciesInput { + s.PolicyTypes = v + return s +} + // Contains the output of DescribePolicies. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PoliciesType type DescribePoliciesOutput struct { _ struct{} `type:"structure"` @@ -5984,7 +6827,20 @@ func (s DescribePoliciesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribePoliciesOutput) SetNextToken(v string) *DescribePoliciesOutput { + s.NextToken = &v + return s +} + +// SetScalingPolicies sets the ScalingPolicies field's value. +func (s *DescribePoliciesOutput) SetScalingPolicies(v []*ScalingPolicy) *DescribePoliciesOutput { + s.ScalingPolicies = v + return s +} + // Contains the parameters for DescribeScalingActivities. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivitiesType type DescribeScalingActivitiesInput struct { _ struct{} `type:"structure"` @@ -6029,7 +6885,32 @@ func (s *DescribeScalingActivitiesInput) Validate() error { return nil } +// SetActivityIds sets the ActivityIds field's value. +func (s *DescribeScalingActivitiesInput) SetActivityIds(v []*string) *DescribeScalingActivitiesInput { + s.ActivityIds = v + return s +} + +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DescribeScalingActivitiesInput) SetAutoScalingGroupName(v string) *DescribeScalingActivitiesInput { + s.AutoScalingGroupName = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeScalingActivitiesInput) SetMaxRecords(v int64) *DescribeScalingActivitiesInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeScalingActivitiesInput) SetNextToken(v string) *DescribeScalingActivitiesInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeScalingActivities. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ActivitiesType type DescribeScalingActivitiesOutput struct { _ struct{} `type:"structure"` @@ -6054,6 +6935,19 @@ func (s DescribeScalingActivitiesOutput) GoString() string { return s.String() } +// SetActivities sets the Activities field's value. +func (s *DescribeScalingActivitiesOutput) SetActivities(v []*Activity) *DescribeScalingActivitiesOutput { + s.Activities = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeScalingActivitiesOutput) SetNextToken(v string) *DescribeScalingActivitiesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypesInput type DescribeScalingProcessTypesInput struct { _ struct{} `type:"structure"` } @@ -6069,6 +6963,7 @@ func (s DescribeScalingProcessTypesInput) GoString() string { } // Contains the output of DescribeScalingProcessTypes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ProcessesType type DescribeScalingProcessTypesOutput struct { _ struct{} `type:"structure"` @@ -6086,7 +6981,14 @@ func (s DescribeScalingProcessTypesOutput) GoString() string { return s.String() } +// SetProcesses sets the Processes field's value. +func (s *DescribeScalingProcessTypesOutput) SetProcesses(v []*ProcessType) *DescribeScalingProcessTypesOutput { + s.Processes = v + return s +} + // Contains the parameters for DescribeScheduledActions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActionsType type DescribeScheduledActionsInput struct { _ struct{} `type:"structure"` @@ -6108,9 +7010,9 @@ type DescribeScheduledActionsInput struct { // scheduled actions are described. If you specify an unknown scheduled action, // it is ignored with no error. // - // You can describe up to a maximum of 50 instances with a single call. If - // there are more items to return, the call returns a token. To get the next - // set of items, repeat the call with the returned token. + // You can describe up to a maximum of 50 instances with a single call. If there + // are more items to return, the call returns a token. To get the next set of + // items, repeat the call with the returned token. ScheduledActionNames []*string `type:"list"` // The earliest scheduled start time to return. If scheduled action names are @@ -6141,7 +7043,44 @@ func (s *DescribeScheduledActionsInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DescribeScheduledActionsInput) SetAutoScalingGroupName(v string) *DescribeScheduledActionsInput { + s.AutoScalingGroupName = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *DescribeScheduledActionsInput) SetEndTime(v time.Time) *DescribeScheduledActionsInput { + s.EndTime = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeScheduledActionsInput) SetMaxRecords(v int64) *DescribeScheduledActionsInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeScheduledActionsInput) SetNextToken(v string) *DescribeScheduledActionsInput { + s.NextToken = &v + return s +} + +// SetScheduledActionNames sets the ScheduledActionNames field's value. +func (s *DescribeScheduledActionsInput) SetScheduledActionNames(v []*string) *DescribeScheduledActionsInput { + s.ScheduledActionNames = v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeScheduledActionsInput) SetStartTime(v time.Time) *DescribeScheduledActionsInput { + s.StartTime = &v + return s +} + // Contains the output of DescribeScheduledActions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ScheduledActionsType type DescribeScheduledActionsOutput struct { _ struct{} `type:"structure"` @@ -6163,7 +7102,20 @@ func (s DescribeScheduledActionsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeScheduledActionsOutput) SetNextToken(v string) *DescribeScheduledActionsOutput { + s.NextToken = &v + return s +} + +// SetScheduledUpdateGroupActions sets the ScheduledUpdateGroupActions field's value. +func (s *DescribeScheduledActionsOutput) SetScheduledUpdateGroupActions(v []*ScheduledUpdateGroupAction) *DescribeScheduledActionsOutput { + s.ScheduledUpdateGroupActions = v + return s +} + // Contains the parameters for DescribeTags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTagsType type DescribeTagsInput struct { _ struct{} `type:"structure"` @@ -6188,7 +7140,26 @@ func (s DescribeTagsInput) GoString() string { return s.String() } +// SetFilters sets the Filters field's value. +func (s *DescribeTagsInput) SetFilters(v []*Filter) *DescribeTagsInput { + s.Filters = v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeTagsInput) SetMaxRecords(v int64) *DescribeTagsInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeTagsInput) SetNextToken(v string) *DescribeTagsInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeTags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TagsType type DescribeTagsOutput struct { _ struct{} `type:"structure"` @@ -6210,6 +7181,19 @@ func (s DescribeTagsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeTagsOutput) SetNextToken(v string) *DescribeTagsOutput { + s.NextToken = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *DescribeTagsOutput) SetTags(v []*TagDescription) *DescribeTagsOutput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypesInput type DescribeTerminationPolicyTypesInput struct { _ struct{} `type:"structure"` } @@ -6225,6 +7209,7 @@ func (s DescribeTerminationPolicyTypesInput) GoString() string { } // Contains the output of DescribeTerminationPolicyTypes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypesAnswer type DescribeTerminationPolicyTypesOutput struct { _ struct{} `type:"structure"` @@ -6243,7 +7228,14 @@ func (s DescribeTerminationPolicyTypesOutput) GoString() string { return s.String() } +// SetTerminationPolicyTypes sets the TerminationPolicyTypes field's value. +func (s *DescribeTerminationPolicyTypesOutput) SetTerminationPolicyTypes(v []*string) *DescribeTerminationPolicyTypesOutput { + s.TerminationPolicyTypes = v + return s +} + // Contains the parameters for DetachInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstancesQuery type DetachInstancesInput struct { _ struct{} `type:"structure"` @@ -6291,7 +7283,26 @@ func (s *DetachInstancesInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DetachInstancesInput) SetAutoScalingGroupName(v string) *DetachInstancesInput { + s.AutoScalingGroupName = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *DetachInstancesInput) SetInstanceIds(v []*string) *DetachInstancesInput { + s.InstanceIds = v + return s +} + +// SetShouldDecrementDesiredCapacity sets the ShouldDecrementDesiredCapacity field's value. +func (s *DetachInstancesInput) SetShouldDecrementDesiredCapacity(v bool) *DetachInstancesInput { + s.ShouldDecrementDesiredCapacity = &v + return s +} + // Contains the output of DetachInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstancesAnswer type DetachInstancesOutput struct { _ struct{} `type:"structure"` @@ -6309,6 +7320,13 @@ func (s DetachInstancesOutput) GoString() string { return s.String() } +// SetActivities sets the Activities field's value. +func (s *DetachInstancesOutput) SetActivities(v []*Activity) *DetachInstancesOutput { + s.Activities = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancerTargetGroupsType type DetachLoadBalancerTargetGroupsInput struct { _ struct{} `type:"structure"` @@ -6352,6 +7370,19 @@ func (s *DetachLoadBalancerTargetGroupsInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DetachLoadBalancerTargetGroupsInput) SetAutoScalingGroupName(v string) *DetachLoadBalancerTargetGroupsInput { + s.AutoScalingGroupName = &v + return s +} + +// SetTargetGroupARNs sets the TargetGroupARNs field's value. +func (s *DetachLoadBalancerTargetGroupsInput) SetTargetGroupARNs(v []*string) *DetachLoadBalancerTargetGroupsInput { + s.TargetGroupARNs = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancerTargetGroupsResultType type DetachLoadBalancerTargetGroupsOutput struct { _ struct{} `type:"structure"` } @@ -6367,6 +7398,7 @@ func (s DetachLoadBalancerTargetGroupsOutput) GoString() string { } // Contains the parameters for DetachLoadBalancers. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancersType type DetachLoadBalancersInput struct { _ struct{} `type:"structure"` @@ -6410,7 +7442,20 @@ func (s *DetachLoadBalancersInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DetachLoadBalancersInput) SetAutoScalingGroupName(v string) *DetachLoadBalancersInput { + s.AutoScalingGroupName = &v + return s +} + +// SetLoadBalancerNames sets the LoadBalancerNames field's value. +func (s *DetachLoadBalancersInput) SetLoadBalancerNames(v []*string) *DetachLoadBalancersInput { + s.LoadBalancerNames = v + return s +} + // Contains the output for DetachLoadBalancers. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancersResultType type DetachLoadBalancersOutput struct { _ struct{} `type:"structure"` } @@ -6426,6 +7471,7 @@ func (s DetachLoadBalancersOutput) GoString() string { } // Contains the parameters for DisableMetricsCollection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollectionQuery type DisableMetricsCollectionInput struct { _ struct{} `type:"structure"` @@ -6437,21 +7483,21 @@ type DisableMetricsCollectionInput struct { // One or more of the following metrics. If you omit this parameter, all metrics // are disabled. // - // GroupMinSize + // * GroupMinSize // - // GroupMaxSize + // * GroupMaxSize // - // GroupDesiredCapacity + // * GroupDesiredCapacity // - // GroupInServiceInstances + // * GroupInServiceInstances // - // GroupPendingInstances + // * GroupPendingInstances // - // GroupStandbyInstances + // * GroupStandbyInstances // - // GroupTerminatingInstances + // * GroupTerminatingInstances // - // GroupTotalInstances + // * GroupTotalInstances Metrics []*string `type:"list"` } @@ -6481,6 +7527,19 @@ func (s *DisableMetricsCollectionInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *DisableMetricsCollectionInput) SetAutoScalingGroupName(v string) *DisableMetricsCollectionInput { + s.AutoScalingGroupName = &v + return s +} + +// SetMetrics sets the Metrics field's value. +func (s *DisableMetricsCollectionInput) SetMetrics(v []*string) *DisableMetricsCollectionInput { + s.Metrics = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollectionOutput type DisableMetricsCollectionOutput struct { _ struct{} `type:"structure"` } @@ -6496,6 +7555,7 @@ func (s DisableMetricsCollectionOutput) GoString() string { } // Describes an Amazon EBS volume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/Ebs type Ebs struct { _ struct{} `type:"structure"` @@ -6526,8 +7586,8 @@ type Ebs struct { // specify a value from 1 to 16,384. If you specify a snapshot, the volume size // must be equal to or larger than the snapshot size. // - // Default: If you create a volume from a snapshot and you don't specify a - // volume size, the default is the snapshot size. + // Default: If you create a volume from a snapshot and you don't specify a volume + // size, the default is the snapshot size. VolumeSize *int64 `min:"1" type:"integer"` // The volume type. For more information, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) @@ -6571,7 +7631,44 @@ func (s *Ebs) Validate() error { return nil } +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *Ebs) SetDeleteOnTermination(v bool) *Ebs { + s.DeleteOnTermination = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *Ebs) SetEncrypted(v bool) *Ebs { + s.Encrypted = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *Ebs) SetIops(v int64) *Ebs { + s.Iops = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *Ebs) SetSnapshotId(v string) *Ebs { + s.SnapshotId = &v + return s +} + +// SetVolumeSize sets the VolumeSize field's value. +func (s *Ebs) SetVolumeSize(v int64) *Ebs { + s.VolumeSize = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *Ebs) SetVolumeType(v string) *Ebs { + s.VolumeType = &v + return s +} + // Contains the parameters for EnableMetricsCollection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnableMetricsCollectionQuery type EnableMetricsCollectionInput struct { _ struct{} `type:"structure"` @@ -6589,21 +7686,21 @@ type EnableMetricsCollectionInput struct { // One or more of the following metrics. If you omit this parameter, all metrics // are enabled. // - // GroupMinSize + // * GroupMinSize // - // GroupMaxSize + // * GroupMaxSize // - // GroupDesiredCapacity + // * GroupDesiredCapacity // - // GroupInServiceInstances + // * GroupInServiceInstances // - // GroupPendingInstances + // * GroupPendingInstances // - // GroupStandbyInstances + // * GroupStandbyInstances // - // GroupTerminatingInstances + // * GroupTerminatingInstances // - // GroupTotalInstances + // * GroupTotalInstances Metrics []*string `type:"list"` } @@ -6639,6 +7736,25 @@ func (s *EnableMetricsCollectionInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *EnableMetricsCollectionInput) SetAutoScalingGroupName(v string) *EnableMetricsCollectionInput { + s.AutoScalingGroupName = &v + return s +} + +// SetGranularity sets the Granularity field's value. +func (s *EnableMetricsCollectionInput) SetGranularity(v string) *EnableMetricsCollectionInput { + s.Granularity = &v + return s +} + +// SetMetrics sets the Metrics field's value. +func (s *EnableMetricsCollectionInput) SetMetrics(v []*string) *EnableMetricsCollectionInput { + s.Metrics = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnableMetricsCollectionOutput type EnableMetricsCollectionOutput struct { _ struct{} `type:"structure"` } @@ -6654,6 +7770,7 @@ func (s EnableMetricsCollectionOutput) GoString() string { } // Describes an enabled metric. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnabledMetric type EnabledMetric struct { _ struct{} `type:"structure"` @@ -6662,21 +7779,21 @@ type EnabledMetric struct { // One of the following metrics: // - // GroupMinSize + // * GroupMinSize // - // GroupMaxSize + // * GroupMaxSize // - // GroupDesiredCapacity + // * GroupDesiredCapacity // - // GroupInServiceInstances + // * GroupInServiceInstances // - // GroupPendingInstances + // * GroupPendingInstances // - // GroupStandbyInstances + // * GroupStandbyInstances // - // GroupTerminatingInstances + // * GroupTerminatingInstances // - // GroupTotalInstances + // * GroupTotalInstances Metric *string `min:"1" type:"string"` } @@ -6690,7 +7807,20 @@ func (s EnabledMetric) GoString() string { return s.String() } +// SetGranularity sets the Granularity field's value. +func (s *EnabledMetric) SetGranularity(v string) *EnabledMetric { + s.Granularity = &v + return s +} + +// SetMetric sets the Metric field's value. +func (s *EnabledMetric) SetMetric(v string) *EnabledMetric { + s.Metric = &v + return s +} + // Contains the parameters for EnteStandby. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandbyQuery type EnterStandbyInput struct { _ struct{} `type:"structure"` @@ -6741,7 +7871,26 @@ func (s *EnterStandbyInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *EnterStandbyInput) SetAutoScalingGroupName(v string) *EnterStandbyInput { + s.AutoScalingGroupName = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *EnterStandbyInput) SetInstanceIds(v []*string) *EnterStandbyInput { + s.InstanceIds = v + return s +} + +// SetShouldDecrementDesiredCapacity sets the ShouldDecrementDesiredCapacity field's value. +func (s *EnterStandbyInput) SetShouldDecrementDesiredCapacity(v bool) *EnterStandbyInput { + s.ShouldDecrementDesiredCapacity = &v + return s +} + // Contains the output of EnterStandby. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandbyAnswer type EnterStandbyOutput struct { _ struct{} `type:"structure"` @@ -6759,7 +7908,14 @@ func (s EnterStandbyOutput) GoString() string { return s.String() } +// SetActivities sets the Activities field's value. +func (s *EnterStandbyOutput) SetActivities(v []*Activity) *EnterStandbyOutput { + s.Activities = v + return s +} + // Contains the parameters for ExecutePolicy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicyType type ExecutePolicyInput struct { _ struct{} `type:"structure"` @@ -6778,7 +7934,7 @@ type ExecutePolicyInput struct { // // This parameter is not supported if the policy type is StepScaling. // - // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html) + // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/autoscaling/latest/userguide/Cooldown.html) // in the Auto Scaling User Guide. HonorCooldown *bool `type:"boolean"` @@ -6830,6 +7986,37 @@ func (s *ExecutePolicyInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *ExecutePolicyInput) SetAutoScalingGroupName(v string) *ExecutePolicyInput { + s.AutoScalingGroupName = &v + return s +} + +// SetBreachThreshold sets the BreachThreshold field's value. +func (s *ExecutePolicyInput) SetBreachThreshold(v float64) *ExecutePolicyInput { + s.BreachThreshold = &v + return s +} + +// SetHonorCooldown sets the HonorCooldown field's value. +func (s *ExecutePolicyInput) SetHonorCooldown(v bool) *ExecutePolicyInput { + s.HonorCooldown = &v + return s +} + +// SetMetricValue sets the MetricValue field's value. +func (s *ExecutePolicyInput) SetMetricValue(v float64) *ExecutePolicyInput { + s.MetricValue = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *ExecutePolicyInput) SetPolicyName(v string) *ExecutePolicyInput { + s.PolicyName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicyOutput type ExecutePolicyOutput struct { _ struct{} `type:"structure"` } @@ -6845,6 +8032,7 @@ func (s ExecutePolicyOutput) GoString() string { } // Contains the parameters for ExitStandby. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandbyQuery type ExitStandbyInput struct { _ struct{} `type:"structure"` @@ -6883,7 +8071,20 @@ func (s *ExitStandbyInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *ExitStandbyInput) SetAutoScalingGroupName(v string) *ExitStandbyInput { + s.AutoScalingGroupName = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *ExitStandbyInput) SetInstanceIds(v []*string) *ExitStandbyInput { + s.InstanceIds = v + return s +} + // Contains the parameters for ExitStandby. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandbyAnswer type ExitStandbyOutput struct { _ struct{} `type:"structure"` @@ -6901,7 +8102,14 @@ func (s ExitStandbyOutput) GoString() string { return s.String() } +// SetActivities sets the Activities field's value. +func (s *ExitStandbyOutput) SetActivities(v []*Activity) *ExitStandbyOutput { + s.Activities = v + return s +} + // Describes a filter. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/Filter type Filter struct { _ struct{} `type:"structure"` @@ -6923,7 +8131,20 @@ func (s Filter) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *Filter) SetName(v string) *Filter { + s.Name = &v + return s +} + +// SetValues sets the Values field's value. +func (s *Filter) SetValues(v []*string) *Filter { + s.Values = v + return s +} + // Describes an Auto Scaling group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AutoScalingGroup type Group struct { _ struct{} `type:"structure"` @@ -7013,8 +8234,8 @@ type Group struct { // One or more subnet IDs, if applicable, separated by commas. // - // If you specify VPCZoneIdentifier and AvailabilityZones, ensure that the - // Availability Zones of the subnets match the values for AvailabilityZones. + // If you specify VPCZoneIdentifier and AvailabilityZones, ensure that the Availability + // Zones of the subnets match the values for AvailabilityZones. VPCZoneIdentifier *string `min:"1" type:"string"` } @@ -7028,7 +8249,140 @@ func (s Group) GoString() string { return s.String() } +// SetAutoScalingGroupARN sets the AutoScalingGroupARN field's value. +func (s *Group) SetAutoScalingGroupARN(v string) *Group { + s.AutoScalingGroupARN = &v + return s +} + +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *Group) SetAutoScalingGroupName(v string) *Group { + s.AutoScalingGroupName = &v + return s +} + +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *Group) SetAvailabilityZones(v []*string) *Group { + s.AvailabilityZones = v + return s +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *Group) SetCreatedTime(v time.Time) *Group { + s.CreatedTime = &v + return s +} + +// SetDefaultCooldown sets the DefaultCooldown field's value. +func (s *Group) SetDefaultCooldown(v int64) *Group { + s.DefaultCooldown = &v + return s +} + +// SetDesiredCapacity sets the DesiredCapacity field's value. +func (s *Group) SetDesiredCapacity(v int64) *Group { + s.DesiredCapacity = &v + return s +} + +// SetEnabledMetrics sets the EnabledMetrics field's value. +func (s *Group) SetEnabledMetrics(v []*EnabledMetric) *Group { + s.EnabledMetrics = v + return s +} + +// SetHealthCheckGracePeriod sets the HealthCheckGracePeriod field's value. +func (s *Group) SetHealthCheckGracePeriod(v int64) *Group { + s.HealthCheckGracePeriod = &v + return s +} + +// SetHealthCheckType sets the HealthCheckType field's value. +func (s *Group) SetHealthCheckType(v string) *Group { + s.HealthCheckType = &v + return s +} + +// SetInstances sets the Instances field's value. +func (s *Group) SetInstances(v []*Instance) *Group { + s.Instances = v + return s +} + +// SetLaunchConfigurationName sets the LaunchConfigurationName field's value. +func (s *Group) SetLaunchConfigurationName(v string) *Group { + s.LaunchConfigurationName = &v + return s +} + +// SetLoadBalancerNames sets the LoadBalancerNames field's value. +func (s *Group) SetLoadBalancerNames(v []*string) *Group { + s.LoadBalancerNames = v + return s +} + +// SetMaxSize sets the MaxSize field's value. +func (s *Group) SetMaxSize(v int64) *Group { + s.MaxSize = &v + return s +} + +// SetMinSize sets the MinSize field's value. +func (s *Group) SetMinSize(v int64) *Group { + s.MinSize = &v + return s +} + +// SetNewInstancesProtectedFromScaleIn sets the NewInstancesProtectedFromScaleIn field's value. +func (s *Group) SetNewInstancesProtectedFromScaleIn(v bool) *Group { + s.NewInstancesProtectedFromScaleIn = &v + return s +} + +// SetPlacementGroup sets the PlacementGroup field's value. +func (s *Group) SetPlacementGroup(v string) *Group { + s.PlacementGroup = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Group) SetStatus(v string) *Group { + s.Status = &v + return s +} + +// SetSuspendedProcesses sets the SuspendedProcesses field's value. +func (s *Group) SetSuspendedProcesses(v []*SuspendedProcess) *Group { + s.SuspendedProcesses = v + return s +} + +// SetTags sets the Tags field's value. +func (s *Group) SetTags(v []*TagDescription) *Group { + s.Tags = v + return s +} + +// SetTargetGroupARNs sets the TargetGroupARNs field's value. +func (s *Group) SetTargetGroupARNs(v []*string) *Group { + s.TargetGroupARNs = v + return s +} + +// SetTerminationPolicies sets the TerminationPolicies field's value. +func (s *Group) SetTerminationPolicies(v []*string) *Group { + s.TerminationPolicies = v + return s +} + +// SetVPCZoneIdentifier sets the VPCZoneIdentifier field's value. +func (s *Group) SetVPCZoneIdentifier(v string) *Group { + s.VPCZoneIdentifier = &v + return s +} + // Describes an EC2 instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/Instance type Instance struct { _ struct{} `type:"structure"` @@ -7077,7 +8431,44 @@ func (s Instance) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Instance) SetAvailabilityZone(v string) *Instance { + s.AvailabilityZone = &v + return s +} + +// SetHealthStatus sets the HealthStatus field's value. +func (s *Instance) SetHealthStatus(v string) *Instance { + s.HealthStatus = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *Instance) SetInstanceId(v string) *Instance { + s.InstanceId = &v + return s +} + +// SetLaunchConfigurationName sets the LaunchConfigurationName field's value. +func (s *Instance) SetLaunchConfigurationName(v string) *Instance { + s.LaunchConfigurationName = &v + return s +} + +// SetLifecycleState sets the LifecycleState field's value. +func (s *Instance) SetLifecycleState(v string) *Instance { + s.LifecycleState = &v + return s +} + +// SetProtectedFromScaleIn sets the ProtectedFromScaleIn field's value. +func (s *Instance) SetProtectedFromScaleIn(v bool) *Instance { + s.ProtectedFromScaleIn = &v + return s +} + // Describes an EC2 instance associated with an Auto Scaling group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AutoScalingInstanceDetails type InstanceDetails struct { _ struct{} `type:"structure"` @@ -7109,7 +8500,7 @@ type InstanceDetails struct { LaunchConfigurationName *string `min:"1" type:"string" required:"true"` // The lifecycle state for the instance. For more information, see Auto Scaling - // Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) + // Lifecycle (http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html) // in the Auto Scaling User Guide. // // LifecycleState is a required field @@ -7132,7 +8523,50 @@ func (s InstanceDetails) GoString() string { return s.String() } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *InstanceDetails) SetAutoScalingGroupName(v string) *InstanceDetails { + s.AutoScalingGroupName = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *InstanceDetails) SetAvailabilityZone(v string) *InstanceDetails { + s.AvailabilityZone = &v + return s +} + +// SetHealthStatus sets the HealthStatus field's value. +func (s *InstanceDetails) SetHealthStatus(v string) *InstanceDetails { + s.HealthStatus = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *InstanceDetails) SetInstanceId(v string) *InstanceDetails { + s.InstanceId = &v + return s +} + +// SetLaunchConfigurationName sets the LaunchConfigurationName field's value. +func (s *InstanceDetails) SetLaunchConfigurationName(v string) *InstanceDetails { + s.LaunchConfigurationName = &v + return s +} + +// SetLifecycleState sets the LifecycleState field's value. +func (s *InstanceDetails) SetLifecycleState(v string) *InstanceDetails { + s.LifecycleState = &v + return s +} + +// SetProtectedFromScaleIn sets the ProtectedFromScaleIn field's value. +func (s *InstanceDetails) SetProtectedFromScaleIn(v bool) *InstanceDetails { + s.ProtectedFromScaleIn = &v + return s +} + // Describes whether instance monitoring is enabled. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstanceMonitoring type InstanceMonitoring struct { _ struct{} `type:"structure"` @@ -7150,7 +8584,14 @@ func (s InstanceMonitoring) GoString() string { return s.String() } +// SetEnabled sets the Enabled field's value. +func (s *InstanceMonitoring) SetEnabled(v bool) *InstanceMonitoring { + s.Enabled = &v + return s +} + // Describes a launch configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchConfiguration type LaunchConfiguration struct { _ struct{} `type:"structure"` @@ -7240,16 +8681,131 @@ func (s LaunchConfiguration) GoString() string { return s.String() } +// SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value. +func (s *LaunchConfiguration) SetAssociatePublicIpAddress(v bool) *LaunchConfiguration { + s.AssociatePublicIpAddress = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *LaunchConfiguration) SetBlockDeviceMappings(v []*BlockDeviceMapping) *LaunchConfiguration { + s.BlockDeviceMappings = v + return s +} + +// SetClassicLinkVPCId sets the ClassicLinkVPCId field's value. +func (s *LaunchConfiguration) SetClassicLinkVPCId(v string) *LaunchConfiguration { + s.ClassicLinkVPCId = &v + return s +} + +// SetClassicLinkVPCSecurityGroups sets the ClassicLinkVPCSecurityGroups field's value. +func (s *LaunchConfiguration) SetClassicLinkVPCSecurityGroups(v []*string) *LaunchConfiguration { + s.ClassicLinkVPCSecurityGroups = v + return s +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *LaunchConfiguration) SetCreatedTime(v time.Time) *LaunchConfiguration { + s.CreatedTime = &v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *LaunchConfiguration) SetEbsOptimized(v bool) *LaunchConfiguration { + s.EbsOptimized = &v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *LaunchConfiguration) SetIamInstanceProfile(v string) *LaunchConfiguration { + s.IamInstanceProfile = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *LaunchConfiguration) SetImageId(v string) *LaunchConfiguration { + s.ImageId = &v + return s +} + +// SetInstanceMonitoring sets the InstanceMonitoring field's value. +func (s *LaunchConfiguration) SetInstanceMonitoring(v *InstanceMonitoring) *LaunchConfiguration { + s.InstanceMonitoring = v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *LaunchConfiguration) SetInstanceType(v string) *LaunchConfiguration { + s.InstanceType = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *LaunchConfiguration) SetKernelId(v string) *LaunchConfiguration { + s.KernelId = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *LaunchConfiguration) SetKeyName(v string) *LaunchConfiguration { + s.KeyName = &v + return s +} + +// SetLaunchConfigurationARN sets the LaunchConfigurationARN field's value. +func (s *LaunchConfiguration) SetLaunchConfigurationARN(v string) *LaunchConfiguration { + s.LaunchConfigurationARN = &v + return s +} + +// SetLaunchConfigurationName sets the LaunchConfigurationName field's value. +func (s *LaunchConfiguration) SetLaunchConfigurationName(v string) *LaunchConfiguration { + s.LaunchConfigurationName = &v + return s +} + +// SetPlacementTenancy sets the PlacementTenancy field's value. +func (s *LaunchConfiguration) SetPlacementTenancy(v string) *LaunchConfiguration { + s.PlacementTenancy = &v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *LaunchConfiguration) SetRamdiskId(v string) *LaunchConfiguration { + s.RamdiskId = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *LaunchConfiguration) SetSecurityGroups(v []*string) *LaunchConfiguration { + s.SecurityGroups = v + return s +} + +// SetSpotPrice sets the SpotPrice field's value. +func (s *LaunchConfiguration) SetSpotPrice(v string) *LaunchConfiguration { + s.SpotPrice = &v + return s +} + +// SetUserData sets the UserData field's value. +func (s *LaunchConfiguration) SetUserData(v string) *LaunchConfiguration { + s.UserData = &v + return s +} + // Describes a lifecycle hook, which tells Auto Scaling that you want to perform // an action when an instance launches or terminates. When you have a lifecycle // hook in place, the Auto Scaling group will either: // -// Pause the instance after it launches, but before it is put into service +// * Pause the instance after it launches, but before it is put into service // -// Pause the instance as it terminates, but before it is fully terminated +// * Pause the instance as it terminates, but before it is fully terminated // -// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) +// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html) // in the Auto Scaling User Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LifecycleHook type LifecycleHook struct { _ struct{} `type:"structure"` @@ -7262,7 +8818,8 @@ type LifecycleHook struct { DefaultResult *string `type:"string"` // The maximum time, in seconds, that an instance can remain in a Pending:Wait - // or Terminating:Wait state. The default is 172800 seconds (48 hours). + // or Terminating:Wait state. The maximum is 172800 seconds (48 hours) or 100 + // times HeartbeatTimeout, whichever is smaller. GlobalTimeout *int64 `type:"integer"` // The maximum time, in seconds, that can elapse before the lifecycle hook times @@ -7287,19 +8844,19 @@ type LifecycleHook struct { // can be either an SQS queue or an SNS topic. The notification message sent // to the target includes the following: // - // Lifecycle action token + // * Lifecycle action token // - // User account ID + // * User account ID // - // Name of the Auto Scaling group + // * Name of the Auto Scaling group // - // Lifecycle hook name + // * Lifecycle hook name // - // EC2 instance ID + // * EC2 instance ID // - // Lifecycle transition + // * Lifecycle transition // - // Notification metadata + // * Notification metadata NotificationTargetARN *string `min:"1" type:"string"` // The ARN of the IAM role that allows the Auto Scaling group to publish to @@ -7317,6 +8874,60 @@ func (s LifecycleHook) GoString() string { return s.String() } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *LifecycleHook) SetAutoScalingGroupName(v string) *LifecycleHook { + s.AutoScalingGroupName = &v + return s +} + +// SetDefaultResult sets the DefaultResult field's value. +func (s *LifecycleHook) SetDefaultResult(v string) *LifecycleHook { + s.DefaultResult = &v + return s +} + +// SetGlobalTimeout sets the GlobalTimeout field's value. +func (s *LifecycleHook) SetGlobalTimeout(v int64) *LifecycleHook { + s.GlobalTimeout = &v + return s +} + +// SetHeartbeatTimeout sets the HeartbeatTimeout field's value. +func (s *LifecycleHook) SetHeartbeatTimeout(v int64) *LifecycleHook { + s.HeartbeatTimeout = &v + return s +} + +// SetLifecycleHookName sets the LifecycleHookName field's value. +func (s *LifecycleHook) SetLifecycleHookName(v string) *LifecycleHook { + s.LifecycleHookName = &v + return s +} + +// SetLifecycleTransition sets the LifecycleTransition field's value. +func (s *LifecycleHook) SetLifecycleTransition(v string) *LifecycleHook { + s.LifecycleTransition = &v + return s +} + +// SetNotificationMetadata sets the NotificationMetadata field's value. +func (s *LifecycleHook) SetNotificationMetadata(v string) *LifecycleHook { + s.NotificationMetadata = &v + return s +} + +// SetNotificationTargetARN sets the NotificationTargetARN field's value. +func (s *LifecycleHook) SetNotificationTargetARN(v string) *LifecycleHook { + s.NotificationTargetARN = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *LifecycleHook) SetRoleARN(v string) *LifecycleHook { + s.RoleARN = &v + return s +} + // Describes the state of a Classic load balancer. // // If you specify a load balancer when creating the Auto Scaling group, the @@ -7328,6 +8939,7 @@ func (s LifecycleHook) GoString() string { // for the load balancer, the state transitions to InService after at least // one instance in the group passes the health check. If EC2 health checks are // enabled instead, the load balancer remains in the Added state. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LoadBalancerState type LoadBalancerState struct { _ struct{} `type:"structure"` @@ -7336,18 +8948,20 @@ type LoadBalancerState struct { // One of the following load balancer states: // - // Adding - The instances in the group are being registered with the load - // balancer. + // * Adding - The instances in the group are being registered with the load + // balancer. // - // Added - All instances in the group are registered with the load balancer. + // * Added - All instances in the group are registered with the load balancer. // - // InService - At least one instance in the group passed an ELB health check. + // * InService - At least one instance in the group passed an ELB health + // check. // - // Removing - The instances in the group are being deregistered from the - // load balancer. If connection draining is enabled, Elastic Load Balancing - // waits for in-flight requests to complete before deregistering the instances. + // * Removing - The instances in the group are being deregistered from the + // load balancer. If connection draining is enabled, Elastic Load Balancing + // waits for in-flight requests to complete before deregistering the instances. // - // Removed - All instances in the group are deregistered from the load balancer. + // * Removed - All instances in the group are deregistered from the load + // balancer. State *string `min:"1" type:"string"` } @@ -7361,6 +8975,18 @@ func (s LoadBalancerState) GoString() string { return s.String() } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *LoadBalancerState) SetLoadBalancerName(v string) *LoadBalancerState { + s.LoadBalancerName = &v + return s +} + +// SetState sets the State field's value. +func (s *LoadBalancerState) SetState(v string) *LoadBalancerState { + s.State = &v + return s +} + // Describes the state of a target group. // // If you attach a target group to an existing Auto Scaling group, the initial @@ -7369,6 +8995,7 @@ func (s LoadBalancerState) GoString() string { // state transitions to InService after at least one Auto Scaling instance passes // the health check. If EC2 health checks are enabled instead, the target group // remains in the Added state. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LoadBalancerTargetGroupState type LoadBalancerTargetGroupState struct { _ struct{} `type:"structure"` @@ -7377,19 +9004,20 @@ type LoadBalancerTargetGroupState struct { // The state of the target group. // - // Adding - The Auto Scaling instances are being registered with the target - // group. + // * Adding - The Auto Scaling instances are being registered with the target + // group. // - // Added - All Auto Scaling instances are registered with the target group. + // * Added - All Auto Scaling instances are registered with the target group. // - // InService - At least one Auto Scaling instance passed an ELB health check. + // * InService - At least one Auto Scaling instance passed an ELB health + // check. // - // Removing - The Auto Scaling instances are being deregistered from the - // target group. If connection draining is enabled, Elastic Load Balancing waits - // for in-flight requests to complete before deregistering the instances. + // * Removing - The Auto Scaling instances are being deregistered from the + // target group. If connection draining is enabled, Elastic Load Balancing + // waits for in-flight requests to complete before deregistering the instances. // - // Removed - All Auto Scaling instances are deregistered from the target - // group. + // * Removed - All Auto Scaling instances are deregistered from the target + // group. State *string `min:"1" type:"string"` } @@ -7403,27 +9031,40 @@ func (s LoadBalancerTargetGroupState) GoString() string { return s.String() } +// SetLoadBalancerTargetGroupARN sets the LoadBalancerTargetGroupARN field's value. +func (s *LoadBalancerTargetGroupState) SetLoadBalancerTargetGroupARN(v string) *LoadBalancerTargetGroupState { + s.LoadBalancerTargetGroupARN = &v + return s +} + +// SetState sets the State field's value. +func (s *LoadBalancerTargetGroupState) SetState(v string) *LoadBalancerTargetGroupState { + s.State = &v + return s +} + // Describes a metric. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/MetricCollectionType type MetricCollectionType struct { _ struct{} `type:"structure"` // One of the following metrics: // - // GroupMinSize + // * GroupMinSize // - // GroupMaxSize + // * GroupMaxSize // - // GroupDesiredCapacity + // * GroupDesiredCapacity // - // GroupInServiceInstances + // * GroupInServiceInstances // - // GroupPendingInstances + // * GroupPendingInstances // - // GroupStandbyInstances + // * GroupStandbyInstances // - // GroupTerminatingInstances + // * GroupTerminatingInstances // - // GroupTotalInstances + // * GroupTotalInstances Metric *string `min:"1" type:"string"` } @@ -7437,7 +9078,14 @@ func (s MetricCollectionType) GoString() string { return s.String() } +// SetMetric sets the Metric field's value. +func (s *MetricCollectionType) SetMetric(v string) *MetricCollectionType { + s.Metric = &v + return s +} + // Describes a granularity of a metric. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/MetricGranularityType type MetricGranularityType struct { _ struct{} `type:"structure"` @@ -7455,7 +9103,14 @@ func (s MetricGranularityType) GoString() string { return s.String() } +// SetGranularity sets the Granularity field's value. +func (s *MetricGranularityType) SetGranularity(v string) *MetricGranularityType { + s.Granularity = &v + return s +} + // Describes a notification. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/NotificationConfiguration type NotificationConfiguration struct { _ struct{} `type:"structure"` @@ -7464,15 +9119,15 @@ type NotificationConfiguration struct { // One of the following event notification types: // - // autoscaling:EC2_INSTANCE_LAUNCH + // * autoscaling:EC2_INSTANCE_LAUNCH // - // autoscaling:EC2_INSTANCE_LAUNCH_ERROR + // * autoscaling:EC2_INSTANCE_LAUNCH_ERROR // - // autoscaling:EC2_INSTANCE_TERMINATE + // * autoscaling:EC2_INSTANCE_TERMINATE // - // autoscaling:EC2_INSTANCE_TERMINATE_ERROR + // * autoscaling:EC2_INSTANCE_TERMINATE_ERROR // - // autoscaling:TEST_NOTIFICATION + // * autoscaling:TEST_NOTIFICATION NotificationType *string `min:"1" type:"string"` // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service @@ -7490,30 +9145,49 @@ func (s NotificationConfiguration) GoString() string { return s.String() } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *NotificationConfiguration) SetAutoScalingGroupName(v string) *NotificationConfiguration { + s.AutoScalingGroupName = &v + return s +} + +// SetNotificationType sets the NotificationType field's value. +func (s *NotificationConfiguration) SetNotificationType(v string) *NotificationConfiguration { + s.NotificationType = &v + return s +} + +// SetTopicARN sets the TopicARN field's value. +func (s *NotificationConfiguration) SetTopicARN(v string) *NotificationConfiguration { + s.TopicARN = &v + return s +} + // Describes a process type. // -// For more information, see Auto Scaling Processes (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SuspendResume.html#process-types) +// For more information, see Auto Scaling Processes (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-suspend-resume-processes.html#process-types) // in the Auto Scaling User Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ProcessType type ProcessType struct { _ struct{} `type:"structure"` // One of the following processes: // - // Launch + // * Launch // - // Terminate + // * Terminate // - // AddToLoadBalancer + // * AddToLoadBalancer // - // AlarmNotification + // * AlarmNotification // - // AZRebalance + // * AZRebalance // - // HealthCheck + // * HealthCheck // - // ReplaceUnhealthy + // * ReplaceUnhealthy // - // ScheduledActions + // * ScheduledActions // // ProcessName is a required field ProcessName *string `min:"1" type:"string" required:"true"` @@ -7529,7 +9203,14 @@ func (s ProcessType) GoString() string { return s.String() } +// SetProcessName sets the ProcessName field's value. +func (s *ProcessType) SetProcessName(v string) *ProcessType { + s.ProcessName = &v + return s +} + // Contains the parameters for PutLifecycleHook. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHookType type PutLifecycleHookInput struct { _ struct{} `type:"structure"` @@ -7571,23 +9252,7 @@ type PutLifecycleHookInput struct { // target can be either an SQS queue or an SNS topic. If you specify an empty // string, this overrides the current ARN. // - // The notification messages sent to the target include the following information: - // - // AutoScalingGroupName. The name of the Auto Scaling group. - // - // AccountId. The AWS account ID. - // - // LifecycleTransition. The lifecycle hook type. - // - // LifecycleActionToken. The lifecycle action token. - // - // EC2InstanceId. The EC2 instance ID. - // - // LifecycleHookName. The name of the lifecycle hook. - // - // NotificationMetadata. User-defined information. - // - // This operation uses the JSON format when sending notifications to an Amazon + // This operation uses the JSON format when sending notifications to an Amazon // SQS queue, and an email key/value pair format when sending notifications // to an Amazon SNS topic. // @@ -7642,7 +9307,56 @@ func (s *PutLifecycleHookInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *PutLifecycleHookInput) SetAutoScalingGroupName(v string) *PutLifecycleHookInput { + s.AutoScalingGroupName = &v + return s +} + +// SetDefaultResult sets the DefaultResult field's value. +func (s *PutLifecycleHookInput) SetDefaultResult(v string) *PutLifecycleHookInput { + s.DefaultResult = &v + return s +} + +// SetHeartbeatTimeout sets the HeartbeatTimeout field's value. +func (s *PutLifecycleHookInput) SetHeartbeatTimeout(v int64) *PutLifecycleHookInput { + s.HeartbeatTimeout = &v + return s +} + +// SetLifecycleHookName sets the LifecycleHookName field's value. +func (s *PutLifecycleHookInput) SetLifecycleHookName(v string) *PutLifecycleHookInput { + s.LifecycleHookName = &v + return s +} + +// SetLifecycleTransition sets the LifecycleTransition field's value. +func (s *PutLifecycleHookInput) SetLifecycleTransition(v string) *PutLifecycleHookInput { + s.LifecycleTransition = &v + return s +} + +// SetNotificationMetadata sets the NotificationMetadata field's value. +func (s *PutLifecycleHookInput) SetNotificationMetadata(v string) *PutLifecycleHookInput { + s.NotificationMetadata = &v + return s +} + +// SetNotificationTargetARN sets the NotificationTargetARN field's value. +func (s *PutLifecycleHookInput) SetNotificationTargetARN(v string) *PutLifecycleHookInput { + s.NotificationTargetARN = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *PutLifecycleHookInput) SetRoleARN(v string) *PutLifecycleHookInput { + s.RoleARN = &v + return s +} + // Contains the output of PutLifecycleHook. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHookAnswer type PutLifecycleHookOutput struct { _ struct{} `type:"structure"` } @@ -7658,6 +9372,7 @@ func (s PutLifecycleHookOutput) GoString() string { } // Contains the parameters for PutNotificationConfiguration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutNotificationConfigurationType type PutNotificationConfigurationInput struct { _ struct{} `type:"structure"` @@ -7714,6 +9429,25 @@ func (s *PutNotificationConfigurationInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *PutNotificationConfigurationInput) SetAutoScalingGroupName(v string) *PutNotificationConfigurationInput { + s.AutoScalingGroupName = &v + return s +} + +// SetNotificationTypes sets the NotificationTypes field's value. +func (s *PutNotificationConfigurationInput) SetNotificationTypes(v []*string) *PutNotificationConfigurationInput { + s.NotificationTypes = v + return s +} + +// SetTopicARN sets the TopicARN field's value. +func (s *PutNotificationConfigurationInput) SetTopicARN(v string) *PutNotificationConfigurationInput { + s.TopicARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutNotificationConfigurationOutput type PutNotificationConfigurationOutput struct { _ struct{} `type:"structure"` } @@ -7729,13 +9463,14 @@ func (s PutNotificationConfigurationOutput) GoString() string { } // Contains the parameters for PutScalingPolicy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScalingPolicyType type PutScalingPolicyInput struct { _ struct{} `type:"structure"` // The adjustment type. Valid values are ChangeInCapacity, ExactCapacity, and // PercentChangeInCapacity. // - // For more information, see Dynamic Scaling (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-scale-based-on-demand.html) + // For more information, see Dynamic Scaling (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-scale-based-on-demand.html) // in the Auto Scaling User Guide. // // AdjustmentType is a required field @@ -7752,7 +9487,7 @@ type PutScalingPolicyInput struct { // // This parameter is not supported unless the policy type is SimpleScaling. // - // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html) + // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/autoscaling/latest/userguide/Cooldown.html) // in the Auto Scaling User Guide. Cooldown *int64 `type:"integer"` @@ -7858,7 +9593,74 @@ func (s *PutScalingPolicyInput) Validate() error { return nil } +// SetAdjustmentType sets the AdjustmentType field's value. +func (s *PutScalingPolicyInput) SetAdjustmentType(v string) *PutScalingPolicyInput { + s.AdjustmentType = &v + return s +} + +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *PutScalingPolicyInput) SetAutoScalingGroupName(v string) *PutScalingPolicyInput { + s.AutoScalingGroupName = &v + return s +} + +// SetCooldown sets the Cooldown field's value. +func (s *PutScalingPolicyInput) SetCooldown(v int64) *PutScalingPolicyInput { + s.Cooldown = &v + return s +} + +// SetEstimatedInstanceWarmup sets the EstimatedInstanceWarmup field's value. +func (s *PutScalingPolicyInput) SetEstimatedInstanceWarmup(v int64) *PutScalingPolicyInput { + s.EstimatedInstanceWarmup = &v + return s +} + +// SetMetricAggregationType sets the MetricAggregationType field's value. +func (s *PutScalingPolicyInput) SetMetricAggregationType(v string) *PutScalingPolicyInput { + s.MetricAggregationType = &v + return s +} + +// SetMinAdjustmentMagnitude sets the MinAdjustmentMagnitude field's value. +func (s *PutScalingPolicyInput) SetMinAdjustmentMagnitude(v int64) *PutScalingPolicyInput { + s.MinAdjustmentMagnitude = &v + return s +} + +// SetMinAdjustmentStep sets the MinAdjustmentStep field's value. +func (s *PutScalingPolicyInput) SetMinAdjustmentStep(v int64) *PutScalingPolicyInput { + s.MinAdjustmentStep = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *PutScalingPolicyInput) SetPolicyName(v string) *PutScalingPolicyInput { + s.PolicyName = &v + return s +} + +// SetPolicyType sets the PolicyType field's value. +func (s *PutScalingPolicyInput) SetPolicyType(v string) *PutScalingPolicyInput { + s.PolicyType = &v + return s +} + +// SetScalingAdjustment sets the ScalingAdjustment field's value. +func (s *PutScalingPolicyInput) SetScalingAdjustment(v int64) *PutScalingPolicyInput { + s.ScalingAdjustment = &v + return s +} + +// SetStepAdjustments sets the StepAdjustments field's value. +func (s *PutScalingPolicyInput) SetStepAdjustments(v []*StepAdjustment) *PutScalingPolicyInput { + s.StepAdjustments = v + return s +} + // Contains the output of PutScalingPolicy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PolicyARNType type PutScalingPolicyOutput struct { _ struct{} `type:"structure"` @@ -7876,7 +9678,14 @@ func (s PutScalingPolicyOutput) GoString() string { return s.String() } +// SetPolicyARN sets the PolicyARN field's value. +func (s *PutScalingPolicyOutput) SetPolicyARN(v string) *PutScalingPolicyOutput { + s.PolicyARN = &v + return s +} + // Contains the parameters for PutScheduledUpdateGroupAction. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupActionType type PutScheduledUpdateGroupActionInput struct { _ struct{} `type:"structure"` @@ -7888,7 +9697,8 @@ type PutScheduledUpdateGroupActionInput struct { // The number of EC2 instances that should be running in the group. DesiredCapacity *int64 `type:"integer"` - // The time for this action to end. + // The time for the recurring schedule to end. Auto Scaling does not perform + // the action after this time. EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The maximum size for the Auto Scaling group. @@ -7897,12 +9707,8 @@ type PutScheduledUpdateGroupActionInput struct { // The minimum size for the Auto Scaling group. MinSize *int64 `type:"integer"` - // The time when recurring future actions will start. Start time is specified - // by the user following the Unix cron syntax format. For more information, - // see Cron (http://en.wikipedia.org/wiki/Cron) in Wikipedia. - // - // When StartTime and EndTime are specified with Recurrence, they form the - // boundaries of when the recurring action will start and stop. + // The recurring schedule for this action, in Unix cron syntax format. For more + // information, see Cron (http://en.wikipedia.org/wiki/Cron) in Wikipedia. Recurrence *string `min:"1" type:"string"` // The name of this scaling action. @@ -7913,11 +9719,11 @@ type PutScheduledUpdateGroupActionInput struct { // The time for this action to start, in "YYYY-MM-DDThh:mm:ssZ" format in UTC/GMT // only (for example, 2014-06-01T00:00:00Z). // - // If you try to schedule your action in the past, Auto Scaling returns an - // error message. + // If you specify Recurrence and StartTime, Auto Scaling performs the action + // at this time, and then performs the action based on the specified recurrence. // - // When StartTime and EndTime are specified with Recurrence, they form the - // boundaries of when the recurring action starts and stops. + // If you try to schedule your action in the past, Auto Scaling returns an error + // message. StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` // This parameter is deprecated. @@ -7959,6 +9765,61 @@ func (s *PutScheduledUpdateGroupActionInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *PutScheduledUpdateGroupActionInput) SetAutoScalingGroupName(v string) *PutScheduledUpdateGroupActionInput { + s.AutoScalingGroupName = &v + return s +} + +// SetDesiredCapacity sets the DesiredCapacity field's value. +func (s *PutScheduledUpdateGroupActionInput) SetDesiredCapacity(v int64) *PutScheduledUpdateGroupActionInput { + s.DesiredCapacity = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *PutScheduledUpdateGroupActionInput) SetEndTime(v time.Time) *PutScheduledUpdateGroupActionInput { + s.EndTime = &v + return s +} + +// SetMaxSize sets the MaxSize field's value. +func (s *PutScheduledUpdateGroupActionInput) SetMaxSize(v int64) *PutScheduledUpdateGroupActionInput { + s.MaxSize = &v + return s +} + +// SetMinSize sets the MinSize field's value. +func (s *PutScheduledUpdateGroupActionInput) SetMinSize(v int64) *PutScheduledUpdateGroupActionInput { + s.MinSize = &v + return s +} + +// SetRecurrence sets the Recurrence field's value. +func (s *PutScheduledUpdateGroupActionInput) SetRecurrence(v string) *PutScheduledUpdateGroupActionInput { + s.Recurrence = &v + return s +} + +// SetScheduledActionName sets the ScheduledActionName field's value. +func (s *PutScheduledUpdateGroupActionInput) SetScheduledActionName(v string) *PutScheduledUpdateGroupActionInput { + s.ScheduledActionName = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *PutScheduledUpdateGroupActionInput) SetStartTime(v time.Time) *PutScheduledUpdateGroupActionInput { + s.StartTime = &v + return s +} + +// SetTime sets the Time field's value. +func (s *PutScheduledUpdateGroupActionInput) SetTime(v time.Time) *PutScheduledUpdateGroupActionInput { + s.Time = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupActionOutput type PutScheduledUpdateGroupActionOutput struct { _ struct{} `type:"structure"` } @@ -7974,6 +9835,7 @@ func (s PutScheduledUpdateGroupActionOutput) GoString() string { } // Contains the parameters for RecordLifecycleActionHeartbeat. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeatType type RecordLifecycleActionHeartbeatInput struct { _ struct{} `type:"structure"` @@ -8034,7 +9896,32 @@ func (s *RecordLifecycleActionHeartbeatInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *RecordLifecycleActionHeartbeatInput) SetAutoScalingGroupName(v string) *RecordLifecycleActionHeartbeatInput { + s.AutoScalingGroupName = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *RecordLifecycleActionHeartbeatInput) SetInstanceId(v string) *RecordLifecycleActionHeartbeatInput { + s.InstanceId = &v + return s +} + +// SetLifecycleActionToken sets the LifecycleActionToken field's value. +func (s *RecordLifecycleActionHeartbeatInput) SetLifecycleActionToken(v string) *RecordLifecycleActionHeartbeatInput { + s.LifecycleActionToken = &v + return s +} + +// SetLifecycleHookName sets the LifecycleHookName field's value. +func (s *RecordLifecycleActionHeartbeatInput) SetLifecycleHookName(v string) *RecordLifecycleActionHeartbeatInput { + s.LifecycleHookName = &v + return s +} + // Contains the output of RecordLifecycleActionHeartBeat. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeatAnswer type RecordLifecycleActionHeartbeatOutput struct { _ struct{} `type:"structure"` } @@ -8049,6 +9936,7 @@ func (s RecordLifecycleActionHeartbeatOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ResumeProcessesOutput type ResumeProcessesOutput struct { _ struct{} `type:"structure"` } @@ -8064,6 +9952,7 @@ func (s ResumeProcessesOutput) GoString() string { } // Describes a scaling policy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ScalingPolicy type ScalingPolicy struct { _ struct{} `type:"structure"` @@ -8127,7 +10016,86 @@ func (s ScalingPolicy) GoString() string { return s.String() } +// SetAdjustmentType sets the AdjustmentType field's value. +func (s *ScalingPolicy) SetAdjustmentType(v string) *ScalingPolicy { + s.AdjustmentType = &v + return s +} + +// SetAlarms sets the Alarms field's value. +func (s *ScalingPolicy) SetAlarms(v []*Alarm) *ScalingPolicy { + s.Alarms = v + return s +} + +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *ScalingPolicy) SetAutoScalingGroupName(v string) *ScalingPolicy { + s.AutoScalingGroupName = &v + return s +} + +// SetCooldown sets the Cooldown field's value. +func (s *ScalingPolicy) SetCooldown(v int64) *ScalingPolicy { + s.Cooldown = &v + return s +} + +// SetEstimatedInstanceWarmup sets the EstimatedInstanceWarmup field's value. +func (s *ScalingPolicy) SetEstimatedInstanceWarmup(v int64) *ScalingPolicy { + s.EstimatedInstanceWarmup = &v + return s +} + +// SetMetricAggregationType sets the MetricAggregationType field's value. +func (s *ScalingPolicy) SetMetricAggregationType(v string) *ScalingPolicy { + s.MetricAggregationType = &v + return s +} + +// SetMinAdjustmentMagnitude sets the MinAdjustmentMagnitude field's value. +func (s *ScalingPolicy) SetMinAdjustmentMagnitude(v int64) *ScalingPolicy { + s.MinAdjustmentMagnitude = &v + return s +} + +// SetMinAdjustmentStep sets the MinAdjustmentStep field's value. +func (s *ScalingPolicy) SetMinAdjustmentStep(v int64) *ScalingPolicy { + s.MinAdjustmentStep = &v + return s +} + +// SetPolicyARN sets the PolicyARN field's value. +func (s *ScalingPolicy) SetPolicyARN(v string) *ScalingPolicy { + s.PolicyARN = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *ScalingPolicy) SetPolicyName(v string) *ScalingPolicy { + s.PolicyName = &v + return s +} + +// SetPolicyType sets the PolicyType field's value. +func (s *ScalingPolicy) SetPolicyType(v string) *ScalingPolicy { + s.PolicyType = &v + return s +} + +// SetScalingAdjustment sets the ScalingAdjustment field's value. +func (s *ScalingPolicy) SetScalingAdjustment(v int64) *ScalingPolicy { + s.ScalingAdjustment = &v + return s +} + +// SetStepAdjustments sets the StepAdjustments field's value. +func (s *ScalingPolicy) SetStepAdjustments(v []*StepAdjustment) *ScalingPolicy { + s.StepAdjustments = v + return s +} + // Contains the parameters for SuspendProcesses and ResumeProcesses. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ScalingProcessQuery type ScalingProcessQuery struct { _ struct{} `type:"structure"` @@ -8139,21 +10107,21 @@ type ScalingProcessQuery struct { // One or more of the following processes. If you omit this parameter, all processes // are specified. // - // Launch + // * Launch // - // Terminate + // * Terminate // - // HealthCheck + // * HealthCheck // - // ReplaceUnhealthy + // * ReplaceUnhealthy // - // AZRebalance + // * AZRebalance // - // AlarmNotification + // * AlarmNotification // - // ScheduledActions + // * ScheduledActions // - // AddToLoadBalancer + // * AddToLoadBalancer ScalingProcesses []*string `type:"list"` } @@ -8183,7 +10151,20 @@ func (s *ScalingProcessQuery) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *ScalingProcessQuery) SetAutoScalingGroupName(v string) *ScalingProcessQuery { + s.AutoScalingGroupName = &v + return s +} + +// SetScalingProcesses sets the ScalingProcesses field's value. +func (s *ScalingProcessQuery) SetScalingProcesses(v []*string) *ScalingProcessQuery { + s.ScalingProcesses = v + return s +} + // Describes a scheduled update to an Auto Scaling group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ScheduledUpdateGroupAction type ScheduledUpdateGroupAction struct { _ struct{} `type:"structure"` @@ -8215,8 +10196,8 @@ type ScheduledUpdateGroupAction struct { // The date and time that the action is scheduled to begin. This date and time // can be up to one month in the future. // - // When StartTime and EndTime are specified with Recurrence, they form the - // boundaries of when the recurring action will start and stop. + // When StartTime and EndTime are specified with Recurrence, they form the boundaries + // of when the recurring action will start and stop. StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` // This parameter is deprecated. @@ -8233,7 +10214,68 @@ func (s ScheduledUpdateGroupAction) GoString() string { return s.String() } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *ScheduledUpdateGroupAction) SetAutoScalingGroupName(v string) *ScheduledUpdateGroupAction { + s.AutoScalingGroupName = &v + return s +} + +// SetDesiredCapacity sets the DesiredCapacity field's value. +func (s *ScheduledUpdateGroupAction) SetDesiredCapacity(v int64) *ScheduledUpdateGroupAction { + s.DesiredCapacity = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *ScheduledUpdateGroupAction) SetEndTime(v time.Time) *ScheduledUpdateGroupAction { + s.EndTime = &v + return s +} + +// SetMaxSize sets the MaxSize field's value. +func (s *ScheduledUpdateGroupAction) SetMaxSize(v int64) *ScheduledUpdateGroupAction { + s.MaxSize = &v + return s +} + +// SetMinSize sets the MinSize field's value. +func (s *ScheduledUpdateGroupAction) SetMinSize(v int64) *ScheduledUpdateGroupAction { + s.MinSize = &v + return s +} + +// SetRecurrence sets the Recurrence field's value. +func (s *ScheduledUpdateGroupAction) SetRecurrence(v string) *ScheduledUpdateGroupAction { + s.Recurrence = &v + return s +} + +// SetScheduledActionARN sets the ScheduledActionARN field's value. +func (s *ScheduledUpdateGroupAction) SetScheduledActionARN(v string) *ScheduledUpdateGroupAction { + s.ScheduledActionARN = &v + return s +} + +// SetScheduledActionName sets the ScheduledActionName field's value. +func (s *ScheduledUpdateGroupAction) SetScheduledActionName(v string) *ScheduledUpdateGroupAction { + s.ScheduledActionName = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *ScheduledUpdateGroupAction) SetStartTime(v time.Time) *ScheduledUpdateGroupAction { + s.StartTime = &v + return s +} + +// SetTime sets the Time field's value. +func (s *ScheduledUpdateGroupAction) SetTime(v time.Time) *ScheduledUpdateGroupAction { + s.Time = &v + return s +} + // Contains the parameters for SetDesiredCapacity. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetDesiredCapacityType type SetDesiredCapacityInput struct { _ struct{} `type:"structure"` @@ -8283,6 +10325,25 @@ func (s *SetDesiredCapacityInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *SetDesiredCapacityInput) SetAutoScalingGroupName(v string) *SetDesiredCapacityInput { + s.AutoScalingGroupName = &v + return s +} + +// SetDesiredCapacity sets the DesiredCapacity field's value. +func (s *SetDesiredCapacityInput) SetDesiredCapacity(v int64) *SetDesiredCapacityInput { + s.DesiredCapacity = &v + return s +} + +// SetHonorCooldown sets the HonorCooldown field's value. +func (s *SetDesiredCapacityInput) SetHonorCooldown(v bool) *SetDesiredCapacityInput { + s.HonorCooldown = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetDesiredCapacityOutput type SetDesiredCapacityOutput struct { _ struct{} `type:"structure"` } @@ -8298,6 +10359,7 @@ func (s SetDesiredCapacityOutput) GoString() string { } // Contains the parameters for SetInstanceHealth. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceHealthQuery type SetInstanceHealthInput struct { _ struct{} `type:"structure"` @@ -8355,6 +10417,25 @@ func (s *SetInstanceHealthInput) Validate() error { return nil } +// SetHealthStatus sets the HealthStatus field's value. +func (s *SetInstanceHealthInput) SetHealthStatus(v string) *SetInstanceHealthInput { + s.HealthStatus = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *SetInstanceHealthInput) SetInstanceId(v string) *SetInstanceHealthInput { + s.InstanceId = &v + return s +} + +// SetShouldRespectGracePeriod sets the ShouldRespectGracePeriod field's value. +func (s *SetInstanceHealthInput) SetShouldRespectGracePeriod(v bool) *SetInstanceHealthInput { + s.ShouldRespectGracePeriod = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceHealthOutput type SetInstanceHealthOutput struct { _ struct{} `type:"structure"` } @@ -8370,6 +10451,7 @@ func (s SetInstanceHealthOutput) GoString() string { } // Contains the parameters for SetInstanceProtection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtectionQuery type SetInstanceProtectionInput struct { _ struct{} `type:"structure"` @@ -8422,7 +10504,26 @@ func (s *SetInstanceProtectionInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *SetInstanceProtectionInput) SetAutoScalingGroupName(v string) *SetInstanceProtectionInput { + s.AutoScalingGroupName = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *SetInstanceProtectionInput) SetInstanceIds(v []*string) *SetInstanceProtectionInput { + s.InstanceIds = v + return s +} + +// SetProtectedFromScaleIn sets the ProtectedFromScaleIn field's value. +func (s *SetInstanceProtectionInput) SetProtectedFromScaleIn(v bool) *SetInstanceProtectionInput { + s.ProtectedFromScaleIn = &v + return s +} + // Contains the output of SetInstanceProtection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtectionAnswer type SetInstanceProtectionOutput struct { _ struct{} `type:"structure"` } @@ -8444,27 +10545,28 @@ func (s SetInstanceProtectionOutput) GoString() string { // For the following examples, suppose that you have an alarm with a breach // threshold of 50: // -// If you want the adjustment to be triggered when the metric is greater -// than or equal to 50 and less than 60, specify a lower bound of 0 and an upper -// bound of 10. +// * If you want the adjustment to be triggered when the metric is greater +// than or equal to 50 and less than 60, specify a lower bound of 0 and an +// upper bound of 10. // -// If you want the adjustment to be triggered when the metric is greater -// than 40 and less than or equal to 50, specify a lower bound of -10 and an -// upper bound of 0. +// * If you want the adjustment to be triggered when the metric is greater +// than 40 and less than or equal to 50, specify a lower bound of -10 and +// an upper bound of 0. // -// There are a few rules for the step adjustments for your step policy: +// There are a few rules for the step adjustments for your step policy: // -// The ranges of your step adjustments can't overlap or have a gap. +// * The ranges of your step adjustments can't overlap or have a gap. // -// At most one step adjustment can have a null lower bound. If one step adjustment -// has a negative lower bound, then there must be a step adjustment with a null -// lower bound. +// * At most one step adjustment can have a null lower bound. If one step +// adjustment has a negative lower bound, then there must be a step adjustment +// with a null lower bound. // -// At most one step adjustment can have a null upper bound. If one step adjustment -// has a positive upper bound, then there must be a step adjustment with a null -// upper bound. +// * At most one step adjustment can have a null upper bound. If one step +// adjustment has a positive upper bound, then there must be a step adjustment +// with a null upper bound. // -// The upper and lower bound can't be null in the same step adjustment. +// * The upper and lower bound can't be null in the same step adjustment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StepAdjustment type StepAdjustment struct { _ struct{} `type:"structure"` @@ -8516,6 +10618,25 @@ func (s *StepAdjustment) Validate() error { return nil } +// SetMetricIntervalLowerBound sets the MetricIntervalLowerBound field's value. +func (s *StepAdjustment) SetMetricIntervalLowerBound(v float64) *StepAdjustment { + s.MetricIntervalLowerBound = &v + return s +} + +// SetMetricIntervalUpperBound sets the MetricIntervalUpperBound field's value. +func (s *StepAdjustment) SetMetricIntervalUpperBound(v float64) *StepAdjustment { + s.MetricIntervalUpperBound = &v + return s +} + +// SetScalingAdjustment sets the ScalingAdjustment field's value. +func (s *StepAdjustment) SetScalingAdjustment(v int64) *StepAdjustment { + s.ScalingAdjustment = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SuspendProcessesOutput type SuspendProcessesOutput struct { _ struct{} `type:"structure"` } @@ -8532,6 +10653,7 @@ func (s SuspendProcessesOutput) GoString() string { // Describes an Auto Scaling process that has been suspended. For more information, // see ProcessType. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SuspendedProcess type SuspendedProcess struct { _ struct{} `type:"structure"` @@ -8552,7 +10674,20 @@ func (s SuspendedProcess) GoString() string { return s.String() } +// SetProcessName sets the ProcessName field's value. +func (s *SuspendedProcess) SetProcessName(v string) *SuspendedProcess { + s.ProcessName = &v + return s +} + +// SetSuspensionReason sets the SuspensionReason field's value. +func (s *SuspendedProcess) SetSuspensionReason(v string) *SuspendedProcess { + s.SuspensionReason = &v + return s +} + // Describes a tag for an Auto Scaling group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/Tag type Tag struct { _ struct{} `type:"structure"` @@ -8601,7 +10736,38 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetPropagateAtLaunch sets the PropagateAtLaunch field's value. +func (s *Tag) SetPropagateAtLaunch(v bool) *Tag { + s.PropagateAtLaunch = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *Tag) SetResourceId(v string) *Tag { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *Tag) SetResourceType(v string) *Tag { + s.ResourceType = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Describes a tag for an Auto Scaling group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TagDescription type TagDescription struct { _ struct{} `type:"structure"` @@ -8632,7 +10798,38 @@ func (s TagDescription) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *TagDescription) SetKey(v string) *TagDescription { + s.Key = &v + return s +} + +// SetPropagateAtLaunch sets the PropagateAtLaunch field's value. +func (s *TagDescription) SetPropagateAtLaunch(v bool) *TagDescription { + s.PropagateAtLaunch = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *TagDescription) SetResourceId(v string) *TagDescription { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *TagDescription) SetResourceType(v string) *TagDescription { + s.ResourceType = &v + return s +} + +// SetValue sets the Value field's value. +func (s *TagDescription) SetValue(v string) *TagDescription { + s.Value = &v + return s +} + // Contains the parameters for TerminateInstanceInAutoScalingGroup. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroupType type TerminateInstanceInAutoScalingGroupInput struct { _ struct{} `type:"structure"` @@ -8677,7 +10874,20 @@ func (s *TerminateInstanceInAutoScalingGroupInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *TerminateInstanceInAutoScalingGroupInput) SetInstanceId(v string) *TerminateInstanceInAutoScalingGroupInput { + s.InstanceId = &v + return s +} + +// SetShouldDecrementDesiredCapacity sets the ShouldDecrementDesiredCapacity field's value. +func (s *TerminateInstanceInAutoScalingGroupInput) SetShouldDecrementDesiredCapacity(v bool) *TerminateInstanceInAutoScalingGroupInput { + s.ShouldDecrementDesiredCapacity = &v + return s +} + // Contains the output of TerminateInstancesInAutoScalingGroup. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ActivityType type TerminateInstanceInAutoScalingGroupOutput struct { _ struct{} `type:"structure"` @@ -8695,7 +10905,14 @@ func (s TerminateInstanceInAutoScalingGroupOutput) GoString() string { return s.String() } +// SetActivity sets the Activity field's value. +func (s *TerminateInstanceInAutoScalingGroupOutput) SetActivity(v *Activity) *TerminateInstanceInAutoScalingGroupOutput { + s.Activity = v + return s +} + // Contains the parameters for UpdateAutoScalingGroup. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroupType type UpdateAutoScalingGroupInput struct { _ struct{} `type:"structure"` @@ -8710,7 +10927,7 @@ type UpdateAutoScalingGroupInput struct { // The amount of time, in seconds, after a scaling activity completes before // another scaling activity can start. The default is 300. // - // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html) + // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/autoscaling/latest/userguide/Cooldown.html) // in the Auto Scaling User Guide. DefaultCooldown *int64 `type:"integer"` @@ -8723,7 +10940,7 @@ type UpdateAutoScalingGroupInput struct { // health status of an EC2 instance that has come into service. The default // is 0. // - // For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html) + // For more information, see Health Checks (http://docs.aws.amazon.com/autoscaling/latest/userguide/healthcheck.html) // in the Auto Scaling User Guide. HealthCheckGracePeriod *int64 `type:"integer"` @@ -8753,7 +10970,7 @@ type UpdateAutoScalingGroupInput struct { // that they are listed. // // For more information, see Controlling Which Instances Auto Scaling Terminates - // During Scale In (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingBehavior.InstanceTermination.html) + // During Scale In (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-termination.html) // in the Auto Scaling User Guide. TerminationPolicies []*string `type:"list"` @@ -8763,7 +10980,7 @@ type UpdateAutoScalingGroupInput struct { // When you specify VPCZoneIdentifier with AvailabilityZones, ensure that the // subnets' Availability Zones match the values you specify for AvailabilityZones. // - // For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html) + // For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/autoscaling/latest/userguide/asg-in-vpc.html) // in the Auto Scaling User Guide. VPCZoneIdentifier *string `min:"1" type:"string"` } @@ -8809,6 +11026,85 @@ func (s *UpdateAutoScalingGroupInput) Validate() error { return nil } +// SetAutoScalingGroupName sets the AutoScalingGroupName field's value. +func (s *UpdateAutoScalingGroupInput) SetAutoScalingGroupName(v string) *UpdateAutoScalingGroupInput { + s.AutoScalingGroupName = &v + return s +} + +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *UpdateAutoScalingGroupInput) SetAvailabilityZones(v []*string) *UpdateAutoScalingGroupInput { + s.AvailabilityZones = v + return s +} + +// SetDefaultCooldown sets the DefaultCooldown field's value. +func (s *UpdateAutoScalingGroupInput) SetDefaultCooldown(v int64) *UpdateAutoScalingGroupInput { + s.DefaultCooldown = &v + return s +} + +// SetDesiredCapacity sets the DesiredCapacity field's value. +func (s *UpdateAutoScalingGroupInput) SetDesiredCapacity(v int64) *UpdateAutoScalingGroupInput { + s.DesiredCapacity = &v + return s +} + +// SetHealthCheckGracePeriod sets the HealthCheckGracePeriod field's value. +func (s *UpdateAutoScalingGroupInput) SetHealthCheckGracePeriod(v int64) *UpdateAutoScalingGroupInput { + s.HealthCheckGracePeriod = &v + return s +} + +// SetHealthCheckType sets the HealthCheckType field's value. +func (s *UpdateAutoScalingGroupInput) SetHealthCheckType(v string) *UpdateAutoScalingGroupInput { + s.HealthCheckType = &v + return s +} + +// SetLaunchConfigurationName sets the LaunchConfigurationName field's value. +func (s *UpdateAutoScalingGroupInput) SetLaunchConfigurationName(v string) *UpdateAutoScalingGroupInput { + s.LaunchConfigurationName = &v + return s +} + +// SetMaxSize sets the MaxSize field's value. +func (s *UpdateAutoScalingGroupInput) SetMaxSize(v int64) *UpdateAutoScalingGroupInput { + s.MaxSize = &v + return s +} + +// SetMinSize sets the MinSize field's value. +func (s *UpdateAutoScalingGroupInput) SetMinSize(v int64) *UpdateAutoScalingGroupInput { + s.MinSize = &v + return s +} + +// SetNewInstancesProtectedFromScaleIn sets the NewInstancesProtectedFromScaleIn field's value. +func (s *UpdateAutoScalingGroupInput) SetNewInstancesProtectedFromScaleIn(v bool) *UpdateAutoScalingGroupInput { + s.NewInstancesProtectedFromScaleIn = &v + return s +} + +// SetPlacementGroup sets the PlacementGroup field's value. +func (s *UpdateAutoScalingGroupInput) SetPlacementGroup(v string) *UpdateAutoScalingGroupInput { + s.PlacementGroup = &v + return s +} + +// SetTerminationPolicies sets the TerminationPolicies field's value. +func (s *UpdateAutoScalingGroupInput) SetTerminationPolicies(v []*string) *UpdateAutoScalingGroupInput { + s.TerminationPolicies = v + return s +} + +// SetVPCZoneIdentifier sets the VPCZoneIdentifier field's value. +func (s *UpdateAutoScalingGroupInput) SetVPCZoneIdentifier(v string) *UpdateAutoScalingGroupInput { + s.VPCZoneIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroupOutput type UpdateAutoScalingGroupOutput struct { _ struct{} `type:"structure"` } diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface/interface.go index b7edd1ede..c76503121 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockAutoScalingClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/errors.go b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/errors.go new file mode 100644 index 000000000..227e6b3b3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/errors.go @@ -0,0 +1,47 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package autoscaling + +const ( + + // ErrCodeAlreadyExistsFault for service response error code + // "AlreadyExists". + // + // You already have an Auto Scaling group or launch configuration with this + // name. + ErrCodeAlreadyExistsFault = "AlreadyExists" + + // ErrCodeInvalidNextToken for service response error code + // "InvalidNextToken". + // + // The NextToken value is not valid. + ErrCodeInvalidNextToken = "InvalidNextToken" + + // ErrCodeLimitExceededFault for service response error code + // "LimitExceeded". + // + // You have already reached a limit for your Auto Scaling resources (for example, + // groups, launch configurations, or lifecycle hooks). For more information, + // see DescribeAccountLimits. + ErrCodeLimitExceededFault = "LimitExceeded" + + // ErrCodeResourceContentionFault for service response error code + // "ResourceContention". + // + // You already have a pending update to an Auto Scaling resource (for example, + // a group, instance, or load balancer). + ErrCodeResourceContentionFault = "ResourceContention" + + // ErrCodeResourceInUseFault for service response error code + // "ResourceInUse". + // + // The operation can't be performed because the resource is in use. + ErrCodeResourceInUseFault = "ResourceInUse" + + // ErrCodeScalingActivityInProgressFault for service response error code + // "ScalingActivityInProgress". + // + // The operation can't be performed because there are scaling activities in + // progress. + ErrCodeScalingActivityInProgressFault = "ScalingActivityInProgress" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/examples_test.go index 9e92ca774..55e6120b5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleAutoScaling_AttachInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -45,11 +41,7 @@ func ExampleAutoScaling_AttachInstances() { } func ExampleAutoScaling_AttachLoadBalancerTargetGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -74,11 +66,7 @@ func ExampleAutoScaling_AttachLoadBalancerTargetGroups() { } func ExampleAutoScaling_AttachLoadBalancers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -103,11 +91,7 @@ func ExampleAutoScaling_AttachLoadBalancers() { } func ExampleAutoScaling_CompleteLifecycleAction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -132,11 +116,7 @@ func ExampleAutoScaling_CompleteLifecycleAction() { } func ExampleAutoScaling_CreateAutoScalingGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -194,11 +174,7 @@ func ExampleAutoScaling_CreateAutoScalingGroup() { } func ExampleAutoScaling_CreateLaunchConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -259,11 +235,7 @@ func ExampleAutoScaling_CreateLaunchConfiguration() { } func ExampleAutoScaling_CreateOrUpdateTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -293,11 +265,7 @@ func ExampleAutoScaling_CreateOrUpdateTags() { } func ExampleAutoScaling_DeleteAutoScalingGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -319,11 +287,7 @@ func ExampleAutoScaling_DeleteAutoScalingGroup() { } func ExampleAutoScaling_DeleteLaunchConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -344,11 +308,7 @@ func ExampleAutoScaling_DeleteLaunchConfiguration() { } func ExampleAutoScaling_DeleteLifecycleHook() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -370,11 +330,7 @@ func ExampleAutoScaling_DeleteLifecycleHook() { } func ExampleAutoScaling_DeleteNotificationConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -396,11 +352,7 @@ func ExampleAutoScaling_DeleteNotificationConfiguration() { } func ExampleAutoScaling_DeletePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -422,11 +374,7 @@ func ExampleAutoScaling_DeletePolicy() { } func ExampleAutoScaling_DeleteScheduledAction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -448,11 +396,7 @@ func ExampleAutoScaling_DeleteScheduledAction() { } func ExampleAutoScaling_DeleteTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -482,11 +426,7 @@ func ExampleAutoScaling_DeleteTags() { } func ExampleAutoScaling_DescribeAccountLimits() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -505,11 +445,7 @@ func ExampleAutoScaling_DescribeAccountLimits() { } func ExampleAutoScaling_DescribeAdjustmentTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -528,11 +464,7 @@ func ExampleAutoScaling_DescribeAdjustmentTypes() { } func ExampleAutoScaling_DescribeAutoScalingGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -558,11 +490,7 @@ func ExampleAutoScaling_DescribeAutoScalingGroups() { } func ExampleAutoScaling_DescribeAutoScalingInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -588,11 +516,7 @@ func ExampleAutoScaling_DescribeAutoScalingInstances() { } func ExampleAutoScaling_DescribeAutoScalingNotificationTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -611,11 +535,7 @@ func ExampleAutoScaling_DescribeAutoScalingNotificationTypes() { } func ExampleAutoScaling_DescribeLaunchConfigurations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -641,11 +561,7 @@ func ExampleAutoScaling_DescribeLaunchConfigurations() { } func ExampleAutoScaling_DescribeLifecycleHookTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -664,11 +580,7 @@ func ExampleAutoScaling_DescribeLifecycleHookTypes() { } func ExampleAutoScaling_DescribeLifecycleHooks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -693,11 +605,7 @@ func ExampleAutoScaling_DescribeLifecycleHooks() { } func ExampleAutoScaling_DescribeLoadBalancerTargetGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -720,11 +628,7 @@ func ExampleAutoScaling_DescribeLoadBalancerTargetGroups() { } func ExampleAutoScaling_DescribeLoadBalancers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -747,11 +651,7 @@ func ExampleAutoScaling_DescribeLoadBalancers() { } func ExampleAutoScaling_DescribeMetricCollectionTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -770,11 +670,7 @@ func ExampleAutoScaling_DescribeMetricCollectionTypes() { } func ExampleAutoScaling_DescribeNotificationConfigurations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -800,11 +696,7 @@ func ExampleAutoScaling_DescribeNotificationConfigurations() { } func ExampleAutoScaling_DescribePolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -835,11 +727,7 @@ func ExampleAutoScaling_DescribePolicies() { } func ExampleAutoScaling_DescribeScalingActivities() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -866,11 +754,7 @@ func ExampleAutoScaling_DescribeScalingActivities() { } func ExampleAutoScaling_DescribeScalingProcessTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -889,11 +773,7 @@ func ExampleAutoScaling_DescribeScalingProcessTypes() { } func ExampleAutoScaling_DescribeScheduledActions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -922,11 +802,7 @@ func ExampleAutoScaling_DescribeScheduledActions() { } func ExampleAutoScaling_DescribeTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -958,11 +834,7 @@ func ExampleAutoScaling_DescribeTags() { } func ExampleAutoScaling_DescribeTerminationPolicyTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -981,11 +853,7 @@ func ExampleAutoScaling_DescribeTerminationPolicyTypes() { } func ExampleAutoScaling_DetachInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1011,11 +879,7 @@ func ExampleAutoScaling_DetachInstances() { } func ExampleAutoScaling_DetachLoadBalancerTargetGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1040,11 +904,7 @@ func ExampleAutoScaling_DetachLoadBalancerTargetGroups() { } func ExampleAutoScaling_DetachLoadBalancers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1069,11 +929,7 @@ func ExampleAutoScaling_DetachLoadBalancers() { } func ExampleAutoScaling_DisableMetricsCollection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1098,11 +954,7 @@ func ExampleAutoScaling_DisableMetricsCollection() { } func ExampleAutoScaling_EnableMetricsCollection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1128,11 +980,7 @@ func ExampleAutoScaling_EnableMetricsCollection() { } func ExampleAutoScaling_EnterStandby() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1158,11 +1006,7 @@ func ExampleAutoScaling_EnterStandby() { } func ExampleAutoScaling_ExecutePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1187,11 +1031,7 @@ func ExampleAutoScaling_ExecutePolicy() { } func ExampleAutoScaling_ExitStandby() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1216,11 +1056,7 @@ func ExampleAutoScaling_ExitStandby() { } func ExampleAutoScaling_PutLifecycleHook() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1248,11 +1084,7 @@ func ExampleAutoScaling_PutLifecycleHook() { } func ExampleAutoScaling_PutNotificationConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1278,11 +1110,7 @@ func ExampleAutoScaling_PutNotificationConfiguration() { } func ExampleAutoScaling_PutScalingPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1320,11 +1148,7 @@ func ExampleAutoScaling_PutScalingPolicy() { } func ExampleAutoScaling_PutScheduledUpdateGroupAction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1353,11 +1177,7 @@ func ExampleAutoScaling_PutScheduledUpdateGroupAction() { } func ExampleAutoScaling_RecordLifecycleActionHeartbeat() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1381,11 +1201,7 @@ func ExampleAutoScaling_RecordLifecycleActionHeartbeat() { } func ExampleAutoScaling_ResumeProcesses() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1410,11 +1226,7 @@ func ExampleAutoScaling_ResumeProcesses() { } func ExampleAutoScaling_SetDesiredCapacity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1437,11 +1249,7 @@ func ExampleAutoScaling_SetDesiredCapacity() { } func ExampleAutoScaling_SetInstanceHealth() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1464,11 +1272,7 @@ func ExampleAutoScaling_SetInstanceHealth() { } func ExampleAutoScaling_SetInstanceProtection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1494,11 +1298,7 @@ func ExampleAutoScaling_SetInstanceProtection() { } func ExampleAutoScaling_SuspendProcesses() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1523,11 +1323,7 @@ func ExampleAutoScaling_SuspendProcesses() { } func ExampleAutoScaling_TerminateInstanceInAutoScalingGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) @@ -1549,11 +1345,7 @@ func ExampleAutoScaling_TerminateInstanceInAutoScalingGroup() { } func ExampleAutoScaling_UpdateAutoScalingGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := autoscaling.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/service.go b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/service.go index e529e4de8..98e1bb4ad 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/service.go @@ -14,8 +14,9 @@ import ( // Auto Scaling is designed to automatically launch or terminate EC2 instances // based on user-defined policies, schedules, and health checks. Use this service // in conjunction with the Amazon CloudWatch and Elastic Load Balancing services. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01 type AutoScaling struct { *client.Client } @@ -26,8 +27,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "autoscaling" +// Service information constants +const ( + ServiceName = "autoscaling" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the AutoScaling client with a session. // If additional configuration is needed for the client instance use the optional @@ -40,17 +44,18 @@ const ServiceName = "autoscaling" // // Create a AutoScaling client with additional configuration // svc := autoscaling.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *AutoScaling { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *AutoScaling { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *AutoScaling { svc := &AutoScaling{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2011-01-01", diff --git a/vendor/github.com/aws/aws-sdk-go/service/batch/api.go b/vendor/github.com/aws/aws-sdk-go/service/batch/api.go new file mode 100644 index 000000000..b3aab8df5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/batch/api.go @@ -0,0 +1,4234 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package batch provides a client for AWS Batch. +package batch + +import ( + "fmt" + + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opCancelJob = "CancelJob" + +// CancelJobRequest generates a "aws/request.Request" representing the +// client's request for the CancelJob operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CancelJob for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CancelJob method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CancelJobRequest method. +// req, resp := client.CancelJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJob +func (c *Batch) CancelJobRequest(input *CancelJobInput) (req *request.Request, output *CancelJobOutput) { + op := &request.Operation{ + Name: opCancelJob, + HTTPMethod: "POST", + HTTPPath: "/v1/canceljob", + } + + if input == nil { + input = &CancelJobInput{} + } + + output = &CancelJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// CancelJob API operation for AWS Batch. +// +// Cancels jobs in an AWS Batch job queue. Jobs that are in the SUBMITTED, PENDING, +// or RUNNABLE state are cancelled. Jobs that have progressed to STARTING or +// RUNNING are not cancelled (but the API operation still succeeds, even if +// no jobs are cancelled); these jobs must be terminated with the TerminateJob +// operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Batch's +// API operation CancelJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClientException "ClientException" +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * ErrCodeServerException "ServerException" +// These errors are usually caused by a server issue. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJob +func (c *Batch) CancelJob(input *CancelJobInput) (*CancelJobOutput, error) { + req, out := c.CancelJobRequest(input) + err := req.Send() + return out, err +} + +const opCreateComputeEnvironment = "CreateComputeEnvironment" + +// CreateComputeEnvironmentRequest generates a "aws/request.Request" representing the +// client's request for the CreateComputeEnvironment operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateComputeEnvironment for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateComputeEnvironment method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateComputeEnvironmentRequest method. +// req, resp := client.CreateComputeEnvironmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironment +func (c *Batch) CreateComputeEnvironmentRequest(input *CreateComputeEnvironmentInput) (req *request.Request, output *CreateComputeEnvironmentOutput) { + op := &request.Operation{ + Name: opCreateComputeEnvironment, + HTTPMethod: "POST", + HTTPPath: "/v1/createcomputeenvironment", + } + + if input == nil { + input = &CreateComputeEnvironmentInput{} + } + + output = &CreateComputeEnvironmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateComputeEnvironment API operation for AWS Batch. +// +// Creates an AWS Batch compute environment. You can create MANAGED or UNMANAGEDcompute +// environments. +// +// In a managed compute environment, AWS Batch manages the compute resources +// within the environment, based on the compute resources that you specify. +// Instances launched into a managed compute environment use the latest Amazon +// ECS-optimized AMI. You can choose to use Amazon EC2 On-Demand instances in +// your managed compute environment, or you can use Amazon EC2 Spot instances +// that only launch when the Spot bid price is below a specified percentage +// of the On-Demand price. +// +// In an unmanaged compute environment, you can manage your own compute resources. +// This provides more compute resource configuration options, such as using +// a custom AMI, but you must ensure that your AMI meets the Amazon ECS container +// instance AMI specification. For more information, see Container Instance +// AMIs (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_instance_AMIs.html) +// in the Amazon EC2 Container Service Developer Guide. After you have created +// your unmanaged compute environment, you can use the DescribeComputeEnvironments +// operation to find the Amazon ECS cluster that is associated with it and then +// manually launch your container instances into that Amazon ECS cluster. For +// more information, see Launching an Amazon ECS Container Instance (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html) +// in the Amazon EC2 Container Service Developer Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Batch's +// API operation CreateComputeEnvironment for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClientException "ClientException" +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * ErrCodeServerException "ServerException" +// These errors are usually caused by a server issue. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironment +func (c *Batch) CreateComputeEnvironment(input *CreateComputeEnvironmentInput) (*CreateComputeEnvironmentOutput, error) { + req, out := c.CreateComputeEnvironmentRequest(input) + err := req.Send() + return out, err +} + +const opCreateJobQueue = "CreateJobQueue" + +// CreateJobQueueRequest generates a "aws/request.Request" representing the +// client's request for the CreateJobQueue operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateJobQueue for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateJobQueue method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateJobQueueRequest method. +// req, resp := client.CreateJobQueueRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueue +func (c *Batch) CreateJobQueueRequest(input *CreateJobQueueInput) (req *request.Request, output *CreateJobQueueOutput) { + op := &request.Operation{ + Name: opCreateJobQueue, + HTTPMethod: "POST", + HTTPPath: "/v1/createjobqueue", + } + + if input == nil { + input = &CreateJobQueueInput{} + } + + output = &CreateJobQueueOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateJobQueue API operation for AWS Batch. +// +// Creates an AWS Batch job queue. When you create a job queue, you associate +// one or more compute environments to the queue and assign an order of preference +// for the compute environments. +// +// You also set a priority to the job queue that determines the order in which +// the AWS Batch scheduler places jobs onto its associated compute environments. +// For example, if a compute environment is associated with more than one job +// queue, the job queue with a higher priority is given preference for scheduling +// jobs to that compute environment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Batch's +// API operation CreateJobQueue for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClientException "ClientException" +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * ErrCodeServerException "ServerException" +// These errors are usually caused by a server issue. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueue +func (c *Batch) CreateJobQueue(input *CreateJobQueueInput) (*CreateJobQueueOutput, error) { + req, out := c.CreateJobQueueRequest(input) + err := req.Send() + return out, err +} + +const opDeleteComputeEnvironment = "DeleteComputeEnvironment" + +// DeleteComputeEnvironmentRequest generates a "aws/request.Request" representing the +// client's request for the DeleteComputeEnvironment operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteComputeEnvironment for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteComputeEnvironment method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteComputeEnvironmentRequest method. +// req, resp := client.DeleteComputeEnvironmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteComputeEnvironment +func (c *Batch) DeleteComputeEnvironmentRequest(input *DeleteComputeEnvironmentInput) (req *request.Request, output *DeleteComputeEnvironmentOutput) { + op := &request.Operation{ + Name: opDeleteComputeEnvironment, + HTTPMethod: "POST", + HTTPPath: "/v1/deletecomputeenvironment", + } + + if input == nil { + input = &DeleteComputeEnvironmentInput{} + } + + output = &DeleteComputeEnvironmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteComputeEnvironment API operation for AWS Batch. +// +// Deletes an AWS Batch compute environment. +// +// Before you can delete a compute environment, you must set its state to DISABLED +// with the UpdateComputeEnvironment API operation and disassociate it from +// any job queues with the UpdateJobQueue API operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Batch's +// API operation DeleteComputeEnvironment for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClientException "ClientException" +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * ErrCodeServerException "ServerException" +// These errors are usually caused by a server issue. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteComputeEnvironment +func (c *Batch) DeleteComputeEnvironment(input *DeleteComputeEnvironmentInput) (*DeleteComputeEnvironmentOutput, error) { + req, out := c.DeleteComputeEnvironmentRequest(input) + err := req.Send() + return out, err +} + +const opDeleteJobQueue = "DeleteJobQueue" + +// DeleteJobQueueRequest generates a "aws/request.Request" representing the +// client's request for the DeleteJobQueue operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteJobQueue for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteJobQueue method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteJobQueueRequest method. +// req, resp := client.DeleteJobQueueRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteJobQueue +func (c *Batch) DeleteJobQueueRequest(input *DeleteJobQueueInput) (req *request.Request, output *DeleteJobQueueOutput) { + op := &request.Operation{ + Name: opDeleteJobQueue, + HTTPMethod: "POST", + HTTPPath: "/v1/deletejobqueue", + } + + if input == nil { + input = &DeleteJobQueueInput{} + } + + output = &DeleteJobQueueOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteJobQueue API operation for AWS Batch. +// +// Deletes the specified job queue. You must first disable submissions for a +// queue with the UpdateJobQueue operation and terminate any jobs that have +// not completed with the TerminateJob. +// +// It is not necessary to disassociate compute environments from a queue before +// submitting a DeleteJobQueue request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Batch's +// API operation DeleteJobQueue for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClientException "ClientException" +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * ErrCodeServerException "ServerException" +// These errors are usually caused by a server issue. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteJobQueue +func (c *Batch) DeleteJobQueue(input *DeleteJobQueueInput) (*DeleteJobQueueOutput, error) { + req, out := c.DeleteJobQueueRequest(input) + err := req.Send() + return out, err +} + +const opDeregisterJobDefinition = "DeregisterJobDefinition" + +// DeregisterJobDefinitionRequest generates a "aws/request.Request" representing the +// client's request for the DeregisterJobDefinition operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeregisterJobDefinition for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeregisterJobDefinition method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeregisterJobDefinitionRequest method. +// req, resp := client.DeregisterJobDefinitionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeregisterJobDefinition +func (c *Batch) DeregisterJobDefinitionRequest(input *DeregisterJobDefinitionInput) (req *request.Request, output *DeregisterJobDefinitionOutput) { + op := &request.Operation{ + Name: opDeregisterJobDefinition, + HTTPMethod: "POST", + HTTPPath: "/v1/deregisterjobdefinition", + } + + if input == nil { + input = &DeregisterJobDefinitionInput{} + } + + output = &DeregisterJobDefinitionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeregisterJobDefinition API operation for AWS Batch. +// +// Deregisters an AWS Batch job definition. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Batch's +// API operation DeregisterJobDefinition for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClientException "ClientException" +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * ErrCodeServerException "ServerException" +// These errors are usually caused by a server issue. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeregisterJobDefinition +func (c *Batch) DeregisterJobDefinition(input *DeregisterJobDefinitionInput) (*DeregisterJobDefinitionOutput, error) { + req, out := c.DeregisterJobDefinitionRequest(input) + err := req.Send() + return out, err +} + +const opDescribeComputeEnvironments = "DescribeComputeEnvironments" + +// DescribeComputeEnvironmentsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeComputeEnvironments operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeComputeEnvironments for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeComputeEnvironments method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeComputeEnvironmentsRequest method. +// req, resp := client.DescribeComputeEnvironmentsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironments +func (c *Batch) DescribeComputeEnvironmentsRequest(input *DescribeComputeEnvironmentsInput) (req *request.Request, output *DescribeComputeEnvironmentsOutput) { + op := &request.Operation{ + Name: opDescribeComputeEnvironments, + HTTPMethod: "POST", + HTTPPath: "/v1/describecomputeenvironments", + } + + if input == nil { + input = &DescribeComputeEnvironmentsInput{} + } + + output = &DescribeComputeEnvironmentsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeComputeEnvironments API operation for AWS Batch. +// +// Describes one or more of your compute environments. +// +// If you are using an unmanaged compute environment, you can use the DescribeComputeEnvironment +// operation to determine the ecsClusterArn that you should launch your Amazon +// ECS container instances into. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Batch's +// API operation DescribeComputeEnvironments for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClientException "ClientException" +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * ErrCodeServerException "ServerException" +// These errors are usually caused by a server issue. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironments +func (c *Batch) DescribeComputeEnvironments(input *DescribeComputeEnvironmentsInput) (*DescribeComputeEnvironmentsOutput, error) { + req, out := c.DescribeComputeEnvironmentsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeJobDefinitions = "DescribeJobDefinitions" + +// DescribeJobDefinitionsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeJobDefinitions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeJobDefinitions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeJobDefinitions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeJobDefinitionsRequest method. +// req, resp := client.DescribeJobDefinitionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions +func (c *Batch) DescribeJobDefinitionsRequest(input *DescribeJobDefinitionsInput) (req *request.Request, output *DescribeJobDefinitionsOutput) { + op := &request.Operation{ + Name: opDescribeJobDefinitions, + HTTPMethod: "POST", + HTTPPath: "/v1/describejobdefinitions", + } + + if input == nil { + input = &DescribeJobDefinitionsInput{} + } + + output = &DescribeJobDefinitionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeJobDefinitions API operation for AWS Batch. +// +// Describes a list of job definitions. You can specify a status (such as ACTIVE) +// to only return job definitions that match that status. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Batch's +// API operation DescribeJobDefinitions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClientException "ClientException" +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * ErrCodeServerException "ServerException" +// These errors are usually caused by a server issue. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions +func (c *Batch) DescribeJobDefinitions(input *DescribeJobDefinitionsInput) (*DescribeJobDefinitionsOutput, error) { + req, out := c.DescribeJobDefinitionsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeJobQueues = "DescribeJobQueues" + +// DescribeJobQueuesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeJobQueues operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeJobQueues for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeJobQueues method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeJobQueuesRequest method. +// req, resp := client.DescribeJobQueuesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues +func (c *Batch) DescribeJobQueuesRequest(input *DescribeJobQueuesInput) (req *request.Request, output *DescribeJobQueuesOutput) { + op := &request.Operation{ + Name: opDescribeJobQueues, + HTTPMethod: "POST", + HTTPPath: "/v1/describejobqueues", + } + + if input == nil { + input = &DescribeJobQueuesInput{} + } + + output = &DescribeJobQueuesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeJobQueues API operation for AWS Batch. +// +// Describes one or more of your job queues. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Batch's +// API operation DescribeJobQueues for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClientException "ClientException" +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * ErrCodeServerException "ServerException" +// These errors are usually caused by a server issue. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues +func (c *Batch) DescribeJobQueues(input *DescribeJobQueuesInput) (*DescribeJobQueuesOutput, error) { + req, out := c.DescribeJobQueuesRequest(input) + err := req.Send() + return out, err +} + +const opDescribeJobs = "DescribeJobs" + +// DescribeJobsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeJobs operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeJobs for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeJobs method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeJobsRequest method. +// req, resp := client.DescribeJobsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobs +func (c *Batch) DescribeJobsRequest(input *DescribeJobsInput) (req *request.Request, output *DescribeJobsOutput) { + op := &request.Operation{ + Name: opDescribeJobs, + HTTPMethod: "POST", + HTTPPath: "/v1/describejobs", + } + + if input == nil { + input = &DescribeJobsInput{} + } + + output = &DescribeJobsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeJobs API operation for AWS Batch. +// +// Describes a list of AWS Batch jobs. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Batch's +// API operation DescribeJobs for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClientException "ClientException" +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * ErrCodeServerException "ServerException" +// These errors are usually caused by a server issue. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobs +func (c *Batch) DescribeJobs(input *DescribeJobsInput) (*DescribeJobsOutput, error) { + req, out := c.DescribeJobsRequest(input) + err := req.Send() + return out, err +} + +const opListJobs = "ListJobs" + +// ListJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListJobs operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListJobs for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListJobs method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListJobsRequest method. +// req, resp := client.ListJobsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobs +func (c *Batch) ListJobsRequest(input *ListJobsInput) (req *request.Request, output *ListJobsOutput) { + op := &request.Operation{ + Name: opListJobs, + HTTPMethod: "POST", + HTTPPath: "/v1/listjobs", + } + + if input == nil { + input = &ListJobsInput{} + } + + output = &ListJobsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListJobs API operation for AWS Batch. +// +// Returns a list of task jobs for a specified job queue. You can filter the +// results by job status with the jobStatus parameter. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Batch's +// API operation ListJobs for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClientException "ClientException" +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * ErrCodeServerException "ServerException" +// These errors are usually caused by a server issue. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobs +func (c *Batch) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) { + req, out := c.ListJobsRequest(input) + err := req.Send() + return out, err +} + +const opRegisterJobDefinition = "RegisterJobDefinition" + +// RegisterJobDefinitionRequest generates a "aws/request.Request" representing the +// client's request for the RegisterJobDefinition operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See RegisterJobDefinition for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the RegisterJobDefinition method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the RegisterJobDefinitionRequest method. +// req, resp := client.RegisterJobDefinitionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinition +func (c *Batch) RegisterJobDefinitionRequest(input *RegisterJobDefinitionInput) (req *request.Request, output *RegisterJobDefinitionOutput) { + op := &request.Operation{ + Name: opRegisterJobDefinition, + HTTPMethod: "POST", + HTTPPath: "/v1/registerjobdefinition", + } + + if input == nil { + input = &RegisterJobDefinitionInput{} + } + + output = &RegisterJobDefinitionOutput{} + req = c.newRequest(op, input, output) + return +} + +// RegisterJobDefinition API operation for AWS Batch. +// +// Registers an AWS Batch job definition. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Batch's +// API operation RegisterJobDefinition for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClientException "ClientException" +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * ErrCodeServerException "ServerException" +// These errors are usually caused by a server issue. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinition +func (c *Batch) RegisterJobDefinition(input *RegisterJobDefinitionInput) (*RegisterJobDefinitionOutput, error) { + req, out := c.RegisterJobDefinitionRequest(input) + err := req.Send() + return out, err +} + +const opSubmitJob = "SubmitJob" + +// SubmitJobRequest generates a "aws/request.Request" representing the +// client's request for the SubmitJob operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See SubmitJob for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the SubmitJob method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the SubmitJobRequest method. +// req, resp := client.SubmitJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJob +func (c *Batch) SubmitJobRequest(input *SubmitJobInput) (req *request.Request, output *SubmitJobOutput) { + op := &request.Operation{ + Name: opSubmitJob, + HTTPMethod: "POST", + HTTPPath: "/v1/submitjob", + } + + if input == nil { + input = &SubmitJobInput{} + } + + output = &SubmitJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// SubmitJob API operation for AWS Batch. +// +// Submits an AWS Batch job from a job definition. Parameters specified during +// SubmitJob override parameters defined in the job definition. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Batch's +// API operation SubmitJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClientException "ClientException" +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * ErrCodeServerException "ServerException" +// These errors are usually caused by a server issue. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJob +func (c *Batch) SubmitJob(input *SubmitJobInput) (*SubmitJobOutput, error) { + req, out := c.SubmitJobRequest(input) + err := req.Send() + return out, err +} + +const opTerminateJob = "TerminateJob" + +// TerminateJobRequest generates a "aws/request.Request" representing the +// client's request for the TerminateJob operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See TerminateJob for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the TerminateJob method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the TerminateJobRequest method. +// req, resp := client.TerminateJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateJob +func (c *Batch) TerminateJobRequest(input *TerminateJobInput) (req *request.Request, output *TerminateJobOutput) { + op := &request.Operation{ + Name: opTerminateJob, + HTTPMethod: "POST", + HTTPPath: "/v1/terminatejob", + } + + if input == nil { + input = &TerminateJobInput{} + } + + output = &TerminateJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// TerminateJob API operation for AWS Batch. +// +// Terminates jobs in a job queue. Jobs that are in the STARTING or RUNNING +// state are terminated, which causes them to transition to FAILED. Jobs that +// have not progressed to the STARTING state are cancelled. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Batch's +// API operation TerminateJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClientException "ClientException" +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * ErrCodeServerException "ServerException" +// These errors are usually caused by a server issue. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateJob +func (c *Batch) TerminateJob(input *TerminateJobInput) (*TerminateJobOutput, error) { + req, out := c.TerminateJobRequest(input) + err := req.Send() + return out, err +} + +const opUpdateComputeEnvironment = "UpdateComputeEnvironment" + +// UpdateComputeEnvironmentRequest generates a "aws/request.Request" representing the +// client's request for the UpdateComputeEnvironment operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateComputeEnvironment for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateComputeEnvironment method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateComputeEnvironmentRequest method. +// req, resp := client.UpdateComputeEnvironmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateComputeEnvironment +func (c *Batch) UpdateComputeEnvironmentRequest(input *UpdateComputeEnvironmentInput) (req *request.Request, output *UpdateComputeEnvironmentOutput) { + op := &request.Operation{ + Name: opUpdateComputeEnvironment, + HTTPMethod: "POST", + HTTPPath: "/v1/updatecomputeenvironment", + } + + if input == nil { + input = &UpdateComputeEnvironmentInput{} + } + + output = &UpdateComputeEnvironmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateComputeEnvironment API operation for AWS Batch. +// +// Updates an AWS Batch compute environment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Batch's +// API operation UpdateComputeEnvironment for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClientException "ClientException" +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * ErrCodeServerException "ServerException" +// These errors are usually caused by a server issue. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateComputeEnvironment +func (c *Batch) UpdateComputeEnvironment(input *UpdateComputeEnvironmentInput) (*UpdateComputeEnvironmentOutput, error) { + req, out := c.UpdateComputeEnvironmentRequest(input) + err := req.Send() + return out, err +} + +const opUpdateJobQueue = "UpdateJobQueue" + +// UpdateJobQueueRequest generates a "aws/request.Request" representing the +// client's request for the UpdateJobQueue operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateJobQueue for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateJobQueue method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateJobQueueRequest method. +// req, resp := client.UpdateJobQueueRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueue +func (c *Batch) UpdateJobQueueRequest(input *UpdateJobQueueInput) (req *request.Request, output *UpdateJobQueueOutput) { + op := &request.Operation{ + Name: opUpdateJobQueue, + HTTPMethod: "POST", + HTTPPath: "/v1/updatejobqueue", + } + + if input == nil { + input = &UpdateJobQueueInput{} + } + + output = &UpdateJobQueueOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateJobQueue API operation for AWS Batch. +// +// Updates a job queue. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Batch's +// API operation UpdateJobQueue for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClientException "ClientException" +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * ErrCodeServerException "ServerException" +// These errors are usually caused by a server issue. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueue +func (c *Batch) UpdateJobQueue(input *UpdateJobQueueInput) (*UpdateJobQueueOutput, error) { + req, out := c.UpdateJobQueueRequest(input) + err := req.Send() + return out, err +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJobRequest +type CancelJobInput struct { + _ struct{} `type:"structure"` + + // A list of up to 100 job IDs to cancel. + // + // JobId is a required field + JobId *string `locationName:"jobId" type:"string" required:"true"` + + // A message to attach to the job that explains the reason for cancelling it. + // This message is returned by future DescribeJobs operations on the job. This + // message is also recorded in the AWS Batch activity logs. + // + // Reason is a required field + Reason *string `locationName:"reason" type:"string" required:"true"` +} + +// String returns the string representation +func (s CancelJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelJobInput"} + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + if s.Reason == nil { + invalidParams.Add(request.NewErrParamRequired("Reason")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJobId sets the JobId field's value. +func (s *CancelJobInput) SetJobId(v string) *CancelJobInput { + s.JobId = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *CancelJobInput) SetReason(v string) *CancelJobInput { + s.Reason = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJobResponse +type CancelJobOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CancelJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelJobOutput) GoString() string { + return s.String() +} + +// An object representing an AWS Batch compute environment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ComputeEnvironmentDetail +type ComputeEnvironmentDetail struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the compute environment. + // + // ComputeEnvironmentArn is a required field + ComputeEnvironmentArn *string `locationName:"computeEnvironmentArn" type:"string" required:"true"` + + // The name of the compute environment. + // + // ComputeEnvironmentName is a required field + ComputeEnvironmentName *string `locationName:"computeEnvironmentName" type:"string" required:"true"` + + // The compute resources defined for the compute environment. + ComputeResources *ComputeResource `locationName:"computeResources" type:"structure"` + + // The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster used + // by the compute environment. + // + // EcsClusterArn is a required field + EcsClusterArn *string `locationName:"ecsClusterArn" type:"string" required:"true"` + + // The service role associated with the compute environment that allows AWS + // Batch to make calls to AWS API operations on your behalf. + ServiceRole *string `locationName:"serviceRole" type:"string"` + + // The state of the compute environment. The valid values are ENABLED or DISABLED. + // An ENABLED state indicates that you can register instances with the compute + // environment and that the associated instances can accept jobs. + State *string `locationName:"state" type:"string" enum:"CEState"` + + // The current status of the compute environment (for example, CREATING or VALID). + Status *string `locationName:"status" type:"string" enum:"CEStatus"` + + // A short, human-readable string to provide additional details about the current + // status of the compute environment. + StatusReason *string `locationName:"statusReason" type:"string"` + + // The type of the compute environment. + Type *string `locationName:"type" type:"string" enum:"CEType"` +} + +// String returns the string representation +func (s ComputeEnvironmentDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ComputeEnvironmentDetail) GoString() string { + return s.String() +} + +// SetComputeEnvironmentArn sets the ComputeEnvironmentArn field's value. +func (s *ComputeEnvironmentDetail) SetComputeEnvironmentArn(v string) *ComputeEnvironmentDetail { + s.ComputeEnvironmentArn = &v + return s +} + +// SetComputeEnvironmentName sets the ComputeEnvironmentName field's value. +func (s *ComputeEnvironmentDetail) SetComputeEnvironmentName(v string) *ComputeEnvironmentDetail { + s.ComputeEnvironmentName = &v + return s +} + +// SetComputeResources sets the ComputeResources field's value. +func (s *ComputeEnvironmentDetail) SetComputeResources(v *ComputeResource) *ComputeEnvironmentDetail { + s.ComputeResources = v + return s +} + +// SetEcsClusterArn sets the EcsClusterArn field's value. +func (s *ComputeEnvironmentDetail) SetEcsClusterArn(v string) *ComputeEnvironmentDetail { + s.EcsClusterArn = &v + return s +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *ComputeEnvironmentDetail) SetServiceRole(v string) *ComputeEnvironmentDetail { + s.ServiceRole = &v + return s +} + +// SetState sets the State field's value. +func (s *ComputeEnvironmentDetail) SetState(v string) *ComputeEnvironmentDetail { + s.State = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ComputeEnvironmentDetail) SetStatus(v string) *ComputeEnvironmentDetail { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *ComputeEnvironmentDetail) SetStatusReason(v string) *ComputeEnvironmentDetail { + s.StatusReason = &v + return s +} + +// SetType sets the Type field's value. +func (s *ComputeEnvironmentDetail) SetType(v string) *ComputeEnvironmentDetail { + s.Type = &v + return s +} + +// The order in which compute environments are tried for job placement within +// a queue. Compute environments are tried in ascending order. For example, +// if two compute environments are associated with a job queue, the compute +// environment with a lower order integer value is tried for job placement first. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ComputeEnvironmentOrder +type ComputeEnvironmentOrder struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the compute environment. + // + // ComputeEnvironment is a required field + ComputeEnvironment *string `locationName:"computeEnvironment" type:"string" required:"true"` + + // The order of the compute environment. + // + // Order is a required field + Order *int64 `locationName:"order" type:"integer" required:"true"` +} + +// String returns the string representation +func (s ComputeEnvironmentOrder) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ComputeEnvironmentOrder) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ComputeEnvironmentOrder) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ComputeEnvironmentOrder"} + if s.ComputeEnvironment == nil { + invalidParams.Add(request.NewErrParamRequired("ComputeEnvironment")) + } + if s.Order == nil { + invalidParams.Add(request.NewErrParamRequired("Order")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetComputeEnvironment sets the ComputeEnvironment field's value. +func (s *ComputeEnvironmentOrder) SetComputeEnvironment(v string) *ComputeEnvironmentOrder { + s.ComputeEnvironment = &v + return s +} + +// SetOrder sets the Order field's value. +func (s *ComputeEnvironmentOrder) SetOrder(v int64) *ComputeEnvironmentOrder { + s.Order = &v + return s +} + +// An object representing an AWS Batch compute resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ComputeResource +type ComputeResource struct { + _ struct{} `type:"structure"` + + // The minimum percentage that a Spot Instance price must be when compared with + // the On-Demand price for that instance type before instances are launched. + // For example, if your bid percentage is 20%, then the Spot price must be below + // 20% of the current On-Demand price for that EC2 instance. + BidPercentage *int64 `locationName:"bidPercentage" type:"integer"` + + // The desired number of EC2 vCPUS in the compute environment. + DesiredvCpus *int64 `locationName:"desiredvCpus" type:"integer"` + + // The EC2 key pair that is used for instances launched in the compute environment. + Ec2KeyPair *string `locationName:"ec2KeyPair" type:"string"` + + // The Amazon ECS instance role applied to Amazon EC2 instances in a compute + // environment. + // + // InstanceRole is a required field + InstanceRole *string `locationName:"instanceRole" type:"string" required:"true"` + + // The instances types that may launched. + // + // InstanceTypes is a required field + InstanceTypes []*string `locationName:"instanceTypes" type:"list" required:"true"` + + // The maximum number of EC2 vCPUs that an environment can reach. + // + // MaxvCpus is a required field + MaxvCpus *int64 `locationName:"maxvCpus" type:"integer" required:"true"` + + // The minimum number of EC2 vCPUs that an environment should maintain. + // + // MinvCpus is a required field + MinvCpus *int64 `locationName:"minvCpus" type:"integer" required:"true"` + + // The EC2 security group that is associated with instances launched in the + // compute environment. + // + // SecurityGroupIds is a required field + SecurityGroupIds []*string `locationName:"securityGroupIds" type:"list" required:"true"` + + // The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied + // to a SPOT compute environment. + SpotIamFleetRole *string `locationName:"spotIamFleetRole" type:"string"` + + // The VPC subnets into which the compute resources are launched. + // + // Subnets is a required field + Subnets []*string `locationName:"subnets" type:"list" required:"true"` + + // Key-value pair tags to be applied to resources that are launched in the compute + // environment. + Tags map[string]*string `locationName:"tags" type:"map"` + + // The type of compute environment. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"CRType"` +} + +// String returns the string representation +func (s ComputeResource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ComputeResource) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ComputeResource) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ComputeResource"} + if s.InstanceRole == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceRole")) + } + if s.InstanceTypes == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceTypes")) + } + if s.MaxvCpus == nil { + invalidParams.Add(request.NewErrParamRequired("MaxvCpus")) + } + if s.MinvCpus == nil { + invalidParams.Add(request.NewErrParamRequired("MinvCpus")) + } + if s.SecurityGroupIds == nil { + invalidParams.Add(request.NewErrParamRequired("SecurityGroupIds")) + } + if s.Subnets == nil { + invalidParams.Add(request.NewErrParamRequired("Subnets")) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBidPercentage sets the BidPercentage field's value. +func (s *ComputeResource) SetBidPercentage(v int64) *ComputeResource { + s.BidPercentage = &v + return s +} + +// SetDesiredvCpus sets the DesiredvCpus field's value. +func (s *ComputeResource) SetDesiredvCpus(v int64) *ComputeResource { + s.DesiredvCpus = &v + return s +} + +// SetEc2KeyPair sets the Ec2KeyPair field's value. +func (s *ComputeResource) SetEc2KeyPair(v string) *ComputeResource { + s.Ec2KeyPair = &v + return s +} + +// SetInstanceRole sets the InstanceRole field's value. +func (s *ComputeResource) SetInstanceRole(v string) *ComputeResource { + s.InstanceRole = &v + return s +} + +// SetInstanceTypes sets the InstanceTypes field's value. +func (s *ComputeResource) SetInstanceTypes(v []*string) *ComputeResource { + s.InstanceTypes = v + return s +} + +// SetMaxvCpus sets the MaxvCpus field's value. +func (s *ComputeResource) SetMaxvCpus(v int64) *ComputeResource { + s.MaxvCpus = &v + return s +} + +// SetMinvCpus sets the MinvCpus field's value. +func (s *ComputeResource) SetMinvCpus(v int64) *ComputeResource { + s.MinvCpus = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *ComputeResource) SetSecurityGroupIds(v []*string) *ComputeResource { + s.SecurityGroupIds = v + return s +} + +// SetSpotIamFleetRole sets the SpotIamFleetRole field's value. +func (s *ComputeResource) SetSpotIamFleetRole(v string) *ComputeResource { + s.SpotIamFleetRole = &v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *ComputeResource) SetSubnets(v []*string) *ComputeResource { + s.Subnets = v + return s +} + +// SetTags sets the Tags field's value. +func (s *ComputeResource) SetTags(v map[string]*string) *ComputeResource { + s.Tags = v + return s +} + +// SetType sets the Type field's value. +func (s *ComputeResource) SetType(v string) *ComputeResource { + s.Type = &v + return s +} + +// An object representing the attributes of a compute environment that can be +// updated. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ComputeResourceUpdate +type ComputeResourceUpdate struct { + _ struct{} `type:"structure"` + + // The desired number of EC2 vCPUS in the compute environment. + DesiredvCpus *int64 `locationName:"desiredvCpus" type:"integer"` + + // The maximum number of EC2 vCPUs that an environment can reach. + MaxvCpus *int64 `locationName:"maxvCpus" type:"integer"` + + // The minimum number of EC2 vCPUs that an environment should maintain. + MinvCpus *int64 `locationName:"minvCpus" type:"integer"` +} + +// String returns the string representation +func (s ComputeResourceUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ComputeResourceUpdate) GoString() string { + return s.String() +} + +// SetDesiredvCpus sets the DesiredvCpus field's value. +func (s *ComputeResourceUpdate) SetDesiredvCpus(v int64) *ComputeResourceUpdate { + s.DesiredvCpus = &v + return s +} + +// SetMaxvCpus sets the MaxvCpus field's value. +func (s *ComputeResourceUpdate) SetMaxvCpus(v int64) *ComputeResourceUpdate { + s.MaxvCpus = &v + return s +} + +// SetMinvCpus sets the MinvCpus field's value. +func (s *ComputeResourceUpdate) SetMinvCpus(v int64) *ComputeResourceUpdate { + s.MinvCpus = &v + return s +} + +// An object representing the details of a container that is part of a job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ContainerDetail +type ContainerDetail struct { + _ struct{} `type:"structure"` + + // The command that is passed to the container. + Command []*string `locationName:"command" type:"list"` + + // The Amazon Resource Name (ARN) of the container instance on which the container + // is running. + ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` + + // The environment variables to pass to a container. + Environment []*KeyValuePair `locationName:"environment" type:"list"` + + // The exit code to return upon completion. + ExitCode *int64 `locationName:"exitCode" type:"integer"` + + // The image used to start the container. + Image *string `locationName:"image" type:"string"` + + // The Amazon Resource Name (ARN) associated with the job upon execution. + JobRoleArn *string `locationName:"jobRoleArn" type:"string"` + + // The number of MiB of memory reserved for the job. + Memory *int64 `locationName:"memory" type:"integer"` + + // The mount points for data volumes in your container. + MountPoints []*MountPoint `locationName:"mountPoints" type:"list"` + + // When this parameter is true, the container is given elevated privileges on + // the host container instance (similar to the root user). + Privileged *bool `locationName:"privileged" type:"boolean"` + + // When this parameter is true, the container is given read-only access to its + // root file system. + ReadonlyRootFilesystem *bool `locationName:"readonlyRootFilesystem" type:"boolean"` + + // A short (255 max characters) human-readable string to provide additional + // details about a running or stopped container. + Reason *string `locationName:"reason" type:"string"` + + // A list of ulimit values to set in the container. + Ulimits []*Ulimit `locationName:"ulimits" type:"list"` + + // The user name to use inside the container. + User *string `locationName:"user" type:"string"` + + // The number of VCPUs allocated for the job. + Vcpus *int64 `locationName:"vcpus" type:"integer"` + + // A list of volumes associated with the job. + Volumes []*Volume `locationName:"volumes" type:"list"` +} + +// String returns the string representation +func (s ContainerDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ContainerDetail) GoString() string { + return s.String() +} + +// SetCommand sets the Command field's value. +func (s *ContainerDetail) SetCommand(v []*string) *ContainerDetail { + s.Command = v + return s +} + +// SetContainerInstanceArn sets the ContainerInstanceArn field's value. +func (s *ContainerDetail) SetContainerInstanceArn(v string) *ContainerDetail { + s.ContainerInstanceArn = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *ContainerDetail) SetEnvironment(v []*KeyValuePair) *ContainerDetail { + s.Environment = v + return s +} + +// SetExitCode sets the ExitCode field's value. +func (s *ContainerDetail) SetExitCode(v int64) *ContainerDetail { + s.ExitCode = &v + return s +} + +// SetImage sets the Image field's value. +func (s *ContainerDetail) SetImage(v string) *ContainerDetail { + s.Image = &v + return s +} + +// SetJobRoleArn sets the JobRoleArn field's value. +func (s *ContainerDetail) SetJobRoleArn(v string) *ContainerDetail { + s.JobRoleArn = &v + return s +} + +// SetMemory sets the Memory field's value. +func (s *ContainerDetail) SetMemory(v int64) *ContainerDetail { + s.Memory = &v + return s +} + +// SetMountPoints sets the MountPoints field's value. +func (s *ContainerDetail) SetMountPoints(v []*MountPoint) *ContainerDetail { + s.MountPoints = v + return s +} + +// SetPrivileged sets the Privileged field's value. +func (s *ContainerDetail) SetPrivileged(v bool) *ContainerDetail { + s.Privileged = &v + return s +} + +// SetReadonlyRootFilesystem sets the ReadonlyRootFilesystem field's value. +func (s *ContainerDetail) SetReadonlyRootFilesystem(v bool) *ContainerDetail { + s.ReadonlyRootFilesystem = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *ContainerDetail) SetReason(v string) *ContainerDetail { + s.Reason = &v + return s +} + +// SetUlimits sets the Ulimits field's value. +func (s *ContainerDetail) SetUlimits(v []*Ulimit) *ContainerDetail { + s.Ulimits = v + return s +} + +// SetUser sets the User field's value. +func (s *ContainerDetail) SetUser(v string) *ContainerDetail { + s.User = &v + return s +} + +// SetVcpus sets the Vcpus field's value. +func (s *ContainerDetail) SetVcpus(v int64) *ContainerDetail { + s.Vcpus = &v + return s +} + +// SetVolumes sets the Volumes field's value. +func (s *ContainerDetail) SetVolumes(v []*Volume) *ContainerDetail { + s.Volumes = v + return s +} + +// The overrides that should be sent to a container. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ContainerOverrides +type ContainerOverrides struct { + _ struct{} `type:"structure"` + + // The command to send to the container that overrides the default command from + // the Docker image or the job definition. + Command []*string `locationName:"command" type:"list"` + + // The environment variables to send to the container. You can add new environment + // variables, which are added to the container at launch, or you can override + // the existing environment variables from the Docker image or the job definition. + Environment []*KeyValuePair `locationName:"environment" type:"list"` + + // The number of MiB of memory reserved for the job. This value overrides the + // value set in the job definition. + Memory *int64 `locationName:"memory" type:"integer"` + + // The number of vCPUs to reserve for the container. This value overrides the + // value set in the job definition. + Vcpus *int64 `locationName:"vcpus" type:"integer"` +} + +// String returns the string representation +func (s ContainerOverrides) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ContainerOverrides) GoString() string { + return s.String() +} + +// SetCommand sets the Command field's value. +func (s *ContainerOverrides) SetCommand(v []*string) *ContainerOverrides { + s.Command = v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *ContainerOverrides) SetEnvironment(v []*KeyValuePair) *ContainerOverrides { + s.Environment = v + return s +} + +// SetMemory sets the Memory field's value. +func (s *ContainerOverrides) SetMemory(v int64) *ContainerOverrides { + s.Memory = &v + return s +} + +// SetVcpus sets the Vcpus field's value. +func (s *ContainerOverrides) SetVcpus(v int64) *ContainerOverrides { + s.Vcpus = &v + return s +} + +// Container properties are used in job definitions to describe the container +// that is launched as part of a job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ContainerProperties +type ContainerProperties struct { + _ struct{} `type:"structure"` + + // The command that is passed to the container. This parameter maps to Cmd in + // the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the COMMAND parameter to docker run (https://docs.docker.com/engine/reference/run/). + // For more information, see https://docs.docker.com/engine/reference/builder/#cmd + // (https://docs.docker.com/engine/reference/builder/#cmd). + Command []*string `locationName:"command" type:"list"` + + // The environment variables to pass to a container. This parameter maps to + // Env in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --env option to docker run (https://docs.docker.com/engine/reference/run/). + // + // We do not recommend using plain text environment variables for sensitive + // information, such as credential data. + Environment []*KeyValuePair `locationName:"environment" type:"list"` + + // The image used to start a container. This string is passed directly to the + // Docker daemon. Images in the Docker Hub registry are available by default. + // Other repositories are specified with repository-url/image:tag. Up to 255 + // letters (uppercase and lowercase), numbers, hyphens, underscores, colons, + // periods, forward slashes, and number signs are allowed. This parameter maps + // to Image in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the IMAGE parameter of docker run (https://docs.docker.com/engine/reference/run/). + // + // * Images in Amazon ECR repositories use the full registry and repository + // URI (for example, 012345678910.dkr.ecr..amazonaws.com/). + // + // + // * Images in official repositories on Docker Hub use a single name (for + // example, ubuntu or mongo). + // + // * Images in other repositories on Docker Hub are qualified with an organization + // name (for example, amazon/amazon-ecs-agent). + // + // * Images in other online repositories are qualified further by a domain + // name (for example, quay.io/assemblyline/ubuntu). + // + // Image is a required field + Image *string `locationName:"image" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the IAM role that the container can assume + // for AWS permissions. + JobRoleArn *string `locationName:"jobRoleArn" type:"string"` + + // The hard limit (in MiB) of memory to present to the container. If your container + // attempts to exceed the memory specified here, the container is killed. This + // parameter maps to Memory in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --memory option to docker run (https://docs.docker.com/engine/reference/run/). + // + // Memory is a required field + Memory *int64 `locationName:"memory" type:"integer" required:"true"` + + // The mount points for data volumes in your container. This parameter maps + // to Volumes in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --volume option to docker run (https://docs.docker.com/engine/reference/run/). + MountPoints []*MountPoint `locationName:"mountPoints" type:"list"` + + // When this parameter is true, the container is given elevated privileges on + // the host container instance (similar to the root user). This parameter maps + // to Privileged in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --privileged option to docker run (https://docs.docker.com/engine/reference/run/). + Privileged *bool `locationName:"privileged" type:"boolean"` + + // When this parameter is true, the container is given read-only access to its + // root file system. This parameter maps to ReadonlyRootfs in the Create a container + // (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --read-only option to docker run. + ReadonlyRootFilesystem *bool `locationName:"readonlyRootFilesystem" type:"boolean"` + + // A list of ulimits to set in the container. This parameter maps to Ulimits + // in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --ulimit option to docker run (https://docs.docker.com/engine/reference/run/). + Ulimits []*Ulimit `locationName:"ulimits" type:"list"` + + // The user name to use inside the container. This parameter maps to User in + // the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --user option to docker run (https://docs.docker.com/engine/reference/run/). + User *string `locationName:"user" type:"string"` + + // The number of vCPUs reserved for the container. This parameter maps to CpuShares + // in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --cpu-shares option to docker run (https://docs.docker.com/engine/reference/run/). + // Each vCPU is equivalent to 1,024 CPU shares. + // + // Vcpus is a required field + Vcpus *int64 `locationName:"vcpus" type:"integer" required:"true"` + + // A list of data volumes used in a job. + Volumes []*Volume `locationName:"volumes" type:"list"` +} + +// String returns the string representation +func (s ContainerProperties) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ContainerProperties) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ContainerProperties) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ContainerProperties"} + if s.Image == nil { + invalidParams.Add(request.NewErrParamRequired("Image")) + } + if s.Memory == nil { + invalidParams.Add(request.NewErrParamRequired("Memory")) + } + if s.Vcpus == nil { + invalidParams.Add(request.NewErrParamRequired("Vcpus")) + } + if s.Ulimits != nil { + for i, v := range s.Ulimits { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Ulimits", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCommand sets the Command field's value. +func (s *ContainerProperties) SetCommand(v []*string) *ContainerProperties { + s.Command = v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *ContainerProperties) SetEnvironment(v []*KeyValuePair) *ContainerProperties { + s.Environment = v + return s +} + +// SetImage sets the Image field's value. +func (s *ContainerProperties) SetImage(v string) *ContainerProperties { + s.Image = &v + return s +} + +// SetJobRoleArn sets the JobRoleArn field's value. +func (s *ContainerProperties) SetJobRoleArn(v string) *ContainerProperties { + s.JobRoleArn = &v + return s +} + +// SetMemory sets the Memory field's value. +func (s *ContainerProperties) SetMemory(v int64) *ContainerProperties { + s.Memory = &v + return s +} + +// SetMountPoints sets the MountPoints field's value. +func (s *ContainerProperties) SetMountPoints(v []*MountPoint) *ContainerProperties { + s.MountPoints = v + return s +} + +// SetPrivileged sets the Privileged field's value. +func (s *ContainerProperties) SetPrivileged(v bool) *ContainerProperties { + s.Privileged = &v + return s +} + +// SetReadonlyRootFilesystem sets the ReadonlyRootFilesystem field's value. +func (s *ContainerProperties) SetReadonlyRootFilesystem(v bool) *ContainerProperties { + s.ReadonlyRootFilesystem = &v + return s +} + +// SetUlimits sets the Ulimits field's value. +func (s *ContainerProperties) SetUlimits(v []*Ulimit) *ContainerProperties { + s.Ulimits = v + return s +} + +// SetUser sets the User field's value. +func (s *ContainerProperties) SetUser(v string) *ContainerProperties { + s.User = &v + return s +} + +// SetVcpus sets the Vcpus field's value. +func (s *ContainerProperties) SetVcpus(v int64) *ContainerProperties { + s.Vcpus = &v + return s +} + +// SetVolumes sets the Volumes field's value. +func (s *ContainerProperties) SetVolumes(v []*Volume) *ContainerProperties { + s.Volumes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironmentRequest +type CreateComputeEnvironmentInput struct { + _ struct{} `type:"structure"` + + // The name for your compute environment. Up to 128 letters (uppercase and lowercase), + // numbers, and underscores are allowed. + // + // ComputeEnvironmentName is a required field + ComputeEnvironmentName *string `locationName:"computeEnvironmentName" type:"string" required:"true"` + + // Details of the compute resources managed by the compute environment. This + // parameter is required for managed compute environments. + ComputeResources *ComputeResource `locationName:"computeResources" type:"structure"` + + // The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch + // to make calls to other AWS services on your behalf. + // + // ServiceRole is a required field + ServiceRole *string `locationName:"serviceRole" type:"string" required:"true"` + + // The state of the compute environment. If the state is ENABLED, then the compute + // environment accepts jobs from a queue and can scale out automatically based + // on queues. + State *string `locationName:"state" type:"string" enum:"CEState"` + + // The type of the compute environment. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"CEType"` +} + +// String returns the string representation +func (s CreateComputeEnvironmentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateComputeEnvironmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateComputeEnvironmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateComputeEnvironmentInput"} + if s.ComputeEnvironmentName == nil { + invalidParams.Add(request.NewErrParamRequired("ComputeEnvironmentName")) + } + if s.ServiceRole == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceRole")) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.ComputeResources != nil { + if err := s.ComputeResources.Validate(); err != nil { + invalidParams.AddNested("ComputeResources", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetComputeEnvironmentName sets the ComputeEnvironmentName field's value. +func (s *CreateComputeEnvironmentInput) SetComputeEnvironmentName(v string) *CreateComputeEnvironmentInput { + s.ComputeEnvironmentName = &v + return s +} + +// SetComputeResources sets the ComputeResources field's value. +func (s *CreateComputeEnvironmentInput) SetComputeResources(v *ComputeResource) *CreateComputeEnvironmentInput { + s.ComputeResources = v + return s +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *CreateComputeEnvironmentInput) SetServiceRole(v string) *CreateComputeEnvironmentInput { + s.ServiceRole = &v + return s +} + +// SetState sets the State field's value. +func (s *CreateComputeEnvironmentInput) SetState(v string) *CreateComputeEnvironmentInput { + s.State = &v + return s +} + +// SetType sets the Type field's value. +func (s *CreateComputeEnvironmentInput) SetType(v string) *CreateComputeEnvironmentInput { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironmentResponse +type CreateComputeEnvironmentOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the compute environment. + ComputeEnvironmentArn *string `locationName:"computeEnvironmentArn" type:"string"` + + // The name of the compute environment. + ComputeEnvironmentName *string `locationName:"computeEnvironmentName" type:"string"` +} + +// String returns the string representation +func (s CreateComputeEnvironmentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateComputeEnvironmentOutput) GoString() string { + return s.String() +} + +// SetComputeEnvironmentArn sets the ComputeEnvironmentArn field's value. +func (s *CreateComputeEnvironmentOutput) SetComputeEnvironmentArn(v string) *CreateComputeEnvironmentOutput { + s.ComputeEnvironmentArn = &v + return s +} + +// SetComputeEnvironmentName sets the ComputeEnvironmentName field's value. +func (s *CreateComputeEnvironmentOutput) SetComputeEnvironmentName(v string) *CreateComputeEnvironmentOutput { + s.ComputeEnvironmentName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueueRequest +type CreateJobQueueInput struct { + _ struct{} `type:"structure"` + + // The set of compute environments mapped to a job queue and their order relative + // to each other. The job scheduler uses this parameter to determine which compute + // environment should execute a given job. Compute environments must be in the + // VALID state before you can associate them with a job queue. You can associate + // up to 3 compute environments with a job queue. + // + // ComputeEnvironmentOrder is a required field + ComputeEnvironmentOrder []*ComputeEnvironmentOrder `locationName:"computeEnvironmentOrder" type:"list" required:"true"` + + // The name of the job queue. + // + // JobQueueName is a required field + JobQueueName *string `locationName:"jobQueueName" type:"string" required:"true"` + + // The priority of the job queue. Job queues with a higher priority (or a lower + // integer value for the priority parameter) are evaluated first when associated + // with same compute environment. Priority is determined in ascending order, + // for example, a job queue with a priority value of 1 is given scheduling preference + // over a job queue with a priority value of 10. + // + // Priority is a required field + Priority *int64 `locationName:"priority" type:"integer" required:"true"` + + // The state of the job queue. If the job queue state is ENABLED, it is able + // to accept jobs. + State *string `locationName:"state" type:"string" enum:"JQState"` +} + +// String returns the string representation +func (s CreateJobQueueInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateJobQueueInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateJobQueueInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateJobQueueInput"} + if s.ComputeEnvironmentOrder == nil { + invalidParams.Add(request.NewErrParamRequired("ComputeEnvironmentOrder")) + } + if s.JobQueueName == nil { + invalidParams.Add(request.NewErrParamRequired("JobQueueName")) + } + if s.Priority == nil { + invalidParams.Add(request.NewErrParamRequired("Priority")) + } + if s.ComputeEnvironmentOrder != nil { + for i, v := range s.ComputeEnvironmentOrder { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ComputeEnvironmentOrder", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetComputeEnvironmentOrder sets the ComputeEnvironmentOrder field's value. +func (s *CreateJobQueueInput) SetComputeEnvironmentOrder(v []*ComputeEnvironmentOrder) *CreateJobQueueInput { + s.ComputeEnvironmentOrder = v + return s +} + +// SetJobQueueName sets the JobQueueName field's value. +func (s *CreateJobQueueInput) SetJobQueueName(v string) *CreateJobQueueInput { + s.JobQueueName = &v + return s +} + +// SetPriority sets the Priority field's value. +func (s *CreateJobQueueInput) SetPriority(v int64) *CreateJobQueueInput { + s.Priority = &v + return s +} + +// SetState sets the State field's value. +func (s *CreateJobQueueInput) SetState(v string) *CreateJobQueueInput { + s.State = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueueResponse +type CreateJobQueueOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the job queue. + // + // JobQueueArn is a required field + JobQueueArn *string `locationName:"jobQueueArn" type:"string" required:"true"` + + // The name of the job queue. + // + // JobQueueName is a required field + JobQueueName *string `locationName:"jobQueueName" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateJobQueueOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateJobQueueOutput) GoString() string { + return s.String() +} + +// SetJobQueueArn sets the JobQueueArn field's value. +func (s *CreateJobQueueOutput) SetJobQueueArn(v string) *CreateJobQueueOutput { + s.JobQueueArn = &v + return s +} + +// SetJobQueueName sets the JobQueueName field's value. +func (s *CreateJobQueueOutput) SetJobQueueName(v string) *CreateJobQueueOutput { + s.JobQueueName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteComputeEnvironmentRequest +type DeleteComputeEnvironmentInput struct { + _ struct{} `type:"structure"` + + // The name or Amazon Resource Name (ARN) of the compute environment to delete. + // + // ComputeEnvironment is a required field + ComputeEnvironment *string `locationName:"computeEnvironment" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteComputeEnvironmentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteComputeEnvironmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteComputeEnvironmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteComputeEnvironmentInput"} + if s.ComputeEnvironment == nil { + invalidParams.Add(request.NewErrParamRequired("ComputeEnvironment")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetComputeEnvironment sets the ComputeEnvironment field's value. +func (s *DeleteComputeEnvironmentInput) SetComputeEnvironment(v string) *DeleteComputeEnvironmentInput { + s.ComputeEnvironment = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteComputeEnvironmentResponse +type DeleteComputeEnvironmentOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteComputeEnvironmentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteComputeEnvironmentOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteJobQueueRequest +type DeleteJobQueueInput struct { + _ struct{} `type:"structure"` + + // The short name or full Amazon Resource Name (ARN) of the queue to delete. + // + // JobQueue is a required field + JobQueue *string `locationName:"jobQueue" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteJobQueueInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteJobQueueInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteJobQueueInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteJobQueueInput"} + if s.JobQueue == nil { + invalidParams.Add(request.NewErrParamRequired("JobQueue")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJobQueue sets the JobQueue field's value. +func (s *DeleteJobQueueInput) SetJobQueue(v string) *DeleteJobQueueInput { + s.JobQueue = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteJobQueueResponse +type DeleteJobQueueOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteJobQueueOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteJobQueueOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeregisterJobDefinitionRequest +type DeregisterJobDefinitionInput struct { + _ struct{} `type:"structure"` + + // The name and revision (name:revision) or full Amazon Resource Name (ARN) + // of the job definition to deregister. + // + // JobDefinition is a required field + JobDefinition *string `locationName:"jobDefinition" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeregisterJobDefinitionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeregisterJobDefinitionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeregisterJobDefinitionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeregisterJobDefinitionInput"} + if s.JobDefinition == nil { + invalidParams.Add(request.NewErrParamRequired("JobDefinition")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJobDefinition sets the JobDefinition field's value. +func (s *DeregisterJobDefinitionInput) SetJobDefinition(v string) *DeregisterJobDefinitionInput { + s.JobDefinition = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeregisterJobDefinitionResponse +type DeregisterJobDefinitionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeregisterJobDefinitionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeregisterJobDefinitionOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironmentsRequest +type DescribeComputeEnvironmentsInput struct { + _ struct{} `type:"structure"` + + // A list of up to 100 compute environment names or full Amazon Resource Name + // (ARN) entries. + ComputeEnvironments []*string `locationName:"computeEnvironments" type:"list"` + + // The maximum number of cluster results returned by DescribeComputeEnvironments + // in paginated output. When this parameter is used, DescribeComputeEnvironments + // only returns maxResults results in a single page along with a nextToken response + // element. The remaining results of the initial request can be seen by sending + // another DescribeComputeEnvironments request with the returned nextToken value. + // This value can be between 1 and 100. If this parameter is not used, then + // DescribeComputeEnvironments returns up to 100 results and a nextToken value + // if applicable. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // The nextToken value returned from a previous paginated DescribeComputeEnvironments + // request where maxResults was used and the results exceeded the value of that + // parameter. Pagination continues from the end of the previous results that + // returned the nextToken value. This value is null when there are no more results + // to return. + // + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s DescribeComputeEnvironmentsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeComputeEnvironmentsInput) GoString() string { + return s.String() +} + +// SetComputeEnvironments sets the ComputeEnvironments field's value. +func (s *DescribeComputeEnvironmentsInput) SetComputeEnvironments(v []*string) *DescribeComputeEnvironmentsInput { + s.ComputeEnvironments = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeComputeEnvironmentsInput) SetMaxResults(v int64) *DescribeComputeEnvironmentsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeComputeEnvironmentsInput) SetNextToken(v string) *DescribeComputeEnvironmentsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironmentsResponse +type DescribeComputeEnvironmentsOutput struct { + _ struct{} `type:"structure"` + + // The list of compute environments. + ComputeEnvironments []*ComputeEnvironmentDetail `locationName:"computeEnvironments" type:"list"` + + // The nextToken value to include in a future DescribeComputeEnvironments request. + // When the results of a DescribeJobDefinitions request exceed maxResults, this + // value can be used to retrieve the next page of results. This value is null + // when there are no more results to return. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s DescribeComputeEnvironmentsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeComputeEnvironmentsOutput) GoString() string { + return s.String() +} + +// SetComputeEnvironments sets the ComputeEnvironments field's value. +func (s *DescribeComputeEnvironmentsOutput) SetComputeEnvironments(v []*ComputeEnvironmentDetail) *DescribeComputeEnvironmentsOutput { + s.ComputeEnvironments = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeComputeEnvironmentsOutput) SetNextToken(v string) *DescribeComputeEnvironmentsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitionsRequest +type DescribeJobDefinitionsInput struct { + _ struct{} `type:"structure"` + + // The name of the job definition to describe. + JobDefinitionName *string `locationName:"jobDefinitionName" type:"string"` + + // A space-separated list of up to 100 job definition names or full Amazon Resource + // Name (ARN) entries. + JobDefinitions []*string `locationName:"jobDefinitions" type:"list"` + + // The maximum number of results returned by DescribeJobDefinitions in paginated + // output. When this parameter is used, DescribeJobDefinitions only returns + // maxResults results in a single page along with a nextToken response element. + // The remaining results of the initial request can be seen by sending another + // DescribeJobDefinitions request with the returned nextToken value. This value + // can be between 1 and 100. If this parameter is not used, then DescribeJobDefinitions + // returns up to 100 results and a nextToken value if applicable. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // The nextToken value returned from a previous paginated DescribeJobDefinitions + // request where maxResults was used and the results exceeded the value of that + // parameter. Pagination continues from the end of the previous results that + // returned the nextToken value. This value is null when there are no more results + // to return. + // + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. + NextToken *string `locationName:"nextToken" type:"string"` + + // The status with which to filter job definitions. + Status *string `locationName:"status" type:"string"` +} + +// String returns the string representation +func (s DescribeJobDefinitionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeJobDefinitionsInput) GoString() string { + return s.String() +} + +// SetJobDefinitionName sets the JobDefinitionName field's value. +func (s *DescribeJobDefinitionsInput) SetJobDefinitionName(v string) *DescribeJobDefinitionsInput { + s.JobDefinitionName = &v + return s +} + +// SetJobDefinitions sets the JobDefinitions field's value. +func (s *DescribeJobDefinitionsInput) SetJobDefinitions(v []*string) *DescribeJobDefinitionsInput { + s.JobDefinitions = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeJobDefinitionsInput) SetMaxResults(v int64) *DescribeJobDefinitionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeJobDefinitionsInput) SetNextToken(v string) *DescribeJobDefinitionsInput { + s.NextToken = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeJobDefinitionsInput) SetStatus(v string) *DescribeJobDefinitionsInput { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitionsResponse +type DescribeJobDefinitionsOutput struct { + _ struct{} `type:"structure"` + + // The list of job definitions. + JobDefinitions []*JobDefinition `locationName:"jobDefinitions" type:"list"` + + // The nextToken value to include in a future DescribeJobDefinitions request. + // When the results of a DescribeJobDefinitions request exceed maxResults, this + // value can be used to retrieve the next page of results. This value is null + // when there are no more results to return. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s DescribeJobDefinitionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeJobDefinitionsOutput) GoString() string { + return s.String() +} + +// SetJobDefinitions sets the JobDefinitions field's value. +func (s *DescribeJobDefinitionsOutput) SetJobDefinitions(v []*JobDefinition) *DescribeJobDefinitionsOutput { + s.JobDefinitions = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeJobDefinitionsOutput) SetNextToken(v string) *DescribeJobDefinitionsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueuesRequest +type DescribeJobQueuesInput struct { + _ struct{} `type:"structure"` + + // A list of up to 100 queue names or full queue Amazon Resource Name (ARN) + // entries. + JobQueues []*string `locationName:"jobQueues" type:"list"` + + // The maximum number of results returned by DescribeJobQueues in paginated + // output. When this parameter is used, DescribeJobQueues only returns maxResults + // results in a single page along with a nextToken response element. The remaining + // results of the initial request can be seen by sending another DescribeJobQueues + // request with the returned nextToken value. This value can be between 1 and + // 100. If this parameter is not used, then DescribeJobQueues returns up to + // 100 results and a nextToken value if applicable. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // The nextToken value returned from a previous paginated DescribeJobQueues + // request where maxResults was used and the results exceeded the value of that + // parameter. Pagination continues from the end of the previous results that + // returned the nextToken value. This value is null when there are no more results + // to return. + // + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s DescribeJobQueuesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeJobQueuesInput) GoString() string { + return s.String() +} + +// SetJobQueues sets the JobQueues field's value. +func (s *DescribeJobQueuesInput) SetJobQueues(v []*string) *DescribeJobQueuesInput { + s.JobQueues = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeJobQueuesInput) SetMaxResults(v int64) *DescribeJobQueuesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeJobQueuesInput) SetNextToken(v string) *DescribeJobQueuesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueuesResponse +type DescribeJobQueuesOutput struct { + _ struct{} `type:"structure"` + + // The list of job queues. + JobQueues []*JobQueueDetail `locationName:"jobQueues" type:"list"` + + // The nextToken value to include in a future DescribeJobQueues request. When + // the results of a DescribeJobQueues request exceed maxResults, this value + // can be used to retrieve the next page of results. This value is null when + // there are no more results to return. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s DescribeJobQueuesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeJobQueuesOutput) GoString() string { + return s.String() +} + +// SetJobQueues sets the JobQueues field's value. +func (s *DescribeJobQueuesOutput) SetJobQueues(v []*JobQueueDetail) *DescribeJobQueuesOutput { + s.JobQueues = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeJobQueuesOutput) SetNextToken(v string) *DescribeJobQueuesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobsRequest +type DescribeJobsInput struct { + _ struct{} `type:"structure"` + + // A space-separated list of up to 100 job IDs. + // + // Jobs is a required field + Jobs []*string `locationName:"jobs" type:"list" required:"true"` +} + +// String returns the string representation +func (s DescribeJobsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeJobsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeJobsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeJobsInput"} + if s.Jobs == nil { + invalidParams.Add(request.NewErrParamRequired("Jobs")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJobs sets the Jobs field's value. +func (s *DescribeJobsInput) SetJobs(v []*string) *DescribeJobsInput { + s.Jobs = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobsResponse +type DescribeJobsOutput struct { + _ struct{} `type:"structure"` + + // The list of jobs. + Jobs []*JobDetail `locationName:"jobs" type:"list"` +} + +// String returns the string representation +func (s DescribeJobsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeJobsOutput) GoString() string { + return s.String() +} + +// SetJobs sets the Jobs field's value. +func (s *DescribeJobsOutput) SetJobs(v []*JobDetail) *DescribeJobsOutput { + s.Jobs = v + return s +} + +// The contents of the host parameter determine whether your data volume persists +// on the host container instance and where it is stored. If the host parameter +// is empty, then the Docker daemon assigns a host path for your data volume, +// but the data is not guaranteed to persist after the containers associated +// with it stop running. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/Host +type Host struct { + _ struct{} `type:"structure"` + + // The path on the host container instance that is presented to the container. + // If this parameter is empty, then the Docker daemon has assigned a host path + // for you. If the host parameter contains a sourcePath file location, then + // the data volume persists at the specified location on the host container + // instance until you delete it manually. If the sourcePath value does not exist + // on the host container instance, the Docker daemon creates it. If the location + // does exist, the contents of the source path folder are exported. + SourcePath *string `locationName:"sourcePath" type:"string"` +} + +// String returns the string representation +func (s Host) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Host) GoString() string { + return s.String() +} + +// SetSourcePath sets the SourcePath field's value. +func (s *Host) SetSourcePath(v string) *Host { + s.SourcePath = &v + return s +} + +// An object representing an AWS Batch job definition. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/JobDefinition +type JobDefinition struct { + _ struct{} `type:"structure"` + + // An object with various properties specific to container-based jobs. + ContainerProperties *ContainerProperties `locationName:"containerProperties" type:"structure"` + + // The Amazon Resource Name (ARN) for the job definition. + // + // JobDefinitionArn is a required field + JobDefinitionArn *string `locationName:"jobDefinitionArn" type:"string" required:"true"` + + // The name of the job definition. + // + // JobDefinitionName is a required field + JobDefinitionName *string `locationName:"jobDefinitionName" type:"string" required:"true"` + + // Default parameters or parameter substitution placeholders that are set in + // the job definition. Parameters are specified as a key-value pair mapping. + // Parameters in a SubmitJob request override any corresponding parameter defaults + // from the job definition. + Parameters map[string]*string `locationName:"parameters" type:"map"` + + // The revision of the job definition. + // + // Revision is a required field + Revision *int64 `locationName:"revision" type:"integer" required:"true"` + + // The status of the job definition. + Status *string `locationName:"status" type:"string"` + + // The type of job definition. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true"` +} + +// String returns the string representation +func (s JobDefinition) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s JobDefinition) GoString() string { + return s.String() +} + +// SetContainerProperties sets the ContainerProperties field's value. +func (s *JobDefinition) SetContainerProperties(v *ContainerProperties) *JobDefinition { + s.ContainerProperties = v + return s +} + +// SetJobDefinitionArn sets the JobDefinitionArn field's value. +func (s *JobDefinition) SetJobDefinitionArn(v string) *JobDefinition { + s.JobDefinitionArn = &v + return s +} + +// SetJobDefinitionName sets the JobDefinitionName field's value. +func (s *JobDefinition) SetJobDefinitionName(v string) *JobDefinition { + s.JobDefinitionName = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *JobDefinition) SetParameters(v map[string]*string) *JobDefinition { + s.Parameters = v + return s +} + +// SetRevision sets the Revision field's value. +func (s *JobDefinition) SetRevision(v int64) *JobDefinition { + s.Revision = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *JobDefinition) SetStatus(v string) *JobDefinition { + s.Status = &v + return s +} + +// SetType sets the Type field's value. +func (s *JobDefinition) SetType(v string) *JobDefinition { + s.Type = &v + return s +} + +// An object representing an AWS Batch job dependency. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/JobDependency +type JobDependency struct { + _ struct{} `type:"structure"` + + // The job ID of the AWS Batch job associated with this dependency. + JobId *string `locationName:"jobId" type:"string"` +} + +// String returns the string representation +func (s JobDependency) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s JobDependency) GoString() string { + return s.String() +} + +// SetJobId sets the JobId field's value. +func (s *JobDependency) SetJobId(v string) *JobDependency { + s.JobId = &v + return s +} + +// An object representing an AWS Batch job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/JobDetail +type JobDetail struct { + _ struct{} `type:"structure"` + + // An object representing the details of the container that is associated with + // the job. + Container *ContainerDetail `locationName:"container" type:"structure"` + + // The Unix timestamp for when the job was created (when the task entered the + // PENDING state). + CreatedAt *int64 `locationName:"createdAt" type:"long"` + + // A list of job names or IDs on which this job depends. + DependsOn []*JobDependency `locationName:"dependsOn" type:"list"` + + // The job definition that is used by this job. + // + // JobDefinition is a required field + JobDefinition *string `locationName:"jobDefinition" type:"string" required:"true"` + + // The ID for the job. + // + // JobId is a required field + JobId *string `locationName:"jobId" type:"string" required:"true"` + + // The name of the job. + // + // JobName is a required field + JobName *string `locationName:"jobName" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the job queue with which the job is associated. + // + // JobQueue is a required field + JobQueue *string `locationName:"jobQueue" type:"string" required:"true"` + + // Additional parameters passed to the job that replace parameter substitution + // placeholders or override any corresponding parameter defaults from the job + // definition. + Parameters map[string]*string `locationName:"parameters" type:"map"` + + // The Unix timestamp for when the job was started (when the task transitioned + // from the PENDING state to the RUNNING state). + // + // StartedAt is a required field + StartedAt *int64 `locationName:"startedAt" type:"long" required:"true"` + + // The current status for the job. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"JobStatus"` + + // A short, human-readable string to provide additional details about the current + // status of the job. + StatusReason *string `locationName:"statusReason" type:"string"` + + // The Unix timestamp for when the job was stopped (when the task transitioned + // from the RUNNING state to the STOPPED state). + StoppedAt *int64 `locationName:"stoppedAt" type:"long"` +} + +// String returns the string representation +func (s JobDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s JobDetail) GoString() string { + return s.String() +} + +// SetContainer sets the Container field's value. +func (s *JobDetail) SetContainer(v *ContainerDetail) *JobDetail { + s.Container = v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *JobDetail) SetCreatedAt(v int64) *JobDetail { + s.CreatedAt = &v + return s +} + +// SetDependsOn sets the DependsOn field's value. +func (s *JobDetail) SetDependsOn(v []*JobDependency) *JobDetail { + s.DependsOn = v + return s +} + +// SetJobDefinition sets the JobDefinition field's value. +func (s *JobDetail) SetJobDefinition(v string) *JobDetail { + s.JobDefinition = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *JobDetail) SetJobId(v string) *JobDetail { + s.JobId = &v + return s +} + +// SetJobName sets the JobName field's value. +func (s *JobDetail) SetJobName(v string) *JobDetail { + s.JobName = &v + return s +} + +// SetJobQueue sets the JobQueue field's value. +func (s *JobDetail) SetJobQueue(v string) *JobDetail { + s.JobQueue = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *JobDetail) SetParameters(v map[string]*string) *JobDetail { + s.Parameters = v + return s +} + +// SetStartedAt sets the StartedAt field's value. +func (s *JobDetail) SetStartedAt(v int64) *JobDetail { + s.StartedAt = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *JobDetail) SetStatus(v string) *JobDetail { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *JobDetail) SetStatusReason(v string) *JobDetail { + s.StatusReason = &v + return s +} + +// SetStoppedAt sets the StoppedAt field's value. +func (s *JobDetail) SetStoppedAt(v int64) *JobDetail { + s.StoppedAt = &v + return s +} + +// An object representing the details of an AWS Batch job queue. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/JobQueueDetail +type JobQueueDetail struct { + _ struct{} `type:"structure"` + + // The compute environments that are attached to the job queue and the order + // in which job placement is preferred. Compute environments are selected for + // job placement in ascending order. + // + // ComputeEnvironmentOrder is a required field + ComputeEnvironmentOrder []*ComputeEnvironmentOrder `locationName:"computeEnvironmentOrder" type:"list" required:"true"` + + // The Amazon Resource Name (ARN) of the job queue. + // + // JobQueueArn is a required field + JobQueueArn *string `locationName:"jobQueueArn" type:"string" required:"true"` + + // The name of the job queue. + // + // JobQueueName is a required field + JobQueueName *string `locationName:"jobQueueName" type:"string" required:"true"` + + // The priority of the job queue. + // + // Priority is a required field + Priority *int64 `locationName:"priority" type:"integer" required:"true"` + + // Describes the ability of the queue to accept new jobs. + // + // State is a required field + State *string `locationName:"state" type:"string" required:"true" enum:"JQState"` + + // The status of the job queue (for example, CREATING or VALID). + Status *string `locationName:"status" type:"string" enum:"JQStatus"` + + // A short, human-readable string to provide additional details about the current + // status of the job queue. + StatusReason *string `locationName:"statusReason" type:"string"` +} + +// String returns the string representation +func (s JobQueueDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s JobQueueDetail) GoString() string { + return s.String() +} + +// SetComputeEnvironmentOrder sets the ComputeEnvironmentOrder field's value. +func (s *JobQueueDetail) SetComputeEnvironmentOrder(v []*ComputeEnvironmentOrder) *JobQueueDetail { + s.ComputeEnvironmentOrder = v + return s +} + +// SetJobQueueArn sets the JobQueueArn field's value. +func (s *JobQueueDetail) SetJobQueueArn(v string) *JobQueueDetail { + s.JobQueueArn = &v + return s +} + +// SetJobQueueName sets the JobQueueName field's value. +func (s *JobQueueDetail) SetJobQueueName(v string) *JobQueueDetail { + s.JobQueueName = &v + return s +} + +// SetPriority sets the Priority field's value. +func (s *JobQueueDetail) SetPriority(v int64) *JobQueueDetail { + s.Priority = &v + return s +} + +// SetState sets the State field's value. +func (s *JobQueueDetail) SetState(v string) *JobQueueDetail { + s.State = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *JobQueueDetail) SetStatus(v string) *JobQueueDetail { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *JobQueueDetail) SetStatusReason(v string) *JobQueueDetail { + s.StatusReason = &v + return s +} + +// An object representing summary details of a job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/JobSummary +type JobSummary struct { + _ struct{} `type:"structure"` + + // The ID of the job. + // + // JobId is a required field + JobId *string `locationName:"jobId" type:"string" required:"true"` + + // The name of the job. + // + // JobName is a required field + JobName *string `locationName:"jobName" type:"string" required:"true"` +} + +// String returns the string representation +func (s JobSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s JobSummary) GoString() string { + return s.String() +} + +// SetJobId sets the JobId field's value. +func (s *JobSummary) SetJobId(v string) *JobSummary { + s.JobId = &v + return s +} + +// SetJobName sets the JobName field's value. +func (s *JobSummary) SetJobName(v string) *JobSummary { + s.JobName = &v + return s +} + +// A key-value pair object. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/KeyValuePair +type KeyValuePair struct { + _ struct{} `type:"structure"` + + // The name of the key value pair. For environment variables, this is the name + // of the environment variable. + Name *string `locationName:"name" type:"string"` + + // The value of the key value pair. For environment variables, this is the value + // of the environment variable. + Value *string `locationName:"value" type:"string"` +} + +// String returns the string representation +func (s KeyValuePair) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KeyValuePair) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *KeyValuePair) SetName(v string) *KeyValuePair { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *KeyValuePair) SetValue(v string) *KeyValuePair { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobsRequest +type ListJobsInput struct { + _ struct{} `type:"structure"` + + // The name or full Amazon Resource Name (ARN) of the job queue with which to + // list jobs. + // + // JobQueue is a required field + JobQueue *string `locationName:"jobQueue" type:"string" required:"true"` + + // The job status with which to filter jobs in the specified queue. + JobStatus *string `locationName:"jobStatus" type:"string" enum:"JobStatus"` + + // The maximum number of results returned by ListJobs in paginated output. When + // this parameter is used, ListJobs only returns maxResults results in a single + // page along with a nextToken response element. The remaining results of the + // initial request can be seen by sending another ListJobs request with the + // returned nextToken value. This value can be between 1 and 100. If this parameter + // is not used, then ListJobs returns up to 100 results and a nextToken value + // if applicable. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // The nextToken value returned from a previous paginated ListJobs request where + // maxResults was used and the results exceeded the value of that parameter. + // Pagination continues from the end of the previous results that returned the + // nextToken value. This value is null when there are no more results to return. + // + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListJobsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListJobsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListJobsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListJobsInput"} + if s.JobQueue == nil { + invalidParams.Add(request.NewErrParamRequired("JobQueue")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJobQueue sets the JobQueue field's value. +func (s *ListJobsInput) SetJobQueue(v string) *ListJobsInput { + s.JobQueue = &v + return s +} + +// SetJobStatus sets the JobStatus field's value. +func (s *ListJobsInput) SetJobStatus(v string) *ListJobsInput { + s.JobStatus = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListJobsInput) SetMaxResults(v int64) *ListJobsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListJobsInput) SetNextToken(v string) *ListJobsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobsResponse +type ListJobsOutput struct { + _ struct{} `type:"structure"` + + // A list of job summaries that match the request. + // + // JobSummaryList is a required field + JobSummaryList []*JobSummary `locationName:"jobSummaryList" type:"list" required:"true"` + + // The nextToken value to include in a future ListJobs request. When the results + // of a ListJobs request exceed maxResults, this value can be used to retrieve + // the next page of results. This value is null when there are no more results + // to return. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListJobsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListJobsOutput) GoString() string { + return s.String() +} + +// SetJobSummaryList sets the JobSummaryList field's value. +func (s *ListJobsOutput) SetJobSummaryList(v []*JobSummary) *ListJobsOutput { + s.JobSummaryList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListJobsOutput) SetNextToken(v string) *ListJobsOutput { + s.NextToken = &v + return s +} + +// Details on a volume mount point that is used in a job's container properties. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/MountPoint +type MountPoint struct { + _ struct{} `type:"structure"` + + // The path on the container at which to mount the host volume. + ContainerPath *string `locationName:"containerPath" type:"string"` + + // If this value is true, the container has read-only access to the volume; + // otherwise, the container can write to the volume. The default value is false. + ReadOnly *bool `locationName:"readOnly" type:"boolean"` + + // The name of the volume to mount. + SourceVolume *string `locationName:"sourceVolume" type:"string"` +} + +// String returns the string representation +func (s MountPoint) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MountPoint) GoString() string { + return s.String() +} + +// SetContainerPath sets the ContainerPath field's value. +func (s *MountPoint) SetContainerPath(v string) *MountPoint { + s.ContainerPath = &v + return s +} + +// SetReadOnly sets the ReadOnly field's value. +func (s *MountPoint) SetReadOnly(v bool) *MountPoint { + s.ReadOnly = &v + return s +} + +// SetSourceVolume sets the SourceVolume field's value. +func (s *MountPoint) SetSourceVolume(v string) *MountPoint { + s.SourceVolume = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinitionRequest +type RegisterJobDefinitionInput struct { + _ struct{} `type:"structure"` + + // An object with various properties specific for container-based jobs. This + // parameter is required if the type parameter is container. + ContainerProperties *ContainerProperties `locationName:"containerProperties" type:"structure"` + + // The name of the job definition to register. + // + // JobDefinitionName is a required field + JobDefinitionName *string `locationName:"jobDefinitionName" type:"string" required:"true"` + + // Default parameter substitution placeholders to set in the job definition. + // Parameters are specified as a key-value pair mapping. Parameters in a SubmitJob + // request override any corresponding parameter defaults from the job definition. + Parameters map[string]*string `locationName:"parameters" type:"map"` + + // The type of job definition. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"JobDefinitionType"` +} + +// String returns the string representation +func (s RegisterJobDefinitionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RegisterJobDefinitionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RegisterJobDefinitionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RegisterJobDefinitionInput"} + if s.JobDefinitionName == nil { + invalidParams.Add(request.NewErrParamRequired("JobDefinitionName")) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.ContainerProperties != nil { + if err := s.ContainerProperties.Validate(); err != nil { + invalidParams.AddNested("ContainerProperties", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContainerProperties sets the ContainerProperties field's value. +func (s *RegisterJobDefinitionInput) SetContainerProperties(v *ContainerProperties) *RegisterJobDefinitionInput { + s.ContainerProperties = v + return s +} + +// SetJobDefinitionName sets the JobDefinitionName field's value. +func (s *RegisterJobDefinitionInput) SetJobDefinitionName(v string) *RegisterJobDefinitionInput { + s.JobDefinitionName = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *RegisterJobDefinitionInput) SetParameters(v map[string]*string) *RegisterJobDefinitionInput { + s.Parameters = v + return s +} + +// SetType sets the Type field's value. +func (s *RegisterJobDefinitionInput) SetType(v string) *RegisterJobDefinitionInput { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinitionResponse +type RegisterJobDefinitionOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the job definition. + // + // JobDefinitionArn is a required field + JobDefinitionArn *string `locationName:"jobDefinitionArn" type:"string" required:"true"` + + // The name of the job definition. + // + // JobDefinitionName is a required field + JobDefinitionName *string `locationName:"jobDefinitionName" type:"string" required:"true"` + + // The revision of the job definition. + // + // Revision is a required field + Revision *int64 `locationName:"revision" type:"integer" required:"true"` +} + +// String returns the string representation +func (s RegisterJobDefinitionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RegisterJobDefinitionOutput) GoString() string { + return s.String() +} + +// SetJobDefinitionArn sets the JobDefinitionArn field's value. +func (s *RegisterJobDefinitionOutput) SetJobDefinitionArn(v string) *RegisterJobDefinitionOutput { + s.JobDefinitionArn = &v + return s +} + +// SetJobDefinitionName sets the JobDefinitionName field's value. +func (s *RegisterJobDefinitionOutput) SetJobDefinitionName(v string) *RegisterJobDefinitionOutput { + s.JobDefinitionName = &v + return s +} + +// SetRevision sets the Revision field's value. +func (s *RegisterJobDefinitionOutput) SetRevision(v int64) *RegisterJobDefinitionOutput { + s.Revision = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJobRequest +type SubmitJobInput struct { + _ struct{} `type:"structure"` + + // A list of container overrides in JSON format that specify the name of a container + // in the specified job definition and the overrides it should receive. You + // can override the default command for a container (that is specified in the + // job definition or the Docker image) with a command override. You can also + // override existing environment variables (that are specified in the job definition + // or Docker image) on a container or add new environment variables to it with + // an environment override. + ContainerOverrides *ContainerOverrides `locationName:"containerOverrides" type:"structure"` + + // A list of job names or IDs on which this job depends. A job can depend upon + // a maximum of 100 jobs. + DependsOn []*JobDependency `locationName:"dependsOn" type:"list"` + + // The job definition used by this job. This value can be either a name:revision + // or the Amazon Resource Name (ARN) for the job definition. + // + // JobDefinition is a required field + JobDefinition *string `locationName:"jobDefinition" type:"string" required:"true"` + + // The name of the job. + // + // JobName is a required field + JobName *string `locationName:"jobName" type:"string" required:"true"` + + // The job queue into which the job will be submitted. You can specify either + // the name or the Amazon Resource Name (ARN) of the queue. + // + // JobQueue is a required field + JobQueue *string `locationName:"jobQueue" type:"string" required:"true"` + + // Additional parameters passed to the job that replace parameter substitution + // placeholders that are set in the job definition. Parameters are specified + // as a key and value pair mapping. Parameters in a SubmitJob request override + // any corresponding parameter defaults from the job definition. + Parameters map[string]*string `locationName:"parameters" type:"map"` +} + +// String returns the string representation +func (s SubmitJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SubmitJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SubmitJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SubmitJobInput"} + if s.JobDefinition == nil { + invalidParams.Add(request.NewErrParamRequired("JobDefinition")) + } + if s.JobName == nil { + invalidParams.Add(request.NewErrParamRequired("JobName")) + } + if s.JobQueue == nil { + invalidParams.Add(request.NewErrParamRequired("JobQueue")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContainerOverrides sets the ContainerOverrides field's value. +func (s *SubmitJobInput) SetContainerOverrides(v *ContainerOverrides) *SubmitJobInput { + s.ContainerOverrides = v + return s +} + +// SetDependsOn sets the DependsOn field's value. +func (s *SubmitJobInput) SetDependsOn(v []*JobDependency) *SubmitJobInput { + s.DependsOn = v + return s +} + +// SetJobDefinition sets the JobDefinition field's value. +func (s *SubmitJobInput) SetJobDefinition(v string) *SubmitJobInput { + s.JobDefinition = &v + return s +} + +// SetJobName sets the JobName field's value. +func (s *SubmitJobInput) SetJobName(v string) *SubmitJobInput { + s.JobName = &v + return s +} + +// SetJobQueue sets the JobQueue field's value. +func (s *SubmitJobInput) SetJobQueue(v string) *SubmitJobInput { + s.JobQueue = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *SubmitJobInput) SetParameters(v map[string]*string) *SubmitJobInput { + s.Parameters = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJobResponse +type SubmitJobOutput struct { + _ struct{} `type:"structure"` + + // The unique identifier for the job. + // + // JobId is a required field + JobId *string `locationName:"jobId" type:"string" required:"true"` + + // The name of the job. + // + // JobName is a required field + JobName *string `locationName:"jobName" type:"string" required:"true"` +} + +// String returns the string representation +func (s SubmitJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SubmitJobOutput) GoString() string { + return s.String() +} + +// SetJobId sets the JobId field's value. +func (s *SubmitJobOutput) SetJobId(v string) *SubmitJobOutput { + s.JobId = &v + return s +} + +// SetJobName sets the JobName field's value. +func (s *SubmitJobOutput) SetJobName(v string) *SubmitJobOutput { + s.JobName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateJobRequest +type TerminateJobInput struct { + _ struct{} `type:"structure"` + + // Job IDs to be terminated. Up to 100 jobs can be specified. + // + // JobId is a required field + JobId *string `locationName:"jobId" type:"string" required:"true"` + + // A message to attach to the job that explains the reason for cancelling it. + // This message is returned by future DescribeJobs operations on the job. This + // message is also recorded in the AWS Batch activity logs. + // + // Reason is a required field + Reason *string `locationName:"reason" type:"string" required:"true"` +} + +// String returns the string representation +func (s TerminateJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TerminateJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TerminateJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TerminateJobInput"} + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + if s.Reason == nil { + invalidParams.Add(request.NewErrParamRequired("Reason")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJobId sets the JobId field's value. +func (s *TerminateJobInput) SetJobId(v string) *TerminateJobInput { + s.JobId = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *TerminateJobInput) SetReason(v string) *TerminateJobInput { + s.Reason = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateJobResponse +type TerminateJobOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s TerminateJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TerminateJobOutput) GoString() string { + return s.String() +} + +// The ulimit settings to pass to the container. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/Ulimit +type Ulimit struct { + _ struct{} `type:"structure"` + + // The hard limit for the ulimit type. + // + // HardLimit is a required field + HardLimit *int64 `locationName:"hardLimit" type:"integer" required:"true"` + + // The type of the ulimit. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // The soft limit for the ulimit type. + // + // SoftLimit is a required field + SoftLimit *int64 `locationName:"softLimit" type:"integer" required:"true"` +} + +// String returns the string representation +func (s Ulimit) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Ulimit) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Ulimit) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Ulimit"} + if s.HardLimit == nil { + invalidParams.Add(request.NewErrParamRequired("HardLimit")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.SoftLimit == nil { + invalidParams.Add(request.NewErrParamRequired("SoftLimit")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHardLimit sets the HardLimit field's value. +func (s *Ulimit) SetHardLimit(v int64) *Ulimit { + s.HardLimit = &v + return s +} + +// SetName sets the Name field's value. +func (s *Ulimit) SetName(v string) *Ulimit { + s.Name = &v + return s +} + +// SetSoftLimit sets the SoftLimit field's value. +func (s *Ulimit) SetSoftLimit(v int64) *Ulimit { + s.SoftLimit = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateComputeEnvironmentRequest +type UpdateComputeEnvironmentInput struct { + _ struct{} `type:"structure"` + + // The name or full Amazon Resource Name (ARN) of the compute environment to + // update. + // + // ComputeEnvironment is a required field + ComputeEnvironment *string `locationName:"computeEnvironment" type:"string" required:"true"` + + // Details of the compute resources managed by the compute environment. Required + // for a managed compute environment. + ComputeResources *ComputeResourceUpdate `locationName:"computeResources" type:"structure"` + + // The name or full Amazon Resource Name (ARN) of the IAM role that allows AWS + // Batch to make calls to ECS, Auto Scaling, and EC2 on your behalf. + ServiceRole *string `locationName:"serviceRole" type:"string"` + + // The state of the compute environment. Compute environments in the ENABLED + // state can accept jobs from a queue and scale in or out automatically based + // on the workload demand of its associated queues. + State *string `locationName:"state" type:"string" enum:"CEState"` +} + +// String returns the string representation +func (s UpdateComputeEnvironmentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateComputeEnvironmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateComputeEnvironmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateComputeEnvironmentInput"} + if s.ComputeEnvironment == nil { + invalidParams.Add(request.NewErrParamRequired("ComputeEnvironment")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetComputeEnvironment sets the ComputeEnvironment field's value. +func (s *UpdateComputeEnvironmentInput) SetComputeEnvironment(v string) *UpdateComputeEnvironmentInput { + s.ComputeEnvironment = &v + return s +} + +// SetComputeResources sets the ComputeResources field's value. +func (s *UpdateComputeEnvironmentInput) SetComputeResources(v *ComputeResourceUpdate) *UpdateComputeEnvironmentInput { + s.ComputeResources = v + return s +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *UpdateComputeEnvironmentInput) SetServiceRole(v string) *UpdateComputeEnvironmentInput { + s.ServiceRole = &v + return s +} + +// SetState sets the State field's value. +func (s *UpdateComputeEnvironmentInput) SetState(v string) *UpdateComputeEnvironmentInput { + s.State = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateComputeEnvironmentResponse +type UpdateComputeEnvironmentOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the compute environment. + ComputeEnvironmentArn *string `locationName:"computeEnvironmentArn" type:"string"` + + // The name of compute environment. + ComputeEnvironmentName *string `locationName:"computeEnvironmentName" type:"string"` +} + +// String returns the string representation +func (s UpdateComputeEnvironmentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateComputeEnvironmentOutput) GoString() string { + return s.String() +} + +// SetComputeEnvironmentArn sets the ComputeEnvironmentArn field's value. +func (s *UpdateComputeEnvironmentOutput) SetComputeEnvironmentArn(v string) *UpdateComputeEnvironmentOutput { + s.ComputeEnvironmentArn = &v + return s +} + +// SetComputeEnvironmentName sets the ComputeEnvironmentName field's value. +func (s *UpdateComputeEnvironmentOutput) SetComputeEnvironmentName(v string) *UpdateComputeEnvironmentOutput { + s.ComputeEnvironmentName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueueRequest +type UpdateJobQueueInput struct { + _ struct{} `type:"structure"` + + // Details the set of compute environments mapped to a job queue and their order + // relative to each other. This is one of the parameters used by the job scheduler + // to determine which compute environment should execute a given job. + ComputeEnvironmentOrder []*ComputeEnvironmentOrder `locationName:"computeEnvironmentOrder" type:"list"` + + // The name or the Amazon Resource Name (ARN) of the job queue. + // + // JobQueue is a required field + JobQueue *string `locationName:"jobQueue" type:"string" required:"true"` + + // The priority of the job queue. Job queues with a higher priority (or a lower + // integer value for the priority parameter) are evaluated first when associated + // with same compute environment. Priority is determined in ascending order, + // for example, a job queue with a priority value of 1 is given scheduling preference + // over a job queue with a priority value of 10. + Priority *int64 `locationName:"priority" type:"integer"` + + // Describes the queue's ability to accept new jobs. + State *string `locationName:"state" type:"string" enum:"JQState"` +} + +// String returns the string representation +func (s UpdateJobQueueInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateJobQueueInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateJobQueueInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateJobQueueInput"} + if s.JobQueue == nil { + invalidParams.Add(request.NewErrParamRequired("JobQueue")) + } + if s.ComputeEnvironmentOrder != nil { + for i, v := range s.ComputeEnvironmentOrder { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ComputeEnvironmentOrder", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetComputeEnvironmentOrder sets the ComputeEnvironmentOrder field's value. +func (s *UpdateJobQueueInput) SetComputeEnvironmentOrder(v []*ComputeEnvironmentOrder) *UpdateJobQueueInput { + s.ComputeEnvironmentOrder = v + return s +} + +// SetJobQueue sets the JobQueue field's value. +func (s *UpdateJobQueueInput) SetJobQueue(v string) *UpdateJobQueueInput { + s.JobQueue = &v + return s +} + +// SetPriority sets the Priority field's value. +func (s *UpdateJobQueueInput) SetPriority(v int64) *UpdateJobQueueInput { + s.Priority = &v + return s +} + +// SetState sets the State field's value. +func (s *UpdateJobQueueInput) SetState(v string) *UpdateJobQueueInput { + s.State = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueueResponse +type UpdateJobQueueOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the job queue. + JobQueueArn *string `locationName:"jobQueueArn" type:"string"` + + // The name of the job queue. + JobQueueName *string `locationName:"jobQueueName" type:"string"` +} + +// String returns the string representation +func (s UpdateJobQueueOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateJobQueueOutput) GoString() string { + return s.String() +} + +// SetJobQueueArn sets the JobQueueArn field's value. +func (s *UpdateJobQueueOutput) SetJobQueueArn(v string) *UpdateJobQueueOutput { + s.JobQueueArn = &v + return s +} + +// SetJobQueueName sets the JobQueueName field's value. +func (s *UpdateJobQueueOutput) SetJobQueueName(v string) *UpdateJobQueueOutput { + s.JobQueueName = &v + return s +} + +// A data volume used in a job's container properties. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/Volume +type Volume struct { + _ struct{} `type:"structure"` + + // The contents of the host parameter determine whether your data volume persists + // on the host container instance and where it is stored. If the host parameter + // is empty, then the Docker daemon assigns a host path for your data volume, + // but the data is not guaranteed to persist after the containers associated + // with it stop running. + Host *Host `locationName:"host" type:"structure"` + + // The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, + // hyphens, and underscores are allowed. This name is referenced in the sourceVolume + // parameter of container definition mountPoints. + Name *string `locationName:"name" type:"string"` +} + +// String returns the string representation +func (s Volume) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Volume) GoString() string { + return s.String() +} + +// SetHost sets the Host field's value. +func (s *Volume) SetHost(v *Host) *Volume { + s.Host = v + return s +} + +// SetName sets the Name field's value. +func (s *Volume) SetName(v string) *Volume { + s.Name = &v + return s +} + +const ( + // CEStateEnabled is a CEState enum value + CEStateEnabled = "ENABLED" + + // CEStateDisabled is a CEState enum value + CEStateDisabled = "DISABLED" +) + +const ( + // CEStatusCreating is a CEStatus enum value + CEStatusCreating = "CREATING" + + // CEStatusUpdating is a CEStatus enum value + CEStatusUpdating = "UPDATING" + + // CEStatusDeleting is a CEStatus enum value + CEStatusDeleting = "DELETING" + + // CEStatusDeleted is a CEStatus enum value + CEStatusDeleted = "DELETED" + + // CEStatusValid is a CEStatus enum value + CEStatusValid = "VALID" + + // CEStatusInvalid is a CEStatus enum value + CEStatusInvalid = "INVALID" +) + +const ( + // CETypeManaged is a CEType enum value + CETypeManaged = "MANAGED" + + // CETypeUnmanaged is a CEType enum value + CETypeUnmanaged = "UNMANAGED" +) + +const ( + // CRTypeEc2 is a CRType enum value + CRTypeEc2 = "EC2" + + // CRTypeSpot is a CRType enum value + CRTypeSpot = "SPOT" +) + +const ( + // JQStateEnabled is a JQState enum value + JQStateEnabled = "ENABLED" + + // JQStateDisabled is a JQState enum value + JQStateDisabled = "DISABLED" +) + +const ( + // JQStatusCreating is a JQStatus enum value + JQStatusCreating = "CREATING" + + // JQStatusUpdating is a JQStatus enum value + JQStatusUpdating = "UPDATING" + + // JQStatusDeleting is a JQStatus enum value + JQStatusDeleting = "DELETING" + + // JQStatusDeleted is a JQStatus enum value + JQStatusDeleted = "DELETED" + + // JQStatusValid is a JQStatus enum value + JQStatusValid = "VALID" + + // JQStatusInvalid is a JQStatus enum value + JQStatusInvalid = "INVALID" +) + +const ( + // JobDefinitionTypeContainer is a JobDefinitionType enum value + JobDefinitionTypeContainer = "container" +) + +const ( + // JobStatusSubmitted is a JobStatus enum value + JobStatusSubmitted = "SUBMITTED" + + // JobStatusPending is a JobStatus enum value + JobStatusPending = "PENDING" + + // JobStatusRunnable is a JobStatus enum value + JobStatusRunnable = "RUNNABLE" + + // JobStatusStarting is a JobStatus enum value + JobStatusStarting = "STARTING" + + // JobStatusRunning is a JobStatus enum value + JobStatusRunning = "RUNNING" + + // JobStatusSucceeded is a JobStatus enum value + JobStatusSucceeded = "SUCCEEDED" + + // JobStatusFailed is a JobStatus enum value + JobStatusFailed = "FAILED" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/batch/batchiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/batch/batchiface/interface.go new file mode 100644 index 000000000..395a13db3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/batch/batchiface/interface.go @@ -0,0 +1,127 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package batchiface provides an interface to enable mocking the AWS Batch service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package batchiface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/batch" +) + +// BatchAPI provides an interface to enable mocking the +// batch.Batch service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS Batch. +// func myFunc(svc batchiface.BatchAPI) bool { +// // Make svc.CancelJob request +// } +// +// func main() { +// sess := session.New() +// svc := batch.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockBatchClient struct { +// batchiface.BatchAPI +// } +// func (m *mockBatchClient) CancelJob(input *batch.CancelJobInput) (*batch.CancelJobOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockBatchClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type BatchAPI interface { + CancelJobRequest(*batch.CancelJobInput) (*request.Request, *batch.CancelJobOutput) + + CancelJob(*batch.CancelJobInput) (*batch.CancelJobOutput, error) + + CreateComputeEnvironmentRequest(*batch.CreateComputeEnvironmentInput) (*request.Request, *batch.CreateComputeEnvironmentOutput) + + CreateComputeEnvironment(*batch.CreateComputeEnvironmentInput) (*batch.CreateComputeEnvironmentOutput, error) + + CreateJobQueueRequest(*batch.CreateJobQueueInput) (*request.Request, *batch.CreateJobQueueOutput) + + CreateJobQueue(*batch.CreateJobQueueInput) (*batch.CreateJobQueueOutput, error) + + DeleteComputeEnvironmentRequest(*batch.DeleteComputeEnvironmentInput) (*request.Request, *batch.DeleteComputeEnvironmentOutput) + + DeleteComputeEnvironment(*batch.DeleteComputeEnvironmentInput) (*batch.DeleteComputeEnvironmentOutput, error) + + DeleteJobQueueRequest(*batch.DeleteJobQueueInput) (*request.Request, *batch.DeleteJobQueueOutput) + + DeleteJobQueue(*batch.DeleteJobQueueInput) (*batch.DeleteJobQueueOutput, error) + + DeregisterJobDefinitionRequest(*batch.DeregisterJobDefinitionInput) (*request.Request, *batch.DeregisterJobDefinitionOutput) + + DeregisterJobDefinition(*batch.DeregisterJobDefinitionInput) (*batch.DeregisterJobDefinitionOutput, error) + + DescribeComputeEnvironmentsRequest(*batch.DescribeComputeEnvironmentsInput) (*request.Request, *batch.DescribeComputeEnvironmentsOutput) + + DescribeComputeEnvironments(*batch.DescribeComputeEnvironmentsInput) (*batch.DescribeComputeEnvironmentsOutput, error) + + DescribeJobDefinitionsRequest(*batch.DescribeJobDefinitionsInput) (*request.Request, *batch.DescribeJobDefinitionsOutput) + + DescribeJobDefinitions(*batch.DescribeJobDefinitionsInput) (*batch.DescribeJobDefinitionsOutput, error) + + DescribeJobQueuesRequest(*batch.DescribeJobQueuesInput) (*request.Request, *batch.DescribeJobQueuesOutput) + + DescribeJobQueues(*batch.DescribeJobQueuesInput) (*batch.DescribeJobQueuesOutput, error) + + DescribeJobsRequest(*batch.DescribeJobsInput) (*request.Request, *batch.DescribeJobsOutput) + + DescribeJobs(*batch.DescribeJobsInput) (*batch.DescribeJobsOutput, error) + + ListJobsRequest(*batch.ListJobsInput) (*request.Request, *batch.ListJobsOutput) + + ListJobs(*batch.ListJobsInput) (*batch.ListJobsOutput, error) + + RegisterJobDefinitionRequest(*batch.RegisterJobDefinitionInput) (*request.Request, *batch.RegisterJobDefinitionOutput) + + RegisterJobDefinition(*batch.RegisterJobDefinitionInput) (*batch.RegisterJobDefinitionOutput, error) + + SubmitJobRequest(*batch.SubmitJobInput) (*request.Request, *batch.SubmitJobOutput) + + SubmitJob(*batch.SubmitJobInput) (*batch.SubmitJobOutput, error) + + TerminateJobRequest(*batch.TerminateJobInput) (*request.Request, *batch.TerminateJobOutput) + + TerminateJob(*batch.TerminateJobInput) (*batch.TerminateJobOutput, error) + + UpdateComputeEnvironmentRequest(*batch.UpdateComputeEnvironmentInput) (*request.Request, *batch.UpdateComputeEnvironmentOutput) + + UpdateComputeEnvironment(*batch.UpdateComputeEnvironmentInput) (*batch.UpdateComputeEnvironmentOutput, error) + + UpdateJobQueueRequest(*batch.UpdateJobQueueInput) (*request.Request, *batch.UpdateJobQueueOutput) + + UpdateJobQueue(*batch.UpdateJobQueueInput) (*batch.UpdateJobQueueOutput, error) +} + +var _ BatchAPI = (*batch.Batch)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/batch/errors.go b/vendor/github.com/aws/aws-sdk-go/service/batch/errors.go new file mode 100644 index 000000000..b5e9a2b51 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/batch/errors.go @@ -0,0 +1,20 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package batch + +const ( + + // ErrCodeClientException for service response error code + // "ClientException". + // + // These errors are usually caused by a client action, such as using an action + // or resource on behalf of a user that doesn't have permission to use the action + // or resource, or specifying an identifier that is not valid. + ErrCodeClientException = "ClientException" + + // ErrCodeServerException for service response error code + // "ServerException". + // + // These errors are usually caused by a server issue. + ErrCodeServerException = "ServerException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/batch/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/batch/examples_test.go new file mode 100644 index 000000000..e1bb5dd07 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/batch/examples_test.go @@ -0,0 +1,508 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package batch_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/batch" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExampleBatch_CancelJob() { + sess := session.Must(session.NewSession()) + + svc := batch.New(sess) + + params := &batch.CancelJobInput{ + JobId: aws.String("String"), // Required + Reason: aws.String("String"), // Required + } + resp, err := svc.CancelJob(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBatch_CreateComputeEnvironment() { + sess := session.Must(session.NewSession()) + + svc := batch.New(sess) + + params := &batch.CreateComputeEnvironmentInput{ + ComputeEnvironmentName: aws.String("String"), // Required + ServiceRole: aws.String("String"), // Required + Type: aws.String("CEType"), // Required + ComputeResources: &batch.ComputeResource{ + InstanceRole: aws.String("String"), // Required + InstanceTypes: []*string{ // Required + aws.String("String"), // Required + // More values... + }, + MaxvCpus: aws.Int64(1), // Required + MinvCpus: aws.Int64(1), // Required + SecurityGroupIds: []*string{ // Required + aws.String("String"), // Required + // More values... + }, + Subnets: []*string{ // Required + aws.String("String"), // Required + // More values... + }, + Type: aws.String("CRType"), // Required + BidPercentage: aws.Int64(1), + DesiredvCpus: aws.Int64(1), + Ec2KeyPair: aws.String("String"), + SpotIamFleetRole: aws.String("String"), + Tags: map[string]*string{ + "Key": aws.String("String"), // Required + // More values... + }, + }, + State: aws.String("CEState"), + } + resp, err := svc.CreateComputeEnvironment(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBatch_CreateJobQueue() { + sess := session.Must(session.NewSession()) + + svc := batch.New(sess) + + params := &batch.CreateJobQueueInput{ + ComputeEnvironmentOrder: []*batch.ComputeEnvironmentOrder{ // Required + { // Required + ComputeEnvironment: aws.String("String"), // Required + Order: aws.Int64(1), // Required + }, + // More values... + }, + JobQueueName: aws.String("String"), // Required + Priority: aws.Int64(1), // Required + State: aws.String("JQState"), + } + resp, err := svc.CreateJobQueue(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBatch_DeleteComputeEnvironment() { + sess := session.Must(session.NewSession()) + + svc := batch.New(sess) + + params := &batch.DeleteComputeEnvironmentInput{ + ComputeEnvironment: aws.String("String"), // Required + } + resp, err := svc.DeleteComputeEnvironment(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBatch_DeleteJobQueue() { + sess := session.Must(session.NewSession()) + + svc := batch.New(sess) + + params := &batch.DeleteJobQueueInput{ + JobQueue: aws.String("String"), // Required + } + resp, err := svc.DeleteJobQueue(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBatch_DeregisterJobDefinition() { + sess := session.Must(session.NewSession()) + + svc := batch.New(sess) + + params := &batch.DeregisterJobDefinitionInput{ + JobDefinition: aws.String("String"), // Required + } + resp, err := svc.DeregisterJobDefinition(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBatch_DescribeComputeEnvironments() { + sess := session.Must(session.NewSession()) + + svc := batch.New(sess) + + params := &batch.DescribeComputeEnvironmentsInput{ + ComputeEnvironments: []*string{ + aws.String("String"), // Required + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("String"), + } + resp, err := svc.DescribeComputeEnvironments(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBatch_DescribeJobDefinitions() { + sess := session.Must(session.NewSession()) + + svc := batch.New(sess) + + params := &batch.DescribeJobDefinitionsInput{ + JobDefinitionName: aws.String("String"), + JobDefinitions: []*string{ + aws.String("String"), // Required + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("String"), + Status: aws.String("String"), + } + resp, err := svc.DescribeJobDefinitions(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBatch_DescribeJobQueues() { + sess := session.Must(session.NewSession()) + + svc := batch.New(sess) + + params := &batch.DescribeJobQueuesInput{ + JobQueues: []*string{ + aws.String("String"), // Required + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("String"), + } + resp, err := svc.DescribeJobQueues(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBatch_DescribeJobs() { + sess := session.Must(session.NewSession()) + + svc := batch.New(sess) + + params := &batch.DescribeJobsInput{ + Jobs: []*string{ // Required + aws.String("String"), // Required + // More values... + }, + } + resp, err := svc.DescribeJobs(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBatch_ListJobs() { + sess := session.Must(session.NewSession()) + + svc := batch.New(sess) + + params := &batch.ListJobsInput{ + JobQueue: aws.String("String"), // Required + JobStatus: aws.String("JobStatus"), + MaxResults: aws.Int64(1), + NextToken: aws.String("String"), + } + resp, err := svc.ListJobs(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBatch_RegisterJobDefinition() { + sess := session.Must(session.NewSession()) + + svc := batch.New(sess) + + params := &batch.RegisterJobDefinitionInput{ + JobDefinitionName: aws.String("String"), // Required + Type: aws.String("JobDefinitionType"), // Required + ContainerProperties: &batch.ContainerProperties{ + Image: aws.String("String"), // Required + Memory: aws.Int64(1), // Required + Vcpus: aws.Int64(1), // Required + Command: []*string{ + aws.String("String"), // Required + // More values... + }, + Environment: []*batch.KeyValuePair{ + { // Required + Name: aws.String("String"), + Value: aws.String("String"), + }, + // More values... + }, + JobRoleArn: aws.String("String"), + MountPoints: []*batch.MountPoint{ + { // Required + ContainerPath: aws.String("String"), + ReadOnly: aws.Bool(true), + SourceVolume: aws.String("String"), + }, + // More values... + }, + Privileged: aws.Bool(true), + ReadonlyRootFilesystem: aws.Bool(true), + Ulimits: []*batch.Ulimit{ + { // Required + HardLimit: aws.Int64(1), // Required + Name: aws.String("String"), // Required + SoftLimit: aws.Int64(1), // Required + }, + // More values... + }, + User: aws.String("String"), + Volumes: []*batch.Volume{ + { // Required + Host: &batch.Host{ + SourcePath: aws.String("String"), + }, + Name: aws.String("String"), + }, + // More values... + }, + }, + Parameters: map[string]*string{ + "Key": aws.String("String"), // Required + // More values... + }, + } + resp, err := svc.RegisterJobDefinition(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBatch_SubmitJob() { + sess := session.Must(session.NewSession()) + + svc := batch.New(sess) + + params := &batch.SubmitJobInput{ + JobDefinition: aws.String("String"), // Required + JobName: aws.String("String"), // Required + JobQueue: aws.String("String"), // Required + ContainerOverrides: &batch.ContainerOverrides{ + Command: []*string{ + aws.String("String"), // Required + // More values... + }, + Environment: []*batch.KeyValuePair{ + { // Required + Name: aws.String("String"), + Value: aws.String("String"), + }, + // More values... + }, + Memory: aws.Int64(1), + Vcpus: aws.Int64(1), + }, + DependsOn: []*batch.JobDependency{ + { // Required + JobId: aws.String("String"), + }, + // More values... + }, + Parameters: map[string]*string{ + "Key": aws.String("String"), // Required + // More values... + }, + } + resp, err := svc.SubmitJob(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBatch_TerminateJob() { + sess := session.Must(session.NewSession()) + + svc := batch.New(sess) + + params := &batch.TerminateJobInput{ + JobId: aws.String("String"), // Required + Reason: aws.String("String"), // Required + } + resp, err := svc.TerminateJob(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBatch_UpdateComputeEnvironment() { + sess := session.Must(session.NewSession()) + + svc := batch.New(sess) + + params := &batch.UpdateComputeEnvironmentInput{ + ComputeEnvironment: aws.String("String"), // Required + ComputeResources: &batch.ComputeResourceUpdate{ + DesiredvCpus: aws.Int64(1), + MaxvCpus: aws.Int64(1), + MinvCpus: aws.Int64(1), + }, + ServiceRole: aws.String("String"), + State: aws.String("CEState"), + } + resp, err := svc.UpdateComputeEnvironment(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBatch_UpdateJobQueue() { + sess := session.Must(session.NewSession()) + + svc := batch.New(sess) + + params := &batch.UpdateJobQueueInput{ + JobQueue: aws.String("String"), // Required + ComputeEnvironmentOrder: []*batch.ComputeEnvironmentOrder{ + { // Required + ComputeEnvironment: aws.String("String"), // Required + Order: aws.Int64(1), // Required + }, + // More values... + }, + Priority: aws.Int64(1), + State: aws.String("JQState"), + } + resp, err := svc.UpdateJobQueue(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/batch/service.go b/vendor/github.com/aws/aws-sdk-go/service/batch/service.go new file mode 100644 index 000000000..691452c8c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/batch/service.go @@ -0,0 +1,108 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package batch + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +// AWS Batch enables you to run batch computing workloads on the AWS Cloud. +// Batch computing is a common way for developers, scientists, and engineers +// to access large amounts of compute resources, and AWS Batch removes the undifferentiated +// heavy lifting of configuring and managing the required infrastructure. AWS +// Batch will be familiar to users of traditional batch computing software. +// This service can efficiently provision resources in response to jobs submitted +// in order to eliminate capacity constraints, reduce compute costs, and deliver +// results quickly. +// +// As a fully managed service, AWS Batch enables developers, scientists, and +// engineers to run batch computing workloads of any scale. AWS Batch automatically +// provisions compute resources and optimizes the workload distribution based +// on the quantity and scale of the workloads. With AWS Batch, there is no need +// to install or manage batch computing software, which allows you to focus +// on analyzing results and solving problems. AWS Batch reduces operational +// complexities, saves time, and reduces costs, which makes it easy for developers, +// scientists, and engineers to run their batch jobs in the AWS Cloud. +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10 +type Batch struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "batch" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the Batch client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a Batch client from just a session. +// svc := batch.New(mySession) +// +// // Create a Batch client with additional configuration +// svc := batch.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *Batch { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Batch { + svc := &Batch{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2016-08-10", + JSONVersion: "1.1", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a Batch operation and runs any +// custom request initialization. +func (c *Batch) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/budgets/api.go b/vendor/github.com/aws/aws-sdk-go/service/budgets/api.go new file mode 100644 index 000000000..c7eb9e792 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/budgets/api.go @@ -0,0 +1,2931 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package budgets provides a client for AWS Budgets. +package budgets + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opCreateBudget = "CreateBudget" + +// CreateBudgetRequest generates a "aws/request.Request" representing the +// client's request for the CreateBudget operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateBudget for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateBudget method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateBudgetRequest method. +// req, resp := client.CreateBudgetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Budgets) CreateBudgetRequest(input *CreateBudgetInput) (req *request.Request, output *CreateBudgetOutput) { + op := &request.Operation{ + Name: opCreateBudget, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateBudgetInput{} + } + + output = &CreateBudgetOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateBudget API operation for AWS Budgets. +// +// Create a new budget +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Budgets's +// API operation CreateBudget for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown if any request is given an invalid parameter. E.g., +// if a required Date field is null. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown on an unknown internal failure. +// +// * ErrCodeCreationLimitExceededException "CreationLimitExceededException" +// The exception is thrown when customer tries to create a record (e.g. budget), +// but the number this record already exceeds the limitation. +// +// * ErrCodeDuplicateRecordException "DuplicateRecordException" +// The exception is thrown when customer tries to create a record (e.g. budget) +// that already exists. +// +func (c *Budgets) CreateBudget(input *CreateBudgetInput) (*CreateBudgetOutput, error) { + req, out := c.CreateBudgetRequest(input) + err := req.Send() + return out, err +} + +const opCreateNotification = "CreateNotification" + +// CreateNotificationRequest generates a "aws/request.Request" representing the +// client's request for the CreateNotification operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateNotification for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateNotification method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateNotificationRequest method. +// req, resp := client.CreateNotificationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Budgets) CreateNotificationRequest(input *CreateNotificationInput) (req *request.Request, output *CreateNotificationOutput) { + op := &request.Operation{ + Name: opCreateNotification, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateNotificationInput{} + } + + output = &CreateNotificationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateNotification API operation for AWS Budgets. +// +// Create a new Notification with subscribers for a budget +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Budgets's +// API operation CreateNotification for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown on an unknown internal failure. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown if any request is given an invalid parameter. E.g., +// if a required Date field is null. +// +// * ErrCodeNotFoundException "NotFoundException" +// This exception is thrown if a requested entity is not found. E.g., if a budget +// id doesn't exist for an account ID. +// +// * ErrCodeCreationLimitExceededException "CreationLimitExceededException" +// The exception is thrown when customer tries to create a record (e.g. budget), +// but the number this record already exceeds the limitation. +// +// * ErrCodeDuplicateRecordException "DuplicateRecordException" +// The exception is thrown when customer tries to create a record (e.g. budget) +// that already exists. +// +func (c *Budgets) CreateNotification(input *CreateNotificationInput) (*CreateNotificationOutput, error) { + req, out := c.CreateNotificationRequest(input) + err := req.Send() + return out, err +} + +const opCreateSubscriber = "CreateSubscriber" + +// CreateSubscriberRequest generates a "aws/request.Request" representing the +// client's request for the CreateSubscriber operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateSubscriber for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateSubscriber method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateSubscriberRequest method. +// req, resp := client.CreateSubscriberRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Budgets) CreateSubscriberRequest(input *CreateSubscriberInput) (req *request.Request, output *CreateSubscriberOutput) { + op := &request.Operation{ + Name: opCreateSubscriber, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateSubscriberInput{} + } + + output = &CreateSubscriberOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateSubscriber API operation for AWS Budgets. +// +// Create a new Subscriber for a notification +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Budgets's +// API operation CreateSubscriber for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown on an unknown internal failure. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown if any request is given an invalid parameter. E.g., +// if a required Date field is null. +// +// * ErrCodeCreationLimitExceededException "CreationLimitExceededException" +// The exception is thrown when customer tries to create a record (e.g. budget), +// but the number this record already exceeds the limitation. +// +// * ErrCodeDuplicateRecordException "DuplicateRecordException" +// The exception is thrown when customer tries to create a record (e.g. budget) +// that already exists. +// +// * ErrCodeNotFoundException "NotFoundException" +// This exception is thrown if a requested entity is not found. E.g., if a budget +// id doesn't exist for an account ID. +// +func (c *Budgets) CreateSubscriber(input *CreateSubscriberInput) (*CreateSubscriberOutput, error) { + req, out := c.CreateSubscriberRequest(input) + err := req.Send() + return out, err +} + +const opDeleteBudget = "DeleteBudget" + +// DeleteBudgetRequest generates a "aws/request.Request" representing the +// client's request for the DeleteBudget operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteBudget for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteBudget method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteBudgetRequest method. +// req, resp := client.DeleteBudgetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Budgets) DeleteBudgetRequest(input *DeleteBudgetInput) (req *request.Request, output *DeleteBudgetOutput) { + op := &request.Operation{ + Name: opDeleteBudget, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteBudgetInput{} + } + + output = &DeleteBudgetOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteBudget API operation for AWS Budgets. +// +// Delete a budget and related notifications +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Budgets's +// API operation DeleteBudget for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown on an unknown internal failure. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown if any request is given an invalid parameter. E.g., +// if a required Date field is null. +// +// * ErrCodeNotFoundException "NotFoundException" +// This exception is thrown if a requested entity is not found. E.g., if a budget +// id doesn't exist for an account ID. +// +func (c *Budgets) DeleteBudget(input *DeleteBudgetInput) (*DeleteBudgetOutput, error) { + req, out := c.DeleteBudgetRequest(input) + err := req.Send() + return out, err +} + +const opDeleteNotification = "DeleteNotification" + +// DeleteNotificationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteNotification operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteNotification for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteNotification method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteNotificationRequest method. +// req, resp := client.DeleteNotificationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Budgets) DeleteNotificationRequest(input *DeleteNotificationInput) (req *request.Request, output *DeleteNotificationOutput) { + op := &request.Operation{ + Name: opDeleteNotification, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteNotificationInput{} + } + + output = &DeleteNotificationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteNotification API operation for AWS Budgets. +// +// Delete a notification and related subscribers +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Budgets's +// API operation DeleteNotification for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown if any request is given an invalid parameter. E.g., +// if a required Date field is null. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown on an unknown internal failure. +// +// * ErrCodeNotFoundException "NotFoundException" +// This exception is thrown if a requested entity is not found. E.g., if a budget +// id doesn't exist for an account ID. +// +func (c *Budgets) DeleteNotification(input *DeleteNotificationInput) (*DeleteNotificationOutput, error) { + req, out := c.DeleteNotificationRequest(input) + err := req.Send() + return out, err +} + +const opDeleteSubscriber = "DeleteSubscriber" + +// DeleteSubscriberRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSubscriber operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteSubscriber for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteSubscriber method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteSubscriberRequest method. +// req, resp := client.DeleteSubscriberRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Budgets) DeleteSubscriberRequest(input *DeleteSubscriberInput) (req *request.Request, output *DeleteSubscriberOutput) { + op := &request.Operation{ + Name: opDeleteSubscriber, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteSubscriberInput{} + } + + output = &DeleteSubscriberOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteSubscriber API operation for AWS Budgets. +// +// Delete a Subscriber for a notification +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Budgets's +// API operation DeleteSubscriber for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown on an unknown internal failure. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown if any request is given an invalid parameter. E.g., +// if a required Date field is null. +// +// * ErrCodeNotFoundException "NotFoundException" +// This exception is thrown if a requested entity is not found. E.g., if a budget +// id doesn't exist for an account ID. +// +func (c *Budgets) DeleteSubscriber(input *DeleteSubscriberInput) (*DeleteSubscriberOutput, error) { + req, out := c.DeleteSubscriberRequest(input) + err := req.Send() + return out, err +} + +const opDescribeBudget = "DescribeBudget" + +// DescribeBudgetRequest generates a "aws/request.Request" representing the +// client's request for the DescribeBudget operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeBudget for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeBudget method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeBudgetRequest method. +// req, resp := client.DescribeBudgetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Budgets) DescribeBudgetRequest(input *DescribeBudgetInput) (req *request.Request, output *DescribeBudgetOutput) { + op := &request.Operation{ + Name: opDescribeBudget, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeBudgetInput{} + } + + output = &DescribeBudgetOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeBudget API operation for AWS Budgets. +// +// Get a single budget +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Budgets's +// API operation DescribeBudget for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown on an unknown internal failure. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown if any request is given an invalid parameter. E.g., +// if a required Date field is null. +// +// * ErrCodeNotFoundException "NotFoundException" +// This exception is thrown if a requested entity is not found. E.g., if a budget +// id doesn't exist for an account ID. +// +func (c *Budgets) DescribeBudget(input *DescribeBudgetInput) (*DescribeBudgetOutput, error) { + req, out := c.DescribeBudgetRequest(input) + err := req.Send() + return out, err +} + +const opDescribeBudgets = "DescribeBudgets" + +// DescribeBudgetsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeBudgets operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeBudgets for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeBudgets method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeBudgetsRequest method. +// req, resp := client.DescribeBudgetsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Budgets) DescribeBudgetsRequest(input *DescribeBudgetsInput) (req *request.Request, output *DescribeBudgetsOutput) { + op := &request.Operation{ + Name: opDescribeBudgets, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeBudgetsInput{} + } + + output = &DescribeBudgetsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeBudgets API operation for AWS Budgets. +// +// Get all budgets for an account +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Budgets's +// API operation DescribeBudgets for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown on an unknown internal failure. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown if any request is given an invalid parameter. E.g., +// if a required Date field is null. +// +// * ErrCodeNotFoundException "NotFoundException" +// This exception is thrown if a requested entity is not found. E.g., if a budget +// id doesn't exist for an account ID. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// This exception is thrown if paging token signature didn't match the token, +// or the paging token isn't for this request +// +// * ErrCodeExpiredNextTokenException "ExpiredNextTokenException" +// This exception is thrown if the paging token is expired - past its TTL +// +func (c *Budgets) DescribeBudgets(input *DescribeBudgetsInput) (*DescribeBudgetsOutput, error) { + req, out := c.DescribeBudgetsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeNotificationsForBudget = "DescribeNotificationsForBudget" + +// DescribeNotificationsForBudgetRequest generates a "aws/request.Request" representing the +// client's request for the DescribeNotificationsForBudget operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeNotificationsForBudget for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeNotificationsForBudget method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeNotificationsForBudgetRequest method. +// req, resp := client.DescribeNotificationsForBudgetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Budgets) DescribeNotificationsForBudgetRequest(input *DescribeNotificationsForBudgetInput) (req *request.Request, output *DescribeNotificationsForBudgetOutput) { + op := &request.Operation{ + Name: opDescribeNotificationsForBudget, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeNotificationsForBudgetInput{} + } + + output = &DescribeNotificationsForBudgetOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeNotificationsForBudget API operation for AWS Budgets. +// +// Get notifications of a budget +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Budgets's +// API operation DescribeNotificationsForBudget for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown on an unknown internal failure. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown if any request is given an invalid parameter. E.g., +// if a required Date field is null. +// +// * ErrCodeNotFoundException "NotFoundException" +// This exception is thrown if a requested entity is not found. E.g., if a budget +// id doesn't exist for an account ID. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// This exception is thrown if paging token signature didn't match the token, +// or the paging token isn't for this request +// +// * ErrCodeExpiredNextTokenException "ExpiredNextTokenException" +// This exception is thrown if the paging token is expired - past its TTL +// +func (c *Budgets) DescribeNotificationsForBudget(input *DescribeNotificationsForBudgetInput) (*DescribeNotificationsForBudgetOutput, error) { + req, out := c.DescribeNotificationsForBudgetRequest(input) + err := req.Send() + return out, err +} + +const opDescribeSubscribersForNotification = "DescribeSubscribersForNotification" + +// DescribeSubscribersForNotificationRequest generates a "aws/request.Request" representing the +// client's request for the DescribeSubscribersForNotification operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeSubscribersForNotification for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeSubscribersForNotification method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeSubscribersForNotificationRequest method. +// req, resp := client.DescribeSubscribersForNotificationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Budgets) DescribeSubscribersForNotificationRequest(input *DescribeSubscribersForNotificationInput) (req *request.Request, output *DescribeSubscribersForNotificationOutput) { + op := &request.Operation{ + Name: opDescribeSubscribersForNotification, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeSubscribersForNotificationInput{} + } + + output = &DescribeSubscribersForNotificationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeSubscribersForNotification API operation for AWS Budgets. +// +// Get subscribers of a notification +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Budgets's +// API operation DescribeSubscribersForNotification for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown on an unknown internal failure. +// +// * ErrCodeNotFoundException "NotFoundException" +// This exception is thrown if a requested entity is not found. E.g., if a budget +// id doesn't exist for an account ID. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown if any request is given an invalid parameter. E.g., +// if a required Date field is null. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// This exception is thrown if paging token signature didn't match the token, +// or the paging token isn't for this request +// +// * ErrCodeExpiredNextTokenException "ExpiredNextTokenException" +// This exception is thrown if the paging token is expired - past its TTL +// +func (c *Budgets) DescribeSubscribersForNotification(input *DescribeSubscribersForNotificationInput) (*DescribeSubscribersForNotificationOutput, error) { + req, out := c.DescribeSubscribersForNotificationRequest(input) + err := req.Send() + return out, err +} + +const opUpdateBudget = "UpdateBudget" + +// UpdateBudgetRequest generates a "aws/request.Request" representing the +// client's request for the UpdateBudget operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateBudget for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateBudget method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateBudgetRequest method. +// req, resp := client.UpdateBudgetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Budgets) UpdateBudgetRequest(input *UpdateBudgetInput) (req *request.Request, output *UpdateBudgetOutput) { + op := &request.Operation{ + Name: opUpdateBudget, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateBudgetInput{} + } + + output = &UpdateBudgetOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateBudget API operation for AWS Budgets. +// +// Update the information of a budget already created +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Budgets's +// API operation UpdateBudget for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown on an unknown internal failure. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown if any request is given an invalid parameter. E.g., +// if a required Date field is null. +// +// * ErrCodeNotFoundException "NotFoundException" +// This exception is thrown if a requested entity is not found. E.g., if a budget +// id doesn't exist for an account ID. +// +func (c *Budgets) UpdateBudget(input *UpdateBudgetInput) (*UpdateBudgetOutput, error) { + req, out := c.UpdateBudgetRequest(input) + err := req.Send() + return out, err +} + +const opUpdateNotification = "UpdateNotification" + +// UpdateNotificationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateNotification operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateNotification for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateNotification method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateNotificationRequest method. +// req, resp := client.UpdateNotificationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Budgets) UpdateNotificationRequest(input *UpdateNotificationInput) (req *request.Request, output *UpdateNotificationOutput) { + op := &request.Operation{ + Name: opUpdateNotification, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateNotificationInput{} + } + + output = &UpdateNotificationOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateNotification API operation for AWS Budgets. +// +// Update the information about a notification already created +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Budgets's +// API operation UpdateNotification for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown on an unknown internal failure. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown if any request is given an invalid parameter. E.g., +// if a required Date field is null. +// +// * ErrCodeNotFoundException "NotFoundException" +// This exception is thrown if a requested entity is not found. E.g., if a budget +// id doesn't exist for an account ID. +// +func (c *Budgets) UpdateNotification(input *UpdateNotificationInput) (*UpdateNotificationOutput, error) { + req, out := c.UpdateNotificationRequest(input) + err := req.Send() + return out, err +} + +const opUpdateSubscriber = "UpdateSubscriber" + +// UpdateSubscriberRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSubscriber operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateSubscriber for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateSubscriber method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateSubscriberRequest method. +// req, resp := client.UpdateSubscriberRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Budgets) UpdateSubscriberRequest(input *UpdateSubscriberInput) (req *request.Request, output *UpdateSubscriberOutput) { + op := &request.Operation{ + Name: opUpdateSubscriber, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateSubscriberInput{} + } + + output = &UpdateSubscriberOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSubscriber API operation for AWS Budgets. +// +// Update a subscriber +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Budgets's +// API operation UpdateSubscriber for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown on an unknown internal failure. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown if any request is given an invalid parameter. E.g., +// if a required Date field is null. +// +// * ErrCodeNotFoundException "NotFoundException" +// This exception is thrown if a requested entity is not found. E.g., if a budget +// id doesn't exist for an account ID. +// +func (c *Budgets) UpdateSubscriber(input *UpdateSubscriberInput) (*UpdateSubscriberOutput, error) { + req, out := c.UpdateSubscriberRequest(input) + err := req.Send() + return out, err +} + +// AWS Budget model +type Budget struct { + _ struct{} `type:"structure"` + + // A structure represent either a cost spend or usage spend. Contains an amount + // and a unit. + // + // BudgetLimit is a required field + BudgetLimit *Spend `type:"structure" required:"true"` + + // A string represents the budget name. No ":" character is allowed. + // + // BudgetName is a required field + BudgetName *string `type:"string" required:"true"` + + // The type of a budget. Can be COST or USAGE. + // + // BudgetType is a required field + BudgetType *string `type:"string" required:"true" enum:"BudgetType"` + + // A structure holds the actual and forecasted spend for a budget. + CalculatedSpend *CalculatedSpend `type:"structure"` + + // A map represents the cost filters applied to the budget. + CostFilters map[string][]*string `type:"map"` + + // This includes the options for getting the cost of a budget. + // + // CostTypes is a required field + CostTypes *CostTypes `type:"structure" required:"true"` + + // A time period indicated the start date and end date of a budget. + // + // TimePeriod is a required field + TimePeriod *TimePeriod `type:"structure" required:"true"` + + // The time unit of the budget. e.g. weekly, monthly, etc. + // + // TimeUnit is a required field + TimeUnit *string `type:"string" required:"true" enum:"TimeUnit"` +} + +// String returns the string representation +func (s Budget) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Budget) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Budget) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Budget"} + if s.BudgetLimit == nil { + invalidParams.Add(request.NewErrParamRequired("BudgetLimit")) + } + if s.BudgetName == nil { + invalidParams.Add(request.NewErrParamRequired("BudgetName")) + } + if s.BudgetType == nil { + invalidParams.Add(request.NewErrParamRequired("BudgetType")) + } + if s.CostTypes == nil { + invalidParams.Add(request.NewErrParamRequired("CostTypes")) + } + if s.TimePeriod == nil { + invalidParams.Add(request.NewErrParamRequired("TimePeriod")) + } + if s.TimeUnit == nil { + invalidParams.Add(request.NewErrParamRequired("TimeUnit")) + } + if s.BudgetLimit != nil { + if err := s.BudgetLimit.Validate(); err != nil { + invalidParams.AddNested("BudgetLimit", err.(request.ErrInvalidParams)) + } + } + if s.CalculatedSpend != nil { + if err := s.CalculatedSpend.Validate(); err != nil { + invalidParams.AddNested("CalculatedSpend", err.(request.ErrInvalidParams)) + } + } + if s.CostTypes != nil { + if err := s.CostTypes.Validate(); err != nil { + invalidParams.AddNested("CostTypes", err.(request.ErrInvalidParams)) + } + } + if s.TimePeriod != nil { + if err := s.TimePeriod.Validate(); err != nil { + invalidParams.AddNested("TimePeriod", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBudgetLimit sets the BudgetLimit field's value. +func (s *Budget) SetBudgetLimit(v *Spend) *Budget { + s.BudgetLimit = v + return s +} + +// SetBudgetName sets the BudgetName field's value. +func (s *Budget) SetBudgetName(v string) *Budget { + s.BudgetName = &v + return s +} + +// SetBudgetType sets the BudgetType field's value. +func (s *Budget) SetBudgetType(v string) *Budget { + s.BudgetType = &v + return s +} + +// SetCalculatedSpend sets the CalculatedSpend field's value. +func (s *Budget) SetCalculatedSpend(v *CalculatedSpend) *Budget { + s.CalculatedSpend = v + return s +} + +// SetCostFilters sets the CostFilters field's value. +func (s *Budget) SetCostFilters(v map[string][]*string) *Budget { + s.CostFilters = v + return s +} + +// SetCostTypes sets the CostTypes field's value. +func (s *Budget) SetCostTypes(v *CostTypes) *Budget { + s.CostTypes = v + return s +} + +// SetTimePeriod sets the TimePeriod field's value. +func (s *Budget) SetTimePeriod(v *TimePeriod) *Budget { + s.TimePeriod = v + return s +} + +// SetTimeUnit sets the TimeUnit field's value. +func (s *Budget) SetTimeUnit(v string) *Budget { + s.TimeUnit = &v + return s +} + +// A structure holds the actual and forecasted spend for a budget. +type CalculatedSpend struct { + _ struct{} `type:"structure"` + + // A structure represent either a cost spend or usage spend. Contains an amount + // and a unit. + // + // ActualSpend is a required field + ActualSpend *Spend `type:"structure" required:"true"` + + // A structure represent either a cost spend or usage spend. Contains an amount + // and a unit. + ForecastedSpend *Spend `type:"structure"` +} + +// String returns the string representation +func (s CalculatedSpend) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CalculatedSpend) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CalculatedSpend) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CalculatedSpend"} + if s.ActualSpend == nil { + invalidParams.Add(request.NewErrParamRequired("ActualSpend")) + } + if s.ActualSpend != nil { + if err := s.ActualSpend.Validate(); err != nil { + invalidParams.AddNested("ActualSpend", err.(request.ErrInvalidParams)) + } + } + if s.ForecastedSpend != nil { + if err := s.ForecastedSpend.Validate(); err != nil { + invalidParams.AddNested("ForecastedSpend", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetActualSpend sets the ActualSpend field's value. +func (s *CalculatedSpend) SetActualSpend(v *Spend) *CalculatedSpend { + s.ActualSpend = v + return s +} + +// SetForecastedSpend sets the ForecastedSpend field's value. +func (s *CalculatedSpend) SetForecastedSpend(v *Spend) *CalculatedSpend { + s.ForecastedSpend = v + return s +} + +// This includes the options for getting the cost of a budget. +type CostTypes struct { + _ struct{} `type:"structure"` + + // A generic boolean value. + // + // IncludeSubscription is a required field + IncludeSubscription *bool `type:"boolean" required:"true"` + + // A generic boolean value. + // + // IncludeTax is a required field + IncludeTax *bool `type:"boolean" required:"true"` + + // A generic boolean value. + // + // UseBlended is a required field + UseBlended *bool `type:"boolean" required:"true"` +} + +// String returns the string representation +func (s CostTypes) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CostTypes) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CostTypes) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CostTypes"} + if s.IncludeSubscription == nil { + invalidParams.Add(request.NewErrParamRequired("IncludeSubscription")) + } + if s.IncludeTax == nil { + invalidParams.Add(request.NewErrParamRequired("IncludeTax")) + } + if s.UseBlended == nil { + invalidParams.Add(request.NewErrParamRequired("UseBlended")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIncludeSubscription sets the IncludeSubscription field's value. +func (s *CostTypes) SetIncludeSubscription(v bool) *CostTypes { + s.IncludeSubscription = &v + return s +} + +// SetIncludeTax sets the IncludeTax field's value. +func (s *CostTypes) SetIncludeTax(v bool) *CostTypes { + s.IncludeTax = &v + return s +} + +// SetUseBlended sets the UseBlended field's value. +func (s *CostTypes) SetUseBlended(v bool) *CostTypes { + s.UseBlended = &v + return s +} + +// Request of CreateBudget +type CreateBudgetInput struct { + _ struct{} `type:"structure"` + + // Account Id of the customer. It should be a 12 digit number. + // + // AccountId is a required field + AccountId *string `min:"12" type:"string" required:"true"` + + // AWS Budget model + // + // Budget is a required field + Budget *Budget `type:"structure" required:"true"` + + // A list of Notifications, each with a list of subscribers. + NotificationsWithSubscribers []*NotificationWithSubscribers `type:"list"` +} + +// String returns the string representation +func (s CreateBudgetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateBudgetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateBudgetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateBudgetInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) + } + if s.Budget == nil { + invalidParams.Add(request.NewErrParamRequired("Budget")) + } + if s.Budget != nil { + if err := s.Budget.Validate(); err != nil { + invalidParams.AddNested("Budget", err.(request.ErrInvalidParams)) + } + } + if s.NotificationsWithSubscribers != nil { + for i, v := range s.NotificationsWithSubscribers { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NotificationsWithSubscribers", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *CreateBudgetInput) SetAccountId(v string) *CreateBudgetInput { + s.AccountId = &v + return s +} + +// SetBudget sets the Budget field's value. +func (s *CreateBudgetInput) SetBudget(v *Budget) *CreateBudgetInput { + s.Budget = v + return s +} + +// SetNotificationsWithSubscribers sets the NotificationsWithSubscribers field's value. +func (s *CreateBudgetInput) SetNotificationsWithSubscribers(v []*NotificationWithSubscribers) *CreateBudgetInput { + s.NotificationsWithSubscribers = v + return s +} + +// Response of CreateBudget +type CreateBudgetOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateBudgetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateBudgetOutput) GoString() string { + return s.String() +} + +// Request of CreateNotification +type CreateNotificationInput struct { + _ struct{} `type:"structure"` + + // Account Id of the customer. It should be a 12 digit number. + // + // AccountId is a required field + AccountId *string `min:"12" type:"string" required:"true"` + + // A string represents the budget name. No ":" character is allowed. + // + // BudgetName is a required field + BudgetName *string `type:"string" required:"true"` + + // Notification model. Each budget may contain multiple notifications with different + // settings. + // + // Notification is a required field + Notification *Notification `type:"structure" required:"true"` + + // A list of subscribers. + // + // Subscribers is a required field + Subscribers []*Subscriber `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s CreateNotificationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateNotificationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateNotificationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateNotificationInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) + } + if s.BudgetName == nil { + invalidParams.Add(request.NewErrParamRequired("BudgetName")) + } + if s.Notification == nil { + invalidParams.Add(request.NewErrParamRequired("Notification")) + } + if s.Subscribers == nil { + invalidParams.Add(request.NewErrParamRequired("Subscribers")) + } + if s.Subscribers != nil && len(s.Subscribers) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Subscribers", 1)) + } + if s.Notification != nil { + if err := s.Notification.Validate(); err != nil { + invalidParams.AddNested("Notification", err.(request.ErrInvalidParams)) + } + } + if s.Subscribers != nil { + for i, v := range s.Subscribers { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Subscribers", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *CreateNotificationInput) SetAccountId(v string) *CreateNotificationInput { + s.AccountId = &v + return s +} + +// SetBudgetName sets the BudgetName field's value. +func (s *CreateNotificationInput) SetBudgetName(v string) *CreateNotificationInput { + s.BudgetName = &v + return s +} + +// SetNotification sets the Notification field's value. +func (s *CreateNotificationInput) SetNotification(v *Notification) *CreateNotificationInput { + s.Notification = v + return s +} + +// SetSubscribers sets the Subscribers field's value. +func (s *CreateNotificationInput) SetSubscribers(v []*Subscriber) *CreateNotificationInput { + s.Subscribers = v + return s +} + +// Response of CreateNotification +type CreateNotificationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateNotificationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateNotificationOutput) GoString() string { + return s.String() +} + +// Request of CreateSubscriber +type CreateSubscriberInput struct { + _ struct{} `type:"structure"` + + // Account Id of the customer. It should be a 12 digit number. + // + // AccountId is a required field + AccountId *string `min:"12" type:"string" required:"true"` + + // A string represents the budget name. No ":" character is allowed. + // + // BudgetName is a required field + BudgetName *string `type:"string" required:"true"` + + // Notification model. Each budget may contain multiple notifications with different + // settings. + // + // Notification is a required field + Notification *Notification `type:"structure" required:"true"` + + // Subscriber model. Each notification may contain multiple subscribers with + // different addresses. + // + // Subscriber is a required field + Subscriber *Subscriber `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateSubscriberInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSubscriberInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSubscriberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSubscriberInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) + } + if s.BudgetName == nil { + invalidParams.Add(request.NewErrParamRequired("BudgetName")) + } + if s.Notification == nil { + invalidParams.Add(request.NewErrParamRequired("Notification")) + } + if s.Subscriber == nil { + invalidParams.Add(request.NewErrParamRequired("Subscriber")) + } + if s.Notification != nil { + if err := s.Notification.Validate(); err != nil { + invalidParams.AddNested("Notification", err.(request.ErrInvalidParams)) + } + } + if s.Subscriber != nil { + if err := s.Subscriber.Validate(); err != nil { + invalidParams.AddNested("Subscriber", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *CreateSubscriberInput) SetAccountId(v string) *CreateSubscriberInput { + s.AccountId = &v + return s +} + +// SetBudgetName sets the BudgetName field's value. +func (s *CreateSubscriberInput) SetBudgetName(v string) *CreateSubscriberInput { + s.BudgetName = &v + return s +} + +// SetNotification sets the Notification field's value. +func (s *CreateSubscriberInput) SetNotification(v *Notification) *CreateSubscriberInput { + s.Notification = v + return s +} + +// SetSubscriber sets the Subscriber field's value. +func (s *CreateSubscriberInput) SetSubscriber(v *Subscriber) *CreateSubscriberInput { + s.Subscriber = v + return s +} + +// Response of CreateSubscriber +type CreateSubscriberOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateSubscriberOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSubscriberOutput) GoString() string { + return s.String() +} + +// Request of DeleteBudget +type DeleteBudgetInput struct { + _ struct{} `type:"structure"` + + // Account Id of the customer. It should be a 12 digit number. + // + // AccountId is a required field + AccountId *string `min:"12" type:"string" required:"true"` + + // A string represents the budget name. No ":" character is allowed. + // + // BudgetName is a required field + BudgetName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteBudgetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBudgetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteBudgetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteBudgetInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) + } + if s.BudgetName == nil { + invalidParams.Add(request.NewErrParamRequired("BudgetName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *DeleteBudgetInput) SetAccountId(v string) *DeleteBudgetInput { + s.AccountId = &v + return s +} + +// SetBudgetName sets the BudgetName field's value. +func (s *DeleteBudgetInput) SetBudgetName(v string) *DeleteBudgetInput { + s.BudgetName = &v + return s +} + +// Response of DeleteBudget +type DeleteBudgetOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteBudgetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBudgetOutput) GoString() string { + return s.String() +} + +// Request of DeleteNotification +type DeleteNotificationInput struct { + _ struct{} `type:"structure"` + + // Account Id of the customer. It should be a 12 digit number. + // + // AccountId is a required field + AccountId *string `min:"12" type:"string" required:"true"` + + // A string represents the budget name. No ":" character is allowed. + // + // BudgetName is a required field + BudgetName *string `type:"string" required:"true"` + + // Notification model. Each budget may contain multiple notifications with different + // settings. + // + // Notification is a required field + Notification *Notification `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DeleteNotificationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteNotificationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteNotificationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteNotificationInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) + } + if s.BudgetName == nil { + invalidParams.Add(request.NewErrParamRequired("BudgetName")) + } + if s.Notification == nil { + invalidParams.Add(request.NewErrParamRequired("Notification")) + } + if s.Notification != nil { + if err := s.Notification.Validate(); err != nil { + invalidParams.AddNested("Notification", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *DeleteNotificationInput) SetAccountId(v string) *DeleteNotificationInput { + s.AccountId = &v + return s +} + +// SetBudgetName sets the BudgetName field's value. +func (s *DeleteNotificationInput) SetBudgetName(v string) *DeleteNotificationInput { + s.BudgetName = &v + return s +} + +// SetNotification sets the Notification field's value. +func (s *DeleteNotificationInput) SetNotification(v *Notification) *DeleteNotificationInput { + s.Notification = v + return s +} + +// Response of DeleteNotification +type DeleteNotificationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteNotificationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteNotificationOutput) GoString() string { + return s.String() +} + +// Request of DeleteSubscriber +type DeleteSubscriberInput struct { + _ struct{} `type:"structure"` + + // Account Id of the customer. It should be a 12 digit number. + // + // AccountId is a required field + AccountId *string `min:"12" type:"string" required:"true"` + + // A string represents the budget name. No ":" character is allowed. + // + // BudgetName is a required field + BudgetName *string `type:"string" required:"true"` + + // Notification model. Each budget may contain multiple notifications with different + // settings. + // + // Notification is a required field + Notification *Notification `type:"structure" required:"true"` + + // Subscriber model. Each notification may contain multiple subscribers with + // different addresses. + // + // Subscriber is a required field + Subscriber *Subscriber `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DeleteSubscriberInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteSubscriberInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteSubscriberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSubscriberInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) + } + if s.BudgetName == nil { + invalidParams.Add(request.NewErrParamRequired("BudgetName")) + } + if s.Notification == nil { + invalidParams.Add(request.NewErrParamRequired("Notification")) + } + if s.Subscriber == nil { + invalidParams.Add(request.NewErrParamRequired("Subscriber")) + } + if s.Notification != nil { + if err := s.Notification.Validate(); err != nil { + invalidParams.AddNested("Notification", err.(request.ErrInvalidParams)) + } + } + if s.Subscriber != nil { + if err := s.Subscriber.Validate(); err != nil { + invalidParams.AddNested("Subscriber", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *DeleteSubscriberInput) SetAccountId(v string) *DeleteSubscriberInput { + s.AccountId = &v + return s +} + +// SetBudgetName sets the BudgetName field's value. +func (s *DeleteSubscriberInput) SetBudgetName(v string) *DeleteSubscriberInput { + s.BudgetName = &v + return s +} + +// SetNotification sets the Notification field's value. +func (s *DeleteSubscriberInput) SetNotification(v *Notification) *DeleteSubscriberInput { + s.Notification = v + return s +} + +// SetSubscriber sets the Subscriber field's value. +func (s *DeleteSubscriberInput) SetSubscriber(v *Subscriber) *DeleteSubscriberInput { + s.Subscriber = v + return s +} + +// Response of DeleteSubscriber +type DeleteSubscriberOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteSubscriberOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteSubscriberOutput) GoString() string { + return s.String() +} + +// Request of DescribeBudget +type DescribeBudgetInput struct { + _ struct{} `type:"structure"` + + // Account Id of the customer. It should be a 12 digit number. + // + // AccountId is a required field + AccountId *string `min:"12" type:"string" required:"true"` + + // A string represents the budget name. No ":" character is allowed. + // + // BudgetName is a required field + BudgetName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeBudgetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeBudgetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeBudgetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeBudgetInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) + } + if s.BudgetName == nil { + invalidParams.Add(request.NewErrParamRequired("BudgetName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *DescribeBudgetInput) SetAccountId(v string) *DescribeBudgetInput { + s.AccountId = &v + return s +} + +// SetBudgetName sets the BudgetName field's value. +func (s *DescribeBudgetInput) SetBudgetName(v string) *DescribeBudgetInput { + s.BudgetName = &v + return s +} + +// Response of DescribeBudget +type DescribeBudgetOutput struct { + _ struct{} `type:"structure"` + + // AWS Budget model + Budget *Budget `type:"structure"` +} + +// String returns the string representation +func (s DescribeBudgetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeBudgetOutput) GoString() string { + return s.String() +} + +// SetBudget sets the Budget field's value. +func (s *DescribeBudgetOutput) SetBudget(v *Budget) *DescribeBudgetOutput { + s.Budget = v + return s +} + +// Request of DescribeBudgets +type DescribeBudgetsInput struct { + _ struct{} `type:"structure"` + + // Account Id of the customer. It should be a 12 digit number. + // + // AccountId is a required field + AccountId *string `min:"12" type:"string" required:"true"` + + // An integer to represent how many entries should a pagianted response contains. + // Maxium is set to 100. + MaxResults *int64 `min:"1" type:"integer"` + + // A generic String. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeBudgetsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeBudgetsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeBudgetsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeBudgetsInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *DescribeBudgetsInput) SetAccountId(v string) *DescribeBudgetsInput { + s.AccountId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeBudgetsInput) SetMaxResults(v int64) *DescribeBudgetsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeBudgetsInput) SetNextToken(v string) *DescribeBudgetsInput { + s.NextToken = &v + return s +} + +// Response of DescribeBudgets +type DescribeBudgetsOutput struct { + _ struct{} `type:"structure"` + + // A list of budgets + Budgets []*Budget `type:"list"` + + // A generic String. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeBudgetsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeBudgetsOutput) GoString() string { + return s.String() +} + +// SetBudgets sets the Budgets field's value. +func (s *DescribeBudgetsOutput) SetBudgets(v []*Budget) *DescribeBudgetsOutput { + s.Budgets = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeBudgetsOutput) SetNextToken(v string) *DescribeBudgetsOutput { + s.NextToken = &v + return s +} + +// Request of DescribeNotificationsForBudget +type DescribeNotificationsForBudgetInput struct { + _ struct{} `type:"structure"` + + // Account Id of the customer. It should be a 12 digit number. + // + // AccountId is a required field + AccountId *string `min:"12" type:"string" required:"true"` + + // A string represents the budget name. No ":" character is allowed. + // + // BudgetName is a required field + BudgetName *string `type:"string" required:"true"` + + // An integer to represent how many entries should a pagianted response contains. + // Maxium is set to 100. + MaxResults *int64 `min:"1" type:"integer"` + + // A generic String. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeNotificationsForBudgetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeNotificationsForBudgetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeNotificationsForBudgetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeNotificationsForBudgetInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) + } + if s.BudgetName == nil { + invalidParams.Add(request.NewErrParamRequired("BudgetName")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *DescribeNotificationsForBudgetInput) SetAccountId(v string) *DescribeNotificationsForBudgetInput { + s.AccountId = &v + return s +} + +// SetBudgetName sets the BudgetName field's value. +func (s *DescribeNotificationsForBudgetInput) SetBudgetName(v string) *DescribeNotificationsForBudgetInput { + s.BudgetName = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeNotificationsForBudgetInput) SetMaxResults(v int64) *DescribeNotificationsForBudgetInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeNotificationsForBudgetInput) SetNextToken(v string) *DescribeNotificationsForBudgetInput { + s.NextToken = &v + return s +} + +// Response of GetNotificationsForBudget +type DescribeNotificationsForBudgetOutput struct { + _ struct{} `type:"structure"` + + // A generic String. + NextToken *string `type:"string"` + + // A list of notifications. + Notifications []*Notification `type:"list"` +} + +// String returns the string representation +func (s DescribeNotificationsForBudgetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeNotificationsForBudgetOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeNotificationsForBudgetOutput) SetNextToken(v string) *DescribeNotificationsForBudgetOutput { + s.NextToken = &v + return s +} + +// SetNotifications sets the Notifications field's value. +func (s *DescribeNotificationsForBudgetOutput) SetNotifications(v []*Notification) *DescribeNotificationsForBudgetOutput { + s.Notifications = v + return s +} + +// Request of DescribeSubscribersForNotification +type DescribeSubscribersForNotificationInput struct { + _ struct{} `type:"structure"` + + // Account Id of the customer. It should be a 12 digit number. + // + // AccountId is a required field + AccountId *string `min:"12" type:"string" required:"true"` + + // A string represents the budget name. No ":" character is allowed. + // + // BudgetName is a required field + BudgetName *string `type:"string" required:"true"` + + // An integer to represent how many entries should a pagianted response contains. + // Maxium is set to 100. + MaxResults *int64 `min:"1" type:"integer"` + + // A generic String. + NextToken *string `type:"string"` + + // Notification model. Each budget may contain multiple notifications with different + // settings. + // + // Notification is a required field + Notification *Notification `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DescribeSubscribersForNotificationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeSubscribersForNotificationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeSubscribersForNotificationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeSubscribersForNotificationInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) + } + if s.BudgetName == nil { + invalidParams.Add(request.NewErrParamRequired("BudgetName")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Notification == nil { + invalidParams.Add(request.NewErrParamRequired("Notification")) + } + if s.Notification != nil { + if err := s.Notification.Validate(); err != nil { + invalidParams.AddNested("Notification", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *DescribeSubscribersForNotificationInput) SetAccountId(v string) *DescribeSubscribersForNotificationInput { + s.AccountId = &v + return s +} + +// SetBudgetName sets the BudgetName field's value. +func (s *DescribeSubscribersForNotificationInput) SetBudgetName(v string) *DescribeSubscribersForNotificationInput { + s.BudgetName = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeSubscribersForNotificationInput) SetMaxResults(v int64) *DescribeSubscribersForNotificationInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSubscribersForNotificationInput) SetNextToken(v string) *DescribeSubscribersForNotificationInput { + s.NextToken = &v + return s +} + +// SetNotification sets the Notification field's value. +func (s *DescribeSubscribersForNotificationInput) SetNotification(v *Notification) *DescribeSubscribersForNotificationInput { + s.Notification = v + return s +} + +// Response of DescribeSubscribersForNotification +type DescribeSubscribersForNotificationOutput struct { + _ struct{} `type:"structure"` + + // A generic String. + NextToken *string `type:"string"` + + // A list of subscribers. + Subscribers []*Subscriber `min:"1" type:"list"` +} + +// String returns the string representation +func (s DescribeSubscribersForNotificationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeSubscribersForNotificationOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSubscribersForNotificationOutput) SetNextToken(v string) *DescribeSubscribersForNotificationOutput { + s.NextToken = &v + return s +} + +// SetSubscribers sets the Subscribers field's value. +func (s *DescribeSubscribersForNotificationOutput) SetSubscribers(v []*Subscriber) *DescribeSubscribersForNotificationOutput { + s.Subscribers = v + return s +} + +// Notification model. Each budget may contain multiple notifications with different +// settings. +type Notification struct { + _ struct{} `type:"structure"` + + // The comparison operator of a notification. Currently we support less than, + // equal to and greater than. + // + // ComparisonOperator is a required field + ComparisonOperator *string `type:"string" required:"true" enum:"ComparisonOperator"` + + // The type of a notification. It should be ACTUAL or FORECASTED. + // + // NotificationType is a required field + NotificationType *string `type:"string" required:"true" enum:"NotificationType"` + + // The threshold of the a notification. It should be a number between 0 and + // 100. + // + // Threshold is a required field + Threshold *float64 `min:"0.1" type:"double" required:"true"` +} + +// String returns the string representation +func (s Notification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Notification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Notification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Notification"} + if s.ComparisonOperator == nil { + invalidParams.Add(request.NewErrParamRequired("ComparisonOperator")) + } + if s.NotificationType == nil { + invalidParams.Add(request.NewErrParamRequired("NotificationType")) + } + if s.Threshold == nil { + invalidParams.Add(request.NewErrParamRequired("Threshold")) + } + if s.Threshold != nil && *s.Threshold < 0.1 { + invalidParams.Add(request.NewErrParamMinValue("Threshold", 0.1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetComparisonOperator sets the ComparisonOperator field's value. +func (s *Notification) SetComparisonOperator(v string) *Notification { + s.ComparisonOperator = &v + return s +} + +// SetNotificationType sets the NotificationType field's value. +func (s *Notification) SetNotificationType(v string) *Notification { + s.NotificationType = &v + return s +} + +// SetThreshold sets the Threshold field's value. +func (s *Notification) SetThreshold(v float64) *Notification { + s.Threshold = &v + return s +} + +// A structure to relate notification and a list of subscribers who belong to +// the notification. +type NotificationWithSubscribers struct { + _ struct{} `type:"structure"` + + // Notification model. Each budget may contain multiple notifications with different + // settings. + // + // Notification is a required field + Notification *Notification `type:"structure" required:"true"` + + // A list of subscribers. + // + // Subscribers is a required field + Subscribers []*Subscriber `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s NotificationWithSubscribers) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotificationWithSubscribers) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *NotificationWithSubscribers) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NotificationWithSubscribers"} + if s.Notification == nil { + invalidParams.Add(request.NewErrParamRequired("Notification")) + } + if s.Subscribers == nil { + invalidParams.Add(request.NewErrParamRequired("Subscribers")) + } + if s.Subscribers != nil && len(s.Subscribers) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Subscribers", 1)) + } + if s.Notification != nil { + if err := s.Notification.Validate(); err != nil { + invalidParams.AddNested("Notification", err.(request.ErrInvalidParams)) + } + } + if s.Subscribers != nil { + for i, v := range s.Subscribers { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Subscribers", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNotification sets the Notification field's value. +func (s *NotificationWithSubscribers) SetNotification(v *Notification) *NotificationWithSubscribers { + s.Notification = v + return s +} + +// SetSubscribers sets the Subscribers field's value. +func (s *NotificationWithSubscribers) SetSubscribers(v []*Subscriber) *NotificationWithSubscribers { + s.Subscribers = v + return s +} + +// A structure represent either a cost spend or usage spend. Contains an amount +// and a unit. +type Spend struct { + _ struct{} `type:"structure"` + + // A string to represent NumericValue. + // + // Amount is a required field + Amount *string `type:"string" required:"true"` + + // A generic String. + // + // Unit is a required field + Unit *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s Spend) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Spend) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Spend) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Spend"} + if s.Amount == nil { + invalidParams.Add(request.NewErrParamRequired("Amount")) + } + if s.Unit == nil { + invalidParams.Add(request.NewErrParamRequired("Unit")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAmount sets the Amount field's value. +func (s *Spend) SetAmount(v string) *Spend { + s.Amount = &v + return s +} + +// SetUnit sets the Unit field's value. +func (s *Spend) SetUnit(v string) *Spend { + s.Unit = &v + return s +} + +// Subscriber model. Each notification may contain multiple subscribers with +// different addresses. +type Subscriber struct { + _ struct{} `type:"structure"` + + // A generic String. + // + // Address is a required field + Address *string `type:"string" required:"true"` + + // The subscription type of the subscriber. It can be SMS or EMAIL. + // + // SubscriptionType is a required field + SubscriptionType *string `type:"string" required:"true" enum:"SubscriptionType"` +} + +// String returns the string representation +func (s Subscriber) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Subscriber) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Subscriber) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Subscriber"} + if s.Address == nil { + invalidParams.Add(request.NewErrParamRequired("Address")) + } + if s.SubscriptionType == nil { + invalidParams.Add(request.NewErrParamRequired("SubscriptionType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAddress sets the Address field's value. +func (s *Subscriber) SetAddress(v string) *Subscriber { + s.Address = &v + return s +} + +// SetSubscriptionType sets the SubscriptionType field's value. +func (s *Subscriber) SetSubscriptionType(v string) *Subscriber { + s.SubscriptionType = &v + return s +} + +// A time period indicated the start date and end date of a budget. +type TimePeriod struct { + _ struct{} `type:"structure"` + + // A generic timestamp. In Java it is transformed to a Date object. + // + // End is a required field + End *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` + + // A generic timestamp. In Java it is transformed to a Date object. + // + // Start is a required field + Start *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` +} + +// String returns the string representation +func (s TimePeriod) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TimePeriod) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TimePeriod) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TimePeriod"} + if s.End == nil { + invalidParams.Add(request.NewErrParamRequired("End")) + } + if s.Start == nil { + invalidParams.Add(request.NewErrParamRequired("Start")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEnd sets the End field's value. +func (s *TimePeriod) SetEnd(v time.Time) *TimePeriod { + s.End = &v + return s +} + +// SetStart sets the Start field's value. +func (s *TimePeriod) SetStart(v time.Time) *TimePeriod { + s.Start = &v + return s +} + +// Request of UpdateBudget +type UpdateBudgetInput struct { + _ struct{} `type:"structure"` + + // Account Id of the customer. It should be a 12 digit number. + // + // AccountId is a required field + AccountId *string `min:"12" type:"string" required:"true"` + + // AWS Budget model + // + // NewBudget is a required field + NewBudget *Budget `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateBudgetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateBudgetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateBudgetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateBudgetInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) + } + if s.NewBudget == nil { + invalidParams.Add(request.NewErrParamRequired("NewBudget")) + } + if s.NewBudget != nil { + if err := s.NewBudget.Validate(); err != nil { + invalidParams.AddNested("NewBudget", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *UpdateBudgetInput) SetAccountId(v string) *UpdateBudgetInput { + s.AccountId = &v + return s +} + +// SetNewBudget sets the NewBudget field's value. +func (s *UpdateBudgetInput) SetNewBudget(v *Budget) *UpdateBudgetInput { + s.NewBudget = v + return s +} + +// Response of UpdateBudget +type UpdateBudgetOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateBudgetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateBudgetOutput) GoString() string { + return s.String() +} + +// Request of UpdateNotification +type UpdateNotificationInput struct { + _ struct{} `type:"structure"` + + // Account Id of the customer. It should be a 12 digit number. + // + // AccountId is a required field + AccountId *string `min:"12" type:"string" required:"true"` + + // A string represents the budget name. No ":" character is allowed. + // + // BudgetName is a required field + BudgetName *string `type:"string" required:"true"` + + // Notification model. Each budget may contain multiple notifications with different + // settings. + // + // NewNotification is a required field + NewNotification *Notification `type:"structure" required:"true"` + + // Notification model. Each budget may contain multiple notifications with different + // settings. + // + // OldNotification is a required field + OldNotification *Notification `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateNotificationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateNotificationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateNotificationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateNotificationInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) + } + if s.BudgetName == nil { + invalidParams.Add(request.NewErrParamRequired("BudgetName")) + } + if s.NewNotification == nil { + invalidParams.Add(request.NewErrParamRequired("NewNotification")) + } + if s.OldNotification == nil { + invalidParams.Add(request.NewErrParamRequired("OldNotification")) + } + if s.NewNotification != nil { + if err := s.NewNotification.Validate(); err != nil { + invalidParams.AddNested("NewNotification", err.(request.ErrInvalidParams)) + } + } + if s.OldNotification != nil { + if err := s.OldNotification.Validate(); err != nil { + invalidParams.AddNested("OldNotification", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *UpdateNotificationInput) SetAccountId(v string) *UpdateNotificationInput { + s.AccountId = &v + return s +} + +// SetBudgetName sets the BudgetName field's value. +func (s *UpdateNotificationInput) SetBudgetName(v string) *UpdateNotificationInput { + s.BudgetName = &v + return s +} + +// SetNewNotification sets the NewNotification field's value. +func (s *UpdateNotificationInput) SetNewNotification(v *Notification) *UpdateNotificationInput { + s.NewNotification = v + return s +} + +// SetOldNotification sets the OldNotification field's value. +func (s *UpdateNotificationInput) SetOldNotification(v *Notification) *UpdateNotificationInput { + s.OldNotification = v + return s +} + +// Response of UpdateNotification +type UpdateNotificationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateNotificationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateNotificationOutput) GoString() string { + return s.String() +} + +// Request of UpdateSubscriber +type UpdateSubscriberInput struct { + _ struct{} `type:"structure"` + + // Account Id of the customer. It should be a 12 digit number. + // + // AccountId is a required field + AccountId *string `min:"12" type:"string" required:"true"` + + // A string represents the budget name. No ":" character is allowed. + // + // BudgetName is a required field + BudgetName *string `type:"string" required:"true"` + + // Subscriber model. Each notification may contain multiple subscribers with + // different addresses. + // + // NewSubscriber is a required field + NewSubscriber *Subscriber `type:"structure" required:"true"` + + // Notification model. Each budget may contain multiple notifications with different + // settings. + // + // Notification is a required field + Notification *Notification `type:"structure" required:"true"` + + // Subscriber model. Each notification may contain multiple subscribers with + // different addresses. + // + // OldSubscriber is a required field + OldSubscriber *Subscriber `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateSubscriberInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateSubscriberInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateSubscriberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateSubscriberInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) + } + if s.BudgetName == nil { + invalidParams.Add(request.NewErrParamRequired("BudgetName")) + } + if s.NewSubscriber == nil { + invalidParams.Add(request.NewErrParamRequired("NewSubscriber")) + } + if s.Notification == nil { + invalidParams.Add(request.NewErrParamRequired("Notification")) + } + if s.OldSubscriber == nil { + invalidParams.Add(request.NewErrParamRequired("OldSubscriber")) + } + if s.NewSubscriber != nil { + if err := s.NewSubscriber.Validate(); err != nil { + invalidParams.AddNested("NewSubscriber", err.(request.ErrInvalidParams)) + } + } + if s.Notification != nil { + if err := s.Notification.Validate(); err != nil { + invalidParams.AddNested("Notification", err.(request.ErrInvalidParams)) + } + } + if s.OldSubscriber != nil { + if err := s.OldSubscriber.Validate(); err != nil { + invalidParams.AddNested("OldSubscriber", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *UpdateSubscriberInput) SetAccountId(v string) *UpdateSubscriberInput { + s.AccountId = &v + return s +} + +// SetBudgetName sets the BudgetName field's value. +func (s *UpdateSubscriberInput) SetBudgetName(v string) *UpdateSubscriberInput { + s.BudgetName = &v + return s +} + +// SetNewSubscriber sets the NewSubscriber field's value. +func (s *UpdateSubscriberInput) SetNewSubscriber(v *Subscriber) *UpdateSubscriberInput { + s.NewSubscriber = v + return s +} + +// SetNotification sets the Notification field's value. +func (s *UpdateSubscriberInput) SetNotification(v *Notification) *UpdateSubscriberInput { + s.Notification = v + return s +} + +// SetOldSubscriber sets the OldSubscriber field's value. +func (s *UpdateSubscriberInput) SetOldSubscriber(v *Subscriber) *UpdateSubscriberInput { + s.OldSubscriber = v + return s +} + +// Response of UpdateSubscriber +type UpdateSubscriberOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateSubscriberOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateSubscriberOutput) GoString() string { + return s.String() +} + +// The type of a budget. Can be COST or USAGE. +const ( + // BudgetTypeUsage is a BudgetType enum value + BudgetTypeUsage = "USAGE" + + // BudgetTypeCost is a BudgetType enum value + BudgetTypeCost = "COST" +) + +// The comparison operator of a notification. Currently we support less than, +// equal to and greater than. +const ( + // ComparisonOperatorGreaterThan is a ComparisonOperator enum value + ComparisonOperatorGreaterThan = "GREATER_THAN" + + // ComparisonOperatorLessThan is a ComparisonOperator enum value + ComparisonOperatorLessThan = "LESS_THAN" + + // ComparisonOperatorEqualTo is a ComparisonOperator enum value + ComparisonOperatorEqualTo = "EQUAL_TO" +) + +// The type of a notification. It should be ACTUAL or FORECASTED. +const ( + // NotificationTypeActual is a NotificationType enum value + NotificationTypeActual = "ACTUAL" + + // NotificationTypeForecasted is a NotificationType enum value + NotificationTypeForecasted = "FORECASTED" +) + +// The subscription type of the subscriber. It can be SMS or EMAIL. +const ( + // SubscriptionTypeSns is a SubscriptionType enum value + SubscriptionTypeSns = "SNS" + + // SubscriptionTypeEmail is a SubscriptionType enum value + SubscriptionTypeEmail = "EMAIL" +) + +// The time unit of the budget. e.g. weekly, monthly, etc. +const ( + // TimeUnitMonthly is a TimeUnit enum value + TimeUnitMonthly = "MONTHLY" + + // TimeUnitQuarterly is a TimeUnit enum value + TimeUnitQuarterly = "QUARTERLY" + + // TimeUnitAnnually is a TimeUnit enum value + TimeUnitAnnually = "ANNUALLY" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/budgets/budgetsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/budgets/budgetsiface/interface.go new file mode 100644 index 000000000..84748915c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/budgets/budgetsiface/interface.go @@ -0,0 +1,115 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package budgetsiface provides an interface to enable mocking the AWS Budgets service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package budgetsiface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/budgets" +) + +// BudgetsAPI provides an interface to enable mocking the +// budgets.Budgets service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS Budgets. +// func myFunc(svc budgetsiface.BudgetsAPI) bool { +// // Make svc.CreateBudget request +// } +// +// func main() { +// sess := session.New() +// svc := budgets.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockBudgetsClient struct { +// budgetsiface.BudgetsAPI +// } +// func (m *mockBudgetsClient) CreateBudget(input *budgets.CreateBudgetInput) (*budgets.CreateBudgetOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockBudgetsClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type BudgetsAPI interface { + CreateBudgetRequest(*budgets.CreateBudgetInput) (*request.Request, *budgets.CreateBudgetOutput) + + CreateBudget(*budgets.CreateBudgetInput) (*budgets.CreateBudgetOutput, error) + + CreateNotificationRequest(*budgets.CreateNotificationInput) (*request.Request, *budgets.CreateNotificationOutput) + + CreateNotification(*budgets.CreateNotificationInput) (*budgets.CreateNotificationOutput, error) + + CreateSubscriberRequest(*budgets.CreateSubscriberInput) (*request.Request, *budgets.CreateSubscriberOutput) + + CreateSubscriber(*budgets.CreateSubscriberInput) (*budgets.CreateSubscriberOutput, error) + + DeleteBudgetRequest(*budgets.DeleteBudgetInput) (*request.Request, *budgets.DeleteBudgetOutput) + + DeleteBudget(*budgets.DeleteBudgetInput) (*budgets.DeleteBudgetOutput, error) + + DeleteNotificationRequest(*budgets.DeleteNotificationInput) (*request.Request, *budgets.DeleteNotificationOutput) + + DeleteNotification(*budgets.DeleteNotificationInput) (*budgets.DeleteNotificationOutput, error) + + DeleteSubscriberRequest(*budgets.DeleteSubscriberInput) (*request.Request, *budgets.DeleteSubscriberOutput) + + DeleteSubscriber(*budgets.DeleteSubscriberInput) (*budgets.DeleteSubscriberOutput, error) + + DescribeBudgetRequest(*budgets.DescribeBudgetInput) (*request.Request, *budgets.DescribeBudgetOutput) + + DescribeBudget(*budgets.DescribeBudgetInput) (*budgets.DescribeBudgetOutput, error) + + DescribeBudgetsRequest(*budgets.DescribeBudgetsInput) (*request.Request, *budgets.DescribeBudgetsOutput) + + DescribeBudgets(*budgets.DescribeBudgetsInput) (*budgets.DescribeBudgetsOutput, error) + + DescribeNotificationsForBudgetRequest(*budgets.DescribeNotificationsForBudgetInput) (*request.Request, *budgets.DescribeNotificationsForBudgetOutput) + + DescribeNotificationsForBudget(*budgets.DescribeNotificationsForBudgetInput) (*budgets.DescribeNotificationsForBudgetOutput, error) + + DescribeSubscribersForNotificationRequest(*budgets.DescribeSubscribersForNotificationInput) (*request.Request, *budgets.DescribeSubscribersForNotificationOutput) + + DescribeSubscribersForNotification(*budgets.DescribeSubscribersForNotificationInput) (*budgets.DescribeSubscribersForNotificationOutput, error) + + UpdateBudgetRequest(*budgets.UpdateBudgetInput) (*request.Request, *budgets.UpdateBudgetOutput) + + UpdateBudget(*budgets.UpdateBudgetInput) (*budgets.UpdateBudgetOutput, error) + + UpdateNotificationRequest(*budgets.UpdateNotificationInput) (*request.Request, *budgets.UpdateNotificationOutput) + + UpdateNotification(*budgets.UpdateNotificationInput) (*budgets.UpdateNotificationOutput, error) + + UpdateSubscriberRequest(*budgets.UpdateSubscriberInput) (*request.Request, *budgets.UpdateSubscriberOutput) + + UpdateSubscriber(*budgets.UpdateSubscriberInput) (*budgets.UpdateSubscriberOutput, error) +} + +var _ BudgetsAPI = (*budgets.Budgets)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/budgets/errors.go b/vendor/github.com/aws/aws-sdk-go/service/budgets/errors.go new file mode 100644 index 000000000..79ee3cb13 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/budgets/errors.go @@ -0,0 +1,53 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package budgets + +const ( + + // ErrCodeCreationLimitExceededException for service response error code + // "CreationLimitExceededException". + // + // The exception is thrown when customer tries to create a record (e.g. budget), + // but the number this record already exceeds the limitation. + ErrCodeCreationLimitExceededException = "CreationLimitExceededException" + + // ErrCodeDuplicateRecordException for service response error code + // "DuplicateRecordException". + // + // The exception is thrown when customer tries to create a record (e.g. budget) + // that already exists. + ErrCodeDuplicateRecordException = "DuplicateRecordException" + + // ErrCodeExpiredNextTokenException for service response error code + // "ExpiredNextTokenException". + // + // This exception is thrown if the paging token is expired - past its TTL + ErrCodeExpiredNextTokenException = "ExpiredNextTokenException" + + // ErrCodeInternalErrorException for service response error code + // "InternalErrorException". + // + // This exception is thrown on an unknown internal failure. + ErrCodeInternalErrorException = "InternalErrorException" + + // ErrCodeInvalidNextTokenException for service response error code + // "InvalidNextTokenException". + // + // This exception is thrown if paging token signature didn't match the token, + // or the paging token isn't for this request + ErrCodeInvalidNextTokenException = "InvalidNextTokenException" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameterException". + // + // This exception is thrown if any request is given an invalid parameter. E.g., + // if a required Date field is null. + ErrCodeInvalidParameterException = "InvalidParameterException" + + // ErrCodeNotFoundException for service response error code + // "NotFoundException". + // + // This exception is thrown if a requested entity is not found. E.g., if a budget + // id doesn't exist for an account ID. + ErrCodeNotFoundException = "NotFoundException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/budgets/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/budgets/examples_test.go new file mode 100644 index 000000000..655216b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/budgets/examples_test.go @@ -0,0 +1,455 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package budgets_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/budgets" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExampleBudgets_CreateBudget() { + sess := session.Must(session.NewSession()) + + svc := budgets.New(sess) + + params := &budgets.CreateBudgetInput{ + AccountId: aws.String("AccountId"), // Required + Budget: &budgets.Budget{ // Required + BudgetLimit: &budgets.Spend{ // Required + Amount: aws.String("NumericValue"), // Required + Unit: aws.String("GenericString"), // Required + }, + BudgetName: aws.String("BudgetName"), // Required + BudgetType: aws.String("BudgetType"), // Required + CostTypes: &budgets.CostTypes{ // Required + IncludeSubscription: aws.Bool(true), // Required + IncludeTax: aws.Bool(true), // Required + UseBlended: aws.Bool(true), // Required + }, + TimePeriod: &budgets.TimePeriod{ // Required + End: aws.Time(time.Now()), // Required + Start: aws.Time(time.Now()), // Required + }, + TimeUnit: aws.String("TimeUnit"), // Required + CalculatedSpend: &budgets.CalculatedSpend{ + ActualSpend: &budgets.Spend{ // Required + Amount: aws.String("NumericValue"), // Required + Unit: aws.String("GenericString"), // Required + }, + ForecastedSpend: &budgets.Spend{ + Amount: aws.String("NumericValue"), // Required + Unit: aws.String("GenericString"), // Required + }, + }, + CostFilters: map[string][]*string{ + "Key": { // Required + aws.String("GenericString"), // Required + // More values... + }, + // More values... + }, + }, + NotificationsWithSubscribers: []*budgets.NotificationWithSubscribers{ + { // Required + Notification: &budgets.Notification{ // Required + ComparisonOperator: aws.String("ComparisonOperator"), // Required + NotificationType: aws.String("NotificationType"), // Required + Threshold: aws.Float64(1.0), // Required + }, + Subscribers: []*budgets.Subscriber{ // Required + { // Required + Address: aws.String("GenericString"), // Required + SubscriptionType: aws.String("SubscriptionType"), // Required + }, + // More values... + }, + }, + // More values... + }, + } + resp, err := svc.CreateBudget(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBudgets_CreateNotification() { + sess := session.Must(session.NewSession()) + + svc := budgets.New(sess) + + params := &budgets.CreateNotificationInput{ + AccountId: aws.String("AccountId"), // Required + BudgetName: aws.String("BudgetName"), // Required + Notification: &budgets.Notification{ // Required + ComparisonOperator: aws.String("ComparisonOperator"), // Required + NotificationType: aws.String("NotificationType"), // Required + Threshold: aws.Float64(1.0), // Required + }, + Subscribers: []*budgets.Subscriber{ // Required + { // Required + Address: aws.String("GenericString"), // Required + SubscriptionType: aws.String("SubscriptionType"), // Required + }, + // More values... + }, + } + resp, err := svc.CreateNotification(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBudgets_CreateSubscriber() { + sess := session.Must(session.NewSession()) + + svc := budgets.New(sess) + + params := &budgets.CreateSubscriberInput{ + AccountId: aws.String("AccountId"), // Required + BudgetName: aws.String("BudgetName"), // Required + Notification: &budgets.Notification{ // Required + ComparisonOperator: aws.String("ComparisonOperator"), // Required + NotificationType: aws.String("NotificationType"), // Required + Threshold: aws.Float64(1.0), // Required + }, + Subscriber: &budgets.Subscriber{ // Required + Address: aws.String("GenericString"), // Required + SubscriptionType: aws.String("SubscriptionType"), // Required + }, + } + resp, err := svc.CreateSubscriber(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBudgets_DeleteBudget() { + sess := session.Must(session.NewSession()) + + svc := budgets.New(sess) + + params := &budgets.DeleteBudgetInput{ + AccountId: aws.String("AccountId"), // Required + BudgetName: aws.String("BudgetName"), // Required + } + resp, err := svc.DeleteBudget(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBudgets_DeleteNotification() { + sess := session.Must(session.NewSession()) + + svc := budgets.New(sess) + + params := &budgets.DeleteNotificationInput{ + AccountId: aws.String("AccountId"), // Required + BudgetName: aws.String("BudgetName"), // Required + Notification: &budgets.Notification{ // Required + ComparisonOperator: aws.String("ComparisonOperator"), // Required + NotificationType: aws.String("NotificationType"), // Required + Threshold: aws.Float64(1.0), // Required + }, + } + resp, err := svc.DeleteNotification(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBudgets_DeleteSubscriber() { + sess := session.Must(session.NewSession()) + + svc := budgets.New(sess) + + params := &budgets.DeleteSubscriberInput{ + AccountId: aws.String("AccountId"), // Required + BudgetName: aws.String("BudgetName"), // Required + Notification: &budgets.Notification{ // Required + ComparisonOperator: aws.String("ComparisonOperator"), // Required + NotificationType: aws.String("NotificationType"), // Required + Threshold: aws.Float64(1.0), // Required + }, + Subscriber: &budgets.Subscriber{ // Required + Address: aws.String("GenericString"), // Required + SubscriptionType: aws.String("SubscriptionType"), // Required + }, + } + resp, err := svc.DeleteSubscriber(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBudgets_DescribeBudget() { + sess := session.Must(session.NewSession()) + + svc := budgets.New(sess) + + params := &budgets.DescribeBudgetInput{ + AccountId: aws.String("AccountId"), // Required + BudgetName: aws.String("BudgetName"), // Required + } + resp, err := svc.DescribeBudget(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBudgets_DescribeBudgets() { + sess := session.Must(session.NewSession()) + + svc := budgets.New(sess) + + params := &budgets.DescribeBudgetsInput{ + AccountId: aws.String("AccountId"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("GenericString"), + } + resp, err := svc.DescribeBudgets(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBudgets_DescribeNotificationsForBudget() { + sess := session.Must(session.NewSession()) + + svc := budgets.New(sess) + + params := &budgets.DescribeNotificationsForBudgetInput{ + AccountId: aws.String("AccountId"), // Required + BudgetName: aws.String("BudgetName"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("GenericString"), + } + resp, err := svc.DescribeNotificationsForBudget(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBudgets_DescribeSubscribersForNotification() { + sess := session.Must(session.NewSession()) + + svc := budgets.New(sess) + + params := &budgets.DescribeSubscribersForNotificationInput{ + AccountId: aws.String("AccountId"), // Required + BudgetName: aws.String("BudgetName"), // Required + Notification: &budgets.Notification{ // Required + ComparisonOperator: aws.String("ComparisonOperator"), // Required + NotificationType: aws.String("NotificationType"), // Required + Threshold: aws.Float64(1.0), // Required + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("GenericString"), + } + resp, err := svc.DescribeSubscribersForNotification(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBudgets_UpdateBudget() { + sess := session.Must(session.NewSession()) + + svc := budgets.New(sess) + + params := &budgets.UpdateBudgetInput{ + AccountId: aws.String("AccountId"), // Required + NewBudget: &budgets.Budget{ // Required + BudgetLimit: &budgets.Spend{ // Required + Amount: aws.String("NumericValue"), // Required + Unit: aws.String("GenericString"), // Required + }, + BudgetName: aws.String("BudgetName"), // Required + BudgetType: aws.String("BudgetType"), // Required + CostTypes: &budgets.CostTypes{ // Required + IncludeSubscription: aws.Bool(true), // Required + IncludeTax: aws.Bool(true), // Required + UseBlended: aws.Bool(true), // Required + }, + TimePeriod: &budgets.TimePeriod{ // Required + End: aws.Time(time.Now()), // Required + Start: aws.Time(time.Now()), // Required + }, + TimeUnit: aws.String("TimeUnit"), // Required + CalculatedSpend: &budgets.CalculatedSpend{ + ActualSpend: &budgets.Spend{ // Required + Amount: aws.String("NumericValue"), // Required + Unit: aws.String("GenericString"), // Required + }, + ForecastedSpend: &budgets.Spend{ + Amount: aws.String("NumericValue"), // Required + Unit: aws.String("GenericString"), // Required + }, + }, + CostFilters: map[string][]*string{ + "Key": { // Required + aws.String("GenericString"), // Required + // More values... + }, + // More values... + }, + }, + } + resp, err := svc.UpdateBudget(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBudgets_UpdateNotification() { + sess := session.Must(session.NewSession()) + + svc := budgets.New(sess) + + params := &budgets.UpdateNotificationInput{ + AccountId: aws.String("AccountId"), // Required + BudgetName: aws.String("BudgetName"), // Required + NewNotification: &budgets.Notification{ // Required + ComparisonOperator: aws.String("ComparisonOperator"), // Required + NotificationType: aws.String("NotificationType"), // Required + Threshold: aws.Float64(1.0), // Required + }, + OldNotification: &budgets.Notification{ // Required + ComparisonOperator: aws.String("ComparisonOperator"), // Required + NotificationType: aws.String("NotificationType"), // Required + Threshold: aws.Float64(1.0), // Required + }, + } + resp, err := svc.UpdateNotification(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleBudgets_UpdateSubscriber() { + sess := session.Must(session.NewSession()) + + svc := budgets.New(sess) + + params := &budgets.UpdateSubscriberInput{ + AccountId: aws.String("AccountId"), // Required + BudgetName: aws.String("BudgetName"), // Required + NewSubscriber: &budgets.Subscriber{ // Required + Address: aws.String("GenericString"), // Required + SubscriptionType: aws.String("SubscriptionType"), // Required + }, + Notification: &budgets.Notification{ // Required + ComparisonOperator: aws.String("ComparisonOperator"), // Required + NotificationType: aws.String("NotificationType"), // Required + Threshold: aws.Float64(1.0), // Required + }, + OldSubscriber: &budgets.Subscriber{ // Required + Address: aws.String("GenericString"), // Required + SubscriptionType: aws.String("SubscriptionType"), // Required + }, + } + resp, err := svc.UpdateSubscriber(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/budgets/service.go b/vendor/github.com/aws/aws-sdk-go/service/budgets/service.go new file mode 100644 index 000000000..0834879f3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/budgets/service.go @@ -0,0 +1,92 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package budgets + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" +) + +// All public APIs for AWS Budgets +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +type Budgets struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "budgets" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the Budgets client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a Budgets client from just a session. +// svc := budgets.New(mySession) +// +// // Create a Budgets client with additional configuration +// svc := budgets.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *Budgets { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Budgets { + svc := &Budgets{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2016-10-20", + JSONVersion: "1.1", + TargetPrefix: "AWSBudgetServiceGateway", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a Budgets operation and runs any +// custom request initialization. +func (c *Budgets) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/api.go b/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/api.go new file mode 100644 index 000000000..6100dc805 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/api.go @@ -0,0 +1,12338 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package clouddirectory provides a client for Amazon CloudDirectory. +package clouddirectory + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opAddFacetToObject = "AddFacetToObject" + +// AddFacetToObjectRequest generates a "aws/request.Request" representing the +// client's request for the AddFacetToObject operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AddFacetToObject for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AddFacetToObject method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AddFacetToObjectRequest method. +// req, resp := client.AddFacetToObjectRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/AddFacetToObject +func (c *CloudDirectory) AddFacetToObjectRequest(input *AddFacetToObjectInput) (req *request.Request, output *AddFacetToObjectOutput) { + op := &request.Operation{ + Name: opAddFacetToObject, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/object/facets", + } + + if input == nil { + input = &AddFacetToObjectInput{} + } + + output = &AddFacetToObjectOutput{} + req = c.newRequest(op, input, output) + return +} + +// AddFacetToObject API operation for Amazon CloudDirectory. +// +// Adds a new Facet to an object. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation AddFacetToObject for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeFacetValidationException "FacetValidationException" +// The Facet you provided was not well formed or could not be validated with +// the schema. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/AddFacetToObject +func (c *CloudDirectory) AddFacetToObject(input *AddFacetToObjectInput) (*AddFacetToObjectOutput, error) { + req, out := c.AddFacetToObjectRequest(input) + err := req.Send() + return out, err +} + +const opApplySchema = "ApplySchema" + +// ApplySchemaRequest generates a "aws/request.Request" representing the +// client's request for the ApplySchema operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ApplySchema for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ApplySchema method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ApplySchemaRequest method. +// req, resp := client.ApplySchemaRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ApplySchema +func (c *CloudDirectory) ApplySchemaRequest(input *ApplySchemaInput) (req *request.Request, output *ApplySchemaOutput) { + op := &request.Operation{ + Name: opApplySchema, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/schema/apply", + } + + if input == nil { + input = &ApplySchemaInput{} + } + + output = &ApplySchemaOutput{} + req = c.newRequest(op, input, output) + return +} + +// ApplySchema API operation for Amazon CloudDirectory. +// +// Copies input published schema into Directory with same name and version as +// that of published schema . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation ApplySchema for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeInvalidAttachmentException "InvalidAttachmentException" +// Indicates that an attempt to attach an object with the same link name or +// to apply a schema with same name has occurred. Rename the link or the schema +// and then try again. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ApplySchema +func (c *CloudDirectory) ApplySchema(input *ApplySchemaInput) (*ApplySchemaOutput, error) { + req, out := c.ApplySchemaRequest(input) + err := req.Send() + return out, err +} + +const opAttachObject = "AttachObject" + +// AttachObjectRequest generates a "aws/request.Request" representing the +// client's request for the AttachObject operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AttachObject for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AttachObject method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AttachObjectRequest method. +// req, resp := client.AttachObjectRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/AttachObject +func (c *CloudDirectory) AttachObjectRequest(input *AttachObjectInput) (req *request.Request, output *AttachObjectOutput) { + op := &request.Operation{ + Name: opAttachObject, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/object/attach", + } + + if input == nil { + input = &AttachObjectInput{} + } + + output = &AttachObjectOutput{} + req = c.newRequest(op, input, output) + return +} + +// AttachObject API operation for Amazon CloudDirectory. +// +// Attaches an existing object to another object. An object can be accessed +// in two ways: +// +// Using the path +// +// Using ObjectIdentifier +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation AttachObject for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeLinkNameAlreadyInUseException "LinkNameAlreadyInUseException" +// Indicates that a link could not be created due to a naming conflict. Choose +// a different name and then try again. +// +// * ErrCodeInvalidAttachmentException "InvalidAttachmentException" +// Indicates that an attempt to attach an object with the same link name or +// to apply a schema with same name has occurred. Rename the link or the schema +// and then try again. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/AttachObject +func (c *CloudDirectory) AttachObject(input *AttachObjectInput) (*AttachObjectOutput, error) { + req, out := c.AttachObjectRequest(input) + err := req.Send() + return out, err +} + +const opAttachPolicy = "AttachPolicy" + +// AttachPolicyRequest generates a "aws/request.Request" representing the +// client's request for the AttachPolicy operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AttachPolicy for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AttachPolicy method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AttachPolicyRequest method. +// req, resp := client.AttachPolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/AttachPolicy +func (c *CloudDirectory) AttachPolicyRequest(input *AttachPolicyInput) (req *request.Request, output *AttachPolicyOutput) { + op := &request.Operation{ + Name: opAttachPolicy, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/policy/attach", + } + + if input == nil { + input = &AttachPolicyInput{} + } + + output = &AttachPolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// AttachPolicy API operation for Amazon CloudDirectory. +// +// Attaches a policy object to a regular object. An object can have a limited +// number of attached policies. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation AttachPolicy for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeNotPolicyException "NotPolicyException" +// Indicates the requested operation can only operate on policy objects. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/AttachPolicy +func (c *CloudDirectory) AttachPolicy(input *AttachPolicyInput) (*AttachPolicyOutput, error) { + req, out := c.AttachPolicyRequest(input) + err := req.Send() + return out, err +} + +const opAttachToIndex = "AttachToIndex" + +// AttachToIndexRequest generates a "aws/request.Request" representing the +// client's request for the AttachToIndex operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AttachToIndex for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AttachToIndex method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AttachToIndexRequest method. +// req, resp := client.AttachToIndexRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/AttachToIndex +func (c *CloudDirectory) AttachToIndexRequest(input *AttachToIndexInput) (req *request.Request, output *AttachToIndexOutput) { + op := &request.Operation{ + Name: opAttachToIndex, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/index/attach", + } + + if input == nil { + input = &AttachToIndexInput{} + } + + output = &AttachToIndexOutput{} + req = c.newRequest(op, input, output) + return +} + +// AttachToIndex API operation for Amazon CloudDirectory. +// +// Attaches the specified object to the specified index. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation AttachToIndex for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeLinkNameAlreadyInUseException "LinkNameAlreadyInUseException" +// Indicates that a link could not be created due to a naming conflict. Choose +// a different name and then try again. +// +// * ErrCodeIndexedAttributeMissingException "IndexedAttributeMissingException" +// An object has been attempted to be attached to an object that does not have +// the appropriate attribute value. +// +// * ErrCodeNotIndexException "NotIndexException" +// Indicates the requested operation can only operate on index objects. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/AttachToIndex +func (c *CloudDirectory) AttachToIndex(input *AttachToIndexInput) (*AttachToIndexOutput, error) { + req, out := c.AttachToIndexRequest(input) + err := req.Send() + return out, err +} + +const opBatchRead = "BatchRead" + +// BatchReadRequest generates a "aws/request.Request" representing the +// client's request for the BatchRead operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See BatchRead for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the BatchRead method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the BatchReadRequest method. +// req, resp := client.BatchReadRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchRead +func (c *CloudDirectory) BatchReadRequest(input *BatchReadInput) (req *request.Request, output *BatchReadOutput) { + op := &request.Operation{ + Name: opBatchRead, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/batchread", + } + + if input == nil { + input = &BatchReadInput{} + } + + output = &BatchReadOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchRead API operation for Amazon CloudDirectory. +// +// Performs all the read operations in a batch. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation BatchRead for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchRead +func (c *CloudDirectory) BatchRead(input *BatchReadInput) (*BatchReadOutput, error) { + req, out := c.BatchReadRequest(input) + err := req.Send() + return out, err +} + +const opBatchWrite = "BatchWrite" + +// BatchWriteRequest generates a "aws/request.Request" representing the +// client's request for the BatchWrite operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See BatchWrite for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the BatchWrite method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the BatchWriteRequest method. +// req, resp := client.BatchWriteRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchWrite +func (c *CloudDirectory) BatchWriteRequest(input *BatchWriteInput) (req *request.Request, output *BatchWriteOutput) { + op := &request.Operation{ + Name: opBatchWrite, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/batchwrite", + } + + if input == nil { + input = &BatchWriteInput{} + } + + output = &BatchWriteOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchWrite API operation for Amazon CloudDirectory. +// +// Performs all the write operations in a batch. Either all the operations succeed +// or none. Batch writes supports only object-related operations. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation BatchWrite for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeBatchWriteException "BatchWriteException" +// A BatchWrite exception has occurred. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchWrite +func (c *CloudDirectory) BatchWrite(input *BatchWriteInput) (*BatchWriteOutput, error) { + req, out := c.BatchWriteRequest(input) + err := req.Send() + return out, err +} + +const opCreateDirectory = "CreateDirectory" + +// CreateDirectoryRequest generates a "aws/request.Request" representing the +// client's request for the CreateDirectory operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateDirectory for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateDirectory method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateDirectoryRequest method. +// req, resp := client.CreateDirectoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/CreateDirectory +func (c *CloudDirectory) CreateDirectoryRequest(input *CreateDirectoryInput) (req *request.Request, output *CreateDirectoryOutput) { + op := &request.Operation{ + Name: opCreateDirectory, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/directory/create", + } + + if input == nil { + input = &CreateDirectoryInput{} + } + + output = &CreateDirectoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateDirectory API operation for Amazon CloudDirectory. +// +// Creates a Directory by copying the published schema into the directory. A +// directory cannot be created without a schema. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation CreateDirectory for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryAlreadyExistsException "DirectoryAlreadyExistsException" +// Indicates that a Directory could not be created due to a naming conflict. +// Choose a different name and try again. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/CreateDirectory +func (c *CloudDirectory) CreateDirectory(input *CreateDirectoryInput) (*CreateDirectoryOutput, error) { + req, out := c.CreateDirectoryRequest(input) + err := req.Send() + return out, err +} + +const opCreateFacet = "CreateFacet" + +// CreateFacetRequest generates a "aws/request.Request" representing the +// client's request for the CreateFacet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateFacet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateFacet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateFacetRequest method. +// req, resp := client.CreateFacetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/CreateFacet +func (c *CloudDirectory) CreateFacetRequest(input *CreateFacetInput) (req *request.Request, output *CreateFacetOutput) { + op := &request.Operation{ + Name: opCreateFacet, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/facet/create", + } + + if input == nil { + input = &CreateFacetInput{} + } + + output = &CreateFacetOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateFacet API operation for Amazon CloudDirectory. +// +// Creates a new Facet in a schema. Facet creation is allowed only in development +// or applied schemas. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation CreateFacet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeFacetAlreadyExistsException "FacetAlreadyExistsException" +// A facet with the same name already exists. +// +// * ErrCodeInvalidRuleException "InvalidRuleException" +// Occurs when any of the rule parameter keys or values are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/CreateFacet +func (c *CloudDirectory) CreateFacet(input *CreateFacetInput) (*CreateFacetOutput, error) { + req, out := c.CreateFacetRequest(input) + err := req.Send() + return out, err +} + +const opCreateIndex = "CreateIndex" + +// CreateIndexRequest generates a "aws/request.Request" representing the +// client's request for the CreateIndex operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateIndex for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateIndex method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateIndexRequest method. +// req, resp := client.CreateIndexRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/CreateIndex +func (c *CloudDirectory) CreateIndexRequest(input *CreateIndexInput) (req *request.Request, output *CreateIndexOutput) { + op := &request.Operation{ + Name: opCreateIndex, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/index", + } + + if input == nil { + input = &CreateIndexInput{} + } + + output = &CreateIndexOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateIndex API operation for Amazon CloudDirectory. +// +// Creates an index object. See Indexing (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_indexing.html) +// for more information. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation CreateIndex for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeFacetValidationException "FacetValidationException" +// The Facet you provided was not well formed or could not be validated with +// the schema. +// +// * ErrCodeLinkNameAlreadyInUseException "LinkNameAlreadyInUseException" +// Indicates that a link could not be created due to a naming conflict. Choose +// a different name and then try again. +// +// * ErrCodeUnsupportedIndexTypeException "UnsupportedIndexTypeException" +// Indicates the requested index type is not supported. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/CreateIndex +func (c *CloudDirectory) CreateIndex(input *CreateIndexInput) (*CreateIndexOutput, error) { + req, out := c.CreateIndexRequest(input) + err := req.Send() + return out, err +} + +const opCreateObject = "CreateObject" + +// CreateObjectRequest generates a "aws/request.Request" representing the +// client's request for the CreateObject operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateObject for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateObject method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateObjectRequest method. +// req, resp := client.CreateObjectRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/CreateObject +func (c *CloudDirectory) CreateObjectRequest(input *CreateObjectInput) (req *request.Request, output *CreateObjectOutput) { + op := &request.Operation{ + Name: opCreateObject, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/object", + } + + if input == nil { + input = &CreateObjectInput{} + } + + output = &CreateObjectOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateObject API operation for Amazon CloudDirectory. +// +// Creates an object in a Directory. Additionally attaches the object to a parent, +// if a parent reference and LinkName is specified. An object is simply a collection +// of Facet attributes. You can also use this API call to create a policy object, +// if the facet from which you create the object is a policy facet. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation CreateObject for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeFacetValidationException "FacetValidationException" +// The Facet you provided was not well formed or could not be validated with +// the schema. +// +// * ErrCodeLinkNameAlreadyInUseException "LinkNameAlreadyInUseException" +// Indicates that a link could not be created due to a naming conflict. Choose +// a different name and then try again. +// +// * ErrCodeUnsupportedIndexTypeException "UnsupportedIndexTypeException" +// Indicates the requested index type is not supported. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/CreateObject +func (c *CloudDirectory) CreateObject(input *CreateObjectInput) (*CreateObjectOutput, error) { + req, out := c.CreateObjectRequest(input) + err := req.Send() + return out, err +} + +const opCreateSchema = "CreateSchema" + +// CreateSchemaRequest generates a "aws/request.Request" representing the +// client's request for the CreateSchema operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateSchema for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateSchema method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateSchemaRequest method. +// req, resp := client.CreateSchemaRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/CreateSchema +func (c *CloudDirectory) CreateSchemaRequest(input *CreateSchemaInput) (req *request.Request, output *CreateSchemaOutput) { + op := &request.Operation{ + Name: opCreateSchema, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/schema/create", + } + + if input == nil { + input = &CreateSchemaInput{} + } + + output = &CreateSchemaOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateSchema API operation for Amazon CloudDirectory. +// +// Creates a new schema in a development state. A schema can exist in three +// phases: +// +// * Development: This is a mutable phase of the schema. All new schemas +// are in the development phase. Once the schema is finalized, it can be +// published. +// +// * Published: Published schemas are immutable and have a version associated +// with them. +// +// * Applied: Applied schemas are mutable in a way that allows you to add +// new schema facets. You can also add new, nonrequired attributes to existing +// schema facets. You can apply only published schemas to directories. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation CreateSchema for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeSchemaAlreadyExistsException "SchemaAlreadyExistsException" +// Indicates that a schema could not be created due to a naming conflict. Please +// select a different name and then try again. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/CreateSchema +func (c *CloudDirectory) CreateSchema(input *CreateSchemaInput) (*CreateSchemaOutput, error) { + req, out := c.CreateSchemaRequest(input) + err := req.Send() + return out, err +} + +const opDeleteDirectory = "DeleteDirectory" + +// DeleteDirectoryRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDirectory operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteDirectory for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteDirectory method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteDirectoryRequest method. +// req, resp := client.DeleteDirectoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DeleteDirectory +func (c *CloudDirectory) DeleteDirectoryRequest(input *DeleteDirectoryInput) (req *request.Request, output *DeleteDirectoryOutput) { + op := &request.Operation{ + Name: opDeleteDirectory, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/directory", + } + + if input == nil { + input = &DeleteDirectoryInput{} + } + + output = &DeleteDirectoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteDirectory API operation for Amazon CloudDirectory. +// +// Deletes a directory. Only disabled directories can be deleted. A deleted +// directory cannot be undone. Exercise extreme caution when deleting directories. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation DeleteDirectory for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeDirectoryNotDisabledException "DirectoryNotDisabledException" +// An operation can only operate on a disabled directory. +// +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryDeletedException "DirectoryDeletedException" +// A directory that has been deleted has been attempted to be accessed. Note: +// The requested resource will eventually cease to exist. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DeleteDirectory +func (c *CloudDirectory) DeleteDirectory(input *DeleteDirectoryInput) (*DeleteDirectoryOutput, error) { + req, out := c.DeleteDirectoryRequest(input) + err := req.Send() + return out, err +} + +const opDeleteFacet = "DeleteFacet" + +// DeleteFacetRequest generates a "aws/request.Request" representing the +// client's request for the DeleteFacet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteFacet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteFacet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteFacetRequest method. +// req, resp := client.DeleteFacetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DeleteFacet +func (c *CloudDirectory) DeleteFacetRequest(input *DeleteFacetInput) (req *request.Request, output *DeleteFacetOutput) { + op := &request.Operation{ + Name: opDeleteFacet, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/facet/delete", + } + + if input == nil { + input = &DeleteFacetInput{} + } + + output = &DeleteFacetOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteFacet API operation for Amazon CloudDirectory. +// +// Deletes a given Facet. All attributes and Rules associated with the facet +// will be deleted. Only development schema facets are allowed deletion. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation DeleteFacet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeFacetNotFoundException "FacetNotFoundException" +// The specified Facet could not be found. +// +// * ErrCodeFacetInUseException "FacetInUseException" +// Occurs when deleting a facet that contains an attribute which is a target +// to an attribute reference in a different facet. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DeleteFacet +func (c *CloudDirectory) DeleteFacet(input *DeleteFacetInput) (*DeleteFacetOutput, error) { + req, out := c.DeleteFacetRequest(input) + err := req.Send() + return out, err +} + +const opDeleteObject = "DeleteObject" + +// DeleteObjectRequest generates a "aws/request.Request" representing the +// client's request for the DeleteObject operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteObject for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteObject method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteObjectRequest method. +// req, resp := client.DeleteObjectRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DeleteObject +func (c *CloudDirectory) DeleteObjectRequest(input *DeleteObjectInput) (req *request.Request, output *DeleteObjectOutput) { + op := &request.Operation{ + Name: opDeleteObject, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/object/delete", + } + + if input == nil { + input = &DeleteObjectInput{} + } + + output = &DeleteObjectOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteObject API operation for Amazon CloudDirectory. +// +// Deletes an object and its associated attributes. Only objects with no children +// and no parents can be deleted. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation DeleteObject for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeObjectNotDetachedException "ObjectNotDetachedException" +// Indicates the requested operation cannot be completed because the object +// has not been detached from the tree. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DeleteObject +func (c *CloudDirectory) DeleteObject(input *DeleteObjectInput) (*DeleteObjectOutput, error) { + req, out := c.DeleteObjectRequest(input) + err := req.Send() + return out, err +} + +const opDeleteSchema = "DeleteSchema" + +// DeleteSchemaRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSchema operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteSchema for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteSchema method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteSchemaRequest method. +// req, resp := client.DeleteSchemaRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DeleteSchema +func (c *CloudDirectory) DeleteSchemaRequest(input *DeleteSchemaInput) (req *request.Request, output *DeleteSchemaOutput) { + op := &request.Operation{ + Name: opDeleteSchema, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/schema", + } + + if input == nil { + input = &DeleteSchemaInput{} + } + + output = &DeleteSchemaOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteSchema API operation for Amazon CloudDirectory. +// +// Deletes a given schema. Schemas in a development and published state can +// only be deleted. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation DeleteSchema for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeStillContainsLinksException "StillContainsLinksException" +// The object could not be deleted because links still exist. Remove the links +// and then try the operation again. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DeleteSchema +func (c *CloudDirectory) DeleteSchema(input *DeleteSchemaInput) (*DeleteSchemaOutput, error) { + req, out := c.DeleteSchemaRequest(input) + err := req.Send() + return out, err +} + +const opDetachFromIndex = "DetachFromIndex" + +// DetachFromIndexRequest generates a "aws/request.Request" representing the +// client's request for the DetachFromIndex operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DetachFromIndex for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DetachFromIndex method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DetachFromIndexRequest method. +// req, resp := client.DetachFromIndexRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DetachFromIndex +func (c *CloudDirectory) DetachFromIndexRequest(input *DetachFromIndexInput) (req *request.Request, output *DetachFromIndexOutput) { + op := &request.Operation{ + Name: opDetachFromIndex, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/index/detach", + } + + if input == nil { + input = &DetachFromIndexInput{} + } + + output = &DetachFromIndexOutput{} + req = c.newRequest(op, input, output) + return +} + +// DetachFromIndex API operation for Amazon CloudDirectory. +// +// Detaches the specified object from the specified index. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation DetachFromIndex for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeObjectAlreadyDetachedException "ObjectAlreadyDetachedException" +// Indicates the object is not attached to the index. +// +// * ErrCodeNotIndexException "NotIndexException" +// Indicates the requested operation can only operate on index objects. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DetachFromIndex +func (c *CloudDirectory) DetachFromIndex(input *DetachFromIndexInput) (*DetachFromIndexOutput, error) { + req, out := c.DetachFromIndexRequest(input) + err := req.Send() + return out, err +} + +const opDetachObject = "DetachObject" + +// DetachObjectRequest generates a "aws/request.Request" representing the +// client's request for the DetachObject operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DetachObject for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DetachObject method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DetachObjectRequest method. +// req, resp := client.DetachObjectRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DetachObject +func (c *CloudDirectory) DetachObjectRequest(input *DetachObjectInput) (req *request.Request, output *DetachObjectOutput) { + op := &request.Operation{ + Name: opDetachObject, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/object/detach", + } + + if input == nil { + input = &DetachObjectInput{} + } + + output = &DetachObjectOutput{} + req = c.newRequest(op, input, output) + return +} + +// DetachObject API operation for Amazon CloudDirectory. +// +// Detaches a given object from the parent object. The object that is to be +// detached from the parent is specified by the link name. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation DetachObject for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DetachObject +func (c *CloudDirectory) DetachObject(input *DetachObjectInput) (*DetachObjectOutput, error) { + req, out := c.DetachObjectRequest(input) + err := req.Send() + return out, err +} + +const opDetachPolicy = "DetachPolicy" + +// DetachPolicyRequest generates a "aws/request.Request" representing the +// client's request for the DetachPolicy operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DetachPolicy for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DetachPolicy method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DetachPolicyRequest method. +// req, resp := client.DetachPolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DetachPolicy +func (c *CloudDirectory) DetachPolicyRequest(input *DetachPolicyInput) (req *request.Request, output *DetachPolicyOutput) { + op := &request.Operation{ + Name: opDetachPolicy, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/policy/detach", + } + + if input == nil { + input = &DetachPolicyInput{} + } + + output = &DetachPolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// DetachPolicy API operation for Amazon CloudDirectory. +// +// Detaches a policy from an object. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation DetachPolicy for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeNotPolicyException "NotPolicyException" +// Indicates the requested operation can only operate on policy objects. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DetachPolicy +func (c *CloudDirectory) DetachPolicy(input *DetachPolicyInput) (*DetachPolicyOutput, error) { + req, out := c.DetachPolicyRequest(input) + err := req.Send() + return out, err +} + +const opDisableDirectory = "DisableDirectory" + +// DisableDirectoryRequest generates a "aws/request.Request" representing the +// client's request for the DisableDirectory operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DisableDirectory for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DisableDirectory method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DisableDirectoryRequest method. +// req, resp := client.DisableDirectoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DisableDirectory +func (c *CloudDirectory) DisableDirectoryRequest(input *DisableDirectoryInput) (req *request.Request, output *DisableDirectoryOutput) { + op := &request.Operation{ + Name: opDisableDirectory, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/directory/disable", + } + + if input == nil { + input = &DisableDirectoryInput{} + } + + output = &DisableDirectoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisableDirectory API operation for Amazon CloudDirectory. +// +// Disables the specified directory. Disabled directories cannot be read or +// written to. Only enabled directories can be disabled. Disabled directories +// may be reenabled. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation DisableDirectory for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeDirectoryDeletedException "DirectoryDeletedException" +// A directory that has been deleted has been attempted to be accessed. Note: +// The requested resource will eventually cease to exist. +// +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DisableDirectory +func (c *CloudDirectory) DisableDirectory(input *DisableDirectoryInput) (*DisableDirectoryOutput, error) { + req, out := c.DisableDirectoryRequest(input) + err := req.Send() + return out, err +} + +const opEnableDirectory = "EnableDirectory" + +// EnableDirectoryRequest generates a "aws/request.Request" representing the +// client's request for the EnableDirectory operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See EnableDirectory for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the EnableDirectory method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the EnableDirectoryRequest method. +// req, resp := client.EnableDirectoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/EnableDirectory +func (c *CloudDirectory) EnableDirectoryRequest(input *EnableDirectoryInput) (req *request.Request, output *EnableDirectoryOutput) { + op := &request.Operation{ + Name: opEnableDirectory, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/directory/enable", + } + + if input == nil { + input = &EnableDirectoryInput{} + } + + output = &EnableDirectoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// EnableDirectory API operation for Amazon CloudDirectory. +// +// Enables the specified directory. Only disabled directories can be enabled. +// Once enabled, the directory can then be read and written to. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation EnableDirectory for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeDirectoryDeletedException "DirectoryDeletedException" +// A directory that has been deleted has been attempted to be accessed. Note: +// The requested resource will eventually cease to exist. +// +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/EnableDirectory +func (c *CloudDirectory) EnableDirectory(input *EnableDirectoryInput) (*EnableDirectoryOutput, error) { + req, out := c.EnableDirectoryRequest(input) + err := req.Send() + return out, err +} + +const opGetDirectory = "GetDirectory" + +// GetDirectoryRequest generates a "aws/request.Request" representing the +// client's request for the GetDirectory operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetDirectory for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetDirectory method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetDirectoryRequest method. +// req, resp := client.GetDirectoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/GetDirectory +func (c *CloudDirectory) GetDirectoryRequest(input *GetDirectoryInput) (req *request.Request, output *GetDirectoryOutput) { + op := &request.Operation{ + Name: opGetDirectory, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/directory/get", + } + + if input == nil { + input = &GetDirectoryInput{} + } + + output = &GetDirectoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDirectory API operation for Amazon CloudDirectory. +// +// Retrieves metadata about a directory. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation GetDirectory for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/GetDirectory +func (c *CloudDirectory) GetDirectory(input *GetDirectoryInput) (*GetDirectoryOutput, error) { + req, out := c.GetDirectoryRequest(input) + err := req.Send() + return out, err +} + +const opGetFacet = "GetFacet" + +// GetFacetRequest generates a "aws/request.Request" representing the +// client's request for the GetFacet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetFacet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetFacet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetFacetRequest method. +// req, resp := client.GetFacetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/GetFacet +func (c *CloudDirectory) GetFacetRequest(input *GetFacetInput) (req *request.Request, output *GetFacetOutput) { + op := &request.Operation{ + Name: opGetFacet, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/facet", + } + + if input == nil { + input = &GetFacetInput{} + } + + output = &GetFacetOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetFacet API operation for Amazon CloudDirectory. +// +// Gets details of the Facet, such as Facet Name, Attributes, Rules, or ObjectType. +// You can call this on all kinds of schema facets -- published, development, +// or applied. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation GetFacet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeFacetNotFoundException "FacetNotFoundException" +// The specified Facet could not be found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/GetFacet +func (c *CloudDirectory) GetFacet(input *GetFacetInput) (*GetFacetOutput, error) { + req, out := c.GetFacetRequest(input) + err := req.Send() + return out, err +} + +const opGetObjectInformation = "GetObjectInformation" + +// GetObjectInformationRequest generates a "aws/request.Request" representing the +// client's request for the GetObjectInformation operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetObjectInformation for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetObjectInformation method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetObjectInformationRequest method. +// req, resp := client.GetObjectInformationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/GetObjectInformation +func (c *CloudDirectory) GetObjectInformationRequest(input *GetObjectInformationInput) (req *request.Request, output *GetObjectInformationOutput) { + op := &request.Operation{ + Name: opGetObjectInformation, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/object/information", + } + + if input == nil { + input = &GetObjectInformationInput{} + } + + output = &GetObjectInformationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetObjectInformation API operation for Amazon CloudDirectory. +// +// Retrieves metadata about an object. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation GetObjectInformation for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/GetObjectInformation +func (c *CloudDirectory) GetObjectInformation(input *GetObjectInformationInput) (*GetObjectInformationOutput, error) { + req, out := c.GetObjectInformationRequest(input) + err := req.Send() + return out, err +} + +const opGetSchemaAsJson = "GetSchemaAsJson" + +// GetSchemaAsJsonRequest generates a "aws/request.Request" representing the +// client's request for the GetSchemaAsJson operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetSchemaAsJson for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetSchemaAsJson method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetSchemaAsJsonRequest method. +// req, resp := client.GetSchemaAsJsonRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/GetSchemaAsJson +func (c *CloudDirectory) GetSchemaAsJsonRequest(input *GetSchemaAsJsonInput) (req *request.Request, output *GetSchemaAsJsonOutput) { + op := &request.Operation{ + Name: opGetSchemaAsJson, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/schema/json", + } + + if input == nil { + input = &GetSchemaAsJsonInput{} + } + + output = &GetSchemaAsJsonOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetSchemaAsJson API operation for Amazon CloudDirectory. +// +// Retrieves a JSON representation of the schema. See JSON Schema Format (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_schemas.html#jsonformat) +// for more information. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation GetSchemaAsJson for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/GetSchemaAsJson +func (c *CloudDirectory) GetSchemaAsJson(input *GetSchemaAsJsonInput) (*GetSchemaAsJsonOutput, error) { + req, out := c.GetSchemaAsJsonRequest(input) + err := req.Send() + return out, err +} + +const opListAppliedSchemaArns = "ListAppliedSchemaArns" + +// ListAppliedSchemaArnsRequest generates a "aws/request.Request" representing the +// client's request for the ListAppliedSchemaArns operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListAppliedSchemaArns for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListAppliedSchemaArns method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListAppliedSchemaArnsRequest method. +// req, resp := client.ListAppliedSchemaArnsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListAppliedSchemaArns +func (c *CloudDirectory) ListAppliedSchemaArnsRequest(input *ListAppliedSchemaArnsInput) (req *request.Request, output *ListAppliedSchemaArnsOutput) { + op := &request.Operation{ + Name: opListAppliedSchemaArns, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/schema/applied", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListAppliedSchemaArnsInput{} + } + + output = &ListAppliedSchemaArnsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAppliedSchemaArns API operation for Amazon CloudDirectory. +// +// Lists schemas applied to a directory. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation ListAppliedSchemaArns for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Indicates that the NextToken value is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListAppliedSchemaArns +func (c *CloudDirectory) ListAppliedSchemaArns(input *ListAppliedSchemaArnsInput) (*ListAppliedSchemaArnsOutput, error) { + req, out := c.ListAppliedSchemaArnsRequest(input) + err := req.Send() + return out, err +} + +// ListAppliedSchemaArnsPages iterates over the pages of a ListAppliedSchemaArns operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListAppliedSchemaArns method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListAppliedSchemaArns operation. +// pageNum := 0 +// err := client.ListAppliedSchemaArnsPages(params, +// func(page *ListAppliedSchemaArnsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CloudDirectory) ListAppliedSchemaArnsPages(input *ListAppliedSchemaArnsInput, fn func(p *ListAppliedSchemaArnsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListAppliedSchemaArnsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListAppliedSchemaArnsOutput), lastPage) + }) +} + +const opListAttachedIndices = "ListAttachedIndices" + +// ListAttachedIndicesRequest generates a "aws/request.Request" representing the +// client's request for the ListAttachedIndices operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListAttachedIndices for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListAttachedIndices method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListAttachedIndicesRequest method. +// req, resp := client.ListAttachedIndicesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListAttachedIndices +func (c *CloudDirectory) ListAttachedIndicesRequest(input *ListAttachedIndicesInput) (req *request.Request, output *ListAttachedIndicesOutput) { + op := &request.Operation{ + Name: opListAttachedIndices, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/object/indices", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListAttachedIndicesInput{} + } + + output = &ListAttachedIndicesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAttachedIndices API operation for Amazon CloudDirectory. +// +// Lists indices attached to an object. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation ListAttachedIndices for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListAttachedIndices +func (c *CloudDirectory) ListAttachedIndices(input *ListAttachedIndicesInput) (*ListAttachedIndicesOutput, error) { + req, out := c.ListAttachedIndicesRequest(input) + err := req.Send() + return out, err +} + +// ListAttachedIndicesPages iterates over the pages of a ListAttachedIndices operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListAttachedIndices method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListAttachedIndices operation. +// pageNum := 0 +// err := client.ListAttachedIndicesPages(params, +// func(page *ListAttachedIndicesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CloudDirectory) ListAttachedIndicesPages(input *ListAttachedIndicesInput, fn func(p *ListAttachedIndicesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListAttachedIndicesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListAttachedIndicesOutput), lastPage) + }) +} + +const opListDevelopmentSchemaArns = "ListDevelopmentSchemaArns" + +// ListDevelopmentSchemaArnsRequest generates a "aws/request.Request" representing the +// client's request for the ListDevelopmentSchemaArns operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListDevelopmentSchemaArns for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListDevelopmentSchemaArns method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListDevelopmentSchemaArnsRequest method. +// req, resp := client.ListDevelopmentSchemaArnsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListDevelopmentSchemaArns +func (c *CloudDirectory) ListDevelopmentSchemaArnsRequest(input *ListDevelopmentSchemaArnsInput) (req *request.Request, output *ListDevelopmentSchemaArnsOutput) { + op := &request.Operation{ + Name: opListDevelopmentSchemaArns, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/schema/development", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListDevelopmentSchemaArnsInput{} + } + + output = &ListDevelopmentSchemaArnsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListDevelopmentSchemaArns API operation for Amazon CloudDirectory. +// +// Retrieves the ARNs of schemas in the development state. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation ListDevelopmentSchemaArns for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Indicates that the NextToken value is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListDevelopmentSchemaArns +func (c *CloudDirectory) ListDevelopmentSchemaArns(input *ListDevelopmentSchemaArnsInput) (*ListDevelopmentSchemaArnsOutput, error) { + req, out := c.ListDevelopmentSchemaArnsRequest(input) + err := req.Send() + return out, err +} + +// ListDevelopmentSchemaArnsPages iterates over the pages of a ListDevelopmentSchemaArns operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListDevelopmentSchemaArns method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListDevelopmentSchemaArns operation. +// pageNum := 0 +// err := client.ListDevelopmentSchemaArnsPages(params, +// func(page *ListDevelopmentSchemaArnsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CloudDirectory) ListDevelopmentSchemaArnsPages(input *ListDevelopmentSchemaArnsInput, fn func(p *ListDevelopmentSchemaArnsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListDevelopmentSchemaArnsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListDevelopmentSchemaArnsOutput), lastPage) + }) +} + +const opListDirectories = "ListDirectories" + +// ListDirectoriesRequest generates a "aws/request.Request" representing the +// client's request for the ListDirectories operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListDirectories for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListDirectories method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListDirectoriesRequest method. +// req, resp := client.ListDirectoriesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListDirectories +func (c *CloudDirectory) ListDirectoriesRequest(input *ListDirectoriesInput) (req *request.Request, output *ListDirectoriesOutput) { + op := &request.Operation{ + Name: opListDirectories, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/directory/list", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListDirectoriesInput{} + } + + output = &ListDirectoriesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListDirectories API operation for Amazon CloudDirectory. +// +// Lists directories created within an account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation ListDirectories for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Indicates that the NextToken value is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListDirectories +func (c *CloudDirectory) ListDirectories(input *ListDirectoriesInput) (*ListDirectoriesOutput, error) { + req, out := c.ListDirectoriesRequest(input) + err := req.Send() + return out, err +} + +// ListDirectoriesPages iterates over the pages of a ListDirectories operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListDirectories method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListDirectories operation. +// pageNum := 0 +// err := client.ListDirectoriesPages(params, +// func(page *ListDirectoriesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CloudDirectory) ListDirectoriesPages(input *ListDirectoriesInput, fn func(p *ListDirectoriesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListDirectoriesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListDirectoriesOutput), lastPage) + }) +} + +const opListFacetAttributes = "ListFacetAttributes" + +// ListFacetAttributesRequest generates a "aws/request.Request" representing the +// client's request for the ListFacetAttributes operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListFacetAttributes for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListFacetAttributes method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListFacetAttributesRequest method. +// req, resp := client.ListFacetAttributesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListFacetAttributes +func (c *CloudDirectory) ListFacetAttributesRequest(input *ListFacetAttributesInput) (req *request.Request, output *ListFacetAttributesOutput) { + op := &request.Operation{ + Name: opListFacetAttributes, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/facet/attributes", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListFacetAttributesInput{} + } + + output = &ListFacetAttributesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListFacetAttributes API operation for Amazon CloudDirectory. +// +// Retrieves attributes attached to the facet. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation ListFacetAttributes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeFacetNotFoundException "FacetNotFoundException" +// The specified Facet could not be found. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Indicates that the NextToken value is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListFacetAttributes +func (c *CloudDirectory) ListFacetAttributes(input *ListFacetAttributesInput) (*ListFacetAttributesOutput, error) { + req, out := c.ListFacetAttributesRequest(input) + err := req.Send() + return out, err +} + +// ListFacetAttributesPages iterates over the pages of a ListFacetAttributes operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListFacetAttributes method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListFacetAttributes operation. +// pageNum := 0 +// err := client.ListFacetAttributesPages(params, +// func(page *ListFacetAttributesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CloudDirectory) ListFacetAttributesPages(input *ListFacetAttributesInput, fn func(p *ListFacetAttributesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListFacetAttributesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListFacetAttributesOutput), lastPage) + }) +} + +const opListFacetNames = "ListFacetNames" + +// ListFacetNamesRequest generates a "aws/request.Request" representing the +// client's request for the ListFacetNames operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListFacetNames for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListFacetNames method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListFacetNamesRequest method. +// req, resp := client.ListFacetNamesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListFacetNames +func (c *CloudDirectory) ListFacetNamesRequest(input *ListFacetNamesInput) (req *request.Request, output *ListFacetNamesOutput) { + op := &request.Operation{ + Name: opListFacetNames, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/facet/list", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListFacetNamesInput{} + } + + output = &ListFacetNamesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListFacetNames API operation for Amazon CloudDirectory. +// +// Retrieves the names of facets that exist in a schema. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation ListFacetNames for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Indicates that the NextToken value is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListFacetNames +func (c *CloudDirectory) ListFacetNames(input *ListFacetNamesInput) (*ListFacetNamesOutput, error) { + req, out := c.ListFacetNamesRequest(input) + err := req.Send() + return out, err +} + +// ListFacetNamesPages iterates over the pages of a ListFacetNames operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListFacetNames method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListFacetNames operation. +// pageNum := 0 +// err := client.ListFacetNamesPages(params, +// func(page *ListFacetNamesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CloudDirectory) ListFacetNamesPages(input *ListFacetNamesInput, fn func(p *ListFacetNamesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListFacetNamesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListFacetNamesOutput), lastPage) + }) +} + +const opListIndex = "ListIndex" + +// ListIndexRequest generates a "aws/request.Request" representing the +// client's request for the ListIndex operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListIndex for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListIndex method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListIndexRequest method. +// req, resp := client.ListIndexRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListIndex +func (c *CloudDirectory) ListIndexRequest(input *ListIndexInput) (req *request.Request, output *ListIndexOutput) { + op := &request.Operation{ + Name: opListIndex, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/index/targets", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListIndexInput{} + } + + output = &ListIndexOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListIndex API operation for Amazon CloudDirectory. +// +// Lists objects attached to the specified index. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation ListIndex for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeNotIndexException "NotIndexException" +// Indicates the requested operation can only operate on index objects. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListIndex +func (c *CloudDirectory) ListIndex(input *ListIndexInput) (*ListIndexOutput, error) { + req, out := c.ListIndexRequest(input) + err := req.Send() + return out, err +} + +// ListIndexPages iterates over the pages of a ListIndex operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListIndex method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListIndex operation. +// pageNum := 0 +// err := client.ListIndexPages(params, +// func(page *ListIndexOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CloudDirectory) ListIndexPages(input *ListIndexInput, fn func(p *ListIndexOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListIndexRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListIndexOutput), lastPage) + }) +} + +const opListObjectAttributes = "ListObjectAttributes" + +// ListObjectAttributesRequest generates a "aws/request.Request" representing the +// client's request for the ListObjectAttributes operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListObjectAttributes for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListObjectAttributes method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListObjectAttributesRequest method. +// req, resp := client.ListObjectAttributesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListObjectAttributes +func (c *CloudDirectory) ListObjectAttributesRequest(input *ListObjectAttributesInput) (req *request.Request, output *ListObjectAttributesOutput) { + op := &request.Operation{ + Name: opListObjectAttributes, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/object/attributes", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListObjectAttributesInput{} + } + + output = &ListObjectAttributesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListObjectAttributes API operation for Amazon CloudDirectory. +// +// Lists all attributes associated with an object. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation ListObjectAttributes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Indicates that the NextToken value is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListObjectAttributes +func (c *CloudDirectory) ListObjectAttributes(input *ListObjectAttributesInput) (*ListObjectAttributesOutput, error) { + req, out := c.ListObjectAttributesRequest(input) + err := req.Send() + return out, err +} + +// ListObjectAttributesPages iterates over the pages of a ListObjectAttributes operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListObjectAttributes method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListObjectAttributes operation. +// pageNum := 0 +// err := client.ListObjectAttributesPages(params, +// func(page *ListObjectAttributesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CloudDirectory) ListObjectAttributesPages(input *ListObjectAttributesInput, fn func(p *ListObjectAttributesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListObjectAttributesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListObjectAttributesOutput), lastPage) + }) +} + +const opListObjectChildren = "ListObjectChildren" + +// ListObjectChildrenRequest generates a "aws/request.Request" representing the +// client's request for the ListObjectChildren operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListObjectChildren for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListObjectChildren method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListObjectChildrenRequest method. +// req, resp := client.ListObjectChildrenRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListObjectChildren +func (c *CloudDirectory) ListObjectChildrenRequest(input *ListObjectChildrenInput) (req *request.Request, output *ListObjectChildrenOutput) { + op := &request.Operation{ + Name: opListObjectChildren, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/object/children", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListObjectChildrenInput{} + } + + output = &ListObjectChildrenOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListObjectChildren API operation for Amazon CloudDirectory. +// +// Returns a paginated list of child objects associated with a given object. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation ListObjectChildren for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Indicates that the NextToken value is not valid. +// +// * ErrCodeNotNodeException "NotNodeException" +// Occurs when any invalid operations are performed on an object which is not +// a node, such as calling ListObjectChildren for a leaf node object. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListObjectChildren +func (c *CloudDirectory) ListObjectChildren(input *ListObjectChildrenInput) (*ListObjectChildrenOutput, error) { + req, out := c.ListObjectChildrenRequest(input) + err := req.Send() + return out, err +} + +// ListObjectChildrenPages iterates over the pages of a ListObjectChildren operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListObjectChildren method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListObjectChildren operation. +// pageNum := 0 +// err := client.ListObjectChildrenPages(params, +// func(page *ListObjectChildrenOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CloudDirectory) ListObjectChildrenPages(input *ListObjectChildrenInput, fn func(p *ListObjectChildrenOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListObjectChildrenRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListObjectChildrenOutput), lastPage) + }) +} + +const opListObjectParentPaths = "ListObjectParentPaths" + +// ListObjectParentPathsRequest generates a "aws/request.Request" representing the +// client's request for the ListObjectParentPaths operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListObjectParentPaths for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListObjectParentPaths method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListObjectParentPathsRequest method. +// req, resp := client.ListObjectParentPathsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListObjectParentPaths +func (c *CloudDirectory) ListObjectParentPathsRequest(input *ListObjectParentPathsInput) (req *request.Request, output *ListObjectParentPathsOutput) { + op := &request.Operation{ + Name: opListObjectParentPaths, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/object/parentpaths", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListObjectParentPathsInput{} + } + + output = &ListObjectParentPathsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListObjectParentPaths API operation for Amazon CloudDirectory. +// +// Retrieves all available parent paths for any object type such as node, leaf +// node, policy node, and index node objects. For more information about objects, +// see Directory Structure (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_key_concepts.html#dirstructure). +// +// Use this API to evaluate all parents for an object. The call returns all +// objects from the root of the directory up to the requested object. The API +// returns the number of paths based on user-defined MaxResults, in case there +// are multiple paths to the parent. The order of the paths and nodes returned +// is consistent among multiple API calls unless the objects are deleted or +// moved. Paths not leading to directory root are ignored from the target object. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation ListObjectParentPaths for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Indicates that the NextToken value is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListObjectParentPaths +func (c *CloudDirectory) ListObjectParentPaths(input *ListObjectParentPathsInput) (*ListObjectParentPathsOutput, error) { + req, out := c.ListObjectParentPathsRequest(input) + err := req.Send() + return out, err +} + +// ListObjectParentPathsPages iterates over the pages of a ListObjectParentPaths operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListObjectParentPaths method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListObjectParentPaths operation. +// pageNum := 0 +// err := client.ListObjectParentPathsPages(params, +// func(page *ListObjectParentPathsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CloudDirectory) ListObjectParentPathsPages(input *ListObjectParentPathsInput, fn func(p *ListObjectParentPathsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListObjectParentPathsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListObjectParentPathsOutput), lastPage) + }) +} + +const opListObjectParents = "ListObjectParents" + +// ListObjectParentsRequest generates a "aws/request.Request" representing the +// client's request for the ListObjectParents operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListObjectParents for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListObjectParents method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListObjectParentsRequest method. +// req, resp := client.ListObjectParentsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListObjectParents +func (c *CloudDirectory) ListObjectParentsRequest(input *ListObjectParentsInput) (req *request.Request, output *ListObjectParentsOutput) { + op := &request.Operation{ + Name: opListObjectParents, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/object/parent", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListObjectParentsInput{} + } + + output = &ListObjectParentsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListObjectParents API operation for Amazon CloudDirectory. +// +// Lists parent objects associated with a given object in pagination fashion. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation ListObjectParents for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Indicates that the NextToken value is not valid. +// +// * ErrCodeCannotListParentOfRootException "CannotListParentOfRootException" +// Cannot list the parents of a Directory root. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListObjectParents +func (c *CloudDirectory) ListObjectParents(input *ListObjectParentsInput) (*ListObjectParentsOutput, error) { + req, out := c.ListObjectParentsRequest(input) + err := req.Send() + return out, err +} + +// ListObjectParentsPages iterates over the pages of a ListObjectParents operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListObjectParents method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListObjectParents operation. +// pageNum := 0 +// err := client.ListObjectParentsPages(params, +// func(page *ListObjectParentsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CloudDirectory) ListObjectParentsPages(input *ListObjectParentsInput, fn func(p *ListObjectParentsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListObjectParentsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListObjectParentsOutput), lastPage) + }) +} + +const opListObjectPolicies = "ListObjectPolicies" + +// ListObjectPoliciesRequest generates a "aws/request.Request" representing the +// client's request for the ListObjectPolicies operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListObjectPolicies for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListObjectPolicies method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListObjectPoliciesRequest method. +// req, resp := client.ListObjectPoliciesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListObjectPolicies +func (c *CloudDirectory) ListObjectPoliciesRequest(input *ListObjectPoliciesInput) (req *request.Request, output *ListObjectPoliciesOutput) { + op := &request.Operation{ + Name: opListObjectPolicies, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/object/policy", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListObjectPoliciesInput{} + } + + output = &ListObjectPoliciesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListObjectPolicies API operation for Amazon CloudDirectory. +// +// Returns policies attached to an object in pagination fashion. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation ListObjectPolicies for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Indicates that the NextToken value is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListObjectPolicies +func (c *CloudDirectory) ListObjectPolicies(input *ListObjectPoliciesInput) (*ListObjectPoliciesOutput, error) { + req, out := c.ListObjectPoliciesRequest(input) + err := req.Send() + return out, err +} + +// ListObjectPoliciesPages iterates over the pages of a ListObjectPolicies operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListObjectPolicies method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListObjectPolicies operation. +// pageNum := 0 +// err := client.ListObjectPoliciesPages(params, +// func(page *ListObjectPoliciesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CloudDirectory) ListObjectPoliciesPages(input *ListObjectPoliciesInput, fn func(p *ListObjectPoliciesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListObjectPoliciesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListObjectPoliciesOutput), lastPage) + }) +} + +const opListPolicyAttachments = "ListPolicyAttachments" + +// ListPolicyAttachmentsRequest generates a "aws/request.Request" representing the +// client's request for the ListPolicyAttachments operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListPolicyAttachments for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListPolicyAttachments method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListPolicyAttachmentsRequest method. +// req, resp := client.ListPolicyAttachmentsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListPolicyAttachments +func (c *CloudDirectory) ListPolicyAttachmentsRequest(input *ListPolicyAttachmentsInput) (req *request.Request, output *ListPolicyAttachmentsOutput) { + op := &request.Operation{ + Name: opListPolicyAttachments, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/policy/attachment", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListPolicyAttachmentsInput{} + } + + output = &ListPolicyAttachmentsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListPolicyAttachments API operation for Amazon CloudDirectory. +// +// Returns all of the ObjectIdentifiers to which a given policy is attached. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation ListPolicyAttachments for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Indicates that the NextToken value is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeNotPolicyException "NotPolicyException" +// Indicates the requested operation can only operate on policy objects. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListPolicyAttachments +func (c *CloudDirectory) ListPolicyAttachments(input *ListPolicyAttachmentsInput) (*ListPolicyAttachmentsOutput, error) { + req, out := c.ListPolicyAttachmentsRequest(input) + err := req.Send() + return out, err +} + +// ListPolicyAttachmentsPages iterates over the pages of a ListPolicyAttachments operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListPolicyAttachments method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListPolicyAttachments operation. +// pageNum := 0 +// err := client.ListPolicyAttachmentsPages(params, +// func(page *ListPolicyAttachmentsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CloudDirectory) ListPolicyAttachmentsPages(input *ListPolicyAttachmentsInput, fn func(p *ListPolicyAttachmentsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListPolicyAttachmentsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListPolicyAttachmentsOutput), lastPage) + }) +} + +const opListPublishedSchemaArns = "ListPublishedSchemaArns" + +// ListPublishedSchemaArnsRequest generates a "aws/request.Request" representing the +// client's request for the ListPublishedSchemaArns operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListPublishedSchemaArns for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListPublishedSchemaArns method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListPublishedSchemaArnsRequest method. +// req, resp := client.ListPublishedSchemaArnsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListPublishedSchemaArns +func (c *CloudDirectory) ListPublishedSchemaArnsRequest(input *ListPublishedSchemaArnsInput) (req *request.Request, output *ListPublishedSchemaArnsOutput) { + op := &request.Operation{ + Name: opListPublishedSchemaArns, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/schema/published", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListPublishedSchemaArnsInput{} + } + + output = &ListPublishedSchemaArnsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListPublishedSchemaArns API operation for Amazon CloudDirectory. +// +// Retrieves published schema ARNs. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation ListPublishedSchemaArns for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Indicates that the NextToken value is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListPublishedSchemaArns +func (c *CloudDirectory) ListPublishedSchemaArns(input *ListPublishedSchemaArnsInput) (*ListPublishedSchemaArnsOutput, error) { + req, out := c.ListPublishedSchemaArnsRequest(input) + err := req.Send() + return out, err +} + +// ListPublishedSchemaArnsPages iterates over the pages of a ListPublishedSchemaArns operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListPublishedSchemaArns method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListPublishedSchemaArns operation. +// pageNum := 0 +// err := client.ListPublishedSchemaArnsPages(params, +// func(page *ListPublishedSchemaArnsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CloudDirectory) ListPublishedSchemaArnsPages(input *ListPublishedSchemaArnsInput, fn func(p *ListPublishedSchemaArnsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListPublishedSchemaArnsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListPublishedSchemaArnsOutput), lastPage) + }) +} + +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListTagsForResource for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListTagsForResource method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListTagsForResourceRequest method. +// req, resp := client.ListTagsForResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListTagsForResource +func (c *CloudDirectory) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { + op := &request.Operation{ + Name: opListTagsForResource, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/tags", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListTagsForResourceInput{} + } + + output = &ListTagsForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagsForResource API operation for Amazon CloudDirectory. +// +// Returns tags for a resource. Tagging is currently supported only for directories +// with a limit of 50 tags per directory. All 50 tags are returned for a given +// directory with this API call. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeInvalidTaggingRequestException "InvalidTaggingRequestException" +// Can occur for multiple reasons such as when you tag a resource that doesn’t +// exist or if you specify a higher number of tags for a resource than the allowed +// limit. Allowed limit is 50 tags per resource. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListTagsForResource +func (c *CloudDirectory) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + err := req.Send() + return out, err +} + +// ListTagsForResourcePages iterates over the pages of a ListTagsForResource operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListTagsForResource method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListTagsForResource operation. +// pageNum := 0 +// err := client.ListTagsForResourcePages(params, +// func(page *ListTagsForResourceOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CloudDirectory) ListTagsForResourcePages(input *ListTagsForResourceInput, fn func(p *ListTagsForResourceOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListTagsForResourceRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListTagsForResourceOutput), lastPage) + }) +} + +const opLookupPolicy = "LookupPolicy" + +// LookupPolicyRequest generates a "aws/request.Request" representing the +// client's request for the LookupPolicy operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See LookupPolicy for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the LookupPolicy method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the LookupPolicyRequest method. +// req, resp := client.LookupPolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/LookupPolicy +func (c *CloudDirectory) LookupPolicyRequest(input *LookupPolicyInput) (req *request.Request, output *LookupPolicyOutput) { + op := &request.Operation{ + Name: opLookupPolicy, + HTTPMethod: "POST", + HTTPPath: "/amazonclouddirectory/2017-01-11/policy/lookup", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &LookupPolicyInput{} + } + + output = &LookupPolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// LookupPolicy API operation for Amazon CloudDirectory. +// +// Lists all policies from the root of the Directory to the object specified. +// If there are no policies present, an empty list is returned. If policies +// are present, and if some objects don't have the policies attached, it returns +// the ObjectIdentifier for such objects. If policies are present, it returns +// ObjectIdentifier, policyId, and policyType. Paths that don't lead to the +// root from the target object are ignored. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation LookupPolicy for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Indicates that the NextToken value is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/LookupPolicy +func (c *CloudDirectory) LookupPolicy(input *LookupPolicyInput) (*LookupPolicyOutput, error) { + req, out := c.LookupPolicyRequest(input) + err := req.Send() + return out, err +} + +// LookupPolicyPages iterates over the pages of a LookupPolicy operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See LookupPolicy method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a LookupPolicy operation. +// pageNum := 0 +// err := client.LookupPolicyPages(params, +// func(page *LookupPolicyOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CloudDirectory) LookupPolicyPages(input *LookupPolicyInput, fn func(p *LookupPolicyOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.LookupPolicyRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*LookupPolicyOutput), lastPage) + }) +} + +const opPublishSchema = "PublishSchema" + +// PublishSchemaRequest generates a "aws/request.Request" representing the +// client's request for the PublishSchema operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See PublishSchema for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the PublishSchema method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the PublishSchemaRequest method. +// req, resp := client.PublishSchemaRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/PublishSchema +func (c *CloudDirectory) PublishSchemaRequest(input *PublishSchemaInput) (req *request.Request, output *PublishSchemaOutput) { + op := &request.Operation{ + Name: opPublishSchema, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/schema/publish", + } + + if input == nil { + input = &PublishSchemaInput{} + } + + output = &PublishSchemaOutput{} + req = c.newRequest(op, input, output) + return +} + +// PublishSchema API operation for Amazon CloudDirectory. +// +// Publishes a development schema with a version. If description and attributes +// are specified, PublishSchema overrides the development schema description +// and attributes. If not, the development schema description and attributes +// are used. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation PublishSchema for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeSchemaAlreadyPublishedException "SchemaAlreadyPublishedException" +// Indicates a schema is already published. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/PublishSchema +func (c *CloudDirectory) PublishSchema(input *PublishSchemaInput) (*PublishSchemaOutput, error) { + req, out := c.PublishSchemaRequest(input) + err := req.Send() + return out, err +} + +const opPutSchemaFromJson = "PutSchemaFromJson" + +// PutSchemaFromJsonRequest generates a "aws/request.Request" representing the +// client's request for the PutSchemaFromJson operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See PutSchemaFromJson for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the PutSchemaFromJson method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the PutSchemaFromJsonRequest method. +// req, resp := client.PutSchemaFromJsonRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/PutSchemaFromJson +func (c *CloudDirectory) PutSchemaFromJsonRequest(input *PutSchemaFromJsonInput) (req *request.Request, output *PutSchemaFromJsonOutput) { + op := &request.Operation{ + Name: opPutSchemaFromJson, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/schema/json", + } + + if input == nil { + input = &PutSchemaFromJsonInput{} + } + + output = &PutSchemaFromJsonOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutSchemaFromJson API operation for Amazon CloudDirectory. +// +// Allows a schema to be updated using JSON upload. Only available for development +// schemas. See JSON Schema Format (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_schemas.html#jsonformat) +// for more information. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation PutSchemaFromJson for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeInvalidSchemaDocException "InvalidSchemaDocException" +// Indicates that the provided SchemaDoc value is not valid. +// +// * ErrCodeInvalidRuleException "InvalidRuleException" +// Occurs when any of the rule parameter keys or values are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/PutSchemaFromJson +func (c *CloudDirectory) PutSchemaFromJson(input *PutSchemaFromJsonInput) (*PutSchemaFromJsonOutput, error) { + req, out := c.PutSchemaFromJsonRequest(input) + err := req.Send() + return out, err +} + +const opRemoveFacetFromObject = "RemoveFacetFromObject" + +// RemoveFacetFromObjectRequest generates a "aws/request.Request" representing the +// client's request for the RemoveFacetFromObject operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See RemoveFacetFromObject for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the RemoveFacetFromObject method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the RemoveFacetFromObjectRequest method. +// req, resp := client.RemoveFacetFromObjectRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/RemoveFacetFromObject +func (c *CloudDirectory) RemoveFacetFromObjectRequest(input *RemoveFacetFromObjectInput) (req *request.Request, output *RemoveFacetFromObjectOutput) { + op := &request.Operation{ + Name: opRemoveFacetFromObject, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/object/facets/delete", + } + + if input == nil { + input = &RemoveFacetFromObjectInput{} + } + + output = &RemoveFacetFromObjectOutput{} + req = c.newRequest(op, input, output) + return +} + +// RemoveFacetFromObject API operation for Amazon CloudDirectory. +// +// Removes the specified facet from the specified object. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation RemoveFacetFromObject for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeFacetValidationException "FacetValidationException" +// The Facet you provided was not well formed or could not be validated with +// the schema. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/RemoveFacetFromObject +func (c *CloudDirectory) RemoveFacetFromObject(input *RemoveFacetFromObjectInput) (*RemoveFacetFromObjectOutput, error) { + req, out := c.RemoveFacetFromObjectRequest(input) + err := req.Send() + return out, err +} + +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See TagResource for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the TagResource method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/TagResource +func (c *CloudDirectory) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/tags/add", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// TagResource API operation for Amazon CloudDirectory. +// +// API for adding tags to a resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation TagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeInvalidTaggingRequestException "InvalidTaggingRequestException" +// Can occur for multiple reasons such as when you tag a resource that doesn’t +// exist or if you specify a higher number of tags for a resource than the allowed +// limit. Allowed limit is 50 tags per resource. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/TagResource +func (c *CloudDirectory) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + err := req.Send() + return out, err +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UntagResource for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UntagResource method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/UntagResource +func (c *CloudDirectory) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/tags/remove", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// UntagResource API operation for Amazon CloudDirectory. +// +// API for removing tags from a resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation UntagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeInvalidTaggingRequestException "InvalidTaggingRequestException" +// Can occur for multiple reasons such as when you tag a resource that doesn’t +// exist or if you specify a higher number of tags for a resource than the allowed +// limit. Allowed limit is 50 tags per resource. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/UntagResource +func (c *CloudDirectory) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + err := req.Send() + return out, err +} + +const opUpdateFacet = "UpdateFacet" + +// UpdateFacetRequest generates a "aws/request.Request" representing the +// client's request for the UpdateFacet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateFacet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateFacet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateFacetRequest method. +// req, resp := client.UpdateFacetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/UpdateFacet +func (c *CloudDirectory) UpdateFacetRequest(input *UpdateFacetInput) (req *request.Request, output *UpdateFacetOutput) { + op := &request.Operation{ + Name: opUpdateFacet, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/facet", + } + + if input == nil { + input = &UpdateFacetInput{} + } + + output = &UpdateFacetOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateFacet API operation for Amazon CloudDirectory. +// +// Does the following: +// +// Adds new Attributes, Rules, or ObjectTypes. +// +// Updates existing Attributes, Rules, or ObjectTypes. +// +// Deletes existing Attributes, Rules, or ObjectTypes. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation UpdateFacet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeInvalidFacetUpdateException "InvalidFacetUpdateException" +// An attempt to modify a Facet resulted in an invalid schema exception. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeFacetNotFoundException "FacetNotFoundException" +// The specified Facet could not be found. +// +// * ErrCodeInvalidRuleException "InvalidRuleException" +// Occurs when any of the rule parameter keys or values are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/UpdateFacet +func (c *CloudDirectory) UpdateFacet(input *UpdateFacetInput) (*UpdateFacetOutput, error) { + req, out := c.UpdateFacetRequest(input) + err := req.Send() + return out, err +} + +const opUpdateObjectAttributes = "UpdateObjectAttributes" + +// UpdateObjectAttributesRequest generates a "aws/request.Request" representing the +// client's request for the UpdateObjectAttributes operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateObjectAttributes for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateObjectAttributes method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateObjectAttributesRequest method. +// req, resp := client.UpdateObjectAttributesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/UpdateObjectAttributes +func (c *CloudDirectory) UpdateObjectAttributesRequest(input *UpdateObjectAttributesInput) (req *request.Request, output *UpdateObjectAttributesOutput) { + op := &request.Operation{ + Name: opUpdateObjectAttributes, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/object/update", + } + + if input == nil { + input = &UpdateObjectAttributesInput{} + } + + output = &UpdateObjectAttributesOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateObjectAttributes API operation for Amazon CloudDirectory. +// +// Updates a given object's attributes. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation UpdateObjectAttributes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// An operation can only operate on a directory that is not enabled. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeFacetValidationException "FacetValidationException" +// The Facet you provided was not well formed or could not be validated with +// the schema. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/UpdateObjectAttributes +func (c *CloudDirectory) UpdateObjectAttributes(input *UpdateObjectAttributesInput) (*UpdateObjectAttributesOutput, error) { + req, out := c.UpdateObjectAttributesRequest(input) + err := req.Send() + return out, err +} + +const opUpdateSchema = "UpdateSchema" + +// UpdateSchemaRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSchema operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateSchema for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateSchema method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateSchemaRequest method. +// req, resp := client.UpdateSchemaRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/UpdateSchema +func (c *CloudDirectory) UpdateSchemaRequest(input *UpdateSchemaInput) (req *request.Request, output *UpdateSchemaOutput) { + op := &request.Operation{ + Name: opUpdateSchema, + HTTPMethod: "PUT", + HTTPPath: "/amazonclouddirectory/2017-01-11/schema/update", + } + + if input == nil { + input = &UpdateSchemaInput{} + } + + output = &UpdateSchemaOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSchema API operation for Amazon CloudDirectory. +// +// Updates the schema name with a new name. Only development schema names can +// be updated. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudDirectory's +// API operation UpdateSchema for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// Indicates that the provided ARN value is not valid. +// +// * ErrCodeRetryableConflictException "RetryableConflictException" +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. This generally occurs when the previous write did not have time +// to propagate to the host serving the current request. A retry (with appropriate +// backoff logic) is the recommended response to this exception. +// +// * ErrCodeValidationException "ValidationException" +// Indicates your request is malformed in some manner. See the exception message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// for more information. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access denied. Check your permissions. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/UpdateSchema +func (c *CloudDirectory) UpdateSchema(input *UpdateSchemaInput) (*UpdateSchemaOutput, error) { + req, out := c.UpdateSchemaRequest(input) + err := req.Send() + return out, err +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/AddFacetToObjectRequest +type AddFacetToObjectInput struct { + _ struct{} `type:"structure"` + + // ARN associated with the Directory where the object resides. For more information, + // see arns. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // Attributes on the facet you are adding to the object. + ObjectAttributeList []*AttributeKeyAndValue `type:"list"` + + // A reference to the object you are adding the specified facet to. + // + // ObjectReference is a required field + ObjectReference *ObjectReference `type:"structure" required:"true"` + + // Identifiers for the facet that you are adding to the object. + // + // SchemaFacet is a required field + SchemaFacet *SchemaFacet `type:"structure" required:"true"` +} + +// String returns the string representation +func (s AddFacetToObjectInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddFacetToObjectInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AddFacetToObjectInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AddFacetToObjectInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.ObjectReference == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectReference")) + } + if s.SchemaFacet == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaFacet")) + } + if s.ObjectAttributeList != nil { + for i, v := range s.ObjectAttributeList { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ObjectAttributeList", i), err.(request.ErrInvalidParams)) + } + } + } + if s.SchemaFacet != nil { + if err := s.SchemaFacet.Validate(); err != nil { + invalidParams.AddNested("SchemaFacet", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *AddFacetToObjectInput) SetDirectoryArn(v string) *AddFacetToObjectInput { + s.DirectoryArn = &v + return s +} + +// SetObjectAttributeList sets the ObjectAttributeList field's value. +func (s *AddFacetToObjectInput) SetObjectAttributeList(v []*AttributeKeyAndValue) *AddFacetToObjectInput { + s.ObjectAttributeList = v + return s +} + +// SetObjectReference sets the ObjectReference field's value. +func (s *AddFacetToObjectInput) SetObjectReference(v *ObjectReference) *AddFacetToObjectInput { + s.ObjectReference = v + return s +} + +// SetSchemaFacet sets the SchemaFacet field's value. +func (s *AddFacetToObjectInput) SetSchemaFacet(v *SchemaFacet) *AddFacetToObjectInput { + s.SchemaFacet = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/AddFacetToObjectResponse +type AddFacetToObjectOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AddFacetToObjectOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddFacetToObjectOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ApplySchemaRequest +type ApplySchemaInput struct { + _ struct{} `type:"structure"` + + // ARN associated with the Directory into which the schema is copied. For more + // information, see arns. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // Published schema ARN that needs to be copied. For more information, see arns. + // + // PublishedSchemaArn is a required field + PublishedSchemaArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ApplySchemaInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplySchemaInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ApplySchemaInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ApplySchemaInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.PublishedSchemaArn == nil { + invalidParams.Add(request.NewErrParamRequired("PublishedSchemaArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *ApplySchemaInput) SetDirectoryArn(v string) *ApplySchemaInput { + s.DirectoryArn = &v + return s +} + +// SetPublishedSchemaArn sets the PublishedSchemaArn field's value. +func (s *ApplySchemaInput) SetPublishedSchemaArn(v string) *ApplySchemaInput { + s.PublishedSchemaArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ApplySchemaResponse +type ApplySchemaOutput struct { + _ struct{} `type:"structure"` + + // Applied schema ARN associated with the copied schema in the Directory. You + // can use this ARN to describe the schema information applied on this directory. + // For more information, see arns. + AppliedSchemaArn *string `type:"string"` + + // ARN associated with the Directory. For more information, see arns. + DirectoryArn *string `type:"string"` +} + +// String returns the string representation +func (s ApplySchemaOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplySchemaOutput) GoString() string { + return s.String() +} + +// SetAppliedSchemaArn sets the AppliedSchemaArn field's value. +func (s *ApplySchemaOutput) SetAppliedSchemaArn(v string) *ApplySchemaOutput { + s.AppliedSchemaArn = &v + return s +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *ApplySchemaOutput) SetDirectoryArn(v string) *ApplySchemaOutput { + s.DirectoryArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/AttachObjectRequest +type AttachObjectInput struct { + _ struct{} `type:"structure"` + + // Child object reference to be attached to the object. + // + // ChildReference is a required field + ChildReference *ObjectReference `type:"structure" required:"true"` + + // ARN associated with the Directory where both objects reside. For more information, + // see arns. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // Link name with which the child object is attached to the parent. + // + // LinkName is a required field + LinkName *string `type:"string" required:"true"` + + // Parent object reference. + // + // ParentReference is a required field + ParentReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s AttachObjectInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachObjectInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AttachObjectInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AttachObjectInput"} + if s.ChildReference == nil { + invalidParams.Add(request.NewErrParamRequired("ChildReference")) + } + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.LinkName == nil { + invalidParams.Add(request.NewErrParamRequired("LinkName")) + } + if s.ParentReference == nil { + invalidParams.Add(request.NewErrParamRequired("ParentReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChildReference sets the ChildReference field's value. +func (s *AttachObjectInput) SetChildReference(v *ObjectReference) *AttachObjectInput { + s.ChildReference = v + return s +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *AttachObjectInput) SetDirectoryArn(v string) *AttachObjectInput { + s.DirectoryArn = &v + return s +} + +// SetLinkName sets the LinkName field's value. +func (s *AttachObjectInput) SetLinkName(v string) *AttachObjectInput { + s.LinkName = &v + return s +} + +// SetParentReference sets the ParentReference field's value. +func (s *AttachObjectInput) SetParentReference(v *ObjectReference) *AttachObjectInput { + s.ParentReference = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/AttachObjectResponse +type AttachObjectOutput struct { + _ struct{} `type:"structure"` + + // Attached ObjectIdentifier, which is the child ObjectIdentifier. + AttachedObjectIdentifier *string `type:"string"` +} + +// String returns the string representation +func (s AttachObjectOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachObjectOutput) GoString() string { + return s.String() +} + +// SetAttachedObjectIdentifier sets the AttachedObjectIdentifier field's value. +func (s *AttachObjectOutput) SetAttachedObjectIdentifier(v string) *AttachObjectOutput { + s.AttachedObjectIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/AttachPolicyRequest +type AttachPolicyInput struct { + _ struct{} `type:"structure"` + + // ARN associated with the Directory where both objects reside. For more information, + // see arns. + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string"` + + // Reference that identifies the object to which the policy will be attached. + // + // ObjectReference is a required field + ObjectReference *ObjectReference `type:"structure" required:"true"` + + // Reference associated with the policy object. + // + // PolicyReference is a required field + PolicyReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s AttachPolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachPolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AttachPolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AttachPolicyInput"} + if s.ObjectReference == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectReference")) + } + if s.PolicyReference == nil { + invalidParams.Add(request.NewErrParamRequired("PolicyReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *AttachPolicyInput) SetDirectoryArn(v string) *AttachPolicyInput { + s.DirectoryArn = &v + return s +} + +// SetObjectReference sets the ObjectReference field's value. +func (s *AttachPolicyInput) SetObjectReference(v *ObjectReference) *AttachPolicyInput { + s.ObjectReference = v + return s +} + +// SetPolicyReference sets the PolicyReference field's value. +func (s *AttachPolicyInput) SetPolicyReference(v *ObjectReference) *AttachPolicyInput { + s.PolicyReference = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/AttachPolicyResponse +type AttachPolicyOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AttachPolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachPolicyOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/AttachToIndexRequest +type AttachToIndexInput struct { + _ struct{} `type:"structure"` + + // The ARN of the directory where the object and index exist. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // A reference to the index that you are attaching the object to. + // + // IndexReference is a required field + IndexReference *ObjectReference `type:"structure" required:"true"` + + // A reference to the object that you are attaching to the index. + // + // TargetReference is a required field + TargetReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s AttachToIndexInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachToIndexInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AttachToIndexInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AttachToIndexInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.IndexReference == nil { + invalidParams.Add(request.NewErrParamRequired("IndexReference")) + } + if s.TargetReference == nil { + invalidParams.Add(request.NewErrParamRequired("TargetReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *AttachToIndexInput) SetDirectoryArn(v string) *AttachToIndexInput { + s.DirectoryArn = &v + return s +} + +// SetIndexReference sets the IndexReference field's value. +func (s *AttachToIndexInput) SetIndexReference(v *ObjectReference) *AttachToIndexInput { + s.IndexReference = v + return s +} + +// SetTargetReference sets the TargetReference field's value. +func (s *AttachToIndexInput) SetTargetReference(v *ObjectReference) *AttachToIndexInput { + s.TargetReference = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/AttachToIndexResponse +type AttachToIndexOutput struct { + _ struct{} `type:"structure"` + + // The ObjectIdentifier of the object that was attached to the index. + AttachedObjectIdentifier *string `type:"string"` +} + +// String returns the string representation +func (s AttachToIndexOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachToIndexOutput) GoString() string { + return s.String() +} + +// SetAttachedObjectIdentifier sets the AttachedObjectIdentifier field's value. +func (s *AttachToIndexOutput) SetAttachedObjectIdentifier(v string) *AttachToIndexOutput { + s.AttachedObjectIdentifier = &v + return s +} + +// A unique identifier for an attribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/AttributeKey +type AttributeKey struct { + _ struct{} `type:"structure"` + + // The name of the facet the attribute exists within. + // + // FacetName is a required field + FacetName *string `min:"1" type:"string" required:"true"` + + // The name of the attribute. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The ARN of the schema that contains the facet and attribute. + // + // SchemaArn is a required field + SchemaArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s AttributeKey) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttributeKey) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AttributeKey) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AttributeKey"} + if s.FacetName == nil { + invalidParams.Add(request.NewErrParamRequired("FacetName")) + } + if s.FacetName != nil && len(*s.FacetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FacetName", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.SchemaArn == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFacetName sets the FacetName field's value. +func (s *AttributeKey) SetFacetName(v string) *AttributeKey { + s.FacetName = &v + return s +} + +// SetName sets the Name field's value. +func (s *AttributeKey) SetName(v string) *AttributeKey { + s.Name = &v + return s +} + +// SetSchemaArn sets the SchemaArn field's value. +func (s *AttributeKey) SetSchemaArn(v string) *AttributeKey { + s.SchemaArn = &v + return s +} + +// The combination of an attribute key and an attribute value. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/AttributeKeyAndValue +type AttributeKeyAndValue struct { + _ struct{} `type:"structure"` + + // The key of the attribute. + // + // Key is a required field + Key *AttributeKey `type:"structure" required:"true"` + + // The value of the attribute. + // + // Value is a required field + Value *TypedAttributeValue `type:"structure" required:"true"` +} + +// String returns the string representation +func (s AttributeKeyAndValue) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttributeKeyAndValue) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AttributeKeyAndValue) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AttributeKeyAndValue"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + if s.Key != nil { + if err := s.Key.Validate(); err != nil { + invalidParams.AddNested("Key", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *AttributeKeyAndValue) SetKey(v *AttributeKey) *AttributeKeyAndValue { + s.Key = v + return s +} + +// SetValue sets the Value field's value. +func (s *AttributeKeyAndValue) SetValue(v *TypedAttributeValue) *AttributeKeyAndValue { + s.Value = v + return s +} + +// Represents the output of a batch add facet to object operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchAddFacetToObject +type BatchAddFacetToObject struct { + _ struct{} `type:"structure"` + + // The attributes to set on the object. + // + // ObjectAttributeList is a required field + ObjectAttributeList []*AttributeKeyAndValue `type:"list" required:"true"` + + // A reference to the object being mutated. + // + // ObjectReference is a required field + ObjectReference *ObjectReference `type:"structure" required:"true"` + + // Represents the facet being added to the object. + // + // SchemaFacet is a required field + SchemaFacet *SchemaFacet `type:"structure" required:"true"` +} + +// String returns the string representation +func (s BatchAddFacetToObject) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchAddFacetToObject) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchAddFacetToObject) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchAddFacetToObject"} + if s.ObjectAttributeList == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectAttributeList")) + } + if s.ObjectReference == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectReference")) + } + if s.SchemaFacet == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaFacet")) + } + if s.ObjectAttributeList != nil { + for i, v := range s.ObjectAttributeList { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ObjectAttributeList", i), err.(request.ErrInvalidParams)) + } + } + } + if s.SchemaFacet != nil { + if err := s.SchemaFacet.Validate(); err != nil { + invalidParams.AddNested("SchemaFacet", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetObjectAttributeList sets the ObjectAttributeList field's value. +func (s *BatchAddFacetToObject) SetObjectAttributeList(v []*AttributeKeyAndValue) *BatchAddFacetToObject { + s.ObjectAttributeList = v + return s +} + +// SetObjectReference sets the ObjectReference field's value. +func (s *BatchAddFacetToObject) SetObjectReference(v *ObjectReference) *BatchAddFacetToObject { + s.ObjectReference = v + return s +} + +// SetSchemaFacet sets the SchemaFacet field's value. +func (s *BatchAddFacetToObject) SetSchemaFacet(v *SchemaFacet) *BatchAddFacetToObject { + s.SchemaFacet = v + return s +} + +// The result of a batch add facet to object operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchAddFacetToObjectResponse +type BatchAddFacetToObjectResponse struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s BatchAddFacetToObjectResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchAddFacetToObjectResponse) GoString() string { + return s.String() +} + +// Represents the output of an AttachObject operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchAttachObject +type BatchAttachObject struct { + _ struct{} `type:"structure"` + + // Child object reference to be attached to the object. + // + // ChildReference is a required field + ChildReference *ObjectReference `type:"structure" required:"true"` + + // The name of the link. + // + // LinkName is a required field + LinkName *string `type:"string" required:"true"` + + // Parent object reference. + // + // ParentReference is a required field + ParentReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s BatchAttachObject) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchAttachObject) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchAttachObject) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchAttachObject"} + if s.ChildReference == nil { + invalidParams.Add(request.NewErrParamRequired("ChildReference")) + } + if s.LinkName == nil { + invalidParams.Add(request.NewErrParamRequired("LinkName")) + } + if s.ParentReference == nil { + invalidParams.Add(request.NewErrParamRequired("ParentReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChildReference sets the ChildReference field's value. +func (s *BatchAttachObject) SetChildReference(v *ObjectReference) *BatchAttachObject { + s.ChildReference = v + return s +} + +// SetLinkName sets the LinkName field's value. +func (s *BatchAttachObject) SetLinkName(v string) *BatchAttachObject { + s.LinkName = &v + return s +} + +// SetParentReference sets the ParentReference field's value. +func (s *BatchAttachObject) SetParentReference(v *ObjectReference) *BatchAttachObject { + s.ParentReference = v + return s +} + +// Represents the output batch AttachObject response operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchAttachObjectResponse +type BatchAttachObjectResponse struct { + _ struct{} `type:"structure"` + + // The ObjectIdentifier of the object that has been attached. + AttachedObjectIdentifier *string `locationName:"attachedObjectIdentifier" type:"string"` +} + +// String returns the string representation +func (s BatchAttachObjectResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchAttachObjectResponse) GoString() string { + return s.String() +} + +// SetAttachedObjectIdentifier sets the AttachedObjectIdentifier field's value. +func (s *BatchAttachObjectResponse) SetAttachedObjectIdentifier(v string) *BatchAttachObjectResponse { + s.AttachedObjectIdentifier = &v + return s +} + +// Represents the output of a CreateObject operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchCreateObject +type BatchCreateObject struct { + _ struct{} `type:"structure"` + + // The batch reference name. See Batches (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_advanced.html#batches) + // for more information. + // + // BatchReferenceName is a required field + BatchReferenceName *string `type:"string" required:"true"` + + // The name of the link. + // + // LinkName is a required field + LinkName *string `type:"string" required:"true"` + + // Attribute map, which contains an attribute ARN as the key and attribute value + // as the map value. + // + // ObjectAttributeList is a required field + ObjectAttributeList []*AttributeKeyAndValue `type:"list" required:"true"` + + // If specified, the parent reference to which this object will be attached. + // + // ParentReference is a required field + ParentReference *ObjectReference `type:"structure" required:"true"` + + // List of FacetArns that will be associated with the object. For more information, + // see arns. + // + // SchemaFacet is a required field + SchemaFacet []*SchemaFacet `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchCreateObject) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchCreateObject) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchCreateObject) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchCreateObject"} + if s.BatchReferenceName == nil { + invalidParams.Add(request.NewErrParamRequired("BatchReferenceName")) + } + if s.LinkName == nil { + invalidParams.Add(request.NewErrParamRequired("LinkName")) + } + if s.ObjectAttributeList == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectAttributeList")) + } + if s.ParentReference == nil { + invalidParams.Add(request.NewErrParamRequired("ParentReference")) + } + if s.SchemaFacet == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaFacet")) + } + if s.ObjectAttributeList != nil { + for i, v := range s.ObjectAttributeList { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ObjectAttributeList", i), err.(request.ErrInvalidParams)) + } + } + } + if s.SchemaFacet != nil { + for i, v := range s.SchemaFacet { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SchemaFacet", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBatchReferenceName sets the BatchReferenceName field's value. +func (s *BatchCreateObject) SetBatchReferenceName(v string) *BatchCreateObject { + s.BatchReferenceName = &v + return s +} + +// SetLinkName sets the LinkName field's value. +func (s *BatchCreateObject) SetLinkName(v string) *BatchCreateObject { + s.LinkName = &v + return s +} + +// SetObjectAttributeList sets the ObjectAttributeList field's value. +func (s *BatchCreateObject) SetObjectAttributeList(v []*AttributeKeyAndValue) *BatchCreateObject { + s.ObjectAttributeList = v + return s +} + +// SetParentReference sets the ParentReference field's value. +func (s *BatchCreateObject) SetParentReference(v *ObjectReference) *BatchCreateObject { + s.ParentReference = v + return s +} + +// SetSchemaFacet sets the SchemaFacet field's value. +func (s *BatchCreateObject) SetSchemaFacet(v []*SchemaFacet) *BatchCreateObject { + s.SchemaFacet = v + return s +} + +// Represents the output of a CreateObject response operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchCreateObjectResponse +type BatchCreateObjectResponse struct { + _ struct{} `type:"structure"` + + // ID associated with the object. + ObjectIdentifier *string `type:"string"` +} + +// String returns the string representation +func (s BatchCreateObjectResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchCreateObjectResponse) GoString() string { + return s.String() +} + +// SetObjectIdentifier sets the ObjectIdentifier field's value. +func (s *BatchCreateObjectResponse) SetObjectIdentifier(v string) *BatchCreateObjectResponse { + s.ObjectIdentifier = &v + return s +} + +// Represents the output of a DeleteObject operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchDeleteObject +type BatchDeleteObject struct { + _ struct{} `type:"structure"` + + // Reference that identifies the object. + // + // ObjectReference is a required field + ObjectReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s BatchDeleteObject) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDeleteObject) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchDeleteObject) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchDeleteObject"} + if s.ObjectReference == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetObjectReference sets the ObjectReference field's value. +func (s *BatchDeleteObject) SetObjectReference(v *ObjectReference) *BatchDeleteObject { + s.ObjectReference = v + return s +} + +// Represents the output of a DeleteObject response operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchDeleteObjectResponse +type BatchDeleteObjectResponse struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s BatchDeleteObjectResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDeleteObjectResponse) GoString() string { + return s.String() +} + +// Represents the output of a DetachObject operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchDetachObject +type BatchDetachObject struct { + _ struct{} `type:"structure"` + + // The batch reference name. See Batches (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_advanced.html#batches) + // for more information. + // + // BatchReferenceName is a required field + BatchReferenceName *string `type:"string" required:"true"` + + // The name of the link. + // + // LinkName is a required field + LinkName *string `type:"string" required:"true"` + + // Parent reference from which the object with the specified link name is detached. + // + // ParentReference is a required field + ParentReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s BatchDetachObject) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDetachObject) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchDetachObject) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchDetachObject"} + if s.BatchReferenceName == nil { + invalidParams.Add(request.NewErrParamRequired("BatchReferenceName")) + } + if s.LinkName == nil { + invalidParams.Add(request.NewErrParamRequired("LinkName")) + } + if s.ParentReference == nil { + invalidParams.Add(request.NewErrParamRequired("ParentReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBatchReferenceName sets the BatchReferenceName field's value. +func (s *BatchDetachObject) SetBatchReferenceName(v string) *BatchDetachObject { + s.BatchReferenceName = &v + return s +} + +// SetLinkName sets the LinkName field's value. +func (s *BatchDetachObject) SetLinkName(v string) *BatchDetachObject { + s.LinkName = &v + return s +} + +// SetParentReference sets the ParentReference field's value. +func (s *BatchDetachObject) SetParentReference(v *ObjectReference) *BatchDetachObject { + s.ParentReference = v + return s +} + +// Represents the output of a DetachObject response operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchDetachObjectResponse +type BatchDetachObjectResponse struct { + _ struct{} `type:"structure"` + + // The ObjectIdentifier of the detached object. + DetachedObjectIdentifier *string `locationName:"detachedObjectIdentifier" type:"string"` +} + +// String returns the string representation +func (s BatchDetachObjectResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDetachObjectResponse) GoString() string { + return s.String() +} + +// SetDetachedObjectIdentifier sets the DetachedObjectIdentifier field's value. +func (s *BatchDetachObjectResponse) SetDetachedObjectIdentifier(v string) *BatchDetachObjectResponse { + s.DetachedObjectIdentifier = &v + return s +} + +// Represents the output of a ListObjectAttributes operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchListObjectAttributes +type BatchListObjectAttributes struct { + _ struct{} `type:"structure"` + + // Maximum number of items to be retrieved in a single call. This is an approximate + // number. + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token. + NextToken *string `type:"string"` + + // Reference of the object whose attributes need to be listed. + // + // ObjectReference is a required field + ObjectReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s BatchListObjectAttributes) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchListObjectAttributes) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchListObjectAttributes) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchListObjectAttributes"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ObjectReference == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *BatchListObjectAttributes) SetMaxResults(v int64) *BatchListObjectAttributes { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *BatchListObjectAttributes) SetNextToken(v string) *BatchListObjectAttributes { + s.NextToken = &v + return s +} + +// SetObjectReference sets the ObjectReference field's value. +func (s *BatchListObjectAttributes) SetObjectReference(v *ObjectReference) *BatchListObjectAttributes { + s.ObjectReference = v + return s +} + +// Represents the output of a ListObjectAttributes response operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchListObjectAttributesResponse +type BatchListObjectAttributesResponse struct { + _ struct{} `type:"structure"` + + // Attributes map associated with the object. AttributeArn is the key; attribute + // value is the value. + Attributes []*AttributeKeyAndValue `type:"list"` + + // The pagination token. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s BatchListObjectAttributesResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchListObjectAttributesResponse) GoString() string { + return s.String() +} + +// SetAttributes sets the Attributes field's value. +func (s *BatchListObjectAttributesResponse) SetAttributes(v []*AttributeKeyAndValue) *BatchListObjectAttributesResponse { + s.Attributes = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *BatchListObjectAttributesResponse) SetNextToken(v string) *BatchListObjectAttributesResponse { + s.NextToken = &v + return s +} + +// Represents the output of a ListObjectChildren operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchListObjectChildren +type BatchListObjectChildren struct { + _ struct{} `type:"structure"` + + // Maximum number of items to be retrieved in a single call. This is an approximate + // number. + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token. + NextToken *string `type:"string"` + + // Reference of the object for which child objects are being listed. + // + // ObjectReference is a required field + ObjectReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s BatchListObjectChildren) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchListObjectChildren) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchListObjectChildren) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchListObjectChildren"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ObjectReference == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *BatchListObjectChildren) SetMaxResults(v int64) *BatchListObjectChildren { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *BatchListObjectChildren) SetNextToken(v string) *BatchListObjectChildren { + s.NextToken = &v + return s +} + +// SetObjectReference sets the ObjectReference field's value. +func (s *BatchListObjectChildren) SetObjectReference(v *ObjectReference) *BatchListObjectChildren { + s.ObjectReference = v + return s +} + +// Represents the output of a ListObjectChildren response operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchListObjectChildrenResponse +type BatchListObjectChildrenResponse struct { + _ struct{} `type:"structure"` + + // Children structure, which is a map with key as the LinkName and ObjectIdentifier + // as the value. + Children map[string]*string `type:"map"` + + // The pagination token. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s BatchListObjectChildrenResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchListObjectChildrenResponse) GoString() string { + return s.String() +} + +// SetChildren sets the Children field's value. +func (s *BatchListObjectChildrenResponse) SetChildren(v map[string]*string) *BatchListObjectChildrenResponse { + s.Children = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *BatchListObjectChildrenResponse) SetNextToken(v string) *BatchListObjectChildrenResponse { + s.NextToken = &v + return s +} + +// Batch Read Exception structure, which contains exception type and message. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchReadException +type BatchReadException struct { + _ struct{} `type:"structure"` + + // Exception message associated with the failure. + Message *string `type:"string"` + + // Type of exception, such as InvalidArnException. + Type *string `type:"string" enum:"BatchReadExceptionType"` +} + +// String returns the string representation +func (s BatchReadException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchReadException) GoString() string { + return s.String() +} + +// SetMessage sets the Message field's value. +func (s *BatchReadException) SetMessage(v string) *BatchReadException { + s.Message = &v + return s +} + +// SetType sets the Type field's value. +func (s *BatchReadException) SetType(v string) *BatchReadException { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchReadRequest +type BatchReadInput struct { + _ struct{} `type:"structure"` + + // Represents the manner and timing in which the successful write or update + // of an object is reflected in a subsequent read operation of that same object. + ConsistencyLevel *string `location:"header" locationName:"x-amz-consistency-level" type:"string" enum:"ConsistencyLevel"` + + // ARN associated with the Directory. For more information, see arns. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // List of operations that are part of the batch. + // + // Operations is a required field + Operations []*BatchReadOperation `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchReadInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchReadInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchReadInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchReadInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.Operations == nil { + invalidParams.Add(request.NewErrParamRequired("Operations")) + } + if s.Operations != nil { + for i, v := range s.Operations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Operations", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConsistencyLevel sets the ConsistencyLevel field's value. +func (s *BatchReadInput) SetConsistencyLevel(v string) *BatchReadInput { + s.ConsistencyLevel = &v + return s +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *BatchReadInput) SetDirectoryArn(v string) *BatchReadInput { + s.DirectoryArn = &v + return s +} + +// SetOperations sets the Operations field's value. +func (s *BatchReadInput) SetOperations(v []*BatchReadOperation) *BatchReadInput { + s.Operations = v + return s +} + +// Represents the output of a BatchRead operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchReadOperation +type BatchReadOperation struct { + _ struct{} `type:"structure"` + + // Lists all attributes associated with an object. + ListObjectAttributes *BatchListObjectAttributes `type:"structure"` + + // Returns a paginated list of child objects that are associated with a given + // object. + ListObjectChildren *BatchListObjectChildren `type:"structure"` +} + +// String returns the string representation +func (s BatchReadOperation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchReadOperation) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchReadOperation) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchReadOperation"} + if s.ListObjectAttributes != nil { + if err := s.ListObjectAttributes.Validate(); err != nil { + invalidParams.AddNested("ListObjectAttributes", err.(request.ErrInvalidParams)) + } + } + if s.ListObjectChildren != nil { + if err := s.ListObjectChildren.Validate(); err != nil { + invalidParams.AddNested("ListObjectChildren", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetListObjectAttributes sets the ListObjectAttributes field's value. +func (s *BatchReadOperation) SetListObjectAttributes(v *BatchListObjectAttributes) *BatchReadOperation { + s.ListObjectAttributes = v + return s +} + +// SetListObjectChildren sets the ListObjectChildren field's value. +func (s *BatchReadOperation) SetListObjectChildren(v *BatchListObjectChildren) *BatchReadOperation { + s.ListObjectChildren = v + return s +} + +// Represents the output of a BatchRead response operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchReadOperationResponse +type BatchReadOperationResponse struct { + _ struct{} `type:"structure"` + + // Identifies which operation in a batch has failed. + ExceptionResponse *BatchReadException `type:"structure"` + + // Identifies which operation in a batch has succeeded. + SuccessfulResponse *BatchReadSuccessfulResponse `type:"structure"` +} + +// String returns the string representation +func (s BatchReadOperationResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchReadOperationResponse) GoString() string { + return s.String() +} + +// SetExceptionResponse sets the ExceptionResponse field's value. +func (s *BatchReadOperationResponse) SetExceptionResponse(v *BatchReadException) *BatchReadOperationResponse { + s.ExceptionResponse = v + return s +} + +// SetSuccessfulResponse sets the SuccessfulResponse field's value. +func (s *BatchReadOperationResponse) SetSuccessfulResponse(v *BatchReadSuccessfulResponse) *BatchReadOperationResponse { + s.SuccessfulResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchReadResponse +type BatchReadOutput struct { + _ struct{} `type:"structure"` + + // List of all the responses for each batch read. + Responses []*BatchReadOperationResponse `type:"list"` +} + +// String returns the string representation +func (s BatchReadOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchReadOutput) GoString() string { + return s.String() +} + +// SetResponses sets the Responses field's value. +func (s *BatchReadOutput) SetResponses(v []*BatchReadOperationResponse) *BatchReadOutput { + s.Responses = v + return s +} + +// Represents the output of a BatchRead success response operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchReadSuccessfulResponse +type BatchReadSuccessfulResponse struct { + _ struct{} `type:"structure"` + + // Lists all attributes associated with an object. + ListObjectAttributes *BatchListObjectAttributesResponse `type:"structure"` + + // Returns a paginated list of child objects associated with a given object. + ListObjectChildren *BatchListObjectChildrenResponse `type:"structure"` +} + +// String returns the string representation +func (s BatchReadSuccessfulResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchReadSuccessfulResponse) GoString() string { + return s.String() +} + +// SetListObjectAttributes sets the ListObjectAttributes field's value. +func (s *BatchReadSuccessfulResponse) SetListObjectAttributes(v *BatchListObjectAttributesResponse) *BatchReadSuccessfulResponse { + s.ListObjectAttributes = v + return s +} + +// SetListObjectChildren sets the ListObjectChildren field's value. +func (s *BatchReadSuccessfulResponse) SetListObjectChildren(v *BatchListObjectChildrenResponse) *BatchReadSuccessfulResponse { + s.ListObjectChildren = v + return s +} + +// Batch operation to remove a facet from an object. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchRemoveFacetFromObject +type BatchRemoveFacetFromObject struct { + _ struct{} `type:"structure"` + + // A reference to the object whose facet will be removed. + // + // ObjectReference is a required field + ObjectReference *ObjectReference `type:"structure" required:"true"` + + // The facet to remove from the object. + // + // SchemaFacet is a required field + SchemaFacet *SchemaFacet `type:"structure" required:"true"` +} + +// String returns the string representation +func (s BatchRemoveFacetFromObject) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchRemoveFacetFromObject) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchRemoveFacetFromObject) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchRemoveFacetFromObject"} + if s.ObjectReference == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectReference")) + } + if s.SchemaFacet == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaFacet")) + } + if s.SchemaFacet != nil { + if err := s.SchemaFacet.Validate(); err != nil { + invalidParams.AddNested("SchemaFacet", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetObjectReference sets the ObjectReference field's value. +func (s *BatchRemoveFacetFromObject) SetObjectReference(v *ObjectReference) *BatchRemoveFacetFromObject { + s.ObjectReference = v + return s +} + +// SetSchemaFacet sets the SchemaFacet field's value. +func (s *BatchRemoveFacetFromObject) SetSchemaFacet(v *SchemaFacet) *BatchRemoveFacetFromObject { + s.SchemaFacet = v + return s +} + +// Empty result representing success. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchRemoveFacetFromObjectResponse +type BatchRemoveFacetFromObjectResponse struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s BatchRemoveFacetFromObjectResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchRemoveFacetFromObjectResponse) GoString() string { + return s.String() +} + +// Represents the output of a BatchUpdate operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchUpdateObjectAttributes +type BatchUpdateObjectAttributes struct { + _ struct{} `type:"structure"` + + // Attributes update structure. + // + // AttributeUpdates is a required field + AttributeUpdates []*ObjectAttributeUpdate `type:"list" required:"true"` + + // Reference that identifies the object. + // + // ObjectReference is a required field + ObjectReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s BatchUpdateObjectAttributes) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchUpdateObjectAttributes) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchUpdateObjectAttributes) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchUpdateObjectAttributes"} + if s.AttributeUpdates == nil { + invalidParams.Add(request.NewErrParamRequired("AttributeUpdates")) + } + if s.ObjectReference == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectReference")) + } + if s.AttributeUpdates != nil { + for i, v := range s.AttributeUpdates { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AttributeUpdates", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttributeUpdates sets the AttributeUpdates field's value. +func (s *BatchUpdateObjectAttributes) SetAttributeUpdates(v []*ObjectAttributeUpdate) *BatchUpdateObjectAttributes { + s.AttributeUpdates = v + return s +} + +// SetObjectReference sets the ObjectReference field's value. +func (s *BatchUpdateObjectAttributes) SetObjectReference(v *ObjectReference) *BatchUpdateObjectAttributes { + s.ObjectReference = v + return s +} + +// Represents the output of a BatchUpdate response operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchUpdateObjectAttributesResponse +type BatchUpdateObjectAttributesResponse struct { + _ struct{} `type:"structure"` + + // ID associated with the object. + ObjectIdentifier *string `type:"string"` +} + +// String returns the string representation +func (s BatchUpdateObjectAttributesResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchUpdateObjectAttributesResponse) GoString() string { + return s.String() +} + +// SetObjectIdentifier sets the ObjectIdentifier field's value. +func (s *BatchUpdateObjectAttributesResponse) SetObjectIdentifier(v string) *BatchUpdateObjectAttributesResponse { + s.ObjectIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchWriteRequest +type BatchWriteInput struct { + _ struct{} `type:"structure"` + + // ARN associated with the Directory. For more information, see arns. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // List of operations that are part of the batch. + // + // Operations is a required field + Operations []*BatchWriteOperation `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchWriteInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchWriteInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchWriteInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchWriteInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.Operations == nil { + invalidParams.Add(request.NewErrParamRequired("Operations")) + } + if s.Operations != nil { + for i, v := range s.Operations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Operations", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *BatchWriteInput) SetDirectoryArn(v string) *BatchWriteInput { + s.DirectoryArn = &v + return s +} + +// SetOperations sets the Operations field's value. +func (s *BatchWriteInput) SetOperations(v []*BatchWriteOperation) *BatchWriteInput { + s.Operations = v + return s +} + +// Represents the output of a BatchWrite operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchWriteOperation +type BatchWriteOperation struct { + _ struct{} `type:"structure"` + + // Batch operation adding a facet to an object. + AddFacetToObject *BatchAddFacetToObject `type:"structure"` + + // Attaches an object to a Directory. + AttachObject *BatchAttachObject `type:"structure"` + + // Creates an object. + CreateObject *BatchCreateObject `type:"structure"` + + // Deletes an object in a Directory. + DeleteObject *BatchDeleteObject `type:"structure"` + + // Detaches an object from a Directory. + DetachObject *BatchDetachObject `type:"structure"` + + // Batch operation removing a facet from an object. + RemoveFacetFromObject *BatchRemoveFacetFromObject `type:"structure"` + + // Update a given object's attributes. + UpdateObjectAttributes *BatchUpdateObjectAttributes `type:"structure"` +} + +// String returns the string representation +func (s BatchWriteOperation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchWriteOperation) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchWriteOperation) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchWriteOperation"} + if s.AddFacetToObject != nil { + if err := s.AddFacetToObject.Validate(); err != nil { + invalidParams.AddNested("AddFacetToObject", err.(request.ErrInvalidParams)) + } + } + if s.AttachObject != nil { + if err := s.AttachObject.Validate(); err != nil { + invalidParams.AddNested("AttachObject", err.(request.ErrInvalidParams)) + } + } + if s.CreateObject != nil { + if err := s.CreateObject.Validate(); err != nil { + invalidParams.AddNested("CreateObject", err.(request.ErrInvalidParams)) + } + } + if s.DeleteObject != nil { + if err := s.DeleteObject.Validate(); err != nil { + invalidParams.AddNested("DeleteObject", err.(request.ErrInvalidParams)) + } + } + if s.DetachObject != nil { + if err := s.DetachObject.Validate(); err != nil { + invalidParams.AddNested("DetachObject", err.(request.ErrInvalidParams)) + } + } + if s.RemoveFacetFromObject != nil { + if err := s.RemoveFacetFromObject.Validate(); err != nil { + invalidParams.AddNested("RemoveFacetFromObject", err.(request.ErrInvalidParams)) + } + } + if s.UpdateObjectAttributes != nil { + if err := s.UpdateObjectAttributes.Validate(); err != nil { + invalidParams.AddNested("UpdateObjectAttributes", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAddFacetToObject sets the AddFacetToObject field's value. +func (s *BatchWriteOperation) SetAddFacetToObject(v *BatchAddFacetToObject) *BatchWriteOperation { + s.AddFacetToObject = v + return s +} + +// SetAttachObject sets the AttachObject field's value. +func (s *BatchWriteOperation) SetAttachObject(v *BatchAttachObject) *BatchWriteOperation { + s.AttachObject = v + return s +} + +// SetCreateObject sets the CreateObject field's value. +func (s *BatchWriteOperation) SetCreateObject(v *BatchCreateObject) *BatchWriteOperation { + s.CreateObject = v + return s +} + +// SetDeleteObject sets the DeleteObject field's value. +func (s *BatchWriteOperation) SetDeleteObject(v *BatchDeleteObject) *BatchWriteOperation { + s.DeleteObject = v + return s +} + +// SetDetachObject sets the DetachObject field's value. +func (s *BatchWriteOperation) SetDetachObject(v *BatchDetachObject) *BatchWriteOperation { + s.DetachObject = v + return s +} + +// SetRemoveFacetFromObject sets the RemoveFacetFromObject field's value. +func (s *BatchWriteOperation) SetRemoveFacetFromObject(v *BatchRemoveFacetFromObject) *BatchWriteOperation { + s.RemoveFacetFromObject = v + return s +} + +// SetUpdateObjectAttributes sets the UpdateObjectAttributes field's value. +func (s *BatchWriteOperation) SetUpdateObjectAttributes(v *BatchUpdateObjectAttributes) *BatchWriteOperation { + s.UpdateObjectAttributes = v + return s +} + +// Represents the output of a BatchWrite response operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchWriteOperationResponse +type BatchWriteOperationResponse struct { + _ struct{} `type:"structure"` + + // Result of an add facet to object batch operation. + AddFacetToObject *BatchAddFacetToObjectResponse `type:"structure"` + + // Attaches an object to a Directory. + AttachObject *BatchAttachObjectResponse `type:"structure"` + + // Creates an object in a Directory. + CreateObject *BatchCreateObjectResponse `type:"structure"` + + // Deletes an object in a Directory. + DeleteObject *BatchDeleteObjectResponse `type:"structure"` + + // Detaches an object from a Directory. + DetachObject *BatchDetachObjectResponse `type:"structure"` + + // Result of a batch remove facet from object operation. + RemoveFacetFromObject *BatchRemoveFacetFromObjectResponse `type:"structure"` + + // Updates a given object’s attributes. + UpdateObjectAttributes *BatchUpdateObjectAttributesResponse `type:"structure"` +} + +// String returns the string representation +func (s BatchWriteOperationResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchWriteOperationResponse) GoString() string { + return s.String() +} + +// SetAddFacetToObject sets the AddFacetToObject field's value. +func (s *BatchWriteOperationResponse) SetAddFacetToObject(v *BatchAddFacetToObjectResponse) *BatchWriteOperationResponse { + s.AddFacetToObject = v + return s +} + +// SetAttachObject sets the AttachObject field's value. +func (s *BatchWriteOperationResponse) SetAttachObject(v *BatchAttachObjectResponse) *BatchWriteOperationResponse { + s.AttachObject = v + return s +} + +// SetCreateObject sets the CreateObject field's value. +func (s *BatchWriteOperationResponse) SetCreateObject(v *BatchCreateObjectResponse) *BatchWriteOperationResponse { + s.CreateObject = v + return s +} + +// SetDeleteObject sets the DeleteObject field's value. +func (s *BatchWriteOperationResponse) SetDeleteObject(v *BatchDeleteObjectResponse) *BatchWriteOperationResponse { + s.DeleteObject = v + return s +} + +// SetDetachObject sets the DetachObject field's value. +func (s *BatchWriteOperationResponse) SetDetachObject(v *BatchDetachObjectResponse) *BatchWriteOperationResponse { + s.DetachObject = v + return s +} + +// SetRemoveFacetFromObject sets the RemoveFacetFromObject field's value. +func (s *BatchWriteOperationResponse) SetRemoveFacetFromObject(v *BatchRemoveFacetFromObjectResponse) *BatchWriteOperationResponse { + s.RemoveFacetFromObject = v + return s +} + +// SetUpdateObjectAttributes sets the UpdateObjectAttributes field's value. +func (s *BatchWriteOperationResponse) SetUpdateObjectAttributes(v *BatchUpdateObjectAttributesResponse) *BatchWriteOperationResponse { + s.UpdateObjectAttributes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/BatchWriteResponse +type BatchWriteOutput struct { + _ struct{} `type:"structure"` + + // List of all the responses for each batch write. + Responses []*BatchWriteOperationResponse `type:"list"` +} + +// String returns the string representation +func (s BatchWriteOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchWriteOutput) GoString() string { + return s.String() +} + +// SetResponses sets the Responses field's value. +func (s *BatchWriteOutput) SetResponses(v []*BatchWriteOperationResponse) *BatchWriteOutput { + s.Responses = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/CreateDirectoryRequest +type CreateDirectoryInput struct { + _ struct{} `type:"structure"` + + // Name of the Directory. Should be unique per account, per region. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // ARN of the published schema that will be copied into the data Directory. + // For more information, see arns. + // + // SchemaArn is a required field + SchemaArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateDirectoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDirectoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDirectoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDirectoryInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.SchemaArn == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *CreateDirectoryInput) SetName(v string) *CreateDirectoryInput { + s.Name = &v + return s +} + +// SetSchemaArn sets the SchemaArn field's value. +func (s *CreateDirectoryInput) SetSchemaArn(v string) *CreateDirectoryInput { + s.SchemaArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/CreateDirectoryResponse +type CreateDirectoryOutput struct { + _ struct{} `type:"structure"` + + // ARN of the published schema in the Directory. Once a published schema is + // copied into the directory, it has its own ARN which is referred to applied + // schema ARN. For more information, see arns. + // + // AppliedSchemaArn is a required field + AppliedSchemaArn *string `type:"string" required:"true"` + + // ARN associated with the Directory. For more information, see arns. + // + // DirectoryArn is a required field + DirectoryArn *string `type:"string" required:"true"` + + // Name of the Directory. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The root object node of the created directory. + // + // ObjectIdentifier is a required field + ObjectIdentifier *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateDirectoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDirectoryOutput) GoString() string { + return s.String() +} + +// SetAppliedSchemaArn sets the AppliedSchemaArn field's value. +func (s *CreateDirectoryOutput) SetAppliedSchemaArn(v string) *CreateDirectoryOutput { + s.AppliedSchemaArn = &v + return s +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *CreateDirectoryOutput) SetDirectoryArn(v string) *CreateDirectoryOutput { + s.DirectoryArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateDirectoryOutput) SetName(v string) *CreateDirectoryOutput { + s.Name = &v + return s +} + +// SetObjectIdentifier sets the ObjectIdentifier field's value. +func (s *CreateDirectoryOutput) SetObjectIdentifier(v string) *CreateDirectoryOutput { + s.ObjectIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/CreateFacetRequest +type CreateFacetInput struct { + _ struct{} `type:"structure"` + + // Attributes associated with the Facet.e + Attributes []*FacetAttribute `type:"list"` + + // Name of the Facet, which is unique for a given schema. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // Specifies whether a given object created from this facet is of type Node, + // Leaf Node, Policy or Index. + // + // * Node: Can have multiple children but one parent. + // + // * Leaf Node: Cannot have children but can have multiple parents. + // + // * Policy: Allows you to store a policy document and policy type. For more + // information, see Policies (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_key_concepts.html#policies). + // + // * Index: Can be created with the Index API. + // + // ObjectType is a required field + ObjectType *string `type:"string" required:"true" enum:"ObjectType"` + + // Schema ARN in which the new Facet will be created. For more information, + // see arns. + // + // SchemaArn is a required field + SchemaArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateFacetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateFacetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateFacetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateFacetInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.ObjectType == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectType")) + } + if s.SchemaArn == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaArn")) + } + if s.Attributes != nil { + for i, v := range s.Attributes { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attributes", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttributes sets the Attributes field's value. +func (s *CreateFacetInput) SetAttributes(v []*FacetAttribute) *CreateFacetInput { + s.Attributes = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateFacetInput) SetName(v string) *CreateFacetInput { + s.Name = &v + return s +} + +// SetObjectType sets the ObjectType field's value. +func (s *CreateFacetInput) SetObjectType(v string) *CreateFacetInput { + s.ObjectType = &v + return s +} + +// SetSchemaArn sets the SchemaArn field's value. +func (s *CreateFacetInput) SetSchemaArn(v string) *CreateFacetInput { + s.SchemaArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/CreateFacetResponse +type CreateFacetOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateFacetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateFacetOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/CreateIndexRequest +type CreateIndexInput struct { + _ struct{} `type:"structure"` + + // The ARN of the directory where the index should be created. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // Indicates whether objects with the same indexed attribute value can be added + // to the index. + // + // IsUnique is a required field + IsUnique *bool `type:"boolean" required:"true"` + + // The name of the link between the parent object and the index object. + LinkName *string `type:"string"` + + // Specifies the Attributes that should be indexed on. Currently only a single + // attribute is supported. + // + // OrderedIndexedAttributeList is a required field + OrderedIndexedAttributeList []*AttributeKey `type:"list" required:"true"` + + // A reference to the parent object that contains the index object. + ParentReference *ObjectReference `type:"structure"` +} + +// String returns the string representation +func (s CreateIndexInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateIndexInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateIndexInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateIndexInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.IsUnique == nil { + invalidParams.Add(request.NewErrParamRequired("IsUnique")) + } + if s.OrderedIndexedAttributeList == nil { + invalidParams.Add(request.NewErrParamRequired("OrderedIndexedAttributeList")) + } + if s.OrderedIndexedAttributeList != nil { + for i, v := range s.OrderedIndexedAttributeList { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OrderedIndexedAttributeList", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *CreateIndexInput) SetDirectoryArn(v string) *CreateIndexInput { + s.DirectoryArn = &v + return s +} + +// SetIsUnique sets the IsUnique field's value. +func (s *CreateIndexInput) SetIsUnique(v bool) *CreateIndexInput { + s.IsUnique = &v + return s +} + +// SetLinkName sets the LinkName field's value. +func (s *CreateIndexInput) SetLinkName(v string) *CreateIndexInput { + s.LinkName = &v + return s +} + +// SetOrderedIndexedAttributeList sets the OrderedIndexedAttributeList field's value. +func (s *CreateIndexInput) SetOrderedIndexedAttributeList(v []*AttributeKey) *CreateIndexInput { + s.OrderedIndexedAttributeList = v + return s +} + +// SetParentReference sets the ParentReference field's value. +func (s *CreateIndexInput) SetParentReference(v *ObjectReference) *CreateIndexInput { + s.ParentReference = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/CreateIndexResponse +type CreateIndexOutput struct { + _ struct{} `type:"structure"` + + // The ObjectIdentifier of the index created by this operation. + ObjectIdentifier *string `type:"string"` +} + +// String returns the string representation +func (s CreateIndexOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateIndexOutput) GoString() string { + return s.String() +} + +// SetObjectIdentifier sets the ObjectIdentifier field's value. +func (s *CreateIndexOutput) SetObjectIdentifier(v string) *CreateIndexOutput { + s.ObjectIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/CreateObjectRequest +type CreateObjectInput struct { + _ struct{} `type:"structure"` + + // ARN associated with the Directory in which the object will be created. For + // more information, see arns. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // The name of link that is used to attach this object to a parent. + LinkName *string `type:"string"` + + // Attribute map whose attribute ARN contains the key and attribute value as + // the map value. + ObjectAttributeList []*AttributeKeyAndValue `type:"list"` + + // If specified, the parent reference to which this object will be attached. + ParentReference *ObjectReference `type:"structure"` + + // List of facet ARNs to be associated with the object. For more information, + // see arns. + // + // SchemaFacets is a required field + SchemaFacets []*SchemaFacet `type:"list" required:"true"` +} + +// String returns the string representation +func (s CreateObjectInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateObjectInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateObjectInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateObjectInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.SchemaFacets == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaFacets")) + } + if s.ObjectAttributeList != nil { + for i, v := range s.ObjectAttributeList { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ObjectAttributeList", i), err.(request.ErrInvalidParams)) + } + } + } + if s.SchemaFacets != nil { + for i, v := range s.SchemaFacets { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SchemaFacets", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *CreateObjectInput) SetDirectoryArn(v string) *CreateObjectInput { + s.DirectoryArn = &v + return s +} + +// SetLinkName sets the LinkName field's value. +func (s *CreateObjectInput) SetLinkName(v string) *CreateObjectInput { + s.LinkName = &v + return s +} + +// SetObjectAttributeList sets the ObjectAttributeList field's value. +func (s *CreateObjectInput) SetObjectAttributeList(v []*AttributeKeyAndValue) *CreateObjectInput { + s.ObjectAttributeList = v + return s +} + +// SetParentReference sets the ParentReference field's value. +func (s *CreateObjectInput) SetParentReference(v *ObjectReference) *CreateObjectInput { + s.ParentReference = v + return s +} + +// SetSchemaFacets sets the SchemaFacets field's value. +func (s *CreateObjectInput) SetSchemaFacets(v []*SchemaFacet) *CreateObjectInput { + s.SchemaFacets = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/CreateObjectResponse +type CreateObjectOutput struct { + _ struct{} `type:"structure"` + + // Identifier associated with the object. + ObjectIdentifier *string `type:"string"` +} + +// String returns the string representation +func (s CreateObjectOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateObjectOutput) GoString() string { + return s.String() +} + +// SetObjectIdentifier sets the ObjectIdentifier field's value. +func (s *CreateObjectOutput) SetObjectIdentifier(v string) *CreateObjectOutput { + s.ObjectIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/CreateSchemaRequest +type CreateSchemaInput struct { + _ struct{} `type:"structure"` + + // Name associated with the schema. This is unique to each account and in each + // region. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateSchemaInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSchemaInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSchemaInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSchemaInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *CreateSchemaInput) SetName(v string) *CreateSchemaInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/CreateSchemaResponse +type CreateSchemaOutput struct { + _ struct{} `type:"structure"` + + // ARN associated with the schema. For more information, see arns. + SchemaArn *string `type:"string"` +} + +// String returns the string representation +func (s CreateSchemaOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSchemaOutput) GoString() string { + return s.String() +} + +// SetSchemaArn sets the SchemaArn field's value. +func (s *CreateSchemaOutput) SetSchemaArn(v string) *CreateSchemaOutput { + s.SchemaArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DeleteDirectoryRequest +type DeleteDirectoryInput struct { + _ struct{} `type:"structure"` + + // The ARN of the directory to delete. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteDirectoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDirectoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDirectoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDirectoryInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *DeleteDirectoryInput) SetDirectoryArn(v string) *DeleteDirectoryInput { + s.DirectoryArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DeleteDirectoryResponse +type DeleteDirectoryOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the deleted directory. + // + // DirectoryArn is a required field + DirectoryArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteDirectoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDirectoryOutput) GoString() string { + return s.String() +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *DeleteDirectoryOutput) SetDirectoryArn(v string) *DeleteDirectoryOutput { + s.DirectoryArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DeleteFacetRequest +type DeleteFacetInput struct { + _ struct{} `type:"structure"` + + // The name of the facet to delete. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // ARN associated with the Facet. For more information, see arns. + // + // SchemaArn is a required field + SchemaArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteFacetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFacetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteFacetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFacetInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.SchemaArn == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *DeleteFacetInput) SetName(v string) *DeleteFacetInput { + s.Name = &v + return s +} + +// SetSchemaArn sets the SchemaArn field's value. +func (s *DeleteFacetInput) SetSchemaArn(v string) *DeleteFacetInput { + s.SchemaArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DeleteFacetResponse +type DeleteFacetOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteFacetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFacetOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DeleteObjectRequest +type DeleteObjectInput struct { + _ struct{} `type:"structure"` + + // ARN associated with the Directory where the object resides. For more information, + // see arns. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // Reference that identifies the object. + // + // ObjectReference is a required field + ObjectReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DeleteObjectInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteObjectInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteObjectInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteObjectInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.ObjectReference == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *DeleteObjectInput) SetDirectoryArn(v string) *DeleteObjectInput { + s.DirectoryArn = &v + return s +} + +// SetObjectReference sets the ObjectReference field's value. +func (s *DeleteObjectInput) SetObjectReference(v *ObjectReference) *DeleteObjectInput { + s.ObjectReference = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DeleteObjectResponse +type DeleteObjectOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteObjectOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteObjectOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DeleteSchemaRequest +type DeleteSchemaInput struct { + _ struct{} `type:"structure"` + + // ARN of the development schema. For more information, see arns. + // + // SchemaArn is a required field + SchemaArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteSchemaInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteSchemaInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteSchemaInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSchemaInput"} + if s.SchemaArn == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSchemaArn sets the SchemaArn field's value. +func (s *DeleteSchemaInput) SetSchemaArn(v string) *DeleteSchemaInput { + s.SchemaArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DeleteSchemaResponse +type DeleteSchemaOutput struct { + _ struct{} `type:"structure"` + + // Input ARN that is returned as part of the response. For more information, + // see arns. + SchemaArn *string `type:"string"` +} + +// String returns the string representation +func (s DeleteSchemaOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteSchemaOutput) GoString() string { + return s.String() +} + +// SetSchemaArn sets the SchemaArn field's value. +func (s *DeleteSchemaOutput) SetSchemaArn(v string) *DeleteSchemaOutput { + s.SchemaArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DetachFromIndexRequest +type DetachFromIndexInput struct { + _ struct{} `type:"structure"` + + // The ARN of the directory the index and object exist in. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // A reference to the index object. + // + // IndexReference is a required field + IndexReference *ObjectReference `type:"structure" required:"true"` + + // A reference to the object being detached from the index. + // + // TargetReference is a required field + TargetReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DetachFromIndexInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetachFromIndexInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DetachFromIndexInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetachFromIndexInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.IndexReference == nil { + invalidParams.Add(request.NewErrParamRequired("IndexReference")) + } + if s.TargetReference == nil { + invalidParams.Add(request.NewErrParamRequired("TargetReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *DetachFromIndexInput) SetDirectoryArn(v string) *DetachFromIndexInput { + s.DirectoryArn = &v + return s +} + +// SetIndexReference sets the IndexReference field's value. +func (s *DetachFromIndexInput) SetIndexReference(v *ObjectReference) *DetachFromIndexInput { + s.IndexReference = v + return s +} + +// SetTargetReference sets the TargetReference field's value. +func (s *DetachFromIndexInput) SetTargetReference(v *ObjectReference) *DetachFromIndexInput { + s.TargetReference = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DetachFromIndexResponse +type DetachFromIndexOutput struct { + _ struct{} `type:"structure"` + + // The ObjectIdentifier of the object that was detached from the index. + DetachedObjectIdentifier *string `type:"string"` +} + +// String returns the string representation +func (s DetachFromIndexOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetachFromIndexOutput) GoString() string { + return s.String() +} + +// SetDetachedObjectIdentifier sets the DetachedObjectIdentifier field's value. +func (s *DetachFromIndexOutput) SetDetachedObjectIdentifier(v string) *DetachFromIndexOutput { + s.DetachedObjectIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DetachObjectRequest +type DetachObjectInput struct { + _ struct{} `type:"structure"` + + // ARN associated with the Directory where objects reside. For more information, + // see arns. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // Link name associated with the object that needs to be detached. + // + // LinkName is a required field + LinkName *string `type:"string" required:"true"` + + // Parent reference from which the object with the specified link name is detached. + // + // ParentReference is a required field + ParentReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DetachObjectInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetachObjectInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DetachObjectInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetachObjectInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.LinkName == nil { + invalidParams.Add(request.NewErrParamRequired("LinkName")) + } + if s.ParentReference == nil { + invalidParams.Add(request.NewErrParamRequired("ParentReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *DetachObjectInput) SetDirectoryArn(v string) *DetachObjectInput { + s.DirectoryArn = &v + return s +} + +// SetLinkName sets the LinkName field's value. +func (s *DetachObjectInput) SetLinkName(v string) *DetachObjectInput { + s.LinkName = &v + return s +} + +// SetParentReference sets the ParentReference field's value. +func (s *DetachObjectInput) SetParentReference(v *ObjectReference) *DetachObjectInput { + s.ParentReference = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DetachObjectResponse +type DetachObjectOutput struct { + _ struct{} `type:"structure"` + + // The ObjectIdentifier that was detached from the object. + DetachedObjectIdentifier *string `type:"string"` +} + +// String returns the string representation +func (s DetachObjectOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetachObjectOutput) GoString() string { + return s.String() +} + +// SetDetachedObjectIdentifier sets the DetachedObjectIdentifier field's value. +func (s *DetachObjectOutput) SetDetachedObjectIdentifier(v string) *DetachObjectOutput { + s.DetachedObjectIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DetachPolicyRequest +type DetachPolicyInput struct { + _ struct{} `type:"structure"` + + // ARN associated with the Directory where both objects reside. For more information, + // see arns. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // Reference that identifies the object whose policy object will be detached. + // + // ObjectReference is a required field + ObjectReference *ObjectReference `type:"structure" required:"true"` + + // Reference that identifies the policy object. + // + // PolicyReference is a required field + PolicyReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DetachPolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetachPolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DetachPolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetachPolicyInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.ObjectReference == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectReference")) + } + if s.PolicyReference == nil { + invalidParams.Add(request.NewErrParamRequired("PolicyReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *DetachPolicyInput) SetDirectoryArn(v string) *DetachPolicyInput { + s.DirectoryArn = &v + return s +} + +// SetObjectReference sets the ObjectReference field's value. +func (s *DetachPolicyInput) SetObjectReference(v *ObjectReference) *DetachPolicyInput { + s.ObjectReference = v + return s +} + +// SetPolicyReference sets the PolicyReference field's value. +func (s *DetachPolicyInput) SetPolicyReference(v *ObjectReference) *DetachPolicyInput { + s.PolicyReference = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DetachPolicyResponse +type DetachPolicyOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DetachPolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetachPolicyOutput) GoString() string { + return s.String() +} + +// Directory structure that includes the directory name and directory ARN. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/Directory +type Directory struct { + _ struct{} `type:"structure"` + + // The date and time when the directory was created. + CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // ARN associated with the directory. For more information, see arns. + DirectoryArn *string `type:"string"` + + // The name of the directory. + Name *string `min:"1" type:"string"` + + // The state of the directory. Can be either Enabled, Disabled, or Deleted. + State *string `type:"string" enum:"DirectoryState"` +} + +// String returns the string representation +func (s Directory) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Directory) GoString() string { + return s.String() +} + +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *Directory) SetCreationDateTime(v time.Time) *Directory { + s.CreationDateTime = &v + return s +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *Directory) SetDirectoryArn(v string) *Directory { + s.DirectoryArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *Directory) SetName(v string) *Directory { + s.Name = &v + return s +} + +// SetState sets the State field's value. +func (s *Directory) SetState(v string) *Directory { + s.State = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DisableDirectoryRequest +type DisableDirectoryInput struct { + _ struct{} `type:"structure"` + + // The ARN of the directory to disable. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisableDirectoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisableDirectoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisableDirectoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisableDirectoryInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *DisableDirectoryInput) SetDirectoryArn(v string) *DisableDirectoryInput { + s.DirectoryArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/DisableDirectoryResponse +type DisableDirectoryOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the directory that has been disabled. + // + // DirectoryArn is a required field + DirectoryArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DisableDirectoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisableDirectoryOutput) GoString() string { + return s.String() +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *DisableDirectoryOutput) SetDirectoryArn(v string) *DisableDirectoryOutput { + s.DirectoryArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/EnableDirectoryRequest +type EnableDirectoryInput struct { + _ struct{} `type:"structure"` + + // The ARN of the directory to enable. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` +} + +// String returns the string representation +func (s EnableDirectoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnableDirectoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EnableDirectoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EnableDirectoryInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *EnableDirectoryInput) SetDirectoryArn(v string) *EnableDirectoryInput { + s.DirectoryArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/EnableDirectoryResponse +type EnableDirectoryOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the enabled directory. + // + // DirectoryArn is a required field + DirectoryArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s EnableDirectoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnableDirectoryOutput) GoString() string { + return s.String() +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *EnableDirectoryOutput) SetDirectoryArn(v string) *EnableDirectoryOutput { + s.DirectoryArn = &v + return s +} + +// A structure that contains Name, ARN, Attributes, Rules, and ObjectTypes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/Facet +type Facet struct { + _ struct{} `type:"structure"` + + // The name of the Facet. + Name *string `min:"1" type:"string"` + + // Object type associated with the facet. See CreateFacetRequest$ObjectType + // for more details. + ObjectType *string `type:"string" enum:"ObjectType"` +} + +// String returns the string representation +func (s Facet) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Facet) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *Facet) SetName(v string) *Facet { + s.Name = &v + return s +} + +// SetObjectType sets the ObjectType field's value. +func (s *Facet) SetObjectType(v string) *Facet { + s.ObjectType = &v + return s +} + +// Attribute associated with the Facet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/FacetAttribute +type FacetAttribute struct { + _ struct{} `type:"structure"` + + // A facet attribute consists of either a definition or a reference. This structure + // contains the attribute definition. See Attribute References (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_advanced.html#attributereferences) + // for more information. + AttributeDefinition *FacetAttributeDefinition `type:"structure"` + + // Attribute reference associated with the attribute. See Attribute References + // (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_advanced.html#attributereferences) + // for more information. + AttributeReference *FacetAttributeReference `type:"structure"` + + // The name of the facet attribute. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The required behavior of the FacetAttribute. + RequiredBehavior *string `type:"string" enum:"RequiredAttributeBehavior"` +} + +// String returns the string representation +func (s FacetAttribute) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FacetAttribute) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *FacetAttribute) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FacetAttribute"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.AttributeDefinition != nil { + if err := s.AttributeDefinition.Validate(); err != nil { + invalidParams.AddNested("AttributeDefinition", err.(request.ErrInvalidParams)) + } + } + if s.AttributeReference != nil { + if err := s.AttributeReference.Validate(); err != nil { + invalidParams.AddNested("AttributeReference", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttributeDefinition sets the AttributeDefinition field's value. +func (s *FacetAttribute) SetAttributeDefinition(v *FacetAttributeDefinition) *FacetAttribute { + s.AttributeDefinition = v + return s +} + +// SetAttributeReference sets the AttributeReference field's value. +func (s *FacetAttribute) SetAttributeReference(v *FacetAttributeReference) *FacetAttribute { + s.AttributeReference = v + return s +} + +// SetName sets the Name field's value. +func (s *FacetAttribute) SetName(v string) *FacetAttribute { + s.Name = &v + return s +} + +// SetRequiredBehavior sets the RequiredBehavior field's value. +func (s *FacetAttribute) SetRequiredBehavior(v string) *FacetAttribute { + s.RequiredBehavior = &v + return s +} + +// A facet attribute definition. See Attribute References (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_advanced.html#attributereferences) +// for more information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/FacetAttributeDefinition +type FacetAttributeDefinition struct { + _ struct{} `type:"structure"` + + // The default value of the attribute (if configured). + DefaultValue *TypedAttributeValue `type:"structure"` + + // Whether the attribute is mutable or not. + IsImmutable *bool `type:"boolean"` + + // Validation rules attached to the attribute definition. + Rules map[string]*Rule `type:"map"` + + // The type of the attribute. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"FacetAttributeType"` +} + +// String returns the string representation +func (s FacetAttributeDefinition) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FacetAttributeDefinition) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *FacetAttributeDefinition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FacetAttributeDefinition"} + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDefaultValue sets the DefaultValue field's value. +func (s *FacetAttributeDefinition) SetDefaultValue(v *TypedAttributeValue) *FacetAttributeDefinition { + s.DefaultValue = v + return s +} + +// SetIsImmutable sets the IsImmutable field's value. +func (s *FacetAttributeDefinition) SetIsImmutable(v bool) *FacetAttributeDefinition { + s.IsImmutable = &v + return s +} + +// SetRules sets the Rules field's value. +func (s *FacetAttributeDefinition) SetRules(v map[string]*Rule) *FacetAttributeDefinition { + s.Rules = v + return s +} + +// SetType sets the Type field's value. +func (s *FacetAttributeDefinition) SetType(v string) *FacetAttributeDefinition { + s.Type = &v + return s +} + +// Facet attribute reference that specifies the attribute definition which contains +// attribute facet name and attribute name. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/FacetAttributeReference +type FacetAttributeReference struct { + _ struct{} `type:"structure"` + + // Target attribute name associated with the facet reference. See Attribute + // References (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_advanced.html#attributereferences) + // for more information. + // + // TargetAttributeName is a required field + TargetAttributeName *string `min:"1" type:"string" required:"true"` + + // Target facet name associated with the facet reference. See Attribute References + // (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_advanced.html#attributereferences) + // for more information. + // + // TargetFacetName is a required field + TargetFacetName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s FacetAttributeReference) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FacetAttributeReference) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *FacetAttributeReference) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FacetAttributeReference"} + if s.TargetAttributeName == nil { + invalidParams.Add(request.NewErrParamRequired("TargetAttributeName")) + } + if s.TargetAttributeName != nil && len(*s.TargetAttributeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TargetAttributeName", 1)) + } + if s.TargetFacetName == nil { + invalidParams.Add(request.NewErrParamRequired("TargetFacetName")) + } + if s.TargetFacetName != nil && len(*s.TargetFacetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TargetFacetName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTargetAttributeName sets the TargetAttributeName field's value. +func (s *FacetAttributeReference) SetTargetAttributeName(v string) *FacetAttributeReference { + s.TargetAttributeName = &v + return s +} + +// SetTargetFacetName sets the TargetFacetName field's value. +func (s *FacetAttributeReference) SetTargetFacetName(v string) *FacetAttributeReference { + s.TargetFacetName = &v + return s +} + +// A structure that contains information used to update an attribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/FacetAttributeUpdate +type FacetAttributeUpdate struct { + _ struct{} `type:"structure"` + + // The action to perform when updating the attribute. + Action *string `type:"string" enum:"UpdateActionType"` + + // The attribute to update. + Attribute *FacetAttribute `type:"structure"` +} + +// String returns the string representation +func (s FacetAttributeUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FacetAttributeUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *FacetAttributeUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FacetAttributeUpdate"} + if s.Attribute != nil { + if err := s.Attribute.Validate(); err != nil { + invalidParams.AddNested("Attribute", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAction sets the Action field's value. +func (s *FacetAttributeUpdate) SetAction(v string) *FacetAttributeUpdate { + s.Action = &v + return s +} + +// SetAttribute sets the Attribute field's value. +func (s *FacetAttributeUpdate) SetAttribute(v *FacetAttribute) *FacetAttributeUpdate { + s.Attribute = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/GetDirectoryRequest +type GetDirectoryInput struct { + _ struct{} `type:"structure"` + + // The ARN of the directory. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetDirectoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDirectoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDirectoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDirectoryInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *GetDirectoryInput) SetDirectoryArn(v string) *GetDirectoryInput { + s.DirectoryArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/GetDirectoryResponse +type GetDirectoryOutput struct { + _ struct{} `type:"structure"` + + // Metadata about the directory. + // + // Directory is a required field + Directory *Directory `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetDirectoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDirectoryOutput) GoString() string { + return s.String() +} + +// SetDirectory sets the Directory field's value. +func (s *GetDirectoryOutput) SetDirectory(v *Directory) *GetDirectoryOutput { + s.Directory = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/GetFacetRequest +type GetFacetInput struct { + _ struct{} `type:"structure"` + + // The name of the facet to retrieve. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // ARN associated with the Facet. For more information, see arns. + // + // SchemaArn is a required field + SchemaArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetFacetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetFacetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetFacetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetFacetInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.SchemaArn == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *GetFacetInput) SetName(v string) *GetFacetInput { + s.Name = &v + return s +} + +// SetSchemaArn sets the SchemaArn field's value. +func (s *GetFacetInput) SetSchemaArn(v string) *GetFacetInput { + s.SchemaArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/GetFacetResponse +type GetFacetOutput struct { + _ struct{} `type:"structure"` + + // Facet structure associated with the facet. + Facet *Facet `type:"structure"` +} + +// String returns the string representation +func (s GetFacetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetFacetOutput) GoString() string { + return s.String() +} + +// SetFacet sets the Facet field's value. +func (s *GetFacetOutput) SetFacet(v *Facet) *GetFacetOutput { + s.Facet = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/GetObjectInformationRequest +type GetObjectInformationInput struct { + _ struct{} `type:"structure"` + + // The consistency level at which to retrieve the object information. + ConsistencyLevel *string `location:"header" locationName:"x-amz-consistency-level" type:"string" enum:"ConsistencyLevel"` + + // The ARN of the directory being retrieved. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // A reference to the object. + // + // ObjectReference is a required field + ObjectReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetObjectInformationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetObjectInformationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetObjectInformationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetObjectInformationInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.ObjectReference == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConsistencyLevel sets the ConsistencyLevel field's value. +func (s *GetObjectInformationInput) SetConsistencyLevel(v string) *GetObjectInformationInput { + s.ConsistencyLevel = &v + return s +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *GetObjectInformationInput) SetDirectoryArn(v string) *GetObjectInformationInput { + s.DirectoryArn = &v + return s +} + +// SetObjectReference sets the ObjectReference field's value. +func (s *GetObjectInformationInput) SetObjectReference(v *ObjectReference) *GetObjectInformationInput { + s.ObjectReference = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/GetObjectInformationResponse +type GetObjectInformationOutput struct { + _ struct{} `type:"structure"` + + // The ObjectIdentifier of the specified object. + ObjectIdentifier *string `type:"string"` + + // The facets attached to the specified object. + SchemaFacets []*SchemaFacet `type:"list"` +} + +// String returns the string representation +func (s GetObjectInformationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetObjectInformationOutput) GoString() string { + return s.String() +} + +// SetObjectIdentifier sets the ObjectIdentifier field's value. +func (s *GetObjectInformationOutput) SetObjectIdentifier(v string) *GetObjectInformationOutput { + s.ObjectIdentifier = &v + return s +} + +// SetSchemaFacets sets the SchemaFacets field's value. +func (s *GetObjectInformationOutput) SetSchemaFacets(v []*SchemaFacet) *GetObjectInformationOutput { + s.SchemaFacets = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/GetSchemaAsJsonRequest +type GetSchemaAsJsonInput struct { + _ struct{} `type:"structure"` + + // The ARN of the schema to retrieve. + // + // SchemaArn is a required field + SchemaArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetSchemaAsJsonInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetSchemaAsJsonInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetSchemaAsJsonInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSchemaAsJsonInput"} + if s.SchemaArn == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSchemaArn sets the SchemaArn field's value. +func (s *GetSchemaAsJsonInput) SetSchemaArn(v string) *GetSchemaAsJsonInput { + s.SchemaArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/GetSchemaAsJsonResponse +type GetSchemaAsJsonOutput struct { + _ struct{} `type:"structure"` + + // The JSON representation of the schema document. + Document *string `type:"string"` + + // The name of the retrieved schema. + Name *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s GetSchemaAsJsonOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetSchemaAsJsonOutput) GoString() string { + return s.String() +} + +// SetDocument sets the Document field's value. +func (s *GetSchemaAsJsonOutput) SetDocument(v string) *GetSchemaAsJsonOutput { + s.Document = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetSchemaAsJsonOutput) SetName(v string) *GetSchemaAsJsonOutput { + s.Name = &v + return s +} + +// Represents an index and an attached object. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/IndexAttachment +type IndexAttachment struct { + _ struct{} `type:"structure"` + + // The indexed attribute values. + IndexedAttributes []*AttributeKeyAndValue `type:"list"` + + // The ObjectIdentifier of the object attached to the index. + ObjectIdentifier *string `type:"string"` +} + +// String returns the string representation +func (s IndexAttachment) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IndexAttachment) GoString() string { + return s.String() +} + +// SetIndexedAttributes sets the IndexedAttributes field's value. +func (s *IndexAttachment) SetIndexedAttributes(v []*AttributeKeyAndValue) *IndexAttachment { + s.IndexedAttributes = v + return s +} + +// SetObjectIdentifier sets the ObjectIdentifier field's value. +func (s *IndexAttachment) SetObjectIdentifier(v string) *IndexAttachment { + s.ObjectIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListAppliedSchemaArnsRequest +type ListAppliedSchemaArnsInput struct { + _ struct{} `type:"structure"` + + // The ARN of the directory you are listing. + // + // DirectoryArn is a required field + DirectoryArn *string `type:"string" required:"true"` + + // The maximum number of results to retrieve. + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListAppliedSchemaArnsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAppliedSchemaArnsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAppliedSchemaArnsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAppliedSchemaArnsInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *ListAppliedSchemaArnsInput) SetDirectoryArn(v string) *ListAppliedSchemaArnsInput { + s.DirectoryArn = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAppliedSchemaArnsInput) SetMaxResults(v int64) *ListAppliedSchemaArnsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAppliedSchemaArnsInput) SetNextToken(v string) *ListAppliedSchemaArnsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListAppliedSchemaArnsResponse +type ListAppliedSchemaArnsOutput struct { + _ struct{} `type:"structure"` + + // The pagination token. + NextToken *string `type:"string"` + + // The ARNs of schemas that are applied to the directory. + SchemaArns []*string `type:"list"` +} + +// String returns the string representation +func (s ListAppliedSchemaArnsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAppliedSchemaArnsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAppliedSchemaArnsOutput) SetNextToken(v string) *ListAppliedSchemaArnsOutput { + s.NextToken = &v + return s +} + +// SetSchemaArns sets the SchemaArns field's value. +func (s *ListAppliedSchemaArnsOutput) SetSchemaArns(v []*string) *ListAppliedSchemaArnsOutput { + s.SchemaArns = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListAttachedIndicesRequest +type ListAttachedIndicesInput struct { + _ struct{} `type:"structure"` + + // The consistency level to use for this operation. + ConsistencyLevel *string `location:"header" locationName:"x-amz-consistency-level" type:"string" enum:"ConsistencyLevel"` + + // The ARN of the directory. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // The maximum number of results to retrieve. + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token. + NextToken *string `type:"string"` + + // A reference to the object to that has indices attached. + // + // TargetReference is a required field + TargetReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s ListAttachedIndicesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAttachedIndicesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAttachedIndicesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAttachedIndicesInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.TargetReference == nil { + invalidParams.Add(request.NewErrParamRequired("TargetReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConsistencyLevel sets the ConsistencyLevel field's value. +func (s *ListAttachedIndicesInput) SetConsistencyLevel(v string) *ListAttachedIndicesInput { + s.ConsistencyLevel = &v + return s +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *ListAttachedIndicesInput) SetDirectoryArn(v string) *ListAttachedIndicesInput { + s.DirectoryArn = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAttachedIndicesInput) SetMaxResults(v int64) *ListAttachedIndicesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAttachedIndicesInput) SetNextToken(v string) *ListAttachedIndicesInput { + s.NextToken = &v + return s +} + +// SetTargetReference sets the TargetReference field's value. +func (s *ListAttachedIndicesInput) SetTargetReference(v *ObjectReference) *ListAttachedIndicesInput { + s.TargetReference = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListAttachedIndicesResponse +type ListAttachedIndicesOutput struct { + _ struct{} `type:"structure"` + + // The indices attached to the specified object. + IndexAttachments []*IndexAttachment `type:"list"` + + // The pagination token. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListAttachedIndicesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAttachedIndicesOutput) GoString() string { + return s.String() +} + +// SetIndexAttachments sets the IndexAttachments field's value. +func (s *ListAttachedIndicesOutput) SetIndexAttachments(v []*IndexAttachment) *ListAttachedIndicesOutput { + s.IndexAttachments = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAttachedIndicesOutput) SetNextToken(v string) *ListAttachedIndicesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListDevelopmentSchemaArnsRequest +type ListDevelopmentSchemaArnsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to retrieve. + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListDevelopmentSchemaArnsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDevelopmentSchemaArnsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDevelopmentSchemaArnsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDevelopmentSchemaArnsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListDevelopmentSchemaArnsInput) SetMaxResults(v int64) *ListDevelopmentSchemaArnsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDevelopmentSchemaArnsInput) SetNextToken(v string) *ListDevelopmentSchemaArnsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListDevelopmentSchemaArnsResponse +type ListDevelopmentSchemaArnsOutput struct { + _ struct{} `type:"structure"` + + // The pagination token. + NextToken *string `type:"string"` + + // The ARNs of retrieved development schemas. + SchemaArns []*string `type:"list"` +} + +// String returns the string representation +func (s ListDevelopmentSchemaArnsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDevelopmentSchemaArnsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDevelopmentSchemaArnsOutput) SetNextToken(v string) *ListDevelopmentSchemaArnsOutput { + s.NextToken = &v + return s +} + +// SetSchemaArns sets the SchemaArns field's value. +func (s *ListDevelopmentSchemaArnsOutput) SetSchemaArns(v []*string) *ListDevelopmentSchemaArnsOutput { + s.SchemaArns = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListDirectoriesRequest +type ListDirectoriesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to retrieve. + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token. + NextToken *string `type:"string"` + + // The state of the directories in the list. Can be either Enabled, Disabled, + // or Deleted. + State *string `locationName:"state" type:"string" enum:"DirectoryState"` +} + +// String returns the string representation +func (s ListDirectoriesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDirectoriesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDirectoriesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDirectoriesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListDirectoriesInput) SetMaxResults(v int64) *ListDirectoriesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDirectoriesInput) SetNextToken(v string) *ListDirectoriesInput { + s.NextToken = &v + return s +} + +// SetState sets the State field's value. +func (s *ListDirectoriesInput) SetState(v string) *ListDirectoriesInput { + s.State = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListDirectoriesResponse +type ListDirectoriesOutput struct { + _ struct{} `type:"structure"` + + // Lists all directories associated with your account in pagination fashion. + // + // Directories is a required field + Directories []*Directory `type:"list" required:"true"` + + // The pagination token. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListDirectoriesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDirectoriesOutput) GoString() string { + return s.String() +} + +// SetDirectories sets the Directories field's value. +func (s *ListDirectoriesOutput) SetDirectories(v []*Directory) *ListDirectoriesOutput { + s.Directories = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDirectoriesOutput) SetNextToken(v string) *ListDirectoriesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListFacetAttributesRequest +type ListFacetAttributesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to retrieve. + MaxResults *int64 `min:"1" type:"integer"` + + // The name of the facet whose attributes will be retrieved. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The pagination token. + NextToken *string `type:"string"` + + // The ARN of the schema where the facet resides. + // + // SchemaArn is a required field + SchemaArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListFacetAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListFacetAttributesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListFacetAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListFacetAttributesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.SchemaArn == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListFacetAttributesInput) SetMaxResults(v int64) *ListFacetAttributesInput { + s.MaxResults = &v + return s +} + +// SetName sets the Name field's value. +func (s *ListFacetAttributesInput) SetName(v string) *ListFacetAttributesInput { + s.Name = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFacetAttributesInput) SetNextToken(v string) *ListFacetAttributesInput { + s.NextToken = &v + return s +} + +// SetSchemaArn sets the SchemaArn field's value. +func (s *ListFacetAttributesInput) SetSchemaArn(v string) *ListFacetAttributesInput { + s.SchemaArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListFacetAttributesResponse +type ListFacetAttributesOutput struct { + _ struct{} `type:"structure"` + + // The attributes attached to the facet. + Attributes []*FacetAttribute `type:"list"` + + // The pagination token. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListFacetAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListFacetAttributesOutput) GoString() string { + return s.String() +} + +// SetAttributes sets the Attributes field's value. +func (s *ListFacetAttributesOutput) SetAttributes(v []*FacetAttribute) *ListFacetAttributesOutput { + s.Attributes = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFacetAttributesOutput) SetNextToken(v string) *ListFacetAttributesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListFacetNamesRequest +type ListFacetNamesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to retrieve + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token. + NextToken *string `type:"string"` + + // The ARN to retrieve facet names from. + // + // SchemaArn is a required field + SchemaArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListFacetNamesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListFacetNamesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListFacetNamesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListFacetNamesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.SchemaArn == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListFacetNamesInput) SetMaxResults(v int64) *ListFacetNamesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFacetNamesInput) SetNextToken(v string) *ListFacetNamesInput { + s.NextToken = &v + return s +} + +// SetSchemaArn sets the SchemaArn field's value. +func (s *ListFacetNamesInput) SetSchemaArn(v string) *ListFacetNamesInput { + s.SchemaArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListFacetNamesResponse +type ListFacetNamesOutput struct { + _ struct{} `type:"structure"` + + // The names of facets that exist within the schema. + FacetNames []*string `type:"list"` + + // The pagination token. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListFacetNamesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListFacetNamesOutput) GoString() string { + return s.String() +} + +// SetFacetNames sets the FacetNames field's value. +func (s *ListFacetNamesOutput) SetFacetNames(v []*string) *ListFacetNamesOutput { + s.FacetNames = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFacetNamesOutput) SetNextToken(v string) *ListFacetNamesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListIndexRequest +type ListIndexInput struct { + _ struct{} `type:"structure"` + + // The consistency level to execute the request at. + ConsistencyLevel *string `location:"header" locationName:"x-amz-consistency-level" type:"string" enum:"ConsistencyLevel"` + + // The ARN of the directory that the index exists in. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // The reference to the index to list. + // + // IndexReference is a required field + IndexReference *ObjectReference `type:"structure" required:"true"` + + // The maximum number of results to retrieve from the index. + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token. + NextToken *string `type:"string"` + + // Specifies the ranges of indexed values that you want to query. + RangesOnIndexedValues []*ObjectAttributeRange `type:"list"` +} + +// String returns the string representation +func (s ListIndexInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListIndexInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListIndexInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListIndexInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.IndexReference == nil { + invalidParams.Add(request.NewErrParamRequired("IndexReference")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.RangesOnIndexedValues != nil { + for i, v := range s.RangesOnIndexedValues { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RangesOnIndexedValues", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConsistencyLevel sets the ConsistencyLevel field's value. +func (s *ListIndexInput) SetConsistencyLevel(v string) *ListIndexInput { + s.ConsistencyLevel = &v + return s +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *ListIndexInput) SetDirectoryArn(v string) *ListIndexInput { + s.DirectoryArn = &v + return s +} + +// SetIndexReference sets the IndexReference field's value. +func (s *ListIndexInput) SetIndexReference(v *ObjectReference) *ListIndexInput { + s.IndexReference = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListIndexInput) SetMaxResults(v int64) *ListIndexInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListIndexInput) SetNextToken(v string) *ListIndexInput { + s.NextToken = &v + return s +} + +// SetRangesOnIndexedValues sets the RangesOnIndexedValues field's value. +func (s *ListIndexInput) SetRangesOnIndexedValues(v []*ObjectAttributeRange) *ListIndexInput { + s.RangesOnIndexedValues = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListIndexResponse +type ListIndexOutput struct { + _ struct{} `type:"structure"` + + // The objects and indexed values attached to the index. + IndexAttachments []*IndexAttachment `type:"list"` + + // The pagination token. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListIndexOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListIndexOutput) GoString() string { + return s.String() +} + +// SetIndexAttachments sets the IndexAttachments field's value. +func (s *ListIndexOutput) SetIndexAttachments(v []*IndexAttachment) *ListIndexOutput { + s.IndexAttachments = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListIndexOutput) SetNextToken(v string) *ListIndexOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListObjectAttributesRequest +type ListObjectAttributesInput struct { + _ struct{} `type:"structure"` + + // Represents the manner and timing in which the successful write or update + // of an object is reflected in a subsequent read operation of that same object. + ConsistencyLevel *string `location:"header" locationName:"x-amz-consistency-level" type:"string" enum:"ConsistencyLevel"` + + // ARN associated with the Directory where the object resides. For more information, + // see arns. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // Maximum number of items to be retrieved in a single call. This is an approximate + // number. + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token. + NextToken *string `type:"string"` + + // Reference that identifies the object whose attributes will be listed. + // + // ObjectReference is a required field + ObjectReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s ListObjectAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListObjectAttributesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListObjectAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListObjectAttributesInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ObjectReference == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConsistencyLevel sets the ConsistencyLevel field's value. +func (s *ListObjectAttributesInput) SetConsistencyLevel(v string) *ListObjectAttributesInput { + s.ConsistencyLevel = &v + return s +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *ListObjectAttributesInput) SetDirectoryArn(v string) *ListObjectAttributesInput { + s.DirectoryArn = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListObjectAttributesInput) SetMaxResults(v int64) *ListObjectAttributesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListObjectAttributesInput) SetNextToken(v string) *ListObjectAttributesInput { + s.NextToken = &v + return s +} + +// SetObjectReference sets the ObjectReference field's value. +func (s *ListObjectAttributesInput) SetObjectReference(v *ObjectReference) *ListObjectAttributesInput { + s.ObjectReference = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListObjectAttributesResponse +type ListObjectAttributesOutput struct { + _ struct{} `type:"structure"` + + // Attributes map associated with the object. AttributeArn is the key, and attribute + // value is the value. + Attributes []*AttributeKeyAndValue `type:"list"` + + // The pagination token. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListObjectAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListObjectAttributesOutput) GoString() string { + return s.String() +} + +// SetAttributes sets the Attributes field's value. +func (s *ListObjectAttributesOutput) SetAttributes(v []*AttributeKeyAndValue) *ListObjectAttributesOutput { + s.Attributes = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListObjectAttributesOutput) SetNextToken(v string) *ListObjectAttributesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListObjectChildrenRequest +type ListObjectChildrenInput struct { + _ struct{} `type:"structure"` + + // Represents the manner and timing in which the successful write or update + // of an object is reflected in a subsequent read operation of that same object. + ConsistencyLevel *string `location:"header" locationName:"x-amz-consistency-level" type:"string" enum:"ConsistencyLevel"` + + // ARN associated with the Directory where the object resides. For more information, + // see arns. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // Maximum number of items to be retrieved in a single call. This is an approximate + // number. + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token. + NextToken *string `type:"string"` + + // Reference that identifies the object for which child objects are being listed. + // + // ObjectReference is a required field + ObjectReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s ListObjectChildrenInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListObjectChildrenInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListObjectChildrenInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListObjectChildrenInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ObjectReference == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConsistencyLevel sets the ConsistencyLevel field's value. +func (s *ListObjectChildrenInput) SetConsistencyLevel(v string) *ListObjectChildrenInput { + s.ConsistencyLevel = &v + return s +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *ListObjectChildrenInput) SetDirectoryArn(v string) *ListObjectChildrenInput { + s.DirectoryArn = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListObjectChildrenInput) SetMaxResults(v int64) *ListObjectChildrenInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListObjectChildrenInput) SetNextToken(v string) *ListObjectChildrenInput { + s.NextToken = &v + return s +} + +// SetObjectReference sets the ObjectReference field's value. +func (s *ListObjectChildrenInput) SetObjectReference(v *ObjectReference) *ListObjectChildrenInput { + s.ObjectReference = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListObjectChildrenResponse +type ListObjectChildrenOutput struct { + _ struct{} `type:"structure"` + + // Children structure, which is a map with key as the LinkName and ObjectIdentifier + // as the value. + Children map[string]*string `type:"map"` + + // The pagination token. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListObjectChildrenOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListObjectChildrenOutput) GoString() string { + return s.String() +} + +// SetChildren sets the Children field's value. +func (s *ListObjectChildrenOutput) SetChildren(v map[string]*string) *ListObjectChildrenOutput { + s.Children = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListObjectChildrenOutput) SetNextToken(v string) *ListObjectChildrenOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListObjectParentPathsRequest +type ListObjectParentPathsInput struct { + _ struct{} `type:"structure"` + + // The ARN of the directory to which the parent path applies. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // Maximum number of items to be retrieved in a single call. This is an approximate + // number. + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token. + NextToken *string `type:"string"` + + // Reference that identifies the object whose parent paths are listed. + // + // ObjectReference is a required field + ObjectReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s ListObjectParentPathsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListObjectParentPathsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListObjectParentPathsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListObjectParentPathsInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ObjectReference == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *ListObjectParentPathsInput) SetDirectoryArn(v string) *ListObjectParentPathsInput { + s.DirectoryArn = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListObjectParentPathsInput) SetMaxResults(v int64) *ListObjectParentPathsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListObjectParentPathsInput) SetNextToken(v string) *ListObjectParentPathsInput { + s.NextToken = &v + return s +} + +// SetObjectReference sets the ObjectReference field's value. +func (s *ListObjectParentPathsInput) SetObjectReference(v *ObjectReference) *ListObjectParentPathsInput { + s.ObjectReference = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListObjectParentPathsResponse +type ListObjectParentPathsOutput struct { + _ struct{} `type:"structure"` + + // The pagination token. + NextToken *string `type:"string"` + + // Returns the path to the ObjectIdentifiers associated with the directory. + PathToObjectIdentifiersList []*PathToObjectIdentifiers `type:"list"` +} + +// String returns the string representation +func (s ListObjectParentPathsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListObjectParentPathsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListObjectParentPathsOutput) SetNextToken(v string) *ListObjectParentPathsOutput { + s.NextToken = &v + return s +} + +// SetPathToObjectIdentifiersList sets the PathToObjectIdentifiersList field's value. +func (s *ListObjectParentPathsOutput) SetPathToObjectIdentifiersList(v []*PathToObjectIdentifiers) *ListObjectParentPathsOutput { + s.PathToObjectIdentifiersList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListObjectParentsRequest +type ListObjectParentsInput struct { + _ struct{} `type:"structure"` + + // Represents the manner and timing in which the successful write or update + // of an object is reflected in a subsequent read operation of that same object. + ConsistencyLevel *string `location:"header" locationName:"x-amz-consistency-level" type:"string" enum:"ConsistencyLevel"` + + // ARN associated with the Directory where the object resides. For more information, + // see arns. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // Maximum number of items to be retrieved in a single call. This is an approximate + // number. + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token. + NextToken *string `type:"string"` + + // Reference that identifies the object for which parent objects are being listed. + // + // ObjectReference is a required field + ObjectReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s ListObjectParentsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListObjectParentsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListObjectParentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListObjectParentsInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ObjectReference == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConsistencyLevel sets the ConsistencyLevel field's value. +func (s *ListObjectParentsInput) SetConsistencyLevel(v string) *ListObjectParentsInput { + s.ConsistencyLevel = &v + return s +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *ListObjectParentsInput) SetDirectoryArn(v string) *ListObjectParentsInput { + s.DirectoryArn = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListObjectParentsInput) SetMaxResults(v int64) *ListObjectParentsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListObjectParentsInput) SetNextToken(v string) *ListObjectParentsInput { + s.NextToken = &v + return s +} + +// SetObjectReference sets the ObjectReference field's value. +func (s *ListObjectParentsInput) SetObjectReference(v *ObjectReference) *ListObjectParentsInput { + s.ObjectReference = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListObjectParentsResponse +type ListObjectParentsOutput struct { + _ struct{} `type:"structure"` + + // The pagination token. + NextToken *string `type:"string"` + + // Parent structure, which is a map with key as the ObjectIdentifier and LinkName + // as the value. + Parents map[string]*string `type:"map"` +} + +// String returns the string representation +func (s ListObjectParentsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListObjectParentsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListObjectParentsOutput) SetNextToken(v string) *ListObjectParentsOutput { + s.NextToken = &v + return s +} + +// SetParents sets the Parents field's value. +func (s *ListObjectParentsOutput) SetParents(v map[string]*string) *ListObjectParentsOutput { + s.Parents = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListObjectPoliciesRequest +type ListObjectPoliciesInput struct { + _ struct{} `type:"structure"` + + // Represents the manner and timing in which the successful write or update + // of an object is reflected in a subsequent read operation of that same object. + ConsistencyLevel *string `location:"header" locationName:"x-amz-consistency-level" type:"string" enum:"ConsistencyLevel"` + + // ARN associated with the Directory where objects reside. For more information, + // see arns. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // Maximum number of items to be retrieved in a single call. This is an approximate + // number. + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token. + NextToken *string `type:"string"` + + // Reference that identifies the object for which policies will be listed. + // + // ObjectReference is a required field + ObjectReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s ListObjectPoliciesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListObjectPoliciesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListObjectPoliciesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListObjectPoliciesInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ObjectReference == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConsistencyLevel sets the ConsistencyLevel field's value. +func (s *ListObjectPoliciesInput) SetConsistencyLevel(v string) *ListObjectPoliciesInput { + s.ConsistencyLevel = &v + return s +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *ListObjectPoliciesInput) SetDirectoryArn(v string) *ListObjectPoliciesInput { + s.DirectoryArn = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListObjectPoliciesInput) SetMaxResults(v int64) *ListObjectPoliciesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListObjectPoliciesInput) SetNextToken(v string) *ListObjectPoliciesInput { + s.NextToken = &v + return s +} + +// SetObjectReference sets the ObjectReference field's value. +func (s *ListObjectPoliciesInput) SetObjectReference(v *ObjectReference) *ListObjectPoliciesInput { + s.ObjectReference = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListObjectPoliciesResponse +type ListObjectPoliciesOutput struct { + _ struct{} `type:"structure"` + + // List of policy ObjectIdentifiers, that are attached to the object. + AttachedPolicyIds []*string `type:"list"` + + // The pagination token. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListObjectPoliciesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListObjectPoliciesOutput) GoString() string { + return s.String() +} + +// SetAttachedPolicyIds sets the AttachedPolicyIds field's value. +func (s *ListObjectPoliciesOutput) SetAttachedPolicyIds(v []*string) *ListObjectPoliciesOutput { + s.AttachedPolicyIds = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListObjectPoliciesOutput) SetNextToken(v string) *ListObjectPoliciesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListPolicyAttachmentsRequest +type ListPolicyAttachmentsInput struct { + _ struct{} `type:"structure"` + + // Represents the manner and timing in which the successful write or update + // of an object is reflected in a subsequent read operation of that same object. + ConsistencyLevel *string `location:"header" locationName:"x-amz-consistency-level" type:"string" enum:"ConsistencyLevel"` + + // ARN associated with the Directory where objects reside. For more information, + // see arns. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // Maximum number of items to be retrieved in a single call. This is an approximate + // number. + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token. + NextToken *string `type:"string"` + + // Reference that identifies the policy object. + // + // PolicyReference is a required field + PolicyReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s ListPolicyAttachmentsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPolicyAttachmentsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListPolicyAttachmentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPolicyAttachmentsInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.PolicyReference == nil { + invalidParams.Add(request.NewErrParamRequired("PolicyReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConsistencyLevel sets the ConsistencyLevel field's value. +func (s *ListPolicyAttachmentsInput) SetConsistencyLevel(v string) *ListPolicyAttachmentsInput { + s.ConsistencyLevel = &v + return s +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *ListPolicyAttachmentsInput) SetDirectoryArn(v string) *ListPolicyAttachmentsInput { + s.DirectoryArn = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListPolicyAttachmentsInput) SetMaxResults(v int64) *ListPolicyAttachmentsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPolicyAttachmentsInput) SetNextToken(v string) *ListPolicyAttachmentsInput { + s.NextToken = &v + return s +} + +// SetPolicyReference sets the PolicyReference field's value. +func (s *ListPolicyAttachmentsInput) SetPolicyReference(v *ObjectReference) *ListPolicyAttachmentsInput { + s.PolicyReference = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListPolicyAttachmentsResponse +type ListPolicyAttachmentsOutput struct { + _ struct{} `type:"structure"` + + // The pagination token. + NextToken *string `type:"string"` + + // List of ObjectIdentifiers to which the policy is attached. + ObjectIdentifiers []*string `type:"list"` +} + +// String returns the string representation +func (s ListPolicyAttachmentsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPolicyAttachmentsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPolicyAttachmentsOutput) SetNextToken(v string) *ListPolicyAttachmentsOutput { + s.NextToken = &v + return s +} + +// SetObjectIdentifiers sets the ObjectIdentifiers field's value. +func (s *ListPolicyAttachmentsOutput) SetObjectIdentifiers(v []*string) *ListPolicyAttachmentsOutput { + s.ObjectIdentifiers = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListPublishedSchemaArnsRequest +type ListPublishedSchemaArnsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to retrieve. + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListPublishedSchemaArnsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPublishedSchemaArnsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListPublishedSchemaArnsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPublishedSchemaArnsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListPublishedSchemaArnsInput) SetMaxResults(v int64) *ListPublishedSchemaArnsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPublishedSchemaArnsInput) SetNextToken(v string) *ListPublishedSchemaArnsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListPublishedSchemaArnsResponse +type ListPublishedSchemaArnsOutput struct { + _ struct{} `type:"structure"` + + // The pagination token. + NextToken *string `type:"string"` + + // The ARNs of published schemas. + SchemaArns []*string `type:"list"` +} + +// String returns the string representation +func (s ListPublishedSchemaArnsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPublishedSchemaArnsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPublishedSchemaArnsOutput) SetNextToken(v string) *ListPublishedSchemaArnsOutput { + s.NextToken = &v + return s +} + +// SetSchemaArns sets the SchemaArns field's value. +func (s *ListPublishedSchemaArnsOutput) SetSchemaArns(v []*string) *ListPublishedSchemaArnsOutput { + s.SchemaArns = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListTagsForResourceRequest +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` + + // The MaxResults parameter sets the maximum number of results returned in a + // single page. This is for future use and is not supported currently. + MaxResults *int64 `min:"50" type:"integer"` + + // The pagination token. This is for future use. Currently pagination is not + // supported for tagging. + NextToken *string `type:"string"` + + // ARN of the resource. Tagging is only supported for directories. + // + // ResourceArn is a required field + ResourceArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ListTagsForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsForResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.MaxResults != nil && *s.MaxResults < 50 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 50)) + } + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListTagsForResourceInput) SetMaxResults(v int64) *ListTagsForResourceInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTagsForResourceInput) SetNextToken(v string) *ListTagsForResourceInput { + s.NextToken = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ListTagsForResourceResponse +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // The token to use to retrieve the next page of results. This value is null + // when there are no more results to return. + NextToken *string `type:"string"` + + // List of tag key value pairs associated with the response. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s ListTagsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsForResourceOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTagsForResourceOutput) SetNextToken(v string) *ListTagsForResourceOutput { + s.NextToken = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/LookupPolicyRequest +type LookupPolicyInput struct { + _ struct{} `type:"structure"` + + // ARN associated with the Directory. For more information, see arns. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // Maximum number of items to be retrieved in a single call. This is an approximate + // number. + MaxResults *int64 `min:"1" type:"integer"` + + // The token to request the next page of results. + NextToken *string `type:"string"` + + // Reference that identifies the object whose policies will be looked up. + // + // ObjectReference is a required field + ObjectReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s LookupPolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LookupPolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LookupPolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LookupPolicyInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ObjectReference == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *LookupPolicyInput) SetDirectoryArn(v string) *LookupPolicyInput { + s.DirectoryArn = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *LookupPolicyInput) SetMaxResults(v int64) *LookupPolicyInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *LookupPolicyInput) SetNextToken(v string) *LookupPolicyInput { + s.NextToken = &v + return s +} + +// SetObjectReference sets the ObjectReference field's value. +func (s *LookupPolicyInput) SetObjectReference(v *ObjectReference) *LookupPolicyInput { + s.ObjectReference = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/LookupPolicyResponse +type LookupPolicyOutput struct { + _ struct{} `type:"structure"` + + // The pagination token. + NextToken *string `type:"string"` + + // Provides list of path to policies. Policies contain PolicyId, ObjectIdentifier, + // and PolicyType. + PolicyToPathList []*PolicyToPath `type:"list"` +} + +// String returns the string representation +func (s LookupPolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LookupPolicyOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *LookupPolicyOutput) SetNextToken(v string) *LookupPolicyOutput { + s.NextToken = &v + return s +} + +// SetPolicyToPathList sets the PolicyToPathList field's value. +func (s *LookupPolicyOutput) SetPolicyToPathList(v []*PolicyToPath) *LookupPolicyOutput { + s.PolicyToPathList = v + return s +} + +// The action to take on the object attribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ObjectAttributeAction +type ObjectAttributeAction struct { + _ struct{} `type:"structure"` + + // Type can be either Update or Delete. + ObjectAttributeActionType *string `type:"string" enum:"UpdateActionType"` + + // The value that you want to update to. + ObjectAttributeUpdateValue *TypedAttributeValue `type:"structure"` +} + +// String returns the string representation +func (s ObjectAttributeAction) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ObjectAttributeAction) GoString() string { + return s.String() +} + +// SetObjectAttributeActionType sets the ObjectAttributeActionType field's value. +func (s *ObjectAttributeAction) SetObjectAttributeActionType(v string) *ObjectAttributeAction { + s.ObjectAttributeActionType = &v + return s +} + +// SetObjectAttributeUpdateValue sets the ObjectAttributeUpdateValue field's value. +func (s *ObjectAttributeAction) SetObjectAttributeUpdateValue(v *TypedAttributeValue) *ObjectAttributeAction { + s.ObjectAttributeUpdateValue = v + return s +} + +// A range of attributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ObjectAttributeRange +type ObjectAttributeRange struct { + _ struct{} `type:"structure"` + + // The key of the attribute the attribute range covers. + AttributeKey *AttributeKey `type:"structure"` + + // The range of attribute values being selected. + Range *TypedAttributeValueRange `type:"structure"` +} + +// String returns the string representation +func (s ObjectAttributeRange) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ObjectAttributeRange) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ObjectAttributeRange) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ObjectAttributeRange"} + if s.AttributeKey != nil { + if err := s.AttributeKey.Validate(); err != nil { + invalidParams.AddNested("AttributeKey", err.(request.ErrInvalidParams)) + } + } + if s.Range != nil { + if err := s.Range.Validate(); err != nil { + invalidParams.AddNested("Range", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttributeKey sets the AttributeKey field's value. +func (s *ObjectAttributeRange) SetAttributeKey(v *AttributeKey) *ObjectAttributeRange { + s.AttributeKey = v + return s +} + +// SetRange sets the Range field's value. +func (s *ObjectAttributeRange) SetRange(v *TypedAttributeValueRange) *ObjectAttributeRange { + s.Range = v + return s +} + +// Structure that contains attribute update information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ObjectAttributeUpdate +type ObjectAttributeUpdate struct { + _ struct{} `type:"structure"` + + // The action to perform as part of the attribute update. + ObjectAttributeAction *ObjectAttributeAction `type:"structure"` + + // The key of the attribute being updated. + ObjectAttributeKey *AttributeKey `type:"structure"` +} + +// String returns the string representation +func (s ObjectAttributeUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ObjectAttributeUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ObjectAttributeUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ObjectAttributeUpdate"} + if s.ObjectAttributeKey != nil { + if err := s.ObjectAttributeKey.Validate(); err != nil { + invalidParams.AddNested("ObjectAttributeKey", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetObjectAttributeAction sets the ObjectAttributeAction field's value. +func (s *ObjectAttributeUpdate) SetObjectAttributeAction(v *ObjectAttributeAction) *ObjectAttributeUpdate { + s.ObjectAttributeAction = v + return s +} + +// SetObjectAttributeKey sets the ObjectAttributeKey field's value. +func (s *ObjectAttributeUpdate) SetObjectAttributeKey(v *AttributeKey) *ObjectAttributeUpdate { + s.ObjectAttributeKey = v + return s +} + +// Reference that identifies an object. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/ObjectReference +type ObjectReference struct { + _ struct{} `type:"structure"` + + // Allows you to specify an object. You can identify an object in one of the + // following ways: + // + // * $ObjectIdentifier - Identifies the object by ObjectIdentifier + // + // * /some/path - Identifies the object based on path + // + // * #SomeBatchReference - Identifies the object in a batch call + Selector *string `type:"string"` +} + +// String returns the string representation +func (s ObjectReference) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ObjectReference) GoString() string { + return s.String() +} + +// SetSelector sets the Selector field's value. +func (s *ObjectReference) SetSelector(v string) *ObjectReference { + s.Selector = &v + return s +} + +// Returns the path to the ObjectIdentifiers associated with the directory. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/PathToObjectIdentifiers +type PathToObjectIdentifiers struct { + _ struct{} `type:"structure"` + + // Lists ObjectIdentifiers starting from directory root to the object in the + // request. + ObjectIdentifiers []*string `type:"list"` + + // The path used to identify the object starting from directory root. + Path *string `type:"string"` +} + +// String returns the string representation +func (s PathToObjectIdentifiers) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PathToObjectIdentifiers) GoString() string { + return s.String() +} + +// SetObjectIdentifiers sets the ObjectIdentifiers field's value. +func (s *PathToObjectIdentifiers) SetObjectIdentifiers(v []*string) *PathToObjectIdentifiers { + s.ObjectIdentifiers = v + return s +} + +// SetPath sets the Path field's value. +func (s *PathToObjectIdentifiers) SetPath(v string) *PathToObjectIdentifiers { + s.Path = &v + return s +} + +// Contains the PolicyType, PolicyId, and the ObjectIdentifier to which it is +// attached. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/PolicyAttachment +type PolicyAttachment struct { + _ struct{} `type:"structure"` + + // The ObjectIdentifier associated with PolicyAttachment. + ObjectIdentifier *string `type:"string"` + + // The ID of PolicyAttachment. + PolicyId *string `type:"string"` + + // The type of policy that can be associated with PolicyAttachment. + PolicyType *string `type:"string"` +} + +// String returns the string representation +func (s PolicyAttachment) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PolicyAttachment) GoString() string { + return s.String() +} + +// SetObjectIdentifier sets the ObjectIdentifier field's value. +func (s *PolicyAttachment) SetObjectIdentifier(v string) *PolicyAttachment { + s.ObjectIdentifier = &v + return s +} + +// SetPolicyId sets the PolicyId field's value. +func (s *PolicyAttachment) SetPolicyId(v string) *PolicyAttachment { + s.PolicyId = &v + return s +} + +// SetPolicyType sets the PolicyType field's value. +func (s *PolicyAttachment) SetPolicyType(v string) *PolicyAttachment { + s.PolicyType = &v + return s +} + +// Used when a regular object exists in a Directory and you want to find all +// of the policies associated with that object and the parent to that object. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/PolicyToPath +type PolicyToPath struct { + _ struct{} `type:"structure"` + + // The path that is referenced from the root. + Path *string `type:"string"` + + // List of policy objects. + Policies []*PolicyAttachment `type:"list"` +} + +// String returns the string representation +func (s PolicyToPath) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PolicyToPath) GoString() string { + return s.String() +} + +// SetPath sets the Path field's value. +func (s *PolicyToPath) SetPath(v string) *PolicyToPath { + s.Path = &v + return s +} + +// SetPolicies sets the Policies field's value. +func (s *PolicyToPath) SetPolicies(v []*PolicyAttachment) *PolicyToPath { + s.Policies = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/PublishSchemaRequest +type PublishSchemaInput struct { + _ struct{} `type:"structure"` + + // ARN associated with the development schema. For more information, see arns. + // + // DevelopmentSchemaArn is a required field + DevelopmentSchemaArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // New name under which the schema will be published. If this is not provided, + // the development schema is considered. + Name *string `min:"1" type:"string"` + + // Version under which the schema will be published. + // + // Version is a required field + Version *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s PublishSchemaInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PublishSchemaInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PublishSchemaInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PublishSchemaInput"} + if s.DevelopmentSchemaArn == nil { + invalidParams.Add(request.NewErrParamRequired("DevelopmentSchemaArn")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Version == nil { + invalidParams.Add(request.NewErrParamRequired("Version")) + } + if s.Version != nil && len(*s.Version) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Version", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDevelopmentSchemaArn sets the DevelopmentSchemaArn field's value. +func (s *PublishSchemaInput) SetDevelopmentSchemaArn(v string) *PublishSchemaInput { + s.DevelopmentSchemaArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *PublishSchemaInput) SetName(v string) *PublishSchemaInput { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *PublishSchemaInput) SetVersion(v string) *PublishSchemaInput { + s.Version = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/PublishSchemaResponse +type PublishSchemaOutput struct { + _ struct{} `type:"structure"` + + // ARN associated with the published schema. For more information, see arns. + PublishedSchemaArn *string `type:"string"` +} + +// String returns the string representation +func (s PublishSchemaOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PublishSchemaOutput) GoString() string { + return s.String() +} + +// SetPublishedSchemaArn sets the PublishedSchemaArn field's value. +func (s *PublishSchemaOutput) SetPublishedSchemaArn(v string) *PublishSchemaOutput { + s.PublishedSchemaArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/PutSchemaFromJsonRequest +type PutSchemaFromJsonInput struct { + _ struct{} `type:"structure"` + + // The replacement JSON schema. + // + // Document is a required field + Document *string `type:"string" required:"true"` + + // The ARN of the schema to update. + // + // SchemaArn is a required field + SchemaArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` +} + +// String returns the string representation +func (s PutSchemaFromJsonInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutSchemaFromJsonInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutSchemaFromJsonInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutSchemaFromJsonInput"} + if s.Document == nil { + invalidParams.Add(request.NewErrParamRequired("Document")) + } + if s.SchemaArn == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocument sets the Document field's value. +func (s *PutSchemaFromJsonInput) SetDocument(v string) *PutSchemaFromJsonInput { + s.Document = &v + return s +} + +// SetSchemaArn sets the SchemaArn field's value. +func (s *PutSchemaFromJsonInput) SetSchemaArn(v string) *PutSchemaFromJsonInput { + s.SchemaArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/PutSchemaFromJsonResponse +type PutSchemaFromJsonOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the schema to update. + Arn *string `type:"string"` +} + +// String returns the string representation +func (s PutSchemaFromJsonOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutSchemaFromJsonOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *PutSchemaFromJsonOutput) SetArn(v string) *PutSchemaFromJsonOutput { + s.Arn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/RemoveFacetFromObjectRequest +type RemoveFacetFromObjectInput struct { + _ struct{} `type:"structure"` + + // The ARN of the directory in which the object resides. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // A reference to the object to remove the facet from. + // + // ObjectReference is a required field + ObjectReference *ObjectReference `type:"structure" required:"true"` + + // The facet to remove. + // + // SchemaFacet is a required field + SchemaFacet *SchemaFacet `type:"structure" required:"true"` +} + +// String returns the string representation +func (s RemoveFacetFromObjectInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveFacetFromObjectInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RemoveFacetFromObjectInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RemoveFacetFromObjectInput"} + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.ObjectReference == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectReference")) + } + if s.SchemaFacet == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaFacet")) + } + if s.SchemaFacet != nil { + if err := s.SchemaFacet.Validate(); err != nil { + invalidParams.AddNested("SchemaFacet", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *RemoveFacetFromObjectInput) SetDirectoryArn(v string) *RemoveFacetFromObjectInput { + s.DirectoryArn = &v + return s +} + +// SetObjectReference sets the ObjectReference field's value. +func (s *RemoveFacetFromObjectInput) SetObjectReference(v *ObjectReference) *RemoveFacetFromObjectInput { + s.ObjectReference = v + return s +} + +// SetSchemaFacet sets the SchemaFacet field's value. +func (s *RemoveFacetFromObjectInput) SetSchemaFacet(v *SchemaFacet) *RemoveFacetFromObjectInput { + s.SchemaFacet = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/RemoveFacetFromObjectResponse +type RemoveFacetFromObjectOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s RemoveFacetFromObjectOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveFacetFromObjectOutput) GoString() string { + return s.String() +} + +// Contains an ARN and parameters associated with the rule. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/Rule +type Rule struct { + _ struct{} `type:"structure"` + + // Min and max parameters associated with the rule. + Parameters map[string]*string `type:"map"` + + // The type of attribute validation rule. + Type *string `type:"string" enum:"RuleType"` +} + +// String returns the string representation +func (s Rule) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Rule) GoString() string { + return s.String() +} + +// SetParameters sets the Parameters field's value. +func (s *Rule) SetParameters(v map[string]*string) *Rule { + s.Parameters = v + return s +} + +// SetType sets the Type field's value. +func (s *Rule) SetType(v string) *Rule { + s.Type = &v + return s +} + +// A facet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/SchemaFacet +type SchemaFacet struct { + _ struct{} `type:"structure"` + + // The name of the facet. + FacetName *string `min:"1" type:"string"` + + // The ARN of the schema that contains the facet. + SchemaArn *string `type:"string"` +} + +// String returns the string representation +func (s SchemaFacet) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SchemaFacet) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SchemaFacet) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SchemaFacet"} + if s.FacetName != nil && len(*s.FacetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FacetName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFacetName sets the FacetName field's value. +func (s *SchemaFacet) SetFacetName(v string) *SchemaFacet { + s.FacetName = &v + return s +} + +// SetSchemaArn sets the SchemaArn field's value. +func (s *SchemaFacet) SetSchemaArn(v string) *SchemaFacet { + s.SchemaArn = &v + return s +} + +// Tag structure which contains tag key and value. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/Tag +type Tag struct { + _ struct{} `type:"structure"` + + // Key associated with the tag. + Key *string `type:"string"` + + // Value associated with the tag. + Value *string `type:"string"` +} + +// String returns the string representation +func (s Tag) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Tag) GoString() string { + return s.String() +} + +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/TagResourceRequest +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // ARN of the resource. Tagging is only supported for directories. + // + // ResourceArn is a required field + ResourceArn *string `type:"string" required:"true"` + + // List of tag key value pairs. + // + // Tags is a required field + Tags []*Tag `type:"list" required:"true"` +} + +// String returns the string representation +func (s TagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/TagResourceResponse +type TagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s TagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagResourceOutput) GoString() string { + return s.String() +} + +// Represents the data for a typed attribute. You can set one, and only one, +// of the elements. Each attribute in an item is a name-value pair. Attributes +// have a single value. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/TypedAttributeValue +type TypedAttributeValue struct { + _ struct{} `type:"structure"` + + // A binary data value. + // + // BinaryValue is automatically base64 encoded/decoded by the SDK. + BinaryValue []byte `type:"blob"` + + // A Boolean data value. + BooleanValue *bool `type:"boolean"` + + // A date and time value. + DatetimeValue *time.Time `type:"timestamp" timestampFormat:"unix"` + + // A number data value. + NumberValue *string `type:"string"` + + // A string data value. + StringValue *string `type:"string"` +} + +// String returns the string representation +func (s TypedAttributeValue) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TypedAttributeValue) GoString() string { + return s.String() +} + +// SetBinaryValue sets the BinaryValue field's value. +func (s *TypedAttributeValue) SetBinaryValue(v []byte) *TypedAttributeValue { + s.BinaryValue = v + return s +} + +// SetBooleanValue sets the BooleanValue field's value. +func (s *TypedAttributeValue) SetBooleanValue(v bool) *TypedAttributeValue { + s.BooleanValue = &v + return s +} + +// SetDatetimeValue sets the DatetimeValue field's value. +func (s *TypedAttributeValue) SetDatetimeValue(v time.Time) *TypedAttributeValue { + s.DatetimeValue = &v + return s +} + +// SetNumberValue sets the NumberValue field's value. +func (s *TypedAttributeValue) SetNumberValue(v string) *TypedAttributeValue { + s.NumberValue = &v + return s +} + +// SetStringValue sets the StringValue field's value. +func (s *TypedAttributeValue) SetStringValue(v string) *TypedAttributeValue { + s.StringValue = &v + return s +} + +// A range of attribute values. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/TypedAttributeValueRange +type TypedAttributeValueRange struct { + _ struct{} `type:"structure"` + + // Inclusive or exclusive range end. + // + // EndMode is a required field + EndMode *string `type:"string" required:"true" enum:"RangeMode"` + + // The attribute value to terminate the range at. + EndValue *TypedAttributeValue `type:"structure"` + + // Inclusive or exclusive range start. + // + // StartMode is a required field + StartMode *string `type:"string" required:"true" enum:"RangeMode"` + + // The value to start the range at. + StartValue *TypedAttributeValue `type:"structure"` +} + +// String returns the string representation +func (s TypedAttributeValueRange) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TypedAttributeValueRange) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TypedAttributeValueRange) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TypedAttributeValueRange"} + if s.EndMode == nil { + invalidParams.Add(request.NewErrParamRequired("EndMode")) + } + if s.StartMode == nil { + invalidParams.Add(request.NewErrParamRequired("StartMode")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndMode sets the EndMode field's value. +func (s *TypedAttributeValueRange) SetEndMode(v string) *TypedAttributeValueRange { + s.EndMode = &v + return s +} + +// SetEndValue sets the EndValue field's value. +func (s *TypedAttributeValueRange) SetEndValue(v *TypedAttributeValue) *TypedAttributeValueRange { + s.EndValue = v + return s +} + +// SetStartMode sets the StartMode field's value. +func (s *TypedAttributeValueRange) SetStartMode(v string) *TypedAttributeValueRange { + s.StartMode = &v + return s +} + +// SetStartValue sets the StartValue field's value. +func (s *TypedAttributeValueRange) SetStartValue(v *TypedAttributeValue) *TypedAttributeValueRange { + s.StartValue = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/UntagResourceRequest +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // ARN of the resource. Tagging is only supported for directories. + // + // ResourceArn is a required field + ResourceArn *string `type:"string" required:"true"` + + // Keys of the tag that needs to be removed from the resource. + // + // TagKeys is a required field + TagKeys []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s UntagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UntagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/UntagResourceResponse +type UntagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UntagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UntagResourceOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/UpdateFacetRequest +type UpdateFacetInput struct { + _ struct{} `type:"structure"` + + // List of attributes that need to be updated in a given schema Facet. Each + // attribute is followed by AttributeAction, which specifies the type of update + // operation to perform. + AttributeUpdates []*FacetAttributeUpdate `type:"list"` + + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // Object type associated with the facet. See CreateFacetRequest$ObjectType + // for more details. + ObjectType *string `type:"string" enum:"ObjectType"` + + // ARN associated with the Facet. For more information, see arns. + // + // SchemaArn is a required field + SchemaArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateFacetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateFacetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateFacetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateFacetInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.SchemaArn == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaArn")) + } + if s.AttributeUpdates != nil { + for i, v := range s.AttributeUpdates { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AttributeUpdates", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttributeUpdates sets the AttributeUpdates field's value. +func (s *UpdateFacetInput) SetAttributeUpdates(v []*FacetAttributeUpdate) *UpdateFacetInput { + s.AttributeUpdates = v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateFacetInput) SetName(v string) *UpdateFacetInput { + s.Name = &v + return s +} + +// SetObjectType sets the ObjectType field's value. +func (s *UpdateFacetInput) SetObjectType(v string) *UpdateFacetInput { + s.ObjectType = &v + return s +} + +// SetSchemaArn sets the SchemaArn field's value. +func (s *UpdateFacetInput) SetSchemaArn(v string) *UpdateFacetInput { + s.SchemaArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/UpdateFacetResponse +type UpdateFacetOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateFacetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateFacetOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/UpdateObjectAttributesRequest +type UpdateObjectAttributesInput struct { + _ struct{} `type:"structure"` + + // Attributes update structure. + // + // AttributeUpdates is a required field + AttributeUpdates []*ObjectAttributeUpdate `type:"list" required:"true"` + + // ARN associated with the Directory where the object resides. For more information, + // see arns. + // + // DirectoryArn is a required field + DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + + // Reference that identifies the object. + // + // ObjectReference is a required field + ObjectReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateObjectAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateObjectAttributesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateObjectAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateObjectAttributesInput"} + if s.AttributeUpdates == nil { + invalidParams.Add(request.NewErrParamRequired("AttributeUpdates")) + } + if s.DirectoryArn == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryArn")) + } + if s.ObjectReference == nil { + invalidParams.Add(request.NewErrParamRequired("ObjectReference")) + } + if s.AttributeUpdates != nil { + for i, v := range s.AttributeUpdates { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AttributeUpdates", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttributeUpdates sets the AttributeUpdates field's value. +func (s *UpdateObjectAttributesInput) SetAttributeUpdates(v []*ObjectAttributeUpdate) *UpdateObjectAttributesInput { + s.AttributeUpdates = v + return s +} + +// SetDirectoryArn sets the DirectoryArn field's value. +func (s *UpdateObjectAttributesInput) SetDirectoryArn(v string) *UpdateObjectAttributesInput { + s.DirectoryArn = &v + return s +} + +// SetObjectReference sets the ObjectReference field's value. +func (s *UpdateObjectAttributesInput) SetObjectReference(v *ObjectReference) *UpdateObjectAttributesInput { + s.ObjectReference = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/UpdateObjectAttributesResponse +type UpdateObjectAttributesOutput struct { + _ struct{} `type:"structure"` + + // ObjectIdentifier of the updated object. + ObjectIdentifier *string `type:"string"` +} + +// String returns the string representation +func (s UpdateObjectAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateObjectAttributesOutput) GoString() string { + return s.String() +} + +// SetObjectIdentifier sets the ObjectIdentifier field's value. +func (s *UpdateObjectAttributesOutput) SetObjectIdentifier(v string) *UpdateObjectAttributesOutput { + s.ObjectIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/UpdateSchemaRequest +type UpdateSchemaInput struct { + _ struct{} `type:"structure"` + + // Name of the schema. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // ARN of the development schema. For more information, see arns. + // + // SchemaArn is a required field + SchemaArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateSchemaInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateSchemaInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateSchemaInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateSchemaInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.SchemaArn == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *UpdateSchemaInput) SetName(v string) *UpdateSchemaInput { + s.Name = &v + return s +} + +// SetSchemaArn sets the SchemaArn field's value. +func (s *UpdateSchemaInput) SetSchemaArn(v string) *UpdateSchemaInput { + s.SchemaArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/UpdateSchemaResponse +type UpdateSchemaOutput struct { + _ struct{} `type:"structure"` + + // ARN associated with the updated schema. For more information, see arns. + SchemaArn *string `type:"string"` +} + +// String returns the string representation +func (s UpdateSchemaOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateSchemaOutput) GoString() string { + return s.String() +} + +// SetSchemaArn sets the SchemaArn field's value. +func (s *UpdateSchemaOutput) SetSchemaArn(v string) *UpdateSchemaOutput { + s.SchemaArn = &v + return s +} + +const ( + // BatchReadExceptionTypeValidationException is a BatchReadExceptionType enum value + BatchReadExceptionTypeValidationException = "ValidationException" + + // BatchReadExceptionTypeInvalidArnException is a BatchReadExceptionType enum value + BatchReadExceptionTypeInvalidArnException = "InvalidArnException" + + // BatchReadExceptionTypeResourceNotFoundException is a BatchReadExceptionType enum value + BatchReadExceptionTypeResourceNotFoundException = "ResourceNotFoundException" + + // BatchReadExceptionTypeInvalidNextTokenException is a BatchReadExceptionType enum value + BatchReadExceptionTypeInvalidNextTokenException = "InvalidNextTokenException" + + // BatchReadExceptionTypeAccessDeniedException is a BatchReadExceptionType enum value + BatchReadExceptionTypeAccessDeniedException = "AccessDeniedException" + + // BatchReadExceptionTypeNotNodeException is a BatchReadExceptionType enum value + BatchReadExceptionTypeNotNodeException = "NotNodeException" +) + +const ( + // BatchWriteExceptionTypeInternalServiceException is a BatchWriteExceptionType enum value + BatchWriteExceptionTypeInternalServiceException = "InternalServiceException" + + // BatchWriteExceptionTypeValidationException is a BatchWriteExceptionType enum value + BatchWriteExceptionTypeValidationException = "ValidationException" + + // BatchWriteExceptionTypeInvalidArnException is a BatchWriteExceptionType enum value + BatchWriteExceptionTypeInvalidArnException = "InvalidArnException" + + // BatchWriteExceptionTypeLinkNameAlreadyInUseException is a BatchWriteExceptionType enum value + BatchWriteExceptionTypeLinkNameAlreadyInUseException = "LinkNameAlreadyInUseException" + + // BatchWriteExceptionTypeStillContainsLinksException is a BatchWriteExceptionType enum value + BatchWriteExceptionTypeStillContainsLinksException = "StillContainsLinksException" + + // BatchWriteExceptionTypeFacetValidationException is a BatchWriteExceptionType enum value + BatchWriteExceptionTypeFacetValidationException = "FacetValidationException" + + // BatchWriteExceptionTypeObjectNotDetachedException is a BatchWriteExceptionType enum value + BatchWriteExceptionTypeObjectNotDetachedException = "ObjectNotDetachedException" + + // BatchWriteExceptionTypeResourceNotFoundException is a BatchWriteExceptionType enum value + BatchWriteExceptionTypeResourceNotFoundException = "ResourceNotFoundException" + + // BatchWriteExceptionTypeAccessDeniedException is a BatchWriteExceptionType enum value + BatchWriteExceptionTypeAccessDeniedException = "AccessDeniedException" +) + +const ( + // ConsistencyLevelSerializable is a ConsistencyLevel enum value + ConsistencyLevelSerializable = "SERIALIZABLE" + + // ConsistencyLevelEventual is a ConsistencyLevel enum value + ConsistencyLevelEventual = "EVENTUAL" +) + +const ( + // DirectoryStateEnabled is a DirectoryState enum value + DirectoryStateEnabled = "ENABLED" + + // DirectoryStateDisabled is a DirectoryState enum value + DirectoryStateDisabled = "DISABLED" + + // DirectoryStateDeleted is a DirectoryState enum value + DirectoryStateDeleted = "DELETED" +) + +const ( + // FacetAttributeTypeString is a FacetAttributeType enum value + FacetAttributeTypeString = "STRING" + + // FacetAttributeTypeBinary is a FacetAttributeType enum value + FacetAttributeTypeBinary = "BINARY" + + // FacetAttributeTypeBoolean is a FacetAttributeType enum value + FacetAttributeTypeBoolean = "BOOLEAN" + + // FacetAttributeTypeNumber is a FacetAttributeType enum value + FacetAttributeTypeNumber = "NUMBER" + + // FacetAttributeTypeDatetime is a FacetAttributeType enum value + FacetAttributeTypeDatetime = "DATETIME" +) + +const ( + // ObjectTypeNode is a ObjectType enum value + ObjectTypeNode = "NODE" + + // ObjectTypeLeafNode is a ObjectType enum value + ObjectTypeLeafNode = "LEAF_NODE" + + // ObjectTypePolicy is a ObjectType enum value + ObjectTypePolicy = "POLICY" + + // ObjectTypeIndex is a ObjectType enum value + ObjectTypeIndex = "INDEX" +) + +const ( + // RangeModeFirst is a RangeMode enum value + RangeModeFirst = "FIRST" + + // RangeModeLast is a RangeMode enum value + RangeModeLast = "LAST" + + // RangeModeLastBeforeMissingValues is a RangeMode enum value + RangeModeLastBeforeMissingValues = "LAST_BEFORE_MISSING_VALUES" + + // RangeModeInclusive is a RangeMode enum value + RangeModeInclusive = "INCLUSIVE" + + // RangeModeExclusive is a RangeMode enum value + RangeModeExclusive = "EXCLUSIVE" +) + +const ( + // RequiredAttributeBehaviorRequiredAlways is a RequiredAttributeBehavior enum value + RequiredAttributeBehaviorRequiredAlways = "REQUIRED_ALWAYS" + + // RequiredAttributeBehaviorNotRequired is a RequiredAttributeBehavior enum value + RequiredAttributeBehaviorNotRequired = "NOT_REQUIRED" +) + +const ( + // RuleTypeBinaryLength is a RuleType enum value + RuleTypeBinaryLength = "BINARY_LENGTH" + + // RuleTypeNumberComparison is a RuleType enum value + RuleTypeNumberComparison = "NUMBER_COMPARISON" + + // RuleTypeStringFromSet is a RuleType enum value + RuleTypeStringFromSet = "STRING_FROM_SET" + + // RuleTypeStringLength is a RuleType enum value + RuleTypeStringLength = "STRING_LENGTH" +) + +const ( + // UpdateActionTypeCreateOrUpdate is a UpdateActionType enum value + UpdateActionTypeCreateOrUpdate = "CREATE_OR_UPDATE" + + // UpdateActionTypeDelete is a UpdateActionType enum value + UpdateActionTypeDelete = "DELETE" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/clouddirectoryiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/clouddirectoryiface/interface.go new file mode 100644 index 000000000..7057f6b7b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/clouddirectoryiface/interface.go @@ -0,0 +1,291 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package clouddirectoryiface provides an interface to enable mocking the Amazon CloudDirectory service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package clouddirectoryiface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/clouddirectory" +) + +// CloudDirectoryAPI provides an interface to enable mocking the +// clouddirectory.CloudDirectory service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Amazon CloudDirectory. +// func myFunc(svc clouddirectoryiface.CloudDirectoryAPI) bool { +// // Make svc.AddFacetToObject request +// } +// +// func main() { +// sess := session.New() +// svc := clouddirectory.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockCloudDirectoryClient struct { +// clouddirectoryiface.CloudDirectoryAPI +// } +// func (m *mockCloudDirectoryClient) AddFacetToObject(input *clouddirectory.AddFacetToObjectInput) (*clouddirectory.AddFacetToObjectOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockCloudDirectoryClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type CloudDirectoryAPI interface { + AddFacetToObjectRequest(*clouddirectory.AddFacetToObjectInput) (*request.Request, *clouddirectory.AddFacetToObjectOutput) + + AddFacetToObject(*clouddirectory.AddFacetToObjectInput) (*clouddirectory.AddFacetToObjectOutput, error) + + ApplySchemaRequest(*clouddirectory.ApplySchemaInput) (*request.Request, *clouddirectory.ApplySchemaOutput) + + ApplySchema(*clouddirectory.ApplySchemaInput) (*clouddirectory.ApplySchemaOutput, error) + + AttachObjectRequest(*clouddirectory.AttachObjectInput) (*request.Request, *clouddirectory.AttachObjectOutput) + + AttachObject(*clouddirectory.AttachObjectInput) (*clouddirectory.AttachObjectOutput, error) + + AttachPolicyRequest(*clouddirectory.AttachPolicyInput) (*request.Request, *clouddirectory.AttachPolicyOutput) + + AttachPolicy(*clouddirectory.AttachPolicyInput) (*clouddirectory.AttachPolicyOutput, error) + + AttachToIndexRequest(*clouddirectory.AttachToIndexInput) (*request.Request, *clouddirectory.AttachToIndexOutput) + + AttachToIndex(*clouddirectory.AttachToIndexInput) (*clouddirectory.AttachToIndexOutput, error) + + BatchReadRequest(*clouddirectory.BatchReadInput) (*request.Request, *clouddirectory.BatchReadOutput) + + BatchRead(*clouddirectory.BatchReadInput) (*clouddirectory.BatchReadOutput, error) + + BatchWriteRequest(*clouddirectory.BatchWriteInput) (*request.Request, *clouddirectory.BatchWriteOutput) + + BatchWrite(*clouddirectory.BatchWriteInput) (*clouddirectory.BatchWriteOutput, error) + + CreateDirectoryRequest(*clouddirectory.CreateDirectoryInput) (*request.Request, *clouddirectory.CreateDirectoryOutput) + + CreateDirectory(*clouddirectory.CreateDirectoryInput) (*clouddirectory.CreateDirectoryOutput, error) + + CreateFacetRequest(*clouddirectory.CreateFacetInput) (*request.Request, *clouddirectory.CreateFacetOutput) + + CreateFacet(*clouddirectory.CreateFacetInput) (*clouddirectory.CreateFacetOutput, error) + + CreateIndexRequest(*clouddirectory.CreateIndexInput) (*request.Request, *clouddirectory.CreateIndexOutput) + + CreateIndex(*clouddirectory.CreateIndexInput) (*clouddirectory.CreateIndexOutput, error) + + CreateObjectRequest(*clouddirectory.CreateObjectInput) (*request.Request, *clouddirectory.CreateObjectOutput) + + CreateObject(*clouddirectory.CreateObjectInput) (*clouddirectory.CreateObjectOutput, error) + + CreateSchemaRequest(*clouddirectory.CreateSchemaInput) (*request.Request, *clouddirectory.CreateSchemaOutput) + + CreateSchema(*clouddirectory.CreateSchemaInput) (*clouddirectory.CreateSchemaOutput, error) + + DeleteDirectoryRequest(*clouddirectory.DeleteDirectoryInput) (*request.Request, *clouddirectory.DeleteDirectoryOutput) + + DeleteDirectory(*clouddirectory.DeleteDirectoryInput) (*clouddirectory.DeleteDirectoryOutput, error) + + DeleteFacetRequest(*clouddirectory.DeleteFacetInput) (*request.Request, *clouddirectory.DeleteFacetOutput) + + DeleteFacet(*clouddirectory.DeleteFacetInput) (*clouddirectory.DeleteFacetOutput, error) + + DeleteObjectRequest(*clouddirectory.DeleteObjectInput) (*request.Request, *clouddirectory.DeleteObjectOutput) + + DeleteObject(*clouddirectory.DeleteObjectInput) (*clouddirectory.DeleteObjectOutput, error) + + DeleteSchemaRequest(*clouddirectory.DeleteSchemaInput) (*request.Request, *clouddirectory.DeleteSchemaOutput) + + DeleteSchema(*clouddirectory.DeleteSchemaInput) (*clouddirectory.DeleteSchemaOutput, error) + + DetachFromIndexRequest(*clouddirectory.DetachFromIndexInput) (*request.Request, *clouddirectory.DetachFromIndexOutput) + + DetachFromIndex(*clouddirectory.DetachFromIndexInput) (*clouddirectory.DetachFromIndexOutput, error) + + DetachObjectRequest(*clouddirectory.DetachObjectInput) (*request.Request, *clouddirectory.DetachObjectOutput) + + DetachObject(*clouddirectory.DetachObjectInput) (*clouddirectory.DetachObjectOutput, error) + + DetachPolicyRequest(*clouddirectory.DetachPolicyInput) (*request.Request, *clouddirectory.DetachPolicyOutput) + + DetachPolicy(*clouddirectory.DetachPolicyInput) (*clouddirectory.DetachPolicyOutput, error) + + DisableDirectoryRequest(*clouddirectory.DisableDirectoryInput) (*request.Request, *clouddirectory.DisableDirectoryOutput) + + DisableDirectory(*clouddirectory.DisableDirectoryInput) (*clouddirectory.DisableDirectoryOutput, error) + + EnableDirectoryRequest(*clouddirectory.EnableDirectoryInput) (*request.Request, *clouddirectory.EnableDirectoryOutput) + + EnableDirectory(*clouddirectory.EnableDirectoryInput) (*clouddirectory.EnableDirectoryOutput, error) + + GetDirectoryRequest(*clouddirectory.GetDirectoryInput) (*request.Request, *clouddirectory.GetDirectoryOutput) + + GetDirectory(*clouddirectory.GetDirectoryInput) (*clouddirectory.GetDirectoryOutput, error) + + GetFacetRequest(*clouddirectory.GetFacetInput) (*request.Request, *clouddirectory.GetFacetOutput) + + GetFacet(*clouddirectory.GetFacetInput) (*clouddirectory.GetFacetOutput, error) + + GetObjectInformationRequest(*clouddirectory.GetObjectInformationInput) (*request.Request, *clouddirectory.GetObjectInformationOutput) + + GetObjectInformation(*clouddirectory.GetObjectInformationInput) (*clouddirectory.GetObjectInformationOutput, error) + + GetSchemaAsJsonRequest(*clouddirectory.GetSchemaAsJsonInput) (*request.Request, *clouddirectory.GetSchemaAsJsonOutput) + + GetSchemaAsJson(*clouddirectory.GetSchemaAsJsonInput) (*clouddirectory.GetSchemaAsJsonOutput, error) + + ListAppliedSchemaArnsRequest(*clouddirectory.ListAppliedSchemaArnsInput) (*request.Request, *clouddirectory.ListAppliedSchemaArnsOutput) + + ListAppliedSchemaArns(*clouddirectory.ListAppliedSchemaArnsInput) (*clouddirectory.ListAppliedSchemaArnsOutput, error) + + ListAppliedSchemaArnsPages(*clouddirectory.ListAppliedSchemaArnsInput, func(*clouddirectory.ListAppliedSchemaArnsOutput, bool) bool) error + + ListAttachedIndicesRequest(*clouddirectory.ListAttachedIndicesInput) (*request.Request, *clouddirectory.ListAttachedIndicesOutput) + + ListAttachedIndices(*clouddirectory.ListAttachedIndicesInput) (*clouddirectory.ListAttachedIndicesOutput, error) + + ListAttachedIndicesPages(*clouddirectory.ListAttachedIndicesInput, func(*clouddirectory.ListAttachedIndicesOutput, bool) bool) error + + ListDevelopmentSchemaArnsRequest(*clouddirectory.ListDevelopmentSchemaArnsInput) (*request.Request, *clouddirectory.ListDevelopmentSchemaArnsOutput) + + ListDevelopmentSchemaArns(*clouddirectory.ListDevelopmentSchemaArnsInput) (*clouddirectory.ListDevelopmentSchemaArnsOutput, error) + + ListDevelopmentSchemaArnsPages(*clouddirectory.ListDevelopmentSchemaArnsInput, func(*clouddirectory.ListDevelopmentSchemaArnsOutput, bool) bool) error + + ListDirectoriesRequest(*clouddirectory.ListDirectoriesInput) (*request.Request, *clouddirectory.ListDirectoriesOutput) + + ListDirectories(*clouddirectory.ListDirectoriesInput) (*clouddirectory.ListDirectoriesOutput, error) + + ListDirectoriesPages(*clouddirectory.ListDirectoriesInput, func(*clouddirectory.ListDirectoriesOutput, bool) bool) error + + ListFacetAttributesRequest(*clouddirectory.ListFacetAttributesInput) (*request.Request, *clouddirectory.ListFacetAttributesOutput) + + ListFacetAttributes(*clouddirectory.ListFacetAttributesInput) (*clouddirectory.ListFacetAttributesOutput, error) + + ListFacetAttributesPages(*clouddirectory.ListFacetAttributesInput, func(*clouddirectory.ListFacetAttributesOutput, bool) bool) error + + ListFacetNamesRequest(*clouddirectory.ListFacetNamesInput) (*request.Request, *clouddirectory.ListFacetNamesOutput) + + ListFacetNames(*clouddirectory.ListFacetNamesInput) (*clouddirectory.ListFacetNamesOutput, error) + + ListFacetNamesPages(*clouddirectory.ListFacetNamesInput, func(*clouddirectory.ListFacetNamesOutput, bool) bool) error + + ListIndexRequest(*clouddirectory.ListIndexInput) (*request.Request, *clouddirectory.ListIndexOutput) + + ListIndex(*clouddirectory.ListIndexInput) (*clouddirectory.ListIndexOutput, error) + + ListIndexPages(*clouddirectory.ListIndexInput, func(*clouddirectory.ListIndexOutput, bool) bool) error + + ListObjectAttributesRequest(*clouddirectory.ListObjectAttributesInput) (*request.Request, *clouddirectory.ListObjectAttributesOutput) + + ListObjectAttributes(*clouddirectory.ListObjectAttributesInput) (*clouddirectory.ListObjectAttributesOutput, error) + + ListObjectAttributesPages(*clouddirectory.ListObjectAttributesInput, func(*clouddirectory.ListObjectAttributesOutput, bool) bool) error + + ListObjectChildrenRequest(*clouddirectory.ListObjectChildrenInput) (*request.Request, *clouddirectory.ListObjectChildrenOutput) + + ListObjectChildren(*clouddirectory.ListObjectChildrenInput) (*clouddirectory.ListObjectChildrenOutput, error) + + ListObjectChildrenPages(*clouddirectory.ListObjectChildrenInput, func(*clouddirectory.ListObjectChildrenOutput, bool) bool) error + + ListObjectParentPathsRequest(*clouddirectory.ListObjectParentPathsInput) (*request.Request, *clouddirectory.ListObjectParentPathsOutput) + + ListObjectParentPaths(*clouddirectory.ListObjectParentPathsInput) (*clouddirectory.ListObjectParentPathsOutput, error) + + ListObjectParentPathsPages(*clouddirectory.ListObjectParentPathsInput, func(*clouddirectory.ListObjectParentPathsOutput, bool) bool) error + + ListObjectParentsRequest(*clouddirectory.ListObjectParentsInput) (*request.Request, *clouddirectory.ListObjectParentsOutput) + + ListObjectParents(*clouddirectory.ListObjectParentsInput) (*clouddirectory.ListObjectParentsOutput, error) + + ListObjectParentsPages(*clouddirectory.ListObjectParentsInput, func(*clouddirectory.ListObjectParentsOutput, bool) bool) error + + ListObjectPoliciesRequest(*clouddirectory.ListObjectPoliciesInput) (*request.Request, *clouddirectory.ListObjectPoliciesOutput) + + ListObjectPolicies(*clouddirectory.ListObjectPoliciesInput) (*clouddirectory.ListObjectPoliciesOutput, error) + + ListObjectPoliciesPages(*clouddirectory.ListObjectPoliciesInput, func(*clouddirectory.ListObjectPoliciesOutput, bool) bool) error + + ListPolicyAttachmentsRequest(*clouddirectory.ListPolicyAttachmentsInput) (*request.Request, *clouddirectory.ListPolicyAttachmentsOutput) + + ListPolicyAttachments(*clouddirectory.ListPolicyAttachmentsInput) (*clouddirectory.ListPolicyAttachmentsOutput, error) + + ListPolicyAttachmentsPages(*clouddirectory.ListPolicyAttachmentsInput, func(*clouddirectory.ListPolicyAttachmentsOutput, bool) bool) error + + ListPublishedSchemaArnsRequest(*clouddirectory.ListPublishedSchemaArnsInput) (*request.Request, *clouddirectory.ListPublishedSchemaArnsOutput) + + ListPublishedSchemaArns(*clouddirectory.ListPublishedSchemaArnsInput) (*clouddirectory.ListPublishedSchemaArnsOutput, error) + + ListPublishedSchemaArnsPages(*clouddirectory.ListPublishedSchemaArnsInput, func(*clouddirectory.ListPublishedSchemaArnsOutput, bool) bool) error + + ListTagsForResourceRequest(*clouddirectory.ListTagsForResourceInput) (*request.Request, *clouddirectory.ListTagsForResourceOutput) + + ListTagsForResource(*clouddirectory.ListTagsForResourceInput) (*clouddirectory.ListTagsForResourceOutput, error) + + ListTagsForResourcePages(*clouddirectory.ListTagsForResourceInput, func(*clouddirectory.ListTagsForResourceOutput, bool) bool) error + + LookupPolicyRequest(*clouddirectory.LookupPolicyInput) (*request.Request, *clouddirectory.LookupPolicyOutput) + + LookupPolicy(*clouddirectory.LookupPolicyInput) (*clouddirectory.LookupPolicyOutput, error) + + LookupPolicyPages(*clouddirectory.LookupPolicyInput, func(*clouddirectory.LookupPolicyOutput, bool) bool) error + + PublishSchemaRequest(*clouddirectory.PublishSchemaInput) (*request.Request, *clouddirectory.PublishSchemaOutput) + + PublishSchema(*clouddirectory.PublishSchemaInput) (*clouddirectory.PublishSchemaOutput, error) + + PutSchemaFromJsonRequest(*clouddirectory.PutSchemaFromJsonInput) (*request.Request, *clouddirectory.PutSchemaFromJsonOutput) + + PutSchemaFromJson(*clouddirectory.PutSchemaFromJsonInput) (*clouddirectory.PutSchemaFromJsonOutput, error) + + RemoveFacetFromObjectRequest(*clouddirectory.RemoveFacetFromObjectInput) (*request.Request, *clouddirectory.RemoveFacetFromObjectOutput) + + RemoveFacetFromObject(*clouddirectory.RemoveFacetFromObjectInput) (*clouddirectory.RemoveFacetFromObjectOutput, error) + + TagResourceRequest(*clouddirectory.TagResourceInput) (*request.Request, *clouddirectory.TagResourceOutput) + + TagResource(*clouddirectory.TagResourceInput) (*clouddirectory.TagResourceOutput, error) + + UntagResourceRequest(*clouddirectory.UntagResourceInput) (*request.Request, *clouddirectory.UntagResourceOutput) + + UntagResource(*clouddirectory.UntagResourceInput) (*clouddirectory.UntagResourceOutput, error) + + UpdateFacetRequest(*clouddirectory.UpdateFacetInput) (*request.Request, *clouddirectory.UpdateFacetOutput) + + UpdateFacet(*clouddirectory.UpdateFacetInput) (*clouddirectory.UpdateFacetOutput, error) + + UpdateObjectAttributesRequest(*clouddirectory.UpdateObjectAttributesInput) (*request.Request, *clouddirectory.UpdateObjectAttributesOutput) + + UpdateObjectAttributes(*clouddirectory.UpdateObjectAttributesInput) (*clouddirectory.UpdateObjectAttributesOutput, error) + + UpdateSchemaRequest(*clouddirectory.UpdateSchemaInput) (*request.Request, *clouddirectory.UpdateSchemaOutput) + + UpdateSchema(*clouddirectory.UpdateSchemaInput) (*clouddirectory.UpdateSchemaOutput, error) +} + +var _ CloudDirectoryAPI = (*clouddirectory.CloudDirectory)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/errors.go b/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/errors.go new file mode 100644 index 000000000..2313dac4e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/errors.go @@ -0,0 +1,233 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package clouddirectory + +const ( + + // ErrCodeAccessDeniedException for service response error code + // "AccessDeniedException". + // + // Access denied. Check your permissions. + ErrCodeAccessDeniedException = "AccessDeniedException" + + // ErrCodeBatchWriteException for service response error code + // "BatchWriteException". + // + // A BatchWrite exception has occurred. + ErrCodeBatchWriteException = "BatchWriteException" + + // ErrCodeCannotListParentOfRootException for service response error code + // "CannotListParentOfRootException". + // + // Cannot list the parents of a Directory root. + ErrCodeCannotListParentOfRootException = "CannotListParentOfRootException" + + // ErrCodeDirectoryAlreadyExistsException for service response error code + // "DirectoryAlreadyExistsException". + // + // Indicates that a Directory could not be created due to a naming conflict. + // Choose a different name and try again. + ErrCodeDirectoryAlreadyExistsException = "DirectoryAlreadyExistsException" + + // ErrCodeDirectoryDeletedException for service response error code + // "DirectoryDeletedException". + // + // A directory that has been deleted has been attempted to be accessed. Note: + // The requested resource will eventually cease to exist. + ErrCodeDirectoryDeletedException = "DirectoryDeletedException" + + // ErrCodeDirectoryNotDisabledException for service response error code + // "DirectoryNotDisabledException". + // + // An operation can only operate on a disabled directory. + ErrCodeDirectoryNotDisabledException = "DirectoryNotDisabledException" + + // ErrCodeDirectoryNotEnabledException for service response error code + // "DirectoryNotEnabledException". + // + // An operation can only operate on a directory that is not enabled. + ErrCodeDirectoryNotEnabledException = "DirectoryNotEnabledException" + + // ErrCodeFacetAlreadyExistsException for service response error code + // "FacetAlreadyExistsException". + // + // A facet with the same name already exists. + ErrCodeFacetAlreadyExistsException = "FacetAlreadyExistsException" + + // ErrCodeFacetInUseException for service response error code + // "FacetInUseException". + // + // Occurs when deleting a facet that contains an attribute which is a target + // to an attribute reference in a different facet. + ErrCodeFacetInUseException = "FacetInUseException" + + // ErrCodeFacetNotFoundException for service response error code + // "FacetNotFoundException". + // + // The specified Facet could not be found. + ErrCodeFacetNotFoundException = "FacetNotFoundException" + + // ErrCodeFacetValidationException for service response error code + // "FacetValidationException". + // + // The Facet you provided was not well formed or could not be validated with + // the schema. + ErrCodeFacetValidationException = "FacetValidationException" + + // ErrCodeIndexedAttributeMissingException for service response error code + // "IndexedAttributeMissingException". + // + // An object has been attempted to be attached to an object that does not have + // the appropriate attribute value. + ErrCodeIndexedAttributeMissingException = "IndexedAttributeMissingException" + + // ErrCodeInternalServiceException for service response error code + // "InternalServiceException". + // + // Indicates a problem that must be resolved by Amazon Web Services. This might + // be a transient error in which case you can retry your request until it succeeds. + // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) + // site to see if there are any operational issues with the service. + ErrCodeInternalServiceException = "InternalServiceException" + + // ErrCodeInvalidArnException for service response error code + // "InvalidArnException". + // + // Indicates that the provided ARN value is not valid. + ErrCodeInvalidArnException = "InvalidArnException" + + // ErrCodeInvalidAttachmentException for service response error code + // "InvalidAttachmentException". + // + // Indicates that an attempt to attach an object with the same link name or + // to apply a schema with same name has occurred. Rename the link or the schema + // and then try again. + ErrCodeInvalidAttachmentException = "InvalidAttachmentException" + + // ErrCodeInvalidFacetUpdateException for service response error code + // "InvalidFacetUpdateException". + // + // An attempt to modify a Facet resulted in an invalid schema exception. + ErrCodeInvalidFacetUpdateException = "InvalidFacetUpdateException" + + // ErrCodeInvalidNextTokenException for service response error code + // "InvalidNextTokenException". + // + // Indicates that the NextToken value is not valid. + ErrCodeInvalidNextTokenException = "InvalidNextTokenException" + + // ErrCodeInvalidRuleException for service response error code + // "InvalidRuleException". + // + // Occurs when any of the rule parameter keys or values are invalid. + ErrCodeInvalidRuleException = "InvalidRuleException" + + // ErrCodeInvalidSchemaDocException for service response error code + // "InvalidSchemaDocException". + // + // Indicates that the provided SchemaDoc value is not valid. + ErrCodeInvalidSchemaDocException = "InvalidSchemaDocException" + + // ErrCodeInvalidTaggingRequestException for service response error code + // "InvalidTaggingRequestException". + // + // Can occur for multiple reasons such as when you tag a resource that doesn’t + // exist or if you specify a higher number of tags for a resource than the allowed + // limit. Allowed limit is 50 tags per resource. + ErrCodeInvalidTaggingRequestException = "InvalidTaggingRequestException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) + // for more information. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeLinkNameAlreadyInUseException for service response error code + // "LinkNameAlreadyInUseException". + // + // Indicates that a link could not be created due to a naming conflict. Choose + // a different name and then try again. + ErrCodeLinkNameAlreadyInUseException = "LinkNameAlreadyInUseException" + + // ErrCodeNotIndexException for service response error code + // "NotIndexException". + // + // Indicates the requested operation can only operate on index objects. + ErrCodeNotIndexException = "NotIndexException" + + // ErrCodeNotNodeException for service response error code + // "NotNodeException". + // + // Occurs when any invalid operations are performed on an object which is not + // a node, such as calling ListObjectChildren for a leaf node object. + ErrCodeNotNodeException = "NotNodeException" + + // ErrCodeNotPolicyException for service response error code + // "NotPolicyException". + // + // Indicates the requested operation can only operate on policy objects. + ErrCodeNotPolicyException = "NotPolicyException" + + // ErrCodeObjectAlreadyDetachedException for service response error code + // "ObjectAlreadyDetachedException". + // + // Indicates the object is not attached to the index. + ErrCodeObjectAlreadyDetachedException = "ObjectAlreadyDetachedException" + + // ErrCodeObjectNotDetachedException for service response error code + // "ObjectNotDetachedException". + // + // Indicates the requested operation cannot be completed because the object + // has not been detached from the tree. + ErrCodeObjectNotDetachedException = "ObjectNotDetachedException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The specified resource could not be found. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeRetryableConflictException for service response error code + // "RetryableConflictException". + // + // Occurs when a conflict with a previous successful write is detected. For + // example, if a write operation occurs on an object and then an attempt is + // made to read the object using “SERIALIZABLE” consistency, this exception + // may result. This generally occurs when the previous write did not have time + // to propagate to the host serving the current request. A retry (with appropriate + // backoff logic) is the recommended response to this exception. + ErrCodeRetryableConflictException = "RetryableConflictException" + + // ErrCodeSchemaAlreadyExistsException for service response error code + // "SchemaAlreadyExistsException". + // + // Indicates that a schema could not be created due to a naming conflict. Please + // select a different name and then try again. + ErrCodeSchemaAlreadyExistsException = "SchemaAlreadyExistsException" + + // ErrCodeSchemaAlreadyPublishedException for service response error code + // "SchemaAlreadyPublishedException". + // + // Indicates a schema is already published. + ErrCodeSchemaAlreadyPublishedException = "SchemaAlreadyPublishedException" + + // ErrCodeStillContainsLinksException for service response error code + // "StillContainsLinksException". + // + // The object could not be deleted because links still exist. Remove the links + // and then try the operation again. + ErrCodeStillContainsLinksException = "StillContainsLinksException" + + // ErrCodeUnsupportedIndexTypeException for service response error code + // "UnsupportedIndexTypeException". + // + // Indicates the requested index type is not supported. + ErrCodeUnsupportedIndexTypeException = "UnsupportedIndexTypeException" + + // ErrCodeValidationException for service response error code + // "ValidationException". + // + // Indicates your request is malformed in some manner. See the exception message. + ErrCodeValidationException = "ValidationException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/examples_test.go new file mode 100644 index 000000000..2fc0b4d20 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/examples_test.go @@ -0,0 +1,1502 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package clouddirectory_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/clouddirectory" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExampleCloudDirectory_AddFacetToObject() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.AddFacetToObjectInput{ + DirectoryArn: aws.String("Arn"), // Required + ObjectReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + SchemaFacet: &clouddirectory.SchemaFacet{ // Required + FacetName: aws.String("FacetName"), + SchemaArn: aws.String("Arn"), + }, + ObjectAttributeList: []*clouddirectory.AttributeKeyAndValue{ + { // Required + Key: &clouddirectory.AttributeKey{ // Required + FacetName: aws.String("FacetName"), // Required + Name: aws.String("AttributeName"), // Required + SchemaArn: aws.String("Arn"), // Required + }, + Value: &clouddirectory.TypedAttributeValue{ // Required + BinaryValue: []byte("PAYLOAD"), + BooleanValue: aws.Bool(true), + DatetimeValue: aws.Time(time.Now()), + NumberValue: aws.String("NumberAttributeValue"), + StringValue: aws.String("StringAttributeValue"), + }, + }, + // More values... + }, + } + resp, err := svc.AddFacetToObject(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_ApplySchema() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.ApplySchemaInput{ + DirectoryArn: aws.String("Arn"), // Required + PublishedSchemaArn: aws.String("Arn"), // Required + } + resp, err := svc.ApplySchema(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_AttachObject() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.AttachObjectInput{ + ChildReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + DirectoryArn: aws.String("Arn"), // Required + LinkName: aws.String("LinkName"), // Required + ParentReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + } + resp, err := svc.AttachObject(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_AttachPolicy() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.AttachPolicyInput{ + ObjectReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + PolicyReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + DirectoryArn: aws.String("Arn"), + } + resp, err := svc.AttachPolicy(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_AttachToIndex() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.AttachToIndexInput{ + DirectoryArn: aws.String("Arn"), // Required + IndexReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + TargetReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + } + resp, err := svc.AttachToIndex(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_BatchRead() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.BatchReadInput{ + DirectoryArn: aws.String("Arn"), // Required + Operations: []*clouddirectory.BatchReadOperation{ // Required + { // Required + ListObjectAttributes: &clouddirectory.BatchListObjectAttributes{ + ObjectReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + }, + ListObjectChildren: &clouddirectory.BatchListObjectChildren{ + ObjectReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + }, + }, + // More values... + }, + ConsistencyLevel: aws.String("ConsistencyLevel"), + } + resp, err := svc.BatchRead(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_BatchWrite() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.BatchWriteInput{ + DirectoryArn: aws.String("Arn"), // Required + Operations: []*clouddirectory.BatchWriteOperation{ // Required + { // Required + AddFacetToObject: &clouddirectory.BatchAddFacetToObject{ + ObjectAttributeList: []*clouddirectory.AttributeKeyAndValue{ // Required + { // Required + Key: &clouddirectory.AttributeKey{ // Required + FacetName: aws.String("FacetName"), // Required + Name: aws.String("AttributeName"), // Required + SchemaArn: aws.String("Arn"), // Required + }, + Value: &clouddirectory.TypedAttributeValue{ // Required + BinaryValue: []byte("PAYLOAD"), + BooleanValue: aws.Bool(true), + DatetimeValue: aws.Time(time.Now()), + NumberValue: aws.String("NumberAttributeValue"), + StringValue: aws.String("StringAttributeValue"), + }, + }, + // More values... + }, + ObjectReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + SchemaFacet: &clouddirectory.SchemaFacet{ // Required + FacetName: aws.String("FacetName"), + SchemaArn: aws.String("Arn"), + }, + }, + AttachObject: &clouddirectory.BatchAttachObject{ + ChildReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + LinkName: aws.String("LinkName"), // Required + ParentReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + }, + CreateObject: &clouddirectory.BatchCreateObject{ + BatchReferenceName: aws.String("BatchReferenceName"), // Required + LinkName: aws.String("LinkName"), // Required + ObjectAttributeList: []*clouddirectory.AttributeKeyAndValue{ // Required + { // Required + Key: &clouddirectory.AttributeKey{ // Required + FacetName: aws.String("FacetName"), // Required + Name: aws.String("AttributeName"), // Required + SchemaArn: aws.String("Arn"), // Required + }, + Value: &clouddirectory.TypedAttributeValue{ // Required + BinaryValue: []byte("PAYLOAD"), + BooleanValue: aws.Bool(true), + DatetimeValue: aws.Time(time.Now()), + NumberValue: aws.String("NumberAttributeValue"), + StringValue: aws.String("StringAttributeValue"), + }, + }, + // More values... + }, + ParentReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + SchemaFacet: []*clouddirectory.SchemaFacet{ // Required + { // Required + FacetName: aws.String("FacetName"), + SchemaArn: aws.String("Arn"), + }, + // More values... + }, + }, + DeleteObject: &clouddirectory.BatchDeleteObject{ + ObjectReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + }, + DetachObject: &clouddirectory.BatchDetachObject{ + BatchReferenceName: aws.String("BatchReferenceName"), // Required + LinkName: aws.String("LinkName"), // Required + ParentReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + }, + RemoveFacetFromObject: &clouddirectory.BatchRemoveFacetFromObject{ + ObjectReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + SchemaFacet: &clouddirectory.SchemaFacet{ // Required + FacetName: aws.String("FacetName"), + SchemaArn: aws.String("Arn"), + }, + }, + UpdateObjectAttributes: &clouddirectory.BatchUpdateObjectAttributes{ + AttributeUpdates: []*clouddirectory.ObjectAttributeUpdate{ // Required + { // Required + ObjectAttributeAction: &clouddirectory.ObjectAttributeAction{ + ObjectAttributeActionType: aws.String("UpdateActionType"), + ObjectAttributeUpdateValue: &clouddirectory.TypedAttributeValue{ + BinaryValue: []byte("PAYLOAD"), + BooleanValue: aws.Bool(true), + DatetimeValue: aws.Time(time.Now()), + NumberValue: aws.String("NumberAttributeValue"), + StringValue: aws.String("StringAttributeValue"), + }, + }, + ObjectAttributeKey: &clouddirectory.AttributeKey{ + FacetName: aws.String("FacetName"), // Required + Name: aws.String("AttributeName"), // Required + SchemaArn: aws.String("Arn"), // Required + }, + }, + // More values... + }, + ObjectReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + }, + }, + // More values... + }, + } + resp, err := svc.BatchWrite(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_CreateDirectory() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.CreateDirectoryInput{ + Name: aws.String("DirectoryName"), // Required + SchemaArn: aws.String("Arn"), // Required + } + resp, err := svc.CreateDirectory(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_CreateFacet() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.CreateFacetInput{ + Name: aws.String("FacetName"), // Required + ObjectType: aws.String("ObjectType"), // Required + SchemaArn: aws.String("Arn"), // Required + Attributes: []*clouddirectory.FacetAttribute{ + { // Required + Name: aws.String("AttributeName"), // Required + AttributeDefinition: &clouddirectory.FacetAttributeDefinition{ + Type: aws.String("FacetAttributeType"), // Required + DefaultValue: &clouddirectory.TypedAttributeValue{ + BinaryValue: []byte("PAYLOAD"), + BooleanValue: aws.Bool(true), + DatetimeValue: aws.Time(time.Now()), + NumberValue: aws.String("NumberAttributeValue"), + StringValue: aws.String("StringAttributeValue"), + }, + IsImmutable: aws.Bool(true), + Rules: map[string]*clouddirectory.Rule{ + "Key": { // Required + Parameters: map[string]*string{ + "Key": aws.String("RuleParameterValue"), // Required + // More values... + }, + Type: aws.String("RuleType"), + }, + // More values... + }, + }, + AttributeReference: &clouddirectory.FacetAttributeReference{ + TargetAttributeName: aws.String("AttributeName"), // Required + TargetFacetName: aws.String("FacetName"), // Required + }, + RequiredBehavior: aws.String("RequiredAttributeBehavior"), + }, + // More values... + }, + } + resp, err := svc.CreateFacet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_CreateIndex() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.CreateIndexInput{ + DirectoryArn: aws.String("Arn"), // Required + IsUnique: aws.Bool(true), // Required + OrderedIndexedAttributeList: []*clouddirectory.AttributeKey{ // Required + { // Required + FacetName: aws.String("FacetName"), // Required + Name: aws.String("AttributeName"), // Required + SchemaArn: aws.String("Arn"), // Required + }, + // More values... + }, + LinkName: aws.String("LinkName"), + ParentReference: &clouddirectory.ObjectReference{ + Selector: aws.String("SelectorObjectReference"), + }, + } + resp, err := svc.CreateIndex(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_CreateObject() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.CreateObjectInput{ + DirectoryArn: aws.String("Arn"), // Required + SchemaFacets: []*clouddirectory.SchemaFacet{ // Required + { // Required + FacetName: aws.String("FacetName"), + SchemaArn: aws.String("Arn"), + }, + // More values... + }, + LinkName: aws.String("LinkName"), + ObjectAttributeList: []*clouddirectory.AttributeKeyAndValue{ + { // Required + Key: &clouddirectory.AttributeKey{ // Required + FacetName: aws.String("FacetName"), // Required + Name: aws.String("AttributeName"), // Required + SchemaArn: aws.String("Arn"), // Required + }, + Value: &clouddirectory.TypedAttributeValue{ // Required + BinaryValue: []byte("PAYLOAD"), + BooleanValue: aws.Bool(true), + DatetimeValue: aws.Time(time.Now()), + NumberValue: aws.String("NumberAttributeValue"), + StringValue: aws.String("StringAttributeValue"), + }, + }, + // More values... + }, + ParentReference: &clouddirectory.ObjectReference{ + Selector: aws.String("SelectorObjectReference"), + }, + } + resp, err := svc.CreateObject(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_CreateSchema() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.CreateSchemaInput{ + Name: aws.String("SchemaName"), // Required + } + resp, err := svc.CreateSchema(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_DeleteDirectory() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.DeleteDirectoryInput{ + DirectoryArn: aws.String("Arn"), // Required + } + resp, err := svc.DeleteDirectory(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_DeleteFacet() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.DeleteFacetInput{ + Name: aws.String("FacetName"), // Required + SchemaArn: aws.String("Arn"), // Required + } + resp, err := svc.DeleteFacet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_DeleteObject() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.DeleteObjectInput{ + DirectoryArn: aws.String("Arn"), // Required + ObjectReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + } + resp, err := svc.DeleteObject(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_DeleteSchema() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.DeleteSchemaInput{ + SchemaArn: aws.String("Arn"), // Required + } + resp, err := svc.DeleteSchema(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_DetachFromIndex() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.DetachFromIndexInput{ + DirectoryArn: aws.String("Arn"), // Required + IndexReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + TargetReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + } + resp, err := svc.DetachFromIndex(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_DetachObject() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.DetachObjectInput{ + DirectoryArn: aws.String("Arn"), // Required + LinkName: aws.String("LinkName"), // Required + ParentReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + } + resp, err := svc.DetachObject(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_DetachPolicy() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.DetachPolicyInput{ + DirectoryArn: aws.String("Arn"), // Required + ObjectReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + PolicyReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + } + resp, err := svc.DetachPolicy(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_DisableDirectory() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.DisableDirectoryInput{ + DirectoryArn: aws.String("Arn"), // Required + } + resp, err := svc.DisableDirectory(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_EnableDirectory() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.EnableDirectoryInput{ + DirectoryArn: aws.String("Arn"), // Required + } + resp, err := svc.EnableDirectory(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_GetDirectory() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.GetDirectoryInput{ + DirectoryArn: aws.String("DirectoryArn"), // Required + } + resp, err := svc.GetDirectory(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_GetFacet() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.GetFacetInput{ + Name: aws.String("FacetName"), // Required + SchemaArn: aws.String("Arn"), // Required + } + resp, err := svc.GetFacet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_GetObjectInformation() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.GetObjectInformationInput{ + DirectoryArn: aws.String("Arn"), // Required + ObjectReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + ConsistencyLevel: aws.String("ConsistencyLevel"), + } + resp, err := svc.GetObjectInformation(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_GetSchemaAsJson() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.GetSchemaAsJsonInput{ + SchemaArn: aws.String("Arn"), // Required + } + resp, err := svc.GetSchemaAsJson(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_ListAppliedSchemaArns() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.ListAppliedSchemaArnsInput{ + DirectoryArn: aws.String("Arn"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListAppliedSchemaArns(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_ListAttachedIndices() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.ListAttachedIndicesInput{ + DirectoryArn: aws.String("Arn"), // Required + TargetReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + ConsistencyLevel: aws.String("ConsistencyLevel"), + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListAttachedIndices(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_ListDevelopmentSchemaArns() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.ListDevelopmentSchemaArnsInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListDevelopmentSchemaArns(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_ListDirectories() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.ListDirectoriesInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + State: aws.String("DirectoryState"), + } + resp, err := svc.ListDirectories(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_ListFacetAttributes() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.ListFacetAttributesInput{ + Name: aws.String("FacetName"), // Required + SchemaArn: aws.String("Arn"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListFacetAttributes(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_ListFacetNames() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.ListFacetNamesInput{ + SchemaArn: aws.String("Arn"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListFacetNames(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_ListIndex() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.ListIndexInput{ + DirectoryArn: aws.String("Arn"), // Required + IndexReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + ConsistencyLevel: aws.String("ConsistencyLevel"), + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + RangesOnIndexedValues: []*clouddirectory.ObjectAttributeRange{ + { // Required + AttributeKey: &clouddirectory.AttributeKey{ + FacetName: aws.String("FacetName"), // Required + Name: aws.String("AttributeName"), // Required + SchemaArn: aws.String("Arn"), // Required + }, + Range: &clouddirectory.TypedAttributeValueRange{ + EndMode: aws.String("RangeMode"), // Required + StartMode: aws.String("RangeMode"), // Required + EndValue: &clouddirectory.TypedAttributeValue{ + BinaryValue: []byte("PAYLOAD"), + BooleanValue: aws.Bool(true), + DatetimeValue: aws.Time(time.Now()), + NumberValue: aws.String("NumberAttributeValue"), + StringValue: aws.String("StringAttributeValue"), + }, + StartValue: &clouddirectory.TypedAttributeValue{ + BinaryValue: []byte("PAYLOAD"), + BooleanValue: aws.Bool(true), + DatetimeValue: aws.Time(time.Now()), + NumberValue: aws.String("NumberAttributeValue"), + StringValue: aws.String("StringAttributeValue"), + }, + }, + }, + // More values... + }, + } + resp, err := svc.ListIndex(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_ListObjectAttributes() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.ListObjectAttributesInput{ + DirectoryArn: aws.String("Arn"), // Required + ObjectReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + ConsistencyLevel: aws.String("ConsistencyLevel"), + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListObjectAttributes(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_ListObjectChildren() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.ListObjectChildrenInput{ + DirectoryArn: aws.String("Arn"), // Required + ObjectReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + ConsistencyLevel: aws.String("ConsistencyLevel"), + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListObjectChildren(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_ListObjectParentPaths() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.ListObjectParentPathsInput{ + DirectoryArn: aws.String("Arn"), // Required + ObjectReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListObjectParentPaths(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_ListObjectParents() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.ListObjectParentsInput{ + DirectoryArn: aws.String("Arn"), // Required + ObjectReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + ConsistencyLevel: aws.String("ConsistencyLevel"), + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListObjectParents(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_ListObjectPolicies() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.ListObjectPoliciesInput{ + DirectoryArn: aws.String("Arn"), // Required + ObjectReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + ConsistencyLevel: aws.String("ConsistencyLevel"), + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListObjectPolicies(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_ListPolicyAttachments() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.ListPolicyAttachmentsInput{ + DirectoryArn: aws.String("Arn"), // Required + PolicyReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + ConsistencyLevel: aws.String("ConsistencyLevel"), + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListPolicyAttachments(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_ListPublishedSchemaArns() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.ListPublishedSchemaArnsInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListPublishedSchemaArns(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_ListTagsForResource() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.ListTagsForResourceInput{ + ResourceArn: aws.String("Arn"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListTagsForResource(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_LookupPolicy() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.LookupPolicyInput{ + DirectoryArn: aws.String("Arn"), // Required + ObjectReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.LookupPolicy(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_PublishSchema() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.PublishSchemaInput{ + DevelopmentSchemaArn: aws.String("Arn"), // Required + Version: aws.String("Version"), // Required + Name: aws.String("SchemaName"), + } + resp, err := svc.PublishSchema(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_PutSchemaFromJson() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.PutSchemaFromJsonInput{ + Document: aws.String("SchemaJsonDocument"), // Required + SchemaArn: aws.String("Arn"), // Required + } + resp, err := svc.PutSchemaFromJson(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_RemoveFacetFromObject() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.RemoveFacetFromObjectInput{ + DirectoryArn: aws.String("Arn"), // Required + ObjectReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + SchemaFacet: &clouddirectory.SchemaFacet{ // Required + FacetName: aws.String("FacetName"), + SchemaArn: aws.String("Arn"), + }, + } + resp, err := svc.RemoveFacetFromObject(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_TagResource() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.TagResourceInput{ + ResourceArn: aws.String("Arn"), // Required + Tags: []*clouddirectory.Tag{ // Required + { // Required + Key: aws.String("TagKey"), + Value: aws.String("TagValue"), + }, + // More values... + }, + } + resp, err := svc.TagResource(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_UntagResource() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.UntagResourceInput{ + ResourceArn: aws.String("Arn"), // Required + TagKeys: []*string{ // Required + aws.String("TagKey"), // Required + // More values... + }, + } + resp, err := svc.UntagResource(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_UpdateFacet() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.UpdateFacetInput{ + Name: aws.String("FacetName"), // Required + SchemaArn: aws.String("Arn"), // Required + AttributeUpdates: []*clouddirectory.FacetAttributeUpdate{ + { // Required + Action: aws.String("UpdateActionType"), + Attribute: &clouddirectory.FacetAttribute{ + Name: aws.String("AttributeName"), // Required + AttributeDefinition: &clouddirectory.FacetAttributeDefinition{ + Type: aws.String("FacetAttributeType"), // Required + DefaultValue: &clouddirectory.TypedAttributeValue{ + BinaryValue: []byte("PAYLOAD"), + BooleanValue: aws.Bool(true), + DatetimeValue: aws.Time(time.Now()), + NumberValue: aws.String("NumberAttributeValue"), + StringValue: aws.String("StringAttributeValue"), + }, + IsImmutable: aws.Bool(true), + Rules: map[string]*clouddirectory.Rule{ + "Key": { // Required + Parameters: map[string]*string{ + "Key": aws.String("RuleParameterValue"), // Required + // More values... + }, + Type: aws.String("RuleType"), + }, + // More values... + }, + }, + AttributeReference: &clouddirectory.FacetAttributeReference{ + TargetAttributeName: aws.String("AttributeName"), // Required + TargetFacetName: aws.String("FacetName"), // Required + }, + RequiredBehavior: aws.String("RequiredAttributeBehavior"), + }, + }, + // More values... + }, + ObjectType: aws.String("ObjectType"), + } + resp, err := svc.UpdateFacet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_UpdateObjectAttributes() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.UpdateObjectAttributesInput{ + AttributeUpdates: []*clouddirectory.ObjectAttributeUpdate{ // Required + { // Required + ObjectAttributeAction: &clouddirectory.ObjectAttributeAction{ + ObjectAttributeActionType: aws.String("UpdateActionType"), + ObjectAttributeUpdateValue: &clouddirectory.TypedAttributeValue{ + BinaryValue: []byte("PAYLOAD"), + BooleanValue: aws.Bool(true), + DatetimeValue: aws.Time(time.Now()), + NumberValue: aws.String("NumberAttributeValue"), + StringValue: aws.String("StringAttributeValue"), + }, + }, + ObjectAttributeKey: &clouddirectory.AttributeKey{ + FacetName: aws.String("FacetName"), // Required + Name: aws.String("AttributeName"), // Required + SchemaArn: aws.String("Arn"), // Required + }, + }, + // More values... + }, + DirectoryArn: aws.String("Arn"), // Required + ObjectReference: &clouddirectory.ObjectReference{ // Required + Selector: aws.String("SelectorObjectReference"), + }, + } + resp, err := svc.UpdateObjectAttributes(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudDirectory_UpdateSchema() { + sess := session.Must(session.NewSession()) + + svc := clouddirectory.New(sess) + + params := &clouddirectory.UpdateSchemaInput{ + Name: aws.String("SchemaName"), // Required + SchemaArn: aws.String("Arn"), // Required + } + resp, err := svc.UpdateSchema(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/service.go b/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/service.go new file mode 100644 index 000000000..32a8ba45d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/service.go @@ -0,0 +1,99 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package clouddirectory + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +// Amazon Cloud Directory is a component of the AWS Directory Service that simplifies +// the development and management of cloud-scale web, mobile and IoT applications. +// This guide describes the Cloud Directory operations that you can call programatically +// and includes detailed information on data types and errors. For information +// about AWS Directory Services features, see AWS Directory Service (https://aws.amazon.com/directoryservice/) +// and the AWS Directory Service Administration Guide (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/what_is.html). +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10 +type CloudDirectory struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "clouddirectory" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the CloudDirectory client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a CloudDirectory client from just a session. +// svc := clouddirectory.New(mySession) +// +// // Create a CloudDirectory client with additional configuration +// svc := clouddirectory.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudDirectory { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CloudDirectory { + if len(signingName) == 0 { + signingName = "clouddirectory" + } + svc := &CloudDirectory{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2016-05-10", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a CloudDirectory operation and runs any +// custom request initialization. +func (c *CloudDirectory) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go index 711d6d62f..be60e851f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go @@ -38,6 +38,7 @@ const opCancelUpdateStack = "CancelUpdateStack" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CancelUpdateStack func (c *CloudFormation) CancelUpdateStackRequest(input *CancelUpdateStackInput) (req *request.Request, output *CancelUpdateStackOutput) { op := &request.Operation{ Name: opCancelUpdateStack, @@ -49,11 +50,10 @@ func (c *CloudFormation) CancelUpdateStackRequest(input *CancelUpdateStackInput) input = &CancelUpdateStackInput{} } + output = &CancelUpdateStackOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CancelUpdateStackOutput{} - req.Data = output return } @@ -62,7 +62,7 @@ func (c *CloudFormation) CancelUpdateStackRequest(input *CancelUpdateStackInput) // Cancels an update on the specified stack. If the call completes successfully, // the stack rolls back the update and reverts to the previous stack configuration. // -// You can cancel only stacks that are in the UPDATE_IN_PROGRESS state. +// You can cancel only stacks that are in the UPDATE_IN_PROGRESS state. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -70,6 +70,7 @@ func (c *CloudFormation) CancelUpdateStackRequest(input *CancelUpdateStackInput) // // See the AWS API reference guide for AWS CloudFormation's // API operation CancelUpdateStack for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CancelUpdateStack func (c *CloudFormation) CancelUpdateStack(input *CancelUpdateStackInput) (*CancelUpdateStackOutput, error) { req, out := c.CancelUpdateStackRequest(input) err := req.Send() @@ -102,6 +103,7 @@ const opContinueUpdateRollback = "ContinueUpdateRollback" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ContinueUpdateRollback func (c *CloudFormation) ContinueUpdateRollbackRequest(input *ContinueUpdateRollbackInput) (req *request.Request, output *ContinueUpdateRollbackOutput) { op := &request.Operation{ Name: opContinueUpdateRollback, @@ -113,9 +115,8 @@ func (c *CloudFormation) ContinueUpdateRollbackRequest(input *ContinueUpdateRoll input = &ContinueUpdateRollbackInput{} } - req = c.newRequest(op, input, output) output = &ContinueUpdateRollbackOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -141,6 +142,7 @@ func (c *CloudFormation) ContinueUpdateRollbackRequest(input *ContinueUpdateRoll // // See the AWS API reference guide for AWS CloudFormation's // API operation ContinueUpdateRollback for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ContinueUpdateRollback func (c *CloudFormation) ContinueUpdateRollback(input *ContinueUpdateRollbackInput) (*ContinueUpdateRollbackOutput, error) { req, out := c.ContinueUpdateRollbackRequest(input) err := req.Send() @@ -173,6 +175,7 @@ const opCreateChangeSet = "CreateChangeSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet func (c *CloudFormation) CreateChangeSetRequest(input *CreateChangeSetInput) (req *request.Request, output *CreateChangeSetOutput) { op := &request.Operation{ Name: opCreateChangeSet, @@ -184,19 +187,18 @@ func (c *CloudFormation) CreateChangeSetRequest(input *CreateChangeSetInput) (re input = &CreateChangeSetInput{} } - req = c.newRequest(op, input, output) output = &CreateChangeSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // CreateChangeSet API operation for AWS CloudFormation. // // Creates a list of changes for a stack. AWS CloudFormation generates the change -// set by comparing the stack's information with the information that you submit. -// A change set can help you understand which resources AWS CloudFormation will -// change and how it will change them before you update your stack. Change sets -// allow you to check before you make a change so that you don't delete or replace +// set by comparing the template's information with the information that you +// submit. A change set can help you understand which resources AWS CloudFormation +// will change, and how it will change them, before you update your stack. Change +// sets allow you to check before making a change to avoid deleting or replacing // critical resources. // // AWS CloudFormation doesn't make any changes to the stack when you create @@ -215,16 +217,17 @@ func (c *CloudFormation) CreateChangeSetRequest(input *CreateChangeSetInput) (re // API operation CreateChangeSet for usage and error information. // // Returned Error Codes: -// * AlreadyExistsException +// * ErrCodeAlreadyExistsException "AlreadyExistsException" // Resource with the name requested already exists. // -// * InsufficientCapabilitiesException +// * ErrCodeInsufficientCapabilitiesException "InsufficientCapabilitiesException" // The template contains resources with capabilities that were not specified // in the Capabilities parameter. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // Quota for the resource has already been reached. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet func (c *CloudFormation) CreateChangeSet(input *CreateChangeSetInput) (*CreateChangeSetOutput, error) { req, out := c.CreateChangeSetRequest(input) err := req.Send() @@ -257,6 +260,7 @@ const opCreateStack = "CreateStack" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStack func (c *CloudFormation) CreateStackRequest(input *CreateStackInput) (req *request.Request, output *CreateStackOutput) { op := &request.Operation{ Name: opCreateStack, @@ -268,9 +272,8 @@ func (c *CloudFormation) CreateStackRequest(input *CreateStackInput) (req *reque input = &CreateStackInput{} } - req = c.newRequest(op, input, output) output = &CreateStackOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -288,16 +291,17 @@ func (c *CloudFormation) CreateStackRequest(input *CreateStackInput) (req *reque // API operation CreateStack for usage and error information. // // Returned Error Codes: -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // Quota for the resource has already been reached. // -// * AlreadyExistsException +// * ErrCodeAlreadyExistsException "AlreadyExistsException" // Resource with the name requested already exists. // -// * InsufficientCapabilitiesException +// * ErrCodeInsufficientCapabilitiesException "InsufficientCapabilitiesException" // The template contains resources with capabilities that were not specified // in the Capabilities parameter. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStack func (c *CloudFormation) CreateStack(input *CreateStackInput) (*CreateStackOutput, error) { req, out := c.CreateStackRequest(input) err := req.Send() @@ -330,6 +334,7 @@ const opDeleteChangeSet = "DeleteChangeSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteChangeSet func (c *CloudFormation) DeleteChangeSetRequest(input *DeleteChangeSetInput) (req *request.Request, output *DeleteChangeSetOutput) { op := &request.Operation{ Name: opDeleteChangeSet, @@ -341,9 +346,8 @@ func (c *CloudFormation) DeleteChangeSetRequest(input *DeleteChangeSetInput) (re input = &DeleteChangeSetInput{} } - req = c.newRequest(op, input, output) output = &DeleteChangeSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -363,11 +367,12 @@ func (c *CloudFormation) DeleteChangeSetRequest(input *DeleteChangeSetInput) (re // API operation DeleteChangeSet for usage and error information. // // Returned Error Codes: -// * InvalidChangeSetStatus +// * ErrCodeInvalidChangeSetStatusException "InvalidChangeSetStatus" // The specified change set cannot be used to update the stack. For example, // the change set status might be CREATE_IN_PROGRESS or the stack status might // be UPDATE_IN_PROGRESS. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteChangeSet func (c *CloudFormation) DeleteChangeSet(input *DeleteChangeSetInput) (*DeleteChangeSetOutput, error) { req, out := c.DeleteChangeSetRequest(input) err := req.Send() @@ -400,6 +405,7 @@ const opDeleteStack = "DeleteStack" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStack func (c *CloudFormation) DeleteStackRequest(input *DeleteStackInput) (req *request.Request, output *DeleteStackOutput) { op := &request.Operation{ Name: opDeleteStack, @@ -411,11 +417,10 @@ func (c *CloudFormation) DeleteStackRequest(input *DeleteStackInput) (req *reque input = &DeleteStackInput{} } + output = &DeleteStackOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteStackOutput{} - req.Data = output return } @@ -431,6 +436,7 @@ func (c *CloudFormation) DeleteStackRequest(input *DeleteStackInput) (req *reque // // See the AWS API reference guide for AWS CloudFormation's // API operation DeleteStack for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStack func (c *CloudFormation) DeleteStack(input *DeleteStackInput) (*DeleteStackOutput, error) { req, out := c.DeleteStackRequest(input) err := req.Send() @@ -463,6 +469,7 @@ const opDescribeAccountLimits = "DescribeAccountLimits" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeAccountLimits func (c *CloudFormation) DescribeAccountLimitsRequest(input *DescribeAccountLimitsInput) (req *request.Request, output *DescribeAccountLimitsOutput) { op := &request.Operation{ Name: opDescribeAccountLimits, @@ -474,9 +481,8 @@ func (c *CloudFormation) DescribeAccountLimitsRequest(input *DescribeAccountLimi input = &DescribeAccountLimitsInput{} } - req = c.newRequest(op, input, output) output = &DescribeAccountLimitsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -491,6 +497,7 @@ func (c *CloudFormation) DescribeAccountLimitsRequest(input *DescribeAccountLimi // // See the AWS API reference guide for AWS CloudFormation's // API operation DescribeAccountLimits for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeAccountLimits func (c *CloudFormation) DescribeAccountLimits(input *DescribeAccountLimitsInput) (*DescribeAccountLimitsOutput, error) { req, out := c.DescribeAccountLimitsRequest(input) err := req.Send() @@ -523,6 +530,7 @@ const opDescribeChangeSet = "DescribeChangeSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSet func (c *CloudFormation) DescribeChangeSetRequest(input *DescribeChangeSetInput) (req *request.Request, output *DescribeChangeSetOutput) { op := &request.Operation{ Name: opDescribeChangeSet, @@ -534,9 +542,8 @@ func (c *CloudFormation) DescribeChangeSetRequest(input *DescribeChangeSetInput) input = &DescribeChangeSetInput{} } - req = c.newRequest(op, input, output) output = &DescribeChangeSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -555,10 +562,11 @@ func (c *CloudFormation) DescribeChangeSetRequest(input *DescribeChangeSetInput) // API operation DescribeChangeSet for usage and error information. // // Returned Error Codes: -// * ChangeSetNotFound +// * ErrCodeChangeSetNotFoundException "ChangeSetNotFound" // The specified change set name or ID doesn't exit. To view valid change sets // for a stack, use the ListChangeSets action. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSet func (c *CloudFormation) DescribeChangeSet(input *DescribeChangeSetInput) (*DescribeChangeSetOutput, error) { req, out := c.DescribeChangeSetRequest(input) err := req.Send() @@ -591,6 +599,7 @@ const opDescribeStackEvents = "DescribeStackEvents" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackEvents func (c *CloudFormation) DescribeStackEventsRequest(input *DescribeStackEventsInput) (req *request.Request, output *DescribeStackEventsOutput) { op := &request.Operation{ Name: opDescribeStackEvents, @@ -608,9 +617,8 @@ func (c *CloudFormation) DescribeStackEventsRequest(input *DescribeStackEventsIn input = &DescribeStackEventsInput{} } - req = c.newRequest(op, input, output) output = &DescribeStackEventsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -620,8 +628,8 @@ func (c *CloudFormation) DescribeStackEventsRequest(input *DescribeStackEventsIn // order. For more information about a stack's event history, go to Stacks (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/concept-stack.html) // in the AWS CloudFormation User Guide. // -// You can list events for stacks that have failed to create or have been -// deleted by specifying the unique stack identifier (stack ID). +// You can list events for stacks that have failed to create or have been deleted +// by specifying the unique stack identifier (stack ID). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -629,6 +637,7 @@ func (c *CloudFormation) DescribeStackEventsRequest(input *DescribeStackEventsIn // // See the AWS API reference guide for AWS CloudFormation's // API operation DescribeStackEvents for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackEvents func (c *CloudFormation) DescribeStackEvents(input *DescribeStackEventsInput) (*DescribeStackEventsOutput, error) { req, out := c.DescribeStackEventsRequest(input) err := req.Send() @@ -686,6 +695,7 @@ const opDescribeStackResource = "DescribeStackResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResource func (c *CloudFormation) DescribeStackResourceRequest(input *DescribeStackResourceInput) (req *request.Request, output *DescribeStackResourceOutput) { op := &request.Operation{ Name: opDescribeStackResource, @@ -697,9 +707,8 @@ func (c *CloudFormation) DescribeStackResourceRequest(input *DescribeStackResour input = &DescribeStackResourceInput{} } - req = c.newRequest(op, input, output) output = &DescribeStackResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -716,6 +725,7 @@ func (c *CloudFormation) DescribeStackResourceRequest(input *DescribeStackResour // // See the AWS API reference guide for AWS CloudFormation's // API operation DescribeStackResource for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResource func (c *CloudFormation) DescribeStackResource(input *DescribeStackResourceInput) (*DescribeStackResourceOutput, error) { req, out := c.DescribeStackResourceRequest(input) err := req.Send() @@ -748,6 +758,7 @@ const opDescribeStackResources = "DescribeStackResources" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResources func (c *CloudFormation) DescribeStackResourcesRequest(input *DescribeStackResourcesInput) (req *request.Request, output *DescribeStackResourcesOutput) { op := &request.Operation{ Name: opDescribeStackResources, @@ -759,9 +770,8 @@ func (c *CloudFormation) DescribeStackResourcesRequest(input *DescribeStackResou input = &DescribeStackResourcesInput{} } - req = c.newRequest(op, input, output) output = &DescribeStackResourcesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -772,18 +782,18 @@ func (c *CloudFormation) DescribeStackResourcesRequest(input *DescribeStackResou // returned. If PhysicalResourceId is specified, the associated resources of // the stack that the resource belongs to are returned. // -// Only the first 100 resources will be returned. If your stack has more resources +// Only the first 100 resources will be returned. If your stack has more resources // than this, you should use ListStackResources instead. // -// For deleted stacks, DescribeStackResources returns resource information -// for up to 90 days after the stack has been deleted. +// For deleted stacks, DescribeStackResources returns resource information for +// up to 90 days after the stack has been deleted. // // You must specify either StackName or PhysicalResourceId, but not both. In // addition, you can specify LogicalResourceId to filter the returned result. // For more information about resources, the LogicalResourceId and PhysicalResourceId, // go to the AWS CloudFormation User Guide (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/). // -// A ValidationError is returned if you specify both StackName and PhysicalResourceId +// A ValidationError is returned if you specify both StackName and PhysicalResourceId // in the same request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -792,6 +802,7 @@ func (c *CloudFormation) DescribeStackResourcesRequest(input *DescribeStackResou // // See the AWS API reference guide for AWS CloudFormation's // API operation DescribeStackResources for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResources func (c *CloudFormation) DescribeStackResources(input *DescribeStackResourcesInput) (*DescribeStackResourcesOutput, error) { req, out := c.DescribeStackResourcesRequest(input) err := req.Send() @@ -824,6 +835,7 @@ const opDescribeStacks = "DescribeStacks" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks func (c *CloudFormation) DescribeStacksRequest(input *DescribeStacksInput) (req *request.Request, output *DescribeStacksOutput) { op := &request.Operation{ Name: opDescribeStacks, @@ -841,9 +853,8 @@ func (c *CloudFormation) DescribeStacksRequest(input *DescribeStacksInput) (req input = &DescribeStacksInput{} } - req = c.newRequest(op, input, output) output = &DescribeStacksOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -852,7 +863,7 @@ func (c *CloudFormation) DescribeStacksRequest(input *DescribeStacksInput) (req // Returns the description for the specified stack; if no stack name was specified, // then it returns the description for all the stacks created. // -// If the stack does not exist, an AmazonCloudFormationException is returned. +// If the stack does not exist, an AmazonCloudFormationException is returned. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -860,6 +871,7 @@ func (c *CloudFormation) DescribeStacksRequest(input *DescribeStacksInput) (req // // See the AWS API reference guide for AWS CloudFormation's // API operation DescribeStacks for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks func (c *CloudFormation) DescribeStacks(input *DescribeStacksInput) (*DescribeStacksOutput, error) { req, out := c.DescribeStacksRequest(input) err := req.Send() @@ -917,6 +929,7 @@ const opEstimateTemplateCost = "EstimateTemplateCost" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/EstimateTemplateCost func (c *CloudFormation) EstimateTemplateCostRequest(input *EstimateTemplateCostInput) (req *request.Request, output *EstimateTemplateCostOutput) { op := &request.Operation{ Name: opEstimateTemplateCost, @@ -928,9 +941,8 @@ func (c *CloudFormation) EstimateTemplateCostRequest(input *EstimateTemplateCost input = &EstimateTemplateCostInput{} } - req = c.newRequest(op, input, output) output = &EstimateTemplateCostOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -946,6 +958,7 @@ func (c *CloudFormation) EstimateTemplateCostRequest(input *EstimateTemplateCost // // See the AWS API reference guide for AWS CloudFormation's // API operation EstimateTemplateCost for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/EstimateTemplateCost func (c *CloudFormation) EstimateTemplateCost(input *EstimateTemplateCostInput) (*EstimateTemplateCostOutput, error) { req, out := c.EstimateTemplateCostRequest(input) err := req.Send() @@ -978,6 +991,7 @@ const opExecuteChangeSet = "ExecuteChangeSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ExecuteChangeSet func (c *CloudFormation) ExecuteChangeSetRequest(input *ExecuteChangeSetInput) (req *request.Request, output *ExecuteChangeSetOutput) { op := &request.Operation{ Name: opExecuteChangeSet, @@ -989,9 +1003,8 @@ func (c *CloudFormation) ExecuteChangeSetRequest(input *ExecuteChangeSetInput) ( input = &ExecuteChangeSetInput{} } - req = c.newRequest(op, input, output) output = &ExecuteChangeSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1018,15 +1031,20 @@ func (c *CloudFormation) ExecuteChangeSetRequest(input *ExecuteChangeSetInput) ( // API operation ExecuteChangeSet for usage and error information. // // Returned Error Codes: -// * InvalidChangeSetStatus +// * ErrCodeInvalidChangeSetStatusException "InvalidChangeSetStatus" // The specified change set cannot be used to update the stack. For example, // the change set status might be CREATE_IN_PROGRESS or the stack status might // be UPDATE_IN_PROGRESS. // -// * ChangeSetNotFound +// * ErrCodeChangeSetNotFoundException "ChangeSetNotFound" // The specified change set name or ID doesn't exit. To view valid change sets // for a stack, use the ListChangeSets action. // +// * ErrCodeInsufficientCapabilitiesException "InsufficientCapabilitiesException" +// The template contains resources with capabilities that were not specified +// in the Capabilities parameter. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ExecuteChangeSet func (c *CloudFormation) ExecuteChangeSet(input *ExecuteChangeSetInput) (*ExecuteChangeSetOutput, error) { req, out := c.ExecuteChangeSetRequest(input) err := req.Send() @@ -1059,6 +1077,7 @@ const opGetStackPolicy = "GetStackPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetStackPolicy func (c *CloudFormation) GetStackPolicyRequest(input *GetStackPolicyInput) (req *request.Request, output *GetStackPolicyOutput) { op := &request.Operation{ Name: opGetStackPolicy, @@ -1070,9 +1089,8 @@ func (c *CloudFormation) GetStackPolicyRequest(input *GetStackPolicyInput) (req input = &GetStackPolicyInput{} } - req = c.newRequest(op, input, output) output = &GetStackPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1087,6 +1105,7 @@ func (c *CloudFormation) GetStackPolicyRequest(input *GetStackPolicyInput) (req // // See the AWS API reference guide for AWS CloudFormation's // API operation GetStackPolicy for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetStackPolicy func (c *CloudFormation) GetStackPolicy(input *GetStackPolicyInput) (*GetStackPolicyOutput, error) { req, out := c.GetStackPolicyRequest(input) err := req.Send() @@ -1119,6 +1138,7 @@ const opGetTemplate = "GetTemplate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplate func (c *CloudFormation) GetTemplateRequest(input *GetTemplateInput) (req *request.Request, output *GetTemplateOutput) { op := &request.Operation{ Name: opGetTemplate, @@ -1130,9 +1150,8 @@ func (c *CloudFormation) GetTemplateRequest(input *GetTemplateInput) (req *reque input = &GetTemplateInput{} } - req = c.newRequest(op, input, output) output = &GetTemplateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1144,7 +1163,7 @@ func (c *CloudFormation) GetTemplateRequest(input *GetTemplateInput) (req *reque // For deleted stacks, GetTemplate returns the template for up to 90 days after // the stack has been deleted. // -// If the template does not exist, a ValidationError is returned. +// If the template does not exist, a ValidationError is returned. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1152,6 +1171,13 @@ func (c *CloudFormation) GetTemplateRequest(input *GetTemplateInput) (req *reque // // See the AWS API reference guide for AWS CloudFormation's // API operation GetTemplate for usage and error information. +// +// Returned Error Codes: +// * ErrCodeChangeSetNotFoundException "ChangeSetNotFound" +// The specified change set name or ID doesn't exit. To view valid change sets +// for a stack, use the ListChangeSets action. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplate func (c *CloudFormation) GetTemplate(input *GetTemplateInput) (*GetTemplateOutput, error) { req, out := c.GetTemplateRequest(input) err := req.Send() @@ -1184,6 +1210,7 @@ const opGetTemplateSummary = "GetTemplateSummary" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplateSummary func (c *CloudFormation) GetTemplateSummaryRequest(input *GetTemplateSummaryInput) (req *request.Request, output *GetTemplateSummaryOutput) { op := &request.Operation{ Name: opGetTemplateSummary, @@ -1195,9 +1222,8 @@ func (c *CloudFormation) GetTemplateSummaryRequest(input *GetTemplateSummaryInpu input = &GetTemplateSummaryInput{} } - req = c.newRequest(op, input, output) output = &GetTemplateSummaryOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1210,9 +1236,9 @@ func (c *CloudFormation) GetTemplateSummaryRequest(input *GetTemplateSummaryInpu // You can use the GetTemplateSummary action when you submit a template, or // you can get template information for a running or deleted stack. // -// For deleted stacks, GetTemplateSummary returns the template information -// for up to 90 days after the stack has been deleted. If the template does -// not exist, a ValidationError is returned. +// For deleted stacks, GetTemplateSummary returns the template information for +// up to 90 days after the stack has been deleted. If the template does not +// exist, a ValidationError is returned. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1220,6 +1246,7 @@ func (c *CloudFormation) GetTemplateSummaryRequest(input *GetTemplateSummaryInpu // // See the AWS API reference guide for AWS CloudFormation's // API operation GetTemplateSummary for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplateSummary func (c *CloudFormation) GetTemplateSummary(input *GetTemplateSummaryInput) (*GetTemplateSummaryOutput, error) { req, out := c.GetTemplateSummaryRequest(input) err := req.Send() @@ -1252,6 +1279,7 @@ const opListChangeSets = "ListChangeSets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListChangeSets func (c *CloudFormation) ListChangeSetsRequest(input *ListChangeSetsInput) (req *request.Request, output *ListChangeSetsOutput) { op := &request.Operation{ Name: opListChangeSets, @@ -1263,9 +1291,8 @@ func (c *CloudFormation) ListChangeSetsRequest(input *ListChangeSetsInput) (req input = &ListChangeSetsInput{} } - req = c.newRequest(op, input, output) output = &ListChangeSetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1281,12 +1308,145 @@ func (c *CloudFormation) ListChangeSetsRequest(input *ListChangeSetsInput) (req // // See the AWS API reference guide for AWS CloudFormation's // API operation ListChangeSets for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListChangeSets func (c *CloudFormation) ListChangeSets(input *ListChangeSetsInput) (*ListChangeSetsOutput, error) { req, out := c.ListChangeSetsRequest(input) err := req.Send() return out, err } +const opListExports = "ListExports" + +// ListExportsRequest generates a "aws/request.Request" representing the +// client's request for the ListExports operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListExports for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListExports method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListExportsRequest method. +// req, resp := client.ListExportsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListExports +func (c *CloudFormation) ListExportsRequest(input *ListExportsInput) (req *request.Request, output *ListExportsOutput) { + op := &request.Operation{ + Name: opListExports, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListExportsInput{} + } + + output = &ListExportsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListExports API operation for AWS CloudFormation. +// +// Lists all exported output values in the account and region in which you call +// this action. Use this action to see the exported output values that you can +// import into other stacks. To import values, use the Fn::ImportValue (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html) +// function. +// +// For more information, see AWS CloudFormation Export Stack Output Values +// (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-exports.html). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation ListExports for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListExports +func (c *CloudFormation) ListExports(input *ListExportsInput) (*ListExportsOutput, error) { + req, out := c.ListExportsRequest(input) + err := req.Send() + return out, err +} + +const opListImports = "ListImports" + +// ListImportsRequest generates a "aws/request.Request" representing the +// client's request for the ListImports operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListImports for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListImports method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListImportsRequest method. +// req, resp := client.ListImportsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListImports +func (c *CloudFormation) ListImportsRequest(input *ListImportsInput) (req *request.Request, output *ListImportsOutput) { + op := &request.Operation{ + Name: opListImports, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListImportsInput{} + } + + output = &ListImportsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListImports API operation for AWS CloudFormation. +// +// Lists all stacks that are importing an exported output value. To modify or +// remove an exported output value, first use this action to see which stacks +// are using it. To see the exported output values in your account, see ListExports. +// +// For more information about importing an exported output value, see the Fn::ImportValue +// (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html) +// function. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation ListImports for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListImports +func (c *CloudFormation) ListImports(input *ListImportsInput) (*ListImportsOutput, error) { + req, out := c.ListImportsRequest(input) + err := req.Send() + return out, err +} + const opListStackResources = "ListStackResources" // ListStackResourcesRequest generates a "aws/request.Request" representing the @@ -1313,6 +1473,7 @@ const opListStackResources = "ListStackResources" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackResources func (c *CloudFormation) ListStackResourcesRequest(input *ListStackResourcesInput) (req *request.Request, output *ListStackResourcesOutput) { op := &request.Operation{ Name: opListStackResources, @@ -1330,9 +1491,8 @@ func (c *CloudFormation) ListStackResourcesRequest(input *ListStackResourcesInpu input = &ListStackResourcesInput{} } - req = c.newRequest(op, input, output) output = &ListStackResourcesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1340,8 +1500,8 @@ func (c *CloudFormation) ListStackResourcesRequest(input *ListStackResourcesInpu // // Returns descriptions of all resources of the specified stack. // -// For deleted stacks, ListStackResources returns resource information for -// up to 90 days after the stack has been deleted. +// For deleted stacks, ListStackResources returns resource information for up +// to 90 days after the stack has been deleted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1349,6 +1509,7 @@ func (c *CloudFormation) ListStackResourcesRequest(input *ListStackResourcesInpu // // See the AWS API reference guide for AWS CloudFormation's // API operation ListStackResources for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackResources func (c *CloudFormation) ListStackResources(input *ListStackResourcesInput) (*ListStackResourcesOutput, error) { req, out := c.ListStackResourcesRequest(input) err := req.Send() @@ -1406,6 +1567,7 @@ const opListStacks = "ListStacks" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks func (c *CloudFormation) ListStacksRequest(input *ListStacksInput) (req *request.Request, output *ListStacksOutput) { op := &request.Operation{ Name: opListStacks, @@ -1423,9 +1585,8 @@ func (c *CloudFormation) ListStacksRequest(input *ListStacksInput) (req *request input = &ListStacksInput{} } - req = c.newRequest(op, input, output) output = &ListStacksOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1443,6 +1604,7 @@ func (c *CloudFormation) ListStacksRequest(input *ListStacksInput) (req *request // // See the AWS API reference guide for AWS CloudFormation's // API operation ListStacks for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks func (c *CloudFormation) ListStacks(input *ListStacksInput) (*ListStacksOutput, error) { req, out := c.ListStacksRequest(input) err := req.Send() @@ -1500,6 +1662,7 @@ const opSetStackPolicy = "SetStackPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetStackPolicy func (c *CloudFormation) SetStackPolicyRequest(input *SetStackPolicyInput) (req *request.Request, output *SetStackPolicyOutput) { op := &request.Operation{ Name: opSetStackPolicy, @@ -1511,11 +1674,10 @@ func (c *CloudFormation) SetStackPolicyRequest(input *SetStackPolicyInput) (req input = &SetStackPolicyInput{} } + output = &SetStackPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetStackPolicyOutput{} - req.Data = output return } @@ -1529,6 +1691,7 @@ func (c *CloudFormation) SetStackPolicyRequest(input *SetStackPolicyInput) (req // // See the AWS API reference guide for AWS CloudFormation's // API operation SetStackPolicy for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetStackPolicy func (c *CloudFormation) SetStackPolicy(input *SetStackPolicyInput) (*SetStackPolicyOutput, error) { req, out := c.SetStackPolicyRequest(input) err := req.Send() @@ -1561,6 +1724,7 @@ const opSignalResource = "SignalResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SignalResource func (c *CloudFormation) SignalResourceRequest(input *SignalResourceInput) (req *request.Request, output *SignalResourceOutput) { op := &request.Operation{ Name: opSignalResource, @@ -1572,11 +1736,10 @@ func (c *CloudFormation) SignalResourceRequest(input *SignalResourceInput) (req input = &SignalResourceInput{} } + output = &SignalResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SignalResourceOutput{} - req.Data = output return } @@ -1595,6 +1758,7 @@ func (c *CloudFormation) SignalResourceRequest(input *SignalResourceInput) (req // // See the AWS API reference guide for AWS CloudFormation's // API operation SignalResource for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SignalResource func (c *CloudFormation) SignalResource(input *SignalResourceInput) (*SignalResourceOutput, error) { req, out := c.SignalResourceRequest(input) err := req.Send() @@ -1627,6 +1791,7 @@ const opUpdateStack = "UpdateStack" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStack func (c *CloudFormation) UpdateStackRequest(input *UpdateStackInput) (req *request.Request, output *UpdateStackOutput) { op := &request.Operation{ Name: opUpdateStack, @@ -1638,9 +1803,8 @@ func (c *CloudFormation) UpdateStackRequest(input *UpdateStackInput) (req *reque input = &UpdateStackInput{} } - req = c.newRequest(op, input, output) output = &UpdateStackOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1664,10 +1828,11 @@ func (c *CloudFormation) UpdateStackRequest(input *UpdateStackInput) (req *reque // API operation UpdateStack for usage and error information. // // Returned Error Codes: -// * InsufficientCapabilitiesException +// * ErrCodeInsufficientCapabilitiesException "InsufficientCapabilitiesException" // The template contains resources with capabilities that were not specified // in the Capabilities parameter. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStack func (c *CloudFormation) UpdateStack(input *UpdateStackInput) (*UpdateStackOutput, error) { req, out := c.UpdateStackRequest(input) err := req.Send() @@ -1700,6 +1865,7 @@ const opValidateTemplate = "ValidateTemplate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate func (c *CloudFormation) ValidateTemplateRequest(input *ValidateTemplateInput) (req *request.Request, output *ValidateTemplateOutput) { op := &request.Operation{ Name: opValidateTemplate, @@ -1711,9 +1877,8 @@ func (c *CloudFormation) ValidateTemplateRequest(input *ValidateTemplateInput) ( input = &ValidateTemplateInput{} } - req = c.newRequest(op, input, output) output = &ValidateTemplateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1730,6 +1895,7 @@ func (c *CloudFormation) ValidateTemplateRequest(input *ValidateTemplateInput) ( // // See the AWS API reference guide for AWS CloudFormation's // API operation ValidateTemplate for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate func (c *CloudFormation) ValidateTemplate(input *ValidateTemplateInput) (*ValidateTemplateOutput, error) { req, out := c.ValidateTemplateRequest(input) err := req.Send() @@ -1737,6 +1903,7 @@ func (c *CloudFormation) ValidateTemplate(input *ValidateTemplateInput) (*Valida } // The AccountLimit data type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/AccountLimit type AccountLimit struct { _ struct{} `type:"structure"` @@ -1757,7 +1924,20 @@ func (s AccountLimit) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *AccountLimit) SetName(v string) *AccountLimit { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *AccountLimit) SetValue(v int64) *AccountLimit { + s.Value = &v + return s +} + // The input for the CancelUpdateStack action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CancelUpdateStackInput type CancelUpdateStackInput struct { _ struct{} `type:"structure"` @@ -1790,6 +1970,13 @@ func (s *CancelUpdateStackInput) Validate() error { return nil } +// SetStackName sets the StackName field's value. +func (s *CancelUpdateStackInput) SetStackName(v string) *CancelUpdateStackInput { + s.StackName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CancelUpdateStackOutput type CancelUpdateStackOutput struct { _ struct{} `type:"structure"` } @@ -1806,6 +1993,7 @@ func (s CancelUpdateStackOutput) GoString() string { // The Change structure describes the changes AWS CloudFormation will perform // if you execute the change set. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/Change type Change struct { _ struct{} `type:"structure"` @@ -1828,8 +2016,21 @@ func (s Change) GoString() string { return s.String() } +// SetResourceChange sets the ResourceChange field's value. +func (s *Change) SetResourceChange(v *ResourceChange) *Change { + s.ResourceChange = v + return s +} + +// SetType sets the Type field's value. +func (s *Change) SetType(v string) *Change { + s.Type = &v + return s +} + // The ChangeSetSummary structure describes a change set, its status, and the // stack with which it's associated. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ChangeSetSummary type ChangeSetSummary struct { _ struct{} `type:"structure"` @@ -1877,10 +2078,93 @@ func (s ChangeSetSummary) GoString() string { return s.String() } +// SetChangeSetId sets the ChangeSetId field's value. +func (s *ChangeSetSummary) SetChangeSetId(v string) *ChangeSetSummary { + s.ChangeSetId = &v + return s +} + +// SetChangeSetName sets the ChangeSetName field's value. +func (s *ChangeSetSummary) SetChangeSetName(v string) *ChangeSetSummary { + s.ChangeSetName = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *ChangeSetSummary) SetCreationTime(v time.Time) *ChangeSetSummary { + s.CreationTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ChangeSetSummary) SetDescription(v string) *ChangeSetSummary { + s.Description = &v + return s +} + +// SetExecutionStatus sets the ExecutionStatus field's value. +func (s *ChangeSetSummary) SetExecutionStatus(v string) *ChangeSetSummary { + s.ExecutionStatus = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *ChangeSetSummary) SetStackId(v string) *ChangeSetSummary { + s.StackId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *ChangeSetSummary) SetStackName(v string) *ChangeSetSummary { + s.StackName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ChangeSetSummary) SetStatus(v string) *ChangeSetSummary { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *ChangeSetSummary) SetStatusReason(v string) *ChangeSetSummary { + s.StatusReason = &v + return s +} + // The input for the ContinueUpdateRollback action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ContinueUpdateRollbackInput type ContinueUpdateRollbackInput struct { _ struct{} `type:"structure"` + // A list of the logical IDs of the resources that AWS CloudFormation skips + // during the continue update rollback operation. You can specify only resources + // that are in the UPDATE_FAILED state because a rollback failed. You can't + // specify resources that are in the UPDATE_FAILED state for other reasons, + // for example, because an update was canceled. To check why a resource update + // failed, use the DescribeStackResources action, and view the resource status + // reason. + // + // Specify this property to skip rolling back resources that AWS CloudFormation + // can't successfully roll back. We recommend that you troubleshoot (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed) + // resources before skipping them. AWS CloudFormation sets the status of the + // specified resources to UPDATE_COMPLETE and continues to roll back the stack. + // After the rollback is complete, the state of the skipped resources will be + // inconsistent with the state of the resources in the stack template. Before + // performing another stack update, you must update the stack or resources to + // be consistent with each other. If you don't, subsequent stack updates might + // fail, and the stack will become unrecoverable. + // + // Specify the minimum number of resources required to successfully roll back + // your stack. For example, a failed resource update might cause dependent resources + // to fail. In this case, it might not be necessary to skip the dependent resources. + // + // To specify resources in a nested stack, use the following format: NestedStackName.ResourceLogicalID. + // You can specify a nested stack resource (the logical ID of an AWS::CloudFormation::Stack + // resource) only if it's in one of the following states: DELETE_IN_PROGRESS, + // DELETE_COMPLETE, or DELETE_FAILED. + ResourcesToSkip []*string `type:"list"` + // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) // role that AWS CloudFormation assumes to roll back the stack. AWS CloudFormation // uses the role's credentials to make calls on your behalf. AWS CloudFormation @@ -1889,14 +2173,19 @@ type ContinueUpdateRollbackInput struct { // role even if the users don't have permission to pass it. Ensure that the // role grants least privilege. // - // If you don't specify a value, AWS CloudFormation uses the role that was - // previously associated with the stack. If no role is available, AWS CloudFormation - // uses a temporary session that is generated from your user credentials. + // If you don't specify a value, AWS CloudFormation uses the role that was previously + // associated with the stack. If no role is available, AWS CloudFormation uses + // a temporary session that is generated from your user credentials. RoleARN *string `min:"20" type:"string"` // The name or the unique ID of the stack that you want to continue rolling // back. // + // Don't specify the name of a nested stack (a stack that was created by using + // the AWS::CloudFormation::Stack resource). Instead, use this operation on + // the parent stack (the stack that contains the AWS::CloudFormation::Stack + // resource). + // // StackName is a required field StackName *string `min:"1" type:"string" required:"true"` } @@ -1930,7 +2219,26 @@ func (s *ContinueUpdateRollbackInput) Validate() error { return nil } +// SetResourcesToSkip sets the ResourcesToSkip field's value. +func (s *ContinueUpdateRollbackInput) SetResourcesToSkip(v []*string) *ContinueUpdateRollbackInput { + s.ResourcesToSkip = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *ContinueUpdateRollbackInput) SetRoleARN(v string) *ContinueUpdateRollbackInput { + s.RoleARN = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *ContinueUpdateRollbackInput) SetStackName(v string) *ContinueUpdateRollbackInput { + s.StackName = &v + return s +} + // The output for a ContinueUpdateRollback action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ContinueUpdateRollbackOutput type ContinueUpdateRollbackOutput struct { _ struct{} `type:"structure"` } @@ -1946,6 +2254,7 @@ func (s ContinueUpdateRollbackOutput) GoString() string { } // The input for the CreateChangeSet action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSetInput type CreateChangeSetInput struct { _ struct{} `type:"structure"` @@ -1985,6 +2294,19 @@ type CreateChangeSetInput struct { // ChangeSetName is a required field ChangeSetName *string `min:"1" type:"string" required:"true"` + // The type of change set operation. To create a change set for a new stack, + // specify CREATE. To create a change set for an existing stack, specify UPDATE. + // + // If you create a change set for a new stack, AWS Cloudformation creates a + // stack with a unique stack ID, but no template or resources. The stack will + // be in the REVIEW_IN_PROGRESS (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-describing-stacks.html#d0e11995) + // state until you execute the change set. + // + // By default, AWS CloudFormation specifies UPDATE. You can't use the UPDATE + // type to create a change set for a new stack or the CREATE type to create + // a change set for an existing stack. + ChangeSetType *string `type:"string" enum:"ChangeSetType"` + // A unique identifier for this CreateChangeSet request. Specify this token // if you plan to retry requests so that AWS CloudFormation knows that you're // not attempting to create another change set with the same name. You might @@ -2020,14 +2342,14 @@ type CreateChangeSetInput struct { // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) // role that AWS CloudFormation assumes when executing the change set. AWS CloudFormation // uses the role's credentials to make calls on your behalf. AWS CloudFormation - // always uses this role for all future operations on the stack. As long as - // users have permission to operate on the stack, AWS CloudFormation uses this - // role even if the users don't have permission to pass it. Ensure that the - // role grants least privilege. + // uses this role for all future operations on the stack. As long as users have + // permission to operate on the stack, AWS CloudFormation uses this role even + // if the users don't have permission to pass it. Ensure that the role grants + // least privilege. // - // If you don't specify a value, AWS CloudFormation uses the role that was - // previously associated with the stack. If no role is available, AWS CloudFormation - // uses a temporary session that is generated from your user credentials. + // If you don't specify a value, AWS CloudFormation uses the role that was previously + // associated with the stack. If no role is available, AWS CloudFormation uses + // a temporary session that is generated from your user credentials. RoleARN *string `min:"20" type:"string"` // The name or the unique ID of the stack for which you are creating a change @@ -2110,12 +2432,100 @@ func (s *CreateChangeSetInput) Validate() error { return nil } +// SetCapabilities sets the Capabilities field's value. +func (s *CreateChangeSetInput) SetCapabilities(v []*string) *CreateChangeSetInput { + s.Capabilities = v + return s +} + +// SetChangeSetName sets the ChangeSetName field's value. +func (s *CreateChangeSetInput) SetChangeSetName(v string) *CreateChangeSetInput { + s.ChangeSetName = &v + return s +} + +// SetChangeSetType sets the ChangeSetType field's value. +func (s *CreateChangeSetInput) SetChangeSetType(v string) *CreateChangeSetInput { + s.ChangeSetType = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateChangeSetInput) SetClientToken(v string) *CreateChangeSetInput { + s.ClientToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateChangeSetInput) SetDescription(v string) *CreateChangeSetInput { + s.Description = &v + return s +} + +// SetNotificationARNs sets the NotificationARNs field's value. +func (s *CreateChangeSetInput) SetNotificationARNs(v []*string) *CreateChangeSetInput { + s.NotificationARNs = v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *CreateChangeSetInput) SetParameters(v []*Parameter) *CreateChangeSetInput { + s.Parameters = v + return s +} + +// SetResourceTypes sets the ResourceTypes field's value. +func (s *CreateChangeSetInput) SetResourceTypes(v []*string) *CreateChangeSetInput { + s.ResourceTypes = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *CreateChangeSetInput) SetRoleARN(v string) *CreateChangeSetInput { + s.RoleARN = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *CreateChangeSetInput) SetStackName(v string) *CreateChangeSetInput { + s.StackName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateChangeSetInput) SetTags(v []*Tag) *CreateChangeSetInput { + s.Tags = v + return s +} + +// SetTemplateBody sets the TemplateBody field's value. +func (s *CreateChangeSetInput) SetTemplateBody(v string) *CreateChangeSetInput { + s.TemplateBody = &v + return s +} + +// SetTemplateURL sets the TemplateURL field's value. +func (s *CreateChangeSetInput) SetTemplateURL(v string) *CreateChangeSetInput { + s.TemplateURL = &v + return s +} + +// SetUsePreviousTemplate sets the UsePreviousTemplate field's value. +func (s *CreateChangeSetInput) SetUsePreviousTemplate(v bool) *CreateChangeSetInput { + s.UsePreviousTemplate = &v + return s +} + // The output for the CreateChangeSet action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSetOutput type CreateChangeSetOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the change set. Id *string `min:"1" type:"string"` + + // The unique ID of the stack. + StackId *string `type:"string"` } // String returns the string representation @@ -2128,7 +2538,20 @@ func (s CreateChangeSetOutput) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *CreateChangeSetOutput) SetId(v string) *CreateChangeSetOutput { + s.Id = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *CreateChangeSetOutput) SetStackId(v string) *CreateChangeSetOutput { + s.StackId = &v + return s +} + // The input for CreateStack action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackInput type CreateStackInput struct { _ struct{} `type:"structure"` @@ -2185,9 +2608,9 @@ type CreateStackInput struct { // create stack action, such as AWS::EC2::Instance, AWS::EC2::*, or Custom::MyCustomInstance. // Use the following syntax to describe template resource types: AWS::* (for // all AWS resource), Custom::* (for all custom resources), Custom::logical_ID - // (for a specific custom resource), AWS::service_name::* (for all resources + // (for a specific custom resource), AWS::service_name::* (for all resources // of a particular AWS service), and AWS::service_name::resource_logical_ID - // (for a specific AWS resource). + // (for a specific AWS resource). // // If the list of resource types doesn't include a resource that you're creating, // the stack creation fails. By default, AWS CloudFormation grants permissions @@ -2205,16 +2628,16 @@ type CreateStackInput struct { // role even if the users don't have permission to pass it. Ensure that the // role grants least privilege. // - // If you don't specify a value, AWS CloudFormation uses the role that was - // previously associated with the stack. If no role is available, AWS CloudFormation - // uses a temporary session that is generated from your user credentials. + // If you don't specify a value, AWS CloudFormation uses the role that was previously + // associated with the stack. If no role is available, AWS CloudFormation uses + // a temporary session that is generated from your user credentials. RoleARN *string `min:"20" type:"string"` // The name that is associated with the stack. The name must be unique in the // region in which you are creating the stack. // - // A stack name can contain only alphanumeric characters (case sensitive) - // and hyphens. It must start with an alphabetic character and cannot be longer + // A stack name can contain only alphanumeric characters (case sensitive) and + // hyphens. It must start with an alphabetic character and cannot be longer // than 128 characters. // // StackName is a required field @@ -2302,7 +2725,92 @@ func (s *CreateStackInput) Validate() error { return nil } +// SetCapabilities sets the Capabilities field's value. +func (s *CreateStackInput) SetCapabilities(v []*string) *CreateStackInput { + s.Capabilities = v + return s +} + +// SetDisableRollback sets the DisableRollback field's value. +func (s *CreateStackInput) SetDisableRollback(v bool) *CreateStackInput { + s.DisableRollback = &v + return s +} + +// SetNotificationARNs sets the NotificationARNs field's value. +func (s *CreateStackInput) SetNotificationARNs(v []*string) *CreateStackInput { + s.NotificationARNs = v + return s +} + +// SetOnFailure sets the OnFailure field's value. +func (s *CreateStackInput) SetOnFailure(v string) *CreateStackInput { + s.OnFailure = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *CreateStackInput) SetParameters(v []*Parameter) *CreateStackInput { + s.Parameters = v + return s +} + +// SetResourceTypes sets the ResourceTypes field's value. +func (s *CreateStackInput) SetResourceTypes(v []*string) *CreateStackInput { + s.ResourceTypes = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *CreateStackInput) SetRoleARN(v string) *CreateStackInput { + s.RoleARN = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *CreateStackInput) SetStackName(v string) *CreateStackInput { + s.StackName = &v + return s +} + +// SetStackPolicyBody sets the StackPolicyBody field's value. +func (s *CreateStackInput) SetStackPolicyBody(v string) *CreateStackInput { + s.StackPolicyBody = &v + return s +} + +// SetStackPolicyURL sets the StackPolicyURL field's value. +func (s *CreateStackInput) SetStackPolicyURL(v string) *CreateStackInput { + s.StackPolicyURL = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateStackInput) SetTags(v []*Tag) *CreateStackInput { + s.Tags = v + return s +} + +// SetTemplateBody sets the TemplateBody field's value. +func (s *CreateStackInput) SetTemplateBody(v string) *CreateStackInput { + s.TemplateBody = &v + return s +} + +// SetTemplateURL sets the TemplateURL field's value. +func (s *CreateStackInput) SetTemplateURL(v string) *CreateStackInput { + s.TemplateURL = &v + return s +} + +// SetTimeoutInMinutes sets the TimeoutInMinutes field's value. +func (s *CreateStackInput) SetTimeoutInMinutes(v int64) *CreateStackInput { + s.TimeoutInMinutes = &v + return s +} + // The output for a CreateStack action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackOutput type CreateStackOutput struct { _ struct{} `type:"structure"` @@ -2320,7 +2828,14 @@ func (s CreateStackOutput) GoString() string { return s.String() } +// SetStackId sets the StackId field's value. +func (s *CreateStackOutput) SetStackId(v string) *CreateStackOutput { + s.StackId = &v + return s +} + // The input for the DeleteChangeSet action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteChangeSetInput type DeleteChangeSetInput struct { _ struct{} `type:"structure"` @@ -2364,8 +2879,21 @@ func (s *DeleteChangeSetInput) Validate() error { return nil } -// The output for the DeleteChangeSet action. -type DeleteChangeSetOutput struct { +// SetChangeSetName sets the ChangeSetName field's value. +func (s *DeleteChangeSetInput) SetChangeSetName(v string) *DeleteChangeSetInput { + s.ChangeSetName = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DeleteChangeSetInput) SetStackName(v string) *DeleteChangeSetInput { + s.StackName = &v + return s +} + +// The output for the DeleteChangeSet action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteChangeSetOutput +type DeleteChangeSetOutput struct { _ struct{} `type:"structure"` } @@ -2380,6 +2908,7 @@ func (s DeleteChangeSetOutput) GoString() string { } // The input for DeleteStack action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackInput type DeleteStackInput struct { _ struct{} `type:"structure"` @@ -2395,9 +2924,9 @@ type DeleteStackInput struct { // role that AWS CloudFormation assumes to delete the stack. AWS CloudFormation // uses the role's credentials to make calls on your behalf. // - // If you don't specify a value, AWS CloudFormation uses the role that was - // previously associated with the stack. If no role is available, AWS CloudFormation - // uses a temporary session that is generated from your user credentials. + // If you don't specify a value, AWS CloudFormation uses the role that was previously + // associated with the stack. If no role is available, AWS CloudFormation uses + // a temporary session that is generated from your user credentials. RoleARN *string `min:"20" type:"string"` // The name or the unique stack ID that is associated with the stack. @@ -2432,6 +2961,25 @@ func (s *DeleteStackInput) Validate() error { return nil } +// SetRetainResources sets the RetainResources field's value. +func (s *DeleteStackInput) SetRetainResources(v []*string) *DeleteStackInput { + s.RetainResources = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *DeleteStackInput) SetRoleARN(v string) *DeleteStackInput { + s.RoleARN = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DeleteStackInput) SetStackName(v string) *DeleteStackInput { + s.StackName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackOutput type DeleteStackOutput struct { _ struct{} `type:"structure"` } @@ -2447,6 +2995,7 @@ func (s DeleteStackOutput) GoString() string { } // The input for the DescribeAccountLimits action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeAccountLimitsInput type DescribeAccountLimitsInput struct { _ struct{} `type:"structure"` @@ -2477,7 +3026,14 @@ func (s *DescribeAccountLimitsInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *DescribeAccountLimitsInput) SetNextToken(v string) *DescribeAccountLimitsInput { + s.NextToken = &v + return s +} + // The output for the DescribeAccountLimits action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeAccountLimitsOutput type DescribeAccountLimitsOutput struct { _ struct{} `type:"structure"` @@ -2500,7 +3056,20 @@ func (s DescribeAccountLimitsOutput) GoString() string { return s.String() } +// SetAccountLimits sets the AccountLimits field's value. +func (s *DescribeAccountLimitsOutput) SetAccountLimits(v []*AccountLimit) *DescribeAccountLimitsOutput { + s.AccountLimits = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAccountLimitsOutput) SetNextToken(v string) *DescribeAccountLimitsOutput { + s.NextToken = &v + return s +} + // The input for the DescribeChangeSet action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSetInput type DescribeChangeSetInput struct { _ struct{} `type:"structure"` @@ -2551,7 +3120,26 @@ func (s *DescribeChangeSetInput) Validate() error { return nil } +// SetChangeSetName sets the ChangeSetName field's value. +func (s *DescribeChangeSetInput) SetChangeSetName(v string) *DescribeChangeSetInput { + s.ChangeSetName = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeChangeSetInput) SetNextToken(v string) *DescribeChangeSetInput { + s.NextToken = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DescribeChangeSetInput) SetStackName(v string) *DescribeChangeSetInput { + s.StackName = &v + return s +} + // The output for the DescribeChangeSet action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSetOutput type DescribeChangeSetOutput struct { _ struct{} `type:"structure"` @@ -2625,7 +3213,98 @@ func (s DescribeChangeSetOutput) GoString() string { return s.String() } +// SetCapabilities sets the Capabilities field's value. +func (s *DescribeChangeSetOutput) SetCapabilities(v []*string) *DescribeChangeSetOutput { + s.Capabilities = v + return s +} + +// SetChangeSetId sets the ChangeSetId field's value. +func (s *DescribeChangeSetOutput) SetChangeSetId(v string) *DescribeChangeSetOutput { + s.ChangeSetId = &v + return s +} + +// SetChangeSetName sets the ChangeSetName field's value. +func (s *DescribeChangeSetOutput) SetChangeSetName(v string) *DescribeChangeSetOutput { + s.ChangeSetName = &v + return s +} + +// SetChanges sets the Changes field's value. +func (s *DescribeChangeSetOutput) SetChanges(v []*Change) *DescribeChangeSetOutput { + s.Changes = v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeChangeSetOutput) SetCreationTime(v time.Time) *DescribeChangeSetOutput { + s.CreationTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DescribeChangeSetOutput) SetDescription(v string) *DescribeChangeSetOutput { + s.Description = &v + return s +} + +// SetExecutionStatus sets the ExecutionStatus field's value. +func (s *DescribeChangeSetOutput) SetExecutionStatus(v string) *DescribeChangeSetOutput { + s.ExecutionStatus = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeChangeSetOutput) SetNextToken(v string) *DescribeChangeSetOutput { + s.NextToken = &v + return s +} + +// SetNotificationARNs sets the NotificationARNs field's value. +func (s *DescribeChangeSetOutput) SetNotificationARNs(v []*string) *DescribeChangeSetOutput { + s.NotificationARNs = v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *DescribeChangeSetOutput) SetParameters(v []*Parameter) *DescribeChangeSetOutput { + s.Parameters = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeChangeSetOutput) SetStackId(v string) *DescribeChangeSetOutput { + s.StackId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DescribeChangeSetOutput) SetStackName(v string) *DescribeChangeSetOutput { + s.StackName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeChangeSetOutput) SetStatus(v string) *DescribeChangeSetOutput { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *DescribeChangeSetOutput) SetStatusReason(v string) *DescribeChangeSetOutput { + s.StatusReason = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *DescribeChangeSetOutput) SetTags(v []*Tag) *DescribeChangeSetOutput { + s.Tags = v + return s +} + // The input for DescribeStackEvents action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackEventsInput type DescribeStackEventsInput struct { _ struct{} `type:"structure"` @@ -2635,12 +3314,12 @@ type DescribeStackEventsInput struct { // The name or the unique stack ID that is associated with the stack, which // are not always interchangeable: // - // Running stacks: You can specify either the stack's name or its unique - // stack ID. + // * Running stacks: You can specify either the stack's name or its unique + // stack ID. // - // Deleted stacks: You must specify the unique stack ID. + // * Deleted stacks: You must specify the unique stack ID. // - // Default: There is no default value. + // Default: There is no default value. StackName *string `type:"string"` } @@ -2667,7 +3346,20 @@ func (s *DescribeStackEventsInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *DescribeStackEventsInput) SetNextToken(v string) *DescribeStackEventsInput { + s.NextToken = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DescribeStackEventsInput) SetStackName(v string) *DescribeStackEventsInput { + s.StackName = &v + return s +} + // The output for a DescribeStackEvents action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackEventsOutput type DescribeStackEventsOutput struct { _ struct{} `type:"structure"` @@ -2689,7 +3381,20 @@ func (s DescribeStackEventsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeStackEventsOutput) SetNextToken(v string) *DescribeStackEventsOutput { + s.NextToken = &v + return s +} + +// SetStackEvents sets the StackEvents field's value. +func (s *DescribeStackEventsOutput) SetStackEvents(v []*StackEvent) *DescribeStackEventsOutput { + s.StackEvents = v + return s +} + // The input for DescribeStackResource action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResourceInput type DescribeStackResourceInput struct { _ struct{} `type:"structure"` @@ -2703,12 +3408,12 @@ type DescribeStackResourceInput struct { // The name or the unique stack ID that is associated with the stack, which // are not always interchangeable: // - // Running stacks: You can specify either the stack's name or its unique - // stack ID. + // * Running stacks: You can specify either the stack's name or its unique + // stack ID. // - // Deleted stacks: You must specify the unique stack ID. + // * Deleted stacks: You must specify the unique stack ID. // - // Default: There is no default value. + // Default: There is no default value. // // StackName is a required field StackName *string `type:"string" required:"true"` @@ -2740,7 +3445,20 @@ func (s *DescribeStackResourceInput) Validate() error { return nil } +// SetLogicalResourceId sets the LogicalResourceId field's value. +func (s *DescribeStackResourceInput) SetLogicalResourceId(v string) *DescribeStackResourceInput { + s.LogicalResourceId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DescribeStackResourceInput) SetStackName(v string) *DescribeStackResourceInput { + s.StackName = &v + return s +} + // The output for a DescribeStackResource action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResourceOutput type DescribeStackResourceOutput struct { _ struct{} `type:"structure"` @@ -2759,7 +3477,14 @@ func (s DescribeStackResourceOutput) GoString() string { return s.String() } +// SetStackResourceDetail sets the StackResourceDetail field's value. +func (s *DescribeStackResourceOutput) SetStackResourceDetail(v *StackResourceDetail) *DescribeStackResourceOutput { + s.StackResourceDetail = v + return s +} + // The input for DescribeStackResources action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResourcesInput type DescribeStackResourcesInput struct { _ struct{} `type:"structure"` @@ -2785,12 +3510,12 @@ type DescribeStackResourcesInput struct { // The name or the unique stack ID that is associated with the stack, which // are not always interchangeable: // - // Running stacks: You can specify either the stack's name or its unique - // stack ID. + // * Running stacks: You can specify either the stack's name or its unique + // stack ID. // - // Deleted stacks: You must specify the unique stack ID. + // * Deleted stacks: You must specify the unique stack ID. // - // Default: There is no default value. + // Default: There is no default value. // // Required: Conditional. If you do not specify StackName, you must specify // PhysicalResourceId. @@ -2807,7 +3532,26 @@ func (s DescribeStackResourcesInput) GoString() string { return s.String() } +// SetLogicalResourceId sets the LogicalResourceId field's value. +func (s *DescribeStackResourcesInput) SetLogicalResourceId(v string) *DescribeStackResourcesInput { + s.LogicalResourceId = &v + return s +} + +// SetPhysicalResourceId sets the PhysicalResourceId field's value. +func (s *DescribeStackResourcesInput) SetPhysicalResourceId(v string) *DescribeStackResourcesInput { + s.PhysicalResourceId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DescribeStackResourcesInput) SetStackName(v string) *DescribeStackResourcesInput { + s.StackName = &v + return s +} + // The output for a DescribeStackResources action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResourcesOutput type DescribeStackResourcesOutput struct { _ struct{} `type:"structure"` @@ -2825,7 +3569,14 @@ func (s DescribeStackResourcesOutput) GoString() string { return s.String() } +// SetStackResources sets the StackResources field's value. +func (s *DescribeStackResourcesOutput) SetStackResources(v []*StackResource) *DescribeStackResourcesOutput { + s.StackResources = v + return s +} + // The input for DescribeStacks action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacksInput type DescribeStacksInput struct { _ struct{} `type:"structure"` @@ -2835,12 +3586,12 @@ type DescribeStacksInput struct { // The name or the unique stack ID that is associated with the stack, which // are not always interchangeable: // - // Running stacks: You can specify either the stack's name or its unique - // stack ID. + // * Running stacks: You can specify either the stack's name or its unique + // stack ID. // - // Deleted stacks: You must specify the unique stack ID. + // * Deleted stacks: You must specify the unique stack ID. // - // Default: There is no default value. + // Default: There is no default value. StackName *string `type:"string"` } @@ -2867,7 +3618,20 @@ func (s *DescribeStacksInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *DescribeStacksInput) SetNextToken(v string) *DescribeStacksInput { + s.NextToken = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DescribeStacksInput) SetStackName(v string) *DescribeStacksInput { + s.StackName = &v + return s +} + // The output for a DescribeStacks action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacksOutput type DescribeStacksOutput struct { _ struct{} `type:"structure"` @@ -2889,7 +3653,20 @@ func (s DescribeStacksOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeStacksOutput) SetNextToken(v string) *DescribeStacksOutput { + s.NextToken = &v + return s +} + +// SetStacks sets the Stacks field's value. +func (s *DescribeStacksOutput) SetStacks(v []*Stack) *DescribeStacksOutput { + s.Stacks = v + return s +} + // The input for an EstimateTemplateCost action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/EstimateTemplateCostInput type EstimateTemplateCostInput struct { _ struct{} `type:"structure"` @@ -2941,7 +3718,26 @@ func (s *EstimateTemplateCostInput) Validate() error { return nil } +// SetParameters sets the Parameters field's value. +func (s *EstimateTemplateCostInput) SetParameters(v []*Parameter) *EstimateTemplateCostInput { + s.Parameters = v + return s +} + +// SetTemplateBody sets the TemplateBody field's value. +func (s *EstimateTemplateCostInput) SetTemplateBody(v string) *EstimateTemplateCostInput { + s.TemplateBody = &v + return s +} + +// SetTemplateURL sets the TemplateURL field's value. +func (s *EstimateTemplateCostInput) SetTemplateURL(v string) *EstimateTemplateCostInput { + s.TemplateURL = &v + return s +} + // The output for a EstimateTemplateCost action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/EstimateTemplateCostOutput type EstimateTemplateCostOutput struct { _ struct{} `type:"structure"` @@ -2960,7 +3756,14 @@ func (s EstimateTemplateCostOutput) GoString() string { return s.String() } +// SetUrl sets the Url field's value. +func (s *EstimateTemplateCostOutput) SetUrl(v string) *EstimateTemplateCostOutput { + s.Url = &v + return s +} + // The input for the ExecuteChangeSet action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ExecuteChangeSetInput type ExecuteChangeSetInput struct { _ struct{} `type:"structure"` @@ -3004,7 +3807,20 @@ func (s *ExecuteChangeSetInput) Validate() error { return nil } +// SetChangeSetName sets the ChangeSetName field's value. +func (s *ExecuteChangeSetInput) SetChangeSetName(v string) *ExecuteChangeSetInput { + s.ChangeSetName = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *ExecuteChangeSetInput) SetStackName(v string) *ExecuteChangeSetInput { + s.StackName = &v + return s +} + // The output for the ExecuteChangeSet action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ExecuteChangeSetOutput type ExecuteChangeSetOutput struct { _ struct{} `type:"structure"` } @@ -3019,7 +3835,54 @@ func (s ExecuteChangeSetOutput) GoString() string { return s.String() } +// The Export structure describes the exported output values for a stack. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/Export +type Export struct { + _ struct{} `type:"structure"` + + // The stack that contains the exported output name and value. + ExportingStackId *string `type:"string"` + + // The name of exported output value. Use this name and the Fn::ImportValue + // function to import the associated value into other stacks. The name is defined + // in the Export field in the associated stack's Outputs section. + Name *string `type:"string"` + + // The value of the exported output, such as a resource physical ID. This value + // is defined in the Export field in the associated stack's Outputs section. + Value *string `type:"string"` +} + +// String returns the string representation +func (s Export) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Export) GoString() string { + return s.String() +} + +// SetExportingStackId sets the ExportingStackId field's value. +func (s *Export) SetExportingStackId(v string) *Export { + s.ExportingStackId = &v + return s +} + +// SetName sets the Name field's value. +func (s *Export) SetName(v string) *Export { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Export) SetValue(v string) *Export { + s.Value = &v + return s +} + // The input for the GetStackPolicy action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetStackPolicyInput type GetStackPolicyInput struct { _ struct{} `type:"structure"` @@ -3053,7 +3916,14 @@ func (s *GetStackPolicyInput) Validate() error { return nil } +// SetStackName sets the StackName field's value. +func (s *GetStackPolicyInput) SetStackName(v string) *GetStackPolicyInput { + s.StackName = &v + return s +} + // The output for the GetStackPolicy action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetStackPolicyOutput type GetStackPolicyOutput struct { _ struct{} `type:"structure"` @@ -3073,22 +3943,41 @@ func (s GetStackPolicyOutput) GoString() string { return s.String() } +// SetStackPolicyBody sets the StackPolicyBody field's value. +func (s *GetStackPolicyOutput) SetStackPolicyBody(v string) *GetStackPolicyOutput { + s.StackPolicyBody = &v + return s +} + // The input for a GetTemplate action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplateInput type GetTemplateInput struct { _ struct{} `type:"structure"` + // The name or Amazon Resource Name (ARN) of a change set for which AWS CloudFormation + // returns the associated template. If you specify a name, you must also specify + // the StackName. + ChangeSetName *string `min:"1" type:"string"` + // The name or the unique stack ID that is associated with the stack, which // are not always interchangeable: // - // Running stacks: You can specify either the stack's name or its unique - // stack ID. + // * Running stacks: You can specify either the stack's name or its unique + // stack ID. // - // Deleted stacks: You must specify the unique stack ID. + // * Deleted stacks: You must specify the unique stack ID. // - // Default: There is no default value. + // Default: There is no default value. + StackName *string `type:"string"` + + // For templates that include transforms, the stage of the template that AWS + // CloudFormation returns. To get the user-submitted template, specify Original. + // To get the template after AWS CloudFormation has processed all transforms, + // specify Processed. // - // StackName is a required field - StackName *string `type:"string" required:"true"` + // If the template doesn't include transforms, Original and Processed return + // the same template. By default, AWS CloudFormation specifies Original. + TemplateStage *string `type:"string" enum:"TemplateStage"` } // String returns the string representation @@ -3104,8 +3993,8 @@ func (s GetTemplateInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *GetTemplateInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetTemplateInput"} - if s.StackName == nil { - invalidParams.Add(request.NewErrParamRequired("StackName")) + if s.ChangeSetName != nil && len(*s.ChangeSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ChangeSetName", 1)) } if invalidParams.Len() > 0 { @@ -3114,10 +4003,35 @@ func (s *GetTemplateInput) Validate() error { return nil } +// SetChangeSetName sets the ChangeSetName field's value. +func (s *GetTemplateInput) SetChangeSetName(v string) *GetTemplateInput { + s.ChangeSetName = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *GetTemplateInput) SetStackName(v string) *GetTemplateInput { + s.StackName = &v + return s +} + +// SetTemplateStage sets the TemplateStage field's value. +func (s *GetTemplateInput) SetTemplateStage(v string) *GetTemplateInput { + s.TemplateStage = &v + return s +} + // The output for GetTemplate action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplateOutput type GetTemplateOutput struct { _ struct{} `type:"structure"` + // The stage of the template that you can retrieve. For stacks, the Original + // and Processed templates are always available. For change sets, the Original + // template is always available. After AWS CloudFormation finishes creating + // the change set, the Processed template becomes available. + StagesAvailable []*string `type:"list"` + // Structure containing the template body. (For more information, go to Template // Anatomy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) // in the AWS CloudFormation User Guide.) @@ -3137,7 +4051,20 @@ func (s GetTemplateOutput) GoString() string { return s.String() } +// SetStagesAvailable sets the StagesAvailable field's value. +func (s *GetTemplateOutput) SetStagesAvailable(v []*string) *GetTemplateOutput { + s.StagesAvailable = v + return s +} + +// SetTemplateBody sets the TemplateBody field's value. +func (s *GetTemplateOutput) SetTemplateBody(v string) *GetTemplateOutput { + s.TemplateBody = &v + return s +} + // The input for the GetTemplateSummary action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplateSummaryInput type GetTemplateSummaryInput struct { _ struct{} `type:"structure"` @@ -3198,7 +4125,26 @@ func (s *GetTemplateSummaryInput) Validate() error { return nil } +// SetStackName sets the StackName field's value. +func (s *GetTemplateSummaryInput) SetStackName(v string) *GetTemplateSummaryInput { + s.StackName = &v + return s +} + +// SetTemplateBody sets the TemplateBody field's value. +func (s *GetTemplateSummaryInput) SetTemplateBody(v string) *GetTemplateSummaryInput { + s.TemplateBody = &v + return s +} + +// SetTemplateURL sets the TemplateURL field's value. +func (s *GetTemplateSummaryInput) SetTemplateURL(v string) *GetTemplateSummaryInput { + s.TemplateURL = &v + return s +} + // The output for the GetTemplateSummary action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplateSummaryOutput type GetTemplateSummaryOutput struct { _ struct{} `type:"structure"` @@ -3216,6 +4162,9 @@ type GetTemplateSummaryOutput struct { // element. CapabilitiesReason *string `type:"string"` + // A list of the transforms that are declared in the template. + DeclaredTransforms []*string `type:"list"` + // The value that is defined in the Description property of the template. Description *string `min:"1" type:"string"` @@ -3245,7 +4194,56 @@ func (s GetTemplateSummaryOutput) GoString() string { return s.String() } +// SetCapabilities sets the Capabilities field's value. +func (s *GetTemplateSummaryOutput) SetCapabilities(v []*string) *GetTemplateSummaryOutput { + s.Capabilities = v + return s +} + +// SetCapabilitiesReason sets the CapabilitiesReason field's value. +func (s *GetTemplateSummaryOutput) SetCapabilitiesReason(v string) *GetTemplateSummaryOutput { + s.CapabilitiesReason = &v + return s +} + +// SetDeclaredTransforms sets the DeclaredTransforms field's value. +func (s *GetTemplateSummaryOutput) SetDeclaredTransforms(v []*string) *GetTemplateSummaryOutput { + s.DeclaredTransforms = v + return s +} + +// SetDescription sets the Description field's value. +func (s *GetTemplateSummaryOutput) SetDescription(v string) *GetTemplateSummaryOutput { + s.Description = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *GetTemplateSummaryOutput) SetMetadata(v string) *GetTemplateSummaryOutput { + s.Metadata = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *GetTemplateSummaryOutput) SetParameters(v []*ParameterDeclaration) *GetTemplateSummaryOutput { + s.Parameters = v + return s +} + +// SetResourceTypes sets the ResourceTypes field's value. +func (s *GetTemplateSummaryOutput) SetResourceTypes(v []*string) *GetTemplateSummaryOutput { + s.ResourceTypes = v + return s +} + +// SetVersion sets the Version field's value. +func (s *GetTemplateSummaryOutput) SetVersion(v string) *GetTemplateSummaryOutput { + s.Version = &v + return s +} + // The input for the ListChangeSets action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListChangeSetsInput type ListChangeSetsInput struct { _ struct{} `type:"structure"` @@ -3289,7 +4287,20 @@ func (s *ListChangeSetsInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *ListChangeSetsInput) SetNextToken(v string) *ListChangeSetsInput { + s.NextToken = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *ListChangeSetsInput) SetStackName(v string) *ListChangeSetsInput { + s.StackName = &v + return s +} + // The output for the ListChangeSets action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListChangeSetsOutput type ListChangeSetsOutput struct { _ struct{} `type:"structure"` @@ -3312,7 +4323,179 @@ func (s ListChangeSetsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListChangeSetsOutput) SetNextToken(v string) *ListChangeSetsOutput { + s.NextToken = &v + return s +} + +// SetSummaries sets the Summaries field's value. +func (s *ListChangeSetsOutput) SetSummaries(v []*ChangeSetSummary) *ListChangeSetsOutput { + s.Summaries = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListExportsInput +type ListExportsInput struct { + _ struct{} `type:"structure"` + + // A string (provided by the ListExports response output) that identifies the + // next page of exported output values that you asked to retrieve. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListExportsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListExportsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListExportsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListExportsInput"} + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNextToken sets the NextToken field's value. +func (s *ListExportsInput) SetNextToken(v string) *ListExportsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListExportsOutput +type ListExportsOutput struct { + _ struct{} `type:"structure"` + + // The output for the ListExports action. + Exports []*Export `type:"list"` + + // If the output exceeds 100 exported output values, a string that identifies + // the next page of exports. If there is no additional page, this value is null. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListExportsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListExportsOutput) GoString() string { + return s.String() +} + +// SetExports sets the Exports field's value. +func (s *ListExportsOutput) SetExports(v []*Export) *ListExportsOutput { + s.Exports = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListExportsOutput) SetNextToken(v string) *ListExportsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListImportsInput +type ListImportsInput struct { + _ struct{} `type:"structure"` + + // The name of the exported output value. AWS CloudFormation returns the stack + // names that are importing this value. + // + // ExportName is a required field + ExportName *string `type:"string" required:"true"` + + // A string (provided by the ListImports response output) that identifies the + // next page of stacks that are importing the specified exported output value. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListImportsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListImportsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListImportsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListImportsInput"} + if s.ExportName == nil { + invalidParams.Add(request.NewErrParamRequired("ExportName")) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetExportName sets the ExportName field's value. +func (s *ListImportsInput) SetExportName(v string) *ListImportsInput { + s.ExportName = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListImportsInput) SetNextToken(v string) *ListImportsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListImportsOutput +type ListImportsOutput struct { + _ struct{} `type:"structure"` + + // A list of stack names that are importing the specified exported output value. + Imports []*string `type:"list"` + + // A string that identifies the next page of exports. If there is no additional + // page, this value is null. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListImportsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListImportsOutput) GoString() string { + return s.String() +} + +// SetImports sets the Imports field's value. +func (s *ListImportsOutput) SetImports(v []*string) *ListImportsOutput { + s.Imports = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListImportsOutput) SetNextToken(v string) *ListImportsOutput { + s.NextToken = &v + return s +} + // The input for the ListStackResource action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackResourcesInput type ListStackResourcesInput struct { _ struct{} `type:"structure"` @@ -3323,12 +4506,12 @@ type ListStackResourcesInput struct { // The name or the unique stack ID that is associated with the stack, which // are not always interchangeable: // - // Running stacks: You can specify either the stack's name or its unique - // stack ID. + // * Running stacks: You can specify either the stack's name or its unique + // stack ID. // - // Deleted stacks: You must specify the unique stack ID. + // * Deleted stacks: You must specify the unique stack ID. // - // Default: There is no default value. + // Default: There is no default value. // // StackName is a required field StackName *string `type:"string" required:"true"` @@ -3360,7 +4543,20 @@ func (s *ListStackResourcesInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *ListStackResourcesInput) SetNextToken(v string) *ListStackResourcesInput { + s.NextToken = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *ListStackResourcesInput) SetStackName(v string) *ListStackResourcesInput { + s.StackName = &v + return s +} + // The output for a ListStackResources action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackResourcesOutput type ListStackResourcesOutput struct { _ struct{} `type:"structure"` @@ -3382,7 +4578,20 @@ func (s ListStackResourcesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListStackResourcesOutput) SetNextToken(v string) *ListStackResourcesOutput { + s.NextToken = &v + return s +} + +// SetStackResourceSummaries sets the StackResourceSummaries field's value. +func (s *ListStackResourcesOutput) SetStackResourceSummaries(v []*StackResourceSummary) *ListStackResourcesOutput { + s.StackResourceSummaries = v + return s +} + // The input for ListStacks action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacksInput type ListStacksInput struct { _ struct{} `type:"structure"` @@ -3418,7 +4627,20 @@ func (s *ListStacksInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *ListStacksInput) SetNextToken(v string) *ListStacksInput { + s.NextToken = &v + return s +} + +// SetStackStatusFilter sets the StackStatusFilter field's value. +func (s *ListStacksInput) SetStackStatusFilter(v []*string) *ListStacksInput { + s.StackStatusFilter = v + return s +} + // The output for ListStacks action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacksOutput type ListStacksOutput struct { _ struct{} `type:"structure"` @@ -3441,7 +4663,20 @@ func (s ListStacksOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListStacksOutput) SetNextToken(v string) *ListStacksOutput { + s.NextToken = &v + return s +} + +// SetStackSummaries sets the StackSummaries field's value. +func (s *ListStacksOutput) SetStackSummaries(v []*StackSummary) *ListStacksOutput { + s.StackSummaries = v + return s +} + // The Output data type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/Output type Output struct { _ struct{} `type:"structure"` @@ -3465,7 +4700,26 @@ func (s Output) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *Output) SetDescription(v string) *Output { + s.Description = &v + return s +} + +// SetOutputKey sets the OutputKey field's value. +func (s *Output) SetOutputKey(v string) *Output { + s.OutputKey = &v + return s +} + +// SetOutputValue sets the OutputValue field's value. +func (s *Output) SetOutputValue(v string) *Output { + s.OutputValue = &v + return s +} + // The Parameter data type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/Parameter type Parameter struct { _ struct{} `type:"structure"` @@ -3493,9 +4747,28 @@ func (s Parameter) GoString() string { return s.String() } +// SetParameterKey sets the ParameterKey field's value. +func (s *Parameter) SetParameterKey(v string) *Parameter { + s.ParameterKey = &v + return s +} + +// SetParameterValue sets the ParameterValue field's value. +func (s *Parameter) SetParameterValue(v string) *Parameter { + s.ParameterValue = &v + return s +} + +// SetUsePreviousValue sets the UsePreviousValue field's value. +func (s *Parameter) SetUsePreviousValue(v bool) *Parameter { + s.UsePreviousValue = &v + return s +} + // A set of criteria that AWS CloudFormation uses to validate parameter values. // Although other constraints might be defined in the stack template, AWS CloudFormation // returns only the AllowedValues property. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ParameterConstraints type ParameterConstraints struct { _ struct{} `type:"structure"` @@ -3513,7 +4786,14 @@ func (s ParameterConstraints) GoString() string { return s.String() } +// SetAllowedValues sets the AllowedValues field's value. +func (s *ParameterConstraints) SetAllowedValues(v []*string) *ParameterConstraints { + s.AllowedValues = v + return s +} + // The ParameterDeclaration data type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ParameterDeclaration type ParameterDeclaration struct { _ struct{} `type:"structure"` @@ -3547,8 +4827,45 @@ func (s ParameterDeclaration) GoString() string { return s.String() } +// SetDefaultValue sets the DefaultValue field's value. +func (s *ParameterDeclaration) SetDefaultValue(v string) *ParameterDeclaration { + s.DefaultValue = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ParameterDeclaration) SetDescription(v string) *ParameterDeclaration { + s.Description = &v + return s +} + +// SetNoEcho sets the NoEcho field's value. +func (s *ParameterDeclaration) SetNoEcho(v bool) *ParameterDeclaration { + s.NoEcho = &v + return s +} + +// SetParameterConstraints sets the ParameterConstraints field's value. +func (s *ParameterDeclaration) SetParameterConstraints(v *ParameterConstraints) *ParameterDeclaration { + s.ParameterConstraints = v + return s +} + +// SetParameterKey sets the ParameterKey field's value. +func (s *ParameterDeclaration) SetParameterKey(v string) *ParameterDeclaration { + s.ParameterKey = &v + return s +} + +// SetParameterType sets the ParameterType field's value. +func (s *ParameterDeclaration) SetParameterType(v string) *ParameterDeclaration { + s.ParameterType = &v + return s +} + // The ResourceChange structure describes the resource and the action that AWS // CloudFormation will perform on it if you execute this change set. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ResourceChange type ResourceChange struct { _ struct{} `type:"structure"` @@ -3599,8 +4916,51 @@ func (s ResourceChange) GoString() string { return s.String() } +// SetAction sets the Action field's value. +func (s *ResourceChange) SetAction(v string) *ResourceChange { + s.Action = &v + return s +} + +// SetDetails sets the Details field's value. +func (s *ResourceChange) SetDetails(v []*ResourceChangeDetail) *ResourceChange { + s.Details = v + return s +} + +// SetLogicalResourceId sets the LogicalResourceId field's value. +func (s *ResourceChange) SetLogicalResourceId(v string) *ResourceChange { + s.LogicalResourceId = &v + return s +} + +// SetPhysicalResourceId sets the PhysicalResourceId field's value. +func (s *ResourceChange) SetPhysicalResourceId(v string) *ResourceChange { + s.PhysicalResourceId = &v + return s +} + +// SetReplacement sets the Replacement field's value. +func (s *ResourceChange) SetReplacement(v string) *ResourceChange { + s.Replacement = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ResourceChange) SetResourceType(v string) *ResourceChange { + s.ResourceType = &v + return s +} + +// SetScope sets the Scope field's value. +func (s *ResourceChange) SetScope(v []*string) *ResourceChange { + s.Scope = v + return s +} + // For a resource with Modify as the action, the ResourceChange structure describes // the changes AWS CloudFormation will make to that resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ResourceChangeDetail type ResourceChangeDetail struct { _ struct{} `type:"structure"` @@ -3615,25 +4975,25 @@ type ResourceChangeDetail struct { // The group to which the CausingEntity value belongs. There are five entity // groups: // - // ResourceReference entities are Ref intrinsic functions that refer to - // resources in the template, such as { "Ref" : "MyEC2InstanceResource" }. + // * ResourceReference entities are Ref intrinsic functions that refer to + // resources in the template, such as { "Ref" : "MyEC2InstanceResource" }. // - // ParameterReference entities are Ref intrinsic functions that get template - // parameter values, such as { "Ref" : "MyPasswordParameter" }. + // * ParameterReference entities are Ref intrinsic functions that get template + // parameter values, such as { "Ref" : "MyPasswordParameter" }. // - // ResourceAttribute entities are Fn::GetAtt intrinsic functions that get - // resource attribute values, such as { "Fn::GetAtt" : [ "MyEC2InstanceResource", - // "PublicDnsName" ] }. + // * ResourceAttribute entities are Fn::GetAtt intrinsic functions that get + // resource attribute values, such as { "Fn::GetAtt" : [ "MyEC2InstanceResource", + // "PublicDnsName" ] }. // - // DirectModification entities are changes that are made directly to the - // template. + // * DirectModification entities are changes that are made directly to the + // template. // - // Automatic entities are AWS::CloudFormation::Stack resource types, which - // are also known as nested stacks. If you made no changes to the AWS::CloudFormation::Stack - // resource, AWS CloudFormation sets the ChangeSource to Automatic because the - // nested stack's template might have changed. Changes to a nested stack's template - // aren't visible to AWS CloudFormation until you run an update on the parent - // stack. + // * Automatic entities are AWS::CloudFormation::Stack resource types, which + // are also known as nested stacks. If you made no changes to the AWS::CloudFormation::Stack + // resource, AWS CloudFormation sets the ChangeSource to Automatic because + // the nested stack's template might have changed. Changes to a nested stack's + // template aren't visible to AWS CloudFormation until you run an update + // on the parent stack. ChangeSource *string `type:"string" enum:"ChangeSource"` // Indicates whether AWS CloudFormation can determine the target value, and @@ -3668,8 +5028,33 @@ func (s ResourceChangeDetail) GoString() string { return s.String() } +// SetCausingEntity sets the CausingEntity field's value. +func (s *ResourceChangeDetail) SetCausingEntity(v string) *ResourceChangeDetail { + s.CausingEntity = &v + return s +} + +// SetChangeSource sets the ChangeSource field's value. +func (s *ResourceChangeDetail) SetChangeSource(v string) *ResourceChangeDetail { + s.ChangeSource = &v + return s +} + +// SetEvaluation sets the Evaluation field's value. +func (s *ResourceChangeDetail) SetEvaluation(v string) *ResourceChangeDetail { + s.Evaluation = &v + return s +} + +// SetTarget sets the Target field's value. +func (s *ResourceChangeDetail) SetTarget(v *ResourceTargetDefinition) *ResourceChangeDetail { + s.Target = v + return s +} + // The field that AWS CloudFormation will change, such as the name of a resource's // property, and whether the resource will be recreated. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ResourceTargetDefinition type ResourceTargetDefinition struct { _ struct{} `type:"structure"` @@ -3699,7 +5084,26 @@ func (s ResourceTargetDefinition) GoString() string { return s.String() } +// SetAttribute sets the Attribute field's value. +func (s *ResourceTargetDefinition) SetAttribute(v string) *ResourceTargetDefinition { + s.Attribute = &v + return s +} + +// SetName sets the Name field's value. +func (s *ResourceTargetDefinition) SetName(v string) *ResourceTargetDefinition { + s.Name = &v + return s +} + +// SetRequiresRecreation sets the RequiresRecreation field's value. +func (s *ResourceTargetDefinition) SetRequiresRecreation(v string) *ResourceTargetDefinition { + s.RequiresRecreation = &v + return s +} + // The input for the SetStackPolicy action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetStackPolicyInput type SetStackPolicyInput struct { _ struct{} `type:"structure"` @@ -3750,6 +5154,25 @@ func (s *SetStackPolicyInput) Validate() error { return nil } +// SetStackName sets the StackName field's value. +func (s *SetStackPolicyInput) SetStackName(v string) *SetStackPolicyInput { + s.StackName = &v + return s +} + +// SetStackPolicyBody sets the StackPolicyBody field's value. +func (s *SetStackPolicyInput) SetStackPolicyBody(v string) *SetStackPolicyInput { + s.StackPolicyBody = &v + return s +} + +// SetStackPolicyURL sets the StackPolicyURL field's value. +func (s *SetStackPolicyInput) SetStackPolicyURL(v string) *SetStackPolicyInput { + s.StackPolicyURL = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetStackPolicyOutput type SetStackPolicyOutput struct { _ struct{} `type:"structure"` } @@ -3765,6 +5188,7 @@ func (s SetStackPolicyOutput) GoString() string { } // The input for the SignalResource action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SignalResourceInput type SignalResourceInput struct { _ struct{} `type:"structure"` @@ -3833,6 +5257,31 @@ func (s *SignalResourceInput) Validate() error { return nil } +// SetLogicalResourceId sets the LogicalResourceId field's value. +func (s *SignalResourceInput) SetLogicalResourceId(v string) *SignalResourceInput { + s.LogicalResourceId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *SignalResourceInput) SetStackName(v string) *SignalResourceInput { + s.StackName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SignalResourceInput) SetStatus(v string) *SignalResourceInput { + s.Status = &v + return s +} + +// SetUniqueId sets the UniqueId field's value. +func (s *SignalResourceInput) SetUniqueId(v string) *SignalResourceInput { + s.UniqueId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SignalResourceOutput type SignalResourceOutput struct { _ struct{} `type:"structure"` } @@ -3848,12 +5297,16 @@ func (s SignalResourceOutput) GoString() string { } // The Stack data type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/Stack type Stack struct { _ struct{} `type:"structure"` // The capabilities allowed in the stack. Capabilities []*string `type:"list"` + // The unique ID of the change set. + ChangeSetId *string `min:"1" type:"string"` + // The time at which the stack was created. // // CreationTime is a required field @@ -3864,9 +5317,9 @@ type Stack struct { // Boolean to enable or disable rollback on stack creation failures: // - // true: disable rollback + // * true: disable rollback // - // false: enable rollback + // * false: enable rollback DisableRollback *bool `type:"boolean"` // The time the stack was last updated. This field will only be returned if @@ -3920,7 +5373,104 @@ func (s Stack) GoString() string { return s.String() } +// SetCapabilities sets the Capabilities field's value. +func (s *Stack) SetCapabilities(v []*string) *Stack { + s.Capabilities = v + return s +} + +// SetChangeSetId sets the ChangeSetId field's value. +func (s *Stack) SetChangeSetId(v string) *Stack { + s.ChangeSetId = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *Stack) SetCreationTime(v time.Time) *Stack { + s.CreationTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Stack) SetDescription(v string) *Stack { + s.Description = &v + return s +} + +// SetDisableRollback sets the DisableRollback field's value. +func (s *Stack) SetDisableRollback(v bool) *Stack { + s.DisableRollback = &v + return s +} + +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *Stack) SetLastUpdatedTime(v time.Time) *Stack { + s.LastUpdatedTime = &v + return s +} + +// SetNotificationARNs sets the NotificationARNs field's value. +func (s *Stack) SetNotificationARNs(v []*string) *Stack { + s.NotificationARNs = v + return s +} + +// SetOutputs sets the Outputs field's value. +func (s *Stack) SetOutputs(v []*Output) *Stack { + s.Outputs = v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *Stack) SetParameters(v []*Parameter) *Stack { + s.Parameters = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *Stack) SetRoleARN(v string) *Stack { + s.RoleARN = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *Stack) SetStackId(v string) *Stack { + s.StackId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *Stack) SetStackName(v string) *Stack { + s.StackName = &v + return s +} + +// SetStackStatus sets the StackStatus field's value. +func (s *Stack) SetStackStatus(v string) *Stack { + s.StackStatus = &v + return s +} + +// SetStackStatusReason sets the StackStatusReason field's value. +func (s *Stack) SetStackStatusReason(v string) *Stack { + s.StackStatusReason = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Stack) SetTags(v []*Tag) *Stack { + s.Tags = v + return s +} + +// SetTimeoutInMinutes sets the TimeoutInMinutes field's value. +func (s *Stack) SetTimeoutInMinutes(v int64) *Stack { + s.TimeoutInMinutes = &v + return s +} + // The StackEvent data type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StackEvent type StackEvent struct { _ struct{} `type:"structure"` @@ -3976,7 +5526,68 @@ func (s StackEvent) GoString() string { return s.String() } +// SetEventId sets the EventId field's value. +func (s *StackEvent) SetEventId(v string) *StackEvent { + s.EventId = &v + return s +} + +// SetLogicalResourceId sets the LogicalResourceId field's value. +func (s *StackEvent) SetLogicalResourceId(v string) *StackEvent { + s.LogicalResourceId = &v + return s +} + +// SetPhysicalResourceId sets the PhysicalResourceId field's value. +func (s *StackEvent) SetPhysicalResourceId(v string) *StackEvent { + s.PhysicalResourceId = &v + return s +} + +// SetResourceProperties sets the ResourceProperties field's value. +func (s *StackEvent) SetResourceProperties(v string) *StackEvent { + s.ResourceProperties = &v + return s +} + +// SetResourceStatus sets the ResourceStatus field's value. +func (s *StackEvent) SetResourceStatus(v string) *StackEvent { + s.ResourceStatus = &v + return s +} + +// SetResourceStatusReason sets the ResourceStatusReason field's value. +func (s *StackEvent) SetResourceStatusReason(v string) *StackEvent { + s.ResourceStatusReason = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *StackEvent) SetResourceType(v string) *StackEvent { + s.ResourceType = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *StackEvent) SetStackId(v string) *StackEvent { + s.StackId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *StackEvent) SetStackName(v string) *StackEvent { + s.StackName = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *StackEvent) SetTimestamp(v time.Time) *StackEvent { + s.Timestamp = &v + return s +} + // The StackResource data type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StackResource type StackResource struct { _ struct{} `type:"structure"` @@ -4029,7 +5640,62 @@ func (s StackResource) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *StackResource) SetDescription(v string) *StackResource { + s.Description = &v + return s +} + +// SetLogicalResourceId sets the LogicalResourceId field's value. +func (s *StackResource) SetLogicalResourceId(v string) *StackResource { + s.LogicalResourceId = &v + return s +} + +// SetPhysicalResourceId sets the PhysicalResourceId field's value. +func (s *StackResource) SetPhysicalResourceId(v string) *StackResource { + s.PhysicalResourceId = &v + return s +} + +// SetResourceStatus sets the ResourceStatus field's value. +func (s *StackResource) SetResourceStatus(v string) *StackResource { + s.ResourceStatus = &v + return s +} + +// SetResourceStatusReason sets the ResourceStatusReason field's value. +func (s *StackResource) SetResourceStatusReason(v string) *StackResource { + s.ResourceStatusReason = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *StackResource) SetResourceType(v string) *StackResource { + s.ResourceType = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *StackResource) SetStackId(v string) *StackResource { + s.StackId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *StackResource) SetStackName(v string) *StackResource { + s.StackName = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *StackResource) SetTimestamp(v time.Time) *StackResource { + s.Timestamp = &v + return s +} + // Contains detailed information about the specified stack resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StackResourceDetail type StackResourceDetail struct { _ struct{} `type:"structure"` @@ -4087,7 +5753,68 @@ func (s StackResourceDetail) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *StackResourceDetail) SetDescription(v string) *StackResourceDetail { + s.Description = &v + return s +} + +// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. +func (s *StackResourceDetail) SetLastUpdatedTimestamp(v time.Time) *StackResourceDetail { + s.LastUpdatedTimestamp = &v + return s +} + +// SetLogicalResourceId sets the LogicalResourceId field's value. +func (s *StackResourceDetail) SetLogicalResourceId(v string) *StackResourceDetail { + s.LogicalResourceId = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *StackResourceDetail) SetMetadata(v string) *StackResourceDetail { + s.Metadata = &v + return s +} + +// SetPhysicalResourceId sets the PhysicalResourceId field's value. +func (s *StackResourceDetail) SetPhysicalResourceId(v string) *StackResourceDetail { + s.PhysicalResourceId = &v + return s +} + +// SetResourceStatus sets the ResourceStatus field's value. +func (s *StackResourceDetail) SetResourceStatus(v string) *StackResourceDetail { + s.ResourceStatus = &v + return s +} + +// SetResourceStatusReason sets the ResourceStatusReason field's value. +func (s *StackResourceDetail) SetResourceStatusReason(v string) *StackResourceDetail { + s.ResourceStatusReason = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *StackResourceDetail) SetResourceType(v string) *StackResourceDetail { + s.ResourceType = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *StackResourceDetail) SetStackId(v string) *StackResourceDetail { + s.StackId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *StackResourceDetail) SetStackName(v string) *StackResourceDetail { + s.StackName = &v + return s +} + // Contains high-level information about the specified stack resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StackResourceSummary type StackResourceSummary struct { _ struct{} `type:"structure"` @@ -4131,7 +5858,44 @@ func (s StackResourceSummary) GoString() string { return s.String() } +// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. +func (s *StackResourceSummary) SetLastUpdatedTimestamp(v time.Time) *StackResourceSummary { + s.LastUpdatedTimestamp = &v + return s +} + +// SetLogicalResourceId sets the LogicalResourceId field's value. +func (s *StackResourceSummary) SetLogicalResourceId(v string) *StackResourceSummary { + s.LogicalResourceId = &v + return s +} + +// SetPhysicalResourceId sets the PhysicalResourceId field's value. +func (s *StackResourceSummary) SetPhysicalResourceId(v string) *StackResourceSummary { + s.PhysicalResourceId = &v + return s +} + +// SetResourceStatus sets the ResourceStatus field's value. +func (s *StackResourceSummary) SetResourceStatus(v string) *StackResourceSummary { + s.ResourceStatus = &v + return s +} + +// SetResourceStatusReason sets the ResourceStatusReason field's value. +func (s *StackResourceSummary) SetResourceStatusReason(v string) *StackResourceSummary { + s.ResourceStatusReason = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *StackResourceSummary) SetResourceType(v string) *StackResourceSummary { + s.ResourceType = &v + return s +} + // The StackSummary Data Type +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StackSummary type StackSummary struct { _ struct{} `type:"structure"` @@ -4177,8 +5941,57 @@ func (s StackSummary) GoString() string { return s.String() } +// SetCreationTime sets the CreationTime field's value. +func (s *StackSummary) SetCreationTime(v time.Time) *StackSummary { + s.CreationTime = &v + return s +} + +// SetDeletionTime sets the DeletionTime field's value. +func (s *StackSummary) SetDeletionTime(v time.Time) *StackSummary { + s.DeletionTime = &v + return s +} + +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *StackSummary) SetLastUpdatedTime(v time.Time) *StackSummary { + s.LastUpdatedTime = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *StackSummary) SetStackId(v string) *StackSummary { + s.StackId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *StackSummary) SetStackName(v string) *StackSummary { + s.StackName = &v + return s +} + +// SetStackStatus sets the StackStatus field's value. +func (s *StackSummary) SetStackStatus(v string) *StackSummary { + s.StackStatus = &v + return s +} + +// SetStackStatusReason sets the StackStatusReason field's value. +func (s *StackSummary) SetStackStatusReason(v string) *StackSummary { + s.StackStatusReason = &v + return s +} + +// SetTemplateDescription sets the TemplateDescription field's value. +func (s *StackSummary) SetTemplateDescription(v string) *StackSummary { + s.TemplateDescription = &v + return s +} + // The Tag type enables you to specify a key-value pair that can be used to // store information about an AWS CloudFormation stack. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/Tag type Tag struct { _ struct{} `type:"structure"` @@ -4202,7 +6015,20 @@ func (s Tag) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // The TemplateParameter data type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/TemplateParameter type TemplateParameter struct { _ struct{} `type:"structure"` @@ -4230,7 +6056,32 @@ func (s TemplateParameter) GoString() string { return s.String() } +// SetDefaultValue sets the DefaultValue field's value. +func (s *TemplateParameter) SetDefaultValue(v string) *TemplateParameter { + s.DefaultValue = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *TemplateParameter) SetDescription(v string) *TemplateParameter { + s.Description = &v + return s +} + +// SetNoEcho sets the NoEcho field's value. +func (s *TemplateParameter) SetNoEcho(v bool) *TemplateParameter { + s.NoEcho = &v + return s +} + +// SetParameterKey sets the ParameterKey field's value. +func (s *TemplateParameter) SetParameterKey(v string) *TemplateParameter { + s.ParameterKey = &v + return s +} + // The input for an UpdateStack action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackInput type UpdateStackInput struct { _ struct{} `type:"structure"` @@ -4289,9 +6140,9 @@ type UpdateStackInput struct { // role even if the users don't have permission to pass it. Ensure that the // role grants least privilege. // - // If you don't specify a value, AWS CloudFormation uses the role that was - // previously associated with the stack. If no role is available, AWS CloudFormation - // uses a temporary session that is generated from your user credentials. + // If you don't specify a value, AWS CloudFormation uses the role that was previously + // associated with the stack. If no role is available, AWS CloudFormation uses + // a temporary session that is generated from your user credentials. RoleARN *string `min:"20" type:"string"` // The name or unique stack ID of the stack to update. @@ -4412,7 +6263,92 @@ func (s *UpdateStackInput) Validate() error { return nil } +// SetCapabilities sets the Capabilities field's value. +func (s *UpdateStackInput) SetCapabilities(v []*string) *UpdateStackInput { + s.Capabilities = v + return s +} + +// SetNotificationARNs sets the NotificationARNs field's value. +func (s *UpdateStackInput) SetNotificationARNs(v []*string) *UpdateStackInput { + s.NotificationARNs = v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *UpdateStackInput) SetParameters(v []*Parameter) *UpdateStackInput { + s.Parameters = v + return s +} + +// SetResourceTypes sets the ResourceTypes field's value. +func (s *UpdateStackInput) SetResourceTypes(v []*string) *UpdateStackInput { + s.ResourceTypes = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *UpdateStackInput) SetRoleARN(v string) *UpdateStackInput { + s.RoleARN = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *UpdateStackInput) SetStackName(v string) *UpdateStackInput { + s.StackName = &v + return s +} + +// SetStackPolicyBody sets the StackPolicyBody field's value. +func (s *UpdateStackInput) SetStackPolicyBody(v string) *UpdateStackInput { + s.StackPolicyBody = &v + return s +} + +// SetStackPolicyDuringUpdateBody sets the StackPolicyDuringUpdateBody field's value. +func (s *UpdateStackInput) SetStackPolicyDuringUpdateBody(v string) *UpdateStackInput { + s.StackPolicyDuringUpdateBody = &v + return s +} + +// SetStackPolicyDuringUpdateURL sets the StackPolicyDuringUpdateURL field's value. +func (s *UpdateStackInput) SetStackPolicyDuringUpdateURL(v string) *UpdateStackInput { + s.StackPolicyDuringUpdateURL = &v + return s +} + +// SetStackPolicyURL sets the StackPolicyURL field's value. +func (s *UpdateStackInput) SetStackPolicyURL(v string) *UpdateStackInput { + s.StackPolicyURL = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *UpdateStackInput) SetTags(v []*Tag) *UpdateStackInput { + s.Tags = v + return s +} + +// SetTemplateBody sets the TemplateBody field's value. +func (s *UpdateStackInput) SetTemplateBody(v string) *UpdateStackInput { + s.TemplateBody = &v + return s +} + +// SetTemplateURL sets the TemplateURL field's value. +func (s *UpdateStackInput) SetTemplateURL(v string) *UpdateStackInput { + s.TemplateURL = &v + return s +} + +// SetUsePreviousTemplate sets the UsePreviousTemplate field's value. +func (s *UpdateStackInput) SetUsePreviousTemplate(v bool) *UpdateStackInput { + s.UsePreviousTemplate = &v + return s +} + // The output for an UpdateStack action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackOutput type UpdateStackOutput struct { _ struct{} `type:"structure"` @@ -4430,7 +6366,14 @@ func (s UpdateStackOutput) GoString() string { return s.String() } +// SetStackId sets the StackId field's value. +func (s *UpdateStackOutput) SetStackId(v string) *UpdateStackOutput { + s.StackId = &v + return s +} + // The input for ValidateTemplate action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplateInput type ValidateTemplateInput struct { _ struct{} `type:"structure"` @@ -4479,7 +6422,20 @@ func (s *ValidateTemplateInput) Validate() error { return nil } +// SetTemplateBody sets the TemplateBody field's value. +func (s *ValidateTemplateInput) SetTemplateBody(v string) *ValidateTemplateInput { + s.TemplateBody = &v + return s +} + +// SetTemplateURL sets the TemplateURL field's value. +func (s *ValidateTemplateInput) SetTemplateURL(v string) *ValidateTemplateInput { + s.TemplateURL = &v + return s +} + // The output for ValidateTemplate action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplateOutput type ValidateTemplateOutput struct { _ struct{} `type:"structure"` @@ -4497,6 +6453,9 @@ type ValidateTemplateOutput struct { // element. CapabilitiesReason *string `type:"string"` + // A list of the transforms that are declared in the template. + DeclaredTransforms []*string `type:"list"` + // The description found within the template. Description *string `min:"1" type:"string"` @@ -4514,6 +6473,36 @@ func (s ValidateTemplateOutput) GoString() string { return s.String() } +// SetCapabilities sets the Capabilities field's value. +func (s *ValidateTemplateOutput) SetCapabilities(v []*string) *ValidateTemplateOutput { + s.Capabilities = v + return s +} + +// SetCapabilitiesReason sets the CapabilitiesReason field's value. +func (s *ValidateTemplateOutput) SetCapabilitiesReason(v string) *ValidateTemplateOutput { + s.CapabilitiesReason = &v + return s +} + +// SetDeclaredTransforms sets the DeclaredTransforms field's value. +func (s *ValidateTemplateOutput) SetDeclaredTransforms(v []*string) *ValidateTemplateOutput { + s.DeclaredTransforms = v + return s +} + +// SetDescription sets the Description field's value. +func (s *ValidateTemplateOutput) SetDescription(v string) *ValidateTemplateOutput { + s.Description = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *ValidateTemplateOutput) SetParameters(v []*TemplateParameter) *ValidateTemplateOutput { + s.Parameters = v + return s +} + const ( // CapabilityCapabilityIam is a Capability enum value CapabilityCapabilityIam = "CAPABILITY_IAM" @@ -4550,6 +6539,14 @@ const ( ChangeSetStatusFailed = "FAILED" ) +const ( + // ChangeSetTypeCreate is a ChangeSetType enum value + ChangeSetTypeCreate = "CREATE" + + // ChangeSetTypeUpdate is a ChangeSetType enum value + ChangeSetTypeUpdate = "UPDATE" +) + const ( // ChangeSourceResourceReference is a ChangeSource enum value ChangeSourceResourceReference = "ResourceReference" @@ -4741,4 +6738,15 @@ const ( // StackStatusUpdateRollbackComplete is a StackStatus enum value StackStatusUpdateRollbackComplete = "UPDATE_ROLLBACK_COMPLETE" + + // StackStatusReviewInProgress is a StackStatus enum value + StackStatusReviewInProgress = "REVIEW_IN_PROGRESS" +) + +const ( + // TemplateStageOriginal is a TemplateStage enum value + TemplateStageOriginal = "Original" + + // TemplateStageProcessed is a TemplateStage enum value + TemplateStageProcessed = "Processed" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface/interface.go index 5efc4fbb3..3e67d09e3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCloudFormationClient{} // @@ -135,6 +135,14 @@ type CloudFormationAPI interface { ListChangeSets(*cloudformation.ListChangeSetsInput) (*cloudformation.ListChangeSetsOutput, error) + ListExportsRequest(*cloudformation.ListExportsInput) (*request.Request, *cloudformation.ListExportsOutput) + + ListExports(*cloudformation.ListExportsInput) (*cloudformation.ListExportsOutput, error) + + ListImportsRequest(*cloudformation.ListImportsInput) (*request.Request, *cloudformation.ListImportsOutput) + + ListImports(*cloudformation.ListImportsInput) (*cloudformation.ListImportsOutput, error) + ListStackResourcesRequest(*cloudformation.ListStackResourcesInput) (*request.Request, *cloudformation.ListStackResourcesOutput) ListStackResources(*cloudformation.ListStackResourcesInput) (*cloudformation.ListStackResourcesOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/errors.go b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/errors.go new file mode 100644 index 000000000..29fae9221 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/errors.go @@ -0,0 +1,40 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cloudformation + +const ( + + // ErrCodeAlreadyExistsException for service response error code + // "AlreadyExistsException". + // + // Resource with the name requested already exists. + ErrCodeAlreadyExistsException = "AlreadyExistsException" + + // ErrCodeChangeSetNotFoundException for service response error code + // "ChangeSetNotFound". + // + // The specified change set name or ID doesn't exit. To view valid change sets + // for a stack, use the ListChangeSets action. + ErrCodeChangeSetNotFoundException = "ChangeSetNotFound" + + // ErrCodeInsufficientCapabilitiesException for service response error code + // "InsufficientCapabilitiesException". + // + // The template contains resources with capabilities that were not specified + // in the Capabilities parameter. + ErrCodeInsufficientCapabilitiesException = "InsufficientCapabilitiesException" + + // ErrCodeInvalidChangeSetStatusException for service response error code + // "InvalidChangeSetStatus". + // + // The specified change set cannot be used to update the stack. For example, + // the change set status might be CREATE_IN_PROGRESS or the stack status might + // be UPDATE_IN_PROGRESS. + ErrCodeInvalidChangeSetStatusException = "InvalidChangeSetStatus" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // Quota for the resource has already been reached. + ErrCodeLimitExceededException = "LimitExceededException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/examples_test.go index 90ffd113d..f9109d4c2 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudFormation_CancelUpdateStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -41,17 +37,17 @@ func ExampleCloudFormation_CancelUpdateStack() { } func ExampleCloudFormation_ContinueUpdateRollback() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) params := &cloudformation.ContinueUpdateRollbackInput{ StackName: aws.String("StackNameOrId"), // Required - RoleARN: aws.String("RoleARN"), + ResourcesToSkip: []*string{ + aws.String("ResourceToSkip"), // Required + // More values... + }, + RoleARN: aws.String("RoleARN"), } resp, err := svc.ContinueUpdateRollback(params) @@ -67,11 +63,7 @@ func ExampleCloudFormation_ContinueUpdateRollback() { } func ExampleCloudFormation_CreateChangeSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -82,8 +74,9 @@ func ExampleCloudFormation_CreateChangeSet() { aws.String("Capability"), // Required // More values... }, - ClientToken: aws.String("ClientToken"), - Description: aws.String("Description"), + ChangeSetType: aws.String("ChangeSetType"), + ClientToken: aws.String("ClientToken"), + Description: aws.String("Description"), NotificationARNs: []*string{ aws.String("NotificationARN"), // Required // More values... @@ -126,11 +119,7 @@ func ExampleCloudFormation_CreateChangeSet() { } func ExampleCloudFormation_CreateStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -186,11 +175,7 @@ func ExampleCloudFormation_CreateStack() { } func ExampleCloudFormation_DeleteChangeSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -212,11 +197,7 @@ func ExampleCloudFormation_DeleteChangeSet() { } func ExampleCloudFormation_DeleteStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -242,11 +223,7 @@ func ExampleCloudFormation_DeleteStack() { } func ExampleCloudFormation_DescribeAccountLimits() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -267,11 +244,7 @@ func ExampleCloudFormation_DescribeAccountLimits() { } func ExampleCloudFormation_DescribeChangeSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -294,11 +267,7 @@ func ExampleCloudFormation_DescribeChangeSet() { } func ExampleCloudFormation_DescribeStackEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -320,11 +289,7 @@ func ExampleCloudFormation_DescribeStackEvents() { } func ExampleCloudFormation_DescribeStackResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -346,11 +311,7 @@ func ExampleCloudFormation_DescribeStackResource() { } func ExampleCloudFormation_DescribeStackResources() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -373,11 +334,7 @@ func ExampleCloudFormation_DescribeStackResources() { } func ExampleCloudFormation_DescribeStacks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -399,11 +356,7 @@ func ExampleCloudFormation_DescribeStacks() { } func ExampleCloudFormation_EstimateTemplateCost() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -433,11 +386,7 @@ func ExampleCloudFormation_EstimateTemplateCost() { } func ExampleCloudFormation_ExecuteChangeSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -459,11 +408,7 @@ func ExampleCloudFormation_ExecuteChangeSet() { } func ExampleCloudFormation_GetStackPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -484,16 +429,14 @@ func ExampleCloudFormation_GetStackPolicy() { } func ExampleCloudFormation_GetTemplate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) params := &cloudformation.GetTemplateInput{ - StackName: aws.String("StackName"), // Required + ChangeSetName: aws.String("ChangeSetNameOrId"), + StackName: aws.String("StackName"), + TemplateStage: aws.String("TemplateStage"), } resp, err := svc.GetTemplate(params) @@ -509,11 +452,7 @@ func ExampleCloudFormation_GetTemplate() { } func ExampleCloudFormation_GetTemplateSummary() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -536,11 +475,7 @@ func ExampleCloudFormation_GetTemplateSummary() { } func ExampleCloudFormation_ListChangeSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -561,13 +496,52 @@ func ExampleCloudFormation_ListChangeSets() { fmt.Println(resp) } -func ExampleCloudFormation_ListStackResources() { - sess, err := session.NewSession() +func ExampleCloudFormation_ListExports() { + sess := session.Must(session.NewSession()) + + svc := cloudformation.New(sess) + + params := &cloudformation.ListExportsInput{ + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListExports(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudFormation_ListImports() { + sess := session.Must(session.NewSession()) + + svc := cloudformation.New(sess) + + params := &cloudformation.ListImportsInput{ + ExportName: aws.String("ExportName"), // Required + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListImports(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudFormation_ListStackResources() { + sess := session.Must(session.NewSession()) + svc := cloudformation.New(sess) params := &cloudformation.ListStackResourcesInput{ @@ -588,11 +562,7 @@ func ExampleCloudFormation_ListStackResources() { } func ExampleCloudFormation_ListStacks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -617,11 +587,7 @@ func ExampleCloudFormation_ListStacks() { } func ExampleCloudFormation_SetStackPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -644,11 +610,7 @@ func ExampleCloudFormation_SetStackPolicy() { } func ExampleCloudFormation_SignalResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -672,11 +634,7 @@ func ExampleCloudFormation_SignalResource() { } func ExampleCloudFormation_UpdateStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) @@ -732,11 +690,7 @@ func ExampleCloudFormation_UpdateStack() { } func ExampleCloudFormation_ValidateTemplate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudformation.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/service.go index bd9d2917e..0591a3204 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/service.go @@ -11,11 +11,12 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/query" ) -// AWS CloudFormation enables you to create and manage AWS infrastructure deployments -// predictably and repeatedly. AWS CloudFormation helps you leverage AWS products -// such as Amazon EC2, EBS, Amazon SNS, ELB, and Auto Scaling to build highly-reliable, -// highly scalable, cost effective applications without worrying about creating -// and configuring the underlying AWS infrastructure. +// AWS CloudFormation allows you to create and manage AWS infrastructure deployments +// predictably and repeatedly. You can use AWS CloudFormation to leverage AWS +// products, such as Amazon Elastic Compute Cloud, Amazon Elastic Block Store, +// Amazon Simple Notification Service, Elastic Load Balancing, and Auto Scaling +// to build highly-reliable, highly scalable, cost-effective applications without +// creating or configuring the underlying AWS infrastructure. // // With AWS CloudFormation, you declare all of your resources and dependencies // in a template file. The template defines a collection of resources as a single @@ -23,14 +24,15 @@ import ( // of the stack together and manages all dependencies between the resources // for you. // -// For more information about this product, go to the CloudFormation Product -// Page (http://aws.amazon.com/cloudformation/). +// For more information about AWS CloudFormation, see the AWS CloudFormation +// Product Page (http://aws.amazon.com/cloudformation/). // -// Amazon CloudFormation makes use of other AWS products. If you need additional -// technical information about a specific AWS product, you can find the product's -// technical documentation at http://docs.aws.amazon.com/ (http://docs.aws.amazon.com/). -//The service client's operations are safe to be used concurrently. +// Amazon CloudFormation makes use of other AWS products. For additional technical +// information about a specific AWS product, see its technical documentation +// (http://docs.aws.amazon.com/). +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15 type CloudFormation struct { *client.Client } @@ -41,8 +43,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "cloudformation" +// Service information constants +const ( + ServiceName = "cloudformation" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the CloudFormation client with a session. // If additional configuration is needed for the client instance use the optional @@ -55,17 +60,18 @@ const ServiceName = "cloudformation" // // Create a CloudFormation client with additional configuration // svc := cloudformation.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudFormation { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CloudFormation { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CloudFormation { svc := &CloudFormation{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2010-05-15", diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/waiters.go index 62744e3d3..5960e9443 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/waiters.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/waiters.go @@ -34,24 +34,12 @@ func (c *CloudFormation) WaitUntilStackCreateComplete(input *DescribeStacksInput Argument: "Stacks[].StackStatus", Expected: "DELETE_COMPLETE", }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "DELETE_IN_PROGRESS", - }, { State: "failure", Matcher: "pathAny", Argument: "Stacks[].StackStatus", Expected: "DELETE_FAILED", }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "ROLLBACK_COMPLETE", - }, { State: "failure", Matcher: "pathAny", @@ -62,7 +50,7 @@ func (c *CloudFormation) WaitUntilStackCreateComplete(input *DescribeStacksInput State: "failure", Matcher: "pathAny", Argument: "Stacks[].StackStatus", - Expected: "ROLLBACK_IN_PROGRESS", + Expected: "ROLLBACK_COMPLETE", }, { State: "failure", @@ -109,72 +97,18 @@ func (c *CloudFormation) WaitUntilStackDeleteComplete(input *DescribeStacksInput Argument: "Stacks[].StackStatus", Expected: "DELETE_FAILED", }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "CREATE_COMPLETE", - }, { State: "failure", Matcher: "pathAny", Argument: "Stacks[].StackStatus", Expected: "CREATE_FAILED", }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "CREATE_IN_PROGRESS", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "ROLLBACK_COMPLETE", - }, { State: "failure", Matcher: "pathAny", Argument: "Stacks[].StackStatus", Expected: "ROLLBACK_FAILED", }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "ROLLBACK_IN_PROGRESS", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_COMPLETE", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_COMPLETE_CLEANUP_IN_PROGRESS", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_IN_PROGRESS", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_ROLLBACK_COMPLETE", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS", - }, { State: "failure", Matcher: "pathAny", @@ -253,12 +187,6 @@ func (c *CloudFormation) WaitUntilStackUpdateComplete(input *DescribeStacksInput Argument: "Stacks[].StackStatus", Expected: "UPDATE_FAILED", }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_ROLLBACK_COMPLETE", - }, { State: "failure", Matcher: "pathAny", @@ -269,13 +197,7 @@ func (c *CloudFormation) WaitUntilStackUpdateComplete(input *DescribeStacksInput State: "failure", Matcher: "pathAny", Argument: "Stacks[].StackStatus", - Expected: "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_ROLLBACK_IN_PROGRESS", + Expected: "UPDATE_ROLLBACK_COMPLETE", }, { State: "failure", diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/api.go index bcc5ed317..17a7eb51a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/api.go @@ -13,7 +13,7 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/restxml" ) -const opCreateCloudFrontOriginAccessIdentity = "CreateCloudFrontOriginAccessIdentity2016_09_29" +const opCreateCloudFrontOriginAccessIdentity = "CreateCloudFrontOriginAccessIdentity2016_11_25" // CreateCloudFrontOriginAccessIdentityRequest generates a "aws/request.Request" representing the // client's request for the CreateCloudFrontOriginAccessIdentity operation. The "output" return @@ -39,20 +39,20 @@ const opCreateCloudFrontOriginAccessIdentity = "CreateCloudFrontOriginAccessIden // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateCloudFrontOriginAccessIdentity func (c *CloudFront) CreateCloudFrontOriginAccessIdentityRequest(input *CreateCloudFrontOriginAccessIdentityInput) (req *request.Request, output *CreateCloudFrontOriginAccessIdentityOutput) { op := &request.Operation{ Name: opCreateCloudFrontOriginAccessIdentity, HTTPMethod: "POST", - HTTPPath: "/2016-09-29/origin-access-identity/cloudfront", + HTTPPath: "/2016-11-25/origin-access-identity/cloudfront", } if input == nil { input = &CreateCloudFrontOriginAccessIdentityInput{} } - req = c.newRequest(op, input, output) output = &CreateCloudFrontOriginAccessIdentityOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -73,33 +73,34 @@ func (c *CloudFront) CreateCloudFrontOriginAccessIdentityRequest(input *CreateCl // API operation CreateCloudFrontOriginAccessIdentity for usage and error information. // // Returned Error Codes: -// * OriginAccessIdentityAlreadyExists +// * ErrCodeOriginAccessIdentityAlreadyExists "OriginAccessIdentityAlreadyExists" // If the CallerReference is a value you already sent in a previous request // to create an identity but the content of the CloudFrontOriginAccessIdentityConfig // is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists // error. // -// * MissingBody +// * ErrCodeMissingBody "MissingBody" // This operation requires a body. Ensure that the body is present and the Content-Type // header is set. // -// * TooManyCloudFrontOriginAccessIdentities +// * ErrCodeTooManyCloudFrontOriginAccessIdentities "TooManyCloudFrontOriginAccessIdentities" // Processing your request would cause you to exceed the maximum number of origin // access identities allowed. // -// * InvalidArgument +// * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // -// * InconsistentQuantities +// * ErrCodeInconsistentQuantities "InconsistentQuantities" // The value of Quantity and the size of Items do not match. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateCloudFrontOriginAccessIdentity func (c *CloudFront) CreateCloudFrontOriginAccessIdentity(input *CreateCloudFrontOriginAccessIdentityInput) (*CreateCloudFrontOriginAccessIdentityOutput, error) { req, out := c.CreateCloudFrontOriginAccessIdentityRequest(input) err := req.Send() return out, err } -const opCreateDistribution = "CreateDistribution2016_09_29" +const opCreateDistribution = "CreateDistribution2016_11_25" // CreateDistributionRequest generates a "aws/request.Request" representing the // client's request for the CreateDistribution operation. The "output" return @@ -125,20 +126,20 @@ const opCreateDistribution = "CreateDistribution2016_09_29" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateDistribution func (c *CloudFront) CreateDistributionRequest(input *CreateDistributionInput) (req *request.Request, output *CreateDistributionOutput) { op := &request.Operation{ Name: opCreateDistribution, HTTPMethod: "POST", - HTTPPath: "/2016-09-29/distribution", + HTTPPath: "/2016-11-25/distribution", } if input == nil { input = &CreateDistributionInput{} } - req = c.newRequest(op, input, output) output = &CreateDistributionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -155,130 +156,128 @@ func (c *CloudFront) CreateDistributionRequest(input *CreateDistributionInput) ( // API operation CreateDistribution for usage and error information. // // Returned Error Codes: -// * CNAMEAlreadyExists - +// * ErrCodeCNAMEAlreadyExists "CNAMEAlreadyExists" // -// * DistributionAlreadyExists +// * ErrCodeDistributionAlreadyExists "DistributionAlreadyExists" // The caller reference you attempted to create the distribution with is associated // with another distribution. // -// * InvalidOrigin +// * ErrCodeInvalidOrigin "InvalidOrigin" // The Amazon S3 origin server specified does not refer to a valid Amazon S3 // bucket. // -// * InvalidOriginAccessIdentity +// * ErrCodeInvalidOriginAccessIdentity "InvalidOriginAccessIdentity" // The origin access identity is not valid or doesn't exist. // -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// * TooManyTrustedSigners +// * ErrCodeTooManyTrustedSigners "TooManyTrustedSigners" // Your request contains more trusted signers than are allowed per distribution. // -// * TrustedSignerDoesNotExist +// * ErrCodeTrustedSignerDoesNotExist "TrustedSignerDoesNotExist" // One or more of your trusted signers do not exist. // -// * InvalidViewerCertificate - +// * ErrCodeInvalidViewerCertificate "InvalidViewerCertificate" // -// * InvalidMinimumProtocolVersion - +// * ErrCodeInvalidMinimumProtocolVersion "InvalidMinimumProtocolVersion" // -// * MissingBody +// * ErrCodeMissingBody "MissingBody" // This operation requires a body. Ensure that the body is present and the Content-Type // header is set. // -// * TooManyDistributionCNAMEs +// * ErrCodeTooManyDistributionCNAMEs "TooManyDistributionCNAMEs" // Your request contains more CNAMEs than are allowed per distribution. // -// * TooManyDistributions +// * ErrCodeTooManyDistributions "TooManyDistributions" // Processing your request would cause you to exceed the maximum number of distributions // allowed. // -// * InvalidDefaultRootObject +// * ErrCodeInvalidDefaultRootObject "InvalidDefaultRootObject" // The default root object file name is too big or contains an invalid character. // -// * InvalidRelativePath +// * ErrCodeInvalidRelativePath "InvalidRelativePath" // The relative path is too big, is not URL-encoded, or does not begin with // a slash (/). // -// * InvalidErrorCode - +// * ErrCodeInvalidErrorCode "InvalidErrorCode" // -// * InvalidResponseCode - +// * ErrCodeInvalidResponseCode "InvalidResponseCode" // -// * InvalidArgument +// * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // -// * InvalidRequiredProtocol +// * ErrCodeInvalidRequiredProtocol "InvalidRequiredProtocol" // This operation requires the HTTPS protocol. Ensure that you specify the HTTPS // protocol in your request, or omit the RequiredProtocols element from your // distribution configuration. // -// * NoSuchOrigin +// * ErrCodeNoSuchOrigin "NoSuchOrigin" // No origin exists with the specified Origin Id. // -// * TooManyOrigins +// * ErrCodeTooManyOrigins "TooManyOrigins" // You cannot create more origins for the distribution. // -// * TooManyCacheBehaviors +// * ErrCodeTooManyCacheBehaviors "TooManyCacheBehaviors" // You cannot create more cache behaviors for the distribution. // -// * TooManyCookieNamesInWhiteList +// * ErrCodeTooManyCookieNamesInWhiteList "TooManyCookieNamesInWhiteList" // Your request contains more cookie names in the whitelist than are allowed // per cache behavior. // -// * InvalidForwardCookies +// * ErrCodeInvalidForwardCookies "InvalidForwardCookies" // Your request contains forward cookies option which doesn't match with the // expectation for the whitelisted list of cookie names. Either list of cookie // names has been specified when not allowed or list of cookie names is missing // when expected. // -// * TooManyHeadersInForwardedValues - +// * ErrCodeTooManyHeadersInForwardedValues "TooManyHeadersInForwardedValues" // -// * InvalidHeadersForS3Origin - +// * ErrCodeInvalidHeadersForS3Origin "InvalidHeadersForS3Origin" // -// * InconsistentQuantities +// * ErrCodeInconsistentQuantities "InconsistentQuantities" // The value of Quantity and the size of Items do not match. // -// * TooManyCertificates +// * ErrCodeTooManyCertificates "TooManyCertificates" // You cannot create anymore custom SSL/TLS certificates. // -// * InvalidLocationCode - +// * ErrCodeInvalidLocationCode "InvalidLocationCode" // -// * InvalidGeoRestrictionParameter - +// * ErrCodeInvalidGeoRestrictionParameter "InvalidGeoRestrictionParameter" // -// * InvalidProtocolSettings +// * ErrCodeInvalidProtocolSettings "InvalidProtocolSettings" // You cannot specify SSLv3 as the minimum protocol version if you only want // to support only clients that support Server Name Indication (SNI). // -// * InvalidTTLOrder - +// * ErrCodeInvalidTTLOrder "InvalidTTLOrder" // -// * InvalidWebACLId - +// * ErrCodeInvalidWebACLId "InvalidWebACLId" // -// * TooManyOriginCustomHeaders - +// * ErrCodeTooManyOriginCustomHeaders "TooManyOriginCustomHeaders" // -// * TooManyQueryStringParameters - +// * ErrCodeTooManyQueryStringParameters "TooManyQueryStringParameters" // -// * InvalidQueryStringParameters - +// * ErrCodeInvalidQueryStringParameters "InvalidQueryStringParameters" +// +// * ErrCodeTooManyDistributionsWithLambdaAssociations "TooManyDistributionsWithLambdaAssociations" +// Processing your request would cause the maximum number of distributions with +// Lambda function associations per owner to be exceeded. +// +// * ErrCodeTooManyLambdaFunctionAssociations "TooManyLambdaFunctionAssociations" +// Your request contains more Lambda function associations than are allowed +// per distribution. // +// * ErrCodeInvalidLambdaFunctionAssociation "InvalidLambdaFunctionAssociation" +// The specified Lambda function association is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateDistribution func (c *CloudFront) CreateDistribution(input *CreateDistributionInput) (*CreateDistributionOutput, error) { req, out := c.CreateDistributionRequest(input) err := req.Send() return out, err } -const opCreateDistributionWithTags = "CreateDistributionWithTags2016_09_29" +const opCreateDistributionWithTags = "CreateDistributionWithTags2016_11_25" // CreateDistributionWithTagsRequest generates a "aws/request.Request" representing the // client's request for the CreateDistributionWithTags operation. The "output" return @@ -304,20 +303,20 @@ const opCreateDistributionWithTags = "CreateDistributionWithTags2016_09_29" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateDistributionWithTags func (c *CloudFront) CreateDistributionWithTagsRequest(input *CreateDistributionWithTagsInput) (req *request.Request, output *CreateDistributionWithTagsOutput) { op := &request.Operation{ Name: opCreateDistributionWithTags, HTTPMethod: "POST", - HTTPPath: "/2016-09-29/distribution?WithTags", + HTTPPath: "/2016-11-25/distribution?WithTags", } if input == nil { input = &CreateDistributionWithTagsInput{} } - req = c.newRequest(op, input, output) output = &CreateDistributionWithTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -333,133 +332,130 @@ func (c *CloudFront) CreateDistributionWithTagsRequest(input *CreateDistribution // API operation CreateDistributionWithTags for usage and error information. // // Returned Error Codes: -// * CNAMEAlreadyExists - +// * ErrCodeCNAMEAlreadyExists "CNAMEAlreadyExists" // -// * DistributionAlreadyExists +// * ErrCodeDistributionAlreadyExists "DistributionAlreadyExists" // The caller reference you attempted to create the distribution with is associated // with another distribution. // -// * InvalidOrigin +// * ErrCodeInvalidOrigin "InvalidOrigin" // The Amazon S3 origin server specified does not refer to a valid Amazon S3 // bucket. // -// * InvalidOriginAccessIdentity +// * ErrCodeInvalidOriginAccessIdentity "InvalidOriginAccessIdentity" // The origin access identity is not valid or doesn't exist. // -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// * TooManyTrustedSigners +// * ErrCodeTooManyTrustedSigners "TooManyTrustedSigners" // Your request contains more trusted signers than are allowed per distribution. // -// * TrustedSignerDoesNotExist +// * ErrCodeTrustedSignerDoesNotExist "TrustedSignerDoesNotExist" // One or more of your trusted signers do not exist. // -// * InvalidViewerCertificate - +// * ErrCodeInvalidViewerCertificate "InvalidViewerCertificate" // -// * InvalidMinimumProtocolVersion - +// * ErrCodeInvalidMinimumProtocolVersion "InvalidMinimumProtocolVersion" // -// * MissingBody +// * ErrCodeMissingBody "MissingBody" // This operation requires a body. Ensure that the body is present and the Content-Type // header is set. // -// * TooManyDistributionCNAMEs +// * ErrCodeTooManyDistributionCNAMEs "TooManyDistributionCNAMEs" // Your request contains more CNAMEs than are allowed per distribution. // -// * TooManyDistributions +// * ErrCodeTooManyDistributions "TooManyDistributions" // Processing your request would cause you to exceed the maximum number of distributions // allowed. // -// * InvalidDefaultRootObject +// * ErrCodeInvalidDefaultRootObject "InvalidDefaultRootObject" // The default root object file name is too big or contains an invalid character. // -// * InvalidRelativePath +// * ErrCodeInvalidRelativePath "InvalidRelativePath" // The relative path is too big, is not URL-encoded, or does not begin with // a slash (/). // -// * InvalidErrorCode - +// * ErrCodeInvalidErrorCode "InvalidErrorCode" // -// * InvalidResponseCode - +// * ErrCodeInvalidResponseCode "InvalidResponseCode" // -// * InvalidArgument +// * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // -// * InvalidRequiredProtocol +// * ErrCodeInvalidRequiredProtocol "InvalidRequiredProtocol" // This operation requires the HTTPS protocol. Ensure that you specify the HTTPS // protocol in your request, or omit the RequiredProtocols element from your // distribution configuration. // -// * NoSuchOrigin +// * ErrCodeNoSuchOrigin "NoSuchOrigin" // No origin exists with the specified Origin Id. // -// * TooManyOrigins +// * ErrCodeTooManyOrigins "TooManyOrigins" // You cannot create more origins for the distribution. // -// * TooManyCacheBehaviors +// * ErrCodeTooManyCacheBehaviors "TooManyCacheBehaviors" // You cannot create more cache behaviors for the distribution. // -// * TooManyCookieNamesInWhiteList +// * ErrCodeTooManyCookieNamesInWhiteList "TooManyCookieNamesInWhiteList" // Your request contains more cookie names in the whitelist than are allowed // per cache behavior. // -// * InvalidForwardCookies +// * ErrCodeInvalidForwardCookies "InvalidForwardCookies" // Your request contains forward cookies option which doesn't match with the // expectation for the whitelisted list of cookie names. Either list of cookie // names has been specified when not allowed or list of cookie names is missing // when expected. // -// * TooManyHeadersInForwardedValues - +// * ErrCodeTooManyHeadersInForwardedValues "TooManyHeadersInForwardedValues" // -// * InvalidHeadersForS3Origin - +// * ErrCodeInvalidHeadersForS3Origin "InvalidHeadersForS3Origin" // -// * InconsistentQuantities +// * ErrCodeInconsistentQuantities "InconsistentQuantities" // The value of Quantity and the size of Items do not match. // -// * TooManyCertificates +// * ErrCodeTooManyCertificates "TooManyCertificates" // You cannot create anymore custom SSL/TLS certificates. // -// * InvalidLocationCode - +// * ErrCodeInvalidLocationCode "InvalidLocationCode" // -// * InvalidGeoRestrictionParameter - +// * ErrCodeInvalidGeoRestrictionParameter "InvalidGeoRestrictionParameter" // -// * InvalidProtocolSettings +// * ErrCodeInvalidProtocolSettings "InvalidProtocolSettings" // You cannot specify SSLv3 as the minimum protocol version if you only want // to support only clients that support Server Name Indication (SNI). // -// * InvalidTTLOrder - +// * ErrCodeInvalidTTLOrder "InvalidTTLOrder" // -// * InvalidWebACLId - +// * ErrCodeInvalidWebACLId "InvalidWebACLId" // -// * TooManyOriginCustomHeaders - +// * ErrCodeTooManyOriginCustomHeaders "TooManyOriginCustomHeaders" // -// * InvalidTagging - +// * ErrCodeInvalidTagging "InvalidTagging" // -// * TooManyQueryStringParameters - +// * ErrCodeTooManyQueryStringParameters "TooManyQueryStringParameters" // -// * InvalidQueryStringParameters - +// * ErrCodeInvalidQueryStringParameters "InvalidQueryStringParameters" +// +// * ErrCodeTooManyDistributionsWithLambdaAssociations "TooManyDistributionsWithLambdaAssociations" +// Processing your request would cause the maximum number of distributions with +// Lambda function associations per owner to be exceeded. +// +// * ErrCodeTooManyLambdaFunctionAssociations "TooManyLambdaFunctionAssociations" +// Your request contains more Lambda function associations than are allowed +// per distribution. // +// * ErrCodeInvalidLambdaFunctionAssociation "InvalidLambdaFunctionAssociation" +// The specified Lambda function association is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateDistributionWithTags func (c *CloudFront) CreateDistributionWithTags(input *CreateDistributionWithTagsInput) (*CreateDistributionWithTagsOutput, error) { req, out := c.CreateDistributionWithTagsRequest(input) err := req.Send() return out, err } -const opCreateInvalidation = "CreateInvalidation2016_09_29" +const opCreateInvalidation = "CreateInvalidation2016_11_25" // CreateInvalidationRequest generates a "aws/request.Request" representing the // client's request for the CreateInvalidation operation. The "output" return @@ -485,20 +481,20 @@ const opCreateInvalidation = "CreateInvalidation2016_09_29" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateInvalidation func (c *CloudFront) CreateInvalidationRequest(input *CreateInvalidationInput) (req *request.Request, output *CreateInvalidationOutput) { op := &request.Operation{ Name: opCreateInvalidation, HTTPMethod: "POST", - HTTPPath: "/2016-09-29/distribution/{DistributionId}/invalidation", + HTTPPath: "/2016-11-25/distribution/{DistributionId}/invalidation", } if input == nil { input = &CreateInvalidationInput{} } - req = c.newRequest(op, input, output) output = &CreateInvalidationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -514,36 +510,36 @@ func (c *CloudFront) CreateInvalidationRequest(input *CreateInvalidationInput) ( // API operation CreateInvalidation for usage and error information. // // Returned Error Codes: -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// * MissingBody +// * ErrCodeMissingBody "MissingBody" // This operation requires a body. Ensure that the body is present and the Content-Type // header is set. // -// * InvalidArgument +// * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // -// * NoSuchDistribution +// * ErrCodeNoSuchDistribution "NoSuchDistribution" // The specified distribution does not exist. // -// * BatchTooLarge - +// * ErrCodeBatchTooLarge "BatchTooLarge" // -// * TooManyInvalidationsInProgress +// * ErrCodeTooManyInvalidationsInProgress "TooManyInvalidationsInProgress" // You have exceeded the maximum number of allowable InProgress invalidation // batch requests, or invalidation objects. // -// * InconsistentQuantities +// * ErrCodeInconsistentQuantities "InconsistentQuantities" // The value of Quantity and the size of Items do not match. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateInvalidation func (c *CloudFront) CreateInvalidation(input *CreateInvalidationInput) (*CreateInvalidationOutput, error) { req, out := c.CreateInvalidationRequest(input) err := req.Send() return out, err } -const opCreateStreamingDistribution = "CreateStreamingDistribution2016_09_29" +const opCreateStreamingDistribution = "CreateStreamingDistribution2016_11_25" // CreateStreamingDistributionRequest generates a "aws/request.Request" representing the // client's request for the CreateStreamingDistribution operation. The "output" return @@ -569,20 +565,20 @@ const opCreateStreamingDistribution = "CreateStreamingDistribution2016_09_29" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateStreamingDistribution func (c *CloudFront) CreateStreamingDistributionRequest(input *CreateStreamingDistributionInput) (req *request.Request, output *CreateStreamingDistributionOutput) { op := &request.Operation{ Name: opCreateStreamingDistribution, HTTPMethod: "POST", - HTTPPath: "/2016-09-29/streaming-distribution", + HTTPPath: "/2016-11-25/streaming-distribution", } if input == nil { input = &CreateStreamingDistributionInput{} } - req = c.newRequest(op, input, output) output = &CreateStreamingDistributionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -606,7 +602,7 @@ func (c *CloudFront) CreateStreamingDistributionRequest(input *CreateStreamingDi // (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-rtmp.html) // in the Amazon CloudFront Developer Guide. // -// Beginning with the 2012-05-05 version of the CloudFront API, we made substantial +// Beginning with the 2012-05-05 version of the CloudFront API, we made substantial // changes to the format of the XML document that you include in the request // body when you create or update a web distribution or an RTMP distribution, // and when you invalidate objects. With previous versions of the API, we discovered @@ -625,52 +621,50 @@ func (c *CloudFront) CreateStreamingDistributionRequest(input *CreateStreamingDi // API operation CreateStreamingDistribution for usage and error information. // // Returned Error Codes: -// * CNAMEAlreadyExists - +// * ErrCodeCNAMEAlreadyExists "CNAMEAlreadyExists" // -// * StreamingDistributionAlreadyExists - +// * ErrCodeStreamingDistributionAlreadyExists "StreamingDistributionAlreadyExists" // -// * InvalidOrigin +// * ErrCodeInvalidOrigin "InvalidOrigin" // The Amazon S3 origin server specified does not refer to a valid Amazon S3 // bucket. // -// * InvalidOriginAccessIdentity +// * ErrCodeInvalidOriginAccessIdentity "InvalidOriginAccessIdentity" // The origin access identity is not valid or doesn't exist. // -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// * TooManyTrustedSigners +// * ErrCodeTooManyTrustedSigners "TooManyTrustedSigners" // Your request contains more trusted signers than are allowed per distribution. // -// * TrustedSignerDoesNotExist +// * ErrCodeTrustedSignerDoesNotExist "TrustedSignerDoesNotExist" // One or more of your trusted signers do not exist. // -// * MissingBody +// * ErrCodeMissingBody "MissingBody" // This operation requires a body. Ensure that the body is present and the Content-Type // header is set. // -// * TooManyStreamingDistributionCNAMEs - +// * ErrCodeTooManyStreamingDistributionCNAMEs "TooManyStreamingDistributionCNAMEs" // -// * TooManyStreamingDistributions +// * ErrCodeTooManyStreamingDistributions "TooManyStreamingDistributions" // Processing your request would cause you to exceed the maximum number of streaming // distributions allowed. // -// * InvalidArgument +// * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // -// * InconsistentQuantities +// * ErrCodeInconsistentQuantities "InconsistentQuantities" // The value of Quantity and the size of Items do not match. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateStreamingDistribution func (c *CloudFront) CreateStreamingDistribution(input *CreateStreamingDistributionInput) (*CreateStreamingDistributionOutput, error) { req, out := c.CreateStreamingDistributionRequest(input) err := req.Send() return out, err } -const opCreateStreamingDistributionWithTags = "CreateStreamingDistributionWithTags2016_09_29" +const opCreateStreamingDistributionWithTags = "CreateStreamingDistributionWithTags2016_11_25" // CreateStreamingDistributionWithTagsRequest generates a "aws/request.Request" representing the // client's request for the CreateStreamingDistributionWithTags operation. The "output" return @@ -696,20 +690,20 @@ const opCreateStreamingDistributionWithTags = "CreateStreamingDistributionWithTa // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateStreamingDistributionWithTags func (c *CloudFront) CreateStreamingDistributionWithTagsRequest(input *CreateStreamingDistributionWithTagsInput) (req *request.Request, output *CreateStreamingDistributionWithTagsOutput) { op := &request.Operation{ Name: opCreateStreamingDistributionWithTags, HTTPMethod: "POST", - HTTPPath: "/2016-09-29/streaming-distribution?WithTags", + HTTPPath: "/2016-11-25/streaming-distribution?WithTags", } if input == nil { input = &CreateStreamingDistributionWithTagsInput{} } - req = c.newRequest(op, input, output) output = &CreateStreamingDistributionWithTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -725,55 +719,52 @@ func (c *CloudFront) CreateStreamingDistributionWithTagsRequest(input *CreateStr // API operation CreateStreamingDistributionWithTags for usage and error information. // // Returned Error Codes: -// * CNAMEAlreadyExists - +// * ErrCodeCNAMEAlreadyExists "CNAMEAlreadyExists" // -// * StreamingDistributionAlreadyExists - +// * ErrCodeStreamingDistributionAlreadyExists "StreamingDistributionAlreadyExists" // -// * InvalidOrigin +// * ErrCodeInvalidOrigin "InvalidOrigin" // The Amazon S3 origin server specified does not refer to a valid Amazon S3 // bucket. // -// * InvalidOriginAccessIdentity +// * ErrCodeInvalidOriginAccessIdentity "InvalidOriginAccessIdentity" // The origin access identity is not valid or doesn't exist. // -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// * TooManyTrustedSigners +// * ErrCodeTooManyTrustedSigners "TooManyTrustedSigners" // Your request contains more trusted signers than are allowed per distribution. // -// * TrustedSignerDoesNotExist +// * ErrCodeTrustedSignerDoesNotExist "TrustedSignerDoesNotExist" // One or more of your trusted signers do not exist. // -// * MissingBody +// * ErrCodeMissingBody "MissingBody" // This operation requires a body. Ensure that the body is present and the Content-Type // header is set. // -// * TooManyStreamingDistributionCNAMEs - +// * ErrCodeTooManyStreamingDistributionCNAMEs "TooManyStreamingDistributionCNAMEs" // -// * TooManyStreamingDistributions +// * ErrCodeTooManyStreamingDistributions "TooManyStreamingDistributions" // Processing your request would cause you to exceed the maximum number of streaming // distributions allowed. // -// * InvalidArgument +// * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // -// * InconsistentQuantities +// * ErrCodeInconsistentQuantities "InconsistentQuantities" // The value of Quantity and the size of Items do not match. // -// * InvalidTagging - +// * ErrCodeInvalidTagging "InvalidTagging" // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateStreamingDistributionWithTags func (c *CloudFront) CreateStreamingDistributionWithTags(input *CreateStreamingDistributionWithTagsInput) (*CreateStreamingDistributionWithTagsOutput, error) { req, out := c.CreateStreamingDistributionWithTagsRequest(input) err := req.Send() return out, err } -const opDeleteCloudFrontOriginAccessIdentity = "DeleteCloudFrontOriginAccessIdentity2016_09_29" +const opDeleteCloudFrontOriginAccessIdentity = "DeleteCloudFrontOriginAccessIdentity2016_11_25" // DeleteCloudFrontOriginAccessIdentityRequest generates a "aws/request.Request" representing the // client's request for the DeleteCloudFrontOriginAccessIdentity operation. The "output" return @@ -799,22 +790,22 @@ const opDeleteCloudFrontOriginAccessIdentity = "DeleteCloudFrontOriginAccessIden // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/DeleteCloudFrontOriginAccessIdentity func (c *CloudFront) DeleteCloudFrontOriginAccessIdentityRequest(input *DeleteCloudFrontOriginAccessIdentityInput) (req *request.Request, output *DeleteCloudFrontOriginAccessIdentityOutput) { op := &request.Operation{ Name: opDeleteCloudFrontOriginAccessIdentity, HTTPMethod: "DELETE", - HTTPPath: "/2016-09-29/origin-access-identity/cloudfront/{Id}", + HTTPPath: "/2016-11-25/origin-access-identity/cloudfront/{Id}", } if input == nil { input = &DeleteCloudFrontOriginAccessIdentityInput{} } + output = &DeleteCloudFrontOriginAccessIdentityOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteCloudFrontOriginAccessIdentityOutput{} - req.Data = output return } @@ -830,29 +821,29 @@ func (c *CloudFront) DeleteCloudFrontOriginAccessIdentityRequest(input *DeleteCl // API operation DeleteCloudFrontOriginAccessIdentity for usage and error information. // // Returned Error Codes: -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// * InvalidIfMatchVersion +// * ErrCodeInvalidIfMatchVersion "InvalidIfMatchVersion" // The If-Match version is missing or not valid for the distribution. // -// * NoSuchCloudFrontOriginAccessIdentity +// * ErrCodeNoSuchCloudFrontOriginAccessIdentity "NoSuchCloudFrontOriginAccessIdentity" // The specified origin access identity does not exist. // -// * PreconditionFailed +// * ErrCodePreconditionFailed "PreconditionFailed" // The precondition given in one or more of the request-header fields evaluated // to false. // -// * OriginAccessIdentityInUse - +// * ErrCodeOriginAccessIdentityInUse "OriginAccessIdentityInUse" // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/DeleteCloudFrontOriginAccessIdentity func (c *CloudFront) DeleteCloudFrontOriginAccessIdentity(input *DeleteCloudFrontOriginAccessIdentityInput) (*DeleteCloudFrontOriginAccessIdentityOutput, error) { req, out := c.DeleteCloudFrontOriginAccessIdentityRequest(input) err := req.Send() return out, err } -const opDeleteDistribution = "DeleteDistribution2016_09_29" +const opDeleteDistribution = "DeleteDistribution2016_11_25" // DeleteDistributionRequest generates a "aws/request.Request" representing the // client's request for the DeleteDistribution operation. The "output" return @@ -878,22 +869,22 @@ const opDeleteDistribution = "DeleteDistribution2016_09_29" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/DeleteDistribution func (c *CloudFront) DeleteDistributionRequest(input *DeleteDistributionInput) (req *request.Request, output *DeleteDistributionOutput) { op := &request.Operation{ Name: opDeleteDistribution, HTTPMethod: "DELETE", - HTTPPath: "/2016-09-29/distribution/{Id}", + HTTPPath: "/2016-11-25/distribution/{Id}", } if input == nil { input = &DeleteDistributionInput{} } + output = &DeleteDistributionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteDistributionOutput{} - req.Data = output return } @@ -909,29 +900,29 @@ func (c *CloudFront) DeleteDistributionRequest(input *DeleteDistributionInput) ( // API operation DeleteDistribution for usage and error information. // // Returned Error Codes: -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// * DistributionNotDisabled - +// * ErrCodeDistributionNotDisabled "DistributionNotDisabled" // -// * InvalidIfMatchVersion +// * ErrCodeInvalidIfMatchVersion "InvalidIfMatchVersion" // The If-Match version is missing or not valid for the distribution. // -// * NoSuchDistribution +// * ErrCodeNoSuchDistribution "NoSuchDistribution" // The specified distribution does not exist. // -// * PreconditionFailed +// * ErrCodePreconditionFailed "PreconditionFailed" // The precondition given in one or more of the request-header fields evaluated // to false. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/DeleteDistribution func (c *CloudFront) DeleteDistribution(input *DeleteDistributionInput) (*DeleteDistributionOutput, error) { req, out := c.DeleteDistributionRequest(input) err := req.Send() return out, err } -const opDeleteStreamingDistribution = "DeleteStreamingDistribution2016_09_29" +const opDeleteStreamingDistribution = "DeleteStreamingDistribution2016_11_25" // DeleteStreamingDistributionRequest generates a "aws/request.Request" representing the // client's request for the DeleteStreamingDistribution operation. The "output" return @@ -957,22 +948,22 @@ const opDeleteStreamingDistribution = "DeleteStreamingDistribution2016_09_29" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/DeleteStreamingDistribution func (c *CloudFront) DeleteStreamingDistributionRequest(input *DeleteStreamingDistributionInput) (req *request.Request, output *DeleteStreamingDistributionOutput) { op := &request.Operation{ Name: opDeleteStreamingDistribution, HTTPMethod: "DELETE", - HTTPPath: "/2016-09-29/streaming-distribution/{Id}", + HTTPPath: "/2016-11-25/streaming-distribution/{Id}", } if input == nil { input = &DeleteStreamingDistributionInput{} } + output = &DeleteStreamingDistributionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteStreamingDistributionOutput{} - req.Data = output return } @@ -981,38 +972,37 @@ func (c *CloudFront) DeleteStreamingDistributionRequest(input *DeleteStreamingDi // Delete a streaming distribution. To delete an RTMP distribution using the // CloudFront API, perform the following steps. // -// To delete an RTMP distribution using the CloudFront API: +// To delete an RTMP distribution using the CloudFront API: // -// Disable the RTMP distribution. +// Disable the RTMP distribution. // -// Submit a GET Streaming Distribution Config request to get the current -// configuration and the Etag header for the distribution. +// Submit a GET Streaming Distribution Config request to get the current configuration +// and the Etag header for the distribution. // -// Update the XML document that was returned in the response to your GET -// Streaming Distribution Config request to change the value of Enabled to false. +// Update the XML document that was returned in the response to your GET Streaming +// Distribution Config request to change the value of Enabled to false. // -// Submit a PUT Streaming Distribution Config request to update the configuration +// Submit a PUT Streaming Distribution Config request to update the configuration // for your distribution. In the request body, include the XML document that // you updated in Step 3. Then set the value of the HTTP If-Match header to // the value of the ETag header that CloudFront returned when you submitted // the GET Streaming Distribution Config request in Step 2. // -// Review the response to the PUT Streaming Distribution Config request to -// confirm that the distribution was successfully disabled. +// Review the response to the PUT Streaming Distribution Config request to confirm +// that the distribution was successfully disabled. // -// Submit a GET Streaming Distribution Config request to confirm that your -// changes have propagated. When propagation is complete, the value of Status -// is Deployed. +// Submit a GET Streaming Distribution Config request to confirm that your changes +// have propagated. When propagation is complete, the value of Status is Deployed. // -// Submit a DELETE Streaming Distribution request. Set the value of the HTTP +// Submit a DELETE Streaming Distribution request. Set the value of the HTTP // If-Match header to the value of the ETag header that CloudFront returned // when you submitted the GET Streaming Distribution Config request in Step // 2. // -// Review the response to your DELETE Streaming Distribution request to confirm +// Review the response to your DELETE Streaming Distribution request to confirm // that the distribution was successfully deleted. // -// For information about deleting a distribution using the CloudFront console, +// For information about deleting a distribution using the CloudFront console, // see Deleting a Distribution (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HowToDeleteDistribution.html) // in the Amazon CloudFront Developer Guide. // @@ -1024,29 +1014,29 @@ func (c *CloudFront) DeleteStreamingDistributionRequest(input *DeleteStreamingDi // API operation DeleteStreamingDistribution for usage and error information. // // Returned Error Codes: -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// * StreamingDistributionNotDisabled - +// * ErrCodeStreamingDistributionNotDisabled "StreamingDistributionNotDisabled" // -// * InvalidIfMatchVersion +// * ErrCodeInvalidIfMatchVersion "InvalidIfMatchVersion" // The If-Match version is missing or not valid for the distribution. // -// * NoSuchStreamingDistribution +// * ErrCodeNoSuchStreamingDistribution "NoSuchStreamingDistribution" // The specified streaming distribution does not exist. // -// * PreconditionFailed +// * ErrCodePreconditionFailed "PreconditionFailed" // The precondition given in one or more of the request-header fields evaluated // to false. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/DeleteStreamingDistribution func (c *CloudFront) DeleteStreamingDistribution(input *DeleteStreamingDistributionInput) (*DeleteStreamingDistributionOutput, error) { req, out := c.DeleteStreamingDistributionRequest(input) err := req.Send() return out, err } -const opGetCloudFrontOriginAccessIdentity = "GetCloudFrontOriginAccessIdentity2016_09_29" +const opGetCloudFrontOriginAccessIdentity = "GetCloudFrontOriginAccessIdentity2016_11_25" // GetCloudFrontOriginAccessIdentityRequest generates a "aws/request.Request" representing the // client's request for the GetCloudFrontOriginAccessIdentity operation. The "output" return @@ -1072,20 +1062,20 @@ const opGetCloudFrontOriginAccessIdentity = "GetCloudFrontOriginAccessIdentity20 // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetCloudFrontOriginAccessIdentity func (c *CloudFront) GetCloudFrontOriginAccessIdentityRequest(input *GetCloudFrontOriginAccessIdentityInput) (req *request.Request, output *GetCloudFrontOriginAccessIdentityOutput) { op := &request.Operation{ Name: opGetCloudFrontOriginAccessIdentity, HTTPMethod: "GET", - HTTPPath: "/2016-09-29/origin-access-identity/cloudfront/{Id}", + HTTPPath: "/2016-11-25/origin-access-identity/cloudfront/{Id}", } if input == nil { input = &GetCloudFrontOriginAccessIdentityInput{} } - req = c.newRequest(op, input, output) output = &GetCloudFrontOriginAccessIdentityOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1101,19 +1091,20 @@ func (c *CloudFront) GetCloudFrontOriginAccessIdentityRequest(input *GetCloudFro // API operation GetCloudFrontOriginAccessIdentity for usage and error information. // // Returned Error Codes: -// * NoSuchCloudFrontOriginAccessIdentity +// * ErrCodeNoSuchCloudFrontOriginAccessIdentity "NoSuchCloudFrontOriginAccessIdentity" // The specified origin access identity does not exist. // -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetCloudFrontOriginAccessIdentity func (c *CloudFront) GetCloudFrontOriginAccessIdentity(input *GetCloudFrontOriginAccessIdentityInput) (*GetCloudFrontOriginAccessIdentityOutput, error) { req, out := c.GetCloudFrontOriginAccessIdentityRequest(input) err := req.Send() return out, err } -const opGetCloudFrontOriginAccessIdentityConfig = "GetCloudFrontOriginAccessIdentityConfig2016_09_29" +const opGetCloudFrontOriginAccessIdentityConfig = "GetCloudFrontOriginAccessIdentityConfig2016_11_25" // GetCloudFrontOriginAccessIdentityConfigRequest generates a "aws/request.Request" representing the // client's request for the GetCloudFrontOriginAccessIdentityConfig operation. The "output" return @@ -1139,20 +1130,20 @@ const opGetCloudFrontOriginAccessIdentityConfig = "GetCloudFrontOriginAccessIden // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetCloudFrontOriginAccessIdentityConfig func (c *CloudFront) GetCloudFrontOriginAccessIdentityConfigRequest(input *GetCloudFrontOriginAccessIdentityConfigInput) (req *request.Request, output *GetCloudFrontOriginAccessIdentityConfigOutput) { op := &request.Operation{ Name: opGetCloudFrontOriginAccessIdentityConfig, HTTPMethod: "GET", - HTTPPath: "/2016-09-29/origin-access-identity/cloudfront/{Id}/config", + HTTPPath: "/2016-11-25/origin-access-identity/cloudfront/{Id}/config", } if input == nil { input = &GetCloudFrontOriginAccessIdentityConfigInput{} } - req = c.newRequest(op, input, output) output = &GetCloudFrontOriginAccessIdentityConfigOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1168,19 +1159,20 @@ func (c *CloudFront) GetCloudFrontOriginAccessIdentityConfigRequest(input *GetCl // API operation GetCloudFrontOriginAccessIdentityConfig for usage and error information. // // Returned Error Codes: -// * NoSuchCloudFrontOriginAccessIdentity +// * ErrCodeNoSuchCloudFrontOriginAccessIdentity "NoSuchCloudFrontOriginAccessIdentity" // The specified origin access identity does not exist. // -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetCloudFrontOriginAccessIdentityConfig func (c *CloudFront) GetCloudFrontOriginAccessIdentityConfig(input *GetCloudFrontOriginAccessIdentityConfigInput) (*GetCloudFrontOriginAccessIdentityConfigOutput, error) { req, out := c.GetCloudFrontOriginAccessIdentityConfigRequest(input) err := req.Send() return out, err } -const opGetDistribution = "GetDistribution2016_09_29" +const opGetDistribution = "GetDistribution2016_11_25" // GetDistributionRequest generates a "aws/request.Request" representing the // client's request for the GetDistribution operation. The "output" return @@ -1206,20 +1198,20 @@ const opGetDistribution = "GetDistribution2016_09_29" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetDistribution func (c *CloudFront) GetDistributionRequest(input *GetDistributionInput) (req *request.Request, output *GetDistributionOutput) { op := &request.Operation{ Name: opGetDistribution, HTTPMethod: "GET", - HTTPPath: "/2016-09-29/distribution/{Id}", + HTTPPath: "/2016-11-25/distribution/{Id}", } if input == nil { input = &GetDistributionInput{} } - req = c.newRequest(op, input, output) output = &GetDistributionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1235,19 +1227,20 @@ func (c *CloudFront) GetDistributionRequest(input *GetDistributionInput) (req *r // API operation GetDistribution for usage and error information. // // Returned Error Codes: -// * NoSuchDistribution +// * ErrCodeNoSuchDistribution "NoSuchDistribution" // The specified distribution does not exist. // -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetDistribution func (c *CloudFront) GetDistribution(input *GetDistributionInput) (*GetDistributionOutput, error) { req, out := c.GetDistributionRequest(input) err := req.Send() return out, err } -const opGetDistributionConfig = "GetDistributionConfig2016_09_29" +const opGetDistributionConfig = "GetDistributionConfig2016_11_25" // GetDistributionConfigRequest generates a "aws/request.Request" representing the // client's request for the GetDistributionConfig operation. The "output" return @@ -1273,20 +1266,20 @@ const opGetDistributionConfig = "GetDistributionConfig2016_09_29" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetDistributionConfig func (c *CloudFront) GetDistributionConfigRequest(input *GetDistributionConfigInput) (req *request.Request, output *GetDistributionConfigOutput) { op := &request.Operation{ Name: opGetDistributionConfig, HTTPMethod: "GET", - HTTPPath: "/2016-09-29/distribution/{Id}/config", + HTTPPath: "/2016-11-25/distribution/{Id}/config", } if input == nil { input = &GetDistributionConfigInput{} } - req = c.newRequest(op, input, output) output = &GetDistributionConfigOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1302,19 +1295,20 @@ func (c *CloudFront) GetDistributionConfigRequest(input *GetDistributionConfigIn // API operation GetDistributionConfig for usage and error information. // // Returned Error Codes: -// * NoSuchDistribution +// * ErrCodeNoSuchDistribution "NoSuchDistribution" // The specified distribution does not exist. // -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetDistributionConfig func (c *CloudFront) GetDistributionConfig(input *GetDistributionConfigInput) (*GetDistributionConfigOutput, error) { req, out := c.GetDistributionConfigRequest(input) err := req.Send() return out, err } -const opGetInvalidation = "GetInvalidation2016_09_29" +const opGetInvalidation = "GetInvalidation2016_11_25" // GetInvalidationRequest generates a "aws/request.Request" representing the // client's request for the GetInvalidation operation. The "output" return @@ -1340,20 +1334,20 @@ const opGetInvalidation = "GetInvalidation2016_09_29" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetInvalidation func (c *CloudFront) GetInvalidationRequest(input *GetInvalidationInput) (req *request.Request, output *GetInvalidationOutput) { op := &request.Operation{ Name: opGetInvalidation, HTTPMethod: "GET", - HTTPPath: "/2016-09-29/distribution/{DistributionId}/invalidation/{Id}", + HTTPPath: "/2016-11-25/distribution/{DistributionId}/invalidation/{Id}", } if input == nil { input = &GetInvalidationInput{} } - req = c.newRequest(op, input, output) output = &GetInvalidationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1369,22 +1363,23 @@ func (c *CloudFront) GetInvalidationRequest(input *GetInvalidationInput) (req *r // API operation GetInvalidation for usage and error information. // // Returned Error Codes: -// * NoSuchInvalidation +// * ErrCodeNoSuchInvalidation "NoSuchInvalidation" // The specified invalidation does not exist. // -// * NoSuchDistribution +// * ErrCodeNoSuchDistribution "NoSuchDistribution" // The specified distribution does not exist. // -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetInvalidation func (c *CloudFront) GetInvalidation(input *GetInvalidationInput) (*GetInvalidationOutput, error) { req, out := c.GetInvalidationRequest(input) err := req.Send() return out, err } -const opGetStreamingDistribution = "GetStreamingDistribution2016_09_29" +const opGetStreamingDistribution = "GetStreamingDistribution2016_11_25" // GetStreamingDistributionRequest generates a "aws/request.Request" representing the // client's request for the GetStreamingDistribution operation. The "output" return @@ -1410,20 +1405,20 @@ const opGetStreamingDistribution = "GetStreamingDistribution2016_09_29" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetStreamingDistribution func (c *CloudFront) GetStreamingDistributionRequest(input *GetStreamingDistributionInput) (req *request.Request, output *GetStreamingDistributionOutput) { op := &request.Operation{ Name: opGetStreamingDistribution, HTTPMethod: "GET", - HTTPPath: "/2016-09-29/streaming-distribution/{Id}", + HTTPPath: "/2016-11-25/streaming-distribution/{Id}", } if input == nil { input = &GetStreamingDistributionInput{} } - req = c.newRequest(op, input, output) output = &GetStreamingDistributionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1440,19 +1435,20 @@ func (c *CloudFront) GetStreamingDistributionRequest(input *GetStreamingDistribu // API operation GetStreamingDistribution for usage and error information. // // Returned Error Codes: -// * NoSuchStreamingDistribution +// * ErrCodeNoSuchStreamingDistribution "NoSuchStreamingDistribution" // The specified streaming distribution does not exist. // -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetStreamingDistribution func (c *CloudFront) GetStreamingDistribution(input *GetStreamingDistributionInput) (*GetStreamingDistributionOutput, error) { req, out := c.GetStreamingDistributionRequest(input) err := req.Send() return out, err } -const opGetStreamingDistributionConfig = "GetStreamingDistributionConfig2016_09_29" +const opGetStreamingDistributionConfig = "GetStreamingDistributionConfig2016_11_25" // GetStreamingDistributionConfigRequest generates a "aws/request.Request" representing the // client's request for the GetStreamingDistributionConfig operation. The "output" return @@ -1478,20 +1474,20 @@ const opGetStreamingDistributionConfig = "GetStreamingDistributionConfig2016_09_ // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetStreamingDistributionConfig func (c *CloudFront) GetStreamingDistributionConfigRequest(input *GetStreamingDistributionConfigInput) (req *request.Request, output *GetStreamingDistributionConfigOutput) { op := &request.Operation{ Name: opGetStreamingDistributionConfig, HTTPMethod: "GET", - HTTPPath: "/2016-09-29/streaming-distribution/{Id}/config", + HTTPPath: "/2016-11-25/streaming-distribution/{Id}/config", } if input == nil { input = &GetStreamingDistributionConfigInput{} } - req = c.newRequest(op, input, output) output = &GetStreamingDistributionConfigOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1507,19 +1503,20 @@ func (c *CloudFront) GetStreamingDistributionConfigRequest(input *GetStreamingDi // API operation GetStreamingDistributionConfig for usage and error information. // // Returned Error Codes: -// * NoSuchStreamingDistribution +// * ErrCodeNoSuchStreamingDistribution "NoSuchStreamingDistribution" // The specified streaming distribution does not exist. // -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetStreamingDistributionConfig func (c *CloudFront) GetStreamingDistributionConfig(input *GetStreamingDistributionConfigInput) (*GetStreamingDistributionConfigOutput, error) { req, out := c.GetStreamingDistributionConfigRequest(input) err := req.Send() return out, err } -const opListCloudFrontOriginAccessIdentities = "ListCloudFrontOriginAccessIdentities2016_09_29" +const opListCloudFrontOriginAccessIdentities = "ListCloudFrontOriginAccessIdentities2016_11_25" // ListCloudFrontOriginAccessIdentitiesRequest generates a "aws/request.Request" representing the // client's request for the ListCloudFrontOriginAccessIdentities operation. The "output" return @@ -1545,11 +1542,12 @@ const opListCloudFrontOriginAccessIdentities = "ListCloudFrontOriginAccessIdenti // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListCloudFrontOriginAccessIdentities func (c *CloudFront) ListCloudFrontOriginAccessIdentitiesRequest(input *ListCloudFrontOriginAccessIdentitiesInput) (req *request.Request, output *ListCloudFrontOriginAccessIdentitiesOutput) { op := &request.Operation{ Name: opListCloudFrontOriginAccessIdentities, HTTPMethod: "GET", - HTTPPath: "/2016-09-29/origin-access-identity/cloudfront", + HTTPPath: "/2016-11-25/origin-access-identity/cloudfront", Paginator: &request.Paginator{ InputTokens: []string{"Marker"}, OutputTokens: []string{"CloudFrontOriginAccessIdentityList.NextMarker"}, @@ -1562,9 +1560,8 @@ func (c *CloudFront) ListCloudFrontOriginAccessIdentitiesRequest(input *ListClou input = &ListCloudFrontOriginAccessIdentitiesInput{} } - req = c.newRequest(op, input, output) output = &ListCloudFrontOriginAccessIdentitiesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1580,9 +1577,10 @@ func (c *CloudFront) ListCloudFrontOriginAccessIdentitiesRequest(input *ListClou // API operation ListCloudFrontOriginAccessIdentities for usage and error information. // // Returned Error Codes: -// * InvalidArgument +// * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListCloudFrontOriginAccessIdentities func (c *CloudFront) ListCloudFrontOriginAccessIdentities(input *ListCloudFrontOriginAccessIdentitiesInput) (*ListCloudFrontOriginAccessIdentitiesOutput, error) { req, out := c.ListCloudFrontOriginAccessIdentitiesRequest(input) err := req.Send() @@ -1614,7 +1612,7 @@ func (c *CloudFront) ListCloudFrontOriginAccessIdentitiesPages(input *ListCloudF }) } -const opListDistributions = "ListDistributions2016_09_29" +const opListDistributions = "ListDistributions2016_11_25" // ListDistributionsRequest generates a "aws/request.Request" representing the // client's request for the ListDistributions operation. The "output" return @@ -1640,11 +1638,12 @@ const opListDistributions = "ListDistributions2016_09_29" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListDistributions func (c *CloudFront) ListDistributionsRequest(input *ListDistributionsInput) (req *request.Request, output *ListDistributionsOutput) { op := &request.Operation{ Name: opListDistributions, HTTPMethod: "GET", - HTTPPath: "/2016-09-29/distribution", + HTTPPath: "/2016-11-25/distribution", Paginator: &request.Paginator{ InputTokens: []string{"Marker"}, OutputTokens: []string{"DistributionList.NextMarker"}, @@ -1657,9 +1656,8 @@ func (c *CloudFront) ListDistributionsRequest(input *ListDistributionsInput) (re input = &ListDistributionsInput{} } - req = c.newRequest(op, input, output) output = &ListDistributionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1675,9 +1673,10 @@ func (c *CloudFront) ListDistributionsRequest(input *ListDistributionsInput) (re // API operation ListDistributions for usage and error information. // // Returned Error Codes: -// * InvalidArgument +// * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListDistributions func (c *CloudFront) ListDistributions(input *ListDistributionsInput) (*ListDistributionsOutput, error) { req, out := c.ListDistributionsRequest(input) err := req.Send() @@ -1709,7 +1708,7 @@ func (c *CloudFront) ListDistributionsPages(input *ListDistributionsInput, fn fu }) } -const opListDistributionsByWebACLId = "ListDistributionsByWebACLId2016_09_29" +const opListDistributionsByWebACLId = "ListDistributionsByWebACLId2016_11_25" // ListDistributionsByWebACLIdRequest generates a "aws/request.Request" representing the // client's request for the ListDistributionsByWebACLId operation. The "output" return @@ -1735,20 +1734,20 @@ const opListDistributionsByWebACLId = "ListDistributionsByWebACLId2016_09_29" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListDistributionsByWebACLId func (c *CloudFront) ListDistributionsByWebACLIdRequest(input *ListDistributionsByWebACLIdInput) (req *request.Request, output *ListDistributionsByWebACLIdOutput) { op := &request.Operation{ Name: opListDistributionsByWebACLId, HTTPMethod: "GET", - HTTPPath: "/2016-09-29/distributionsByWebACLId/{WebACLId}", + HTTPPath: "/2016-11-25/distributionsByWebACLId/{WebACLId}", } if input == nil { input = &ListDistributionsByWebACLIdInput{} } - req = c.newRequest(op, input, output) output = &ListDistributionsByWebACLIdOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1764,19 +1763,19 @@ func (c *CloudFront) ListDistributionsByWebACLIdRequest(input *ListDistributions // API operation ListDistributionsByWebACLId for usage and error information. // // Returned Error Codes: -// * InvalidArgument +// * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // -// * InvalidWebACLId - +// * ErrCodeInvalidWebACLId "InvalidWebACLId" // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListDistributionsByWebACLId func (c *CloudFront) ListDistributionsByWebACLId(input *ListDistributionsByWebACLIdInput) (*ListDistributionsByWebACLIdOutput, error) { req, out := c.ListDistributionsByWebACLIdRequest(input) err := req.Send() return out, err } -const opListInvalidations = "ListInvalidations2016_09_29" +const opListInvalidations = "ListInvalidations2016_11_25" // ListInvalidationsRequest generates a "aws/request.Request" representing the // client's request for the ListInvalidations operation. The "output" return @@ -1802,11 +1801,12 @@ const opListInvalidations = "ListInvalidations2016_09_29" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListInvalidations func (c *CloudFront) ListInvalidationsRequest(input *ListInvalidationsInput) (req *request.Request, output *ListInvalidationsOutput) { op := &request.Operation{ Name: opListInvalidations, HTTPMethod: "GET", - HTTPPath: "/2016-09-29/distribution/{DistributionId}/invalidation", + HTTPPath: "/2016-11-25/distribution/{DistributionId}/invalidation", Paginator: &request.Paginator{ InputTokens: []string{"Marker"}, OutputTokens: []string{"InvalidationList.NextMarker"}, @@ -1819,9 +1819,8 @@ func (c *CloudFront) ListInvalidationsRequest(input *ListInvalidationsInput) (re input = &ListInvalidationsInput{} } - req = c.newRequest(op, input, output) output = &ListInvalidationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1837,15 +1836,16 @@ func (c *CloudFront) ListInvalidationsRequest(input *ListInvalidationsInput) (re // API operation ListInvalidations for usage and error information. // // Returned Error Codes: -// * InvalidArgument +// * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // -// * NoSuchDistribution +// * ErrCodeNoSuchDistribution "NoSuchDistribution" // The specified distribution does not exist. // -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListInvalidations func (c *CloudFront) ListInvalidations(input *ListInvalidationsInput) (*ListInvalidationsOutput, error) { req, out := c.ListInvalidationsRequest(input) err := req.Send() @@ -1877,7 +1877,7 @@ func (c *CloudFront) ListInvalidationsPages(input *ListInvalidationsInput, fn fu }) } -const opListStreamingDistributions = "ListStreamingDistributions2016_09_29" +const opListStreamingDistributions = "ListStreamingDistributions2016_11_25" // ListStreamingDistributionsRequest generates a "aws/request.Request" representing the // client's request for the ListStreamingDistributions operation. The "output" return @@ -1903,11 +1903,12 @@ const opListStreamingDistributions = "ListStreamingDistributions2016_09_29" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListStreamingDistributions func (c *CloudFront) ListStreamingDistributionsRequest(input *ListStreamingDistributionsInput) (req *request.Request, output *ListStreamingDistributionsOutput) { op := &request.Operation{ Name: opListStreamingDistributions, HTTPMethod: "GET", - HTTPPath: "/2016-09-29/streaming-distribution", + HTTPPath: "/2016-11-25/streaming-distribution", Paginator: &request.Paginator{ InputTokens: []string{"Marker"}, OutputTokens: []string{"StreamingDistributionList.NextMarker"}, @@ -1920,9 +1921,8 @@ func (c *CloudFront) ListStreamingDistributionsRequest(input *ListStreamingDistr input = &ListStreamingDistributionsInput{} } - req = c.newRequest(op, input, output) output = &ListStreamingDistributionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1938,9 +1938,10 @@ func (c *CloudFront) ListStreamingDistributionsRequest(input *ListStreamingDistr // API operation ListStreamingDistributions for usage and error information. // // Returned Error Codes: -// * InvalidArgument +// * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListStreamingDistributions func (c *CloudFront) ListStreamingDistributions(input *ListStreamingDistributionsInput) (*ListStreamingDistributionsOutput, error) { req, out := c.ListStreamingDistributionsRequest(input) err := req.Send() @@ -1972,7 +1973,7 @@ func (c *CloudFront) ListStreamingDistributionsPages(input *ListStreamingDistrib }) } -const opListTagsForResource = "ListTagsForResource2016_09_29" +const opListTagsForResource = "ListTagsForResource2016_11_25" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return @@ -1998,20 +1999,20 @@ const opListTagsForResource = "ListTagsForResource2016_09_29" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListTagsForResource func (c *CloudFront) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ Name: opListTagsForResource, HTTPMethod: "GET", - HTTPPath: "/2016-09-29/tagging", + HTTPPath: "/2016-11-25/tagging", } if input == nil { input = &ListTagsForResourceInput{} } - req = c.newRequest(op, input, output) output = &ListTagsForResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2027,25 +2028,24 @@ func (c *CloudFront) ListTagsForResourceRequest(input *ListTagsForResourceInput) // API operation ListTagsForResource for usage and error information. // // Returned Error Codes: -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// * InvalidArgument +// * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // -// * InvalidTagging - +// * ErrCodeInvalidTagging "InvalidTagging" // -// * NoSuchResource - +// * ErrCodeNoSuchResource "NoSuchResource" // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListTagsForResource func (c *CloudFront) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() return out, err } -const opTagResource = "TagResource2016_09_29" +const opTagResource = "TagResource2016_11_25" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return @@ -2071,22 +2071,22 @@ const opTagResource = "TagResource2016_09_29" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/TagResource func (c *CloudFront) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { op := &request.Operation{ Name: opTagResource, HTTPMethod: "POST", - HTTPPath: "/2016-09-29/tagging?Operation=Tag", + HTTPPath: "/2016-11-25/tagging?Operation=Tag", } if input == nil { input = &TagResourceInput{} } + output = &TagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &TagResourceOutput{} - req.Data = output return } @@ -2102,25 +2102,24 @@ func (c *CloudFront) TagResourceRequest(input *TagResourceInput) (req *request.R // API operation TagResource for usage and error information. // // Returned Error Codes: -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// * InvalidArgument +// * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // -// * InvalidTagging - +// * ErrCodeInvalidTagging "InvalidTagging" // -// * NoSuchResource - +// * ErrCodeNoSuchResource "NoSuchResource" // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/TagResource func (c *CloudFront) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) err := req.Send() return out, err } -const opUntagResource = "UntagResource2016_09_29" +const opUntagResource = "UntagResource2016_11_25" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return @@ -2146,22 +2145,22 @@ const opUntagResource = "UntagResource2016_09_29" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/UntagResource func (c *CloudFront) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { op := &request.Operation{ Name: opUntagResource, HTTPMethod: "POST", - HTTPPath: "/2016-09-29/tagging?Operation=Untag", + HTTPPath: "/2016-11-25/tagging?Operation=Untag", } if input == nil { input = &UntagResourceInput{} } + output = &UntagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UntagResourceOutput{} - req.Data = output return } @@ -2177,25 +2176,24 @@ func (c *CloudFront) UntagResourceRequest(input *UntagResourceInput) (req *reque // API operation UntagResource for usage and error information. // // Returned Error Codes: -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// * InvalidArgument +// * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // -// * InvalidTagging - +// * ErrCodeInvalidTagging "InvalidTagging" // -// * NoSuchResource - +// * ErrCodeNoSuchResource "NoSuchResource" // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/UntagResource func (c *CloudFront) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) err := req.Send() return out, err } -const opUpdateCloudFrontOriginAccessIdentity = "UpdateCloudFrontOriginAccessIdentity2016_09_29" +const opUpdateCloudFrontOriginAccessIdentity = "UpdateCloudFrontOriginAccessIdentity2016_11_25" // UpdateCloudFrontOriginAccessIdentityRequest generates a "aws/request.Request" representing the // client's request for the UpdateCloudFrontOriginAccessIdentity operation. The "output" return @@ -2221,20 +2219,20 @@ const opUpdateCloudFrontOriginAccessIdentity = "UpdateCloudFrontOriginAccessIden // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/UpdateCloudFrontOriginAccessIdentity func (c *CloudFront) UpdateCloudFrontOriginAccessIdentityRequest(input *UpdateCloudFrontOriginAccessIdentityInput) (req *request.Request, output *UpdateCloudFrontOriginAccessIdentityOutput) { op := &request.Operation{ Name: opUpdateCloudFrontOriginAccessIdentity, HTTPMethod: "PUT", - HTTPPath: "/2016-09-29/origin-access-identity/cloudfront/{Id}/config", + HTTPPath: "/2016-11-25/origin-access-identity/cloudfront/{Id}/config", } if input == nil { input = &UpdateCloudFrontOriginAccessIdentityInput{} } - req = c.newRequest(op, input, output) output = &UpdateCloudFrontOriginAccessIdentityOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2250,39 +2248,40 @@ func (c *CloudFront) UpdateCloudFrontOriginAccessIdentityRequest(input *UpdateCl // API operation UpdateCloudFrontOriginAccessIdentity for usage and error information. // // Returned Error Codes: -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// * IllegalUpdate +// * ErrCodeIllegalUpdate "IllegalUpdate" // Origin and CallerReference cannot be updated. // -// * InvalidIfMatchVersion +// * ErrCodeInvalidIfMatchVersion "InvalidIfMatchVersion" // The If-Match version is missing or not valid for the distribution. // -// * MissingBody +// * ErrCodeMissingBody "MissingBody" // This operation requires a body. Ensure that the body is present and the Content-Type // header is set. // -// * NoSuchCloudFrontOriginAccessIdentity +// * ErrCodeNoSuchCloudFrontOriginAccessIdentity "NoSuchCloudFrontOriginAccessIdentity" // The specified origin access identity does not exist. // -// * PreconditionFailed +// * ErrCodePreconditionFailed "PreconditionFailed" // The precondition given in one or more of the request-header fields evaluated // to false. // -// * InvalidArgument +// * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // -// * InconsistentQuantities +// * ErrCodeInconsistentQuantities "InconsistentQuantities" // The value of Quantity and the size of Items do not match. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/UpdateCloudFrontOriginAccessIdentity func (c *CloudFront) UpdateCloudFrontOriginAccessIdentity(input *UpdateCloudFrontOriginAccessIdentityInput) (*UpdateCloudFrontOriginAccessIdentityOutput, error) { req, out := c.UpdateCloudFrontOriginAccessIdentityRequest(input) err := req.Send() return out, err } -const opUpdateDistribution = "UpdateDistribution2016_09_29" +const opUpdateDistribution = "UpdateDistribution2016_11_25" // UpdateDistributionRequest generates a "aws/request.Request" representing the // client's request for the UpdateDistribution operation. The "output" return @@ -2308,20 +2307,20 @@ const opUpdateDistribution = "UpdateDistribution2016_09_29" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/UpdateDistribution func (c *CloudFront) UpdateDistributionRequest(input *UpdateDistributionInput) (req *request.Request, output *UpdateDistributionOutput) { op := &request.Operation{ Name: opUpdateDistribution, HTTPMethod: "PUT", - HTTPPath: "/2016-09-29/distribution/{Id}/config", + HTTPPath: "/2016-11-25/distribution/{Id}/config", } if input == nil { input = &UpdateDistributionInput{} } - req = c.newRequest(op, input, output) output = &UpdateDistributionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2337,127 +2336,125 @@ func (c *CloudFront) UpdateDistributionRequest(input *UpdateDistributionInput) ( // API operation UpdateDistribution for usage and error information. // // Returned Error Codes: -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// * CNAMEAlreadyExists - +// * ErrCodeCNAMEAlreadyExists "CNAMEAlreadyExists" // -// * IllegalUpdate +// * ErrCodeIllegalUpdate "IllegalUpdate" // Origin and CallerReference cannot be updated. // -// * InvalidIfMatchVersion +// * ErrCodeInvalidIfMatchVersion "InvalidIfMatchVersion" // The If-Match version is missing or not valid for the distribution. // -// * MissingBody +// * ErrCodeMissingBody "MissingBody" // This operation requires a body. Ensure that the body is present and the Content-Type // header is set. // -// * NoSuchDistribution +// * ErrCodeNoSuchDistribution "NoSuchDistribution" // The specified distribution does not exist. // -// * PreconditionFailed +// * ErrCodePreconditionFailed "PreconditionFailed" // The precondition given in one or more of the request-header fields evaluated // to false. // -// * TooManyDistributionCNAMEs +// * ErrCodeTooManyDistributionCNAMEs "TooManyDistributionCNAMEs" // Your request contains more CNAMEs than are allowed per distribution. // -// * InvalidDefaultRootObject +// * ErrCodeInvalidDefaultRootObject "InvalidDefaultRootObject" // The default root object file name is too big or contains an invalid character. // -// * InvalidRelativePath +// * ErrCodeInvalidRelativePath "InvalidRelativePath" // The relative path is too big, is not URL-encoded, or does not begin with // a slash (/). // -// * InvalidErrorCode - +// * ErrCodeInvalidErrorCode "InvalidErrorCode" // -// * InvalidResponseCode - +// * ErrCodeInvalidResponseCode "InvalidResponseCode" // -// * InvalidArgument +// * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // -// * InvalidOriginAccessIdentity +// * ErrCodeInvalidOriginAccessIdentity "InvalidOriginAccessIdentity" // The origin access identity is not valid or doesn't exist. // -// * TooManyTrustedSigners +// * ErrCodeTooManyTrustedSigners "TooManyTrustedSigners" // Your request contains more trusted signers than are allowed per distribution. // -// * TrustedSignerDoesNotExist +// * ErrCodeTrustedSignerDoesNotExist "TrustedSignerDoesNotExist" // One or more of your trusted signers do not exist. // -// * InvalidViewerCertificate - +// * ErrCodeInvalidViewerCertificate "InvalidViewerCertificate" // -// * InvalidMinimumProtocolVersion - +// * ErrCodeInvalidMinimumProtocolVersion "InvalidMinimumProtocolVersion" // -// * InvalidRequiredProtocol +// * ErrCodeInvalidRequiredProtocol "InvalidRequiredProtocol" // This operation requires the HTTPS protocol. Ensure that you specify the HTTPS // protocol in your request, or omit the RequiredProtocols element from your // distribution configuration. // -// * NoSuchOrigin +// * ErrCodeNoSuchOrigin "NoSuchOrigin" // No origin exists with the specified Origin Id. // -// * TooManyOrigins +// * ErrCodeTooManyOrigins "TooManyOrigins" // You cannot create more origins for the distribution. // -// * TooManyCacheBehaviors +// * ErrCodeTooManyCacheBehaviors "TooManyCacheBehaviors" // You cannot create more cache behaviors for the distribution. // -// * TooManyCookieNamesInWhiteList +// * ErrCodeTooManyCookieNamesInWhiteList "TooManyCookieNamesInWhiteList" // Your request contains more cookie names in the whitelist than are allowed // per cache behavior. // -// * InvalidForwardCookies +// * ErrCodeInvalidForwardCookies "InvalidForwardCookies" // Your request contains forward cookies option which doesn't match with the // expectation for the whitelisted list of cookie names. Either list of cookie // names has been specified when not allowed or list of cookie names is missing // when expected. // -// * TooManyHeadersInForwardedValues - +// * ErrCodeTooManyHeadersInForwardedValues "TooManyHeadersInForwardedValues" // -// * InvalidHeadersForS3Origin - +// * ErrCodeInvalidHeadersForS3Origin "InvalidHeadersForS3Origin" // -// * InconsistentQuantities +// * ErrCodeInconsistentQuantities "InconsistentQuantities" // The value of Quantity and the size of Items do not match. // -// * TooManyCertificates +// * ErrCodeTooManyCertificates "TooManyCertificates" // You cannot create anymore custom SSL/TLS certificates. // -// * InvalidLocationCode - +// * ErrCodeInvalidLocationCode "InvalidLocationCode" // -// * InvalidGeoRestrictionParameter - +// * ErrCodeInvalidGeoRestrictionParameter "InvalidGeoRestrictionParameter" // -// * InvalidTTLOrder - +// * ErrCodeInvalidTTLOrder "InvalidTTLOrder" // -// * InvalidWebACLId - +// * ErrCodeInvalidWebACLId "InvalidWebACLId" // -// * TooManyOriginCustomHeaders - +// * ErrCodeTooManyOriginCustomHeaders "TooManyOriginCustomHeaders" // -// * TooManyQueryStringParameters - +// * ErrCodeTooManyQueryStringParameters "TooManyQueryStringParameters" // -// * InvalidQueryStringParameters - +// * ErrCodeInvalidQueryStringParameters "InvalidQueryStringParameters" +// +// * ErrCodeTooManyDistributionsWithLambdaAssociations "TooManyDistributionsWithLambdaAssociations" +// Processing your request would cause the maximum number of distributions with +// Lambda function associations per owner to be exceeded. +// +// * ErrCodeTooManyLambdaFunctionAssociations "TooManyLambdaFunctionAssociations" +// Your request contains more Lambda function associations than are allowed +// per distribution. // +// * ErrCodeInvalidLambdaFunctionAssociation "InvalidLambdaFunctionAssociation" +// The specified Lambda function association is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/UpdateDistribution func (c *CloudFront) UpdateDistribution(input *UpdateDistributionInput) (*UpdateDistributionOutput, error) { req, out := c.UpdateDistributionRequest(input) err := req.Send() return out, err } -const opUpdateStreamingDistribution = "UpdateStreamingDistribution2016_09_29" +const opUpdateStreamingDistribution = "UpdateStreamingDistribution2016_11_25" // UpdateStreamingDistributionRequest generates a "aws/request.Request" representing the // client's request for the UpdateStreamingDistribution operation. The "output" return @@ -2483,20 +2480,20 @@ const opUpdateStreamingDistribution = "UpdateStreamingDistribution2016_09_29" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/UpdateStreamingDistribution func (c *CloudFront) UpdateStreamingDistributionRequest(input *UpdateStreamingDistributionInput) (req *request.Request, output *UpdateStreamingDistributionOutput) { op := &request.Operation{ Name: opUpdateStreamingDistribution, HTTPMethod: "PUT", - HTTPPath: "/2016-09-29/streaming-distribution/{Id}/config", + HTTPPath: "/2016-11-25/streaming-distribution/{Id}/config", } if input == nil { input = &UpdateStreamingDistributionInput{} } - req = c.newRequest(op, input, output) output = &UpdateStreamingDistributionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2512,47 +2509,46 @@ func (c *CloudFront) UpdateStreamingDistributionRequest(input *UpdateStreamingDi // API operation UpdateStreamingDistribution for usage and error information. // // Returned Error Codes: -// * AccessDenied +// * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// * CNAMEAlreadyExists - +// * ErrCodeCNAMEAlreadyExists "CNAMEAlreadyExists" // -// * IllegalUpdate +// * ErrCodeIllegalUpdate "IllegalUpdate" // Origin and CallerReference cannot be updated. // -// * InvalidIfMatchVersion +// * ErrCodeInvalidIfMatchVersion "InvalidIfMatchVersion" // The If-Match version is missing or not valid for the distribution. // -// * MissingBody +// * ErrCodeMissingBody "MissingBody" // This operation requires a body. Ensure that the body is present and the Content-Type // header is set. // -// * NoSuchStreamingDistribution +// * ErrCodeNoSuchStreamingDistribution "NoSuchStreamingDistribution" // The specified streaming distribution does not exist. // -// * PreconditionFailed +// * ErrCodePreconditionFailed "PreconditionFailed" // The precondition given in one or more of the request-header fields evaluated // to false. // -// * TooManyStreamingDistributionCNAMEs - +// * ErrCodeTooManyStreamingDistributionCNAMEs "TooManyStreamingDistributionCNAMEs" // -// * InvalidArgument +// * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // -// * InvalidOriginAccessIdentity +// * ErrCodeInvalidOriginAccessIdentity "InvalidOriginAccessIdentity" // The origin access identity is not valid or doesn't exist. // -// * TooManyTrustedSigners +// * ErrCodeTooManyTrustedSigners "TooManyTrustedSigners" // Your request contains more trusted signers than are allowed per distribution. // -// * TrustedSignerDoesNotExist +// * ErrCodeTrustedSignerDoesNotExist "TrustedSignerDoesNotExist" // One or more of your trusted signers do not exist. // -// * InconsistentQuantities +// * ErrCodeInconsistentQuantities "InconsistentQuantities" // The value of Quantity and the size of Items do not match. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/UpdateStreamingDistribution func (c *CloudFront) UpdateStreamingDistribution(input *UpdateStreamingDistributionInput) (*UpdateStreamingDistributionOutput, error) { req, out := c.UpdateStreamingDistributionRequest(input) err := req.Send() @@ -2571,6 +2567,7 @@ func (c *CloudFront) UpdateStreamingDistribution(input *UpdateStreamingDistribut // // For more information, see Serving Private Content through CloudFront (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) // in the Amazon CloudFront Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ActiveTrustedSigners type ActiveTrustedSigners struct { _ struct{} `type:"structure"` @@ -2608,8 +2605,27 @@ func (s ActiveTrustedSigners) GoString() string { return s.String() } +// SetEnabled sets the Enabled field's value. +func (s *ActiveTrustedSigners) SetEnabled(v bool) *ActiveTrustedSigners { + s.Enabled = &v + return s +} + +// SetItems sets the Items field's value. +func (s *ActiveTrustedSigners) SetItems(v []*Signer) *ActiveTrustedSigners { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *ActiveTrustedSigners) SetQuantity(v int64) *ActiveTrustedSigners { + s.Quantity = &v + return s +} + // A complex type that contains information about CNAMEs (alternate domain names), // if any, for this distribution. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/Aliases type Aliases struct { _ struct{} `type:"structure"` @@ -2647,33 +2663,47 @@ func (s *Aliases) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *Aliases) SetItems(v []*string) *Aliases { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *Aliases) SetQuantity(v int64) *Aliases { + s.Quantity = &v + return s +} + // A complex type that controls which HTTP methods CloudFront processes and // forwards to your Amazon S3 bucket or your custom origin. There are three // choices: // -// CloudFront forwards only GET and HEAD requests. +// * CloudFront forwards only GET and HEAD requests. // -// CloudFront forwards only GET, HEAD, and OPTIONS requests. +// * CloudFront forwards only GET, HEAD, and OPTIONS requests. // -// CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests. +// * CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE +// requests. // -// If you pick the third choice, you may need to restrict access to your -// Amazon S3 bucket or to your custom origin so users can't perform operations -// that you don't want them to. For example, you might not want users to have -// permissions to delete objects from your origin. +// If you pick the third choice, you may need to restrict access to your Amazon +// S3 bucket or to your custom origin so users can't perform operations that +// you don't want them to. For example, you might not want users to have permissions +// to delete objects from your origin. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/AllowedMethods type AllowedMethods struct { _ struct{} `type:"structure"` // A complex type that controls whether CloudFront caches the response to requests // using the specified HTTP methods. There are two choices: // - // CloudFront caches responses to GET and HEAD requests. + // * CloudFront caches responses to GET and HEAD requests. // - // CloudFront caches responses to GET, HEAD, and OPTIONS requests. + // * CloudFront caches responses to GET, HEAD, and OPTIONS requests. // - // If you pick the second choice for your Amazon S3 Origin, you may need - // to forward Access-Control-Request-Method, Access-Control-Request-Headers, - // and Origin headers for the responses to be cached correctly. + // If you pick the second choice for your Amazon S3 Origin, you may need to + // forward Access-Control-Request-Method, Access-Control-Request-Headers, and + // Origin headers for the responses to be cached correctly. CachedMethods *CachedMethods `type:"structure"` // A complex type that contains the HTTP methods that you want CloudFront to @@ -2721,22 +2751,40 @@ func (s *AllowedMethods) Validate() error { return nil } +// SetCachedMethods sets the CachedMethods field's value. +func (s *AllowedMethods) SetCachedMethods(v *CachedMethods) *AllowedMethods { + s.CachedMethods = v + return s +} + +// SetItems sets the Items field's value. +func (s *AllowedMethods) SetItems(v []*string) *AllowedMethods { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *AllowedMethods) SetQuantity(v int64) *AllowedMethods { + s.Quantity = &v + return s +} + // A complex type that describes how CloudFront processes requests. // -// You must create at least as many cache behaviors (including the default -// cache behavior) as you have origins if you want CloudFront to distribute -// objects from all of the origins. Each cache behavior specifies the one origin -// from which you want CloudFront to get objects. If you have two origins and -// only the default cache behavior, the default cache behavior will cause CloudFront +// You must create at least as many cache behaviors (including the default cache +// behavior) as you have origins if you want CloudFront to distribute objects +// from all of the origins. Each cache behavior specifies the one origin from +// which you want CloudFront to get objects. If you have two origins and only +// the default cache behavior, the default cache behavior will cause CloudFront // to get objects from one of the origins, but the other origin is never used. // -// For the current limit on the number of cache behaviors that you can add -// to a distribution, see Amazon CloudFront Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_cloudfront) +// For the current limit on the number of cache behaviors that you can add to +// a distribution, see Amazon CloudFront Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_cloudfront) // in the AWS General Reference. // -// If you don't want to specify any cache behaviors, include only an empty -// CacheBehaviors element. Don't include an empty CacheBehavior element, or -// CloudFront returns a MalformedXML error. +// If you don't want to specify any cache behaviors, include only an empty CacheBehaviors +// element. Don't include an empty CacheBehavior element, or CloudFront returns +// a MalformedXML error. // // To delete all cache behaviors in an existing distribution, update the distribution // configuration and include only an empty CacheBehaviors element. @@ -2747,6 +2795,7 @@ func (s *AllowedMethods) Validate() error { // // For more information about cache behaviors, see Cache Behaviors (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesCacheBehavior) // in the Amazon CloudFront Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CacheBehavior type CacheBehavior struct { _ struct{} `type:"structure"` @@ -2754,16 +2803,17 @@ type CacheBehavior struct { // forwards to your Amazon S3 bucket or your custom origin. There are three // choices: // - // CloudFront forwards only GET and HEAD requests. + // * CloudFront forwards only GET and HEAD requests. // - // CloudFront forwards only GET, HEAD, and OPTIONS requests. + // * CloudFront forwards only GET, HEAD, and OPTIONS requests. // - // CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests. + // * CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE + // requests. // - // If you pick the third choice, you may need to restrict access to your - // Amazon S3 bucket or to your custom origin so users can't perform operations - // that you don't want them to. For example, you might not want users to have - // permissions to delete objects from your origin. + // If you pick the third choice, you may need to restrict access to your Amazon + // S3 bucket or to your custom origin so users can't perform operations that + // you don't want them to. For example, you might not want users to have permissions + // to delete objects from your origin. AllowedMethods *AllowedMethods `type:"structure"` // Whether you want CloudFront to automatically compress certain files for this @@ -2786,6 +2836,10 @@ type CacheBehavior struct { // ForwardedValues is a required field ForwardedValues *ForwardedValues `type:"structure" required:"true"` + // A complex type that contains zero or more Lambda function associations for + // a cache behavior. + LambdaFunctionAssociations *LambdaFunctionAssociations `type:"structure"` + // The maximum amount of time that you want objects to stay in CloudFront caches // before CloudFront forwards another request to your origin to determine whether // the object has been updated. The value that you specify applies only when @@ -2813,11 +2867,11 @@ type CacheBehavior struct { // path is compared with path patterns in the order in which cache behaviors // are listed in the distribution. // - // You can optionally include a slash (/) at the beginning of the path pattern. + // You can optionally include a slash (/) at the beginning of the path pattern. // For example, /images/*.jpg. CloudFront behavior is the same with or without // the leading /. // - // The path pattern for the default cache behavior is * and cannot be changed. + // The path pattern for the default cache behavior is * and cannot be changed. // If the request for an object does not match the path pattern for any cache // behaviors, CloudFront applies the behavior in the default cache behavior. // @@ -2864,20 +2918,21 @@ type CacheBehavior struct { // by TargetOriginId when a request matches the path pattern in PathPattern. // You can specify the following options: // - // allow-all: Viewers can use HTTP or HTTPS. + // * allow-all: Viewers can use HTTP or HTTPS. // - // redirect-to-https: If a viewer submits an HTTP request, CloudFront returns - // an HTTP status code of 301 (Moved Permanently) to the viewer along with the - // HTTPS URL. The viewer then resubmits the request using the new URL. + // * redirect-to-https: If a viewer submits an HTTP request, CloudFront returns + // an HTTP status code of 301 (Moved Permanently) to the viewer along with + // the HTTPS URL. The viewer then resubmits the request using the new URL. // - // https-only: If a viewer sends an HTTP request, CloudFront returns an - // HTTP status code of 403 (Forbidden). // - // For more information about requiring the HTTPS protocol, see Using an - // HTTPS Connection to Access Your Objects (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecureConnections.html) + // * https-only: If a viewer sends an HTTP request, CloudFront returns an + // HTTP status code of 403 (Forbidden). + // + // For more information about requiring the HTTPS protocol, see Using an HTTPS + // Connection to Access Your Objects (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecureConnections.html) // in the Amazon CloudFront Developer Guide. // - // The only way to guarantee that viewers retrieve an object that was fetched + // The only way to guarantee that viewers retrieve an object that was fetched // from the origin using HTTPS is never to use any other protocol to fetch the // object. If you have recently changed from HTTP to HTTPS, we recommend that // you clear your objects' cache because cached objects are protocol agnostic. @@ -2932,6 +2987,11 @@ func (s *CacheBehavior) Validate() error { invalidParams.AddNested("ForwardedValues", err.(request.ErrInvalidParams)) } } + if s.LambdaFunctionAssociations != nil { + if err := s.LambdaFunctionAssociations.Validate(); err != nil { + invalidParams.AddNested("LambdaFunctionAssociations", err.(request.ErrInvalidParams)) + } + } if s.TrustedSigners != nil { if err := s.TrustedSigners.Validate(); err != nil { invalidParams.AddNested("TrustedSigners", err.(request.ErrInvalidParams)) @@ -2944,7 +3004,80 @@ func (s *CacheBehavior) Validate() error { return nil } +// SetAllowedMethods sets the AllowedMethods field's value. +func (s *CacheBehavior) SetAllowedMethods(v *AllowedMethods) *CacheBehavior { + s.AllowedMethods = v + return s +} + +// SetCompress sets the Compress field's value. +func (s *CacheBehavior) SetCompress(v bool) *CacheBehavior { + s.Compress = &v + return s +} + +// SetDefaultTTL sets the DefaultTTL field's value. +func (s *CacheBehavior) SetDefaultTTL(v int64) *CacheBehavior { + s.DefaultTTL = &v + return s +} + +// SetForwardedValues sets the ForwardedValues field's value. +func (s *CacheBehavior) SetForwardedValues(v *ForwardedValues) *CacheBehavior { + s.ForwardedValues = v + return s +} + +// SetLambdaFunctionAssociations sets the LambdaFunctionAssociations field's value. +func (s *CacheBehavior) SetLambdaFunctionAssociations(v *LambdaFunctionAssociations) *CacheBehavior { + s.LambdaFunctionAssociations = v + return s +} + +// SetMaxTTL sets the MaxTTL field's value. +func (s *CacheBehavior) SetMaxTTL(v int64) *CacheBehavior { + s.MaxTTL = &v + return s +} + +// SetMinTTL sets the MinTTL field's value. +func (s *CacheBehavior) SetMinTTL(v int64) *CacheBehavior { + s.MinTTL = &v + return s +} + +// SetPathPattern sets the PathPattern field's value. +func (s *CacheBehavior) SetPathPattern(v string) *CacheBehavior { + s.PathPattern = &v + return s +} + +// SetSmoothStreaming sets the SmoothStreaming field's value. +func (s *CacheBehavior) SetSmoothStreaming(v bool) *CacheBehavior { + s.SmoothStreaming = &v + return s +} + +// SetTargetOriginId sets the TargetOriginId field's value. +func (s *CacheBehavior) SetTargetOriginId(v string) *CacheBehavior { + s.TargetOriginId = &v + return s +} + +// SetTrustedSigners sets the TrustedSigners field's value. +func (s *CacheBehavior) SetTrustedSigners(v *TrustedSigners) *CacheBehavior { + s.TrustedSigners = v + return s +} + +// SetViewerProtocolPolicy sets the ViewerProtocolPolicy field's value. +func (s *CacheBehavior) SetViewerProtocolPolicy(v string) *CacheBehavior { + s.ViewerProtocolPolicy = &v + return s +} + // A complex type that contains zero or more CacheBehavior elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CacheBehaviors type CacheBehaviors struct { _ struct{} `type:"structure"` @@ -2991,16 +3124,29 @@ func (s *CacheBehaviors) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *CacheBehaviors) SetItems(v []*CacheBehavior) *CacheBehaviors { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *CacheBehaviors) SetQuantity(v int64) *CacheBehaviors { + s.Quantity = &v + return s +} + // A complex type that controls whether CloudFront caches the response to requests // using the specified HTTP methods. There are two choices: // -// CloudFront caches responses to GET and HEAD requests. +// * CloudFront caches responses to GET and HEAD requests. // -// CloudFront caches responses to GET, HEAD, and OPTIONS requests. +// * CloudFront caches responses to GET, HEAD, and OPTIONS requests. // -// If you pick the second choice for your Amazon S3 Origin, you may need -// to forward Access-Control-Request-Method, Access-Control-Request-Headers, -// and Origin headers for the responses to be cached correctly. +// If you pick the second choice for your Amazon S3 Origin, you may need to +// forward Access-Control-Request-Method, Access-Control-Request-Headers, and +// Origin headers for the responses to be cached correctly. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CachedMethods type CachedMethods struct { _ struct{} `type:"structure"` @@ -3044,11 +3190,24 @@ func (s *CachedMethods) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *CachedMethods) SetItems(v []*string) *CachedMethods { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *CachedMethods) SetQuantity(v int64) *CachedMethods { + s.Quantity = &v + return s +} + // A complex type that specifies whether you want CloudFront to forward cookies // to the origin and, if so, which ones. For more information about forwarding // cookies to the origin, see How CloudFront Forwards, Caches, and Logs Cookies // (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Cookies.html) // in the Amazon CloudFront Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CookieNames type CookieNames struct { _ struct{} `type:"structure"` @@ -3086,11 +3245,24 @@ func (s *CookieNames) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *CookieNames) SetItems(v []*string) *CookieNames { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *CookieNames) SetQuantity(v int64) *CookieNames { + s.Quantity = &v + return s +} + // A complex type that specifies whether you want CloudFront to forward cookies // to the origin and, if so, which ones. For more information about forwarding // cookies to the origin, see How CloudFront Forwards, Caches, and Logs Cookies // (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Cookies.html) // in the Amazon CloudFront Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CookiePreference type CookiePreference struct { _ struct{} `type:"structure"` @@ -3148,7 +3320,20 @@ func (s *CookiePreference) Validate() error { return nil } +// SetForward sets the Forward field's value. +func (s *CookiePreference) SetForward(v string) *CookiePreference { + s.Forward = &v + return s +} + +// SetWhitelistedNames sets the WhitelistedNames field's value. +func (s *CookiePreference) SetWhitelistedNames(v *CookieNames) *CookiePreference { + s.WhitelistedNames = v + return s +} + // The request to create a new origin access identity. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateCloudFrontOriginAccessIdentityRequest type CreateCloudFrontOriginAccessIdentityInput struct { _ struct{} `type:"structure" payload:"CloudFrontOriginAccessIdentityConfig"` @@ -3186,7 +3371,14 @@ func (s *CreateCloudFrontOriginAccessIdentityInput) Validate() error { return nil } +// SetCloudFrontOriginAccessIdentityConfig sets the CloudFrontOriginAccessIdentityConfig field's value. +func (s *CreateCloudFrontOriginAccessIdentityInput) SetCloudFrontOriginAccessIdentityConfig(v *OriginAccessIdentityConfig) *CreateCloudFrontOriginAccessIdentityInput { + s.CloudFrontOriginAccessIdentityConfig = v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateCloudFrontOriginAccessIdentityResult type CreateCloudFrontOriginAccessIdentityOutput struct { _ struct{} `type:"structure" payload:"CloudFrontOriginAccessIdentity"` @@ -3211,7 +3403,26 @@ func (s CreateCloudFrontOriginAccessIdentityOutput) GoString() string { return s.String() } +// SetCloudFrontOriginAccessIdentity sets the CloudFrontOriginAccessIdentity field's value. +func (s *CreateCloudFrontOriginAccessIdentityOutput) SetCloudFrontOriginAccessIdentity(v *OriginAccessIdentity) *CreateCloudFrontOriginAccessIdentityOutput { + s.CloudFrontOriginAccessIdentity = v + return s +} + +// SetETag sets the ETag field's value. +func (s *CreateCloudFrontOriginAccessIdentityOutput) SetETag(v string) *CreateCloudFrontOriginAccessIdentityOutput { + s.ETag = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateCloudFrontOriginAccessIdentityOutput) SetLocation(v string) *CreateCloudFrontOriginAccessIdentityOutput { + s.Location = &v + return s +} + // The request to create a new distribution. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateDistributionRequest type CreateDistributionInput struct { _ struct{} `type:"structure" payload:"DistributionConfig"` @@ -3249,7 +3460,14 @@ func (s *CreateDistributionInput) Validate() error { return nil } +// SetDistributionConfig sets the DistributionConfig field's value. +func (s *CreateDistributionInput) SetDistributionConfig(v *DistributionConfig) *CreateDistributionInput { + s.DistributionConfig = v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateDistributionResult type CreateDistributionOutput struct { _ struct{} `type:"structure" payload:"Distribution"` @@ -3274,7 +3492,26 @@ func (s CreateDistributionOutput) GoString() string { return s.String() } +// SetDistribution sets the Distribution field's value. +func (s *CreateDistributionOutput) SetDistribution(v *Distribution) *CreateDistributionOutput { + s.Distribution = v + return s +} + +// SetETag sets the ETag field's value. +func (s *CreateDistributionOutput) SetETag(v string) *CreateDistributionOutput { + s.ETag = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateDistributionOutput) SetLocation(v string) *CreateDistributionOutput { + s.Location = &v + return s +} + // The request to create a new distribution with tags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateDistributionWithTagsRequest type CreateDistributionWithTagsInput struct { _ struct{} `type:"structure" payload:"DistributionConfigWithTags"` @@ -3312,7 +3549,14 @@ func (s *CreateDistributionWithTagsInput) Validate() error { return nil } +// SetDistributionConfigWithTags sets the DistributionConfigWithTags field's value. +func (s *CreateDistributionWithTagsInput) SetDistributionConfigWithTags(v *DistributionConfigWithTags) *CreateDistributionWithTagsInput { + s.DistributionConfigWithTags = v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateDistributionWithTagsResult type CreateDistributionWithTagsOutput struct { _ struct{} `type:"structure" payload:"Distribution"` @@ -3337,7 +3581,26 @@ func (s CreateDistributionWithTagsOutput) GoString() string { return s.String() } +// SetDistribution sets the Distribution field's value. +func (s *CreateDistributionWithTagsOutput) SetDistribution(v *Distribution) *CreateDistributionWithTagsOutput { + s.Distribution = v + return s +} + +// SetETag sets the ETag field's value. +func (s *CreateDistributionWithTagsOutput) SetETag(v string) *CreateDistributionWithTagsOutput { + s.ETag = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateDistributionWithTagsOutput) SetLocation(v string) *CreateDistributionWithTagsOutput { + s.Location = &v + return s +} + // The request to create an invalidation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateInvalidationRequest type CreateInvalidationInput struct { _ struct{} `type:"structure" payload:"InvalidationBatch"` @@ -3383,7 +3646,20 @@ func (s *CreateInvalidationInput) Validate() error { return nil } +// SetDistributionId sets the DistributionId field's value. +func (s *CreateInvalidationInput) SetDistributionId(v string) *CreateInvalidationInput { + s.DistributionId = &v + return s +} + +// SetInvalidationBatch sets the InvalidationBatch field's value. +func (s *CreateInvalidationInput) SetInvalidationBatch(v *InvalidationBatch) *CreateInvalidationInput { + s.InvalidationBatch = v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateInvalidationResult type CreateInvalidationOutput struct { _ struct{} `type:"structure" payload:"Invalidation"` @@ -3405,7 +3681,20 @@ func (s CreateInvalidationOutput) GoString() string { return s.String() } +// SetInvalidation sets the Invalidation field's value. +func (s *CreateInvalidationOutput) SetInvalidation(v *Invalidation) *CreateInvalidationOutput { + s.Invalidation = v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateInvalidationOutput) SetLocation(v string) *CreateInvalidationOutput { + s.Location = &v + return s +} + // The request to create a new streaming distribution. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateStreamingDistributionRequest type CreateStreamingDistributionInput struct { _ struct{} `type:"structure" payload:"StreamingDistributionConfig"` @@ -3443,7 +3732,14 @@ func (s *CreateStreamingDistributionInput) Validate() error { return nil } +// SetStreamingDistributionConfig sets the StreamingDistributionConfig field's value. +func (s *CreateStreamingDistributionInput) SetStreamingDistributionConfig(v *StreamingDistributionConfig) *CreateStreamingDistributionInput { + s.StreamingDistributionConfig = v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateStreamingDistributionResult type CreateStreamingDistributionOutput struct { _ struct{} `type:"structure" payload:"StreamingDistribution"` @@ -3468,7 +3764,26 @@ func (s CreateStreamingDistributionOutput) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *CreateStreamingDistributionOutput) SetETag(v string) *CreateStreamingDistributionOutput { + s.ETag = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateStreamingDistributionOutput) SetLocation(v string) *CreateStreamingDistributionOutput { + s.Location = &v + return s +} + +// SetStreamingDistribution sets the StreamingDistribution field's value. +func (s *CreateStreamingDistributionOutput) SetStreamingDistribution(v *StreamingDistribution) *CreateStreamingDistributionOutput { + s.StreamingDistribution = v + return s +} + // The request to create a new streaming distribution with tags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateStreamingDistributionWithTagsRequest type CreateStreamingDistributionWithTagsInput struct { _ struct{} `type:"structure" payload:"StreamingDistributionConfigWithTags"` @@ -3506,7 +3821,14 @@ func (s *CreateStreamingDistributionWithTagsInput) Validate() error { return nil } +// SetStreamingDistributionConfigWithTags sets the StreamingDistributionConfigWithTags field's value. +func (s *CreateStreamingDistributionWithTagsInput) SetStreamingDistributionConfigWithTags(v *StreamingDistributionConfigWithTags) *CreateStreamingDistributionWithTagsInput { + s.StreamingDistributionConfigWithTags = v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CreateStreamingDistributionWithTagsResult type CreateStreamingDistributionWithTagsOutput struct { _ struct{} `type:"structure" payload:"StreamingDistribution"` @@ -3530,16 +3852,36 @@ func (s CreateStreamingDistributionWithTagsOutput) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *CreateStreamingDistributionWithTagsOutput) SetETag(v string) *CreateStreamingDistributionWithTagsOutput { + s.ETag = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateStreamingDistributionWithTagsOutput) SetLocation(v string) *CreateStreamingDistributionWithTagsOutput { + s.Location = &v + return s +} + +// SetStreamingDistribution sets the StreamingDistribution field's value. +func (s *CreateStreamingDistributionWithTagsOutput) SetStreamingDistribution(v *StreamingDistribution) *CreateStreamingDistributionWithTagsOutput { + s.StreamingDistribution = v + return s +} + // A complex type that controls: // -// Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range -// with custom error messages before returning the response to the viewer. +// * Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range +// with custom error messages before returning the response to the viewer. +// // -// How long CloudFront caches HTTP status codes in the 4xx and 5xx range. +// * How long CloudFront caches HTTP status codes in the 4xx and 5xx range. // -// For more information about custom error pages, see Customizing Error Responses +// For more information about custom error pages, see Customizing Error Responses // (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) // in the Amazon CloudFront Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CustomErrorResponse type CustomErrorResponse struct { _ struct{} `type:"structure"` @@ -3566,19 +3908,20 @@ type CustomErrorResponse struct { // want CloudFront to return a status code different from the status code that // your origin returned to CloudFront, for example: // - // Some Internet devices (some firewalls and corporate proxies, for example) - // intercept HTTP 4xx and 5xx and prevent the response from being returned to - // the viewer. If you substitute 200, the response typically won't be intercepted. + // * Some Internet devices (some firewalls and corporate proxies, for example) + // intercept HTTP 4xx and 5xx and prevent the response from being returned + // to the viewer. If you substitute 200, the response typically won't be + // intercepted. // - // If you don't care about distinguishing among different client errors or - // server errors, you can specify 400 or 500 as the ResponseCode for all 4xx - // or 5xx errors. + // * If you don't care about distinguishing among different client errors + // or server errors, you can specify 400 or 500 as the ResponseCode for all + // 4xx or 5xx errors. // - // You might want to return a 200 status code (OK) and static website so - // your customers don't know that your website is down. + // * You might want to return a 200 status code (OK) and static website so + // your customers don't know that your website is down. // - // If you specify a value for ResponseCode, you must also specify a value - // for ResponsePagePath. If you don't want to specify a value, include an empty + // If you specify a value for ResponseCode, you must also specify a value for + // ResponsePagePath. If you don't want to specify a value, include an empty // element, , in the XML document. ResponseCode *string `type:"string"` @@ -3588,16 +3931,17 @@ type CustomErrorResponse struct { // and your custom error pages in different locations, your distribution must // include a cache behavior for which the following is true: // - // The value of PathPattern matches the path to your custom error messages. - // For example, suppose you saved custom error pages for 4xx errors in an Amazon - // S3 bucket in a directory named /4xx-errors. Your distribution must include - // a cache behavior for which the path pattern routes requests for your custom - // error pages to that location, for example, /4xx-errors/*. + // * The value of PathPattern matches the path to your custom error messages. + // For example, suppose you saved custom error pages for 4xx errors in an + // Amazon S3 bucket in a directory named /4xx-errors. Your distribution must + // include a cache behavior for which the path pattern routes requests for + // your custom error pages to that location, for example, /4xx-errors/*. // - // The value of TargetOriginId specifies the value of the ID element for - // the origin that contains your custom error pages. // - // If you specify a value for ResponsePagePath, you must also specify a value + // * The value of TargetOriginId specifies the value of the ID element for + // the origin that contains your custom error pages. + // + // If you specify a value for ResponsePagePath, you must also specify a value // for ResponseCode. If you don't want to specify a value, include an empty // element, , in the XML document. // @@ -3631,16 +3975,41 @@ func (s *CustomErrorResponse) Validate() error { return nil } +// SetErrorCachingMinTTL sets the ErrorCachingMinTTL field's value. +func (s *CustomErrorResponse) SetErrorCachingMinTTL(v int64) *CustomErrorResponse { + s.ErrorCachingMinTTL = &v + return s +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *CustomErrorResponse) SetErrorCode(v int64) *CustomErrorResponse { + s.ErrorCode = &v + return s +} + +// SetResponseCode sets the ResponseCode field's value. +func (s *CustomErrorResponse) SetResponseCode(v string) *CustomErrorResponse { + s.ResponseCode = &v + return s +} + +// SetResponsePagePath sets the ResponsePagePath field's value. +func (s *CustomErrorResponse) SetResponsePagePath(v string) *CustomErrorResponse { + s.ResponsePagePath = &v + return s +} + // A complex type that controls: // -// Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range -// with custom error messages before returning the response to the viewer. +// * Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range +// with custom error messages before returning the response to the viewer. // -// How long CloudFront caches HTTP status codes in the 4xx and 5xx range. +// * How long CloudFront caches HTTP status codes in the 4xx and 5xx range. // -// For more information about custom error pages, see Customizing Error Responses +// For more information about custom error pages, see Customizing Error Responses // (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) // in the Amazon CloudFront Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CustomErrorResponses type CustomErrorResponses struct { _ struct{} `type:"structure"` @@ -3689,7 +4058,20 @@ func (s *CustomErrorResponses) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *CustomErrorResponses) SetItems(v []*CustomErrorResponse) *CustomErrorResponses { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *CustomErrorResponses) SetQuantity(v int64) *CustomErrorResponses { + s.Quantity = &v + return s +} + // A complex type that contains the list of Custom Headers for each origin. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CustomHeaders type CustomHeaders struct { _ struct{} `type:"structure"` @@ -3737,7 +4119,20 @@ func (s *CustomHeaders) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *CustomHeaders) SetItems(v []*OriginCustomHeader) *CustomHeaders { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *CustomHeaders) SetQuantity(v int64) *CustomHeaders { + s.Quantity = &v + return s +} + // A customer origin. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CustomOriginConfig type CustomOriginConfig struct { _ struct{} `type:"structure"` @@ -3795,9 +4190,34 @@ func (s *CustomOriginConfig) Validate() error { return nil } -// A complex type that describes the default cache behavior if you do not specify +// SetHTTPPort sets the HTTPPort field's value. +func (s *CustomOriginConfig) SetHTTPPort(v int64) *CustomOriginConfig { + s.HTTPPort = &v + return s +} + +// SetHTTPSPort sets the HTTPSPort field's value. +func (s *CustomOriginConfig) SetHTTPSPort(v int64) *CustomOriginConfig { + s.HTTPSPort = &v + return s +} + +// SetOriginProtocolPolicy sets the OriginProtocolPolicy field's value. +func (s *CustomOriginConfig) SetOriginProtocolPolicy(v string) *CustomOriginConfig { + s.OriginProtocolPolicy = &v + return s +} + +// SetOriginSslProtocols sets the OriginSslProtocols field's value. +func (s *CustomOriginConfig) SetOriginSslProtocols(v *OriginSslProtocols) *CustomOriginConfig { + s.OriginSslProtocols = v + return s +} + +// A complex type that describes the default cache behavior if you do not specify // a CacheBehavior element or if files don't match any of the values of PathPattern // in CacheBehavior elements. You must create exactly one default cache behavior. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/DefaultCacheBehavior type DefaultCacheBehavior struct { _ struct{} `type:"structure"` @@ -3805,16 +4225,17 @@ type DefaultCacheBehavior struct { // forwards to your Amazon S3 bucket or your custom origin. There are three // choices: // - // CloudFront forwards only GET and HEAD requests. + // * CloudFront forwards only GET and HEAD requests. // - // CloudFront forwards only GET, HEAD, and OPTIONS requests. + // * CloudFront forwards only GET, HEAD, and OPTIONS requests. // - // CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests. + // * CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE + // requests. // - // If you pick the third choice, you may need to restrict access to your - // Amazon S3 bucket or to your custom origin so users can't perform operations - // that you don't want them to. For example, you might not want users to have - // permissions to delete objects from your origin. + // If you pick the third choice, you may need to restrict access to your Amazon + // S3 bucket or to your custom origin so users can't perform operations that + // you don't want them to. For example, you might not want users to have permissions + // to delete objects from your origin. AllowedMethods *AllowedMethods `type:"structure"` // Whether you want CloudFront to automatically compress certain files for this @@ -3837,6 +4258,10 @@ type DefaultCacheBehavior struct { // ForwardedValues is a required field ForwardedValues *ForwardedValues `type:"structure" required:"true"` + // A complex type that contains zero or more Lambda function associations for + // a cache behavior. + LambdaFunctionAssociations *LambdaFunctionAssociations `type:"structure"` + MaxTTL *int64 `type:"long"` // The minimum amount of time that you want objects to stay in CloudFront caches @@ -3889,20 +4314,20 @@ type DefaultCacheBehavior struct { // by TargetOriginId when a request matches the path pattern in PathPattern. // You can specify the following options: // - // allow-all: Viewers can use HTTP or HTTPS. + // * allow-all: Viewers can use HTTP or HTTPS. // - // redirect-to-https: If a viewer submits an HTTP request, CloudFront returns - // an HTTP status code of 301 (Moved Permanently) to the viewer along with the - // HTTPS URL. The viewer then resubmits the request using the new URL. + // * redirect-to-https: If a viewer submits an HTTP request, CloudFront returns + // an HTTP status code of 301 (Moved Permanently) to the viewer along with + // the HTTPS URL. The viewer then resubmits the request using the new URL. // - // https-only: If a viewer sends an HTTP request, CloudFront returns an - // HTTP status code of 403 (Forbidden). + // * https-only: If a viewer sends an HTTP request, CloudFront returns an + // HTTP status code of 403 (Forbidden). // - // For more information about requiring the HTTPS protocol, see Using an - // HTTPS Connection to Access Your Objects (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecureConnections.html) + // For more information about requiring the HTTPS protocol, see Using an HTTPS + // Connection to Access Your Objects (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecureConnections.html) // in the Amazon CloudFront Developer Guide. // - // The only way to guarantee that viewers retrieve an object that was fetched + // The only way to guarantee that viewers retrieve an object that was fetched // from the origin using HTTPS is never to use any other protocol to fetch the // object. If you have recently changed from HTTP to HTTPS, we recommend that // you clear your objects' cache because cached objects are protocol agnostic. @@ -3954,6 +4379,11 @@ func (s *DefaultCacheBehavior) Validate() error { invalidParams.AddNested("ForwardedValues", err.(request.ErrInvalidParams)) } } + if s.LambdaFunctionAssociations != nil { + if err := s.LambdaFunctionAssociations.Validate(); err != nil { + invalidParams.AddNested("LambdaFunctionAssociations", err.(request.ErrInvalidParams)) + } + } if s.TrustedSigners != nil { if err := s.TrustedSigners.Validate(); err != nil { invalidParams.AddNested("TrustedSigners", err.(request.ErrInvalidParams)) @@ -3966,7 +4396,74 @@ func (s *DefaultCacheBehavior) Validate() error { return nil } +// SetAllowedMethods sets the AllowedMethods field's value. +func (s *DefaultCacheBehavior) SetAllowedMethods(v *AllowedMethods) *DefaultCacheBehavior { + s.AllowedMethods = v + return s +} + +// SetCompress sets the Compress field's value. +func (s *DefaultCacheBehavior) SetCompress(v bool) *DefaultCacheBehavior { + s.Compress = &v + return s +} + +// SetDefaultTTL sets the DefaultTTL field's value. +func (s *DefaultCacheBehavior) SetDefaultTTL(v int64) *DefaultCacheBehavior { + s.DefaultTTL = &v + return s +} + +// SetForwardedValues sets the ForwardedValues field's value. +func (s *DefaultCacheBehavior) SetForwardedValues(v *ForwardedValues) *DefaultCacheBehavior { + s.ForwardedValues = v + return s +} + +// SetLambdaFunctionAssociations sets the LambdaFunctionAssociations field's value. +func (s *DefaultCacheBehavior) SetLambdaFunctionAssociations(v *LambdaFunctionAssociations) *DefaultCacheBehavior { + s.LambdaFunctionAssociations = v + return s +} + +// SetMaxTTL sets the MaxTTL field's value. +func (s *DefaultCacheBehavior) SetMaxTTL(v int64) *DefaultCacheBehavior { + s.MaxTTL = &v + return s +} + +// SetMinTTL sets the MinTTL field's value. +func (s *DefaultCacheBehavior) SetMinTTL(v int64) *DefaultCacheBehavior { + s.MinTTL = &v + return s +} + +// SetSmoothStreaming sets the SmoothStreaming field's value. +func (s *DefaultCacheBehavior) SetSmoothStreaming(v bool) *DefaultCacheBehavior { + s.SmoothStreaming = &v + return s +} + +// SetTargetOriginId sets the TargetOriginId field's value. +func (s *DefaultCacheBehavior) SetTargetOriginId(v string) *DefaultCacheBehavior { + s.TargetOriginId = &v + return s +} + +// SetTrustedSigners sets the TrustedSigners field's value. +func (s *DefaultCacheBehavior) SetTrustedSigners(v *TrustedSigners) *DefaultCacheBehavior { + s.TrustedSigners = v + return s +} + +// SetViewerProtocolPolicy sets the ViewerProtocolPolicy field's value. +func (s *DefaultCacheBehavior) SetViewerProtocolPolicy(v string) *DefaultCacheBehavior { + s.ViewerProtocolPolicy = &v + return s +} + // Deletes a origin access identity. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/DeleteCloudFrontOriginAccessIdentityRequest type DeleteCloudFrontOriginAccessIdentityInput struct { _ struct{} `type:"structure"` @@ -4003,6 +4500,19 @@ func (s *DeleteCloudFrontOriginAccessIdentityInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *DeleteCloudFrontOriginAccessIdentityInput) SetId(v string) *DeleteCloudFrontOriginAccessIdentityInput { + s.Id = &v + return s +} + +// SetIfMatch sets the IfMatch field's value. +func (s *DeleteCloudFrontOriginAccessIdentityInput) SetIfMatch(v string) *DeleteCloudFrontOriginAccessIdentityInput { + s.IfMatch = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/DeleteCloudFrontOriginAccessIdentityOutput type DeleteCloudFrontOriginAccessIdentityOutput struct { _ struct{} `type:"structure"` } @@ -4020,38 +4530,39 @@ func (s DeleteCloudFrontOriginAccessIdentityOutput) GoString() string { // This action deletes a web distribution. To delete a web distribution using // the CloudFront API, perform the following steps. // -// To delete a web distribution using the CloudFront API: +// To delete a web distribution using the CloudFront API: // -// Disable the web distribution +// Disable the web distribution // -// Submit a GET Distribution Config request to get the current configuration +// Submit a GET Distribution Config request to get the current configuration // and the Etag header for the distribution. // -// Update the XML document that was returned in the response to your GET -// Distribution Config request to change the value of Enabled to false. +// Update the XML document that was returned in the response to your GET Distribution +// Config request to change the value of Enabled to false. // -// Submit a PUT Distribution Config request to update the configuration for +// Submit a PUT Distribution Config request to update the configuration for // your distribution. In the request body, include the XML document that you // updated in Step 3. Set the value of the HTTP If-Match header to the value // of the ETag header that CloudFront returned when you submitted the GET Distribution // Config request in Step 2. // -// Review the response to the PUT Distribution Config request to confirm -// that the distribution was successfully disabled. +// Review the response to the PUT Distribution Config request to confirm that +// the distribution was successfully disabled. // -// Submit a GET Distribution request to confirm that your changes have propagated. +// Submit a GET Distribution request to confirm that your changes have propagated. // When propagation is complete, the value of Status is Deployed. // -// Submit a DELETE Distribution request. Set the value of the HTTP If-Match +// Submit a DELETE Distribution request. Set the value of the HTTP If-Match // header to the value of the ETag header that CloudFront returned when you // submitted the GET Distribution Config request in Step 6. // -// Review the response to your DELETE Distribution request to confirm that -// the distribution was successfully deleted. +// Review the response to your DELETE Distribution request to confirm that the +// distribution was successfully deleted. // -// For information about deleting a distribution using the CloudFront console, +// For information about deleting a distribution using the CloudFront console, // see Deleting a Distribution (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HowToDeleteDistribution.html) // in the Amazon CloudFront Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/DeleteDistributionRequest type DeleteDistributionInput struct { _ struct{} `type:"structure"` @@ -4088,6 +4599,19 @@ func (s *DeleteDistributionInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *DeleteDistributionInput) SetId(v string) *DeleteDistributionInput { + s.Id = &v + return s +} + +// SetIfMatch sets the IfMatch field's value. +func (s *DeleteDistributionInput) SetIfMatch(v string) *DeleteDistributionInput { + s.IfMatch = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/DeleteDistributionOutput type DeleteDistributionOutput struct { _ struct{} `type:"structure"` } @@ -4103,6 +4627,7 @@ func (s DeleteDistributionOutput) GoString() string { } // The request to delete a streaming distribution. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/DeleteStreamingDistributionRequest type DeleteStreamingDistributionInput struct { _ struct{} `type:"structure"` @@ -4139,6 +4664,19 @@ func (s *DeleteStreamingDistributionInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *DeleteStreamingDistributionInput) SetId(v string) *DeleteStreamingDistributionInput { + s.Id = &v + return s +} + +// SetIfMatch sets the IfMatch field's value. +func (s *DeleteStreamingDistributionInput) SetIfMatch(v string) *DeleteStreamingDistributionInput { + s.IfMatch = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/DeleteStreamingDistributionOutput type DeleteStreamingDistributionOutput struct { _ struct{} `type:"structure"` } @@ -4154,6 +4692,7 @@ func (s DeleteStreamingDistributionOutput) GoString() string { } // The distribution's information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/Distribution type Distribution struct { _ struct{} `type:"structure"` @@ -4219,7 +4758,56 @@ func (s Distribution) GoString() string { return s.String() } +// SetARN sets the ARN field's value. +func (s *Distribution) SetARN(v string) *Distribution { + s.ARN = &v + return s +} + +// SetActiveTrustedSigners sets the ActiveTrustedSigners field's value. +func (s *Distribution) SetActiveTrustedSigners(v *ActiveTrustedSigners) *Distribution { + s.ActiveTrustedSigners = v + return s +} + +// SetDistributionConfig sets the DistributionConfig field's value. +func (s *Distribution) SetDistributionConfig(v *DistributionConfig) *Distribution { + s.DistributionConfig = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *Distribution) SetDomainName(v string) *Distribution { + s.DomainName = &v + return s +} + +// SetId sets the Id field's value. +func (s *Distribution) SetId(v string) *Distribution { + s.Id = &v + return s +} + +// SetInProgressInvalidationBatches sets the InProgressInvalidationBatches field's value. +func (s *Distribution) SetInProgressInvalidationBatches(v int64) *Distribution { + s.InProgressInvalidationBatches = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *Distribution) SetLastModifiedTime(v time.Time) *Distribution { + s.LastModifiedTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Distribution) SetStatus(v string) *Distribution { + s.Status = &v + return s +} + // A distribution configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/DistributionConfig type DistributionConfig struct { _ struct{} `type:"structure"` @@ -4236,15 +4824,14 @@ type DistributionConfig struct { // If the value of CallerReference is new (regardless of the content of the // DistributionConfig object), CloudFront creates a new distribution. // - // If CallerReference is a value you already sent in a previous request to - // create a distribution, and if the content of the DistributionConfig is identical + // If CallerReference is a value you already sent in a previous request to create + // a distribution, and if the content of the DistributionConfig is identical // to the original request (ignoring white space), CloudFront returns the same // the response that it returned to the original request. // - // If CallerReference is a value you already sent in a previous request to - // create a distribution but the content of the DistributionConfig is different - // from the original request, CloudFront returns a DistributionAlreadyExists - // error. + // If CallerReference is a value you already sent in a previous request to create + // a distribution but the content of the DistributionConfig is different from + // the original request, CloudFront returns a DistributionAlreadyExists error. // // CallerReference is a required field CallerReference *string `type:"string" required:"true"` @@ -4264,12 +4851,12 @@ type DistributionConfig struct { // A complex type that controls the following: // - // Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range - // with custom error messages before returning the response to the viewer. + // * Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range + // with custom error messages before returning the response to the viewer. // - // How long CloudFront caches HTTP status codes in the 4xx and 5xx range. + // * How long CloudFront caches HTTP status codes in the 4xx and 5xx range. // - // For more information about custom error pages, see Customizing Error Responses + // For more information about custom error pages, see Customizing Error Responses // (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) // in the Amazon CloudFront Developer Guide. CustomErrorResponses *CustomErrorResponses `type:"structure"` @@ -4292,8 +4879,8 @@ type DistributionConfig struct { // If you don't want to specify a default root object when you create a distribution, // include an empty DefaultRootObject element. // - // To delete the default root object from an existing distribution, update - // the distribution configuration and include an empty DefaultRootObject element. + // To delete the default root object from an existing distribution, update the + // distribution configuration and include an empty DefaultRootObject element. // // To replace the default root object, update the distribution configuration // and specify the new object. @@ -4306,9 +4893,9 @@ type DistributionConfig struct { // Specifies whether you want CloudFront to save access logs to an Amazon S3 // bucket. // - // If you do not want to enable logging when you create a distribution, or - // if you want to disable logging for an existing distribution, specify false - // for Enabled, and specify empty Bucket and Prefix elements. + // If you do not want to enable logging when you create a distribution, or if + // you want to disable logging for an existing distribution, specify false for + // Enabled, and specify empty Bucket and Prefix elements. // // If you specify false for Enabled but you specify values for Bucket and Prefix, // the values are automatically deleted. @@ -4349,18 +4936,18 @@ type DistributionConfig struct { // to your CloudFront distribution, you need to create a second alias resource // record set when both of the following are true: // - // You enable IPv6 for the distribution + // * You enable IPv6 for the distribution // - // You're using alternate domain names in the URLs for your objects + // * You're using alternate domain names in the URLs for your objects // - // For more information, see Routing Traffic to an Amazon CloudFront Web - // Distribution by Using Your Domain Name (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-cloudfront-distribution.html) + // For more information, see Routing Traffic to an Amazon CloudFront Web Distribution + // by Using Your Domain Name (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-cloudfront-distribution.html) // in the Amazon Route 53 Developer Guide. // - // If you created a CNAME resource record set, either with Amazon Route 53 - // or with another DNS service, you don't need to make any changes. A CNAME - // record will route traffic to your distribution regardless of the IP address - // format of the viewer request. + // If you created a CNAME resource record set, either with Amazon Route 53 or + // with another DNS service, you don't need to make any changes. A CNAME record + // will route traffic to your distribution regardless of the IP address format + // of the viewer request. IsIPV6Enabled *bool `type:"boolean"` // A complex type that controls whether access logs are written for the distribution. @@ -4397,15 +4984,16 @@ type DistributionConfig struct { // A complex type that specifies the following: // - // Which SSL/TLS certificate to use when viewers request objects using HTTPS + // * Which SSL/TLS certificate to use when viewers request objects using + // HTTPS // - // Whether you want CloudFront to use dedicated IP addresses or SNI when - // you're using alternate domain names in your object names + // * Whether you want CloudFront to use dedicated IP addresses or SNI when + // you're using alternate domain names in your object names // - // The minimum protocol version that you want CloudFront to use when communicating - // with viewers + // * The minimum protocol version that you want CloudFront to use when communicating + // with viewers // - // For more information, see Using an HTTPS Connection to Access Your Objects + // For more information, see Using an HTTPS Connection to Access Your Objects // (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecureConnections.html) // in the Amazon Amazon CloudFront Developer Guide. ViewerCertificate *ViewerCertificate `type:"structure"` @@ -4494,8 +5082,105 @@ func (s *DistributionConfig) Validate() error { return nil } +// SetAliases sets the Aliases field's value. +func (s *DistributionConfig) SetAliases(v *Aliases) *DistributionConfig { + s.Aliases = v + return s +} + +// SetCacheBehaviors sets the CacheBehaviors field's value. +func (s *DistributionConfig) SetCacheBehaviors(v *CacheBehaviors) *DistributionConfig { + s.CacheBehaviors = v + return s +} + +// SetCallerReference sets the CallerReference field's value. +func (s *DistributionConfig) SetCallerReference(v string) *DistributionConfig { + s.CallerReference = &v + return s +} + +// SetComment sets the Comment field's value. +func (s *DistributionConfig) SetComment(v string) *DistributionConfig { + s.Comment = &v + return s +} + +// SetCustomErrorResponses sets the CustomErrorResponses field's value. +func (s *DistributionConfig) SetCustomErrorResponses(v *CustomErrorResponses) *DistributionConfig { + s.CustomErrorResponses = v + return s +} + +// SetDefaultCacheBehavior sets the DefaultCacheBehavior field's value. +func (s *DistributionConfig) SetDefaultCacheBehavior(v *DefaultCacheBehavior) *DistributionConfig { + s.DefaultCacheBehavior = v + return s +} + +// SetDefaultRootObject sets the DefaultRootObject field's value. +func (s *DistributionConfig) SetDefaultRootObject(v string) *DistributionConfig { + s.DefaultRootObject = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *DistributionConfig) SetEnabled(v bool) *DistributionConfig { + s.Enabled = &v + return s +} + +// SetHttpVersion sets the HttpVersion field's value. +func (s *DistributionConfig) SetHttpVersion(v string) *DistributionConfig { + s.HttpVersion = &v + return s +} + +// SetIsIPV6Enabled sets the IsIPV6Enabled field's value. +func (s *DistributionConfig) SetIsIPV6Enabled(v bool) *DistributionConfig { + s.IsIPV6Enabled = &v + return s +} + +// SetLogging sets the Logging field's value. +func (s *DistributionConfig) SetLogging(v *LoggingConfig) *DistributionConfig { + s.Logging = v + return s +} + +// SetOrigins sets the Origins field's value. +func (s *DistributionConfig) SetOrigins(v *Origins) *DistributionConfig { + s.Origins = v + return s +} + +// SetPriceClass sets the PriceClass field's value. +func (s *DistributionConfig) SetPriceClass(v string) *DistributionConfig { + s.PriceClass = &v + return s +} + +// SetRestrictions sets the Restrictions field's value. +func (s *DistributionConfig) SetRestrictions(v *Restrictions) *DistributionConfig { + s.Restrictions = v + return s +} + +// SetViewerCertificate sets the ViewerCertificate field's value. +func (s *DistributionConfig) SetViewerCertificate(v *ViewerCertificate) *DistributionConfig { + s.ViewerCertificate = v + return s +} + +// SetWebACLId sets the WebACLId field's value. +func (s *DistributionConfig) SetWebACLId(v string) *DistributionConfig { + s.WebACLId = &v + return s +} + // A distribution Configuration and a list of tags to be associated with the // distribution. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/DistributionConfigWithTags type DistributionConfigWithTags struct { _ struct{} `type:"structure"` @@ -4546,7 +5231,20 @@ func (s *DistributionConfigWithTags) Validate() error { return nil } +// SetDistributionConfig sets the DistributionConfig field's value. +func (s *DistributionConfigWithTags) SetDistributionConfig(v *DistributionConfig) *DistributionConfigWithTags { + s.DistributionConfig = v + return s +} + +// SetTags sets the Tags field's value. +func (s *DistributionConfigWithTags) SetTags(v *Tags) *DistributionConfigWithTags { + s.Tags = v + return s +} + // A distribution list. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/DistributionList type DistributionList struct { _ struct{} `type:"structure"` @@ -4593,7 +5291,44 @@ func (s DistributionList) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *DistributionList) SetIsTruncated(v bool) *DistributionList { + s.IsTruncated = &v + return s +} + +// SetItems sets the Items field's value. +func (s *DistributionList) SetItems(v []*DistributionSummary) *DistributionList { + s.Items = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DistributionList) SetMarker(v string) *DistributionList { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *DistributionList) SetMaxItems(v int64) *DistributionList { + s.MaxItems = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *DistributionList) SetNextMarker(v string) *DistributionList { + s.NextMarker = &v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *DistributionList) SetQuantity(v int64) *DistributionList { + s.Quantity = &v + return s +} + // A summary of the information about a CloudFront distribution. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/DistributionSummary type DistributionSummary struct { _ struct{} `type:"structure"` @@ -4686,15 +5421,16 @@ type DistributionSummary struct { // A complex type that specifies the following: // - // Which SSL/TLS certificate to use when viewers request objects using HTTPS + // * Which SSL/TLS certificate to use when viewers request objects using + // HTTPS // - // Whether you want CloudFront to use dedicated IP addresses or SNI when - // you're using alternate domain names in your object names + // * Whether you want CloudFront to use dedicated IP addresses or SNI when + // you're using alternate domain names in your object names // - // The minimum protocol version that you want CloudFront to use when communicating - // with viewers + // * The minimum protocol version that you want CloudFront to use when communicating + // with viewers // - // For more information, see Using an HTTPS Connection to Access Your Objects + // For more information, see Using an HTTPS Connection to Access Your Objects // (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecureConnections.html) // in the Amazon Amazon CloudFront Developer Guide. // @@ -4717,7 +5453,116 @@ func (s DistributionSummary) GoString() string { return s.String() } +// SetARN sets the ARN field's value. +func (s *DistributionSummary) SetARN(v string) *DistributionSummary { + s.ARN = &v + return s +} + +// SetAliases sets the Aliases field's value. +func (s *DistributionSummary) SetAliases(v *Aliases) *DistributionSummary { + s.Aliases = v + return s +} + +// SetCacheBehaviors sets the CacheBehaviors field's value. +func (s *DistributionSummary) SetCacheBehaviors(v *CacheBehaviors) *DistributionSummary { + s.CacheBehaviors = v + return s +} + +// SetComment sets the Comment field's value. +func (s *DistributionSummary) SetComment(v string) *DistributionSummary { + s.Comment = &v + return s +} + +// SetCustomErrorResponses sets the CustomErrorResponses field's value. +func (s *DistributionSummary) SetCustomErrorResponses(v *CustomErrorResponses) *DistributionSummary { + s.CustomErrorResponses = v + return s +} + +// SetDefaultCacheBehavior sets the DefaultCacheBehavior field's value. +func (s *DistributionSummary) SetDefaultCacheBehavior(v *DefaultCacheBehavior) *DistributionSummary { + s.DefaultCacheBehavior = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DistributionSummary) SetDomainName(v string) *DistributionSummary { + s.DomainName = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *DistributionSummary) SetEnabled(v bool) *DistributionSummary { + s.Enabled = &v + return s +} + +// SetHttpVersion sets the HttpVersion field's value. +func (s *DistributionSummary) SetHttpVersion(v string) *DistributionSummary { + s.HttpVersion = &v + return s +} + +// SetId sets the Id field's value. +func (s *DistributionSummary) SetId(v string) *DistributionSummary { + s.Id = &v + return s +} + +// SetIsIPV6Enabled sets the IsIPV6Enabled field's value. +func (s *DistributionSummary) SetIsIPV6Enabled(v bool) *DistributionSummary { + s.IsIPV6Enabled = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *DistributionSummary) SetLastModifiedTime(v time.Time) *DistributionSummary { + s.LastModifiedTime = &v + return s +} + +// SetOrigins sets the Origins field's value. +func (s *DistributionSummary) SetOrigins(v *Origins) *DistributionSummary { + s.Origins = v + return s +} + +// SetPriceClass sets the PriceClass field's value. +func (s *DistributionSummary) SetPriceClass(v string) *DistributionSummary { + s.PriceClass = &v + return s +} + +// SetRestrictions sets the Restrictions field's value. +func (s *DistributionSummary) SetRestrictions(v *Restrictions) *DistributionSummary { + s.Restrictions = v + return s +} + +// SetStatus sets the Status field's value. +func (s *DistributionSummary) SetStatus(v string) *DistributionSummary { + s.Status = &v + return s +} + +// SetViewerCertificate sets the ViewerCertificate field's value. +func (s *DistributionSummary) SetViewerCertificate(v *ViewerCertificate) *DistributionSummary { + s.ViewerCertificate = v + return s +} + +// SetWebACLId sets the WebACLId field's value. +func (s *DistributionSummary) SetWebACLId(v string) *DistributionSummary { + s.WebACLId = &v + return s +} + // A complex type that specifies how CloudFront handles query strings and cookies. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ForwardedValues type ForwardedValues struct { _ struct{} `type:"structure"` @@ -4807,8 +5652,33 @@ func (s *ForwardedValues) Validate() error { return nil } +// SetCookies sets the Cookies field's value. +func (s *ForwardedValues) SetCookies(v *CookiePreference) *ForwardedValues { + s.Cookies = v + return s +} + +// SetHeaders sets the Headers field's value. +func (s *ForwardedValues) SetHeaders(v *Headers) *ForwardedValues { + s.Headers = v + return s +} + +// SetQueryString sets the QueryString field's value. +func (s *ForwardedValues) SetQueryString(v bool) *ForwardedValues { + s.QueryString = &v + return s +} + +// SetQueryStringCacheKeys sets the QueryStringCacheKeys field's value. +func (s *ForwardedValues) SetQueryStringCacheKeys(v *QueryStringCacheKeys) *ForwardedValues { + s.QueryStringCacheKeys = v + return s +} + // A complex type that controls the countries in which your content is distributed. // CloudFront determines the location of your users using MaxMind GeoIP databases. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GeoRestriction type GeoRestriction struct { _ struct{} `type:"structure"` @@ -4820,9 +5690,9 @@ type GeoRestriction struct { // that you want to include in your blacklist or whitelist. Include one Location // element for each country. // - // CloudFront and MaxMind both use ISO 3166 country codes. For the current - // list of countries and the corresponding codes, see ISO 3166-1-alpha-2 code - // on the International Organization for Standardization website. You can also + // CloudFront and MaxMind both use ISO 3166 country codes. For the current list + // of countries and the corresponding codes, see ISO 3166-1-alpha-2 code on + // the International Organization for Standardization website. You can also // refer to the country list in the CloudFront console, which includes both // country names and codes. Items []*string `locationNameList:"Location" type:"list"` @@ -4837,14 +5707,14 @@ type GeoRestriction struct { // The method that you want to use to restrict distribution of your content // by country: // - // none: No geo restriction is enabled, meaning access to content is not - // restricted by client geo location. + // * none: No geo restriction is enabled, meaning access to content is not + // restricted by client geo location. // - // blacklist: The Location elements specify the countries in which you do - // not want CloudFront to distribute your content. + // * blacklist: The Location elements specify the countries in which you + // do not want CloudFront to distribute your content. // - // whitelist: The Location elements specify the countries in which you want - // CloudFront to distribute your content. + // * whitelist: The Location elements specify the countries in which you + // want CloudFront to distribute your content. // // RestrictionType is a required field RestrictionType *string `type:"string" required:"true" enum:"GeoRestrictionType"` @@ -4876,8 +5746,27 @@ func (s *GeoRestriction) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *GeoRestriction) SetItems(v []*string) *GeoRestriction { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *GeoRestriction) SetQuantity(v int64) *GeoRestriction { + s.Quantity = &v + return s +} + +// SetRestrictionType sets the RestrictionType field's value. +func (s *GeoRestriction) SetRestrictionType(v string) *GeoRestriction { + s.RestrictionType = &v + return s +} + // The origin access identity's configuration information. For more information, // see CloudFrontOriginAccessIdentityConfigComplexType. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetCloudFrontOriginAccessIdentityConfigRequest type GetCloudFrontOriginAccessIdentityConfigInput struct { _ struct{} `type:"structure"` @@ -4910,7 +5799,14 @@ func (s *GetCloudFrontOriginAccessIdentityConfigInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetCloudFrontOriginAccessIdentityConfigInput) SetId(v string) *GetCloudFrontOriginAccessIdentityConfigInput { + s.Id = &v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetCloudFrontOriginAccessIdentityConfigResult type GetCloudFrontOriginAccessIdentityConfigOutput struct { _ struct{} `type:"structure" payload:"CloudFrontOriginAccessIdentityConfig"` @@ -4931,7 +5827,20 @@ func (s GetCloudFrontOriginAccessIdentityConfigOutput) GoString() string { return s.String() } +// SetCloudFrontOriginAccessIdentityConfig sets the CloudFrontOriginAccessIdentityConfig field's value. +func (s *GetCloudFrontOriginAccessIdentityConfigOutput) SetCloudFrontOriginAccessIdentityConfig(v *OriginAccessIdentityConfig) *GetCloudFrontOriginAccessIdentityConfigOutput { + s.CloudFrontOriginAccessIdentityConfig = v + return s +} + +// SetETag sets the ETag field's value. +func (s *GetCloudFrontOriginAccessIdentityConfigOutput) SetETag(v string) *GetCloudFrontOriginAccessIdentityConfigOutput { + s.ETag = &v + return s +} + // The request to get an origin access identity's information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetCloudFrontOriginAccessIdentityRequest type GetCloudFrontOriginAccessIdentityInput struct { _ struct{} `type:"structure"` @@ -4964,7 +5873,14 @@ func (s *GetCloudFrontOriginAccessIdentityInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetCloudFrontOriginAccessIdentityInput) SetId(v string) *GetCloudFrontOriginAccessIdentityInput { + s.Id = &v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetCloudFrontOriginAccessIdentityResult type GetCloudFrontOriginAccessIdentityOutput struct { _ struct{} `type:"structure" payload:"CloudFrontOriginAccessIdentity"` @@ -4986,7 +5902,20 @@ func (s GetCloudFrontOriginAccessIdentityOutput) GoString() string { return s.String() } +// SetCloudFrontOriginAccessIdentity sets the CloudFrontOriginAccessIdentity field's value. +func (s *GetCloudFrontOriginAccessIdentityOutput) SetCloudFrontOriginAccessIdentity(v *OriginAccessIdentity) *GetCloudFrontOriginAccessIdentityOutput { + s.CloudFrontOriginAccessIdentity = v + return s +} + +// SetETag sets the ETag field's value. +func (s *GetCloudFrontOriginAccessIdentityOutput) SetETag(v string) *GetCloudFrontOriginAccessIdentityOutput { + s.ETag = &v + return s +} + // The request to get a distribution configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetDistributionConfigRequest type GetDistributionConfigInput struct { _ struct{} `type:"structure"` @@ -5019,7 +5948,14 @@ func (s *GetDistributionConfigInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetDistributionConfigInput) SetId(v string) *GetDistributionConfigInput { + s.Id = &v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetDistributionConfigResult type GetDistributionConfigOutput struct { _ struct{} `type:"structure" payload:"DistributionConfig"` @@ -5040,7 +5976,20 @@ func (s GetDistributionConfigOutput) GoString() string { return s.String() } +// SetDistributionConfig sets the DistributionConfig field's value. +func (s *GetDistributionConfigOutput) SetDistributionConfig(v *DistributionConfig) *GetDistributionConfigOutput { + s.DistributionConfig = v + return s +} + +// SetETag sets the ETag field's value. +func (s *GetDistributionConfigOutput) SetETag(v string) *GetDistributionConfigOutput { + s.ETag = &v + return s +} + // The request to get a distribution's information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetDistributionRequest type GetDistributionInput struct { _ struct{} `type:"structure"` @@ -5073,7 +6022,14 @@ func (s *GetDistributionInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetDistributionInput) SetId(v string) *GetDistributionInput { + s.Id = &v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetDistributionResult type GetDistributionOutput struct { _ struct{} `type:"structure" payload:"Distribution"` @@ -5094,7 +6050,20 @@ func (s GetDistributionOutput) GoString() string { return s.String() } +// SetDistribution sets the Distribution field's value. +func (s *GetDistributionOutput) SetDistribution(v *Distribution) *GetDistributionOutput { + s.Distribution = v + return s +} + +// SetETag sets the ETag field's value. +func (s *GetDistributionOutput) SetETag(v string) *GetDistributionOutput { + s.ETag = &v + return s +} + // The request to get an invalidation's information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetInvalidationRequest type GetInvalidationInput struct { _ struct{} `type:"structure"` @@ -5135,7 +6104,20 @@ func (s *GetInvalidationInput) Validate() error { return nil } +// SetDistributionId sets the DistributionId field's value. +func (s *GetInvalidationInput) SetDistributionId(v string) *GetInvalidationInput { + s.DistributionId = &v + return s +} + +// SetId sets the Id field's value. +func (s *GetInvalidationInput) SetId(v string) *GetInvalidationInput { + s.Id = &v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetInvalidationResult type GetInvalidationOutput struct { _ struct{} `type:"structure" payload:"Invalidation"` @@ -5154,7 +6136,14 @@ func (s GetInvalidationOutput) GoString() string { return s.String() } +// SetInvalidation sets the Invalidation field's value. +func (s *GetInvalidationOutput) SetInvalidation(v *Invalidation) *GetInvalidationOutput { + s.Invalidation = v + return s +} + // To request to get a streaming distribution configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetStreamingDistributionConfigRequest type GetStreamingDistributionConfigInput struct { _ struct{} `type:"structure"` @@ -5187,7 +6176,14 @@ func (s *GetStreamingDistributionConfigInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetStreamingDistributionConfigInput) SetId(v string) *GetStreamingDistributionConfigInput { + s.Id = &v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetStreamingDistributionConfigResult type GetStreamingDistributionConfigOutput struct { _ struct{} `type:"structure" payload:"StreamingDistributionConfig"` @@ -5208,7 +6204,20 @@ func (s GetStreamingDistributionConfigOutput) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *GetStreamingDistributionConfigOutput) SetETag(v string) *GetStreamingDistributionConfigOutput { + s.ETag = &v + return s +} + +// SetStreamingDistributionConfig sets the StreamingDistributionConfig field's value. +func (s *GetStreamingDistributionConfigOutput) SetStreamingDistributionConfig(v *StreamingDistributionConfig) *GetStreamingDistributionConfigOutput { + s.StreamingDistributionConfig = v + return s +} + // The request to get a streaming distribution's information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetStreamingDistributionRequest type GetStreamingDistributionInput struct { _ struct{} `type:"structure"` @@ -5241,7 +6250,14 @@ func (s *GetStreamingDistributionInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetStreamingDistributionInput) SetId(v string) *GetStreamingDistributionInput { + s.Id = &v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/GetStreamingDistributionResult type GetStreamingDistributionOutput struct { _ struct{} `type:"structure" payload:"StreamingDistribution"` @@ -5263,6 +6279,18 @@ func (s GetStreamingDistributionOutput) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *GetStreamingDistributionOutput) SetETag(v string) *GetStreamingDistributionOutput { + s.ETag = &v + return s +} + +// SetStreamingDistribution sets the StreamingDistribution field's value. +func (s *GetStreamingDistributionOutput) SetStreamingDistribution(v *StreamingDistribution) *GetStreamingDistributionOutput { + s.StreamingDistribution = v + return s +} + // A complex type that specifies the headers that you want CloudFront to forward // to the origin for this cache behavior. // @@ -5275,6 +6303,7 @@ func (s GetStreamingDistributionOutput) GoString() string { // once for each header value. For more information about caching based on header // values, see How CloudFront Forwards and Caches Headers (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html) // in the Amazon CloudFront Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/Headers type Headers struct { _ struct{} `type:"structure"` @@ -5287,22 +6316,23 @@ type Headers struct { // origin for this cache behavior. You can configure each cache behavior in // a web distribution to do one of the following: // - // Forward all headers to your origin: Specify 1 for Quantity and * for - // Name. + // * Forward all headers to your origin: Specify 1 for Quantity and * for + // Name. + // + // If you configure CloudFront to forward all headers to your origin, CloudFront + // doesn't cache the objects associated with this cache behavior. Instead, + // it sends every request to the origin. // - // If you configure CloudFront to forward all headers to your origin, CloudFront - // doesn't cache the objects associated with this cache behavior. Instead, it - // sends every request to the origin. + // * Forward a whitelist of headers you specify: Specify the number of headers + // that you want to forward, and specify the header names in Name elements. + // CloudFront caches your objects based on the values in all of the specified + // headers. CloudFront also forwards the headers that it forwards by default, + // but it caches your objects based only on the headers that you specify. // - // Forward a whitelist of headers you specify: Specify the number of headers - // that you want to forward, and specify the header names in Name elements. - // CloudFront caches your objects based on the values in all of the specified - // headers. CloudFront also forwards the headers that it forwards by default, - // but it caches your objects based only on the headers that you specify. // - // Forward only the default headers: Specify 0 for Quantity and omit Items. - // In this configuration, CloudFront doesn't cache based on the values in the - // request headers. + // * Forward only the default headers: Specify 0 for Quantity and omit Items. + // In this configuration, CloudFront doesn't cache based on the values in + // the request headers. // // Quantity is a required field Quantity *int64 `type:"integer" required:"true"` @@ -5331,7 +6361,20 @@ func (s *Headers) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *Headers) SetItems(v []*string) *Headers { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *Headers) SetQuantity(v int64) *Headers { + s.Quantity = &v + return s +} + // An invalidation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/Invalidation type Invalidation struct { _ struct{} `type:"structure"` @@ -5367,7 +6410,32 @@ func (s Invalidation) GoString() string { return s.String() } +// SetCreateTime sets the CreateTime field's value. +func (s *Invalidation) SetCreateTime(v time.Time) *Invalidation { + s.CreateTime = &v + return s +} + +// SetId sets the Id field's value. +func (s *Invalidation) SetId(v string) *Invalidation { + s.Id = &v + return s +} + +// SetInvalidationBatch sets the InvalidationBatch field's value. +func (s *Invalidation) SetInvalidationBatch(v *InvalidationBatch) *Invalidation { + s.InvalidationBatch = v + return s +} + +// SetStatus sets the Status field's value. +func (s *Invalidation) SetStatus(v string) *Invalidation { + s.Status = &v + return s +} + // An invalidation batch. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/InvalidationBatch type InvalidationBatch struct { _ struct{} `type:"structure"` @@ -5430,10 +6498,23 @@ func (s *InvalidationBatch) Validate() error { return nil } +// SetCallerReference sets the CallerReference field's value. +func (s *InvalidationBatch) SetCallerReference(v string) *InvalidationBatch { + s.CallerReference = &v + return s +} + +// SetPaths sets the Paths field's value. +func (s *InvalidationBatch) SetPaths(v *Paths) *InvalidationBatch { + s.Paths = v + return s +} + // The InvalidationList complex type describes the list of invalidation objects. // For more information about invalidation, see Invalidating Objects (Web Distributions // Only) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html) // in the Amazon CloudFront Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/InvalidationList type InvalidationList struct { _ struct{} `type:"structure"` @@ -5480,7 +6561,44 @@ func (s InvalidationList) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *InvalidationList) SetIsTruncated(v bool) *InvalidationList { + s.IsTruncated = &v + return s +} + +// SetItems sets the Items field's value. +func (s *InvalidationList) SetItems(v []*InvalidationSummary) *InvalidationList { + s.Items = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *InvalidationList) SetMarker(v string) *InvalidationList { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *InvalidationList) SetMaxItems(v int64) *InvalidationList { + s.MaxItems = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *InvalidationList) SetNextMarker(v string) *InvalidationList { + s.NextMarker = &v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *InvalidationList) SetQuantity(v int64) *InvalidationList { + s.Quantity = &v + return s +} + // A summary of an invalidation request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/InvalidationSummary type InvalidationSummary struct { _ struct{} `type:"structure"` @@ -5508,10 +6626,29 @@ func (s InvalidationSummary) GoString() string { return s.String() } +// SetCreateTime sets the CreateTime field's value. +func (s *InvalidationSummary) SetCreateTime(v time.Time) *InvalidationSummary { + s.CreateTime = &v + return s +} + +// SetId sets the Id field's value. +func (s *InvalidationSummary) SetId(v string) *InvalidationSummary { + s.Id = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *InvalidationSummary) SetStatus(v string) *InvalidationSummary { + s.Status = &v + return s +} + // A complex type that lists the active CloudFront key pairs, if any, that are // associated with AwsAccountNumber. // // For more information, see ActiveTrustedSigners. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/KeyPairIds type KeyPairIds struct { _ struct{} `type:"structure"` @@ -5539,7 +6676,123 @@ func (s KeyPairIds) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *KeyPairIds) SetItems(v []*string) *KeyPairIds { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *KeyPairIds) SetQuantity(v int64) *KeyPairIds { + s.Quantity = &v + return s +} + +// A complex type that contains a Lambda function association. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/LambdaFunctionAssociation +type LambdaFunctionAssociation struct { + _ struct{} `type:"structure"` + + // Specifies the event type that triggers a Lambda function invocation. Valid + // values are: + // + // * viewer-request + // + // * origin-request + // + // * viewer-response + // + // * origin-response + EventType *string `type:"string" enum:"EventType"` + + // The ARN of the Lambda function. + LambdaFunctionARN *string `type:"string"` +} + +// String returns the string representation +func (s LambdaFunctionAssociation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LambdaFunctionAssociation) GoString() string { + return s.String() +} + +// SetEventType sets the EventType field's value. +func (s *LambdaFunctionAssociation) SetEventType(v string) *LambdaFunctionAssociation { + s.EventType = &v + return s +} + +// SetLambdaFunctionARN sets the LambdaFunctionARN field's value. +func (s *LambdaFunctionAssociation) SetLambdaFunctionARN(v string) *LambdaFunctionAssociation { + s.LambdaFunctionARN = &v + return s +} + +// A complex type that specifies a list of Lambda functions associations for +// a cache behavior. +// +// If you want to invoke one or more Lambda functions triggered by requests +// that match the PathPattern of the cache behavior, specify the applicable +// values for Quantity and Items. Note that there can be up to 4 LambdaFunctionAssociation +// items in this list (one for each possible value of EventType) and each EventType +// can be associated with the Lambda function only once. +// +// If you don't want to invoke any Lambda functions for the requests that match +// PathPattern, specify 0 for Quantity and omit Items. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/LambdaFunctionAssociations +type LambdaFunctionAssociations struct { + _ struct{} `type:"structure"` + + // Optional: A complex type that contains LambdaFunctionAssociation items for + // this cache behavior. If Quantity is 0, you can omit Items. + Items []*LambdaFunctionAssociation `locationNameList:"LambdaFunctionAssociation" type:"list"` + + // The number of Lambda function associations for this cache behavior. + // + // Quantity is a required field + Quantity *int64 `type:"integer" required:"true"` +} + +// String returns the string representation +func (s LambdaFunctionAssociations) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LambdaFunctionAssociations) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LambdaFunctionAssociations) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LambdaFunctionAssociations"} + if s.Quantity == nil { + invalidParams.Add(request.NewErrParamRequired("Quantity")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetItems sets the Items field's value. +func (s *LambdaFunctionAssociations) SetItems(v []*LambdaFunctionAssociation) *LambdaFunctionAssociations { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *LambdaFunctionAssociations) SetQuantity(v int64) *LambdaFunctionAssociations { + s.Quantity = &v + return s +} + // The request to list origin access identities. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListCloudFrontOriginAccessIdentitiesRequest type ListCloudFrontOriginAccessIdentitiesInput struct { _ struct{} `type:"structure"` @@ -5564,7 +6817,20 @@ func (s ListCloudFrontOriginAccessIdentitiesInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListCloudFrontOriginAccessIdentitiesInput) SetMarker(v string) *ListCloudFrontOriginAccessIdentitiesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListCloudFrontOriginAccessIdentitiesInput) SetMaxItems(v int64) *ListCloudFrontOriginAccessIdentitiesInput { + s.MaxItems = &v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListCloudFrontOriginAccessIdentitiesResult type ListCloudFrontOriginAccessIdentitiesOutput struct { _ struct{} `type:"structure" payload:"CloudFrontOriginAccessIdentityList"` @@ -5582,8 +6848,15 @@ func (s ListCloudFrontOriginAccessIdentitiesOutput) GoString() string { return s.String() } +// SetCloudFrontOriginAccessIdentityList sets the CloudFrontOriginAccessIdentityList field's value. +func (s *ListCloudFrontOriginAccessIdentitiesOutput) SetCloudFrontOriginAccessIdentityList(v *OriginAccessIdentityList) *ListCloudFrontOriginAccessIdentitiesOutput { + s.CloudFrontOriginAccessIdentityList = v + return s +} + // The request to list distributions that are associated with a specified AWS // WAF web ACL. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListDistributionsByWebACLIdRequest type ListDistributionsByWebACLIdInput struct { _ struct{} `type:"structure"` @@ -5629,8 +6902,27 @@ func (s *ListDistributionsByWebACLIdInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListDistributionsByWebACLIdInput) SetMarker(v string) *ListDistributionsByWebACLIdInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListDistributionsByWebACLIdInput) SetMaxItems(v int64) *ListDistributionsByWebACLIdInput { + s.MaxItems = &v + return s +} + +// SetWebACLId sets the WebACLId field's value. +func (s *ListDistributionsByWebACLIdInput) SetWebACLId(v string) *ListDistributionsByWebACLIdInput { + s.WebACLId = &v + return s +} + // The response to a request to list the distributions that are associated with // a specified AWS WAF web ACL. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListDistributionsByWebACLIdResult type ListDistributionsByWebACLIdOutput struct { _ struct{} `type:"structure" payload:"DistributionList"` @@ -5648,7 +6940,14 @@ func (s ListDistributionsByWebACLIdOutput) GoString() string { return s.String() } +// SetDistributionList sets the DistributionList field's value. +func (s *ListDistributionsByWebACLIdOutput) SetDistributionList(v *DistributionList) *ListDistributionsByWebACLIdOutput { + s.DistributionList = v + return s +} + // The request to list your distributions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListDistributionsRequest type ListDistributionsInput struct { _ struct{} `type:"structure"` @@ -5673,7 +6972,20 @@ func (s ListDistributionsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListDistributionsInput) SetMarker(v string) *ListDistributionsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListDistributionsInput) SetMaxItems(v int64) *ListDistributionsInput { + s.MaxItems = &v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListDistributionsResult type ListDistributionsOutput struct { _ struct{} `type:"structure" payload:"DistributionList"` @@ -5691,7 +7003,14 @@ func (s ListDistributionsOutput) GoString() string { return s.String() } +// SetDistributionList sets the DistributionList field's value. +func (s *ListDistributionsOutput) SetDistributionList(v *DistributionList) *ListDistributionsOutput { + s.DistributionList = v + return s +} + // The request to list invalidations. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListInvalidationsRequest type ListInvalidationsInput struct { _ struct{} `type:"structure"` @@ -5737,7 +7056,26 @@ func (s *ListInvalidationsInput) Validate() error { return nil } +// SetDistributionId sets the DistributionId field's value. +func (s *ListInvalidationsInput) SetDistributionId(v string) *ListInvalidationsInput { + s.DistributionId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListInvalidationsInput) SetMarker(v string) *ListInvalidationsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListInvalidationsInput) SetMaxItems(v int64) *ListInvalidationsInput { + s.MaxItems = &v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListInvalidationsResult type ListInvalidationsOutput struct { _ struct{} `type:"structure" payload:"InvalidationList"` @@ -5755,7 +7093,14 @@ func (s ListInvalidationsOutput) GoString() string { return s.String() } +// SetInvalidationList sets the InvalidationList field's value. +func (s *ListInvalidationsOutput) SetInvalidationList(v *InvalidationList) *ListInvalidationsOutput { + s.InvalidationList = v + return s +} + // The request to list your streaming distributions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListStreamingDistributionsRequest type ListStreamingDistributionsInput struct { _ struct{} `type:"structure"` @@ -5776,7 +7121,20 @@ func (s ListStreamingDistributionsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListStreamingDistributionsInput) SetMarker(v string) *ListStreamingDistributionsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListStreamingDistributionsInput) SetMaxItems(v int64) *ListStreamingDistributionsInput { + s.MaxItems = &v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListStreamingDistributionsResult type ListStreamingDistributionsOutput struct { _ struct{} `type:"structure" payload:"StreamingDistributionList"` @@ -5794,7 +7152,14 @@ func (s ListStreamingDistributionsOutput) GoString() string { return s.String() } +// SetStreamingDistributionList sets the StreamingDistributionList field's value. +func (s *ListStreamingDistributionsOutput) SetStreamingDistributionList(v *StreamingDistributionList) *ListStreamingDistributionsOutput { + s.StreamingDistributionList = v + return s +} + // The request to list tags for a CloudFront resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListTagsForResourceRequest type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -5827,7 +7192,14 @@ func (s *ListTagsForResourceInput) Validate() error { return nil } +// SetResource sets the Resource field's value. +func (s *ListTagsForResourceInput) SetResource(v string) *ListTagsForResourceInput { + s.Resource = &v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ListTagsForResourceResult type ListTagsForResourceOutput struct { _ struct{} `type:"structure" payload:"Tags"` @@ -5847,7 +7219,14 @@ func (s ListTagsForResourceOutput) GoString() string { return s.String() } +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v *Tags) *ListTagsForResourceOutput { + s.Tags = v + return s +} + // A complex type that controls whether access logs are written for the distribution. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/LoggingConfig type LoggingConfig struct { _ struct{} `type:"structure"` @@ -5917,6 +7296,30 @@ func (s *LoggingConfig) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *LoggingConfig) SetBucket(v string) *LoggingConfig { + s.Bucket = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *LoggingConfig) SetEnabled(v bool) *LoggingConfig { + s.Enabled = &v + return s +} + +// SetIncludeCookies sets the IncludeCookies field's value. +func (s *LoggingConfig) SetIncludeCookies(v bool) *LoggingConfig { + s.IncludeCookies = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *LoggingConfig) SetPrefix(v string) *LoggingConfig { + s.Prefix = &v + return s +} + // A complex type that describes the Amazon S3 bucket or the HTTP server (for // example, a web server) from which CloudFront gets your files. You must create // at least one origin. @@ -5924,6 +7327,7 @@ func (s *LoggingConfig) Validate() error { // For the current limit on the number of origins that you can create for a // distribution, see Amazon CloudFront Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_cloudfront) // in the AWS General Reference. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/Origin type Origin struct { _ struct{} `type:"structure"` @@ -5940,25 +7344,25 @@ type Origin struct { // // Constraints for Amazon S3 origins: // - // If you configured Amazon S3 Transfer Acceleration for your bucket, do - // not specify the s3-accelerate endpoint for DomainName. + // * If you configured Amazon S3 Transfer Acceleration for your bucket, do + // not specify the s3-accelerate endpoint for DomainName. // - // The bucket name must be between 3 and 63 characters long (inclusive). + // * The bucket name must be between 3 and 63 characters long (inclusive). // - // The bucket name must contain only lowercase characters, numbers, periods, - // underscores, and dashes. + // * The bucket name must contain only lowercase characters, numbers, periods, + // underscores, and dashes. // - // The bucket name must not contain adjacent periods. + // * The bucket name must not contain adjacent periods. // - // Custom Origins: The DNS domain name for the HTTP server from which you - // want CloudFront to get objects for this origin, for example, www.example.com. + // Custom Origins: The DNS domain name for the HTTP server from which you want + // CloudFront to get objects for this origin, for example, www.example.com. // // Constraints for custom origins: // - // DomainName must be a valid DNS name that contains only a-z, A-Z, 0-9, - // dot (.), hyphen (-), or underscore (_) characters. + // * DomainName must be a valid DNS name that contains only a-z, A-Z, 0-9, + // dot (.), hyphen (-), or underscore (_) characters. // - // The name cannot exceed 128 characters. + // * The name cannot exceed 128 characters. // // DomainName is a required field DomainName *string `type:"string" required:"true"` @@ -5985,17 +7389,17 @@ type Origin struct { // // For example, suppose you've specified the following values for your distribution: // - // DomainName: An Amazon S3 bucket named myawsbucket. + // * DomainName: An Amazon S3 bucket named myawsbucket. // - // OriginPath: /production + // * OriginPath: /production // - // CNAME: example.com + // * CNAME: example.com // - // When a user enters example.com/index.html in a browser, CloudFront sends + // When a user enters example.com/index.html in a browser, CloudFront sends // a request to Amazon S3 for myawsbucket/production/index.html. // - // When a user enters example.com/acme/index.html in a browser, CloudFront - // sends a request to Amazon S3 for myawsbucket/production/acme/index.html. + // When a user enters example.com/acme/index.html in a browser, CloudFront sends + // a request to Amazon S3 for myawsbucket/production/acme/index.html. OriginPath *string `type:"string"` // A complex type that contains information about the Amazon S3 origin. If the @@ -6044,7 +7448,44 @@ func (s *Origin) Validate() error { return nil } +// SetCustomHeaders sets the CustomHeaders field's value. +func (s *Origin) SetCustomHeaders(v *CustomHeaders) *Origin { + s.CustomHeaders = v + return s +} + +// SetCustomOriginConfig sets the CustomOriginConfig field's value. +func (s *Origin) SetCustomOriginConfig(v *CustomOriginConfig) *Origin { + s.CustomOriginConfig = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *Origin) SetDomainName(v string) *Origin { + s.DomainName = &v + return s +} + +// SetId sets the Id field's value. +func (s *Origin) SetId(v string) *Origin { + s.Id = &v + return s +} + +// SetOriginPath sets the OriginPath field's value. +func (s *Origin) SetOriginPath(v string) *Origin { + s.OriginPath = &v + return s +} + +// SetS3OriginConfig sets the S3OriginConfig field's value. +func (s *Origin) SetS3OriginConfig(v *S3OriginConfig) *Origin { + s.S3OriginConfig = v + return s +} + // CloudFront origin access identity. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CloudFrontOriginAccessIdentity type OriginAccessIdentity struct { _ struct{} `type:"structure"` @@ -6074,8 +7515,27 @@ func (s OriginAccessIdentity) GoString() string { return s.String() } +// SetCloudFrontOriginAccessIdentityConfig sets the CloudFrontOriginAccessIdentityConfig field's value. +func (s *OriginAccessIdentity) SetCloudFrontOriginAccessIdentityConfig(v *OriginAccessIdentityConfig) *OriginAccessIdentity { + s.CloudFrontOriginAccessIdentityConfig = v + return s +} + +// SetId sets the Id field's value. +func (s *OriginAccessIdentity) SetId(v string) *OriginAccessIdentity { + s.Id = &v + return s +} + +// SetS3CanonicalUserId sets the S3CanonicalUserId field's value. +func (s *OriginAccessIdentity) SetS3CanonicalUserId(v string) *OriginAccessIdentity { + s.S3CanonicalUserId = &v + return s +} + // Origin access identity configuration. Send a GET request to the /CloudFront // API version/CloudFront/identity ID/config resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CloudFrontOriginAccessIdentityConfig type OriginAccessIdentityConfig struct { _ struct{} `type:"structure"` @@ -6129,12 +7589,25 @@ func (s *OriginAccessIdentityConfig) Validate() error { return nil } +// SetCallerReference sets the CallerReference field's value. +func (s *OriginAccessIdentityConfig) SetCallerReference(v string) *OriginAccessIdentityConfig { + s.CallerReference = &v + return s +} + +// SetComment sets the Comment field's value. +func (s *OriginAccessIdentityConfig) SetComment(v string) *OriginAccessIdentityConfig { + s.Comment = &v + return s +} + // Lists the origin access identities for CloudFront.Send a GET request to the // /CloudFront API version/origin-access-identity/cloudfront resource. The response // includes a CloudFrontOriginAccessIdentityList element with zero or more CloudFrontOriginAccessIdentitySummary // child elements. By default, your entire list of origin access identities // is returned in one single page. If the list is long, you can paginate it // using the MaxItems and Marker parameters. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CloudFrontOriginAccessIdentityList type OriginAccessIdentityList struct { _ struct{} `type:"structure"` @@ -6186,7 +7659,44 @@ func (s OriginAccessIdentityList) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *OriginAccessIdentityList) SetIsTruncated(v bool) *OriginAccessIdentityList { + s.IsTruncated = &v + return s +} + +// SetItems sets the Items field's value. +func (s *OriginAccessIdentityList) SetItems(v []*OriginAccessIdentitySummary) *OriginAccessIdentityList { + s.Items = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *OriginAccessIdentityList) SetMarker(v string) *OriginAccessIdentityList { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *OriginAccessIdentityList) SetMaxItems(v int64) *OriginAccessIdentityList { + s.MaxItems = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *OriginAccessIdentityList) SetNextMarker(v string) *OriginAccessIdentityList { + s.NextMarker = &v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *OriginAccessIdentityList) SetQuantity(v int64) *OriginAccessIdentityList { + s.Quantity = &v + return s +} + // Summary of the information about a CloudFront origin access identity. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/CloudFrontOriginAccessIdentitySummary type OriginAccessIdentitySummary struct { _ struct{} `type:"structure"` @@ -6219,8 +7729,27 @@ func (s OriginAccessIdentitySummary) GoString() string { return s.String() } +// SetComment sets the Comment field's value. +func (s *OriginAccessIdentitySummary) SetComment(v string) *OriginAccessIdentitySummary { + s.Comment = &v + return s +} + +// SetId sets the Id field's value. +func (s *OriginAccessIdentitySummary) SetId(v string) *OriginAccessIdentitySummary { + s.Id = &v + return s +} + +// SetS3CanonicalUserId sets the S3CanonicalUserId field's value. +func (s *OriginAccessIdentitySummary) SetS3CanonicalUserId(v string) *OriginAccessIdentitySummary { + s.S3CanonicalUserId = &v + return s +} + // A complex type that contains HeaderName and HeaderValue elements, if any, // for this distribution. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/OriginCustomHeader type OriginCustomHeader struct { _ struct{} `type:"structure"` @@ -6264,8 +7793,21 @@ func (s *OriginCustomHeader) Validate() error { return nil } +// SetHeaderName sets the HeaderName field's value. +func (s *OriginCustomHeader) SetHeaderName(v string) *OriginCustomHeader { + s.HeaderName = &v + return s +} + +// SetHeaderValue sets the HeaderValue field's value. +func (s *OriginCustomHeader) SetHeaderValue(v string) *OriginCustomHeader { + s.HeaderValue = &v + return s +} + // A complex type that contains information about the SSL/TLS protocols that // CloudFront can use when establishing an HTTPS connection with your origin. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/OriginSslProtocols type OriginSslProtocols struct { _ struct{} `type:"structure"` @@ -6307,7 +7849,20 @@ func (s *OriginSslProtocols) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *OriginSslProtocols) SetItems(v []*string) *OriginSslProtocols { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *OriginSslProtocols) SetQuantity(v int64) *OriginSslProtocols { + s.Quantity = &v + return s +} + // A complex type that contains information about origins for this distribution. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/Origins type Origins struct { _ struct{} `type:"structure"` @@ -6356,10 +7911,23 @@ func (s *Origins) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *Origins) SetItems(v []*Origin) *Origins { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *Origins) SetQuantity(v int64) *Origins { + s.Quantity = &v + return s +} + // A complex type that contains information about the objects that you want // to invalidate. For more information, see Specifying the Objects to Invalidate // (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html#invalidation-specifying-objects) // in the Amazon CloudFront Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/Paths type Paths struct { _ struct{} `type:"structure"` @@ -6395,6 +7963,19 @@ func (s *Paths) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *Paths) SetItems(v []*string) *Paths { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *Paths) SetQuantity(v int64) *Paths { + s.Quantity = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/QueryStringCacheKeys type QueryStringCacheKeys struct { _ struct{} `type:"structure"` @@ -6432,8 +8013,21 @@ func (s *QueryStringCacheKeys) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *QueryStringCacheKeys) SetItems(v []*string) *QueryStringCacheKeys { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *QueryStringCacheKeys) SetQuantity(v int64) *QueryStringCacheKeys { + s.Quantity = &v + return s +} + // A complex type that identifies ways in which you want to restrict distribution // of your content. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/Restrictions type Restrictions struct { _ struct{} `type:"structure"` @@ -6472,8 +8066,15 @@ func (s *Restrictions) Validate() error { return nil } +// SetGeoRestriction sets the GeoRestriction field's value. +func (s *Restrictions) SetGeoRestriction(v *GeoRestriction) *Restrictions { + s.GeoRestriction = v + return s +} + // A complex type that contains information about the Amazon S3 bucket from // which you want CloudFront to get your media files for distribution. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/S3Origin type S3Origin struct { _ struct{} `type:"structure"` @@ -6530,8 +8131,21 @@ func (s *S3Origin) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *S3Origin) SetDomainName(v string) *S3Origin { + s.DomainName = &v + return s +} + +// SetOriginAccessIdentity sets the OriginAccessIdentity field's value. +func (s *S3Origin) SetOriginAccessIdentity(v string) *S3Origin { + s.OriginAccessIdentity = &v + return s +} + // A complex type that contains information about the Amazon S3 origin. If the // origin is a custom origin, use the CustomOriginConfig element instead. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/S3OriginConfig type S3OriginConfig struct { _ struct{} `type:"structure"` @@ -6542,7 +8156,7 @@ type S3OriginConfig struct { // // origin-access-identity/CloudFront/ID-of-origin-access-identity // - // where ID-of-origin-access-identity is the value that CloudFront returned + // where ID-of-origin-access-identity is the value that CloudFront returned // in the ID element when you created the origin access identity. // // If you want viewers to be able to access objects using either the CloudFront @@ -6586,17 +8200,24 @@ func (s *S3OriginConfig) Validate() error { return nil } +// SetOriginAccessIdentity sets the OriginAccessIdentity field's value. +func (s *S3OriginConfig) SetOriginAccessIdentity(v string) *S3OriginConfig { + s.OriginAccessIdentity = &v + return s +} + // A complex type that lists the AWS accounts that were included in the TrustedSigners // complex type, as well as their active CloudFront key pair IDs, if any. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/Signer type Signer struct { _ struct{} `type:"structure"` // An AWS account that is included in the TrustedSigners complex type for this // RTMP distribution. Valid values include: // - // self, which is the AWS account used to create the distribution. + // * self, which is the AWS account used to create the distribution. // - // An AWS account number. + // * An AWS account number. AwsAccountNumber *string `type:"string"` // A complex type that lists the active CloudFront key pairs, if any, that are @@ -6614,7 +8235,20 @@ func (s Signer) GoString() string { return s.String() } +// SetAwsAccountNumber sets the AwsAccountNumber field's value. +func (s *Signer) SetAwsAccountNumber(v string) *Signer { + s.AwsAccountNumber = &v + return s +} + +// SetKeyPairIds sets the KeyPairIds field's value. +func (s *Signer) SetKeyPairIds(v *KeyPairIds) *Signer { + s.KeyPairIds = v + return s +} + // A streaming distribution. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/StreamingDistribution type StreamingDistribution struct { _ struct{} `type:"structure"` @@ -6673,7 +8307,50 @@ func (s StreamingDistribution) GoString() string { return s.String() } +// SetARN sets the ARN field's value. +func (s *StreamingDistribution) SetARN(v string) *StreamingDistribution { + s.ARN = &v + return s +} + +// SetActiveTrustedSigners sets the ActiveTrustedSigners field's value. +func (s *StreamingDistribution) SetActiveTrustedSigners(v *ActiveTrustedSigners) *StreamingDistribution { + s.ActiveTrustedSigners = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *StreamingDistribution) SetDomainName(v string) *StreamingDistribution { + s.DomainName = &v + return s +} + +// SetId sets the Id field's value. +func (s *StreamingDistribution) SetId(v string) *StreamingDistribution { + s.Id = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *StreamingDistribution) SetLastModifiedTime(v time.Time) *StreamingDistribution { + s.LastModifiedTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *StreamingDistribution) SetStatus(v string) *StreamingDistribution { + s.Status = &v + return s +} + +// SetStreamingDistributionConfig sets the StreamingDistributionConfig field's value. +func (s *StreamingDistribution) SetStreamingDistributionConfig(v *StreamingDistributionConfig) *StreamingDistribution { + s.StreamingDistributionConfig = v + return s +} + // The RTMP distribution's configuration information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/StreamingDistributionConfig type StreamingDistributionConfig struct { _ struct{} `type:"structure"` @@ -6786,8 +8463,57 @@ func (s *StreamingDistributionConfig) Validate() error { return nil } +// SetAliases sets the Aliases field's value. +func (s *StreamingDistributionConfig) SetAliases(v *Aliases) *StreamingDistributionConfig { + s.Aliases = v + return s +} + +// SetCallerReference sets the CallerReference field's value. +func (s *StreamingDistributionConfig) SetCallerReference(v string) *StreamingDistributionConfig { + s.CallerReference = &v + return s +} + +// SetComment sets the Comment field's value. +func (s *StreamingDistributionConfig) SetComment(v string) *StreamingDistributionConfig { + s.Comment = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *StreamingDistributionConfig) SetEnabled(v bool) *StreamingDistributionConfig { + s.Enabled = &v + return s +} + +// SetLogging sets the Logging field's value. +func (s *StreamingDistributionConfig) SetLogging(v *StreamingLoggingConfig) *StreamingDistributionConfig { + s.Logging = v + return s +} + +// SetPriceClass sets the PriceClass field's value. +func (s *StreamingDistributionConfig) SetPriceClass(v string) *StreamingDistributionConfig { + s.PriceClass = &v + return s +} + +// SetS3Origin sets the S3Origin field's value. +func (s *StreamingDistributionConfig) SetS3Origin(v *S3Origin) *StreamingDistributionConfig { + s.S3Origin = v + return s +} + +// SetTrustedSigners sets the TrustedSigners field's value. +func (s *StreamingDistributionConfig) SetTrustedSigners(v *TrustedSigners) *StreamingDistributionConfig { + s.TrustedSigners = v + return s +} + // A streaming distribution Configuration and a list of tags to be associated // with the streaming distribution. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/StreamingDistributionConfigWithTags type StreamingDistributionConfigWithTags struct { _ struct{} `type:"structure"` @@ -6838,7 +8564,20 @@ func (s *StreamingDistributionConfigWithTags) Validate() error { return nil } +// SetStreamingDistributionConfig sets the StreamingDistributionConfig field's value. +func (s *StreamingDistributionConfigWithTags) SetStreamingDistributionConfig(v *StreamingDistributionConfig) *StreamingDistributionConfigWithTags { + s.StreamingDistributionConfig = v + return s +} + +// SetTags sets the Tags field's value. +func (s *StreamingDistributionConfigWithTags) SetTags(v *Tags) *StreamingDistributionConfigWithTags { + s.Tags = v + return s +} + // A streaming distribution list. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/StreamingDistributionList type StreamingDistributionList struct { _ struct{} `type:"structure"` @@ -6886,7 +8625,44 @@ func (s StreamingDistributionList) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *StreamingDistributionList) SetIsTruncated(v bool) *StreamingDistributionList { + s.IsTruncated = &v + return s +} + +// SetItems sets the Items field's value. +func (s *StreamingDistributionList) SetItems(v []*StreamingDistributionSummary) *StreamingDistributionList { + s.Items = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *StreamingDistributionList) SetMarker(v string) *StreamingDistributionList { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *StreamingDistributionList) SetMaxItems(v int64) *StreamingDistributionList { + s.MaxItems = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *StreamingDistributionList) SetNextMarker(v string) *StreamingDistributionList { + s.NextMarker = &v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *StreamingDistributionList) SetQuantity(v int64) *StreamingDistributionList { + s.Quantity = &v + return s +} + // A summary of the information for an Amazon CloudFront streaming distribution. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/StreamingDistributionSummary type StreamingDistributionSummary struct { _ struct{} `type:"structure"` @@ -6969,8 +8745,75 @@ func (s StreamingDistributionSummary) GoString() string { return s.String() } +// SetARN sets the ARN field's value. +func (s *StreamingDistributionSummary) SetARN(v string) *StreamingDistributionSummary { + s.ARN = &v + return s +} + +// SetAliases sets the Aliases field's value. +func (s *StreamingDistributionSummary) SetAliases(v *Aliases) *StreamingDistributionSummary { + s.Aliases = v + return s +} + +// SetComment sets the Comment field's value. +func (s *StreamingDistributionSummary) SetComment(v string) *StreamingDistributionSummary { + s.Comment = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *StreamingDistributionSummary) SetDomainName(v string) *StreamingDistributionSummary { + s.DomainName = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *StreamingDistributionSummary) SetEnabled(v bool) *StreamingDistributionSummary { + s.Enabled = &v + return s +} + +// SetId sets the Id field's value. +func (s *StreamingDistributionSummary) SetId(v string) *StreamingDistributionSummary { + s.Id = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *StreamingDistributionSummary) SetLastModifiedTime(v time.Time) *StreamingDistributionSummary { + s.LastModifiedTime = &v + return s +} + +// SetPriceClass sets the PriceClass field's value. +func (s *StreamingDistributionSummary) SetPriceClass(v string) *StreamingDistributionSummary { + s.PriceClass = &v + return s +} + +// SetS3Origin sets the S3Origin field's value. +func (s *StreamingDistributionSummary) SetS3Origin(v *S3Origin) *StreamingDistributionSummary { + s.S3Origin = v + return s +} + +// SetStatus sets the Status field's value. +func (s *StreamingDistributionSummary) SetStatus(v string) *StreamingDistributionSummary { + s.Status = &v + return s +} + +// SetTrustedSigners sets the TrustedSigners field's value. +func (s *StreamingDistributionSummary) SetTrustedSigners(v *TrustedSigners) *StreamingDistributionSummary { + s.TrustedSigners = v + return s +} + // A complex type that controls whether access logs are written for this streaming // distribution. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/StreamingLoggingConfig type StreamingLoggingConfig struct { _ struct{} `type:"structure"` @@ -7027,7 +8870,26 @@ func (s *StreamingLoggingConfig) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *StreamingLoggingConfig) SetBucket(v string) *StreamingLoggingConfig { + s.Bucket = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *StreamingLoggingConfig) SetEnabled(v bool) *StreamingLoggingConfig { + s.Enabled = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *StreamingLoggingConfig) SetPrefix(v string) *StreamingLoggingConfig { + s.Prefix = &v + return s +} + // A complex type that contains Tag key and Tag value. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/Tag type Tag struct { _ struct{} `type:"structure"` @@ -7072,7 +8934,20 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // A complex type that contains zero or more Tag elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/TagKeys type TagKeys struct { _ struct{} `type:"structure"` @@ -7090,7 +8965,14 @@ func (s TagKeys) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *TagKeys) SetItems(v []*string) *TagKeys { + s.Items = v + return s +} + // The request to add tags to a CloudFront resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/TagResourceRequest type TagResourceInput struct { _ struct{} `type:"structure" payload:"Tags"` @@ -7136,6 +9018,19 @@ func (s *TagResourceInput) Validate() error { return nil } +// SetResource sets the Resource field's value. +func (s *TagResourceInput) SetResource(v string) *TagResourceInput { + s.Resource = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v *Tags) *TagResourceInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/TagResourceOutput type TagResourceOutput struct { _ struct{} `type:"structure"` } @@ -7151,6 +9046,7 @@ func (s TagResourceOutput) GoString() string { } // A complex type that contains zero or more Tag elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/Tags type Tags struct { _ struct{} `type:"structure"` @@ -7188,6 +9084,12 @@ func (s *Tags) Validate() error { return nil } +// SetItems sets the Items field's value. +func (s *Tags) SetItems(v []*Tag) *Tags { + s.Items = v + return s +} + // A complex type that specifies the AWS accounts, if any, that you want to // allow to create signed URLs for private content. // @@ -7204,8 +9106,9 @@ func (s *Tags) Validate() error { // true (if it's currently false), change Quantity as applicable, and specify // all of the trusted signers that you want to include in the updated distribution. // -// For more information about updating the distribution configuration, see -// DistributionConfig . +// For more information about updating the distribution configuration, see DistributionConfig +// . +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/TrustedSigners type TrustedSigners struct { _ struct{} `type:"structure"` @@ -7251,7 +9154,26 @@ func (s *TrustedSigners) Validate() error { return nil } +// SetEnabled sets the Enabled field's value. +func (s *TrustedSigners) SetEnabled(v bool) *TrustedSigners { + s.Enabled = &v + return s +} + +// SetItems sets the Items field's value. +func (s *TrustedSigners) SetItems(v []*string) *TrustedSigners { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *TrustedSigners) SetQuantity(v int64) *TrustedSigners { + s.Quantity = &v + return s +} + // The request to remove tags from a CloudFront resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/UntagResourceRequest type UntagResourceInput struct { _ struct{} `type:"structure" payload:"TagKeys"` @@ -7292,6 +9214,19 @@ func (s *UntagResourceInput) Validate() error { return nil } +// SetResource sets the Resource field's value. +func (s *UntagResourceInput) SetResource(v string) *UntagResourceInput { + s.Resource = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v *TagKeys) *UntagResourceInput { + s.TagKeys = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/UntagResourceOutput type UntagResourceOutput struct { _ struct{} `type:"structure"` } @@ -7307,6 +9242,7 @@ func (s UntagResourceOutput) GoString() string { } // The request to update an origin access identity. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/UpdateCloudFrontOriginAccessIdentityRequest type UpdateCloudFrontOriginAccessIdentityInput struct { _ struct{} `type:"structure" payload:"CloudFrontOriginAccessIdentityConfig"` @@ -7356,7 +9292,26 @@ func (s *UpdateCloudFrontOriginAccessIdentityInput) Validate() error { return nil } +// SetCloudFrontOriginAccessIdentityConfig sets the CloudFrontOriginAccessIdentityConfig field's value. +func (s *UpdateCloudFrontOriginAccessIdentityInput) SetCloudFrontOriginAccessIdentityConfig(v *OriginAccessIdentityConfig) *UpdateCloudFrontOriginAccessIdentityInput { + s.CloudFrontOriginAccessIdentityConfig = v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateCloudFrontOriginAccessIdentityInput) SetId(v string) *UpdateCloudFrontOriginAccessIdentityInput { + s.Id = &v + return s +} + +// SetIfMatch sets the IfMatch field's value. +func (s *UpdateCloudFrontOriginAccessIdentityInput) SetIfMatch(v string) *UpdateCloudFrontOriginAccessIdentityInput { + s.IfMatch = &v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/UpdateCloudFrontOriginAccessIdentityResult type UpdateCloudFrontOriginAccessIdentityOutput struct { _ struct{} `type:"structure" payload:"CloudFrontOriginAccessIdentity"` @@ -7377,7 +9332,20 @@ func (s UpdateCloudFrontOriginAccessIdentityOutput) GoString() string { return s.String() } +// SetCloudFrontOriginAccessIdentity sets the CloudFrontOriginAccessIdentity field's value. +func (s *UpdateCloudFrontOriginAccessIdentityOutput) SetCloudFrontOriginAccessIdentity(v *OriginAccessIdentity) *UpdateCloudFrontOriginAccessIdentityOutput { + s.CloudFrontOriginAccessIdentity = v + return s +} + +// SetETag sets the ETag field's value. +func (s *UpdateCloudFrontOriginAccessIdentityOutput) SetETag(v string) *UpdateCloudFrontOriginAccessIdentityOutput { + s.ETag = &v + return s +} + // The request to update a distribution. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/UpdateDistributionRequest type UpdateDistributionInput struct { _ struct{} `type:"structure" payload:"DistributionConfig"` @@ -7427,7 +9395,26 @@ func (s *UpdateDistributionInput) Validate() error { return nil } +// SetDistributionConfig sets the DistributionConfig field's value. +func (s *UpdateDistributionInput) SetDistributionConfig(v *DistributionConfig) *UpdateDistributionInput { + s.DistributionConfig = v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateDistributionInput) SetId(v string) *UpdateDistributionInput { + s.Id = &v + return s +} + +// SetIfMatch sets the IfMatch field's value. +func (s *UpdateDistributionInput) SetIfMatch(v string) *UpdateDistributionInput { + s.IfMatch = &v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/UpdateDistributionResult type UpdateDistributionOutput struct { _ struct{} `type:"structure" payload:"Distribution"` @@ -7448,7 +9435,20 @@ func (s UpdateDistributionOutput) GoString() string { return s.String() } +// SetDistribution sets the Distribution field's value. +func (s *UpdateDistributionOutput) SetDistribution(v *Distribution) *UpdateDistributionOutput { + s.Distribution = v + return s +} + +// SetETag sets the ETag field's value. +func (s *UpdateDistributionOutput) SetETag(v string) *UpdateDistributionOutput { + s.ETag = &v + return s +} + // The request to update a streaming distribution. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/UpdateStreamingDistributionRequest type UpdateStreamingDistributionInput struct { _ struct{} `type:"structure" payload:"StreamingDistributionConfig"` @@ -7498,7 +9498,26 @@ func (s *UpdateStreamingDistributionInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *UpdateStreamingDistributionInput) SetId(v string) *UpdateStreamingDistributionInput { + s.Id = &v + return s +} + +// SetIfMatch sets the IfMatch field's value. +func (s *UpdateStreamingDistributionInput) SetIfMatch(v string) *UpdateStreamingDistributionInput { + s.IfMatch = &v + return s +} + +// SetStreamingDistributionConfig sets the StreamingDistributionConfig field's value. +func (s *UpdateStreamingDistributionInput) SetStreamingDistributionConfig(v *StreamingDistributionConfig) *UpdateStreamingDistributionInput { + s.StreamingDistributionConfig = v + return s +} + // The returned result of the corresponding request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/UpdateStreamingDistributionResult type UpdateStreamingDistributionOutput struct { _ struct{} `type:"structure" payload:"StreamingDistribution"` @@ -7519,123 +9538,125 @@ func (s UpdateStreamingDistributionOutput) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *UpdateStreamingDistributionOutput) SetETag(v string) *UpdateStreamingDistributionOutput { + s.ETag = &v + return s +} + +// SetStreamingDistribution sets the StreamingDistribution field's value. +func (s *UpdateStreamingDistributionOutput) SetStreamingDistribution(v *StreamingDistribution) *UpdateStreamingDistributionOutput { + s.StreamingDistribution = v + return s +} + // A complex type that specifies the following: // -// Which SSL/TLS certificate to use when viewers request objects using HTTPS +// * Which SSL/TLS certificate to use when viewers request objects using +// HTTPS // -// Whether you want CloudFront to use dedicated IP addresses or SNI when -// you're using alternate domain names in your object names +// * Whether you want CloudFront to use dedicated IP addresses or SNI when +// you're using alternate domain names in your object names // -// The minimum protocol version that you want CloudFront to use when communicating -// with viewers +// * The minimum protocol version that you want CloudFront to use when communicating +// with viewers // -// For more information, see Using an HTTPS Connection to Access Your Objects +// For more information, see Using an HTTPS Connection to Access Your Objects // (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecureConnections.html) // in the Amazon Amazon CloudFront Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25/ViewerCertificate type ViewerCertificate struct { _ struct{} `type:"structure"` - // If you want viewers to use HTTPS to request your objects and you're using - // an alternate domain name in your object URLs (for example, https://example.com/logo.jpg), - // specify the ACM certificate ARN of the custom viewer certificate for this - // distribution. Specify either this value, IAMCertificateId, or CloudFrontDefaultCertificate. ACMCertificateArn *string `type:"string"` // Include one of these values to specify the following: // - // Whether you want viewers to use HTTP or HTTPS to request your objects. + // * Whether you want viewers to use HTTP or HTTPS to request your objects. // - // If you want viewers to use HTTPS, whether you're using an alternate domain - // name such as example.com or the CloudFront domain name for your distribution, - // such as d111111abcdef8.cloudfront.net. + // * If you want viewers to use HTTPS, whether you're using an alternate + // domain name such as example.com or the CloudFront domain name for your + // distribution, such as d111111abcdef8.cloudfront.net. // - // If you're using an alternate domain name, whether AWS Certificate Manager - // (ACM) provided the certificate, or you purchased a certificate from a third-party - // certificate authority and imported it into ACM or uploaded it to the IAM - // certificate store. + // * If you're using an alternate domain name, whether AWS Certificate Manager + // (ACM) provided the certificate, or you purchased a certificate from a + // third-party certificate authority and imported it into ACM or uploaded + // it to the IAM certificate store. // - // You must specify one (and only one) of the three values. Do not specify - // false for CloudFrontDefaultCertificate. + // You must specify one (and only one) of the three values. Do not specify false + // for CloudFrontDefaultCertificate. // - // If you want viewers to use HTTP to request your objects: Specify the following + // If you want viewers to use HTTP to request your objects: Specify the following // value: // - // true + // true // - // In addition, specify allow-all for ViewerProtocolPolicy for all of your - // cache behaviors. + // In addition, specify allow-all for ViewerProtocolPolicy for all of your cache + // behaviors. // - // If you want viewers to use HTTPS to request your objects: Choose the type + // If you want viewers to use HTTPS to request your objects: Choose the type // of certificate that you want to use based on whether you're using an alternate // domain name for your objects or the CloudFront domain name: // - // If you're using an alternate domain name, such as example.com: Specify - // one of the following values, depending on whether ACM provided your certificate - // or you purchased your certificate from third-party certificate authority: + // * If you're using an alternate domain name, such as example.com: Specify + // one of the following values, depending on whether ACM provided your certificate + // or you purchased your certificate from third-party certificate authority: // - // ARN for ACM SSL/TLS certificate - // where ARN for ACM SSL/TLS certificate is the ARN for the ACM SSL/TLS certificate - // that you want to use for this distribution. + // ARN for ACM SSL/TLS certificate where + // ARN for ACM SSL/TLS certificate is the ARN for the ACM SSL/TLS certificate + // that you want to use for this distribution. // - // IAM certificate ID where IAM certificate - // ID is the ID that IAM returned when you added the certificate to the IAM - // certificate store. + // IAM certificate ID where IAM certificate + // ID is the ID that IAM returned when you added the certificate to the IAM + // certificate store. // - // If you specify ACMCertificateArn or IAMCertificateId, you must also specify - // a value for SSLSupportMethod. + // If you specify ACMCertificateArn or IAMCertificateId, you must also specify + // a value for SSLSupportMethod. // // If you choose to use an ACM certificate or a certificate in the IAM certificate - // store, we recommend that you use only an alternate domain name in your object - // URLs (https://example.com/logo.jpg). If you use the domain name that is associated - // with your CloudFront distribution (https://d111111abcdef8.cloudfront.net/logo.jpg) - // and the viewer supports SNI, then CloudFront behaves normally. However, if - // the browser does not support SNI, the user's experience depends on the value - // that you choose for SSLSupportMethod: + // store, we recommend that you use only an alternate domain name in your + // object URLs (https://example.com/logo.jpg). If you use the domain name + // that is associated with your CloudFront distribution (https://d111111abcdef8.cloudfront.net/logo.jpg) + // and the viewer supports SNI, then CloudFront behaves normally. However, + // if the browser does not support SNI, the user's experience depends on + // the value that you choose for SSLSupportMethod: // - // vip: The viewer displays a warning because there is a mismatch between - // the CloudFront domain name and the domain name in your SSL/TLS certificate. + // vip: The viewer displays a warning because there is a mismatch between the + // CloudFront domain name and the domain name in your SSL/TLS certificate. // - // sni-only: CloudFront drops the connection with the browser without returning - // the object. + // sni-only: CloudFront drops the connection with the browser without returning + // the object. // - // If you're using the CloudFront domain name for your distribution, such - // as d111111abcdef8.cloudfront.net : Specify the following value: + // * If you're using the CloudFront domain name for your distribution, such + // as d111111abcdef8.cloudfront.net: Specify the following value: // - // true + // true // // If you want viewers to use HTTPS, you must also specify one of the following - // values in your cache behaviors: + // values in your cache behaviors: // - // https-only + // https-only // - // redirect-to-https + // redirect-to-https // - // You can also optionally require that CloudFront use HTTPS to communicate - // with your origin by specifying one of the following values for the applicable - // origins: + // You can also optionally require that CloudFront use HTTPS to communicate + // with your origin by specifying one of the following values for the applicable + // origins: // - // https-only + // https-only // - // match-viewer + // match-viewer // - // For more information, see Using Alternate Domain Names and HTTPS (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecureConnections.html#CNAMEsAndHTTPS) - // in the Amazon CloudFront Developer Guide. + // For more information, see Using Alternate Domain Names and HTTPS (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecureConnections.html#CNAMEsAndHTTPS) + // in the Amazon CloudFront Developer Guide. Certificate *string `deprecated:"true" type:"string"` // This field is deprecated. You can use one of the following: [ACMCertificateArn, // IAMCertificateId, or CloudFrontDefaultCertificate]. CertificateSource *string `deprecated:"true" type:"string" enum:"CertificateSource"` - // If you want viewers to use HTTPS to request your objects and you're using - // the CloudFront domain name of your distribution in your object URLs (for - // example, https://d111111abcdef8.cloudfront.net/logo.jpg), set to true. Omit - // this value if you are setting an ACMCertificateArn or IAMCertificateId. CloudFrontDefaultCertificate *bool `type:"boolean"` - // If you want viewers to use HTTPS to request your objects and you're using - // an alternate domain name in your object URLs (for example, https://example.com/logo.jpg), - // specify the IAM certificate identifier of the custom viewer certificate for - // this distribution. Specify either this value, ACMCertificateArn, or CloudFrontDefaultCertificate. IAMCertificateId *string `type:"string"` // Specify the minimum version of the SSL/TLS protocol that you want CloudFront @@ -7645,39 +9666,39 @@ type ViewerCertificate struct { // we recommend that you specify SSLv3 only if your users are using browsers // or devices that don't support TLSv1. Note the following: // - // If you specify true, - // the minimum SSL protocol version is TLSv1 and can't be changed. + // * If you specify true, + // the minimum SSL protocol version is TLSv1 and can't be changed. // - // If you're using a custom certificate (if you specify a value for ACMCertificateArn - // or for IAMCertificateId) and if you're using SNI (if you specify sni-only - // for SSLSupportMethod), you must specify TLSv1 for MinimumProtocolVersion. + // * If you're using a custom certificate (if you specify a value for ACMCertificateArn + // or for IAMCertificateId) and if you're using SNI (if you specify sni-only + // for SSLSupportMethod), you must specify TLSv1 for MinimumProtocolVersion. MinimumProtocolVersion *string `type:"string" enum:"MinimumProtocolVersion"` // If you specify a value for ACMCertificateArn or for IAMCertificateId, you // must also specify how you want CloudFront to serve HTTPS requests: using // a method that works for all clients or one that works for most clients: // - // vip: CloudFront uses dedicated IP addresses for your content and can - // respond to HTTPS requests from any viewer. However, you must request permission - // to use this feature, and you incur additional monthly charges. + // * vip: CloudFront uses dedicated IP addresses for your content and can + // respond to HTTPS requests from any viewer. However, you must request permission + // to use this feature, and you incur additional monthly charges. // - // sni-only: CloudFront can respond to HTTPS requests from viewers that - // support Server Name Indication (SNI). All modern browsers support SNI, but - // some browsers still in use don't support SNI. If some of your users' browsers - // don't support SNI, we recommend that you do one of the following: + // * sni-only: CloudFront can respond to HTTPS requests from viewers that + // support Server Name Indication (SNI). All modern browsers support SNI, + // but some browsers still in use don't support SNI. If some of your users' + // browsers don't support SNI, we recommend that you do one of the following: // - // Use the vip option (dedicated IP addresses) instead of sni-only. + // Use the vip option (dedicated IP addresses) instead of sni-only. // - // Use the CloudFront SSL/TLS certificate instead of a custom certificate. - // This requires that you use the CloudFront domain name of your distribution - // in the URLs for your objects, for example, https://d111111abcdef8.cloudfront.net/logo.png. + // Use the CloudFront SSL/TLS certificate instead of a custom certificate. This + // requires that you use the CloudFront domain name of your distribution + // in the URLs for your objects, for example, https://d111111abcdef8.cloudfront.net/logo.png. // - // If you can control which browser your users use, upgrade the browser to - // one that supports SNI. + // If you can control which browser your users use, upgrade the browser to one + // that supports SNI. // - // Use HTTP instead of HTTPS. + // Use HTTP instead of HTTPS. // - // Do not specify a value for SSLSupportMethod if you specified true. + // Do not specify a value for SSLSupportMethod if you specified true. // // For more information, see Using Alternate Domain Names and HTTPS (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecureConnections.html#CNAMEsAndHTTPS.html) // in the Amazon CloudFront Developer Guide. @@ -7694,6 +9715,48 @@ func (s ViewerCertificate) GoString() string { return s.String() } +// SetACMCertificateArn sets the ACMCertificateArn field's value. +func (s *ViewerCertificate) SetACMCertificateArn(v string) *ViewerCertificate { + s.ACMCertificateArn = &v + return s +} + +// SetCertificate sets the Certificate field's value. +func (s *ViewerCertificate) SetCertificate(v string) *ViewerCertificate { + s.Certificate = &v + return s +} + +// SetCertificateSource sets the CertificateSource field's value. +func (s *ViewerCertificate) SetCertificateSource(v string) *ViewerCertificate { + s.CertificateSource = &v + return s +} + +// SetCloudFrontDefaultCertificate sets the CloudFrontDefaultCertificate field's value. +func (s *ViewerCertificate) SetCloudFrontDefaultCertificate(v bool) *ViewerCertificate { + s.CloudFrontDefaultCertificate = &v + return s +} + +// SetIAMCertificateId sets the IAMCertificateId field's value. +func (s *ViewerCertificate) SetIAMCertificateId(v string) *ViewerCertificate { + s.IAMCertificateId = &v + return s +} + +// SetMinimumProtocolVersion sets the MinimumProtocolVersion field's value. +func (s *ViewerCertificate) SetMinimumProtocolVersion(v string) *ViewerCertificate { + s.MinimumProtocolVersion = &v + return s +} + +// SetSSLSupportMethod sets the SSLSupportMethod field's value. +func (s *ViewerCertificate) SetSSLSupportMethod(v string) *ViewerCertificate { + s.SSLSupportMethod = &v + return s +} + const ( // CertificateSourceCloudfront is a CertificateSource enum value CertificateSourceCloudfront = "cloudfront" @@ -7705,6 +9768,20 @@ const ( CertificateSourceAcm = "acm" ) +const ( + // EventTypeViewerRequest is a EventType enum value + EventTypeViewerRequest = "viewer-request" + + // EventTypeViewerResponse is a EventType enum value + EventTypeViewerResponse = "viewer-response" + + // EventTypeOriginRequest is a EventType enum value + EventTypeOriginRequest = "origin-request" + + // EventTypeOriginResponse is a EventType enum value + EventTypeOriginResponse = "origin-response" +) + const ( // GeoRestrictionTypeBlacklist is a GeoRestrictionType enum value GeoRestrictionTypeBlacklist = "blacklist" diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface/interface.go index 3f2c2ec93..497535704 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCloudFrontClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/errors.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/errors.go new file mode 100644 index 000000000..072359c4c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/errors.go @@ -0,0 +1,325 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cloudfront + +const ( + + // ErrCodeAccessDenied for service response error code + // "AccessDenied". + // + // Access denied. + ErrCodeAccessDenied = "AccessDenied" + + // ErrCodeBatchTooLarge for service response error code + // "BatchTooLarge". + ErrCodeBatchTooLarge = "BatchTooLarge" + + // ErrCodeCNAMEAlreadyExists for service response error code + // "CNAMEAlreadyExists". + ErrCodeCNAMEAlreadyExists = "CNAMEAlreadyExists" + + // ErrCodeDistributionAlreadyExists for service response error code + // "DistributionAlreadyExists". + // + // The caller reference you attempted to create the distribution with is associated + // with another distribution. + ErrCodeDistributionAlreadyExists = "DistributionAlreadyExists" + + // ErrCodeDistributionNotDisabled for service response error code + // "DistributionNotDisabled". + ErrCodeDistributionNotDisabled = "DistributionNotDisabled" + + // ErrCodeIllegalUpdate for service response error code + // "IllegalUpdate". + // + // Origin and CallerReference cannot be updated. + ErrCodeIllegalUpdate = "IllegalUpdate" + + // ErrCodeInconsistentQuantities for service response error code + // "InconsistentQuantities". + // + // The value of Quantity and the size of Items do not match. + ErrCodeInconsistentQuantities = "InconsistentQuantities" + + // ErrCodeInvalidArgument for service response error code + // "InvalidArgument". + // + // The argument is invalid. + ErrCodeInvalidArgument = "InvalidArgument" + + // ErrCodeInvalidDefaultRootObject for service response error code + // "InvalidDefaultRootObject". + // + // The default root object file name is too big or contains an invalid character. + ErrCodeInvalidDefaultRootObject = "InvalidDefaultRootObject" + + // ErrCodeInvalidErrorCode for service response error code + // "InvalidErrorCode". + ErrCodeInvalidErrorCode = "InvalidErrorCode" + + // ErrCodeInvalidForwardCookies for service response error code + // "InvalidForwardCookies". + // + // Your request contains forward cookies option which doesn't match with the + // expectation for the whitelisted list of cookie names. Either list of cookie + // names has been specified when not allowed or list of cookie names is missing + // when expected. + ErrCodeInvalidForwardCookies = "InvalidForwardCookies" + + // ErrCodeInvalidGeoRestrictionParameter for service response error code + // "InvalidGeoRestrictionParameter". + ErrCodeInvalidGeoRestrictionParameter = "InvalidGeoRestrictionParameter" + + // ErrCodeInvalidHeadersForS3Origin for service response error code + // "InvalidHeadersForS3Origin". + ErrCodeInvalidHeadersForS3Origin = "InvalidHeadersForS3Origin" + + // ErrCodeInvalidIfMatchVersion for service response error code + // "InvalidIfMatchVersion". + // + // The If-Match version is missing or not valid for the distribution. + ErrCodeInvalidIfMatchVersion = "InvalidIfMatchVersion" + + // ErrCodeInvalidLambdaFunctionAssociation for service response error code + // "InvalidLambdaFunctionAssociation". + // + // The specified Lambda function association is invalid. + ErrCodeInvalidLambdaFunctionAssociation = "InvalidLambdaFunctionAssociation" + + // ErrCodeInvalidLocationCode for service response error code + // "InvalidLocationCode". + ErrCodeInvalidLocationCode = "InvalidLocationCode" + + // ErrCodeInvalidMinimumProtocolVersion for service response error code + // "InvalidMinimumProtocolVersion". + ErrCodeInvalidMinimumProtocolVersion = "InvalidMinimumProtocolVersion" + + // ErrCodeInvalidOrigin for service response error code + // "InvalidOrigin". + // + // The Amazon S3 origin server specified does not refer to a valid Amazon S3 + // bucket. + ErrCodeInvalidOrigin = "InvalidOrigin" + + // ErrCodeInvalidOriginAccessIdentity for service response error code + // "InvalidOriginAccessIdentity". + // + // The origin access identity is not valid or doesn't exist. + ErrCodeInvalidOriginAccessIdentity = "InvalidOriginAccessIdentity" + + // ErrCodeInvalidProtocolSettings for service response error code + // "InvalidProtocolSettings". + // + // You cannot specify SSLv3 as the minimum protocol version if you only want + // to support only clients that support Server Name Indication (SNI). + ErrCodeInvalidProtocolSettings = "InvalidProtocolSettings" + + // ErrCodeInvalidQueryStringParameters for service response error code + // "InvalidQueryStringParameters". + ErrCodeInvalidQueryStringParameters = "InvalidQueryStringParameters" + + // ErrCodeInvalidRelativePath for service response error code + // "InvalidRelativePath". + // + // The relative path is too big, is not URL-encoded, or does not begin with + // a slash (/). + ErrCodeInvalidRelativePath = "InvalidRelativePath" + + // ErrCodeInvalidRequiredProtocol for service response error code + // "InvalidRequiredProtocol". + // + // This operation requires the HTTPS protocol. Ensure that you specify the HTTPS + // protocol in your request, or omit the RequiredProtocols element from your + // distribution configuration. + ErrCodeInvalidRequiredProtocol = "InvalidRequiredProtocol" + + // ErrCodeInvalidResponseCode for service response error code + // "InvalidResponseCode". + ErrCodeInvalidResponseCode = "InvalidResponseCode" + + // ErrCodeInvalidTTLOrder for service response error code + // "InvalidTTLOrder". + ErrCodeInvalidTTLOrder = "InvalidTTLOrder" + + // ErrCodeInvalidTagging for service response error code + // "InvalidTagging". + ErrCodeInvalidTagging = "InvalidTagging" + + // ErrCodeInvalidViewerCertificate for service response error code + // "InvalidViewerCertificate". + ErrCodeInvalidViewerCertificate = "InvalidViewerCertificate" + + // ErrCodeInvalidWebACLId for service response error code + // "InvalidWebACLId". + ErrCodeInvalidWebACLId = "InvalidWebACLId" + + // ErrCodeMissingBody for service response error code + // "MissingBody". + // + // This operation requires a body. Ensure that the body is present and the Content-Type + // header is set. + ErrCodeMissingBody = "MissingBody" + + // ErrCodeNoSuchCloudFrontOriginAccessIdentity for service response error code + // "NoSuchCloudFrontOriginAccessIdentity". + // + // The specified origin access identity does not exist. + ErrCodeNoSuchCloudFrontOriginAccessIdentity = "NoSuchCloudFrontOriginAccessIdentity" + + // ErrCodeNoSuchDistribution for service response error code + // "NoSuchDistribution". + // + // The specified distribution does not exist. + ErrCodeNoSuchDistribution = "NoSuchDistribution" + + // ErrCodeNoSuchInvalidation for service response error code + // "NoSuchInvalidation". + // + // The specified invalidation does not exist. + ErrCodeNoSuchInvalidation = "NoSuchInvalidation" + + // ErrCodeNoSuchOrigin for service response error code + // "NoSuchOrigin". + // + // No origin exists with the specified Origin Id. + ErrCodeNoSuchOrigin = "NoSuchOrigin" + + // ErrCodeNoSuchResource for service response error code + // "NoSuchResource". + ErrCodeNoSuchResource = "NoSuchResource" + + // ErrCodeNoSuchStreamingDistribution for service response error code + // "NoSuchStreamingDistribution". + // + // The specified streaming distribution does not exist. + ErrCodeNoSuchStreamingDistribution = "NoSuchStreamingDistribution" + + // ErrCodeOriginAccessIdentityAlreadyExists for service response error code + // "OriginAccessIdentityAlreadyExists". + // + // If the CallerReference is a value you already sent in a previous request + // to create an identity but the content of the CloudFrontOriginAccessIdentityConfig + // is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists + // error. + ErrCodeOriginAccessIdentityAlreadyExists = "OriginAccessIdentityAlreadyExists" + + // ErrCodeOriginAccessIdentityInUse for service response error code + // "OriginAccessIdentityInUse". + ErrCodeOriginAccessIdentityInUse = "OriginAccessIdentityInUse" + + // ErrCodePreconditionFailed for service response error code + // "PreconditionFailed". + // + // The precondition given in one or more of the request-header fields evaluated + // to false. + ErrCodePreconditionFailed = "PreconditionFailed" + + // ErrCodeStreamingDistributionAlreadyExists for service response error code + // "StreamingDistributionAlreadyExists". + ErrCodeStreamingDistributionAlreadyExists = "StreamingDistributionAlreadyExists" + + // ErrCodeStreamingDistributionNotDisabled for service response error code + // "StreamingDistributionNotDisabled". + ErrCodeStreamingDistributionNotDisabled = "StreamingDistributionNotDisabled" + + // ErrCodeTooManyCacheBehaviors for service response error code + // "TooManyCacheBehaviors". + // + // You cannot create more cache behaviors for the distribution. + ErrCodeTooManyCacheBehaviors = "TooManyCacheBehaviors" + + // ErrCodeTooManyCertificates for service response error code + // "TooManyCertificates". + // + // You cannot create anymore custom SSL/TLS certificates. + ErrCodeTooManyCertificates = "TooManyCertificates" + + // ErrCodeTooManyCloudFrontOriginAccessIdentities for service response error code + // "TooManyCloudFrontOriginAccessIdentities". + // + // Processing your request would cause you to exceed the maximum number of origin + // access identities allowed. + ErrCodeTooManyCloudFrontOriginAccessIdentities = "TooManyCloudFrontOriginAccessIdentities" + + // ErrCodeTooManyCookieNamesInWhiteList for service response error code + // "TooManyCookieNamesInWhiteList". + // + // Your request contains more cookie names in the whitelist than are allowed + // per cache behavior. + ErrCodeTooManyCookieNamesInWhiteList = "TooManyCookieNamesInWhiteList" + + // ErrCodeTooManyDistributionCNAMEs for service response error code + // "TooManyDistributionCNAMEs". + // + // Your request contains more CNAMEs than are allowed per distribution. + ErrCodeTooManyDistributionCNAMEs = "TooManyDistributionCNAMEs" + + // ErrCodeTooManyDistributions for service response error code + // "TooManyDistributions". + // + // Processing your request would cause you to exceed the maximum number of distributions + // allowed. + ErrCodeTooManyDistributions = "TooManyDistributions" + + // ErrCodeTooManyDistributionsWithLambdaAssociations for service response error code + // "TooManyDistributionsWithLambdaAssociations". + // + // Processing your request would cause the maximum number of distributions with + // Lambda function associations per owner to be exceeded. + ErrCodeTooManyDistributionsWithLambdaAssociations = "TooManyDistributionsWithLambdaAssociations" + + // ErrCodeTooManyHeadersInForwardedValues for service response error code + // "TooManyHeadersInForwardedValues". + ErrCodeTooManyHeadersInForwardedValues = "TooManyHeadersInForwardedValues" + + // ErrCodeTooManyInvalidationsInProgress for service response error code + // "TooManyInvalidationsInProgress". + // + // You have exceeded the maximum number of allowable InProgress invalidation + // batch requests, or invalidation objects. + ErrCodeTooManyInvalidationsInProgress = "TooManyInvalidationsInProgress" + + // ErrCodeTooManyLambdaFunctionAssociations for service response error code + // "TooManyLambdaFunctionAssociations". + // + // Your request contains more Lambda function associations than are allowed + // per distribution. + ErrCodeTooManyLambdaFunctionAssociations = "TooManyLambdaFunctionAssociations" + + // ErrCodeTooManyOriginCustomHeaders for service response error code + // "TooManyOriginCustomHeaders". + ErrCodeTooManyOriginCustomHeaders = "TooManyOriginCustomHeaders" + + // ErrCodeTooManyOrigins for service response error code + // "TooManyOrigins". + // + // You cannot create more origins for the distribution. + ErrCodeTooManyOrigins = "TooManyOrigins" + + // ErrCodeTooManyQueryStringParameters for service response error code + // "TooManyQueryStringParameters". + ErrCodeTooManyQueryStringParameters = "TooManyQueryStringParameters" + + // ErrCodeTooManyStreamingDistributionCNAMEs for service response error code + // "TooManyStreamingDistributionCNAMEs". + ErrCodeTooManyStreamingDistributionCNAMEs = "TooManyStreamingDistributionCNAMEs" + + // ErrCodeTooManyStreamingDistributions for service response error code + // "TooManyStreamingDistributions". + // + // Processing your request would cause you to exceed the maximum number of streaming + // distributions allowed. + ErrCodeTooManyStreamingDistributions = "TooManyStreamingDistributions" + + // ErrCodeTooManyTrustedSigners for service response error code + // "TooManyTrustedSigners". + // + // Your request contains more trusted signers than are allowed per distribution. + ErrCodeTooManyTrustedSigners = "TooManyTrustedSigners" + + // ErrCodeTrustedSignerDoesNotExist for service response error code + // "TrustedSignerDoesNotExist". + // + // One or more of your trusted signers do not exist. + ErrCodeTrustedSignerDoesNotExist = "TrustedSignerDoesNotExist" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/examples_test.go index cd126796a..c8d43895c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudFront_CreateCloudFrontOriginAccessIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -44,11 +40,7 @@ func ExampleCloudFront_CreateCloudFrontOriginAccessIdentity() { } func ExampleCloudFront_CreateDistribution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -109,8 +101,18 @@ func ExampleCloudFront_CreateDistribution() { Quantity: aws.Int64(1), // Required }, }, - Compress: aws.Bool(true), - DefaultTTL: aws.Int64(1), + Compress: aws.Bool(true), + DefaultTTL: aws.Int64(1), + LambdaFunctionAssociations: &cloudfront.LambdaFunctionAssociations{ + Quantity: aws.Int64(1), // Required + Items: []*cloudfront.LambdaFunctionAssociation{ + { // Required + EventType: aws.String("EventType"), + LambdaFunctionARN: aws.String("string"), + }, + // More values... + }, + }, MaxTTL: aws.Int64(1), SmoothStreaming: aws.Bool(true), }, @@ -215,8 +217,18 @@ func ExampleCloudFront_CreateDistribution() { Quantity: aws.Int64(1), // Required }, }, - Compress: aws.Bool(true), - DefaultTTL: aws.Int64(1), + Compress: aws.Bool(true), + DefaultTTL: aws.Int64(1), + LambdaFunctionAssociations: &cloudfront.LambdaFunctionAssociations{ + Quantity: aws.Int64(1), // Required + Items: []*cloudfront.LambdaFunctionAssociation{ + { // Required + EventType: aws.String("EventType"), + LambdaFunctionARN: aws.String("string"), + }, + // More values... + }, + }, MaxTTL: aws.Int64(1), SmoothStreaming: aws.Bool(true), }, @@ -281,11 +293,7 @@ func ExampleCloudFront_CreateDistribution() { } func ExampleCloudFront_CreateDistributionWithTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -347,8 +355,18 @@ func ExampleCloudFront_CreateDistributionWithTags() { Quantity: aws.Int64(1), // Required }, }, - Compress: aws.Bool(true), - DefaultTTL: aws.Int64(1), + Compress: aws.Bool(true), + DefaultTTL: aws.Int64(1), + LambdaFunctionAssociations: &cloudfront.LambdaFunctionAssociations{ + Quantity: aws.Int64(1), // Required + Items: []*cloudfront.LambdaFunctionAssociation{ + { // Required + EventType: aws.String("EventType"), + LambdaFunctionARN: aws.String("string"), + }, + // More values... + }, + }, MaxTTL: aws.Int64(1), SmoothStreaming: aws.Bool(true), }, @@ -453,8 +471,18 @@ func ExampleCloudFront_CreateDistributionWithTags() { Quantity: aws.Int64(1), // Required }, }, - Compress: aws.Bool(true), - DefaultTTL: aws.Int64(1), + Compress: aws.Bool(true), + DefaultTTL: aws.Int64(1), + LambdaFunctionAssociations: &cloudfront.LambdaFunctionAssociations{ + Quantity: aws.Int64(1), // Required + Items: []*cloudfront.LambdaFunctionAssociation{ + { // Required + EventType: aws.String("EventType"), + LambdaFunctionARN: aws.String("string"), + }, + // More values... + }, + }, MaxTTL: aws.Int64(1), SmoothStreaming: aws.Bool(true), }, @@ -529,11 +557,7 @@ func ExampleCloudFront_CreateDistributionWithTags() { } func ExampleCloudFront_CreateInvalidation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -564,11 +588,7 @@ func ExampleCloudFront_CreateInvalidation() { } func ExampleCloudFront_CreateStreamingDistribution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -618,11 +638,7 @@ func ExampleCloudFront_CreateStreamingDistribution() { } func ExampleCloudFront_CreateStreamingDistributionWithTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -683,11 +699,7 @@ func ExampleCloudFront_CreateStreamingDistributionWithTags() { } func ExampleCloudFront_DeleteCloudFrontOriginAccessIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -709,11 +721,7 @@ func ExampleCloudFront_DeleteCloudFrontOriginAccessIdentity() { } func ExampleCloudFront_DeleteDistribution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -735,11 +743,7 @@ func ExampleCloudFront_DeleteDistribution() { } func ExampleCloudFront_DeleteStreamingDistribution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -761,11 +765,7 @@ func ExampleCloudFront_DeleteStreamingDistribution() { } func ExampleCloudFront_GetCloudFrontOriginAccessIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -786,11 +786,7 @@ func ExampleCloudFront_GetCloudFrontOriginAccessIdentity() { } func ExampleCloudFront_GetCloudFrontOriginAccessIdentityConfig() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -811,11 +807,7 @@ func ExampleCloudFront_GetCloudFrontOriginAccessIdentityConfig() { } func ExampleCloudFront_GetDistribution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -836,11 +828,7 @@ func ExampleCloudFront_GetDistribution() { } func ExampleCloudFront_GetDistributionConfig() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -861,11 +849,7 @@ func ExampleCloudFront_GetDistributionConfig() { } func ExampleCloudFront_GetInvalidation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -887,11 +871,7 @@ func ExampleCloudFront_GetInvalidation() { } func ExampleCloudFront_GetStreamingDistribution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -912,11 +892,7 @@ func ExampleCloudFront_GetStreamingDistribution() { } func ExampleCloudFront_GetStreamingDistributionConfig() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -937,11 +913,7 @@ func ExampleCloudFront_GetStreamingDistributionConfig() { } func ExampleCloudFront_ListCloudFrontOriginAccessIdentities() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -963,11 +935,7 @@ func ExampleCloudFront_ListCloudFrontOriginAccessIdentities() { } func ExampleCloudFront_ListDistributions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -989,11 +957,7 @@ func ExampleCloudFront_ListDistributions() { } func ExampleCloudFront_ListDistributionsByWebACLId() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -1016,11 +980,7 @@ func ExampleCloudFront_ListDistributionsByWebACLId() { } func ExampleCloudFront_ListInvalidations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -1043,11 +1003,7 @@ func ExampleCloudFront_ListInvalidations() { } func ExampleCloudFront_ListStreamingDistributions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -1069,11 +1025,7 @@ func ExampleCloudFront_ListStreamingDistributions() { } func ExampleCloudFront_ListTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -1094,11 +1046,7 @@ func ExampleCloudFront_ListTagsForResource() { } func ExampleCloudFront_TagResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -1128,11 +1076,7 @@ func ExampleCloudFront_TagResource() { } func ExampleCloudFront_UntagResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -1159,11 +1103,7 @@ func ExampleCloudFront_UntagResource() { } func ExampleCloudFront_UpdateCloudFrontOriginAccessIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -1189,11 +1129,7 @@ func ExampleCloudFront_UpdateCloudFrontOriginAccessIdentity() { } func ExampleCloudFront_UpdateDistribution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) @@ -1254,8 +1190,18 @@ func ExampleCloudFront_UpdateDistribution() { Quantity: aws.Int64(1), // Required }, }, - Compress: aws.Bool(true), - DefaultTTL: aws.Int64(1), + Compress: aws.Bool(true), + DefaultTTL: aws.Int64(1), + LambdaFunctionAssociations: &cloudfront.LambdaFunctionAssociations{ + Quantity: aws.Int64(1), // Required + Items: []*cloudfront.LambdaFunctionAssociation{ + { // Required + EventType: aws.String("EventType"), + LambdaFunctionARN: aws.String("string"), + }, + // More values... + }, + }, MaxTTL: aws.Int64(1), SmoothStreaming: aws.Bool(true), }, @@ -1360,8 +1306,18 @@ func ExampleCloudFront_UpdateDistribution() { Quantity: aws.Int64(1), // Required }, }, - Compress: aws.Bool(true), - DefaultTTL: aws.Int64(1), + Compress: aws.Bool(true), + DefaultTTL: aws.Int64(1), + LambdaFunctionAssociations: &cloudfront.LambdaFunctionAssociations{ + Quantity: aws.Int64(1), // Required + Items: []*cloudfront.LambdaFunctionAssociation{ + { // Required + EventType: aws.String("EventType"), + LambdaFunctionARN: aws.String("string"), + }, + // More values... + }, + }, MaxTTL: aws.Int64(1), SmoothStreaming: aws.Bool(true), }, @@ -1428,11 +1384,7 @@ func ExampleCloudFront_UpdateDistribution() { } func ExampleCloudFront_UpdateStreamingDistribution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudfront.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/service.go index b768e2f8e..b815814e7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/service.go @@ -15,8 +15,9 @@ import ( // who need detailed information about the CloudFront API actions, data types, // and errors. For detailed information about CloudFront features and their // associated API calls, see the Amazon CloudFront Developer Guide. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25 type CloudFront struct { *client.Client } @@ -27,8 +28,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "cloudfront" +// Service information constants +const ( + ServiceName = "cloudfront" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the CloudFront client with a session. // If additional configuration is needed for the client instance use the optional @@ -41,20 +45,21 @@ const ServiceName = "cloudfront" // // Create a CloudFront client with additional configuration // svc := cloudfront.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudFront { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CloudFront { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CloudFront { svc := &CloudFront{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, - APIVersion: "2016-09-29", + APIVersion: "2016-11-25", }, handlers, ), diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/api.go index cebf54cff..eeef8e97a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/api.go @@ -36,6 +36,7 @@ const opAddTagsToResource = "AddTagsToResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResource func (c *CloudHSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) { op := &request.Operation{ Name: opAddTagsToResource, @@ -47,9 +48,8 @@ func (c *CloudHSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req input = &AddTagsToResourceInput{} } - req = c.newRequest(op, input, output) output = &AddTagsToResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -57,8 +57,7 @@ func (c *CloudHSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req // // Adds or overwrites one or more tags for the specified AWS CloudHSM resource. // -// Each tag consists of a key and a value. Tag keys must be unique to each -// resource. +// Each tag consists of a key and a value. Tag keys must be unique to each resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -68,15 +67,16 @@ func (c *CloudHSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req // API operation AddTagsToResource for usage and error information. // // Returned Error Codes: -// * CloudHsmServiceException +// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" // Indicates that an exception occurred in the AWS CloudHSM service. // -// * CloudHsmInternalException +// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" // Indicates that an internal error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // Indicates that one or more of the request parameters are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResource func (c *CloudHSM) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -109,6 +109,7 @@ const opCreateHapg = "CreateHapg" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg func (c *CloudHSM) CreateHapgRequest(input *CreateHapgInput) (req *request.Request, output *CreateHapgOutput) { op := &request.Operation{ Name: opCreateHapg, @@ -120,9 +121,8 @@ func (c *CloudHSM) CreateHapgRequest(input *CreateHapgInput) (req *request.Reque input = &CreateHapgInput{} } - req = c.newRequest(op, input, output) output = &CreateHapgOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -139,15 +139,16 @@ func (c *CloudHSM) CreateHapgRequest(input *CreateHapgInput) (req *request.Reque // API operation CreateHapg for usage and error information. // // Returned Error Codes: -// * CloudHsmServiceException +// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" // Indicates that an exception occurred in the AWS CloudHSM service. // -// * CloudHsmInternalException +// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" // Indicates that an internal error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // Indicates that one or more of the request parameters are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg func (c *CloudHSM) CreateHapg(input *CreateHapgInput) (*CreateHapgOutput, error) { req, out := c.CreateHapgRequest(input) err := req.Send() @@ -180,6 +181,7 @@ const opCreateHsm = "CreateHsm" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsm func (c *CloudHSM) CreateHsmRequest(input *CreateHsmInput) (req *request.Request, output *CreateHsmOutput) { op := &request.Operation{ Name: opCreateHsm, @@ -191,9 +193,8 @@ func (c *CloudHSM) CreateHsmRequest(input *CreateHsmInput) (req *request.Request input = &CreateHsmInput{} } - req = c.newRequest(op, input, output) output = &CreateHsmOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -207,7 +208,7 @@ func (c *CloudHSM) CreateHsmRequest(input *CreateHsmInput) (req *request.Request // the AWS Support Center (https://console.aws.amazon.com/support/home#/), create // a new case, and select Account and Billing Support. // -// It can take up to 20 minutes to create and provision an HSM. You can monitor +// It can take up to 20 minutes to create and provision an HSM. You can monitor // the status of the HSM with the DescribeHsm operation. The HSM is ready to // be initialized when the status changes to RUNNING. // @@ -219,15 +220,16 @@ func (c *CloudHSM) CreateHsmRequest(input *CreateHsmInput) (req *request.Request // API operation CreateHsm for usage and error information. // // Returned Error Codes: -// * CloudHsmServiceException +// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" // Indicates that an exception occurred in the AWS CloudHSM service. // -// * CloudHsmInternalException +// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" // Indicates that an internal error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // Indicates that one or more of the request parameters are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsm func (c *CloudHSM) CreateHsm(input *CreateHsmInput) (*CreateHsmOutput, error) { req, out := c.CreateHsmRequest(input) err := req.Send() @@ -260,6 +262,7 @@ const opCreateLunaClient = "CreateLunaClient" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClient func (c *CloudHSM) CreateLunaClientRequest(input *CreateLunaClientInput) (req *request.Request, output *CreateLunaClientOutput) { op := &request.Operation{ Name: opCreateLunaClient, @@ -271,9 +274,8 @@ func (c *CloudHSM) CreateLunaClientRequest(input *CreateLunaClientInput) (req *r input = &CreateLunaClientInput{} } - req = c.newRequest(op, input, output) output = &CreateLunaClientOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -289,15 +291,16 @@ func (c *CloudHSM) CreateLunaClientRequest(input *CreateLunaClientInput) (req *r // API operation CreateLunaClient for usage and error information. // // Returned Error Codes: -// * CloudHsmServiceException +// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" // Indicates that an exception occurred in the AWS CloudHSM service. // -// * CloudHsmInternalException +// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" // Indicates that an internal error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // Indicates that one or more of the request parameters are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClient func (c *CloudHSM) CreateLunaClient(input *CreateLunaClientInput) (*CreateLunaClientOutput, error) { req, out := c.CreateLunaClientRequest(input) err := req.Send() @@ -330,6 +333,7 @@ const opDeleteHapg = "DeleteHapg" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg func (c *CloudHSM) DeleteHapgRequest(input *DeleteHapgInput) (req *request.Request, output *DeleteHapgOutput) { op := &request.Operation{ Name: opDeleteHapg, @@ -341,9 +345,8 @@ func (c *CloudHSM) DeleteHapgRequest(input *DeleteHapgInput) (req *request.Reque input = &DeleteHapgInput{} } - req = c.newRequest(op, input, output) output = &DeleteHapgOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -359,15 +362,16 @@ func (c *CloudHSM) DeleteHapgRequest(input *DeleteHapgInput) (req *request.Reque // API operation DeleteHapg for usage and error information. // // Returned Error Codes: -// * CloudHsmServiceException +// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" // Indicates that an exception occurred in the AWS CloudHSM service. // -// * CloudHsmInternalException +// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" // Indicates that an internal error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // Indicates that one or more of the request parameters are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg func (c *CloudHSM) DeleteHapg(input *DeleteHapgInput) (*DeleteHapgOutput, error) { req, out := c.DeleteHapgRequest(input) err := req.Send() @@ -400,6 +404,7 @@ const opDeleteHsm = "DeleteHsm" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm func (c *CloudHSM) DeleteHsmRequest(input *DeleteHsmInput) (req *request.Request, output *DeleteHsmOutput) { op := &request.Operation{ Name: opDeleteHsm, @@ -411,9 +416,8 @@ func (c *CloudHSM) DeleteHsmRequest(input *DeleteHsmInput) (req *request.Request input = &DeleteHsmInput{} } - req = c.newRequest(op, input, output) output = &DeleteHsmOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -430,15 +434,16 @@ func (c *CloudHSM) DeleteHsmRequest(input *DeleteHsmInput) (req *request.Request // API operation DeleteHsm for usage and error information. // // Returned Error Codes: -// * CloudHsmServiceException +// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" // Indicates that an exception occurred in the AWS CloudHSM service. // -// * CloudHsmInternalException +// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" // Indicates that an internal error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // Indicates that one or more of the request parameters are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm func (c *CloudHSM) DeleteHsm(input *DeleteHsmInput) (*DeleteHsmOutput, error) { req, out := c.DeleteHsmRequest(input) err := req.Send() @@ -471,6 +476,7 @@ const opDeleteLunaClient = "DeleteLunaClient" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient func (c *CloudHSM) DeleteLunaClientRequest(input *DeleteLunaClientInput) (req *request.Request, output *DeleteLunaClientOutput) { op := &request.Operation{ Name: opDeleteLunaClient, @@ -482,9 +488,8 @@ func (c *CloudHSM) DeleteLunaClientRequest(input *DeleteLunaClientInput) (req *r input = &DeleteLunaClientInput{} } - req = c.newRequest(op, input, output) output = &DeleteLunaClientOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -500,15 +505,16 @@ func (c *CloudHSM) DeleteLunaClientRequest(input *DeleteLunaClientInput) (req *r // API operation DeleteLunaClient for usage and error information. // // Returned Error Codes: -// * CloudHsmServiceException +// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" // Indicates that an exception occurred in the AWS CloudHSM service. // -// * CloudHsmInternalException +// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" // Indicates that an internal error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // Indicates that one or more of the request parameters are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient func (c *CloudHSM) DeleteLunaClient(input *DeleteLunaClientInput) (*DeleteLunaClientOutput, error) { req, out := c.DeleteLunaClientRequest(input) err := req.Send() @@ -541,6 +547,7 @@ const opDescribeHapg = "DescribeHapg" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg func (c *CloudHSM) DescribeHapgRequest(input *DescribeHapgInput) (req *request.Request, output *DescribeHapgOutput) { op := &request.Operation{ Name: opDescribeHapg, @@ -552,9 +559,8 @@ func (c *CloudHSM) DescribeHapgRequest(input *DescribeHapgInput) (req *request.R input = &DescribeHapgInput{} } - req = c.newRequest(op, input, output) output = &DescribeHapgOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -570,15 +576,16 @@ func (c *CloudHSM) DescribeHapgRequest(input *DescribeHapgInput) (req *request.R // API operation DescribeHapg for usage and error information. // // Returned Error Codes: -// * CloudHsmServiceException +// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" // Indicates that an exception occurred in the AWS CloudHSM service. // -// * CloudHsmInternalException +// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" // Indicates that an internal error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // Indicates that one or more of the request parameters are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg func (c *CloudHSM) DescribeHapg(input *DescribeHapgInput) (*DescribeHapgOutput, error) { req, out := c.DescribeHapgRequest(input) err := req.Send() @@ -611,6 +618,7 @@ const opDescribeHsm = "DescribeHsm" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm func (c *CloudHSM) DescribeHsmRequest(input *DescribeHsmInput) (req *request.Request, output *DescribeHsmOutput) { op := &request.Operation{ Name: opDescribeHsm, @@ -622,9 +630,8 @@ func (c *CloudHSM) DescribeHsmRequest(input *DescribeHsmInput) (req *request.Req input = &DescribeHsmInput{} } - req = c.newRequest(op, input, output) output = &DescribeHsmOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -641,15 +648,16 @@ func (c *CloudHSM) DescribeHsmRequest(input *DescribeHsmInput) (req *request.Req // API operation DescribeHsm for usage and error information. // // Returned Error Codes: -// * CloudHsmServiceException +// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" // Indicates that an exception occurred in the AWS CloudHSM service. // -// * CloudHsmInternalException +// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" // Indicates that an internal error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // Indicates that one or more of the request parameters are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm func (c *CloudHSM) DescribeHsm(input *DescribeHsmInput) (*DescribeHsmOutput, error) { req, out := c.DescribeHsmRequest(input) err := req.Send() @@ -682,6 +690,7 @@ const opDescribeLunaClient = "DescribeLunaClient" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClient func (c *CloudHSM) DescribeLunaClientRequest(input *DescribeLunaClientInput) (req *request.Request, output *DescribeLunaClientOutput) { op := &request.Operation{ Name: opDescribeLunaClient, @@ -693,9 +702,8 @@ func (c *CloudHSM) DescribeLunaClientRequest(input *DescribeLunaClientInput) (re input = &DescribeLunaClientInput{} } - req = c.newRequest(op, input, output) output = &DescribeLunaClientOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -711,15 +719,16 @@ func (c *CloudHSM) DescribeLunaClientRequest(input *DescribeLunaClientInput) (re // API operation DescribeLunaClient for usage and error information. // // Returned Error Codes: -// * CloudHsmServiceException +// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" // Indicates that an exception occurred in the AWS CloudHSM service. // -// * CloudHsmInternalException +// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" // Indicates that an internal error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // Indicates that one or more of the request parameters are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClient func (c *CloudHSM) DescribeLunaClient(input *DescribeLunaClientInput) (*DescribeLunaClientOutput, error) { req, out := c.DescribeLunaClientRequest(input) err := req.Send() @@ -752,6 +761,7 @@ const opGetConfig = "GetConfig" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfig func (c *CloudHSM) GetConfigRequest(input *GetConfigInput) (req *request.Request, output *GetConfigOutput) { op := &request.Operation{ Name: opGetConfig, @@ -763,9 +773,8 @@ func (c *CloudHSM) GetConfigRequest(input *GetConfigInput) (req *request.Request input = &GetConfigInput{} } - req = c.newRequest(op, input, output) output = &GetConfigOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -782,15 +791,16 @@ func (c *CloudHSM) GetConfigRequest(input *GetConfigInput) (req *request.Request // API operation GetConfig for usage and error information. // // Returned Error Codes: -// * CloudHsmServiceException +// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" // Indicates that an exception occurred in the AWS CloudHSM service. // -// * CloudHsmInternalException +// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" // Indicates that an internal error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // Indicates that one or more of the request parameters are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfig func (c *CloudHSM) GetConfig(input *GetConfigInput) (*GetConfigOutput, error) { req, out := c.GetConfigRequest(input) err := req.Send() @@ -823,6 +833,7 @@ const opListAvailableZones = "ListAvailableZones" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones func (c *CloudHSM) ListAvailableZonesRequest(input *ListAvailableZonesInput) (req *request.Request, output *ListAvailableZonesOutput) { op := &request.Operation{ Name: opListAvailableZones, @@ -834,9 +845,8 @@ func (c *CloudHSM) ListAvailableZonesRequest(input *ListAvailableZonesInput) (re input = &ListAvailableZonesInput{} } - req = c.newRequest(op, input, output) output = &ListAvailableZonesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -852,15 +862,16 @@ func (c *CloudHSM) ListAvailableZonesRequest(input *ListAvailableZonesInput) (re // API operation ListAvailableZones for usage and error information. // // Returned Error Codes: -// * CloudHsmServiceException +// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" // Indicates that an exception occurred in the AWS CloudHSM service. // -// * CloudHsmInternalException +// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" // Indicates that an internal error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // Indicates that one or more of the request parameters are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones func (c *CloudHSM) ListAvailableZones(input *ListAvailableZonesInput) (*ListAvailableZonesOutput, error) { req, out := c.ListAvailableZonesRequest(input) err := req.Send() @@ -893,6 +904,7 @@ const opListHapgs = "ListHapgs" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs func (c *CloudHSM) ListHapgsRequest(input *ListHapgsInput) (req *request.Request, output *ListHapgsOutput) { op := &request.Operation{ Name: opListHapgs, @@ -904,9 +916,8 @@ func (c *CloudHSM) ListHapgsRequest(input *ListHapgsInput) (req *request.Request input = &ListHapgsInput{} } - req = c.newRequest(op, input, output) output = &ListHapgsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -927,15 +938,16 @@ func (c *CloudHSM) ListHapgsRequest(input *ListHapgsInput) (req *request.Request // API operation ListHapgs for usage and error information. // // Returned Error Codes: -// * CloudHsmServiceException +// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" // Indicates that an exception occurred in the AWS CloudHSM service. // -// * CloudHsmInternalException +// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" // Indicates that an internal error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // Indicates that one or more of the request parameters are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs func (c *CloudHSM) ListHapgs(input *ListHapgsInput) (*ListHapgsOutput, error) { req, out := c.ListHapgsRequest(input) err := req.Send() @@ -968,6 +980,7 @@ const opListHsms = "ListHsms" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms func (c *CloudHSM) ListHsmsRequest(input *ListHsmsInput) (req *request.Request, output *ListHsmsOutput) { op := &request.Operation{ Name: opListHsms, @@ -979,9 +992,8 @@ func (c *CloudHSM) ListHsmsRequest(input *ListHsmsInput) (req *request.Request, input = &ListHsmsInput{} } - req = c.newRequest(op, input, output) output = &ListHsmsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1003,15 +1015,16 @@ func (c *CloudHSM) ListHsmsRequest(input *ListHsmsInput) (req *request.Request, // API operation ListHsms for usage and error information. // // Returned Error Codes: -// * CloudHsmServiceException +// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" // Indicates that an exception occurred in the AWS CloudHSM service. // -// * CloudHsmInternalException +// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" // Indicates that an internal error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // Indicates that one or more of the request parameters are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms func (c *CloudHSM) ListHsms(input *ListHsmsInput) (*ListHsmsOutput, error) { req, out := c.ListHsmsRequest(input) err := req.Send() @@ -1044,6 +1057,7 @@ const opListLunaClients = "ListLunaClients" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients func (c *CloudHSM) ListLunaClientsRequest(input *ListLunaClientsInput) (req *request.Request, output *ListLunaClientsOutput) { op := &request.Operation{ Name: opListLunaClients, @@ -1055,9 +1069,8 @@ func (c *CloudHSM) ListLunaClientsRequest(input *ListLunaClientsInput) (req *req input = &ListLunaClientsInput{} } - req = c.newRequest(op, input, output) output = &ListLunaClientsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1078,15 +1091,16 @@ func (c *CloudHSM) ListLunaClientsRequest(input *ListLunaClientsInput) (req *req // API operation ListLunaClients for usage and error information. // // Returned Error Codes: -// * CloudHsmServiceException +// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" // Indicates that an exception occurred in the AWS CloudHSM service. // -// * CloudHsmInternalException +// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" // Indicates that an internal error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // Indicates that one or more of the request parameters are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients func (c *CloudHSM) ListLunaClients(input *ListLunaClientsInput) (*ListLunaClientsOutput, error) { req, out := c.ListLunaClientsRequest(input) err := req.Send() @@ -1119,6 +1133,7 @@ const opListTagsForResource = "ListTagsForResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResource func (c *CloudHSM) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ Name: opListTagsForResource, @@ -1130,9 +1145,8 @@ func (c *CloudHSM) ListTagsForResourceRequest(input *ListTagsForResourceInput) ( input = &ListTagsForResourceInput{} } - req = c.newRequest(op, input, output) output = &ListTagsForResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1148,15 +1162,16 @@ func (c *CloudHSM) ListTagsForResourceRequest(input *ListTagsForResourceInput) ( // API operation ListTagsForResource for usage and error information. // // Returned Error Codes: -// * CloudHsmServiceException +// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" // Indicates that an exception occurred in the AWS CloudHSM service. // -// * CloudHsmInternalException +// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" // Indicates that an internal error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // Indicates that one or more of the request parameters are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResource func (c *CloudHSM) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -1189,6 +1204,7 @@ const opModifyHapg = "ModifyHapg" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapg func (c *CloudHSM) ModifyHapgRequest(input *ModifyHapgInput) (req *request.Request, output *ModifyHapgOutput) { op := &request.Operation{ Name: opModifyHapg, @@ -1200,9 +1216,8 @@ func (c *CloudHSM) ModifyHapgRequest(input *ModifyHapgInput) (req *request.Reque input = &ModifyHapgInput{} } - req = c.newRequest(op, input, output) output = &ModifyHapgOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1218,15 +1233,16 @@ func (c *CloudHSM) ModifyHapgRequest(input *ModifyHapgInput) (req *request.Reque // API operation ModifyHapg for usage and error information. // // Returned Error Codes: -// * CloudHsmServiceException +// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" // Indicates that an exception occurred in the AWS CloudHSM service. // -// * CloudHsmInternalException +// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" // Indicates that an internal error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // Indicates that one or more of the request parameters are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapg func (c *CloudHSM) ModifyHapg(input *ModifyHapgInput) (*ModifyHapgOutput, error) { req, out := c.ModifyHapgRequest(input) err := req.Send() @@ -1259,6 +1275,7 @@ const opModifyHsm = "ModifyHsm" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsm func (c *CloudHSM) ModifyHsmRequest(input *ModifyHsmInput) (req *request.Request, output *ModifyHsmOutput) { op := &request.Operation{ Name: opModifyHsm, @@ -1270,9 +1287,8 @@ func (c *CloudHSM) ModifyHsmRequest(input *ModifyHsmInput) (req *request.Request input = &ModifyHsmInput{} } - req = c.newRequest(op, input, output) output = &ModifyHsmOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1280,8 +1296,8 @@ func (c *CloudHSM) ModifyHsmRequest(input *ModifyHsmInput) (req *request.Request // // Modifies an HSM. // -// This operation can result in the HSM being offline for up to 15 minutes -// while the AWS CloudHSM service is reconfigured. If you are modifying a production +// This operation can result in the HSM being offline for up to 15 minutes while +// the AWS CloudHSM service is reconfigured. If you are modifying a production // HSM, you should ensure that your AWS CloudHSM service is configured for high // availability, and consider executing this operation during a maintenance // window. @@ -1294,15 +1310,16 @@ func (c *CloudHSM) ModifyHsmRequest(input *ModifyHsmInput) (req *request.Request // API operation ModifyHsm for usage and error information. // // Returned Error Codes: -// * CloudHsmServiceException +// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" // Indicates that an exception occurred in the AWS CloudHSM service. // -// * CloudHsmInternalException +// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" // Indicates that an internal error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // Indicates that one or more of the request parameters are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsm func (c *CloudHSM) ModifyHsm(input *ModifyHsmInput) (*ModifyHsmOutput, error) { req, out := c.ModifyHsmRequest(input) err := req.Send() @@ -1335,6 +1352,7 @@ const opModifyLunaClient = "ModifyLunaClient" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClient func (c *CloudHSM) ModifyLunaClientRequest(input *ModifyLunaClientInput) (req *request.Request, output *ModifyLunaClientOutput) { op := &request.Operation{ Name: opModifyLunaClient, @@ -1346,9 +1364,8 @@ func (c *CloudHSM) ModifyLunaClientRequest(input *ModifyLunaClientInput) (req *r input = &ModifyLunaClientInput{} } - req = c.newRequest(op, input, output) output = &ModifyLunaClientOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1367,9 +1384,10 @@ func (c *CloudHSM) ModifyLunaClientRequest(input *ModifyLunaClientInput) (req *r // API operation ModifyLunaClient for usage and error information. // // Returned Error Codes: -// * CloudHsmServiceException +// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" // Indicates that an exception occurred in the AWS CloudHSM service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClient func (c *CloudHSM) ModifyLunaClient(input *ModifyLunaClientInput) (*ModifyLunaClientOutput, error) { req, out := c.ModifyLunaClientRequest(input) err := req.Send() @@ -1402,6 +1420,7 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResource func (c *CloudHSM) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) { op := &request.Operation{ Name: opRemoveTagsFromResource, @@ -1413,9 +1432,8 @@ func (c *CloudHSM) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceIn input = &RemoveTagsFromResourceInput{} } - req = c.newRequest(op, input, output) output = &RemoveTagsFromResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1423,8 +1441,8 @@ func (c *CloudHSM) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceIn // // Removes one or more tags from the specified AWS CloudHSM resource. // -// To remove a tag, specify only the tag key to remove (not the value). To -// overwrite the value for an existing tag, use AddTagsToResource. +// To remove a tag, specify only the tag key to remove (not the value). To overwrite +// the value for an existing tag, use AddTagsToResource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1434,21 +1452,23 @@ func (c *CloudHSM) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceIn // API operation RemoveTagsFromResource for usage and error information. // // Returned Error Codes: -// * CloudHsmServiceException +// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" // Indicates that an exception occurred in the AWS CloudHSM service. // -// * CloudHsmInternalException +// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" // Indicates that an internal error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // Indicates that one or more of the request parameters are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResource func (c *CloudHSM) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { req, out := c.RemoveTagsFromResourceRequest(input) err := req.Send() return out, err } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResourceRequest type AddTagsToResourceInput struct { _ struct{} `type:"structure"` @@ -1499,6 +1519,19 @@ func (s *AddTagsToResourceInput) Validate() error { return nil } +// SetResourceArn sets the ResourceArn field's value. +func (s *AddTagsToResourceInput) SetResourceArn(v string) *AddTagsToResourceInput { + s.ResourceArn = &v + return s +} + +// SetTagList sets the TagList field's value. +func (s *AddTagsToResourceInput) SetTagList(v []*Tag) *AddTagsToResourceInput { + s.TagList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResourceResponse type AddTagsToResourceOutput struct { _ struct{} `type:"structure"` @@ -1518,7 +1551,14 @@ func (s AddTagsToResourceOutput) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *AddTagsToResourceOutput) SetStatus(v string) *AddTagsToResourceOutput { + s.Status = &v + return s +} + // Contains the inputs for the CreateHapgRequest action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapgRequest type CreateHapgInput struct { _ struct{} `type:"structure"` @@ -1551,7 +1591,14 @@ func (s *CreateHapgInput) Validate() error { return nil } +// SetLabel sets the Label field's value. +func (s *CreateHapgInput) SetLabel(v string) *CreateHapgInput { + s.Label = &v + return s +} + // Contains the output of the CreateHAPartitionGroup action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapgResponse type CreateHapgOutput struct { _ struct{} `type:"structure"` @@ -1569,7 +1616,14 @@ func (s CreateHapgOutput) GoString() string { return s.String() } +// SetHapgArn sets the HapgArn field's value. +func (s *CreateHapgOutput) SetHapgArn(v string) *CreateHapgOutput { + s.HapgArn = &v + return s +} + // Contains the inputs for the CreateHsm operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsmRequest type CreateHsmInput struct { _ struct{} `locationName:"CreateHsmRequest" type:"structure"` @@ -1604,8 +1658,8 @@ type CreateHsmInput struct { // Specifies the type of subscription for the HSM. // - // PRODUCTION - The HSM is being used in a production environment. TRIAL - - // The HSM is being used in a product trial. + // * PRODUCTION - The HSM is being used in a production environment. + // * TRIAL - The HSM is being used in a product trial. // // SubscriptionType is a required field SubscriptionType *string `locationName:"SubscriptionType" type:"string" required:"true" enum:"SubscriptionType"` @@ -1647,7 +1701,56 @@ func (s *CreateHsmInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *CreateHsmInput) SetClientToken(v string) *CreateHsmInput { + s.ClientToken = &v + return s +} + +// SetEniIp sets the EniIp field's value. +func (s *CreateHsmInput) SetEniIp(v string) *CreateHsmInput { + s.EniIp = &v + return s +} + +// SetExternalId sets the ExternalId field's value. +func (s *CreateHsmInput) SetExternalId(v string) *CreateHsmInput { + s.ExternalId = &v + return s +} + +// SetIamRoleArn sets the IamRoleArn field's value. +func (s *CreateHsmInput) SetIamRoleArn(v string) *CreateHsmInput { + s.IamRoleArn = &v + return s +} + +// SetSshKey sets the SshKey field's value. +func (s *CreateHsmInput) SetSshKey(v string) *CreateHsmInput { + s.SshKey = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *CreateHsmInput) SetSubnetId(v string) *CreateHsmInput { + s.SubnetId = &v + return s +} + +// SetSubscriptionType sets the SubscriptionType field's value. +func (s *CreateHsmInput) SetSubscriptionType(v string) *CreateHsmInput { + s.SubscriptionType = &v + return s +} + +// SetSyslogIp sets the SyslogIp field's value. +func (s *CreateHsmInput) SetSyslogIp(v string) *CreateHsmInput { + s.SyslogIp = &v + return s +} + // Contains the output of the CreateHsm operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsmResponse type CreateHsmOutput struct { _ struct{} `type:"structure"` @@ -1665,7 +1768,14 @@ func (s CreateHsmOutput) GoString() string { return s.String() } +// SetHsmArn sets the HsmArn field's value. +func (s *CreateHsmOutput) SetHsmArn(v string) *CreateHsmOutput { + s.HsmArn = &v + return s +} + // Contains the inputs for the CreateLunaClient action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClientRequest type CreateLunaClientInput struct { _ struct{} `type:"structure"` @@ -1705,7 +1815,20 @@ func (s *CreateLunaClientInput) Validate() error { return nil } +// SetCertificate sets the Certificate field's value. +func (s *CreateLunaClientInput) SetCertificate(v string) *CreateLunaClientInput { + s.Certificate = &v + return s +} + +// SetLabel sets the Label field's value. +func (s *CreateLunaClientInput) SetLabel(v string) *CreateLunaClientInput { + s.Label = &v + return s +} + // Contains the output of the CreateLunaClient action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClientResponse type CreateLunaClientOutput struct { _ struct{} `type:"structure"` @@ -1723,7 +1846,14 @@ func (s CreateLunaClientOutput) GoString() string { return s.String() } +// SetClientArn sets the ClientArn field's value. +func (s *CreateLunaClientOutput) SetClientArn(v string) *CreateLunaClientOutput { + s.ClientArn = &v + return s +} + // Contains the inputs for the DeleteHapg action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapgRequest type DeleteHapgInput struct { _ struct{} `type:"structure"` @@ -1756,7 +1886,14 @@ func (s *DeleteHapgInput) Validate() error { return nil } +// SetHapgArn sets the HapgArn field's value. +func (s *DeleteHapgInput) SetHapgArn(v string) *DeleteHapgInput { + s.HapgArn = &v + return s +} + // Contains the output of the DeleteHapg action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapgResponse type DeleteHapgOutput struct { _ struct{} `type:"structure"` @@ -1776,7 +1913,14 @@ func (s DeleteHapgOutput) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *DeleteHapgOutput) SetStatus(v string) *DeleteHapgOutput { + s.Status = &v + return s +} + // Contains the inputs for the DeleteHsm operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsmRequest type DeleteHsmInput struct { _ struct{} `locationName:"DeleteHsmRequest" type:"structure"` @@ -1809,7 +1953,14 @@ func (s *DeleteHsmInput) Validate() error { return nil } +// SetHsmArn sets the HsmArn field's value. +func (s *DeleteHsmInput) SetHsmArn(v string) *DeleteHsmInput { + s.HsmArn = &v + return s +} + // Contains the output of the DeleteHsm operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsmResponse type DeleteHsmOutput struct { _ struct{} `type:"structure"` @@ -1829,6 +1980,13 @@ func (s DeleteHsmOutput) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *DeleteHsmOutput) SetStatus(v string) *DeleteHsmOutput { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClientRequest type DeleteLunaClientInput struct { _ struct{} `type:"structure"` @@ -1861,6 +2019,13 @@ func (s *DeleteLunaClientInput) Validate() error { return nil } +// SetClientArn sets the ClientArn field's value. +func (s *DeleteLunaClientInput) SetClientArn(v string) *DeleteLunaClientInput { + s.ClientArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClientResponse type DeleteLunaClientOutput struct { _ struct{} `type:"structure"` @@ -1880,7 +2045,14 @@ func (s DeleteLunaClientOutput) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *DeleteLunaClientOutput) SetStatus(v string) *DeleteLunaClientOutput { + s.Status = &v + return s +} + // Contains the inputs for the DescribeHapg action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapgRequest type DescribeHapgInput struct { _ struct{} `type:"structure"` @@ -1913,7 +2085,14 @@ func (s *DescribeHapgInput) Validate() error { return nil } +// SetHapgArn sets the HapgArn field's value. +func (s *DescribeHapgInput) SetHapgArn(v string) *DescribeHapgInput { + s.HapgArn = &v + return s +} + // Contains the output of the DescribeHapg action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapgResponse type DescribeHapgOutput struct { _ struct{} `type:"structure"` @@ -1956,7 +2135,62 @@ func (s DescribeHapgOutput) GoString() string { return s.String() } +// SetHapgArn sets the HapgArn field's value. +func (s *DescribeHapgOutput) SetHapgArn(v string) *DescribeHapgOutput { + s.HapgArn = &v + return s +} + +// SetHapgSerial sets the HapgSerial field's value. +func (s *DescribeHapgOutput) SetHapgSerial(v string) *DescribeHapgOutput { + s.HapgSerial = &v + return s +} + +// SetHsmsLastActionFailed sets the HsmsLastActionFailed field's value. +func (s *DescribeHapgOutput) SetHsmsLastActionFailed(v []*string) *DescribeHapgOutput { + s.HsmsLastActionFailed = v + return s +} + +// SetHsmsPendingDeletion sets the HsmsPendingDeletion field's value. +func (s *DescribeHapgOutput) SetHsmsPendingDeletion(v []*string) *DescribeHapgOutput { + s.HsmsPendingDeletion = v + return s +} + +// SetHsmsPendingRegistration sets the HsmsPendingRegistration field's value. +func (s *DescribeHapgOutput) SetHsmsPendingRegistration(v []*string) *DescribeHapgOutput { + s.HsmsPendingRegistration = v + return s +} + +// SetLabel sets the Label field's value. +func (s *DescribeHapgOutput) SetLabel(v string) *DescribeHapgOutput { + s.Label = &v + return s +} + +// SetLastModifiedTimestamp sets the LastModifiedTimestamp field's value. +func (s *DescribeHapgOutput) SetLastModifiedTimestamp(v string) *DescribeHapgOutput { + s.LastModifiedTimestamp = &v + return s +} + +// SetPartitionSerialList sets the PartitionSerialList field's value. +func (s *DescribeHapgOutput) SetPartitionSerialList(v []*string) *DescribeHapgOutput { + s.PartitionSerialList = v + return s +} + +// SetState sets the State field's value. +func (s *DescribeHapgOutput) SetState(v string) *DescribeHapgOutput { + s.State = &v + return s +} + // Contains the inputs for the DescribeHsm operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsmRequest type DescribeHsmInput struct { _ struct{} `type:"structure"` @@ -1979,7 +2213,20 @@ func (s DescribeHsmInput) GoString() string { return s.String() } +// SetHsmArn sets the HsmArn field's value. +func (s *DescribeHsmInput) SetHsmArn(v string) *DescribeHsmInput { + s.HsmArn = &v + return s +} + +// SetHsmSerialNumber sets the HsmSerialNumber field's value. +func (s *DescribeHsmInput) SetHsmSerialNumber(v string) *DescribeHsmInput { + s.HsmSerialNumber = &v + return s +} + // Contains the output of the DescribeHsm operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsmResponse type DescribeHsmOutput struct { _ struct{} `type:"structure"` @@ -2039,8 +2286,8 @@ type DescribeHsmOutput struct { // Specifies the type of subscription for the HSM. // - // PRODUCTION - The HSM is being used in a production environment. TRIAL - - // The HSM is being used in a product trial. + // * PRODUCTION - The HSM is being used in a production environment. + // * TRIAL - The HSM is being used in a product trial. SubscriptionType *string `type:"string" enum:"SubscriptionType"` // The name of the HSM vendor. @@ -2060,6 +2307,133 @@ func (s DescribeHsmOutput) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *DescribeHsmOutput) SetAvailabilityZone(v string) *DescribeHsmOutput { + s.AvailabilityZone = &v + return s +} + +// SetEniId sets the EniId field's value. +func (s *DescribeHsmOutput) SetEniId(v string) *DescribeHsmOutput { + s.EniId = &v + return s +} + +// SetEniIp sets the EniIp field's value. +func (s *DescribeHsmOutput) SetEniIp(v string) *DescribeHsmOutput { + s.EniIp = &v + return s +} + +// SetHsmArn sets the HsmArn field's value. +func (s *DescribeHsmOutput) SetHsmArn(v string) *DescribeHsmOutput { + s.HsmArn = &v + return s +} + +// SetHsmType sets the HsmType field's value. +func (s *DescribeHsmOutput) SetHsmType(v string) *DescribeHsmOutput { + s.HsmType = &v + return s +} + +// SetIamRoleArn sets the IamRoleArn field's value. +func (s *DescribeHsmOutput) SetIamRoleArn(v string) *DescribeHsmOutput { + s.IamRoleArn = &v + return s +} + +// SetPartitions sets the Partitions field's value. +func (s *DescribeHsmOutput) SetPartitions(v []*string) *DescribeHsmOutput { + s.Partitions = v + return s +} + +// SetSerialNumber sets the SerialNumber field's value. +func (s *DescribeHsmOutput) SetSerialNumber(v string) *DescribeHsmOutput { + s.SerialNumber = &v + return s +} + +// SetServerCertLastUpdated sets the ServerCertLastUpdated field's value. +func (s *DescribeHsmOutput) SetServerCertLastUpdated(v string) *DescribeHsmOutput { + s.ServerCertLastUpdated = &v + return s +} + +// SetServerCertUri sets the ServerCertUri field's value. +func (s *DescribeHsmOutput) SetServerCertUri(v string) *DescribeHsmOutput { + s.ServerCertUri = &v + return s +} + +// SetSoftwareVersion sets the SoftwareVersion field's value. +func (s *DescribeHsmOutput) SetSoftwareVersion(v string) *DescribeHsmOutput { + s.SoftwareVersion = &v + return s +} + +// SetSshKeyLastUpdated sets the SshKeyLastUpdated field's value. +func (s *DescribeHsmOutput) SetSshKeyLastUpdated(v string) *DescribeHsmOutput { + s.SshKeyLastUpdated = &v + return s +} + +// SetSshPublicKey sets the SshPublicKey field's value. +func (s *DescribeHsmOutput) SetSshPublicKey(v string) *DescribeHsmOutput { + s.SshPublicKey = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeHsmOutput) SetStatus(v string) *DescribeHsmOutput { + s.Status = &v + return s +} + +// SetStatusDetails sets the StatusDetails field's value. +func (s *DescribeHsmOutput) SetStatusDetails(v string) *DescribeHsmOutput { + s.StatusDetails = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *DescribeHsmOutput) SetSubnetId(v string) *DescribeHsmOutput { + s.SubnetId = &v + return s +} + +// SetSubscriptionEndDate sets the SubscriptionEndDate field's value. +func (s *DescribeHsmOutput) SetSubscriptionEndDate(v string) *DescribeHsmOutput { + s.SubscriptionEndDate = &v + return s +} + +// SetSubscriptionStartDate sets the SubscriptionStartDate field's value. +func (s *DescribeHsmOutput) SetSubscriptionStartDate(v string) *DescribeHsmOutput { + s.SubscriptionStartDate = &v + return s +} + +// SetSubscriptionType sets the SubscriptionType field's value. +func (s *DescribeHsmOutput) SetSubscriptionType(v string) *DescribeHsmOutput { + s.SubscriptionType = &v + return s +} + +// SetVendorName sets the VendorName field's value. +func (s *DescribeHsmOutput) SetVendorName(v string) *DescribeHsmOutput { + s.VendorName = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DescribeHsmOutput) SetVpcId(v string) *DescribeHsmOutput { + s.VpcId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClientRequest type DescribeLunaClientInput struct { _ struct{} `type:"structure"` @@ -2080,6 +2454,19 @@ func (s DescribeLunaClientInput) GoString() string { return s.String() } +// SetCertificateFingerprint sets the CertificateFingerprint field's value. +func (s *DescribeLunaClientInput) SetCertificateFingerprint(v string) *DescribeLunaClientInput { + s.CertificateFingerprint = &v + return s +} + +// SetClientArn sets the ClientArn field's value. +func (s *DescribeLunaClientInput) SetClientArn(v string) *DescribeLunaClientInput { + s.ClientArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClientResponse type DescribeLunaClientOutput struct { _ struct{} `type:"structure"` @@ -2109,6 +2496,37 @@ func (s DescribeLunaClientOutput) GoString() string { return s.String() } +// SetCertificate sets the Certificate field's value. +func (s *DescribeLunaClientOutput) SetCertificate(v string) *DescribeLunaClientOutput { + s.Certificate = &v + return s +} + +// SetCertificateFingerprint sets the CertificateFingerprint field's value. +func (s *DescribeLunaClientOutput) SetCertificateFingerprint(v string) *DescribeLunaClientOutput { + s.CertificateFingerprint = &v + return s +} + +// SetClientArn sets the ClientArn field's value. +func (s *DescribeLunaClientOutput) SetClientArn(v string) *DescribeLunaClientOutput { + s.ClientArn = &v + return s +} + +// SetLabel sets the Label field's value. +func (s *DescribeLunaClientOutput) SetLabel(v string) *DescribeLunaClientOutput { + s.Label = &v + return s +} + +// SetLastModifiedTimestamp sets the LastModifiedTimestamp field's value. +func (s *DescribeLunaClientOutput) SetLastModifiedTimestamp(v string) *DescribeLunaClientOutput { + s.LastModifiedTimestamp = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfigRequest type GetConfigInput struct { _ struct{} `type:"structure"` @@ -2158,6 +2576,25 @@ func (s *GetConfigInput) Validate() error { return nil } +// SetClientArn sets the ClientArn field's value. +func (s *GetConfigInput) SetClientArn(v string) *GetConfigInput { + s.ClientArn = &v + return s +} + +// SetClientVersion sets the ClientVersion field's value. +func (s *GetConfigInput) SetClientVersion(v string) *GetConfigInput { + s.ClientVersion = &v + return s +} + +// SetHapgList sets the HapgList field's value. +func (s *GetConfigInput) SetHapgList(v []*string) *GetConfigInput { + s.HapgList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfigResponse type GetConfigOutput struct { _ struct{} `type:"structure"` @@ -2181,7 +2618,26 @@ func (s GetConfigOutput) GoString() string { return s.String() } +// SetConfigCred sets the ConfigCred field's value. +func (s *GetConfigOutput) SetConfigCred(v string) *GetConfigOutput { + s.ConfigCred = &v + return s +} + +// SetConfigFile sets the ConfigFile field's value. +func (s *GetConfigOutput) SetConfigFile(v string) *GetConfigOutput { + s.ConfigFile = &v + return s +} + +// SetConfigType sets the ConfigType field's value. +func (s *GetConfigOutput) SetConfigType(v string) *GetConfigOutput { + s.ConfigType = &v + return s +} + // Contains the inputs for the ListAvailableZones action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZonesRequest type ListAvailableZonesInput struct { _ struct{} `type:"structure"` } @@ -2196,6 +2652,7 @@ func (s ListAvailableZonesInput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZonesResponse type ListAvailableZonesOutput struct { _ struct{} `type:"structure"` @@ -2213,6 +2670,13 @@ func (s ListAvailableZonesOutput) GoString() string { return s.String() } +// SetAZList sets the AZList field's value. +func (s *ListAvailableZonesOutput) SetAZList(v []*string) *ListAvailableZonesOutput { + s.AZList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgsRequest type ListHapgsInput struct { _ struct{} `type:"structure"` @@ -2231,6 +2695,13 @@ func (s ListHapgsInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListHapgsInput) SetNextToken(v string) *ListHapgsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgsResponse type ListHapgsOutput struct { _ struct{} `type:"structure"` @@ -2254,6 +2725,19 @@ func (s ListHapgsOutput) GoString() string { return s.String() } +// SetHapgList sets the HapgList field's value. +func (s *ListHapgsOutput) SetHapgList(v []*string) *ListHapgsOutput { + s.HapgList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListHapgsOutput) SetNextToken(v string) *ListHapgsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsmsRequest type ListHsmsInput struct { _ struct{} `type:"structure"` @@ -2272,7 +2756,14 @@ func (s ListHsmsInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListHsmsInput) SetNextToken(v string) *ListHsmsInput { + s.NextToken = &v + return s +} + // Contains the output of the ListHsms operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsmsResponse type ListHsmsOutput struct { _ struct{} `type:"structure"` @@ -2294,6 +2785,19 @@ func (s ListHsmsOutput) GoString() string { return s.String() } +// SetHsmList sets the HsmList field's value. +func (s *ListHsmsOutput) SetHsmList(v []*string) *ListHsmsOutput { + s.HsmList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListHsmsOutput) SetNextToken(v string) *ListHsmsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClientsRequest type ListLunaClientsInput struct { _ struct{} `type:"structure"` @@ -2312,6 +2816,13 @@ func (s ListLunaClientsInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListLunaClientsInput) SetNextToken(v string) *ListLunaClientsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClientsResponse type ListLunaClientsOutput struct { _ struct{} `type:"structure"` @@ -2335,6 +2846,19 @@ func (s ListLunaClientsOutput) GoString() string { return s.String() } +// SetClientList sets the ClientList field's value. +func (s *ListLunaClientsOutput) SetClientList(v []*string) *ListLunaClientsOutput { + s.ClientList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLunaClientsOutput) SetNextToken(v string) *ListLunaClientsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResourceRequest type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -2367,6 +2891,13 @@ func (s *ListTagsForResourceInput) Validate() error { return nil } +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResourceResponse type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` @@ -2386,6 +2917,13 @@ func (s ListTagsForResourceOutput) GoString() string { return s.String() } +// SetTagList sets the TagList field's value. +func (s *ListTagsForResourceOutput) SetTagList(v []*Tag) *ListTagsForResourceOutput { + s.TagList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapgRequest type ModifyHapgInput struct { _ struct{} `type:"structure"` @@ -2425,6 +2963,25 @@ func (s *ModifyHapgInput) Validate() error { return nil } +// SetHapgArn sets the HapgArn field's value. +func (s *ModifyHapgInput) SetHapgArn(v string) *ModifyHapgInput { + s.HapgArn = &v + return s +} + +// SetLabel sets the Label field's value. +func (s *ModifyHapgInput) SetLabel(v string) *ModifyHapgInput { + s.Label = &v + return s +} + +// SetPartitionSerialList sets the PartitionSerialList field's value. +func (s *ModifyHapgInput) SetPartitionSerialList(v []*string) *ModifyHapgInput { + s.PartitionSerialList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapgResponse type ModifyHapgOutput struct { _ struct{} `type:"structure"` @@ -2442,7 +2999,14 @@ func (s ModifyHapgOutput) GoString() string { return s.String() } +// SetHapgArn sets the HapgArn field's value. +func (s *ModifyHapgOutput) SetHapgArn(v string) *ModifyHapgOutput { + s.HapgArn = &v + return s +} + // Contains the inputs for the ModifyHsm operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsmRequest type ModifyHsmInput struct { _ struct{} `locationName:"ModifyHsmRequest" type:"structure"` @@ -2496,7 +3060,44 @@ func (s *ModifyHsmInput) Validate() error { return nil } +// SetEniIp sets the EniIp field's value. +func (s *ModifyHsmInput) SetEniIp(v string) *ModifyHsmInput { + s.EniIp = &v + return s +} + +// SetExternalId sets the ExternalId field's value. +func (s *ModifyHsmInput) SetExternalId(v string) *ModifyHsmInput { + s.ExternalId = &v + return s +} + +// SetHsmArn sets the HsmArn field's value. +func (s *ModifyHsmInput) SetHsmArn(v string) *ModifyHsmInput { + s.HsmArn = &v + return s +} + +// SetIamRoleArn sets the IamRoleArn field's value. +func (s *ModifyHsmInput) SetIamRoleArn(v string) *ModifyHsmInput { + s.IamRoleArn = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *ModifyHsmInput) SetSubnetId(v string) *ModifyHsmInput { + s.SubnetId = &v + return s +} + +// SetSyslogIp sets the SyslogIp field's value. +func (s *ModifyHsmInput) SetSyslogIp(v string) *ModifyHsmInput { + s.SyslogIp = &v + return s +} + // Contains the output of the ModifyHsm operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsmResponse type ModifyHsmOutput struct { _ struct{} `type:"structure"` @@ -2514,6 +3115,13 @@ func (s ModifyHsmOutput) GoString() string { return s.String() } +// SetHsmArn sets the HsmArn field's value. +func (s *ModifyHsmOutput) SetHsmArn(v string) *ModifyHsmOutput { + s.HsmArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClientRequest type ModifyLunaClientInput struct { _ struct{} `type:"structure"` @@ -2557,6 +3165,19 @@ func (s *ModifyLunaClientInput) Validate() error { return nil } +// SetCertificate sets the Certificate field's value. +func (s *ModifyLunaClientInput) SetCertificate(v string) *ModifyLunaClientInput { + s.Certificate = &v + return s +} + +// SetClientArn sets the ClientArn field's value. +func (s *ModifyLunaClientInput) SetClientArn(v string) *ModifyLunaClientInput { + s.ClientArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClientResponse type ModifyLunaClientOutput struct { _ struct{} `type:"structure"` @@ -2574,6 +3195,13 @@ func (s ModifyLunaClientOutput) GoString() string { return s.String() } +// SetClientArn sets the ClientArn field's value. +func (s *ModifyLunaClientOutput) SetClientArn(v string) *ModifyLunaClientOutput { + s.ClientArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResourceRequest type RemoveTagsFromResourceInput struct { _ struct{} `type:"structure"` @@ -2617,6 +3245,19 @@ func (s *RemoveTagsFromResourceInput) Validate() error { return nil } +// SetResourceArn sets the ResourceArn field's value. +func (s *RemoveTagsFromResourceInput) SetResourceArn(v string) *RemoveTagsFromResourceInput { + s.ResourceArn = &v + return s +} + +// SetTagKeyList sets the TagKeyList field's value. +func (s *RemoveTagsFromResourceInput) SetTagKeyList(v []*string) *RemoveTagsFromResourceInput { + s.TagKeyList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResourceResponse type RemoveTagsFromResourceOutput struct { _ struct{} `type:"structure"` @@ -2636,8 +3277,15 @@ func (s RemoveTagsFromResourceOutput) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *RemoveTagsFromResourceOutput) SetStatus(v string) *RemoveTagsFromResourceOutput { + s.Status = &v + return s +} + // A key-value pair that identifies or specifies metadata about an AWS CloudHSM // resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/Tag type Tag struct { _ struct{} `type:"structure"` @@ -2681,6 +3329,18 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + const ( // ClientVersion51 is a ClientVersion enum value ClientVersion51 = "5.1" @@ -2725,8 +3385,8 @@ const ( // Specifies the type of subscription for the HSM. // -// PRODUCTION - The HSM is being used in a production environment. TRIAL - -// The HSM is being used in a product trial. +// * PRODUCTION - The HSM is being used in a production environment. +// * TRIAL - The HSM is being used in a product trial. const ( // SubscriptionTypeProduction is a SubscriptionType enum value SubscriptionTypeProduction = "PRODUCTION" diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/cloudhsmiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/cloudhsmiface/interface.go index 3d3cb8f4b..6e921a970 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/cloudhsmiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/cloudhsmiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCloudHSMClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/errors.go b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/errors.go new file mode 100644 index 000000000..eaa7edd3e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/errors.go @@ -0,0 +1,24 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cloudhsm + +const ( + + // ErrCodeCloudHsmInternalException for service response error code + // "CloudHsmInternalException". + // + // Indicates that an internal error occurred. + ErrCodeCloudHsmInternalException = "CloudHsmInternalException" + + // ErrCodeCloudHsmServiceException for service response error code + // "CloudHsmServiceException". + // + // Indicates that an exception occurred in the AWS CloudHSM service. + ErrCodeCloudHsmServiceException = "CloudHsmServiceException" + + // ErrCodeInvalidRequestException for service response error code + // "InvalidRequestException". + // + // Indicates that one or more of the request parameters are not valid. + ErrCodeInvalidRequestException = "InvalidRequestException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/examples_test.go index bdc7099ee..e56080f26 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudHSM_AddTagsToResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -48,11 +44,7 @@ func ExampleCloudHSM_AddTagsToResource() { } func ExampleCloudHSM_CreateHapg() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -73,11 +65,7 @@ func ExampleCloudHSM_CreateHapg() { } func ExampleCloudHSM_CreateHsm() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -105,11 +93,7 @@ func ExampleCloudHSM_CreateHsm() { } func ExampleCloudHSM_CreateLunaClient() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -131,11 +115,7 @@ func ExampleCloudHSM_CreateLunaClient() { } func ExampleCloudHSM_DeleteHapg() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -156,11 +136,7 @@ func ExampleCloudHSM_DeleteHapg() { } func ExampleCloudHSM_DeleteHsm() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -181,11 +157,7 @@ func ExampleCloudHSM_DeleteHsm() { } func ExampleCloudHSM_DeleteLunaClient() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -206,11 +178,7 @@ func ExampleCloudHSM_DeleteLunaClient() { } func ExampleCloudHSM_DescribeHapg() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -231,11 +199,7 @@ func ExampleCloudHSM_DescribeHapg() { } func ExampleCloudHSM_DescribeHsm() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -257,11 +221,7 @@ func ExampleCloudHSM_DescribeHsm() { } func ExampleCloudHSM_DescribeLunaClient() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -283,11 +243,7 @@ func ExampleCloudHSM_DescribeLunaClient() { } func ExampleCloudHSM_GetConfig() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -313,11 +269,7 @@ func ExampleCloudHSM_GetConfig() { } func ExampleCloudHSM_ListAvailableZones() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -336,11 +288,7 @@ func ExampleCloudHSM_ListAvailableZones() { } func ExampleCloudHSM_ListHapgs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -361,11 +309,7 @@ func ExampleCloudHSM_ListHapgs() { } func ExampleCloudHSM_ListHsms() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -386,11 +330,7 @@ func ExampleCloudHSM_ListHsms() { } func ExampleCloudHSM_ListLunaClients() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -411,11 +351,7 @@ func ExampleCloudHSM_ListLunaClients() { } func ExampleCloudHSM_ListTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -436,11 +372,7 @@ func ExampleCloudHSM_ListTagsForResource() { } func ExampleCloudHSM_ModifyHapg() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -466,11 +398,7 @@ func ExampleCloudHSM_ModifyHapg() { } func ExampleCloudHSM_ModifyHsm() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -496,11 +424,7 @@ func ExampleCloudHSM_ModifyHsm() { } func ExampleCloudHSM_ModifyLunaClient() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) @@ -522,11 +446,7 @@ func ExampleCloudHSM_ModifyLunaClient() { } func ExampleCloudHSM_RemoveTagsFromResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudhsm.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/service.go index 4b6267158..09e9cfeb7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/service.go @@ -11,8 +11,9 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30 type CloudHSM struct { *client.Client } @@ -23,8 +24,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "cloudhsm" +// Service information constants +const ( + ServiceName = "cloudhsm" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the CloudHSM client with a session. // If additional configuration is needed for the client instance use the optional @@ -37,17 +41,18 @@ const ServiceName = "cloudhsm" // // Create a CloudHSM client with additional configuration // svc := cloudhsm.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudHSM { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CloudHSM { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CloudHSM { svc := &CloudHSM{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-05-30", diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/api.go index 1aadc6e05..e5178613a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/api.go @@ -35,7 +35,6 @@ const opBuildSuggesters = "BuildSuggesters" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) BuildSuggestersRequest(input *BuildSuggestersInput) (req *request.Request, output *BuildSuggestersOutput) { op := &request.Operation{ Name: opBuildSuggesters, @@ -47,9 +46,8 @@ func (c *CloudSearch) BuildSuggestersRequest(input *BuildSuggestersInput) (req * input = &BuildSuggestersInput{} } - req = c.newRequest(op, input, output) output = &BuildSuggestersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -67,15 +65,14 @@ func (c *CloudSearch) BuildSuggestersRequest(input *BuildSuggestersInput) (req * // API operation BuildSuggesters for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * ResourceNotFound +// * ErrCodeResourceNotFoundException "ResourceNotFound" // The request was rejected because it attempted to reference a resource that // does not exist. // @@ -110,7 +107,6 @@ const opCreateDomain = "CreateDomain" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) CreateDomainRequest(input *CreateDomainInput) (req *request.Request, output *CreateDomainOutput) { op := &request.Operation{ Name: opCreateDomain, @@ -122,17 +118,16 @@ func (c *CloudSearch) CreateDomainRequest(input *CreateDomainInput) (req *reques input = &CreateDomainInput{} } - req = c.newRequest(op, input, output) output = &CreateDomainOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // CreateDomain API operation for Amazon CloudSearch. // // Creates a new search domain. For more information, see Creating a Search -// Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/creating-domains.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/creating-domains.html) +// in the Amazon CloudSearch Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -142,15 +137,14 @@ func (c *CloudSearch) CreateDomainRequest(input *CreateDomainInput) (req *reques // API operation CreateDomain for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because a resource limit has already been met. // func (c *CloudSearch) CreateDomain(input *CreateDomainInput) (*CreateDomainOutput, error) { @@ -184,7 +178,6 @@ const opDefineAnalysisScheme = "DefineAnalysisScheme" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) DefineAnalysisSchemeRequest(input *DefineAnalysisSchemeInput) (req *request.Request, output *DefineAnalysisSchemeOutput) { op := &request.Operation{ Name: opDefineAnalysisScheme, @@ -196,9 +189,8 @@ func (c *CloudSearch) DefineAnalysisSchemeRequest(input *DefineAnalysisSchemeInp input = &DefineAnalysisSchemeInput{} } - req = c.newRequest(op, input, output) output = &DefineAnalysisSchemeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -206,8 +198,8 @@ func (c *CloudSearch) DefineAnalysisSchemeRequest(input *DefineAnalysisSchemeInp // // Configures an analysis scheme that can be applied to a text or text-array // field to define language-specific text processing options. For more information, -// see Configuring Analysis Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// see Configuring Analysis Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html) +// in the Amazon CloudSearch Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -217,21 +209,20 @@ func (c *CloudSearch) DefineAnalysisSchemeRequest(input *DefineAnalysisSchemeInp // API operation DefineAnalysisScheme for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because a resource limit has already been met. // -// * InvalidType +// * ErrCodeInvalidTypeException "InvalidType" // The request was rejected because it specified an invalid type definition. // -// * ResourceNotFound +// * ErrCodeResourceNotFoundException "ResourceNotFound" // The request was rejected because it attempted to reference a resource that // does not exist. // @@ -266,7 +257,6 @@ const opDefineExpression = "DefineExpression" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) DefineExpressionRequest(input *DefineExpressionInput) (req *request.Request, output *DefineExpressionOutput) { op := &request.Operation{ Name: opDefineExpression, @@ -278,9 +268,8 @@ func (c *CloudSearch) DefineExpressionRequest(input *DefineExpressionInput) (req input = &DefineExpressionInput{} } - req = c.newRequest(op, input, output) output = &DefineExpressionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -288,8 +277,8 @@ func (c *CloudSearch) DefineExpressionRequest(input *DefineExpressionInput) (req // // Configures an Expression for the search domain. Used to create new expressions // and modify existing ones. If the expression exists, the new configuration -// replaces the old one. For more information, see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// replaces the old one. For more information, see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html) +// in the Amazon CloudSearch Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -299,21 +288,20 @@ func (c *CloudSearch) DefineExpressionRequest(input *DefineExpressionInput) (req // API operation DefineExpression for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because a resource limit has already been met. // -// * InvalidType +// * ErrCodeInvalidTypeException "InvalidType" // The request was rejected because it specified an invalid type definition. // -// * ResourceNotFound +// * ErrCodeResourceNotFoundException "ResourceNotFound" // The request was rejected because it attempted to reference a resource that // does not exist. // @@ -348,7 +336,6 @@ const opDefineIndexField = "DefineIndexField" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) DefineIndexFieldRequest(input *DefineIndexFieldInput) (req *request.Request, output *DefineIndexFieldOutput) { op := &request.Operation{ Name: opDefineIndexField, @@ -360,9 +347,8 @@ func (c *CloudSearch) DefineIndexFieldRequest(input *DefineIndexFieldInput) (req input = &DefineIndexFieldInput{} } - req = c.newRequest(op, input, output) output = &DefineIndexFieldOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -374,8 +360,8 @@ func (c *CloudSearch) DefineIndexFieldRequest(input *DefineIndexFieldInput) (req // specifies a unique name, the index field type, and the options you want to // configure for the field. The options you can specify depend on the IndexFieldType. // If the field exists, the new configuration replaces the old one. For more -// information, see Configuring Index Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// information, see Configuring Index Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html) +// in the Amazon CloudSearch Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -385,21 +371,20 @@ func (c *CloudSearch) DefineIndexFieldRequest(input *DefineIndexFieldInput) (req // API operation DefineIndexField for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because a resource limit has already been met. // -// * InvalidType +// * ErrCodeInvalidTypeException "InvalidType" // The request was rejected because it specified an invalid type definition. // -// * ResourceNotFound +// * ErrCodeResourceNotFoundException "ResourceNotFound" // The request was rejected because it attempted to reference a resource that // does not exist. // @@ -434,7 +419,6 @@ const opDefineSuggester = "DefineSuggester" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) DefineSuggesterRequest(input *DefineSuggesterInput) (req *request.Request, output *DefineSuggesterOutput) { op := &request.Operation{ Name: opDefineSuggester, @@ -446,9 +430,8 @@ func (c *CloudSearch) DefineSuggesterRequest(input *DefineSuggesterInput) (req * input = &DefineSuggesterInput{} } - req = c.newRequest(op, input, output) output = &DefineSuggesterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -458,8 +441,8 @@ func (c *CloudSearch) DefineSuggesterRequest(input *DefineSuggesterInput) (req * // matches before users finish typing their queries. When you configure a suggester, // you must specify the name of the text field you want to search for possible // matches and a unique name for the suggester. For more information, see Getting -// Search Suggestions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// Search Suggestions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html) +// in the Amazon CloudSearch Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -469,21 +452,20 @@ func (c *CloudSearch) DefineSuggesterRequest(input *DefineSuggesterInput) (req * // API operation DefineSuggester for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because a resource limit has already been met. // -// * InvalidType +// * ErrCodeInvalidTypeException "InvalidType" // The request was rejected because it specified an invalid type definition. // -// * ResourceNotFound +// * ErrCodeResourceNotFoundException "ResourceNotFound" // The request was rejected because it attempted to reference a resource that // does not exist. // @@ -518,7 +500,6 @@ const opDeleteAnalysisScheme = "DeleteAnalysisScheme" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) DeleteAnalysisSchemeRequest(input *DeleteAnalysisSchemeInput) (req *request.Request, output *DeleteAnalysisSchemeOutput) { op := &request.Operation{ Name: opDeleteAnalysisScheme, @@ -530,17 +511,16 @@ func (c *CloudSearch) DeleteAnalysisSchemeRequest(input *DeleteAnalysisSchemeInp input = &DeleteAnalysisSchemeInput{} } - req = c.newRequest(op, input, output) output = &DeleteAnalysisSchemeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DeleteAnalysisScheme API operation for Amazon CloudSearch. // // Deletes an analysis scheme. For more information, see Configuring Analysis -// Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html) +// in the Amazon CloudSearch Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -550,18 +530,17 @@ func (c *CloudSearch) DeleteAnalysisSchemeRequest(input *DeleteAnalysisSchemeInp // API operation DeleteAnalysisScheme for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * InvalidType +// * ErrCodeInvalidTypeException "InvalidType" // The request was rejected because it specified an invalid type definition. // -// * ResourceNotFound +// * ErrCodeResourceNotFoundException "ResourceNotFound" // The request was rejected because it attempted to reference a resource that // does not exist. // @@ -596,7 +575,6 @@ const opDeleteDomain = "DeleteDomain" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) DeleteDomainRequest(input *DeleteDomainInput) (req *request.Request, output *DeleteDomainOutput) { op := &request.Operation{ Name: opDeleteDomain, @@ -608,9 +586,8 @@ func (c *CloudSearch) DeleteDomainRequest(input *DeleteDomainInput) (req *reques input = &DeleteDomainInput{} } - req = c.newRequest(op, input, output) output = &DeleteDomainOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -618,8 +595,8 @@ func (c *CloudSearch) DeleteDomainRequest(input *DeleteDomainInput) (req *reques // // Permanently deletes a search domain and all of its data. Once a domain has // been deleted, it cannot be recovered. For more information, see Deleting -// a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/deleting-domains.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/deleting-domains.html) +// in the Amazon CloudSearch Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -629,13 +606,12 @@ func (c *CloudSearch) DeleteDomainRequest(input *DeleteDomainInput) (req *reques // API operation DeleteDomain for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // func (c *CloudSearch) DeleteDomain(input *DeleteDomainInput) (*DeleteDomainOutput, error) { req, out := c.DeleteDomainRequest(input) @@ -668,7 +644,6 @@ const opDeleteExpression = "DeleteExpression" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) DeleteExpressionRequest(input *DeleteExpressionInput) (req *request.Request, output *DeleteExpressionOutput) { op := &request.Operation{ Name: opDeleteExpression, @@ -680,17 +655,16 @@ func (c *CloudSearch) DeleteExpressionRequest(input *DeleteExpressionInput) (req input = &DeleteExpressionInput{} } - req = c.newRequest(op, input, output) output = &DeleteExpressionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DeleteExpression API operation for Amazon CloudSearch. // // Removes an Expression from the search domain. For more information, see Configuring -// Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html) +// in the Amazon CloudSearch Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -700,18 +674,17 @@ func (c *CloudSearch) DeleteExpressionRequest(input *DeleteExpressionInput) (req // API operation DeleteExpression for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * InvalidType +// * ErrCodeInvalidTypeException "InvalidType" // The request was rejected because it specified an invalid type definition. // -// * ResourceNotFound +// * ErrCodeResourceNotFoundException "ResourceNotFound" // The request was rejected because it attempted to reference a resource that // does not exist. // @@ -746,7 +719,6 @@ const opDeleteIndexField = "DeleteIndexField" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) DeleteIndexFieldRequest(input *DeleteIndexFieldInput) (req *request.Request, output *DeleteIndexFieldOutput) { op := &request.Operation{ Name: opDeleteIndexField, @@ -758,17 +730,16 @@ func (c *CloudSearch) DeleteIndexFieldRequest(input *DeleteIndexFieldInput) (req input = &DeleteIndexFieldInput{} } - req = c.newRequest(op, input, output) output = &DeleteIndexFieldOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DeleteIndexField API operation for Amazon CloudSearch. // // Removes an IndexField from the search domain. For more information, see Configuring -// Index Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// Index Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html) +// in the Amazon CloudSearch Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -778,18 +749,17 @@ func (c *CloudSearch) DeleteIndexFieldRequest(input *DeleteIndexFieldInput) (req // API operation DeleteIndexField for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * InvalidType +// * ErrCodeInvalidTypeException "InvalidType" // The request was rejected because it specified an invalid type definition. // -// * ResourceNotFound +// * ErrCodeResourceNotFoundException "ResourceNotFound" // The request was rejected because it attempted to reference a resource that // does not exist. // @@ -824,7 +794,6 @@ const opDeleteSuggester = "DeleteSuggester" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) DeleteSuggesterRequest(input *DeleteSuggesterInput) (req *request.Request, output *DeleteSuggesterOutput) { op := &request.Operation{ Name: opDeleteSuggester, @@ -836,17 +805,16 @@ func (c *CloudSearch) DeleteSuggesterRequest(input *DeleteSuggesterInput) (req * input = &DeleteSuggesterInput{} } - req = c.newRequest(op, input, output) output = &DeleteSuggesterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DeleteSuggester API operation for Amazon CloudSearch. // // Deletes a suggester. For more information, see Getting Search Suggestions -// (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html) +// in the Amazon CloudSearch Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -856,18 +824,17 @@ func (c *CloudSearch) DeleteSuggesterRequest(input *DeleteSuggesterInput) (req * // API operation DeleteSuggester for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * InvalidType +// * ErrCodeInvalidTypeException "InvalidType" // The request was rejected because it specified an invalid type definition. // -// * ResourceNotFound +// * ErrCodeResourceNotFoundException "ResourceNotFound" // The request was rejected because it attempted to reference a resource that // does not exist. // @@ -902,7 +869,6 @@ const opDescribeAnalysisSchemes = "DescribeAnalysisSchemes" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) DescribeAnalysisSchemesRequest(input *DescribeAnalysisSchemesInput) (req *request.Request, output *DescribeAnalysisSchemesOutput) { op := &request.Operation{ Name: opDescribeAnalysisSchemes, @@ -914,9 +880,8 @@ func (c *CloudSearch) DescribeAnalysisSchemesRequest(input *DescribeAnalysisSche input = &DescribeAnalysisSchemesInput{} } - req = c.newRequest(op, input, output) output = &DescribeAnalysisSchemesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -927,8 +892,8 @@ func (c *CloudSearch) DescribeAnalysisSchemesRequest(input *DescribeAnalysisSche // to specific analysis schemes by name. By default, shows all analysis schemes // and includes any pending changes to the configuration. Set the Deployed option // to true to show the active configuration and exclude pending changes. For -// more information, see Configuring Analysis Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// more information, see Configuring Analysis Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html) +// in the Amazon CloudSearch Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -938,15 +903,14 @@ func (c *CloudSearch) DescribeAnalysisSchemesRequest(input *DescribeAnalysisSche // API operation DescribeAnalysisSchemes for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * ResourceNotFound +// * ErrCodeResourceNotFoundException "ResourceNotFound" // The request was rejected because it attempted to reference a resource that // does not exist. // @@ -981,7 +945,6 @@ const opDescribeAvailabilityOptions = "DescribeAvailabilityOptions" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) DescribeAvailabilityOptionsRequest(input *DescribeAvailabilityOptionsInput) (req *request.Request, output *DescribeAvailabilityOptionsOutput) { op := &request.Operation{ Name: opDescribeAvailabilityOptions, @@ -993,9 +956,8 @@ func (c *CloudSearch) DescribeAvailabilityOptionsRequest(input *DescribeAvailabi input = &DescribeAvailabilityOptionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeAvailabilityOptionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1004,8 +966,8 @@ func (c *CloudSearch) DescribeAvailabilityOptionsRequest(input *DescribeAvailabi // Gets the availability options configured for a domain. By default, shows // the configuration with any pending changes. Set the Deployed option to true // to show the active configuration and exclude pending changes. For more information, -// see Configuring Availability Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// see Configuring Availability Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html) +// in the Amazon CloudSearch Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1015,25 +977,24 @@ func (c *CloudSearch) DescribeAvailabilityOptionsRequest(input *DescribeAvailabi // API operation DescribeAvailabilityOptions for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * InvalidType +// * ErrCodeInvalidTypeException "InvalidType" // The request was rejected because it specified an invalid type definition. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because a resource limit has already been met. // -// * ResourceNotFound +// * ErrCodeResourceNotFoundException "ResourceNotFound" // The request was rejected because it attempted to reference a resource that // does not exist. // -// * DisabledAction +// * ErrCodeDisabledOperationException "DisabledAction" // The request was rejected because it attempted an operation which is not enabled. // func (c *CloudSearch) DescribeAvailabilityOptions(input *DescribeAvailabilityOptionsInput) (*DescribeAvailabilityOptionsOutput, error) { @@ -1067,7 +1028,6 @@ const opDescribeDomains = "DescribeDomains" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) DescribeDomainsRequest(input *DescribeDomainsInput) (req *request.Request, output *DescribeDomainsOutput) { op := &request.Operation{ Name: opDescribeDomains, @@ -1079,9 +1039,8 @@ func (c *CloudSearch) DescribeDomainsRequest(input *DescribeDomainsInput) (req * input = &DescribeDomainsInput{} } - req = c.newRequest(op, input, output) output = &DescribeDomainsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1090,9 +1049,9 @@ func (c *CloudSearch) DescribeDomainsRequest(input *DescribeDomainsInput) (req * // Gets information about the search domains owned by this account. Can be limited // to specific domains. Shows all domains by default. To get the number of searchable // documents in a domain, use the console or submit a matchall request to your -// domain's search endpoint: q=matchall&q.parser=structured&size=0. -// For more information, see Getting Information about a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// domain's search endpoint: q=matchall&q.parser=structured&size=0. +// For more information, see Getting Information about a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html) +// in the Amazon CloudSearch Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1102,13 +1061,12 @@ func (c *CloudSearch) DescribeDomainsRequest(input *DescribeDomainsInput) (req * // API operation DescribeDomains for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // func (c *CloudSearch) DescribeDomains(input *DescribeDomainsInput) (*DescribeDomainsOutput, error) { req, out := c.DescribeDomainsRequest(input) @@ -1141,7 +1099,6 @@ const opDescribeExpressions = "DescribeExpressions" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) DescribeExpressionsRequest(input *DescribeExpressionsInput) (req *request.Request, output *DescribeExpressionsOutput) { op := &request.Operation{ Name: opDescribeExpressions, @@ -1153,9 +1110,8 @@ func (c *CloudSearch) DescribeExpressionsRequest(input *DescribeExpressionsInput input = &DescribeExpressionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeExpressionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1165,8 +1121,8 @@ func (c *CloudSearch) DescribeExpressionsRequest(input *DescribeExpressionsInput // specific expressions by name. By default, shows all expressions and includes // any pending changes to the configuration. Set the Deployed option to true // to show the active configuration and exclude pending changes. For more information, -// see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html) +// in the Amazon CloudSearch Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1176,15 +1132,14 @@ func (c *CloudSearch) DescribeExpressionsRequest(input *DescribeExpressionsInput // API operation DescribeExpressions for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * ResourceNotFound +// * ErrCodeResourceNotFoundException "ResourceNotFound" // The request was rejected because it attempted to reference a resource that // does not exist. // @@ -1219,7 +1174,6 @@ const opDescribeIndexFields = "DescribeIndexFields" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) DescribeIndexFieldsRequest(input *DescribeIndexFieldsInput) (req *request.Request, output *DescribeIndexFieldsOutput) { op := &request.Operation{ Name: opDescribeIndexFields, @@ -1231,9 +1185,8 @@ func (c *CloudSearch) DescribeIndexFieldsRequest(input *DescribeIndexFieldsInput input = &DescribeIndexFieldsInput{} } - req = c.newRequest(op, input, output) output = &DescribeIndexFieldsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1243,8 +1196,8 @@ func (c *CloudSearch) DescribeIndexFieldsRequest(input *DescribeIndexFieldsInput // Can be limited to specific fields by name. By default, shows all fields and // includes any pending changes to the configuration. Set the Deployed option // to true to show the active configuration and exclude pending changes. For -// more information, see Getting Domain Information (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// more information, see Getting Domain Information (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html) +// in the Amazon CloudSearch Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1254,15 +1207,14 @@ func (c *CloudSearch) DescribeIndexFieldsRequest(input *DescribeIndexFieldsInput // API operation DescribeIndexFields for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * ResourceNotFound +// * ErrCodeResourceNotFoundException "ResourceNotFound" // The request was rejected because it attempted to reference a resource that // does not exist. // @@ -1297,7 +1249,6 @@ const opDescribeScalingParameters = "DescribeScalingParameters" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) DescribeScalingParametersRequest(input *DescribeScalingParametersInput) (req *request.Request, output *DescribeScalingParametersOutput) { op := &request.Operation{ Name: opDescribeScalingParameters, @@ -1309,9 +1260,8 @@ func (c *CloudSearch) DescribeScalingParametersRequest(input *DescribeScalingPar input = &DescribeScalingParametersInput{} } - req = c.newRequest(op, input, output) output = &DescribeScalingParametersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1319,8 +1269,8 @@ func (c *CloudSearch) DescribeScalingParametersRequest(input *DescribeScalingPar // // Gets the scaling parameters configured for a domain. A domain's scaling parameters // specify the desired search instance type and replication count. For more -// information, see Configuring Scaling Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// information, see Configuring Scaling Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html) +// in the Amazon CloudSearch Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1330,15 +1280,14 @@ func (c *CloudSearch) DescribeScalingParametersRequest(input *DescribeScalingPar // API operation DescribeScalingParameters for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * ResourceNotFound +// * ErrCodeResourceNotFoundException "ResourceNotFound" // The request was rejected because it attempted to reference a resource that // does not exist. // @@ -1373,7 +1322,6 @@ const opDescribeServiceAccessPolicies = "DescribeServiceAccessPolicies" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) DescribeServiceAccessPoliciesRequest(input *DescribeServiceAccessPoliciesInput) (req *request.Request, output *DescribeServiceAccessPoliciesOutput) { op := &request.Operation{ Name: opDescribeServiceAccessPolicies, @@ -1385,9 +1333,8 @@ func (c *CloudSearch) DescribeServiceAccessPoliciesRequest(input *DescribeServic input = &DescribeServiceAccessPoliciesInput{} } - req = c.newRequest(op, input, output) output = &DescribeServiceAccessPoliciesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1397,8 +1344,8 @@ func (c *CloudSearch) DescribeServiceAccessPoliciesRequest(input *DescribeServic // document and search endpoints. By default, shows the configuration with any // pending changes. Set the Deployed option to true to show the active configuration // and exclude pending changes. For more information, see Configuring Access -// for a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// for a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html) +// in the Amazon CloudSearch Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1408,15 +1355,14 @@ func (c *CloudSearch) DescribeServiceAccessPoliciesRequest(input *DescribeServic // API operation DescribeServiceAccessPolicies for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * ResourceNotFound +// * ErrCodeResourceNotFoundException "ResourceNotFound" // The request was rejected because it attempted to reference a resource that // does not exist. // @@ -1451,7 +1397,6 @@ const opDescribeSuggesters = "DescribeSuggesters" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) DescribeSuggestersRequest(input *DescribeSuggestersInput) (req *request.Request, output *DescribeSuggestersOutput) { op := &request.Operation{ Name: opDescribeSuggesters, @@ -1463,9 +1408,8 @@ func (c *CloudSearch) DescribeSuggestersRequest(input *DescribeSuggestersInput) input = &DescribeSuggestersInput{} } - req = c.newRequest(op, input, output) output = &DescribeSuggestersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1476,8 +1420,8 @@ func (c *CloudSearch) DescribeSuggestersRequest(input *DescribeSuggestersInput) // to specific suggesters by name. By default, shows all suggesters and includes // any pending changes to the configuration. Set the Deployed option to true // to show the active configuration and exclude pending changes. For more information, -// see Getting Search Suggestions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// see Getting Search Suggestions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html) +// in the Amazon CloudSearch Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1487,15 +1431,14 @@ func (c *CloudSearch) DescribeSuggestersRequest(input *DescribeSuggestersInput) // API operation DescribeSuggesters for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * ResourceNotFound +// * ErrCodeResourceNotFoundException "ResourceNotFound" // The request was rejected because it attempted to reference a resource that // does not exist. // @@ -1530,7 +1473,6 @@ const opIndexDocuments = "IndexDocuments" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) IndexDocumentsRequest(input *IndexDocumentsInput) (req *request.Request, output *IndexDocumentsOutput) { op := &request.Operation{ Name: opIndexDocuments, @@ -1542,9 +1484,8 @@ func (c *CloudSearch) IndexDocumentsRequest(input *IndexDocumentsInput) (req *re input = &IndexDocumentsInput{} } - req = c.newRequest(op, input, output) output = &IndexDocumentsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1562,15 +1503,14 @@ func (c *CloudSearch) IndexDocumentsRequest(input *IndexDocumentsInput) (req *re // API operation IndexDocuments for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * ResourceNotFound +// * ErrCodeResourceNotFoundException "ResourceNotFound" // The request was rejected because it attempted to reference a resource that // does not exist. // @@ -1605,7 +1545,6 @@ const opListDomainNames = "ListDomainNames" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) ListDomainNamesRequest(input *ListDomainNamesInput) (req *request.Request, output *ListDomainNamesOutput) { op := &request.Operation{ Name: opListDomainNames, @@ -1617,9 +1556,8 @@ func (c *CloudSearch) ListDomainNamesRequest(input *ListDomainNamesInput) (req * input = &ListDomainNamesInput{} } - req = c.newRequest(op, input, output) output = &ListDomainNamesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1635,7 +1573,7 @@ func (c *CloudSearch) ListDomainNamesRequest(input *ListDomainNamesInput) (req * // API operation ListDomainNames for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // func (c *CloudSearch) ListDomainNames(input *ListDomainNamesInput) (*ListDomainNamesOutput, error) { @@ -1669,7 +1607,6 @@ const opUpdateAvailabilityOptions = "UpdateAvailabilityOptions" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) UpdateAvailabilityOptionsRequest(input *UpdateAvailabilityOptionsInput) (req *request.Request, output *UpdateAvailabilityOptionsOutput) { op := &request.Operation{ Name: opUpdateAvailabilityOptions, @@ -1681,9 +1618,8 @@ func (c *CloudSearch) UpdateAvailabilityOptionsRequest(input *UpdateAvailability input = &UpdateAvailabilityOptionsInput{} } - req = c.newRequest(op, input, output) output = &UpdateAvailabilityOptionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1693,8 +1629,8 @@ func (c *CloudSearch) UpdateAvailabilityOptionsRequest(input *UpdateAvailability // expands an Amazon CloudSearch domain to an additional Availability Zone in // the same Region to increase fault tolerance in the event of a service disruption. // Changes to the Multi-AZ option can take about half an hour to become active. -// For more information, see Configuring Availability Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// For more information, see Configuring Availability Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html) +// in the Amazon CloudSearch Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1704,25 +1640,24 @@ func (c *CloudSearch) UpdateAvailabilityOptionsRequest(input *UpdateAvailability // API operation UpdateAvailabilityOptions for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * InvalidType +// * ErrCodeInvalidTypeException "InvalidType" // The request was rejected because it specified an invalid type definition. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because a resource limit has already been met. // -// * ResourceNotFound +// * ErrCodeResourceNotFoundException "ResourceNotFound" // The request was rejected because it attempted to reference a resource that // does not exist. // -// * DisabledAction +// * ErrCodeDisabledOperationException "DisabledAction" // The request was rejected because it attempted an operation which is not enabled. // func (c *CloudSearch) UpdateAvailabilityOptions(input *UpdateAvailabilityOptionsInput) (*UpdateAvailabilityOptionsOutput, error) { @@ -1756,7 +1691,6 @@ const opUpdateScalingParameters = "UpdateScalingParameters" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) UpdateScalingParametersRequest(input *UpdateScalingParametersInput) (req *request.Request, output *UpdateScalingParametersOutput) { op := &request.Operation{ Name: opUpdateScalingParameters, @@ -1768,9 +1702,8 @@ func (c *CloudSearch) UpdateScalingParametersRequest(input *UpdateScalingParamet input = &UpdateScalingParametersInput{} } - req = c.newRequest(op, input, output) output = &UpdateScalingParametersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1782,8 +1715,8 @@ func (c *CloudSearch) UpdateScalingParametersRequest(input *UpdateScalingParamet // traffic, but not below the desired instance type and replication count. If // the Multi-AZ option is enabled, these values control the resources used per // Availability Zone. For more information, see Configuring Scaling Options -// (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html) +// in the Amazon CloudSearch Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1793,22 +1726,21 @@ func (c *CloudSearch) UpdateScalingParametersRequest(input *UpdateScalingParamet // API operation UpdateScalingParameters for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because a resource limit has already been met. // -// * ResourceNotFound +// * ErrCodeResourceNotFoundException "ResourceNotFound" // The request was rejected because it attempted to reference a resource that // does not exist. // -// * InvalidType +// * ErrCodeInvalidTypeException "InvalidType" // The request was rejected because it specified an invalid type definition. // func (c *CloudSearch) UpdateScalingParameters(input *UpdateScalingParametersInput) (*UpdateScalingParametersOutput, error) { @@ -1842,7 +1774,6 @@ const opUpdateServiceAccessPolicies = "UpdateServiceAccessPolicies" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearch) UpdateServiceAccessPoliciesRequest(input *UpdateServiceAccessPoliciesInput) (req *request.Request, output *UpdateServiceAccessPoliciesOutput) { op := &request.Operation{ Name: opUpdateServiceAccessPolicies, @@ -1854,9 +1785,8 @@ func (c *CloudSearch) UpdateServiceAccessPoliciesRequest(input *UpdateServiceAcc input = &UpdateServiceAccessPoliciesInput{} } - req = c.newRequest(op, input, output) output = &UpdateServiceAccessPoliciesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1864,8 +1794,7 @@ func (c *CloudSearch) UpdateServiceAccessPoliciesRequest(input *UpdateServiceAcc // // Configures the access rules that control access to the domain's document // and search endpoints. For more information, see Configuring Access for an -// Amazon CloudSearch Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" -// target="_blank). +// Amazon CloudSearch Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1875,22 +1804,21 @@ func (c *CloudSearch) UpdateServiceAccessPoliciesRequest(input *UpdateServiceAcc // API operation UpdateServiceAccessPolicies for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An internal error occurred while processing the request. If this problem -// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" -// target="_blank). +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because a resource limit has already been met. // -// * ResourceNotFound +// * ErrCodeResourceNotFoundException "ResourceNotFound" // The request was rejected because it attempted to reference a resource that // does not exist. // -// * InvalidType +// * ErrCodeInvalidTypeException "InvalidType" // The request was rejected because it specified an invalid type definition. // func (c *CloudSearch) UpdateServiceAccessPolicies(input *UpdateServiceAccessPoliciesInput) (*UpdateServiceAccessPoliciesOutput, error) { @@ -1905,9 +1833,9 @@ type AccessPoliciesStatus struct { _ struct{} `type:"structure"` // Access rules for a domain's document or search service endpoints. For more - // information, see Configuring Access for a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" - // target="_blank) in the Amazon CloudSearch Developer Guide. The maximum size - // of a policy document is 100 KB. + // information, see Configuring Access for a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html) + // in the Amazon CloudSearch Developer Guide. The maximum size of a policy document + // is 100 KB. // // Options is a required field Options *string `type:"string" required:"true"` @@ -1928,6 +1856,18 @@ func (s AccessPoliciesStatus) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *AccessPoliciesStatus) SetOptions(v string) *AccessPoliciesStatus { + s.Options = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *AccessPoliciesStatus) SetStatus(v *OptionStatus) *AccessPoliciesStatus { + s.Status = v + return s +} + // Synonyms, stopwords, and stemming options for an analysis scheme. Includes // tokenization dictionary for Japanese. type AnalysisOptions struct { @@ -1935,8 +1875,8 @@ type AnalysisOptions struct { // The level of algorithmic stemming to perform: none, minimal, light, or full. // The available levels vary depending on the language. For more information, - // see Language Specific Text Processing Settings (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/text-processing.html#text-processing-settings" - // target="_blank) in the Amazon CloudSearch Developer Guide + // see Language Specific Text Processing Settings (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/text-processing.html#text-processing-settings) + // in the Amazon CloudSearch Developer Guide AlgorithmicStemming *string `type:"string" enum:"AlgorithmicStemming"` // A JSON array that contains a collection of terms, tokens, readings and part @@ -1980,6 +1920,36 @@ func (s AnalysisOptions) GoString() string { return s.String() } +// SetAlgorithmicStemming sets the AlgorithmicStemming field's value. +func (s *AnalysisOptions) SetAlgorithmicStemming(v string) *AnalysisOptions { + s.AlgorithmicStemming = &v + return s +} + +// SetJapaneseTokenizationDictionary sets the JapaneseTokenizationDictionary field's value. +func (s *AnalysisOptions) SetJapaneseTokenizationDictionary(v string) *AnalysisOptions { + s.JapaneseTokenizationDictionary = &v + return s +} + +// SetStemmingDictionary sets the StemmingDictionary field's value. +func (s *AnalysisOptions) SetStemmingDictionary(v string) *AnalysisOptions { + s.StemmingDictionary = &v + return s +} + +// SetStopwords sets the Stopwords field's value. +func (s *AnalysisOptions) SetStopwords(v string) *AnalysisOptions { + s.Stopwords = &v + return s +} + +// SetSynonyms sets the Synonyms field's value. +func (s *AnalysisOptions) SetSynonyms(v string) *AnalysisOptions { + s.Synonyms = &v + return s +} + // Configuration information for an analysis scheme. Each analysis scheme has // a unique name and specifies the language of the text to be processed. The // following options can be configured for an analysis scheme: Synonyms, Stopwords, @@ -1991,8 +1961,8 @@ type AnalysisScheme struct { // tokenization dictionary for Japanese. AnalysisOptions *AnalysisOptions `type:"structure"` - // An IETF RFC 4646 (http://tools.ietf.org/html/rfc4646" target="_blank) language - // code or mul for multiple languages. + // An IETF RFC 4646 (http://tools.ietf.org/html/rfc4646) language code or mul + // for multiple languages. // // AnalysisSchemeLanguage is a required field AnalysisSchemeLanguage *string `type:"string" required:"true" enum:"AnalysisSchemeLanguage"` @@ -2033,6 +2003,24 @@ func (s *AnalysisScheme) Validate() error { return nil } +// SetAnalysisOptions sets the AnalysisOptions field's value. +func (s *AnalysisScheme) SetAnalysisOptions(v *AnalysisOptions) *AnalysisScheme { + s.AnalysisOptions = v + return s +} + +// SetAnalysisSchemeLanguage sets the AnalysisSchemeLanguage field's value. +func (s *AnalysisScheme) SetAnalysisSchemeLanguage(v string) *AnalysisScheme { + s.AnalysisSchemeLanguage = &v + return s +} + +// SetAnalysisSchemeName sets the AnalysisSchemeName field's value. +func (s *AnalysisScheme) SetAnalysisSchemeName(v string) *AnalysisScheme { + s.AnalysisSchemeName = &v + return s +} + // The status and configuration of an AnalysisScheme. type AnalysisSchemeStatus struct { _ struct{} `type:"structure"` @@ -2061,6 +2049,18 @@ func (s AnalysisSchemeStatus) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *AnalysisSchemeStatus) SetOptions(v *AnalysisScheme) *AnalysisSchemeStatus { + s.Options = v + return s +} + +// SetStatus sets the Status field's value. +func (s *AnalysisSchemeStatus) SetStatus(v *OptionStatus) *AnalysisSchemeStatus { + s.Status = v + return s +} + // The status and configuration of the domain's availability options. type AvailabilityOptionsStatus struct { _ struct{} `type:"structure"` @@ -2086,6 +2086,18 @@ func (s AvailabilityOptionsStatus) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *AvailabilityOptionsStatus) SetOptions(v bool) *AvailabilityOptionsStatus { + s.Options = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *AvailabilityOptionsStatus) SetStatus(v *OptionStatus) *AvailabilityOptionsStatus { + s.Status = v + return s +} + // Container for the parameters to the BuildSuggester operation. Specifies the // name of the domain you want to update. type BuildSuggestersInput struct { @@ -2126,6 +2138,12 @@ func (s *BuildSuggestersInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *BuildSuggestersInput) SetDomainName(v string) *BuildSuggestersInput { + s.DomainName = &v + return s +} + // The result of a BuildSuggester request. Contains a list of the fields used // for suggestions. type BuildSuggestersOutput struct { @@ -2145,6 +2163,12 @@ func (s BuildSuggestersOutput) GoString() string { return s.String() } +// SetFieldNames sets the FieldNames field's value. +func (s *BuildSuggestersOutput) SetFieldNames(v []*string) *BuildSuggestersOutput { + s.FieldNames = v + return s +} + // Container for the parameters to the CreateDomain operation. Specifies a name // for the new search domain. type CreateDomainInput struct { @@ -2184,6 +2208,12 @@ func (s *CreateDomainInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *CreateDomainInput) SetDomainName(v string) *CreateDomainInput { + s.DomainName = &v + return s +} + // The result of a CreateDomainRequest. Contains the status of a newly created // domain. type CreateDomainOutput struct { @@ -2203,6 +2233,12 @@ func (s CreateDomainOutput) GoString() string { return s.String() } +// SetDomainStatus sets the DomainStatus field's value. +func (s *CreateDomainOutput) SetDomainStatus(v *DomainStatus) *CreateDomainOutput { + s.DomainStatus = v + return s +} + // Options for a field that contains an array of dates. Present if IndexFieldType // specifies the field is of type date-array. All options are enabled by default. type DateArrayOptions struct { @@ -2234,6 +2270,36 @@ func (s DateArrayOptions) GoString() string { return s.String() } +// SetDefaultValue sets the DefaultValue field's value. +func (s *DateArrayOptions) SetDefaultValue(v string) *DateArrayOptions { + s.DefaultValue = &v + return s +} + +// SetFacetEnabled sets the FacetEnabled field's value. +func (s *DateArrayOptions) SetFacetEnabled(v bool) *DateArrayOptions { + s.FacetEnabled = &v + return s +} + +// SetReturnEnabled sets the ReturnEnabled field's value. +func (s *DateArrayOptions) SetReturnEnabled(v bool) *DateArrayOptions { + s.ReturnEnabled = &v + return s +} + +// SetSearchEnabled sets the SearchEnabled field's value. +func (s *DateArrayOptions) SetSearchEnabled(v bool) *DateArrayOptions { + s.SearchEnabled = &v + return s +} + +// SetSourceFields sets the SourceFields field's value. +func (s *DateArrayOptions) SetSourceFields(v string) *DateArrayOptions { + s.SourceFields = &v + return s +} + // Options for a date field. Dates and times are specified in UTC (Coordinated // Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present // if IndexFieldType specifies the field is of type date. All options are enabled @@ -2296,6 +2362,42 @@ func (s *DateOptions) Validate() error { return nil } +// SetDefaultValue sets the DefaultValue field's value. +func (s *DateOptions) SetDefaultValue(v string) *DateOptions { + s.DefaultValue = &v + return s +} + +// SetFacetEnabled sets the FacetEnabled field's value. +func (s *DateOptions) SetFacetEnabled(v bool) *DateOptions { + s.FacetEnabled = &v + return s +} + +// SetReturnEnabled sets the ReturnEnabled field's value. +func (s *DateOptions) SetReturnEnabled(v bool) *DateOptions { + s.ReturnEnabled = &v + return s +} + +// SetSearchEnabled sets the SearchEnabled field's value. +func (s *DateOptions) SetSearchEnabled(v bool) *DateOptions { + s.SearchEnabled = &v + return s +} + +// SetSortEnabled sets the SortEnabled field's value. +func (s *DateOptions) SetSortEnabled(v bool) *DateOptions { + s.SortEnabled = &v + return s +} + +// SetSourceField sets the SourceField field's value. +func (s *DateOptions) SetSourceField(v string) *DateOptions { + s.SourceField = &v + return s +} + // Container for the parameters to the DefineAnalysisScheme operation. Specifies // the name of the domain you want to update and the analysis scheme configuration. type DefineAnalysisSchemeInput struct { @@ -2352,6 +2454,18 @@ func (s *DefineAnalysisSchemeInput) Validate() error { return nil } +// SetAnalysisScheme sets the AnalysisScheme field's value. +func (s *DefineAnalysisSchemeInput) SetAnalysisScheme(v *AnalysisScheme) *DefineAnalysisSchemeInput { + s.AnalysisScheme = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DefineAnalysisSchemeInput) SetDomainName(v string) *DefineAnalysisSchemeInput { + s.DomainName = &v + return s +} + // The result of a DefineAnalysisScheme request. Contains the status of the // newly-configured analysis scheme. type DefineAnalysisSchemeOutput struct { @@ -2373,6 +2487,12 @@ func (s DefineAnalysisSchemeOutput) GoString() string { return s.String() } +// SetAnalysisScheme sets the AnalysisScheme field's value. +func (s *DefineAnalysisSchemeOutput) SetAnalysisScheme(v *AnalysisSchemeStatus) *DefineAnalysisSchemeOutput { + s.AnalysisScheme = v + return s +} + // Container for the parameters to the DefineExpression operation. Specifies // the name of the domain you want to update and the expression you want to // configure. @@ -2429,6 +2549,18 @@ func (s *DefineExpressionInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DefineExpressionInput) SetDomainName(v string) *DefineExpressionInput { + s.DomainName = &v + return s +} + +// SetExpression sets the Expression field's value. +func (s *DefineExpressionInput) SetExpression(v *Expression) *DefineExpressionInput { + s.Expression = v + return s +} + // The result of a DefineExpression request. Contains the status of the newly-configured // expression. type DefineExpressionOutput struct { @@ -2450,6 +2582,12 @@ func (s DefineExpressionOutput) GoString() string { return s.String() } +// SetExpression sets the Expression field's value. +func (s *DefineExpressionOutput) SetExpression(v *ExpressionStatus) *DefineExpressionOutput { + s.Expression = v + return s +} + // Container for the parameters to the DefineIndexField operation. Specifies // the name of the domain you want to update and the index field configuration. type DefineIndexFieldInput struct { @@ -2503,6 +2641,18 @@ func (s *DefineIndexFieldInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DefineIndexFieldInput) SetDomainName(v string) *DefineIndexFieldInput { + s.DomainName = &v + return s +} + +// SetIndexField sets the IndexField field's value. +func (s *DefineIndexFieldInput) SetIndexField(v *IndexField) *DefineIndexFieldInput { + s.IndexField = v + return s +} + // The result of a DefineIndexField request. Contains the status of the newly-configured // index field. type DefineIndexFieldOutput struct { @@ -2524,6 +2674,12 @@ func (s DefineIndexFieldOutput) GoString() string { return s.String() } +// SetIndexField sets the IndexField field's value. +func (s *DefineIndexFieldOutput) SetIndexField(v *IndexFieldStatus) *DefineIndexFieldOutput { + s.IndexField = v + return s +} + // Container for the parameters to the DefineSuggester operation. Specifies // the name of the domain you want to update and the suggester configuration. type DefineSuggesterInput struct { @@ -2579,6 +2735,18 @@ func (s *DefineSuggesterInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DefineSuggesterInput) SetDomainName(v string) *DefineSuggesterInput { + s.DomainName = &v + return s +} + +// SetSuggester sets the Suggester field's value. +func (s *DefineSuggesterInput) SetSuggester(v *Suggester) *DefineSuggesterInput { + s.Suggester = v + return s +} + // The result of a DefineSuggester request. Contains the status of the newly-configured // suggester. type DefineSuggesterOutput struct { @@ -2600,6 +2768,12 @@ func (s DefineSuggesterOutput) GoString() string { return s.String() } +// SetSuggester sets the Suggester field's value. +func (s *DefineSuggesterOutput) SetSuggester(v *SuggesterStatus) *DefineSuggesterOutput { + s.Suggester = v + return s +} + // Container for the parameters to the DeleteAnalysisScheme operation. Specifies // the name of the domain you want to update and the analysis scheme you want // to delete. @@ -2652,6 +2826,18 @@ func (s *DeleteAnalysisSchemeInput) Validate() error { return nil } +// SetAnalysisSchemeName sets the AnalysisSchemeName field's value. +func (s *DeleteAnalysisSchemeInput) SetAnalysisSchemeName(v string) *DeleteAnalysisSchemeInput { + s.AnalysisSchemeName = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DeleteAnalysisSchemeInput) SetDomainName(v string) *DeleteAnalysisSchemeInput { + s.DomainName = &v + return s +} + // The result of a DeleteAnalysisScheme request. Contains the status of the // deleted analysis scheme. type DeleteAnalysisSchemeOutput struct { @@ -2673,6 +2859,12 @@ func (s DeleteAnalysisSchemeOutput) GoString() string { return s.String() } +// SetAnalysisScheme sets the AnalysisScheme field's value. +func (s *DeleteAnalysisSchemeOutput) SetAnalysisScheme(v *AnalysisSchemeStatus) *DeleteAnalysisSchemeOutput { + s.AnalysisScheme = v + return s +} + // Container for the parameters to the DeleteDomain operation. Specifies the // name of the domain you want to delete. type DeleteDomainInput struct { @@ -2710,6 +2902,12 @@ func (s *DeleteDomainInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DeleteDomainInput) SetDomainName(v string) *DeleteDomainInput { + s.DomainName = &v + return s +} + // The result of a DeleteDomain request. Contains the status of a newly deleted // domain, or no status if the domain has already been completely deleted. type DeleteDomainOutput struct { @@ -2729,6 +2927,12 @@ func (s DeleteDomainOutput) GoString() string { return s.String() } +// SetDomainStatus sets the DomainStatus field's value. +func (s *DeleteDomainOutput) SetDomainStatus(v *DomainStatus) *DeleteDomainOutput { + s.DomainStatus = v + return s +} + // Container for the parameters to the DeleteExpression operation. Specifies // the name of the domain you want to update and the name of the expression // you want to delete. @@ -2781,6 +2985,18 @@ func (s *DeleteExpressionInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DeleteExpressionInput) SetDomainName(v string) *DeleteExpressionInput { + s.DomainName = &v + return s +} + +// SetExpressionName sets the ExpressionName field's value. +func (s *DeleteExpressionInput) SetExpressionName(v string) *DeleteExpressionInput { + s.ExpressionName = &v + return s +} + // The result of a DeleteExpression request. Specifies the expression being // deleted. type DeleteExpressionOutput struct { @@ -2802,6 +3018,12 @@ func (s DeleteExpressionOutput) GoString() string { return s.String() } +// SetExpression sets the Expression field's value. +func (s *DeleteExpressionOutput) SetExpression(v *ExpressionStatus) *DeleteExpressionOutput { + s.Expression = v + return s +} + // Container for the parameters to the DeleteIndexField operation. Specifies // the name of the domain you want to update and the name of the index field // you want to delete. @@ -2855,6 +3077,18 @@ func (s *DeleteIndexFieldInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DeleteIndexFieldInput) SetDomainName(v string) *DeleteIndexFieldInput { + s.DomainName = &v + return s +} + +// SetIndexFieldName sets the IndexFieldName field's value. +func (s *DeleteIndexFieldInput) SetIndexFieldName(v string) *DeleteIndexFieldInput { + s.IndexFieldName = &v + return s +} + // The result of a DeleteIndexField request. type DeleteIndexFieldOutput struct { _ struct{} `type:"structure"` @@ -2875,6 +3109,12 @@ func (s DeleteIndexFieldOutput) GoString() string { return s.String() } +// SetIndexField sets the IndexField field's value. +func (s *DeleteIndexFieldOutput) SetIndexField(v *IndexFieldStatus) *DeleteIndexFieldOutput { + s.IndexField = v + return s +} + // Container for the parameters to the DeleteSuggester operation. Specifies // the name of the domain you want to update and name of the suggester you want // to delete. @@ -2927,6 +3167,18 @@ func (s *DeleteSuggesterInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DeleteSuggesterInput) SetDomainName(v string) *DeleteSuggesterInput { + s.DomainName = &v + return s +} + +// SetSuggesterName sets the SuggesterName field's value. +func (s *DeleteSuggesterInput) SetSuggesterName(v string) *DeleteSuggesterInput { + s.SuggesterName = &v + return s +} + // The result of a DeleteSuggester request. Contains the status of the deleted // suggester. type DeleteSuggesterOutput struct { @@ -2948,6 +3200,12 @@ func (s DeleteSuggesterOutput) GoString() string { return s.String() } +// SetSuggester sets the Suggester field's value. +func (s *DeleteSuggesterOutput) SetSuggester(v *SuggesterStatus) *DeleteSuggesterOutput { + s.Suggester = v + return s +} + // Container for the parameters to the DescribeAnalysisSchemes operation. Specifies // the name of the domain you want to describe. To limit the response to particular // analysis schemes, specify the names of the analysis schemes you want to describe. @@ -2995,6 +3253,24 @@ func (s *DescribeAnalysisSchemesInput) Validate() error { return nil } +// SetAnalysisSchemeNames sets the AnalysisSchemeNames field's value. +func (s *DescribeAnalysisSchemesInput) SetAnalysisSchemeNames(v []*string) *DescribeAnalysisSchemesInput { + s.AnalysisSchemeNames = v + return s +} + +// SetDeployed sets the Deployed field's value. +func (s *DescribeAnalysisSchemesInput) SetDeployed(v bool) *DescribeAnalysisSchemesInput { + s.Deployed = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DescribeAnalysisSchemesInput) SetDomainName(v string) *DescribeAnalysisSchemesInput { + s.DomainName = &v + return s +} + // The result of a DescribeAnalysisSchemes request. Contains the analysis schemes // configured for the domain specified in the request. type DescribeAnalysisSchemesOutput struct { @@ -3016,6 +3292,12 @@ func (s DescribeAnalysisSchemesOutput) GoString() string { return s.String() } +// SetAnalysisSchemes sets the AnalysisSchemes field's value. +func (s *DescribeAnalysisSchemesOutput) SetAnalysisSchemes(v []*AnalysisSchemeStatus) *DescribeAnalysisSchemesOutput { + s.AnalysisSchemes = v + return s +} + // Container for the parameters to the DescribeAvailabilityOptions operation. // Specifies the name of the domain you want to describe. To show the active // configuration and exclude any pending changes, set the Deployed option to @@ -3059,6 +3341,18 @@ func (s *DescribeAvailabilityOptionsInput) Validate() error { return nil } +// SetDeployed sets the Deployed field's value. +func (s *DescribeAvailabilityOptionsInput) SetDeployed(v bool) *DescribeAvailabilityOptionsInput { + s.Deployed = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DescribeAvailabilityOptionsInput) SetDomainName(v string) *DescribeAvailabilityOptionsInput { + s.DomainName = &v + return s +} + // The result of a DescribeAvailabilityOptions request. Indicates whether or // not the Multi-AZ option is enabled for the domain specified in the request. type DescribeAvailabilityOptionsOutput struct { @@ -3079,6 +3373,12 @@ func (s DescribeAvailabilityOptionsOutput) GoString() string { return s.String() } +// SetAvailabilityOptions sets the AvailabilityOptions field's value. +func (s *DescribeAvailabilityOptionsOutput) SetAvailabilityOptions(v *AvailabilityOptionsStatus) *DescribeAvailabilityOptionsOutput { + s.AvailabilityOptions = v + return s +} + // Container for the parameters to the DescribeDomains operation. By default // shows the status of all domains. To restrict the response to particular domains, // specify the names of the domains you want to describe. @@ -3099,6 +3399,12 @@ func (s DescribeDomainsInput) GoString() string { return s.String() } +// SetDomainNames sets the DomainNames field's value. +func (s *DescribeDomainsInput) SetDomainNames(v []*string) *DescribeDomainsInput { + s.DomainNames = v + return s +} + // The result of a DescribeDomains request. Contains the status of the domains // specified in the request or all domains owned by the account. type DescribeDomainsOutput struct { @@ -3120,6 +3426,12 @@ func (s DescribeDomainsOutput) GoString() string { return s.String() } +// SetDomainStatusList sets the DomainStatusList field's value. +func (s *DescribeDomainsOutput) SetDomainStatusList(v []*DomainStatus) *DescribeDomainsOutput { + s.DomainStatusList = v + return s +} + // Container for the parameters to the DescribeDomains operation. Specifies // the name of the domain you want to describe. To restrict the response to // particular expressions, specify the names of the expressions you want to @@ -3168,6 +3480,24 @@ func (s *DescribeExpressionsInput) Validate() error { return nil } +// SetDeployed sets the Deployed field's value. +func (s *DescribeExpressionsInput) SetDeployed(v bool) *DescribeExpressionsInput { + s.Deployed = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DescribeExpressionsInput) SetDomainName(v string) *DescribeExpressionsInput { + s.DomainName = &v + return s +} + +// SetExpressionNames sets the ExpressionNames field's value. +func (s *DescribeExpressionsInput) SetExpressionNames(v []*string) *DescribeExpressionsInput { + s.ExpressionNames = v + return s +} + // The result of a DescribeExpressions request. Contains the expressions configured // for the domain specified in the request. type DescribeExpressionsOutput struct { @@ -3189,6 +3519,12 @@ func (s DescribeExpressionsOutput) GoString() string { return s.String() } +// SetExpressions sets the Expressions field's value. +func (s *DescribeExpressionsOutput) SetExpressions(v []*ExpressionStatus) *DescribeExpressionsOutput { + s.Expressions = v + return s +} + // Container for the parameters to the DescribeIndexFields operation. Specifies // the name of the domain you want to describe. To restrict the response to // particular index fields, specify the names of the index fields you want to @@ -3237,6 +3573,24 @@ func (s *DescribeIndexFieldsInput) Validate() error { return nil } +// SetDeployed sets the Deployed field's value. +func (s *DescribeIndexFieldsInput) SetDeployed(v bool) *DescribeIndexFieldsInput { + s.Deployed = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DescribeIndexFieldsInput) SetDomainName(v string) *DescribeIndexFieldsInput { + s.DomainName = &v + return s +} + +// SetFieldNames sets the FieldNames field's value. +func (s *DescribeIndexFieldsInput) SetFieldNames(v []*string) *DescribeIndexFieldsInput { + s.FieldNames = v + return s +} + // The result of a DescribeIndexFields request. Contains the index fields configured // for the domain specified in the request. type DescribeIndexFieldsOutput struct { @@ -3258,6 +3612,12 @@ func (s DescribeIndexFieldsOutput) GoString() string { return s.String() } +// SetIndexFields sets the IndexFields field's value. +func (s *DescribeIndexFieldsOutput) SetIndexFields(v []*IndexFieldStatus) *DescribeIndexFieldsOutput { + s.IndexFields = v + return s +} + // Container for the parameters to the DescribeScalingParameters operation. // Specifies the name of the domain you want to describe. type DescribeScalingParametersInput struct { @@ -3298,6 +3658,12 @@ func (s *DescribeScalingParametersInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DescribeScalingParametersInput) SetDomainName(v string) *DescribeScalingParametersInput { + s.DomainName = &v + return s +} + // The result of a DescribeScalingParameters request. Contains the scaling parameters // configured for the domain specified in the request. type DescribeScalingParametersOutput struct { @@ -3319,6 +3685,12 @@ func (s DescribeScalingParametersOutput) GoString() string { return s.String() } +// SetScalingParameters sets the ScalingParameters field's value. +func (s *DescribeScalingParametersOutput) SetScalingParameters(v *ScalingParametersStatus) *DescribeScalingParametersOutput { + s.ScalingParameters = v + return s +} + // Container for the parameters to the DescribeServiceAccessPolicies operation. // Specifies the name of the domain you want to describe. To show the active // configuration and exclude any pending changes, set the Deployed option to @@ -3362,6 +3734,18 @@ func (s *DescribeServiceAccessPoliciesInput) Validate() error { return nil } +// SetDeployed sets the Deployed field's value. +func (s *DescribeServiceAccessPoliciesInput) SetDeployed(v bool) *DescribeServiceAccessPoliciesInput { + s.Deployed = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DescribeServiceAccessPoliciesInput) SetDomainName(v string) *DescribeServiceAccessPoliciesInput { + s.DomainName = &v + return s +} + // The result of a DescribeServiceAccessPolicies request. type DescribeServiceAccessPoliciesOutput struct { _ struct{} `type:"structure"` @@ -3382,6 +3766,12 @@ func (s DescribeServiceAccessPoliciesOutput) GoString() string { return s.String() } +// SetAccessPolicies sets the AccessPolicies field's value. +func (s *DescribeServiceAccessPoliciesOutput) SetAccessPolicies(v *AccessPoliciesStatus) *DescribeServiceAccessPoliciesOutput { + s.AccessPolicies = v + return s +} + // Container for the parameters to the DescribeSuggester operation. Specifies // the name of the domain you want to describe. To restrict the response to // particular suggesters, specify the names of the suggesters you want to describe. @@ -3429,6 +3819,24 @@ func (s *DescribeSuggestersInput) Validate() error { return nil } +// SetDeployed sets the Deployed field's value. +func (s *DescribeSuggestersInput) SetDeployed(v bool) *DescribeSuggestersInput { + s.Deployed = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DescribeSuggestersInput) SetDomainName(v string) *DescribeSuggestersInput { + s.DomainName = &v + return s +} + +// SetSuggesterNames sets the SuggesterNames field's value. +func (s *DescribeSuggestersInput) SetSuggesterNames(v []*string) *DescribeSuggestersInput { + s.SuggesterNames = v + return s +} + // The result of a DescribeSuggesters request. type DescribeSuggestersOutput struct { _ struct{} `type:"structure"` @@ -3449,6 +3857,12 @@ func (s DescribeSuggestersOutput) GoString() string { return s.String() } +// SetSuggesters sets the Suggesters field's value. +func (s *DescribeSuggestersOutput) SetSuggesters(v []*SuggesterStatus) *DescribeSuggestersOutput { + s.Suggesters = v + return s +} + // Options for a search suggester. type DocumentSuggesterOptions struct { _ struct{} `type:"structure"` @@ -3501,13 +3915,31 @@ func (s *DocumentSuggesterOptions) Validate() error { return nil } +// SetFuzzyMatching sets the FuzzyMatching field's value. +func (s *DocumentSuggesterOptions) SetFuzzyMatching(v string) *DocumentSuggesterOptions { + s.FuzzyMatching = &v + return s +} + +// SetSortExpression sets the SortExpression field's value. +func (s *DocumentSuggesterOptions) SetSortExpression(v string) *DocumentSuggesterOptions { + s.SortExpression = &v + return s +} + +// SetSourceField sets the SourceField field's value. +func (s *DocumentSuggesterOptions) SetSourceField(v string) *DocumentSuggesterOptions { + s.SourceField = &v + return s +} + // The current status of the search domain. type DomainStatus struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the search domain. See Identifiers for - // IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/index.html?Using_Identifiers.html" - // target="_blank) in Using AWS Identity and Access Management for more information. + // IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/index.html?Using_Identifiers.html) + // in Using AWS Identity and Access Management for more information. ARN *string `type:"string"` // True if the search domain is created. It can take several minutes to initialize @@ -3572,6 +4004,84 @@ func (s DomainStatus) GoString() string { return s.String() } +// SetARN sets the ARN field's value. +func (s *DomainStatus) SetARN(v string) *DomainStatus { + s.ARN = &v + return s +} + +// SetCreated sets the Created field's value. +func (s *DomainStatus) SetCreated(v bool) *DomainStatus { + s.Created = &v + return s +} + +// SetDeleted sets the Deleted field's value. +func (s *DomainStatus) SetDeleted(v bool) *DomainStatus { + s.Deleted = &v + return s +} + +// SetDocService sets the DocService field's value. +func (s *DomainStatus) SetDocService(v *ServiceEndpoint) *DomainStatus { + s.DocService = v + return s +} + +// SetDomainId sets the DomainId field's value. +func (s *DomainStatus) SetDomainId(v string) *DomainStatus { + s.DomainId = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DomainStatus) SetDomainName(v string) *DomainStatus { + s.DomainName = &v + return s +} + +// SetLimits sets the Limits field's value. +func (s *DomainStatus) SetLimits(v *Limits) *DomainStatus { + s.Limits = v + return s +} + +// SetProcessing sets the Processing field's value. +func (s *DomainStatus) SetProcessing(v bool) *DomainStatus { + s.Processing = &v + return s +} + +// SetRequiresIndexDocuments sets the RequiresIndexDocuments field's value. +func (s *DomainStatus) SetRequiresIndexDocuments(v bool) *DomainStatus { + s.RequiresIndexDocuments = &v + return s +} + +// SetSearchInstanceCount sets the SearchInstanceCount field's value. +func (s *DomainStatus) SetSearchInstanceCount(v int64) *DomainStatus { + s.SearchInstanceCount = &v + return s +} + +// SetSearchInstanceType sets the SearchInstanceType field's value. +func (s *DomainStatus) SetSearchInstanceType(v string) *DomainStatus { + s.SearchInstanceType = &v + return s +} + +// SetSearchPartitionCount sets the SearchPartitionCount field's value. +func (s *DomainStatus) SetSearchPartitionCount(v int64) *DomainStatus { + s.SearchPartitionCount = &v + return s +} + +// SetSearchService sets the SearchService field's value. +func (s *DomainStatus) SetSearchService(v *ServiceEndpoint) *DomainStatus { + s.SearchService = v + return s +} + // Options for a field that contains an array of double-precision 64-bit floating // point values. Present if IndexFieldType specifies the field is of type double-array. // All options are enabled by default. @@ -3604,6 +4114,36 @@ func (s DoubleArrayOptions) GoString() string { return s.String() } +// SetDefaultValue sets the DefaultValue field's value. +func (s *DoubleArrayOptions) SetDefaultValue(v float64) *DoubleArrayOptions { + s.DefaultValue = &v + return s +} + +// SetFacetEnabled sets the FacetEnabled field's value. +func (s *DoubleArrayOptions) SetFacetEnabled(v bool) *DoubleArrayOptions { + s.FacetEnabled = &v + return s +} + +// SetReturnEnabled sets the ReturnEnabled field's value. +func (s *DoubleArrayOptions) SetReturnEnabled(v bool) *DoubleArrayOptions { + s.ReturnEnabled = &v + return s +} + +// SetSearchEnabled sets the SearchEnabled field's value. +func (s *DoubleArrayOptions) SetSearchEnabled(v bool) *DoubleArrayOptions { + s.SearchEnabled = &v + return s +} + +// SetSourceFields sets the SourceFields field's value. +func (s *DoubleArrayOptions) SetSourceFields(v string) *DoubleArrayOptions { + s.SourceFields = &v + return s +} + // Options for a double-precision 64-bit floating point field. Present if IndexFieldType // specifies the field is of type double. All options are enabled by default. type DoubleOptions struct { @@ -3653,6 +4193,42 @@ func (s *DoubleOptions) Validate() error { return nil } +// SetDefaultValue sets the DefaultValue field's value. +func (s *DoubleOptions) SetDefaultValue(v float64) *DoubleOptions { + s.DefaultValue = &v + return s +} + +// SetFacetEnabled sets the FacetEnabled field's value. +func (s *DoubleOptions) SetFacetEnabled(v bool) *DoubleOptions { + s.FacetEnabled = &v + return s +} + +// SetReturnEnabled sets the ReturnEnabled field's value. +func (s *DoubleOptions) SetReturnEnabled(v bool) *DoubleOptions { + s.ReturnEnabled = &v + return s +} + +// SetSearchEnabled sets the SearchEnabled field's value. +func (s *DoubleOptions) SetSearchEnabled(v bool) *DoubleOptions { + s.SearchEnabled = &v + return s +} + +// SetSortEnabled sets the SortEnabled field's value. +func (s *DoubleOptions) SetSortEnabled(v bool) *DoubleOptions { + s.SortEnabled = &v + return s +} + +// SetSourceField sets the SourceField field's value. +func (s *DoubleOptions) SetSourceField(v string) *DoubleOptions { + s.SourceField = &v + return s +} + // A named expression that can be evaluated at search time. Can be used to sort // the search results, define other expressions, or return computed information // in the search results. @@ -3667,8 +4243,8 @@ type Expression struct { // The expression to evaluate for sorting while processing a search request. // The Expression syntax is based on JavaScript expressions. For more information, - // see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" - // target="_blank) in the Amazon CloudSearch Developer Guide. + // see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html) + // in the Amazon CloudSearch Developer Guide. // // ExpressionValue is a required field ExpressionValue *string `min:"1" type:"string" required:"true"` @@ -3706,6 +4282,18 @@ func (s *Expression) Validate() error { return nil } +// SetExpressionName sets the ExpressionName field's value. +func (s *Expression) SetExpressionName(v string) *Expression { + s.ExpressionName = &v + return s +} + +// SetExpressionValue sets the ExpressionValue field's value. +func (s *Expression) SetExpressionValue(v string) *Expression { + s.ExpressionValue = &v + return s +} + // The value of an Expression and its current status. type ExpressionStatus struct { _ struct{} `type:"structure"` @@ -3731,6 +4319,18 @@ func (s ExpressionStatus) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *ExpressionStatus) SetOptions(v *Expression) *ExpressionStatus { + s.Options = v + return s +} + +// SetStatus sets the Status field's value. +func (s *ExpressionStatus) SetStatus(v *OptionStatus) *ExpressionStatus { + s.Status = v + return s +} + // Container for the parameters to the IndexDocuments operation. Specifies the // name of the domain you want to re-index. type IndexDocumentsInput struct { @@ -3771,6 +4371,12 @@ func (s *IndexDocumentsInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *IndexDocumentsInput) SetDomainName(v string) *IndexDocumentsInput { + s.DomainName = &v + return s +} + // The result of an IndexDocuments request. Contains the status of the indexing // operation, including the fields being indexed. type IndexDocumentsOutput struct { @@ -3790,6 +4396,12 @@ func (s IndexDocumentsOutput) GoString() string { return s.String() } +// SetFieldNames sets the FieldNames field's value. +func (s *IndexDocumentsOutput) SetFieldNames(v []*string) *IndexDocumentsOutput { + s.FieldNames = v + return s +} + // Configuration information for a field in the index, including its name, type, // and options. The supported options depend on the IndexFieldType. type IndexField struct { @@ -3834,8 +4446,8 @@ type IndexField struct { // The type of field. The valid options for a field depend on the field type. // For more information about the supported field types, see Configuring Index - // Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" - // target="_blank) in the Amazon CloudSearch Developer Guide. + // Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html) + // in the Amazon CloudSearch Developer Guide. // // IndexFieldType is a required field IndexFieldType *string `type:"string" required:"true" enum:"IndexFieldType"` @@ -3933,6 +4545,84 @@ func (s *IndexField) Validate() error { return nil } +// SetDateArrayOptions sets the DateArrayOptions field's value. +func (s *IndexField) SetDateArrayOptions(v *DateArrayOptions) *IndexField { + s.DateArrayOptions = v + return s +} + +// SetDateOptions sets the DateOptions field's value. +func (s *IndexField) SetDateOptions(v *DateOptions) *IndexField { + s.DateOptions = v + return s +} + +// SetDoubleArrayOptions sets the DoubleArrayOptions field's value. +func (s *IndexField) SetDoubleArrayOptions(v *DoubleArrayOptions) *IndexField { + s.DoubleArrayOptions = v + return s +} + +// SetDoubleOptions sets the DoubleOptions field's value. +func (s *IndexField) SetDoubleOptions(v *DoubleOptions) *IndexField { + s.DoubleOptions = v + return s +} + +// SetIndexFieldName sets the IndexFieldName field's value. +func (s *IndexField) SetIndexFieldName(v string) *IndexField { + s.IndexFieldName = &v + return s +} + +// SetIndexFieldType sets the IndexFieldType field's value. +func (s *IndexField) SetIndexFieldType(v string) *IndexField { + s.IndexFieldType = &v + return s +} + +// SetIntArrayOptions sets the IntArrayOptions field's value. +func (s *IndexField) SetIntArrayOptions(v *IntArrayOptions) *IndexField { + s.IntArrayOptions = v + return s +} + +// SetIntOptions sets the IntOptions field's value. +func (s *IndexField) SetIntOptions(v *IntOptions) *IndexField { + s.IntOptions = v + return s +} + +// SetLatLonOptions sets the LatLonOptions field's value. +func (s *IndexField) SetLatLonOptions(v *LatLonOptions) *IndexField { + s.LatLonOptions = v + return s +} + +// SetLiteralArrayOptions sets the LiteralArrayOptions field's value. +func (s *IndexField) SetLiteralArrayOptions(v *LiteralArrayOptions) *IndexField { + s.LiteralArrayOptions = v + return s +} + +// SetLiteralOptions sets the LiteralOptions field's value. +func (s *IndexField) SetLiteralOptions(v *LiteralOptions) *IndexField { + s.LiteralOptions = v + return s +} + +// SetTextArrayOptions sets the TextArrayOptions field's value. +func (s *IndexField) SetTextArrayOptions(v *TextArrayOptions) *IndexField { + s.TextArrayOptions = v + return s +} + +// SetTextOptions sets the TextOptions field's value. +func (s *IndexField) SetTextOptions(v *TextOptions) *IndexField { + s.TextOptions = v + return s +} + // The value of an IndexField and its current status. type IndexFieldStatus struct { _ struct{} `type:"structure"` @@ -3959,6 +4649,18 @@ func (s IndexFieldStatus) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *IndexFieldStatus) SetOptions(v *IndexField) *IndexFieldStatus { + s.Options = v + return s +} + +// SetStatus sets the Status field's value. +func (s *IndexFieldStatus) SetStatus(v *OptionStatus) *IndexFieldStatus { + s.Status = v + return s +} + // Options for a field that contains an array of 64-bit signed integers. Present // if IndexFieldType specifies the field is of type int-array. All options are // enabled by default. @@ -3991,6 +4693,36 @@ func (s IntArrayOptions) GoString() string { return s.String() } +// SetDefaultValue sets the DefaultValue field's value. +func (s *IntArrayOptions) SetDefaultValue(v int64) *IntArrayOptions { + s.DefaultValue = &v + return s +} + +// SetFacetEnabled sets the FacetEnabled field's value. +func (s *IntArrayOptions) SetFacetEnabled(v bool) *IntArrayOptions { + s.FacetEnabled = &v + return s +} + +// SetReturnEnabled sets the ReturnEnabled field's value. +func (s *IntArrayOptions) SetReturnEnabled(v bool) *IntArrayOptions { + s.ReturnEnabled = &v + return s +} + +// SetSearchEnabled sets the SearchEnabled field's value. +func (s *IntArrayOptions) SetSearchEnabled(v bool) *IntArrayOptions { + s.SearchEnabled = &v + return s +} + +// SetSourceFields sets the SourceFields field's value. +func (s *IntArrayOptions) SetSourceFields(v string) *IntArrayOptions { + s.SourceFields = &v + return s +} + // Options for a 64-bit signed integer field. Present if IndexFieldType specifies // the field is of type int. All options are enabled by default. type IntOptions struct { @@ -4040,6 +4772,42 @@ func (s *IntOptions) Validate() error { return nil } +// SetDefaultValue sets the DefaultValue field's value. +func (s *IntOptions) SetDefaultValue(v int64) *IntOptions { + s.DefaultValue = &v + return s +} + +// SetFacetEnabled sets the FacetEnabled field's value. +func (s *IntOptions) SetFacetEnabled(v bool) *IntOptions { + s.FacetEnabled = &v + return s +} + +// SetReturnEnabled sets the ReturnEnabled field's value. +func (s *IntOptions) SetReturnEnabled(v bool) *IntOptions { + s.ReturnEnabled = &v + return s +} + +// SetSearchEnabled sets the SearchEnabled field's value. +func (s *IntOptions) SetSearchEnabled(v bool) *IntOptions { + s.SearchEnabled = &v + return s +} + +// SetSortEnabled sets the SortEnabled field's value. +func (s *IntOptions) SetSortEnabled(v bool) *IntOptions { + s.SortEnabled = &v + return s +} + +// SetSourceField sets the SourceField field's value. +func (s *IntOptions) SetSourceField(v string) *IntOptions { + s.SourceField = &v + return s +} + // Options for a latlon field. A latlon field contains a location stored as // a latitude and longitude value pair. Present if IndexFieldType specifies // the field is of type latlon. All options are enabled by default. @@ -4101,6 +4869,42 @@ func (s *LatLonOptions) Validate() error { return nil } +// SetDefaultValue sets the DefaultValue field's value. +func (s *LatLonOptions) SetDefaultValue(v string) *LatLonOptions { + s.DefaultValue = &v + return s +} + +// SetFacetEnabled sets the FacetEnabled field's value. +func (s *LatLonOptions) SetFacetEnabled(v bool) *LatLonOptions { + s.FacetEnabled = &v + return s +} + +// SetReturnEnabled sets the ReturnEnabled field's value. +func (s *LatLonOptions) SetReturnEnabled(v bool) *LatLonOptions { + s.ReturnEnabled = &v + return s +} + +// SetSearchEnabled sets the SearchEnabled field's value. +func (s *LatLonOptions) SetSearchEnabled(v bool) *LatLonOptions { + s.SearchEnabled = &v + return s +} + +// SetSortEnabled sets the SortEnabled field's value. +func (s *LatLonOptions) SetSortEnabled(v bool) *LatLonOptions { + s.SortEnabled = &v + return s +} + +// SetSourceField sets the SourceField field's value. +func (s *LatLonOptions) SetSourceField(v string) *LatLonOptions { + s.SourceField = &v + return s +} + type Limits struct { _ struct{} `type:"structure"` @@ -4121,6 +4925,18 @@ func (s Limits) GoString() string { return s.String() } +// SetMaximumPartitionCount sets the MaximumPartitionCount field's value. +func (s *Limits) SetMaximumPartitionCount(v int64) *Limits { + s.MaximumPartitionCount = &v + return s +} + +// SetMaximumReplicationCount sets the MaximumReplicationCount field's value. +func (s *Limits) SetMaximumReplicationCount(v int64) *Limits { + s.MaximumReplicationCount = &v + return s +} + type ListDomainNamesInput struct { _ struct{} `type:"structure"` } @@ -4154,6 +4970,12 @@ func (s ListDomainNamesOutput) GoString() string { return s.String() } +// SetDomainNames sets the DomainNames field's value. +func (s *ListDomainNamesOutput) SetDomainNames(v map[string]*string) *ListDomainNamesOutput { + s.DomainNames = v + return s +} + // Options for a field that contains an array of literal strings. Present if // IndexFieldType specifies the field is of type literal-array. All options // are enabled by default. @@ -4186,6 +5008,36 @@ func (s LiteralArrayOptions) GoString() string { return s.String() } +// SetDefaultValue sets the DefaultValue field's value. +func (s *LiteralArrayOptions) SetDefaultValue(v string) *LiteralArrayOptions { + s.DefaultValue = &v + return s +} + +// SetFacetEnabled sets the FacetEnabled field's value. +func (s *LiteralArrayOptions) SetFacetEnabled(v bool) *LiteralArrayOptions { + s.FacetEnabled = &v + return s +} + +// SetReturnEnabled sets the ReturnEnabled field's value. +func (s *LiteralArrayOptions) SetReturnEnabled(v bool) *LiteralArrayOptions { + s.ReturnEnabled = &v + return s +} + +// SetSearchEnabled sets the SearchEnabled field's value. +func (s *LiteralArrayOptions) SetSearchEnabled(v bool) *LiteralArrayOptions { + s.SearchEnabled = &v + return s +} + +// SetSourceFields sets the SourceFields field's value. +func (s *LiteralArrayOptions) SetSourceFields(v string) *LiteralArrayOptions { + s.SourceFields = &v + return s +} + // Options for literal field. Present if IndexFieldType specifies the field // is of type literal. All options are enabled by default. type LiteralOptions struct { @@ -4246,6 +5098,42 @@ func (s *LiteralOptions) Validate() error { return nil } +// SetDefaultValue sets the DefaultValue field's value. +func (s *LiteralOptions) SetDefaultValue(v string) *LiteralOptions { + s.DefaultValue = &v + return s +} + +// SetFacetEnabled sets the FacetEnabled field's value. +func (s *LiteralOptions) SetFacetEnabled(v bool) *LiteralOptions { + s.FacetEnabled = &v + return s +} + +// SetReturnEnabled sets the ReturnEnabled field's value. +func (s *LiteralOptions) SetReturnEnabled(v bool) *LiteralOptions { + s.ReturnEnabled = &v + return s +} + +// SetSearchEnabled sets the SearchEnabled field's value. +func (s *LiteralOptions) SetSearchEnabled(v bool) *LiteralOptions { + s.SearchEnabled = &v + return s +} + +// SetSortEnabled sets the SortEnabled field's value. +func (s *LiteralOptions) SetSortEnabled(v bool) *LiteralOptions { + s.SortEnabled = &v + return s +} + +// SetSourceField sets the SourceField field's value. +func (s *LiteralOptions) SetSourceField(v string) *LiteralOptions { + s.SourceField = &v + return s +} + // The status of domain configuration option. type OptionStatus struct { _ struct{} `type:"structure"` @@ -4260,13 +5148,14 @@ type OptionStatus struct { // The state of processing a change to an option. Possible values: // - // RequiresIndexDocuments: the option's latest value will not be deployed - // until IndexDocuments has been called and indexing is complete. Processing: - // the option's latest value is in the process of being activated. Active: - // the option's latest value is completely deployed. FailedToValidate: the - // option value is not compatible with the domain's data and cannot be used - // to index the data. You must either modify the option value or update or remove - // the incompatible documents. + // * RequiresIndexDocuments: the option's latest value will not be deployed + // until IndexDocuments has been called and indexing is complete. + // * Processing: the option's latest value is in the process of being activated. + // + // * Active: the option's latest value is completely deployed. + // * FailedToValidate: the option value is not compatible with the domain's + // data and cannot be used to index the data. You must either modify the + // option value or update or remove the incompatible documents. // // State is a required field State *string `type:"string" required:"true" enum:"OptionState"` @@ -4290,6 +5179,36 @@ func (s OptionStatus) GoString() string { return s.String() } +// SetCreationDate sets the CreationDate field's value. +func (s *OptionStatus) SetCreationDate(v time.Time) *OptionStatus { + s.CreationDate = &v + return s +} + +// SetPendingDeletion sets the PendingDeletion field's value. +func (s *OptionStatus) SetPendingDeletion(v bool) *OptionStatus { + s.PendingDeletion = &v + return s +} + +// SetState sets the State field's value. +func (s *OptionStatus) SetState(v string) *OptionStatus { + s.State = &v + return s +} + +// SetUpdateDate sets the UpdateDate field's value. +func (s *OptionStatus) SetUpdateDate(v time.Time) *OptionStatus { + s.UpdateDate = &v + return s +} + +// SetUpdateVersion sets the UpdateVersion field's value. +func (s *OptionStatus) SetUpdateVersion(v int64) *OptionStatus { + s.UpdateVersion = &v + return s +} + // The desired instance type and desired number of replicas of each index partition. type ScalingParameters struct { _ struct{} `type:"structure"` @@ -4316,6 +5235,24 @@ func (s ScalingParameters) GoString() string { return s.String() } +// SetDesiredInstanceType sets the DesiredInstanceType field's value. +func (s *ScalingParameters) SetDesiredInstanceType(v string) *ScalingParameters { + s.DesiredInstanceType = &v + return s +} + +// SetDesiredPartitionCount sets the DesiredPartitionCount field's value. +func (s *ScalingParameters) SetDesiredPartitionCount(v int64) *ScalingParameters { + s.DesiredPartitionCount = &v + return s +} + +// SetDesiredReplicationCount sets the DesiredReplicationCount field's value. +func (s *ScalingParameters) SetDesiredReplicationCount(v int64) *ScalingParameters { + s.DesiredReplicationCount = &v + return s +} + // The status and configuration of a search domain's scaling parameters. type ScalingParametersStatus struct { _ struct{} `type:"structure"` @@ -4341,6 +5278,18 @@ func (s ScalingParametersStatus) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *ScalingParametersStatus) SetOptions(v *ScalingParameters) *ScalingParametersStatus { + s.Options = v + return s +} + +// SetStatus sets the Status field's value. +func (s *ScalingParametersStatus) SetStatus(v *OptionStatus) *ScalingParametersStatus { + s.Status = v + return s +} + // The endpoint to which service requests can be submitted. type ServiceEndpoint struct { _ struct{} `type:"structure"` @@ -4360,6 +5309,12 @@ func (s ServiceEndpoint) GoString() string { return s.String() } +// SetEndpoint sets the Endpoint field's value. +func (s *ServiceEndpoint) SetEndpoint(v string) *ServiceEndpoint { + s.Endpoint = &v + return s +} + // Configuration information for a search suggester. Each suggester has a unique // name and specifies the text field you want to use for suggestions. The following // options can be configured for a suggester: FuzzyMatching, SortExpression. @@ -4412,6 +5367,18 @@ func (s *Suggester) Validate() error { return nil } +// SetDocumentSuggesterOptions sets the DocumentSuggesterOptions field's value. +func (s *Suggester) SetDocumentSuggesterOptions(v *DocumentSuggesterOptions) *Suggester { + s.DocumentSuggesterOptions = v + return s +} + +// SetSuggesterName sets the SuggesterName field's value. +func (s *Suggester) SetSuggesterName(v string) *Suggester { + s.SuggesterName = &v + return s +} + // The value of a Suggester and its current status. type SuggesterStatus struct { _ struct{} `type:"structure"` @@ -4439,6 +5406,18 @@ func (s SuggesterStatus) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *SuggesterStatus) SetOptions(v *Suggester) *SuggesterStatus { + s.Options = v + return s +} + +// SetStatus sets the Status field's value. +func (s *SuggesterStatus) SetStatus(v *OptionStatus) *SuggesterStatus { + s.Status = v + return s +} + // Options for a field that contains an array of text strings. Present if IndexFieldType // specifies the field is of type text-array. A text-array field is always searchable. // All options are enabled by default. @@ -4471,6 +5450,36 @@ func (s TextArrayOptions) GoString() string { return s.String() } +// SetAnalysisScheme sets the AnalysisScheme field's value. +func (s *TextArrayOptions) SetAnalysisScheme(v string) *TextArrayOptions { + s.AnalysisScheme = &v + return s +} + +// SetDefaultValue sets the DefaultValue field's value. +func (s *TextArrayOptions) SetDefaultValue(v string) *TextArrayOptions { + s.DefaultValue = &v + return s +} + +// SetHighlightEnabled sets the HighlightEnabled field's value. +func (s *TextArrayOptions) SetHighlightEnabled(v bool) *TextArrayOptions { + s.HighlightEnabled = &v + return s +} + +// SetReturnEnabled sets the ReturnEnabled field's value. +func (s *TextArrayOptions) SetReturnEnabled(v bool) *TextArrayOptions { + s.ReturnEnabled = &v + return s +} + +// SetSourceFields sets the SourceFields field's value. +func (s *TextArrayOptions) SetSourceFields(v string) *TextArrayOptions { + s.SourceFields = &v + return s +} + // Options for text field. Present if IndexFieldType specifies the field is // of type text. A text field is always searchable. All options are enabled // by default. @@ -4532,6 +5541,42 @@ func (s *TextOptions) Validate() error { return nil } +// SetAnalysisScheme sets the AnalysisScheme field's value. +func (s *TextOptions) SetAnalysisScheme(v string) *TextOptions { + s.AnalysisScheme = &v + return s +} + +// SetDefaultValue sets the DefaultValue field's value. +func (s *TextOptions) SetDefaultValue(v string) *TextOptions { + s.DefaultValue = &v + return s +} + +// SetHighlightEnabled sets the HighlightEnabled field's value. +func (s *TextOptions) SetHighlightEnabled(v bool) *TextOptions { + s.HighlightEnabled = &v + return s +} + +// SetReturnEnabled sets the ReturnEnabled field's value. +func (s *TextOptions) SetReturnEnabled(v bool) *TextOptions { + s.ReturnEnabled = &v + return s +} + +// SetSortEnabled sets the SortEnabled field's value. +func (s *TextOptions) SetSortEnabled(v bool) *TextOptions { + s.SortEnabled = &v + return s +} + +// SetSourceField sets the SourceField field's value. +func (s *TextOptions) SetSourceField(v string) *TextOptions { + s.SourceField = &v + return s +} + // Container for the parameters to the UpdateAvailabilityOptions operation. // Specifies the name of the domain you want to update and the Multi-AZ availability // option. @@ -4584,6 +5629,18 @@ func (s *UpdateAvailabilityOptionsInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *UpdateAvailabilityOptionsInput) SetDomainName(v string) *UpdateAvailabilityOptionsInput { + s.DomainName = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *UpdateAvailabilityOptionsInput) SetMultiAZ(v bool) *UpdateAvailabilityOptionsInput { + s.MultiAZ = &v + return s +} + // The result of a UpdateAvailabilityOptions request. Contains the status of // the domain's availability options. type UpdateAvailabilityOptionsOutput struct { @@ -4604,6 +5661,12 @@ func (s UpdateAvailabilityOptionsOutput) GoString() string { return s.String() } +// SetAvailabilityOptions sets the AvailabilityOptions field's value. +func (s *UpdateAvailabilityOptionsOutput) SetAvailabilityOptions(v *AvailabilityOptionsStatus) *UpdateAvailabilityOptionsOutput { + s.AvailabilityOptions = v + return s +} + // Container for the parameters to the UpdateScalingParameters operation. Specifies // the name of the domain you want to update and the scaling parameters you // want to configure. @@ -4653,6 +5716,18 @@ func (s *UpdateScalingParametersInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *UpdateScalingParametersInput) SetDomainName(v string) *UpdateScalingParametersInput { + s.DomainName = &v + return s +} + +// SetScalingParameters sets the ScalingParameters field's value. +func (s *UpdateScalingParametersInput) SetScalingParameters(v *ScalingParameters) *UpdateScalingParametersInput { + s.ScalingParameters = v + return s +} + // The result of a UpdateScalingParameters request. Contains the status of the // newly-configured scaling parameters. type UpdateScalingParametersOutput struct { @@ -4674,6 +5749,12 @@ func (s UpdateScalingParametersOutput) GoString() string { return s.String() } +// SetScalingParameters sets the ScalingParameters field's value. +func (s *UpdateScalingParametersOutput) SetScalingParameters(v *ScalingParametersStatus) *UpdateScalingParametersOutput { + s.ScalingParameters = v + return s +} + // Container for the parameters to the UpdateServiceAccessPolicies operation. // Specifies the name of the domain you want to update and the access rules // you want to configure. @@ -4724,6 +5805,18 @@ func (s *UpdateServiceAccessPoliciesInput) Validate() error { return nil } +// SetAccessPolicies sets the AccessPolicies field's value. +func (s *UpdateServiceAccessPoliciesInput) SetAccessPolicies(v string) *UpdateServiceAccessPoliciesInput { + s.AccessPolicies = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *UpdateServiceAccessPoliciesInput) SetDomainName(v string) *UpdateServiceAccessPoliciesInput { + s.DomainName = &v + return s +} + // The result of an UpdateServiceAccessPolicies request. Contains the new access // policies. type UpdateServiceAccessPoliciesOutput struct { @@ -4745,6 +5838,12 @@ func (s UpdateServiceAccessPoliciesOutput) GoString() string { return s.String() } +// SetAccessPolicies sets the AccessPolicies field's value. +func (s *UpdateServiceAccessPoliciesOutput) SetAccessPolicies(v *AccessPoliciesStatus) *UpdateServiceAccessPoliciesOutput { + s.AccessPolicies = v + return s +} + const ( // AlgorithmicStemmingNone is a AlgorithmicStemming enum value AlgorithmicStemmingNone = "none" @@ -4759,8 +5858,8 @@ const ( AlgorithmicStemmingFull = "full" ) -// An IETF RFC 4646 (http://tools.ietf.org/html/rfc4646" target="_blank) language -// code or mul for multiple languages. +// An IETF RFC 4646 (http://tools.ietf.org/html/rfc4646) language code or mul +// for multiple languages. const ( // AnalysisSchemeLanguageAr is a AnalysisSchemeLanguage enum value AnalysisSchemeLanguageAr = "ar" @@ -4870,8 +5969,8 @@ const ( // The type of field. The valid options for a field depend on the field type. // For more information about the supported field types, see Configuring Index -// Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" -// target="_blank) in the Amazon CloudSearch Developer Guide. +// Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html) +// in the Amazon CloudSearch Developer Guide. const ( // IndexFieldTypeInt is a IndexFieldType enum value IndexFieldTypeInt = "int" @@ -4909,13 +6008,14 @@ const ( // The state of processing a change to an option. One of: // -// RequiresIndexDocuments: The option's latest value will not be deployed -// until IndexDocuments has been called and indexing is complete. Processing: -// The option's latest value is in the process of being activated. Active: The -// option's latest value is fully deployed. FailedToValidate: The option value -// is not compatible with the domain's data and cannot be used to index the -// data. You must either modify the option value or update or remove the incompatible -// documents. +// * RequiresIndexDocuments: The option's latest value will not be deployed +// until IndexDocuments has been called and indexing is complete. +// * Processing: The option's latest value is in the process of being activated. +// +// * Active: The option's latest value is fully deployed. +// * FailedToValidate: The option value is not compatible with the domain's +// data and cannot be used to index the data. You must either modify the +// option value or update or remove the incompatible documents. const ( // OptionStateRequiresIndexDocuments is a OptionState enum value OptionStateRequiresIndexDocuments = "RequiresIndexDocuments" diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/cloudsearchiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/cloudsearchiface/interface.go index fbfc5b376..f9a22fb43 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/cloudsearchiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/cloudsearchiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCloudSearchClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/errors.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/errors.go new file mode 100644 index 000000000..62af0ba89 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/errors.go @@ -0,0 +1,44 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cloudsearch + +const ( + + // ErrCodeBaseException for service response error code + // "BaseException". + // + // An error occurred while processing the request. + ErrCodeBaseException = "BaseException" + + // ErrCodeDisabledOperationException for service response error code + // "DisabledAction". + // + // The request was rejected because it attempted an operation which is not enabled. + ErrCodeDisabledOperationException = "DisabledAction" + + // ErrCodeInternalException for service response error code + // "InternalException". + // + // An internal error occurred while processing the request. If this problem + // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/). + ErrCodeInternalException = "InternalException" + + // ErrCodeInvalidTypeException for service response error code + // "InvalidType". + // + // The request was rejected because it specified an invalid type definition. + ErrCodeInvalidTypeException = "InvalidType" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceeded". + // + // The request was rejected because a resource limit has already been met. + ErrCodeLimitExceededException = "LimitExceeded" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFound". + // + // The request was rejected because it attempted to reference a resource that + // does not exist. + ErrCodeResourceNotFoundException = "ResourceNotFound" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/examples_test.go index 0e9eed485..cc82d343c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudSearch_BuildSuggesters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -41,11 +37,7 @@ func ExampleCloudSearch_BuildSuggesters() { } func ExampleCloudSearch_CreateDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -66,11 +58,7 @@ func ExampleCloudSearch_CreateDomain() { } func ExampleCloudSearch_DefineAnalysisScheme() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -102,11 +90,7 @@ func ExampleCloudSearch_DefineAnalysisScheme() { } func ExampleCloudSearch_DefineExpression() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -131,11 +115,7 @@ func ExampleCloudSearch_DefineExpression() { } func ExampleCloudSearch_DefineIndexField() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -243,11 +223,7 @@ func ExampleCloudSearch_DefineIndexField() { } func ExampleCloudSearch_DefineSuggester() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -276,11 +252,7 @@ func ExampleCloudSearch_DefineSuggester() { } func ExampleCloudSearch_DeleteAnalysisScheme() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -302,11 +274,7 @@ func ExampleCloudSearch_DeleteAnalysisScheme() { } func ExampleCloudSearch_DeleteDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -327,11 +295,7 @@ func ExampleCloudSearch_DeleteDomain() { } func ExampleCloudSearch_DeleteExpression() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -353,11 +317,7 @@ func ExampleCloudSearch_DeleteExpression() { } func ExampleCloudSearch_DeleteIndexField() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -379,11 +339,7 @@ func ExampleCloudSearch_DeleteIndexField() { } func ExampleCloudSearch_DeleteSuggester() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -405,11 +361,7 @@ func ExampleCloudSearch_DeleteSuggester() { } func ExampleCloudSearch_DescribeAnalysisSchemes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -435,11 +387,7 @@ func ExampleCloudSearch_DescribeAnalysisSchemes() { } func ExampleCloudSearch_DescribeAvailabilityOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -461,11 +409,7 @@ func ExampleCloudSearch_DescribeAvailabilityOptions() { } func ExampleCloudSearch_DescribeDomains() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -489,11 +433,7 @@ func ExampleCloudSearch_DescribeDomains() { } func ExampleCloudSearch_DescribeExpressions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -519,11 +459,7 @@ func ExampleCloudSearch_DescribeExpressions() { } func ExampleCloudSearch_DescribeIndexFields() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -549,11 +485,7 @@ func ExampleCloudSearch_DescribeIndexFields() { } func ExampleCloudSearch_DescribeScalingParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -574,11 +506,7 @@ func ExampleCloudSearch_DescribeScalingParameters() { } func ExampleCloudSearch_DescribeServiceAccessPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -600,11 +528,7 @@ func ExampleCloudSearch_DescribeServiceAccessPolicies() { } func ExampleCloudSearch_DescribeSuggesters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -630,11 +554,7 @@ func ExampleCloudSearch_DescribeSuggesters() { } func ExampleCloudSearch_IndexDocuments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -655,11 +575,7 @@ func ExampleCloudSearch_IndexDocuments() { } func ExampleCloudSearch_ListDomainNames() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -678,11 +594,7 @@ func ExampleCloudSearch_ListDomainNames() { } func ExampleCloudSearch_UpdateAvailabilityOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -704,11 +616,7 @@ func ExampleCloudSearch_UpdateAvailabilityOptions() { } func ExampleCloudSearch_UpdateScalingParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) @@ -734,11 +642,7 @@ func ExampleCloudSearch_UpdateScalingParameters() { } func ExampleCloudSearch_UpdateServiceAccessPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearch.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/service.go index e4a16069a..29e8ac3c9 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/service.go @@ -18,9 +18,8 @@ import ( // // The endpoint for configuration service requests is region-specific: cloudsearch.region.amazonaws.com. // For example, cloudsearch.us-east-1.amazonaws.com. For a current list of supported -// regions and endpoints, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#cloudsearch_region" -// target="_blank). -//The service client's operations are safe to be used concurrently. +// regions and endpoints, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#cloudsearch_region). +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type CloudSearch struct { *client.Client @@ -32,8 +31,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "cloudsearch" +// Service information constants +const ( + ServiceName = "cloudsearch" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the CloudSearch client with a session. // If additional configuration is needed for the client instance use the optional @@ -46,17 +48,18 @@ const ServiceName = "cloudsearch" // // Create a CloudSearch client with additional configuration // svc := cloudsearch.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudSearch { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CloudSearch { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CloudSearch { svc := &CloudSearch{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2013-01-01", diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/api.go index 71b4454ce..638a00b93 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/api.go @@ -35,7 +35,6 @@ const opSearch = "Search" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearchDomain) SearchRequest(input *SearchInput) (req *request.Request, output *SearchOutput) { op := &request.Operation{ Name: opSearch, @@ -47,9 +46,8 @@ func (c *CloudSearchDomain) SearchRequest(input *SearchInput) (req *request.Requ input = &SearchInput{} } - req = c.newRequest(op, input, output) output = &SearchOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -59,14 +57,16 @@ func (c *CloudSearchDomain) SearchRequest(input *SearchInput) (req *request.Requ // you specify the search criteria depends on which query parser you use. Amazon // CloudSearch supports four query parsers: // -// simple: search all text and text-array fields for the specified string. -// Search for phrases, individual terms, and prefixes. structured: search specific -// fields, construct compound queries using Boolean operators, and use advanced -// features such as term boosting and proximity searching. lucene: specify search -// criteria using the Apache Lucene query parser syntax. dismax: specify search -// criteria using the simplified subset of the Apache Lucene query parser syntax -// defined by the DisMax query parser. For more information, see Searching -// Your Data (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching.html) +// * simple: search all text and text-array fields for the specified string. +// Search for phrases, individual terms, and prefixes. +// * structured: search specific fields, construct compound queries using +// Boolean operators, and use advanced features such as term boosting and +// proximity searching. +// * lucene: specify search criteria using the Apache Lucene query parser +// syntax. +// * dismax: specify search criteria using the simplified subset of the Apache +// Lucene query parser syntax defined by the DisMax query parser. +// For more information, see Searching Your Data (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching.html) // in the Amazon CloudSearch Developer Guide. // // The endpoint for submitting Search requests is domain-specific. You submit @@ -83,7 +83,7 @@ func (c *CloudSearchDomain) SearchRequest(input *SearchInput) (req *request.Requ // API operation Search for usage and error information. // // Returned Error Codes: -// * SearchException +// * ErrCodeSearchException "SearchException" // Information about any problems encountered while processing a search request. // func (c *CloudSearchDomain) Search(input *SearchInput) (*SearchOutput, error) { @@ -117,7 +117,6 @@ const opSuggest = "Suggest" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearchDomain) SuggestRequest(input *SuggestInput) (req *request.Request, output *SuggestOutput) { op := &request.Operation{ Name: opSuggest, @@ -129,9 +128,8 @@ func (c *CloudSearchDomain) SuggestRequest(input *SuggestInput) (req *request.Re input = &SuggestInput{} } - req = c.newRequest(op, input, output) output = &SuggestOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -163,7 +161,7 @@ func (c *CloudSearchDomain) SuggestRequest(input *SuggestInput) (req *request.Re // API operation Suggest for usage and error information. // // Returned Error Codes: -// * SearchException +// * ErrCodeSearchException "SearchException" // Information about any problems encountered while processing a search request. // func (c *CloudSearchDomain) Suggest(input *SuggestInput) (*SuggestOutput, error) { @@ -197,7 +195,6 @@ const opUploadDocuments = "UploadDocuments" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *CloudSearchDomain) UploadDocumentsRequest(input *UploadDocumentsInput) (req *request.Request, output *UploadDocumentsOutput) { op := &request.Operation{ Name: opUploadDocuments, @@ -209,9 +206,8 @@ func (c *CloudSearchDomain) UploadDocumentsRequest(input *UploadDocumentsInput) input = &UploadDocumentsInput{} } - req = c.newRequest(op, input, output) output = &UploadDocumentsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -234,8 +230,8 @@ func (c *CloudSearchDomain) UploadDocumentsRequest(input *UploadDocumentsInput) // configuration service DescribeDomains action. A domain's endpoints are also // displayed on the domain dashboard in the Amazon CloudSearch console. // -// For more information about formatting your data for Amazon CloudSearch, -// see Preparing Your Data (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/preparing-data.html) +// For more information about formatting your data for Amazon CloudSearch, see +// Preparing Your Data (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/preparing-data.html) // in the Amazon CloudSearch Developer Guide. For more information about uploading // data for indexing, see Uploading Data (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/uploading-data.html) // in the Amazon CloudSearch Developer Guide. @@ -248,7 +244,7 @@ func (c *CloudSearchDomain) UploadDocumentsRequest(input *UploadDocumentsInput) // API operation UploadDocuments for usage and error information. // // Returned Error Codes: -// * DocumentServiceException +// * ErrCodeDocumentServiceException "DocumentServiceException" // Information about any problems encountered while processing an upload request. // func (c *CloudSearchDomain) UploadDocuments(input *UploadDocumentsInput) (*UploadDocumentsOutput, error) { @@ -278,6 +274,18 @@ func (s Bucket) GoString() string { return s.String() } +// SetCount sets the Count field's value. +func (s *Bucket) SetCount(v int64) *Bucket { + s.Count = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Bucket) SetValue(v string) *Bucket { + s.Value = &v + return s +} + // A container for the calculated facet values and counts. type BucketInfo struct { _ struct{} `type:"structure"` @@ -296,6 +304,12 @@ func (s BucketInfo) GoString() string { return s.String() } +// SetBuckets sets the Buckets field's value. +func (s *BucketInfo) SetBuckets(v []*Bucket) *BucketInfo { + s.Buckets = v + return s +} + // A warning returned by the document service when an issue is discovered while // processing an upload request. type DocumentServiceWarning struct { @@ -315,6 +329,12 @@ func (s DocumentServiceWarning) GoString() string { return s.String() } +// SetMessage sets the Message field's value. +func (s *DocumentServiceWarning) SetMessage(v string) *DocumentServiceWarning { + s.Message = &v + return s +} + // The statistics for a field calculated in the request. type FieldStats struct { _ struct{} `type:"structure"` @@ -334,10 +354,10 @@ type FieldStats struct { // The average of the values found in the specified field in the result set. // - // If the field is numeric (int, int-array, double, or double-array), mean - // is the string representation of a double-precision 64-bit floating point - // value. If the field is date or date-array, mean is the string representation - // of a date with the format specified in IETF RFC3339 (http://tools.ietf.org/html/rfc3339): + // If the field is numeric (int, int-array, double, or double-array), mean is + // the string representation of a double-precision 64-bit floating point value. + // If the field is date or date-array, mean is the string representation of + // a date with the format specified in IETF RFC3339 (http://tools.ietf.org/html/rfc3339): // yyyy-mm-ddTHH:mm:ss.SSSZ. Mean *string `locationName:"mean" type:"string"` @@ -376,6 +396,54 @@ func (s FieldStats) GoString() string { return s.String() } +// SetCount sets the Count field's value. +func (s *FieldStats) SetCount(v int64) *FieldStats { + s.Count = &v + return s +} + +// SetMax sets the Max field's value. +func (s *FieldStats) SetMax(v string) *FieldStats { + s.Max = &v + return s +} + +// SetMean sets the Mean field's value. +func (s *FieldStats) SetMean(v string) *FieldStats { + s.Mean = &v + return s +} + +// SetMin sets the Min field's value. +func (s *FieldStats) SetMin(v string) *FieldStats { + s.Min = &v + return s +} + +// SetMissing sets the Missing field's value. +func (s *FieldStats) SetMissing(v int64) *FieldStats { + s.Missing = &v + return s +} + +// SetStddev sets the Stddev field's value. +func (s *FieldStats) SetStddev(v float64) *FieldStats { + s.Stddev = &v + return s +} + +// SetSum sets the Sum field's value. +func (s *FieldStats) SetSum(v float64) *FieldStats { + s.Sum = &v + return s +} + +// SetSumOfSquares sets the SumOfSquares field's value. +func (s *FieldStats) SetSumOfSquares(v float64) *FieldStats { + s.SumOfSquares = &v + return s +} + // Information about a document that matches the search request. type Hit struct { _ struct{} `type:"structure"` @@ -403,6 +471,30 @@ func (s Hit) GoString() string { return s.String() } +// SetExprs sets the Exprs field's value. +func (s *Hit) SetExprs(v map[string]*string) *Hit { + s.Exprs = v + return s +} + +// SetFields sets the Fields field's value. +func (s *Hit) SetFields(v map[string][]*string) *Hit { + s.Fields = v + return s +} + +// SetHighlights sets the Highlights field's value. +func (s *Hit) SetHighlights(v map[string]*string) *Hit { + s.Highlights = v + return s +} + +// SetId sets the Id field's value. +func (s *Hit) SetId(v string) *Hit { + s.Id = &v + return s +} + // The collection of documents that match the search request. type Hits struct { _ struct{} `type:"structure"` @@ -431,6 +523,30 @@ func (s Hits) GoString() string { return s.String() } +// SetCursor sets the Cursor field's value. +func (s *Hits) SetCursor(v string) *Hits { + s.Cursor = &v + return s +} + +// SetFound sets the Found field's value. +func (s *Hits) SetFound(v int64) *Hits { + s.Found = &v + return s +} + +// SetHit sets the Hit field's value. +func (s *Hits) SetHit(v []*Hit) *Hits { + s.Hit = v + return s +} + +// SetStart sets the Start field's value. +func (s *Hits) SetStart(v int64) *Hits { + s.Start = &v + return s +} + // Container for the parameters to the Search request. type SearchInput struct { _ struct{} `type:"structure"` @@ -453,7 +569,7 @@ type SearchInput struct { // You specify the expressions in JSON using the form {"EXPRESSIONNAME":"EXPRESSION"}. // You can define and use multiple expressions in a search request. For example: // - // {"expression1":"_score*rating", "expression2":"(1/rank)*year"} + // {"expression1":"_score*rating", "expression2":"(1/rank)*year"} // // For information about the variables, operators, and functions you can use // in expressions, see Writing Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html#writing-expressions) @@ -467,26 +583,27 @@ type SearchInput struct { // // You can specify the following faceting options: // - // buckets specifies an array of the facet values or ranges to count. Ranges - // are specified using the same syntax that you use to search for a range of - // values. For more information, see Searching for a Range of Values (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching-ranges.html) - // in the Amazon CloudSearch Developer Guide. Buckets are returned in the order - // they are specified in the request. The sort and size options are not valid - // if you specify buckets. + // * buckets specifies an array of the facet values or ranges to count. Ranges + // are specified using the same syntax that you use to search for a range + // of values. For more information, see Searching for a Range of Values + // (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching-ranges.html) + // in the Amazon CloudSearch Developer Guide. Buckets are returned in the + // order they are specified in the request. The sort and size options are + // not valid if you specify buckets. // - // size specifies the maximum number of facets to include in the results. - // By default, Amazon CloudSearch returns counts for the top 10. The size parameter - // is only valid when you specify the sort option; it cannot be used in conjunction - // with buckets. + // * size specifies the maximum number of facets to include in the results. + // By default, Amazon CloudSearch returns counts for the top 10. The size + // parameter is only valid when you specify the sort option; it cannot be + // used in conjunction with buckets. // - // sort specifies how you want to sort the facets in the results: bucket - // or count. Specify bucket to sort alphabetically or numerically by facet value - // (in ascending order). Specify count to sort by the facet counts computed - // for each facet value (in descending order). To retrieve facet counts for - // particular values or ranges of values, use the buckets option instead of - // sort. + // * sort specifies how you want to sort the facets in the results: bucket + // or count. Specify bucket to sort alphabetically or numerically by facet + // value (in ascending order). Specify count to sort by the facet counts + // computed for each facet value (in descending order). To retrieve facet + // counts for particular values or ranges of values, use the buckets option + // instead of sort. // - // If no facet options are specified, facet counts are computed for all field + // If no facet options are specified, facet counts are computed for all field // values, the facets are sorted by facet count, and the top 10 facets are returned // in the results. // @@ -494,20 +611,20 @@ type SearchInput struct { // the following request uses the buckets option to calculate and return facet // counts by decade. // - // {"year":{"buckets":["[1970,1979]","[1980,1989]","[1990,1999]","[2000,2009]","[2010,}"]}} + // {"year":{"buckets":["[1970,1979]","[1980,1989]","[1990,1999]","[2000,2009]","[2010,}"]}} // // To sort facets by facet count, use the count option. For example, the following // request sets the sort option to count to sort the facet values by facet count, // with the facet values that have the most matching documents listed first. // Setting the size option to 3 returns only the top three facet values. // - // {"year":{"sort":"count","size":3}} + // {"year":{"sort":"count","size":3}} // // To sort the facets by value, use the bucket option. For example, the following // request sets the sort option to bucket to sort the facet values numerically // by year, with earliest year listed first. // - // {"year":{"sort":"bucket"}} + // {"year":{"sort":"bucket"}} // // For more information, see Getting and Using Facet Information (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/faceting.html) // in the Amazon CloudSearch Developer Guide. @@ -532,23 +649,27 @@ type SearchInput struct { // // You can specify the following highlight options: // - // format: specifies the format of the data in the text field: text or html. - // When data is returned as HTML, all non-alphanumeric characters are encoded. - // The default is html. max_phrases: specifies the maximum number of occurrences - // of the search term(s) you want to highlight. By default, the first occurrence - // is highlighted. pre_tag: specifies the string to prepend to an occurrence - // of a search term. The default for HTML highlights is <em>. The default - // for text highlights is *. post_tag: specifies the string to append to an - // occurrence of a search term. The default for HTML highlights is </em>. - // The default for text highlights is *. If no highlight options are specified - // for a field, the returned field text is treated as HTML and the first match - // is highlighted with emphasis tags: <em>search-term</em>. + // * format: specifies the format of the data in the text field: text or + // html. When data is returned as HTML, all non-alphanumeric characters are + // encoded. The default is html. + // * max_phrases: specifies the maximum number of occurrences of the search + // term(s) you want to highlight. By default, the first occurrence is highlighted. + // + // * pre_tag: specifies the string to prepend to an occurrence of a search + // term. The default for HTML highlights is . The default for text + // highlights is *. + // * post_tag: specifies the string to append to an occurrence of a search + // term. The default for HTML highlights is . The default for + // text highlights is *. + // If no highlight options are specified for a field, the returned field text + // is treated as HTML and the first match is highlighted with emphasis tags: + // search-term. // // For example, the following request retrieves highlights for the actors and // title fields. // - // { "actors": {}, "title": {"format": "text","max_phrases": 2,"pre_tag": - // "","post_tag": ""} } + // { "actors": {}, "title": {"format": "text","max_phrases": 2,"pre_tag": "","post_tag": + // ""} } Highlight *string `location:"querystring" locationName:"highlight" type:"string"` // Enables partial results to be returned if one or more index partitions are @@ -582,77 +703,83 @@ type SearchInput struct { // // The options you can configure vary according to which parser you use: // - // defaultOperator: The default operator used to combine individual terms - // in the search string. For example: defaultOperator: 'or'. For the dismax - // parser, you specify a percentage that represents the percentage of terms - // in the search string (rounded down) that must match, rather than a default - // operator. A value of 0% is the equivalent to OR, and a value of 100% is equivalent - // to AND. The percentage must be specified as a value in the range 0-100 followed - // by the percent (%) symbol. For example, defaultOperator: 50%. Valid values: - // and, or, a percentage in the range 0%-100% (dismax). Default: and (simple, - // structured, lucene) or 100 (dismax). Valid for: simple, structured, lucene, - // and dismax. fields: An array of the fields to search when no fields are specified - // in a search. If no fields are specified in a search and this option is not - // specified, all text and text-array fields are searched. You can specify a - // weight for each field to control the relative importance of each field when - // Amazon CloudSearch calculates relevance scores. To specify a field weight, - // append a caret (^) symbol and the weight to the field name. For example, - // to boost the importance of the title field over the description field you - // could specify: "fields":["title^5","description"]. Valid values: The name - // of any configured field and an optional numeric value greater than zero. - // Default: All text and text-array fields. Valid for: simple, structured, lucene, - // and dismax. operators: An array of the operators or special characters you - // want to disable for the simple query parser. If you disable the and, or, - // or not operators, the corresponding operators (+, |, -) have no special meaning - // and are dropped from the search string. Similarly, disabling prefix disables - // the wildcard operator (*) and disabling phrase disables the ability to search - // for phrases by enclosing phrases in double quotes. Disabling precedence disables - // the ability to control order of precedence using parentheses. Disabling near - // disables the ability to use the ~ operator to perform a sloppy phrase search. - // Disabling the fuzzy operator disables the ability to use the ~ operator to - // perform a fuzzy search. escape disables the ability to use a backslash (\) - // to escape special characters within the search string. Disabling whitespace - // is an advanced option that prevents the parser from tokenizing on whitespace, - // which can be useful for Vietnamese. (It prevents Vietnamese words from being - // split incorrectly.) For example, you could disable all operators other than - // the phrase operator to support just simple term and phrase queries: "operators":["and","not","or", - // "prefix"]. Valid values: and, escape, fuzzy, near, not, or, phrase, precedence, - // prefix, whitespace. Default: All operators and special characters are enabled. - // Valid for: simple. phraseFields: An array of the text or text-array fields - // you want to use for phrase searches. When the terms in the search string - // appear in close proximity within a field, the field scores higher. You can - // specify a weight for each field to boost that score. The phraseSlop option - // controls how much the matches can deviate from the search string and still - // be boosted. To specify a field weight, append a caret (^) symbol and the - // weight to the field name. For example, to boost phrase matches in the title - // field over the abstract field, you could specify: "phraseFields":["title^3", - // "plot"] Valid values: The name of any text or text-array field and an optional - // numeric value greater than zero. Default: No fields. If you don't specify - // any fields with phraseFields, proximity scoring is disabled even if phraseSlop - // is specified. Valid for: dismax. phraseSlop: An integer value that specifies - // how much matches can deviate from the search phrase and still be boosted - // according to the weights specified in the phraseFields option; for example, - // phraseSlop: 2. You must also specify phraseFields to enable proximity scoring. - // Valid values: positive integers. Default: 0. Valid for: dismax. explicitPhraseSlop: - // An integer value that specifies how much a match can deviate from the search - // phrase when the phrase is enclosed in double quotes in the search string. - // (Phrases that exceed this proximity distance are not considered a match.) - // For example, to specify a slop of three for dismax phrase queries, you would - // specify "explicitPhraseSlop":3. Valid values: positive integers. Default: - // 0. Valid for: dismax. tieBreaker: When a term in the search string is found - // in a document's field, a score is calculated for that field based on how - // common the word is in that field compared to other documents. If the term - // occurs in multiple fields within a document, by default only the highest - // scoring field contributes to the document's overall score. You can specify - // a tieBreaker value to enable the matches in lower-scoring fields to contribute - // to the document's score. That way, if two documents have the same max field - // score for a particular term, the score for the document that has matches - // in more fields will be higher. The formula for calculating the score with - // a tieBreaker is (max field score) + (tieBreaker) * (sum of the scores for - // the rest of the matching fields). Set tieBreaker to 0 to disregard all but - // the highest scoring field (pure max): "tieBreaker":0. Set to 1 to sum the - // scores from all fields (pure sum): "tieBreaker":1. Valid values: 0.0 to 1.0. - // Default: 0.0. Valid for: dismax. + // * defaultOperator: The default operator used to combine individual terms + // in the search string. For example: defaultOperator: 'or'. For the dismax + // parser, you specify a percentage that represents the percentage of terms + // in the search string (rounded down) that must match, rather than a default + // operator. A value of 0% is the equivalent to OR, and a value of 100% is + // equivalent to AND. The percentage must be specified as a value in the + // range 0-100 followed by the percent (%) symbol. For example, defaultOperator: + // 50%. Valid values: and, or, a percentage in the range 0%-100% (dismax). + // Default: and (simple, structured, lucene) or 100 (dismax). Valid for: + // simple, structured, lucene, and dismax. + // * fields: An array of the fields to search when no fields are specified + // in a search. If no fields are specified in a search and this option is + // not specified, all text and text-array fields are searched. You can specify + // a weight for each field to control the relative importance of each field + // when Amazon CloudSearch calculates relevance scores. To specify a field + // weight, append a caret (^) symbol and the weight to the field name. For + // example, to boost the importance of the title field over the description + // field you could specify: "fields":["title^5","description"]. Valid values: + // The name of any configured field and an optional numeric value greater + // than zero. Default: All text and text-array fields. Valid for: simple, + // structured, lucene, and dismax. + // * operators: An array of the operators or special characters you want + // to disable for the simple query parser. If you disable the and, or, or + // not operators, the corresponding operators (+, |, -) have no special meaning + // and are dropped from the search string. Similarly, disabling prefix disables + // the wildcard operator (*) and disabling phrase disables the ability to + // search for phrases by enclosing phrases in double quotes. Disabling precedence + // disables the ability to control order of precedence using parentheses. + // Disabling near disables the ability to use the ~ operator to perform a + // sloppy phrase search. Disabling the fuzzy operator disables the ability + // to use the ~ operator to perform a fuzzy search. escape disables the ability + // to use a backslash (\) to escape special characters within the search + // string. Disabling whitespace is an advanced option that prevents the parser + // from tokenizing on whitespace, which can be useful for Vietnamese. (It + // prevents Vietnamese words from being split incorrectly.) For example, + // you could disable all operators other than the phrase operator to support + // just simple term and phrase queries: "operators":["and","not","or", "prefix"]. + // Valid values: and, escape, fuzzy, near, not, or, phrase, precedence, prefix, + // whitespace. Default: All operators and special characters are enabled. + // Valid for: simple. + // * phraseFields: An array of the text or text-array fields you want to + // use for phrase searches. When the terms in the search string appear in + // close proximity within a field, the field scores higher. You can specify + // a weight for each field to boost that score. The phraseSlop option controls + // how much the matches can deviate from the search string and still be boosted. + // To specify a field weight, append a caret (^) symbol and the weight to + // the field name. For example, to boost phrase matches in the title field + // over the abstract field, you could specify: "phraseFields":["title^3", + // "plot"] Valid values: The name of any text or text-array field and an + // optional numeric value greater than zero. Default: No fields. If you don't + // specify any fields with phraseFields, proximity scoring is disabled even + // if phraseSlop is specified. Valid for: dismax. + // * phraseSlop: An integer value that specifies how much matches can deviate + // from the search phrase and still be boosted according to the weights specified + // in the phraseFields option; for example, phraseSlop: 2. You must also + // specify phraseFields to enable proximity scoring. Valid values: positive + // integers. Default: 0. Valid for: dismax. + // * explicitPhraseSlop: An integer value that specifies how much a match + // can deviate from the search phrase when the phrase is enclosed in double + // quotes in the search string. (Phrases that exceed this proximity distance + // are not considered a match.) For example, to specify a slop of three for + // dismax phrase queries, you would specify "explicitPhraseSlop":3. Valid + // values: positive integers. Default: 0. Valid for: dismax. + // * tieBreaker: When a term in the search string is found in a document's + // field, a score is calculated for that field based on how common the word + // is in that field compared to other documents. If the term occurs in multiple + // fields within a document, by default only the highest scoring field contributes + // to the document's overall score. You can specify a tieBreaker value to + // enable the matches in lower-scoring fields to contribute to the document's + // score. That way, if two documents have the same max field score for a + // particular term, the score for the document that has matches in more fields + // will be higher. The formula for calculating the score with a tieBreaker + // is (max field score) + (tieBreaker) * (sum of the scores for the rest + // of the matching fields). Set tieBreaker to 0 to disregard all but the + // highest scoring field (pure max): "tieBreaker":0. Set to 1 to sum the + // scores from all fields (pure sum): "tieBreaker":1. Valid values: 0.0 to + // 1.0. Default: 0.0. Valid for: dismax. QueryOptions *string `location:"querystring" locationName:"q.options" type:"string"` // Specifies which query parser to use to process the request. If queryParser @@ -660,27 +787,30 @@ type SearchInput struct { // // Amazon CloudSearch supports four query parsers: // - // simple: perform simple searches of text and text-array fields. By default, - // the simple query parser searches all text and text-array fields. You can - // specify which fields to search by with the queryOptions parameter. If you - // prefix a search term with a plus sign (+) documents must contain the term - // to be considered a match. (This is the default, unless you configure the - // default operator with the queryOptions parameter.) You can use the - (NOT), - // | (OR), and * (wildcard) operators to exclude particular terms, find results - // that match any of the specified terms, or search for a prefix. To search - // for a phrase rather than individual terms, enclose the phrase in double quotes. - // For more information, see Searching for Text (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching-text.html) - // in the Amazon CloudSearch Developer Guide. structured: perform advanced - // searches by combining multiple expressions to define the search criteria. - // You can also search within particular fields, search for values and ranges - // of values, and use advanced options such as term boosting, matchall, and - // near. For more information, see Constructing Compound Queries (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching-compound-queries.html) - // in the Amazon CloudSearch Developer Guide. lucene: search using the Apache - // Lucene query parser syntax. For more information, see Apache Lucene Query - // Parser Syntax (http://lucene.apache.org/core/4_6_0/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#package_description). - // dismax: search using the simplified subset of the Apache Lucene query parser - // syntax defined by the DisMax query parser. For more information, see DisMax - // Query Parser Syntax (http://wiki.apache.org/solr/DisMaxQParserPlugin#Query_Syntax). + // * simple: perform simple searches of text and text-array fields. By default, + // the simple query parser searches all text and text-array fields. You can + // specify which fields to search by with the queryOptions parameter. If + // you prefix a search term with a plus sign (+) documents must contain the + // term to be considered a match. (This is the default, unless you configure + // the default operator with the queryOptions parameter.) You can use the + // - (NOT), | (OR), and * (wildcard) operators to exclude particular terms, + // find results that match any of the specified terms, or search for a prefix. + // To search for a phrase rather than individual terms, enclose the phrase + // in double quotes. For more information, see Searching for Text (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching-text.html) + // in the Amazon CloudSearch Developer Guide. + // * structured: perform advanced searches by combining multiple expressions + // to define the search criteria. You can also search within particular fields, + // search for values and ranges of values, and use advanced options such + // as term boosting, matchall, and near. For more information, see Constructing + // Compound Queries (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching-compound-queries.html) + // in the Amazon CloudSearch Developer Guide. + // * lucene: search using the Apache Lucene query parser syntax. For more + // information, see Apache Lucene Query Parser Syntax (http://lucene.apache.org/core/4_6_0/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#package_description). + // + // * dismax: search using the simplified subset of the Apache Lucene query + // parser syntax defined by the DisMax query parser. For more information, + // see DisMax Query Parser Syntax (http://wiki.apache.org/solr/DisMaxQParserPlugin#Query_Syntax). + // QueryParser *string `location:"querystring" locationName:"q.parser" type:"string" enum:"QueryParser"` // Specifies the field and expression values to include in the response. Multiple @@ -718,8 +848,7 @@ type SearchInput struct { // specified field must be facet-enabled in the domain configuration. The fields // are specified in JSON using the form: // - // {"FIELD-A":{},"FIELD-B":{}} There are currently no options supported for - // statistics. + // {"FIELD-A":{},"FIELD-B":{}}There are currently no options supported for statistics. Stats *string `location:"querystring" locationName:"stats" type:"string"` } @@ -746,6 +875,90 @@ func (s *SearchInput) Validate() error { return nil } +// SetCursor sets the Cursor field's value. +func (s *SearchInput) SetCursor(v string) *SearchInput { + s.Cursor = &v + return s +} + +// SetExpr sets the Expr field's value. +func (s *SearchInput) SetExpr(v string) *SearchInput { + s.Expr = &v + return s +} + +// SetFacet sets the Facet field's value. +func (s *SearchInput) SetFacet(v string) *SearchInput { + s.Facet = &v + return s +} + +// SetFilterQuery sets the FilterQuery field's value. +func (s *SearchInput) SetFilterQuery(v string) *SearchInput { + s.FilterQuery = &v + return s +} + +// SetHighlight sets the Highlight field's value. +func (s *SearchInput) SetHighlight(v string) *SearchInput { + s.Highlight = &v + return s +} + +// SetPartial sets the Partial field's value. +func (s *SearchInput) SetPartial(v bool) *SearchInput { + s.Partial = &v + return s +} + +// SetQuery sets the Query field's value. +func (s *SearchInput) SetQuery(v string) *SearchInput { + s.Query = &v + return s +} + +// SetQueryOptions sets the QueryOptions field's value. +func (s *SearchInput) SetQueryOptions(v string) *SearchInput { + s.QueryOptions = &v + return s +} + +// SetQueryParser sets the QueryParser field's value. +func (s *SearchInput) SetQueryParser(v string) *SearchInput { + s.QueryParser = &v + return s +} + +// SetReturn sets the Return field's value. +func (s *SearchInput) SetReturn(v string) *SearchInput { + s.Return = &v + return s +} + +// SetSize sets the Size field's value. +func (s *SearchInput) SetSize(v int64) *SearchInput { + s.Size = &v + return s +} + +// SetSort sets the Sort field's value. +func (s *SearchInput) SetSort(v string) *SearchInput { + s.Sort = &v + return s +} + +// SetStart sets the Start field's value. +func (s *SearchInput) SetStart(v int64) *SearchInput { + s.Start = &v + return s +} + +// SetStats sets the Stats field's value. +func (s *SearchInput) SetStats(v string) *SearchInput { + s.Stats = &v + return s +} + // The result of a Search request. Contains the documents that match the specified // search criteria and any requested fields, highlights, and facet information. type SearchOutput struct { @@ -774,6 +987,30 @@ func (s SearchOutput) GoString() string { return s.String() } +// SetFacets sets the Facets field's value. +func (s *SearchOutput) SetFacets(v map[string]*BucketInfo) *SearchOutput { + s.Facets = v + return s +} + +// SetHits sets the Hits field's value. +func (s *SearchOutput) SetHits(v *Hits) *SearchOutput { + s.Hits = v + return s +} + +// SetStats sets the Stats field's value. +func (s *SearchOutput) SetStats(v map[string]*FieldStats) *SearchOutput { + s.Stats = v + return s +} + +// SetStatus sets the Status field's value. +func (s *SearchOutput) SetStatus(v *SearchStatus) *SearchOutput { + s.Status = v + return s +} + // Contains the resource id (rid) and the time it took to process the request // (timems). type SearchStatus struct { @@ -796,6 +1033,18 @@ func (s SearchStatus) GoString() string { return s.String() } +// SetRid sets the Rid field's value. +func (s *SearchStatus) SetRid(v string) *SearchStatus { + s.Rid = &v + return s +} + +// SetTimems sets the Timems field's value. +func (s *SearchStatus) SetTimems(v int64) *SearchStatus { + s.Timems = &v + return s +} + // Container for the parameters to the Suggest request. type SuggestInput struct { _ struct{} `type:"structure"` @@ -840,6 +1089,24 @@ func (s *SuggestInput) Validate() error { return nil } +// SetQuery sets the Query field's value. +func (s *SuggestInput) SetQuery(v string) *SuggestInput { + s.Query = &v + return s +} + +// SetSize sets the Size field's value. +func (s *SuggestInput) SetSize(v int64) *SuggestInput { + s.Size = &v + return s +} + +// SetSuggester sets the Suggester field's value. +func (s *SuggestInput) SetSuggester(v string) *SuggestInput { + s.Suggester = &v + return s +} + // Container for the suggestion information returned in a SuggestResponse. type SuggestModel struct { _ struct{} `type:"structure"` @@ -864,6 +1131,24 @@ func (s SuggestModel) GoString() string { return s.String() } +// SetFound sets the Found field's value. +func (s *SuggestModel) SetFound(v int64) *SuggestModel { + s.Found = &v + return s +} + +// SetQuery sets the Query field's value. +func (s *SuggestModel) SetQuery(v string) *SuggestModel { + s.Query = &v + return s +} + +// SetSuggestions sets the Suggestions field's value. +func (s *SuggestModel) SetSuggestions(v []*SuggestionMatch) *SuggestModel { + s.Suggestions = v + return s +} + // Contains the response to a Suggest request. type SuggestOutput struct { _ struct{} `type:"structure"` @@ -886,6 +1171,18 @@ func (s SuggestOutput) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *SuggestOutput) SetStatus(v *SuggestStatus) *SuggestOutput { + s.Status = v + return s +} + +// SetSuggest sets the Suggest field's value. +func (s *SuggestOutput) SetSuggest(v *SuggestModel) *SuggestOutput { + s.Suggest = v + return s +} + // Contains the resource id (rid) and the time it took to process the request // (timems). type SuggestStatus struct { @@ -908,6 +1205,18 @@ func (s SuggestStatus) GoString() string { return s.String() } +// SetRid sets the Rid field's value. +func (s *SuggestStatus) SetRid(v string) *SuggestStatus { + s.Rid = &v + return s +} + +// SetTimems sets the Timems field's value. +func (s *SuggestStatus) SetTimems(v int64) *SuggestStatus { + s.Timems = &v + return s +} + // An autocomplete suggestion that matches the query string specified in a SuggestRequest. type SuggestionMatch struct { _ struct{} `type:"structure"` @@ -932,6 +1241,24 @@ func (s SuggestionMatch) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *SuggestionMatch) SetId(v string) *SuggestionMatch { + s.Id = &v + return s +} + +// SetScore sets the Score field's value. +func (s *SuggestionMatch) SetScore(v int64) *SuggestionMatch { + s.Score = &v + return s +} + +// SetSuggestion sets the Suggestion field's value. +func (s *SuggestionMatch) SetSuggestion(v string) *SuggestionMatch { + s.Suggestion = &v + return s +} + // Container for the parameters to the UploadDocuments request. type UploadDocumentsInput struct { _ struct{} `type:"structure" payload:"Documents"` @@ -939,7 +1266,8 @@ type UploadDocumentsInput struct { // The format of the batch you are uploading. Amazon CloudSearch supports two // document batch formats: // - // application/json application/xml + // * application/json + // * application/xml // // ContentType is a required field ContentType *string `location:"header" locationName:"Content-Type" type:"string" required:"true" enum:"ContentType"` @@ -976,6 +1304,18 @@ func (s *UploadDocumentsInput) Validate() error { return nil } +// SetContentType sets the ContentType field's value. +func (s *UploadDocumentsInput) SetContentType(v string) *UploadDocumentsInput { + s.ContentType = &v + return s +} + +// SetDocuments sets the Documents field's value. +func (s *UploadDocumentsInput) SetDocuments(v io.ReadSeeker) *UploadDocumentsInput { + s.Documents = v + return s +} + // Contains the response to an UploadDocuments request. type UploadDocumentsOutput struct { _ struct{} `type:"structure"` @@ -1003,6 +1343,30 @@ func (s UploadDocumentsOutput) GoString() string { return s.String() } +// SetAdds sets the Adds field's value. +func (s *UploadDocumentsOutput) SetAdds(v int64) *UploadDocumentsOutput { + s.Adds = &v + return s +} + +// SetDeletes sets the Deletes field's value. +func (s *UploadDocumentsOutput) SetDeletes(v int64) *UploadDocumentsOutput { + s.Deletes = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *UploadDocumentsOutput) SetStatus(v string) *UploadDocumentsOutput { + s.Status = &v + return s +} + +// SetWarnings sets the Warnings field's value. +func (s *UploadDocumentsOutput) SetWarnings(v []*DocumentServiceWarning) *UploadDocumentsOutput { + s.Warnings = v + return s +} + const ( // ContentTypeApplicationJson is a ContentType enum value ContentTypeApplicationJson = "application/json" diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface/interface.go index a1fef6c86..f085c2da3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCloudSearchDomainClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/customizations_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/customizations_test.go index 49bfeb8b4..73b840da7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/customizations_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/customizations_test.go @@ -25,7 +25,6 @@ func TestRequireEndpointIfRegionProvided(t *testing.T) { func TestRequireEndpointIfNoRegionProvided(t *testing.T) { svc := cloudsearchdomain.New(unit.Session, &aws.Config{ - Region: aws.String(""), DisableParamValidation: aws.Bool(true), }) req, _ := svc.SearchRequest(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/errors.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/errors.go new file mode 100644 index 000000000..30e46eae6 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/errors.go @@ -0,0 +1,18 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cloudsearchdomain + +const ( + + // ErrCodeDocumentServiceException for service response error code + // "DocumentServiceException". + // + // Information about any problems encountered while processing an upload request. + ErrCodeDocumentServiceException = "DocumentServiceException" + + // ErrCodeSearchException for service response error code + // "SearchException". + // + // Information about any problems encountered while processing a search request. + ErrCodeSearchException = "SearchException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/examples_test.go index 6588fa3e3..64affe1fa 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudSearchDomain_Search() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearchdomain.New(sess) @@ -54,11 +50,7 @@ func ExampleCloudSearchDomain_Search() { } func ExampleCloudSearchDomain_Suggest() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearchdomain.New(sess) @@ -81,11 +73,7 @@ func ExampleCloudSearchDomain_Suggest() { } func ExampleCloudSearchDomain_UploadDocuments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudsearchdomain.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/service.go index 1ac8e7ba4..98ddeba81 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/service.go @@ -21,7 +21,7 @@ import ( // You submit suggest requests to the search endpoint. // // For more information, see the Amazon CloudSearch Developer Guide (http://docs.aws.amazon.com/cloudsearch/latest/developerguide). -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type CloudSearchDomain struct { *client.Client @@ -33,8 +33,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "cloudsearchdomain" +// Service information constants +const ( + ServiceName = "cloudsearchdomain" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the CloudSearchDomain client with a session. // If additional configuration is needed for the client instance use the optional @@ -47,21 +50,30 @@ const ServiceName = "cloudsearchdomain" // // Create a CloudSearchDomain client with additional configuration // svc := cloudsearchdomain.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudSearchDomain { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + var c client.Config + if v, ok := p.(client.ConfigNoResolveEndpointProvider); ok { + c = v.ClientConfigNoResolveEndpoint(cfgs...) + } else { + c = p.ClientConfig(EndpointsID, cfgs...) + } + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CloudSearchDomain { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CloudSearchDomain { + if len(signingName) == 0 { + signingName = "cloudsearch" + } svc := &CloudSearchDomain{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, - SigningName: "cloudsearch", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2013-01-01", + JSONVersion: "1.1", }, handlers, ), diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/api.go index ebccedbd6..f3ada2c13 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/api.go @@ -37,6 +37,7 @@ const opAddTags = "AddTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AddTags func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) { op := &request.Operation{ Name: opAddTags, @@ -48,15 +49,14 @@ func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request, input = &AddTagsInput{} } - req = c.newRequest(op, input, output) output = &AddTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // AddTags API operation for AWS CloudTrail. // -// Adds one or more tags to a trail, up to a limit of 10. Tags must be unique +// Adds one or more tags to a trail, up to a limit of 50. Tags must be unique // per trail. Overwrites an existing tag's value when a new value is specified // for an existing tag key. If you specify a key without a value, the tag will // be created with the specified key and a value of null. You can tag a trail @@ -71,49 +71,50 @@ func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request, // API operation AddTags for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the specified resource is not found. // -// * ARNInvalidException +// * ErrCodeARNInvalidException "ARNInvalidException" // This exception is thrown when an operation is called with an invalid trail // ARN. The format of a trail ARN is: // -// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail +// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // -// * ResourceTypeNotSupportedException +// * ErrCodeResourceTypeNotSupportedException "ResourceTypeNotSupportedException" // This exception is thrown when the specified resource type is not supported // by CloudTrail. // -// * TagsLimitExceededException +// * ErrCodeTagsLimitExceededException "TagsLimitExceededException" // The number of tags per trail has exceeded the permitted amount. Currently, -// the limit is 10. +// the limit is 50. // -// * InvalidTrailNameException +// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // -// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores -// (_), or dashes (-) +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) // -// Start with a letter or number, and end with a letter or number +// * Start with a letter or number, and end with a letter or number // -// Be between 3 and 128 characters +// * Be between 3 and 128 characters // -// Have no adjacent periods, underscores or dashes. Names like my-_namespace -// and my--namespace are invalid. +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. // -// Not be in IP address format (for example, 192.168.5.4) +// * Not be in IP address format (for example, 192.168.5.4) // -// * InvalidTagParameterException +// * ErrCodeInvalidTagParameterException "InvalidTagParameterException" // This exception is thrown when the key or value specified for the tag does // not match the regular expression ^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // This exception is thrown when the requested operation is not supported. // -// * OperationNotPermittedException +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" // This exception is thrown when the requested operation is not permitted. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AddTags func (c *CloudTrail) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) err := req.Send() @@ -146,6 +147,7 @@ const opCreateTrail = "CreateTrail" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateTrail func (c *CloudTrail) CreateTrailRequest(input *CreateTrailInput) (req *request.Request, output *CreateTrailOutput) { op := &request.Operation{ Name: opCreateTrail, @@ -157,9 +159,8 @@ func (c *CloudTrail) CreateTrailRequest(input *CreateTrailInput) (req *request.R input = &CreateTrailInput{} } - req = c.newRequest(op, input, output) output = &CreateTrailOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -177,86 +178,87 @@ func (c *CloudTrail) CreateTrailRequest(input *CreateTrailInput) (req *request.R // API operation CreateTrail for usage and error information. // // Returned Error Codes: -// * MaximumNumberOfTrailsExceededException +// * ErrCodeMaximumNumberOfTrailsExceededException "MaximumNumberOfTrailsExceededException" // This exception is thrown when the maximum number of trails is reached. // -// * TrailAlreadyExistsException +// * ErrCodeTrailAlreadyExistsException "TrailAlreadyExistsException" // This exception is thrown when the specified trail already exists. // -// * S3BucketDoesNotExistException +// * ErrCodeS3BucketDoesNotExistException "S3BucketDoesNotExistException" // This exception is thrown when the specified S3 bucket does not exist. // -// * InsufficientS3BucketPolicyException +// * ErrCodeInsufficientS3BucketPolicyException "InsufficientS3BucketPolicyException" // This exception is thrown when the policy on the S3 bucket is not sufficient. // -// * InsufficientSnsTopicPolicyException +// * ErrCodeInsufficientSnsTopicPolicyException "InsufficientSnsTopicPolicyException" // This exception is thrown when the policy on the SNS topic is not sufficient. // -// * InsufficientEncryptionPolicyException +// * ErrCodeInsufficientEncryptionPolicyException "InsufficientEncryptionPolicyException" // This exception is thrown when the policy on the S3 bucket or KMS key is not // sufficient. // -// * InvalidS3BucketNameException +// * ErrCodeInvalidS3BucketNameException "InvalidS3BucketNameException" // This exception is thrown when the provided S3 bucket name is not valid. // -// * InvalidS3PrefixException +// * ErrCodeInvalidS3PrefixException "InvalidS3PrefixException" // This exception is thrown when the provided S3 prefix is not valid. // -// * InvalidSnsTopicNameException +// * ErrCodeInvalidSnsTopicNameException "InvalidSnsTopicNameException" // This exception is thrown when the provided SNS topic name is not valid. // -// * InvalidKmsKeyIdException +// * ErrCodeInvalidKmsKeyIdException "InvalidKmsKeyIdException" // This exception is thrown when the KMS key ARN is invalid. // -// * InvalidTrailNameException +// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // -// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores -// (_), or dashes (-) +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) // -// Start with a letter or number, and end with a letter or number +// * Start with a letter or number, and end with a letter or number // -// Be between 3 and 128 characters +// * Be between 3 and 128 characters // -// Have no adjacent periods, underscores or dashes. Names like my-_namespace -// and my--namespace are invalid. +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. // -// Not be in IP address format (for example, 192.168.5.4) +// * Not be in IP address format (for example, 192.168.5.4) // -// * TrailNotProvidedException +// * ErrCodeTrailNotProvidedException "TrailNotProvidedException" // This exception is deprecated. // -// * InvalidParameterCombinationException +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" // This exception is thrown when the combination of parameters provided is not // valid. // -// * KmsKeyNotFoundException +// * ErrCodeKmsKeyNotFoundException "KmsKeyNotFoundException" // This exception is thrown when the KMS key does not exist, or when the S3 // bucket and the KMS key are not in the same region. // -// * KmsKeyDisabledException +// * ErrCodeKmsKeyDisabledException "KmsKeyDisabledException" // This exception is deprecated. // -// * KmsException +// * ErrCodeKmsException "KmsException" // This exception is thrown when there is an issue with the specified KMS key // and the trail can’t be updated. // -// * InvalidCloudWatchLogsLogGroupArnException +// * ErrCodeInvalidCloudWatchLogsLogGroupArnException "InvalidCloudWatchLogsLogGroupArnException" // This exception is thrown when the provided CloudWatch log group is not valid. // -// * InvalidCloudWatchLogsRoleArnException +// * ErrCodeInvalidCloudWatchLogsRoleArnException "InvalidCloudWatchLogsRoleArnException" // This exception is thrown when the provided role is not valid. // -// * CloudWatchLogsDeliveryUnavailableException +// * ErrCodeCloudWatchLogsDeliveryUnavailableException "CloudWatchLogsDeliveryUnavailableException" // Cannot set a CloudWatch Logs delivery for this region. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // This exception is thrown when the requested operation is not supported. // -// * OperationNotPermittedException +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" // This exception is thrown when the requested operation is not permitted. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateTrail func (c *CloudTrail) CreateTrail(input *CreateTrailInput) (*CreateTrailOutput, error) { req, out := c.CreateTrailRequest(input) err := req.Send() @@ -289,6 +291,7 @@ const opDeleteTrail = "DeleteTrail" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteTrail func (c *CloudTrail) DeleteTrailRequest(input *DeleteTrailInput) (req *request.Request, output *DeleteTrailOutput) { op := &request.Operation{ Name: opDeleteTrail, @@ -300,9 +303,8 @@ func (c *CloudTrail) DeleteTrailRequest(input *DeleteTrailInput) (req *request.R input = &DeleteTrailInput{} } - req = c.newRequest(op, input, output) output = &DeleteTrailOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -320,29 +322,30 @@ func (c *CloudTrail) DeleteTrailRequest(input *DeleteTrailInput) (req *request.R // API operation DeleteTrail for usage and error information. // // Returned Error Codes: -// * TrailNotFoundException +// * ErrCodeTrailNotFoundException "TrailNotFoundException" // This exception is thrown when the trail with the given name is not found. // -// * InvalidTrailNameException +// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // -// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores -// (_), or dashes (-) +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) // -// Start with a letter or number, and end with a letter or number +// * Start with a letter or number, and end with a letter or number // -// Be between 3 and 128 characters +// * Be between 3 and 128 characters // -// Have no adjacent periods, underscores or dashes. Names like my-_namespace -// and my--namespace are invalid. +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. // -// Not be in IP address format (for example, 192.168.5.4) +// * Not be in IP address format (for example, 192.168.5.4) // -// * InvalidHomeRegionException +// * ErrCodeInvalidHomeRegionException "InvalidHomeRegionException" // This exception is thrown when an operation is called on a trail from a region // other than the region in which the trail was created. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteTrail func (c *CloudTrail) DeleteTrail(input *DeleteTrailInput) (*DeleteTrailOutput, error) { req, out := c.DeleteTrailRequest(input) err := req.Send() @@ -375,6 +378,7 @@ const opDescribeTrails = "DescribeTrails" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeTrails func (c *CloudTrail) DescribeTrailsRequest(input *DescribeTrailsInput) (req *request.Request, output *DescribeTrailsOutput) { op := &request.Operation{ Name: opDescribeTrails, @@ -386,9 +390,8 @@ func (c *CloudTrail) DescribeTrailsRequest(input *DescribeTrailsInput) (req *req input = &DescribeTrailsInput{} } - req = c.newRequest(op, input, output) output = &DescribeTrailsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -405,18 +408,118 @@ func (c *CloudTrail) DescribeTrailsRequest(input *DescribeTrailsInput) (req *req // API operation DescribeTrails for usage and error information. // // Returned Error Codes: -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // This exception is thrown when the requested operation is not supported. // -// * OperationNotPermittedException +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" // This exception is thrown when the requested operation is not permitted. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeTrails func (c *CloudTrail) DescribeTrails(input *DescribeTrailsInput) (*DescribeTrailsOutput, error) { req, out := c.DescribeTrailsRequest(input) err := req.Send() return out, err } +const opGetEventSelectors = "GetEventSelectors" + +// GetEventSelectorsRequest generates a "aws/request.Request" representing the +// client's request for the GetEventSelectors operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetEventSelectors for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetEventSelectors method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetEventSelectorsRequest method. +// req, resp := client.GetEventSelectorsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventSelectors +func (c *CloudTrail) GetEventSelectorsRequest(input *GetEventSelectorsInput) (req *request.Request, output *GetEventSelectorsOutput) { + op := &request.Operation{ + Name: opGetEventSelectors, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetEventSelectorsInput{} + } + + output = &GetEventSelectorsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetEventSelectors API operation for AWS CloudTrail. +// +// Describes the settings for the event selectors that you configured for your +// trail. The information returned for your event selectors includes the following: +// +// * The S3 objects that you are logging for data events. +// +// * If your event selector includes management events. +// +// * If your event selector includes read-only events, write-only events, +// or all. +// +// For more information, see Logging Data and Management Events for Trails +// (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html) +// in the AWS CloudTrail User Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation GetEventSelectors for usage and error information. +// +// Returned Error Codes: +// * ErrCodeTrailNotFoundException "TrailNotFoundException" +// This exception is thrown when the trail with the given name is not found. +// +// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" +// This exception is thrown when the provided trail name is not valid. Trail +// names must meet the following requirements: +// +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) +// +// * Start with a letter or number, and end with a letter or number +// +// * Be between 3 and 128 characters +// +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. +// +// * Not be in IP address format (for example, 192.168.5.4) +// +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// This exception is thrown when the requested operation is not supported. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This exception is thrown when the requested operation is not permitted. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventSelectors +func (c *CloudTrail) GetEventSelectors(input *GetEventSelectorsInput) (*GetEventSelectorsOutput, error) { + req, out := c.GetEventSelectorsRequest(input) + err := req.Send() + return out, err +} + const opGetTrailStatus = "GetTrailStatus" // GetTrailStatusRequest generates a "aws/request.Request" representing the @@ -443,6 +546,7 @@ const opGetTrailStatus = "GetTrailStatus" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetTrailStatus func (c *CloudTrail) GetTrailStatusRequest(input *GetTrailStatusInput) (req *request.Request, output *GetTrailStatusOutput) { op := &request.Operation{ Name: opGetTrailStatus, @@ -454,9 +558,8 @@ func (c *CloudTrail) GetTrailStatusRequest(input *GetTrailStatusInput) (req *req input = &GetTrailStatusInput{} } - req = c.newRequest(op, input, output) output = &GetTrailStatusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -476,25 +579,26 @@ func (c *CloudTrail) GetTrailStatusRequest(input *GetTrailStatusInput) (req *req // API operation GetTrailStatus for usage and error information. // // Returned Error Codes: -// * TrailNotFoundException +// * ErrCodeTrailNotFoundException "TrailNotFoundException" // This exception is thrown when the trail with the given name is not found. // -// * InvalidTrailNameException +// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // -// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores -// (_), or dashes (-) +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) // -// Start with a letter or number, and end with a letter or number +// * Start with a letter or number, and end with a letter or number // -// Be between 3 and 128 characters +// * Be between 3 and 128 characters // -// Have no adjacent periods, underscores or dashes. Names like my-_namespace -// and my--namespace are invalid. +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. // -// Not be in IP address format (for example, 192.168.5.4) +// * Not be in IP address format (for example, 192.168.5.4) // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetTrailStatus func (c *CloudTrail) GetTrailStatus(input *GetTrailStatusInput) (*GetTrailStatusOutput, error) { req, out := c.GetTrailStatusRequest(input) err := req.Send() @@ -527,6 +631,7 @@ const opListPublicKeys = "ListPublicKeys" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListPublicKeys func (c *CloudTrail) ListPublicKeysRequest(input *ListPublicKeysInput) (req *request.Request, output *ListPublicKeysOutput) { op := &request.Operation{ Name: opListPublicKeys, @@ -538,9 +643,8 @@ func (c *CloudTrail) ListPublicKeysRequest(input *ListPublicKeysInput) (req *req input = &ListPublicKeysInput{} } - req = c.newRequest(op, input, output) output = &ListPublicKeysOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -550,7 +654,7 @@ func (c *CloudTrail) ListPublicKeysRequest(input *ListPublicKeysInput) (req *req // within the specified time range. The public key is needed to validate digest // files that were signed with its corresponding private key. // -// CloudTrail uses different private/public key pairs per region. Each digest +// CloudTrail uses different private/public key pairs per region. Each digest // file is signed with a private key unique to its region. Therefore, when you // validate a digest file from a particular region, you must look in the same // region for its corresponding public key. @@ -563,19 +667,20 @@ func (c *CloudTrail) ListPublicKeysRequest(input *ListPublicKeysInput) (req *req // API operation ListPublicKeys for usage and error information. // // Returned Error Codes: -// * InvalidTimeRangeException +// * ErrCodeInvalidTimeRangeException "InvalidTimeRangeException" // Occurs if the timestamp values are invalid. Either the start time occurs // after the end time or the time range is outside the range of possible values. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // This exception is thrown when the requested operation is not supported. // -// * OperationNotPermittedException +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" // This exception is thrown when the requested operation is not permitted. // -// * InvalidTokenException +// * ErrCodeInvalidTokenException "InvalidTokenException" // Reserved for future use. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListPublicKeys func (c *CloudTrail) ListPublicKeys(input *ListPublicKeysInput) (*ListPublicKeysOutput, error) { req, out := c.ListPublicKeysRequest(input) err := req.Send() @@ -608,6 +713,7 @@ const opListTags = "ListTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListTags func (c *CloudTrail) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) { op := &request.Operation{ Name: opListTags, @@ -619,9 +725,8 @@ func (c *CloudTrail) ListTagsRequest(input *ListTagsInput) (req *request.Request input = &ListTagsInput{} } - req = c.newRequest(op, input, output) output = &ListTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -637,44 +742,45 @@ func (c *CloudTrail) ListTagsRequest(input *ListTagsInput) (req *request.Request // API operation ListTags for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the specified resource is not found. // -// * ARNInvalidException +// * ErrCodeARNInvalidException "ARNInvalidException" // This exception is thrown when an operation is called with an invalid trail // ARN. The format of a trail ARN is: // -// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail +// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // -// * ResourceTypeNotSupportedException +// * ErrCodeResourceTypeNotSupportedException "ResourceTypeNotSupportedException" // This exception is thrown when the specified resource type is not supported // by CloudTrail. // -// * InvalidTrailNameException +// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // -// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores -// (_), or dashes (-) +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) // -// Start with a letter or number, and end with a letter or number +// * Start with a letter or number, and end with a letter or number // -// Be between 3 and 128 characters +// * Be between 3 and 128 characters // -// Have no adjacent periods, underscores or dashes. Names like my-_namespace -// and my--namespace are invalid. +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. // -// Not be in IP address format (for example, 192.168.5.4) +// * Not be in IP address format (for example, 192.168.5.4) // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // This exception is thrown when the requested operation is not supported. // -// * OperationNotPermittedException +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" // This exception is thrown when the requested operation is not permitted. // -// * InvalidTokenException +// * ErrCodeInvalidTokenException "InvalidTokenException" // Reserved for future use. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListTags func (c *CloudTrail) ListTags(input *ListTagsInput) (*ListTagsOutput, error) { req, out := c.ListTagsRequest(input) err := req.Send() @@ -707,20 +813,26 @@ const opLookupEvents = "LookupEvents" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/LookupEvents func (c *CloudTrail) LookupEventsRequest(input *LookupEventsInput) (req *request.Request, output *LookupEventsOutput) { op := &request.Operation{ Name: opLookupEvents, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { input = &LookupEventsInput{} } - req = c.newRequest(op, input, output) output = &LookupEventsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -729,18 +841,28 @@ func (c *CloudTrail) LookupEventsRequest(input *LookupEventsInput) (req *request // Looks up API activity events captured by CloudTrail that create, update, // or delete resources in your account. Events for a region can be looked up // for the times in which you had CloudTrail turned on in that region during -// the last seven days. Lookup supports five different attributes: time range -// (defined by a start time and end time), user name, event name, resource type, -// and resource name. All attributes are optional. The maximum number of attributes -// that can be specified in any one lookup request are time range and one other -// attribute. The default number of results returned is 10, with a maximum of -// 50 possible. The response includes a token that you can use to get the next -// page of results. -// -// The rate of lookup requests is limited to one per second per account. If +// the last seven days. Lookup supports the following attributes: +// +// * Event ID +// +// * Event name +// +// * Event source +// +// * Resource name +// +// * Resource type +// +// * User name +// +// All attributes are optional. The default number of results returned is 10, +// with a maximum of 50 possible. The response includes a token that you can +// use to get the next page of results. +// +// The rate of lookup requests is limited to one per second per account. If // this limit is exceeded, a throttling error occurs. // -// Events that occurred during the selected time range will not be available +// Events that occurred during the selected time range will not be available // for lookup if CloudTrail logging was not enabled when the events occurred. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -751,26 +873,182 @@ func (c *CloudTrail) LookupEventsRequest(input *LookupEventsInput) (req *request // API operation LookupEvents for usage and error information. // // Returned Error Codes: -// * InvalidLookupAttributesException +// * ErrCodeInvalidLookupAttributesException "InvalidLookupAttributesException" // Occurs when an invalid lookup attribute is specified. // -// * InvalidTimeRangeException +// * ErrCodeInvalidTimeRangeException "InvalidTimeRangeException" // Occurs if the timestamp values are invalid. Either the start time occurs // after the end time or the time range is outside the range of possible values. // -// * InvalidMaxResultsException +// * ErrCodeInvalidMaxResultsException "InvalidMaxResultsException" // This exception is thrown if the limit specified is invalid. // -// * InvalidNextTokenException +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" // Invalid token or token that was previously used in a request with different // parameters. This exception is thrown if the token is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/LookupEvents func (c *CloudTrail) LookupEvents(input *LookupEventsInput) (*LookupEventsOutput, error) { req, out := c.LookupEventsRequest(input) err := req.Send() return out, err } +// LookupEventsPages iterates over the pages of a LookupEvents operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See LookupEvents method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a LookupEvents operation. +// pageNum := 0 +// err := client.LookupEventsPages(params, +// func(page *LookupEventsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CloudTrail) LookupEventsPages(input *LookupEventsInput, fn func(p *LookupEventsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.LookupEventsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*LookupEventsOutput), lastPage) + }) +} + +const opPutEventSelectors = "PutEventSelectors" + +// PutEventSelectorsRequest generates a "aws/request.Request" representing the +// client's request for the PutEventSelectors operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See PutEventSelectors for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the PutEventSelectors method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the PutEventSelectorsRequest method. +// req, resp := client.PutEventSelectorsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventSelectors +func (c *CloudTrail) PutEventSelectorsRequest(input *PutEventSelectorsInput) (req *request.Request, output *PutEventSelectorsOutput) { + op := &request.Operation{ + Name: opPutEventSelectors, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PutEventSelectorsInput{} + } + + output = &PutEventSelectorsOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutEventSelectors API operation for AWS CloudTrail. +// +// Configures an event selector for your trail. Use event selectors to specify +// whether you want your trail to log management and/or data events. When an +// event occurs in your account, CloudTrail evaluates the event selectors in +// all trails. For each trail, if the event matches any event selector, the +// trail processes and logs the event. If the event doesn't match any event +// selector, the trail doesn't log the event. +// +// Example +// +// You create an event selector for a trail and specify that you want write-only +// events. +// +// The EC2 GetConsoleOutput and RunInstances API operations occur in your account. +// +// CloudTrail evaluates whether the events match your event selectors. +// +// The RunInstances is a write-only event and it matches your event selector. +// The trail logs the event. +// +// The GetConsoleOutput is a read-only event but it doesn't match your event +// selector. The trail doesn't log the event. +// +// The PutEventSelectors operation must be called from the region in which the +// trail was created; otherwise, an InvalidHomeRegionException is thrown. +// +// You can configure up to five event selectors for each trail. For more information, +// see Logging Data and Management Events for Trails (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html) +// in the AWS CloudTrail User Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation PutEventSelectors for usage and error information. +// +// Returned Error Codes: +// * ErrCodeTrailNotFoundException "TrailNotFoundException" +// This exception is thrown when the trail with the given name is not found. +// +// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" +// This exception is thrown when the provided trail name is not valid. Trail +// names must meet the following requirements: +// +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) +// +// * Start with a letter or number, and end with a letter or number +// +// * Be between 3 and 128 characters +// +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. +// +// * Not be in IP address format (for example, 192.168.5.4) +// +// * ErrCodeInvalidHomeRegionException "InvalidHomeRegionException" +// This exception is thrown when an operation is called on a trail from a region +// other than the region in which the trail was created. +// +// * ErrCodeInvalidEventSelectorsException "InvalidEventSelectorsException" +// This exception is thrown when the PutEventSelectors operation is called with +// an invalid number of event selectors, data resources, or an invalid value +// for a parameter: +// +// * Specify a valid number of event selectors (1 to 5) for a trail. +// +// * Specify a valid number of data resources (1 to 250) for an event selector. +// +// * Specify a valid value for a parameter. For example, specifying the ReadWriteType +// parameter with a value of read-only is invalid. +// +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// This exception is thrown when the requested operation is not supported. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This exception is thrown when the requested operation is not permitted. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventSelectors +func (c *CloudTrail) PutEventSelectors(input *PutEventSelectorsInput) (*PutEventSelectorsOutput, error) { + req, out := c.PutEventSelectorsRequest(input) + err := req.Send() + return out, err +} + const opRemoveTags = "RemoveTags" // RemoveTagsRequest generates a "aws/request.Request" representing the @@ -797,6 +1075,7 @@ const opRemoveTags = "RemoveTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/RemoveTags func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) { op := &request.Operation{ Name: opRemoveTags, @@ -808,9 +1087,8 @@ func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Req input = &RemoveTagsInput{} } - req = c.newRequest(op, input, output) output = &RemoveTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -826,45 +1104,46 @@ func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Req // API operation RemoveTags for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the specified resource is not found. // -// * ARNInvalidException +// * ErrCodeARNInvalidException "ARNInvalidException" // This exception is thrown when an operation is called with an invalid trail // ARN. The format of a trail ARN is: // -// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail +// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // -// * ResourceTypeNotSupportedException +// * ErrCodeResourceTypeNotSupportedException "ResourceTypeNotSupportedException" // This exception is thrown when the specified resource type is not supported // by CloudTrail. // -// * InvalidTrailNameException +// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // -// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores -// (_), or dashes (-) +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) // -// Start with a letter or number, and end with a letter or number +// * Start with a letter or number, and end with a letter or number // -// Be between 3 and 128 characters +// * Be between 3 and 128 characters // -// Have no adjacent periods, underscores or dashes. Names like my-_namespace -// and my--namespace are invalid. +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. // -// Not be in IP address format (for example, 192.168.5.4) +// * Not be in IP address format (for example, 192.168.5.4) // -// * InvalidTagParameterException +// * ErrCodeInvalidTagParameterException "InvalidTagParameterException" // This exception is thrown when the key or value specified for the tag does // not match the regular expression ^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // This exception is thrown when the requested operation is not supported. // -// * OperationNotPermittedException +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" // This exception is thrown when the requested operation is not permitted. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/RemoveTags func (c *CloudTrail) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { req, out := c.RemoveTagsRequest(input) err := req.Send() @@ -897,6 +1176,7 @@ const opStartLogging = "StartLogging" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StartLogging func (c *CloudTrail) StartLoggingRequest(input *StartLoggingInput) (req *request.Request, output *StartLoggingOutput) { op := &request.Operation{ Name: opStartLogging, @@ -908,9 +1188,8 @@ func (c *CloudTrail) StartLoggingRequest(input *StartLoggingInput) (req *request input = &StartLoggingInput{} } - req = c.newRequest(op, input, output) output = &StartLoggingOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -930,29 +1209,30 @@ func (c *CloudTrail) StartLoggingRequest(input *StartLoggingInput) (req *request // API operation StartLogging for usage and error information. // // Returned Error Codes: -// * TrailNotFoundException +// * ErrCodeTrailNotFoundException "TrailNotFoundException" // This exception is thrown when the trail with the given name is not found. // -// * InvalidTrailNameException +// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // -// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores -// (_), or dashes (-) +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) // -// Start with a letter or number, and end with a letter or number +// * Start with a letter or number, and end with a letter or number // -// Be between 3 and 128 characters +// * Be between 3 and 128 characters // -// Have no adjacent periods, underscores or dashes. Names like my-_namespace -// and my--namespace are invalid. +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. // -// Not be in IP address format (for example, 192.168.5.4) +// * Not be in IP address format (for example, 192.168.5.4) // -// * InvalidHomeRegionException +// * ErrCodeInvalidHomeRegionException "InvalidHomeRegionException" // This exception is thrown when an operation is called on a trail from a region // other than the region in which the trail was created. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StartLogging func (c *CloudTrail) StartLogging(input *StartLoggingInput) (*StartLoggingOutput, error) { req, out := c.StartLoggingRequest(input) err := req.Send() @@ -985,6 +1265,7 @@ const opStopLogging = "StopLogging" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StopLogging func (c *CloudTrail) StopLoggingRequest(input *StopLoggingInput) (req *request.Request, output *StopLoggingOutput) { op := &request.Operation{ Name: opStopLogging, @@ -996,9 +1277,8 @@ func (c *CloudTrail) StopLoggingRequest(input *StopLoggingInput) (req *request.R input = &StopLoggingInput{} } - req = c.newRequest(op, input, output) output = &StopLoggingOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1020,29 +1300,30 @@ func (c *CloudTrail) StopLoggingRequest(input *StopLoggingInput) (req *request.R // API operation StopLogging for usage and error information. // // Returned Error Codes: -// * TrailNotFoundException +// * ErrCodeTrailNotFoundException "TrailNotFoundException" // This exception is thrown when the trail with the given name is not found. // -// * InvalidTrailNameException +// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // -// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores -// (_), or dashes (-) +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) // -// Start with a letter or number, and end with a letter or number +// * Start with a letter or number, and end with a letter or number // -// Be between 3 and 128 characters +// * Be between 3 and 128 characters // -// Have no adjacent periods, underscores or dashes. Names like my-_namespace -// and my--namespace are invalid. +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. // -// Not be in IP address format (for example, 192.168.5.4) +// * Not be in IP address format (for example, 192.168.5.4) // -// * InvalidHomeRegionException +// * ErrCodeInvalidHomeRegionException "InvalidHomeRegionException" // This exception is thrown when an operation is called on a trail from a region // other than the region in which the trail was created. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StopLogging func (c *CloudTrail) StopLogging(input *StopLoggingInput) (*StopLoggingOutput, error) { req, out := c.StopLoggingRequest(input) err := req.Send() @@ -1075,6 +1356,7 @@ const opUpdateTrail = "UpdateTrail" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateTrail func (c *CloudTrail) UpdateTrailRequest(input *UpdateTrailInput) (req *request.Request, output *UpdateTrailOutput) { op := &request.Operation{ Name: opUpdateTrail, @@ -1086,9 +1368,8 @@ func (c *CloudTrail) UpdateTrailRequest(input *UpdateTrailInput) (req *request.R input = &UpdateTrailInput{} } - req = c.newRequest(op, input, output) output = &UpdateTrailOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1109,87 +1390,88 @@ func (c *CloudTrail) UpdateTrailRequest(input *UpdateTrailInput) (req *request.R // API operation UpdateTrail for usage and error information. // // Returned Error Codes: -// * S3BucketDoesNotExistException +// * ErrCodeS3BucketDoesNotExistException "S3BucketDoesNotExistException" // This exception is thrown when the specified S3 bucket does not exist. // -// * InsufficientS3BucketPolicyException +// * ErrCodeInsufficientS3BucketPolicyException "InsufficientS3BucketPolicyException" // This exception is thrown when the policy on the S3 bucket is not sufficient. // -// * InsufficientSnsTopicPolicyException +// * ErrCodeInsufficientSnsTopicPolicyException "InsufficientSnsTopicPolicyException" // This exception is thrown when the policy on the SNS topic is not sufficient. // -// * InsufficientEncryptionPolicyException +// * ErrCodeInsufficientEncryptionPolicyException "InsufficientEncryptionPolicyException" // This exception is thrown when the policy on the S3 bucket or KMS key is not // sufficient. // -// * TrailNotFoundException +// * ErrCodeTrailNotFoundException "TrailNotFoundException" // This exception is thrown when the trail with the given name is not found. // -// * InvalidS3BucketNameException +// * ErrCodeInvalidS3BucketNameException "InvalidS3BucketNameException" // This exception is thrown when the provided S3 bucket name is not valid. // -// * InvalidS3PrefixException +// * ErrCodeInvalidS3PrefixException "InvalidS3PrefixException" // This exception is thrown when the provided S3 prefix is not valid. // -// * InvalidSnsTopicNameException +// * ErrCodeInvalidSnsTopicNameException "InvalidSnsTopicNameException" // This exception is thrown when the provided SNS topic name is not valid. // -// * InvalidKmsKeyIdException +// * ErrCodeInvalidKmsKeyIdException "InvalidKmsKeyIdException" // This exception is thrown when the KMS key ARN is invalid. // -// * InvalidTrailNameException +// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // -// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores -// (_), or dashes (-) +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) // -// Start with a letter or number, and end with a letter or number +// * Start with a letter or number, and end with a letter or number // -// Be between 3 and 128 characters +// * Be between 3 and 128 characters // -// Have no adjacent periods, underscores or dashes. Names like my-_namespace -// and my--namespace are invalid. +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. // -// Not be in IP address format (for example, 192.168.5.4) +// * Not be in IP address format (for example, 192.168.5.4) // -// * TrailNotProvidedException +// * ErrCodeTrailNotProvidedException "TrailNotProvidedException" // This exception is deprecated. // -// * InvalidParameterCombinationException +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" // This exception is thrown when the combination of parameters provided is not // valid. // -// * InvalidHomeRegionException +// * ErrCodeInvalidHomeRegionException "InvalidHomeRegionException" // This exception is thrown when an operation is called on a trail from a region // other than the region in which the trail was created. // -// * KmsKeyNotFoundException +// * ErrCodeKmsKeyNotFoundException "KmsKeyNotFoundException" // This exception is thrown when the KMS key does not exist, or when the S3 // bucket and the KMS key are not in the same region. // -// * KmsKeyDisabledException +// * ErrCodeKmsKeyDisabledException "KmsKeyDisabledException" // This exception is deprecated. // -// * KmsException +// * ErrCodeKmsException "KmsException" // This exception is thrown when there is an issue with the specified KMS key // and the trail can’t be updated. // -// * InvalidCloudWatchLogsLogGroupArnException +// * ErrCodeInvalidCloudWatchLogsLogGroupArnException "InvalidCloudWatchLogsLogGroupArnException" // This exception is thrown when the provided CloudWatch log group is not valid. // -// * InvalidCloudWatchLogsRoleArnException +// * ErrCodeInvalidCloudWatchLogsRoleArnException "InvalidCloudWatchLogsRoleArnException" // This exception is thrown when the provided role is not valid. // -// * CloudWatchLogsDeliveryUnavailableException +// * ErrCodeCloudWatchLogsDeliveryUnavailableException "CloudWatchLogsDeliveryUnavailableException" // Cannot set a CloudWatch Logs delivery for this region. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // This exception is thrown when the requested operation is not supported. // -// * OperationNotPermittedException +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" // This exception is thrown when the requested operation is not permitted. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateTrail func (c *CloudTrail) UpdateTrail(input *UpdateTrailInput) (*UpdateTrailOutput, error) { req, out := c.UpdateTrailRequest(input) err := req.Send() @@ -1197,18 +1479,19 @@ func (c *CloudTrail) UpdateTrail(input *UpdateTrailInput) (*UpdateTrailOutput, e } // Specifies the tags to add to a trail. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AddTagsRequest type AddTagsInput struct { _ struct{} `type:"structure"` // Specifies the ARN of the trail to which one or more tags will be added. The // format of a trail ARN is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // // ResourceId is a required field ResourceId *string `type:"string" required:"true"` - // Contains a list of CloudTrail tags, up to a limit of 10. + // Contains a list of CloudTrail tags, up to a limit of 50 TagsList []*Tag `type:"list"` } @@ -1245,8 +1528,21 @@ func (s *AddTagsInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *AddTagsInput) SetResourceId(v string) *AddTagsInput { + s.ResourceId = &v + return s +} + +// SetTagsList sets the TagsList field's value. +func (s *AddTagsInput) SetTagsList(v []*Tag) *AddTagsInput { + s.TagsList = v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AddTagsResponse type AddTagsOutput struct { _ struct{} `type:"structure"` } @@ -1262,6 +1558,7 @@ func (s AddTagsOutput) GoString() string { } // Specifies the settings for each trail. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateTrailRequest type CreateTrailInput struct { _ struct{} `type:"structure"` @@ -1277,7 +1574,7 @@ type CreateTrailInput struct { // Specifies whether log file integrity validation is enabled. The default is // false. // - // When you disable log file integrity validation, the chain of digest files + // When you disable log file integrity validation, the chain of digest files // is broken after one hour. CloudTrail will not create digest files for log // files that were delivered during a period in which log file integrity validation // was disabled. For example, if you enable log file integrity validation at @@ -1296,33 +1593,33 @@ type CreateTrailInput struct { IsMultiRegionTrail *bool `type:"boolean"` // Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. - // The value can be a an alias name prefixed by "alias/", a fully specified - // ARN to an alias, a fully specified ARN to a key, or a globally unique identifier. + // The value can be an alias name prefixed by "alias/", a fully specified ARN + // to an alias, a fully specified ARN to a key, or a globally unique identifier. // // Examples: // - // alias/MyAliasName + // * alias/MyAliasName // - // arn:aws:kms:us-east-1:123456789012:alias/MyAliasName + // * arn:aws:kms:us-east-1:123456789012:alias/MyAliasName // - // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // 12345678-1234-1234-1234-123456789012 + // * 12345678-1234-1234-1234-123456789012 KmsKeyId *string `type:"string"` // Specifies the name of the trail. The name must meet the following requirements: // - // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores - // (_), or dashes (-) + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores + // (_), or dashes (-) // - // Start with a letter or number, and end with a letter or number + // * Start with a letter or number, and end with a letter or number // - // Be between 3 and 128 characters + // * Be between 3 and 128 characters // - // Have no adjacent periods, underscores or dashes. Names like my-_namespace - // and my--namespace are invalid. + // * Have no adjacent periods, underscores or dashes. Names like my-_namespace + // and my--namespace are invalid. // - // Not be in IP address format (for example, 192.168.5.4) + // * Not be in IP address format (for example, 192.168.5.4) // // Name is a required field Name *string `type:"string" required:"true"` @@ -1370,8 +1667,69 @@ func (s *CreateTrailInput) Validate() error { return nil } +// SetCloudWatchLogsLogGroupArn sets the CloudWatchLogsLogGroupArn field's value. +func (s *CreateTrailInput) SetCloudWatchLogsLogGroupArn(v string) *CreateTrailInput { + s.CloudWatchLogsLogGroupArn = &v + return s +} + +// SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value. +func (s *CreateTrailInput) SetCloudWatchLogsRoleArn(v string) *CreateTrailInput { + s.CloudWatchLogsRoleArn = &v + return s +} + +// SetEnableLogFileValidation sets the EnableLogFileValidation field's value. +func (s *CreateTrailInput) SetEnableLogFileValidation(v bool) *CreateTrailInput { + s.EnableLogFileValidation = &v + return s +} + +// SetIncludeGlobalServiceEvents sets the IncludeGlobalServiceEvents field's value. +func (s *CreateTrailInput) SetIncludeGlobalServiceEvents(v bool) *CreateTrailInput { + s.IncludeGlobalServiceEvents = &v + return s +} + +// SetIsMultiRegionTrail sets the IsMultiRegionTrail field's value. +func (s *CreateTrailInput) SetIsMultiRegionTrail(v bool) *CreateTrailInput { + s.IsMultiRegionTrail = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateTrailInput) SetKmsKeyId(v string) *CreateTrailInput { + s.KmsKeyId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateTrailInput) SetName(v string) *CreateTrailInput { + s.Name = &v + return s +} + +// SetS3BucketName sets the S3BucketName field's value. +func (s *CreateTrailInput) SetS3BucketName(v string) *CreateTrailInput { + s.S3BucketName = &v + return s +} + +// SetS3KeyPrefix sets the S3KeyPrefix field's value. +func (s *CreateTrailInput) SetS3KeyPrefix(v string) *CreateTrailInput { + s.S3KeyPrefix = &v + return s +} + +// SetSnsTopicName sets the SnsTopicName field's value. +func (s *CreateTrailInput) SetSnsTopicName(v string) *CreateTrailInput { + s.SnsTopicName = &v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateTrailResponse type CreateTrailOutput struct { _ struct{} `type:"structure"` @@ -1393,7 +1751,7 @@ type CreateTrailOutput struct { // Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. // The value is a fully specified ARN to a KMS key in the format: // - // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 KmsKeyId *string `type:"string"` // Specifies whether log file integrity validation is enabled. @@ -1414,7 +1772,7 @@ type CreateTrailOutput struct { // Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications // when log files are delivered. The format of a topic ARN is: // - // arn:aws:sns:us-east-1:123456789012:MyTopic + // arn:aws:sns:us-east-1:123456789012:MyTopic SnsTopicARN *string `type:"string"` // This field is deprecated. Use SnsTopicARN. @@ -1423,7 +1781,7 @@ type CreateTrailOutput struct { // Specifies the ARN of the trail that was created. The format of a trail ARN // is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail TrailARN *string `type:"string"` } @@ -1437,14 +1795,146 @@ func (s CreateTrailOutput) GoString() string { return s.String() } +// SetCloudWatchLogsLogGroupArn sets the CloudWatchLogsLogGroupArn field's value. +func (s *CreateTrailOutput) SetCloudWatchLogsLogGroupArn(v string) *CreateTrailOutput { + s.CloudWatchLogsLogGroupArn = &v + return s +} + +// SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value. +func (s *CreateTrailOutput) SetCloudWatchLogsRoleArn(v string) *CreateTrailOutput { + s.CloudWatchLogsRoleArn = &v + return s +} + +// SetIncludeGlobalServiceEvents sets the IncludeGlobalServiceEvents field's value. +func (s *CreateTrailOutput) SetIncludeGlobalServiceEvents(v bool) *CreateTrailOutput { + s.IncludeGlobalServiceEvents = &v + return s +} + +// SetIsMultiRegionTrail sets the IsMultiRegionTrail field's value. +func (s *CreateTrailOutput) SetIsMultiRegionTrail(v bool) *CreateTrailOutput { + s.IsMultiRegionTrail = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateTrailOutput) SetKmsKeyId(v string) *CreateTrailOutput { + s.KmsKeyId = &v + return s +} + +// SetLogFileValidationEnabled sets the LogFileValidationEnabled field's value. +func (s *CreateTrailOutput) SetLogFileValidationEnabled(v bool) *CreateTrailOutput { + s.LogFileValidationEnabled = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateTrailOutput) SetName(v string) *CreateTrailOutput { + s.Name = &v + return s +} + +// SetS3BucketName sets the S3BucketName field's value. +func (s *CreateTrailOutput) SetS3BucketName(v string) *CreateTrailOutput { + s.S3BucketName = &v + return s +} + +// SetS3KeyPrefix sets the S3KeyPrefix field's value. +func (s *CreateTrailOutput) SetS3KeyPrefix(v string) *CreateTrailOutput { + s.S3KeyPrefix = &v + return s +} + +// SetSnsTopicARN sets the SnsTopicARN field's value. +func (s *CreateTrailOutput) SetSnsTopicARN(v string) *CreateTrailOutput { + s.SnsTopicARN = &v + return s +} + +// SetSnsTopicName sets the SnsTopicName field's value. +func (s *CreateTrailOutput) SetSnsTopicName(v string) *CreateTrailOutput { + s.SnsTopicName = &v + return s +} + +// SetTrailARN sets the TrailARN field's value. +func (s *CreateTrailOutput) SetTrailARN(v string) *CreateTrailOutput { + s.TrailARN = &v + return s +} + +// The Amazon S3 objects that you specify in your event selectors for your trail +// to log data events. Data events are object-level API operations that access +// S3 objects, such as GetObject, DeleteObject, and PutObject. You can specify +// up to 250 S3 buckets and object prefixes for a trail. +// +// Example +// +// You create an event selector for a trail and specify an S3 bucket and an +// empty prefix, such as arn:aws:s3:::bucket-1/. +// +// You upload an image file to bucket-1. +// +// The PutObject API operation occurs on an object in the S3 bucket that you +// specified in the event selector. The trail processes and logs the event. +// +// You upload another image file to a different S3 bucket named arn:aws:s3:::bucket-2. +// +// The event occurs on an object in an S3 bucket that you didn't specify in +// the event selector. The trail doesn’t log the event. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DataResource +type DataResource struct { + _ struct{} `type:"structure"` + + // The resource type in which you want to log data events. You can specify only + // the following value: AWS::S3::Object. + Type *string `type:"string"` + + // A list of ARN-like strings for the specified S3 objects. + // + // To log data events for all objects in an S3 bucket, specify the bucket and + // an empty object prefix such as arn:aws:s3:::bucket-1/. The trail logs data + // events for all objects in this S3 bucket. + // + // To log data events for specific objects, specify the S3 bucket and object + // prefix such as arn:aws:s3:::bucket-1/example-images. The trail logs data + // events for objects in this S3 bucket that match the prefix. + Values []*string `type:"list"` +} + +// String returns the string representation +func (s DataResource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DataResource) GoString() string { + return s.String() +} + +// SetType sets the Type field's value. +func (s *DataResource) SetType(v string) *DataResource { + s.Type = &v + return s +} + +// SetValues sets the Values field's value. +func (s *DataResource) SetValues(v []*string) *DataResource { + s.Values = v + return s +} + // The request that specifies the name of a trail to delete. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteTrailRequest type DeleteTrailInput struct { _ struct{} `type:"structure"` // Specifies the name or the CloudTrail ARN of the trail to be deleted. The - // format of a trail ARN is: - // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // format of a trail ARN is: arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // // Name is a required field Name *string `type:"string" required:"true"` @@ -1473,8 +1963,15 @@ func (s *DeleteTrailInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *DeleteTrailInput) SetName(v string) *DeleteTrailInput { + s.Name = &v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteTrailResponse type DeleteTrailOutput struct { _ struct{} `type:"structure"` } @@ -1490,6 +1987,7 @@ func (s DeleteTrailOutput) GoString() string { } // Returns information about the trail. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeTrailsRequest type DescribeTrailsInput struct { _ struct{} `type:"structure"` @@ -1501,20 +1999,20 @@ type DescribeTrailsInput struct { // Specifies a list of trail names, trail ARNs, or both, of the trails to describe. // The format of a trail ARN is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // - // If an empty list is specified, information for the trail in the current - // region is returned. + // If an empty list is specified, information for the trail in the current region + // is returned. // - // If an empty list is specified and IncludeShadowTrails is false, then information - // for all trails in the current region is returned. + // * If an empty list is specified and IncludeShadowTrails is false, then + // information for all trails in the current region is returned. // - // If an empty list is specified and IncludeShadowTrails is null or true, - // then information for all trails in the current region and any associated - // shadow trails in other regions is returned. + // * If an empty list is specified and IncludeShadowTrails is null or true, + // then information for all trails in the current region and any associated + // shadow trails in other regions is returned. // - // If one or more trail names are specified, information is returned only - // if the names match the names of trails belonging only to the current region. + // If one or more trail names are specified, information is returned only if + // the names match the names of trails belonging only to the current region. // To return information about a trail in another region, you must specify its // trail ARN. TrailNameList []*string `locationName:"trailNameList" type:"list"` @@ -1530,8 +2028,21 @@ func (s DescribeTrailsInput) GoString() string { return s.String() } +// SetIncludeShadowTrails sets the IncludeShadowTrails field's value. +func (s *DescribeTrailsInput) SetIncludeShadowTrails(v bool) *DescribeTrailsInput { + s.IncludeShadowTrails = &v + return s +} + +// SetTrailNameList sets the TrailNameList field's value. +func (s *DescribeTrailsInput) SetTrailNameList(v []*string) *DescribeTrailsInput { + s.TrailNameList = v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeTrailsResponse type DescribeTrailsOutput struct { _ struct{} `type:"structure"` @@ -1549,8 +2060,15 @@ func (s DescribeTrailsOutput) GoString() string { return s.String() } +// SetTrailList sets the TrailList field's value. +func (s *DescribeTrailsOutput) SetTrailList(v []*Trail) *DescribeTrailsOutput { + s.TrailList = v + return s +} + // Contains information about an event that was returned by a lookup request. // The result includes a representation of a CloudTrail event. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/Event type Event struct { _ struct{} `type:"structure"` @@ -1563,6 +2081,9 @@ type Event struct { // The name of the event returned. EventName *string `type:"string"` + // The AWS service that the request was made to. + EventSource *string `type:"string"` + // The date and time of the event returned. EventTime *time.Time `type:"timestamp" timestampFormat:"unix"` @@ -1584,7 +2105,187 @@ func (s Event) GoString() string { return s.String() } +// SetCloudTrailEvent sets the CloudTrailEvent field's value. +func (s *Event) SetCloudTrailEvent(v string) *Event { + s.CloudTrailEvent = &v + return s +} + +// SetEventId sets the EventId field's value. +func (s *Event) SetEventId(v string) *Event { + s.EventId = &v + return s +} + +// SetEventName sets the EventName field's value. +func (s *Event) SetEventName(v string) *Event { + s.EventName = &v + return s +} + +// SetEventSource sets the EventSource field's value. +func (s *Event) SetEventSource(v string) *Event { + s.EventSource = &v + return s +} + +// SetEventTime sets the EventTime field's value. +func (s *Event) SetEventTime(v time.Time) *Event { + s.EventTime = &v + return s +} + +// SetResources sets the Resources field's value. +func (s *Event) SetResources(v []*Resource) *Event { + s.Resources = v + return s +} + +// SetUsername sets the Username field's value. +func (s *Event) SetUsername(v string) *Event { + s.Username = &v + return s +} + +// Use event selectors to specify whether you want your trail to log management +// and/or data events. When an event occurs in your account, CloudTrail evaluates +// the event selector for all trails. For each trail, if the event matches any +// event selector, the trail processes and logs the event. If the event doesn't +// match any event selector, the trail doesn't log the event. +// +// You can configure up to five event selectors for a trail. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/EventSelector +type EventSelector struct { + _ struct{} `type:"structure"` + + // CloudTrail supports logging only data events for S3 objects. You can specify + // up to 250 S3 buckets and object prefixes for a trail. + // + // For more information, see Data Events (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html#logging-data-events) + // in the AWS CloudTrail User Guide. + DataResources []*DataResource `type:"list"` + + // Specify if you want your event selector to include management events for + // your trail. + // + // For more information, see Management Events (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html#logging-management-events) + // in the AWS CloudTrail User Guide. + // + // By default, the value is true. + IncludeManagementEvents *bool `type:"boolean"` + + // Specify if you want your trail to log read-only events, write-only events, + // or all. For example, the EC2 GetConsoleOutput is a read-only API operation + // and RunInstances is a write-only API operation. + // + // By default, the value is All. + ReadWriteType *string `type:"string" enum:"ReadWriteType"` +} + +// String returns the string representation +func (s EventSelector) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EventSelector) GoString() string { + return s.String() +} + +// SetDataResources sets the DataResources field's value. +func (s *EventSelector) SetDataResources(v []*DataResource) *EventSelector { + s.DataResources = v + return s +} + +// SetIncludeManagementEvents sets the IncludeManagementEvents field's value. +func (s *EventSelector) SetIncludeManagementEvents(v bool) *EventSelector { + s.IncludeManagementEvents = &v + return s +} + +// SetReadWriteType sets the ReadWriteType field's value. +func (s *EventSelector) SetReadWriteType(v string) *EventSelector { + s.ReadWriteType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventSelectorsRequest +type GetEventSelectorsInput struct { + _ struct{} `type:"structure"` + + // Specifies the name of the trail or trail ARN. If you specify a trail name, + // the string must meet the following requirements: + // + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores + // (_), or dashes (-) + // + // * Start with a letter or number, and end with a letter or number + // + // * Be between 3 and 128 characters + // + // * Have no adjacent periods, underscores or dashes. Names like my-_namespace + // and my--namespace are invalid. + // + // * Not be in IP address format (for example, 192.168.5.4) + // + // If you specify a trail ARN, it must be in the format: + // + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + TrailName *string `type:"string"` +} + +// String returns the string representation +func (s GetEventSelectorsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetEventSelectorsInput) GoString() string { + return s.String() +} + +// SetTrailName sets the TrailName field's value. +func (s *GetEventSelectorsInput) SetTrailName(v string) *GetEventSelectorsInput { + s.TrailName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventSelectorsResponse +type GetEventSelectorsOutput struct { + _ struct{} `type:"structure"` + + // The event selectors that are configured for the trail. + EventSelectors []*EventSelector `type:"list"` + + // The specified trail ARN that has the event selectors. + TrailARN *string `type:"string"` +} + +// String returns the string representation +func (s GetEventSelectorsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetEventSelectorsOutput) GoString() string { + return s.String() +} + +// SetEventSelectors sets the EventSelectors field's value. +func (s *GetEventSelectorsOutput) SetEventSelectors(v []*EventSelector) *GetEventSelectorsOutput { + s.EventSelectors = v + return s +} + +// SetTrailARN sets the TrailARN field's value. +func (s *GetEventSelectorsOutput) SetTrailARN(v string) *GetEventSelectorsOutput { + s.TrailARN = &v + return s +} + // The name of a trail about which you want the current status. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetTrailStatusRequest type GetTrailStatusInput struct { _ struct{} `type:"structure"` @@ -1592,7 +2293,7 @@ type GetTrailStatusInput struct { // status. To get the status of a shadow trail (a replication of the trail in // another region), you must specify its ARN. The format of a trail ARN is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // // Name is a required field Name *string `type:"string" required:"true"` @@ -1621,8 +2322,15 @@ func (s *GetTrailStatusInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *GetTrailStatusInput) SetName(v string) *GetTrailStatusInput { + s.Name = &v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetTrailStatusResponse type GetTrailStatusOutput struct { _ struct{} `type:"structure"` @@ -1648,10 +2356,10 @@ type GetTrailStatusOutput struct { // topic Error Responses (http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html) // in the Amazon S3 API Reference. // - // This error occurs only when there is a problem with the destination S3 - // bucket and will not occur for timeouts. To resolve the issue, create a new - // bucket and call UpdateTrail to specify the new bucket, or fix the existing - // objects so that CloudTrail can again write to the bucket. + // This error occurs only when there is a problem with the destination S3 bucket + // and will not occur for timeouts. To resolve the issue, create a new bucket + // and call UpdateTrail to specify the new bucket, or fix the existing objects + // so that CloudTrail can again write to the bucket. LatestDeliveryError *string `type:"string"` // Specifies the date and time that CloudTrail last delivered log files to an @@ -1663,10 +2371,10 @@ type GetTrailStatusOutput struct { // the topic Error Responses (http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html) // in the Amazon S3 API Reference. // - // This error occurs only when there is a problem with the destination S3 - // bucket and will not occur for timeouts. To resolve the issue, create a new - // bucket and call UpdateTrail to specify the new bucket, or fix the existing - // objects so that CloudTrail can again write to the bucket. + // This error occurs only when there is a problem with the destination S3 bucket + // and will not occur for timeouts. To resolve the issue, create a new bucket + // and call UpdateTrail to specify the new bucket, or fix the existing objects + // so that CloudTrail can again write to the bucket. LatestDigestDeliveryError *string `type:"string"` // Specifies the date and time that CloudTrail last delivered a digest file @@ -1713,7 +2421,110 @@ func (s GetTrailStatusOutput) GoString() string { return s.String() } +// SetIsLogging sets the IsLogging field's value. +func (s *GetTrailStatusOutput) SetIsLogging(v bool) *GetTrailStatusOutput { + s.IsLogging = &v + return s +} + +// SetLatestCloudWatchLogsDeliveryError sets the LatestCloudWatchLogsDeliveryError field's value. +func (s *GetTrailStatusOutput) SetLatestCloudWatchLogsDeliveryError(v string) *GetTrailStatusOutput { + s.LatestCloudWatchLogsDeliveryError = &v + return s +} + +// SetLatestCloudWatchLogsDeliveryTime sets the LatestCloudWatchLogsDeliveryTime field's value. +func (s *GetTrailStatusOutput) SetLatestCloudWatchLogsDeliveryTime(v time.Time) *GetTrailStatusOutput { + s.LatestCloudWatchLogsDeliveryTime = &v + return s +} + +// SetLatestDeliveryAttemptSucceeded sets the LatestDeliveryAttemptSucceeded field's value. +func (s *GetTrailStatusOutput) SetLatestDeliveryAttemptSucceeded(v string) *GetTrailStatusOutput { + s.LatestDeliveryAttemptSucceeded = &v + return s +} + +// SetLatestDeliveryAttemptTime sets the LatestDeliveryAttemptTime field's value. +func (s *GetTrailStatusOutput) SetLatestDeliveryAttemptTime(v string) *GetTrailStatusOutput { + s.LatestDeliveryAttemptTime = &v + return s +} + +// SetLatestDeliveryError sets the LatestDeliveryError field's value. +func (s *GetTrailStatusOutput) SetLatestDeliveryError(v string) *GetTrailStatusOutput { + s.LatestDeliveryError = &v + return s +} + +// SetLatestDeliveryTime sets the LatestDeliveryTime field's value. +func (s *GetTrailStatusOutput) SetLatestDeliveryTime(v time.Time) *GetTrailStatusOutput { + s.LatestDeliveryTime = &v + return s +} + +// SetLatestDigestDeliveryError sets the LatestDigestDeliveryError field's value. +func (s *GetTrailStatusOutput) SetLatestDigestDeliveryError(v string) *GetTrailStatusOutput { + s.LatestDigestDeliveryError = &v + return s +} + +// SetLatestDigestDeliveryTime sets the LatestDigestDeliveryTime field's value. +func (s *GetTrailStatusOutput) SetLatestDigestDeliveryTime(v time.Time) *GetTrailStatusOutput { + s.LatestDigestDeliveryTime = &v + return s +} + +// SetLatestNotificationAttemptSucceeded sets the LatestNotificationAttemptSucceeded field's value. +func (s *GetTrailStatusOutput) SetLatestNotificationAttemptSucceeded(v string) *GetTrailStatusOutput { + s.LatestNotificationAttemptSucceeded = &v + return s +} + +// SetLatestNotificationAttemptTime sets the LatestNotificationAttemptTime field's value. +func (s *GetTrailStatusOutput) SetLatestNotificationAttemptTime(v string) *GetTrailStatusOutput { + s.LatestNotificationAttemptTime = &v + return s +} + +// SetLatestNotificationError sets the LatestNotificationError field's value. +func (s *GetTrailStatusOutput) SetLatestNotificationError(v string) *GetTrailStatusOutput { + s.LatestNotificationError = &v + return s +} + +// SetLatestNotificationTime sets the LatestNotificationTime field's value. +func (s *GetTrailStatusOutput) SetLatestNotificationTime(v time.Time) *GetTrailStatusOutput { + s.LatestNotificationTime = &v + return s +} + +// SetStartLoggingTime sets the StartLoggingTime field's value. +func (s *GetTrailStatusOutput) SetStartLoggingTime(v time.Time) *GetTrailStatusOutput { + s.StartLoggingTime = &v + return s +} + +// SetStopLoggingTime sets the StopLoggingTime field's value. +func (s *GetTrailStatusOutput) SetStopLoggingTime(v time.Time) *GetTrailStatusOutput { + s.StopLoggingTime = &v + return s +} + +// SetTimeLoggingStarted sets the TimeLoggingStarted field's value. +func (s *GetTrailStatusOutput) SetTimeLoggingStarted(v string) *GetTrailStatusOutput { + s.TimeLoggingStarted = &v + return s +} + +// SetTimeLoggingStopped sets the TimeLoggingStopped field's value. +func (s *GetTrailStatusOutput) SetTimeLoggingStopped(v string) *GetTrailStatusOutput { + s.TimeLoggingStopped = &v + return s +} + // Requests the public keys for a specified time range. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListPublicKeysRequest type ListPublicKeysInput struct { _ struct{} `type:"structure"` @@ -1740,8 +2551,27 @@ func (s ListPublicKeysInput) GoString() string { return s.String() } +// SetEndTime sets the EndTime field's value. +func (s *ListPublicKeysInput) SetEndTime(v time.Time) *ListPublicKeysInput { + s.EndTime = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPublicKeysInput) SetNextToken(v string) *ListPublicKeysInput { + s.NextToken = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *ListPublicKeysInput) SetStartTime(v time.Time) *ListPublicKeysInput { + s.StartTime = &v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListPublicKeysResponse type ListPublicKeysOutput struct { _ struct{} `type:"structure"` @@ -1750,7 +2580,7 @@ type ListPublicKeysOutput struct { // Contains an array of PublicKey objects. // - // The returned public keys may have validity time ranges that overlap. + // The returned public keys may have validity time ranges that overlap. PublicKeyList []*PublicKey `type:"list"` } @@ -1764,7 +2594,20 @@ func (s ListPublicKeysOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListPublicKeysOutput) SetNextToken(v string) *ListPublicKeysOutput { + s.NextToken = &v + return s +} + +// SetPublicKeyList sets the PublicKeyList field's value. +func (s *ListPublicKeysOutput) SetPublicKeyList(v []*PublicKey) *ListPublicKeysOutput { + s.PublicKeyList = v + return s +} + // Specifies a list of trail tags to return. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListTagsRequest type ListTagsInput struct { _ struct{} `type:"structure"` @@ -1774,7 +2617,7 @@ type ListTagsInput struct { // Specifies a list of trail ARNs whose tags will be listed. The list has a // limit of 20 ARNs. The format of a trail ARN is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // // ResourceIdList is a required field ResourceIdList []*string `type:"list" required:"true"` @@ -1803,8 +2646,21 @@ func (s *ListTagsInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *ListTagsInput) SetNextToken(v string) *ListTagsInput { + s.NextToken = &v + return s +} + +// SetResourceIdList sets the ResourceIdList field's value. +func (s *ListTagsInput) SetResourceIdList(v []*string) *ListTagsInput { + s.ResourceIdList = v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListTagsResponse type ListTagsOutput struct { _ struct{} `type:"structure"` @@ -1825,7 +2681,20 @@ func (s ListTagsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListTagsOutput) SetNextToken(v string) *ListTagsOutput { + s.NextToken = &v + return s +} + +// SetResourceTagList sets the ResourceTagList field's value. +func (s *ListTagsOutput) SetResourceTagList(v []*ResourceTag) *ListTagsOutput { + s.ResourceTagList = v + return s +} + // Specifies an attribute and value that filter the events returned. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/LookupAttribute type LookupAttribute struct { _ struct{} `type:"structure"` @@ -1866,7 +2735,20 @@ func (s *LookupAttribute) Validate() error { return nil } +// SetAttributeKey sets the AttributeKey field's value. +func (s *LookupAttribute) SetAttributeKey(v string) *LookupAttribute { + s.AttributeKey = &v + return s +} + +// SetAttributeValue sets the AttributeValue field's value. +func (s *LookupAttribute) SetAttributeValue(v string) *LookupAttribute { + s.AttributeValue = &v + return s +} + // Contains a request for LookupEvents. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/LookupEventsRequest type LookupEventsInput struct { _ struct{} `type:"structure"` @@ -1929,7 +2811,38 @@ func (s *LookupEventsInput) Validate() error { return nil } +// SetEndTime sets the EndTime field's value. +func (s *LookupEventsInput) SetEndTime(v time.Time) *LookupEventsInput { + s.EndTime = &v + return s +} + +// SetLookupAttributes sets the LookupAttributes field's value. +func (s *LookupEventsInput) SetLookupAttributes(v []*LookupAttribute) *LookupEventsInput { + s.LookupAttributes = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *LookupEventsInput) SetMaxResults(v int64) *LookupEventsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *LookupEventsInput) SetNextToken(v string) *LookupEventsInput { + s.NextToken = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *LookupEventsInput) SetStartTime(v time.Time) *LookupEventsInput { + s.StartTime = &v + return s +} + // Contains a response to a LookupEvents action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/LookupEventsResponse type LookupEventsOutput struct { _ struct{} `type:"structure"` @@ -1956,7 +2869,20 @@ func (s LookupEventsOutput) GoString() string { return s.String() } +// SetEvents sets the Events field's value. +func (s *LookupEventsOutput) SetEvents(v []*Event) *LookupEventsOutput { + s.Events = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *LookupEventsOutput) SetNextToken(v string) *LookupEventsOutput { + s.NextToken = &v + return s +} + // Contains information about a returned public key. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PublicKey type PublicKey struct { _ struct{} `type:"structure"` @@ -1985,14 +2911,126 @@ func (s PublicKey) GoString() string { return s.String() } +// SetFingerprint sets the Fingerprint field's value. +func (s *PublicKey) SetFingerprint(v string) *PublicKey { + s.Fingerprint = &v + return s +} + +// SetValidityEndTime sets the ValidityEndTime field's value. +func (s *PublicKey) SetValidityEndTime(v time.Time) *PublicKey { + s.ValidityEndTime = &v + return s +} + +// SetValidityStartTime sets the ValidityStartTime field's value. +func (s *PublicKey) SetValidityStartTime(v time.Time) *PublicKey { + s.ValidityStartTime = &v + return s +} + +// SetValue sets the Value field's value. +func (s *PublicKey) SetValue(v []byte) *PublicKey { + s.Value = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventSelectorsRequest +type PutEventSelectorsInput struct { + _ struct{} `type:"structure"` + + // Specifies the settings for your event selectors. You can configure up to + // five event selectors for a trail. + EventSelectors []*EventSelector `type:"list"` + + // Specifies the name of the trail or trail ARN. If you specify a trail name, + // the string must meet the following requirements: + // + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores + // (_), or dashes (-) + // + // * Start with a letter or number, and end with a letter or number + // + // * Be between 3 and 128 characters + // + // * Have no adjacent periods, underscores or dashes. Names like my-_namespace + // and my--namespace are invalid. + // + // * Not be in IP address format (for example, 192.168.5.4) + // + // If you specify a trail ARN, it must be in the format: + // + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + TrailName *string `type:"string"` +} + +// String returns the string representation +func (s PutEventSelectorsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutEventSelectorsInput) GoString() string { + return s.String() +} + +// SetEventSelectors sets the EventSelectors field's value. +func (s *PutEventSelectorsInput) SetEventSelectors(v []*EventSelector) *PutEventSelectorsInput { + s.EventSelectors = v + return s +} + +// SetTrailName sets the TrailName field's value. +func (s *PutEventSelectorsInput) SetTrailName(v string) *PutEventSelectorsInput { + s.TrailName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventSelectorsResponse +type PutEventSelectorsOutput struct { + _ struct{} `type:"structure"` + + // Specifies the event selectors configured for your trail. + EventSelectors []*EventSelector `type:"list"` + + // Specifies the ARN of the trail that was updated with event selectors. The + // format of a trail ARN is: + // + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + TrailARN *string `type:"string"` +} + +// String returns the string representation +func (s PutEventSelectorsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutEventSelectorsOutput) GoString() string { + return s.String() +} + +// SetEventSelectors sets the EventSelectors field's value. +func (s *PutEventSelectorsOutput) SetEventSelectors(v []*EventSelector) *PutEventSelectorsOutput { + s.EventSelectors = v + return s +} + +// SetTrailARN sets the TrailARN field's value. +func (s *PutEventSelectorsOutput) SetTrailARN(v string) *PutEventSelectorsOutput { + s.TrailARN = &v + return s +} + // Specifies the tags to remove from a trail. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/RemoveTagsRequest type RemoveTagsInput struct { _ struct{} `type:"structure"` // Specifies the ARN of the trail from which tags should be removed. The format // of a trail ARN is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // // ResourceId is a required field ResourceId *string `type:"string" required:"true"` @@ -2034,8 +3072,21 @@ func (s *RemoveTagsInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *RemoveTagsInput) SetResourceId(v string) *RemoveTagsInput { + s.ResourceId = &v + return s +} + +// SetTagsList sets the TagsList field's value. +func (s *RemoveTagsInput) SetTagsList(v []*Tag) *RemoveTagsInput { + s.TagsList = v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/RemoveTagsResponse type RemoveTagsOutput struct { _ struct{} `type:"structure"` } @@ -2051,6 +3102,7 @@ func (s RemoveTagsOutput) GoString() string { } // Specifies the type and name of a resource referenced by an event. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/Resource type Resource struct { _ struct{} `type:"structure"` @@ -2078,7 +3130,20 @@ func (s Resource) GoString() string { return s.String() } +// SetResourceName sets the ResourceName field's value. +func (s *Resource) SetResourceName(v string) *Resource { + s.ResourceName = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *Resource) SetResourceType(v string) *Resource { + s.ResourceType = &v + return s +} + // A resource tag. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ResourceTag type ResourceTag struct { _ struct{} `type:"structure"` @@ -2099,14 +3164,27 @@ func (s ResourceTag) GoString() string { return s.String() } +// SetResourceId sets the ResourceId field's value. +func (s *ResourceTag) SetResourceId(v string) *ResourceTag { + s.ResourceId = &v + return s +} + +// SetTagsList sets the TagsList field's value. +func (s *ResourceTag) SetTagsList(v []*Tag) *ResourceTag { + s.TagsList = v + return s +} + // The request to CloudTrail to start logging AWS API calls for an account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StartLoggingRequest type StartLoggingInput struct { _ struct{} `type:"structure"` // Specifies the name or the CloudTrail ARN of the trail for which CloudTrail // logs AWS API calls. The format of a trail ARN is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // // Name is a required field Name *string `type:"string" required:"true"` @@ -2135,8 +3213,15 @@ func (s *StartLoggingInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *StartLoggingInput) SetName(v string) *StartLoggingInput { + s.Name = &v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StartLoggingResponse type StartLoggingOutput struct { _ struct{} `type:"structure"` } @@ -2153,13 +3238,14 @@ func (s StartLoggingOutput) GoString() string { // Passes the request to CloudTrail to stop logging AWS API calls for the specified // account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StopLoggingRequest type StopLoggingInput struct { _ struct{} `type:"structure"` // Specifies the name or the CloudTrail ARN of the trail for which CloudTrail // will stop logging AWS API calls. The format of a trail ARN is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // // Name is a required field Name *string `type:"string" required:"true"` @@ -2188,8 +3274,15 @@ func (s *StopLoggingInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *StopLoggingInput) SetName(v string) *StopLoggingInput { + s.Name = &v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StopLoggingResponse type StopLoggingOutput struct { _ struct{} `type:"structure"` } @@ -2205,6 +3298,7 @@ func (s StopLoggingOutput) GoString() string { } // A custom key-value pair associated with a resource such as a CloudTrail trail. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/Tag type Tag struct { _ struct{} `type:"structure"` @@ -2242,7 +3336,20 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // The settings for a trail. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/Trail type Trail struct { _ struct{} `type:"structure"` @@ -2254,6 +3361,9 @@ type Trail struct { // a user's log group. CloudWatchLogsRoleArn *string `type:"string"` + // Specifies if the trail has custom event selectors. + HasCustomEventSelectors *bool `type:"boolean"` + // The region in which the trail was created. HomeRegion *string `type:"string"` @@ -2267,7 +3377,7 @@ type Trail struct { // Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. // The value is a fully specified ARN to a KMS key in the format: // - // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 KmsKeyId *string `type:"string"` // Specifies whether log file validation is enabled. @@ -2289,7 +3399,7 @@ type Trail struct { // Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications // when log files are delivered. The format of a topic ARN is: // - // arn:aws:sns:us-east-1:123456789012:MyTopic + // arn:aws:sns:us-east-1:123456789012:MyTopic SnsTopicARN *string `type:"string"` // This field is deprecated. Use SnsTopicARN. @@ -2297,7 +3407,7 @@ type Trail struct { // Specifies the ARN of the trail. The format of a trail ARN is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail TrailARN *string `type:"string"` } @@ -2311,7 +3421,92 @@ func (s Trail) GoString() string { return s.String() } +// SetCloudWatchLogsLogGroupArn sets the CloudWatchLogsLogGroupArn field's value. +func (s *Trail) SetCloudWatchLogsLogGroupArn(v string) *Trail { + s.CloudWatchLogsLogGroupArn = &v + return s +} + +// SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value. +func (s *Trail) SetCloudWatchLogsRoleArn(v string) *Trail { + s.CloudWatchLogsRoleArn = &v + return s +} + +// SetHasCustomEventSelectors sets the HasCustomEventSelectors field's value. +func (s *Trail) SetHasCustomEventSelectors(v bool) *Trail { + s.HasCustomEventSelectors = &v + return s +} + +// SetHomeRegion sets the HomeRegion field's value. +func (s *Trail) SetHomeRegion(v string) *Trail { + s.HomeRegion = &v + return s +} + +// SetIncludeGlobalServiceEvents sets the IncludeGlobalServiceEvents field's value. +func (s *Trail) SetIncludeGlobalServiceEvents(v bool) *Trail { + s.IncludeGlobalServiceEvents = &v + return s +} + +// SetIsMultiRegionTrail sets the IsMultiRegionTrail field's value. +func (s *Trail) SetIsMultiRegionTrail(v bool) *Trail { + s.IsMultiRegionTrail = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *Trail) SetKmsKeyId(v string) *Trail { + s.KmsKeyId = &v + return s +} + +// SetLogFileValidationEnabled sets the LogFileValidationEnabled field's value. +func (s *Trail) SetLogFileValidationEnabled(v bool) *Trail { + s.LogFileValidationEnabled = &v + return s +} + +// SetName sets the Name field's value. +func (s *Trail) SetName(v string) *Trail { + s.Name = &v + return s +} + +// SetS3BucketName sets the S3BucketName field's value. +func (s *Trail) SetS3BucketName(v string) *Trail { + s.S3BucketName = &v + return s +} + +// SetS3KeyPrefix sets the S3KeyPrefix field's value. +func (s *Trail) SetS3KeyPrefix(v string) *Trail { + s.S3KeyPrefix = &v + return s +} + +// SetSnsTopicARN sets the SnsTopicARN field's value. +func (s *Trail) SetSnsTopicARN(v string) *Trail { + s.SnsTopicARN = &v + return s +} + +// SetSnsTopicName sets the SnsTopicName field's value. +func (s *Trail) SetSnsTopicName(v string) *Trail { + s.SnsTopicName = &v + return s +} + +// SetTrailARN sets the TrailARN field's value. +func (s *Trail) SetTrailARN(v string) *Trail { + s.TrailARN = &v + return s +} + // Specifies settings to update for the trail. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateTrailRequest type UpdateTrailInput struct { _ struct{} `type:"structure"` @@ -2326,7 +3521,7 @@ type UpdateTrailInput struct { // Specifies whether log file validation is enabled. The default is false. // - // When you disable log file integrity validation, the chain of digest files + // When you disable log file integrity validation, the chain of digest files // is broken after one hour. CloudTrail will not create digest files for log // files that were delivered during a period in which log file integrity validation // was disabled. For example, if you enable log file integrity validation at @@ -2349,38 +3544,38 @@ type UpdateTrailInput struct { IsMultiRegionTrail *bool `type:"boolean"` // Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. - // The value can be a an alias name prefixed by "alias/", a fully specified - // ARN to an alias, a fully specified ARN to a key, or a globally unique identifier. + // The value can be an alias name prefixed by "alias/", a fully specified ARN + // to an alias, a fully specified ARN to a key, or a globally unique identifier. // // Examples: // - // alias/MyAliasName + // * alias/MyAliasName // - // arn:aws:kms:us-east-1:123456789012:alias/MyAliasName + // * arn:aws:kms:us-east-1:123456789012:alias/MyAliasName // - // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // 12345678-1234-1234-1234-123456789012 + // * 12345678-1234-1234-1234-123456789012 KmsKeyId *string `type:"string"` // Specifies the name of the trail or trail ARN. If Name is a trail name, the // string must meet the following requirements: // - // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores - // (_), or dashes (-) + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores + // (_), or dashes (-) // - // Start with a letter or number, and end with a letter or number + // * Start with a letter or number, and end with a letter or number // - // Be between 3 and 128 characters + // * Be between 3 and 128 characters // - // Have no adjacent periods, underscores or dashes. Names like my-_namespace - // and my--namespace are invalid. + // * Have no adjacent periods, underscores or dashes. Names like my-_namespace + // and my--namespace are invalid. // - // Not be in IP address format (for example, 192.168.5.4) + // * Not be in IP address format (for example, 192.168.5.4) // - // If Name is a trail ARN, it must be in the format: + // If Name is a trail ARN, it must be in the format: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail // // Name is a required field Name *string `type:"string" required:"true"` @@ -2423,8 +3618,69 @@ func (s *UpdateTrailInput) Validate() error { return nil } +// SetCloudWatchLogsLogGroupArn sets the CloudWatchLogsLogGroupArn field's value. +func (s *UpdateTrailInput) SetCloudWatchLogsLogGroupArn(v string) *UpdateTrailInput { + s.CloudWatchLogsLogGroupArn = &v + return s +} + +// SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value. +func (s *UpdateTrailInput) SetCloudWatchLogsRoleArn(v string) *UpdateTrailInput { + s.CloudWatchLogsRoleArn = &v + return s +} + +// SetEnableLogFileValidation sets the EnableLogFileValidation field's value. +func (s *UpdateTrailInput) SetEnableLogFileValidation(v bool) *UpdateTrailInput { + s.EnableLogFileValidation = &v + return s +} + +// SetIncludeGlobalServiceEvents sets the IncludeGlobalServiceEvents field's value. +func (s *UpdateTrailInput) SetIncludeGlobalServiceEvents(v bool) *UpdateTrailInput { + s.IncludeGlobalServiceEvents = &v + return s +} + +// SetIsMultiRegionTrail sets the IsMultiRegionTrail field's value. +func (s *UpdateTrailInput) SetIsMultiRegionTrail(v bool) *UpdateTrailInput { + s.IsMultiRegionTrail = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *UpdateTrailInput) SetKmsKeyId(v string) *UpdateTrailInput { + s.KmsKeyId = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateTrailInput) SetName(v string) *UpdateTrailInput { + s.Name = &v + return s +} + +// SetS3BucketName sets the S3BucketName field's value. +func (s *UpdateTrailInput) SetS3BucketName(v string) *UpdateTrailInput { + s.S3BucketName = &v + return s +} + +// SetS3KeyPrefix sets the S3KeyPrefix field's value. +func (s *UpdateTrailInput) SetS3KeyPrefix(v string) *UpdateTrailInput { + s.S3KeyPrefix = &v + return s +} + +// SetSnsTopicName sets the SnsTopicName field's value. +func (s *UpdateTrailInput) SetSnsTopicName(v string) *UpdateTrailInput { + s.SnsTopicName = &v + return s +} + // Returns the objects or data listed below if successful. Otherwise, returns // an error. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateTrailResponse type UpdateTrailOutput struct { _ struct{} `type:"structure"` @@ -2446,7 +3702,7 @@ type UpdateTrailOutput struct { // Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. // The value is a fully specified ARN to a KMS key in the format: // - // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 KmsKeyId *string `type:"string"` // Specifies whether log file integrity validation is enabled. @@ -2467,7 +3723,7 @@ type UpdateTrailOutput struct { // Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications // when log files are delivered. The format of a topic ARN is: // - // arn:aws:sns:us-east-1:123456789012:MyTopic + // arn:aws:sns:us-east-1:123456789012:MyTopic SnsTopicARN *string `type:"string"` // This field is deprecated. Use SnsTopicARN. @@ -2476,7 +3732,7 @@ type UpdateTrailOutput struct { // Specifies the ARN of the trail that was updated. The format of a trail ARN // is: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail TrailARN *string `type:"string"` } @@ -2490,6 +3746,78 @@ func (s UpdateTrailOutput) GoString() string { return s.String() } +// SetCloudWatchLogsLogGroupArn sets the CloudWatchLogsLogGroupArn field's value. +func (s *UpdateTrailOutput) SetCloudWatchLogsLogGroupArn(v string) *UpdateTrailOutput { + s.CloudWatchLogsLogGroupArn = &v + return s +} + +// SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value. +func (s *UpdateTrailOutput) SetCloudWatchLogsRoleArn(v string) *UpdateTrailOutput { + s.CloudWatchLogsRoleArn = &v + return s +} + +// SetIncludeGlobalServiceEvents sets the IncludeGlobalServiceEvents field's value. +func (s *UpdateTrailOutput) SetIncludeGlobalServiceEvents(v bool) *UpdateTrailOutput { + s.IncludeGlobalServiceEvents = &v + return s +} + +// SetIsMultiRegionTrail sets the IsMultiRegionTrail field's value. +func (s *UpdateTrailOutput) SetIsMultiRegionTrail(v bool) *UpdateTrailOutput { + s.IsMultiRegionTrail = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *UpdateTrailOutput) SetKmsKeyId(v string) *UpdateTrailOutput { + s.KmsKeyId = &v + return s +} + +// SetLogFileValidationEnabled sets the LogFileValidationEnabled field's value. +func (s *UpdateTrailOutput) SetLogFileValidationEnabled(v bool) *UpdateTrailOutput { + s.LogFileValidationEnabled = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateTrailOutput) SetName(v string) *UpdateTrailOutput { + s.Name = &v + return s +} + +// SetS3BucketName sets the S3BucketName field's value. +func (s *UpdateTrailOutput) SetS3BucketName(v string) *UpdateTrailOutput { + s.S3BucketName = &v + return s +} + +// SetS3KeyPrefix sets the S3KeyPrefix field's value. +func (s *UpdateTrailOutput) SetS3KeyPrefix(v string) *UpdateTrailOutput { + s.S3KeyPrefix = &v + return s +} + +// SetSnsTopicARN sets the SnsTopicARN field's value. +func (s *UpdateTrailOutput) SetSnsTopicARN(v string) *UpdateTrailOutput { + s.SnsTopicARN = &v + return s +} + +// SetSnsTopicName sets the SnsTopicName field's value. +func (s *UpdateTrailOutput) SetSnsTopicName(v string) *UpdateTrailOutput { + s.SnsTopicName = &v + return s +} + +// SetTrailARN sets the TrailARN field's value. +func (s *UpdateTrailOutput) SetTrailARN(v string) *UpdateTrailOutput { + s.TrailARN = &v + return s +} + const ( // LookupAttributeKeyEventId is a LookupAttributeKey enum value LookupAttributeKeyEventId = "EventId" @@ -2505,4 +3833,18 @@ const ( // LookupAttributeKeyResourceName is a LookupAttributeKey enum value LookupAttributeKeyResourceName = "ResourceName" + + // LookupAttributeKeyEventSource is a LookupAttributeKey enum value + LookupAttributeKeyEventSource = "EventSource" +) + +const ( + // ReadWriteTypeReadOnly is a ReadWriteType enum value + ReadWriteTypeReadOnly = "ReadOnly" + + // ReadWriteTypeWriteOnly is a ReadWriteType enum value + ReadWriteTypeWriteOnly = "WriteOnly" + + // ReadWriteTypeAll is a ReadWriteType enum value + ReadWriteTypeAll = "All" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface/interface.go index d61b96ee8..2226a4cc3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCloudTrailClient{} // @@ -75,6 +75,10 @@ type CloudTrailAPI interface { DescribeTrails(*cloudtrail.DescribeTrailsInput) (*cloudtrail.DescribeTrailsOutput, error) + GetEventSelectorsRequest(*cloudtrail.GetEventSelectorsInput) (*request.Request, *cloudtrail.GetEventSelectorsOutput) + + GetEventSelectors(*cloudtrail.GetEventSelectorsInput) (*cloudtrail.GetEventSelectorsOutput, error) + GetTrailStatusRequest(*cloudtrail.GetTrailStatusInput) (*request.Request, *cloudtrail.GetTrailStatusOutput) GetTrailStatus(*cloudtrail.GetTrailStatusInput) (*cloudtrail.GetTrailStatusOutput, error) @@ -91,6 +95,12 @@ type CloudTrailAPI interface { LookupEvents(*cloudtrail.LookupEventsInput) (*cloudtrail.LookupEventsOutput, error) + LookupEventsPages(*cloudtrail.LookupEventsInput, func(*cloudtrail.LookupEventsOutput, bool) bool) error + + PutEventSelectorsRequest(*cloudtrail.PutEventSelectorsInput) (*request.Request, *cloudtrail.PutEventSelectorsOutput) + + PutEventSelectors(*cloudtrail.PutEventSelectorsInput) (*cloudtrail.PutEventSelectorsOutput, error) + RemoveTagsRequest(*cloudtrail.RemoveTagsInput) (*request.Request, *cloudtrail.RemoveTagsOutput) RemoveTags(*cloudtrail.RemoveTagsInput) (*cloudtrail.RemoveTagsOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/errors.go b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/errors.go new file mode 100644 index 000000000..14e12f428 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/errors.go @@ -0,0 +1,245 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cloudtrail + +const ( + + // ErrCodeARNInvalidException for service response error code + // "ARNInvalidException". + // + // This exception is thrown when an operation is called with an invalid trail + // ARN. The format of a trail ARN is: + // + // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + ErrCodeARNInvalidException = "ARNInvalidException" + + // ErrCodeCloudWatchLogsDeliveryUnavailableException for service response error code + // "CloudWatchLogsDeliveryUnavailableException". + // + // Cannot set a CloudWatch Logs delivery for this region. + ErrCodeCloudWatchLogsDeliveryUnavailableException = "CloudWatchLogsDeliveryUnavailableException" + + // ErrCodeInsufficientEncryptionPolicyException for service response error code + // "InsufficientEncryptionPolicyException". + // + // This exception is thrown when the policy on the S3 bucket or KMS key is not + // sufficient. + ErrCodeInsufficientEncryptionPolicyException = "InsufficientEncryptionPolicyException" + + // ErrCodeInsufficientS3BucketPolicyException for service response error code + // "InsufficientS3BucketPolicyException". + // + // This exception is thrown when the policy on the S3 bucket is not sufficient. + ErrCodeInsufficientS3BucketPolicyException = "InsufficientS3BucketPolicyException" + + // ErrCodeInsufficientSnsTopicPolicyException for service response error code + // "InsufficientSnsTopicPolicyException". + // + // This exception is thrown when the policy on the SNS topic is not sufficient. + ErrCodeInsufficientSnsTopicPolicyException = "InsufficientSnsTopicPolicyException" + + // ErrCodeInvalidCloudWatchLogsLogGroupArnException for service response error code + // "InvalidCloudWatchLogsLogGroupArnException". + // + // This exception is thrown when the provided CloudWatch log group is not valid. + ErrCodeInvalidCloudWatchLogsLogGroupArnException = "InvalidCloudWatchLogsLogGroupArnException" + + // ErrCodeInvalidCloudWatchLogsRoleArnException for service response error code + // "InvalidCloudWatchLogsRoleArnException". + // + // This exception is thrown when the provided role is not valid. + ErrCodeInvalidCloudWatchLogsRoleArnException = "InvalidCloudWatchLogsRoleArnException" + + // ErrCodeInvalidEventSelectorsException for service response error code + // "InvalidEventSelectorsException". + // + // This exception is thrown when the PutEventSelectors operation is called with + // an invalid number of event selectors, data resources, or an invalid value + // for a parameter: + // + // * Specify a valid number of event selectors (1 to 5) for a trail. + // + // * Specify a valid number of data resources (1 to 250) for an event selector. + // + // * Specify a valid value for a parameter. For example, specifying the ReadWriteType + // parameter with a value of read-only is invalid. + ErrCodeInvalidEventSelectorsException = "InvalidEventSelectorsException" + + // ErrCodeInvalidHomeRegionException for service response error code + // "InvalidHomeRegionException". + // + // This exception is thrown when an operation is called on a trail from a region + // other than the region in which the trail was created. + ErrCodeInvalidHomeRegionException = "InvalidHomeRegionException" + + // ErrCodeInvalidKmsKeyIdException for service response error code + // "InvalidKmsKeyIdException". + // + // This exception is thrown when the KMS key ARN is invalid. + ErrCodeInvalidKmsKeyIdException = "InvalidKmsKeyIdException" + + // ErrCodeInvalidLookupAttributesException for service response error code + // "InvalidLookupAttributesException". + // + // Occurs when an invalid lookup attribute is specified. + ErrCodeInvalidLookupAttributesException = "InvalidLookupAttributesException" + + // ErrCodeInvalidMaxResultsException for service response error code + // "InvalidMaxResultsException". + // + // This exception is thrown if the limit specified is invalid. + ErrCodeInvalidMaxResultsException = "InvalidMaxResultsException" + + // ErrCodeInvalidNextTokenException for service response error code + // "InvalidNextTokenException". + // + // Invalid token or token that was previously used in a request with different + // parameters. This exception is thrown if the token is invalid. + ErrCodeInvalidNextTokenException = "InvalidNextTokenException" + + // ErrCodeInvalidParameterCombinationException for service response error code + // "InvalidParameterCombinationException". + // + // This exception is thrown when the combination of parameters provided is not + // valid. + ErrCodeInvalidParameterCombinationException = "InvalidParameterCombinationException" + + // ErrCodeInvalidS3BucketNameException for service response error code + // "InvalidS3BucketNameException". + // + // This exception is thrown when the provided S3 bucket name is not valid. + ErrCodeInvalidS3BucketNameException = "InvalidS3BucketNameException" + + // ErrCodeInvalidS3PrefixException for service response error code + // "InvalidS3PrefixException". + // + // This exception is thrown when the provided S3 prefix is not valid. + ErrCodeInvalidS3PrefixException = "InvalidS3PrefixException" + + // ErrCodeInvalidSnsTopicNameException for service response error code + // "InvalidSnsTopicNameException". + // + // This exception is thrown when the provided SNS topic name is not valid. + ErrCodeInvalidSnsTopicNameException = "InvalidSnsTopicNameException" + + // ErrCodeInvalidTagParameterException for service response error code + // "InvalidTagParameterException". + // + // This exception is thrown when the key or value specified for the tag does + // not match the regular expression ^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$. + ErrCodeInvalidTagParameterException = "InvalidTagParameterException" + + // ErrCodeInvalidTimeRangeException for service response error code + // "InvalidTimeRangeException". + // + // Occurs if the timestamp values are invalid. Either the start time occurs + // after the end time or the time range is outside the range of possible values. + ErrCodeInvalidTimeRangeException = "InvalidTimeRangeException" + + // ErrCodeInvalidTokenException for service response error code + // "InvalidTokenException". + // + // Reserved for future use. + ErrCodeInvalidTokenException = "InvalidTokenException" + + // ErrCodeInvalidTrailNameException for service response error code + // "InvalidTrailNameException". + // + // This exception is thrown when the provided trail name is not valid. Trail + // names must meet the following requirements: + // + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores + // (_), or dashes (-) + // + // * Start with a letter or number, and end with a letter or number + // + // * Be between 3 and 128 characters + // + // * Have no adjacent periods, underscores or dashes. Names like my-_namespace + // and my--namespace are invalid. + // + // * Not be in IP address format (for example, 192.168.5.4) + ErrCodeInvalidTrailNameException = "InvalidTrailNameException" + + // ErrCodeKmsException for service response error code + // "KmsException". + // + // This exception is thrown when there is an issue with the specified KMS key + // and the trail can’t be updated. + ErrCodeKmsException = "KmsException" + + // ErrCodeKmsKeyDisabledException for service response error code + // "KmsKeyDisabledException". + // + // This exception is deprecated. + ErrCodeKmsKeyDisabledException = "KmsKeyDisabledException" + + // ErrCodeKmsKeyNotFoundException for service response error code + // "KmsKeyNotFoundException". + // + // This exception is thrown when the KMS key does not exist, or when the S3 + // bucket and the KMS key are not in the same region. + ErrCodeKmsKeyNotFoundException = "KmsKeyNotFoundException" + + // ErrCodeMaximumNumberOfTrailsExceededException for service response error code + // "MaximumNumberOfTrailsExceededException". + // + // This exception is thrown when the maximum number of trails is reached. + ErrCodeMaximumNumberOfTrailsExceededException = "MaximumNumberOfTrailsExceededException" + + // ErrCodeOperationNotPermittedException for service response error code + // "OperationNotPermittedException". + // + // This exception is thrown when the requested operation is not permitted. + ErrCodeOperationNotPermittedException = "OperationNotPermittedException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // This exception is thrown when the specified resource is not found. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeResourceTypeNotSupportedException for service response error code + // "ResourceTypeNotSupportedException". + // + // This exception is thrown when the specified resource type is not supported + // by CloudTrail. + ErrCodeResourceTypeNotSupportedException = "ResourceTypeNotSupportedException" + + // ErrCodeS3BucketDoesNotExistException for service response error code + // "S3BucketDoesNotExistException". + // + // This exception is thrown when the specified S3 bucket does not exist. + ErrCodeS3BucketDoesNotExistException = "S3BucketDoesNotExistException" + + // ErrCodeTagsLimitExceededException for service response error code + // "TagsLimitExceededException". + // + // The number of tags per trail has exceeded the permitted amount. Currently, + // the limit is 50. + ErrCodeTagsLimitExceededException = "TagsLimitExceededException" + + // ErrCodeTrailAlreadyExistsException for service response error code + // "TrailAlreadyExistsException". + // + // This exception is thrown when the specified trail already exists. + ErrCodeTrailAlreadyExistsException = "TrailAlreadyExistsException" + + // ErrCodeTrailNotFoundException for service response error code + // "TrailNotFoundException". + // + // This exception is thrown when the trail with the given name is not found. + ErrCodeTrailNotFoundException = "TrailNotFoundException" + + // ErrCodeTrailNotProvidedException for service response error code + // "TrailNotProvidedException". + // + // This exception is deprecated. + ErrCodeTrailNotProvidedException = "TrailNotProvidedException" + + // ErrCodeUnsupportedOperationException for service response error code + // "UnsupportedOperationException". + // + // This exception is thrown when the requested operation is not supported. + ErrCodeUnsupportedOperationException = "UnsupportedOperationException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/examples_test.go index bb05fe7f3..42810f728 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudTrail_AddTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -48,11 +44,7 @@ func ExampleCloudTrail_AddTags() { } func ExampleCloudTrail_CreateTrail() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -82,11 +74,7 @@ func ExampleCloudTrail_CreateTrail() { } func ExampleCloudTrail_DeleteTrail() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -107,11 +95,7 @@ func ExampleCloudTrail_DeleteTrail() { } func ExampleCloudTrail_DescribeTrails() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -135,13 +119,30 @@ func ExampleCloudTrail_DescribeTrails() { fmt.Println(resp) } -func ExampleCloudTrail_GetTrailStatus() { - sess, err := session.NewSession() +func ExampleCloudTrail_GetEventSelectors() { + sess := session.Must(session.NewSession()) + + svc := cloudtrail.New(sess) + + params := &cloudtrail.GetEventSelectorsInput{ + TrailName: aws.String("String"), + } + resp, err := svc.GetEventSelectors(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudTrail_GetTrailStatus() { + sess := session.Must(session.NewSession()) + svc := cloudtrail.New(sess) params := &cloudtrail.GetTrailStatusInput{ @@ -161,11 +162,7 @@ func ExampleCloudTrail_GetTrailStatus() { } func ExampleCloudTrail_ListPublicKeys() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -188,11 +185,7 @@ func ExampleCloudTrail_ListPublicKeys() { } func ExampleCloudTrail_ListTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -217,11 +210,7 @@ func ExampleCloudTrail_ListTags() { } func ExampleCloudTrail_LookupEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -251,13 +240,47 @@ func ExampleCloudTrail_LookupEvents() { fmt.Println(resp) } -func ExampleCloudTrail_RemoveTags() { - sess, err := session.NewSession() +func ExampleCloudTrail_PutEventSelectors() { + sess := session.Must(session.NewSession()) + + svc := cloudtrail.New(sess) + + params := &cloudtrail.PutEventSelectorsInput{ + EventSelectors: []*cloudtrail.EventSelector{ + { // Required + DataResources: []*cloudtrail.DataResource{ + { // Required + Type: aws.String("String"), + Values: []*string{ + aws.String("String"), // Required + // More values... + }, + }, + // More values... + }, + IncludeManagementEvents: aws.Bool(true), + ReadWriteType: aws.String("ReadWriteType"), + }, + // More values... + }, + TrailName: aws.String("String"), + } + resp, err := svc.PutEventSelectors(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudTrail_RemoveTags() { + sess := session.Must(session.NewSession()) + svc := cloudtrail.New(sess) params := &cloudtrail.RemoveTagsInput{ @@ -284,11 +307,7 @@ func ExampleCloudTrail_RemoveTags() { } func ExampleCloudTrail_StartLogging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -309,11 +328,7 @@ func ExampleCloudTrail_StartLogging() { } func ExampleCloudTrail_StopLogging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) @@ -334,11 +349,7 @@ func ExampleCloudTrail_StopLogging() { } func ExampleCloudTrail_UpdateTrail() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudtrail.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/service.go index 621e16698..f5fcb38c2 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/service.go @@ -20,7 +20,7 @@ import ( // IP address, the request parameters, and the response elements returned by // the service. // -// As an alternative to the API, you can use one of the AWS SDKs, which consist +// As an alternative to the API, you can use one of the AWS SDKs, which consist // of libraries and sample code for various programming languages and platforms // (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient way // to create programmatic access to AWSCloudTrail. For example, the SDKs take @@ -29,10 +29,12 @@ import ( // to download and install them, see the Tools for Amazon Web Services page // (http://aws.amazon.com/tools/). // -// See the CloudTrail User Guide for information about the data that is included -// with each AWS API call listed in the log files. -//The service client's operations are safe to be used concurrently. +// See the AWS CloudTrail User Guide (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-user-guide.html) +// for information about the data that is included with each AWS API call listed +// in the log files. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01 type CloudTrail struct { *client.Client } @@ -43,8 +45,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "cloudtrail" +// Service information constants +const ( + ServiceName = "cloudtrail" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the CloudTrail client with a session. // If additional configuration is needed for the client instance use the optional @@ -57,17 +62,18 @@ const ServiceName = "cloudtrail" // // Create a CloudTrail client with additional configuration // svc := cloudtrail.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudTrail { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CloudTrail { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CloudTrail { svc := &CloudTrail{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2013-11-01", diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/api.go index b198b4a84..3abedb2ce 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/api.go @@ -39,6 +39,7 @@ const opDeleteAlarms = "DeleteAlarms" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAlarms func (c *CloudWatch) DeleteAlarmsRequest(input *DeleteAlarmsInput) (req *request.Request, output *DeleteAlarmsOutput) { op := &request.Operation{ Name: opDeleteAlarms, @@ -50,17 +51,16 @@ func (c *CloudWatch) DeleteAlarmsRequest(input *DeleteAlarmsInput) (req *request input = &DeleteAlarmsInput{} } + output = &DeleteAlarmsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAlarmsOutput{} - req.Data = output return } // DeleteAlarms API operation for Amazon CloudWatch. // -// Deletes all specified alarms. In the event of an error, no alarms are deleted. +// Deletes the specified alarms. In the event of an error, no alarms are deleted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -70,9 +70,10 @@ func (c *CloudWatch) DeleteAlarmsRequest(input *DeleteAlarmsInput) (req *request // API operation DeleteAlarms for usage and error information. // // Returned Error Codes: -// * ResourceNotFound +// * ErrCodeResourceNotFound "ResourceNotFound" // The named resource does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAlarms func (c *CloudWatch) DeleteAlarms(input *DeleteAlarmsInput) (*DeleteAlarmsOutput, error) { req, out := c.DeleteAlarmsRequest(input) err := req.Send() @@ -105,6 +106,7 @@ const opDescribeAlarmHistory = "DescribeAlarmHistory" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory func (c *CloudWatch) DescribeAlarmHistoryRequest(input *DescribeAlarmHistoryInput) (req *request.Request, output *DescribeAlarmHistoryOutput) { op := &request.Operation{ Name: opDescribeAlarmHistory, @@ -122,20 +124,19 @@ func (c *CloudWatch) DescribeAlarmHistoryRequest(input *DescribeAlarmHistoryInpu input = &DescribeAlarmHistoryInput{} } - req = c.newRequest(op, input, output) output = &DescribeAlarmHistoryOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeAlarmHistory API operation for Amazon CloudWatch. // -// Retrieves history for the specified alarm. Filter alarms by date range or -// item type. If an alarm name is not specified, Amazon CloudWatch returns histories -// for all of the owner's alarms. +// Retrieves the history for the specified alarm. You can filter the results +// by date range or item type. If an alarm name is not specified, the histories +// for all alarms are returned. // -// Amazon CloudWatch retains the history of an alarm for two weeks, whether -// or not you delete the alarm. +// Note that Amazon CloudWatch retains the history of an alarm even if you delete +// the alarm. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -145,9 +146,10 @@ func (c *CloudWatch) DescribeAlarmHistoryRequest(input *DescribeAlarmHistoryInpu // API operation DescribeAlarmHistory for usage and error information. // // Returned Error Codes: -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The next token specified is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory func (c *CloudWatch) DescribeAlarmHistory(input *DescribeAlarmHistoryInput) (*DescribeAlarmHistoryOutput, error) { req, out := c.DescribeAlarmHistoryRequest(input) err := req.Send() @@ -205,6 +207,7 @@ const opDescribeAlarms = "DescribeAlarms" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms func (c *CloudWatch) DescribeAlarmsRequest(input *DescribeAlarmsInput) (req *request.Request, output *DescribeAlarmsOutput) { op := &request.Operation{ Name: opDescribeAlarms, @@ -222,17 +225,16 @@ func (c *CloudWatch) DescribeAlarmsRequest(input *DescribeAlarmsInput) (req *req input = &DescribeAlarmsInput{} } - req = c.newRequest(op, input, output) output = &DescribeAlarmsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeAlarms API operation for Amazon CloudWatch. // -// Retrieves alarms with the specified names. If no name is specified, all alarms -// for the user are returned. Alarms can be retrieved by using only a prefix -// for the alarm name, the alarm state, or a prefix for any action. +// Retrieves the specified alarms. If no alarms are specified, all alarms are +// returned. Alarms can be retrieved by using only a prefix for the alarm name, +// the alarm state, or a prefix for any action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -242,9 +244,10 @@ func (c *CloudWatch) DescribeAlarmsRequest(input *DescribeAlarmsInput) (req *req // API operation DescribeAlarms for usage and error information. // // Returned Error Codes: -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The next token specified is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms func (c *CloudWatch) DescribeAlarms(input *DescribeAlarmsInput) (*DescribeAlarmsOutput, error) { req, out := c.DescribeAlarmsRequest(input) err := req.Send() @@ -302,6 +305,7 @@ const opDescribeAlarmsForMetric = "DescribeAlarmsForMetric" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmsForMetric func (c *CloudWatch) DescribeAlarmsForMetricRequest(input *DescribeAlarmsForMetricInput) (req *request.Request, output *DescribeAlarmsForMetricOutput) { op := &request.Operation{ Name: opDescribeAlarmsForMetric, @@ -313,16 +317,15 @@ func (c *CloudWatch) DescribeAlarmsForMetricRequest(input *DescribeAlarmsForMetr input = &DescribeAlarmsForMetricInput{} } - req = c.newRequest(op, input, output) output = &DescribeAlarmsForMetricOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeAlarmsForMetric API operation for Amazon CloudWatch. // -// Retrieves all alarms for a single metric. Specify a statistic, period, or -// unit to filter the set of alarms further. +// Retrieves the alarms for the specified metric. Specify a statistic, period, +// or unit to filter the results. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -330,6 +333,7 @@ func (c *CloudWatch) DescribeAlarmsForMetricRequest(input *DescribeAlarmsForMetr // // See the AWS API reference guide for Amazon CloudWatch's // API operation DescribeAlarmsForMetric for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmsForMetric func (c *CloudWatch) DescribeAlarmsForMetric(input *DescribeAlarmsForMetricInput) (*DescribeAlarmsForMetricOutput, error) { req, out := c.DescribeAlarmsForMetricRequest(input) err := req.Send() @@ -362,6 +366,7 @@ const opDisableAlarmActions = "DisableAlarmActions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableAlarmActions func (c *CloudWatch) DisableAlarmActionsRequest(input *DisableAlarmActionsInput) (req *request.Request, output *DisableAlarmActionsOutput) { op := &request.Operation{ Name: opDisableAlarmActions, @@ -373,18 +378,17 @@ func (c *CloudWatch) DisableAlarmActionsRequest(input *DisableAlarmActionsInput) input = &DisableAlarmActionsInput{} } + output = &DisableAlarmActionsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DisableAlarmActionsOutput{} - req.Data = output return } // DisableAlarmActions API operation for Amazon CloudWatch. // -// Disables actions for the specified alarms. When an alarm's actions are disabled -// the alarm's state may change, but none of the alarm's actions will execute. +// Disables the actions for the specified alarms. When an alarm's actions are +// disabled, the alarm actions do not execute when the alarm state changes. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -392,6 +396,7 @@ func (c *CloudWatch) DisableAlarmActionsRequest(input *DisableAlarmActionsInput) // // See the AWS API reference guide for Amazon CloudWatch's // API operation DisableAlarmActions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableAlarmActions func (c *CloudWatch) DisableAlarmActions(input *DisableAlarmActionsInput) (*DisableAlarmActionsOutput, error) { req, out := c.DisableAlarmActionsRequest(input) err := req.Send() @@ -424,6 +429,7 @@ const opEnableAlarmActions = "EnableAlarmActions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableAlarmActions func (c *CloudWatch) EnableAlarmActionsRequest(input *EnableAlarmActionsInput) (req *request.Request, output *EnableAlarmActionsOutput) { op := &request.Operation{ Name: opEnableAlarmActions, @@ -435,17 +441,16 @@ func (c *CloudWatch) EnableAlarmActionsRequest(input *EnableAlarmActionsInput) ( input = &EnableAlarmActionsInput{} } + output = &EnableAlarmActionsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &EnableAlarmActionsOutput{} - req.Data = output return } // EnableAlarmActions API operation for Amazon CloudWatch. // -// Enables actions for the specified alarms. +// Enables the actions for the specified alarms. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -453,6 +458,7 @@ func (c *CloudWatch) EnableAlarmActionsRequest(input *EnableAlarmActionsInput) ( // // See the AWS API reference guide for Amazon CloudWatch's // API operation EnableAlarmActions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableAlarmActions func (c *CloudWatch) EnableAlarmActions(input *EnableAlarmActionsInput) (*EnableAlarmActionsOutput, error) { req, out := c.EnableAlarmActionsRequest(input) err := req.Send() @@ -485,6 +491,7 @@ const opGetMetricStatistics = "GetMetricStatistics" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStatistics func (c *CloudWatch) GetMetricStatisticsRequest(input *GetMetricStatisticsInput) (req *request.Request, output *GetMetricStatisticsOutput) { op := &request.Operation{ Name: opGetMetricStatistics, @@ -496,9 +503,8 @@ func (c *CloudWatch) GetMetricStatisticsRequest(input *GetMetricStatisticsInput) input = &GetMetricStatisticsInput{} } - req = c.newRequest(op, input, output) output = &GetMetricStatisticsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -506,36 +512,36 @@ func (c *CloudWatch) GetMetricStatisticsRequest(input *GetMetricStatisticsInput) // // Gets statistics for the specified metric. // -// The maximum number of data points that can be queried is 50,850, whereas -// the maximum number of data points returned from a single GetMetricStatistics -// request is 1,440. If you make a request that generates more than 1,440 data -// points, Amazon CloudWatch returns an error. In such a case, you can alter -// the request by narrowing the specified time range or increasing the specified -// period. A period can be as short as one minute (60 seconds) or as long as -// one day (86,400 seconds). Alternatively, you can make multiple requests across -// adjacent time ranges. GetMetricStatistics does not return the data in chronological -// order. +// Amazon CloudWatch retains metric data as follows: +// +// * Data points with a period of 60 seconds (1 minute) are available for +// 15 days // -// Amazon CloudWatch aggregates data points based on the length of the period -// that you specify. For example, if you request statistics with a one-minute -// granularity, Amazon CloudWatch aggregates data points with time stamps that -// fall within the same one-minute period. In such a case, the data points queried -// can greatly outnumber the data points returned. +// * Data points with a period of 300 seconds (5 minute) are available for +// 63 days // -// The following examples show various statistics allowed by the data point -// query maximum of 50,850 when you call GetMetricStatistics on Amazon EC2 instances -// with detailed (one-minute) monitoring enabled: +// * Data points with a period of 3600 seconds (1 hour) are available for +// 455 days (15 months) // -// Statistics for up to 400 instances for a span of one hour +// Note that CloudWatch started retaining 5-minute and 1-hour metric data as +// of 9 July 2016. // -// Statistics for up to 35 instances over a span of 24 hours +// The maximum number of data points returned from a single call is 1,440. If +// you request more than 1,440 data points, Amazon CloudWatch returns an error. +// To reduce the number of data points, you can narrow the specified time range +// and make multiple requests across adjacent time ranges, or you can increase +// the specified period. A period can be as short as one minute (60 seconds). +// Note that data points are not returned in chronological order. // -// Statistics for up to 2 instances over a span of 2 weeks +// Amazon CloudWatch aggregates data points based on the length of the period +// that you specify. For example, if you request statistics with a one-hour +// period, Amazon CloudWatch aggregates all data points with time stamps that +// fall within each one-hour period. Therefore, the number of values aggregated +// by CloudWatch is larger than the number of data points returned. // -// For information about the namespace, metric names, and dimensions that -// other Amazon Web Services products use to send metrics to CloudWatch, go -// to Amazon CloudWatch Metrics, Namespaces, and Dimensions Reference (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html) -// in the Amazon CloudWatch Developer Guide. +// For a list of metrics and dimensions supported by AWS services, see the Amazon +// CloudWatch Metrics and Dimensions Reference (http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CW_Support_For_AWS.html) +// in the Amazon CloudWatch User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -545,19 +551,19 @@ func (c *CloudWatch) GetMetricStatisticsRequest(input *GetMetricStatisticsInput) // API operation GetMetricStatistics for usage and error information. // // Returned Error Codes: -// * InvalidParameterValue -// Bad or out-of-range value was supplied for the input parameter. +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" +// The value of an input parameter is bad or out-of-range. // -// * MissingParameter -// An input parameter that is mandatory for processing the request is not supplied. +// * ErrCodeMissingRequiredParameterException "MissingParameter" +// An input parameter that is required is missing. // -// * InvalidParameterCombination -// Parameters that must not be used together were used together. +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" +// Parameters that cannot be used together were used together. // -// * InternalServiceError -// Indicates that the request processing has failed due to some unknown error, -// exception, or failure. +// * ErrCodeInternalServiceFault "InternalServiceError" +// Request processing has failed due to some unknown error, exception, or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStatistics func (c *CloudWatch) GetMetricStatistics(input *GetMetricStatisticsInput) (*GetMetricStatisticsOutput, error) { req, out := c.GetMetricStatisticsRequest(input) err := req.Send() @@ -590,6 +596,7 @@ const opListMetrics = "ListMetrics" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics func (c *CloudWatch) ListMetricsRequest(input *ListMetricsInput) (req *request.Request, output *ListMetricsOutput) { op := &request.Operation{ Name: opListMetrics, @@ -607,24 +614,22 @@ func (c *CloudWatch) ListMetricsRequest(input *ListMetricsInput) (req *request.R input = &ListMetricsInput{} } - req = c.newRequest(op, input, output) output = &ListMetricsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // ListMetrics API operation for Amazon CloudWatch. // -// Returns a list of valid metrics stored for the AWS account owner. Returned -// metrics can be used with GetMetricStatistics to obtain statistical data for -// a given metric. +// List the specified metrics. You can use the returned metrics with GetMetricStatistics +// to obtain statistical data. // -// Up to 500 results are returned for any one call. To retrieve further results, -// use returned NextToken values with subsequent ListMetrics operations. +// Up to 500 results are returned for any one call. To retrieve additional results, +// use the returned token with subsequent calls. // -// If you create a metric with PutMetricData, allow up to fifteen minutes -// for the metric to appear in calls to ListMetrics. Statistics about the metric, -// however, are available sooner using GetMetricStatistics. +// After you create a metric, allow up to fifteen minutes before the metric +// appears. Statistics about the metric, however, are available sooner using +// GetMetricStatistics. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -634,13 +639,13 @@ func (c *CloudWatch) ListMetricsRequest(input *ListMetricsInput) (req *request.R // API operation ListMetrics for usage and error information. // // Returned Error Codes: -// * InternalServiceError -// Indicates that the request processing has failed due to some unknown error, -// exception, or failure. +// * ErrCodeInternalServiceFault "InternalServiceError" +// Request processing has failed due to some unknown error, exception, or failure. // -// * InvalidParameterValue -// Bad or out-of-range value was supplied for the input parameter. +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" +// The value of an input parameter is bad or out-of-range. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics func (c *CloudWatch) ListMetrics(input *ListMetricsInput) (*ListMetricsOutput, error) { req, out := c.ListMetricsRequest(input) err := req.Send() @@ -698,6 +703,7 @@ const opPutMetricAlarm = "PutMetricAlarm" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricAlarm func (c *CloudWatch) PutMetricAlarmRequest(input *PutMetricAlarmInput) (req *request.Request, output *PutMetricAlarmOutput) { op := &request.Operation{ Name: opPutMetricAlarm, @@ -709,57 +715,58 @@ func (c *CloudWatch) PutMetricAlarmRequest(input *PutMetricAlarmInput) (req *req input = &PutMetricAlarmInput{} } + output = &PutMetricAlarmOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutMetricAlarmOutput{} - req.Data = output return } // PutMetricAlarm API operation for Amazon CloudWatch. // -// Creates or updates an alarm and associates it with the specified Amazon CloudWatch -// metric. Optionally, this operation can associate one or more Amazon SNS resources +// Creates or updates an alarm and associates it with the specified metric. +// Optionally, this operation can associate one or more Amazon SNS resources // with the alarm. // -// When this operation creates an alarm, the alarm state is immediately set -// to INSUFFICIENT_DATA. The alarm is evaluated and its StateValue is set appropriately. -// Any actions associated with the StateValue are then executed. +// When this operation creates an alarm, the alarm state is immediately set +// to INSUFFICIENT_DATA. The alarm is evaluated and its state is set appropriately. +// Any actions associated with the state are then executed. // -// When updating an existing alarm, its StateValue is left unchanged, but -// it completely overwrites the alarm's previous configuration. +// When you update an existing alarm, its state is left unchanged, but the update +// completely overwrites the previous configuration of the alarm. // -// If you are using an AWS Identity and Access Management (IAM) account to -// create or modify an alarm, you must have the following Amazon EC2 permissions: +// If you are an AWS Identity and Access Management (IAM) user, you must have +// Amazon EC2 permissions for some operations: // -// ec2:DescribeInstanceStatus and ec2:DescribeInstances for all alarms on -// Amazon EC2 instance status metrics. +// * ec2:DescribeInstanceStatus and ec2:DescribeInstances for all alarms +// on EC2 instance status metrics // -// ec2:StopInstances for alarms with stop actions. +// * ec2:StopInstances for alarms with stop actions // -// ec2:TerminateInstances for alarms with terminate actions. +// * ec2:TerminateInstances for alarms with terminate actions // -// ec2:DescribeInstanceRecoveryAttribute, and ec2:RecoverInstances for alarms -// with recover actions. +// * ec2:DescribeInstanceRecoveryAttribute and ec2:RecoverInstances for alarms +// with recover actions // -// If you have read/write permissions for Amazon CloudWatch but not for Amazon -// EC2, you can still create an alarm but the stop or terminate actions won't -// be performed on the Amazon EC2 instance. However, if you are later granted -// permission to use the associated Amazon EC2 APIs, the alarm actions you created -// earlier will be performed. For more information about IAM permissions, see -// Permissions and Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PermissionsAndPolicies.html) -// in Using IAM. +// If you have read/write permissions for Amazon CloudWatch but not for Amazon +// EC2, you can still create an alarm, but the stop or terminate actions won't +// be performed. However, if you are later granted the required permissions, +// the alarm actions that you created earlier will be performed. // -// If you are using an IAM role (e.g., an Amazon EC2 instance profile), you -// cannot stop or terminate the instance using alarm actions. However, you can -// still see the alarm state and perform any other actions such as Amazon SNS -// notifications or Auto Scaling policies. +// If you are using an IAM role (for example, an Amazon EC2 instance profile), +// you cannot stop or terminate the instance using alarm actions. However, you +// can still see the alarm state and perform any other actions such as Amazon +// SNS notifications or Auto Scaling policies. // // If you are using temporary security credentials granted using the AWS Security // Token Service (AWS STS), you cannot stop or terminate an Amazon EC2 instance // using alarm actions. // +// Note that you must create at least one stop, terminate, or reboot alarm using +// the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role. +// After this IAM role is created, you can create stop, terminate, or reboot +// alarms using a command-line interface or an API. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -768,9 +775,10 @@ func (c *CloudWatch) PutMetricAlarmRequest(input *PutMetricAlarmInput) (req *req // API operation PutMetricAlarm for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededFault "LimitExceeded" // The quota for alarms for this customer has already been reached. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricAlarm func (c *CloudWatch) PutMetricAlarm(input *PutMetricAlarmInput) (*PutMetricAlarmOutput, error) { req, out := c.PutMetricAlarmRequest(input) err := req.Send() @@ -803,6 +811,7 @@ const opPutMetricData = "PutMetricData" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricData func (c *CloudWatch) PutMetricDataRequest(input *PutMetricDataInput) (req *request.Request, output *PutMetricDataOutput) { op := &request.Operation{ Name: opPutMetricData, @@ -814,11 +823,10 @@ func (c *CloudWatch) PutMetricDataRequest(input *PutMetricDataInput) (req *reque input = &PutMetricDataInput{} } + output = &PutMetricDataOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutMetricDataOutput{} - req.Data = output return } @@ -830,17 +838,18 @@ func (c *CloudWatch) PutMetricDataRequest(input *PutMetricDataInput) (req *reque // a metric, it can take up to fifteen minutes for the metric to appear in calls // to ListMetrics. // -// Each PutMetricData request is limited to 8 KB in size for HTTP GET requests +// Each PutMetricData request is limited to 8 KB in size for HTTP GET requests // and is limited to 40 KB in size for HTTP POST requests. // -// Although the Value parameter accepts numbers of type Double, Amazon CloudWatch +// Although the Value parameter accepts numbers of type Double, Amazon CloudWatch // rejects values that are either too small or too large. Values must be in // the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 // (Base 2). In addition, special values (e.g., NaN, +Infinity, -Infinity) are // not supported. // -// Data that is timestamped 24 hours or more in the past may take in excess -// of 48 hours to become available from submission time using GetMetricStatistics. +// Data points with time stamps from 24 hours ago or longer can take at least +// 48 hours to become available for GetMetricStatistics from the time they are +// submitted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -850,19 +859,19 @@ func (c *CloudWatch) PutMetricDataRequest(input *PutMetricDataInput) (req *reque // API operation PutMetricData for usage and error information. // // Returned Error Codes: -// * InvalidParameterValue -// Bad or out-of-range value was supplied for the input parameter. +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" +// The value of an input parameter is bad or out-of-range. // -// * MissingParameter -// An input parameter that is mandatory for processing the request is not supplied. +// * ErrCodeMissingRequiredParameterException "MissingParameter" +// An input parameter that is required is missing. // -// * InvalidParameterCombination -// Parameters that must not be used together were used together. +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" +// Parameters that cannot be used together were used together. // -// * InternalServiceError -// Indicates that the request processing has failed due to some unknown error, -// exception, or failure. +// * ErrCodeInternalServiceFault "InternalServiceError" +// Request processing has failed due to some unknown error, exception, or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricData func (c *CloudWatch) PutMetricData(input *PutMetricDataInput) (*PutMetricDataOutput, error) { req, out := c.PutMetricDataRequest(input) err := req.Send() @@ -895,6 +904,7 @@ const opSetAlarmState = "SetAlarmState" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SetAlarmState func (c *CloudWatch) SetAlarmStateRequest(input *SetAlarmStateInput) (req *request.Request, output *SetAlarmStateOutput) { op := &request.Operation{ Name: opSetAlarmState, @@ -906,24 +916,23 @@ func (c *CloudWatch) SetAlarmStateRequest(input *SetAlarmStateInput) (req *reque input = &SetAlarmStateInput{} } + output = &SetAlarmStateOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetAlarmStateOutput{} - req.Data = output return } // SetAlarmState API operation for Amazon CloudWatch. // // Temporarily sets the state of an alarm for testing purposes. When the updated -// StateValue differs from the previous value, the action configured for the -// appropriate state is invoked. For example, if your alarm is configured to -// send an Amazon SNS message when an alarm is triggered, temporarily changing -// the alarm's state to ALARM sends an Amazon SNS message. The alarm returns -// to its actual state (often within seconds). Because the alarm state change -// happens very quickly, it is typically only visible in the alarm's History -// tab in the Amazon CloudWatch console or through DescribeAlarmHistory. +// state differs from the previous value, the action configured for the appropriate +// state is invoked. For example, if your alarm is configured to send an Amazon +// SNS message when an alarm is triggered, temporarily changing the alarm state +// to ALARM sends an Amazon SNS message. The alarm returns to its actual state +// (often within seconds). Because the alarm state change happens very quickly, +// it is typically only visible in the alarm's History tab in the Amazon CloudWatch +// console or through DescribeAlarmHistory. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -933,34 +942,34 @@ func (c *CloudWatch) SetAlarmStateRequest(input *SetAlarmStateInput) (req *reque // API operation SetAlarmState for usage and error information. // // Returned Error Codes: -// * ResourceNotFound +// * ErrCodeResourceNotFound "ResourceNotFound" // The named resource does not exist. // -// * InvalidFormat +// * ErrCodeInvalidFormatFault "InvalidFormat" // Data was not syntactically valid JSON. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SetAlarmState func (c *CloudWatch) SetAlarmState(input *SetAlarmStateInput) (*SetAlarmStateOutput, error) { req, out := c.SetAlarmStateRequest(input) err := req.Send() return out, err } -// The AlarmHistoryItem data type contains descriptive information about the -// history of a specific alarm. If you call DescribeAlarmHistory, Amazon CloudWatch -// returns this data type as part of the DescribeAlarmHistoryResult data type. +// Represents the history of a specific alarm. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/AlarmHistoryItem type AlarmHistoryItem struct { _ struct{} `type:"structure"` // The descriptive name for the alarm. AlarmName *string `min:"1" type:"string"` - // Machine-readable data about the alarm in JSON format. + // Data about the alarm, in JSON format. HistoryData *string `min:"1" type:"string"` // The type of alarm history item. HistoryItemType *string `type:"string" enum:"HistoryItemType"` - // A human-readable summary of the alarm history. + // A summary of the alarm history, in text format. HistorySummary *string `min:"1" type:"string"` // The time stamp for the alarm history item. @@ -977,31 +986,65 @@ func (s AlarmHistoryItem) GoString() string { return s.String() } -// The Datapoint data type encapsulates the statistical data that Amazon CloudWatch -// computes from metric data. +// SetAlarmName sets the AlarmName field's value. +func (s *AlarmHistoryItem) SetAlarmName(v string) *AlarmHistoryItem { + s.AlarmName = &v + return s +} + +// SetHistoryData sets the HistoryData field's value. +func (s *AlarmHistoryItem) SetHistoryData(v string) *AlarmHistoryItem { + s.HistoryData = &v + return s +} + +// SetHistoryItemType sets the HistoryItemType field's value. +func (s *AlarmHistoryItem) SetHistoryItemType(v string) *AlarmHistoryItem { + s.HistoryItemType = &v + return s +} + +// SetHistorySummary sets the HistorySummary field's value. +func (s *AlarmHistoryItem) SetHistorySummary(v string) *AlarmHistoryItem { + s.HistorySummary = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *AlarmHistoryItem) SetTimestamp(v time.Time) *AlarmHistoryItem { + s.Timestamp = &v + return s +} + +// Encapsulates the statistical data that Amazon CloudWatch computes from metric +// data. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/Datapoint type Datapoint struct { _ struct{} `type:"structure"` - // The average of metric values that correspond to the datapoint. + // The average of the metric values that correspond to the data point. Average *float64 `type:"double"` - // The maximum of the metric value used for the datapoint. + // The percentile statistic for the data point. + ExtendedStatistics map[string]*float64 `type:"map"` + + // The maximum metric value for the data point. Maximum *float64 `type:"double"` - // The minimum metric value used for the datapoint. + // The minimum metric value for the data point. Minimum *float64 `type:"double"` // The number of metric values that contributed to the aggregate value of this - // datapoint. + // data point. SampleCount *float64 `type:"double"` - // The sum of metric values used for the datapoint. + // The sum of the metric values for the data point. Sum *float64 `type:"double"` - // The time stamp used for the datapoint. + // The time stamp used for the data point. Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // The standard unit used for the datapoint. + // The standard unit for the data point. Unit *string `type:"string" enum:"StandardUnit"` } @@ -1015,11 +1058,59 @@ func (s Datapoint) GoString() string { return s.String() } -// Describes the inputs for DeleteAlarms. +// SetAverage sets the Average field's value. +func (s *Datapoint) SetAverage(v float64) *Datapoint { + s.Average = &v + return s +} + +// SetExtendedStatistics sets the ExtendedStatistics field's value. +func (s *Datapoint) SetExtendedStatistics(v map[string]*float64) *Datapoint { + s.ExtendedStatistics = v + return s +} + +// SetMaximum sets the Maximum field's value. +func (s *Datapoint) SetMaximum(v float64) *Datapoint { + s.Maximum = &v + return s +} + +// SetMinimum sets the Minimum field's value. +func (s *Datapoint) SetMinimum(v float64) *Datapoint { + s.Minimum = &v + return s +} + +// SetSampleCount sets the SampleCount field's value. +func (s *Datapoint) SetSampleCount(v float64) *Datapoint { + s.SampleCount = &v + return s +} + +// SetSum sets the Sum field's value. +func (s *Datapoint) SetSum(v float64) *Datapoint { + s.Sum = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *Datapoint) SetTimestamp(v time.Time) *Datapoint { + s.Timestamp = &v + return s +} + +// SetUnit sets the Unit field's value. +func (s *Datapoint) SetUnit(v string) *Datapoint { + s.Unit = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAlarmsInput type DeleteAlarmsInput struct { _ struct{} `type:"structure"` - // A list of alarms to be deleted. + // The alarms to be deleted. // // AlarmNames is a required field AlarmNames []*string `type:"list" required:"true"` @@ -1048,6 +1139,13 @@ func (s *DeleteAlarmsInput) Validate() error { return nil } +// SetAlarmNames sets the AlarmNames field's value. +func (s *DeleteAlarmsInput) SetAlarmNames(v []*string) *DeleteAlarmsInput { + s.AlarmNames = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAlarmsOutput type DeleteAlarmsOutput struct { _ struct{} `type:"structure"` } @@ -1062,7 +1160,7 @@ func (s DeleteAlarmsOutput) GoString() string { return s.String() } -// Describes the inputs for DescribeAlarmHistory. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistoryInput type DescribeAlarmHistoryInput struct { _ struct{} `type:"structure"` @@ -1112,14 +1210,50 @@ func (s *DescribeAlarmHistoryInput) Validate() error { return nil } -// The output for DescribeAlarmHistory. +// SetAlarmName sets the AlarmName field's value. +func (s *DescribeAlarmHistoryInput) SetAlarmName(v string) *DescribeAlarmHistoryInput { + s.AlarmName = &v + return s +} + +// SetEndDate sets the EndDate field's value. +func (s *DescribeAlarmHistoryInput) SetEndDate(v time.Time) *DescribeAlarmHistoryInput { + s.EndDate = &v + return s +} + +// SetHistoryItemType sets the HistoryItemType field's value. +func (s *DescribeAlarmHistoryInput) SetHistoryItemType(v string) *DescribeAlarmHistoryInput { + s.HistoryItemType = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeAlarmHistoryInput) SetMaxRecords(v int64) *DescribeAlarmHistoryInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAlarmHistoryInput) SetNextToken(v string) *DescribeAlarmHistoryInput { + s.NextToken = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *DescribeAlarmHistoryInput) SetStartDate(v time.Time) *DescribeAlarmHistoryInput { + s.StartDate = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistoryOutput type DescribeAlarmHistoryOutput struct { _ struct{} `type:"structure"` - // A list of alarm histories in JSON format. + // The alarm histories, in JSON format. AlarmHistoryItems []*AlarmHistoryItem `type:"list"` - // A string that marks the start of the next batch of returned results. + // The token that marks the start of the next batch of returned results. NextToken *string `type:"string"` } @@ -1133,15 +1267,30 @@ func (s DescribeAlarmHistoryOutput) GoString() string { return s.String() } -// Describes the inputs for DescribeAlarmsForMetric. +// SetAlarmHistoryItems sets the AlarmHistoryItems field's value. +func (s *DescribeAlarmHistoryOutput) SetAlarmHistoryItems(v []*AlarmHistoryItem) *DescribeAlarmHistoryOutput { + s.AlarmHistoryItems = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAlarmHistoryOutput) SetNextToken(v string) *DescribeAlarmHistoryOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmsForMetricInput type DescribeAlarmsForMetricInput struct { _ struct{} `type:"structure"` - // The list of dimensions associated with the metric. If the metric has any - // associated dimensions, you must specify them in order for the DescribeAlarmsForMetric - // to succeed. + // The dimensions associated with the metric. If the metric has any associated + // dimensions, you must specify them in order for the call to succeed. Dimensions []*Dimension `type:"list"` + // The percentile statistic for the metric. Specify a value between p0.0 and + // p100. + ExtendedStatistic *string `type:"string"` + // The name of the metric. // // MetricName is a required field @@ -1152,10 +1301,11 @@ type DescribeAlarmsForMetricInput struct { // Namespace is a required field Namespace *string `min:"1" type:"string" required:"true"` - // The period in seconds over which the statistic is applied. + // The period, in seconds, over which the statistic is applied. Period *int64 `min:"60" type:"integer"` - // The statistic for the metric. + // The statistic for the metric, other than percentiles. For percentile statistics, + // use ExtendedStatistics. Statistic *string `type:"string" enum:"Statistic"` // The unit for the metric. @@ -1207,11 +1357,53 @@ func (s *DescribeAlarmsForMetricInput) Validate() error { return nil } -// The output for DescribeAlarmsForMetric. +// SetDimensions sets the Dimensions field's value. +func (s *DescribeAlarmsForMetricInput) SetDimensions(v []*Dimension) *DescribeAlarmsForMetricInput { + s.Dimensions = v + return s +} + +// SetExtendedStatistic sets the ExtendedStatistic field's value. +func (s *DescribeAlarmsForMetricInput) SetExtendedStatistic(v string) *DescribeAlarmsForMetricInput { + s.ExtendedStatistic = &v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *DescribeAlarmsForMetricInput) SetMetricName(v string) *DescribeAlarmsForMetricInput { + s.MetricName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *DescribeAlarmsForMetricInput) SetNamespace(v string) *DescribeAlarmsForMetricInput { + s.Namespace = &v + return s +} + +// SetPeriod sets the Period field's value. +func (s *DescribeAlarmsForMetricInput) SetPeriod(v int64) *DescribeAlarmsForMetricInput { + s.Period = &v + return s +} + +// SetStatistic sets the Statistic field's value. +func (s *DescribeAlarmsForMetricInput) SetStatistic(v string) *DescribeAlarmsForMetricInput { + s.Statistic = &v + return s +} + +// SetUnit sets the Unit field's value. +func (s *DescribeAlarmsForMetricInput) SetUnit(v string) *DescribeAlarmsForMetricInput { + s.Unit = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmsForMetricOutput type DescribeAlarmsForMetricOutput struct { _ struct{} `type:"structure"` - // A list of information for each alarm with the specified metric. + // The information for each alarm with the specified metric. MetricAlarms []*MetricAlarm `type:"list"` } @@ -1225,18 +1417,24 @@ func (s DescribeAlarmsForMetricOutput) GoString() string { return s.String() } -// Describes the inputs for DescribeAlarms. +// SetMetricAlarms sets the MetricAlarms field's value. +func (s *DescribeAlarmsForMetricOutput) SetMetricAlarms(v []*MetricAlarm) *DescribeAlarmsForMetricOutput { + s.MetricAlarms = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmsInput type DescribeAlarmsInput struct { _ struct{} `type:"structure"` // The action name prefix. ActionPrefix *string `min:"1" type:"string"` - // The alarm name prefix. AlarmNames cannot be specified if this parameter is + // The alarm name prefix. You cannot specify AlarmNames if this parameter is // specified. AlarmNamePrefix *string `min:"1" type:"string"` - // A list of alarm names to retrieve information for. + // The names of the alarms. AlarmNames []*string `type:"list"` // The maximum number of alarm descriptions to retrieve. @@ -1279,14 +1477,50 @@ func (s *DescribeAlarmsInput) Validate() error { return nil } -// The output for DescribeAlarms. +// SetActionPrefix sets the ActionPrefix field's value. +func (s *DescribeAlarmsInput) SetActionPrefix(v string) *DescribeAlarmsInput { + s.ActionPrefix = &v + return s +} + +// SetAlarmNamePrefix sets the AlarmNamePrefix field's value. +func (s *DescribeAlarmsInput) SetAlarmNamePrefix(v string) *DescribeAlarmsInput { + s.AlarmNamePrefix = &v + return s +} + +// SetAlarmNames sets the AlarmNames field's value. +func (s *DescribeAlarmsInput) SetAlarmNames(v []*string) *DescribeAlarmsInput { + s.AlarmNames = v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeAlarmsInput) SetMaxRecords(v int64) *DescribeAlarmsInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAlarmsInput) SetNextToken(v string) *DescribeAlarmsInput { + s.NextToken = &v + return s +} + +// SetStateValue sets the StateValue field's value. +func (s *DescribeAlarmsInput) SetStateValue(v string) *DescribeAlarmsInput { + s.StateValue = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmsOutput type DescribeAlarmsOutput struct { _ struct{} `type:"structure"` - // A list of information for the specified alarms. + // The information for the specified alarms. MetricAlarms []*MetricAlarm `type:"list"` - // A string that marks the start of the next batch of returned results. + // The token that marks the start of the next batch of returned results. NextToken *string `type:"string"` } @@ -1300,10 +1534,20 @@ func (s DescribeAlarmsOutput) GoString() string { return s.String() } -// The Dimension data type further expands on the identity of a metric using -// a Name, Value pair. -// -// For examples that use one or more dimensions, see PutMetricData. +// SetMetricAlarms sets the MetricAlarms field's value. +func (s *DescribeAlarmsOutput) SetMetricAlarms(v []*MetricAlarm) *DescribeAlarmsOutput { + s.MetricAlarms = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAlarmsOutput) SetNextToken(v string) *DescribeAlarmsOutput { + s.NextToken = &v + return s +} + +// Expands the identity of a metric. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/Dimension type Dimension struct { _ struct{} `type:"structure"` @@ -1312,7 +1556,7 @@ type Dimension struct { // Name is a required field Name *string `min:"1" type:"string" required:"true"` - // The value representing the dimension measurement + // The value representing the dimension measurement. // // Value is a required field Value *string `min:"1" type:"string" required:"true"` @@ -1350,7 +1594,20 @@ func (s *Dimension) Validate() error { return nil } -// The DimensionFilter data type is used to filter ListMetrics results. +// SetName sets the Name field's value. +func (s *Dimension) SetName(v string) *Dimension { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Dimension) SetValue(v string) *Dimension { + s.Value = &v + return s +} + +// Represents filters for a dimension. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DimensionFilter type DimensionFilter struct { _ struct{} `type:"structure"` @@ -1360,9 +1617,6 @@ type DimensionFilter struct { Name *string `min:"1" type:"string" required:"true"` // The value of the dimension to be matched. - // - // Specifying a Name without specifying a Value returns all values associated - // with that Name. Value *string `min:"1" type:"string"` } @@ -1395,10 +1649,23 @@ func (s *DimensionFilter) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *DimensionFilter) SetName(v string) *DimensionFilter { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *DimensionFilter) SetValue(v string) *DimensionFilter { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableAlarmActionsInput type DisableAlarmActionsInput struct { _ struct{} `type:"structure"` - // The names of the alarms to disable actions for. + // The names of the alarms. // // AlarmNames is a required field AlarmNames []*string `type:"list" required:"true"` @@ -1427,6 +1694,13 @@ func (s *DisableAlarmActionsInput) Validate() error { return nil } +// SetAlarmNames sets the AlarmNames field's value. +func (s *DisableAlarmActionsInput) SetAlarmNames(v []*string) *DisableAlarmActionsInput { + s.AlarmNames = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableAlarmActionsOutput type DisableAlarmActionsOutput struct { _ struct{} `type:"structure"` } @@ -1441,11 +1715,11 @@ func (s DisableAlarmActionsOutput) GoString() string { return s.String() } -// Describes the inputs for EnableAlarmActions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableAlarmActionsInput type EnableAlarmActionsInput struct { _ struct{} `type:"structure"` - // The names of the alarms to enable actions for. + // The names of the alarms. // // AlarmNames is a required field AlarmNames []*string `type:"list" required:"true"` @@ -1474,6 +1748,13 @@ func (s *EnableAlarmActionsInput) Validate() error { return nil } +// SetAlarmNames sets the AlarmNames field's value. +func (s *EnableAlarmActionsInput) SetAlarmNames(v []*string) *EnableAlarmActionsInput { + s.AlarmNames = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableAlarmActionsOutput type EnableAlarmActionsOutput struct { _ struct{} `type:"structure"` } @@ -1488,20 +1769,30 @@ func (s EnableAlarmActionsOutput) GoString() string { return s.String() } -// Describes the inputs for GetMetricStatistics. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStatisticsInput type GetMetricStatisticsInput struct { _ struct{} `type:"structure"` - // A list of dimensions describing qualities of the metric. + // The dimensions. CloudWatch treats each unique combination of dimensions as + // a separate metric. You can't retrieve statistics using combinations of dimensions + // that were not specially published. You must specify the same dimensions that + // were used when the metrics were created. For an example, see Dimension Combinations + // (http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#dimension-combinations) + // in the Amazon CloudWatch User Guide. Dimensions []*Dimension `type:"list"` - // The time stamp to use for determining the last datapoint to return. The value - // specified is exclusive; results will include datapoints up to the time stamp - // specified. The time stamp must be in ISO 8601 UTC format (e.g., 2014-09-03T23:00:00Z). + // The time stamp that determines the last data point to return. + // + // The value specified is exclusive; results will include data points up to + // the specified time stamp. The time stamp must be in ISO 8601 UTC format (for + // example, 2016-10-10T23:00:00Z). // // EndTime is a required field EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + // The percentile statistics. Specify values between p0.0 and p100. + ExtendedStatistics []*string `min:"1" type:"list"` + // The name of the metric, with or without spaces. // // MetricName is a required field @@ -1512,38 +1803,51 @@ type GetMetricStatisticsInput struct { // Namespace is a required field Namespace *string `min:"1" type:"string" required:"true"` - // The granularity, in seconds, of the returned datapoints. A Period can be - // as short as one minute (60 seconds) or as long as one day (86,400 seconds), - // and must be a multiple of 60. The default value is 60. + // The granularity, in seconds, of the returned data points. A period can be + // as short as one minute (60 seconds) and must be a multiple of 60. The default + // value is 60. + // + // If the StartTime parameter specifies a time stamp that is greater than 15 + // days ago, you must specify the period as follows or no data points in that + // time range is returned: + // + // * Start time between 15 and 63 days ago - Use a multiple of 300 seconds + // (5 minutes). + // + // * Start time greater than 63 days ago - Use a multiple of 3600 seconds + // (1 hour). // // Period is a required field Period *int64 `min:"60" type:"integer" required:"true"` - // The time stamp to use for determining the first datapoint to return. The - // value specified is inclusive; results include datapoints with the time stamp - // specified. The time stamp must be in ISO 8601 UTC format (e.g., 2014-09-03T23:00:00Z). + // The time stamp that determines the first data point to return. Note that + // start times are evaluated relative to the time that CloudWatch receives the + // request. + // + // The value specified is inclusive; results include data points with the specified + // time stamp. The time stamp must be in ISO 8601 UTC format (for example, 2016-10-03T23:00:00Z). + // + // CloudWatch rounds the specified time stamp as follows: + // + // * Start time less than 15 days ago - Round down to the nearest whole minute. + // For example, 12:32:34 is rounded down to 12:32:00. // - // The specified start time is rounded down to the nearest value. Datapoints - // are returned for start times up to two weeks in the past. Specified start - // times that are more than two weeks in the past will not return datapoints - // for metrics that are older than two weeks. + // * Start time between 15 and 63 days ago - Round down to the nearest 5-minute + // clock interval. For example, 12:32:34 is rounded down to 12:30:00. // - // Data that is timestamped 24 hours or more in the past may take in excess - // of 48 hours to become available from submission time using GetMetricStatistics. + // * Start time greater than 63 days ago - Round down to the nearest 1-hour + // clock interval. For example, 12:32:34 is rounded down to 12:00:00. // // StartTime is a required field StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` - // The metric statistics to return. For information about specific statistics - // returned by GetMetricStatistics, see Statistics (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Statistic) - // in the Amazon CloudWatch Developer Guide. - // - // Statistics is a required field - Statistics []*string `min:"1" type:"list" required:"true"` + // The metric statistics, other than percentile. For percentile statistics, + // use ExtendedStatistic. + Statistics []*string `min:"1" type:"list"` - // The specific unit for a given metric. Metrics may be reported in multiple - // units. Not supplying a unit results in all units being returned. If the metric - // only ever reports one unit, specifying a unit will have no effect. + // The unit for a given metric. Metrics may be reported in multiple units. Not + // supplying a unit results in all units being returned. If the metric only + // ever reports one unit, specifying a unit has no effect. Unit *string `type:"string" enum:"StandardUnit"` } @@ -1563,6 +1867,9 @@ func (s *GetMetricStatisticsInput) Validate() error { if s.EndTime == nil { invalidParams.Add(request.NewErrParamRequired("EndTime")) } + if s.ExtendedStatistics != nil && len(s.ExtendedStatistics) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ExtendedStatistics", 1)) + } if s.MetricName == nil { invalidParams.Add(request.NewErrParamRequired("MetricName")) } @@ -1584,9 +1891,6 @@ func (s *GetMetricStatisticsInput) Validate() error { if s.StartTime == nil { invalidParams.Add(request.NewErrParamRequired("StartTime")) } - if s.Statistics == nil { - invalidParams.Add(request.NewErrParamRequired("Statistics")) - } if s.Statistics != nil && len(s.Statistics) < 1 { invalidParams.Add(request.NewErrParamMinLen("Statistics", 1)) } @@ -1607,14 +1911,68 @@ func (s *GetMetricStatisticsInput) Validate() error { return nil } -// The output for GetMetricStatistics. +// SetDimensions sets the Dimensions field's value. +func (s *GetMetricStatisticsInput) SetDimensions(v []*Dimension) *GetMetricStatisticsInput { + s.Dimensions = v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *GetMetricStatisticsInput) SetEndTime(v time.Time) *GetMetricStatisticsInput { + s.EndTime = &v + return s +} + +// SetExtendedStatistics sets the ExtendedStatistics field's value. +func (s *GetMetricStatisticsInput) SetExtendedStatistics(v []*string) *GetMetricStatisticsInput { + s.ExtendedStatistics = v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *GetMetricStatisticsInput) SetMetricName(v string) *GetMetricStatisticsInput { + s.MetricName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *GetMetricStatisticsInput) SetNamespace(v string) *GetMetricStatisticsInput { + s.Namespace = &v + return s +} + +// SetPeriod sets the Period field's value. +func (s *GetMetricStatisticsInput) SetPeriod(v int64) *GetMetricStatisticsInput { + s.Period = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *GetMetricStatisticsInput) SetStartTime(v time.Time) *GetMetricStatisticsInput { + s.StartTime = &v + return s +} + +// SetStatistics sets the Statistics field's value. +func (s *GetMetricStatisticsInput) SetStatistics(v []*string) *GetMetricStatisticsInput { + s.Statistics = v + return s +} + +// SetUnit sets the Unit field's value. +func (s *GetMetricStatisticsInput) SetUnit(v string) *GetMetricStatisticsInput { + s.Unit = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStatisticsOutput type GetMetricStatisticsOutput struct { _ struct{} `type:"structure"` - // The datapoints for the specified metric. + // The data points for the specified metric. Datapoints []*Datapoint `type:"list"` - // A label describing the specified metric. + // A label for the specified metric. Label *string `type:"string"` } @@ -1628,11 +1986,23 @@ func (s GetMetricStatisticsOutput) GoString() string { return s.String() } -// Describes the inputs for ListMetrics. +// SetDatapoints sets the Datapoints field's value. +func (s *GetMetricStatisticsOutput) SetDatapoints(v []*Datapoint) *GetMetricStatisticsOutput { + s.Datapoints = v + return s +} + +// SetLabel sets the Label field's value. +func (s *GetMetricStatisticsOutput) SetLabel(v string) *GetMetricStatisticsOutput { + s.Label = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricsInput type ListMetricsInput struct { _ struct{} `type:"structure"` - // A list of dimensions to filter against. + // The dimensions to filter against. Dimensions []*DimensionFilter `type:"list"` // The name of the metric to filter against. @@ -1682,14 +2052,38 @@ func (s *ListMetricsInput) Validate() error { return nil } -// The output for ListMetrics. +// SetDimensions sets the Dimensions field's value. +func (s *ListMetricsInput) SetDimensions(v []*DimensionFilter) *ListMetricsInput { + s.Dimensions = v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *ListMetricsInput) SetMetricName(v string) *ListMetricsInput { + s.MetricName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *ListMetricsInput) SetNamespace(v string) *ListMetricsInput { + s.Namespace = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListMetricsInput) SetNextToken(v string) *ListMetricsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricsOutput type ListMetricsOutput struct { _ struct{} `type:"structure"` - // A list of metrics used to generate statistics for an AWS account. + // The metrics. Metrics []*Metric `type:"list"` - // A string that marks the start of the next batch of returned results. + // The token that marks the start of the next batch of returned results. NextToken *string `type:"string"` } @@ -1703,17 +2097,24 @@ func (s ListMetricsOutput) GoString() string { return s.String() } -// The Metric data type contains information about a specific metric. If you -// call ListMetrics, Amazon CloudWatch returns information contained by this -// data type. -// -// The example in the Examples section publishes two metrics named buffers -// and latency. Both metrics are in the examples namespace. Both metrics have -// two dimensions, InstanceID and InstanceType. +// SetMetrics sets the Metrics field's value. +func (s *ListMetricsOutput) SetMetrics(v []*Metric) *ListMetricsOutput { + s.Metrics = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListMetricsOutput) SetNextToken(v string) *ListMetricsOutput { + s.NextToken = &v + return s +} + +// Represents a specific metric. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/Metric type Metric struct { _ struct{} `type:"structure"` - // A list of dimensions associated with the metric. + // The dimensions for the metric. Dimensions []*Dimension `type:"list"` // The name of the metric. @@ -1733,18 +2134,35 @@ func (s Metric) GoString() string { return s.String() } -// The MetricAlarm data type represents an alarm. You can use PutMetricAlarm -// to create or update an alarm. +// SetDimensions sets the Dimensions field's value. +func (s *Metric) SetDimensions(v []*Dimension) *Metric { + s.Dimensions = v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *Metric) SetMetricName(v string) *Metric { + s.MetricName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *Metric) SetNamespace(v string) *Metric { + s.Namespace = &v + return s +} + +// Represents an alarm. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/MetricAlarm type MetricAlarm struct { _ struct{} `type:"structure"` - // Indicates whether actions should be executed during any changes to the alarm's + // Indicates whether actions should be executed during any changes to the alarm // state. ActionsEnabled *bool `type:"boolean"` - // The list of actions to execute when this alarm transitions into an ALARM - // state from any other state. Each action is specified as an Amazon Resource - // Name (ARN). + // The actions to execute when this alarm transitions to the ALARM state from + // any other state. Each action is specified as an Amazon Resource Name (ARN). AlarmActions []*string `type:"list"` // The Amazon Resource Name (ARN) of the alarm. @@ -1753,62 +2171,64 @@ type MetricAlarm struct { // The time stamp of the last update to the alarm configuration. AlarmConfigurationUpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // The description for the alarm. + // The description of the alarm. AlarmDescription *string `type:"string"` // The name of the alarm. AlarmName *string `min:"1" type:"string"` - // The arithmetic operation to use when comparing the specified Statistic and - // Threshold. The specified Statistic value is used as the first operand. + // The arithmetic operation to use when comparing the specified statistic and + // threshold. The specified statistic value is used as the first operand. ComparisonOperator *string `type:"string" enum:"ComparisonOperator"` - // The list of dimensions associated with the alarm's associated metric. + // The dimensions for the metric associated with the alarm. Dimensions []*Dimension `type:"list"` // The number of periods over which data is compared to the specified threshold. EvaluationPeriods *int64 `min:"1" type:"integer"` - // The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA + // The percentile statistic for the metric associated with the alarm. Specify + // a value between p0.0 and p100. + ExtendedStatistic *string `type:"string"` + + // The actions to execute when this alarm transitions to the INSUFFICIENT_DATA // state from any other state. Each action is specified as an Amazon Resource // Name (ARN). - // - // The current WSDL lists this attribute as UnknownActions. InsufficientDataActions []*string `type:"list"` - // The name of the alarm's metric. + // The name of the metric associated with the alarm. MetricName *string `min:"1" type:"string"` - // The namespace of alarm's associated metric. + // The namespace of the metric associated with the alarm. Namespace *string `min:"1" type:"string"` - // The list of actions to execute when this alarm transitions into an OK state - // from any other state. Each action is specified as an Amazon Resource Name - // (ARN). + // The actions to execute when this alarm transitions to the OK state from any + // other state. Each action is specified as an Amazon Resource Name (ARN). OKActions []*string `type:"list"` - // The period in seconds over which the statistic is applied. + // The period, in seconds, over which the statistic is applied. Period *int64 `min:"60" type:"integer"` - // A human-readable explanation for the alarm's state. + // An explanation for the alarm state, in text format. StateReason *string `type:"string"` - // An explanation for the alarm's state in machine-readable JSON format + // An explanation for the alarm state, in JSON format. StateReasonData *string `type:"string"` - // The time stamp of the last update to the alarm's state. + // The time stamp of the last update to the alarm state. StateUpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The state value for the alarm. StateValue *string `type:"string" enum:"StateValue"` - // The statistic to apply to the alarm's associated metric. + // The statistic for the metric associated with the alarm, other than percentile. + // For percentile statistics, use ExtendedStatistic. Statistic *string `type:"string" enum:"Statistic"` - // The value against which the specified statistic is compared. + // The value to compare with the specified statistic. Threshold *float64 `type:"double"` - // The unit of the alarm's associated metric. + // The unit of the metric associated with the alarm. Unit *string `type:"string" enum:"StandardUnit"` } @@ -1822,14 +2242,145 @@ func (s MetricAlarm) GoString() string { return s.String() } -// The MetricDatum data type encapsulates the information sent with PutMetricData -// to either create a new metric or add new values to be aggregated into an -// existing metric. +// SetActionsEnabled sets the ActionsEnabled field's value. +func (s *MetricAlarm) SetActionsEnabled(v bool) *MetricAlarm { + s.ActionsEnabled = &v + return s +} + +// SetAlarmActions sets the AlarmActions field's value. +func (s *MetricAlarm) SetAlarmActions(v []*string) *MetricAlarm { + s.AlarmActions = v + return s +} + +// SetAlarmArn sets the AlarmArn field's value. +func (s *MetricAlarm) SetAlarmArn(v string) *MetricAlarm { + s.AlarmArn = &v + return s +} + +// SetAlarmConfigurationUpdatedTimestamp sets the AlarmConfigurationUpdatedTimestamp field's value. +func (s *MetricAlarm) SetAlarmConfigurationUpdatedTimestamp(v time.Time) *MetricAlarm { + s.AlarmConfigurationUpdatedTimestamp = &v + return s +} + +// SetAlarmDescription sets the AlarmDescription field's value. +func (s *MetricAlarm) SetAlarmDescription(v string) *MetricAlarm { + s.AlarmDescription = &v + return s +} + +// SetAlarmName sets the AlarmName field's value. +func (s *MetricAlarm) SetAlarmName(v string) *MetricAlarm { + s.AlarmName = &v + return s +} + +// SetComparisonOperator sets the ComparisonOperator field's value. +func (s *MetricAlarm) SetComparisonOperator(v string) *MetricAlarm { + s.ComparisonOperator = &v + return s +} + +// SetDimensions sets the Dimensions field's value. +func (s *MetricAlarm) SetDimensions(v []*Dimension) *MetricAlarm { + s.Dimensions = v + return s +} + +// SetEvaluationPeriods sets the EvaluationPeriods field's value. +func (s *MetricAlarm) SetEvaluationPeriods(v int64) *MetricAlarm { + s.EvaluationPeriods = &v + return s +} + +// SetExtendedStatistic sets the ExtendedStatistic field's value. +func (s *MetricAlarm) SetExtendedStatistic(v string) *MetricAlarm { + s.ExtendedStatistic = &v + return s +} + +// SetInsufficientDataActions sets the InsufficientDataActions field's value. +func (s *MetricAlarm) SetInsufficientDataActions(v []*string) *MetricAlarm { + s.InsufficientDataActions = v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *MetricAlarm) SetMetricName(v string) *MetricAlarm { + s.MetricName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *MetricAlarm) SetNamespace(v string) *MetricAlarm { + s.Namespace = &v + return s +} + +// SetOKActions sets the OKActions field's value. +func (s *MetricAlarm) SetOKActions(v []*string) *MetricAlarm { + s.OKActions = v + return s +} + +// SetPeriod sets the Period field's value. +func (s *MetricAlarm) SetPeriod(v int64) *MetricAlarm { + s.Period = &v + return s +} + +// SetStateReason sets the StateReason field's value. +func (s *MetricAlarm) SetStateReason(v string) *MetricAlarm { + s.StateReason = &v + return s +} + +// SetStateReasonData sets the StateReasonData field's value. +func (s *MetricAlarm) SetStateReasonData(v string) *MetricAlarm { + s.StateReasonData = &v + return s +} + +// SetStateUpdatedTimestamp sets the StateUpdatedTimestamp field's value. +func (s *MetricAlarm) SetStateUpdatedTimestamp(v time.Time) *MetricAlarm { + s.StateUpdatedTimestamp = &v + return s +} + +// SetStateValue sets the StateValue field's value. +func (s *MetricAlarm) SetStateValue(v string) *MetricAlarm { + s.StateValue = &v + return s +} + +// SetStatistic sets the Statistic field's value. +func (s *MetricAlarm) SetStatistic(v string) *MetricAlarm { + s.Statistic = &v + return s +} + +// SetThreshold sets the Threshold field's value. +func (s *MetricAlarm) SetThreshold(v float64) *MetricAlarm { + s.Threshold = &v + return s +} + +// SetUnit sets the Unit field's value. +func (s *MetricAlarm) SetUnit(v string) *MetricAlarm { + s.Unit = &v + return s +} + +// Encapsulates the information sent to either create a metric or add new values +// to be aggregated into an existing metric. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/MetricDatum type MetricDatum struct { _ struct{} `type:"structure"` - // A list of dimensions associated with the metric. Note, when using the Dimensions - // value in a query, you need to append .member.N to it (e.g., Dimensions.member.N). + // The dimensions associated with the metric. Dimensions []*Dimension `type:"list"` // The name of the metric. @@ -1837,12 +2388,11 @@ type MetricDatum struct { // MetricName is a required field MetricName *string `min:"1" type:"string" required:"true"` - // A set of statistical values describing the metric. + // The statistical values for the metric. StatisticValues *StatisticSet `type:"structure"` - // The time stamp used for the metric in ISO 8601 Universal Coordinated Time - // (UTC) format. If not specified, the default value is set to the time the - // metric data was received. + // The time the metric data was received, expressed as the number of milliseconds + // since Jan 1, 1970 00:00:00 UTC. Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The unit of the metric. @@ -1850,11 +2400,11 @@ type MetricDatum struct { // The value for the metric. // - // Although the Value parameter accepts numbers of type Double, Amazon CloudWatch + // Although the parameter accepts numbers of type Double, Amazon CloudWatch // rejects values that are either too small or too large. Values must be in // the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 - // (Base 2). In addition, special values (e.g., NaN, +Infinity, -Infinity) are - // not supported. + // (Base 2). In addition, special values (for example, NaN, +Infinity, -Infinity) + // are not supported. Value *float64 `type:"double"` } @@ -1899,47 +2449,76 @@ func (s *MetricDatum) Validate() error { return nil } -// Describes the inputs for PutMetricAlarm. +// SetDimensions sets the Dimensions field's value. +func (s *MetricDatum) SetDimensions(v []*Dimension) *MetricDatum { + s.Dimensions = v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *MetricDatum) SetMetricName(v string) *MetricDatum { + s.MetricName = &v + return s +} + +// SetStatisticValues sets the StatisticValues field's value. +func (s *MetricDatum) SetStatisticValues(v *StatisticSet) *MetricDatum { + s.StatisticValues = v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *MetricDatum) SetTimestamp(v time.Time) *MetricDatum { + s.Timestamp = &v + return s +} + +// SetUnit sets the Unit field's value. +func (s *MetricDatum) SetUnit(v string) *MetricDatum { + s.Unit = &v + return s +} + +// SetValue sets the Value field's value. +func (s *MetricDatum) SetValue(v float64) *MetricDatum { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricAlarmInput type PutMetricAlarmInput struct { _ struct{} `type:"structure"` - // Indicates whether or not actions should be executed during any changes to - // the alarm's state. + // Indicates whether actions should be executed during any changes to the alarm + // state. ActionsEnabled *bool `type:"boolean"` - // The list of actions to execute when this alarm transitions into an ALARM - // state from any other state. Each action is specified as an Amazon Resource - // Name (ARN). + // The actions to execute when this alarm transitions to the ALARM state from + // any other state. Each action is specified as an Amazon Resource Name (ARN). // - // Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region - // (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover + // Valid Values: arn:aws:automate:region:ec2:stop | arn:aws:automate:region:ec2:terminate + // | arn:aws:automate:region:ec2:recover // // Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 // | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 // | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0 - // - // Note: You must create at least one stop, terminate, or reboot alarm using - // the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role - // for the first time. After this IAM role is created, you can create stop, - // terminate, or reboot alarms using the CLI. AlarmActions []*string `type:"list"` // The description for the alarm. AlarmDescription *string `type:"string"` - // The descriptive name for the alarm. This name must be unique within the user's - // AWS account + // The name for the alarm. This name must be unique within the AWS account. // // AlarmName is a required field AlarmName *string `min:"1" type:"string" required:"true"` - // The arithmetic operation to use when comparing the specified Statistic and - // Threshold. The specified Statistic value is used as the first operand. + // The arithmetic operation to use when comparing the specified statistic and + // threshold. The specified statistic value is used as the first operand. // // ComparisonOperator is a required field ComparisonOperator *string `type:"string" required:"true" enum:"ComparisonOperator"` - // The dimensions for the alarm's associated metric. + // The dimensions for the metric associated with the alarm. Dimensions []*Dimension `type:"list"` // The number of periods over which data is compared to the specified threshold. @@ -1947,75 +2526,67 @@ type PutMetricAlarmInput struct { // EvaluationPeriods is a required field EvaluationPeriods *int64 `min:"1" type:"integer" required:"true"` - // The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA + // The percentile statistic for the metric associated with the alarm. Specify + // a value between p0.0 and p100. + ExtendedStatistic *string `type:"string"` + + // The actions to execute when this alarm transitions to the INSUFFICIENT_DATA // state from any other state. Each action is specified as an Amazon Resource // Name (ARN). // - // Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region - // (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover + // Valid Values: arn:aws:automate:region:ec2:stop | arn:aws:automate:region:ec2:terminate + // | arn:aws:automate:region:ec2:recover // // Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 // | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 // | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0 - // - // Note: You must create at least one stop, terminate, or reboot alarm using - // the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role - // for the first time. After this IAM role is created, you can create stop, - // terminate, or reboot alarms using the CLI. InsufficientDataActions []*string `type:"list"` - // The name for the alarm's associated metric. + // The name for the metric associated with the alarm. // // MetricName is a required field MetricName *string `min:"1" type:"string" required:"true"` - // The namespace for the alarm's associated metric. + // The namespace for the metric associated with the alarm. // // Namespace is a required field Namespace *string `min:"1" type:"string" required:"true"` - // The list of actions to execute when this alarm transitions into an OK state - // from any other state. Each action is specified as an Amazon Resource Name - // (ARN). + // The actions to execute when this alarm transitions to an OK state from any + // other state. Each action is specified as an Amazon Resource Name (ARN). // - // Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region - // (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover + // Valid Values: arn:aws:automate:region:ec2:stop | arn:aws:automate:region:ec2:terminate + // | arn:aws:automate:region:ec2:recover // // Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 // | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 // | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0 - // - // Note: You must create at least one stop, terminate, or reboot alarm using - // the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role - // for the first time. After this IAM role is created, you can create stop, - // terminate, or reboot alarms using the CLI. OKActions []*string `type:"list"` - // The period in seconds over which the specified statistic is applied. + // The period, in seconds, over which the specified statistic is applied. // // Period is a required field Period *int64 `min:"60" type:"integer" required:"true"` - // The statistic to apply to the alarm's associated metric. - // - // Statistic is a required field - Statistic *string `type:"string" required:"true" enum:"Statistic"` + // The statistic for the metric associated with the alarm, other than percentile. + // For percentile statistics, use ExtendedStatistic. + Statistic *string `type:"string" enum:"Statistic"` // The value against which the specified statistic is compared. // // Threshold is a required field Threshold *float64 `type:"double" required:"true"` - // The statistic's unit of measure. For example, the units for the Amazon EC2 - // NetworkIn metric are Bytes because NetworkIn tracks the number of bytes that - // an instance receives on all network interfaces. You can also specify a unit - // when you create a custom metric. Units help provide conceptual meaning to - // your data. Metric data points that specify a unit of measure, such as Percent, - // are aggregated separately. + // The unit of measure for the statistic. For example, the units for the Amazon + // EC2 NetworkIn metric are Bytes because NetworkIn tracks the number of bytes + // that an instance receives on all network interfaces. You can also specify + // a unit when you create a custom metric. Units help provide conceptual meaning + // to your data. Metric data points that specify a unit of measure, such as + // Percent, are aggregated separately. // - // Note: If you specify a unit, you must use a unit that is appropriate for - // the metric. Otherwise, this can cause an Amazon CloudWatch alarm to get stuck - // in the INSUFFICIENT DATA state. + // If you specify a unit, you must use a unit that is appropriate for the metric. + // Otherwise, the Amazon CloudWatch alarm can get stuck in the INSUFFICIENT + // DATA state. Unit *string `type:"string" enum:"StandardUnit"` } @@ -2065,9 +2636,6 @@ func (s *PutMetricAlarmInput) Validate() error { if s.Period != nil && *s.Period < 60 { invalidParams.Add(request.NewErrParamMinValue("Period", 60)) } - if s.Statistic == nil { - invalidParams.Add(request.NewErrParamRequired("Statistic")) - } if s.Threshold == nil { invalidParams.Add(request.NewErrParamRequired("Threshold")) } @@ -2088,6 +2656,103 @@ func (s *PutMetricAlarmInput) Validate() error { return nil } +// SetActionsEnabled sets the ActionsEnabled field's value. +func (s *PutMetricAlarmInput) SetActionsEnabled(v bool) *PutMetricAlarmInput { + s.ActionsEnabled = &v + return s +} + +// SetAlarmActions sets the AlarmActions field's value. +func (s *PutMetricAlarmInput) SetAlarmActions(v []*string) *PutMetricAlarmInput { + s.AlarmActions = v + return s +} + +// SetAlarmDescription sets the AlarmDescription field's value. +func (s *PutMetricAlarmInput) SetAlarmDescription(v string) *PutMetricAlarmInput { + s.AlarmDescription = &v + return s +} + +// SetAlarmName sets the AlarmName field's value. +func (s *PutMetricAlarmInput) SetAlarmName(v string) *PutMetricAlarmInput { + s.AlarmName = &v + return s +} + +// SetComparisonOperator sets the ComparisonOperator field's value. +func (s *PutMetricAlarmInput) SetComparisonOperator(v string) *PutMetricAlarmInput { + s.ComparisonOperator = &v + return s +} + +// SetDimensions sets the Dimensions field's value. +func (s *PutMetricAlarmInput) SetDimensions(v []*Dimension) *PutMetricAlarmInput { + s.Dimensions = v + return s +} + +// SetEvaluationPeriods sets the EvaluationPeriods field's value. +func (s *PutMetricAlarmInput) SetEvaluationPeriods(v int64) *PutMetricAlarmInput { + s.EvaluationPeriods = &v + return s +} + +// SetExtendedStatistic sets the ExtendedStatistic field's value. +func (s *PutMetricAlarmInput) SetExtendedStatistic(v string) *PutMetricAlarmInput { + s.ExtendedStatistic = &v + return s +} + +// SetInsufficientDataActions sets the InsufficientDataActions field's value. +func (s *PutMetricAlarmInput) SetInsufficientDataActions(v []*string) *PutMetricAlarmInput { + s.InsufficientDataActions = v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *PutMetricAlarmInput) SetMetricName(v string) *PutMetricAlarmInput { + s.MetricName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *PutMetricAlarmInput) SetNamespace(v string) *PutMetricAlarmInput { + s.Namespace = &v + return s +} + +// SetOKActions sets the OKActions field's value. +func (s *PutMetricAlarmInput) SetOKActions(v []*string) *PutMetricAlarmInput { + s.OKActions = v + return s +} + +// SetPeriod sets the Period field's value. +func (s *PutMetricAlarmInput) SetPeriod(v int64) *PutMetricAlarmInput { + s.Period = &v + return s +} + +// SetStatistic sets the Statistic field's value. +func (s *PutMetricAlarmInput) SetStatistic(v string) *PutMetricAlarmInput { + s.Statistic = &v + return s +} + +// SetThreshold sets the Threshold field's value. +func (s *PutMetricAlarmInput) SetThreshold(v float64) *PutMetricAlarmInput { + s.Threshold = &v + return s +} + +// SetUnit sets the Unit field's value. +func (s *PutMetricAlarmInput) SetUnit(v string) *PutMetricAlarmInput { + s.Unit = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricAlarmOutput type PutMetricAlarmOutput struct { _ struct{} `type:"structure"` } @@ -2102,20 +2767,19 @@ func (s PutMetricAlarmOutput) GoString() string { return s.String() } -// Describes the inputs for PutMetricData. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricDataInput type PutMetricDataInput struct { _ struct{} `type:"structure"` - // A list of data describing the metric. + // The data for the metric. // // MetricData is a required field MetricData []*MetricDatum `type:"list" required:"true"` // The namespace for the metric data. // - // You cannot specify a namespace that begins with "AWS/". Namespaces that - // begin with "AWS/" are reserved for other Amazon Web Services products that - // send metrics to Amazon CloudWatch. + // You cannot specify a namespace that begins with "AWS/". Namespaces that begin + // with "AWS/" are reserved for use by Amazon Web Services products. // // Namespace is a required field Namespace *string `min:"1" type:"string" required:"true"` @@ -2160,6 +2824,19 @@ func (s *PutMetricDataInput) Validate() error { return nil } +// SetMetricData sets the MetricData field's value. +func (s *PutMetricDataInput) SetMetricData(v []*MetricDatum) *PutMetricDataInput { + s.MetricData = v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *PutMetricDataInput) SetNamespace(v string) *PutMetricDataInput { + s.Namespace = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricDataOutput type PutMetricDataOutput struct { _ struct{} `type:"structure"` } @@ -2174,24 +2851,22 @@ func (s PutMetricDataOutput) GoString() string { return s.String() } -// Describes the inputs for SetAlarmState. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SetAlarmStateInput type SetAlarmStateInput struct { _ struct{} `type:"structure"` - // The descriptive name for the alarm. This name must be unique within the user's - // AWS account. The maximum length is 255 characters. + // The name for the alarm. This name must be unique within the AWS account. + // The maximum length is 255 characters. // // AlarmName is a required field AlarmName *string `min:"1" type:"string" required:"true"` - // The reason that this alarm is set to this specific state (in human-readable - // text format) + // The reason that this alarm is set to this specific state, in text format. // // StateReason is a required field StateReason *string `type:"string" required:"true"` - // The reason that this alarm is set to this specific state (in machine-readable - // JSON format) + // The reason that this alarm is set to this specific state, in JSON format. StateReasonData *string `type:"string"` // The value of the state. @@ -2232,6 +2907,31 @@ func (s *SetAlarmStateInput) Validate() error { return nil } +// SetAlarmName sets the AlarmName field's value. +func (s *SetAlarmStateInput) SetAlarmName(v string) *SetAlarmStateInput { + s.AlarmName = &v + return s +} + +// SetStateReason sets the StateReason field's value. +func (s *SetAlarmStateInput) SetStateReason(v string) *SetAlarmStateInput { + s.StateReason = &v + return s +} + +// SetStateReasonData sets the StateReasonData field's value. +func (s *SetAlarmStateInput) SetStateReasonData(v string) *SetAlarmStateInput { + s.StateReasonData = &v + return s +} + +// SetStateValue sets the StateValue field's value. +func (s *SetAlarmStateInput) SetStateValue(v string) *SetAlarmStateInput { + s.StateValue = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SetAlarmStateOutput type SetAlarmStateOutput struct { _ struct{} `type:"structure"` } @@ -2246,8 +2946,8 @@ func (s SetAlarmStateOutput) GoString() string { return s.String() } -// The StatisticSet data type describes the StatisticValues component of MetricDatum, -// and represents a set of statistics that describes a specific metric. +// Represents a set of statistics that describes a specific metric. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StatisticSet type StatisticSet struct { _ struct{} `type:"structure"` @@ -2304,6 +3004,30 @@ func (s *StatisticSet) Validate() error { return nil } +// SetMaximum sets the Maximum field's value. +func (s *StatisticSet) SetMaximum(v float64) *StatisticSet { + s.Maximum = &v + return s +} + +// SetMinimum sets the Minimum field's value. +func (s *StatisticSet) SetMinimum(v float64) *StatisticSet { + s.Minimum = &v + return s +} + +// SetSampleCount sets the SampleCount field's value. +func (s *StatisticSet) SetSampleCount(v float64) *StatisticSet { + s.SampleCount = &v + return s +} + +// SetSum sets the Sum field's value. +func (s *StatisticSet) SetSum(v float64) *StatisticSet { + s.Sum = &v + return s +} + const ( // ComparisonOperatorGreaterThanOrEqualToThreshold is a ComparisonOperator enum value ComparisonOperatorGreaterThanOrEqualToThreshold = "GreaterThanOrEqualToThreshold" diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface/interface.go index 74f084dfc..04f1e7aa5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCloudWatchClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/errors.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/errors.go new file mode 100644 index 000000000..60bced5f1 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/errors.go @@ -0,0 +1,54 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cloudwatch + +const ( + + // ErrCodeInternalServiceFault for service response error code + // "InternalServiceError". + // + // Request processing has failed due to some unknown error, exception, or failure. + ErrCodeInternalServiceFault = "InternalServiceError" + + // ErrCodeInvalidFormatFault for service response error code + // "InvalidFormat". + // + // Data was not syntactically valid JSON. + ErrCodeInvalidFormatFault = "InvalidFormat" + + // ErrCodeInvalidNextToken for service response error code + // "InvalidNextToken". + // + // The next token specified is invalid. + ErrCodeInvalidNextToken = "InvalidNextToken" + + // ErrCodeInvalidParameterCombinationException for service response error code + // "InvalidParameterCombination". + // + // Parameters that cannot be used together were used together. + ErrCodeInvalidParameterCombinationException = "InvalidParameterCombination" + + // ErrCodeInvalidParameterValueException for service response error code + // "InvalidParameterValue". + // + // The value of an input parameter is bad or out-of-range. + ErrCodeInvalidParameterValueException = "InvalidParameterValue" + + // ErrCodeLimitExceededFault for service response error code + // "LimitExceeded". + // + // The quota for alarms for this customer has already been reached. + ErrCodeLimitExceededFault = "LimitExceeded" + + // ErrCodeMissingRequiredParameterException for service response error code + // "MissingParameter". + // + // An input parameter that is required is missing. + ErrCodeMissingRequiredParameterException = "MissingParameter" + + // ErrCodeResourceNotFound for service response error code + // "ResourceNotFound". + // + // The named resource does not exist. + ErrCodeResourceNotFound = "ResourceNotFound" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/examples_test.go index 1074b363c..2d139a698 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudWatch_DeleteAlarms() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) @@ -44,11 +40,7 @@ func ExampleCloudWatch_DeleteAlarms() { } func ExampleCloudWatch_DescribeAlarmHistory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) @@ -74,11 +66,7 @@ func ExampleCloudWatch_DescribeAlarmHistory() { } func ExampleCloudWatch_DescribeAlarms() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) @@ -107,11 +95,7 @@ func ExampleCloudWatch_DescribeAlarms() { } func ExampleCloudWatch_DescribeAlarmsForMetric() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) @@ -125,9 +109,10 @@ func ExampleCloudWatch_DescribeAlarmsForMetric() { }, // More values... }, - Period: aws.Int64(1), - Statistic: aws.String("Statistic"), - Unit: aws.String("StandardUnit"), + ExtendedStatistic: aws.String("ExtendedStatistic"), + Period: aws.Int64(1), + Statistic: aws.String("Statistic"), + Unit: aws.String("StandardUnit"), } resp, err := svc.DescribeAlarmsForMetric(params) @@ -143,11 +128,7 @@ func ExampleCloudWatch_DescribeAlarmsForMetric() { } func ExampleCloudWatch_DisableAlarmActions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) @@ -171,11 +152,7 @@ func ExampleCloudWatch_DisableAlarmActions() { } func ExampleCloudWatch_EnableAlarmActions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) @@ -199,11 +176,7 @@ func ExampleCloudWatch_EnableAlarmActions() { } func ExampleCloudWatch_GetMetricStatistics() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) @@ -213,10 +186,6 @@ func ExampleCloudWatch_GetMetricStatistics() { Namespace: aws.String("Namespace"), // Required Period: aws.Int64(1), // Required StartTime: aws.Time(time.Now()), // Required - Statistics: []*string{ // Required - aws.String("Statistic"), // Required - // More values... - }, Dimensions: []*cloudwatch.Dimension{ { // Required Name: aws.String("DimensionName"), // Required @@ -224,6 +193,14 @@ func ExampleCloudWatch_GetMetricStatistics() { }, // More values... }, + ExtendedStatistics: []*string{ + aws.String("ExtendedStatistic"), // Required + // More values... + }, + Statistics: []*string{ + aws.String("Statistic"), // Required + // More values... + }, Unit: aws.String("StandardUnit"), } resp, err := svc.GetMetricStatistics(params) @@ -240,11 +217,7 @@ func ExampleCloudWatch_GetMetricStatistics() { } func ExampleCloudWatch_ListMetrics() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) @@ -274,11 +247,7 @@ func ExampleCloudWatch_ListMetrics() { } func ExampleCloudWatch_PutMetricAlarm() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) @@ -289,7 +258,6 @@ func ExampleCloudWatch_PutMetricAlarm() { MetricName: aws.String("MetricName"), // Required Namespace: aws.String("Namespace"), // Required Period: aws.Int64(1), // Required - Statistic: aws.String("Statistic"), // Required Threshold: aws.Float64(1.0), // Required ActionsEnabled: aws.Bool(true), AlarmActions: []*string{ @@ -304,6 +272,7 @@ func ExampleCloudWatch_PutMetricAlarm() { }, // More values... }, + ExtendedStatistic: aws.String("ExtendedStatistic"), InsufficientDataActions: []*string{ aws.String("ResourceName"), // Required // More values... @@ -312,7 +281,8 @@ func ExampleCloudWatch_PutMetricAlarm() { aws.String("ResourceName"), // Required // More values... }, - Unit: aws.String("StandardUnit"), + Statistic: aws.String("Statistic"), + Unit: aws.String("StandardUnit"), } resp, err := svc.PutMetricAlarm(params) @@ -328,11 +298,7 @@ func ExampleCloudWatch_PutMetricAlarm() { } func ExampleCloudWatch_PutMetricData() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) @@ -375,11 +341,7 @@ func ExampleCloudWatch_PutMetricData() { } func ExampleCloudWatch_SetAlarmState() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatch.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/service.go index 8b707e5f1..4a992be67 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/service.go @@ -26,8 +26,9 @@ import ( // In addition to monitoring the built-in metrics that come with AWS, you can // monitor your own custom metrics. With CloudWatch, you gain system-wide visibility // into resource utilization, application performance, and operational health. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01 type CloudWatch struct { *client.Client } @@ -38,8 +39,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "monitoring" +// Service information constants +const ( + ServiceName = "monitoring" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the CloudWatch client with a session. // If additional configuration is needed for the client instance use the optional @@ -52,17 +56,18 @@ const ServiceName = "monitoring" // // Create a CloudWatch client with additional configuration // svc := cloudwatch.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudWatch { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CloudWatch { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CloudWatch { svc := &CloudWatch{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2010-08-01", diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/api.go index 3ec1c868a..74f38b093 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/api.go @@ -39,6 +39,7 @@ const opDeleteRule = "DeleteRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule func (c *CloudWatchEvents) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, output *DeleteRuleOutput) { op := &request.Operation{ Name: opDeleteRule, @@ -50,11 +51,10 @@ func (c *CloudWatchEvents) DeleteRuleRequest(input *DeleteRuleInput) (req *reque input = &DeleteRuleInput{} } + output = &DeleteRuleOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteRuleOutput{} - req.Data = output return } @@ -63,7 +63,7 @@ func (c *CloudWatchEvents) DeleteRuleRequest(input *DeleteRuleInput) (req *reque // Deletes a rule. You must remove all targets from a rule using RemoveTargets // before you can delete the rule. // -// Note: When you delete a rule, incoming events might still continue to match +// Note: When you delete a rule, incoming events might still continue to match // to the deleted rule. Please allow a short period of time for changes to take // effect. // @@ -75,12 +75,13 @@ func (c *CloudWatchEvents) DeleteRuleRequest(input *DeleteRuleInput) (req *reque // API operation DeleteRule for usage and error information. // // Returned Error Codes: -// * ConcurrentModificationException +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" // This exception occurs if there is concurrent modification on rule or target. // -// * InternalException +// * ErrCodeInternalException "InternalException" // This exception occurs due to unexpected causes. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule func (c *CloudWatchEvents) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error) { req, out := c.DeleteRuleRequest(input) err := req.Send() @@ -113,6 +114,7 @@ const opDescribeRule = "DescribeRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule func (c *CloudWatchEvents) DescribeRuleRequest(input *DescribeRuleInput) (req *request.Request, output *DescribeRuleOutput) { op := &request.Operation{ Name: opDescribeRule, @@ -124,9 +126,8 @@ func (c *CloudWatchEvents) DescribeRuleRequest(input *DescribeRuleInput) (req *r input = &DescribeRuleInput{} } - req = c.newRequest(op, input, output) output = &DescribeRuleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -142,12 +143,13 @@ func (c *CloudWatchEvents) DescribeRuleRequest(input *DescribeRuleInput) (req *r // API operation DescribeRule for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The rule does not exist. // -// * InternalException +// * ErrCodeInternalException "InternalException" // This exception occurs due to unexpected causes. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule func (c *CloudWatchEvents) DescribeRule(input *DescribeRuleInput) (*DescribeRuleOutput, error) { req, out := c.DescribeRuleRequest(input) err := req.Send() @@ -180,6 +182,7 @@ const opDisableRule = "DisableRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule func (c *CloudWatchEvents) DisableRuleRequest(input *DisableRuleInput) (req *request.Request, output *DisableRuleOutput) { op := &request.Operation{ Name: opDisableRule, @@ -191,11 +194,10 @@ func (c *CloudWatchEvents) DisableRuleRequest(input *DisableRuleInput) (req *req input = &DisableRuleInput{} } + output = &DisableRuleOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DisableRuleOutput{} - req.Data = output return } @@ -204,9 +206,9 @@ func (c *CloudWatchEvents) DisableRuleRequest(input *DisableRuleInput) (req *req // Disables a rule. A disabled rule won't match any events, and won't self-trigger // if it has a schedule expression. // -// Note: When you disable a rule, incoming events might still continue to -// match to the disabled rule. Please allow a short period of time for changes -// to take effect. +// Note: When you disable a rule, incoming events might still continue to match +// to the disabled rule. Please allow a short period of time for changes to +// take effect. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -216,15 +218,16 @@ func (c *CloudWatchEvents) DisableRuleRequest(input *DisableRuleInput) (req *req // API operation DisableRule for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The rule does not exist. // -// * ConcurrentModificationException +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" // This exception occurs if there is concurrent modification on rule or target. // -// * InternalException +// * ErrCodeInternalException "InternalException" // This exception occurs due to unexpected causes. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule func (c *CloudWatchEvents) DisableRule(input *DisableRuleInput) (*DisableRuleOutput, error) { req, out := c.DisableRuleRequest(input) err := req.Send() @@ -257,6 +260,7 @@ const opEnableRule = "EnableRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule func (c *CloudWatchEvents) EnableRuleRequest(input *EnableRuleInput) (req *request.Request, output *EnableRuleOutput) { op := &request.Operation{ Name: opEnableRule, @@ -268,11 +272,10 @@ func (c *CloudWatchEvents) EnableRuleRequest(input *EnableRuleInput) (req *reque input = &EnableRuleInput{} } + output = &EnableRuleOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &EnableRuleOutput{} - req.Data = output return } @@ -280,7 +283,7 @@ func (c *CloudWatchEvents) EnableRuleRequest(input *EnableRuleInput) (req *reque // // Enables a rule. If the rule does not exist, the operation fails. // -// Note: When you enable a rule, incoming events might not immediately start +// Note: When you enable a rule, incoming events might not immediately start // matching to a newly enabled rule. Please allow a short period of time for // changes to take effect. // @@ -292,15 +295,16 @@ func (c *CloudWatchEvents) EnableRuleRequest(input *EnableRuleInput) (req *reque // API operation EnableRule for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The rule does not exist. // -// * ConcurrentModificationException +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" // This exception occurs if there is concurrent modification on rule or target. // -// * InternalException +// * ErrCodeInternalException "InternalException" // This exception occurs due to unexpected causes. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule func (c *CloudWatchEvents) EnableRule(input *EnableRuleInput) (*EnableRuleOutput, error) { req, out := c.EnableRuleRequest(input) err := req.Send() @@ -333,6 +337,7 @@ const opListRuleNamesByTarget = "ListRuleNamesByTarget" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget func (c *CloudWatchEvents) ListRuleNamesByTargetRequest(input *ListRuleNamesByTargetInput) (req *request.Request, output *ListRuleNamesByTargetOutput) { op := &request.Operation{ Name: opListRuleNamesByTarget, @@ -344,9 +349,8 @@ func (c *CloudWatchEvents) ListRuleNamesByTargetRequest(input *ListRuleNamesByTa input = &ListRuleNamesByTargetInput{} } - req = c.newRequest(op, input, output) output = &ListRuleNamesByTargetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -367,9 +371,10 @@ func (c *CloudWatchEvents) ListRuleNamesByTargetRequest(input *ListRuleNamesByTa // API operation ListRuleNamesByTarget for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // This exception occurs due to unexpected causes. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget func (c *CloudWatchEvents) ListRuleNamesByTarget(input *ListRuleNamesByTargetInput) (*ListRuleNamesByTargetOutput, error) { req, out := c.ListRuleNamesByTargetRequest(input) err := req.Send() @@ -402,6 +407,7 @@ const opListRules = "ListRules" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules func (c *CloudWatchEvents) ListRulesRequest(input *ListRulesInput) (req *request.Request, output *ListRulesOutput) { op := &request.Operation{ Name: opListRules, @@ -413,9 +419,8 @@ func (c *CloudWatchEvents) ListRulesRequest(input *ListRulesInput) (req *request input = &ListRulesInput{} } - req = c.newRequest(op, input, output) output = &ListRulesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -435,9 +440,10 @@ func (c *CloudWatchEvents) ListRulesRequest(input *ListRulesInput) (req *request // API operation ListRules for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // This exception occurs due to unexpected causes. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules func (c *CloudWatchEvents) ListRules(input *ListRulesInput) (*ListRulesOutput, error) { req, out := c.ListRulesRequest(input) err := req.Send() @@ -470,6 +476,7 @@ const opListTargetsByRule = "ListTargetsByRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule func (c *CloudWatchEvents) ListTargetsByRuleRequest(input *ListTargetsByRuleInput) (req *request.Request, output *ListTargetsByRuleOutput) { op := &request.Operation{ Name: opListTargetsByRule, @@ -481,9 +488,8 @@ func (c *CloudWatchEvents) ListTargetsByRuleRequest(input *ListTargetsByRuleInpu input = &ListTargetsByRuleInput{} } - req = c.newRequest(op, input, output) output = &ListTargetsByRuleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -499,12 +505,13 @@ func (c *CloudWatchEvents) ListTargetsByRuleRequest(input *ListTargetsByRuleInpu // API operation ListTargetsByRule for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The rule does not exist. // -// * InternalException +// * ErrCodeInternalException "InternalException" // This exception occurs due to unexpected causes. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule func (c *CloudWatchEvents) ListTargetsByRule(input *ListTargetsByRuleInput) (*ListTargetsByRuleOutput, error) { req, out := c.ListTargetsByRuleRequest(input) err := req.Send() @@ -537,6 +544,7 @@ const opPutEvents = "PutEvents" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents func (c *CloudWatchEvents) PutEventsRequest(input *PutEventsInput) (req *request.Request, output *PutEventsOutput) { op := &request.Operation{ Name: opPutEvents, @@ -548,9 +556,8 @@ func (c *CloudWatchEvents) PutEventsRequest(input *PutEventsInput) (req *request input = &PutEventsInput{} } - req = c.newRequest(op, input, output) output = &PutEventsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -567,9 +574,10 @@ func (c *CloudWatchEvents) PutEventsRequest(input *PutEventsInput) (req *request // API operation PutEvents for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // This exception occurs due to unexpected causes. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents func (c *CloudWatchEvents) PutEvents(input *PutEventsInput) (*PutEventsOutput, error) { req, out := c.PutEventsRequest(input) err := req.Send() @@ -602,6 +610,7 @@ const opPutRule = "PutRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) (req *request.Request, output *PutRuleOutput) { op := &request.Operation{ Name: opPutRule, @@ -613,9 +622,8 @@ func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) (req *request.Req input = &PutRuleInput{} } - req = c.newRequest(op, input, output) output = &PutRuleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -624,7 +632,7 @@ func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) (req *request.Req // Creates or updates a rule. Rules are enabled by default, or based on value // of the State parameter. You can disable a rule using DisableRule. // -// Note: When you create or update a rule, incoming events might not immediately +// Note: When you create or update a rule, incoming events might not immediately // start matching to new or updated rules. Please allow a short period of time // for changes to take effect. // @@ -634,11 +642,10 @@ func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) (req *request.Req // can have both an EventPattern and a ScheduleExpression, in which case the // rule will trigger on matching events as well as on a schedule. // -// Note: Most services in AWS treat : or / as the same character in Amazon -// Resource Names (ARNs). However, CloudWatch Events uses an exact match in -// event patterns and rules. Be sure to use the correct ARN characters when -// creating event patterns so that they match the ARN syntax in the event you -// want to match. +// Note: Most services in AWS treat : or / as the same character in Amazon Resource +// Names (ARNs). However, CloudWatch Events uses an exact match in event patterns +// and rules. Be sure to use the correct ARN characters when creating event +// patterns so that they match the ARN syntax in the event you want to match. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -648,19 +655,20 @@ func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) (req *request.Req // API operation PutRule for usage and error information. // // Returned Error Codes: -// * InvalidEventPatternException +// * ErrCodeInvalidEventPatternException "InvalidEventPatternException" // The event pattern is invalid. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // This exception occurs if you try to create more rules or add more targets // to a rule than allowed by default. // -// * ConcurrentModificationException +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" // This exception occurs if there is concurrent modification on rule or target. // -// * InternalException +// * ErrCodeInternalException "InternalException" // This exception occurs due to unexpected causes. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule func (c *CloudWatchEvents) PutRule(input *PutRuleInput) (*PutRuleOutput, error) { req, out := c.PutRuleRequest(input) err := req.Send() @@ -693,6 +701,7 @@ const opPutTargets = "PutTargets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *request.Request, output *PutTargetsOutput) { op := &request.Operation{ Name: opPutTargets, @@ -704,9 +713,8 @@ func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *reque input = &PutTargetsInput{} } - req = c.newRequest(op, input, output) output = &PutTargetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -725,17 +733,19 @@ func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *reque // see Permissions for Sending Events to Targets (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/EventsTargetPermissions.html) // in the Amazon CloudWatch Developer Guide. // -// Input and InputPath are mutually-exclusive and optional parameters of a -// target. When a rule is triggered due to a matched event, if for a target: +// Input and InputPath are mutually-exclusive and optional parameters of a target. +// When a rule is triggered due to a matched event, if for a target: // -// Neither Input nor InputPath is specified, then the entire event is passed -// to the target in JSON form. InputPath is specified in the form of JSONPath -// (e.g. $.detail), then only the part of the event specified in the path is -// passed to the target (e.g. only the detail part of the event is passed). -// Input is specified in the form of a valid JSON, then the matched event -// is overridden with this constant. Note: When you add targets to a rule, -// when the associated rule triggers, new or updated targets might not be immediately -// invoked. Please allow a short period of time for changes to take effect. +// * Neither Input nor InputPath is specified, then the entire event is passed +// to the target in JSON form. +// * InputPath is specified in the form of JSONPath (e.g. $.detail), then +// only the part of the event specified in the path is passed to the target +// (e.g. only the detail part of the event is passed). +// * Input is specified in the form of a valid JSON, then the matched event +// is overridden with this constant. +// Note: When you add targets to a rule, when the associated rule triggers, +// new or updated targets might not be immediately invoked. Please allow a short +// period of time for changes to take effect. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -745,19 +755,20 @@ func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *reque // API operation PutTargets for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The rule does not exist. // -// * ConcurrentModificationException +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" // This exception occurs if there is concurrent modification on rule or target. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // This exception occurs if you try to create more rules or add more targets // to a rule than allowed by default. // -// * InternalException +// * ErrCodeInternalException "InternalException" // This exception occurs due to unexpected causes. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets func (c *CloudWatchEvents) PutTargets(input *PutTargetsInput) (*PutTargetsOutput, error) { req, out := c.PutTargetsRequest(input) err := req.Send() @@ -790,6 +801,7 @@ const opRemoveTargets = "RemoveTargets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets func (c *CloudWatchEvents) RemoveTargetsRequest(input *RemoveTargetsInput) (req *request.Request, output *RemoveTargetsOutput) { op := &request.Operation{ Name: opRemoveTargets, @@ -801,9 +813,8 @@ func (c *CloudWatchEvents) RemoveTargetsRequest(input *RemoveTargetsInput) (req input = &RemoveTargetsInput{} } - req = c.newRequest(op, input, output) output = &RemoveTargetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -812,7 +823,7 @@ func (c *CloudWatchEvents) RemoveTargetsRequest(input *RemoveTargetsInput) (req // Removes target(s) from a rule so that when the rule is triggered, those targets // will no longer be invoked. // -// Note: When you remove a target, when the associated rule triggers, removed +// Note: When you remove a target, when the associated rule triggers, removed // targets might still continue to be invoked. Please allow a short period of // time for changes to take effect. // @@ -824,15 +835,16 @@ func (c *CloudWatchEvents) RemoveTargetsRequest(input *RemoveTargetsInput) (req // API operation RemoveTargets for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The rule does not exist. // -// * ConcurrentModificationException +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" // This exception occurs if there is concurrent modification on rule or target. // -// * InternalException +// * ErrCodeInternalException "InternalException" // This exception occurs due to unexpected causes. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets func (c *CloudWatchEvents) RemoveTargets(input *RemoveTargetsInput) (*RemoveTargetsOutput, error) { req, out := c.RemoveTargetsRequest(input) err := req.Send() @@ -865,6 +877,7 @@ const opTestEventPattern = "TestEventPattern" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern func (c *CloudWatchEvents) TestEventPatternRequest(input *TestEventPatternInput) (req *request.Request, output *TestEventPatternOutput) { op := &request.Operation{ Name: opTestEventPattern, @@ -876,9 +889,8 @@ func (c *CloudWatchEvents) TestEventPatternRequest(input *TestEventPatternInput) input = &TestEventPatternInput{} } - req = c.newRequest(op, input, output) output = &TestEventPatternOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -886,11 +898,10 @@ func (c *CloudWatchEvents) TestEventPatternRequest(input *TestEventPatternInput) // // Tests whether an event pattern matches the provided event. // -// Note: Most services in AWS treat : or / as the same character in Amazon -// Resource Names (ARNs). However, CloudWatch Events uses an exact match in -// event patterns and rules. Be sure to use the correct ARN characters when -// creating event patterns so that they match the ARN syntax in the event you -// want to match. +// Note: Most services in AWS treat : or / as the same character in Amazon Resource +// Names (ARNs). However, CloudWatch Events uses an exact match in event patterns +// and rules. Be sure to use the correct ARN characters when creating event +// patterns so that they match the ARN syntax in the event you want to match. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -900,12 +911,13 @@ func (c *CloudWatchEvents) TestEventPatternRequest(input *TestEventPatternInput) // API operation TestEventPattern for usage and error information. // // Returned Error Codes: -// * InvalidEventPatternException +// * ErrCodeInvalidEventPatternException "InvalidEventPatternException" // The event pattern is invalid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // This exception occurs due to unexpected causes. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern func (c *CloudWatchEvents) TestEventPattern(input *TestEventPatternInput) (*TestEventPatternOutput, error) { req, out := c.TestEventPatternRequest(input) err := req.Send() @@ -913,6 +925,7 @@ func (c *CloudWatchEvents) TestEventPattern(input *TestEventPatternInput) (*Test } // Container for the parameters to the DeleteRule operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRuleRequest type DeleteRuleInput struct { _ struct{} `type:"structure"` @@ -948,6 +961,13 @@ func (s *DeleteRuleInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *DeleteRuleInput) SetName(v string) *DeleteRuleInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRuleOutput type DeleteRuleOutput struct { _ struct{} `type:"structure"` } @@ -963,6 +983,7 @@ func (s DeleteRuleOutput) GoString() string { } // Container for the parameters to the DescribeRule operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRuleRequest type DescribeRuleInput struct { _ struct{} `type:"structure"` @@ -998,7 +1019,14 @@ func (s *DescribeRuleInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *DescribeRuleInput) SetName(v string) *DescribeRuleInput { + s.Name = &v + return s +} + // The result of the DescribeRule operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRuleResponse type DescribeRuleOutput struct { _ struct{} `type:"structure"` @@ -1034,7 +1062,50 @@ func (s DescribeRuleOutput) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *DescribeRuleOutput) SetArn(v string) *DescribeRuleOutput { + s.Arn = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DescribeRuleOutput) SetDescription(v string) *DescribeRuleOutput { + s.Description = &v + return s +} + +// SetEventPattern sets the EventPattern field's value. +func (s *DescribeRuleOutput) SetEventPattern(v string) *DescribeRuleOutput { + s.EventPattern = &v + return s +} + +// SetName sets the Name field's value. +func (s *DescribeRuleOutput) SetName(v string) *DescribeRuleOutput { + s.Name = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *DescribeRuleOutput) SetRoleArn(v string) *DescribeRuleOutput { + s.RoleArn = &v + return s +} + +// SetScheduleExpression sets the ScheduleExpression field's value. +func (s *DescribeRuleOutput) SetScheduleExpression(v string) *DescribeRuleOutput { + s.ScheduleExpression = &v + return s +} + +// SetState sets the State field's value. +func (s *DescribeRuleOutput) SetState(v string) *DescribeRuleOutput { + s.State = &v + return s +} + // Container for the parameters to the DisableRule operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRuleRequest type DisableRuleInput struct { _ struct{} `type:"structure"` @@ -1070,6 +1141,13 @@ func (s *DisableRuleInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *DisableRuleInput) SetName(v string) *DisableRuleInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRuleOutput type DisableRuleOutput struct { _ struct{} `type:"structure"` } @@ -1085,6 +1163,7 @@ func (s DisableRuleOutput) GoString() string { } // Container for the parameters to the EnableRule operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRuleRequest type EnableRuleInput struct { _ struct{} `type:"structure"` @@ -1120,6 +1199,13 @@ func (s *EnableRuleInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *EnableRuleInput) SetName(v string) *EnableRuleInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRuleOutput type EnableRuleOutput struct { _ struct{} `type:"structure"` } @@ -1135,6 +1221,7 @@ func (s EnableRuleOutput) GoString() string { } // Container for the parameters to the ListRuleNamesByTarget operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTargetRequest type ListRuleNamesByTargetInput struct { _ struct{} `type:"structure"` @@ -1184,7 +1271,26 @@ func (s *ListRuleNamesByTargetInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListRuleNamesByTargetInput) SetLimit(v int64) *ListRuleNamesByTargetInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListRuleNamesByTargetInput) SetNextToken(v string) *ListRuleNamesByTargetInput { + s.NextToken = &v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *ListRuleNamesByTargetInput) SetTargetArn(v string) *ListRuleNamesByTargetInput { + s.TargetArn = &v + return s +} + // The result of the ListRuleNamesByTarget operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTargetResponse type ListRuleNamesByTargetOutput struct { _ struct{} `type:"structure"` @@ -1205,7 +1311,20 @@ func (s ListRuleNamesByTargetOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListRuleNamesByTargetOutput) SetNextToken(v string) *ListRuleNamesByTargetOutput { + s.NextToken = &v + return s +} + +// SetRuleNames sets the RuleNames field's value. +func (s *ListRuleNamesByTargetOutput) SetRuleNames(v []*string) *ListRuleNamesByTargetOutput { + s.RuleNames = v + return s +} + // Container for the parameters to the ListRules operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRulesRequest type ListRulesInput struct { _ struct{} `type:"structure"` @@ -1249,7 +1368,26 @@ func (s *ListRulesInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListRulesInput) SetLimit(v int64) *ListRulesInput { + s.Limit = &v + return s +} + +// SetNamePrefix sets the NamePrefix field's value. +func (s *ListRulesInput) SetNamePrefix(v string) *ListRulesInput { + s.NamePrefix = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListRulesInput) SetNextToken(v string) *ListRulesInput { + s.NextToken = &v + return s +} + // The result of the ListRules operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRulesResponse type ListRulesOutput struct { _ struct{} `type:"structure"` @@ -1270,7 +1408,20 @@ func (s ListRulesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListRulesOutput) SetNextToken(v string) *ListRulesOutput { + s.NextToken = &v + return s +} + +// SetRules sets the Rules field's value. +func (s *ListRulesOutput) SetRules(v []*Rule) *ListRulesOutput { + s.Rules = v + return s +} + // Container for the parameters to the ListTargetsByRule operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRuleRequest type ListTargetsByRuleInput struct { _ struct{} `type:"structure"` @@ -1319,7 +1470,26 @@ func (s *ListTargetsByRuleInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListTargetsByRuleInput) SetLimit(v int64) *ListTargetsByRuleInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTargetsByRuleInput) SetNextToken(v string) *ListTargetsByRuleInput { + s.NextToken = &v + return s +} + +// SetRule sets the Rule field's value. +func (s *ListTargetsByRuleInput) SetRule(v string) *ListTargetsByRuleInput { + s.Rule = &v + return s +} + // The result of the ListTargetsByRule operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRuleResponse type ListTargetsByRuleOutput struct { _ struct{} `type:"structure"` @@ -1340,7 +1510,20 @@ func (s ListTargetsByRuleOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListTargetsByRuleOutput) SetNextToken(v string) *ListTargetsByRuleOutput { + s.NextToken = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *ListTargetsByRuleOutput) SetTargets(v []*Target) *ListTargetsByRuleOutput { + s.Targets = v + return s +} + // Container for the parameters to the PutEvents operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsRequest type PutEventsInput struct { _ struct{} `type:"structure"` @@ -1378,7 +1561,14 @@ func (s *PutEventsInput) Validate() error { return nil } +// SetEntries sets the Entries field's value. +func (s *PutEventsInput) SetEntries(v []*PutEventsRequestEntry) *PutEventsInput { + s.Entries = v + return s +} + // The result of the PutEvents operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsResponse type PutEventsOutput struct { _ struct{} `type:"structure"` @@ -1402,7 +1592,20 @@ func (s PutEventsOutput) GoString() string { return s.String() } +// SetEntries sets the Entries field's value. +func (s *PutEventsOutput) SetEntries(v []*PutEventsResultEntry) *PutEventsOutput { + s.Entries = v + return s +} + +// SetFailedEntryCount sets the FailedEntryCount field's value. +func (s *PutEventsOutput) SetFailedEntryCount(v int64) *PutEventsOutput { + s.FailedEntryCount = &v + return s +} + // Contains information about the event to be used in PutEvents. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsRequestEntry type PutEventsRequestEntry struct { _ struct{} `type:"structure"` @@ -1436,7 +1639,38 @@ func (s PutEventsRequestEntry) GoString() string { return s.String() } +// SetDetail sets the Detail field's value. +func (s *PutEventsRequestEntry) SetDetail(v string) *PutEventsRequestEntry { + s.Detail = &v + return s +} + +// SetDetailType sets the DetailType field's value. +func (s *PutEventsRequestEntry) SetDetailType(v string) *PutEventsRequestEntry { + s.DetailType = &v + return s +} + +// SetResources sets the Resources field's value. +func (s *PutEventsRequestEntry) SetResources(v []*string) *PutEventsRequestEntry { + s.Resources = v + return s +} + +// SetSource sets the Source field's value. +func (s *PutEventsRequestEntry) SetSource(v string) *PutEventsRequestEntry { + s.Source = &v + return s +} + +// SetTime sets the Time field's value. +func (s *PutEventsRequestEntry) SetTime(v time.Time) *PutEventsRequestEntry { + s.Time = &v + return s +} + // A PutEventsResult contains a list of PutEventsResultEntry. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsResultEntry type PutEventsResultEntry struct { _ struct{} `type:"structure"` @@ -1460,7 +1694,26 @@ func (s PutEventsResultEntry) GoString() string { return s.String() } +// SetErrorCode sets the ErrorCode field's value. +func (s *PutEventsResultEntry) SetErrorCode(v string) *PutEventsResultEntry { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *PutEventsResultEntry) SetErrorMessage(v string) *PutEventsResultEntry { + s.ErrorMessage = &v + return s +} + +// SetEventId sets the EventId field's value. +func (s *PutEventsResultEntry) SetEventId(v string) *PutEventsResultEntry { + s.EventId = &v + return s +} + // Container for the parameters to the PutRule operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRuleRequest type PutRuleInput struct { _ struct{} `type:"structure"` @@ -1514,7 +1767,44 @@ func (s *PutRuleInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *PutRuleInput) SetDescription(v string) *PutRuleInput { + s.Description = &v + return s +} + +// SetEventPattern sets the EventPattern field's value. +func (s *PutRuleInput) SetEventPattern(v string) *PutRuleInput { + s.EventPattern = &v + return s +} + +// SetName sets the Name field's value. +func (s *PutRuleInput) SetName(v string) *PutRuleInput { + s.Name = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *PutRuleInput) SetRoleArn(v string) *PutRuleInput { + s.RoleArn = &v + return s +} + +// SetScheduleExpression sets the ScheduleExpression field's value. +func (s *PutRuleInput) SetScheduleExpression(v string) *PutRuleInput { + s.ScheduleExpression = &v + return s +} + +// SetState sets the State field's value. +func (s *PutRuleInput) SetState(v string) *PutRuleInput { + s.State = &v + return s +} + // The result of the PutRule operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRuleResponse type PutRuleOutput struct { _ struct{} `type:"structure"` @@ -1532,7 +1822,14 @@ func (s PutRuleOutput) GoString() string { return s.String() } +// SetRuleArn sets the RuleArn field's value. +func (s *PutRuleOutput) SetRuleArn(v string) *PutRuleOutput { + s.RuleArn = &v + return s +} + // Container for the parameters to the PutTargets operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargetsRequest type PutTargetsInput struct { _ struct{} `type:"structure"` @@ -1586,7 +1883,20 @@ func (s *PutTargetsInput) Validate() error { return nil } +// SetRule sets the Rule field's value. +func (s *PutTargetsInput) SetRule(v string) *PutTargetsInput { + s.Rule = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *PutTargetsInput) SetTargets(v []*Target) *PutTargetsInput { + s.Targets = v + return s +} + // The result of the PutTargets operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargetsResponse type PutTargetsOutput struct { _ struct{} `type:"structure"` @@ -1607,7 +1917,20 @@ func (s PutTargetsOutput) GoString() string { return s.String() } +// SetFailedEntries sets the FailedEntries field's value. +func (s *PutTargetsOutput) SetFailedEntries(v []*PutTargetsResultEntry) *PutTargetsOutput { + s.FailedEntries = v + return s +} + +// SetFailedEntryCount sets the FailedEntryCount field's value. +func (s *PutTargetsOutput) SetFailedEntryCount(v int64) *PutTargetsOutput { + s.FailedEntryCount = &v + return s +} + // A PutTargetsResult contains a list of PutTargetsResultEntry. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargetsResultEntry type PutTargetsResultEntry struct { _ struct{} `type:"structure"` @@ -1631,7 +1954,26 @@ func (s PutTargetsResultEntry) GoString() string { return s.String() } +// SetErrorCode sets the ErrorCode field's value. +func (s *PutTargetsResultEntry) SetErrorCode(v string) *PutTargetsResultEntry { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *PutTargetsResultEntry) SetErrorMessage(v string) *PutTargetsResultEntry { + s.ErrorMessage = &v + return s +} + +// SetTargetId sets the TargetId field's value. +func (s *PutTargetsResultEntry) SetTargetId(v string) *PutTargetsResultEntry { + s.TargetId = &v + return s +} + // Container for the parameters to the RemoveTargets operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargetsRequest type RemoveTargetsInput struct { _ struct{} `type:"structure"` @@ -1678,7 +2020,20 @@ func (s *RemoveTargetsInput) Validate() error { return nil } +// SetIds sets the Ids field's value. +func (s *RemoveTargetsInput) SetIds(v []*string) *RemoveTargetsInput { + s.Ids = v + return s +} + +// SetRule sets the Rule field's value. +func (s *RemoveTargetsInput) SetRule(v string) *RemoveTargetsInput { + s.Rule = &v + return s +} + // The result of the RemoveTargets operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargetsResponse type RemoveTargetsOutput struct { _ struct{} `type:"structure"` @@ -1699,8 +2054,21 @@ func (s RemoveTargetsOutput) GoString() string { return s.String() } +// SetFailedEntries sets the FailedEntries field's value. +func (s *RemoveTargetsOutput) SetFailedEntries(v []*RemoveTargetsResultEntry) *RemoveTargetsOutput { + s.FailedEntries = v + return s +} + +// SetFailedEntryCount sets the FailedEntryCount field's value. +func (s *RemoveTargetsOutput) SetFailedEntryCount(v int64) *RemoveTargetsOutput { + s.FailedEntryCount = &v + return s +} + // The ID of the target requested to be removed from the rule by Amazon CloudWatch // Events. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargetsResultEntry type RemoveTargetsResultEntry struct { _ struct{} `type:"structure"` @@ -1724,8 +2092,27 @@ func (s RemoveTargetsResultEntry) GoString() string { return s.String() } +// SetErrorCode sets the ErrorCode field's value. +func (s *RemoveTargetsResultEntry) SetErrorCode(v string) *RemoveTargetsResultEntry { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *RemoveTargetsResultEntry) SetErrorMessage(v string) *RemoveTargetsResultEntry { + s.ErrorMessage = &v + return s +} + +// SetTargetId sets the TargetId field's value. +func (s *RemoveTargetsResultEntry) SetTargetId(v string) *RemoveTargetsResultEntry { + s.TargetId = &v + return s +} + // Contains information about a rule in Amazon CloudWatch Events. A ListRulesResult // contains a list of Rules. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Rule type Rule struct { _ struct{} `type:"structure"` @@ -1762,18 +2149,62 @@ func (s Rule) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Rule) SetArn(v string) *Rule { + s.Arn = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Rule) SetDescription(v string) *Rule { + s.Description = &v + return s +} + +// SetEventPattern sets the EventPattern field's value. +func (s *Rule) SetEventPattern(v string) *Rule { + s.EventPattern = &v + return s +} + +// SetName sets the Name field's value. +func (s *Rule) SetName(v string) *Rule { + s.Name = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *Rule) SetRoleArn(v string) *Rule { + s.RoleArn = &v + return s +} + +// SetScheduleExpression sets the ScheduleExpression field's value. +func (s *Rule) SetScheduleExpression(v string) *Rule { + s.ScheduleExpression = &v + return s +} + +// SetState sets the State field's value. +func (s *Rule) SetState(v string) *Rule { + s.State = &v + return s +} + // Targets are the resources that can be invoked when a rule is triggered. For // example, AWS Lambda functions, Amazon Kinesis streams, and built-in targets. // -// Input and InputPath are mutually-exclusive and optional parameters of a -// target. When a rule is triggered due to a matched event, if for a target: -// -// Neither Input nor InputPath is specified, then the entire event is passed -// to the target in JSON form. InputPath is specified in the form of JSONPath -// (e.g. $.detail), then only the part of the event specified in the path is -// passed to the target (e.g. only the detail part of the event is passed). -// Input is specified in the form of a valid JSON, then the matched event -// is overridden with this constant. +// Input and InputPath are mutually-exclusive and optional parameters of a target. +// When a rule is triggered due to a matched event, if for a target: +// +// * Neither Input nor InputPath is specified, then the entire event is passed +// to the target in JSON form. +// * InputPath is specified in the form of JSONPath (e.g. $.detail), then +// only the part of the event specified in the path is passed to the target +// (e.g. only the detail part of the event is passed). +// * Input is specified in the form of a valid JSON, then the matched event +// is overridden with this constant. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Target type Target struct { _ struct{} `type:"structure"` @@ -1829,7 +2260,32 @@ func (s *Target) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *Target) SetArn(v string) *Target { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *Target) SetId(v string) *Target { + s.Id = &v + return s +} + +// SetInput sets the Input field's value. +func (s *Target) SetInput(v string) *Target { + s.Input = &v + return s +} + +// SetInputPath sets the InputPath field's value. +func (s *Target) SetInputPath(v string) *Target { + s.InputPath = &v + return s +} + // Container for the parameters to the TestEventPattern operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPatternRequest type TestEventPatternInput struct { _ struct{} `type:"structure"` @@ -1870,7 +2326,20 @@ func (s *TestEventPatternInput) Validate() error { return nil } +// SetEvent sets the Event field's value. +func (s *TestEventPatternInput) SetEvent(v string) *TestEventPatternInput { + s.Event = &v + return s +} + +// SetEventPattern sets the EventPattern field's value. +func (s *TestEventPatternInput) SetEventPattern(v string) *TestEventPatternInput { + s.EventPattern = &v + return s +} + // The result of the TestEventPattern operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPatternResponse type TestEventPatternOutput struct { _ struct{} `type:"structure"` @@ -1888,6 +2357,12 @@ func (s TestEventPatternOutput) GoString() string { return s.String() } +// SetResult sets the Result field's value. +func (s *TestEventPatternOutput) SetResult(v bool) *TestEventPatternOutput { + s.Result = &v + return s +} + const ( // RuleStateEnabled is a RuleState enum value RuleStateEnabled = "ENABLED" diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/cloudwatcheventsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/cloudwatcheventsiface/interface.go index 34a673893..c2be49ef0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/cloudwatcheventsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/cloudwatcheventsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCloudWatchEventsClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/errors.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/errors.go new file mode 100644 index 000000000..f0d17b88d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/errors.go @@ -0,0 +1,37 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cloudwatchevents + +const ( + + // ErrCodeConcurrentModificationException for service response error code + // "ConcurrentModificationException". + // + // This exception occurs if there is concurrent modification on rule or target. + ErrCodeConcurrentModificationException = "ConcurrentModificationException" + + // ErrCodeInternalException for service response error code + // "InternalException". + // + // This exception occurs due to unexpected causes. + ErrCodeInternalException = "InternalException" + + // ErrCodeInvalidEventPatternException for service response error code + // "InvalidEventPatternException". + // + // The event pattern is invalid. + ErrCodeInvalidEventPatternException = "InvalidEventPatternException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // This exception occurs if you try to create more rules or add more targets + // to a rule than allowed by default. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The rule does not exist. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/examples_test.go index f4f3587e9..7a0ab23e0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudWatchEvents_DeleteRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -41,11 +37,7 @@ func ExampleCloudWatchEvents_DeleteRule() { } func ExampleCloudWatchEvents_DescribeRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -66,11 +58,7 @@ func ExampleCloudWatchEvents_DescribeRule() { } func ExampleCloudWatchEvents_DisableRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -91,11 +79,7 @@ func ExampleCloudWatchEvents_DisableRule() { } func ExampleCloudWatchEvents_EnableRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -116,11 +100,7 @@ func ExampleCloudWatchEvents_EnableRule() { } func ExampleCloudWatchEvents_ListRuleNamesByTarget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -143,11 +123,7 @@ func ExampleCloudWatchEvents_ListRuleNamesByTarget() { } func ExampleCloudWatchEvents_ListRules() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -170,11 +146,7 @@ func ExampleCloudWatchEvents_ListRules() { } func ExampleCloudWatchEvents_ListTargetsByRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -197,11 +169,7 @@ func ExampleCloudWatchEvents_ListTargetsByRule() { } func ExampleCloudWatchEvents_PutEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -234,11 +202,7 @@ func ExampleCloudWatchEvents_PutEvents() { } func ExampleCloudWatchEvents_PutRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -264,11 +228,7 @@ func ExampleCloudWatchEvents_PutRule() { } func ExampleCloudWatchEvents_PutTargets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -298,11 +258,7 @@ func ExampleCloudWatchEvents_PutTargets() { } func ExampleCloudWatchEvents_RemoveTargets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) @@ -327,11 +283,7 @@ func ExampleCloudWatchEvents_RemoveTargets() { } func ExampleCloudWatchEvents_TestEventPattern() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchevents.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/service.go index 0501a80d9..1e814137b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/service.go @@ -18,15 +18,18 @@ import ( // to take action on a pre-determined schedule. For example, you can configure // rules to: // -// Automatically invoke an AWS Lambda function to update DNS entries when -// an event notifies you that Amazon EC2 instance enters the running state. -// Direct specific API records from CloudTrail to an Amazon Kinesis stream for -// detailed analysis of potential security or availability risks. Periodically -// invoke a built-in target to create a snapshot of an Amazon EBS volume. +// * Automatically invoke an AWS Lambda function to update DNS entries when +// an event notifies you that Amazon EC2 instance enters the running state. +// +// * Direct specific API records from CloudTrail to an Amazon Kinesis stream +// for detailed analysis of potential security or availability risks. +// * Periodically invoke a built-in target to create a snapshot of an Amazon +// EBS volume. // For more information about Amazon CloudWatch Events features, see the Amazon // CloudWatch Developer Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide). -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07 type CloudWatchEvents struct { *client.Client } @@ -37,8 +40,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "events" +// Service information constants +const ( + ServiceName = "events" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the CloudWatchEvents client with a session. // If additional configuration is needed for the client instance use the optional @@ -51,17 +57,18 @@ const ServiceName = "events" // // Create a CloudWatchEvents client with additional configuration // svc := cloudwatchevents.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudWatchEvents { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CloudWatchEvents { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CloudWatchEvents { svc := &CloudWatchEvents{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-10-07", diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go index c69ad6f08..38fee5bc7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go @@ -38,6 +38,7 @@ const opCancelExportTask = "CancelExportTask" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CancelExportTask func (c *CloudWatchLogs) CancelExportTaskRequest(input *CancelExportTaskInput) (req *request.Request, output *CancelExportTaskOutput) { op := &request.Operation{ Name: opCancelExportTask, @@ -49,17 +50,18 @@ func (c *CloudWatchLogs) CancelExportTaskRequest(input *CancelExportTaskInput) ( input = &CancelExportTaskInput{} } + output = &CancelExportTaskOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CancelExportTaskOutput{} - req.Data = output return } // CancelExportTask API operation for Amazon CloudWatch Logs. // -// Cancels an export task if it is in PENDING or RUNNING state. +// Cancels the specified export task. +// +// The task must be in the PENDING or RUNNING state. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -69,18 +71,19 @@ func (c *CloudWatchLogs) CancelExportTaskRequest(input *CancelExportTaskInput) ( // API operation CancelExportTask for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ResourceNotFoundException -// Returned if the specified resource does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. // -// * InvalidOperationException -// Returned if the operation is not valid on the specified resource +// * ErrCodeInvalidOperationException "InvalidOperationException" +// The operation is not valid on the specified resource. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CancelExportTask func (c *CloudWatchLogs) CancelExportTask(input *CancelExportTaskInput) (*CancelExportTaskOutput, error) { req, out := c.CancelExportTaskRequest(input) err := req.Send() @@ -113,6 +116,7 @@ const opCreateExportTask = "CreateExportTask" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateExportTask func (c *CloudWatchLogs) CreateExportTaskRequest(input *CreateExportTaskInput) (req *request.Request, output *CreateExportTaskOutput) { op := &request.Operation{ Name: opCreateExportTask, @@ -124,27 +128,25 @@ func (c *CloudWatchLogs) CreateExportTaskRequest(input *CreateExportTaskInput) ( input = &CreateExportTaskInput{} } - req = c.newRequest(op, input, output) output = &CreateExportTaskOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // CreateExportTask API operation for Amazon CloudWatch Logs. // -// Creates an ExportTask which allows you to efficiently export data from a -// Log Group to your Amazon S3 bucket. +// Creates an export task, which allows you to efficiently export data from +// a log group to an Amazon S3 bucket. // // This is an asynchronous call. If all the required information is provided, -// this API will initiate an export task and respond with the task Id. Once -// started, DescribeExportTasks can be used to get the status of an export task. -// You can only have one active (RUNNING or PENDING) export task at a time, -// per account. +// this operation initiates an export task and responds with the ID of the task. +// After the task has started, you can use DescribeExportTasks to get the status +// of the export task. Each account can only have one active (RUNNING or PENDING) +// export task at a time. To cancel an export task, use CancelExportTask. // -// You can export logs from multiple log groups or multiple time ranges to -// the same Amazon S3 bucket. To separate out log data for each export task, -// you can specify a prefix that will be used as the Amazon S3 key prefix for -// all exported objects. +// You can export logs from multiple log groups or multiple time ranges to the +// same S3 bucket. To separate out log data for each export task, you can specify +// a prefix that will be used as the Amazon S3 key prefix for all exported objects. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -154,25 +156,25 @@ func (c *CloudWatchLogs) CreateExportTaskRequest(input *CreateExportTaskInput) ( // API operation CreateExportTask for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * LimitExceededException -// Returned if you have reached the maximum number of resources that can be -// created. +// * ErrCodeLimitExceededException "LimitExceededException" +// You have reached the maximum number of resources that can be created. // -// * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// * ErrCodeOperationAbortedException "OperationAbortedException" +// Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // -// * ResourceNotFoundException -// Returned if the specified resource does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. // -// * ResourceAlreadyExistsException -// Returned if the specified resource already exists. +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// The specified resource already exists. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateExportTask func (c *CloudWatchLogs) CreateExportTask(input *CreateExportTaskInput) (*CreateExportTaskOutput, error) { req, out := c.CreateExportTaskRequest(input) err := req.Send() @@ -205,6 +207,7 @@ const opCreateLogGroup = "CreateLogGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogGroup func (c *CloudWatchLogs) CreateLogGroupRequest(input *CreateLogGroupInput) (req *request.Request, output *CreateLogGroupOutput) { op := &request.Operation{ Name: opCreateLogGroup, @@ -216,26 +219,27 @@ func (c *CloudWatchLogs) CreateLogGroupRequest(input *CreateLogGroupInput) (req input = &CreateLogGroupInput{} } + output = &CreateLogGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CreateLogGroupOutput{} - req.Data = output return } // CreateLogGroup API operation for Amazon CloudWatch Logs. // -// Creates a new log group with the specified name. The name of the log group -// must be unique within a region for an AWS account. You can create up to 500 -// log groups per account. +// Creates a log group with the specified name. +// +// You can create up to 5000 log groups per account. // // You must use the following guidelines when naming a log group: // -// Log group names can be between 1 and 512 characters long. +// * Log group names must be unique within a region for an AWS account. // -// Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), -// '/' (forward slash), and '.' (period). +// * Log group names can be between 1 and 512 characters long. +// +// * Log group names consist of the following characters: a-z, A-Z, 0-9, +// '_' (underscore), '-' (hyphen), '/' (forward slash), and '.' (period). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -245,22 +249,22 @@ func (c *CloudWatchLogs) CreateLogGroupRequest(input *CreateLogGroupInput) (req // API operation CreateLogGroup for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ResourceAlreadyExistsException -// Returned if the specified resource already exists. +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// The specified resource already exists. // -// * LimitExceededException -// Returned if you have reached the maximum number of resources that can be -// created. +// * ErrCodeLimitExceededException "LimitExceededException" +// You have reached the maximum number of resources that can be created. // -// * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// * ErrCodeOperationAbortedException "OperationAbortedException" +// Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogGroup func (c *CloudWatchLogs) CreateLogGroup(input *CreateLogGroupInput) (*CreateLogGroupOutput, error) { req, out := c.CreateLogGroupRequest(input) err := req.Send() @@ -293,6 +297,7 @@ const opCreateLogStream = "CreateLogStream" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogStream func (c *CloudWatchLogs) CreateLogStreamRequest(input *CreateLogStreamInput) (req *request.Request, output *CreateLogStreamOutput) { op := &request.Operation{ Name: opCreateLogStream, @@ -304,25 +309,27 @@ func (c *CloudWatchLogs) CreateLogStreamRequest(input *CreateLogStreamInput) (re input = &CreateLogStreamInput{} } + output = &CreateLogStreamOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CreateLogStreamOutput{} - req.Data = output return } // CreateLogStream API operation for Amazon CloudWatch Logs. // -// Creates a new log stream in the specified log group. The name of the log -// stream must be unique within the log group. There is no limit on the number -// of log streams that can exist in a log group. +// Creates a log stream for the specified log group. +// +// There is no limit on the number of log streams that you can create for a +// log group. // // You must use the following guidelines when naming a log stream: // -// Log stream names can be between 1 and 512 characters long. +// * Log stream names must be unique within the log group. +// +// * Log stream names can be between 1 and 512 characters long. // -// The ':' colon character is not allowed. +// * The ':' (colon) and '*' (asterisk) characters are not allowed. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -332,18 +339,19 @@ func (c *CloudWatchLogs) CreateLogStreamRequest(input *CreateLogStreamInput) (re // API operation CreateLogStream for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ResourceAlreadyExistsException -// Returned if the specified resource already exists. +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// The specified resource already exists. // -// * ResourceNotFoundException -// Returned if the specified resource does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogStream func (c *CloudWatchLogs) CreateLogStream(input *CreateLogStreamInput) (*CreateLogStreamOutput, error) { req, out := c.CreateLogStreamRequest(input) err := req.Send() @@ -376,6 +384,7 @@ const opDeleteDestination = "DeleteDestination" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDestination func (c *CloudWatchLogs) DeleteDestinationRequest(input *DeleteDestinationInput) (req *request.Request, output *DeleteDestinationOutput) { op := &request.Operation{ Name: opDeleteDestination, @@ -387,19 +396,18 @@ func (c *CloudWatchLogs) DeleteDestinationRequest(input *DeleteDestinationInput) input = &DeleteDestinationInput{} } + output = &DeleteDestinationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteDestinationOutput{} - req.Data = output return } // DeleteDestination API operation for Amazon CloudWatch Logs. // -// Deletes the destination with the specified name and eventually disables all -// the subscription filters that publish to it. This will not delete the physical -// resource encapsulated by the destination. +// Deletes the specified destination, and eventually disables all the subscription +// filters that publish to it. This operation does not delete the physical resource +// encapsulated by the destination. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -409,18 +417,19 @@ func (c *CloudWatchLogs) DeleteDestinationRequest(input *DeleteDestinationInput) // API operation DeleteDestination for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ResourceNotFoundException -// Returned if the specified resource does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. // -// * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// * ErrCodeOperationAbortedException "OperationAbortedException" +// Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDestination func (c *CloudWatchLogs) DeleteDestination(input *DeleteDestinationInput) (*DeleteDestinationOutput, error) { req, out := c.DeleteDestinationRequest(input) err := req.Send() @@ -453,6 +462,7 @@ const opDeleteLogGroup = "DeleteLogGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogGroup func (c *CloudWatchLogs) DeleteLogGroupRequest(input *DeleteLogGroupInput) (req *request.Request, output *DeleteLogGroupOutput) { op := &request.Operation{ Name: opDeleteLogGroup, @@ -464,18 +474,17 @@ func (c *CloudWatchLogs) DeleteLogGroupRequest(input *DeleteLogGroupInput) (req input = &DeleteLogGroupInput{} } + output = &DeleteLogGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteLogGroupOutput{} - req.Data = output return } // DeleteLogGroup API operation for Amazon CloudWatch Logs. // -// Deletes the log group with the specified name and permanently deletes all -// the archived log events associated with it. +// Deletes the specified log group and permanently deletes all the archived +// log events associated with the log group. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -485,18 +494,19 @@ func (c *CloudWatchLogs) DeleteLogGroupRequest(input *DeleteLogGroupInput) (req // API operation DeleteLogGroup for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ResourceNotFoundException -// Returned if the specified resource does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. // -// * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// * ErrCodeOperationAbortedException "OperationAbortedException" +// Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogGroup func (c *CloudWatchLogs) DeleteLogGroup(input *DeleteLogGroupInput) (*DeleteLogGroupOutput, error) { req, out := c.DeleteLogGroupRequest(input) err := req.Send() @@ -529,6 +539,7 @@ const opDeleteLogStream = "DeleteLogStream" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogStream func (c *CloudWatchLogs) DeleteLogStreamRequest(input *DeleteLogStreamInput) (req *request.Request, output *DeleteLogStreamOutput) { op := &request.Operation{ Name: opDeleteLogStream, @@ -540,18 +551,17 @@ func (c *CloudWatchLogs) DeleteLogStreamRequest(input *DeleteLogStreamInput) (re input = &DeleteLogStreamInput{} } + output = &DeleteLogStreamOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteLogStreamOutput{} - req.Data = output return } // DeleteLogStream API operation for Amazon CloudWatch Logs. // -// Deletes a log stream and permanently deletes all the archived log events -// associated with it. +// Deletes the specified log stream and permanently deletes all the archived +// log events associated with the log stream. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -561,18 +571,19 @@ func (c *CloudWatchLogs) DeleteLogStreamRequest(input *DeleteLogStreamInput) (re // API operation DeleteLogStream for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ResourceNotFoundException -// Returned if the specified resource does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. // -// * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// * ErrCodeOperationAbortedException "OperationAbortedException" +// Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogStream func (c *CloudWatchLogs) DeleteLogStream(input *DeleteLogStreamInput) (*DeleteLogStreamOutput, error) { req, out := c.DeleteLogStreamRequest(input) err := req.Send() @@ -605,6 +616,7 @@ const opDeleteMetricFilter = "DeleteMetricFilter" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteMetricFilter func (c *CloudWatchLogs) DeleteMetricFilterRequest(input *DeleteMetricFilterInput) (req *request.Request, output *DeleteMetricFilterOutput) { op := &request.Operation{ Name: opDeleteMetricFilter, @@ -616,17 +628,16 @@ func (c *CloudWatchLogs) DeleteMetricFilterRequest(input *DeleteMetricFilterInpu input = &DeleteMetricFilterInput{} } + output = &DeleteMetricFilterOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteMetricFilterOutput{} - req.Data = output return } // DeleteMetricFilter API operation for Amazon CloudWatch Logs. // -// Deletes a metric filter associated with the specified log group. +// Deletes the specified metric filter. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -636,18 +647,19 @@ func (c *CloudWatchLogs) DeleteMetricFilterRequest(input *DeleteMetricFilterInpu // API operation DeleteMetricFilter for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ResourceNotFoundException -// Returned if the specified resource does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. // -// * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// * ErrCodeOperationAbortedException "OperationAbortedException" +// Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteMetricFilter func (c *CloudWatchLogs) DeleteMetricFilter(input *DeleteMetricFilterInput) (*DeleteMetricFilterOutput, error) { req, out := c.DeleteMetricFilterRequest(input) err := req.Send() @@ -680,6 +692,7 @@ const opDeleteRetentionPolicy = "DeleteRetentionPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteRetentionPolicy func (c *CloudWatchLogs) DeleteRetentionPolicyRequest(input *DeleteRetentionPolicyInput) (req *request.Request, output *DeleteRetentionPolicyOutput) { op := &request.Operation{ Name: opDeleteRetentionPolicy, @@ -691,18 +704,19 @@ func (c *CloudWatchLogs) DeleteRetentionPolicyRequest(input *DeleteRetentionPoli input = &DeleteRetentionPolicyInput{} } + output = &DeleteRetentionPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteRetentionPolicyOutput{} - req.Data = output return } // DeleteRetentionPolicy API operation for Amazon CloudWatch Logs. // -// Deletes the retention policy of the specified log group. Log events would -// not expire if they belong to log groups without a retention policy. +// Deletes the specified retention policy. +// +// Log events do not expire if they belong to log groups without a retention +// policy. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -712,18 +726,19 @@ func (c *CloudWatchLogs) DeleteRetentionPolicyRequest(input *DeleteRetentionPoli // API operation DeleteRetentionPolicy for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ResourceNotFoundException -// Returned if the specified resource does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. // -// * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// * ErrCodeOperationAbortedException "OperationAbortedException" +// Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteRetentionPolicy func (c *CloudWatchLogs) DeleteRetentionPolicy(input *DeleteRetentionPolicyInput) (*DeleteRetentionPolicyOutput, error) { req, out := c.DeleteRetentionPolicyRequest(input) err := req.Send() @@ -756,6 +771,7 @@ const opDeleteSubscriptionFilter = "DeleteSubscriptionFilter" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteSubscriptionFilter func (c *CloudWatchLogs) DeleteSubscriptionFilterRequest(input *DeleteSubscriptionFilterInput) (req *request.Request, output *DeleteSubscriptionFilterOutput) { op := &request.Operation{ Name: opDeleteSubscriptionFilter, @@ -767,17 +783,16 @@ func (c *CloudWatchLogs) DeleteSubscriptionFilterRequest(input *DeleteSubscripti input = &DeleteSubscriptionFilterInput{} } + output = &DeleteSubscriptionFilterOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteSubscriptionFilterOutput{} - req.Data = output return } // DeleteSubscriptionFilter API operation for Amazon CloudWatch Logs. // -// Deletes a subscription filter associated with the specified log group. +// Deletes the specified subscription filter. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -787,18 +802,19 @@ func (c *CloudWatchLogs) DeleteSubscriptionFilterRequest(input *DeleteSubscripti // API operation DeleteSubscriptionFilter for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ResourceNotFoundException -// Returned if the specified resource does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. // -// * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// * ErrCodeOperationAbortedException "OperationAbortedException" +// Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteSubscriptionFilter func (c *CloudWatchLogs) DeleteSubscriptionFilter(input *DeleteSubscriptionFilterInput) (*DeleteSubscriptionFilterOutput, error) { req, out := c.DeleteSubscriptionFilterRequest(input) err := req.Send() @@ -831,6 +847,7 @@ const opDescribeDestinations = "DescribeDestinations" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDestinations func (c *CloudWatchLogs) DescribeDestinationsRequest(input *DescribeDestinationsInput) (req *request.Request, output *DescribeDestinationsOutput) { op := &request.Operation{ Name: opDescribeDestinations, @@ -848,23 +865,16 @@ func (c *CloudWatchLogs) DescribeDestinationsRequest(input *DescribeDestinations input = &DescribeDestinationsInput{} } - req = c.newRequest(op, input, output) output = &DescribeDestinationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeDestinations API operation for Amazon CloudWatch Logs. // -// Returns all the destinations that are associated with the AWS account making -// the request. The list returned in the response is ASCII-sorted by destination +// Lists all your destinations. The results are ASCII-sorted by destination // name. // -// By default, this operation returns up to 50 destinations. If there are more -// destinations to list, the response would contain a nextToken value in the -// response body. You can also limit the number of destinations returned in -// the response by specifying the limit parameter in the request. -// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -873,12 +883,13 @@ func (c *CloudWatchLogs) DescribeDestinationsRequest(input *DescribeDestinations // API operation DescribeDestinations for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDestinations func (c *CloudWatchLogs) DescribeDestinations(input *DescribeDestinationsInput) (*DescribeDestinationsOutput, error) { req, out := c.DescribeDestinationsRequest(input) err := req.Send() @@ -936,6 +947,7 @@ const opDescribeExportTasks = "DescribeExportTasks" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeExportTasks func (c *CloudWatchLogs) DescribeExportTasksRequest(input *DescribeExportTasksInput) (req *request.Request, output *DescribeExportTasksOutput) { op := &request.Operation{ Name: opDescribeExportTasks, @@ -947,22 +959,15 @@ func (c *CloudWatchLogs) DescribeExportTasksRequest(input *DescribeExportTasksIn input = &DescribeExportTasksInput{} } - req = c.newRequest(op, input, output) output = &DescribeExportTasksOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeExportTasks API operation for Amazon CloudWatch Logs. // -// Returns all the export tasks that are associated with the AWS account making -// the request. The export tasks can be filtered based on TaskId or TaskStatus. -// -// By default, this operation returns up to 50 export tasks that satisfy the -// specified filters. If there are more export tasks to list, the response would -// contain a nextToken value in the response body. You can also limit the number -// of export tasks returned in the response by specifying the limit parameter -// in the request. +// Lists the specified export tasks. You can list all your export tasks or filter +// the results based on task ID or task status. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -972,12 +977,13 @@ func (c *CloudWatchLogs) DescribeExportTasksRequest(input *DescribeExportTasksIn // API operation DescribeExportTasks for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeExportTasks func (c *CloudWatchLogs) DescribeExportTasks(input *DescribeExportTasksInput) (*DescribeExportTasksOutput, error) { req, out := c.DescribeExportTasksRequest(input) err := req.Send() @@ -1010,6 +1016,7 @@ const opDescribeLogGroups = "DescribeLogGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogGroups func (c *CloudWatchLogs) DescribeLogGroupsRequest(input *DescribeLogGroupsInput) (req *request.Request, output *DescribeLogGroupsOutput) { op := &request.Operation{ Name: opDescribeLogGroups, @@ -1027,22 +1034,15 @@ func (c *CloudWatchLogs) DescribeLogGroupsRequest(input *DescribeLogGroupsInput) input = &DescribeLogGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeLogGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeLogGroups API operation for Amazon CloudWatch Logs. // -// Returns all the log groups that are associated with the AWS account making -// the request. The list returned in the response is ASCII-sorted by log group -// name. -// -// By default, this operation returns up to 50 log groups. If there are more -// log groups to list, the response would contain a nextToken value in the response -// body. You can also limit the number of log groups returned in the response -// by specifying the limit parameter in the request. +// Lists the specified log groups. You can list all your log groups or filter +// the results by prefix. The results are ASCII-sorted by log group name. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1052,12 +1052,13 @@ func (c *CloudWatchLogs) DescribeLogGroupsRequest(input *DescribeLogGroupsInput) // API operation DescribeLogGroups for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogGroups func (c *CloudWatchLogs) DescribeLogGroups(input *DescribeLogGroupsInput) (*DescribeLogGroupsOutput, error) { req, out := c.DescribeLogGroupsRequest(input) err := req.Send() @@ -1115,6 +1116,7 @@ const opDescribeLogStreams = "DescribeLogStreams" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogStreams func (c *CloudWatchLogs) DescribeLogStreamsRequest(input *DescribeLogStreamsInput) (req *request.Request, output *DescribeLogStreamsOutput) { op := &request.Operation{ Name: opDescribeLogStreams, @@ -1132,23 +1134,19 @@ func (c *CloudWatchLogs) DescribeLogStreamsRequest(input *DescribeLogStreamsInpu input = &DescribeLogStreamsInput{} } - req = c.newRequest(op, input, output) output = &DescribeLogStreamsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeLogStreams API operation for Amazon CloudWatch Logs. // -// Returns all the log streams that are associated with the specified log group. -// The list returned in the response is ASCII-sorted by log stream name. +// Lists the log streams for the specified log group. You can list all the log +// streams or filter the results by prefix. You can also control how the results +// are ordered. // -// By default, this operation returns up to 50 log streams. If there are more -// log streams to list, the response would contain a nextToken value in the -// response body. You can also limit the number of log streams returned in the -// response by specifying the limit parameter in the request. This operation -// has a limit of five transactions per second, after which transactions are -// throttled. +// This operation has a limit of five transactions per second, after which transactions +// are throttled. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1158,15 +1156,16 @@ func (c *CloudWatchLogs) DescribeLogStreamsRequest(input *DescribeLogStreamsInpu // API operation DescribeLogStreams for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ResourceNotFoundException -// Returned if the specified resource does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogStreams func (c *CloudWatchLogs) DescribeLogStreams(input *DescribeLogStreamsInput) (*DescribeLogStreamsOutput, error) { req, out := c.DescribeLogStreamsRequest(input) err := req.Send() @@ -1224,6 +1223,7 @@ const opDescribeMetricFilters = "DescribeMetricFilters" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeMetricFilters func (c *CloudWatchLogs) DescribeMetricFiltersRequest(input *DescribeMetricFiltersInput) (req *request.Request, output *DescribeMetricFiltersOutput) { op := &request.Operation{ Name: opDescribeMetricFilters, @@ -1241,21 +1241,16 @@ func (c *CloudWatchLogs) DescribeMetricFiltersRequest(input *DescribeMetricFilte input = &DescribeMetricFiltersInput{} } - req = c.newRequest(op, input, output) output = &DescribeMetricFiltersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeMetricFilters API operation for Amazon CloudWatch Logs. // -// Returns all the metrics filters associated with the specified log group. -// The list returned in the response is ASCII-sorted by filter name. -// -// By default, this operation returns up to 50 metric filters. If there are -// more metric filters to list, the response would contain a nextToken value -// in the response body. You can also limit the number of metric filters returned -// in the response by specifying the limit parameter in the request. +// Lists the specified metric filters. You can list all the metric filters or +// filter the results by log name, prefix, metric name, and metric namespace. +// The results are ASCII-sorted by filter name. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1265,15 +1260,16 @@ func (c *CloudWatchLogs) DescribeMetricFiltersRequest(input *DescribeMetricFilte // API operation DescribeMetricFilters for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ResourceNotFoundException -// Returned if the specified resource does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeMetricFilters func (c *CloudWatchLogs) DescribeMetricFilters(input *DescribeMetricFiltersInput) (*DescribeMetricFiltersOutput, error) { req, out := c.DescribeMetricFiltersRequest(input) err := req.Send() @@ -1331,6 +1327,7 @@ const opDescribeSubscriptionFilters = "DescribeSubscriptionFilters" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeSubscriptionFilters func (c *CloudWatchLogs) DescribeSubscriptionFiltersRequest(input *DescribeSubscriptionFiltersInput) (req *request.Request, output *DescribeSubscriptionFiltersOutput) { op := &request.Operation{ Name: opDescribeSubscriptionFilters, @@ -1348,22 +1345,16 @@ func (c *CloudWatchLogs) DescribeSubscriptionFiltersRequest(input *DescribeSubsc input = &DescribeSubscriptionFiltersInput{} } - req = c.newRequest(op, input, output) output = &DescribeSubscriptionFiltersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeSubscriptionFilters API operation for Amazon CloudWatch Logs. // -// Returns all the subscription filters associated with the specified log group. -// The list returned in the response is ASCII-sorted by filter name. -// -// By default, this operation returns up to 50 subscription filters. If there -// are more subscription filters to list, the response would contain a nextToken -// value in the response body. You can also limit the number of subscription -// filters returned in the response by specifying the limit parameter in the -// request. +// Lists the subscription filters for the specified log group. You can list +// all the subscription filters or filter the results by prefix. The results +// are ASCII-sorted by filter name. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1373,15 +1364,16 @@ func (c *CloudWatchLogs) DescribeSubscriptionFiltersRequest(input *DescribeSubsc // API operation DescribeSubscriptionFilters for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ResourceNotFoundException -// Returned if the specified resource does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeSubscriptionFilters func (c *CloudWatchLogs) DescribeSubscriptionFilters(input *DescribeSubscriptionFiltersInput) (*DescribeSubscriptionFiltersOutput, error) { req, out := c.DescribeSubscriptionFiltersRequest(input) err := req.Send() @@ -1439,6 +1431,7 @@ const opFilterLogEvents = "FilterLogEvents" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/FilterLogEvents func (c *CloudWatchLogs) FilterLogEventsRequest(input *FilterLogEventsInput) (req *request.Request, output *FilterLogEventsOutput) { op := &request.Operation{ Name: opFilterLogEvents, @@ -1456,28 +1449,22 @@ func (c *CloudWatchLogs) FilterLogEventsRequest(input *FilterLogEventsInput) (re input = &FilterLogEventsInput{} } - req = c.newRequest(op, input, output) output = &FilterLogEventsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // FilterLogEvents API operation for Amazon CloudWatch Logs. // -// Retrieves log events, optionally filtered by a filter pattern from the specified -// log group. You can provide an optional time range to filter the results on -// the event timestamp. You can limit the streams searched to an explicit list -// of logStreamNames. -// -// By default, this operation returns as much matching log events as can fit -// in a response size of 1MB, up to 10,000 log events, or all the events found -// within a time-bounded scan window. If the response includes a nextToken, -// then there is more data to search, and the search can be resumed with a new -// request providing the nextToken. The response will contain a list of searchedLogStreams -// that contains information about which streams were searched in the request -// and whether they have been searched completely or require further pagination. -// The limit parameter in the request can be used to specify the maximum number -// of events to return in a page. +// Lists log events from the specified log group. You can list all the log events +// or filter the results using a filter pattern, a time range, and the name +// of the log stream. +// +// By default, this operation returns as many log events as can fit in 1MB (up +// to 10,000 log events), or all the events found within the time range that +// you specify. If the results include a token, then there are more log events +// available, and you can get additional results by specifying the token in +// a subsequent call. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1487,15 +1474,16 @@ func (c *CloudWatchLogs) FilterLogEventsRequest(input *FilterLogEventsInput) (re // API operation FilterLogEvents for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ResourceNotFoundException -// Returned if the specified resource does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/FilterLogEvents func (c *CloudWatchLogs) FilterLogEvents(input *FilterLogEventsInput) (*FilterLogEventsOutput, error) { req, out := c.FilterLogEventsRequest(input) err := req.Send() @@ -1553,6 +1541,7 @@ const opGetLogEvents = "GetLogEvents" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogEvents func (c *CloudWatchLogs) GetLogEventsRequest(input *GetLogEventsInput) (req *request.Request, output *GetLogEventsOutput) { op := &request.Operation{ Name: opGetLogEvents, @@ -1570,24 +1559,20 @@ func (c *CloudWatchLogs) GetLogEventsRequest(input *GetLogEventsInput) (req *req input = &GetLogEventsInput{} } - req = c.newRequest(op, input, output) output = &GetLogEventsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // GetLogEvents API operation for Amazon CloudWatch Logs. // -// Retrieves log events from the specified log stream. You can provide an optional -// time range to filter the results on the event timestamp. +// Lists log events from the specified log stream. You can list all the log +// events or filter using a time range. // -// By default, this operation returns as much log events as can fit in a response -// size of 1MB, up to 10,000 log events. The response will always include a -// nextForwardToken and a nextBackwardToken in the response body. You can use -// any of these tokens in subsequent GetLogEvents requests to paginate through -// events in either forward or backward direction. You can also limit the number -// of log events returned in the response by specifying the limit parameter -// in the request. +// By default, this operation returns as many log events as can fit in a response +// size of 1MB (up to 10,000 log events). If the results include tokens, there +// are more log events available. You can get additional log events by specifying +// one of the tokens in a subsequent call. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1597,15 +1582,16 @@ func (c *CloudWatchLogs) GetLogEventsRequest(input *GetLogEventsInput) (req *req // API operation GetLogEvents for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ResourceNotFoundException -// Returned if the specified resource does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogEvents func (c *CloudWatchLogs) GetLogEvents(input *GetLogEventsInput) (*GetLogEventsOutput, error) { req, out := c.GetLogEventsRequest(input) err := req.Send() @@ -1637,6 +1623,76 @@ func (c *CloudWatchLogs) GetLogEventsPages(input *GetLogEventsInput, fn func(p * }) } +const opListTagsLogGroup = "ListTagsLogGroup" + +// ListTagsLogGroupRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsLogGroup operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListTagsLogGroup for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListTagsLogGroup method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListTagsLogGroupRequest method. +// req, resp := client.ListTagsLogGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsLogGroup +func (c *CloudWatchLogs) ListTagsLogGroupRequest(input *ListTagsLogGroupInput) (req *request.Request, output *ListTagsLogGroupOutput) { + op := &request.Operation{ + Name: opListTagsLogGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListTagsLogGroupInput{} + } + + output = &ListTagsLogGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagsLogGroup API operation for Amazon CloudWatch Logs. +// +// Lists the tags for the specified log group. +// +// To add tags, use TagLogGroup. To remove tags, use UntagLogGroup. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation ListTagsLogGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsLogGroup +func (c *CloudWatchLogs) ListTagsLogGroup(input *ListTagsLogGroupInput) (*ListTagsLogGroupOutput, error) { + req, out := c.ListTagsLogGroupRequest(input) + err := req.Send() + return out, err +} + const opPutDestination = "PutDestination" // PutDestinationRequest generates a "aws/request.Request" representing the @@ -1663,6 +1719,7 @@ const opPutDestination = "PutDestination" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestination func (c *CloudWatchLogs) PutDestinationRequest(input *PutDestinationInput) (req *request.Request, output *PutDestinationOutput) { op := &request.Operation{ Name: opPutDestination, @@ -1674,25 +1731,24 @@ func (c *CloudWatchLogs) PutDestinationRequest(input *PutDestinationInput) (req input = &PutDestinationInput{} } - req = c.newRequest(op, input, output) output = &PutDestinationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // PutDestination API operation for Amazon CloudWatch Logs. // -// Creates or updates a Destination. A destination encapsulates a physical resource -// (such as a Kinesis stream) and allows you to subscribe to a real-time stream -// of log events of a different account, ingested through PutLogEvents requests. -// Currently, the only supported physical resource is a Amazon Kinesis stream -// belonging to the same account as the destination. +// Creates or updates a destination. A destination encapsulates a physical resource +// (such as a Kinesis stream) and enables you to subscribe to a real-time stream +// of log events of a different account, ingested using PutLogEvents. Currently, +// the only supported physical resource is a Amazon Kinesis stream belonging +// to the same account as the destination. // // A destination controls what is written to its Amazon Kinesis stream through // an access policy. By default, PutDestination does not set any access policy -// with the destination, which means a cross-account user will not be able to -// call PutSubscriptionFilter against this destination. To enable that, the -// destination owner must call PutDestinationPolicy after PutDestination. +// with the destination, which means a cross-account user cannot call PutSubscriptionFilter +// against this destination. To enable this, the destination owner must call +// PutDestinationPolicy after PutDestination. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1702,15 +1758,16 @@ func (c *CloudWatchLogs) PutDestinationRequest(input *PutDestinationInput) (req // API operation PutDestination for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// * ErrCodeOperationAbortedException "OperationAbortedException" +// Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestination func (c *CloudWatchLogs) PutDestination(input *PutDestinationInput) (*PutDestinationOutput, error) { req, out := c.PutDestinationRequest(input) err := req.Send() @@ -1743,6 +1800,7 @@ const opPutDestinationPolicy = "PutDestinationPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestinationPolicy func (c *CloudWatchLogs) PutDestinationPolicyRequest(input *PutDestinationPolicyInput) (req *request.Request, output *PutDestinationPolicyOutput) { op := &request.Operation{ Name: opPutDestinationPolicy, @@ -1754,17 +1812,16 @@ func (c *CloudWatchLogs) PutDestinationPolicyRequest(input *PutDestinationPolicy input = &PutDestinationPolicyInput{} } + output = &PutDestinationPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutDestinationPolicyOutput{} - req.Data = output return } // PutDestinationPolicy API operation for Amazon CloudWatch Logs. // -// Creates or updates an access policy associated with an existing Destination. +// Creates or updates an access policy associated with an existing destination. // An access policy is an IAM policy document (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html) // that is used to authorize claims to register a subscription filter against // a given destination. @@ -1777,15 +1834,16 @@ func (c *CloudWatchLogs) PutDestinationPolicyRequest(input *PutDestinationPolicy // API operation PutDestinationPolicy for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// * ErrCodeOperationAbortedException "OperationAbortedException" +// Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestinationPolicy func (c *CloudWatchLogs) PutDestinationPolicy(input *PutDestinationPolicyInput) (*PutDestinationPolicyOutput, error) { req, out := c.PutDestinationPolicyRequest(input) err := req.Send() @@ -1818,6 +1876,7 @@ const opPutLogEvents = "PutLogEvents" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEvents func (c *CloudWatchLogs) PutLogEventsRequest(input *PutLogEventsInput) (req *request.Request, output *PutLogEventsOutput) { op := &request.Operation{ Name: opPutLogEvents, @@ -1829,9 +1888,8 @@ func (c *CloudWatchLogs) PutLogEventsRequest(input *PutLogEventsInput) (req *req input = &PutLogEventsInput{} } - req = c.newRequest(op, input, output) output = &PutLogEventsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1839,28 +1897,30 @@ func (c *CloudWatchLogs) PutLogEventsRequest(input *PutLogEventsInput) (req *req // // Uploads a batch of log events to the specified log stream. // -// Every PutLogEvents request must include the sequenceToken obtained from -// the response of the previous request. An upload in a newly created log stream -// does not require a sequenceToken. You can also get the sequenceToken using -// DescribeLogStreams. +// You must include the sequence token obtained from the response of the previous +// call. An upload in a newly created log stream does not require a sequence +// token. You can also get the sequence token using DescribeLogStreams. // // The batch of events must satisfy the following constraints: // -// The maximum batch size is 1,048,576 bytes, and this size is calculated -// as the sum of all event messages in UTF-8, plus 26 bytes for each log event. +// * The maximum batch size is 1,048,576 bytes, and this size is calculated +// as the sum of all event messages in UTF-8, plus 26 bytes for each log +// event. // -// None of the log events in the batch can be more than 2 hours in the future. +// * None of the log events in the batch can be more than 2 hours in the +// future. // -// None of the log events in the batch can be older than 14 days or the retention -// period of the log group. +// * None of the log events in the batch can be older than 14 days or the +// retention period of the log group. // -// The log events in the batch must be in chronological ordered by their -// timestamp. +// * The log events in the batch must be in chronological ordered by their +// timestamp (the time the event occurred, expressed as the number of milliseconds +// since Jan 1, 1970 00:00:00 UTC). // -// The maximum number of log events in a batch is 10,000. +// * The maximum number of log events in a batch is 10,000. // -// A batch of log events in a single PutLogEvents request cannot span more -// than 24 hours. Otherwise, the PutLogEvents operation will fail. +// * A batch of log events in a single request cannot span more than 24 hours. +// Otherwise, the operation fails. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1870,21 +1930,22 @@ func (c *CloudWatchLogs) PutLogEventsRequest(input *PutLogEventsInput) (req *req // API operation PutLogEvents for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * InvalidSequenceTokenException - +// * ErrCodeInvalidSequenceTokenException "InvalidSequenceTokenException" +// The sequence token is not valid. // -// * DataAlreadyAcceptedException - +// * ErrCodeDataAlreadyAcceptedException "DataAlreadyAcceptedException" +// The event was already logged. // -// * ResourceNotFoundException -// Returned if the specified resource does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEvents func (c *CloudWatchLogs) PutLogEvents(input *PutLogEventsInput) (*PutLogEventsOutput, error) { req, out := c.PutLogEventsRequest(input) err := req.Send() @@ -1917,6 +1978,7 @@ const opPutMetricFilter = "PutMetricFilter" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutMetricFilter func (c *CloudWatchLogs) PutMetricFilterRequest(input *PutMetricFilterInput) (req *request.Request, output *PutMetricFilterOutput) { op := &request.Operation{ Name: opPutMetricFilter, @@ -1928,11 +1990,10 @@ func (c *CloudWatchLogs) PutMetricFilterRequest(input *PutMetricFilterInput) (re input = &PutMetricFilterInput{} } + output = &PutMetricFilterOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutMetricFilterOutput{} - req.Data = output return } @@ -1940,7 +2001,7 @@ func (c *CloudWatchLogs) PutMetricFilterRequest(input *PutMetricFilterInput) (re // // Creates or updates a metric filter and associates it with the specified log // group. Metric filters allow you to configure rules to extract metric data -// from log events ingested through PutLogEvents requests. +// from log events ingested through PutLogEvents. // // The maximum number of metric filters that can be associated with a log group // is 100. @@ -1953,22 +2014,22 @@ func (c *CloudWatchLogs) PutMetricFilterRequest(input *PutMetricFilterInput) (re // API operation PutMetricFilter for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ResourceNotFoundException -// Returned if the specified resource does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. // -// * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// * ErrCodeOperationAbortedException "OperationAbortedException" +// Multiple requests to update the same resource were in conflict. // -// * LimitExceededException -// Returned if you have reached the maximum number of resources that can be -// created. +// * ErrCodeLimitExceededException "LimitExceededException" +// You have reached the maximum number of resources that can be created. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutMetricFilter func (c *CloudWatchLogs) PutMetricFilter(input *PutMetricFilterInput) (*PutMetricFilterOutput, error) { req, out := c.PutMetricFilterRequest(input) err := req.Send() @@ -2001,6 +2062,7 @@ const opPutRetentionPolicy = "PutRetentionPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutRetentionPolicy func (c *CloudWatchLogs) PutRetentionPolicyRequest(input *PutRetentionPolicyInput) (req *request.Request, output *PutRetentionPolicyOutput) { op := &request.Operation{ Name: opPutRetentionPolicy, @@ -2012,11 +2074,10 @@ func (c *CloudWatchLogs) PutRetentionPolicyRequest(input *PutRetentionPolicyInpu input = &PutRetentionPolicyInput{} } + output = &PutRetentionPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutRetentionPolicyOutput{} - req.Data = output return } @@ -2034,18 +2095,19 @@ func (c *CloudWatchLogs) PutRetentionPolicyRequest(input *PutRetentionPolicyInpu // API operation PutRetentionPolicy for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ResourceNotFoundException -// Returned if the specified resource does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. // -// * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// * ErrCodeOperationAbortedException "OperationAbortedException" +// Multiple requests to update the same resource were in conflict. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutRetentionPolicy func (c *CloudWatchLogs) PutRetentionPolicy(input *PutRetentionPolicyInput) (*PutRetentionPolicyOutput, error) { req, out := c.PutRetentionPolicyRequest(input) err := req.Send() @@ -2078,6 +2140,7 @@ const opPutSubscriptionFilter = "PutSubscriptionFilter" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutSubscriptionFilter func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilterInput) (req *request.Request, output *PutSubscriptionFilterOutput) { op := &request.Operation{ Name: opPutSubscriptionFilter, @@ -2089,11 +2152,10 @@ func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilt input = &PutSubscriptionFilterInput{} } + output = &PutSubscriptionFilterOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutSubscriptionFilterOutput{} - req.Data = output return } @@ -2101,23 +2163,22 @@ func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilt // // Creates or updates a subscription filter and associates it with the specified // log group. Subscription filters allow you to subscribe to a real-time stream -// of log events ingested through PutLogEvents requests and have them delivered -// to a specific destination. Currently, the supported destinations are: +// of log events ingested through PutLogEvents and have them delivered to a +// specific destination. Currently, the supported destinations are: // -// An Amazon Kinesis stream belonging to the same account as the subscription -// filter, for same-account delivery. +// * An Amazon Kinesis stream belonging to the same account as the subscription +// filter, for same-account delivery. // -// A logical destination (used via an ARN of Destination) belonging to a -// different account, for cross-account delivery. +// * A logical destination that belongs to a different account, for cross-account +// delivery. // -// An Amazon Kinesis Firehose stream belonging to the same account as the -// subscription filter, for same-account delivery. +// * An Amazon Kinesis Firehose stream that belongs to the same account as +// the subscription filter, for same-account delivery. // -// An AWS Lambda function belonging to the same account as the subscription -// filter, for same-account delivery. +// * An AWS Lambda function that belongs to the same account as the subscription +// filter, for same-account delivery. // -// Currently there can only be one subscription filter associated with a -// log group. +// There can only be one subscription filter associated with a log group. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2127,28 +2188,105 @@ func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilt // API operation PutSubscriptionFilter for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ResourceNotFoundException -// Returned if the specified resource does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. // -// * OperationAbortedException -// Returned if multiple requests to update the same resource were in conflict. +// * ErrCodeOperationAbortedException "OperationAbortedException" +// Multiple requests to update the same resource were in conflict. // -// * LimitExceededException -// Returned if you have reached the maximum number of resources that can be -// created. +// * ErrCodeLimitExceededException "LimitExceededException" +// You have reached the maximum number of resources that can be created. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutSubscriptionFilter func (c *CloudWatchLogs) PutSubscriptionFilter(input *PutSubscriptionFilterInput) (*PutSubscriptionFilterOutput, error) { req, out := c.PutSubscriptionFilterRequest(input) err := req.Send() return out, err } +const opTagLogGroup = "TagLogGroup" + +// TagLogGroupRequest generates a "aws/request.Request" representing the +// client's request for the TagLogGroup operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See TagLogGroup for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the TagLogGroup method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the TagLogGroupRequest method. +// req, resp := client.TagLogGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagLogGroup +func (c *CloudWatchLogs) TagLogGroupRequest(input *TagLogGroupInput) (req *request.Request, output *TagLogGroupOutput) { + op := &request.Operation{ + Name: opTagLogGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &TagLogGroupInput{} + } + + output = &TagLogGroupOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagLogGroup API operation for Amazon CloudWatch Logs. +// +// Adds or updates the specified tags for the specified log group. +// +// To list the tags for a log group, use ListTagsLogGroup. To remove tags, use +// UntagLogGroup. +// +// For more information about tags, see Tag Log Groups in Amazon CloudWatch +// Logs (http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/log-group-tagging.html) +// in the Amazon CloudWatch Logs User Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation TagLogGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagLogGroup +func (c *CloudWatchLogs) TagLogGroup(input *TagLogGroupInput) (*TagLogGroupOutput, error) { + req, out := c.TagLogGroupRequest(input) + err := req.Send() + return out, err +} + const opTestMetricFilter = "TestMetricFilter" // TestMetricFilterRequest generates a "aws/request.Request" representing the @@ -2175,6 +2313,7 @@ const opTestMetricFilter = "TestMetricFilter" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TestMetricFilter func (c *CloudWatchLogs) TestMetricFilterRequest(input *TestMetricFilterInput) (req *request.Request, output *TestMetricFilterOutput) { op := &request.Operation{ Name: opTestMetricFilter, @@ -2186,9 +2325,8 @@ func (c *CloudWatchLogs) TestMetricFilterRequest(input *TestMetricFilterInput) ( input = &TestMetricFilterInput{} } - req = c.newRequest(op, input, output) output = &TestMetricFilterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2206,22 +2344,94 @@ func (c *CloudWatchLogs) TestMetricFilterRequest(input *TestMetricFilterInput) ( // API operation TestMetricFilter for usage and error information. // // Returned Error Codes: -// * InvalidParameterException -// Returned if a parameter of the request is incorrectly specified. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. // -// * ServiceUnavailableException -// Returned if the service cannot complete the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TestMetricFilter func (c *CloudWatchLogs) TestMetricFilter(input *TestMetricFilterInput) (*TestMetricFilterOutput, error) { req, out := c.TestMetricFilterRequest(input) err := req.Send() return out, err } +const opUntagLogGroup = "UntagLogGroup" + +// UntagLogGroupRequest generates a "aws/request.Request" representing the +// client's request for the UntagLogGroup operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UntagLogGroup for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UntagLogGroup method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UntagLogGroupRequest method. +// req, resp := client.UntagLogGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagLogGroup +func (c *CloudWatchLogs) UntagLogGroupRequest(input *UntagLogGroupInput) (req *request.Request, output *UntagLogGroupOutput) { + op := &request.Operation{ + Name: opUntagLogGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UntagLogGroupInput{} + } + + output = &UntagLogGroupOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagLogGroup API operation for Amazon CloudWatch Logs. +// +// Removes the specified tags from the specified log group. +// +// To list the tags for a log group, use ListTagsLogGroup. To add tags, use +// UntagLogGroup. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation UntagLogGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagLogGroup +func (c *CloudWatchLogs) UntagLogGroup(input *UntagLogGroupInput) (*UntagLogGroupOutput, error) { + req, out := c.UntagLogGroupRequest(input) + err := req.Send() + return out, err +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CancelExportTaskRequest type CancelExportTaskInput struct { _ struct{} `type:"structure"` - // Id of the export task to cancel. + // The ID of the export task. // // TaskId is a required field TaskId *string `locationName:"taskId" min:"1" type:"string" required:"true"` @@ -2253,6 +2463,13 @@ func (s *CancelExportTaskInput) Validate() error { return nil } +// SetTaskId sets the TaskId field's value. +func (s *CancelExportTaskInput) SetTaskId(v string) *CancelExportTaskInput { + s.TaskId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CancelExportTaskOutput type CancelExportTaskOutput struct { _ struct{} `type:"structure"` } @@ -2267,42 +2484,42 @@ func (s CancelExportTaskOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateExportTaskRequest type CreateExportTaskInput struct { _ struct{} `type:"structure"` - // Name of Amazon S3 bucket to which the log data will be exported. - // - // Note: Only buckets in the same AWS region are supported. + // The name of S3 bucket for the exported log data. The bucket must be in the + // same AWS region. // // Destination is a required field Destination *string `locationName:"destination" min:"1" type:"string" required:"true"` - // Prefix that will be used as the start of Amazon S3 key for every object exported. - // If not specified, this defaults to 'exportedlogs'. + // The prefix used as the start of the key for every object exported. If you + // don't specify a value, the default is exportedlogs. DestinationPrefix *string `locationName:"destinationPrefix" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. It indicates the start time of the range for the request. Events - // with a timestamp prior to this time will not be exported. + // The start time of the range for the request, expressed as the number of milliseconds + // since Jan 1, 1970 00:00:00 UTC. Events with a timestamp earlier than this + // time are not exported. // // From is a required field From *int64 `locationName:"from" type:"long" required:"true"` - // The name of the log group to export. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` - // Will only export log streams that match the provided logStreamNamePrefix. - // If you don't specify a value, no prefix filter is applied. + // Export only log streams that match the provided prefix. If you don't specify + // a value, no prefix filter is applied. LogStreamNamePrefix *string `locationName:"logStreamNamePrefix" min:"1" type:"string"` // The name of the export task. TaskName *string `locationName:"taskName" min:"1" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. It indicates the end time of the range for the request. Events - // with a timestamp later than this time will not be exported. + // The end time of the range for the request, expressed as the number of milliseconds + // since Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time + // are not exported. // // To is a required field To *int64 `locationName:"to" type:"long" required:"true"` @@ -2352,10 +2569,53 @@ func (s *CreateExportTaskInput) Validate() error { return nil } +// SetDestination sets the Destination field's value. +func (s *CreateExportTaskInput) SetDestination(v string) *CreateExportTaskInput { + s.Destination = &v + return s +} + +// SetDestinationPrefix sets the DestinationPrefix field's value. +func (s *CreateExportTaskInput) SetDestinationPrefix(v string) *CreateExportTaskInput { + s.DestinationPrefix = &v + return s +} + +// SetFrom sets the From field's value. +func (s *CreateExportTaskInput) SetFrom(v int64) *CreateExportTaskInput { + s.From = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *CreateExportTaskInput) SetLogGroupName(v string) *CreateExportTaskInput { + s.LogGroupName = &v + return s +} + +// SetLogStreamNamePrefix sets the LogStreamNamePrefix field's value. +func (s *CreateExportTaskInput) SetLogStreamNamePrefix(v string) *CreateExportTaskInput { + s.LogStreamNamePrefix = &v + return s +} + +// SetTaskName sets the TaskName field's value. +func (s *CreateExportTaskInput) SetTaskName(v string) *CreateExportTaskInput { + s.TaskName = &v + return s +} + +// SetTo sets the To field's value. +func (s *CreateExportTaskInput) SetTo(v int64) *CreateExportTaskInput { + s.To = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateExportTaskResponse type CreateExportTaskOutput struct { _ struct{} `type:"structure"` - // Id of the export task that got created. + // The ID of the export task. TaskId *string `locationName:"taskId" min:"1" type:"string"` } @@ -2369,13 +2629,23 @@ func (s CreateExportTaskOutput) GoString() string { return s.String() } +// SetTaskId sets the TaskId field's value. +func (s *CreateExportTaskOutput) SetTaskId(v string) *CreateExportTaskOutput { + s.TaskId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogGroupRequest type CreateLogGroupInput struct { _ struct{} `type:"structure"` - // The name of the log group to create. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + + // The key-value pairs to use for the tags. + Tags map[string]*string `locationName:"tags" min:"1" type:"map"` } // String returns the string representation @@ -2397,6 +2667,9 @@ func (s *CreateLogGroupInput) Validate() error { if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2404,6 +2677,19 @@ func (s *CreateLogGroupInput) Validate() error { return nil } +// SetLogGroupName sets the LogGroupName field's value. +func (s *CreateLogGroupInput) SetLogGroupName(v string) *CreateLogGroupInput { + s.LogGroupName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateLogGroupInput) SetTags(v map[string]*string) *CreateLogGroupInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogGroupOutput type CreateLogGroupOutput struct { _ struct{} `type:"structure"` } @@ -2418,15 +2704,16 @@ func (s CreateLogGroupOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogStreamRequest type CreateLogStreamInput struct { _ struct{} `type:"structure"` - // The name of the log group under which the log stream is to be created. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` - // The name of the log stream to create. + // The name of the log stream. // // LogStreamName is a required field LogStreamName *string `locationName:"logStreamName" min:"1" type:"string" required:"true"` @@ -2464,6 +2751,19 @@ func (s *CreateLogStreamInput) Validate() error { return nil } +// SetLogGroupName sets the LogGroupName field's value. +func (s *CreateLogStreamInput) SetLogGroupName(v string) *CreateLogStreamInput { + s.LogGroupName = &v + return s +} + +// SetLogStreamName sets the LogStreamName field's value. +func (s *CreateLogStreamInput) SetLogStreamName(v string) *CreateLogStreamInput { + s.LogStreamName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogStreamOutput type CreateLogStreamOutput struct { _ struct{} `type:"structure"` } @@ -2478,10 +2778,11 @@ func (s CreateLogStreamOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDestinationRequest type DeleteDestinationInput struct { _ struct{} `type:"structure"` - // The name of destination to delete. + // The name of the destination. // // DestinationName is a required field DestinationName *string `locationName:"destinationName" min:"1" type:"string" required:"true"` @@ -2513,6 +2814,13 @@ func (s *DeleteDestinationInput) Validate() error { return nil } +// SetDestinationName sets the DestinationName field's value. +func (s *DeleteDestinationInput) SetDestinationName(v string) *DeleteDestinationInput { + s.DestinationName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDestinationOutput type DeleteDestinationOutput struct { _ struct{} `type:"structure"` } @@ -2527,10 +2835,11 @@ func (s DeleteDestinationOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogGroupRequest type DeleteLogGroupInput struct { _ struct{} `type:"structure"` - // The name of the log group to delete. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` @@ -2562,6 +2871,13 @@ func (s *DeleteLogGroupInput) Validate() error { return nil } +// SetLogGroupName sets the LogGroupName field's value. +func (s *DeleteLogGroupInput) SetLogGroupName(v string) *DeleteLogGroupInput { + s.LogGroupName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogGroupOutput type DeleteLogGroupOutput struct { _ struct{} `type:"structure"` } @@ -2576,15 +2892,16 @@ func (s DeleteLogGroupOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogStreamRequest type DeleteLogStreamInput struct { _ struct{} `type:"structure"` - // The name of the log group under which the log stream to delete belongs. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` - // The name of the log stream to delete. + // The name of the log stream. // // LogStreamName is a required field LogStreamName *string `locationName:"logStreamName" min:"1" type:"string" required:"true"` @@ -2622,6 +2939,19 @@ func (s *DeleteLogStreamInput) Validate() error { return nil } +// SetLogGroupName sets the LogGroupName field's value. +func (s *DeleteLogStreamInput) SetLogGroupName(v string) *DeleteLogStreamInput { + s.LogGroupName = &v + return s +} + +// SetLogStreamName sets the LogStreamName field's value. +func (s *DeleteLogStreamInput) SetLogStreamName(v string) *DeleteLogStreamInput { + s.LogStreamName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogStreamOutput type DeleteLogStreamOutput struct { _ struct{} `type:"structure"` } @@ -2636,15 +2966,16 @@ func (s DeleteLogStreamOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteMetricFilterRequest type DeleteMetricFilterInput struct { _ struct{} `type:"structure"` - // The name of the metric filter to delete. + // The name of the metric filter. // // FilterName is a required field FilterName *string `locationName:"filterName" min:"1" type:"string" required:"true"` - // The name of the log group that is associated with the metric filter to delete. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` @@ -2682,6 +3013,19 @@ func (s *DeleteMetricFilterInput) Validate() error { return nil } +// SetFilterName sets the FilterName field's value. +func (s *DeleteMetricFilterInput) SetFilterName(v string) *DeleteMetricFilterInput { + s.FilterName = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *DeleteMetricFilterInput) SetLogGroupName(v string) *DeleteMetricFilterInput { + s.LogGroupName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteMetricFilterOutput type DeleteMetricFilterOutput struct { _ struct{} `type:"structure"` } @@ -2696,11 +3040,11 @@ func (s DeleteMetricFilterOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteRetentionPolicyRequest type DeleteRetentionPolicyInput struct { _ struct{} `type:"structure"` - // The name of the log group that is associated with the retention policy to - // delete. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` @@ -2732,7 +3076,14 @@ func (s *DeleteRetentionPolicyInput) Validate() error { return nil } -type DeleteRetentionPolicyOutput struct { +// SetLogGroupName sets the LogGroupName field's value. +func (s *DeleteRetentionPolicyInput) SetLogGroupName(v string) *DeleteRetentionPolicyInput { + s.LogGroupName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteRetentionPolicyOutput +type DeleteRetentionPolicyOutput struct { _ struct{} `type:"structure"` } @@ -2746,16 +3097,16 @@ func (s DeleteRetentionPolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteSubscriptionFilterRequest type DeleteSubscriptionFilterInput struct { _ struct{} `type:"structure"` - // The name of the subscription filter to delete. + // The name of the subscription filter. // // FilterName is a required field FilterName *string `locationName:"filterName" min:"1" type:"string" required:"true"` - // The name of the log group that is associated with the subscription filter - // to delete. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` @@ -2793,6 +3144,19 @@ func (s *DeleteSubscriptionFilterInput) Validate() error { return nil } +// SetFilterName sets the FilterName field's value. +func (s *DeleteSubscriptionFilterInput) SetFilterName(v string) *DeleteSubscriptionFilterInput { + s.FilterName = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *DeleteSubscriptionFilterInput) SetLogGroupName(v string) *DeleteSubscriptionFilterInput { + s.LogGroupName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteSubscriptionFilterOutput type DeleteSubscriptionFilterOutput struct { _ struct{} `type:"structure"` } @@ -2807,19 +3171,19 @@ func (s DeleteSubscriptionFilterOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDestinationsRequest type DescribeDestinationsInput struct { _ struct{} `type:"structure"` - // Will only return destinations that match the provided destinationNamePrefix. - // If you don't specify a value, no prefix is applied. + // The prefix to match. If you don't specify a value, no prefix filter is applied. DestinationNamePrefix *string `min:"1" type:"string"` - // The maximum number of results to return. + // The maximum number of items returned. If you don't specify a value, the default + // is up to 50 items. Limit *int64 `locationName:"limit" min:"1" type:"integer"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. + // The token for the next set of items to return. (You received this token from + // a previous call.) NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -2852,14 +3216,33 @@ func (s *DescribeDestinationsInput) Validate() error { return nil } +// SetDestinationNamePrefix sets the DestinationNamePrefix field's value. +func (s *DescribeDestinationsInput) SetDestinationNamePrefix(v string) *DescribeDestinationsInput { + s.DestinationNamePrefix = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeDestinationsInput) SetLimit(v int64) *DescribeDestinationsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeDestinationsInput) SetNextToken(v string) *DescribeDestinationsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDestinationsResponse type DescribeDestinationsOutput struct { _ struct{} `type:"structure"` + // The destinations. Destinations []*Destination `locationName:"destinations" type:"list"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. + // The token for the next set of items to return. The token expires after 24 + // hours. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -2873,24 +3256,36 @@ func (s DescribeDestinationsOutput) GoString() string { return s.String() } +// SetDestinations sets the Destinations field's value. +func (s *DescribeDestinationsOutput) SetDestinations(v []*Destination) *DescribeDestinationsOutput { + s.Destinations = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeDestinationsOutput) SetNextToken(v string) *DescribeDestinationsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeExportTasksRequest type DescribeExportTasksInput struct { _ struct{} `type:"structure"` - // The maximum number of items returned in the response. If you don't specify - // a value, the request would return up to 50 items. + // The maximum number of items returned. If you don't specify a value, the default + // is up to 50 items. Limit *int64 `locationName:"limit" min:"1" type:"integer"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous DescribeExportTasks - // request. + // The token for the next set of items to return. (You received this token from + // a previous call.) NextToken *string `locationName:"nextToken" min:"1" type:"string"` - // All export tasks that matches the specified status code will be returned. - // This can return zero or more export tasks. + // The status code of the export task. Specifying a status code filters the + // results to zero or more export tasks. StatusCode *string `locationName:"statusCode" type:"string" enum:"ExportTaskStatusCode"` - // Export task that matches the specified task Id will be returned. This can - // result in zero or one export task. + // The ID of the export task. Specifying a task ID filters the results to zero + // or one export tasks. TaskId *string `locationName:"taskId" min:"1" type:"string"` } @@ -2923,15 +3318,39 @@ func (s *DescribeExportTasksInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *DescribeExportTasksInput) SetLimit(v int64) *DescribeExportTasksInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeExportTasksInput) SetNextToken(v string) *DescribeExportTasksInput { + s.NextToken = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *DescribeExportTasksInput) SetStatusCode(v string) *DescribeExportTasksInput { + s.StatusCode = &v + return s +} + +// SetTaskId sets the TaskId field's value. +func (s *DescribeExportTasksInput) SetTaskId(v string) *DescribeExportTasksInput { + s.TaskId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeExportTasksResponse type DescribeExportTasksOutput struct { _ struct{} `type:"structure"` - // A list of export tasks. + // The export tasks. ExportTasks []*ExportTask `locationName:"exportTasks" type:"list"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. + // The token for the next set of items to return. The token expires after 24 + // hours. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -2945,20 +3364,31 @@ func (s DescribeExportTasksOutput) GoString() string { return s.String() } +// SetExportTasks sets the ExportTasks field's value. +func (s *DescribeExportTasksOutput) SetExportTasks(v []*ExportTask) *DescribeExportTasksOutput { + s.ExportTasks = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeExportTasksOutput) SetNextToken(v string) *DescribeExportTasksOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogGroupsRequest type DescribeLogGroupsInput struct { _ struct{} `type:"structure"` - // The maximum number of items returned in the response. If you don't specify - // a value, the request would return up to 50 items. + // The maximum number of items returned. If you don't specify a value, the default + // is up to 50 items. Limit *int64 `locationName:"limit" min:"1" type:"integer"` - // Will only return log groups that match the provided logGroupNamePrefix. If - // you don't specify a value, no prefix filter is applied. + // The prefix to match. LogGroupNamePrefix *string `locationName:"logGroupNamePrefix" min:"1" type:"string"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous DescribeLogGroups - // request. + // The token for the next set of items to return. (You received this token from + // a previous call.) NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -2991,15 +3421,33 @@ func (s *DescribeLogGroupsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *DescribeLogGroupsInput) SetLimit(v int64) *DescribeLogGroupsInput { + s.Limit = &v + return s +} + +// SetLogGroupNamePrefix sets the LogGroupNamePrefix field's value. +func (s *DescribeLogGroupsInput) SetLogGroupNamePrefix(v string) *DescribeLogGroupsInput { + s.LogGroupNamePrefix = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLogGroupsInput) SetNextToken(v string) *DescribeLogGroupsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogGroupsResponse type DescribeLogGroupsOutput struct { _ struct{} `type:"structure"` - // A list of log groups. + // The log groups. LogGroups []*LogGroup `locationName:"logGroups" type:"list"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. + // The token for the next set of items to return. The token expires after 24 + // hours. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -3013,35 +3461,51 @@ func (s DescribeLogGroupsOutput) GoString() string { return s.String() } +// SetLogGroups sets the LogGroups field's value. +func (s *DescribeLogGroupsOutput) SetLogGroups(v []*LogGroup) *DescribeLogGroupsOutput { + s.LogGroups = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLogGroupsOutput) SetNextToken(v string) *DescribeLogGroupsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogStreamsRequest type DescribeLogStreamsInput struct { _ struct{} `type:"structure"` - // If set to true, results are returned in descending order. If you don't specify - // a value or set it to false, results are returned in ascending order. + // If the value is true, results are returned in descending order. If the value + // is to false, results are returned in ascending order. The default value is + // false. Descending *bool `locationName:"descending" type:"boolean"` - // The maximum number of items returned in the response. If you don't specify - // a value, the request would return up to 50 items. + // The maximum number of items returned. If you don't specify a value, the default + // is up to 50 items. Limit *int64 `locationName:"limit" min:"1" type:"integer"` - // The log group name for which log streams are to be listed. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` - // Will only return log streams that match the provided logStreamNamePrefix. - // If you don't specify a value, no prefix filter is applied. + // The prefix to match. + // + // You cannot specify this parameter if orderBy is LastEventTime. LogStreamNamePrefix *string `locationName:"logStreamNamePrefix" min:"1" type:"string"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous DescribeLogStreams - // request. + // The token for the next set of items to return. (You received this token from + // a previous call.) NextToken *string `locationName:"nextToken" min:"1" type:"string"` - // Specifies what to order the returned log streams by. Valid arguments are - // 'LogStreamName' or 'LastEventTime'. If you don't specify a value, results - // are ordered by LogStreamName. If 'LastEventTime' is chosen, the request cannot - // also contain a logStreamNamePrefix. + // If the value is LogStreamName, the results are ordered by log stream name. + // If the value is LastEventTime, the results are ordered by the event time. + // The default value is LogStreamName. + // + // If you order the results by event time, you cannot specify the logStreamNamePrefix + // parameter. OrderBy *string `locationName:"orderBy" type:"string" enum:"OrderBy"` } @@ -3080,15 +3544,51 @@ func (s *DescribeLogStreamsInput) Validate() error { return nil } +// SetDescending sets the Descending field's value. +func (s *DescribeLogStreamsInput) SetDescending(v bool) *DescribeLogStreamsInput { + s.Descending = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeLogStreamsInput) SetLimit(v int64) *DescribeLogStreamsInput { + s.Limit = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *DescribeLogStreamsInput) SetLogGroupName(v string) *DescribeLogStreamsInput { + s.LogGroupName = &v + return s +} + +// SetLogStreamNamePrefix sets the LogStreamNamePrefix field's value. +func (s *DescribeLogStreamsInput) SetLogStreamNamePrefix(v string) *DescribeLogStreamsInput { + s.LogStreamNamePrefix = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLogStreamsInput) SetNextToken(v string) *DescribeLogStreamsInput { + s.NextToken = &v + return s +} + +// SetOrderBy sets the OrderBy field's value. +func (s *DescribeLogStreamsInput) SetOrderBy(v string) *DescribeLogStreamsInput { + s.OrderBy = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogStreamsResponse type DescribeLogStreamsOutput struct { _ struct{} `type:"structure"` - // A list of log streams. + // The log streams. LogStreams []*LogStream `locationName:"logStreams" type:"list"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. + // The token for the next set of items to return. The token expires after 24 + // hours. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -3102,25 +3602,40 @@ func (s DescribeLogStreamsOutput) GoString() string { return s.String() } +// SetLogStreams sets the LogStreams field's value. +func (s *DescribeLogStreamsOutput) SetLogStreams(v []*LogStream) *DescribeLogStreamsOutput { + s.LogStreams = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeLogStreamsOutput) SetNextToken(v string) *DescribeLogStreamsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeMetricFiltersRequest type DescribeMetricFiltersInput struct { _ struct{} `type:"structure"` - // Will only return metric filters that match the provided filterNamePrefix. - // If you don't specify a value, no prefix filter is applied. + // The prefix to match. FilterNamePrefix *string `locationName:"filterNamePrefix" min:"1" type:"string"` - // The maximum number of items returned in the response. If you don't specify - // a value, the request would return up to 50 items. + // The maximum number of items returned. If you don't specify a value, the default + // is up to 50 items. Limit *int64 `locationName:"limit" min:"1" type:"integer"` - // The log group name for which metric filters are to be listed. - // - // LogGroupName is a required field - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + // The name of the log group. + LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"` + + // The name of the CloudWatch metric. + MetricName *string `locationName:"metricName" type:"string"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous DescribeMetricFilters - // request. + // The namespace of the CloudWatch metric. + MetricNamespace *string `locationName:"metricNamespace" type:"string"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -3143,9 +3658,6 @@ func (s *DescribeMetricFiltersInput) Validate() error { if s.Limit != nil && *s.Limit < 1 { invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) } - if s.LogGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LogGroupName")) - } if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) } @@ -3159,14 +3671,51 @@ func (s *DescribeMetricFiltersInput) Validate() error { return nil } +// SetFilterNamePrefix sets the FilterNamePrefix field's value. +func (s *DescribeMetricFiltersInput) SetFilterNamePrefix(v string) *DescribeMetricFiltersInput { + s.FilterNamePrefix = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeMetricFiltersInput) SetLimit(v int64) *DescribeMetricFiltersInput { + s.Limit = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *DescribeMetricFiltersInput) SetLogGroupName(v string) *DescribeMetricFiltersInput { + s.LogGroupName = &v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *DescribeMetricFiltersInput) SetMetricName(v string) *DescribeMetricFiltersInput { + s.MetricName = &v + return s +} + +// SetMetricNamespace sets the MetricNamespace field's value. +func (s *DescribeMetricFiltersInput) SetMetricNamespace(v string) *DescribeMetricFiltersInput { + s.MetricNamespace = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMetricFiltersInput) SetNextToken(v string) *DescribeMetricFiltersInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeMetricFiltersResponse type DescribeMetricFiltersOutput struct { _ struct{} `type:"structure"` + // The metric filters. MetricFilters []*MetricFilter `locationName:"metricFilters" type:"list"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. + // The token for the next set of items to return. The token expires after 24 + // hours. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -3180,24 +3729,36 @@ func (s DescribeMetricFiltersOutput) GoString() string { return s.String() } +// SetMetricFilters sets the MetricFilters field's value. +func (s *DescribeMetricFiltersOutput) SetMetricFilters(v []*MetricFilter) *DescribeMetricFiltersOutput { + s.MetricFilters = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMetricFiltersOutput) SetNextToken(v string) *DescribeMetricFiltersOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeSubscriptionFiltersRequest type DescribeSubscriptionFiltersInput struct { _ struct{} `type:"structure"` - // Will only return subscription filters that match the provided filterNamePrefix. - // If you don't specify a value, no prefix filter is applied. + // The prefix to match. If you don't specify a value, no prefix filter is applied. FilterNamePrefix *string `locationName:"filterNamePrefix" min:"1" type:"string"` - // The maximum number of results to return. + // The maximum number of items returned. If you don't specify a value, the default + // is up to 50 items. Limit *int64 `locationName:"limit" min:"1" type:"integer"` - // The log group name for which subscription filters are to be listed. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. + // The token for the next set of items to return. (You received this token from + // a previous call.) NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -3236,14 +3797,39 @@ func (s *DescribeSubscriptionFiltersInput) Validate() error { return nil } +// SetFilterNamePrefix sets the FilterNamePrefix field's value. +func (s *DescribeSubscriptionFiltersInput) SetFilterNamePrefix(v string) *DescribeSubscriptionFiltersInput { + s.FilterNamePrefix = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeSubscriptionFiltersInput) SetLimit(v int64) *DescribeSubscriptionFiltersInput { + s.Limit = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *DescribeSubscriptionFiltersInput) SetLogGroupName(v string) *DescribeSubscriptionFiltersInput { + s.LogGroupName = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSubscriptionFiltersInput) SetNextToken(v string) *DescribeSubscriptionFiltersInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeSubscriptionFiltersResponse type DescribeSubscriptionFiltersOutput struct { _ struct{} `type:"structure"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. + // The token for the next set of items to return. The token expires after 24 + // hours. NextToken *string `locationName:"nextToken" min:"1" type:"string"` + // The subscription filters. SubscriptionFilters []*SubscriptionFilter `locationName:"subscriptionFilters" type:"list"` } @@ -3257,7 +3843,20 @@ func (s DescribeSubscriptionFiltersOutput) GoString() string { return s.String() } -// A cross account destination that is the recipient of subscription log events. +// SetNextToken sets the NextToken field's value. +func (s *DescribeSubscriptionFiltersOutput) SetNextToken(v string) *DescribeSubscriptionFiltersOutput { + s.NextToken = &v + return s +} + +// SetSubscriptionFilters sets the SubscriptionFilters field's value. +func (s *DescribeSubscriptionFiltersOutput) SetSubscriptionFilters(v []*SubscriptionFilter) *DescribeSubscriptionFiltersOutput { + s.SubscriptionFilters = v + return s +} + +// Represents a cross-account destination that receives subscription log events. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/Destination type Destination struct { _ struct{} `type:"structure"` @@ -3265,21 +3864,20 @@ type Destination struct { // filters against this destination. AccessPolicy *string `locationName:"accessPolicy" min:"1" type:"string"` - // ARN of this destination. + // The ARN of this destination. Arn *string `locationName:"arn" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC specifying when this destination was created. + // The creation time of the destination. CreationTime *int64 `locationName:"creationTime" type:"long"` - // Name of the destination. + // The name of the destination. DestinationName *string `locationName:"destinationName" min:"1" type:"string"` - // A role for impersonation for delivering log events to the target. + // A role for impersonation, used when delivering log events to the target. RoleArn *string `locationName:"roleArn" min:"1" type:"string"` - // ARN of the physical target where the log events will be delivered (eg. ARN - // of a Kinesis stream). + // The Amazon Resource Name (ARN) of the physical target where the log events + // will be delivered (for example, a Kinesis stream). TargetArn *string `locationName:"targetArn" min:"1" type:"string"` } @@ -3293,37 +3891,74 @@ func (s Destination) GoString() string { return s.String() } +// SetAccessPolicy sets the AccessPolicy field's value. +func (s *Destination) SetAccessPolicy(v string) *Destination { + s.AccessPolicy = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *Destination) SetArn(v string) *Destination { + s.Arn = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *Destination) SetCreationTime(v int64) *Destination { + s.CreationTime = &v + return s +} + +// SetDestinationName sets the DestinationName field's value. +func (s *Destination) SetDestinationName(v string) *Destination { + s.DestinationName = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *Destination) SetRoleArn(v string) *Destination { + s.RoleArn = &v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *Destination) SetTargetArn(v string) *Destination { + s.TargetArn = &v + return s +} + // Represents an export task. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ExportTask type ExportTask struct { _ struct{} `type:"structure"` - // Name of Amazon S3 bucket to which the log data was exported. + // The name of Amazon S3 bucket to which the log data was exported. Destination *string `locationName:"destination" min:"1" type:"string"` - // Prefix that was used as the start of Amazon S3 key for every object exported. + // The prefix that was used as the start of Amazon S3 key for every object exported. DestinationPrefix *string `locationName:"destinationPrefix" type:"string"` // Execution info about the export task. ExecutionInfo *ExportTaskExecutionInfo `locationName:"executionInfo" type:"structure"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 + // The start time, expressed as the number of milliseconds since Jan 1, 1970 // 00:00:00 UTC. Events with a timestamp prior to this time are not exported. From *int64 `locationName:"from" type:"long"` // The name of the log group from which logs data was exported. LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"` - // Status of the export task. + // The status of the export task. Status *ExportTaskStatus `locationName:"status" type:"structure"` - // Id of the export task. + // The ID of the export task. TaskId *string `locationName:"taskId" min:"1" type:"string"` // The name of the export task. TaskName *string `locationName:"taskName" min:"1" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. Events with a timestamp later than this time are not exported. + // The end time, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 + // UTC. Events with a timestamp later than this time are not exported. To *int64 `locationName:"to" type:"long"` } @@ -3337,14 +3972,69 @@ func (s ExportTask) GoString() string { return s.String() } +// SetDestination sets the Destination field's value. +func (s *ExportTask) SetDestination(v string) *ExportTask { + s.Destination = &v + return s +} + +// SetDestinationPrefix sets the DestinationPrefix field's value. +func (s *ExportTask) SetDestinationPrefix(v string) *ExportTask { + s.DestinationPrefix = &v + return s +} + +// SetExecutionInfo sets the ExecutionInfo field's value. +func (s *ExportTask) SetExecutionInfo(v *ExportTaskExecutionInfo) *ExportTask { + s.ExecutionInfo = v + return s +} + +// SetFrom sets the From field's value. +func (s *ExportTask) SetFrom(v int64) *ExportTask { + s.From = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *ExportTask) SetLogGroupName(v string) *ExportTask { + s.LogGroupName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ExportTask) SetStatus(v *ExportTaskStatus) *ExportTask { + s.Status = v + return s +} + +// SetTaskId sets the TaskId field's value. +func (s *ExportTask) SetTaskId(v string) *ExportTask { + s.TaskId = &v + return s +} + +// SetTaskName sets the TaskName field's value. +func (s *ExportTask) SetTaskName(v string) *ExportTask { + s.TaskName = &v + return s +} + +// SetTo sets the To field's value. +func (s *ExportTask) SetTo(v int64) *ExportTask { + s.To = &v + return s +} + // Represents the status of an export task. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ExportTaskExecutionInfo type ExportTaskExecutionInfo struct { _ struct{} `type:"structure"` - // A point in time when the export task got completed. + // The completion time of the export task. CompletionTime *int64 `locationName:"completionTime" type:"long"` - // A point in time when the export task got created. + // The creation time of the export task. CreationTime *int64 `locationName:"creationTime" type:"long"` } @@ -3358,14 +4048,27 @@ func (s ExportTaskExecutionInfo) GoString() string { return s.String() } +// SetCompletionTime sets the CompletionTime field's value. +func (s *ExportTaskExecutionInfo) SetCompletionTime(v int64) *ExportTaskExecutionInfo { + s.CompletionTime = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *ExportTaskExecutionInfo) SetCreationTime(v int64) *ExportTaskExecutionInfo { + s.CreationTime = &v + return s +} + // Represents the status of an export task. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ExportTaskStatus type ExportTaskStatus struct { _ struct{} `type:"structure"` - // Status code of the export task. + // The status code of the export task. Code *string `locationName:"code" type:"string" enum:"ExportTaskStatusCode"` - // Status message related to the code. + // The status message related to the status code. Message *string `locationName:"message" type:"string"` } @@ -3379,44 +4082,54 @@ func (s ExportTaskStatus) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *ExportTaskStatus) SetCode(v string) *ExportTaskStatus { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *ExportTaskStatus) SetMessage(v string) *ExportTaskStatus { + s.Message = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/FilterLogEventsRequest type FilterLogEventsInput struct { _ struct{} `type:"structure"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. If provided, events with a timestamp later than this time are + // The end of the time range, expressed as the number of milliseconds since + // Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are // not returned. EndTime *int64 `locationName:"endTime" type:"long"` - // A valid CloudWatch Logs filter pattern to use for filtering the response. - // If not provided, all the events are matched. + // The filter pattern to use. If not provided, all the events are matched. FilterPattern *string `locationName:"filterPattern" type:"string"` - // If provided, the API will make a best effort to provide responses that contain - // events from multiple log streams within the log group interleaved in a single - // response. If not provided, all the matched log events in the first log stream - // will be searched first, then those in the next log stream, etc. + // If the value is true, the operation makes a best effort to provide responses + // that contain events from multiple log streams within the log group interleaved + // in a single response. If the value is false all the matched log events in + // the first log stream are searched first, then those in the next log stream, + // and so on. The default is false. Interleaved *bool `locationName:"interleaved" type:"boolean"` - // The maximum number of events to return in a page of results. Default is 10,000 - // events. + // The maximum number of events to return. The default is 10,000 events. Limit *int64 `locationName:"limit" min:"1" type:"integer"` - // The name of the log group to query. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` - // Optional list of log stream names within the specified log group to search. - // Defaults to all the log streams in the log group. + // Optional list of log stream names. LogStreamNames []*string `locationName:"logStreamNames" min:"1" type:"list"` - // A pagination token obtained from a FilterLogEvents response to continue paginating - // the FilterLogEvents results. This token is omitted from the response when - // there are no other events to display. + // The token for the next set of events to return. (You received this token + // from a previous call.) NextToken *string `locationName:"nextToken" min:"1" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. If provided, events with a timestamp prior to this time are + // The start of the time range, expressed as the number of milliseconds since + // Jan 1, 1970 00:00:00 UTC. Events with a timestamp prior to this time are // not returned. StartTime *int64 `locationName:"startTime" type:"long"` } @@ -3456,21 +4169,67 @@ func (s *FilterLogEventsInput) Validate() error { return nil } +// SetEndTime sets the EndTime field's value. +func (s *FilterLogEventsInput) SetEndTime(v int64) *FilterLogEventsInput { + s.EndTime = &v + return s +} + +// SetFilterPattern sets the FilterPattern field's value. +func (s *FilterLogEventsInput) SetFilterPattern(v string) *FilterLogEventsInput { + s.FilterPattern = &v + return s +} + +// SetInterleaved sets the Interleaved field's value. +func (s *FilterLogEventsInput) SetInterleaved(v bool) *FilterLogEventsInput { + s.Interleaved = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *FilterLogEventsInput) SetLimit(v int64) *FilterLogEventsInput { + s.Limit = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *FilterLogEventsInput) SetLogGroupName(v string) *FilterLogEventsInput { + s.LogGroupName = &v + return s +} + +// SetLogStreamNames sets the LogStreamNames field's value. +func (s *FilterLogEventsInput) SetLogStreamNames(v []*string) *FilterLogEventsInput { + s.LogStreamNames = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *FilterLogEventsInput) SetNextToken(v string) *FilterLogEventsInput { + s.NextToken = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *FilterLogEventsInput) SetStartTime(v int64) *FilterLogEventsInput { + s.StartTime = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/FilterLogEventsResponse type FilterLogEventsOutput struct { _ struct{} `type:"structure"` - // A list of FilteredLogEvent objects representing the matched events from the - // request. + // The matched events. Events []*FilteredLogEvent `locationName:"events" type:"list"` - // A pagination token obtained from a FilterLogEvents response to continue paginating - // the FilterLogEvents results. This token is omitted from the response when - // there are no other events to display. + // The token to use when requesting the next set of items. The token expires + // after 24 hours. NextToken *string `locationName:"nextToken" min:"1" type:"string"` - // A list of SearchedLogStream objects indicating which log streams have been - // searched in this request and whether each has been searched completely or - // still has more to be paginated. + // Indicates which log streams have been searched and whether each has been + // searched completely. SearchedLogStreams []*SearchedLogStream `locationName:"searchedLogStreams" type:"list"` } @@ -3484,15 +4243,33 @@ func (s FilterLogEventsOutput) GoString() string { return s.String() } -// Represents a matched event from a FilterLogEvents request. +// SetEvents sets the Events field's value. +func (s *FilterLogEventsOutput) SetEvents(v []*FilteredLogEvent) *FilterLogEventsOutput { + s.Events = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *FilterLogEventsOutput) SetNextToken(v string) *FilterLogEventsOutput { + s.NextToken = &v + return s +} + +// SetSearchedLogStreams sets the SearchedLogStreams field's value. +func (s *FilterLogEventsOutput) SetSearchedLogStreams(v []*SearchedLogStream) *FilterLogEventsOutput { + s.SearchedLogStreams = v + return s +} + +// Represents a matched event. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/FilteredLogEvent type FilteredLogEvent struct { _ struct{} `type:"structure"` - // A unique identifier for this event. + // The ID of the event. EventId *string `locationName:"eventId" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The time the event was ingested. IngestionTime *int64 `locationName:"ingestionTime" type:"long"` // The name of the log stream this event belongs to. @@ -3501,8 +4278,8 @@ type FilteredLogEvent struct { // The data contained in the log event. Message *string `locationName:"message" min:"1" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The time the event occurred, expressed as the number of milliseconds since + // Jan 1, 1970 00:00:00 UTC. Timestamp *int64 `locationName:"timestamp" type:"long"` } @@ -3516,39 +4293,72 @@ func (s FilteredLogEvent) GoString() string { return s.String() } +// SetEventId sets the EventId field's value. +func (s *FilteredLogEvent) SetEventId(v string) *FilteredLogEvent { + s.EventId = &v + return s +} + +// SetIngestionTime sets the IngestionTime field's value. +func (s *FilteredLogEvent) SetIngestionTime(v int64) *FilteredLogEvent { + s.IngestionTime = &v + return s +} + +// SetLogStreamName sets the LogStreamName field's value. +func (s *FilteredLogEvent) SetLogStreamName(v string) *FilteredLogEvent { + s.LogStreamName = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *FilteredLogEvent) SetMessage(v string) *FilteredLogEvent { + s.Message = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *FilteredLogEvent) SetTimestamp(v int64) *FilteredLogEvent { + s.Timestamp = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogEventsRequest type GetLogEventsInput struct { _ struct{} `type:"structure"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The end of the time range, expressed as the number of milliseconds since + // Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are + // not included. EndTime *int64 `locationName:"endTime" type:"long"` - // The maximum number of log events returned in the response. If you don't specify - // a value, the request would return as many log events as can fit in a response - // size of 1MB, up to 10,000 log events. + // The maximum number of log events returned. If you don't specify a value, + // the maximum is as many log events as can fit in a response size of 1MB, up + // to 10,000 log events. Limit *int64 `locationName:"limit" min:"1" type:"integer"` - // The name of the log group to query. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` - // The name of the log stream to query. + // The name of the log stream. // // LogStreamName is a required field LogStreamName *string `locationName:"logStreamName" min:"1" type:"string" required:"true"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the nextForwardToken or nextBackwardToken - // fields in the response of the previous GetLogEvents request. + // The token for the next set of items to return. (You received this token from + // a previous call.) NextToken *string `locationName:"nextToken" min:"1" type:"string"` - // If set to true, the earliest log events would be returned first. The default - // is false (the latest log events are returned first). + // If the value is true, the earliest log events are returned first. If the + // value is false, the latest log events are returned first. The default value + // is false. StartFromHead *bool `locationName:"startFromHead" type:"boolean"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The start of the time range, expressed as the number of milliseconds since + // Jan 1, 1970 00:00:00 UTC. Events with a timestamp earlier than this time + // are not included. StartTime *int64 `locationName:"startTime" type:"long"` } @@ -3590,19 +4400,61 @@ func (s *GetLogEventsInput) Validate() error { return nil } +// SetEndTime sets the EndTime field's value. +func (s *GetLogEventsInput) SetEndTime(v int64) *GetLogEventsInput { + s.EndTime = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *GetLogEventsInput) SetLimit(v int64) *GetLogEventsInput { + s.Limit = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *GetLogEventsInput) SetLogGroupName(v string) *GetLogEventsInput { + s.LogGroupName = &v + return s +} + +// SetLogStreamName sets the LogStreamName field's value. +func (s *GetLogEventsInput) SetLogStreamName(v string) *GetLogEventsInput { + s.LogStreamName = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetLogEventsInput) SetNextToken(v string) *GetLogEventsInput { + s.NextToken = &v + return s +} + +// SetStartFromHead sets the StartFromHead field's value. +func (s *GetLogEventsInput) SetStartFromHead(v bool) *GetLogEventsInput { + s.StartFromHead = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *GetLogEventsInput) SetStartTime(v int64) *GetLogEventsInput { + s.StartTime = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogEventsResponse type GetLogEventsOutput struct { _ struct{} `type:"structure"` + // The events. Events []*OutputLogEvent `locationName:"events" type:"list"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. + // The token for the next set of items in the backward direction. The token + // expires after 24 hours. NextBackwardToken *string `locationName:"nextBackwardToken" min:"1" type:"string"` - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. + // The token for the next set of items in the forward direction. The token expires + // after 24 hours. NextForwardToken *string `locationName:"nextForwardToken" min:"1" type:"string"` } @@ -3616,18 +4468,37 @@ func (s GetLogEventsOutput) GoString() string { return s.String() } -// A log event is a record of some activity that was recorded by the application -// or resource being monitored. The log event record that CloudWatch Logs understands -// contains two properties: the timestamp of when the event occurred, and the -// raw event message. +// SetEvents sets the Events field's value. +func (s *GetLogEventsOutput) SetEvents(v []*OutputLogEvent) *GetLogEventsOutput { + s.Events = v + return s +} + +// SetNextBackwardToken sets the NextBackwardToken field's value. +func (s *GetLogEventsOutput) SetNextBackwardToken(v string) *GetLogEventsOutput { + s.NextBackwardToken = &v + return s +} + +// SetNextForwardToken sets the NextForwardToken field's value. +func (s *GetLogEventsOutput) SetNextForwardToken(v string) *GetLogEventsOutput { + s.NextForwardToken = &v + return s +} + +// Represents a log event, which is a record of activity that was recorded by +// the application or resource being monitored. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/InputLogEvent type InputLogEvent struct { _ struct{} `type:"structure"` + // The raw event message. + // // Message is a required field Message *string `locationName:"message" min:"1" type:"string" required:"true"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The time the event occurred, expressed as the number of milliseconds since + // Jan 1, 1970 00:00:00 UTC. // // Timestamp is a required field Timestamp *int64 `locationName:"timestamp" type:"long" required:"true"` @@ -3662,25 +4533,107 @@ func (s *InputLogEvent) Validate() error { return nil } +// SetMessage sets the Message field's value. +func (s *InputLogEvent) SetMessage(v string) *InputLogEvent { + s.Message = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *InputLogEvent) SetTimestamp(v int64) *InputLogEvent { + s.Timestamp = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsLogGroupRequest +type ListTagsLogGroupInput struct { + _ struct{} `type:"structure"` + + // The name of the log group. + // + // LogGroupName is a required field + LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListTagsLogGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsLogGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsLogGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsLogGroupInput"} + if s.LogGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("LogGroupName")) + } + if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *ListTagsLogGroupInput) SetLogGroupName(v string) *ListTagsLogGroupInput { + s.LogGroupName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsLogGroupResponse +type ListTagsLogGroupOutput struct { + _ struct{} `type:"structure"` + + // The tags. + Tags map[string]*string `locationName:"tags" min:"1" type:"map"` +} + +// String returns the string representation +func (s ListTagsLogGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsLogGroupOutput) GoString() string { + return s.String() +} + +// SetTags sets the Tags field's value. +func (s *ListTagsLogGroupOutput) SetTags(v map[string]*string) *ListTagsLogGroupOutput { + s.Tags = v + return s +} + +// Represents a log group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/LogGroup type LogGroup struct { _ struct{} `type:"structure"` + // The Amazon Resource Name (ARN) of the log group. Arn *string `locationName:"arn" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The creation time of the log group. CreationTime *int64 `locationName:"creationTime" type:"long"` + // The name of the log group. LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"` - // The number of metric filters associated with the log group. + // The number of metric filters. MetricFilterCount *int64 `locationName:"metricFilterCount" type:"integer"` - // Specifies the number of days you want to retain log events in the specified - // log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, - // 365, 400, 545, 731, 1827, 3653. + // The number of days to retain the log events in the specified log group. Possible + // values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, + // 1827, and 3653. RetentionInDays *int64 `locationName:"retentionInDays" type:"integer"` + // The number of bytes stored. StoredBytes *int64 `locationName:"storedBytes" type:"long"` } @@ -3694,35 +4647,72 @@ func (s LogGroup) GoString() string { return s.String() } -// A log stream is sequence of log events from a single emitter of logs. +// SetArn sets the Arn field's value. +func (s *LogGroup) SetArn(v string) *LogGroup { + s.Arn = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *LogGroup) SetCreationTime(v int64) *LogGroup { + s.CreationTime = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *LogGroup) SetLogGroupName(v string) *LogGroup { + s.LogGroupName = &v + return s +} + +// SetMetricFilterCount sets the MetricFilterCount field's value. +func (s *LogGroup) SetMetricFilterCount(v int64) *LogGroup { + s.MetricFilterCount = &v + return s +} + +// SetRetentionInDays sets the RetentionInDays field's value. +func (s *LogGroup) SetRetentionInDays(v int64) *LogGroup { + s.RetentionInDays = &v + return s +} + +// SetStoredBytes sets the StoredBytes field's value. +func (s *LogGroup) SetStoredBytes(v int64) *LogGroup { + s.StoredBytes = &v + return s +} + +// Represents a log stream, which is a sequence of log events from a single +// emitter of logs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/LogStream type LogStream struct { _ struct{} `type:"structure"` + // The Amazon Resource Name (ARN) of the log stream. Arn *string `locationName:"arn" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The creation time of the stream. CreationTime *int64 `locationName:"creationTime" type:"long"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The time of the first event, expressed as the number of milliseconds since + // Jan 1, 1970 00:00:00 UTC. FirstEventTimestamp *int64 `locationName:"firstEventTimestamp" type:"long"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The time of the last event, expressed as the number of milliseconds since + // Jan 1, 1970 00:00:00 UTC. LastEventTimestamp *int64 `locationName:"lastEventTimestamp" type:"long"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The ingestion time. LastIngestionTime *int64 `locationName:"lastIngestionTime" type:"long"` + // The name of the log stream. LogStreamName *string `locationName:"logStreamName" min:"1" type:"string"` + // The number of bytes stored. StoredBytes *int64 `locationName:"storedBytes" type:"long"` - // A string token used for making PutLogEvents requests. A sequenceToken can - // only be used once, and PutLogEvents requests must include the sequenceToken - // obtained from the response of the previous request. + // The sequence token. UploadSequenceToken *string `locationName:"uploadSequenceToken" min:"1" type:"string"` } @@ -3736,17 +4726,65 @@ func (s LogStream) GoString() string { return s.String() } -// Metric filters can be used to express how CloudWatch Logs would extract metric -// observations from ingested log events and transform them to metric data in -// a CloudWatch metric. +// SetArn sets the Arn field's value. +func (s *LogStream) SetArn(v string) *LogStream { + s.Arn = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *LogStream) SetCreationTime(v int64) *LogStream { + s.CreationTime = &v + return s +} + +// SetFirstEventTimestamp sets the FirstEventTimestamp field's value. +func (s *LogStream) SetFirstEventTimestamp(v int64) *LogStream { + s.FirstEventTimestamp = &v + return s +} + +// SetLastEventTimestamp sets the LastEventTimestamp field's value. +func (s *LogStream) SetLastEventTimestamp(v int64) *LogStream { + s.LastEventTimestamp = &v + return s +} + +// SetLastIngestionTime sets the LastIngestionTime field's value. +func (s *LogStream) SetLastIngestionTime(v int64) *LogStream { + s.LastIngestionTime = &v + return s +} + +// SetLogStreamName sets the LogStreamName field's value. +func (s *LogStream) SetLogStreamName(v string) *LogStream { + s.LogStreamName = &v + return s +} + +// SetStoredBytes sets the StoredBytes field's value. +func (s *LogStream) SetStoredBytes(v int64) *LogStream { + s.StoredBytes = &v + return s +} + +// SetUploadSequenceToken sets the UploadSequenceToken field's value. +func (s *LogStream) SetUploadSequenceToken(v string) *LogStream { + s.UploadSequenceToken = &v + return s +} + +// Metric filters express how CloudWatch Logs would extract metric observations +// from ingested log events and transform them into metric data in a CloudWatch +// metric. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/MetricFilter type MetricFilter struct { _ struct{} `type:"structure"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The creation time of the metric filter. CreationTime *int64 `locationName:"creationTime" type:"long"` - // A name for a metric or subscription filter. + // The name of the metric filter. FilterName *string `locationName:"filterName" min:"1" type:"string"` // A symbolic description of how CloudWatch Logs should interpret the data in @@ -3755,6 +4793,10 @@ type MetricFilter struct { // in the log event message. FilterPattern *string `locationName:"filterPattern" type:"string"` + // The name of the log group. + LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"` + + // The metric transformations. MetricTransformations []*MetricTransformation `locationName:"metricTransformations" min:"1" type:"list"` } @@ -3768,13 +4810,48 @@ func (s MetricFilter) GoString() string { return s.String() } +// SetCreationTime sets the CreationTime field's value. +func (s *MetricFilter) SetCreationTime(v int64) *MetricFilter { + s.CreationTime = &v + return s +} + +// SetFilterName sets the FilterName field's value. +func (s *MetricFilter) SetFilterName(v string) *MetricFilter { + s.FilterName = &v + return s +} + +// SetFilterPattern sets the FilterPattern field's value. +func (s *MetricFilter) SetFilterPattern(v string) *MetricFilter { + s.FilterPattern = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *MetricFilter) SetLogGroupName(v string) *MetricFilter { + s.LogGroupName = &v + return s +} + +// SetMetricTransformations sets the MetricTransformations field's value. +func (s *MetricFilter) SetMetricTransformations(v []*MetricTransformation) *MetricFilter { + s.MetricTransformations = v + return s +} + +// Represents a matched event. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/MetricFilterMatchRecord type MetricFilterMatchRecord struct { _ struct{} `type:"structure"` + // The raw event data. EventMessage *string `locationName:"eventMessage" min:"1" type:"string"` + // The event number. EventNumber *int64 `locationName:"eventNumber" type:"long"` + // The values extracted from the event data by the filter. ExtractedValues map[string]*string `locationName:"extractedValues" type:"map"` } @@ -3788,25 +4865,46 @@ func (s MetricFilterMatchRecord) GoString() string { return s.String() } +// SetEventMessage sets the EventMessage field's value. +func (s *MetricFilterMatchRecord) SetEventMessage(v string) *MetricFilterMatchRecord { + s.EventMessage = &v + return s +} + +// SetEventNumber sets the EventNumber field's value. +func (s *MetricFilterMatchRecord) SetEventNumber(v int64) *MetricFilterMatchRecord { + s.EventNumber = &v + return s +} + +// SetExtractedValues sets the ExtractedValues field's value. +func (s *MetricFilterMatchRecord) SetExtractedValues(v map[string]*string) *MetricFilterMatchRecord { + s.ExtractedValues = v + return s +} + +// Indicates how to transform ingested log events into metric data in a CloudWatch +// metric. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/MetricTransformation type MetricTransformation struct { _ struct{} `type:"structure"` - // (Optional) A default value to emit when a filter pattern does not match a - // log event. Can be null. + // (Optional) The value to emit when a filter pattern does not match a log event. + // This value can be null. DefaultValue *float64 `locationName:"defaultValue" type:"double"` - // Name of the metric. + // The name of the CloudWatch metric. // // MetricName is a required field MetricName *string `locationName:"metricName" type:"string" required:"true"` - // Namespace to which the metric belongs. + // The namespace of the CloudWatch metric. // // MetricNamespace is a required field MetricNamespace *string `locationName:"metricNamespace" type:"string" required:"true"` - // A string representing a value to publish to this metric when a filter pattern - // matches a log event. + // The value to publish to the CloudWatch metric when a filter pattern matches + // a log event. // // MetricValue is a required field MetricValue *string `locationName:"metricValue" type:"string" required:"true"` @@ -3841,17 +4939,43 @@ func (s *MetricTransformation) Validate() error { return nil } +// SetDefaultValue sets the DefaultValue field's value. +func (s *MetricTransformation) SetDefaultValue(v float64) *MetricTransformation { + s.DefaultValue = &v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *MetricTransformation) SetMetricName(v string) *MetricTransformation { + s.MetricName = &v + return s +} + +// SetMetricNamespace sets the MetricNamespace field's value. +func (s *MetricTransformation) SetMetricNamespace(v string) *MetricTransformation { + s.MetricNamespace = &v + return s +} + +// SetMetricValue sets the MetricValue field's value. +func (s *MetricTransformation) SetMetricValue(v string) *MetricTransformation { + s.MetricValue = &v + return s +} + +// Represents a log event. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/OutputLogEvent type OutputLogEvent struct { _ struct{} `type:"structure"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The time the event was ingested. IngestionTime *int64 `locationName:"ingestionTime" type:"long"` + // The data contained in the log event. Message *string `locationName:"message" min:"1" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The time the event occurred, expressed as the number of milliseconds since + // Jan 1, 1970 00:00:00 UTC. Timestamp *int64 `locationName:"timestamp" type:"long"` } @@ -3865,6 +4989,25 @@ func (s OutputLogEvent) GoString() string { return s.String() } +// SetIngestionTime sets the IngestionTime field's value. +func (s *OutputLogEvent) SetIngestionTime(v int64) *OutputLogEvent { + s.IngestionTime = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *OutputLogEvent) SetMessage(v string) *OutputLogEvent { + s.Message = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *OutputLogEvent) SetTimestamp(v int64) *OutputLogEvent { + s.Timestamp = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestinationRequest type PutDestinationInput struct { _ struct{} `type:"structure"` @@ -3873,8 +5016,8 @@ type PutDestinationInput struct { // DestinationName is a required field DestinationName *string `locationName:"destinationName" min:"1" type:"string" required:"true"` - // The ARN of an IAM role that grants CloudWatch Logs permissions to do Amazon - // Kinesis PutRecord requests on the destination stream. + // The ARN of an IAM role that grants CloudWatch Logs permissions to call Amazon + // Kinesis PutRecord on the destination stream. // // RoleArn is a required field RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` @@ -3923,10 +5066,29 @@ func (s *PutDestinationInput) Validate() error { return nil } +// SetDestinationName sets the DestinationName field's value. +func (s *PutDestinationInput) SetDestinationName(v string) *PutDestinationInput { + s.DestinationName = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *PutDestinationInput) SetRoleArn(v string) *PutDestinationInput { + s.RoleArn = &v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *PutDestinationInput) SetTargetArn(v string) *PutDestinationInput { + s.TargetArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestinationResponse type PutDestinationOutput struct { _ struct{} `type:"structure"` - // A cross account destination that is the recipient of subscription log events. + // The destination. Destination *Destination `locationName:"destination" type:"structure"` } @@ -3940,11 +5102,18 @@ func (s PutDestinationOutput) GoString() string { return s.String() } +// SetDestination sets the Destination field's value. +func (s *PutDestinationOutput) SetDestination(v *Destination) *PutDestinationOutput { + s.Destination = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestinationPolicyRequest type PutDestinationPolicyInput struct { _ struct{} `type:"structure"` // An IAM policy document that authorizes cross-account users to deliver their - // log events to associated destination. + // log events to the associated destination. // // AccessPolicy is a required field AccessPolicy *string `locationName:"accessPolicy" min:"1" type:"string" required:"true"` @@ -3987,6 +5156,19 @@ func (s *PutDestinationPolicyInput) Validate() error { return nil } +// SetAccessPolicy sets the AccessPolicy field's value. +func (s *PutDestinationPolicyInput) SetAccessPolicy(v string) *PutDestinationPolicyInput { + s.AccessPolicy = &v + return s +} + +// SetDestinationName sets the DestinationName field's value. +func (s *PutDestinationPolicyInput) SetDestinationName(v string) *PutDestinationPolicyInput { + s.DestinationName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestinationPolicyOutput type PutDestinationPolicyOutput struct { _ struct{} `type:"structure"` } @@ -4001,26 +5183,26 @@ func (s PutDestinationPolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEventsRequest type PutLogEventsInput struct { _ struct{} `type:"structure"` - // A list of log events belonging to a log stream. + // The log events. // // LogEvents is a required field LogEvents []*InputLogEvent `locationName:"logEvents" min:"1" type:"list" required:"true"` - // The name of the log group to put log events to. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` - // The name of the log stream to put log events to. + // The name of the log stream. // // LogStreamName is a required field LogStreamName *string `locationName:"logStreamName" min:"1" type:"string" required:"true"` - // A string token that must be obtained from the response of the previous PutLogEvents - // request. + // The sequence token. SequenceToken *string `locationName:"sequenceToken" min:"1" type:"string"` } @@ -4075,14 +5257,38 @@ func (s *PutLogEventsInput) Validate() error { return nil } +// SetLogEvents sets the LogEvents field's value. +func (s *PutLogEventsInput) SetLogEvents(v []*InputLogEvent) *PutLogEventsInput { + s.LogEvents = v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *PutLogEventsInput) SetLogGroupName(v string) *PutLogEventsInput { + s.LogGroupName = &v + return s +} + +// SetLogStreamName sets the LogStreamName field's value. +func (s *PutLogEventsInput) SetLogStreamName(v string) *PutLogEventsInput { + s.LogStreamName = &v + return s +} + +// SetSequenceToken sets the SequenceToken field's value. +func (s *PutLogEventsInput) SetSequenceToken(v string) *PutLogEventsInput { + s.SequenceToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEventsResponse type PutLogEventsOutput struct { _ struct{} `type:"structure"` - // A string token used for making PutLogEvents requests. A sequenceToken can - // only be used once, and PutLogEvents requests must include the sequenceToken - // obtained from the response of the previous request. + // The next sequence token. NextSequenceToken *string `locationName:"nextSequenceToken" min:"1" type:"string"` + // The rejected events. RejectedLogEventsInfo *RejectedLogEventsInfo `locationName:"rejectedLogEventsInfo" type:"structure"` } @@ -4096,6 +5302,19 @@ func (s PutLogEventsOutput) GoString() string { return s.String() } +// SetNextSequenceToken sets the NextSequenceToken field's value. +func (s *PutLogEventsOutput) SetNextSequenceToken(v string) *PutLogEventsOutput { + s.NextSequenceToken = &v + return s +} + +// SetRejectedLogEventsInfo sets the RejectedLogEventsInfo field's value. +func (s *PutLogEventsOutput) SetRejectedLogEventsInfo(v *RejectedLogEventsInfo) *PutLogEventsOutput { + s.RejectedLogEventsInfo = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutMetricFilterRequest type PutMetricFilterInput struct { _ struct{} `type:"structure"` @@ -4104,13 +5323,12 @@ type PutMetricFilterInput struct { // FilterName is a required field FilterName *string `locationName:"filterName" min:"1" type:"string" required:"true"` - // A valid CloudWatch Logs filter pattern for extracting metric data out of - // ingested log events. + // A filter pattern for extracting metric data out of ingested log events. // // FilterPattern is a required field FilterPattern *string `locationName:"filterPattern" type:"string" required:"true"` - // The name of the log group to associate the metric filter with. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` @@ -4172,6 +5390,31 @@ func (s *PutMetricFilterInput) Validate() error { return nil } +// SetFilterName sets the FilterName field's value. +func (s *PutMetricFilterInput) SetFilterName(v string) *PutMetricFilterInput { + s.FilterName = &v + return s +} + +// SetFilterPattern sets the FilterPattern field's value. +func (s *PutMetricFilterInput) SetFilterPattern(v string) *PutMetricFilterInput { + s.FilterPattern = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *PutMetricFilterInput) SetLogGroupName(v string) *PutMetricFilterInput { + s.LogGroupName = &v + return s +} + +// SetMetricTransformations sets the MetricTransformations field's value. +func (s *PutMetricFilterInput) SetMetricTransformations(v []*MetricTransformation) *PutMetricFilterInput { + s.MetricTransformations = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutMetricFilterOutput type PutMetricFilterOutput struct { _ struct{} `type:"structure"` } @@ -4186,17 +5429,18 @@ func (s PutMetricFilterOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutRetentionPolicyRequest type PutRetentionPolicyInput struct { _ struct{} `type:"structure"` - // The name of the log group to associate the retention policy with. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` - // Specifies the number of days you want to retain log events in the specified - // log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, - // 365, 400, 545, 731, 1827, 3653. + // The number of days to retain the log events in the specified log group. Possible + // values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, + // 1827, and 3653. // // RetentionInDays is a required field RetentionInDays *int64 `locationName:"retentionInDays" type:"integer" required:"true"` @@ -4231,6 +5475,19 @@ func (s *PutRetentionPolicyInput) Validate() error { return nil } +// SetLogGroupName sets the LogGroupName field's value. +func (s *PutRetentionPolicyInput) SetLogGroupName(v string) *PutRetentionPolicyInput { + s.LogGroupName = &v + return s +} + +// SetRetentionInDays sets the RetentionInDays field's value. +func (s *PutRetentionPolicyInput) SetRetentionInDays(v int64) *PutRetentionPolicyInput { + s.RetentionInDays = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutRetentionPolicyOutput type PutRetentionPolicyOutput struct { _ struct{} `type:"structure"` } @@ -4245,47 +5502,52 @@ func (s PutRetentionPolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutSubscriptionFilterRequest type PutSubscriptionFilterInput struct { _ struct{} `type:"structure"` // The ARN of the destination to deliver matching log events to. Currently, // the supported destinations are: // - // An Amazon Kinesis stream belonging to the same account as the subscription - // filter, for same-account delivery. + // * An Amazon Kinesis stream belonging to the same account as the subscription + // filter, for same-account delivery. // - // A logical destination (used via an ARN of Destination) belonging to a - // different account, for cross-account delivery. + // * A logical destination (specified using an ARN) belonging to a different + // account, for cross-account delivery. // - // An Amazon Kinesis Firehose stream belonging to the same account as the - // subscription filter, for same-account delivery. + // * An Amazon Kinesis Firehose stream belonging to the same account as the + // subscription filter, for same-account delivery. // - // An AWS Lambda function belonging to the same account as the subscription - // filter, for same-account delivery. + // * An AWS Lambda function belonging to the same account as the subscription + // filter, for same-account delivery. // // DestinationArn is a required field DestinationArn *string `locationName:"destinationArn" min:"1" type:"string" required:"true"` + // The method used to distribute log data to the destination, when the destination + // is an Amazon Kinesis stream. By default, log data is grouped by log stream. + // For a more even distribution, you can group log data randomly. + Distribution *string `locationName:"distribution" type:"string" enum:"Distribution"` + // A name for the subscription filter. // // FilterName is a required field FilterName *string `locationName:"filterName" min:"1" type:"string" required:"true"` - // A valid CloudWatch Logs filter pattern for subscribing to a filtered stream - // of log events. + // A filter pattern for subscribing to a filtered stream of log events. // // FilterPattern is a required field FilterPattern *string `locationName:"filterPattern" type:"string" required:"true"` - // The name of the log group to associate the subscription filter with. + // The name of the log group. // // LogGroupName is a required field LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` // The ARN of an IAM role that grants CloudWatch Logs permissions to deliver // ingested log events to the destination stream. You don't need to provide - // the ARN when you are working with a logical destination (used via an ARN - // of Destination) for cross-account delivery. + // the ARN when you are working with a logical destination for cross-account + // delivery. RoleArn *string `locationName:"roleArn" min:"1" type:"string"` } @@ -4333,6 +5595,43 @@ func (s *PutSubscriptionFilterInput) Validate() error { return nil } +// SetDestinationArn sets the DestinationArn field's value. +func (s *PutSubscriptionFilterInput) SetDestinationArn(v string) *PutSubscriptionFilterInput { + s.DestinationArn = &v + return s +} + +// SetDistribution sets the Distribution field's value. +func (s *PutSubscriptionFilterInput) SetDistribution(v string) *PutSubscriptionFilterInput { + s.Distribution = &v + return s +} + +// SetFilterName sets the FilterName field's value. +func (s *PutSubscriptionFilterInput) SetFilterName(v string) *PutSubscriptionFilterInput { + s.FilterName = &v + return s +} + +// SetFilterPattern sets the FilterPattern field's value. +func (s *PutSubscriptionFilterInput) SetFilterPattern(v string) *PutSubscriptionFilterInput { + s.FilterPattern = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *PutSubscriptionFilterInput) SetLogGroupName(v string) *PutSubscriptionFilterInput { + s.LogGroupName = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *PutSubscriptionFilterInput) SetRoleArn(v string) *PutSubscriptionFilterInput { + s.RoleArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutSubscriptionFilterOutput type PutSubscriptionFilterOutput struct { _ struct{} `type:"structure"` } @@ -4347,13 +5646,18 @@ func (s PutSubscriptionFilterOutput) GoString() string { return s.String() } +// Represents the rejected events. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/RejectedLogEventsInfo type RejectedLogEventsInfo struct { _ struct{} `type:"structure"` + // The expired log events. ExpiredLogEventEndIndex *int64 `locationName:"expiredLogEventEndIndex" type:"integer"` + // The log events that are too new. TooNewLogEventStartIndex *int64 `locationName:"tooNewLogEventStartIndex" type:"integer"` + // The log events that are too old. TooOldLogEventEndIndex *int64 `locationName:"tooOldLogEventEndIndex" type:"integer"` } @@ -4367,16 +5671,33 @@ func (s RejectedLogEventsInfo) GoString() string { return s.String() } -// An object indicating the search status of a log stream in a FilterLogEvents -// request. +// SetExpiredLogEventEndIndex sets the ExpiredLogEventEndIndex field's value. +func (s *RejectedLogEventsInfo) SetExpiredLogEventEndIndex(v int64) *RejectedLogEventsInfo { + s.ExpiredLogEventEndIndex = &v + return s +} + +// SetTooNewLogEventStartIndex sets the TooNewLogEventStartIndex field's value. +func (s *RejectedLogEventsInfo) SetTooNewLogEventStartIndex(v int64) *RejectedLogEventsInfo { + s.TooNewLogEventStartIndex = &v + return s +} + +// SetTooOldLogEventEndIndex sets the TooOldLogEventEndIndex field's value. +func (s *RejectedLogEventsInfo) SetTooOldLogEventEndIndex(v int64) *RejectedLogEventsInfo { + s.TooOldLogEventEndIndex = &v + return s +} + +// Represents the search status of a log stream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/SearchedLogStream type SearchedLogStream struct { _ struct{} `type:"structure"` // The name of the log stream. LogStreamName *string `locationName:"logStreamName" min:"1" type:"string"` - // Indicates whether all the events in this log stream were searched or more - // data exists to search by paginating further. + // Indicates whether all the events in this log stream were searched. SearchedCompletely *bool `locationName:"searchedCompletely" type:"boolean"` } @@ -4390,16 +5711,34 @@ func (s SearchedLogStream) GoString() string { return s.String() } +// SetLogStreamName sets the LogStreamName field's value. +func (s *SearchedLogStream) SetLogStreamName(v string) *SearchedLogStream { + s.LogStreamName = &v + return s +} + +// SetSearchedCompletely sets the SearchedCompletely field's value. +func (s *SearchedLogStream) SetSearchedCompletely(v bool) *SearchedLogStream { + s.SearchedCompletely = &v + return s +} + +// Represents a subscription filter. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/SubscriptionFilter type SubscriptionFilter struct { _ struct{} `type:"structure"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. + // The creation time of the subscription filter. CreationTime *int64 `locationName:"creationTime" type:"long"` + // The Amazon Resource Name (ARN) of the destination. DestinationArn *string `locationName:"destinationArn" min:"1" type:"string"` - // A name for a metric or subscription filter. + // The method used to distribute log data to the destination, when the destination + // is an Amazon Kinesis stream. + Distribution *string `locationName:"distribution" type:"string" enum:"Distribution"` + + // The name of the subscription filter. FilterName *string `locationName:"filterName" min:"1" type:"string"` // A symbolic description of how CloudWatch Logs should interpret the data in @@ -4408,6 +5747,7 @@ type SubscriptionFilter struct { // in the log event message. FilterPattern *string `locationName:"filterPattern" type:"string"` + // The name of the log group. LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"` RoleArn *string `locationName:"roleArn" min:"1" type:"string"` @@ -4423,6 +5763,123 @@ func (s SubscriptionFilter) GoString() string { return s.String() } +// SetCreationTime sets the CreationTime field's value. +func (s *SubscriptionFilter) SetCreationTime(v int64) *SubscriptionFilter { + s.CreationTime = &v + return s +} + +// SetDestinationArn sets the DestinationArn field's value. +func (s *SubscriptionFilter) SetDestinationArn(v string) *SubscriptionFilter { + s.DestinationArn = &v + return s +} + +// SetDistribution sets the Distribution field's value. +func (s *SubscriptionFilter) SetDistribution(v string) *SubscriptionFilter { + s.Distribution = &v + return s +} + +// SetFilterName sets the FilterName field's value. +func (s *SubscriptionFilter) SetFilterName(v string) *SubscriptionFilter { + s.FilterName = &v + return s +} + +// SetFilterPattern sets the FilterPattern field's value. +func (s *SubscriptionFilter) SetFilterPattern(v string) *SubscriptionFilter { + s.FilterPattern = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *SubscriptionFilter) SetLogGroupName(v string) *SubscriptionFilter { + s.LogGroupName = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *SubscriptionFilter) SetRoleArn(v string) *SubscriptionFilter { + s.RoleArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagLogGroupRequest +type TagLogGroupInput struct { + _ struct{} `type:"structure"` + + // The name of the log group. + // + // LogGroupName is a required field + LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + + // The key-value pairs to use for the tags. + // + // Tags is a required field + Tags map[string]*string `locationName:"tags" min:"1" type:"map" required:"true"` +} + +// String returns the string representation +func (s TagLogGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagLogGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagLogGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagLogGroupInput"} + if s.LogGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("LogGroupName")) + } + if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *TagLogGroupInput) SetLogGroupName(v string) *TagLogGroupInput { + s.LogGroupName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagLogGroupInput) SetTags(v map[string]*string) *TagLogGroupInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagLogGroupOutput +type TagLogGroupOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s TagLogGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagLogGroupOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TestMetricFilterRequest type TestMetricFilterInput struct { _ struct{} `type:"structure"` @@ -4434,7 +5891,7 @@ type TestMetricFilterInput struct { // FilterPattern is a required field FilterPattern *string `locationName:"filterPattern" type:"string" required:"true"` - // A list of log event messages to test. + // The log event messages to test. // // LogEventMessages is a required field LogEventMessages []*string `locationName:"logEventMessages" min:"1" type:"list" required:"true"` @@ -4469,9 +5926,23 @@ func (s *TestMetricFilterInput) Validate() error { return nil } +// SetFilterPattern sets the FilterPattern field's value. +func (s *TestMetricFilterInput) SetFilterPattern(v string) *TestMetricFilterInput { + s.FilterPattern = &v + return s +} + +// SetLogEventMessages sets the LogEventMessages field's value. +func (s *TestMetricFilterInput) SetLogEventMessages(v []*string) *TestMetricFilterInput { + s.LogEventMessages = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TestMetricFilterResponse type TestMetricFilterOutput struct { _ struct{} `type:"structure"` + // The matched events. Matches []*MetricFilterMatchRecord `locationName:"matches" type:"list"` } @@ -4485,6 +5956,94 @@ func (s TestMetricFilterOutput) GoString() string { return s.String() } +// SetMatches sets the Matches field's value. +func (s *TestMetricFilterOutput) SetMatches(v []*MetricFilterMatchRecord) *TestMetricFilterOutput { + s.Matches = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagLogGroupRequest +type UntagLogGroupInput struct { + _ struct{} `type:"structure"` + + // The name of the log group. + // + // LogGroupName is a required field + LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + + // The tag keys. The corresponding tags are removed from the log group. + // + // Tags is a required field + Tags []*string `locationName:"tags" min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s UntagLogGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UntagLogGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagLogGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagLogGroupInput"} + if s.LogGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("LogGroupName")) + } + if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *UntagLogGroupInput) SetLogGroupName(v string) *UntagLogGroupInput { + s.LogGroupName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *UntagLogGroupInput) SetTags(v []*string) *UntagLogGroupInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagLogGroupOutput +type UntagLogGroupOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UntagLogGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UntagLogGroupOutput) GoString() string { + return s.String() +} + +const ( + // DistributionRandom is a Distribution enum value + DistributionRandom = "Random" + + // DistributionByLogStream is a Distribution enum value + DistributionByLogStream = "ByLogStream" +) + const ( // ExportTaskStatusCodeCancelled is a ExportTaskStatusCode enum value ExportTaskStatusCodeCancelled = "CANCELLED" diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface/interface.go index 8355554b2..a21ee26f3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCloudWatchLogsClient{} // @@ -145,6 +145,10 @@ type CloudWatchLogsAPI interface { GetLogEventsPages(*cloudwatchlogs.GetLogEventsInput, func(*cloudwatchlogs.GetLogEventsOutput, bool) bool) error + ListTagsLogGroupRequest(*cloudwatchlogs.ListTagsLogGroupInput) (*request.Request, *cloudwatchlogs.ListTagsLogGroupOutput) + + ListTagsLogGroup(*cloudwatchlogs.ListTagsLogGroupInput) (*cloudwatchlogs.ListTagsLogGroupOutput, error) + PutDestinationRequest(*cloudwatchlogs.PutDestinationInput) (*request.Request, *cloudwatchlogs.PutDestinationOutput) PutDestination(*cloudwatchlogs.PutDestinationInput) (*cloudwatchlogs.PutDestinationOutput, error) @@ -169,9 +173,17 @@ type CloudWatchLogsAPI interface { PutSubscriptionFilter(*cloudwatchlogs.PutSubscriptionFilterInput) (*cloudwatchlogs.PutSubscriptionFilterOutput, error) + TagLogGroupRequest(*cloudwatchlogs.TagLogGroupInput) (*request.Request, *cloudwatchlogs.TagLogGroupOutput) + + TagLogGroup(*cloudwatchlogs.TagLogGroupInput) (*cloudwatchlogs.TagLogGroupOutput, error) + TestMetricFilterRequest(*cloudwatchlogs.TestMetricFilterInput) (*request.Request, *cloudwatchlogs.TestMetricFilterOutput) TestMetricFilter(*cloudwatchlogs.TestMetricFilterInput) (*cloudwatchlogs.TestMetricFilterOutput, error) + + UntagLogGroupRequest(*cloudwatchlogs.UntagLogGroupInput) (*request.Request, *cloudwatchlogs.UntagLogGroupOutput) + + UntagLogGroup(*cloudwatchlogs.UntagLogGroupInput) (*cloudwatchlogs.UntagLogGroupOutput, error) } var _ CloudWatchLogsAPI = (*cloudwatchlogs.CloudWatchLogs)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/errors.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/errors.go new file mode 100644 index 000000000..de1b3fd9d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/errors.go @@ -0,0 +1,60 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cloudwatchlogs + +const ( + + // ErrCodeDataAlreadyAcceptedException for service response error code + // "DataAlreadyAcceptedException". + // + // The event was already logged. + ErrCodeDataAlreadyAcceptedException = "DataAlreadyAcceptedException" + + // ErrCodeInvalidOperationException for service response error code + // "InvalidOperationException". + // + // The operation is not valid on the specified resource. + ErrCodeInvalidOperationException = "InvalidOperationException" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameterException". + // + // A parameter is specified incorrectly. + ErrCodeInvalidParameterException = "InvalidParameterException" + + // ErrCodeInvalidSequenceTokenException for service response error code + // "InvalidSequenceTokenException". + // + // The sequence token is not valid. + ErrCodeInvalidSequenceTokenException = "InvalidSequenceTokenException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // You have reached the maximum number of resources that can be created. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeOperationAbortedException for service response error code + // "OperationAbortedException". + // + // Multiple requests to update the same resource were in conflict. + ErrCodeOperationAbortedException = "OperationAbortedException" + + // ErrCodeResourceAlreadyExistsException for service response error code + // "ResourceAlreadyExistsException". + // + // The specified resource already exists. + ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The specified resource does not exist. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeServiceUnavailableException for service response error code + // "ServiceUnavailableException". + // + // The service cannot complete the request. + ErrCodeServiceUnavailableException = "ServiceUnavailableException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/examples_test.go index 421971122..1d83971d5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudWatchLogs_CancelExportTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -41,11 +37,7 @@ func ExampleCloudWatchLogs_CancelExportTask() { } func ExampleCloudWatchLogs_CreateExportTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -72,16 +64,16 @@ func ExampleCloudWatchLogs_CreateExportTask() { } func ExampleCloudWatchLogs_CreateLogGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) params := &cloudwatchlogs.CreateLogGroupInput{ LogGroupName: aws.String("LogGroupName"), // Required + Tags: map[string]*string{ + "Key": aws.String("TagValue"), // Required + // More values... + }, } resp, err := svc.CreateLogGroup(params) @@ -97,11 +89,7 @@ func ExampleCloudWatchLogs_CreateLogGroup() { } func ExampleCloudWatchLogs_CreateLogStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -123,11 +111,7 @@ func ExampleCloudWatchLogs_CreateLogStream() { } func ExampleCloudWatchLogs_DeleteDestination() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -148,11 +132,7 @@ func ExampleCloudWatchLogs_DeleteDestination() { } func ExampleCloudWatchLogs_DeleteLogGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -173,11 +153,7 @@ func ExampleCloudWatchLogs_DeleteLogGroup() { } func ExampleCloudWatchLogs_DeleteLogStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -199,11 +175,7 @@ func ExampleCloudWatchLogs_DeleteLogStream() { } func ExampleCloudWatchLogs_DeleteMetricFilter() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -225,11 +197,7 @@ func ExampleCloudWatchLogs_DeleteMetricFilter() { } func ExampleCloudWatchLogs_DeleteRetentionPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -250,11 +218,7 @@ func ExampleCloudWatchLogs_DeleteRetentionPolicy() { } func ExampleCloudWatchLogs_DeleteSubscriptionFilter() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -276,11 +240,7 @@ func ExampleCloudWatchLogs_DeleteSubscriptionFilter() { } func ExampleCloudWatchLogs_DescribeDestinations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -303,11 +263,7 @@ func ExampleCloudWatchLogs_DescribeDestinations() { } func ExampleCloudWatchLogs_DescribeExportTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -331,11 +287,7 @@ func ExampleCloudWatchLogs_DescribeExportTasks() { } func ExampleCloudWatchLogs_DescribeLogGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -358,11 +310,7 @@ func ExampleCloudWatchLogs_DescribeLogGroups() { } func ExampleCloudWatchLogs_DescribeLogStreams() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -388,18 +336,16 @@ func ExampleCloudWatchLogs_DescribeLogStreams() { } func ExampleCloudWatchLogs_DescribeMetricFilters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) params := &cloudwatchlogs.DescribeMetricFiltersInput{ - LogGroupName: aws.String("LogGroupName"), // Required FilterNamePrefix: aws.String("FilterName"), Limit: aws.Int64(1), + LogGroupName: aws.String("LogGroupName"), + MetricName: aws.String("MetricName"), + MetricNamespace: aws.String("MetricNamespace"), NextToken: aws.String("NextToken"), } resp, err := svc.DescribeMetricFilters(params) @@ -416,11 +362,7 @@ func ExampleCloudWatchLogs_DescribeMetricFilters() { } func ExampleCloudWatchLogs_DescribeSubscriptionFilters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -444,11 +386,7 @@ func ExampleCloudWatchLogs_DescribeSubscriptionFilters() { } func ExampleCloudWatchLogs_FilterLogEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -479,11 +417,7 @@ func ExampleCloudWatchLogs_FilterLogEvents() { } func ExampleCloudWatchLogs_GetLogEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -509,13 +443,30 @@ func ExampleCloudWatchLogs_GetLogEvents() { fmt.Println(resp) } -func ExampleCloudWatchLogs_PutDestination() { - sess, err := session.NewSession() +func ExampleCloudWatchLogs_ListTagsLogGroup() { + sess := session.Must(session.NewSession()) + + svc := cloudwatchlogs.New(sess) + + params := &cloudwatchlogs.ListTagsLogGroupInput{ + LogGroupName: aws.String("LogGroupName"), // Required + } + resp, err := svc.ListTagsLogGroup(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudWatchLogs_PutDestination() { + sess := session.Must(session.NewSession()) + svc := cloudwatchlogs.New(sess) params := &cloudwatchlogs.PutDestinationInput{ @@ -537,11 +488,7 @@ func ExampleCloudWatchLogs_PutDestination() { } func ExampleCloudWatchLogs_PutDestinationPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -563,11 +510,7 @@ func ExampleCloudWatchLogs_PutDestinationPolicy() { } func ExampleCloudWatchLogs_PutLogEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -597,11 +540,7 @@ func ExampleCloudWatchLogs_PutLogEvents() { } func ExampleCloudWatchLogs_PutMetricFilter() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -633,11 +572,7 @@ func ExampleCloudWatchLogs_PutMetricFilter() { } func ExampleCloudWatchLogs_PutRetentionPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -659,11 +594,7 @@ func ExampleCloudWatchLogs_PutRetentionPolicy() { } func ExampleCloudWatchLogs_PutSubscriptionFilter() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cloudwatchlogs.New(sess) @@ -672,6 +603,7 @@ func ExampleCloudWatchLogs_PutSubscriptionFilter() { FilterName: aws.String("FilterName"), // Required FilterPattern: aws.String("FilterPattern"), // Required LogGroupName: aws.String("LogGroupName"), // Required + Distribution: aws.String("Distribution"), RoleArn: aws.String("RoleArn"), } resp, err := svc.PutSubscriptionFilter(params) @@ -687,13 +619,34 @@ func ExampleCloudWatchLogs_PutSubscriptionFilter() { fmt.Println(resp) } -func ExampleCloudWatchLogs_TestMetricFilter() { - sess, err := session.NewSession() +func ExampleCloudWatchLogs_TagLogGroup() { + sess := session.Must(session.NewSession()) + + svc := cloudwatchlogs.New(sess) + + params := &cloudwatchlogs.TagLogGroupInput{ + LogGroupName: aws.String("LogGroupName"), // Required + Tags: map[string]*string{ // Required + "Key": aws.String("TagValue"), // Required + // More values... + }, + } + resp, err := svc.TagLogGroup(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCloudWatchLogs_TestMetricFilter() { + sess := session.Must(session.NewSession()) + svc := cloudwatchlogs.New(sess) params := &cloudwatchlogs.TestMetricFilterInput{ @@ -715,3 +668,28 @@ func ExampleCloudWatchLogs_TestMetricFilter() { // Pretty-print the response data. fmt.Println(resp) } + +func ExampleCloudWatchLogs_UntagLogGroup() { + sess := session.Must(session.NewSession()) + + svc := cloudwatchlogs.New(sess) + + params := &cloudwatchlogs.UntagLogGroupInput{ + LogGroupName: aws.String("LogGroupName"), // Required + Tags: []*string{ // Required + aws.String("TagKey"), // Required + // More values... + }, + } + resp, err := svc.UntagLogGroup(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/service.go index c769589cf..e161f962b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/service.go @@ -12,36 +12,38 @@ import ( ) // You can use Amazon CloudWatch Logs to monitor, store, and access your log -// files from Amazon Elastic Compute Cloud (Amazon EC2) instances, Amazon CloudTrail, -// or other sources. You can then retrieve the associated log data from CloudWatch -// Logs using the Amazon CloudWatch console, the CloudWatch Logs commands in -// the AWS CLI, the CloudWatch Logs API, or the CloudWatch Logs SDK. +// files from EC2 instances, Amazon CloudTrail, or other sources. You can then +// retrieve the associated log data from CloudWatch Logs using the Amazon CloudWatch +// console, the CloudWatch Logs commands in the AWS CLI, the CloudWatch Logs +// API, or the CloudWatch Logs SDK. // // You can use CloudWatch Logs to: // -// Monitor Logs from Amazon EC2 Instances in Real-time: You can use CloudWatch -// Logs to monitor applications and systems using log data. For example, CloudWatch -// Logs can track the number of errors that occur in your application logs and -// send you a notification whenever the rate of errors exceeds a threshold you -// specify. CloudWatch Logs uses your log data for monitoring; so, no code changes -// are required. For example, you can monitor application logs for specific -// literal terms (such as "NullReferenceException") or count the number of occurrences -// of a literal term at a particular position in log data (such as "404" status -// codes in an Apache access log). When the term you are searching for is found, -// CloudWatch Logs reports the data to a Amazon CloudWatch metric that you specify. +// * Monitor Logs from Amazon EC2 Instances in Real-time: You can use CloudWatch +// Logs to monitor applications and systems using log data. For example, +// CloudWatch Logs can track the number of errors that occur in your application +// logs and send you a notification whenever the rate of errors exceeds a +// threshold you specify. CloudWatch Logs uses your log data for monitoring; +// so, no code changes are required. For example, you can monitor application +// logs for specific literal terms (such as "NullReferenceException") or +// count the number of occurrences of a literal term at a particular position +// in log data (such as "404" status codes in an Apache access log). When +// the term you are searching for is found, CloudWatch Logs reports the data +// to a Amazon CloudWatch metric that you specify. // -// Monitor Amazon CloudTrail Logged Events: You can create alarms in Amazon -// CloudWatch and receive notifications of particular API activity as captured -// by CloudTrail and use the notification to perform troubleshooting. +// * Monitor Amazon CloudTrail Logged Events: You can create alarms in Amazon +// CloudWatch and receive notifications of particular API activity as captured +// by CloudTrail and use the notification to perform troubleshooting. // -// Archive Log Data: You can use CloudWatch Logs to store your log data -// in highly durable storage. You can change the log retention setting so that -// any log events older than this setting are automatically deleted. The CloudWatch -// Logs agent makes it easy to quickly send both rotated and non-rotated log -// data off of a host and into the log service. You can then access the raw -// log data when you need it. -//The service client's operations are safe to be used concurrently. +// * Archive Log Data: You can use CloudWatch Logs to store your log data +// in highly durable storage. You can change the log retention setting so +// that any log events older than this setting are automatically deleted. +// The CloudWatch Logs agent makes it easy to quickly send both rotated and +// non-rotated log data off of a host and into the log service. You can then +// access the raw log data when you need it. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28 type CloudWatchLogs struct { *client.Client } @@ -52,8 +54,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "logs" +// Service information constants +const ( + ServiceName = "logs" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the CloudWatchLogs client with a session. // If additional configuration is needed for the client instance use the optional @@ -66,17 +71,18 @@ const ServiceName = "logs" // // Create a CloudWatchLogs client with additional configuration // svc := cloudwatchlogs.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudWatchLogs { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CloudWatchLogs { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CloudWatchLogs { svc := &CloudWatchLogs{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-03-28", diff --git a/vendor/github.com/aws/aws-sdk-go/service/codebuild/api.go b/vendor/github.com/aws/aws-sdk-go/service/codebuild/api.go new file mode 100644 index 000000000..ebef335d1 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/codebuild/api.go @@ -0,0 +1,3253 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package codebuild provides a client for AWS CodeBuild. +package codebuild + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opBatchGetBuilds = "BatchGetBuilds" + +// BatchGetBuildsRequest generates a "aws/request.Request" representing the +// client's request for the BatchGetBuilds operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See BatchGetBuilds for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the BatchGetBuilds method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the BatchGetBuildsRequest method. +// req, resp := client.BatchGetBuildsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetBuilds +func (c *CodeBuild) BatchGetBuildsRequest(input *BatchGetBuildsInput) (req *request.Request, output *BatchGetBuildsOutput) { + op := &request.Operation{ + Name: opBatchGetBuilds, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &BatchGetBuildsInput{} + } + + output = &BatchGetBuildsOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchGetBuilds API operation for AWS CodeBuild. +// +// Gets information about builds. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeBuild's +// API operation BatchGetBuilds for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidInputException "InvalidInputException" +// The input value that was provided is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetBuilds +func (c *CodeBuild) BatchGetBuilds(input *BatchGetBuildsInput) (*BatchGetBuildsOutput, error) { + req, out := c.BatchGetBuildsRequest(input) + err := req.Send() + return out, err +} + +const opBatchGetProjects = "BatchGetProjects" + +// BatchGetProjectsRequest generates a "aws/request.Request" representing the +// client's request for the BatchGetProjects operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See BatchGetProjects for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the BatchGetProjects method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the BatchGetProjectsRequest method. +// req, resp := client.BatchGetProjectsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetProjects +func (c *CodeBuild) BatchGetProjectsRequest(input *BatchGetProjectsInput) (req *request.Request, output *BatchGetProjectsOutput) { + op := &request.Operation{ + Name: opBatchGetProjects, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &BatchGetProjectsInput{} + } + + output = &BatchGetProjectsOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchGetProjects API operation for AWS CodeBuild. +// +// Gets information about build projects. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeBuild's +// API operation BatchGetProjects for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidInputException "InvalidInputException" +// The input value that was provided is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetProjects +func (c *CodeBuild) BatchGetProjects(input *BatchGetProjectsInput) (*BatchGetProjectsOutput, error) { + req, out := c.BatchGetProjectsRequest(input) + err := req.Send() + return out, err +} + +const opCreateProject = "CreateProject" + +// CreateProjectRequest generates a "aws/request.Request" representing the +// client's request for the CreateProject operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateProject for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateProject method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateProjectRequest method. +// req, resp := client.CreateProjectRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateProject +func (c *CodeBuild) CreateProjectRequest(input *CreateProjectInput) (req *request.Request, output *CreateProjectOutput) { + op := &request.Operation{ + Name: opCreateProject, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateProjectInput{} + } + + output = &CreateProjectOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateProject API operation for AWS CodeBuild. +// +// Creates a build project. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeBuild's +// API operation CreateProject for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidInputException "InvalidInputException" +// The input value that was provided is not valid. +// +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// The specified AWS resource cannot be created, because an AWS resource with +// the same settings already exists. +// +// * ErrCodeAccountLimitExceededException "AccountLimitExceededException" +// An AWS service limit was exceeded for the calling AWS account. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateProject +func (c *CodeBuild) CreateProject(input *CreateProjectInput) (*CreateProjectOutput, error) { + req, out := c.CreateProjectRequest(input) + err := req.Send() + return out, err +} + +const opDeleteProject = "DeleteProject" + +// DeleteProjectRequest generates a "aws/request.Request" representing the +// client's request for the DeleteProject operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteProject for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteProject method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteProjectRequest method. +// req, resp := client.DeleteProjectRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteProject +func (c *CodeBuild) DeleteProjectRequest(input *DeleteProjectInput) (req *request.Request, output *DeleteProjectOutput) { + op := &request.Operation{ + Name: opDeleteProject, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteProjectInput{} + } + + output = &DeleteProjectOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteProject API operation for AWS CodeBuild. +// +// Deletes a build project. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeBuild's +// API operation DeleteProject for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidInputException "InvalidInputException" +// The input value that was provided is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteProject +func (c *CodeBuild) DeleteProject(input *DeleteProjectInput) (*DeleteProjectOutput, error) { + req, out := c.DeleteProjectRequest(input) + err := req.Send() + return out, err +} + +const opListBuilds = "ListBuilds" + +// ListBuildsRequest generates a "aws/request.Request" representing the +// client's request for the ListBuilds operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListBuilds for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListBuilds method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListBuildsRequest method. +// req, resp := client.ListBuildsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListBuilds +func (c *CodeBuild) ListBuildsRequest(input *ListBuildsInput) (req *request.Request, output *ListBuildsOutput) { + op := &request.Operation{ + Name: opListBuilds, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListBuildsInput{} + } + + output = &ListBuildsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListBuilds API operation for AWS CodeBuild. +// +// Gets a list of build IDs, with each build ID representing a single build. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeBuild's +// API operation ListBuilds for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidInputException "InvalidInputException" +// The input value that was provided is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListBuilds +func (c *CodeBuild) ListBuilds(input *ListBuildsInput) (*ListBuildsOutput, error) { + req, out := c.ListBuildsRequest(input) + err := req.Send() + return out, err +} + +const opListBuildsForProject = "ListBuildsForProject" + +// ListBuildsForProjectRequest generates a "aws/request.Request" representing the +// client's request for the ListBuildsForProject operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListBuildsForProject for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListBuildsForProject method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListBuildsForProjectRequest method. +// req, resp := client.ListBuildsForProjectRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListBuildsForProject +func (c *CodeBuild) ListBuildsForProjectRequest(input *ListBuildsForProjectInput) (req *request.Request, output *ListBuildsForProjectOutput) { + op := &request.Operation{ + Name: opListBuildsForProject, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListBuildsForProjectInput{} + } + + output = &ListBuildsForProjectOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListBuildsForProject API operation for AWS CodeBuild. +// +// Gets a list of build IDs for the specified build project, with each build +// ID representing a single build. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeBuild's +// API operation ListBuildsForProject for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidInputException "InvalidInputException" +// The input value that was provided is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified AWS resource cannot be found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListBuildsForProject +func (c *CodeBuild) ListBuildsForProject(input *ListBuildsForProjectInput) (*ListBuildsForProjectOutput, error) { + req, out := c.ListBuildsForProjectRequest(input) + err := req.Send() + return out, err +} + +const opListCuratedEnvironmentImages = "ListCuratedEnvironmentImages" + +// ListCuratedEnvironmentImagesRequest generates a "aws/request.Request" representing the +// client's request for the ListCuratedEnvironmentImages operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListCuratedEnvironmentImages for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListCuratedEnvironmentImages method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListCuratedEnvironmentImagesRequest method. +// req, resp := client.ListCuratedEnvironmentImagesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListCuratedEnvironmentImages +func (c *CodeBuild) ListCuratedEnvironmentImagesRequest(input *ListCuratedEnvironmentImagesInput) (req *request.Request, output *ListCuratedEnvironmentImagesOutput) { + op := &request.Operation{ + Name: opListCuratedEnvironmentImages, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListCuratedEnvironmentImagesInput{} + } + + output = &ListCuratedEnvironmentImagesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListCuratedEnvironmentImages API operation for AWS CodeBuild. +// +// Gets information about Docker images that are managed by AWS CodeBuild. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeBuild's +// API operation ListCuratedEnvironmentImages for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListCuratedEnvironmentImages +func (c *CodeBuild) ListCuratedEnvironmentImages(input *ListCuratedEnvironmentImagesInput) (*ListCuratedEnvironmentImagesOutput, error) { + req, out := c.ListCuratedEnvironmentImagesRequest(input) + err := req.Send() + return out, err +} + +const opListProjects = "ListProjects" + +// ListProjectsRequest generates a "aws/request.Request" representing the +// client's request for the ListProjects operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListProjects for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListProjects method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListProjectsRequest method. +// req, resp := client.ListProjectsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListProjects +func (c *CodeBuild) ListProjectsRequest(input *ListProjectsInput) (req *request.Request, output *ListProjectsOutput) { + op := &request.Operation{ + Name: opListProjects, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListProjectsInput{} + } + + output = &ListProjectsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListProjects API operation for AWS CodeBuild. +// +// Gets a list of build project names, with each build project name representing +// a single build project. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeBuild's +// API operation ListProjects for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidInputException "InvalidInputException" +// The input value that was provided is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListProjects +func (c *CodeBuild) ListProjects(input *ListProjectsInput) (*ListProjectsOutput, error) { + req, out := c.ListProjectsRequest(input) + err := req.Send() + return out, err +} + +const opStartBuild = "StartBuild" + +// StartBuildRequest generates a "aws/request.Request" representing the +// client's request for the StartBuild operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See StartBuild for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the StartBuild method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the StartBuildRequest method. +// req, resp := client.StartBuildRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/StartBuild +func (c *CodeBuild) StartBuildRequest(input *StartBuildInput) (req *request.Request, output *StartBuildOutput) { + op := &request.Operation{ + Name: opStartBuild, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartBuildInput{} + } + + output = &StartBuildOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartBuild API operation for AWS CodeBuild. +// +// Starts running a build. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeBuild's +// API operation StartBuild for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidInputException "InvalidInputException" +// The input value that was provided is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified AWS resource cannot be found. +// +// * ErrCodeAccountLimitExceededException "AccountLimitExceededException" +// An AWS service limit was exceeded for the calling AWS account. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/StartBuild +func (c *CodeBuild) StartBuild(input *StartBuildInput) (*StartBuildOutput, error) { + req, out := c.StartBuildRequest(input) + err := req.Send() + return out, err +} + +const opStopBuild = "StopBuild" + +// StopBuildRequest generates a "aws/request.Request" representing the +// client's request for the StopBuild operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See StopBuild for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the StopBuild method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the StopBuildRequest method. +// req, resp := client.StopBuildRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/StopBuild +func (c *CodeBuild) StopBuildRequest(input *StopBuildInput) (req *request.Request, output *StopBuildOutput) { + op := &request.Operation{ + Name: opStopBuild, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopBuildInput{} + } + + output = &StopBuildOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopBuild API operation for AWS CodeBuild. +// +// Attempts to stop running a build. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeBuild's +// API operation StopBuild for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidInputException "InvalidInputException" +// The input value that was provided is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified AWS resource cannot be found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/StopBuild +func (c *CodeBuild) StopBuild(input *StopBuildInput) (*StopBuildOutput, error) { + req, out := c.StopBuildRequest(input) + err := req.Send() + return out, err +} + +const opUpdateProject = "UpdateProject" + +// UpdateProjectRequest generates a "aws/request.Request" representing the +// client's request for the UpdateProject operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateProject for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateProject method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateProjectRequest method. +// req, resp := client.UpdateProjectRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateProject +func (c *CodeBuild) UpdateProjectRequest(input *UpdateProjectInput) (req *request.Request, output *UpdateProjectOutput) { + op := &request.Operation{ + Name: opUpdateProject, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateProjectInput{} + } + + output = &UpdateProjectOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateProject API operation for AWS CodeBuild. +// +// Changes the settings of a build project. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeBuild's +// API operation UpdateProject for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidInputException "InvalidInputException" +// The input value that was provided is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified AWS resource cannot be found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateProject +func (c *CodeBuild) UpdateProject(input *UpdateProjectInput) (*UpdateProjectOutput, error) { + req, out := c.UpdateProjectRequest(input) + err := req.Send() + return out, err +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetBuildsInput +type BatchGetBuildsInput struct { + _ struct{} `type:"structure"` + + // The IDs of the builds. + // + // Ids is a required field + Ids []*string `locationName:"ids" min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchGetBuildsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchGetBuildsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchGetBuildsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetBuildsInput"} + if s.Ids == nil { + invalidParams.Add(request.NewErrParamRequired("Ids")) + } + if s.Ids != nil && len(s.Ids) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Ids", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIds sets the Ids field's value. +func (s *BatchGetBuildsInput) SetIds(v []*string) *BatchGetBuildsInput { + s.Ids = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetBuildsOutput +type BatchGetBuildsOutput struct { + _ struct{} `type:"structure"` + + // Information about the requested builds. + Builds []*Build `locationName:"builds" type:"list"` + + // The IDs of builds for which information could not be found. + BuildsNotFound []*string `locationName:"buildsNotFound" min:"1" type:"list"` +} + +// String returns the string representation +func (s BatchGetBuildsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchGetBuildsOutput) GoString() string { + return s.String() +} + +// SetBuilds sets the Builds field's value. +func (s *BatchGetBuildsOutput) SetBuilds(v []*Build) *BatchGetBuildsOutput { + s.Builds = v + return s +} + +// SetBuildsNotFound sets the BuildsNotFound field's value. +func (s *BatchGetBuildsOutput) SetBuildsNotFound(v []*string) *BatchGetBuildsOutput { + s.BuildsNotFound = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetProjectsInput +type BatchGetProjectsInput struct { + _ struct{} `type:"structure"` + + // The names of the build projects. + // + // Names is a required field + Names []*string `locationName:"names" min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchGetProjectsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchGetProjectsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchGetProjectsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetProjectsInput"} + if s.Names == nil { + invalidParams.Add(request.NewErrParamRequired("Names")) + } + if s.Names != nil && len(s.Names) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Names", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNames sets the Names field's value. +func (s *BatchGetProjectsInput) SetNames(v []*string) *BatchGetProjectsInput { + s.Names = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetProjectsOutput +type BatchGetProjectsOutput struct { + _ struct{} `type:"structure"` + + // Information about the requested build projects. + Projects []*Project `locationName:"projects" type:"list"` + + // The names of build projects for which information could not be found. + ProjectsNotFound []*string `locationName:"projectsNotFound" min:"1" type:"list"` +} + +// String returns the string representation +func (s BatchGetProjectsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchGetProjectsOutput) GoString() string { + return s.String() +} + +// SetProjects sets the Projects field's value. +func (s *BatchGetProjectsOutput) SetProjects(v []*Project) *BatchGetProjectsOutput { + s.Projects = v + return s +} + +// SetProjectsNotFound sets the ProjectsNotFound field's value. +func (s *BatchGetProjectsOutput) SetProjectsNotFound(v []*string) *BatchGetProjectsOutput { + s.ProjectsNotFound = v + return s +} + +// Information about a build. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/Build +type Build struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the build. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // Information about the output artifacts for the build. + Artifacts *BuildArtifacts `locationName:"artifacts" type:"structure"` + + // Whether the build has finished. True if completed; otherwise, false. + BuildComplete *bool `locationName:"buildComplete" type:"boolean"` + + // The current status of the build. Valid values include: + // + // * FAILED: The build failed. + // + // * FAULT: The build faulted. + // + // * IN_PROGRESS: The build is still in progress. + // + // * STOPPED: The build stopped. + // + // * SUCCEEDED: The build succeeded. + // + // * TIMED_OUT: The build timed out. + BuildStatus *string `locationName:"buildStatus" type:"string" enum:"StatusType"` + + // The current build phase. + CurrentPhase *string `locationName:"currentPhase" type:"string"` + + // When the build process ended, expressed in Unix time format. + EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"` + + // Information about the build environment for this build. + Environment *ProjectEnvironment `locationName:"environment" type:"structure"` + + // The unique ID for the build. + Id *string `locationName:"id" min:"1" type:"string"` + + // The entity that started the build. Valid values include: + // + // * If AWS CodePipeline started the build, the pipeline's name (for example, + // codepipeline/my-demo-pipeline). + // + // * If an AWS Identity and Access Management (IAM) user started the build, + // the user's name (for example MyUserName). + // + // * If the Jenkins plugin for AWS CodeBuild started the build, the string + // CodeBuild-Jenkins-Plugin. + Initiator *string `locationName:"initiator" type:"string"` + + // Information about the build's logs in Amazon CloudWatch Logs. + Logs *LogsLocation `locationName:"logs" type:"structure"` + + // Information about all previous build phases that are completed and information + // about any current build phase that is not yet complete. + Phases []*BuildPhase `locationName:"phases" type:"list"` + + // The name of the build project. + ProjectName *string `locationName:"projectName" min:"1" type:"string"` + + // Information about the source code to be built. + Source *ProjectSource `locationName:"source" type:"structure"` + + // Any version identifier for the version of the source code to be built. + SourceVersion *string `locationName:"sourceVersion" min:"1" type:"string"` + + // When the build process started, expressed in Unix time format. + StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"` + + // How long, in minutes, for AWS CodeBuild to wait before timing out this build + // if it does not get marked as completed. + TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" type:"integer"` +} + +// String returns the string representation +func (s Build) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Build) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *Build) SetArn(v string) *Build { + s.Arn = &v + return s +} + +// SetArtifacts sets the Artifacts field's value. +func (s *Build) SetArtifacts(v *BuildArtifacts) *Build { + s.Artifacts = v + return s +} + +// SetBuildComplete sets the BuildComplete field's value. +func (s *Build) SetBuildComplete(v bool) *Build { + s.BuildComplete = &v + return s +} + +// SetBuildStatus sets the BuildStatus field's value. +func (s *Build) SetBuildStatus(v string) *Build { + s.BuildStatus = &v + return s +} + +// SetCurrentPhase sets the CurrentPhase field's value. +func (s *Build) SetCurrentPhase(v string) *Build { + s.CurrentPhase = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *Build) SetEndTime(v time.Time) *Build { + s.EndTime = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *Build) SetEnvironment(v *ProjectEnvironment) *Build { + s.Environment = v + return s +} + +// SetId sets the Id field's value. +func (s *Build) SetId(v string) *Build { + s.Id = &v + return s +} + +// SetInitiator sets the Initiator field's value. +func (s *Build) SetInitiator(v string) *Build { + s.Initiator = &v + return s +} + +// SetLogs sets the Logs field's value. +func (s *Build) SetLogs(v *LogsLocation) *Build { + s.Logs = v + return s +} + +// SetPhases sets the Phases field's value. +func (s *Build) SetPhases(v []*BuildPhase) *Build { + s.Phases = v + return s +} + +// SetProjectName sets the ProjectName field's value. +func (s *Build) SetProjectName(v string) *Build { + s.ProjectName = &v + return s +} + +// SetSource sets the Source field's value. +func (s *Build) SetSource(v *ProjectSource) *Build { + s.Source = v + return s +} + +// SetSourceVersion sets the SourceVersion field's value. +func (s *Build) SetSourceVersion(v string) *Build { + s.SourceVersion = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *Build) SetStartTime(v time.Time) *Build { + s.StartTime = &v + return s +} + +// SetTimeoutInMinutes sets the TimeoutInMinutes field's value. +func (s *Build) SetTimeoutInMinutes(v int64) *Build { + s.TimeoutInMinutes = &v + return s +} + +// Information about build output artifacts. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BuildArtifacts +type BuildArtifacts struct { + _ struct{} `type:"structure"` + + // Information about the location of the build artifacts. + Location *string `locationName:"location" type:"string"` + + // The MD5 hash of the build artifact. + // + // You can use this hash along with a checksum tool to confirm both file integrity + // and authenticity. + // + // This value is available only if the build project's packaging value is set + // to ZIP. + Md5sum *string `locationName:"md5sum" type:"string"` + + // The SHA-256 hash of the build artifact. + // + // You can use this hash along with a checksum tool to confirm both file integrity + // and authenticity. + // + // This value is available only if the build project's packaging value is set + // to ZIP. + Sha256sum *string `locationName:"sha256sum" type:"string"` +} + +// String returns the string representation +func (s BuildArtifacts) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BuildArtifacts) GoString() string { + return s.String() +} + +// SetLocation sets the Location field's value. +func (s *BuildArtifacts) SetLocation(v string) *BuildArtifacts { + s.Location = &v + return s +} + +// SetMd5sum sets the Md5sum field's value. +func (s *BuildArtifacts) SetMd5sum(v string) *BuildArtifacts { + s.Md5sum = &v + return s +} + +// SetSha256sum sets the Sha256sum field's value. +func (s *BuildArtifacts) SetSha256sum(v string) *BuildArtifacts { + s.Sha256sum = &v + return s +} + +// Information about a stage for a build. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BuildPhase +type BuildPhase struct { + _ struct{} `type:"structure"` + + // Additional information about a build phase, especially to help troubleshoot + // a failed build. + Contexts []*PhaseContext `locationName:"contexts" type:"list"` + + // How long, in seconds, between the starting and ending times of the build's + // phase. + DurationInSeconds *int64 `locationName:"durationInSeconds" type:"long"` + + // When the build phase ended, expressed in Unix time format. + EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"` + + // The current status of the build phase. Valid values include: + // + // * FAILED: The build phase failed. + // + // * FAULT: The build phase faulted. + // + // * IN_PROGRESS: The build phase is still in progress. + // + // * STOPPED: The build phase stopped. + // + // * SUCCEEDED: The build phase succeeded. + // + // * TIMED_OUT: The build phase timed out. + PhaseStatus *string `locationName:"phaseStatus" type:"string" enum:"StatusType"` + + // The name of the build phase. Valid values include: + // + // * BUILD: Core build activities typically occur in this build phase. + // + // * COMPLETED: The build has been completed. + // + // * DOWNLOAD_SOURCE: Source code is being downloaded in this build phase. + // + // * FINALIZING: The build process is completing in this build phase. + // + // * INSTALL: Installation activities typically occur in this build phase. + // + // * POST_BUILD: Post-build activities typically occur in this build phase. + // + // * PRE_BUILD: Pre-build activities typically occur in this build phase. + // + // * PROVISIONING: The build environment is being set up. + // + // * SUBMITTED: The build has been submitted. + // + // * UPLOAD_ARTIFACTS: Build output artifacts are being uploaded to the output + // location. + PhaseType *string `locationName:"phaseType" type:"string" enum:"BuildPhaseType"` + + // When the build phase started, expressed in Unix time format. + StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"` +} + +// String returns the string representation +func (s BuildPhase) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BuildPhase) GoString() string { + return s.String() +} + +// SetContexts sets the Contexts field's value. +func (s *BuildPhase) SetContexts(v []*PhaseContext) *BuildPhase { + s.Contexts = v + return s +} + +// SetDurationInSeconds sets the DurationInSeconds field's value. +func (s *BuildPhase) SetDurationInSeconds(v int64) *BuildPhase { + s.DurationInSeconds = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *BuildPhase) SetEndTime(v time.Time) *BuildPhase { + s.EndTime = &v + return s +} + +// SetPhaseStatus sets the PhaseStatus field's value. +func (s *BuildPhase) SetPhaseStatus(v string) *BuildPhase { + s.PhaseStatus = &v + return s +} + +// SetPhaseType sets the PhaseType field's value. +func (s *BuildPhase) SetPhaseType(v string) *BuildPhase { + s.PhaseType = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *BuildPhase) SetStartTime(v time.Time) *BuildPhase { + s.StartTime = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateProjectInput +type CreateProjectInput struct { + _ struct{} `type:"structure"` + + // Information about the build output artifacts for the build project. + // + // Artifacts is a required field + Artifacts *ProjectArtifacts `locationName:"artifacts" type:"structure" required:"true"` + + // A description that makes the build project easy to identify. + Description *string `locationName:"description" type:"string"` + + // The AWS Key Management Service (AWS KMS) customer master key (CMK) to be + // used for encrypting the build output artifacts. + // + // You can specify either the CMK's Amazon Resource Name (ARN) or, if available, + // the CMK's alias (using the format alias/alias-name). + EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"` + + // Information about the build environment for the build project. + // + // Environment is a required field + Environment *ProjectEnvironment `locationName:"environment" type:"structure" required:"true"` + + // The name of the build project. + // + // Name is a required field + Name *string `locationName:"name" min:"2" type:"string" required:"true"` + + // The ARN of the AWS Identity and Access Management (IAM) role that enables + // AWS CodeBuild to interact with dependent AWS services on behalf of the AWS + // account. + ServiceRole *string `locationName:"serviceRole" min:"1" type:"string"` + + // Information about the build input source code for the build project. + // + // Source is a required field + Source *ProjectSource `locationName:"source" type:"structure" required:"true"` + + // A set of tags for this build project. + // + // These tags are available for use by AWS services that support AWS CodeBuild + // build project tags. + Tags []*Tag `locationName:"tags" type:"list"` + + // How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait + // until timing out any build that has not been marked as completed. The default + // is 60 minutes. + TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" min:"1" type:"integer"` +} + +// String returns the string representation +func (s CreateProjectInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateProjectInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateProjectInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateProjectInput"} + if s.Artifacts == nil { + invalidParams.Add(request.NewErrParamRequired("Artifacts")) + } + if s.EncryptionKey != nil && len(*s.EncryptionKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EncryptionKey", 1)) + } + if s.Environment == nil { + invalidParams.Add(request.NewErrParamRequired("Environment")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 2 { + invalidParams.Add(request.NewErrParamMinLen("Name", 2)) + } + if s.ServiceRole != nil && len(*s.ServiceRole) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceRole", 1)) + } + if s.Source == nil { + invalidParams.Add(request.NewErrParamRequired("Source")) + } + if s.TimeoutInMinutes != nil && *s.TimeoutInMinutes < 1 { + invalidParams.Add(request.NewErrParamMinValue("TimeoutInMinutes", 1)) + } + if s.Artifacts != nil { + if err := s.Artifacts.Validate(); err != nil { + invalidParams.AddNested("Artifacts", err.(request.ErrInvalidParams)) + } + } + if s.Environment != nil { + if err := s.Environment.Validate(); err != nil { + invalidParams.AddNested("Environment", err.(request.ErrInvalidParams)) + } + } + if s.Source != nil { + if err := s.Source.Validate(); err != nil { + invalidParams.AddNested("Source", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArtifacts sets the Artifacts field's value. +func (s *CreateProjectInput) SetArtifacts(v *ProjectArtifacts) *CreateProjectInput { + s.Artifacts = v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateProjectInput) SetDescription(v string) *CreateProjectInput { + s.Description = &v + return s +} + +// SetEncryptionKey sets the EncryptionKey field's value. +func (s *CreateProjectInput) SetEncryptionKey(v string) *CreateProjectInput { + s.EncryptionKey = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *CreateProjectInput) SetEnvironment(v *ProjectEnvironment) *CreateProjectInput { + s.Environment = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateProjectInput) SetName(v string) *CreateProjectInput { + s.Name = &v + return s +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *CreateProjectInput) SetServiceRole(v string) *CreateProjectInput { + s.ServiceRole = &v + return s +} + +// SetSource sets the Source field's value. +func (s *CreateProjectInput) SetSource(v *ProjectSource) *CreateProjectInput { + s.Source = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateProjectInput) SetTags(v []*Tag) *CreateProjectInput { + s.Tags = v + return s +} + +// SetTimeoutInMinutes sets the TimeoutInMinutes field's value. +func (s *CreateProjectInput) SetTimeoutInMinutes(v int64) *CreateProjectInput { + s.TimeoutInMinutes = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateProjectOutput +type CreateProjectOutput struct { + _ struct{} `type:"structure"` + + // Information about the build project that was created. + Project *Project `locationName:"project" type:"structure"` +} + +// String returns the string representation +func (s CreateProjectOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateProjectOutput) GoString() string { + return s.String() +} + +// SetProject sets the Project field's value. +func (s *CreateProjectOutput) SetProject(v *Project) *CreateProjectOutput { + s.Project = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteProjectInput +type DeleteProjectInput struct { + _ struct{} `type:"structure"` + + // The name of the build project. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteProjectInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteProjectInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteProjectInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteProjectInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *DeleteProjectInput) SetName(v string) *DeleteProjectInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteProjectOutput +type DeleteProjectOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteProjectOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteProjectOutput) GoString() string { + return s.String() +} + +// Information about a Docker image that is managed by AWS CodeBuild. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/EnvironmentImage +type EnvironmentImage struct { + _ struct{} `type:"structure"` + + // The description of the Docker image. + Description *string `locationName:"description" type:"string"` + + // The name of the Docker image. + Name *string `locationName:"name" type:"string"` +} + +// String returns the string representation +func (s EnvironmentImage) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnvironmentImage) GoString() string { + return s.String() +} + +// SetDescription sets the Description field's value. +func (s *EnvironmentImage) SetDescription(v string) *EnvironmentImage { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *EnvironmentImage) SetName(v string) *EnvironmentImage { + s.Name = &v + return s +} + +// A set of Docker images that are related by programming language and are managed +// by AWS CodeBuild. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/EnvironmentLanguage +type EnvironmentLanguage struct { + _ struct{} `type:"structure"` + + // The list of Docker images that are related by the specified programming language. + Images []*EnvironmentImage `locationName:"images" type:"list"` + + // The programming language for the Docker images. + Language *string `locationName:"language" type:"string" enum:"LanguageType"` +} + +// String returns the string representation +func (s EnvironmentLanguage) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnvironmentLanguage) GoString() string { + return s.String() +} + +// SetImages sets the Images field's value. +func (s *EnvironmentLanguage) SetImages(v []*EnvironmentImage) *EnvironmentLanguage { + s.Images = v + return s +} + +// SetLanguage sets the Language field's value. +func (s *EnvironmentLanguage) SetLanguage(v string) *EnvironmentLanguage { + s.Language = &v + return s +} + +// A set of Docker images that are related by platform and are managed by AWS +// CodeBuild. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/EnvironmentPlatform +type EnvironmentPlatform struct { + _ struct{} `type:"structure"` + + // The list of programming languages that are available for the specified platform. + Languages []*EnvironmentLanguage `locationName:"languages" type:"list"` + + // The platform's name. + Platform *string `locationName:"platform" type:"string" enum:"PlatformType"` +} + +// String returns the string representation +func (s EnvironmentPlatform) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnvironmentPlatform) GoString() string { + return s.String() +} + +// SetLanguages sets the Languages field's value. +func (s *EnvironmentPlatform) SetLanguages(v []*EnvironmentLanguage) *EnvironmentPlatform { + s.Languages = v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *EnvironmentPlatform) SetPlatform(v string) *EnvironmentPlatform { + s.Platform = &v + return s +} + +// Information about an environment variable for a build project or a build. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/EnvironmentVariable +type EnvironmentVariable struct { + _ struct{} `type:"structure"` + + // The name or key of the environment variable. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The value of the environment variable. + // + // Value is a required field + Value *string `locationName:"value" type:"string" required:"true"` +} + +// String returns the string representation +func (s EnvironmentVariable) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnvironmentVariable) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EnvironmentVariable) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EnvironmentVariable"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *EnvironmentVariable) SetName(v string) *EnvironmentVariable { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *EnvironmentVariable) SetValue(v string) *EnvironmentVariable { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListBuildsForProjectInput +type ListBuildsForProjectInput struct { + _ struct{} `type:"structure"` + + // During a previous call, if there are more than 100 items in the list, only + // the first 100 items are returned, along with a unique string called a next + // token. To get the next batch of items in the list, call this operation again, + // adding the next token to the call. To get all of the items in the list, keep + // calling this operation with each subsequent next token that is returned, + // until no more next tokens are returned. + NextToken *string `locationName:"nextToken" type:"string"` + + // The name of the build project. + // + // ProjectName is a required field + ProjectName *string `locationName:"projectName" min:"1" type:"string" required:"true"` + + // The order to list build IDs. Valid values include: + // + // * ASCENDING: List the build IDs in ascending order by build ID. + // + // * DESCENDING: List the build IDs in descending order by build ID. + SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrderType"` +} + +// String returns the string representation +func (s ListBuildsForProjectInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListBuildsForProjectInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListBuildsForProjectInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListBuildsForProjectInput"} + if s.ProjectName == nil { + invalidParams.Add(request.NewErrParamRequired("ProjectName")) + } + if s.ProjectName != nil && len(*s.ProjectName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProjectName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBuildsForProjectInput) SetNextToken(v string) *ListBuildsForProjectInput { + s.NextToken = &v + return s +} + +// SetProjectName sets the ProjectName field's value. +func (s *ListBuildsForProjectInput) SetProjectName(v string) *ListBuildsForProjectInput { + s.ProjectName = &v + return s +} + +// SetSortOrder sets the SortOrder field's value. +func (s *ListBuildsForProjectInput) SetSortOrder(v string) *ListBuildsForProjectInput { + s.SortOrder = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListBuildsForProjectOutput +type ListBuildsForProjectOutput struct { + _ struct{} `type:"structure"` + + // A list of build IDs for the specified build project, with each build ID representing + // a single build. + Ids []*string `locationName:"ids" min:"1" type:"list"` + + // If there are more than 100 items in the list, only the first 100 items are + // returned, along with a unique string called a next token. To get the next + // batch of items in the list, call this operation again, adding the next token + // to the call. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListBuildsForProjectOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListBuildsForProjectOutput) GoString() string { + return s.String() +} + +// SetIds sets the Ids field's value. +func (s *ListBuildsForProjectOutput) SetIds(v []*string) *ListBuildsForProjectOutput { + s.Ids = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBuildsForProjectOutput) SetNextToken(v string) *ListBuildsForProjectOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListBuildsInput +type ListBuildsInput struct { + _ struct{} `type:"structure"` + + // During a previous call, if there are more than 100 items in the list, only + // the first 100 items are returned, along with a unique string called a next + // token. To get the next batch of items in the list, call this operation again, + // adding the next token to the call. To get all of the items in the list, keep + // calling this operation with each subsequent next token that is returned, + // until no more next tokens are returned. + NextToken *string `locationName:"nextToken" type:"string"` + + // The order to list build IDs. Valid values include: + // + // * ASCENDING: List the build IDs in ascending order by build ID. + // + // * DESCENDING: List the build IDs in descending order by build ID. + SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrderType"` +} + +// String returns the string representation +func (s ListBuildsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListBuildsInput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBuildsInput) SetNextToken(v string) *ListBuildsInput { + s.NextToken = &v + return s +} + +// SetSortOrder sets the SortOrder field's value. +func (s *ListBuildsInput) SetSortOrder(v string) *ListBuildsInput { + s.SortOrder = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListBuildsOutput +type ListBuildsOutput struct { + _ struct{} `type:"structure"` + + // A list of build IDs, with each build ID representing a single build. + Ids []*string `locationName:"ids" min:"1" type:"list"` + + // If there are more than 100 items in the list, only the first 100 items are + // returned, along with a unique string called a next token. To get the next + // batch of items in the list, call this operation again, adding the next token + // to the call. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListBuildsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListBuildsOutput) GoString() string { + return s.String() +} + +// SetIds sets the Ids field's value. +func (s *ListBuildsOutput) SetIds(v []*string) *ListBuildsOutput { + s.Ids = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBuildsOutput) SetNextToken(v string) *ListBuildsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListCuratedEnvironmentImagesInput +type ListCuratedEnvironmentImagesInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s ListCuratedEnvironmentImagesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListCuratedEnvironmentImagesInput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListCuratedEnvironmentImagesOutput +type ListCuratedEnvironmentImagesOutput struct { + _ struct{} `type:"structure"` + + // Information about supported platforms for Docker images that are managed + // by AWS CodeBuild. + Platforms []*EnvironmentPlatform `locationName:"platforms" type:"list"` +} + +// String returns the string representation +func (s ListCuratedEnvironmentImagesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListCuratedEnvironmentImagesOutput) GoString() string { + return s.String() +} + +// SetPlatforms sets the Platforms field's value. +func (s *ListCuratedEnvironmentImagesOutput) SetPlatforms(v []*EnvironmentPlatform) *ListCuratedEnvironmentImagesOutput { + s.Platforms = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListProjectsInput +type ListProjectsInput struct { + _ struct{} `type:"structure"` + + // During a previous call, if there are more than 100 items in the list, only + // the first 100 items are returned, along with a unique string called a next + // token. To get the next batch of items in the list, call this operation again, + // adding the next token to the call. To get all of the items in the list, keep + // calling this operation with each subsequent next token that is returned, + // until no more next tokens are returned. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` + + // The criterion to be used to list build project names. Valid values include: + // + // * CREATED_TIME: List the build project names based on when each build + // project was created. + // + // * LAST_MODIFIED_TIME: List the build project names based on when information + // about each build project was last changed. + // + // * NAME: List the build project names based on each build project's name. + // + // Use sortOrder to specify in what order to list the build project names based + // on the preceding criteria. + SortBy *string `locationName:"sortBy" type:"string" enum:"ProjectSortByType"` + + // The order in which to list build projects. Valid values include: + // + // * ASCENDING: List the build project names in ascending order. + // + // * DESCENDING: List the build project names in descending order. + // + // Use sortBy to specify the criterion to be used to list build project names. + SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrderType"` +} + +// String returns the string representation +func (s ListProjectsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListProjectsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListProjectsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListProjectsInput"} + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNextToken sets the NextToken field's value. +func (s *ListProjectsInput) SetNextToken(v string) *ListProjectsInput { + s.NextToken = &v + return s +} + +// SetSortBy sets the SortBy field's value. +func (s *ListProjectsInput) SetSortBy(v string) *ListProjectsInput { + s.SortBy = &v + return s +} + +// SetSortOrder sets the SortOrder field's value. +func (s *ListProjectsInput) SetSortOrder(v string) *ListProjectsInput { + s.SortOrder = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListProjectsOutput +type ListProjectsOutput struct { + _ struct{} `type:"structure"` + + // If there are more than 100 items in the list, only the first 100 items are + // returned, along with a unique string called a next token. To get the next + // batch of items in the list, call this operation again, adding the next token + // to the call. + NextToken *string `locationName:"nextToken" type:"string"` + + // The list of build project names, with each build project name representing + // a single build project. + Projects []*string `locationName:"projects" min:"1" type:"list"` +} + +// String returns the string representation +func (s ListProjectsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListProjectsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListProjectsOutput) SetNextToken(v string) *ListProjectsOutput { + s.NextToken = &v + return s +} + +// SetProjects sets the Projects field's value. +func (s *ListProjectsOutput) SetProjects(v []*string) *ListProjectsOutput { + s.Projects = v + return s +} + +// Information about build logs in Amazon CloudWatch Logs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/LogsLocation +type LogsLocation struct { + _ struct{} `type:"structure"` + + // The URL to an individual build log in Amazon CloudWatch Logs. + DeepLink *string `locationName:"deepLink" type:"string"` + + // The name of the Amazon CloudWatch Logs group for the build logs. + GroupName *string `locationName:"groupName" type:"string"` + + // The name of the Amazon CloudWatch Logs stream for the build logs. + StreamName *string `locationName:"streamName" type:"string"` +} + +// String returns the string representation +func (s LogsLocation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LogsLocation) GoString() string { + return s.String() +} + +// SetDeepLink sets the DeepLink field's value. +func (s *LogsLocation) SetDeepLink(v string) *LogsLocation { + s.DeepLink = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *LogsLocation) SetGroupName(v string) *LogsLocation { + s.GroupName = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *LogsLocation) SetStreamName(v string) *LogsLocation { + s.StreamName = &v + return s +} + +// Additional information about a build phase that has an error. You can use +// this information to help troubleshoot a failed build. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/PhaseContext +type PhaseContext struct { + _ struct{} `type:"structure"` + + // An explanation of the build phase's context. This explanation might include + // a command ID and an exit code. + Message *string `locationName:"message" type:"string"` + + // The status code for the context of the build phase. + StatusCode *string `locationName:"statusCode" type:"string"` +} + +// String returns the string representation +func (s PhaseContext) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PhaseContext) GoString() string { + return s.String() +} + +// SetMessage sets the Message field's value. +func (s *PhaseContext) SetMessage(v string) *PhaseContext { + s.Message = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *PhaseContext) SetStatusCode(v string) *PhaseContext { + s.StatusCode = &v + return s +} + +// Information about a build project. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/Project +type Project struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the build project. + Arn *string `locationName:"arn" type:"string"` + + // Information about the build output artifacts for the build project. + Artifacts *ProjectArtifacts `locationName:"artifacts" type:"structure"` + + // When the build project was created, expressed in Unix time format. + Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"` + + // A description that makes the build project easy to identify. + Description *string `locationName:"description" type:"string"` + + // The AWS Key Management Service (AWS KMS) customer master key (CMK) to be + // used for encrypting the build output artifacts. + // + // This is expressed either as the CMK's Amazon Resource Name (ARN) or, if specified, + // the CMK's alias (using the format alias/alias-name). + EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"` + + // Information about the build environment for this build project. + Environment *ProjectEnvironment `locationName:"environment" type:"structure"` + + // When the build project's settings were last modified, expressed in Unix time + // format. + LastModified *time.Time `locationName:"lastModified" type:"timestamp" timestampFormat:"unix"` + + // The name of the build project. + Name *string `locationName:"name" min:"2" type:"string"` + + // The ARN of the AWS Identity and Access Management (IAM) role that enables + // AWS CodeBuild to interact with dependent AWS services on behalf of the AWS + // account. + ServiceRole *string `locationName:"serviceRole" min:"1" type:"string"` + + // Information about the build input source code for this build project. + Source *ProjectSource `locationName:"source" type:"structure"` + + // The tags for this build project. + // + // These tags are available for use by AWS services that support AWS CodeBuild + // build project tags. + Tags []*Tag `locationName:"tags" type:"list"` + + // How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait + // before timing out any related build that did not get marked as completed. + // The default is 60 minutes. + TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" min:"1" type:"integer"` +} + +// String returns the string representation +func (s Project) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Project) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *Project) SetArn(v string) *Project { + s.Arn = &v + return s +} + +// SetArtifacts sets the Artifacts field's value. +func (s *Project) SetArtifacts(v *ProjectArtifacts) *Project { + s.Artifacts = v + return s +} + +// SetCreated sets the Created field's value. +func (s *Project) SetCreated(v time.Time) *Project { + s.Created = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Project) SetDescription(v string) *Project { + s.Description = &v + return s +} + +// SetEncryptionKey sets the EncryptionKey field's value. +func (s *Project) SetEncryptionKey(v string) *Project { + s.EncryptionKey = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *Project) SetEnvironment(v *ProjectEnvironment) *Project { + s.Environment = v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *Project) SetLastModified(v time.Time) *Project { + s.LastModified = &v + return s +} + +// SetName sets the Name field's value. +func (s *Project) SetName(v string) *Project { + s.Name = &v + return s +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *Project) SetServiceRole(v string) *Project { + s.ServiceRole = &v + return s +} + +// SetSource sets the Source field's value. +func (s *Project) SetSource(v *ProjectSource) *Project { + s.Source = v + return s +} + +// SetTags sets the Tags field's value. +func (s *Project) SetTags(v []*Tag) *Project { + s.Tags = v + return s +} + +// SetTimeoutInMinutes sets the TimeoutInMinutes field's value. +func (s *Project) SetTimeoutInMinutes(v int64) *Project { + s.TimeoutInMinutes = &v + return s +} + +// Information about the build output artifacts for the build project. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ProjectArtifacts +type ProjectArtifacts struct { + _ struct{} `type:"structure"` + + // Information about the build output artifact location, as follows: + // + // * If type is set to CODEPIPELINE, then AWS CodePipeline will ignore this + // value if specified. This is because AWS CodePipeline manages its build + // output locations instead of AWS CodeBuild. + // + // * If type is set to NO_ARTIFACTS, then this value will be ignored if specified, + // because no build output will be produced. + // + // * If type is set to S3, this is the name of the output bucket. + Location *string `locationName:"location" type:"string"` + + // Along with path and namespaceType, the pattern that AWS CodeBuild will use + // to name and store the output artifact, as follows: + // + // * If type is set to CODEPIPELINE, then AWS CodePipeline will ignore this + // value if specified. This is because AWS CodePipeline manages its build + // output names instead of AWS CodeBuild. + // + // * If type is set to NO_ARTIFACTS, then this value will be ignored if specified, + // because no build output will be produced. + // + // * If type is set to S3, this is the name of the output artifact object. + // + // For example, if path is set to MyArtifacts, namespaceType is set to BUILD_ID, + // and name is set to MyArtifact.zip, then the output artifact would be stored + // in MyArtifacts/build-ID/MyArtifact.zip. + Name *string `locationName:"name" type:"string"` + + // Along with path and name, the pattern that AWS CodeBuild will use to determine + // the name and location to store the output artifact, as follows: + // + // * If type is set to CODEPIPELINE, then AWS CodePipeline will ignore this + // value if specified. This is because AWS CodePipeline manages its build + // output names instead of AWS CodeBuild. + // + // * If type is set to NO_ARTIFACTS, then this value will be ignored if specified, + // because no build output will be produced. + // + // * If type is set to S3, then valid values include: + // + // BUILD_ID: Include the build ID in the location of the build output artifact. + // + // NONE: Do not include the build ID. This is the default if namespaceType is + // not specified. + // + // For example, if path is set to MyArtifacts, namespaceType is set to BUILD_ID, + // and name is set to MyArtifact.zip, then the output artifact would be stored + // in MyArtifacts/build-ID/MyArtifact.zip. + NamespaceType *string `locationName:"namespaceType" type:"string" enum:"ArtifactNamespace"` + + // The type of build output artifact to create, as follows: + // + // * If type is set to CODEPIPELINE, then AWS CodePipeline will ignore this + // value if specified. This is because AWS CodePipeline manages its build + // output artifacts instead of AWS CodeBuild. + // + // * If type is set to NO_ARTIFACTS, then this value will be ignored if specified, + // because no build output will be produced. + // + // * If type is set to S3, valid values include: + // + // NONE: AWS CodeBuild will create in the output bucket a folder containing + // the build output. This is the default if packaging is not specified. + // + // ZIP: AWS CodeBuild will create in the output bucket a ZIP file containing + // the build output. + Packaging *string `locationName:"packaging" type:"string" enum:"ArtifactPackaging"` + + // Along with namespaceType and name, the pattern that AWS CodeBuild will use + // to name and store the output artifact, as follows: + // + // * If type is set to CODEPIPELINE, then AWS CodePipeline will ignore this + // value if specified. This is because AWS CodePipeline manages its build + // output names instead of AWS CodeBuild. + // + // * If type is set to NO_ARTIFACTS, then this value will be ignored if specified, + // because no build output will be produced. + // + // * If type is set to S3, this is the path to the output artifact. If path + // is not specified, then path will not be used. + // + // For example, if path is set to MyArtifacts, namespaceType is set to NONE, + // and name is set to MyArtifact.zip, then the output artifact would be stored + // in the output bucket at MyArtifacts/MyArtifact.zip. + Path *string `locationName:"path" type:"string"` + + // The type of build output artifact. Valid values include: + // + // * CODEPIPELINE: The build project will have build output generated through + // AWS CodePipeline. + // + // * NO_ARTIFACTS: The build project will not produce any build output. + // + // * S3: The build project will store build output in Amazon Simple Storage + // Service (Amazon S3). + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"ArtifactsType"` +} + +// String returns the string representation +func (s ProjectArtifacts) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProjectArtifacts) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ProjectArtifacts) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ProjectArtifacts"} + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLocation sets the Location field's value. +func (s *ProjectArtifacts) SetLocation(v string) *ProjectArtifacts { + s.Location = &v + return s +} + +// SetName sets the Name field's value. +func (s *ProjectArtifacts) SetName(v string) *ProjectArtifacts { + s.Name = &v + return s +} + +// SetNamespaceType sets the NamespaceType field's value. +func (s *ProjectArtifacts) SetNamespaceType(v string) *ProjectArtifacts { + s.NamespaceType = &v + return s +} + +// SetPackaging sets the Packaging field's value. +func (s *ProjectArtifacts) SetPackaging(v string) *ProjectArtifacts { + s.Packaging = &v + return s +} + +// SetPath sets the Path field's value. +func (s *ProjectArtifacts) SetPath(v string) *ProjectArtifacts { + s.Path = &v + return s +} + +// SetType sets the Type field's value. +func (s *ProjectArtifacts) SetType(v string) *ProjectArtifacts { + s.Type = &v + return s +} + +// Information about the build environment of the build project. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ProjectEnvironment +type ProjectEnvironment struct { + _ struct{} `type:"structure"` + + // Information about the compute resources the build project will use. Available + // values include: + // + // * BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds. + // + // * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds. + // + // * BUILD_GENERAL1_LARGE: Use up to 15 GB memory and 8 vCPUs for builds. + // + // ComputeType is a required field + ComputeType *string `locationName:"computeType" type:"string" required:"true" enum:"ComputeType"` + + // A set of environment variables to make available to builds for this build + // project. + EnvironmentVariables []*EnvironmentVariable `locationName:"environmentVariables" type:"list"` + + // The ID of the Docker image to use for this build project. + // + // Image is a required field + Image *string `locationName:"image" min:"1" type:"string" required:"true"` + + // The type of build environment to use for related builds. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"EnvironmentType"` +} + +// String returns the string representation +func (s ProjectEnvironment) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProjectEnvironment) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ProjectEnvironment) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ProjectEnvironment"} + if s.ComputeType == nil { + invalidParams.Add(request.NewErrParamRequired("ComputeType")) + } + if s.Image == nil { + invalidParams.Add(request.NewErrParamRequired("Image")) + } + if s.Image != nil && len(*s.Image) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Image", 1)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.EnvironmentVariables != nil { + for i, v := range s.EnvironmentVariables { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "EnvironmentVariables", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetComputeType sets the ComputeType field's value. +func (s *ProjectEnvironment) SetComputeType(v string) *ProjectEnvironment { + s.ComputeType = &v + return s +} + +// SetEnvironmentVariables sets the EnvironmentVariables field's value. +func (s *ProjectEnvironment) SetEnvironmentVariables(v []*EnvironmentVariable) *ProjectEnvironment { + s.EnvironmentVariables = v + return s +} + +// SetImage sets the Image field's value. +func (s *ProjectEnvironment) SetImage(v string) *ProjectEnvironment { + s.Image = &v + return s +} + +// SetType sets the Type field's value. +func (s *ProjectEnvironment) SetType(v string) *ProjectEnvironment { + s.Type = &v + return s +} + +// Information about the build input source code for the build project. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ProjectSource +type ProjectSource struct { + _ struct{} `type:"structure"` + + // Information about the authorization settings for AWS CodeBuild to access + // the source code to be built. + // + // This information is for the AWS CodeBuild console's use only. Your code should + // not get or set this information directly (unless the build project's source + // type value is GITHUB). + Auth *SourceAuth `locationName:"auth" type:"structure"` + + // The build spec declaration to use for the builds in this build project. + // + // If this value is not specified, a build spec must be included along with + // the source code to be built. + Buildspec *string `locationName:"buildspec" type:"string"` + + // Information about the location of the source code to be built. Valid values + // include: + // + // * For source code settings that are specified in the source action of + // a pipeline in AWS CodePipeline, location should not be specified. If it + // is specified, AWS CodePipeline will ignore it. This is because AWS CodePipeline + // uses the settings in a pipeline's source action instead of this value. + // + // * For source code in an AWS CodeCommit repository, the HTTPS clone URL + // to the repository that contains the source code and the build spec (for + // example, https://git-codecommit.region-ID.amazonaws.com/v1/repos/repo-name). + // + // * For source code in an Amazon Simple Storage Service (Amazon S3) input + // bucket, the path to the ZIP file that contains the source code (for example, + // bucket-name/path/to/object-name.zip) + // + // * For source code in a GitHub repository, instead of specifying a value + // here, you connect your AWS account to your GitHub account. To do this, + // use the AWS CodeBuild console to begin creating a build project, and follow + // the on-screen instructions to complete the connection. (After you have + // connected to your GitHub account, you do not need to finish creating the + // build project, and you may then leave the AWS CodeBuild console.) To instruct + // AWS CodeBuild to then use this connection, in the source object, set the + // auth object's type value to OAUTH. + Location *string `locationName:"location" type:"string"` + + // The type of repository that contains the source code to be built. Valid values + // include: + // + // * CODECOMMIT: The source code is in an AWS CodeCommit repository. + // + // * CODEPIPELINE: The source code settings are specified in the source action + // of a pipeline in AWS CodePipeline. + // + // * GITHUB: The source code is in a GitHub repository. + // + // * S3: The source code is in an Amazon Simple Storage Service (Amazon S3) + // input bucket. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"SourceType"` +} + +// String returns the string representation +func (s ProjectSource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProjectSource) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ProjectSource) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ProjectSource"} + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.Auth != nil { + if err := s.Auth.Validate(); err != nil { + invalidParams.AddNested("Auth", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAuth sets the Auth field's value. +func (s *ProjectSource) SetAuth(v *SourceAuth) *ProjectSource { + s.Auth = v + return s +} + +// SetBuildspec sets the Buildspec field's value. +func (s *ProjectSource) SetBuildspec(v string) *ProjectSource { + s.Buildspec = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *ProjectSource) SetLocation(v string) *ProjectSource { + s.Location = &v + return s +} + +// SetType sets the Type field's value. +func (s *ProjectSource) SetType(v string) *ProjectSource { + s.Type = &v + return s +} + +// Information about the authorization settings for AWS CodeBuild to access +// the source code to be built. +// +// This information is for the AWS CodeBuild console's use only. Your code should +// not get or set this information directly (unless the build project's source +// type value is GITHUB). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/SourceAuth +type SourceAuth struct { + _ struct{} `type:"structure"` + + // The resource value that applies to the specified authorization type. + Resource *string `locationName:"resource" type:"string"` + + // The authorization type to use. The only valid value is OAUTH, which represents + // the OAuth authorization type. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"SourceAuthType"` +} + +// String returns the string representation +func (s SourceAuth) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SourceAuth) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SourceAuth) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SourceAuth"} + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResource sets the Resource field's value. +func (s *SourceAuth) SetResource(v string) *SourceAuth { + s.Resource = &v + return s +} + +// SetType sets the Type field's value. +func (s *SourceAuth) SetType(v string) *SourceAuth { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/StartBuildInput +type StartBuildInput struct { + _ struct{} `type:"structure"` + + // Build output artifact settings that override, for this build only, the latest + // ones already defined in the build project. + ArtifactsOverride *ProjectArtifacts `locationName:"artifactsOverride" type:"structure"` + + // A build spec declaration that overrides, for this build only, the latest + // one already defined in the build project. + BuildspecOverride *string `locationName:"buildspecOverride" type:"string"` + + // A set of environment variables that overrides, for this build only, the latest + // ones already defined in the build project. + EnvironmentVariablesOverride []*EnvironmentVariable `locationName:"environmentVariablesOverride" type:"list"` + + // The name of the build project to start running a build. + // + // ProjectName is a required field + ProjectName *string `locationName:"projectName" min:"1" type:"string" required:"true"` + + // A version of the build input to be built, for this build only. If not specified, + // the latest version will be used. If specified, must be one of: + // + // * For AWS CodeCommit or GitHub: the commit ID to use. + // + // * For Amazon Simple Storage Service (Amazon S3): the version ID of the + // object representing the build input ZIP file to use. + SourceVersion *string `locationName:"sourceVersion" type:"string"` + + // The number of build timeout minutes, from 5 to 480 (8 hours), that overrides, + // for this build only, the latest setting already defined in the build project. + TimeoutInMinutesOverride *int64 `locationName:"timeoutInMinutesOverride" min:"1" type:"integer"` +} + +// String returns the string representation +func (s StartBuildInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartBuildInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartBuildInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartBuildInput"} + if s.ProjectName == nil { + invalidParams.Add(request.NewErrParamRequired("ProjectName")) + } + if s.ProjectName != nil && len(*s.ProjectName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProjectName", 1)) + } + if s.TimeoutInMinutesOverride != nil && *s.TimeoutInMinutesOverride < 1 { + invalidParams.Add(request.NewErrParamMinValue("TimeoutInMinutesOverride", 1)) + } + if s.ArtifactsOverride != nil { + if err := s.ArtifactsOverride.Validate(); err != nil { + invalidParams.AddNested("ArtifactsOverride", err.(request.ErrInvalidParams)) + } + } + if s.EnvironmentVariablesOverride != nil { + for i, v := range s.EnvironmentVariablesOverride { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "EnvironmentVariablesOverride", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArtifactsOverride sets the ArtifactsOverride field's value. +func (s *StartBuildInput) SetArtifactsOverride(v *ProjectArtifacts) *StartBuildInput { + s.ArtifactsOverride = v + return s +} + +// SetBuildspecOverride sets the BuildspecOverride field's value. +func (s *StartBuildInput) SetBuildspecOverride(v string) *StartBuildInput { + s.BuildspecOverride = &v + return s +} + +// SetEnvironmentVariablesOverride sets the EnvironmentVariablesOverride field's value. +func (s *StartBuildInput) SetEnvironmentVariablesOverride(v []*EnvironmentVariable) *StartBuildInput { + s.EnvironmentVariablesOverride = v + return s +} + +// SetProjectName sets the ProjectName field's value. +func (s *StartBuildInput) SetProjectName(v string) *StartBuildInput { + s.ProjectName = &v + return s +} + +// SetSourceVersion sets the SourceVersion field's value. +func (s *StartBuildInput) SetSourceVersion(v string) *StartBuildInput { + s.SourceVersion = &v + return s +} + +// SetTimeoutInMinutesOverride sets the TimeoutInMinutesOverride field's value. +func (s *StartBuildInput) SetTimeoutInMinutesOverride(v int64) *StartBuildInput { + s.TimeoutInMinutesOverride = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/StartBuildOutput +type StartBuildOutput struct { + _ struct{} `type:"structure"` + + // Information about the build to be run. + Build *Build `locationName:"build" type:"structure"` +} + +// String returns the string representation +func (s StartBuildOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartBuildOutput) GoString() string { + return s.String() +} + +// SetBuild sets the Build field's value. +func (s *StartBuildOutput) SetBuild(v *Build) *StartBuildOutput { + s.Build = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/StopBuildInput +type StopBuildInput struct { + _ struct{} `type:"structure"` + + // The ID of the build. + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s StopBuildInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopBuildInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopBuildInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopBuildInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *StopBuildInput) SetId(v string) *StopBuildInput { + s.Id = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/StopBuildOutput +type StopBuildOutput struct { + _ struct{} `type:"structure"` + + // Information about the build. + Build *Build `locationName:"build" type:"structure"` +} + +// String returns the string representation +func (s StopBuildOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopBuildOutput) GoString() string { + return s.String() +} + +// SetBuild sets the Build field's value. +func (s *StopBuildOutput) SetBuild(v *Build) *StopBuildOutput { + s.Build = v + return s +} + +// A tag, consisting of a key and a value. +// +// This tag is available for use by AWS services that support tags in AWS CodeBuild. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/Tag +type Tag struct { + _ struct{} `type:"structure"` + + // The tag's key. + Key *string `locationName:"key" min:"1" type:"string"` + + // The tag's value. + Value *string `locationName:"value" min:"1" type:"string"` +} + +// String returns the string representation +func (s Tag) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Tag) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Tag) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Tag"} + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + if s.Value != nil && len(*s.Value) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Value", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateProjectInput +type UpdateProjectInput struct { + _ struct{} `type:"structure"` + + // Information to be changed about the build output artifacts for the build + // project. + Artifacts *ProjectArtifacts `locationName:"artifacts" type:"structure"` + + // A new or replacement description of the build project. + Description *string `locationName:"description" type:"string"` + + // The replacement AWS Key Management Service (AWS KMS) customer master key + // (CMK) to be used for encrypting the build output artifacts. + // + // You can specify either the CMK's Amazon Resource Name (ARN) or, if available, + // the CMK's alias (using the format alias/alias-name). + EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"` + + // Information to be changed about the build environment for the build project. + Environment *ProjectEnvironment `locationName:"environment" type:"structure"` + + // The name of the build project. + // + // You cannot change a build project's name. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The replacement ARN of the AWS Identity and Access Management (IAM) role + // that enables AWS CodeBuild to interact with dependent AWS services on behalf + // of the AWS account. + ServiceRole *string `locationName:"serviceRole" min:"1" type:"string"` + + // Information to be changed about the build input source code for the build + // project. + Source *ProjectSource `locationName:"source" type:"structure"` + + // The replacement set of tags for this build project. + // + // These tags are available for use by AWS services that support AWS CodeBuild + // build project tags. + Tags []*Tag `locationName:"tags" type:"list"` + + // The replacement value in minutes, from 5 to 480 (8 hours), for AWS CodeBuild + // to wait before timing out any related build that did not get marked as completed. + TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" min:"1" type:"integer"` +} + +// String returns the string representation +func (s UpdateProjectInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateProjectInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateProjectInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateProjectInput"} + if s.EncryptionKey != nil && len(*s.EncryptionKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EncryptionKey", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.ServiceRole != nil && len(*s.ServiceRole) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceRole", 1)) + } + if s.TimeoutInMinutes != nil && *s.TimeoutInMinutes < 1 { + invalidParams.Add(request.NewErrParamMinValue("TimeoutInMinutes", 1)) + } + if s.Artifacts != nil { + if err := s.Artifacts.Validate(); err != nil { + invalidParams.AddNested("Artifacts", err.(request.ErrInvalidParams)) + } + } + if s.Environment != nil { + if err := s.Environment.Validate(); err != nil { + invalidParams.AddNested("Environment", err.(request.ErrInvalidParams)) + } + } + if s.Source != nil { + if err := s.Source.Validate(); err != nil { + invalidParams.AddNested("Source", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArtifacts sets the Artifacts field's value. +func (s *UpdateProjectInput) SetArtifacts(v *ProjectArtifacts) *UpdateProjectInput { + s.Artifacts = v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateProjectInput) SetDescription(v string) *UpdateProjectInput { + s.Description = &v + return s +} + +// SetEncryptionKey sets the EncryptionKey field's value. +func (s *UpdateProjectInput) SetEncryptionKey(v string) *UpdateProjectInput { + s.EncryptionKey = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *UpdateProjectInput) SetEnvironment(v *ProjectEnvironment) *UpdateProjectInput { + s.Environment = v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateProjectInput) SetName(v string) *UpdateProjectInput { + s.Name = &v + return s +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *UpdateProjectInput) SetServiceRole(v string) *UpdateProjectInput { + s.ServiceRole = &v + return s +} + +// SetSource sets the Source field's value. +func (s *UpdateProjectInput) SetSource(v *ProjectSource) *UpdateProjectInput { + s.Source = v + return s +} + +// SetTags sets the Tags field's value. +func (s *UpdateProjectInput) SetTags(v []*Tag) *UpdateProjectInput { + s.Tags = v + return s +} + +// SetTimeoutInMinutes sets the TimeoutInMinutes field's value. +func (s *UpdateProjectInput) SetTimeoutInMinutes(v int64) *UpdateProjectInput { + s.TimeoutInMinutes = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateProjectOutput +type UpdateProjectOutput struct { + _ struct{} `type:"structure"` + + // Information about the build project that was changed. + Project *Project `locationName:"project" type:"structure"` +} + +// String returns the string representation +func (s UpdateProjectOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateProjectOutput) GoString() string { + return s.String() +} + +// SetProject sets the Project field's value. +func (s *UpdateProjectOutput) SetProject(v *Project) *UpdateProjectOutput { + s.Project = v + return s +} + +const ( + // ArtifactNamespaceNone is a ArtifactNamespace enum value + ArtifactNamespaceNone = "NONE" + + // ArtifactNamespaceBuildId is a ArtifactNamespace enum value + ArtifactNamespaceBuildId = "BUILD_ID" +) + +const ( + // ArtifactPackagingNone is a ArtifactPackaging enum value + ArtifactPackagingNone = "NONE" + + // ArtifactPackagingZip is a ArtifactPackaging enum value + ArtifactPackagingZip = "ZIP" +) + +const ( + // ArtifactsTypeCodepipeline is a ArtifactsType enum value + ArtifactsTypeCodepipeline = "CODEPIPELINE" + + // ArtifactsTypeS3 is a ArtifactsType enum value + ArtifactsTypeS3 = "S3" + + // ArtifactsTypeNoArtifacts is a ArtifactsType enum value + ArtifactsTypeNoArtifacts = "NO_ARTIFACTS" +) + +const ( + // BuildPhaseTypeSubmitted is a BuildPhaseType enum value + BuildPhaseTypeSubmitted = "SUBMITTED" + + // BuildPhaseTypeProvisioning is a BuildPhaseType enum value + BuildPhaseTypeProvisioning = "PROVISIONING" + + // BuildPhaseTypeDownloadSource is a BuildPhaseType enum value + BuildPhaseTypeDownloadSource = "DOWNLOAD_SOURCE" + + // BuildPhaseTypeInstall is a BuildPhaseType enum value + BuildPhaseTypeInstall = "INSTALL" + + // BuildPhaseTypePreBuild is a BuildPhaseType enum value + BuildPhaseTypePreBuild = "PRE_BUILD" + + // BuildPhaseTypeBuild is a BuildPhaseType enum value + BuildPhaseTypeBuild = "BUILD" + + // BuildPhaseTypePostBuild is a BuildPhaseType enum value + BuildPhaseTypePostBuild = "POST_BUILD" + + // BuildPhaseTypeUploadArtifacts is a BuildPhaseType enum value + BuildPhaseTypeUploadArtifacts = "UPLOAD_ARTIFACTS" + + // BuildPhaseTypeFinalizing is a BuildPhaseType enum value + BuildPhaseTypeFinalizing = "FINALIZING" + + // BuildPhaseTypeCompleted is a BuildPhaseType enum value + BuildPhaseTypeCompleted = "COMPLETED" +) + +const ( + // ComputeTypeBuildGeneral1Small is a ComputeType enum value + ComputeTypeBuildGeneral1Small = "BUILD_GENERAL1_SMALL" + + // ComputeTypeBuildGeneral1Medium is a ComputeType enum value + ComputeTypeBuildGeneral1Medium = "BUILD_GENERAL1_MEDIUM" + + // ComputeTypeBuildGeneral1Large is a ComputeType enum value + ComputeTypeBuildGeneral1Large = "BUILD_GENERAL1_LARGE" +) + +const ( + // EnvironmentTypeLinuxContainer is a EnvironmentType enum value + EnvironmentTypeLinuxContainer = "LINUX_CONTAINER" +) + +const ( + // LanguageTypeJava is a LanguageType enum value + LanguageTypeJava = "JAVA" + + // LanguageTypePython is a LanguageType enum value + LanguageTypePython = "PYTHON" + + // LanguageTypeNodeJs is a LanguageType enum value + LanguageTypeNodeJs = "NODE_JS" + + // LanguageTypeRuby is a LanguageType enum value + LanguageTypeRuby = "RUBY" + + // LanguageTypeGolang is a LanguageType enum value + LanguageTypeGolang = "GOLANG" + + // LanguageTypeDocker is a LanguageType enum value + LanguageTypeDocker = "DOCKER" + + // LanguageTypeAndroid is a LanguageType enum value + LanguageTypeAndroid = "ANDROID" + + // LanguageTypeBase is a LanguageType enum value + LanguageTypeBase = "BASE" +) + +const ( + // PlatformTypeDebian is a PlatformType enum value + PlatformTypeDebian = "DEBIAN" + + // PlatformTypeAmazonLinux is a PlatformType enum value + PlatformTypeAmazonLinux = "AMAZON_LINUX" + + // PlatformTypeUbuntu is a PlatformType enum value + PlatformTypeUbuntu = "UBUNTU" +) + +const ( + // ProjectSortByTypeName is a ProjectSortByType enum value + ProjectSortByTypeName = "NAME" + + // ProjectSortByTypeCreatedTime is a ProjectSortByType enum value + ProjectSortByTypeCreatedTime = "CREATED_TIME" + + // ProjectSortByTypeLastModifiedTime is a ProjectSortByType enum value + ProjectSortByTypeLastModifiedTime = "LAST_MODIFIED_TIME" +) + +const ( + // SortOrderTypeAscending is a SortOrderType enum value + SortOrderTypeAscending = "ASCENDING" + + // SortOrderTypeDescending is a SortOrderType enum value + SortOrderTypeDescending = "DESCENDING" +) + +const ( + // SourceAuthTypeOauth is a SourceAuthType enum value + SourceAuthTypeOauth = "OAUTH" +) + +const ( + // SourceTypeCodecommit is a SourceType enum value + SourceTypeCodecommit = "CODECOMMIT" + + // SourceTypeCodepipeline is a SourceType enum value + SourceTypeCodepipeline = "CODEPIPELINE" + + // SourceTypeGithub is a SourceType enum value + SourceTypeGithub = "GITHUB" + + // SourceTypeS3 is a SourceType enum value + SourceTypeS3 = "S3" +) + +const ( + // StatusTypeSucceeded is a StatusType enum value + StatusTypeSucceeded = "SUCCEEDED" + + // StatusTypeFailed is a StatusType enum value + StatusTypeFailed = "FAILED" + + // StatusTypeFault is a StatusType enum value + StatusTypeFault = "FAULT" + + // StatusTypeTimedOut is a StatusType enum value + StatusTypeTimedOut = "TIMED_OUT" + + // StatusTypeInProgress is a StatusType enum value + StatusTypeInProgress = "IN_PROGRESS" + + // StatusTypeStopped is a StatusType enum value + StatusTypeStopped = "STOPPED" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codebuild/codebuildiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/codebuild/codebuildiface/interface.go new file mode 100644 index 000000000..525a368b1 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/codebuild/codebuildiface/interface.go @@ -0,0 +1,107 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package codebuildiface provides an interface to enable mocking the AWS CodeBuild service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package codebuildiface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/codebuild" +) + +// CodeBuildAPI provides an interface to enable mocking the +// codebuild.CodeBuild service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS CodeBuild. +// func myFunc(svc codebuildiface.CodeBuildAPI) bool { +// // Make svc.BatchGetBuilds request +// } +// +// func main() { +// sess := session.New() +// svc := codebuild.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockCodeBuildClient struct { +// codebuildiface.CodeBuildAPI +// } +// func (m *mockCodeBuildClient) BatchGetBuilds(input *codebuild.BatchGetBuildsInput) (*codebuild.BatchGetBuildsOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockCodeBuildClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type CodeBuildAPI interface { + BatchGetBuildsRequest(*codebuild.BatchGetBuildsInput) (*request.Request, *codebuild.BatchGetBuildsOutput) + + BatchGetBuilds(*codebuild.BatchGetBuildsInput) (*codebuild.BatchGetBuildsOutput, error) + + BatchGetProjectsRequest(*codebuild.BatchGetProjectsInput) (*request.Request, *codebuild.BatchGetProjectsOutput) + + BatchGetProjects(*codebuild.BatchGetProjectsInput) (*codebuild.BatchGetProjectsOutput, error) + + CreateProjectRequest(*codebuild.CreateProjectInput) (*request.Request, *codebuild.CreateProjectOutput) + + CreateProject(*codebuild.CreateProjectInput) (*codebuild.CreateProjectOutput, error) + + DeleteProjectRequest(*codebuild.DeleteProjectInput) (*request.Request, *codebuild.DeleteProjectOutput) + + DeleteProject(*codebuild.DeleteProjectInput) (*codebuild.DeleteProjectOutput, error) + + ListBuildsRequest(*codebuild.ListBuildsInput) (*request.Request, *codebuild.ListBuildsOutput) + + ListBuilds(*codebuild.ListBuildsInput) (*codebuild.ListBuildsOutput, error) + + ListBuildsForProjectRequest(*codebuild.ListBuildsForProjectInput) (*request.Request, *codebuild.ListBuildsForProjectOutput) + + ListBuildsForProject(*codebuild.ListBuildsForProjectInput) (*codebuild.ListBuildsForProjectOutput, error) + + ListCuratedEnvironmentImagesRequest(*codebuild.ListCuratedEnvironmentImagesInput) (*request.Request, *codebuild.ListCuratedEnvironmentImagesOutput) + + ListCuratedEnvironmentImages(*codebuild.ListCuratedEnvironmentImagesInput) (*codebuild.ListCuratedEnvironmentImagesOutput, error) + + ListProjectsRequest(*codebuild.ListProjectsInput) (*request.Request, *codebuild.ListProjectsOutput) + + ListProjects(*codebuild.ListProjectsInput) (*codebuild.ListProjectsOutput, error) + + StartBuildRequest(*codebuild.StartBuildInput) (*request.Request, *codebuild.StartBuildOutput) + + StartBuild(*codebuild.StartBuildInput) (*codebuild.StartBuildOutput, error) + + StopBuildRequest(*codebuild.StopBuildInput) (*request.Request, *codebuild.StopBuildOutput) + + StopBuild(*codebuild.StopBuildInput) (*codebuild.StopBuildOutput, error) + + UpdateProjectRequest(*codebuild.UpdateProjectInput) (*request.Request, *codebuild.UpdateProjectOutput) + + UpdateProject(*codebuild.UpdateProjectInput) (*codebuild.UpdateProjectOutput, error) +} + +var _ CodeBuildAPI = (*codebuild.CodeBuild)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codebuild/errors.go b/vendor/github.com/aws/aws-sdk-go/service/codebuild/errors.go new file mode 100644 index 000000000..88cfe77ad --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/codebuild/errors.go @@ -0,0 +1,31 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package codebuild + +const ( + + // ErrCodeAccountLimitExceededException for service response error code + // "AccountLimitExceededException". + // + // An AWS service limit was exceeded for the calling AWS account. + ErrCodeAccountLimitExceededException = "AccountLimitExceededException" + + // ErrCodeInvalidInputException for service response error code + // "InvalidInputException". + // + // The input value that was provided is not valid. + ErrCodeInvalidInputException = "InvalidInputException" + + // ErrCodeResourceAlreadyExistsException for service response error code + // "ResourceAlreadyExistsException". + // + // The specified AWS resource cannot be created, because an AWS resource with + // the same settings already exists. + ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The specified AWS resource cannot be found. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codebuild/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/codebuild/examples_test.go new file mode 100644 index 000000000..73cc91da7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/codebuild/examples_test.go @@ -0,0 +1,354 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package codebuild_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/codebuild" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExampleCodeBuild_BatchGetBuilds() { + sess := session.Must(session.NewSession()) + + svc := codebuild.New(sess) + + params := &codebuild.BatchGetBuildsInput{ + Ids: []*string{ // Required + aws.String("NonEmptyString"), // Required + // More values... + }, + } + resp, err := svc.BatchGetBuilds(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCodeBuild_BatchGetProjects() { + sess := session.Must(session.NewSession()) + + svc := codebuild.New(sess) + + params := &codebuild.BatchGetProjectsInput{ + Names: []*string{ // Required + aws.String("NonEmptyString"), // Required + // More values... + }, + } + resp, err := svc.BatchGetProjects(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCodeBuild_CreateProject() { + sess := session.Must(session.NewSession()) + + svc := codebuild.New(sess) + + params := &codebuild.CreateProjectInput{ + Artifacts: &codebuild.ProjectArtifacts{ // Required + Type: aws.String("ArtifactsType"), // Required + Location: aws.String("String"), + Name: aws.String("String"), + NamespaceType: aws.String("ArtifactNamespace"), + Packaging: aws.String("ArtifactPackaging"), + Path: aws.String("String"), + }, + Environment: &codebuild.ProjectEnvironment{ // Required + ComputeType: aws.String("ComputeType"), // Required + Image: aws.String("NonEmptyString"), // Required + Type: aws.String("EnvironmentType"), // Required + EnvironmentVariables: []*codebuild.EnvironmentVariable{ + { // Required + Name: aws.String("NonEmptyString"), // Required + Value: aws.String("String"), // Required + }, + // More values... + }, + }, + Name: aws.String("ProjectName"), // Required + Source: &codebuild.ProjectSource{ // Required + Type: aws.String("SourceType"), // Required + Auth: &codebuild.SourceAuth{ + Type: aws.String("SourceAuthType"), // Required + Resource: aws.String("String"), + }, + Buildspec: aws.String("String"), + Location: aws.String("String"), + }, + Description: aws.String("ProjectDescription"), + EncryptionKey: aws.String("NonEmptyString"), + ServiceRole: aws.String("NonEmptyString"), + Tags: []*codebuild.Tag{ + { // Required + Key: aws.String("KeyInput"), + Value: aws.String("ValueInput"), + }, + // More values... + }, + TimeoutInMinutes: aws.Int64(1), + } + resp, err := svc.CreateProject(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCodeBuild_DeleteProject() { + sess := session.Must(session.NewSession()) + + svc := codebuild.New(sess) + + params := &codebuild.DeleteProjectInput{ + Name: aws.String("NonEmptyString"), // Required + } + resp, err := svc.DeleteProject(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCodeBuild_ListBuilds() { + sess := session.Must(session.NewSession()) + + svc := codebuild.New(sess) + + params := &codebuild.ListBuildsInput{ + NextToken: aws.String("String"), + SortOrder: aws.String("SortOrderType"), + } + resp, err := svc.ListBuilds(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCodeBuild_ListBuildsForProject() { + sess := session.Must(session.NewSession()) + + svc := codebuild.New(sess) + + params := &codebuild.ListBuildsForProjectInput{ + ProjectName: aws.String("NonEmptyString"), // Required + NextToken: aws.String("String"), + SortOrder: aws.String("SortOrderType"), + } + resp, err := svc.ListBuildsForProject(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCodeBuild_ListCuratedEnvironmentImages() { + sess := session.Must(session.NewSession()) + + svc := codebuild.New(sess) + + var params *codebuild.ListCuratedEnvironmentImagesInput + resp, err := svc.ListCuratedEnvironmentImages(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCodeBuild_ListProjects() { + sess := session.Must(session.NewSession()) + + svc := codebuild.New(sess) + + params := &codebuild.ListProjectsInput{ + NextToken: aws.String("NonEmptyString"), + SortBy: aws.String("ProjectSortByType"), + SortOrder: aws.String("SortOrderType"), + } + resp, err := svc.ListProjects(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCodeBuild_StartBuild() { + sess := session.Must(session.NewSession()) + + svc := codebuild.New(sess) + + params := &codebuild.StartBuildInput{ + ProjectName: aws.String("NonEmptyString"), // Required + ArtifactsOverride: &codebuild.ProjectArtifacts{ + Type: aws.String("ArtifactsType"), // Required + Location: aws.String("String"), + Name: aws.String("String"), + NamespaceType: aws.String("ArtifactNamespace"), + Packaging: aws.String("ArtifactPackaging"), + Path: aws.String("String"), + }, + BuildspecOverride: aws.String("String"), + EnvironmentVariablesOverride: []*codebuild.EnvironmentVariable{ + { // Required + Name: aws.String("NonEmptyString"), // Required + Value: aws.String("String"), // Required + }, + // More values... + }, + SourceVersion: aws.String("String"), + TimeoutInMinutesOverride: aws.Int64(1), + } + resp, err := svc.StartBuild(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCodeBuild_StopBuild() { + sess := session.Must(session.NewSession()) + + svc := codebuild.New(sess) + + params := &codebuild.StopBuildInput{ + Id: aws.String("NonEmptyString"), // Required + } + resp, err := svc.StopBuild(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCodeBuild_UpdateProject() { + sess := session.Must(session.NewSession()) + + svc := codebuild.New(sess) + + params := &codebuild.UpdateProjectInput{ + Name: aws.String("NonEmptyString"), // Required + Artifacts: &codebuild.ProjectArtifacts{ + Type: aws.String("ArtifactsType"), // Required + Location: aws.String("String"), + Name: aws.String("String"), + NamespaceType: aws.String("ArtifactNamespace"), + Packaging: aws.String("ArtifactPackaging"), + Path: aws.String("String"), + }, + Description: aws.String("ProjectDescription"), + EncryptionKey: aws.String("NonEmptyString"), + Environment: &codebuild.ProjectEnvironment{ + ComputeType: aws.String("ComputeType"), // Required + Image: aws.String("NonEmptyString"), // Required + Type: aws.String("EnvironmentType"), // Required + EnvironmentVariables: []*codebuild.EnvironmentVariable{ + { // Required + Name: aws.String("NonEmptyString"), // Required + Value: aws.String("String"), // Required + }, + // More values... + }, + }, + ServiceRole: aws.String("NonEmptyString"), + Source: &codebuild.ProjectSource{ + Type: aws.String("SourceType"), // Required + Auth: &codebuild.SourceAuth{ + Type: aws.String("SourceAuthType"), // Required + Resource: aws.String("String"), + }, + Buildspec: aws.String("String"), + Location: aws.String("String"), + }, + Tags: []*codebuild.Tag{ + { // Required + Key: aws.String("KeyInput"), + Value: aws.String("ValueInput"), + }, + // More values... + }, + TimeoutInMinutes: aws.Int64(1), + } + resp, err := svc.UpdateProject(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/codebuild/service.go b/vendor/github.com/aws/aws-sdk-go/service/codebuild/service.go new file mode 100644 index 000000000..41d6dd7e7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/codebuild/service.go @@ -0,0 +1,136 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package codebuild + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" +) + +// AWS CodeBuild is a fully managed build service in the cloud. AWS CodeBuild +// compiles your source code, runs unit tests, and produces artifacts that are +// ready to deploy. AWS CodeBuild eliminates the need to provision, manage, +// and scale your own build servers. It provides prepackaged build environments +// for the most popular programming languages and build tools, such as Apach +// Maven, Gradle, and more. You can also fully customize build environments +// in AWS CodeBuild to use your own build tools. AWS CodeBuild scales automatically +// to meet peak build requests, and you pay only for the build time you consume. +// For more information about AWS CodeBuild, see the AWS CodeBuild User Guide. +// +// AWS CodeBuild supports these operations: +// +// * BatchGetProjects: Gets information about one or more build projects. +// A build project defines how AWS CodeBuild will run a build. This includes +// information such as where to get the source code to build, the build environment +// to use, the build commands to run, and where to store the build output. +// A build environment represents a combination of operating system, programming +// language runtime, and tools that AWS CodeBuild will use to run a build. +// Also, you can add tags to build projects to help manage your resources +// and costs. +// +// * CreateProject: Creates a build project. +// +// * DeleteProject: Deletes a build project. +// +// * ListProjects: Gets a list of build project names, with each build project +// name representing a single build project. +// +// * UpdateProject: Changes the settings of an existing build project. +// +// * BatchGetBuilds: Gets information about one or more builds. +// +// * ListBuilds: Gets a list of build IDs, with each build ID representing +// a single build. +// +// * ListBuildsForProject: Gets a list of build IDs for the specified build +// project, with each build ID representing a single build. +// +// * StartBuild: Starts running a build. +// +// * StopBuild: Attempts to stop running a build. +// +// * ListCuratedEnvironmentImages: Gets information about Docker images that +// are managed by AWS CodeBuild. +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06 +type CodeBuild struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "codebuild" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the CodeBuild client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a CodeBuild client from just a session. +// svc := codebuild.New(mySession) +// +// // Create a CodeBuild client with additional configuration +// svc := codebuild.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *CodeBuild { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CodeBuild { + svc := &CodeBuild{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2016-10-06", + JSONVersion: "1.1", + TargetPrefix: "CodeBuild_20161006", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a CodeBuild operation and runs any +// custom request initialization. +func (c *CodeBuild) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/codecommit/api.go b/vendor/github.com/aws/aws-sdk-go/service/codecommit/api.go index 504b5addb..47ab5eab2 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codecommit/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codecommit/api.go @@ -4,6 +4,7 @@ package codecommit import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws/awsutil" @@ -38,6 +39,7 @@ const opBatchGetRepositories = "BatchGetRepositories" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetRepositories func (c *CodeCommit) BatchGetRepositoriesRequest(input *BatchGetRepositoriesInput) (req *request.Request, output *BatchGetRepositoriesOutput) { op := &request.Operation{ Name: opBatchGetRepositories, @@ -49,9 +51,8 @@ func (c *CodeCommit) BatchGetRepositoriesRequest(input *BatchGetRepositoriesInpu input = &BatchGetRepositoriesInput{} } - req = c.newRequest(op, input, output) output = &BatchGetRepositoriesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -73,35 +74,36 @@ func (c *CodeCommit) BatchGetRepositoriesRequest(input *BatchGetRepositoriesInpu // API operation BatchGetRepositories for usage and error information. // // Returned Error Codes: -// * RepositoryNamesRequiredException +// * ErrCodeRepositoryNamesRequiredException "RepositoryNamesRequiredException" // A repository names object is required but was not specified. // -// * MaximumRepositoryNamesExceededException +// * ErrCodeMaximumRepositoryNamesExceededException "MaximumRepositoryNamesExceededException" // The maximum number of allowed repository names was exceeded. Currently, this // number is 25. // -// * InvalidRepositoryNameException +// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" // At least one specified repository name is not valid. // // This exception only occurs when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * EncryptionIntegrityChecksFailedException +// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" // An encryption integrity check failed. // -// * EncryptionKeyAccessDeniedException +// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" // An encryption key could not be accessed. // -// * EncryptionKeyDisabledException +// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" // The encryption key is disabled. // -// * EncryptionKeyNotFoundException +// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" // No encryption key was found. // -// * EncryptionKeyUnavailableException +// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" // The encryption key is not available. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetRepositories func (c *CodeCommit) BatchGetRepositories(input *BatchGetRepositoriesInput) (*BatchGetRepositoriesOutput, error) { req, out := c.BatchGetRepositoriesRequest(input) err := req.Send() @@ -134,6 +136,7 @@ const opCreateBranch = "CreateBranch" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateBranch func (c *CodeCommit) CreateBranchRequest(input *CreateBranchInput) (req *request.Request, output *CreateBranchOutput) { op := &request.Operation{ Name: opCreateBranch, @@ -145,11 +148,10 @@ func (c *CodeCommit) CreateBranchRequest(input *CreateBranchInput) (req *request input = &CreateBranchInput{} } + output = &CreateBranchOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CreateBranchOutput{} - req.Data = output return } @@ -157,8 +159,8 @@ func (c *CodeCommit) CreateBranchRequest(input *CreateBranchInput) (req *request // // Creates a new branch in a repository and points the branch to a commit. // -// Calling the create branch operation does not set a repository's default -// branch. To do this, call the update default branch operation. +// Calling the create branch operation does not set a repository's default branch. +// To do this, call the update default branch operation. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -168,53 +170,54 @@ func (c *CodeCommit) CreateBranchRequest(input *CreateBranchInput) (req *request // API operation CreateBranch for usage and error information. // // Returned Error Codes: -// * RepositoryNameRequiredException +// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" // A repository name is required but was not specified. // -// * InvalidRepositoryNameException +// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" // At least one specified repository name is not valid. // // This exception only occurs when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * RepositoryDoesNotExistException +// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" // The specified repository does not exist. // -// * BranchNameRequiredException +// * ErrCodeBranchNameRequiredException "BranchNameRequiredException" // A branch name is required but was not specified. // -// * BranchNameExistsException +// * ErrCodeBranchNameExistsException "BranchNameExistsException" // The specified branch name already exists. // -// * InvalidBranchNameException +// * ErrCodeInvalidBranchNameException "InvalidBranchNameException" // The specified branch name is not valid. // -// * CommitIdRequiredException +// * ErrCodeCommitIdRequiredException "CommitIdRequiredException" // A commit ID was not specified. // -// * CommitDoesNotExistException +// * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" // The specified commit does not exist or no commit was specified, and the specified // repository has no default branch. // -// * InvalidCommitIdException +// * ErrCodeInvalidCommitIdException "InvalidCommitIdException" // The specified commit ID is not valid. // -// * EncryptionIntegrityChecksFailedException +// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" // An encryption integrity check failed. // -// * EncryptionKeyAccessDeniedException +// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" // An encryption key could not be accessed. // -// * EncryptionKeyDisabledException +// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" // The encryption key is disabled. // -// * EncryptionKeyNotFoundException +// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" // No encryption key was found. // -// * EncryptionKeyUnavailableException +// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" // The encryption key is not available. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateBranch func (c *CodeCommit) CreateBranch(input *CreateBranchInput) (*CreateBranchOutput, error) { req, out := c.CreateBranchRequest(input) err := req.Send() @@ -247,6 +250,7 @@ const opCreateRepository = "CreateRepository" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateRepository func (c *CodeCommit) CreateRepositoryRequest(input *CreateRepositoryInput) (req *request.Request, output *CreateRepositoryOutput) { op := &request.Operation{ Name: opCreateRepository, @@ -258,9 +262,8 @@ func (c *CodeCommit) CreateRepositoryRequest(input *CreateRepositoryInput) (req input = &CreateRepositoryInput{} } - req = c.newRequest(op, input, output) output = &CreateRepositoryOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -276,40 +279,41 @@ func (c *CodeCommit) CreateRepositoryRequest(input *CreateRepositoryInput) (req // API operation CreateRepository for usage and error information. // // Returned Error Codes: -// * RepositoryNameExistsException +// * ErrCodeRepositoryNameExistsException "RepositoryNameExistsException" // The specified repository name already exists. // -// * RepositoryNameRequiredException +// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" // A repository name is required but was not specified. // -// * InvalidRepositoryNameException +// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" // At least one specified repository name is not valid. // // This exception only occurs when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * InvalidRepositoryDescriptionException +// * ErrCodeInvalidRepositoryDescriptionException "InvalidRepositoryDescriptionException" // The specified repository description is not valid. // -// * RepositoryLimitExceededException +// * ErrCodeRepositoryLimitExceededException "RepositoryLimitExceededException" // A repository resource limit was exceeded. // -// * EncryptionIntegrityChecksFailedException +// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" // An encryption integrity check failed. // -// * EncryptionKeyAccessDeniedException +// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" // An encryption key could not be accessed. // -// * EncryptionKeyDisabledException +// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" // The encryption key is disabled. // -// * EncryptionKeyNotFoundException +// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" // No encryption key was found. // -// * EncryptionKeyUnavailableException +// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" // The encryption key is not available. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateRepository func (c *CodeCommit) CreateRepository(input *CreateRepositoryInput) (*CreateRepositoryOutput, error) { req, out := c.CreateRepositoryRequest(input) err := req.Send() @@ -342,6 +346,7 @@ const opDeleteRepository = "DeleteRepository" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteRepository func (c *CodeCommit) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req *request.Request, output *DeleteRepositoryOutput) { op := &request.Operation{ Name: opDeleteRepository, @@ -353,9 +358,8 @@ func (c *CodeCommit) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req input = &DeleteRepositoryInput{} } - req = c.newRequest(op, input, output) output = &DeleteRepositoryOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -364,8 +368,8 @@ func (c *CodeCommit) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req // Deletes a repository. If a specified repository was already deleted, a null // repository ID will be returned. // -// Deleting a repository also deletes all associated objects and metadata. -// After a repository is deleted, all future push calls to the deleted repository +// Deleting a repository also deletes all associated objects and metadata. After +// a repository is deleted, all future push calls to the deleted repository // will fail. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -376,37 +380,142 @@ func (c *CodeCommit) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req // API operation DeleteRepository for usage and error information. // // Returned Error Codes: -// * RepositoryNameRequiredException +// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" // A repository name is required but was not specified. // -// * InvalidRepositoryNameException +// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" // At least one specified repository name is not valid. // // This exception only occurs when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * EncryptionIntegrityChecksFailedException +// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" // An encryption integrity check failed. // -// * EncryptionKeyAccessDeniedException +// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" // An encryption key could not be accessed. // -// * EncryptionKeyDisabledException +// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" // The encryption key is disabled. // -// * EncryptionKeyNotFoundException +// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" // No encryption key was found. // -// * EncryptionKeyUnavailableException +// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" // The encryption key is not available. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteRepository func (c *CodeCommit) DeleteRepository(input *DeleteRepositoryInput) (*DeleteRepositoryOutput, error) { req, out := c.DeleteRepositoryRequest(input) err := req.Send() return out, err } +const opGetBlob = "GetBlob" + +// GetBlobRequest generates a "aws/request.Request" representing the +// client's request for the GetBlob operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetBlob for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetBlob method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetBlobRequest method. +// req, resp := client.GetBlobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBlob +func (c *CodeCommit) GetBlobRequest(input *GetBlobInput) (req *request.Request, output *GetBlobOutput) { + op := &request.Operation{ + Name: opGetBlob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetBlobInput{} + } + + output = &GetBlobOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetBlob API operation for AWS CodeCommit. +// +// Returns the base-64 encoded content of an individual blob within a repository. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation GetBlob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// A repository name is required but was not specified. +// +// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// At least one specified repository name is not valid. +// +// This exception only occurs when a specified repository name is not valid. +// Other exceptions occur when a required repository parameter is missing, or +// when a specified repository does not exist. +// +// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// The specified repository does not exist. +// +// * ErrCodeBlobIdRequiredException "BlobIdRequiredException" +// A blob ID is required but was not specified. +// +// * ErrCodeInvalidBlobIdException "InvalidBlobIdException" +// The specified blob is not valid. +// +// * ErrCodeBlobIdDoesNotExistException "BlobIdDoesNotExistException" +// The specified blob does not exist. +// +// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// An encryption integrity check failed. +// +// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// An encryption key could not be accessed. +// +// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// The encryption key is disabled. +// +// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// No encryption key was found. +// +// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// The encryption key is not available. +// +// * ErrCodeFileTooLargeException "FileTooLargeException" +// The specified file exceeds the file size limit for AWS CodeCommit. For more +// information about limits in AWS CodeCommit, see AWS CodeCommit User Guide +// (http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBlob +func (c *CodeCommit) GetBlob(input *GetBlobInput) (*GetBlobOutput, error) { + req, out := c.GetBlobRequest(input) + err := req.Send() + return out, err +} + const opGetBranch = "GetBranch" // GetBranchRequest generates a "aws/request.Request" representing the @@ -433,6 +542,7 @@ const opGetBranch = "GetBranch" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBranch func (c *CodeCommit) GetBranchRequest(input *GetBranchInput) (req *request.Request, output *GetBranchOutput) { op := &request.Operation{ Name: opGetBranch, @@ -444,9 +554,8 @@ func (c *CodeCommit) GetBranchRequest(input *GetBranchInput) (req *request.Reque input = &GetBranchInput{} } - req = c.newRequest(op, input, output) output = &GetBranchOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -463,43 +572,44 @@ func (c *CodeCommit) GetBranchRequest(input *GetBranchInput) (req *request.Reque // API operation GetBranch for usage and error information. // // Returned Error Codes: -// * RepositoryNameRequiredException +// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" // A repository name is required but was not specified. // -// * RepositoryDoesNotExistException +// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" // The specified repository does not exist. // -// * InvalidRepositoryNameException +// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" // At least one specified repository name is not valid. // // This exception only occurs when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * BranchNameRequiredException +// * ErrCodeBranchNameRequiredException "BranchNameRequiredException" // A branch name is required but was not specified. // -// * InvalidBranchNameException +// * ErrCodeInvalidBranchNameException "InvalidBranchNameException" // The specified branch name is not valid. // -// * BranchDoesNotExistException +// * ErrCodeBranchDoesNotExistException "BranchDoesNotExistException" // The specified branch does not exist. // -// * EncryptionIntegrityChecksFailedException +// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" // An encryption integrity check failed. // -// * EncryptionKeyAccessDeniedException +// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" // An encryption key could not be accessed. // -// * EncryptionKeyDisabledException +// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" // The encryption key is disabled. // -// * EncryptionKeyNotFoundException +// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" // No encryption key was found. // -// * EncryptionKeyUnavailableException +// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" // The encryption key is not available. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBranch func (c *CodeCommit) GetBranch(input *GetBranchInput) (*GetBranchOutput, error) { req, out := c.GetBranchRequest(input) err := req.Send() @@ -532,6 +642,7 @@ const opGetCommit = "GetCommit" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommit func (c *CodeCommit) GetCommitRequest(input *GetCommitInput) (req *request.Request, output *GetCommitOutput) { op := &request.Operation{ Name: opGetCommit, @@ -543,9 +654,8 @@ func (c *CodeCommit) GetCommitRequest(input *GetCommitInput) (req *request.Reque input = &GetCommitInput{} } - req = c.newRequest(op, input, output) output = &GetCommitOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -562,49 +672,198 @@ func (c *CodeCommit) GetCommitRequest(input *GetCommitInput) (req *request.Reque // API operation GetCommit for usage and error information. // // Returned Error Codes: -// * RepositoryNameRequiredException +// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" // A repository name is required but was not specified. // -// * InvalidRepositoryNameException +// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" // At least one specified repository name is not valid. // // This exception only occurs when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * RepositoryDoesNotExistException +// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" // The specified repository does not exist. // -// * CommitIdRequiredException +// * ErrCodeCommitIdRequiredException "CommitIdRequiredException" // A commit ID was not specified. // -// * InvalidCommitIdException +// * ErrCodeInvalidCommitIdException "InvalidCommitIdException" // The specified commit ID is not valid. // -// * CommitIdDoesNotExistException +// * ErrCodeCommitIdDoesNotExistException "CommitIdDoesNotExistException" // The specified commit ID does not exist. // -// * EncryptionIntegrityChecksFailedException +// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" // An encryption integrity check failed. // -// * EncryptionKeyAccessDeniedException +// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" // An encryption key could not be accessed. // -// * EncryptionKeyDisabledException +// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" // The encryption key is disabled. // -// * EncryptionKeyNotFoundException +// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" // No encryption key was found. // -// * EncryptionKeyUnavailableException +// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" // The encryption key is not available. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommit func (c *CodeCommit) GetCommit(input *GetCommitInput) (*GetCommitOutput, error) { req, out := c.GetCommitRequest(input) err := req.Send() return out, err } +const opGetDifferences = "GetDifferences" + +// GetDifferencesRequest generates a "aws/request.Request" representing the +// client's request for the GetDifferences operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetDifferences for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetDifferences method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetDifferencesRequest method. +// req, resp := client.GetDifferencesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetDifferences +func (c *CodeCommit) GetDifferencesRequest(input *GetDifferencesInput) (req *request.Request, output *GetDifferencesOutput) { + op := &request.Operation{ + Name: opGetDifferences, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &GetDifferencesInput{} + } + + output = &GetDifferencesOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDifferences API operation for AWS CodeCommit. +// +// Returns information about the differences in a valid commit specifier (such +// as a branch, tag, HEAD, commit ID or other fully qualified reference). Results +// can be limited to a specified path. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation GetDifferences for usage and error information. +// +// Returned Error Codes: +// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// A repository name is required but was not specified. +// +// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// The specified repository does not exist. +// +// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// At least one specified repository name is not valid. +// +// This exception only occurs when a specified repository name is not valid. +// Other exceptions occur when a required repository parameter is missing, or +// when a specified repository does not exist. +// +// * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" +// The specified continuation token is not valid. +// +// * ErrCodeInvalidMaxResultsException "InvalidMaxResultsException" +// The specified number of maximum results is not valid. +// +// * ErrCodeInvalidCommitIdException "InvalidCommitIdException" +// The specified commit ID is not valid. +// +// * ErrCodeCommitRequiredException "CommitRequiredException" +// A commit was not specified. +// +// * ErrCodeInvalidCommitException "InvalidCommitException" +// The specified commit is not valid. +// +// * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" +// The specified commit does not exist or no commit was specified, and the specified +// repository has no default branch. +// +// * ErrCodeInvalidPathException "InvalidPathException" +// The specified path is not valid. +// +// * ErrCodePathDoesNotExistException "PathDoesNotExistException" +// The specified path does not exist. +// +// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// An encryption integrity check failed. +// +// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// An encryption key could not be accessed. +// +// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// The encryption key is disabled. +// +// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// No encryption key was found. +// +// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// The encryption key is not available. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetDifferences +func (c *CodeCommit) GetDifferences(input *GetDifferencesInput) (*GetDifferencesOutput, error) { + req, out := c.GetDifferencesRequest(input) + err := req.Send() + return out, err +} + +// GetDifferencesPages iterates over the pages of a GetDifferences operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetDifferences method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a GetDifferences operation. +// pageNum := 0 +// err := client.GetDifferencesPages(params, +// func(page *GetDifferencesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CodeCommit) GetDifferencesPages(input *GetDifferencesInput, fn func(p *GetDifferencesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.GetDifferencesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*GetDifferencesOutput), lastPage) + }) +} + const opGetRepository = "GetRepository" // GetRepositoryRequest generates a "aws/request.Request" representing the @@ -631,6 +890,7 @@ const opGetRepository = "GetRepository" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepository func (c *CodeCommit) GetRepositoryRequest(input *GetRepositoryInput) (req *request.Request, output *GetRepositoryOutput) { op := &request.Operation{ Name: opGetRepository, @@ -642,9 +902,8 @@ func (c *CodeCommit) GetRepositoryRequest(input *GetRepositoryInput) (req *reque input = &GetRepositoryInput{} } - req = c.newRequest(op, input, output) output = &GetRepositoryOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -666,34 +925,35 @@ func (c *CodeCommit) GetRepositoryRequest(input *GetRepositoryInput) (req *reque // API operation GetRepository for usage and error information. // // Returned Error Codes: -// * RepositoryNameRequiredException +// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" // A repository name is required but was not specified. // -// * RepositoryDoesNotExistException +// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" // The specified repository does not exist. // -// * InvalidRepositoryNameException +// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" // At least one specified repository name is not valid. // // This exception only occurs when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * EncryptionIntegrityChecksFailedException +// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" // An encryption integrity check failed. // -// * EncryptionKeyAccessDeniedException +// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" // An encryption key could not be accessed. // -// * EncryptionKeyDisabledException +// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" // The encryption key is disabled. // -// * EncryptionKeyNotFoundException +// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" // No encryption key was found. // -// * EncryptionKeyUnavailableException +// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" // The encryption key is not available. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepository func (c *CodeCommit) GetRepository(input *GetRepositoryInput) (*GetRepositoryOutput, error) { req, out := c.GetRepositoryRequest(input) err := req.Send() @@ -726,6 +986,7 @@ const opGetRepositoryTriggers = "GetRepositoryTriggers" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepositoryTriggers func (c *CodeCommit) GetRepositoryTriggersRequest(input *GetRepositoryTriggersInput) (req *request.Request, output *GetRepositoryTriggersOutput) { op := &request.Operation{ Name: opGetRepositoryTriggers, @@ -737,9 +998,8 @@ func (c *CodeCommit) GetRepositoryTriggersRequest(input *GetRepositoryTriggersIn input = &GetRepositoryTriggersInput{} } - req = c.newRequest(op, input, output) output = &GetRepositoryTriggersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -755,34 +1015,35 @@ func (c *CodeCommit) GetRepositoryTriggersRequest(input *GetRepositoryTriggersIn // API operation GetRepositoryTriggers for usage and error information. // // Returned Error Codes: -// * RepositoryNameRequiredException +// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" // A repository name is required but was not specified. // -// * InvalidRepositoryNameException +// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" // At least one specified repository name is not valid. // // This exception only occurs when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * RepositoryDoesNotExistException +// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" // The specified repository does not exist. // -// * EncryptionIntegrityChecksFailedException +// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" // An encryption integrity check failed. // -// * EncryptionKeyAccessDeniedException +// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" // An encryption key could not be accessed. // -// * EncryptionKeyDisabledException +// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" // The encryption key is disabled. // -// * EncryptionKeyNotFoundException +// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" // No encryption key was found. // -// * EncryptionKeyUnavailableException +// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" // The encryption key is not available. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepositoryTriggers func (c *CodeCommit) GetRepositoryTriggers(input *GetRepositoryTriggersInput) (*GetRepositoryTriggersOutput, error) { req, out := c.GetRepositoryTriggersRequest(input) err := req.Send() @@ -815,6 +1076,7 @@ const opListBranches = "ListBranches" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListBranches func (c *CodeCommit) ListBranchesRequest(input *ListBranchesInput) (req *request.Request, output *ListBranchesOutput) { op := &request.Operation{ Name: opListBranches, @@ -832,9 +1094,8 @@ func (c *CodeCommit) ListBranchesRequest(input *ListBranchesInput) (req *request input = &ListBranchesInput{} } - req = c.newRequest(op, input, output) output = &ListBranchesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -850,37 +1111,38 @@ func (c *CodeCommit) ListBranchesRequest(input *ListBranchesInput) (req *request // API operation ListBranches for usage and error information. // // Returned Error Codes: -// * RepositoryNameRequiredException +// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" // A repository name is required but was not specified. // -// * RepositoryDoesNotExistException +// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" // The specified repository does not exist. // -// * InvalidRepositoryNameException +// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" // At least one specified repository name is not valid. // // This exception only occurs when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * EncryptionIntegrityChecksFailedException +// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" // An encryption integrity check failed. // -// * EncryptionKeyAccessDeniedException +// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" // An encryption key could not be accessed. // -// * EncryptionKeyDisabledException +// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" // The encryption key is disabled. // -// * EncryptionKeyNotFoundException +// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" // No encryption key was found. // -// * EncryptionKeyUnavailableException +// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" // The encryption key is not available. // -// * InvalidContinuationTokenException +// * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" // The specified continuation token is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListBranches func (c *CodeCommit) ListBranches(input *ListBranchesInput) (*ListBranchesOutput, error) { req, out := c.ListBranchesRequest(input) err := req.Send() @@ -938,6 +1200,7 @@ const opListRepositories = "ListRepositories" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListRepositories func (c *CodeCommit) ListRepositoriesRequest(input *ListRepositoriesInput) (req *request.Request, output *ListRepositoriesOutput) { op := &request.Operation{ Name: opListRepositories, @@ -955,9 +1218,8 @@ func (c *CodeCommit) ListRepositoriesRequest(input *ListRepositoriesInput) (req input = &ListRepositoriesInput{} } - req = c.newRequest(op, input, output) output = &ListRepositoriesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -973,15 +1235,16 @@ func (c *CodeCommit) ListRepositoriesRequest(input *ListRepositoriesInput) (req // API operation ListRepositories for usage and error information. // // Returned Error Codes: -// * InvalidSortByException +// * ErrCodeInvalidSortByException "InvalidSortByException" // The specified sort by value is not valid. // -// * InvalidOrderException +// * ErrCodeInvalidOrderException "InvalidOrderException" // The specified sort order is not valid. // -// * InvalidContinuationTokenException +// * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" // The specified continuation token is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListRepositories func (c *CodeCommit) ListRepositories(input *ListRepositoriesInput) (*ListRepositoriesOutput, error) { req, out := c.ListRepositoriesRequest(input) err := req.Send() @@ -1039,6 +1302,7 @@ const opPutRepositoryTriggers = "PutRepositoryTriggers" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutRepositoryTriggers func (c *CodeCommit) PutRepositoryTriggersRequest(input *PutRepositoryTriggersInput) (req *request.Request, output *PutRepositoryTriggersOutput) { op := &request.Operation{ Name: opPutRepositoryTriggers, @@ -1050,9 +1314,8 @@ func (c *CodeCommit) PutRepositoryTriggersRequest(input *PutRepositoryTriggersIn input = &PutRepositoryTriggersInput{} } - req = c.newRequest(op, input, output) output = &PutRepositoryTriggersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1069,79 +1332,80 @@ func (c *CodeCommit) PutRepositoryTriggersRequest(input *PutRepositoryTriggersIn // API operation PutRepositoryTriggers for usage and error information. // // Returned Error Codes: -// * RepositoryDoesNotExistException +// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" // The specified repository does not exist. // -// * RepositoryNameRequiredException +// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" // A repository name is required but was not specified. // -// * InvalidRepositoryNameException +// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" // At least one specified repository name is not valid. // // This exception only occurs when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * RepositoryTriggersListRequiredException +// * ErrCodeRepositoryTriggersListRequiredException "RepositoryTriggersListRequiredException" // The list of triggers for the repository is required but was not specified. // -// * MaximumRepositoryTriggersExceededException +// * ErrCodeMaximumRepositoryTriggersExceededException "MaximumRepositoryTriggersExceededException" // The number of triggers allowed for the repository was exceeded. // -// * InvalidRepositoryTriggerNameException +// * ErrCodeInvalidRepositoryTriggerNameException "InvalidRepositoryTriggerNameException" // The name of the trigger is not valid. // -// * InvalidRepositoryTriggerDestinationArnException +// * ErrCodeInvalidRepositoryTriggerDestinationArnException "InvalidRepositoryTriggerDestinationArnException" // The Amazon Resource Name (ARN) for the trigger is not valid for the specified // destination. The most common reason for this error is that the ARN does not // meet the requirements for the service type. // -// * InvalidRepositoryTriggerRegionException +// * ErrCodeInvalidRepositoryTriggerRegionException "InvalidRepositoryTriggerRegionException" // The region for the trigger target does not match the region for the repository. // Triggers must be created in the same region as the target for the trigger. // -// * InvalidRepositoryTriggerCustomDataException +// * ErrCodeInvalidRepositoryTriggerCustomDataException "InvalidRepositoryTriggerCustomDataException" // The custom data provided for the trigger is not valid. // -// * MaximumBranchesExceededException +// * ErrCodeMaximumBranchesExceededException "MaximumBranchesExceededException" // The number of branches for the trigger was exceeded. // -// * InvalidRepositoryTriggerBranchNameException +// * ErrCodeInvalidRepositoryTriggerBranchNameException "InvalidRepositoryTriggerBranchNameException" // One or more branch names specified for the trigger is not valid. // -// * InvalidRepositoryTriggerEventsException +// * ErrCodeInvalidRepositoryTriggerEventsException "InvalidRepositoryTriggerEventsException" // One or more events specified for the trigger is not valid. Check to make // sure that all events specified match the requirements for allowed events. // -// * RepositoryTriggerNameRequiredException +// * ErrCodeRepositoryTriggerNameRequiredException "RepositoryTriggerNameRequiredException" // A name for the trigger is required but was not specified. // -// * RepositoryTriggerDestinationArnRequiredException +// * ErrCodeRepositoryTriggerDestinationArnRequiredException "RepositoryTriggerDestinationArnRequiredException" // A destination ARN for the target service for the trigger is required but // was not specified. // -// * RepositoryTriggerBranchNameListRequiredException +// * ErrCodeRepositoryTriggerBranchNameListRequiredException "RepositoryTriggerBranchNameListRequiredException" // At least one branch name is required but was not specified in the trigger // configuration. // -// * RepositoryTriggerEventsListRequiredException +// * ErrCodeRepositoryTriggerEventsListRequiredException "RepositoryTriggerEventsListRequiredException" // At least one event for the trigger is required but was not specified. // -// * EncryptionIntegrityChecksFailedException +// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" // An encryption integrity check failed. // -// * EncryptionKeyAccessDeniedException +// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" // An encryption key could not be accessed. // -// * EncryptionKeyDisabledException +// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" // The encryption key is disabled. // -// * EncryptionKeyNotFoundException +// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" // No encryption key was found. // -// * EncryptionKeyUnavailableException +// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" // The encryption key is not available. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutRepositoryTriggers func (c *CodeCommit) PutRepositoryTriggers(input *PutRepositoryTriggersInput) (*PutRepositoryTriggersOutput, error) { req, out := c.PutRepositoryTriggersRequest(input) err := req.Send() @@ -1174,6 +1438,7 @@ const opTestRepositoryTriggers = "TestRepositoryTriggers" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/TestRepositoryTriggers func (c *CodeCommit) TestRepositoryTriggersRequest(input *TestRepositoryTriggersInput) (req *request.Request, output *TestRepositoryTriggersOutput) { op := &request.Operation{ Name: opTestRepositoryTriggers, @@ -1185,9 +1450,8 @@ func (c *CodeCommit) TestRepositoryTriggersRequest(input *TestRepositoryTriggers input = &TestRepositoryTriggersInput{} } - req = c.newRequest(op, input, output) output = &TestRepositoryTriggersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1206,79 +1470,80 @@ func (c *CodeCommit) TestRepositoryTriggersRequest(input *TestRepositoryTriggers // API operation TestRepositoryTriggers for usage and error information. // // Returned Error Codes: -// * RepositoryDoesNotExistException +// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" // The specified repository does not exist. // -// * RepositoryNameRequiredException +// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" // A repository name is required but was not specified. // -// * InvalidRepositoryNameException +// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" // At least one specified repository name is not valid. // // This exception only occurs when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * RepositoryTriggersListRequiredException +// * ErrCodeRepositoryTriggersListRequiredException "RepositoryTriggersListRequiredException" // The list of triggers for the repository is required but was not specified. // -// * MaximumRepositoryTriggersExceededException +// * ErrCodeMaximumRepositoryTriggersExceededException "MaximumRepositoryTriggersExceededException" // The number of triggers allowed for the repository was exceeded. // -// * InvalidRepositoryTriggerNameException +// * ErrCodeInvalidRepositoryTriggerNameException "InvalidRepositoryTriggerNameException" // The name of the trigger is not valid. // -// * InvalidRepositoryTriggerDestinationArnException +// * ErrCodeInvalidRepositoryTriggerDestinationArnException "InvalidRepositoryTriggerDestinationArnException" // The Amazon Resource Name (ARN) for the trigger is not valid for the specified // destination. The most common reason for this error is that the ARN does not // meet the requirements for the service type. // -// * InvalidRepositoryTriggerRegionException +// * ErrCodeInvalidRepositoryTriggerRegionException "InvalidRepositoryTriggerRegionException" // The region for the trigger target does not match the region for the repository. // Triggers must be created in the same region as the target for the trigger. // -// * InvalidRepositoryTriggerCustomDataException +// * ErrCodeInvalidRepositoryTriggerCustomDataException "InvalidRepositoryTriggerCustomDataException" // The custom data provided for the trigger is not valid. // -// * MaximumBranchesExceededException +// * ErrCodeMaximumBranchesExceededException "MaximumBranchesExceededException" // The number of branches for the trigger was exceeded. // -// * InvalidRepositoryTriggerBranchNameException +// * ErrCodeInvalidRepositoryTriggerBranchNameException "InvalidRepositoryTriggerBranchNameException" // One or more branch names specified for the trigger is not valid. // -// * InvalidRepositoryTriggerEventsException +// * ErrCodeInvalidRepositoryTriggerEventsException "InvalidRepositoryTriggerEventsException" // One or more events specified for the trigger is not valid. Check to make // sure that all events specified match the requirements for allowed events. // -// * RepositoryTriggerNameRequiredException +// * ErrCodeRepositoryTriggerNameRequiredException "RepositoryTriggerNameRequiredException" // A name for the trigger is required but was not specified. // -// * RepositoryTriggerDestinationArnRequiredException +// * ErrCodeRepositoryTriggerDestinationArnRequiredException "RepositoryTriggerDestinationArnRequiredException" // A destination ARN for the target service for the trigger is required but // was not specified. // -// * RepositoryTriggerBranchNameListRequiredException +// * ErrCodeRepositoryTriggerBranchNameListRequiredException "RepositoryTriggerBranchNameListRequiredException" // At least one branch name is required but was not specified in the trigger // configuration. // -// * RepositoryTriggerEventsListRequiredException +// * ErrCodeRepositoryTriggerEventsListRequiredException "RepositoryTriggerEventsListRequiredException" // At least one event for the trigger is required but was not specified. // -// * EncryptionIntegrityChecksFailedException +// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" // An encryption integrity check failed. // -// * EncryptionKeyAccessDeniedException +// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" // An encryption key could not be accessed. // -// * EncryptionKeyDisabledException +// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" // The encryption key is disabled. // -// * EncryptionKeyNotFoundException +// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" // No encryption key was found. // -// * EncryptionKeyUnavailableException +// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" // The encryption key is not available. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/TestRepositoryTriggers func (c *CodeCommit) TestRepositoryTriggers(input *TestRepositoryTriggersInput) (*TestRepositoryTriggersOutput, error) { req, out := c.TestRepositoryTriggersRequest(input) err := req.Send() @@ -1311,6 +1576,7 @@ const opUpdateDefaultBranch = "UpdateDefaultBranch" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateDefaultBranch func (c *CodeCommit) UpdateDefaultBranchRequest(input *UpdateDefaultBranchInput) (req *request.Request, output *UpdateDefaultBranchOutput) { op := &request.Operation{ Name: opUpdateDefaultBranch, @@ -1322,11 +1588,10 @@ func (c *CodeCommit) UpdateDefaultBranchRequest(input *UpdateDefaultBranchInput) input = &UpdateDefaultBranchInput{} } + output = &UpdateDefaultBranchOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateDefaultBranchOutput{} - req.Data = output return } @@ -1346,43 +1611,44 @@ func (c *CodeCommit) UpdateDefaultBranchRequest(input *UpdateDefaultBranchInput) // API operation UpdateDefaultBranch for usage and error information. // // Returned Error Codes: -// * RepositoryNameRequiredException +// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" // A repository name is required but was not specified. // -// * RepositoryDoesNotExistException +// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" // The specified repository does not exist. // -// * InvalidRepositoryNameException +// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" // At least one specified repository name is not valid. // // This exception only occurs when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * BranchNameRequiredException +// * ErrCodeBranchNameRequiredException "BranchNameRequiredException" // A branch name is required but was not specified. // -// * InvalidBranchNameException +// * ErrCodeInvalidBranchNameException "InvalidBranchNameException" // The specified branch name is not valid. // -// * BranchDoesNotExistException +// * ErrCodeBranchDoesNotExistException "BranchDoesNotExistException" // The specified branch does not exist. // -// * EncryptionIntegrityChecksFailedException +// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" // An encryption integrity check failed. // -// * EncryptionKeyAccessDeniedException +// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" // An encryption key could not be accessed. // -// * EncryptionKeyDisabledException +// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" // The encryption key is disabled. // -// * EncryptionKeyNotFoundException +// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" // No encryption key was found. // -// * EncryptionKeyUnavailableException +// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" // The encryption key is not available. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateDefaultBranch func (c *CodeCommit) UpdateDefaultBranch(input *UpdateDefaultBranchInput) (*UpdateDefaultBranchOutput, error) { req, out := c.UpdateDefaultBranchRequest(input) err := req.Send() @@ -1415,6 +1681,7 @@ const opUpdateRepositoryDescription = "UpdateRepositoryDescription" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryDescription func (c *CodeCommit) UpdateRepositoryDescriptionRequest(input *UpdateRepositoryDescriptionInput) (req *request.Request, output *UpdateRepositoryDescriptionOutput) { op := &request.Operation{ Name: opUpdateRepositoryDescription, @@ -1426,11 +1693,10 @@ func (c *CodeCommit) UpdateRepositoryDescriptionRequest(input *UpdateRepositoryD input = &UpdateRepositoryDescriptionInput{} } + output = &UpdateRepositoryDescriptionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateRepositoryDescriptionOutput{} - req.Data = output return } @@ -1452,37 +1718,38 @@ func (c *CodeCommit) UpdateRepositoryDescriptionRequest(input *UpdateRepositoryD // API operation UpdateRepositoryDescription for usage and error information. // // Returned Error Codes: -// * RepositoryNameRequiredException +// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" // A repository name is required but was not specified. // -// * RepositoryDoesNotExistException +// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" // The specified repository does not exist. // -// * InvalidRepositoryNameException +// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" // At least one specified repository name is not valid. // // This exception only occurs when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * InvalidRepositoryDescriptionException +// * ErrCodeInvalidRepositoryDescriptionException "InvalidRepositoryDescriptionException" // The specified repository description is not valid. // -// * EncryptionIntegrityChecksFailedException +// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" // An encryption integrity check failed. // -// * EncryptionKeyAccessDeniedException +// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" // An encryption key could not be accessed. // -// * EncryptionKeyDisabledException +// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" // The encryption key is disabled. // -// * EncryptionKeyNotFoundException +// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" // No encryption key was found. // -// * EncryptionKeyUnavailableException +// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" // The encryption key is not available. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryDescription func (c *CodeCommit) UpdateRepositoryDescription(input *UpdateRepositoryDescriptionInput) (*UpdateRepositoryDescriptionOutput, error) { req, out := c.UpdateRepositoryDescriptionRequest(input) err := req.Send() @@ -1515,6 +1782,7 @@ const opUpdateRepositoryName = "UpdateRepositoryName" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryName func (c *CodeCommit) UpdateRepositoryNameRequest(input *UpdateRepositoryNameInput) (req *request.Request, output *UpdateRepositoryNameOutput) { op := &request.Operation{ Name: opUpdateRepositoryName, @@ -1526,11 +1794,10 @@ func (c *CodeCommit) UpdateRepositoryNameRequest(input *UpdateRepositoryNameInpu input = &UpdateRepositoryNameInput{} } + output = &UpdateRepositoryNameOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateRepositoryNameOutput{} - req.Data = output return } @@ -1551,22 +1818,23 @@ func (c *CodeCommit) UpdateRepositoryNameRequest(input *UpdateRepositoryNameInpu // API operation UpdateRepositoryName for usage and error information. // // Returned Error Codes: -// * RepositoryDoesNotExistException +// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" // The specified repository does not exist. // -// * RepositoryNameExistsException +// * ErrCodeRepositoryNameExistsException "RepositoryNameExistsException" // The specified repository name already exists. // -// * RepositoryNameRequiredException +// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" // A repository name is required but was not specified. // -// * InvalidRepositoryNameException +// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" // At least one specified repository name is not valid. // // This exception only occurs when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryName func (c *CodeCommit) UpdateRepositoryName(input *UpdateRepositoryNameInput) (*UpdateRepositoryNameOutput, error) { req, out := c.UpdateRepositoryNameRequest(input) err := req.Send() @@ -1574,6 +1842,7 @@ func (c *CodeCommit) UpdateRepositoryName(input *UpdateRepositoryNameInput) (*Up } // Represents the input of a batch get repositories operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetRepositoriesInput type BatchGetRepositoriesInput struct { _ struct{} `type:"structure"` @@ -1606,7 +1875,14 @@ func (s *BatchGetRepositoriesInput) Validate() error { return nil } +// SetRepositoryNames sets the RepositoryNames field's value. +func (s *BatchGetRepositoriesInput) SetRepositoryNames(v []*string) *BatchGetRepositoriesInput { + s.RepositoryNames = v + return s +} + // Represents the output of a batch get repositories operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetRepositoriesOutput type BatchGetRepositoriesOutput struct { _ struct{} `type:"structure"` @@ -1627,7 +1903,71 @@ func (s BatchGetRepositoriesOutput) GoString() string { return s.String() } +// SetRepositories sets the Repositories field's value. +func (s *BatchGetRepositoriesOutput) SetRepositories(v []*RepositoryMetadata) *BatchGetRepositoriesOutput { + s.Repositories = v + return s +} + +// SetRepositoriesNotFound sets the RepositoriesNotFound field's value. +func (s *BatchGetRepositoriesOutput) SetRepositoriesNotFound(v []*string) *BatchGetRepositoriesOutput { + s.RepositoriesNotFound = v + return s +} + +// Returns information about a specific Git blob object. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BlobMetadata +type BlobMetadata struct { + _ struct{} `type:"structure"` + + // The full ID of the blob. + BlobId *string `locationName:"blobId" type:"string"` + + // The file mode permissions of the blob. File mode permission codes include: + // + // * 100644 indicates read/write + // + // * 100755 indicates read/write/execute + // + // * 160000 indicates a submodule + // + // * 120000 indicates a symlink + Mode *string `locationName:"mode" type:"string"` + + // The path to the blob and any associated file name, if any. + Path *string `locationName:"path" type:"string"` +} + +// String returns the string representation +func (s BlobMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BlobMetadata) GoString() string { + return s.String() +} + +// SetBlobId sets the BlobId field's value. +func (s *BlobMetadata) SetBlobId(v string) *BlobMetadata { + s.BlobId = &v + return s +} + +// SetMode sets the Mode field's value. +func (s *BlobMetadata) SetMode(v string) *BlobMetadata { + s.Mode = &v + return s +} + +// SetPath sets the Path field's value. +func (s *BlobMetadata) SetPath(v string) *BlobMetadata { + s.Path = &v + return s +} + // Returns information about a branch. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BranchInfo type BranchInfo struct { _ struct{} `type:"structure"` @@ -1648,23 +1988,42 @@ func (s BranchInfo) GoString() string { return s.String() } +// SetBranchName sets the BranchName field's value. +func (s *BranchInfo) SetBranchName(v string) *BranchInfo { + s.BranchName = &v + return s +} + +// SetCommitId sets the CommitId field's value. +func (s *BranchInfo) SetCommitId(v string) *BranchInfo { + s.CommitId = &v + return s +} + // Returns information about a specific commit. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/Commit type Commit struct { _ struct{} `type:"structure"` // Any additional data associated with the specified commit. AdditionalData *string `locationName:"additionalData" type:"string"` - // Information about the author of the specified commit. + // Information about the author of the specified commit. Information includes + // the date in timestamp format with GMT offset, the name of the author, and + // the email address for the author, as configured in Git. Author *UserInfo `locationName:"author" type:"structure"` // Information about the person who committed the specified commit, also known - // as the committer. For more information about the difference between an author - // and a committer in Git, see Viewing the Commit History (http://git-scm.com/book/ch2-3.html) + // as the committer. Information includes the date in timestamp format with + // GMT offset, the name of the committer, and the email address for the committer, + // as configured in Git. + // + // For more information about the difference between an author and a committer + // in Git, see Viewing the Commit History (http://git-scm.com/book/ch2-3.html) // in Pro Git by Scott Chacon and Ben Straub. Committer *UserInfo `locationName:"committer" type:"structure"` - // The message associated with the specified commit. + // The commit message associated with the specified commit. Message *string `locationName:"message" type:"string"` // The parent list for the specified commit. @@ -1684,7 +2043,44 @@ func (s Commit) GoString() string { return s.String() } +// SetAdditionalData sets the AdditionalData field's value. +func (s *Commit) SetAdditionalData(v string) *Commit { + s.AdditionalData = &v + return s +} + +// SetAuthor sets the Author field's value. +func (s *Commit) SetAuthor(v *UserInfo) *Commit { + s.Author = v + return s +} + +// SetCommitter sets the Committer field's value. +func (s *Commit) SetCommitter(v *UserInfo) *Commit { + s.Committer = v + return s +} + +// SetMessage sets the Message field's value. +func (s *Commit) SetMessage(v string) *Commit { + s.Message = &v + return s +} + +// SetParents sets the Parents field's value. +func (s *Commit) SetParents(v []*string) *Commit { + s.Parents = v + return s +} + +// SetTreeId sets the TreeId field's value. +func (s *Commit) SetTreeId(v string) *Commit { + s.TreeId = &v + return s +} + // Represents the input of a create branch operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateBranchInput type CreateBranchInput struct { _ struct{} `type:"structure"` @@ -1739,6 +2135,25 @@ func (s *CreateBranchInput) Validate() error { return nil } +// SetBranchName sets the BranchName field's value. +func (s *CreateBranchInput) SetBranchName(v string) *CreateBranchInput { + s.BranchName = &v + return s +} + +// SetCommitId sets the CommitId field's value. +func (s *CreateBranchInput) SetCommitId(v string) *CreateBranchInput { + s.CommitId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *CreateBranchInput) SetRepositoryName(v string) *CreateBranchInput { + s.RepositoryName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateBranchOutput type CreateBranchOutput struct { _ struct{} `type:"structure"` } @@ -1754,6 +2169,7 @@ func (s CreateBranchOutput) GoString() string { } // Represents the input of a create repository operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateRepositoryInput type CreateRepositoryInput struct { _ struct{} `type:"structure"` @@ -1804,7 +2220,20 @@ func (s *CreateRepositoryInput) Validate() error { return nil } +// SetRepositoryDescription sets the RepositoryDescription field's value. +func (s *CreateRepositoryInput) SetRepositoryDescription(v string) *CreateRepositoryInput { + s.RepositoryDescription = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *CreateRepositoryInput) SetRepositoryName(v string) *CreateRepositoryInput { + s.RepositoryName = &v + return s +} + // Represents the output of a create repository operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateRepositoryOutput type CreateRepositoryOutput struct { _ struct{} `type:"structure"` @@ -1822,7 +2251,14 @@ func (s CreateRepositoryOutput) GoString() string { return s.String() } +// SetRepositoryMetadata sets the RepositoryMetadata field's value. +func (s *CreateRepositoryOutput) SetRepositoryMetadata(v *RepositoryMetadata) *CreateRepositoryOutput { + s.RepositoryMetadata = v + return s +} + // Represents the input of a delete repository operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteRepositoryInput type DeleteRepositoryInput struct { _ struct{} `type:"structure"` @@ -1858,7 +2294,14 @@ func (s *DeleteRepositoryInput) Validate() error { return nil } +// SetRepositoryName sets the RepositoryName field's value. +func (s *DeleteRepositoryInput) SetRepositoryName(v string) *DeleteRepositoryInput { + s.RepositoryName = &v + return s +} + // Represents the output of a delete repository operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteRepositoryOutput type DeleteRepositoryOutput struct { _ struct{} `type:"structure"` @@ -1876,7 +2319,146 @@ func (s DeleteRepositoryOutput) GoString() string { return s.String() } -// Represents the input of a get branch operation. +// SetRepositoryId sets the RepositoryId field's value. +func (s *DeleteRepositoryOutput) SetRepositoryId(v string) *DeleteRepositoryOutput { + s.RepositoryId = &v + return s +} + +// Returns information about a set of differences for a commit specifier. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/Difference +type Difference struct { + _ struct{} `type:"structure"` + + // Information about an afterBlob data type object, including the ID, the file + // mode permission code, and the path. + AfterBlob *BlobMetadata `locationName:"afterBlob" type:"structure"` + + // Information about a beforeBlob data type object, including the ID, the file + // mode permission code, and the path. + BeforeBlob *BlobMetadata `locationName:"beforeBlob" type:"structure"` + + // Whether the change type of the difference is an addition (A), deletion (D), + // or modification (M). + ChangeType *string `locationName:"changeType" type:"string" enum:"ChangeTypeEnum"` +} + +// String returns the string representation +func (s Difference) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Difference) GoString() string { + return s.String() +} + +// SetAfterBlob sets the AfterBlob field's value. +func (s *Difference) SetAfterBlob(v *BlobMetadata) *Difference { + s.AfterBlob = v + return s +} + +// SetBeforeBlob sets the BeforeBlob field's value. +func (s *Difference) SetBeforeBlob(v *BlobMetadata) *Difference { + s.BeforeBlob = v + return s +} + +// SetChangeType sets the ChangeType field's value. +func (s *Difference) SetChangeType(v string) *Difference { + s.ChangeType = &v + return s +} + +// Represents the input of a get blob operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBlobInput +type GetBlobInput struct { + _ struct{} `type:"structure"` + + // The ID of the blob, which is its SHA-1 pointer. + // + // BlobId is a required field + BlobId *string `locationName:"blobId" type:"string" required:"true"` + + // The name of the repository that contains the blob. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetBlobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBlobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetBlobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetBlobInput"} + if s.BlobId == nil { + invalidParams.Add(request.NewErrParamRequired("BlobId")) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBlobId sets the BlobId field's value. +func (s *GetBlobInput) SetBlobId(v string) *GetBlobInput { + s.BlobId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetBlobInput) SetRepositoryName(v string) *GetBlobInput { + s.RepositoryName = &v + return s +} + +// Represents the output of a get blob operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBlobOutput +type GetBlobOutput struct { + _ struct{} `type:"structure"` + + // The content of the blob, usually a file. + // + // Content is automatically base64 encoded/decoded by the SDK. + // + // Content is a required field + Content []byte `locationName:"content" type:"blob" required:"true"` +} + +// String returns the string representation +func (s GetBlobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBlobOutput) GoString() string { + return s.String() +} + +// SetContent sets the Content field's value. +func (s *GetBlobOutput) SetContent(v []byte) *GetBlobOutput { + s.Content = v + return s +} + +// Represents the input of a get branch operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBranchInput type GetBranchInput struct { _ struct{} `type:"structure"` @@ -1914,7 +2496,20 @@ func (s *GetBranchInput) Validate() error { return nil } +// SetBranchName sets the BranchName field's value. +func (s *GetBranchInput) SetBranchName(v string) *GetBranchInput { + s.BranchName = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetBranchInput) SetRepositoryName(v string) *GetBranchInput { + s.RepositoryName = &v + return s +} + // Represents the output of a get branch operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBranchOutput type GetBranchOutput struct { _ struct{} `type:"structure"` @@ -1932,7 +2527,14 @@ func (s GetBranchOutput) GoString() string { return s.String() } +// SetBranch sets the Branch field's value. +func (s *GetBranchOutput) SetBranch(v *BranchInfo) *GetBranchOutput { + s.Branch = v + return s +} + // Represents the input of a get commit operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommitInput type GetCommitInput struct { _ struct{} `type:"structure"` @@ -1976,11 +2578,24 @@ func (s *GetCommitInput) Validate() error { return nil } +// SetCommitId sets the CommitId field's value. +func (s *GetCommitInput) SetCommitId(v string) *GetCommitInput { + s.CommitId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetCommitInput) SetRepositoryName(v string) *GetCommitInput { + s.RepositoryName = &v + return s +} + // Represents the output of a get commit operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommitOutput type GetCommitOutput struct { _ struct{} `type:"structure"` - // Information about the specified commit. + // A commit data type object that contains information about the specified commit. // // Commit is a required field Commit *Commit `locationName:"commit" type:"structure" required:"true"` @@ -1996,7 +2611,161 @@ func (s GetCommitOutput) GoString() string { return s.String() } +// SetCommit sets the Commit field's value. +func (s *GetCommitOutput) SetCommit(v *Commit) *GetCommitOutput { + s.Commit = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetDifferencesInput +type GetDifferencesInput struct { + _ struct{} `type:"structure"` + + // The branch, tag, HEAD, or other fully qualified reference used to identify + // a commit. + // + // AfterCommitSpecifier is a required field + AfterCommitSpecifier *string `locationName:"afterCommitSpecifier" type:"string" required:"true"` + + // The file path in which to check differences. Limits the results to this path. + // Can also be used to specify the changed name of a directory or folder, if + // it has changed. If not specified, differences will be shown for all paths. + AfterPath *string `locationName:"afterPath" type:"string"` + + // The branch, tag, HEAD, or other fully qualified reference used to identify + // a commit. For example, the full commit ID. Optional. If not specified, all + // changes prior to the afterCommitSpecifier value will be shown. If you do + // not use beforeCommitSpecifier in your request, consider limiting the results + // with maxResults. + BeforeCommitSpecifier *string `locationName:"beforeCommitSpecifier" type:"string"` + + // The file path in which to check for differences. Limits the results to this + // path. Can also be used to specify the previous name of a directory or folder. + // If beforePath and afterPath are not specified, differences will be shown + // for all paths. + BeforePath *string `locationName:"beforePath" type:"string"` + + // A non-negative integer used to limit the number of returned results. + MaxResults *int64 `type:"integer"` + + // An enumeration token that when provided in a request, returns the next batch + // of the results. + NextToken *string `type:"string"` + + // The name of the repository where you want to get differences. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetDifferencesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDifferencesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDifferencesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDifferencesInput"} + if s.AfterCommitSpecifier == nil { + invalidParams.Add(request.NewErrParamRequired("AfterCommitSpecifier")) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAfterCommitSpecifier sets the AfterCommitSpecifier field's value. +func (s *GetDifferencesInput) SetAfterCommitSpecifier(v string) *GetDifferencesInput { + s.AfterCommitSpecifier = &v + return s +} + +// SetAfterPath sets the AfterPath field's value. +func (s *GetDifferencesInput) SetAfterPath(v string) *GetDifferencesInput { + s.AfterPath = &v + return s +} + +// SetBeforeCommitSpecifier sets the BeforeCommitSpecifier field's value. +func (s *GetDifferencesInput) SetBeforeCommitSpecifier(v string) *GetDifferencesInput { + s.BeforeCommitSpecifier = &v + return s +} + +// SetBeforePath sets the BeforePath field's value. +func (s *GetDifferencesInput) SetBeforePath(v string) *GetDifferencesInput { + s.BeforePath = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetDifferencesInput) SetMaxResults(v int64) *GetDifferencesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetDifferencesInput) SetNextToken(v string) *GetDifferencesInput { + s.NextToken = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetDifferencesInput) SetRepositoryName(v string) *GetDifferencesInput { + s.RepositoryName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetDifferencesOutput +type GetDifferencesOutput struct { + _ struct{} `type:"structure"` + + // A differences data type object that contains information about the differences, + // including whether the difference is added, modified, or deleted (A, D, M). + Differences []*Difference `locationName:"differences" type:"list"` + + // An enumeration token that can be used in a request to return the next batch + // of the results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s GetDifferencesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDifferencesOutput) GoString() string { + return s.String() +} + +// SetDifferences sets the Differences field's value. +func (s *GetDifferencesOutput) SetDifferences(v []*Difference) *GetDifferencesOutput { + s.Differences = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetDifferencesOutput) SetNextToken(v string) *GetDifferencesOutput { + s.NextToken = &v + return s +} + // Represents the input of a get repository operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepositoryInput type GetRepositoryInput struct { _ struct{} `type:"structure"` @@ -2032,7 +2801,14 @@ func (s *GetRepositoryInput) Validate() error { return nil } +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetRepositoryInput) SetRepositoryName(v string) *GetRepositoryInput { + s.RepositoryName = &v + return s +} + // Represents the output of a get repository operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepositoryOutput type GetRepositoryOutput struct { _ struct{} `type:"structure"` @@ -2050,12 +2826,21 @@ func (s GetRepositoryOutput) GoString() string { return s.String() } +// SetRepositoryMetadata sets the RepositoryMetadata field's value. +func (s *GetRepositoryOutput) SetRepositoryMetadata(v *RepositoryMetadata) *GetRepositoryOutput { + s.RepositoryMetadata = v + return s +} + // Represents the input of a get repository triggers operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepositoryTriggersInput type GetRepositoryTriggersInput struct { _ struct{} `type:"structure"` // The name of the repository for which the trigger is configured. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` } // String returns the string representation @@ -2071,6 +2856,9 @@ func (s GetRepositoryTriggersInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *GetRepositoryTriggersInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetRepositoryTriggersInput"} + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) } @@ -2081,7 +2869,14 @@ func (s *GetRepositoryTriggersInput) Validate() error { return nil } +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetRepositoryTriggersInput) SetRepositoryName(v string) *GetRepositoryTriggersInput { + s.RepositoryName = &v + return s +} + // Represents the output of a get repository triggers operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepositoryTriggersOutput type GetRepositoryTriggersOutput struct { _ struct{} `type:"structure"` @@ -2102,7 +2897,20 @@ func (s GetRepositoryTriggersOutput) GoString() string { return s.String() } +// SetConfigurationId sets the ConfigurationId field's value. +func (s *GetRepositoryTriggersOutput) SetConfigurationId(v string) *GetRepositoryTriggersOutput { + s.ConfigurationId = &v + return s +} + +// SetTriggers sets the Triggers field's value. +func (s *GetRepositoryTriggersOutput) SetTriggers(v []*RepositoryTrigger) *GetRepositoryTriggersOutput { + s.Triggers = v + return s +} + // Represents the input of a list branches operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListBranchesInput type ListBranchesInput struct { _ struct{} `type:"structure"` @@ -2141,7 +2949,20 @@ func (s *ListBranchesInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *ListBranchesInput) SetNextToken(v string) *ListBranchesInput { + s.NextToken = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *ListBranchesInput) SetRepositoryName(v string) *ListBranchesInput { + s.RepositoryName = &v + return s +} + // Represents the output of a list branches operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListBranchesOutput type ListBranchesOutput struct { _ struct{} `type:"structure"` @@ -2162,7 +2983,20 @@ func (s ListBranchesOutput) GoString() string { return s.String() } +// SetBranches sets the Branches field's value. +func (s *ListBranchesOutput) SetBranches(v []*string) *ListBranchesOutput { + s.Branches = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBranchesOutput) SetNextToken(v string) *ListBranchesOutput { + s.NextToken = &v + return s +} + // Represents the input of a list repositories operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListRepositoriesInput type ListRepositoriesInput struct { _ struct{} `type:"structure"` @@ -2189,7 +3023,26 @@ func (s ListRepositoriesInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListRepositoriesInput) SetNextToken(v string) *ListRepositoriesInput { + s.NextToken = &v + return s +} + +// SetOrder sets the Order field's value. +func (s *ListRepositoriesInput) SetOrder(v string) *ListRepositoriesInput { + s.Order = &v + return s +} + +// SetSortBy sets the SortBy field's value. +func (s *ListRepositoriesInput) SetSortBy(v string) *ListRepositoriesInput { + s.SortBy = &v + return s +} + // Represents the output of a list repositories operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListRepositoriesOutput type ListRepositoriesOutput struct { _ struct{} `type:"structure"` @@ -2213,15 +3066,32 @@ func (s ListRepositoriesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListRepositoriesOutput) SetNextToken(v string) *ListRepositoriesOutput { + s.NextToken = &v + return s +} + +// SetRepositories sets the Repositories field's value. +func (s *ListRepositoriesOutput) SetRepositories(v []*RepositoryNameIdPair) *ListRepositoriesOutput { + s.Repositories = v + return s +} + // Represents the input ofa put repository triggers operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutRepositoryTriggersInput type PutRepositoryTriggersInput struct { _ struct{} `type:"structure"` // The name of the repository where you want to create or update the trigger. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` // The JSON block of configuration information for each trigger. - Triggers []*RepositoryTrigger `locationName:"triggers" type:"list"` + // + // Triggers is a required field + Triggers []*RepositoryTrigger `locationName:"triggers" type:"list" required:"true"` } // String returns the string representation @@ -2237,9 +3107,25 @@ func (s PutRepositoryTriggersInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *PutRepositoryTriggersInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "PutRepositoryTriggersInput"} + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) } + if s.Triggers == nil { + invalidParams.Add(request.NewErrParamRequired("Triggers")) + } + if s.Triggers != nil { + for i, v := range s.Triggers { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Triggers", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -2247,7 +3133,20 @@ func (s *PutRepositoryTriggersInput) Validate() error { return nil } +// SetRepositoryName sets the RepositoryName field's value. +func (s *PutRepositoryTriggersInput) SetRepositoryName(v string) *PutRepositoryTriggersInput { + s.RepositoryName = &v + return s +} + +// SetTriggers sets the Triggers field's value. +func (s *PutRepositoryTriggersInput) SetTriggers(v []*RepositoryTrigger) *PutRepositoryTriggersInput { + s.Triggers = v + return s +} + // Represents the output of a put repository triggers operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutRepositoryTriggersOutput type PutRepositoryTriggersOutput struct { _ struct{} `type:"structure"` @@ -2265,7 +3164,14 @@ func (s PutRepositoryTriggersOutput) GoString() string { return s.String() } +// SetConfigurationId sets the ConfigurationId field's value. +func (s *PutRepositoryTriggersOutput) SetConfigurationId(v string) *PutRepositoryTriggersOutput { + s.ConfigurationId = &v + return s +} + // Information about a repository. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/RepositoryMetadata type RepositoryMetadata struct { _ struct{} `type:"structure"` @@ -2310,7 +3216,68 @@ func (s RepositoryMetadata) GoString() string { return s.String() } +// SetAccountId sets the AccountId field's value. +func (s *RepositoryMetadata) SetAccountId(v string) *RepositoryMetadata { + s.AccountId = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *RepositoryMetadata) SetArn(v string) *RepositoryMetadata { + s.Arn = &v + return s +} + +// SetCloneUrlHttp sets the CloneUrlHttp field's value. +func (s *RepositoryMetadata) SetCloneUrlHttp(v string) *RepositoryMetadata { + s.CloneUrlHttp = &v + return s +} + +// SetCloneUrlSsh sets the CloneUrlSsh field's value. +func (s *RepositoryMetadata) SetCloneUrlSsh(v string) *RepositoryMetadata { + s.CloneUrlSsh = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *RepositoryMetadata) SetCreationDate(v time.Time) *RepositoryMetadata { + s.CreationDate = &v + return s +} + +// SetDefaultBranch sets the DefaultBranch field's value. +func (s *RepositoryMetadata) SetDefaultBranch(v string) *RepositoryMetadata { + s.DefaultBranch = &v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *RepositoryMetadata) SetLastModifiedDate(v time.Time) *RepositoryMetadata { + s.LastModifiedDate = &v + return s +} + +// SetRepositoryDescription sets the RepositoryDescription field's value. +func (s *RepositoryMetadata) SetRepositoryDescription(v string) *RepositoryMetadata { + s.RepositoryDescription = &v + return s +} + +// SetRepositoryId sets the RepositoryId field's value. +func (s *RepositoryMetadata) SetRepositoryId(v string) *RepositoryMetadata { + s.RepositoryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *RepositoryMetadata) SetRepositoryName(v string) *RepositoryMetadata { + s.RepositoryName = &v + return s +} + // Information about a repository name and ID. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/RepositoryNameIdPair type RepositoryNameIdPair struct { _ struct{} `type:"structure"` @@ -2331,7 +3298,20 @@ func (s RepositoryNameIdPair) GoString() string { return s.String() } +// SetRepositoryId sets the RepositoryId field's value. +func (s *RepositoryNameIdPair) SetRepositoryId(v string) *RepositoryNameIdPair { + s.RepositoryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *RepositoryNameIdPair) SetRepositoryName(v string) *RepositoryNameIdPair { + s.RepositoryName = &v + return s +} + // Information about a trigger for a repository. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/RepositoryTrigger type RepositoryTrigger struct { _ struct{} `type:"structure"` @@ -2345,16 +3325,23 @@ type RepositoryTrigger struct { // The ARN of the resource that is the target for a trigger. For example, the // ARN of a topic in Amazon Simple Notification Service (SNS). - DestinationArn *string `locationName:"destinationArn" type:"string"` + // + // DestinationArn is a required field + DestinationArn *string `locationName:"destinationArn" type:"string" required:"true"` // The repository events that will cause the trigger to run actions in another // service, such as sending a notification through Amazon Simple Notification - // Service (SNS). If no events are specified, the trigger will run for all repository - // events. - Events []*string `locationName:"events" type:"list"` + // Service (SNS). + // + // The valid value "all" cannot be used with any other values. + // + // Events is a required field + Events []*string `locationName:"events" type:"list" required:"true"` // The name of the trigger. - Name *string `locationName:"name" type:"string"` + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` } // String returns the string representation @@ -2367,7 +3354,57 @@ func (s RepositoryTrigger) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *RepositoryTrigger) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RepositoryTrigger"} + if s.DestinationArn == nil { + invalidParams.Add(request.NewErrParamRequired("DestinationArn")) + } + if s.Events == nil { + invalidParams.Add(request.NewErrParamRequired("Events")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBranches sets the Branches field's value. +func (s *RepositoryTrigger) SetBranches(v []*string) *RepositoryTrigger { + s.Branches = v + return s +} + +// SetCustomData sets the CustomData field's value. +func (s *RepositoryTrigger) SetCustomData(v string) *RepositoryTrigger { + s.CustomData = &v + return s +} + +// SetDestinationArn sets the DestinationArn field's value. +func (s *RepositoryTrigger) SetDestinationArn(v string) *RepositoryTrigger { + s.DestinationArn = &v + return s +} + +// SetEvents sets the Events field's value. +func (s *RepositoryTrigger) SetEvents(v []*string) *RepositoryTrigger { + s.Events = v + return s +} + +// SetName sets the Name field's value. +func (s *RepositoryTrigger) SetName(v string) *RepositoryTrigger { + s.Name = &v + return s +} + // A trigger failed to run. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/RepositoryTriggerExecutionFailure type RepositoryTriggerExecutionFailure struct { _ struct{} `type:"structure"` @@ -2388,15 +3425,32 @@ func (s RepositoryTriggerExecutionFailure) GoString() string { return s.String() } +// SetFailureMessage sets the FailureMessage field's value. +func (s *RepositoryTriggerExecutionFailure) SetFailureMessage(v string) *RepositoryTriggerExecutionFailure { + s.FailureMessage = &v + return s +} + +// SetTrigger sets the Trigger field's value. +func (s *RepositoryTriggerExecutionFailure) SetTrigger(v string) *RepositoryTriggerExecutionFailure { + s.Trigger = &v + return s +} + // Represents the input of a test repository triggers operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/TestRepositoryTriggersInput type TestRepositoryTriggersInput struct { _ struct{} `type:"structure"` // The name of the repository in which to test the triggers. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` // The list of triggers to test. - Triggers []*RepositoryTrigger `locationName:"triggers" type:"list"` + // + // Triggers is a required field + Triggers []*RepositoryTrigger `locationName:"triggers" type:"list" required:"true"` } // String returns the string representation @@ -2412,9 +3466,25 @@ func (s TestRepositoryTriggersInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *TestRepositoryTriggersInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TestRepositoryTriggersInput"} + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) } + if s.Triggers == nil { + invalidParams.Add(request.NewErrParamRequired("Triggers")) + } + if s.Triggers != nil { + for i, v := range s.Triggers { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Triggers", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -2422,7 +3492,20 @@ func (s *TestRepositoryTriggersInput) Validate() error { return nil } +// SetRepositoryName sets the RepositoryName field's value. +func (s *TestRepositoryTriggersInput) SetRepositoryName(v string) *TestRepositoryTriggersInput { + s.RepositoryName = &v + return s +} + +// SetTriggers sets the Triggers field's value. +func (s *TestRepositoryTriggersInput) SetTriggers(v []*RepositoryTrigger) *TestRepositoryTriggersInput { + s.Triggers = v + return s +} + // Represents the output of a test repository triggers operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/TestRepositoryTriggersOutput type TestRepositoryTriggersOutput struct { _ struct{} `type:"structure"` @@ -2445,7 +3528,20 @@ func (s TestRepositoryTriggersOutput) GoString() string { return s.String() } +// SetFailedExecutions sets the FailedExecutions field's value. +func (s *TestRepositoryTriggersOutput) SetFailedExecutions(v []*RepositoryTriggerExecutionFailure) *TestRepositoryTriggersOutput { + s.FailedExecutions = v + return s +} + +// SetSuccessfulExecutions sets the SuccessfulExecutions field's value. +func (s *TestRepositoryTriggersOutput) SetSuccessfulExecutions(v []*string) *TestRepositoryTriggersOutput { + s.SuccessfulExecutions = v + return s +} + // Represents the input of an update default branch operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateDefaultBranchInput type UpdateDefaultBranchInput struct { _ struct{} `type:"structure"` @@ -2492,6 +3588,19 @@ func (s *UpdateDefaultBranchInput) Validate() error { return nil } +// SetDefaultBranchName sets the DefaultBranchName field's value. +func (s *UpdateDefaultBranchInput) SetDefaultBranchName(v string) *UpdateDefaultBranchInput { + s.DefaultBranchName = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *UpdateDefaultBranchInput) SetRepositoryName(v string) *UpdateDefaultBranchInput { + s.RepositoryName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateDefaultBranchOutput type UpdateDefaultBranchOutput struct { _ struct{} `type:"structure"` } @@ -2507,6 +3616,7 @@ func (s UpdateDefaultBranchOutput) GoString() string { } // Represents the input of an update repository description operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryDescriptionInput type UpdateRepositoryDescriptionInput struct { _ struct{} `type:"structure"` @@ -2546,6 +3656,19 @@ func (s *UpdateRepositoryDescriptionInput) Validate() error { return nil } +// SetRepositoryDescription sets the RepositoryDescription field's value. +func (s *UpdateRepositoryDescriptionInput) SetRepositoryDescription(v string) *UpdateRepositoryDescriptionInput { + s.RepositoryDescription = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *UpdateRepositoryDescriptionInput) SetRepositoryName(v string) *UpdateRepositoryDescriptionInput { + s.RepositoryName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryDescriptionOutput type UpdateRepositoryDescriptionOutput struct { _ struct{} `type:"structure"` } @@ -2561,6 +3684,7 @@ func (s UpdateRepositoryDescriptionOutput) GoString() string { } // Represents the input of an update repository description operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryNameInput type UpdateRepositoryNameInput struct { _ struct{} `type:"structure"` @@ -2607,6 +3731,19 @@ func (s *UpdateRepositoryNameInput) Validate() error { return nil } +// SetNewName sets the NewName field's value. +func (s *UpdateRepositoryNameInput) SetNewName(v string) *UpdateRepositoryNameInput { + s.NewName = &v + return s +} + +// SetOldName sets the OldName field's value. +func (s *UpdateRepositoryNameInput) SetOldName(v string) *UpdateRepositoryNameInput { + s.OldName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryNameOutput type UpdateRepositoryNameOutput struct { _ struct{} `type:"structure"` } @@ -2622,6 +3759,7 @@ func (s UpdateRepositoryNameOutput) GoString() string { } // Information about the user who made a specified commit. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UserInfo type UserInfo struct { _ struct{} `type:"structure"` @@ -2645,6 +3783,35 @@ func (s UserInfo) GoString() string { return s.String() } +// SetDate sets the Date field's value. +func (s *UserInfo) SetDate(v string) *UserInfo { + s.Date = &v + return s +} + +// SetEmail sets the Email field's value. +func (s *UserInfo) SetEmail(v string) *UserInfo { + s.Email = &v + return s +} + +// SetName sets the Name field's value. +func (s *UserInfo) SetName(v string) *UserInfo { + s.Name = &v + return s +} + +const ( + // ChangeTypeEnumA is a ChangeTypeEnum enum value + ChangeTypeEnumA = "A" + + // ChangeTypeEnumM is a ChangeTypeEnum enum value + ChangeTypeEnumM = "M" + + // ChangeTypeEnumD is a ChangeTypeEnum enum value + ChangeTypeEnumD = "D" +) + const ( // OrderEnumAscending is a OrderEnum enum value OrderEnumAscending = "ascending" diff --git a/vendor/github.com/aws/aws-sdk-go/service/codecommit/codecommitiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/codecommit/codecommitiface/interface.go index 61041ca1a..dfda76c58 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codecommit/codecommitiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codecommit/codecommitiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCodeCommitClient{} // @@ -75,6 +75,10 @@ type CodeCommitAPI interface { DeleteRepository(*codecommit.DeleteRepositoryInput) (*codecommit.DeleteRepositoryOutput, error) + GetBlobRequest(*codecommit.GetBlobInput) (*request.Request, *codecommit.GetBlobOutput) + + GetBlob(*codecommit.GetBlobInput) (*codecommit.GetBlobOutput, error) + GetBranchRequest(*codecommit.GetBranchInput) (*request.Request, *codecommit.GetBranchOutput) GetBranch(*codecommit.GetBranchInput) (*codecommit.GetBranchOutput, error) @@ -83,6 +87,12 @@ type CodeCommitAPI interface { GetCommit(*codecommit.GetCommitInput) (*codecommit.GetCommitOutput, error) + GetDifferencesRequest(*codecommit.GetDifferencesInput) (*request.Request, *codecommit.GetDifferencesOutput) + + GetDifferences(*codecommit.GetDifferencesInput) (*codecommit.GetDifferencesOutput, error) + + GetDifferencesPages(*codecommit.GetDifferencesInput, func(*codecommit.GetDifferencesOutput, bool) bool) error + GetRepositoryRequest(*codecommit.GetRepositoryInput) (*request.Request, *codecommit.GetRepositoryOutput) GetRepository(*codecommit.GetRepositoryInput) (*codecommit.GetRepositoryOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codecommit/errors.go b/vendor/github.com/aws/aws-sdk-go/service/codecommit/errors.go new file mode 100644 index 000000000..718d09dec --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/codecommit/errors.go @@ -0,0 +1,296 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package codecommit + +const ( + + // ErrCodeBlobIdDoesNotExistException for service response error code + // "BlobIdDoesNotExistException". + // + // The specified blob does not exist. + ErrCodeBlobIdDoesNotExistException = "BlobIdDoesNotExistException" + + // ErrCodeBlobIdRequiredException for service response error code + // "BlobIdRequiredException". + // + // A blob ID is required but was not specified. + ErrCodeBlobIdRequiredException = "BlobIdRequiredException" + + // ErrCodeBranchDoesNotExistException for service response error code + // "BranchDoesNotExistException". + // + // The specified branch does not exist. + ErrCodeBranchDoesNotExistException = "BranchDoesNotExistException" + + // ErrCodeBranchNameExistsException for service response error code + // "BranchNameExistsException". + // + // The specified branch name already exists. + ErrCodeBranchNameExistsException = "BranchNameExistsException" + + // ErrCodeBranchNameRequiredException for service response error code + // "BranchNameRequiredException". + // + // A branch name is required but was not specified. + ErrCodeBranchNameRequiredException = "BranchNameRequiredException" + + // ErrCodeCommitDoesNotExistException for service response error code + // "CommitDoesNotExistException". + // + // The specified commit does not exist or no commit was specified, and the specified + // repository has no default branch. + ErrCodeCommitDoesNotExistException = "CommitDoesNotExistException" + + // ErrCodeCommitIdDoesNotExistException for service response error code + // "CommitIdDoesNotExistException". + // + // The specified commit ID does not exist. + ErrCodeCommitIdDoesNotExistException = "CommitIdDoesNotExistException" + + // ErrCodeCommitIdRequiredException for service response error code + // "CommitIdRequiredException". + // + // A commit ID was not specified. + ErrCodeCommitIdRequiredException = "CommitIdRequiredException" + + // ErrCodeCommitRequiredException for service response error code + // "CommitRequiredException". + // + // A commit was not specified. + ErrCodeCommitRequiredException = "CommitRequiredException" + + // ErrCodeEncryptionIntegrityChecksFailedException for service response error code + // "EncryptionIntegrityChecksFailedException". + // + // An encryption integrity check failed. + ErrCodeEncryptionIntegrityChecksFailedException = "EncryptionIntegrityChecksFailedException" + + // ErrCodeEncryptionKeyAccessDeniedException for service response error code + // "EncryptionKeyAccessDeniedException". + // + // An encryption key could not be accessed. + ErrCodeEncryptionKeyAccessDeniedException = "EncryptionKeyAccessDeniedException" + + // ErrCodeEncryptionKeyDisabledException for service response error code + // "EncryptionKeyDisabledException". + // + // The encryption key is disabled. + ErrCodeEncryptionKeyDisabledException = "EncryptionKeyDisabledException" + + // ErrCodeEncryptionKeyNotFoundException for service response error code + // "EncryptionKeyNotFoundException". + // + // No encryption key was found. + ErrCodeEncryptionKeyNotFoundException = "EncryptionKeyNotFoundException" + + // ErrCodeEncryptionKeyUnavailableException for service response error code + // "EncryptionKeyUnavailableException". + // + // The encryption key is not available. + ErrCodeEncryptionKeyUnavailableException = "EncryptionKeyUnavailableException" + + // ErrCodeFileTooLargeException for service response error code + // "FileTooLargeException". + // + // The specified file exceeds the file size limit for AWS CodeCommit. For more + // information about limits in AWS CodeCommit, see AWS CodeCommit User Guide + // (http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). + ErrCodeFileTooLargeException = "FileTooLargeException" + + // ErrCodeInvalidBlobIdException for service response error code + // "InvalidBlobIdException". + // + // The specified blob is not valid. + ErrCodeInvalidBlobIdException = "InvalidBlobIdException" + + // ErrCodeInvalidBranchNameException for service response error code + // "InvalidBranchNameException". + // + // The specified branch name is not valid. + ErrCodeInvalidBranchNameException = "InvalidBranchNameException" + + // ErrCodeInvalidCommitException for service response error code + // "InvalidCommitException". + // + // The specified commit is not valid. + ErrCodeInvalidCommitException = "InvalidCommitException" + + // ErrCodeInvalidCommitIdException for service response error code + // "InvalidCommitIdException". + // + // The specified commit ID is not valid. + ErrCodeInvalidCommitIdException = "InvalidCommitIdException" + + // ErrCodeInvalidContinuationTokenException for service response error code + // "InvalidContinuationTokenException". + // + // The specified continuation token is not valid. + ErrCodeInvalidContinuationTokenException = "InvalidContinuationTokenException" + + // ErrCodeInvalidMaxResultsException for service response error code + // "InvalidMaxResultsException". + // + // The specified number of maximum results is not valid. + ErrCodeInvalidMaxResultsException = "InvalidMaxResultsException" + + // ErrCodeInvalidOrderException for service response error code + // "InvalidOrderException". + // + // The specified sort order is not valid. + ErrCodeInvalidOrderException = "InvalidOrderException" + + // ErrCodeInvalidPathException for service response error code + // "InvalidPathException". + // + // The specified path is not valid. + ErrCodeInvalidPathException = "InvalidPathException" + + // ErrCodeInvalidRepositoryDescriptionException for service response error code + // "InvalidRepositoryDescriptionException". + // + // The specified repository description is not valid. + ErrCodeInvalidRepositoryDescriptionException = "InvalidRepositoryDescriptionException" + + // ErrCodeInvalidRepositoryNameException for service response error code + // "InvalidRepositoryNameException". + // + // At least one specified repository name is not valid. + // + // This exception only occurs when a specified repository name is not valid. + // Other exceptions occur when a required repository parameter is missing, or + // when a specified repository does not exist. + ErrCodeInvalidRepositoryNameException = "InvalidRepositoryNameException" + + // ErrCodeInvalidRepositoryTriggerBranchNameException for service response error code + // "InvalidRepositoryTriggerBranchNameException". + // + // One or more branch names specified for the trigger is not valid. + ErrCodeInvalidRepositoryTriggerBranchNameException = "InvalidRepositoryTriggerBranchNameException" + + // ErrCodeInvalidRepositoryTriggerCustomDataException for service response error code + // "InvalidRepositoryTriggerCustomDataException". + // + // The custom data provided for the trigger is not valid. + ErrCodeInvalidRepositoryTriggerCustomDataException = "InvalidRepositoryTriggerCustomDataException" + + // ErrCodeInvalidRepositoryTriggerDestinationArnException for service response error code + // "InvalidRepositoryTriggerDestinationArnException". + // + // The Amazon Resource Name (ARN) for the trigger is not valid for the specified + // destination. The most common reason for this error is that the ARN does not + // meet the requirements for the service type. + ErrCodeInvalidRepositoryTriggerDestinationArnException = "InvalidRepositoryTriggerDestinationArnException" + + // ErrCodeInvalidRepositoryTriggerEventsException for service response error code + // "InvalidRepositoryTriggerEventsException". + // + // One or more events specified for the trigger is not valid. Check to make + // sure that all events specified match the requirements for allowed events. + ErrCodeInvalidRepositoryTriggerEventsException = "InvalidRepositoryTriggerEventsException" + + // ErrCodeInvalidRepositoryTriggerNameException for service response error code + // "InvalidRepositoryTriggerNameException". + // + // The name of the trigger is not valid. + ErrCodeInvalidRepositoryTriggerNameException = "InvalidRepositoryTriggerNameException" + + // ErrCodeInvalidRepositoryTriggerRegionException for service response error code + // "InvalidRepositoryTriggerRegionException". + // + // The region for the trigger target does not match the region for the repository. + // Triggers must be created in the same region as the target for the trigger. + ErrCodeInvalidRepositoryTriggerRegionException = "InvalidRepositoryTriggerRegionException" + + // ErrCodeInvalidSortByException for service response error code + // "InvalidSortByException". + // + // The specified sort by value is not valid. + ErrCodeInvalidSortByException = "InvalidSortByException" + + // ErrCodeMaximumBranchesExceededException for service response error code + // "MaximumBranchesExceededException". + // + // The number of branches for the trigger was exceeded. + ErrCodeMaximumBranchesExceededException = "MaximumBranchesExceededException" + + // ErrCodeMaximumRepositoryNamesExceededException for service response error code + // "MaximumRepositoryNamesExceededException". + // + // The maximum number of allowed repository names was exceeded. Currently, this + // number is 25. + ErrCodeMaximumRepositoryNamesExceededException = "MaximumRepositoryNamesExceededException" + + // ErrCodeMaximumRepositoryTriggersExceededException for service response error code + // "MaximumRepositoryTriggersExceededException". + // + // The number of triggers allowed for the repository was exceeded. + ErrCodeMaximumRepositoryTriggersExceededException = "MaximumRepositoryTriggersExceededException" + + // ErrCodePathDoesNotExistException for service response error code + // "PathDoesNotExistException". + // + // The specified path does not exist. + ErrCodePathDoesNotExistException = "PathDoesNotExistException" + + // ErrCodeRepositoryDoesNotExistException for service response error code + // "RepositoryDoesNotExistException". + // + // The specified repository does not exist. + ErrCodeRepositoryDoesNotExistException = "RepositoryDoesNotExistException" + + // ErrCodeRepositoryLimitExceededException for service response error code + // "RepositoryLimitExceededException". + // + // A repository resource limit was exceeded. + ErrCodeRepositoryLimitExceededException = "RepositoryLimitExceededException" + + // ErrCodeRepositoryNameExistsException for service response error code + // "RepositoryNameExistsException". + // + // The specified repository name already exists. + ErrCodeRepositoryNameExistsException = "RepositoryNameExistsException" + + // ErrCodeRepositoryNameRequiredException for service response error code + // "RepositoryNameRequiredException". + // + // A repository name is required but was not specified. + ErrCodeRepositoryNameRequiredException = "RepositoryNameRequiredException" + + // ErrCodeRepositoryNamesRequiredException for service response error code + // "RepositoryNamesRequiredException". + // + // A repository names object is required but was not specified. + ErrCodeRepositoryNamesRequiredException = "RepositoryNamesRequiredException" + + // ErrCodeRepositoryTriggerBranchNameListRequiredException for service response error code + // "RepositoryTriggerBranchNameListRequiredException". + // + // At least one branch name is required but was not specified in the trigger + // configuration. + ErrCodeRepositoryTriggerBranchNameListRequiredException = "RepositoryTriggerBranchNameListRequiredException" + + // ErrCodeRepositoryTriggerDestinationArnRequiredException for service response error code + // "RepositoryTriggerDestinationArnRequiredException". + // + // A destination ARN for the target service for the trigger is required but + // was not specified. + ErrCodeRepositoryTriggerDestinationArnRequiredException = "RepositoryTriggerDestinationArnRequiredException" + + // ErrCodeRepositoryTriggerEventsListRequiredException for service response error code + // "RepositoryTriggerEventsListRequiredException". + // + // At least one event for the trigger is required but was not specified. + ErrCodeRepositoryTriggerEventsListRequiredException = "RepositoryTriggerEventsListRequiredException" + + // ErrCodeRepositoryTriggerNameRequiredException for service response error code + // "RepositoryTriggerNameRequiredException". + // + // A name for the trigger is required but was not specified. + ErrCodeRepositoryTriggerNameRequiredException = "RepositoryTriggerNameRequiredException" + + // ErrCodeRepositoryTriggersListRequiredException for service response error code + // "RepositoryTriggersListRequiredException". + // + // The list of triggers for the repository is required but was not specified. + ErrCodeRepositoryTriggersListRequiredException = "RepositoryTriggersListRequiredException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codecommit/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/codecommit/examples_test.go index 5e5973276..b4f3acfef 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codecommit/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codecommit/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCodeCommit_BatchGetRepositories() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -44,11 +40,7 @@ func ExampleCodeCommit_BatchGetRepositories() { } func ExampleCodeCommit_CreateBranch() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -71,11 +63,7 @@ func ExampleCodeCommit_CreateBranch() { } func ExampleCodeCommit_CreateRepository() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -97,11 +85,7 @@ func ExampleCodeCommit_CreateRepository() { } func ExampleCodeCommit_DeleteRepository() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -121,13 +105,31 @@ func ExampleCodeCommit_DeleteRepository() { fmt.Println(resp) } -func ExampleCodeCommit_GetBranch() { - sess, err := session.NewSession() +func ExampleCodeCommit_GetBlob() { + sess := session.Must(session.NewSession()) + + svc := codecommit.New(sess) + + params := &codecommit.GetBlobInput{ + BlobId: aws.String("ObjectId"), // Required + RepositoryName: aws.String("RepositoryName"), // Required + } + resp, err := svc.GetBlob(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCodeCommit_GetBranch() { + sess := session.Must(session.NewSession()) + svc := codecommit.New(sess) params := &codecommit.GetBranchInput{ @@ -148,11 +150,7 @@ func ExampleCodeCommit_GetBranch() { } func ExampleCodeCommit_GetCommit() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -173,13 +171,36 @@ func ExampleCodeCommit_GetCommit() { fmt.Println(resp) } -func ExampleCodeCommit_GetRepository() { - sess, err := session.NewSession() +func ExampleCodeCommit_GetDifferences() { + sess := session.Must(session.NewSession()) + + svc := codecommit.New(sess) + + params := &codecommit.GetDifferencesInput{ + AfterCommitSpecifier: aws.String("CommitName"), // Required + RepositoryName: aws.String("RepositoryName"), // Required + AfterPath: aws.String("Path"), + BeforeCommitSpecifier: aws.String("CommitName"), + BeforePath: aws.String("Path"), + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.GetDifferences(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCodeCommit_GetRepository() { + sess := session.Must(session.NewSession()) + svc := codecommit.New(sess) params := &codecommit.GetRepositoryInput{ @@ -199,16 +220,12 @@ func ExampleCodeCommit_GetRepository() { } func ExampleCodeCommit_GetRepositoryTriggers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) params := &codecommit.GetRepositoryTriggersInput{ - RepositoryName: aws.String("RepositoryName"), + RepositoryName: aws.String("RepositoryName"), // Required } resp, err := svc.GetRepositoryTriggers(params) @@ -224,11 +241,7 @@ func ExampleCodeCommit_GetRepositoryTriggers() { } func ExampleCodeCommit_ListBranches() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -250,11 +263,7 @@ func ExampleCodeCommit_ListBranches() { } func ExampleCodeCommit_ListRepositories() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -277,29 +286,25 @@ func ExampleCodeCommit_ListRepositories() { } func ExampleCodeCommit_PutRepositoryTriggers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) params := &codecommit.PutRepositoryTriggersInput{ - RepositoryName: aws.String("RepositoryName"), - Triggers: []*codecommit.RepositoryTrigger{ + RepositoryName: aws.String("RepositoryName"), // Required + Triggers: []*codecommit.RepositoryTrigger{ // Required { // Required - Branches: []*string{ - aws.String("BranchName"), // Required + DestinationArn: aws.String("Arn"), // Required + Events: []*string{ // Required + aws.String("RepositoryTriggerEventEnum"), // Required // More values... }, - CustomData: aws.String("RepositoryTriggerCustomData"), - DestinationArn: aws.String("Arn"), - Events: []*string{ - aws.String("RepositoryTriggerEventEnum"), // Required + Name: aws.String("RepositoryTriggerName"), // Required + Branches: []*string{ + aws.String("BranchName"), // Required // More values... }, - Name: aws.String("RepositoryTriggerName"), + CustomData: aws.String("RepositoryTriggerCustomData"), }, // More values... }, @@ -318,29 +323,25 @@ func ExampleCodeCommit_PutRepositoryTriggers() { } func ExampleCodeCommit_TestRepositoryTriggers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) params := &codecommit.TestRepositoryTriggersInput{ - RepositoryName: aws.String("RepositoryName"), - Triggers: []*codecommit.RepositoryTrigger{ + RepositoryName: aws.String("RepositoryName"), // Required + Triggers: []*codecommit.RepositoryTrigger{ // Required { // Required - Branches: []*string{ - aws.String("BranchName"), // Required + DestinationArn: aws.String("Arn"), // Required + Events: []*string{ // Required + aws.String("RepositoryTriggerEventEnum"), // Required // More values... }, - CustomData: aws.String("RepositoryTriggerCustomData"), - DestinationArn: aws.String("Arn"), - Events: []*string{ - aws.String("RepositoryTriggerEventEnum"), // Required + Name: aws.String("RepositoryTriggerName"), // Required + Branches: []*string{ + aws.String("BranchName"), // Required // More values... }, - Name: aws.String("RepositoryTriggerName"), + CustomData: aws.String("RepositoryTriggerCustomData"), }, // More values... }, @@ -359,11 +360,7 @@ func ExampleCodeCommit_TestRepositoryTriggers() { } func ExampleCodeCommit_UpdateDefaultBranch() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -385,11 +382,7 @@ func ExampleCodeCommit_UpdateDefaultBranch() { } func ExampleCodeCommit_UpdateRepositoryDescription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) @@ -411,11 +404,7 @@ func ExampleCodeCommit_UpdateRepositoryDescription() { } func ExampleCodeCommit_UpdateRepositoryName() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codecommit.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codecommit/service.go b/vendor/github.com/aws/aws-sdk-go/service/codecommit/service.go index ec608b7c1..dd0b66613 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codecommit/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codecommit/service.go @@ -12,34 +12,70 @@ import ( ) // This is the AWS CodeCommit API Reference. This reference provides descriptions -// of the operations and data types for AWS CodeCommit API. +// of the operations and data types for AWS CodeCommit API along with usage +// examples. // // You can use the AWS CodeCommit API to work with the following objects: // -// Repositories, by calling the following: BatchGetRepositories, which returns -// information about one or more repositories associated with your AWS account -// CreateRepository, which creates an AWS CodeCommit repository DeleteRepository, -// which deletes an AWS CodeCommit repository GetRepository, which returns information -// about a specified repository ListRepositories, which lists all AWS CodeCommit -// repositories associated with your AWS account UpdateRepositoryDescription, -// which sets or updates the description of the repository UpdateRepositoryName, -// which changes the name of the repository. If you change the name of a repository, -// no other users of that repository will be able to access it until you send -// them the new HTTPS or SSH URL to use. Branches, by calling the following: -// CreateBranch, which creates a new branch in a specified repository GetBranch, -// which returns information about a specified branch ListBranches, which lists -// all branches for a specified repository UpdateDefaultBranch, which changes -// the default branch for a repository Information about committed code in -// a repository, by calling the following: GetCommit, which returns information -// about a commit, including commit messages and committer information. Triggers, -// by calling the following: GetRepositoryTriggers, which returns information -// about triggers configured for a repository PutRepositoryTriggers, which replaces -// all triggers for a repository and can be used to create or delete triggers -// TestRepositoryTriggers, which tests the functionality of a repository trigger -// by sending data to the trigger target For information about how to use -// AWS CodeCommit, see the AWS CodeCommit User Guide (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html). -//The service client's operations are safe to be used concurrently. +// Repositories, by calling the following: +// +// * BatchGetRepositories, which returns information about one or more repositories +// associated with your AWS account +// +// * CreateRepository, which creates an AWS CodeCommit repository +// +// * DeleteRepository, which deletes an AWS CodeCommit repository +// +// * GetRepository, which returns information about a specified repository +// +// * ListRepositories, which lists all AWS CodeCommit repositories associated +// with your AWS account +// +// * UpdateRepositoryDescription, which sets or updates the description of +// the repository +// +// * UpdateRepositoryName, which changes the name of the repository. If you +// change the name of a repository, no other users of that repository will +// be able to access it until you send them the new HTTPS or SSH URL to use. +// +// Branches, by calling the following: +// +// * CreateBranch, which creates a new branch in a specified repository +// +// * GetBranch, which returns information about a specified branch +// +// * ListBranches, which lists all branches for a specified repository +// +// * UpdateDefaultBranch, which changes the default branch for a repository +// +// Information about committed code in a repository, by calling the following: +// +// * GetBlob, which returns the base-64 encoded content of an individual +// Git blob object within a repository +// +// * GetCommit, which returns information about a commit, including commit +// messages and author and committer information +// +// * GetDifferences, which returns information about the differences in a +// valid commit specifier (such as a branch, tag, HEAD, commit ID or other +// fully qualified reference) +// +// Triggers, by calling the following: +// +// * GetRepositoryTriggers, which returns information about triggers configured +// for a repository +// +// * PutRepositoryTriggers, which replaces all triggers for a repository +// and can be used to create or delete triggers +// +// * TestRepositoryTriggers, which tests the functionality of a repository +// trigger by sending data to the trigger target +// +// For information about how to use AWS CodeCommit, see the AWS CodeCommit User +// Guide (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html). +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13 type CodeCommit struct { *client.Client } @@ -50,8 +86,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "codecommit" +// Service information constants +const ( + ServiceName = "codecommit" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the CodeCommit client with a session. // If additional configuration is needed for the client instance use the optional @@ -64,17 +103,18 @@ const ServiceName = "codecommit" // // Create a CodeCommit client with additional configuration // svc := codecommit.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CodeCommit { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CodeCommit { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CodeCommit { svc := &CodeCommit{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-04-13", diff --git a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/api.go b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/api.go index 41136c874..1004323da 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/api.go @@ -38,6 +38,7 @@ const opAddTagsToOnPremisesInstances = "AddTagsToOnPremisesInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AddTagsToOnPremisesInstances func (c *CodeDeploy) AddTagsToOnPremisesInstancesRequest(input *AddTagsToOnPremisesInstancesInput) (req *request.Request, output *AddTagsToOnPremisesInstancesOutput) { op := &request.Operation{ Name: opAddTagsToOnPremisesInstances, @@ -49,11 +50,10 @@ func (c *CodeDeploy) AddTagsToOnPremisesInstancesRequest(input *AddTagsToOnPremi input = &AddTagsToOnPremisesInstancesInput{} } + output = &AddTagsToOnPremisesInstancesOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AddTagsToOnPremisesInstancesOutput{} - req.Data = output return } @@ -69,25 +69,26 @@ func (c *CodeDeploy) AddTagsToOnPremisesInstancesRequest(input *AddTagsToOnPremi // API operation AddTagsToOnPremisesInstances for usage and error information. // // Returned Error Codes: -// * InstanceNameRequiredException +// * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException" // An on-premises instance name was not specified. // -// * TagRequiredException +// * ErrCodeTagRequiredException "TagRequiredException" // A tag was not specified. // -// * InvalidTagException +// * ErrCodeInvalidTagException "InvalidTagException" // The specified tag was specified in an invalid format. // -// * TagLimitExceededException +// * ErrCodeTagLimitExceededException "TagLimitExceededException" // The maximum allowed number of tags was exceeded. // -// * InstanceLimitExceededException +// * ErrCodeInstanceLimitExceededException "InstanceLimitExceededException" // The maximum number of allowed on-premises instances in a single call was // exceeded. // -// * InstanceNotRegisteredException +// * ErrCodeInstanceNotRegisteredException "InstanceNotRegisteredException" // The specified on-premises instance is not registered. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AddTagsToOnPremisesInstances func (c *CodeDeploy) AddTagsToOnPremisesInstances(input *AddTagsToOnPremisesInstancesInput) (*AddTagsToOnPremisesInstancesOutput, error) { req, out := c.AddTagsToOnPremisesInstancesRequest(input) err := req.Send() @@ -120,6 +121,7 @@ const opBatchGetApplicationRevisions = "BatchGetApplicationRevisions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationRevisions func (c *CodeDeploy) BatchGetApplicationRevisionsRequest(input *BatchGetApplicationRevisionsInput) (req *request.Request, output *BatchGetApplicationRevisionsOutput) { op := &request.Operation{ Name: opBatchGetApplicationRevisions, @@ -131,9 +133,8 @@ func (c *CodeDeploy) BatchGetApplicationRevisionsRequest(input *BatchGetApplicat input = &BatchGetApplicationRevisionsInput{} } - req = c.newRequest(op, input, output) output = &BatchGetApplicationRevisionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -149,24 +150,25 @@ func (c *CodeDeploy) BatchGetApplicationRevisionsRequest(input *BatchGetApplicat // API operation BatchGetApplicationRevisions for usage and error information. // // Returned Error Codes: -// * ApplicationDoesNotExistException +// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" // The application does not exist with the applicable IAM user or AWS account. // -// * ApplicationNameRequiredException +// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" // The minimum number of required application names was not specified. // -// * InvalidApplicationNameException +// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" // The application name was specified in an invalid format. // -// * RevisionRequiredException +// * ErrCodeRevisionRequiredException "RevisionRequiredException" // The revision ID was not specified. // -// * InvalidRevisionException +// * ErrCodeInvalidRevisionException "InvalidRevisionException" // The revision was specified in an invalid format. // -// * BatchLimitExceededException +// * ErrCodeBatchLimitExceededException "BatchLimitExceededException" // The maximum number of names or IDs allowed for this request (100) was exceeded. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationRevisions func (c *CodeDeploy) BatchGetApplicationRevisions(input *BatchGetApplicationRevisionsInput) (*BatchGetApplicationRevisionsOutput, error) { req, out := c.BatchGetApplicationRevisionsRequest(input) err := req.Send() @@ -199,6 +201,7 @@ const opBatchGetApplications = "BatchGetApplications" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplications func (c *CodeDeploy) BatchGetApplicationsRequest(input *BatchGetApplicationsInput) (req *request.Request, output *BatchGetApplicationsOutput) { op := &request.Operation{ Name: opBatchGetApplications, @@ -210,9 +213,8 @@ func (c *CodeDeploy) BatchGetApplicationsRequest(input *BatchGetApplicationsInpu input = &BatchGetApplicationsInput{} } - req = c.newRequest(op, input, output) output = &BatchGetApplicationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -228,18 +230,19 @@ func (c *CodeDeploy) BatchGetApplicationsRequest(input *BatchGetApplicationsInpu // API operation BatchGetApplications for usage and error information. // // Returned Error Codes: -// * ApplicationNameRequiredException +// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" // The minimum number of required application names was not specified. // -// * InvalidApplicationNameException +// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" // The application name was specified in an invalid format. // -// * ApplicationDoesNotExistException +// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" // The application does not exist with the applicable IAM user or AWS account. // -// * BatchLimitExceededException +// * ErrCodeBatchLimitExceededException "BatchLimitExceededException" // The maximum number of names or IDs allowed for this request (100) was exceeded. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplications func (c *CodeDeploy) BatchGetApplications(input *BatchGetApplicationsInput) (*BatchGetApplicationsOutput, error) { req, out := c.BatchGetApplicationsRequest(input) err := req.Send() @@ -272,6 +275,7 @@ const opBatchGetDeploymentGroups = "BatchGetDeploymentGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentGroups func (c *CodeDeploy) BatchGetDeploymentGroupsRequest(input *BatchGetDeploymentGroupsInput) (req *request.Request, output *BatchGetDeploymentGroupsOutput) { op := &request.Operation{ Name: opBatchGetDeploymentGroups, @@ -283,15 +287,14 @@ func (c *CodeDeploy) BatchGetDeploymentGroupsRequest(input *BatchGetDeploymentGr input = &BatchGetDeploymentGroupsInput{} } - req = c.newRequest(op, input, output) output = &BatchGetDeploymentGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // BatchGetDeploymentGroups API operation for AWS CodeDeploy. // -// Get information about one or more deployment groups. +// Gets information about one or more deployment groups. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -301,24 +304,25 @@ func (c *CodeDeploy) BatchGetDeploymentGroupsRequest(input *BatchGetDeploymentGr // API operation BatchGetDeploymentGroups for usage and error information. // // Returned Error Codes: -// * ApplicationNameRequiredException +// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" // The minimum number of required application names was not specified. // -// * InvalidApplicationNameException +// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" // The application name was specified in an invalid format. // -// * ApplicationDoesNotExistException +// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" // The application does not exist with the applicable IAM user or AWS account. // -// * DeploymentGroupNameRequiredException +// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException" // The deployment group name was not specified. // -// * InvalidDeploymentGroupNameException +// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException" // The deployment group name was specified in an invalid format. // -// * BatchLimitExceededException +// * ErrCodeBatchLimitExceededException "BatchLimitExceededException" // The maximum number of names or IDs allowed for this request (100) was exceeded. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentGroups func (c *CodeDeploy) BatchGetDeploymentGroups(input *BatchGetDeploymentGroupsInput) (*BatchGetDeploymentGroupsOutput, error) { req, out := c.BatchGetDeploymentGroupsRequest(input) err := req.Send() @@ -351,6 +355,7 @@ const opBatchGetDeploymentInstances = "BatchGetDeploymentInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentInstances func (c *CodeDeploy) BatchGetDeploymentInstancesRequest(input *BatchGetDeploymentInstancesInput) (req *request.Request, output *BatchGetDeploymentInstancesOutput) { op := &request.Operation{ Name: opBatchGetDeploymentInstances, @@ -362,9 +367,8 @@ func (c *CodeDeploy) BatchGetDeploymentInstancesRequest(input *BatchGetDeploymen input = &BatchGetDeploymentInstancesInput{} } - req = c.newRequest(op, input, output) output = &BatchGetDeploymentInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -381,24 +385,25 @@ func (c *CodeDeploy) BatchGetDeploymentInstancesRequest(input *BatchGetDeploymen // API operation BatchGetDeploymentInstances for usage and error information. // // Returned Error Codes: -// * DeploymentIdRequiredException +// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException" // At least one deployment ID must be specified. // -// * DeploymentDoesNotExistException +// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException" // The deployment does not exist with the applicable IAM user or AWS account. // -// * InstanceIdRequiredException +// * ErrCodeInstanceIdRequiredException "InstanceIdRequiredException" // The instance ID was not specified. // -// * InvalidDeploymentIdException +// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" // At least one of the deployment IDs was specified in an invalid format. // -// * InvalidInstanceNameException +// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException" // The specified on-premises instance name was specified in an invalid format. // -// * BatchLimitExceededException +// * ErrCodeBatchLimitExceededException "BatchLimitExceededException" // The maximum number of names or IDs allowed for this request (100) was exceeded. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentInstances func (c *CodeDeploy) BatchGetDeploymentInstances(input *BatchGetDeploymentInstancesInput) (*BatchGetDeploymentInstancesOutput, error) { req, out := c.BatchGetDeploymentInstancesRequest(input) err := req.Send() @@ -431,6 +436,7 @@ const opBatchGetDeployments = "BatchGetDeployments" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeployments func (c *CodeDeploy) BatchGetDeploymentsRequest(input *BatchGetDeploymentsInput) (req *request.Request, output *BatchGetDeploymentsOutput) { op := &request.Operation{ Name: opBatchGetDeployments, @@ -442,9 +448,8 @@ func (c *CodeDeploy) BatchGetDeploymentsRequest(input *BatchGetDeploymentsInput) input = &BatchGetDeploymentsInput{} } - req = c.newRequest(op, input, output) output = &BatchGetDeploymentsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -460,15 +465,16 @@ func (c *CodeDeploy) BatchGetDeploymentsRequest(input *BatchGetDeploymentsInput) // API operation BatchGetDeployments for usage and error information. // // Returned Error Codes: -// * DeploymentIdRequiredException +// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException" // At least one deployment ID must be specified. // -// * InvalidDeploymentIdException +// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" // At least one of the deployment IDs was specified in an invalid format. // -// * BatchLimitExceededException +// * ErrCodeBatchLimitExceededException "BatchLimitExceededException" // The maximum number of names or IDs allowed for this request (100) was exceeded. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeployments func (c *CodeDeploy) BatchGetDeployments(input *BatchGetDeploymentsInput) (*BatchGetDeploymentsOutput, error) { req, out := c.BatchGetDeploymentsRequest(input) err := req.Send() @@ -501,6 +507,7 @@ const opBatchGetOnPremisesInstances = "BatchGetOnPremisesInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetOnPremisesInstances func (c *CodeDeploy) BatchGetOnPremisesInstancesRequest(input *BatchGetOnPremisesInstancesInput) (req *request.Request, output *BatchGetOnPremisesInstancesOutput) { op := &request.Operation{ Name: opBatchGetOnPremisesInstances, @@ -512,9 +519,8 @@ func (c *CodeDeploy) BatchGetOnPremisesInstancesRequest(input *BatchGetOnPremise input = &BatchGetOnPremisesInstancesInput{} } - req = c.newRequest(op, input, output) output = &BatchGetOnPremisesInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -530,21 +536,108 @@ func (c *CodeDeploy) BatchGetOnPremisesInstancesRequest(input *BatchGetOnPremise // API operation BatchGetOnPremisesInstances for usage and error information. // // Returned Error Codes: -// * InstanceNameRequiredException +// * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException" // An on-premises instance name was not specified. // -// * InvalidInstanceNameException +// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException" // The specified on-premises instance name was specified in an invalid format. // -// * BatchLimitExceededException +// * ErrCodeBatchLimitExceededException "BatchLimitExceededException" // The maximum number of names or IDs allowed for this request (100) was exceeded. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetOnPremisesInstances func (c *CodeDeploy) BatchGetOnPremisesInstances(input *BatchGetOnPremisesInstancesInput) (*BatchGetOnPremisesInstancesOutput, error) { req, out := c.BatchGetOnPremisesInstancesRequest(input) err := req.Send() return out, err } +const opContinueDeployment = "ContinueDeployment" + +// ContinueDeploymentRequest generates a "aws/request.Request" representing the +// client's request for the ContinueDeployment operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ContinueDeployment for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ContinueDeployment method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ContinueDeploymentRequest method. +// req, resp := client.ContinueDeploymentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ContinueDeployment +func (c *CodeDeploy) ContinueDeploymentRequest(input *ContinueDeploymentInput) (req *request.Request, output *ContinueDeploymentOutput) { + op := &request.Operation{ + Name: opContinueDeployment, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ContinueDeploymentInput{} + } + + output = &ContinueDeploymentOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// ContinueDeployment API operation for AWS CodeDeploy. +// +// Starts the process of rerouting traffic from instances in the original environment +// to instances in thereplacement environment without waiting for a specified +// wait time to elapse. (Traffic rerouting, which is achieved by registering +// instances in the replacement environment with the load balancer, can start +// as soon as all instances have a status of Ready.) +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation ContinueDeployment for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException" +// At least one deployment ID must be specified. +// +// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException" +// The deployment does not exist with the applicable IAM user or AWS account. +// +// * ErrCodeDeploymentAlreadyCompletedException "DeploymentAlreadyCompletedException" +// The deployment is already complete. +// +// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" +// At least one of the deployment IDs was specified in an invalid format. +// +// * ErrCodeDeploymentIsNotInReadyStateException "DeploymentIsNotInReadyStateException" +// The deployment does not have a status of Ready and can't continue yet. +// +// * ErrCodeUnsupportedActionForDeploymentTypeException "UnsupportedActionForDeploymentTypeException" +// A call was submitted that is not supported for the specified deployment type. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ContinueDeployment +func (c *CodeDeploy) ContinueDeployment(input *ContinueDeploymentInput) (*ContinueDeploymentOutput, error) { + req, out := c.ContinueDeploymentRequest(input) + err := req.Send() + return out, err +} + const opCreateApplication = "CreateApplication" // CreateApplicationRequest generates a "aws/request.Request" representing the @@ -571,6 +664,7 @@ const opCreateApplication = "CreateApplication" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateApplication func (c *CodeDeploy) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput) { op := &request.Operation{ Name: opCreateApplication, @@ -582,9 +676,8 @@ func (c *CodeDeploy) CreateApplicationRequest(input *CreateApplicationInput) (re input = &CreateApplicationInput{} } - req = c.newRequest(op, input, output) output = &CreateApplicationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -600,19 +693,20 @@ func (c *CodeDeploy) CreateApplicationRequest(input *CreateApplicationInput) (re // API operation CreateApplication for usage and error information. // // Returned Error Codes: -// * ApplicationNameRequiredException +// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" // The minimum number of required application names was not specified. // -// * InvalidApplicationNameException +// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" // The application name was specified in an invalid format. // -// * ApplicationAlreadyExistsException +// * ErrCodeApplicationAlreadyExistsException "ApplicationAlreadyExistsException" // An application with the specified name already exists with the applicable // IAM user or AWS account. // -// * ApplicationLimitExceededException +// * ErrCodeApplicationLimitExceededException "ApplicationLimitExceededException" // More applications were attempted to be created than are allowed. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateApplication func (c *CodeDeploy) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) { req, out := c.CreateApplicationRequest(input) err := req.Send() @@ -645,6 +739,7 @@ const opCreateDeployment = "CreateDeployment" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeployment func (c *CodeDeploy) CreateDeploymentRequest(input *CreateDeploymentInput) (req *request.Request, output *CreateDeploymentOutput) { op := &request.Operation{ Name: opCreateDeployment, @@ -656,9 +751,8 @@ func (c *CodeDeploy) CreateDeploymentRequest(input *CreateDeploymentInput) (req input = &CreateDeploymentInput{} } - req = c.newRequest(op, input, output) output = &CreateDeploymentOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -674,52 +768,68 @@ func (c *CodeDeploy) CreateDeploymentRequest(input *CreateDeploymentInput) (req // API operation CreateDeployment for usage and error information. // // Returned Error Codes: -// * ApplicationNameRequiredException +// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" // The minimum number of required application names was not specified. // -// * InvalidApplicationNameException +// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" // The application name was specified in an invalid format. // -// * ApplicationDoesNotExistException +// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" // The application does not exist with the applicable IAM user or AWS account. // -// * DeploymentGroupNameRequiredException +// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException" // The deployment group name was not specified. // -// * InvalidDeploymentGroupNameException +// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException" // The deployment group name was specified in an invalid format. // -// * DeploymentGroupDoesNotExistException +// * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException" // The named deployment group does not exist with the applicable IAM user or // AWS account. // -// * RevisionRequiredException +// * ErrCodeRevisionRequiredException "RevisionRequiredException" // The revision ID was not specified. // -// * RevisionDoesNotExistException +// * ErrCodeRevisionDoesNotExistException "RevisionDoesNotExistException" // The named revision does not exist with the applicable IAM user or AWS account. // -// * InvalidRevisionException +// * ErrCodeInvalidRevisionException "InvalidRevisionException" // The revision was specified in an invalid format. // -// * InvalidDeploymentConfigNameException +// * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException" // The deployment configuration name was specified in an invalid format. // -// * DeploymentConfigDoesNotExistException +// * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException" // The deployment configuration does not exist with the applicable IAM user // or AWS account. // -// * DescriptionTooLongException +// * ErrCodeDescriptionTooLongException "DescriptionTooLongException" // The description is too long. // -// * DeploymentLimitExceededException +// * ErrCodeDeploymentLimitExceededException "DeploymentLimitExceededException" // The number of allowed deployments was exceeded. // -// * InvalidAutoRollbackConfigException +// * ErrCodeInvalidTargetInstancesException "InvalidTargetInstancesException" +// The target instance configuration is invalid. Possible causes include: +// +// * Configuration data for target instances was entered for an in-place +// deployment. +// +// * The limit of 10 tags for a tag type was exceeded. +// +// * The combined length of the tag names exceeded the limit. +// +// * A specified tag is not currently applied to any instances. +// +// * ErrCodeInvalidAutoRollbackConfigException "InvalidAutoRollbackConfigException" // The automatic rollback configuration was specified in an invalid format. // For example, automatic rollback is enabled but an invalid triggering event // type or no event types were listed. // +// * ErrCodeInvalidLoadBalancerInfoException "InvalidLoadBalancerInfoException" +// An invalid load balancer name, or no load balancer name, was specified. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeployment func (c *CodeDeploy) CreateDeployment(input *CreateDeploymentInput) (*CreateDeploymentOutput, error) { req, out := c.CreateDeploymentRequest(input) err := req.Send() @@ -752,6 +862,7 @@ const opCreateDeploymentConfig = "CreateDeploymentConfig" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentConfig func (c *CodeDeploy) CreateDeploymentConfigRequest(input *CreateDeploymentConfigInput) (req *request.Request, output *CreateDeploymentConfigOutput) { op := &request.Operation{ Name: opCreateDeploymentConfig, @@ -763,9 +874,8 @@ func (c *CodeDeploy) CreateDeploymentConfigRequest(input *CreateDeploymentConfig input = &CreateDeploymentConfigInput{} } - req = c.newRequest(op, input, output) output = &CreateDeploymentConfigOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -781,22 +891,23 @@ func (c *CodeDeploy) CreateDeploymentConfigRequest(input *CreateDeploymentConfig // API operation CreateDeploymentConfig for usage and error information. // // Returned Error Codes: -// * InvalidDeploymentConfigNameException +// * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException" // The deployment configuration name was specified in an invalid format. // -// * DeploymentConfigNameRequiredException +// * ErrCodeDeploymentConfigNameRequiredException "DeploymentConfigNameRequiredException" // The deployment configuration name was not specified. // -// * DeploymentConfigAlreadyExistsException +// * ErrCodeDeploymentConfigAlreadyExistsException "DeploymentConfigAlreadyExistsException" // A deployment configuration with the specified name already exists with the // applicable IAM user or AWS account. // -// * InvalidMinimumHealthyHostValueException +// * ErrCodeInvalidMinimumHealthyHostValueException "InvalidMinimumHealthyHostValueException" // The minimum healthy instance value was specified in an invalid format. // -// * DeploymentConfigLimitExceededException +// * ErrCodeDeploymentConfigLimitExceededException "DeploymentConfigLimitExceededException" // The deployment configurations limit was exceeded. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentConfig func (c *CodeDeploy) CreateDeploymentConfig(input *CreateDeploymentConfigInput) (*CreateDeploymentConfigOutput, error) { req, out := c.CreateDeploymentConfigRequest(input) err := req.Send() @@ -829,6 +940,7 @@ const opCreateDeploymentGroup = "CreateDeploymentGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentGroup func (c *CodeDeploy) CreateDeploymentGroupRequest(input *CreateDeploymentGroupInput) (req *request.Request, output *CreateDeploymentGroupOutput) { op := &request.Operation{ Name: opCreateDeploymentGroup, @@ -840,9 +952,8 @@ func (c *CodeDeploy) CreateDeploymentGroupRequest(input *CreateDeploymentGroupIn input = &CreateDeploymentGroupInput{} } - req = c.newRequest(op, input, output) output = &CreateDeploymentGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -858,82 +969,96 @@ func (c *CodeDeploy) CreateDeploymentGroupRequest(input *CreateDeploymentGroupIn // API operation CreateDeploymentGroup for usage and error information. // // Returned Error Codes: -// * ApplicationNameRequiredException +// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" // The minimum number of required application names was not specified. // -// * InvalidApplicationNameException +// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" // The application name was specified in an invalid format. // -// * ApplicationDoesNotExistException +// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" // The application does not exist with the applicable IAM user or AWS account. // -// * DeploymentGroupNameRequiredException +// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException" // The deployment group name was not specified. // -// * InvalidDeploymentGroupNameException +// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException" // The deployment group name was specified in an invalid format. // -// * DeploymentGroupAlreadyExistsException +// * ErrCodeDeploymentGroupAlreadyExistsException "DeploymentGroupAlreadyExistsException" // A deployment group with the specified name already exists with the applicable // IAM user or AWS account. // -// * InvalidEC2TagException +// * ErrCodeInvalidEC2TagException "InvalidEC2TagException" // The tag was specified in an invalid format. // -// * InvalidTagException +// * ErrCodeInvalidTagException "InvalidTagException" // The specified tag was specified in an invalid format. // -// * InvalidAutoScalingGroupException +// * ErrCodeInvalidAutoScalingGroupException "InvalidAutoScalingGroupException" // The Auto Scaling group was specified in an invalid format or does not exist. // -// * InvalidDeploymentConfigNameException +// * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException" // The deployment configuration name was specified in an invalid format. // -// * DeploymentConfigDoesNotExistException +// * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException" // The deployment configuration does not exist with the applicable IAM user // or AWS account. // -// * RoleRequiredException +// * ErrCodeRoleRequiredException "RoleRequiredException" // The role ID was not specified. // -// * InvalidRoleException +// * ErrCodeInvalidRoleException "InvalidRoleException" // The service role ARN was specified in an invalid format. Or, if an Auto Scaling // group was specified, the specified service role does not grant the appropriate // permissions to Auto Scaling. // -// * DeploymentGroupLimitExceededException +// * ErrCodeDeploymentGroupLimitExceededException "DeploymentGroupLimitExceededException" // The deployment groups limit was exceeded. // -// * LifecycleHookLimitExceededException +// * ErrCodeLifecycleHookLimitExceededException "LifecycleHookLimitExceededException" // The limit for lifecycle hooks was exceeded. // -// * InvalidTriggerConfigException +// * ErrCodeInvalidTriggerConfigException "InvalidTriggerConfigException" // The trigger was specified in an invalid format. // -// * TriggerTargetsLimitExceededException +// * ErrCodeTriggerTargetsLimitExceededException "TriggerTargetsLimitExceededException" // The maximum allowed number of triggers was exceeded. // -// * InvalidAlarmConfigException +// * ErrCodeInvalidAlarmConfigException "InvalidAlarmConfigException" // The format of the alarm configuration is invalid. Possible causes include: // -// The alarm list is null. +// * The alarm list is null. // -// The alarm object is null. +// * The alarm object is null. // -// The alarm name is empty or null or exceeds the 255 character limit. +// * The alarm name is empty or null or exceeds the 255 character limit. // -// Two alarms with the same name have been specified. +// * Two alarms with the same name have been specified. // -// The alarm configuration is enabled but the alarm list is empty. +// * The alarm configuration is enabled but the alarm list is empty. // -// * AlarmsLimitExceededException +// * ErrCodeAlarmsLimitExceededException "AlarmsLimitExceededException" // The maximum number of alarms for a deployment group (10) was exceeded. // -// * InvalidAutoRollbackConfigException +// * ErrCodeInvalidAutoRollbackConfigException "InvalidAutoRollbackConfigException" // The automatic rollback configuration was specified in an invalid format. // For example, automatic rollback is enabled but an invalid triggering event // type or no event types were listed. // +// * ErrCodeInvalidLoadBalancerInfoException "InvalidLoadBalancerInfoException" +// An invalid load balancer name, or no load balancer name, was specified. +// +// * ErrCodeInvalidDeploymentStyleException "InvalidDeploymentStyleException" +// An invalid deployment style was specified. Valid deployment types include +// "IN_PLACE" and "BLUE_GREEN". Valid deployment options for blue/green deployments +// include "WITH_TRAFFIC_CONTROL" and "WITHOUT_TRAFFIC_CONTROL". +// +// * ErrCodeInvalidBlueGreenDeploymentConfigurationException "InvalidBlueGreenDeploymentConfigurationException" +// The configuration for the blue/green deployment group was provided in an +// invalid format. For information about deployment configuration format, see +// CreateDeploymentConfig. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentGroup func (c *CodeDeploy) CreateDeploymentGroup(input *CreateDeploymentGroupInput) (*CreateDeploymentGroupOutput, error) { req, out := c.CreateDeploymentGroupRequest(input) err := req.Send() @@ -966,6 +1091,7 @@ const opDeleteApplication = "DeleteApplication" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteApplication func (c *CodeDeploy) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput) { op := &request.Operation{ Name: opDeleteApplication, @@ -977,11 +1103,10 @@ func (c *CodeDeploy) DeleteApplicationRequest(input *DeleteApplicationInput) (re input = &DeleteApplicationInput{} } + output = &DeleteApplicationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteApplicationOutput{} - req.Data = output return } @@ -997,12 +1122,13 @@ func (c *CodeDeploy) DeleteApplicationRequest(input *DeleteApplicationInput) (re // API operation DeleteApplication for usage and error information. // // Returned Error Codes: -// * ApplicationNameRequiredException +// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" // The minimum number of required application names was not specified. // -// * InvalidApplicationNameException +// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" // The application name was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteApplication func (c *CodeDeploy) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) { req, out := c.DeleteApplicationRequest(input) err := req.Send() @@ -1035,6 +1161,7 @@ const opDeleteDeploymentConfig = "DeleteDeploymentConfig" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentConfig func (c *CodeDeploy) DeleteDeploymentConfigRequest(input *DeleteDeploymentConfigInput) (req *request.Request, output *DeleteDeploymentConfigOutput) { op := &request.Operation{ Name: opDeleteDeploymentConfig, @@ -1046,11 +1173,10 @@ func (c *CodeDeploy) DeleteDeploymentConfigRequest(input *DeleteDeploymentConfig input = &DeleteDeploymentConfigInput{} } + output = &DeleteDeploymentConfigOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteDeploymentConfigOutput{} - req.Data = output return } @@ -1058,8 +1184,8 @@ func (c *CodeDeploy) DeleteDeploymentConfigRequest(input *DeleteDeploymentConfig // // Deletes a deployment configuration. // -// A deployment configuration cannot be deleted if it is currently in use. -// Predefined configurations cannot be deleted. +// A deployment configuration cannot be deleted if it is currently in use. Predefined +// configurations cannot be deleted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1069,18 +1195,19 @@ func (c *CodeDeploy) DeleteDeploymentConfigRequest(input *DeleteDeploymentConfig // API operation DeleteDeploymentConfig for usage and error information. // // Returned Error Codes: -// * InvalidDeploymentConfigNameException +// * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException" // The deployment configuration name was specified in an invalid format. // -// * DeploymentConfigNameRequiredException +// * ErrCodeDeploymentConfigNameRequiredException "DeploymentConfigNameRequiredException" // The deployment configuration name was not specified. // -// * DeploymentConfigInUseException +// * ErrCodeDeploymentConfigInUseException "DeploymentConfigInUseException" // The deployment configuration is still in use. // -// * InvalidOperationException +// * ErrCodeInvalidOperationException "InvalidOperationException" // An invalid operation was detected. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentConfig func (c *CodeDeploy) DeleteDeploymentConfig(input *DeleteDeploymentConfigInput) (*DeleteDeploymentConfigOutput, error) { req, out := c.DeleteDeploymentConfigRequest(input) err := req.Send() @@ -1113,6 +1240,7 @@ const opDeleteDeploymentGroup = "DeleteDeploymentGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentGroup func (c *CodeDeploy) DeleteDeploymentGroupRequest(input *DeleteDeploymentGroupInput) (req *request.Request, output *DeleteDeploymentGroupOutput) { op := &request.Operation{ Name: opDeleteDeploymentGroup, @@ -1124,9 +1252,8 @@ func (c *CodeDeploy) DeleteDeploymentGroupRequest(input *DeleteDeploymentGroupIn input = &DeleteDeploymentGroupInput{} } - req = c.newRequest(op, input, output) output = &DeleteDeploymentGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1142,23 +1269,24 @@ func (c *CodeDeploy) DeleteDeploymentGroupRequest(input *DeleteDeploymentGroupIn // API operation DeleteDeploymentGroup for usage and error information. // // Returned Error Codes: -// * ApplicationNameRequiredException +// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" // The minimum number of required application names was not specified. // -// * InvalidApplicationNameException +// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" // The application name was specified in an invalid format. // -// * DeploymentGroupNameRequiredException +// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException" // The deployment group name was not specified. // -// * InvalidDeploymentGroupNameException +// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException" // The deployment group name was specified in an invalid format. // -// * InvalidRoleException +// * ErrCodeInvalidRoleException "InvalidRoleException" // The service role ARN was specified in an invalid format. Or, if an Auto Scaling // group was specified, the specified service role does not grant the appropriate // permissions to Auto Scaling. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentGroup func (c *CodeDeploy) DeleteDeploymentGroup(input *DeleteDeploymentGroupInput) (*DeleteDeploymentGroupOutput, error) { req, out := c.DeleteDeploymentGroupRequest(input) err := req.Send() @@ -1191,6 +1319,7 @@ const opDeregisterOnPremisesInstance = "DeregisterOnPremisesInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeregisterOnPremisesInstance func (c *CodeDeploy) DeregisterOnPremisesInstanceRequest(input *DeregisterOnPremisesInstanceInput) (req *request.Request, output *DeregisterOnPremisesInstanceOutput) { op := &request.Operation{ Name: opDeregisterOnPremisesInstance, @@ -1202,11 +1331,10 @@ func (c *CodeDeploy) DeregisterOnPremisesInstanceRequest(input *DeregisterOnPrem input = &DeregisterOnPremisesInstanceInput{} } + output = &DeregisterOnPremisesInstanceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeregisterOnPremisesInstanceOutput{} - req.Data = output return } @@ -1222,12 +1350,13 @@ func (c *CodeDeploy) DeregisterOnPremisesInstanceRequest(input *DeregisterOnPrem // API operation DeregisterOnPremisesInstance for usage and error information. // // Returned Error Codes: -// * InstanceNameRequiredException +// * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException" // An on-premises instance name was not specified. // -// * InvalidInstanceNameException +// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException" // The specified on-premises instance name was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeregisterOnPremisesInstance func (c *CodeDeploy) DeregisterOnPremisesInstance(input *DeregisterOnPremisesInstanceInput) (*DeregisterOnPremisesInstanceOutput, error) { req, out := c.DeregisterOnPremisesInstanceRequest(input) err := req.Send() @@ -1260,6 +1389,7 @@ const opGetApplication = "GetApplication" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplication func (c *CodeDeploy) GetApplicationRequest(input *GetApplicationInput) (req *request.Request, output *GetApplicationOutput) { op := &request.Operation{ Name: opGetApplication, @@ -1271,9 +1401,8 @@ func (c *CodeDeploy) GetApplicationRequest(input *GetApplicationInput) (req *req input = &GetApplicationInput{} } - req = c.newRequest(op, input, output) output = &GetApplicationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1289,15 +1418,16 @@ func (c *CodeDeploy) GetApplicationRequest(input *GetApplicationInput) (req *req // API operation GetApplication for usage and error information. // // Returned Error Codes: -// * ApplicationNameRequiredException +// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" // The minimum number of required application names was not specified. // -// * InvalidApplicationNameException +// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" // The application name was specified in an invalid format. // -// * ApplicationDoesNotExistException +// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" // The application does not exist with the applicable IAM user or AWS account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplication func (c *CodeDeploy) GetApplication(input *GetApplicationInput) (*GetApplicationOutput, error) { req, out := c.GetApplicationRequest(input) err := req.Send() @@ -1330,6 +1460,7 @@ const opGetApplicationRevision = "GetApplicationRevision" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationRevision func (c *CodeDeploy) GetApplicationRevisionRequest(input *GetApplicationRevisionInput) (req *request.Request, output *GetApplicationRevisionOutput) { op := &request.Operation{ Name: opGetApplicationRevision, @@ -1341,9 +1472,8 @@ func (c *CodeDeploy) GetApplicationRevisionRequest(input *GetApplicationRevision input = &GetApplicationRevisionInput{} } - req = c.newRequest(op, input, output) output = &GetApplicationRevisionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1359,24 +1489,25 @@ func (c *CodeDeploy) GetApplicationRevisionRequest(input *GetApplicationRevision // API operation GetApplicationRevision for usage and error information. // // Returned Error Codes: -// * ApplicationDoesNotExistException +// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" // The application does not exist with the applicable IAM user or AWS account. // -// * ApplicationNameRequiredException +// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" // The minimum number of required application names was not specified. // -// * InvalidApplicationNameException +// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" // The application name was specified in an invalid format. // -// * RevisionDoesNotExistException +// * ErrCodeRevisionDoesNotExistException "RevisionDoesNotExistException" // The named revision does not exist with the applicable IAM user or AWS account. // -// * RevisionRequiredException +// * ErrCodeRevisionRequiredException "RevisionRequiredException" // The revision ID was not specified. // -// * InvalidRevisionException +// * ErrCodeInvalidRevisionException "InvalidRevisionException" // The revision was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationRevision func (c *CodeDeploy) GetApplicationRevision(input *GetApplicationRevisionInput) (*GetApplicationRevisionOutput, error) { req, out := c.GetApplicationRevisionRequest(input) err := req.Send() @@ -1409,6 +1540,7 @@ const opGetDeployment = "GetDeployment" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeployment func (c *CodeDeploy) GetDeploymentRequest(input *GetDeploymentInput) (req *request.Request, output *GetDeploymentOutput) { op := &request.Operation{ Name: opGetDeployment, @@ -1420,9 +1552,8 @@ func (c *CodeDeploy) GetDeploymentRequest(input *GetDeploymentInput) (req *reque input = &GetDeploymentInput{} } - req = c.newRequest(op, input, output) output = &GetDeploymentOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1438,15 +1569,16 @@ func (c *CodeDeploy) GetDeploymentRequest(input *GetDeploymentInput) (req *reque // API operation GetDeployment for usage and error information. // // Returned Error Codes: -// * DeploymentIdRequiredException +// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException" // At least one deployment ID must be specified. // -// * InvalidDeploymentIdException +// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" // At least one of the deployment IDs was specified in an invalid format. // -// * DeploymentDoesNotExistException +// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException" // The deployment does not exist with the applicable IAM user or AWS account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeployment func (c *CodeDeploy) GetDeployment(input *GetDeploymentInput) (*GetDeploymentOutput, error) { req, out := c.GetDeploymentRequest(input) err := req.Send() @@ -1479,6 +1611,7 @@ const opGetDeploymentConfig = "GetDeploymentConfig" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentConfig func (c *CodeDeploy) GetDeploymentConfigRequest(input *GetDeploymentConfigInput) (req *request.Request, output *GetDeploymentConfigOutput) { op := &request.Operation{ Name: opGetDeploymentConfig, @@ -1490,9 +1623,8 @@ func (c *CodeDeploy) GetDeploymentConfigRequest(input *GetDeploymentConfigInput) input = &GetDeploymentConfigInput{} } - req = c.newRequest(op, input, output) output = &GetDeploymentConfigOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1508,16 +1640,17 @@ func (c *CodeDeploy) GetDeploymentConfigRequest(input *GetDeploymentConfigInput) // API operation GetDeploymentConfig for usage and error information. // // Returned Error Codes: -// * InvalidDeploymentConfigNameException +// * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException" // The deployment configuration name was specified in an invalid format. // -// * DeploymentConfigNameRequiredException +// * ErrCodeDeploymentConfigNameRequiredException "DeploymentConfigNameRequiredException" // The deployment configuration name was not specified. // -// * DeploymentConfigDoesNotExistException +// * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException" // The deployment configuration does not exist with the applicable IAM user // or AWS account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentConfig func (c *CodeDeploy) GetDeploymentConfig(input *GetDeploymentConfigInput) (*GetDeploymentConfigOutput, error) { req, out := c.GetDeploymentConfigRequest(input) err := req.Send() @@ -1550,6 +1683,7 @@ const opGetDeploymentGroup = "GetDeploymentGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentGroup func (c *CodeDeploy) GetDeploymentGroupRequest(input *GetDeploymentGroupInput) (req *request.Request, output *GetDeploymentGroupOutput) { op := &request.Operation{ Name: opGetDeploymentGroup, @@ -1561,9 +1695,8 @@ func (c *CodeDeploy) GetDeploymentGroupRequest(input *GetDeploymentGroupInput) ( input = &GetDeploymentGroupInput{} } - req = c.newRequest(op, input, output) output = &GetDeploymentGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1579,25 +1712,26 @@ func (c *CodeDeploy) GetDeploymentGroupRequest(input *GetDeploymentGroupInput) ( // API operation GetDeploymentGroup for usage and error information. // // Returned Error Codes: -// * ApplicationNameRequiredException +// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" // The minimum number of required application names was not specified. // -// * InvalidApplicationNameException +// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" // The application name was specified in an invalid format. // -// * ApplicationDoesNotExistException +// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" // The application does not exist with the applicable IAM user or AWS account. // -// * DeploymentGroupNameRequiredException +// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException" // The deployment group name was not specified. // -// * InvalidDeploymentGroupNameException +// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException" // The deployment group name was specified in an invalid format. // -// * DeploymentGroupDoesNotExistException +// * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException" // The named deployment group does not exist with the applicable IAM user or // AWS account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentGroup func (c *CodeDeploy) GetDeploymentGroup(input *GetDeploymentGroupInput) (*GetDeploymentGroupOutput, error) { req, out := c.GetDeploymentGroupRequest(input) err := req.Send() @@ -1630,6 +1764,7 @@ const opGetDeploymentInstance = "GetDeploymentInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentInstance func (c *CodeDeploy) GetDeploymentInstanceRequest(input *GetDeploymentInstanceInput) (req *request.Request, output *GetDeploymentInstanceOutput) { op := &request.Operation{ Name: opGetDeploymentInstance, @@ -1641,9 +1776,8 @@ func (c *CodeDeploy) GetDeploymentInstanceRequest(input *GetDeploymentInstanceIn input = &GetDeploymentInstanceInput{} } - req = c.newRequest(op, input, output) output = &GetDeploymentInstanceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1659,24 +1793,25 @@ func (c *CodeDeploy) GetDeploymentInstanceRequest(input *GetDeploymentInstanceIn // API operation GetDeploymentInstance for usage and error information. // // Returned Error Codes: -// * DeploymentIdRequiredException +// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException" // At least one deployment ID must be specified. // -// * DeploymentDoesNotExistException +// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException" // The deployment does not exist with the applicable IAM user or AWS account. // -// * InstanceIdRequiredException +// * ErrCodeInstanceIdRequiredException "InstanceIdRequiredException" // The instance ID was not specified. // -// * InvalidDeploymentIdException +// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" // At least one of the deployment IDs was specified in an invalid format. // -// * InstanceDoesNotExistException +// * ErrCodeInstanceDoesNotExistException "InstanceDoesNotExistException" // The specified instance does not exist in the deployment group. // -// * InvalidInstanceNameException +// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException" // The specified on-premises instance name was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentInstance func (c *CodeDeploy) GetDeploymentInstance(input *GetDeploymentInstanceInput) (*GetDeploymentInstanceOutput, error) { req, out := c.GetDeploymentInstanceRequest(input) err := req.Send() @@ -1709,6 +1844,7 @@ const opGetOnPremisesInstance = "GetOnPremisesInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetOnPremisesInstance func (c *CodeDeploy) GetOnPremisesInstanceRequest(input *GetOnPremisesInstanceInput) (req *request.Request, output *GetOnPremisesInstanceOutput) { op := &request.Operation{ Name: opGetOnPremisesInstance, @@ -1720,9 +1856,8 @@ func (c *CodeDeploy) GetOnPremisesInstanceRequest(input *GetOnPremisesInstanceIn input = &GetOnPremisesInstanceInput{} } - req = c.newRequest(op, input, output) output = &GetOnPremisesInstanceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1738,15 +1873,16 @@ func (c *CodeDeploy) GetOnPremisesInstanceRequest(input *GetOnPremisesInstanceIn // API operation GetOnPremisesInstance for usage and error information. // // Returned Error Codes: -// * InstanceNameRequiredException +// * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException" // An on-premises instance name was not specified. // -// * InstanceNotRegisteredException +// * ErrCodeInstanceNotRegisteredException "InstanceNotRegisteredException" // The specified on-premises instance is not registered. // -// * InvalidInstanceNameException +// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException" // The specified on-premises instance name was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetOnPremisesInstance func (c *CodeDeploy) GetOnPremisesInstance(input *GetOnPremisesInstanceInput) (*GetOnPremisesInstanceOutput, error) { req, out := c.GetOnPremisesInstanceRequest(input) err := req.Send() @@ -1779,6 +1915,7 @@ const opListApplicationRevisions = "ListApplicationRevisions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplicationRevisions func (c *CodeDeploy) ListApplicationRevisionsRequest(input *ListApplicationRevisionsInput) (req *request.Request, output *ListApplicationRevisionsOutput) { op := &request.Operation{ Name: opListApplicationRevisions, @@ -1796,9 +1933,8 @@ func (c *CodeDeploy) ListApplicationRevisionsRequest(input *ListApplicationRevis input = &ListApplicationRevisionsInput{} } - req = c.newRequest(op, input, output) output = &ListApplicationRevisionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1814,37 +1950,38 @@ func (c *CodeDeploy) ListApplicationRevisionsRequest(input *ListApplicationRevis // API operation ListApplicationRevisions for usage and error information. // // Returned Error Codes: -// * ApplicationDoesNotExistException +// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" // The application does not exist with the applicable IAM user or AWS account. // -// * ApplicationNameRequiredException +// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" // The minimum number of required application names was not specified. // -// * InvalidApplicationNameException +// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" // The application name was specified in an invalid format. // -// * InvalidSortByException +// * ErrCodeInvalidSortByException "InvalidSortByException" // The column name to sort by is either not present or was specified in an invalid // format. // -// * InvalidSortOrderException +// * ErrCodeInvalidSortOrderException "InvalidSortOrderException" // The sort order was specified in an invalid format. // -// * InvalidBucketNameFilterException +// * ErrCodeInvalidBucketNameFilterException "InvalidBucketNameFilterException" // The bucket name either doesn't exist or was specified in an invalid format. // -// * InvalidKeyPrefixFilterException +// * ErrCodeInvalidKeyPrefixFilterException "InvalidKeyPrefixFilterException" // The specified key prefix filter was specified in an invalid format. // -// * BucketNameFilterRequiredException +// * ErrCodeBucketNameFilterRequiredException "BucketNameFilterRequiredException" // A bucket name is required, but was not provided. // -// * InvalidDeployedStateFilterException +// * ErrCodeInvalidDeployedStateFilterException "InvalidDeployedStateFilterException" // The deployed state filter was specified in an invalid format. // -// * InvalidNextTokenException +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" // The next token was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplicationRevisions func (c *CodeDeploy) ListApplicationRevisions(input *ListApplicationRevisionsInput) (*ListApplicationRevisionsOutput, error) { req, out := c.ListApplicationRevisionsRequest(input) err := req.Send() @@ -1902,6 +2039,7 @@ const opListApplications = "ListApplications" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplications func (c *CodeDeploy) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput) { op := &request.Operation{ Name: opListApplications, @@ -1919,9 +2057,8 @@ func (c *CodeDeploy) ListApplicationsRequest(input *ListApplicationsInput) (req input = &ListApplicationsInput{} } - req = c.newRequest(op, input, output) output = &ListApplicationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1937,9 +2074,10 @@ func (c *CodeDeploy) ListApplicationsRequest(input *ListApplicationsInput) (req // API operation ListApplications for usage and error information. // // Returned Error Codes: -// * InvalidNextTokenException +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" // The next token was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplications func (c *CodeDeploy) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) { req, out := c.ListApplicationsRequest(input) err := req.Send() @@ -1997,6 +2135,7 @@ const opListDeploymentConfigs = "ListDeploymentConfigs" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentConfigs func (c *CodeDeploy) ListDeploymentConfigsRequest(input *ListDeploymentConfigsInput) (req *request.Request, output *ListDeploymentConfigsOutput) { op := &request.Operation{ Name: opListDeploymentConfigs, @@ -2014,9 +2153,8 @@ func (c *CodeDeploy) ListDeploymentConfigsRequest(input *ListDeploymentConfigsIn input = &ListDeploymentConfigsInput{} } - req = c.newRequest(op, input, output) output = &ListDeploymentConfigsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2032,9 +2170,10 @@ func (c *CodeDeploy) ListDeploymentConfigsRequest(input *ListDeploymentConfigsIn // API operation ListDeploymentConfigs for usage and error information. // // Returned Error Codes: -// * InvalidNextTokenException +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" // The next token was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentConfigs func (c *CodeDeploy) ListDeploymentConfigs(input *ListDeploymentConfigsInput) (*ListDeploymentConfigsOutput, error) { req, out := c.ListDeploymentConfigsRequest(input) err := req.Send() @@ -2092,6 +2231,7 @@ const opListDeploymentGroups = "ListDeploymentGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentGroups func (c *CodeDeploy) ListDeploymentGroupsRequest(input *ListDeploymentGroupsInput) (req *request.Request, output *ListDeploymentGroupsOutput) { op := &request.Operation{ Name: opListDeploymentGroups, @@ -2109,9 +2249,8 @@ func (c *CodeDeploy) ListDeploymentGroupsRequest(input *ListDeploymentGroupsInpu input = &ListDeploymentGroupsInput{} } - req = c.newRequest(op, input, output) output = &ListDeploymentGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2128,18 +2267,19 @@ func (c *CodeDeploy) ListDeploymentGroupsRequest(input *ListDeploymentGroupsInpu // API operation ListDeploymentGroups for usage and error information. // // Returned Error Codes: -// * ApplicationNameRequiredException +// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" // The minimum number of required application names was not specified. // -// * InvalidApplicationNameException +// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" // The application name was specified in an invalid format. // -// * ApplicationDoesNotExistException +// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" // The application does not exist with the applicable IAM user or AWS account. // -// * InvalidNextTokenException +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" // The next token was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentGroups func (c *CodeDeploy) ListDeploymentGroups(input *ListDeploymentGroupsInput) (*ListDeploymentGroupsOutput, error) { req, out := c.ListDeploymentGroupsRequest(input) err := req.Send() @@ -2197,6 +2337,7 @@ const opListDeploymentInstances = "ListDeploymentInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentInstances func (c *CodeDeploy) ListDeploymentInstancesRequest(input *ListDeploymentInstancesInput) (req *request.Request, output *ListDeploymentInstancesOutput) { op := &request.Operation{ Name: opListDeploymentInstances, @@ -2214,9 +2355,8 @@ func (c *CodeDeploy) ListDeploymentInstancesRequest(input *ListDeploymentInstanc input = &ListDeploymentInstancesInput{} } - req = c.newRequest(op, input, output) output = &ListDeploymentInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2233,24 +2373,30 @@ func (c *CodeDeploy) ListDeploymentInstancesRequest(input *ListDeploymentInstanc // API operation ListDeploymentInstances for usage and error information. // // Returned Error Codes: -// * DeploymentIdRequiredException +// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException" // At least one deployment ID must be specified. // -// * DeploymentDoesNotExistException +// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException" // The deployment does not exist with the applicable IAM user or AWS account. // -// * DeploymentNotStartedException +// * ErrCodeDeploymentNotStartedException "DeploymentNotStartedException" // The specified deployment has not started. // -// * InvalidNextTokenException +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" // The next token was specified in an invalid format. // -// * InvalidDeploymentIdException +// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" // At least one of the deployment IDs was specified in an invalid format. // -// * InvalidInstanceStatusException +// * ErrCodeInvalidInstanceStatusException "InvalidInstanceStatusException" // The specified instance status does not exist. // +// * ErrCodeInvalidInstanceTypeException "InvalidInstanceTypeException" +// An invalid instance type was specified for instances in a blue/green deployment. +// Valid values include "Blue" for an original environment and "Green" for a +// replacement environment. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentInstances func (c *CodeDeploy) ListDeploymentInstances(input *ListDeploymentInstancesInput) (*ListDeploymentInstancesOutput, error) { req, out := c.ListDeploymentInstancesRequest(input) err := req.Send() @@ -2308,6 +2454,7 @@ const opListDeployments = "ListDeployments" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeployments func (c *CodeDeploy) ListDeploymentsRequest(input *ListDeploymentsInput) (req *request.Request, output *ListDeploymentsOutput) { op := &request.Operation{ Name: opListDeployments, @@ -2325,9 +2472,8 @@ func (c *CodeDeploy) ListDeploymentsRequest(input *ListDeploymentsInput) (req *r input = &ListDeploymentsInput{} } - req = c.newRequest(op, input, output) output = &ListDeploymentsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2344,34 +2490,35 @@ func (c *CodeDeploy) ListDeploymentsRequest(input *ListDeploymentsInput) (req *r // API operation ListDeployments for usage and error information. // // Returned Error Codes: -// * ApplicationNameRequiredException +// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" // The minimum number of required application names was not specified. // -// * InvalidApplicationNameException +// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" // The application name was specified in an invalid format. // -// * ApplicationDoesNotExistException +// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" // The application does not exist with the applicable IAM user or AWS account. // -// * InvalidDeploymentGroupNameException +// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException" // The deployment group name was specified in an invalid format. // -// * DeploymentGroupDoesNotExistException +// * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException" // The named deployment group does not exist with the applicable IAM user or // AWS account. // -// * DeploymentGroupNameRequiredException +// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException" // The deployment group name was not specified. // -// * InvalidTimeRangeException +// * ErrCodeInvalidTimeRangeException "InvalidTimeRangeException" // The specified time range was specified in an invalid format. // -// * InvalidDeploymentStatusException +// * ErrCodeInvalidDeploymentStatusException "InvalidDeploymentStatusException" // The specified deployment status doesn't exist or cannot be determined. // -// * InvalidNextTokenException +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" // The next token was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeployments func (c *CodeDeploy) ListDeployments(input *ListDeploymentsInput) (*ListDeploymentsOutput, error) { req, out := c.ListDeploymentsRequest(input) err := req.Send() @@ -2429,6 +2576,7 @@ const opListOnPremisesInstances = "ListOnPremisesInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListOnPremisesInstances func (c *CodeDeploy) ListOnPremisesInstancesRequest(input *ListOnPremisesInstancesInput) (req *request.Request, output *ListOnPremisesInstancesOutput) { op := &request.Operation{ Name: opListOnPremisesInstances, @@ -2440,9 +2588,8 @@ func (c *CodeDeploy) ListOnPremisesInstancesRequest(input *ListOnPremisesInstanc input = &ListOnPremisesInstancesInput{} } - req = c.newRequest(op, input, output) output = &ListOnPremisesInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2462,15 +2609,16 @@ func (c *CodeDeploy) ListOnPremisesInstancesRequest(input *ListOnPremisesInstanc // API operation ListOnPremisesInstances for usage and error information. // // Returned Error Codes: -// * InvalidRegistrationStatusException +// * ErrCodeInvalidRegistrationStatusException "InvalidRegistrationStatusException" // The registration status was specified in an invalid format. // -// * InvalidTagFilterException +// * ErrCodeInvalidTagFilterException "InvalidTagFilterException" // The specified tag filter was specified in an invalid format. // -// * InvalidNextTokenException +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" // The next token was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListOnPremisesInstances func (c *CodeDeploy) ListOnPremisesInstances(input *ListOnPremisesInstancesInput) (*ListOnPremisesInstancesOutput, error) { req, out := c.ListOnPremisesInstancesRequest(input) err := req.Send() @@ -2503,6 +2651,7 @@ const opRegisterApplicationRevision = "RegisterApplicationRevision" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterApplicationRevision func (c *CodeDeploy) RegisterApplicationRevisionRequest(input *RegisterApplicationRevisionInput) (req *request.Request, output *RegisterApplicationRevisionOutput) { op := &request.Operation{ Name: opRegisterApplicationRevision, @@ -2514,11 +2663,10 @@ func (c *CodeDeploy) RegisterApplicationRevisionRequest(input *RegisterApplicati input = &RegisterApplicationRevisionInput{} } + output = &RegisterApplicationRevisionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RegisterApplicationRevisionOutput{} - req.Data = output return } @@ -2534,24 +2682,25 @@ func (c *CodeDeploy) RegisterApplicationRevisionRequest(input *RegisterApplicati // API operation RegisterApplicationRevision for usage and error information. // // Returned Error Codes: -// * ApplicationDoesNotExistException +// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" // The application does not exist with the applicable IAM user or AWS account. // -// * ApplicationNameRequiredException +// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" // The minimum number of required application names was not specified. // -// * InvalidApplicationNameException +// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" // The application name was specified in an invalid format. // -// * DescriptionTooLongException +// * ErrCodeDescriptionTooLongException "DescriptionTooLongException" // The description is too long. // -// * RevisionRequiredException +// * ErrCodeRevisionRequiredException "RevisionRequiredException" // The revision ID was not specified. // -// * InvalidRevisionException +// * ErrCodeInvalidRevisionException "InvalidRevisionException" // The revision was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterApplicationRevision func (c *CodeDeploy) RegisterApplicationRevision(input *RegisterApplicationRevisionInput) (*RegisterApplicationRevisionOutput, error) { req, out := c.RegisterApplicationRevisionRequest(input) err := req.Send() @@ -2584,6 +2733,7 @@ const opRegisterOnPremisesInstance = "RegisterOnPremisesInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterOnPremisesInstance func (c *CodeDeploy) RegisterOnPremisesInstanceRequest(input *RegisterOnPremisesInstanceInput) (req *request.Request, output *RegisterOnPremisesInstanceOutput) { op := &request.Operation{ Name: opRegisterOnPremisesInstance, @@ -2595,11 +2745,10 @@ func (c *CodeDeploy) RegisterOnPremisesInstanceRequest(input *RegisterOnPremises input = &RegisterOnPremisesInstanceInput{} } + output = &RegisterOnPremisesInstanceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RegisterOnPremisesInstanceOutput{} - req.Data = output return } @@ -2607,6 +2756,9 @@ func (c *CodeDeploy) RegisterOnPremisesInstanceRequest(input *RegisterOnPremises // // Registers an on-premises instance. // +// Only one IAM ARN (an IAM session ARN or IAM user ARN) is supported in the +// request. You cannot use both. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -2615,24 +2767,40 @@ func (c *CodeDeploy) RegisterOnPremisesInstanceRequest(input *RegisterOnPremises // API operation RegisterOnPremisesInstance for usage and error information. // // Returned Error Codes: -// * InstanceNameAlreadyRegisteredException +// * ErrCodeInstanceNameAlreadyRegisteredException "InstanceNameAlreadyRegisteredException" // The specified on-premises instance name is already registered. // -// * IamUserArnAlreadyRegisteredException +// * ErrCodeIamArnRequiredException "IamArnRequiredException" +// No IAM ARN was included in the request. You must use an IAM session ARN or +// IAM user ARN in the request. +// +// * ErrCodeIamSessionArnAlreadyRegisteredException "IamSessionArnAlreadyRegisteredException" +// The request included an IAM session ARN that has already been used to register +// a different instance. +// +// * ErrCodeIamUserArnAlreadyRegisteredException "IamUserArnAlreadyRegisteredException" // The specified IAM user ARN is already registered with an on-premises instance. // -// * InstanceNameRequiredException +// * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException" // An on-premises instance name was not specified. // -// * IamUserArnRequiredException +// * ErrCodeIamUserArnRequiredException "IamUserArnRequiredException" // An IAM user ARN was not specified. // -// * InvalidInstanceNameException +// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException" // The specified on-premises instance name was specified in an invalid format. // -// * InvalidIamUserArnException +// * ErrCodeInvalidIamSessionArnException "InvalidIamSessionArnException" +// The IAM session ARN was specified in an invalid format. +// +// * ErrCodeInvalidIamUserArnException "InvalidIamUserArnException" // The IAM user ARN was specified in an invalid format. // +// * ErrCodeMultipleIamArnsProvidedException "MultipleIamArnsProvidedException" +// Both an IAM user ARN and an IAM session ARN were included in the request. +// Use only one ARN type. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterOnPremisesInstance func (c *CodeDeploy) RegisterOnPremisesInstance(input *RegisterOnPremisesInstanceInput) (*RegisterOnPremisesInstanceOutput, error) { req, out := c.RegisterOnPremisesInstanceRequest(input) err := req.Send() @@ -2665,6 +2833,7 @@ const opRemoveTagsFromOnPremisesInstances = "RemoveTagsFromOnPremisesInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RemoveTagsFromOnPremisesInstances func (c *CodeDeploy) RemoveTagsFromOnPremisesInstancesRequest(input *RemoveTagsFromOnPremisesInstancesInput) (req *request.Request, output *RemoveTagsFromOnPremisesInstancesOutput) { op := &request.Operation{ Name: opRemoveTagsFromOnPremisesInstances, @@ -2676,11 +2845,10 @@ func (c *CodeDeploy) RemoveTagsFromOnPremisesInstancesRequest(input *RemoveTagsF input = &RemoveTagsFromOnPremisesInstancesInput{} } + output = &RemoveTagsFromOnPremisesInstancesOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RemoveTagsFromOnPremisesInstancesOutput{} - req.Data = output return } @@ -2696,31 +2864,115 @@ func (c *CodeDeploy) RemoveTagsFromOnPremisesInstancesRequest(input *RemoveTagsF // API operation RemoveTagsFromOnPremisesInstances for usage and error information. // // Returned Error Codes: -// * InstanceNameRequiredException +// * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException" // An on-premises instance name was not specified. // -// * TagRequiredException +// * ErrCodeTagRequiredException "TagRequiredException" // A tag was not specified. // -// * InvalidTagException +// * ErrCodeInvalidTagException "InvalidTagException" // The specified tag was specified in an invalid format. // -// * TagLimitExceededException +// * ErrCodeTagLimitExceededException "TagLimitExceededException" // The maximum allowed number of tags was exceeded. // -// * InstanceLimitExceededException +// * ErrCodeInstanceLimitExceededException "InstanceLimitExceededException" // The maximum number of allowed on-premises instances in a single call was // exceeded. // -// * InstanceNotRegisteredException +// * ErrCodeInstanceNotRegisteredException "InstanceNotRegisteredException" // The specified on-premises instance is not registered. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RemoveTagsFromOnPremisesInstances func (c *CodeDeploy) RemoveTagsFromOnPremisesInstances(input *RemoveTagsFromOnPremisesInstancesInput) (*RemoveTagsFromOnPremisesInstancesOutput, error) { req, out := c.RemoveTagsFromOnPremisesInstancesRequest(input) err := req.Send() return out, err } +const opSkipWaitTimeForInstanceTermination = "SkipWaitTimeForInstanceTermination" + +// SkipWaitTimeForInstanceTerminationRequest generates a "aws/request.Request" representing the +// client's request for the SkipWaitTimeForInstanceTermination operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See SkipWaitTimeForInstanceTermination for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the SkipWaitTimeForInstanceTermination method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the SkipWaitTimeForInstanceTerminationRequest method. +// req, resp := client.SkipWaitTimeForInstanceTerminationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/SkipWaitTimeForInstanceTermination +func (c *CodeDeploy) SkipWaitTimeForInstanceTerminationRequest(input *SkipWaitTimeForInstanceTerminationInput) (req *request.Request, output *SkipWaitTimeForInstanceTerminationOutput) { + op := &request.Operation{ + Name: opSkipWaitTimeForInstanceTermination, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &SkipWaitTimeForInstanceTerminationInput{} + } + + output = &SkipWaitTimeForInstanceTerminationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// SkipWaitTimeForInstanceTermination API operation for AWS CodeDeploy. +// +// In a blue/green deployment, overrides any specified wait time and starts +// terminating instances immediately after the traffic routing is completed. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation SkipWaitTimeForInstanceTermination for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException" +// At least one deployment ID must be specified. +// +// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException" +// The deployment does not exist with the applicable IAM user or AWS account. +// +// * ErrCodeDeploymentAlreadyCompletedException "DeploymentAlreadyCompletedException" +// The deployment is already complete. +// +// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" +// At least one of the deployment IDs was specified in an invalid format. +// +// * ErrCodeDeploymentNotStartedException "DeploymentNotStartedException" +// The specified deployment has not started. +// +// * ErrCodeUnsupportedActionForDeploymentTypeException "UnsupportedActionForDeploymentTypeException" +// A call was submitted that is not supported for the specified deployment type. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/SkipWaitTimeForInstanceTermination +func (c *CodeDeploy) SkipWaitTimeForInstanceTermination(input *SkipWaitTimeForInstanceTerminationInput) (*SkipWaitTimeForInstanceTerminationOutput, error) { + req, out := c.SkipWaitTimeForInstanceTerminationRequest(input) + err := req.Send() + return out, err +} + const opStopDeployment = "StopDeployment" // StopDeploymentRequest generates a "aws/request.Request" representing the @@ -2747,6 +2999,7 @@ const opStopDeployment = "StopDeployment" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/StopDeployment func (c *CodeDeploy) StopDeploymentRequest(input *StopDeploymentInput) (req *request.Request, output *StopDeploymentOutput) { op := &request.Operation{ Name: opStopDeployment, @@ -2758,9 +3011,8 @@ func (c *CodeDeploy) StopDeploymentRequest(input *StopDeploymentInput) (req *req input = &StopDeploymentInput{} } - req = c.newRequest(op, input, output) output = &StopDeploymentOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2776,18 +3028,19 @@ func (c *CodeDeploy) StopDeploymentRequest(input *StopDeploymentInput) (req *req // API operation StopDeployment for usage and error information. // // Returned Error Codes: -// * DeploymentIdRequiredException +// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException" // At least one deployment ID must be specified. // -// * DeploymentDoesNotExistException +// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException" // The deployment does not exist with the applicable IAM user or AWS account. // -// * DeploymentAlreadyCompletedException +// * ErrCodeDeploymentAlreadyCompletedException "DeploymentAlreadyCompletedException" // The deployment is already complete. // -// * InvalidDeploymentIdException +// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" // At least one of the deployment IDs was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/StopDeployment func (c *CodeDeploy) StopDeployment(input *StopDeploymentInput) (*StopDeploymentOutput, error) { req, out := c.StopDeploymentRequest(input) err := req.Send() @@ -2820,6 +3073,7 @@ const opUpdateApplication = "UpdateApplication" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateApplication func (c *CodeDeploy) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput) { op := &request.Operation{ Name: opUpdateApplication, @@ -2831,11 +3085,10 @@ func (c *CodeDeploy) UpdateApplicationRequest(input *UpdateApplicationInput) (re input = &UpdateApplicationInput{} } + output = &UpdateApplicationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateApplicationOutput{} - req.Data = output return } @@ -2851,19 +3104,20 @@ func (c *CodeDeploy) UpdateApplicationRequest(input *UpdateApplicationInput) (re // API operation UpdateApplication for usage and error information. // // Returned Error Codes: -// * ApplicationNameRequiredException +// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" // The minimum number of required application names was not specified. // -// * InvalidApplicationNameException +// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" // The application name was specified in an invalid format. // -// * ApplicationAlreadyExistsException +// * ErrCodeApplicationAlreadyExistsException "ApplicationAlreadyExistsException" // An application with the specified name already exists with the applicable // IAM user or AWS account. // -// * ApplicationDoesNotExistException +// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" // The application does not exist with the applicable IAM user or AWS account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateApplication func (c *CodeDeploy) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) { req, out := c.UpdateApplicationRequest(input) err := req.Send() @@ -2896,6 +3150,7 @@ const opUpdateDeploymentGroup = "UpdateDeploymentGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateDeploymentGroup func (c *CodeDeploy) UpdateDeploymentGroupRequest(input *UpdateDeploymentGroupInput) (req *request.Request, output *UpdateDeploymentGroupOutput) { op := &request.Operation{ Name: opUpdateDeploymentGroup, @@ -2907,9 +3162,8 @@ func (c *CodeDeploy) UpdateDeploymentGroupRequest(input *UpdateDeploymentGroupIn input = &UpdateDeploymentGroupInput{} } - req = c.newRequest(op, input, output) output = &UpdateDeploymentGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2925,80 +3179,94 @@ func (c *CodeDeploy) UpdateDeploymentGroupRequest(input *UpdateDeploymentGroupIn // API operation UpdateDeploymentGroup for usage and error information. // // Returned Error Codes: -// * ApplicationNameRequiredException +// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" // The minimum number of required application names was not specified. // -// * InvalidApplicationNameException +// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" // The application name was specified in an invalid format. // -// * ApplicationDoesNotExistException +// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" // The application does not exist with the applicable IAM user or AWS account. // -// * InvalidDeploymentGroupNameException +// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException" // The deployment group name was specified in an invalid format. // -// * DeploymentGroupAlreadyExistsException +// * ErrCodeDeploymentGroupAlreadyExistsException "DeploymentGroupAlreadyExistsException" // A deployment group with the specified name already exists with the applicable // IAM user or AWS account. // -// * DeploymentGroupNameRequiredException +// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException" // The deployment group name was not specified. // -// * DeploymentGroupDoesNotExistException +// * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException" // The named deployment group does not exist with the applicable IAM user or // AWS account. // -// * InvalidEC2TagException +// * ErrCodeInvalidEC2TagException "InvalidEC2TagException" // The tag was specified in an invalid format. // -// * InvalidTagException +// * ErrCodeInvalidTagException "InvalidTagException" // The specified tag was specified in an invalid format. // -// * InvalidAutoScalingGroupException +// * ErrCodeInvalidAutoScalingGroupException "InvalidAutoScalingGroupException" // The Auto Scaling group was specified in an invalid format or does not exist. // -// * InvalidDeploymentConfigNameException +// * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException" // The deployment configuration name was specified in an invalid format. // -// * DeploymentConfigDoesNotExistException +// * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException" // The deployment configuration does not exist with the applicable IAM user // or AWS account. // -// * InvalidRoleException +// * ErrCodeInvalidRoleException "InvalidRoleException" // The service role ARN was specified in an invalid format. Or, if an Auto Scaling // group was specified, the specified service role does not grant the appropriate // permissions to Auto Scaling. // -// * LifecycleHookLimitExceededException +// * ErrCodeLifecycleHookLimitExceededException "LifecycleHookLimitExceededException" // The limit for lifecycle hooks was exceeded. // -// * InvalidTriggerConfigException +// * ErrCodeInvalidTriggerConfigException "InvalidTriggerConfigException" // The trigger was specified in an invalid format. // -// * TriggerTargetsLimitExceededException +// * ErrCodeTriggerTargetsLimitExceededException "TriggerTargetsLimitExceededException" // The maximum allowed number of triggers was exceeded. // -// * InvalidAlarmConfigException +// * ErrCodeInvalidAlarmConfigException "InvalidAlarmConfigException" // The format of the alarm configuration is invalid. Possible causes include: // -// The alarm list is null. +// * The alarm list is null. // -// The alarm object is null. +// * The alarm object is null. // -// The alarm name is empty or null or exceeds the 255 character limit. +// * The alarm name is empty or null or exceeds the 255 character limit. // -// Two alarms with the same name have been specified. +// * Two alarms with the same name have been specified. // -// The alarm configuration is enabled but the alarm list is empty. +// * The alarm configuration is enabled but the alarm list is empty. // -// * AlarmsLimitExceededException +// * ErrCodeAlarmsLimitExceededException "AlarmsLimitExceededException" // The maximum number of alarms for a deployment group (10) was exceeded. // -// * InvalidAutoRollbackConfigException +// * ErrCodeInvalidAutoRollbackConfigException "InvalidAutoRollbackConfigException" // The automatic rollback configuration was specified in an invalid format. // For example, automatic rollback is enabled but an invalid triggering event // type or no event types were listed. // +// * ErrCodeInvalidLoadBalancerInfoException "InvalidLoadBalancerInfoException" +// An invalid load balancer name, or no load balancer name, was specified. +// +// * ErrCodeInvalidDeploymentStyleException "InvalidDeploymentStyleException" +// An invalid deployment style was specified. Valid deployment types include +// "IN_PLACE" and "BLUE_GREEN". Valid deployment options for blue/green deployments +// include "WITH_TRAFFIC_CONTROL" and "WITHOUT_TRAFFIC_CONTROL". +// +// * ErrCodeInvalidBlueGreenDeploymentConfigurationException "InvalidBlueGreenDeploymentConfigurationException" +// The configuration for the blue/green deployment group was provided in an +// invalid format. For information about deployment configuration format, see +// CreateDeploymentConfig. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateDeploymentGroup func (c *CodeDeploy) UpdateDeploymentGroup(input *UpdateDeploymentGroupInput) (*UpdateDeploymentGroupOutput, error) { req, out := c.UpdateDeploymentGroupRequest(input) err := req.Send() @@ -3006,6 +3274,7 @@ func (c *CodeDeploy) UpdateDeploymentGroup(input *UpdateDeploymentGroupInput) (* } // Represents the input of, and adds tags to, an on-premises instance operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AddTagsToOnPremisesInstancesInput type AddTagsToOnPremisesInstancesInput struct { _ struct{} `type:"structure"` @@ -3049,6 +3318,19 @@ func (s *AddTagsToOnPremisesInstancesInput) Validate() error { return nil } +// SetInstanceNames sets the InstanceNames field's value. +func (s *AddTagsToOnPremisesInstancesInput) SetInstanceNames(v []*string) *AddTagsToOnPremisesInstancesInput { + s.InstanceNames = v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsToOnPremisesInstancesInput) SetTags(v []*Tag) *AddTagsToOnPremisesInstancesInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AddTagsToOnPremisesInstancesOutput type AddTagsToOnPremisesInstancesOutput struct { _ struct{} `type:"structure"` } @@ -3064,6 +3346,7 @@ func (s AddTagsToOnPremisesInstancesOutput) GoString() string { } // Information about an alarm. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/Alarm type Alarm struct { _ struct{} `type:"structure"` @@ -3082,7 +3365,14 @@ func (s Alarm) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *Alarm) SetName(v string) *Alarm { + s.Name = &v + return s +} + // Information about alarms associated with the deployment group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AlarmConfiguration type AlarmConfiguration struct { _ struct{} `type:"structure"` @@ -3097,11 +3387,11 @@ type AlarmConfiguration struct { // state of alarms cannot be retrieved from Amazon CloudWatch. The default value // is false. // - // true: The deployment will proceed even if alarm status information can't - // be retrieved from Amazon CloudWatch. + // * true: The deployment will proceed even if alarm status information can't + // be retrieved from Amazon CloudWatch. // - // false: The deployment will stop if alarm status information can't be retrieved - // from Amazon CloudWatch. + // * false: The deployment will stop if alarm status information can't be + // retrieved from Amazon CloudWatch. IgnorePollAlarmFailure *bool `locationName:"ignorePollAlarmFailure" type:"boolean"` } @@ -3115,7 +3405,26 @@ func (s AlarmConfiguration) GoString() string { return s.String() } +// SetAlarms sets the Alarms field's value. +func (s *AlarmConfiguration) SetAlarms(v []*Alarm) *AlarmConfiguration { + s.Alarms = v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *AlarmConfiguration) SetEnabled(v bool) *AlarmConfiguration { + s.Enabled = &v + return s +} + +// SetIgnorePollAlarmFailure sets the IgnorePollAlarmFailure field's value. +func (s *AlarmConfiguration) SetIgnorePollAlarmFailure(v bool) *AlarmConfiguration { + s.IgnorePollAlarmFailure = &v + return s +} + // Information about an application. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ApplicationInfo type ApplicationInfo struct { _ struct{} `type:"structure"` @@ -3143,8 +3452,33 @@ func (s ApplicationInfo) GoString() string { return s.String() } +// SetApplicationId sets the ApplicationId field's value. +func (s *ApplicationInfo) SetApplicationId(v string) *ApplicationInfo { + s.ApplicationId = &v + return s +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *ApplicationInfo) SetApplicationName(v string) *ApplicationInfo { + s.ApplicationName = &v + return s +} + +// SetCreateTime sets the CreateTime field's value. +func (s *ApplicationInfo) SetCreateTime(v time.Time) *ApplicationInfo { + s.CreateTime = &v + return s +} + +// SetLinkedToGitHub sets the LinkedToGitHub field's value. +func (s *ApplicationInfo) SetLinkedToGitHub(v bool) *ApplicationInfo { + s.LinkedToGitHub = &v + return s +} + // Information about a configuration for automatically rolling back to a previous // version of an application revision when a deployment doesn't complete successfully. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AutoRollbackConfiguration type AutoRollbackConfiguration struct { _ struct{} `type:"structure"` @@ -3166,7 +3500,20 @@ func (s AutoRollbackConfiguration) GoString() string { return s.String() } +// SetEnabled sets the Enabled field's value. +func (s *AutoRollbackConfiguration) SetEnabled(v bool) *AutoRollbackConfiguration { + s.Enabled = &v + return s +} + +// SetEvents sets the Events field's value. +func (s *AutoRollbackConfiguration) SetEvents(v []*string) *AutoRollbackConfiguration { + s.Events = v + return s +} + // Information about an Auto Scaling group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AutoScalingGroup type AutoScalingGroup struct { _ struct{} `type:"structure"` @@ -3187,7 +3534,20 @@ func (s AutoScalingGroup) GoString() string { return s.String() } +// SetHook sets the Hook field's value. +func (s *AutoScalingGroup) SetHook(v string) *AutoScalingGroup { + s.Hook = &v + return s +} + +// SetName sets the Name field's value. +func (s *AutoScalingGroup) SetName(v string) *AutoScalingGroup { + s.Name = &v + return s +} + // Represents the input of a batch get application revisions operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationRevisionsInput type BatchGetApplicationRevisionsInput struct { _ struct{} `type:"structure"` @@ -3231,7 +3591,20 @@ func (s *BatchGetApplicationRevisionsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *BatchGetApplicationRevisionsInput) SetApplicationName(v string) *BatchGetApplicationRevisionsInput { + s.ApplicationName = &v + return s +} + +// SetRevisions sets the Revisions field's value. +func (s *BatchGetApplicationRevisionsInput) SetRevisions(v []*RevisionLocation) *BatchGetApplicationRevisionsInput { + s.Revisions = v + return s +} + // Represents the output of a batch get application revisions operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationRevisionsOutput type BatchGetApplicationRevisionsOutput struct { _ struct{} `type:"structure"` @@ -3255,7 +3628,26 @@ func (s BatchGetApplicationRevisionsOutput) GoString() string { return s.String() } +// SetApplicationName sets the ApplicationName field's value. +func (s *BatchGetApplicationRevisionsOutput) SetApplicationName(v string) *BatchGetApplicationRevisionsOutput { + s.ApplicationName = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *BatchGetApplicationRevisionsOutput) SetErrorMessage(v string) *BatchGetApplicationRevisionsOutput { + s.ErrorMessage = &v + return s +} + +// SetRevisions sets the Revisions field's value. +func (s *BatchGetApplicationRevisionsOutput) SetRevisions(v []*RevisionInfo) *BatchGetApplicationRevisionsOutput { + s.Revisions = v + return s +} + // Represents the input of a batch get applications operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationsInput type BatchGetApplicationsInput struct { _ struct{} `type:"structure"` @@ -3273,7 +3665,14 @@ func (s BatchGetApplicationsInput) GoString() string { return s.String() } +// SetApplicationNames sets the ApplicationNames field's value. +func (s *BatchGetApplicationsInput) SetApplicationNames(v []*string) *BatchGetApplicationsInput { + s.ApplicationNames = v + return s +} + // Represents the output of a batch get applications operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationsOutput type BatchGetApplicationsOutput struct { _ struct{} `type:"structure"` @@ -3291,7 +3690,14 @@ func (s BatchGetApplicationsOutput) GoString() string { return s.String() } +// SetApplicationsInfo sets the ApplicationsInfo field's value. +func (s *BatchGetApplicationsOutput) SetApplicationsInfo(v []*ApplicationInfo) *BatchGetApplicationsOutput { + s.ApplicationsInfo = v + return s +} + // Represents the input of a batch get deployment groups operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentGroupsInput type BatchGetDeploymentGroupsInput struct { _ struct{} `type:"structure"` @@ -3336,7 +3742,20 @@ func (s *BatchGetDeploymentGroupsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *BatchGetDeploymentGroupsInput) SetApplicationName(v string) *BatchGetDeploymentGroupsInput { + s.ApplicationName = &v + return s +} + +// SetDeploymentGroupNames sets the DeploymentGroupNames field's value. +func (s *BatchGetDeploymentGroupsInput) SetDeploymentGroupNames(v []*string) *BatchGetDeploymentGroupsInput { + s.DeploymentGroupNames = v + return s +} + // Represents the output of a batch get deployment groups operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentGroupsOutput type BatchGetDeploymentGroupsOutput struct { _ struct{} `type:"structure"` @@ -3357,7 +3776,20 @@ func (s BatchGetDeploymentGroupsOutput) GoString() string { return s.String() } +// SetDeploymentGroupsInfo sets the DeploymentGroupsInfo field's value. +func (s *BatchGetDeploymentGroupsOutput) SetDeploymentGroupsInfo(v []*DeploymentGroupInfo) *BatchGetDeploymentGroupsOutput { + s.DeploymentGroupsInfo = v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *BatchGetDeploymentGroupsOutput) SetErrorMessage(v string) *BatchGetDeploymentGroupsOutput { + s.ErrorMessage = &v + return s +} + // Represents the input of a batch get deployment instances operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentInstancesInput type BatchGetDeploymentInstancesInput struct { _ struct{} `type:"structure"` @@ -3398,7 +3830,20 @@ func (s *BatchGetDeploymentInstancesInput) Validate() error { return nil } +// SetDeploymentId sets the DeploymentId field's value. +func (s *BatchGetDeploymentInstancesInput) SetDeploymentId(v string) *BatchGetDeploymentInstancesInput { + s.DeploymentId = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *BatchGetDeploymentInstancesInput) SetInstanceIds(v []*string) *BatchGetDeploymentInstancesInput { + s.InstanceIds = v + return s +} + // Represents the output of a batch get deployment instance operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentInstancesOutput type BatchGetDeploymentInstancesOutput struct { _ struct{} `type:"structure"` @@ -3419,7 +3864,20 @@ func (s BatchGetDeploymentInstancesOutput) GoString() string { return s.String() } -// Represents the input of a batch get deployments operation. +// SetErrorMessage sets the ErrorMessage field's value. +func (s *BatchGetDeploymentInstancesOutput) SetErrorMessage(v string) *BatchGetDeploymentInstancesOutput { + s.ErrorMessage = &v + return s +} + +// SetInstancesSummary sets the InstancesSummary field's value. +func (s *BatchGetDeploymentInstancesOutput) SetInstancesSummary(v []*InstanceSummary) *BatchGetDeploymentInstancesOutput { + s.InstancesSummary = v + return s +} + +// Represents the input of a batch get deployments operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentsInput type BatchGetDeploymentsInput struct { _ struct{} `type:"structure"` @@ -3437,7 +3895,14 @@ func (s BatchGetDeploymentsInput) GoString() string { return s.String() } +// SetDeploymentIds sets the DeploymentIds field's value. +func (s *BatchGetDeploymentsInput) SetDeploymentIds(v []*string) *BatchGetDeploymentsInput { + s.DeploymentIds = v + return s +} + // Represents the output of a batch get deployments operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentsOutput type BatchGetDeploymentsOutput struct { _ struct{} `type:"structure"` @@ -3455,7 +3920,14 @@ func (s BatchGetDeploymentsOutput) GoString() string { return s.String() } +// SetDeploymentsInfo sets the DeploymentsInfo field's value. +func (s *BatchGetDeploymentsOutput) SetDeploymentsInfo(v []*DeploymentInfo) *BatchGetDeploymentsOutput { + s.DeploymentsInfo = v + return s +} + // Represents the input of a batch get on-premises instances operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetOnPremisesInstancesInput type BatchGetOnPremisesInstancesInput struct { _ struct{} `type:"structure"` @@ -3473,7 +3945,14 @@ func (s BatchGetOnPremisesInstancesInput) GoString() string { return s.String() } +// SetInstanceNames sets the InstanceNames field's value. +func (s *BatchGetOnPremisesInstancesInput) SetInstanceNames(v []*string) *BatchGetOnPremisesInstancesInput { + s.InstanceNames = v + return s +} + // Represents the output of a batch get on-premises instances operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetOnPremisesInstancesOutput type BatchGetOnPremisesInstancesOutput struct { _ struct{} `type:"structure"` @@ -3491,7 +3970,142 @@ func (s BatchGetOnPremisesInstancesOutput) GoString() string { return s.String() } +// SetInstanceInfos sets the InstanceInfos field's value. +func (s *BatchGetOnPremisesInstancesOutput) SetInstanceInfos(v []*InstanceInfo) *BatchGetOnPremisesInstancesOutput { + s.InstanceInfos = v + return s +} + +// Information about blue/green deployment options for a deployment group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BlueGreenDeploymentConfiguration +type BlueGreenDeploymentConfiguration struct { + _ struct{} `type:"structure"` + + // Information about the action to take when newly provisioned instances are + // ready to receive traffic in a blue/green deployment. + DeploymentReadyOption *DeploymentReadyOption `locationName:"deploymentReadyOption" type:"structure"` + + // Information about how instances are provisioned for a replacement environment + // in a blue/green deployment. + GreenFleetProvisioningOption *GreenFleetProvisioningOption `locationName:"greenFleetProvisioningOption" type:"structure"` + + // Information about whether to terminate instances in the original fleet during + // a blue/green deployment. + TerminateBlueInstancesOnDeploymentSuccess *BlueInstanceTerminationOption `locationName:"terminateBlueInstancesOnDeploymentSuccess" type:"structure"` +} + +// String returns the string representation +func (s BlueGreenDeploymentConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BlueGreenDeploymentConfiguration) GoString() string { + return s.String() +} + +// SetDeploymentReadyOption sets the DeploymentReadyOption field's value. +func (s *BlueGreenDeploymentConfiguration) SetDeploymentReadyOption(v *DeploymentReadyOption) *BlueGreenDeploymentConfiguration { + s.DeploymentReadyOption = v + return s +} + +// SetGreenFleetProvisioningOption sets the GreenFleetProvisioningOption field's value. +func (s *BlueGreenDeploymentConfiguration) SetGreenFleetProvisioningOption(v *GreenFleetProvisioningOption) *BlueGreenDeploymentConfiguration { + s.GreenFleetProvisioningOption = v + return s +} + +// SetTerminateBlueInstancesOnDeploymentSuccess sets the TerminateBlueInstancesOnDeploymentSuccess field's value. +func (s *BlueGreenDeploymentConfiguration) SetTerminateBlueInstancesOnDeploymentSuccess(v *BlueInstanceTerminationOption) *BlueGreenDeploymentConfiguration { + s.TerminateBlueInstancesOnDeploymentSuccess = v + return s +} + +// Information about whether instances in the original environment are terminated +// when a blue/green deployment is successful. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BlueInstanceTerminationOption +type BlueInstanceTerminationOption struct { + _ struct{} `type:"structure"` + + // The action to take on instances in the original environment after a successful + // blue/green deployment. + // + // * TERMINATE: Instances are terminated after a specified wait time. + // + // * KEEP_ALIVE: Instances are left running after they are deregistered from + // the load balancer and removed from the deployment group. + Action *string `locationName:"action" type:"string" enum:"InstanceAction"` + + // The number of minutes to wait after a successful blue/green deployment before + // terminating instances from the original environment. + TerminationWaitTimeInMinutes *int64 `locationName:"terminationWaitTimeInMinutes" type:"integer"` +} + +// String returns the string representation +func (s BlueInstanceTerminationOption) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BlueInstanceTerminationOption) GoString() string { + return s.String() +} + +// SetAction sets the Action field's value. +func (s *BlueInstanceTerminationOption) SetAction(v string) *BlueInstanceTerminationOption { + s.Action = &v + return s +} + +// SetTerminationWaitTimeInMinutes sets the TerminationWaitTimeInMinutes field's value. +func (s *BlueInstanceTerminationOption) SetTerminationWaitTimeInMinutes(v int64) *BlueInstanceTerminationOption { + s.TerminationWaitTimeInMinutes = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ContinueDeploymentInput +type ContinueDeploymentInput struct { + _ struct{} `type:"structure"` + + // The deployment ID of the blue/green deployment for which you want to start + // rerouting traffic to the replacement environment. + DeploymentId *string `locationName:"deploymentId" type:"string"` +} + +// String returns the string representation +func (s ContinueDeploymentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ContinueDeploymentInput) GoString() string { + return s.String() +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *ContinueDeploymentInput) SetDeploymentId(v string) *ContinueDeploymentInput { + s.DeploymentId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ContinueDeploymentOutput +type ContinueDeploymentOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s ContinueDeploymentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ContinueDeploymentOutput) GoString() string { + return s.String() +} + // Represents the input of a create application operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateApplicationInput type CreateApplicationInput struct { _ struct{} `type:"structure"` @@ -3528,7 +4142,14 @@ func (s *CreateApplicationInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *CreateApplicationInput) SetApplicationName(v string) *CreateApplicationInput { + s.ApplicationName = &v + return s +} + // Represents the output of a create application operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateApplicationOutput type CreateApplicationOutput struct { _ struct{} `type:"structure"` @@ -3546,7 +4167,14 @@ func (s CreateApplicationOutput) GoString() string { return s.String() } +// SetApplicationId sets the ApplicationId field's value. +func (s *CreateApplicationOutput) SetApplicationId(v string) *CreateApplicationOutput { + s.ApplicationId = &v + return s +} + // Represents the input of a create deployment configuration operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentConfigInput type CreateDeploymentConfigInput struct { _ struct{} `type:"structure"` @@ -3561,16 +4189,16 @@ type CreateDeploymentConfigInput struct { // // The type parameter takes either of the following values: // - // HOST_COUNT: The value parameter represents the minimum number of healthy - // instances as an absolute value. + // * HOST_COUNT: The value parameter represents the minimum number of healthy + // instances as an absolute value. // - // FLEET_PERCENT: The value parameter represents the minimum number of healthy - // instances as a percentage of the total number of instances in the deployment. - // If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy - // converts the percentage to the equivalent number of instance and rounds up - // fractional instances. + // * FLEET_PERCENT: The value parameter represents the minimum number of + // healthy instances as a percentage of the total number of instances in + // the deployment. If you specify FLEET_PERCENT, at the start of the deployment, + // AWS CodeDeploy converts the percentage to the equivalent number of instance + // and rounds up fractional instances. // - // The value parameter takes an integer. + // The value parameter takes an integer. // // For example, to set a minimum of 95% healthy instance, specify a type of // FLEET_PERCENT and a value of 95. @@ -3603,7 +4231,20 @@ func (s *CreateDeploymentConfigInput) Validate() error { return nil } +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *CreateDeploymentConfigInput) SetDeploymentConfigName(v string) *CreateDeploymentConfigInput { + s.DeploymentConfigName = &v + return s +} + +// SetMinimumHealthyHosts sets the MinimumHealthyHosts field's value. +func (s *CreateDeploymentConfigInput) SetMinimumHealthyHosts(v *MinimumHealthyHosts) *CreateDeploymentConfigInput { + s.MinimumHealthyHosts = v + return s +} + // Represents the output of a create deployment configuration operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentConfigOutput type CreateDeploymentConfigOutput struct { _ struct{} `type:"structure"` @@ -3621,7 +4262,14 @@ func (s CreateDeploymentConfigOutput) GoString() string { return s.String() } +// SetDeploymentConfigId sets the DeploymentConfigId field's value. +func (s *CreateDeploymentConfigOutput) SetDeploymentConfigId(v string) *CreateDeploymentConfigOutput { + s.DeploymentConfigId = &v + return s +} + // Represents the input of a create deployment group operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentGroupInput type CreateDeploymentGroupInput struct { _ struct{} `type:"structure"` @@ -3642,58 +4290,21 @@ type CreateDeploymentGroupInput struct { // A list of associated Auto Scaling groups. AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"` + // Information about blue/green deployment options for a deployment group. + BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration `locationName:"blueGreenDeploymentConfiguration" type:"structure"` + // If specified, the deployment configuration name can be either one of the // predefined configurations provided with AWS CodeDeploy or a custom deployment // configuration that you create by calling the create deployment configuration // operation. // - // CodeDeployDefault.OneAtATime is the default deployment configuration. It + // CodeDeployDefault.OneAtATime is the default deployment configuration. It // is used if a configuration isn't specified for the deployment or the deployment // group. // - // The predefined deployment configurations include the following: - // - // CodeDeployDefault.AllAtOnce attempts to deploy an application revision - // to as many instances as possible at once. The status of the overall deployment - // will be displayed as Succeeded if the application revision is deployed to - // one or more of the instances. The status of the overall deployment will be - // displayed as Failed if the application revision is not deployed to any of - // the instances. Using an example of nine instances, CodeDeployDefault.AllAtOnce - // will attempt to deploy to all nine instances at once. The overall deployment - // will succeed if deployment to even a single instance is successful; it will - // fail only if deployments to all nine instances fail. - // - // CodeDeployDefault.HalfAtATime deploys to up to half of the instances - // at a time (with fractions rounded down). The overall deployment succeeds - // if the application revision is deployed to at least half of the instances - // (with fractions rounded up); otherwise, the deployment fails. In the example - // of nine instances, it will deploy to up to four instances at a time. The - // overall deployment succeeds if deployment to five or more instances succeed; - // otherwise, the deployment fails. The deployment may be successfully deployed - // to some instances even if the overall deployment fails. - // - // CodeDeployDefault.OneAtATime deploys the application revision to only - // one instance at a time. - // - // For deployment groups that contain more than one instance: - // - // The overall deployment succeeds if the application revision is deployed - // to all of the instances. The exception to this rule is if deployment to the - // last instance fails, the overall deployment still succeeds. This is because - // AWS CodeDeploy allows only one instance at a time to be taken offline with - // the CodeDeployDefault.OneAtATime configuration. - // - // The overall deployment fails as soon as the application revision fails - // to be deployed to any but the last instance. The deployment may be successfully - // deployed to some instances even if the overall deployment fails. - // - // In an example using nine instances, it will deploy to one instance at - // a time. The overall deployment succeeds if deployment to the first eight - // instances is successful; the overall deployment fails if deployment to any - // of the first eight instances fails. - // - // For deployment groups that contain only one instance, the overall deployment - // is successful only if deployment to the single instance is successful + // For more information about the predefined deployment configurations in AWS + // CodeDeploy, see see Working with Deployment Groups in AWS CodeDeploy (http://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html) + // in the AWS CodeDeploy User Guide. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` // The name of a new deployment group for the specified application. @@ -3701,9 +4312,16 @@ type CreateDeploymentGroupInput struct { // DeploymentGroupName is a required field DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"` + // Information about the type of deployment, standard or blue/green, that you + // want to run and whether to route deployment traffic behind a load balancer. + DeploymentStyle *DeploymentStyle `locationName:"deploymentStyle" type:"structure"` + // The Amazon EC2 tags on which to filter. Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"` + // Information about the load balancer used in a blue/green deployment. + LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"` + // The on-premises instance tags on which to filter. OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"` @@ -3757,7 +4375,86 @@ func (s *CreateDeploymentGroupInput) Validate() error { return nil } +// SetAlarmConfiguration sets the AlarmConfiguration field's value. +func (s *CreateDeploymentGroupInput) SetAlarmConfiguration(v *AlarmConfiguration) *CreateDeploymentGroupInput { + s.AlarmConfiguration = v + return s +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *CreateDeploymentGroupInput) SetApplicationName(v string) *CreateDeploymentGroupInput { + s.ApplicationName = &v + return s +} + +// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. +func (s *CreateDeploymentGroupInput) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *CreateDeploymentGroupInput { + s.AutoRollbackConfiguration = v + return s +} + +// SetAutoScalingGroups sets the AutoScalingGroups field's value. +func (s *CreateDeploymentGroupInput) SetAutoScalingGroups(v []*string) *CreateDeploymentGroupInput { + s.AutoScalingGroups = v + return s +} + +// SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value. +func (s *CreateDeploymentGroupInput) SetBlueGreenDeploymentConfiguration(v *BlueGreenDeploymentConfiguration) *CreateDeploymentGroupInput { + s.BlueGreenDeploymentConfiguration = v + return s +} + +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *CreateDeploymentGroupInput) SetDeploymentConfigName(v string) *CreateDeploymentGroupInput { + s.DeploymentConfigName = &v + return s +} + +// SetDeploymentGroupName sets the DeploymentGroupName field's value. +func (s *CreateDeploymentGroupInput) SetDeploymentGroupName(v string) *CreateDeploymentGroupInput { + s.DeploymentGroupName = &v + return s +} + +// SetDeploymentStyle sets the DeploymentStyle field's value. +func (s *CreateDeploymentGroupInput) SetDeploymentStyle(v *DeploymentStyle) *CreateDeploymentGroupInput { + s.DeploymentStyle = v + return s +} + +// SetEc2TagFilters sets the Ec2TagFilters field's value. +func (s *CreateDeploymentGroupInput) SetEc2TagFilters(v []*EC2TagFilter) *CreateDeploymentGroupInput { + s.Ec2TagFilters = v + return s +} + +// SetLoadBalancerInfo sets the LoadBalancerInfo field's value. +func (s *CreateDeploymentGroupInput) SetLoadBalancerInfo(v *LoadBalancerInfo) *CreateDeploymentGroupInput { + s.LoadBalancerInfo = v + return s +} + +// SetOnPremisesInstanceTagFilters sets the OnPremisesInstanceTagFilters field's value. +func (s *CreateDeploymentGroupInput) SetOnPremisesInstanceTagFilters(v []*TagFilter) *CreateDeploymentGroupInput { + s.OnPremisesInstanceTagFilters = v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *CreateDeploymentGroupInput) SetServiceRoleArn(v string) *CreateDeploymentGroupInput { + s.ServiceRoleArn = &v + return s +} + +// SetTriggerConfigurations sets the TriggerConfigurations field's value. +func (s *CreateDeploymentGroupInput) SetTriggerConfigurations(v []*TriggerConfig) *CreateDeploymentGroupInput { + s.TriggerConfigurations = v + return s +} + // Represents the output of a create deployment group operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentGroupOutput type CreateDeploymentGroupOutput struct { _ struct{} `type:"structure"` @@ -3775,7 +4472,14 @@ func (s CreateDeploymentGroupOutput) GoString() string { return s.String() } +// SetDeploymentGroupId sets the DeploymentGroupId field's value. +func (s *CreateDeploymentGroupOutput) SetDeploymentGroupId(v string) *CreateDeploymentGroupOutput { + s.DeploymentGroupId = &v + return s +} + // Represents the input of a create deployment operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentInput type CreateDeploymentInput struct { _ struct{} `type:"structure"` @@ -3817,6 +4521,10 @@ type CreateDeploymentInput struct { // The type and location of the revision to deploy. Revision *RevisionLocation `locationName:"revision" type:"structure"` + // Information about the instances that will belong to the replacement environment + // in a blue/green deployment. + TargetInstances *TargetInstances `locationName:"targetInstances" type:"structure"` + // Indicates whether to deploy to all instances or only to instances that are // not running the latest application revision. UpdateOutdatedInstancesOnly *bool `locationName:"updateOutdatedInstancesOnly" type:"boolean"` @@ -3854,7 +4562,62 @@ func (s *CreateDeploymentInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *CreateDeploymentInput) SetApplicationName(v string) *CreateDeploymentInput { + s.ApplicationName = &v + return s +} + +// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. +func (s *CreateDeploymentInput) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *CreateDeploymentInput { + s.AutoRollbackConfiguration = v + return s +} + +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *CreateDeploymentInput) SetDeploymentConfigName(v string) *CreateDeploymentInput { + s.DeploymentConfigName = &v + return s +} + +// SetDeploymentGroupName sets the DeploymentGroupName field's value. +func (s *CreateDeploymentInput) SetDeploymentGroupName(v string) *CreateDeploymentInput { + s.DeploymentGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateDeploymentInput) SetDescription(v string) *CreateDeploymentInput { + s.Description = &v + return s +} + +// SetIgnoreApplicationStopFailures sets the IgnoreApplicationStopFailures field's value. +func (s *CreateDeploymentInput) SetIgnoreApplicationStopFailures(v bool) *CreateDeploymentInput { + s.IgnoreApplicationStopFailures = &v + return s +} + +// SetRevision sets the Revision field's value. +func (s *CreateDeploymentInput) SetRevision(v *RevisionLocation) *CreateDeploymentInput { + s.Revision = v + return s +} + +// SetTargetInstances sets the TargetInstances field's value. +func (s *CreateDeploymentInput) SetTargetInstances(v *TargetInstances) *CreateDeploymentInput { + s.TargetInstances = v + return s +} + +// SetUpdateOutdatedInstancesOnly sets the UpdateOutdatedInstancesOnly field's value. +func (s *CreateDeploymentInput) SetUpdateOutdatedInstancesOnly(v bool) *CreateDeploymentInput { + s.UpdateOutdatedInstancesOnly = &v + return s +} + // Represents the output of a create deployment operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentOutput type CreateDeploymentOutput struct { _ struct{} `type:"structure"` @@ -3872,7 +4635,14 @@ func (s CreateDeploymentOutput) GoString() string { return s.String() } +// SetDeploymentId sets the DeploymentId field's value. +func (s *CreateDeploymentOutput) SetDeploymentId(v string) *CreateDeploymentOutput { + s.DeploymentId = &v + return s +} + // Represents the input of a delete application operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteApplicationInput type DeleteApplicationInput struct { _ struct{} `type:"structure"` @@ -3909,6 +4679,13 @@ func (s *DeleteApplicationInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DeleteApplicationInput) SetApplicationName(v string) *DeleteApplicationInput { + s.ApplicationName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteApplicationOutput type DeleteApplicationOutput struct { _ struct{} `type:"structure"` } @@ -3924,6 +4701,7 @@ func (s DeleteApplicationOutput) GoString() string { } // Represents the input of a delete deployment configuration operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentConfigInput type DeleteDeploymentConfigInput struct { _ struct{} `type:"structure"` @@ -3960,6 +4738,13 @@ func (s *DeleteDeploymentConfigInput) Validate() error { return nil } +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *DeleteDeploymentConfigInput) SetDeploymentConfigName(v string) *DeleteDeploymentConfigInput { + s.DeploymentConfigName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentConfigOutput type DeleteDeploymentConfigOutput struct { _ struct{} `type:"structure"` } @@ -3975,6 +4760,7 @@ func (s DeleteDeploymentConfigOutput) GoString() string { } // Represents the input of a delete deployment group operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentGroupInput type DeleteDeploymentGroupInput struct { _ struct{} `type:"structure"` @@ -4022,7 +4808,20 @@ func (s *DeleteDeploymentGroupInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DeleteDeploymentGroupInput) SetApplicationName(v string) *DeleteDeploymentGroupInput { + s.ApplicationName = &v + return s +} + +// SetDeploymentGroupName sets the DeploymentGroupName field's value. +func (s *DeleteDeploymentGroupInput) SetDeploymentGroupName(v string) *DeleteDeploymentGroupInput { + s.DeploymentGroupName = &v + return s +} + // Represents the output of a delete deployment group operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentGroupOutput type DeleteDeploymentGroupOutput struct { _ struct{} `type:"structure"` @@ -4045,7 +4844,14 @@ func (s DeleteDeploymentGroupOutput) GoString() string { return s.String() } +// SetHooksNotCleanedUp sets the HooksNotCleanedUp field's value. +func (s *DeleteDeploymentGroupOutput) SetHooksNotCleanedUp(v []*AutoScalingGroup) *DeleteDeploymentGroupOutput { + s.HooksNotCleanedUp = v + return s +} + // Information about a deployment configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeploymentConfigInfo type DeploymentConfigInfo struct { _ struct{} `type:"structure"` @@ -4072,7 +4878,32 @@ func (s DeploymentConfigInfo) GoString() string { return s.String() } +// SetCreateTime sets the CreateTime field's value. +func (s *DeploymentConfigInfo) SetCreateTime(v time.Time) *DeploymentConfigInfo { + s.CreateTime = &v + return s +} + +// SetDeploymentConfigId sets the DeploymentConfigId field's value. +func (s *DeploymentConfigInfo) SetDeploymentConfigId(v string) *DeploymentConfigInfo { + s.DeploymentConfigId = &v + return s +} + +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *DeploymentConfigInfo) SetDeploymentConfigName(v string) *DeploymentConfigInfo { + s.DeploymentConfigName = &v + return s +} + +// SetMinimumHealthyHosts sets the MinimumHealthyHosts field's value. +func (s *DeploymentConfigInfo) SetMinimumHealthyHosts(v *MinimumHealthyHosts) *DeploymentConfigInfo { + s.MinimumHealthyHosts = v + return s +} + // Information about a deployment group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeploymentGroupInfo type DeploymentGroupInfo struct { _ struct{} `type:"structure"` @@ -4089,6 +4920,9 @@ type DeploymentGroupInfo struct { // A list of associated Auto Scaling groups. AutoScalingGroups []*AutoScalingGroup `locationName:"autoScalingGroups" type:"list"` + // Information about blue/green deployment options for a deployment group. + BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration `locationName:"blueGreenDeploymentConfiguration" type:"structure"` + // The deployment configuration name. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` @@ -4098,9 +4932,16 @@ type DeploymentGroupInfo struct { // The deployment group name. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"` + // Information about the type of deployment, either standard or blue/green, + // you want to run and whether to route deployment traffic behind a load balancer. + DeploymentStyle *DeploymentStyle `locationName:"deploymentStyle" type:"structure"` + // The Amazon EC2 tags on which to filter. Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"` + // Information about the load balancer to use in a blue/green deployment. + LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"` + // The on-premises instance tags on which to filter. OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"` @@ -4125,10 +4966,105 @@ func (s DeploymentGroupInfo) GoString() string { return s.String() } +// SetAlarmConfiguration sets the AlarmConfiguration field's value. +func (s *DeploymentGroupInfo) SetAlarmConfiguration(v *AlarmConfiguration) *DeploymentGroupInfo { + s.AlarmConfiguration = v + return s +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *DeploymentGroupInfo) SetApplicationName(v string) *DeploymentGroupInfo { + s.ApplicationName = &v + return s +} + +// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. +func (s *DeploymentGroupInfo) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *DeploymentGroupInfo { + s.AutoRollbackConfiguration = v + return s +} + +// SetAutoScalingGroups sets the AutoScalingGroups field's value. +func (s *DeploymentGroupInfo) SetAutoScalingGroups(v []*AutoScalingGroup) *DeploymentGroupInfo { + s.AutoScalingGroups = v + return s +} + +// SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value. +func (s *DeploymentGroupInfo) SetBlueGreenDeploymentConfiguration(v *BlueGreenDeploymentConfiguration) *DeploymentGroupInfo { + s.BlueGreenDeploymentConfiguration = v + return s +} + +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *DeploymentGroupInfo) SetDeploymentConfigName(v string) *DeploymentGroupInfo { + s.DeploymentConfigName = &v + return s +} + +// SetDeploymentGroupId sets the DeploymentGroupId field's value. +func (s *DeploymentGroupInfo) SetDeploymentGroupId(v string) *DeploymentGroupInfo { + s.DeploymentGroupId = &v + return s +} + +// SetDeploymentGroupName sets the DeploymentGroupName field's value. +func (s *DeploymentGroupInfo) SetDeploymentGroupName(v string) *DeploymentGroupInfo { + s.DeploymentGroupName = &v + return s +} + +// SetDeploymentStyle sets the DeploymentStyle field's value. +func (s *DeploymentGroupInfo) SetDeploymentStyle(v *DeploymentStyle) *DeploymentGroupInfo { + s.DeploymentStyle = v + return s +} + +// SetEc2TagFilters sets the Ec2TagFilters field's value. +func (s *DeploymentGroupInfo) SetEc2TagFilters(v []*EC2TagFilter) *DeploymentGroupInfo { + s.Ec2TagFilters = v + return s +} + +// SetLoadBalancerInfo sets the LoadBalancerInfo field's value. +func (s *DeploymentGroupInfo) SetLoadBalancerInfo(v *LoadBalancerInfo) *DeploymentGroupInfo { + s.LoadBalancerInfo = v + return s +} + +// SetOnPremisesInstanceTagFilters sets the OnPremisesInstanceTagFilters field's value. +func (s *DeploymentGroupInfo) SetOnPremisesInstanceTagFilters(v []*TagFilter) *DeploymentGroupInfo { + s.OnPremisesInstanceTagFilters = v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *DeploymentGroupInfo) SetServiceRoleArn(v string) *DeploymentGroupInfo { + s.ServiceRoleArn = &v + return s +} + +// SetTargetRevision sets the TargetRevision field's value. +func (s *DeploymentGroupInfo) SetTargetRevision(v *RevisionLocation) *DeploymentGroupInfo { + s.TargetRevision = v + return s +} + +// SetTriggerConfigurations sets the TriggerConfigurations field's value. +func (s *DeploymentGroupInfo) SetTriggerConfigurations(v []*TriggerConfig) *DeploymentGroupInfo { + s.TriggerConfigurations = v + return s +} + // Information about a deployment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeploymentInfo type DeploymentInfo struct { _ struct{} `type:"structure"` + // Provides information about the results of a deployment, such as whether instances + // in the original environment in a blue/green deployment were not terminated. + AdditionalDeploymentStatusInfo *string `locationName:"additionalDeploymentStatusInfo" type:"string"` + // The application name. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` @@ -4136,6 +5072,9 @@ type DeploymentInfo struct { // deployment. AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"` + // Information about blue/green deployment options for this deployment. + BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration `locationName:"blueGreenDeploymentConfiguration" type:"structure"` + // A timestamp indicating when the deployment was complete. CompleteTime *time.Time `locationName:"completeTime" type:"timestamp" timestampFormat:"unix"` @@ -4144,11 +5083,11 @@ type DeploymentInfo struct { // The means by which the deployment was created: // - // user: A user created the deployment. + // * user: A user created the deployment. // - // autoscaling: Auto Scaling created the deployment. + // * autoscaling: Auto Scaling created the deployment. // - // codeDeployRollback: A rollback process created the deployment. + // * codeDeployRollback: A rollback process created the deployment. Creator *string `locationName:"creator" type:"string" enum:"DeploymentCreator"` // The deployment configuration name. @@ -4163,6 +5102,10 @@ type DeploymentInfo struct { // A summary of the deployment status of the instances in the deployment. DeploymentOverview *DeploymentOverview `locationName:"deploymentOverview" type:"structure"` + // Information about the type of deployment, either standard or blue/green, + // you want to run and whether to route deployment traffic behind a load balancer. + DeploymentStyle *DeploymentStyle `locationName:"deploymentStyle" type:"structure"` + // A comment about the deployment. Description *string `locationName:"description" type:"string"` @@ -4180,6 +5123,15 @@ type DeploymentInfo struct { // to have failed. IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"` + // Indicates whether the wait period set for the termination of instances in + // the original environment has started. Status is 'false' if the KEEP_ALIVE + // option is specified; otherwise, 'true' as soon as the termination wait period + // starts. + InstanceTerminationWaitTimeStarted *bool `locationName:"instanceTerminationWaitTimeStarted" type:"boolean"` + + // Information about the load balancer used in this blue/green deployment. + LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"` + // Information about the location of stored application artifacts and the service // from which to retrieve them. Revision *RevisionLocation `locationName:"revision" type:"structure"` @@ -4198,6 +5150,10 @@ type DeploymentInfo struct { // The current state of the deployment as a whole. Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"` + // Information about the instances that belong to the replacement environment + // in a blue/green deployment. + TargetInstances *TargetInstances `locationName:"targetInstances" type:"structure"` + // Indicates whether only instances that are not running the latest application // revision are to be deployed to. UpdateOutdatedInstancesOnly *bool `locationName:"updateOutdatedInstancesOnly" type:"boolean"` @@ -4213,7 +5169,146 @@ func (s DeploymentInfo) GoString() string { return s.String() } +// SetAdditionalDeploymentStatusInfo sets the AdditionalDeploymentStatusInfo field's value. +func (s *DeploymentInfo) SetAdditionalDeploymentStatusInfo(v string) *DeploymentInfo { + s.AdditionalDeploymentStatusInfo = &v + return s +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *DeploymentInfo) SetApplicationName(v string) *DeploymentInfo { + s.ApplicationName = &v + return s +} + +// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. +func (s *DeploymentInfo) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *DeploymentInfo { + s.AutoRollbackConfiguration = v + return s +} + +// SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value. +func (s *DeploymentInfo) SetBlueGreenDeploymentConfiguration(v *BlueGreenDeploymentConfiguration) *DeploymentInfo { + s.BlueGreenDeploymentConfiguration = v + return s +} + +// SetCompleteTime sets the CompleteTime field's value. +func (s *DeploymentInfo) SetCompleteTime(v time.Time) *DeploymentInfo { + s.CompleteTime = &v + return s +} + +// SetCreateTime sets the CreateTime field's value. +func (s *DeploymentInfo) SetCreateTime(v time.Time) *DeploymentInfo { + s.CreateTime = &v + return s +} + +// SetCreator sets the Creator field's value. +func (s *DeploymentInfo) SetCreator(v string) *DeploymentInfo { + s.Creator = &v + return s +} + +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *DeploymentInfo) SetDeploymentConfigName(v string) *DeploymentInfo { + s.DeploymentConfigName = &v + return s +} + +// SetDeploymentGroupName sets the DeploymentGroupName field's value. +func (s *DeploymentInfo) SetDeploymentGroupName(v string) *DeploymentInfo { + s.DeploymentGroupName = &v + return s +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *DeploymentInfo) SetDeploymentId(v string) *DeploymentInfo { + s.DeploymentId = &v + return s +} + +// SetDeploymentOverview sets the DeploymentOverview field's value. +func (s *DeploymentInfo) SetDeploymentOverview(v *DeploymentOverview) *DeploymentInfo { + s.DeploymentOverview = v + return s +} + +// SetDeploymentStyle sets the DeploymentStyle field's value. +func (s *DeploymentInfo) SetDeploymentStyle(v *DeploymentStyle) *DeploymentInfo { + s.DeploymentStyle = v + return s +} + +// SetDescription sets the Description field's value. +func (s *DeploymentInfo) SetDescription(v string) *DeploymentInfo { + s.Description = &v + return s +} + +// SetErrorInformation sets the ErrorInformation field's value. +func (s *DeploymentInfo) SetErrorInformation(v *ErrorInformation) *DeploymentInfo { + s.ErrorInformation = v + return s +} + +// SetIgnoreApplicationStopFailures sets the IgnoreApplicationStopFailures field's value. +func (s *DeploymentInfo) SetIgnoreApplicationStopFailures(v bool) *DeploymentInfo { + s.IgnoreApplicationStopFailures = &v + return s +} + +// SetInstanceTerminationWaitTimeStarted sets the InstanceTerminationWaitTimeStarted field's value. +func (s *DeploymentInfo) SetInstanceTerminationWaitTimeStarted(v bool) *DeploymentInfo { + s.InstanceTerminationWaitTimeStarted = &v + return s +} + +// SetLoadBalancerInfo sets the LoadBalancerInfo field's value. +func (s *DeploymentInfo) SetLoadBalancerInfo(v *LoadBalancerInfo) *DeploymentInfo { + s.LoadBalancerInfo = v + return s +} + +// SetRevision sets the Revision field's value. +func (s *DeploymentInfo) SetRevision(v *RevisionLocation) *DeploymentInfo { + s.Revision = v + return s +} + +// SetRollbackInfo sets the RollbackInfo field's value. +func (s *DeploymentInfo) SetRollbackInfo(v *RollbackInfo) *DeploymentInfo { + s.RollbackInfo = v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DeploymentInfo) SetStartTime(v time.Time) *DeploymentInfo { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DeploymentInfo) SetStatus(v string) *DeploymentInfo { + s.Status = &v + return s +} + +// SetTargetInstances sets the TargetInstances field's value. +func (s *DeploymentInfo) SetTargetInstances(v *TargetInstances) *DeploymentInfo { + s.TargetInstances = v + return s +} + +// SetUpdateOutdatedInstancesOnly sets the UpdateOutdatedInstancesOnly field's value. +func (s *DeploymentInfo) SetUpdateOutdatedInstancesOnly(v bool) *DeploymentInfo { + s.UpdateOutdatedInstancesOnly = &v + return s +} + // Information about the deployment status of the instances in the deployment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeploymentOverview type DeploymentOverview struct { _ struct{} `type:"structure"` @@ -4226,6 +5321,10 @@ type DeploymentOverview struct { // The number of instances in the deployment in a pending state. Pending *int64 `type:"long"` + // The number of instances in a replacement environment ready to receive traffic + // in a blue/green deployment. + Ready *int64 `type:"long"` + // The number of instances in the deployment in a skipped state. Skipped *int64 `type:"long"` @@ -4244,7 +5343,126 @@ func (s DeploymentOverview) GoString() string { return s.String() } +// SetFailed sets the Failed field's value. +func (s *DeploymentOverview) SetFailed(v int64) *DeploymentOverview { + s.Failed = &v + return s +} + +// SetInProgress sets the InProgress field's value. +func (s *DeploymentOverview) SetInProgress(v int64) *DeploymentOverview { + s.InProgress = &v + return s +} + +// SetPending sets the Pending field's value. +func (s *DeploymentOverview) SetPending(v int64) *DeploymentOverview { + s.Pending = &v + return s +} + +// SetReady sets the Ready field's value. +func (s *DeploymentOverview) SetReady(v int64) *DeploymentOverview { + s.Ready = &v + return s +} + +// SetSkipped sets the Skipped field's value. +func (s *DeploymentOverview) SetSkipped(v int64) *DeploymentOverview { + s.Skipped = &v + return s +} + +// SetSucceeded sets the Succeeded field's value. +func (s *DeploymentOverview) SetSucceeded(v int64) *DeploymentOverview { + s.Succeeded = &v + return s +} + +// Information about how traffic is rerouted to instances in a replacement environment +// in a blue/green deployment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeploymentReadyOption +type DeploymentReadyOption struct { + _ struct{} `type:"structure"` + + // Information about when to reroute traffic from an original environment to + // a replacement environment in a blue/green deployment. + // + // * CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately + // after the new application revision is installed on the instances in the + // replacement environment. + // + // * STOP_DEPLOYMENT: Do not register new instances with load balancer unless + // traffic is rerouted manually. If traffic is not rerouted manually before + // the end of the specified wait period, the deployment status is changed + // to Stopped. + ActionOnTimeout *string `locationName:"actionOnTimeout" type:"string" enum:"DeploymentReadyAction"` + + // The number of minutes to wait before the status of a blue/green deployment + // changed to Stopped if rerouting is not started manually. Applies only to + // the STOP_DEPLOYMENT option for actionOnTimeout + WaitTimeInMinutes *int64 `locationName:"waitTimeInMinutes" type:"integer"` +} + +// String returns the string representation +func (s DeploymentReadyOption) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentReadyOption) GoString() string { + return s.String() +} + +// SetActionOnTimeout sets the ActionOnTimeout field's value. +func (s *DeploymentReadyOption) SetActionOnTimeout(v string) *DeploymentReadyOption { + s.ActionOnTimeout = &v + return s +} + +// SetWaitTimeInMinutes sets the WaitTimeInMinutes field's value. +func (s *DeploymentReadyOption) SetWaitTimeInMinutes(v int64) *DeploymentReadyOption { + s.WaitTimeInMinutes = &v + return s +} + +// Information about the type of deployment, either standard or blue/green, +// you want to run and whether to route deployment traffic behind a load balancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeploymentStyle +type DeploymentStyle struct { + _ struct{} `type:"structure"` + + // Indicates whether to route deployment traffic behind a load balancer. + DeploymentOption *string `locationName:"deploymentOption" type:"string" enum:"DeploymentOption"` + + // Indicates whether to run a standard deployment or a blue/green deployment. + DeploymentType *string `locationName:"deploymentType" type:"string" enum:"DeploymentType"` +} + +// String returns the string representation +func (s DeploymentStyle) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentStyle) GoString() string { + return s.String() +} + +// SetDeploymentOption sets the DeploymentOption field's value. +func (s *DeploymentStyle) SetDeploymentOption(v string) *DeploymentStyle { + s.DeploymentOption = &v + return s +} + +// SetDeploymentType sets the DeploymentType field's value. +func (s *DeploymentStyle) SetDeploymentType(v string) *DeploymentStyle { + s.DeploymentType = &v + return s +} + // Represents the input of a deregister on-premises instance operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeregisterOnPremisesInstanceInput type DeregisterOnPremisesInstanceInput struct { _ struct{} `type:"structure"` @@ -4277,6 +5495,13 @@ func (s *DeregisterOnPremisesInstanceInput) Validate() error { return nil } +// SetInstanceName sets the InstanceName field's value. +func (s *DeregisterOnPremisesInstanceInput) SetInstanceName(v string) *DeregisterOnPremisesInstanceInput { + s.InstanceName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeregisterOnPremisesInstanceOutput type DeregisterOnPremisesInstanceOutput struct { _ struct{} `type:"structure"` } @@ -4292,24 +5517,25 @@ func (s DeregisterOnPremisesInstanceOutput) GoString() string { } // Diagnostic information about executable scripts that are part of a deployment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/Diagnostics type Diagnostics struct { _ struct{} `type:"structure"` // The associated error code: // - // Success: The specified script ran. + // * Success: The specified script ran. // - // ScriptMissing: The specified script was not found in the specified location. + // * ScriptMissing: The specified script was not found in the specified location. // - // ScriptNotExecutable: The specified script is not a recognized executable - // file type. + // * ScriptNotExecutable: The specified script is not a recognized executable + // file type. // - // ScriptTimedOut: The specified script did not finish running in the specified - // time period. + // * ScriptTimedOut: The specified script did not finish running in the specified + // time period. // - // ScriptFailed: The specified script failed to run as expected. + // * ScriptFailed: The specified script failed to run as expected. // - // UnknownError: The specified script did not run for an unknown reason. + // * UnknownError: The specified script did not run for an unknown reason. ErrorCode *string `locationName:"errorCode" type:"string" enum:"LifecycleErrorCode"` // The last portion of the diagnostic log. @@ -4335,7 +5561,32 @@ func (s Diagnostics) GoString() string { return s.String() } +// SetErrorCode sets the ErrorCode field's value. +func (s *Diagnostics) SetErrorCode(v string) *Diagnostics { + s.ErrorCode = &v + return s +} + +// SetLogTail sets the LogTail field's value. +func (s *Diagnostics) SetLogTail(v string) *Diagnostics { + s.LogTail = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *Diagnostics) SetMessage(v string) *Diagnostics { + s.Message = &v + return s +} + +// SetScriptName sets the ScriptName field's value. +func (s *Diagnostics) SetScriptName(v string) *Diagnostics { + s.ScriptName = &v + return s +} + // Information about a tag filter. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/EC2TagFilter type EC2TagFilter struct { _ struct{} `type:"structure"` @@ -4344,11 +5595,11 @@ type EC2TagFilter struct { // The tag filter type: // - // KEY_ONLY: Key only. + // * KEY_ONLY: Key only. // - // VALUE_ONLY: Value only. + // * VALUE_ONLY: Value only. // - // KEY_AND_VALUE: Key and value. + // * KEY_AND_VALUE: Key and value. Type *string `type:"string" enum:"EC2TagFilterType"` // The tag filter value. @@ -4365,47 +5616,97 @@ func (s EC2TagFilter) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *EC2TagFilter) SetKey(v string) *EC2TagFilter { + s.Key = &v + return s +} + +// SetType sets the Type field's value. +func (s *EC2TagFilter) SetType(v string) *EC2TagFilter { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *EC2TagFilter) SetValue(v string) *EC2TagFilter { + s.Value = &v + return s +} + +// Information about a load balancer in Elastic Load Balancing to use in a blue/green +// deployment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ELBInfo +type ELBInfo struct { + _ struct{} `type:"structure"` + + // The name of the load balancer that will be used to route traffic from original + // instances to replacement instances in a blue/green deployment. + Name *string `locationName:"name" type:"string"` +} + +// String returns the string representation +func (s ELBInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ELBInfo) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *ELBInfo) SetName(v string) *ELBInfo { + s.Name = &v + return s +} + // Information about a deployment error. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ErrorInformation type ErrorInformation struct { _ struct{} `type:"structure"` + // For information about additional error codes, see Error Codes for AWS CodeDeploy + // (http://docs.aws.amazon.com/codedeploy/latest/userguide/error-codes.html) + // in the AWS CodeDeploy User Guide (http://docs.aws.amazon.com/codedeploy/latest/userguide). + // // The error code: // - // APPLICATION_MISSING: The application was missing. This error code will - // most likely be raised if the application is deleted after the deployment - // is created but before it is started. + // * APPLICATION_MISSING: The application was missing. This error code will + // most likely be raised if the application is deleted after the deployment + // is created but before it is started. // - // DEPLOYMENT_GROUP_MISSING: The deployment group was missing. This error - // code will most likely be raised if the deployment group is deleted after - // the deployment is created but before it is started. + // * DEPLOYMENT_GROUP_MISSING: The deployment group was missing. This error + // code will most likely be raised if the deployment group is deleted after + // the deployment is created but before it is started. // - // HEALTH_CONSTRAINTS: The deployment failed on too many instances to be - // successfully deployed within the instance health constraints specified. + // * HEALTH_CONSTRAINTS: The deployment failed on too many instances to be + // successfully deployed within the instance health constraints specified. // - // HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully deployed - // within the instance health constraints specified. + // * HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully deployed + // within the instance health constraints specified. // - // IAM_ROLE_MISSING: The service role cannot be accessed. + // * IAM_ROLE_MISSING: The service role cannot be accessed. // - // IAM_ROLE_PERMISSIONS: The service role does not have the correct permissions. + // * IAM_ROLE_PERMISSIONS: The service role does not have the correct permissions. // - // INTERNAL_ERROR: There was an internal error. + // * INTERNAL_ERROR: There was an internal error. // - // NO_EC2_SUBSCRIPTION: The calling account is not subscribed to the Amazon - // EC2 service. + // * NO_EC2_SUBSCRIPTION: The calling account is not subscribed to the Amazon + // EC2 service. // - // NO_INSTANCES: No instance were specified, or no instance can be found. + // * NO_INSTANCES: No instance were specified, or no instance can be found. // - // OVER_MAX_INSTANCES: The maximum number of instance was exceeded. + // * OVER_MAX_INSTANCES: The maximum number of instance was exceeded. // - // THROTTLED: The operation was throttled because the calling account exceeded - // the throttling limits of one or more AWS services. + // * THROTTLED: The operation was throttled because the calling account exceeded + // the throttling limits of one or more AWS services. // - // TIMEOUT: The deployment has timed out. + // * TIMEOUT: The deployment has timed out. // - // REVISION_MISSING: The revision ID was missing. This error code will most - // likely be raised if the revision is deleted after the deployment is created - // but before it is started. + // * REVISION_MISSING: The revision ID was missing. This error code will + // most likely be raised if the revision is deleted after the deployment + // is created but before it is started. Code *string `locationName:"code" type:"string" enum:"ErrorCode"` // An accompanying error message. @@ -4422,7 +5723,20 @@ func (s ErrorInformation) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *ErrorInformation) SetCode(v string) *ErrorInformation { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *ErrorInformation) SetMessage(v string) *ErrorInformation { + s.Message = &v + return s +} + // Information about an application revision. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GenericRevisionInfo type GenericRevisionInfo struct { _ struct{} `type:"structure"` @@ -4452,7 +5766,38 @@ func (s GenericRevisionInfo) GoString() string { return s.String() } +// SetDeploymentGroups sets the DeploymentGroups field's value. +func (s *GenericRevisionInfo) SetDeploymentGroups(v []*string) *GenericRevisionInfo { + s.DeploymentGroups = v + return s +} + +// SetDescription sets the Description field's value. +func (s *GenericRevisionInfo) SetDescription(v string) *GenericRevisionInfo { + s.Description = &v + return s +} + +// SetFirstUsedTime sets the FirstUsedTime field's value. +func (s *GenericRevisionInfo) SetFirstUsedTime(v time.Time) *GenericRevisionInfo { + s.FirstUsedTime = &v + return s +} + +// SetLastUsedTime sets the LastUsedTime field's value. +func (s *GenericRevisionInfo) SetLastUsedTime(v time.Time) *GenericRevisionInfo { + s.LastUsedTime = &v + return s +} + +// SetRegisterTime sets the RegisterTime field's value. +func (s *GenericRevisionInfo) SetRegisterTime(v time.Time) *GenericRevisionInfo { + s.RegisterTime = &v + return s +} + // Represents the input of a get application operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationInput type GetApplicationInput struct { _ struct{} `type:"structure"` @@ -4489,7 +5834,14 @@ func (s *GetApplicationInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *GetApplicationInput) SetApplicationName(v string) *GetApplicationInput { + s.ApplicationName = &v + return s +} + // Represents the output of a get application operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationOutput type GetApplicationOutput struct { _ struct{} `type:"structure"` @@ -4507,7 +5859,14 @@ func (s GetApplicationOutput) GoString() string { return s.String() } +// SetApplication sets the Application field's value. +func (s *GetApplicationOutput) SetApplication(v *ApplicationInfo) *GetApplicationOutput { + s.Application = v + return s +} + // Represents the input of a get application revision operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationRevisionInput type GetApplicationRevisionInput struct { _ struct{} `type:"structure"` @@ -4551,7 +5910,20 @@ func (s *GetApplicationRevisionInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *GetApplicationRevisionInput) SetApplicationName(v string) *GetApplicationRevisionInput { + s.ApplicationName = &v + return s +} + +// SetRevision sets the Revision field's value. +func (s *GetApplicationRevisionInput) SetRevision(v *RevisionLocation) *GetApplicationRevisionInput { + s.Revision = v + return s +} + // Represents the output of a get application revision operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationRevisionOutput type GetApplicationRevisionOutput struct { _ struct{} `type:"structure"` @@ -4575,7 +5947,26 @@ func (s GetApplicationRevisionOutput) GoString() string { return s.String() } +// SetApplicationName sets the ApplicationName field's value. +func (s *GetApplicationRevisionOutput) SetApplicationName(v string) *GetApplicationRevisionOutput { + s.ApplicationName = &v + return s +} + +// SetRevision sets the Revision field's value. +func (s *GetApplicationRevisionOutput) SetRevision(v *RevisionLocation) *GetApplicationRevisionOutput { + s.Revision = v + return s +} + +// SetRevisionInfo sets the RevisionInfo field's value. +func (s *GetApplicationRevisionOutput) SetRevisionInfo(v *GenericRevisionInfo) *GetApplicationRevisionOutput { + s.RevisionInfo = v + return s +} + // Represents the input of a get deployment configuration operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentConfigInput type GetDeploymentConfigInput struct { _ struct{} `type:"structure"` @@ -4612,7 +6003,14 @@ func (s *GetDeploymentConfigInput) Validate() error { return nil } +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *GetDeploymentConfigInput) SetDeploymentConfigName(v string) *GetDeploymentConfigInput { + s.DeploymentConfigName = &v + return s +} + // Represents the output of a get deployment configuration operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentConfigOutput type GetDeploymentConfigOutput struct { _ struct{} `type:"structure"` @@ -4630,7 +6028,14 @@ func (s GetDeploymentConfigOutput) GoString() string { return s.String() } +// SetDeploymentConfigInfo sets the DeploymentConfigInfo field's value. +func (s *GetDeploymentConfigOutput) SetDeploymentConfigInfo(v *DeploymentConfigInfo) *GetDeploymentConfigOutput { + s.DeploymentConfigInfo = v + return s +} + // Represents the input of a get deployment group operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentGroupInput type GetDeploymentGroupInput struct { _ struct{} `type:"structure"` @@ -4678,7 +6083,20 @@ func (s *GetDeploymentGroupInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *GetDeploymentGroupInput) SetApplicationName(v string) *GetDeploymentGroupInput { + s.ApplicationName = &v + return s +} + +// SetDeploymentGroupName sets the DeploymentGroupName field's value. +func (s *GetDeploymentGroupInput) SetDeploymentGroupName(v string) *GetDeploymentGroupInput { + s.DeploymentGroupName = &v + return s +} + // Represents the output of a get deployment group operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentGroupOutput type GetDeploymentGroupOutput struct { _ struct{} `type:"structure"` @@ -4696,7 +6114,14 @@ func (s GetDeploymentGroupOutput) GoString() string { return s.String() } +// SetDeploymentGroupInfo sets the DeploymentGroupInfo field's value. +func (s *GetDeploymentGroupOutput) SetDeploymentGroupInfo(v *DeploymentGroupInfo) *GetDeploymentGroupOutput { + s.DeploymentGroupInfo = v + return s +} + // Represents the input of a get deployment operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentInput type GetDeploymentInput struct { _ struct{} `type:"structure"` @@ -4729,7 +6154,14 @@ func (s *GetDeploymentInput) Validate() error { return nil } +// SetDeploymentId sets the DeploymentId field's value. +func (s *GetDeploymentInput) SetDeploymentId(v string) *GetDeploymentInput { + s.DeploymentId = &v + return s +} + // Represents the input of a get deployment instance operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentInstanceInput type GetDeploymentInstanceInput struct { _ struct{} `type:"structure"` @@ -4770,7 +6202,20 @@ func (s *GetDeploymentInstanceInput) Validate() error { return nil } +// SetDeploymentId sets the DeploymentId field's value. +func (s *GetDeploymentInstanceInput) SetDeploymentId(v string) *GetDeploymentInstanceInput { + s.DeploymentId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *GetDeploymentInstanceInput) SetInstanceId(v string) *GetDeploymentInstanceInput { + s.InstanceId = &v + return s +} + // Represents the output of a get deployment instance operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentInstanceOutput type GetDeploymentInstanceOutput struct { _ struct{} `type:"structure"` @@ -4788,7 +6233,14 @@ func (s GetDeploymentInstanceOutput) GoString() string { return s.String() } +// SetInstanceSummary sets the InstanceSummary field's value. +func (s *GetDeploymentInstanceOutput) SetInstanceSummary(v *InstanceSummary) *GetDeploymentInstanceOutput { + s.InstanceSummary = v + return s +} + // Represents the output of a get deployment operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentOutput type GetDeploymentOutput struct { _ struct{} `type:"structure"` @@ -4806,7 +6258,14 @@ func (s GetDeploymentOutput) GoString() string { return s.String() } +// SetDeploymentInfo sets the DeploymentInfo field's value. +func (s *GetDeploymentOutput) SetDeploymentInfo(v *DeploymentInfo) *GetDeploymentOutput { + s.DeploymentInfo = v + return s +} + // Represents the input of a get on-premises instance operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetOnPremisesInstanceInput type GetOnPremisesInstanceInput struct { _ struct{} `type:"structure"` @@ -4839,7 +6298,14 @@ func (s *GetOnPremisesInstanceInput) Validate() error { return nil } +// SetInstanceName sets the InstanceName field's value. +func (s *GetOnPremisesInstanceInput) SetInstanceName(v string) *GetOnPremisesInstanceInput { + s.InstanceName = &v + return s +} + // Represents the output of a get on-premises instance operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetOnPremisesInstanceOutput type GetOnPremisesInstanceOutput struct { _ struct{} `type:"structure"` @@ -4857,7 +6323,14 @@ func (s GetOnPremisesInstanceOutput) GoString() string { return s.String() } +// SetInstanceInfo sets the InstanceInfo field's value. +func (s *GetOnPremisesInstanceOutput) SetInstanceInfo(v *InstanceInfo) *GetOnPremisesInstanceOutput { + s.InstanceInfo = v + return s +} + // Information about the location of application artifacts stored in GitHub. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GitHubLocation type GitHubLocation struct { _ struct{} `type:"structure"` @@ -4882,7 +6355,52 @@ func (s GitHubLocation) GoString() string { return s.String() } +// SetCommitId sets the CommitId field's value. +func (s *GitHubLocation) SetCommitId(v string) *GitHubLocation { + s.CommitId = &v + return s +} + +// SetRepository sets the Repository field's value. +func (s *GitHubLocation) SetRepository(v string) *GitHubLocation { + s.Repository = &v + return s +} + +// Information about the instances that belong to the replacement environment +// in a blue/green deployment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GreenFleetProvisioningOption +type GreenFleetProvisioningOption struct { + _ struct{} `type:"structure"` + + // The method used to add instances to a replacement environment. + // + // * DISCOVER_EXISTING: Use instances that already exist or will be created + // manually. + // + // * COPY_AUTO_SCALING_GROUP: Use settings from a specified Auto Scaling + // group to define and create instances in a new Auto Scaling group. + Action *string `locationName:"action" type:"string" enum:"GreenFleetProvisioningAction"` +} + +// String returns the string representation +func (s GreenFleetProvisioningOption) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GreenFleetProvisioningOption) GoString() string { + return s.String() +} + +// SetAction sets the Action field's value. +func (s *GreenFleetProvisioningOption) SetAction(v string) *GreenFleetProvisioningOption { + s.Action = &v + return s +} + // Information about an on-premises instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/InstanceInfo type InstanceInfo struct { _ struct{} `type:"structure"` @@ -4890,6 +6408,9 @@ type InstanceInfo struct { // instance was deregistered. DeregisterTime *time.Time `locationName:"deregisterTime" type:"timestamp" timestampFormat:"unix"` + // The ARN of the IAM session associated with the on-premises instance. + IamSessionArn *string `locationName:"iamSessionArn" type:"string"` + // The IAM user ARN associated with the on-premises instance. IamUserArn *string `locationName:"iamUserArn" type:"string"` @@ -4916,7 +6437,50 @@ func (s InstanceInfo) GoString() string { return s.String() } +// SetDeregisterTime sets the DeregisterTime field's value. +func (s *InstanceInfo) SetDeregisterTime(v time.Time) *InstanceInfo { + s.DeregisterTime = &v + return s +} + +// SetIamSessionArn sets the IamSessionArn field's value. +func (s *InstanceInfo) SetIamSessionArn(v string) *InstanceInfo { + s.IamSessionArn = &v + return s +} + +// SetIamUserArn sets the IamUserArn field's value. +func (s *InstanceInfo) SetIamUserArn(v string) *InstanceInfo { + s.IamUserArn = &v + return s +} + +// SetInstanceArn sets the InstanceArn field's value. +func (s *InstanceInfo) SetInstanceArn(v string) *InstanceInfo { + s.InstanceArn = &v + return s +} + +// SetInstanceName sets the InstanceName field's value. +func (s *InstanceInfo) SetInstanceName(v string) *InstanceInfo { + s.InstanceName = &v + return s +} + +// SetRegisterTime sets the RegisterTime field's value. +func (s *InstanceInfo) SetRegisterTime(v time.Time) *InstanceInfo { + s.RegisterTime = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *InstanceInfo) SetTags(v []*Tag) *InstanceInfo { + s.Tags = v + return s +} + // Information about an instance in a deployment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/InstanceSummary type InstanceSummary struct { _ struct{} `type:"structure"` @@ -4926,6 +6490,14 @@ type InstanceSummary struct { // The instance ID. InstanceId *string `locationName:"instanceId" type:"string"` + // Information about which environment an instance belongs to in a blue/green + // deployment. + // + // * BLUE: The instance is part of the original environment. + // + // * GREEN: The instance is part of the replacement environment. + InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"` + // A timestamp indicating when the instance information was last updated. LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"` @@ -4934,17 +6506,17 @@ type InstanceSummary struct { // The deployment status for this instance: // - // Pending: The deployment is pending for this instance. + // * Pending: The deployment is pending for this instance. // - // In Progress: The deployment is in progress for this instance. + // * In Progress: The deployment is in progress for this instance. // - // Succeeded: The deployment has succeeded for this instance. + // * Succeeded: The deployment has succeeded for this instance. // - // Failed: The deployment has failed for this instance. + // * Failed: The deployment has failed for this instance. // - // Skipped: The deployment has been skipped for this instance. + // * Skipped: The deployment has been skipped for this instance. // - // Unknown: The deployment status is unknown for this instance. + // * Unknown: The deployment status is unknown for this instance. Status *string `locationName:"status" type:"string" enum:"InstanceStatus"` } @@ -4958,7 +6530,44 @@ func (s InstanceSummary) GoString() string { return s.String() } +// SetDeploymentId sets the DeploymentId field's value. +func (s *InstanceSummary) SetDeploymentId(v string) *InstanceSummary { + s.DeploymentId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *InstanceSummary) SetInstanceId(v string) *InstanceSummary { + s.InstanceId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *InstanceSummary) SetInstanceType(v string) *InstanceSummary { + s.InstanceType = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *InstanceSummary) SetLastUpdatedAt(v time.Time) *InstanceSummary { + s.LastUpdatedAt = &v + return s +} + +// SetLifecycleEvents sets the LifecycleEvents field's value. +func (s *InstanceSummary) SetLifecycleEvents(v []*LifecycleEvent) *InstanceSummary { + s.LifecycleEvents = v + return s +} + +// SetStatus sets the Status field's value. +func (s *InstanceSummary) SetStatus(v string) *InstanceSummary { + s.Status = &v + return s +} + // Information about a deployment lifecycle event. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/LifecycleEvent type LifecycleEvent struct { _ struct{} `type:"structure"` @@ -4977,17 +6586,17 @@ type LifecycleEvent struct { // The deployment lifecycle event status: // - // Pending: The deployment lifecycle event is pending. + // * Pending: The deployment lifecycle event is pending. // - // InProgress: The deployment lifecycle event is in progress. + // * InProgress: The deployment lifecycle event is in progress. // - // Succeeded: The deployment lifecycle event ran successfully. + // * Succeeded: The deployment lifecycle event ran successfully. // - // Failed: The deployment lifecycle event has failed. + // * Failed: The deployment lifecycle event has failed. // - // Skipped: The deployment lifecycle event has been skipped. + // * Skipped: The deployment lifecycle event has been skipped. // - // Unknown: The deployment lifecycle event is unknown. + // * Unknown: The deployment lifecycle event is unknown. Status *string `locationName:"status" type:"string" enum:"LifecycleEventStatus"` } @@ -5001,7 +6610,38 @@ func (s LifecycleEvent) GoString() string { return s.String() } +// SetDiagnostics sets the Diagnostics field's value. +func (s *LifecycleEvent) SetDiagnostics(v *Diagnostics) *LifecycleEvent { + s.Diagnostics = v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *LifecycleEvent) SetEndTime(v time.Time) *LifecycleEvent { + s.EndTime = &v + return s +} + +// SetLifecycleEventName sets the LifecycleEventName field's value. +func (s *LifecycleEvent) SetLifecycleEventName(v string) *LifecycleEvent { + s.LifecycleEventName = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *LifecycleEvent) SetStartTime(v time.Time) *LifecycleEvent { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *LifecycleEvent) SetStatus(v string) *LifecycleEvent { + s.Status = &v + return s +} + // Represents the input of a list application revisions operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplicationRevisionsInput type ListApplicationRevisionsInput struct { _ struct{} `type:"structure"` @@ -5014,12 +6654,12 @@ type ListApplicationRevisionsInput struct { // Whether to list revisions based on whether the revision is the target revision // of an deployment group: // - // include: List revisions that are target revisions of a deployment group. + // * include: List revisions that are target revisions of a deployment group. // - // exclude: Do not list revisions that are target revisions of a deployment - // group. + // * exclude: Do not list revisions that are target revisions of a deployment + // group. // - // ignore: List all revisions. + // * ignore: List all revisions. Deployed *string `locationName:"deployed" type:"string" enum:"ListStateFilterAction"` // An identifier returned from the previous list application revisions call. @@ -5036,24 +6676,24 @@ type ListApplicationRevisionsInput struct { // The column name to use to sort the list results: // - // registerTime: Sort by the time the revisions were registered with AWS - // CodeDeploy. + // * registerTime: Sort by the time the revisions were registered with AWS + // CodeDeploy. // - // firstUsedTime: Sort by the time the revisions were first used in a deployment. + // * firstUsedTime: Sort by the time the revisions were first used in a deployment. // - // lastUsedTime: Sort by the time the revisions were last used in a deployment. + // * lastUsedTime: Sort by the time the revisions were last used in a deployment. // - // If not specified or set to null, the results will be returned in an arbitrary + // If not specified or set to null, the results will be returned in an arbitrary // order. SortBy *string `locationName:"sortBy" type:"string" enum:"ApplicationRevisionSortBy"` // The order in which to sort the list results: // - // ascending: ascending order. + // * ascending: ascending order. // - // descending: descending order. + // * descending: descending order. // - // If not specified, the results will be sorted in ascending order. + // If not specified, the results will be sorted in ascending order. // // If set to null, the results will be sorted in an arbitrary order. SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrder"` @@ -5085,7 +6725,50 @@ func (s *ListApplicationRevisionsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *ListApplicationRevisionsInput) SetApplicationName(v string) *ListApplicationRevisionsInput { + s.ApplicationName = &v + return s +} + +// SetDeployed sets the Deployed field's value. +func (s *ListApplicationRevisionsInput) SetDeployed(v string) *ListApplicationRevisionsInput { + s.Deployed = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationRevisionsInput) SetNextToken(v string) *ListApplicationRevisionsInput { + s.NextToken = &v + return s +} + +// SetS3Bucket sets the S3Bucket field's value. +func (s *ListApplicationRevisionsInput) SetS3Bucket(v string) *ListApplicationRevisionsInput { + s.S3Bucket = &v + return s +} + +// SetS3KeyPrefix sets the S3KeyPrefix field's value. +func (s *ListApplicationRevisionsInput) SetS3KeyPrefix(v string) *ListApplicationRevisionsInput { + s.S3KeyPrefix = &v + return s +} + +// SetSortBy sets the SortBy field's value. +func (s *ListApplicationRevisionsInput) SetSortBy(v string) *ListApplicationRevisionsInput { + s.SortBy = &v + return s +} + +// SetSortOrder sets the SortOrder field's value. +func (s *ListApplicationRevisionsInput) SetSortOrder(v string) *ListApplicationRevisionsInput { + s.SortOrder = &v + return s +} + // Represents the output of a list application revisions operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplicationRevisionsOutput type ListApplicationRevisionsOutput struct { _ struct{} `type:"structure"` @@ -5108,7 +6791,20 @@ func (s ListApplicationRevisionsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationRevisionsOutput) SetNextToken(v string) *ListApplicationRevisionsOutput { + s.NextToken = &v + return s +} + +// SetRevisions sets the Revisions field's value. +func (s *ListApplicationRevisionsOutput) SetRevisions(v []*RevisionLocation) *ListApplicationRevisionsOutput { + s.Revisions = v + return s +} + // Represents the input of a list applications operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplicationsInput type ListApplicationsInput struct { _ struct{} `type:"structure"` @@ -5127,7 +6823,14 @@ func (s ListApplicationsInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationsInput) SetNextToken(v string) *ListApplicationsInput { + s.NextToken = &v + return s +} + // Represents the output of a list applications operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplicationsOutput type ListApplicationsOutput struct { _ struct{} `type:"structure"` @@ -5150,7 +6853,20 @@ func (s ListApplicationsOutput) GoString() string { return s.String() } +// SetApplications sets the Applications field's value. +func (s *ListApplicationsOutput) SetApplications(v []*string) *ListApplicationsOutput { + s.Applications = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationsOutput) SetNextToken(v string) *ListApplicationsOutput { + s.NextToken = &v + return s +} + // Represents the input of a list deployment configurations operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentConfigsInput type ListDeploymentConfigsInput struct { _ struct{} `type:"structure"` @@ -5170,7 +6886,14 @@ func (s ListDeploymentConfigsInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentConfigsInput) SetNextToken(v string) *ListDeploymentConfigsInput { + s.NextToken = &v + return s +} + // Represents the output of a list deployment configurations operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentConfigsOutput type ListDeploymentConfigsOutput struct { _ struct{} `type:"structure"` @@ -5194,7 +6917,20 @@ func (s ListDeploymentConfigsOutput) GoString() string { return s.String() } +// SetDeploymentConfigsList sets the DeploymentConfigsList field's value. +func (s *ListDeploymentConfigsOutput) SetDeploymentConfigsList(v []*string) *ListDeploymentConfigsOutput { + s.DeploymentConfigsList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentConfigsOutput) SetNextToken(v string) *ListDeploymentConfigsOutput { + s.NextToken = &v + return s +} + // Represents the input of a list deployment groups operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentGroupsInput type ListDeploymentGroupsInput struct { _ struct{} `type:"structure"` @@ -5235,7 +6971,20 @@ func (s *ListDeploymentGroupsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *ListDeploymentGroupsInput) SetApplicationName(v string) *ListDeploymentGroupsInput { + s.ApplicationName = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentGroupsInput) SetNextToken(v string) *ListDeploymentGroupsInput { + s.NextToken = &v + return s +} + // Represents the output of a list deployment groups operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentGroupsOutput type ListDeploymentGroupsOutput struct { _ struct{} `type:"structure"` @@ -5261,7 +7010,26 @@ func (s ListDeploymentGroupsOutput) GoString() string { return s.String() } +// SetApplicationName sets the ApplicationName field's value. +func (s *ListDeploymentGroupsOutput) SetApplicationName(v string) *ListDeploymentGroupsOutput { + s.ApplicationName = &v + return s +} + +// SetDeploymentGroups sets the DeploymentGroups field's value. +func (s *ListDeploymentGroupsOutput) SetDeploymentGroups(v []*string) *ListDeploymentGroupsOutput { + s.DeploymentGroups = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentGroupsOutput) SetNextToken(v string) *ListDeploymentGroupsOutput { + s.NextToken = &v + return s +} + // Represents the input of a list deployment instances operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentInstancesInput type ListDeploymentInstancesInput struct { _ struct{} `type:"structure"` @@ -5272,19 +7040,24 @@ type ListDeploymentInstancesInput struct { // A subset of instances to list by status: // - // Pending: Include those instance with pending deployments. + // * Pending: Include those instance with pending deployments. // - // InProgress: Include those instance where deployments are still in progress. + // * InProgress: Include those instance where deployments are still in progress. // - // Succeeded: Include those instances with successful deployments. + // * Succeeded: Include those instances with successful deployments. // - // Failed: Include those instance with failed deployments. + // * Failed: Include those instance with failed deployments. // - // Skipped: Include those instance with skipped deployments. + // * Skipped: Include those instance with skipped deployments. // - // Unknown: Include those instance with deployments in an unknown state. + // * Unknown: Include those instance with deployments in an unknown state. InstanceStatusFilter []*string `locationName:"instanceStatusFilter" type:"list"` + // The set of instances in a blue/green deployment, either those in the original + // environment ("BLUE") or those in the replacement environment ("GREEN"), for + // which you want to view instance information. + InstanceTypeFilter []*string `locationName:"instanceTypeFilter" type:"list"` + // An identifier returned from the previous list deployment instances call. // It can be used to return the next set of deployment instances in the list. NextToken *string `locationName:"nextToken" type:"string"` @@ -5313,7 +7086,32 @@ func (s *ListDeploymentInstancesInput) Validate() error { return nil } +// SetDeploymentId sets the DeploymentId field's value. +func (s *ListDeploymentInstancesInput) SetDeploymentId(v string) *ListDeploymentInstancesInput { + s.DeploymentId = &v + return s +} + +// SetInstanceStatusFilter sets the InstanceStatusFilter field's value. +func (s *ListDeploymentInstancesInput) SetInstanceStatusFilter(v []*string) *ListDeploymentInstancesInput { + s.InstanceStatusFilter = v + return s +} + +// SetInstanceTypeFilter sets the InstanceTypeFilter field's value. +func (s *ListDeploymentInstancesInput) SetInstanceTypeFilter(v []*string) *ListDeploymentInstancesInput { + s.InstanceTypeFilter = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentInstancesInput) SetNextToken(v string) *ListDeploymentInstancesInput { + s.NextToken = &v + return s +} + // Represents the output of a list deployment instances operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentInstancesOutput type ListDeploymentInstancesOutput struct { _ struct{} `type:"structure"` @@ -5336,7 +7134,20 @@ func (s ListDeploymentInstancesOutput) GoString() string { return s.String() } +// SetInstancesList sets the InstancesList field's value. +func (s *ListDeploymentInstancesOutput) SetInstancesList(v []*string) *ListDeploymentInstancesOutput { + s.InstancesList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentInstancesOutput) SetNextToken(v string) *ListDeploymentInstancesOutput { + s.NextToken = &v + return s +} + // Represents the input of a list deployments operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentsInput type ListDeploymentsInput struct { _ struct{} `type:"structure"` @@ -5352,17 +7163,17 @@ type ListDeploymentsInput struct { // A subset of deployments to list by status: // - // Created: Include created deployments in the resulting list. + // * Created: Include created deployments in the resulting list. // - // Queued: Include queued deployments in the resulting list. + // * Queued: Include queued deployments in the resulting list. // - // In Progress: Include in-progress deployments in the resulting list. + // * In Progress: Include in-progress deployments in the resulting list. // - // Succeeded: Include successful deployments in the resulting list. + // * Succeeded: Include successful deployments in the resulting list. // - // Failed: Include failed deployments in the resulting list. + // * Failed: Include failed deployments in the resulting list. // - // Stopped: Include stopped deployments in the resulting list. + // * Stopped: Include stopped deployments in the resulting list. IncludeOnlyStatuses []*string `locationName:"includeOnlyStatuses" type:"list"` // An identifier returned from the previous list deployments call. It can be @@ -5396,7 +7207,38 @@ func (s *ListDeploymentsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *ListDeploymentsInput) SetApplicationName(v string) *ListDeploymentsInput { + s.ApplicationName = &v + return s +} + +// SetCreateTimeRange sets the CreateTimeRange field's value. +func (s *ListDeploymentsInput) SetCreateTimeRange(v *TimeRange) *ListDeploymentsInput { + s.CreateTimeRange = v + return s +} + +// SetDeploymentGroupName sets the DeploymentGroupName field's value. +func (s *ListDeploymentsInput) SetDeploymentGroupName(v string) *ListDeploymentsInput { + s.DeploymentGroupName = &v + return s +} + +// SetIncludeOnlyStatuses sets the IncludeOnlyStatuses field's value. +func (s *ListDeploymentsInput) SetIncludeOnlyStatuses(v []*string) *ListDeploymentsInput { + s.IncludeOnlyStatuses = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentsInput) SetNextToken(v string) *ListDeploymentsInput { + s.NextToken = &v + return s +} + // Represents the output of a list deployments operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentsOutput type ListDeploymentsOutput struct { _ struct{} `type:"structure"` @@ -5419,7 +7261,20 @@ func (s ListDeploymentsOutput) GoString() string { return s.String() } +// SetDeployments sets the Deployments field's value. +func (s *ListDeploymentsOutput) SetDeployments(v []*string) *ListDeploymentsOutput { + s.Deployments = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentsOutput) SetNextToken(v string) *ListDeploymentsOutput { + s.NextToken = &v + return s +} + // Represents the input of a list on-premises instances operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListOnPremisesInstancesInput type ListOnPremisesInstancesInput struct { _ struct{} `type:"structure"` @@ -5429,11 +7284,11 @@ type ListOnPremisesInstancesInput struct { // The registration status of the on-premises instances: // - // Deregistered: Include deregistered on-premises instances in the resulting - // list. + // * Deregistered: Include deregistered on-premises instances in the resulting + // list. // - // Registered: Include registered on-premises instances in the resulting - // list. + // * Registered: Include registered on-premises instances in the resulting + // list. RegistrationStatus *string `locationName:"registrationStatus" type:"string" enum:"RegistrationStatus"` // The on-premises instance tags that will be used to restrict the corresponding @@ -5451,7 +7306,26 @@ func (s ListOnPremisesInstancesInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListOnPremisesInstancesInput) SetNextToken(v string) *ListOnPremisesInstancesInput { + s.NextToken = &v + return s +} + +// SetRegistrationStatus sets the RegistrationStatus field's value. +func (s *ListOnPremisesInstancesInput) SetRegistrationStatus(v string) *ListOnPremisesInstancesInput { + s.RegistrationStatus = &v + return s +} + +// SetTagFilters sets the TagFilters field's value. +func (s *ListOnPremisesInstancesInput) SetTagFilters(v []*TagFilter) *ListOnPremisesInstancesInput { + s.TagFilters = v + return s +} + // Represents the output of list on-premises instances operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListOnPremisesInstancesOutput type ListOnPremisesInstancesOutput struct { _ struct{} `type:"structure"` @@ -5474,25 +7348,64 @@ func (s ListOnPremisesInstancesOutput) GoString() string { return s.String() } +// SetInstanceNames sets the InstanceNames field's value. +func (s *ListOnPremisesInstancesOutput) SetInstanceNames(v []*string) *ListOnPremisesInstancesOutput { + s.InstanceNames = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListOnPremisesInstancesOutput) SetNextToken(v string) *ListOnPremisesInstancesOutput { + s.NextToken = &v + return s +} + +// Information about the load balancer used in a blue/green deployment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/LoadBalancerInfo +type LoadBalancerInfo struct { + _ struct{} `type:"structure"` + + // An array containing information about the load balancer in Elastic Load Balancing + // to use in a blue/green deployment. + ElbInfoList []*ELBInfo `locationName:"elbInfoList" type:"list"` +} + +// String returns the string representation +func (s LoadBalancerInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LoadBalancerInfo) GoString() string { + return s.String() +} + +// SetElbInfoList sets the ElbInfoList field's value. +func (s *LoadBalancerInfo) SetElbInfoList(v []*ELBInfo) *LoadBalancerInfo { + s.ElbInfoList = v + return s +} + // Information about minimum healthy instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/MinimumHealthyHosts type MinimumHealthyHosts struct { _ struct{} `type:"structure"` // The minimum healthy instance type: // - // HOST_COUNT: The minimum number of healthy instance as an absolute value. + // * HOST_COUNT: The minimum number of healthy instance as an absolute value. // - // FLEET_PERCENT: The minimum number of healthy instance as a percentage - // of the total number of instance in the deployment. + // * FLEET_PERCENT: The minimum number of healthy instance as a percentage + // of the total number of instance in the deployment. // - // In an example of nine instance, if a HOST_COUNT of six is specified, deploy + // In an example of nine instance, if a HOST_COUNT of six is specified, deploy // to up to three instances at a time. The deployment will be successful if // six or more instances are deployed to successfully; otherwise, the deployment // fails. If a FLEET_PERCENT of 40 is specified, deploy to up to five instance // at a time. The deployment will be successful if four or more instance are // deployed to successfully; otherwise, the deployment fails. // - // In a call to the get deployment configuration operation, CodeDeployDefault.OneAtATime + // In a call to the get deployment configuration operation, CodeDeployDefault.OneAtATime // will return a minimum healthy instance type of MOST_CONCURRENCY and a value // of 1. This means a deployment to only one instance at a time. (You cannot // set the type to MOST_CONCURRENCY, only to HOST_COUNT or FLEET_PERCENT.) In @@ -5517,7 +7430,20 @@ func (s MinimumHealthyHosts) GoString() string { return s.String() } +// SetType sets the Type field's value. +func (s *MinimumHealthyHosts) SetType(v string) *MinimumHealthyHosts { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *MinimumHealthyHosts) SetValue(v int64) *MinimumHealthyHosts { + s.Value = &v + return s +} + // Represents the input of a register application revision operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterApplicationRevisionInput type RegisterApplicationRevisionInput struct { _ struct{} `type:"structure"` @@ -5566,6 +7492,25 @@ func (s *RegisterApplicationRevisionInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *RegisterApplicationRevisionInput) SetApplicationName(v string) *RegisterApplicationRevisionInput { + s.ApplicationName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *RegisterApplicationRevisionInput) SetDescription(v string) *RegisterApplicationRevisionInput { + s.Description = &v + return s +} + +// SetRevision sets the Revision field's value. +func (s *RegisterApplicationRevisionInput) SetRevision(v *RevisionLocation) *RegisterApplicationRevisionInput { + s.Revision = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterApplicationRevisionOutput type RegisterApplicationRevisionOutput struct { _ struct{} `type:"structure"` } @@ -5581,13 +7526,15 @@ func (s RegisterApplicationRevisionOutput) GoString() string { } // Represents the input of the register on-premises instance operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterOnPremisesInstanceInput type RegisterOnPremisesInstanceInput struct { _ struct{} `type:"structure"` + // The ARN of the IAM session to associate with the on-premises instance. + IamSessionArn *string `locationName:"iamSessionArn" type:"string"` + // The ARN of the IAM user to associate with the on-premises instance. - // - // IamUserArn is a required field - IamUserArn *string `locationName:"iamUserArn" type:"string" required:"true"` + IamUserArn *string `locationName:"iamUserArn" type:"string"` // The name of the on-premises instance to register. // @@ -5608,9 +7555,6 @@ func (s RegisterOnPremisesInstanceInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *RegisterOnPremisesInstanceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "RegisterOnPremisesInstanceInput"} - if s.IamUserArn == nil { - invalidParams.Add(request.NewErrParamRequired("IamUserArn")) - } if s.InstanceName == nil { invalidParams.Add(request.NewErrParamRequired("InstanceName")) } @@ -5621,6 +7565,25 @@ func (s *RegisterOnPremisesInstanceInput) Validate() error { return nil } +// SetIamSessionArn sets the IamSessionArn field's value. +func (s *RegisterOnPremisesInstanceInput) SetIamSessionArn(v string) *RegisterOnPremisesInstanceInput { + s.IamSessionArn = &v + return s +} + +// SetIamUserArn sets the IamUserArn field's value. +func (s *RegisterOnPremisesInstanceInput) SetIamUserArn(v string) *RegisterOnPremisesInstanceInput { + s.IamUserArn = &v + return s +} + +// SetInstanceName sets the InstanceName field's value. +func (s *RegisterOnPremisesInstanceInput) SetInstanceName(v string) *RegisterOnPremisesInstanceInput { + s.InstanceName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterOnPremisesInstanceOutput type RegisterOnPremisesInstanceOutput struct { _ struct{} `type:"structure"` } @@ -5636,6 +7599,7 @@ func (s RegisterOnPremisesInstanceOutput) GoString() string { } // Represents the input of a remove tags from on-premises instances operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RemoveTagsFromOnPremisesInstancesInput type RemoveTagsFromOnPremisesInstancesInput struct { _ struct{} `type:"structure"` @@ -5676,6 +7640,19 @@ func (s *RemoveTagsFromOnPremisesInstancesInput) Validate() error { return nil } +// SetInstanceNames sets the InstanceNames field's value. +func (s *RemoveTagsFromOnPremisesInstancesInput) SetInstanceNames(v []*string) *RemoveTagsFromOnPremisesInstancesInput { + s.InstanceNames = v + return s +} + +// SetTags sets the Tags field's value. +func (s *RemoveTagsFromOnPremisesInstancesInput) SetTags(v []*Tag) *RemoveTagsFromOnPremisesInstancesInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RemoveTagsFromOnPremisesInstancesOutput type RemoveTagsFromOnPremisesInstancesOutput struct { _ struct{} `type:"structure"` } @@ -5691,13 +7668,15 @@ func (s RemoveTagsFromOnPremisesInstancesOutput) GoString() string { } // Information about an application revision. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RevisionInfo type RevisionInfo struct { _ struct{} `type:"structure"` - // Information about an application revision. + // Information about an application revision, including usage details and associated + // deployment groups. GenericRevisionInfo *GenericRevisionInfo `locationName:"genericRevisionInfo" type:"structure"` - // Information about the location of an application revision. + // Information about the location and type of an application revision. RevisionLocation *RevisionLocation `locationName:"revisionLocation" type:"structure"` } @@ -5711,7 +7690,20 @@ func (s RevisionInfo) GoString() string { return s.String() } +// SetGenericRevisionInfo sets the GenericRevisionInfo field's value. +func (s *RevisionInfo) SetGenericRevisionInfo(v *GenericRevisionInfo) *RevisionInfo { + s.GenericRevisionInfo = v + return s +} + +// SetRevisionLocation sets the RevisionLocation field's value. +func (s *RevisionInfo) SetRevisionLocation(v *RevisionLocation) *RevisionInfo { + s.RevisionLocation = v + return s +} + // Information about the location of an application revision. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RevisionLocation type RevisionLocation struct { _ struct{} `type:"structure"` @@ -5720,9 +7712,9 @@ type RevisionLocation struct { // The type of application revision: // - // S3: An application revision stored in Amazon S3. + // * S3: An application revision stored in Amazon S3. // - // GitHub: An application revision stored in GitHub. + // * GitHub: An application revision stored in GitHub. RevisionType *string `locationName:"revisionType" type:"string" enum:"RevisionLocationType"` // Information about the location of application artifacts stored in Amazon @@ -5740,7 +7732,26 @@ func (s RevisionLocation) GoString() string { return s.String() } +// SetGitHubLocation sets the GitHubLocation field's value. +func (s *RevisionLocation) SetGitHubLocation(v *GitHubLocation) *RevisionLocation { + s.GitHubLocation = v + return s +} + +// SetRevisionType sets the RevisionType field's value. +func (s *RevisionLocation) SetRevisionType(v string) *RevisionLocation { + s.RevisionType = &v + return s +} + +// SetS3Location sets the S3Location field's value. +func (s *RevisionLocation) SetS3Location(v *S3Location) *RevisionLocation { + s.S3Location = v + return s +} + // Information about a deployment rollback. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RollbackInfo type RollbackInfo struct { _ struct{} `type:"structure"` @@ -5766,8 +7777,27 @@ func (s RollbackInfo) GoString() string { return s.String() } +// SetRollbackDeploymentId sets the RollbackDeploymentId field's value. +func (s *RollbackInfo) SetRollbackDeploymentId(v string) *RollbackInfo { + s.RollbackDeploymentId = &v + return s +} + +// SetRollbackMessage sets the RollbackMessage field's value. +func (s *RollbackInfo) SetRollbackMessage(v string) *RollbackInfo { + s.RollbackMessage = &v + return s +} + +// SetRollbackTriggeringDeploymentId sets the RollbackTriggeringDeploymentId field's value. +func (s *RollbackInfo) SetRollbackTriggeringDeploymentId(v string) *RollbackInfo { + s.RollbackTriggeringDeploymentId = &v + return s +} + // Information about the location of application artifacts stored in Amazon // S3. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/S3Location type S3Location struct { _ struct{} `type:"structure"` @@ -5776,11 +7806,11 @@ type S3Location struct { // The file type of the application revision. Must be one of the following: // - // tar: A tar archive file. + // * tar: A tar archive file. // - // tgz: A compressed tar archive file. + // * tgz: A compressed tar archive file. // - // zip: A zip archive file. + // * zip: A zip archive file. BundleType *string `locationName:"bundleType" type:"string" enum:"BundleType"` // The ETag of the Amazon S3 object that represents the bundled artifacts for @@ -5812,7 +7842,78 @@ func (s S3Location) GoString() string { return s.String() } +// SetBucket sets the Bucket field's value. +func (s *S3Location) SetBucket(v string) *S3Location { + s.Bucket = &v + return s +} + +// SetBundleType sets the BundleType field's value. +func (s *S3Location) SetBundleType(v string) *S3Location { + s.BundleType = &v + return s +} + +// SetETag sets the ETag field's value. +func (s *S3Location) SetETag(v string) *S3Location { + s.ETag = &v + return s +} + +// SetKey sets the Key field's value. +func (s *S3Location) SetKey(v string) *S3Location { + s.Key = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *S3Location) SetVersion(v string) *S3Location { + s.Version = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/SkipWaitTimeForInstanceTerminationInput +type SkipWaitTimeForInstanceTerminationInput struct { + _ struct{} `type:"structure"` + + // The ID of the blue/green deployment for which you want to skip the instance + // termination wait time. + DeploymentId *string `locationName:"deploymentId" type:"string"` +} + +// String returns the string representation +func (s SkipWaitTimeForInstanceTerminationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SkipWaitTimeForInstanceTerminationInput) GoString() string { + return s.String() +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *SkipWaitTimeForInstanceTerminationInput) SetDeploymentId(v string) *SkipWaitTimeForInstanceTerminationInput { + s.DeploymentId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/SkipWaitTimeForInstanceTerminationOutput +type SkipWaitTimeForInstanceTerminationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s SkipWaitTimeForInstanceTerminationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SkipWaitTimeForInstanceTerminationOutput) GoString() string { + return s.String() +} + // Represents the input of a stop deployment operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/StopDeploymentInput type StopDeploymentInput struct { _ struct{} `type:"structure"` @@ -5850,15 +7951,28 @@ func (s *StopDeploymentInput) Validate() error { return nil } +// SetAutoRollbackEnabled sets the AutoRollbackEnabled field's value. +func (s *StopDeploymentInput) SetAutoRollbackEnabled(v bool) *StopDeploymentInput { + s.AutoRollbackEnabled = &v + return s +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *StopDeploymentInput) SetDeploymentId(v string) *StopDeploymentInput { + s.DeploymentId = &v + return s +} + // Represents the output of a stop deployment operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/StopDeploymentOutput type StopDeploymentOutput struct { _ struct{} `type:"structure"` // The status of the stop deployment operation: // - // Pending: The stop operation is pending. + // * Pending: The stop operation is pending. // - // Succeeded: The stop operation was successful. + // * Succeeded: The stop operation was successful. Status *string `locationName:"status" type:"string" enum:"StopStatus"` // An accompanying status message. @@ -5875,7 +7989,20 @@ func (s StopDeploymentOutput) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *StopDeploymentOutput) SetStatus(v string) *StopDeploymentOutput { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *StopDeploymentOutput) SetStatusMessage(v string) *StopDeploymentOutput { + s.StatusMessage = &v + return s +} + // Information about a tag. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/Tag type Tag struct { _ struct{} `type:"structure"` @@ -5896,7 +8023,20 @@ func (s Tag) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Information about an on-premises instance tag filter. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/TagFilter type TagFilter struct { _ struct{} `type:"structure"` @@ -5905,11 +8045,11 @@ type TagFilter struct { // The on-premises instance tag filter type: // - // KEY_ONLY: Key only. + // * KEY_ONLY: Key only. // - // VALUE_ONLY: Value only. + // * VALUE_ONLY: Value only. // - // KEY_AND_VALUE: Key and value. + // * KEY_AND_VALUE: Key and value. Type *string `type:"string" enum:"TagFilterType"` // The on-premises instance tag filter value. @@ -5926,18 +8066,74 @@ func (s TagFilter) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *TagFilter) SetKey(v string) *TagFilter { + s.Key = &v + return s +} + +// SetType sets the Type field's value. +func (s *TagFilter) SetType(v string) *TagFilter { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *TagFilter) SetValue(v string) *TagFilter { + s.Value = &v + return s +} + +// Information about the instances to be used in the replacement environment +// in a blue/green deployment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/TargetInstances +type TargetInstances struct { + _ struct{} `type:"structure"` + + // The names of one or more Auto Scaling groups to identify a replacement environment + // for a blue/green deployment. + AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"` + + // The tag filter key, type, and value used to identify Amazon EC2 instances + // in a replacement environment for a blue/green deployment. + TagFilters []*EC2TagFilter `locationName:"tagFilters" type:"list"` +} + +// String returns the string representation +func (s TargetInstances) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TargetInstances) GoString() string { + return s.String() +} + +// SetAutoScalingGroups sets the AutoScalingGroups field's value. +func (s *TargetInstances) SetAutoScalingGroups(v []*string) *TargetInstances { + s.AutoScalingGroups = v + return s +} + +// SetTagFilters sets the TagFilters field's value. +func (s *TargetInstances) SetTagFilters(v []*EC2TagFilter) *TargetInstances { + s.TagFilters = v + return s +} + // Information about a time range. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/TimeRange type TimeRange struct { _ struct{} `type:"structure"` // The end time of the time range. // - // Specify null to leave the end time open-ended. + // Specify null to leave the end time open-ended. End *time.Time `locationName:"end" type:"timestamp" timestampFormat:"unix"` // The start time of the time range. // - // Specify null to leave the start time open-ended. + // Specify null to leave the start time open-ended. Start *time.Time `locationName:"start" type:"timestamp" timestampFormat:"unix"` } @@ -5951,7 +8147,20 @@ func (s TimeRange) GoString() string { return s.String() } +// SetEnd sets the End field's value. +func (s *TimeRange) SetEnd(v time.Time) *TimeRange { + s.End = &v + return s +} + +// SetStart sets the Start field's value. +func (s *TimeRange) SetStart(v time.Time) *TimeRange { + s.Start = &v + return s +} + // Information about notification triggers for the deployment group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/TriggerConfig type TriggerConfig struct { _ struct{} `type:"structure"` @@ -5976,7 +8185,26 @@ func (s TriggerConfig) GoString() string { return s.String() } +// SetTriggerEvents sets the TriggerEvents field's value. +func (s *TriggerConfig) SetTriggerEvents(v []*string) *TriggerConfig { + s.TriggerEvents = v + return s +} + +// SetTriggerName sets the TriggerName field's value. +func (s *TriggerConfig) SetTriggerName(v string) *TriggerConfig { + s.TriggerName = &v + return s +} + +// SetTriggerTargetArn sets the TriggerTargetArn field's value. +func (s *TriggerConfig) SetTriggerTargetArn(v string) *TriggerConfig { + s.TriggerTargetArn = &v + return s +} + // Represents the input of an update application operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateApplicationInput type UpdateApplicationInput struct { _ struct{} `type:"structure"` @@ -6013,6 +8241,19 @@ func (s *UpdateApplicationInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *UpdateApplicationInput) SetApplicationName(v string) *UpdateApplicationInput { + s.ApplicationName = &v + return s +} + +// SetNewApplicationName sets the NewApplicationName field's value. +func (s *UpdateApplicationInput) SetNewApplicationName(v string) *UpdateApplicationInput { + s.NewApplicationName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateApplicationOutput type UpdateApplicationOutput struct { _ struct{} `type:"structure"` } @@ -6028,6 +8269,7 @@ func (s UpdateApplicationOutput) GoString() string { } // Represents the input of an update deployment group operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateDeploymentGroupInput type UpdateDeploymentGroupInput struct { _ struct{} `type:"structure"` @@ -6050,6 +8292,9 @@ type UpdateDeploymentGroupInput struct { // group names. AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"` + // Information about blue/green deployment options for a deployment group. + BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration `locationName:"blueGreenDeploymentConfiguration" type:"structure"` + // The current name of the deployment group. // // CurrentDeploymentGroupName is a required field @@ -6059,11 +8304,18 @@ type UpdateDeploymentGroupInput struct { // it. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` + // Information about the type of deployment, either standard or blue/green, + // you want to run and whether to route deployment traffic behind a load balancer. + DeploymentStyle *DeploymentStyle `locationName:"deploymentStyle" type:"structure"` + // The replacement set of Amazon EC2 tags on which to filter, if you want to // change them. To keep the existing tags, enter their names. To remove tags, // do not enter any tag names. Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"` + // Information about the load balancer used in a blue/green deployment. + LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"` + // The new name of the deployment group, if you want to change it. NewDeploymentGroupName *string `locationName:"newDeploymentGroupName" min:"1" type:"string"` @@ -6119,7 +8371,92 @@ func (s *UpdateDeploymentGroupInput) Validate() error { return nil } +// SetAlarmConfiguration sets the AlarmConfiguration field's value. +func (s *UpdateDeploymentGroupInput) SetAlarmConfiguration(v *AlarmConfiguration) *UpdateDeploymentGroupInput { + s.AlarmConfiguration = v + return s +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *UpdateDeploymentGroupInput) SetApplicationName(v string) *UpdateDeploymentGroupInput { + s.ApplicationName = &v + return s +} + +// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. +func (s *UpdateDeploymentGroupInput) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *UpdateDeploymentGroupInput { + s.AutoRollbackConfiguration = v + return s +} + +// SetAutoScalingGroups sets the AutoScalingGroups field's value. +func (s *UpdateDeploymentGroupInput) SetAutoScalingGroups(v []*string) *UpdateDeploymentGroupInput { + s.AutoScalingGroups = v + return s +} + +// SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value. +func (s *UpdateDeploymentGroupInput) SetBlueGreenDeploymentConfiguration(v *BlueGreenDeploymentConfiguration) *UpdateDeploymentGroupInput { + s.BlueGreenDeploymentConfiguration = v + return s +} + +// SetCurrentDeploymentGroupName sets the CurrentDeploymentGroupName field's value. +func (s *UpdateDeploymentGroupInput) SetCurrentDeploymentGroupName(v string) *UpdateDeploymentGroupInput { + s.CurrentDeploymentGroupName = &v + return s +} + +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *UpdateDeploymentGroupInput) SetDeploymentConfigName(v string) *UpdateDeploymentGroupInput { + s.DeploymentConfigName = &v + return s +} + +// SetDeploymentStyle sets the DeploymentStyle field's value. +func (s *UpdateDeploymentGroupInput) SetDeploymentStyle(v *DeploymentStyle) *UpdateDeploymentGroupInput { + s.DeploymentStyle = v + return s +} + +// SetEc2TagFilters sets the Ec2TagFilters field's value. +func (s *UpdateDeploymentGroupInput) SetEc2TagFilters(v []*EC2TagFilter) *UpdateDeploymentGroupInput { + s.Ec2TagFilters = v + return s +} + +// SetLoadBalancerInfo sets the LoadBalancerInfo field's value. +func (s *UpdateDeploymentGroupInput) SetLoadBalancerInfo(v *LoadBalancerInfo) *UpdateDeploymentGroupInput { + s.LoadBalancerInfo = v + return s +} + +// SetNewDeploymentGroupName sets the NewDeploymentGroupName field's value. +func (s *UpdateDeploymentGroupInput) SetNewDeploymentGroupName(v string) *UpdateDeploymentGroupInput { + s.NewDeploymentGroupName = &v + return s +} + +// SetOnPremisesInstanceTagFilters sets the OnPremisesInstanceTagFilters field's value. +func (s *UpdateDeploymentGroupInput) SetOnPremisesInstanceTagFilters(v []*TagFilter) *UpdateDeploymentGroupInput { + s.OnPremisesInstanceTagFilters = v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *UpdateDeploymentGroupInput) SetServiceRoleArn(v string) *UpdateDeploymentGroupInput { + s.ServiceRoleArn = &v + return s +} + +// SetTriggerConfigurations sets the TriggerConfigurations field's value. +func (s *UpdateDeploymentGroupInput) SetTriggerConfigurations(v []*TriggerConfig) *UpdateDeploymentGroupInput { + s.TriggerConfigurations = v + return s +} + // Represents the output of an update deployment group operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateDeploymentGroupOutput type UpdateDeploymentGroupOutput struct { _ struct{} `type:"structure"` @@ -6141,6 +8478,12 @@ func (s UpdateDeploymentGroupOutput) GoString() string { return s.String() } +// SetHooksNotCleanedUp sets the HooksNotCleanedUp field's value. +func (s *UpdateDeploymentGroupOutput) SetHooksNotCleanedUp(v []*AutoScalingGroup) *UpdateDeploymentGroupOutput { + s.HooksNotCleanedUp = v + return s +} + const ( // ApplicationRevisionSortByRegisterTime is a ApplicationRevisionSortBy enum value ApplicationRevisionSortByRegisterTime = "registerTime" @@ -6185,6 +8528,22 @@ const ( DeploymentCreatorCodeDeployRollback = "codeDeployRollback" ) +const ( + // DeploymentOptionWithTrafficControl is a DeploymentOption enum value + DeploymentOptionWithTrafficControl = "WITH_TRAFFIC_CONTROL" + + // DeploymentOptionWithoutTrafficControl is a DeploymentOption enum value + DeploymentOptionWithoutTrafficControl = "WITHOUT_TRAFFIC_CONTROL" +) + +const ( + // DeploymentReadyActionContinueDeployment is a DeploymentReadyAction enum value + DeploymentReadyActionContinueDeployment = "CONTINUE_DEPLOYMENT" + + // DeploymentReadyActionStopDeployment is a DeploymentReadyAction enum value + DeploymentReadyActionStopDeployment = "STOP_DEPLOYMENT" +) + const ( // DeploymentStatusCreated is a DeploymentStatus enum value DeploymentStatusCreated = "Created" @@ -6203,6 +8562,17 @@ const ( // DeploymentStatusStopped is a DeploymentStatus enum value DeploymentStatusStopped = "Stopped" + + // DeploymentStatusReady is a DeploymentStatus enum value + DeploymentStatusReady = "Ready" +) + +const ( + // DeploymentTypeInPlace is a DeploymentType enum value + DeploymentTypeInPlace = "IN_PLACE" + + // DeploymentTypeBlueGreen is a DeploymentType enum value + DeploymentTypeBlueGreen = "BLUE_GREEN" ) const ( @@ -6272,6 +8642,22 @@ const ( ErrorCodeManualStop = "MANUAL_STOP" ) +const ( + // GreenFleetProvisioningActionDiscoverExisting is a GreenFleetProvisioningAction enum value + GreenFleetProvisioningActionDiscoverExisting = "DISCOVER_EXISTING" + + // GreenFleetProvisioningActionCopyAutoScalingGroup is a GreenFleetProvisioningAction enum value + GreenFleetProvisioningActionCopyAutoScalingGroup = "COPY_AUTO_SCALING_GROUP" +) + +const ( + // InstanceActionTerminate is a InstanceAction enum value + InstanceActionTerminate = "TERMINATE" + + // InstanceActionKeepAlive is a InstanceAction enum value + InstanceActionKeepAlive = "KEEP_ALIVE" +) + const ( // InstanceStatusPending is a InstanceStatus enum value InstanceStatusPending = "Pending" @@ -6290,6 +8676,17 @@ const ( // InstanceStatusUnknown is a InstanceStatus enum value InstanceStatusUnknown = "Unknown" + + // InstanceStatusReady is a InstanceStatus enum value + InstanceStatusReady = "Ready" +) + +const ( + // InstanceTypeBlue is a InstanceType enum value + InstanceTypeBlue = "Blue" + + // InstanceTypeGreen is a InstanceType enum value + InstanceTypeGreen = "Green" ) const ( @@ -6410,6 +8807,9 @@ const ( // TriggerEventTypeDeploymentRollback is a TriggerEventType enum value TriggerEventTypeDeploymentRollback = "DeploymentRollback" + // TriggerEventTypeDeploymentReady is a TriggerEventType enum value + TriggerEventTypeDeploymentReady = "DeploymentReady" + // TriggerEventTypeInstanceStart is a TriggerEventType enum value TriggerEventTypeInstanceStart = "InstanceStart" @@ -6418,4 +8818,7 @@ const ( // TriggerEventTypeInstanceFailure is a TriggerEventType enum value TriggerEventTypeInstanceFailure = "InstanceFailure" + + // TriggerEventTypeInstanceReady is a TriggerEventType enum value + TriggerEventTypeInstanceReady = "InstanceReady" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/codedeployiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/codedeployiface/interface.go index 03ee59830..32cf928d1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/codedeployiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/codedeployiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCodeDeployClient{} // @@ -87,6 +87,10 @@ type CodeDeployAPI interface { BatchGetOnPremisesInstances(*codedeploy.BatchGetOnPremisesInstancesInput) (*codedeploy.BatchGetOnPremisesInstancesOutput, error) + ContinueDeploymentRequest(*codedeploy.ContinueDeploymentInput) (*request.Request, *codedeploy.ContinueDeploymentOutput) + + ContinueDeployment(*codedeploy.ContinueDeploymentInput) (*codedeploy.ContinueDeploymentOutput, error) + CreateApplicationRequest(*codedeploy.CreateApplicationInput) (*request.Request, *codedeploy.CreateApplicationOutput) CreateApplication(*codedeploy.CreateApplicationInput) (*codedeploy.CreateApplicationOutput, error) @@ -199,6 +203,10 @@ type CodeDeployAPI interface { RemoveTagsFromOnPremisesInstances(*codedeploy.RemoveTagsFromOnPremisesInstancesInput) (*codedeploy.RemoveTagsFromOnPremisesInstancesOutput, error) + SkipWaitTimeForInstanceTerminationRequest(*codedeploy.SkipWaitTimeForInstanceTerminationInput) (*request.Request, *codedeploy.SkipWaitTimeForInstanceTerminationOutput) + + SkipWaitTimeForInstanceTermination(*codedeploy.SkipWaitTimeForInstanceTerminationInput) (*codedeploy.SkipWaitTimeForInstanceTerminationOutput, error) + StopDeploymentRequest(*codedeploy.StopDeploymentInput) (*request.Request, *codedeploy.StopDeploymentOutput) StopDeployment(*codedeploy.StopDeploymentInput) (*codedeploy.StopDeploymentOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/errors.go b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/errors.go new file mode 100644 index 000000000..6eebf7315 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/errors.go @@ -0,0 +1,495 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package codedeploy + +const ( + + // ErrCodeAlarmsLimitExceededException for service response error code + // "AlarmsLimitExceededException". + // + // The maximum number of alarms for a deployment group (10) was exceeded. + ErrCodeAlarmsLimitExceededException = "AlarmsLimitExceededException" + + // ErrCodeApplicationAlreadyExistsException for service response error code + // "ApplicationAlreadyExistsException". + // + // An application with the specified name already exists with the applicable + // IAM user or AWS account. + ErrCodeApplicationAlreadyExistsException = "ApplicationAlreadyExistsException" + + // ErrCodeApplicationDoesNotExistException for service response error code + // "ApplicationDoesNotExistException". + // + // The application does not exist with the applicable IAM user or AWS account. + ErrCodeApplicationDoesNotExistException = "ApplicationDoesNotExistException" + + // ErrCodeApplicationLimitExceededException for service response error code + // "ApplicationLimitExceededException". + // + // More applications were attempted to be created than are allowed. + ErrCodeApplicationLimitExceededException = "ApplicationLimitExceededException" + + // ErrCodeApplicationNameRequiredException for service response error code + // "ApplicationNameRequiredException". + // + // The minimum number of required application names was not specified. + ErrCodeApplicationNameRequiredException = "ApplicationNameRequiredException" + + // ErrCodeBatchLimitExceededException for service response error code + // "BatchLimitExceededException". + // + // The maximum number of names or IDs allowed for this request (100) was exceeded. + ErrCodeBatchLimitExceededException = "BatchLimitExceededException" + + // ErrCodeBucketNameFilterRequiredException for service response error code + // "BucketNameFilterRequiredException". + // + // A bucket name is required, but was not provided. + ErrCodeBucketNameFilterRequiredException = "BucketNameFilterRequiredException" + + // ErrCodeDeploymentAlreadyCompletedException for service response error code + // "DeploymentAlreadyCompletedException". + // + // The deployment is already complete. + ErrCodeDeploymentAlreadyCompletedException = "DeploymentAlreadyCompletedException" + + // ErrCodeDeploymentConfigAlreadyExistsException for service response error code + // "DeploymentConfigAlreadyExistsException". + // + // A deployment configuration with the specified name already exists with the + // applicable IAM user or AWS account. + ErrCodeDeploymentConfigAlreadyExistsException = "DeploymentConfigAlreadyExistsException" + + // ErrCodeDeploymentConfigDoesNotExistException for service response error code + // "DeploymentConfigDoesNotExistException". + // + // The deployment configuration does not exist with the applicable IAM user + // or AWS account. + ErrCodeDeploymentConfigDoesNotExistException = "DeploymentConfigDoesNotExistException" + + // ErrCodeDeploymentConfigInUseException for service response error code + // "DeploymentConfigInUseException". + // + // The deployment configuration is still in use. + ErrCodeDeploymentConfigInUseException = "DeploymentConfigInUseException" + + // ErrCodeDeploymentConfigLimitExceededException for service response error code + // "DeploymentConfigLimitExceededException". + // + // The deployment configurations limit was exceeded. + ErrCodeDeploymentConfigLimitExceededException = "DeploymentConfigLimitExceededException" + + // ErrCodeDeploymentConfigNameRequiredException for service response error code + // "DeploymentConfigNameRequiredException". + // + // The deployment configuration name was not specified. + ErrCodeDeploymentConfigNameRequiredException = "DeploymentConfigNameRequiredException" + + // ErrCodeDeploymentDoesNotExistException for service response error code + // "DeploymentDoesNotExistException". + // + // The deployment does not exist with the applicable IAM user or AWS account. + ErrCodeDeploymentDoesNotExistException = "DeploymentDoesNotExistException" + + // ErrCodeDeploymentGroupAlreadyExistsException for service response error code + // "DeploymentGroupAlreadyExistsException". + // + // A deployment group with the specified name already exists with the applicable + // IAM user or AWS account. + ErrCodeDeploymentGroupAlreadyExistsException = "DeploymentGroupAlreadyExistsException" + + // ErrCodeDeploymentGroupDoesNotExistException for service response error code + // "DeploymentGroupDoesNotExistException". + // + // The named deployment group does not exist with the applicable IAM user or + // AWS account. + ErrCodeDeploymentGroupDoesNotExistException = "DeploymentGroupDoesNotExistException" + + // ErrCodeDeploymentGroupLimitExceededException for service response error code + // "DeploymentGroupLimitExceededException". + // + // The deployment groups limit was exceeded. + ErrCodeDeploymentGroupLimitExceededException = "DeploymentGroupLimitExceededException" + + // ErrCodeDeploymentGroupNameRequiredException for service response error code + // "DeploymentGroupNameRequiredException". + // + // The deployment group name was not specified. + ErrCodeDeploymentGroupNameRequiredException = "DeploymentGroupNameRequiredException" + + // ErrCodeDeploymentIdRequiredException for service response error code + // "DeploymentIdRequiredException". + // + // At least one deployment ID must be specified. + ErrCodeDeploymentIdRequiredException = "DeploymentIdRequiredException" + + // ErrCodeDeploymentIsNotInReadyStateException for service response error code + // "DeploymentIsNotInReadyStateException". + // + // The deployment does not have a status of Ready and can't continue yet. + ErrCodeDeploymentIsNotInReadyStateException = "DeploymentIsNotInReadyStateException" + + // ErrCodeDeploymentLimitExceededException for service response error code + // "DeploymentLimitExceededException". + // + // The number of allowed deployments was exceeded. + ErrCodeDeploymentLimitExceededException = "DeploymentLimitExceededException" + + // ErrCodeDeploymentNotStartedException for service response error code + // "DeploymentNotStartedException". + // + // The specified deployment has not started. + ErrCodeDeploymentNotStartedException = "DeploymentNotStartedException" + + // ErrCodeDescriptionTooLongException for service response error code + // "DescriptionTooLongException". + // + // The description is too long. + ErrCodeDescriptionTooLongException = "DescriptionTooLongException" + + // ErrCodeIamArnRequiredException for service response error code + // "IamArnRequiredException". + // + // No IAM ARN was included in the request. You must use an IAM session ARN or + // IAM user ARN in the request. + ErrCodeIamArnRequiredException = "IamArnRequiredException" + + // ErrCodeIamSessionArnAlreadyRegisteredException for service response error code + // "IamSessionArnAlreadyRegisteredException". + // + // The request included an IAM session ARN that has already been used to register + // a different instance. + ErrCodeIamSessionArnAlreadyRegisteredException = "IamSessionArnAlreadyRegisteredException" + + // ErrCodeIamUserArnAlreadyRegisteredException for service response error code + // "IamUserArnAlreadyRegisteredException". + // + // The specified IAM user ARN is already registered with an on-premises instance. + ErrCodeIamUserArnAlreadyRegisteredException = "IamUserArnAlreadyRegisteredException" + + // ErrCodeIamUserArnRequiredException for service response error code + // "IamUserArnRequiredException". + // + // An IAM user ARN was not specified. + ErrCodeIamUserArnRequiredException = "IamUserArnRequiredException" + + // ErrCodeInstanceDoesNotExistException for service response error code + // "InstanceDoesNotExistException". + // + // The specified instance does not exist in the deployment group. + ErrCodeInstanceDoesNotExistException = "InstanceDoesNotExistException" + + // ErrCodeInstanceIdRequiredException for service response error code + // "InstanceIdRequiredException". + // + // The instance ID was not specified. + ErrCodeInstanceIdRequiredException = "InstanceIdRequiredException" + + // ErrCodeInstanceLimitExceededException for service response error code + // "InstanceLimitExceededException". + // + // The maximum number of allowed on-premises instances in a single call was + // exceeded. + ErrCodeInstanceLimitExceededException = "InstanceLimitExceededException" + + // ErrCodeInstanceNameAlreadyRegisteredException for service response error code + // "InstanceNameAlreadyRegisteredException". + // + // The specified on-premises instance name is already registered. + ErrCodeInstanceNameAlreadyRegisteredException = "InstanceNameAlreadyRegisteredException" + + // ErrCodeInstanceNameRequiredException for service response error code + // "InstanceNameRequiredException". + // + // An on-premises instance name was not specified. + ErrCodeInstanceNameRequiredException = "InstanceNameRequiredException" + + // ErrCodeInstanceNotRegisteredException for service response error code + // "InstanceNotRegisteredException". + // + // The specified on-premises instance is not registered. + ErrCodeInstanceNotRegisteredException = "InstanceNotRegisteredException" + + // ErrCodeInvalidAlarmConfigException for service response error code + // "InvalidAlarmConfigException". + // + // The format of the alarm configuration is invalid. Possible causes include: + // + // * The alarm list is null. + // + // * The alarm object is null. + // + // * The alarm name is empty or null or exceeds the 255 character limit. + // + // * Two alarms with the same name have been specified. + // + // * The alarm configuration is enabled but the alarm list is empty. + ErrCodeInvalidAlarmConfigException = "InvalidAlarmConfigException" + + // ErrCodeInvalidApplicationNameException for service response error code + // "InvalidApplicationNameException". + // + // The application name was specified in an invalid format. + ErrCodeInvalidApplicationNameException = "InvalidApplicationNameException" + + // ErrCodeInvalidAutoRollbackConfigException for service response error code + // "InvalidAutoRollbackConfigException". + // + // The automatic rollback configuration was specified in an invalid format. + // For example, automatic rollback is enabled but an invalid triggering event + // type or no event types were listed. + ErrCodeInvalidAutoRollbackConfigException = "InvalidAutoRollbackConfigException" + + // ErrCodeInvalidAutoScalingGroupException for service response error code + // "InvalidAutoScalingGroupException". + // + // The Auto Scaling group was specified in an invalid format or does not exist. + ErrCodeInvalidAutoScalingGroupException = "InvalidAutoScalingGroupException" + + // ErrCodeInvalidBlueGreenDeploymentConfigurationException for service response error code + // "InvalidBlueGreenDeploymentConfigurationException". + // + // The configuration for the blue/green deployment group was provided in an + // invalid format. For information about deployment configuration format, see + // CreateDeploymentConfig. + ErrCodeInvalidBlueGreenDeploymentConfigurationException = "InvalidBlueGreenDeploymentConfigurationException" + + // ErrCodeInvalidBucketNameFilterException for service response error code + // "InvalidBucketNameFilterException". + // + // The bucket name either doesn't exist or was specified in an invalid format. + ErrCodeInvalidBucketNameFilterException = "InvalidBucketNameFilterException" + + // ErrCodeInvalidDeployedStateFilterException for service response error code + // "InvalidDeployedStateFilterException". + // + // The deployed state filter was specified in an invalid format. + ErrCodeInvalidDeployedStateFilterException = "InvalidDeployedStateFilterException" + + // ErrCodeInvalidDeploymentConfigNameException for service response error code + // "InvalidDeploymentConfigNameException". + // + // The deployment configuration name was specified in an invalid format. + ErrCodeInvalidDeploymentConfigNameException = "InvalidDeploymentConfigNameException" + + // ErrCodeInvalidDeploymentGroupNameException for service response error code + // "InvalidDeploymentGroupNameException". + // + // The deployment group name was specified in an invalid format. + ErrCodeInvalidDeploymentGroupNameException = "InvalidDeploymentGroupNameException" + + // ErrCodeInvalidDeploymentIdException for service response error code + // "InvalidDeploymentIdException". + // + // At least one of the deployment IDs was specified in an invalid format. + ErrCodeInvalidDeploymentIdException = "InvalidDeploymentIdException" + + // ErrCodeInvalidDeploymentStatusException for service response error code + // "InvalidDeploymentStatusException". + // + // The specified deployment status doesn't exist or cannot be determined. + ErrCodeInvalidDeploymentStatusException = "InvalidDeploymentStatusException" + + // ErrCodeInvalidDeploymentStyleException for service response error code + // "InvalidDeploymentStyleException". + // + // An invalid deployment style was specified. Valid deployment types include + // "IN_PLACE" and "BLUE_GREEN". Valid deployment options for blue/green deployments + // include "WITH_TRAFFIC_CONTROL" and "WITHOUT_TRAFFIC_CONTROL". + ErrCodeInvalidDeploymentStyleException = "InvalidDeploymentStyleException" + + // ErrCodeInvalidEC2TagException for service response error code + // "InvalidEC2TagException". + // + // The tag was specified in an invalid format. + ErrCodeInvalidEC2TagException = "InvalidEC2TagException" + + // ErrCodeInvalidIamSessionArnException for service response error code + // "InvalidIamSessionArnException". + // + // The IAM session ARN was specified in an invalid format. + ErrCodeInvalidIamSessionArnException = "InvalidIamSessionArnException" + + // ErrCodeInvalidIamUserArnException for service response error code + // "InvalidIamUserArnException". + // + // The IAM user ARN was specified in an invalid format. + ErrCodeInvalidIamUserArnException = "InvalidIamUserArnException" + + // ErrCodeInvalidInstanceNameException for service response error code + // "InvalidInstanceNameException". + // + // The specified on-premises instance name was specified in an invalid format. + ErrCodeInvalidInstanceNameException = "InvalidInstanceNameException" + + // ErrCodeInvalidInstanceStatusException for service response error code + // "InvalidInstanceStatusException". + // + // The specified instance status does not exist. + ErrCodeInvalidInstanceStatusException = "InvalidInstanceStatusException" + + // ErrCodeInvalidInstanceTypeException for service response error code + // "InvalidInstanceTypeException". + // + // An invalid instance type was specified for instances in a blue/green deployment. + // Valid values include "Blue" for an original environment and "Green" for a + // replacement environment. + ErrCodeInvalidInstanceTypeException = "InvalidInstanceTypeException" + + // ErrCodeInvalidKeyPrefixFilterException for service response error code + // "InvalidKeyPrefixFilterException". + // + // The specified key prefix filter was specified in an invalid format. + ErrCodeInvalidKeyPrefixFilterException = "InvalidKeyPrefixFilterException" + + // ErrCodeInvalidLoadBalancerInfoException for service response error code + // "InvalidLoadBalancerInfoException". + // + // An invalid load balancer name, or no load balancer name, was specified. + ErrCodeInvalidLoadBalancerInfoException = "InvalidLoadBalancerInfoException" + + // ErrCodeInvalidMinimumHealthyHostValueException for service response error code + // "InvalidMinimumHealthyHostValueException". + // + // The minimum healthy instance value was specified in an invalid format. + ErrCodeInvalidMinimumHealthyHostValueException = "InvalidMinimumHealthyHostValueException" + + // ErrCodeInvalidNextTokenException for service response error code + // "InvalidNextTokenException". + // + // The next token was specified in an invalid format. + ErrCodeInvalidNextTokenException = "InvalidNextTokenException" + + // ErrCodeInvalidOperationException for service response error code + // "InvalidOperationException". + // + // An invalid operation was detected. + ErrCodeInvalidOperationException = "InvalidOperationException" + + // ErrCodeInvalidRegistrationStatusException for service response error code + // "InvalidRegistrationStatusException". + // + // The registration status was specified in an invalid format. + ErrCodeInvalidRegistrationStatusException = "InvalidRegistrationStatusException" + + // ErrCodeInvalidRevisionException for service response error code + // "InvalidRevisionException". + // + // The revision was specified in an invalid format. + ErrCodeInvalidRevisionException = "InvalidRevisionException" + + // ErrCodeInvalidRoleException for service response error code + // "InvalidRoleException". + // + // The service role ARN was specified in an invalid format. Or, if an Auto Scaling + // group was specified, the specified service role does not grant the appropriate + // permissions to Auto Scaling. + ErrCodeInvalidRoleException = "InvalidRoleException" + + // ErrCodeInvalidSortByException for service response error code + // "InvalidSortByException". + // + // The column name to sort by is either not present or was specified in an invalid + // format. + ErrCodeInvalidSortByException = "InvalidSortByException" + + // ErrCodeInvalidSortOrderException for service response error code + // "InvalidSortOrderException". + // + // The sort order was specified in an invalid format. + ErrCodeInvalidSortOrderException = "InvalidSortOrderException" + + // ErrCodeInvalidTagException for service response error code + // "InvalidTagException". + // + // The specified tag was specified in an invalid format. + ErrCodeInvalidTagException = "InvalidTagException" + + // ErrCodeInvalidTagFilterException for service response error code + // "InvalidTagFilterException". + // + // The specified tag filter was specified in an invalid format. + ErrCodeInvalidTagFilterException = "InvalidTagFilterException" + + // ErrCodeInvalidTargetInstancesException for service response error code + // "InvalidTargetInstancesException". + // + // The target instance configuration is invalid. Possible causes include: + // + // * Configuration data for target instances was entered for an in-place + // deployment. + // + // * The limit of 10 tags for a tag type was exceeded. + // + // * The combined length of the tag names exceeded the limit. + // + // * A specified tag is not currently applied to any instances. + ErrCodeInvalidTargetInstancesException = "InvalidTargetInstancesException" + + // ErrCodeInvalidTimeRangeException for service response error code + // "InvalidTimeRangeException". + // + // The specified time range was specified in an invalid format. + ErrCodeInvalidTimeRangeException = "InvalidTimeRangeException" + + // ErrCodeInvalidTriggerConfigException for service response error code + // "InvalidTriggerConfigException". + // + // The trigger was specified in an invalid format. + ErrCodeInvalidTriggerConfigException = "InvalidTriggerConfigException" + + // ErrCodeLifecycleHookLimitExceededException for service response error code + // "LifecycleHookLimitExceededException". + // + // The limit for lifecycle hooks was exceeded. + ErrCodeLifecycleHookLimitExceededException = "LifecycleHookLimitExceededException" + + // ErrCodeMultipleIamArnsProvidedException for service response error code + // "MultipleIamArnsProvidedException". + // + // Both an IAM user ARN and an IAM session ARN were included in the request. + // Use only one ARN type. + ErrCodeMultipleIamArnsProvidedException = "MultipleIamArnsProvidedException" + + // ErrCodeRevisionDoesNotExistException for service response error code + // "RevisionDoesNotExistException". + // + // The named revision does not exist with the applicable IAM user or AWS account. + ErrCodeRevisionDoesNotExistException = "RevisionDoesNotExistException" + + // ErrCodeRevisionRequiredException for service response error code + // "RevisionRequiredException". + // + // The revision ID was not specified. + ErrCodeRevisionRequiredException = "RevisionRequiredException" + + // ErrCodeRoleRequiredException for service response error code + // "RoleRequiredException". + // + // The role ID was not specified. + ErrCodeRoleRequiredException = "RoleRequiredException" + + // ErrCodeTagLimitExceededException for service response error code + // "TagLimitExceededException". + // + // The maximum allowed number of tags was exceeded. + ErrCodeTagLimitExceededException = "TagLimitExceededException" + + // ErrCodeTagRequiredException for service response error code + // "TagRequiredException". + // + // A tag was not specified. + ErrCodeTagRequiredException = "TagRequiredException" + + // ErrCodeTriggerTargetsLimitExceededException for service response error code + // "TriggerTargetsLimitExceededException". + // + // The maximum allowed number of triggers was exceeded. + ErrCodeTriggerTargetsLimitExceededException = "TriggerTargetsLimitExceededException" + + // ErrCodeUnsupportedActionForDeploymentTypeException for service response error code + // "UnsupportedActionForDeploymentTypeException". + // + // A call was submitted that is not supported for the specified deployment type. + ErrCodeUnsupportedActionForDeploymentTypeException = "UnsupportedActionForDeploymentTypeException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/examples_test.go index c7093080d..914e32f1a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCodeDeploy_AddTagsToOnPremisesInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -51,11 +47,7 @@ func ExampleCodeDeploy_AddTagsToOnPremisesInstances() { } func ExampleCodeDeploy_BatchGetApplicationRevisions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -93,11 +85,7 @@ func ExampleCodeDeploy_BatchGetApplicationRevisions() { } func ExampleCodeDeploy_BatchGetApplications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -121,11 +109,7 @@ func ExampleCodeDeploy_BatchGetApplications() { } func ExampleCodeDeploy_BatchGetDeploymentGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -150,11 +134,7 @@ func ExampleCodeDeploy_BatchGetDeploymentGroups() { } func ExampleCodeDeploy_BatchGetDeploymentInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -179,11 +159,7 @@ func ExampleCodeDeploy_BatchGetDeploymentInstances() { } func ExampleCodeDeploy_BatchGetDeployments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -207,11 +183,7 @@ func ExampleCodeDeploy_BatchGetDeployments() { } func ExampleCodeDeploy_BatchGetOnPremisesInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -234,13 +206,30 @@ func ExampleCodeDeploy_BatchGetOnPremisesInstances() { fmt.Println(resp) } -func ExampleCodeDeploy_CreateApplication() { - sess, err := session.NewSession() +func ExampleCodeDeploy_ContinueDeployment() { + sess := session.Must(session.NewSession()) + + svc := codedeploy.New(sess) + + params := &codedeploy.ContinueDeploymentInput{ + DeploymentId: aws.String("DeploymentId"), + } + resp, err := svc.ContinueDeployment(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCodeDeploy_CreateApplication() { + sess := session.Must(session.NewSession()) + svc := codedeploy.New(sess) params := &codedeploy.CreateApplicationInput{ @@ -260,11 +249,7 @@ func ExampleCodeDeploy_CreateApplication() { } func ExampleCodeDeploy_CreateDeployment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -295,6 +280,20 @@ func ExampleCodeDeploy_CreateDeployment() { Version: aws.String("VersionId"), }, }, + TargetInstances: &codedeploy.TargetInstances{ + AutoScalingGroups: []*string{ + aws.String("AutoScalingGroupName"), // Required + // More values... + }, + TagFilters: []*codedeploy.EC2TagFilter{ + { // Required + Key: aws.String("Key"), + Type: aws.String("EC2TagFilterType"), + Value: aws.String("Value"), + }, + // More values... + }, + }, UpdateOutdatedInstancesOnly: aws.Bool(true), } resp, err := svc.CreateDeployment(params) @@ -311,11 +310,7 @@ func ExampleCodeDeploy_CreateDeployment() { } func ExampleCodeDeploy_CreateDeploymentConfig() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -340,11 +335,7 @@ func ExampleCodeDeploy_CreateDeploymentConfig() { } func ExampleCodeDeploy_CreateDeploymentGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -373,7 +364,24 @@ func ExampleCodeDeploy_CreateDeploymentGroup() { aws.String("AutoScalingGroupName"), // Required // More values... }, + BlueGreenDeploymentConfiguration: &codedeploy.BlueGreenDeploymentConfiguration{ + DeploymentReadyOption: &codedeploy.DeploymentReadyOption{ + ActionOnTimeout: aws.String("DeploymentReadyAction"), + WaitTimeInMinutes: aws.Int64(1), + }, + GreenFleetProvisioningOption: &codedeploy.GreenFleetProvisioningOption{ + Action: aws.String("GreenFleetProvisioningAction"), + }, + TerminateBlueInstancesOnDeploymentSuccess: &codedeploy.BlueInstanceTerminationOption{ + Action: aws.String("InstanceAction"), + TerminationWaitTimeInMinutes: aws.Int64(1), + }, + }, DeploymentConfigName: aws.String("DeploymentConfigName"), + DeploymentStyle: &codedeploy.DeploymentStyle{ + DeploymentOption: aws.String("DeploymentOption"), + DeploymentType: aws.String("DeploymentType"), + }, Ec2TagFilters: []*codedeploy.EC2TagFilter{ { // Required Key: aws.String("Key"), @@ -382,6 +390,14 @@ func ExampleCodeDeploy_CreateDeploymentGroup() { }, // More values... }, + LoadBalancerInfo: &codedeploy.LoadBalancerInfo{ + ElbInfoList: []*codedeploy.ELBInfo{ + { // Required + Name: aws.String("ELBName"), + }, + // More values... + }, + }, OnPremisesInstanceTagFilters: []*codedeploy.TagFilter{ { // Required Key: aws.String("Key"), @@ -416,11 +432,7 @@ func ExampleCodeDeploy_CreateDeploymentGroup() { } func ExampleCodeDeploy_DeleteApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -441,11 +453,7 @@ func ExampleCodeDeploy_DeleteApplication() { } func ExampleCodeDeploy_DeleteDeploymentConfig() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -466,11 +474,7 @@ func ExampleCodeDeploy_DeleteDeploymentConfig() { } func ExampleCodeDeploy_DeleteDeploymentGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -492,11 +496,7 @@ func ExampleCodeDeploy_DeleteDeploymentGroup() { } func ExampleCodeDeploy_DeregisterOnPremisesInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -517,11 +517,7 @@ func ExampleCodeDeploy_DeregisterOnPremisesInstance() { } func ExampleCodeDeploy_GetApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -542,11 +538,7 @@ func ExampleCodeDeploy_GetApplication() { } func ExampleCodeDeploy_GetApplicationRevision() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -581,11 +573,7 @@ func ExampleCodeDeploy_GetApplicationRevision() { } func ExampleCodeDeploy_GetDeployment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -606,11 +594,7 @@ func ExampleCodeDeploy_GetDeployment() { } func ExampleCodeDeploy_GetDeploymentConfig() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -631,11 +615,7 @@ func ExampleCodeDeploy_GetDeploymentConfig() { } func ExampleCodeDeploy_GetDeploymentGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -657,11 +637,7 @@ func ExampleCodeDeploy_GetDeploymentGroup() { } func ExampleCodeDeploy_GetDeploymentInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -683,11 +659,7 @@ func ExampleCodeDeploy_GetDeploymentInstance() { } func ExampleCodeDeploy_GetOnPremisesInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -708,11 +680,7 @@ func ExampleCodeDeploy_GetOnPremisesInstance() { } func ExampleCodeDeploy_ListApplicationRevisions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -739,11 +707,7 @@ func ExampleCodeDeploy_ListApplicationRevisions() { } func ExampleCodeDeploy_ListApplications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -764,11 +728,7 @@ func ExampleCodeDeploy_ListApplications() { } func ExampleCodeDeploy_ListDeploymentConfigs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -789,11 +749,7 @@ func ExampleCodeDeploy_ListDeploymentConfigs() { } func ExampleCodeDeploy_ListDeploymentGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -815,11 +771,7 @@ func ExampleCodeDeploy_ListDeploymentGroups() { } func ExampleCodeDeploy_ListDeploymentInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -829,6 +781,10 @@ func ExampleCodeDeploy_ListDeploymentInstances() { aws.String("InstanceStatus"), // Required // More values... }, + InstanceTypeFilter: []*string{ + aws.String("InstanceType"), // Required + // More values... + }, NextToken: aws.String("NextToken"), } resp, err := svc.ListDeploymentInstances(params) @@ -845,11 +801,7 @@ func ExampleCodeDeploy_ListDeploymentInstances() { } func ExampleCodeDeploy_ListDeployments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -880,11 +832,7 @@ func ExampleCodeDeploy_ListDeployments() { } func ExampleCodeDeploy_ListOnPremisesInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -914,11 +862,7 @@ func ExampleCodeDeploy_ListOnPremisesInstances() { } func ExampleCodeDeploy_RegisterApplicationRevision() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -954,17 +898,14 @@ func ExampleCodeDeploy_RegisterApplicationRevision() { } func ExampleCodeDeploy_RegisterOnPremisesInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) params := &codedeploy.RegisterOnPremisesInstanceInput{ - IamUserArn: aws.String("IamUserArn"), // Required - InstanceName: aws.String("InstanceName"), // Required + InstanceName: aws.String("InstanceName"), // Required + IamSessionArn: aws.String("IamSessionArn"), + IamUserArn: aws.String("IamUserArn"), } resp, err := svc.RegisterOnPremisesInstance(params) @@ -980,11 +921,7 @@ func ExampleCodeDeploy_RegisterOnPremisesInstance() { } func ExampleCodeDeploy_RemoveTagsFromOnPremisesInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -1014,13 +951,30 @@ func ExampleCodeDeploy_RemoveTagsFromOnPremisesInstances() { fmt.Println(resp) } -func ExampleCodeDeploy_StopDeployment() { - sess, err := session.NewSession() +func ExampleCodeDeploy_SkipWaitTimeForInstanceTermination() { + sess := session.Must(session.NewSession()) + + svc := codedeploy.New(sess) + + params := &codedeploy.SkipWaitTimeForInstanceTerminationInput{ + DeploymentId: aws.String("DeploymentId"), + } + resp, err := svc.SkipWaitTimeForInstanceTermination(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCodeDeploy_StopDeployment() { + sess := session.Must(session.NewSession()) + svc := codedeploy.New(sess) params := &codedeploy.StopDeploymentInput{ @@ -1041,11 +995,7 @@ func ExampleCodeDeploy_StopDeployment() { } func ExampleCodeDeploy_UpdateApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -1067,11 +1017,7 @@ func ExampleCodeDeploy_UpdateApplication() { } func ExampleCodeDeploy_UpdateDeploymentGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codedeploy.New(sess) @@ -1099,7 +1045,24 @@ func ExampleCodeDeploy_UpdateDeploymentGroup() { aws.String("AutoScalingGroupName"), // Required // More values... }, + BlueGreenDeploymentConfiguration: &codedeploy.BlueGreenDeploymentConfiguration{ + DeploymentReadyOption: &codedeploy.DeploymentReadyOption{ + ActionOnTimeout: aws.String("DeploymentReadyAction"), + WaitTimeInMinutes: aws.Int64(1), + }, + GreenFleetProvisioningOption: &codedeploy.GreenFleetProvisioningOption{ + Action: aws.String("GreenFleetProvisioningAction"), + }, + TerminateBlueInstancesOnDeploymentSuccess: &codedeploy.BlueInstanceTerminationOption{ + Action: aws.String("InstanceAction"), + TerminationWaitTimeInMinutes: aws.Int64(1), + }, + }, DeploymentConfigName: aws.String("DeploymentConfigName"), + DeploymentStyle: &codedeploy.DeploymentStyle{ + DeploymentOption: aws.String("DeploymentOption"), + DeploymentType: aws.String("DeploymentType"), + }, Ec2TagFilters: []*codedeploy.EC2TagFilter{ { // Required Key: aws.String("Key"), @@ -1108,6 +1071,14 @@ func ExampleCodeDeploy_UpdateDeploymentGroup() { }, // More values... }, + LoadBalancerInfo: &codedeploy.LoadBalancerInfo{ + ElbInfoList: []*codedeploy.ELBInfo{ + { // Required + Name: aws.String("ELBName"), + }, + // More values... + }, + }, NewDeploymentGroupName: aws.String("DeploymentGroupName"), OnPremisesInstanceTagFilters: []*codedeploy.TagFilter{ { // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/service.go b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/service.go index 4a83dcfd2..5b20f2a45 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/service.go @@ -17,54 +17,56 @@ import ( // more information about AWS CodeDeploy, see the AWS CodeDeploy User Guide // (http://docs.aws.amazon.com/codedeploy/latest/userguide). // -// Using the APIs +// Using the APIs // // You can use the AWS CodeDeploy APIs to work with the following: // -// Applications are unique identifiers used by AWS CodeDeploy to ensure the -// correct combinations of revisions, deployment configurations, and deployment -// groups are being referenced during deployments. +// * Applications are unique identifiers used by AWS CodeDeploy to ensure +// the correct combinations of revisions, deployment configurations, and +// deployment groups are being referenced during deployments. // // You can use the AWS CodeDeploy APIs to create, delete, get, list, and update -// applications. +// applications. // -// Deployment configurations are sets of deployment rules and success and -// failure conditions used by AWS CodeDeploy during deployments. +// * Deployment configurations are sets of deployment rules and success and +// failure conditions used by AWS CodeDeploy during deployments. // // You can use the AWS CodeDeploy APIs to create, delete, get, and list deployment -// configurations. +// configurations. // -// Deployment groups are groups of instances to which application revisions -// can be deployed. +// * Deployment groups are groups of instances to which application revisions +// can be deployed. // // You can use the AWS CodeDeploy APIs to create, delete, get, list, and update -// deployment groups. +// deployment groups. // -// Instances represent Amazon EC2 instances to which application revisions -// are deployed. Instances are identified by their Amazon EC2 tags or Auto Scaling -// group names. Instances belong to deployment groups. +// * Instances represent Amazon EC2 instances to which application revisions +// are deployed. Instances are identified by their Amazon EC2 tags or Auto +// Scaling group names. Instances belong to deployment groups. // // You can use the AWS CodeDeploy APIs to get and list instance. // -// Deployments represent the process of deploying revisions to instances. +// * Deployments represent the process of deploying revisions to instances. // // You can use the AWS CodeDeploy APIs to create, get, list, and stop deployments. // -// Application revisions are archive files stored in Amazon S3 buckets or -// GitHub repositories. These revisions contain source content (such as source -// code, web pages, executable files, and deployment scripts) along with an -// application specification (AppSpec) file. (The AppSpec file is unique to -// AWS CodeDeploy; it defines the deployment actions you want AWS CodeDeploy -// to execute.) For application revisions stored in Amazon S3 buckets, an application -// revision is uniquely identified by its Amazon S3 object key and its ETag, -// version, or both. For application revisions stored in GitHub repositories, -// an application revision is uniquely identified by its repository name and -// commit ID. Application revisions are deployed through deployment groups. +// * Application revisions are archive files stored in Amazon S3 buckets +// or GitHub repositories. These revisions contain source content (such as +// source code, web pages, executable files, and deployment scripts) along +// with an application specification (AppSpec) file. (The AppSpec file is +// unique to AWS CodeDeploy; it defines the deployment actions you want AWS +// CodeDeploy to execute.) For application revisions stored in Amazon S3 +// buckets, an application revision is uniquely identified by its Amazon +// S3 object key and its ETag, version, or both. For application revisions +// stored in GitHub repositories, an application revision is uniquely identified +// by its repository name and commit ID. Application revisions are deployed +// through deployment groups. // // You can use the AWS CodeDeploy APIs to get, list, and register application -// revisions. -//The service client's operations are safe to be used concurrently. +// revisions. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06 type CodeDeploy struct { *client.Client } @@ -75,8 +77,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "codedeploy" +// Service information constants +const ( + ServiceName = "codedeploy" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the CodeDeploy client with a session. // If additional configuration is needed for the client instance use the optional @@ -89,17 +94,18 @@ const ServiceName = "codedeploy" // // Create a CodeDeploy client with additional configuration // svc := codedeploy.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CodeDeploy { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CodeDeploy { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CodeDeploy { svc := &CodeDeploy{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-10-06", diff --git a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/api.go b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/api.go index 68023f39f..0320007aa 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/api.go @@ -39,6 +39,7 @@ const opAcknowledgeJob = "AcknowledgeJob" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeJob func (c *CodePipeline) AcknowledgeJobRequest(input *AcknowledgeJobInput) (req *request.Request, output *AcknowledgeJobOutput) { op := &request.Operation{ Name: opAcknowledgeJob, @@ -50,9 +51,8 @@ func (c *CodePipeline) AcknowledgeJobRequest(input *AcknowledgeJobInput) (req *r input = &AcknowledgeJobInput{} } - req = c.newRequest(op, input, output) output = &AcknowledgeJobOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -69,15 +69,16 @@ func (c *CodePipeline) AcknowledgeJobRequest(input *AcknowledgeJobInput) (req *r // API operation AcknowledgeJob for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // -// * InvalidNonceException +// * ErrCodeInvalidNonceException "InvalidNonceException" // The specified nonce was specified in an invalid format. // -// * JobNotFoundException +// * ErrCodeJobNotFoundException "JobNotFoundException" // The specified job was specified in an invalid format or cannot be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeJob func (c *CodePipeline) AcknowledgeJob(input *AcknowledgeJobInput) (*AcknowledgeJobOutput, error) { req, out := c.AcknowledgeJobRequest(input) err := req.Send() @@ -110,6 +111,7 @@ const opAcknowledgeThirdPartyJob = "AcknowledgeThirdPartyJob" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeThirdPartyJob func (c *CodePipeline) AcknowledgeThirdPartyJobRequest(input *AcknowledgeThirdPartyJobInput) (req *request.Request, output *AcknowledgeThirdPartyJobOutput) { op := &request.Operation{ Name: opAcknowledgeThirdPartyJob, @@ -121,9 +123,8 @@ func (c *CodePipeline) AcknowledgeThirdPartyJobRequest(input *AcknowledgeThirdPa input = &AcknowledgeThirdPartyJobInput{} } - req = c.newRequest(op, input, output) output = &AcknowledgeThirdPartyJobOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -140,18 +141,19 @@ func (c *CodePipeline) AcknowledgeThirdPartyJobRequest(input *AcknowledgeThirdPa // API operation AcknowledgeThirdPartyJob for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // -// * InvalidNonceException +// * ErrCodeInvalidNonceException "InvalidNonceException" // The specified nonce was specified in an invalid format. // -// * JobNotFoundException +// * ErrCodeJobNotFoundException "JobNotFoundException" // The specified job was specified in an invalid format or cannot be found. // -// * InvalidClientTokenException +// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" // The client token was specified in an invalid format // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeThirdPartyJob func (c *CodePipeline) AcknowledgeThirdPartyJob(input *AcknowledgeThirdPartyJobInput) (*AcknowledgeThirdPartyJobOutput, error) { req, out := c.AcknowledgeThirdPartyJobRequest(input) err := req.Send() @@ -184,6 +186,7 @@ const opCreateCustomActionType = "CreateCustomActionType" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreateCustomActionType func (c *CodePipeline) CreateCustomActionTypeRequest(input *CreateCustomActionTypeInput) (req *request.Request, output *CreateCustomActionTypeOutput) { op := &request.Operation{ Name: opCreateCustomActionType, @@ -195,9 +198,8 @@ func (c *CodePipeline) CreateCustomActionTypeRequest(input *CreateCustomActionTy input = &CreateCustomActionTypeInput{} } - req = c.newRequest(op, input, output) output = &CreateCustomActionTypeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -214,13 +216,14 @@ func (c *CodePipeline) CreateCustomActionTypeRequest(input *CreateCustomActionTy // API operation CreateCustomActionType for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The number of pipelines associated with the AWS account has exceeded the // limit allowed for the account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreateCustomActionType func (c *CodePipeline) CreateCustomActionType(input *CreateCustomActionTypeInput) (*CreateCustomActionTypeOutput, error) { req, out := c.CreateCustomActionTypeRequest(input) err := req.Send() @@ -253,6 +256,7 @@ const opCreatePipeline = "CreatePipeline" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreatePipeline func (c *CodePipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *request.Request, output *CreatePipelineOutput) { op := &request.Operation{ Name: opCreatePipeline, @@ -264,9 +268,8 @@ func (c *CodePipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *r input = &CreatePipelineInput{} } - req = c.newRequest(op, input, output) output = &CreatePipelineOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -282,28 +285,29 @@ func (c *CodePipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *r // API operation CreatePipeline for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // -// * PipelineNameInUseException +// * ErrCodePipelineNameInUseException "PipelineNameInUseException" // The specified pipeline name is already in use. // -// * InvalidStageDeclarationException +// * ErrCodeInvalidStageDeclarationException "InvalidStageDeclarationException" // The specified stage declaration was specified in an invalid format. // -// * InvalidActionDeclarationException +// * ErrCodeInvalidActionDeclarationException "InvalidActionDeclarationException" // The specified action declaration was specified in an invalid format. // -// * InvalidBlockerDeclarationException +// * ErrCodeInvalidBlockerDeclarationException "InvalidBlockerDeclarationException" // Reserved for future use. // -// * InvalidStructureException +// * ErrCodeInvalidStructureException "InvalidStructureException" // The specified structure was specified in an invalid format. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The number of pipelines associated with the AWS account has exceeded the // limit allowed for the account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreatePipeline func (c *CodePipeline) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) { req, out := c.CreatePipelineRequest(input) err := req.Send() @@ -336,6 +340,7 @@ const opDeleteCustomActionType = "DeleteCustomActionType" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteCustomActionType func (c *CodePipeline) DeleteCustomActionTypeRequest(input *DeleteCustomActionTypeInput) (req *request.Request, output *DeleteCustomActionTypeOutput) { op := &request.Operation{ Name: opDeleteCustomActionType, @@ -347,11 +352,10 @@ func (c *CodePipeline) DeleteCustomActionTypeRequest(input *DeleteCustomActionTy input = &DeleteCustomActionTypeInput{} } + output = &DeleteCustomActionTypeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteCustomActionTypeOutput{} - req.Data = output return } @@ -360,7 +364,7 @@ func (c *CodePipeline) DeleteCustomActionTypeRequest(input *DeleteCustomActionTy // Marks a custom action as deleted. PollForJobs for the custom action will // fail after the action is marked for deletion. Only used for custom actions. // -// You cannot recreate a custom action after it has been deleted unless you +// You cannot recreate a custom action after it has been deleted unless you // increase the version number of the action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -371,9 +375,10 @@ func (c *CodePipeline) DeleteCustomActionTypeRequest(input *DeleteCustomActionTy // API operation DeleteCustomActionType for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteCustomActionType func (c *CodePipeline) DeleteCustomActionType(input *DeleteCustomActionTypeInput) (*DeleteCustomActionTypeOutput, error) { req, out := c.DeleteCustomActionTypeRequest(input) err := req.Send() @@ -406,6 +411,7 @@ const opDeletePipeline = "DeletePipeline" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeletePipeline func (c *CodePipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *request.Request, output *DeletePipelineOutput) { op := &request.Operation{ Name: opDeletePipeline, @@ -417,11 +423,10 @@ func (c *CodePipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *r input = &DeletePipelineInput{} } + output = &DeletePipelineOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeletePipelineOutput{} - req.Data = output return } @@ -437,9 +442,10 @@ func (c *CodePipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *r // API operation DeletePipeline for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeletePipeline func (c *CodePipeline) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) { req, out := c.DeletePipelineRequest(input) err := req.Send() @@ -472,6 +478,7 @@ const opDisableStageTransition = "DisableStageTransition" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DisableStageTransition func (c *CodePipeline) DisableStageTransitionRequest(input *DisableStageTransitionInput) (req *request.Request, output *DisableStageTransitionOutput) { op := &request.Operation{ Name: opDisableStageTransition, @@ -483,11 +490,10 @@ func (c *CodePipeline) DisableStageTransitionRequest(input *DisableStageTransiti input = &DisableStageTransitionInput{} } + output = &DisableStageTransitionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DisableStageTransitionOutput{} - req.Data = output return } @@ -504,15 +510,16 @@ func (c *CodePipeline) DisableStageTransitionRequest(input *DisableStageTransiti // API operation DisableStageTransition for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was specified in an invalid format or cannot be found. // -// * StageNotFoundException +// * ErrCodeStageNotFoundException "StageNotFoundException" // The specified stage was specified in an invalid format or cannot be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DisableStageTransition func (c *CodePipeline) DisableStageTransition(input *DisableStageTransitionInput) (*DisableStageTransitionOutput, error) { req, out := c.DisableStageTransitionRequest(input) err := req.Send() @@ -545,6 +552,7 @@ const opEnableStageTransition = "EnableStageTransition" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/EnableStageTransition func (c *CodePipeline) EnableStageTransitionRequest(input *EnableStageTransitionInput) (req *request.Request, output *EnableStageTransitionOutput) { op := &request.Operation{ Name: opEnableStageTransition, @@ -556,11 +564,10 @@ func (c *CodePipeline) EnableStageTransitionRequest(input *EnableStageTransition input = &EnableStageTransitionInput{} } + output = &EnableStageTransitionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &EnableStageTransitionOutput{} - req.Data = output return } @@ -576,15 +583,16 @@ func (c *CodePipeline) EnableStageTransitionRequest(input *EnableStageTransition // API operation EnableStageTransition for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was specified in an invalid format or cannot be found. // -// * StageNotFoundException +// * ErrCodeStageNotFoundException "StageNotFoundException" // The specified stage was specified in an invalid format or cannot be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/EnableStageTransition func (c *CodePipeline) EnableStageTransition(input *EnableStageTransitionInput) (*EnableStageTransitionOutput, error) { req, out := c.EnableStageTransitionRequest(input) err := req.Send() @@ -617,6 +625,7 @@ const opGetJobDetails = "GetJobDetails" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetJobDetails func (c *CodePipeline) GetJobDetailsRequest(input *GetJobDetailsInput) (req *request.Request, output *GetJobDetailsOutput) { op := &request.Operation{ Name: opGetJobDetails, @@ -628,9 +637,8 @@ func (c *CodePipeline) GetJobDetailsRequest(input *GetJobDetailsInput) (req *req input = &GetJobDetailsInput{} } - req = c.newRequest(op, input, output) output = &GetJobDetailsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -638,10 +646,10 @@ func (c *CodePipeline) GetJobDetailsRequest(input *GetJobDetailsInput) (req *req // // Returns information about a job. Only used for custom actions. // -// When this API is called, AWS CodePipeline returns temporary credentials -// for the Amazon S3 bucket used to store artifacts for the pipeline, if the -// action requires access to that Amazon S3 bucket for input or output artifacts. -// Additionally, this API returns any secret values defined for the action. +// When this API is called, AWS CodePipeline returns temporary credentials for +// the Amazon S3 bucket used to store artifacts for the pipeline, if the action +// requires access to that Amazon S3 bucket for input or output artifacts. Additionally, +// this API returns any secret values defined for the action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -651,12 +659,13 @@ func (c *CodePipeline) GetJobDetailsRequest(input *GetJobDetailsInput) (req *req // API operation GetJobDetails for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // -// * JobNotFoundException +// * ErrCodeJobNotFoundException "JobNotFoundException" // The specified job was specified in an invalid format or cannot be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetJobDetails func (c *CodePipeline) GetJobDetails(input *GetJobDetailsInput) (*GetJobDetailsOutput, error) { req, out := c.GetJobDetailsRequest(input) err := req.Send() @@ -689,6 +698,7 @@ const opGetPipeline = "GetPipeline" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipeline func (c *CodePipeline) GetPipelineRequest(input *GetPipelineInput) (req *request.Request, output *GetPipelineOutput) { op := &request.Operation{ Name: opGetPipeline, @@ -700,9 +710,8 @@ func (c *CodePipeline) GetPipelineRequest(input *GetPipelineInput) (req *request input = &GetPipelineInput{} } - req = c.newRequest(op, input, output) output = &GetPipelineOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -720,16 +729,17 @@ func (c *CodePipeline) GetPipelineRequest(input *GetPipelineInput) (req *request // API operation GetPipeline for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was specified in an invalid format or cannot be found. // -// * PipelineVersionNotFoundException +// * ErrCodePipelineVersionNotFoundException "PipelineVersionNotFoundException" // The specified pipeline version was specified in an invalid format or cannot // be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipeline func (c *CodePipeline) GetPipeline(input *GetPipelineInput) (*GetPipelineOutput, error) { req, out := c.GetPipelineRequest(input) err := req.Send() @@ -762,6 +772,7 @@ const opGetPipelineExecution = "GetPipelineExecution" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineExecution func (c *CodePipeline) GetPipelineExecutionRequest(input *GetPipelineExecutionInput) (req *request.Request, output *GetPipelineExecutionOutput) { op := &request.Operation{ Name: opGetPipelineExecution, @@ -773,9 +784,8 @@ func (c *CodePipeline) GetPipelineExecutionRequest(input *GetPipelineExecutionIn input = &GetPipelineExecutionInput{} } - req = c.newRequest(op, input, output) output = &GetPipelineExecutionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -793,16 +803,17 @@ func (c *CodePipeline) GetPipelineExecutionRequest(input *GetPipelineExecutionIn // API operation GetPipelineExecution for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was specified in an invalid format or cannot be found. // -// * PipelineExecutionNotFoundException +// * ErrCodePipelineExecutionNotFoundException "PipelineExecutionNotFoundException" // The pipeline execution was specified in an invalid format or cannot be found, // or an execution ID does not belong to the specified pipeline. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineExecution func (c *CodePipeline) GetPipelineExecution(input *GetPipelineExecutionInput) (*GetPipelineExecutionOutput, error) { req, out := c.GetPipelineExecutionRequest(input) err := req.Send() @@ -835,6 +846,7 @@ const opGetPipelineState = "GetPipelineState" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineState func (c *CodePipeline) GetPipelineStateRequest(input *GetPipelineStateInput) (req *request.Request, output *GetPipelineStateOutput) { op := &request.Operation{ Name: opGetPipelineState, @@ -846,9 +858,8 @@ func (c *CodePipeline) GetPipelineStateRequest(input *GetPipelineStateInput) (re input = &GetPipelineStateInput{} } - req = c.newRequest(op, input, output) output = &GetPipelineStateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -865,12 +876,13 @@ func (c *CodePipeline) GetPipelineStateRequest(input *GetPipelineStateInput) (re // API operation GetPipelineState for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was specified in an invalid format or cannot be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineState func (c *CodePipeline) GetPipelineState(input *GetPipelineStateInput) (*GetPipelineStateOutput, error) { req, out := c.GetPipelineStateRequest(input) err := req.Send() @@ -903,6 +915,7 @@ const opGetThirdPartyJobDetails = "GetThirdPartyJobDetails" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetThirdPartyJobDetails func (c *CodePipeline) GetThirdPartyJobDetailsRequest(input *GetThirdPartyJobDetailsInput) (req *request.Request, output *GetThirdPartyJobDetailsOutput) { op := &request.Operation{ Name: opGetThirdPartyJobDetails, @@ -914,9 +927,8 @@ func (c *CodePipeline) GetThirdPartyJobDetailsRequest(input *GetThirdPartyJobDet input = &GetThirdPartyJobDetailsInput{} } - req = c.newRequest(op, input, output) output = &GetThirdPartyJobDetailsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -925,10 +937,10 @@ func (c *CodePipeline) GetThirdPartyJobDetailsRequest(input *GetThirdPartyJobDet // Requests the details of a job for a third party action. Only used for partner // actions. // -// When this API is called, AWS CodePipeline returns temporary credentials -// for the Amazon S3 bucket used to store artifacts for the pipeline, if the -// action requires access to that Amazon S3 bucket for input or output artifacts. -// Additionally, this API returns any secret values defined for the action. +// When this API is called, AWS CodePipeline returns temporary credentials for +// the Amazon S3 bucket used to store artifacts for the pipeline, if the action +// requires access to that Amazon S3 bucket for input or output artifacts. Additionally, +// this API returns any secret values defined for the action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -938,18 +950,19 @@ func (c *CodePipeline) GetThirdPartyJobDetailsRequest(input *GetThirdPartyJobDet // API operation GetThirdPartyJobDetails for usage and error information. // // Returned Error Codes: -// * JobNotFoundException +// * ErrCodeJobNotFoundException "JobNotFoundException" // The specified job was specified in an invalid format or cannot be found. // -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // -// * InvalidClientTokenException +// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" // The client token was specified in an invalid format // -// * InvalidJobException +// * ErrCodeInvalidJobException "InvalidJobException" // The specified job was specified in an invalid format or cannot be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetThirdPartyJobDetails func (c *CodePipeline) GetThirdPartyJobDetails(input *GetThirdPartyJobDetailsInput) (*GetThirdPartyJobDetailsOutput, error) { req, out := c.GetThirdPartyJobDetailsRequest(input) err := req.Send() @@ -982,6 +995,7 @@ const opListActionTypes = "ListActionTypes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListActionTypes func (c *CodePipeline) ListActionTypesRequest(input *ListActionTypesInput) (req *request.Request, output *ListActionTypesOutput) { op := &request.Operation{ Name: opListActionTypes, @@ -993,9 +1007,8 @@ func (c *CodePipeline) ListActionTypesRequest(input *ListActionTypesInput) (req input = &ListActionTypesInput{} } - req = c.newRequest(op, input, output) output = &ListActionTypesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1012,13 +1025,14 @@ func (c *CodePipeline) ListActionTypesRequest(input *ListActionTypesInput) (req // API operation ListActionTypes for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // -// * InvalidNextTokenException +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" // The next token was specified in an invalid format. Make sure that the next // token you provided is the token returned by a previous call. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListActionTypes func (c *CodePipeline) ListActionTypes(input *ListActionTypesInput) (*ListActionTypesOutput, error) { req, out := c.ListActionTypesRequest(input) err := req.Send() @@ -1051,6 +1065,7 @@ const opListPipelines = "ListPipelines" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelines func (c *CodePipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *request.Request, output *ListPipelinesOutput) { op := &request.Operation{ Name: opListPipelines, @@ -1062,9 +1077,8 @@ func (c *CodePipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *req input = &ListPipelinesInput{} } - req = c.newRequest(op, input, output) output = &ListPipelinesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1080,10 +1094,11 @@ func (c *CodePipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *req // API operation ListPipelines for usage and error information. // // Returned Error Codes: -// * InvalidNextTokenException +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" // The next token was specified in an invalid format. Make sure that the next // token you provided is the token returned by a previous call. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelines func (c *CodePipeline) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) { req, out := c.ListPipelinesRequest(input) err := req.Send() @@ -1116,6 +1131,7 @@ const opPollForJobs = "PollForJobs" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForJobs func (c *CodePipeline) PollForJobsRequest(input *PollForJobsInput) (req *request.Request, output *PollForJobsOutput) { op := &request.Operation{ Name: opPollForJobs, @@ -1127,9 +1143,8 @@ func (c *CodePipeline) PollForJobsRequest(input *PollForJobsInput) (req *request input = &PollForJobsInput{} } - req = c.newRequest(op, input, output) output = &PollForJobsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1137,10 +1152,10 @@ func (c *CodePipeline) PollForJobsRequest(input *PollForJobsInput) (req *request // // Returns information about any jobs for AWS CodePipeline to act upon. // -// When this API is called, AWS CodePipeline returns temporary credentials -// for the Amazon S3 bucket used to store artifacts for the pipeline, if the -// action requires access to that Amazon S3 bucket for input or output artifacts. -// Additionally, this API returns any secret values defined for the action. +// When this API is called, AWS CodePipeline returns temporary credentials for +// the Amazon S3 bucket used to store artifacts for the pipeline, if the action +// requires access to that Amazon S3 bucket for input or output artifacts. Additionally, +// this API returns any secret values defined for the action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1150,12 +1165,13 @@ func (c *CodePipeline) PollForJobsRequest(input *PollForJobsInput) (req *request // API operation PollForJobs for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // -// * ActionTypeNotFoundException +// * ErrCodeActionTypeNotFoundException "ActionTypeNotFoundException" // The specified action type cannot be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForJobs func (c *CodePipeline) PollForJobs(input *PollForJobsInput) (*PollForJobsOutput, error) { req, out := c.PollForJobsRequest(input) err := req.Send() @@ -1188,6 +1204,7 @@ const opPollForThirdPartyJobs = "PollForThirdPartyJobs" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForThirdPartyJobs func (c *CodePipeline) PollForThirdPartyJobsRequest(input *PollForThirdPartyJobsInput) (req *request.Request, output *PollForThirdPartyJobsOutput) { op := &request.Operation{ Name: opPollForThirdPartyJobs, @@ -1199,9 +1216,8 @@ func (c *CodePipeline) PollForThirdPartyJobsRequest(input *PollForThirdPartyJobs input = &PollForThirdPartyJobsInput{} } - req = c.newRequest(op, input, output) output = &PollForThirdPartyJobsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1210,9 +1226,9 @@ func (c *CodePipeline) PollForThirdPartyJobsRequest(input *PollForThirdPartyJobs // Determines whether there are any third party jobs for a job worker to act // on. Only used for partner actions. // -// When this API is called, AWS CodePipeline returns temporary credentials -// for the Amazon S3 bucket used to store artifacts for the pipeline, if the -// action requires access to that Amazon S3 bucket for input or output artifacts. +// When this API is called, AWS CodePipeline returns temporary credentials for +// the Amazon S3 bucket used to store artifacts for the pipeline, if the action +// requires access to that Amazon S3 bucket for input or output artifacts. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1222,12 +1238,13 @@ func (c *CodePipeline) PollForThirdPartyJobsRequest(input *PollForThirdPartyJobs // API operation PollForThirdPartyJobs for usage and error information. // // Returned Error Codes: -// * ActionTypeNotFoundException +// * ErrCodeActionTypeNotFoundException "ActionTypeNotFoundException" // The specified action type cannot be found. // -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForThirdPartyJobs func (c *CodePipeline) PollForThirdPartyJobs(input *PollForThirdPartyJobsInput) (*PollForThirdPartyJobsOutput, error) { req, out := c.PollForThirdPartyJobsRequest(input) err := req.Send() @@ -1260,6 +1277,7 @@ const opPutActionRevision = "PutActionRevision" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutActionRevision func (c *CodePipeline) PutActionRevisionRequest(input *PutActionRevisionInput) (req *request.Request, output *PutActionRevisionOutput) { op := &request.Operation{ Name: opPutActionRevision, @@ -1271,9 +1289,8 @@ func (c *CodePipeline) PutActionRevisionRequest(input *PutActionRevisionInput) ( input = &PutActionRevisionInput{} } - req = c.newRequest(op, input, output) output = &PutActionRevisionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1289,18 +1306,19 @@ func (c *CodePipeline) PutActionRevisionRequest(input *PutActionRevisionInput) ( // API operation PutActionRevision for usage and error information. // // Returned Error Codes: -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was specified in an invalid format or cannot be found. // -// * StageNotFoundException +// * ErrCodeStageNotFoundException "StageNotFoundException" // The specified stage was specified in an invalid format or cannot be found. // -// * ActionNotFoundException +// * ErrCodeActionNotFoundException "ActionNotFoundException" // The specified action cannot be found. // -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutActionRevision func (c *CodePipeline) PutActionRevision(input *PutActionRevisionInput) (*PutActionRevisionOutput, error) { req, out := c.PutActionRevisionRequest(input) err := req.Send() @@ -1333,6 +1351,7 @@ const opPutApprovalResult = "PutApprovalResult" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutApprovalResult func (c *CodePipeline) PutApprovalResultRequest(input *PutApprovalResultInput) (req *request.Request, output *PutApprovalResultOutput) { op := &request.Operation{ Name: opPutApprovalResult, @@ -1344,9 +1363,8 @@ func (c *CodePipeline) PutApprovalResultRequest(input *PutApprovalResultInput) ( input = &PutApprovalResultInput{} } - req = c.newRequest(op, input, output) output = &PutApprovalResultOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1363,24 +1381,25 @@ func (c *CodePipeline) PutApprovalResultRequest(input *PutApprovalResultInput) ( // API operation PutApprovalResult for usage and error information. // // Returned Error Codes: -// * InvalidApprovalTokenException +// * ErrCodeInvalidApprovalTokenException "InvalidApprovalTokenException" // The approval request already received a response or has expired. // -// * ApprovalAlreadyCompletedException +// * ErrCodeApprovalAlreadyCompletedException "ApprovalAlreadyCompletedException" // The approval action has already been approved or rejected. // -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was specified in an invalid format or cannot be found. // -// * StageNotFoundException +// * ErrCodeStageNotFoundException "StageNotFoundException" // The specified stage was specified in an invalid format or cannot be found. // -// * ActionNotFoundException +// * ErrCodeActionNotFoundException "ActionNotFoundException" // The specified action cannot be found. // -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutApprovalResult func (c *CodePipeline) PutApprovalResult(input *PutApprovalResultInput) (*PutApprovalResultOutput, error) { req, out := c.PutApprovalResultRequest(input) err := req.Send() @@ -1413,6 +1432,7 @@ const opPutJobFailureResult = "PutJobFailureResult" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobFailureResult func (c *CodePipeline) PutJobFailureResultRequest(input *PutJobFailureResultInput) (req *request.Request, output *PutJobFailureResultOutput) { op := &request.Operation{ Name: opPutJobFailureResult, @@ -1424,11 +1444,10 @@ func (c *CodePipeline) PutJobFailureResultRequest(input *PutJobFailureResultInpu input = &PutJobFailureResultInput{} } + output = &PutJobFailureResultOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutJobFailureResultOutput{} - req.Data = output return } @@ -1445,15 +1464,16 @@ func (c *CodePipeline) PutJobFailureResultRequest(input *PutJobFailureResultInpu // API operation PutJobFailureResult for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // -// * JobNotFoundException +// * ErrCodeJobNotFoundException "JobNotFoundException" // The specified job was specified in an invalid format or cannot be found. // -// * InvalidJobStateException +// * ErrCodeInvalidJobStateException "InvalidJobStateException" // The specified job state was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobFailureResult func (c *CodePipeline) PutJobFailureResult(input *PutJobFailureResultInput) (*PutJobFailureResultOutput, error) { req, out := c.PutJobFailureResultRequest(input) err := req.Send() @@ -1486,6 +1506,7 @@ const opPutJobSuccessResult = "PutJobSuccessResult" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobSuccessResult func (c *CodePipeline) PutJobSuccessResultRequest(input *PutJobSuccessResultInput) (req *request.Request, output *PutJobSuccessResultOutput) { op := &request.Operation{ Name: opPutJobSuccessResult, @@ -1497,11 +1518,10 @@ func (c *CodePipeline) PutJobSuccessResultRequest(input *PutJobSuccessResultInpu input = &PutJobSuccessResultInput{} } + output = &PutJobSuccessResultOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutJobSuccessResultOutput{} - req.Data = output return } @@ -1518,15 +1538,16 @@ func (c *CodePipeline) PutJobSuccessResultRequest(input *PutJobSuccessResultInpu // API operation PutJobSuccessResult for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // -// * JobNotFoundException +// * ErrCodeJobNotFoundException "JobNotFoundException" // The specified job was specified in an invalid format or cannot be found. // -// * InvalidJobStateException +// * ErrCodeInvalidJobStateException "InvalidJobStateException" // The specified job state was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobSuccessResult func (c *CodePipeline) PutJobSuccessResult(input *PutJobSuccessResultInput) (*PutJobSuccessResultOutput, error) { req, out := c.PutJobSuccessResultRequest(input) err := req.Send() @@ -1559,6 +1580,7 @@ const opPutThirdPartyJobFailureResult = "PutThirdPartyJobFailureResult" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobFailureResult func (c *CodePipeline) PutThirdPartyJobFailureResultRequest(input *PutThirdPartyJobFailureResultInput) (req *request.Request, output *PutThirdPartyJobFailureResultOutput) { op := &request.Operation{ Name: opPutThirdPartyJobFailureResult, @@ -1570,11 +1592,10 @@ func (c *CodePipeline) PutThirdPartyJobFailureResultRequest(input *PutThirdParty input = &PutThirdPartyJobFailureResultInput{} } + output = &PutThirdPartyJobFailureResultOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutThirdPartyJobFailureResultOutput{} - req.Data = output return } @@ -1591,18 +1612,19 @@ func (c *CodePipeline) PutThirdPartyJobFailureResultRequest(input *PutThirdParty // API operation PutThirdPartyJobFailureResult for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // -// * JobNotFoundException +// * ErrCodeJobNotFoundException "JobNotFoundException" // The specified job was specified in an invalid format or cannot be found. // -// * InvalidJobStateException +// * ErrCodeInvalidJobStateException "InvalidJobStateException" // The specified job state was specified in an invalid format. // -// * InvalidClientTokenException +// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" // The client token was specified in an invalid format // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobFailureResult func (c *CodePipeline) PutThirdPartyJobFailureResult(input *PutThirdPartyJobFailureResultInput) (*PutThirdPartyJobFailureResultOutput, error) { req, out := c.PutThirdPartyJobFailureResultRequest(input) err := req.Send() @@ -1635,6 +1657,7 @@ const opPutThirdPartyJobSuccessResult = "PutThirdPartyJobSuccessResult" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobSuccessResult func (c *CodePipeline) PutThirdPartyJobSuccessResultRequest(input *PutThirdPartyJobSuccessResultInput) (req *request.Request, output *PutThirdPartyJobSuccessResultOutput) { op := &request.Operation{ Name: opPutThirdPartyJobSuccessResult, @@ -1646,11 +1669,10 @@ func (c *CodePipeline) PutThirdPartyJobSuccessResultRequest(input *PutThirdParty input = &PutThirdPartyJobSuccessResultInput{} } + output = &PutThirdPartyJobSuccessResultOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutThirdPartyJobSuccessResultOutput{} - req.Data = output return } @@ -1667,18 +1689,19 @@ func (c *CodePipeline) PutThirdPartyJobSuccessResultRequest(input *PutThirdParty // API operation PutThirdPartyJobSuccessResult for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // -// * JobNotFoundException +// * ErrCodeJobNotFoundException "JobNotFoundException" // The specified job was specified in an invalid format or cannot be found. // -// * InvalidJobStateException +// * ErrCodeInvalidJobStateException "InvalidJobStateException" // The specified job state was specified in an invalid format. // -// * InvalidClientTokenException +// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" // The client token was specified in an invalid format // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobSuccessResult func (c *CodePipeline) PutThirdPartyJobSuccessResult(input *PutThirdPartyJobSuccessResultInput) (*PutThirdPartyJobSuccessResultOutput, error) { req, out := c.PutThirdPartyJobSuccessResultRequest(input) err := req.Send() @@ -1711,6 +1734,7 @@ const opRetryStageExecution = "RetryStageExecution" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RetryStageExecution func (c *CodePipeline) RetryStageExecutionRequest(input *RetryStageExecutionInput) (req *request.Request, output *RetryStageExecutionOutput) { op := &request.Operation{ Name: opRetryStageExecution, @@ -1722,9 +1746,8 @@ func (c *CodePipeline) RetryStageExecutionRequest(input *RetryStageExecutionInpu input = &RetryStageExecutionInput{} } - req = c.newRequest(op, input, output) output = &RetryStageExecutionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1740,25 +1763,26 @@ func (c *CodePipeline) RetryStageExecutionRequest(input *RetryStageExecutionInpu // API operation RetryStageExecution for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was specified in an invalid format or cannot be found. // -// * StageNotFoundException +// * ErrCodeStageNotFoundException "StageNotFoundException" // The specified stage was specified in an invalid format or cannot be found. // -// * StageNotRetryableException +// * ErrCodeStageNotRetryableException "StageNotRetryableException" // The specified stage can't be retried because the pipeline structure or stage // state changed after the stage was not completed; the stage contains no failed // actions; one or more actions are still in progress; or another retry attempt // is already in progress. // -// * NotLatestPipelineExecutionException +// * ErrCodeNotLatestPipelineExecutionException "NotLatestPipelineExecutionException" // The stage has failed in a later run of the pipeline and the pipelineExecutionId // associated with the request is out of date. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RetryStageExecution func (c *CodePipeline) RetryStageExecution(input *RetryStageExecutionInput) (*RetryStageExecutionOutput, error) { req, out := c.RetryStageExecutionRequest(input) err := req.Send() @@ -1791,6 +1815,7 @@ const opStartPipelineExecution = "StartPipelineExecution" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StartPipelineExecution func (c *CodePipeline) StartPipelineExecutionRequest(input *StartPipelineExecutionInput) (req *request.Request, output *StartPipelineExecutionOutput) { op := &request.Operation{ Name: opStartPipelineExecution, @@ -1802,9 +1827,8 @@ func (c *CodePipeline) StartPipelineExecutionRequest(input *StartPipelineExecuti input = &StartPipelineExecutionInput{} } - req = c.newRequest(op, input, output) output = &StartPipelineExecutionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1821,12 +1845,13 @@ func (c *CodePipeline) StartPipelineExecutionRequest(input *StartPipelineExecuti // API operation StartPipelineExecution for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was specified in an invalid format or cannot be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StartPipelineExecution func (c *CodePipeline) StartPipelineExecution(input *StartPipelineExecutionInput) (*StartPipelineExecutionOutput, error) { req, out := c.StartPipelineExecutionRequest(input) err := req.Send() @@ -1859,6 +1884,7 @@ const opUpdatePipeline = "UpdatePipeline" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/UpdatePipeline func (c *CodePipeline) UpdatePipelineRequest(input *UpdatePipelineInput) (req *request.Request, output *UpdatePipelineOutput) { op := &request.Operation{ Name: opUpdatePipeline, @@ -1870,9 +1896,8 @@ func (c *CodePipeline) UpdatePipelineRequest(input *UpdatePipelineInput) (req *r input = &UpdatePipelineInput{} } - req = c.newRequest(op, input, output) output = &UpdatePipelineOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1891,21 +1916,22 @@ func (c *CodePipeline) UpdatePipelineRequest(input *UpdatePipelineInput) (req *r // API operation UpdatePipeline for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The validation was specified in an invalid format. // -// * InvalidStageDeclarationException +// * ErrCodeInvalidStageDeclarationException "InvalidStageDeclarationException" // The specified stage declaration was specified in an invalid format. // -// * InvalidActionDeclarationException +// * ErrCodeInvalidActionDeclarationException "InvalidActionDeclarationException" // The specified action declaration was specified in an invalid format. // -// * InvalidBlockerDeclarationException +// * ErrCodeInvalidBlockerDeclarationException "InvalidBlockerDeclarationException" // Reserved for future use. // -// * InvalidStructureException +// * ErrCodeInvalidStructureException "InvalidStructureException" // The specified structure was specified in an invalid format. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/UpdatePipeline func (c *CodePipeline) UpdatePipeline(input *UpdatePipelineInput) (*UpdatePipelineOutput, error) { req, out := c.UpdatePipelineRequest(input) err := req.Send() @@ -1916,6 +1942,7 @@ func (c *CodePipeline) UpdatePipeline(input *UpdatePipelineInput) (*UpdatePipeli // credentials that are issued by AWS Secure Token Service (STS). They can be // used to access input and output artifacts in the Amazon S3 bucket used to // store artifact for the pipeline in AWS CodePipeline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AWSSessionCredentials type AWSSessionCredentials struct { _ struct{} `type:"structure"` @@ -1945,7 +1972,26 @@ func (s AWSSessionCredentials) GoString() string { return s.String() } +// SetAccessKeyId sets the AccessKeyId field's value. +func (s *AWSSessionCredentials) SetAccessKeyId(v string) *AWSSessionCredentials { + s.AccessKeyId = &v + return s +} + +// SetSecretAccessKey sets the SecretAccessKey field's value. +func (s *AWSSessionCredentials) SetSecretAccessKey(v string) *AWSSessionCredentials { + s.SecretAccessKey = &v + return s +} + +// SetSessionToken sets the SessionToken field's value. +func (s *AWSSessionCredentials) SetSessionToken(v string) *AWSSessionCredentials { + s.SessionToken = &v + return s +} + // Represents the input of an acknowledge job action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeJobInput type AcknowledgeJobInput struct { _ struct{} `type:"structure"` @@ -1955,8 +2001,8 @@ type AcknowledgeJobInput struct { JobId *string `locationName:"jobId" type:"string" required:"true"` // A system-generated random number that AWS CodePipeline uses to ensure that - // the job is being worked on by only one job worker. This number must be returned - // in the response. + // the job is being worked on by only one job worker. Get this number from the + // response of the PollForJobs request that returned this job. // // Nonce is a required field Nonce *string `locationName:"nonce" type:"string" required:"true"` @@ -1988,7 +2034,20 @@ func (s *AcknowledgeJobInput) Validate() error { return nil } +// SetJobId sets the JobId field's value. +func (s *AcknowledgeJobInput) SetJobId(v string) *AcknowledgeJobInput { + s.JobId = &v + return s +} + +// SetNonce sets the Nonce field's value. +func (s *AcknowledgeJobInput) SetNonce(v string) *AcknowledgeJobInput { + s.Nonce = &v + return s +} + // Represents the output of an acknowledge job action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeJobOutput type AcknowledgeJobOutput struct { _ struct{} `type:"structure"` @@ -2006,7 +2065,14 @@ func (s AcknowledgeJobOutput) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *AcknowledgeJobOutput) SetStatus(v string) *AcknowledgeJobOutput { + s.Status = &v + return s +} + // Represents the input of an acknowledge third party job action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeThirdPartyJobInput type AcknowledgeThirdPartyJobInput struct { _ struct{} `type:"structure"` @@ -2022,8 +2088,8 @@ type AcknowledgeThirdPartyJobInput struct { JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"` // A system-generated random number that AWS CodePipeline uses to ensure that - // the job is being worked on by only one job worker. This number must be returned - // in the response. + // the job is being worked on by only one job worker. Get this number from the + // response to a GetThirdPartyJobDetails request. // // Nonce is a required field Nonce *string `locationName:"nonce" type:"string" required:"true"` @@ -2061,7 +2127,26 @@ func (s *AcknowledgeThirdPartyJobInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *AcknowledgeThirdPartyJobInput) SetClientToken(v string) *AcknowledgeThirdPartyJobInput { + s.ClientToken = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *AcknowledgeThirdPartyJobInput) SetJobId(v string) *AcknowledgeThirdPartyJobInput { + s.JobId = &v + return s +} + +// SetNonce sets the Nonce field's value. +func (s *AcknowledgeThirdPartyJobInput) SetNonce(v string) *AcknowledgeThirdPartyJobInput { + s.Nonce = &v + return s +} + // Represents the output of an acknowledge third party job action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeThirdPartyJobOutput type AcknowledgeThirdPartyJobOutput struct { _ struct{} `type:"structure"` @@ -2079,7 +2164,14 @@ func (s AcknowledgeThirdPartyJobOutput) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *AcknowledgeThirdPartyJobOutput) SetStatus(v string) *AcknowledgeThirdPartyJobOutput { + s.Status = &v + return s +} + // Represents information about an action configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ActionConfiguration type ActionConfiguration struct { _ struct{} `type:"structure"` @@ -2097,7 +2189,14 @@ func (s ActionConfiguration) GoString() string { return s.String() } +// SetConfiguration sets the Configuration field's value. +func (s *ActionConfiguration) SetConfiguration(v map[string]*string) *ActionConfiguration { + s.Configuration = v + return s +} + // Represents information about an action configuration property. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ActionConfigurationProperty type ActionConfigurationProperty struct { _ struct{} `type:"structure"` @@ -2183,8 +2282,51 @@ func (s *ActionConfigurationProperty) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *ActionConfigurationProperty) SetDescription(v string) *ActionConfigurationProperty { + s.Description = &v + return s +} + +// SetKey sets the Key field's value. +func (s *ActionConfigurationProperty) SetKey(v bool) *ActionConfigurationProperty { + s.Key = &v + return s +} + +// SetName sets the Name field's value. +func (s *ActionConfigurationProperty) SetName(v string) *ActionConfigurationProperty { + s.Name = &v + return s +} + +// SetQueryable sets the Queryable field's value. +func (s *ActionConfigurationProperty) SetQueryable(v bool) *ActionConfigurationProperty { + s.Queryable = &v + return s +} + +// SetRequired sets the Required field's value. +func (s *ActionConfigurationProperty) SetRequired(v bool) *ActionConfigurationProperty { + s.Required = &v + return s +} + +// SetSecret sets the Secret field's value. +func (s *ActionConfigurationProperty) SetSecret(v bool) *ActionConfigurationProperty { + s.Secret = &v + return s +} + +// SetType sets the Type field's value. +func (s *ActionConfigurationProperty) SetType(v string) *ActionConfigurationProperty { + s.Type = &v + return s +} + // Represents the context of an action within the stage of a pipeline to a job // worker. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ActionContext type ActionContext struct { _ struct{} `type:"structure"` @@ -2202,7 +2344,14 @@ func (s ActionContext) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *ActionContext) SetName(v string) *ActionContext { + s.Name = &v + return s +} + // Represents information about an action declaration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ActionDeclaration type ActionDeclaration struct { _ struct{} `type:"structure"` @@ -2292,7 +2441,50 @@ func (s *ActionDeclaration) Validate() error { return nil } +// SetActionTypeId sets the ActionTypeId field's value. +func (s *ActionDeclaration) SetActionTypeId(v *ActionTypeId) *ActionDeclaration { + s.ActionTypeId = v + return s +} + +// SetConfiguration sets the Configuration field's value. +func (s *ActionDeclaration) SetConfiguration(v map[string]*string) *ActionDeclaration { + s.Configuration = v + return s +} + +// SetInputArtifacts sets the InputArtifacts field's value. +func (s *ActionDeclaration) SetInputArtifacts(v []*InputArtifact) *ActionDeclaration { + s.InputArtifacts = v + return s +} + +// SetName sets the Name field's value. +func (s *ActionDeclaration) SetName(v string) *ActionDeclaration { + s.Name = &v + return s +} + +// SetOutputArtifacts sets the OutputArtifacts field's value. +func (s *ActionDeclaration) SetOutputArtifacts(v []*OutputArtifact) *ActionDeclaration { + s.OutputArtifacts = v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *ActionDeclaration) SetRoleArn(v string) *ActionDeclaration { + s.RoleArn = &v + return s +} + +// SetRunOrder sets the RunOrder field's value. +func (s *ActionDeclaration) SetRunOrder(v int64) *ActionDeclaration { + s.RunOrder = &v + return s +} + // Represents information about the run of an action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ActionExecution type ActionExecution struct { _ struct{} `type:"structure"` @@ -2339,7 +2531,62 @@ func (s ActionExecution) GoString() string { return s.String() } +// SetErrorDetails sets the ErrorDetails field's value. +func (s *ActionExecution) SetErrorDetails(v *ErrorDetails) *ActionExecution { + s.ErrorDetails = v + return s +} + +// SetExternalExecutionId sets the ExternalExecutionId field's value. +func (s *ActionExecution) SetExternalExecutionId(v string) *ActionExecution { + s.ExternalExecutionId = &v + return s +} + +// SetExternalExecutionUrl sets the ExternalExecutionUrl field's value. +func (s *ActionExecution) SetExternalExecutionUrl(v string) *ActionExecution { + s.ExternalExecutionUrl = &v + return s +} + +// SetLastStatusChange sets the LastStatusChange field's value. +func (s *ActionExecution) SetLastStatusChange(v time.Time) *ActionExecution { + s.LastStatusChange = &v + return s +} + +// SetLastUpdatedBy sets the LastUpdatedBy field's value. +func (s *ActionExecution) SetLastUpdatedBy(v string) *ActionExecution { + s.LastUpdatedBy = &v + return s +} + +// SetPercentComplete sets the PercentComplete field's value. +func (s *ActionExecution) SetPercentComplete(v int64) *ActionExecution { + s.PercentComplete = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ActionExecution) SetStatus(v string) *ActionExecution { + s.Status = &v + return s +} + +// SetSummary sets the Summary field's value. +func (s *ActionExecution) SetSummary(v string) *ActionExecution { + s.Summary = &v + return s +} + +// SetToken sets the Token field's value. +func (s *ActionExecution) SetToken(v string) *ActionExecution { + s.Token = &v + return s +} + // Represents information about the version (or revision) of an action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ActionRevision type ActionRevision struct { _ struct{} `type:"structure"` @@ -2397,7 +2644,26 @@ func (s *ActionRevision) Validate() error { return nil } +// SetCreated sets the Created field's value. +func (s *ActionRevision) SetCreated(v time.Time) *ActionRevision { + s.Created = &v + return s +} + +// SetRevisionChangeId sets the RevisionChangeId field's value. +func (s *ActionRevision) SetRevisionChangeId(v string) *ActionRevision { + s.RevisionChangeId = &v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *ActionRevision) SetRevisionId(v string) *ActionRevision { + s.RevisionId = &v + return s +} + // Represents information about the state of an action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ActionState type ActionState struct { _ struct{} `type:"structure"` @@ -2429,7 +2695,38 @@ func (s ActionState) GoString() string { return s.String() } +// SetActionName sets the ActionName field's value. +func (s *ActionState) SetActionName(v string) *ActionState { + s.ActionName = &v + return s +} + +// SetCurrentRevision sets the CurrentRevision field's value. +func (s *ActionState) SetCurrentRevision(v *ActionRevision) *ActionState { + s.CurrentRevision = v + return s +} + +// SetEntityUrl sets the EntityUrl field's value. +func (s *ActionState) SetEntityUrl(v string) *ActionState { + s.EntityUrl = &v + return s +} + +// SetLatestExecution sets the LatestExecution field's value. +func (s *ActionState) SetLatestExecution(v *ActionExecution) *ActionState { + s.LatestExecution = v + return s +} + +// SetRevisionUrl sets the RevisionUrl field's value. +func (s *ActionState) SetRevisionUrl(v string) *ActionState { + s.RevisionUrl = &v + return s +} + // Returns information about the details of an action type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ActionType type ActionType struct { _ struct{} `type:"structure"` @@ -2465,7 +2762,38 @@ func (s ActionType) GoString() string { return s.String() } +// SetActionConfigurationProperties sets the ActionConfigurationProperties field's value. +func (s *ActionType) SetActionConfigurationProperties(v []*ActionConfigurationProperty) *ActionType { + s.ActionConfigurationProperties = v + return s +} + +// SetId sets the Id field's value. +func (s *ActionType) SetId(v *ActionTypeId) *ActionType { + s.Id = v + return s +} + +// SetInputArtifactDetails sets the InputArtifactDetails field's value. +func (s *ActionType) SetInputArtifactDetails(v *ArtifactDetails) *ActionType { + s.InputArtifactDetails = v + return s +} + +// SetOutputArtifactDetails sets the OutputArtifactDetails field's value. +func (s *ActionType) SetOutputArtifactDetails(v *ArtifactDetails) *ActionType { + s.OutputArtifactDetails = v + return s +} + +// SetSettings sets the Settings field's value. +func (s *ActionType) SetSettings(v *ActionTypeSettings) *ActionType { + s.Settings = v + return s +} + // Represents information about an action type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ActionTypeId type ActionTypeId struct { _ struct{} `type:"structure"` @@ -2533,7 +2861,32 @@ func (s *ActionTypeId) Validate() error { return nil } +// SetCategory sets the Category field's value. +func (s *ActionTypeId) SetCategory(v string) *ActionTypeId { + s.Category = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *ActionTypeId) SetOwner(v string) *ActionTypeId { + s.Owner = &v + return s +} + +// SetProvider sets the Provider field's value. +func (s *ActionTypeId) SetProvider(v string) *ActionTypeId { + s.Provider = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *ActionTypeId) SetVersion(v string) *ActionTypeId { + s.Version = &v + return s +} + // Returns information about the settings for an action type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ActionTypeSettings type ActionTypeSettings struct { _ struct{} `type:"structure"` @@ -2592,7 +2945,32 @@ func (s *ActionTypeSettings) Validate() error { return nil } +// SetEntityUrlTemplate sets the EntityUrlTemplate field's value. +func (s *ActionTypeSettings) SetEntityUrlTemplate(v string) *ActionTypeSettings { + s.EntityUrlTemplate = &v + return s +} + +// SetExecutionUrlTemplate sets the ExecutionUrlTemplate field's value. +func (s *ActionTypeSettings) SetExecutionUrlTemplate(v string) *ActionTypeSettings { + s.ExecutionUrlTemplate = &v + return s +} + +// SetRevisionUrlTemplate sets the RevisionUrlTemplate field's value. +func (s *ActionTypeSettings) SetRevisionUrlTemplate(v string) *ActionTypeSettings { + s.RevisionUrlTemplate = &v + return s +} + +// SetThirdPartyConfigurationUrl sets the ThirdPartyConfigurationUrl field's value. +func (s *ActionTypeSettings) SetThirdPartyConfigurationUrl(v string) *ActionTypeSettings { + s.ThirdPartyConfigurationUrl = &v + return s +} + // Represents information about the result of an approval request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ApprovalResult type ApprovalResult struct { _ struct{} `type:"structure"` @@ -2633,8 +3011,21 @@ func (s *ApprovalResult) Validate() error { return nil } +// SetStatus sets the Status field's value. +func (s *ApprovalResult) SetStatus(v string) *ApprovalResult { + s.Status = &v + return s +} + +// SetSummary sets the Summary field's value. +func (s *ApprovalResult) SetSummary(v string) *ApprovalResult { + s.Summary = &v + return s +} + // Represents information about an artifact that will be worked upon by actions // in the pipeline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/Artifact type Artifact struct { _ struct{} `type:"structure"` @@ -2659,7 +3050,26 @@ func (s Artifact) GoString() string { return s.String() } +// SetLocation sets the Location field's value. +func (s *Artifact) SetLocation(v *ArtifactLocation) *Artifact { + s.Location = v + return s +} + +// SetName sets the Name field's value. +func (s *Artifact) SetName(v string) *Artifact { + s.Name = &v + return s +} + +// SetRevision sets the Revision field's value. +func (s *Artifact) SetRevision(v string) *Artifact { + s.Revision = &v + return s +} + // Returns information about the details of an artifact. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ArtifactDetails type ArtifactDetails struct { _ struct{} `type:"structure"` @@ -2700,7 +3110,20 @@ func (s *ArtifactDetails) Validate() error { return nil } +// SetMaximumCount sets the MaximumCount field's value. +func (s *ArtifactDetails) SetMaximumCount(v int64) *ArtifactDetails { + s.MaximumCount = &v + return s +} + +// SetMinimumCount sets the MinimumCount field's value. +func (s *ArtifactDetails) SetMinimumCount(v int64) *ArtifactDetails { + s.MinimumCount = &v + return s +} + // Represents information about the location of an artifact. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ArtifactLocation type ArtifactLocation struct { _ struct{} `type:"structure"` @@ -2721,7 +3144,20 @@ func (s ArtifactLocation) GoString() string { return s.String() } +// SetS3Location sets the S3Location field's value. +func (s *ArtifactLocation) SetS3Location(v *S3ArtifactLocation) *ArtifactLocation { + s.S3Location = v + return s +} + +// SetType sets the Type field's value. +func (s *ArtifactLocation) SetType(v string) *ArtifactLocation { + s.Type = &v + return s +} + // Represents revision details of an artifact. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ArtifactRevision type ArtifactRevision struct { _ struct{} `type:"structure"` @@ -2762,9 +3198,46 @@ func (s ArtifactRevision) GoString() string { return s.String() } +// SetCreated sets the Created field's value. +func (s *ArtifactRevision) SetCreated(v time.Time) *ArtifactRevision { + s.Created = &v + return s +} + +// SetName sets the Name field's value. +func (s *ArtifactRevision) SetName(v string) *ArtifactRevision { + s.Name = &v + return s +} + +// SetRevisionChangeIdentifier sets the RevisionChangeIdentifier field's value. +func (s *ArtifactRevision) SetRevisionChangeIdentifier(v string) *ArtifactRevision { + s.RevisionChangeIdentifier = &v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *ArtifactRevision) SetRevisionId(v string) *ArtifactRevision { + s.RevisionId = &v + return s +} + +// SetRevisionSummary sets the RevisionSummary field's value. +func (s *ArtifactRevision) SetRevisionSummary(v string) *ArtifactRevision { + s.RevisionSummary = &v + return s +} + +// SetRevisionUrl sets the RevisionUrl field's value. +func (s *ArtifactRevision) SetRevisionUrl(v string) *ArtifactRevision { + s.RevisionUrl = &v + return s +} + // The Amazon S3 location where artifacts are stored for the pipeline. If this // Amazon S3 bucket is created manually, it must meet the requirements for AWS // CodePipeline. For more information, see the Concepts (http://docs.aws.amazon.com/codepipeline/latest/userguide/concepts.html#CPS3Bucket). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ArtifactStore type ArtifactStore struct { _ struct{} `type:"structure"` @@ -2819,7 +3292,26 @@ func (s *ArtifactStore) Validate() error { return nil } +// SetEncryptionKey sets the EncryptionKey field's value. +func (s *ArtifactStore) SetEncryptionKey(v *EncryptionKey) *ArtifactStore { + s.EncryptionKey = v + return s +} + +// SetLocation sets the Location field's value. +func (s *ArtifactStore) SetLocation(v string) *ArtifactStore { + s.Location = &v + return s +} + +// SetType sets the Type field's value. +func (s *ArtifactStore) SetType(v string) *ArtifactStore { + s.Type = &v + return s +} + // Reserved for future use. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/BlockerDeclaration type BlockerDeclaration struct { _ struct{} `type:"structure"` @@ -2863,13 +3355,26 @@ func (s *BlockerDeclaration) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *BlockerDeclaration) SetName(v string) *BlockerDeclaration { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *BlockerDeclaration) SetType(v string) *BlockerDeclaration { + s.Type = &v + return s +} + // Represents the input of a create custom action operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreateCustomActionTypeInput type CreateCustomActionTypeInput struct { _ struct{} `type:"structure"` // The category of the custom action, such as a build action or a test action. // - // Although Source and Approval are listed as valid values, they are not currently + // Although Source and Approval are listed as valid values, they are not currently // functional. These values are reserved for future use. // // Category is a required field @@ -2877,7 +3382,7 @@ type CreateCustomActionTypeInput struct { // The configuration properties for the custom action. // - // You can refer to a name in the configuration properties of the custom action + // You can refer to a name in the configuration properties of the custom action // within the URL templates by following the format of {Config:name}, as long // as the configuration property is both required and not secret. For more information, // see Create a Custom Action for a Pipeline (http://docs.aws.amazon.com/codepipeline/latest/userguide/how-to-create-custom-action.html). @@ -2973,7 +3478,50 @@ func (s *CreateCustomActionTypeInput) Validate() error { return nil } +// SetCategory sets the Category field's value. +func (s *CreateCustomActionTypeInput) SetCategory(v string) *CreateCustomActionTypeInput { + s.Category = &v + return s +} + +// SetConfigurationProperties sets the ConfigurationProperties field's value. +func (s *CreateCustomActionTypeInput) SetConfigurationProperties(v []*ActionConfigurationProperty) *CreateCustomActionTypeInput { + s.ConfigurationProperties = v + return s +} + +// SetInputArtifactDetails sets the InputArtifactDetails field's value. +func (s *CreateCustomActionTypeInput) SetInputArtifactDetails(v *ArtifactDetails) *CreateCustomActionTypeInput { + s.InputArtifactDetails = v + return s +} + +// SetOutputArtifactDetails sets the OutputArtifactDetails field's value. +func (s *CreateCustomActionTypeInput) SetOutputArtifactDetails(v *ArtifactDetails) *CreateCustomActionTypeInput { + s.OutputArtifactDetails = v + return s +} + +// SetProvider sets the Provider field's value. +func (s *CreateCustomActionTypeInput) SetProvider(v string) *CreateCustomActionTypeInput { + s.Provider = &v + return s +} + +// SetSettings sets the Settings field's value. +func (s *CreateCustomActionTypeInput) SetSettings(v *ActionTypeSettings) *CreateCustomActionTypeInput { + s.Settings = v + return s +} + +// SetVersion sets the Version field's value. +func (s *CreateCustomActionTypeInput) SetVersion(v string) *CreateCustomActionTypeInput { + s.Version = &v + return s +} + // Represents the output of a create custom action operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreateCustomActionTypeOutput type CreateCustomActionTypeOutput struct { _ struct{} `type:"structure"` @@ -2993,7 +3541,14 @@ func (s CreateCustomActionTypeOutput) GoString() string { return s.String() } +// SetActionType sets the ActionType field's value. +func (s *CreateCustomActionTypeOutput) SetActionType(v *ActionType) *CreateCustomActionTypeOutput { + s.ActionType = v + return s +} + // Represents the input of a create pipeline action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreatePipelineInput type CreatePipelineInput struct { _ struct{} `type:"structure"` @@ -3031,7 +3586,14 @@ func (s *CreatePipelineInput) Validate() error { return nil } +// SetPipeline sets the Pipeline field's value. +func (s *CreatePipelineInput) SetPipeline(v *PipelineDeclaration) *CreatePipelineInput { + s.Pipeline = v + return s +} + // Represents the output of a create pipeline action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreatePipelineOutput type CreatePipelineOutput struct { _ struct{} `type:"structure"` @@ -3049,7 +3611,14 @@ func (s CreatePipelineOutput) GoString() string { return s.String() } +// SetPipeline sets the Pipeline field's value. +func (s *CreatePipelineOutput) SetPipeline(v *PipelineDeclaration) *CreatePipelineOutput { + s.Pipeline = v + return s +} + // Represents information about a current revision. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CurrentRevision type CurrentRevision struct { _ struct{} `type:"structure"` @@ -3106,8 +3675,33 @@ func (s *CurrentRevision) Validate() error { return nil } +// SetChangeIdentifier sets the ChangeIdentifier field's value. +func (s *CurrentRevision) SetChangeIdentifier(v string) *CurrentRevision { + s.ChangeIdentifier = &v + return s +} + +// SetCreated sets the Created field's value. +func (s *CurrentRevision) SetCreated(v time.Time) *CurrentRevision { + s.Created = &v + return s +} + +// SetRevision sets the Revision field's value. +func (s *CurrentRevision) SetRevision(v string) *CurrentRevision { + s.Revision = &v + return s +} + +// SetRevisionSummary sets the RevisionSummary field's value. +func (s *CurrentRevision) SetRevisionSummary(v string) *CurrentRevision { + s.RevisionSummary = &v + return s +} + // Represents the input of a delete custom action operation. The custom action // will be marked as deleted. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteCustomActionTypeInput type DeleteCustomActionTypeInput struct { _ struct{} `type:"structure"` @@ -3163,6 +3757,25 @@ func (s *DeleteCustomActionTypeInput) Validate() error { return nil } +// SetCategory sets the Category field's value. +func (s *DeleteCustomActionTypeInput) SetCategory(v string) *DeleteCustomActionTypeInput { + s.Category = &v + return s +} + +// SetProvider sets the Provider field's value. +func (s *DeleteCustomActionTypeInput) SetProvider(v string) *DeleteCustomActionTypeInput { + s.Provider = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *DeleteCustomActionTypeInput) SetVersion(v string) *DeleteCustomActionTypeInput { + s.Version = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteCustomActionTypeOutput type DeleteCustomActionTypeOutput struct { _ struct{} `type:"structure"` } @@ -3178,6 +3791,7 @@ func (s DeleteCustomActionTypeOutput) GoString() string { } // Represents the input of a delete pipeline action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeletePipelineInput type DeletePipelineInput struct { _ struct{} `type:"structure"` @@ -3213,6 +3827,13 @@ func (s *DeletePipelineInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *DeletePipelineInput) SetName(v string) *DeletePipelineInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeletePipelineOutput type DeletePipelineOutput struct { _ struct{} `type:"structure"` } @@ -3228,6 +3849,7 @@ func (s DeletePipelineOutput) GoString() string { } // Represents the input of a disable stage transition input action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DisableStageTransitionInput type DisableStageTransitionInput struct { _ struct{} `type:"structure"` @@ -3300,6 +3922,31 @@ func (s *DisableStageTransitionInput) Validate() error { return nil } +// SetPipelineName sets the PipelineName field's value. +func (s *DisableStageTransitionInput) SetPipelineName(v string) *DisableStageTransitionInput { + s.PipelineName = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *DisableStageTransitionInput) SetReason(v string) *DisableStageTransitionInput { + s.Reason = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *DisableStageTransitionInput) SetStageName(v string) *DisableStageTransitionInput { + s.StageName = &v + return s +} + +// SetTransitionType sets the TransitionType field's value. +func (s *DisableStageTransitionInput) SetTransitionType(v string) *DisableStageTransitionInput { + s.TransitionType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DisableStageTransitionOutput type DisableStageTransitionOutput struct { _ struct{} `type:"structure"` } @@ -3315,6 +3962,7 @@ func (s DisableStageTransitionOutput) GoString() string { } // Represents the input of an enable stage transition action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/EnableStageTransitionInput type EnableStageTransitionInput struct { _ struct{} `type:"structure"` @@ -3373,6 +4021,25 @@ func (s *EnableStageTransitionInput) Validate() error { return nil } +// SetPipelineName sets the PipelineName field's value. +func (s *EnableStageTransitionInput) SetPipelineName(v string) *EnableStageTransitionInput { + s.PipelineName = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *EnableStageTransitionInput) SetStageName(v string) *EnableStageTransitionInput { + s.StageName = &v + return s +} + +// SetTransitionType sets the TransitionType field's value. +func (s *EnableStageTransitionInput) SetTransitionType(v string) *EnableStageTransitionInput { + s.TransitionType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/EnableStageTransitionOutput type EnableStageTransitionOutput struct { _ struct{} `type:"structure"` } @@ -3389,6 +4056,7 @@ func (s EnableStageTransitionOutput) GoString() string { // Represents information about the key used to encrypt data in the artifact // store, such as an AWS Key Management Service (AWS KMS) key. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/EncryptionKey type EncryptionKey struct { _ struct{} `type:"structure"` @@ -3434,8 +4102,21 @@ func (s *EncryptionKey) Validate() error { return nil } -// Represents information about an error in AWS CodePipeline. -type ErrorDetails struct { +// SetId sets the Id field's value. +func (s *EncryptionKey) SetId(v string) *EncryptionKey { + s.Id = &v + return s +} + +// SetType sets the Type field's value. +func (s *EncryptionKey) SetType(v string) *EncryptionKey { + s.Type = &v + return s +} + +// Represents information about an error in AWS CodePipeline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ErrorDetails +type ErrorDetails struct { _ struct{} `type:"structure"` // The system ID or error number code of the error. @@ -3455,8 +4136,21 @@ func (s ErrorDetails) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *ErrorDetails) SetCode(v string) *ErrorDetails { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *ErrorDetails) SetMessage(v string) *ErrorDetails { + s.Message = &v + return s +} + // The details of the actions taken and results produced on an artifact as it // passes through stages in the pipeline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ExecutionDetails type ExecutionDetails struct { _ struct{} `type:"structure"` @@ -3495,7 +4189,26 @@ func (s *ExecutionDetails) Validate() error { return nil } +// SetExternalExecutionId sets the ExternalExecutionId field's value. +func (s *ExecutionDetails) SetExternalExecutionId(v string) *ExecutionDetails { + s.ExternalExecutionId = &v + return s +} + +// SetPercentComplete sets the PercentComplete field's value. +func (s *ExecutionDetails) SetPercentComplete(v int64) *ExecutionDetails { + s.PercentComplete = &v + return s +} + +// SetSummary sets the Summary field's value. +func (s *ExecutionDetails) SetSummary(v string) *ExecutionDetails { + s.Summary = &v + return s +} + // Represents information about failure details. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/FailureDetails type FailureDetails struct { _ struct{} `type:"structure"` @@ -3542,7 +4255,26 @@ func (s *FailureDetails) Validate() error { return nil } +// SetExternalExecutionId sets the ExternalExecutionId field's value. +func (s *FailureDetails) SetExternalExecutionId(v string) *FailureDetails { + s.ExternalExecutionId = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *FailureDetails) SetMessage(v string) *FailureDetails { + s.Message = &v + return s +} + +// SetType sets the Type field's value. +func (s *FailureDetails) SetType(v string) *FailureDetails { + s.Type = &v + return s +} + // Represents the input of a get job details action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetJobDetailsInput type GetJobDetailsInput struct { _ struct{} `type:"structure"` @@ -3575,13 +4307,20 @@ func (s *GetJobDetailsInput) Validate() error { return nil } +// SetJobId sets the JobId field's value. +func (s *GetJobDetailsInput) SetJobId(v string) *GetJobDetailsInput { + s.JobId = &v + return s +} + // Represents the output of a get job details action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetJobDetailsOutput type GetJobDetailsOutput struct { _ struct{} `type:"structure"` // The details of the job. // - // If AWSSessionCredentials is used, a long-running job can call GetJobDetails + // If AWSSessionCredentials is used, a long-running job can call GetJobDetails // again to obtain new credentials. JobDetails *JobDetails `locationName:"jobDetails" type:"structure"` } @@ -3596,7 +4335,14 @@ func (s GetJobDetailsOutput) GoString() string { return s.String() } +// SetJobDetails sets the JobDetails field's value. +func (s *GetJobDetailsOutput) SetJobDetails(v *JobDetails) *GetJobDetailsOutput { + s.JobDetails = v + return s +} + // Represents the input of a get pipeline execution action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineExecutionInput type GetPipelineExecutionInput struct { _ struct{} `type:"structure"` @@ -3640,7 +4386,20 @@ func (s *GetPipelineExecutionInput) Validate() error { return nil } +// SetPipelineExecutionId sets the PipelineExecutionId field's value. +func (s *GetPipelineExecutionInput) SetPipelineExecutionId(v string) *GetPipelineExecutionInput { + s.PipelineExecutionId = &v + return s +} + +// SetPipelineName sets the PipelineName field's value. +func (s *GetPipelineExecutionInput) SetPipelineName(v string) *GetPipelineExecutionInput { + s.PipelineName = &v + return s +} + // Represents the output of a get pipeline execution action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineExecutionOutput type GetPipelineExecutionOutput struct { _ struct{} `type:"structure"` @@ -3658,7 +4417,14 @@ func (s GetPipelineExecutionOutput) GoString() string { return s.String() } +// SetPipelineExecution sets the PipelineExecution field's value. +func (s *GetPipelineExecutionOutput) SetPipelineExecution(v *PipelineExecution) *GetPipelineExecutionOutput { + s.PipelineExecution = v + return s +} + // Represents the input of a get pipeline action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineInput type GetPipelineInput struct { _ struct{} `type:"structure"` @@ -3702,7 +4468,20 @@ func (s *GetPipelineInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *GetPipelineInput) SetName(v string) *GetPipelineInput { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *GetPipelineInput) SetVersion(v int64) *GetPipelineInput { + s.Version = &v + return s +} + // Represents the output of a get pipeline action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineOutput type GetPipelineOutput struct { _ struct{} `type:"structure"` @@ -3720,7 +4499,14 @@ func (s GetPipelineOutput) GoString() string { return s.String() } +// SetPipeline sets the Pipeline field's value. +func (s *GetPipelineOutput) SetPipeline(v *PipelineDeclaration) *GetPipelineOutput { + s.Pipeline = v + return s +} + // Represents the input of a get pipeline state action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineStateInput type GetPipelineStateInput struct { _ struct{} `type:"structure"` @@ -3756,7 +4542,14 @@ func (s *GetPipelineStateInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *GetPipelineStateInput) SetName(v string) *GetPipelineStateInput { + s.Name = &v + return s +} + // Represents the output of a get pipeline state action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineStateOutput type GetPipelineStateOutput struct { _ struct{} `type:"structure"` @@ -3768,7 +4561,7 @@ type GetPipelineStateOutput struct { // The version number of the pipeline. // - // A newly-created pipeline is always assigned a version number of 1. + // A newly-created pipeline is always assigned a version number of 1. PipelineVersion *int64 `locationName:"pipelineVersion" min:"1" type:"integer"` // A list of the pipeline stage output information, including stage name, state, @@ -3789,7 +4582,38 @@ func (s GetPipelineStateOutput) GoString() string { return s.String() } +// SetCreated sets the Created field's value. +func (s *GetPipelineStateOutput) SetCreated(v time.Time) *GetPipelineStateOutput { + s.Created = &v + return s +} + +// SetPipelineName sets the PipelineName field's value. +func (s *GetPipelineStateOutput) SetPipelineName(v string) *GetPipelineStateOutput { + s.PipelineName = &v + return s +} + +// SetPipelineVersion sets the PipelineVersion field's value. +func (s *GetPipelineStateOutput) SetPipelineVersion(v int64) *GetPipelineStateOutput { + s.PipelineVersion = &v + return s +} + +// SetStageStates sets the StageStates field's value. +func (s *GetPipelineStateOutput) SetStageStates(v []*StageState) *GetPipelineStateOutput { + s.StageStates = v + return s +} + +// SetUpdated sets the Updated field's value. +func (s *GetPipelineStateOutput) SetUpdated(v time.Time) *GetPipelineStateOutput { + s.Updated = &v + return s +} + // Represents the input of a get third party job details action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetThirdPartyJobDetailsInput type GetThirdPartyJobDetailsInput struct { _ struct{} `type:"structure"` @@ -3834,7 +4658,20 @@ func (s *GetThirdPartyJobDetailsInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *GetThirdPartyJobDetailsInput) SetClientToken(v string) *GetThirdPartyJobDetailsInput { + s.ClientToken = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *GetThirdPartyJobDetailsInput) SetJobId(v string) *GetThirdPartyJobDetailsInput { + s.JobId = &v + return s +} + // Represents the output of a get third party job details action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetThirdPartyJobDetailsOutput type GetThirdPartyJobDetailsOutput struct { _ struct{} `type:"structure"` @@ -3852,8 +4689,15 @@ func (s GetThirdPartyJobDetailsOutput) GoString() string { return s.String() } +// SetJobDetails sets the JobDetails field's value. +func (s *GetThirdPartyJobDetailsOutput) SetJobDetails(v *ThirdPartyJobDetails) *GetThirdPartyJobDetailsOutput { + s.JobDetails = v + return s +} + // Represents information about an artifact to be worked on, such as a test // or build artifact. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/InputArtifact type InputArtifact struct { _ struct{} `type:"structure"` @@ -3895,7 +4739,14 @@ func (s *InputArtifact) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *InputArtifact) SetName(v string) *InputArtifact { + s.Name = &v + return s +} + // Represents information about a job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/Job type Job struct { _ struct{} `type:"structure"` @@ -3909,8 +4760,8 @@ type Job struct { Id *string `locationName:"id" type:"string"` // A system-generated random number that AWS CodePipeline uses to ensure that - // the job is being worked on by only one job worker. This number must be returned - // in the response. + // the job is being worked on by only one job worker. Use this number in an + // AcknowledgeJob request. Nonce *string `locationName:"nonce" type:"string"` } @@ -3924,8 +4775,33 @@ func (s Job) GoString() string { return s.String() } +// SetAccountId sets the AccountId field's value. +func (s *Job) SetAccountId(v string) *Job { + s.AccountId = &v + return s +} + +// SetData sets the Data field's value. +func (s *Job) SetData(v *JobData) *Job { + s.Data = v + return s +} + +// SetId sets the Id field's value. +func (s *Job) SetId(v string) *Job { + s.Id = &v + return s +} + +// SetNonce sets the Nonce field's value. +func (s *Job) SetNonce(v string) *Job { + s.Nonce = &v + return s +} + // Represents additional information about a job required for a job worker to // complete the job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/JobData type JobData struct { _ struct{} `type:"structure"` @@ -3969,7 +4845,56 @@ func (s JobData) GoString() string { return s.String() } +// SetActionConfiguration sets the ActionConfiguration field's value. +func (s *JobData) SetActionConfiguration(v *ActionConfiguration) *JobData { + s.ActionConfiguration = v + return s +} + +// SetActionTypeId sets the ActionTypeId field's value. +func (s *JobData) SetActionTypeId(v *ActionTypeId) *JobData { + s.ActionTypeId = v + return s +} + +// SetArtifactCredentials sets the ArtifactCredentials field's value. +func (s *JobData) SetArtifactCredentials(v *AWSSessionCredentials) *JobData { + s.ArtifactCredentials = v + return s +} + +// SetContinuationToken sets the ContinuationToken field's value. +func (s *JobData) SetContinuationToken(v string) *JobData { + s.ContinuationToken = &v + return s +} + +// SetEncryptionKey sets the EncryptionKey field's value. +func (s *JobData) SetEncryptionKey(v *EncryptionKey) *JobData { + s.EncryptionKey = v + return s +} + +// SetInputArtifacts sets the InputArtifacts field's value. +func (s *JobData) SetInputArtifacts(v []*Artifact) *JobData { + s.InputArtifacts = v + return s +} + +// SetOutputArtifacts sets the OutputArtifacts field's value. +func (s *JobData) SetOutputArtifacts(v []*Artifact) *JobData { + s.OutputArtifacts = v + return s +} + +// SetPipelineContext sets the PipelineContext field's value. +func (s *JobData) SetPipelineContext(v *PipelineContext) *JobData { + s.PipelineContext = v + return s +} + // Represents information about the details of a job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/JobDetails type JobDetails struct { _ struct{} `type:"structure"` @@ -3994,7 +4919,26 @@ func (s JobDetails) GoString() string { return s.String() } +// SetAccountId sets the AccountId field's value. +func (s *JobDetails) SetAccountId(v string) *JobDetails { + s.AccountId = &v + return s +} + +// SetData sets the Data field's value. +func (s *JobDetails) SetData(v *JobData) *JobDetails { + s.Data = v + return s +} + +// SetId sets the Id field's value. +func (s *JobDetails) SetId(v string) *JobDetails { + s.Id = &v + return s +} + // Represents the input of a list action types action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListActionTypesInput type ListActionTypesInput struct { _ struct{} `type:"structure"` @@ -4016,7 +4960,20 @@ func (s ListActionTypesInput) GoString() string { return s.String() } +// SetActionOwnerFilter sets the ActionOwnerFilter field's value. +func (s *ListActionTypesInput) SetActionOwnerFilter(v string) *ListActionTypesInput { + s.ActionOwnerFilter = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListActionTypesInput) SetNextToken(v string) *ListActionTypesInput { + s.NextToken = &v + return s +} + // Represents the output of a list action types action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListActionTypesOutput type ListActionTypesOutput struct { _ struct{} `type:"structure"` @@ -4041,7 +4998,20 @@ func (s ListActionTypesOutput) GoString() string { return s.String() } +// SetActionTypes sets the ActionTypes field's value. +func (s *ListActionTypesOutput) SetActionTypes(v []*ActionType) *ListActionTypesOutput { + s.ActionTypes = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListActionTypesOutput) SetNextToken(v string) *ListActionTypesOutput { + s.NextToken = &v + return s +} + // Represents the input of a list pipelines action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelinesInput type ListPipelinesInput struct { _ struct{} `type:"structure"` @@ -4060,7 +5030,14 @@ func (s ListPipelinesInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListPipelinesInput) SetNextToken(v string) *ListPipelinesInput { + s.NextToken = &v + return s +} + // Represents the output of a list pipelines action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelinesOutput type ListPipelinesOutput struct { _ struct{} `type:"structure"` @@ -4083,7 +5060,20 @@ func (s ListPipelinesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListPipelinesOutput) SetNextToken(v string) *ListPipelinesOutput { + s.NextToken = &v + return s +} + +// SetPipelines sets the Pipelines field's value. +func (s *ListPipelinesOutput) SetPipelines(v []*PipelineSummary) *ListPipelinesOutput { + s.Pipelines = v + return s +} + // Represents information about the output of an action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/OutputArtifact type OutputArtifact struct { _ struct{} `type:"structure"` @@ -4127,7 +5117,14 @@ func (s *OutputArtifact) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *OutputArtifact) SetName(v string) *OutputArtifact { + s.Name = &v + return s +} + // Represents information about a pipeline to a job worker. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PipelineContext type PipelineContext struct { _ struct{} `type:"structure"` @@ -4153,7 +5150,26 @@ func (s PipelineContext) GoString() string { return s.String() } +// SetAction sets the Action field's value. +func (s *PipelineContext) SetAction(v *ActionContext) *PipelineContext { + s.Action = v + return s +} + +// SetPipelineName sets the PipelineName field's value. +func (s *PipelineContext) SetPipelineName(v string) *PipelineContext { + s.PipelineName = &v + return s +} + +// SetStage sets the Stage field's value. +func (s *PipelineContext) SetStage(v *StageContext) *PipelineContext { + s.Stage = v + return s +} + // Represents the structure of actions and stages to be performed in the pipeline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PipelineDeclaration type PipelineDeclaration struct { _ struct{} `type:"structure"` @@ -4239,7 +5255,38 @@ func (s *PipelineDeclaration) Validate() error { return nil } +// SetArtifactStore sets the ArtifactStore field's value. +func (s *PipelineDeclaration) SetArtifactStore(v *ArtifactStore) *PipelineDeclaration { + s.ArtifactStore = v + return s +} + +// SetName sets the Name field's value. +func (s *PipelineDeclaration) SetName(v string) *PipelineDeclaration { + s.Name = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *PipelineDeclaration) SetRoleArn(v string) *PipelineDeclaration { + s.RoleArn = &v + return s +} + +// SetStages sets the Stages field's value. +func (s *PipelineDeclaration) SetStages(v []*StageDeclaration) *PipelineDeclaration { + s.Stages = v + return s +} + +// SetVersion sets the Version field's value. +func (s *PipelineDeclaration) SetVersion(v int64) *PipelineDeclaration { + s.Version = &v + return s +} + // Represents information about an execution of a pipeline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PipelineExecution type PipelineExecution struct { _ struct{} `type:"structure"` @@ -4257,15 +5304,15 @@ type PipelineExecution struct { // The status of the pipeline execution. // - // InProgress: The pipeline execution is currently running. + // * InProgress: The pipeline execution is currently running. // - // Succeeded: The pipeline execution completed successfully. + // * Succeeded: The pipeline execution completed successfully. // - // Superseded: While this pipeline execution was waiting for the next stage - // to be completed, a newer pipeline execution caught up and continued through - // the pipeline instead. + // * Superseded: While this pipeline execution was waiting for the next stage + // to be completed, a newer pipeline execution caught up and continued through + // the pipeline instead. // - // Failed: The pipeline did not complete successfully. + // * Failed: The pipeline did not complete successfully. Status *string `locationName:"status" type:"string" enum:"PipelineExecutionStatus"` } @@ -4279,7 +5326,38 @@ func (s PipelineExecution) GoString() string { return s.String() } +// SetArtifactRevisions sets the ArtifactRevisions field's value. +func (s *PipelineExecution) SetArtifactRevisions(v []*ArtifactRevision) *PipelineExecution { + s.ArtifactRevisions = v + return s +} + +// SetPipelineExecutionId sets the PipelineExecutionId field's value. +func (s *PipelineExecution) SetPipelineExecutionId(v string) *PipelineExecution { + s.PipelineExecutionId = &v + return s +} + +// SetPipelineName sets the PipelineName field's value. +func (s *PipelineExecution) SetPipelineName(v string) *PipelineExecution { + s.PipelineName = &v + return s +} + +// SetPipelineVersion sets the PipelineVersion field's value. +func (s *PipelineExecution) SetPipelineVersion(v int64) *PipelineExecution { + s.PipelineVersion = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *PipelineExecution) SetStatus(v string) *PipelineExecution { + s.Status = &v + return s +} + // Returns a summary of a pipeline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PipelineSummary type PipelineSummary struct { _ struct{} `type:"structure"` @@ -4306,7 +5384,32 @@ func (s PipelineSummary) GoString() string { return s.String() } +// SetCreated sets the Created field's value. +func (s *PipelineSummary) SetCreated(v time.Time) *PipelineSummary { + s.Created = &v + return s +} + +// SetName sets the Name field's value. +func (s *PipelineSummary) SetName(v string) *PipelineSummary { + s.Name = &v + return s +} + +// SetUpdated sets the Updated field's value. +func (s *PipelineSummary) SetUpdated(v time.Time) *PipelineSummary { + s.Updated = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *PipelineSummary) SetVersion(v int64) *PipelineSummary { + s.Version = &v + return s +} + // Represents the input of a poll for jobs action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForJobsInput type PollForJobsInput struct { _ struct{} `type:"structure"` @@ -4356,7 +5459,26 @@ func (s *PollForJobsInput) Validate() error { return nil } +// SetActionTypeId sets the ActionTypeId field's value. +func (s *PollForJobsInput) SetActionTypeId(v *ActionTypeId) *PollForJobsInput { + s.ActionTypeId = v + return s +} + +// SetMaxBatchSize sets the MaxBatchSize field's value. +func (s *PollForJobsInput) SetMaxBatchSize(v int64) *PollForJobsInput { + s.MaxBatchSize = &v + return s +} + +// SetQueryParam sets the QueryParam field's value. +func (s *PollForJobsInput) SetQueryParam(v map[string]*string) *PollForJobsInput { + s.QueryParam = v + return s +} + // Represents the output of a poll for jobs action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForJobsOutput type PollForJobsOutput struct { _ struct{} `type:"structure"` @@ -4374,7 +5496,14 @@ func (s PollForJobsOutput) GoString() string { return s.String() } +// SetJobs sets the Jobs field's value. +func (s *PollForJobsOutput) SetJobs(v []*Job) *PollForJobsOutput { + s.Jobs = v + return s +} + // Represents the input of a poll for third party jobs action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForThirdPartyJobsInput type PollForThirdPartyJobsInput struct { _ struct{} `type:"structure"` @@ -4418,7 +5547,20 @@ func (s *PollForThirdPartyJobsInput) Validate() error { return nil } +// SetActionTypeId sets the ActionTypeId field's value. +func (s *PollForThirdPartyJobsInput) SetActionTypeId(v *ActionTypeId) *PollForThirdPartyJobsInput { + s.ActionTypeId = v + return s +} + +// SetMaxBatchSize sets the MaxBatchSize field's value. +func (s *PollForThirdPartyJobsInput) SetMaxBatchSize(v int64) *PollForThirdPartyJobsInput { + s.MaxBatchSize = &v + return s +} + // Represents the output of a poll for third party jobs action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForThirdPartyJobsOutput type PollForThirdPartyJobsOutput struct { _ struct{} `type:"structure"` @@ -4436,7 +5578,14 @@ func (s PollForThirdPartyJobsOutput) GoString() string { return s.String() } +// SetJobs sets the Jobs field's value. +func (s *PollForThirdPartyJobsOutput) SetJobs(v []*ThirdPartyJob) *PollForThirdPartyJobsOutput { + s.Jobs = v + return s +} + // Represents the input of a put action revision action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutActionRevisionInput type PutActionRevisionInput struct { _ struct{} `type:"structure"` @@ -4507,7 +5656,32 @@ func (s *PutActionRevisionInput) Validate() error { return nil } +// SetActionName sets the ActionName field's value. +func (s *PutActionRevisionInput) SetActionName(v string) *PutActionRevisionInput { + s.ActionName = &v + return s +} + +// SetActionRevision sets the ActionRevision field's value. +func (s *PutActionRevisionInput) SetActionRevision(v *ActionRevision) *PutActionRevisionInput { + s.ActionRevision = v + return s +} + +// SetPipelineName sets the PipelineName field's value. +func (s *PutActionRevisionInput) SetPipelineName(v string) *PutActionRevisionInput { + s.PipelineName = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *PutActionRevisionInput) SetStageName(v string) *PutActionRevisionInput { + s.StageName = &v + return s +} + // Represents the output of a put action revision action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutActionRevisionOutput type PutActionRevisionOutput struct { _ struct{} `type:"structure"` @@ -4529,7 +5703,20 @@ func (s PutActionRevisionOutput) GoString() string { return s.String() } +// SetNewRevision sets the NewRevision field's value. +func (s *PutActionRevisionOutput) SetNewRevision(v bool) *PutActionRevisionOutput { + s.NewRevision = &v + return s +} + +// SetPipelineExecutionId sets the PipelineExecutionId field's value. +func (s *PutActionRevisionOutput) SetPipelineExecutionId(v string) *PutActionRevisionOutput { + s.PipelineExecutionId = &v + return s +} + // Represents the input of a put approval result action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutApprovalResultInput type PutApprovalResultInput struct { _ struct{} `type:"structure"` @@ -4611,7 +5798,38 @@ func (s *PutApprovalResultInput) Validate() error { return nil } +// SetActionName sets the ActionName field's value. +func (s *PutApprovalResultInput) SetActionName(v string) *PutApprovalResultInput { + s.ActionName = &v + return s +} + +// SetPipelineName sets the PipelineName field's value. +func (s *PutApprovalResultInput) SetPipelineName(v string) *PutApprovalResultInput { + s.PipelineName = &v + return s +} + +// SetResult sets the Result field's value. +func (s *PutApprovalResultInput) SetResult(v *ApprovalResult) *PutApprovalResultInput { + s.Result = v + return s +} + +// SetStageName sets the StageName field's value. +func (s *PutApprovalResultInput) SetStageName(v string) *PutApprovalResultInput { + s.StageName = &v + return s +} + +// SetToken sets the Token field's value. +func (s *PutApprovalResultInput) SetToken(v string) *PutApprovalResultInput { + s.Token = &v + return s +} + // Represents the output of a put approval result action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutApprovalResultOutput type PutApprovalResultOutput struct { _ struct{} `type:"structure"` @@ -4629,7 +5847,14 @@ func (s PutApprovalResultOutput) GoString() string { return s.String() } +// SetApprovedAt sets the ApprovedAt field's value. +func (s *PutApprovalResultOutput) SetApprovedAt(v time.Time) *PutApprovalResultOutput { + s.ApprovedAt = &v + return s +} + // Represents the input of a put job failure result action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobFailureResultInput type PutJobFailureResultInput struct { _ struct{} `type:"structure"` @@ -4676,6 +5901,19 @@ func (s *PutJobFailureResultInput) Validate() error { return nil } +// SetFailureDetails sets the FailureDetails field's value. +func (s *PutJobFailureResultInput) SetFailureDetails(v *FailureDetails) *PutJobFailureResultInput { + s.FailureDetails = v + return s +} + +// SetJobId sets the JobId field's value. +func (s *PutJobFailureResultInput) SetJobId(v string) *PutJobFailureResultInput { + s.JobId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobFailureResultOutput type PutJobFailureResultOutput struct { _ struct{} `type:"structure"` } @@ -4691,6 +5929,7 @@ func (s PutJobFailureResultOutput) GoString() string { } // Represents the input of a put job success result action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobSuccessResultInput type PutJobSuccessResultInput struct { _ struct{} `type:"structure"` @@ -4750,6 +5989,31 @@ func (s *PutJobSuccessResultInput) Validate() error { return nil } +// SetContinuationToken sets the ContinuationToken field's value. +func (s *PutJobSuccessResultInput) SetContinuationToken(v string) *PutJobSuccessResultInput { + s.ContinuationToken = &v + return s +} + +// SetCurrentRevision sets the CurrentRevision field's value. +func (s *PutJobSuccessResultInput) SetCurrentRevision(v *CurrentRevision) *PutJobSuccessResultInput { + s.CurrentRevision = v + return s +} + +// SetExecutionDetails sets the ExecutionDetails field's value. +func (s *PutJobSuccessResultInput) SetExecutionDetails(v *ExecutionDetails) *PutJobSuccessResultInput { + s.ExecutionDetails = v + return s +} + +// SetJobId sets the JobId field's value. +func (s *PutJobSuccessResultInput) SetJobId(v string) *PutJobSuccessResultInput { + s.JobId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobSuccessResultOutput type PutJobSuccessResultOutput struct { _ struct{} `type:"structure"` } @@ -4765,6 +6029,7 @@ func (s PutJobSuccessResultOutput) GoString() string { } // Represents the input of a third party job failure result action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobFailureResultInput type PutThirdPartyJobFailureResultInput struct { _ struct{} `type:"structure"` @@ -4822,6 +6087,25 @@ func (s *PutThirdPartyJobFailureResultInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *PutThirdPartyJobFailureResultInput) SetClientToken(v string) *PutThirdPartyJobFailureResultInput { + s.ClientToken = &v + return s +} + +// SetFailureDetails sets the FailureDetails field's value. +func (s *PutThirdPartyJobFailureResultInput) SetFailureDetails(v *FailureDetails) *PutThirdPartyJobFailureResultInput { + s.FailureDetails = v + return s +} + +// SetJobId sets the JobId field's value. +func (s *PutThirdPartyJobFailureResultInput) SetJobId(v string) *PutThirdPartyJobFailureResultInput { + s.JobId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobFailureResultOutput type PutThirdPartyJobFailureResultOutput struct { _ struct{} `type:"structure"` } @@ -4837,6 +6121,7 @@ func (s PutThirdPartyJobFailureResultOutput) GoString() string { } // Represents the input of a put third party job success result action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobSuccessResultInput type PutThirdPartyJobSuccessResultInput struct { _ struct{} `type:"structure"` @@ -4907,6 +6192,37 @@ func (s *PutThirdPartyJobSuccessResultInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *PutThirdPartyJobSuccessResultInput) SetClientToken(v string) *PutThirdPartyJobSuccessResultInput { + s.ClientToken = &v + return s +} + +// SetContinuationToken sets the ContinuationToken field's value. +func (s *PutThirdPartyJobSuccessResultInput) SetContinuationToken(v string) *PutThirdPartyJobSuccessResultInput { + s.ContinuationToken = &v + return s +} + +// SetCurrentRevision sets the CurrentRevision field's value. +func (s *PutThirdPartyJobSuccessResultInput) SetCurrentRevision(v *CurrentRevision) *PutThirdPartyJobSuccessResultInput { + s.CurrentRevision = v + return s +} + +// SetExecutionDetails sets the ExecutionDetails field's value. +func (s *PutThirdPartyJobSuccessResultInput) SetExecutionDetails(v *ExecutionDetails) *PutThirdPartyJobSuccessResultInput { + s.ExecutionDetails = v + return s +} + +// SetJobId sets the JobId field's value. +func (s *PutThirdPartyJobSuccessResultInput) SetJobId(v string) *PutThirdPartyJobSuccessResultInput { + s.JobId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobSuccessResultOutput type PutThirdPartyJobSuccessResultOutput struct { _ struct{} `type:"structure"` } @@ -4922,6 +6238,7 @@ func (s PutThirdPartyJobSuccessResultOutput) GoString() string { } // Represents the input of a retry stage execution action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RetryStageExecutionInput type RetryStageExecutionInput struct { _ struct{} `type:"structure"` @@ -4986,7 +6303,32 @@ func (s *RetryStageExecutionInput) Validate() error { return nil } +// SetPipelineExecutionId sets the PipelineExecutionId field's value. +func (s *RetryStageExecutionInput) SetPipelineExecutionId(v string) *RetryStageExecutionInput { + s.PipelineExecutionId = &v + return s +} + +// SetPipelineName sets the PipelineName field's value. +func (s *RetryStageExecutionInput) SetPipelineName(v string) *RetryStageExecutionInput { + s.PipelineName = &v + return s +} + +// SetRetryMode sets the RetryMode field's value. +func (s *RetryStageExecutionInput) SetRetryMode(v string) *RetryStageExecutionInput { + s.RetryMode = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *RetryStageExecutionInput) SetStageName(v string) *RetryStageExecutionInput { + s.StageName = &v + return s +} + // Represents the output of a retry stage execution action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RetryStageExecutionOutput type RetryStageExecutionOutput struct { _ struct{} `type:"structure"` @@ -5004,7 +6346,14 @@ func (s RetryStageExecutionOutput) GoString() string { return s.String() } +// SetPipelineExecutionId sets the PipelineExecutionId field's value. +func (s *RetryStageExecutionOutput) SetPipelineExecutionId(v string) *RetryStageExecutionOutput { + s.PipelineExecutionId = &v + return s +} + // The location of the Amazon S3 bucket that contains a revision. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/S3ArtifactLocation type S3ArtifactLocation struct { _ struct{} `type:"structure"` @@ -5030,7 +6379,20 @@ func (s S3ArtifactLocation) GoString() string { return s.String() } +// SetBucketName sets the BucketName field's value. +func (s *S3ArtifactLocation) SetBucketName(v string) *S3ArtifactLocation { + s.BucketName = &v + return s +} + +// SetObjectKey sets the ObjectKey field's value. +func (s *S3ArtifactLocation) SetObjectKey(v string) *S3ArtifactLocation { + s.ObjectKey = &v + return s +} + // Represents information about a stage to a job worker. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StageContext type StageContext struct { _ struct{} `type:"structure"` @@ -5048,7 +6410,14 @@ func (s StageContext) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *StageContext) SetName(v string) *StageContext { + s.Name = &v + return s +} + // Represents information about a stage and its definition. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StageDeclaration type StageDeclaration struct { _ struct{} `type:"structure"` @@ -5115,7 +6484,26 @@ func (s *StageDeclaration) Validate() error { return nil } +// SetActions sets the Actions field's value. +func (s *StageDeclaration) SetActions(v []*ActionDeclaration) *StageDeclaration { + s.Actions = v + return s +} + +// SetBlockers sets the Blockers field's value. +func (s *StageDeclaration) SetBlockers(v []*BlockerDeclaration) *StageDeclaration { + s.Blockers = v + return s +} + +// SetName sets the Name field's value. +func (s *StageDeclaration) SetName(v string) *StageDeclaration { + s.Name = &v + return s +} + // Represents information about the run of a stage. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StageExecution type StageExecution struct { _ struct{} `type:"structure"` @@ -5141,7 +6529,20 @@ func (s StageExecution) GoString() string { return s.String() } +// SetPipelineExecutionId sets the PipelineExecutionId field's value. +func (s *StageExecution) SetPipelineExecutionId(v string) *StageExecution { + s.PipelineExecutionId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *StageExecution) SetStatus(v string) *StageExecution { + s.Status = &v + return s +} + // Represents information about the state of the stage. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StageState type StageState struct { _ struct{} `type:"structure"` @@ -5169,7 +6570,32 @@ func (s StageState) GoString() string { return s.String() } +// SetActionStates sets the ActionStates field's value. +func (s *StageState) SetActionStates(v []*ActionState) *StageState { + s.ActionStates = v + return s +} + +// SetInboundTransitionState sets the InboundTransitionState field's value. +func (s *StageState) SetInboundTransitionState(v *TransitionState) *StageState { + s.InboundTransitionState = v + return s +} + +// SetLatestExecution sets the LatestExecution field's value. +func (s *StageState) SetLatestExecution(v *StageExecution) *StageState { + s.LatestExecution = v + return s +} + +// SetStageName sets the StageName field's value. +func (s *StageState) SetStageName(v string) *StageState { + s.StageName = &v + return s +} + // Represents the input of a start pipeline execution action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StartPipelineExecutionInput type StartPipelineExecutionInput struct { _ struct{} `type:"structure"` @@ -5205,7 +6631,14 @@ func (s *StartPipelineExecutionInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *StartPipelineExecutionInput) SetName(v string) *StartPipelineExecutionInput { + s.Name = &v + return s +} + // Represents the output of a start pipeline execution action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StartPipelineExecutionOutput type StartPipelineExecutionOutput struct { _ struct{} `type:"structure"` @@ -5223,8 +6656,15 @@ func (s StartPipelineExecutionOutput) GoString() string { return s.String() } +// SetPipelineExecutionId sets the PipelineExecutionId field's value. +func (s *StartPipelineExecutionOutput) SetPipelineExecutionId(v string) *StartPipelineExecutionOutput { + s.PipelineExecutionId = &v + return s +} + // A response to a PollForThirdPartyJobs request returned by AWS CodePipeline // when there is a job to be worked upon by a partner action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ThirdPartyJob type ThirdPartyJob struct { _ struct{} `type:"structure"` @@ -5246,7 +6686,20 @@ func (s ThirdPartyJob) GoString() string { return s.String() } +// SetClientId sets the ClientId field's value. +func (s *ThirdPartyJob) SetClientId(v string) *ThirdPartyJob { + s.ClientId = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *ThirdPartyJob) SetJobId(v string) *ThirdPartyJob { + s.JobId = &v + return s +} + // Represents information about the job data for a partner action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ThirdPartyJobData type ThirdPartyJobData struct { _ struct{} `type:"structure"` @@ -5297,7 +6750,56 @@ func (s ThirdPartyJobData) GoString() string { return s.String() } +// SetActionConfiguration sets the ActionConfiguration field's value. +func (s *ThirdPartyJobData) SetActionConfiguration(v *ActionConfiguration) *ThirdPartyJobData { + s.ActionConfiguration = v + return s +} + +// SetActionTypeId sets the ActionTypeId field's value. +func (s *ThirdPartyJobData) SetActionTypeId(v *ActionTypeId) *ThirdPartyJobData { + s.ActionTypeId = v + return s +} + +// SetArtifactCredentials sets the ArtifactCredentials field's value. +func (s *ThirdPartyJobData) SetArtifactCredentials(v *AWSSessionCredentials) *ThirdPartyJobData { + s.ArtifactCredentials = v + return s +} + +// SetContinuationToken sets the ContinuationToken field's value. +func (s *ThirdPartyJobData) SetContinuationToken(v string) *ThirdPartyJobData { + s.ContinuationToken = &v + return s +} + +// SetEncryptionKey sets the EncryptionKey field's value. +func (s *ThirdPartyJobData) SetEncryptionKey(v *EncryptionKey) *ThirdPartyJobData { + s.EncryptionKey = v + return s +} + +// SetInputArtifacts sets the InputArtifacts field's value. +func (s *ThirdPartyJobData) SetInputArtifacts(v []*Artifact) *ThirdPartyJobData { + s.InputArtifacts = v + return s +} + +// SetOutputArtifacts sets the OutputArtifacts field's value. +func (s *ThirdPartyJobData) SetOutputArtifacts(v []*Artifact) *ThirdPartyJobData { + s.OutputArtifacts = v + return s +} + +// SetPipelineContext sets the PipelineContext field's value. +func (s *ThirdPartyJobData) SetPipelineContext(v *PipelineContext) *ThirdPartyJobData { + s.PipelineContext = v + return s +} + // The details of a job sent in response to a GetThirdPartyJobDetails request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ThirdPartyJobDetails type ThirdPartyJobDetails struct { _ struct{} `type:"structure"` @@ -5308,8 +6810,8 @@ type ThirdPartyJobDetails struct { Id *string `locationName:"id" min:"1" type:"string"` // A system-generated random number that AWS CodePipeline uses to ensure that - // the job is being worked on by only one job worker. This number must be returned - // in the response. + // the job is being worked on by only one job worker. Use this number in an + // AcknowledgeThirdPartyJob request. Nonce *string `locationName:"nonce" type:"string"` } @@ -5323,8 +6825,27 @@ func (s ThirdPartyJobDetails) GoString() string { return s.String() } +// SetData sets the Data field's value. +func (s *ThirdPartyJobDetails) SetData(v *ThirdPartyJobData) *ThirdPartyJobDetails { + s.Data = v + return s +} + +// SetId sets the Id field's value. +func (s *ThirdPartyJobDetails) SetId(v string) *ThirdPartyJobDetails { + s.Id = &v + return s +} + +// SetNonce sets the Nonce field's value. +func (s *ThirdPartyJobDetails) SetNonce(v string) *ThirdPartyJobDetails { + s.Nonce = &v + return s +} + // Represents information about the state of transitions between one stage and // another stage. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/TransitionState type TransitionState struct { _ struct{} `type:"structure"` @@ -5352,7 +6873,32 @@ func (s TransitionState) GoString() string { return s.String() } +// SetDisabledReason sets the DisabledReason field's value. +func (s *TransitionState) SetDisabledReason(v string) *TransitionState { + s.DisabledReason = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *TransitionState) SetEnabled(v bool) *TransitionState { + s.Enabled = &v + return s +} + +// SetLastChangedAt sets the LastChangedAt field's value. +func (s *TransitionState) SetLastChangedAt(v time.Time) *TransitionState { + s.LastChangedAt = &v + return s +} + +// SetLastChangedBy sets the LastChangedBy field's value. +func (s *TransitionState) SetLastChangedBy(v string) *TransitionState { + s.LastChangedBy = &v + return s +} + // Represents the input of an update pipeline action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/UpdatePipelineInput type UpdatePipelineInput struct { _ struct{} `type:"structure"` @@ -5390,7 +6936,14 @@ func (s *UpdatePipelineInput) Validate() error { return nil } +// SetPipeline sets the Pipeline field's value. +func (s *UpdatePipelineInput) SetPipeline(v *PipelineDeclaration) *UpdatePipelineInput { + s.Pipeline = v + return s +} + // Represents the output of an update pipeline action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/UpdatePipelineOutput type UpdatePipelineOutput struct { _ struct{} `type:"structure"` @@ -5408,6 +6961,12 @@ func (s UpdatePipelineOutput) GoString() string { return s.String() } +// SetPipeline sets the Pipeline field's value. +func (s *UpdatePipelineOutput) SetPipeline(v *PipelineDeclaration) *UpdatePipelineOutput { + s.Pipeline = v + return s +} + const ( // ActionCategorySource is a ActionCategory enum value ActionCategorySource = "Source" diff --git a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface/interface.go index c477084c8..12309d95b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCodePipelineClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/errors.go b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/errors.go new file mode 100644 index 000000000..7e664c0e7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/errors.go @@ -0,0 +1,152 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package codepipeline + +const ( + + // ErrCodeActionNotFoundException for service response error code + // "ActionNotFoundException". + // + // The specified action cannot be found. + ErrCodeActionNotFoundException = "ActionNotFoundException" + + // ErrCodeActionTypeNotFoundException for service response error code + // "ActionTypeNotFoundException". + // + // The specified action type cannot be found. + ErrCodeActionTypeNotFoundException = "ActionTypeNotFoundException" + + // ErrCodeApprovalAlreadyCompletedException for service response error code + // "ApprovalAlreadyCompletedException". + // + // The approval action has already been approved or rejected. + ErrCodeApprovalAlreadyCompletedException = "ApprovalAlreadyCompletedException" + + // ErrCodeInvalidActionDeclarationException for service response error code + // "InvalidActionDeclarationException". + // + // The specified action declaration was specified in an invalid format. + ErrCodeInvalidActionDeclarationException = "InvalidActionDeclarationException" + + // ErrCodeInvalidApprovalTokenException for service response error code + // "InvalidApprovalTokenException". + // + // The approval request already received a response or has expired. + ErrCodeInvalidApprovalTokenException = "InvalidApprovalTokenException" + + // ErrCodeInvalidBlockerDeclarationException for service response error code + // "InvalidBlockerDeclarationException". + // + // Reserved for future use. + ErrCodeInvalidBlockerDeclarationException = "InvalidBlockerDeclarationException" + + // ErrCodeInvalidClientTokenException for service response error code + // "InvalidClientTokenException". + // + // The client token was specified in an invalid format + ErrCodeInvalidClientTokenException = "InvalidClientTokenException" + + // ErrCodeInvalidJobException for service response error code + // "InvalidJobException". + // + // The specified job was specified in an invalid format or cannot be found. + ErrCodeInvalidJobException = "InvalidJobException" + + // ErrCodeInvalidJobStateException for service response error code + // "InvalidJobStateException". + // + // The specified job state was specified in an invalid format. + ErrCodeInvalidJobStateException = "InvalidJobStateException" + + // ErrCodeInvalidNextTokenException for service response error code + // "InvalidNextTokenException". + // + // The next token was specified in an invalid format. Make sure that the next + // token you provided is the token returned by a previous call. + ErrCodeInvalidNextTokenException = "InvalidNextTokenException" + + // ErrCodeInvalidNonceException for service response error code + // "InvalidNonceException". + // + // The specified nonce was specified in an invalid format. + ErrCodeInvalidNonceException = "InvalidNonceException" + + // ErrCodeInvalidStageDeclarationException for service response error code + // "InvalidStageDeclarationException". + // + // The specified stage declaration was specified in an invalid format. + ErrCodeInvalidStageDeclarationException = "InvalidStageDeclarationException" + + // ErrCodeInvalidStructureException for service response error code + // "InvalidStructureException". + // + // The specified structure was specified in an invalid format. + ErrCodeInvalidStructureException = "InvalidStructureException" + + // ErrCodeJobNotFoundException for service response error code + // "JobNotFoundException". + // + // The specified job was specified in an invalid format or cannot be found. + ErrCodeJobNotFoundException = "JobNotFoundException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // The number of pipelines associated with the AWS account has exceeded the + // limit allowed for the account. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeNotLatestPipelineExecutionException for service response error code + // "NotLatestPipelineExecutionException". + // + // The stage has failed in a later run of the pipeline and the pipelineExecutionId + // associated with the request is out of date. + ErrCodeNotLatestPipelineExecutionException = "NotLatestPipelineExecutionException" + + // ErrCodePipelineExecutionNotFoundException for service response error code + // "PipelineExecutionNotFoundException". + // + // The pipeline execution was specified in an invalid format or cannot be found, + // or an execution ID does not belong to the specified pipeline. + ErrCodePipelineExecutionNotFoundException = "PipelineExecutionNotFoundException" + + // ErrCodePipelineNameInUseException for service response error code + // "PipelineNameInUseException". + // + // The specified pipeline name is already in use. + ErrCodePipelineNameInUseException = "PipelineNameInUseException" + + // ErrCodePipelineNotFoundException for service response error code + // "PipelineNotFoundException". + // + // The specified pipeline was specified in an invalid format or cannot be found. + ErrCodePipelineNotFoundException = "PipelineNotFoundException" + + // ErrCodePipelineVersionNotFoundException for service response error code + // "PipelineVersionNotFoundException". + // + // The specified pipeline version was specified in an invalid format or cannot + // be found. + ErrCodePipelineVersionNotFoundException = "PipelineVersionNotFoundException" + + // ErrCodeStageNotFoundException for service response error code + // "StageNotFoundException". + // + // The specified stage was specified in an invalid format or cannot be found. + ErrCodeStageNotFoundException = "StageNotFoundException" + + // ErrCodeStageNotRetryableException for service response error code + // "StageNotRetryableException". + // + // The specified stage can't be retried because the pipeline structure or stage + // state changed after the stage was not completed; the stage contains no failed + // actions; one or more actions are still in progress; or another retry attempt + // is already in progress. + ErrCodeStageNotRetryableException = "StageNotRetryableException" + + // ErrCodeValidationException for service response error code + // "ValidationException". + // + // The validation was specified in an invalid format. + ErrCodeValidationException = "ValidationException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/examples_test.go index 5cf624c0c..4a5cb27af 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCodePipeline_AcknowledgeJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -42,11 +38,7 @@ func ExampleCodePipeline_AcknowledgeJob() { } func ExampleCodePipeline_AcknowledgeThirdPartyJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -69,11 +61,7 @@ func ExampleCodePipeline_AcknowledgeThirdPartyJob() { } func ExampleCodePipeline_CreateCustomActionType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -122,11 +110,7 @@ func ExampleCodePipeline_CreateCustomActionType() { } func ExampleCodePipeline_CreatePipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -202,11 +186,7 @@ func ExampleCodePipeline_CreatePipeline() { } func ExampleCodePipeline_DeleteCustomActionType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -229,11 +209,7 @@ func ExampleCodePipeline_DeleteCustomActionType() { } func ExampleCodePipeline_DeletePipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -254,11 +230,7 @@ func ExampleCodePipeline_DeletePipeline() { } func ExampleCodePipeline_DisableStageTransition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -282,11 +254,7 @@ func ExampleCodePipeline_DisableStageTransition() { } func ExampleCodePipeline_EnableStageTransition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -309,11 +277,7 @@ func ExampleCodePipeline_EnableStageTransition() { } func ExampleCodePipeline_GetJobDetails() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -334,11 +298,7 @@ func ExampleCodePipeline_GetJobDetails() { } func ExampleCodePipeline_GetPipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -360,11 +320,7 @@ func ExampleCodePipeline_GetPipeline() { } func ExampleCodePipeline_GetPipelineExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -386,11 +342,7 @@ func ExampleCodePipeline_GetPipelineExecution() { } func ExampleCodePipeline_GetPipelineState() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -411,11 +363,7 @@ func ExampleCodePipeline_GetPipelineState() { } func ExampleCodePipeline_GetThirdPartyJobDetails() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -437,11 +385,7 @@ func ExampleCodePipeline_GetThirdPartyJobDetails() { } func ExampleCodePipeline_ListActionTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -463,11 +407,7 @@ func ExampleCodePipeline_ListActionTypes() { } func ExampleCodePipeline_ListPipelines() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -488,11 +428,7 @@ func ExampleCodePipeline_ListPipelines() { } func ExampleCodePipeline_PollForJobs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -523,11 +459,7 @@ func ExampleCodePipeline_PollForJobs() { } func ExampleCodePipeline_PollForThirdPartyJobs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -554,11 +486,7 @@ func ExampleCodePipeline_PollForThirdPartyJobs() { } func ExampleCodePipeline_PutActionRevision() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -586,11 +514,7 @@ func ExampleCodePipeline_PutActionRevision() { } func ExampleCodePipeline_PutApprovalResult() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -618,11 +542,7 @@ func ExampleCodePipeline_PutApprovalResult() { } func ExampleCodePipeline_PutJobFailureResult() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -648,11 +568,7 @@ func ExampleCodePipeline_PutJobFailureResult() { } func ExampleCodePipeline_PutJobSuccessResult() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -685,11 +601,7 @@ func ExampleCodePipeline_PutJobSuccessResult() { } func ExampleCodePipeline_PutThirdPartyJobFailureResult() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -716,11 +628,7 @@ func ExampleCodePipeline_PutThirdPartyJobFailureResult() { } func ExampleCodePipeline_PutThirdPartyJobSuccessResult() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -754,11 +662,7 @@ func ExampleCodePipeline_PutThirdPartyJobSuccessResult() { } func ExampleCodePipeline_RetryStageExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -782,11 +686,7 @@ func ExampleCodePipeline_RetryStageExecution() { } func ExampleCodePipeline_StartPipelineExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) @@ -807,11 +707,7 @@ func ExampleCodePipeline_StartPipelineExecution() { } func ExampleCodePipeline_UpdatePipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := codepipeline.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/service.go b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/service.go index 425f92ba6..960d8f52a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/service.go @@ -21,40 +21,40 @@ import ( // You can use the AWS CodePipeline API to work with pipelines, stages, actions, // gates, and transitions, as described below. // -// Pipelines are models of automated release processes. Each pipeline is uniquely +// Pipelines are models of automated release processes. Each pipeline is uniquely // named, and consists of actions, gates, and stages. // // You can work with pipelines by calling: // -// CreatePipeline, which creates a uniquely-named pipeline. +// * CreatePipeline, which creates a uniquely-named pipeline. // -// DeletePipeline, which deletes the specified pipeline. +// * DeletePipeline, which deletes the specified pipeline. // -// GetPipeline, which returns information about a pipeline structure. +// * GetPipeline, which returns information about a pipeline structure. // -// GetPipelineExecution, which returns information about a specific execution -// of a pipeline. +// * GetPipelineExecution, which returns information about a specific execution +// of a pipeline. // -// GetPipelineState, which returns information about the current state of -// the stages and actions of a pipeline. +// * GetPipelineState, which returns information about the current state +// of the stages and actions of a pipeline. // -// ListPipelines, which gets a summary of all of the pipelines associated -// with your account. +// * ListPipelines, which gets a summary of all of the pipelines associated +// with your account. // -// StartPipelineExecution, which runs the the most recent revision of an -// artifact through the pipeline. +// * StartPipelineExecution, which runs the the most recent revision of an +// artifact through the pipeline. // -// UpdatePipeline, which updates a pipeline with edits or changes to the -// structure of the pipeline. +// * UpdatePipeline, which updates a pipeline with edits or changes to the +// structure of the pipeline. // -// Pipelines include stages, which are which are logical groupings of gates -// and actions. Each stage contains one or more actions that must complete before -// the next stage begins. A stage will result in success or failure. If a stage -// fails, then the pipeline stops at that stage and will remain stopped until -// either a new version of an artifact appears in the source location, or a -// user takes action to re-run the most recent artifact through the pipeline. -// You can call GetPipelineState, which displays the status of a pipeline, including -// the status of stages in the pipeline, or GetPipeline, which returns the entire +// Pipelines include stages, which are logical groupings of gates and actions. +// Each stage contains one or more actions that must complete before the next +// stage begins. A stage will result in success or failure. If a stage fails, +// then the pipeline stops at that stage and will remain stopped until either +// a new version of an artifact appears in the source location, or a user takes +// action to re-run the most recent artifact through the pipeline. You can call +// GetPipelineState, which displays the status of a pipeline, including the +// status of stages in the pipeline, or GetPipeline, which returns the entire // structure of the pipeline, including the stages of that pipeline. For more // information about the structure of stages and actions, also refer to the // AWS CodePipeline Pipeline Structure Reference (http://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-structure.html). @@ -71,56 +71,58 @@ import ( // // You can work with transitions by calling: // -// DisableStageTransition, which prevents artifacts from transitioning to -// the next stage in a pipeline. +// * DisableStageTransition, which prevents artifacts from transitioning +// to the next stage in a pipeline. // -// EnableStageTransition, which enables transition of artifacts between -// stages in a pipeline. +// * EnableStageTransition, which enables transition of artifacts between +// stages in a pipeline. // -// Using the API to integrate with AWS CodePipeline +// Using the API to integrate with AWS CodePipeline // // For third-party integrators or developers who want to create their own integrations // with AWS CodePipeline, the expected sequence varies from the standard API // user. In order to integrate with AWS CodePipeline, developers will need to // work with the following items: // -// Jobs, which are instances of an action. For example, a job for a source -// action might import a revision of an artifact from a source. +// Jobs, which are instances of an action. For example, a job for a source action +// might import a revision of an artifact from a source. // // You can work with jobs by calling: // -// AcknowledgeJob, which confirms whether a job worker has received the -// specified job, +// * AcknowledgeJob, which confirms whether a job worker has received the +// specified job, // -// GetJobDetails, which returns the details of a job, +// * GetJobDetails, which returns the details of a job, // -// PollForJobs, which determines whether there are any jobs to act upon, +// * PollForJobs, which determines whether there are any jobs to act upon, // -// PutJobFailureResult, which provides details of a job failure, and // -// PutJobSuccessResult, which provides details of a job success. +// * PutJobFailureResult, which provides details of a job failure, and // -// Third party jobs, which are instances of an action created by a partner -// action and integrated into AWS CodePipeline. Partner actions are created -// by members of the AWS Partner Network. +// * PutJobSuccessResult, which provides details of a job success. +// +// Third party jobs, which are instances of an action created by a partner action +// and integrated into AWS CodePipeline. Partner actions are created by members +// of the AWS Partner Network. // // You can work with third party jobs by calling: // -// AcknowledgeThirdPartyJob, which confirms whether a job worker has received -// the specified job, +// * AcknowledgeThirdPartyJob, which confirms whether a job worker has received +// the specified job, // -// GetThirdPartyJobDetails, which requests the details of a job for a partner -// action, +// * GetThirdPartyJobDetails, which requests the details of a job for a partner +// action, // -// PollForThirdPartyJobs, which determines whether there are any jobs to -// act upon, +// * PollForThirdPartyJobs, which determines whether there are any jobs to +// act upon, // -// PutThirdPartyJobFailureResult, which provides details of a job failure, -// and +// * PutThirdPartyJobFailureResult, which provides details of a job failure, +// and // -// PutThirdPartyJobSuccessResult, which provides details of a job success. -//The service client's operations are safe to be used concurrently. +// * PutThirdPartyJobSuccessResult, which provides details of a job success. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09 type CodePipeline struct { *client.Client } @@ -131,8 +133,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "codepipeline" +// Service information constants +const ( + ServiceName = "codepipeline" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the CodePipeline client with a session. // If additional configuration is needed for the client instance use the optional @@ -145,17 +150,18 @@ const ServiceName = "codepipeline" // // Create a CodePipeline client with additional configuration // svc := codepipeline.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CodePipeline { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CodePipeline { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CodePipeline { svc := &CodePipeline{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-07-09", diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/api.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/api.go index 7fad8bca7..064adb4b3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/api.go @@ -39,6 +39,7 @@ const opCreateIdentityPool = "CreateIdentityPool" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/CreateIdentityPool func (c *CognitoIdentity) CreateIdentityPoolRequest(input *CreateIdentityPoolInput) (req *request.Request, output *IdentityPool) { op := &request.Operation{ Name: opCreateIdentityPool, @@ -50,9 +51,8 @@ func (c *CognitoIdentity) CreateIdentityPoolRequest(input *CreateIdentityPoolInp input = &CreateIdentityPoolInput{} } - req = c.newRequest(op, input, output) output = &IdentityPool{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -61,9 +61,18 @@ func (c *CognitoIdentity) CreateIdentityPoolRequest(input *CreateIdentityPoolInp // Creates a new identity pool. The identity pool is a store of user identity // information that is specific to your AWS account. The limit on identity pools // is 60 per account. The keys for SupportedLoginProviders are as follows: -// Facebook: graph.facebook.com Google: accounts.google.com Amazon: www.amazon.com -// Twitter: api.twitter.com Digits: www.digits.com You must use AWS Developer -// credentials to call this API. +// +// * Facebook: graph.facebook.com +// +// * Google: accounts.google.com +// +// * Amazon: www.amazon.com +// +// * Twitter: api.twitter.com +// +// * Digits: www.digits.com +// +// You must use AWS Developer credentials to call this API. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -73,25 +82,26 @@ func (c *CognitoIdentity) CreateIdentityPoolRequest(input *CreateIdentityPoolInp // API operation CreateIdentityPool for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown for missing or bad input parameter(s). // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // Thrown when a user tries to use a login which is already linked to another // account. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown when a request is throttled. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Thrown when the service encounters an error during processing the request. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // Thrown when the total number of user pools has exceeded a preset limit. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/CreateIdentityPool func (c *CognitoIdentity) CreateIdentityPool(input *CreateIdentityPoolInput) (*IdentityPool, error) { req, out := c.CreateIdentityPoolRequest(input) err := req.Send() @@ -124,6 +134,7 @@ const opDeleteIdentities = "DeleteIdentities" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/DeleteIdentities func (c *CognitoIdentity) DeleteIdentitiesRequest(input *DeleteIdentitiesInput) (req *request.Request, output *DeleteIdentitiesOutput) { op := &request.Operation{ Name: opDeleteIdentities, @@ -135,9 +146,8 @@ func (c *CognitoIdentity) DeleteIdentitiesRequest(input *DeleteIdentitiesInput) input = &DeleteIdentitiesInput{} } - req = c.newRequest(op, input, output) output = &DeleteIdentitiesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -156,15 +166,16 @@ func (c *CognitoIdentity) DeleteIdentitiesRequest(input *DeleteIdentitiesInput) // API operation DeleteIdentities for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown for missing or bad input parameter(s). // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown when a request is throttled. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Thrown when the service encounters an error during processing the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/DeleteIdentities func (c *CognitoIdentity) DeleteIdentities(input *DeleteIdentitiesInput) (*DeleteIdentitiesOutput, error) { req, out := c.DeleteIdentitiesRequest(input) err := req.Send() @@ -197,6 +208,7 @@ const opDeleteIdentityPool = "DeleteIdentityPool" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/DeleteIdentityPool func (c *CognitoIdentity) DeleteIdentityPoolRequest(input *DeleteIdentityPoolInput) (req *request.Request, output *DeleteIdentityPoolOutput) { op := &request.Operation{ Name: opDeleteIdentityPool, @@ -208,11 +220,10 @@ func (c *CognitoIdentity) DeleteIdentityPoolRequest(input *DeleteIdentityPoolInp input = &DeleteIdentityPoolInput{} } + output = &DeleteIdentityPoolOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteIdentityPoolOutput{} - req.Data = output return } @@ -231,22 +242,23 @@ func (c *CognitoIdentity) DeleteIdentityPoolRequest(input *DeleteIdentityPoolInp // API operation DeleteIdentityPool for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown for missing or bad input parameter(s). // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown when a request is throttled. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Thrown when the service encounters an error during processing the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/DeleteIdentityPool func (c *CognitoIdentity) DeleteIdentityPool(input *DeleteIdentityPoolInput) (*DeleteIdentityPoolOutput, error) { req, out := c.DeleteIdentityPoolRequest(input) err := req.Send() @@ -279,6 +291,7 @@ const opDescribeIdentity = "DescribeIdentity" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/DescribeIdentity func (c *CognitoIdentity) DescribeIdentityRequest(input *DescribeIdentityInput) (req *request.Request, output *IdentityDescription) { op := &request.Operation{ Name: opDescribeIdentity, @@ -290,9 +303,8 @@ func (c *CognitoIdentity) DescribeIdentityRequest(input *DescribeIdentityInput) input = &DescribeIdentityInput{} } - req = c.newRequest(op, input, output) output = &IdentityDescription{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -311,22 +323,23 @@ func (c *CognitoIdentity) DescribeIdentityRequest(input *DescribeIdentityInput) // API operation DescribeIdentity for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown for missing or bad input parameter(s). // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown when a request is throttled. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Thrown when the service encounters an error during processing the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/DescribeIdentity func (c *CognitoIdentity) DescribeIdentity(input *DescribeIdentityInput) (*IdentityDescription, error) { req, out := c.DescribeIdentityRequest(input) err := req.Send() @@ -359,6 +372,7 @@ const opDescribeIdentityPool = "DescribeIdentityPool" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/DescribeIdentityPool func (c *CognitoIdentity) DescribeIdentityPoolRequest(input *DescribeIdentityPoolInput) (req *request.Request, output *IdentityPool) { op := &request.Operation{ Name: opDescribeIdentityPool, @@ -370,9 +384,8 @@ func (c *CognitoIdentity) DescribeIdentityPoolRequest(input *DescribeIdentityPoo input = &DescribeIdentityPoolInput{} } - req = c.newRequest(op, input, output) output = &IdentityPool{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -391,22 +404,23 @@ func (c *CognitoIdentity) DescribeIdentityPoolRequest(input *DescribeIdentityPoo // API operation DescribeIdentityPool for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown for missing or bad input parameter(s). // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown when a request is throttled. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Thrown when the service encounters an error during processing the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/DescribeIdentityPool func (c *CognitoIdentity) DescribeIdentityPool(input *DescribeIdentityPoolInput) (*IdentityPool, error) { req, out := c.DescribeIdentityPoolRequest(input) err := req.Send() @@ -439,6 +453,7 @@ const opGetCredentialsForIdentity = "GetCredentialsForIdentity" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetCredentialsForIdentity func (c *CognitoIdentity) GetCredentialsForIdentityRequest(input *GetCredentialsForIdentityInput) (req *request.Request, output *GetCredentialsForIdentityOutput) { op := &request.Operation{ Name: opGetCredentialsForIdentity, @@ -450,9 +465,8 @@ func (c *CognitoIdentity) GetCredentialsForIdentityRequest(input *GetCredentials input = &GetCredentialsForIdentityInput{} } - req = c.newRequest(op, input, output) output = &GetCredentialsForIdentityOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -473,34 +487,35 @@ func (c *CognitoIdentity) GetCredentialsForIdentityRequest(input *GetCredentials // API operation GetCredentialsForIdentity for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown for missing or bad input parameter(s). // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // Thrown when a user tries to use a login which is already linked to another // account. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown when a request is throttled. // -// * InvalidIdentityPoolConfigurationException +// * ErrCodeInvalidIdentityPoolConfigurationException "InvalidIdentityPoolConfigurationException" // Thrown if the identity pool has no role associated for the given auth type // (auth/unauth) or if the AssumeRole fails. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Thrown when the service encounters an error during processing the request. // -// * ExternalServiceException +// * ErrCodeExternalServiceException "ExternalServiceException" // An exception thrown when a dependent service such as Facebook or Twitter // is not responding // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetCredentialsForIdentity func (c *CognitoIdentity) GetCredentialsForIdentity(input *GetCredentialsForIdentityInput) (*GetCredentialsForIdentityOutput, error) { req, out := c.GetCredentialsForIdentityRequest(input) err := req.Send() @@ -533,6 +548,7 @@ const opGetId = "GetId" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetId func (c *CognitoIdentity) GetIdRequest(input *GetIdInput) (req *request.Request, output *GetIdOutput) { op := &request.Operation{ Name: opGetId, @@ -544,9 +560,8 @@ func (c *CognitoIdentity) GetIdRequest(input *GetIdInput) (req *request.Request, input = &GetIdInput{} } - req = c.newRequest(op, input, output) output = &GetIdOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -565,33 +580,34 @@ func (c *CognitoIdentity) GetIdRequest(input *GetIdInput) (req *request.Request, // API operation GetId for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown for missing or bad input parameter(s). // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // Thrown when a user tries to use a login which is already linked to another // account. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown when a request is throttled. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Thrown when the service encounters an error during processing the request. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // Thrown when the total number of user pools has exceeded a preset limit. // -// * ExternalServiceException +// * ErrCodeExternalServiceException "ExternalServiceException" // An exception thrown when a dependent service such as Facebook or Twitter // is not responding // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetId func (c *CognitoIdentity) GetId(input *GetIdInput) (*GetIdOutput, error) { req, out := c.GetIdRequest(input) err := req.Send() @@ -624,6 +640,7 @@ const opGetIdentityPoolRoles = "GetIdentityPoolRoles" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetIdentityPoolRoles func (c *CognitoIdentity) GetIdentityPoolRolesRequest(input *GetIdentityPoolRolesInput) (req *request.Request, output *GetIdentityPoolRolesOutput) { op := &request.Operation{ Name: opGetIdentityPoolRoles, @@ -635,9 +652,8 @@ func (c *CognitoIdentity) GetIdentityPoolRolesRequest(input *GetIdentityPoolRole input = &GetIdentityPoolRolesInput{} } - req = c.newRequest(op, input, output) output = &GetIdentityPoolRolesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -655,26 +671,27 @@ func (c *CognitoIdentity) GetIdentityPoolRolesRequest(input *GetIdentityPoolRole // API operation GetIdentityPoolRoles for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown for missing or bad input parameter(s). // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // Thrown when a user tries to use a login which is already linked to another // account. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown when a request is throttled. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Thrown when the service encounters an error during processing the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetIdentityPoolRoles func (c *CognitoIdentity) GetIdentityPoolRoles(input *GetIdentityPoolRolesInput) (*GetIdentityPoolRolesOutput, error) { req, out := c.GetIdentityPoolRolesRequest(input) err := req.Send() @@ -707,6 +724,7 @@ const opGetOpenIdToken = "GetOpenIdToken" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetOpenIdToken func (c *CognitoIdentity) GetOpenIdTokenRequest(input *GetOpenIdTokenInput) (req *request.Request, output *GetOpenIdTokenOutput) { op := &request.Operation{ Name: opGetOpenIdToken, @@ -718,9 +736,8 @@ func (c *CognitoIdentity) GetOpenIdTokenRequest(input *GetOpenIdTokenInput) (req input = &GetOpenIdTokenInput{} } - req = c.newRequest(op, input, output) output = &GetOpenIdTokenOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -742,30 +759,31 @@ func (c *CognitoIdentity) GetOpenIdTokenRequest(input *GetOpenIdTokenInput) (req // API operation GetOpenIdToken for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown for missing or bad input parameter(s). // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // Thrown when a user tries to use a login which is already linked to another // account. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown when a request is throttled. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Thrown when the service encounters an error during processing the request. // -// * ExternalServiceException +// * ErrCodeExternalServiceException "ExternalServiceException" // An exception thrown when a dependent service such as Facebook or Twitter // is not responding // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetOpenIdToken func (c *CognitoIdentity) GetOpenIdToken(input *GetOpenIdTokenInput) (*GetOpenIdTokenOutput, error) { req, out := c.GetOpenIdTokenRequest(input) err := req.Send() @@ -798,6 +816,7 @@ const opGetOpenIdTokenForDeveloperIdentity = "GetOpenIdTokenForDeveloperIdentity // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetOpenIdTokenForDeveloperIdentity func (c *CognitoIdentity) GetOpenIdTokenForDeveloperIdentityRequest(input *GetOpenIdTokenForDeveloperIdentityInput) (req *request.Request, output *GetOpenIdTokenForDeveloperIdentityOutput) { op := &request.Operation{ Name: opGetOpenIdTokenForDeveloperIdentity, @@ -809,9 +828,8 @@ func (c *CognitoIdentity) GetOpenIdTokenForDeveloperIdentityRequest(input *GetOp input = &GetOpenIdTokenForDeveloperIdentityInput{} } - req = c.newRequest(op, input, output) output = &GetOpenIdTokenForDeveloperIdentityOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -824,8 +842,8 @@ func (c *CognitoIdentity) GetOpenIdTokenForDeveloperIdentityRequest(input *GetOp // identity pool. The developer provider is the "domain" by which Cognito will // refer to your users. // -// You can use GetOpenIdTokenForDeveloperIdentity to create a new identity -// and to link new logins (that is, user credentials issued by a public provider +// You can use GetOpenIdTokenForDeveloperIdentity to create a new identity and +// to link new logins (that is, user credentials issued by a public provider // or developer provider) to an existing identity. When you want to create a // new identity, the IdentityId should be null. When you want to associate a // new login with an existing authenticated/unauthenticated identity, you can @@ -842,30 +860,31 @@ func (c *CognitoIdentity) GetOpenIdTokenForDeveloperIdentityRequest(input *GetOp // API operation GetOpenIdTokenForDeveloperIdentity for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown for missing or bad input parameter(s). // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // Thrown when a user tries to use a login which is already linked to another // account. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown when a request is throttled. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Thrown when the service encounters an error during processing the request. // -// * DeveloperUserAlreadyRegisteredException +// * ErrCodeDeveloperUserAlreadyRegisteredException "DeveloperUserAlreadyRegisteredException" // The provided developer user identifier is already registered with Cognito // under a different identity ID. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetOpenIdTokenForDeveloperIdentity func (c *CognitoIdentity) GetOpenIdTokenForDeveloperIdentity(input *GetOpenIdTokenForDeveloperIdentityInput) (*GetOpenIdTokenForDeveloperIdentityOutput, error) { req, out := c.GetOpenIdTokenForDeveloperIdentityRequest(input) err := req.Send() @@ -898,6 +917,7 @@ const opListIdentities = "ListIdentities" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/ListIdentities func (c *CognitoIdentity) ListIdentitiesRequest(input *ListIdentitiesInput) (req *request.Request, output *ListIdentitiesOutput) { op := &request.Operation{ Name: opListIdentities, @@ -909,9 +929,8 @@ func (c *CognitoIdentity) ListIdentitiesRequest(input *ListIdentitiesInput) (req input = &ListIdentitiesInput{} } - req = c.newRequest(op, input, output) output = &ListIdentitiesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -929,22 +948,23 @@ func (c *CognitoIdentity) ListIdentitiesRequest(input *ListIdentitiesInput) (req // API operation ListIdentities for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown for missing or bad input parameter(s). // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown when a request is throttled. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Thrown when the service encounters an error during processing the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/ListIdentities func (c *CognitoIdentity) ListIdentities(input *ListIdentitiesInput) (*ListIdentitiesOutput, error) { req, out := c.ListIdentitiesRequest(input) err := req.Send() @@ -977,6 +997,7 @@ const opListIdentityPools = "ListIdentityPools" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/ListIdentityPools func (c *CognitoIdentity) ListIdentityPoolsRequest(input *ListIdentityPoolsInput) (req *request.Request, output *ListIdentityPoolsOutput) { op := &request.Operation{ Name: opListIdentityPools, @@ -988,9 +1009,8 @@ func (c *CognitoIdentity) ListIdentityPoolsRequest(input *ListIdentityPoolsInput input = &ListIdentityPoolsInput{} } - req = c.newRequest(op, input, output) output = &ListIdentityPoolsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1008,18 +1028,19 @@ func (c *CognitoIdentity) ListIdentityPoolsRequest(input *ListIdentityPoolsInput // API operation ListIdentityPools for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown for missing or bad input parameter(s). // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown when a request is throttled. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Thrown when the service encounters an error during processing the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/ListIdentityPools func (c *CognitoIdentity) ListIdentityPools(input *ListIdentityPoolsInput) (*ListIdentityPoolsOutput, error) { req, out := c.ListIdentityPoolsRequest(input) err := req.Send() @@ -1052,6 +1073,7 @@ const opLookupDeveloperIdentity = "LookupDeveloperIdentity" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/LookupDeveloperIdentity func (c *CognitoIdentity) LookupDeveloperIdentityRequest(input *LookupDeveloperIdentityInput) (req *request.Request, output *LookupDeveloperIdentityOutput) { op := &request.Operation{ Name: opLookupDeveloperIdentity, @@ -1063,9 +1085,8 @@ func (c *CognitoIdentity) LookupDeveloperIdentityRequest(input *LookupDeveloperI input = &LookupDeveloperIdentityInput{} } - req = c.newRequest(op, input, output) output = &LookupDeveloperIdentityOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1090,26 +1111,27 @@ func (c *CognitoIdentity) LookupDeveloperIdentityRequest(input *LookupDeveloperI // API operation LookupDeveloperIdentity for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown for missing or bad input parameter(s). // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // Thrown when a user tries to use a login which is already linked to another // account. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown when a request is throttled. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Thrown when the service encounters an error during processing the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/LookupDeveloperIdentity func (c *CognitoIdentity) LookupDeveloperIdentity(input *LookupDeveloperIdentityInput) (*LookupDeveloperIdentityOutput, error) { req, out := c.LookupDeveloperIdentityRequest(input) err := req.Send() @@ -1142,6 +1164,7 @@ const opMergeDeveloperIdentities = "MergeDeveloperIdentities" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/MergeDeveloperIdentities func (c *CognitoIdentity) MergeDeveloperIdentitiesRequest(input *MergeDeveloperIdentitiesInput) (req *request.Request, output *MergeDeveloperIdentitiesOutput) { op := &request.Operation{ Name: opMergeDeveloperIdentities, @@ -1153,9 +1176,8 @@ func (c *CognitoIdentity) MergeDeveloperIdentitiesRequest(input *MergeDeveloperI input = &MergeDeveloperIdentitiesInput{} } - req = c.newRequest(op, input, output) output = &MergeDeveloperIdentitiesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1179,26 +1201,27 @@ func (c *CognitoIdentity) MergeDeveloperIdentitiesRequest(input *MergeDeveloperI // API operation MergeDeveloperIdentities for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown for missing or bad input parameter(s). // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // Thrown when a user tries to use a login which is already linked to another // account. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown when a request is throttled. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Thrown when the service encounters an error during processing the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/MergeDeveloperIdentities func (c *CognitoIdentity) MergeDeveloperIdentities(input *MergeDeveloperIdentitiesInput) (*MergeDeveloperIdentitiesOutput, error) { req, out := c.MergeDeveloperIdentitiesRequest(input) err := req.Send() @@ -1231,6 +1254,7 @@ const opSetIdentityPoolRoles = "SetIdentityPoolRoles" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/SetIdentityPoolRoles func (c *CognitoIdentity) SetIdentityPoolRolesRequest(input *SetIdentityPoolRolesInput) (req *request.Request, output *SetIdentityPoolRolesOutput) { op := &request.Operation{ Name: opSetIdentityPoolRoles, @@ -1242,11 +1266,10 @@ func (c *CognitoIdentity) SetIdentityPoolRolesRequest(input *SetIdentityPoolRole input = &SetIdentityPoolRolesInput{} } + output = &SetIdentityPoolRolesOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetIdentityPoolRolesOutput{} - req.Data = output return } @@ -1265,29 +1288,30 @@ func (c *CognitoIdentity) SetIdentityPoolRolesRequest(input *SetIdentityPoolRole // API operation SetIdentityPoolRoles for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown for missing or bad input parameter(s). // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // Thrown when a user tries to use a login which is already linked to another // account. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown when a request is throttled. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Thrown when the service encounters an error during processing the request. // -// * ConcurrentModificationException +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" // Thrown if there are parallel requests to modify a resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/SetIdentityPoolRoles func (c *CognitoIdentity) SetIdentityPoolRoles(input *SetIdentityPoolRolesInput) (*SetIdentityPoolRolesOutput, error) { req, out := c.SetIdentityPoolRolesRequest(input) err := req.Send() @@ -1320,6 +1344,7 @@ const opUnlinkDeveloperIdentity = "UnlinkDeveloperIdentity" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/UnlinkDeveloperIdentity func (c *CognitoIdentity) UnlinkDeveloperIdentityRequest(input *UnlinkDeveloperIdentityInput) (req *request.Request, output *UnlinkDeveloperIdentityOutput) { op := &request.Operation{ Name: opUnlinkDeveloperIdentity, @@ -1331,11 +1356,10 @@ func (c *CognitoIdentity) UnlinkDeveloperIdentityRequest(input *UnlinkDeveloperI input = &UnlinkDeveloperIdentityInput{} } + output = &UnlinkDeveloperIdentityOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UnlinkDeveloperIdentityOutput{} - req.Data = output return } @@ -1356,26 +1380,27 @@ func (c *CognitoIdentity) UnlinkDeveloperIdentityRequest(input *UnlinkDeveloperI // API operation UnlinkDeveloperIdentity for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown for missing or bad input parameter(s). // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // Thrown when a user tries to use a login which is already linked to another // account. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown when a request is throttled. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Thrown when the service encounters an error during processing the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/UnlinkDeveloperIdentity func (c *CognitoIdentity) UnlinkDeveloperIdentity(input *UnlinkDeveloperIdentityInput) (*UnlinkDeveloperIdentityOutput, error) { req, out := c.UnlinkDeveloperIdentityRequest(input) err := req.Send() @@ -1408,6 +1433,7 @@ const opUnlinkIdentity = "UnlinkIdentity" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/UnlinkIdentity func (c *CognitoIdentity) UnlinkIdentityRequest(input *UnlinkIdentityInput) (req *request.Request, output *UnlinkIdentityOutput) { op := &request.Operation{ Name: opUnlinkIdentity, @@ -1419,11 +1445,10 @@ func (c *CognitoIdentity) UnlinkIdentityRequest(input *UnlinkIdentityInput) (req input = &UnlinkIdentityInput{} } + output = &UnlinkIdentityOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UnlinkIdentityOutput{} - req.Data = output return } @@ -1443,30 +1468,31 @@ func (c *CognitoIdentity) UnlinkIdentityRequest(input *UnlinkIdentityInput) (req // API operation UnlinkIdentity for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown for missing or bad input parameter(s). // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // Thrown when a user tries to use a login which is already linked to another // account. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown when a request is throttled. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Thrown when the service encounters an error during processing the request. // -// * ExternalServiceException +// * ErrCodeExternalServiceException "ExternalServiceException" // An exception thrown when a dependent service such as Facebook or Twitter // is not responding // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/UnlinkIdentity func (c *CognitoIdentity) UnlinkIdentity(input *UnlinkIdentityInput) (*UnlinkIdentityOutput, error) { req, out := c.UnlinkIdentityRequest(input) err := req.Send() @@ -1499,6 +1525,7 @@ const opUpdateIdentityPool = "UpdateIdentityPool" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/UpdateIdentityPool func (c *CognitoIdentity) UpdateIdentityPoolRequest(input *IdentityPool) (req *request.Request, output *IdentityPool) { op := &request.Operation{ Name: opUpdateIdentityPool, @@ -1510,9 +1537,8 @@ func (c *CognitoIdentity) UpdateIdentityPoolRequest(input *IdentityPool) (req *r input = &IdentityPool{} } - req = c.newRequest(op, input, output) output = &IdentityPool{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1530,32 +1556,33 @@ func (c *CognitoIdentity) UpdateIdentityPoolRequest(input *IdentityPool) (req *r // API operation UpdateIdentityPool for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown for missing or bad input parameter(s). // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // Thrown when a user tries to use a login which is already linked to another // account. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown when a request is throttled. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Thrown when the service encounters an error during processing the request. // -// * ConcurrentModificationException +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" // Thrown if there are parallel requests to modify a resource. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // Thrown when the total number of user pools has exceeded a preset limit. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/UpdateIdentityPool func (c *CognitoIdentity) UpdateIdentityPool(input *IdentityPool) (*IdentityPool, error) { req, out := c.UpdateIdentityPoolRequest(input) err := req.Send() @@ -1563,6 +1590,7 @@ func (c *CognitoIdentity) UpdateIdentityPool(input *IdentityPool) (*IdentityPool } // Input to the CreateIdentityPool action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/CreateIdentityPoolInput type CreateIdentityPoolInput struct { _ struct{} `type:"structure"` @@ -1571,7 +1599,7 @@ type CreateIdentityPoolInput struct { // AllowUnauthenticatedIdentities is a required field AllowUnauthenticatedIdentities *bool `type:"boolean" required:"true"` - // An array of Amazon Cognito Identity user pools. + // An array of Amazon Cognito Identity user pools and their client IDs. CognitoIdentityProviders []*Provider `type:"list"` // The "domain" by which Cognito will refer to your users. This name acts as @@ -1641,7 +1669,50 @@ func (s *CreateIdentityPoolInput) Validate() error { return nil } +// SetAllowUnauthenticatedIdentities sets the AllowUnauthenticatedIdentities field's value. +func (s *CreateIdentityPoolInput) SetAllowUnauthenticatedIdentities(v bool) *CreateIdentityPoolInput { + s.AllowUnauthenticatedIdentities = &v + return s +} + +// SetCognitoIdentityProviders sets the CognitoIdentityProviders field's value. +func (s *CreateIdentityPoolInput) SetCognitoIdentityProviders(v []*Provider) *CreateIdentityPoolInput { + s.CognitoIdentityProviders = v + return s +} + +// SetDeveloperProviderName sets the DeveloperProviderName field's value. +func (s *CreateIdentityPoolInput) SetDeveloperProviderName(v string) *CreateIdentityPoolInput { + s.DeveloperProviderName = &v + return s +} + +// SetIdentityPoolName sets the IdentityPoolName field's value. +func (s *CreateIdentityPoolInput) SetIdentityPoolName(v string) *CreateIdentityPoolInput { + s.IdentityPoolName = &v + return s +} + +// SetOpenIdConnectProviderARNs sets the OpenIdConnectProviderARNs field's value. +func (s *CreateIdentityPoolInput) SetOpenIdConnectProviderARNs(v []*string) *CreateIdentityPoolInput { + s.OpenIdConnectProviderARNs = v + return s +} + +// SetSamlProviderARNs sets the SamlProviderARNs field's value. +func (s *CreateIdentityPoolInput) SetSamlProviderARNs(v []*string) *CreateIdentityPoolInput { + s.SamlProviderARNs = v + return s +} + +// SetSupportedLoginProviders sets the SupportedLoginProviders field's value. +func (s *CreateIdentityPoolInput) SetSupportedLoginProviders(v map[string]*string) *CreateIdentityPoolInput { + s.SupportedLoginProviders = v + return s +} + // Credentials for the provided identity ID. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/Credentials type Credentials struct { _ struct{} `type:"structure"` @@ -1668,7 +1739,32 @@ func (s Credentials) GoString() string { return s.String() } +// SetAccessKeyId sets the AccessKeyId field's value. +func (s *Credentials) SetAccessKeyId(v string) *Credentials { + s.AccessKeyId = &v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *Credentials) SetExpiration(v time.Time) *Credentials { + s.Expiration = &v + return s +} + +// SetSecretKey sets the SecretKey field's value. +func (s *Credentials) SetSecretKey(v string) *Credentials { + s.SecretKey = &v + return s +} + +// SetSessionToken sets the SessionToken field's value. +func (s *Credentials) SetSessionToken(v string) *Credentials { + s.SessionToken = &v + return s +} + // Input to the DeleteIdentities action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/DeleteIdentitiesInput type DeleteIdentitiesInput struct { _ struct{} `type:"structure"` @@ -1704,7 +1800,14 @@ func (s *DeleteIdentitiesInput) Validate() error { return nil } +// SetIdentityIdsToDelete sets the IdentityIdsToDelete field's value. +func (s *DeleteIdentitiesInput) SetIdentityIdsToDelete(v []*string) *DeleteIdentitiesInput { + s.IdentityIdsToDelete = v + return s +} + // Returned in response to a successful DeleteIdentities operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/DeleteIdentitiesResponse type DeleteIdentitiesOutput struct { _ struct{} `type:"structure"` @@ -1723,7 +1826,14 @@ func (s DeleteIdentitiesOutput) GoString() string { return s.String() } +// SetUnprocessedIdentityIds sets the UnprocessedIdentityIds field's value. +func (s *DeleteIdentitiesOutput) SetUnprocessedIdentityIds(v []*UnprocessedIdentityId) *DeleteIdentitiesOutput { + s.UnprocessedIdentityIds = v + return s +} + // Input to the DeleteIdentityPool action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/DeleteIdentityPoolInput type DeleteIdentityPoolInput struct { _ struct{} `type:"structure"` @@ -1759,6 +1869,13 @@ func (s *DeleteIdentityPoolInput) Validate() error { return nil } +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *DeleteIdentityPoolInput) SetIdentityPoolId(v string) *DeleteIdentityPoolInput { + s.IdentityPoolId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/DeleteIdentityPoolOutput type DeleteIdentityPoolOutput struct { _ struct{} `type:"structure"` } @@ -1774,6 +1891,7 @@ func (s DeleteIdentityPoolOutput) GoString() string { } // Input to the DescribeIdentity action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/DescribeIdentityInput type DescribeIdentityInput struct { _ struct{} `type:"structure"` @@ -1809,7 +1927,14 @@ func (s *DescribeIdentityInput) Validate() error { return nil } +// SetIdentityId sets the IdentityId field's value. +func (s *DescribeIdentityInput) SetIdentityId(v string) *DescribeIdentityInput { + s.IdentityId = &v + return s +} + // Input to the DescribeIdentityPool action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/DescribeIdentityPoolInput type DescribeIdentityPoolInput struct { _ struct{} `type:"structure"` @@ -1845,7 +1970,14 @@ func (s *DescribeIdentityPoolInput) Validate() error { return nil } +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *DescribeIdentityPoolInput) SetIdentityPoolId(v string) *DescribeIdentityPoolInput { + s.IdentityPoolId = &v + return s +} + // Input to the GetCredentialsForIdentity action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetCredentialsForIdentityInput type GetCredentialsForIdentityInput struct { _ struct{} `type:"structure"` @@ -1893,7 +2025,26 @@ func (s *GetCredentialsForIdentityInput) Validate() error { return nil } +// SetCustomRoleArn sets the CustomRoleArn field's value. +func (s *GetCredentialsForIdentityInput) SetCustomRoleArn(v string) *GetCredentialsForIdentityInput { + s.CustomRoleArn = &v + return s +} + +// SetIdentityId sets the IdentityId field's value. +func (s *GetCredentialsForIdentityInput) SetIdentityId(v string) *GetCredentialsForIdentityInput { + s.IdentityId = &v + return s +} + +// SetLogins sets the Logins field's value. +func (s *GetCredentialsForIdentityInput) SetLogins(v map[string]*string) *GetCredentialsForIdentityInput { + s.Logins = v + return s +} + // Returned in response to a successful GetCredentialsForIdentity operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetCredentialsForIdentityResponse type GetCredentialsForIdentityOutput struct { _ struct{} `type:"structure"` @@ -1914,7 +2065,20 @@ func (s GetCredentialsForIdentityOutput) GoString() string { return s.String() } +// SetCredentials sets the Credentials field's value. +func (s *GetCredentialsForIdentityOutput) SetCredentials(v *Credentials) *GetCredentialsForIdentityOutput { + s.Credentials = v + return s +} + +// SetIdentityId sets the IdentityId field's value. +func (s *GetCredentialsForIdentityOutput) SetIdentityId(v string) *GetCredentialsForIdentityOutput { + s.IdentityId = &v + return s +} + // Input to the GetId action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetIdInput type GetIdInput struct { _ struct{} `type:"structure"` @@ -1927,10 +2091,19 @@ type GetIdInput struct { IdentityPoolId *string `min:"1" type:"string" required:"true"` // A set of optional name-value pairs that map provider names to provider tokens. + // The available provider names for Logins are as follows: + // + // * Facebook: graph.facebook.com + // + // * Amazon Cognito Identity Provider: cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789 // - // The available provider names for Logins are as follows: Facebook: graph.facebook.com - // Google: accounts.google.com Amazon: www.amazon.com Twitter: api.twitter.com - // Digits: www.digits.com + // * Google: accounts.google.com + // + // * Amazon: www.amazon.com + // + // * Twitter: api.twitter.com + // + // * Digits: www.digits.com Logins map[string]*string `type:"map"` } @@ -1963,7 +2136,26 @@ func (s *GetIdInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *GetIdInput) SetAccountId(v string) *GetIdInput { + s.AccountId = &v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *GetIdInput) SetIdentityPoolId(v string) *GetIdInput { + s.IdentityPoolId = &v + return s +} + +// SetLogins sets the Logins field's value. +func (s *GetIdInput) SetLogins(v map[string]*string) *GetIdInput { + s.Logins = v + return s +} + // Returned in response to a GetId request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetIdResponse type GetIdOutput struct { _ struct{} `type:"structure"` @@ -1981,7 +2173,14 @@ func (s GetIdOutput) GoString() string { return s.String() } +// SetIdentityId sets the IdentityId field's value. +func (s *GetIdOutput) SetIdentityId(v string) *GetIdOutput { + s.IdentityId = &v + return s +} + // Input to the GetIdentityPoolRoles action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetIdentityPoolRolesInput type GetIdentityPoolRolesInput struct { _ struct{} `type:"structure"` @@ -2017,13 +2216,25 @@ func (s *GetIdentityPoolRolesInput) Validate() error { return nil } +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *GetIdentityPoolRolesInput) SetIdentityPoolId(v string) *GetIdentityPoolRolesInput { + s.IdentityPoolId = &v + return s +} + // Returned in response to a successful GetIdentityPoolRoles operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetIdentityPoolRolesResponse type GetIdentityPoolRolesOutput struct { _ struct{} `type:"structure"` // An identity pool ID in the format REGION:GUID. IdentityPoolId *string `min:"1" type:"string"` + // How users for a specific identity provider are to mapped to roles. This is + // a String-to-RoleMapping object map. The string identifies the identity provider, + // for example, "graph.facebook.com" or "cognito-idp-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id". + RoleMappings map[string]*RoleMapping `type:"map"` + // The map of roles associated with this pool. Currently only authenticated // and unauthenticated roles are supported. Roles map[string]*string `type:"map"` @@ -2039,7 +2250,26 @@ func (s GetIdentityPoolRolesOutput) GoString() string { return s.String() } +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *GetIdentityPoolRolesOutput) SetIdentityPoolId(v string) *GetIdentityPoolRolesOutput { + s.IdentityPoolId = &v + return s +} + +// SetRoleMappings sets the RoleMappings field's value. +func (s *GetIdentityPoolRolesOutput) SetRoleMappings(v map[string]*RoleMapping) *GetIdentityPoolRolesOutput { + s.RoleMappings = v + return s +} + +// SetRoles sets the Roles field's value. +func (s *GetIdentityPoolRolesOutput) SetRoles(v map[string]*string) *GetIdentityPoolRolesOutput { + s.Roles = v + return s +} + // Input to the GetOpenIdTokenForDeveloperIdentity action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetOpenIdTokenForDeveloperIdentityInput type GetOpenIdTokenForDeveloperIdentityInput struct { _ struct{} `type:"structure"` @@ -2110,7 +2340,32 @@ func (s *GetOpenIdTokenForDeveloperIdentityInput) Validate() error { return nil } +// SetIdentityId sets the IdentityId field's value. +func (s *GetOpenIdTokenForDeveloperIdentityInput) SetIdentityId(v string) *GetOpenIdTokenForDeveloperIdentityInput { + s.IdentityId = &v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *GetOpenIdTokenForDeveloperIdentityInput) SetIdentityPoolId(v string) *GetOpenIdTokenForDeveloperIdentityInput { + s.IdentityPoolId = &v + return s +} + +// SetLogins sets the Logins field's value. +func (s *GetOpenIdTokenForDeveloperIdentityInput) SetLogins(v map[string]*string) *GetOpenIdTokenForDeveloperIdentityInput { + s.Logins = v + return s +} + +// SetTokenDuration sets the TokenDuration field's value. +func (s *GetOpenIdTokenForDeveloperIdentityInput) SetTokenDuration(v int64) *GetOpenIdTokenForDeveloperIdentityInput { + s.TokenDuration = &v + return s +} + // Returned in response to a successful GetOpenIdTokenForDeveloperIdentity request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetOpenIdTokenForDeveloperIdentityResponse type GetOpenIdTokenForDeveloperIdentityOutput struct { _ struct{} `type:"structure"` @@ -2131,7 +2386,20 @@ func (s GetOpenIdTokenForDeveloperIdentityOutput) GoString() string { return s.String() } +// SetIdentityId sets the IdentityId field's value. +func (s *GetOpenIdTokenForDeveloperIdentityOutput) SetIdentityId(v string) *GetOpenIdTokenForDeveloperIdentityOutput { + s.IdentityId = &v + return s +} + +// SetToken sets the Token field's value. +func (s *GetOpenIdTokenForDeveloperIdentityOutput) SetToken(v string) *GetOpenIdTokenForDeveloperIdentityOutput { + s.Token = &v + return s +} + // Input to the GetOpenIdToken action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetOpenIdTokenInput type GetOpenIdTokenInput struct { _ struct{} `type:"structure"` @@ -2142,8 +2410,9 @@ type GetOpenIdTokenInput struct { // A set of optional name-value pairs that map provider names to provider tokens. // When using graph.facebook.com and www.amazon.com, supply the access_token - // returned from the provider's authflow. For accounts.google.com or any other - // OpenId Connect provider, always include the id_token. + // returned from the provider's authflow. For accounts.google.com, an Amazon + // Cognito Identity Provider, or any other OpenId Connect provider, always include + // the id_token. Logins map[string]*string `type:"map"` } @@ -2173,7 +2442,20 @@ func (s *GetOpenIdTokenInput) Validate() error { return nil } +// SetIdentityId sets the IdentityId field's value. +func (s *GetOpenIdTokenInput) SetIdentityId(v string) *GetOpenIdTokenInput { + s.IdentityId = &v + return s +} + +// SetLogins sets the Logins field's value. +func (s *GetOpenIdTokenInput) SetLogins(v map[string]*string) *GetOpenIdTokenInput { + s.Logins = v + return s +} + // Returned in response to a successful GetOpenIdToken request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetOpenIdTokenResponse type GetOpenIdTokenOutput struct { _ struct{} `type:"structure"` @@ -2195,7 +2477,20 @@ func (s GetOpenIdTokenOutput) GoString() string { return s.String() } +// SetIdentityId sets the IdentityId field's value. +func (s *GetOpenIdTokenOutput) SetIdentityId(v string) *GetOpenIdTokenOutput { + s.IdentityId = &v + return s +} + +// SetToken sets the Token field's value. +func (s *GetOpenIdTokenOutput) SetToken(v string) *GetOpenIdTokenOutput { + s.Token = &v + return s +} + // A description of the identity. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/IdentityDescription type IdentityDescription struct { _ struct{} `type:"structure"` @@ -2222,7 +2517,32 @@ func (s IdentityDescription) GoString() string { return s.String() } -// An object representing a Cognito identity pool. +// SetCreationDate sets the CreationDate field's value. +func (s *IdentityDescription) SetCreationDate(v time.Time) *IdentityDescription { + s.CreationDate = &v + return s +} + +// SetIdentityId sets the IdentityId field's value. +func (s *IdentityDescription) SetIdentityId(v string) *IdentityDescription { + s.IdentityId = &v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *IdentityDescription) SetLastModifiedDate(v time.Time) *IdentityDescription { + s.LastModifiedDate = &v + return s +} + +// SetLogins sets the Logins field's value. +func (s *IdentityDescription) SetLogins(v []*string) *IdentityDescription { + s.Logins = v + return s +} + +// An object representing an Amazon Cognito identity pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/IdentityPool type IdentityPool struct { _ struct{} `type:"structure"` @@ -2306,7 +2626,56 @@ func (s *IdentityPool) Validate() error { return nil } +// SetAllowUnauthenticatedIdentities sets the AllowUnauthenticatedIdentities field's value. +func (s *IdentityPool) SetAllowUnauthenticatedIdentities(v bool) *IdentityPool { + s.AllowUnauthenticatedIdentities = &v + return s +} + +// SetCognitoIdentityProviders sets the CognitoIdentityProviders field's value. +func (s *IdentityPool) SetCognitoIdentityProviders(v []*Provider) *IdentityPool { + s.CognitoIdentityProviders = v + return s +} + +// SetDeveloperProviderName sets the DeveloperProviderName field's value. +func (s *IdentityPool) SetDeveloperProviderName(v string) *IdentityPool { + s.DeveloperProviderName = &v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *IdentityPool) SetIdentityPoolId(v string) *IdentityPool { + s.IdentityPoolId = &v + return s +} + +// SetIdentityPoolName sets the IdentityPoolName field's value. +func (s *IdentityPool) SetIdentityPoolName(v string) *IdentityPool { + s.IdentityPoolName = &v + return s +} + +// SetOpenIdConnectProviderARNs sets the OpenIdConnectProviderARNs field's value. +func (s *IdentityPool) SetOpenIdConnectProviderARNs(v []*string) *IdentityPool { + s.OpenIdConnectProviderARNs = v + return s +} + +// SetSamlProviderARNs sets the SamlProviderARNs field's value. +func (s *IdentityPool) SetSamlProviderARNs(v []*string) *IdentityPool { + s.SamlProviderARNs = v + return s +} + +// SetSupportedLoginProviders sets the SupportedLoginProviders field's value. +func (s *IdentityPool) SetSupportedLoginProviders(v map[string]*string) *IdentityPool { + s.SupportedLoginProviders = v + return s +} + // A description of the identity pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/IdentityPoolShortDescription type IdentityPoolShortDescription struct { _ struct{} `type:"structure"` @@ -2327,7 +2696,20 @@ func (s IdentityPoolShortDescription) GoString() string { return s.String() } +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *IdentityPoolShortDescription) SetIdentityPoolId(v string) *IdentityPoolShortDescription { + s.IdentityPoolId = &v + return s +} + +// SetIdentityPoolName sets the IdentityPoolName field's value. +func (s *IdentityPoolShortDescription) SetIdentityPoolName(v string) *IdentityPoolShortDescription { + s.IdentityPoolName = &v + return s +} + // Input to the ListIdentities action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/ListIdentitiesInput type ListIdentitiesInput struct { _ struct{} `type:"structure"` @@ -2385,7 +2767,32 @@ func (s *ListIdentitiesInput) Validate() error { return nil } +// SetHideDisabled sets the HideDisabled field's value. +func (s *ListIdentitiesInput) SetHideDisabled(v bool) *ListIdentitiesInput { + s.HideDisabled = &v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *ListIdentitiesInput) SetIdentityPoolId(v string) *ListIdentitiesInput { + s.IdentityPoolId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListIdentitiesInput) SetMaxResults(v int64) *ListIdentitiesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListIdentitiesInput) SetNextToken(v string) *ListIdentitiesInput { + s.NextToken = &v + return s +} + // The response to a ListIdentities request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/ListIdentitiesResponse type ListIdentitiesOutput struct { _ struct{} `type:"structure"` @@ -2409,7 +2816,26 @@ func (s ListIdentitiesOutput) GoString() string { return s.String() } +// SetIdentities sets the Identities field's value. +func (s *ListIdentitiesOutput) SetIdentities(v []*IdentityDescription) *ListIdentitiesOutput { + s.Identities = v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *ListIdentitiesOutput) SetIdentityPoolId(v string) *ListIdentitiesOutput { + s.IdentityPoolId = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListIdentitiesOutput) SetNextToken(v string) *ListIdentitiesOutput { + s.NextToken = &v + return s +} + // Input to the ListIdentityPools action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/ListIdentityPoolsInput type ListIdentityPoolsInput struct { _ struct{} `type:"structure"` @@ -2451,7 +2877,20 @@ func (s *ListIdentityPoolsInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *ListIdentityPoolsInput) SetMaxResults(v int64) *ListIdentityPoolsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListIdentityPoolsInput) SetNextToken(v string) *ListIdentityPoolsInput { + s.NextToken = &v + return s +} + // The result of a successful ListIdentityPools action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/ListIdentityPoolsResponse type ListIdentityPoolsOutput struct { _ struct{} `type:"structure"` @@ -2472,7 +2911,20 @@ func (s ListIdentityPoolsOutput) GoString() string { return s.String() } +// SetIdentityPools sets the IdentityPools field's value. +func (s *ListIdentityPoolsOutput) SetIdentityPools(v []*IdentityPoolShortDescription) *ListIdentityPoolsOutput { + s.IdentityPools = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListIdentityPoolsOutput) SetNextToken(v string) *ListIdentityPoolsOutput { + s.NextToken = &v + return s +} + // Input to the LookupDeveloperIdentityInput action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/LookupDeveloperIdentityInput type LookupDeveloperIdentityInput struct { _ struct{} `type:"structure"` @@ -2539,7 +2991,38 @@ func (s *LookupDeveloperIdentityInput) Validate() error { return nil } +// SetDeveloperUserIdentifier sets the DeveloperUserIdentifier field's value. +func (s *LookupDeveloperIdentityInput) SetDeveloperUserIdentifier(v string) *LookupDeveloperIdentityInput { + s.DeveloperUserIdentifier = &v + return s +} + +// SetIdentityId sets the IdentityId field's value. +func (s *LookupDeveloperIdentityInput) SetIdentityId(v string) *LookupDeveloperIdentityInput { + s.IdentityId = &v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *LookupDeveloperIdentityInput) SetIdentityPoolId(v string) *LookupDeveloperIdentityInput { + s.IdentityPoolId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *LookupDeveloperIdentityInput) SetMaxResults(v int64) *LookupDeveloperIdentityInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *LookupDeveloperIdentityInput) SetNextToken(v string) *LookupDeveloperIdentityInput { + s.NextToken = &v + return s +} + // Returned in response to a successful LookupDeveloperIdentity action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/LookupDeveloperIdentityResponse type LookupDeveloperIdentityOutput struct { _ struct{} `type:"structure"` @@ -2570,7 +3053,120 @@ func (s LookupDeveloperIdentityOutput) GoString() string { return s.String() } +// SetDeveloperUserIdentifierList sets the DeveloperUserIdentifierList field's value. +func (s *LookupDeveloperIdentityOutput) SetDeveloperUserIdentifierList(v []*string) *LookupDeveloperIdentityOutput { + s.DeveloperUserIdentifierList = v + return s +} + +// SetIdentityId sets the IdentityId field's value. +func (s *LookupDeveloperIdentityOutput) SetIdentityId(v string) *LookupDeveloperIdentityOutput { + s.IdentityId = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *LookupDeveloperIdentityOutput) SetNextToken(v string) *LookupDeveloperIdentityOutput { + s.NextToken = &v + return s +} + +// A rule that maps a claim name, a claim value, and a match type to a role +// ARN. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/MappingRule +type MappingRule struct { + _ struct{} `type:"structure"` + + // The claim name that must be present in the token, for example, "isAdmin" + // or "paid". + // + // Claim is a required field + Claim *string `min:"1" type:"string" required:"true"` + + // The match condition that specifies how closely the claim value in the IdP + // token must match Value. + // + // MatchType is a required field + MatchType *string `type:"string" required:"true" enum:"MappingRuleMatchType"` + + // The role ARN. + // + // RoleARN is a required field + RoleARN *string `min:"20" type:"string" required:"true"` + + // A brief string that the claim must match, for example, "paid" or "yes". + // + // Value is a required field + Value *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s MappingRule) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MappingRule) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MappingRule) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MappingRule"} + if s.Claim == nil { + invalidParams.Add(request.NewErrParamRequired("Claim")) + } + if s.Claim != nil && len(*s.Claim) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Claim", 1)) + } + if s.MatchType == nil { + invalidParams.Add(request.NewErrParamRequired("MatchType")) + } + if s.RoleARN == nil { + invalidParams.Add(request.NewErrParamRequired("RoleARN")) + } + if s.RoleARN != nil && len(*s.RoleARN) < 20 { + invalidParams.Add(request.NewErrParamMinLen("RoleARN", 20)) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + if s.Value != nil && len(*s.Value) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Value", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClaim sets the Claim field's value. +func (s *MappingRule) SetClaim(v string) *MappingRule { + s.Claim = &v + return s +} + +// SetMatchType sets the MatchType field's value. +func (s *MappingRule) SetMatchType(v string) *MappingRule { + s.MatchType = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *MappingRule) SetRoleARN(v string) *MappingRule { + s.RoleARN = &v + return s +} + +// SetValue sets the Value field's value. +func (s *MappingRule) SetValue(v string) *MappingRule { + s.Value = &v + return s +} + // Input to the MergeDeveloperIdentities action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/MergeDeveloperIdentitiesInput type MergeDeveloperIdentitiesInput struct { _ struct{} `type:"structure"` @@ -2643,7 +3239,32 @@ func (s *MergeDeveloperIdentitiesInput) Validate() error { return nil } +// SetDestinationUserIdentifier sets the DestinationUserIdentifier field's value. +func (s *MergeDeveloperIdentitiesInput) SetDestinationUserIdentifier(v string) *MergeDeveloperIdentitiesInput { + s.DestinationUserIdentifier = &v + return s +} + +// SetDeveloperProviderName sets the DeveloperProviderName field's value. +func (s *MergeDeveloperIdentitiesInput) SetDeveloperProviderName(v string) *MergeDeveloperIdentitiesInput { + s.DeveloperProviderName = &v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *MergeDeveloperIdentitiesInput) SetIdentityPoolId(v string) *MergeDeveloperIdentitiesInput { + s.IdentityPoolId = &v + return s +} + +// SetSourceUserIdentifier sets the SourceUserIdentifier field's value. +func (s *MergeDeveloperIdentitiesInput) SetSourceUserIdentifier(v string) *MergeDeveloperIdentitiesInput { + s.SourceUserIdentifier = &v + return s +} + // Returned in response to a successful MergeDeveloperIdentities action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/MergeDeveloperIdentitiesResponse type MergeDeveloperIdentitiesOutput struct { _ struct{} `type:"structure"` @@ -2661,8 +3282,15 @@ func (s MergeDeveloperIdentitiesOutput) GoString() string { return s.String() } +// SetIdentityId sets the IdentityId field's value. +func (s *MergeDeveloperIdentitiesOutput) SetIdentityId(v string) *MergeDeveloperIdentitiesOutput { + s.IdentityId = &v + return s +} + // A provider representing an Amazon Cognito Identity User Pool and its client // ID. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/CognitoIdentityProvider type Provider struct { _ struct{} `type:"structure"` @@ -2672,6 +3300,10 @@ type Provider struct { // The provider name for an Amazon Cognito Identity User Pool. For example, // cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789. ProviderName *string `min:"1" type:"string"` + + // TRUE if server-side token validation is enabled for the identity provider’s + // token. + ServerSideTokenCheck *bool `type:"boolean"` } // String returns the string representation @@ -2700,7 +3332,152 @@ func (s *Provider) Validate() error { return nil } +// SetClientId sets the ClientId field's value. +func (s *Provider) SetClientId(v string) *Provider { + s.ClientId = &v + return s +} + +// SetProviderName sets the ProviderName field's value. +func (s *Provider) SetProviderName(v string) *Provider { + s.ProviderName = &v + return s +} + +// SetServerSideTokenCheck sets the ServerSideTokenCheck field's value. +func (s *Provider) SetServerSideTokenCheck(v bool) *Provider { + s.ServerSideTokenCheck = &v + return s +} + +// A role mapping. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/RoleMapping +type RoleMapping struct { + _ struct{} `type:"structure"` + + // If you specify Token or Rules as the Type, AmbiguousRoleResolution is required. + // + // Specifies the action to be taken if either no rules match the claim value + // for the Rules type, or there is no cognito:preferred_role claim and there + // are multiple cognito:roles matches for the Token type. + AmbiguousRoleResolution *string `type:"string" enum:"AmbiguousRoleResolutionType"` + + // The rules to be used for mapping users to roles. + // + // If you specify Rules as the role mapping type, RulesConfiguration is required. + RulesConfiguration *RulesConfigurationType `type:"structure"` + + // The role mapping type. Token will use cognito:roles and cognito:preferred_role + // claims from the Cognito identity provider token to map groups to roles. Rules + // will attempt to match claims from the token to map to a role. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"RoleMappingType"` +} + +// String returns the string representation +func (s RoleMapping) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RoleMapping) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RoleMapping) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RoleMapping"} + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.RulesConfiguration != nil { + if err := s.RulesConfiguration.Validate(); err != nil { + invalidParams.AddNested("RulesConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAmbiguousRoleResolution sets the AmbiguousRoleResolution field's value. +func (s *RoleMapping) SetAmbiguousRoleResolution(v string) *RoleMapping { + s.AmbiguousRoleResolution = &v + return s +} + +// SetRulesConfiguration sets the RulesConfiguration field's value. +func (s *RoleMapping) SetRulesConfiguration(v *RulesConfigurationType) *RoleMapping { + s.RulesConfiguration = v + return s +} + +// SetType sets the Type field's value. +func (s *RoleMapping) SetType(v string) *RoleMapping { + s.Type = &v + return s +} + +// A container for rules. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/RulesConfigurationType +type RulesConfigurationType struct { + _ struct{} `type:"structure"` + + // An array of rules. You can specify up to 25 rules per identity provider. + // + // Rules are evaluated in order. The first one to match specifies the role. + // + // Rules is a required field + Rules []*MappingRule `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s RulesConfigurationType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RulesConfigurationType) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RulesConfigurationType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RulesConfigurationType"} + if s.Rules == nil { + invalidParams.Add(request.NewErrParamRequired("Rules")) + } + if s.Rules != nil && len(s.Rules) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Rules", 1)) + } + if s.Rules != nil { + for i, v := range s.Rules { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRules sets the Rules field's value. +func (s *RulesConfigurationType) SetRules(v []*MappingRule) *RulesConfigurationType { + s.Rules = v + return s +} + // Input to the SetIdentityPoolRoles action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/SetIdentityPoolRolesInput type SetIdentityPoolRolesInput struct { _ struct{} `type:"structure"` @@ -2709,6 +3486,13 @@ type SetIdentityPoolRolesInput struct { // IdentityPoolId is a required field IdentityPoolId *string `min:"1" type:"string" required:"true"` + // How users for a specific identity provider are to mapped to roles. This is + // a string to RoleMapping object map. The string identifies the identity provider, + // for example, "graph.facebook.com" or "cognito-idp-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id". + // + // Up to 25 rules can be specified per identity provider. + RoleMappings map[string]*RoleMapping `type:"map"` + // The map of roles associated with this pool. For a given role, the key will // be either "authenticated" or "unauthenticated" and the value will be the // Role ARN. @@ -2739,6 +3523,16 @@ func (s *SetIdentityPoolRolesInput) Validate() error { if s.Roles == nil { invalidParams.Add(request.NewErrParamRequired("Roles")) } + if s.RoleMappings != nil { + for i, v := range s.RoleMappings { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RoleMappings", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -2746,6 +3540,25 @@ func (s *SetIdentityPoolRolesInput) Validate() error { return nil } +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *SetIdentityPoolRolesInput) SetIdentityPoolId(v string) *SetIdentityPoolRolesInput { + s.IdentityPoolId = &v + return s +} + +// SetRoleMappings sets the RoleMappings field's value. +func (s *SetIdentityPoolRolesInput) SetRoleMappings(v map[string]*RoleMapping) *SetIdentityPoolRolesInput { + s.RoleMappings = v + return s +} + +// SetRoles sets the Roles field's value. +func (s *SetIdentityPoolRolesInput) SetRoles(v map[string]*string) *SetIdentityPoolRolesInput { + s.Roles = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/SetIdentityPoolRolesOutput type SetIdentityPoolRolesOutput struct { _ struct{} `type:"structure"` } @@ -2761,6 +3574,7 @@ func (s SetIdentityPoolRolesOutput) GoString() string { } // Input to the UnlinkDeveloperIdentity action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/UnlinkDeveloperIdentityInput type UnlinkDeveloperIdentityInput struct { _ struct{} `type:"structure"` @@ -2829,6 +3643,31 @@ func (s *UnlinkDeveloperIdentityInput) Validate() error { return nil } +// SetDeveloperProviderName sets the DeveloperProviderName field's value. +func (s *UnlinkDeveloperIdentityInput) SetDeveloperProviderName(v string) *UnlinkDeveloperIdentityInput { + s.DeveloperProviderName = &v + return s +} + +// SetDeveloperUserIdentifier sets the DeveloperUserIdentifier field's value. +func (s *UnlinkDeveloperIdentityInput) SetDeveloperUserIdentifier(v string) *UnlinkDeveloperIdentityInput { + s.DeveloperUserIdentifier = &v + return s +} + +// SetIdentityId sets the IdentityId field's value. +func (s *UnlinkDeveloperIdentityInput) SetIdentityId(v string) *UnlinkDeveloperIdentityInput { + s.IdentityId = &v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *UnlinkDeveloperIdentityInput) SetIdentityPoolId(v string) *UnlinkDeveloperIdentityInput { + s.IdentityPoolId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/UnlinkDeveloperIdentityOutput type UnlinkDeveloperIdentityOutput struct { _ struct{} `type:"structure"` } @@ -2844,6 +3683,7 @@ func (s UnlinkDeveloperIdentityOutput) GoString() string { } // Input to the UnlinkIdentity action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/UnlinkIdentityInput type UnlinkIdentityInput struct { _ struct{} `type:"structure"` @@ -2895,6 +3735,25 @@ func (s *UnlinkIdentityInput) Validate() error { return nil } +// SetIdentityId sets the IdentityId field's value. +func (s *UnlinkIdentityInput) SetIdentityId(v string) *UnlinkIdentityInput { + s.IdentityId = &v + return s +} + +// SetLogins sets the Logins field's value. +func (s *UnlinkIdentityInput) SetLogins(v map[string]*string) *UnlinkIdentityInput { + s.Logins = v + return s +} + +// SetLoginsToRemove sets the LoginsToRemove field's value. +func (s *UnlinkIdentityInput) SetLoginsToRemove(v []*string) *UnlinkIdentityInput { + s.LoginsToRemove = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/UnlinkIdentityOutput type UnlinkIdentityOutput struct { _ struct{} `type:"structure"` } @@ -2911,6 +3770,7 @@ func (s UnlinkIdentityOutput) GoString() string { // An array of UnprocessedIdentityId objects, each of which contains an ErrorCode // and IdentityId. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/UnprocessedIdentityId type UnprocessedIdentityId struct { _ struct{} `type:"structure"` @@ -2931,6 +3791,26 @@ func (s UnprocessedIdentityId) GoString() string { return s.String() } +// SetErrorCode sets the ErrorCode field's value. +func (s *UnprocessedIdentityId) SetErrorCode(v string) *UnprocessedIdentityId { + s.ErrorCode = &v + return s +} + +// SetIdentityId sets the IdentityId field's value. +func (s *UnprocessedIdentityId) SetIdentityId(v string) *UnprocessedIdentityId { + s.IdentityId = &v + return s +} + +const ( + // AmbiguousRoleResolutionTypeAuthenticatedRole is a AmbiguousRoleResolutionType enum value + AmbiguousRoleResolutionTypeAuthenticatedRole = "AuthenticatedRole" + + // AmbiguousRoleResolutionTypeDeny is a AmbiguousRoleResolutionType enum value + AmbiguousRoleResolutionTypeDeny = "Deny" +) + const ( // ErrorCodeAccessDenied is a ErrorCode enum value ErrorCodeAccessDenied = "AccessDenied" @@ -2938,3 +3818,25 @@ const ( // ErrorCodeInternalServerError is a ErrorCode enum value ErrorCodeInternalServerError = "InternalServerError" ) + +const ( + // MappingRuleMatchTypeEquals is a MappingRuleMatchType enum value + MappingRuleMatchTypeEquals = "Equals" + + // MappingRuleMatchTypeContains is a MappingRuleMatchType enum value + MappingRuleMatchTypeContains = "Contains" + + // MappingRuleMatchTypeStartsWith is a MappingRuleMatchType enum value + MappingRuleMatchTypeStartsWith = "StartsWith" + + // MappingRuleMatchTypeNotEqual is a MappingRuleMatchType enum value + MappingRuleMatchTypeNotEqual = "NotEqual" +) + +const ( + // RoleMappingTypeToken is a RoleMappingType enum value + RoleMappingTypeToken = "Token" + + // RoleMappingTypeRules is a RoleMappingType enum value + RoleMappingTypeRules = "Rules" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface/interface.go index 24710ec6d..e5a68758a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCognitoIdentityClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/errors.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/errors.go new file mode 100644 index 000000000..d30a212bd --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/errors.go @@ -0,0 +1,77 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cognitoidentity + +const ( + + // ErrCodeConcurrentModificationException for service response error code + // "ConcurrentModificationException". + // + // Thrown if there are parallel requests to modify a resource. + ErrCodeConcurrentModificationException = "ConcurrentModificationException" + + // ErrCodeDeveloperUserAlreadyRegisteredException for service response error code + // "DeveloperUserAlreadyRegisteredException". + // + // The provided developer user identifier is already registered with Cognito + // under a different identity ID. + ErrCodeDeveloperUserAlreadyRegisteredException = "DeveloperUserAlreadyRegisteredException" + + // ErrCodeExternalServiceException for service response error code + // "ExternalServiceException". + // + // An exception thrown when a dependent service such as Facebook or Twitter + // is not responding + ErrCodeExternalServiceException = "ExternalServiceException" + + // ErrCodeInternalErrorException for service response error code + // "InternalErrorException". + // + // Thrown when the service encounters an error during processing the request. + ErrCodeInternalErrorException = "InternalErrorException" + + // ErrCodeInvalidIdentityPoolConfigurationException for service response error code + // "InvalidIdentityPoolConfigurationException". + // + // Thrown if the identity pool has no role associated for the given auth type + // (auth/unauth) or if the AssumeRole fails. + ErrCodeInvalidIdentityPoolConfigurationException = "InvalidIdentityPoolConfigurationException" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameterException". + // + // Thrown for missing or bad input parameter(s). + ErrCodeInvalidParameterException = "InvalidParameterException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // Thrown when the total number of user pools has exceeded a preset limit. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeNotAuthorizedException for service response error code + // "NotAuthorizedException". + // + // Thrown when a user is not authorized to access the requested resource. + ErrCodeNotAuthorizedException = "NotAuthorizedException" + + // ErrCodeResourceConflictException for service response error code + // "ResourceConflictException". + // + // Thrown when a user tries to use a login which is already linked to another + // account. + ErrCodeResourceConflictException = "ResourceConflictException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // Thrown when the requested resource (for example, a dataset or record) does + // not exist. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeTooManyRequestsException for service response error code + // "TooManyRequestsException". + // + // Thrown when a request is throttled. + ErrCodeTooManyRequestsException = "TooManyRequestsException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/examples_test.go index e5fbcd40a..be37de545 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCognitoIdentity_CreateIdentityPool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -29,8 +25,9 @@ func ExampleCognitoIdentity_CreateIdentityPool() { IdentityPoolName: aws.String("IdentityPoolName"), // Required CognitoIdentityProviders: []*cognitoidentity.Provider{ { // Required - ClientId: aws.String("ProviderClientId"), - ProviderName: aws.String("ProviderName"), + ClientId: aws.String("ProviderClientId"), + ProviderName: aws.String("ProviderName"), + ServerSideTokenCheck: aws.Bool(true), }, // More values... }, @@ -62,11 +59,7 @@ func ExampleCognitoIdentity_CreateIdentityPool() { } func ExampleCognitoIdentity_DeleteIdentities() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -90,11 +83,7 @@ func ExampleCognitoIdentity_DeleteIdentities() { } func ExampleCognitoIdentity_DeleteIdentityPool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -115,11 +104,7 @@ func ExampleCognitoIdentity_DeleteIdentityPool() { } func ExampleCognitoIdentity_DescribeIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -140,11 +125,7 @@ func ExampleCognitoIdentity_DescribeIdentity() { } func ExampleCognitoIdentity_DescribeIdentityPool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -165,11 +146,7 @@ func ExampleCognitoIdentity_DescribeIdentityPool() { } func ExampleCognitoIdentity_GetCredentialsForIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -195,11 +172,7 @@ func ExampleCognitoIdentity_GetCredentialsForIdentity() { } func ExampleCognitoIdentity_GetId() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -225,11 +198,7 @@ func ExampleCognitoIdentity_GetId() { } func ExampleCognitoIdentity_GetIdentityPoolRoles() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -250,11 +219,7 @@ func ExampleCognitoIdentity_GetIdentityPoolRoles() { } func ExampleCognitoIdentity_GetOpenIdToken() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -279,11 +244,7 @@ func ExampleCognitoIdentity_GetOpenIdToken() { } func ExampleCognitoIdentity_GetOpenIdTokenForDeveloperIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -310,11 +271,7 @@ func ExampleCognitoIdentity_GetOpenIdTokenForDeveloperIdentity() { } func ExampleCognitoIdentity_ListIdentities() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -338,11 +295,7 @@ func ExampleCognitoIdentity_ListIdentities() { } func ExampleCognitoIdentity_ListIdentityPools() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -364,11 +317,7 @@ func ExampleCognitoIdentity_ListIdentityPools() { } func ExampleCognitoIdentity_LookupDeveloperIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -393,11 +342,7 @@ func ExampleCognitoIdentity_LookupDeveloperIdentity() { } func ExampleCognitoIdentity_MergeDeveloperIdentities() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -421,11 +366,7 @@ func ExampleCognitoIdentity_MergeDeveloperIdentities() { } func ExampleCognitoIdentity_SetIdentityPoolRoles() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -435,6 +376,24 @@ func ExampleCognitoIdentity_SetIdentityPoolRoles() { "Key": aws.String("ARNString"), // Required // More values... }, + RoleMappings: map[string]*cognitoidentity.RoleMapping{ + "Key": { // Required + Type: aws.String("RoleMappingType"), // Required + AmbiguousRoleResolution: aws.String("AmbiguousRoleResolutionType"), + RulesConfiguration: &cognitoidentity.RulesConfigurationType{ + Rules: []*cognitoidentity.MappingRule{ // Required + { // Required + Claim: aws.String("ClaimName"), // Required + MatchType: aws.String("MappingRuleMatchType"), // Required + RoleARN: aws.String("ARNString"), // Required + Value: aws.String("ClaimValue"), // Required + }, + // More values... + }, + }, + }, + // More values... + }, } resp, err := svc.SetIdentityPoolRoles(params) @@ -450,11 +409,7 @@ func ExampleCognitoIdentity_SetIdentityPoolRoles() { } func ExampleCognitoIdentity_UnlinkDeveloperIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -478,11 +433,7 @@ func ExampleCognitoIdentity_UnlinkDeveloperIdentity() { } func ExampleCognitoIdentity_UnlinkIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -511,11 +462,7 @@ func ExampleCognitoIdentity_UnlinkIdentity() { } func ExampleCognitoIdentity_UpdateIdentityPool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentity.New(sess) @@ -525,8 +472,9 @@ func ExampleCognitoIdentity_UpdateIdentityPool() { IdentityPoolName: aws.String("IdentityPoolName"), // Required CognitoIdentityProviders: []*cognitoidentity.Provider{ { // Required - ClientId: aws.String("ProviderClientId"), - ProviderName: aws.String("ProviderName"), + ClientId: aws.String("ProviderClientId"), + ProviderName: aws.String("ProviderName"), + ServerSideTokenCheck: aws.Bool(true), }, // More values... }, diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/service.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/service.go index f240b7e41..08476f2bc 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/service.go @@ -43,8 +43,9 @@ import ( // If you want to use Amazon Cognito in an Android, iOS, or Unity application, // you will probably want to make API calls via the AWS Mobile SDK. To learn // more, see the AWS Mobile SDK Developer Guide (http://docs.aws.amazon.com/mobile/index.html). -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30 type CognitoIdentity struct { *client.Client } @@ -55,8 +56,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "cognito-identity" +// Service information constants +const ( + ServiceName = "cognito-identity" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the CognitoIdentity client with a session. // If additional configuration is needed for the client instance use the optional @@ -69,17 +73,18 @@ const ServiceName = "cognito-identity" // // Create a CognitoIdentity client with additional configuration // svc := cognitoidentity.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CognitoIdentity { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CognitoIdentity { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CognitoIdentity { svc := &CognitoIdentity{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-06-30", diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go index df681d06e..de511c3f7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go @@ -40,6 +40,7 @@ const opAddCustomAttributes = "AddCustomAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AddCustomAttributes func (c *CognitoIdentityProvider) AddCustomAttributesRequest(input *AddCustomAttributesInput) (req *request.Request, output *AddCustomAttributesOutput) { op := &request.Operation{ Name: opAddCustomAttributes, @@ -51,9 +52,8 @@ func (c *CognitoIdentityProvider) AddCustomAttributesRequest(input *AddCustomAtt input = &AddCustomAttributesInput{} } - req = c.newRequest(op, input, output) output = &AddCustomAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -69,34 +69,122 @@ func (c *CognitoIdentityProvider) AddCustomAttributesRequest(input *AddCustomAtt // API operation AddCustomAttributes for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * UserImportInProgressException +// * ErrCodeUserImportInProgressException "UserImportInProgressException" // This exception is thrown when you are trying to modify a user pool while // a user import job is in progress for that pool. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AddCustomAttributes func (c *CognitoIdentityProvider) AddCustomAttributes(input *AddCustomAttributesInput) (*AddCustomAttributesOutput, error) { req, out := c.AddCustomAttributesRequest(input) err := req.Send() return out, err } +const opAdminAddUserToGroup = "AdminAddUserToGroup" + +// AdminAddUserToGroupRequest generates a "aws/request.Request" representing the +// client's request for the AdminAddUserToGroup operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AdminAddUserToGroup for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AdminAddUserToGroup method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AdminAddUserToGroupRequest method. +// req, resp := client.AdminAddUserToGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminAddUserToGroup +func (c *CognitoIdentityProvider) AdminAddUserToGroupRequest(input *AdminAddUserToGroupInput) (req *request.Request, output *AdminAddUserToGroupOutput) { + op := &request.Operation{ + Name: opAdminAddUserToGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AdminAddUserToGroupInput{} + } + + output = &AdminAddUserToGroupOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// AdminAddUserToGroup API operation for Amazon Cognito Identity Provider. +// +// Adds the specified user to the specified group. +// +// Requires developer credentials. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AdminAddUserToGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception gets thrown when a user is not authorized. +// +// * ErrCodeUserNotFoundException "UserNotFoundException" +// This exception is thrown when a user is not found. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminAddUserToGroup +func (c *CognitoIdentityProvider) AdminAddUserToGroup(input *AdminAddUserToGroupInput) (*AdminAddUserToGroupOutput, error) { + req, out := c.AdminAddUserToGroupRequest(input) + err := req.Send() + return out, err +} + const opAdminConfirmSignUp = "AdminConfirmSignUp" // AdminConfirmSignUpRequest generates a "aws/request.Request" representing the @@ -123,6 +211,7 @@ const opAdminConfirmSignUp = "AdminConfirmSignUp" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminConfirmSignUp func (c *CognitoIdentityProvider) AdminConfirmSignUpRequest(input *AdminConfirmSignUpInput) (req *request.Request, output *AdminConfirmSignUpOutput) { op := &request.Operation{ Name: opAdminConfirmSignUp, @@ -134,9 +223,8 @@ func (c *CognitoIdentityProvider) AdminConfirmSignUpRequest(input *AdminConfirmS input = &AdminConfirmSignUpInput{} } - req = c.newRequest(op, input, output) output = &AdminConfirmSignUpOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -145,6 +233,8 @@ func (c *CognitoIdentityProvider) AdminConfirmSignUpRequest(input *AdminConfirmS // Confirms user registration as an admin without using a confirmation code. // Works on any user. // +// Requires developer credentials. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -153,47 +243,48 @@ func (c *CognitoIdentityProvider) AdminConfirmSignUpRequest(input *AdminConfirmS // API operation AdminConfirmSignUp for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * UnexpectedLambdaException +// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" // This exception gets thrown when the Amazon Cognito service encounters an // unexpected exception with the AWS Lambda service. // -// * UserLambdaValidationException +// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" // This exception gets thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * TooManyFailedAttemptsException +// * ErrCodeTooManyFailedAttemptsException "TooManyFailedAttemptsException" // This exception gets thrown when the user has made too many failed attempts // for a given action (e.g., sign in). // -// * InvalidLambdaResponseException +// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminConfirmSignUp func (c *CognitoIdentityProvider) AdminConfirmSignUp(input *AdminConfirmSignUpInput) (*AdminConfirmSignUpOutput, error) { req, out := c.AdminConfirmSignUpRequest(input) err := req.Send() @@ -226,6 +317,7 @@ const opAdminCreateUser = "AdminCreateUser" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminCreateUser func (c *CognitoIdentityProvider) AdminCreateUserRequest(input *AdminCreateUserInput) (req *request.Request, output *AdminCreateUserOutput) { op := &request.Operation{ Name: opAdminCreateUser, @@ -237,9 +329,8 @@ func (c *CognitoIdentityProvider) AdminCreateUserRequest(input *AdminCreateUserI input = &AdminCreateUserInput{} } - req = c.newRequest(op, input, output) output = &AdminCreateUserOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -261,66 +352,67 @@ func (c *CognitoIdentityProvider) AdminCreateUserRequest(input *AdminCreateUserI // API operation AdminCreateUser for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * UsernameExistsException +// * ErrCodeUsernameExistsException "UsernameExistsException" // This exception is thrown when Amazon Cognito encounters a user name that // already exists in the user pool. // -// * InvalidPasswordException +// * ErrCodeInvalidPasswordException "InvalidPasswordException" // This exception is thrown when the Amazon Cognito service encounters an invalid // password. // -// * CodeDeliveryFailureException +// * ErrCodeCodeDeliveryFailureException "CodeDeliveryFailureException" // This exception is thrown when a verification code fails to deliver successfully. // -// * UnexpectedLambdaException +// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" // This exception gets thrown when the Amazon Cognito service encounters an // unexpected exception with the AWS Lambda service. // -// * UserLambdaValidationException +// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" // This exception gets thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * InvalidLambdaResponseException +// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * PreconditionNotMetException +// * ErrCodePreconditionNotMetException "PreconditionNotMetException" // This exception is thrown when a precondition is not met. // -// * InvalidSmsRoleAccessPolicyException +// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * InvalidSmsRoleTrustRelationshipException +// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * UnsupportedUserStateException +// * ErrCodeUnsupportedUserStateException "UnsupportedUserStateException" // The request failed because the user is in an unsupported state. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminCreateUser func (c *CognitoIdentityProvider) AdminCreateUser(input *AdminCreateUserInput) (*AdminCreateUserOutput, error) { req, out := c.AdminCreateUserRequest(input) err := req.Send() @@ -353,6 +445,7 @@ const opAdminDeleteUser = "AdminDeleteUser" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUser func (c *CognitoIdentityProvider) AdminDeleteUserRequest(input *AdminDeleteUserInput) (req *request.Request, output *AdminDeleteUserOutput) { op := &request.Operation{ Name: opAdminDeleteUser, @@ -364,11 +457,10 @@ func (c *CognitoIdentityProvider) AdminDeleteUserRequest(input *AdminDeleteUserI input = &AdminDeleteUserInput{} } + output = &AdminDeleteUserOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AdminDeleteUserOutput{} - req.Data = output return } @@ -376,6 +468,8 @@ func (c *CognitoIdentityProvider) AdminDeleteUserRequest(input *AdminDeleteUserI // // Deletes a user as an administrator. Works on any user. // +// Requires developer credentials. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -384,27 +478,28 @@ func (c *CognitoIdentityProvider) AdminDeleteUserRequest(input *AdminDeleteUserI // API operation AdminDeleteUser for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUser func (c *CognitoIdentityProvider) AdminDeleteUser(input *AdminDeleteUserInput) (*AdminDeleteUserOutput, error) { req, out := c.AdminDeleteUserRequest(input) err := req.Send() @@ -437,6 +532,7 @@ const opAdminDeleteUserAttributes = "AdminDeleteUserAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUserAttributes func (c *CognitoIdentityProvider) AdminDeleteUserAttributesRequest(input *AdminDeleteUserAttributesInput) (req *request.Request, output *AdminDeleteUserAttributesOutput) { op := &request.Operation{ Name: opAdminDeleteUserAttributes, @@ -448,9 +544,8 @@ func (c *CognitoIdentityProvider) AdminDeleteUserAttributesRequest(input *AdminD input = &AdminDeleteUserAttributesInput{} } - req = c.newRequest(op, input, output) output = &AdminDeleteUserAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -459,6 +554,8 @@ func (c *CognitoIdentityProvider) AdminDeleteUserAttributesRequest(input *AdminD // Deletes the user attributes in a user pool as an administrator. Works on // any user. // +// Requires developer credentials. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -467,27 +564,28 @@ func (c *CognitoIdentityProvider) AdminDeleteUserAttributesRequest(input *AdminD // API operation AdminDeleteUserAttributes for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUserAttributes func (c *CognitoIdentityProvider) AdminDeleteUserAttributes(input *AdminDeleteUserAttributesInput) (*AdminDeleteUserAttributesOutput, error) { req, out := c.AdminDeleteUserAttributesRequest(input) err := req.Send() @@ -520,6 +618,7 @@ const opAdminDisableUser = "AdminDisableUser" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDisableUser func (c *CognitoIdentityProvider) AdminDisableUserRequest(input *AdminDisableUserInput) (req *request.Request, output *AdminDisableUserOutput) { op := &request.Operation{ Name: opAdminDisableUser, @@ -531,9 +630,8 @@ func (c *CognitoIdentityProvider) AdminDisableUserRequest(input *AdminDisableUse input = &AdminDisableUserInput{} } - req = c.newRequest(op, input, output) output = &AdminDisableUserOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -541,6 +639,8 @@ func (c *CognitoIdentityProvider) AdminDisableUserRequest(input *AdminDisableUse // // Disables the specified user as an administrator. Works on any user. // +// Requires developer credentials. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -549,27 +649,28 @@ func (c *CognitoIdentityProvider) AdminDisableUserRequest(input *AdminDisableUse // API operation AdminDisableUser for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDisableUser func (c *CognitoIdentityProvider) AdminDisableUser(input *AdminDisableUserInput) (*AdminDisableUserOutput, error) { req, out := c.AdminDisableUserRequest(input) err := req.Send() @@ -602,6 +703,7 @@ const opAdminEnableUser = "AdminEnableUser" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminEnableUser func (c *CognitoIdentityProvider) AdminEnableUserRequest(input *AdminEnableUserInput) (req *request.Request, output *AdminEnableUserOutput) { op := &request.Operation{ Name: opAdminEnableUser, @@ -613,9 +715,8 @@ func (c *CognitoIdentityProvider) AdminEnableUserRequest(input *AdminEnableUserI input = &AdminEnableUserInput{} } - req = c.newRequest(op, input, output) output = &AdminEnableUserOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -623,6 +724,8 @@ func (c *CognitoIdentityProvider) AdminEnableUserRequest(input *AdminEnableUserI // // Enables the specified user as an administrator. Works on any user. // +// Requires developer credentials. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -631,27 +734,28 @@ func (c *CognitoIdentityProvider) AdminEnableUserRequest(input *AdminEnableUserI // API operation AdminEnableUser for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminEnableUser func (c *CognitoIdentityProvider) AdminEnableUser(input *AdminEnableUserInput) (*AdminEnableUserOutput, error) { req, out := c.AdminEnableUserRequest(input) err := req.Send() @@ -684,6 +788,7 @@ const opAdminForgetDevice = "AdminForgetDevice" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminForgetDevice func (c *CognitoIdentityProvider) AdminForgetDeviceRequest(input *AdminForgetDeviceInput) (req *request.Request, output *AdminForgetDeviceOutput) { op := &request.Operation{ Name: opAdminForgetDevice, @@ -695,11 +800,10 @@ func (c *CognitoIdentityProvider) AdminForgetDeviceRequest(input *AdminForgetDev input = &AdminForgetDeviceInput{} } + output = &AdminForgetDeviceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AdminForgetDeviceOutput{} - req.Data = output return } @@ -707,6 +811,8 @@ func (c *CognitoIdentityProvider) AdminForgetDeviceRequest(input *AdminForgetDev // // Forgets the device, as an administrator. // +// Requires developer credentials. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -715,30 +821,31 @@ func (c *CognitoIdentityProvider) AdminForgetDeviceRequest(input *AdminForgetDev // API operation AdminForgetDevice for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * InvalidUserPoolConfigurationException +// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" // This exception is thrown when the user pool configuration is invalid. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminForgetDevice func (c *CognitoIdentityProvider) AdminForgetDevice(input *AdminForgetDeviceInput) (*AdminForgetDeviceOutput, error) { req, out := c.AdminForgetDeviceRequest(input) err := req.Send() @@ -771,6 +878,7 @@ const opAdminGetDevice = "AdminGetDevice" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetDevice func (c *CognitoIdentityProvider) AdminGetDeviceRequest(input *AdminGetDeviceInput) (req *request.Request, output *AdminGetDeviceOutput) { op := &request.Operation{ Name: opAdminGetDevice, @@ -782,9 +890,8 @@ func (c *CognitoIdentityProvider) AdminGetDeviceRequest(input *AdminGetDeviceInp input = &AdminGetDeviceInput{} } - req = c.newRequest(op, input, output) output = &AdminGetDeviceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -792,6 +899,8 @@ func (c *CognitoIdentityProvider) AdminGetDeviceRequest(input *AdminGetDeviceInp // // Gets the device, as an administrator. // +// Requires developer credentials. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -800,27 +909,28 @@ func (c *CognitoIdentityProvider) AdminGetDeviceRequest(input *AdminGetDeviceInp // API operation AdminGetDevice for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * InvalidUserPoolConfigurationException +// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" // This exception is thrown when the user pool configuration is invalid. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetDevice func (c *CognitoIdentityProvider) AdminGetDevice(input *AdminGetDeviceInput) (*AdminGetDeviceOutput, error) { req, out := c.AdminGetDeviceRequest(input) err := req.Send() @@ -853,6 +963,7 @@ const opAdminGetUser = "AdminGetUser" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetUser func (c *CognitoIdentityProvider) AdminGetUserRequest(input *AdminGetUserInput) (req *request.Request, output *AdminGetUserOutput) { op := &request.Operation{ Name: opAdminGetUser, @@ -864,9 +975,8 @@ func (c *CognitoIdentityProvider) AdminGetUserRequest(input *AdminGetUserInput) input = &AdminGetUserInput{} } - req = c.newRequest(op, input, output) output = &AdminGetUserOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -875,6 +985,8 @@ func (c *CognitoIdentityProvider) AdminGetUserRequest(input *AdminGetUserInput) // Gets the specified user by user name in a user pool as an administrator. // Works on any user. // +// Requires developer credentials. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -883,27 +995,28 @@ func (c *CognitoIdentityProvider) AdminGetUserRequest(input *AdminGetUserInput) // API operation AdminGetUser for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetUser func (c *CognitoIdentityProvider) AdminGetUser(input *AdminGetUserInput) (*AdminGetUserOutput, error) { req, out := c.AdminGetUserRequest(input) err := req.Send() @@ -936,6 +1049,7 @@ const opAdminInitiateAuth = "AdminInitiateAuth" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminInitiateAuth func (c *CognitoIdentityProvider) AdminInitiateAuthRequest(input *AdminInitiateAuthInput) (req *request.Request, output *AdminInitiateAuthOutput) { op := &request.Operation{ Name: opAdminInitiateAuth, @@ -947,9 +1061,8 @@ func (c *CognitoIdentityProvider) AdminInitiateAuthRequest(input *AdminInitiateA input = &AdminInitiateAuthInput{} } - req = c.newRequest(op, input, output) output = &AdminInitiateAuthOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -957,6 +1070,8 @@ func (c *CognitoIdentityProvider) AdminInitiateAuthRequest(input *AdminInitiateA // // Initiates the authentication flow, as an administrator. // +// Requires developer credentials. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -965,62 +1080,63 @@ func (c *CognitoIdentityProvider) AdminInitiateAuthRequest(input *AdminInitiateA // API operation AdminInitiateAuth for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // -// * UnexpectedLambdaException +// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" // This exception gets thrown when the Amazon Cognito service encounters an // unexpected exception with the AWS Lambda service. // -// * InvalidUserPoolConfigurationException +// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" // This exception is thrown when the user pool configuration is invalid. // -// * UserLambdaValidationException +// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" // This exception gets thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * InvalidLambdaResponseException +// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * MFAMethodNotFoundException +// * ErrCodeMFAMethodNotFoundException "MFAMethodNotFoundException" // This exception is thrown when Amazon Cognito cannot find a multi-factor authentication // (MFA) method. // -// * InvalidSmsRoleAccessPolicyException +// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * InvalidSmsRoleTrustRelationshipException +// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * PasswordResetRequiredException +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" // This exception is thrown when a password reset is required. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * UserNotConfirmedException +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminInitiateAuth func (c *CognitoIdentityProvider) AdminInitiateAuth(input *AdminInitiateAuthInput) (*AdminInitiateAuthOutput, error) { req, out := c.AdminInitiateAuthRequest(input) err := req.Send() @@ -1053,6 +1169,7 @@ const opAdminListDevices = "AdminListDevices" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListDevices func (c *CognitoIdentityProvider) AdminListDevicesRequest(input *AdminListDevicesInput) (req *request.Request, output *AdminListDevicesOutput) { op := &request.Operation{ Name: opAdminListDevices, @@ -1064,9 +1181,8 @@ func (c *CognitoIdentityProvider) AdminListDevicesRequest(input *AdminListDevice input = &AdminListDevicesInput{} } - req = c.newRequest(op, input, output) output = &AdminListDevicesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1074,6 +1190,8 @@ func (c *CognitoIdentityProvider) AdminListDevicesRequest(input *AdminListDevice // // Lists devices, as an administrator. // +// Requires developer credentials. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1082,33 +1200,206 @@ func (c *CognitoIdentityProvider) AdminListDevicesRequest(input *AdminListDevice // API operation AdminListDevices for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidUserPoolConfigurationException +// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" // This exception is thrown when the user pool configuration is invalid. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListDevices func (c *CognitoIdentityProvider) AdminListDevices(input *AdminListDevicesInput) (*AdminListDevicesOutput, error) { req, out := c.AdminListDevicesRequest(input) err := req.Send() return out, err } +const opAdminListGroupsForUser = "AdminListGroupsForUser" + +// AdminListGroupsForUserRequest generates a "aws/request.Request" representing the +// client's request for the AdminListGroupsForUser operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AdminListGroupsForUser for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AdminListGroupsForUser method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AdminListGroupsForUserRequest method. +// req, resp := client.AdminListGroupsForUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListGroupsForUser +func (c *CognitoIdentityProvider) AdminListGroupsForUserRequest(input *AdminListGroupsForUserInput) (req *request.Request, output *AdminListGroupsForUserOutput) { + op := &request.Operation{ + Name: opAdminListGroupsForUser, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AdminListGroupsForUserInput{} + } + + output = &AdminListGroupsForUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// AdminListGroupsForUser API operation for Amazon Cognito Identity Provider. +// +// Lists the groups that the user belongs to. +// +// Requires developer credentials. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AdminListGroupsForUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception gets thrown when a user is not authorized. +// +// * ErrCodeUserNotFoundException "UserNotFoundException" +// This exception is thrown when a user is not found. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListGroupsForUser +func (c *CognitoIdentityProvider) AdminListGroupsForUser(input *AdminListGroupsForUserInput) (*AdminListGroupsForUserOutput, error) { + req, out := c.AdminListGroupsForUserRequest(input) + err := req.Send() + return out, err +} + +const opAdminRemoveUserFromGroup = "AdminRemoveUserFromGroup" + +// AdminRemoveUserFromGroupRequest generates a "aws/request.Request" representing the +// client's request for the AdminRemoveUserFromGroup operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AdminRemoveUserFromGroup for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AdminRemoveUserFromGroup method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AdminRemoveUserFromGroupRequest method. +// req, resp := client.AdminRemoveUserFromGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminRemoveUserFromGroup +func (c *CognitoIdentityProvider) AdminRemoveUserFromGroupRequest(input *AdminRemoveUserFromGroupInput) (req *request.Request, output *AdminRemoveUserFromGroupOutput) { + op := &request.Operation{ + Name: opAdminRemoveUserFromGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AdminRemoveUserFromGroupInput{} + } + + output = &AdminRemoveUserFromGroupOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// AdminRemoveUserFromGroup API operation for Amazon Cognito Identity Provider. +// +// Removes the specified user from the specified group. +// +// Requires developer credentials. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AdminRemoveUserFromGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception gets thrown when a user is not authorized. +// +// * ErrCodeUserNotFoundException "UserNotFoundException" +// This exception is thrown when a user is not found. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminRemoveUserFromGroup +func (c *CognitoIdentityProvider) AdminRemoveUserFromGroup(input *AdminRemoveUserFromGroupInput) (*AdminRemoveUserFromGroupOutput, error) { + req, out := c.AdminRemoveUserFromGroupRequest(input) + err := req.Send() + return out, err +} + const opAdminResetUserPassword = "AdminResetUserPassword" // AdminResetUserPasswordRequest generates a "aws/request.Request" representing the @@ -1135,6 +1426,7 @@ const opAdminResetUserPassword = "AdminResetUserPassword" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminResetUserPassword func (c *CognitoIdentityProvider) AdminResetUserPasswordRequest(input *AdminResetUserPasswordInput) (req *request.Request, output *AdminResetUserPasswordOutput) { op := &request.Operation{ Name: opAdminResetUserPassword, @@ -1146,9 +1438,8 @@ func (c *CognitoIdentityProvider) AdminResetUserPasswordRequest(input *AdminRese input = &AdminResetUserPasswordInput{} } - req = c.newRequest(op, input, output) output = &AdminResetUserPasswordOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1167,6 +1458,8 @@ func (c *CognitoIdentityProvider) AdminResetUserPasswordRequest(input *AdminRese // also result in sending a message to the end user with the code to change // their password. // +// Requires developer credentials. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1175,43 +1468,44 @@ func (c *CognitoIdentityProvider) AdminResetUserPasswordRequest(input *AdminRese // API operation AdminResetUserPassword for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * UnexpectedLambdaException +// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" // This exception gets thrown when the Amazon Cognito service encounters an // unexpected exception with the AWS Lambda service. // -// * UserLambdaValidationException +// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" // This exception gets thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * InvalidLambdaResponseException +// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminResetUserPassword func (c *CognitoIdentityProvider) AdminResetUserPassword(input *AdminResetUserPasswordInput) (*AdminResetUserPasswordOutput, error) { req, out := c.AdminResetUserPasswordRequest(input) err := req.Send() @@ -1244,6 +1538,7 @@ const opAdminRespondToAuthChallenge = "AdminRespondToAuthChallenge" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminRespondToAuthChallenge func (c *CognitoIdentityProvider) AdminRespondToAuthChallengeRequest(input *AdminRespondToAuthChallengeInput) (req *request.Request, output *AdminRespondToAuthChallengeOutput) { op := &request.Operation{ Name: opAdminRespondToAuthChallenge, @@ -1255,9 +1550,8 @@ func (c *CognitoIdentityProvider) AdminRespondToAuthChallengeRequest(input *Admi input = &AdminRespondToAuthChallengeInput{} } - req = c.newRequest(op, input, output) output = &AdminRespondToAuthChallengeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1265,6 +1559,8 @@ func (c *CognitoIdentityProvider) AdminRespondToAuthChallengeRequest(input *Admi // // Responds to an authentication challenge, as an administrator. // +// Requires developer credentials. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1273,79 +1569,80 @@ func (c *CognitoIdentityProvider) AdminRespondToAuthChallengeRequest(input *Admi // API operation AdminRespondToAuthChallenge for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * CodeMismatchException +// * ErrCodeCodeMismatchException "CodeMismatchException" // This exception is thrown if the provided code does not match what the server // was expecting. // -// * ExpiredCodeException +// * ErrCodeExpiredCodeException "ExpiredCodeException" // This exception is thrown if a code has expired. // -// * UnexpectedLambdaException +// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" // This exception gets thrown when the Amazon Cognito service encounters an // unexpected exception with the AWS Lambda service. // -// * InvalidPasswordException +// * ErrCodeInvalidPasswordException "InvalidPasswordException" // This exception is thrown when the Amazon Cognito service encounters an invalid // password. // -// * UserLambdaValidationException +// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" // This exception gets thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * InvalidLambdaResponseException +// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * InvalidUserPoolConfigurationException +// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" // This exception is thrown when the user pool configuration is invalid. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // -// * MFAMethodNotFoundException +// * ErrCodeMFAMethodNotFoundException "MFAMethodNotFoundException" // This exception is thrown when Amazon Cognito cannot find a multi-factor authentication // (MFA) method. // -// * InvalidSmsRoleAccessPolicyException +// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * InvalidSmsRoleTrustRelationshipException +// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * AliasExistsException +// * ErrCodeAliasExistsException "AliasExistsException" // This exception is thrown when a user tries to confirm the account with an // email or phone number that has already been supplied as an alias from a different // account. This exception tells user that an account with this email or phone // already exists. // -// * PasswordResetRequiredException +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" // This exception is thrown when a password reset is required. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * UserNotConfirmedException +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminRespondToAuthChallenge func (c *CognitoIdentityProvider) AdminRespondToAuthChallenge(input *AdminRespondToAuthChallengeInput) (*AdminRespondToAuthChallengeOutput, error) { req, out := c.AdminRespondToAuthChallengeRequest(input) err := req.Send() @@ -1378,6 +1675,7 @@ const opAdminSetUserSettings = "AdminSetUserSettings" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminSetUserSettings func (c *CognitoIdentityProvider) AdminSetUserSettingsRequest(input *AdminSetUserSettingsInput) (req *request.Request, output *AdminSetUserSettingsOutput) { op := &request.Operation{ Name: opAdminSetUserSettings, @@ -1389,9 +1687,8 @@ func (c *CognitoIdentityProvider) AdminSetUserSettingsRequest(input *AdminSetUse input = &AdminSetUserSettingsInput{} } - req = c.newRequest(op, input, output) output = &AdminSetUserSettingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1399,6 +1696,8 @@ func (c *CognitoIdentityProvider) AdminSetUserSettingsRequest(input *AdminSetUse // // Sets all the user settings for a specified user name. Works on any user. // +// Requires developer credentials. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1407,23 +1706,24 @@ func (c *CognitoIdentityProvider) AdminSetUserSettingsRequest(input *AdminSetUse // API operation AdminSetUserSettings for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminSetUserSettings func (c *CognitoIdentityProvider) AdminSetUserSettings(input *AdminSetUserSettingsInput) (*AdminSetUserSettingsOutput, error) { req, out := c.AdminSetUserSettingsRequest(input) err := req.Send() @@ -1456,6 +1756,7 @@ const opAdminUpdateDeviceStatus = "AdminUpdateDeviceStatus" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateDeviceStatus func (c *CognitoIdentityProvider) AdminUpdateDeviceStatusRequest(input *AdminUpdateDeviceStatusInput) (req *request.Request, output *AdminUpdateDeviceStatusOutput) { op := &request.Operation{ Name: opAdminUpdateDeviceStatus, @@ -1467,9 +1768,8 @@ func (c *CognitoIdentityProvider) AdminUpdateDeviceStatusRequest(input *AdminUpd input = &AdminUpdateDeviceStatusInput{} } - req = c.newRequest(op, input, output) output = &AdminUpdateDeviceStatusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1477,6 +1777,8 @@ func (c *CognitoIdentityProvider) AdminUpdateDeviceStatusRequest(input *AdminUpd // // Updates the device status as an administrator. // +// Requires developer credentials. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1485,30 +1787,31 @@ func (c *CognitoIdentityProvider) AdminUpdateDeviceStatusRequest(input *AdminUpd // API operation AdminUpdateDeviceStatus for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidUserPoolConfigurationException +// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" // This exception is thrown when the user pool configuration is invalid. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateDeviceStatus func (c *CognitoIdentityProvider) AdminUpdateDeviceStatus(input *AdminUpdateDeviceStatusInput) (*AdminUpdateDeviceStatusOutput, error) { req, out := c.AdminUpdateDeviceStatusRequest(input) err := req.Send() @@ -1541,6 +1844,7 @@ const opAdminUpdateUserAttributes = "AdminUpdateUserAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateUserAttributes func (c *CognitoIdentityProvider) AdminUpdateUserAttributesRequest(input *AdminUpdateUserAttributesInput) (req *request.Request, output *AdminUpdateUserAttributesOutput) { op := &request.Operation{ Name: opAdminUpdateUserAttributes, @@ -1552,9 +1856,8 @@ func (c *CognitoIdentityProvider) AdminUpdateUserAttributesRequest(input *AdminU input = &AdminUpdateUserAttributesInput{} } - req = c.newRequest(op, input, output) output = &AdminUpdateUserAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1563,6 +1866,8 @@ func (c *CognitoIdentityProvider) AdminUpdateUserAttributesRequest(input *AdminU // Updates the specified user's attributes, including developer attributes, // as an administrator. Works on any user. // +// Requires developer credentials. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1571,45 +1876,46 @@ func (c *CognitoIdentityProvider) AdminUpdateUserAttributesRequest(input *AdminU // API operation AdminUpdateUserAttributes for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * UnexpectedLambdaException +// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" // This exception gets thrown when the Amazon Cognito service encounters an // unexpected exception with the AWS Lambda service. // -// * UserLambdaValidationException +// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" // This exception gets thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * InvalidLambdaResponseException +// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * AliasExistsException +// * ErrCodeAliasExistsException "AliasExistsException" // This exception is thrown when a user tries to confirm the account with an // email or phone number that has already been supplied as an alias from a different // account. This exception tells user that an account with this email or phone // already exists. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateUserAttributes func (c *CognitoIdentityProvider) AdminUpdateUserAttributes(input *AdminUpdateUserAttributesInput) (*AdminUpdateUserAttributesOutput, error) { req, out := c.AdminUpdateUserAttributesRequest(input) err := req.Send() @@ -1642,6 +1948,7 @@ const opAdminUserGlobalSignOut = "AdminUserGlobalSignOut" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUserGlobalSignOut func (c *CognitoIdentityProvider) AdminUserGlobalSignOutRequest(input *AdminUserGlobalSignOutInput) (req *request.Request, output *AdminUserGlobalSignOutOutput) { op := &request.Operation{ Name: opAdminUserGlobalSignOut, @@ -1653,9 +1960,8 @@ func (c *CognitoIdentityProvider) AdminUserGlobalSignOutRequest(input *AdminUser input = &AdminUserGlobalSignOutInput{} } - req = c.newRequest(op, input, output) output = &AdminUserGlobalSignOutOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1663,6 +1969,8 @@ func (c *CognitoIdentityProvider) AdminUserGlobalSignOutRequest(input *AdminUser // // Signs out users from all devices, as an administrator. // +// Requires developer credentials. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1671,27 +1979,28 @@ func (c *CognitoIdentityProvider) AdminUserGlobalSignOutRequest(input *AdminUser // API operation AdminUserGlobalSignOut for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUserGlobalSignOut func (c *CognitoIdentityProvider) AdminUserGlobalSignOut(input *AdminUserGlobalSignOutInput) (*AdminUserGlobalSignOutOutput, error) { req, out := c.AdminUserGlobalSignOutRequest(input) err := req.Send() @@ -1724,6 +2033,7 @@ const opChangePassword = "ChangePassword" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ChangePassword func (c *CognitoIdentityProvider) ChangePasswordRequest(input *ChangePasswordInput) (req *request.Request, output *ChangePasswordOutput) { op := &request.Operation{ Name: opChangePassword, @@ -1735,10 +2045,9 @@ func (c *CognitoIdentityProvider) ChangePasswordRequest(input *ChangePasswordInp input = &ChangePasswordInput{} } + output = &ChangePasswordOutput{} req = c.newRequest(op, input, output) req.Config.Credentials = credentials.AnonymousCredentials - output = &ChangePasswordOutput{} - req.Data = output return } @@ -1754,41 +2063,42 @@ func (c *CognitoIdentityProvider) ChangePasswordRequest(input *ChangePasswordInp // API operation ChangePassword for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * InvalidPasswordException +// * ErrCodeInvalidPasswordException "InvalidPasswordException" // This exception is thrown when the Amazon Cognito service encounters an invalid // password. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * PasswordResetRequiredException +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" // This exception is thrown when a password reset is required. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * UserNotConfirmedException +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ChangePassword func (c *CognitoIdentityProvider) ChangePassword(input *ChangePasswordInput) (*ChangePasswordOutput, error) { req, out := c.ChangePasswordRequest(input) err := req.Send() @@ -1821,6 +2131,7 @@ const opConfirmDevice = "ConfirmDevice" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmDevice func (c *CognitoIdentityProvider) ConfirmDeviceRequest(input *ConfirmDeviceInput) (req *request.Request, output *ConfirmDeviceOutput) { op := &request.Operation{ Name: opConfirmDevice, @@ -1832,9 +2143,8 @@ func (c *CognitoIdentityProvider) ConfirmDeviceRequest(input *ConfirmDeviceInput input = &ConfirmDeviceInput{} } - req = c.newRequest(op, input, output) output = &ConfirmDeviceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1851,48 +2161,49 @@ func (c *CognitoIdentityProvider) ConfirmDeviceRequest(input *ConfirmDeviceInput // API operation ConfirmDevice for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * InvalidPasswordException +// * ErrCodeInvalidPasswordException "InvalidPasswordException" // This exception is thrown when the Amazon Cognito service encounters an invalid // password. // -// * InvalidLambdaResponseException +// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * UsernameExistsException +// * ErrCodeUsernameExistsException "UsernameExistsException" // This exception is thrown when Amazon Cognito encounters a user name that // already exists in the user pool. // -// * InvalidUserPoolConfigurationException +// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" // This exception is thrown when the user pool configuration is invalid. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * PasswordResetRequiredException +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" // This exception is thrown when a password reset is required. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * UserNotConfirmedException +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmDevice func (c *CognitoIdentityProvider) ConfirmDevice(input *ConfirmDeviceInput) (*ConfirmDeviceOutput, error) { req, out := c.ConfirmDeviceRequest(input) err := req.Send() @@ -1925,6 +2236,7 @@ const opConfirmForgotPassword = "ConfirmForgotPassword" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmForgotPassword func (c *CognitoIdentityProvider) ConfirmForgotPasswordRequest(input *ConfirmForgotPasswordInput) (req *request.Request, output *ConfirmForgotPasswordOutput) { op := &request.Operation{ Name: opConfirmForgotPassword, @@ -1936,10 +2248,9 @@ func (c *CognitoIdentityProvider) ConfirmForgotPasswordRequest(input *ConfirmFor input = &ConfirmForgotPasswordInput{} } + output = &ConfirmForgotPasswordOutput{} req = c.newRequest(op, input, output) req.Config.Credentials = credentials.AnonymousCredentials - output = &ConfirmForgotPasswordOutput{} - req.Data = output return } @@ -1956,61 +2267,62 @@ func (c *CognitoIdentityProvider) ConfirmForgotPasswordRequest(input *ConfirmFor // API operation ConfirmForgotPassword for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * UnexpectedLambdaException +// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" // This exception gets thrown when the Amazon Cognito service encounters an // unexpected exception with the AWS Lambda service. // -// * UserLambdaValidationException +// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" // This exception gets thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * InvalidPasswordException +// * ErrCodeInvalidPasswordException "InvalidPasswordException" // This exception is thrown when the Amazon Cognito service encounters an invalid // password. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * CodeMismatchException +// * ErrCodeCodeMismatchException "CodeMismatchException" // This exception is thrown if the provided code does not match what the server // was expecting. // -// * ExpiredCodeException +// * ErrCodeExpiredCodeException "ExpiredCodeException" // This exception is thrown if a code has expired. // -// * TooManyFailedAttemptsException +// * ErrCodeTooManyFailedAttemptsException "TooManyFailedAttemptsException" // This exception gets thrown when the user has made too many failed attempts // for a given action (e.g., sign in). // -// * InvalidLambdaResponseException +// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * UserNotConfirmedException +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmForgotPassword func (c *CognitoIdentityProvider) ConfirmForgotPassword(input *ConfirmForgotPasswordInput) (*ConfirmForgotPasswordOutput, error) { req, out := c.ConfirmForgotPasswordRequest(input) err := req.Send() @@ -2043,6 +2355,7 @@ const opConfirmSignUp = "ConfirmSignUp" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmSignUp func (c *CognitoIdentityProvider) ConfirmSignUpRequest(input *ConfirmSignUpInput) (req *request.Request, output *ConfirmSignUpOutput) { op := &request.Operation{ Name: opConfirmSignUp, @@ -2054,10 +2367,9 @@ func (c *CognitoIdentityProvider) ConfirmSignUpRequest(input *ConfirmSignUpInput input = &ConfirmSignUpInput{} } + output = &ConfirmSignUpOutput{} req = c.newRequest(op, input, output) req.Config.Credentials = credentials.AnonymousCredentials - output = &ConfirmSignUpOutput{} - req.Data = output return } @@ -2074,66 +2386,157 @@ func (c *CognitoIdentityProvider) ConfirmSignUpRequest(input *ConfirmSignUpInput // API operation ConfirmSignUp for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * UnexpectedLambdaException +// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" // This exception gets thrown when the Amazon Cognito service encounters an // unexpected exception with the AWS Lambda service. // -// * UserLambdaValidationException +// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" // This exception gets thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * TooManyFailedAttemptsException +// * ErrCodeTooManyFailedAttemptsException "TooManyFailedAttemptsException" // This exception gets thrown when the user has made too many failed attempts // for a given action (e.g., sign in). // -// * CodeMismatchException +// * ErrCodeCodeMismatchException "CodeMismatchException" // This exception is thrown if the provided code does not match what the server // was expecting. // -// * ExpiredCodeException +// * ErrCodeExpiredCodeException "ExpiredCodeException" // This exception is thrown if a code has expired. // -// * InvalidLambdaResponseException +// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * AliasExistsException +// * ErrCodeAliasExistsException "AliasExistsException" // This exception is thrown when a user tries to confirm the account with an // email or phone number that has already been supplied as an alias from a different // account. This exception tells user that an account with this email or phone // already exists. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmSignUp func (c *CognitoIdentityProvider) ConfirmSignUp(input *ConfirmSignUpInput) (*ConfirmSignUpOutput, error) { req, out := c.ConfirmSignUpRequest(input) err := req.Send() return out, err } +const opCreateGroup = "CreateGroup" + +// CreateGroupRequest generates a "aws/request.Request" representing the +// client's request for the CreateGroup operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateGroup for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateGroup method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateGroupRequest method. +// req, resp := client.CreateGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateGroup +func (c *CognitoIdentityProvider) CreateGroupRequest(input *CreateGroupInput) (req *request.Request, output *CreateGroupOutput) { + op := &request.Operation{ + Name: opCreateGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateGroupInput{} + } + + output = &CreateGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateGroup API operation for Amazon Cognito Identity Provider. +// +// Creates a new group in the specified user pool. +// +// Requires developer credentials. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation CreateGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ErrCodeGroupExistsException "GroupExistsException" +// This exception is thrown when Amazon Cognito encounters a group that already +// exists in the user pool. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// This exception is thrown when a user exceeds the limit for a requested AWS +// resource. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception gets thrown when a user is not authorized. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateGroup +func (c *CognitoIdentityProvider) CreateGroup(input *CreateGroupInput) (*CreateGroupOutput, error) { + req, out := c.CreateGroupRequest(input) + err := req.Send() + return out, err +} + const opCreateUserImportJob = "CreateUserImportJob" // CreateUserImportJobRequest generates a "aws/request.Request" representing the @@ -2160,6 +2563,7 @@ const opCreateUserImportJob = "CreateUserImportJob" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserImportJob func (c *CognitoIdentityProvider) CreateUserImportJobRequest(input *CreateUserImportJobInput) (req *request.Request, output *CreateUserImportJobOutput) { op := &request.Operation{ Name: opCreateUserImportJob, @@ -2171,9 +2575,8 @@ func (c *CognitoIdentityProvider) CreateUserImportJobRequest(input *CreateUserIm input = &CreateUserImportJobInput{} } - req = c.newRequest(op, input, output) output = &CreateUserImportJobOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2189,31 +2592,32 @@ func (c *CognitoIdentityProvider) CreateUserImportJobRequest(input *CreateUserIm // API operation CreateUserImportJob for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * PreconditionNotMetException +// * ErrCodePreconditionNotMetException "PreconditionNotMetException" // This exception is thrown when a precondition is not met. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserImportJob func (c *CognitoIdentityProvider) CreateUserImportJob(input *CreateUserImportJobInput) (*CreateUserImportJobOutput, error) { req, out := c.CreateUserImportJobRequest(input) err := req.Send() @@ -2246,6 +2650,7 @@ const opCreateUserPool = "CreateUserPool" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPool func (c *CognitoIdentityProvider) CreateUserPoolRequest(input *CreateUserPoolInput) (req *request.Request, output *CreateUserPoolOutput) { op := &request.Operation{ Name: opCreateUserPool, @@ -2257,9 +2662,8 @@ func (c *CognitoIdentityProvider) CreateUserPoolRequest(input *CreateUserPoolInp input = &CreateUserPoolInput{} } - req = c.newRequest(op, input, output) output = &CreateUserPoolOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2276,38 +2680,42 @@ func (c *CognitoIdentityProvider) CreateUserPoolRequest(input *CreateUserPoolInp // API operation CreateUserPool for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * InvalidSmsRoleAccessPolicyException +// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * InvalidSmsRoleTrustRelationshipException +// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * InvalidEmailRoleAccessPolicyException +// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" // This exception is thrown when Amazon Cognito is not allowed to use your email // identity. HTTP status code: 400. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * InternalErrorException +// * ErrCodeUserPoolTaggingException "UserPoolTaggingException" +// This exception gets thrown when a user pool tag cannot be set or updated. +// +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPool func (c *CognitoIdentityProvider) CreateUserPool(input *CreateUserPoolInput) (*CreateUserPoolOutput, error) { req, out := c.CreateUserPoolRequest(input) err := req.Send() @@ -2340,6 +2748,7 @@ const opCreateUserPoolClient = "CreateUserPoolClient" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolClient func (c *CognitoIdentityProvider) CreateUserPoolClientRequest(input *CreateUserPoolClientInput) (req *request.Request, output *CreateUserPoolClientOutput) { op := &request.Operation{ Name: opCreateUserPoolClient, @@ -2351,9 +2760,8 @@ func (c *CognitoIdentityProvider) CreateUserPoolClientRequest(input *CreateUserP input = &CreateUserPoolClientInput{} } - req = c.newRequest(op, input, output) output = &CreateUserPoolClientOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2369,34 +2777,119 @@ func (c *CognitoIdentityProvider) CreateUserPoolClientRequest(input *CreateUserP // API operation CreateUserPoolClient for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolClient func (c *CognitoIdentityProvider) CreateUserPoolClient(input *CreateUserPoolClientInput) (*CreateUserPoolClientOutput, error) { req, out := c.CreateUserPoolClientRequest(input) err := req.Send() return out, err } +const opDeleteGroup = "DeleteGroup" + +// DeleteGroupRequest generates a "aws/request.Request" representing the +// client's request for the DeleteGroup operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteGroup for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteGroup method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteGroupRequest method. +// req, resp := client.DeleteGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteGroup +func (c *CognitoIdentityProvider) DeleteGroupRequest(input *DeleteGroupInput) (req *request.Request, output *DeleteGroupOutput) { + op := &request.Operation{ + Name: opDeleteGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteGroupInput{} + } + + output = &DeleteGroupOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteGroup API operation for Amazon Cognito Identity Provider. +// +// Deletes a group. Currently only groups with no members can be deleted. +// +// Requires developer credentials. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation DeleteGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception gets thrown when a user is not authorized. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteGroup +func (c *CognitoIdentityProvider) DeleteGroup(input *DeleteGroupInput) (*DeleteGroupOutput, error) { + req, out := c.DeleteGroupRequest(input) + err := req.Send() + return out, err +} + const opDeleteUser = "DeleteUser" // DeleteUserRequest generates a "aws/request.Request" representing the @@ -2423,6 +2916,7 @@ const opDeleteUser = "DeleteUser" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUser func (c *CognitoIdentityProvider) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) { op := &request.Operation{ Name: opDeleteUser, @@ -2434,12 +2928,11 @@ func (c *CognitoIdentityProvider) DeleteUserRequest(input *DeleteUserInput) (req input = &DeleteUserInput{} } + output = &DeleteUserOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) req.Config.Credentials = credentials.AnonymousCredentials - output = &DeleteUserOutput{} - req.Data = output return } @@ -2455,33 +2948,34 @@ func (c *CognitoIdentityProvider) DeleteUserRequest(input *DeleteUserInput) (req // API operation DeleteUser for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * PasswordResetRequiredException +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" // This exception is thrown when a password reset is required. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * UserNotConfirmedException +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUser func (c *CognitoIdentityProvider) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) { req, out := c.DeleteUserRequest(input) err := req.Send() @@ -2514,6 +3008,7 @@ const opDeleteUserAttributes = "DeleteUserAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserAttributes func (c *CognitoIdentityProvider) DeleteUserAttributesRequest(input *DeleteUserAttributesInput) (req *request.Request, output *DeleteUserAttributesOutput) { op := &request.Operation{ Name: opDeleteUserAttributes, @@ -2525,10 +3020,9 @@ func (c *CognitoIdentityProvider) DeleteUserAttributesRequest(input *DeleteUserA input = &DeleteUserAttributesInput{} } + output = &DeleteUserAttributesOutput{} req = c.newRequest(op, input, output) req.Config.Credentials = credentials.AnonymousCredentials - output = &DeleteUserAttributesOutput{} - req.Data = output return } @@ -2544,33 +3038,34 @@ func (c *CognitoIdentityProvider) DeleteUserAttributesRequest(input *DeleteUserA // API operation DeleteUserAttributes for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * PasswordResetRequiredException +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" // This exception is thrown when a password reset is required. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * UserNotConfirmedException +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserAttributes func (c *CognitoIdentityProvider) DeleteUserAttributes(input *DeleteUserAttributesInput) (*DeleteUserAttributesOutput, error) { req, out := c.DeleteUserAttributesRequest(input) err := req.Send() @@ -2603,6 +3098,7 @@ const opDeleteUserPool = "DeleteUserPool" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPool func (c *CognitoIdentityProvider) DeleteUserPoolRequest(input *DeleteUserPoolInput) (req *request.Request, output *DeleteUserPoolOutput) { op := &request.Operation{ Name: opDeleteUserPool, @@ -2614,11 +3110,10 @@ func (c *CognitoIdentityProvider) DeleteUserPoolRequest(input *DeleteUserPoolInp input = &DeleteUserPoolInput{} } + output = &DeleteUserPoolOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteUserPoolOutput{} - req.Data = output return } @@ -2634,28 +3129,29 @@ func (c *CognitoIdentityProvider) DeleteUserPoolRequest(input *DeleteUserPoolInp // API operation DeleteUserPool for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * UserImportInProgressException +// * ErrCodeUserImportInProgressException "UserImportInProgressException" // This exception is thrown when you are trying to modify a user pool while // a user import job is in progress for that pool. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPool func (c *CognitoIdentityProvider) DeleteUserPool(input *DeleteUserPoolInput) (*DeleteUserPoolOutput, error) { req, out := c.DeleteUserPoolRequest(input) err := req.Send() @@ -2688,6 +3184,7 @@ const opDeleteUserPoolClient = "DeleteUserPoolClient" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolClient func (c *CognitoIdentityProvider) DeleteUserPoolClientRequest(input *DeleteUserPoolClientInput) (req *request.Request, output *DeleteUserPoolClientOutput) { op := &request.Operation{ Name: opDeleteUserPoolClient, @@ -2699,11 +3196,10 @@ func (c *CognitoIdentityProvider) DeleteUserPoolClientRequest(input *DeleteUserP input = &DeleteUserPoolClientInput{} } + output = &DeleteUserPoolClientOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteUserPoolClientOutput{} - req.Data = output return } @@ -2719,24 +3215,25 @@ func (c *CognitoIdentityProvider) DeleteUserPoolClientRequest(input *DeleteUserP // API operation DeleteUserPoolClient for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolClient func (c *CognitoIdentityProvider) DeleteUserPoolClient(input *DeleteUserPoolClientInput) (*DeleteUserPoolClientOutput, error) { req, out := c.DeleteUserPoolClientRequest(input) err := req.Send() @@ -2769,6 +3266,7 @@ const opDescribeUserImportJob = "DescribeUserImportJob" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserImportJob func (c *CognitoIdentityProvider) DescribeUserImportJobRequest(input *DescribeUserImportJobInput) (req *request.Request, output *DescribeUserImportJobOutput) { op := &request.Operation{ Name: opDescribeUserImportJob, @@ -2780,9 +3278,8 @@ func (c *CognitoIdentityProvider) DescribeUserImportJobRequest(input *DescribeUs input = &DescribeUserImportJobInput{} } - req = c.newRequest(op, input, output) output = &DescribeUserImportJobOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2798,24 +3295,25 @@ func (c *CognitoIdentityProvider) DescribeUserImportJobRequest(input *DescribeUs // API operation DescribeUserImportJob for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserImportJob func (c *CognitoIdentityProvider) DescribeUserImportJob(input *DescribeUserImportJobInput) (*DescribeUserImportJobOutput, error) { req, out := c.DescribeUserImportJobRequest(input) err := req.Send() @@ -2848,6 +3346,7 @@ const opDescribeUserPool = "DescribeUserPool" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPool func (c *CognitoIdentityProvider) DescribeUserPoolRequest(input *DescribeUserPoolInput) (req *request.Request, output *DescribeUserPoolOutput) { op := &request.Operation{ Name: opDescribeUserPool, @@ -2859,9 +3358,8 @@ func (c *CognitoIdentityProvider) DescribeUserPoolRequest(input *DescribeUserPoo input = &DescribeUserPoolInput{} } - req = c.newRequest(op, input, output) output = &DescribeUserPoolOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2878,24 +3376,28 @@ func (c *CognitoIdentityProvider) DescribeUserPoolRequest(input *DescribeUserPoo // API operation DescribeUserPool for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * InternalErrorException +// * ErrCodeUserPoolTaggingException "UserPoolTaggingException" +// This exception gets thrown when a user pool tag cannot be set or updated. +// +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPool func (c *CognitoIdentityProvider) DescribeUserPool(input *DescribeUserPoolInput) (*DescribeUserPoolOutput, error) { req, out := c.DescribeUserPoolRequest(input) err := req.Send() @@ -2928,6 +3430,7 @@ const opDescribeUserPoolClient = "DescribeUserPoolClient" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolClient func (c *CognitoIdentityProvider) DescribeUserPoolClientRequest(input *DescribeUserPoolClientInput) (req *request.Request, output *DescribeUserPoolClientOutput) { op := &request.Operation{ Name: opDescribeUserPoolClient, @@ -2939,9 +3442,8 @@ func (c *CognitoIdentityProvider) DescribeUserPoolClientRequest(input *DescribeU input = &DescribeUserPoolClientInput{} } - req = c.newRequest(op, input, output) output = &DescribeUserPoolClientOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2958,24 +3460,25 @@ func (c *CognitoIdentityProvider) DescribeUserPoolClientRequest(input *DescribeU // API operation DescribeUserPoolClient for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolClient func (c *CognitoIdentityProvider) DescribeUserPoolClient(input *DescribeUserPoolClientInput) (*DescribeUserPoolClientOutput, error) { req, out := c.DescribeUserPoolClientRequest(input) err := req.Send() @@ -3008,6 +3511,7 @@ const opForgetDevice = "ForgetDevice" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ForgetDevice func (c *CognitoIdentityProvider) ForgetDeviceRequest(input *ForgetDeviceInput) (req *request.Request, output *ForgetDeviceOutput) { op := &request.Operation{ Name: opForgetDevice, @@ -3019,11 +3523,10 @@ func (c *CognitoIdentityProvider) ForgetDeviceRequest(input *ForgetDeviceInput) input = &ForgetDeviceInput{} } + output = &ForgetDeviceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ForgetDeviceOutput{} - req.Data = output return } @@ -3039,36 +3542,37 @@ func (c *CognitoIdentityProvider) ForgetDeviceRequest(input *ForgetDeviceInput) // API operation ForgetDevice for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * InvalidUserPoolConfigurationException +// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" // This exception is thrown when the user pool configuration is invalid. // -// * PasswordResetRequiredException +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" // This exception is thrown when a password reset is required. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * UserNotConfirmedException +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ForgetDevice func (c *CognitoIdentityProvider) ForgetDevice(input *ForgetDeviceInput) (*ForgetDeviceOutput, error) { req, out := c.ForgetDeviceRequest(input) err := req.Send() @@ -3101,6 +3605,7 @@ const opForgotPassword = "ForgotPassword" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ForgotPassword func (c *CognitoIdentityProvider) ForgotPasswordRequest(input *ForgotPasswordInput) (req *request.Request, output *ForgotPasswordOutput) { op := &request.Operation{ Name: opForgotPassword, @@ -3112,10 +3617,9 @@ func (c *CognitoIdentityProvider) ForgotPasswordRequest(input *ForgotPasswordInp input = &ForgotPasswordInput{} } + output = &ForgotPasswordOutput{} req = c.newRequest(op, input, output) req.Config.Credentials = credentials.AnonymousCredentials - output = &ForgotPasswordOutput{} - req.Data = output return } @@ -3131,63 +3635,64 @@ func (c *CognitoIdentityProvider) ForgotPasswordRequest(input *ForgotPasswordInp // API operation ForgotPassword for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * UnexpectedLambdaException +// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" // This exception gets thrown when the Amazon Cognito service encounters an // unexpected exception with the AWS Lambda service. // -// * UserLambdaValidationException +// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" // This exception gets thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * InvalidLambdaResponseException +// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * InvalidSmsRoleAccessPolicyException +// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * InvalidSmsRoleTrustRelationshipException +// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * InvalidEmailRoleAccessPolicyException +// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" // This exception is thrown when Amazon Cognito is not allowed to use your email // identity. HTTP status code: 400. // -// * CodeDeliveryFailureException +// * ErrCodeCodeDeliveryFailureException "CodeDeliveryFailureException" // This exception is thrown when a verification code fails to deliver successfully. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * UserNotConfirmedException +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ForgotPassword func (c *CognitoIdentityProvider) ForgotPassword(input *ForgotPasswordInput) (*ForgotPasswordOutput, error) { req, out := c.ForgotPasswordRequest(input) err := req.Send() @@ -3220,6 +3725,7 @@ const opGetCSVHeader = "GetCSVHeader" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetCSVHeader func (c *CognitoIdentityProvider) GetCSVHeaderRequest(input *GetCSVHeaderInput) (req *request.Request, output *GetCSVHeaderOutput) { op := &request.Operation{ Name: opGetCSVHeader, @@ -3231,9 +3737,8 @@ func (c *CognitoIdentityProvider) GetCSVHeaderRequest(input *GetCSVHeaderInput) input = &GetCSVHeaderInput{} } - req = c.newRequest(op, input, output) output = &GetCSVHeaderOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3250,24 +3755,25 @@ func (c *CognitoIdentityProvider) GetCSVHeaderRequest(input *GetCSVHeaderInput) // API operation GetCSVHeader for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetCSVHeader func (c *CognitoIdentityProvider) GetCSVHeader(input *GetCSVHeaderInput) (*GetCSVHeaderOutput, error) { req, out := c.GetCSVHeaderRequest(input) err := req.Send() @@ -3300,6 +3806,7 @@ const opGetDevice = "GetDevice" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetDevice func (c *CognitoIdentityProvider) GetDeviceRequest(input *GetDeviceInput) (req *request.Request, output *GetDeviceOutput) { op := &request.Operation{ Name: opGetDevice, @@ -3311,9 +3818,8 @@ func (c *CognitoIdentityProvider) GetDeviceRequest(input *GetDeviceInput) (req * input = &GetDeviceInput{} } - req = c.newRequest(op, input, output) output = &GetDeviceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3329,42 +3835,125 @@ func (c *CognitoIdentityProvider) GetDeviceRequest(input *GetDeviceInput) (req * // API operation GetDevice for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * InvalidUserPoolConfigurationException +// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" // This exception is thrown when the user pool configuration is invalid. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * PasswordResetRequiredException +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" // This exception is thrown when a password reset is required. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * UserNotConfirmedException +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetDevice func (c *CognitoIdentityProvider) GetDevice(input *GetDeviceInput) (*GetDeviceOutput, error) { req, out := c.GetDeviceRequest(input) err := req.Send() return out, err } +const opGetGroup = "GetGroup" + +// GetGroupRequest generates a "aws/request.Request" representing the +// client's request for the GetGroup operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetGroup for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetGroup method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetGroupRequest method. +// req, resp := client.GetGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetGroup +func (c *CognitoIdentityProvider) GetGroupRequest(input *GetGroupInput) (req *request.Request, output *GetGroupOutput) { + op := &request.Operation{ + Name: opGetGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetGroupInput{} + } + + output = &GetGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetGroup API operation for Amazon Cognito Identity Provider. +// +// Gets a group. +// +// Requires developer credentials. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation GetGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception gets thrown when a user is not authorized. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetGroup +func (c *CognitoIdentityProvider) GetGroup(input *GetGroupInput) (*GetGroupOutput, error) { + req, out := c.GetGroupRequest(input) + err := req.Send() + return out, err +} + const opGetUser = "GetUser" // GetUserRequest generates a "aws/request.Request" representing the @@ -3391,6 +3980,7 @@ const opGetUser = "GetUser" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUser func (c *CognitoIdentityProvider) GetUserRequest(input *GetUserInput) (req *request.Request, output *GetUserOutput) { op := &request.Operation{ Name: opGetUser, @@ -3402,10 +3992,9 @@ func (c *CognitoIdentityProvider) GetUserRequest(input *GetUserInput) (req *requ input = &GetUserInput{} } + output = &GetUserOutput{} req = c.newRequest(op, input, output) req.Config.Credentials = credentials.AnonymousCredentials - output = &GetUserOutput{} - req.Data = output return } @@ -3421,33 +4010,34 @@ func (c *CognitoIdentityProvider) GetUserRequest(input *GetUserInput) (req *requ // API operation GetUser for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * PasswordResetRequiredException +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" // This exception is thrown when a password reset is required. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * UserNotConfirmedException +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUser func (c *CognitoIdentityProvider) GetUser(input *GetUserInput) (*GetUserOutput, error) { req, out := c.GetUserRequest(input) err := req.Send() @@ -3480,6 +4070,7 @@ const opGetUserAttributeVerificationCode = "GetUserAttributeVerificationCode" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUserAttributeVerificationCode func (c *CognitoIdentityProvider) GetUserAttributeVerificationCodeRequest(input *GetUserAttributeVerificationCodeInput) (req *request.Request, output *GetUserAttributeVerificationCodeOutput) { op := &request.Operation{ Name: opGetUserAttributeVerificationCode, @@ -3491,10 +4082,9 @@ func (c *CognitoIdentityProvider) GetUserAttributeVerificationCodeRequest(input input = &GetUserAttributeVerificationCodeInput{} } + output = &GetUserAttributeVerificationCodeOutput{} req = c.newRequest(op, input, output) req.Config.Credentials = credentials.AnonymousCredentials - output = &GetUserAttributeVerificationCodeOutput{} - req.Data = output return } @@ -3510,66 +4100,67 @@ func (c *CognitoIdentityProvider) GetUserAttributeVerificationCodeRequest(input // API operation GetUserAttributeVerificationCode for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * UnexpectedLambdaException +// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" // This exception gets thrown when the Amazon Cognito service encounters an // unexpected exception with the AWS Lambda service. // -// * UserLambdaValidationException +// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" // This exception gets thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * InvalidLambdaResponseException +// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * InvalidSmsRoleAccessPolicyException +// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * InvalidSmsRoleTrustRelationshipException +// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * InvalidEmailRoleAccessPolicyException +// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" // This exception is thrown when Amazon Cognito is not allowed to use your email // identity. HTTP status code: 400. // -// * CodeDeliveryFailureException +// * ErrCodeCodeDeliveryFailureException "CodeDeliveryFailureException" // This exception is thrown when a verification code fails to deliver successfully. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * PasswordResetRequiredException +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" // This exception is thrown when a password reset is required. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * UserNotConfirmedException +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUserAttributeVerificationCode func (c *CognitoIdentityProvider) GetUserAttributeVerificationCode(input *GetUserAttributeVerificationCodeInput) (*GetUserAttributeVerificationCodeOutput, error) { req, out := c.GetUserAttributeVerificationCodeRequest(input) err := req.Send() @@ -3602,6 +4193,7 @@ const opGlobalSignOut = "GlobalSignOut" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GlobalSignOut func (c *CognitoIdentityProvider) GlobalSignOutRequest(input *GlobalSignOutInput) (req *request.Request, output *GlobalSignOutOutput) { op := &request.Operation{ Name: opGlobalSignOut, @@ -3613,9 +4205,8 @@ func (c *CognitoIdentityProvider) GlobalSignOutRequest(input *GlobalSignOutInput input = &GlobalSignOutInput{} } - req = c.newRequest(op, input, output) output = &GlobalSignOutOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3631,30 +4222,31 @@ func (c *CognitoIdentityProvider) GlobalSignOutRequest(input *GlobalSignOutInput // API operation GlobalSignOut for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * PasswordResetRequiredException +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" // This exception is thrown when a password reset is required. // -// * UserNotConfirmedException +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GlobalSignOut func (c *CognitoIdentityProvider) GlobalSignOut(input *GlobalSignOutInput) (*GlobalSignOutOutput, error) { req, out := c.GlobalSignOutRequest(input) err := req.Send() @@ -3687,6 +4279,7 @@ const opInitiateAuth = "InitiateAuth" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/InitiateAuth func (c *CognitoIdentityProvider) InitiateAuthRequest(input *InitiateAuthInput) (req *request.Request, output *InitiateAuthOutput) { op := &request.Operation{ Name: opInitiateAuth, @@ -3698,9 +4291,8 @@ func (c *CognitoIdentityProvider) InitiateAuthRequest(input *InitiateAuthInput) input = &InitiateAuthInput{} } - req = c.newRequest(op, input, output) output = &InitiateAuthOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3716,48 +4308,49 @@ func (c *CognitoIdentityProvider) InitiateAuthRequest(input *InitiateAuthInput) // API operation InitiateAuth for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * UnexpectedLambdaException +// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" // This exception gets thrown when the Amazon Cognito service encounters an // unexpected exception with the AWS Lambda service. // -// * InvalidUserPoolConfigurationException +// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" // This exception is thrown when the user pool configuration is invalid. // -// * UserLambdaValidationException +// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" // This exception gets thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * InvalidLambdaResponseException +// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * PasswordResetRequiredException +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" // This exception is thrown when a password reset is required. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * UserNotConfirmedException +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/InitiateAuth func (c *CognitoIdentityProvider) InitiateAuth(input *InitiateAuthInput) (*InitiateAuthOutput, error) { req, out := c.InitiateAuthRequest(input) err := req.Send() @@ -3790,6 +4383,7 @@ const opListDevices = "ListDevices" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListDevices func (c *CognitoIdentityProvider) ListDevicesRequest(input *ListDevicesInput) (req *request.Request, output *ListDevicesOutput) { op := &request.Operation{ Name: opListDevices, @@ -3801,9 +4395,8 @@ func (c *CognitoIdentityProvider) ListDevicesRequest(input *ListDevicesInput) (r input = &ListDevicesInput{} } - req = c.newRequest(op, input, output) output = &ListDevicesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3819,122 +4412,206 @@ func (c *CognitoIdentityProvider) ListDevicesRequest(input *ListDevicesInput) (r // API operation ListDevices for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * InvalidUserPoolConfigurationException +// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" // This exception is thrown when the user pool configuration is invalid. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * PasswordResetRequiredException +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" // This exception is thrown when a password reset is required. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * UserNotConfirmedException +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListDevices func (c *CognitoIdentityProvider) ListDevices(input *ListDevicesInput) (*ListDevicesOutput, error) { req, out := c.ListDevicesRequest(input) err := req.Send() return out, err } -const opListUserImportJobs = "ListUserImportJobs" +const opListGroups = "ListGroups" -// ListUserImportJobsRequest generates a "aws/request.Request" representing the -// client's request for the ListUserImportJobs operation. The "output" return +// ListGroupsRequest generates a "aws/request.Request" representing the +// client's request for the ListGroups operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ListUserImportJobs for usage and error information. +// See ListGroups for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ListUserImportJobs method directly +// you just want the service response, call the ListGroups method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ListUserImportJobsRequest method. -// req, resp := client.ListUserImportJobsRequest(params) +// // Example sending a request using the ListGroupsRequest method. +// req, resp := client.ListGroupsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *CognitoIdentityProvider) ListUserImportJobsRequest(input *ListUserImportJobsInput) (req *request.Request, output *ListUserImportJobsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListGroups +func (c *CognitoIdentityProvider) ListGroupsRequest(input *ListGroupsInput) (req *request.Request, output *ListGroupsOutput) { op := &request.Operation{ - Name: opListUserImportJobs, + Name: opListGroups, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ListUserImportJobsInput{} + input = &ListGroupsInput{} } + output = &ListGroupsOutput{} req = c.newRequest(op, input, output) - output = &ListUserImportJobsOutput{} - req.Data = output return } -// ListUserImportJobs API operation for Amazon Cognito Identity Provider. +// ListGroups API operation for Amazon Cognito Identity Provider. // -// Lists the user import jobs. +// Lists the groups associated with a user pool. +// +// Requires developer credentials. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Cognito Identity Provider's -// API operation ListUserImportJobs for usage and error information. +// API operation ListGroups for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// This exception is thrown when the Amazon Cognito service cannot find the -// requested resource. -// -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // -func (c *CognitoIdentityProvider) ListUserImportJobs(input *ListUserImportJobsInput) (*ListUserImportJobsOutput, error) { - req, out := c.ListUserImportJobsRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListGroups +func (c *CognitoIdentityProvider) ListGroups(input *ListGroupsInput) (*ListGroupsOutput, error) { + req, out := c.ListGroupsRequest(input) err := req.Send() return out, err } -const opListUserPoolClients = "ListUserPoolClients" +const opListUserImportJobs = "ListUserImportJobs" + +// ListUserImportJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListUserImportJobs operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListUserImportJobs for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListUserImportJobs method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListUserImportJobsRequest method. +// req, resp := client.ListUserImportJobsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserImportJobs +func (c *CognitoIdentityProvider) ListUserImportJobsRequest(input *ListUserImportJobsInput) (req *request.Request, output *ListUserImportJobsOutput) { + op := &request.Operation{ + Name: opListUserImportJobs, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListUserImportJobsInput{} + } + + output = &ListUserImportJobsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListUserImportJobs API operation for Amazon Cognito Identity Provider. +// +// Lists the user import jobs. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation ListUserImportJobs for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception gets thrown when a user is not authorized. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserImportJobs +func (c *CognitoIdentityProvider) ListUserImportJobs(input *ListUserImportJobsInput) (*ListUserImportJobsOutput, error) { + req, out := c.ListUserImportJobsRequest(input) + err := req.Send() + return out, err +} + +const opListUserPoolClients = "ListUserPoolClients" // ListUserPoolClientsRequest generates a "aws/request.Request" representing the // client's request for the ListUserPoolClients operation. The "output" return @@ -3960,6 +4637,7 @@ const opListUserPoolClients = "ListUserPoolClients" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserPoolClients func (c *CognitoIdentityProvider) ListUserPoolClientsRequest(input *ListUserPoolClientsInput) (req *request.Request, output *ListUserPoolClientsOutput) { op := &request.Operation{ Name: opListUserPoolClients, @@ -3971,9 +4649,8 @@ func (c *CognitoIdentityProvider) ListUserPoolClientsRequest(input *ListUserPool input = &ListUserPoolClientsInput{} } - req = c.newRequest(op, input, output) output = &ListUserPoolClientsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3989,24 +4666,25 @@ func (c *CognitoIdentityProvider) ListUserPoolClientsRequest(input *ListUserPool // API operation ListUserPoolClients for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserPoolClients func (c *CognitoIdentityProvider) ListUserPoolClients(input *ListUserPoolClientsInput) (*ListUserPoolClientsOutput, error) { req, out := c.ListUserPoolClientsRequest(input) err := req.Send() @@ -4039,6 +4717,7 @@ const opListUserPools = "ListUserPools" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserPools func (c *CognitoIdentityProvider) ListUserPoolsRequest(input *ListUserPoolsInput) (req *request.Request, output *ListUserPoolsOutput) { op := &request.Operation{ Name: opListUserPools, @@ -4050,9 +4729,8 @@ func (c *CognitoIdentityProvider) ListUserPoolsRequest(input *ListUserPoolsInput input = &ListUserPoolsInput{} } - req = c.newRequest(op, input, output) output = &ListUserPoolsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4068,20 +4746,21 @@ func (c *CognitoIdentityProvider) ListUserPoolsRequest(input *ListUserPoolsInput // API operation ListUserPools for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserPools func (c *CognitoIdentityProvider) ListUserPools(input *ListUserPoolsInput) (*ListUserPoolsOutput, error) { req, out := c.ListUserPoolsRequest(input) err := req.Send() @@ -4114,6 +4793,7 @@ const opListUsers = "ListUsers" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUsers func (c *CognitoIdentityProvider) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput) { op := &request.Operation{ Name: opListUsers, @@ -4125,9 +4805,8 @@ func (c *CognitoIdentityProvider) ListUsersRequest(input *ListUsersInput) (req * input = &ListUsersInput{} } - req = c.newRequest(op, input, output) output = &ListUsersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4143,30 +4822,113 @@ func (c *CognitoIdentityProvider) ListUsersRequest(input *ListUsersInput) (req * // API operation ListUsers for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUsers func (c *CognitoIdentityProvider) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { req, out := c.ListUsersRequest(input) err := req.Send() return out, err } +const opListUsersInGroup = "ListUsersInGroup" + +// ListUsersInGroupRequest generates a "aws/request.Request" representing the +// client's request for the ListUsersInGroup operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListUsersInGroup for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListUsersInGroup method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListUsersInGroupRequest method. +// req, resp := client.ListUsersInGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUsersInGroup +func (c *CognitoIdentityProvider) ListUsersInGroupRequest(input *ListUsersInGroupInput) (req *request.Request, output *ListUsersInGroupOutput) { + op := &request.Operation{ + Name: opListUsersInGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListUsersInGroupInput{} + } + + output = &ListUsersInGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListUsersInGroup API operation for Amazon Cognito Identity Provider. +// +// Lists the users in the specified group. +// +// Requires developer credentials. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation ListUsersInGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception gets thrown when a user is not authorized. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUsersInGroup +func (c *CognitoIdentityProvider) ListUsersInGroup(input *ListUsersInGroupInput) (*ListUsersInGroupOutput, error) { + req, out := c.ListUsersInGroupRequest(input) + err := req.Send() + return out, err +} + const opResendConfirmationCode = "ResendConfirmationCode" // ResendConfirmationCodeRequest generates a "aws/request.Request" representing the @@ -4193,6 +4955,7 @@ const opResendConfirmationCode = "ResendConfirmationCode" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ResendConfirmationCode func (c *CognitoIdentityProvider) ResendConfirmationCodeRequest(input *ResendConfirmationCodeInput) (req *request.Request, output *ResendConfirmationCodeOutput) { op := &request.Operation{ Name: opResendConfirmationCode, @@ -4204,10 +4967,9 @@ func (c *CognitoIdentityProvider) ResendConfirmationCodeRequest(input *ResendCon input = &ResendConfirmationCodeInput{} } + output = &ResendConfirmationCodeOutput{} req = c.newRequest(op, input, output) req.Config.Credentials = credentials.AnonymousCredentials - output = &ResendConfirmationCodeOutput{} - req.Data = output return } @@ -4224,60 +4986,61 @@ func (c *CognitoIdentityProvider) ResendConfirmationCodeRequest(input *ResendCon // API operation ResendConfirmationCode for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * UnexpectedLambdaException +// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" // This exception gets thrown when the Amazon Cognito service encounters an // unexpected exception with the AWS Lambda service. // -// * UserLambdaValidationException +// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" // This exception gets thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * InvalidLambdaResponseException +// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * InvalidSmsRoleAccessPolicyException +// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * InvalidSmsRoleTrustRelationshipException +// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * InvalidEmailRoleAccessPolicyException +// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" // This exception is thrown when Amazon Cognito is not allowed to use your email // identity. HTTP status code: 400. // -// * CodeDeliveryFailureException +// * ErrCodeCodeDeliveryFailureException "CodeDeliveryFailureException" // This exception is thrown when a verification code fails to deliver successfully. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ResendConfirmationCode func (c *CognitoIdentityProvider) ResendConfirmationCode(input *ResendConfirmationCodeInput) (*ResendConfirmationCodeOutput, error) { req, out := c.ResendConfirmationCodeRequest(input) err := req.Send() @@ -4310,6 +5073,7 @@ const opRespondToAuthChallenge = "RespondToAuthChallenge" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/RespondToAuthChallenge func (c *CognitoIdentityProvider) RespondToAuthChallengeRequest(input *RespondToAuthChallengeInput) (req *request.Request, output *RespondToAuthChallengeOutput) { op := &request.Operation{ Name: opRespondToAuthChallenge, @@ -4321,9 +5085,8 @@ func (c *CognitoIdentityProvider) RespondToAuthChallengeRequest(input *RespondTo input = &RespondToAuthChallengeInput{} } - req = c.newRequest(op, input, output) output = &RespondToAuthChallengeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4339,79 +5102,80 @@ func (c *CognitoIdentityProvider) RespondToAuthChallengeRequest(input *RespondTo // API operation RespondToAuthChallenge for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * CodeMismatchException +// * ErrCodeCodeMismatchException "CodeMismatchException" // This exception is thrown if the provided code does not match what the server // was expecting. // -// * ExpiredCodeException +// * ErrCodeExpiredCodeException "ExpiredCodeException" // This exception is thrown if a code has expired. // -// * UnexpectedLambdaException +// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" // This exception gets thrown when the Amazon Cognito service encounters an // unexpected exception with the AWS Lambda service. // -// * UserLambdaValidationException +// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" // This exception gets thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * InvalidPasswordException +// * ErrCodeInvalidPasswordException "InvalidPasswordException" // This exception is thrown when the Amazon Cognito service encounters an invalid // password. // -// * InvalidLambdaResponseException +// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * InvalidUserPoolConfigurationException +// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" // This exception is thrown when the user pool configuration is invalid. // -// * MFAMethodNotFoundException +// * ErrCodeMFAMethodNotFoundException "MFAMethodNotFoundException" // This exception is thrown when Amazon Cognito cannot find a multi-factor authentication // (MFA) method. // -// * PasswordResetRequiredException +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" // This exception is thrown when a password reset is required. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * UserNotConfirmedException +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // -// * InvalidSmsRoleAccessPolicyException +// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * InvalidSmsRoleTrustRelationshipException +// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * AliasExistsException +// * ErrCodeAliasExistsException "AliasExistsException" // This exception is thrown when a user tries to confirm the account with an // email or phone number that has already been supplied as an alias from a different // account. This exception tells user that an account with this email or phone // already exists. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/RespondToAuthChallenge func (c *CognitoIdentityProvider) RespondToAuthChallenge(input *RespondToAuthChallengeInput) (*RespondToAuthChallengeOutput, error) { req, out := c.RespondToAuthChallengeRequest(input) err := req.Send() @@ -4444,6 +5208,7 @@ const opSetUserSettings = "SetUserSettings" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUserSettings func (c *CognitoIdentityProvider) SetUserSettingsRequest(input *SetUserSettingsInput) (req *request.Request, output *SetUserSettingsOutput) { op := &request.Operation{ Name: opSetUserSettings, @@ -4455,10 +5220,9 @@ func (c *CognitoIdentityProvider) SetUserSettingsRequest(input *SetUserSettingsI input = &SetUserSettingsInput{} } + output = &SetUserSettingsOutput{} req = c.newRequest(op, input, output) req.Config.Credentials = credentials.AnonymousCredentials - output = &SetUserSettingsOutput{} - req.Data = output return } @@ -4476,29 +5240,30 @@ func (c *CognitoIdentityProvider) SetUserSettingsRequest(input *SetUserSettingsI // API operation SetUserSettings for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * PasswordResetRequiredException +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" // This exception is thrown when a password reset is required. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * UserNotConfirmedException +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUserSettings func (c *CognitoIdentityProvider) SetUserSettings(input *SetUserSettingsInput) (*SetUserSettingsOutput, error) { req, out := c.SetUserSettingsRequest(input) err := req.Send() @@ -4531,6 +5296,7 @@ const opSignUp = "SignUp" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SignUp func (c *CognitoIdentityProvider) SignUpRequest(input *SignUpInput) (req *request.Request, output *SignUpOutput) { op := &request.Operation{ Name: opSignUp, @@ -4542,10 +5308,9 @@ func (c *CognitoIdentityProvider) SignUpRequest(input *SignUpInput) (req *reques input = &SignUpInput{} } + output = &SignUpOutput{} req = c.newRequest(op, input, output) req.Config.Credentials = credentials.AnonymousCredentials - output = &SignUpOutput{} - req.Data = output return } @@ -4562,61 +5327,62 @@ func (c *CognitoIdentityProvider) SignUpRequest(input *SignUpInput) (req *reques // API operation SignUp for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * UnexpectedLambdaException +// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" // This exception gets thrown when the Amazon Cognito service encounters an // unexpected exception with the AWS Lambda service. // -// * UserLambdaValidationException +// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" // This exception gets thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * InvalidPasswordException +// * ErrCodeInvalidPasswordException "InvalidPasswordException" // This exception is thrown when the Amazon Cognito service encounters an invalid // password. // -// * InvalidLambdaResponseException +// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * UsernameExistsException +// * ErrCodeUsernameExistsException "UsernameExistsException" // This exception is thrown when Amazon Cognito encounters a user name that // already exists in the user pool. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // -// * InvalidSmsRoleAccessPolicyException +// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * InvalidSmsRoleTrustRelationshipException +// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * InvalidEmailRoleAccessPolicyException +// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" // This exception is thrown when Amazon Cognito is not allowed to use your email // identity. HTTP status code: 400. // -// * CodeDeliveryFailureException +// * ErrCodeCodeDeliveryFailureException "CodeDeliveryFailureException" // This exception is thrown when a verification code fails to deliver successfully. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SignUp func (c *CognitoIdentityProvider) SignUp(input *SignUpInput) (*SignUpOutput, error) { req, out := c.SignUpRequest(input) err := req.Send() @@ -4649,6 +5415,7 @@ const opStartUserImportJob = "StartUserImportJob" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StartUserImportJob func (c *CognitoIdentityProvider) StartUserImportJobRequest(input *StartUserImportJobInput) (req *request.Request, output *StartUserImportJobOutput) { op := &request.Operation{ Name: opStartUserImportJob, @@ -4660,9 +5427,8 @@ func (c *CognitoIdentityProvider) StartUserImportJobRequest(input *StartUserImpo input = &StartUserImportJobInput{} } - req = c.newRequest(op, input, output) output = &StartUserImportJobOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4678,27 +5444,28 @@ func (c *CognitoIdentityProvider) StartUserImportJobRequest(input *StartUserImpo // API operation StartUserImportJob for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // -// * PreconditionNotMetException +// * ErrCodePreconditionNotMetException "PreconditionNotMetException" // This exception is thrown when a precondition is not met. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StartUserImportJob func (c *CognitoIdentityProvider) StartUserImportJob(input *StartUserImportJobInput) (*StartUserImportJobOutput, error) { req, out := c.StartUserImportJobRequest(input) err := req.Send() @@ -4731,6 +5498,7 @@ const opStopUserImportJob = "StopUserImportJob" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StopUserImportJob func (c *CognitoIdentityProvider) StopUserImportJobRequest(input *StopUserImportJobInput) (req *request.Request, output *StopUserImportJobOutput) { op := &request.Operation{ Name: opStopUserImportJob, @@ -4742,9 +5510,8 @@ func (c *CognitoIdentityProvider) StopUserImportJobRequest(input *StopUserImport input = &StopUserImportJobInput{} } - req = c.newRequest(op, input, output) output = &StopUserImportJobOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4760,27 +5527,28 @@ func (c *CognitoIdentityProvider) StopUserImportJobRequest(input *StopUserImport // API operation StopUserImportJob for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // -// * PreconditionNotMetException +// * ErrCodePreconditionNotMetException "PreconditionNotMetException" // This exception is thrown when a precondition is not met. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StopUserImportJob func (c *CognitoIdentityProvider) StopUserImportJob(input *StopUserImportJobInput) (*StopUserImportJobOutput, error) { req, out := c.StopUserImportJobRequest(input) err := req.Send() @@ -4813,6 +5581,7 @@ const opUpdateDeviceStatus = "UpdateDeviceStatus" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateDeviceStatus func (c *CognitoIdentityProvider) UpdateDeviceStatusRequest(input *UpdateDeviceStatusInput) (req *request.Request, output *UpdateDeviceStatusOutput) { op := &request.Operation{ Name: opUpdateDeviceStatus, @@ -4824,9 +5593,8 @@ func (c *CognitoIdentityProvider) UpdateDeviceStatusRequest(input *UpdateDeviceS input = &UpdateDeviceStatusInput{} } - req = c.newRequest(op, input, output) output = &UpdateDeviceStatusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4842,42 +5610,125 @@ func (c *CognitoIdentityProvider) UpdateDeviceStatusRequest(input *UpdateDeviceS // API operation UpdateDeviceStatus for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * InvalidUserPoolConfigurationException +// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" // This exception is thrown when the user pool configuration is invalid. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * PasswordResetRequiredException +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" // This exception is thrown when a password reset is required. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * UserNotConfirmedException +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateDeviceStatus func (c *CognitoIdentityProvider) UpdateDeviceStatus(input *UpdateDeviceStatusInput) (*UpdateDeviceStatusOutput, error) { req, out := c.UpdateDeviceStatusRequest(input) err := req.Send() return out, err } +const opUpdateGroup = "UpdateGroup" + +// UpdateGroupRequest generates a "aws/request.Request" representing the +// client's request for the UpdateGroup operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateGroup for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateGroup method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateGroupRequest method. +// req, resp := client.UpdateGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateGroup +func (c *CognitoIdentityProvider) UpdateGroupRequest(input *UpdateGroupInput) (req *request.Request, output *UpdateGroupOutput) { + op := &request.Operation{ + Name: opUpdateGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateGroupInput{} + } + + output = &UpdateGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateGroup API operation for Amazon Cognito Identity Provider. +// +// Updates the specified group with the specified attributes. +// +// Requires developer credentials. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation UpdateGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// This exception gets thrown when a user is not authorized. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateGroup +func (c *CognitoIdentityProvider) UpdateGroup(input *UpdateGroupInput) (*UpdateGroupOutput, error) { + req, out := c.UpdateGroupRequest(input) + err := req.Send() + return out, err +} + const opUpdateUserAttributes = "UpdateUserAttributes" // UpdateUserAttributesRequest generates a "aws/request.Request" representing the @@ -4904,6 +5755,7 @@ const opUpdateUserAttributes = "UpdateUserAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserAttributes func (c *CognitoIdentityProvider) UpdateUserAttributesRequest(input *UpdateUserAttributesInput) (req *request.Request, output *UpdateUserAttributesOutput) { op := &request.Operation{ Name: opUpdateUserAttributes, @@ -4915,10 +5767,9 @@ func (c *CognitoIdentityProvider) UpdateUserAttributesRequest(input *UpdateUserA input = &UpdateUserAttributesInput{} } + output = &UpdateUserAttributesOutput{} req = c.newRequest(op, input, output) req.Config.Credentials = credentials.AnonymousCredentials - output = &UpdateUserAttributesOutput{} - req.Data = output return } @@ -4934,75 +5785,76 @@ func (c *CognitoIdentityProvider) UpdateUserAttributesRequest(input *UpdateUserA // API operation UpdateUserAttributes for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * CodeMismatchException +// * ErrCodeCodeMismatchException "CodeMismatchException" // This exception is thrown if the provided code does not match what the server // was expecting. // -// * ExpiredCodeException +// * ErrCodeExpiredCodeException "ExpiredCodeException" // This exception is thrown if a code has expired. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * UnexpectedLambdaException +// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" // This exception gets thrown when the Amazon Cognito service encounters an // unexpected exception with the AWS Lambda service. // -// * UserLambdaValidationException +// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" // This exception gets thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * InvalidLambdaResponseException +// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * AliasExistsException +// * ErrCodeAliasExistsException "AliasExistsException" // This exception is thrown when a user tries to confirm the account with an // email or phone number that has already been supplied as an alias from a different // account. This exception tells user that an account with this email or phone // already exists. // -// * InvalidSmsRoleAccessPolicyException +// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * InvalidSmsRoleTrustRelationshipException +// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * InvalidEmailRoleAccessPolicyException +// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" // This exception is thrown when Amazon Cognito is not allowed to use your email // identity. HTTP status code: 400. // -// * CodeDeliveryFailureException +// * ErrCodeCodeDeliveryFailureException "CodeDeliveryFailureException" // This exception is thrown when a verification code fails to deliver successfully. // -// * PasswordResetRequiredException +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" // This exception is thrown when a password reset is required. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * UserNotConfirmedException +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserAttributes func (c *CognitoIdentityProvider) UpdateUserAttributes(input *UpdateUserAttributesInput) (*UpdateUserAttributesOutput, error) { req, out := c.UpdateUserAttributesRequest(input) err := req.Send() @@ -5035,6 +5887,7 @@ const opUpdateUserPool = "UpdateUserPool" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserPool func (c *CognitoIdentityProvider) UpdateUserPoolRequest(input *UpdateUserPoolInput) (req *request.Request, output *UpdateUserPoolOutput) { op := &request.Operation{ Name: opUpdateUserPool, @@ -5046,9 +5899,8 @@ func (c *CognitoIdentityProvider) UpdateUserPoolRequest(input *UpdateUserPoolInp input = &UpdateUserPoolInput{} } - req = c.newRequest(op, input, output) output = &UpdateUserPoolOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5064,45 +5916,49 @@ func (c *CognitoIdentityProvider) UpdateUserPoolRequest(input *UpdateUserPoolInp // API operation UpdateUserPool for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ConcurrentModificationException +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" // This exception is thrown if two or more modifications are happening concurrently. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * UserImportInProgressException +// * ErrCodeUserImportInProgressException "UserImportInProgressException" // This exception is thrown when you are trying to modify a user pool while // a user import job is in progress for that pool. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // -// * InvalidSmsRoleAccessPolicyException +// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * InvalidSmsRoleTrustRelationshipException +// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * InvalidEmailRoleAccessPolicyException +// * ErrCodeUserPoolTaggingException "UserPoolTaggingException" +// This exception gets thrown when a user pool tag cannot be set or updated. +// +// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" // This exception is thrown when Amazon Cognito is not allowed to use your email // identity. HTTP status code: 400. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserPool func (c *CognitoIdentityProvider) UpdateUserPool(input *UpdateUserPoolInput) (*UpdateUserPoolOutput, error) { req, out := c.UpdateUserPoolRequest(input) err := req.Send() @@ -5135,6 +5991,7 @@ const opUpdateUserPoolClient = "UpdateUserPoolClient" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserPoolClient func (c *CognitoIdentityProvider) UpdateUserPoolClientRequest(input *UpdateUserPoolClientInput) (req *request.Request, output *UpdateUserPoolClientOutput) { op := &request.Operation{ Name: opUpdateUserPoolClient, @@ -5146,9 +6003,8 @@ func (c *CognitoIdentityProvider) UpdateUserPoolClientRequest(input *UpdateUserP input = &UpdateUserPoolClientInput{} } - req = c.newRequest(op, input, output) output = &UpdateUserPoolClientOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5165,24 +6021,25 @@ func (c *CognitoIdentityProvider) UpdateUserPoolClientRequest(input *UpdateUserP // API operation UpdateUserPoolClient for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserPoolClient func (c *CognitoIdentityProvider) UpdateUserPoolClient(input *UpdateUserPoolClientInput) (*UpdateUserPoolClientOutput, error) { req, out := c.UpdateUserPoolClientRequest(input) err := req.Send() @@ -5215,6 +6072,7 @@ const opVerifyUserAttribute = "VerifyUserAttribute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/VerifyUserAttribute func (c *CognitoIdentityProvider) VerifyUserAttributeRequest(input *VerifyUserAttributeInput) (req *request.Request, output *VerifyUserAttributeOutput) { op := &request.Operation{ Name: opVerifyUserAttribute, @@ -5226,10 +6084,9 @@ func (c *CognitoIdentityProvider) VerifyUserAttributeRequest(input *VerifyUserAt input = &VerifyUserAttributeInput{} } + output = &VerifyUserAttributeOutput{} req = c.newRequest(op, input, output) req.Config.Credentials = credentials.AnonymousCredentials - output = &VerifyUserAttributeOutput{} - req.Data = output return } @@ -5245,44 +6102,45 @@ func (c *CognitoIdentityProvider) VerifyUserAttributeRequest(input *VerifyUserAt // API operation VerifyUserAttribute for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * CodeMismatchException +// * ErrCodeCodeMismatchException "CodeMismatchException" // This exception is thrown if the provided code does not match what the server // was expecting. // -// * ExpiredCodeException +// * ErrCodeExpiredCodeException "ExpiredCodeException" // This exception is thrown if a code has expired. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // This exception gets thrown when a user is not authorized. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // This exception gets thrown when the user has made too many requests for a // given operation. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * PasswordResetRequiredException +// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" // This exception is thrown when a password reset is required. // -// * UserNotFoundException +// * ErrCodeUserNotFoundException "UserNotFoundException" // This exception is thrown when a user is not found. // -// * UserNotConfirmedException +// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" // This exception is thrown when a user is not confirmed successfully. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // This exception is thrown when Amazon Cognito encounters an internal error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/VerifyUserAttribute func (c *CognitoIdentityProvider) VerifyUserAttribute(input *VerifyUserAttributeInput) (*VerifyUserAttributeOutput, error) { req, out := c.VerifyUserAttributeRequest(input) err := req.Send() @@ -5290,6 +6148,7 @@ func (c *CognitoIdentityProvider) VerifyUserAttribute(input *VerifyUserAttribute } // Represents the request to add custom attributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AddCustomAttributesRequest type AddCustomAttributesInput struct { _ struct{} `type:"structure"` @@ -5346,7 +6205,20 @@ func (s *AddCustomAttributesInput) Validate() error { return nil } +// SetCustomAttributes sets the CustomAttributes field's value. +func (s *AddCustomAttributesInput) SetCustomAttributes(v []*SchemaAttributeType) *AddCustomAttributesInput { + s.CustomAttributes = v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AddCustomAttributesInput) SetUserPoolId(v string) *AddCustomAttributesInput { + s.UserPoolId = &v + return s +} + // Represents the response from the server for the request to add custom attributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AddCustomAttributesResponse type AddCustomAttributesOutput struct { _ struct{} `type:"structure"` } @@ -5361,34 +6233,45 @@ func (s AddCustomAttributesOutput) GoString() string { return s.String() } -// Represents the request to confirm user registration. -type AdminConfirmSignUpInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminAddUserToGroupRequest +type AdminAddUserToGroupInput struct { _ struct{} `type:"structure"` - // The user pool ID for which you want to confirm user registration. + // The group name. + // + // GroupName is a required field + GroupName *string `min:"1" type:"string" required:"true"` + + // The user pool ID for the user pool. // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` - // The user name for which you want to confirm user registration. + // The username for the user. // // Username is a required field Username *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s AdminConfirmSignUpInput) String() string { +func (s AdminAddUserToGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminConfirmSignUpInput) GoString() string { +func (s AdminAddUserToGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminConfirmSignUpInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminConfirmSignUpInput"} +func (s *AdminAddUserToGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminAddUserToGroupInput"} + if s.GroupName == nil { + invalidParams.Add(request.NewErrParamRequired("GroupName")) + } + if s.GroupName != nil && len(*s.GroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) + } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } @@ -5408,35 +6291,131 @@ func (s *AdminConfirmSignUpInput) Validate() error { return nil } -// Represents the response from the server for the request to confirm registration. -type AdminConfirmSignUpOutput struct { +// SetGroupName sets the GroupName field's value. +func (s *AdminAddUserToGroupInput) SetGroupName(v string) *AdminAddUserToGroupInput { + s.GroupName = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminAddUserToGroupInput) SetUserPoolId(v string) *AdminAddUserToGroupInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminAddUserToGroupInput) SetUsername(v string) *AdminAddUserToGroupInput { + s.Username = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminAddUserToGroupOutput +type AdminAddUserToGroupOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s AdminConfirmSignUpOutput) String() string { +func (s AdminAddUserToGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminConfirmSignUpOutput) GoString() string { +func (s AdminAddUserToGroupOutput) GoString() string { return s.String() } -// The type of configuration for creating a new user profile. -type AdminCreateUserConfigType struct { +// Represents the request to confirm user registration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminConfirmSignUpRequest +type AdminConfirmSignUpInput struct { _ struct{} `type:"structure"` - // Set to True if only the administrator is allowed to create user profiles. - // Set to False if users can sign themselves up via an app. - AllowAdminCreateUserOnly *bool `type:"boolean"` - - // The message template to be used for the welcome message to new users. - InviteMessageTemplate *MessageTemplateType `type:"structure"` + // The user pool ID for which you want to confirm user registration. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` + + // The user name for which you want to confirm user registration. + // + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AdminConfirmSignUpInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminConfirmSignUpInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AdminConfirmSignUpInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminConfirmSignUpInput"} + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminConfirmSignUpInput) SetUserPoolId(v string) *AdminConfirmSignUpInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminConfirmSignUpInput) SetUsername(v string) *AdminConfirmSignUpInput { + s.Username = &v + return s +} + +// Represents the response from the server for the request to confirm registration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminConfirmSignUpResponse +type AdminConfirmSignUpOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AdminConfirmSignUpOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminConfirmSignUpOutput) GoString() string { + return s.String() +} + +// The type of configuration for creating a new user profile. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminCreateUserConfigType +type AdminCreateUserConfigType struct { + _ struct{} `type:"structure"` + + // Set to True if only the administrator is allowed to create user profiles. + // Set to False if users can sign themselves up via an app. + AllowAdminCreateUserOnly *bool `type:"boolean"` + + // The message template to be used for the welcome message to new users. + InviteMessageTemplate *MessageTemplateType `type:"structure"` // The user account expiration limit, in days, after which the account is no // longer usable. To reset the account after that time limit, you must call // AdminCreateUser again, specifying "RESEND" for the MessageAction parameter. + // The default value for this paameter is 7. UnusedAccountValidityDays *int64 `type:"integer"` } @@ -5465,7 +6444,26 @@ func (s *AdminCreateUserConfigType) Validate() error { return nil } +// SetAllowAdminCreateUserOnly sets the AllowAdminCreateUserOnly field's value. +func (s *AdminCreateUserConfigType) SetAllowAdminCreateUserOnly(v bool) *AdminCreateUserConfigType { + s.AllowAdminCreateUserOnly = &v + return s +} + +// SetInviteMessageTemplate sets the InviteMessageTemplate field's value. +func (s *AdminCreateUserConfigType) SetInviteMessageTemplate(v *MessageTemplateType) *AdminCreateUserConfigType { + s.InviteMessageTemplate = v + return s +} + +// SetUnusedAccountValidityDays sets the UnusedAccountValidityDays field's value. +func (s *AdminCreateUserConfigType) SetUnusedAccountValidityDays(v int64) *AdminCreateUserConfigType { + s.UnusedAccountValidityDays = &v + return s +} + // Represents the request to create a user in the specified user pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminCreateUserRequest type AdminCreateUserInput struct { _ struct{} `type:"structure"` @@ -5495,9 +6493,9 @@ type AdminCreateUserInput struct { // The user's temporary password. This password must conform to the password // policy that you specified when you created the user pool. // - // The temporary password is valid only once. To complete the Admin Create - // User flow, the user must enter the temporary password in the sign-in page - // along with a new password to be used in all future sign-ins. + // The temporary password is valid only once. To complete the Admin Create User + // flow, the user must enter the temporary password in the sign-in page along + // with a new password to be used in all future sign-ins. // // This parameter is not required. If you do not specify a value, Amazon Cognito // generates one for you. @@ -5524,15 +6522,15 @@ type AdminCreateUserInput struct { // to True, and you can set the phone_number_verified attribute to True. (You // cannot do this by calling other operations such as AdminUpdateUserAttributes.) // - // email: The email address of the user to whom the message that contains - // the code and username will be sent. Required if the email_verified attribute - // is set to True, or if "EMAIL" is specified in the DesiredDeliveryMediums - // parameter. + // * email: The email address of the user to whom the message that contains + // the code and username will be sent. Required if the email_verified attribute + // is set to True, or if "EMAIL" is specified in the DesiredDeliveryMediums + // parameter. // - // phone_number: The phone number of the user to whom the message that contains - // the code and username will be sent. Required if the phone_number_verified - // attribute is set to True, or if "SMS" is specified in the DesiredDeliveryMediums - // parameter. + // * phone_number: The phone number of the user to whom the message that + // contains the code and username will be sent. Required if the phone_number_verified + // attribute is set to True, or if "SMS" is specified in the DesiredDeliveryMediums + // parameter. UserAttributes []*AttributeType `type:"list"` // The user pool ID for the user pool where the user will be created. @@ -5617,7 +6615,56 @@ func (s *AdminCreateUserInput) Validate() error { return nil } +// SetDesiredDeliveryMediums sets the DesiredDeliveryMediums field's value. +func (s *AdminCreateUserInput) SetDesiredDeliveryMediums(v []*string) *AdminCreateUserInput { + s.DesiredDeliveryMediums = v + return s +} + +// SetForceAliasCreation sets the ForceAliasCreation field's value. +func (s *AdminCreateUserInput) SetForceAliasCreation(v bool) *AdminCreateUserInput { + s.ForceAliasCreation = &v + return s +} + +// SetMessageAction sets the MessageAction field's value. +func (s *AdminCreateUserInput) SetMessageAction(v string) *AdminCreateUserInput { + s.MessageAction = &v + return s +} + +// SetTemporaryPassword sets the TemporaryPassword field's value. +func (s *AdminCreateUserInput) SetTemporaryPassword(v string) *AdminCreateUserInput { + s.TemporaryPassword = &v + return s +} + +// SetUserAttributes sets the UserAttributes field's value. +func (s *AdminCreateUserInput) SetUserAttributes(v []*AttributeType) *AdminCreateUserInput { + s.UserAttributes = v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminCreateUserInput) SetUserPoolId(v string) *AdminCreateUserInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminCreateUserInput) SetUsername(v string) *AdminCreateUserInput { + s.Username = &v + return s +} + +// SetValidationData sets the ValidationData field's value. +func (s *AdminCreateUserInput) SetValidationData(v []*AttributeType) *AdminCreateUserInput { + s.ValidationData = v + return s +} + // Represents the response from the server to the request to create the user. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminCreateUserResponse type AdminCreateUserOutput struct { _ struct{} `type:"structure"` @@ -5635,7 +6682,14 @@ func (s AdminCreateUserOutput) GoString() string { return s.String() } +// SetUser sets the User field's value. +func (s *AdminCreateUserOutput) SetUser(v *UserType) *AdminCreateUserOutput { + s.User = v + return s +} + // Represents the request to delete user attributes as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUserAttributesRequest type AdminDeleteUserAttributesInput struct { _ struct{} `type:"structure"` @@ -5690,8 +6744,27 @@ func (s *AdminDeleteUserAttributesInput) Validate() error { return nil } +// SetUserAttributeNames sets the UserAttributeNames field's value. +func (s *AdminDeleteUserAttributesInput) SetUserAttributeNames(v []*string) *AdminDeleteUserAttributesInput { + s.UserAttributeNames = v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminDeleteUserAttributesInput) SetUserPoolId(v string) *AdminDeleteUserAttributesInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminDeleteUserAttributesInput) SetUsername(v string) *AdminDeleteUserAttributesInput { + s.Username = &v + return s +} + // Represents the response received from the server for a request to delete // user attributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUserAttributesResponse type AdminDeleteUserAttributesOutput struct { _ struct{} `type:"structure"` } @@ -5707,6 +6780,7 @@ func (s AdminDeleteUserAttributesOutput) GoString() string { } // Represents the request to delete a user as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUserRequest type AdminDeleteUserInput struct { _ struct{} `type:"structure"` @@ -5753,6 +6827,19 @@ func (s *AdminDeleteUserInput) Validate() error { return nil } +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminDeleteUserInput) SetUserPoolId(v string) *AdminDeleteUserInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminDeleteUserInput) SetUsername(v string) *AdminDeleteUserInput { + s.Username = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUserOutput type AdminDeleteUserOutput struct { _ struct{} `type:"structure"` } @@ -5768,6 +6855,7 @@ func (s AdminDeleteUserOutput) GoString() string { } // Represents the request to disable any user as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDisableUserRequest type AdminDisableUserInput struct { _ struct{} `type:"structure"` @@ -5814,8 +6902,21 @@ func (s *AdminDisableUserInput) Validate() error { return nil } +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminDisableUserInput) SetUserPoolId(v string) *AdminDisableUserInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminDisableUserInput) SetUsername(v string) *AdminDisableUserInput { + s.Username = &v + return s +} + // Represents the response received from the server to disable the user as an // administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDisableUserResponse type AdminDisableUserOutput struct { _ struct{} `type:"structure"` } @@ -5831,6 +6932,7 @@ func (s AdminDisableUserOutput) GoString() string { } // Represents the request that enables the user as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminEnableUserRequest type AdminEnableUserInput struct { _ struct{} `type:"structure"` @@ -5877,8 +6979,21 @@ func (s *AdminEnableUserInput) Validate() error { return nil } +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminEnableUserInput) SetUserPoolId(v string) *AdminEnableUserInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminEnableUserInput) SetUsername(v string) *AdminEnableUserInput { + s.Username = &v + return s +} + // Represents the response from the server for the request to enable a user // as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminEnableUserResponse type AdminEnableUserOutput struct { _ struct{} `type:"structure"` } @@ -5894,6 +7009,7 @@ func (s AdminEnableUserOutput) GoString() string { } // Sends the forgot device request, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminForgetDeviceRequest type AdminForgetDeviceInput struct { _ struct{} `type:"structure"` @@ -5951,6 +7067,25 @@ func (s *AdminForgetDeviceInput) Validate() error { return nil } +// SetDeviceKey sets the DeviceKey field's value. +func (s *AdminForgetDeviceInput) SetDeviceKey(v string) *AdminForgetDeviceInput { + s.DeviceKey = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminForgetDeviceInput) SetUserPoolId(v string) *AdminForgetDeviceInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminForgetDeviceInput) SetUsername(v string) *AdminForgetDeviceInput { + s.Username = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminForgetDeviceOutput type AdminForgetDeviceOutput struct { _ struct{} `type:"structure"` } @@ -5966,6 +7101,7 @@ func (s AdminForgetDeviceOutput) GoString() string { } // Represents the request to get the device, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetDeviceRequest type AdminGetDeviceInput struct { _ struct{} `type:"structure"` @@ -6023,7 +7159,26 @@ func (s *AdminGetDeviceInput) Validate() error { return nil } +// SetDeviceKey sets the DeviceKey field's value. +func (s *AdminGetDeviceInput) SetDeviceKey(v string) *AdminGetDeviceInput { + s.DeviceKey = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminGetDeviceInput) SetUserPoolId(v string) *AdminGetDeviceInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminGetDeviceInput) SetUsername(v string) *AdminGetDeviceInput { + s.Username = &v + return s +} + // Gets the device response, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetDeviceResponse type AdminGetDeviceOutput struct { _ struct{} `type:"structure"` @@ -6043,7 +7198,14 @@ func (s AdminGetDeviceOutput) GoString() string { return s.String() } +// SetDevice sets the Device field's value. +func (s *AdminGetDeviceOutput) SetDevice(v *DeviceType) *AdminGetDeviceOutput { + s.Device = v + return s +} + // Represents the request to get the specified user as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetUserRequest type AdminGetUserInput struct { _ struct{} `type:"structure"` @@ -6091,8 +7253,21 @@ func (s *AdminGetUserInput) Validate() error { return nil } +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminGetUserInput) SetUserPoolId(v string) *AdminGetUserInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminGetUserInput) SetUsername(v string) *AdminGetUserInput { + s.Username = &v + return s +} + // Represents the response from the server from the request to get the specified // user as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetUserResponse type AdminGetUserOutput struct { _ struct{} `type:"structure"` @@ -6113,15 +7288,15 @@ type AdminGetUserOutput struct { // The user status. Can be one of the following: // - // UNCONFIRMED - User has been created but not confirmed. + // * UNCONFIRMED - User has been created but not confirmed. // - // CONFIRMED - User has been confirmed. + // * CONFIRMED - User has been confirmed. // - // ARCHIVED - User is no longer active. + // * ARCHIVED - User is no longer active. // - // COMPROMISED - User is disabled due to a potential security threat. + // * COMPROMISED - User is disabled due to a potential security threat. // - // UNKNOWN - User status is not known. + // * UNKNOWN - User status is not known. UserStatus *string `type:"string" enum:"UserStatusType"` // The user name of the user about whom you are receiving information. @@ -6140,7 +7315,50 @@ func (s AdminGetUserOutput) GoString() string { return s.String() } +// SetEnabled sets the Enabled field's value. +func (s *AdminGetUserOutput) SetEnabled(v bool) *AdminGetUserOutput { + s.Enabled = &v + return s +} + +// SetMFAOptions sets the MFAOptions field's value. +func (s *AdminGetUserOutput) SetMFAOptions(v []*MFAOptionType) *AdminGetUserOutput { + s.MFAOptions = v + return s +} + +// SetUserAttributes sets the UserAttributes field's value. +func (s *AdminGetUserOutput) SetUserAttributes(v []*AttributeType) *AdminGetUserOutput { + s.UserAttributes = v + return s +} + +// SetUserCreateDate sets the UserCreateDate field's value. +func (s *AdminGetUserOutput) SetUserCreateDate(v time.Time) *AdminGetUserOutput { + s.UserCreateDate = &v + return s +} + +// SetUserLastModifiedDate sets the UserLastModifiedDate field's value. +func (s *AdminGetUserOutput) SetUserLastModifiedDate(v time.Time) *AdminGetUserOutput { + s.UserLastModifiedDate = &v + return s +} + +// SetUserStatus sets the UserStatus field's value. +func (s *AdminGetUserOutput) SetUserStatus(v string) *AdminGetUserOutput { + s.UserStatus = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminGetUserOutput) SetUsername(v string) *AdminGetUserOutput { + s.Username = &v + return s +} + // Initiates the authorization request, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminInitiateAuthRequest type AdminInitiateAuthInput struct { _ struct{} `type:"structure"` @@ -6201,11 +7419,42 @@ func (s *AdminInitiateAuthInput) Validate() error { return nil } +// SetAuthFlow sets the AuthFlow field's value. +func (s *AdminInitiateAuthInput) SetAuthFlow(v string) *AdminInitiateAuthInput { + s.AuthFlow = &v + return s +} + +// SetAuthParameters sets the AuthParameters field's value. +func (s *AdminInitiateAuthInput) SetAuthParameters(v map[string]*string) *AdminInitiateAuthInput { + s.AuthParameters = v + return s +} + +// SetClientId sets the ClientId field's value. +func (s *AdminInitiateAuthInput) SetClientId(v string) *AdminInitiateAuthInput { + s.ClientId = &v + return s +} + +// SetClientMetadata sets the ClientMetadata field's value. +func (s *AdminInitiateAuthInput) SetClientMetadata(v map[string]*string) *AdminInitiateAuthInput { + s.ClientMetadata = v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminInitiateAuthInput) SetUserPoolId(v string) *AdminInitiateAuthInput { + s.UserPoolId = &v + return s +} + // Initiates the authentication response, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminInitiateAuthResponse type AdminInitiateAuthOutput struct { _ struct{} `type:"structure"` - // The result type of the authentication result. + // The result of the authentication response. AuthenticationResult *AuthenticationResultType `type:"structure"` // The name of the challenge. @@ -6228,7 +7477,32 @@ func (s AdminInitiateAuthOutput) GoString() string { return s.String() } +// SetAuthenticationResult sets the AuthenticationResult field's value. +func (s *AdminInitiateAuthOutput) SetAuthenticationResult(v *AuthenticationResultType) *AdminInitiateAuthOutput { + s.AuthenticationResult = v + return s +} + +// SetChallengeName sets the ChallengeName field's value. +func (s *AdminInitiateAuthOutput) SetChallengeName(v string) *AdminInitiateAuthOutput { + s.ChallengeName = &v + return s +} + +// SetChallengeParameters sets the ChallengeParameters field's value. +func (s *AdminInitiateAuthOutput) SetChallengeParameters(v map[string]*string) *AdminInitiateAuthOutput { + s.ChallengeParameters = v + return s +} + +// SetSession sets the Session field's value. +func (s *AdminInitiateAuthOutput) SetSession(v string) *AdminInitiateAuthOutput { + s.Session = &v + return s +} + // Represents the request to list devices, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListDevicesRequest type AdminListDevicesInput struct { _ struct{} `type:"structure"` @@ -6284,7 +7558,32 @@ func (s *AdminListDevicesInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *AdminListDevicesInput) SetLimit(v int64) *AdminListDevicesInput { + s.Limit = &v + return s +} + +// SetPaginationToken sets the PaginationToken field's value. +func (s *AdminListDevicesInput) SetPaginationToken(v string) *AdminListDevicesInput { + s.PaginationToken = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminListDevicesInput) SetUserPoolId(v string) *AdminListDevicesInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminListDevicesInput) SetUsername(v string) *AdminListDevicesInput { + s.Username = &v + return s +} + // Lists the device's response, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListDevicesResponse type AdminListDevicesOutput struct { _ struct{} `type:"structure"` @@ -6305,34 +7604,56 @@ func (s AdminListDevicesOutput) GoString() string { return s.String() } -// Represents the request to reset a user's password as an administrator. -type AdminResetUserPasswordInput struct { +// SetDevices sets the Devices field's value. +func (s *AdminListDevicesOutput) SetDevices(v []*DeviceType) *AdminListDevicesOutput { + s.Devices = v + return s +} + +// SetPaginationToken sets the PaginationToken field's value. +func (s *AdminListDevicesOutput) SetPaginationToken(v string) *AdminListDevicesOutput { + s.PaginationToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListGroupsForUserRequest +type AdminListGroupsForUserInput struct { _ struct{} `type:"structure"` - // The user pool ID for the user pool where you want to reset the user's password. + // The limit of the request to list groups. + Limit *int64 `type:"integer"` + + // An identifier that was returned from the previous call to this operation, + // which can be used to return the next set of items in the list. + NextToken *string `min:"1" type:"string"` + + // The user pool ID for the user pool. // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` - // The user name of the user whose password you wish to reset. + // The username for the user. // // Username is a required field Username *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s AdminResetUserPasswordInput) String() string { +func (s AdminListGroupsForUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminResetUserPasswordInput) GoString() string { +func (s AdminListGroupsForUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminResetUserPasswordInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminResetUserPasswordInput"} +func (s *AdminListGroupsForUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminListGroupsForUserInput"} + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } @@ -6352,71 +7673,102 @@ func (s *AdminResetUserPasswordInput) Validate() error { return nil } -// Represents the response from the server to reset a user password as an administrator. -type AdminResetUserPasswordOutput struct { +// SetLimit sets the Limit field's value. +func (s *AdminListGroupsForUserInput) SetLimit(v int64) *AdminListGroupsForUserInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *AdminListGroupsForUserInput) SetNextToken(v string) *AdminListGroupsForUserInput { + s.NextToken = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminListGroupsForUserInput) SetUserPoolId(v string) *AdminListGroupsForUserInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminListGroupsForUserInput) SetUsername(v string) *AdminListGroupsForUserInput { + s.Username = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListGroupsForUserResponse +type AdminListGroupsForUserOutput struct { _ struct{} `type:"structure"` + + // The groups that the user belongs to. + Groups []*GroupType `type:"list"` + + // An identifier that was returned from the previous call to this operation, + // which can be used to return the next set of items in the list. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s AdminResetUserPasswordOutput) String() string { +func (s AdminListGroupsForUserOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminResetUserPasswordOutput) GoString() string { +func (s AdminListGroupsForUserOutput) GoString() string { return s.String() } -// The request to respond to the authentication challenge, as an administrator. -type AdminRespondToAuthChallengeInput struct { - _ struct{} `type:"structure"` +// SetGroups sets the Groups field's value. +func (s *AdminListGroupsForUserOutput) SetGroups(v []*GroupType) *AdminListGroupsForUserOutput { + s.Groups = v + return s +} - // The name of the challenge. - // - // ChallengeName is a required field - ChallengeName *string `type:"string" required:"true" enum:"ChallengeNameType"` +// SetNextToken sets the NextToken field's value. +func (s *AdminListGroupsForUserOutput) SetNextToken(v string) *AdminListGroupsForUserOutput { + s.NextToken = &v + return s +} - // The challenge response. - ChallengeResponses map[string]*string `type:"map"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminRemoveUserFromGroupRequest +type AdminRemoveUserFromGroupInput struct { + _ struct{} `type:"structure"` - // The client ID. + // The group name. // - // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` - - // The session. - Session *string `min:"20" type:"string"` + // GroupName is a required field + GroupName *string `min:"1" type:"string" required:"true"` - // The ID of the Amazon Cognito user pool. + // The user pool ID for the user pool. // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` + + // The username for the user. + // + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s AdminRespondToAuthChallengeInput) String() string { +func (s AdminRemoveUserFromGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AdminRespondToAuthChallengeInput) GoString() string { +func (s AdminRemoveUserFromGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AdminRespondToAuthChallengeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminRespondToAuthChallengeInput"} - if s.ChallengeName == nil { - invalidParams.Add(request.NewErrParamRequired("ChallengeName")) - } - if s.ClientId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientId")) - } - if s.ClientId != nil && len(*s.ClientId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) +func (s *AdminRemoveUserFromGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminRemoveUserFromGroupInput"} + if s.GroupName == nil { + invalidParams.Add(request.NewErrParamRequired("GroupName")) } - if s.Session != nil && len(*s.Session) < 20 { - invalidParams.Add(request.NewErrParamMinLen("Session", 20)) + if s.GroupName != nil && len(*s.GroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) @@ -6424,6 +7776,12 @@ func (s *AdminRespondToAuthChallengeInput) Validate() error { if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6431,11 +7789,216 @@ func (s *AdminRespondToAuthChallengeInput) Validate() error { return nil } -// Responds to the authentication challenge, as an administrator. -type AdminRespondToAuthChallengeOutput struct { - _ struct{} `type:"structure"` +// SetGroupName sets the GroupName field's value. +func (s *AdminRemoveUserFromGroupInput) SetGroupName(v string) *AdminRemoveUserFromGroupInput { + s.GroupName = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminRemoveUserFromGroupInput) SetUserPoolId(v string) *AdminRemoveUserFromGroupInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminRemoveUserFromGroupInput) SetUsername(v string) *AdminRemoveUserFromGroupInput { + s.Username = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminRemoveUserFromGroupOutput +type AdminRemoveUserFromGroupOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AdminRemoveUserFromGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminRemoveUserFromGroupOutput) GoString() string { + return s.String() +} + +// Represents the request to reset a user's password as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminResetUserPasswordRequest +type AdminResetUserPasswordInput struct { + _ struct{} `type:"structure"` + + // The user pool ID for the user pool where you want to reset the user's password. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` + + // The user name of the user whose password you wish to reset. + // + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AdminResetUserPasswordInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminResetUserPasswordInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AdminResetUserPasswordInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminResetUserPasswordInput"} + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminResetUserPasswordInput) SetUserPoolId(v string) *AdminResetUserPasswordInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminResetUserPasswordInput) SetUsername(v string) *AdminResetUserPasswordInput { + s.Username = &v + return s +} + +// Represents the response from the server to reset a user password as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminResetUserPasswordResponse +type AdminResetUserPasswordOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AdminResetUserPasswordOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminResetUserPasswordOutput) GoString() string { + return s.String() +} + +// The request to respond to the authentication challenge, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminRespondToAuthChallengeRequest +type AdminRespondToAuthChallengeInput struct { + _ struct{} `type:"structure"` + + // The name of the challenge. + // + // ChallengeName is a required field + ChallengeName *string `type:"string" required:"true" enum:"ChallengeNameType"` + + // The challenge response. + ChallengeResponses map[string]*string `type:"map"` + + // The client ID. + // + // ClientId is a required field + ClientId *string `min:"1" type:"string" required:"true"` + + // The session. + Session *string `min:"20" type:"string"` + + // The ID of the Amazon Cognito user pool. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AdminRespondToAuthChallengeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdminRespondToAuthChallengeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AdminRespondToAuthChallengeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdminRespondToAuthChallengeInput"} + if s.ChallengeName == nil { + invalidParams.Add(request.NewErrParamRequired("ChallengeName")) + } + if s.ClientId == nil { + invalidParams.Add(request.NewErrParamRequired("ClientId")) + } + if s.ClientId != nil && len(*s.ClientId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) + } + if s.Session != nil && len(*s.Session) < 20 { + invalidParams.Add(request.NewErrParamMinLen("Session", 20)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChallengeName sets the ChallengeName field's value. +func (s *AdminRespondToAuthChallengeInput) SetChallengeName(v string) *AdminRespondToAuthChallengeInput { + s.ChallengeName = &v + return s +} + +// SetChallengeResponses sets the ChallengeResponses field's value. +func (s *AdminRespondToAuthChallengeInput) SetChallengeResponses(v map[string]*string) *AdminRespondToAuthChallengeInput { + s.ChallengeResponses = v + return s +} + +// SetClientId sets the ClientId field's value. +func (s *AdminRespondToAuthChallengeInput) SetClientId(v string) *AdminRespondToAuthChallengeInput { + s.ClientId = &v + return s +} + +// SetSession sets the Session field's value. +func (s *AdminRespondToAuthChallengeInput) SetSession(v string) *AdminRespondToAuthChallengeInput { + s.Session = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminRespondToAuthChallengeInput) SetUserPoolId(v string) *AdminRespondToAuthChallengeInput { + s.UserPoolId = &v + return s +} + +// Responds to the authentication challenge, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminRespondToAuthChallengeResponse +type AdminRespondToAuthChallengeOutput struct { + _ struct{} `type:"structure"` - // The result type of the authentication result. + // The result returned by the server in response to the authentication request. AuthenticationResult *AuthenticationResultType `type:"structure"` // The name of the challenge. @@ -6458,7 +8021,32 @@ func (s AdminRespondToAuthChallengeOutput) GoString() string { return s.String() } +// SetAuthenticationResult sets the AuthenticationResult field's value. +func (s *AdminRespondToAuthChallengeOutput) SetAuthenticationResult(v *AuthenticationResultType) *AdminRespondToAuthChallengeOutput { + s.AuthenticationResult = v + return s +} + +// SetChallengeName sets the ChallengeName field's value. +func (s *AdminRespondToAuthChallengeOutput) SetChallengeName(v string) *AdminRespondToAuthChallengeOutput { + s.ChallengeName = &v + return s +} + +// SetChallengeParameters sets the ChallengeParameters field's value. +func (s *AdminRespondToAuthChallengeOutput) SetChallengeParameters(v map[string]*string) *AdminRespondToAuthChallengeOutput { + s.ChallengeParameters = v + return s +} + +// SetSession sets the Session field's value. +func (s *AdminRespondToAuthChallengeOutput) SetSession(v string) *AdminRespondToAuthChallengeOutput { + s.Session = &v + return s +} + // Represents the request to set user settings as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminSetUserSettingsRequest type AdminSetUserSettingsInput struct { _ struct{} `type:"structure"` @@ -6524,7 +8112,26 @@ func (s *AdminSetUserSettingsInput) Validate() error { return nil } +// SetMFAOptions sets the MFAOptions field's value. +func (s *AdminSetUserSettingsInput) SetMFAOptions(v []*MFAOptionType) *AdminSetUserSettingsInput { + s.MFAOptions = v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminSetUserSettingsInput) SetUserPoolId(v string) *AdminSetUserSettingsInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminSetUserSettingsInput) SetUsername(v string) *AdminSetUserSettingsInput { + s.Username = &v + return s +} + // Represents the response from the server to set user settings as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminSetUserSettingsResponse type AdminSetUserSettingsOutput struct { _ struct{} `type:"structure"` } @@ -6540,6 +8147,7 @@ func (s AdminSetUserSettingsOutput) GoString() string { } // The request to update the device status, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateDeviceStatusRequest type AdminUpdateDeviceStatusInput struct { _ struct{} `type:"structure"` @@ -6600,7 +8208,32 @@ func (s *AdminUpdateDeviceStatusInput) Validate() error { return nil } +// SetDeviceKey sets the DeviceKey field's value. +func (s *AdminUpdateDeviceStatusInput) SetDeviceKey(v string) *AdminUpdateDeviceStatusInput { + s.DeviceKey = &v + return s +} + +// SetDeviceRememberedStatus sets the DeviceRememberedStatus field's value. +func (s *AdminUpdateDeviceStatusInput) SetDeviceRememberedStatus(v string) *AdminUpdateDeviceStatusInput { + s.DeviceRememberedStatus = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminUpdateDeviceStatusInput) SetUserPoolId(v string) *AdminUpdateDeviceStatusInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminUpdateDeviceStatusInput) SetUsername(v string) *AdminUpdateDeviceStatusInput { + s.Username = &v + return s +} + // The status response from the request to update the device, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateDeviceStatusResponse type AdminUpdateDeviceStatusOutput struct { _ struct{} `type:"structure"` } @@ -6616,6 +8249,7 @@ func (s AdminUpdateDeviceStatusOutput) GoString() string { } // Represents the request to update the user's attributes as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateUserAttributesRequest type AdminUpdateUserAttributesInput struct { _ struct{} `type:"structure"` @@ -6680,8 +8314,27 @@ func (s *AdminUpdateUserAttributesInput) Validate() error { return nil } +// SetUserAttributes sets the UserAttributes field's value. +func (s *AdminUpdateUserAttributesInput) SetUserAttributes(v []*AttributeType) *AdminUpdateUserAttributesInput { + s.UserAttributes = v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminUpdateUserAttributesInput) SetUserPoolId(v string) *AdminUpdateUserAttributesInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminUpdateUserAttributesInput) SetUsername(v string) *AdminUpdateUserAttributesInput { + s.Username = &v + return s +} + // Represents the response from the server for the request to update user attributes // as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateUserAttributesResponse type AdminUpdateUserAttributesOutput struct { _ struct{} `type:"structure"` } @@ -6697,6 +8350,7 @@ func (s AdminUpdateUserAttributesOutput) GoString() string { } // The request to sign out of all devices, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUserGlobalSignOutRequest type AdminUserGlobalSignOutInput struct { _ struct{} `type:"structure"` @@ -6743,7 +8397,20 @@ func (s *AdminUserGlobalSignOutInput) Validate() error { return nil } +// SetUserPoolId sets the UserPoolId field's value. +func (s *AdminUserGlobalSignOutInput) SetUserPoolId(v string) *AdminUserGlobalSignOutInput { + s.UserPoolId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *AdminUserGlobalSignOutInput) SetUsername(v string) *AdminUserGlobalSignOutInput { + s.Username = &v + return s +} + // The global sign-out response, as an administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUserGlobalSignOutResponse type AdminUserGlobalSignOutOutput struct { _ struct{} `type:"structure"` } @@ -6759,6 +8426,7 @@ func (s AdminUserGlobalSignOutOutput) GoString() string { } // Specifies whether the attribute is standard or custom. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AttributeType type AttributeType struct { _ struct{} `type:"structure"` @@ -6797,7 +8465,20 @@ func (s *AttributeType) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *AttributeType) SetName(v string) *AttributeType { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *AttributeType) SetValue(v string) *AttributeType { + s.Value = &v + return s +} + // The result type of the authentication result. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AuthenticationResultType type AuthenticationResultType struct { _ struct{} `type:"structure"` @@ -6830,7 +8511,44 @@ func (s AuthenticationResultType) GoString() string { return s.String() } +// SetAccessToken sets the AccessToken field's value. +func (s *AuthenticationResultType) SetAccessToken(v string) *AuthenticationResultType { + s.AccessToken = &v + return s +} + +// SetExpiresIn sets the ExpiresIn field's value. +func (s *AuthenticationResultType) SetExpiresIn(v int64) *AuthenticationResultType { + s.ExpiresIn = &v + return s +} + +// SetIdToken sets the IdToken field's value. +func (s *AuthenticationResultType) SetIdToken(v string) *AuthenticationResultType { + s.IdToken = &v + return s +} + +// SetNewDeviceMetadata sets the NewDeviceMetadata field's value. +func (s *AuthenticationResultType) SetNewDeviceMetadata(v *NewDeviceMetadataType) *AuthenticationResultType { + s.NewDeviceMetadata = v + return s +} + +// SetRefreshToken sets the RefreshToken field's value. +func (s *AuthenticationResultType) SetRefreshToken(v string) *AuthenticationResultType { + s.RefreshToken = &v + return s +} + +// SetTokenType sets the TokenType field's value. +func (s *AuthenticationResultType) SetTokenType(v string) *AuthenticationResultType { + s.TokenType = &v + return s +} + // Represents the request to change a user password. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ChangePasswordRequest type ChangePasswordInput struct { _ struct{} `type:"structure"` @@ -6880,7 +8598,26 @@ func (s *ChangePasswordInput) Validate() error { return nil } +// SetAccessToken sets the AccessToken field's value. +func (s *ChangePasswordInput) SetAccessToken(v string) *ChangePasswordInput { + s.AccessToken = &v + return s +} + +// SetPreviousPassword sets the PreviousPassword field's value. +func (s *ChangePasswordInput) SetPreviousPassword(v string) *ChangePasswordInput { + s.PreviousPassword = &v + return s +} + +// SetProposedPassword sets the ProposedPassword field's value. +func (s *ChangePasswordInput) SetProposedPassword(v string) *ChangePasswordInput { + s.ProposedPassword = &v + return s +} + // The response from the server to the change password request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ChangePasswordResponse type ChangePasswordOutput struct { _ struct{} `type:"structure"` } @@ -6896,6 +8633,7 @@ func (s ChangePasswordOutput) GoString() string { } // The type of code delivery details being returned from the server. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CodeDeliveryDetailsType type CodeDeliveryDetailsType struct { _ struct{} `type:"structure"` @@ -6919,7 +8657,26 @@ func (s CodeDeliveryDetailsType) GoString() string { return s.String() } +// SetAttributeName sets the AttributeName field's value. +func (s *CodeDeliveryDetailsType) SetAttributeName(v string) *CodeDeliveryDetailsType { + s.AttributeName = &v + return s +} + +// SetDeliveryMedium sets the DeliveryMedium field's value. +func (s *CodeDeliveryDetailsType) SetDeliveryMedium(v string) *CodeDeliveryDetailsType { + s.DeliveryMedium = &v + return s +} + +// SetDestination sets the Destination field's value. +func (s *CodeDeliveryDetailsType) SetDestination(v string) *CodeDeliveryDetailsType { + s.Destination = &v + return s +} + // Confirms the device request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmDeviceRequest type ConfirmDeviceInput struct { _ struct{} `type:"structure"` @@ -6972,7 +8729,32 @@ func (s *ConfirmDeviceInput) Validate() error { return nil } +// SetAccessToken sets the AccessToken field's value. +func (s *ConfirmDeviceInput) SetAccessToken(v string) *ConfirmDeviceInput { + s.AccessToken = &v + return s +} + +// SetDeviceKey sets the DeviceKey field's value. +func (s *ConfirmDeviceInput) SetDeviceKey(v string) *ConfirmDeviceInput { + s.DeviceKey = &v + return s +} + +// SetDeviceName sets the DeviceName field's value. +func (s *ConfirmDeviceInput) SetDeviceName(v string) *ConfirmDeviceInput { + s.DeviceName = &v + return s +} + +// SetDeviceSecretVerifierConfig sets the DeviceSecretVerifierConfig field's value. +func (s *ConfirmDeviceInput) SetDeviceSecretVerifierConfig(v *DeviceSecretVerifierConfigType) *ConfirmDeviceInput { + s.DeviceSecretVerifierConfig = v + return s +} + // Confirms the device response. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmDeviceResponse type ConfirmDeviceOutput struct { _ struct{} `type:"structure"` @@ -6991,7 +8773,14 @@ func (s ConfirmDeviceOutput) GoString() string { return s.String() } +// SetUserConfirmationNecessary sets the UserConfirmationNecessary field's value. +func (s *ConfirmDeviceOutput) SetUserConfirmationNecessary(v bool) *ConfirmDeviceOutput { + s.UserConfirmationNecessary = &v + return s +} + // The request representing the confirmation for a password reset. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmForgotPasswordRequest type ConfirmForgotPasswordInput struct { _ struct{} `type:"structure"` @@ -7068,8 +8857,39 @@ func (s *ConfirmForgotPasswordInput) Validate() error { return nil } +// SetClientId sets the ClientId field's value. +func (s *ConfirmForgotPasswordInput) SetClientId(v string) *ConfirmForgotPasswordInput { + s.ClientId = &v + return s +} + +// SetConfirmationCode sets the ConfirmationCode field's value. +func (s *ConfirmForgotPasswordInput) SetConfirmationCode(v string) *ConfirmForgotPasswordInput { + s.ConfirmationCode = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *ConfirmForgotPasswordInput) SetPassword(v string) *ConfirmForgotPasswordInput { + s.Password = &v + return s +} + +// SetSecretHash sets the SecretHash field's value. +func (s *ConfirmForgotPasswordInput) SetSecretHash(v string) *ConfirmForgotPasswordInput { + s.SecretHash = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *ConfirmForgotPasswordInput) SetUsername(v string) *ConfirmForgotPasswordInput { + s.Username = &v + return s +} + // The response from the server that results from a user's request to retrieve // a forgotten password. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmForgotPasswordResponse type ConfirmForgotPasswordOutput struct { _ struct{} `type:"structure"` } @@ -7085,6 +8905,7 @@ func (s ConfirmForgotPasswordOutput) GoString() string { } // Represents the request to confirm registration of a user. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmSignUpRequest type ConfirmSignUpInput struct { _ struct{} `type:"structure"` @@ -7157,7 +8978,38 @@ func (s *ConfirmSignUpInput) Validate() error { return nil } +// SetClientId sets the ClientId field's value. +func (s *ConfirmSignUpInput) SetClientId(v string) *ConfirmSignUpInput { + s.ClientId = &v + return s +} + +// SetConfirmationCode sets the ConfirmationCode field's value. +func (s *ConfirmSignUpInput) SetConfirmationCode(v string) *ConfirmSignUpInput { + s.ConfirmationCode = &v + return s +} + +// SetForceAliasCreation sets the ForceAliasCreation field's value. +func (s *ConfirmSignUpInput) SetForceAliasCreation(v bool) *ConfirmSignUpInput { + s.ForceAliasCreation = &v + return s +} + +// SetSecretHash sets the SecretHash field's value. +func (s *ConfirmSignUpInput) SetSecretHash(v string) *ConfirmSignUpInput { + s.SecretHash = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *ConfirmSignUpInput) SetUsername(v string) *ConfirmSignUpInput { + s.Username = &v + return s +} + // Represents the response from the server for the registration confirmation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmSignUpResponse type ConfirmSignUpOutput struct { _ struct{} `type:"structure"` } @@ -7172,14 +9024,142 @@ func (s ConfirmSignUpOutput) GoString() string { return s.String() } -// Represents the request to create the user import job. -type CreateUserImportJobInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateGroupRequest +type CreateGroupInput struct { _ struct{} `type:"structure"` - // The role ARN for the Amazon CloudWatch Logging role for the user import job. + // A string containing the description of the group. + Description *string `type:"string"` + + // The name of the group. Must be unique. // - // CloudWatchLogsRoleArn is a required field - CloudWatchLogsRoleArn *string `min:"20" type:"string" required:"true"` + // GroupName is a required field + GroupName *string `min:"1" type:"string" required:"true"` + + // A nonnegative integer value that specifies the precedence of this group relative + // to the other groups that a user can belong to in the user pool. Zero is the + // highest precedence value. Groups with lower Precedence values take precedence + // over groups with higher or null Precedence values. If a user belongs to two + // or more groups, it is the group with the lowest precedence value whose role + // ARN will be used in the cognito:roles and cognito:preferred_role claims in + // the user's tokens. + // + // Two groups can have the same Precedence value. If this happens, neither group + // takes precedence over the other. If two groups with the same Precedence have + // the same role ARN, that role is used in the cognito:preferred_role claim + // in tokens for users in each group. If the two groups have different role + // ARNs, the cognito:preferred_role claim is not set in users' tokens. + // + // The default Precedence value is null. + Precedence *int64 `type:"integer"` + + // The role ARN for the group. + RoleArn *string `min:"20" type:"string"` + + // The user pool ID for the user pool. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateGroupInput"} + if s.GroupName == nil { + invalidParams.Add(request.NewErrParamRequired("GroupName")) + } + if s.GroupName != nil && len(*s.GroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) + } + if s.RoleArn != nil && len(*s.RoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *CreateGroupInput) SetDescription(v string) *CreateGroupInput { + s.Description = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *CreateGroupInput) SetGroupName(v string) *CreateGroupInput { + s.GroupName = &v + return s +} + +// SetPrecedence sets the Precedence field's value. +func (s *CreateGroupInput) SetPrecedence(v int64) *CreateGroupInput { + s.Precedence = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *CreateGroupInput) SetRoleArn(v string) *CreateGroupInput { + s.RoleArn = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *CreateGroupInput) SetUserPoolId(v string) *CreateGroupInput { + s.UserPoolId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateGroupResponse +type CreateGroupOutput struct { + _ struct{} `type:"structure"` + + // The group object for the group. + Group *GroupType `type:"structure"` +} + +// String returns the string representation +func (s CreateGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateGroupOutput) GoString() string { + return s.String() +} + +// SetGroup sets the Group field's value. +func (s *CreateGroupOutput) SetGroup(v *GroupType) *CreateGroupOutput { + s.Group = v + return s +} + +// Represents the request to create the user import job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserImportJobRequest +type CreateUserImportJobInput struct { + _ struct{} `type:"structure"` + + // The role ARN for the Amazon CloudWatch Logging role for the user import job. + // + // CloudWatchLogsRoleArn is a required field + CloudWatchLogsRoleArn *string `min:"20" type:"string" required:"true"` // The job name for the user import job. // @@ -7230,8 +9210,27 @@ func (s *CreateUserImportJobInput) Validate() error { return nil } +// SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value. +func (s *CreateUserImportJobInput) SetCloudWatchLogsRoleArn(v string) *CreateUserImportJobInput { + s.CloudWatchLogsRoleArn = &v + return s +} + +// SetJobName sets the JobName field's value. +func (s *CreateUserImportJobInput) SetJobName(v string) *CreateUserImportJobInput { + s.JobName = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *CreateUserImportJobInput) SetUserPoolId(v string) *CreateUserImportJobInput { + s.UserPoolId = &v + return s +} + // Represents the response from the server to the request to create the user // import job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserImportJobResponse type CreateUserImportJobOutput struct { _ struct{} `type:"structure"` @@ -7249,7 +9248,14 @@ func (s CreateUserImportJobOutput) GoString() string { return s.String() } +// SetUserImportJob sets the UserImportJob field's value. +func (s *CreateUserImportJobOutput) SetUserImportJob(v *UserImportJobType) *CreateUserImportJobOutput { + s.UserImportJob = v + return s +} + // Represents the request to create a user pool client. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolClientRequest type CreateUserPoolClientInput struct { _ struct{} `type:"structure"` @@ -7268,7 +9274,7 @@ type CreateUserPoolClientInput struct { // The read attributes. ReadAttributes []*string `type:"list"` - // Refreshes the token validity. + // The validity of the refresh token, in days. RefreshTokenValidity *int64 `type:"integer"` // The user pool ID for the user pool where you want to create a user pool client. @@ -7312,7 +9318,50 @@ func (s *CreateUserPoolClientInput) Validate() error { return nil } +// SetClientName sets the ClientName field's value. +func (s *CreateUserPoolClientInput) SetClientName(v string) *CreateUserPoolClientInput { + s.ClientName = &v + return s +} + +// SetExplicitAuthFlows sets the ExplicitAuthFlows field's value. +func (s *CreateUserPoolClientInput) SetExplicitAuthFlows(v []*string) *CreateUserPoolClientInput { + s.ExplicitAuthFlows = v + return s +} + +// SetGenerateSecret sets the GenerateSecret field's value. +func (s *CreateUserPoolClientInput) SetGenerateSecret(v bool) *CreateUserPoolClientInput { + s.GenerateSecret = &v + return s +} + +// SetReadAttributes sets the ReadAttributes field's value. +func (s *CreateUserPoolClientInput) SetReadAttributes(v []*string) *CreateUserPoolClientInput { + s.ReadAttributes = v + return s +} + +// SetRefreshTokenValidity sets the RefreshTokenValidity field's value. +func (s *CreateUserPoolClientInput) SetRefreshTokenValidity(v int64) *CreateUserPoolClientInput { + s.RefreshTokenValidity = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *CreateUserPoolClientInput) SetUserPoolId(v string) *CreateUserPoolClientInput { + s.UserPoolId = &v + return s +} + +// SetWriteAttributes sets the WriteAttributes field's value. +func (s *CreateUserPoolClientInput) SetWriteAttributes(v []*string) *CreateUserPoolClientInput { + s.WriteAttributes = v + return s +} + // Represents the response from the server to create a user pool client. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolClientResponse type CreateUserPoolClientOutput struct { _ struct{} `type:"structure"` @@ -7330,7 +9379,14 @@ func (s CreateUserPoolClientOutput) GoString() string { return s.String() } +// SetUserPoolClient sets the UserPoolClient field's value. +func (s *CreateUserPoolClientOutput) SetUserPoolClient(v *UserPoolClientType) *CreateUserPoolClientOutput { + s.UserPoolClient = v + return s +} + // Represents the request to create a user pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolRequest type CreateUserPoolInput struct { _ struct{} `type:"structure"` @@ -7370,6 +9426,10 @@ type CreateUserPoolInput struct { // PoolName is a required field PoolName *string `min:"1" type:"string" required:"true"` + // An array of schema attributes for the new user pool. These attributes can + // be standard or custom attributes. + Schema []*SchemaAttributeType `min:"1" type:"list"` + // A string representing the SMS authentication message. SmsAuthenticationMessage *string `min:"6" type:"string"` @@ -7378,6 +9438,10 @@ type CreateUserPoolInput struct { // A string representing the SMS verification message. SmsVerificationMessage *string `min:"6" type:"string"` + + // The cost allocation tags for the user pool. For more information, see Adding + // Cost Allocation Tags to Your User Pool (http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-cost-allocation-tagging.html) + UserPoolTags map[string]*string `type:"map"` } // String returns the string representation @@ -7405,6 +9469,9 @@ func (s *CreateUserPoolInput) Validate() error { if s.PoolName != nil && len(*s.PoolName) < 1 { invalidParams.Add(request.NewErrParamMinLen("PoolName", 1)) } + if s.Schema != nil && len(s.Schema) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Schema", 1)) + } if s.SmsAuthenticationMessage != nil && len(*s.SmsAuthenticationMessage) < 6 { invalidParams.Add(request.NewErrParamMinLen("SmsAuthenticationMessage", 6)) } @@ -7431,6 +9498,16 @@ func (s *CreateUserPoolInput) Validate() error { invalidParams.AddNested("Policies", err.(request.ErrInvalidParams)) } } + if s.Schema != nil { + for i, v := range s.Schema { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Schema", i), err.(request.ErrInvalidParams)) + } + } + } if s.SmsConfiguration != nil { if err := s.SmsConfiguration.Validate(); err != nil { invalidParams.AddNested("SmsConfiguration", err.(request.ErrInvalidParams)) @@ -7443,8 +9520,105 @@ func (s *CreateUserPoolInput) Validate() error { return nil } +// SetAdminCreateUserConfig sets the AdminCreateUserConfig field's value. +func (s *CreateUserPoolInput) SetAdminCreateUserConfig(v *AdminCreateUserConfigType) *CreateUserPoolInput { + s.AdminCreateUserConfig = v + return s +} + +// SetAliasAttributes sets the AliasAttributes field's value. +func (s *CreateUserPoolInput) SetAliasAttributes(v []*string) *CreateUserPoolInput { + s.AliasAttributes = v + return s +} + +// SetAutoVerifiedAttributes sets the AutoVerifiedAttributes field's value. +func (s *CreateUserPoolInput) SetAutoVerifiedAttributes(v []*string) *CreateUserPoolInput { + s.AutoVerifiedAttributes = v + return s +} + +// SetDeviceConfiguration sets the DeviceConfiguration field's value. +func (s *CreateUserPoolInput) SetDeviceConfiguration(v *DeviceConfigurationType) *CreateUserPoolInput { + s.DeviceConfiguration = v + return s +} + +// SetEmailConfiguration sets the EmailConfiguration field's value. +func (s *CreateUserPoolInput) SetEmailConfiguration(v *EmailConfigurationType) *CreateUserPoolInput { + s.EmailConfiguration = v + return s +} + +// SetEmailVerificationMessage sets the EmailVerificationMessage field's value. +func (s *CreateUserPoolInput) SetEmailVerificationMessage(v string) *CreateUserPoolInput { + s.EmailVerificationMessage = &v + return s +} + +// SetEmailVerificationSubject sets the EmailVerificationSubject field's value. +func (s *CreateUserPoolInput) SetEmailVerificationSubject(v string) *CreateUserPoolInput { + s.EmailVerificationSubject = &v + return s +} + +// SetLambdaConfig sets the LambdaConfig field's value. +func (s *CreateUserPoolInput) SetLambdaConfig(v *LambdaConfigType) *CreateUserPoolInput { + s.LambdaConfig = v + return s +} + +// SetMfaConfiguration sets the MfaConfiguration field's value. +func (s *CreateUserPoolInput) SetMfaConfiguration(v string) *CreateUserPoolInput { + s.MfaConfiguration = &v + return s +} + +// SetPolicies sets the Policies field's value. +func (s *CreateUserPoolInput) SetPolicies(v *UserPoolPolicyType) *CreateUserPoolInput { + s.Policies = v + return s +} + +// SetPoolName sets the PoolName field's value. +func (s *CreateUserPoolInput) SetPoolName(v string) *CreateUserPoolInput { + s.PoolName = &v + return s +} + +// SetSchema sets the Schema field's value. +func (s *CreateUserPoolInput) SetSchema(v []*SchemaAttributeType) *CreateUserPoolInput { + s.Schema = v + return s +} + +// SetSmsAuthenticationMessage sets the SmsAuthenticationMessage field's value. +func (s *CreateUserPoolInput) SetSmsAuthenticationMessage(v string) *CreateUserPoolInput { + s.SmsAuthenticationMessage = &v + return s +} + +// SetSmsConfiguration sets the SmsConfiguration field's value. +func (s *CreateUserPoolInput) SetSmsConfiguration(v *SmsConfigurationType) *CreateUserPoolInput { + s.SmsConfiguration = v + return s +} + +// SetSmsVerificationMessage sets the SmsVerificationMessage field's value. +func (s *CreateUserPoolInput) SetSmsVerificationMessage(v string) *CreateUserPoolInput { + s.SmsVerificationMessage = &v + return s +} + +// SetUserPoolTags sets the UserPoolTags field's value. +func (s *CreateUserPoolInput) SetUserPoolTags(v map[string]*string) *CreateUserPoolInput { + s.UserPoolTags = v + return s +} + // Represents the response from the server for the request to create a user // pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolResponse type CreateUserPoolOutput struct { _ struct{} `type:"structure"` @@ -7462,7 +9636,88 @@ func (s CreateUserPoolOutput) GoString() string { return s.String() } +// SetUserPool sets the UserPool field's value. +func (s *CreateUserPoolOutput) SetUserPool(v *UserPoolType) *CreateUserPoolOutput { + s.UserPool = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteGroupRequest +type DeleteGroupInput struct { + _ struct{} `type:"structure"` + + // The name of the group. + // + // GroupName is a required field + GroupName *string `min:"1" type:"string" required:"true"` + + // The user pool ID for the user pool. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteGroupInput"} + if s.GroupName == nil { + invalidParams.Add(request.NewErrParamRequired("GroupName")) + } + if s.GroupName != nil && len(*s.GroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGroupName sets the GroupName field's value. +func (s *DeleteGroupInput) SetGroupName(v string) *DeleteGroupInput { + s.GroupName = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *DeleteGroupInput) SetUserPoolId(v string) *DeleteGroupInput { + s.UserPoolId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteGroupOutput +type DeleteGroupOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteGroupOutput) GoString() string { + return s.String() +} + // Represents the request to delete user attributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserAttributesRequest type DeleteUserAttributesInput struct { _ struct{} `type:"structure"` @@ -7498,7 +9753,20 @@ func (s *DeleteUserAttributesInput) Validate() error { return nil } +// SetAccessToken sets the AccessToken field's value. +func (s *DeleteUserAttributesInput) SetAccessToken(v string) *DeleteUserAttributesInput { + s.AccessToken = &v + return s +} + +// SetUserAttributeNames sets the UserAttributeNames field's value. +func (s *DeleteUserAttributesInput) SetUserAttributeNames(v []*string) *DeleteUserAttributesInput { + s.UserAttributeNames = v + return s +} + // Represents the response from the server to delete user attributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserAttributesResponse type DeleteUserAttributesOutput struct { _ struct{} `type:"structure"` } @@ -7514,6 +9782,7 @@ func (s DeleteUserAttributesOutput) GoString() string { } // Represents the request to delete a user. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserRequest type DeleteUserInput struct { _ struct{} `type:"structure"` @@ -7531,6 +9800,13 @@ func (s DeleteUserInput) GoString() string { return s.String() } +// SetAccessToken sets the AccessToken field's value. +func (s *DeleteUserInput) SetAccessToken(v string) *DeleteUserInput { + s.AccessToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserOutput type DeleteUserOutput struct { _ struct{} `type:"structure"` } @@ -7546,6 +9822,7 @@ func (s DeleteUserOutput) GoString() string { } // Represents the request to delete a user pool client. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolClientRequest type DeleteUserPoolClientInput struct { _ struct{} `type:"structure"` @@ -7592,6 +9869,19 @@ func (s *DeleteUserPoolClientInput) Validate() error { return nil } +// SetClientId sets the ClientId field's value. +func (s *DeleteUserPoolClientInput) SetClientId(v string) *DeleteUserPoolClientInput { + s.ClientId = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *DeleteUserPoolClientInput) SetUserPoolId(v string) *DeleteUserPoolClientInput { + s.UserPoolId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolClientOutput type DeleteUserPoolClientOutput struct { _ struct{} `type:"structure"` } @@ -7607,6 +9897,7 @@ func (s DeleteUserPoolClientOutput) GoString() string { } // Represents the request to delete a user pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolRequest type DeleteUserPoolInput struct { _ struct{} `type:"structure"` @@ -7642,6 +9933,13 @@ func (s *DeleteUserPoolInput) Validate() error { return nil } +// SetUserPoolId sets the UserPoolId field's value. +func (s *DeleteUserPoolInput) SetUserPoolId(v string) *DeleteUserPoolInput { + s.UserPoolId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolOutput type DeleteUserPoolOutput struct { _ struct{} `type:"structure"` } @@ -7657,6 +9955,7 @@ func (s DeleteUserPoolOutput) GoString() string { } // Represents the request to describe the user import job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserImportJobRequest type DescribeUserImportJobInput struct { _ struct{} `type:"structure"` @@ -7703,8 +10002,21 @@ func (s *DescribeUserImportJobInput) Validate() error { return nil } +// SetJobId sets the JobId field's value. +func (s *DescribeUserImportJobInput) SetJobId(v string) *DescribeUserImportJobInput { + s.JobId = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *DescribeUserImportJobInput) SetUserPoolId(v string) *DescribeUserImportJobInput { + s.UserPoolId = &v + return s +} + // Represents the response from the server to the request to describe the user // import job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserImportJobResponse type DescribeUserImportJobOutput struct { _ struct{} `type:"structure"` @@ -7722,7 +10034,14 @@ func (s DescribeUserImportJobOutput) GoString() string { return s.String() } +// SetUserImportJob sets the UserImportJob field's value. +func (s *DescribeUserImportJobOutput) SetUserImportJob(v *UserImportJobType) *DescribeUserImportJobOutput { + s.UserImportJob = v + return s +} + // Represents the request to describe a user pool client. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolClientRequest type DescribeUserPoolClientInput struct { _ struct{} `type:"structure"` @@ -7769,8 +10088,21 @@ func (s *DescribeUserPoolClientInput) Validate() error { return nil } +// SetClientId sets the ClientId field's value. +func (s *DescribeUserPoolClientInput) SetClientId(v string) *DescribeUserPoolClientInput { + s.ClientId = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *DescribeUserPoolClientInput) SetUserPoolId(v string) *DescribeUserPoolClientInput { + s.UserPoolId = &v + return s +} + // Represents the response from the server from a request to describe the user // pool client. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolClientResponse type DescribeUserPoolClientOutput struct { _ struct{} `type:"structure"` @@ -7788,7 +10120,14 @@ func (s DescribeUserPoolClientOutput) GoString() string { return s.String() } +// SetUserPoolClient sets the UserPoolClient field's value. +func (s *DescribeUserPoolClientOutput) SetUserPoolClient(v *UserPoolClientType) *DescribeUserPoolClientOutput { + s.UserPoolClient = v + return s +} + // Represents the request to describe the user pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolRequest type DescribeUserPoolInput struct { _ struct{} `type:"structure"` @@ -7824,7 +10163,14 @@ func (s *DescribeUserPoolInput) Validate() error { return nil } +// SetUserPoolId sets the UserPoolId field's value. +func (s *DescribeUserPoolInput) SetUserPoolId(v string) *DescribeUserPoolInput { + s.UserPoolId = &v + return s +} + // Represents the response to describe the user pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolResponse type DescribeUserPoolOutput struct { _ struct{} `type:"structure"` @@ -7842,7 +10188,14 @@ func (s DescribeUserPoolOutput) GoString() string { return s.String() } +// SetUserPool sets the UserPool field's value. +func (s *DescribeUserPoolOutput) SetUserPool(v *UserPoolType) *DescribeUserPoolOutput { + s.UserPool = v + return s +} + // The type of configuration for the user pool's device tracking. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeviceConfigurationType type DeviceConfigurationType struct { _ struct{} `type:"structure"` @@ -7864,7 +10217,20 @@ func (s DeviceConfigurationType) GoString() string { return s.String() } +// SetChallengeRequiredOnNewDevice sets the ChallengeRequiredOnNewDevice field's value. +func (s *DeviceConfigurationType) SetChallengeRequiredOnNewDevice(v bool) *DeviceConfigurationType { + s.ChallengeRequiredOnNewDevice = &v + return s +} + +// SetDeviceOnlyRememberedOnUserPrompt sets the DeviceOnlyRememberedOnUserPrompt field's value. +func (s *DeviceConfigurationType) SetDeviceOnlyRememberedOnUserPrompt(v bool) *DeviceConfigurationType { + s.DeviceOnlyRememberedOnUserPrompt = &v + return s +} + // The device verifier against which it will be authenticated. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeviceSecretVerifierConfigType type DeviceSecretVerifierConfigType struct { _ struct{} `type:"structure"` @@ -7885,7 +10251,20 @@ func (s DeviceSecretVerifierConfigType) GoString() string { return s.String() } +// SetPasswordVerifier sets the PasswordVerifier field's value. +func (s *DeviceSecretVerifierConfigType) SetPasswordVerifier(v string) *DeviceSecretVerifierConfigType { + s.PasswordVerifier = &v + return s +} + +// SetSalt sets the Salt field's value. +func (s *DeviceSecretVerifierConfigType) SetSalt(v string) *DeviceSecretVerifierConfigType { + s.Salt = &v + return s +} + // The device type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeviceType type DeviceType struct { _ struct{} `type:"structure"` @@ -7915,7 +10294,38 @@ func (s DeviceType) GoString() string { return s.String() } +// SetDeviceAttributes sets the DeviceAttributes field's value. +func (s *DeviceType) SetDeviceAttributes(v []*AttributeType) *DeviceType { + s.DeviceAttributes = v + return s +} + +// SetDeviceCreateDate sets the DeviceCreateDate field's value. +func (s *DeviceType) SetDeviceCreateDate(v time.Time) *DeviceType { + s.DeviceCreateDate = &v + return s +} + +// SetDeviceKey sets the DeviceKey field's value. +func (s *DeviceType) SetDeviceKey(v string) *DeviceType { + s.DeviceKey = &v + return s +} + +// SetDeviceLastAuthenticatedDate sets the DeviceLastAuthenticatedDate field's value. +func (s *DeviceType) SetDeviceLastAuthenticatedDate(v time.Time) *DeviceType { + s.DeviceLastAuthenticatedDate = &v + return s +} + +// SetDeviceLastModifiedDate sets the DeviceLastModifiedDate field's value. +func (s *DeviceType) SetDeviceLastModifiedDate(v time.Time) *DeviceType { + s.DeviceLastModifiedDate = &v + return s +} + // The email configuration type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/EmailConfigurationType type EmailConfigurationType struct { _ struct{} `type:"structure"` @@ -7949,7 +10359,20 @@ func (s *EmailConfigurationType) Validate() error { return nil } +// SetReplyToEmailAddress sets the ReplyToEmailAddress field's value. +func (s *EmailConfigurationType) SetReplyToEmailAddress(v string) *EmailConfigurationType { + s.ReplyToEmailAddress = &v + return s +} + +// SetSourceArn sets the SourceArn field's value. +func (s *EmailConfigurationType) SetSourceArn(v string) *EmailConfigurationType { + s.SourceArn = &v + return s +} + // Represents the request to forget the device. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ForgetDeviceRequest type ForgetDeviceInput struct { _ struct{} `type:"structure"` @@ -7988,6 +10411,19 @@ func (s *ForgetDeviceInput) Validate() error { return nil } +// SetAccessToken sets the AccessToken field's value. +func (s *ForgetDeviceInput) SetAccessToken(v string) *ForgetDeviceInput { + s.AccessToken = &v + return s +} + +// SetDeviceKey sets the DeviceKey field's value. +func (s *ForgetDeviceInput) SetDeviceKey(v string) *ForgetDeviceInput { + s.DeviceKey = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ForgetDeviceOutput type ForgetDeviceOutput struct { _ struct{} `type:"structure"` } @@ -8003,6 +10439,7 @@ func (s ForgetDeviceOutput) GoString() string { } // Represents the request to reset a user's password. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ForgotPasswordRequest type ForgotPasswordInput struct { _ struct{} `type:"structure"` @@ -8015,8 +10452,8 @@ type ForgotPasswordInput struct { // key of a user pool client and username plus the client ID in the message. SecretHash *string `min:"1" type:"string"` - // The user name of the user for whom you want to enter a code to retrieve a - // forgotten password. + // The user name of the user for whom you want to enter a code to reset a forgotten + // password. // // Username is a required field Username *string `min:"1" type:"string" required:"true"` @@ -8057,12 +10494,32 @@ func (s *ForgotPasswordInput) Validate() error { return nil } +// SetClientId sets the ClientId field's value. +func (s *ForgotPasswordInput) SetClientId(v string) *ForgotPasswordInput { + s.ClientId = &v + return s +} + +// SetSecretHash sets the SecretHash field's value. +func (s *ForgotPasswordInput) SetSecretHash(v string) *ForgotPasswordInput { + s.SecretHash = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *ForgotPasswordInput) SetUsername(v string) *ForgotPasswordInput { + s.Username = &v + return s +} + // Respresents the response from the server regarding the request to reset a // password. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ForgotPasswordResponse type ForgotPasswordOutput struct { _ struct{} `type:"structure"` - // The type of code delivery details being returned from the server. + // The code delivery details returned by the server in response to the request + // to reset a password. CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"` } @@ -8076,8 +10533,15 @@ func (s ForgotPasswordOutput) GoString() string { return s.String() } +// SetCodeDeliveryDetails sets the CodeDeliveryDetails field's value. +func (s *ForgotPasswordOutput) SetCodeDeliveryDetails(v *CodeDeliveryDetailsType) *ForgotPasswordOutput { + s.CodeDeliveryDetails = v + return s +} + // Represents the request to get the header information for the .csv file for // the user import job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetCSVHeaderRequest type GetCSVHeaderInput struct { _ struct{} `type:"structure"` @@ -8113,8 +10577,15 @@ func (s *GetCSVHeaderInput) Validate() error { return nil } +// SetUserPoolId sets the UserPoolId field's value. +func (s *GetCSVHeaderInput) SetUserPoolId(v string) *GetCSVHeaderInput { + s.UserPoolId = &v + return s +} + // Represents the response from the server to the request to get the header // information for the .csv file for the user import job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetCSVHeaderResponse type GetCSVHeaderOutput struct { _ struct{} `type:"structure"` @@ -8135,7 +10606,20 @@ func (s GetCSVHeaderOutput) GoString() string { return s.String() } +// SetCSVHeader sets the CSVHeader field's value. +func (s *GetCSVHeaderOutput) SetCSVHeader(v []*string) *GetCSVHeaderOutput { + s.CSVHeader = v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *GetCSVHeaderOutput) SetUserPoolId(v string) *GetCSVHeaderOutput { + s.UserPoolId = &v + return s +} + // Represents the request to get the device. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetDeviceRequest type GetDeviceInput struct { _ struct{} `type:"structure"` @@ -8174,9 +10658,22 @@ func (s *GetDeviceInput) Validate() error { return nil } -// Gets the device response. -type GetDeviceOutput struct { - _ struct{} `type:"structure"` +// SetAccessToken sets the AccessToken field's value. +func (s *GetDeviceInput) SetAccessToken(v string) *GetDeviceInput { + s.AccessToken = &v + return s +} + +// SetDeviceKey sets the DeviceKey field's value. +func (s *GetDeviceInput) SetDeviceKey(v string) *GetDeviceInput { + s.DeviceKey = &v + return s +} + +// Gets the device response. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetDeviceResponse +type GetDeviceOutput struct { + _ struct{} `type:"structure"` // The device. // @@ -8194,7 +10691,97 @@ func (s GetDeviceOutput) GoString() string { return s.String() } +// SetDevice sets the Device field's value. +func (s *GetDeviceOutput) SetDevice(v *DeviceType) *GetDeviceOutput { + s.Device = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetGroupRequest +type GetGroupInput struct { + _ struct{} `type:"structure"` + + // The name of the group. + // + // GroupName is a required field + GroupName *string `min:"1" type:"string" required:"true"` + + // The user pool ID for the user pool. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetGroupInput"} + if s.GroupName == nil { + invalidParams.Add(request.NewErrParamRequired("GroupName")) + } + if s.GroupName != nil && len(*s.GroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGroupName sets the GroupName field's value. +func (s *GetGroupInput) SetGroupName(v string) *GetGroupInput { + s.GroupName = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *GetGroupInput) SetUserPoolId(v string) *GetGroupInput { + s.UserPoolId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetGroupResponse +type GetGroupOutput struct { + _ struct{} `type:"structure"` + + // The group object for the group. + Group *GroupType `type:"structure"` +} + +// String returns the string representation +func (s GetGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetGroupOutput) GoString() string { + return s.String() +} + +// SetGroup sets the Group field's value. +func (s *GetGroupOutput) SetGroup(v *GroupType) *GetGroupOutput { + s.Group = v + return s +} + // Represents the request to get user attribute verification. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUserAttributeVerificationCodeRequest type GetUserAttributeVerificationCodeInput struct { _ struct{} `type:"structure"` @@ -8235,13 +10822,26 @@ func (s *GetUserAttributeVerificationCodeInput) Validate() error { return nil } +// SetAccessToken sets the AccessToken field's value. +func (s *GetUserAttributeVerificationCodeInput) SetAccessToken(v string) *GetUserAttributeVerificationCodeInput { + s.AccessToken = &v + return s +} + +// SetAttributeName sets the AttributeName field's value. +func (s *GetUserAttributeVerificationCodeInput) SetAttributeName(v string) *GetUserAttributeVerificationCodeInput { + s.AttributeName = &v + return s +} + // The verification code response returned by the server response to get the // user attribute verification code. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUserAttributeVerificationCodeResponse type GetUserAttributeVerificationCodeOutput struct { _ struct{} `type:"structure"` - // The code delivery details returned by the server response to get the user - // attribute verification code. + // The code delivery details returned by the server in response to the request + // to get the user attribute verification code. CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"` } @@ -8255,7 +10855,14 @@ func (s GetUserAttributeVerificationCodeOutput) GoString() string { return s.String() } +// SetCodeDeliveryDetails sets the CodeDeliveryDetails field's value. +func (s *GetUserAttributeVerificationCodeOutput) SetCodeDeliveryDetails(v *CodeDeliveryDetailsType) *GetUserAttributeVerificationCodeOutput { + s.CodeDeliveryDetails = v + return s +} + // Represents the request to get information about the user. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUserRequest type GetUserInput struct { _ struct{} `type:"structure"` @@ -8274,8 +10881,15 @@ func (s GetUserInput) GoString() string { return s.String() } +// SetAccessToken sets the AccessToken field's value. +func (s *GetUserInput) SetAccessToken(v string) *GetUserInput { + s.AccessToken = &v + return s +} + // Represents the response from the server from the request to get information // about the user. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUserResponse type GetUserOutput struct { _ struct{} `type:"structure"` @@ -8303,7 +10917,26 @@ func (s GetUserOutput) GoString() string { return s.String() } +// SetMFAOptions sets the MFAOptions field's value. +func (s *GetUserOutput) SetMFAOptions(v []*MFAOptionType) *GetUserOutput { + s.MFAOptions = v + return s +} + +// SetUserAttributes sets the UserAttributes field's value. +func (s *GetUserOutput) SetUserAttributes(v []*AttributeType) *GetUserOutput { + s.UserAttributes = v + return s +} + +// SetUsername sets the Username field's value. +func (s *GetUserOutput) SetUsername(v string) *GetUserOutput { + s.Username = &v + return s +} + // Represents the request to sign out all devices. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GlobalSignOutRequest type GlobalSignOutInput struct { _ struct{} `type:"structure"` @@ -8321,7 +10954,14 @@ func (s GlobalSignOutInput) GoString() string { return s.String() } +// SetAccessToken sets the AccessToken field's value. +func (s *GlobalSignOutInput) SetAccessToken(v string) *GlobalSignOutInput { + s.AccessToken = &v + return s +} + // The response to the request to sign out all devices. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GlobalSignOutResponse type GlobalSignOutOutput struct { _ struct{} `type:"structure"` } @@ -8336,7 +10976,100 @@ func (s GlobalSignOutOutput) GoString() string { return s.String() } +// The group type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GroupType +type GroupType struct { + _ struct{} `type:"structure"` + + // The date the group was created. + CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // A string containing the description of the group. + Description *string `type:"string"` + + // The name of the group. + GroupName *string `min:"1" type:"string"` + + // The date the group was last modified. + LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // A nonnegative integer value that specifies the precedence of this group relative + // to the other groups that a user can belong to in the user pool. If a user + // belongs to two or more groups, it is the group with the highest precedence + // whose role ARN will be used in the cognito:roles and cognito:preferred_role + // claims in the user's tokens. Groups with higher Precedence values take precedence + // over groups with lower Precedence values or with null Precedence values. + // + // Two groups can have the same Precedence value. If this happens, neither group + // takes precedence over the other. If two groups with the same Precedence have + // the same role ARN, that role is used in the cognito:preferred_role claim + // in tokens for users in each group. If the two groups have different role + // ARNs, the cognito:preferred_role claim is not set in users' tokens. + // + // The default Precedence value is null. + Precedence *int64 `type:"integer"` + + // The role ARN for the group. + RoleArn *string `min:"20" type:"string"` + + // The user pool ID for the user pool. + UserPoolId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s GroupType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GroupType) GoString() string { + return s.String() +} + +// SetCreationDate sets the CreationDate field's value. +func (s *GroupType) SetCreationDate(v time.Time) *GroupType { + s.CreationDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *GroupType) SetDescription(v string) *GroupType { + s.Description = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *GroupType) SetGroupName(v string) *GroupType { + s.GroupName = &v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *GroupType) SetLastModifiedDate(v time.Time) *GroupType { + s.LastModifiedDate = &v + return s +} + +// SetPrecedence sets the Precedence field's value. +func (s *GroupType) SetPrecedence(v int64) *GroupType { + s.Precedence = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *GroupType) SetRoleArn(v string) *GroupType { + s.RoleArn = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *GroupType) SetUserPoolId(v string) *GroupType { + s.UserPoolId = &v + return s +} + // Initiates the authentication request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/InitiateAuthRequest type InitiateAuthInput struct { _ struct{} `type:"structure"` @@ -8386,11 +11119,37 @@ func (s *InitiateAuthInput) Validate() error { return nil } +// SetAuthFlow sets the AuthFlow field's value. +func (s *InitiateAuthInput) SetAuthFlow(v string) *InitiateAuthInput { + s.AuthFlow = &v + return s +} + +// SetAuthParameters sets the AuthParameters field's value. +func (s *InitiateAuthInput) SetAuthParameters(v map[string]*string) *InitiateAuthInput { + s.AuthParameters = v + return s +} + +// SetClientId sets the ClientId field's value. +func (s *InitiateAuthInput) SetClientId(v string) *InitiateAuthInput { + s.ClientId = &v + return s +} + +// SetClientMetadata sets the ClientMetadata field's value. +func (s *InitiateAuthInput) SetClientMetadata(v map[string]*string) *InitiateAuthInput { + s.ClientMetadata = v + return s +} + // Initiates the authentication response. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/InitiateAuthResponse type InitiateAuthOutput struct { _ struct{} `type:"structure"` - // The result type of the authentication result. + // The result returned by the server in response to the request to initiate + // authentication. AuthenticationResult *AuthenticationResultType `type:"structure"` // The name of the challenge. @@ -8413,7 +11172,32 @@ func (s InitiateAuthOutput) GoString() string { return s.String() } +// SetAuthenticationResult sets the AuthenticationResult field's value. +func (s *InitiateAuthOutput) SetAuthenticationResult(v *AuthenticationResultType) *InitiateAuthOutput { + s.AuthenticationResult = v + return s +} + +// SetChallengeName sets the ChallengeName field's value. +func (s *InitiateAuthOutput) SetChallengeName(v string) *InitiateAuthOutput { + s.ChallengeName = &v + return s +} + +// SetChallengeParameters sets the ChallengeParameters field's value. +func (s *InitiateAuthOutput) SetChallengeParameters(v map[string]*string) *InitiateAuthOutput { + s.ChallengeParameters = v + return s +} + +// SetSession sets the Session field's value. +func (s *InitiateAuthOutput) SetSession(v string) *InitiateAuthOutput { + s.Session = &v + return s +} + // Specifies the type of configuration for AWS Lambda triggers. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/LambdaConfigType type LambdaConfigType struct { _ struct{} `type:"structure"` @@ -8486,7 +11270,56 @@ func (s *LambdaConfigType) Validate() error { return nil } +// SetCreateAuthChallenge sets the CreateAuthChallenge field's value. +func (s *LambdaConfigType) SetCreateAuthChallenge(v string) *LambdaConfigType { + s.CreateAuthChallenge = &v + return s +} + +// SetCustomMessage sets the CustomMessage field's value. +func (s *LambdaConfigType) SetCustomMessage(v string) *LambdaConfigType { + s.CustomMessage = &v + return s +} + +// SetDefineAuthChallenge sets the DefineAuthChallenge field's value. +func (s *LambdaConfigType) SetDefineAuthChallenge(v string) *LambdaConfigType { + s.DefineAuthChallenge = &v + return s +} + +// SetPostAuthentication sets the PostAuthentication field's value. +func (s *LambdaConfigType) SetPostAuthentication(v string) *LambdaConfigType { + s.PostAuthentication = &v + return s +} + +// SetPostConfirmation sets the PostConfirmation field's value. +func (s *LambdaConfigType) SetPostConfirmation(v string) *LambdaConfigType { + s.PostConfirmation = &v + return s +} + +// SetPreAuthentication sets the PreAuthentication field's value. +func (s *LambdaConfigType) SetPreAuthentication(v string) *LambdaConfigType { + s.PreAuthentication = &v + return s +} + +// SetPreSignUp sets the PreSignUp field's value. +func (s *LambdaConfigType) SetPreSignUp(v string) *LambdaConfigType { + s.PreSignUp = &v + return s +} + +// SetVerifyAuthChallengeResponse sets the VerifyAuthChallengeResponse field's value. +func (s *LambdaConfigType) SetVerifyAuthChallengeResponse(v string) *LambdaConfigType { + s.VerifyAuthChallengeResponse = &v + return s +} + // Represents the request to list the devices. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListDevicesRequest type ListDevicesInput struct { _ struct{} `type:"structure"` @@ -8528,7 +11361,26 @@ func (s *ListDevicesInput) Validate() error { return nil } +// SetAccessToken sets the AccessToken field's value. +func (s *ListDevicesInput) SetAccessToken(v string) *ListDevicesInput { + s.AccessToken = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListDevicesInput) SetLimit(v int64) *ListDevicesInput { + s.Limit = &v + return s +} + +// SetPaginationToken sets the PaginationToken field's value. +func (s *ListDevicesInput) SetPaginationToken(v string) *ListDevicesInput { + s.PaginationToken = &v + return s +} + // Represents the response to list devices. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListDevicesResponse type ListDevicesOutput struct { _ struct{} `type:"structure"` @@ -8549,7 +11401,118 @@ func (s ListDevicesOutput) GoString() string { return s.String() } +// SetDevices sets the Devices field's value. +func (s *ListDevicesOutput) SetDevices(v []*DeviceType) *ListDevicesOutput { + s.Devices = v + return s +} + +// SetPaginationToken sets the PaginationToken field's value. +func (s *ListDevicesOutput) SetPaginationToken(v string) *ListDevicesOutput { + s.PaginationToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListGroupsRequest +type ListGroupsInput struct { + _ struct{} `type:"structure"` + + // The limit of the request to list groups. + Limit *int64 `type:"integer"` + + // An identifier that was returned from the previous call to this operation, + // which can be used to return the next set of items in the list. + NextToken *string `min:"1" type:"string"` + + // The user pool ID for the user pool. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListGroupsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListGroupsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListGroupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListGroupsInput"} + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLimit sets the Limit field's value. +func (s *ListGroupsInput) SetLimit(v int64) *ListGroupsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListGroupsInput) SetNextToken(v string) *ListGroupsInput { + s.NextToken = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *ListGroupsInput) SetUserPoolId(v string) *ListGroupsInput { + s.UserPoolId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListGroupsResponse +type ListGroupsOutput struct { + _ struct{} `type:"structure"` + + // The group objects for the groups. + Groups []*GroupType `type:"list"` + + // An identifier that was returned from the previous call to this operation, + // which can be used to return the next set of items in the list. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListGroupsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListGroupsOutput) GoString() string { + return s.String() +} + +// SetGroups sets the Groups field's value. +func (s *ListGroupsOutput) SetGroups(v []*GroupType) *ListGroupsOutput { + s.Groups = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListGroupsOutput) SetNextToken(v string) *ListGroupsOutput { + s.NextToken = &v + return s +} + // Represents the request to list the user import jobs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserImportJobsRequest type ListUserImportJobsInput struct { _ struct{} `type:"structure"` @@ -8603,8 +11566,27 @@ func (s *ListUserImportJobsInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *ListUserImportJobsInput) SetMaxResults(v int64) *ListUserImportJobsInput { + s.MaxResults = &v + return s +} + +// SetPaginationToken sets the PaginationToken field's value. +func (s *ListUserImportJobsInput) SetPaginationToken(v string) *ListUserImportJobsInput { + s.PaginationToken = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *ListUserImportJobsInput) SetUserPoolId(v string) *ListUserImportJobsInput { + s.UserPoolId = &v + return s +} + // Represents the response from the server to the request to list the user import // jobs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserImportJobsResponse type ListUserImportJobsOutput struct { _ struct{} `type:"structure"` @@ -8626,7 +11608,20 @@ func (s ListUserImportJobsOutput) GoString() string { return s.String() } +// SetPaginationToken sets the PaginationToken field's value. +func (s *ListUserImportJobsOutput) SetPaginationToken(v string) *ListUserImportJobsOutput { + s.PaginationToken = &v + return s +} + +// SetUserImportJobs sets the UserImportJobs field's value. +func (s *ListUserImportJobsOutput) SetUserImportJobs(v []*UserImportJobType) *ListUserImportJobsOutput { + s.UserImportJobs = v + return s +} + // Represents the request to list the user pool clients. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserPoolClientsRequest type ListUserPoolClientsInput struct { _ struct{} `type:"structure"` @@ -8676,7 +11671,26 @@ func (s *ListUserPoolClientsInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *ListUserPoolClientsInput) SetMaxResults(v int64) *ListUserPoolClientsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUserPoolClientsInput) SetNextToken(v string) *ListUserPoolClientsInput { + s.NextToken = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *ListUserPoolClientsInput) SetUserPoolId(v string) *ListUserPoolClientsInput { + s.UserPoolId = &v + return s +} + // Represents the response from the server that lists user pool clients. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserPoolClientsResponse type ListUserPoolClientsOutput struct { _ struct{} `type:"structure"` @@ -8698,7 +11712,20 @@ func (s ListUserPoolClientsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListUserPoolClientsOutput) SetNextToken(v string) *ListUserPoolClientsOutput { + s.NextToken = &v + return s +} + +// SetUserPoolClients sets the UserPoolClients field's value. +func (s *ListUserPoolClientsOutput) SetUserPoolClients(v []*UserPoolClientDescription) *ListUserPoolClientsOutput { + s.UserPoolClients = v + return s +} + // Represents the request to list user pools. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserPoolsRequest type ListUserPoolsInput struct { _ struct{} `type:"structure"` @@ -8742,7 +11769,20 @@ func (s *ListUserPoolsInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *ListUserPoolsInput) SetMaxResults(v int64) *ListUserPoolsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUserPoolsInput) SetNextToken(v string) *ListUserPoolsInput { + s.NextToken = &v + return s +} + // Represents the response to list user pools. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserPoolsResponse type ListUserPoolsOutput struct { _ struct{} `type:"structure"` @@ -8764,7 +11804,135 @@ func (s ListUserPoolsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListUserPoolsOutput) SetNextToken(v string) *ListUserPoolsOutput { + s.NextToken = &v + return s +} + +// SetUserPools sets the UserPools field's value. +func (s *ListUserPoolsOutput) SetUserPools(v []*UserPoolDescriptionType) *ListUserPoolsOutput { + s.UserPools = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUsersInGroupRequest +type ListUsersInGroupInput struct { + _ struct{} `type:"structure"` + + // The name of the group. + // + // GroupName is a required field + GroupName *string `min:"1" type:"string" required:"true"` + + // The limit of the request to list users. + Limit *int64 `type:"integer"` + + // An identifier that was returned from the previous call to this operation, + // which can be used to return the next set of items in the list. + NextToken *string `min:"1" type:"string"` + + // The user pool ID for the user pool. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListUsersInGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListUsersInGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListUsersInGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListUsersInGroupInput"} + if s.GroupName == nil { + invalidParams.Add(request.NewErrParamRequired("GroupName")) + } + if s.GroupName != nil && len(*s.GroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGroupName sets the GroupName field's value. +func (s *ListUsersInGroupInput) SetGroupName(v string) *ListUsersInGroupInput { + s.GroupName = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListUsersInGroupInput) SetLimit(v int64) *ListUsersInGroupInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUsersInGroupInput) SetNextToken(v string) *ListUsersInGroupInput { + s.NextToken = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *ListUsersInGroupInput) SetUserPoolId(v string) *ListUsersInGroupInput { + s.UserPoolId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUsersInGroupResponse +type ListUsersInGroupOutput struct { + _ struct{} `type:"structure"` + + // An identifier that was returned from the previous call to this operation, + // which can be used to return the next set of items in the list. + NextToken *string `min:"1" type:"string"` + + // The users returned in the request to list users. + Users []*UserType `type:"list"` +} + +// String returns the string representation +func (s ListUsersInGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListUsersInGroupOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUsersInGroupOutput) SetNextToken(v string) *ListUsersInGroupOutput { + s.NextToken = &v + return s +} + +// SetUsers sets the Users field's value. +func (s *ListUsersInGroupOutput) SetUsers(v []*UserType) *ListUsersInGroupOutput { + s.Users = v + return s +} + // Represents the request to list users. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUsersRequest type ListUsersInput struct { _ struct{} `type:"structure"` @@ -8816,7 +11984,38 @@ func (s *ListUsersInput) Validate() error { return nil } +// SetAttributesToGet sets the AttributesToGet field's value. +func (s *ListUsersInput) SetAttributesToGet(v []*string) *ListUsersInput { + s.AttributesToGet = v + return s +} + +// SetFilter sets the Filter field's value. +func (s *ListUsersInput) SetFilter(v string) *ListUsersInput { + s.Filter = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListUsersInput) SetLimit(v int64) *ListUsersInput { + s.Limit = &v + return s +} + +// SetPaginationToken sets the PaginationToken field's value. +func (s *ListUsersInput) SetPaginationToken(v string) *ListUsersInput { + s.PaginationToken = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *ListUsersInput) SetUserPoolId(v string) *ListUsersInput { + s.UserPoolId = &v + return s +} + // The response from the request to list users. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUsersResponse type ListUsersOutput struct { _ struct{} `type:"structure"` @@ -8838,7 +12037,20 @@ func (s ListUsersOutput) GoString() string { return s.String() } +// SetPaginationToken sets the PaginationToken field's value. +func (s *ListUsersOutput) SetPaginationToken(v string) *ListUsersOutput { + s.PaginationToken = &v + return s +} + +// SetUsers sets the Users field's value. +func (s *ListUsersOutput) SetUsers(v []*UserType) *ListUsersOutput { + s.Users = v + return s +} + // Specifies the different settings for multi-factor authentication (MFA). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/MFAOptionType type MFAOptionType struct { _ struct{} `type:"structure"` @@ -8872,7 +12084,20 @@ func (s *MFAOptionType) Validate() error { return nil } +// SetAttributeName sets the AttributeName field's value. +func (s *MFAOptionType) SetAttributeName(v string) *MFAOptionType { + s.AttributeName = &v + return s +} + +// SetDeliveryMedium sets the DeliveryMedium field's value. +func (s *MFAOptionType) SetDeliveryMedium(v string) *MFAOptionType { + s.DeliveryMedium = &v + return s +} + // The message template structure. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/MessageTemplateType type MessageTemplateType struct { _ struct{} `type:"structure"` @@ -8915,7 +12140,26 @@ func (s *MessageTemplateType) Validate() error { return nil } +// SetEmailMessage sets the EmailMessage field's value. +func (s *MessageTemplateType) SetEmailMessage(v string) *MessageTemplateType { + s.EmailMessage = &v + return s +} + +// SetEmailSubject sets the EmailSubject field's value. +func (s *MessageTemplateType) SetEmailSubject(v string) *MessageTemplateType { + s.EmailSubject = &v + return s +} + +// SetSMSMessage sets the SMSMessage field's value. +func (s *MessageTemplateType) SetSMSMessage(v string) *MessageTemplateType { + s.SMSMessage = &v + return s +} + // The new device metadata type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/NewDeviceMetadataType type NewDeviceMetadataType struct { _ struct{} `type:"structure"` @@ -8936,8 +12180,21 @@ func (s NewDeviceMetadataType) GoString() string { return s.String() } +// SetDeviceGroupKey sets the DeviceGroupKey field's value. +func (s *NewDeviceMetadataType) SetDeviceGroupKey(v string) *NewDeviceMetadataType { + s.DeviceGroupKey = &v + return s +} + +// SetDeviceKey sets the DeviceKey field's value. +func (s *NewDeviceMetadataType) SetDeviceKey(v string) *NewDeviceMetadataType { + s.DeviceKey = &v + return s +} + // The minimum and maximum value of an attribute that is of the number data // type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/NumberAttributeConstraintsType type NumberAttributeConstraintsType struct { _ struct{} `type:"structure"` @@ -8958,7 +12215,20 @@ func (s NumberAttributeConstraintsType) GoString() string { return s.String() } +// SetMaxValue sets the MaxValue field's value. +func (s *NumberAttributeConstraintsType) SetMaxValue(v string) *NumberAttributeConstraintsType { + s.MaxValue = &v + return s +} + +// SetMinValue sets the MinValue field's value. +func (s *NumberAttributeConstraintsType) SetMinValue(v string) *NumberAttributeConstraintsType { + s.MinValue = &v + return s +} + // The password policy type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/PasswordPolicyType type PasswordPolicyType struct { _ struct{} `type:"structure"` @@ -9006,7 +12276,38 @@ func (s *PasswordPolicyType) Validate() error { return nil } +// SetMinimumLength sets the MinimumLength field's value. +func (s *PasswordPolicyType) SetMinimumLength(v int64) *PasswordPolicyType { + s.MinimumLength = &v + return s +} + +// SetRequireLowercase sets the RequireLowercase field's value. +func (s *PasswordPolicyType) SetRequireLowercase(v bool) *PasswordPolicyType { + s.RequireLowercase = &v + return s +} + +// SetRequireNumbers sets the RequireNumbers field's value. +func (s *PasswordPolicyType) SetRequireNumbers(v bool) *PasswordPolicyType { + s.RequireNumbers = &v + return s +} + +// SetRequireSymbols sets the RequireSymbols field's value. +func (s *PasswordPolicyType) SetRequireSymbols(v bool) *PasswordPolicyType { + s.RequireSymbols = &v + return s +} + +// SetRequireUppercase sets the RequireUppercase field's value. +func (s *PasswordPolicyType) SetRequireUppercase(v bool) *PasswordPolicyType { + s.RequireUppercase = &v + return s +} + // Represents the request to resend the confirmation code. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ResendConfirmationCodeRequest type ResendConfirmationCodeInput struct { _ struct{} `type:"structure"` @@ -9060,12 +12361,32 @@ func (s *ResendConfirmationCodeInput) Validate() error { return nil } -// The response from the server when the Amazon Cognito service makes the request -// to resend a confirmation code. +// SetClientId sets the ClientId field's value. +func (s *ResendConfirmationCodeInput) SetClientId(v string) *ResendConfirmationCodeInput { + s.ClientId = &v + return s +} + +// SetSecretHash sets the SecretHash field's value. +func (s *ResendConfirmationCodeInput) SetSecretHash(v string) *ResendConfirmationCodeInput { + s.SecretHash = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *ResendConfirmationCodeInput) SetUsername(v string) *ResendConfirmationCodeInput { + s.Username = &v + return s +} + +// The response from the server when the Amazon Cognito Your User Pools service +// makes the request to resend a confirmation code. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ResendConfirmationCodeResponse type ResendConfirmationCodeOutput struct { _ struct{} `type:"structure"` - // The type of code delivery details being returned from the server. + // The code delivery details returned by the server in response to the request + // to resend the confirmation code. CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"` } @@ -9079,7 +12400,14 @@ func (s ResendConfirmationCodeOutput) GoString() string { return s.String() } +// SetCodeDeliveryDetails sets the CodeDeliveryDetails field's value. +func (s *ResendConfirmationCodeOutput) SetCodeDeliveryDetails(v *CodeDeliveryDetailsType) *ResendConfirmationCodeOutput { + s.CodeDeliveryDetails = v + return s +} + // The request to respond to an authentication challenge. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/RespondToAuthChallengeRequest type RespondToAuthChallengeInput struct { _ struct{} `type:"structure"` @@ -9132,11 +12460,37 @@ func (s *RespondToAuthChallengeInput) Validate() error { return nil } +// SetChallengeName sets the ChallengeName field's value. +func (s *RespondToAuthChallengeInput) SetChallengeName(v string) *RespondToAuthChallengeInput { + s.ChallengeName = &v + return s +} + +// SetChallengeResponses sets the ChallengeResponses field's value. +func (s *RespondToAuthChallengeInput) SetChallengeResponses(v map[string]*string) *RespondToAuthChallengeInput { + s.ChallengeResponses = v + return s +} + +// SetClientId sets the ClientId field's value. +func (s *RespondToAuthChallengeInput) SetClientId(v string) *RespondToAuthChallengeInput { + s.ClientId = &v + return s +} + +// SetSession sets the Session field's value. +func (s *RespondToAuthChallengeInput) SetSession(v string) *RespondToAuthChallengeInput { + s.Session = &v + return s +} + // The response to respond to the authentication challenge. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/RespondToAuthChallengeResponse type RespondToAuthChallengeOutput struct { _ struct{} `type:"structure"` - // The result type of the authentication result. + // The result returned by the server in response to the request to respond to + // the authentication challenge. AuthenticationResult *AuthenticationResultType `type:"structure"` // The challenge name. @@ -9159,7 +12513,32 @@ func (s RespondToAuthChallengeOutput) GoString() string { return s.String() } +// SetAuthenticationResult sets the AuthenticationResult field's value. +func (s *RespondToAuthChallengeOutput) SetAuthenticationResult(v *AuthenticationResultType) *RespondToAuthChallengeOutput { + s.AuthenticationResult = v + return s +} + +// SetChallengeName sets the ChallengeName field's value. +func (s *RespondToAuthChallengeOutput) SetChallengeName(v string) *RespondToAuthChallengeOutput { + s.ChallengeName = &v + return s +} + +// SetChallengeParameters sets the ChallengeParameters field's value. +func (s *RespondToAuthChallengeOutput) SetChallengeParameters(v map[string]*string) *RespondToAuthChallengeOutput { + s.ChallengeParameters = v + return s +} + +// SetSession sets the Session field's value. +func (s *RespondToAuthChallengeOutput) SetSession(v string) *RespondToAuthChallengeOutput { + s.Session = &v + return s +} + // Contains information about the schema attribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SchemaAttributeType type SchemaAttributeType struct { _ struct{} `type:"structure"` @@ -9210,7 +12589,50 @@ func (s *SchemaAttributeType) Validate() error { return nil } +// SetAttributeDataType sets the AttributeDataType field's value. +func (s *SchemaAttributeType) SetAttributeDataType(v string) *SchemaAttributeType { + s.AttributeDataType = &v + return s +} + +// SetDeveloperOnlyAttribute sets the DeveloperOnlyAttribute field's value. +func (s *SchemaAttributeType) SetDeveloperOnlyAttribute(v bool) *SchemaAttributeType { + s.DeveloperOnlyAttribute = &v + return s +} + +// SetMutable sets the Mutable field's value. +func (s *SchemaAttributeType) SetMutable(v bool) *SchemaAttributeType { + s.Mutable = &v + return s +} + +// SetName sets the Name field's value. +func (s *SchemaAttributeType) SetName(v string) *SchemaAttributeType { + s.Name = &v + return s +} + +// SetNumberAttributeConstraints sets the NumberAttributeConstraints field's value. +func (s *SchemaAttributeType) SetNumberAttributeConstraints(v *NumberAttributeConstraintsType) *SchemaAttributeType { + s.NumberAttributeConstraints = v + return s +} + +// SetRequired sets the Required field's value. +func (s *SchemaAttributeType) SetRequired(v bool) *SchemaAttributeType { + s.Required = &v + return s +} + +// SetStringAttributeConstraints sets the StringAttributeConstraints field's value. +func (s *SchemaAttributeType) SetStringAttributeConstraints(v *StringAttributeConstraintsType) *SchemaAttributeType { + s.StringAttributeConstraints = v + return s +} + // Represents the request to set user settings. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUserSettingsRequest type SetUserSettingsInput struct { _ struct{} `type:"structure"` @@ -9261,7 +12683,20 @@ func (s *SetUserSettingsInput) Validate() error { return nil } +// SetAccessToken sets the AccessToken field's value. +func (s *SetUserSettingsInput) SetAccessToken(v string) *SetUserSettingsInput { + s.AccessToken = &v + return s +} + +// SetMFAOptions sets the MFAOptions field's value. +func (s *SetUserSettingsInput) SetMFAOptions(v []*MFAOptionType) *SetUserSettingsInput { + s.MFAOptions = v + return s +} + // The response from the server for a set user settings request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUserSettingsResponse type SetUserSettingsOutput struct { _ struct{} `type:"structure"` } @@ -9277,6 +12712,7 @@ func (s SetUserSettingsOutput) GoString() string { } // Represents the request to register a user. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SignUpRequest type SignUpInput struct { _ struct{} `type:"structure"` @@ -9367,11 +12803,49 @@ func (s *SignUpInput) Validate() error { return nil } +// SetClientId sets the ClientId field's value. +func (s *SignUpInput) SetClientId(v string) *SignUpInput { + s.ClientId = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *SignUpInput) SetPassword(v string) *SignUpInput { + s.Password = &v + return s +} + +// SetSecretHash sets the SecretHash field's value. +func (s *SignUpInput) SetSecretHash(v string) *SignUpInput { + s.SecretHash = &v + return s +} + +// SetUserAttributes sets the UserAttributes field's value. +func (s *SignUpInput) SetUserAttributes(v []*AttributeType) *SignUpInput { + s.UserAttributes = v + return s +} + +// SetUsername sets the Username field's value. +func (s *SignUpInput) SetUsername(v string) *SignUpInput { + s.Username = &v + return s +} + +// SetValidationData sets the ValidationData field's value. +func (s *SignUpInput) SetValidationData(v []*AttributeType) *SignUpInput { + s.ValidationData = v + return s +} + // The response from the server for a registration request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SignUpResponse type SignUpOutput struct { _ struct{} `type:"structure"` - // The type of code delivery details being returned from the server. + // The code delivery details returned by the server response to the user registration + // request. CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"` // A response from the server indicating that a user registration has been confirmed. @@ -9388,7 +12862,20 @@ func (s SignUpOutput) GoString() string { return s.String() } +// SetCodeDeliveryDetails sets the CodeDeliveryDetails field's value. +func (s *SignUpOutput) SetCodeDeliveryDetails(v *CodeDeliveryDetailsType) *SignUpOutput { + s.CodeDeliveryDetails = v + return s +} + +// SetUserConfirmed sets the UserConfirmed field's value. +func (s *SignUpOutput) SetUserConfirmed(v bool) *SignUpOutput { + s.UserConfirmed = &v + return s +} + // The SMS configuratoin type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SmsConfigurationType type SmsConfigurationType struct { _ struct{} `type:"structure"` @@ -9397,7 +12884,9 @@ type SmsConfigurationType struct { // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service // (SNS) caller. - SnsCallerArn *string `min:"20" type:"string"` + // + // SnsCallerArn is a required field + SnsCallerArn *string `min:"20" type:"string" required:"true"` } // String returns the string representation @@ -9413,6 +12902,9 @@ func (s SmsConfigurationType) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *SmsConfigurationType) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SmsConfigurationType"} + if s.SnsCallerArn == nil { + invalidParams.Add(request.NewErrParamRequired("SnsCallerArn")) + } if s.SnsCallerArn != nil && len(*s.SnsCallerArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("SnsCallerArn", 20)) } @@ -9423,7 +12915,20 @@ func (s *SmsConfigurationType) Validate() error { return nil } +// SetExternalId sets the ExternalId field's value. +func (s *SmsConfigurationType) SetExternalId(v string) *SmsConfigurationType { + s.ExternalId = &v + return s +} + +// SetSnsCallerArn sets the SnsCallerArn field's value. +func (s *SmsConfigurationType) SetSnsCallerArn(v string) *SmsConfigurationType { + s.SnsCallerArn = &v + return s +} + // Represents the request to start the user import job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StartUserImportJobRequest type StartUserImportJobInput struct { _ struct{} `type:"structure"` @@ -9470,8 +12975,21 @@ func (s *StartUserImportJobInput) Validate() error { return nil } +// SetJobId sets the JobId field's value. +func (s *StartUserImportJobInput) SetJobId(v string) *StartUserImportJobInput { + s.JobId = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *StartUserImportJobInput) SetUserPoolId(v string) *StartUserImportJobInput { + s.UserPoolId = &v + return s +} + // Represents the response from the server to the request to start the user // import job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StartUserImportJobResponse type StartUserImportJobOutput struct { _ struct{} `type:"structure"` @@ -9489,7 +13007,14 @@ func (s StartUserImportJobOutput) GoString() string { return s.String() } +// SetUserImportJob sets the UserImportJob field's value. +func (s *StartUserImportJobOutput) SetUserImportJob(v *UserImportJobType) *StartUserImportJobOutput { + s.UserImportJob = v + return s +} + // Represents the request to stop the user import job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StopUserImportJobRequest type StopUserImportJobInput struct { _ struct{} `type:"structure"` @@ -9536,8 +13061,21 @@ func (s *StopUserImportJobInput) Validate() error { return nil } +// SetJobId sets the JobId field's value. +func (s *StopUserImportJobInput) SetJobId(v string) *StopUserImportJobInput { + s.JobId = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *StopUserImportJobInput) SetUserPoolId(v string) *StopUserImportJobInput { + s.UserPoolId = &v + return s +} + // Represents the response from the server to the request to stop the user import // job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StopUserImportJobResponse type StopUserImportJobOutput struct { _ struct{} `type:"structure"` @@ -9555,7 +13093,14 @@ func (s StopUserImportJobOutput) GoString() string { return s.String() } +// SetUserImportJob sets the UserImportJob field's value. +func (s *StopUserImportJobOutput) SetUserImportJob(v *UserImportJobType) *StopUserImportJobOutput { + s.UserImportJob = v + return s +} + // The type of constraints associated with an attribute of the string type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StringAttributeConstraintsType type StringAttributeConstraintsType struct { _ struct{} `type:"structure"` @@ -9576,7 +13121,20 @@ func (s StringAttributeConstraintsType) GoString() string { return s.String() } +// SetMaxLength sets the MaxLength field's value. +func (s *StringAttributeConstraintsType) SetMaxLength(v string) *StringAttributeConstraintsType { + s.MaxLength = &v + return s +} + +// SetMinLength sets the MinLength field's value. +func (s *StringAttributeConstraintsType) SetMinLength(v string) *StringAttributeConstraintsType { + s.MinLength = &v + return s +} + // Represents the request to update the device status. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateDeviceStatusRequest type UpdateDeviceStatusInput struct { _ struct{} `type:"structure"` @@ -9623,7 +13181,26 @@ func (s *UpdateDeviceStatusInput) Validate() error { return nil } +// SetAccessToken sets the AccessToken field's value. +func (s *UpdateDeviceStatusInput) SetAccessToken(v string) *UpdateDeviceStatusInput { + s.AccessToken = &v + return s +} + +// SetDeviceKey sets the DeviceKey field's value. +func (s *UpdateDeviceStatusInput) SetDeviceKey(v string) *UpdateDeviceStatusInput { + s.DeviceKey = &v + return s +} + +// SetDeviceRememberedStatus sets the DeviceRememberedStatus field's value. +func (s *UpdateDeviceStatusInput) SetDeviceRememberedStatus(v string) *UpdateDeviceStatusInput { + s.DeviceRememberedStatus = &v + return s +} + // The response to the request to update the device status. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateDeviceStatusResponse type UpdateDeviceStatusOutput struct { _ struct{} `type:"structure"` } @@ -9638,7 +13215,123 @@ func (s UpdateDeviceStatusOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateGroupRequest +type UpdateGroupInput struct { + _ struct{} `type:"structure"` + + // A string containing the new description of the group. + Description *string `type:"string"` + + // The name of the group. + // + // GroupName is a required field + GroupName *string `min:"1" type:"string" required:"true"` + + // The new precedence value for the group. For more information about this parameter, + // see CreateGroupRequest (API_CreateGroupRequeste.html). + Precedence *int64 `type:"integer"` + + // The new role ARN for the group. This is used for setting the cognito:roles + // and cognito:preferred_role claims in the token. + RoleArn *string `min:"20" type:"string"` + + // The user pool ID for the user pool. + // + // UserPoolId is a required field + UserPoolId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateGroupInput"} + if s.GroupName == nil { + invalidParams.Add(request.NewErrParamRequired("GroupName")) + } + if s.GroupName != nil && len(*s.GroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) + } + if s.RoleArn != nil && len(*s.RoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) + } + if s.UserPoolId == nil { + invalidParams.Add(request.NewErrParamRequired("UserPoolId")) + } + if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *UpdateGroupInput) SetDescription(v string) *UpdateGroupInput { + s.Description = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *UpdateGroupInput) SetGroupName(v string) *UpdateGroupInput { + s.GroupName = &v + return s +} + +// SetPrecedence sets the Precedence field's value. +func (s *UpdateGroupInput) SetPrecedence(v int64) *UpdateGroupInput { + s.Precedence = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *UpdateGroupInput) SetRoleArn(v string) *UpdateGroupInput { + s.RoleArn = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *UpdateGroupInput) SetUserPoolId(v string) *UpdateGroupInput { + s.UserPoolId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateGroupResponse +type UpdateGroupOutput struct { + _ struct{} `type:"structure"` + + // The group object for the group. + Group *GroupType `type:"structure"` +} + +// String returns the string representation +func (s UpdateGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateGroupOutput) GoString() string { + return s.String() +} + +// SetGroup sets the Group field's value. +func (s *UpdateGroupOutput) SetGroup(v *GroupType) *UpdateGroupOutput { + s.Group = v + return s +} + // Represents the request to update user attributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserAttributesRequest type UpdateUserAttributesInput struct { _ struct{} `type:"structure"` @@ -9684,7 +13377,20 @@ func (s *UpdateUserAttributesInput) Validate() error { return nil } +// SetAccessToken sets the AccessToken field's value. +func (s *UpdateUserAttributesInput) SetAccessToken(v string) *UpdateUserAttributesInput { + s.AccessToken = &v + return s +} + +// SetUserAttributes sets the UserAttributes field's value. +func (s *UpdateUserAttributesInput) SetUserAttributes(v []*AttributeType) *UpdateUserAttributesInput { + s.UserAttributes = v + return s +} + // Represents the response from the server for the request to update user attributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserAttributesResponse type UpdateUserAttributesOutput struct { _ struct{} `type:"structure"` @@ -9703,7 +13409,14 @@ func (s UpdateUserAttributesOutput) GoString() string { return s.String() } +// SetCodeDeliveryDetailsList sets the CodeDeliveryDetailsList field's value. +func (s *UpdateUserAttributesOutput) SetCodeDeliveryDetailsList(v []*CodeDeliveryDetailsType) *UpdateUserAttributesOutput { + s.CodeDeliveryDetailsList = v + return s +} + // Represents the request to update the user pool client. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserPoolClientRequest type UpdateUserPoolClientInput struct { _ struct{} `type:"structure"` @@ -9721,7 +13434,7 @@ type UpdateUserPoolClientInput struct { // The read-only attributes of the user pool. ReadAttributes []*string `type:"list"` - // The validity of the refresh token. + // The validity of the refresh token, in days. RefreshTokenValidity *int64 `type:"integer"` // The user pool ID for the user pool where you want to update the user pool @@ -9769,8 +13482,51 @@ func (s *UpdateUserPoolClientInput) Validate() error { return nil } +// SetClientId sets the ClientId field's value. +func (s *UpdateUserPoolClientInput) SetClientId(v string) *UpdateUserPoolClientInput { + s.ClientId = &v + return s +} + +// SetClientName sets the ClientName field's value. +func (s *UpdateUserPoolClientInput) SetClientName(v string) *UpdateUserPoolClientInput { + s.ClientName = &v + return s +} + +// SetExplicitAuthFlows sets the ExplicitAuthFlows field's value. +func (s *UpdateUserPoolClientInput) SetExplicitAuthFlows(v []*string) *UpdateUserPoolClientInput { + s.ExplicitAuthFlows = v + return s +} + +// SetReadAttributes sets the ReadAttributes field's value. +func (s *UpdateUserPoolClientInput) SetReadAttributes(v []*string) *UpdateUserPoolClientInput { + s.ReadAttributes = v + return s +} + +// SetRefreshTokenValidity sets the RefreshTokenValidity field's value. +func (s *UpdateUserPoolClientInput) SetRefreshTokenValidity(v int64) *UpdateUserPoolClientInput { + s.RefreshTokenValidity = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *UpdateUserPoolClientInput) SetUserPoolId(v string) *UpdateUserPoolClientInput { + s.UserPoolId = &v + return s +} + +// SetWriteAttributes sets the WriteAttributes field's value. +func (s *UpdateUserPoolClientInput) SetWriteAttributes(v []*string) *UpdateUserPoolClientInput { + s.WriteAttributes = v + return s +} + // Represents the response from the server to the request to update the user // pool client. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserPoolClientResponse type UpdateUserPoolClientOutput struct { _ struct{} `type:"structure"` @@ -9789,7 +13545,14 @@ func (s UpdateUserPoolClientOutput) GoString() string { return s.String() } +// SetUserPoolClient sets the UserPoolClient field's value. +func (s *UpdateUserPoolClientOutput) SetUserPoolClient(v *UserPoolClientType) *UpdateUserPoolClientOutput { + s.UserPoolClient = v + return s +} + // Represents the request to update the user pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserPoolRequest type UpdateUserPoolInput struct { _ struct{} `type:"structure"` @@ -9818,13 +13581,13 @@ type UpdateUserPoolInput struct { // Can be one of the following values: // - // OFF - MFA tokens are not required and cannot be specified during user - // registration. + // * OFF - MFA tokens are not required and cannot be specified during user + // registration. // - // ON - MFA tokens are required for all user registrations. You can only - // specify required when you are initially creating a user pool. + // * ON - MFA tokens are required for all user registrations. You can only + // specify required when you are initially creating a user pool. // - // OPTIONAL - Users have the option when registering to create an MFA token. + // * OPTIONAL - Users have the option when registering to create an MFA token. MfaConfiguration *string `type:"string" enum:"UserPoolMfaType"` // A container with the policies you wish to update in a user pool. @@ -9843,6 +13606,10 @@ type UpdateUserPoolInput struct { // // UserPoolId is a required field UserPoolId *string `min:"1" type:"string" required:"true"` + + // The cost allocation tags for the user pool. For more information, see Adding + // Cost Allocation Tags to Your User Pool (http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-cost-allocation-tagging.html) + UserPoolTags map[string]*string `type:"map"` } // String returns the string representation @@ -9908,8 +13675,93 @@ func (s *UpdateUserPoolInput) Validate() error { return nil } +// SetAdminCreateUserConfig sets the AdminCreateUserConfig field's value. +func (s *UpdateUserPoolInput) SetAdminCreateUserConfig(v *AdminCreateUserConfigType) *UpdateUserPoolInput { + s.AdminCreateUserConfig = v + return s +} + +// SetAutoVerifiedAttributes sets the AutoVerifiedAttributes field's value. +func (s *UpdateUserPoolInput) SetAutoVerifiedAttributes(v []*string) *UpdateUserPoolInput { + s.AutoVerifiedAttributes = v + return s +} + +// SetDeviceConfiguration sets the DeviceConfiguration field's value. +func (s *UpdateUserPoolInput) SetDeviceConfiguration(v *DeviceConfigurationType) *UpdateUserPoolInput { + s.DeviceConfiguration = v + return s +} + +// SetEmailConfiguration sets the EmailConfiguration field's value. +func (s *UpdateUserPoolInput) SetEmailConfiguration(v *EmailConfigurationType) *UpdateUserPoolInput { + s.EmailConfiguration = v + return s +} + +// SetEmailVerificationMessage sets the EmailVerificationMessage field's value. +func (s *UpdateUserPoolInput) SetEmailVerificationMessage(v string) *UpdateUserPoolInput { + s.EmailVerificationMessage = &v + return s +} + +// SetEmailVerificationSubject sets the EmailVerificationSubject field's value. +func (s *UpdateUserPoolInput) SetEmailVerificationSubject(v string) *UpdateUserPoolInput { + s.EmailVerificationSubject = &v + return s +} + +// SetLambdaConfig sets the LambdaConfig field's value. +func (s *UpdateUserPoolInput) SetLambdaConfig(v *LambdaConfigType) *UpdateUserPoolInput { + s.LambdaConfig = v + return s +} + +// SetMfaConfiguration sets the MfaConfiguration field's value. +func (s *UpdateUserPoolInput) SetMfaConfiguration(v string) *UpdateUserPoolInput { + s.MfaConfiguration = &v + return s +} + +// SetPolicies sets the Policies field's value. +func (s *UpdateUserPoolInput) SetPolicies(v *UserPoolPolicyType) *UpdateUserPoolInput { + s.Policies = v + return s +} + +// SetSmsAuthenticationMessage sets the SmsAuthenticationMessage field's value. +func (s *UpdateUserPoolInput) SetSmsAuthenticationMessage(v string) *UpdateUserPoolInput { + s.SmsAuthenticationMessage = &v + return s +} + +// SetSmsConfiguration sets the SmsConfiguration field's value. +func (s *UpdateUserPoolInput) SetSmsConfiguration(v *SmsConfigurationType) *UpdateUserPoolInput { + s.SmsConfiguration = v + return s +} + +// SetSmsVerificationMessage sets the SmsVerificationMessage field's value. +func (s *UpdateUserPoolInput) SetSmsVerificationMessage(v string) *UpdateUserPoolInput { + s.SmsVerificationMessage = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *UpdateUserPoolInput) SetUserPoolId(v string) *UpdateUserPoolInput { + s.UserPoolId = &v + return s +} + +// SetUserPoolTags sets the UserPoolTags field's value. +func (s *UpdateUserPoolInput) SetUserPoolTags(v map[string]*string) *UpdateUserPoolInput { + s.UserPoolTags = v + return s +} + // Represents the response from the server when you make a request to update // the user pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserPoolResponse type UpdateUserPoolOutput struct { _ struct{} `type:"structure"` } @@ -9925,6 +13777,7 @@ func (s UpdateUserPoolOutput) GoString() string { } // The user import job type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UserImportJobType type UserImportJobType struct { _ struct{} `type:"structure"` @@ -9965,25 +13818,26 @@ type UserImportJobType struct { // The status of the user import job. One of the following: // - // Created - The job was created but not started. + // * Created - The job was created but not started. // - // Pending - A transition state. You have started the job, but it has not - // begun importing users yet. + // * Pending - A transition state. You have started the job, but it has not + // begun importing users yet. // - // InProgress - The job has started, and users are being imported. + // * InProgress - The job has started, and users are being imported. // - // Stopping - You have stopped the job, but the job has not stopped importing - // users yet. + // * Stopping - You have stopped the job, but the job has not stopped importing + // users yet. // - // Stopped - You have stopped the job, and the job has stopped importing - // users. + // * Stopped - You have stopped the job, and the job has stopped importing + // users. // - // Succeeded - The job has completed successfully. + // * Succeeded - The job has completed successfully. // - // Failed - The job has stopped due to an error. + // * Failed - The job has stopped due to an error. // - // Expired - You created a job, but did not start the job within 24-48 hours. - // All data associated with the job was deleted, and the job cannot be started. + // * Expired - You created a job, but did not start the job within 24-48 + // hours. All data associated with the job was deleted, and the job cannot + // be started. Status *string `type:"string" enum:"UserImportJobStatusType"` // The user pool ID for the user pool that the users are being imported into. @@ -10000,7 +13854,86 @@ func (s UserImportJobType) GoString() string { return s.String() } -// The description of the user poool client. +// SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value. +func (s *UserImportJobType) SetCloudWatchLogsRoleArn(v string) *UserImportJobType { + s.CloudWatchLogsRoleArn = &v + return s +} + +// SetCompletionDate sets the CompletionDate field's value. +func (s *UserImportJobType) SetCompletionDate(v time.Time) *UserImportJobType { + s.CompletionDate = &v + return s +} + +// SetCompletionMessage sets the CompletionMessage field's value. +func (s *UserImportJobType) SetCompletionMessage(v string) *UserImportJobType { + s.CompletionMessage = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *UserImportJobType) SetCreationDate(v time.Time) *UserImportJobType { + s.CreationDate = &v + return s +} + +// SetFailedUsers sets the FailedUsers field's value. +func (s *UserImportJobType) SetFailedUsers(v int64) *UserImportJobType { + s.FailedUsers = &v + return s +} + +// SetImportedUsers sets the ImportedUsers field's value. +func (s *UserImportJobType) SetImportedUsers(v int64) *UserImportJobType { + s.ImportedUsers = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *UserImportJobType) SetJobId(v string) *UserImportJobType { + s.JobId = &v + return s +} + +// SetJobName sets the JobName field's value. +func (s *UserImportJobType) SetJobName(v string) *UserImportJobType { + s.JobName = &v + return s +} + +// SetPreSignedUrl sets the PreSignedUrl field's value. +func (s *UserImportJobType) SetPreSignedUrl(v string) *UserImportJobType { + s.PreSignedUrl = &v + return s +} + +// SetSkippedUsers sets the SkippedUsers field's value. +func (s *UserImportJobType) SetSkippedUsers(v int64) *UserImportJobType { + s.SkippedUsers = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *UserImportJobType) SetStartDate(v time.Time) *UserImportJobType { + s.StartDate = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *UserImportJobType) SetStatus(v string) *UserImportJobType { + s.Status = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *UserImportJobType) SetUserPoolId(v string) *UserImportJobType { + s.UserPoolId = &v + return s +} + +// The description of the user pool client. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UserPoolClientDescription type UserPoolClientDescription struct { _ struct{} `type:"structure"` @@ -10025,7 +13958,26 @@ func (s UserPoolClientDescription) GoString() string { return s.String() } +// SetClientId sets the ClientId field's value. +func (s *UserPoolClientDescription) SetClientId(v string) *UserPoolClientDescription { + s.ClientId = &v + return s +} + +// SetClientName sets the ClientName field's value. +func (s *UserPoolClientDescription) SetClientName(v string) *UserPoolClientDescription { + s.ClientName = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *UserPoolClientDescription) SetUserPoolId(v string) *UserPoolClientDescription { + s.UserPoolId = &v + return s +} + // A user pool of the client type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UserPoolClientType type UserPoolClientType struct { _ struct{} `type:"structure"` @@ -10050,7 +14002,7 @@ type UserPoolClientType struct { // The Read-only attributes. ReadAttributes []*string `type:"list"` - // The validity of the refresh token. + // The validity of the refresh token, in days. RefreshTokenValidity *int64 `type:"integer"` // The user pool ID for the user pool client. @@ -10070,7 +14022,68 @@ func (s UserPoolClientType) GoString() string { return s.String() } +// SetClientId sets the ClientId field's value. +func (s *UserPoolClientType) SetClientId(v string) *UserPoolClientType { + s.ClientId = &v + return s +} + +// SetClientName sets the ClientName field's value. +func (s *UserPoolClientType) SetClientName(v string) *UserPoolClientType { + s.ClientName = &v + return s +} + +// SetClientSecret sets the ClientSecret field's value. +func (s *UserPoolClientType) SetClientSecret(v string) *UserPoolClientType { + s.ClientSecret = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *UserPoolClientType) SetCreationDate(v time.Time) *UserPoolClientType { + s.CreationDate = &v + return s +} + +// SetExplicitAuthFlows sets the ExplicitAuthFlows field's value. +func (s *UserPoolClientType) SetExplicitAuthFlows(v []*string) *UserPoolClientType { + s.ExplicitAuthFlows = v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *UserPoolClientType) SetLastModifiedDate(v time.Time) *UserPoolClientType { + s.LastModifiedDate = &v + return s +} + +// SetReadAttributes sets the ReadAttributes field's value. +func (s *UserPoolClientType) SetReadAttributes(v []*string) *UserPoolClientType { + s.ReadAttributes = v + return s +} + +// SetRefreshTokenValidity sets the RefreshTokenValidity field's value. +func (s *UserPoolClientType) SetRefreshTokenValidity(v int64) *UserPoolClientType { + s.RefreshTokenValidity = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *UserPoolClientType) SetUserPoolId(v string) *UserPoolClientType { + s.UserPoolId = &v + return s +} + +// SetWriteAttributes sets the WriteAttributes field's value. +func (s *UserPoolClientType) SetWriteAttributes(v []*string) *UserPoolClientType { + s.WriteAttributes = v + return s +} + // A user pool description. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UserPoolDescriptionType type UserPoolDescriptionType struct { _ struct{} `type:"structure"` @@ -10103,7 +14116,44 @@ func (s UserPoolDescriptionType) GoString() string { return s.String() } +// SetCreationDate sets the CreationDate field's value. +func (s *UserPoolDescriptionType) SetCreationDate(v time.Time) *UserPoolDescriptionType { + s.CreationDate = &v + return s +} + +// SetId sets the Id field's value. +func (s *UserPoolDescriptionType) SetId(v string) *UserPoolDescriptionType { + s.Id = &v + return s +} + +// SetLambdaConfig sets the LambdaConfig field's value. +func (s *UserPoolDescriptionType) SetLambdaConfig(v *LambdaConfigType) *UserPoolDescriptionType { + s.LambdaConfig = v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *UserPoolDescriptionType) SetLastModifiedDate(v time.Time) *UserPoolDescriptionType { + s.LastModifiedDate = &v + return s +} + +// SetName sets the Name field's value. +func (s *UserPoolDescriptionType) SetName(v string) *UserPoolDescriptionType { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *UserPoolDescriptionType) SetStatus(v string) *UserPoolDescriptionType { + s.Status = &v + return s +} + // The type of policy in a user pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UserPoolPolicyType type UserPoolPolicyType struct { _ struct{} `type:"structure"` @@ -10136,7 +14186,14 @@ func (s *UserPoolPolicyType) Validate() error { return nil } +// SetPasswordPolicy sets the PasswordPolicy field's value. +func (s *UserPoolPolicyType) SetPasswordPolicy(v *PasswordPolicyType) *UserPoolPolicyType { + s.PasswordPolicy = v + return s +} + // A container with information about the user pool type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UserPoolType type UserPoolType struct { _ struct{} `type:"structure"` @@ -10181,13 +14238,13 @@ type UserPoolType struct { // Can be one of the following values: // - // OFF - MFA tokens are not required and cannot be specified during user - // registration. + // * OFF - MFA tokens are not required and cannot be specified during user + // registration. // - // ON - MFA tokens are required for all user registrations. You can only - // specify required when you are initially creating a user pool. + // * ON - MFA tokens are required for all user registrations. You can only + // specify required when you are initially creating a user pool. // - // OPTIONAL - Users have the option when registering to create an MFA token. + // * OPTIONAL - Users have the option when registering to create an MFA token. MfaConfiguration *string `type:"string" enum:"UserPoolMfaType"` // The name of the user pool. @@ -10213,6 +14270,10 @@ type UserPoolType struct { // The status of a user pool. Status *string `type:"string" enum:"StatusType"` + + // The cost allocation tags for the user pool. For more information, see Adding + // Cost Allocation Tags to Your User Pool (http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-cost-allocation-tagging.html) + UserPoolTags map[string]*string `type:"map"` } // String returns the string representation @@ -10225,7 +14286,146 @@ func (s UserPoolType) GoString() string { return s.String() } +// SetAdminCreateUserConfig sets the AdminCreateUserConfig field's value. +func (s *UserPoolType) SetAdminCreateUserConfig(v *AdminCreateUserConfigType) *UserPoolType { + s.AdminCreateUserConfig = v + return s +} + +// SetAliasAttributes sets the AliasAttributes field's value. +func (s *UserPoolType) SetAliasAttributes(v []*string) *UserPoolType { + s.AliasAttributes = v + return s +} + +// SetAutoVerifiedAttributes sets the AutoVerifiedAttributes field's value. +func (s *UserPoolType) SetAutoVerifiedAttributes(v []*string) *UserPoolType { + s.AutoVerifiedAttributes = v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *UserPoolType) SetCreationDate(v time.Time) *UserPoolType { + s.CreationDate = &v + return s +} + +// SetDeviceConfiguration sets the DeviceConfiguration field's value. +func (s *UserPoolType) SetDeviceConfiguration(v *DeviceConfigurationType) *UserPoolType { + s.DeviceConfiguration = v + return s +} + +// SetEmailConfiguration sets the EmailConfiguration field's value. +func (s *UserPoolType) SetEmailConfiguration(v *EmailConfigurationType) *UserPoolType { + s.EmailConfiguration = v + return s +} + +// SetEmailConfigurationFailure sets the EmailConfigurationFailure field's value. +func (s *UserPoolType) SetEmailConfigurationFailure(v string) *UserPoolType { + s.EmailConfigurationFailure = &v + return s +} + +// SetEmailVerificationMessage sets the EmailVerificationMessage field's value. +func (s *UserPoolType) SetEmailVerificationMessage(v string) *UserPoolType { + s.EmailVerificationMessage = &v + return s +} + +// SetEmailVerificationSubject sets the EmailVerificationSubject field's value. +func (s *UserPoolType) SetEmailVerificationSubject(v string) *UserPoolType { + s.EmailVerificationSubject = &v + return s +} + +// SetEstimatedNumberOfUsers sets the EstimatedNumberOfUsers field's value. +func (s *UserPoolType) SetEstimatedNumberOfUsers(v int64) *UserPoolType { + s.EstimatedNumberOfUsers = &v + return s +} + +// SetId sets the Id field's value. +func (s *UserPoolType) SetId(v string) *UserPoolType { + s.Id = &v + return s +} + +// SetLambdaConfig sets the LambdaConfig field's value. +func (s *UserPoolType) SetLambdaConfig(v *LambdaConfigType) *UserPoolType { + s.LambdaConfig = v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *UserPoolType) SetLastModifiedDate(v time.Time) *UserPoolType { + s.LastModifiedDate = &v + return s +} + +// SetMfaConfiguration sets the MfaConfiguration field's value. +func (s *UserPoolType) SetMfaConfiguration(v string) *UserPoolType { + s.MfaConfiguration = &v + return s +} + +// SetName sets the Name field's value. +func (s *UserPoolType) SetName(v string) *UserPoolType { + s.Name = &v + return s +} + +// SetPolicies sets the Policies field's value. +func (s *UserPoolType) SetPolicies(v *UserPoolPolicyType) *UserPoolType { + s.Policies = v + return s +} + +// SetSchemaAttributes sets the SchemaAttributes field's value. +func (s *UserPoolType) SetSchemaAttributes(v []*SchemaAttributeType) *UserPoolType { + s.SchemaAttributes = v + return s +} + +// SetSmsAuthenticationMessage sets the SmsAuthenticationMessage field's value. +func (s *UserPoolType) SetSmsAuthenticationMessage(v string) *UserPoolType { + s.SmsAuthenticationMessage = &v + return s +} + +// SetSmsConfiguration sets the SmsConfiguration field's value. +func (s *UserPoolType) SetSmsConfiguration(v *SmsConfigurationType) *UserPoolType { + s.SmsConfiguration = v + return s +} + +// SetSmsConfigurationFailure sets the SmsConfigurationFailure field's value. +func (s *UserPoolType) SetSmsConfigurationFailure(v string) *UserPoolType { + s.SmsConfigurationFailure = &v + return s +} + +// SetSmsVerificationMessage sets the SmsVerificationMessage field's value. +func (s *UserPoolType) SetSmsVerificationMessage(v string) *UserPoolType { + s.SmsVerificationMessage = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *UserPoolType) SetStatus(v string) *UserPoolType { + s.Status = &v + return s +} + +// SetUserPoolTags sets the UserPoolTags field's value. +func (s *UserPoolType) SetUserPoolTags(v map[string]*string) *UserPoolType { + s.UserPoolTags = v + return s +} + // The user type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UserType type UserType struct { _ struct{} `type:"structure"` @@ -10246,15 +14446,15 @@ type UserType struct { // The user status. Can be one of the following: // - // UNCONFIRMED - User has been created but not confirmed. + // * UNCONFIRMED - User has been created but not confirmed. // - // CONFIRMED - User has been confirmed. + // * CONFIRMED - User has been confirmed. // - // ARCHIVED - User is no longer active. + // * ARCHIVED - User is no longer active. // - // COMPROMISED - User is disabled due to a potential security threat. + // * COMPROMISED - User is disabled due to a potential security threat. // - // UNKNOWN - User status is not known. + // * UNKNOWN - User status is not known. UserStatus *string `type:"string" enum:"UserStatusType"` // The user name of the user you wish to describe. @@ -10271,7 +14471,50 @@ func (s UserType) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *UserType) SetAttributes(v []*AttributeType) *UserType { + s.Attributes = v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *UserType) SetEnabled(v bool) *UserType { + s.Enabled = &v + return s +} + +// SetMFAOptions sets the MFAOptions field's value. +func (s *UserType) SetMFAOptions(v []*MFAOptionType) *UserType { + s.MFAOptions = v + return s +} + +// SetUserCreateDate sets the UserCreateDate field's value. +func (s *UserType) SetUserCreateDate(v time.Time) *UserType { + s.UserCreateDate = &v + return s +} + +// SetUserLastModifiedDate sets the UserLastModifiedDate field's value. +func (s *UserType) SetUserLastModifiedDate(v time.Time) *UserType { + s.UserLastModifiedDate = &v + return s +} + +// SetUserStatus sets the UserStatus field's value. +func (s *UserType) SetUserStatus(v string) *UserType { + s.UserStatus = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *UserType) SetUsername(v string) *UserType { + s.Username = &v + return s +} + // Represents the request to verify user attributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/VerifyUserAttributeRequest type VerifyUserAttributeInput struct { _ struct{} `type:"structure"` @@ -10321,8 +14564,27 @@ func (s *VerifyUserAttributeInput) Validate() error { return nil } +// SetAccessToken sets the AccessToken field's value. +func (s *VerifyUserAttributeInput) SetAccessToken(v string) *VerifyUserAttributeInput { + s.AccessToken = &v + return s +} + +// SetAttributeName sets the AttributeName field's value. +func (s *VerifyUserAttributeInput) SetAttributeName(v string) *VerifyUserAttributeInput { + s.AttributeName = &v + return s +} + +// SetCode sets the Code field's value. +func (s *VerifyUserAttributeInput) SetCode(v string) *VerifyUserAttributeInput { + s.Code = &v + return s +} + // A container representing the response from the server from the request to // verify user attributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/VerifyUserAttributeResponse type VerifyUserAttributeOutput struct { _ struct{} `type:"structure"` } diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/cognitoidentityprovideriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/cognitoidentityprovideriface/interface.go index 3f6314b88..837e1330d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/cognitoidentityprovideriface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/cognitoidentityprovideriface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCognitoIdentityProviderClient{} // @@ -63,6 +63,10 @@ type CognitoIdentityProviderAPI interface { AddCustomAttributes(*cognitoidentityprovider.AddCustomAttributesInput) (*cognitoidentityprovider.AddCustomAttributesOutput, error) + AdminAddUserToGroupRequest(*cognitoidentityprovider.AdminAddUserToGroupInput) (*request.Request, *cognitoidentityprovider.AdminAddUserToGroupOutput) + + AdminAddUserToGroup(*cognitoidentityprovider.AdminAddUserToGroupInput) (*cognitoidentityprovider.AdminAddUserToGroupOutput, error) + AdminConfirmSignUpRequest(*cognitoidentityprovider.AdminConfirmSignUpInput) (*request.Request, *cognitoidentityprovider.AdminConfirmSignUpOutput) AdminConfirmSignUp(*cognitoidentityprovider.AdminConfirmSignUpInput) (*cognitoidentityprovider.AdminConfirmSignUpOutput, error) @@ -107,6 +111,14 @@ type CognitoIdentityProviderAPI interface { AdminListDevices(*cognitoidentityprovider.AdminListDevicesInput) (*cognitoidentityprovider.AdminListDevicesOutput, error) + AdminListGroupsForUserRequest(*cognitoidentityprovider.AdminListGroupsForUserInput) (*request.Request, *cognitoidentityprovider.AdminListGroupsForUserOutput) + + AdminListGroupsForUser(*cognitoidentityprovider.AdminListGroupsForUserInput) (*cognitoidentityprovider.AdminListGroupsForUserOutput, error) + + AdminRemoveUserFromGroupRequest(*cognitoidentityprovider.AdminRemoveUserFromGroupInput) (*request.Request, *cognitoidentityprovider.AdminRemoveUserFromGroupOutput) + + AdminRemoveUserFromGroup(*cognitoidentityprovider.AdminRemoveUserFromGroupInput) (*cognitoidentityprovider.AdminRemoveUserFromGroupOutput, error) + AdminResetUserPasswordRequest(*cognitoidentityprovider.AdminResetUserPasswordInput) (*request.Request, *cognitoidentityprovider.AdminResetUserPasswordOutput) AdminResetUserPassword(*cognitoidentityprovider.AdminResetUserPasswordInput) (*cognitoidentityprovider.AdminResetUserPasswordOutput, error) @@ -147,6 +159,10 @@ type CognitoIdentityProviderAPI interface { ConfirmSignUp(*cognitoidentityprovider.ConfirmSignUpInput) (*cognitoidentityprovider.ConfirmSignUpOutput, error) + CreateGroupRequest(*cognitoidentityprovider.CreateGroupInput) (*request.Request, *cognitoidentityprovider.CreateGroupOutput) + + CreateGroup(*cognitoidentityprovider.CreateGroupInput) (*cognitoidentityprovider.CreateGroupOutput, error) + CreateUserImportJobRequest(*cognitoidentityprovider.CreateUserImportJobInput) (*request.Request, *cognitoidentityprovider.CreateUserImportJobOutput) CreateUserImportJob(*cognitoidentityprovider.CreateUserImportJobInput) (*cognitoidentityprovider.CreateUserImportJobOutput, error) @@ -159,6 +175,10 @@ type CognitoIdentityProviderAPI interface { CreateUserPoolClient(*cognitoidentityprovider.CreateUserPoolClientInput) (*cognitoidentityprovider.CreateUserPoolClientOutput, error) + DeleteGroupRequest(*cognitoidentityprovider.DeleteGroupInput) (*request.Request, *cognitoidentityprovider.DeleteGroupOutput) + + DeleteGroup(*cognitoidentityprovider.DeleteGroupInput) (*cognitoidentityprovider.DeleteGroupOutput, error) + DeleteUserRequest(*cognitoidentityprovider.DeleteUserInput) (*request.Request, *cognitoidentityprovider.DeleteUserOutput) DeleteUser(*cognitoidentityprovider.DeleteUserInput) (*cognitoidentityprovider.DeleteUserOutput, error) @@ -203,6 +223,10 @@ type CognitoIdentityProviderAPI interface { GetDevice(*cognitoidentityprovider.GetDeviceInput) (*cognitoidentityprovider.GetDeviceOutput, error) + GetGroupRequest(*cognitoidentityprovider.GetGroupInput) (*request.Request, *cognitoidentityprovider.GetGroupOutput) + + GetGroup(*cognitoidentityprovider.GetGroupInput) (*cognitoidentityprovider.GetGroupOutput, error) + GetUserRequest(*cognitoidentityprovider.GetUserInput) (*request.Request, *cognitoidentityprovider.GetUserOutput) GetUser(*cognitoidentityprovider.GetUserInput) (*cognitoidentityprovider.GetUserOutput, error) @@ -223,6 +247,10 @@ type CognitoIdentityProviderAPI interface { ListDevices(*cognitoidentityprovider.ListDevicesInput) (*cognitoidentityprovider.ListDevicesOutput, error) + ListGroupsRequest(*cognitoidentityprovider.ListGroupsInput) (*request.Request, *cognitoidentityprovider.ListGroupsOutput) + + ListGroups(*cognitoidentityprovider.ListGroupsInput) (*cognitoidentityprovider.ListGroupsOutput, error) + ListUserImportJobsRequest(*cognitoidentityprovider.ListUserImportJobsInput) (*request.Request, *cognitoidentityprovider.ListUserImportJobsOutput) ListUserImportJobs(*cognitoidentityprovider.ListUserImportJobsInput) (*cognitoidentityprovider.ListUserImportJobsOutput, error) @@ -239,6 +267,10 @@ type CognitoIdentityProviderAPI interface { ListUsers(*cognitoidentityprovider.ListUsersInput) (*cognitoidentityprovider.ListUsersOutput, error) + ListUsersInGroupRequest(*cognitoidentityprovider.ListUsersInGroupInput) (*request.Request, *cognitoidentityprovider.ListUsersInGroupOutput) + + ListUsersInGroup(*cognitoidentityprovider.ListUsersInGroupInput) (*cognitoidentityprovider.ListUsersInGroupOutput, error) + ResendConfirmationCodeRequest(*cognitoidentityprovider.ResendConfirmationCodeInput) (*request.Request, *cognitoidentityprovider.ResendConfirmationCodeOutput) ResendConfirmationCode(*cognitoidentityprovider.ResendConfirmationCodeInput) (*cognitoidentityprovider.ResendConfirmationCodeOutput, error) @@ -267,6 +299,10 @@ type CognitoIdentityProviderAPI interface { UpdateDeviceStatus(*cognitoidentityprovider.UpdateDeviceStatusInput) (*cognitoidentityprovider.UpdateDeviceStatusOutput, error) + UpdateGroupRequest(*cognitoidentityprovider.UpdateGroupInput) (*request.Request, *cognitoidentityprovider.UpdateGroupOutput) + + UpdateGroup(*cognitoidentityprovider.UpdateGroupInput) (*cognitoidentityprovider.UpdateGroupOutput, error) + UpdateUserAttributesRequest(*cognitoidentityprovider.UpdateUserAttributesInput) (*request.Request, *cognitoidentityprovider.UpdateUserAttributesOutput) UpdateUserAttributes(*cognitoidentityprovider.UpdateUserAttributesInput) (*cognitoidentityprovider.UpdateUserAttributesOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/errors.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/errors.go new file mode 100644 index 000000000..f42b0ce00 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/errors.go @@ -0,0 +1,208 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cognitoidentityprovider + +const ( + + // ErrCodeAliasExistsException for service response error code + // "AliasExistsException". + // + // This exception is thrown when a user tries to confirm the account with an + // email or phone number that has already been supplied as an alias from a different + // account. This exception tells user that an account with this email or phone + // already exists. + ErrCodeAliasExistsException = "AliasExistsException" + + // ErrCodeCodeDeliveryFailureException for service response error code + // "CodeDeliveryFailureException". + // + // This exception is thrown when a verification code fails to deliver successfully. + ErrCodeCodeDeliveryFailureException = "CodeDeliveryFailureException" + + // ErrCodeCodeMismatchException for service response error code + // "CodeMismatchException". + // + // This exception is thrown if the provided code does not match what the server + // was expecting. + ErrCodeCodeMismatchException = "CodeMismatchException" + + // ErrCodeConcurrentModificationException for service response error code + // "ConcurrentModificationException". + // + // This exception is thrown if two or more modifications are happening concurrently. + ErrCodeConcurrentModificationException = "ConcurrentModificationException" + + // ErrCodeExpiredCodeException for service response error code + // "ExpiredCodeException". + // + // This exception is thrown if a code has expired. + ErrCodeExpiredCodeException = "ExpiredCodeException" + + // ErrCodeGroupExistsException for service response error code + // "GroupExistsException". + // + // This exception is thrown when Amazon Cognito encounters a group that already + // exists in the user pool. + ErrCodeGroupExistsException = "GroupExistsException" + + // ErrCodeInternalErrorException for service response error code + // "InternalErrorException". + // + // This exception is thrown when Amazon Cognito encounters an internal error. + ErrCodeInternalErrorException = "InternalErrorException" + + // ErrCodeInvalidEmailRoleAccessPolicyException for service response error code + // "InvalidEmailRoleAccessPolicyException". + // + // This exception is thrown when Amazon Cognito is not allowed to use your email + // identity. HTTP status code: 400. + ErrCodeInvalidEmailRoleAccessPolicyException = "InvalidEmailRoleAccessPolicyException" + + // ErrCodeInvalidLambdaResponseException for service response error code + // "InvalidLambdaResponseException". + // + // This exception is thrown when the Amazon Cognito service encounters an invalid + // AWS Lambda response. + ErrCodeInvalidLambdaResponseException = "InvalidLambdaResponseException" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameterException". + // + // This exception is thrown when the Amazon Cognito service encounters an invalid + // parameter. + ErrCodeInvalidParameterException = "InvalidParameterException" + + // ErrCodeInvalidPasswordException for service response error code + // "InvalidPasswordException". + // + // This exception is thrown when the Amazon Cognito service encounters an invalid + // password. + ErrCodeInvalidPasswordException = "InvalidPasswordException" + + // ErrCodeInvalidSmsRoleAccessPolicyException for service response error code + // "InvalidSmsRoleAccessPolicyException". + // + // This exception is returned when the role provided for SMS configuration does + // not have permission to publish using Amazon SNS. + ErrCodeInvalidSmsRoleAccessPolicyException = "InvalidSmsRoleAccessPolicyException" + + // ErrCodeInvalidSmsRoleTrustRelationshipException for service response error code + // "InvalidSmsRoleTrustRelationshipException". + // + // This exception is thrown when the trust relationship is invalid for the role + // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com + // or the external ID provided in the role does not match what is provided in + // the SMS configuration for the user pool. + ErrCodeInvalidSmsRoleTrustRelationshipException = "InvalidSmsRoleTrustRelationshipException" + + // ErrCodeInvalidUserPoolConfigurationException for service response error code + // "InvalidUserPoolConfigurationException". + // + // This exception is thrown when the user pool configuration is invalid. + ErrCodeInvalidUserPoolConfigurationException = "InvalidUserPoolConfigurationException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // This exception is thrown when a user exceeds the limit for a requested AWS + // resource. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeMFAMethodNotFoundException for service response error code + // "MFAMethodNotFoundException". + // + // This exception is thrown when Amazon Cognito cannot find a multi-factor authentication + // (MFA) method. + ErrCodeMFAMethodNotFoundException = "MFAMethodNotFoundException" + + // ErrCodeNotAuthorizedException for service response error code + // "NotAuthorizedException". + // + // This exception gets thrown when a user is not authorized. + ErrCodeNotAuthorizedException = "NotAuthorizedException" + + // ErrCodePasswordResetRequiredException for service response error code + // "PasswordResetRequiredException". + // + // This exception is thrown when a password reset is required. + ErrCodePasswordResetRequiredException = "PasswordResetRequiredException" + + // ErrCodePreconditionNotMetException for service response error code + // "PreconditionNotMetException". + // + // This exception is thrown when a precondition is not met. + ErrCodePreconditionNotMetException = "PreconditionNotMetException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // This exception is thrown when the Amazon Cognito service cannot find the + // requested resource. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeTooManyFailedAttemptsException for service response error code + // "TooManyFailedAttemptsException". + // + // This exception gets thrown when the user has made too many failed attempts + // for a given action (e.g., sign in). + ErrCodeTooManyFailedAttemptsException = "TooManyFailedAttemptsException" + + // ErrCodeTooManyRequestsException for service response error code + // "TooManyRequestsException". + // + // This exception gets thrown when the user has made too many requests for a + // given operation. + ErrCodeTooManyRequestsException = "TooManyRequestsException" + + // ErrCodeUnexpectedLambdaException for service response error code + // "UnexpectedLambdaException". + // + // This exception gets thrown when the Amazon Cognito service encounters an + // unexpected exception with the AWS Lambda service. + ErrCodeUnexpectedLambdaException = "UnexpectedLambdaException" + + // ErrCodeUnsupportedUserStateException for service response error code + // "UnsupportedUserStateException". + // + // The request failed because the user is in an unsupported state. + ErrCodeUnsupportedUserStateException = "UnsupportedUserStateException" + + // ErrCodeUserImportInProgressException for service response error code + // "UserImportInProgressException". + // + // This exception is thrown when you are trying to modify a user pool while + // a user import job is in progress for that pool. + ErrCodeUserImportInProgressException = "UserImportInProgressException" + + // ErrCodeUserLambdaValidationException for service response error code + // "UserLambdaValidationException". + // + // This exception gets thrown when the Amazon Cognito service encounters a user + // validation exception with the AWS Lambda service. + ErrCodeUserLambdaValidationException = "UserLambdaValidationException" + + // ErrCodeUserNotConfirmedException for service response error code + // "UserNotConfirmedException". + // + // This exception is thrown when a user is not confirmed successfully. + ErrCodeUserNotConfirmedException = "UserNotConfirmedException" + + // ErrCodeUserNotFoundException for service response error code + // "UserNotFoundException". + // + // This exception is thrown when a user is not found. + ErrCodeUserNotFoundException = "UserNotFoundException" + + // ErrCodeUserPoolTaggingException for service response error code + // "UserPoolTaggingException". + // + // This exception gets thrown when a user pool tag cannot be set or updated. + ErrCodeUserPoolTaggingException = "UserPoolTaggingException" + + // ErrCodeUsernameExistsException for service response error code + // "UsernameExistsException". + // + // This exception is thrown when Amazon Cognito encounters a user name that + // already exists in the user pool. + ErrCodeUsernameExistsException = "UsernameExistsException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/examples_test.go index 7a1f627b4..1c693f3f0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCognitoIdentityProvider_AddCustomAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -58,13 +54,32 @@ func ExampleCognitoIdentityProvider_AddCustomAttributes() { fmt.Println(resp) } -func ExampleCognitoIdentityProvider_AdminConfirmSignUp() { - sess, err := session.NewSession() +func ExampleCognitoIdentityProvider_AdminAddUserToGroup() { + sess := session.Must(session.NewSession()) + + svc := cognitoidentityprovider.New(sess) + + params := &cognitoidentityprovider.AdminAddUserToGroupInput{ + GroupName: aws.String("GroupNameType"), // Required + UserPoolId: aws.String("UserPoolIdType"), // Required + Username: aws.String("UsernameType"), // Required + } + resp, err := svc.AdminAddUserToGroup(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCognitoIdentityProvider_AdminConfirmSignUp() { + sess := session.Must(session.NewSession()) + svc := cognitoidentityprovider.New(sess) params := &cognitoidentityprovider.AdminConfirmSignUpInput{ @@ -85,11 +100,7 @@ func ExampleCognitoIdentityProvider_AdminConfirmSignUp() { } func ExampleCognitoIdentityProvider_AdminCreateUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -132,11 +143,7 @@ func ExampleCognitoIdentityProvider_AdminCreateUser() { } func ExampleCognitoIdentityProvider_AdminDeleteUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -158,11 +165,7 @@ func ExampleCognitoIdentityProvider_AdminDeleteUser() { } func ExampleCognitoIdentityProvider_AdminDeleteUserAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -188,11 +191,7 @@ func ExampleCognitoIdentityProvider_AdminDeleteUserAttributes() { } func ExampleCognitoIdentityProvider_AdminDisableUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -214,11 +213,7 @@ func ExampleCognitoIdentityProvider_AdminDisableUser() { } func ExampleCognitoIdentityProvider_AdminEnableUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -240,11 +235,7 @@ func ExampleCognitoIdentityProvider_AdminEnableUser() { } func ExampleCognitoIdentityProvider_AdminForgetDevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -267,11 +258,7 @@ func ExampleCognitoIdentityProvider_AdminForgetDevice() { } func ExampleCognitoIdentityProvider_AdminGetDevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -294,11 +281,7 @@ func ExampleCognitoIdentityProvider_AdminGetDevice() { } func ExampleCognitoIdentityProvider_AdminGetUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -320,11 +303,7 @@ func ExampleCognitoIdentityProvider_AdminGetUser() { } func ExampleCognitoIdentityProvider_AdminInitiateAuth() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -355,11 +334,7 @@ func ExampleCognitoIdentityProvider_AdminInitiateAuth() { } func ExampleCognitoIdentityProvider_AdminListDevices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -382,20 +357,41 @@ func ExampleCognitoIdentityProvider_AdminListDevices() { fmt.Println(resp) } -func ExampleCognitoIdentityProvider_AdminResetUserPassword() { - sess, err := session.NewSession() +func ExampleCognitoIdentityProvider_AdminListGroupsForUser() { + sess := session.Must(session.NewSession()) + + svc := cognitoidentityprovider.New(sess) + + params := &cognitoidentityprovider.AdminListGroupsForUserInput{ + UserPoolId: aws.String("UserPoolIdType"), // Required + Username: aws.String("UsernameType"), // Required + Limit: aws.Int64(1), + NextToken: aws.String("PaginationKey"), + } + resp, err := svc.AdminListGroupsForUser(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCognitoIdentityProvider_AdminRemoveUserFromGroup() { + sess := session.Must(session.NewSession()) + svc := cognitoidentityprovider.New(sess) - params := &cognitoidentityprovider.AdminResetUserPasswordInput{ + params := &cognitoidentityprovider.AdminRemoveUserFromGroupInput{ + GroupName: aws.String("GroupNameType"), // Required UserPoolId: aws.String("UserPoolIdType"), // Required Username: aws.String("UsernameType"), // Required } - resp, err := svc.AdminResetUserPassword(params) + resp, err := svc.AdminRemoveUserFromGroup(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -408,13 +404,31 @@ func ExampleCognitoIdentityProvider_AdminResetUserPassword() { fmt.Println(resp) } -func ExampleCognitoIdentityProvider_AdminRespondToAuthChallenge() { - sess, err := session.NewSession() +func ExampleCognitoIdentityProvider_AdminResetUserPassword() { + sess := session.Must(session.NewSession()) + + svc := cognitoidentityprovider.New(sess) + + params := &cognitoidentityprovider.AdminResetUserPasswordInput{ + UserPoolId: aws.String("UserPoolIdType"), // Required + Username: aws.String("UsernameType"), // Required + } + resp, err := svc.AdminResetUserPassword(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCognitoIdentityProvider_AdminRespondToAuthChallenge() { + sess := session.Must(session.NewSession()) + svc := cognitoidentityprovider.New(sess) params := &cognitoidentityprovider.AdminRespondToAuthChallengeInput{ @@ -441,11 +455,7 @@ func ExampleCognitoIdentityProvider_AdminRespondToAuthChallenge() { } func ExampleCognitoIdentityProvider_AdminSetUserSettings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -474,11 +484,7 @@ func ExampleCognitoIdentityProvider_AdminSetUserSettings() { } func ExampleCognitoIdentityProvider_AdminUpdateDeviceStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -502,11 +508,7 @@ func ExampleCognitoIdentityProvider_AdminUpdateDeviceStatus() { } func ExampleCognitoIdentityProvider_AdminUpdateUserAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -535,11 +537,7 @@ func ExampleCognitoIdentityProvider_AdminUpdateUserAttributes() { } func ExampleCognitoIdentityProvider_AdminUserGlobalSignOut() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -561,11 +559,7 @@ func ExampleCognitoIdentityProvider_AdminUserGlobalSignOut() { } func ExampleCognitoIdentityProvider_ChangePassword() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -588,11 +582,7 @@ func ExampleCognitoIdentityProvider_ChangePassword() { } func ExampleCognitoIdentityProvider_ConfirmDevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -619,11 +609,7 @@ func ExampleCognitoIdentityProvider_ConfirmDevice() { } func ExampleCognitoIdentityProvider_ConfirmForgotPassword() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -648,11 +634,7 @@ func ExampleCognitoIdentityProvider_ConfirmForgotPassword() { } func ExampleCognitoIdentityProvider_ConfirmSignUp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -676,13 +658,34 @@ func ExampleCognitoIdentityProvider_ConfirmSignUp() { fmt.Println(resp) } -func ExampleCognitoIdentityProvider_CreateUserImportJob() { - sess, err := session.NewSession() +func ExampleCognitoIdentityProvider_CreateGroup() { + sess := session.Must(session.NewSession()) + + svc := cognitoidentityprovider.New(sess) + + params := &cognitoidentityprovider.CreateGroupInput{ + GroupName: aws.String("GroupNameType"), // Required + UserPoolId: aws.String("UserPoolIdType"), // Required + Description: aws.String("DescriptionType"), + Precedence: aws.Int64(1), + RoleArn: aws.String("ArnType"), + } + resp, err := svc.CreateGroup(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCognitoIdentityProvider_CreateUserImportJob() { + sess := session.Must(session.NewSession()) + svc := cognitoidentityprovider.New(sess) params := &cognitoidentityprovider.CreateUserImportJobInput{ @@ -704,11 +707,7 @@ func ExampleCognitoIdentityProvider_CreateUserImportJob() { } func ExampleCognitoIdentityProvider_CreateUserPool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -761,12 +760,34 @@ func ExampleCognitoIdentityProvider_CreateUserPool() { RequireUppercase: aws.Bool(true), }, }, + Schema: []*cognitoidentityprovider.SchemaAttributeType{ + { // Required + AttributeDataType: aws.String("AttributeDataType"), + DeveloperOnlyAttribute: aws.Bool(true), + Mutable: aws.Bool(true), + Name: aws.String("CustomAttributeNameType"), + NumberAttributeConstraints: &cognitoidentityprovider.NumberAttributeConstraintsType{ + MaxValue: aws.String("StringType"), + MinValue: aws.String("StringType"), + }, + Required: aws.Bool(true), + StringAttributeConstraints: &cognitoidentityprovider.StringAttributeConstraintsType{ + MaxLength: aws.String("StringType"), + MinLength: aws.String("StringType"), + }, + }, + // More values... + }, SmsAuthenticationMessage: aws.String("SmsVerificationMessageType"), SmsConfiguration: &cognitoidentityprovider.SmsConfigurationType{ + SnsCallerArn: aws.String("ArnType"), // Required ExternalId: aws.String("StringType"), - SnsCallerArn: aws.String("ArnType"), }, SmsVerificationMessage: aws.String("SmsVerificationMessageType"), + UserPoolTags: map[string]*string{ + "Key": aws.String("StringType"), // Required + // More values... + }, } resp, err := svc.CreateUserPool(params) @@ -782,11 +803,7 @@ func ExampleCognitoIdentityProvider_CreateUserPool() { } func ExampleCognitoIdentityProvider_CreateUserPoolClient() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -821,13 +838,31 @@ func ExampleCognitoIdentityProvider_CreateUserPoolClient() { fmt.Println(resp) } -func ExampleCognitoIdentityProvider_DeleteUser() { - sess, err := session.NewSession() +func ExampleCognitoIdentityProvider_DeleteGroup() { + sess := session.Must(session.NewSession()) + + svc := cognitoidentityprovider.New(sess) + + params := &cognitoidentityprovider.DeleteGroupInput{ + GroupName: aws.String("GroupNameType"), // Required + UserPoolId: aws.String("UserPoolIdType"), // Required + } + resp, err := svc.DeleteGroup(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCognitoIdentityProvider_DeleteUser() { + sess := session.Must(session.NewSession()) + svc := cognitoidentityprovider.New(sess) params := &cognitoidentityprovider.DeleteUserInput{ @@ -847,11 +882,7 @@ func ExampleCognitoIdentityProvider_DeleteUser() { } func ExampleCognitoIdentityProvider_DeleteUserAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -876,11 +907,7 @@ func ExampleCognitoIdentityProvider_DeleteUserAttributes() { } func ExampleCognitoIdentityProvider_DeleteUserPool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -901,11 +928,7 @@ func ExampleCognitoIdentityProvider_DeleteUserPool() { } func ExampleCognitoIdentityProvider_DeleteUserPoolClient() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -927,11 +950,7 @@ func ExampleCognitoIdentityProvider_DeleteUserPoolClient() { } func ExampleCognitoIdentityProvider_DescribeUserImportJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -953,11 +972,7 @@ func ExampleCognitoIdentityProvider_DescribeUserImportJob() { } func ExampleCognitoIdentityProvider_DescribeUserPool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -978,11 +993,7 @@ func ExampleCognitoIdentityProvider_DescribeUserPool() { } func ExampleCognitoIdentityProvider_DescribeUserPoolClient() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1004,11 +1015,7 @@ func ExampleCognitoIdentityProvider_DescribeUserPoolClient() { } func ExampleCognitoIdentityProvider_ForgetDevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1030,11 +1037,7 @@ func ExampleCognitoIdentityProvider_ForgetDevice() { } func ExampleCognitoIdentityProvider_ForgotPassword() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1057,11 +1060,7 @@ func ExampleCognitoIdentityProvider_ForgotPassword() { } func ExampleCognitoIdentityProvider_GetCSVHeader() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1082,11 +1081,7 @@ func ExampleCognitoIdentityProvider_GetCSVHeader() { } func ExampleCognitoIdentityProvider_GetDevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1107,13 +1102,31 @@ func ExampleCognitoIdentityProvider_GetDevice() { fmt.Println(resp) } -func ExampleCognitoIdentityProvider_GetUser() { - sess, err := session.NewSession() +func ExampleCognitoIdentityProvider_GetGroup() { + sess := session.Must(session.NewSession()) + + svc := cognitoidentityprovider.New(sess) + + params := &cognitoidentityprovider.GetGroupInput{ + GroupName: aws.String("GroupNameType"), // Required + UserPoolId: aws.String("UserPoolIdType"), // Required + } + resp, err := svc.GetGroup(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCognitoIdentityProvider_GetUser() { + sess := session.Must(session.NewSession()) + svc := cognitoidentityprovider.New(sess) params := &cognitoidentityprovider.GetUserInput{ @@ -1133,11 +1146,7 @@ func ExampleCognitoIdentityProvider_GetUser() { } func ExampleCognitoIdentityProvider_GetUserAttributeVerificationCode() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1159,11 +1168,7 @@ func ExampleCognitoIdentityProvider_GetUserAttributeVerificationCode() { } func ExampleCognitoIdentityProvider_GlobalSignOut() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1184,11 +1189,7 @@ func ExampleCognitoIdentityProvider_GlobalSignOut() { } func ExampleCognitoIdentityProvider_InitiateAuth() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1218,11 +1219,7 @@ func ExampleCognitoIdentityProvider_InitiateAuth() { } func ExampleCognitoIdentityProvider_ListDevices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1244,13 +1241,32 @@ func ExampleCognitoIdentityProvider_ListDevices() { fmt.Println(resp) } -func ExampleCognitoIdentityProvider_ListUserImportJobs() { - sess, err := session.NewSession() +func ExampleCognitoIdentityProvider_ListGroups() { + sess := session.Must(session.NewSession()) + + svc := cognitoidentityprovider.New(sess) + + params := &cognitoidentityprovider.ListGroupsInput{ + UserPoolId: aws.String("UserPoolIdType"), // Required + Limit: aws.Int64(1), + NextToken: aws.String("PaginationKey"), + } + resp, err := svc.ListGroups(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCognitoIdentityProvider_ListUserImportJobs() { + sess := session.Must(session.NewSession()) + svc := cognitoidentityprovider.New(sess) params := &cognitoidentityprovider.ListUserImportJobsInput{ @@ -1272,11 +1288,7 @@ func ExampleCognitoIdentityProvider_ListUserImportJobs() { } func ExampleCognitoIdentityProvider_ListUserPoolClients() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1299,11 +1311,7 @@ func ExampleCognitoIdentityProvider_ListUserPoolClients() { } func ExampleCognitoIdentityProvider_ListUserPools() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1325,11 +1333,7 @@ func ExampleCognitoIdentityProvider_ListUserPools() { } func ExampleCognitoIdentityProvider_ListUsers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1356,13 +1360,33 @@ func ExampleCognitoIdentityProvider_ListUsers() { fmt.Println(resp) } -func ExampleCognitoIdentityProvider_ResendConfirmationCode() { - sess, err := session.NewSession() +func ExampleCognitoIdentityProvider_ListUsersInGroup() { + sess := session.Must(session.NewSession()) + + svc := cognitoidentityprovider.New(sess) + + params := &cognitoidentityprovider.ListUsersInGroupInput{ + GroupName: aws.String("GroupNameType"), // Required + UserPoolId: aws.String("UserPoolIdType"), // Required + Limit: aws.Int64(1), + NextToken: aws.String("PaginationKey"), + } + resp, err := svc.ListUsersInGroup(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCognitoIdentityProvider_ResendConfirmationCode() { + sess := session.Must(session.NewSession()) + svc := cognitoidentityprovider.New(sess) params := &cognitoidentityprovider.ResendConfirmationCodeInput{ @@ -1384,11 +1408,7 @@ func ExampleCognitoIdentityProvider_ResendConfirmationCode() { } func ExampleCognitoIdentityProvider_RespondToAuthChallenge() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1415,11 +1435,7 @@ func ExampleCognitoIdentityProvider_RespondToAuthChallenge() { } func ExampleCognitoIdentityProvider_SetUserSettings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1447,11 +1463,7 @@ func ExampleCognitoIdentityProvider_SetUserSettings() { } func ExampleCognitoIdentityProvider_SignUp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1489,11 +1501,7 @@ func ExampleCognitoIdentityProvider_SignUp() { } func ExampleCognitoIdentityProvider_StartUserImportJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1515,11 +1523,7 @@ func ExampleCognitoIdentityProvider_StartUserImportJob() { } func ExampleCognitoIdentityProvider_StopUserImportJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1541,11 +1545,7 @@ func ExampleCognitoIdentityProvider_StopUserImportJob() { } func ExampleCognitoIdentityProvider_UpdateDeviceStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1567,13 +1567,34 @@ func ExampleCognitoIdentityProvider_UpdateDeviceStatus() { fmt.Println(resp) } -func ExampleCognitoIdentityProvider_UpdateUserAttributes() { - sess, err := session.NewSession() +func ExampleCognitoIdentityProvider_UpdateGroup() { + sess := session.Must(session.NewSession()) + + svc := cognitoidentityprovider.New(sess) + + params := &cognitoidentityprovider.UpdateGroupInput{ + GroupName: aws.String("GroupNameType"), // Required + UserPoolId: aws.String("UserPoolIdType"), // Required + Description: aws.String("DescriptionType"), + Precedence: aws.Int64(1), + RoleArn: aws.String("ArnType"), + } + resp, err := svc.UpdateGroup(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCognitoIdentityProvider_UpdateUserAttributes() { + sess := session.Must(session.NewSession()) + svc := cognitoidentityprovider.New(sess) params := &cognitoidentityprovider.UpdateUserAttributesInput{ @@ -1600,11 +1621,7 @@ func ExampleCognitoIdentityProvider_UpdateUserAttributes() { } func ExampleCognitoIdentityProvider_UpdateUserPool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1655,10 +1672,14 @@ func ExampleCognitoIdentityProvider_UpdateUserPool() { }, SmsAuthenticationMessage: aws.String("SmsVerificationMessageType"), SmsConfiguration: &cognitoidentityprovider.SmsConfigurationType{ + SnsCallerArn: aws.String("ArnType"), // Required ExternalId: aws.String("StringType"), - SnsCallerArn: aws.String("ArnType"), }, SmsVerificationMessage: aws.String("SmsVerificationMessageType"), + UserPoolTags: map[string]*string{ + "Key": aws.String("StringType"), // Required + // More values... + }, } resp, err := svc.UpdateUserPool(params) @@ -1674,11 +1695,7 @@ func ExampleCognitoIdentityProvider_UpdateUserPool() { } func ExampleCognitoIdentityProvider_UpdateUserPoolClient() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) @@ -1714,11 +1731,7 @@ func ExampleCognitoIdentityProvider_UpdateUserPoolClient() { } func ExampleCognitoIdentityProvider_VerifyUserAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitoidentityprovider.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/service.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/service.go index 910f4eb8c..d1b80b57a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/service.go @@ -19,8 +19,9 @@ import ( // Your User Pools. // // For more information, see the Amazon Cognito Documentation. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18 type CognitoIdentityProvider struct { *client.Client } @@ -31,8 +32,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "cognito-idp" +// Service information constants +const ( + ServiceName = "cognito-idp" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the CognitoIdentityProvider client with a session. // If additional configuration is needed for the client instance use the optional @@ -45,17 +49,18 @@ const ServiceName = "cognito-idp" // // Create a CognitoIdentityProvider client with additional configuration // svc := cognitoidentityprovider.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CognitoIdentityProvider { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CognitoIdentityProvider { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CognitoIdentityProvider { svc := &CognitoIdentityProvider{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2016-04-18", diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/api.go b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/api.go index 4c926b86c..3336fc9bf 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/api.go @@ -39,6 +39,7 @@ const opBulkPublish = "BulkPublish" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/BulkPublish func (c *CognitoSync) BulkPublishRequest(input *BulkPublishInput) (req *request.Request, output *BulkPublishOutput) { op := &request.Operation{ Name: opBulkPublish, @@ -50,9 +51,8 @@ func (c *CognitoSync) BulkPublishRequest(input *BulkPublishInput) (req *request. input = &BulkPublishInput{} } - req = c.newRequest(op, input, output) output = &BulkPublishOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -63,8 +63,8 @@ func (c *CognitoSync) BulkPublishRequest(input *BulkPublishInput) (req *request. // per 24 hours. Bulk publish is an asynchronous request, customers can see // the status of the request via the GetBulkPublishDetails operation. // -// This API can only be called with developer credentials. You cannot call -// this API with the temporary user credentials provided by Cognito Identity. +// This API can only be called with developer credentials. You cannot call this +// API with the temporary user credentials provided by Cognito Identity. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -74,26 +74,27 @@ func (c *CognitoSync) BulkPublishRequest(input *BulkPublishInput) (req *request. // API operation BulkPublish for usage and error information. // // Returned Error Codes: -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown when a request parameter does not comply with the associated constraints. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown if the resource doesn't exist. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Indicates an internal service error. // -// * DuplicateRequestException +// * ErrCodeDuplicateRequestException "DuplicateRequestException" // An exception thrown when there is an IN_PROGRESS bulk publish operation for // the given identity pool. // -// * AlreadyStreamedException +// * ErrCodeAlreadyStreamedException "AlreadyStreamedException" // An exception thrown when a bulk publish operation is requested less than // 24 hours after a previous bulk publish operation completed successfully. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/BulkPublish func (c *CognitoSync) BulkPublish(input *BulkPublishInput) (*BulkPublishOutput, error) { req, out := c.BulkPublishRequest(input) err := req.Send() @@ -126,6 +127,7 @@ const opDeleteDataset = "DeleteDataset" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/DeleteDataset func (c *CognitoSync) DeleteDatasetRequest(input *DeleteDatasetInput) (req *request.Request, output *DeleteDatasetOutput) { op := &request.Operation{ Name: opDeleteDataset, @@ -137,9 +139,8 @@ func (c *CognitoSync) DeleteDatasetRequest(input *DeleteDatasetInput) (req *requ input = &DeleteDatasetInput{} } - req = c.newRequest(op, input, output) output = &DeleteDatasetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -161,25 +162,26 @@ func (c *CognitoSync) DeleteDatasetRequest(input *DeleteDatasetInput) (req *requ // API operation DeleteDataset for usage and error information. // // Returned Error Codes: -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown when a request parameter does not comply with the associated constraints. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown if the resource doesn't exist. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Indicates an internal service error. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown if the request is throttled. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // Thrown if an update can't be applied because the resource was changed by // another call and this would result in a conflict. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/DeleteDataset func (c *CognitoSync) DeleteDataset(input *DeleteDatasetInput) (*DeleteDatasetOutput, error) { req, out := c.DeleteDatasetRequest(input) err := req.Send() @@ -212,6 +214,7 @@ const opDescribeDataset = "DescribeDataset" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/DescribeDataset func (c *CognitoSync) DescribeDatasetRequest(input *DescribeDatasetInput) (req *request.Request, output *DescribeDatasetOutput) { op := &request.Operation{ Name: opDescribeDataset, @@ -223,9 +226,8 @@ func (c *CognitoSync) DescribeDatasetRequest(input *DescribeDatasetInput) (req * input = &DescribeDatasetInput{} } - req = c.newRequest(op, input, output) output = &DescribeDatasetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -247,21 +249,22 @@ func (c *CognitoSync) DescribeDatasetRequest(input *DescribeDatasetInput) (req * // API operation DescribeDataset for usage and error information. // // Returned Error Codes: -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown when a request parameter does not comply with the associated constraints. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown if the resource doesn't exist. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Indicates an internal service error. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown if the request is throttled. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/DescribeDataset func (c *CognitoSync) DescribeDataset(input *DescribeDatasetInput) (*DescribeDatasetOutput, error) { req, out := c.DescribeDatasetRequest(input) err := req.Send() @@ -294,6 +297,7 @@ const opDescribeIdentityPoolUsage = "DescribeIdentityPoolUsage" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/DescribeIdentityPoolUsage func (c *CognitoSync) DescribeIdentityPoolUsageRequest(input *DescribeIdentityPoolUsageInput) (req *request.Request, output *DescribeIdentityPoolUsageOutput) { op := &request.Operation{ Name: opDescribeIdentityPoolUsage, @@ -305,9 +309,8 @@ func (c *CognitoSync) DescribeIdentityPoolUsageRequest(input *DescribeIdentityPo input = &DescribeIdentityPoolUsageInput{} } - req = c.newRequest(op, input, output) output = &DescribeIdentityPoolUsageOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -316,8 +319,8 @@ func (c *CognitoSync) DescribeIdentityPoolUsageRequest(input *DescribeIdentityPo // Gets usage details (for example, data storage) about a particular identity // pool. // -// This API can only be called with developer credentials. You cannot call -// this API with the temporary user credentials provided by Cognito Identity. +// This API can only be called with developer credentials. You cannot call this +// API with the temporary user credentials provided by Cognito Identity. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -327,21 +330,22 @@ func (c *CognitoSync) DescribeIdentityPoolUsageRequest(input *DescribeIdentityPo // API operation DescribeIdentityPoolUsage for usage and error information. // // Returned Error Codes: -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown when a request parameter does not comply with the associated constraints. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown if the resource doesn't exist. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Indicates an internal service error. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown if the request is throttled. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/DescribeIdentityPoolUsage func (c *CognitoSync) DescribeIdentityPoolUsage(input *DescribeIdentityPoolUsageInput) (*DescribeIdentityPoolUsageOutput, error) { req, out := c.DescribeIdentityPoolUsageRequest(input) err := req.Send() @@ -374,6 +378,7 @@ const opDescribeIdentityUsage = "DescribeIdentityUsage" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/DescribeIdentityUsage func (c *CognitoSync) DescribeIdentityUsageRequest(input *DescribeIdentityUsageInput) (req *request.Request, output *DescribeIdentityUsageOutput) { op := &request.Operation{ Name: opDescribeIdentityUsage, @@ -385,9 +390,8 @@ func (c *CognitoSync) DescribeIdentityUsageRequest(input *DescribeIdentityUsageI input = &DescribeIdentityUsageInput{} } - req = c.newRequest(op, input, output) output = &DescribeIdentityUsageOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -407,21 +411,22 @@ func (c *CognitoSync) DescribeIdentityUsageRequest(input *DescribeIdentityUsageI // API operation DescribeIdentityUsage for usage and error information. // // Returned Error Codes: -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown when a request parameter does not comply with the associated constraints. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown if the resource doesn't exist. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Indicates an internal service error. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown if the request is throttled. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/DescribeIdentityUsage func (c *CognitoSync) DescribeIdentityUsage(input *DescribeIdentityUsageInput) (*DescribeIdentityUsageOutput, error) { req, out := c.DescribeIdentityUsageRequest(input) err := req.Send() @@ -454,6 +459,7 @@ const opGetBulkPublishDetails = "GetBulkPublishDetails" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/GetBulkPublishDetails func (c *CognitoSync) GetBulkPublishDetailsRequest(input *GetBulkPublishDetailsInput) (req *request.Request, output *GetBulkPublishDetailsOutput) { op := &request.Operation{ Name: opGetBulkPublishDetails, @@ -465,9 +471,8 @@ func (c *CognitoSync) GetBulkPublishDetailsRequest(input *GetBulkPublishDetailsI input = &GetBulkPublishDetailsInput{} } - req = c.newRequest(op, input, output) output = &GetBulkPublishDetailsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -475,8 +480,8 @@ func (c *CognitoSync) GetBulkPublishDetailsRequest(input *GetBulkPublishDetailsI // // Get the status of the last BulkPublish operation for an identity pool. // -// This API can only be called with developer credentials. You cannot call -// this API with the temporary user credentials provided by Cognito Identity. +// This API can only be called with developer credentials. You cannot call this +// API with the temporary user credentials provided by Cognito Identity. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -486,18 +491,19 @@ func (c *CognitoSync) GetBulkPublishDetailsRequest(input *GetBulkPublishDetailsI // API operation GetBulkPublishDetails for usage and error information. // // Returned Error Codes: -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown when a request parameter does not comply with the associated constraints. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown if the resource doesn't exist. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Indicates an internal service error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/GetBulkPublishDetails func (c *CognitoSync) GetBulkPublishDetails(input *GetBulkPublishDetailsInput) (*GetBulkPublishDetailsOutput, error) { req, out := c.GetBulkPublishDetailsRequest(input) err := req.Send() @@ -530,6 +536,7 @@ const opGetCognitoEvents = "GetCognitoEvents" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/GetCognitoEvents func (c *CognitoSync) GetCognitoEventsRequest(input *GetCognitoEventsInput) (req *request.Request, output *GetCognitoEventsOutput) { op := &request.Operation{ Name: opGetCognitoEvents, @@ -541,9 +548,8 @@ func (c *CognitoSync) GetCognitoEventsRequest(input *GetCognitoEventsInput) (req input = &GetCognitoEventsInput{} } - req = c.newRequest(op, input, output) output = &GetCognitoEventsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -552,8 +558,8 @@ func (c *CognitoSync) GetCognitoEventsRequest(input *GetCognitoEventsInput) (req // Gets the events and the corresponding Lambda functions associated with an // identity pool. // -// This API can only be called with developer credentials. You cannot call -// this API with the temporary user credentials provided by Cognito Identity. +// This API can only be called with developer credentials. You cannot call this +// API with the temporary user credentials provided by Cognito Identity. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -563,21 +569,22 @@ func (c *CognitoSync) GetCognitoEventsRequest(input *GetCognitoEventsInput) (req // API operation GetCognitoEvents for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown when a request parameter does not comply with the associated constraints. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown if the resource doesn't exist. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Indicates an internal service error. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown if the request is throttled. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/GetCognitoEvents func (c *CognitoSync) GetCognitoEvents(input *GetCognitoEventsInput) (*GetCognitoEventsOutput, error) { req, out := c.GetCognitoEventsRequest(input) err := req.Send() @@ -610,6 +617,7 @@ const opGetIdentityPoolConfiguration = "GetIdentityPoolConfiguration" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/GetIdentityPoolConfiguration func (c *CognitoSync) GetIdentityPoolConfigurationRequest(input *GetIdentityPoolConfigurationInput) (req *request.Request, output *GetIdentityPoolConfigurationOutput) { op := &request.Operation{ Name: opGetIdentityPoolConfiguration, @@ -621,9 +629,8 @@ func (c *CognitoSync) GetIdentityPoolConfigurationRequest(input *GetIdentityPool input = &GetIdentityPoolConfigurationInput{} } - req = c.newRequest(op, input, output) output = &GetIdentityPoolConfigurationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -631,8 +638,8 @@ func (c *CognitoSync) GetIdentityPoolConfigurationRequest(input *GetIdentityPool // // Gets the configuration settings of an identity pool. // -// This API can only be called with developer credentials. You cannot call -// this API with the temporary user credentials provided by Cognito Identity. +// This API can only be called with developer credentials. You cannot call this +// API with the temporary user credentials provided by Cognito Identity. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -642,21 +649,22 @@ func (c *CognitoSync) GetIdentityPoolConfigurationRequest(input *GetIdentityPool // API operation GetIdentityPoolConfiguration for usage and error information. // // Returned Error Codes: -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown when a request parameter does not comply with the associated constraints. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown if the resource doesn't exist. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Indicates an internal service error. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown if the request is throttled. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/GetIdentityPoolConfiguration func (c *CognitoSync) GetIdentityPoolConfiguration(input *GetIdentityPoolConfigurationInput) (*GetIdentityPoolConfigurationOutput, error) { req, out := c.GetIdentityPoolConfigurationRequest(input) err := req.Send() @@ -689,6 +697,7 @@ const opListDatasets = "ListDatasets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/ListDatasets func (c *CognitoSync) ListDatasetsRequest(input *ListDatasetsInput) (req *request.Request, output *ListDatasetsOutput) { op := &request.Operation{ Name: opListDatasets, @@ -700,9 +709,8 @@ func (c *CognitoSync) ListDatasetsRequest(input *ListDatasetsInput) (req *reques input = &ListDatasetsInput{} } - req = c.newRequest(op, input, output) output = &ListDatasetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -724,18 +732,19 @@ func (c *CognitoSync) ListDatasetsRequest(input *ListDatasetsInput) (req *reques // API operation ListDatasets for usage and error information. // // Returned Error Codes: -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown when a request parameter does not comply with the associated constraints. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Indicates an internal service error. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown if the request is throttled. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/ListDatasets func (c *CognitoSync) ListDatasets(input *ListDatasetsInput) (*ListDatasetsOutput, error) { req, out := c.ListDatasetsRequest(input) err := req.Send() @@ -768,6 +777,7 @@ const opListIdentityPoolUsage = "ListIdentityPoolUsage" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/ListIdentityPoolUsage func (c *CognitoSync) ListIdentityPoolUsageRequest(input *ListIdentityPoolUsageInput) (req *request.Request, output *ListIdentityPoolUsageOutput) { op := &request.Operation{ Name: opListIdentityPoolUsage, @@ -779,9 +789,8 @@ func (c *CognitoSync) ListIdentityPoolUsageRequest(input *ListIdentityPoolUsageI input = &ListIdentityPoolUsageInput{} } - req = c.newRequest(op, input, output) output = &ListIdentityPoolUsageOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -801,18 +810,19 @@ func (c *CognitoSync) ListIdentityPoolUsageRequest(input *ListIdentityPoolUsageI // API operation ListIdentityPoolUsage for usage and error information. // // Returned Error Codes: -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown when a request parameter does not comply with the associated constraints. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Indicates an internal service error. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown if the request is throttled. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/ListIdentityPoolUsage func (c *CognitoSync) ListIdentityPoolUsage(input *ListIdentityPoolUsageInput) (*ListIdentityPoolUsageOutput, error) { req, out := c.ListIdentityPoolUsageRequest(input) err := req.Send() @@ -845,6 +855,7 @@ const opListRecords = "ListRecords" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/ListRecords func (c *CognitoSync) ListRecordsRequest(input *ListRecordsInput) (req *request.Request, output *ListRecordsOutput) { op := &request.Operation{ Name: opListRecords, @@ -856,9 +867,8 @@ func (c *CognitoSync) ListRecordsRequest(input *ListRecordsInput) (req *request. input = &ListRecordsInput{} } - req = c.newRequest(op, input, output) output = &ListRecordsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -881,18 +891,19 @@ func (c *CognitoSync) ListRecordsRequest(input *ListRecordsInput) (req *request. // API operation ListRecords for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown when a request parameter does not comply with the associated constraints. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown if the request is throttled. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Indicates an internal service error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/ListRecords func (c *CognitoSync) ListRecords(input *ListRecordsInput) (*ListRecordsOutput, error) { req, out := c.ListRecordsRequest(input) err := req.Send() @@ -925,6 +936,7 @@ const opRegisterDevice = "RegisterDevice" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/RegisterDevice func (c *CognitoSync) RegisterDeviceRequest(input *RegisterDeviceInput) (req *request.Request, output *RegisterDeviceOutput) { op := &request.Operation{ Name: opRegisterDevice, @@ -936,9 +948,8 @@ func (c *CognitoSync) RegisterDeviceRequest(input *RegisterDeviceInput) (req *re input = &RegisterDeviceInput{} } - req = c.newRequest(op, input, output) output = &RegisterDeviceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -957,24 +968,24 @@ func (c *CognitoSync) RegisterDeviceRequest(input *RegisterDeviceInput) (req *re // API operation RegisterDevice for usage and error information. // // Returned Error Codes: -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown when a request parameter does not comply with the associated constraints. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown if the resource doesn't exist. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Indicates an internal service error. // -// * InvalidConfigurationException - +// * ErrCodeInvalidConfigurationException "InvalidConfigurationException" // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown if the request is throttled. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/RegisterDevice func (c *CognitoSync) RegisterDevice(input *RegisterDeviceInput) (*RegisterDeviceOutput, error) { req, out := c.RegisterDeviceRequest(input) err := req.Send() @@ -1007,6 +1018,7 @@ const opSetCognitoEvents = "SetCognitoEvents" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/SetCognitoEvents func (c *CognitoSync) SetCognitoEventsRequest(input *SetCognitoEventsInput) (req *request.Request, output *SetCognitoEventsOutput) { op := &request.Operation{ Name: opSetCognitoEvents, @@ -1018,11 +1030,10 @@ func (c *CognitoSync) SetCognitoEventsRequest(input *SetCognitoEventsInput) (req input = &SetCognitoEventsInput{} } + output = &SetCognitoEventsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetCognitoEventsOutput{} - req.Data = output return } @@ -1033,8 +1044,8 @@ func (c *CognitoSync) SetCognitoEventsRequest(input *SetCognitoEventsInput) (req // pairs are not updated. To remove a key value pair, pass a empty value for // the particular key. // -// This API can only be called with developer credentials. You cannot call -// this API with the temporary user credentials provided by Cognito Identity. +// This API can only be called with developer credentials. You cannot call this +// API with the temporary user credentials provided by Cognito Identity. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1044,21 +1055,22 @@ func (c *CognitoSync) SetCognitoEventsRequest(input *SetCognitoEventsInput) (req // API operation SetCognitoEvents for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown when a request parameter does not comply with the associated constraints. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown if the resource doesn't exist. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Indicates an internal service error. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown if the request is throttled. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/SetCognitoEvents func (c *CognitoSync) SetCognitoEvents(input *SetCognitoEventsInput) (*SetCognitoEventsOutput, error) { req, out := c.SetCognitoEventsRequest(input) err := req.Send() @@ -1091,6 +1103,7 @@ const opSetIdentityPoolConfiguration = "SetIdentityPoolConfiguration" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/SetIdentityPoolConfiguration func (c *CognitoSync) SetIdentityPoolConfigurationRequest(input *SetIdentityPoolConfigurationInput) (req *request.Request, output *SetIdentityPoolConfigurationOutput) { op := &request.Operation{ Name: opSetIdentityPoolConfiguration, @@ -1102,9 +1115,8 @@ func (c *CognitoSync) SetIdentityPoolConfigurationRequest(input *SetIdentityPool input = &SetIdentityPoolConfigurationInput{} } - req = c.newRequest(op, input, output) output = &SetIdentityPoolConfigurationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1112,8 +1124,8 @@ func (c *CognitoSync) SetIdentityPoolConfigurationRequest(input *SetIdentityPool // // Sets the necessary configuration for push sync. // -// This API can only be called with developer credentials. You cannot call -// this API with the temporary user credentials provided by Cognito Identity. +// This API can only be called with developer credentials. You cannot call this +// API with the temporary user credentials provided by Cognito Identity. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1123,24 +1135,25 @@ func (c *CognitoSync) SetIdentityPoolConfigurationRequest(input *SetIdentityPool // API operation SetIdentityPoolConfiguration for usage and error information. // // Returned Error Codes: -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown when a request parameter does not comply with the associated constraints. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown if the resource doesn't exist. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Indicates an internal service error. // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown if the request is throttled. // -// * ConcurrentModificationException +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" // Thrown if there are parallel requests to modify a resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/SetIdentityPoolConfiguration func (c *CognitoSync) SetIdentityPoolConfiguration(input *SetIdentityPoolConfigurationInput) (*SetIdentityPoolConfigurationOutput, error) { req, out := c.SetIdentityPoolConfigurationRequest(input) err := req.Send() @@ -1173,6 +1186,7 @@ const opSubscribeToDataset = "SubscribeToDataset" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/SubscribeToDataset func (c *CognitoSync) SubscribeToDatasetRequest(input *SubscribeToDatasetInput) (req *request.Request, output *SubscribeToDatasetOutput) { op := &request.Operation{ Name: opSubscribeToDataset, @@ -1184,9 +1198,8 @@ func (c *CognitoSync) SubscribeToDatasetRequest(input *SubscribeToDatasetInput) input = &SubscribeToDatasetInput{} } - req = c.newRequest(op, input, output) output = &SubscribeToDatasetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1206,24 +1219,24 @@ func (c *CognitoSync) SubscribeToDatasetRequest(input *SubscribeToDatasetInput) // API operation SubscribeToDataset for usage and error information. // // Returned Error Codes: -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown when a request parameter does not comply with the associated constraints. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown if the resource doesn't exist. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Indicates an internal service error. // -// * InvalidConfigurationException - +// * ErrCodeInvalidConfigurationException "InvalidConfigurationException" // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown if the request is throttled. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/SubscribeToDataset func (c *CognitoSync) SubscribeToDataset(input *SubscribeToDatasetInput) (*SubscribeToDatasetOutput, error) { req, out := c.SubscribeToDatasetRequest(input) err := req.Send() @@ -1256,6 +1269,7 @@ const opUnsubscribeFromDataset = "UnsubscribeFromDataset" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/UnsubscribeFromDataset func (c *CognitoSync) UnsubscribeFromDatasetRequest(input *UnsubscribeFromDatasetInput) (req *request.Request, output *UnsubscribeFromDatasetOutput) { op := &request.Operation{ Name: opUnsubscribeFromDataset, @@ -1267,9 +1281,8 @@ func (c *CognitoSync) UnsubscribeFromDatasetRequest(input *UnsubscribeFromDatase input = &UnsubscribeFromDatasetInput{} } - req = c.newRequest(op, input, output) output = &UnsubscribeFromDatasetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1289,24 +1302,24 @@ func (c *CognitoSync) UnsubscribeFromDatasetRequest(input *UnsubscribeFromDatase // API operation UnsubscribeFromDataset for usage and error information. // // Returned Error Codes: -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown when a request parameter does not comply with the associated constraints. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown if the resource doesn't exist. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Indicates an internal service error. // -// * InvalidConfigurationException - +// * ErrCodeInvalidConfigurationException "InvalidConfigurationException" // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown if the request is throttled. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/UnsubscribeFromDataset func (c *CognitoSync) UnsubscribeFromDataset(input *UnsubscribeFromDatasetInput) (*UnsubscribeFromDatasetOutput, error) { req, out := c.UnsubscribeFromDatasetRequest(input) err := req.Send() @@ -1339,6 +1352,7 @@ const opUpdateRecords = "UpdateRecords" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/UpdateRecords func (c *CognitoSync) UpdateRecordsRequest(input *UpdateRecordsInput) (req *request.Request, output *UpdateRecordsOutput) { op := &request.Operation{ Name: opUpdateRecords, @@ -1350,9 +1364,8 @@ func (c *CognitoSync) UpdateRecordsRequest(input *UpdateRecordsInput) (req *requ input = &UpdateRecordsInput{} } - req = c.newRequest(op, input, output) output = &UpdateRecordsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1383,34 +1396,35 @@ func (c *CognitoSync) UpdateRecordsRequest(input *UpdateRecordsInput) (req *requ // API operation UpdateRecords for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // Thrown when a request parameter does not comply with the associated constraints. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // Thrown when the limit on the number of objects or operations has been exceeded. // -// * NotAuthorizedException +// * ErrCodeNotAuthorizedException "NotAuthorizedException" // Thrown when a user is not authorized to access the requested resource. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Thrown if the resource doesn't exist. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // Thrown if an update can't be applied because the resource was changed by // another call and this would result in a conflict. // -// * InvalidLambdaFunctionOutputException +// * ErrCodeInvalidLambdaFunctionOutputException "InvalidLambdaFunctionOutputException" // The AWS Lambda function returned invalid output or an exception. // -// * LambdaThrottledException +// * ErrCodeLambdaThrottledException "LambdaThrottledException" // AWS Lambda throttled your account, please contact AWS Support // -// * TooManyRequestsException +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // Thrown if the request is throttled. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // Indicates an internal service error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/UpdateRecords func (c *CognitoSync) UpdateRecords(input *UpdateRecordsInput) (*UpdateRecordsOutput, error) { req, out := c.UpdateRecordsRequest(input) err := req.Send() @@ -1418,6 +1432,7 @@ func (c *CognitoSync) UpdateRecords(input *UpdateRecordsInput) (*UpdateRecordsOu } // The input for the BulkPublish operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/BulkPublishRequest type BulkPublishInput struct { _ struct{} `type:"structure"` @@ -1454,7 +1469,14 @@ func (s *BulkPublishInput) Validate() error { return nil } +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *BulkPublishInput) SetIdentityPoolId(v string) *BulkPublishInput { + s.IdentityPoolId = &v + return s +} + // The output for the BulkPublish operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/BulkPublishResponse type BulkPublishOutput struct { _ struct{} `type:"structure"` @@ -1473,7 +1495,14 @@ func (s BulkPublishOutput) GoString() string { return s.String() } +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *BulkPublishOutput) SetIdentityPoolId(v string) *BulkPublishOutput { + s.IdentityPoolId = &v + return s +} + // Configuration options for configure Cognito streams. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/CognitoStreams type CognitoStreams struct { _ struct{} `type:"structure"` @@ -1520,11 +1549,30 @@ func (s *CognitoStreams) Validate() error { return nil } +// SetRoleArn sets the RoleArn field's value. +func (s *CognitoStreams) SetRoleArn(v string) *CognitoStreams { + s.RoleArn = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *CognitoStreams) SetStreamName(v string) *CognitoStreams { + s.StreamName = &v + return s +} + +// SetStreamingStatus sets the StreamingStatus field's value. +func (s *CognitoStreams) SetStreamingStatus(v string) *CognitoStreams { + s.StreamingStatus = &v + return s +} + // A collection of data for an identity pool. An identity pool can have multiple // datasets. A dataset is per identity and can be general or associated with // a particular entity in an application (like a saved game). Datasets are automatically // created if they don't exist. Data is synced by dataset, and a dataset can // hold up to 1MB of key-value pairs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/Dataset type Dataset struct { _ struct{} `type:"structure"` @@ -1562,7 +1610,50 @@ func (s Dataset) GoString() string { return s.String() } +// SetCreationDate sets the CreationDate field's value. +func (s *Dataset) SetCreationDate(v time.Time) *Dataset { + s.CreationDate = &v + return s +} + +// SetDataStorage sets the DataStorage field's value. +func (s *Dataset) SetDataStorage(v int64) *Dataset { + s.DataStorage = &v + return s +} + +// SetDatasetName sets the DatasetName field's value. +func (s *Dataset) SetDatasetName(v string) *Dataset { + s.DatasetName = &v + return s +} + +// SetIdentityId sets the IdentityId field's value. +func (s *Dataset) SetIdentityId(v string) *Dataset { + s.IdentityId = &v + return s +} + +// SetLastModifiedBy sets the LastModifiedBy field's value. +func (s *Dataset) SetLastModifiedBy(v string) *Dataset { + s.LastModifiedBy = &v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *Dataset) SetLastModifiedDate(v time.Time) *Dataset { + s.LastModifiedDate = &v + return s +} + +// SetNumRecords sets the NumRecords field's value. +func (s *Dataset) SetNumRecords(v int64) *Dataset { + s.NumRecords = &v + return s +} + // A request to delete the specific dataset. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/DeleteDatasetRequest type DeleteDatasetInput struct { _ struct{} `type:"structure"` @@ -1623,7 +1714,26 @@ func (s *DeleteDatasetInput) Validate() error { return nil } +// SetDatasetName sets the DatasetName field's value. +func (s *DeleteDatasetInput) SetDatasetName(v string) *DeleteDatasetInput { + s.DatasetName = &v + return s +} + +// SetIdentityId sets the IdentityId field's value. +func (s *DeleteDatasetInput) SetIdentityId(v string) *DeleteDatasetInput { + s.IdentityId = &v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *DeleteDatasetInput) SetIdentityPoolId(v string) *DeleteDatasetInput { + s.IdentityPoolId = &v + return s +} + // Response to a successful DeleteDataset request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/DeleteDatasetResponse type DeleteDatasetOutput struct { _ struct{} `type:"structure"` @@ -1645,8 +1755,15 @@ func (s DeleteDatasetOutput) GoString() string { return s.String() } +// SetDataset sets the Dataset field's value. +func (s *DeleteDatasetOutput) SetDataset(v *Dataset) *DeleteDatasetOutput { + s.Dataset = v + return s +} + // A request for meta data about a dataset (creation date, number of records, // size) by owner and dataset name. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/DescribeDatasetRequest type DescribeDatasetInput struct { _ struct{} `type:"structure"` @@ -1707,7 +1824,26 @@ func (s *DescribeDatasetInput) Validate() error { return nil } +// SetDatasetName sets the DatasetName field's value. +func (s *DescribeDatasetInput) SetDatasetName(v string) *DescribeDatasetInput { + s.DatasetName = &v + return s +} + +// SetIdentityId sets the IdentityId field's value. +func (s *DescribeDatasetInput) SetIdentityId(v string) *DescribeDatasetInput { + s.IdentityId = &v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *DescribeDatasetInput) SetIdentityPoolId(v string) *DescribeDatasetInput { + s.IdentityPoolId = &v + return s +} + // Response to a successful DescribeDataset request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/DescribeDatasetResponse type DescribeDatasetOutput struct { _ struct{} `type:"structure"` @@ -1729,7 +1865,14 @@ func (s DescribeDatasetOutput) GoString() string { return s.String() } +// SetDataset sets the Dataset field's value. +func (s *DescribeDatasetOutput) SetDataset(v *Dataset) *DescribeDatasetOutput { + s.Dataset = v + return s +} + // A request for usage information about the identity pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/DescribeIdentityPoolUsageRequest type DescribeIdentityPoolUsageInput struct { _ struct{} `type:"structure"` @@ -1766,7 +1909,14 @@ func (s *DescribeIdentityPoolUsageInput) Validate() error { return nil } +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *DescribeIdentityPoolUsageInput) SetIdentityPoolId(v string) *DescribeIdentityPoolUsageInput { + s.IdentityPoolId = &v + return s +} + // Response to a successful DescribeIdentityPoolUsage request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/DescribeIdentityPoolUsageResponse type DescribeIdentityPoolUsageOutput struct { _ struct{} `type:"structure"` @@ -1784,7 +1934,14 @@ func (s DescribeIdentityPoolUsageOutput) GoString() string { return s.String() } +// SetIdentityPoolUsage sets the IdentityPoolUsage field's value. +func (s *DescribeIdentityPoolUsageOutput) SetIdentityPoolUsage(v *IdentityPoolUsage) *DescribeIdentityPoolUsageOutput { + s.IdentityPoolUsage = v + return s +} + // A request for information about the usage of an identity pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/DescribeIdentityUsageRequest type DescribeIdentityUsageInput struct { _ struct{} `type:"structure"` @@ -1833,7 +1990,20 @@ func (s *DescribeIdentityUsageInput) Validate() error { return nil } +// SetIdentityId sets the IdentityId field's value. +func (s *DescribeIdentityUsageInput) SetIdentityId(v string) *DescribeIdentityUsageInput { + s.IdentityId = &v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *DescribeIdentityUsageInput) SetIdentityPoolId(v string) *DescribeIdentityUsageInput { + s.IdentityPoolId = &v + return s +} + // The response to a successful DescribeIdentityUsage request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/DescribeIdentityUsageResponse type DescribeIdentityUsageOutput struct { _ struct{} `type:"structure"` @@ -1851,7 +2021,14 @@ func (s DescribeIdentityUsageOutput) GoString() string { return s.String() } +// SetIdentityUsage sets the IdentityUsage field's value. +func (s *DescribeIdentityUsageOutput) SetIdentityUsage(v *IdentityUsage) *DescribeIdentityUsageOutput { + s.IdentityUsage = v + return s +} + // The input for the GetBulkPublishDetails operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/GetBulkPublishDetailsRequest type GetBulkPublishDetailsInput struct { _ struct{} `type:"structure"` @@ -1888,7 +2065,14 @@ func (s *GetBulkPublishDetailsInput) Validate() error { return nil } +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *GetBulkPublishDetailsInput) SetIdentityPoolId(v string) *GetBulkPublishDetailsInput { + s.IdentityPoolId = &v + return s +} + // The output for the GetBulkPublishDetails operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/GetBulkPublishDetailsResponse type GetBulkPublishDetailsOutput struct { _ struct{} `type:"structure"` @@ -1930,7 +2114,38 @@ func (s GetBulkPublishDetailsOutput) GoString() string { return s.String() } +// SetBulkPublishCompleteTime sets the BulkPublishCompleteTime field's value. +func (s *GetBulkPublishDetailsOutput) SetBulkPublishCompleteTime(v time.Time) *GetBulkPublishDetailsOutput { + s.BulkPublishCompleteTime = &v + return s +} + +// SetBulkPublishStartTime sets the BulkPublishStartTime field's value. +func (s *GetBulkPublishDetailsOutput) SetBulkPublishStartTime(v time.Time) *GetBulkPublishDetailsOutput { + s.BulkPublishStartTime = &v + return s +} + +// SetBulkPublishStatus sets the BulkPublishStatus field's value. +func (s *GetBulkPublishDetailsOutput) SetBulkPublishStatus(v string) *GetBulkPublishDetailsOutput { + s.BulkPublishStatus = &v + return s +} + +// SetFailureMessage sets the FailureMessage field's value. +func (s *GetBulkPublishDetailsOutput) SetFailureMessage(v string) *GetBulkPublishDetailsOutput { + s.FailureMessage = &v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *GetBulkPublishDetailsOutput) SetIdentityPoolId(v string) *GetBulkPublishDetailsOutput { + s.IdentityPoolId = &v + return s +} + // A request for a list of the configured Cognito Events +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/GetCognitoEventsRequest type GetCognitoEventsInput struct { _ struct{} `type:"structure"` @@ -1966,7 +2181,14 @@ func (s *GetCognitoEventsInput) Validate() error { return nil } +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *GetCognitoEventsInput) SetIdentityPoolId(v string) *GetCognitoEventsInput { + s.IdentityPoolId = &v + return s +} + // The response from the GetCognitoEvents request +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/GetCognitoEventsResponse type GetCognitoEventsOutput struct { _ struct{} `type:"structure"` @@ -1984,7 +2206,14 @@ func (s GetCognitoEventsOutput) GoString() string { return s.String() } +// SetEvents sets the Events field's value. +func (s *GetCognitoEventsOutput) SetEvents(v map[string]*string) *GetCognitoEventsOutput { + s.Events = v + return s +} + // The input for the GetIdentityPoolConfiguration operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/GetIdentityPoolConfigurationRequest type GetIdentityPoolConfigurationInput struct { _ struct{} `type:"structure"` @@ -2022,7 +2251,14 @@ func (s *GetIdentityPoolConfigurationInput) Validate() error { return nil } +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *GetIdentityPoolConfigurationInput) SetIdentityPoolId(v string) *GetIdentityPoolConfigurationInput { + s.IdentityPoolId = &v + return s +} + // The output for the GetIdentityPoolConfiguration operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/GetIdentityPoolConfigurationResponse type GetIdentityPoolConfigurationOutput struct { _ struct{} `type:"structure"` @@ -2047,7 +2283,26 @@ func (s GetIdentityPoolConfigurationOutput) GoString() string { return s.String() } +// SetCognitoStreams sets the CognitoStreams field's value. +func (s *GetIdentityPoolConfigurationOutput) SetCognitoStreams(v *CognitoStreams) *GetIdentityPoolConfigurationOutput { + s.CognitoStreams = v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *GetIdentityPoolConfigurationOutput) SetIdentityPoolId(v string) *GetIdentityPoolConfigurationOutput { + s.IdentityPoolId = &v + return s +} + +// SetPushSync sets the PushSync field's value. +func (s *GetIdentityPoolConfigurationOutput) SetPushSync(v *PushSync) *GetIdentityPoolConfigurationOutput { + s.PushSync = v + return s +} + // Usage information for the identity pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/IdentityPoolUsage type IdentityPoolUsage struct { _ struct{} `type:"structure"` @@ -2075,7 +2330,32 @@ func (s IdentityPoolUsage) GoString() string { return s.String() } +// SetDataStorage sets the DataStorage field's value. +func (s *IdentityPoolUsage) SetDataStorage(v int64) *IdentityPoolUsage { + s.DataStorage = &v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *IdentityPoolUsage) SetIdentityPoolId(v string) *IdentityPoolUsage { + s.IdentityPoolId = &v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *IdentityPoolUsage) SetLastModifiedDate(v time.Time) *IdentityPoolUsage { + s.LastModifiedDate = &v + return s +} + +// SetSyncSessionsCount sets the SyncSessionsCount field's value. +func (s *IdentityPoolUsage) SetSyncSessionsCount(v int64) *IdentityPoolUsage { + s.SyncSessionsCount = &v + return s +} + // Usage information for the identity. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/IdentityUsage type IdentityUsage struct { _ struct{} `type:"structure"` @@ -2107,7 +2387,38 @@ func (s IdentityUsage) GoString() string { return s.String() } +// SetDataStorage sets the DataStorage field's value. +func (s *IdentityUsage) SetDataStorage(v int64) *IdentityUsage { + s.DataStorage = &v + return s +} + +// SetDatasetCount sets the DatasetCount field's value. +func (s *IdentityUsage) SetDatasetCount(v int64) *IdentityUsage { + s.DatasetCount = &v + return s +} + +// SetIdentityId sets the IdentityId field's value. +func (s *IdentityUsage) SetIdentityId(v string) *IdentityUsage { + s.IdentityId = &v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *IdentityUsage) SetIdentityPoolId(v string) *IdentityUsage { + s.IdentityPoolId = &v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *IdentityUsage) SetLastModifiedDate(v time.Time) *IdentityUsage { + s.LastModifiedDate = &v + return s +} + // Request for a list of datasets for an identity. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/ListDatasetsRequest type ListDatasetsInput struct { _ struct{} `type:"structure"` @@ -2162,7 +2473,32 @@ func (s *ListDatasetsInput) Validate() error { return nil } +// SetIdentityId sets the IdentityId field's value. +func (s *ListDatasetsInput) SetIdentityId(v string) *ListDatasetsInput { + s.IdentityId = &v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *ListDatasetsInput) SetIdentityPoolId(v string) *ListDatasetsInput { + s.IdentityPoolId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListDatasetsInput) SetMaxResults(v int64) *ListDatasetsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDatasetsInput) SetNextToken(v string) *ListDatasetsInput { + s.NextToken = &v + return s +} + // Returned for a successful ListDatasets request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/ListDatasetsResponse type ListDatasetsOutput struct { _ struct{} `type:"structure"` @@ -2186,7 +2522,26 @@ func (s ListDatasetsOutput) GoString() string { return s.String() } +// SetCount sets the Count field's value. +func (s *ListDatasetsOutput) SetCount(v int64) *ListDatasetsOutput { + s.Count = &v + return s +} + +// SetDatasets sets the Datasets field's value. +func (s *ListDatasetsOutput) SetDatasets(v []*Dataset) *ListDatasetsOutput { + s.Datasets = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDatasetsOutput) SetNextToken(v string) *ListDatasetsOutput { + s.NextToken = &v + return s +} + // A request for usage information on an identity pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/ListIdentityPoolUsageRequest type ListIdentityPoolUsageInput struct { _ struct{} `type:"structure"` @@ -2207,7 +2562,20 @@ func (s ListIdentityPoolUsageInput) GoString() string { return s.String() } +// SetMaxResults sets the MaxResults field's value. +func (s *ListIdentityPoolUsageInput) SetMaxResults(v int64) *ListIdentityPoolUsageInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListIdentityPoolUsageInput) SetNextToken(v string) *ListIdentityPoolUsageInput { + s.NextToken = &v + return s +} + // Returned for a successful ListIdentityPoolUsage request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/ListIdentityPoolUsageResponse type ListIdentityPoolUsageOutput struct { _ struct{} `type:"structure"` @@ -2234,7 +2602,32 @@ func (s ListIdentityPoolUsageOutput) GoString() string { return s.String() } +// SetCount sets the Count field's value. +func (s *ListIdentityPoolUsageOutput) SetCount(v int64) *ListIdentityPoolUsageOutput { + s.Count = &v + return s +} + +// SetIdentityPoolUsages sets the IdentityPoolUsages field's value. +func (s *ListIdentityPoolUsageOutput) SetIdentityPoolUsages(v []*IdentityPoolUsage) *ListIdentityPoolUsageOutput { + s.IdentityPoolUsages = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListIdentityPoolUsageOutput) SetMaxResults(v int64) *ListIdentityPoolUsageOutput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListIdentityPoolUsageOutput) SetNextToken(v string) *ListIdentityPoolUsageOutput { + s.NextToken = &v + return s +} + // A request for a list of records. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/ListRecordsRequest type ListRecordsInput struct { _ struct{} `type:"structure"` @@ -2307,7 +2700,50 @@ func (s *ListRecordsInput) Validate() error { return nil } +// SetDatasetName sets the DatasetName field's value. +func (s *ListRecordsInput) SetDatasetName(v string) *ListRecordsInput { + s.DatasetName = &v + return s +} + +// SetIdentityId sets the IdentityId field's value. +func (s *ListRecordsInput) SetIdentityId(v string) *ListRecordsInput { + s.IdentityId = &v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *ListRecordsInput) SetIdentityPoolId(v string) *ListRecordsInput { + s.IdentityPoolId = &v + return s +} + +// SetLastSyncCount sets the LastSyncCount field's value. +func (s *ListRecordsInput) SetLastSyncCount(v int64) *ListRecordsInput { + s.LastSyncCount = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListRecordsInput) SetMaxResults(v int64) *ListRecordsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListRecordsInput) SetNextToken(v string) *ListRecordsInput { + s.NextToken = &v + return s +} + +// SetSyncSessionToken sets the SyncSessionToken field's value. +func (s *ListRecordsInput) SetSyncSessionToken(v string) *ListRecordsInput { + s.SyncSessionToken = &v + return s +} + // Returned for a successful ListRecordsRequest. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/ListRecordsResponse type ListRecordsOutput struct { _ struct{} `type:"structure"` @@ -2349,7 +2785,62 @@ func (s ListRecordsOutput) GoString() string { return s.String() } +// SetCount sets the Count field's value. +func (s *ListRecordsOutput) SetCount(v int64) *ListRecordsOutput { + s.Count = &v + return s +} + +// SetDatasetDeletedAfterRequestedSyncCount sets the DatasetDeletedAfterRequestedSyncCount field's value. +func (s *ListRecordsOutput) SetDatasetDeletedAfterRequestedSyncCount(v bool) *ListRecordsOutput { + s.DatasetDeletedAfterRequestedSyncCount = &v + return s +} + +// SetDatasetExists sets the DatasetExists field's value. +func (s *ListRecordsOutput) SetDatasetExists(v bool) *ListRecordsOutput { + s.DatasetExists = &v + return s +} + +// SetDatasetSyncCount sets the DatasetSyncCount field's value. +func (s *ListRecordsOutput) SetDatasetSyncCount(v int64) *ListRecordsOutput { + s.DatasetSyncCount = &v + return s +} + +// SetLastModifiedBy sets the LastModifiedBy field's value. +func (s *ListRecordsOutput) SetLastModifiedBy(v string) *ListRecordsOutput { + s.LastModifiedBy = &v + return s +} + +// SetMergedDatasetNames sets the MergedDatasetNames field's value. +func (s *ListRecordsOutput) SetMergedDatasetNames(v []*string) *ListRecordsOutput { + s.MergedDatasetNames = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListRecordsOutput) SetNextToken(v string) *ListRecordsOutput { + s.NextToken = &v + return s +} + +// SetRecords sets the Records field's value. +func (s *ListRecordsOutput) SetRecords(v []*Record) *ListRecordsOutput { + s.Records = v + return s +} + +// SetSyncSessionToken sets the SyncSessionToken field's value. +func (s *ListRecordsOutput) SetSyncSessionToken(v string) *ListRecordsOutput { + s.SyncSessionToken = &v + return s +} + // Configuration options to be applied to the identity pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/PushSync type PushSync struct { _ struct{} `type:"structure"` @@ -2383,7 +2874,20 @@ func (s *PushSync) Validate() error { return nil } +// SetApplicationArns sets the ApplicationArns field's value. +func (s *PushSync) SetApplicationArns(v []*string) *PushSync { + s.ApplicationArns = v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *PushSync) SetRoleArn(v string) *PushSync { + s.RoleArn = &v + return s +} + // The basic data structure of a dataset. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/Record type Record struct { _ struct{} `type:"structure"` @@ -2416,7 +2920,44 @@ func (s Record) GoString() string { return s.String() } +// SetDeviceLastModifiedDate sets the DeviceLastModifiedDate field's value. +func (s *Record) SetDeviceLastModifiedDate(v time.Time) *Record { + s.DeviceLastModifiedDate = &v + return s +} + +// SetKey sets the Key field's value. +func (s *Record) SetKey(v string) *Record { + s.Key = &v + return s +} + +// SetLastModifiedBy sets the LastModifiedBy field's value. +func (s *Record) SetLastModifiedBy(v string) *Record { + s.LastModifiedBy = &v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *Record) SetLastModifiedDate(v time.Time) *Record { + s.LastModifiedDate = &v + return s +} + +// SetSyncCount sets the SyncCount field's value. +func (s *Record) SetSyncCount(v int64) *Record { + s.SyncCount = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Record) SetValue(v string) *Record { + s.Value = &v + return s +} + // An update operation for a record. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/RecordPatch type RecordPatch struct { _ struct{} `type:"structure"` @@ -2474,7 +3015,38 @@ func (s *RecordPatch) Validate() error { return nil } +// SetDeviceLastModifiedDate sets the DeviceLastModifiedDate field's value. +func (s *RecordPatch) SetDeviceLastModifiedDate(v time.Time) *RecordPatch { + s.DeviceLastModifiedDate = &v + return s +} + +// SetKey sets the Key field's value. +func (s *RecordPatch) SetKey(v string) *RecordPatch { + s.Key = &v + return s +} + +// SetOp sets the Op field's value. +func (s *RecordPatch) SetOp(v string) *RecordPatch { + s.Op = &v + return s +} + +// SetSyncCount sets the SyncCount field's value. +func (s *RecordPatch) SetSyncCount(v int64) *RecordPatch { + s.SyncCount = &v + return s +} + +// SetValue sets the Value field's value. +func (s *RecordPatch) SetValue(v string) *RecordPatch { + s.Value = &v + return s +} + // A request to RegisterDevice. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/RegisterDeviceRequest type RegisterDeviceInput struct { _ struct{} `type:"structure"` @@ -2539,7 +3111,32 @@ func (s *RegisterDeviceInput) Validate() error { return nil } +// SetIdentityId sets the IdentityId field's value. +func (s *RegisterDeviceInput) SetIdentityId(v string) *RegisterDeviceInput { + s.IdentityId = &v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *RegisterDeviceInput) SetIdentityPoolId(v string) *RegisterDeviceInput { + s.IdentityPoolId = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *RegisterDeviceInput) SetPlatform(v string) *RegisterDeviceInput { + s.Platform = &v + return s +} + +// SetToken sets the Token field's value. +func (s *RegisterDeviceInput) SetToken(v string) *RegisterDeviceInput { + s.Token = &v + return s +} + // Response to a RegisterDevice request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/RegisterDeviceResponse type RegisterDeviceOutput struct { _ struct{} `type:"structure"` @@ -2557,9 +3154,14 @@ func (s RegisterDeviceOutput) GoString() string { return s.String() } +// SetDeviceId sets the DeviceId field's value. +func (s *RegisterDeviceOutput) SetDeviceId(v string) *RegisterDeviceOutput { + s.DeviceId = &v + return s +} + // A request to configure Cognito Events" -// -// " +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/SetCognitoEventsRequest type SetCognitoEventsInput struct { _ struct{} `type:"structure"` @@ -2603,6 +3205,19 @@ func (s *SetCognitoEventsInput) Validate() error { return nil } +// SetEvents sets the Events field's value. +func (s *SetCognitoEventsInput) SetEvents(v map[string]*string) *SetCognitoEventsInput { + s.Events = v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *SetCognitoEventsInput) SetIdentityPoolId(v string) *SetCognitoEventsInput { + s.IdentityPoolId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/SetCognitoEventsOutput type SetCognitoEventsOutput struct { _ struct{} `type:"structure"` } @@ -2618,6 +3233,7 @@ func (s SetCognitoEventsOutput) GoString() string { } // The input for the SetIdentityPoolConfiguration operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/SetIdentityPoolConfigurationRequest type SetIdentityPoolConfigurationInput struct { _ struct{} `type:"structure"` @@ -2670,7 +3286,26 @@ func (s *SetIdentityPoolConfigurationInput) Validate() error { return nil } +// SetCognitoStreams sets the CognitoStreams field's value. +func (s *SetIdentityPoolConfigurationInput) SetCognitoStreams(v *CognitoStreams) *SetIdentityPoolConfigurationInput { + s.CognitoStreams = v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *SetIdentityPoolConfigurationInput) SetIdentityPoolId(v string) *SetIdentityPoolConfigurationInput { + s.IdentityPoolId = &v + return s +} + +// SetPushSync sets the PushSync field's value. +func (s *SetIdentityPoolConfigurationInput) SetPushSync(v *PushSync) *SetIdentityPoolConfigurationInput { + s.PushSync = v + return s +} + // The output for the SetIdentityPoolConfiguration operation +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/SetIdentityPoolConfigurationResponse type SetIdentityPoolConfigurationOutput struct { _ struct{} `type:"structure"` @@ -2695,7 +3330,26 @@ func (s SetIdentityPoolConfigurationOutput) GoString() string { return s.String() } +// SetCognitoStreams sets the CognitoStreams field's value. +func (s *SetIdentityPoolConfigurationOutput) SetCognitoStreams(v *CognitoStreams) *SetIdentityPoolConfigurationOutput { + s.CognitoStreams = v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *SetIdentityPoolConfigurationOutput) SetIdentityPoolId(v string) *SetIdentityPoolConfigurationOutput { + s.IdentityPoolId = &v + return s +} + +// SetPushSync sets the PushSync field's value. +func (s *SetIdentityPoolConfigurationOutput) SetPushSync(v *PushSync) *SetIdentityPoolConfigurationOutput { + s.PushSync = v + return s +} + // A request to SubscribeToDatasetRequest. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/SubscribeToDatasetRequest type SubscribeToDatasetInput struct { _ struct{} `type:"structure"` @@ -2765,7 +3419,32 @@ func (s *SubscribeToDatasetInput) Validate() error { return nil } +// SetDatasetName sets the DatasetName field's value. +func (s *SubscribeToDatasetInput) SetDatasetName(v string) *SubscribeToDatasetInput { + s.DatasetName = &v + return s +} + +// SetDeviceId sets the DeviceId field's value. +func (s *SubscribeToDatasetInput) SetDeviceId(v string) *SubscribeToDatasetInput { + s.DeviceId = &v + return s +} + +// SetIdentityId sets the IdentityId field's value. +func (s *SubscribeToDatasetInput) SetIdentityId(v string) *SubscribeToDatasetInput { + s.IdentityId = &v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *SubscribeToDatasetInput) SetIdentityPoolId(v string) *SubscribeToDatasetInput { + s.IdentityPoolId = &v + return s +} + // Response to a SubscribeToDataset request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/SubscribeToDatasetResponse type SubscribeToDatasetOutput struct { _ struct{} `type:"structure"` } @@ -2781,6 +3460,7 @@ func (s SubscribeToDatasetOutput) GoString() string { } // A request to UnsubscribeFromDataset. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/UnsubscribeFromDatasetRequest type UnsubscribeFromDatasetInput struct { _ struct{} `type:"structure"` @@ -2850,7 +3530,32 @@ func (s *UnsubscribeFromDatasetInput) Validate() error { return nil } +// SetDatasetName sets the DatasetName field's value. +func (s *UnsubscribeFromDatasetInput) SetDatasetName(v string) *UnsubscribeFromDatasetInput { + s.DatasetName = &v + return s +} + +// SetDeviceId sets the DeviceId field's value. +func (s *UnsubscribeFromDatasetInput) SetDeviceId(v string) *UnsubscribeFromDatasetInput { + s.DeviceId = &v + return s +} + +// SetIdentityId sets the IdentityId field's value. +func (s *UnsubscribeFromDatasetInput) SetIdentityId(v string) *UnsubscribeFromDatasetInput { + s.IdentityId = &v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *UnsubscribeFromDatasetInput) SetIdentityPoolId(v string) *UnsubscribeFromDatasetInput { + s.IdentityPoolId = &v + return s +} + // Response to an UnsubscribeFromDataset request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/UnsubscribeFromDatasetResponse type UnsubscribeFromDatasetOutput struct { _ struct{} `type:"structure"` } @@ -2867,6 +3572,7 @@ func (s UnsubscribeFromDatasetOutput) GoString() string { // A request to post updates to records or add and delete records for a dataset // and user. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/UpdateRecordsRequest type UpdateRecordsInput struct { _ struct{} `type:"structure"` @@ -2959,7 +3665,50 @@ func (s *UpdateRecordsInput) Validate() error { return nil } +// SetClientContext sets the ClientContext field's value. +func (s *UpdateRecordsInput) SetClientContext(v string) *UpdateRecordsInput { + s.ClientContext = &v + return s +} + +// SetDatasetName sets the DatasetName field's value. +func (s *UpdateRecordsInput) SetDatasetName(v string) *UpdateRecordsInput { + s.DatasetName = &v + return s +} + +// SetDeviceId sets the DeviceId field's value. +func (s *UpdateRecordsInput) SetDeviceId(v string) *UpdateRecordsInput { + s.DeviceId = &v + return s +} + +// SetIdentityId sets the IdentityId field's value. +func (s *UpdateRecordsInput) SetIdentityId(v string) *UpdateRecordsInput { + s.IdentityId = &v + return s +} + +// SetIdentityPoolId sets the IdentityPoolId field's value. +func (s *UpdateRecordsInput) SetIdentityPoolId(v string) *UpdateRecordsInput { + s.IdentityPoolId = &v + return s +} + +// SetRecordPatches sets the RecordPatches field's value. +func (s *UpdateRecordsInput) SetRecordPatches(v []*RecordPatch) *UpdateRecordsInput { + s.RecordPatches = v + return s +} + +// SetSyncSessionToken sets the SyncSessionToken field's value. +func (s *UpdateRecordsInput) SetSyncSessionToken(v string) *UpdateRecordsInput { + s.SyncSessionToken = &v + return s +} + // Returned for a successful UpdateRecordsRequest. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/UpdateRecordsResponse type UpdateRecordsOutput struct { _ struct{} `type:"structure"` @@ -2977,6 +3726,12 @@ func (s UpdateRecordsOutput) GoString() string { return s.String() } +// SetRecords sets the Records field's value. +func (s *UpdateRecordsOutput) SetRecords(v []*Record) *UpdateRecordsOutput { + s.Records = v + return s +} + const ( // BulkPublishStatusNotStarted is a BulkPublishStatus enum value BulkPublishStatusNotStarted = "NOT_STARTED" diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/cognitosynciface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/cognitosynciface/interface.go index 5bd83e9b9..a65279ad2 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/cognitosynciface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/cognitosynciface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockCognitoSyncClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/errors.go b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/errors.go new file mode 100644 index 000000000..03add6540 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/errors.go @@ -0,0 +1,85 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cognitosync + +const ( + + // ErrCodeAlreadyStreamedException for service response error code + // "AlreadyStreamedException". + // + // An exception thrown when a bulk publish operation is requested less than + // 24 hours after a previous bulk publish operation completed successfully. + ErrCodeAlreadyStreamedException = "AlreadyStreamedException" + + // ErrCodeConcurrentModificationException for service response error code + // "ConcurrentModificationException". + // + // Thrown if there are parallel requests to modify a resource. + ErrCodeConcurrentModificationException = "ConcurrentModificationException" + + // ErrCodeDuplicateRequestException for service response error code + // "DuplicateRequestException". + // + // An exception thrown when there is an IN_PROGRESS bulk publish operation for + // the given identity pool. + ErrCodeDuplicateRequestException = "DuplicateRequestException" + + // ErrCodeInternalErrorException for service response error code + // "InternalErrorException". + // + // Indicates an internal service error. + ErrCodeInternalErrorException = "InternalErrorException" + + // ErrCodeInvalidConfigurationException for service response error code + // "InvalidConfigurationException". + ErrCodeInvalidConfigurationException = "InvalidConfigurationException" + + // ErrCodeInvalidLambdaFunctionOutputException for service response error code + // "InvalidLambdaFunctionOutputException". + // + // The AWS Lambda function returned invalid output or an exception. + ErrCodeInvalidLambdaFunctionOutputException = "InvalidLambdaFunctionOutputException" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameterException". + // + // Thrown when a request parameter does not comply with the associated constraints. + ErrCodeInvalidParameterException = "InvalidParameterException" + + // ErrCodeLambdaThrottledException for service response error code + // "LambdaThrottledException". + // + // AWS Lambda throttled your account, please contact AWS Support + ErrCodeLambdaThrottledException = "LambdaThrottledException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // Thrown when the limit on the number of objects or operations has been exceeded. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeNotAuthorizedException for service response error code + // "NotAuthorizedException". + // + // Thrown when a user is not authorized to access the requested resource. + ErrCodeNotAuthorizedException = "NotAuthorizedException" + + // ErrCodeResourceConflictException for service response error code + // "ResourceConflictException". + // + // Thrown if an update can't be applied because the resource was changed by + // another call and this would result in a conflict. + ErrCodeResourceConflictException = "ResourceConflictException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // Thrown if the resource doesn't exist. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeTooManyRequestsException for service response error code + // "TooManyRequestsException". + // + // Thrown if the request is throttled. + ErrCodeTooManyRequestsException = "TooManyRequestsException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/examples_test.go index 2aa1735ae..259684355 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCognitoSync_BulkPublish() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -41,11 +37,7 @@ func ExampleCognitoSync_BulkPublish() { } func ExampleCognitoSync_DeleteDataset() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -68,11 +60,7 @@ func ExampleCognitoSync_DeleteDataset() { } func ExampleCognitoSync_DescribeDataset() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -95,11 +83,7 @@ func ExampleCognitoSync_DescribeDataset() { } func ExampleCognitoSync_DescribeIdentityPoolUsage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -120,11 +104,7 @@ func ExampleCognitoSync_DescribeIdentityPoolUsage() { } func ExampleCognitoSync_DescribeIdentityUsage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -146,11 +126,7 @@ func ExampleCognitoSync_DescribeIdentityUsage() { } func ExampleCognitoSync_GetBulkPublishDetails() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -171,11 +147,7 @@ func ExampleCognitoSync_GetBulkPublishDetails() { } func ExampleCognitoSync_GetCognitoEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -196,11 +168,7 @@ func ExampleCognitoSync_GetCognitoEvents() { } func ExampleCognitoSync_GetIdentityPoolConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -221,11 +189,7 @@ func ExampleCognitoSync_GetIdentityPoolConfiguration() { } func ExampleCognitoSync_ListDatasets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -249,11 +213,7 @@ func ExampleCognitoSync_ListDatasets() { } func ExampleCognitoSync_ListIdentityPoolUsage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -275,11 +235,7 @@ func ExampleCognitoSync_ListIdentityPoolUsage() { } func ExampleCognitoSync_ListRecords() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -306,11 +262,7 @@ func ExampleCognitoSync_ListRecords() { } func ExampleCognitoSync_RegisterDevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -334,11 +286,7 @@ func ExampleCognitoSync_RegisterDevice() { } func ExampleCognitoSync_SetCognitoEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -363,11 +311,7 @@ func ExampleCognitoSync_SetCognitoEvents() { } func ExampleCognitoSync_SetIdentityPoolConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -400,11 +344,7 @@ func ExampleCognitoSync_SetIdentityPoolConfiguration() { } func ExampleCognitoSync_SubscribeToDataset() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -428,11 +368,7 @@ func ExampleCognitoSync_SubscribeToDataset() { } func ExampleCognitoSync_UnsubscribeFromDataset() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) @@ -456,11 +392,7 @@ func ExampleCognitoSync_UnsubscribeFromDataset() { } func ExampleCognitoSync_UpdateRecords() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := cognitosync.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/service.go b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/service.go index a7c0db013..21b16258b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/service.go @@ -29,8 +29,9 @@ import ( // probably want to make API calls via the AWS Mobile SDK. To learn more, see // the Developer Guide for Android (http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/cognito-sync.html) // and the Developer Guide for iOS (http://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-sync.html). -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30 type CognitoSync struct { *client.Client } @@ -41,8 +42,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "cognito-sync" +// Service information constants +const ( + ServiceName = "cognito-sync" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the CognitoSync client with a session. // If additional configuration is needed for the client instance use the optional @@ -55,20 +59,22 @@ const ServiceName = "cognito-sync" // // Create a CognitoSync client with additional configuration // svc := cognitosync.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *CognitoSync { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CognitoSync { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CognitoSync { svc := &CognitoSync{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-06-30", + JSONVersion: "1.1", }, handlers, ), diff --git a/vendor/github.com/aws/aws-sdk-go/service/configservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/configservice/api.go index 6dd9b104d..c5b4467ce 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/configservice/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/configservice/api.go @@ -39,6 +39,7 @@ const opDeleteConfigRule = "DeleteConfigRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteConfigRule func (c *ConfigService) DeleteConfigRuleRequest(input *DeleteConfigRuleInput) (req *request.Request, output *DeleteConfigRuleOutput) { op := &request.Operation{ Name: opDeleteConfigRule, @@ -50,11 +51,10 @@ func (c *ConfigService) DeleteConfigRuleRequest(input *DeleteConfigRuleInput) (r input = &DeleteConfigRuleInput{} } + output = &DeleteConfigRuleOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteConfigRuleOutput{} - req.Data = output return } @@ -76,14 +76,15 @@ func (c *ConfigService) DeleteConfigRuleRequest(input *DeleteConfigRuleInput) (r // API operation DeleteConfigRule for usage and error information. // // Returned Error Codes: -// * NoSuchConfigRuleException +// * ErrCodeNoSuchConfigRuleException "NoSuchConfigRuleException" // One or more AWS Config rules in the request are invalid. Verify that the // rule names are correct and try again. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The rule is currently being deleted or the rule is deleting your evaluation // results. Try your request again later. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteConfigRule func (c *ConfigService) DeleteConfigRule(input *DeleteConfigRuleInput) (*DeleteConfigRuleOutput, error) { req, out := c.DeleteConfigRuleRequest(input) err := req.Send() @@ -116,6 +117,7 @@ const opDeleteConfigurationRecorder = "DeleteConfigurationRecorder" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteConfigurationRecorder func (c *ConfigService) DeleteConfigurationRecorderRequest(input *DeleteConfigurationRecorderInput) (req *request.Request, output *DeleteConfigurationRecorderOutput) { op := &request.Operation{ Name: opDeleteConfigurationRecorder, @@ -127,11 +129,10 @@ func (c *ConfigService) DeleteConfigurationRecorderRequest(input *DeleteConfigur input = &DeleteConfigurationRecorderInput{} } + output = &DeleteConfigurationRecorderOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteConfigurationRecorderOutput{} - req.Data = output return } @@ -139,8 +140,8 @@ func (c *ConfigService) DeleteConfigurationRecorderRequest(input *DeleteConfigur // // Deletes the configuration recorder. // -// After the configuration recorder is deleted, AWS Config will not record -// resource configuration changes until you create a new configuration recorder. +// After the configuration recorder is deleted, AWS Config will not record resource +// configuration changes until you create a new configuration recorder. // // This action does not delete the configuration information that was previously // recorded. You will be able to access the previously recorded information @@ -156,9 +157,10 @@ func (c *ConfigService) DeleteConfigurationRecorderRequest(input *DeleteConfigur // API operation DeleteConfigurationRecorder for usage and error information. // // Returned Error Codes: -// * NoSuchConfigurationRecorderException +// * ErrCodeNoSuchConfigurationRecorderException "NoSuchConfigurationRecorderException" // You have specified a configuration recorder that does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteConfigurationRecorder func (c *ConfigService) DeleteConfigurationRecorder(input *DeleteConfigurationRecorderInput) (*DeleteConfigurationRecorderOutput, error) { req, out := c.DeleteConfigurationRecorderRequest(input) err := req.Send() @@ -191,6 +193,7 @@ const opDeleteDeliveryChannel = "DeleteDeliveryChannel" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteDeliveryChannel func (c *ConfigService) DeleteDeliveryChannelRequest(input *DeleteDeliveryChannelInput) (req *request.Request, output *DeleteDeliveryChannelOutput) { op := &request.Operation{ Name: opDeleteDeliveryChannel, @@ -202,11 +205,10 @@ func (c *ConfigService) DeleteDeliveryChannelRequest(input *DeleteDeliveryChanne input = &DeleteDeliveryChannelInput{} } + output = &DeleteDeliveryChannelOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteDeliveryChannelOutput{} - req.Data = output return } @@ -225,13 +227,14 @@ func (c *ConfigService) DeleteDeliveryChannelRequest(input *DeleteDeliveryChanne // API operation DeleteDeliveryChannel for usage and error information. // // Returned Error Codes: -// * NoSuchDeliveryChannelException +// * ErrCodeNoSuchDeliveryChannelException "NoSuchDeliveryChannelException" // You have specified a delivery channel that does not exist. // -// * LastDeliveryChannelDeleteFailedException +// * ErrCodeLastDeliveryChannelDeleteFailedException "LastDeliveryChannelDeleteFailedException" // You cannot delete the delivery channel you specified because the configuration // recorder is running. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteDeliveryChannel func (c *ConfigService) DeleteDeliveryChannel(input *DeleteDeliveryChannelInput) (*DeleteDeliveryChannelOutput, error) { req, out := c.DeleteDeliveryChannelRequest(input) err := req.Send() @@ -264,6 +267,7 @@ const opDeleteEvaluationResults = "DeleteEvaluationResults" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteEvaluationResults func (c *ConfigService) DeleteEvaluationResultsRequest(input *DeleteEvaluationResultsInput) (req *request.Request, output *DeleteEvaluationResultsOutput) { op := &request.Operation{ Name: opDeleteEvaluationResults, @@ -275,9 +279,8 @@ func (c *ConfigService) DeleteEvaluationResultsRequest(input *DeleteEvaluationRe input = &DeleteEvaluationResultsInput{} } - req = c.newRequest(op, input, output) output = &DeleteEvaluationResultsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -296,14 +299,15 @@ func (c *ConfigService) DeleteEvaluationResultsRequest(input *DeleteEvaluationRe // API operation DeleteEvaluationResults for usage and error information. // // Returned Error Codes: -// * NoSuchConfigRuleException +// * ErrCodeNoSuchConfigRuleException "NoSuchConfigRuleException" // One or more AWS Config rules in the request are invalid. Verify that the // rule names are correct and try again. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The rule is currently being deleted or the rule is deleting your evaluation // results. Try your request again later. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteEvaluationResults func (c *ConfigService) DeleteEvaluationResults(input *DeleteEvaluationResultsInput) (*DeleteEvaluationResultsOutput, error) { req, out := c.DeleteEvaluationResultsRequest(input) err := req.Send() @@ -336,6 +340,7 @@ const opDeliverConfigSnapshot = "DeliverConfigSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeliverConfigSnapshot func (c *ConfigService) DeliverConfigSnapshotRequest(input *DeliverConfigSnapshotInput) (req *request.Request, output *DeliverConfigSnapshotOutput) { op := &request.Operation{ Name: opDeliverConfigSnapshot, @@ -347,9 +352,8 @@ func (c *ConfigService) DeliverConfigSnapshotRequest(input *DeliverConfigSnapsho input = &DeliverConfigSnapshotInput{} } - req = c.newRequest(op, input, output) output = &DeliverConfigSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -359,11 +363,12 @@ func (c *ConfigService) DeliverConfigSnapshotRequest(input *DeliverConfigSnapsho // the specified delivery channel. After the delivery has started, AWS Config // sends following notifications using an Amazon SNS topic that you have specified. // -// Notification of starting the delivery. +// * Notification of starting the delivery. // -// Notification of delivery completed, if the delivery was successfully completed. +// * Notification of delivery completed, if the delivery was successfully +// completed. // -// Notification of delivery failure, if the delivery failed to complete. +// * Notification of delivery failure, if the delivery failed to complete. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -373,16 +378,17 @@ func (c *ConfigService) DeliverConfigSnapshotRequest(input *DeliverConfigSnapsho // API operation DeliverConfigSnapshot for usage and error information. // // Returned Error Codes: -// * NoSuchDeliveryChannelException +// * ErrCodeNoSuchDeliveryChannelException "NoSuchDeliveryChannelException" // You have specified a delivery channel that does not exist. // -// * NoAvailableConfigurationRecorderException +// * ErrCodeNoAvailableConfigurationRecorderException "NoAvailableConfigurationRecorderException" // There are no configuration recorders available to provide the role needed // to describe your resources. Create a configuration recorder. // -// * NoRunningConfigurationRecorderException +// * ErrCodeNoRunningConfigurationRecorderException "NoRunningConfigurationRecorderException" // There is no configuration recorder running. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeliverConfigSnapshot func (c *ConfigService) DeliverConfigSnapshot(input *DeliverConfigSnapshotInput) (*DeliverConfigSnapshotOutput, error) { req, out := c.DeliverConfigSnapshotRequest(input) err := req.Send() @@ -415,6 +421,7 @@ const opDescribeComplianceByConfigRule = "DescribeComplianceByConfigRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeComplianceByConfigRule func (c *ConfigService) DescribeComplianceByConfigRuleRequest(input *DescribeComplianceByConfigRuleInput) (req *request.Request, output *DescribeComplianceByConfigRuleOutput) { op := &request.Operation{ Name: opDescribeComplianceByConfigRule, @@ -426,9 +433,8 @@ func (c *ConfigService) DescribeComplianceByConfigRuleRequest(input *DescribeCom input = &DescribeComplianceByConfigRuleInput{} } - req = c.newRequest(op, input, output) output = &DescribeComplianceByConfigRuleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -444,19 +450,19 @@ func (c *ConfigService) DescribeComplianceByConfigRuleRequest(input *DescribeCom // If AWS Config has no current evaluation results for the rule, it returns // INSUFFICIENT_DATA. This result might indicate one of the following conditions: // -// AWS Config has never invoked an evaluation for the rule. To check whether -// it has, use the DescribeConfigRuleEvaluationStatus action to get the LastSuccessfulInvocationTime -// and LastFailedInvocationTime. +// * AWS Config has never invoked an evaluation for the rule. To check whether +// it has, use the DescribeConfigRuleEvaluationStatus action to get the LastSuccessfulInvocationTime +// and LastFailedInvocationTime. // -// The rule's AWS Lambda function is failing to send evaluation results to -// AWS Config. Verify that the role that you assigned to your configuration -// recorder includes the config:PutEvaluations permission. If the rule is a -// custom rule, verify that the AWS Lambda execution role includes the config:PutEvaluations -// permission. +// * The rule's AWS Lambda function is failing to send evaluation results +// to AWS Config. Verify that the role that you assigned to your configuration +// recorder includes the config:PutEvaluations permission. If the rule is +// a custom rule, verify that the AWS Lambda execution role includes the +// config:PutEvaluations permission. // -// The rule's AWS Lambda function has returned NOT_APPLICABLE for all evaluation -// results. This can occur if the resources were deleted or removed from the -// rule's scope. +// * The rule's AWS Lambda function has returned NOT_APPLICABLE for all evaluation +// results. This can occur if the resources were deleted or removed from +// the rule's scope. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -466,14 +472,19 @@ func (c *ConfigService) DescribeComplianceByConfigRuleRequest(input *DescribeCom // API operation DescribeComplianceByConfigRule for usage and error information. // // Returned Error Codes: -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * NoSuchConfigRuleException +// * ErrCodeNoSuchConfigRuleException "NoSuchConfigRuleException" // One or more AWS Config rules in the request are invalid. Verify that the // rule names are correct and try again. // +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The specified next token is invalid. Specify the NextToken string that was +// returned in the previous response to get the next page of results. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeComplianceByConfigRule func (c *ConfigService) DescribeComplianceByConfigRule(input *DescribeComplianceByConfigRuleInput) (*DescribeComplianceByConfigRuleOutput, error) { req, out := c.DescribeComplianceByConfigRuleRequest(input) err := req.Send() @@ -506,6 +517,7 @@ const opDescribeComplianceByResource = "DescribeComplianceByResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeComplianceByResource func (c *ConfigService) DescribeComplianceByResourceRequest(input *DescribeComplianceByResourceInput) (req *request.Request, output *DescribeComplianceByResourceOutput) { op := &request.Operation{ Name: opDescribeComplianceByResource, @@ -517,9 +529,8 @@ func (c *ConfigService) DescribeComplianceByResourceRequest(input *DescribeCompl input = &DescribeComplianceByResourceInput{} } - req = c.newRequest(op, input, output) output = &DescribeComplianceByResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -537,19 +548,19 @@ func (c *ConfigService) DescribeComplianceByResourceRequest(input *DescribeCompl // INSUFFICIENT_DATA. This result might indicate one of the following conditions // about the rules that evaluate the resource: // -// AWS Config has never invoked an evaluation for the rule. To check whether -// it has, use the DescribeConfigRuleEvaluationStatus action to get the LastSuccessfulInvocationTime -// and LastFailedInvocationTime. +// * AWS Config has never invoked an evaluation for the rule. To check whether +// it has, use the DescribeConfigRuleEvaluationStatus action to get the LastSuccessfulInvocationTime +// and LastFailedInvocationTime. // -// The rule's AWS Lambda function is failing to send evaluation results to -// AWS Config. Verify that the role that you assigned to your configuration -// recorder includes the config:PutEvaluations permission. If the rule is a -// custom rule, verify that the AWS Lambda execution role includes the config:PutEvaluations -// permission. +// * The rule's AWS Lambda function is failing to send evaluation results +// to AWS Config. Verify that the role that you assigned to your configuration +// recorder includes the config:PutEvaluations permission. If the rule is +// a custom rule, verify that the AWS Lambda execution role includes the +// config:PutEvaluations permission. // -// The rule's AWS Lambda function has returned NOT_APPLICABLE for all evaluation -// results. This can occur if the resources were deleted or removed from the -// rule's scope. +// * The rule's AWS Lambda function has returned NOT_APPLICABLE for all evaluation +// results. This can occur if the resources were deleted or removed from +// the rule's scope. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -559,14 +570,15 @@ func (c *ConfigService) DescribeComplianceByResourceRequest(input *DescribeCompl // API operation DescribeComplianceByResource for usage and error information. // // Returned Error Codes: -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * InvalidNextTokenException -// The specified next token is invalid. Specify the nextToken string that was +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The specified next token is invalid. Specify the NextToken string that was // returned in the previous response to get the next page of results. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeComplianceByResource func (c *ConfigService) DescribeComplianceByResource(input *DescribeComplianceByResourceInput) (*DescribeComplianceByResourceOutput, error) { req, out := c.DescribeComplianceByResourceRequest(input) err := req.Send() @@ -599,6 +611,7 @@ const opDescribeConfigRuleEvaluationStatus = "DescribeConfigRuleEvaluationStatus // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigRuleEvaluationStatus func (c *ConfigService) DescribeConfigRuleEvaluationStatusRequest(input *DescribeConfigRuleEvaluationStatusInput) (req *request.Request, output *DescribeConfigRuleEvaluationStatusOutput) { op := &request.Operation{ Name: opDescribeConfigRuleEvaluationStatus, @@ -610,9 +623,8 @@ func (c *ConfigService) DescribeConfigRuleEvaluationStatusRequest(input *Describ input = &DescribeConfigRuleEvaluationStatusInput{} } - req = c.newRequest(op, input, output) output = &DescribeConfigRuleEvaluationStatusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -631,10 +643,19 @@ func (c *ConfigService) DescribeConfigRuleEvaluationStatusRequest(input *Describ // API operation DescribeConfigRuleEvaluationStatus for usage and error information. // // Returned Error Codes: -// * NoSuchConfigRuleException +// * ErrCodeNoSuchConfigRuleException "NoSuchConfigRuleException" // One or more AWS Config rules in the request are invalid. Verify that the // rule names are correct and try again. // +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more of the specified parameters are invalid. Verify that your parameters +// are valid and try again. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The specified next token is invalid. Specify the NextToken string that was +// returned in the previous response to get the next page of results. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigRuleEvaluationStatus func (c *ConfigService) DescribeConfigRuleEvaluationStatus(input *DescribeConfigRuleEvaluationStatusInput) (*DescribeConfigRuleEvaluationStatusOutput, error) { req, out := c.DescribeConfigRuleEvaluationStatusRequest(input) err := req.Send() @@ -667,6 +688,7 @@ const opDescribeConfigRules = "DescribeConfigRules" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigRules func (c *ConfigService) DescribeConfigRulesRequest(input *DescribeConfigRulesInput) (req *request.Request, output *DescribeConfigRulesOutput) { op := &request.Operation{ Name: opDescribeConfigRules, @@ -678,9 +700,8 @@ func (c *ConfigService) DescribeConfigRulesRequest(input *DescribeConfigRulesInp input = &DescribeConfigRulesInput{} } - req = c.newRequest(op, input, output) output = &DescribeConfigRulesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -696,10 +717,15 @@ func (c *ConfigService) DescribeConfigRulesRequest(input *DescribeConfigRulesInp // API operation DescribeConfigRules for usage and error information. // // Returned Error Codes: -// * NoSuchConfigRuleException +// * ErrCodeNoSuchConfigRuleException "NoSuchConfigRuleException" // One or more AWS Config rules in the request are invalid. Verify that the // rule names are correct and try again. // +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The specified next token is invalid. Specify the NextToken string that was +// returned in the previous response to get the next page of results. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigRules func (c *ConfigService) DescribeConfigRules(input *DescribeConfigRulesInput) (*DescribeConfigRulesOutput, error) { req, out := c.DescribeConfigRulesRequest(input) err := req.Send() @@ -732,6 +758,7 @@ const opDescribeConfigurationRecorderStatus = "DescribeConfigurationRecorderStat // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigurationRecorderStatus func (c *ConfigService) DescribeConfigurationRecorderStatusRequest(input *DescribeConfigurationRecorderStatusInput) (req *request.Request, output *DescribeConfigurationRecorderStatusOutput) { op := &request.Operation{ Name: opDescribeConfigurationRecorderStatus, @@ -743,9 +770,8 @@ func (c *ConfigService) DescribeConfigurationRecorderStatusRequest(input *Descri input = &DescribeConfigurationRecorderStatusInput{} } - req = c.newRequest(op, input, output) output = &DescribeConfigurationRecorderStatusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -755,7 +781,7 @@ func (c *ConfigService) DescribeConfigurationRecorderStatusRequest(input *Descri // configuration recorder is not specified, this action returns the status of // all configuration recorder associated with the account. // -// Currently, you can specify only one configuration recorder per region in +// Currently, you can specify only one configuration recorder per region in // your account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -766,9 +792,10 @@ func (c *ConfigService) DescribeConfigurationRecorderStatusRequest(input *Descri // API operation DescribeConfigurationRecorderStatus for usage and error information. // // Returned Error Codes: -// * NoSuchConfigurationRecorderException +// * ErrCodeNoSuchConfigurationRecorderException "NoSuchConfigurationRecorderException" // You have specified a configuration recorder that does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigurationRecorderStatus func (c *ConfigService) DescribeConfigurationRecorderStatus(input *DescribeConfigurationRecorderStatusInput) (*DescribeConfigurationRecorderStatusOutput, error) { req, out := c.DescribeConfigurationRecorderStatusRequest(input) err := req.Send() @@ -801,6 +828,7 @@ const opDescribeConfigurationRecorders = "DescribeConfigurationRecorders" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigurationRecorders func (c *ConfigService) DescribeConfigurationRecordersRequest(input *DescribeConfigurationRecordersInput) (req *request.Request, output *DescribeConfigurationRecordersOutput) { op := &request.Operation{ Name: opDescribeConfigurationRecorders, @@ -812,9 +840,8 @@ func (c *ConfigService) DescribeConfigurationRecordersRequest(input *DescribeCon input = &DescribeConfigurationRecordersInput{} } - req = c.newRequest(op, input, output) output = &DescribeConfigurationRecordersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -824,7 +851,7 @@ func (c *ConfigService) DescribeConfigurationRecordersRequest(input *DescribeCon // recorder is not specified, this action returns the details for all configuration // recorders associated with the account. // -// Currently, you can specify only one configuration recorder per region in +// Currently, you can specify only one configuration recorder per region in // your account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -835,9 +862,10 @@ func (c *ConfigService) DescribeConfigurationRecordersRequest(input *DescribeCon // API operation DescribeConfigurationRecorders for usage and error information. // // Returned Error Codes: -// * NoSuchConfigurationRecorderException +// * ErrCodeNoSuchConfigurationRecorderException "NoSuchConfigurationRecorderException" // You have specified a configuration recorder that does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigurationRecorders func (c *ConfigService) DescribeConfigurationRecorders(input *DescribeConfigurationRecordersInput) (*DescribeConfigurationRecordersOutput, error) { req, out := c.DescribeConfigurationRecordersRequest(input) err := req.Send() @@ -870,6 +898,7 @@ const opDescribeDeliveryChannelStatus = "DescribeDeliveryChannelStatus" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeDeliveryChannelStatus func (c *ConfigService) DescribeDeliveryChannelStatusRequest(input *DescribeDeliveryChannelStatusInput) (req *request.Request, output *DescribeDeliveryChannelStatusOutput) { op := &request.Operation{ Name: opDescribeDeliveryChannelStatus, @@ -881,9 +910,8 @@ func (c *ConfigService) DescribeDeliveryChannelStatusRequest(input *DescribeDeli input = &DescribeDeliveryChannelStatusInput{} } - req = c.newRequest(op, input, output) output = &DescribeDeliveryChannelStatusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -893,8 +921,7 @@ func (c *ConfigService) DescribeDeliveryChannelStatusRequest(input *DescribeDeli // channel is not specified, this action returns the current status of all delivery // channels associated with the account. // -// Currently, you can specify only one delivery channel per region in your -// account. +// Currently, you can specify only one delivery channel per region in your account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -904,9 +931,10 @@ func (c *ConfigService) DescribeDeliveryChannelStatusRequest(input *DescribeDeli // API operation DescribeDeliveryChannelStatus for usage and error information. // // Returned Error Codes: -// * NoSuchDeliveryChannelException +// * ErrCodeNoSuchDeliveryChannelException "NoSuchDeliveryChannelException" // You have specified a delivery channel that does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeDeliveryChannelStatus func (c *ConfigService) DescribeDeliveryChannelStatus(input *DescribeDeliveryChannelStatusInput) (*DescribeDeliveryChannelStatusOutput, error) { req, out := c.DescribeDeliveryChannelStatusRequest(input) err := req.Send() @@ -939,6 +967,7 @@ const opDescribeDeliveryChannels = "DescribeDeliveryChannels" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeDeliveryChannels func (c *ConfigService) DescribeDeliveryChannelsRequest(input *DescribeDeliveryChannelsInput) (req *request.Request, output *DescribeDeliveryChannelsOutput) { op := &request.Operation{ Name: opDescribeDeliveryChannels, @@ -950,9 +979,8 @@ func (c *ConfigService) DescribeDeliveryChannelsRequest(input *DescribeDeliveryC input = &DescribeDeliveryChannelsInput{} } - req = c.newRequest(op, input, output) output = &DescribeDeliveryChannelsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -962,8 +990,7 @@ func (c *ConfigService) DescribeDeliveryChannelsRequest(input *DescribeDeliveryC // is not specified, this action returns the details of all delivery channels // associated with the account. // -// Currently, you can specify only one delivery channel per region in your -// account. +// Currently, you can specify only one delivery channel per region in your account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -973,9 +1000,10 @@ func (c *ConfigService) DescribeDeliveryChannelsRequest(input *DescribeDeliveryC // API operation DescribeDeliveryChannels for usage and error information. // // Returned Error Codes: -// * NoSuchDeliveryChannelException +// * ErrCodeNoSuchDeliveryChannelException "NoSuchDeliveryChannelException" // You have specified a delivery channel that does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeDeliveryChannels func (c *ConfigService) DescribeDeliveryChannels(input *DescribeDeliveryChannelsInput) (*DescribeDeliveryChannelsOutput, error) { req, out := c.DescribeDeliveryChannelsRequest(input) err := req.Send() @@ -1008,6 +1036,7 @@ const opGetComplianceDetailsByConfigRule = "GetComplianceDetailsByConfigRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetComplianceDetailsByConfigRule func (c *ConfigService) GetComplianceDetailsByConfigRuleRequest(input *GetComplianceDetailsByConfigRuleInput) (req *request.Request, output *GetComplianceDetailsByConfigRuleOutput) { op := &request.Operation{ Name: opGetComplianceDetailsByConfigRule, @@ -1019,9 +1048,8 @@ func (c *ConfigService) GetComplianceDetailsByConfigRuleRequest(input *GetCompli input = &GetComplianceDetailsByConfigRuleInput{} } - req = c.newRequest(op, input, output) output = &GetComplianceDetailsByConfigRuleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1039,18 +1067,19 @@ func (c *ConfigService) GetComplianceDetailsByConfigRuleRequest(input *GetCompli // API operation GetComplianceDetailsByConfigRule for usage and error information. // // Returned Error Codes: -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * InvalidNextTokenException -// The specified next token is invalid. Specify the nextToken string that was +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The specified next token is invalid. Specify the NextToken string that was // returned in the previous response to get the next page of results. // -// * NoSuchConfigRuleException +// * ErrCodeNoSuchConfigRuleException "NoSuchConfigRuleException" // One or more AWS Config rules in the request are invalid. Verify that the // rule names are correct and try again. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetComplianceDetailsByConfigRule func (c *ConfigService) GetComplianceDetailsByConfigRule(input *GetComplianceDetailsByConfigRuleInput) (*GetComplianceDetailsByConfigRuleOutput, error) { req, out := c.GetComplianceDetailsByConfigRuleRequest(input) err := req.Send() @@ -1083,6 +1112,7 @@ const opGetComplianceDetailsByResource = "GetComplianceDetailsByResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetComplianceDetailsByResource func (c *ConfigService) GetComplianceDetailsByResourceRequest(input *GetComplianceDetailsByResourceInput) (req *request.Request, output *GetComplianceDetailsByResourceOutput) { op := &request.Operation{ Name: opGetComplianceDetailsByResource, @@ -1094,9 +1124,8 @@ func (c *ConfigService) GetComplianceDetailsByResourceRequest(input *GetComplian input = &GetComplianceDetailsByResourceInput{} } - req = c.newRequest(op, input, output) output = &GetComplianceDetailsByResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1114,10 +1143,11 @@ func (c *ConfigService) GetComplianceDetailsByResourceRequest(input *GetComplian // API operation GetComplianceDetailsByResource for usage and error information. // // Returned Error Codes: -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetComplianceDetailsByResource func (c *ConfigService) GetComplianceDetailsByResource(input *GetComplianceDetailsByResourceInput) (*GetComplianceDetailsByResourceOutput, error) { req, out := c.GetComplianceDetailsByResourceRequest(input) err := req.Send() @@ -1150,6 +1180,7 @@ const opGetComplianceSummaryByConfigRule = "GetComplianceSummaryByConfigRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetComplianceSummaryByConfigRule func (c *ConfigService) GetComplianceSummaryByConfigRuleRequest(input *GetComplianceSummaryByConfigRuleInput) (req *request.Request, output *GetComplianceSummaryByConfigRuleOutput) { op := &request.Operation{ Name: opGetComplianceSummaryByConfigRule, @@ -1161,9 +1192,8 @@ func (c *ConfigService) GetComplianceSummaryByConfigRuleRequest(input *GetCompli input = &GetComplianceSummaryByConfigRuleInput{} } - req = c.newRequest(op, input, output) output = &GetComplianceSummaryByConfigRuleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1178,6 +1208,7 @@ func (c *ConfigService) GetComplianceSummaryByConfigRuleRequest(input *GetCompli // // See the AWS API reference guide for AWS Config's // API operation GetComplianceSummaryByConfigRule for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetComplianceSummaryByConfigRule func (c *ConfigService) GetComplianceSummaryByConfigRule(input *GetComplianceSummaryByConfigRuleInput) (*GetComplianceSummaryByConfigRuleOutput, error) { req, out := c.GetComplianceSummaryByConfigRuleRequest(input) err := req.Send() @@ -1210,6 +1241,7 @@ const opGetComplianceSummaryByResourceType = "GetComplianceSummaryByResourceType // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetComplianceSummaryByResourceType func (c *ConfigService) GetComplianceSummaryByResourceTypeRequest(input *GetComplianceSummaryByResourceTypeInput) (req *request.Request, output *GetComplianceSummaryByResourceTypeOutput) { op := &request.Operation{ Name: opGetComplianceSummaryByResourceType, @@ -1221,9 +1253,8 @@ func (c *ConfigService) GetComplianceSummaryByResourceTypeRequest(input *GetComp input = &GetComplianceSummaryByResourceTypeInput{} } - req = c.newRequest(op, input, output) output = &GetComplianceSummaryByResourceTypeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1241,10 +1272,11 @@ func (c *ConfigService) GetComplianceSummaryByResourceTypeRequest(input *GetComp // API operation GetComplianceSummaryByResourceType for usage and error information. // // Returned Error Codes: -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetComplianceSummaryByResourceType func (c *ConfigService) GetComplianceSummaryByResourceType(input *GetComplianceSummaryByResourceTypeInput) (*GetComplianceSummaryByResourceTypeOutput, error) { req, out := c.GetComplianceSummaryByResourceTypeRequest(input) err := req.Send() @@ -1277,6 +1309,7 @@ const opGetResourceConfigHistory = "GetResourceConfigHistory" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetResourceConfigHistory func (c *ConfigService) GetResourceConfigHistoryRequest(input *GetResourceConfigHistoryInput) (req *request.Request, output *GetResourceConfigHistoryOutput) { op := &request.Operation{ Name: opGetResourceConfigHistory, @@ -1294,9 +1327,8 @@ func (c *ConfigService) GetResourceConfigHistoryRequest(input *GetResourceConfig input = &GetResourceConfigHistoryInput{} } - req = c.newRequest(op, input, output) output = &GetResourceConfigHistoryOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1312,9 +1344,9 @@ func (c *ConfigService) GetResourceConfigHistoryRequest(input *GetResourceConfig // page of results, run the request again and enter this string for the nextToken // parameter. // -// Each call to the API is limited to span a duration of seven days. It is -// likely that the number of records returned is smaller than the specified -// limit. In such cases, you can make another call, using the nextToken. +// Each call to the API is limited to span a duration of seven days. It is likely +// that the number of records returned is smaller than the specified limit. +// In such cases, you can make another call, using the nextToken. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1324,27 +1356,28 @@ func (c *ConfigService) GetResourceConfigHistoryRequest(input *GetResourceConfig // API operation GetResourceConfigHistory for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The requested action is not valid. // -// * InvalidTimeRangeException +// * ErrCodeInvalidTimeRangeException "InvalidTimeRangeException" // The specified time range is not valid. The earlier time is not chronologically // before the later time. // -// * InvalidLimitException +// * ErrCodeInvalidLimitException "InvalidLimitException" // The specified limit is outside the allowable range. // -// * InvalidNextTokenException -// The specified next token is invalid. Specify the nextToken string that was +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The specified next token is invalid. Specify the NextToken string that was // returned in the previous response to get the next page of results. // -// * NoAvailableConfigurationRecorderException +// * ErrCodeNoAvailableConfigurationRecorderException "NoAvailableConfigurationRecorderException" // There are no configuration recorders available to provide the role needed // to describe your resources. Create a configuration recorder. // -// * ResourceNotDiscoveredException +// * ErrCodeResourceNotDiscoveredException "ResourceNotDiscoveredException" // You have specified a resource that is either unknown or has not been discovered. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetResourceConfigHistory func (c *ConfigService) GetResourceConfigHistory(input *GetResourceConfigHistoryInput) (*GetResourceConfigHistoryOutput, error) { req, out := c.GetResourceConfigHistoryRequest(input) err := req.Send() @@ -1402,6 +1435,7 @@ const opListDiscoveredResources = "ListDiscoveredResources" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ListDiscoveredResources func (c *ConfigService) ListDiscoveredResourcesRequest(input *ListDiscoveredResourcesInput) (req *request.Request, output *ListDiscoveredResourcesOutput) { op := &request.Operation{ Name: opListDiscoveredResources, @@ -1413,9 +1447,8 @@ func (c *ConfigService) ListDiscoveredResourcesRequest(input *ListDiscoveredReso input = &ListDiscoveredResourcesInput{} } - req = c.newRequest(op, input, output) output = &ListDiscoveredResourcesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1428,12 +1461,12 @@ func (c *ConfigService) ListDiscoveredResourcesRequest(input *ListDiscoveredReso // recording. You can narrow the results to include only resources that have // specific resource IDs or a resource name. // -// You can specify either resource IDs or a resource name but not both in -// the same request. +// You can specify either resource IDs or a resource name but not both in the +// same request. // -// The response is paginated, and by default AWS Config lists 100 resource -// identifiers on each page. You can customize this number with the limit parameter. -// The response includes a nextToken string, and to get the next page of results, +// The response is paginated, and by default AWS Config lists 100 resource identifiers +// on each page. You can customize this number with the limit parameter. The +// response includes a nextToken string, and to get the next page of results, // run the request again and enter this string for the nextToken parameter. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1444,20 +1477,21 @@ func (c *ConfigService) ListDiscoveredResourcesRequest(input *ListDiscoveredReso // API operation ListDiscoveredResources for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // The requested action is not valid. // -// * InvalidLimitException +// * ErrCodeInvalidLimitException "InvalidLimitException" // The specified limit is outside the allowable range. // -// * InvalidNextTokenException -// The specified next token is invalid. Specify the nextToken string that was +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The specified next token is invalid. Specify the NextToken string that was // returned in the previous response to get the next page of results. // -// * NoAvailableConfigurationRecorderException +// * ErrCodeNoAvailableConfigurationRecorderException "NoAvailableConfigurationRecorderException" // There are no configuration recorders available to provide the role needed // to describe your resources. Create a configuration recorder. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ListDiscoveredResources func (c *ConfigService) ListDiscoveredResources(input *ListDiscoveredResourcesInput) (*ListDiscoveredResourcesOutput, error) { req, out := c.ListDiscoveredResourcesRequest(input) err := req.Send() @@ -1490,6 +1524,7 @@ const opPutConfigRule = "PutConfigRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutConfigRule func (c *ConfigService) PutConfigRuleRequest(input *PutConfigRuleInput) (req *request.Request, output *PutConfigRuleOutput) { op := &request.Operation{ Name: opPutConfigRule, @@ -1501,11 +1536,10 @@ func (c *ConfigService) PutConfigRuleRequest(input *PutConfigRuleInput) (req *re input = &PutConfigRuleInput{} } + output = &PutConfigRuleOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutConfigRuleOutput{} - req.Data = output return } @@ -1537,7 +1571,11 @@ func (c *ConfigService) PutConfigRuleRequest(input *PutConfigRuleInput) (req *re // rule by ConfigRuleName, ConfigRuleId, or ConfigRuleArn in the ConfigRule // data type that you use in this request. // -// The maximum number of rules that AWS Config supports is 25. +// The maximum number of rules that AWS Config supports is 50. +// +// For more information about requesting a rule limit increase, see AWS Config +// Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_config) +// in the AWS General Reference Guide. // // For more information about developing and using AWS Config rules, see Evaluating // AWS Resource Configurations with AWS Config (http://docs.aws.amazon.com/config/latest/developerguide/evaluate-config.html) @@ -1551,32 +1589,33 @@ func (c *ConfigService) PutConfigRuleRequest(input *PutConfigRuleInput) (req *re // API operation PutConfigRule for usage and error information. // // Returned Error Codes: -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * MaxNumberOfConfigRulesExceededException +// * ErrCodeMaxNumberOfConfigRulesExceededException "MaxNumberOfConfigRulesExceededException" // Failed to add the AWS Config rule because the account already contains the -// maximum number of 25 rules. Consider deleting any deactivated rules before +// maximum number of 50 rules. Consider deleting any deactivated rules before // adding new rules. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The rule is currently being deleted or the rule is deleting your evaluation // results. Try your request again later. // -// * InsufficientPermissionsException +// * ErrCodeInsufficientPermissionsException "InsufficientPermissionsException" // Indicates one of the following errors: // -// The rule cannot be created because the IAM role assigned to AWS Config -// lacks permissions to perform the config:Put* action. +// * The rule cannot be created because the IAM role assigned to AWS Config +// lacks permissions to perform the config:Put* action. // -// The AWS Lambda function cannot be invoked. Check the function ARN, and -// check the function's permissions. +// * The AWS Lambda function cannot be invoked. Check the function ARN, and +// check the function's permissions. // -// * NoAvailableConfigurationRecorderException +// * ErrCodeNoAvailableConfigurationRecorderException "NoAvailableConfigurationRecorderException" // There are no configuration recorders available to provide the role needed // to describe your resources. Create a configuration recorder. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutConfigRule func (c *ConfigService) PutConfigRule(input *PutConfigRuleInput) (*PutConfigRuleOutput, error) { req, out := c.PutConfigRuleRequest(input) err := req.Send() @@ -1609,6 +1648,7 @@ const opPutConfigurationRecorder = "PutConfigurationRecorder" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutConfigurationRecorder func (c *ConfigService) PutConfigurationRecorderRequest(input *PutConfigurationRecorderInput) (req *request.Request, output *PutConfigurationRecorderOutput) { op := &request.Operation{ Name: opPutConfigurationRecorder, @@ -1620,11 +1660,10 @@ func (c *ConfigService) PutConfigurationRecorderRequest(input *PutConfigurationR input = &PutConfigurationRecorderInput{} } + output = &PutConfigurationRecorderOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutConfigurationRecorderOutput{} - req.Data = output return } @@ -1636,7 +1675,7 @@ func (c *ConfigService) PutConfigurationRecorderRequest(input *PutConfigurationR // of an existing recorder. To change the role, call the action on the existing // configuration recorder and specify a role. // -// Currently, you can specify only one configuration recorder per region in +// Currently, you can specify only one configuration recorder per region in // your account. // // If ConfigurationRecorder does not have the recordingGroup parameter specified, @@ -1650,19 +1689,20 @@ func (c *ConfigService) PutConfigurationRecorderRequest(input *PutConfigurationR // API operation PutConfigurationRecorder for usage and error information. // // Returned Error Codes: -// * MaxNumberOfConfigurationRecordersExceededException +// * ErrCodeMaxNumberOfConfigurationRecordersExceededException "MaxNumberOfConfigurationRecordersExceededException" // You have reached the limit on the number of recorders you can create. // -// * InvalidConfigurationRecorderNameException +// * ErrCodeInvalidConfigurationRecorderNameException "InvalidConfigurationRecorderNameException" // You have provided a configuration recorder name that is not valid. // -// * InvalidRoleException +// * ErrCodeInvalidRoleException "InvalidRoleException" // You have provided a null or empty role ARN. // -// * InvalidRecordingGroupException +// * ErrCodeInvalidRecordingGroupException "InvalidRecordingGroupException" // AWS Config throws an exception if the recording group does not contain a // valid list of resource types. Invalid values could also be incorrectly formatted. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutConfigurationRecorder func (c *ConfigService) PutConfigurationRecorder(input *PutConfigurationRecorderInput) (*PutConfigurationRecorderOutput, error) { req, out := c.PutConfigurationRecorderRequest(input) err := req.Send() @@ -1695,6 +1735,7 @@ const opPutDeliveryChannel = "PutDeliveryChannel" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutDeliveryChannel func (c *ConfigService) PutDeliveryChannelRequest(input *PutDeliveryChannelInput) (req *request.Request, output *PutDeliveryChannelOutput) { op := &request.Operation{ Name: opPutDeliveryChannel, @@ -1706,11 +1747,10 @@ func (c *ConfigService) PutDeliveryChannelRequest(input *PutDeliveryChannelInput input = &PutDeliveryChannelInput{} } + output = &PutDeliveryChannelOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutDeliveryChannelOutput{} - req.Data = output return } @@ -1722,14 +1762,14 @@ func (c *ConfigService) PutDeliveryChannelRequest(input *PutDeliveryChannelInput // Before you can create a delivery channel, you must create a configuration // recorder. // -// You can use this action to change the Amazon S3 bucket or an Amazon SNS -// topic of the existing delivery channel. To change the Amazon S3 bucket or -// an Amazon SNS topic, call this action and specify the changed values for -// the S3 bucket and the SNS topic. If you specify a different value for either -// the S3 bucket or the SNS topic, this action will keep the existing value -// for the parameter that is not changed. +// You can use this action to change the Amazon S3 bucket or an Amazon SNS topic +// of the existing delivery channel. To change the Amazon S3 bucket or an Amazon +// SNS topic, call this action and specify the changed values for the S3 bucket +// and the SNS topic. If you specify a different value for either the S3 bucket +// or the SNS topic, this action will keep the existing value for the parameter +// that is not changed. // -// You can have only one delivery channel per region in your account. +// You can have only one delivery channel per region in your account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1739,28 +1779,29 @@ func (c *ConfigService) PutDeliveryChannelRequest(input *PutDeliveryChannelInput // API operation PutDeliveryChannel for usage and error information. // // Returned Error Codes: -// * MaxNumberOfDeliveryChannelsExceededException +// * ErrCodeMaxNumberOfDeliveryChannelsExceededException "MaxNumberOfDeliveryChannelsExceededException" // You have reached the limit on the number of delivery channels you can create. // -// * NoAvailableConfigurationRecorderException +// * ErrCodeNoAvailableConfigurationRecorderException "NoAvailableConfigurationRecorderException" // There are no configuration recorders available to provide the role needed // to describe your resources. Create a configuration recorder. // -// * InvalidDeliveryChannelNameException +// * ErrCodeInvalidDeliveryChannelNameException "InvalidDeliveryChannelNameException" // The specified delivery channel name is not valid. // -// * NoSuchBucketException +// * ErrCodeNoSuchBucketException "NoSuchBucketException" // The specified Amazon S3 bucket does not exist. // -// * InvalidS3KeyPrefixException +// * ErrCodeInvalidS3KeyPrefixException "InvalidS3KeyPrefixException" // The specified Amazon S3 key prefix is not valid. // -// * InvalidSNSTopicARNException +// * ErrCodeInvalidSNSTopicARNException "InvalidSNSTopicARNException" // The specified Amazon SNS topic does not exist. // -// * InsufficientDeliveryPolicyException +// * ErrCodeInsufficientDeliveryPolicyException "InsufficientDeliveryPolicyException" // Your Amazon S3 bucket policy does not permit AWS Config to write to it. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutDeliveryChannel func (c *ConfigService) PutDeliveryChannel(input *PutDeliveryChannelInput) (*PutDeliveryChannelOutput, error) { req, out := c.PutDeliveryChannelRequest(input) err := req.Send() @@ -1793,6 +1834,7 @@ const opPutEvaluations = "PutEvaluations" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutEvaluations func (c *ConfigService) PutEvaluationsRequest(input *PutEvaluationsInput) (req *request.Request, output *PutEvaluationsOutput) { op := &request.Operation{ Name: opPutEvaluations, @@ -1804,9 +1846,8 @@ func (c *ConfigService) PutEvaluationsRequest(input *PutEvaluationsInput) (req * input = &PutEvaluationsInput{} } - req = c.newRequest(op, input, output) output = &PutEvaluationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1824,17 +1865,18 @@ func (c *ConfigService) PutEvaluationsRequest(input *PutEvaluationsInput) (req * // API operation PutEvaluations for usage and error information. // // Returned Error Codes: -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * InvalidResultTokenException -// The result token is invalid. +// * ErrCodeInvalidResultTokenException "InvalidResultTokenException" +// The specified ResultToken is invalid. // -// * NoSuchConfigRuleException +// * ErrCodeNoSuchConfigRuleException "NoSuchConfigRuleException" // One or more AWS Config rules in the request are invalid. Verify that the // rule names are correct and try again. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutEvaluations func (c *ConfigService) PutEvaluations(input *PutEvaluationsInput) (*PutEvaluationsOutput, error) { req, out := c.PutEvaluationsRequest(input) err := req.Send() @@ -1867,6 +1909,7 @@ const opStartConfigRulesEvaluation = "StartConfigRulesEvaluation" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/StartConfigRulesEvaluation func (c *ConfigService) StartConfigRulesEvaluationRequest(input *StartConfigRulesEvaluationInput) (req *request.Request, output *StartConfigRulesEvaluationOutput) { op := &request.Operation{ Name: opStartConfigRulesEvaluation, @@ -1878,39 +1921,43 @@ func (c *ConfigService) StartConfigRulesEvaluationRequest(input *StartConfigRule input = &StartConfigRulesEvaluationInput{} } - req = c.newRequest(op, input, output) output = &StartConfigRulesEvaluationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // StartConfigRulesEvaluation API operation for AWS Config. // -// Evaluates your resources against the specified Config rules. You can specify -// up to 25 Config rules per request. +// Runs an on-demand evaluation for the specified Config rules against the last +// known configuration state of the resources. Use StartConfigRulesEvaluation +// when you want to test a rule that you updated is working as expected. StartConfigRulesEvaluation +// does not re-record the latest configuration state for your resources; it +// re-runs an evaluation against the last known state of your resources. +// +// You can specify up to 25 Config rules per request. // // An existing StartConfigRulesEvaluation call must complete for the specified // rules before you can call the API again. If you chose to have AWS Config // stream to an Amazon SNS topic, you will receive a ConfigRuleEvaluationStarted // notification when the evaluation starts. // -// You don't need to call the StartConfigRulesEvaluation API to run an evaluation +// You don't need to call the StartConfigRulesEvaluation API to run an evaluation // for a new rule. When you create a new rule, AWS Config automatically evaluates // your resources against the rule. // -// The StartConfigRulesEvaluation API is useful if you want to run on-demand +// The StartConfigRulesEvaluation API is useful if you want to run on-demand // evaluations, such as the following example: // -// You have a custom rule that evaluates your IAM resources every 24 hours. +// You have a custom rule that evaluates your IAM resources every 24 hours. // -// You update your Lambda function to add additional conditions to your rule. +// You update your Lambda function to add additional conditions to your rule. // -// Instead of waiting for the next periodic evaluation, you call the StartConfigRulesEvaluation +// Instead of waiting for the next periodic evaluation, you call the StartConfigRulesEvaluation // API. // -// AWS Config invokes your Lambda function and evaluates your IAM resources. +// AWS Config invokes your Lambda function and evaluates your IAM resources. // -// Your custom rule will still run periodic evaluations every 24 hours. +// Your custom rule will still run periodic evaluations every 24 hours. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1920,22 +1967,23 @@ func (c *ConfigService) StartConfigRulesEvaluationRequest(input *StartConfigRule // API operation StartConfigRulesEvaluation for usage and error information. // // Returned Error Codes: -// * NoSuchConfigRuleException +// * ErrCodeNoSuchConfigRuleException "NoSuchConfigRuleException" // One or more AWS Config rules in the request are invalid. Verify that the // rule names are correct and try again. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // This exception is thrown if an evaluation is in progress or if you call the // StartConfigRulesEvaluation API more than once per minute. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The rule is currently being deleted or the rule is deleting your evaluation // results. Try your request again later. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/StartConfigRulesEvaluation func (c *ConfigService) StartConfigRulesEvaluation(input *StartConfigRulesEvaluationInput) (*StartConfigRulesEvaluationOutput, error) { req, out := c.StartConfigRulesEvaluationRequest(input) err := req.Send() @@ -1968,6 +2016,7 @@ const opStartConfigurationRecorder = "StartConfigurationRecorder" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/StartConfigurationRecorder func (c *ConfigService) StartConfigurationRecorderRequest(input *StartConfigurationRecorderInput) (req *request.Request, output *StartConfigurationRecorderOutput) { op := &request.Operation{ Name: opStartConfigurationRecorder, @@ -1979,11 +2028,10 @@ func (c *ConfigService) StartConfigurationRecorderRequest(input *StartConfigurat input = &StartConfigurationRecorderInput{} } + output = &StartConfigurationRecorderOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &StartConfigurationRecorderOutput{} - req.Data = output return } @@ -2003,12 +2051,13 @@ func (c *ConfigService) StartConfigurationRecorderRequest(input *StartConfigurat // API operation StartConfigurationRecorder for usage and error information. // // Returned Error Codes: -// * NoSuchConfigurationRecorderException +// * ErrCodeNoSuchConfigurationRecorderException "NoSuchConfigurationRecorderException" // You have specified a configuration recorder that does not exist. // -// * NoAvailableDeliveryChannelException +// * ErrCodeNoAvailableDeliveryChannelException "NoAvailableDeliveryChannelException" // There is no delivery channel available to record configurations. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/StartConfigurationRecorder func (c *ConfigService) StartConfigurationRecorder(input *StartConfigurationRecorderInput) (*StartConfigurationRecorderOutput, error) { req, out := c.StartConfigurationRecorderRequest(input) err := req.Send() @@ -2041,6 +2090,7 @@ const opStopConfigurationRecorder = "StopConfigurationRecorder" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/StopConfigurationRecorder func (c *ConfigService) StopConfigurationRecorderRequest(input *StopConfigurationRecorderInput) (req *request.Request, output *StopConfigurationRecorderOutput) { op := &request.Operation{ Name: opStopConfigurationRecorder, @@ -2052,11 +2102,10 @@ func (c *ConfigService) StopConfigurationRecorderRequest(input *StopConfiguratio input = &StopConfigurationRecorderInput{} } + output = &StopConfigurationRecorderOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &StopConfigurationRecorderOutput{} - req.Data = output return } @@ -2073,9 +2122,10 @@ func (c *ConfigService) StopConfigurationRecorderRequest(input *StopConfiguratio // API operation StopConfigurationRecorder for usage and error information. // // Returned Error Codes: -// * NoSuchConfigurationRecorderException +// * ErrCodeNoSuchConfigurationRecorderException "NoSuchConfigurationRecorderException" // You have specified a configuration recorder that does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/StopConfigurationRecorder func (c *ConfigService) StopConfigurationRecorder(input *StopConfigurationRecorderInput) (*StopConfigurationRecorderOutput, error) { req, out := c.StopConfigurationRecorderRequest(input) err := req.Send() @@ -2084,6 +2134,7 @@ func (c *ConfigService) StopConfigurationRecorder(input *StopConfigurationRecord // Indicates whether an AWS resource or AWS Config rule is compliant and provides // the number of contributors that affect the compliance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/Compliance type Compliance struct { _ struct{} `type:"structure"` @@ -2093,9 +2144,9 @@ type Compliance struct { // Indicates whether an AWS resource or AWS Config rule is compliant. // - // A resource is compliant if it complies with all of the AWS Config rules - // that evaluate it, and it is noncompliant if it does not comply with one or - // more of these rules. + // A resource is compliant if it complies with all of the AWS Config rules that + // evaluate it, and it is noncompliant if it does not comply with one or more + // of these rules. // // A rule is compliant if all of the resources that the rule evaluates comply // with it, and it is noncompliant if any of these resources do not comply. @@ -2119,9 +2170,22 @@ func (s Compliance) GoString() string { return s.String() } +// SetComplianceContributorCount sets the ComplianceContributorCount field's value. +func (s *Compliance) SetComplianceContributorCount(v *ComplianceContributorCount) *Compliance { + s.ComplianceContributorCount = v + return s +} + +// SetComplianceType sets the ComplianceType field's value. +func (s *Compliance) SetComplianceType(v string) *Compliance { + s.ComplianceType = &v + return s +} + // Indicates whether an AWS Config rule is compliant. A rule is compliant if // all of the resources that the rule evaluated comply with it, and it is noncompliant // if any of these resources do not comply. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ComplianceByConfigRule type ComplianceByConfigRule struct { _ struct{} `type:"structure"` @@ -2142,10 +2206,23 @@ func (s ComplianceByConfigRule) GoString() string { return s.String() } +// SetCompliance sets the Compliance field's value. +func (s *ComplianceByConfigRule) SetCompliance(v *Compliance) *ComplianceByConfigRule { + s.Compliance = v + return s +} + +// SetConfigRuleName sets the ConfigRuleName field's value. +func (s *ComplianceByConfigRule) SetConfigRuleName(v string) *ComplianceByConfigRule { + s.ConfigRuleName = &v + return s +} + // Indicates whether an AWS resource that is evaluated according to one or more // AWS Config rules is compliant. A resource is compliant if it complies with // all of the rules that evaluate it, and it is noncompliant if it does not // comply with one or more of these rules. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ComplianceByResource type ComplianceByResource struct { _ struct{} `type:"structure"` @@ -2170,8 +2247,27 @@ func (s ComplianceByResource) GoString() string { return s.String() } +// SetCompliance sets the Compliance field's value. +func (s *ComplianceByResource) SetCompliance(v *Compliance) *ComplianceByResource { + s.Compliance = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *ComplianceByResource) SetResourceId(v string) *ComplianceByResource { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ComplianceByResource) SetResourceType(v string) *ComplianceByResource { + s.ResourceType = &v + return s +} + // The number of AWS resources or AWS Config rules responsible for the current // compliance of the item, up to a maximum number. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ComplianceContributorCount type ComplianceContributorCount struct { _ struct{} `type:"structure"` @@ -2193,8 +2289,20 @@ func (s ComplianceContributorCount) GoString() string { return s.String() } -// The number of AWS Config rules or AWS resources that are compliant and noncompliant, -// up to a maximum. +// SetCapExceeded sets the CapExceeded field's value. +func (s *ComplianceContributorCount) SetCapExceeded(v bool) *ComplianceContributorCount { + s.CapExceeded = &v + return s +} + +// SetCappedCount sets the CappedCount field's value. +func (s *ComplianceContributorCount) SetCappedCount(v int64) *ComplianceContributorCount { + s.CappedCount = &v + return s +} + +// The number of AWS Config rules or AWS resources that are compliant and noncompliant. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ComplianceSummary type ComplianceSummary struct { _ struct{} `type:"structure"` @@ -2220,8 +2328,27 @@ func (s ComplianceSummary) GoString() string { return s.String() } +// SetComplianceSummaryTimestamp sets the ComplianceSummaryTimestamp field's value. +func (s *ComplianceSummary) SetComplianceSummaryTimestamp(v time.Time) *ComplianceSummary { + s.ComplianceSummaryTimestamp = &v + return s +} + +// SetCompliantResourceCount sets the CompliantResourceCount field's value. +func (s *ComplianceSummary) SetCompliantResourceCount(v *ComplianceContributorCount) *ComplianceSummary { + s.CompliantResourceCount = v + return s +} + +// SetNonCompliantResourceCount sets the NonCompliantResourceCount field's value. +func (s *ComplianceSummary) SetNonCompliantResourceCount(v *ComplianceContributorCount) *ComplianceSummary { + s.NonCompliantResourceCount = v + return s +} + // The number of AWS resources of a specific type that are compliant or noncompliant, // up to a maximum of 100 for each compliance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ComplianceSummaryByResourceType type ComplianceSummaryByResourceType struct { _ struct{} `type:"structure"` @@ -2243,8 +2370,21 @@ func (s ComplianceSummaryByResourceType) GoString() string { return s.String() } +// SetComplianceSummary sets the ComplianceSummary field's value. +func (s *ComplianceSummaryByResourceType) SetComplianceSummary(v *ComplianceSummary) *ComplianceSummaryByResourceType { + s.ComplianceSummary = v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ComplianceSummaryByResourceType) SetResourceType(v string) *ComplianceSummaryByResourceType { + s.ResourceType = &v + return s +} + // A list that contains the status of the delivery of either the snapshot or // the configuration history to the specified Amazon S3 bucket. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ConfigExportDeliveryInfo type ConfigExportDeliveryInfo struct { _ struct{} `type:"structure"` @@ -2277,6 +2417,42 @@ func (s ConfigExportDeliveryInfo) GoString() string { return s.String() } +// SetLastAttemptTime sets the LastAttemptTime field's value. +func (s *ConfigExportDeliveryInfo) SetLastAttemptTime(v time.Time) *ConfigExportDeliveryInfo { + s.LastAttemptTime = &v + return s +} + +// SetLastErrorCode sets the LastErrorCode field's value. +func (s *ConfigExportDeliveryInfo) SetLastErrorCode(v string) *ConfigExportDeliveryInfo { + s.LastErrorCode = &v + return s +} + +// SetLastErrorMessage sets the LastErrorMessage field's value. +func (s *ConfigExportDeliveryInfo) SetLastErrorMessage(v string) *ConfigExportDeliveryInfo { + s.LastErrorMessage = &v + return s +} + +// SetLastStatus sets the LastStatus field's value. +func (s *ConfigExportDeliveryInfo) SetLastStatus(v string) *ConfigExportDeliveryInfo { + s.LastStatus = &v + return s +} + +// SetLastSuccessfulTime sets the LastSuccessfulTime field's value. +func (s *ConfigExportDeliveryInfo) SetLastSuccessfulTime(v time.Time) *ConfigExportDeliveryInfo { + s.LastSuccessfulTime = &v + return s +} + +// SetNextDeliveryTime sets the NextDeliveryTime field's value. +func (s *ConfigExportDeliveryInfo) SetNextDeliveryTime(v time.Time) *ConfigExportDeliveryInfo { + s.NextDeliveryTime = &v + return s +} + // An AWS Config rule represents an AWS Lambda function that you create for // a custom rule or a predefined function for an AWS managed rule. The function // evaluates configuration items to assess whether your AWS resources comply @@ -2284,13 +2460,14 @@ func (s ConfigExportDeliveryInfo) GoString() string { // a configuration change to an AWS resource and at a periodic frequency that // you choose (for example, every 24 hours). // -// You can use the AWS CLI and AWS SDKs if you want to create a rule that -// triggers evaluations for your resources when AWS Config delivers the configuration +// You can use the AWS CLI and AWS SDKs if you want to create a rule that triggers +// evaluations for your resources when AWS Config delivers the configuration // snapshot. For more information, see ConfigSnapshotDeliveryProperties. // -// For more information about developing and using AWS Config rules, see Evaluating +// For more information about developing and using AWS Config rules, see Evaluating // AWS Resource Configurations with AWS Config (http://docs.aws.amazon.com/config/latest/developerguide/evaluate-config.html) // in the AWS Config Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ConfigRule type ConfigRule struct { _ struct{} `type:"structure"` @@ -2331,12 +2508,12 @@ type ConfigRule struct { // The maximum frequency with which AWS Config runs evaluations for a rule. // You can specify a value for MaximumExecutionFrequency when: // - // You are using an AWS managed rule that is triggered at a periodic frequency. + // * You are using an AWS managed rule that is triggered at a periodic frequency. // - // Your custom rule is triggered when AWS Config delivers the configuration - // snapshot. + // * Your custom rule is triggered when AWS Config delivers the configuration + // snapshot. // - // For more information, see ConfigSnapshotDeliveryProperties. + // For more information, see ConfigSnapshotDeliveryProperties. MaximumExecutionFrequency *string `type:"string" enum:"MaximumExecutionFrequency"` // Defines which resources can trigger an evaluation for the rule. The scope @@ -2393,11 +2570,66 @@ func (s *ConfigRule) Validate() error { return nil } +// SetConfigRuleArn sets the ConfigRuleArn field's value. +func (s *ConfigRule) SetConfigRuleArn(v string) *ConfigRule { + s.ConfigRuleArn = &v + return s +} + +// SetConfigRuleId sets the ConfigRuleId field's value. +func (s *ConfigRule) SetConfigRuleId(v string) *ConfigRule { + s.ConfigRuleId = &v + return s +} + +// SetConfigRuleName sets the ConfigRuleName field's value. +func (s *ConfigRule) SetConfigRuleName(v string) *ConfigRule { + s.ConfigRuleName = &v + return s +} + +// SetConfigRuleState sets the ConfigRuleState field's value. +func (s *ConfigRule) SetConfigRuleState(v string) *ConfigRule { + s.ConfigRuleState = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ConfigRule) SetDescription(v string) *ConfigRule { + s.Description = &v + return s +} + +// SetInputParameters sets the InputParameters field's value. +func (s *ConfigRule) SetInputParameters(v string) *ConfigRule { + s.InputParameters = &v + return s +} + +// SetMaximumExecutionFrequency sets the MaximumExecutionFrequency field's value. +func (s *ConfigRule) SetMaximumExecutionFrequency(v string) *ConfigRule { + s.MaximumExecutionFrequency = &v + return s +} + +// SetScope sets the Scope field's value. +func (s *ConfigRule) SetScope(v *Scope) *ConfigRule { + s.Scope = v + return s +} + +// SetSource sets the Source field's value. +func (s *ConfigRule) SetSource(v *Source) *ConfigRule { + s.Source = v + return s +} + // Status information for your AWS managed Config rules. The status includes // information such as the last time the rule ran, the last time it failed, // and the related error for the last failure. // // This action does not return status information about custom Config rules. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ConfigRuleEvaluationStatus type ConfigRuleEvaluationStatus struct { _ struct{} `type:"structure"` @@ -2416,11 +2648,11 @@ type ConfigRuleEvaluationStatus struct { // Indicates whether AWS Config has evaluated your resources against the rule // at least once. // - // true - AWS Config has evaluated your AWS resources against the rule at - // least once. + // * true - AWS Config has evaluated your AWS resources against the rule + // at least once. // - // false - AWS Config has not once finished evaluating your AWS resources - // against the rule. + // * false - AWS Config has not once finished evaluating your AWS resources + // against the rule. FirstEvaluationStarted *bool `type:"boolean"` // The error code that AWS Config returned when the rule last failed. @@ -2456,45 +2688,112 @@ func (s ConfigRuleEvaluationStatus) GoString() string { return s.String() } +// SetConfigRuleArn sets the ConfigRuleArn field's value. +func (s *ConfigRuleEvaluationStatus) SetConfigRuleArn(v string) *ConfigRuleEvaluationStatus { + s.ConfigRuleArn = &v + return s +} + +// SetConfigRuleId sets the ConfigRuleId field's value. +func (s *ConfigRuleEvaluationStatus) SetConfigRuleId(v string) *ConfigRuleEvaluationStatus { + s.ConfigRuleId = &v + return s +} + +// SetConfigRuleName sets the ConfigRuleName field's value. +func (s *ConfigRuleEvaluationStatus) SetConfigRuleName(v string) *ConfigRuleEvaluationStatus { + s.ConfigRuleName = &v + return s +} + +// SetFirstActivatedTime sets the FirstActivatedTime field's value. +func (s *ConfigRuleEvaluationStatus) SetFirstActivatedTime(v time.Time) *ConfigRuleEvaluationStatus { + s.FirstActivatedTime = &v + return s +} + +// SetFirstEvaluationStarted sets the FirstEvaluationStarted field's value. +func (s *ConfigRuleEvaluationStatus) SetFirstEvaluationStarted(v bool) *ConfigRuleEvaluationStatus { + s.FirstEvaluationStarted = &v + return s +} + +// SetLastErrorCode sets the LastErrorCode field's value. +func (s *ConfigRuleEvaluationStatus) SetLastErrorCode(v string) *ConfigRuleEvaluationStatus { + s.LastErrorCode = &v + return s +} + +// SetLastErrorMessage sets the LastErrorMessage field's value. +func (s *ConfigRuleEvaluationStatus) SetLastErrorMessage(v string) *ConfigRuleEvaluationStatus { + s.LastErrorMessage = &v + return s +} + +// SetLastFailedEvaluationTime sets the LastFailedEvaluationTime field's value. +func (s *ConfigRuleEvaluationStatus) SetLastFailedEvaluationTime(v time.Time) *ConfigRuleEvaluationStatus { + s.LastFailedEvaluationTime = &v + return s +} + +// SetLastFailedInvocationTime sets the LastFailedInvocationTime field's value. +func (s *ConfigRuleEvaluationStatus) SetLastFailedInvocationTime(v time.Time) *ConfigRuleEvaluationStatus { + s.LastFailedInvocationTime = &v + return s +} + +// SetLastSuccessfulEvaluationTime sets the LastSuccessfulEvaluationTime field's value. +func (s *ConfigRuleEvaluationStatus) SetLastSuccessfulEvaluationTime(v time.Time) *ConfigRuleEvaluationStatus { + s.LastSuccessfulEvaluationTime = &v + return s +} + +// SetLastSuccessfulInvocationTime sets the LastSuccessfulInvocationTime field's value. +func (s *ConfigRuleEvaluationStatus) SetLastSuccessfulInvocationTime(v time.Time) *ConfigRuleEvaluationStatus { + s.LastSuccessfulInvocationTime = &v + return s +} + // Provides options for how often AWS Config delivers configuration snapshots // to the Amazon S3 bucket in your delivery channel. // -// If you want to create a rule that triggers evaluations for your resources +// If you want to create a rule that triggers evaluations for your resources // when AWS Config delivers the configuration snapshot, see the following: // -// The frequency for a rule that triggers evaluations for your resources when +// The frequency for a rule that triggers evaluations for your resources when // AWS Config delivers the configuration snapshot is set by one of two values, // depending on which is less frequent: // -// The value for the deliveryFrequency parameter within the delivery channel -// configuration, which sets how often AWS Config delivers configuration snapshots. -// This value also sets how often AWS Config invokes evaluations for Config -// rules. +// * The value for the deliveryFrequency parameter within the delivery channel +// configuration, which sets how often AWS Config delivers configuration +// snapshots. This value also sets how often AWS Config invokes evaluations +// for Config rules. // -// The value for the MaximumExecutionFrequency parameter, which sets the -// maximum frequency with which AWS Config invokes evaluations for the rule. -// For more information, see ConfigRule. +// * The value for the MaximumExecutionFrequency parameter, which sets the +// maximum frequency with which AWS Config invokes evaluations for the rule. +// For more information, see ConfigRule. // -// If the deliveryFrequency value is less frequent than the MaximumExecutionFrequency +// If the deliveryFrequency value is less frequent than the MaximumExecutionFrequency // value for a rule, AWS Config invokes the rule only as often as the deliveryFrequency // value. // -// For example, you want your rule to run evaluations when AWS Config delivers +// For example, you want your rule to run evaluations when AWS Config delivers // the configuration snapshot. // -// You specify the MaximumExecutionFrequency value for Six_Hours. +// You specify the MaximumExecutionFrequency value for Six_Hours. // -// You then specify the delivery channel deliveryFrequency value for TwentyFour_Hours. +// You then specify the delivery channel deliveryFrequency value for TwentyFour_Hours. // -// Because the value for deliveryFrequency is less frequent than MaximumExecutionFrequency, +// Because the value for deliveryFrequency is less frequent than MaximumExecutionFrequency, // AWS Config invokes evaluations for the rule every 24 hours. // -// You should set the MaximumExecutionFrequency value to be at least as frequent +// You should set the MaximumExecutionFrequency value to be at least as frequent // as the deliveryFrequency value. You can view the deliveryFrequency value // by using the DescribeDeliveryChannnels action. // // To update the deliveryFrequency with which AWS Config delivers your configuration // snapshots, use the PutDeliveryChannel action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ConfigSnapshotDeliveryProperties type ConfigSnapshotDeliveryProperties struct { _ struct{} `type:"structure"` @@ -2512,8 +2811,15 @@ func (s ConfigSnapshotDeliveryProperties) GoString() string { return s.String() } +// SetDeliveryFrequency sets the DeliveryFrequency field's value. +func (s *ConfigSnapshotDeliveryProperties) SetDeliveryFrequency(v string) *ConfigSnapshotDeliveryProperties { + s.DeliveryFrequency = &v + return s +} + // A list that contains the status of the delivery of the configuration stream // notification to the Amazon SNS topic. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ConfigStreamDeliveryInfo type ConfigStreamDeliveryInfo struct { _ struct{} `type:"structure"` @@ -2525,7 +2831,7 @@ type ConfigStreamDeliveryInfo struct { // Status of the last attempted delivery. // - // Note Providing an SNS topic on a DeliveryChannel (http://docs.aws.amazon.com/config/latest/APIReference/API_DeliveryChannel.html) + // Note Providing an SNS topic on a DeliveryChannel (http://docs.aws.amazon.com/config/latest/APIReference/API_DeliveryChannel.html) // for AWS Config is optional. If the SNS delivery is turned off, the last status // will be Not_Applicable. LastStatus *string `locationName:"lastStatus" type:"string" enum:"DeliveryStatus"` @@ -2544,10 +2850,32 @@ func (s ConfigStreamDeliveryInfo) GoString() string { return s.String() } +// SetLastErrorCode sets the LastErrorCode field's value. +func (s *ConfigStreamDeliveryInfo) SetLastErrorCode(v string) *ConfigStreamDeliveryInfo { + s.LastErrorCode = &v + return s +} + +// SetLastErrorMessage sets the LastErrorMessage field's value. +func (s *ConfigStreamDeliveryInfo) SetLastErrorMessage(v string) *ConfigStreamDeliveryInfo { + s.LastErrorMessage = &v + return s +} + +// SetLastStatus sets the LastStatus field's value. +func (s *ConfigStreamDeliveryInfo) SetLastStatus(v string) *ConfigStreamDeliveryInfo { + s.LastStatus = &v + return s +} + +// SetLastStatusChangeTime sets the LastStatusChangeTime field's value. +func (s *ConfigStreamDeliveryInfo) SetLastStatusChangeTime(v time.Time) *ConfigStreamDeliveryInfo { + s.LastStatusChangeTime = &v + return s +} + // A list that contains detailed configurations of a specified resource. -// -// Currently, the list does not contain information about non-AWS components -// (for example, applications on your Amazon EC2 instances). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ConfigurationItem type ConfigurationItem struct { _ struct{} `type:"structure"` @@ -2571,8 +2899,8 @@ type ConfigurationItem struct { // Unique MD5 hash that represents the configuration item's state. // - // You can use MD5 hash to compare the states of two or more configuration - // items that are associated with the same resource. + // You can use MD5 hash to compare the states of two or more configuration items + // that are associated with the same resource. ConfigurationItemMD5Hash *string `locationName:"configurationItemMD5Hash" type:"string"` // The configuration item status. @@ -2628,8 +2956,117 @@ func (s ConfigurationItem) GoString() string { return s.String() } +// SetAccountId sets the AccountId field's value. +func (s *ConfigurationItem) SetAccountId(v string) *ConfigurationItem { + s.AccountId = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *ConfigurationItem) SetArn(v string) *ConfigurationItem { + s.Arn = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ConfigurationItem) SetAvailabilityZone(v string) *ConfigurationItem { + s.AvailabilityZone = &v + return s +} + +// SetAwsRegion sets the AwsRegion field's value. +func (s *ConfigurationItem) SetAwsRegion(v string) *ConfigurationItem { + s.AwsRegion = &v + return s +} + +// SetConfiguration sets the Configuration field's value. +func (s *ConfigurationItem) SetConfiguration(v string) *ConfigurationItem { + s.Configuration = &v + return s +} + +// SetConfigurationItemCaptureTime sets the ConfigurationItemCaptureTime field's value. +func (s *ConfigurationItem) SetConfigurationItemCaptureTime(v time.Time) *ConfigurationItem { + s.ConfigurationItemCaptureTime = &v + return s +} + +// SetConfigurationItemMD5Hash sets the ConfigurationItemMD5Hash field's value. +func (s *ConfigurationItem) SetConfigurationItemMD5Hash(v string) *ConfigurationItem { + s.ConfigurationItemMD5Hash = &v + return s +} + +// SetConfigurationItemStatus sets the ConfigurationItemStatus field's value. +func (s *ConfigurationItem) SetConfigurationItemStatus(v string) *ConfigurationItem { + s.ConfigurationItemStatus = &v + return s +} + +// SetConfigurationStateId sets the ConfigurationStateId field's value. +func (s *ConfigurationItem) SetConfigurationStateId(v string) *ConfigurationItem { + s.ConfigurationStateId = &v + return s +} + +// SetRelatedEvents sets the RelatedEvents field's value. +func (s *ConfigurationItem) SetRelatedEvents(v []*string) *ConfigurationItem { + s.RelatedEvents = v + return s +} + +// SetRelationships sets the Relationships field's value. +func (s *ConfigurationItem) SetRelationships(v []*Relationship) *ConfigurationItem { + s.Relationships = v + return s +} + +// SetResourceCreationTime sets the ResourceCreationTime field's value. +func (s *ConfigurationItem) SetResourceCreationTime(v time.Time) *ConfigurationItem { + s.ResourceCreationTime = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *ConfigurationItem) SetResourceId(v string) *ConfigurationItem { + s.ResourceId = &v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *ConfigurationItem) SetResourceName(v string) *ConfigurationItem { + s.ResourceName = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ConfigurationItem) SetResourceType(v string) *ConfigurationItem { + s.ResourceType = &v + return s +} + +// SetSupplementaryConfiguration sets the SupplementaryConfiguration field's value. +func (s *ConfigurationItem) SetSupplementaryConfiguration(v map[string]*string) *ConfigurationItem { + s.SupplementaryConfiguration = v + return s +} + +// SetTags sets the Tags field's value. +func (s *ConfigurationItem) SetTags(v map[string]*string) *ConfigurationItem { + s.Tags = v + return s +} + +// SetVersion sets the Version field's value. +func (s *ConfigurationItem) SetVersion(v string) *ConfigurationItem { + s.Version = &v + return s +} + // An object that represents the recording of configuration changes of an AWS // resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ConfigurationRecorder type ConfigurationRecorder struct { _ struct{} `type:"structure"` @@ -2670,7 +3107,26 @@ func (s *ConfigurationRecorder) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *ConfigurationRecorder) SetName(v string) *ConfigurationRecorder { + s.Name = &v + return s +} + +// SetRecordingGroup sets the RecordingGroup field's value. +func (s *ConfigurationRecorder) SetRecordingGroup(v *RecordingGroup) *ConfigurationRecorder { + s.RecordingGroup = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *ConfigurationRecorder) SetRoleARN(v string) *ConfigurationRecorder { + s.RoleARN = &v + return s +} + // The current status of the configuration recorder. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ConfigurationRecorderStatus type ConfigurationRecorderStatus struct { _ struct{} `type:"structure"` @@ -2709,6 +3165,55 @@ func (s ConfigurationRecorderStatus) GoString() string { return s.String() } +// SetLastErrorCode sets the LastErrorCode field's value. +func (s *ConfigurationRecorderStatus) SetLastErrorCode(v string) *ConfigurationRecorderStatus { + s.LastErrorCode = &v + return s +} + +// SetLastErrorMessage sets the LastErrorMessage field's value. +func (s *ConfigurationRecorderStatus) SetLastErrorMessage(v string) *ConfigurationRecorderStatus { + s.LastErrorMessage = &v + return s +} + +// SetLastStartTime sets the LastStartTime field's value. +func (s *ConfigurationRecorderStatus) SetLastStartTime(v time.Time) *ConfigurationRecorderStatus { + s.LastStartTime = &v + return s +} + +// SetLastStatus sets the LastStatus field's value. +func (s *ConfigurationRecorderStatus) SetLastStatus(v string) *ConfigurationRecorderStatus { + s.LastStatus = &v + return s +} + +// SetLastStatusChangeTime sets the LastStatusChangeTime field's value. +func (s *ConfigurationRecorderStatus) SetLastStatusChangeTime(v time.Time) *ConfigurationRecorderStatus { + s.LastStatusChangeTime = &v + return s +} + +// SetLastStopTime sets the LastStopTime field's value. +func (s *ConfigurationRecorderStatus) SetLastStopTime(v time.Time) *ConfigurationRecorderStatus { + s.LastStopTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *ConfigurationRecorderStatus) SetName(v string) *ConfigurationRecorderStatus { + s.Name = &v + return s +} + +// SetRecording sets the Recording field's value. +func (s *ConfigurationRecorderStatus) SetRecording(v bool) *ConfigurationRecorderStatus { + s.Recording = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteConfigRuleRequest type DeleteConfigRuleInput struct { _ struct{} `type:"structure"` @@ -2744,6 +3249,13 @@ func (s *DeleteConfigRuleInput) Validate() error { return nil } +// SetConfigRuleName sets the ConfigRuleName field's value. +func (s *DeleteConfigRuleInput) SetConfigRuleName(v string) *DeleteConfigRuleInput { + s.ConfigRuleName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteConfigRuleOutput type DeleteConfigRuleOutput struct { _ struct{} `type:"structure"` } @@ -2759,6 +3271,7 @@ func (s DeleteConfigRuleOutput) GoString() string { } // The request object for the DeleteConfigurationRecorder action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteConfigurationRecorderRequest type DeleteConfigurationRecorderInput struct { _ struct{} `type:"structure"` @@ -2796,6 +3309,13 @@ func (s *DeleteConfigurationRecorderInput) Validate() error { return nil } +// SetConfigurationRecorderName sets the ConfigurationRecorderName field's value. +func (s *DeleteConfigurationRecorderInput) SetConfigurationRecorderName(v string) *DeleteConfigurationRecorderInput { + s.ConfigurationRecorderName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteConfigurationRecorderOutput type DeleteConfigurationRecorderOutput struct { _ struct{} `type:"structure"` } @@ -2812,6 +3332,7 @@ func (s DeleteConfigurationRecorderOutput) GoString() string { // The input for the DeleteDeliveryChannel action. The action accepts the following // data in JSON format. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteDeliveryChannelRequest type DeleteDeliveryChannelInput struct { _ struct{} `type:"structure"` @@ -2847,6 +3368,13 @@ func (s *DeleteDeliveryChannelInput) Validate() error { return nil } +// SetDeliveryChannelName sets the DeliveryChannelName field's value. +func (s *DeleteDeliveryChannelInput) SetDeliveryChannelName(v string) *DeleteDeliveryChannelInput { + s.DeliveryChannelName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteDeliveryChannelOutput type DeleteDeliveryChannelOutput struct { _ struct{} `type:"structure"` } @@ -2861,6 +3389,7 @@ func (s DeleteDeliveryChannelOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteEvaluationResultsRequest type DeleteEvaluationResultsInput struct { _ struct{} `type:"structure"` @@ -2896,8 +3425,15 @@ func (s *DeleteEvaluationResultsInput) Validate() error { return nil } +// SetConfigRuleName sets the ConfigRuleName field's value. +func (s *DeleteEvaluationResultsInput) SetConfigRuleName(v string) *DeleteEvaluationResultsInput { + s.ConfigRuleName = &v + return s +} + // The output when you delete the evaluation results for the specified Config // rule. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteEvaluationResultsResponse type DeleteEvaluationResultsOutput struct { _ struct{} `type:"structure"` } @@ -2913,6 +3449,7 @@ func (s DeleteEvaluationResultsOutput) GoString() string { } // The input for the DeliverConfigSnapshot action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeliverConfigSnapshotRequest type DeliverConfigSnapshotInput struct { _ struct{} `type:"structure"` @@ -2948,7 +3485,14 @@ func (s *DeliverConfigSnapshotInput) Validate() error { return nil } +// SetDeliveryChannelName sets the DeliveryChannelName field's value. +func (s *DeliverConfigSnapshotInput) SetDeliveryChannelName(v string) *DeliverConfigSnapshotInput { + s.DeliveryChannelName = &v + return s +} + // The output for the DeliverConfigSnapshot action in JSON format. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeliverConfigSnapshotResponse type DeliverConfigSnapshotOutput struct { _ struct{} `type:"structure"` @@ -2966,45 +3510,52 @@ func (s DeliverConfigSnapshotOutput) GoString() string { return s.String() } +// SetConfigSnapshotId sets the ConfigSnapshotId field's value. +func (s *DeliverConfigSnapshotOutput) SetConfigSnapshotId(v string) *DeliverConfigSnapshotOutput { + s.ConfigSnapshotId = &v + return s +} + // The channel through which AWS Config delivers notifications and updated configuration // states. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeliveryChannel type DeliveryChannel struct { _ struct{} `type:"structure"` // Provides options for how often AWS Config delivers configuration snapshots // to the Amazon S3 bucket in your delivery channel. // - // If you want to create a rule that triggers evaluations for your resources + // If you want to create a rule that triggers evaluations for your resources // when AWS Config delivers the configuration snapshot, see the following: // - // The frequency for a rule that triggers evaluations for your resources when + // The frequency for a rule that triggers evaluations for your resources when // AWS Config delivers the configuration snapshot is set by one of two values, // depending on which is less frequent: // - // The value for the deliveryFrequency parameter within the delivery channel - // configuration, which sets how often AWS Config delivers configuration snapshots. - // This value also sets how often AWS Config invokes evaluations for Config - // rules. + // * The value for the deliveryFrequency parameter within the delivery channel + // configuration, which sets how often AWS Config delivers configuration + // snapshots. This value also sets how often AWS Config invokes evaluations + // for Config rules. // - // The value for the MaximumExecutionFrequency parameter, which sets the - // maximum frequency with which AWS Config invokes evaluations for the rule. - // For more information, see ConfigRule. + // * The value for the MaximumExecutionFrequency parameter, which sets the + // maximum frequency with which AWS Config invokes evaluations for the rule. + // For more information, see ConfigRule. // - // If the deliveryFrequency value is less frequent than the MaximumExecutionFrequency + // If the deliveryFrequency value is less frequent than the MaximumExecutionFrequency // value for a rule, AWS Config invokes the rule only as often as the deliveryFrequency // value. // - // For example, you want your rule to run evaluations when AWS Config delivers + // For example, you want your rule to run evaluations when AWS Config delivers // the configuration snapshot. // - // You specify the MaximumExecutionFrequency value for Six_Hours. + // You specify the MaximumExecutionFrequency value for Six_Hours. // - // You then specify the delivery channel deliveryFrequency value for TwentyFour_Hours. + // You then specify the delivery channel deliveryFrequency value for TwentyFour_Hours. // - // Because the value for deliveryFrequency is less frequent than MaximumExecutionFrequency, + // Because the value for deliveryFrequency is less frequent than MaximumExecutionFrequency, // AWS Config invokes evaluations for the rule every 24 hours. // - // You should set the MaximumExecutionFrequency value to be at least as frequent + // You should set the MaximumExecutionFrequency value to be at least as frequent // as the deliveryFrequency value. You can view the deliveryFrequency value // by using the DescribeDeliveryChannnels action. // @@ -3064,9 +3615,40 @@ func (s *DeliveryChannel) Validate() error { return nil } +// SetConfigSnapshotDeliveryProperties sets the ConfigSnapshotDeliveryProperties field's value. +func (s *DeliveryChannel) SetConfigSnapshotDeliveryProperties(v *ConfigSnapshotDeliveryProperties) *DeliveryChannel { + s.ConfigSnapshotDeliveryProperties = v + return s +} + +// SetName sets the Name field's value. +func (s *DeliveryChannel) SetName(v string) *DeliveryChannel { + s.Name = &v + return s +} + +// SetS3BucketName sets the S3BucketName field's value. +func (s *DeliveryChannel) SetS3BucketName(v string) *DeliveryChannel { + s.S3BucketName = &v + return s +} + +// SetS3KeyPrefix sets the S3KeyPrefix field's value. +func (s *DeliveryChannel) SetS3KeyPrefix(v string) *DeliveryChannel { + s.S3KeyPrefix = &v + return s +} + +// SetSnsTopicARN sets the SnsTopicARN field's value. +func (s *DeliveryChannel) SetSnsTopicARN(v string) *DeliveryChannel { + s.SnsTopicARN = &v + return s +} + // The status of a specified delivery channel. // // Valid values: Success | Failure +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeliveryChannelStatus type DeliveryChannelStatus struct { _ struct{} `type:"structure"` @@ -3096,6 +3678,31 @@ func (s DeliveryChannelStatus) GoString() string { return s.String() } +// SetConfigHistoryDeliveryInfo sets the ConfigHistoryDeliveryInfo field's value. +func (s *DeliveryChannelStatus) SetConfigHistoryDeliveryInfo(v *ConfigExportDeliveryInfo) *DeliveryChannelStatus { + s.ConfigHistoryDeliveryInfo = v + return s +} + +// SetConfigSnapshotDeliveryInfo sets the ConfigSnapshotDeliveryInfo field's value. +func (s *DeliveryChannelStatus) SetConfigSnapshotDeliveryInfo(v *ConfigExportDeliveryInfo) *DeliveryChannelStatus { + s.ConfigSnapshotDeliveryInfo = v + return s +} + +// SetConfigStreamDeliveryInfo sets the ConfigStreamDeliveryInfo field's value. +func (s *DeliveryChannelStatus) SetConfigStreamDeliveryInfo(v *ConfigStreamDeliveryInfo) *DeliveryChannelStatus { + s.ConfigStreamDeliveryInfo = v + return s +} + +// SetName sets the Name field's value. +func (s *DeliveryChannelStatus) SetName(v string) *DeliveryChannelStatus { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeComplianceByConfigRuleRequest type DescribeComplianceByConfigRuleInput struct { _ struct{} `type:"structure"` @@ -3107,7 +3714,7 @@ type DescribeComplianceByConfigRuleInput struct { // Specify one or more AWS Config rule names to filter the results by rule. ConfigRuleNames []*string `type:"list"` - // The nextToken string returned on a previous page that you use to get the + // The NextToken string returned on a previous page that you use to get the // next page of results in a paginated response. NextToken *string `type:"string"` } @@ -3122,6 +3729,25 @@ func (s DescribeComplianceByConfigRuleInput) GoString() string { return s.String() } +// SetComplianceTypes sets the ComplianceTypes field's value. +func (s *DescribeComplianceByConfigRuleInput) SetComplianceTypes(v []*string) *DescribeComplianceByConfigRuleInput { + s.ComplianceTypes = v + return s +} + +// SetConfigRuleNames sets the ConfigRuleNames field's value. +func (s *DescribeComplianceByConfigRuleInput) SetConfigRuleNames(v []*string) *DescribeComplianceByConfigRuleInput { + s.ConfigRuleNames = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeComplianceByConfigRuleInput) SetNextToken(v string) *DescribeComplianceByConfigRuleInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeComplianceByConfigRuleResponse type DescribeComplianceByConfigRuleOutput struct { _ struct{} `type:"structure"` @@ -3143,6 +3769,19 @@ func (s DescribeComplianceByConfigRuleOutput) GoString() string { return s.String() } +// SetComplianceByConfigRules sets the ComplianceByConfigRules field's value. +func (s *DescribeComplianceByConfigRuleOutput) SetComplianceByConfigRules(v []*ComplianceByConfigRule) *DescribeComplianceByConfigRuleOutput { + s.ComplianceByConfigRules = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeComplianceByConfigRuleOutput) SetNextToken(v string) *DescribeComplianceByConfigRuleOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeComplianceByResourceRequest type DescribeComplianceByResourceInput struct { _ struct{} `type:"structure"` @@ -3156,7 +3795,7 @@ type DescribeComplianceByResourceInput struct { // Config uses the default. Limit *int64 `type:"integer"` - // The nextToken string returned on a previous page that you use to get the + // The NextToken string returned on a previous page that you use to get the // next page of results in a paginated response. NextToken *string `type:"string"` @@ -3197,6 +3836,37 @@ func (s *DescribeComplianceByResourceInput) Validate() error { return nil } +// SetComplianceTypes sets the ComplianceTypes field's value. +func (s *DescribeComplianceByResourceInput) SetComplianceTypes(v []*string) *DescribeComplianceByResourceInput { + s.ComplianceTypes = v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeComplianceByResourceInput) SetLimit(v int64) *DescribeComplianceByResourceInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeComplianceByResourceInput) SetNextToken(v string) *DescribeComplianceByResourceInput { + s.NextToken = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *DescribeComplianceByResourceInput) SetResourceId(v string) *DescribeComplianceByResourceInput { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *DescribeComplianceByResourceInput) SetResourceType(v string) *DescribeComplianceByResourceInput { + s.ResourceType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeComplianceByResourceResponse type DescribeComplianceByResourceOutput struct { _ struct{} `type:"structure"` @@ -3219,6 +3889,19 @@ func (s DescribeComplianceByResourceOutput) GoString() string { return s.String() } +// SetComplianceByResources sets the ComplianceByResources field's value. +func (s *DescribeComplianceByResourceOutput) SetComplianceByResources(v []*ComplianceByResource) *DescribeComplianceByResourceOutput { + s.ComplianceByResources = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeComplianceByResourceOutput) SetNextToken(v string) *DescribeComplianceByResourceOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigRuleEvaluationStatusRequest type DescribeConfigRuleEvaluationStatusInput struct { _ struct{} `type:"structure"` @@ -3226,6 +3909,20 @@ type DescribeConfigRuleEvaluationStatusInput struct { // If you do not specify any names, AWS Config returns status information for // all AWS managed Config rules that you use. ConfigRuleNames []*string `type:"list"` + + // The number of rule evaluation results that you want returned. + // + // This parameter is required if the rule limit for your account is more than + // the default of 50 rules. + // + // For more information about requesting a rule limit increase, see AWS Config + // Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_config) + // in the AWS General Reference Guide. + Limit *int64 `type:"integer"` + + // The NextToken string returned on a previous page that you use to get the + // next page of results in a paginated response. + NextToken *string `type:"string"` } // String returns the string representation @@ -3238,11 +3935,34 @@ func (s DescribeConfigRuleEvaluationStatusInput) GoString() string { return s.String() } +// SetConfigRuleNames sets the ConfigRuleNames field's value. +func (s *DescribeConfigRuleEvaluationStatusInput) SetConfigRuleNames(v []*string) *DescribeConfigRuleEvaluationStatusInput { + s.ConfigRuleNames = v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeConfigRuleEvaluationStatusInput) SetLimit(v int64) *DescribeConfigRuleEvaluationStatusInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeConfigRuleEvaluationStatusInput) SetNextToken(v string) *DescribeConfigRuleEvaluationStatusInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigRuleEvaluationStatusResponse type DescribeConfigRuleEvaluationStatusOutput struct { _ struct{} `type:"structure"` // Status information about your AWS managed Config rules. ConfigRulesEvaluationStatus []*ConfigRuleEvaluationStatus `type:"list"` + + // The string that you use in a subsequent request to get the next page of results + // in a paginated response. + NextToken *string `type:"string"` } // String returns the string representation @@ -3255,6 +3975,19 @@ func (s DescribeConfigRuleEvaluationStatusOutput) GoString() string { return s.String() } +// SetConfigRulesEvaluationStatus sets the ConfigRulesEvaluationStatus field's value. +func (s *DescribeConfigRuleEvaluationStatusOutput) SetConfigRulesEvaluationStatus(v []*ConfigRuleEvaluationStatus) *DescribeConfigRuleEvaluationStatusOutput { + s.ConfigRulesEvaluationStatus = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeConfigRuleEvaluationStatusOutput) SetNextToken(v string) *DescribeConfigRuleEvaluationStatusOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigRulesRequest type DescribeConfigRulesInput struct { _ struct{} `type:"structure"` @@ -3262,7 +3995,7 @@ type DescribeConfigRulesInput struct { // specify any names, AWS Config returns details for all your rules. ConfigRuleNames []*string `type:"list"` - // The nextToken string returned on a previous page that you use to get the + // The NextToken string returned on a previous page that you use to get the // next page of results in a paginated response. NextToken *string `type:"string"` } @@ -3277,6 +4010,19 @@ func (s DescribeConfigRulesInput) GoString() string { return s.String() } +// SetConfigRuleNames sets the ConfigRuleNames field's value. +func (s *DescribeConfigRulesInput) SetConfigRuleNames(v []*string) *DescribeConfigRulesInput { + s.ConfigRuleNames = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeConfigRulesInput) SetNextToken(v string) *DescribeConfigRulesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigRulesResponse type DescribeConfigRulesOutput struct { _ struct{} `type:"structure"` @@ -3298,7 +4044,20 @@ func (s DescribeConfigRulesOutput) GoString() string { return s.String() } +// SetConfigRules sets the ConfigRules field's value. +func (s *DescribeConfigRulesOutput) SetConfigRules(v []*ConfigRule) *DescribeConfigRulesOutput { + s.ConfigRules = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeConfigRulesOutput) SetNextToken(v string) *DescribeConfigRulesOutput { + s.NextToken = &v + return s +} + // The input for the DescribeConfigurationRecorderStatus action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigurationRecorderStatusRequest type DescribeConfigurationRecorderStatusInput struct { _ struct{} `type:"structure"` @@ -3318,7 +4077,14 @@ func (s DescribeConfigurationRecorderStatusInput) GoString() string { return s.String() } +// SetConfigurationRecorderNames sets the ConfigurationRecorderNames field's value. +func (s *DescribeConfigurationRecorderStatusInput) SetConfigurationRecorderNames(v []*string) *DescribeConfigurationRecorderStatusInput { + s.ConfigurationRecorderNames = v + return s +} + // The output for the DescribeConfigurationRecorderStatus action in JSON format. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigurationRecorderStatusResponse type DescribeConfigurationRecorderStatusOutput struct { _ struct{} `type:"structure"` @@ -3336,7 +4102,14 @@ func (s DescribeConfigurationRecorderStatusOutput) GoString() string { return s.String() } +// SetConfigurationRecordersStatus sets the ConfigurationRecordersStatus field's value. +func (s *DescribeConfigurationRecorderStatusOutput) SetConfigurationRecordersStatus(v []*ConfigurationRecorderStatus) *DescribeConfigurationRecorderStatusOutput { + s.ConfigurationRecordersStatus = v + return s +} + // The input for the DescribeConfigurationRecorders action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigurationRecordersRequest type DescribeConfigurationRecordersInput struct { _ struct{} `type:"structure"` @@ -3354,7 +4127,14 @@ func (s DescribeConfigurationRecordersInput) GoString() string { return s.String() } +// SetConfigurationRecorderNames sets the ConfigurationRecorderNames field's value. +func (s *DescribeConfigurationRecordersInput) SetConfigurationRecorderNames(v []*string) *DescribeConfigurationRecordersInput { + s.ConfigurationRecorderNames = v + return s +} + // The output for the DescribeConfigurationRecorders action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigurationRecordersResponse type DescribeConfigurationRecordersOutput struct { _ struct{} `type:"structure"` @@ -3372,7 +4152,14 @@ func (s DescribeConfigurationRecordersOutput) GoString() string { return s.String() } +// SetConfigurationRecorders sets the ConfigurationRecorders field's value. +func (s *DescribeConfigurationRecordersOutput) SetConfigurationRecorders(v []*ConfigurationRecorder) *DescribeConfigurationRecordersOutput { + s.ConfigurationRecorders = v + return s +} + // The input for the DeliveryChannelStatus action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeDeliveryChannelStatusRequest type DescribeDeliveryChannelStatusInput struct { _ struct{} `type:"structure"` @@ -3390,7 +4177,14 @@ func (s DescribeDeliveryChannelStatusInput) GoString() string { return s.String() } +// SetDeliveryChannelNames sets the DeliveryChannelNames field's value. +func (s *DescribeDeliveryChannelStatusInput) SetDeliveryChannelNames(v []*string) *DescribeDeliveryChannelStatusInput { + s.DeliveryChannelNames = v + return s +} + // The output for the DescribeDeliveryChannelStatus action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeDeliveryChannelStatusResponse type DescribeDeliveryChannelStatusOutput struct { _ struct{} `type:"structure"` @@ -3408,7 +4202,14 @@ func (s DescribeDeliveryChannelStatusOutput) GoString() string { return s.String() } +// SetDeliveryChannelsStatus sets the DeliveryChannelsStatus field's value. +func (s *DescribeDeliveryChannelStatusOutput) SetDeliveryChannelsStatus(v []*DeliveryChannelStatus) *DescribeDeliveryChannelStatusOutput { + s.DeliveryChannelsStatus = v + return s +} + // The input for the DescribeDeliveryChannels action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeDeliveryChannelsRequest type DescribeDeliveryChannelsInput struct { _ struct{} `type:"structure"` @@ -3426,7 +4227,14 @@ func (s DescribeDeliveryChannelsInput) GoString() string { return s.String() } +// SetDeliveryChannelNames sets the DeliveryChannelNames field's value. +func (s *DescribeDeliveryChannelsInput) SetDeliveryChannelNames(v []*string) *DescribeDeliveryChannelsInput { + s.DeliveryChannelNames = v + return s +} + // The output for the DescribeDeliveryChannels action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeDeliveryChannelsResponse type DescribeDeliveryChannelsOutput struct { _ struct{} `type:"structure"` @@ -3444,8 +4252,15 @@ func (s DescribeDeliveryChannelsOutput) GoString() string { return s.String() } +// SetDeliveryChannels sets the DeliveryChannels field's value. +func (s *DescribeDeliveryChannelsOutput) SetDeliveryChannels(v []*DeliveryChannel) *DescribeDeliveryChannelsOutput { + s.DeliveryChannels = v + return s +} + // Identifies an AWS resource and indicates whether it complies with the AWS // Config rule that it was evaluated against. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/Evaluation type Evaluation struct { _ struct{} `type:"structure"` @@ -3480,7 +4295,8 @@ type Evaluation struct { // The time of the event in AWS Config that triggered the evaluation. For event-based // evaluations, the time indicates when AWS Config created the configuration // item that triggered the evaluation. For periodic evaluations, the time indicates - // when AWS Config delivered the configuration snapshot that triggered the evaluation. + // when AWS Config triggered the evaluation at the frequency that you specified + // (for example, every 24 hours). // // OrderingTimestamp is a required field OrderingTimestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` @@ -3527,9 +4343,40 @@ func (s *Evaluation) Validate() error { return nil } +// SetAnnotation sets the Annotation field's value. +func (s *Evaluation) SetAnnotation(v string) *Evaluation { + s.Annotation = &v + return s +} + +// SetComplianceResourceId sets the ComplianceResourceId field's value. +func (s *Evaluation) SetComplianceResourceId(v string) *Evaluation { + s.ComplianceResourceId = &v + return s +} + +// SetComplianceResourceType sets the ComplianceResourceType field's value. +func (s *Evaluation) SetComplianceResourceType(v string) *Evaluation { + s.ComplianceResourceType = &v + return s +} + +// SetComplianceType sets the ComplianceType field's value. +func (s *Evaluation) SetComplianceType(v string) *Evaluation { + s.ComplianceType = &v + return s +} + +// SetOrderingTimestamp sets the OrderingTimestamp field's value. +func (s *Evaluation) SetOrderingTimestamp(v time.Time) *Evaluation { + s.OrderingTimestamp = &v + return s +} + // The details of an AWS Config evaluation. Provides the AWS resource that was // evaluated, the compliance of the resource, related timestamps, and supplementary // information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/EvaluationResult type EvaluationResult struct { _ struct{} `type:"structure"` @@ -3569,7 +4416,44 @@ func (s EvaluationResult) GoString() string { return s.String() } +// SetAnnotation sets the Annotation field's value. +func (s *EvaluationResult) SetAnnotation(v string) *EvaluationResult { + s.Annotation = &v + return s +} + +// SetComplianceType sets the ComplianceType field's value. +func (s *EvaluationResult) SetComplianceType(v string) *EvaluationResult { + s.ComplianceType = &v + return s +} + +// SetConfigRuleInvokedTime sets the ConfigRuleInvokedTime field's value. +func (s *EvaluationResult) SetConfigRuleInvokedTime(v time.Time) *EvaluationResult { + s.ConfigRuleInvokedTime = &v + return s +} + +// SetEvaluationResultIdentifier sets the EvaluationResultIdentifier field's value. +func (s *EvaluationResult) SetEvaluationResultIdentifier(v *EvaluationResultIdentifier) *EvaluationResult { + s.EvaluationResultIdentifier = v + return s +} + +// SetResultRecordedTime sets the ResultRecordedTime field's value. +func (s *EvaluationResult) SetResultRecordedTime(v time.Time) *EvaluationResult { + s.ResultRecordedTime = &v + return s +} + +// SetResultToken sets the ResultToken field's value. +func (s *EvaluationResult) SetResultToken(v string) *EvaluationResult { + s.ResultToken = &v + return s +} + // Uniquely identifies an evaluation result. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/EvaluationResultIdentifier type EvaluationResultIdentifier struct { _ struct{} `type:"structure"` @@ -3594,8 +4478,21 @@ func (s EvaluationResultIdentifier) GoString() string { return s.String() } +// SetEvaluationResultQualifier sets the EvaluationResultQualifier field's value. +func (s *EvaluationResultIdentifier) SetEvaluationResultQualifier(v *EvaluationResultQualifier) *EvaluationResultIdentifier { + s.EvaluationResultQualifier = v + return s +} + +// SetOrderingTimestamp sets the OrderingTimestamp field's value. +func (s *EvaluationResultIdentifier) SetOrderingTimestamp(v time.Time) *EvaluationResultIdentifier { + s.OrderingTimestamp = &v + return s +} + // Identifies an AWS Config rule that evaluated an AWS resource, and provides // the type and ID of the resource that the rule evaluated. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/EvaluationResultQualifier type EvaluationResultQualifier struct { _ struct{} `type:"structure"` @@ -3619,6 +4516,25 @@ func (s EvaluationResultQualifier) GoString() string { return s.String() } +// SetConfigRuleName sets the ConfigRuleName field's value. +func (s *EvaluationResultQualifier) SetConfigRuleName(v string) *EvaluationResultQualifier { + s.ConfigRuleName = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *EvaluationResultQualifier) SetResourceId(v string) *EvaluationResultQualifier { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *EvaluationResultQualifier) SetResourceType(v string) *EvaluationResultQualifier { + s.ResourceType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetComplianceDetailsByConfigRuleRequest type GetComplianceDetailsByConfigRuleInput struct { _ struct{} `type:"structure"` @@ -3637,7 +4553,7 @@ type GetComplianceDetailsByConfigRuleInput struct { // Config uses the default. Limit *int64 `type:"integer"` - // The nextToken string returned on a previous page that you use to get the + // The NextToken string returned on a previous page that you use to get the // next page of results in a paginated response. NextToken *string `type:"string"` } @@ -3668,6 +4584,31 @@ func (s *GetComplianceDetailsByConfigRuleInput) Validate() error { return nil } +// SetComplianceTypes sets the ComplianceTypes field's value. +func (s *GetComplianceDetailsByConfigRuleInput) SetComplianceTypes(v []*string) *GetComplianceDetailsByConfigRuleInput { + s.ComplianceTypes = v + return s +} + +// SetConfigRuleName sets the ConfigRuleName field's value. +func (s *GetComplianceDetailsByConfigRuleInput) SetConfigRuleName(v string) *GetComplianceDetailsByConfigRuleInput { + s.ConfigRuleName = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *GetComplianceDetailsByConfigRuleInput) SetLimit(v int64) *GetComplianceDetailsByConfigRuleInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetComplianceDetailsByConfigRuleInput) SetNextToken(v string) *GetComplianceDetailsByConfigRuleInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetComplianceDetailsByConfigRuleResponse type GetComplianceDetailsByConfigRuleOutput struct { _ struct{} `type:"structure"` @@ -3690,6 +4631,19 @@ func (s GetComplianceDetailsByConfigRuleOutput) GoString() string { return s.String() } +// SetEvaluationResults sets the EvaluationResults field's value. +func (s *GetComplianceDetailsByConfigRuleOutput) SetEvaluationResults(v []*EvaluationResult) *GetComplianceDetailsByConfigRuleOutput { + s.EvaluationResults = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetComplianceDetailsByConfigRuleOutput) SetNextToken(v string) *GetComplianceDetailsByConfigRuleOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetComplianceDetailsByResourceRequest type GetComplianceDetailsByResourceInput struct { _ struct{} `type:"structure"` @@ -3698,7 +4652,7 @@ type GetComplianceDetailsByResourceInput struct { // The allowed values are COMPLIANT, NON_COMPLIANT, and NOT_APPLICABLE. ComplianceTypes []*string `type:"list"` - // The nextToken string returned on a previous page that you use to get the + // The NextToken string returned on a previous page that you use to get the // next page of results in a paginated response. NextToken *string `type:"string"` @@ -3745,6 +4699,31 @@ func (s *GetComplianceDetailsByResourceInput) Validate() error { return nil } +// SetComplianceTypes sets the ComplianceTypes field's value. +func (s *GetComplianceDetailsByResourceInput) SetComplianceTypes(v []*string) *GetComplianceDetailsByResourceInput { + s.ComplianceTypes = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetComplianceDetailsByResourceInput) SetNextToken(v string) *GetComplianceDetailsByResourceInput { + s.NextToken = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *GetComplianceDetailsByResourceInput) SetResourceId(v string) *GetComplianceDetailsByResourceInput { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *GetComplianceDetailsByResourceInput) SetResourceType(v string) *GetComplianceDetailsByResourceInput { + s.ResourceType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetComplianceDetailsByResourceResponse type GetComplianceDetailsByResourceOutput struct { _ struct{} `type:"structure"` @@ -3766,6 +4745,19 @@ func (s GetComplianceDetailsByResourceOutput) GoString() string { return s.String() } +// SetEvaluationResults sets the EvaluationResults field's value. +func (s *GetComplianceDetailsByResourceOutput) SetEvaluationResults(v []*EvaluationResult) *GetComplianceDetailsByResourceOutput { + s.EvaluationResults = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetComplianceDetailsByResourceOutput) SetNextToken(v string) *GetComplianceDetailsByResourceOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetComplianceSummaryByConfigRuleInput type GetComplianceSummaryByConfigRuleInput struct { _ struct{} `type:"structure"` } @@ -3780,6 +4772,7 @@ func (s GetComplianceSummaryByConfigRuleInput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetComplianceSummaryByConfigRuleResponse type GetComplianceSummaryByConfigRuleOutput struct { _ struct{} `type:"structure"` @@ -3798,6 +4791,13 @@ func (s GetComplianceSummaryByConfigRuleOutput) GoString() string { return s.String() } +// SetComplianceSummary sets the ComplianceSummary field's value. +func (s *GetComplianceSummaryByConfigRuleOutput) SetComplianceSummary(v *ComplianceSummary) *GetComplianceSummaryByConfigRuleOutput { + s.ComplianceSummary = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetComplianceSummaryByResourceTypeRequest type GetComplianceSummaryByResourceTypeInput struct { _ struct{} `type:"structure"` @@ -3820,6 +4820,13 @@ func (s GetComplianceSummaryByResourceTypeInput) GoString() string { return s.String() } +// SetResourceTypes sets the ResourceTypes field's value. +func (s *GetComplianceSummaryByResourceTypeInput) SetResourceTypes(v []*string) *GetComplianceSummaryByResourceTypeInput { + s.ResourceTypes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetComplianceSummaryByResourceTypeResponse type GetComplianceSummaryByResourceTypeOutput struct { _ struct{} `type:"structure"` @@ -3839,7 +4846,14 @@ func (s GetComplianceSummaryByResourceTypeOutput) GoString() string { return s.String() } +// SetComplianceSummariesByResourceType sets the ComplianceSummariesByResourceType field's value. +func (s *GetComplianceSummaryByResourceTypeOutput) SetComplianceSummariesByResourceType(v []*ComplianceSummaryByResourceType) *GetComplianceSummaryByResourceTypeOutput { + s.ComplianceSummariesByResourceType = v + return s +} + // The input for the GetResourceConfigHistory action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetResourceConfigHistoryRequest type GetResourceConfigHistoryInput struct { _ struct{} `type:"structure"` @@ -3902,7 +4916,50 @@ func (s *GetResourceConfigHistoryInput) Validate() error { return nil } +// SetChronologicalOrder sets the ChronologicalOrder field's value. +func (s *GetResourceConfigHistoryInput) SetChronologicalOrder(v string) *GetResourceConfigHistoryInput { + s.ChronologicalOrder = &v + return s +} + +// SetEarlierTime sets the EarlierTime field's value. +func (s *GetResourceConfigHistoryInput) SetEarlierTime(v time.Time) *GetResourceConfigHistoryInput { + s.EarlierTime = &v + return s +} + +// SetLaterTime sets the LaterTime field's value. +func (s *GetResourceConfigHistoryInput) SetLaterTime(v time.Time) *GetResourceConfigHistoryInput { + s.LaterTime = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *GetResourceConfigHistoryInput) SetLimit(v int64) *GetResourceConfigHistoryInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetResourceConfigHistoryInput) SetNextToken(v string) *GetResourceConfigHistoryInput { + s.NextToken = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *GetResourceConfigHistoryInput) SetResourceId(v string) *GetResourceConfigHistoryInput { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *GetResourceConfigHistoryInput) SetResourceType(v string) *GetResourceConfigHistoryInput { + s.ResourceType = &v + return s +} + // The output for the GetResourceConfigHistory action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetResourceConfigHistoryResponse type GetResourceConfigHistoryOutput struct { _ struct{} `type:"structure"` @@ -3924,6 +4981,19 @@ func (s GetResourceConfigHistoryOutput) GoString() string { return s.String() } +// SetConfigurationItems sets the ConfigurationItems field's value. +func (s *GetResourceConfigHistoryOutput) SetConfigurationItems(v []*ConfigurationItem) *GetResourceConfigHistoryOutput { + s.ConfigurationItems = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetResourceConfigHistoryOutput) SetNextToken(v string) *GetResourceConfigHistoryOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ListDiscoveredResourcesRequest type ListDiscoveredResourcesInput struct { _ struct{} `type:"structure"` @@ -3979,6 +5049,43 @@ func (s *ListDiscoveredResourcesInput) Validate() error { return nil } +// SetIncludeDeletedResources sets the IncludeDeletedResources field's value. +func (s *ListDiscoveredResourcesInput) SetIncludeDeletedResources(v bool) *ListDiscoveredResourcesInput { + s.IncludeDeletedResources = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListDiscoveredResourcesInput) SetLimit(v int64) *ListDiscoveredResourcesInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDiscoveredResourcesInput) SetNextToken(v string) *ListDiscoveredResourcesInput { + s.NextToken = &v + return s +} + +// SetResourceIds sets the ResourceIds field's value. +func (s *ListDiscoveredResourcesInput) SetResourceIds(v []*string) *ListDiscoveredResourcesInput { + s.ResourceIds = v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *ListDiscoveredResourcesInput) SetResourceName(v string) *ListDiscoveredResourcesInput { + s.ResourceName = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ListDiscoveredResourcesInput) SetResourceType(v string) *ListDiscoveredResourcesInput { + s.ResourceType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ListDiscoveredResourcesResponse type ListDiscoveredResourcesOutput struct { _ struct{} `type:"structure"` @@ -4001,6 +5108,19 @@ func (s ListDiscoveredResourcesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListDiscoveredResourcesOutput) SetNextToken(v string) *ListDiscoveredResourcesOutput { + s.NextToken = &v + return s +} + +// SetResourceIdentifiers sets the ResourceIdentifiers field's value. +func (s *ListDiscoveredResourcesOutput) SetResourceIdentifiers(v []*ResourceIdentifier) *ListDiscoveredResourcesOutput { + s.ResourceIdentifiers = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutConfigRuleRequest type PutConfigRuleInput struct { _ struct{} `type:"structure"` @@ -4011,11 +5131,11 @@ type PutConfigRuleInput struct { // a configuration change to an AWS resource and at a periodic frequency that // you choose (for example, every 24 hours). // - // You can use the AWS CLI and AWS SDKs if you want to create a rule that - // triggers evaluations for your resources when AWS Config delivers the configuration + // You can use the AWS CLI and AWS SDKs if you want to create a rule that triggers + // evaluations for your resources when AWS Config delivers the configuration // snapshot. For more information, see ConfigSnapshotDeliveryProperties. // - // For more information about developing and using AWS Config rules, see Evaluating + // For more information about developing and using AWS Config rules, see Evaluating // AWS Resource Configurations with AWS Config (http://docs.aws.amazon.com/config/latest/developerguide/evaluate-config.html) // in the AWS Config Developer Guide. // @@ -4051,6 +5171,13 @@ func (s *PutConfigRuleInput) Validate() error { return nil } +// SetConfigRule sets the ConfigRule field's value. +func (s *PutConfigRuleInput) SetConfigRule(v *ConfigRule) *PutConfigRuleInput { + s.ConfigRule = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutConfigRuleOutput type PutConfigRuleOutput struct { _ struct{} `type:"structure"` } @@ -4066,6 +5193,7 @@ func (s PutConfigRuleOutput) GoString() string { } // The input for the PutConfigurationRecorder action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutConfigurationRecorderRequest type PutConfigurationRecorderInput struct { _ struct{} `type:"structure"` @@ -4104,6 +5232,13 @@ func (s *PutConfigurationRecorderInput) Validate() error { return nil } +// SetConfigurationRecorder sets the ConfigurationRecorder field's value. +func (s *PutConfigurationRecorderInput) SetConfigurationRecorder(v *ConfigurationRecorder) *PutConfigurationRecorderInput { + s.ConfigurationRecorder = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutConfigurationRecorderOutput type PutConfigurationRecorderOutput struct { _ struct{} `type:"structure"` } @@ -4119,6 +5254,7 @@ func (s PutConfigurationRecorderOutput) GoString() string { } // The input for the PutDeliveryChannel action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutDeliveryChannelRequest type PutDeliveryChannelInput struct { _ struct{} `type:"structure"` @@ -4157,6 +5293,13 @@ func (s *PutDeliveryChannelInput) Validate() error { return nil } +// SetDeliveryChannel sets the DeliveryChannel field's value. +func (s *PutDeliveryChannelInput) SetDeliveryChannel(v *DeliveryChannel) *PutDeliveryChannelInput { + s.DeliveryChannel = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutDeliveryChannelOutput type PutDeliveryChannelOutput struct { _ struct{} `type:"structure"` } @@ -4171,6 +5314,7 @@ func (s PutDeliveryChannelOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutEvaluationsRequest type PutEvaluationsInput struct { _ struct{} `type:"structure"` @@ -4184,6 +5328,15 @@ type PutEvaluationsInput struct { // // ResultToken is a required field ResultToken *string `type:"string" required:"true"` + + // Use this parameter to specify a test run for PutEvaluations. You can verify + // whether your AWS Lambda function will deliver evaluation results to AWS Config. + // No updates occur to your existing evaluations, and evaluation results are + // not sent to AWS Config. + // + // When TestMode is true, PutEvaluations doesn't require a valid value for the + // ResultToken parameter, but the value cannot be null. + TestMode *bool `type:"boolean"` } // String returns the string representation @@ -4219,6 +5372,25 @@ func (s *PutEvaluationsInput) Validate() error { return nil } +// SetEvaluations sets the Evaluations field's value. +func (s *PutEvaluationsInput) SetEvaluations(v []*Evaluation) *PutEvaluationsInput { + s.Evaluations = v + return s +} + +// SetResultToken sets the ResultToken field's value. +func (s *PutEvaluationsInput) SetResultToken(v string) *PutEvaluationsInput { + s.ResultToken = &v + return s +} + +// SetTestMode sets the TestMode field's value. +func (s *PutEvaluationsInput) SetTestMode(v bool) *PutEvaluationsInput { + s.TestMode = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutEvaluationsResponse type PutEvaluationsOutput struct { _ struct{} `type:"structure"` @@ -4236,6 +5408,12 @@ func (s PutEvaluationsOutput) GoString() string { return s.String() } +// SetFailedEvaluations sets the FailedEvaluations field's value. +func (s *PutEvaluationsOutput) SetFailedEvaluations(v []*Evaluation) *PutEvaluationsOutput { + s.FailedEvaluations = v + return s +} + // Specifies the types of AWS resource for which AWS Config records configuration // changes. // @@ -4248,11 +5426,11 @@ func (s PutEvaluationsOutput) GoString() string { // in that region. Examples of regional resources are EC2 instances and EBS // volumes. // -// You can also have AWS Config record configuration changes for supported -// types of global resources (for example, IAM resources). Global resources -// are not tied to an individual region and can be used in all regions. +// You can also have AWS Config record configuration changes for supported types +// of global resources (for example, IAM resources). Global resources are not +// tied to an individual region and can be used in all regions. // -// The configuration details for any global resource are the same in all regions. +// The configuration details for any global resource are the same in all regions. // If you customize AWS Config in multiple regions to record global resources, // it will create multiple configuration items each time a global resource changes: // one configuration item for each region. These configuration items will contain @@ -4260,12 +5438,13 @@ func (s PutEvaluationsOutput) GoString() string { // customizing AWS Config in only one region to record global resources, unless // you want the configuration items to be available in multiple regions. // -// If you don't want AWS Config to record all resources, you can specify which +// If you don't want AWS Config to record all resources, you can specify which // types of resources it will record with the resourceTypes parameter. // // For a list of supported resource types, see Supported resource types (http://docs.aws.amazon.com/config/latest/developerguide/resource-config-reference.html#supported-resources). // // For more information, see Selecting Which Resources AWS Config Records (http://docs.aws.amazon.com/config/latest/developerguide/select-resources.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/RecordingGroup type RecordingGroup struct { _ struct{} `type:"structure"` @@ -4319,7 +5498,26 @@ func (s RecordingGroup) GoString() string { return s.String() } +// SetAllSupported sets the AllSupported field's value. +func (s *RecordingGroup) SetAllSupported(v bool) *RecordingGroup { + s.AllSupported = &v + return s +} + +// SetIncludeGlobalResourceTypes sets the IncludeGlobalResourceTypes field's value. +func (s *RecordingGroup) SetIncludeGlobalResourceTypes(v bool) *RecordingGroup { + s.IncludeGlobalResourceTypes = &v + return s +} + +// SetResourceTypes sets the ResourceTypes field's value. +func (s *RecordingGroup) SetResourceTypes(v []*string) *RecordingGroup { + s.ResourceTypes = v + return s +} + // The relationship of the related resource to the main resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/Relationship type Relationship struct { _ struct{} `type:"structure"` @@ -4346,8 +5544,33 @@ func (s Relationship) GoString() string { return s.String() } +// SetRelationshipName sets the RelationshipName field's value. +func (s *Relationship) SetRelationshipName(v string) *Relationship { + s.RelationshipName = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *Relationship) SetResourceId(v string) *Relationship { + s.ResourceId = &v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *Relationship) SetResourceName(v string) *Relationship { + s.ResourceName = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *Relationship) SetResourceType(v string) *Relationship { + s.ResourceType = &v + return s +} + // The details that identify a resource that is discovered by AWS Config, including // the resource type, ID, and (if available) the custom resource name. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ResourceIdentifier type ResourceIdentifier struct { _ struct{} `type:"structure"` @@ -4374,12 +5597,37 @@ func (s ResourceIdentifier) GoString() string { return s.String() } +// SetResourceDeletionTime sets the ResourceDeletionTime field's value. +func (s *ResourceIdentifier) SetResourceDeletionTime(v time.Time) *ResourceIdentifier { + s.ResourceDeletionTime = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *ResourceIdentifier) SetResourceId(v string) *ResourceIdentifier { + s.ResourceId = &v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *ResourceIdentifier) SetResourceName(v string) *ResourceIdentifier { + s.ResourceName = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ResourceIdentifier) SetResourceType(v string) *ResourceIdentifier { + s.ResourceType = &v + return s +} + // Defines which resources trigger an evaluation for an AWS Config rule. The // scope can include one or more resource types, a combination of a tag key // and value, or a combination of one resource type and one resource ID. Specify // a scope to constrain which resources trigger an evaluation for a rule. Otherwise, // evaluations for the rule are triggered when any resource in your recording // group changes in configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/Scope type Scope struct { _ struct{} `type:"structure"` @@ -4432,13 +5680,40 @@ func (s *Scope) Validate() error { return nil } +// SetComplianceResourceId sets the ComplianceResourceId field's value. +func (s *Scope) SetComplianceResourceId(v string) *Scope { + s.ComplianceResourceId = &v + return s +} + +// SetComplianceResourceTypes sets the ComplianceResourceTypes field's value. +func (s *Scope) SetComplianceResourceTypes(v []*string) *Scope { + s.ComplianceResourceTypes = v + return s +} + +// SetTagKey sets the TagKey field's value. +func (s *Scope) SetTagKey(v string) *Scope { + s.TagKey = &v + return s +} + +// SetTagValue sets the TagValue field's value. +func (s *Scope) SetTagValue(v string) *Scope { + s.TagValue = &v + return s +} + // Provides the AWS Config rule owner (AWS or customer), the rule identifier, // and the events that trigger the evaluation of your AWS resources. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/Source type Source struct { _ struct{} `type:"structure"` // Indicates whether AWS or the customer owns and manages the AWS Config rule. - Owner *string `type:"string" enum:"Owner"` + // + // Owner is a required field + Owner *string `type:"string" required:"true" enum:"Owner"` // Provides the source and type of the event that causes AWS Config to evaluate // your AWS resources. @@ -4450,7 +5725,9 @@ type Source struct { // // For custom rules, the identifier is the Amazon Resource Name (ARN) of the // rule's AWS Lambda function, such as arn:aws:lambda:us-east-1:123456789012:function:custom_rule_name. - SourceIdentifier *string `min:"1" type:"string"` + // + // SourceIdentifier is a required field + SourceIdentifier *string `min:"1" type:"string" required:"true"` } // String returns the string representation @@ -4466,6 +5743,12 @@ func (s Source) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *Source) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Source"} + if s.Owner == nil { + invalidParams.Add(request.NewErrParamRequired("Owner")) + } + if s.SourceIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("SourceIdentifier")) + } if s.SourceIdentifier != nil && len(*s.SourceIdentifier) < 1 { invalidParams.Add(request.NewErrParamMinLen("SourceIdentifier", 1)) } @@ -4476,11 +5759,30 @@ func (s *Source) Validate() error { return nil } +// SetOwner sets the Owner field's value. +func (s *Source) SetOwner(v string) *Source { + s.Owner = &v + return s +} + +// SetSourceDetails sets the SourceDetails field's value. +func (s *Source) SetSourceDetails(v []*SourceDetail) *Source { + s.SourceDetails = v + return s +} + +// SetSourceIdentifier sets the SourceIdentifier field's value. +func (s *Source) SetSourceIdentifier(v string) *Source { + s.SourceIdentifier = &v + return s +} + // Provides the source and the message types that trigger AWS Config to evaluate // your AWS resources against a rule. It also provides the frequency with which // you want AWS Config to run evaluations for the rule if the trigger type is // periodic. You can specify the parameter values for SourceDetail only for // custom rules. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/SourceDetail type SourceDetail struct { _ struct{} `type:"structure"` @@ -4493,17 +5795,25 @@ type SourceDetail struct { // then MessageType must use the ScheduledNotification value. MaximumExecutionFrequency *string `type:"string" enum:"MaximumExecutionFrequency"` - // The type of notification that triggers AWS Config to run an evaluation. You - // can specify the following notification types: + // The type of notification that triggers AWS Config to run an evaluation for + // a rule. You can specify the following notification types: // - // ConfigurationItemChangeNotification - Triggers an evaluation when AWS Config - // delivers a configuration item change notification. + // * ConfigurationItemChangeNotification - Triggers an evaluation when AWS + // Config delivers a configuration item as a result of a resource change. // - // ScheduledNotification - Triggers a periodic evaluation at the frequency - // specified for MaximumExecutionFrequency. + // * OversizedConfigurationItemChangeNotification - Triggers an evaluation + // when AWS Config delivers an oversized configuration item. AWS Config may + // generate this notification type when a resource changes and the notification + // exceeds the maximum size allowed by Amazon SNS. // - // ConfigurationSnapshotDeliveryCompleted - Triggers a periodic evaluation - // when AWS Config delivers a configuration snapshot. + // * ScheduledNotification - Triggers a periodic evaluation at the frequency + // specified for MaximumExecutionFrequency. + // + // * ConfigurationSnapshotDeliveryCompleted - Triggers a periodic evaluation + // when AWS Config delivers a configuration snapshot. + // + // If you want your custom rule to be triggered by configuration changes, specify + // both ConfigurationItemChangeNotification and OversizedConfigurationItemChangeNotification. MessageType *string `type:"string" enum:"MessageType"` } @@ -4517,6 +5827,25 @@ func (s SourceDetail) GoString() string { return s.String() } +// SetEventSource sets the EventSource field's value. +func (s *SourceDetail) SetEventSource(v string) *SourceDetail { + s.EventSource = &v + return s +} + +// SetMaximumExecutionFrequency sets the MaximumExecutionFrequency field's value. +func (s *SourceDetail) SetMaximumExecutionFrequency(v string) *SourceDetail { + s.MaximumExecutionFrequency = &v + return s +} + +// SetMessageType sets the MessageType field's value. +func (s *SourceDetail) SetMessageType(v string) *SourceDetail { + s.MessageType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/StartConfigRulesEvaluationRequest type StartConfigRulesEvaluationInput struct { _ struct{} `type:"structure"` @@ -4547,7 +5876,14 @@ func (s *StartConfigRulesEvaluationInput) Validate() error { return nil } +// SetConfigRuleNames sets the ConfigRuleNames field's value. +func (s *StartConfigRulesEvaluationInput) SetConfigRuleNames(v []*string) *StartConfigRulesEvaluationInput { + s.ConfigRuleNames = v + return s +} + // The output when you start the evaluation for the specified Config rule. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/StartConfigRulesEvaluationResponse type StartConfigRulesEvaluationOutput struct { _ struct{} `type:"structure"` } @@ -4563,6 +5899,7 @@ func (s StartConfigRulesEvaluationOutput) GoString() string { } // The input for the StartConfigurationRecorder action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/StartConfigurationRecorderRequest type StartConfigurationRecorderInput struct { _ struct{} `type:"structure"` @@ -4599,6 +5936,13 @@ func (s *StartConfigurationRecorderInput) Validate() error { return nil } +// SetConfigurationRecorderName sets the ConfigurationRecorderName field's value. +func (s *StartConfigurationRecorderInput) SetConfigurationRecorderName(v string) *StartConfigurationRecorderInput { + s.ConfigurationRecorderName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/StartConfigurationRecorderOutput type StartConfigurationRecorderOutput struct { _ struct{} `type:"structure"` } @@ -4614,6 +5958,7 @@ func (s StartConfigurationRecorderOutput) GoString() string { } // The input for the StopConfigurationRecorder action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/StopConfigurationRecorderRequest type StopConfigurationRecorderInput struct { _ struct{} `type:"structure"` @@ -4650,6 +5995,13 @@ func (s *StopConfigurationRecorderInput) Validate() error { return nil } +// SetConfigurationRecorderName sets the ConfigurationRecorderName field's value. +func (s *StopConfigurationRecorderInput) SetConfigurationRecorderName(v string) *StopConfigurationRecorderInput { + s.ConfigurationRecorderName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/StopConfigurationRecorderOutput type StopConfigurationRecorderOutput struct { _ struct{} `type:"structure"` } @@ -4756,6 +6108,9 @@ const ( // MessageTypeScheduledNotification is a MessageType enum value MessageTypeScheduledNotification = "ScheduledNotification" + + // MessageTypeOversizedConfigurationItemChangeNotification is a MessageType enum value + MessageTypeOversizedConfigurationItemChangeNotification = "OversizedConfigurationItemChangeNotification" ) const ( @@ -4858,4 +6213,25 @@ const ( // ResourceTypeAwsS3Bucket is a ResourceType enum value ResourceTypeAwsS3Bucket = "AWS::S3::Bucket" + + // ResourceTypeAwsSsmManagedInstanceInventory is a ResourceType enum value + ResourceTypeAwsSsmManagedInstanceInventory = "AWS::SSM::ManagedInstanceInventory" + + // ResourceTypeAwsRedshiftCluster is a ResourceType enum value + ResourceTypeAwsRedshiftCluster = "AWS::Redshift::Cluster" + + // ResourceTypeAwsRedshiftClusterSnapshot is a ResourceType enum value + ResourceTypeAwsRedshiftClusterSnapshot = "AWS::Redshift::ClusterSnapshot" + + // ResourceTypeAwsRedshiftClusterParameterGroup is a ResourceType enum value + ResourceTypeAwsRedshiftClusterParameterGroup = "AWS::Redshift::ClusterParameterGroup" + + // ResourceTypeAwsRedshiftClusterSecurityGroup is a ResourceType enum value + ResourceTypeAwsRedshiftClusterSecurityGroup = "AWS::Redshift::ClusterSecurityGroup" + + // ResourceTypeAwsRedshiftClusterSubnetGroup is a ResourceType enum value + ResourceTypeAwsRedshiftClusterSubnetGroup = "AWS::Redshift::ClusterSubnetGroup" + + // ResourceTypeAwsRedshiftEventSubscription is a ResourceType enum value + ResourceTypeAwsRedshiftEventSubscription = "AWS::Redshift::EventSubscription" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/configservice/configserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/configservice/configserviceiface/interface.go index bfcdc72c2..cd99a728f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/configservice/configserviceiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/configservice/configserviceiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockConfigServiceClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/configservice/errors.go b/vendor/github.com/aws/aws-sdk-go/service/configservice/errors.go new file mode 100644 index 000000000..abe7294e3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/configservice/errors.go @@ -0,0 +1,191 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package configservice + +const ( + + // ErrCodeInsufficientDeliveryPolicyException for service response error code + // "InsufficientDeliveryPolicyException". + // + // Your Amazon S3 bucket policy does not permit AWS Config to write to it. + ErrCodeInsufficientDeliveryPolicyException = "InsufficientDeliveryPolicyException" + + // ErrCodeInsufficientPermissionsException for service response error code + // "InsufficientPermissionsException". + // + // Indicates one of the following errors: + // + // * The rule cannot be created because the IAM role assigned to AWS Config + // lacks permissions to perform the config:Put* action. + // + // * The AWS Lambda function cannot be invoked. Check the function ARN, and + // check the function's permissions. + ErrCodeInsufficientPermissionsException = "InsufficientPermissionsException" + + // ErrCodeInvalidConfigurationRecorderNameException for service response error code + // "InvalidConfigurationRecorderNameException". + // + // You have provided a configuration recorder name that is not valid. + ErrCodeInvalidConfigurationRecorderNameException = "InvalidConfigurationRecorderNameException" + + // ErrCodeInvalidDeliveryChannelNameException for service response error code + // "InvalidDeliveryChannelNameException". + // + // The specified delivery channel name is not valid. + ErrCodeInvalidDeliveryChannelNameException = "InvalidDeliveryChannelNameException" + + // ErrCodeInvalidLimitException for service response error code + // "InvalidLimitException". + // + // The specified limit is outside the allowable range. + ErrCodeInvalidLimitException = "InvalidLimitException" + + // ErrCodeInvalidNextTokenException for service response error code + // "InvalidNextTokenException". + // + // The specified next token is invalid. Specify the NextToken string that was + // returned in the previous response to get the next page of results. + ErrCodeInvalidNextTokenException = "InvalidNextTokenException" + + // ErrCodeInvalidParameterValueException for service response error code + // "InvalidParameterValueException". + // + // One or more of the specified parameters are invalid. Verify that your parameters + // are valid and try again. + ErrCodeInvalidParameterValueException = "InvalidParameterValueException" + + // ErrCodeInvalidRecordingGroupException for service response error code + // "InvalidRecordingGroupException". + // + // AWS Config throws an exception if the recording group does not contain a + // valid list of resource types. Invalid values could also be incorrectly formatted. + ErrCodeInvalidRecordingGroupException = "InvalidRecordingGroupException" + + // ErrCodeInvalidResultTokenException for service response error code + // "InvalidResultTokenException". + // + // The specified ResultToken is invalid. + ErrCodeInvalidResultTokenException = "InvalidResultTokenException" + + // ErrCodeInvalidRoleException for service response error code + // "InvalidRoleException". + // + // You have provided a null or empty role ARN. + ErrCodeInvalidRoleException = "InvalidRoleException" + + // ErrCodeInvalidS3KeyPrefixException for service response error code + // "InvalidS3KeyPrefixException". + // + // The specified Amazon S3 key prefix is not valid. + ErrCodeInvalidS3KeyPrefixException = "InvalidS3KeyPrefixException" + + // ErrCodeInvalidSNSTopicARNException for service response error code + // "InvalidSNSTopicARNException". + // + // The specified Amazon SNS topic does not exist. + ErrCodeInvalidSNSTopicARNException = "InvalidSNSTopicARNException" + + // ErrCodeInvalidTimeRangeException for service response error code + // "InvalidTimeRangeException". + // + // The specified time range is not valid. The earlier time is not chronologically + // before the later time. + ErrCodeInvalidTimeRangeException = "InvalidTimeRangeException" + + // ErrCodeLastDeliveryChannelDeleteFailedException for service response error code + // "LastDeliveryChannelDeleteFailedException". + // + // You cannot delete the delivery channel you specified because the configuration + // recorder is running. + ErrCodeLastDeliveryChannelDeleteFailedException = "LastDeliveryChannelDeleteFailedException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // This exception is thrown if an evaluation is in progress or if you call the + // StartConfigRulesEvaluation API more than once per minute. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeMaxNumberOfConfigRulesExceededException for service response error code + // "MaxNumberOfConfigRulesExceededException". + // + // Failed to add the AWS Config rule because the account already contains the + // maximum number of 50 rules. Consider deleting any deactivated rules before + // adding new rules. + ErrCodeMaxNumberOfConfigRulesExceededException = "MaxNumberOfConfigRulesExceededException" + + // ErrCodeMaxNumberOfConfigurationRecordersExceededException for service response error code + // "MaxNumberOfConfigurationRecordersExceededException". + // + // You have reached the limit on the number of recorders you can create. + ErrCodeMaxNumberOfConfigurationRecordersExceededException = "MaxNumberOfConfigurationRecordersExceededException" + + // ErrCodeMaxNumberOfDeliveryChannelsExceededException for service response error code + // "MaxNumberOfDeliveryChannelsExceededException". + // + // You have reached the limit on the number of delivery channels you can create. + ErrCodeMaxNumberOfDeliveryChannelsExceededException = "MaxNumberOfDeliveryChannelsExceededException" + + // ErrCodeNoAvailableConfigurationRecorderException for service response error code + // "NoAvailableConfigurationRecorderException". + // + // There are no configuration recorders available to provide the role needed + // to describe your resources. Create a configuration recorder. + ErrCodeNoAvailableConfigurationRecorderException = "NoAvailableConfigurationRecorderException" + + // ErrCodeNoAvailableDeliveryChannelException for service response error code + // "NoAvailableDeliveryChannelException". + // + // There is no delivery channel available to record configurations. + ErrCodeNoAvailableDeliveryChannelException = "NoAvailableDeliveryChannelException" + + // ErrCodeNoRunningConfigurationRecorderException for service response error code + // "NoRunningConfigurationRecorderException". + // + // There is no configuration recorder running. + ErrCodeNoRunningConfigurationRecorderException = "NoRunningConfigurationRecorderException" + + // ErrCodeNoSuchBucketException for service response error code + // "NoSuchBucketException". + // + // The specified Amazon S3 bucket does not exist. + ErrCodeNoSuchBucketException = "NoSuchBucketException" + + // ErrCodeNoSuchConfigRuleException for service response error code + // "NoSuchConfigRuleException". + // + // One or more AWS Config rules in the request are invalid. Verify that the + // rule names are correct and try again. + ErrCodeNoSuchConfigRuleException = "NoSuchConfigRuleException" + + // ErrCodeNoSuchConfigurationRecorderException for service response error code + // "NoSuchConfigurationRecorderException". + // + // You have specified a configuration recorder that does not exist. + ErrCodeNoSuchConfigurationRecorderException = "NoSuchConfigurationRecorderException" + + // ErrCodeNoSuchDeliveryChannelException for service response error code + // "NoSuchDeliveryChannelException". + // + // You have specified a delivery channel that does not exist. + ErrCodeNoSuchDeliveryChannelException = "NoSuchDeliveryChannelException" + + // ErrCodeResourceInUseException for service response error code + // "ResourceInUseException". + // + // The rule is currently being deleted or the rule is deleting your evaluation + // results. Try your request again later. + ErrCodeResourceInUseException = "ResourceInUseException" + + // ErrCodeResourceNotDiscoveredException for service response error code + // "ResourceNotDiscoveredException". + // + // You have specified a resource that is either unknown or has not been discovered. + ErrCodeResourceNotDiscoveredException = "ResourceNotDiscoveredException" + + // ErrCodeValidationException for service response error code + // "ValidationException". + // + // The requested action is not valid. + ErrCodeValidationException = "ValidationException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/configservice/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/configservice/examples_test.go index eceb822ee..9b4ab8d50 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/configservice/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/configservice/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleConfigService_DeleteConfigRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -41,11 +37,7 @@ func ExampleConfigService_DeleteConfigRule() { } func ExampleConfigService_DeleteConfigurationRecorder() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -66,11 +58,7 @@ func ExampleConfigService_DeleteConfigurationRecorder() { } func ExampleConfigService_DeleteDeliveryChannel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -91,11 +79,7 @@ func ExampleConfigService_DeleteDeliveryChannel() { } func ExampleConfigService_DeleteEvaluationResults() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -116,11 +100,7 @@ func ExampleConfigService_DeleteEvaluationResults() { } func ExampleConfigService_DeliverConfigSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -141,11 +121,7 @@ func ExampleConfigService_DeliverConfigSnapshot() { } func ExampleConfigService_DescribeComplianceByConfigRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -174,11 +150,7 @@ func ExampleConfigService_DescribeComplianceByConfigRule() { } func ExampleConfigService_DescribeComplianceByResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -206,11 +178,7 @@ func ExampleConfigService_DescribeComplianceByResource() { } func ExampleConfigService_DescribeConfigRuleEvaluationStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -219,6 +187,8 @@ func ExampleConfigService_DescribeConfigRuleEvaluationStatus() { aws.String("StringWithCharLimit64"), // Required // More values... }, + Limit: aws.Int64(1), + NextToken: aws.String("String"), } resp, err := svc.DescribeConfigRuleEvaluationStatus(params) @@ -234,11 +204,7 @@ func ExampleConfigService_DescribeConfigRuleEvaluationStatus() { } func ExampleConfigService_DescribeConfigRules() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -263,11 +229,7 @@ func ExampleConfigService_DescribeConfigRules() { } func ExampleConfigService_DescribeConfigurationRecorderStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -291,11 +253,7 @@ func ExampleConfigService_DescribeConfigurationRecorderStatus() { } func ExampleConfigService_DescribeConfigurationRecorders() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -319,11 +277,7 @@ func ExampleConfigService_DescribeConfigurationRecorders() { } func ExampleConfigService_DescribeDeliveryChannelStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -347,11 +301,7 @@ func ExampleConfigService_DescribeDeliveryChannelStatus() { } func ExampleConfigService_DescribeDeliveryChannels() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -375,11 +325,7 @@ func ExampleConfigService_DescribeDeliveryChannels() { } func ExampleConfigService_GetComplianceDetailsByConfigRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -406,11 +352,7 @@ func ExampleConfigService_GetComplianceDetailsByConfigRule() { } func ExampleConfigService_GetComplianceDetailsByResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -437,11 +379,7 @@ func ExampleConfigService_GetComplianceDetailsByResource() { } func ExampleConfigService_GetComplianceSummaryByConfigRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -460,11 +398,7 @@ func ExampleConfigService_GetComplianceSummaryByConfigRule() { } func ExampleConfigService_GetComplianceSummaryByResourceType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -488,11 +422,7 @@ func ExampleConfigService_GetComplianceSummaryByResourceType() { } func ExampleConfigService_GetResourceConfigHistory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -519,11 +449,7 @@ func ExampleConfigService_GetResourceConfigHistory() { } func ExampleConfigService_ListDiscoveredResources() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -552,18 +478,15 @@ func ExampleConfigService_ListDiscoveredResources() { } func ExampleConfigService_PutConfigRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) params := &configservice.PutConfigRuleInput{ ConfigRule: &configservice.ConfigRule{ // Required Source: &configservice.Source{ // Required - Owner: aws.String("Owner"), + Owner: aws.String("Owner"), // Required + SourceIdentifier: aws.String("StringWithCharLimit256"), // Required SourceDetails: []*configservice.SourceDetail{ { // Required EventSource: aws.String("EventSource"), @@ -572,14 +495,13 @@ func ExampleConfigService_PutConfigRule() { }, // More values... }, - SourceIdentifier: aws.String("StringWithCharLimit256"), }, ConfigRuleArn: aws.String("String"), ConfigRuleId: aws.String("String"), ConfigRuleName: aws.String("StringWithCharLimit64"), ConfigRuleState: aws.String("ConfigRuleState"), Description: aws.String("EmptiableStringWithCharLimit256"), - InputParameters: aws.String("StringWithCharLimit256"), + InputParameters: aws.String("StringWithCharLimit1024"), MaximumExecutionFrequency: aws.String("MaximumExecutionFrequency"), Scope: &configservice.Scope{ ComplianceResourceId: aws.String("StringWithCharLimit256"), @@ -606,11 +528,7 @@ func ExampleConfigService_PutConfigRule() { } func ExampleConfigService_PutConfigurationRecorder() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -642,11 +560,7 @@ func ExampleConfigService_PutConfigurationRecorder() { } func ExampleConfigService_PutDeliveryChannel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -675,11 +589,7 @@ func ExampleConfigService_PutDeliveryChannel() { } func ExampleConfigService_PutEvaluations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -695,6 +605,7 @@ func ExampleConfigService_PutEvaluations() { }, // More values... }, + TestMode: aws.Bool(true), } resp, err := svc.PutEvaluations(params) @@ -710,11 +621,7 @@ func ExampleConfigService_PutEvaluations() { } func ExampleConfigService_StartConfigRulesEvaluation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -738,11 +645,7 @@ func ExampleConfigService_StartConfigRulesEvaluation() { } func ExampleConfigService_StartConfigurationRecorder() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) @@ -763,11 +666,7 @@ func ExampleConfigService_StartConfigurationRecorder() { } func ExampleConfigService_StopConfigurationRecorder() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := configservice.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/configservice/service.go b/vendor/github.com/aws/aws-sdk-go/service/configservice/service.go index 473f60336..b27bfb5a5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/configservice/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/configservice/service.go @@ -31,12 +31,13 @@ import ( // For more information about how to sign a request with this protocol, see // Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). // -// For detailed information about AWS Config features and their associated -// actions or commands, as well as how to work with AWS Management Console, -// see What Is AWS Config? (http://docs.aws.amazon.com/config/latest/developerguide/WhatIsConfig.html) +// For detailed information about AWS Config features and their associated actions +// or commands, as well as how to work with AWS Management Console, see What +// Is AWS Config? (http://docs.aws.amazon.com/config/latest/developerguide/WhatIsConfig.html) // in the AWS Config Developer Guide. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12 type ConfigService struct { *client.Client } @@ -47,8 +48,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "config" +// Service information constants +const ( + ServiceName = "config" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the ConfigService client with a session. // If additional configuration is needed for the client instance use the optional @@ -61,17 +65,18 @@ const ServiceName = "config" // // Create a ConfigService client with additional configuration // svc := configservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ConfigService { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ConfigService { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *ConfigService { svc := &ConfigService{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-11-12", diff --git a/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/api.go new file mode 100644 index 000000000..35ea15d29 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/api.go @@ -0,0 +1,665 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package costandusagereportservice provides a client for AWS Cost and Usage Report Service. +package costandusagereportservice + +import ( + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opDeleteReportDefinition = "DeleteReportDefinition" + +// DeleteReportDefinitionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteReportDefinition operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteReportDefinition for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteReportDefinition method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteReportDefinitionRequest method. +// req, resp := client.DeleteReportDefinitionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DeleteReportDefinition +func (c *CostandUsageReportService) DeleteReportDefinitionRequest(input *DeleteReportDefinitionInput) (req *request.Request, output *DeleteReportDefinitionOutput) { + op := &request.Operation{ + Name: opDeleteReportDefinition, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteReportDefinitionInput{} + } + + output = &DeleteReportDefinitionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteReportDefinition API operation for AWS Cost and Usage Report Service. +// +// Delete a specified report definition +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Cost and Usage Report Service's +// API operation DeleteReportDefinition for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown on a known dependency failure. +// +// * ErrCodeValidationException "ValidationException" +// This exception is thrown when providing an invalid input. eg. Put a report +// preference with an invalid report name, or Delete a report preference with +// an empty report name. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DeleteReportDefinition +func (c *CostandUsageReportService) DeleteReportDefinition(input *DeleteReportDefinitionInput) (*DeleteReportDefinitionOutput, error) { + req, out := c.DeleteReportDefinitionRequest(input) + err := req.Send() + return out, err +} + +const opDescribeReportDefinitions = "DescribeReportDefinitions" + +// DescribeReportDefinitionsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeReportDefinitions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeReportDefinitions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeReportDefinitions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeReportDefinitionsRequest method. +// req, resp := client.DescribeReportDefinitionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DescribeReportDefinitions +func (c *CostandUsageReportService) DescribeReportDefinitionsRequest(input *DescribeReportDefinitionsInput) (req *request.Request, output *DescribeReportDefinitionsOutput) { + op := &request.Operation{ + Name: opDescribeReportDefinitions, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeReportDefinitionsInput{} + } + + output = &DescribeReportDefinitionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeReportDefinitions API operation for AWS Cost and Usage Report Service. +// +// Describe a list of report definitions owned by the account +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Cost and Usage Report Service's +// API operation DescribeReportDefinitions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown on a known dependency failure. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DescribeReportDefinitions +func (c *CostandUsageReportService) DescribeReportDefinitions(input *DescribeReportDefinitionsInput) (*DescribeReportDefinitionsOutput, error) { + req, out := c.DescribeReportDefinitionsRequest(input) + err := req.Send() + return out, err +} + +// DescribeReportDefinitionsPages iterates over the pages of a DescribeReportDefinitions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeReportDefinitions method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a DescribeReportDefinitions operation. +// pageNum := 0 +// err := client.DescribeReportDefinitionsPages(params, +// func(page *DescribeReportDefinitionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CostandUsageReportService) DescribeReportDefinitionsPages(input *DescribeReportDefinitionsInput, fn func(p *DescribeReportDefinitionsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.DescribeReportDefinitionsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*DescribeReportDefinitionsOutput), lastPage) + }) +} + +const opPutReportDefinition = "PutReportDefinition" + +// PutReportDefinitionRequest generates a "aws/request.Request" representing the +// client's request for the PutReportDefinition operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See PutReportDefinition for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the PutReportDefinition method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the PutReportDefinitionRequest method. +// req, resp := client.PutReportDefinitionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/PutReportDefinition +func (c *CostandUsageReportService) PutReportDefinitionRequest(input *PutReportDefinitionInput) (req *request.Request, output *PutReportDefinitionOutput) { + op := &request.Operation{ + Name: opPutReportDefinition, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PutReportDefinitionInput{} + } + + output = &PutReportDefinitionOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutReportDefinition API operation for AWS Cost and Usage Report Service. +// +// Create a new report definition +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Cost and Usage Report Service's +// API operation PutReportDefinition for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDuplicateReportNameException "DuplicateReportNameException" +// This exception is thrown when putting a report preference with a name that +// already exists. +// +// * ErrCodeReportLimitReachedException "ReportLimitReachedException" +// This exception is thrown when the number of report preference reaches max +// limit. The max number is 5. +// +// * ErrCodeInternalErrorException "InternalErrorException" +// This exception is thrown on a known dependency failure. +// +// * ErrCodeValidationException "ValidationException" +// This exception is thrown when providing an invalid input. eg. Put a report +// preference with an invalid report name, or Delete a report preference with +// an empty report name. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/PutReportDefinition +func (c *CostandUsageReportService) PutReportDefinition(input *PutReportDefinitionInput) (*PutReportDefinitionOutput, error) { + req, out := c.PutReportDefinitionRequest(input) + err := req.Send() + return out, err +} + +// Request of DeleteReportDefinition +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DeleteReportDefinitionRequest +type DeleteReportDefinitionInput struct { + _ struct{} `type:"structure"` + + // Preferred name for a report, it has to be unique. Must starts with a number/letter, + // case sensitive. Limited to 256 characters. + ReportName *string `type:"string"` +} + +// String returns the string representation +func (s DeleteReportDefinitionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteReportDefinitionInput) GoString() string { + return s.String() +} + +// SetReportName sets the ReportName field's value. +func (s *DeleteReportDefinitionInput) SetReportName(v string) *DeleteReportDefinitionInput { + s.ReportName = &v + return s +} + +// Response of DeleteReportDefinition +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DeleteReportDefinitionResponse +type DeleteReportDefinitionOutput struct { + _ struct{} `type:"structure"` + + // A message indicates if the deletion is successful. + ResponseMessage *string `type:"string"` +} + +// String returns the string representation +func (s DeleteReportDefinitionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteReportDefinitionOutput) GoString() string { + return s.String() +} + +// SetResponseMessage sets the ResponseMessage field's value. +func (s *DeleteReportDefinitionOutput) SetResponseMessage(v string) *DeleteReportDefinitionOutput { + s.ResponseMessage = &v + return s +} + +// Request of DescribeReportDefinitions +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DescribeReportDefinitionsRequest +type DescribeReportDefinitionsInput struct { + _ struct{} `type:"structure"` + + // The max number of results returned by the operation. + MaxResults *int64 `min:"5" type:"integer"` + + // A generic string. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeReportDefinitionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeReportDefinitionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeReportDefinitionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeReportDefinitionsInput"} + if s.MaxResults != nil && *s.MaxResults < 5 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeReportDefinitionsInput) SetMaxResults(v int64) *DescribeReportDefinitionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeReportDefinitionsInput) SetNextToken(v string) *DescribeReportDefinitionsInput { + s.NextToken = &v + return s +} + +// Response of DescribeReportDefinitions +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DescribeReportDefinitionsResponse +type DescribeReportDefinitionsOutput struct { + _ struct{} `type:"structure"` + + // A generic string. + NextToken *string `type:"string"` + + // A list of report definitions. + ReportDefinitions []*ReportDefinition `type:"list"` +} + +// String returns the string representation +func (s DescribeReportDefinitionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeReportDefinitionsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeReportDefinitionsOutput) SetNextToken(v string) *DescribeReportDefinitionsOutput { + s.NextToken = &v + return s +} + +// SetReportDefinitions sets the ReportDefinitions field's value. +func (s *DescribeReportDefinitionsOutput) SetReportDefinitions(v []*ReportDefinition) *DescribeReportDefinitionsOutput { + s.ReportDefinitions = v + return s +} + +// Request of PutReportDefinition +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/PutReportDefinitionRequest +type PutReportDefinitionInput struct { + _ struct{} `type:"structure"` + + // The definition of AWS Cost and Usage Report. Customer can specify the report + // name, time unit, report format, compression format, S3 bucket and additional + // artifacts and schema elements in the definition. + // + // ReportDefinition is a required field + ReportDefinition *ReportDefinition `type:"structure" required:"true"` +} + +// String returns the string representation +func (s PutReportDefinitionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutReportDefinitionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutReportDefinitionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutReportDefinitionInput"} + if s.ReportDefinition == nil { + invalidParams.Add(request.NewErrParamRequired("ReportDefinition")) + } + if s.ReportDefinition != nil { + if err := s.ReportDefinition.Validate(); err != nil { + invalidParams.AddNested("ReportDefinition", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetReportDefinition sets the ReportDefinition field's value. +func (s *PutReportDefinitionInput) SetReportDefinition(v *ReportDefinition) *PutReportDefinitionInput { + s.ReportDefinition = v + return s +} + +// Response of PutReportDefinition +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/PutReportDefinitionResponse +type PutReportDefinitionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutReportDefinitionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutReportDefinitionOutput) GoString() string { + return s.String() +} + +// The definition of AWS Cost and Usage Report. Customer can specify the report +// name, time unit, report format, compression format, S3 bucket and additional +// artifacts and schema elements in the definition. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/ReportDefinition +type ReportDefinition struct { + _ struct{} `type:"structure"` + + // A list of additional artifacts. + AdditionalArtifacts []*string `type:"list"` + + // A list of schema elements. + // + // AdditionalSchemaElements is a required field + AdditionalSchemaElements []*string `type:"list" required:"true"` + + // Preferred compression format for report. + // + // Compression is a required field + Compression *string `type:"string" required:"true" enum:"CompressionFormat"` + + // Preferred format for report. + // + // Format is a required field + Format *string `type:"string" required:"true" enum:"ReportFormat"` + + // Preferred name for a report, it has to be unique. Must starts with a number/letter, + // case sensitive. Limited to 256 characters. + // + // ReportName is a required field + ReportName *string `type:"string" required:"true"` + + // Name of customer S3 bucket. + // + // S3Bucket is a required field + S3Bucket *string `type:"string" required:"true"` + + // Preferred report path prefix. Limited to 256 characters. + // + // S3Prefix is a required field + S3Prefix *string `type:"string" required:"true"` + + // Region of customer S3 bucket. + // + // S3Region is a required field + S3Region *string `type:"string" required:"true" enum:"AWSRegion"` + + // The frequency on which report data are measured and displayed. + // + // TimeUnit is a required field + TimeUnit *string `type:"string" required:"true" enum:"TimeUnit"` +} + +// String returns the string representation +func (s ReportDefinition) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReportDefinition) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ReportDefinition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ReportDefinition"} + if s.AdditionalSchemaElements == nil { + invalidParams.Add(request.NewErrParamRequired("AdditionalSchemaElements")) + } + if s.Compression == nil { + invalidParams.Add(request.NewErrParamRequired("Compression")) + } + if s.Format == nil { + invalidParams.Add(request.NewErrParamRequired("Format")) + } + if s.ReportName == nil { + invalidParams.Add(request.NewErrParamRequired("ReportName")) + } + if s.S3Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("S3Bucket")) + } + if s.S3Prefix == nil { + invalidParams.Add(request.NewErrParamRequired("S3Prefix")) + } + if s.S3Region == nil { + invalidParams.Add(request.NewErrParamRequired("S3Region")) + } + if s.TimeUnit == nil { + invalidParams.Add(request.NewErrParamRequired("TimeUnit")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAdditionalArtifacts sets the AdditionalArtifacts field's value. +func (s *ReportDefinition) SetAdditionalArtifacts(v []*string) *ReportDefinition { + s.AdditionalArtifacts = v + return s +} + +// SetAdditionalSchemaElements sets the AdditionalSchemaElements field's value. +func (s *ReportDefinition) SetAdditionalSchemaElements(v []*string) *ReportDefinition { + s.AdditionalSchemaElements = v + return s +} + +// SetCompression sets the Compression field's value. +func (s *ReportDefinition) SetCompression(v string) *ReportDefinition { + s.Compression = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *ReportDefinition) SetFormat(v string) *ReportDefinition { + s.Format = &v + return s +} + +// SetReportName sets the ReportName field's value. +func (s *ReportDefinition) SetReportName(v string) *ReportDefinition { + s.ReportName = &v + return s +} + +// SetS3Bucket sets the S3Bucket field's value. +func (s *ReportDefinition) SetS3Bucket(v string) *ReportDefinition { + s.S3Bucket = &v + return s +} + +// SetS3Prefix sets the S3Prefix field's value. +func (s *ReportDefinition) SetS3Prefix(v string) *ReportDefinition { + s.S3Prefix = &v + return s +} + +// SetS3Region sets the S3Region field's value. +func (s *ReportDefinition) SetS3Region(v string) *ReportDefinition { + s.S3Region = &v + return s +} + +// SetTimeUnit sets the TimeUnit field's value. +func (s *ReportDefinition) SetTimeUnit(v string) *ReportDefinition { + s.TimeUnit = &v + return s +} + +// Region of customer S3 bucket. +const ( + // AWSRegionUsEast1 is a AWSRegion enum value + AWSRegionUsEast1 = "us-east-1" + + // AWSRegionUsWest1 is a AWSRegion enum value + AWSRegionUsWest1 = "us-west-1" + + // AWSRegionUsWest2 is a AWSRegion enum value + AWSRegionUsWest2 = "us-west-2" + + // AWSRegionEuCentral1 is a AWSRegion enum value + AWSRegionEuCentral1 = "eu-central-1" + + // AWSRegionEuWest1 is a AWSRegion enum value + AWSRegionEuWest1 = "eu-west-1" + + // AWSRegionApSoutheast1 is a AWSRegion enum value + AWSRegionApSoutheast1 = "ap-southeast-1" + + // AWSRegionApSoutheast2 is a AWSRegion enum value + AWSRegionApSoutheast2 = "ap-southeast-2" + + // AWSRegionApNortheast1 is a AWSRegion enum value + AWSRegionApNortheast1 = "ap-northeast-1" +) + +// Enable support for Redshift and/or QuickSight. +const ( + // AdditionalArtifactRedshift is a AdditionalArtifact enum value + AdditionalArtifactRedshift = "REDSHIFT" + + // AdditionalArtifactQuicksight is a AdditionalArtifact enum value + AdditionalArtifactQuicksight = "QUICKSIGHT" +) + +// Preferred compression format for report. +const ( + // CompressionFormatZip is a CompressionFormat enum value + CompressionFormatZip = "ZIP" + + // CompressionFormatGzip is a CompressionFormat enum value + CompressionFormatGzip = "GZIP" +) + +// Preferred format for report. +const ( + // ReportFormatTextOrcsv is a ReportFormat enum value + ReportFormatTextOrcsv = "textORcsv" +) + +// Preference of including Resource IDs. You can include additional details +// about individual resource IDs in your report. +const ( + // SchemaElementResources is a SchemaElement enum value + SchemaElementResources = "RESOURCES" +) + +// The frequency on which report data are measured and displayed. +const ( + // TimeUnitHourly is a TimeUnit enum value + TimeUnitHourly = "HOURLY" + + // TimeUnitDaily is a TimeUnit enum value + TimeUnitDaily = "DAILY" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/costandusagereportserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/costandusagereportserviceiface/interface.go new file mode 100644 index 000000000..99d5e6c7e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/costandusagereportserviceiface/interface.go @@ -0,0 +1,77 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package costandusagereportserviceiface provides an interface to enable mocking the AWS Cost and Usage Report Service service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package costandusagereportserviceiface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/costandusagereportservice" +) + +// CostandUsageReportServiceAPI provides an interface to enable mocking the +// costandusagereportservice.CostandUsageReportService service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS Cost and Usage Report Service. +// func myFunc(svc costandusagereportserviceiface.CostandUsageReportServiceAPI) bool { +// // Make svc.DeleteReportDefinition request +// } +// +// func main() { +// sess := session.New() +// svc := costandusagereportservice.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockCostandUsageReportServiceClient struct { +// costandusagereportserviceiface.CostandUsageReportServiceAPI +// } +// func (m *mockCostandUsageReportServiceClient) DeleteReportDefinition(input *costandusagereportservice.DeleteReportDefinitionInput) (*costandusagereportservice.DeleteReportDefinitionOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockCostandUsageReportServiceClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type CostandUsageReportServiceAPI interface { + DeleteReportDefinitionRequest(*costandusagereportservice.DeleteReportDefinitionInput) (*request.Request, *costandusagereportservice.DeleteReportDefinitionOutput) + + DeleteReportDefinition(*costandusagereportservice.DeleteReportDefinitionInput) (*costandusagereportservice.DeleteReportDefinitionOutput, error) + + DescribeReportDefinitionsRequest(*costandusagereportservice.DescribeReportDefinitionsInput) (*request.Request, *costandusagereportservice.DescribeReportDefinitionsOutput) + + DescribeReportDefinitions(*costandusagereportservice.DescribeReportDefinitionsInput) (*costandusagereportservice.DescribeReportDefinitionsOutput, error) + + DescribeReportDefinitionsPages(*costandusagereportservice.DescribeReportDefinitionsInput, func(*costandusagereportservice.DescribeReportDefinitionsOutput, bool) bool) error + + PutReportDefinitionRequest(*costandusagereportservice.PutReportDefinitionInput) (*request.Request, *costandusagereportservice.PutReportDefinitionOutput) + + PutReportDefinition(*costandusagereportservice.PutReportDefinitionInput) (*costandusagereportservice.PutReportDefinitionOutput, error) +} + +var _ CostandUsageReportServiceAPI = (*costandusagereportservice.CostandUsageReportService)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/errors.go b/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/errors.go new file mode 100644 index 000000000..1daa00bdb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/errors.go @@ -0,0 +1,34 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package costandusagereportservice + +const ( + + // ErrCodeDuplicateReportNameException for service response error code + // "DuplicateReportNameException". + // + // This exception is thrown when putting a report preference with a name that + // already exists. + ErrCodeDuplicateReportNameException = "DuplicateReportNameException" + + // ErrCodeInternalErrorException for service response error code + // "InternalErrorException". + // + // This exception is thrown on a known dependency failure. + ErrCodeInternalErrorException = "InternalErrorException" + + // ErrCodeReportLimitReachedException for service response error code + // "ReportLimitReachedException". + // + // This exception is thrown when the number of report preference reaches max + // limit. The max number is 5. + ErrCodeReportLimitReachedException = "ReportLimitReachedException" + + // ErrCodeValidationException for service response error code + // "ValidationException". + // + // This exception is thrown when providing an invalid input. eg. Put a report + // preference with an invalid report name, or Delete a report preference with + // an empty report name. + ErrCodeValidationException = "ValidationException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/examples_test.go new file mode 100644 index 000000000..80494aec3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/examples_test.go @@ -0,0 +1,96 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package costandusagereportservice_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/costandusagereportservice" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExampleCostandUsageReportService_DeleteReportDefinition() { + sess := session.Must(session.NewSession()) + + svc := costandusagereportservice.New(sess) + + params := &costandusagereportservice.DeleteReportDefinitionInput{ + ReportName: aws.String("ReportName"), + } + resp, err := svc.DeleteReportDefinition(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCostandUsageReportService_DescribeReportDefinitions() { + sess := session.Must(session.NewSession()) + + svc := costandusagereportservice.New(sess) + + params := &costandusagereportservice.DescribeReportDefinitionsInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("GenericString"), + } + resp, err := svc.DescribeReportDefinitions(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleCostandUsageReportService_PutReportDefinition() { + sess := session.Must(session.NewSession()) + + svc := costandusagereportservice.New(sess) + + params := &costandusagereportservice.PutReportDefinitionInput{ + ReportDefinition: &costandusagereportservice.ReportDefinition{ // Required + AdditionalSchemaElements: []*string{ // Required + aws.String("SchemaElement"), // Required + // More values... + }, + Compression: aws.String("CompressionFormat"), // Required + Format: aws.String("ReportFormat"), // Required + ReportName: aws.String("ReportName"), // Required + S3Bucket: aws.String("S3Bucket"), // Required + S3Prefix: aws.String("S3Prefix"), // Required + S3Region: aws.String("AWSRegion"), // Required + TimeUnit: aws.String("TimeUnit"), // Required + AdditionalArtifacts: []*string{ + aws.String("AdditionalArtifact"), // Required + // More values... + }, + }, + } + resp, err := svc.PutReportDefinition(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/service.go b/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/service.go new file mode 100644 index 000000000..ac962d010 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/service.go @@ -0,0 +1,96 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package costandusagereportservice + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" +) + +// All public APIs for AWS Cost and Usage Report service +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06 +type CostandUsageReportService struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "cur" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the CostandUsageReportService client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a CostandUsageReportService client from just a session. +// svc := costandusagereportservice.New(mySession) +// +// // Create a CostandUsageReportService client with additional configuration +// svc := costandusagereportservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *CostandUsageReportService { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CostandUsageReportService { + if len(signingName) == 0 { + signingName = "cur" + } + svc := &CostandUsageReportService{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2017-01-06", + JSONVersion: "1.1", + TargetPrefix: "AWSOrigamiServiceGatewayService", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a CostandUsageReportService operation and runs any +// custom request initialization. +func (c *CostandUsageReportService) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/api.go index 547433951..06ceb9495 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/api.go @@ -37,6 +37,7 @@ const opAddTagsToResource = "AddTagsToResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/AddTagsToResource func (c *DatabaseMigrationService) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) { op := &request.Operation{ Name: opAddTagsToResource, @@ -48,9 +49,8 @@ func (c *DatabaseMigrationService) AddTagsToResourceRequest(input *AddTagsToReso input = &AddTagsToResourceInput{} } - req = c.newRequest(op, input, output) output = &AddTagsToResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -69,9 +69,10 @@ func (c *DatabaseMigrationService) AddTagsToResourceRequest(input *AddTagsToReso // API operation AddTagsToResource for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/AddTagsToResource func (c *DatabaseMigrationService) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -104,6 +105,7 @@ const opCreateEndpoint = "CreateEndpoint" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateEndpoint func (c *DatabaseMigrationService) CreateEndpointRequest(input *CreateEndpointInput) (req *request.Request, output *CreateEndpointOutput) { op := &request.Operation{ Name: opCreateEndpoint, @@ -115,9 +117,8 @@ func (c *DatabaseMigrationService) CreateEndpointRequest(input *CreateEndpointIn input = &CreateEndpointInput{} } - req = c.newRequest(op, input, output) output = &CreateEndpointOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -133,22 +134,26 @@ func (c *DatabaseMigrationService) CreateEndpointRequest(input *CreateEndpointIn // API operation CreateEndpoint for usage and error information. // // Returned Error Codes: -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // AWS DMS cannot access the KMS key. // -// * ResourceAlreadyExistsFault +// * ErrCodeResourceAlreadyExistsFault "ResourceAlreadyExistsFault" // The resource you are attempting to create already exists. // -// * ResourceQuotaExceededFault +// * ErrCodeResourceQuotaExceededFault "ResourceQuotaExceededFault" // The quota for this resource quota has been exceeded. // -// * InvalidResourceStateFault +// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" // The resource is in a state that prevents it from being used for database // migration. // -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // +// * ErrCodeAccessDeniedFault "AccessDeniedFault" +// AWS DMS was denied access to the endpoint. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateEndpoint func (c *DatabaseMigrationService) CreateEndpoint(input *CreateEndpointInput) (*CreateEndpointOutput, error) { req, out := c.CreateEndpointRequest(input) err := req.Send() @@ -181,6 +186,7 @@ const opCreateReplicationInstance = "CreateReplicationInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationInstance func (c *DatabaseMigrationService) CreateReplicationInstanceRequest(input *CreateReplicationInstanceInput) (req *request.Request, output *CreateReplicationInstanceOutput) { op := &request.Operation{ Name: opCreateReplicationInstance, @@ -192,9 +198,8 @@ func (c *DatabaseMigrationService) CreateReplicationInstanceRequest(input *Creat input = &CreateReplicationInstanceInput{} } - req = c.newRequest(op, input, output) output = &CreateReplicationInstanceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -210,38 +215,39 @@ func (c *DatabaseMigrationService) CreateReplicationInstanceRequest(input *Creat // API operation CreateReplicationInstance for usage and error information. // // Returned Error Codes: -// * AccessDeniedFault +// * ErrCodeAccessDeniedFault "AccessDeniedFault" // AWS DMS was denied access to the endpoint. // -// * ResourceAlreadyExistsFault +// * ErrCodeResourceAlreadyExistsFault "ResourceAlreadyExistsFault" // The resource you are attempting to create already exists. // -// * InsufficientResourceCapacityFault +// * ErrCodeInsufficientResourceCapacityFault "InsufficientResourceCapacityFault" // There are not enough resources allocated to the database migration. // -// * ResourceQuotaExceededFault +// * ErrCodeResourceQuotaExceededFault "ResourceQuotaExceededFault" // The quota for this resource quota has been exceeded. // -// * StorageQuotaExceededFault +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceededFault" // The storage quota has been exceeded. // -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // -// * ReplicationSubnetGroupDoesNotCoverEnoughAZs +// * ErrCodeReplicationSubnetGroupDoesNotCoverEnoughAZs "ReplicationSubnetGroupDoesNotCoverEnoughAZs" // The replication subnet group does not cover enough Availability Zones (AZs). // Edit the replication subnet group and add more AZs. // -// * InvalidResourceStateFault +// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" // The resource is in a state that prevents it from being used for database // migration. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The subnet provided is invalid. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // AWS DMS cannot access the KMS key. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationInstance func (c *DatabaseMigrationService) CreateReplicationInstance(input *CreateReplicationInstanceInput) (*CreateReplicationInstanceOutput, error) { req, out := c.CreateReplicationInstanceRequest(input) err := req.Send() @@ -274,6 +280,7 @@ const opCreateReplicationSubnetGroup = "CreateReplicationSubnetGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationSubnetGroup func (c *DatabaseMigrationService) CreateReplicationSubnetGroupRequest(input *CreateReplicationSubnetGroupInput) (req *request.Request, output *CreateReplicationSubnetGroupOutput) { op := &request.Operation{ Name: opCreateReplicationSubnetGroup, @@ -285,9 +292,8 @@ func (c *DatabaseMigrationService) CreateReplicationSubnetGroupRequest(input *Cr input = &CreateReplicationSubnetGroupInput{} } - req = c.newRequest(op, input, output) output = &CreateReplicationSubnetGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -303,25 +309,26 @@ func (c *DatabaseMigrationService) CreateReplicationSubnetGroupRequest(input *Cr // API operation CreateReplicationSubnetGroup for usage and error information. // // Returned Error Codes: -// * AccessDeniedFault +// * ErrCodeAccessDeniedFault "AccessDeniedFault" // AWS DMS was denied access to the endpoint. // -// * ResourceAlreadyExistsFault +// * ErrCodeResourceAlreadyExistsFault "ResourceAlreadyExistsFault" // The resource you are attempting to create already exists. // -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // -// * ResourceQuotaExceededFault +// * ErrCodeResourceQuotaExceededFault "ResourceQuotaExceededFault" // The quota for this resource quota has been exceeded. // -// * ReplicationSubnetGroupDoesNotCoverEnoughAZs +// * ErrCodeReplicationSubnetGroupDoesNotCoverEnoughAZs "ReplicationSubnetGroupDoesNotCoverEnoughAZs" // The replication subnet group does not cover enough Availability Zones (AZs). // Edit the replication subnet group and add more AZs. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The subnet provided is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationSubnetGroup func (c *DatabaseMigrationService) CreateReplicationSubnetGroup(input *CreateReplicationSubnetGroupInput) (*CreateReplicationSubnetGroupOutput, error) { req, out := c.CreateReplicationSubnetGroupRequest(input) err := req.Send() @@ -354,6 +361,7 @@ const opCreateReplicationTask = "CreateReplicationTask" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationTask func (c *DatabaseMigrationService) CreateReplicationTaskRequest(input *CreateReplicationTaskInput) (req *request.Request, output *CreateReplicationTaskOutput) { op := &request.Operation{ Name: opCreateReplicationTask, @@ -365,9 +373,8 @@ func (c *DatabaseMigrationService) CreateReplicationTaskRequest(input *CreateRep input = &CreateReplicationTaskInput{} } - req = c.newRequest(op, input, output) output = &CreateReplicationTaskOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -383,22 +390,23 @@ func (c *DatabaseMigrationService) CreateReplicationTaskRequest(input *CreateRep // API operation CreateReplicationTask for usage and error information. // // Returned Error Codes: -// * InvalidResourceStateFault +// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" // The resource is in a state that prevents it from being used for database // migration. // -// * ResourceAlreadyExistsFault +// * ErrCodeResourceAlreadyExistsFault "ResourceAlreadyExistsFault" // The resource you are attempting to create already exists. // -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // AWS DMS cannot access the KMS key. // -// * ResourceQuotaExceededFault +// * ErrCodeResourceQuotaExceededFault "ResourceQuotaExceededFault" // The quota for this resource quota has been exceeded. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationTask func (c *DatabaseMigrationService) CreateReplicationTask(input *CreateReplicationTaskInput) (*CreateReplicationTaskOutput, error) { req, out := c.CreateReplicationTaskRequest(input) err := req.Send() @@ -431,6 +439,7 @@ const opDeleteCertificate = "DeleteCertificate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteCertificate func (c *DatabaseMigrationService) DeleteCertificateRequest(input *DeleteCertificateInput) (req *request.Request, output *DeleteCertificateOutput) { op := &request.Operation{ Name: opDeleteCertificate, @@ -442,9 +451,8 @@ func (c *DatabaseMigrationService) DeleteCertificateRequest(input *DeleteCertifi input = &DeleteCertificateInput{} } - req = c.newRequest(op, input, output) output = &DeleteCertificateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -460,13 +468,14 @@ func (c *DatabaseMigrationService) DeleteCertificateRequest(input *DeleteCertifi // API operation DeleteCertificate for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // -// * InvalidResourceStateFault +// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" // The resource is in a state that prevents it from being used for database // migration. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteCertificate func (c *DatabaseMigrationService) DeleteCertificate(input *DeleteCertificateInput) (*DeleteCertificateOutput, error) { req, out := c.DeleteCertificateRequest(input) err := req.Send() @@ -499,6 +508,7 @@ const opDeleteEndpoint = "DeleteEndpoint" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteEndpoint func (c *DatabaseMigrationService) DeleteEndpointRequest(input *DeleteEndpointInput) (req *request.Request, output *DeleteEndpointOutput) { op := &request.Operation{ Name: opDeleteEndpoint, @@ -510,9 +520,8 @@ func (c *DatabaseMigrationService) DeleteEndpointRequest(input *DeleteEndpointIn input = &DeleteEndpointInput{} } - req = c.newRequest(op, input, output) output = &DeleteEndpointOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -520,7 +529,7 @@ func (c *DatabaseMigrationService) DeleteEndpointRequest(input *DeleteEndpointIn // // Deletes the specified endpoint. // -// All tasks associated with the endpoint must be deleted before you can delete +// All tasks associated with the endpoint must be deleted before you can delete // the endpoint. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -531,13 +540,14 @@ func (c *DatabaseMigrationService) DeleteEndpointRequest(input *DeleteEndpointIn // API operation DeleteEndpoint for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // -// * InvalidResourceStateFault +// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" // The resource is in a state that prevents it from being used for database // migration. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteEndpoint func (c *DatabaseMigrationService) DeleteEndpoint(input *DeleteEndpointInput) (*DeleteEndpointOutput, error) { req, out := c.DeleteEndpointRequest(input) err := req.Send() @@ -570,6 +580,7 @@ const opDeleteReplicationInstance = "DeleteReplicationInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationInstance func (c *DatabaseMigrationService) DeleteReplicationInstanceRequest(input *DeleteReplicationInstanceInput) (req *request.Request, output *DeleteReplicationInstanceOutput) { op := &request.Operation{ Name: opDeleteReplicationInstance, @@ -581,9 +592,8 @@ func (c *DatabaseMigrationService) DeleteReplicationInstanceRequest(input *Delet input = &DeleteReplicationInstanceInput{} } - req = c.newRequest(op, input, output) output = &DeleteReplicationInstanceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -591,7 +601,7 @@ func (c *DatabaseMigrationService) DeleteReplicationInstanceRequest(input *Delet // // Deletes the specified replication instance. // -// You must delete any migration tasks that are associated with the replication +// You must delete any migration tasks that are associated with the replication // instance before you can delete it. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -602,13 +612,14 @@ func (c *DatabaseMigrationService) DeleteReplicationInstanceRequest(input *Delet // API operation DeleteReplicationInstance for usage and error information. // // Returned Error Codes: -// * InvalidResourceStateFault +// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" // The resource is in a state that prevents it from being used for database // migration. // -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationInstance func (c *DatabaseMigrationService) DeleteReplicationInstance(input *DeleteReplicationInstanceInput) (*DeleteReplicationInstanceOutput, error) { req, out := c.DeleteReplicationInstanceRequest(input) err := req.Send() @@ -641,6 +652,7 @@ const opDeleteReplicationSubnetGroup = "DeleteReplicationSubnetGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationSubnetGroup func (c *DatabaseMigrationService) DeleteReplicationSubnetGroupRequest(input *DeleteReplicationSubnetGroupInput) (req *request.Request, output *DeleteReplicationSubnetGroupOutput) { op := &request.Operation{ Name: opDeleteReplicationSubnetGroup, @@ -652,9 +664,8 @@ func (c *DatabaseMigrationService) DeleteReplicationSubnetGroupRequest(input *De input = &DeleteReplicationSubnetGroupInput{} } - req = c.newRequest(op, input, output) output = &DeleteReplicationSubnetGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -670,13 +681,14 @@ func (c *DatabaseMigrationService) DeleteReplicationSubnetGroupRequest(input *De // API operation DeleteReplicationSubnetGroup for usage and error information. // // Returned Error Codes: -// * InvalidResourceStateFault +// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" // The resource is in a state that prevents it from being used for database // migration. // -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationSubnetGroup func (c *DatabaseMigrationService) DeleteReplicationSubnetGroup(input *DeleteReplicationSubnetGroupInput) (*DeleteReplicationSubnetGroupOutput, error) { req, out := c.DeleteReplicationSubnetGroupRequest(input) err := req.Send() @@ -709,6 +721,7 @@ const opDeleteReplicationTask = "DeleteReplicationTask" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationTask func (c *DatabaseMigrationService) DeleteReplicationTaskRequest(input *DeleteReplicationTaskInput) (req *request.Request, output *DeleteReplicationTaskOutput) { op := &request.Operation{ Name: opDeleteReplicationTask, @@ -720,9 +733,8 @@ func (c *DatabaseMigrationService) DeleteReplicationTaskRequest(input *DeleteRep input = &DeleteReplicationTaskInput{} } - req = c.newRequest(op, input, output) output = &DeleteReplicationTaskOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -738,13 +750,14 @@ func (c *DatabaseMigrationService) DeleteReplicationTaskRequest(input *DeleteRep // API operation DeleteReplicationTask for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // -// * InvalidResourceStateFault +// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" // The resource is in a state that prevents it from being used for database // migration. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationTask func (c *DatabaseMigrationService) DeleteReplicationTask(input *DeleteReplicationTaskInput) (*DeleteReplicationTaskOutput, error) { req, out := c.DeleteReplicationTaskRequest(input) err := req.Send() @@ -777,6 +790,7 @@ const opDescribeAccountAttributes = "DescribeAccountAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeAccountAttributes func (c *DatabaseMigrationService) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) (req *request.Request, output *DescribeAccountAttributesOutput) { op := &request.Operation{ Name: opDescribeAccountAttributes, @@ -788,9 +802,8 @@ func (c *DatabaseMigrationService) DescribeAccountAttributesRequest(input *Descr input = &DescribeAccountAttributesInput{} } - req = c.newRequest(op, input, output) output = &DescribeAccountAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -809,6 +822,7 @@ func (c *DatabaseMigrationService) DescribeAccountAttributesRequest(input *Descr // // See the AWS API reference guide for AWS Database Migration Service's // API operation DescribeAccountAttributes for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeAccountAttributes func (c *DatabaseMigrationService) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) { req, out := c.DescribeAccountAttributesRequest(input) err := req.Send() @@ -841,6 +855,7 @@ const opDescribeCertificates = "DescribeCertificates" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeCertificates func (c *DatabaseMigrationService) DescribeCertificatesRequest(input *DescribeCertificatesInput) (req *request.Request, output *DescribeCertificatesOutput) { op := &request.Operation{ Name: opDescribeCertificates, @@ -852,9 +867,8 @@ func (c *DatabaseMigrationService) DescribeCertificatesRequest(input *DescribeCe input = &DescribeCertificatesInput{} } - req = c.newRequest(op, input, output) output = &DescribeCertificatesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -870,9 +884,10 @@ func (c *DatabaseMigrationService) DescribeCertificatesRequest(input *DescribeCe // API operation DescribeCertificates for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeCertificates func (c *DatabaseMigrationService) DescribeCertificates(input *DescribeCertificatesInput) (*DescribeCertificatesOutput, error) { req, out := c.DescribeCertificatesRequest(input) err := req.Send() @@ -905,6 +920,7 @@ const opDescribeConnections = "DescribeConnections" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeConnections func (c *DatabaseMigrationService) DescribeConnectionsRequest(input *DescribeConnectionsInput) (req *request.Request, output *DescribeConnectionsOutput) { op := &request.Operation{ Name: opDescribeConnections, @@ -916,9 +932,8 @@ func (c *DatabaseMigrationService) DescribeConnectionsRequest(input *DescribeCon input = &DescribeConnectionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeConnectionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -935,9 +950,10 @@ func (c *DatabaseMigrationService) DescribeConnectionsRequest(input *DescribeCon // API operation DescribeConnections for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeConnections func (c *DatabaseMigrationService) DescribeConnections(input *DescribeConnectionsInput) (*DescribeConnectionsOutput, error) { req, out := c.DescribeConnectionsRequest(input) err := req.Send() @@ -970,6 +986,7 @@ const opDescribeEndpointTypes = "DescribeEndpointTypes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEndpointTypes func (c *DatabaseMigrationService) DescribeEndpointTypesRequest(input *DescribeEndpointTypesInput) (req *request.Request, output *DescribeEndpointTypesOutput) { op := &request.Operation{ Name: opDescribeEndpointTypes, @@ -981,9 +998,8 @@ func (c *DatabaseMigrationService) DescribeEndpointTypesRequest(input *DescribeE input = &DescribeEndpointTypesInput{} } - req = c.newRequest(op, input, output) output = &DescribeEndpointTypesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -997,6 +1013,7 @@ func (c *DatabaseMigrationService) DescribeEndpointTypesRequest(input *DescribeE // // See the AWS API reference guide for AWS Database Migration Service's // API operation DescribeEndpointTypes for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEndpointTypes func (c *DatabaseMigrationService) DescribeEndpointTypes(input *DescribeEndpointTypesInput) (*DescribeEndpointTypesOutput, error) { req, out := c.DescribeEndpointTypesRequest(input) err := req.Send() @@ -1029,6 +1046,7 @@ const opDescribeEndpoints = "DescribeEndpoints" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEndpoints func (c *DatabaseMigrationService) DescribeEndpointsRequest(input *DescribeEndpointsInput) (req *request.Request, output *DescribeEndpointsOutput) { op := &request.Operation{ Name: opDescribeEndpoints, @@ -1040,9 +1058,8 @@ func (c *DatabaseMigrationService) DescribeEndpointsRequest(input *DescribeEndpo input = &DescribeEndpointsInput{} } - req = c.newRequest(op, input, output) output = &DescribeEndpointsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1058,9 +1075,10 @@ func (c *DatabaseMigrationService) DescribeEndpointsRequest(input *DescribeEndpo // API operation DescribeEndpoints for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEndpoints func (c *DatabaseMigrationService) DescribeEndpoints(input *DescribeEndpointsInput) (*DescribeEndpointsOutput, error) { req, out := c.DescribeEndpointsRequest(input) err := req.Send() @@ -1093,6 +1111,7 @@ const opDescribeOrderableReplicationInstances = "DescribeOrderableReplicationIns // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeOrderableReplicationInstances func (c *DatabaseMigrationService) DescribeOrderableReplicationInstancesRequest(input *DescribeOrderableReplicationInstancesInput) (req *request.Request, output *DescribeOrderableReplicationInstancesOutput) { op := &request.Operation{ Name: opDescribeOrderableReplicationInstances, @@ -1104,9 +1123,8 @@ func (c *DatabaseMigrationService) DescribeOrderableReplicationInstancesRequest( input = &DescribeOrderableReplicationInstancesInput{} } - req = c.newRequest(op, input, output) output = &DescribeOrderableReplicationInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1121,6 +1139,7 @@ func (c *DatabaseMigrationService) DescribeOrderableReplicationInstancesRequest( // // See the AWS API reference guide for AWS Database Migration Service's // API operation DescribeOrderableReplicationInstances for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeOrderableReplicationInstances func (c *DatabaseMigrationService) DescribeOrderableReplicationInstances(input *DescribeOrderableReplicationInstancesInput) (*DescribeOrderableReplicationInstancesOutput, error) { req, out := c.DescribeOrderableReplicationInstancesRequest(input) err := req.Send() @@ -1153,6 +1172,7 @@ const opDescribeRefreshSchemasStatus = "DescribeRefreshSchemasStatus" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeRefreshSchemasStatus func (c *DatabaseMigrationService) DescribeRefreshSchemasStatusRequest(input *DescribeRefreshSchemasStatusInput) (req *request.Request, output *DescribeRefreshSchemasStatusOutput) { op := &request.Operation{ Name: opDescribeRefreshSchemasStatus, @@ -1164,9 +1184,8 @@ func (c *DatabaseMigrationService) DescribeRefreshSchemasStatusRequest(input *De input = &DescribeRefreshSchemasStatusInput{} } - req = c.newRequest(op, input, output) output = &DescribeRefreshSchemasStatusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1182,13 +1201,14 @@ func (c *DatabaseMigrationService) DescribeRefreshSchemasStatusRequest(input *De // API operation DescribeRefreshSchemasStatus for usage and error information. // // Returned Error Codes: -// * InvalidResourceStateFault +// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" // The resource is in a state that prevents it from being used for database // migration. // -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeRefreshSchemasStatus func (c *DatabaseMigrationService) DescribeRefreshSchemasStatus(input *DescribeRefreshSchemasStatusInput) (*DescribeRefreshSchemasStatusOutput, error) { req, out := c.DescribeRefreshSchemasStatusRequest(input) err := req.Send() @@ -1221,6 +1241,7 @@ const opDescribeReplicationInstances = "DescribeReplicationInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationInstances func (c *DatabaseMigrationService) DescribeReplicationInstancesRequest(input *DescribeReplicationInstancesInput) (req *request.Request, output *DescribeReplicationInstancesOutput) { op := &request.Operation{ Name: opDescribeReplicationInstances, @@ -1232,9 +1253,8 @@ func (c *DatabaseMigrationService) DescribeReplicationInstancesRequest(input *De input = &DescribeReplicationInstancesInput{} } - req = c.newRequest(op, input, output) output = &DescribeReplicationInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1251,9 +1271,10 @@ func (c *DatabaseMigrationService) DescribeReplicationInstancesRequest(input *De // API operation DescribeReplicationInstances for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationInstances func (c *DatabaseMigrationService) DescribeReplicationInstances(input *DescribeReplicationInstancesInput) (*DescribeReplicationInstancesOutput, error) { req, out := c.DescribeReplicationInstancesRequest(input) err := req.Send() @@ -1286,6 +1307,7 @@ const opDescribeReplicationSubnetGroups = "DescribeReplicationSubnetGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationSubnetGroups func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsRequest(input *DescribeReplicationSubnetGroupsInput) (req *request.Request, output *DescribeReplicationSubnetGroupsOutput) { op := &request.Operation{ Name: opDescribeReplicationSubnetGroups, @@ -1297,9 +1319,8 @@ func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsRequest(input input = &DescribeReplicationSubnetGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeReplicationSubnetGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1315,9 +1336,10 @@ func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsRequest(input // API operation DescribeReplicationSubnetGroups for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationSubnetGroups func (c *DatabaseMigrationService) DescribeReplicationSubnetGroups(input *DescribeReplicationSubnetGroupsInput) (*DescribeReplicationSubnetGroupsOutput, error) { req, out := c.DescribeReplicationSubnetGroupsRequest(input) err := req.Send() @@ -1350,6 +1372,7 @@ const opDescribeReplicationTasks = "DescribeReplicationTasks" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTasks func (c *DatabaseMigrationService) DescribeReplicationTasksRequest(input *DescribeReplicationTasksInput) (req *request.Request, output *DescribeReplicationTasksOutput) { op := &request.Operation{ Name: opDescribeReplicationTasks, @@ -1361,9 +1384,8 @@ func (c *DatabaseMigrationService) DescribeReplicationTasksRequest(input *Descri input = &DescribeReplicationTasksInput{} } - req = c.newRequest(op, input, output) output = &DescribeReplicationTasksOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1380,9 +1402,10 @@ func (c *DatabaseMigrationService) DescribeReplicationTasksRequest(input *Descri // API operation DescribeReplicationTasks for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTasks func (c *DatabaseMigrationService) DescribeReplicationTasks(input *DescribeReplicationTasksInput) (*DescribeReplicationTasksOutput, error) { req, out := c.DescribeReplicationTasksRequest(input) err := req.Send() @@ -1415,6 +1438,7 @@ const opDescribeSchemas = "DescribeSchemas" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeSchemas func (c *DatabaseMigrationService) DescribeSchemasRequest(input *DescribeSchemasInput) (req *request.Request, output *DescribeSchemasOutput) { op := &request.Operation{ Name: opDescribeSchemas, @@ -1426,9 +1450,8 @@ func (c *DatabaseMigrationService) DescribeSchemasRequest(input *DescribeSchemas input = &DescribeSchemasInput{} } - req = c.newRequest(op, input, output) output = &DescribeSchemasOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1444,13 +1467,14 @@ func (c *DatabaseMigrationService) DescribeSchemasRequest(input *DescribeSchemas // API operation DescribeSchemas for usage and error information. // // Returned Error Codes: -// * InvalidResourceStateFault +// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" // The resource is in a state that prevents it from being used for database // migration. // -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeSchemas func (c *DatabaseMigrationService) DescribeSchemas(input *DescribeSchemasInput) (*DescribeSchemasOutput, error) { req, out := c.DescribeSchemasRequest(input) err := req.Send() @@ -1483,6 +1507,7 @@ const opDescribeTableStatistics = "DescribeTableStatistics" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeTableStatistics func (c *DatabaseMigrationService) DescribeTableStatisticsRequest(input *DescribeTableStatisticsInput) (req *request.Request, output *DescribeTableStatisticsOutput) { op := &request.Operation{ Name: opDescribeTableStatistics, @@ -1494,9 +1519,8 @@ func (c *DatabaseMigrationService) DescribeTableStatisticsRequest(input *Describ input = &DescribeTableStatisticsInput{} } - req = c.newRequest(op, input, output) output = &DescribeTableStatisticsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1513,13 +1537,14 @@ func (c *DatabaseMigrationService) DescribeTableStatisticsRequest(input *Describ // API operation DescribeTableStatistics for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // -// * InvalidResourceStateFault +// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" // The resource is in a state that prevents it from being used for database // migration. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeTableStatistics func (c *DatabaseMigrationService) DescribeTableStatistics(input *DescribeTableStatisticsInput) (*DescribeTableStatisticsOutput, error) { req, out := c.DescribeTableStatisticsRequest(input) err := req.Send() @@ -1552,6 +1577,7 @@ const opImportCertificate = "ImportCertificate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ImportCertificate func (c *DatabaseMigrationService) ImportCertificateRequest(input *ImportCertificateInput) (req *request.Request, output *ImportCertificateOutput) { op := &request.Operation{ Name: opImportCertificate, @@ -1563,9 +1589,8 @@ func (c *DatabaseMigrationService) ImportCertificateRequest(input *ImportCertifi input = &ImportCertificateInput{} } - req = c.newRequest(op, input, output) output = &ImportCertificateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1581,12 +1606,13 @@ func (c *DatabaseMigrationService) ImportCertificateRequest(input *ImportCertifi // API operation ImportCertificate for usage and error information. // // Returned Error Codes: -// * ResourceAlreadyExistsFault +// * ErrCodeResourceAlreadyExistsFault "ResourceAlreadyExistsFault" // The resource you are attempting to create already exists. // -// * InvalidCertificateFault +// * ErrCodeInvalidCertificateFault "InvalidCertificateFault" // The certificate was not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ImportCertificate func (c *DatabaseMigrationService) ImportCertificate(input *ImportCertificateInput) (*ImportCertificateOutput, error) { req, out := c.ImportCertificateRequest(input) err := req.Send() @@ -1619,6 +1645,7 @@ const opListTagsForResource = "ListTagsForResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ListTagsForResource func (c *DatabaseMigrationService) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ Name: opListTagsForResource, @@ -1630,9 +1657,8 @@ func (c *DatabaseMigrationService) ListTagsForResourceRequest(input *ListTagsFor input = &ListTagsForResourceInput{} } - req = c.newRequest(op, input, output) output = &ListTagsForResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1648,9 +1674,10 @@ func (c *DatabaseMigrationService) ListTagsForResourceRequest(input *ListTagsFor // API operation ListTagsForResource for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ListTagsForResource func (c *DatabaseMigrationService) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -1683,6 +1710,7 @@ const opModifyEndpoint = "ModifyEndpoint" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyEndpoint func (c *DatabaseMigrationService) ModifyEndpointRequest(input *ModifyEndpointInput) (req *request.Request, output *ModifyEndpointOutput) { op := &request.Operation{ Name: opModifyEndpoint, @@ -1694,9 +1722,8 @@ func (c *DatabaseMigrationService) ModifyEndpointRequest(input *ModifyEndpointIn input = &ModifyEndpointInput{} } - req = c.newRequest(op, input, output) output = &ModifyEndpointOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1712,19 +1739,20 @@ func (c *DatabaseMigrationService) ModifyEndpointRequest(input *ModifyEndpointIn // API operation ModifyEndpoint for usage and error information. // // Returned Error Codes: -// * InvalidResourceStateFault +// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" // The resource is in a state that prevents it from being used for database // migration. // -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // -// * ResourceAlreadyExistsFault +// * ErrCodeResourceAlreadyExistsFault "ResourceAlreadyExistsFault" // The resource you are attempting to create already exists. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // AWS DMS cannot access the KMS key. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyEndpoint func (c *DatabaseMigrationService) ModifyEndpoint(input *ModifyEndpointInput) (*ModifyEndpointOutput, error) { req, out := c.ModifyEndpointRequest(input) err := req.Send() @@ -1757,6 +1785,7 @@ const opModifyReplicationInstance = "ModifyReplicationInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationInstance func (c *DatabaseMigrationService) ModifyReplicationInstanceRequest(input *ModifyReplicationInstanceInput) (req *request.Request, output *ModifyReplicationInstanceOutput) { op := &request.Operation{ Name: opModifyReplicationInstance, @@ -1768,9 +1797,8 @@ func (c *DatabaseMigrationService) ModifyReplicationInstanceRequest(input *Modif input = &ModifyReplicationInstanceInput{} } - req = c.newRequest(op, input, output) output = &ModifyReplicationInstanceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1790,25 +1818,26 @@ func (c *DatabaseMigrationService) ModifyReplicationInstanceRequest(input *Modif // API operation ModifyReplicationInstance for usage and error information. // // Returned Error Codes: -// * InvalidResourceStateFault +// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" // The resource is in a state that prevents it from being used for database // migration. // -// * ResourceAlreadyExistsFault +// * ErrCodeResourceAlreadyExistsFault "ResourceAlreadyExistsFault" // The resource you are attempting to create already exists. // -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // -// * InsufficientResourceCapacityFault +// * ErrCodeInsufficientResourceCapacityFault "InsufficientResourceCapacityFault" // There are not enough resources allocated to the database migration. // -// * StorageQuotaExceededFault +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceededFault" // The storage quota has been exceeded. // -// * UpgradeDependencyFailureFault +// * ErrCodeUpgradeDependencyFailureFault "UpgradeDependencyFailureFault" // An upgrade dependency is preventing the database migration. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationInstance func (c *DatabaseMigrationService) ModifyReplicationInstance(input *ModifyReplicationInstanceInput) (*ModifyReplicationInstanceOutput, error) { req, out := c.ModifyReplicationInstanceRequest(input) err := req.Send() @@ -1841,6 +1870,7 @@ const opModifyReplicationSubnetGroup = "ModifyReplicationSubnetGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationSubnetGroup func (c *DatabaseMigrationService) ModifyReplicationSubnetGroupRequest(input *ModifyReplicationSubnetGroupInput) (req *request.Request, output *ModifyReplicationSubnetGroupOutput) { op := &request.Operation{ Name: opModifyReplicationSubnetGroup, @@ -1852,9 +1882,8 @@ func (c *DatabaseMigrationService) ModifyReplicationSubnetGroupRequest(input *Mo input = &ModifyReplicationSubnetGroupInput{} } - req = c.newRequest(op, input, output) output = &ModifyReplicationSubnetGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1870,31 +1899,110 @@ func (c *DatabaseMigrationService) ModifyReplicationSubnetGroupRequest(input *Mo // API operation ModifyReplicationSubnetGroup for usage and error information. // // Returned Error Codes: -// * AccessDeniedFault +// * ErrCodeAccessDeniedFault "AccessDeniedFault" // AWS DMS was denied access to the endpoint. // -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // -// * ResourceQuotaExceededFault +// * ErrCodeResourceQuotaExceededFault "ResourceQuotaExceededFault" // The quota for this resource quota has been exceeded. // -// * SubnetAlreadyInUse +// * ErrCodeSubnetAlreadyInUse "SubnetAlreadyInUse" // The specified subnet is already in use. // -// * ReplicationSubnetGroupDoesNotCoverEnoughAZs +// * ErrCodeReplicationSubnetGroupDoesNotCoverEnoughAZs "ReplicationSubnetGroupDoesNotCoverEnoughAZs" // The replication subnet group does not cover enough Availability Zones (AZs). // Edit the replication subnet group and add more AZs. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The subnet provided is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationSubnetGroup func (c *DatabaseMigrationService) ModifyReplicationSubnetGroup(input *ModifyReplicationSubnetGroupInput) (*ModifyReplicationSubnetGroupOutput, error) { req, out := c.ModifyReplicationSubnetGroupRequest(input) err := req.Send() return out, err } +const opModifyReplicationTask = "ModifyReplicationTask" + +// ModifyReplicationTaskRequest generates a "aws/request.Request" representing the +// client's request for the ModifyReplicationTask operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ModifyReplicationTask for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ModifyReplicationTask method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ModifyReplicationTaskRequest method. +// req, resp := client.ModifyReplicationTaskRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationTask +func (c *DatabaseMigrationService) ModifyReplicationTaskRequest(input *ModifyReplicationTaskInput) (req *request.Request, output *ModifyReplicationTaskOutput) { + op := &request.Operation{ + Name: opModifyReplicationTask, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyReplicationTaskInput{} + } + + output = &ModifyReplicationTaskOutput{} + req = c.newRequest(op, input, output) + return +} + +// ModifyReplicationTask API operation for AWS Database Migration Service. +// +// Modifies the specified replication task. +// +// You can't modify the task endpoints. The task must be stopped before you +// can modify it. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation ModifyReplicationTask for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// The resource is in a state that prevents it from being used for database +// migration. +// +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// The resource could not be found. +// +// * ErrCodeResourceAlreadyExistsFault "ResourceAlreadyExistsFault" +// The resource you are attempting to create already exists. +// +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" +// AWS DMS cannot access the KMS key. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationTask +func (c *DatabaseMigrationService) ModifyReplicationTask(input *ModifyReplicationTaskInput) (*ModifyReplicationTaskOutput, error) { + req, out := c.ModifyReplicationTaskRequest(input) + err := req.Send() + return out, err +} + const opRefreshSchemas = "RefreshSchemas" // RefreshSchemasRequest generates a "aws/request.Request" representing the @@ -1921,6 +2029,7 @@ const opRefreshSchemas = "RefreshSchemas" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RefreshSchemas func (c *DatabaseMigrationService) RefreshSchemasRequest(input *RefreshSchemasInput) (req *request.Request, output *RefreshSchemasOutput) { op := &request.Operation{ Name: opRefreshSchemas, @@ -1932,9 +2041,8 @@ func (c *DatabaseMigrationService) RefreshSchemasRequest(input *RefreshSchemasIn input = &RefreshSchemasInput{} } - req = c.newRequest(op, input, output) output = &RefreshSchemasOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1952,19 +2060,20 @@ func (c *DatabaseMigrationService) RefreshSchemasRequest(input *RefreshSchemasIn // API operation RefreshSchemas for usage and error information. // // Returned Error Codes: -// * InvalidResourceStateFault +// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" // The resource is in a state that prevents it from being used for database // migration. // -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // AWS DMS cannot access the KMS key. // -// * ResourceQuotaExceededFault +// * ErrCodeResourceQuotaExceededFault "ResourceQuotaExceededFault" // The quota for this resource quota has been exceeded. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RefreshSchemas func (c *DatabaseMigrationService) RefreshSchemas(input *RefreshSchemasInput) (*RefreshSchemasOutput, error) { req, out := c.RefreshSchemasRequest(input) err := req.Send() @@ -1997,6 +2106,7 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RemoveTagsFromResource func (c *DatabaseMigrationService) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) { op := &request.Operation{ Name: opRemoveTagsFromResource, @@ -2008,9 +2118,8 @@ func (c *DatabaseMigrationService) RemoveTagsFromResourceRequest(input *RemoveTa input = &RemoveTagsFromResourceInput{} } - req = c.newRequest(op, input, output) output = &RemoveTagsFromResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2026,9 +2135,10 @@ func (c *DatabaseMigrationService) RemoveTagsFromResourceRequest(input *RemoveTa // API operation RemoveTagsFromResource for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RemoveTagsFromResource func (c *DatabaseMigrationService) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { req, out := c.RemoveTagsFromResourceRequest(input) err := req.Send() @@ -2061,6 +2171,7 @@ const opStartReplicationTask = "StartReplicationTask" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTask func (c *DatabaseMigrationService) StartReplicationTaskRequest(input *StartReplicationTaskInput) (req *request.Request, output *StartReplicationTaskOutput) { op := &request.Operation{ Name: opStartReplicationTask, @@ -2072,9 +2183,8 @@ func (c *DatabaseMigrationService) StartReplicationTaskRequest(input *StartRepli input = &StartReplicationTaskInput{} } - req = c.newRequest(op, input, output) output = &StartReplicationTaskOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2090,13 +2200,14 @@ func (c *DatabaseMigrationService) StartReplicationTaskRequest(input *StartRepli // API operation StartReplicationTask for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // -// * InvalidResourceStateFault +// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" // The resource is in a state that prevents it from being used for database // migration. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTask func (c *DatabaseMigrationService) StartReplicationTask(input *StartReplicationTaskInput) (*StartReplicationTaskOutput, error) { req, out := c.StartReplicationTaskRequest(input) err := req.Send() @@ -2129,6 +2240,7 @@ const opStopReplicationTask = "StopReplicationTask" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StopReplicationTask func (c *DatabaseMigrationService) StopReplicationTaskRequest(input *StopReplicationTaskInput) (req *request.Request, output *StopReplicationTaskOutput) { op := &request.Operation{ Name: opStopReplicationTask, @@ -2140,9 +2252,8 @@ func (c *DatabaseMigrationService) StopReplicationTaskRequest(input *StopReplica input = &StopReplicationTaskInput{} } - req = c.newRequest(op, input, output) output = &StopReplicationTaskOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2158,13 +2269,14 @@ func (c *DatabaseMigrationService) StopReplicationTaskRequest(input *StopReplica // API operation StopReplicationTask for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // -// * InvalidResourceStateFault +// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" // The resource is in a state that prevents it from being used for database // migration. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StopReplicationTask func (c *DatabaseMigrationService) StopReplicationTask(input *StopReplicationTaskInput) (*StopReplicationTaskOutput, error) { req, out := c.StopReplicationTaskRequest(input) err := req.Send() @@ -2197,6 +2309,7 @@ const opTestConnection = "TestConnection" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/TestConnection func (c *DatabaseMigrationService) TestConnectionRequest(input *TestConnectionInput) (req *request.Request, output *TestConnectionOutput) { op := &request.Operation{ Name: opTestConnection, @@ -2208,9 +2321,8 @@ func (c *DatabaseMigrationService) TestConnectionRequest(input *TestConnectionIn input = &TestConnectionInput{} } - req = c.newRequest(op, input, output) output = &TestConnectionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2226,19 +2338,20 @@ func (c *DatabaseMigrationService) TestConnectionRequest(input *TestConnectionIn // API operation TestConnection for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // -// * InvalidResourceStateFault +// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" // The resource is in a state that prevents it from being used for database // migration. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // AWS DMS cannot access the KMS key. // -// * ResourceQuotaExceededFault +// * ErrCodeResourceQuotaExceededFault "ResourceQuotaExceededFault" // The quota for this resource quota has been exceeded. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/TestConnection func (c *DatabaseMigrationService) TestConnection(input *TestConnectionInput) (*TestConnectionOutput, error) { req, out := c.TestConnectionRequest(input) err := req.Send() @@ -2247,6 +2360,7 @@ func (c *DatabaseMigrationService) TestConnection(input *TestConnectionInput) (* // Describes a quota for an AWS account, for example, the number of replication // instances allowed. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/AccountQuota type AccountQuota struct { _ struct{} `type:"structure"` @@ -2270,6 +2384,25 @@ func (s AccountQuota) GoString() string { return s.String() } +// SetAccountQuotaName sets the AccountQuotaName field's value. +func (s *AccountQuota) SetAccountQuotaName(v string) *AccountQuota { + s.AccountQuotaName = &v + return s +} + +// SetMax sets the Max field's value. +func (s *AccountQuota) SetMax(v int64) *AccountQuota { + s.Max = &v + return s +} + +// SetUsed sets the Used field's value. +func (s *AccountQuota) SetUsed(v int64) *AccountQuota { + s.Used = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/AddTagsToResourceMessage type AddTagsToResourceInput struct { _ struct{} `type:"structure"` @@ -2312,6 +2445,19 @@ func (s *AddTagsToResourceInput) Validate() error { return nil } +// SetResourceArn sets the ResourceArn field's value. +func (s *AddTagsToResourceInput) SetResourceArn(v string) *AddTagsToResourceInput { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsToResourceInput) SetTags(v []*Tag) *AddTagsToResourceInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/AddTagsToResourceResponse type AddTagsToResourceOutput struct { _ struct{} `type:"structure"` } @@ -2326,6 +2472,7 @@ func (s AddTagsToResourceOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/AvailabilityZone type AvailabilityZone struct { _ struct{} `type:"structure"` @@ -2343,36 +2490,49 @@ func (s AvailabilityZone) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *AvailabilityZone) SetName(v string) *AvailabilityZone { + s.Name = &v + return s +} + // The SSL certificate that can be used to encrypt connections between the endpoints // and the replication instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/Certificate type Certificate struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) for the certificate. CertificateArn *string `type:"string"` - // the date the certificate was created. + // The date that the certificate was created. CertificateCreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` - // The customer-assigned name of the certificate. Valid characters are [A-z_0-9]. + // The customer-assigned name of the certificate. Valid characters are A-z and + // 0-9. CertificateIdentifier *string `type:"string"` // The owner of the certificate. CertificateOwner *string `type:"string"` - // The contents of the .pem X.509 certificate file. + // The contents of the .pem X.509 certificate file for the certificate. CertificatePem *string `type:"string"` + // The location of the imported Oracle Wallet certificate for use with SSL. + // + // CertificateWallet is automatically base64 encoded/decoded by the SDK. + CertificateWallet []byte `type:"blob"` + // The key length of the cryptographic algorithm being used. KeyLength *int64 `type:"integer"` // The signing algorithm for the certificate. SigningAlgorithm *string `type:"string"` - // The beginning date the certificate is valid. + // The beginning date that the certificate is valid. ValidFromDate *time.Time `type:"timestamp" timestampFormat:"unix"` - // the final date the certificate is valid. + // The final date that the certificate is valid. ValidToDate *time.Time `type:"timestamp" timestampFormat:"unix"` } @@ -2386,6 +2546,67 @@ func (s Certificate) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *Certificate) SetCertificateArn(v string) *Certificate { + s.CertificateArn = &v + return s +} + +// SetCertificateCreationDate sets the CertificateCreationDate field's value. +func (s *Certificate) SetCertificateCreationDate(v time.Time) *Certificate { + s.CertificateCreationDate = &v + return s +} + +// SetCertificateIdentifier sets the CertificateIdentifier field's value. +func (s *Certificate) SetCertificateIdentifier(v string) *Certificate { + s.CertificateIdentifier = &v + return s +} + +// SetCertificateOwner sets the CertificateOwner field's value. +func (s *Certificate) SetCertificateOwner(v string) *Certificate { + s.CertificateOwner = &v + return s +} + +// SetCertificatePem sets the CertificatePem field's value. +func (s *Certificate) SetCertificatePem(v string) *Certificate { + s.CertificatePem = &v + return s +} + +// SetCertificateWallet sets the CertificateWallet field's value. +func (s *Certificate) SetCertificateWallet(v []byte) *Certificate { + s.CertificateWallet = v + return s +} + +// SetKeyLength sets the KeyLength field's value. +func (s *Certificate) SetKeyLength(v int64) *Certificate { + s.KeyLength = &v + return s +} + +// SetSigningAlgorithm sets the SigningAlgorithm field's value. +func (s *Certificate) SetSigningAlgorithm(v string) *Certificate { + s.SigningAlgorithm = &v + return s +} + +// SetValidFromDate sets the ValidFromDate field's value. +func (s *Certificate) SetValidFromDate(v time.Time) *Certificate { + s.ValidFromDate = &v + return s +} + +// SetValidToDate sets the ValidToDate field's value. +func (s *Certificate) SetValidToDate(v time.Time) *Certificate { + s.ValidToDate = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/Connection type Connection struct { _ struct{} `type:"structure"` @@ -2421,6 +2642,43 @@ func (s Connection) GoString() string { return s.String() } +// SetEndpointArn sets the EndpointArn field's value. +func (s *Connection) SetEndpointArn(v string) *Connection { + s.EndpointArn = &v + return s +} + +// SetEndpointIdentifier sets the EndpointIdentifier field's value. +func (s *Connection) SetEndpointIdentifier(v string) *Connection { + s.EndpointIdentifier = &v + return s +} + +// SetLastFailureMessage sets the LastFailureMessage field's value. +func (s *Connection) SetLastFailureMessage(v string) *Connection { + s.LastFailureMessage = &v + return s +} + +// SetReplicationInstanceArn sets the ReplicationInstanceArn field's value. +func (s *Connection) SetReplicationInstanceArn(v string) *Connection { + s.ReplicationInstanceArn = &v + return s +} + +// SetReplicationInstanceIdentifier sets the ReplicationInstanceIdentifier field's value. +func (s *Connection) SetReplicationInstanceIdentifier(v string) *Connection { + s.ReplicationInstanceIdentifier = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Connection) SetStatus(v string) *Connection { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateEndpointMessage type CreateEndpointInput struct { _ struct{} `type:"structure"` @@ -2443,7 +2701,7 @@ type CreateEndpointInput struct { EndpointType *string `type:"string" required:"true" enum:"ReplicationEndpointTypeValue"` // The type of engine for the endpoint. Valid values include MYSQL, ORACLE, - // POSTGRES, MARIADB, AURORA, REDSHIFT, and SQLSERVER. + // POSTGRES, MARIADB, AURORA, REDSHIFT, SYBASE, and SQLSERVER. // // EngineName is a required field EngineName *string `type:"string" required:"true"` @@ -2459,19 +2717,13 @@ type CreateEndpointInput struct { KmsKeyId *string `type:"string"` // The password to be used to login to the endpoint database. - // - // Password is a required field - Password *string `type:"string" required:"true"` + Password *string `type:"string"` // The port used by the endpoint database. - // - // Port is a required field - Port *int64 `type:"integer" required:"true"` + Port *int64 `type:"integer"` // The name of the server where the endpoint database resides. - // - // ServerName is a required field - ServerName *string `type:"string" required:"true"` + ServerName *string `type:"string"` // The SSL mode to use for the SSL connection. // @@ -2484,9 +2736,7 @@ type CreateEndpointInput struct { Tags []*Tag `locationNameList:"Tag" type:"list"` // The user name to be used to login to the endpoint database. - // - // Username is a required field - Username *string `type:"string" required:"true"` + Username *string `type:"string"` } // String returns the string representation @@ -2511,18 +2761,6 @@ func (s *CreateEndpointInput) Validate() error { if s.EngineName == nil { invalidParams.Add(request.NewErrParamRequired("EngineName")) } - if s.Password == nil { - invalidParams.Add(request.NewErrParamRequired("Password")) - } - if s.Port == nil { - invalidParams.Add(request.NewErrParamRequired("Port")) - } - if s.ServerName == nil { - invalidParams.Add(request.NewErrParamRequired("ServerName")) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } if invalidParams.Len() > 0 { return invalidParams @@ -2530,6 +2768,85 @@ func (s *CreateEndpointInput) Validate() error { return nil } +// SetCertificateArn sets the CertificateArn field's value. +func (s *CreateEndpointInput) SetCertificateArn(v string) *CreateEndpointInput { + s.CertificateArn = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *CreateEndpointInput) SetDatabaseName(v string) *CreateEndpointInput { + s.DatabaseName = &v + return s +} + +// SetEndpointIdentifier sets the EndpointIdentifier field's value. +func (s *CreateEndpointInput) SetEndpointIdentifier(v string) *CreateEndpointInput { + s.EndpointIdentifier = &v + return s +} + +// SetEndpointType sets the EndpointType field's value. +func (s *CreateEndpointInput) SetEndpointType(v string) *CreateEndpointInput { + s.EndpointType = &v + return s +} + +// SetEngineName sets the EngineName field's value. +func (s *CreateEndpointInput) SetEngineName(v string) *CreateEndpointInput { + s.EngineName = &v + return s +} + +// SetExtraConnectionAttributes sets the ExtraConnectionAttributes field's value. +func (s *CreateEndpointInput) SetExtraConnectionAttributes(v string) *CreateEndpointInput { + s.ExtraConnectionAttributes = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateEndpointInput) SetKmsKeyId(v string) *CreateEndpointInput { + s.KmsKeyId = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *CreateEndpointInput) SetPassword(v string) *CreateEndpointInput { + s.Password = &v + return s +} + +// SetPort sets the Port field's value. +func (s *CreateEndpointInput) SetPort(v int64) *CreateEndpointInput { + s.Port = &v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *CreateEndpointInput) SetServerName(v string) *CreateEndpointInput { + s.ServerName = &v + return s +} + +// SetSslMode sets the SslMode field's value. +func (s *CreateEndpointInput) SetSslMode(v string) *CreateEndpointInput { + s.SslMode = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateEndpointInput) SetTags(v []*Tag) *CreateEndpointInput { + s.Tags = v + return s +} + +// SetUsername sets the Username field's value. +func (s *CreateEndpointInput) SetUsername(v string) *CreateEndpointInput { + s.Username = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateEndpointResponse type CreateEndpointOutput struct { _ struct{} `type:"structure"` @@ -2547,6 +2864,13 @@ func (s CreateEndpointOutput) GoString() string { return s.String() } +// SetEndpoint sets the Endpoint field's value. +func (s *CreateEndpointOutput) SetEndpoint(v *Endpoint) *CreateEndpointOutput { + s.Endpoint = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationInstanceMessage type CreateReplicationInstanceInput struct { _ struct{} `type:"structure"` @@ -2564,7 +2888,7 @@ type CreateReplicationInstanceInput struct { // // Default: A random, system-chosen Availability Zone in the endpoint's region. // - // Example: us-east-1d + // Example: us-east-1d AvailabilityZone *string `type:"string"` // The engine version number of the replication instance. @@ -2584,7 +2908,7 @@ type CreateReplicationInstanceInput struct { // The weekly time range during which system maintenance can occur, in Universal // Coordinated Time (UTC). // - // Format: ddd:hh24:mi-ddd:hh24:mi + // Format: ddd:hh24:mi-ddd:hh24:mi // // Default: A 30-minute window selected at random from an 8-hour block of time // per region, occurring on a random day of the week. @@ -2602,7 +2926,7 @@ type CreateReplicationInstanceInput struct { // The compute and memory capacity of the replication instance as specified // by the replication instance class. // - // Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large + // Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large // | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge // // ReplicationInstanceClass is a required field @@ -2613,13 +2937,13 @@ type CreateReplicationInstanceInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Example: myrepinstance + // Example: myrepinstance // // ReplicationInstanceIdentifier is a required field ReplicationInstanceIdentifier *string `type:"string" required:"true"` @@ -2662,6 +2986,85 @@ func (s *CreateReplicationInstanceInput) Validate() error { return nil } +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *CreateReplicationInstanceInput) SetAllocatedStorage(v int64) *CreateReplicationInstanceInput { + s.AllocatedStorage = &v + return s +} + +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *CreateReplicationInstanceInput) SetAutoMinorVersionUpgrade(v bool) *CreateReplicationInstanceInput { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateReplicationInstanceInput) SetAvailabilityZone(v string) *CreateReplicationInstanceInput { + s.AvailabilityZone = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *CreateReplicationInstanceInput) SetEngineVersion(v string) *CreateReplicationInstanceInput { + s.EngineVersion = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateReplicationInstanceInput) SetKmsKeyId(v string) *CreateReplicationInstanceInput { + s.KmsKeyId = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *CreateReplicationInstanceInput) SetMultiAZ(v bool) *CreateReplicationInstanceInput { + s.MultiAZ = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *CreateReplicationInstanceInput) SetPreferredMaintenanceWindow(v string) *CreateReplicationInstanceInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *CreateReplicationInstanceInput) SetPubliclyAccessible(v bool) *CreateReplicationInstanceInput { + s.PubliclyAccessible = &v + return s +} + +// SetReplicationInstanceClass sets the ReplicationInstanceClass field's value. +func (s *CreateReplicationInstanceInput) SetReplicationInstanceClass(v string) *CreateReplicationInstanceInput { + s.ReplicationInstanceClass = &v + return s +} + +// SetReplicationInstanceIdentifier sets the ReplicationInstanceIdentifier field's value. +func (s *CreateReplicationInstanceInput) SetReplicationInstanceIdentifier(v string) *CreateReplicationInstanceInput { + s.ReplicationInstanceIdentifier = &v + return s +} + +// SetReplicationSubnetGroupIdentifier sets the ReplicationSubnetGroupIdentifier field's value. +func (s *CreateReplicationInstanceInput) SetReplicationSubnetGroupIdentifier(v string) *CreateReplicationInstanceInput { + s.ReplicationSubnetGroupIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateReplicationInstanceInput) SetTags(v []*Tag) *CreateReplicationInstanceInput { + s.Tags = v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *CreateReplicationInstanceInput) SetVpcSecurityGroupIds(v []*string) *CreateReplicationInstanceInput { + s.VpcSecurityGroupIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationInstanceResponse type CreateReplicationInstanceOutput struct { _ struct{} `type:"structure"` @@ -2679,6 +3082,13 @@ func (s CreateReplicationInstanceOutput) GoString() string { return s.String() } +// SetReplicationInstance sets the ReplicationInstance field's value. +func (s *CreateReplicationInstanceOutput) SetReplicationInstance(v *ReplicationInstance) *CreateReplicationInstanceOutput { + s.ReplicationInstance = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationSubnetGroupMessage type CreateReplicationSubnetGroupInput struct { _ struct{} `type:"structure"` @@ -2736,6 +3146,31 @@ func (s *CreateReplicationSubnetGroupInput) Validate() error { return nil } +// SetReplicationSubnetGroupDescription sets the ReplicationSubnetGroupDescription field's value. +func (s *CreateReplicationSubnetGroupInput) SetReplicationSubnetGroupDescription(v string) *CreateReplicationSubnetGroupInput { + s.ReplicationSubnetGroupDescription = &v + return s +} + +// SetReplicationSubnetGroupIdentifier sets the ReplicationSubnetGroupIdentifier field's value. +func (s *CreateReplicationSubnetGroupInput) SetReplicationSubnetGroupIdentifier(v string) *CreateReplicationSubnetGroupInput { + s.ReplicationSubnetGroupIdentifier = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *CreateReplicationSubnetGroupInput) SetSubnetIds(v []*string) *CreateReplicationSubnetGroupInput { + s.SubnetIds = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateReplicationSubnetGroupInput) SetTags(v []*Tag) *CreateReplicationSubnetGroupInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationSubnetGroupResponse type CreateReplicationSubnetGroupOutput struct { _ struct{} `type:"structure"` @@ -2753,6 +3188,13 @@ func (s CreateReplicationSubnetGroupOutput) GoString() string { return s.String() } +// SetReplicationSubnetGroup sets the ReplicationSubnetGroup field's value. +func (s *CreateReplicationSubnetGroupOutput) SetReplicationSubnetGroup(v *ReplicationSubnetGroup) *CreateReplicationSubnetGroupOutput { + s.ReplicationSubnetGroup = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationTaskMessage type CreateReplicationTaskInput struct { _ struct{} `type:"structure"` @@ -2773,16 +3215,18 @@ type CreateReplicationTaskInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // // ReplicationTaskIdentifier is a required field ReplicationTaskIdentifier *string `type:"string" required:"true"` - // Settings for the task, such as target metadata settings. + // Settings for the task, such as target metadata settings. For a complete list + // of task settings, see Task Settings for AWS Database Migration Service Tasks + // (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.html). ReplicationTaskSettings *string `type:"string"` // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. @@ -2845,27 +3289,89 @@ func (s *CreateReplicationTaskInput) Validate() error { return nil } -type CreateReplicationTaskOutput struct { - _ struct{} `type:"structure"` +// SetCdcStartTime sets the CdcStartTime field's value. +func (s *CreateReplicationTaskInput) SetCdcStartTime(v time.Time) *CreateReplicationTaskInput { + s.CdcStartTime = &v + return s +} - // The replication task that was created. - ReplicationTask *ReplicationTask `type:"structure"` +// SetMigrationType sets the MigrationType field's value. +func (s *CreateReplicationTaskInput) SetMigrationType(v string) *CreateReplicationTaskInput { + s.MigrationType = &v + return s } -// String returns the string representation -func (s CreateReplicationTaskOutput) String() string { - return awsutil.Prettify(s) +// SetReplicationInstanceArn sets the ReplicationInstanceArn field's value. +func (s *CreateReplicationTaskInput) SetReplicationInstanceArn(v string) *CreateReplicationTaskInput { + s.ReplicationInstanceArn = &v + return s } -// GoString returns the string representation -func (s CreateReplicationTaskOutput) GoString() string { - return s.String() +// SetReplicationTaskIdentifier sets the ReplicationTaskIdentifier field's value. +func (s *CreateReplicationTaskInput) SetReplicationTaskIdentifier(v string) *CreateReplicationTaskInput { + s.ReplicationTaskIdentifier = &v + return s } +// SetReplicationTaskSettings sets the ReplicationTaskSettings field's value. +func (s *CreateReplicationTaskInput) SetReplicationTaskSettings(v string) *CreateReplicationTaskInput { + s.ReplicationTaskSettings = &v + return s +} + +// SetSourceEndpointArn sets the SourceEndpointArn field's value. +func (s *CreateReplicationTaskInput) SetSourceEndpointArn(v string) *CreateReplicationTaskInput { + s.SourceEndpointArn = &v + return s +} + +// SetTableMappings sets the TableMappings field's value. +func (s *CreateReplicationTaskInput) SetTableMappings(v string) *CreateReplicationTaskInput { + s.TableMappings = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateReplicationTaskInput) SetTags(v []*Tag) *CreateReplicationTaskInput { + s.Tags = v + return s +} + +// SetTargetEndpointArn sets the TargetEndpointArn field's value. +func (s *CreateReplicationTaskInput) SetTargetEndpointArn(v string) *CreateReplicationTaskInput { + s.TargetEndpointArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationTaskResponse +type CreateReplicationTaskOutput struct { + _ struct{} `type:"structure"` + + // The replication task that was created. + ReplicationTask *ReplicationTask `type:"structure"` +} + +// String returns the string representation +func (s CreateReplicationTaskOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateReplicationTaskOutput) GoString() string { + return s.String() +} + +// SetReplicationTask sets the ReplicationTask field's value. +func (s *CreateReplicationTaskOutput) SetReplicationTask(v *ReplicationTask) *CreateReplicationTaskOutput { + s.ReplicationTask = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteCertificateMessage type DeleteCertificateInput struct { _ struct{} `type:"structure"` - // the Amazon Resource Name (ARN) of the deleted certificate. + // The Amazon Resource Name (ARN) of the deleted certificate. // // CertificateArn is a required field CertificateArn *string `type:"string" required:"true"` @@ -2894,10 +3400,17 @@ func (s *DeleteCertificateInput) Validate() error { return nil } +// SetCertificateArn sets the CertificateArn field's value. +func (s *DeleteCertificateInput) SetCertificateArn(v string) *DeleteCertificateInput { + s.CertificateArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteCertificateResponse type DeleteCertificateOutput struct { _ struct{} `type:"structure"` - // The SSL certificate. + // The Secure Sockets Layer (SSL) certificate. Certificate *Certificate `type:"structure"` } @@ -2911,6 +3424,13 @@ func (s DeleteCertificateOutput) GoString() string { return s.String() } +// SetCertificate sets the Certificate field's value. +func (s *DeleteCertificateOutput) SetCertificate(v *Certificate) *DeleteCertificateOutput { + s.Certificate = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteEndpointMessage type DeleteEndpointInput struct { _ struct{} `type:"structure"` @@ -2943,6 +3463,13 @@ func (s *DeleteEndpointInput) Validate() error { return nil } +// SetEndpointArn sets the EndpointArn field's value. +func (s *DeleteEndpointInput) SetEndpointArn(v string) *DeleteEndpointInput { + s.EndpointArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteEndpointResponse type DeleteEndpointOutput struct { _ struct{} `type:"structure"` @@ -2960,6 +3487,13 @@ func (s DeleteEndpointOutput) GoString() string { return s.String() } +// SetEndpoint sets the Endpoint field's value. +func (s *DeleteEndpointOutput) SetEndpoint(v *Endpoint) *DeleteEndpointOutput { + s.Endpoint = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationInstanceMessage type DeleteReplicationInstanceInput struct { _ struct{} `type:"structure"` @@ -2992,6 +3526,13 @@ func (s *DeleteReplicationInstanceInput) Validate() error { return nil } +// SetReplicationInstanceArn sets the ReplicationInstanceArn field's value. +func (s *DeleteReplicationInstanceInput) SetReplicationInstanceArn(v string) *DeleteReplicationInstanceInput { + s.ReplicationInstanceArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationInstanceResponse type DeleteReplicationInstanceOutput struct { _ struct{} `type:"structure"` @@ -3009,6 +3550,13 @@ func (s DeleteReplicationInstanceOutput) GoString() string { return s.String() } +// SetReplicationInstance sets the ReplicationInstance field's value. +func (s *DeleteReplicationInstanceOutput) SetReplicationInstance(v *ReplicationInstance) *DeleteReplicationInstanceOutput { + s.ReplicationInstance = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationSubnetGroupMessage type DeleteReplicationSubnetGroupInput struct { _ struct{} `type:"structure"` @@ -3041,6 +3589,13 @@ func (s *DeleteReplicationSubnetGroupInput) Validate() error { return nil } +// SetReplicationSubnetGroupIdentifier sets the ReplicationSubnetGroupIdentifier field's value. +func (s *DeleteReplicationSubnetGroupInput) SetReplicationSubnetGroupIdentifier(v string) *DeleteReplicationSubnetGroupInput { + s.ReplicationSubnetGroupIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationSubnetGroupResponse type DeleteReplicationSubnetGroupOutput struct { _ struct{} `type:"structure"` } @@ -3055,6 +3610,7 @@ func (s DeleteReplicationSubnetGroupOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationTaskMessage type DeleteReplicationTaskInput struct { _ struct{} `type:"structure"` @@ -3087,6 +3643,13 @@ func (s *DeleteReplicationTaskInput) Validate() error { return nil } +// SetReplicationTaskArn sets the ReplicationTaskArn field's value. +func (s *DeleteReplicationTaskInput) SetReplicationTaskArn(v string) *DeleteReplicationTaskInput { + s.ReplicationTaskArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationTaskResponse type DeleteReplicationTaskOutput struct { _ struct{} `type:"structure"` @@ -3104,6 +3667,13 @@ func (s DeleteReplicationTaskOutput) GoString() string { return s.String() } +// SetReplicationTask sets the ReplicationTask field's value. +func (s *DeleteReplicationTaskOutput) SetReplicationTask(v *ReplicationTask) *DeleteReplicationTaskOutput { + s.ReplicationTask = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeAccountAttributesMessage type DescribeAccountAttributesInput struct { _ struct{} `type:"structure"` } @@ -3118,6 +3688,7 @@ func (s DescribeAccountAttributesInput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeAccountAttributesResponse type DescribeAccountAttributesOutput struct { _ struct{} `type:"structure"` @@ -3135,6 +3706,13 @@ func (s DescribeAccountAttributesOutput) GoString() string { return s.String() } +// SetAccountQuotas sets the AccountQuotas field's value. +func (s *DescribeAccountAttributesOutput) SetAccountQuotas(v []*AccountQuota) *DescribeAccountAttributesOutput { + s.AccountQuotas = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeCertificatesMessage type DescribeCertificatesInput struct { _ struct{} `type:"structure"` @@ -3184,10 +3762,30 @@ func (s *DescribeCertificatesInput) Validate() error { return nil } +// SetFilters sets the Filters field's value. +func (s *DescribeCertificatesInput) SetFilters(v []*Filter) *DescribeCertificatesInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCertificatesInput) SetMarker(v string) *DescribeCertificatesInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeCertificatesInput) SetMaxRecords(v int64) *DescribeCertificatesInput { + s.MaxRecords = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeCertificatesResponse type DescribeCertificatesOutput struct { _ struct{} `type:"structure"` - // The SSL certificates associated with the replication instance. + // The Secure Sockets Layer (SSL) certificates associated with the replication + // instance. Certificates []*Certificate `locationNameList:"Certificate" type:"list"` // The pagination token. @@ -3204,6 +3802,19 @@ func (s DescribeCertificatesOutput) GoString() string { return s.String() } +// SetCertificates sets the Certificates field's value. +func (s *DescribeCertificatesOutput) SetCertificates(v []*Certificate) *DescribeCertificatesOutput { + s.Certificates = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCertificatesOutput) SetMarker(v string) *DescribeCertificatesOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeConnectionsMessage type DescribeConnectionsInput struct { _ struct{} `type:"structure"` @@ -3257,6 +3868,25 @@ func (s *DescribeConnectionsInput) Validate() error { return nil } +// SetFilters sets the Filters field's value. +func (s *DescribeConnectionsInput) SetFilters(v []*Filter) *DescribeConnectionsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeConnectionsInput) SetMarker(v string) *DescribeConnectionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeConnectionsInput) SetMaxRecords(v int64) *DescribeConnectionsInput { + s.MaxRecords = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeConnectionsResponse type DescribeConnectionsOutput struct { _ struct{} `type:"structure"` @@ -3279,6 +3909,19 @@ func (s DescribeConnectionsOutput) GoString() string { return s.String() } +// SetConnections sets the Connections field's value. +func (s *DescribeConnectionsOutput) SetConnections(v []*Connection) *DescribeConnectionsOutput { + s.Connections = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeConnectionsOutput) SetMarker(v string) *DescribeConnectionsOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEndpointTypesMessage type DescribeEndpointTypesInput struct { _ struct{} `type:"structure"` @@ -3332,6 +3975,25 @@ func (s *DescribeEndpointTypesInput) Validate() error { return nil } +// SetFilters sets the Filters field's value. +func (s *DescribeEndpointTypesInput) SetFilters(v []*Filter) *DescribeEndpointTypesInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEndpointTypesInput) SetMarker(v string) *DescribeEndpointTypesInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEndpointTypesInput) SetMaxRecords(v int64) *DescribeEndpointTypesInput { + s.MaxRecords = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEndpointTypesResponse type DescribeEndpointTypesOutput struct { _ struct{} `type:"structure"` @@ -3354,6 +4016,19 @@ func (s DescribeEndpointTypesOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeEndpointTypesOutput) SetMarker(v string) *DescribeEndpointTypesOutput { + s.Marker = &v + return s +} + +// SetSupportedEndpointTypes sets the SupportedEndpointTypes field's value. +func (s *DescribeEndpointTypesOutput) SetSupportedEndpointTypes(v []*SupportedEndpointType) *DescribeEndpointTypesOutput { + s.SupportedEndpointTypes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEndpointsMessage type DescribeEndpointsInput struct { _ struct{} `type:"structure"` @@ -3407,6 +4082,25 @@ func (s *DescribeEndpointsInput) Validate() error { return nil } +// SetFilters sets the Filters field's value. +func (s *DescribeEndpointsInput) SetFilters(v []*Filter) *DescribeEndpointsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEndpointsInput) SetMarker(v string) *DescribeEndpointsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEndpointsInput) SetMaxRecords(v int64) *DescribeEndpointsInput { + s.MaxRecords = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEndpointsResponse type DescribeEndpointsOutput struct { _ struct{} `type:"structure"` @@ -3429,6 +4123,19 @@ func (s DescribeEndpointsOutput) GoString() string { return s.String() } +// SetEndpoints sets the Endpoints field's value. +func (s *DescribeEndpointsOutput) SetEndpoints(v []*Endpoint) *DescribeEndpointsOutput { + s.Endpoints = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEndpointsOutput) SetMarker(v string) *DescribeEndpointsOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeOrderableReplicationInstancesMessage type DescribeOrderableReplicationInstancesInput struct { _ struct{} `type:"structure"` @@ -3457,6 +4164,19 @@ func (s DescribeOrderableReplicationInstancesInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeOrderableReplicationInstancesInput) SetMarker(v string) *DescribeOrderableReplicationInstancesInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeOrderableReplicationInstancesInput) SetMaxRecords(v int64) *DescribeOrderableReplicationInstancesInput { + s.MaxRecords = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeOrderableReplicationInstancesResponse type DescribeOrderableReplicationInstancesOutput struct { _ struct{} `type:"structure"` @@ -3479,6 +4199,19 @@ func (s DescribeOrderableReplicationInstancesOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeOrderableReplicationInstancesOutput) SetMarker(v string) *DescribeOrderableReplicationInstancesOutput { + s.Marker = &v + return s +} + +// SetOrderableReplicationInstances sets the OrderableReplicationInstances field's value. +func (s *DescribeOrderableReplicationInstancesOutput) SetOrderableReplicationInstances(v []*OrderableReplicationInstance) *DescribeOrderableReplicationInstancesOutput { + s.OrderableReplicationInstances = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeRefreshSchemasStatusMessage type DescribeRefreshSchemasStatusInput struct { _ struct{} `type:"structure"` @@ -3511,6 +4244,13 @@ func (s *DescribeRefreshSchemasStatusInput) Validate() error { return nil } +// SetEndpointArn sets the EndpointArn field's value. +func (s *DescribeRefreshSchemasStatusInput) SetEndpointArn(v string) *DescribeRefreshSchemasStatusInput { + s.EndpointArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeRefreshSchemasStatusResponse type DescribeRefreshSchemasStatusOutput struct { _ struct{} `type:"structure"` @@ -3528,6 +4268,13 @@ func (s DescribeRefreshSchemasStatusOutput) GoString() string { return s.String() } +// SetRefreshSchemasStatus sets the RefreshSchemasStatus field's value. +func (s *DescribeRefreshSchemasStatusOutput) SetRefreshSchemasStatus(v *RefreshSchemasStatus) *DescribeRefreshSchemasStatusOutput { + s.RefreshSchemasStatus = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationInstancesMessage type DescribeReplicationInstancesInput struct { _ struct{} `type:"structure"` @@ -3582,6 +4329,25 @@ func (s *DescribeReplicationInstancesInput) Validate() error { return nil } +// SetFilters sets the Filters field's value. +func (s *DescribeReplicationInstancesInput) SetFilters(v []*Filter) *DescribeReplicationInstancesInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeReplicationInstancesInput) SetMarker(v string) *DescribeReplicationInstancesInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeReplicationInstancesInput) SetMaxRecords(v int64) *DescribeReplicationInstancesInput { + s.MaxRecords = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationInstancesResponse type DescribeReplicationInstancesOutput struct { _ struct{} `type:"structure"` @@ -3604,6 +4370,19 @@ func (s DescribeReplicationInstancesOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReplicationInstancesOutput) SetMarker(v string) *DescribeReplicationInstancesOutput { + s.Marker = &v + return s +} + +// SetReplicationInstances sets the ReplicationInstances field's value. +func (s *DescribeReplicationInstancesOutput) SetReplicationInstances(v []*ReplicationInstance) *DescribeReplicationInstancesOutput { + s.ReplicationInstances = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationSubnetGroupsMessage type DescribeReplicationSubnetGroupsInput struct { _ struct{} `type:"structure"` @@ -3655,6 +4434,25 @@ func (s *DescribeReplicationSubnetGroupsInput) Validate() error { return nil } +// SetFilters sets the Filters field's value. +func (s *DescribeReplicationSubnetGroupsInput) SetFilters(v []*Filter) *DescribeReplicationSubnetGroupsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeReplicationSubnetGroupsInput) SetMarker(v string) *DescribeReplicationSubnetGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeReplicationSubnetGroupsInput) SetMaxRecords(v int64) *DescribeReplicationSubnetGroupsInput { + s.MaxRecords = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationSubnetGroupsResponse type DescribeReplicationSubnetGroupsOutput struct { _ struct{} `type:"structure"` @@ -3677,6 +4475,19 @@ func (s DescribeReplicationSubnetGroupsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReplicationSubnetGroupsOutput) SetMarker(v string) *DescribeReplicationSubnetGroupsOutput { + s.Marker = &v + return s +} + +// SetReplicationSubnetGroups sets the ReplicationSubnetGroups field's value. +func (s *DescribeReplicationSubnetGroupsOutput) SetReplicationSubnetGroups(v []*ReplicationSubnetGroup) *DescribeReplicationSubnetGroupsOutput { + s.ReplicationSubnetGroups = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTasksMessage type DescribeReplicationTasksInput struct { _ struct{} `type:"structure"` @@ -3731,6 +4542,25 @@ func (s *DescribeReplicationTasksInput) Validate() error { return nil } +// SetFilters sets the Filters field's value. +func (s *DescribeReplicationTasksInput) SetFilters(v []*Filter) *DescribeReplicationTasksInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeReplicationTasksInput) SetMarker(v string) *DescribeReplicationTasksInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeReplicationTasksInput) SetMaxRecords(v int64) *DescribeReplicationTasksInput { + s.MaxRecords = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTasksResponse type DescribeReplicationTasksOutput struct { _ struct{} `type:"structure"` @@ -3753,6 +4583,19 @@ func (s DescribeReplicationTasksOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReplicationTasksOutput) SetMarker(v string) *DescribeReplicationTasksOutput { + s.Marker = &v + return s +} + +// SetReplicationTasks sets the ReplicationTasks field's value. +func (s *DescribeReplicationTasksOutput) SetReplicationTasks(v []*ReplicationTask) *DescribeReplicationTasksOutput { + s.ReplicationTasks = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeSchemasMessage type DescribeSchemasInput struct { _ struct{} `type:"structure"` @@ -3799,6 +4642,25 @@ func (s *DescribeSchemasInput) Validate() error { return nil } +// SetEndpointArn sets the EndpointArn field's value. +func (s *DescribeSchemasInput) SetEndpointArn(v string) *DescribeSchemasInput { + s.EndpointArn = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeSchemasInput) SetMarker(v string) *DescribeSchemasInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeSchemasInput) SetMaxRecords(v int64) *DescribeSchemasInput { + s.MaxRecords = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeSchemasResponse type DescribeSchemasOutput struct { _ struct{} `type:"structure"` @@ -3821,6 +4683,19 @@ func (s DescribeSchemasOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeSchemasOutput) SetMarker(v string) *DescribeSchemasOutput { + s.Marker = &v + return s +} + +// SetSchemas sets the Schemas field's value. +func (s *DescribeSchemasOutput) SetSchemas(v []*string) *DescribeSchemasOutput { + s.Schemas = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeTableStatisticsMessage type DescribeTableStatisticsInput struct { _ struct{} `type:"structure"` @@ -3867,6 +4742,25 @@ func (s *DescribeTableStatisticsInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *DescribeTableStatisticsInput) SetMarker(v string) *DescribeTableStatisticsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeTableStatisticsInput) SetMaxRecords(v int64) *DescribeTableStatisticsInput { + s.MaxRecords = &v + return s +} + +// SetReplicationTaskArn sets the ReplicationTaskArn field's value. +func (s *DescribeTableStatisticsInput) SetReplicationTaskArn(v string) *DescribeTableStatisticsInput { + s.ReplicationTaskArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeTableStatisticsResponse type DescribeTableStatisticsOutput struct { _ struct{} `type:"structure"` @@ -3892,6 +4786,25 @@ func (s DescribeTableStatisticsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeTableStatisticsOutput) SetMarker(v string) *DescribeTableStatisticsOutput { + s.Marker = &v + return s +} + +// SetReplicationTaskArn sets the ReplicationTaskArn field's value. +func (s *DescribeTableStatisticsOutput) SetReplicationTaskArn(v string) *DescribeTableStatisticsOutput { + s.ReplicationTaskArn = &v + return s +} + +// SetTableStatistics sets the TableStatistics field's value. +func (s *DescribeTableStatisticsOutput) SetTableStatistics(v []*TableStatistics) *DescribeTableStatisticsOutput { + s.TableStatistics = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/Endpoint type Endpoint struct { _ struct{} `type:"structure"` @@ -3912,7 +4825,8 @@ type Endpoint struct { // The type of endpoint. EndpointType *string `type:"string" enum:"ReplicationEndpointTypeValue"` - // The database engine name. + // The database engine name. Valid values include MYSQL, ORACLE, POSTGRES, MARIADB, + // AURORA, REDSHIFT, SYBASE, and SQLSERVER. EngineName *string `type:"string"` // Additional connection attributes used to connect to the endpoint. @@ -3955,6 +4869,85 @@ func (s Endpoint) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *Endpoint) SetCertificateArn(v string) *Endpoint { + s.CertificateArn = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *Endpoint) SetDatabaseName(v string) *Endpoint { + s.DatabaseName = &v + return s +} + +// SetEndpointArn sets the EndpointArn field's value. +func (s *Endpoint) SetEndpointArn(v string) *Endpoint { + s.EndpointArn = &v + return s +} + +// SetEndpointIdentifier sets the EndpointIdentifier field's value. +func (s *Endpoint) SetEndpointIdentifier(v string) *Endpoint { + s.EndpointIdentifier = &v + return s +} + +// SetEndpointType sets the EndpointType field's value. +func (s *Endpoint) SetEndpointType(v string) *Endpoint { + s.EndpointType = &v + return s +} + +// SetEngineName sets the EngineName field's value. +func (s *Endpoint) SetEngineName(v string) *Endpoint { + s.EngineName = &v + return s +} + +// SetExtraConnectionAttributes sets the ExtraConnectionAttributes field's value. +func (s *Endpoint) SetExtraConnectionAttributes(v string) *Endpoint { + s.ExtraConnectionAttributes = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *Endpoint) SetKmsKeyId(v string) *Endpoint { + s.KmsKeyId = &v + return s +} + +// SetPort sets the Port field's value. +func (s *Endpoint) SetPort(v int64) *Endpoint { + s.Port = &v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *Endpoint) SetServerName(v string) *Endpoint { + s.ServerName = &v + return s +} + +// SetSslMode sets the SslMode field's value. +func (s *Endpoint) SetSslMode(v string) *Endpoint { + s.SslMode = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Endpoint) SetStatus(v string) *Endpoint { + s.Status = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *Endpoint) SetUsername(v string) *Endpoint { + s.Username = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/Filter type Filter struct { _ struct{} `type:"structure"` @@ -3995,16 +4988,35 @@ func (s *Filter) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *Filter) SetName(v string) *Filter { + s.Name = &v + return s +} + +// SetValues sets the Values field's value. +func (s *Filter) SetValues(v []*string) *Filter { + s.Values = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ImportCertificateMessage type ImportCertificateInput struct { _ struct{} `type:"structure"` - // The customer-assigned name of the certificate. Valid characters are [A-z_0-9]. + // The customer-assigned name of the certificate. Valid characters are A-z and + // 0-9. // // CertificateIdentifier is a required field CertificateIdentifier *string `type:"string" required:"true"` - // The contents of the .pem X.509 certificate file. + // The contents of the .pem X.509 certificate file for the certificate. CertificatePem *string `type:"string"` + + // The location of the imported Oracle Wallet certificate for use with SSL. + // + // CertificateWallet is automatically base64 encoded/decoded by the SDK. + CertificateWallet []byte `type:"blob"` } // String returns the string representation @@ -4030,6 +5042,25 @@ func (s *ImportCertificateInput) Validate() error { return nil } +// SetCertificateIdentifier sets the CertificateIdentifier field's value. +func (s *ImportCertificateInput) SetCertificateIdentifier(v string) *ImportCertificateInput { + s.CertificateIdentifier = &v + return s +} + +// SetCertificatePem sets the CertificatePem field's value. +func (s *ImportCertificateInput) SetCertificatePem(v string) *ImportCertificateInput { + s.CertificatePem = &v + return s +} + +// SetCertificateWallet sets the CertificateWallet field's value. +func (s *ImportCertificateInput) SetCertificateWallet(v []byte) *ImportCertificateInput { + s.CertificateWallet = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ImportCertificateResponse type ImportCertificateOutput struct { _ struct{} `type:"structure"` @@ -4047,6 +5078,13 @@ func (s ImportCertificateOutput) GoString() string { return s.String() } +// SetCertificate sets the Certificate field's value. +func (s *ImportCertificateOutput) SetCertificate(v *Certificate) *ImportCertificateOutput { + s.Certificate = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ListTagsForResourceMessage type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -4080,6 +5118,13 @@ func (s *ListTagsForResourceInput) Validate() error { return nil } +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ListTagsForResourceResponse type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` @@ -4097,6 +5142,13 @@ func (s ListTagsForResourceOutput) GoString() string { return s.String() } +// SetTagList sets the TagList field's value. +func (s *ListTagsForResourceOutput) SetTagList(v []*Tag) *ListTagsForResourceOutput { + s.TagList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyEndpointMessage type ModifyEndpointInput struct { _ struct{} `type:"structure"` @@ -4120,7 +5172,7 @@ type ModifyEndpointInput struct { EndpointType *string `type:"string" enum:"ReplicationEndpointTypeValue"` // The type of engine for the endpoint. Valid values include MYSQL, ORACLE, - // POSTGRES, MARIADB, AURORA, REDSHIFT, and SQLSERVER. + // POSTGRES, MARIADB, AURORA, REDSHIFT, SYBASE, and SQLSERVER. EngineName *string `type:"string"` // Additional attributes associated with the connection. @@ -4169,6 +5221,79 @@ func (s *ModifyEndpointInput) Validate() error { return nil } +// SetCertificateArn sets the CertificateArn field's value. +func (s *ModifyEndpointInput) SetCertificateArn(v string) *ModifyEndpointInput { + s.CertificateArn = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *ModifyEndpointInput) SetDatabaseName(v string) *ModifyEndpointInput { + s.DatabaseName = &v + return s +} + +// SetEndpointArn sets the EndpointArn field's value. +func (s *ModifyEndpointInput) SetEndpointArn(v string) *ModifyEndpointInput { + s.EndpointArn = &v + return s +} + +// SetEndpointIdentifier sets the EndpointIdentifier field's value. +func (s *ModifyEndpointInput) SetEndpointIdentifier(v string) *ModifyEndpointInput { + s.EndpointIdentifier = &v + return s +} + +// SetEndpointType sets the EndpointType field's value. +func (s *ModifyEndpointInput) SetEndpointType(v string) *ModifyEndpointInput { + s.EndpointType = &v + return s +} + +// SetEngineName sets the EngineName field's value. +func (s *ModifyEndpointInput) SetEngineName(v string) *ModifyEndpointInput { + s.EngineName = &v + return s +} + +// SetExtraConnectionAttributes sets the ExtraConnectionAttributes field's value. +func (s *ModifyEndpointInput) SetExtraConnectionAttributes(v string) *ModifyEndpointInput { + s.ExtraConnectionAttributes = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *ModifyEndpointInput) SetPassword(v string) *ModifyEndpointInput { + s.Password = &v + return s +} + +// SetPort sets the Port field's value. +func (s *ModifyEndpointInput) SetPort(v int64) *ModifyEndpointInput { + s.Port = &v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *ModifyEndpointInput) SetServerName(v string) *ModifyEndpointInput { + s.ServerName = &v + return s +} + +// SetSslMode sets the SslMode field's value. +func (s *ModifyEndpointInput) SetSslMode(v string) *ModifyEndpointInput { + s.SslMode = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *ModifyEndpointInput) SetUsername(v string) *ModifyEndpointInput { + s.Username = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyEndpointResponse type ModifyEndpointOutput struct { _ struct{} `type:"structure"` @@ -4186,6 +5311,13 @@ func (s ModifyEndpointOutput) GoString() string { return s.String() } +// SetEndpoint sets the Endpoint field's value. +func (s *ModifyEndpointOutput) SetEndpoint(v *Endpoint) *ModifyEndpointOutput { + s.Endpoint = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationInstanceMessage type ModifyReplicationInstanceInput struct { _ struct{} `type:"structure"` @@ -4197,9 +5329,9 @@ type ModifyReplicationInstanceInput struct { // does not result in an outage and the change is asynchronously applied as // soon as possible. // - // Constraints: This parameter must be set to true when specifying a value - // for the EngineVersion parameter that is a different major version than the - // replication instance's current version. + // Constraints: This parameter must be set to true when specifying a value for + // the EngineVersion parameter that is a different major version than the replication + // instance's current version. AllowMajorVersionUpgrade *bool `type:"boolean"` // Indicates whether the changes should be applied immediately or during the @@ -4245,7 +5377,7 @@ type ModifyReplicationInstanceInput struct { // The compute and memory capacity of the replication instance. // - // Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large + // Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large // | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge ReplicationInstanceClass *string `type:"string"` @@ -4282,6 +5414,73 @@ func (s *ModifyReplicationInstanceInput) Validate() error { return nil } +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *ModifyReplicationInstanceInput) SetAllocatedStorage(v int64) *ModifyReplicationInstanceInput { + s.AllocatedStorage = &v + return s +} + +// SetAllowMajorVersionUpgrade sets the AllowMajorVersionUpgrade field's value. +func (s *ModifyReplicationInstanceInput) SetAllowMajorVersionUpgrade(v bool) *ModifyReplicationInstanceInput { + s.AllowMajorVersionUpgrade = &v + return s +} + +// SetApplyImmediately sets the ApplyImmediately field's value. +func (s *ModifyReplicationInstanceInput) SetApplyImmediately(v bool) *ModifyReplicationInstanceInput { + s.ApplyImmediately = &v + return s +} + +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *ModifyReplicationInstanceInput) SetAutoMinorVersionUpgrade(v bool) *ModifyReplicationInstanceInput { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *ModifyReplicationInstanceInput) SetEngineVersion(v string) *ModifyReplicationInstanceInput { + s.EngineVersion = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *ModifyReplicationInstanceInput) SetMultiAZ(v bool) *ModifyReplicationInstanceInput { + s.MultiAZ = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *ModifyReplicationInstanceInput) SetPreferredMaintenanceWindow(v string) *ModifyReplicationInstanceInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetReplicationInstanceArn sets the ReplicationInstanceArn field's value. +func (s *ModifyReplicationInstanceInput) SetReplicationInstanceArn(v string) *ModifyReplicationInstanceInput { + s.ReplicationInstanceArn = &v + return s +} + +// SetReplicationInstanceClass sets the ReplicationInstanceClass field's value. +func (s *ModifyReplicationInstanceInput) SetReplicationInstanceClass(v string) *ModifyReplicationInstanceInput { + s.ReplicationInstanceClass = &v + return s +} + +// SetReplicationInstanceIdentifier sets the ReplicationInstanceIdentifier field's value. +func (s *ModifyReplicationInstanceInput) SetReplicationInstanceIdentifier(v string) *ModifyReplicationInstanceInput { + s.ReplicationInstanceIdentifier = &v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *ModifyReplicationInstanceInput) SetVpcSecurityGroupIds(v []*string) *ModifyReplicationInstanceInput { + s.VpcSecurityGroupIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationInstanceResponse type ModifyReplicationInstanceOutput struct { _ struct{} `type:"structure"` @@ -4299,6 +5498,13 @@ func (s ModifyReplicationInstanceOutput) GoString() string { return s.String() } +// SetReplicationInstance sets the ReplicationInstance field's value. +func (s *ModifyReplicationInstanceOutput) SetReplicationInstance(v *ReplicationInstance) *ModifyReplicationInstanceOutput { + s.ReplicationInstance = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationSubnetGroupMessage type ModifyReplicationSubnetGroupInput struct { _ struct{} `type:"structure"` @@ -4342,6 +5548,25 @@ func (s *ModifyReplicationSubnetGroupInput) Validate() error { return nil } +// SetReplicationSubnetGroupDescription sets the ReplicationSubnetGroupDescription field's value. +func (s *ModifyReplicationSubnetGroupInput) SetReplicationSubnetGroupDescription(v string) *ModifyReplicationSubnetGroupInput { + s.ReplicationSubnetGroupDescription = &v + return s +} + +// SetReplicationSubnetGroupIdentifier sets the ReplicationSubnetGroupIdentifier field's value. +func (s *ModifyReplicationSubnetGroupInput) SetReplicationSubnetGroupIdentifier(v string) *ModifyReplicationSubnetGroupInput { + s.ReplicationSubnetGroupIdentifier = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *ModifyReplicationSubnetGroupInput) SetSubnetIds(v []*string) *ModifyReplicationSubnetGroupInput { + s.SubnetIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationSubnetGroupResponse type ModifyReplicationSubnetGroupOutput struct { _ struct{} `type:"structure"` @@ -4359,8 +5584,136 @@ func (s ModifyReplicationSubnetGroupOutput) GoString() string { return s.String() } -type OrderableReplicationInstance struct { - _ struct{} `type:"structure"` +// SetReplicationSubnetGroup sets the ReplicationSubnetGroup field's value. +func (s *ModifyReplicationSubnetGroupOutput) SetReplicationSubnetGroup(v *ReplicationSubnetGroup) *ModifyReplicationSubnetGroupOutput { + s.ReplicationSubnetGroup = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationTaskMessage +type ModifyReplicationTaskInput struct { + _ struct{} `type:"structure"` + + // The start time for the Change Data Capture (CDC) operation. + CdcStartTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The migration type. + // + // Valid values: full-load | cdc | full-load-and-cdc + MigrationType *string `type:"string" enum:"MigrationTypeValue"` + + // The Amazon Resource Name (ARN) of the replication task. + // + // ReplicationTaskArn is a required field + ReplicationTaskArn *string `type:"string" required:"true"` + + // The replication task identifier. + // + // Constraints: + // + // * Must contain from 1 to 63 alphanumeric characters or hyphens. + // + // * First character must be a letter. + // + // * Cannot end with a hyphen or contain two consecutive hyphens. + ReplicationTaskIdentifier *string `type:"string"` + + // JSON file that contains settings for the task, such as target metadata settings. + ReplicationTaskSettings *string `type:"string"` + + // The path of the JSON file that contains the table mappings. Preceed the path + // with "file://". + // + // For example, --table-mappings file://mappingfile.json + TableMappings *string `type:"string"` +} + +// String returns the string representation +func (s ModifyReplicationTaskInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyReplicationTaskInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyReplicationTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyReplicationTaskInput"} + if s.ReplicationTaskArn == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationTaskArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCdcStartTime sets the CdcStartTime field's value. +func (s *ModifyReplicationTaskInput) SetCdcStartTime(v time.Time) *ModifyReplicationTaskInput { + s.CdcStartTime = &v + return s +} + +// SetMigrationType sets the MigrationType field's value. +func (s *ModifyReplicationTaskInput) SetMigrationType(v string) *ModifyReplicationTaskInput { + s.MigrationType = &v + return s +} + +// SetReplicationTaskArn sets the ReplicationTaskArn field's value. +func (s *ModifyReplicationTaskInput) SetReplicationTaskArn(v string) *ModifyReplicationTaskInput { + s.ReplicationTaskArn = &v + return s +} + +// SetReplicationTaskIdentifier sets the ReplicationTaskIdentifier field's value. +func (s *ModifyReplicationTaskInput) SetReplicationTaskIdentifier(v string) *ModifyReplicationTaskInput { + s.ReplicationTaskIdentifier = &v + return s +} + +// SetReplicationTaskSettings sets the ReplicationTaskSettings field's value. +func (s *ModifyReplicationTaskInput) SetReplicationTaskSettings(v string) *ModifyReplicationTaskInput { + s.ReplicationTaskSettings = &v + return s +} + +// SetTableMappings sets the TableMappings field's value. +func (s *ModifyReplicationTaskInput) SetTableMappings(v string) *ModifyReplicationTaskInput { + s.TableMappings = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationTaskResponse +type ModifyReplicationTaskOutput struct { + _ struct{} `type:"structure"` + + // The replication task that was modified. + ReplicationTask *ReplicationTask `type:"structure"` +} + +// String returns the string representation +func (s ModifyReplicationTaskOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyReplicationTaskOutput) GoString() string { + return s.String() +} + +// SetReplicationTask sets the ReplicationTask field's value. +func (s *ModifyReplicationTaskOutput) SetReplicationTask(v *ReplicationTask) *ModifyReplicationTaskOutput { + s.ReplicationTask = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/OrderableReplicationInstance +type OrderableReplicationInstance struct { + _ struct{} `type:"structure"` // The default amount of storage (in gigabytes) that is allocated for the replication // instance. @@ -4383,7 +5736,7 @@ type OrderableReplicationInstance struct { // The compute and memory capacity of the replication instance. // - // Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large + // Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large // | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge ReplicationInstanceClass *string `type:"string"` @@ -4401,6 +5754,49 @@ func (s OrderableReplicationInstance) GoString() string { return s.String() } +// SetDefaultAllocatedStorage sets the DefaultAllocatedStorage field's value. +func (s *OrderableReplicationInstance) SetDefaultAllocatedStorage(v int64) *OrderableReplicationInstance { + s.DefaultAllocatedStorage = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *OrderableReplicationInstance) SetEngineVersion(v string) *OrderableReplicationInstance { + s.EngineVersion = &v + return s +} + +// SetIncludedAllocatedStorage sets the IncludedAllocatedStorage field's value. +func (s *OrderableReplicationInstance) SetIncludedAllocatedStorage(v int64) *OrderableReplicationInstance { + s.IncludedAllocatedStorage = &v + return s +} + +// SetMaxAllocatedStorage sets the MaxAllocatedStorage field's value. +func (s *OrderableReplicationInstance) SetMaxAllocatedStorage(v int64) *OrderableReplicationInstance { + s.MaxAllocatedStorage = &v + return s +} + +// SetMinAllocatedStorage sets the MinAllocatedStorage field's value. +func (s *OrderableReplicationInstance) SetMinAllocatedStorage(v int64) *OrderableReplicationInstance { + s.MinAllocatedStorage = &v + return s +} + +// SetReplicationInstanceClass sets the ReplicationInstanceClass field's value. +func (s *OrderableReplicationInstance) SetReplicationInstanceClass(v string) *OrderableReplicationInstance { + s.ReplicationInstanceClass = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *OrderableReplicationInstance) SetStorageType(v string) *OrderableReplicationInstance { + s.StorageType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RefreshSchemasMessage type RefreshSchemasInput struct { _ struct{} `type:"structure"` @@ -4441,6 +5837,19 @@ func (s *RefreshSchemasInput) Validate() error { return nil } +// SetEndpointArn sets the EndpointArn field's value. +func (s *RefreshSchemasInput) SetEndpointArn(v string) *RefreshSchemasInput { + s.EndpointArn = &v + return s +} + +// SetReplicationInstanceArn sets the ReplicationInstanceArn field's value. +func (s *RefreshSchemasInput) SetReplicationInstanceArn(v string) *RefreshSchemasInput { + s.ReplicationInstanceArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RefreshSchemasResponse type RefreshSchemasOutput struct { _ struct{} `type:"structure"` @@ -4458,6 +5867,13 @@ func (s RefreshSchemasOutput) GoString() string { return s.String() } +// SetRefreshSchemasStatus sets the RefreshSchemasStatus field's value. +func (s *RefreshSchemasOutput) SetRefreshSchemasStatus(v *RefreshSchemasStatus) *RefreshSchemasOutput { + s.RefreshSchemasStatus = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RefreshSchemasStatus type RefreshSchemasStatus struct { _ struct{} `type:"structure"` @@ -4487,6 +5903,37 @@ func (s RefreshSchemasStatus) GoString() string { return s.String() } +// SetEndpointArn sets the EndpointArn field's value. +func (s *RefreshSchemasStatus) SetEndpointArn(v string) *RefreshSchemasStatus { + s.EndpointArn = &v + return s +} + +// SetLastFailureMessage sets the LastFailureMessage field's value. +func (s *RefreshSchemasStatus) SetLastFailureMessage(v string) *RefreshSchemasStatus { + s.LastFailureMessage = &v + return s +} + +// SetLastRefreshDate sets the LastRefreshDate field's value. +func (s *RefreshSchemasStatus) SetLastRefreshDate(v time.Time) *RefreshSchemasStatus { + s.LastRefreshDate = &v + return s +} + +// SetReplicationInstanceArn sets the ReplicationInstanceArn field's value. +func (s *RefreshSchemasStatus) SetReplicationInstanceArn(v string) *RefreshSchemasStatus { + s.ReplicationInstanceArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *RefreshSchemasStatus) SetStatus(v string) *RefreshSchemasStatus { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RemoveTagsFromResourceMessage type RemoveTagsFromResourceInput struct { _ struct{} `type:"structure"` @@ -4528,6 +5975,19 @@ func (s *RemoveTagsFromResourceInput) Validate() error { return nil } +// SetResourceArn sets the ResourceArn field's value. +func (s *RemoveTagsFromResourceInput) SetResourceArn(v string) *RemoveTagsFromResourceInput { + s.ResourceArn = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsFromResourceInput) SetTagKeys(v []*string) *RemoveTagsFromResourceInput { + s.TagKeys = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RemoveTagsFromResourceResponse type RemoveTagsFromResourceOutput struct { _ struct{} `type:"structure"` } @@ -4542,6 +6002,7 @@ func (s RemoveTagsFromResourceOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ReplicationInstance type ReplicationInstance struct { _ struct{} `type:"structure"` @@ -4589,7 +6050,7 @@ type ReplicationInstance struct { // The compute and memory capacity of the replication instance. // - // Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large + // Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large // | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge ReplicationInstanceClass *string `type:"string"` @@ -4598,13 +6059,13 @@ type ReplicationInstance struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Example: myrepinstance + // Example: myrepinstance ReplicationInstanceIdentifier *string `type:"string"` // The private IP address of the replication instance. @@ -4625,6 +6086,9 @@ type ReplicationInstance struct { // The subnet group for the replication instance. ReplicationSubnetGroup *ReplicationSubnetGroup `type:"structure"` + // The availability zone of the standby replication instance in a Multi-AZ deployment. + SecondaryAvailabilityZone *string `type:"string"` + // The VPC security group for the instance. VpcSecurityGroups []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroupMembership" type:"list"` } @@ -4639,6 +6103,133 @@ func (s ReplicationInstance) GoString() string { return s.String() } +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *ReplicationInstance) SetAllocatedStorage(v int64) *ReplicationInstance { + s.AllocatedStorage = &v + return s +} + +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *ReplicationInstance) SetAutoMinorVersionUpgrade(v bool) *ReplicationInstance { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ReplicationInstance) SetAvailabilityZone(v string) *ReplicationInstance { + s.AvailabilityZone = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *ReplicationInstance) SetEngineVersion(v string) *ReplicationInstance { + s.EngineVersion = &v + return s +} + +// SetInstanceCreateTime sets the InstanceCreateTime field's value. +func (s *ReplicationInstance) SetInstanceCreateTime(v time.Time) *ReplicationInstance { + s.InstanceCreateTime = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *ReplicationInstance) SetKmsKeyId(v string) *ReplicationInstance { + s.KmsKeyId = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *ReplicationInstance) SetMultiAZ(v bool) *ReplicationInstance { + s.MultiAZ = &v + return s +} + +// SetPendingModifiedValues sets the PendingModifiedValues field's value. +func (s *ReplicationInstance) SetPendingModifiedValues(v *ReplicationPendingModifiedValues) *ReplicationInstance { + s.PendingModifiedValues = v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *ReplicationInstance) SetPreferredMaintenanceWindow(v string) *ReplicationInstance { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *ReplicationInstance) SetPubliclyAccessible(v bool) *ReplicationInstance { + s.PubliclyAccessible = &v + return s +} + +// SetReplicationInstanceArn sets the ReplicationInstanceArn field's value. +func (s *ReplicationInstance) SetReplicationInstanceArn(v string) *ReplicationInstance { + s.ReplicationInstanceArn = &v + return s +} + +// SetReplicationInstanceClass sets the ReplicationInstanceClass field's value. +func (s *ReplicationInstance) SetReplicationInstanceClass(v string) *ReplicationInstance { + s.ReplicationInstanceClass = &v + return s +} + +// SetReplicationInstanceIdentifier sets the ReplicationInstanceIdentifier field's value. +func (s *ReplicationInstance) SetReplicationInstanceIdentifier(v string) *ReplicationInstance { + s.ReplicationInstanceIdentifier = &v + return s +} + +// SetReplicationInstancePrivateIpAddress sets the ReplicationInstancePrivateIpAddress field's value. +func (s *ReplicationInstance) SetReplicationInstancePrivateIpAddress(v string) *ReplicationInstance { + s.ReplicationInstancePrivateIpAddress = &v + return s +} + +// SetReplicationInstancePrivateIpAddresses sets the ReplicationInstancePrivateIpAddresses field's value. +func (s *ReplicationInstance) SetReplicationInstancePrivateIpAddresses(v []*string) *ReplicationInstance { + s.ReplicationInstancePrivateIpAddresses = v + return s +} + +// SetReplicationInstancePublicIpAddress sets the ReplicationInstancePublicIpAddress field's value. +func (s *ReplicationInstance) SetReplicationInstancePublicIpAddress(v string) *ReplicationInstance { + s.ReplicationInstancePublicIpAddress = &v + return s +} + +// SetReplicationInstancePublicIpAddresses sets the ReplicationInstancePublicIpAddresses field's value. +func (s *ReplicationInstance) SetReplicationInstancePublicIpAddresses(v []*string) *ReplicationInstance { + s.ReplicationInstancePublicIpAddresses = v + return s +} + +// SetReplicationInstanceStatus sets the ReplicationInstanceStatus field's value. +func (s *ReplicationInstance) SetReplicationInstanceStatus(v string) *ReplicationInstance { + s.ReplicationInstanceStatus = &v + return s +} + +// SetReplicationSubnetGroup sets the ReplicationSubnetGroup field's value. +func (s *ReplicationInstance) SetReplicationSubnetGroup(v *ReplicationSubnetGroup) *ReplicationInstance { + s.ReplicationSubnetGroup = v + return s +} + +// SetSecondaryAvailabilityZone sets the SecondaryAvailabilityZone field's value. +func (s *ReplicationInstance) SetSecondaryAvailabilityZone(v string) *ReplicationInstance { + s.SecondaryAvailabilityZone = &v + return s +} + +// SetVpcSecurityGroups sets the VpcSecurityGroups field's value. +func (s *ReplicationInstance) SetVpcSecurityGroups(v []*VpcSecurityGroupMembership) *ReplicationInstance { + s.VpcSecurityGroups = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ReplicationPendingModifiedValues type ReplicationPendingModifiedValues struct { _ struct{} `type:"structure"` @@ -4655,7 +6246,7 @@ type ReplicationPendingModifiedValues struct { // The compute and memory capacity of the replication instance. // - // Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large + // Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large // | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge ReplicationInstanceClass *string `type:"string"` } @@ -4670,6 +6261,31 @@ func (s ReplicationPendingModifiedValues) GoString() string { return s.String() } +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *ReplicationPendingModifiedValues) SetAllocatedStorage(v int64) *ReplicationPendingModifiedValues { + s.AllocatedStorage = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *ReplicationPendingModifiedValues) SetEngineVersion(v string) *ReplicationPendingModifiedValues { + s.EngineVersion = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *ReplicationPendingModifiedValues) SetMultiAZ(v bool) *ReplicationPendingModifiedValues { + s.MultiAZ = &v + return s +} + +// SetReplicationInstanceClass sets the ReplicationInstanceClass field's value. +func (s *ReplicationPendingModifiedValues) SetReplicationInstanceClass(v string) *ReplicationPendingModifiedValues { + s.ReplicationInstanceClass = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ReplicationSubnetGroup type ReplicationSubnetGroup struct { _ struct{} `type:"structure"` @@ -4699,6 +6315,37 @@ func (s ReplicationSubnetGroup) GoString() string { return s.String() } +// SetReplicationSubnetGroupDescription sets the ReplicationSubnetGroupDescription field's value. +func (s *ReplicationSubnetGroup) SetReplicationSubnetGroupDescription(v string) *ReplicationSubnetGroup { + s.ReplicationSubnetGroupDescription = &v + return s +} + +// SetReplicationSubnetGroupIdentifier sets the ReplicationSubnetGroupIdentifier field's value. +func (s *ReplicationSubnetGroup) SetReplicationSubnetGroupIdentifier(v string) *ReplicationSubnetGroup { + s.ReplicationSubnetGroupIdentifier = &v + return s +} + +// SetSubnetGroupStatus sets the SubnetGroupStatus field's value. +func (s *ReplicationSubnetGroup) SetSubnetGroupStatus(v string) *ReplicationSubnetGroup { + s.SubnetGroupStatus = &v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *ReplicationSubnetGroup) SetSubnets(v []*Subnet) *ReplicationSubnetGroup { + s.Subnets = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *ReplicationSubnetGroup) SetVpcId(v string) *ReplicationSubnetGroup { + s.VpcId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ReplicationTask type ReplicationTask struct { _ struct{} `type:"structure"` @@ -4721,11 +6368,11 @@ type ReplicationTask struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. ReplicationTaskIdentifier *string `type:"string"` // The settings for the replication task. @@ -4744,6 +6391,9 @@ type ReplicationTask struct { // The status of the replication task. Status *string `type:"string"` + // The reason the replication task was stopped. + StopReason *string `type:"string"` + // Table mappings specified in the task. TableMappings *string `type:"string"` @@ -4761,6 +6411,91 @@ func (s ReplicationTask) GoString() string { return s.String() } +// SetLastFailureMessage sets the LastFailureMessage field's value. +func (s *ReplicationTask) SetLastFailureMessage(v string) *ReplicationTask { + s.LastFailureMessage = &v + return s +} + +// SetMigrationType sets the MigrationType field's value. +func (s *ReplicationTask) SetMigrationType(v string) *ReplicationTask { + s.MigrationType = &v + return s +} + +// SetReplicationInstanceArn sets the ReplicationInstanceArn field's value. +func (s *ReplicationTask) SetReplicationInstanceArn(v string) *ReplicationTask { + s.ReplicationInstanceArn = &v + return s +} + +// SetReplicationTaskArn sets the ReplicationTaskArn field's value. +func (s *ReplicationTask) SetReplicationTaskArn(v string) *ReplicationTask { + s.ReplicationTaskArn = &v + return s +} + +// SetReplicationTaskCreationDate sets the ReplicationTaskCreationDate field's value. +func (s *ReplicationTask) SetReplicationTaskCreationDate(v time.Time) *ReplicationTask { + s.ReplicationTaskCreationDate = &v + return s +} + +// SetReplicationTaskIdentifier sets the ReplicationTaskIdentifier field's value. +func (s *ReplicationTask) SetReplicationTaskIdentifier(v string) *ReplicationTask { + s.ReplicationTaskIdentifier = &v + return s +} + +// SetReplicationTaskSettings sets the ReplicationTaskSettings field's value. +func (s *ReplicationTask) SetReplicationTaskSettings(v string) *ReplicationTask { + s.ReplicationTaskSettings = &v + return s +} + +// SetReplicationTaskStartDate sets the ReplicationTaskStartDate field's value. +func (s *ReplicationTask) SetReplicationTaskStartDate(v time.Time) *ReplicationTask { + s.ReplicationTaskStartDate = &v + return s +} + +// SetReplicationTaskStats sets the ReplicationTaskStats field's value. +func (s *ReplicationTask) SetReplicationTaskStats(v *ReplicationTaskStats) *ReplicationTask { + s.ReplicationTaskStats = v + return s +} + +// SetSourceEndpointArn sets the SourceEndpointArn field's value. +func (s *ReplicationTask) SetSourceEndpointArn(v string) *ReplicationTask { + s.SourceEndpointArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ReplicationTask) SetStatus(v string) *ReplicationTask { + s.Status = &v + return s +} + +// SetStopReason sets the StopReason field's value. +func (s *ReplicationTask) SetStopReason(v string) *ReplicationTask { + s.StopReason = &v + return s +} + +// SetTableMappings sets the TableMappings field's value. +func (s *ReplicationTask) SetTableMappings(v string) *ReplicationTask { + s.TableMappings = &v + return s +} + +// SetTargetEndpointArn sets the TargetEndpointArn field's value. +func (s *ReplicationTask) SetTargetEndpointArn(v string) *ReplicationTask { + s.TargetEndpointArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ReplicationTaskStats type ReplicationTaskStats struct { _ struct{} `type:"structure"` @@ -4793,6 +6528,43 @@ func (s ReplicationTaskStats) GoString() string { return s.String() } +// SetElapsedTimeMillis sets the ElapsedTimeMillis field's value. +func (s *ReplicationTaskStats) SetElapsedTimeMillis(v int64) *ReplicationTaskStats { + s.ElapsedTimeMillis = &v + return s +} + +// SetFullLoadProgressPercent sets the FullLoadProgressPercent field's value. +func (s *ReplicationTaskStats) SetFullLoadProgressPercent(v int64) *ReplicationTaskStats { + s.FullLoadProgressPercent = &v + return s +} + +// SetTablesErrored sets the TablesErrored field's value. +func (s *ReplicationTaskStats) SetTablesErrored(v int64) *ReplicationTaskStats { + s.TablesErrored = &v + return s +} + +// SetTablesLoaded sets the TablesLoaded field's value. +func (s *ReplicationTaskStats) SetTablesLoaded(v int64) *ReplicationTaskStats { + s.TablesLoaded = &v + return s +} + +// SetTablesLoading sets the TablesLoading field's value. +func (s *ReplicationTaskStats) SetTablesLoading(v int64) *ReplicationTaskStats { + s.TablesLoading = &v + return s +} + +// SetTablesQueued sets the TablesQueued field's value. +func (s *ReplicationTaskStats) SetTablesQueued(v int64) *ReplicationTaskStats { + s.TablesQueued = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTaskMessage type StartReplicationTaskInput struct { _ struct{} `type:"structure"` @@ -4836,6 +6608,25 @@ func (s *StartReplicationTaskInput) Validate() error { return nil } +// SetCdcStartTime sets the CdcStartTime field's value. +func (s *StartReplicationTaskInput) SetCdcStartTime(v time.Time) *StartReplicationTaskInput { + s.CdcStartTime = &v + return s +} + +// SetReplicationTaskArn sets the ReplicationTaskArn field's value. +func (s *StartReplicationTaskInput) SetReplicationTaskArn(v string) *StartReplicationTaskInput { + s.ReplicationTaskArn = &v + return s +} + +// SetStartReplicationTaskType sets the StartReplicationTaskType field's value. +func (s *StartReplicationTaskInput) SetStartReplicationTaskType(v string) *StartReplicationTaskInput { + s.StartReplicationTaskType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTaskResponse type StartReplicationTaskOutput struct { _ struct{} `type:"structure"` @@ -4853,6 +6644,13 @@ func (s StartReplicationTaskOutput) GoString() string { return s.String() } +// SetReplicationTask sets the ReplicationTask field's value. +func (s *StartReplicationTaskOutput) SetReplicationTask(v *ReplicationTask) *StartReplicationTaskOutput { + s.ReplicationTask = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StopReplicationTaskMessage type StopReplicationTaskInput struct { _ struct{} `type:"structure"` @@ -4885,6 +6683,13 @@ func (s *StopReplicationTaskInput) Validate() error { return nil } +// SetReplicationTaskArn sets the ReplicationTaskArn field's value. +func (s *StopReplicationTaskInput) SetReplicationTaskArn(v string) *StopReplicationTaskInput { + s.ReplicationTaskArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StopReplicationTaskResponse type StopReplicationTaskOutput struct { _ struct{} `type:"structure"` @@ -4902,6 +6707,13 @@ func (s StopReplicationTaskOutput) GoString() string { return s.String() } +// SetReplicationTask sets the ReplicationTask field's value. +func (s *StopReplicationTaskOutput) SetReplicationTask(v *ReplicationTask) *StopReplicationTaskOutput { + s.ReplicationTask = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/Subnet type Subnet struct { _ struct{} `type:"structure"` @@ -4925,13 +6737,33 @@ func (s Subnet) GoString() string { return s.String() } +// SetSubnetAvailabilityZone sets the SubnetAvailabilityZone field's value. +func (s *Subnet) SetSubnetAvailabilityZone(v *AvailabilityZone) *Subnet { + s.SubnetAvailabilityZone = v + return s +} + +// SetSubnetIdentifier sets the SubnetIdentifier field's value. +func (s *Subnet) SetSubnetIdentifier(v string) *Subnet { + s.SubnetIdentifier = &v + return s +} + +// SetSubnetStatus sets the SubnetStatus field's value. +func (s *Subnet) SetSubnetStatus(v string) *Subnet { + s.SubnetStatus = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/SupportedEndpointType type SupportedEndpointType struct { _ struct{} `type:"structure"` // The type of endpoint. EndpointType *string `type:"string" enum:"ReplicationEndpointTypeValue"` - // The database engine name. + // The database engine name. Valid values include MYSQL, ORACLE, POSTGRES, MARIADB, + // AURORA, REDSHIFT, SYBASE, and SQLSERVER. EngineName *string `type:"string"` // Indicates if Change Data Capture (CDC) is supported. @@ -4948,6 +6780,25 @@ func (s SupportedEndpointType) GoString() string { return s.String() } +// SetEndpointType sets the EndpointType field's value. +func (s *SupportedEndpointType) SetEndpointType(v string) *SupportedEndpointType { + s.EndpointType = &v + return s +} + +// SetEngineName sets the EngineName field's value. +func (s *SupportedEndpointType) SetEngineName(v string) *SupportedEndpointType { + s.EngineName = &v + return s +} + +// SetSupportsCDC sets the SupportsCDC field's value. +func (s *SupportedEndpointType) SetSupportsCDC(v bool) *SupportedEndpointType { + s.SupportsCDC = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/TableStatistics type TableStatistics struct { _ struct{} `type:"structure"` @@ -4990,6 +6841,61 @@ func (s TableStatistics) GoString() string { return s.String() } +// SetDdls sets the Ddls field's value. +func (s *TableStatistics) SetDdls(v int64) *TableStatistics { + s.Ddls = &v + return s +} + +// SetDeletes sets the Deletes field's value. +func (s *TableStatistics) SetDeletes(v int64) *TableStatistics { + s.Deletes = &v + return s +} + +// SetFullLoadRows sets the FullLoadRows field's value. +func (s *TableStatistics) SetFullLoadRows(v int64) *TableStatistics { + s.FullLoadRows = &v + return s +} + +// SetInserts sets the Inserts field's value. +func (s *TableStatistics) SetInserts(v int64) *TableStatistics { + s.Inserts = &v + return s +} + +// SetLastUpdateTime sets the LastUpdateTime field's value. +func (s *TableStatistics) SetLastUpdateTime(v time.Time) *TableStatistics { + s.LastUpdateTime = &v + return s +} + +// SetSchemaName sets the SchemaName field's value. +func (s *TableStatistics) SetSchemaName(v string) *TableStatistics { + s.SchemaName = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *TableStatistics) SetTableName(v string) *TableStatistics { + s.TableName = &v + return s +} + +// SetTableState sets the TableState field's value. +func (s *TableStatistics) SetTableState(v string) *TableStatistics { + s.TableState = &v + return s +} + +// SetUpdates sets the Updates field's value. +func (s *TableStatistics) SetUpdates(v int64) *TableStatistics { + s.Updates = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/Tag type Tag struct { _ struct{} `type:"structure"` @@ -5016,6 +6922,19 @@ func (s Tag) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/TestConnectionMessage type TestConnectionInput struct { _ struct{} `type:"structure"` @@ -5056,6 +6975,19 @@ func (s *TestConnectionInput) Validate() error { return nil } +// SetEndpointArn sets the EndpointArn field's value. +func (s *TestConnectionInput) SetEndpointArn(v string) *TestConnectionInput { + s.EndpointArn = &v + return s +} + +// SetReplicationInstanceArn sets the ReplicationInstanceArn field's value. +func (s *TestConnectionInput) SetReplicationInstanceArn(v string) *TestConnectionInput { + s.ReplicationInstanceArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/TestConnectionResponse type TestConnectionOutput struct { _ struct{} `type:"structure"` @@ -5073,6 +7005,13 @@ func (s TestConnectionOutput) GoString() string { return s.String() } +// SetConnection sets the Connection field's value. +func (s *TestConnectionOutput) SetConnection(v *Connection) *TestConnectionOutput { + s.Connection = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/VpcSecurityGroupMembership type VpcSecurityGroupMembership struct { _ struct{} `type:"structure"` @@ -5093,6 +7032,18 @@ func (s VpcSecurityGroupMembership) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *VpcSecurityGroupMembership) SetStatus(v string) *VpcSecurityGroupMembership { + s.Status = &v + return s +} + +// SetVpcSecurityGroupId sets the VpcSecurityGroupId field's value. +func (s *VpcSecurityGroupMembership) SetVpcSecurityGroupId(v string) *VpcSecurityGroupMembership { + s.VpcSecurityGroupId = &v + return s +} + const ( // DmsSslModeValueNone is a DmsSslModeValue enum value DmsSslModeValueNone = "none" diff --git a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/databasemigrationserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/databasemigrationserviceiface/interface.go index 2845a22e3..a7066abb0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/databasemigrationserviceiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/databasemigrationserviceiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockDatabaseMigrationServiceClient{} // @@ -167,6 +167,10 @@ type DatabaseMigrationServiceAPI interface { ModifyReplicationSubnetGroup(*databasemigrationservice.ModifyReplicationSubnetGroupInput) (*databasemigrationservice.ModifyReplicationSubnetGroupOutput, error) + ModifyReplicationTaskRequest(*databasemigrationservice.ModifyReplicationTaskInput) (*request.Request, *databasemigrationservice.ModifyReplicationTaskOutput) + + ModifyReplicationTask(*databasemigrationservice.ModifyReplicationTaskInput) (*databasemigrationservice.ModifyReplicationTaskOutput, error) + RefreshSchemasRequest(*databasemigrationservice.RefreshSchemasInput) (*request.Request, *databasemigrationservice.RefreshSchemasOutput) RefreshSchemas(*databasemigrationservice.RefreshSchemasInput) (*databasemigrationservice.RefreshSchemasOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/errors.go b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/errors.go new file mode 100644 index 000000000..11d19d7a7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/errors.go @@ -0,0 +1,86 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package databasemigrationservice + +const ( + + // ErrCodeAccessDeniedFault for service response error code + // "AccessDeniedFault". + // + // AWS DMS was denied access to the endpoint. + ErrCodeAccessDeniedFault = "AccessDeniedFault" + + // ErrCodeInsufficientResourceCapacityFault for service response error code + // "InsufficientResourceCapacityFault". + // + // There are not enough resources allocated to the database migration. + ErrCodeInsufficientResourceCapacityFault = "InsufficientResourceCapacityFault" + + // ErrCodeInvalidCertificateFault for service response error code + // "InvalidCertificateFault". + // + // The certificate was not valid. + ErrCodeInvalidCertificateFault = "InvalidCertificateFault" + + // ErrCodeInvalidResourceStateFault for service response error code + // "InvalidResourceStateFault". + // + // The resource is in a state that prevents it from being used for database + // migration. + ErrCodeInvalidResourceStateFault = "InvalidResourceStateFault" + + // ErrCodeInvalidSubnet for service response error code + // "InvalidSubnet". + // + // The subnet provided is invalid. + ErrCodeInvalidSubnet = "InvalidSubnet" + + // ErrCodeKMSKeyNotAccessibleFault for service response error code + // "KMSKeyNotAccessibleFault". + // + // AWS DMS cannot access the KMS key. + ErrCodeKMSKeyNotAccessibleFault = "KMSKeyNotAccessibleFault" + + // ErrCodeReplicationSubnetGroupDoesNotCoverEnoughAZs for service response error code + // "ReplicationSubnetGroupDoesNotCoverEnoughAZs". + // + // The replication subnet group does not cover enough Availability Zones (AZs). + // Edit the replication subnet group and add more AZs. + ErrCodeReplicationSubnetGroupDoesNotCoverEnoughAZs = "ReplicationSubnetGroupDoesNotCoverEnoughAZs" + + // ErrCodeResourceAlreadyExistsFault for service response error code + // "ResourceAlreadyExistsFault". + // + // The resource you are attempting to create already exists. + ErrCodeResourceAlreadyExistsFault = "ResourceAlreadyExistsFault" + + // ErrCodeResourceNotFoundFault for service response error code + // "ResourceNotFoundFault". + // + // The resource could not be found. + ErrCodeResourceNotFoundFault = "ResourceNotFoundFault" + + // ErrCodeResourceQuotaExceededFault for service response error code + // "ResourceQuotaExceededFault". + // + // The quota for this resource quota has been exceeded. + ErrCodeResourceQuotaExceededFault = "ResourceQuotaExceededFault" + + // ErrCodeStorageQuotaExceededFault for service response error code + // "StorageQuotaExceededFault". + // + // The storage quota has been exceeded. + ErrCodeStorageQuotaExceededFault = "StorageQuotaExceededFault" + + // ErrCodeSubnetAlreadyInUse for service response error code + // "SubnetAlreadyInUse". + // + // The specified subnet is already in use. + ErrCodeSubnetAlreadyInUse = "SubnetAlreadyInUse" + + // ErrCodeUpgradeDependencyFailureFault for service response error code + // "UpgradeDependencyFailureFault". + // + // An upgrade dependency is preventing the database migration. + ErrCodeUpgradeDependencyFailureFault = "UpgradeDependencyFailureFault" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/examples_test.go index fc1867ce1..7848361b4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleDatabaseMigrationService_AddTagsToResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -48,11 +44,7 @@ func ExampleDatabaseMigrationService_AddTagsToResource() { } func ExampleDatabaseMigrationService_CreateEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -60,14 +52,13 @@ func ExampleDatabaseMigrationService_CreateEndpoint() { EndpointIdentifier: aws.String("String"), // Required EndpointType: aws.String("ReplicationEndpointTypeValue"), // Required EngineName: aws.String("String"), // Required - Password: aws.String("SecretString"), // Required - Port: aws.Int64(1), // Required - ServerName: aws.String("String"), // Required - Username: aws.String("String"), // Required CertificateArn: aws.String("String"), DatabaseName: aws.String("String"), ExtraConnectionAttributes: aws.String("String"), KmsKeyId: aws.String("String"), + Password: aws.String("SecretString"), + Port: aws.Int64(1), + ServerName: aws.String("String"), SslMode: aws.String("DmsSslModeValue"), Tags: []*databasemigrationservice.Tag{ { // Required @@ -76,6 +67,7 @@ func ExampleDatabaseMigrationService_CreateEndpoint() { }, // More values... }, + Username: aws.String("String"), } resp, err := svc.CreateEndpoint(params) @@ -91,11 +83,7 @@ func ExampleDatabaseMigrationService_CreateEndpoint() { } func ExampleDatabaseMigrationService_CreateReplicationInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -137,11 +125,7 @@ func ExampleDatabaseMigrationService_CreateReplicationInstance() { } func ExampleDatabaseMigrationService_CreateReplicationSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -174,11 +158,7 @@ func ExampleDatabaseMigrationService_CreateReplicationSubnetGroup() { } func ExampleDatabaseMigrationService_CreateReplicationTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -213,11 +193,7 @@ func ExampleDatabaseMigrationService_CreateReplicationTask() { } func ExampleDatabaseMigrationService_DeleteCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -238,11 +214,7 @@ func ExampleDatabaseMigrationService_DeleteCertificate() { } func ExampleDatabaseMigrationService_DeleteEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -263,11 +235,7 @@ func ExampleDatabaseMigrationService_DeleteEndpoint() { } func ExampleDatabaseMigrationService_DeleteReplicationInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -288,11 +256,7 @@ func ExampleDatabaseMigrationService_DeleteReplicationInstance() { } func ExampleDatabaseMigrationService_DeleteReplicationSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -313,11 +277,7 @@ func ExampleDatabaseMigrationService_DeleteReplicationSubnetGroup() { } func ExampleDatabaseMigrationService_DeleteReplicationTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -338,11 +298,7 @@ func ExampleDatabaseMigrationService_DeleteReplicationTask() { } func ExampleDatabaseMigrationService_DescribeAccountAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -361,11 +317,7 @@ func ExampleDatabaseMigrationService_DescribeAccountAttributes() { } func ExampleDatabaseMigrationService_DescribeCertificates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -397,11 +349,7 @@ func ExampleDatabaseMigrationService_DescribeCertificates() { } func ExampleDatabaseMigrationService_DescribeConnections() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -433,11 +381,7 @@ func ExampleDatabaseMigrationService_DescribeConnections() { } func ExampleDatabaseMigrationService_DescribeEndpointTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -469,11 +413,7 @@ func ExampleDatabaseMigrationService_DescribeEndpointTypes() { } func ExampleDatabaseMigrationService_DescribeEndpoints() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -505,11 +445,7 @@ func ExampleDatabaseMigrationService_DescribeEndpoints() { } func ExampleDatabaseMigrationService_DescribeOrderableReplicationInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -531,11 +467,7 @@ func ExampleDatabaseMigrationService_DescribeOrderableReplicationInstances() { } func ExampleDatabaseMigrationService_DescribeRefreshSchemasStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -556,11 +488,7 @@ func ExampleDatabaseMigrationService_DescribeRefreshSchemasStatus() { } func ExampleDatabaseMigrationService_DescribeReplicationInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -592,11 +520,7 @@ func ExampleDatabaseMigrationService_DescribeReplicationInstances() { } func ExampleDatabaseMigrationService_DescribeReplicationSubnetGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -628,11 +552,7 @@ func ExampleDatabaseMigrationService_DescribeReplicationSubnetGroups() { } func ExampleDatabaseMigrationService_DescribeReplicationTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -664,11 +584,7 @@ func ExampleDatabaseMigrationService_DescribeReplicationTasks() { } func ExampleDatabaseMigrationService_DescribeSchemas() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -691,11 +607,7 @@ func ExampleDatabaseMigrationService_DescribeSchemas() { } func ExampleDatabaseMigrationService_DescribeTableStatistics() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -718,17 +630,14 @@ func ExampleDatabaseMigrationService_DescribeTableStatistics() { } func ExampleDatabaseMigrationService_ImportCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) params := &databasemigrationservice.ImportCertificateInput{ CertificateIdentifier: aws.String("String"), // Required CertificatePem: aws.String("String"), + CertificateWallet: []byte("PAYLOAD"), } resp, err := svc.ImportCertificate(params) @@ -744,11 +653,7 @@ func ExampleDatabaseMigrationService_ImportCertificate() { } func ExampleDatabaseMigrationService_ListTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -769,11 +674,7 @@ func ExampleDatabaseMigrationService_ListTagsForResource() { } func ExampleDatabaseMigrationService_ModifyEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -805,11 +706,7 @@ func ExampleDatabaseMigrationService_ModifyEndpoint() { } func ExampleDatabaseMigrationService_ModifyReplicationInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -843,11 +740,7 @@ func ExampleDatabaseMigrationService_ModifyReplicationInstance() { } func ExampleDatabaseMigrationService_ModifyReplicationSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -872,13 +765,35 @@ func ExampleDatabaseMigrationService_ModifyReplicationSubnetGroup() { fmt.Println(resp) } -func ExampleDatabaseMigrationService_RefreshSchemas() { - sess, err := session.NewSession() +func ExampleDatabaseMigrationService_ModifyReplicationTask() { + sess := session.Must(session.NewSession()) + + svc := databasemigrationservice.New(sess) + + params := &databasemigrationservice.ModifyReplicationTaskInput{ + ReplicationTaskArn: aws.String("String"), // Required + CdcStartTime: aws.Time(time.Now()), + MigrationType: aws.String("MigrationTypeValue"), + ReplicationTaskIdentifier: aws.String("String"), + ReplicationTaskSettings: aws.String("String"), + TableMappings: aws.String("String"), + } + resp, err := svc.ModifyReplicationTask(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDatabaseMigrationService_RefreshSchemas() { + sess := session.Must(session.NewSession()) + svc := databasemigrationservice.New(sess) params := &databasemigrationservice.RefreshSchemasInput{ @@ -899,11 +814,7 @@ func ExampleDatabaseMigrationService_RefreshSchemas() { } func ExampleDatabaseMigrationService_RemoveTagsFromResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -928,11 +839,7 @@ func ExampleDatabaseMigrationService_RemoveTagsFromResource() { } func ExampleDatabaseMigrationService_StartReplicationTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -955,11 +862,7 @@ func ExampleDatabaseMigrationService_StartReplicationTask() { } func ExampleDatabaseMigrationService_StopReplicationTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) @@ -980,11 +883,7 @@ func ExampleDatabaseMigrationService_StopReplicationTask() { } func ExampleDatabaseMigrationService_TestConnection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := databasemigrationservice.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/service.go b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/service.go index 513427dbb..cbb36fd34 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/service.go @@ -14,11 +14,13 @@ import ( // AWS Database Migration Service (AWS DMS) can migrate your data to and from // the most widely used commercial and open-source databases such as Oracle, // PostgreSQL, Microsoft SQL Server, Amazon Redshift, MariaDB, Amazon Aurora, -// and MySQL. The service supports homogeneous migrations such as Oracle to -// Oracle, as well as heterogeneous migrations between different database platforms, -// such as Oracle to MySQL or SQL Server to PostgreSQL. -//The service client's operations are safe to be used concurrently. +// MySQL, and SAP Adaptive Server Enterprise (ASE). The service supports homogeneous +// migrations such as Oracle to Oracle, as well as heterogeneous migrations +// between different database platforms, such as Oracle to MySQL or SQL Server +// to PostgreSQL. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01 type DatabaseMigrationService struct { *client.Client } @@ -29,8 +31,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "dms" +// Service information constants +const ( + ServiceName = "dms" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the DatabaseMigrationService client with a session. // If additional configuration is needed for the client instance use the optional @@ -43,17 +48,18 @@ const ServiceName = "dms" // // Create a DatabaseMigrationService client with additional configuration // svc := databasemigrationservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *DatabaseMigrationService { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *DatabaseMigrationService { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *DatabaseMigrationService { svc := &DatabaseMigrationService{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2016-01-01", diff --git a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/api.go b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/api.go index 20cd6b95d..ebcbde248 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/api.go @@ -39,6 +39,7 @@ const opActivatePipeline = "ActivatePipeline" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ActivatePipeline func (c *DataPipeline) ActivatePipelineRequest(input *ActivatePipelineInput) (req *request.Request, output *ActivatePipelineOutput) { op := &request.Operation{ Name: opActivatePipeline, @@ -50,9 +51,8 @@ func (c *DataPipeline) ActivatePipelineRequest(input *ActivatePipelineInput) (re input = &ActivatePipelineInput{} } - req = c.newRequest(op, input, output) output = &ActivatePipelineOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -75,21 +75,22 @@ func (c *DataPipeline) ActivatePipelineRequest(input *ActivatePipelineInput) (re // API operation ActivatePipeline for usage and error information. // // Returned Error Codes: -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * PipelineDeletedException +// * ErrCodePipelineDeletedException "PipelineDeletedException" // The specified pipeline has been deleted. // -// * InternalServiceError +// * ErrCodeInternalServiceError "InternalServiceError" // An internal service error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ActivatePipeline func (c *DataPipeline) ActivatePipeline(input *ActivatePipelineInput) (*ActivatePipelineOutput, error) { req, out := c.ActivatePipelineRequest(input) err := req.Send() @@ -122,6 +123,7 @@ const opAddTags = "AddTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/AddTags func (c *DataPipeline) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) { op := &request.Operation{ Name: opAddTags, @@ -133,9 +135,8 @@ func (c *DataPipeline) AddTagsRequest(input *AddTagsInput) (req *request.Request input = &AddTagsInput{} } - req = c.newRequest(op, input, output) output = &AddTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -151,21 +152,22 @@ func (c *DataPipeline) AddTagsRequest(input *AddTagsInput) (req *request.Request // API operation AddTags for usage and error information. // // Returned Error Codes: -// * InternalServiceError +// * ErrCodeInternalServiceError "InternalServiceError" // An internal service error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * PipelineDeletedException +// * ErrCodePipelineDeletedException "PipelineDeletedException" // The specified pipeline has been deleted. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/AddTags func (c *DataPipeline) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) err := req.Send() @@ -198,6 +200,7 @@ const opCreatePipeline = "CreatePipeline" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/CreatePipeline func (c *DataPipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *request.Request, output *CreatePipelineOutput) { op := &request.Operation{ Name: opCreatePipeline, @@ -209,9 +212,8 @@ func (c *DataPipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *r input = &CreatePipelineInput{} } - req = c.newRequest(op, input, output) output = &CreatePipelineOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -228,14 +230,15 @@ func (c *DataPipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *r // API operation CreatePipeline for usage and error information. // // Returned Error Codes: -// * InternalServiceError +// * ErrCodeInternalServiceError "InternalServiceError" // An internal service error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/CreatePipeline func (c *DataPipeline) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) { req, out := c.CreatePipelineRequest(input) err := req.Send() @@ -268,6 +271,7 @@ const opDeactivatePipeline = "DeactivatePipeline" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DeactivatePipeline func (c *DataPipeline) DeactivatePipelineRequest(input *DeactivatePipelineInput) (req *request.Request, output *DeactivatePipelineOutput) { op := &request.Operation{ Name: opDeactivatePipeline, @@ -279,9 +283,8 @@ func (c *DataPipeline) DeactivatePipelineRequest(input *DeactivatePipelineInput) input = &DeactivatePipelineInput{} } - req = c.newRequest(op, input, output) output = &DeactivatePipelineOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -290,9 +293,9 @@ func (c *DataPipeline) DeactivatePipelineRequest(input *DeactivatePipelineInput) // Deactivates the specified running pipeline. The pipeline is set to the DEACTIVATING // state until the deactivation process completes. // -// To resume a deactivated pipeline, use ActivatePipeline. By default, the -// pipeline resumes from the last completed execution. Optionally, you can specify -// the date and time to resume the pipeline. +// To resume a deactivated pipeline, use ActivatePipeline. By default, the pipeline +// resumes from the last completed execution. Optionally, you can specify the +// date and time to resume the pipeline. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -302,21 +305,22 @@ func (c *DataPipeline) DeactivatePipelineRequest(input *DeactivatePipelineInput) // API operation DeactivatePipeline for usage and error information. // // Returned Error Codes: -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * PipelineDeletedException +// * ErrCodePipelineDeletedException "PipelineDeletedException" // The specified pipeline has been deleted. // -// * InternalServiceError +// * ErrCodeInternalServiceError "InternalServiceError" // An internal service error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DeactivatePipeline func (c *DataPipeline) DeactivatePipeline(input *DeactivatePipelineInput) (*DeactivatePipelineOutput, error) { req, out := c.DeactivatePipelineRequest(input) err := req.Send() @@ -349,6 +353,7 @@ const opDeletePipeline = "DeletePipeline" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DeletePipeline func (c *DataPipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *request.Request, output *DeletePipelineOutput) { op := &request.Operation{ Name: opDeletePipeline, @@ -360,11 +365,10 @@ func (c *DataPipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *r input = &DeletePipelineInput{} } + output = &DeletePipelineOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeletePipelineOutput{} - req.Data = output return } @@ -387,18 +391,19 @@ func (c *DataPipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *r // API operation DeletePipeline for usage and error information. // // Returned Error Codes: -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * InternalServiceError +// * ErrCodeInternalServiceError "InternalServiceError" // An internal service error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DeletePipeline func (c *DataPipeline) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) { req, out := c.DeletePipelineRequest(input) err := req.Send() @@ -431,6 +436,7 @@ const opDescribeObjects = "DescribeObjects" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DescribeObjects func (c *DataPipeline) DescribeObjectsRequest(input *DescribeObjectsInput) (req *request.Request, output *DescribeObjectsOutput) { op := &request.Operation{ Name: opDescribeObjects, @@ -448,9 +454,8 @@ func (c *DataPipeline) DescribeObjectsRequest(input *DescribeObjectsInput) (req input = &DescribeObjectsInput{} } - req = c.newRequest(op, input, output) output = &DescribeObjectsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -468,21 +473,22 @@ func (c *DataPipeline) DescribeObjectsRequest(input *DescribeObjectsInput) (req // API operation DescribeObjects for usage and error information. // // Returned Error Codes: -// * InternalServiceError +// * ErrCodeInternalServiceError "InternalServiceError" // An internal service error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * PipelineDeletedException +// * ErrCodePipelineDeletedException "PipelineDeletedException" // The specified pipeline has been deleted. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DescribeObjects func (c *DataPipeline) DescribeObjects(input *DescribeObjectsInput) (*DescribeObjectsOutput, error) { req, out := c.DescribeObjectsRequest(input) err := req.Send() @@ -540,6 +546,7 @@ const opDescribePipelines = "DescribePipelines" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DescribePipelines func (c *DataPipeline) DescribePipelinesRequest(input *DescribePipelinesInput) (req *request.Request, output *DescribePipelinesOutput) { op := &request.Operation{ Name: opDescribePipelines, @@ -551,9 +558,8 @@ func (c *DataPipeline) DescribePipelinesRequest(input *DescribePipelinesInput) ( input = &DescribePipelinesInput{} } - req = c.newRequest(op, input, output) output = &DescribePipelinesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -577,21 +583,22 @@ func (c *DataPipeline) DescribePipelinesRequest(input *DescribePipelinesInput) ( // API operation DescribePipelines for usage and error information. // // Returned Error Codes: -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * PipelineDeletedException +// * ErrCodePipelineDeletedException "PipelineDeletedException" // The specified pipeline has been deleted. // -// * InternalServiceError +// * ErrCodeInternalServiceError "InternalServiceError" // An internal service error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DescribePipelines func (c *DataPipeline) DescribePipelines(input *DescribePipelinesInput) (*DescribePipelinesOutput, error) { req, out := c.DescribePipelinesRequest(input) err := req.Send() @@ -624,6 +631,7 @@ const opEvaluateExpression = "EvaluateExpression" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/EvaluateExpression func (c *DataPipeline) EvaluateExpressionRequest(input *EvaluateExpressionInput) (req *request.Request, output *EvaluateExpressionOutput) { op := &request.Operation{ Name: opEvaluateExpression, @@ -635,9 +643,8 @@ func (c *DataPipeline) EvaluateExpressionRequest(input *EvaluateExpressionInput) input = &EvaluateExpressionInput{} } - req = c.newRequest(op, input, output) output = &EvaluateExpressionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -655,24 +662,25 @@ func (c *DataPipeline) EvaluateExpressionRequest(input *EvaluateExpressionInput) // API operation EvaluateExpression for usage and error information. // // Returned Error Codes: -// * InternalServiceError +// * ErrCodeInternalServiceError "InternalServiceError" // An internal service error occurred. // -// * TaskNotFoundException +// * ErrCodeTaskNotFoundException "TaskNotFoundException" // The specified task was not found. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * PipelineDeletedException +// * ErrCodePipelineDeletedException "PipelineDeletedException" // The specified pipeline has been deleted. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/EvaluateExpression func (c *DataPipeline) EvaluateExpression(input *EvaluateExpressionInput) (*EvaluateExpressionOutput, error) { req, out := c.EvaluateExpressionRequest(input) err := req.Send() @@ -705,6 +713,7 @@ const opGetPipelineDefinition = "GetPipelineDefinition" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/GetPipelineDefinition func (c *DataPipeline) GetPipelineDefinitionRequest(input *GetPipelineDefinitionInput) (req *request.Request, output *GetPipelineDefinitionOutput) { op := &request.Operation{ Name: opGetPipelineDefinition, @@ -716,9 +725,8 @@ func (c *DataPipeline) GetPipelineDefinitionRequest(input *GetPipelineDefinition input = &GetPipelineDefinitionInput{} } - req = c.newRequest(op, input, output) output = &GetPipelineDefinitionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -735,21 +743,22 @@ func (c *DataPipeline) GetPipelineDefinitionRequest(input *GetPipelineDefinition // API operation GetPipelineDefinition for usage and error information. // // Returned Error Codes: -// * InternalServiceError +// * ErrCodeInternalServiceError "InternalServiceError" // An internal service error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * PipelineDeletedException +// * ErrCodePipelineDeletedException "PipelineDeletedException" // The specified pipeline has been deleted. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/GetPipelineDefinition func (c *DataPipeline) GetPipelineDefinition(input *GetPipelineDefinitionInput) (*GetPipelineDefinitionOutput, error) { req, out := c.GetPipelineDefinitionRequest(input) err := req.Send() @@ -782,6 +791,7 @@ const opListPipelines = "ListPipelines" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ListPipelines func (c *DataPipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *request.Request, output *ListPipelinesOutput) { op := &request.Operation{ Name: opListPipelines, @@ -799,9 +809,8 @@ func (c *DataPipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *req input = &ListPipelinesInput{} } - req = c.newRequest(op, input, output) output = &ListPipelinesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -818,14 +827,15 @@ func (c *DataPipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *req // API operation ListPipelines for usage and error information. // // Returned Error Codes: -// * InternalServiceError +// * ErrCodeInternalServiceError "InternalServiceError" // An internal service error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ListPipelines func (c *DataPipeline) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) { req, out := c.ListPipelinesRequest(input) err := req.Send() @@ -883,6 +893,7 @@ const opPollForTask = "PollForTask" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PollForTask func (c *DataPipeline) PollForTaskRequest(input *PollForTaskInput) (req *request.Request, output *PollForTaskOutput) { op := &request.Operation{ Name: opPollForTask, @@ -894,9 +905,8 @@ func (c *DataPipeline) PollForTaskRequest(input *PollForTaskInput) (req *request input = &PollForTaskInput{} } - req = c.newRequest(op, input, output) output = &PollForTaskOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -925,17 +935,18 @@ func (c *DataPipeline) PollForTaskRequest(input *PollForTaskInput) (req *request // API operation PollForTask for usage and error information. // // Returned Error Codes: -// * InternalServiceError +// * ErrCodeInternalServiceError "InternalServiceError" // An internal service error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // -// * TaskNotFoundException +// * ErrCodeTaskNotFoundException "TaskNotFoundException" // The specified task was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PollForTask func (c *DataPipeline) PollForTask(input *PollForTaskInput) (*PollForTaskOutput, error) { req, out := c.PollForTaskRequest(input) err := req.Send() @@ -968,6 +979,7 @@ const opPutPipelineDefinition = "PutPipelineDefinition" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PutPipelineDefinition func (c *DataPipeline) PutPipelineDefinitionRequest(input *PutPipelineDefinitionInput) (req *request.Request, output *PutPipelineDefinitionOutput) { op := &request.Operation{ Name: opPutPipelineDefinition, @@ -979,9 +991,8 @@ func (c *DataPipeline) PutPipelineDefinitionRequest(input *PutPipelineDefinition input = &PutPipelineDefinitionInput{} } - req = c.newRequest(op, input, output) output = &PutPipelineDefinitionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -990,15 +1001,17 @@ func (c *DataPipeline) PutPipelineDefinitionRequest(input *PutPipelineDefinition // Adds tasks, schedules, and preconditions to the specified pipeline. You can // use PutPipelineDefinition to populate a new pipeline. // -// PutPipelineDefinition also validates the configuration as it adds it to -// the pipeline. Changes to the pipeline are saved unless one of the following -// three validation errors exists in the pipeline. +// PutPipelineDefinition also validates the configuration as it adds it to the +// pipeline. Changes to the pipeline are saved unless one of the following three +// validation errors exists in the pipeline. // -// An object is missing a name or identifier field. A string or reference -// field is empty. The number of objects in the pipeline exceeds the maximum -// allowed objects. The pipeline is in a FINISHED state. Pipeline object definitions -// are passed to the PutPipelineDefinition action and returned by the GetPipelineDefinition -// action. +// An object is missing a name or identifier field. +// A string or reference field is empty. +// The number of objects in the pipeline exceeds the maximum allowed objects. +// +// The pipeline is in a FINISHED state. +// Pipeline object definitions are passed to the PutPipelineDefinition action +// and returned by the GetPipelineDefinition action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1008,21 +1021,22 @@ func (c *DataPipeline) PutPipelineDefinitionRequest(input *PutPipelineDefinition // API operation PutPipelineDefinition for usage and error information. // // Returned Error Codes: -// * InternalServiceError +// * ErrCodeInternalServiceError "InternalServiceError" // An internal service error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * PipelineDeletedException +// * ErrCodePipelineDeletedException "PipelineDeletedException" // The specified pipeline has been deleted. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PutPipelineDefinition func (c *DataPipeline) PutPipelineDefinition(input *PutPipelineDefinitionInput) (*PutPipelineDefinitionOutput, error) { req, out := c.PutPipelineDefinitionRequest(input) err := req.Send() @@ -1055,6 +1069,7 @@ const opQueryObjects = "QueryObjects" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/QueryObjects func (c *DataPipeline) QueryObjectsRequest(input *QueryObjectsInput) (req *request.Request, output *QueryObjectsOutput) { op := &request.Operation{ Name: opQueryObjects, @@ -1072,9 +1087,8 @@ func (c *DataPipeline) QueryObjectsRequest(input *QueryObjectsInput) (req *reque input = &QueryObjectsInput{} } - req = c.newRequest(op, input, output) output = &QueryObjectsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1091,21 +1105,22 @@ func (c *DataPipeline) QueryObjectsRequest(input *QueryObjectsInput) (req *reque // API operation QueryObjects for usage and error information. // // Returned Error Codes: -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * PipelineDeletedException +// * ErrCodePipelineDeletedException "PipelineDeletedException" // The specified pipeline has been deleted. // -// * InternalServiceError +// * ErrCodeInternalServiceError "InternalServiceError" // An internal service error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/QueryObjects func (c *DataPipeline) QueryObjects(input *QueryObjectsInput) (*QueryObjectsOutput, error) { req, out := c.QueryObjectsRequest(input) err := req.Send() @@ -1163,6 +1178,7 @@ const opRemoveTags = "RemoveTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/RemoveTags func (c *DataPipeline) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) { op := &request.Operation{ Name: opRemoveTags, @@ -1174,9 +1190,8 @@ func (c *DataPipeline) RemoveTagsRequest(input *RemoveTagsInput) (req *request.R input = &RemoveTagsInput{} } - req = c.newRequest(op, input, output) output = &RemoveTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1192,21 +1207,22 @@ func (c *DataPipeline) RemoveTagsRequest(input *RemoveTagsInput) (req *request.R // API operation RemoveTags for usage and error information. // // Returned Error Codes: -// * InternalServiceError +// * ErrCodeInternalServiceError "InternalServiceError" // An internal service error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * PipelineDeletedException +// * ErrCodePipelineDeletedException "PipelineDeletedException" // The specified pipeline has been deleted. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/RemoveTags func (c *DataPipeline) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { req, out := c.RemoveTagsRequest(input) err := req.Send() @@ -1239,6 +1255,7 @@ const opReportTaskProgress = "ReportTaskProgress" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ReportTaskProgress func (c *DataPipeline) ReportTaskProgressRequest(input *ReportTaskProgressInput) (req *request.Request, output *ReportTaskProgressOutput) { op := &request.Operation{ Name: opReportTaskProgress, @@ -1250,9 +1267,8 @@ func (c *DataPipeline) ReportTaskProgressRequest(input *ReportTaskProgressInput) input = &ReportTaskProgressInput{} } - req = c.newRequest(op, input, output) output = &ReportTaskProgressOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1279,24 +1295,25 @@ func (c *DataPipeline) ReportTaskProgressRequest(input *ReportTaskProgressInput) // API operation ReportTaskProgress for usage and error information. // // Returned Error Codes: -// * InternalServiceError +// * ErrCodeInternalServiceError "InternalServiceError" // An internal service error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // -// * TaskNotFoundException +// * ErrCodeTaskNotFoundException "TaskNotFoundException" // The specified task was not found. // -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * PipelineDeletedException +// * ErrCodePipelineDeletedException "PipelineDeletedException" // The specified pipeline has been deleted. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ReportTaskProgress func (c *DataPipeline) ReportTaskProgress(input *ReportTaskProgressInput) (*ReportTaskProgressOutput, error) { req, out := c.ReportTaskProgressRequest(input) err := req.Send() @@ -1329,6 +1346,7 @@ const opReportTaskRunnerHeartbeat = "ReportTaskRunnerHeartbeat" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ReportTaskRunnerHeartbeat func (c *DataPipeline) ReportTaskRunnerHeartbeatRequest(input *ReportTaskRunnerHeartbeatInput) (req *request.Request, output *ReportTaskRunnerHeartbeatOutput) { op := &request.Operation{ Name: opReportTaskRunnerHeartbeat, @@ -1340,9 +1358,8 @@ func (c *DataPipeline) ReportTaskRunnerHeartbeatRequest(input *ReportTaskRunnerH input = &ReportTaskRunnerHeartbeatInput{} } - req = c.newRequest(op, input, output) output = &ReportTaskRunnerHeartbeatOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1362,14 +1379,15 @@ func (c *DataPipeline) ReportTaskRunnerHeartbeatRequest(input *ReportTaskRunnerH // API operation ReportTaskRunnerHeartbeat for usage and error information. // // Returned Error Codes: -// * InternalServiceError +// * ErrCodeInternalServiceError "InternalServiceError" // An internal service error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ReportTaskRunnerHeartbeat func (c *DataPipeline) ReportTaskRunnerHeartbeat(input *ReportTaskRunnerHeartbeatInput) (*ReportTaskRunnerHeartbeatOutput, error) { req, out := c.ReportTaskRunnerHeartbeatRequest(input) err := req.Send() @@ -1402,6 +1420,7 @@ const opSetStatus = "SetStatus" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/SetStatus func (c *DataPipeline) SetStatusRequest(input *SetStatusInput) (req *request.Request, output *SetStatusOutput) { op := &request.Operation{ Name: opSetStatus, @@ -1413,11 +1432,10 @@ func (c *DataPipeline) SetStatusRequest(input *SetStatusInput) (req *request.Req input = &SetStatusInput{} } + output = &SetStatusOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetStatusOutput{} - req.Data = output return } @@ -1437,21 +1455,22 @@ func (c *DataPipeline) SetStatusRequest(input *SetStatusInput) (req *request.Req // API operation SetStatus for usage and error information. // // Returned Error Codes: -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * PipelineDeletedException +// * ErrCodePipelineDeletedException "PipelineDeletedException" // The specified pipeline has been deleted. // -// * InternalServiceError +// * ErrCodeInternalServiceError "InternalServiceError" // An internal service error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/SetStatus func (c *DataPipeline) SetStatus(input *SetStatusInput) (*SetStatusOutput, error) { req, out := c.SetStatusRequest(input) err := req.Send() @@ -1484,6 +1503,7 @@ const opSetTaskStatus = "SetTaskStatus" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/SetTaskStatus func (c *DataPipeline) SetTaskStatusRequest(input *SetTaskStatusInput) (req *request.Request, output *SetTaskStatusOutput) { op := &request.Operation{ Name: opSetTaskStatus, @@ -1495,9 +1515,8 @@ func (c *DataPipeline) SetTaskStatusRequest(input *SetTaskStatusInput) (req *req input = &SetTaskStatusInput{} } - req = c.newRequest(op, input, output) output = &SetTaskStatusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1517,24 +1536,25 @@ func (c *DataPipeline) SetTaskStatusRequest(input *SetTaskStatusInput) (req *req // API operation SetTaskStatus for usage and error information. // // Returned Error Codes: -// * InternalServiceError +// * ErrCodeInternalServiceError "InternalServiceError" // An internal service error occurred. // -// * TaskNotFoundException +// * ErrCodeTaskNotFoundException "TaskNotFoundException" // The specified task was not found. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * PipelineDeletedException +// * ErrCodePipelineDeletedException "PipelineDeletedException" // The specified pipeline has been deleted. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/SetTaskStatus func (c *DataPipeline) SetTaskStatus(input *SetTaskStatusInput) (*SetTaskStatusOutput, error) { req, out := c.SetTaskStatusRequest(input) err := req.Send() @@ -1567,6 +1587,7 @@ const opValidatePipelineDefinition = "ValidatePipelineDefinition" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ValidatePipelineDefinition func (c *DataPipeline) ValidatePipelineDefinitionRequest(input *ValidatePipelineDefinitionInput) (req *request.Request, output *ValidatePipelineDefinitionOutput) { op := &request.Operation{ Name: opValidatePipelineDefinition, @@ -1578,9 +1599,8 @@ func (c *DataPipeline) ValidatePipelineDefinitionRequest(input *ValidatePipeline input = &ValidatePipelineDefinitionInput{} } - req = c.newRequest(op, input, output) output = &ValidatePipelineDefinitionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1597,21 +1617,22 @@ func (c *DataPipeline) ValidatePipelineDefinitionRequest(input *ValidatePipeline // API operation ValidatePipelineDefinition for usage and error information. // // Returned Error Codes: -// * InternalServiceError +// * ErrCodeInternalServiceError "InternalServiceError" // An internal service error occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // -// * PipelineNotFoundException +// * ErrCodePipelineNotFoundException "PipelineNotFoundException" // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * PipelineDeletedException +// * ErrCodePipelineDeletedException "PipelineDeletedException" // The specified pipeline has been deleted. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ValidatePipelineDefinition func (c *DataPipeline) ValidatePipelineDefinition(input *ValidatePipelineDefinitionInput) (*ValidatePipelineDefinitionOutput, error) { req, out := c.ValidatePipelineDefinitionRequest(input) err := req.Send() @@ -1619,6 +1640,7 @@ func (c *DataPipeline) ValidatePipelineDefinition(input *ValidatePipelineDefinit } // Contains the parameters for ActivatePipeline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ActivatePipelineInput type ActivatePipelineInput struct { _ struct{} `type:"structure"` @@ -1671,7 +1693,26 @@ func (s *ActivatePipelineInput) Validate() error { return nil } +// SetParameterValues sets the ParameterValues field's value. +func (s *ActivatePipelineInput) SetParameterValues(v []*ParameterValue) *ActivatePipelineInput { + s.ParameterValues = v + return s +} + +// SetPipelineId sets the PipelineId field's value. +func (s *ActivatePipelineInput) SetPipelineId(v string) *ActivatePipelineInput { + s.PipelineId = &v + return s +} + +// SetStartTimestamp sets the StartTimestamp field's value. +func (s *ActivatePipelineInput) SetStartTimestamp(v time.Time) *ActivatePipelineInput { + s.StartTimestamp = &v + return s +} + // Contains the output of ActivatePipeline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ActivatePipelineOutput type ActivatePipelineOutput struct { _ struct{} `type:"structure"` } @@ -1687,6 +1728,7 @@ func (s ActivatePipelineOutput) GoString() string { } // Contains the parameters for AddTags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/AddTagsInput type AddTagsInput struct { _ struct{} `type:"structure"` @@ -1740,7 +1782,20 @@ func (s *AddTagsInput) Validate() error { return nil } +// SetPipelineId sets the PipelineId field's value. +func (s *AddTagsInput) SetPipelineId(v string) *AddTagsInput { + s.PipelineId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput { + s.Tags = v + return s +} + // Contains the output of AddTags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/AddTagsOutput type AddTagsOutput struct { _ struct{} `type:"structure"` } @@ -1756,6 +1811,7 @@ func (s AddTagsOutput) GoString() string { } // Contains the parameters for CreatePipeline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/CreatePipelineInput type CreatePipelineInput struct { _ struct{} `type:"structure"` @@ -1833,7 +1889,32 @@ func (s *CreatePipelineInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreatePipelineInput) SetDescription(v string) *CreatePipelineInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreatePipelineInput) SetName(v string) *CreatePipelineInput { + s.Name = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreatePipelineInput) SetTags(v []*Tag) *CreatePipelineInput { + s.Tags = v + return s +} + +// SetUniqueId sets the UniqueId field's value. +func (s *CreatePipelineInput) SetUniqueId(v string) *CreatePipelineInput { + s.UniqueId = &v + return s +} + // Contains the output of CreatePipeline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/CreatePipelineOutput type CreatePipelineOutput struct { _ struct{} `type:"structure"` @@ -1854,7 +1935,14 @@ func (s CreatePipelineOutput) GoString() string { return s.String() } +// SetPipelineId sets the PipelineId field's value. +func (s *CreatePipelineOutput) SetPipelineId(v string) *CreatePipelineOutput { + s.PipelineId = &v + return s +} + // Contains the parameters for DeactivatePipeline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DeactivatePipelineInput type DeactivatePipelineInput struct { _ struct{} `type:"structure"` @@ -1895,7 +1983,20 @@ func (s *DeactivatePipelineInput) Validate() error { return nil } +// SetCancelActive sets the CancelActive field's value. +func (s *DeactivatePipelineInput) SetCancelActive(v bool) *DeactivatePipelineInput { + s.CancelActive = &v + return s +} + +// SetPipelineId sets the PipelineId field's value. +func (s *DeactivatePipelineInput) SetPipelineId(v string) *DeactivatePipelineInput { + s.PipelineId = &v + return s +} + // Contains the output of DeactivatePipeline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DeactivatePipelineOutput type DeactivatePipelineOutput struct { _ struct{} `type:"structure"` } @@ -1911,6 +2012,7 @@ func (s DeactivatePipelineOutput) GoString() string { } // Contains the parameters for DeletePipeline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DeletePipelineInput type DeletePipelineInput struct { _ struct{} `type:"structure"` @@ -1946,6 +2048,13 @@ func (s *DeletePipelineInput) Validate() error { return nil } +// SetPipelineId sets the PipelineId field's value. +func (s *DeletePipelineInput) SetPipelineId(v string) *DeletePipelineInput { + s.PipelineId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DeletePipelineOutput type DeletePipelineOutput struct { _ struct{} `type:"structure"` } @@ -1961,6 +2070,7 @@ func (s DeletePipelineOutput) GoString() string { } // Contains the parameters for DescribeObjects. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DescribeObjectsInput type DescribeObjectsInput struct { _ struct{} `type:"structure"` @@ -2015,7 +2125,32 @@ func (s *DescribeObjectsInput) Validate() error { return nil } +// SetEvaluateExpressions sets the EvaluateExpressions field's value. +func (s *DescribeObjectsInput) SetEvaluateExpressions(v bool) *DescribeObjectsInput { + s.EvaluateExpressions = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeObjectsInput) SetMarker(v string) *DescribeObjectsInput { + s.Marker = &v + return s +} + +// SetObjectIds sets the ObjectIds field's value. +func (s *DescribeObjectsInput) SetObjectIds(v []*string) *DescribeObjectsInput { + s.ObjectIds = v + return s +} + +// SetPipelineId sets the PipelineId field's value. +func (s *DescribeObjectsInput) SetPipelineId(v string) *DescribeObjectsInput { + s.PipelineId = &v + return s +} + // Contains the output of DescribeObjects. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DescribeObjectsOutput type DescribeObjectsOutput struct { _ struct{} `type:"structure"` @@ -2043,7 +2178,26 @@ func (s DescribeObjectsOutput) GoString() string { return s.String() } +// SetHasMoreResults sets the HasMoreResults field's value. +func (s *DescribeObjectsOutput) SetHasMoreResults(v bool) *DescribeObjectsOutput { + s.HasMoreResults = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeObjectsOutput) SetMarker(v string) *DescribeObjectsOutput { + s.Marker = &v + return s +} + +// SetPipelineObjects sets the PipelineObjects field's value. +func (s *DescribeObjectsOutput) SetPipelineObjects(v []*PipelineObject) *DescribeObjectsOutput { + s.PipelineObjects = v + return s +} + // Contains the parameters for DescribePipelines. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DescribePipelinesInput type DescribePipelinesInput struct { _ struct{} `type:"structure"` @@ -2077,7 +2231,14 @@ func (s *DescribePipelinesInput) Validate() error { return nil } +// SetPipelineIds sets the PipelineIds field's value. +func (s *DescribePipelinesInput) SetPipelineIds(v []*string) *DescribePipelinesInput { + s.PipelineIds = v + return s +} + // Contains the output of DescribePipelines. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DescribePipelinesOutput type DescribePipelinesOutput struct { _ struct{} `type:"structure"` @@ -2097,7 +2258,14 @@ func (s DescribePipelinesOutput) GoString() string { return s.String() } +// SetPipelineDescriptionList sets the PipelineDescriptionList field's value. +func (s *DescribePipelinesOutput) SetPipelineDescriptionList(v []*PipelineDescription) *DescribePipelinesOutput { + s.PipelineDescriptionList = v + return s +} + // Contains the parameters for EvaluateExpression. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/EvaluateExpressionInput type EvaluateExpressionInput struct { _ struct{} `type:"structure"` @@ -2152,7 +2320,26 @@ func (s *EvaluateExpressionInput) Validate() error { return nil } +// SetExpression sets the Expression field's value. +func (s *EvaluateExpressionInput) SetExpression(v string) *EvaluateExpressionInput { + s.Expression = &v + return s +} + +// SetObjectId sets the ObjectId field's value. +func (s *EvaluateExpressionInput) SetObjectId(v string) *EvaluateExpressionInput { + s.ObjectId = &v + return s +} + +// SetPipelineId sets the PipelineId field's value. +func (s *EvaluateExpressionInput) SetPipelineId(v string) *EvaluateExpressionInput { + s.PipelineId = &v + return s +} + // Contains the output of EvaluateExpression. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/EvaluateExpressionOutput type EvaluateExpressionOutput struct { _ struct{} `type:"structure"` @@ -2172,9 +2359,16 @@ func (s EvaluateExpressionOutput) GoString() string { return s.String() } +// SetEvaluatedExpression sets the EvaluatedExpression field's value. +func (s *EvaluateExpressionOutput) SetEvaluatedExpression(v string) *EvaluateExpressionOutput { + s.EvaluatedExpression = &v + return s +} + // A key-value pair that describes a property of a pipeline object. The value // is specified as either a string value (StringValue) or a reference to another // object (RefValue) but not as both. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/Field type Field struct { _ struct{} `type:"structure"` @@ -2219,7 +2413,26 @@ func (s *Field) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Field) SetKey(v string) *Field { + s.Key = &v + return s +} + +// SetRefValue sets the RefValue field's value. +func (s *Field) SetRefValue(v string) *Field { + s.RefValue = &v + return s +} + +// SetStringValue sets the StringValue field's value. +func (s *Field) SetStringValue(v string) *Field { + s.StringValue = &v + return s +} + // Contains the parameters for GetPipelineDefinition. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/GetPipelineDefinitionInput type GetPipelineDefinitionInput struct { _ struct{} `type:"structure"` @@ -2260,7 +2473,20 @@ func (s *GetPipelineDefinitionInput) Validate() error { return nil } +// SetPipelineId sets the PipelineId field's value. +func (s *GetPipelineDefinitionInput) SetPipelineId(v string) *GetPipelineDefinitionInput { + s.PipelineId = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *GetPipelineDefinitionInput) SetVersion(v string) *GetPipelineDefinitionInput { + s.Version = &v + return s +} + // Contains the output of GetPipelineDefinition. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/GetPipelineDefinitionOutput type GetPipelineDefinitionOutput struct { _ struct{} `type:"structure"` @@ -2284,12 +2510,31 @@ func (s GetPipelineDefinitionOutput) GoString() string { return s.String() } +// SetParameterObjects sets the ParameterObjects field's value. +func (s *GetPipelineDefinitionOutput) SetParameterObjects(v []*ParameterObject) *GetPipelineDefinitionOutput { + s.ParameterObjects = v + return s +} + +// SetParameterValues sets the ParameterValues field's value. +func (s *GetPipelineDefinitionOutput) SetParameterValues(v []*ParameterValue) *GetPipelineDefinitionOutput { + s.ParameterValues = v + return s +} + +// SetPipelineObjects sets the PipelineObjects field's value. +func (s *GetPipelineDefinitionOutput) SetPipelineObjects(v []*PipelineObject) *GetPipelineDefinitionOutput { + s.PipelineObjects = v + return s +} + // Identity information for the EC2 instance that is hosting the task runner. // You can get this value by calling a metadata URI from the EC2 instance. For // more information, see Instance Metadata (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html) // in the Amazon Elastic Compute Cloud User Guide. Passing in this value proves // that your task runner is running on an EC2 instance, and ensures the proper // AWS Data Pipeline service charges are applied to your pipeline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/InstanceIdentity type InstanceIdentity struct { _ struct{} `type:"structure"` @@ -2313,7 +2558,20 @@ func (s InstanceIdentity) GoString() string { return s.String() } +// SetDocument sets the Document field's value. +func (s *InstanceIdentity) SetDocument(v string) *InstanceIdentity { + s.Document = &v + return s +} + +// SetSignature sets the Signature field's value. +func (s *InstanceIdentity) SetSignature(v string) *InstanceIdentity { + s.Signature = &v + return s +} + // Contains the parameters for ListPipelines. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ListPipelinesInput type ListPipelinesInput struct { _ struct{} `type:"structure"` @@ -2334,7 +2592,14 @@ func (s ListPipelinesInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListPipelinesInput) SetMarker(v string) *ListPipelinesInput { + s.Marker = &v + return s +} + // Contains the output of ListPipelines. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ListPipelinesOutput type ListPipelinesOutput struct { _ struct{} `type:"structure"` @@ -2364,8 +2629,27 @@ func (s ListPipelinesOutput) GoString() string { return s.String() } +// SetHasMoreResults sets the HasMoreResults field's value. +func (s *ListPipelinesOutput) SetHasMoreResults(v bool) *ListPipelinesOutput { + s.HasMoreResults = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListPipelinesOutput) SetMarker(v string) *ListPipelinesOutput { + s.Marker = &v + return s +} + +// SetPipelineIdList sets the PipelineIdList field's value. +func (s *ListPipelinesOutput) SetPipelineIdList(v []*PipelineIdName) *ListPipelinesOutput { + s.PipelineIdList = v + return s +} + // Contains a logical operation for comparing the value of a field with a specified // value. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/Operator type Operator struct { _ struct{} `type:"structure"` @@ -2375,13 +2659,24 @@ type Operator struct { // comparison types can be used only with String fields. The comparison types // you can use apply only to certain object fields, as detailed below. // - // The comparison operators EQ and REF_EQ act on the following fields: + // The comparison operators EQ and REF_EQ act on the following fields: // - // name @sphere parent @componentParent @instanceParent @status @scheduledStartTime - // @scheduledEndTime @actualStartTime @actualEndTime The comparison operators - // GE, LE, and BETWEEN act on the following fields: + // * name + // * @sphere + // * parent + // * @componentParent + // * @instanceParent + // * @status + // * @scheduledStartTime + // * @scheduledEndTime + // * @actualStartTime + // * @actualEndTime + // The comparison operators GE, LE, and BETWEEN act on the following fields: // - // @scheduledStartTime @scheduledEndTime @actualStartTime @actualEndTime + // * @scheduledStartTime + // * @scheduledEndTime + // * @actualStartTime + // * @actualEndTime // Note that fields beginning with the at sign (@) are read-only and set by // the web service. When you name fields, you should choose names containing // only alpha-numeric values, as symbols may be reserved by AWS Data Pipeline. @@ -2403,7 +2698,20 @@ func (s Operator) GoString() string { return s.String() } +// SetType sets the Type field's value. +func (s *Operator) SetType(v string) *Operator { + s.Type = &v + return s +} + +// SetValues sets the Values field's value. +func (s *Operator) SetValues(v []*string) *Operator { + s.Values = v + return s +} + // The attributes allowed or specified with a parameter object. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ParameterAttribute type ParameterAttribute struct { _ struct{} `type:"structure"` @@ -2447,7 +2755,20 @@ func (s *ParameterAttribute) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *ParameterAttribute) SetKey(v string) *ParameterAttribute { + s.Key = &v + return s +} + +// SetStringValue sets the StringValue field's value. +func (s *ParameterAttribute) SetStringValue(v string) *ParameterAttribute { + s.StringValue = &v + return s +} + // Contains information about a parameter object. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ParameterObject type ParameterObject struct { _ struct{} `type:"structure"` @@ -2501,7 +2822,20 @@ func (s *ParameterObject) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *ParameterObject) SetAttributes(v []*ParameterAttribute) *ParameterObject { + s.Attributes = v + return s +} + +// SetId sets the Id field's value. +func (s *ParameterObject) SetId(v string) *ParameterObject { + s.Id = &v + return s +} + // A value or list of parameter values. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ParameterValue type ParameterValue struct { _ struct{} `type:"structure"` @@ -2545,7 +2879,20 @@ func (s *ParameterValue) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *ParameterValue) SetId(v string) *ParameterValue { + s.Id = &v + return s +} + +// SetStringValue sets the StringValue field's value. +func (s *ParameterValue) SetStringValue(v string) *ParameterValue { + s.StringValue = &v + return s +} + // Contains pipeline metadata. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PipelineDescription type PipelineDescription struct { _ struct{} `type:"structure"` @@ -2586,7 +2933,38 @@ func (s PipelineDescription) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *PipelineDescription) SetDescription(v string) *PipelineDescription { + s.Description = &v + return s +} + +// SetFields sets the Fields field's value. +func (s *PipelineDescription) SetFields(v []*Field) *PipelineDescription { + s.Fields = v + return s +} + +// SetName sets the Name field's value. +func (s *PipelineDescription) SetName(v string) *PipelineDescription { + s.Name = &v + return s +} + +// SetPipelineId sets the PipelineId field's value. +func (s *PipelineDescription) SetPipelineId(v string) *PipelineDescription { + s.PipelineId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *PipelineDescription) SetTags(v []*Tag) *PipelineDescription { + s.Tags = v + return s +} + // Contains the name and identifier of a pipeline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PipelineIdName type PipelineIdName struct { _ struct{} `type:"structure"` @@ -2608,9 +2986,22 @@ func (s PipelineIdName) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *PipelineIdName) SetId(v string) *PipelineIdName { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *PipelineIdName) SetName(v string) *PipelineIdName { + s.Name = &v + return s +} + // Contains information about a pipeline object. This can be a logical, physical, // or physical attempt pipeline object. The complete set of components of a // pipeline defines the pipeline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PipelineObject type PipelineObject struct { _ struct{} `type:"structure"` @@ -2675,7 +3066,26 @@ func (s *PipelineObject) Validate() error { return nil } +// SetFields sets the Fields field's value. +func (s *PipelineObject) SetFields(v []*Field) *PipelineObject { + s.Fields = v + return s +} + +// SetId sets the Id field's value. +func (s *PipelineObject) SetId(v string) *PipelineObject { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *PipelineObject) SetName(v string) *PipelineObject { + s.Name = &v + return s +} + // Contains the parameters for PollForTask. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PollForTaskInput type PollForTaskInput struct { _ struct{} `type:"structure"` @@ -2726,7 +3136,26 @@ func (s *PollForTaskInput) Validate() error { return nil } +// SetHostname sets the Hostname field's value. +func (s *PollForTaskInput) SetHostname(v string) *PollForTaskInput { + s.Hostname = &v + return s +} + +// SetInstanceIdentity sets the InstanceIdentity field's value. +func (s *PollForTaskInput) SetInstanceIdentity(v *InstanceIdentity) *PollForTaskInput { + s.InstanceIdentity = v + return s +} + +// SetWorkerGroup sets the WorkerGroup field's value. +func (s *PollForTaskInput) SetWorkerGroup(v string) *PollForTaskInput { + s.WorkerGroup = &v + return s +} + // Contains the output of PollForTask. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PollForTaskOutput type PollForTaskOutput struct { _ struct{} `type:"structure"` @@ -2747,7 +3176,14 @@ func (s PollForTaskOutput) GoString() string { return s.String() } +// SetTaskObject sets the TaskObject field's value. +func (s *PollForTaskOutput) SetTaskObject(v *TaskObject) *PollForTaskOutput { + s.TaskObject = v + return s +} + // Contains the parameters for PutPipelineDefinition. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PutPipelineDefinitionInput type PutPipelineDefinitionInput struct { _ struct{} `type:"structure"` @@ -2828,7 +3264,32 @@ func (s *PutPipelineDefinitionInput) Validate() error { return nil } +// SetParameterObjects sets the ParameterObjects field's value. +func (s *PutPipelineDefinitionInput) SetParameterObjects(v []*ParameterObject) *PutPipelineDefinitionInput { + s.ParameterObjects = v + return s +} + +// SetParameterValues sets the ParameterValues field's value. +func (s *PutPipelineDefinitionInput) SetParameterValues(v []*ParameterValue) *PutPipelineDefinitionInput { + s.ParameterValues = v + return s +} + +// SetPipelineId sets the PipelineId field's value. +func (s *PutPipelineDefinitionInput) SetPipelineId(v string) *PutPipelineDefinitionInput { + s.PipelineId = &v + return s +} + +// SetPipelineObjects sets the PipelineObjects field's value. +func (s *PutPipelineDefinitionInput) SetPipelineObjects(v []*PipelineObject) *PutPipelineDefinitionInput { + s.PipelineObjects = v + return s +} + // Contains the output of PutPipelineDefinition. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PutPipelineDefinitionOutput type PutPipelineDefinitionOutput struct { _ struct{} `type:"structure"` @@ -2856,7 +3317,26 @@ func (s PutPipelineDefinitionOutput) GoString() string { return s.String() } +// SetErrored sets the Errored field's value. +func (s *PutPipelineDefinitionOutput) SetErrored(v bool) *PutPipelineDefinitionOutput { + s.Errored = &v + return s +} + +// SetValidationErrors sets the ValidationErrors field's value. +func (s *PutPipelineDefinitionOutput) SetValidationErrors(v []*ValidationError) *PutPipelineDefinitionOutput { + s.ValidationErrors = v + return s +} + +// SetValidationWarnings sets the ValidationWarnings field's value. +func (s *PutPipelineDefinitionOutput) SetValidationWarnings(v []*ValidationWarning) *PutPipelineDefinitionOutput { + s.ValidationWarnings = v + return s +} + // Defines the query to run against an object. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/Query type Query struct { _ struct{} `type:"structure"` @@ -2875,7 +3355,14 @@ func (s Query) GoString() string { return s.String() } +// SetSelectors sets the Selectors field's value. +func (s *Query) SetSelectors(v []*Selector) *Query { + s.Selectors = v + return s +} + // Contains the parameters for QueryObjects. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/QueryObjectsInput type QueryObjectsInput struct { _ struct{} `type:"structure"` @@ -2936,7 +3423,38 @@ func (s *QueryObjectsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *QueryObjectsInput) SetLimit(v int64) *QueryObjectsInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *QueryObjectsInput) SetMarker(v string) *QueryObjectsInput { + s.Marker = &v + return s +} + +// SetPipelineId sets the PipelineId field's value. +func (s *QueryObjectsInput) SetPipelineId(v string) *QueryObjectsInput { + s.PipelineId = &v + return s +} + +// SetQuery sets the Query field's value. +func (s *QueryObjectsInput) SetQuery(v *Query) *QueryObjectsInput { + s.Query = v + return s +} + +// SetSphere sets the Sphere field's value. +func (s *QueryObjectsInput) SetSphere(v string) *QueryObjectsInput { + s.Sphere = &v + return s +} + // Contains the output of QueryObjects. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/QueryObjectsOutput type QueryObjectsOutput struct { _ struct{} `type:"structure"` @@ -2963,7 +3481,26 @@ func (s QueryObjectsOutput) GoString() string { return s.String() } +// SetHasMoreResults sets the HasMoreResults field's value. +func (s *QueryObjectsOutput) SetHasMoreResults(v bool) *QueryObjectsOutput { + s.HasMoreResults = &v + return s +} + +// SetIds sets the Ids field's value. +func (s *QueryObjectsOutput) SetIds(v []*string) *QueryObjectsOutput { + s.Ids = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *QueryObjectsOutput) SetMarker(v string) *QueryObjectsOutput { + s.Marker = &v + return s +} + // Contains the parameters for RemoveTags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/RemoveTagsInput type RemoveTagsInput struct { _ struct{} `type:"structure"` @@ -3007,7 +3544,20 @@ func (s *RemoveTagsInput) Validate() error { return nil } +// SetPipelineId sets the PipelineId field's value. +func (s *RemoveTagsInput) SetPipelineId(v string) *RemoveTagsInput { + s.PipelineId = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsInput) SetTagKeys(v []*string) *RemoveTagsInput { + s.TagKeys = v + return s +} + // Contains the output of RemoveTags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/RemoveTagsOutput type RemoveTagsOutput struct { _ struct{} `type:"structure"` } @@ -3023,6 +3573,7 @@ func (s RemoveTagsOutput) GoString() string { } // Contains the parameters for ReportTaskProgress. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ReportTaskProgressInput type ReportTaskProgressInput struct { _ struct{} `type:"structure"` @@ -3073,7 +3624,20 @@ func (s *ReportTaskProgressInput) Validate() error { return nil } +// SetFields sets the Fields field's value. +func (s *ReportTaskProgressInput) SetFields(v []*Field) *ReportTaskProgressInput { + s.Fields = v + return s +} + +// SetTaskId sets the TaskId field's value. +func (s *ReportTaskProgressInput) SetTaskId(v string) *ReportTaskProgressInput { + s.TaskId = &v + return s +} + // Contains the output of ReportTaskProgress. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ReportTaskProgressOutput type ReportTaskProgressOutput struct { _ struct{} `type:"structure"` @@ -3094,7 +3658,14 @@ func (s ReportTaskProgressOutput) GoString() string { return s.String() } +// SetCanceled sets the Canceled field's value. +func (s *ReportTaskProgressOutput) SetCanceled(v bool) *ReportTaskProgressOutput { + s.Canceled = &v + return s +} + // Contains the parameters for ReportTaskRunnerHeartbeat. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ReportTaskRunnerHeartbeatInput type ReportTaskRunnerHeartbeatInput struct { _ struct{} `type:"structure"` @@ -3147,7 +3718,26 @@ func (s *ReportTaskRunnerHeartbeatInput) Validate() error { return nil } +// SetHostname sets the Hostname field's value. +func (s *ReportTaskRunnerHeartbeatInput) SetHostname(v string) *ReportTaskRunnerHeartbeatInput { + s.Hostname = &v + return s +} + +// SetTaskrunnerId sets the TaskrunnerId field's value. +func (s *ReportTaskRunnerHeartbeatInput) SetTaskrunnerId(v string) *ReportTaskRunnerHeartbeatInput { + s.TaskrunnerId = &v + return s +} + +// SetWorkerGroup sets the WorkerGroup field's value. +func (s *ReportTaskRunnerHeartbeatInput) SetWorkerGroup(v string) *ReportTaskRunnerHeartbeatInput { + s.WorkerGroup = &v + return s +} + // Contains the output of ReportTaskRunnerHeartbeat. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ReportTaskRunnerHeartbeatOutput type ReportTaskRunnerHeartbeatOutput struct { _ struct{} `type:"structure"` @@ -3167,8 +3757,15 @@ func (s ReportTaskRunnerHeartbeatOutput) GoString() string { return s.String() } +// SetTerminate sets the Terminate field's value. +func (s *ReportTaskRunnerHeartbeatOutput) SetTerminate(v bool) *ReportTaskRunnerHeartbeatOutput { + s.Terminate = &v + return s +} + // A comparision that is used to determine whether a query should return this // object. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/Selector type Selector struct { _ struct{} `type:"structure"` @@ -3193,7 +3790,20 @@ func (s Selector) GoString() string { return s.String() } +// SetFieldName sets the FieldName field's value. +func (s *Selector) SetFieldName(v string) *Selector { + s.FieldName = &v + return s +} + +// SetOperator sets the Operator field's value. +func (s *Selector) SetOperator(v *Operator) *Selector { + s.Operator = v + return s +} + // Contains the parameters for SetStatus. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/SetStatusInput type SetStatusInput struct { _ struct{} `type:"structure"` @@ -3247,6 +3857,25 @@ func (s *SetStatusInput) Validate() error { return nil } +// SetObjectIds sets the ObjectIds field's value. +func (s *SetStatusInput) SetObjectIds(v []*string) *SetStatusInput { + s.ObjectIds = v + return s +} + +// SetPipelineId sets the PipelineId field's value. +func (s *SetStatusInput) SetPipelineId(v string) *SetStatusInput { + s.PipelineId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SetStatusInput) SetStatus(v string) *SetStatusInput { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/SetStatusOutput type SetStatusOutput struct { _ struct{} `type:"structure"` } @@ -3262,6 +3891,7 @@ func (s SetStatusOutput) GoString() string { } // Contains the parameters for SetTaskStatus. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/SetTaskStatusInput type SetTaskStatusInput struct { _ struct{} `type:"structure"` @@ -3325,7 +3955,38 @@ func (s *SetTaskStatusInput) Validate() error { return nil } +// SetErrorId sets the ErrorId field's value. +func (s *SetTaskStatusInput) SetErrorId(v string) *SetTaskStatusInput { + s.ErrorId = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *SetTaskStatusInput) SetErrorMessage(v string) *SetTaskStatusInput { + s.ErrorMessage = &v + return s +} + +// SetErrorStackTrace sets the ErrorStackTrace field's value. +func (s *SetTaskStatusInput) SetErrorStackTrace(v string) *SetTaskStatusInput { + s.ErrorStackTrace = &v + return s +} + +// SetTaskId sets the TaskId field's value. +func (s *SetTaskStatusInput) SetTaskId(v string) *SetTaskStatusInput { + s.TaskId = &v + return s +} + +// SetTaskStatus sets the TaskStatus field's value. +func (s *SetTaskStatusInput) SetTaskStatus(v string) *SetTaskStatusInput { + s.TaskStatus = &v + return s +} + // Contains the output of SetTaskStatus. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/SetTaskStatusOutput type SetTaskStatusOutput struct { _ struct{} `type:"structure"` } @@ -3345,6 +4006,7 @@ func (s SetTaskStatusOutput) GoString() string { // pipeline. For more information, see Controlling User Access to Pipelines // (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html) // in the AWS Data Pipeline Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/Tag type Tag struct { _ struct{} `type:"structure"` @@ -3392,7 +4054,20 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Contains information about a pipeline task that is assigned to a task runner. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/TaskObject type TaskObject struct { _ struct{} `type:"structure"` @@ -3422,7 +4097,32 @@ func (s TaskObject) GoString() string { return s.String() } +// SetAttemptId sets the AttemptId field's value. +func (s *TaskObject) SetAttemptId(v string) *TaskObject { + s.AttemptId = &v + return s +} + +// SetObjects sets the Objects field's value. +func (s *TaskObject) SetObjects(v map[string]*PipelineObject) *TaskObject { + s.Objects = v + return s +} + +// SetPipelineId sets the PipelineId field's value. +func (s *TaskObject) SetPipelineId(v string) *TaskObject { + s.PipelineId = &v + return s +} + +// SetTaskId sets the TaskId field's value. +func (s *TaskObject) SetTaskId(v string) *TaskObject { + s.TaskId = &v + return s +} + // Contains the parameters for ValidatePipelineDefinition. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ValidatePipelineDefinitionInput type ValidatePipelineDefinitionInput struct { _ struct{} `type:"structure"` @@ -3502,7 +4202,32 @@ func (s *ValidatePipelineDefinitionInput) Validate() error { return nil } +// SetParameterObjects sets the ParameterObjects field's value. +func (s *ValidatePipelineDefinitionInput) SetParameterObjects(v []*ParameterObject) *ValidatePipelineDefinitionInput { + s.ParameterObjects = v + return s +} + +// SetParameterValues sets the ParameterValues field's value. +func (s *ValidatePipelineDefinitionInput) SetParameterValues(v []*ParameterValue) *ValidatePipelineDefinitionInput { + s.ParameterValues = v + return s +} + +// SetPipelineId sets the PipelineId field's value. +func (s *ValidatePipelineDefinitionInput) SetPipelineId(v string) *ValidatePipelineDefinitionInput { + s.PipelineId = &v + return s +} + +// SetPipelineObjects sets the PipelineObjects field's value. +func (s *ValidatePipelineDefinitionInput) SetPipelineObjects(v []*PipelineObject) *ValidatePipelineDefinitionInput { + s.PipelineObjects = v + return s +} + // Contains the output of ValidatePipelineDefinition. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ValidatePipelineDefinitionOutput type ValidatePipelineDefinitionOutput struct { _ struct{} `type:"structure"` @@ -3528,9 +4253,28 @@ func (s ValidatePipelineDefinitionOutput) GoString() string { return s.String() } +// SetErrored sets the Errored field's value. +func (s *ValidatePipelineDefinitionOutput) SetErrored(v bool) *ValidatePipelineDefinitionOutput { + s.Errored = &v + return s +} + +// SetValidationErrors sets the ValidationErrors field's value. +func (s *ValidatePipelineDefinitionOutput) SetValidationErrors(v []*ValidationError) *ValidatePipelineDefinitionOutput { + s.ValidationErrors = v + return s +} + +// SetValidationWarnings sets the ValidationWarnings field's value. +func (s *ValidatePipelineDefinitionOutput) SetValidationWarnings(v []*ValidationWarning) *ValidatePipelineDefinitionOutput { + s.ValidationWarnings = v + return s +} + // Defines a validation error. Validation errors prevent pipeline activation. // The set of validation errors that can be returned are defined by AWS Data // Pipeline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ValidationError type ValidationError struct { _ struct{} `type:"structure"` @@ -3551,9 +4295,22 @@ func (s ValidationError) GoString() string { return s.String() } +// SetErrors sets the Errors field's value. +func (s *ValidationError) SetErrors(v []*string) *ValidationError { + s.Errors = v + return s +} + +// SetId sets the Id field's value. +func (s *ValidationError) SetId(v string) *ValidationError { + s.Id = &v + return s +} + // Defines a validation warning. Validation warnings do not prevent pipeline // activation. The set of validation warnings that can be returned are defined // by AWS Data Pipeline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ValidationWarning type ValidationWarning struct { _ struct{} `type:"structure"` @@ -3574,6 +4331,18 @@ func (s ValidationWarning) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *ValidationWarning) SetId(v string) *ValidationWarning { + s.Id = &v + return s +} + +// SetWarnings sets the Warnings field's value. +func (s *ValidationWarning) SetWarnings(v []*string) *ValidationWarning { + s.Warnings = v + return s +} + const ( // OperatorTypeEq is a OperatorType enum value OperatorTypeEq = "EQ" diff --git a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface/interface.go index f547d3766..93834358f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockDataPipelineClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/errors.go b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/errors.go new file mode 100644 index 000000000..f99b46530 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/errors.go @@ -0,0 +1,39 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package datapipeline + +const ( + + // ErrCodeInternalServiceError for service response error code + // "InternalServiceError". + // + // An internal service error occurred. + ErrCodeInternalServiceError = "InternalServiceError" + + // ErrCodeInvalidRequestException for service response error code + // "InvalidRequestException". + // + // The request was not valid. Verify that your request was properly formatted, + // that the signature was generated with the correct credentials, and that you + // haven't exceeded any of the service limits for your account. + ErrCodeInvalidRequestException = "InvalidRequestException" + + // ErrCodePipelineDeletedException for service response error code + // "PipelineDeletedException". + // + // The specified pipeline has been deleted. + ErrCodePipelineDeletedException = "PipelineDeletedException" + + // ErrCodePipelineNotFoundException for service response error code + // "PipelineNotFoundException". + // + // The specified pipeline was not found. Verify that you used the correct user + // and account identifiers. + ErrCodePipelineNotFoundException = "PipelineNotFoundException" + + // ErrCodeTaskNotFoundException for service response error code + // "TaskNotFoundException". + // + // The specified task was not found. + ErrCodeTaskNotFoundException = "TaskNotFoundException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/examples_test.go index d68f720bc..33b7ef193 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleDataPipeline_ActivatePipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -49,11 +45,7 @@ func ExampleDataPipeline_ActivatePipeline() { } func ExampleDataPipeline_AddTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -81,11 +73,7 @@ func ExampleDataPipeline_AddTags() { } func ExampleDataPipeline_CreatePipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -115,11 +103,7 @@ func ExampleDataPipeline_CreatePipeline() { } func ExampleDataPipeline_DeactivatePipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -141,11 +125,7 @@ func ExampleDataPipeline_DeactivatePipeline() { } func ExampleDataPipeline_DeletePipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -166,11 +146,7 @@ func ExampleDataPipeline_DeletePipeline() { } func ExampleDataPipeline_DescribeObjects() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -197,11 +173,7 @@ func ExampleDataPipeline_DescribeObjects() { } func ExampleDataPipeline_DescribePipelines() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -225,11 +197,7 @@ func ExampleDataPipeline_DescribePipelines() { } func ExampleDataPipeline_EvaluateExpression() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -252,11 +220,7 @@ func ExampleDataPipeline_EvaluateExpression() { } func ExampleDataPipeline_GetPipelineDefinition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -278,11 +242,7 @@ func ExampleDataPipeline_GetPipelineDefinition() { } func ExampleDataPipeline_ListPipelines() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -303,11 +263,7 @@ func ExampleDataPipeline_ListPipelines() { } func ExampleDataPipeline_PollForTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -333,11 +289,7 @@ func ExampleDataPipeline_PollForTask() { } func ExampleDataPipeline_PutPipelineDefinition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -393,11 +345,7 @@ func ExampleDataPipeline_PutPipelineDefinition() { } func ExampleDataPipeline_QueryObjects() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -436,11 +384,7 @@ func ExampleDataPipeline_QueryObjects() { } func ExampleDataPipeline_RemoveTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -465,11 +409,7 @@ func ExampleDataPipeline_RemoveTags() { } func ExampleDataPipeline_ReportTaskProgress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -498,11 +438,7 @@ func ExampleDataPipeline_ReportTaskProgress() { } func ExampleDataPipeline_ReportTaskRunnerHeartbeat() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -525,11 +461,7 @@ func ExampleDataPipeline_ReportTaskRunnerHeartbeat() { } func ExampleDataPipeline_SetStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -555,11 +487,7 @@ func ExampleDataPipeline_SetStatus() { } func ExampleDataPipeline_SetTaskStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) @@ -584,11 +512,7 @@ func ExampleDataPipeline_SetTaskStatus() { } func ExampleDataPipeline_ValidatePipelineDefinition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := datapipeline.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/service.go b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/service.go index b993e569f..6ee9ffcaf 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/service.go @@ -16,12 +16,12 @@ import ( // that data dependencies are met so that your application can focus on processing // the data. // -// AWS Data Pipeline provides a JAR implementation of a task runner called -// AWS Data Pipeline Task Runner. AWS Data Pipeline Task Runner provides logic -// for common data management scenarios, such as performing database queries -// and running data analysis using Amazon Elastic MapReduce (Amazon EMR). You -// can use AWS Data Pipeline Task Runner as your task runner, or you can write -// your own task runner to provide custom data management. +// AWS Data Pipeline provides a JAR implementation of a task runner called AWS +// Data Pipeline Task Runner. AWS Data Pipeline Task Runner provides logic for +// common data management scenarios, such as performing database queries and +// running data analysis using Amazon Elastic MapReduce (Amazon EMR). You can +// use AWS Data Pipeline Task Runner as your task runner, or you can write your +// own task runner to provide custom data management. // // AWS Data Pipeline implements two main sets of functionality. Use the first // set to create a pipeline and define data sources, schedules, dependencies, @@ -33,8 +33,9 @@ import ( // service, reporting progress to the web service as it does so. When the task // is done, the task runner reports the final success or failure of the task // to the web service. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29 type DataPipeline struct { *client.Client } @@ -45,8 +46,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "datapipeline" +// Service information constants +const ( + ServiceName = "datapipeline" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the DataPipeline client with a session. // If additional configuration is needed for the client instance use the optional @@ -59,17 +63,18 @@ const ServiceName = "datapipeline" // // Create a DataPipeline client with additional configuration // svc := datapipeline.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *DataPipeline { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *DataPipeline { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *DataPipeline { svc := &DataPipeline{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2012-10-29", diff --git a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/api.go b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/api.go index 808b9ca31..48e85f49a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/api.go @@ -36,6 +36,7 @@ const opCreateDevicePool = "CreateDevicePool" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateDevicePool func (c *DeviceFarm) CreateDevicePoolRequest(input *CreateDevicePoolInput) (req *request.Request, output *CreateDevicePoolOutput) { op := &request.Operation{ Name: opCreateDevicePool, @@ -47,9 +48,8 @@ func (c *DeviceFarm) CreateDevicePoolRequest(input *CreateDevicePoolInput) (req input = &CreateDevicePoolInput{} } - req = c.newRequest(op, input, output) output = &CreateDevicePoolOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -65,18 +65,19 @@ func (c *DeviceFarm) CreateDevicePoolRequest(input *CreateDevicePoolInput) (req // API operation CreateDevicePool for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateDevicePool func (c *DeviceFarm) CreateDevicePool(input *CreateDevicePoolInput) (*CreateDevicePoolOutput, error) { req, out := c.CreateDevicePoolRequest(input) err := req.Send() @@ -109,6 +110,7 @@ const opCreateProject = "CreateProject" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateProject func (c *DeviceFarm) CreateProjectRequest(input *CreateProjectInput) (req *request.Request, output *CreateProjectOutput) { op := &request.Operation{ Name: opCreateProject, @@ -120,9 +122,8 @@ func (c *DeviceFarm) CreateProjectRequest(input *CreateProjectInput) (req *reque input = &CreateProjectInput{} } - req = c.newRequest(op, input, output) output = &CreateProjectOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -138,18 +139,19 @@ func (c *DeviceFarm) CreateProjectRequest(input *CreateProjectInput) (req *reque // API operation CreateProject for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateProject func (c *DeviceFarm) CreateProject(input *CreateProjectInput) (*CreateProjectOutput, error) { req, out := c.CreateProjectRequest(input) err := req.Send() @@ -182,6 +184,7 @@ const opCreateRemoteAccessSession = "CreateRemoteAccessSession" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateRemoteAccessSession func (c *DeviceFarm) CreateRemoteAccessSessionRequest(input *CreateRemoteAccessSessionInput) (req *request.Request, output *CreateRemoteAccessSessionOutput) { op := &request.Operation{ Name: opCreateRemoteAccessSession, @@ -193,9 +196,8 @@ func (c *DeviceFarm) CreateRemoteAccessSessionRequest(input *CreateRemoteAccessS input = &CreateRemoteAccessSessionInput{} } - req = c.newRequest(op, input, output) output = &CreateRemoteAccessSessionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -211,18 +213,19 @@ func (c *DeviceFarm) CreateRemoteAccessSessionRequest(input *CreateRemoteAccessS // API operation CreateRemoteAccessSession for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateRemoteAccessSession func (c *DeviceFarm) CreateRemoteAccessSession(input *CreateRemoteAccessSessionInput) (*CreateRemoteAccessSessionOutput, error) { req, out := c.CreateRemoteAccessSessionRequest(input) err := req.Send() @@ -255,6 +258,7 @@ const opCreateUpload = "CreateUpload" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateUpload func (c *DeviceFarm) CreateUploadRequest(input *CreateUploadInput) (req *request.Request, output *CreateUploadOutput) { op := &request.Operation{ Name: opCreateUpload, @@ -266,9 +270,8 @@ func (c *DeviceFarm) CreateUploadRequest(input *CreateUploadInput) (req *request input = &CreateUploadInput{} } - req = c.newRequest(op, input, output) output = &CreateUploadOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -284,18 +287,19 @@ func (c *DeviceFarm) CreateUploadRequest(input *CreateUploadInput) (req *request // API operation CreateUpload for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateUpload func (c *DeviceFarm) CreateUpload(input *CreateUploadInput) (*CreateUploadOutput, error) { req, out := c.CreateUploadRequest(input) err := req.Send() @@ -328,6 +332,7 @@ const opDeleteDevicePool = "DeleteDevicePool" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteDevicePool func (c *DeviceFarm) DeleteDevicePoolRequest(input *DeleteDevicePoolInput) (req *request.Request, output *DeleteDevicePoolOutput) { op := &request.Operation{ Name: opDeleteDevicePool, @@ -339,9 +344,8 @@ func (c *DeviceFarm) DeleteDevicePoolRequest(input *DeleteDevicePoolInput) (req input = &DeleteDevicePoolInput{} } - req = c.newRequest(op, input, output) output = &DeleteDevicePoolOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -358,18 +362,19 @@ func (c *DeviceFarm) DeleteDevicePoolRequest(input *DeleteDevicePoolInput) (req // API operation DeleteDevicePool for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteDevicePool func (c *DeviceFarm) DeleteDevicePool(input *DeleteDevicePoolInput) (*DeleteDevicePoolOutput, error) { req, out := c.DeleteDevicePoolRequest(input) err := req.Send() @@ -402,6 +407,7 @@ const opDeleteProject = "DeleteProject" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteProject func (c *DeviceFarm) DeleteProjectRequest(input *DeleteProjectInput) (req *request.Request, output *DeleteProjectOutput) { op := &request.Operation{ Name: opDeleteProject, @@ -413,9 +419,8 @@ func (c *DeviceFarm) DeleteProjectRequest(input *DeleteProjectInput) (req *reque input = &DeleteProjectInput{} } - req = c.newRequest(op, input, output) output = &DeleteProjectOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -423,7 +428,7 @@ func (c *DeviceFarm) DeleteProjectRequest(input *DeleteProjectInput) (req *reque // // Deletes an AWS Device Farm project, given the project ARN. // -// Note Deleting this resource does not stop an in-progress run. +// Note Deleting this resource does not stop an in-progress run. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -433,18 +438,19 @@ func (c *DeviceFarm) DeleteProjectRequest(input *DeleteProjectInput) (req *reque // API operation DeleteProject for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteProject func (c *DeviceFarm) DeleteProject(input *DeleteProjectInput) (*DeleteProjectOutput, error) { req, out := c.DeleteProjectRequest(input) err := req.Send() @@ -477,6 +483,7 @@ const opDeleteRemoteAccessSession = "DeleteRemoteAccessSession" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteRemoteAccessSession func (c *DeviceFarm) DeleteRemoteAccessSessionRequest(input *DeleteRemoteAccessSessionInput) (req *request.Request, output *DeleteRemoteAccessSessionOutput) { op := &request.Operation{ Name: opDeleteRemoteAccessSession, @@ -488,9 +495,8 @@ func (c *DeviceFarm) DeleteRemoteAccessSessionRequest(input *DeleteRemoteAccessS input = &DeleteRemoteAccessSessionInput{} } - req = c.newRequest(op, input, output) output = &DeleteRemoteAccessSessionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -506,18 +512,19 @@ func (c *DeviceFarm) DeleteRemoteAccessSessionRequest(input *DeleteRemoteAccessS // API operation DeleteRemoteAccessSession for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteRemoteAccessSession func (c *DeviceFarm) DeleteRemoteAccessSession(input *DeleteRemoteAccessSessionInput) (*DeleteRemoteAccessSessionOutput, error) { req, out := c.DeleteRemoteAccessSessionRequest(input) err := req.Send() @@ -550,6 +557,7 @@ const opDeleteRun = "DeleteRun" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteRun func (c *DeviceFarm) DeleteRunRequest(input *DeleteRunInput) (req *request.Request, output *DeleteRunOutput) { op := &request.Operation{ Name: opDeleteRun, @@ -561,9 +569,8 @@ func (c *DeviceFarm) DeleteRunRequest(input *DeleteRunInput) (req *request.Reque input = &DeleteRunInput{} } - req = c.newRequest(op, input, output) output = &DeleteRunOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -571,7 +578,7 @@ func (c *DeviceFarm) DeleteRunRequest(input *DeleteRunInput) (req *request.Reque // // Deletes the run, given the run ARN. // -// Note Deleting this resource does not stop an in-progress run. +// Note Deleting this resource does not stop an in-progress run. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -581,18 +588,19 @@ func (c *DeviceFarm) DeleteRunRequest(input *DeleteRunInput) (req *request.Reque // API operation DeleteRun for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteRun func (c *DeviceFarm) DeleteRun(input *DeleteRunInput) (*DeleteRunOutput, error) { req, out := c.DeleteRunRequest(input) err := req.Send() @@ -625,6 +633,7 @@ const opDeleteUpload = "DeleteUpload" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteUpload func (c *DeviceFarm) DeleteUploadRequest(input *DeleteUploadInput) (req *request.Request, output *DeleteUploadOutput) { op := &request.Operation{ Name: opDeleteUpload, @@ -636,9 +645,8 @@ func (c *DeviceFarm) DeleteUploadRequest(input *DeleteUploadInput) (req *request input = &DeleteUploadInput{} } - req = c.newRequest(op, input, output) output = &DeleteUploadOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -654,18 +662,19 @@ func (c *DeviceFarm) DeleteUploadRequest(input *DeleteUploadInput) (req *request // API operation DeleteUpload for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteUpload func (c *DeviceFarm) DeleteUpload(input *DeleteUploadInput) (*DeleteUploadOutput, error) { req, out := c.DeleteUploadRequest(input) err := req.Send() @@ -698,6 +707,7 @@ const opGetAccountSettings = "GetAccountSettings" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetAccountSettings func (c *DeviceFarm) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req *request.Request, output *GetAccountSettingsOutput) { op := &request.Operation{ Name: opGetAccountSettings, @@ -709,9 +719,8 @@ func (c *DeviceFarm) GetAccountSettingsRequest(input *GetAccountSettingsInput) ( input = &GetAccountSettingsInput{} } - req = c.newRequest(op, input, output) output = &GetAccountSettingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -728,18 +737,19 @@ func (c *DeviceFarm) GetAccountSettingsRequest(input *GetAccountSettingsInput) ( // API operation GetAccountSettings for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetAccountSettings func (c *DeviceFarm) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error) { req, out := c.GetAccountSettingsRequest(input) err := req.Send() @@ -772,6 +782,7 @@ const opGetDevice = "GetDevice" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevice func (c *DeviceFarm) GetDeviceRequest(input *GetDeviceInput) (req *request.Request, output *GetDeviceOutput) { op := &request.Operation{ Name: opGetDevice, @@ -783,9 +794,8 @@ func (c *DeviceFarm) GetDeviceRequest(input *GetDeviceInput) (req *request.Reque input = &GetDeviceInput{} } - req = c.newRequest(op, input, output) output = &GetDeviceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -801,18 +811,19 @@ func (c *DeviceFarm) GetDeviceRequest(input *GetDeviceInput) (req *request.Reque // API operation GetDevice for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevice func (c *DeviceFarm) GetDevice(input *GetDeviceInput) (*GetDeviceOutput, error) { req, out := c.GetDeviceRequest(input) err := req.Send() @@ -845,6 +856,7 @@ const opGetDevicePool = "GetDevicePool" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevicePool func (c *DeviceFarm) GetDevicePoolRequest(input *GetDevicePoolInput) (req *request.Request, output *GetDevicePoolOutput) { op := &request.Operation{ Name: opGetDevicePool, @@ -856,9 +868,8 @@ func (c *DeviceFarm) GetDevicePoolRequest(input *GetDevicePoolInput) (req *reque input = &GetDevicePoolInput{} } - req = c.newRequest(op, input, output) output = &GetDevicePoolOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -874,18 +885,19 @@ func (c *DeviceFarm) GetDevicePoolRequest(input *GetDevicePoolInput) (req *reque // API operation GetDevicePool for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevicePool func (c *DeviceFarm) GetDevicePool(input *GetDevicePoolInput) (*GetDevicePoolOutput, error) { req, out := c.GetDevicePoolRequest(input) err := req.Send() @@ -918,6 +930,7 @@ const opGetDevicePoolCompatibility = "GetDevicePoolCompatibility" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevicePoolCompatibility func (c *DeviceFarm) GetDevicePoolCompatibilityRequest(input *GetDevicePoolCompatibilityInput) (req *request.Request, output *GetDevicePoolCompatibilityOutput) { op := &request.Operation{ Name: opGetDevicePoolCompatibility, @@ -929,9 +942,8 @@ func (c *DeviceFarm) GetDevicePoolCompatibilityRequest(input *GetDevicePoolCompa input = &GetDevicePoolCompatibilityInput{} } - req = c.newRequest(op, input, output) output = &GetDevicePoolCompatibilityOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -947,18 +959,19 @@ func (c *DeviceFarm) GetDevicePoolCompatibilityRequest(input *GetDevicePoolCompa // API operation GetDevicePoolCompatibility for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevicePoolCompatibility func (c *DeviceFarm) GetDevicePoolCompatibility(input *GetDevicePoolCompatibilityInput) (*GetDevicePoolCompatibilityOutput, error) { req, out := c.GetDevicePoolCompatibilityRequest(input) err := req.Send() @@ -991,6 +1004,7 @@ const opGetJob = "GetJob" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetJob func (c *DeviceFarm) GetJobRequest(input *GetJobInput) (req *request.Request, output *GetJobOutput) { op := &request.Operation{ Name: opGetJob, @@ -1002,9 +1016,8 @@ func (c *DeviceFarm) GetJobRequest(input *GetJobInput) (req *request.Request, ou input = &GetJobInput{} } - req = c.newRequest(op, input, output) output = &GetJobOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1020,18 +1033,19 @@ func (c *DeviceFarm) GetJobRequest(input *GetJobInput) (req *request.Request, ou // API operation GetJob for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetJob func (c *DeviceFarm) GetJob(input *GetJobInput) (*GetJobOutput, error) { req, out := c.GetJobRequest(input) err := req.Send() @@ -1064,6 +1078,7 @@ const opGetOfferingStatus = "GetOfferingStatus" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetOfferingStatus func (c *DeviceFarm) GetOfferingStatusRequest(input *GetOfferingStatusInput) (req *request.Request, output *GetOfferingStatusOutput) { op := &request.Operation{ Name: opGetOfferingStatus, @@ -1081,9 +1096,8 @@ func (c *DeviceFarm) GetOfferingStatusRequest(input *GetOfferingStatusInput) (re input = &GetOfferingStatusInput{} } - req = c.newRequest(op, input, output) output = &GetOfferingStatusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1104,22 +1118,23 @@ func (c *DeviceFarm) GetOfferingStatusRequest(input *GetOfferingStatusInput) (re // API operation GetOfferingStatus for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * NotEligibleException +// * ErrCodeNotEligibleException "NotEligibleException" // Exception gets thrown when a user is not eligible to perform the specified // transaction. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetOfferingStatus func (c *DeviceFarm) GetOfferingStatus(input *GetOfferingStatusInput) (*GetOfferingStatusOutput, error) { req, out := c.GetOfferingStatusRequest(input) err := req.Send() @@ -1177,6 +1192,7 @@ const opGetProject = "GetProject" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetProject func (c *DeviceFarm) GetProjectRequest(input *GetProjectInput) (req *request.Request, output *GetProjectOutput) { op := &request.Operation{ Name: opGetProject, @@ -1188,9 +1204,8 @@ func (c *DeviceFarm) GetProjectRequest(input *GetProjectInput) (req *request.Req input = &GetProjectInput{} } - req = c.newRequest(op, input, output) output = &GetProjectOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1206,18 +1221,19 @@ func (c *DeviceFarm) GetProjectRequest(input *GetProjectInput) (req *request.Req // API operation GetProject for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetProject func (c *DeviceFarm) GetProject(input *GetProjectInput) (*GetProjectOutput, error) { req, out := c.GetProjectRequest(input) err := req.Send() @@ -1250,6 +1266,7 @@ const opGetRemoteAccessSession = "GetRemoteAccessSession" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetRemoteAccessSession func (c *DeviceFarm) GetRemoteAccessSessionRequest(input *GetRemoteAccessSessionInput) (req *request.Request, output *GetRemoteAccessSessionOutput) { op := &request.Operation{ Name: opGetRemoteAccessSession, @@ -1261,9 +1278,8 @@ func (c *DeviceFarm) GetRemoteAccessSessionRequest(input *GetRemoteAccessSession input = &GetRemoteAccessSessionInput{} } - req = c.newRequest(op, input, output) output = &GetRemoteAccessSessionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1279,18 +1295,19 @@ func (c *DeviceFarm) GetRemoteAccessSessionRequest(input *GetRemoteAccessSession // API operation GetRemoteAccessSession for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetRemoteAccessSession func (c *DeviceFarm) GetRemoteAccessSession(input *GetRemoteAccessSessionInput) (*GetRemoteAccessSessionOutput, error) { req, out := c.GetRemoteAccessSessionRequest(input) err := req.Send() @@ -1323,6 +1340,7 @@ const opGetRun = "GetRun" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetRun func (c *DeviceFarm) GetRunRequest(input *GetRunInput) (req *request.Request, output *GetRunOutput) { op := &request.Operation{ Name: opGetRun, @@ -1334,9 +1352,8 @@ func (c *DeviceFarm) GetRunRequest(input *GetRunInput) (req *request.Request, ou input = &GetRunInput{} } - req = c.newRequest(op, input, output) output = &GetRunOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1352,18 +1369,19 @@ func (c *DeviceFarm) GetRunRequest(input *GetRunInput) (req *request.Request, ou // API operation GetRun for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetRun func (c *DeviceFarm) GetRun(input *GetRunInput) (*GetRunOutput, error) { req, out := c.GetRunRequest(input) err := req.Send() @@ -1396,6 +1414,7 @@ const opGetSuite = "GetSuite" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetSuite func (c *DeviceFarm) GetSuiteRequest(input *GetSuiteInput) (req *request.Request, output *GetSuiteOutput) { op := &request.Operation{ Name: opGetSuite, @@ -1407,9 +1426,8 @@ func (c *DeviceFarm) GetSuiteRequest(input *GetSuiteInput) (req *request.Request input = &GetSuiteInput{} } - req = c.newRequest(op, input, output) output = &GetSuiteOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1425,18 +1443,19 @@ func (c *DeviceFarm) GetSuiteRequest(input *GetSuiteInput) (req *request.Request // API operation GetSuite for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetSuite func (c *DeviceFarm) GetSuite(input *GetSuiteInput) (*GetSuiteOutput, error) { req, out := c.GetSuiteRequest(input) err := req.Send() @@ -1469,6 +1488,7 @@ const opGetTest = "GetTest" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetTest func (c *DeviceFarm) GetTestRequest(input *GetTestInput) (req *request.Request, output *GetTestOutput) { op := &request.Operation{ Name: opGetTest, @@ -1480,9 +1500,8 @@ func (c *DeviceFarm) GetTestRequest(input *GetTestInput) (req *request.Request, input = &GetTestInput{} } - req = c.newRequest(op, input, output) output = &GetTestOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1498,18 +1517,19 @@ func (c *DeviceFarm) GetTestRequest(input *GetTestInput) (req *request.Request, // API operation GetTest for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetTest func (c *DeviceFarm) GetTest(input *GetTestInput) (*GetTestOutput, error) { req, out := c.GetTestRequest(input) err := req.Send() @@ -1542,6 +1562,7 @@ const opGetUpload = "GetUpload" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetUpload func (c *DeviceFarm) GetUploadRequest(input *GetUploadInput) (req *request.Request, output *GetUploadOutput) { op := &request.Operation{ Name: opGetUpload, @@ -1553,9 +1574,8 @@ func (c *DeviceFarm) GetUploadRequest(input *GetUploadInput) (req *request.Reque input = &GetUploadInput{} } - req = c.newRequest(op, input, output) output = &GetUploadOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1571,18 +1591,19 @@ func (c *DeviceFarm) GetUploadRequest(input *GetUploadInput) (req *request.Reque // API operation GetUpload for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetUpload func (c *DeviceFarm) GetUpload(input *GetUploadInput) (*GetUploadOutput, error) { req, out := c.GetUploadRequest(input) err := req.Send() @@ -1615,6 +1636,7 @@ const opInstallToRemoteAccessSession = "InstallToRemoteAccessSession" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/InstallToRemoteAccessSession func (c *DeviceFarm) InstallToRemoteAccessSessionRequest(input *InstallToRemoteAccessSessionInput) (req *request.Request, output *InstallToRemoteAccessSessionOutput) { op := &request.Operation{ Name: opInstallToRemoteAccessSession, @@ -1626,9 +1648,8 @@ func (c *DeviceFarm) InstallToRemoteAccessSessionRequest(input *InstallToRemoteA input = &InstallToRemoteAccessSessionInput{} } - req = c.newRequest(op, input, output) output = &InstallToRemoteAccessSessionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1646,18 +1667,19 @@ func (c *DeviceFarm) InstallToRemoteAccessSessionRequest(input *InstallToRemoteA // API operation InstallToRemoteAccessSession for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/InstallToRemoteAccessSession func (c *DeviceFarm) InstallToRemoteAccessSession(input *InstallToRemoteAccessSessionInput) (*InstallToRemoteAccessSessionOutput, error) { req, out := c.InstallToRemoteAccessSessionRequest(input) err := req.Send() @@ -1690,6 +1712,7 @@ const opListArtifacts = "ListArtifacts" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListArtifacts func (c *DeviceFarm) ListArtifactsRequest(input *ListArtifactsInput) (req *request.Request, output *ListArtifactsOutput) { op := &request.Operation{ Name: opListArtifacts, @@ -1707,9 +1730,8 @@ func (c *DeviceFarm) ListArtifactsRequest(input *ListArtifactsInput) (req *reque input = &ListArtifactsInput{} } - req = c.newRequest(op, input, output) output = &ListArtifactsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1725,18 +1747,19 @@ func (c *DeviceFarm) ListArtifactsRequest(input *ListArtifactsInput) (req *reque // API operation ListArtifacts for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListArtifacts func (c *DeviceFarm) ListArtifacts(input *ListArtifactsInput) (*ListArtifactsOutput, error) { req, out := c.ListArtifactsRequest(input) err := req.Send() @@ -1794,6 +1817,7 @@ const opListDevicePools = "ListDevicePools" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListDevicePools func (c *DeviceFarm) ListDevicePoolsRequest(input *ListDevicePoolsInput) (req *request.Request, output *ListDevicePoolsOutput) { op := &request.Operation{ Name: opListDevicePools, @@ -1811,9 +1835,8 @@ func (c *DeviceFarm) ListDevicePoolsRequest(input *ListDevicePoolsInput) (req *r input = &ListDevicePoolsInput{} } - req = c.newRequest(op, input, output) output = &ListDevicePoolsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1829,18 +1852,19 @@ func (c *DeviceFarm) ListDevicePoolsRequest(input *ListDevicePoolsInput) (req *r // API operation ListDevicePools for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListDevicePools func (c *DeviceFarm) ListDevicePools(input *ListDevicePoolsInput) (*ListDevicePoolsOutput, error) { req, out := c.ListDevicePoolsRequest(input) err := req.Send() @@ -1898,6 +1922,7 @@ const opListDevices = "ListDevices" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListDevices func (c *DeviceFarm) ListDevicesRequest(input *ListDevicesInput) (req *request.Request, output *ListDevicesOutput) { op := &request.Operation{ Name: opListDevices, @@ -1915,9 +1940,8 @@ func (c *DeviceFarm) ListDevicesRequest(input *ListDevicesInput) (req *request.R input = &ListDevicesInput{} } - req = c.newRequest(op, input, output) output = &ListDevicesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1933,18 +1957,19 @@ func (c *DeviceFarm) ListDevicesRequest(input *ListDevicesInput) (req *request.R // API operation ListDevices for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListDevices func (c *DeviceFarm) ListDevices(input *ListDevicesInput) (*ListDevicesOutput, error) { req, out := c.ListDevicesRequest(input) err := req.Send() @@ -2002,6 +2027,7 @@ const opListJobs = "ListJobs" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListJobs func (c *DeviceFarm) ListJobsRequest(input *ListJobsInput) (req *request.Request, output *ListJobsOutput) { op := &request.Operation{ Name: opListJobs, @@ -2019,9 +2045,8 @@ func (c *DeviceFarm) ListJobsRequest(input *ListJobsInput) (req *request.Request input = &ListJobsInput{} } - req = c.newRequest(op, input, output) output = &ListJobsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2037,18 +2062,19 @@ func (c *DeviceFarm) ListJobsRequest(input *ListJobsInput) (req *request.Request // API operation ListJobs for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListJobs func (c *DeviceFarm) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) { req, out := c.ListJobsRequest(input) err := req.Send() @@ -2106,6 +2132,7 @@ const opListOfferingTransactions = "ListOfferingTransactions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListOfferingTransactions func (c *DeviceFarm) ListOfferingTransactionsRequest(input *ListOfferingTransactionsInput) (req *request.Request, output *ListOfferingTransactionsOutput) { op := &request.Operation{ Name: opListOfferingTransactions, @@ -2123,9 +2150,8 @@ func (c *DeviceFarm) ListOfferingTransactionsRequest(input *ListOfferingTransact input = &ListOfferingTransactionsInput{} } - req = c.newRequest(op, input, output) output = &ListOfferingTransactionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2146,22 +2172,23 @@ func (c *DeviceFarm) ListOfferingTransactionsRequest(input *ListOfferingTransact // API operation ListOfferingTransactions for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * NotEligibleException +// * ErrCodeNotEligibleException "NotEligibleException" // Exception gets thrown when a user is not eligible to perform the specified // transaction. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListOfferingTransactions func (c *DeviceFarm) ListOfferingTransactions(input *ListOfferingTransactionsInput) (*ListOfferingTransactionsOutput, error) { req, out := c.ListOfferingTransactionsRequest(input) err := req.Send() @@ -2219,6 +2246,7 @@ const opListOfferings = "ListOfferings" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListOfferings func (c *DeviceFarm) ListOfferingsRequest(input *ListOfferingsInput) (req *request.Request, output *ListOfferingsOutput) { op := &request.Operation{ Name: opListOfferings, @@ -2236,9 +2264,8 @@ func (c *DeviceFarm) ListOfferingsRequest(input *ListOfferingsInput) (req *reque input = &ListOfferingsInput{} } - req = c.newRequest(op, input, output) output = &ListOfferingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2259,22 +2286,23 @@ func (c *DeviceFarm) ListOfferingsRequest(input *ListOfferingsInput) (req *reque // API operation ListOfferings for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * NotEligibleException +// * ErrCodeNotEligibleException "NotEligibleException" // Exception gets thrown when a user is not eligible to perform the specified // transaction. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListOfferings func (c *DeviceFarm) ListOfferings(input *ListOfferingsInput) (*ListOfferingsOutput, error) { req, out := c.ListOfferingsRequest(input) err := req.Send() @@ -2332,6 +2360,7 @@ const opListProjects = "ListProjects" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListProjects func (c *DeviceFarm) ListProjectsRequest(input *ListProjectsInput) (req *request.Request, output *ListProjectsOutput) { op := &request.Operation{ Name: opListProjects, @@ -2349,9 +2378,8 @@ func (c *DeviceFarm) ListProjectsRequest(input *ListProjectsInput) (req *request input = &ListProjectsInput{} } - req = c.newRequest(op, input, output) output = &ListProjectsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2367,18 +2395,19 @@ func (c *DeviceFarm) ListProjectsRequest(input *ListProjectsInput) (req *request // API operation ListProjects for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListProjects func (c *DeviceFarm) ListProjects(input *ListProjectsInput) (*ListProjectsOutput, error) { req, out := c.ListProjectsRequest(input) err := req.Send() @@ -2436,6 +2465,7 @@ const opListRemoteAccessSessions = "ListRemoteAccessSessions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListRemoteAccessSessions func (c *DeviceFarm) ListRemoteAccessSessionsRequest(input *ListRemoteAccessSessionsInput) (req *request.Request, output *ListRemoteAccessSessionsOutput) { op := &request.Operation{ Name: opListRemoteAccessSessions, @@ -2447,9 +2477,8 @@ func (c *DeviceFarm) ListRemoteAccessSessionsRequest(input *ListRemoteAccessSess input = &ListRemoteAccessSessionsInput{} } - req = c.newRequest(op, input, output) output = &ListRemoteAccessSessionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2465,18 +2494,19 @@ func (c *DeviceFarm) ListRemoteAccessSessionsRequest(input *ListRemoteAccessSess // API operation ListRemoteAccessSessions for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListRemoteAccessSessions func (c *DeviceFarm) ListRemoteAccessSessions(input *ListRemoteAccessSessionsInput) (*ListRemoteAccessSessionsOutput, error) { req, out := c.ListRemoteAccessSessionsRequest(input) err := req.Send() @@ -2509,6 +2539,7 @@ const opListRuns = "ListRuns" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListRuns func (c *DeviceFarm) ListRunsRequest(input *ListRunsInput) (req *request.Request, output *ListRunsOutput) { op := &request.Operation{ Name: opListRuns, @@ -2526,9 +2557,8 @@ func (c *DeviceFarm) ListRunsRequest(input *ListRunsInput) (req *request.Request input = &ListRunsInput{} } - req = c.newRequest(op, input, output) output = &ListRunsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2544,18 +2574,19 @@ func (c *DeviceFarm) ListRunsRequest(input *ListRunsInput) (req *request.Request // API operation ListRuns for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListRuns func (c *DeviceFarm) ListRuns(input *ListRunsInput) (*ListRunsOutput, error) { req, out := c.ListRunsRequest(input) err := req.Send() @@ -2613,6 +2644,7 @@ const opListSamples = "ListSamples" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListSamples func (c *DeviceFarm) ListSamplesRequest(input *ListSamplesInput) (req *request.Request, output *ListSamplesOutput) { op := &request.Operation{ Name: opListSamples, @@ -2630,9 +2662,8 @@ func (c *DeviceFarm) ListSamplesRequest(input *ListSamplesInput) (req *request.R input = &ListSamplesInput{} } - req = c.newRequest(op, input, output) output = &ListSamplesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2648,18 +2679,19 @@ func (c *DeviceFarm) ListSamplesRequest(input *ListSamplesInput) (req *request.R // API operation ListSamples for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListSamples func (c *DeviceFarm) ListSamples(input *ListSamplesInput) (*ListSamplesOutput, error) { req, out := c.ListSamplesRequest(input) err := req.Send() @@ -2717,6 +2749,7 @@ const opListSuites = "ListSuites" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListSuites func (c *DeviceFarm) ListSuitesRequest(input *ListSuitesInput) (req *request.Request, output *ListSuitesOutput) { op := &request.Operation{ Name: opListSuites, @@ -2734,9 +2767,8 @@ func (c *DeviceFarm) ListSuitesRequest(input *ListSuitesInput) (req *request.Req input = &ListSuitesInput{} } - req = c.newRequest(op, input, output) output = &ListSuitesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2752,18 +2784,19 @@ func (c *DeviceFarm) ListSuitesRequest(input *ListSuitesInput) (req *request.Req // API operation ListSuites for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListSuites func (c *DeviceFarm) ListSuites(input *ListSuitesInput) (*ListSuitesOutput, error) { req, out := c.ListSuitesRequest(input) err := req.Send() @@ -2821,6 +2854,7 @@ const opListTests = "ListTests" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListTests func (c *DeviceFarm) ListTestsRequest(input *ListTestsInput) (req *request.Request, output *ListTestsOutput) { op := &request.Operation{ Name: opListTests, @@ -2838,9 +2872,8 @@ func (c *DeviceFarm) ListTestsRequest(input *ListTestsInput) (req *request.Reque input = &ListTestsInput{} } - req = c.newRequest(op, input, output) output = &ListTestsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2856,18 +2889,19 @@ func (c *DeviceFarm) ListTestsRequest(input *ListTestsInput) (req *request.Reque // API operation ListTests for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListTests func (c *DeviceFarm) ListTests(input *ListTestsInput) (*ListTestsOutput, error) { req, out := c.ListTestsRequest(input) err := req.Send() @@ -2925,6 +2959,7 @@ const opListUniqueProblems = "ListUniqueProblems" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListUniqueProblems func (c *DeviceFarm) ListUniqueProblemsRequest(input *ListUniqueProblemsInput) (req *request.Request, output *ListUniqueProblemsOutput) { op := &request.Operation{ Name: opListUniqueProblems, @@ -2942,9 +2977,8 @@ func (c *DeviceFarm) ListUniqueProblemsRequest(input *ListUniqueProblemsInput) ( input = &ListUniqueProblemsInput{} } - req = c.newRequest(op, input, output) output = &ListUniqueProblemsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2960,18 +2994,19 @@ func (c *DeviceFarm) ListUniqueProblemsRequest(input *ListUniqueProblemsInput) ( // API operation ListUniqueProblems for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListUniqueProblems func (c *DeviceFarm) ListUniqueProblems(input *ListUniqueProblemsInput) (*ListUniqueProblemsOutput, error) { req, out := c.ListUniqueProblemsRequest(input) err := req.Send() @@ -3029,6 +3064,7 @@ const opListUploads = "ListUploads" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListUploads func (c *DeviceFarm) ListUploadsRequest(input *ListUploadsInput) (req *request.Request, output *ListUploadsOutput) { op := &request.Operation{ Name: opListUploads, @@ -3046,9 +3082,8 @@ func (c *DeviceFarm) ListUploadsRequest(input *ListUploadsInput) (req *request.R input = &ListUploadsInput{} } - req = c.newRequest(op, input, output) output = &ListUploadsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3064,18 +3099,19 @@ func (c *DeviceFarm) ListUploadsRequest(input *ListUploadsInput) (req *request.R // API operation ListUploads for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListUploads func (c *DeviceFarm) ListUploads(input *ListUploadsInput) (*ListUploadsOutput, error) { req, out := c.ListUploadsRequest(input) err := req.Send() @@ -3133,6 +3169,7 @@ const opPurchaseOffering = "PurchaseOffering" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/PurchaseOffering func (c *DeviceFarm) PurchaseOfferingRequest(input *PurchaseOfferingInput) (req *request.Request, output *PurchaseOfferingOutput) { op := &request.Operation{ Name: opPurchaseOffering, @@ -3144,9 +3181,8 @@ func (c *DeviceFarm) PurchaseOfferingRequest(input *PurchaseOfferingInput) (req input = &PurchaseOfferingInput{} } - req = c.newRequest(op, input, output) output = &PurchaseOfferingOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3167,22 +3203,23 @@ func (c *DeviceFarm) PurchaseOfferingRequest(input *PurchaseOfferingInput) (req // API operation PurchaseOffering for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * NotEligibleException +// * ErrCodeNotEligibleException "NotEligibleException" // Exception gets thrown when a user is not eligible to perform the specified // transaction. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/PurchaseOffering func (c *DeviceFarm) PurchaseOffering(input *PurchaseOfferingInput) (*PurchaseOfferingOutput, error) { req, out := c.PurchaseOfferingRequest(input) err := req.Send() @@ -3215,6 +3252,7 @@ const opRenewOffering = "RenewOffering" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/RenewOffering func (c *DeviceFarm) RenewOfferingRequest(input *RenewOfferingInput) (req *request.Request, output *RenewOfferingOutput) { op := &request.Operation{ Name: opRenewOffering, @@ -3226,9 +3264,8 @@ func (c *DeviceFarm) RenewOfferingRequest(input *RenewOfferingInput) (req *reque input = &RenewOfferingInput{} } - req = c.newRequest(op, input, output) output = &RenewOfferingOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3248,22 +3285,23 @@ func (c *DeviceFarm) RenewOfferingRequest(input *RenewOfferingInput) (req *reque // API operation RenewOffering for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * NotEligibleException +// * ErrCodeNotEligibleException "NotEligibleException" // Exception gets thrown when a user is not eligible to perform the specified // transaction. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/RenewOffering func (c *DeviceFarm) RenewOffering(input *RenewOfferingInput) (*RenewOfferingOutput, error) { req, out := c.RenewOfferingRequest(input) err := req.Send() @@ -3296,6 +3334,7 @@ const opScheduleRun = "ScheduleRun" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ScheduleRun func (c *DeviceFarm) ScheduleRunRequest(input *ScheduleRunInput) (req *request.Request, output *ScheduleRunOutput) { op := &request.Operation{ Name: opScheduleRun, @@ -3307,9 +3346,8 @@ func (c *DeviceFarm) ScheduleRunRequest(input *ScheduleRunInput) (req *request.R input = &ScheduleRunInput{} } - req = c.newRequest(op, input, output) output = &ScheduleRunOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3325,21 +3363,22 @@ func (c *DeviceFarm) ScheduleRunRequest(input *ScheduleRunInput) (req *request.R // API operation ScheduleRun for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * IdempotencyException +// * ErrCodeIdempotencyException "IdempotencyException" // An entity with the same name already exists. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ScheduleRun func (c *DeviceFarm) ScheduleRun(input *ScheduleRunInput) (*ScheduleRunOutput, error) { req, out := c.ScheduleRunRequest(input) err := req.Send() @@ -3372,6 +3411,7 @@ const opStopRemoteAccessSession = "StopRemoteAccessSession" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/StopRemoteAccessSession func (c *DeviceFarm) StopRemoteAccessSessionRequest(input *StopRemoteAccessSessionInput) (req *request.Request, output *StopRemoteAccessSessionOutput) { op := &request.Operation{ Name: opStopRemoteAccessSession, @@ -3383,9 +3423,8 @@ func (c *DeviceFarm) StopRemoteAccessSessionRequest(input *StopRemoteAccessSessi input = &StopRemoteAccessSessionInput{} } - req = c.newRequest(op, input, output) output = &StopRemoteAccessSessionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3401,18 +3440,19 @@ func (c *DeviceFarm) StopRemoteAccessSessionRequest(input *StopRemoteAccessSessi // API operation StopRemoteAccessSession for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/StopRemoteAccessSession func (c *DeviceFarm) StopRemoteAccessSession(input *StopRemoteAccessSessionInput) (*StopRemoteAccessSessionOutput, error) { req, out := c.StopRemoteAccessSessionRequest(input) err := req.Send() @@ -3445,6 +3485,7 @@ const opStopRun = "StopRun" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/StopRun func (c *DeviceFarm) StopRunRequest(input *StopRunInput) (req *request.Request, output *StopRunOutput) { op := &request.Operation{ Name: opStopRun, @@ -3456,9 +3497,8 @@ func (c *DeviceFarm) StopRunRequest(input *StopRunInput) (req *request.Request, input = &StopRunInput{} } - req = c.newRequest(op, input, output) output = &StopRunOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3479,18 +3519,19 @@ func (c *DeviceFarm) StopRunRequest(input *StopRunInput) (req *request.Request, // API operation StopRun for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/StopRun func (c *DeviceFarm) StopRun(input *StopRunInput) (*StopRunOutput, error) { req, out := c.StopRunRequest(input) err := req.Send() @@ -3523,6 +3564,7 @@ const opUpdateDevicePool = "UpdateDevicePool" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateDevicePool func (c *DeviceFarm) UpdateDevicePoolRequest(input *UpdateDevicePoolInput) (req *request.Request, output *UpdateDevicePoolOutput) { op := &request.Operation{ Name: opUpdateDevicePool, @@ -3534,9 +3576,8 @@ func (c *DeviceFarm) UpdateDevicePoolRequest(input *UpdateDevicePoolInput) (req input = &UpdateDevicePoolInput{} } - req = c.newRequest(op, input, output) output = &UpdateDevicePoolOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3554,18 +3595,19 @@ func (c *DeviceFarm) UpdateDevicePoolRequest(input *UpdateDevicePoolInput) (req // API operation UpdateDevicePool for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateDevicePool func (c *DeviceFarm) UpdateDevicePool(input *UpdateDevicePoolInput) (*UpdateDevicePoolOutput, error) { req, out := c.UpdateDevicePoolRequest(input) err := req.Send() @@ -3598,6 +3640,7 @@ const opUpdateProject = "UpdateProject" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateProject func (c *DeviceFarm) UpdateProjectRequest(input *UpdateProjectInput) (req *request.Request, output *UpdateProjectOutput) { op := &request.Operation{ Name: opUpdateProject, @@ -3609,9 +3652,8 @@ func (c *DeviceFarm) UpdateProjectRequest(input *UpdateProjectInput) (req *reque input = &UpdateProjectInput{} } - req = c.newRequest(op, input, output) output = &UpdateProjectOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3627,18 +3669,19 @@ func (c *DeviceFarm) UpdateProjectRequest(input *UpdateProjectInput) (req *reque // API operation UpdateProject for usage and error information. // // Returned Error Codes: -// * ArgumentException +// * ErrCodeArgumentException "ArgumentException" // An invalid argument was specified. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The specified entity was not found. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // A limit was exceeded. // -// * ServiceAccountException +// * ErrCodeServiceAccountException "ServiceAccountException" // There was a problem with the service account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateProject func (c *DeviceFarm) UpdateProject(input *UpdateProjectInput) (*UpdateProjectOutput, error) { req, out := c.UpdateProjectRequest(input) err := req.Send() @@ -3646,6 +3689,7 @@ func (c *DeviceFarm) UpdateProject(input *UpdateProjectInput) (*UpdateProjectOut } // A container for account-level settings within AWS Device Farm. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/AccountSettings type AccountSettings struct { _ struct{} `type:"structure"` @@ -3670,7 +3714,26 @@ func (s AccountSettings) GoString() string { return s.String() } +// SetAwsAccountNumber sets the AwsAccountNumber field's value. +func (s *AccountSettings) SetAwsAccountNumber(v string) *AccountSettings { + s.AwsAccountNumber = &v + return s +} + +// SetUnmeteredDevices sets the UnmeteredDevices field's value. +func (s *AccountSettings) SetUnmeteredDevices(v map[string]*int64) *AccountSettings { + s.UnmeteredDevices = v + return s +} + +// SetUnmeteredRemoteAccessDevices sets the UnmeteredRemoteAccessDevices field's value. +func (s *AccountSettings) SetUnmeteredRemoteAccessDevices(v map[string]*int64) *AccountSettings { + s.UnmeteredRemoteAccessDevices = v + return s +} + // Represents the output of a test. Examples of artifacts include logs and screenshots. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Artifact type Artifact struct { _ struct{} `type:"structure"` @@ -3687,52 +3750,52 @@ type Artifact struct { // // Allowed values include the following: // - // UNKNOWN: An unknown type. + // * UNKNOWN: An unknown type. // - // SCREENSHOT: The screenshot type. + // * SCREENSHOT: The screenshot type. // - // DEVICE_LOG: The device log type. + // * DEVICE_LOG: The device log type. // - // MESSAGE_LOG: The message log type. + // * MESSAGE_LOG: The message log type. // - // RESULT_LOG: The result log type. + // * RESULT_LOG: The result log type. // - // SERVICE_LOG: The service log type. + // * SERVICE_LOG: The service log type. // - // WEBKIT_LOG: The web kit log type. + // * WEBKIT_LOG: The web kit log type. // - // INSTRUMENTATION_OUTPUT: The instrumentation type. + // * INSTRUMENTATION_OUTPUT: The instrumentation type. // - // EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by - // an Android fuzz test. + // * EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by + // an Android fuzz test. // - // CALABASH_JSON_OUTPUT: The Calabash JSON output type. + // * CALABASH_JSON_OUTPUT: The Calabash JSON output type. // - // CALABASH_PRETTY_OUTPUT: The Calabash pretty output type. + // * CALABASH_PRETTY_OUTPUT: The Calabash pretty output type. // - // CALABASH_STANDARD_OUTPUT: The Calabash standard output type. + // * CALABASH_STANDARD_OUTPUT: The Calabash standard output type. // - // CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type. + // * CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type. // - // AUTOMATION_OUTPUT: The automation output type. + // * AUTOMATION_OUTPUT: The automation output type. // - // APPIUM_SERVER_OUTPUT: The Appium server output type. + // * APPIUM_SERVER_OUTPUT: The Appium server output type. // - // APPIUM_JAVA_OUTPUT: The Appium Java output type. + // * APPIUM_JAVA_OUTPUT: The Appium Java output type. // - // APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type. + // * APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type. // - // APPIUM_PYTHON_OUTPUT: The Appium Python output type. + // * APPIUM_PYTHON_OUTPUT: The Appium Python output type. // - // APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type. + // * APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type. // - // EXPLORER_EVENT_LOG: The Explorer event log output type. + // * EXPLORER_EVENT_LOG: The Explorer event log output type. // - // EXPLORER_SUMMARY_LOG: The Explorer summary log output type. + // * EXPLORER_SUMMARY_LOG: The Explorer summary log output type. // - // APPLICATION_CRASH_REPORT: The application crash report output type. + // * APPLICATION_CRASH_REPORT: The application crash report output type. // - // XCTEST_LOG: The XCode test output type. + // * XCTEST_LOG: The XCode test output type. Type *string `locationName:"type" type:"string" enum:"ArtifactType"` // The pre-signed Amazon S3 URL that can be used with a corresponding GET request @@ -3750,9 +3813,40 @@ func (s Artifact) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Artifact) SetArn(v string) *Artifact { + s.Arn = &v + return s +} + +// SetExtension sets the Extension field's value. +func (s *Artifact) SetExtension(v string) *Artifact { + s.Extension = &v + return s +} + +// SetName sets the Name field's value. +func (s *Artifact) SetName(v string) *Artifact { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *Artifact) SetType(v string) *Artifact { + s.Type = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *Artifact) SetUrl(v string) *Artifact { + s.Url = &v + return s +} + // Represents the amount of CPU that an app is using on a physical device. // // Note that this does not represent system-wide CPU usage. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CPU type CPU struct { _ struct{} `type:"structure"` @@ -3777,7 +3871,26 @@ func (s CPU) GoString() string { return s.String() } +// SetArchitecture sets the Architecture field's value. +func (s *CPU) SetArchitecture(v string) *CPU { + s.Architecture = &v + return s +} + +// SetClock sets the Clock field's value. +func (s *CPU) SetClock(v float64) *CPU { + s.Clock = &v + return s +} + +// SetFrequency sets the Frequency field's value. +func (s *CPU) SetFrequency(v string) *CPU { + s.Frequency = &v + return s +} + // Represents entity counters. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Counters type Counters struct { _ struct{} `type:"structure"` @@ -3813,7 +3926,50 @@ func (s Counters) GoString() string { return s.String() } +// SetErrored sets the Errored field's value. +func (s *Counters) SetErrored(v int64) *Counters { + s.Errored = &v + return s +} + +// SetFailed sets the Failed field's value. +func (s *Counters) SetFailed(v int64) *Counters { + s.Failed = &v + return s +} + +// SetPassed sets the Passed field's value. +func (s *Counters) SetPassed(v int64) *Counters { + s.Passed = &v + return s +} + +// SetSkipped sets the Skipped field's value. +func (s *Counters) SetSkipped(v int64) *Counters { + s.Skipped = &v + return s +} + +// SetStopped sets the Stopped field's value. +func (s *Counters) SetStopped(v int64) *Counters { + s.Stopped = &v + return s +} + +// SetTotal sets the Total field's value. +func (s *Counters) SetTotal(v int64) *Counters { + s.Total = &v + return s +} + +// SetWarned sets the Warned field's value. +func (s *Counters) SetWarned(v int64) *Counters { + s.Warned = &v + return s +} + // Represents a request to the create device pool operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateDevicePoolRequest type CreateDevicePoolInput struct { _ struct{} `type:"structure"` @@ -3868,7 +4024,32 @@ func (s *CreateDevicePoolInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateDevicePoolInput) SetDescription(v string) *CreateDevicePoolInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateDevicePoolInput) SetName(v string) *CreateDevicePoolInput { + s.Name = &v + return s +} + +// SetProjectArn sets the ProjectArn field's value. +func (s *CreateDevicePoolInput) SetProjectArn(v string) *CreateDevicePoolInput { + s.ProjectArn = &v + return s +} + +// SetRules sets the Rules field's value. +func (s *CreateDevicePoolInput) SetRules(v []*Rule) *CreateDevicePoolInput { + s.Rules = v + return s +} + // Represents the result of a create device pool request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateDevicePoolResult type CreateDevicePoolOutput struct { _ struct{} `type:"structure"` @@ -3886,7 +4067,14 @@ func (s CreateDevicePoolOutput) GoString() string { return s.String() } +// SetDevicePool sets the DevicePool field's value. +func (s *CreateDevicePoolOutput) SetDevicePool(v *DevicePool) *CreateDevicePoolOutput { + s.DevicePool = v + return s +} + // Represents a request to the create project operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateProjectRequest type CreateProjectInput struct { _ struct{} `type:"structure"` @@ -3919,7 +4107,14 @@ func (s *CreateProjectInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *CreateProjectInput) SetName(v string) *CreateProjectInput { + s.Name = &v + return s +} + // Represents the result of a create project request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateProjectResult type CreateProjectOutput struct { _ struct{} `type:"structure"` @@ -3937,8 +4132,15 @@ func (s CreateProjectOutput) GoString() string { return s.String() } +// SetProject sets the Project field's value. +func (s *CreateProjectOutput) SetProject(v *Project) *CreateProjectOutput { + s.Project = v + return s +} + // Creates the configuration settings for a remote access session, including // the device model and type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateRemoteAccessSessionConfiguration type CreateRemoteAccessSessionConfiguration struct { _ struct{} `type:"structure"` @@ -3956,7 +4158,14 @@ func (s CreateRemoteAccessSessionConfiguration) GoString() string { return s.String() } +// SetBillingMethod sets the BillingMethod field's value. +func (s *CreateRemoteAccessSessionConfiguration) SetBillingMethod(v string) *CreateRemoteAccessSessionConfiguration { + s.BillingMethod = &v + return s +} + // Creates and submits a request to start a remote access session. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateRemoteAccessSessionRequest type CreateRemoteAccessSessionInput struct { _ struct{} `type:"structure"` @@ -4011,7 +4220,32 @@ func (s *CreateRemoteAccessSessionInput) Validate() error { return nil } +// SetConfiguration sets the Configuration field's value. +func (s *CreateRemoteAccessSessionInput) SetConfiguration(v *CreateRemoteAccessSessionConfiguration) *CreateRemoteAccessSessionInput { + s.Configuration = v + return s +} + +// SetDeviceArn sets the DeviceArn field's value. +func (s *CreateRemoteAccessSessionInput) SetDeviceArn(v string) *CreateRemoteAccessSessionInput { + s.DeviceArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateRemoteAccessSessionInput) SetName(v string) *CreateRemoteAccessSessionInput { + s.Name = &v + return s +} + +// SetProjectArn sets the ProjectArn field's value. +func (s *CreateRemoteAccessSessionInput) SetProjectArn(v string) *CreateRemoteAccessSessionInput { + s.ProjectArn = &v + return s +} + // Represents the server response from a request to create a remote access session. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateRemoteAccessSessionResult type CreateRemoteAccessSessionOutput struct { _ struct{} `type:"structure"` @@ -4030,7 +4264,14 @@ func (s CreateRemoteAccessSessionOutput) GoString() string { return s.String() } +// SetRemoteAccessSession sets the RemoteAccessSession field's value. +func (s *CreateRemoteAccessSessionOutput) SetRemoteAccessSession(v *RemoteAccessSession) *CreateRemoteAccessSessionOutput { + s.RemoteAccessSession = v + return s +} + // Represents a request to the create upload operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateUploadRequest type CreateUploadInput struct { _ struct{} `type:"structure"` @@ -4054,42 +4295,43 @@ type CreateUploadInput struct { // // Must be one of the following values: // - // ANDROID_APP: An Android upload. + // * ANDROID_APP: An Android upload. // - // IOS_APP: An iOS upload. + // * IOS_APP: An iOS upload. // - // WEB_APP: A web appliction upload. + // * WEB_APP: A web appliction upload. // - // EXTERNAL_DATA: An external data upload. + // * EXTERNAL_DATA: An external data upload. // - // APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload. + // * APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload. // - // APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload. + // * APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package + // upload. // - // APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload. + // * APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload. // - // APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package - // upload. + // * APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package + // upload. // - // APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package - // upload. + // * APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package + // upload. // - // APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload. + // * APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload. // - // CALABASH_TEST_PACKAGE: A Calabash test package upload. + // * CALABASH_TEST_PACKAGE: A Calabash test package upload. // - // INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload. + // * INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload. // - // UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload. + // * UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload. // - // UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload. + // * UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload. // - // XCTEST_TEST_PACKAGE: An XCode test package upload. + // * XCTEST_TEST_PACKAGE: An XCode test package upload. // - // XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. + // * XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. // - // Note If you call CreateUpload with WEB_APP specified, AWS Device Farm - // throws an ArgumentException error. + // Note If you call CreateUpload with WEB_APP specified, AWS Device Farm throws + // an ArgumentException error. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"UploadType"` @@ -4127,7 +4369,32 @@ func (s *CreateUploadInput) Validate() error { return nil } +// SetContentType sets the ContentType field's value. +func (s *CreateUploadInput) SetContentType(v string) *CreateUploadInput { + s.ContentType = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateUploadInput) SetName(v string) *CreateUploadInput { + s.Name = &v + return s +} + +// SetProjectArn sets the ProjectArn field's value. +func (s *CreateUploadInput) SetProjectArn(v string) *CreateUploadInput { + s.ProjectArn = &v + return s +} + +// SetType sets the Type field's value. +func (s *CreateUploadInput) SetType(v string) *CreateUploadInput { + s.Type = &v + return s +} + // Represents the result of a create upload request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateUploadResult type CreateUploadOutput struct { _ struct{} `type:"structure"` @@ -4145,7 +4412,14 @@ func (s CreateUploadOutput) GoString() string { return s.String() } +// SetUpload sets the Upload field's value. +func (s *CreateUploadOutput) SetUpload(v *Upload) *CreateUploadOutput { + s.Upload = v + return s +} + // Represents a request to the delete device pool operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteDevicePoolRequest type DeleteDevicePoolInput struct { _ struct{} `type:"structure"` @@ -4182,7 +4456,14 @@ func (s *DeleteDevicePoolInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *DeleteDevicePoolInput) SetArn(v string) *DeleteDevicePoolInput { + s.Arn = &v + return s +} + // Represents the result of a delete device pool request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteDevicePoolResult type DeleteDevicePoolOutput struct { _ struct{} `type:"structure"` } @@ -4198,6 +4479,7 @@ func (s DeleteDevicePoolOutput) GoString() string { } // Represents a request to the delete project operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteProjectRequest type DeleteProjectInput struct { _ struct{} `type:"structure"` @@ -4234,7 +4516,14 @@ func (s *DeleteProjectInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *DeleteProjectInput) SetArn(v string) *DeleteProjectInput { + s.Arn = &v + return s +} + // Represents the result of a delete project request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteProjectResult type DeleteProjectOutput struct { _ struct{} `type:"structure"` } @@ -4250,6 +4539,7 @@ func (s DeleteProjectOutput) GoString() string { } // Represents the request to delete the specified remote access session. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteRemoteAccessSessionRequest type DeleteRemoteAccessSessionInput struct { _ struct{} `type:"structure"` @@ -4286,8 +4576,15 @@ func (s *DeleteRemoteAccessSessionInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *DeleteRemoteAccessSessionInput) SetArn(v string) *DeleteRemoteAccessSessionInput { + s.Arn = &v + return s +} + // The response from the server when a request is made to delete the remote // access session. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteRemoteAccessSessionResult type DeleteRemoteAccessSessionOutput struct { _ struct{} `type:"structure"` } @@ -4303,6 +4600,7 @@ func (s DeleteRemoteAccessSessionOutput) GoString() string { } // Represents a request to the delete run operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteRunRequest type DeleteRunInput struct { _ struct{} `type:"structure"` @@ -4338,7 +4636,14 @@ func (s *DeleteRunInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *DeleteRunInput) SetArn(v string) *DeleteRunInput { + s.Arn = &v + return s +} + // Represents the result of a delete run request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteRunResult type DeleteRunOutput struct { _ struct{} `type:"structure"` } @@ -4354,6 +4659,7 @@ func (s DeleteRunOutput) GoString() string { } // Represents a request to the delete upload operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteUploadRequest type DeleteUploadInput struct { _ struct{} `type:"structure"` @@ -4390,7 +4696,14 @@ func (s *DeleteUploadInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *DeleteUploadInput) SetArn(v string) *DeleteUploadInput { + s.Arn = &v + return s +} + // Represents the result of a delete upload request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteUploadResult type DeleteUploadOutput struct { _ struct{} `type:"structure"` } @@ -4406,6 +4719,7 @@ func (s DeleteUploadOutput) GoString() string { } // Represents a device type that an app is tested against. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Device type Device struct { _ struct{} `type:"structure"` @@ -4429,9 +4743,9 @@ type Device struct { // // Allowed values include: // - // PHONE: The phone form factor. + // * PHONE: The phone form factor. // - // TABLET: The tablet form factor. + // * TABLET: The tablet form factor. FormFactor *string `locationName:"formFactor" type:"string" enum:"DeviceFormFactor"` // The device's heap size, expressed in bytes. @@ -4459,9 +4773,9 @@ type Device struct { // // Allowed values include: // - // ANDROID: The Android platform. + // * ANDROID: The Android platform. // - // IOS: The iOS platform. + // * IOS: The iOS platform. Platform *string `locationName:"platform" type:"string" enum:"DevicePlatform"` // The device's radio. @@ -4485,8 +4799,111 @@ func (s Device) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Device) SetArn(v string) *Device { + s.Arn = &v + return s +} + +// SetCarrier sets the Carrier field's value. +func (s *Device) SetCarrier(v string) *Device { + s.Carrier = &v + return s +} + +// SetCpu sets the Cpu field's value. +func (s *Device) SetCpu(v *CPU) *Device { + s.Cpu = v + return s +} + +// SetFleetName sets the FleetName field's value. +func (s *Device) SetFleetName(v string) *Device { + s.FleetName = &v + return s +} + +// SetFleetType sets the FleetType field's value. +func (s *Device) SetFleetType(v string) *Device { + s.FleetType = &v + return s +} + +// SetFormFactor sets the FormFactor field's value. +func (s *Device) SetFormFactor(v string) *Device { + s.FormFactor = &v + return s +} + +// SetHeapSize sets the HeapSize field's value. +func (s *Device) SetHeapSize(v int64) *Device { + s.HeapSize = &v + return s +} + +// SetImage sets the Image field's value. +func (s *Device) SetImage(v string) *Device { + s.Image = &v + return s +} + +// SetManufacturer sets the Manufacturer field's value. +func (s *Device) SetManufacturer(v string) *Device { + s.Manufacturer = &v + return s +} + +// SetMemory sets the Memory field's value. +func (s *Device) SetMemory(v int64) *Device { + s.Memory = &v + return s +} + +// SetModel sets the Model field's value. +func (s *Device) SetModel(v string) *Device { + s.Model = &v + return s +} + +// SetName sets the Name field's value. +func (s *Device) SetName(v string) *Device { + s.Name = &v + return s +} + +// SetOs sets the Os field's value. +func (s *Device) SetOs(v string) *Device { + s.Os = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *Device) SetPlatform(v string) *Device { + s.Platform = &v + return s +} + +// SetRadio sets the Radio field's value. +func (s *Device) SetRadio(v string) *Device { + s.Radio = &v + return s +} + +// SetRemoteAccessEnabled sets the RemoteAccessEnabled field's value. +func (s *Device) SetRemoteAccessEnabled(v bool) *Device { + s.RemoteAccessEnabled = &v + return s +} + +// SetResolution sets the Resolution field's value. +func (s *Device) SetResolution(v *Resolution) *Device { + s.Resolution = v + return s +} + // Represents the total (metered or unmetered) minutes used by the resource // to run tests. Contains the sum of minutes consumed by all children. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeviceMinutes type DeviceMinutes struct { _ struct{} `type:"structure"` @@ -4513,7 +4930,26 @@ func (s DeviceMinutes) GoString() string { return s.String() } +// SetMetered sets the Metered field's value. +func (s *DeviceMinutes) SetMetered(v float64) *DeviceMinutes { + s.Metered = &v + return s +} + +// SetTotal sets the Total field's value. +func (s *DeviceMinutes) SetTotal(v float64) *DeviceMinutes { + s.Total = &v + return s +} + +// SetUnmetered sets the Unmetered field's value. +func (s *DeviceMinutes) SetUnmetered(v float64) *DeviceMinutes { + s.Unmetered = &v + return s +} + // Represents a collection of device types. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DevicePool type DevicePool struct { _ struct{} `type:"structure"` @@ -4533,10 +4969,10 @@ type DevicePool struct { // // Allowed values include: // - // CURATED: A device pool that is created and managed by AWS Device Farm. + // * CURATED: A device pool that is created and managed by AWS Device Farm. // - // PRIVATE: A device pool that is created and managed by the device pool - // developer. + // * PRIVATE: A device pool that is created and managed by the device pool + // developer. Type *string `locationName:"type" type:"string" enum:"DevicePoolType"` } @@ -4550,7 +4986,38 @@ func (s DevicePool) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *DevicePool) SetArn(v string) *DevicePool { + s.Arn = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DevicePool) SetDescription(v string) *DevicePool { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *DevicePool) SetName(v string) *DevicePool { + s.Name = &v + return s +} + +// SetRules sets the Rules field's value. +func (s *DevicePool) SetRules(v []*Rule) *DevicePool { + s.Rules = v + return s +} + +// SetType sets the Type field's value. +func (s *DevicePool) SetType(v string) *DevicePool { + s.Type = &v + return s +} + // Represents a device pool compatibility result. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DevicePoolCompatibilityResult type DevicePoolCompatibilityResult struct { _ struct{} `type:"structure"` @@ -4574,7 +5041,26 @@ func (s DevicePoolCompatibilityResult) GoString() string { return s.String() } +// SetCompatible sets the Compatible field's value. +func (s *DevicePoolCompatibilityResult) SetCompatible(v bool) *DevicePoolCompatibilityResult { + s.Compatible = &v + return s +} + +// SetDevice sets the Device field's value. +func (s *DevicePoolCompatibilityResult) SetDevice(v *Device) *DevicePoolCompatibilityResult { + s.Device = v + return s +} + +// SetIncompatibilityMessages sets the IncompatibilityMessages field's value. +func (s *DevicePoolCompatibilityResult) SetIncompatibilityMessages(v []*IncompatibilityMessage) *DevicePoolCompatibilityResult { + s.IncompatibilityMessages = v + return s +} + // Represents the request sent to retrieve the account settings. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetAccountSettingsRequest type GetAccountSettingsInput struct { _ struct{} `type:"structure"` } @@ -4591,6 +5077,7 @@ func (s GetAccountSettingsInput) GoString() string { // Represents the account settings return values from the GetAccountSettings // request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetAccountSettingsResult type GetAccountSettingsOutput struct { _ struct{} `type:"structure"` @@ -4608,7 +5095,14 @@ func (s GetAccountSettingsOutput) GoString() string { return s.String() } +// SetAccountSettings sets the AccountSettings field's value. +func (s *GetAccountSettingsOutput) SetAccountSettings(v *AccountSettings) *GetAccountSettingsOutput { + s.AccountSettings = v + return s +} + // Represents a request to the get device request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDeviceRequest type GetDeviceInput struct { _ struct{} `type:"structure"` @@ -4644,7 +5138,14 @@ func (s *GetDeviceInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *GetDeviceInput) SetArn(v string) *GetDeviceInput { + s.Arn = &v + return s +} + // Represents the result of a get device request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDeviceResult type GetDeviceOutput struct { _ struct{} `type:"structure"` @@ -4662,7 +5163,14 @@ func (s GetDeviceOutput) GoString() string { return s.String() } +// SetDevice sets the Device field's value. +func (s *GetDeviceOutput) SetDevice(v *Device) *GetDeviceOutput { + s.Device = v + return s +} + // Represents a request to the get device pool compatibility operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevicePoolCompatibilityRequest type GetDevicePoolCompatibilityInput struct { _ struct{} `type:"structure"` @@ -4678,34 +5186,35 @@ type GetDevicePoolCompatibilityInput struct { // // Allowed values include the following: // - // BUILTIN_FUZZ: The built-in fuzz type. + // * BUILTIN_FUZZ: The built-in fuzz type. // - // BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android - // app, interacting with it and capturing screenshots at the same time. + // * BUILTIN_EXPLORER: For Android, an app explorer that will traverse an + // Android app, interacting with it and capturing screenshots at the same + // time. // - // APPIUM_JAVA_JUNIT: The Appium Java JUnit type. + // * APPIUM_JAVA_JUNIT: The Appium Java JUnit type. // - // APPIUM_JAVA_TESTNG: The Appium Java TestNG type. + // * APPIUM_JAVA_TESTNG: The Appium Java TestNG type. // - // APPIUM_PYTHON: The Appium Python type. + // * APPIUM_PYTHON: The Appium Python type. // - // APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps. + // * APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps. // - // APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps. + // * APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps. // - // APPIUM_WEB_PYTHON: The Appium Python type for Web apps. + // * APPIUM_WEB_PYTHON: The Appium Python type for Web apps. // - // CALABASH: The Calabash type. + // * CALABASH: The Calabash type. // - // INSTRUMENTATION: The Instrumentation type. + // * INSTRUMENTATION: The Instrumentation type. // - // UIAUTOMATION: The uiautomation type. + // * UIAUTOMATION: The uiautomation type. // - // UIAUTOMATOR: The uiautomator type. + // * UIAUTOMATOR: The uiautomator type. // - // XCTEST: The XCode test type. + // * XCTEST: The XCode test type. // - // XCTEST_UI: The XCode UI test type. + // * XCTEST_UI: The XCode UI test type. TestType *string `locationName:"testType" type:"string" enum:"TestType"` } @@ -4738,7 +5247,26 @@ func (s *GetDevicePoolCompatibilityInput) Validate() error { return nil } +// SetAppArn sets the AppArn field's value. +func (s *GetDevicePoolCompatibilityInput) SetAppArn(v string) *GetDevicePoolCompatibilityInput { + s.AppArn = &v + return s +} + +// SetDevicePoolArn sets the DevicePoolArn field's value. +func (s *GetDevicePoolCompatibilityInput) SetDevicePoolArn(v string) *GetDevicePoolCompatibilityInput { + s.DevicePoolArn = &v + return s +} + +// SetTestType sets the TestType field's value. +func (s *GetDevicePoolCompatibilityInput) SetTestType(v string) *GetDevicePoolCompatibilityInput { + s.TestType = &v + return s +} + // Represents the result of describe device pool compatibility request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevicePoolCompatibilityResult type GetDevicePoolCompatibilityOutput struct { _ struct{} `type:"structure"` @@ -4759,7 +5287,20 @@ func (s GetDevicePoolCompatibilityOutput) GoString() string { return s.String() } +// SetCompatibleDevices sets the CompatibleDevices field's value. +func (s *GetDevicePoolCompatibilityOutput) SetCompatibleDevices(v []*DevicePoolCompatibilityResult) *GetDevicePoolCompatibilityOutput { + s.CompatibleDevices = v + return s +} + +// SetIncompatibleDevices sets the IncompatibleDevices field's value. +func (s *GetDevicePoolCompatibilityOutput) SetIncompatibleDevices(v []*DevicePoolCompatibilityResult) *GetDevicePoolCompatibilityOutput { + s.IncompatibleDevices = v + return s +} + // Represents a request to the get device pool operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevicePoolRequest type GetDevicePoolInput struct { _ struct{} `type:"structure"` @@ -4795,7 +5336,14 @@ func (s *GetDevicePoolInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *GetDevicePoolInput) SetArn(v string) *GetDevicePoolInput { + s.Arn = &v + return s +} + // Represents the result of a get device pool request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevicePoolResult type GetDevicePoolOutput struct { _ struct{} `type:"structure"` @@ -4813,7 +5361,14 @@ func (s GetDevicePoolOutput) GoString() string { return s.String() } +// SetDevicePool sets the DevicePool field's value. +func (s *GetDevicePoolOutput) SetDevicePool(v *DevicePool) *GetDevicePoolOutput { + s.DevicePool = v + return s +} + // Represents a request to the get job operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetJobRequest type GetJobInput struct { _ struct{} `type:"structure"` @@ -4849,7 +5404,14 @@ func (s *GetJobInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *GetJobInput) SetArn(v string) *GetJobInput { + s.Arn = &v + return s +} + // Represents the result of a get job request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetJobResult type GetJobOutput struct { _ struct{} `type:"structure"` @@ -4867,8 +5429,15 @@ func (s GetJobOutput) GoString() string { return s.String() } +// SetJob sets the Job field's value. +func (s *GetJobOutput) SetJob(v *Job) *GetJobOutput { + s.Job = v + return s +} + // Represents the request to retrieve the offering status for the specified // customer or account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetOfferingStatusRequest type GetOfferingStatusInput struct { _ struct{} `type:"structure"` @@ -4900,7 +5469,14 @@ func (s *GetOfferingStatusInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *GetOfferingStatusInput) SetNextToken(v string) *GetOfferingStatusInput { + s.NextToken = &v + return s +} + // Returns the status result for a device offering. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetOfferingStatusResult type GetOfferingStatusOutput struct { _ struct{} `type:"structure"` @@ -4925,7 +5501,26 @@ func (s GetOfferingStatusOutput) GoString() string { return s.String() } +// SetCurrent sets the Current field's value. +func (s *GetOfferingStatusOutput) SetCurrent(v map[string]*OfferingStatus) *GetOfferingStatusOutput { + s.Current = v + return s +} + +// SetNextPeriod sets the NextPeriod field's value. +func (s *GetOfferingStatusOutput) SetNextPeriod(v map[string]*OfferingStatus) *GetOfferingStatusOutput { + s.NextPeriod = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetOfferingStatusOutput) SetNextToken(v string) *GetOfferingStatusOutput { + s.NextToken = &v + return s +} + // Represents a request to the get project operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetProjectRequest type GetProjectInput struct { _ struct{} `type:"structure"` @@ -4961,7 +5556,14 @@ func (s *GetProjectInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *GetProjectInput) SetArn(v string) *GetProjectInput { + s.Arn = &v + return s +} + // Represents the result of a get project request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetProjectResult type GetProjectOutput struct { _ struct{} `type:"structure"` @@ -4980,8 +5582,15 @@ func (s GetProjectOutput) GoString() string { return s.String() } +// SetProject sets the Project field's value. +func (s *GetProjectOutput) SetProject(v *Project) *GetProjectOutput { + s.Project = v + return s +} + // Represents the request to get information about the specified remote access // session. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetRemoteAccessSessionRequest type GetRemoteAccessSessionInput struct { _ struct{} `type:"structure"` @@ -5018,8 +5627,15 @@ func (s *GetRemoteAccessSessionInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *GetRemoteAccessSessionInput) SetArn(v string) *GetRemoteAccessSessionInput { + s.Arn = &v + return s +} + // Represents the response from the server that lists detailed information about // the remote access session. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetRemoteAccessSessionResult type GetRemoteAccessSessionOutput struct { _ struct{} `type:"structure"` @@ -5037,7 +5653,14 @@ func (s GetRemoteAccessSessionOutput) GoString() string { return s.String() } +// SetRemoteAccessSession sets the RemoteAccessSession field's value. +func (s *GetRemoteAccessSessionOutput) SetRemoteAccessSession(v *RemoteAccessSession) *GetRemoteAccessSessionOutput { + s.RemoteAccessSession = v + return s +} + // Represents a request to the get run operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetRunRequest type GetRunInput struct { _ struct{} `type:"structure"` @@ -5073,7 +5696,14 @@ func (s *GetRunInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *GetRunInput) SetArn(v string) *GetRunInput { + s.Arn = &v + return s +} + // Represents the result of a get run request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetRunResult type GetRunOutput struct { _ struct{} `type:"structure"` @@ -5091,7 +5721,14 @@ func (s GetRunOutput) GoString() string { return s.String() } +// SetRun sets the Run field's value. +func (s *GetRunOutput) SetRun(v *Run) *GetRunOutput { + s.Run = v + return s +} + // Represents a request to the get suite operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetSuiteRequest type GetSuiteInput struct { _ struct{} `type:"structure"` @@ -5127,7 +5764,14 @@ func (s *GetSuiteInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *GetSuiteInput) SetArn(v string) *GetSuiteInput { + s.Arn = &v + return s +} + // Represents the result of a get suite request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetSuiteResult type GetSuiteOutput struct { _ struct{} `type:"structure"` @@ -5145,7 +5789,14 @@ func (s GetSuiteOutput) GoString() string { return s.String() } +// SetSuite sets the Suite field's value. +func (s *GetSuiteOutput) SetSuite(v *Suite) *GetSuiteOutput { + s.Suite = v + return s +} + // Represents a request to the get test operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetTestRequest type GetTestInput struct { _ struct{} `type:"structure"` @@ -5181,7 +5832,14 @@ func (s *GetTestInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *GetTestInput) SetArn(v string) *GetTestInput { + s.Arn = &v + return s +} + // Represents the result of a get test request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetTestResult type GetTestOutput struct { _ struct{} `type:"structure"` @@ -5199,7 +5857,14 @@ func (s GetTestOutput) GoString() string { return s.String() } +// SetTest sets the Test field's value. +func (s *GetTestOutput) SetTest(v *Test) *GetTestOutput { + s.Test = v + return s +} + // Represents a request to the get upload operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetUploadRequest type GetUploadInput struct { _ struct{} `type:"structure"` @@ -5235,7 +5900,14 @@ func (s *GetUploadInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *GetUploadInput) SetArn(v string) *GetUploadInput { + s.Arn = &v + return s +} + // Represents the result of a get upload request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetUploadResult type GetUploadOutput struct { _ struct{} `type:"structure"` @@ -5253,7 +5925,14 @@ func (s GetUploadOutput) GoString() string { return s.String() } +// SetUpload sets the Upload field's value. +func (s *GetUploadOutput) SetUpload(v *Upload) *GetUploadOutput { + s.Upload = v + return s +} + // Represents information about incompatibility. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/IncompatibilityMessage type IncompatibilityMessage struct { _ struct{} `type:"structure"` @@ -5264,13 +5943,13 @@ type IncompatibilityMessage struct { // // Allowed values include: // - // ARN: The ARN. + // * ARN: The ARN. // - // FORM_FACTOR: The form factor (for example, phone or tablet). + // * FORM_FACTOR: The form factor (for example, phone or tablet). // - // MANUFACTURER: The manufacturer. + // * MANUFACTURER: The manufacturer. // - // PLATFORM: The platform (for example, Android or iOS). + // * PLATFORM: The platform (for example, Android or iOS). Type *string `locationName:"type" type:"string" enum:"DeviceAttribute"` } @@ -5284,8 +5963,21 @@ func (s IncompatibilityMessage) GoString() string { return s.String() } +// SetMessage sets the Message field's value. +func (s *IncompatibilityMessage) SetMessage(v string) *IncompatibilityMessage { + s.Message = &v + return s +} + +// SetType sets the Type field's value. +func (s *IncompatibilityMessage) SetType(v string) *IncompatibilityMessage { + s.Type = &v + return s +} + // Represents the request to install an Android application (in .apk format) // or an iOS application (in .ipa format) as part of a remote access session. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/InstallToRemoteAccessSessionRequest type InstallToRemoteAccessSessionInput struct { _ struct{} `type:"structure"` @@ -5334,8 +6026,21 @@ func (s *InstallToRemoteAccessSessionInput) Validate() error { return nil } +// SetAppArn sets the AppArn field's value. +func (s *InstallToRemoteAccessSessionInput) SetAppArn(v string) *InstallToRemoteAccessSessionInput { + s.AppArn = &v + return s +} + +// SetRemoteAccessSessionArn sets the RemoteAccessSessionArn field's value. +func (s *InstallToRemoteAccessSessionInput) SetRemoteAccessSessionArn(v string) *InstallToRemoteAccessSessionInput { + s.RemoteAccessSessionArn = &v + return s +} + // Represents the response from the server after AWS Device Farm makes a request // to install to a remote access session. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/InstallToRemoteAccessSessionResult type InstallToRemoteAccessSessionOutput struct { _ struct{} `type:"structure"` @@ -5353,7 +6058,14 @@ func (s InstallToRemoteAccessSessionOutput) GoString() string { return s.String() } +// SetAppUpload sets the AppUpload field's value. +func (s *InstallToRemoteAccessSessionOutput) SetAppUpload(v *Upload) *InstallToRemoteAccessSessionOutput { + s.AppUpload = v + return s +} + // Represents a device. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Job type Job struct { _ struct{} `type:"structure"` @@ -5382,19 +6094,19 @@ type Job struct { // // Allowed values include: // - // PENDING: A pending condition. + // * PENDING: A pending condition. // - // PASSED: A passing condition. + // * PASSED: A passing condition. // - // WARNED: A warning condition. + // * WARNED: A warning condition. // - // FAILED: A failed condition. + // * FAILED: A failed condition. // - // SKIPPED: A skipped condition. + // * SKIPPED: A skipped condition. // - // ERRORED: An error condition. + // * ERRORED: An error condition. // - // STOPPED: A stopped condition. + // * STOPPED: A stopped condition. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"` // The job's start time. @@ -5404,23 +6116,23 @@ type Job struct { // // Allowed values include: // - // PENDING: A pending status. + // * PENDING: A pending status. // - // PENDING_CONCURRENCY: A pending concurrency status. + // * PENDING_CONCURRENCY: A pending concurrency status. // - // PENDING_DEVICE: A pending device status. + // * PENDING_DEVICE: A pending device status. // - // PROCESSING: A processing status. + // * PROCESSING: A processing status. // - // SCHEDULING: A scheduling status. + // * SCHEDULING: A scheduling status. // - // PREPARING: A preparing status. + // * PREPARING: A preparing status. // - // RUNNING: A running status. + // * RUNNING: A running status. // - // COMPLETED: A completed status. + // * COMPLETED: A completed status. // - // STOPPING: A stopping status. + // * STOPPING: A stopping status. Status *string `locationName:"status" type:"string" enum:"ExecutionStatus"` // The job's stop time. @@ -5430,34 +6142,35 @@ type Job struct { // // Allowed values include the following: // - // BUILTIN_FUZZ: The built-in fuzz type. + // * BUILTIN_FUZZ: The built-in fuzz type. // - // BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android - // app, interacting with it and capturing screenshots at the same time. + // * BUILTIN_EXPLORER: For Android, an app explorer that will traverse an + // Android app, interacting with it and capturing screenshots at the same + // time. // - // APPIUM_JAVA_JUNIT: The Appium Java JUnit type. + // * APPIUM_JAVA_JUNIT: The Appium Java JUnit type. // - // APPIUM_JAVA_TESTNG: The Appium Java TestNG type. + // * APPIUM_JAVA_TESTNG: The Appium Java TestNG type. // - // APPIUM_PYTHON: The Appium Python type. + // * APPIUM_PYTHON: The Appium Python type. // - // APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps. + // * APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps. // - // APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps. + // * APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps. // - // APPIUM_WEB_PYTHON: The Appium Python type for Web apps. + // * APPIUM_WEB_PYTHON: The Appium Python type for Web apps. // - // CALABASH: The Calabash type. + // * CALABASH: The Calabash type. // - // INSTRUMENTATION: The Instrumentation type. + // * INSTRUMENTATION: The Instrumentation type. // - // UIAUTOMATION: The uiautomation type. + // * UIAUTOMATION: The uiautomation type. // - // UIAUTOMATOR: The uiautomator type. + // * UIAUTOMATOR: The uiautomator type. // - // XCTEST: The XCode test type. + // * XCTEST: The XCode test type. // - // XCTEST_UI: The XCode UI test type. + // * XCTEST_UI: The XCode UI test type. Type *string `locationName:"type" type:"string" enum:"TestType"` } @@ -5471,7 +6184,80 @@ func (s Job) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Job) SetArn(v string) *Job { + s.Arn = &v + return s +} + +// SetCounters sets the Counters field's value. +func (s *Job) SetCounters(v *Counters) *Job { + s.Counters = v + return s +} + +// SetCreated sets the Created field's value. +func (s *Job) SetCreated(v time.Time) *Job { + s.Created = &v + return s +} + +// SetDevice sets the Device field's value. +func (s *Job) SetDevice(v *Device) *Job { + s.Device = v + return s +} + +// SetDeviceMinutes sets the DeviceMinutes field's value. +func (s *Job) SetDeviceMinutes(v *DeviceMinutes) *Job { + s.DeviceMinutes = v + return s +} + +// SetMessage sets the Message field's value. +func (s *Job) SetMessage(v string) *Job { + s.Message = &v + return s +} + +// SetName sets the Name field's value. +func (s *Job) SetName(v string) *Job { + s.Name = &v + return s +} + +// SetResult sets the Result field's value. +func (s *Job) SetResult(v string) *Job { + s.Result = &v + return s +} + +// SetStarted sets the Started field's value. +func (s *Job) SetStarted(v time.Time) *Job { + s.Started = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Job) SetStatus(v string) *Job { + s.Status = &v + return s +} + +// SetStopped sets the Stopped field's value. +func (s *Job) SetStopped(v time.Time) *Job { + s.Stopped = &v + return s +} + +// SetType sets the Type field's value. +func (s *Job) SetType(v string) *Job { + s.Type = &v + return s +} + // Represents a request to the list artifacts operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListArtifactsRequest type ListArtifactsInput struct { _ struct{} `type:"structure"` @@ -5488,11 +6274,11 @@ type ListArtifactsInput struct { // // Allowed values include: // - // FILE: The artifacts are files. + // * FILE: The artifacts are files. // - // LOG: The artifacts are logs. + // * LOG: The artifacts are logs. // - // SCREENSHOT: The artifacts are screenshots. + // * SCREENSHOT: The artifacts are screenshots. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"ArtifactCategory"` @@ -5530,7 +6316,26 @@ func (s *ListArtifactsInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *ListArtifactsInput) SetArn(v string) *ListArtifactsInput { + s.Arn = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListArtifactsInput) SetNextToken(v string) *ListArtifactsInput { + s.NextToken = &v + return s +} + +// SetType sets the Type field's value. +func (s *ListArtifactsInput) SetType(v string) *ListArtifactsInput { + s.Type = &v + return s +} + // Represents the result of a list artifacts operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListArtifactsResult type ListArtifactsOutput struct { _ struct{} `type:"structure"` @@ -5553,7 +6358,20 @@ func (s ListArtifactsOutput) GoString() string { return s.String() } +// SetArtifacts sets the Artifacts field's value. +func (s *ListArtifactsOutput) SetArtifacts(v []*Artifact) *ListArtifactsOutput { + s.Artifacts = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListArtifactsOutput) SetNextToken(v string) *ListArtifactsOutput { + s.NextToken = &v + return s +} + // Represents the result of a list device pools request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListDevicePoolsRequest type ListDevicePoolsInput struct { _ struct{} `type:"structure"` @@ -5570,10 +6388,10 @@ type ListDevicePoolsInput struct { // // Allowed values include: // - // CURATED: A device pool that is created and managed by AWS Device Farm. + // * CURATED: A device pool that is created and managed by AWS Device Farm. // - // PRIVATE: A device pool that is created and managed by the device pool - // developer. + // * PRIVATE: A device pool that is created and managed by the device pool + // developer. Type *string `locationName:"type" type:"string" enum:"DevicePoolType"` } @@ -5606,7 +6424,26 @@ func (s *ListDevicePoolsInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *ListDevicePoolsInput) SetArn(v string) *ListDevicePoolsInput { + s.Arn = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDevicePoolsInput) SetNextToken(v string) *ListDevicePoolsInput { + s.NextToken = &v + return s +} + +// SetType sets the Type field's value. +func (s *ListDevicePoolsInput) SetType(v string) *ListDevicePoolsInput { + s.Type = &v + return s +} + // Represents the result of a list device pools request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListDevicePoolsResult type ListDevicePoolsOutput struct { _ struct{} `type:"structure"` @@ -5629,7 +6466,20 @@ func (s ListDevicePoolsOutput) GoString() string { return s.String() } +// SetDevicePools sets the DevicePools field's value. +func (s *ListDevicePoolsOutput) SetDevicePools(v []*DevicePool) *ListDevicePoolsOutput { + s.DevicePools = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDevicePoolsOutput) SetNextToken(v string) *ListDevicePoolsOutput { + s.NextToken = &v + return s +} + // Represents the result of a list devices request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListDevicesRequest type ListDevicesInput struct { _ struct{} `type:"structure"` @@ -5667,7 +6517,20 @@ func (s *ListDevicesInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *ListDevicesInput) SetArn(v string) *ListDevicesInput { + s.Arn = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDevicesInput) SetNextToken(v string) *ListDevicesInput { + s.NextToken = &v + return s +} + // Represents the result of a list devices operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListDevicesResult type ListDevicesOutput struct { _ struct{} `type:"structure"` @@ -5690,7 +6553,20 @@ func (s ListDevicesOutput) GoString() string { return s.String() } +// SetDevices sets the Devices field's value. +func (s *ListDevicesOutput) SetDevices(v []*Device) *ListDevicesOutput { + s.Devices = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDevicesOutput) SetNextToken(v string) *ListDevicesOutput { + s.NextToken = &v + return s +} + // Represents a request to the list jobs operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListJobsRequest type ListJobsInput struct { _ struct{} `type:"structure"` @@ -5733,7 +6609,20 @@ func (s *ListJobsInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *ListJobsInput) SetArn(v string) *ListJobsInput { + s.Arn = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListJobsInput) SetNextToken(v string) *ListJobsInput { + s.NextToken = &v + return s +} + // Represents the result of a list jobs request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListJobsResult type ListJobsOutput struct { _ struct{} `type:"structure"` @@ -5756,7 +6645,20 @@ func (s ListJobsOutput) GoString() string { return s.String() } +// SetJobs sets the Jobs field's value. +func (s *ListJobsOutput) SetJobs(v []*Job) *ListJobsOutput { + s.Jobs = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListJobsOutput) SetNextToken(v string) *ListJobsOutput { + s.NextToken = &v + return s +} + // Represents the request to list the offering transaction history. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListOfferingTransactionsRequest type ListOfferingTransactionsInput struct { _ struct{} `type:"structure"` @@ -5788,7 +6690,14 @@ func (s *ListOfferingTransactionsInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *ListOfferingTransactionsInput) SetNextToken(v string) *ListOfferingTransactionsInput { + s.NextToken = &v + return s +} + // Returns the transaction log of the specified offerings. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListOfferingTransactionsResult type ListOfferingTransactionsOutput struct { _ struct{} `type:"structure"` @@ -5811,7 +6720,20 @@ func (s ListOfferingTransactionsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListOfferingTransactionsOutput) SetNextToken(v string) *ListOfferingTransactionsOutput { + s.NextToken = &v + return s +} + +// SetOfferingTransactions sets the OfferingTransactions field's value. +func (s *ListOfferingTransactionsOutput) SetOfferingTransactions(v []*OfferingTransaction) *ListOfferingTransactionsOutput { + s.OfferingTransactions = v + return s +} + // Represents the request to list all offerings. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListOfferingsRequest type ListOfferingsInput struct { _ struct{} `type:"structure"` @@ -5843,7 +6765,14 @@ func (s *ListOfferingsInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *ListOfferingsInput) SetNextToken(v string) *ListOfferingsInput { + s.NextToken = &v + return s +} + // Represents the return values of the list of offerings. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListOfferingsResult type ListOfferingsOutput struct { _ struct{} `type:"structure"` @@ -5865,7 +6794,20 @@ func (s ListOfferingsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListOfferingsOutput) SetNextToken(v string) *ListOfferingsOutput { + s.NextToken = &v + return s +} + +// SetOfferings sets the Offerings field's value. +func (s *ListOfferingsOutput) SetOfferings(v []*Offering) *ListOfferingsOutput { + s.Offerings = v + return s +} + // Represents a request to the list projects operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListProjectsRequest type ListProjectsInput struct { _ struct{} `type:"structure"` @@ -5905,7 +6847,20 @@ func (s *ListProjectsInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *ListProjectsInput) SetArn(v string) *ListProjectsInput { + s.Arn = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListProjectsInput) SetNextToken(v string) *ListProjectsInput { + s.NextToken = &v + return s +} + // Represents the result of a list projects request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListProjectsResult type ListProjectsOutput struct { _ struct{} `type:"structure"` @@ -5928,7 +6883,20 @@ func (s ListProjectsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListProjectsOutput) SetNextToken(v string) *ListProjectsOutput { + s.NextToken = &v + return s +} + +// SetProjects sets the Projects field's value. +func (s *ListProjectsOutput) SetProjects(v []*Project) *ListProjectsOutput { + s.Projects = v + return s +} + // Represents the request to return information about the remote access session. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListRemoteAccessSessionsRequest type ListRemoteAccessSessionsInput struct { _ struct{} `type:"structure"` @@ -5972,8 +6940,21 @@ func (s *ListRemoteAccessSessionsInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *ListRemoteAccessSessionsInput) SetArn(v string) *ListRemoteAccessSessionsInput { + s.Arn = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListRemoteAccessSessionsInput) SetNextToken(v string) *ListRemoteAccessSessionsInput { + s.NextToken = &v + return s +} + // Represents the response from the server after AWS Device Farm makes a request // to return information about the remote access session. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListRemoteAccessSessionsResult type ListRemoteAccessSessionsOutput struct { _ struct{} `type:"structure"` @@ -5996,7 +6977,20 @@ func (s ListRemoteAccessSessionsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListRemoteAccessSessionsOutput) SetNextToken(v string) *ListRemoteAccessSessionsOutput { + s.NextToken = &v + return s +} + +// SetRemoteAccessSessions sets the RemoteAccessSessions field's value. +func (s *ListRemoteAccessSessionsOutput) SetRemoteAccessSessions(v []*RemoteAccessSession) *ListRemoteAccessSessionsOutput { + s.RemoteAccessSessions = v + return s +} + // Represents a request to the list runs operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListRunsRequest type ListRunsInput struct { _ struct{} `type:"structure"` @@ -6040,7 +7034,20 @@ func (s *ListRunsInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *ListRunsInput) SetArn(v string) *ListRunsInput { + s.Arn = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListRunsInput) SetNextToken(v string) *ListRunsInput { + s.NextToken = &v + return s +} + // Represents the result of a list runs request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListRunsResult type ListRunsOutput struct { _ struct{} `type:"structure"` @@ -6063,7 +7070,20 @@ func (s ListRunsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListRunsOutput) SetNextToken(v string) *ListRunsOutput { + s.NextToken = &v + return s +} + +// SetRuns sets the Runs field's value. +func (s *ListRunsOutput) SetRuns(v []*Run) *ListRunsOutput { + s.Runs = v + return s +} + // Represents a request to the list samples operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListSamplesRequest type ListSamplesInput struct { _ struct{} `type:"structure"` @@ -6107,7 +7127,20 @@ func (s *ListSamplesInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *ListSamplesInput) SetArn(v string) *ListSamplesInput { + s.Arn = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSamplesInput) SetNextToken(v string) *ListSamplesInput { + s.NextToken = &v + return s +} + // Represents the result of a list samples request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListSamplesResult type ListSamplesOutput struct { _ struct{} `type:"structure"` @@ -6130,7 +7163,20 @@ func (s ListSamplesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListSamplesOutput) SetNextToken(v string) *ListSamplesOutput { + s.NextToken = &v + return s +} + +// SetSamples sets the Samples field's value. +func (s *ListSamplesOutput) SetSamples(v []*Sample) *ListSamplesOutput { + s.Samples = v + return s +} + // Represents a request to the list suites operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListSuitesRequest type ListSuitesInput struct { _ struct{} `type:"structure"` @@ -6173,7 +7219,20 @@ func (s *ListSuitesInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *ListSuitesInput) SetArn(v string) *ListSuitesInput { + s.Arn = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSuitesInput) SetNextToken(v string) *ListSuitesInput { + s.NextToken = &v + return s +} + // Represents the result of a list suites request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListSuitesResult type ListSuitesOutput struct { _ struct{} `type:"structure"` @@ -6196,7 +7255,20 @@ func (s ListSuitesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListSuitesOutput) SetNextToken(v string) *ListSuitesOutput { + s.NextToken = &v + return s +} + +// SetSuites sets the Suites field's value. +func (s *ListSuitesOutput) SetSuites(v []*Suite) *ListSuitesOutput { + s.Suites = v + return s +} + // Represents a request to the list tests operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListTestsRequest type ListTestsInput struct { _ struct{} `type:"structure"` @@ -6239,7 +7311,20 @@ func (s *ListTestsInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *ListTestsInput) SetArn(v string) *ListTestsInput { + s.Arn = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTestsInput) SetNextToken(v string) *ListTestsInput { + s.NextToken = &v + return s +} + // Represents the result of a list tests request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListTestsResult type ListTestsOutput struct { _ struct{} `type:"structure"` @@ -6262,7 +7347,20 @@ func (s ListTestsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListTestsOutput) SetNextToken(v string) *ListTestsOutput { + s.NextToken = &v + return s +} + +// SetTests sets the Tests field's value. +func (s *ListTestsOutput) SetTests(v []*Test) *ListTestsOutput { + s.Tests = v + return s +} + // Represents a request to the list unique problems operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListUniqueProblemsRequest type ListUniqueProblemsInput struct { _ struct{} `type:"structure"` @@ -6305,7 +7403,20 @@ func (s *ListUniqueProblemsInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *ListUniqueProblemsInput) SetArn(v string) *ListUniqueProblemsInput { + s.Arn = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUniqueProblemsInput) SetNextToken(v string) *ListUniqueProblemsInput { + s.NextToken = &v + return s +} + // Represents the result of a list unique problems request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListUniqueProblemsResult type ListUniqueProblemsOutput struct { _ struct{} `type:"structure"` @@ -6318,19 +7429,19 @@ type ListUniqueProblemsOutput struct { // // Allowed values include: // - // PENDING: A pending condition. + // * PENDING: A pending condition. // - // PASSED: A passing condition. + // * PASSED: A passing condition. // - // WARNED: A warning condition. + // * WARNED: A warning condition. // - // FAILED: A failed condition. + // * FAILED: A failed condition. // - // SKIPPED: A skipped condition. + // * SKIPPED: A skipped condition. // - // ERRORED: An error condition. + // * ERRORED: An error condition. // - // STOPPED: A stopped condition. + // * STOPPED: A stopped condition. UniqueProblems map[string][]*UniqueProblem `locationName:"uniqueProblems" type:"map"` } @@ -6344,7 +7455,20 @@ func (s ListUniqueProblemsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListUniqueProblemsOutput) SetNextToken(v string) *ListUniqueProblemsOutput { + s.NextToken = &v + return s +} + +// SetUniqueProblems sets the UniqueProblems field's value. +func (s *ListUniqueProblemsOutput) SetUniqueProblems(v map[string][]*UniqueProblem) *ListUniqueProblemsOutput { + s.UniqueProblems = v + return s +} + // Represents a request to the list uploads operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListUploadsRequest type ListUploadsInput struct { _ struct{} `type:"structure"` @@ -6388,7 +7512,20 @@ func (s *ListUploadsInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *ListUploadsInput) SetArn(v string) *ListUploadsInput { + s.Arn = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUploadsInput) SetNextToken(v string) *ListUploadsInput { + s.NextToken = &v + return s +} + // Represents the result of a list uploads request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListUploadsResult type ListUploadsOutput struct { _ struct{} `type:"structure"` @@ -6411,10 +7548,23 @@ func (s ListUploadsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListUploadsOutput) SetNextToken(v string) *ListUploadsOutput { + s.NextToken = &v + return s +} + +// SetUploads sets the Uploads field's value. +func (s *ListUploadsOutput) SetUploads(v []*Upload) *ListUploadsOutput { + s.Uploads = v + return s +} + // Represents a latitude and longitude pair, expressed in geographic coordinate // system degrees (for example 47.6204, -122.3491). // // Elevation is currently not supported. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Location type Location struct { _ struct{} `type:"structure"` @@ -6455,7 +7605,20 @@ func (s *Location) Validate() error { return nil } +// SetLatitude sets the Latitude field's value. +func (s *Location) SetLatitude(v float64) *Location { + s.Latitude = &v + return s +} + +// SetLongitude sets the Longitude field's value. +func (s *Location) SetLongitude(v float64) *Location { + s.Longitude = &v + return s +} + // A number representing the monetary amount for an offering or transaction. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/MonetaryAmount type MonetaryAmount struct { _ struct{} `type:"structure"` @@ -6476,7 +7639,20 @@ func (s MonetaryAmount) GoString() string { return s.String() } +// SetAmount sets the Amount field's value. +func (s *MonetaryAmount) SetAmount(v float64) *MonetaryAmount { + s.Amount = &v + return s +} + +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *MonetaryAmount) SetCurrencyCode(v string) *MonetaryAmount { + s.CurrencyCode = &v + return s +} + // Represents the metadata of a device offering. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Offering type Offering struct { _ struct{} `type:"structure"` @@ -6506,7 +7682,38 @@ func (s Offering) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *Offering) SetDescription(v string) *Offering { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *Offering) SetId(v string) *Offering { + s.Id = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *Offering) SetPlatform(v string) *Offering { + s.Platform = &v + return s +} + +// SetRecurringCharges sets the RecurringCharges field's value. +func (s *Offering) SetRecurringCharges(v []*RecurringCharge) *Offering { + s.RecurringCharges = v + return s +} + +// SetType sets the Type field's value. +func (s *Offering) SetType(v string) *Offering { + s.Type = &v + return s +} + // The status of the offering. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/OfferingStatus type OfferingStatus struct { _ struct{} `type:"structure"` @@ -6533,7 +7740,32 @@ func (s OfferingStatus) GoString() string { return s.String() } +// SetEffectiveOn sets the EffectiveOn field's value. +func (s *OfferingStatus) SetEffectiveOn(v time.Time) *OfferingStatus { + s.EffectiveOn = &v + return s +} + +// SetOffering sets the Offering field's value. +func (s *OfferingStatus) SetOffering(v *Offering) *OfferingStatus { + s.Offering = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *OfferingStatus) SetQuantity(v int64) *OfferingStatus { + s.Quantity = &v + return s +} + +// SetType sets the Type field's value. +func (s *OfferingStatus) SetType(v string) *OfferingStatus { + s.Type = &v + return s +} + // Represents the metadata of an offering transaction. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/OfferingTransaction type OfferingTransaction struct { _ struct{} `type:"structure"` @@ -6560,7 +7792,32 @@ func (s OfferingTransaction) GoString() string { return s.String() } +// SetCost sets the Cost field's value. +func (s *OfferingTransaction) SetCost(v *MonetaryAmount) *OfferingTransaction { + s.Cost = v + return s +} + +// SetCreatedOn sets the CreatedOn field's value. +func (s *OfferingTransaction) SetCreatedOn(v time.Time) *OfferingTransaction { + s.CreatedOn = &v + return s +} + +// SetOfferingStatus sets the OfferingStatus field's value. +func (s *OfferingTransaction) SetOfferingStatus(v *OfferingStatus) *OfferingTransaction { + s.OfferingStatus = v + return s +} + +// SetTransactionId sets the TransactionId field's value. +func (s *OfferingTransaction) SetTransactionId(v string) *OfferingTransaction { + s.TransactionId = &v + return s +} + // Represents a specific warning or failure. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Problem type Problem struct { _ struct{} `type:"structure"` @@ -6577,19 +7834,19 @@ type Problem struct { // // Allowed values include: // - // PENDING: A pending condition. + // * PENDING: A pending condition. // - // PASSED: A passing condition. + // * PASSED: A passing condition. // - // WARNED: A warning condition. + // * WARNED: A warning condition. // - // FAILED: A failed condition. + // * FAILED: A failed condition. // - // SKIPPED: A skipped condition. + // * SKIPPED: A skipped condition. // - // ERRORED: An error condition. + // * ERRORED: An error condition. // - // STOPPED: A stopped condition. + // * STOPPED: A stopped condition. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"` // Information about the associated run. @@ -6612,7 +7869,50 @@ func (s Problem) GoString() string { return s.String() } +// SetDevice sets the Device field's value. +func (s *Problem) SetDevice(v *Device) *Problem { + s.Device = v + return s +} + +// SetJob sets the Job field's value. +func (s *Problem) SetJob(v *ProblemDetail) *Problem { + s.Job = v + return s +} + +// SetMessage sets the Message field's value. +func (s *Problem) SetMessage(v string) *Problem { + s.Message = &v + return s +} + +// SetResult sets the Result field's value. +func (s *Problem) SetResult(v string) *Problem { + s.Result = &v + return s +} + +// SetRun sets the Run field's value. +func (s *Problem) SetRun(v *ProblemDetail) *Problem { + s.Run = v + return s +} + +// SetSuite sets the Suite field's value. +func (s *Problem) SetSuite(v *ProblemDetail) *Problem { + s.Suite = v + return s +} + +// SetTest sets the Test field's value. +func (s *Problem) SetTest(v *ProblemDetail) *Problem { + s.Test = v + return s +} + // Information about a problem detail. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ProblemDetail type ProblemDetail struct { _ struct{} `type:"structure"` @@ -6633,8 +7933,21 @@ func (s ProblemDetail) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *ProblemDetail) SetArn(v string) *ProblemDetail { + s.Arn = &v + return s +} + +// SetName sets the Name field's value. +func (s *ProblemDetail) SetName(v string) *ProblemDetail { + s.Name = &v + return s +} + // Represents an operating-system neutral workspace for running and managing // tests. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Project type Project struct { _ struct{} `type:"structure"` @@ -6658,7 +7971,26 @@ func (s Project) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Project) SetArn(v string) *Project { + s.Arn = &v + return s +} + +// SetCreated sets the Created field's value. +func (s *Project) SetCreated(v time.Time) *Project { + s.Created = &v + return s +} + +// SetName sets the Name field's value. +func (s *Project) SetName(v string) *Project { + s.Name = &v + return s +} + // Represents a request for a purchase offering. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/PurchaseOfferingRequest type PurchaseOfferingInput struct { _ struct{} `type:"structure"` @@ -6692,7 +8024,20 @@ func (s *PurchaseOfferingInput) Validate() error { return nil } +// SetOfferingId sets the OfferingId field's value. +func (s *PurchaseOfferingInput) SetOfferingId(v string) *PurchaseOfferingInput { + s.OfferingId = &v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *PurchaseOfferingInput) SetQuantity(v int64) *PurchaseOfferingInput { + s.Quantity = &v + return s +} + // The result of the purchase offering (e.g., success or failure). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/PurchaseOfferingResult type PurchaseOfferingOutput struct { _ struct{} `type:"structure"` @@ -6710,8 +8055,15 @@ func (s PurchaseOfferingOutput) GoString() string { return s.String() } +// SetOfferingTransaction sets the OfferingTransaction field's value. +func (s *PurchaseOfferingOutput) SetOfferingTransaction(v *OfferingTransaction) *PurchaseOfferingOutput { + s.OfferingTransaction = v + return s +} + // Represents the set of radios and their states on a device. Examples of radios // include Wi-Fi, GPS, Bluetooth, and NFC. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Radios type Radios struct { _ struct{} `type:"structure"` @@ -6738,7 +8090,32 @@ func (s Radios) GoString() string { return s.String() } +// SetBluetooth sets the Bluetooth field's value. +func (s *Radios) SetBluetooth(v bool) *Radios { + s.Bluetooth = &v + return s +} + +// SetGps sets the Gps field's value. +func (s *Radios) SetGps(v bool) *Radios { + s.Gps = &v + return s +} + +// SetNfc sets the Nfc field's value. +func (s *Radios) SetNfc(v bool) *Radios { + s.Nfc = &v + return s +} + +// SetWifi sets the Wifi field's value. +func (s *Radios) SetWifi(v bool) *Radios { + s.Wifi = &v + return s +} + // Specifies whether charges for devices will be recurring. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/RecurringCharge type RecurringCharge struct { _ struct{} `type:"structure"` @@ -6759,7 +8136,20 @@ func (s RecurringCharge) GoString() string { return s.String() } +// SetCost sets the Cost field's value. +func (s *RecurringCharge) SetCost(v *MonetaryAmount) *RecurringCharge { + s.Cost = v + return s +} + +// SetFrequency sets the Frequency field's value. +func (s *RecurringCharge) SetFrequency(v string) *RecurringCharge { + s.Frequency = &v + return s +} + // Represents information about the remote access session. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/RemoteAccessSession type RemoteAccessSession struct { _ struct{} `type:"structure"` @@ -6792,19 +8182,19 @@ type RemoteAccessSession struct { // The result of the remote access session. Can be any of the following: // - // PENDING: A pending condition. + // * PENDING: A pending condition. // - // PASSED: A passing condition. + // * PASSED: A passing condition. // - // WARNED: A warning condition. + // * WARNED: A warning condition. // - // FAILED: A failed condition. + // * FAILED: A failed condition. // - // SKIPPED: A skipped condition. + // * SKIPPED: A skipped condition. // - // ERRORED: An error condition. + // * ERRORED: An error condition. // - // STOPPED: A stopped condition. + // * STOPPED: A stopped condition. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"` // The date and time the remote access session was started. @@ -6812,23 +8202,23 @@ type RemoteAccessSession struct { // The status of the remote access session. Can be any of the following: // - // PENDING: A pending status. + // * PENDING: A pending status. // - // PENDING_CONCURRENCY: A pending concurrency status. + // * PENDING_CONCURRENCY: A pending concurrency status. // - // PENDING_DEVICE: A pending device status. + // * PENDING_DEVICE: A pending device status. // - // PROCESSING: A processing status. + // * PROCESSING: A processing status. // - // SCHEDULING: A scheduling status. + // * SCHEDULING: A scheduling status. // - // PREPARING: A preparing status. + // * PREPARING: A preparing status. // - // RUNNING: A running status. + // * RUNNING: A running status. // - // COMPLETED: A completed status. + // * COMPLETED: A completed status. // - // STOPPING: A stopping status. + // * STOPPING: A stopping status. Status *string `locationName:"status" type:"string" enum:"ExecutionStatus"` // The date and time the remote access session was stopped. @@ -6845,7 +8235,80 @@ func (s RemoteAccessSession) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *RemoteAccessSession) SetArn(v string) *RemoteAccessSession { + s.Arn = &v + return s +} + +// SetBillingMethod sets the BillingMethod field's value. +func (s *RemoteAccessSession) SetBillingMethod(v string) *RemoteAccessSession { + s.BillingMethod = &v + return s +} + +// SetCreated sets the Created field's value. +func (s *RemoteAccessSession) SetCreated(v time.Time) *RemoteAccessSession { + s.Created = &v + return s +} + +// SetDevice sets the Device field's value. +func (s *RemoteAccessSession) SetDevice(v *Device) *RemoteAccessSession { + s.Device = v + return s +} + +// SetDeviceMinutes sets the DeviceMinutes field's value. +func (s *RemoteAccessSession) SetDeviceMinutes(v *DeviceMinutes) *RemoteAccessSession { + s.DeviceMinutes = v + return s +} + +// SetEndpoint sets the Endpoint field's value. +func (s *RemoteAccessSession) SetEndpoint(v string) *RemoteAccessSession { + s.Endpoint = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *RemoteAccessSession) SetMessage(v string) *RemoteAccessSession { + s.Message = &v + return s +} + +// SetName sets the Name field's value. +func (s *RemoteAccessSession) SetName(v string) *RemoteAccessSession { + s.Name = &v + return s +} + +// SetResult sets the Result field's value. +func (s *RemoteAccessSession) SetResult(v string) *RemoteAccessSession { + s.Result = &v + return s +} + +// SetStarted sets the Started field's value. +func (s *RemoteAccessSession) SetStarted(v time.Time) *RemoteAccessSession { + s.Started = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *RemoteAccessSession) SetStatus(v string) *RemoteAccessSession { + s.Status = &v + return s +} + +// SetStopped sets the Stopped field's value. +func (s *RemoteAccessSession) SetStopped(v time.Time) *RemoteAccessSession { + s.Stopped = &v + return s +} + // A request representing an offering renewal. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/RenewOfferingRequest type RenewOfferingInput struct { _ struct{} `type:"structure"` @@ -6879,7 +8342,20 @@ func (s *RenewOfferingInput) Validate() error { return nil } +// SetOfferingId sets the OfferingId field's value. +func (s *RenewOfferingInput) SetOfferingId(v string) *RenewOfferingInput { + s.OfferingId = &v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *RenewOfferingInput) SetQuantity(v int64) *RenewOfferingInput { + s.Quantity = &v + return s +} + // The result of a renewal offering. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/RenewOfferingResult type RenewOfferingOutput struct { _ struct{} `type:"structure"` @@ -6897,8 +8373,15 @@ func (s RenewOfferingOutput) GoString() string { return s.String() } +// SetOfferingTransaction sets the OfferingTransaction field's value. +func (s *RenewOfferingOutput) SetOfferingTransaction(v *OfferingTransaction) *RenewOfferingOutput { + s.OfferingTransaction = v + return s +} + // Represents the screen resolution of a device in height and width, expressed // in pixels. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Resolution type Resolution struct { _ struct{} `type:"structure"` @@ -6919,7 +8402,20 @@ func (s Resolution) GoString() string { return s.String() } +// SetHeight sets the Height field's value. +func (s *Resolution) SetHeight(v int64) *Resolution { + s.Height = &v + return s +} + +// SetWidth sets the Width field's value. +func (s *Resolution) SetWidth(v int64) *Resolution { + s.Width = &v + return s +} + // Represents a condition for a device pool. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Rule type Rule struct { _ struct{} `type:"structure"` @@ -6927,26 +8423,26 @@ type Rule struct { // // Allowed values include: // - // ARN: The ARN. + // * ARN: The ARN. // - // FORM_FACTOR: The form factor (for example, phone or tablet). + // * FORM_FACTOR: The form factor (for example, phone or tablet). // - // MANUFACTURER: The manufacturer. + // * MANUFACTURER: The manufacturer. // - // PLATFORM: The platform (for example, Android or iOS). + // * PLATFORM: The platform (for example, Android or iOS). Attribute *string `locationName:"attribute" type:"string" enum:"DeviceAttribute"` // The rule's operator. // - // EQUALS: The equals operator. + // * EQUALS: The equals operator. // - // GREATER_THAN: The greater-than operator. + // * GREATER_THAN: The greater-than operator. // - // IN: The in operator. + // * IN: The in operator. // - // LESS_THAN: The less-than operator. + // * LESS_THAN: The less-than operator. // - // NOT_IN: The not-in operator. + // * NOT_IN: The not-in operator. Operator *string `locationName:"operator" type:"string" enum:"RuleOperator"` // The rule's value. @@ -6963,7 +8459,26 @@ func (s Rule) GoString() string { return s.String() } +// SetAttribute sets the Attribute field's value. +func (s *Rule) SetAttribute(v string) *Rule { + s.Attribute = &v + return s +} + +// SetOperator sets the Operator field's value. +func (s *Rule) SetOperator(v string) *Rule { + s.Operator = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Rule) SetValue(v string) *Rule { + s.Value = &v + return s +} + // Represents an app on a set of devices with a specific test and configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Run type Run struct { _ struct{} `type:"structure"` @@ -6996,28 +8511,28 @@ type Run struct { // // Allowed values include: // - // ANDROID: The Android platform. + // * ANDROID: The Android platform. // - // IOS: The iOS platform. + // * IOS: The iOS platform. Platform *string `locationName:"platform" type:"string" enum:"DevicePlatform"` // The run's result. // // Allowed values include: // - // PENDING: A pending condition. + // * PENDING: A pending condition. // - // PASSED: A passing condition. + // * PASSED: A passing condition. // - // WARNED: A warning condition. + // * WARNED: A warning condition. // - // FAILED: A failed condition. + // * FAILED: A failed condition. // - // SKIPPED: A skipped condition. + // * SKIPPED: A skipped condition. // - // ERRORED: An error condition. + // * ERRORED: An error condition. // - // STOPPED: A stopped condition. + // * STOPPED: A stopped condition. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"` // The run's start time. @@ -7027,23 +8542,23 @@ type Run struct { // // Allowed values include: // - // PENDING: A pending status. + // * PENDING: A pending status. // - // PENDING_CONCURRENCY: A pending concurrency status. + // * PENDING_CONCURRENCY: A pending concurrency status. // - // PENDING_DEVICE: A pending device status. + // * PENDING_DEVICE: A pending device status. // - // PROCESSING: A processing status. + // * PROCESSING: A processing status. // - // SCHEDULING: A scheduling status. + // * SCHEDULING: A scheduling status. // - // PREPARING: A preparing status. + // * PREPARING: A preparing status. // - // RUNNING: A running status. + // * RUNNING: A running status. // - // COMPLETED: A completed status. + // * COMPLETED: A completed status. // - // STOPPING: A stopping status. + // * STOPPING: A stopping status. Status *string `locationName:"status" type:"string" enum:"ExecutionStatus"` // The run's stop time. @@ -7056,34 +8571,35 @@ type Run struct { // // Must be one of the following values: // - // BUILTIN_FUZZ: The built-in fuzz type. + // * BUILTIN_FUZZ: The built-in fuzz type. // - // BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android - // app, interacting with it and capturing screenshots at the same time. + // * BUILTIN_EXPLORER: For Android, an app explorer that will traverse an + // Android app, interacting with it and capturing screenshots at the same + // time. // - // APPIUM_JAVA_JUNIT: The Appium Java JUnit type. + // * APPIUM_JAVA_JUNIT: The Appium Java JUnit type. // - // APPIUM_JAVA_TESTNG: The Appium Java TestNG type. + // * APPIUM_JAVA_TESTNG: The Appium Java TestNG type. // - // APPIUM_PYTHON: The Appium Python type. + // * APPIUM_PYTHON: The Appium Python type. // - // APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps. + // * APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps. // - // APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps. + // * APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps. // - // APPIUM_WEB_PYTHON: The Appium Python type for Web apps. + // * APPIUM_WEB_PYTHON: The Appium Python type for Web apps. // - // CALABASH: The Calabash type. + // * CALABASH: The Calabash type. // - // INSTRUMENTATION: The Instrumentation type. + // * INSTRUMENTATION: The Instrumentation type. // - // UIAUTOMATION: The uiautomation type. + // * UIAUTOMATION: The uiautomation type. // - // UIAUTOMATOR: The uiautomator type. + // * UIAUTOMATOR: The uiautomator type. // - // XCTEST: The XCode test type. + // * XCTEST: The XCode test type. // - // XCTEST_UI: The XCode UI test type. + // * XCTEST_UI: The XCode UI test type. Type *string `locationName:"type" type:"string" enum:"TestType"` } @@ -7097,7 +8613,98 @@ func (s Run) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Run) SetArn(v string) *Run { + s.Arn = &v + return s +} + +// SetBillingMethod sets the BillingMethod field's value. +func (s *Run) SetBillingMethod(v string) *Run { + s.BillingMethod = &v + return s +} + +// SetCompletedJobs sets the CompletedJobs field's value. +func (s *Run) SetCompletedJobs(v int64) *Run { + s.CompletedJobs = &v + return s +} + +// SetCounters sets the Counters field's value. +func (s *Run) SetCounters(v *Counters) *Run { + s.Counters = v + return s +} + +// SetCreated sets the Created field's value. +func (s *Run) SetCreated(v time.Time) *Run { + s.Created = &v + return s +} + +// SetDeviceMinutes sets the DeviceMinutes field's value. +func (s *Run) SetDeviceMinutes(v *DeviceMinutes) *Run { + s.DeviceMinutes = v + return s +} + +// SetMessage sets the Message field's value. +func (s *Run) SetMessage(v string) *Run { + s.Message = &v + return s +} + +// SetName sets the Name field's value. +func (s *Run) SetName(v string) *Run { + s.Name = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *Run) SetPlatform(v string) *Run { + s.Platform = &v + return s +} + +// SetResult sets the Result field's value. +func (s *Run) SetResult(v string) *Run { + s.Result = &v + return s +} + +// SetStarted sets the Started field's value. +func (s *Run) SetStarted(v time.Time) *Run { + s.Started = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Run) SetStatus(v string) *Run { + s.Status = &v + return s +} + +// SetStopped sets the Stopped field's value. +func (s *Run) SetStopped(v time.Time) *Run { + s.Stopped = &v + return s +} + +// SetTotalJobs sets the TotalJobs field's value. +func (s *Run) SetTotalJobs(v int64) *Run { + s.TotalJobs = &v + return s +} + +// SetType sets the Type field's value. +func (s *Run) SetType(v string) *Run { + s.Type = &v + return s +} + // Represents a sample of performance data. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Sample type Sample struct { _ struct{} `type:"structure"` @@ -7108,44 +8715,44 @@ type Sample struct { // // Must be one of the following values: // - // CPU: A CPU sample type. This is expressed as the app processing CPU time - // (including child processes) as reported by process, as a percentage. + // * CPU: A CPU sample type. This is expressed as the app processing CPU + // time (including child processes) as reported by process, as a percentage. // - // MEMORY: A memory usage sample type. This is expressed as the total proportional - // set size of an app process, in kilobytes. + // * MEMORY: A memory usage sample type. This is expressed as the total proportional + // set size of an app process, in kilobytes. // - // NATIVE_AVG_DRAWTIME + // * NATIVE_AVG_DRAWTIME // - // NATIVE_FPS + // * NATIVE_FPS // - // NATIVE_FRAMES + // * NATIVE_FRAMES // - // NATIVE_MAX_DRAWTIME + // * NATIVE_MAX_DRAWTIME // - // NATIVE_MIN_DRAWTIME + // * NATIVE_MIN_DRAWTIME // - // OPENGL_AVG_DRAWTIME + // * OPENGL_AVG_DRAWTIME // - // OPENGL_FPS + // * OPENGL_FPS // - // OPENGL_FRAMES + // * OPENGL_FRAMES // - // OPENGL_MAX_DRAWTIME + // * OPENGL_MAX_DRAWTIME // - // OPENGL_MIN_DRAWTIME + // * OPENGL_MIN_DRAWTIME // - // RX + // * RX // - // RX_RATE: The total number of bytes per second (TCP and UDP) that are sent, - // by app process. + // * RX_RATE: The total number of bytes per second (TCP and UDP) that are + // sent, by app process. // - // THREADS: A threads sample type. This is expressed as the total number - // of threads per app process. + // * THREADS: A threads sample type. This is expressed as the total number + // of threads per app process. // - // TX + // * TX // - // TX_RATE: The total number of bytes per second (TCP and UDP) that are received, - // by app process. + // * TX_RATE: The total number of bytes per second (TCP and UDP) that are + // received, by app process. Type *string `locationName:"type" type:"string" enum:"SampleType"` // The pre-signed Amazon S3 URL that can be used with a corresponding GET request @@ -7163,8 +8770,27 @@ func (s Sample) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Sample) SetArn(v string) *Sample { + s.Arn = &v + return s +} + +// SetType sets the Type field's value. +func (s *Sample) SetType(v string) *Sample { + s.Type = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *Sample) SetUrl(v string) *Sample { + s.Url = &v + return s +} + // Represents the settings for a run. Includes things like location, radio states, // auxiliary apps, and network profiles. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ScheduleRunConfiguration type ScheduleRunConfiguration struct { _ struct{} `type:"structure"` @@ -7224,7 +8850,50 @@ func (s *ScheduleRunConfiguration) Validate() error { return nil } +// SetAuxiliaryApps sets the AuxiliaryApps field's value. +func (s *ScheduleRunConfiguration) SetAuxiliaryApps(v []*string) *ScheduleRunConfiguration { + s.AuxiliaryApps = v + return s +} + +// SetBillingMethod sets the BillingMethod field's value. +func (s *ScheduleRunConfiguration) SetBillingMethod(v string) *ScheduleRunConfiguration { + s.BillingMethod = &v + return s +} + +// SetExtraDataPackageArn sets the ExtraDataPackageArn field's value. +func (s *ScheduleRunConfiguration) SetExtraDataPackageArn(v string) *ScheduleRunConfiguration { + s.ExtraDataPackageArn = &v + return s +} + +// SetLocale sets the Locale field's value. +func (s *ScheduleRunConfiguration) SetLocale(v string) *ScheduleRunConfiguration { + s.Locale = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *ScheduleRunConfiguration) SetLocation(v *Location) *ScheduleRunConfiguration { + s.Location = v + return s +} + +// SetNetworkProfileArn sets the NetworkProfileArn field's value. +func (s *ScheduleRunConfiguration) SetNetworkProfileArn(v string) *ScheduleRunConfiguration { + s.NetworkProfileArn = &v + return s +} + +// SetRadios sets the Radios field's value. +func (s *ScheduleRunConfiguration) SetRadios(v *Radios) *ScheduleRunConfiguration { + s.Radios = v + return s +} + // Represents a request to the schedule run operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ScheduleRunRequest type ScheduleRunInput struct { _ struct{} `type:"structure"` @@ -7301,7 +8970,44 @@ func (s *ScheduleRunInput) Validate() error { return nil } +// SetAppArn sets the AppArn field's value. +func (s *ScheduleRunInput) SetAppArn(v string) *ScheduleRunInput { + s.AppArn = &v + return s +} + +// SetConfiguration sets the Configuration field's value. +func (s *ScheduleRunInput) SetConfiguration(v *ScheduleRunConfiguration) *ScheduleRunInput { + s.Configuration = v + return s +} + +// SetDevicePoolArn sets the DevicePoolArn field's value. +func (s *ScheduleRunInput) SetDevicePoolArn(v string) *ScheduleRunInput { + s.DevicePoolArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *ScheduleRunInput) SetName(v string) *ScheduleRunInput { + s.Name = &v + return s +} + +// SetProjectArn sets the ProjectArn field's value. +func (s *ScheduleRunInput) SetProjectArn(v string) *ScheduleRunInput { + s.ProjectArn = &v + return s +} + +// SetTest sets the Test field's value. +func (s *ScheduleRunInput) SetTest(v *ScheduleRunTest) *ScheduleRunInput { + s.Test = v + return s +} + // Represents the result of a schedule run request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ScheduleRunResult type ScheduleRunOutput struct { _ struct{} `type:"structure"` @@ -7319,7 +9025,14 @@ func (s ScheduleRunOutput) GoString() string { return s.String() } +// SetRun sets the Run field's value. +func (s *ScheduleRunOutput) SetRun(v *Run) *ScheduleRunOutput { + s.Run = v + return s +} + // Represents additional test settings. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ScheduleRunTest type ScheduleRunTest struct { _ struct{} `type:"structure"` @@ -7336,34 +9049,35 @@ type ScheduleRunTest struct { // // Must be one of the following values: // - // BUILTIN_FUZZ: The built-in fuzz type. + // * BUILTIN_FUZZ: The built-in fuzz type. // - // BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android - // app, interacting with it and capturing screenshots at the same time. + // * BUILTIN_EXPLORER: For Android, an app explorer that will traverse an + // Android app, interacting with it and capturing screenshots at the same + // time. // - // APPIUM_JAVA_JUNIT: The Appium Java JUnit type. + // * APPIUM_JAVA_JUNIT: The Appium Java JUnit type. // - // APPIUM_JAVA_TESTNG: The Appium Java TestNG type. + // * APPIUM_JAVA_TESTNG: The Appium Java TestNG type. // - // APPIUM_PYTHON: The Appium Python type. + // * APPIUM_PYTHON: The Appium Python type. // - // APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps. + // * APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps. // - // APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps. + // * APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps. // - // APPIUM_WEB_PYTHON: The Appium Python type for Web apps. + // * APPIUM_WEB_PYTHON: The Appium Python type for Web apps. // - // CALABASH: The Calabash type. + // * CALABASH: The Calabash type. // - // INSTRUMENTATION: The Instrumentation type. + // * INSTRUMENTATION: The Instrumentation type. // - // UIAUTOMATION: The uiautomation type. + // * UIAUTOMATION: The uiautomation type. // - // UIAUTOMATOR: The uiautomator type. + // * UIAUTOMATOR: The uiautomator type. // - // XCTEST: The XCode test type. + // * XCTEST: The XCode test type. // - // XCTEST_UI: The XCode UI test type. + // * XCTEST_UI: The XCode UI test type. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"TestType"` @@ -7395,7 +9109,32 @@ func (s *ScheduleRunTest) Validate() error { return nil } +// SetFilter sets the Filter field's value. +func (s *ScheduleRunTest) SetFilter(v string) *ScheduleRunTest { + s.Filter = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *ScheduleRunTest) SetParameters(v map[string]*string) *ScheduleRunTest { + s.Parameters = v + return s +} + +// SetTestPackageArn sets the TestPackageArn field's value. +func (s *ScheduleRunTest) SetTestPackageArn(v string) *ScheduleRunTest { + s.TestPackageArn = &v + return s +} + +// SetType sets the Type field's value. +func (s *ScheduleRunTest) SetType(v string) *ScheduleRunTest { + s.Type = &v + return s +} + // Represents the request to stop the remote access session. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/StopRemoteAccessSessionRequest type StopRemoteAccessSessionInput struct { _ struct{} `type:"structure"` @@ -7431,8 +9170,15 @@ func (s *StopRemoteAccessSessionInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *StopRemoteAccessSessionInput) SetArn(v string) *StopRemoteAccessSessionInput { + s.Arn = &v + return s +} + // Represents the response from the server that describes the remote access // session when AWS Device Farm stops the session. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/StopRemoteAccessSessionResult type StopRemoteAccessSessionOutput struct { _ struct{} `type:"structure"` @@ -7451,7 +9197,14 @@ func (s StopRemoteAccessSessionOutput) GoString() string { return s.String() } +// SetRemoteAccessSession sets the RemoteAccessSession field's value. +func (s *StopRemoteAccessSessionOutput) SetRemoteAccessSession(v *RemoteAccessSession) *StopRemoteAccessSessionOutput { + s.RemoteAccessSession = v + return s +} + // Represents the request to stop a specific run. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/StopRunRequest type StopRunInput struct { _ struct{} `type:"structure"` @@ -7488,7 +9241,14 @@ func (s *StopRunInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *StopRunInput) SetArn(v string) *StopRunInput { + s.Arn = &v + return s +} + // Represents the results of your stop run attempt. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/StopRunResult type StopRunOutput struct { _ struct{} `type:"structure"` @@ -7506,7 +9266,14 @@ func (s StopRunOutput) GoString() string { return s.String() } +// SetRun sets the Run field's value. +func (s *StopRunOutput) SetRun(v *Run) *StopRunOutput { + s.Run = v + return s +} + // Represents a collection of one or more tests. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Suite type Suite struct { _ struct{} `type:"structure"` @@ -7532,19 +9299,19 @@ type Suite struct { // // Allowed values include: // - // PENDING: A pending condition. + // * PENDING: A pending condition. // - // PASSED: A passing condition. + // * PASSED: A passing condition. // - // WARNED: A warning condition. + // * WARNED: A warning condition. // - // FAILED: A failed condition. + // * FAILED: A failed condition. // - // SKIPPED: A skipped condition. + // * SKIPPED: A skipped condition. // - // ERRORED: An error condition. + // * ERRORED: An error condition. // - // STOPPED: A stopped condition. + // * STOPPED: A stopped condition. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"` // The suite's start time. @@ -7554,23 +9321,23 @@ type Suite struct { // // Allowed values include: // - // PENDING: A pending status. + // * PENDING: A pending status. // - // PENDING_CONCURRENCY: A pending concurrency status. + // * PENDING_CONCURRENCY: A pending concurrency status. // - // PENDING_DEVICE: A pending device status. + // * PENDING_DEVICE: A pending device status. // - // PROCESSING: A processing status. + // * PROCESSING: A processing status. // - // SCHEDULING: A scheduling status. + // * SCHEDULING: A scheduling status. // - // PREPARING: A preparing status. + // * PREPARING: A preparing status. // - // RUNNING: A running status. + // * RUNNING: A running status. // - // COMPLETED: A completed status. + // * COMPLETED: A completed status. // - // STOPPING: A stopping status. + // * STOPPING: A stopping status. Status *string `locationName:"status" type:"string" enum:"ExecutionStatus"` // The suite's stop time. @@ -7580,34 +9347,35 @@ type Suite struct { // // Must be one of the following values: // - // BUILTIN_FUZZ: The built-in fuzz type. + // * BUILTIN_FUZZ: The built-in fuzz type. // - // BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android - // app, interacting with it and capturing screenshots at the same time. + // * BUILTIN_EXPLORER: For Android, an app explorer that will traverse an + // Android app, interacting with it and capturing screenshots at the same + // time. // - // APPIUM_JAVA_JUNIT: The Appium Java JUnit type. + // * APPIUM_JAVA_JUNIT: The Appium Java JUnit type. // - // APPIUM_JAVA_TESTNG: The Appium Java TestNG type. + // * APPIUM_JAVA_TESTNG: The Appium Java TestNG type. // - // APPIUM_PYTHON: The Appium Python type. + // * APPIUM_PYTHON: The Appium Python type. // - // APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps. + // * APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps. // - // APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps. + // * APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps. // - // APPIUM_WEB_PYTHON: The Appium Python type for Web apps. + // * APPIUM_WEB_PYTHON: The Appium Python type for Web apps. // - // CALABASH: The Calabash type. + // * CALABASH: The Calabash type. // - // INSTRUMENTATION: The Instrumentation type. + // * INSTRUMENTATION: The Instrumentation type. // - // UIAUTOMATION: The uiautomation type. + // * UIAUTOMATION: The uiautomation type. // - // UIAUTOMATOR: The uiautomator type. + // * UIAUTOMATOR: The uiautomator type. // - // XCTEST: The XCode test type. + // * XCTEST: The XCode test type. // - // XCTEST_UI: The XCode UI test type. + // * XCTEST_UI: The XCode UI test type. Type *string `locationName:"type" type:"string" enum:"TestType"` } @@ -7621,7 +9389,74 @@ func (s Suite) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Suite) SetArn(v string) *Suite { + s.Arn = &v + return s +} + +// SetCounters sets the Counters field's value. +func (s *Suite) SetCounters(v *Counters) *Suite { + s.Counters = v + return s +} + +// SetCreated sets the Created field's value. +func (s *Suite) SetCreated(v time.Time) *Suite { + s.Created = &v + return s +} + +// SetDeviceMinutes sets the DeviceMinutes field's value. +func (s *Suite) SetDeviceMinutes(v *DeviceMinutes) *Suite { + s.DeviceMinutes = v + return s +} + +// SetMessage sets the Message field's value. +func (s *Suite) SetMessage(v string) *Suite { + s.Message = &v + return s +} + +// SetName sets the Name field's value. +func (s *Suite) SetName(v string) *Suite { + s.Name = &v + return s +} + +// SetResult sets the Result field's value. +func (s *Suite) SetResult(v string) *Suite { + s.Result = &v + return s +} + +// SetStarted sets the Started field's value. +func (s *Suite) SetStarted(v time.Time) *Suite { + s.Started = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Suite) SetStatus(v string) *Suite { + s.Status = &v + return s +} + +// SetStopped sets the Stopped field's value. +func (s *Suite) SetStopped(v time.Time) *Suite { + s.Stopped = &v + return s +} + +// SetType sets the Type field's value. +func (s *Suite) SetType(v string) *Suite { + s.Type = &v + return s +} + // Represents a condition that is evaluated. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Test type Test struct { _ struct{} `type:"structure"` @@ -7647,19 +9482,19 @@ type Test struct { // // Allowed values include: // - // PENDING: A pending condition. + // * PENDING: A pending condition. // - // PASSED: A passing condition. + // * PASSED: A passing condition. // - // WARNED: A warning condition. + // * WARNED: A warning condition. // - // FAILED: A failed condition. + // * FAILED: A failed condition. // - // SKIPPED: A skipped condition. + // * SKIPPED: A skipped condition. // - // ERRORED: An error condition. + // * ERRORED: An error condition. // - // STOPPED: A stopped condition. + // * STOPPED: A stopped condition. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"` // The test's start time. @@ -7669,23 +9504,23 @@ type Test struct { // // Allowed values include: // - // PENDING: A pending status. + // * PENDING: A pending status. // - // PENDING_CONCURRENCY: A pending concurrency status. + // * PENDING_CONCURRENCY: A pending concurrency status. // - // PENDING_DEVICE: A pending device status. + // * PENDING_DEVICE: A pending device status. // - // PROCESSING: A processing status. + // * PROCESSING: A processing status. // - // SCHEDULING: A scheduling status. + // * SCHEDULING: A scheduling status. // - // PREPARING: A preparing status. + // * PREPARING: A preparing status. // - // RUNNING: A running status. + // * RUNNING: A running status. // - // COMPLETED: A completed status. + // * COMPLETED: A completed status. // - // STOPPING: A stopping status. + // * STOPPING: A stopping status. Status *string `locationName:"status" type:"string" enum:"ExecutionStatus"` // The test's stop time. @@ -7695,34 +9530,35 @@ type Test struct { // // Must be one of the following values: // - // BUILTIN_FUZZ: The built-in fuzz type. + // * BUILTIN_FUZZ: The built-in fuzz type. // - // BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android - // app, interacting with it and capturing screenshots at the same time. + // * BUILTIN_EXPLORER: For Android, an app explorer that will traverse an + // Android app, interacting with it and capturing screenshots at the same + // time. // - // APPIUM_JAVA_JUNIT: The Appium Java JUnit type. + // * APPIUM_JAVA_JUNIT: The Appium Java JUnit type. // - // APPIUM_JAVA_TESTNG: The Appium Java TestNG type. + // * APPIUM_JAVA_TESTNG: The Appium Java TestNG type. // - // APPIUM_PYTHON: The Appium Python type. + // * APPIUM_PYTHON: The Appium Python type. // - // APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps. + // * APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps. // - // APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps. + // * APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps. // - // APPIUM_WEB_PYTHON: The Appium Python type for Web apps. + // * APPIUM_WEB_PYTHON: The Appium Python type for Web apps. // - // CALABASH: The Calabash type. + // * CALABASH: The Calabash type. // - // INSTRUMENTATION: The Instrumentation type. + // * INSTRUMENTATION: The Instrumentation type. // - // UIAUTOMATION: The uiautomation type. + // * UIAUTOMATION: The uiautomation type. // - // UIAUTOMATOR: The uiautomator type. + // * UIAUTOMATOR: The uiautomator type. // - // XCTEST: The XCode test type. + // * XCTEST: The XCode test type. // - // XCTEST_UI: The XCode UI test type. + // * XCTEST_UI: The XCode UI test type. Type *string `locationName:"type" type:"string" enum:"TestType"` } @@ -7736,7 +9572,74 @@ func (s Test) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Test) SetArn(v string) *Test { + s.Arn = &v + return s +} + +// SetCounters sets the Counters field's value. +func (s *Test) SetCounters(v *Counters) *Test { + s.Counters = v + return s +} + +// SetCreated sets the Created field's value. +func (s *Test) SetCreated(v time.Time) *Test { + s.Created = &v + return s +} + +// SetDeviceMinutes sets the DeviceMinutes field's value. +func (s *Test) SetDeviceMinutes(v *DeviceMinutes) *Test { + s.DeviceMinutes = v + return s +} + +// SetMessage sets the Message field's value. +func (s *Test) SetMessage(v string) *Test { + s.Message = &v + return s +} + +// SetName sets the Name field's value. +func (s *Test) SetName(v string) *Test { + s.Name = &v + return s +} + +// SetResult sets the Result field's value. +func (s *Test) SetResult(v string) *Test { + s.Result = &v + return s +} + +// SetStarted sets the Started field's value. +func (s *Test) SetStarted(v time.Time) *Test { + s.Started = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Test) SetStatus(v string) *Test { + s.Status = &v + return s +} + +// SetStopped sets the Stopped field's value. +func (s *Test) SetStopped(v time.Time) *Test { + s.Stopped = &v + return s +} + +// SetType sets the Type field's value. +func (s *Test) SetType(v string) *Test { + s.Type = &v + return s +} + // A collection of one or more problems, grouped by their result. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UniqueProblem type UniqueProblem struct { _ struct{} `type:"structure"` @@ -7757,7 +9660,20 @@ func (s UniqueProblem) GoString() string { return s.String() } +// SetMessage sets the Message field's value. +func (s *UniqueProblem) SetMessage(v string) *UniqueProblem { + s.Message = &v + return s +} + +// SetProblems sets the Problems field's value. +func (s *UniqueProblem) SetProblems(v []*Problem) *UniqueProblem { + s.Problems = v + return s +} + // Represents a request to the update device pool operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateDevicePoolRequest type UpdateDevicePoolInput struct { _ struct{} `type:"structure"` @@ -7805,7 +9721,32 @@ func (s *UpdateDevicePoolInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *UpdateDevicePoolInput) SetArn(v string) *UpdateDevicePoolInput { + s.Arn = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateDevicePoolInput) SetDescription(v string) *UpdateDevicePoolInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateDevicePoolInput) SetName(v string) *UpdateDevicePoolInput { + s.Name = &v + return s +} + +// SetRules sets the Rules field's value. +func (s *UpdateDevicePoolInput) SetRules(v []*Rule) *UpdateDevicePoolInput { + s.Rules = v + return s +} + // Represents the result of an update device pool request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateDevicePoolResult type UpdateDevicePoolOutput struct { _ struct{} `type:"structure"` @@ -7823,7 +9764,14 @@ func (s UpdateDevicePoolOutput) GoString() string { return s.String() } +// SetDevicePool sets the DevicePool field's value. +func (s *UpdateDevicePoolOutput) SetDevicePool(v *DevicePool) *UpdateDevicePoolOutput { + s.DevicePool = v + return s +} + // Represents a request to the update project operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateProjectRequest type UpdateProjectInput struct { _ struct{} `type:"structure"` @@ -7862,7 +9810,20 @@ func (s *UpdateProjectInput) Validate() error { return nil } +// SetArn sets the Arn field's value. +func (s *UpdateProjectInput) SetArn(v string) *UpdateProjectInput { + s.Arn = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateProjectInput) SetName(v string) *UpdateProjectInput { + s.Name = &v + return s +} + // Represents the result of an update project request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateProjectResult type UpdateProjectOutput struct { _ struct{} `type:"structure"` @@ -7881,7 +9842,14 @@ func (s UpdateProjectOutput) GoString() string { return s.String() } +// SetProject sets the Project field's value. +func (s *UpdateProjectOutput) SetProject(v *Project) *UpdateProjectOutput { + s.Project = v + return s +} + // An app or a set of one or more tests to upload or that have been uploaded. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Upload type Upload struct { _ struct{} `type:"structure"` @@ -7909,52 +9877,53 @@ type Upload struct { // // Must be one of the following values: // - // FAILED: A failed status. + // * FAILED: A failed status. // - // INITIALIZED: An initialized status. + // * INITIALIZED: An initialized status. // - // PROCESSING: A processing status. + // * PROCESSING: A processing status. // - // SUCCEEDED: A succeeded status. + // * SUCCEEDED: A succeeded status. Status *string `locationName:"status" type:"string" enum:"UploadStatus"` // The upload's type. // // Must be one of the following values: // - // ANDROID_APP: An Android upload. + // * ANDROID_APP: An Android upload. // - // IOS_APP: An iOS upload. + // * IOS_APP: An iOS upload. // - // WEB_APP: A web appliction upload. + // * WEB_APP: A web appliction upload. // - // EXTERNAL_DATA: An external data upload. + // * EXTERNAL_DATA: An external data upload. // - // APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload. + // * APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload. // - // APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload. + // * APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package + // upload. // - // APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload. + // * APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload. // - // APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package - // upload. + // * APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package + // upload. // - // APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package - // upload. + // * APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package + // upload. // - // APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload. + // * APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload. // - // CALABASH_TEST_PACKAGE: A Calabash test package upload. + // * CALABASH_TEST_PACKAGE: A Calabash test package upload. // - // INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload. + // * INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload. // - // UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload. + // * UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload. // - // UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload. + // * UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload. // - // XCTEST_TEST_PACKAGE: An XCode test package upload. + // * XCTEST_TEST_PACKAGE: An XCode test package upload. // - // XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. + // * XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. Type *string `locationName:"type" type:"string" enum:"UploadType"` // The pre-signed Amazon S3 URL that was used to store a file through a corresponding @@ -7972,6 +9941,60 @@ func (s Upload) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Upload) SetArn(v string) *Upload { + s.Arn = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *Upload) SetContentType(v string) *Upload { + s.ContentType = &v + return s +} + +// SetCreated sets the Created field's value. +func (s *Upload) SetCreated(v time.Time) *Upload { + s.Created = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *Upload) SetMessage(v string) *Upload { + s.Message = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *Upload) SetMetadata(v string) *Upload { + s.Metadata = &v + return s +} + +// SetName sets the Name field's value. +func (s *Upload) SetName(v string) *Upload { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Upload) SetStatus(v string) *Upload { + s.Status = &v + return s +} + +// SetType sets the Type field's value. +func (s *Upload) SetType(v string) *Upload { + s.Type = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *Upload) SetUrl(v string) *Upload { + s.Url = &v + return s +} + const ( // ArtifactCategoryScreenshot is a ArtifactCategory enum value ArtifactCategoryScreenshot = "SCREENSHOT" diff --git a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/devicefarmiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/devicefarmiface/interface.go index 9e62f7327..f4a79c1dd 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/devicefarmiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/devicefarmiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockDeviceFarmClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/errors.go b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/errors.go new file mode 100644 index 000000000..36bdd0486 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/errors.go @@ -0,0 +1,43 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package devicefarm + +const ( + + // ErrCodeArgumentException for service response error code + // "ArgumentException". + // + // An invalid argument was specified. + ErrCodeArgumentException = "ArgumentException" + + // ErrCodeIdempotencyException for service response error code + // "IdempotencyException". + // + // An entity with the same name already exists. + ErrCodeIdempotencyException = "IdempotencyException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // A limit was exceeded. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeNotEligibleException for service response error code + // "NotEligibleException". + // + // Exception gets thrown when a user is not eligible to perform the specified + // transaction. + ErrCodeNotEligibleException = "NotEligibleException" + + // ErrCodeNotFoundException for service response error code + // "NotFoundException". + // + // The specified entity was not found. + ErrCodeNotFoundException = "NotFoundException" + + // ErrCodeServiceAccountException for service response error code + // "ServiceAccountException". + // + // There was a problem with the service account. + ErrCodeServiceAccountException = "ServiceAccountException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/examples_test.go index 3843e7c56..5f4b54274 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleDeviceFarm_CreateDevicePool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -51,11 +47,7 @@ func ExampleDeviceFarm_CreateDevicePool() { } func ExampleDeviceFarm_CreateProject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -76,11 +68,7 @@ func ExampleDeviceFarm_CreateProject() { } func ExampleDeviceFarm_CreateRemoteAccessSession() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -106,11 +94,7 @@ func ExampleDeviceFarm_CreateRemoteAccessSession() { } func ExampleDeviceFarm_CreateUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -134,11 +118,7 @@ func ExampleDeviceFarm_CreateUpload() { } func ExampleDeviceFarm_DeleteDevicePool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -159,11 +139,7 @@ func ExampleDeviceFarm_DeleteDevicePool() { } func ExampleDeviceFarm_DeleteProject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -184,11 +160,7 @@ func ExampleDeviceFarm_DeleteProject() { } func ExampleDeviceFarm_DeleteRemoteAccessSession() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -209,11 +181,7 @@ func ExampleDeviceFarm_DeleteRemoteAccessSession() { } func ExampleDeviceFarm_DeleteRun() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -234,11 +202,7 @@ func ExampleDeviceFarm_DeleteRun() { } func ExampleDeviceFarm_DeleteUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -259,11 +223,7 @@ func ExampleDeviceFarm_DeleteUpload() { } func ExampleDeviceFarm_GetAccountSettings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -282,11 +242,7 @@ func ExampleDeviceFarm_GetAccountSettings() { } func ExampleDeviceFarm_GetDevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -307,11 +263,7 @@ func ExampleDeviceFarm_GetDevice() { } func ExampleDeviceFarm_GetDevicePool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -332,11 +284,7 @@ func ExampleDeviceFarm_GetDevicePool() { } func ExampleDeviceFarm_GetDevicePoolCompatibility() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -359,11 +307,7 @@ func ExampleDeviceFarm_GetDevicePoolCompatibility() { } func ExampleDeviceFarm_GetJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -384,11 +328,7 @@ func ExampleDeviceFarm_GetJob() { } func ExampleDeviceFarm_GetOfferingStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -409,11 +349,7 @@ func ExampleDeviceFarm_GetOfferingStatus() { } func ExampleDeviceFarm_GetProject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -434,11 +370,7 @@ func ExampleDeviceFarm_GetProject() { } func ExampleDeviceFarm_GetRemoteAccessSession() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -459,11 +391,7 @@ func ExampleDeviceFarm_GetRemoteAccessSession() { } func ExampleDeviceFarm_GetRun() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -484,11 +412,7 @@ func ExampleDeviceFarm_GetRun() { } func ExampleDeviceFarm_GetSuite() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -509,11 +433,7 @@ func ExampleDeviceFarm_GetSuite() { } func ExampleDeviceFarm_GetTest() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -534,11 +454,7 @@ func ExampleDeviceFarm_GetTest() { } func ExampleDeviceFarm_GetUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -559,11 +475,7 @@ func ExampleDeviceFarm_GetUpload() { } func ExampleDeviceFarm_InstallToRemoteAccessSession() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -585,11 +497,7 @@ func ExampleDeviceFarm_InstallToRemoteAccessSession() { } func ExampleDeviceFarm_ListArtifacts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -612,11 +520,7 @@ func ExampleDeviceFarm_ListArtifacts() { } func ExampleDeviceFarm_ListDevicePools() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -639,11 +543,7 @@ func ExampleDeviceFarm_ListDevicePools() { } func ExampleDeviceFarm_ListDevices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -665,11 +565,7 @@ func ExampleDeviceFarm_ListDevices() { } func ExampleDeviceFarm_ListJobs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -691,11 +587,7 @@ func ExampleDeviceFarm_ListJobs() { } func ExampleDeviceFarm_ListOfferingTransactions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -716,11 +608,7 @@ func ExampleDeviceFarm_ListOfferingTransactions() { } func ExampleDeviceFarm_ListOfferings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -741,11 +629,7 @@ func ExampleDeviceFarm_ListOfferings() { } func ExampleDeviceFarm_ListProjects() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -767,11 +651,7 @@ func ExampleDeviceFarm_ListProjects() { } func ExampleDeviceFarm_ListRemoteAccessSessions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -793,11 +673,7 @@ func ExampleDeviceFarm_ListRemoteAccessSessions() { } func ExampleDeviceFarm_ListRuns() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -819,11 +695,7 @@ func ExampleDeviceFarm_ListRuns() { } func ExampleDeviceFarm_ListSamples() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -845,11 +717,7 @@ func ExampleDeviceFarm_ListSamples() { } func ExampleDeviceFarm_ListSuites() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -871,11 +739,7 @@ func ExampleDeviceFarm_ListSuites() { } func ExampleDeviceFarm_ListTests() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -897,11 +761,7 @@ func ExampleDeviceFarm_ListTests() { } func ExampleDeviceFarm_ListUniqueProblems() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -923,11 +783,7 @@ func ExampleDeviceFarm_ListUniqueProblems() { } func ExampleDeviceFarm_ListUploads() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -949,11 +805,7 @@ func ExampleDeviceFarm_ListUploads() { } func ExampleDeviceFarm_PurchaseOffering() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -975,11 +827,7 @@ func ExampleDeviceFarm_PurchaseOffering() { } func ExampleDeviceFarm_RenewOffering() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -1001,11 +849,7 @@ func ExampleDeviceFarm_RenewOffering() { } func ExampleDeviceFarm_ScheduleRun() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -1058,11 +902,7 @@ func ExampleDeviceFarm_ScheduleRun() { } func ExampleDeviceFarm_StopRemoteAccessSession() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -1083,11 +923,7 @@ func ExampleDeviceFarm_StopRemoteAccessSession() { } func ExampleDeviceFarm_StopRun() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -1108,11 +944,7 @@ func ExampleDeviceFarm_StopRun() { } func ExampleDeviceFarm_UpdateDevicePool() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) @@ -1143,11 +975,7 @@ func ExampleDeviceFarm_UpdateDevicePool() { } func ExampleDeviceFarm_UpdateProject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := devicefarm.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/service.go b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/service.go index 12cfb829e..a6023e7a7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/service.go @@ -14,8 +14,9 @@ import ( // AWS Device Farm is a service that enables mobile app developers to test Android, // iOS, and Fire OS apps on physical phones, tablets, and other devices in the // cloud. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23 type DeviceFarm struct { *client.Client } @@ -26,8 +27,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "devicefarm" +// Service information constants +const ( + ServiceName = "devicefarm" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the DeviceFarm client with a session. // If additional configuration is needed for the client instance use the optional @@ -40,17 +44,18 @@ const ServiceName = "devicefarm" // // Create a DeviceFarm client with additional configuration // svc := devicefarm.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *DeviceFarm { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *DeviceFarm { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *DeviceFarm { svc := &DeviceFarm{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-06-23", diff --git a/vendor/github.com/aws/aws-sdk-go/service/directconnect/api.go b/vendor/github.com/aws/aws-sdk-go/service/directconnect/api.go index c898ffdd9..20d690a5e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directconnect/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directconnect/api.go @@ -4,6 +4,7 @@ package directconnect import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws/awsutil" @@ -36,6 +37,7 @@ const opAllocateConnectionOnInterconnect = "AllocateConnectionOnInterconnect" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocateConnectionOnInterconnect func (c *DirectConnect) AllocateConnectionOnInterconnectRequest(input *AllocateConnectionOnInterconnectInput) (req *request.Request, output *Connection) { op := &request.Operation{ Name: opAllocateConnectionOnInterconnect, @@ -47,20 +49,21 @@ func (c *DirectConnect) AllocateConnectionOnInterconnectRequest(input *AllocateC input = &AllocateConnectionOnInterconnectInput{} } - req = c.newRequest(op, input, output) output = &Connection{} - req.Data = output + req = c.newRequest(op, input, output) return } // AllocateConnectionOnInterconnect API operation for AWS Direct Connect. // +// Deprecated in favor of AllocateHostedConnection. +// // Creates a hosted connection on an interconnect. // // Allocates a VLAN number and a specified amount of bandwidth for use by a // hosted connection on the given interconnect. // -// This is intended for use by AWS Direct Connect partners only. +// This is intended for use by AWS Direct Connect partners only. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -70,20 +73,97 @@ func (c *DirectConnect) AllocateConnectionOnInterconnectRequest(input *AllocateC // API operation AllocateConnectionOnInterconnect for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocateConnectionOnInterconnect func (c *DirectConnect) AllocateConnectionOnInterconnect(input *AllocateConnectionOnInterconnectInput) (*Connection, error) { req, out := c.AllocateConnectionOnInterconnectRequest(input) err := req.Send() return out, err } +const opAllocateHostedConnection = "AllocateHostedConnection" + +// AllocateHostedConnectionRequest generates a "aws/request.Request" representing the +// client's request for the AllocateHostedConnection operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AllocateHostedConnection for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AllocateHostedConnection method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AllocateHostedConnectionRequest method. +// req, resp := client.AllocateHostedConnectionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocateHostedConnection +func (c *DirectConnect) AllocateHostedConnectionRequest(input *AllocateHostedConnectionInput) (req *request.Request, output *Connection) { + op := &request.Operation{ + Name: opAllocateHostedConnection, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AllocateHostedConnectionInput{} + } + + output = &Connection{} + req = c.newRequest(op, input, output) + return +} + +// AllocateHostedConnection API operation for AWS Direct Connect. +// +// Creates a hosted connection on an interconnect or a link aggregation group +// (LAG). +// +// Allocates a VLAN number and a specified amount of bandwidth for use by a +// hosted connection on the given interconnect or LAG. +// +// This is intended for use by AWS Direct Connect partners only. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation AllocateHostedConnection for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServerException "ServerException" +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ErrCodeClientException "ClientException" +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocateHostedConnection +func (c *DirectConnect) AllocateHostedConnection(input *AllocateHostedConnectionInput) (*Connection, error) { + req, out := c.AllocateHostedConnectionRequest(input) + err := req.Send() + return out, err +} + const opAllocatePrivateVirtualInterface = "AllocatePrivateVirtualInterface" // AllocatePrivateVirtualInterfaceRequest generates a "aws/request.Request" representing the @@ -110,6 +190,7 @@ const opAllocatePrivateVirtualInterface = "AllocatePrivateVirtualInterface" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocatePrivateVirtualInterface func (c *DirectConnect) AllocatePrivateVirtualInterfaceRequest(input *AllocatePrivateVirtualInterfaceInput) (req *request.Request, output *VirtualInterface) { op := &request.Operation{ Name: opAllocatePrivateVirtualInterface, @@ -121,23 +202,19 @@ func (c *DirectConnect) AllocatePrivateVirtualInterfaceRequest(input *AllocatePr input = &AllocatePrivateVirtualInterfaceInput{} } - req = c.newRequest(op, input, output) output = &VirtualInterface{} - req.Data = output + req = c.newRequest(op, input, output) return } // AllocatePrivateVirtualInterface API operation for AWS Direct Connect. // -// Provisions a private virtual interface to be owned by a different customer. -// -// The owner of a connection calls this function to provision a private virtual -// interface which will be owned by another AWS customer. +// Provisions a private virtual interface to be owned by another AWS customer. // -// Virtual interfaces created using this function must be confirmed by the -// virtual interface owner by calling ConfirmPrivateVirtualInterface. Until -// this step has been completed, the virtual interface will be in 'Confirming' -// state, and will not be available for handling traffic. +// Virtual interfaces created using this action must be confirmed by the virtual +// interface owner by using the ConfirmPrivateVirtualInterface action. Until +// then, the virtual interface will be in 'Confirming' state, and will not be +// available for handling traffic. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -147,14 +224,15 @@ func (c *DirectConnect) AllocatePrivateVirtualInterfaceRequest(input *AllocatePr // API operation AllocatePrivateVirtualInterface for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocatePrivateVirtualInterface func (c *DirectConnect) AllocatePrivateVirtualInterface(input *AllocatePrivateVirtualInterfaceInput) (*VirtualInterface, error) { req, out := c.AllocatePrivateVirtualInterfaceRequest(input) err := req.Send() @@ -187,6 +265,7 @@ const opAllocatePublicVirtualInterface = "AllocatePublicVirtualInterface" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocatePublicVirtualInterface func (c *DirectConnect) AllocatePublicVirtualInterfaceRequest(input *AllocatePublicVirtualInterfaceInput) (req *request.Request, output *VirtualInterface) { op := &request.Operation{ Name: opAllocatePublicVirtualInterface, @@ -198,9 +277,8 @@ func (c *DirectConnect) AllocatePublicVirtualInterfaceRequest(input *AllocatePub input = &AllocatePublicVirtualInterfaceInput{} } - req = c.newRequest(op, input, output) output = &VirtualInterface{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -211,11 +289,15 @@ func (c *DirectConnect) AllocatePublicVirtualInterfaceRequest(input *AllocatePub // The owner of a connection calls this function to provision a public virtual // interface which will be owned by another AWS customer. // -// Virtual interfaces created using this function must be confirmed by the -// virtual interface owner by calling ConfirmPublicVirtualInterface. Until this -// step has been completed, the virtual interface will be in 'Confirming' state, +// Virtual interfaces created using this function must be confirmed by the virtual +// interface owner by calling ConfirmPublicVirtualInterface. Until this step +// has been completed, the virtual interface will be in 'Confirming' state, // and will not be available for handling traffic. // +// When creating an IPv6 public virtual interface (addressFamily is 'ipv6'), +// the customer and amazon address fields should be left blank to use auto-assigned +// IPv6 space. Custom IPv6 Addresses are currently not supported. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -224,1427 +306,4471 @@ func (c *DirectConnect) AllocatePublicVirtualInterfaceRequest(input *AllocatePub // API operation AllocatePublicVirtualInterface for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocatePublicVirtualInterface func (c *DirectConnect) AllocatePublicVirtualInterface(input *AllocatePublicVirtualInterfaceInput) (*VirtualInterface, error) { req, out := c.AllocatePublicVirtualInterfaceRequest(input) err := req.Send() return out, err } -const opConfirmConnection = "ConfirmConnection" +const opAssociateConnectionWithLag = "AssociateConnectionWithLag" -// ConfirmConnectionRequest generates a "aws/request.Request" representing the -// client's request for the ConfirmConnection operation. The "output" return +// AssociateConnectionWithLagRequest generates a "aws/request.Request" representing the +// client's request for the AssociateConnectionWithLag operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ConfirmConnection for usage and error information. +// See AssociateConnectionWithLag for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ConfirmConnection method directly +// you just want the service response, call the AssociateConnectionWithLag method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ConfirmConnectionRequest method. -// req, resp := client.ConfirmConnectionRequest(params) +// // Example sending a request using the AssociateConnectionWithLagRequest method. +// req, resp := client.AssociateConnectionWithLagRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *DirectConnect) ConfirmConnectionRequest(input *ConfirmConnectionInput) (req *request.Request, output *ConfirmConnectionOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AssociateConnectionWithLag +func (c *DirectConnect) AssociateConnectionWithLagRequest(input *AssociateConnectionWithLagInput) (req *request.Request, output *Connection) { op := &request.Operation{ - Name: opConfirmConnection, + Name: opAssociateConnectionWithLag, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ConfirmConnectionInput{} + input = &AssociateConnectionWithLagInput{} } + output = &Connection{} req = c.newRequest(op, input, output) - output = &ConfirmConnectionOutput{} - req.Data = output return } -// ConfirmConnection API operation for AWS Direct Connect. +// AssociateConnectionWithLag API operation for AWS Direct Connect. // -// Confirm the creation of a hosted connection on an interconnect. +// Associates an existing connection with a link aggregation group (LAG). The +// connection is interrupted and re-established as a member of the LAG (connectivity +// to AWS will be interrupted). The connection must be hosted on the same AWS +// Direct Connect endpoint as the LAG, and its bandwidth must match the bandwidth +// for the LAG. You can reassociate a connection that's currently associated +// with a different LAG; however, if removing the connection will cause the +// original LAG to fall below its setting for minimum number of operational +// connections, the request fails. // -// Upon creation, the hosted connection is initially in the 'Ordering' state, -// and will remain in this state until the owner calls ConfirmConnection to -// confirm creation of the hosted connection. +// Virtual interfaces that are directly associated with the connection are not +// automatically migrated. You can delete them or associate them with the target +// LAG using AssociateVirtualInterface. If the connection was originally associated +// with a different LAG, the virtual interfaces remain associated with the original +// LAG. +// +// For interconnects, hosted connections are not automatically migrated. You +// can delete them, or the owner of the physical connection can associate them +// with the target LAG using AssociateHostedConnection. After all hosted connections +// have been migrated, the interconnect can be migrated into the LAG. If the +// interconnect is already associated with a LAG, the hosted connections remain +// associated with the original LAG. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Direct Connect's -// API operation ConfirmConnection for usage and error information. +// API operation AssociateConnectionWithLag for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // -func (c *DirectConnect) ConfirmConnection(input *ConfirmConnectionInput) (*ConfirmConnectionOutput, error) { - req, out := c.ConfirmConnectionRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AssociateConnectionWithLag +func (c *DirectConnect) AssociateConnectionWithLag(input *AssociateConnectionWithLagInput) (*Connection, error) { + req, out := c.AssociateConnectionWithLagRequest(input) err := req.Send() return out, err } -const opConfirmPrivateVirtualInterface = "ConfirmPrivateVirtualInterface" +const opAssociateHostedConnection = "AssociateHostedConnection" -// ConfirmPrivateVirtualInterfaceRequest generates a "aws/request.Request" representing the -// client's request for the ConfirmPrivateVirtualInterface operation. The "output" return +// AssociateHostedConnectionRequest generates a "aws/request.Request" representing the +// client's request for the AssociateHostedConnection operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ConfirmPrivateVirtualInterface for usage and error information. +// See AssociateHostedConnection for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ConfirmPrivateVirtualInterface method directly +// you just want the service response, call the AssociateHostedConnection method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ConfirmPrivateVirtualInterfaceRequest method. -// req, resp := client.ConfirmPrivateVirtualInterfaceRequest(params) +// // Example sending a request using the AssociateHostedConnectionRequest method. +// req, resp := client.AssociateHostedConnectionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *DirectConnect) ConfirmPrivateVirtualInterfaceRequest(input *ConfirmPrivateVirtualInterfaceInput) (req *request.Request, output *ConfirmPrivateVirtualInterfaceOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AssociateHostedConnection +func (c *DirectConnect) AssociateHostedConnectionRequest(input *AssociateHostedConnectionInput) (req *request.Request, output *Connection) { op := &request.Operation{ - Name: opConfirmPrivateVirtualInterface, + Name: opAssociateHostedConnection, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ConfirmPrivateVirtualInterfaceInput{} + input = &AssociateHostedConnectionInput{} } + output = &Connection{} req = c.newRequest(op, input, output) - output = &ConfirmPrivateVirtualInterfaceOutput{} - req.Data = output return } -// ConfirmPrivateVirtualInterface API operation for AWS Direct Connect. +// AssociateHostedConnection API operation for AWS Direct Connect. // -// Accept ownership of a private virtual interface created by another customer. +// Associates a hosted connection and its virtual interfaces with a link aggregation +// group (LAG) or interconnect. If the target interconnect or LAG has an existing +// hosted connection with a conflicting VLAN number or IP address, the operation +// fails. This action temporarily interrupts the hosted connection's connectivity +// to AWS as it is being migrated. // -// After the virtual interface owner calls this function, the virtual interface -// will be created and attached to the given virtual private gateway, and will -// be available for handling traffic. +// This is intended for use by AWS Direct Connect partners only. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Direct Connect's -// API operation ConfirmPrivateVirtualInterface for usage and error information. +// API operation AssociateHostedConnection for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // -func (c *DirectConnect) ConfirmPrivateVirtualInterface(input *ConfirmPrivateVirtualInterfaceInput) (*ConfirmPrivateVirtualInterfaceOutput, error) { - req, out := c.ConfirmPrivateVirtualInterfaceRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AssociateHostedConnection +func (c *DirectConnect) AssociateHostedConnection(input *AssociateHostedConnectionInput) (*Connection, error) { + req, out := c.AssociateHostedConnectionRequest(input) err := req.Send() return out, err } -const opConfirmPublicVirtualInterface = "ConfirmPublicVirtualInterface" +const opAssociateVirtualInterface = "AssociateVirtualInterface" -// ConfirmPublicVirtualInterfaceRequest generates a "aws/request.Request" representing the -// client's request for the ConfirmPublicVirtualInterface operation. The "output" return +// AssociateVirtualInterfaceRequest generates a "aws/request.Request" representing the +// client's request for the AssociateVirtualInterface operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ConfirmPublicVirtualInterface for usage and error information. +// See AssociateVirtualInterface for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ConfirmPublicVirtualInterface method directly +// you just want the service response, call the AssociateVirtualInterface method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ConfirmPublicVirtualInterfaceRequest method. -// req, resp := client.ConfirmPublicVirtualInterfaceRequest(params) +// // Example sending a request using the AssociateVirtualInterfaceRequest method. +// req, resp := client.AssociateVirtualInterfaceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *DirectConnect) ConfirmPublicVirtualInterfaceRequest(input *ConfirmPublicVirtualInterfaceInput) (req *request.Request, output *ConfirmPublicVirtualInterfaceOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AssociateVirtualInterface +func (c *DirectConnect) AssociateVirtualInterfaceRequest(input *AssociateVirtualInterfaceInput) (req *request.Request, output *VirtualInterface) { op := &request.Operation{ - Name: opConfirmPublicVirtualInterface, + Name: opAssociateVirtualInterface, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ConfirmPublicVirtualInterfaceInput{} + input = &AssociateVirtualInterfaceInput{} } + output = &VirtualInterface{} req = c.newRequest(op, input, output) - output = &ConfirmPublicVirtualInterfaceOutput{} - req.Data = output return } -// ConfirmPublicVirtualInterface API operation for AWS Direct Connect. +// AssociateVirtualInterface API operation for AWS Direct Connect. // -// Accept ownership of a public virtual interface created by another customer. +// Associates a virtual interface with a specified link aggregation group (LAG) +// or connection. Connectivity to AWS is temporarily interrupted as the virtual +// interface is being migrated. If the target connection or LAG has an associated +// virtual interface with a conflicting VLAN number or a conflicting IP address, +// the operation fails. // -// After the virtual interface owner calls this function, the specified virtual -// interface will be created and made available for handling traffic. +// Virtual interfaces associated with a hosted connection cannot be associated +// with a LAG; hosted connections must be migrated along with their virtual +// interfaces using AssociateHostedConnection. +// +// Hosted virtual interfaces (an interface for which the owner of the connection +// is not the owner of physical connection) can only be reassociated by the +// owner of the physical connection. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Direct Connect's -// API operation ConfirmPublicVirtualInterface for usage and error information. +// API operation AssociateVirtualInterface for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // -func (c *DirectConnect) ConfirmPublicVirtualInterface(input *ConfirmPublicVirtualInterfaceInput) (*ConfirmPublicVirtualInterfaceOutput, error) { - req, out := c.ConfirmPublicVirtualInterfaceRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AssociateVirtualInterface +func (c *DirectConnect) AssociateVirtualInterface(input *AssociateVirtualInterfaceInput) (*VirtualInterface, error) { + req, out := c.AssociateVirtualInterfaceRequest(input) err := req.Send() return out, err } -const opCreateConnection = "CreateConnection" +const opConfirmConnection = "ConfirmConnection" -// CreateConnectionRequest generates a "aws/request.Request" representing the -// client's request for the CreateConnection operation. The "output" return +// ConfirmConnectionRequest generates a "aws/request.Request" representing the +// client's request for the ConfirmConnection operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See CreateConnection for usage and error information. +// See ConfirmConnection for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the CreateConnection method directly +// you just want the service response, call the ConfirmConnection method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the CreateConnectionRequest method. -// req, resp := client.CreateConnectionRequest(params) +// // Example sending a request using the ConfirmConnectionRequest method. +// req, resp := client.ConfirmConnectionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *DirectConnect) CreateConnectionRequest(input *CreateConnectionInput) (req *request.Request, output *Connection) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/ConfirmConnection +func (c *DirectConnect) ConfirmConnectionRequest(input *ConfirmConnectionInput) (req *request.Request, output *ConfirmConnectionOutput) { op := &request.Operation{ - Name: opCreateConnection, + Name: opConfirmConnection, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &CreateConnectionInput{} + input = &ConfirmConnectionInput{} } + output = &ConfirmConnectionOutput{} req = c.newRequest(op, input, output) - output = &Connection{} - req.Data = output return } -// CreateConnection API operation for AWS Direct Connect. +// ConfirmConnection API operation for AWS Direct Connect. // -// Creates a new connection between the customer network and a specific AWS -// Direct Connect location. +// Confirm the creation of a hosted connection on an interconnect. // -// A connection links your internal network to an AWS Direct Connect location -// over a standard 1 gigabit or 10 gigabit Ethernet fiber-optic cable. One end -// of the cable is connected to your router, the other to an AWS Direct Connect -// router. An AWS Direct Connect location provides access to Amazon Web Services -// in the region it is associated with. You can establish connections with AWS -// Direct Connect locations in multiple regions, but a connection in one region -// does not provide connectivity to other regions. +// Upon creation, the hosted connection is initially in the 'Ordering' state, +// and will remain in this state until the owner calls ConfirmConnection to +// confirm creation of the hosted connection. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Direct Connect's -// API operation CreateConnection for usage and error information. +// API operation ConfirmConnection for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // -func (c *DirectConnect) CreateConnection(input *CreateConnectionInput) (*Connection, error) { - req, out := c.CreateConnectionRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/ConfirmConnection +func (c *DirectConnect) ConfirmConnection(input *ConfirmConnectionInput) (*ConfirmConnectionOutput, error) { + req, out := c.ConfirmConnectionRequest(input) err := req.Send() return out, err } -const opCreateInterconnect = "CreateInterconnect" +const opConfirmPrivateVirtualInterface = "ConfirmPrivateVirtualInterface" -// CreateInterconnectRequest generates a "aws/request.Request" representing the -// client's request for the CreateInterconnect operation. The "output" return +// ConfirmPrivateVirtualInterfaceRequest generates a "aws/request.Request" representing the +// client's request for the ConfirmPrivateVirtualInterface operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See CreateInterconnect for usage and error information. +// See ConfirmPrivateVirtualInterface for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the CreateInterconnect method directly +// you just want the service response, call the ConfirmPrivateVirtualInterface method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the CreateInterconnectRequest method. -// req, resp := client.CreateInterconnectRequest(params) +// // Example sending a request using the ConfirmPrivateVirtualInterfaceRequest method. +// req, resp := client.ConfirmPrivateVirtualInterfaceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *DirectConnect) CreateInterconnectRequest(input *CreateInterconnectInput) (req *request.Request, output *Interconnect) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/ConfirmPrivateVirtualInterface +func (c *DirectConnect) ConfirmPrivateVirtualInterfaceRequest(input *ConfirmPrivateVirtualInterfaceInput) (req *request.Request, output *ConfirmPrivateVirtualInterfaceOutput) { op := &request.Operation{ - Name: opCreateInterconnect, + Name: opConfirmPrivateVirtualInterface, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &CreateInterconnectInput{} + input = &ConfirmPrivateVirtualInterfaceInput{} } + output = &ConfirmPrivateVirtualInterfaceOutput{} req = c.newRequest(op, input, output) - output = &Interconnect{} - req.Data = output return } -// CreateInterconnect API operation for AWS Direct Connect. -// -// Creates a new interconnect between a AWS Direct Connect partner's network -// and a specific AWS Direct Connect location. -// -// An interconnect is a connection which is capable of hosting other connections. -// The AWS Direct Connect partner can use an interconnect to provide sub-1Gbps -// AWS Direct Connect service to tier 2 customers who do not have their own -// connections. Like a standard connection, an interconnect links the AWS Direct -// Connect partner's network to an AWS Direct Connect location over a standard -// 1 Gbps or 10 Gbps Ethernet fiber-optic cable. One end is connected to the -// partner's router, the other to an AWS Direct Connect router. +// ConfirmPrivateVirtualInterface API operation for AWS Direct Connect. // -// For each end customer, the AWS Direct Connect partner provisions a connection -// on their interconnect by calling AllocateConnectionOnInterconnect. The end -// customer can then connect to AWS resources by creating a virtual interface -// on their connection, using the VLAN assigned to them by the AWS Direct Connect -// partner. +// Accept ownership of a private virtual interface created by another customer. // -// This is intended for use by AWS Direct Connect partners only. +// After the virtual interface owner calls this function, the virtual interface +// will be created and attached to the given virtual private gateway, and will +// be available for handling traffic. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Direct Connect's -// API operation CreateInterconnect for usage and error information. +// API operation ConfirmPrivateVirtualInterface for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // -func (c *DirectConnect) CreateInterconnect(input *CreateInterconnectInput) (*Interconnect, error) { - req, out := c.CreateInterconnectRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/ConfirmPrivateVirtualInterface +func (c *DirectConnect) ConfirmPrivateVirtualInterface(input *ConfirmPrivateVirtualInterfaceInput) (*ConfirmPrivateVirtualInterfaceOutput, error) { + req, out := c.ConfirmPrivateVirtualInterfaceRequest(input) err := req.Send() return out, err } -const opCreatePrivateVirtualInterface = "CreatePrivateVirtualInterface" +const opConfirmPublicVirtualInterface = "ConfirmPublicVirtualInterface" -// CreatePrivateVirtualInterfaceRequest generates a "aws/request.Request" representing the -// client's request for the CreatePrivateVirtualInterface operation. The "output" return +// ConfirmPublicVirtualInterfaceRequest generates a "aws/request.Request" representing the +// client's request for the ConfirmPublicVirtualInterface operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See CreatePrivateVirtualInterface for usage and error information. +// See ConfirmPublicVirtualInterface for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the CreatePrivateVirtualInterface method directly +// you just want the service response, call the ConfirmPublicVirtualInterface method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the CreatePrivateVirtualInterfaceRequest method. -// req, resp := client.CreatePrivateVirtualInterfaceRequest(params) +// // Example sending a request using the ConfirmPublicVirtualInterfaceRequest method. +// req, resp := client.ConfirmPublicVirtualInterfaceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *DirectConnect) CreatePrivateVirtualInterfaceRequest(input *CreatePrivateVirtualInterfaceInput) (req *request.Request, output *VirtualInterface) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/ConfirmPublicVirtualInterface +func (c *DirectConnect) ConfirmPublicVirtualInterfaceRequest(input *ConfirmPublicVirtualInterfaceInput) (req *request.Request, output *ConfirmPublicVirtualInterfaceOutput) { op := &request.Operation{ - Name: opCreatePrivateVirtualInterface, + Name: opConfirmPublicVirtualInterface, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &CreatePrivateVirtualInterfaceInput{} + input = &ConfirmPublicVirtualInterfaceInput{} } + output = &ConfirmPublicVirtualInterfaceOutput{} req = c.newRequest(op, input, output) - output = &VirtualInterface{} - req.Data = output return } -// CreatePrivateVirtualInterface API operation for AWS Direct Connect. +// ConfirmPublicVirtualInterface API operation for AWS Direct Connect. // -// Creates a new private virtual interface. A virtual interface is the VLAN -// that transports AWS Direct Connect traffic. A private virtual interface supports -// sending traffic to a single virtual private cloud (VPC). +// Accept ownership of a public virtual interface created by another customer. +// +// After the virtual interface owner calls this function, the specified virtual +// interface will be created and made available for handling traffic. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Direct Connect's -// API operation CreatePrivateVirtualInterface for usage and error information. +// API operation ConfirmPublicVirtualInterface for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // -func (c *DirectConnect) CreatePrivateVirtualInterface(input *CreatePrivateVirtualInterfaceInput) (*VirtualInterface, error) { - req, out := c.CreatePrivateVirtualInterfaceRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/ConfirmPublicVirtualInterface +func (c *DirectConnect) ConfirmPublicVirtualInterface(input *ConfirmPublicVirtualInterfaceInput) (*ConfirmPublicVirtualInterfaceOutput, error) { + req, out := c.ConfirmPublicVirtualInterfaceRequest(input) err := req.Send() return out, err } -const opCreatePublicVirtualInterface = "CreatePublicVirtualInterface" +const opCreateBGPPeer = "CreateBGPPeer" -// CreatePublicVirtualInterfaceRequest generates a "aws/request.Request" representing the -// client's request for the CreatePublicVirtualInterface operation. The "output" return +// CreateBGPPeerRequest generates a "aws/request.Request" representing the +// client's request for the CreateBGPPeer operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See CreatePublicVirtualInterface for usage and error information. +// See CreateBGPPeer for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the CreatePublicVirtualInterface method directly +// you just want the service response, call the CreateBGPPeer method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the CreatePublicVirtualInterfaceRequest method. -// req, resp := client.CreatePublicVirtualInterfaceRequest(params) +// // Example sending a request using the CreateBGPPeerRequest method. +// req, resp := client.CreateBGPPeerRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *DirectConnect) CreatePublicVirtualInterfaceRequest(input *CreatePublicVirtualInterfaceInput) (req *request.Request, output *VirtualInterface) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateBGPPeer +func (c *DirectConnect) CreateBGPPeerRequest(input *CreateBGPPeerInput) (req *request.Request, output *CreateBGPPeerOutput) { op := &request.Operation{ - Name: opCreatePublicVirtualInterface, + Name: opCreateBGPPeer, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &CreatePublicVirtualInterfaceInput{} + input = &CreateBGPPeerInput{} } + output = &CreateBGPPeerOutput{} req = c.newRequest(op, input, output) - output = &VirtualInterface{} - req.Data = output return } -// CreatePublicVirtualInterface API operation for AWS Direct Connect. +// CreateBGPPeer API operation for AWS Direct Connect. // -// Creates a new public virtual interface. A virtual interface is the VLAN that -// transports AWS Direct Connect traffic. A public virtual interface supports -// sending traffic to public services of AWS such as Amazon Simple Storage Service -// (Amazon S3). +// Creates a new BGP peer on a specified virtual interface. The BGP peer cannot +// be in the same address family (IPv4/IPv6) of an existing BGP peer on the +// virtual interface. +// +// You must create a BGP peer for the corresponding address family in order +// to access AWS resources that also use that address family. +// +// When creating a IPv6 BGP peer, the Amazon address and customer address fields +// must be left blank. IPv6 addresses are automatically assigned from Amazon's +// pool of IPv6 addresses; you cannot specify custom IPv6 addresses. +// +// For a public virtual interface, the Autonomous System Number (ASN) must be +// private or already whitelisted for the virtual interface. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Direct Connect's -// API operation CreatePublicVirtualInterface for usage and error information. +// API operation CreateBGPPeer for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // -func (c *DirectConnect) CreatePublicVirtualInterface(input *CreatePublicVirtualInterfaceInput) (*VirtualInterface, error) { - req, out := c.CreatePublicVirtualInterfaceRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateBGPPeer +func (c *DirectConnect) CreateBGPPeer(input *CreateBGPPeerInput) (*CreateBGPPeerOutput, error) { + req, out := c.CreateBGPPeerRequest(input) err := req.Send() return out, err } -const opDeleteConnection = "DeleteConnection" +const opCreateConnection = "CreateConnection" -// DeleteConnectionRequest generates a "aws/request.Request" representing the -// client's request for the DeleteConnection operation. The "output" return +// CreateConnectionRequest generates a "aws/request.Request" representing the +// client's request for the CreateConnection operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DeleteConnection for usage and error information. +// See CreateConnection for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DeleteConnection method directly +// you just want the service response, call the CreateConnection method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DeleteConnectionRequest method. -// req, resp := client.DeleteConnectionRequest(params) +// // Example sending a request using the CreateConnectionRequest method. +// req, resp := client.CreateConnectionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *DirectConnect) DeleteConnectionRequest(input *DeleteConnectionInput) (req *request.Request, output *Connection) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateConnection +func (c *DirectConnect) CreateConnectionRequest(input *CreateConnectionInput) (req *request.Request, output *Connection) { op := &request.Operation{ - Name: opDeleteConnection, + Name: opCreateConnection, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteConnectionInput{} + input = &CreateConnectionInput{} } - req = c.newRequest(op, input, output) output = &Connection{} - req.Data = output + req = c.newRequest(op, input, output) return } -// DeleteConnection API operation for AWS Direct Connect. +// CreateConnection API operation for AWS Direct Connect. // -// Deletes the connection. +// Creates a new connection between the customer network and a specific AWS +// Direct Connect location. // -// Deleting a connection only stops the AWS Direct Connect port hour and data -// transfer charges. You need to cancel separately with the providers any services -// or charges for cross-connects or network circuits that connect you to the -// AWS Direct Connect location. +// A connection links your internal network to an AWS Direct Connect location +// over a standard 1 gigabit or 10 gigabit Ethernet fiber-optic cable. One end +// of the cable is connected to your router, the other to an AWS Direct Connect +// router. An AWS Direct Connect location provides access to Amazon Web Services +// in the region it is associated with. You can establish connections with AWS +// Direct Connect locations in multiple regions, but a connection in one region +// does not provide connectivity to other regions. +// +// You can automatically add the new connection to a link aggregation group +// (LAG) by specifying a LAG ID in the request. This ensures that the new connection +// is allocated on the same AWS Direct Connect endpoint that hosts the specified +// LAG. If there are no available ports on the endpoint, the request fails and +// no connection will be created. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Direct Connect's -// API operation DeleteConnection for usage and error information. +// API operation CreateConnection for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // -func (c *DirectConnect) DeleteConnection(input *DeleteConnectionInput) (*Connection, error) { - req, out := c.DeleteConnectionRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateConnection +func (c *DirectConnect) CreateConnection(input *CreateConnectionInput) (*Connection, error) { + req, out := c.CreateConnectionRequest(input) err := req.Send() return out, err } -const opDeleteInterconnect = "DeleteInterconnect" +const opCreateInterconnect = "CreateInterconnect" -// DeleteInterconnectRequest generates a "aws/request.Request" representing the -// client's request for the DeleteInterconnect operation. The "output" return +// CreateInterconnectRequest generates a "aws/request.Request" representing the +// client's request for the CreateInterconnect operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DeleteInterconnect for usage and error information. +// See CreateInterconnect for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DeleteInterconnect method directly +// you just want the service response, call the CreateInterconnect method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DeleteInterconnectRequest method. -// req, resp := client.DeleteInterconnectRequest(params) +// // Example sending a request using the CreateInterconnectRequest method. +// req, resp := client.CreateInterconnectRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *DirectConnect) DeleteInterconnectRequest(input *DeleteInterconnectInput) (req *request.Request, output *DeleteInterconnectOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateInterconnect +func (c *DirectConnect) CreateInterconnectRequest(input *CreateInterconnectInput) (req *request.Request, output *Interconnect) { op := &request.Operation{ - Name: opDeleteInterconnect, + Name: opCreateInterconnect, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteInterconnectInput{} + input = &CreateInterconnectInput{} } + output = &Interconnect{} req = c.newRequest(op, input, output) - output = &DeleteInterconnectOutput{} - req.Data = output return } -// DeleteInterconnect API operation for AWS Direct Connect. +// CreateInterconnect API operation for AWS Direct Connect. // -// Deletes the specified interconnect. +// Creates a new interconnect between a AWS Direct Connect partner's network +// and a specific AWS Direct Connect location. +// +// An interconnect is a connection which is capable of hosting other connections. +// The AWS Direct Connect partner can use an interconnect to provide sub-1Gbps +// AWS Direct Connect service to tier 2 customers who do not have their own +// connections. Like a standard connection, an interconnect links the AWS Direct +// Connect partner's network to an AWS Direct Connect location over a standard +// 1 Gbps or 10 Gbps Ethernet fiber-optic cable. One end is connected to the +// partner's router, the other to an AWS Direct Connect router. +// +// You can automatically add the new interconnect to a link aggregation group +// (LAG) by specifying a LAG ID in the request. This ensures that the new interconnect +// is allocated on the same AWS Direct Connect endpoint that hosts the specified +// LAG. If there are no available ports on the endpoint, the request fails and +// no interconnect will be created. +// +// For each end customer, the AWS Direct Connect partner provisions a connection +// on their interconnect by calling AllocateConnectionOnInterconnect. The end +// customer can then connect to AWS resources by creating a virtual interface +// on their connection, using the VLAN assigned to them by the AWS Direct Connect +// partner. // -// This is intended for use by AWS Direct Connect partners only. +// This is intended for use by AWS Direct Connect partners only. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Direct Connect's -// API operation DeleteInterconnect for usage and error information. +// API operation CreateInterconnect for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // -func (c *DirectConnect) DeleteInterconnect(input *DeleteInterconnectInput) (*DeleteInterconnectOutput, error) { - req, out := c.DeleteInterconnectRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateInterconnect +func (c *DirectConnect) CreateInterconnect(input *CreateInterconnectInput) (*Interconnect, error) { + req, out := c.CreateInterconnectRequest(input) err := req.Send() return out, err } -const opDeleteVirtualInterface = "DeleteVirtualInterface" +const opCreateLag = "CreateLag" -// DeleteVirtualInterfaceRequest generates a "aws/request.Request" representing the -// client's request for the DeleteVirtualInterface operation. The "output" return +// CreateLagRequest generates a "aws/request.Request" representing the +// client's request for the CreateLag operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DeleteVirtualInterface for usage and error information. +// See CreateLag for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DeleteVirtualInterface method directly +// you just want the service response, call the CreateLag method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DeleteVirtualInterfaceRequest method. -// req, resp := client.DeleteVirtualInterfaceRequest(params) +// // Example sending a request using the CreateLagRequest method. +// req, resp := client.CreateLagRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *DirectConnect) DeleteVirtualInterfaceRequest(input *DeleteVirtualInterfaceInput) (req *request.Request, output *DeleteVirtualInterfaceOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateLag +func (c *DirectConnect) CreateLagRequest(input *CreateLagInput) (req *request.Request, output *Lag) { op := &request.Operation{ - Name: opDeleteVirtualInterface, + Name: opCreateLag, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteVirtualInterfaceInput{} + input = &CreateLagInput{} } + output = &Lag{} req = c.newRequest(op, input, output) - output = &DeleteVirtualInterfaceOutput{} - req.Data = output return } -// DeleteVirtualInterface API operation for AWS Direct Connect. +// CreateLag API operation for AWS Direct Connect. // -// Deletes a virtual interface. +// Creates a new link aggregation group (LAG) with the specified number of bundled +// physical connections between the customer network and a specific AWS Direct +// Connect location. A LAG is a logical interface that uses the Link Aggregation +// Control Protocol (LACP) to aggregate multiple 1 gigabit or 10 gigabit interfaces, +// allowing you to treat them as a single interface. +// +// All connections in a LAG must use the same bandwidth (for example, 10 Gbps), +// and must terminate at the same AWS Direct Connect endpoint. +// +// You can have up to 10 connections per LAG. Regardless of this limit, if you +// request more connections for the LAG than AWS Direct Connect can allocate +// on a single endpoint, no LAG is created. +// +// You can specify an existing physical connection or interconnect to include +// in the LAG (which counts towards the total number of connections). Doing +// so interrupts the current physical connection or hosted connections, and +// re-establishes them as a member of the LAG. The LAG will be created on the +// same AWS Direct Connect endpoint to which the connection terminates. Any +// virtual interfaces associated with the connection are automatically disassociated +// and re-associated with the LAG. The connection ID does not change. +// +// If the AWS account used to create a LAG is a registered AWS Direct Connect +// partner, the LAG is automatically enabled to host sub-connections. For a +// LAG owned by a partner, any associated virtual interfaces cannot be directly +// configured. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Direct Connect's -// API operation DeleteVirtualInterface for usage and error information. +// API operation CreateLag for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // -func (c *DirectConnect) DeleteVirtualInterface(input *DeleteVirtualInterfaceInput) (*DeleteVirtualInterfaceOutput, error) { - req, out := c.DeleteVirtualInterfaceRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateLag +func (c *DirectConnect) CreateLag(input *CreateLagInput) (*Lag, error) { + req, out := c.CreateLagRequest(input) err := req.Send() return out, err } -const opDescribeConnectionLoa = "DescribeConnectionLoa" +const opCreatePrivateVirtualInterface = "CreatePrivateVirtualInterface" -// DescribeConnectionLoaRequest generates a "aws/request.Request" representing the -// client's request for the DescribeConnectionLoa operation. The "output" return +// CreatePrivateVirtualInterfaceRequest generates a "aws/request.Request" representing the +// client's request for the CreatePrivateVirtualInterface operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeConnectionLoa for usage and error information. +// See CreatePrivateVirtualInterface for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeConnectionLoa method directly +// you just want the service response, call the CreatePrivateVirtualInterface method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeConnectionLoaRequest method. -// req, resp := client.DescribeConnectionLoaRequest(params) +// // Example sending a request using the CreatePrivateVirtualInterfaceRequest method. +// req, resp := client.CreatePrivateVirtualInterfaceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *DirectConnect) DescribeConnectionLoaRequest(input *DescribeConnectionLoaInput) (req *request.Request, output *DescribeConnectionLoaOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreatePrivateVirtualInterface +func (c *DirectConnect) CreatePrivateVirtualInterfaceRequest(input *CreatePrivateVirtualInterfaceInput) (req *request.Request, output *VirtualInterface) { op := &request.Operation{ - Name: opDescribeConnectionLoa, + Name: opCreatePrivateVirtualInterface, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeConnectionLoaInput{} + input = &CreatePrivateVirtualInterfaceInput{} } + output = &VirtualInterface{} req = c.newRequest(op, input, output) - output = &DescribeConnectionLoaOutput{} - req.Data = output return } -// DescribeConnectionLoa API operation for AWS Direct Connect. -// -// Returns the LOA-CFA for a Connection. +// CreatePrivateVirtualInterface API operation for AWS Direct Connect. // -// The Letter of Authorization - Connecting Facility Assignment (LOA-CFA) is -// a document that your APN partner or service provider uses when establishing -// your cross connect to AWS at the colocation facility. For more information, -// see Requesting Cross Connects at AWS Direct Connect Locations (http://docs.aws.amazon.com/directconnect/latest/UserGuide/Colocation.html) -// in the AWS Direct Connect user guide. +// Creates a new private virtual interface. A virtual interface is the VLAN +// that transports AWS Direct Connect traffic. A private virtual interface supports +// sending traffic to a single virtual private cloud (VPC). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Direct Connect's -// API operation DescribeConnectionLoa for usage and error information. +// API operation CreatePrivateVirtualInterface for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // -func (c *DirectConnect) DescribeConnectionLoa(input *DescribeConnectionLoaInput) (*DescribeConnectionLoaOutput, error) { - req, out := c.DescribeConnectionLoaRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreatePrivateVirtualInterface +func (c *DirectConnect) CreatePrivateVirtualInterface(input *CreatePrivateVirtualInterfaceInput) (*VirtualInterface, error) { + req, out := c.CreatePrivateVirtualInterfaceRequest(input) err := req.Send() return out, err } -const opDescribeConnections = "DescribeConnections" +const opCreatePublicVirtualInterface = "CreatePublicVirtualInterface" -// DescribeConnectionsRequest generates a "aws/request.Request" representing the -// client's request for the DescribeConnections operation. The "output" return +// CreatePublicVirtualInterfaceRequest generates a "aws/request.Request" representing the +// client's request for the CreatePublicVirtualInterface operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeConnections for usage and error information. +// See CreatePublicVirtualInterface for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeConnections method directly +// you just want the service response, call the CreatePublicVirtualInterface method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeConnectionsRequest method. -// req, resp := client.DescribeConnectionsRequest(params) +// // Example sending a request using the CreatePublicVirtualInterfaceRequest method. +// req, resp := client.CreatePublicVirtualInterfaceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *DirectConnect) DescribeConnectionsRequest(input *DescribeConnectionsInput) (req *request.Request, output *Connections) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreatePublicVirtualInterface +func (c *DirectConnect) CreatePublicVirtualInterfaceRequest(input *CreatePublicVirtualInterfaceInput) (req *request.Request, output *VirtualInterface) { op := &request.Operation{ - Name: opDescribeConnections, + Name: opCreatePublicVirtualInterface, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeConnectionsInput{} + input = &CreatePublicVirtualInterfaceInput{} } + output = &VirtualInterface{} req = c.newRequest(op, input, output) - output = &Connections{} - req.Data = output return } -// DescribeConnections API operation for AWS Direct Connect. +// CreatePublicVirtualInterface API operation for AWS Direct Connect. // -// Displays all connections in this region. +// Creates a new public virtual interface. A virtual interface is the VLAN that +// transports AWS Direct Connect traffic. A public virtual interface supports +// sending traffic to public services of AWS such as Amazon Simple Storage Service +// (Amazon S3). // -// If a connection ID is provided, the call returns only that particular connection. +// When creating an IPv6 public virtual interface (addressFamily is 'ipv6'), +// the customer and amazon address fields should be left blank to use auto-assigned +// IPv6 space. Custom IPv6 Addresses are currently not supported. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Direct Connect's -// API operation DescribeConnections for usage and error information. +// API operation CreatePublicVirtualInterface for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // -func (c *DirectConnect) DescribeConnections(input *DescribeConnectionsInput) (*Connections, error) { - req, out := c.DescribeConnectionsRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreatePublicVirtualInterface +func (c *DirectConnect) CreatePublicVirtualInterface(input *CreatePublicVirtualInterfaceInput) (*VirtualInterface, error) { + req, out := c.CreatePublicVirtualInterfaceRequest(input) err := req.Send() return out, err } -const opDescribeConnectionsOnInterconnect = "DescribeConnectionsOnInterconnect" +const opDeleteBGPPeer = "DeleteBGPPeer" -// DescribeConnectionsOnInterconnectRequest generates a "aws/request.Request" representing the -// client's request for the DescribeConnectionsOnInterconnect operation. The "output" return +// DeleteBGPPeerRequest generates a "aws/request.Request" representing the +// client's request for the DeleteBGPPeer operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeConnectionsOnInterconnect for usage and error information. +// See DeleteBGPPeer for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeConnectionsOnInterconnect method directly +// you just want the service response, call the DeleteBGPPeer method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeConnectionsOnInterconnectRequest method. -// req, resp := client.DescribeConnectionsOnInterconnectRequest(params) +// // Example sending a request using the DeleteBGPPeerRequest method. +// req, resp := client.DeleteBGPPeerRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *DirectConnect) DescribeConnectionsOnInterconnectRequest(input *DescribeConnectionsOnInterconnectInput) (req *request.Request, output *Connections) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteBGPPeer +func (c *DirectConnect) DeleteBGPPeerRequest(input *DeleteBGPPeerInput) (req *request.Request, output *DeleteBGPPeerOutput) { op := &request.Operation{ - Name: opDescribeConnectionsOnInterconnect, + Name: opDeleteBGPPeer, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeConnectionsOnInterconnectInput{} + input = &DeleteBGPPeerInput{} } + output = &DeleteBGPPeerOutput{} req = c.newRequest(op, input, output) - output = &Connections{} - req.Data = output return } -// DescribeConnectionsOnInterconnect API operation for AWS Direct Connect. +// DeleteBGPPeer API operation for AWS Direct Connect. // -// Return a list of connections that have been provisioned on the given interconnect. -// -// This is intended for use by AWS Direct Connect partners only. +// Deletes a BGP peer on the specified virtual interface that matches the specified +// customer address and ASN. You cannot delete the last BGP peer from a virtual +// interface. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Direct Connect's -// API operation DescribeConnectionsOnInterconnect for usage and error information. +// API operation DeleteBGPPeer for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // -func (c *DirectConnect) DescribeConnectionsOnInterconnect(input *DescribeConnectionsOnInterconnectInput) (*Connections, error) { - req, out := c.DescribeConnectionsOnInterconnectRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteBGPPeer +func (c *DirectConnect) DeleteBGPPeer(input *DeleteBGPPeerInput) (*DeleteBGPPeerOutput, error) { + req, out := c.DeleteBGPPeerRequest(input) err := req.Send() return out, err } -const opDescribeInterconnectLoa = "DescribeInterconnectLoa" +const opDeleteConnection = "DeleteConnection" -// DescribeInterconnectLoaRequest generates a "aws/request.Request" representing the -// client's request for the DescribeInterconnectLoa operation. The "output" return +// DeleteConnectionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteConnection operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeInterconnectLoa for usage and error information. +// See DeleteConnection for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeInterconnectLoa method directly +// you just want the service response, call the DeleteConnection method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeInterconnectLoaRequest method. -// req, resp := client.DescribeInterconnectLoaRequest(params) +// // Example sending a request using the DeleteConnectionRequest method. +// req, resp := client.DeleteConnectionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *DirectConnect) DescribeInterconnectLoaRequest(input *DescribeInterconnectLoaInput) (req *request.Request, output *DescribeInterconnectLoaOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteConnection +func (c *DirectConnect) DeleteConnectionRequest(input *DeleteConnectionInput) (req *request.Request, output *Connection) { op := &request.Operation{ - Name: opDescribeInterconnectLoa, + Name: opDeleteConnection, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeInterconnectLoaInput{} + input = &DeleteConnectionInput{} } + output = &Connection{} req = c.newRequest(op, input, output) - output = &DescribeInterconnectLoaOutput{} - req.Data = output return } -// DescribeInterconnectLoa API operation for AWS Direct Connect. +// DeleteConnection API operation for AWS Direct Connect. // -// Returns the LOA-CFA for an Interconnect. +// Deletes the connection. // -// The Letter of Authorization - Connecting Facility Assignment (LOA-CFA) is -// a document that is used when establishing your cross connect to AWS at the -// colocation facility. For more information, see Requesting Cross Connects -// at AWS Direct Connect Locations (http://docs.aws.amazon.com/directconnect/latest/UserGuide/Colocation.html) -// in the AWS Direct Connect user guide. +// Deleting a connection only stops the AWS Direct Connect port hour and data +// transfer charges. You need to cancel separately with the providers any services +// or charges for cross-connects or network circuits that connect you to the +// AWS Direct Connect location. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Direct Connect's -// API operation DescribeInterconnectLoa for usage and error information. +// API operation DeleteConnection for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // -func (c *DirectConnect) DescribeInterconnectLoa(input *DescribeInterconnectLoaInput) (*DescribeInterconnectLoaOutput, error) { - req, out := c.DescribeInterconnectLoaRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteConnection +func (c *DirectConnect) DeleteConnection(input *DeleteConnectionInput) (*Connection, error) { + req, out := c.DeleteConnectionRequest(input) err := req.Send() return out, err } -const opDescribeInterconnects = "DescribeInterconnects" +const opDeleteInterconnect = "DeleteInterconnect" -// DescribeInterconnectsRequest generates a "aws/request.Request" representing the -// client's request for the DescribeInterconnects operation. The "output" return +// DeleteInterconnectRequest generates a "aws/request.Request" representing the +// client's request for the DeleteInterconnect operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeInterconnects for usage and error information. +// See DeleteInterconnect for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeInterconnects method directly +// you just want the service response, call the DeleteInterconnect method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeInterconnectsRequest method. -// req, resp := client.DescribeInterconnectsRequest(params) +// // Example sending a request using the DeleteInterconnectRequest method. +// req, resp := client.DeleteInterconnectRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *DirectConnect) DescribeInterconnectsRequest(input *DescribeInterconnectsInput) (req *request.Request, output *DescribeInterconnectsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteInterconnect +func (c *DirectConnect) DeleteInterconnectRequest(input *DeleteInterconnectInput) (req *request.Request, output *DeleteInterconnectOutput) { op := &request.Operation{ - Name: opDescribeInterconnects, + Name: opDeleteInterconnect, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeInterconnectsInput{} + input = &DeleteInterconnectInput{} } + output = &DeleteInterconnectOutput{} req = c.newRequest(op, input, output) - output = &DescribeInterconnectsOutput{} - req.Data = output return } -// DescribeInterconnects API operation for AWS Direct Connect. +// DeleteInterconnect API operation for AWS Direct Connect. // -// Returns a list of interconnects owned by the AWS account. +// Deletes the specified interconnect. // -// If an interconnect ID is provided, it will only return this particular interconnect. +// This is intended for use by AWS Direct Connect partners only. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Direct Connect's -// API operation DescribeInterconnects for usage and error information. +// API operation DeleteInterconnect for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // -func (c *DirectConnect) DescribeInterconnects(input *DescribeInterconnectsInput) (*DescribeInterconnectsOutput, error) { - req, out := c.DescribeInterconnectsRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteInterconnect +func (c *DirectConnect) DeleteInterconnect(input *DeleteInterconnectInput) (*DeleteInterconnectOutput, error) { + req, out := c.DeleteInterconnectRequest(input) err := req.Send() return out, err } -const opDescribeLocations = "DescribeLocations" +const opDeleteLag = "DeleteLag" -// DescribeLocationsRequest generates a "aws/request.Request" representing the -// client's request for the DescribeLocations operation. The "output" return +// DeleteLagRequest generates a "aws/request.Request" representing the +// client's request for the DeleteLag operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeLocations for usage and error information. +// See DeleteLag for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeLocations method directly +// you just want the service response, call the DeleteLag method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeLocationsRequest method. -// req, resp := client.DescribeLocationsRequest(params) +// // Example sending a request using the DeleteLagRequest method. +// req, resp := client.DeleteLagRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *DirectConnect) DescribeLocationsRequest(input *DescribeLocationsInput) (req *request.Request, output *DescribeLocationsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteLag +func (c *DirectConnect) DeleteLagRequest(input *DeleteLagInput) (req *request.Request, output *Lag) { op := &request.Operation{ - Name: opDescribeLocations, + Name: opDeleteLag, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeLocationsInput{} + input = &DeleteLagInput{} } + output = &Lag{} req = c.newRequest(op, input, output) - output = &DescribeLocationsOutput{} - req.Data = output return } -// DescribeLocations API operation for AWS Direct Connect. +// DeleteLag API operation for AWS Direct Connect. // -// Returns the list of AWS Direct Connect locations in the current AWS region. -// These are the locations that may be selected when calling CreateConnection -// or CreateInterconnect. +// Deletes a link aggregation group (LAG). You cannot delete a LAG if it has +// active virtual interfaces or hosted connections. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Direct Connect's -// API operation DescribeLocations for usage and error information. +// API operation DeleteLag for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // -func (c *DirectConnect) DescribeLocations(input *DescribeLocationsInput) (*DescribeLocationsOutput, error) { - req, out := c.DescribeLocationsRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteLag +func (c *DirectConnect) DeleteLag(input *DeleteLagInput) (*Lag, error) { + req, out := c.DeleteLagRequest(input) err := req.Send() return out, err } -const opDescribeVirtualGateways = "DescribeVirtualGateways" +const opDeleteVirtualInterface = "DeleteVirtualInterface" -// DescribeVirtualGatewaysRequest generates a "aws/request.Request" representing the -// client's request for the DescribeVirtualGateways operation. The "output" return +// DeleteVirtualInterfaceRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVirtualInterface operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeVirtualGateways for usage and error information. +// See DeleteVirtualInterface for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeVirtualGateways method directly +// you just want the service response, call the DeleteVirtualInterface method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeVirtualGatewaysRequest method. -// req, resp := client.DescribeVirtualGatewaysRequest(params) +// // Example sending a request using the DeleteVirtualInterfaceRequest method. +// req, resp := client.DeleteVirtualInterfaceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *DirectConnect) DescribeVirtualGatewaysRequest(input *DescribeVirtualGatewaysInput) (req *request.Request, output *DescribeVirtualGatewaysOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteVirtualInterface +func (c *DirectConnect) DeleteVirtualInterfaceRequest(input *DeleteVirtualInterfaceInput) (req *request.Request, output *DeleteVirtualInterfaceOutput) { op := &request.Operation{ - Name: opDescribeVirtualGateways, + Name: opDeleteVirtualInterface, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeVirtualGatewaysInput{} + input = &DeleteVirtualInterfaceInput{} } + output = &DeleteVirtualInterfaceOutput{} req = c.newRequest(op, input, output) - output = &DescribeVirtualGatewaysOutput{} - req.Data = output return } -// DescribeVirtualGateways API operation for AWS Direct Connect. -// -// Returns a list of virtual private gateways owned by the AWS account. +// DeleteVirtualInterface API operation for AWS Direct Connect. // -// You can create one or more AWS Direct Connect private virtual interfaces -// linking to a virtual private gateway. A virtual private gateway can be managed -// via Amazon Virtual Private Cloud (VPC) console or the EC2 CreateVpnGateway -// (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateVpnGateway.html) -// action. +// Deletes a virtual interface. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Direct Connect's -// API operation DescribeVirtualGateways for usage and error information. +// API operation DeleteVirtualInterface for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // -func (c *DirectConnect) DescribeVirtualGateways(input *DescribeVirtualGatewaysInput) (*DescribeVirtualGatewaysOutput, error) { - req, out := c.DescribeVirtualGatewaysRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteVirtualInterface +func (c *DirectConnect) DeleteVirtualInterface(input *DeleteVirtualInterfaceInput) (*DeleteVirtualInterfaceOutput, error) { + req, out := c.DeleteVirtualInterfaceRequest(input) err := req.Send() return out, err } -const opDescribeVirtualInterfaces = "DescribeVirtualInterfaces" +const opDescribeConnectionLoa = "DescribeConnectionLoa" -// DescribeVirtualInterfacesRequest generates a "aws/request.Request" representing the -// client's request for the DescribeVirtualInterfaces operation. The "output" return +// DescribeConnectionLoaRequest generates a "aws/request.Request" representing the +// client's request for the DescribeConnectionLoa operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeVirtualInterfaces for usage and error information. +// See DescribeConnectionLoa for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeVirtualInterfaces method directly +// you just want the service response, call the DescribeConnectionLoa method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeVirtualInterfacesRequest method. -// req, resp := client.DescribeVirtualInterfacesRequest(params) +// // Example sending a request using the DescribeConnectionLoaRequest method. +// req, resp := client.DescribeConnectionLoaRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *DirectConnect) DescribeVirtualInterfacesRequest(input *DescribeVirtualInterfacesInput) (req *request.Request, output *DescribeVirtualInterfacesOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeConnectionLoa +func (c *DirectConnect) DescribeConnectionLoaRequest(input *DescribeConnectionLoaInput) (req *request.Request, output *DescribeConnectionLoaOutput) { op := &request.Operation{ - Name: opDescribeVirtualInterfaces, + Name: opDescribeConnectionLoa, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeVirtualInterfacesInput{} + input = &DescribeConnectionLoaInput{} } + output = &DescribeConnectionLoaOutput{} req = c.newRequest(op, input, output) - output = &DescribeVirtualInterfacesOutput{} - req.Data = output return } -// DescribeVirtualInterfaces API operation for AWS Direct Connect. +// DescribeConnectionLoa API operation for AWS Direct Connect. // -// Displays all virtual interfaces for an AWS account. Virtual interfaces deleted -// fewer than 15 minutes before DescribeVirtualInterfaces is called are also -// returned. If a connection ID is included then only virtual interfaces associated -// with this connection will be returned. If a virtual interface ID is included -// then only a single virtual interface will be returned. +// Deprecated in favor of DescribeLoa. // -// A virtual interface (VLAN) transmits the traffic between the AWS Direct -// Connect location and the customer. +// Returns the LOA-CFA for a Connection. // -// If a connection ID is provided, only virtual interfaces provisioned on the -// specified connection will be returned. If a virtual interface ID is provided, -// only this particular virtual interface will be returned. +// The Letter of Authorization - Connecting Facility Assignment (LOA-CFA) is +// a document that your APN partner or service provider uses when establishing +// your cross connect to AWS at the colocation facility. For more information, +// see Requesting Cross Connects at AWS Direct Connect Locations (http://docs.aws.amazon.com/directconnect/latest/UserGuide/Colocation.html) +// in the AWS Direct Connect user guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Direct Connect's -// API operation DescribeVirtualInterfaces for usage and error information. +// API operation DescribeConnectionLoa for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // A server-side error occurred during the API call. The error message will // contain additional details about the cause. // -// * ClientException +// * ErrCodeClientException "ClientException" // The API was called with invalid parameters. The error message will contain // additional details about the cause. // -func (c *DirectConnect) DescribeVirtualInterfaces(input *DescribeVirtualInterfacesInput) (*DescribeVirtualInterfacesOutput, error) { - req, out := c.DescribeVirtualInterfacesRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeConnectionLoa +func (c *DirectConnect) DescribeConnectionLoa(input *DescribeConnectionLoaInput) (*DescribeConnectionLoaOutput, error) { + req, out := c.DescribeConnectionLoaRequest(input) err := req.Send() return out, err } -// Container for the parameters to the AllocateConnectionOnInterconnect operation. -type AllocateConnectionOnInterconnectInput struct { - _ struct{} `type:"structure"` - - // Bandwidth of the connection. - // - // Example: "500Mbps" - // - // Default: None - // - // Values: 50M, 100M, 200M, 300M, 400M, or 500M - // - // Bandwidth is a required field - Bandwidth *string `locationName:"bandwidth" type:"string" required:"true"` - - // Name of the provisioned connection. - // - // Example: "500M Connection to AWS" - // - // Default: None - // - // ConnectionName is a required field - ConnectionName *string `locationName:"connectionName" type:"string" required:"true"` +const opDescribeConnections = "DescribeConnections" - // ID of the interconnect on which the connection will be provisioned. - // - // Example: dxcon-456abc78 - // - // Default: None - // - // InterconnectId is a required field - InterconnectId *string `locationName:"interconnectId" type:"string" required:"true"` +// DescribeConnectionsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeConnections operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeConnections for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeConnections method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeConnectionsRequest method. +// req, resp := client.DescribeConnectionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeConnections +func (c *DirectConnect) DescribeConnectionsRequest(input *DescribeConnectionsInput) (req *request.Request, output *Connections) { + op := &request.Operation{ + Name: opDescribeConnections, + HTTPMethod: "POST", + HTTPPath: "/", + } - // Numeric account Id of the customer for whom the connection will be provisioned. - // - // Example: 123443215678 - // - // Default: None - // - // OwnerAccount is a required field - OwnerAccount *string `locationName:"ownerAccount" type:"string" required:"true"` + if input == nil { + input = &DescribeConnectionsInput{} + } - // The dedicated VLAN provisioned to the connection. - // - // Example: 101 - // - // Default: None - // - // Vlan is a required field - Vlan *int64 `locationName:"vlan" type:"integer" required:"true"` + output = &Connections{} + req = c.newRequest(op, input, output) + return } -// String returns the string representation -func (s AllocateConnectionOnInterconnectInput) String() string { - return awsutil.Prettify(s) +// DescribeConnections API operation for AWS Direct Connect. +// +// Displays all connections in this region. +// +// If a connection ID is provided, the call returns only that particular connection. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DescribeConnections for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServerException "ServerException" +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ErrCodeClientException "ClientException" +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeConnections +func (c *DirectConnect) DescribeConnections(input *DescribeConnectionsInput) (*Connections, error) { + req, out := c.DescribeConnectionsRequest(input) + err := req.Send() + return out, err } -// GoString returns the string representation -func (s AllocateConnectionOnInterconnectInput) GoString() string { - return s.String() -} +const opDescribeConnectionsOnInterconnect = "DescribeConnectionsOnInterconnect" -// Validate inspects the fields of the type to determine if they are valid. -func (s *AllocateConnectionOnInterconnectInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AllocateConnectionOnInterconnectInput"} +// DescribeConnectionsOnInterconnectRequest generates a "aws/request.Request" representing the +// client's request for the DescribeConnectionsOnInterconnect operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeConnectionsOnInterconnect for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeConnectionsOnInterconnect method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeConnectionsOnInterconnectRequest method. +// req, resp := client.DescribeConnectionsOnInterconnectRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeConnectionsOnInterconnect +func (c *DirectConnect) DescribeConnectionsOnInterconnectRequest(input *DescribeConnectionsOnInterconnectInput) (req *request.Request, output *Connections) { + op := &request.Operation{ + Name: opDescribeConnectionsOnInterconnect, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeConnectionsOnInterconnectInput{} + } + + output = &Connections{} + req = c.newRequest(op, input, output) + return +} + +// DescribeConnectionsOnInterconnect API operation for AWS Direct Connect. +// +// Deprecated in favor of DescribeHostedConnections. +// +// Returns a list of connections that have been provisioned on the given interconnect. +// +// This is intended for use by AWS Direct Connect partners only. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DescribeConnectionsOnInterconnect for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServerException "ServerException" +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ErrCodeClientException "ClientException" +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeConnectionsOnInterconnect +func (c *DirectConnect) DescribeConnectionsOnInterconnect(input *DescribeConnectionsOnInterconnectInput) (*Connections, error) { + req, out := c.DescribeConnectionsOnInterconnectRequest(input) + err := req.Send() + return out, err +} + +const opDescribeHostedConnections = "DescribeHostedConnections" + +// DescribeHostedConnectionsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeHostedConnections operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeHostedConnections for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeHostedConnections method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeHostedConnectionsRequest method. +// req, resp := client.DescribeHostedConnectionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeHostedConnections +func (c *DirectConnect) DescribeHostedConnectionsRequest(input *DescribeHostedConnectionsInput) (req *request.Request, output *Connections) { + op := &request.Operation{ + Name: opDescribeHostedConnections, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeHostedConnectionsInput{} + } + + output = &Connections{} + req = c.newRequest(op, input, output) + return +} + +// DescribeHostedConnections API operation for AWS Direct Connect. +// +// Returns a list of hosted connections that have been provisioned on the given +// interconnect or link aggregation group (LAG). +// +// This is intended for use by AWS Direct Connect partners only. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DescribeHostedConnections for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServerException "ServerException" +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ErrCodeClientException "ClientException" +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeHostedConnections +func (c *DirectConnect) DescribeHostedConnections(input *DescribeHostedConnectionsInput) (*Connections, error) { + req, out := c.DescribeHostedConnectionsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeInterconnectLoa = "DescribeInterconnectLoa" + +// DescribeInterconnectLoaRequest generates a "aws/request.Request" representing the +// client's request for the DescribeInterconnectLoa operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeInterconnectLoa for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeInterconnectLoa method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeInterconnectLoaRequest method. +// req, resp := client.DescribeInterconnectLoaRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeInterconnectLoa +func (c *DirectConnect) DescribeInterconnectLoaRequest(input *DescribeInterconnectLoaInput) (req *request.Request, output *DescribeInterconnectLoaOutput) { + op := &request.Operation{ + Name: opDescribeInterconnectLoa, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeInterconnectLoaInput{} + } + + output = &DescribeInterconnectLoaOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeInterconnectLoa API operation for AWS Direct Connect. +// +// Deprecated in favor of DescribeLoa. +// +// Returns the LOA-CFA for an Interconnect. +// +// The Letter of Authorization - Connecting Facility Assignment (LOA-CFA) is +// a document that is used when establishing your cross connect to AWS at the +// colocation facility. For more information, see Requesting Cross Connects +// at AWS Direct Connect Locations (http://docs.aws.amazon.com/directconnect/latest/UserGuide/Colocation.html) +// in the AWS Direct Connect user guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DescribeInterconnectLoa for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServerException "ServerException" +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ErrCodeClientException "ClientException" +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeInterconnectLoa +func (c *DirectConnect) DescribeInterconnectLoa(input *DescribeInterconnectLoaInput) (*DescribeInterconnectLoaOutput, error) { + req, out := c.DescribeInterconnectLoaRequest(input) + err := req.Send() + return out, err +} + +const opDescribeInterconnects = "DescribeInterconnects" + +// DescribeInterconnectsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeInterconnects operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeInterconnects for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeInterconnects method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeInterconnectsRequest method. +// req, resp := client.DescribeInterconnectsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeInterconnects +func (c *DirectConnect) DescribeInterconnectsRequest(input *DescribeInterconnectsInput) (req *request.Request, output *DescribeInterconnectsOutput) { + op := &request.Operation{ + Name: opDescribeInterconnects, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeInterconnectsInput{} + } + + output = &DescribeInterconnectsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeInterconnects API operation for AWS Direct Connect. +// +// Returns a list of interconnects owned by the AWS account. +// +// If an interconnect ID is provided, it will only return this particular interconnect. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DescribeInterconnects for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServerException "ServerException" +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ErrCodeClientException "ClientException" +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeInterconnects +func (c *DirectConnect) DescribeInterconnects(input *DescribeInterconnectsInput) (*DescribeInterconnectsOutput, error) { + req, out := c.DescribeInterconnectsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeLags = "DescribeLags" + +// DescribeLagsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeLags operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeLags for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeLags method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeLagsRequest method. +// req, resp := client.DescribeLagsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeLags +func (c *DirectConnect) DescribeLagsRequest(input *DescribeLagsInput) (req *request.Request, output *DescribeLagsOutput) { + op := &request.Operation{ + Name: opDescribeLags, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeLagsInput{} + } + + output = &DescribeLagsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeLags API operation for AWS Direct Connect. +// +// Describes the link aggregation groups (LAGs) in your account. +// +// If a LAG ID is provided, only information about the specified LAG is returned. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DescribeLags for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServerException "ServerException" +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ErrCodeClientException "ClientException" +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeLags +func (c *DirectConnect) DescribeLags(input *DescribeLagsInput) (*DescribeLagsOutput, error) { + req, out := c.DescribeLagsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeLoa = "DescribeLoa" + +// DescribeLoaRequest generates a "aws/request.Request" representing the +// client's request for the DescribeLoa operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeLoa for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeLoa method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeLoaRequest method. +// req, resp := client.DescribeLoaRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeLoa +func (c *DirectConnect) DescribeLoaRequest(input *DescribeLoaInput) (req *request.Request, output *Loa) { + op := &request.Operation{ + Name: opDescribeLoa, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeLoaInput{} + } + + output = &Loa{} + req = c.newRequest(op, input, output) + return +} + +// DescribeLoa API operation for AWS Direct Connect. +// +// Returns the LOA-CFA for a connection, interconnect, or link aggregation group +// (LAG). +// +// The Letter of Authorization - Connecting Facility Assignment (LOA-CFA) is +// a document that is used when establishing your cross connect to AWS at the +// colocation facility. For more information, see Requesting Cross Connects +// at AWS Direct Connect Locations (http://docs.aws.amazon.com/directconnect/latest/UserGuide/Colocation.html) +// in the AWS Direct Connect user guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DescribeLoa for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServerException "ServerException" +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ErrCodeClientException "ClientException" +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeLoa +func (c *DirectConnect) DescribeLoa(input *DescribeLoaInput) (*Loa, error) { + req, out := c.DescribeLoaRequest(input) + err := req.Send() + return out, err +} + +const opDescribeLocations = "DescribeLocations" + +// DescribeLocationsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeLocations operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeLocations for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeLocations method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeLocationsRequest method. +// req, resp := client.DescribeLocationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeLocations +func (c *DirectConnect) DescribeLocationsRequest(input *DescribeLocationsInput) (req *request.Request, output *DescribeLocationsOutput) { + op := &request.Operation{ + Name: opDescribeLocations, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeLocationsInput{} + } + + output = &DescribeLocationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeLocations API operation for AWS Direct Connect. +// +// Returns the list of AWS Direct Connect locations in the current AWS region. +// These are the locations that may be selected when calling CreateConnection +// or CreateInterconnect. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DescribeLocations for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServerException "ServerException" +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ErrCodeClientException "ClientException" +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeLocations +func (c *DirectConnect) DescribeLocations(input *DescribeLocationsInput) (*DescribeLocationsOutput, error) { + req, out := c.DescribeLocationsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeTags = "DescribeTags" + +// DescribeTagsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeTags operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeTags for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeTags method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeTagsRequest method. +// req, resp := client.DescribeTagsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeTags +func (c *DirectConnect) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) { + op := &request.Operation{ + Name: opDescribeTags, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeTagsInput{} + } + + output = &DescribeTagsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeTags API operation for AWS Direct Connect. +// +// Describes the tags associated with the specified Direct Connect resources. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DescribeTags for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServerException "ServerException" +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ErrCodeClientException "ClientException" +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeTags +func (c *DirectConnect) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { + req, out := c.DescribeTagsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeVirtualGateways = "DescribeVirtualGateways" + +// DescribeVirtualGatewaysRequest generates a "aws/request.Request" representing the +// client's request for the DescribeVirtualGateways operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeVirtualGateways for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeVirtualGateways method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeVirtualGatewaysRequest method. +// req, resp := client.DescribeVirtualGatewaysRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeVirtualGateways +func (c *DirectConnect) DescribeVirtualGatewaysRequest(input *DescribeVirtualGatewaysInput) (req *request.Request, output *DescribeVirtualGatewaysOutput) { + op := &request.Operation{ + Name: opDescribeVirtualGateways, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeVirtualGatewaysInput{} + } + + output = &DescribeVirtualGatewaysOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeVirtualGateways API operation for AWS Direct Connect. +// +// Returns a list of virtual private gateways owned by the AWS account. +// +// You can create one or more AWS Direct Connect private virtual interfaces +// linking to a virtual private gateway. A virtual private gateway can be managed +// via Amazon Virtual Private Cloud (VPC) console or the EC2 CreateVpnGateway +// (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateVpnGateway.html) +// action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DescribeVirtualGateways for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServerException "ServerException" +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ErrCodeClientException "ClientException" +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeVirtualGateways +func (c *DirectConnect) DescribeVirtualGateways(input *DescribeVirtualGatewaysInput) (*DescribeVirtualGatewaysOutput, error) { + req, out := c.DescribeVirtualGatewaysRequest(input) + err := req.Send() + return out, err +} + +const opDescribeVirtualInterfaces = "DescribeVirtualInterfaces" + +// DescribeVirtualInterfacesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeVirtualInterfaces operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeVirtualInterfaces for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeVirtualInterfaces method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeVirtualInterfacesRequest method. +// req, resp := client.DescribeVirtualInterfacesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeVirtualInterfaces +func (c *DirectConnect) DescribeVirtualInterfacesRequest(input *DescribeVirtualInterfacesInput) (req *request.Request, output *DescribeVirtualInterfacesOutput) { + op := &request.Operation{ + Name: opDescribeVirtualInterfaces, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeVirtualInterfacesInput{} + } + + output = &DescribeVirtualInterfacesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeVirtualInterfaces API operation for AWS Direct Connect. +// +// Displays all virtual interfaces for an AWS account. Virtual interfaces deleted +// fewer than 15 minutes before you make the request are also returned. If you +// specify a connection ID, only the virtual interfaces associated with the +// connection are returned. If you specify a virtual interface ID, then only +// a single virtual interface is returned. +// +// A virtual interface (VLAN) transmits the traffic between the AWS Direct Connect +// location and the customer. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DescribeVirtualInterfaces for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServerException "ServerException" +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ErrCodeClientException "ClientException" +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeVirtualInterfaces +func (c *DirectConnect) DescribeVirtualInterfaces(input *DescribeVirtualInterfacesInput) (*DescribeVirtualInterfacesOutput, error) { + req, out := c.DescribeVirtualInterfacesRequest(input) + err := req.Send() + return out, err +} + +const opDisassociateConnectionFromLag = "DisassociateConnectionFromLag" + +// DisassociateConnectionFromLagRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateConnectionFromLag operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DisassociateConnectionFromLag for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DisassociateConnectionFromLag method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DisassociateConnectionFromLagRequest method. +// req, resp := client.DisassociateConnectionFromLagRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DisassociateConnectionFromLag +func (c *DirectConnect) DisassociateConnectionFromLagRequest(input *DisassociateConnectionFromLagInput) (req *request.Request, output *Connection) { + op := &request.Operation{ + Name: opDisassociateConnectionFromLag, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisassociateConnectionFromLagInput{} + } + + output = &Connection{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateConnectionFromLag API operation for AWS Direct Connect. +// +// Disassociates a connection from a link aggregation group (LAG). The connection +// is interrupted and re-established as a standalone connection (the connection +// is not deleted; to delete the connection, use the DeleteConnection request). +// If the LAG has associated virtual interfaces or hosted connections, they +// remain associated with the LAG. A disassociated connection owned by an AWS +// Direct Connect partner is automatically converted to an interconnect. +// +// If disassociating the connection will cause the LAG to fall below its setting +// for minimum number of operational connections, the request fails, except +// when it's the last member of the LAG. If all connections are disassociated, +// the LAG continues to exist as an empty LAG with no physical connections. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DisassociateConnectionFromLag for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServerException "ServerException" +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ErrCodeClientException "ClientException" +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DisassociateConnectionFromLag +func (c *DirectConnect) DisassociateConnectionFromLag(input *DisassociateConnectionFromLagInput) (*Connection, error) { + req, out := c.DisassociateConnectionFromLagRequest(input) + err := req.Send() + return out, err +} + +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See TagResource for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the TagResource method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/TagResource +func (c *DirectConnect) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// TagResource API operation for AWS Direct Connect. +// +// Adds the specified tags to the specified Direct Connect resource. Each Direct +// Connect resource can have a maximum of 50 tags. +// +// Each tag consists of a key and an optional value. If a tag with the same +// key is already associated with the Direct Connect resource, this action updates +// its value. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation TagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDuplicateTagKeysException "DuplicateTagKeysException" +// A tag key was specified more than once. +// +// * ErrCodeTooManyTagsException "TooManyTagsException" +// You have reached the limit on the number of tags that can be assigned to +// a Direct Connect resource. +// +// * ErrCodeServerException "ServerException" +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ErrCodeClientException "ClientException" +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/TagResource +func (c *DirectConnect) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + err := req.Send() + return out, err +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UntagResource for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UntagResource method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/UntagResource +func (c *DirectConnect) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// UntagResource API operation for AWS Direct Connect. +// +// Removes one or more tags from the specified Direct Connect resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation UntagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServerException "ServerException" +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ErrCodeClientException "ClientException" +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/UntagResource +func (c *DirectConnect) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + err := req.Send() + return out, err +} + +const opUpdateLag = "UpdateLag" + +// UpdateLagRequest generates a "aws/request.Request" representing the +// client's request for the UpdateLag operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateLag for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateLag method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateLagRequest method. +// req, resp := client.UpdateLagRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/UpdateLag +func (c *DirectConnect) UpdateLagRequest(input *UpdateLagInput) (req *request.Request, output *Lag) { + op := &request.Operation{ + Name: opUpdateLag, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateLagInput{} + } + + output = &Lag{} + req = c.newRequest(op, input, output) + return +} + +// UpdateLag API operation for AWS Direct Connect. +// +// Updates the attributes of a link aggregation group (LAG). +// +// You can update the following attributes: +// +// * The name of the LAG. +// +// * The value for the minimum number of connections that must be operational +// for the LAG itself to be operational. +// +// When you create a LAG, the default value for the minimum number of operational +// connections is zero (0). If you update this value, and the number of operational +// connections falls below the specified value, the LAG will automatically go +// down to avoid overutilization of the remaining connections. Adjusting this +// value should be done with care as it could force the LAG down if the value +// is set higher than the current number of operational connections. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation UpdateLag for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServerException "ServerException" +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ErrCodeClientException "ClientException" +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/UpdateLag +func (c *DirectConnect) UpdateLag(input *UpdateLagInput) (*Lag, error) { + req, out := c.UpdateLagRequest(input) + err := req.Send() + return out, err +} + +// Container for the parameters to the AllocateConnectionOnInterconnect operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocateConnectionOnInterconnectRequest +type AllocateConnectionOnInterconnectInput struct { + _ struct{} `type:"structure"` + + // Bandwidth of the connection. + // + // Example: "500Mbps" + // + // Default: None + // + // Values: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, or 500Mbps + // + // Bandwidth is a required field + Bandwidth *string `locationName:"bandwidth" type:"string" required:"true"` + + // Name of the provisioned connection. + // + // Example: "500M Connection to AWS" + // + // Default: None + // + // ConnectionName is a required field + ConnectionName *string `locationName:"connectionName" type:"string" required:"true"` + + // ID of the interconnect on which the connection will be provisioned. + // + // Example: dxcon-456abc78 + // + // Default: None + // + // InterconnectId is a required field + InterconnectId *string `locationName:"interconnectId" type:"string" required:"true"` + + // Numeric account Id of the customer for whom the connection will be provisioned. + // + // Example: 123443215678 + // + // Default: None + // + // OwnerAccount is a required field + OwnerAccount *string `locationName:"ownerAccount" type:"string" required:"true"` + + // The dedicated VLAN provisioned to the connection. + // + // Example: 101 + // + // Default: None + // + // Vlan is a required field + Vlan *int64 `locationName:"vlan" type:"integer" required:"true"` +} + +// String returns the string representation +func (s AllocateConnectionOnInterconnectInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AllocateConnectionOnInterconnectInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AllocateConnectionOnInterconnectInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AllocateConnectionOnInterconnectInput"} + if s.Bandwidth == nil { + invalidParams.Add(request.NewErrParamRequired("Bandwidth")) + } + if s.ConnectionName == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionName")) + } + if s.InterconnectId == nil { + invalidParams.Add(request.NewErrParamRequired("InterconnectId")) + } + if s.OwnerAccount == nil { + invalidParams.Add(request.NewErrParamRequired("OwnerAccount")) + } + if s.Vlan == nil { + invalidParams.Add(request.NewErrParamRequired("Vlan")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBandwidth sets the Bandwidth field's value. +func (s *AllocateConnectionOnInterconnectInput) SetBandwidth(v string) *AllocateConnectionOnInterconnectInput { + s.Bandwidth = &v + return s +} + +// SetConnectionName sets the ConnectionName field's value. +func (s *AllocateConnectionOnInterconnectInput) SetConnectionName(v string) *AllocateConnectionOnInterconnectInput { + s.ConnectionName = &v + return s +} + +// SetInterconnectId sets the InterconnectId field's value. +func (s *AllocateConnectionOnInterconnectInput) SetInterconnectId(v string) *AllocateConnectionOnInterconnectInput { + s.InterconnectId = &v + return s +} + +// SetOwnerAccount sets the OwnerAccount field's value. +func (s *AllocateConnectionOnInterconnectInput) SetOwnerAccount(v string) *AllocateConnectionOnInterconnectInput { + s.OwnerAccount = &v + return s +} + +// SetVlan sets the Vlan field's value. +func (s *AllocateConnectionOnInterconnectInput) SetVlan(v int64) *AllocateConnectionOnInterconnectInput { + s.Vlan = &v + return s +} + +// Container for the parameters to theHostedConnection operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocateHostedConnectionRequest +type AllocateHostedConnectionInput struct { + _ struct{} `type:"structure"` + + // The bandwidth of the connection. + // + // Example: 500Mbps + // + // Default: None + // + // Values: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, or 500Mbps + // + // Bandwidth is a required field + Bandwidth *string `locationName:"bandwidth" type:"string" required:"true"` + + // The ID of the interconnect or LAG on which the connection will be provisioned. + // + // Example: dxcon-456abc78 or dxlag-abc123 + // + // Default: None + // + // ConnectionId is a required field + ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` + + // The name of the provisioned connection. + // + // Example: "500M Connection to AWS" + // + // Default: None + // + // ConnectionName is a required field + ConnectionName *string `locationName:"connectionName" type:"string" required:"true"` + + // The numeric account ID of the customer for whom the connection will be provisioned. + // + // Example: 123443215678 + // + // Default: None + // + // OwnerAccount is a required field + OwnerAccount *string `locationName:"ownerAccount" type:"string" required:"true"` + + // The dedicated VLAN provisioned to the hosted connection. + // + // Example: 101 + // + // Default: None + // + // Vlan is a required field + Vlan *int64 `locationName:"vlan" type:"integer" required:"true"` +} + +// String returns the string representation +func (s AllocateHostedConnectionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AllocateHostedConnectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AllocateHostedConnectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AllocateHostedConnectionInput"} + if s.Bandwidth == nil { + invalidParams.Add(request.NewErrParamRequired("Bandwidth")) + } + if s.ConnectionId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionId")) + } + if s.ConnectionName == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionName")) + } + if s.OwnerAccount == nil { + invalidParams.Add(request.NewErrParamRequired("OwnerAccount")) + } + if s.Vlan == nil { + invalidParams.Add(request.NewErrParamRequired("Vlan")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBandwidth sets the Bandwidth field's value. +func (s *AllocateHostedConnectionInput) SetBandwidth(v string) *AllocateHostedConnectionInput { + s.Bandwidth = &v + return s +} + +// SetConnectionId sets the ConnectionId field's value. +func (s *AllocateHostedConnectionInput) SetConnectionId(v string) *AllocateHostedConnectionInput { + s.ConnectionId = &v + return s +} + +// SetConnectionName sets the ConnectionName field's value. +func (s *AllocateHostedConnectionInput) SetConnectionName(v string) *AllocateHostedConnectionInput { + s.ConnectionName = &v + return s +} + +// SetOwnerAccount sets the OwnerAccount field's value. +func (s *AllocateHostedConnectionInput) SetOwnerAccount(v string) *AllocateHostedConnectionInput { + s.OwnerAccount = &v + return s +} + +// SetVlan sets the Vlan field's value. +func (s *AllocateHostedConnectionInput) SetVlan(v int64) *AllocateHostedConnectionInput { + s.Vlan = &v + return s +} + +// Container for the parameters to the AllocatePrivateVirtualInterface operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocatePrivateVirtualInterfaceRequest +type AllocatePrivateVirtualInterfaceInput struct { + _ struct{} `type:"structure"` + + // The connection ID on which the private virtual interface is provisioned. + // + // Default: None + // + // ConnectionId is a required field + ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` + + // Detailed information for the private virtual interface to be provisioned. + // + // Default: None + // + // NewPrivateVirtualInterfaceAllocation is a required field + NewPrivateVirtualInterfaceAllocation *NewPrivateVirtualInterfaceAllocation `locationName:"newPrivateVirtualInterfaceAllocation" type:"structure" required:"true"` + + // The AWS account that will own the new private virtual interface. + // + // Default: None + // + // OwnerAccount is a required field + OwnerAccount *string `locationName:"ownerAccount" type:"string" required:"true"` +} + +// String returns the string representation +func (s AllocatePrivateVirtualInterfaceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AllocatePrivateVirtualInterfaceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AllocatePrivateVirtualInterfaceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AllocatePrivateVirtualInterfaceInput"} + if s.ConnectionId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionId")) + } + if s.NewPrivateVirtualInterfaceAllocation == nil { + invalidParams.Add(request.NewErrParamRequired("NewPrivateVirtualInterfaceAllocation")) + } + if s.OwnerAccount == nil { + invalidParams.Add(request.NewErrParamRequired("OwnerAccount")) + } + if s.NewPrivateVirtualInterfaceAllocation != nil { + if err := s.NewPrivateVirtualInterfaceAllocation.Validate(); err != nil { + invalidParams.AddNested("NewPrivateVirtualInterfaceAllocation", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConnectionId sets the ConnectionId field's value. +func (s *AllocatePrivateVirtualInterfaceInput) SetConnectionId(v string) *AllocatePrivateVirtualInterfaceInput { + s.ConnectionId = &v + return s +} + +// SetNewPrivateVirtualInterfaceAllocation sets the NewPrivateVirtualInterfaceAllocation field's value. +func (s *AllocatePrivateVirtualInterfaceInput) SetNewPrivateVirtualInterfaceAllocation(v *NewPrivateVirtualInterfaceAllocation) *AllocatePrivateVirtualInterfaceInput { + s.NewPrivateVirtualInterfaceAllocation = v + return s +} + +// SetOwnerAccount sets the OwnerAccount field's value. +func (s *AllocatePrivateVirtualInterfaceInput) SetOwnerAccount(v string) *AllocatePrivateVirtualInterfaceInput { + s.OwnerAccount = &v + return s +} + +// Container for the parameters to the AllocatePublicVirtualInterface operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocatePublicVirtualInterfaceRequest +type AllocatePublicVirtualInterfaceInput struct { + _ struct{} `type:"structure"` + + // The connection ID on which the public virtual interface is provisioned. + // + // Default: None + // + // ConnectionId is a required field + ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` + + // Detailed information for the public virtual interface to be provisioned. + // + // Default: None + // + // NewPublicVirtualInterfaceAllocation is a required field + NewPublicVirtualInterfaceAllocation *NewPublicVirtualInterfaceAllocation `locationName:"newPublicVirtualInterfaceAllocation" type:"structure" required:"true"` + + // The AWS account that will own the new public virtual interface. + // + // Default: None + // + // OwnerAccount is a required field + OwnerAccount *string `locationName:"ownerAccount" type:"string" required:"true"` +} + +// String returns the string representation +func (s AllocatePublicVirtualInterfaceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AllocatePublicVirtualInterfaceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AllocatePublicVirtualInterfaceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AllocatePublicVirtualInterfaceInput"} + if s.ConnectionId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionId")) + } + if s.NewPublicVirtualInterfaceAllocation == nil { + invalidParams.Add(request.NewErrParamRequired("NewPublicVirtualInterfaceAllocation")) + } + if s.OwnerAccount == nil { + invalidParams.Add(request.NewErrParamRequired("OwnerAccount")) + } + if s.NewPublicVirtualInterfaceAllocation != nil { + if err := s.NewPublicVirtualInterfaceAllocation.Validate(); err != nil { + invalidParams.AddNested("NewPublicVirtualInterfaceAllocation", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConnectionId sets the ConnectionId field's value. +func (s *AllocatePublicVirtualInterfaceInput) SetConnectionId(v string) *AllocatePublicVirtualInterfaceInput { + s.ConnectionId = &v + return s +} + +// SetNewPublicVirtualInterfaceAllocation sets the NewPublicVirtualInterfaceAllocation field's value. +func (s *AllocatePublicVirtualInterfaceInput) SetNewPublicVirtualInterfaceAllocation(v *NewPublicVirtualInterfaceAllocation) *AllocatePublicVirtualInterfaceInput { + s.NewPublicVirtualInterfaceAllocation = v + return s +} + +// SetOwnerAccount sets the OwnerAccount field's value. +func (s *AllocatePublicVirtualInterfaceInput) SetOwnerAccount(v string) *AllocatePublicVirtualInterfaceInput { + s.OwnerAccount = &v + return s +} + +// Container for the parameters to the AssociateConnectionWithLag operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AssociateConnectionWithLagRequest +type AssociateConnectionWithLagInput struct { + _ struct{} `type:"structure"` + + // The ID of the connection. + // + // Example: dxcon-abc123 + // + // Default: None + // + // ConnectionId is a required field + ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` + + // The ID of the LAG with which to associate the connection. + // + // Example: dxlag-abc123 + // + // Default: None + // + // LagId is a required field + LagId *string `locationName:"lagId" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateConnectionWithLagInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateConnectionWithLagInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateConnectionWithLagInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateConnectionWithLagInput"} + if s.ConnectionId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionId")) + } + if s.LagId == nil { + invalidParams.Add(request.NewErrParamRequired("LagId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConnectionId sets the ConnectionId field's value. +func (s *AssociateConnectionWithLagInput) SetConnectionId(v string) *AssociateConnectionWithLagInput { + s.ConnectionId = &v + return s +} + +// SetLagId sets the LagId field's value. +func (s *AssociateConnectionWithLagInput) SetLagId(v string) *AssociateConnectionWithLagInput { + s.LagId = &v + return s +} + +// Container for the parameters to the AssociateHostedConnection operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AssociateHostedConnectionRequest +type AssociateHostedConnectionInput struct { + _ struct{} `type:"structure"` + + // The ID of the hosted connection. + // + // Example: dxcon-abc123 + // + // Default: None + // + // ConnectionId is a required field + ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` + + // The ID of the interconnect or the LAG. + // + // Example: dxcon-abc123 or dxlag-abc123 + // + // Default: None + // + // ParentConnectionId is a required field + ParentConnectionId *string `locationName:"parentConnectionId" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateHostedConnectionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateHostedConnectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateHostedConnectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateHostedConnectionInput"} + if s.ConnectionId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionId")) + } + if s.ParentConnectionId == nil { + invalidParams.Add(request.NewErrParamRequired("ParentConnectionId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConnectionId sets the ConnectionId field's value. +func (s *AssociateHostedConnectionInput) SetConnectionId(v string) *AssociateHostedConnectionInput { + s.ConnectionId = &v + return s +} + +// SetParentConnectionId sets the ParentConnectionId field's value. +func (s *AssociateHostedConnectionInput) SetParentConnectionId(v string) *AssociateHostedConnectionInput { + s.ParentConnectionId = &v + return s +} + +// Container for the parameters to the AssociateVirtualInterface operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AssociateVirtualInterfaceRequest +type AssociateVirtualInterfaceInput struct { + _ struct{} `type:"structure"` + + // The ID of the LAG or connection with which to associate the virtual interface. + // + // Example: dxlag-abc123 or dxcon-abc123 + // + // Default: None + // + // ConnectionId is a required field + ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` + + // The ID of the virtual interface. + // + // Example: dxvif-123dfg56 + // + // Default: None + // + // VirtualInterfaceId is a required field + VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateVirtualInterfaceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateVirtualInterfaceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateVirtualInterfaceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateVirtualInterfaceInput"} + if s.ConnectionId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionId")) + } + if s.VirtualInterfaceId == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConnectionId sets the ConnectionId field's value. +func (s *AssociateVirtualInterfaceInput) SetConnectionId(v string) *AssociateVirtualInterfaceInput { + s.ConnectionId = &v + return s +} + +// SetVirtualInterfaceId sets the VirtualInterfaceId field's value. +func (s *AssociateVirtualInterfaceInput) SetVirtualInterfaceId(v string) *AssociateVirtualInterfaceInput { + s.VirtualInterfaceId = &v + return s +} + +// A structure containing information about a BGP peer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/BGPPeer +type BGPPeer struct { + _ struct{} `type:"structure"` + + // Indicates the address family for the BGP peer. + // + // * ipv4: IPv4 address family + // + // * ipv6: IPv6 address family + AddressFamily *string `locationName:"addressFamily" type:"string" enum:"AddressFamily"` + + // IP address assigned to the Amazon interface. + // + // Example: 192.168.1.1/30 or 2001:db8::1/125 + AmazonAddress *string `locationName:"amazonAddress" type:"string"` + + // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. + // + // Example: 65000 + Asn *int64 `locationName:"asn" type:"integer"` + + // The authentication key for BGP configuration. + // + // Example: asdf34example + AuthKey *string `locationName:"authKey" type:"string"` + + // The state of the BGP peer. + // + // * Verifying: The BGP peering addresses or ASN require validation before + // the BGP peer can be created. This state only applies to BGP peers on a + // public virtual interface. + // + // * Pending: The BGP peer has been created, and is in this state until it + // is ready to be established. + // + // * Available: The BGP peer can be established. + // + // * Deleting: The BGP peer is in the process of being deleted. + // + // * Deleted: The BGP peer has been deleted and cannot be established. + BgpPeerState *string `locationName:"bgpPeerState" type:"string" enum:"BGPPeerState"` + + // The Up/Down state of the BGP peer. + // + // * Up: The BGP peer is established. + // + // * Down: The BGP peer is down. + BgpStatus *string `locationName:"bgpStatus" type:"string" enum:"BGPStatus"` + + // IP address assigned to the customer interface. + // + // Example: 192.168.1.2/30 or 2001:db8::2/125 + CustomerAddress *string `locationName:"customerAddress" type:"string"` +} + +// String returns the string representation +func (s BGPPeer) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BGPPeer) GoString() string { + return s.String() +} + +// SetAddressFamily sets the AddressFamily field's value. +func (s *BGPPeer) SetAddressFamily(v string) *BGPPeer { + s.AddressFamily = &v + return s +} + +// SetAmazonAddress sets the AmazonAddress field's value. +func (s *BGPPeer) SetAmazonAddress(v string) *BGPPeer { + s.AmazonAddress = &v + return s +} + +// SetAsn sets the Asn field's value. +func (s *BGPPeer) SetAsn(v int64) *BGPPeer { + s.Asn = &v + return s +} + +// SetAuthKey sets the AuthKey field's value. +func (s *BGPPeer) SetAuthKey(v string) *BGPPeer { + s.AuthKey = &v + return s +} + +// SetBgpPeerState sets the BgpPeerState field's value. +func (s *BGPPeer) SetBgpPeerState(v string) *BGPPeer { + s.BgpPeerState = &v + return s +} + +// SetBgpStatus sets the BgpStatus field's value. +func (s *BGPPeer) SetBgpStatus(v string) *BGPPeer { + s.BgpStatus = &v + return s +} + +// SetCustomerAddress sets the CustomerAddress field's value. +func (s *BGPPeer) SetCustomerAddress(v string) *BGPPeer { + s.CustomerAddress = &v + return s +} + +// Container for the parameters to the ConfirmConnection operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/ConfirmConnectionRequest +type ConfirmConnectionInput struct { + _ struct{} `type:"structure"` + + // The ID of the connection. This field is also used as the ID type for operations + // that use multiple connection types (LAG, interconnect, and/or connection). + // + // Example: dxcon-fg5678gh + // + // Default: None + // + // ConnectionId is a required field + ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` +} + +// String returns the string representation +func (s ConfirmConnectionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConfirmConnectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ConfirmConnectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConfirmConnectionInput"} + if s.ConnectionId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConnectionId sets the ConnectionId field's value. +func (s *ConfirmConnectionInput) SetConnectionId(v string) *ConfirmConnectionInput { + s.ConnectionId = &v + return s +} + +// The response received when ConfirmConnection is called. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/ConfirmConnectionResponse +type ConfirmConnectionOutput struct { + _ struct{} `type:"structure"` + + // State of the connection. + // + // * Ordering: The initial state of a hosted connection provisioned on an + // interconnect. The connection stays in the ordering state until the owner + // of the hosted connection confirms or declines the connection order. + // + // * Requested: The initial state of a standard connection. The connection + // stays in the requested state until the Letter of Authorization (LOA) is + // sent to the customer. + // + // * Pending: The connection has been approved, and is being initialized. + // + // * Available: The network link is up, and the connection is ready for use. + // + // * Down: The network link is down. + // + // * Deleting: The connection is in the process of being deleted. + // + // * Deleted: The connection has been deleted. + // + // * Rejected: A hosted connection in the 'Ordering' state will enter the + // 'Rejected' state if it is deleted by the end customer. + ConnectionState *string `locationName:"connectionState" type:"string" enum:"ConnectionState"` +} + +// String returns the string representation +func (s ConfirmConnectionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConfirmConnectionOutput) GoString() string { + return s.String() +} + +// SetConnectionState sets the ConnectionState field's value. +func (s *ConfirmConnectionOutput) SetConnectionState(v string) *ConfirmConnectionOutput { + s.ConnectionState = &v + return s +} + +// Container for the parameters to the ConfirmPrivateVirtualInterface operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/ConfirmPrivateVirtualInterfaceRequest +type ConfirmPrivateVirtualInterfaceInput struct { + _ struct{} `type:"structure"` + + // ID of the virtual private gateway that will be attached to the virtual interface. + // + // A virtual private gateway can be managed via the Amazon Virtual Private Cloud + // (VPC) console or the EC2 CreateVpnGateway (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateVpnGateway.html) + // action. + // + // Default: None + // + // VirtualGatewayId is a required field + VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string" required:"true"` + + // The ID of the virtual interface. + // + // Example: dxvif-123dfg56 + // + // Default: None + // + // VirtualInterfaceId is a required field + VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string" required:"true"` +} + +// String returns the string representation +func (s ConfirmPrivateVirtualInterfaceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConfirmPrivateVirtualInterfaceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ConfirmPrivateVirtualInterfaceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConfirmPrivateVirtualInterfaceInput"} + if s.VirtualGatewayId == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualGatewayId")) + } + if s.VirtualInterfaceId == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVirtualGatewayId sets the VirtualGatewayId field's value. +func (s *ConfirmPrivateVirtualInterfaceInput) SetVirtualGatewayId(v string) *ConfirmPrivateVirtualInterfaceInput { + s.VirtualGatewayId = &v + return s +} + +// SetVirtualInterfaceId sets the VirtualInterfaceId field's value. +func (s *ConfirmPrivateVirtualInterfaceInput) SetVirtualInterfaceId(v string) *ConfirmPrivateVirtualInterfaceInput { + s.VirtualInterfaceId = &v + return s +} + +// The response received when ConfirmPrivateVirtualInterface is called. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/ConfirmPrivateVirtualInterfaceResponse +type ConfirmPrivateVirtualInterfaceOutput struct { + _ struct{} `type:"structure"` + + // State of the virtual interface. + // + // * Confirming: The creation of the virtual interface is pending confirmation + // from the virtual interface owner. If the owner of the virtual interface + // is different from the owner of the connection on which it is provisioned, + // then the virtual interface will remain in this state until it is confirmed + // by the virtual interface owner. + // + // * Verifying: This state only applies to public virtual interfaces. Each + // public virtual interface needs validation before the virtual interface + // can be created. + // + // * Pending: A virtual interface is in this state from the time that it + // is created until the virtual interface is ready to forward traffic. + // + // * Available: A virtual interface that is able to forward traffic. + // + // * Down: A virtual interface that is BGP down. + // + // * Deleting: A virtual interface is in this state immediately after calling + // DeleteVirtualInterface until it can no longer forward traffic. + // + // * Deleted: A virtual interface that cannot forward traffic. + // + // * Rejected: The virtual interface owner has declined creation of the virtual + // interface. If a virtual interface in the 'Confirming' state is deleted + // by the virtual interface owner, the virtual interface will enter the 'Rejected' + // state. + VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"` +} + +// String returns the string representation +func (s ConfirmPrivateVirtualInterfaceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConfirmPrivateVirtualInterfaceOutput) GoString() string { + return s.String() +} + +// SetVirtualInterfaceState sets the VirtualInterfaceState field's value. +func (s *ConfirmPrivateVirtualInterfaceOutput) SetVirtualInterfaceState(v string) *ConfirmPrivateVirtualInterfaceOutput { + s.VirtualInterfaceState = &v + return s +} + +// Container for the parameters to the ConfirmPublicVirtualInterface operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/ConfirmPublicVirtualInterfaceRequest +type ConfirmPublicVirtualInterfaceInput struct { + _ struct{} `type:"structure"` + + // The ID of the virtual interface. + // + // Example: dxvif-123dfg56 + // + // Default: None + // + // VirtualInterfaceId is a required field + VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string" required:"true"` +} + +// String returns the string representation +func (s ConfirmPublicVirtualInterfaceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConfirmPublicVirtualInterfaceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ConfirmPublicVirtualInterfaceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConfirmPublicVirtualInterfaceInput"} + if s.VirtualInterfaceId == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVirtualInterfaceId sets the VirtualInterfaceId field's value. +func (s *ConfirmPublicVirtualInterfaceInput) SetVirtualInterfaceId(v string) *ConfirmPublicVirtualInterfaceInput { + s.VirtualInterfaceId = &v + return s +} + +// The response received when ConfirmPublicVirtualInterface is called. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/ConfirmPublicVirtualInterfaceResponse +type ConfirmPublicVirtualInterfaceOutput struct { + _ struct{} `type:"structure"` + + // State of the virtual interface. + // + // * Confirming: The creation of the virtual interface is pending confirmation + // from the virtual interface owner. If the owner of the virtual interface + // is different from the owner of the connection on which it is provisioned, + // then the virtual interface will remain in this state until it is confirmed + // by the virtual interface owner. + // + // * Verifying: This state only applies to public virtual interfaces. Each + // public virtual interface needs validation before the virtual interface + // can be created. + // + // * Pending: A virtual interface is in this state from the time that it + // is created until the virtual interface is ready to forward traffic. + // + // * Available: A virtual interface that is able to forward traffic. + // + // * Down: A virtual interface that is BGP down. + // + // * Deleting: A virtual interface is in this state immediately after calling + // DeleteVirtualInterface until it can no longer forward traffic. + // + // * Deleted: A virtual interface that cannot forward traffic. + // + // * Rejected: The virtual interface owner has declined creation of the virtual + // interface. If a virtual interface in the 'Confirming' state is deleted + // by the virtual interface owner, the virtual interface will enter the 'Rejected' + // state. + VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"` +} + +// String returns the string representation +func (s ConfirmPublicVirtualInterfaceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConfirmPublicVirtualInterfaceOutput) GoString() string { + return s.String() +} + +// SetVirtualInterfaceState sets the VirtualInterfaceState field's value. +func (s *ConfirmPublicVirtualInterfaceOutput) SetVirtualInterfaceState(v string) *ConfirmPublicVirtualInterfaceOutput { + s.VirtualInterfaceState = &v + return s +} + +// A connection represents the physical network connection between the AWS Direct +// Connect location and the customer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/Connection +type Connection struct { + _ struct{} `type:"structure"` + + // The Direct Connection endpoint which the physical connection terminates on. + AwsDevice *string `locationName:"awsDevice" type:"string"` + + // Bandwidth of the connection. + // + // Example: 1Gbps (for regular connections), or 500Mbps (for hosted connections) + // + // Default: None + Bandwidth *string `locationName:"bandwidth" type:"string"` + + // The ID of the connection. This field is also used as the ID type for operations + // that use multiple connection types (LAG, interconnect, and/or connection). + // + // Example: dxcon-fg5678gh + // + // Default: None + ConnectionId *string `locationName:"connectionId" type:"string"` + + // The name of the connection. + // + // Example: "My Connection to AWS" + // + // Default: None + ConnectionName *string `locationName:"connectionName" type:"string"` + + // State of the connection. + // + // * Ordering: The initial state of a hosted connection provisioned on an + // interconnect. The connection stays in the ordering state until the owner + // of the hosted connection confirms or declines the connection order. + // + // * Requested: The initial state of a standard connection. The connection + // stays in the requested state until the Letter of Authorization (LOA) is + // sent to the customer. + // + // * Pending: The connection has been approved, and is being initialized. + // + // * Available: The network link is up, and the connection is ready for use. + // + // * Down: The network link is down. + // + // * Deleting: The connection is in the process of being deleted. + // + // * Deleted: The connection has been deleted. + // + // * Rejected: A hosted connection in the 'Ordering' state will enter the + // 'Rejected' state if it is deleted by the end customer. + ConnectionState *string `locationName:"connectionState" type:"string" enum:"ConnectionState"` + + // The ID of the LAG. + // + // Example: dxlag-fg5678gh + LagId *string `locationName:"lagId" type:"string"` + + // The time of the most recent call to DescribeLoa for this connection. + LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp" timestampFormat:"unix"` + + // Where the connection is located. + // + // Example: EqSV5 + // + // Default: None + Location *string `locationName:"location" type:"string"` + + // The AWS account that will own the new connection. + OwnerAccount *string `locationName:"ownerAccount" type:"string"` + + // The name of the AWS Direct Connect service provider associated with the connection. + PartnerName *string `locationName:"partnerName" type:"string"` + + // The AWS region where the connection is located. + // + // Example: us-east-1 + // + // Default: None + Region *string `locationName:"region" type:"string"` + + // The VLAN ID. + // + // Example: 101 + Vlan *int64 `locationName:"vlan" type:"integer"` +} + +// String returns the string representation +func (s Connection) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Connection) GoString() string { + return s.String() +} + +// SetAwsDevice sets the AwsDevice field's value. +func (s *Connection) SetAwsDevice(v string) *Connection { + s.AwsDevice = &v + return s +} + +// SetBandwidth sets the Bandwidth field's value. +func (s *Connection) SetBandwidth(v string) *Connection { + s.Bandwidth = &v + return s +} + +// SetConnectionId sets the ConnectionId field's value. +func (s *Connection) SetConnectionId(v string) *Connection { + s.ConnectionId = &v + return s +} + +// SetConnectionName sets the ConnectionName field's value. +func (s *Connection) SetConnectionName(v string) *Connection { + s.ConnectionName = &v + return s +} + +// SetConnectionState sets the ConnectionState field's value. +func (s *Connection) SetConnectionState(v string) *Connection { + s.ConnectionState = &v + return s +} + +// SetLagId sets the LagId field's value. +func (s *Connection) SetLagId(v string) *Connection { + s.LagId = &v + return s +} + +// SetLoaIssueTime sets the LoaIssueTime field's value. +func (s *Connection) SetLoaIssueTime(v time.Time) *Connection { + s.LoaIssueTime = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *Connection) SetLocation(v string) *Connection { + s.Location = &v + return s +} + +// SetOwnerAccount sets the OwnerAccount field's value. +func (s *Connection) SetOwnerAccount(v string) *Connection { + s.OwnerAccount = &v + return s +} + +// SetPartnerName sets the PartnerName field's value. +func (s *Connection) SetPartnerName(v string) *Connection { + s.PartnerName = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *Connection) SetRegion(v string) *Connection { + s.Region = &v + return s +} + +// SetVlan sets the Vlan field's value. +func (s *Connection) SetVlan(v int64) *Connection { + s.Vlan = &v + return s +} + +// A structure containing a list of connections. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/Connections +type Connections struct { + _ struct{} `type:"structure"` + + // A list of connections. + Connections []*Connection `locationName:"connections" type:"list"` +} + +// String returns the string representation +func (s Connections) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Connections) GoString() string { + return s.String() +} + +// SetConnections sets the Connections field's value. +func (s *Connections) SetConnections(v []*Connection) *Connections { + s.Connections = v + return s +} + +// Container for the parameters to the CreateBGPPeer operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateBGPPeerRequest +type CreateBGPPeerInput struct { + _ struct{} `type:"structure"` + + // Detailed information for the BGP peer to be created. + // + // Default: None + NewBGPPeer *NewBGPPeer `locationName:"newBGPPeer" type:"structure"` + + // The ID of the virtual interface on which the BGP peer will be provisioned. + // + // Example: dxvif-456abc78 + // + // Default: None + VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string"` +} + +// String returns the string representation +func (s CreateBGPPeerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateBGPPeerInput) GoString() string { + return s.String() +} + +// SetNewBGPPeer sets the NewBGPPeer field's value. +func (s *CreateBGPPeerInput) SetNewBGPPeer(v *NewBGPPeer) *CreateBGPPeerInput { + s.NewBGPPeer = v + return s +} + +// SetVirtualInterfaceId sets the VirtualInterfaceId field's value. +func (s *CreateBGPPeerInput) SetVirtualInterfaceId(v string) *CreateBGPPeerInput { + s.VirtualInterfaceId = &v + return s +} + +// The response received when CreateBGPPeer is called. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateBGPPeerResponse +type CreateBGPPeerOutput struct { + _ struct{} `type:"structure"` + + // A virtual interface (VLAN) transmits the traffic between the AWS Direct Connect + // location and the customer. + VirtualInterface *VirtualInterface `locationName:"virtualInterface" type:"structure"` +} + +// String returns the string representation +func (s CreateBGPPeerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateBGPPeerOutput) GoString() string { + return s.String() +} + +// SetVirtualInterface sets the VirtualInterface field's value. +func (s *CreateBGPPeerOutput) SetVirtualInterface(v *VirtualInterface) *CreateBGPPeerOutput { + s.VirtualInterface = v + return s +} + +// Container for the parameters to the CreateConnection operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateConnectionRequest +type CreateConnectionInput struct { + _ struct{} `type:"structure"` + + // Bandwidth of the connection. + // + // Example: 1Gbps + // + // Default: None + // + // Bandwidth is a required field + Bandwidth *string `locationName:"bandwidth" type:"string" required:"true"` + + // The name of the connection. + // + // Example: "My Connection to AWS" + // + // Default: None + // + // ConnectionName is a required field + ConnectionName *string `locationName:"connectionName" type:"string" required:"true"` + + // The ID of the LAG. + // + // Example: dxlag-fg5678gh + LagId *string `locationName:"lagId" type:"string"` + + // Where the connection is located. + // + // Example: EqSV5 + // + // Default: None + // + // Location is a required field + Location *string `locationName:"location" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateConnectionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateConnectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateConnectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateConnectionInput"} + if s.Bandwidth == nil { + invalidParams.Add(request.NewErrParamRequired("Bandwidth")) + } + if s.ConnectionName == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionName")) + } + if s.Location == nil { + invalidParams.Add(request.NewErrParamRequired("Location")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBandwidth sets the Bandwidth field's value. +func (s *CreateConnectionInput) SetBandwidth(v string) *CreateConnectionInput { + s.Bandwidth = &v + return s +} + +// SetConnectionName sets the ConnectionName field's value. +func (s *CreateConnectionInput) SetConnectionName(v string) *CreateConnectionInput { + s.ConnectionName = &v + return s +} + +// SetLagId sets the LagId field's value. +func (s *CreateConnectionInput) SetLagId(v string) *CreateConnectionInput { + s.LagId = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateConnectionInput) SetLocation(v string) *CreateConnectionInput { + s.Location = &v + return s +} + +// Container for the parameters to the CreateInterconnect operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateInterconnectRequest +type CreateInterconnectInput struct { + _ struct{} `type:"structure"` + + // The port bandwidth + // + // Example: 1Gbps + // + // Default: None + // + // Available values: 1Gbps,10Gbps + // + // Bandwidth is a required field + Bandwidth *string `locationName:"bandwidth" type:"string" required:"true"` + + // The name of the interconnect. + // + // Example: "1G Interconnect to AWS" + // + // Default: None + // + // InterconnectName is a required field + InterconnectName *string `locationName:"interconnectName" type:"string" required:"true"` + + // The ID of the LAG. + // + // Example: dxlag-fg5678gh + LagId *string `locationName:"lagId" type:"string"` + + // Where the interconnect is located + // + // Example: EqSV5 + // + // Default: None + // + // Location is a required field + Location *string `locationName:"location" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateInterconnectInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateInterconnectInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateInterconnectInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateInterconnectInput"} if s.Bandwidth == nil { invalidParams.Add(request.NewErrParamRequired("Bandwidth")) } - if s.ConnectionName == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionName")) + if s.InterconnectName == nil { + invalidParams.Add(request.NewErrParamRequired("InterconnectName")) + } + if s.Location == nil { + invalidParams.Add(request.NewErrParamRequired("Location")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBandwidth sets the Bandwidth field's value. +func (s *CreateInterconnectInput) SetBandwidth(v string) *CreateInterconnectInput { + s.Bandwidth = &v + return s +} + +// SetInterconnectName sets the InterconnectName field's value. +func (s *CreateInterconnectInput) SetInterconnectName(v string) *CreateInterconnectInput { + s.InterconnectName = &v + return s +} + +// SetLagId sets the LagId field's value. +func (s *CreateInterconnectInput) SetLagId(v string) *CreateInterconnectInput { + s.LagId = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateInterconnectInput) SetLocation(v string) *CreateInterconnectInput { + s.Location = &v + return s +} + +// Container for the parameters to the CreateLag operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateLagRequest +type CreateLagInput struct { + _ struct{} `type:"structure"` + + // The ID of an existing connection to migrate to the LAG. + // + // Default: None + ConnectionId *string `locationName:"connectionId" type:"string"` + + // The bandwidth of the individual physical connections bundled by the LAG. + // + // Default: None + // + // Available values: 1Gbps, 10Gbps + // + // ConnectionsBandwidth is a required field + ConnectionsBandwidth *string `locationName:"connectionsBandwidth" type:"string" required:"true"` + + // The name of the LAG. + // + // Example: "3x10G LAG to AWS" + // + // Default: None + // + // LagName is a required field + LagName *string `locationName:"lagName" type:"string" required:"true"` + + // The AWS Direct Connect location in which the LAG should be allocated. + // + // Example: EqSV5 + // + // Default: None + // + // Location is a required field + Location *string `locationName:"location" type:"string" required:"true"` + + // The number of physical connections initially provisioned and bundled by the + // LAG. + // + // Default: None + // + // NumberOfConnections is a required field + NumberOfConnections *int64 `locationName:"numberOfConnections" type:"integer" required:"true"` +} + +// String returns the string representation +func (s CreateLagInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLagInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateLagInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateLagInput"} + if s.ConnectionsBandwidth == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionsBandwidth")) + } + if s.LagName == nil { + invalidParams.Add(request.NewErrParamRequired("LagName")) + } + if s.Location == nil { + invalidParams.Add(request.NewErrParamRequired("Location")) + } + if s.NumberOfConnections == nil { + invalidParams.Add(request.NewErrParamRequired("NumberOfConnections")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConnectionId sets the ConnectionId field's value. +func (s *CreateLagInput) SetConnectionId(v string) *CreateLagInput { + s.ConnectionId = &v + return s +} + +// SetConnectionsBandwidth sets the ConnectionsBandwidth field's value. +func (s *CreateLagInput) SetConnectionsBandwidth(v string) *CreateLagInput { + s.ConnectionsBandwidth = &v + return s +} + +// SetLagName sets the LagName field's value. +func (s *CreateLagInput) SetLagName(v string) *CreateLagInput { + s.LagName = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateLagInput) SetLocation(v string) *CreateLagInput { + s.Location = &v + return s +} + +// SetNumberOfConnections sets the NumberOfConnections field's value. +func (s *CreateLagInput) SetNumberOfConnections(v int64) *CreateLagInput { + s.NumberOfConnections = &v + return s +} + +// Container for the parameters to the CreatePrivateVirtualInterface operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreatePrivateVirtualInterfaceRequest +type CreatePrivateVirtualInterfaceInput struct { + _ struct{} `type:"structure"` + + // The ID of the connection. This field is also used as the ID type for operations + // that use multiple connection types (LAG, interconnect, and/or connection). + // + // Example: dxcon-fg5678gh + // + // Default: None + // + // ConnectionId is a required field + ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` + + // Detailed information for the private virtual interface to be created. + // + // Default: None + // + // NewPrivateVirtualInterface is a required field + NewPrivateVirtualInterface *NewPrivateVirtualInterface `locationName:"newPrivateVirtualInterface" type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreatePrivateVirtualInterfaceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePrivateVirtualInterfaceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreatePrivateVirtualInterfaceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreatePrivateVirtualInterfaceInput"} + if s.ConnectionId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionId")) + } + if s.NewPrivateVirtualInterface == nil { + invalidParams.Add(request.NewErrParamRequired("NewPrivateVirtualInterface")) + } + if s.NewPrivateVirtualInterface != nil { + if err := s.NewPrivateVirtualInterface.Validate(); err != nil { + invalidParams.AddNested("NewPrivateVirtualInterface", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConnectionId sets the ConnectionId field's value. +func (s *CreatePrivateVirtualInterfaceInput) SetConnectionId(v string) *CreatePrivateVirtualInterfaceInput { + s.ConnectionId = &v + return s +} + +// SetNewPrivateVirtualInterface sets the NewPrivateVirtualInterface field's value. +func (s *CreatePrivateVirtualInterfaceInput) SetNewPrivateVirtualInterface(v *NewPrivateVirtualInterface) *CreatePrivateVirtualInterfaceInput { + s.NewPrivateVirtualInterface = v + return s +} + +// Container for the parameters to the CreatePublicVirtualInterface operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreatePublicVirtualInterfaceRequest +type CreatePublicVirtualInterfaceInput struct { + _ struct{} `type:"structure"` + + // The ID of the connection. This field is also used as the ID type for operations + // that use multiple connection types (LAG, interconnect, and/or connection). + // + // Example: dxcon-fg5678gh + // + // Default: None + // + // ConnectionId is a required field + ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` + + // Detailed information for the public virtual interface to be created. + // + // Default: None + // + // NewPublicVirtualInterface is a required field + NewPublicVirtualInterface *NewPublicVirtualInterface `locationName:"newPublicVirtualInterface" type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreatePublicVirtualInterfaceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePublicVirtualInterfaceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreatePublicVirtualInterfaceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreatePublicVirtualInterfaceInput"} + if s.ConnectionId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionId")) + } + if s.NewPublicVirtualInterface == nil { + invalidParams.Add(request.NewErrParamRequired("NewPublicVirtualInterface")) + } + if s.NewPublicVirtualInterface != nil { + if err := s.NewPublicVirtualInterface.Validate(); err != nil { + invalidParams.AddNested("NewPublicVirtualInterface", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConnectionId sets the ConnectionId field's value. +func (s *CreatePublicVirtualInterfaceInput) SetConnectionId(v string) *CreatePublicVirtualInterfaceInput { + s.ConnectionId = &v + return s +} + +// SetNewPublicVirtualInterface sets the NewPublicVirtualInterface field's value. +func (s *CreatePublicVirtualInterfaceInput) SetNewPublicVirtualInterface(v *NewPublicVirtualInterface) *CreatePublicVirtualInterfaceInput { + s.NewPublicVirtualInterface = v + return s +} + +// Container for the parameters to the DeleteBGPPeer operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteBGPPeerRequest +type DeleteBGPPeerInput struct { + _ struct{} `type:"structure"` + + // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. + // + // Example: 65000 + Asn *int64 `locationName:"asn" type:"integer"` + + // IP address assigned to the customer interface. + // + // Example: 192.168.1.2/30 or 2001:db8::2/125 + CustomerAddress *string `locationName:"customerAddress" type:"string"` + + // The ID of the virtual interface from which the BGP peer will be deleted. + // + // Example: dxvif-456abc78 + // + // Default: None + VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string"` +} + +// String returns the string representation +func (s DeleteBGPPeerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBGPPeerInput) GoString() string { + return s.String() +} + +// SetAsn sets the Asn field's value. +func (s *DeleteBGPPeerInput) SetAsn(v int64) *DeleteBGPPeerInput { + s.Asn = &v + return s +} + +// SetCustomerAddress sets the CustomerAddress field's value. +func (s *DeleteBGPPeerInput) SetCustomerAddress(v string) *DeleteBGPPeerInput { + s.CustomerAddress = &v + return s +} + +// SetVirtualInterfaceId sets the VirtualInterfaceId field's value. +func (s *DeleteBGPPeerInput) SetVirtualInterfaceId(v string) *DeleteBGPPeerInput { + s.VirtualInterfaceId = &v + return s +} + +// The response received when DeleteBGPPeer is called. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteBGPPeerResponse +type DeleteBGPPeerOutput struct { + _ struct{} `type:"structure"` + + // A virtual interface (VLAN) transmits the traffic between the AWS Direct Connect + // location and the customer. + VirtualInterface *VirtualInterface `locationName:"virtualInterface" type:"structure"` +} + +// String returns the string representation +func (s DeleteBGPPeerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBGPPeerOutput) GoString() string { + return s.String() +} + +// SetVirtualInterface sets the VirtualInterface field's value. +func (s *DeleteBGPPeerOutput) SetVirtualInterface(v *VirtualInterface) *DeleteBGPPeerOutput { + s.VirtualInterface = v + return s +} + +// Container for the parameters to the DeleteConnection operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteConnectionRequest +type DeleteConnectionInput struct { + _ struct{} `type:"structure"` + + // The ID of the connection. This field is also used as the ID type for operations + // that use multiple connection types (LAG, interconnect, and/or connection). + // + // Example: dxcon-fg5678gh + // + // Default: None + // + // ConnectionId is a required field + ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteConnectionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteConnectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteConnectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteConnectionInput"} + if s.ConnectionId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionId")) + } + + if invalidParams.Len() > 0 { + return invalidParams } + return nil +} + +// SetConnectionId sets the ConnectionId field's value. +func (s *DeleteConnectionInput) SetConnectionId(v string) *DeleteConnectionInput { + s.ConnectionId = &v + return s +} + +// Container for the parameters to the DeleteInterconnect operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteInterconnectRequest +type DeleteInterconnectInput struct { + _ struct{} `type:"structure"` + + // The ID of the interconnect. + // + // Example: dxcon-abc123 + // + // InterconnectId is a required field + InterconnectId *string `locationName:"interconnectId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteInterconnectInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteInterconnectInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteInterconnectInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteInterconnectInput"} if s.InterconnectId == nil { invalidParams.Add(request.NewErrParamRequired("InterconnectId")) } - if s.OwnerAccount == nil { - invalidParams.Add(request.NewErrParamRequired("OwnerAccount")) + + if invalidParams.Len() > 0 { + return invalidParams } - if s.Vlan == nil { - invalidParams.Add(request.NewErrParamRequired("Vlan")) + return nil +} + +// SetInterconnectId sets the InterconnectId field's value. +func (s *DeleteInterconnectInput) SetInterconnectId(v string) *DeleteInterconnectInput { + s.InterconnectId = &v + return s +} + +// The response received when DeleteInterconnect is called. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteInterconnectResponse +type DeleteInterconnectOutput struct { + _ struct{} `type:"structure"` + + // State of the interconnect. + // + // * Requested: The initial state of an interconnect. The interconnect stays + // in the requested state until the Letter of Authorization (LOA) is sent + // to the customer. + // + // * Pending: The interconnect has been approved, and is being initialized. + // + // * Available: The network link is up, and the interconnect is ready for + // use. + // + // * Down: The network link is down. + // + // * Deleting: The interconnect is in the process of being deleted. + // + // * Deleted: The interconnect has been deleted. + InterconnectState *string `locationName:"interconnectState" type:"string" enum:"InterconnectState"` +} + +// String returns the string representation +func (s DeleteInterconnectOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteInterconnectOutput) GoString() string { + return s.String() +} + +// SetInterconnectState sets the InterconnectState field's value. +func (s *DeleteInterconnectOutput) SetInterconnectState(v string) *DeleteInterconnectOutput { + s.InterconnectState = &v + return s +} + +// Container for the parameters to the DeleteLag operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteLagRequest +type DeleteLagInput struct { + _ struct{} `type:"structure"` + + // The ID of the LAG to delete. + // + // Example: dxlag-abc123 + // + // Default: None + // + // LagId is a required field + LagId *string `locationName:"lagId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteLagInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteLagInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteLagInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteLagInput"} + if s.LagId == nil { + invalidParams.Add(request.NewErrParamRequired("LagId")) } if invalidParams.Len() > 0 { @@ -1653,118 +4779,264 @@ func (s *AllocateConnectionOnInterconnectInput) Validate() error { return nil } -// Container for the parameters to the AllocatePrivateVirtualInterface operation. -type AllocatePrivateVirtualInterfaceInput struct { +// SetLagId sets the LagId field's value. +func (s *DeleteLagInput) SetLagId(v string) *DeleteLagInput { + s.LagId = &v + return s +} + +// Container for the parameters to the DeleteVirtualInterface operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteVirtualInterfaceRequest +type DeleteVirtualInterfaceInput struct { _ struct{} `type:"structure"` - // The connection ID on which the private virtual interface is provisioned. + // The ID of the virtual interface. + // + // Example: dxvif-123dfg56 // // Default: None // - // ConnectionId is a required field - ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` + // VirtualInterfaceId is a required field + VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string" required:"true"` +} - // Detailed information for the private virtual interface to be provisioned. +// String returns the string representation +func (s DeleteVirtualInterfaceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVirtualInterfaceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVirtualInterfaceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVirtualInterfaceInput"} + if s.VirtualInterfaceId == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVirtualInterfaceId sets the VirtualInterfaceId field's value. +func (s *DeleteVirtualInterfaceInput) SetVirtualInterfaceId(v string) *DeleteVirtualInterfaceInput { + s.VirtualInterfaceId = &v + return s +} + +// The response received when DeleteVirtualInterface is called. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteVirtualInterfaceResponse +type DeleteVirtualInterfaceOutput struct { + _ struct{} `type:"structure"` + + // State of the virtual interface. // - // Default: None + // * Confirming: The creation of the virtual interface is pending confirmation + // from the virtual interface owner. If the owner of the virtual interface + // is different from the owner of the connection on which it is provisioned, + // then the virtual interface will remain in this state until it is confirmed + // by the virtual interface owner. // - // NewPrivateVirtualInterfaceAllocation is a required field - NewPrivateVirtualInterfaceAllocation *NewPrivateVirtualInterfaceAllocation `locationName:"newPrivateVirtualInterfaceAllocation" type:"structure" required:"true"` + // * Verifying: This state only applies to public virtual interfaces. Each + // public virtual interface needs validation before the virtual interface + // can be created. + // + // * Pending: A virtual interface is in this state from the time that it + // is created until the virtual interface is ready to forward traffic. + // + // * Available: A virtual interface that is able to forward traffic. + // + // * Down: A virtual interface that is BGP down. + // + // * Deleting: A virtual interface is in this state immediately after calling + // DeleteVirtualInterface until it can no longer forward traffic. + // + // * Deleted: A virtual interface that cannot forward traffic. + // + // * Rejected: The virtual interface owner has declined creation of the virtual + // interface. If a virtual interface in the 'Confirming' state is deleted + // by the virtual interface owner, the virtual interface will enter the 'Rejected' + // state. + VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"` +} - // The AWS account that will own the new private virtual interface. +// String returns the string representation +func (s DeleteVirtualInterfaceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVirtualInterfaceOutput) GoString() string { + return s.String() +} + +// SetVirtualInterfaceState sets the VirtualInterfaceState field's value. +func (s *DeleteVirtualInterfaceOutput) SetVirtualInterfaceState(v string) *DeleteVirtualInterfaceOutput { + s.VirtualInterfaceState = &v + return s +} + +// Container for the parameters to the DescribeConnectionLoa operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeConnectionLoaRequest +type DescribeConnectionLoaInput struct { + _ struct{} `type:"structure"` + + // The ID of the connection. This field is also used as the ID type for operations + // that use multiple connection types (LAG, interconnect, and/or connection). + // + // Example: dxcon-fg5678gh // // Default: None // - // OwnerAccount is a required field - OwnerAccount *string `locationName:"ownerAccount" type:"string" required:"true"` + // ConnectionId is a required field + ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` + + // A standard media type indicating the content type of the LOA-CFA document. + // Currently, the only supported value is "application/pdf". + // + // Default: application/pdf + LoaContentType *string `locationName:"loaContentType" type:"string" enum:"LoaContentType"` + + // The name of the APN partner or service provider who establishes connectivity + // on your behalf. If you supply this parameter, the LOA-CFA lists the provider + // name alongside your company name as the requester of the cross connect. + // + // Default: None + ProviderName *string `locationName:"providerName" type:"string"` } // String returns the string representation -func (s AllocatePrivateVirtualInterfaceInput) String() string { +func (s DescribeConnectionLoaInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AllocatePrivateVirtualInterfaceInput) GoString() string { +func (s DescribeConnectionLoaInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AllocatePrivateVirtualInterfaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AllocatePrivateVirtualInterfaceInput"} +func (s *DescribeConnectionLoaInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeConnectionLoaInput"} if s.ConnectionId == nil { invalidParams.Add(request.NewErrParamRequired("ConnectionId")) } - if s.NewPrivateVirtualInterfaceAllocation == nil { - invalidParams.Add(request.NewErrParamRequired("NewPrivateVirtualInterfaceAllocation")) - } - if s.OwnerAccount == nil { - invalidParams.Add(request.NewErrParamRequired("OwnerAccount")) - } - if s.NewPrivateVirtualInterfaceAllocation != nil { - if err := s.NewPrivateVirtualInterfaceAllocation.Validate(); err != nil { - invalidParams.AddNested("NewPrivateVirtualInterfaceAllocation", err.(request.ErrInvalidParams)) - } + + if invalidParams.Len() > 0 { + return invalidParams } + return nil +} + +// SetConnectionId sets the ConnectionId field's value. +func (s *DescribeConnectionLoaInput) SetConnectionId(v string) *DescribeConnectionLoaInput { + s.ConnectionId = &v + return s +} + +// SetLoaContentType sets the LoaContentType field's value. +func (s *DescribeConnectionLoaInput) SetLoaContentType(v string) *DescribeConnectionLoaInput { + s.LoaContentType = &v + return s +} + +// SetProviderName sets the ProviderName field's value. +func (s *DescribeConnectionLoaInput) SetProviderName(v string) *DescribeConnectionLoaInput { + s.ProviderName = &v + return s +} + +// The response received when DescribeConnectionLoa is called. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeConnectionLoaResponse +type DescribeConnectionLoaOutput struct { + _ struct{} `type:"structure"` + + // A structure containing the Letter of Authorization - Connecting Facility + // Assignment (LOA-CFA) for a connection. + Loa *Loa `locationName:"loa" type:"structure"` +} + +// String returns the string representation +func (s DescribeConnectionLoaOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeConnectionLoaOutput) GoString() string { + return s.String() +} + +// SetLoa sets the Loa field's value. +func (s *DescribeConnectionLoaOutput) SetLoa(v *Loa) *DescribeConnectionLoaOutput { + s.Loa = v + return s +} + +// Container for the parameters to the DescribeConnections operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeConnectionsRequest +type DescribeConnectionsInput struct { + _ struct{} `type:"structure"` + + // The ID of the connection. This field is also used as the ID type for operations + // that use multiple connection types (LAG, interconnect, and/or connection). + // + // Example: dxcon-fg5678gh + // + // Default: None + ConnectionId *string `locationName:"connectionId" type:"string"` +} + +// String returns the string representation +func (s DescribeConnectionsInput) String() string { + return awsutil.Prettify(s) +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// GoString returns the string representation +func (s DescribeConnectionsInput) GoString() string { + return s.String() } -// Container for the parameters to the AllocatePublicVirtualInterface operation. -type AllocatePublicVirtualInterfaceInput struct { - _ struct{} `type:"structure"` +// SetConnectionId sets the ConnectionId field's value. +func (s *DescribeConnectionsInput) SetConnectionId(v string) *DescribeConnectionsInput { + s.ConnectionId = &v + return s +} - // The connection ID on which the public virtual interface is provisioned. - // - // Default: None - // - // ConnectionId is a required field - ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` +// Container for the parameters to the DescribeConnectionsOnInterconnect operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeConnectionsOnInterconnectRequest +type DescribeConnectionsOnInterconnectInput struct { + _ struct{} `type:"structure"` - // Detailed information for the public virtual interface to be provisioned. - // - // Default: None + // ID of the interconnect on which a list of connection is provisioned. // - // NewPublicVirtualInterfaceAllocation is a required field - NewPublicVirtualInterfaceAllocation *NewPublicVirtualInterfaceAllocation `locationName:"newPublicVirtualInterfaceAllocation" type:"structure" required:"true"` - - // The AWS account that will own the new public virtual interface. + // Example: dxcon-abc123 // // Default: None // - // OwnerAccount is a required field - OwnerAccount *string `locationName:"ownerAccount" type:"string" required:"true"` + // InterconnectId is a required field + InterconnectId *string `locationName:"interconnectId" type:"string" required:"true"` } // String returns the string representation -func (s AllocatePublicVirtualInterfaceInput) String() string { +func (s DescribeConnectionsOnInterconnectInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AllocatePublicVirtualInterfaceInput) GoString() string { +func (s DescribeConnectionsOnInterconnectInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AllocatePublicVirtualInterfaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AllocatePublicVirtualInterfaceInput"} - if s.ConnectionId == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionId")) - } - if s.NewPublicVirtualInterfaceAllocation == nil { - invalidParams.Add(request.NewErrParamRequired("NewPublicVirtualInterfaceAllocation")) - } - if s.OwnerAccount == nil { - invalidParams.Add(request.NewErrParamRequired("OwnerAccount")) - } - if s.NewPublicVirtualInterfaceAllocation != nil { - if err := s.NewPublicVirtualInterfaceAllocation.Validate(); err != nil { - invalidParams.AddNested("NewPublicVirtualInterfaceAllocation", err.(request.ErrInvalidParams)) - } +func (s *DescribeConnectionsOnInterconnectInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeConnectionsOnInterconnectInput"} + if s.InterconnectId == nil { + invalidParams.Add(request.NewErrParamRequired("InterconnectId")) } if invalidParams.Len() > 0 { @@ -1773,13 +5045,20 @@ func (s *AllocatePublicVirtualInterfaceInput) Validate() error { return nil } -// Container for the parameters to the ConfirmConnection operation. -type ConfirmConnectionInput struct { +// SetInterconnectId sets the InterconnectId field's value. +func (s *DescribeConnectionsOnInterconnectInput) SetInterconnectId(v string) *DescribeConnectionsOnInterconnectInput { + s.InterconnectId = &v + return s +} + +// Container for the parameters to the DescribeHostedConnections operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeHostedConnectionsRequest +type DescribeHostedConnectionsInput struct { _ struct{} `type:"structure"` - // ID of the connection. + // The ID of the interconnect or LAG on which the hosted connections are provisioned. // - // Example: dxcon-fg5678gh + // Example: dxcon-abc123 or dxlag-abc123 // // Default: None // @@ -1788,18 +5067,18 @@ type ConfirmConnectionInput struct { } // String returns the string representation -func (s ConfirmConnectionInput) String() string { +func (s DescribeHostedConnectionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ConfirmConnectionInput) GoString() string { +func (s DescribeHostedConnectionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ConfirmConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConfirmConnectionInput"} +func (s *DescribeHostedConnectionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeHostedConnectionsInput"} if s.ConnectionId == nil { invalidParams.Add(request.NewErrParamRequired("ConnectionId")) } @@ -1810,88 +5089,53 @@ func (s *ConfirmConnectionInput) Validate() error { return nil } -// The response received when ConfirmConnection is called. -type ConfirmConnectionOutput struct { - _ struct{} `type:"structure"` - - // State of the connection. - // - // Ordering: The initial state of a hosted connection provisioned on an - // interconnect. The connection stays in the ordering state until the owner - // of the hosted connection confirms or declines the connection order. - // - // Requested: The initial state of a standard connection. The connection - // stays in the requested state until the Letter of Authorization (LOA) is sent - // to the customer. - // - // Pending: The connection has been approved, and is being initialized. - // - // Available: The network link is up, and the connection is ready for use. - // - // Down: The network link is down. - // - // Deleting: The connection is in the process of being deleted. - // - // Deleted: The connection has been deleted. - // - // Rejected: A hosted connection in the 'Ordering' state will enter the - // 'Rejected' state if it is deleted by the end customer. - ConnectionState *string `locationName:"connectionState" type:"string" enum:"ConnectionState"` -} - -// String returns the string representation -func (s ConfirmConnectionOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ConfirmConnectionOutput) GoString() string { - return s.String() +// SetConnectionId sets the ConnectionId field's value. +func (s *DescribeHostedConnectionsInput) SetConnectionId(v string) *DescribeHostedConnectionsInput { + s.ConnectionId = &v + return s } -// Container for the parameters to the ConfirmPrivateVirtualInterface operation. -type ConfirmPrivateVirtualInterfaceInput struct { +// Container for the parameters to the DescribeInterconnectLoa operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeInterconnectLoaRequest +type DescribeInterconnectLoaInput struct { _ struct{} `type:"structure"` - // ID of the virtual private gateway that will be attached to the virtual interface. - // - // A virtual private gateway can be managed via the Amazon Virtual Private - // Cloud (VPC) console or the EC2 CreateVpnGateway (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateVpnGateway.html) - // action. + // The ID of the interconnect. // - // Default: None + // Example: dxcon-abc123 // - // VirtualGatewayId is a required field - VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string" required:"true"` + // InterconnectId is a required field + InterconnectId *string `locationName:"interconnectId" type:"string" required:"true"` - // ID of the virtual interface. + // A standard media type indicating the content type of the LOA-CFA document. + // Currently, the only supported value is "application/pdf". // - // Example: dxvif-123dfg56 + // Default: application/pdf + LoaContentType *string `locationName:"loaContentType" type:"string" enum:"LoaContentType"` + + // The name of the service provider who establishes connectivity on your behalf. + // If you supply this parameter, the LOA-CFA lists the provider name alongside + // your company name as the requester of the cross connect. // // Default: None - // - // VirtualInterfaceId is a required field - VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string" required:"true"` + ProviderName *string `locationName:"providerName" type:"string"` } // String returns the string representation -func (s ConfirmPrivateVirtualInterfaceInput) String() string { +func (s DescribeInterconnectLoaInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ConfirmPrivateVirtualInterfaceInput) GoString() string { +func (s DescribeInterconnectLoaInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ConfirmPrivateVirtualInterfaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConfirmPrivateVirtualInterfaceInput"} - if s.VirtualGatewayId == nil { - invalidParams.Add(request.NewErrParamRequired("VirtualGatewayId")) - } - if s.VirtualInterfaceId == nil { - invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceId")) +func (s *DescribeInterconnectLoaInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeInterconnectLoaInput"} + if s.InterconnectId == nil { + invalidParams.Add(request.NewErrParamRequired("InterconnectId")) } if invalidParams.Len() > 0 { @@ -1900,293 +5144,200 @@ func (s *ConfirmPrivateVirtualInterfaceInput) Validate() error { return nil } -// The response received when ConfirmPrivateVirtualInterface is called. -type ConfirmPrivateVirtualInterfaceOutput struct { +// SetInterconnectId sets the InterconnectId field's value. +func (s *DescribeInterconnectLoaInput) SetInterconnectId(v string) *DescribeInterconnectLoaInput { + s.InterconnectId = &v + return s +} + +// SetLoaContentType sets the LoaContentType field's value. +func (s *DescribeInterconnectLoaInput) SetLoaContentType(v string) *DescribeInterconnectLoaInput { + s.LoaContentType = &v + return s +} + +// SetProviderName sets the ProviderName field's value. +func (s *DescribeInterconnectLoaInput) SetProviderName(v string) *DescribeInterconnectLoaInput { + s.ProviderName = &v + return s +} + +// The response received when DescribeInterconnectLoa is called. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeInterconnectLoaResponse +type DescribeInterconnectLoaOutput struct { _ struct{} `type:"structure"` - // State of the virtual interface. - // - // Confirming: The creation of the virtual interface is pending confirmation - // from the virtual interface owner. If the owner of the virtual interface is - // different from the owner of the connection on which it is provisioned, then - // the virtual interface will remain in this state until it is confirmed by - // the virtual interface owner. - // - // Verifying: This state only applies to public virtual interfaces. Each - // public virtual interface needs validation before the virtual interface can - // be created. - // - // Pending: A virtual interface is in this state from the time that it is - // created until the virtual interface is ready to forward traffic. - // - // Available: A virtual interface that is able to forward traffic. - // - // Down: A virtual interface that is BGP down. - // - // Deleting: A virtual interface is in this state immediately after calling - // DeleteVirtualInterface until it can no longer forward traffic. - // - // Deleted: A virtual interface that cannot forward traffic. - // - // Rejected: The virtual interface owner has declined creation of the virtual - // interface. If a virtual interface in the 'Confirming' state is deleted by - // the virtual interface owner, the virtual interface will enter the 'Rejected' - // state. - VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"` + // A structure containing the Letter of Authorization - Connecting Facility + // Assignment (LOA-CFA) for a connection. + Loa *Loa `locationName:"loa" type:"structure"` } // String returns the string representation -func (s ConfirmPrivateVirtualInterfaceOutput) String() string { +func (s DescribeInterconnectLoaOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ConfirmPrivateVirtualInterfaceOutput) GoString() string { +func (s DescribeInterconnectLoaOutput) GoString() string { return s.String() } -// Container for the parameters to the ConfirmPublicVirtualInterface operation. -type ConfirmPublicVirtualInterfaceInput struct { +// SetLoa sets the Loa field's value. +func (s *DescribeInterconnectLoaOutput) SetLoa(v *Loa) *DescribeInterconnectLoaOutput { + s.Loa = v + return s +} + +// Container for the parameters to the DescribeInterconnects operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeInterconnectsRequest +type DescribeInterconnectsInput struct { _ struct{} `type:"structure"` - // ID of the virtual interface. - // - // Example: dxvif-123dfg56 - // - // Default: None + // The ID of the interconnect. // - // VirtualInterfaceId is a required field - VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string" required:"true"` + // Example: dxcon-abc123 + InterconnectId *string `locationName:"interconnectId" type:"string"` } // String returns the string representation -func (s ConfirmPublicVirtualInterfaceInput) String() string { +func (s DescribeInterconnectsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ConfirmPublicVirtualInterfaceInput) GoString() string { +func (s DescribeInterconnectsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ConfirmPublicVirtualInterfaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConfirmPublicVirtualInterfaceInput"} - if s.VirtualInterfaceId == nil { - invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetInterconnectId sets the InterconnectId field's value. +func (s *DescribeInterconnectsInput) SetInterconnectId(v string) *DescribeInterconnectsInput { + s.InterconnectId = &v + return s } -// The response received when ConfirmPublicVirtualInterface is called. -type ConfirmPublicVirtualInterfaceOutput struct { +// A structure containing a list of interconnects. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/Interconnects +type DescribeInterconnectsOutput struct { _ struct{} `type:"structure"` - // State of the virtual interface. - // - // Confirming: The creation of the virtual interface is pending confirmation - // from the virtual interface owner. If the owner of the virtual interface is - // different from the owner of the connection on which it is provisioned, then - // the virtual interface will remain in this state until it is confirmed by - // the virtual interface owner. - // - // Verifying: This state only applies to public virtual interfaces. Each - // public virtual interface needs validation before the virtual interface can - // be created. - // - // Pending: A virtual interface is in this state from the time that it is - // created until the virtual interface is ready to forward traffic. - // - // Available: A virtual interface that is able to forward traffic. - // - // Down: A virtual interface that is BGP down. - // - // Deleting: A virtual interface is in this state immediately after calling - // DeleteVirtualInterface until it can no longer forward traffic. - // - // Deleted: A virtual interface that cannot forward traffic. - // - // Rejected: The virtual interface owner has declined creation of the virtual - // interface. If a virtual interface in the 'Confirming' state is deleted by - // the virtual interface owner, the virtual interface will enter the 'Rejected' - // state. - VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"` + // A list of interconnects. + Interconnects []*Interconnect `locationName:"interconnects" type:"list"` } // String returns the string representation -func (s ConfirmPublicVirtualInterfaceOutput) String() string { +func (s DescribeInterconnectsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ConfirmPublicVirtualInterfaceOutput) GoString() string { +func (s DescribeInterconnectsOutput) GoString() string { return s.String() } -// A connection represents the physical network connection between the AWS Direct -// Connect location and the customer. -type Connection struct { - _ struct{} `type:"structure"` - - // Bandwidth of the connection. - // - // Example: 1Gbps (for regular connections), or 500Mbps (for hosted connections) - // - // Default: None - Bandwidth *string `locationName:"bandwidth" type:"string"` - - // ID of the connection. - // - // Example: dxcon-fg5678gh - // - // Default: None - ConnectionId *string `locationName:"connectionId" type:"string"` - - // The name of the connection. - // - // Example: "My Connection to AWS" - // - // Default: None - ConnectionName *string `locationName:"connectionName" type:"string"` - - // State of the connection. - // - // Ordering: The initial state of a hosted connection provisioned on an - // interconnect. The connection stays in the ordering state until the owner - // of the hosted connection confirms or declines the connection order. - // - // Requested: The initial state of a standard connection. The connection - // stays in the requested state until the Letter of Authorization (LOA) is sent - // to the customer. - // - // Pending: The connection has been approved, and is being initialized. - // - // Available: The network link is up, and the connection is ready for use. - // - // Down: The network link is down. - // - // Deleting: The connection is in the process of being deleted. - // - // Deleted: The connection has been deleted. - // - // Rejected: A hosted connection in the 'Ordering' state will enter the - // 'Rejected' state if it is deleted by the end customer. - ConnectionState *string `locationName:"connectionState" type:"string" enum:"ConnectionState"` - - // The time of the most recent call to DescribeConnectionLoa for this Connection. - LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp" timestampFormat:"unix"` - - // Where the connection is located. - // - // Example: EqSV5 - // - // Default: None - Location *string `locationName:"location" type:"string"` - - // The AWS account that will own the new connection. - OwnerAccount *string `locationName:"ownerAccount" type:"string"` +// SetInterconnects sets the Interconnects field's value. +func (s *DescribeInterconnectsOutput) SetInterconnects(v []*Interconnect) *DescribeInterconnectsOutput { + s.Interconnects = v + return s +} - // The name of the AWS Direct Connect service provider associated with the connection. - PartnerName *string `locationName:"partnerName" type:"string"` +// Container for the parameters to the DescribeLags operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeLagsRequest +type DescribeLagsInput struct { + _ struct{} `type:"structure"` - // The AWS region where the connection is located. + // The ID of the LAG. // - // Example: us-east-1 + // Example: dxlag-abc123 // // Default: None - Region *string `locationName:"region" type:"string"` - - // The VLAN ID. - // - // Example: 101 - Vlan *int64 `locationName:"vlan" type:"integer"` + LagId *string `locationName:"lagId" type:"string"` } // String returns the string representation -func (s Connection) String() string { +func (s DescribeLagsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Connection) GoString() string { +func (s DescribeLagsInput) GoString() string { return s.String() } -// A structure containing a list of connections. -type Connections struct { +// SetLagId sets the LagId field's value. +func (s *DescribeLagsInput) SetLagId(v string) *DescribeLagsInput { + s.LagId = &v + return s +} + +// A structure containing a list of LAGs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/Lags +type DescribeLagsOutput struct { _ struct{} `type:"structure"` - // A list of connections. - Connections []*Connection `locationName:"connections" type:"list"` + // A list of LAGs. + Lags []*Lag `locationName:"lags" type:"list"` } // String returns the string representation -func (s Connections) String() string { +func (s DescribeLagsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Connections) GoString() string { +func (s DescribeLagsOutput) GoString() string { return s.String() } -// Container for the parameters to the CreateConnection operation. -type CreateConnectionInput struct { +// SetLags sets the Lags field's value. +func (s *DescribeLagsOutput) SetLags(v []*Lag) *DescribeLagsOutput { + s.Lags = v + return s +} + +// Container for the parameters to the DescribeLoa operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeLoaRequest +type DescribeLoaInput struct { _ struct{} `type:"structure"` - // Bandwidth of the connection. + // The ID of a connection, LAG, or interconnect for which to get the LOA-CFA + // information. // - // Example: 1Gbps + // Example: dxcon-abc123 or dxlag-abc123 // // Default: None // - // Bandwidth is a required field - Bandwidth *string `locationName:"bandwidth" type:"string" required:"true"` + // ConnectionId is a required field + ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` - // The name of the connection. - // - // Example: "My Connection to AWS" - // - // Default: None + // A standard media type indicating the content type of the LOA-CFA document. + // Currently, the only supported value is "application/pdf". // - // ConnectionName is a required field - ConnectionName *string `locationName:"connectionName" type:"string" required:"true"` + // Default: application/pdf + LoaContentType *string `locationName:"loaContentType" type:"string" enum:"LoaContentType"` - // Where the connection is located. - // - // Example: EqSV5 + // The name of the service provider who establishes connectivity on your behalf. + // If you supply this parameter, the LOA-CFA lists the provider name alongside + // your company name as the requester of the cross connect. // // Default: None - // - // Location is a required field - Location *string `locationName:"location" type:"string" required:"true"` + ProviderName *string `locationName:"providerName" type:"string"` } // String returns the string representation -func (s CreateConnectionInput) String() string { +func (s DescribeLoaInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateConnectionInput) GoString() string { +func (s DescribeLoaInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateConnectionInput"} - if s.Bandwidth == nil { - invalidParams.Add(request.NewErrParamRequired("Bandwidth")) - } - if s.ConnectionName == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionName")) - } - if s.Location == nil { - invalidParams.Add(request.NewErrParamRequired("Location")) +func (s *DescribeLoaInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeLoaInput"} + if s.ConnectionId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionId")) } if invalidParams.Len() > 0 { @@ -2195,113 +5346,94 @@ func (s *CreateConnectionInput) Validate() error { return nil } -// Container for the parameters to the CreateInterconnect operation. -type CreateInterconnectInput struct { - _ struct{} `type:"structure"` +// SetConnectionId sets the ConnectionId field's value. +func (s *DescribeLoaInput) SetConnectionId(v string) *DescribeLoaInput { + s.ConnectionId = &v + return s +} - // The port bandwidth - // - // Example: 1Gbps - // - // Default: None - // - // Available values: 1Gbps,10Gbps - // - // Bandwidth is a required field - Bandwidth *string `locationName:"bandwidth" type:"string" required:"true"` +// SetLoaContentType sets the LoaContentType field's value. +func (s *DescribeLoaInput) SetLoaContentType(v string) *DescribeLoaInput { + s.LoaContentType = &v + return s +} - // The name of the interconnect. - // - // Example: "1G Interconnect to AWS" - // - // Default: None - // - // InterconnectName is a required field - InterconnectName *string `locationName:"interconnectName" type:"string" required:"true"` +// SetProviderName sets the ProviderName field's value. +func (s *DescribeLoaInput) SetProviderName(v string) *DescribeLoaInput { + s.ProviderName = &v + return s +} - // Where the interconnect is located - // - // Example: EqSV5 - // - // Default: None - // - // Location is a required field - Location *string `locationName:"location" type:"string" required:"true"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeLocationsInput +type DescribeLocationsInput struct { + _ struct{} `type:"structure"` } // String returns the string representation -func (s CreateInterconnectInput) String() string { +func (s DescribeLocationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateInterconnectInput) GoString() string { +func (s DescribeLocationsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateInterconnectInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateInterconnectInput"} - if s.Bandwidth == nil { - invalidParams.Add(request.NewErrParamRequired("Bandwidth")) - } - if s.InterconnectName == nil { - invalidParams.Add(request.NewErrParamRequired("InterconnectName")) - } - if s.Location == nil { - invalidParams.Add(request.NewErrParamRequired("Location")) - } +// A location is a network facility where AWS Direct Connect routers are available +// to be connected. Generally, these are colocation hubs where many network +// providers have equipment, and where cross connects can be delivered. Locations +// include a name and facility code, and must be provided when creating a connection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/Locations +type DescribeLocationsOutput struct { + _ struct{} `type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + // A list of colocation hubs where network providers have equipment. Most regions + // have multiple locations available. + Locations []*Location `locationName:"locations" type:"list"` } -// Container for the parameters to the CreatePrivateVirtualInterface operation. -type CreatePrivateVirtualInterfaceInput struct { - _ struct{} `type:"structure"` +// String returns the string representation +func (s DescribeLocationsOutput) String() string { + return awsutil.Prettify(s) +} - // ID of the connection. - // - // Example: dxcon-fg5678gh - // - // Default: None - // - // ConnectionId is a required field - ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` +// GoString returns the string representation +func (s DescribeLocationsOutput) GoString() string { + return s.String() +} - // Detailed information for the private virtual interface to be created. - // - // Default: None +// SetLocations sets the Locations field's value. +func (s *DescribeLocationsOutput) SetLocations(v []*Location) *DescribeLocationsOutput { + s.Locations = v + return s +} + +// Container for the parameters to the DescribeTags operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeTagsRequest +type DescribeTagsInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Names (ARNs) of the Direct Connect resources. // - // NewPrivateVirtualInterface is a required field - NewPrivateVirtualInterface *NewPrivateVirtualInterface `locationName:"newPrivateVirtualInterface" type:"structure" required:"true"` + // ResourceArns is a required field + ResourceArns []*string `locationName:"resourceArns" type:"list" required:"true"` } // String returns the string representation -func (s CreatePrivateVirtualInterfaceInput) String() string { +func (s DescribeTagsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreatePrivateVirtualInterfaceInput) GoString() string { +func (s DescribeTagsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePrivateVirtualInterfaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePrivateVirtualInterfaceInput"} - if s.ConnectionId == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionId")) - } - if s.NewPrivateVirtualInterface == nil { - invalidParams.Add(request.NewErrParamRequired("NewPrivateVirtualInterface")) - } - if s.NewPrivateVirtualInterface != nil { - if err := s.NewPrivateVirtualInterface.Validate(); err != nil { - invalidParams.AddNested("NewPrivateVirtualInterface", err.(request.ErrInvalidParams)) - } +func (s *DescribeTagsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeTagsInput"} + if s.ResourceArns == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArns")) } if invalidParams.Len() > 0 { @@ -2310,192 +5442,187 @@ func (s *CreatePrivateVirtualInterfaceInput) Validate() error { return nil } -// Container for the parameters to the CreatePublicVirtualInterface operation. -type CreatePublicVirtualInterfaceInput struct { - _ struct{} `type:"structure"` +// SetResourceArns sets the ResourceArns field's value. +func (s *DescribeTagsInput) SetResourceArns(v []*string) *DescribeTagsInput { + s.ResourceArns = v + return s +} - // ID of the connection. - // - // Example: dxcon-fg5678gh - // - // Default: None - // - // ConnectionId is a required field - ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` +// The response received when DescribeTags is called. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeTagsResponse +type DescribeTagsOutput struct { + _ struct{} `type:"structure"` - // Detailed information for the public virtual interface to be created. - // - // Default: None - // - // NewPublicVirtualInterface is a required field - NewPublicVirtualInterface *NewPublicVirtualInterface `locationName:"newPublicVirtualInterface" type:"structure" required:"true"` + // Information about the tags. + ResourceTags []*ResourceTag `locationName:"resourceTags" type:"list"` } // String returns the string representation -func (s CreatePublicVirtualInterfaceInput) String() string { +func (s DescribeTagsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreatePublicVirtualInterfaceInput) GoString() string { +func (s DescribeTagsOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePublicVirtualInterfaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePublicVirtualInterfaceInput"} - if s.ConnectionId == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionId")) - } - if s.NewPublicVirtualInterface == nil { - invalidParams.Add(request.NewErrParamRequired("NewPublicVirtualInterface")) - } - if s.NewPublicVirtualInterface != nil { - if err := s.NewPublicVirtualInterface.Validate(); err != nil { - invalidParams.AddNested("NewPublicVirtualInterface", err.(request.ErrInvalidParams)) - } - } +// SetResourceTags sets the ResourceTags field's value. +func (s *DescribeTagsOutput) SetResourceTags(v []*ResourceTag) *DescribeTagsOutput { + s.ResourceTags = v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeVirtualGatewaysInput +type DescribeVirtualGatewaysInput struct { + _ struct{} `type:"structure"` } -// Container for the parameters to the DeleteConnection operation. -type DeleteConnectionInput struct { +// String returns the string representation +func (s DescribeVirtualGatewaysInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeVirtualGatewaysInput) GoString() string { + return s.String() +} + +// A structure containing a list of virtual private gateways. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/VirtualGateways +type DescribeVirtualGatewaysOutput struct { _ struct{} `type:"structure"` - // ID of the connection. - // - // Example: dxcon-fg5678gh - // - // Default: None - // - // ConnectionId is a required field - ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` + // A list of virtual private gateways. + VirtualGateways []*VirtualGateway `locationName:"virtualGateways" type:"list"` } // String returns the string representation -func (s DeleteConnectionInput) String() string { +func (s DescribeVirtualGatewaysOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteConnectionInput) GoString() string { +func (s DescribeVirtualGatewaysOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteConnectionInput"} - if s.ConnectionId == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetVirtualGateways sets the VirtualGateways field's value. +func (s *DescribeVirtualGatewaysOutput) SetVirtualGateways(v []*VirtualGateway) *DescribeVirtualGatewaysOutput { + s.VirtualGateways = v + return s } -// Container for the parameters to the DeleteInterconnect operation. -type DeleteInterconnectInput struct { +// Container for the parameters to the DescribeVirtualInterfaces operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeVirtualInterfacesRequest +type DescribeVirtualInterfacesInput struct { _ struct{} `type:"structure"` - // The ID of the interconnect. + // The ID of the connection. This field is also used as the ID type for operations + // that use multiple connection types (LAG, interconnect, and/or connection). + // + // Example: dxcon-fg5678gh + // + // Default: None + ConnectionId *string `locationName:"connectionId" type:"string"` + + // The ID of the virtual interface. // - // Example: dxcon-abc123 + // Example: dxvif-123dfg56 // - // InterconnectId is a required field - InterconnectId *string `locationName:"interconnectId" type:"string" required:"true"` + // Default: None + VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string"` } // String returns the string representation -func (s DeleteInterconnectInput) String() string { +func (s DescribeVirtualInterfacesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteInterconnectInput) GoString() string { +func (s DescribeVirtualInterfacesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteInterconnectInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteInterconnectInput"} - if s.InterconnectId == nil { - invalidParams.Add(request.NewErrParamRequired("InterconnectId")) - } +// SetConnectionId sets the ConnectionId field's value. +func (s *DescribeVirtualInterfacesInput) SetConnectionId(v string) *DescribeVirtualInterfacesInput { + s.ConnectionId = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetVirtualInterfaceId sets the VirtualInterfaceId field's value. +func (s *DescribeVirtualInterfacesInput) SetVirtualInterfaceId(v string) *DescribeVirtualInterfacesInput { + s.VirtualInterfaceId = &v + return s } -// The response received when DeleteInterconnect is called. -type DeleteInterconnectOutput struct { +// A structure containing a list of virtual interfaces. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/VirtualInterfaces +type DescribeVirtualInterfacesOutput struct { _ struct{} `type:"structure"` - // State of the interconnect. - // - // Requested: The initial state of an interconnect. The interconnect stays - // in the requested state until the Letter of Authorization (LOA) is sent to - // the customer. - // - // Pending>: The interconnect has been approved, and is being initialized. - // - // Available: The network link is up, and the interconnect is ready for - // use. - // - // Down: The network link is down. - // - // Deleting: The interconnect is in the process of being deleted. - // - // Deleted: The interconnect has been deleted. - InterconnectState *string `locationName:"interconnectState" type:"string" enum:"InterconnectState"` + // A list of virtual interfaces. + VirtualInterfaces []*VirtualInterface `locationName:"virtualInterfaces" type:"list"` } // String returns the string representation -func (s DeleteInterconnectOutput) String() string { +func (s DescribeVirtualInterfacesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteInterconnectOutput) GoString() string { +func (s DescribeVirtualInterfacesOutput) GoString() string { return s.String() } -// Container for the parameters to the DeleteVirtualInterface operation. -type DeleteVirtualInterfaceInput struct { +// SetVirtualInterfaces sets the VirtualInterfaces field's value. +func (s *DescribeVirtualInterfacesOutput) SetVirtualInterfaces(v []*VirtualInterface) *DescribeVirtualInterfacesOutput { + s.VirtualInterfaces = v + return s +} + +// Container for the parameters to the DisassociateConnectionFromLag operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DisassociateConnectionFromLagRequest +type DisassociateConnectionFromLagInput struct { _ struct{} `type:"structure"` - // ID of the virtual interface. + // The ID of the connection to disassociate from the LAG. // - // Example: dxvif-123dfg56 + // Example: dxcon-abc123 // // Default: None // - // VirtualInterfaceId is a required field - VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string" required:"true"` + // ConnectionId is a required field + ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` + + // The ID of the LAG. + // + // Example: dxlag-abc123 + // + // Default: None + // + // LagId is a required field + LagId *string `locationName:"lagId" type:"string" required:"true"` } // String returns the string representation -func (s DeleteVirtualInterfaceInput) String() string { +func (s DisassociateConnectionFromLagInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteVirtualInterfaceInput) GoString() string { +func (s DisassociateConnectionFromLagInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVirtualInterfaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVirtualInterfaceInput"} - if s.VirtualInterfaceId == nil { - invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceId")) +func (s *DisassociateConnectionFromLagInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateConnectionFromLagInput"} + if s.ConnectionId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionId")) + } + if s.LagId == nil { + invalidParams.Add(request.NewErrParamRequired("LagId")) } if invalidParams.Len() > 0 { @@ -2504,560 +5631,895 @@ func (s *DeleteVirtualInterfaceInput) Validate() error { return nil } -// The response received when DeleteVirtualInterface is called. -type DeleteVirtualInterfaceOutput struct { +// SetConnectionId sets the ConnectionId field's value. +func (s *DisassociateConnectionFromLagInput) SetConnectionId(v string) *DisassociateConnectionFromLagInput { + s.ConnectionId = &v + return s +} + +// SetLagId sets the LagId field's value. +func (s *DisassociateConnectionFromLagInput) SetLagId(v string) *DisassociateConnectionFromLagInput { + s.LagId = &v + return s +} + +// An interconnect is a connection that can host other connections. +// +// Like a standard AWS Direct Connect connection, an interconnect represents +// the physical connection between an AWS Direct Connect partner's network and +// a specific Direct Connect location. An AWS Direct Connect partner who owns +// an interconnect can provision hosted connections on the interconnect for +// their end customers, thereby providing the end customers with connectivity +// to AWS services. +// +// The resources of the interconnect, including bandwidth and VLAN numbers, +// are shared by all of the hosted connections on the interconnect, and the +// owner of the interconnect determines how these resources are assigned. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/Interconnect +type Interconnect struct { _ struct{} `type:"structure"` - // State of the virtual interface. + // The Direct Connection endpoint which the physical connection terminates on. + AwsDevice *string `locationName:"awsDevice" type:"string"` + + // Bandwidth of the connection. + // + // Example: 1Gbps + // + // Default: None + Bandwidth *string `locationName:"bandwidth" type:"string"` + + // The ID of the interconnect. // - // Confirming: The creation of the virtual interface is pending confirmation - // from the virtual interface owner. If the owner of the virtual interface is - // different from the owner of the connection on which it is provisioned, then - // the virtual interface will remain in this state until it is confirmed by - // the virtual interface owner. + // Example: dxcon-abc123 + InterconnectId *string `locationName:"interconnectId" type:"string"` + + // The name of the interconnect. // - // Verifying: This state only applies to public virtual interfaces. Each - // public virtual interface needs validation before the virtual interface can - // be created. + // Example: "1G Interconnect to AWS" + InterconnectName *string `locationName:"interconnectName" type:"string"` + + // State of the interconnect. // - // Pending: A virtual interface is in this state from the time that it is - // created until the virtual interface is ready to forward traffic. + // * Requested: The initial state of an interconnect. The interconnect stays + // in the requested state until the Letter of Authorization (LOA) is sent + // to the customer. // - // Available: A virtual interface that is able to forward traffic. + // * Pending: The interconnect has been approved, and is being initialized. // - // Down: A virtual interface that is BGP down. + // * Available: The network link is up, and the interconnect is ready for + // use. // - // Deleting: A virtual interface is in this state immediately after calling - // DeleteVirtualInterface until it can no longer forward traffic. + // * Down: The network link is down. // - // Deleted: A virtual interface that cannot forward traffic. + // * Deleting: The interconnect is in the process of being deleted. // - // Rejected: The virtual interface owner has declined creation of the virtual - // interface. If a virtual interface in the 'Confirming' state is deleted by - // the virtual interface owner, the virtual interface will enter the 'Rejected' - // state. - VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"` -} - -// String returns the string representation -func (s DeleteVirtualInterfaceOutput) String() string { - return awsutil.Prettify(s) -} + // * Deleted: The interconnect has been deleted. + InterconnectState *string `locationName:"interconnectState" type:"string" enum:"InterconnectState"` -// GoString returns the string representation -func (s DeleteVirtualInterfaceOutput) GoString() string { - return s.String() -} + // The ID of the LAG. + // + // Example: dxlag-fg5678gh + LagId *string `locationName:"lagId" type:"string"` -// Container for the parameters to the DescribeConnectionLoa operation. -type DescribeConnectionLoaInput struct { - _ struct{} `type:"structure"` + // The time of the most recent call to DescribeInterconnectLoa for this Interconnect. + LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp" timestampFormat:"unix"` - // ID of the connection. + // Where the connection is located. // - // Example: dxcon-fg5678gh + // Example: EqSV5 // // Default: None - // - // ConnectionId is a required field - ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` + Location *string `locationName:"location" type:"string"` - // A standard media type indicating the content type of the LOA-CFA document. - // Currently, the only supported value is "application/pdf". + // The AWS region where the connection is located. // - // Default: application/pdf - LoaContentType *string `locationName:"loaContentType" type:"string" enum:"LoaContentType"` - - // The name of the APN partner or service provider who establishes connectivity - // on your behalf. If you supply this parameter, the LOA-CFA lists the provider - // name alongside your company name as the requester of the cross connect. + // Example: us-east-1 // // Default: None - ProviderName *string `locationName:"providerName" type:"string"` + Region *string `locationName:"region" type:"string"` } // String returns the string representation -func (s DescribeConnectionLoaInput) String() string { +func (s Interconnect) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeConnectionLoaInput) GoString() string { +func (s Interconnect) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeConnectionLoaInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeConnectionLoaInput"} - if s.ConnectionId == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetAwsDevice sets the AwsDevice field's value. +func (s *Interconnect) SetAwsDevice(v string) *Interconnect { + s.AwsDevice = &v + return s } -// The response received when DescribeConnectionLoa is called. -type DescribeConnectionLoaOutput struct { - _ struct{} `type:"structure"` +// SetBandwidth sets the Bandwidth field's value. +func (s *Interconnect) SetBandwidth(v string) *Interconnect { + s.Bandwidth = &v + return s +} - // A structure containing the Letter of Authorization - Connecting Facility - // Assignment (LOA-CFA) for a connection. - Loa *Loa `locationName:"loa" type:"structure"` +// SetInterconnectId sets the InterconnectId field's value. +func (s *Interconnect) SetInterconnectId(v string) *Interconnect { + s.InterconnectId = &v + return s } -// String returns the string representation -func (s DescribeConnectionLoaOutput) String() string { - return awsutil.Prettify(s) +// SetInterconnectName sets the InterconnectName field's value. +func (s *Interconnect) SetInterconnectName(v string) *Interconnect { + s.InterconnectName = &v + return s } -// GoString returns the string representation -func (s DescribeConnectionLoaOutput) GoString() string { - return s.String() +// SetInterconnectState sets the InterconnectState field's value. +func (s *Interconnect) SetInterconnectState(v string) *Interconnect { + s.InterconnectState = &v + return s } -// Container for the parameters to the DescribeConnections operation. -type DescribeConnectionsInput struct { - _ struct{} `type:"structure"` +// SetLagId sets the LagId field's value. +func (s *Interconnect) SetLagId(v string) *Interconnect { + s.LagId = &v + return s +} - // ID of the connection. - // - // Example: dxcon-fg5678gh - // - // Default: None - ConnectionId *string `locationName:"connectionId" type:"string"` +// SetLoaIssueTime sets the LoaIssueTime field's value. +func (s *Interconnect) SetLoaIssueTime(v time.Time) *Interconnect { + s.LoaIssueTime = &v + return s } -// String returns the string representation -func (s DescribeConnectionsInput) String() string { - return awsutil.Prettify(s) +// SetLocation sets the Location field's value. +func (s *Interconnect) SetLocation(v string) *Interconnect { + s.Location = &v + return s } -// GoString returns the string representation -func (s DescribeConnectionsInput) GoString() string { - return s.String() +// SetRegion sets the Region field's value. +func (s *Interconnect) SetRegion(v string) *Interconnect { + s.Region = &v + return s } -// Container for the parameters to the DescribeConnectionsOnInterconnect operation. -type DescribeConnectionsOnInterconnectInput struct { +// Describes a link aggregation group (LAG). A LAG is a connection that uses +// the Link Aggregation Control Protocol (LACP) to logically aggregate a bundle +// of physical connections. Like an interconnect, it can host other connections. +// All connections in a LAG must terminate on the same physical AWS Direct Connect +// endpoint, and must be the same bandwidth. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/Lag +type Lag struct { _ struct{} `type:"structure"` - // ID of the interconnect on which a list of connection is provisioned. + // Indicates whether the LAG can host other connections. // - // Example: dxcon-abc123 + // This is intended for use by AWS Direct Connect partners only. + AllowsHostedConnections *bool `locationName:"allowsHostedConnections" type:"boolean"` + + // The AWS Direct Connection endpoint that hosts the LAG. + AwsDevice *string `locationName:"awsDevice" type:"string"` + + // A list of connections bundled by this LAG. + Connections []*Connection `locationName:"connections" type:"list"` + + // The individual bandwidth of the physical connections bundled by the LAG. + // + // Available values: 1Gbps, 10Gbps + ConnectionsBandwidth *string `locationName:"connectionsBandwidth" type:"string"` + + // The ID of the LAG. + // + // Example: dxlag-fg5678gh + LagId *string `locationName:"lagId" type:"string"` + + // The name of the LAG. + LagName *string `locationName:"lagName" type:"string"` + + // The state of the LAG. + // + // * Requested: The initial state of a LAG. The LAG stays in the requested + // state until the Letter of Authorization (LOA) is available. + // + // * Pending: The LAG has been approved, and is being initialized. + // + // * Available: The network link is established, and the LAG is ready for + // use. + // + // * Down: The network link is down. + // + // * Deleting: The LAG is in the process of being deleted. + // + // * Deleted: The LAG has been deleted. + LagState *string `locationName:"lagState" type:"string" enum:"LagState"` + + // Where the connection is located. + // + // Example: EqSV5 // // Default: None + Location *string `locationName:"location" type:"string"` + + // The minimum number of physical connections that must be operational for the + // LAG itself to be operational. If the number of operational connections drops + // below this setting, the LAG state changes to down. This value can help to + // ensure that a LAG is not overutilized if a significant number of its bundled + // connections go down. + MinimumLinks *int64 `locationName:"minimumLinks" type:"integer"` + + // The number of physical connections bundled by the LAG, up to a maximum of + // 10. + NumberOfConnections *int64 `locationName:"numberOfConnections" type:"integer"` + + // The owner of the LAG. + OwnerAccount *string `locationName:"ownerAccount" type:"string"` + + // The AWS region where the connection is located. // - // InterconnectId is a required field - InterconnectId *string `locationName:"interconnectId" type:"string" required:"true"` + // Example: us-east-1 + // + // Default: None + Region *string `locationName:"region" type:"string"` } // String returns the string representation -func (s DescribeConnectionsOnInterconnectInput) String() string { +func (s Lag) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeConnectionsOnInterconnectInput) GoString() string { +func (s Lag) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeConnectionsOnInterconnectInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeConnectionsOnInterconnectInput"} - if s.InterconnectId == nil { - invalidParams.Add(request.NewErrParamRequired("InterconnectId")) - } +// SetAllowsHostedConnections sets the AllowsHostedConnections field's value. +func (s *Lag) SetAllowsHostedConnections(v bool) *Lag { + s.AllowsHostedConnections = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetAwsDevice sets the AwsDevice field's value. +func (s *Lag) SetAwsDevice(v string) *Lag { + s.AwsDevice = &v + return s } -// Container for the parameters to the DescribeInterconnectLoa operation. -type DescribeInterconnectLoaInput struct { +// SetConnections sets the Connections field's value. +func (s *Lag) SetConnections(v []*Connection) *Lag { + s.Connections = v + return s +} + +// SetConnectionsBandwidth sets the ConnectionsBandwidth field's value. +func (s *Lag) SetConnectionsBandwidth(v string) *Lag { + s.ConnectionsBandwidth = &v + return s +} + +// SetLagId sets the LagId field's value. +func (s *Lag) SetLagId(v string) *Lag { + s.LagId = &v + return s +} + +// SetLagName sets the LagName field's value. +func (s *Lag) SetLagName(v string) *Lag { + s.LagName = &v + return s +} + +// SetLagState sets the LagState field's value. +func (s *Lag) SetLagState(v string) *Lag { + s.LagState = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *Lag) SetLocation(v string) *Lag { + s.Location = &v + return s +} + +// SetMinimumLinks sets the MinimumLinks field's value. +func (s *Lag) SetMinimumLinks(v int64) *Lag { + s.MinimumLinks = &v + return s +} + +// SetNumberOfConnections sets the NumberOfConnections field's value. +func (s *Lag) SetNumberOfConnections(v int64) *Lag { + s.NumberOfConnections = &v + return s +} + +// SetOwnerAccount sets the OwnerAccount field's value. +func (s *Lag) SetOwnerAccount(v string) *Lag { + s.OwnerAccount = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *Lag) SetRegion(v string) *Lag { + s.Region = &v + return s +} + +// A structure containing the Letter of Authorization - Connecting Facility +// Assignment (LOA-CFA) for a connection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/Loa +type Loa struct { _ struct{} `type:"structure"` - // The ID of the interconnect. - // - // Example: dxcon-abc123 + // The binary contents of the LOA-CFA document. // - // InterconnectId is a required field - InterconnectId *string `locationName:"interconnectId" type:"string" required:"true"` + // LoaContent is automatically base64 encoded/decoded by the SDK. + LoaContent []byte `locationName:"loaContent" type:"blob"` // A standard media type indicating the content type of the LOA-CFA document. // Currently, the only supported value is "application/pdf". // // Default: application/pdf LoaContentType *string `locationName:"loaContentType" type:"string" enum:"LoaContentType"` - - // The name of the service provider who establishes connectivity on your behalf. - // If you supply this parameter, the LOA-CFA lists the provider name alongside - // your company name as the requester of the cross connect. - // - // Default: None - ProviderName *string `locationName:"providerName" type:"string"` } // String returns the string representation -func (s DescribeInterconnectLoaInput) String() string { +func (s Loa) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeInterconnectLoaInput) GoString() string { +func (s Loa) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeInterconnectLoaInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeInterconnectLoaInput"} - if s.InterconnectId == nil { - invalidParams.Add(request.NewErrParamRequired("InterconnectId")) - } +// SetLoaContent sets the LoaContent field's value. +func (s *Loa) SetLoaContent(v []byte) *Loa { + s.LoaContent = v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetLoaContentType sets the LoaContentType field's value. +func (s *Loa) SetLoaContentType(v string) *Loa { + s.LoaContentType = &v + return s } -// The response received when DescribeInterconnectLoa is called. -type DescribeInterconnectLoaOutput struct { +// An AWS Direct Connect location where connections and interconnects can be +// requested. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/Location +type Location struct { _ struct{} `type:"structure"` - // A structure containing the Letter of Authorization - Connecting Facility - // Assignment (LOA-CFA) for a connection. - Loa *Loa `locationName:"loa" type:"structure"` + // The code used to indicate the AWS Direct Connect location. + LocationCode *string `locationName:"locationCode" type:"string"` + + // The name of the AWS Direct Connect location. The name includes the colocation + // partner name and the physical site of the lit building. + LocationName *string `locationName:"locationName" type:"string"` } // String returns the string representation -func (s DescribeInterconnectLoaOutput) String() string { +func (s Location) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeInterconnectLoaOutput) GoString() string { +func (s Location) GoString() string { return s.String() } -// Container for the parameters to the DescribeInterconnects operation. -type DescribeInterconnectsInput struct { +// SetLocationCode sets the LocationCode field's value. +func (s *Location) SetLocationCode(v string) *Location { + s.LocationCode = &v + return s +} + +// SetLocationName sets the LocationName field's value. +func (s *Location) SetLocationName(v string) *Location { + s.LocationName = &v + return s +} + +// A structure containing information about a new BGP peer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/NewBGPPeer +type NewBGPPeer struct { _ struct{} `type:"structure"` - // The ID of the interconnect. + // Indicates the address family for the BGP peer. // - // Example: dxcon-abc123 - InterconnectId *string `locationName:"interconnectId" type:"string"` + // * ipv4: IPv4 address family + // + // * ipv6: IPv6 address family + AddressFamily *string `locationName:"addressFamily" type:"string" enum:"AddressFamily"` + + // IP address assigned to the Amazon interface. + // + // Example: 192.168.1.1/30 or 2001:db8::1/125 + AmazonAddress *string `locationName:"amazonAddress" type:"string"` + + // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. + // + // Example: 65000 + Asn *int64 `locationName:"asn" type:"integer"` + + // The authentication key for BGP configuration. + // + // Example: asdf34example + AuthKey *string `locationName:"authKey" type:"string"` + + // IP address assigned to the customer interface. + // + // Example: 192.168.1.2/30 or 2001:db8::2/125 + CustomerAddress *string `locationName:"customerAddress" type:"string"` } // String returns the string representation -func (s DescribeInterconnectsInput) String() string { +func (s NewBGPPeer) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeInterconnectsInput) GoString() string { +func (s NewBGPPeer) GoString() string { return s.String() } -// A structure containing a list of interconnects. -type DescribeInterconnectsOutput struct { - _ struct{} `type:"structure"` +// SetAddressFamily sets the AddressFamily field's value. +func (s *NewBGPPeer) SetAddressFamily(v string) *NewBGPPeer { + s.AddressFamily = &v + return s +} - // A list of interconnects. - Interconnects []*Interconnect `locationName:"interconnects" type:"list"` +// SetAmazonAddress sets the AmazonAddress field's value. +func (s *NewBGPPeer) SetAmazonAddress(v string) *NewBGPPeer { + s.AmazonAddress = &v + return s } -// String returns the string representation -func (s DescribeInterconnectsOutput) String() string { - return awsutil.Prettify(s) +// SetAsn sets the Asn field's value. +func (s *NewBGPPeer) SetAsn(v int64) *NewBGPPeer { + s.Asn = &v + return s } -// GoString returns the string representation -func (s DescribeInterconnectsOutput) GoString() string { - return s.String() +// SetAuthKey sets the AuthKey field's value. +func (s *NewBGPPeer) SetAuthKey(v string) *NewBGPPeer { + s.AuthKey = &v + return s } -type DescribeLocationsInput struct { +// SetCustomerAddress sets the CustomerAddress field's value. +func (s *NewBGPPeer) SetCustomerAddress(v string) *NewBGPPeer { + s.CustomerAddress = &v + return s +} + +// A structure containing information about a new private virtual interface. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/NewPrivateVirtualInterface +type NewPrivateVirtualInterface struct { _ struct{} `type:"structure"` + + // Indicates the address family for the BGP peer. + // + // * ipv4: IPv4 address family + // + // * ipv6: IPv6 address family + AddressFamily *string `locationName:"addressFamily" type:"string" enum:"AddressFamily"` + + // IP address assigned to the Amazon interface. + // + // Example: 192.168.1.1/30 or 2001:db8::1/125 + AmazonAddress *string `locationName:"amazonAddress" type:"string"` + + // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. + // + // Example: 65000 + // + // Asn is a required field + Asn *int64 `locationName:"asn" type:"integer" required:"true"` + + // The authentication key for BGP configuration. + // + // Example: asdf34example + AuthKey *string `locationName:"authKey" type:"string"` + + // IP address assigned to the customer interface. + // + // Example: 192.168.1.2/30 or 2001:db8::2/125 + CustomerAddress *string `locationName:"customerAddress" type:"string"` + + // The ID of the virtual private gateway to a VPC. This only applies to private + // virtual interfaces. + // + // Example: vgw-123er56 + // + // VirtualGatewayId is a required field + VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string" required:"true"` + + // The name of the virtual interface assigned by the customer. + // + // Example: "My VPC" + // + // VirtualInterfaceName is a required field + VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string" required:"true"` + + // The VLAN ID. + // + // Example: 101 + // + // Vlan is a required field + Vlan *int64 `locationName:"vlan" type:"integer" required:"true"` } // String returns the string representation -func (s DescribeLocationsInput) String() string { +func (s NewPrivateVirtualInterface) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeLocationsInput) GoString() string { +func (s NewPrivateVirtualInterface) GoString() string { return s.String() } -// A location is a network facility where AWS Direct Connect routers are available -// to be connected. Generally, these are colocation hubs where many network -// providers have equipment, and where cross connects can be delivered. Locations -// include a name and facility code, and must be provided when creating a connection. -type DescribeLocationsOutput struct { - _ struct{} `type:"structure"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *NewPrivateVirtualInterface) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NewPrivateVirtualInterface"} + if s.Asn == nil { + invalidParams.Add(request.NewErrParamRequired("Asn")) + } + if s.VirtualGatewayId == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualGatewayId")) + } + if s.VirtualInterfaceName == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceName")) + } + if s.Vlan == nil { + invalidParams.Add(request.NewErrParamRequired("Vlan")) + } - // A list of colocation hubs where network providers have equipment. Most regions - // have multiple locations available. - Locations []*Location `locationName:"locations" type:"list"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// String returns the string representation -func (s DescribeLocationsOutput) String() string { - return awsutil.Prettify(s) +// SetAddressFamily sets the AddressFamily field's value. +func (s *NewPrivateVirtualInterface) SetAddressFamily(v string) *NewPrivateVirtualInterface { + s.AddressFamily = &v + return s } -// GoString returns the string representation -func (s DescribeLocationsOutput) GoString() string { - return s.String() +// SetAmazonAddress sets the AmazonAddress field's value. +func (s *NewPrivateVirtualInterface) SetAmazonAddress(v string) *NewPrivateVirtualInterface { + s.AmazonAddress = &v + return s } -type DescribeVirtualGatewaysInput struct { - _ struct{} `type:"structure"` +// SetAsn sets the Asn field's value. +func (s *NewPrivateVirtualInterface) SetAsn(v int64) *NewPrivateVirtualInterface { + s.Asn = &v + return s } -// String returns the string representation -func (s DescribeVirtualGatewaysInput) String() string { - return awsutil.Prettify(s) +// SetAuthKey sets the AuthKey field's value. +func (s *NewPrivateVirtualInterface) SetAuthKey(v string) *NewPrivateVirtualInterface { + s.AuthKey = &v + return s } -// GoString returns the string representation -func (s DescribeVirtualGatewaysInput) GoString() string { - return s.String() +// SetCustomerAddress sets the CustomerAddress field's value. +func (s *NewPrivateVirtualInterface) SetCustomerAddress(v string) *NewPrivateVirtualInterface { + s.CustomerAddress = &v + return s } -// A structure containing a list of virtual private gateways. -type DescribeVirtualGatewaysOutput struct { +// SetVirtualGatewayId sets the VirtualGatewayId field's value. +func (s *NewPrivateVirtualInterface) SetVirtualGatewayId(v string) *NewPrivateVirtualInterface { + s.VirtualGatewayId = &v + return s +} + +// SetVirtualInterfaceName sets the VirtualInterfaceName field's value. +func (s *NewPrivateVirtualInterface) SetVirtualInterfaceName(v string) *NewPrivateVirtualInterface { + s.VirtualInterfaceName = &v + return s +} + +// SetVlan sets the Vlan field's value. +func (s *NewPrivateVirtualInterface) SetVlan(v int64) *NewPrivateVirtualInterface { + s.Vlan = &v + return s +} + +// A structure containing information about a private virtual interface that +// will be provisioned on a connection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/NewPrivateVirtualInterfaceAllocation +type NewPrivateVirtualInterfaceAllocation struct { _ struct{} `type:"structure"` - // A list of virtual private gateways. - VirtualGateways []*VirtualGateway `locationName:"virtualGateways" type:"list"` + // Indicates the address family for the BGP peer. + // + // * ipv4: IPv4 address family + // + // * ipv6: IPv6 address family + AddressFamily *string `locationName:"addressFamily" type:"string" enum:"AddressFamily"` + + // IP address assigned to the Amazon interface. + // + // Example: 192.168.1.1/30 or 2001:db8::1/125 + AmazonAddress *string `locationName:"amazonAddress" type:"string"` + + // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. + // + // Example: 65000 + // + // Asn is a required field + Asn *int64 `locationName:"asn" type:"integer" required:"true"` + + // The authentication key for BGP configuration. + // + // Example: asdf34example + AuthKey *string `locationName:"authKey" type:"string"` + + // IP address assigned to the customer interface. + // + // Example: 192.168.1.2/30 or 2001:db8::2/125 + CustomerAddress *string `locationName:"customerAddress" type:"string"` + + // The name of the virtual interface assigned by the customer. + // + // Example: "My VPC" + // + // VirtualInterfaceName is a required field + VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string" required:"true"` + + // The VLAN ID. + // + // Example: 101 + // + // Vlan is a required field + Vlan *int64 `locationName:"vlan" type:"integer" required:"true"` } // String returns the string representation -func (s DescribeVirtualGatewaysOutput) String() string { +func (s NewPrivateVirtualInterfaceAllocation) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeVirtualGatewaysOutput) GoString() string { +func (s NewPrivateVirtualInterfaceAllocation) GoString() string { return s.String() } -// Container for the parameters to the DescribeVirtualInterfaces operation. -type DescribeVirtualInterfacesInput struct { - _ struct{} `type:"structure"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *NewPrivateVirtualInterfaceAllocation) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NewPrivateVirtualInterfaceAllocation"} + if s.Asn == nil { + invalidParams.Add(request.NewErrParamRequired("Asn")) + } + if s.VirtualInterfaceName == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceName")) + } + if s.Vlan == nil { + invalidParams.Add(request.NewErrParamRequired("Vlan")) + } - // ID of the connection. - // - // Example: dxcon-fg5678gh - // - // Default: None - ConnectionId *string `locationName:"connectionId" type:"string"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // ID of the virtual interface. - // - // Example: dxvif-123dfg56 - // - // Default: None - VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string"` +// SetAddressFamily sets the AddressFamily field's value. +func (s *NewPrivateVirtualInterfaceAllocation) SetAddressFamily(v string) *NewPrivateVirtualInterfaceAllocation { + s.AddressFamily = &v + return s } -// String returns the string representation -func (s DescribeVirtualInterfacesInput) String() string { - return awsutil.Prettify(s) +// SetAmazonAddress sets the AmazonAddress field's value. +func (s *NewPrivateVirtualInterfaceAllocation) SetAmazonAddress(v string) *NewPrivateVirtualInterfaceAllocation { + s.AmazonAddress = &v + return s } -// GoString returns the string representation -func (s DescribeVirtualInterfacesInput) GoString() string { - return s.String() +// SetAsn sets the Asn field's value. +func (s *NewPrivateVirtualInterfaceAllocation) SetAsn(v int64) *NewPrivateVirtualInterfaceAllocation { + s.Asn = &v + return s } -// A structure containing a list of virtual interfaces. -type DescribeVirtualInterfacesOutput struct { - _ struct{} `type:"structure"` +// SetAuthKey sets the AuthKey field's value. +func (s *NewPrivateVirtualInterfaceAllocation) SetAuthKey(v string) *NewPrivateVirtualInterfaceAllocation { + s.AuthKey = &v + return s +} - // A list of virtual interfaces. - VirtualInterfaces []*VirtualInterface `locationName:"virtualInterfaces" type:"list"` +// SetCustomerAddress sets the CustomerAddress field's value. +func (s *NewPrivateVirtualInterfaceAllocation) SetCustomerAddress(v string) *NewPrivateVirtualInterfaceAllocation { + s.CustomerAddress = &v + return s } -// String returns the string representation -func (s DescribeVirtualInterfacesOutput) String() string { - return awsutil.Prettify(s) +// SetVirtualInterfaceName sets the VirtualInterfaceName field's value. +func (s *NewPrivateVirtualInterfaceAllocation) SetVirtualInterfaceName(v string) *NewPrivateVirtualInterfaceAllocation { + s.VirtualInterfaceName = &v + return s } -// GoString returns the string representation -func (s DescribeVirtualInterfacesOutput) GoString() string { - return s.String() +// SetVlan sets the Vlan field's value. +func (s *NewPrivateVirtualInterfaceAllocation) SetVlan(v int64) *NewPrivateVirtualInterfaceAllocation { + s.Vlan = &v + return s } -// An interconnect is a connection that can host other connections. -// -// Like a standard AWS Direct Connect connection, an interconnect represents -// the physical connection between an AWS Direct Connect partner's network and -// a specific Direct Connect location. An AWS Direct Connect partner who owns -// an interconnect can provision hosted connections on the interconnect for -// their end customers, thereby providing the end customers with connectivity -// to AWS services. -// -// The resources of the interconnect, including bandwidth and VLAN numbers, -// are shared by all of the hosted connections on the interconnect, and the -// owner of the interconnect determines how these resources are assigned. -type Interconnect struct { +// A structure containing information about a new public virtual interface. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/NewPublicVirtualInterface +type NewPublicVirtualInterface struct { _ struct{} `type:"structure"` - // Bandwidth of the connection. - // - // Example: 1Gbps + // Indicates the address family for the BGP peer. // - // Default: None - Bandwidth *string `locationName:"bandwidth" type:"string"` - - // The ID of the interconnect. + // * ipv4: IPv4 address family // - // Example: dxcon-abc123 - InterconnectId *string `locationName:"interconnectId" type:"string"` + // * ipv6: IPv6 address family + AddressFamily *string `locationName:"addressFamily" type:"string" enum:"AddressFamily"` - // The name of the interconnect. + // IP address assigned to the Amazon interface. // - // Example: "1G Interconnect to AWS" - InterconnectName *string `locationName:"interconnectName" type:"string"` + // Example: 192.168.1.1/30 or 2001:db8::1/125 + AmazonAddress *string `locationName:"amazonAddress" type:"string"` - // State of the interconnect. - // - // Requested: The initial state of an interconnect. The interconnect stays - // in the requested state until the Letter of Authorization (LOA) is sent to - // the customer. + // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. // - // Pending>: The interconnect has been approved, and is being initialized. - // - // Available: The network link is up, and the interconnect is ready for - // use. + // Example: 65000 // - // Down: The network link is down. + // Asn is a required field + Asn *int64 `locationName:"asn" type:"integer" required:"true"` + + // The authentication key for BGP configuration. // - // Deleting: The interconnect is in the process of being deleted. + // Example: asdf34example + AuthKey *string `locationName:"authKey" type:"string"` + + // IP address assigned to the customer interface. // - // Deleted: The interconnect has been deleted. - InterconnectState *string `locationName:"interconnectState" type:"string" enum:"InterconnectState"` + // Example: 192.168.1.2/30 or 2001:db8::2/125 + CustomerAddress *string `locationName:"customerAddress" type:"string"` - // The time of the most recent call to DescribeInterconnectLoa for this Interconnect. - LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp" timestampFormat:"unix"` + // A list of routes to be advertised to the AWS network in this region (public + // virtual interface). + RouteFilterPrefixes []*RouteFilterPrefix `locationName:"routeFilterPrefixes" type:"list"` - // Where the connection is located. + // The name of the virtual interface assigned by the customer. // - // Example: EqSV5 + // Example: "My VPC" // - // Default: None - Location *string `locationName:"location" type:"string"` + // VirtualInterfaceName is a required field + VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string" required:"true"` - // The AWS region where the connection is located. + // The VLAN ID. // - // Example: us-east-1 + // Example: 101 // - // Default: None - Region *string `locationName:"region" type:"string"` + // Vlan is a required field + Vlan *int64 `locationName:"vlan" type:"integer" required:"true"` } // String returns the string representation -func (s Interconnect) String() string { +func (s NewPublicVirtualInterface) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Interconnect) GoString() string { +func (s NewPublicVirtualInterface) GoString() string { return s.String() } -// A structure containing the Letter of Authorization - Connecting Facility -// Assignment (LOA-CFA) for a connection. -type Loa struct { - _ struct{} `type:"structure"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *NewPublicVirtualInterface) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NewPublicVirtualInterface"} + if s.Asn == nil { + invalidParams.Add(request.NewErrParamRequired("Asn")) + } + if s.VirtualInterfaceName == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceName")) + } + if s.Vlan == nil { + invalidParams.Add(request.NewErrParamRequired("Vlan")) + } - // The binary contents of the LOA-CFA document. - // - // LoaContent is automatically base64 encoded/decoded by the SDK. - LoaContent []byte `locationName:"loaContent" type:"blob"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // A standard media type indicating the content type of the LOA-CFA document. - // Currently, the only supported value is "application/pdf". - // - // Default: application/pdf - LoaContentType *string `locationName:"loaContentType" type:"string" enum:"LoaContentType"` +// SetAddressFamily sets the AddressFamily field's value. +func (s *NewPublicVirtualInterface) SetAddressFamily(v string) *NewPublicVirtualInterface { + s.AddressFamily = &v + return s } -// String returns the string representation -func (s Loa) String() string { - return awsutil.Prettify(s) +// SetAmazonAddress sets the AmazonAddress field's value. +func (s *NewPublicVirtualInterface) SetAmazonAddress(v string) *NewPublicVirtualInterface { + s.AmazonAddress = &v + return s } -// GoString returns the string representation -func (s Loa) GoString() string { - return s.String() +// SetAsn sets the Asn field's value. +func (s *NewPublicVirtualInterface) SetAsn(v int64) *NewPublicVirtualInterface { + s.Asn = &v + return s } -// An AWS Direct Connect location where connections and interconnects can be -// requested. -type Location struct { - _ struct{} `type:"structure"` +// SetAuthKey sets the AuthKey field's value. +func (s *NewPublicVirtualInterface) SetAuthKey(v string) *NewPublicVirtualInterface { + s.AuthKey = &v + return s +} - // The code used to indicate the AWS Direct Connect location. - LocationCode *string `locationName:"locationCode" type:"string"` +// SetCustomerAddress sets the CustomerAddress field's value. +func (s *NewPublicVirtualInterface) SetCustomerAddress(v string) *NewPublicVirtualInterface { + s.CustomerAddress = &v + return s +} - // The name of the AWS Direct Connect location. The name includes the colocation - // partner name and the physical site of the lit building. - LocationName *string `locationName:"locationName" type:"string"` +// SetRouteFilterPrefixes sets the RouteFilterPrefixes field's value. +func (s *NewPublicVirtualInterface) SetRouteFilterPrefixes(v []*RouteFilterPrefix) *NewPublicVirtualInterface { + s.RouteFilterPrefixes = v + return s } -// String returns the string representation -func (s Location) String() string { - return awsutil.Prettify(s) +// SetVirtualInterfaceName sets the VirtualInterfaceName field's value. +func (s *NewPublicVirtualInterface) SetVirtualInterfaceName(v string) *NewPublicVirtualInterface { + s.VirtualInterfaceName = &v + return s } -// GoString returns the string representation -func (s Location) GoString() string { - return s.String() +// SetVlan sets the Vlan field's value. +func (s *NewPublicVirtualInterface) SetVlan(v int64) *NewPublicVirtualInterface { + s.Vlan = &v + return s } -// A structure containing information about a new private virtual interface. -type NewPrivateVirtualInterface struct { +// A structure containing information about a public virtual interface that +// will be provisioned on a connection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/NewPublicVirtualInterfaceAllocation +type NewPublicVirtualInterfaceAllocation struct { _ struct{} `type:"structure"` + // Indicates the address family for the BGP peer. + // + // * ipv4: IPv4 address family + // + // * ipv6: IPv6 address family + AddressFamily *string `locationName:"addressFamily" type:"string" enum:"AddressFamily"` + // IP address assigned to the Amazon interface. // - // Example: 192.168.1.1/30 + // Example: 192.168.1.1/30 or 2001:db8::1/125 AmazonAddress *string `locationName:"amazonAddress" type:"string"` - // Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. + // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. // // Example: 65000 // // Asn is a required field Asn *int64 `locationName:"asn" type:"integer" required:"true"` - // Authentication key for BGP configuration. + // The authentication key for BGP configuration. // // Example: asdf34example AuthKey *string `locationName:"authKey" type:"string"` // IP address assigned to the customer interface. // - // Example: 192.168.1.2/30 + // Example: 192.168.1.2/30 or 2001:db8::2/125 CustomerAddress *string `locationName:"customerAddress" type:"string"` - // The ID of the virtual private gateway to a VPC. This only applies to private - // virtual interfaces. - // - // Example: vgw-123er56 - // - // VirtualGatewayId is a required field - VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string" required:"true"` + // A list of routes to be advertised to the AWS network in this region (public + // virtual interface). + RouteFilterPrefixes []*RouteFilterPrefix `locationName:"routeFilterPrefixes" type:"list"` // The name of the virtual interface assigned by the customer. // @@ -3075,29 +6537,179 @@ type NewPrivateVirtualInterface struct { } // String returns the string representation -func (s NewPrivateVirtualInterface) String() string { +func (s NewPublicVirtualInterfaceAllocation) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s NewPrivateVirtualInterface) GoString() string { +func (s NewPublicVirtualInterfaceAllocation) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *NewPrivateVirtualInterface) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "NewPrivateVirtualInterface"} +func (s *NewPublicVirtualInterfaceAllocation) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NewPublicVirtualInterfaceAllocation"} if s.Asn == nil { invalidParams.Add(request.NewErrParamRequired("Asn")) } - if s.VirtualGatewayId == nil { - invalidParams.Add(request.NewErrParamRequired("VirtualGatewayId")) - } if s.VirtualInterfaceName == nil { invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceName")) } - if s.Vlan == nil { - invalidParams.Add(request.NewErrParamRequired("Vlan")) + if s.Vlan == nil { + invalidParams.Add(request.NewErrParamRequired("Vlan")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAddressFamily sets the AddressFamily field's value. +func (s *NewPublicVirtualInterfaceAllocation) SetAddressFamily(v string) *NewPublicVirtualInterfaceAllocation { + s.AddressFamily = &v + return s +} + +// SetAmazonAddress sets the AmazonAddress field's value. +func (s *NewPublicVirtualInterfaceAllocation) SetAmazonAddress(v string) *NewPublicVirtualInterfaceAllocation { + s.AmazonAddress = &v + return s +} + +// SetAsn sets the Asn field's value. +func (s *NewPublicVirtualInterfaceAllocation) SetAsn(v int64) *NewPublicVirtualInterfaceAllocation { + s.Asn = &v + return s +} + +// SetAuthKey sets the AuthKey field's value. +func (s *NewPublicVirtualInterfaceAllocation) SetAuthKey(v string) *NewPublicVirtualInterfaceAllocation { + s.AuthKey = &v + return s +} + +// SetCustomerAddress sets the CustomerAddress field's value. +func (s *NewPublicVirtualInterfaceAllocation) SetCustomerAddress(v string) *NewPublicVirtualInterfaceAllocation { + s.CustomerAddress = &v + return s +} + +// SetRouteFilterPrefixes sets the RouteFilterPrefixes field's value. +func (s *NewPublicVirtualInterfaceAllocation) SetRouteFilterPrefixes(v []*RouteFilterPrefix) *NewPublicVirtualInterfaceAllocation { + s.RouteFilterPrefixes = v + return s +} + +// SetVirtualInterfaceName sets the VirtualInterfaceName field's value. +func (s *NewPublicVirtualInterfaceAllocation) SetVirtualInterfaceName(v string) *NewPublicVirtualInterfaceAllocation { + s.VirtualInterfaceName = &v + return s +} + +// SetVlan sets the Vlan field's value. +func (s *NewPublicVirtualInterfaceAllocation) SetVlan(v int64) *NewPublicVirtualInterfaceAllocation { + s.Vlan = &v + return s +} + +// The tags associated with a Direct Connect resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/ResourceTag +type ResourceTag struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the Direct Connect resource. + ResourceArn *string `locationName:"resourceArn" type:"string"` + + // The tags. + Tags []*Tag `locationName:"tags" min:"1" type:"list"` +} + +// String returns the string representation +func (s ResourceTag) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceTag) GoString() string { + return s.String() +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ResourceTag) SetResourceArn(v string) *ResourceTag { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ResourceTag) SetTags(v []*Tag) *ResourceTag { + s.Tags = v + return s +} + +// A route filter prefix that the customer can advertise through Border Gateway +// Protocol (BGP) over a public virtual interface. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/RouteFilterPrefix +type RouteFilterPrefix struct { + _ struct{} `type:"structure"` + + // CIDR notation for the advertised route. Multiple routes are separated by + // commas. + // + // IPv6 CIDRs must be at least a /64 or shorter + // + // Example: 10.10.10.0/24,10.10.11.0/24,2001:db8::/64 + Cidr *string `locationName:"cidr" type:"string"` +} + +// String returns the string representation +func (s RouteFilterPrefix) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RouteFilterPrefix) GoString() string { + return s.String() +} + +// SetCidr sets the Cidr field's value. +func (s *RouteFilterPrefix) SetCidr(v string) *RouteFilterPrefix { + s.Cidr = &v + return s +} + +// Information about a tag. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/Tag +type Tag struct { + _ struct{} `type:"structure"` + + // The key of the tag. + // + // Key is a required field + Key *string `locationName:"key" min:"1" type:"string" required:"true"` + + // The value of the tag. + Value *string `locationName:"value" type:"string"` +} + +// String returns the string representation +func (s Tag) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Tag) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Tag) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Tag"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } if invalidParams.Len() > 0 { @@ -3106,69 +6718,67 @@ func (s *NewPrivateVirtualInterface) Validate() error { return nil } -// A structure containing information about a private virtual interface that -// will be provisioned on a connection. -type NewPrivateVirtualInterfaceAllocation struct { - _ struct{} `type:"structure"` - - // IP address assigned to the Amazon interface. - // - // Example: 192.168.1.1/30 - AmazonAddress *string `locationName:"amazonAddress" type:"string"` - - // Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - // - // Example: 65000 - // - // Asn is a required field - Asn *int64 `locationName:"asn" type:"integer" required:"true"` +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} - // Authentication key for BGP configuration. - // - // Example: asdf34example - AuthKey *string `locationName:"authKey" type:"string"` +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} - // IP address assigned to the customer interface. - // - // Example: 192.168.1.2/30 - CustomerAddress *string `locationName:"customerAddress" type:"string"` +// Container for the parameters to the TagResource operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/TagResourceRequest +type TagResourceInput struct { + _ struct{} `type:"structure"` - // The name of the virtual interface assigned by the customer. + // The Amazon Resource Name (ARN) of the Direct Connect resource. // - // Example: "My VPC" + // Example: arn:aws:directconnect:us-east-1:123456789012:dxcon/dxcon-fg5678gh // - // VirtualInterfaceName is a required field - VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string" required:"true"` + // ResourceArn is a required field + ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` - // The VLAN ID. - // - // Example: 101 + // The list of tags to add. // - // Vlan is a required field - Vlan *int64 `locationName:"vlan" type:"integer" required:"true"` + // Tags is a required field + Tags []*Tag `locationName:"tags" min:"1" type:"list" required:"true"` } // String returns the string representation -func (s NewPrivateVirtualInterfaceAllocation) String() string { +func (s TagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s NewPrivateVirtualInterfaceAllocation) GoString() string { +func (s TagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *NewPrivateVirtualInterfaceAllocation) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "NewPrivateVirtualInterfaceAllocation"} - if s.Asn == nil { - invalidParams.Add(request.NewErrParamRequired("Asn")) +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } - if s.VirtualInterfaceName == nil { - invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceName")) + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) } - if s.Vlan == nil { - invalidParams.Add(request.NewErrParamRequired("Vlan")) + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -3177,87 +6787,68 @@ func (s *NewPrivateVirtualInterfaceAllocation) Validate() error { return nil } -// A structure containing information about a new public virtual interface. -type NewPublicVirtualInterface struct { - _ struct{} `type:"structure"` +// SetResourceArn sets the ResourceArn field's value. +func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { + s.ResourceArn = &v + return s +} - // IP address assigned to the Amazon interface. - // - // Example: 192.168.1.1/30 - // - // AmazonAddress is a required field - AmazonAddress *string `locationName:"amazonAddress" type:"string" required:"true"` +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { + s.Tags = v + return s +} - // Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - // - // Example: 65000 - // - // Asn is a required field - Asn *int64 `locationName:"asn" type:"integer" required:"true"` +// The response received when TagResource is called. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/TagResourceResponse +type TagResourceOutput struct { + _ struct{} `type:"structure"` +} - // Authentication key for BGP configuration. - // - // Example: asdf34example - AuthKey *string `locationName:"authKey" type:"string"` +// String returns the string representation +func (s TagResourceOutput) String() string { + return awsutil.Prettify(s) +} - // IP address assigned to the customer interface. - // - // Example: 192.168.1.2/30 - // - // CustomerAddress is a required field - CustomerAddress *string `locationName:"customerAddress" type:"string" required:"true"` +// GoString returns the string representation +func (s TagResourceOutput) GoString() string { + return s.String() +} - // A list of routes to be advertised to the AWS network in this region (public - // virtual interface). - // - // RouteFilterPrefixes is a required field - RouteFilterPrefixes []*RouteFilterPrefix `locationName:"routeFilterPrefixes" type:"list" required:"true"` +// Container for the parameters to the UntagResource operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/UntagResourceRequest +type UntagResourceInput struct { + _ struct{} `type:"structure"` - // The name of the virtual interface assigned by the customer. - // - // Example: "My VPC" + // The Amazon Resource Name (ARN) of the Direct Connect resource. // - // VirtualInterfaceName is a required field - VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string" required:"true"` + // ResourceArn is a required field + ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` - // The VLAN ID. - // - // Example: 101 + // The list of tag keys to remove. // - // Vlan is a required field - Vlan *int64 `locationName:"vlan" type:"integer" required:"true"` + // TagKeys is a required field + TagKeys []*string `locationName:"tagKeys" type:"list" required:"true"` } // String returns the string representation -func (s NewPublicVirtualInterface) String() string { +func (s UntagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s NewPublicVirtualInterface) GoString() string { +func (s UntagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *NewPublicVirtualInterface) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "NewPublicVirtualInterface"} - if s.AmazonAddress == nil { - invalidParams.Add(request.NewErrParamRequired("AmazonAddress")) - } - if s.Asn == nil { - invalidParams.Add(request.NewErrParamRequired("Asn")) - } - if s.CustomerAddress == nil { - invalidParams.Add(request.NewErrParamRequired("CustomerAddress")) - } - if s.RouteFilterPrefixes == nil { - invalidParams.Add(request.NewErrParamRequired("RouteFilterPrefixes")) - } - if s.VirtualInterfaceName == nil { - invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceName")) +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } - if s.Vlan == nil { - invalidParams.Add(request.NewErrParamRequired("Vlan")) + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) } if invalidParams.Len() > 0 { @@ -3266,88 +6857,77 @@ func (s *NewPublicVirtualInterface) Validate() error { return nil } -// A structure containing information about a public virtual interface that -// will be provisioned on a connection. -type NewPublicVirtualInterfaceAllocation struct { +// SetResourceArn sets the ResourceArn field's value. +func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} + +// The response received when UntagResource is called. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/UntagResourceResponse +type UntagResourceOutput struct { _ struct{} `type:"structure"` +} - // IP address assigned to the Amazon interface. - // - // Example: 192.168.1.1/30 - // - // AmazonAddress is a required field - AmazonAddress *string `locationName:"amazonAddress" type:"string" required:"true"` +// String returns the string representation +func (s UntagResourceOutput) String() string { + return awsutil.Prettify(s) +} - // Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - // - // Example: 65000 - // - // Asn is a required field - Asn *int64 `locationName:"asn" type:"integer" required:"true"` +// GoString returns the string representation +func (s UntagResourceOutput) GoString() string { + return s.String() +} - // Authentication key for BGP configuration. - // - // Example: asdf34example - AuthKey *string `locationName:"authKey" type:"string"` +// Container for the parameters to the UpdateLag operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/UpdateLagRequest +type UpdateLagInput struct { + _ struct{} `type:"structure"` - // IP address assigned to the customer interface. + // The ID of the LAG to update. // - // Example: 192.168.1.2/30 + // Example: dxlag-abc123 // - // CustomerAddress is a required field - CustomerAddress *string `locationName:"customerAddress" type:"string" required:"true"` - - // A list of routes to be advertised to the AWS network in this region (public - // virtual interface). + // Default: None // - // RouteFilterPrefixes is a required field - RouteFilterPrefixes []*RouteFilterPrefix `locationName:"routeFilterPrefixes" type:"list" required:"true"` + // LagId is a required field + LagId *string `locationName:"lagId" type:"string" required:"true"` - // The name of the virtual interface assigned by the customer. + // The name for the LAG. // - // Example: "My VPC" + // Example: "3x10G LAG to AWS" // - // VirtualInterfaceName is a required field - VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string" required:"true"` + // Default: None + LagName *string `locationName:"lagName" type:"string"` - // The VLAN ID. - // - // Example: 101 + // The minimum number of physical connections that must be operational for the + // LAG itself to be operational. // - // Vlan is a required field - Vlan *int64 `locationName:"vlan" type:"integer" required:"true"` + // Default: None + MinimumLinks *int64 `locationName:"minimumLinks" type:"integer"` } // String returns the string representation -func (s NewPublicVirtualInterfaceAllocation) String() string { +func (s UpdateLagInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s NewPublicVirtualInterfaceAllocation) GoString() string { +func (s UpdateLagInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *NewPublicVirtualInterfaceAllocation) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "NewPublicVirtualInterfaceAllocation"} - if s.AmazonAddress == nil { - invalidParams.Add(request.NewErrParamRequired("AmazonAddress")) - } - if s.Asn == nil { - invalidParams.Add(request.NewErrParamRequired("Asn")) - } - if s.CustomerAddress == nil { - invalidParams.Add(request.NewErrParamRequired("CustomerAddress")) - } - if s.RouteFilterPrefixes == nil { - invalidParams.Add(request.NewErrParamRequired("RouteFilterPrefixes")) - } - if s.VirtualInterfaceName == nil { - invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceName")) - } - if s.Vlan == nil { - invalidParams.Add(request.NewErrParamRequired("Vlan")) +func (s *UpdateLagInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateLagInput"} + if s.LagId == nil { + invalidParams.Add(request.NewErrParamRequired("LagId")) } if invalidParams.Len() > 0 { @@ -3356,26 +6936,22 @@ func (s *NewPublicVirtualInterfaceAllocation) Validate() error { return nil } -// A route filter prefix that the customer can advertise through Border Gateway -// Protocol (BGP) over a public virtual interface. -type RouteFilterPrefix struct { - _ struct{} `type:"structure"` - - // CIDR notation for the advertised route. Multiple routes are separated by - // commas. - // - // Example: 10.10.10.0/24,10.10.11.0/24 - Cidr *string `locationName:"cidr" type:"string"` +// SetLagId sets the LagId field's value. +func (s *UpdateLagInput) SetLagId(v string) *UpdateLagInput { + s.LagId = &v + return s } -// String returns the string representation -func (s RouteFilterPrefix) String() string { - return awsutil.Prettify(s) +// SetLagName sets the LagName field's value. +func (s *UpdateLagInput) SetLagName(v string) *UpdateLagInput { + s.LagName = &v + return s } -// GoString returns the string representation -func (s RouteFilterPrefix) GoString() string { - return s.String() +// SetMinimumLinks sets the MinimumLinks field's value. +func (s *UpdateLagInput) SetMinimumLinks(v int64) *UpdateLagInput { + s.MinimumLinks = &v + return s } // You can create one or more AWS Direct Connect private virtual interfaces @@ -3383,6 +6959,7 @@ func (s RouteFilterPrefix) GoString() string { // // Virtual private gateways can be managed using the Amazon Virtual Private // Cloud (Amazon VPC) console or the Amazon EC2 CreateVpnGateway action (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateVpnGateway.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/VirtualGateway type VirtualGateway struct { _ struct{} `type:"structure"` @@ -3394,14 +6971,14 @@ type VirtualGateway struct { // State of the virtual private gateway. // - // Pending: This is the initial state after calling CreateVpnGateway. + // * Pending: This is the initial state after calling CreateVpnGateway. // - // Available: Ready for use by a private virtual interface. + // * Available: Ready for use by a private virtual interface. // - // Deleting: This is the initial state after calling DeleteVpnGateway. + // * Deleting: This is the initial state after calling DeleteVpnGateway. // - // Deleted: In this state, a private virtual interface is unable to send - // traffic over this gateway. + // * Deleted: In this state, a private virtual interface is unable to send + // traffic over this gateway. VirtualGatewayState *string `locationName:"virtualGatewayState" type:"string"` } @@ -3415,27 +6992,51 @@ func (s VirtualGateway) GoString() string { return s.String() } +// SetVirtualGatewayId sets the VirtualGatewayId field's value. +func (s *VirtualGateway) SetVirtualGatewayId(v string) *VirtualGateway { + s.VirtualGatewayId = &v + return s +} + +// SetVirtualGatewayState sets the VirtualGatewayState field's value. +func (s *VirtualGateway) SetVirtualGatewayState(v string) *VirtualGateway { + s.VirtualGatewayState = &v + return s +} + // A virtual interface (VLAN) transmits the traffic between the AWS Direct Connect // location and the customer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/VirtualInterface type VirtualInterface struct { _ struct{} `type:"structure"` + // Indicates the address family for the BGP peer. + // + // * ipv4: IPv4 address family + // + // * ipv6: IPv6 address family + AddressFamily *string `locationName:"addressFamily" type:"string" enum:"AddressFamily"` + // IP address assigned to the Amazon interface. // - // Example: 192.168.1.1/30 + // Example: 192.168.1.1/30 or 2001:db8::1/125 AmazonAddress *string `locationName:"amazonAddress" type:"string"` - // Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. + // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. // // Example: 65000 Asn *int64 `locationName:"asn" type:"integer"` - // Authentication key for BGP configuration. + // The authentication key for BGP configuration. // // Example: asdf34example AuthKey *string `locationName:"authKey" type:"string"` - // ID of the connection. + // A list of the BGP peers configured on this virtual interface. + BgpPeers []*BGPPeer `locationName:"bgpPeers" type:"list"` + + // The ID of the connection. This field is also used as the ID type for operations + // that use multiple connection types (LAG, interconnect, and/or connection). // // Example: dxcon-fg5678gh // @@ -3444,7 +7045,7 @@ type VirtualInterface struct { // IP address assigned to the customer interface. // - // Example: 192.168.1.2/30 + // Example: 192.168.1.2/30 or 2001:db8::2/125 CustomerAddress *string `locationName:"customerAddress" type:"string"` // Information for generating the customer router configuration. @@ -3470,7 +7071,7 @@ type VirtualInterface struct { // Example: vgw-123er56 VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string"` - // ID of the virtual interface. + // The ID of the virtual interface. // // Example: dxvif-123dfg56 // @@ -3484,32 +7085,32 @@ type VirtualInterface struct { // State of the virtual interface. // - // Confirming: The creation of the virtual interface is pending confirmation - // from the virtual interface owner. If the owner of the virtual interface is - // different from the owner of the connection on which it is provisioned, then - // the virtual interface will remain in this state until it is confirmed by - // the virtual interface owner. + // * Confirming: The creation of the virtual interface is pending confirmation + // from the virtual interface owner. If the owner of the virtual interface + // is different from the owner of the connection on which it is provisioned, + // then the virtual interface will remain in this state until it is confirmed + // by the virtual interface owner. // - // Verifying: This state only applies to public virtual interfaces. Each - // public virtual interface needs validation before the virtual interface can - // be created. + // * Verifying: This state only applies to public virtual interfaces. Each + // public virtual interface needs validation before the virtual interface + // can be created. // - // Pending: A virtual interface is in this state from the time that it is - // created until the virtual interface is ready to forward traffic. + // * Pending: A virtual interface is in this state from the time that it + // is created until the virtual interface is ready to forward traffic. // - // Available: A virtual interface that is able to forward traffic. + // * Available: A virtual interface that is able to forward traffic. // - // Down: A virtual interface that is BGP down. + // * Down: A virtual interface that is BGP down. // - // Deleting: A virtual interface is in this state immediately after calling - // DeleteVirtualInterface until it can no longer forward traffic. + // * Deleting: A virtual interface is in this state immediately after calling + // DeleteVirtualInterface until it can no longer forward traffic. // - // Deleted: A virtual interface that cannot forward traffic. + // * Deleted: A virtual interface that cannot forward traffic. // - // Rejected: The virtual interface owner has declined creation of the virtual - // interface. If a virtual interface in the 'Confirming' state is deleted by - // the virtual interface owner, the virtual interface will enter the 'Rejected' - // state. + // * Rejected: The virtual interface owner has declined creation of the virtual + // interface. If a virtual interface in the 'Confirming' state is deleted + // by the virtual interface owner, the virtual interface will enter the 'Rejected' + // state. VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"` // The type of virtual interface. @@ -3534,28 +7135,187 @@ func (s VirtualInterface) GoString() string { return s.String() } +// SetAddressFamily sets the AddressFamily field's value. +func (s *VirtualInterface) SetAddressFamily(v string) *VirtualInterface { + s.AddressFamily = &v + return s +} + +// SetAmazonAddress sets the AmazonAddress field's value. +func (s *VirtualInterface) SetAmazonAddress(v string) *VirtualInterface { + s.AmazonAddress = &v + return s +} + +// SetAsn sets the Asn field's value. +func (s *VirtualInterface) SetAsn(v int64) *VirtualInterface { + s.Asn = &v + return s +} + +// SetAuthKey sets the AuthKey field's value. +func (s *VirtualInterface) SetAuthKey(v string) *VirtualInterface { + s.AuthKey = &v + return s +} + +// SetBgpPeers sets the BgpPeers field's value. +func (s *VirtualInterface) SetBgpPeers(v []*BGPPeer) *VirtualInterface { + s.BgpPeers = v + return s +} + +// SetConnectionId sets the ConnectionId field's value. +func (s *VirtualInterface) SetConnectionId(v string) *VirtualInterface { + s.ConnectionId = &v + return s +} + +// SetCustomerAddress sets the CustomerAddress field's value. +func (s *VirtualInterface) SetCustomerAddress(v string) *VirtualInterface { + s.CustomerAddress = &v + return s +} + +// SetCustomerRouterConfig sets the CustomerRouterConfig field's value. +func (s *VirtualInterface) SetCustomerRouterConfig(v string) *VirtualInterface { + s.CustomerRouterConfig = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *VirtualInterface) SetLocation(v string) *VirtualInterface { + s.Location = &v + return s +} + +// SetOwnerAccount sets the OwnerAccount field's value. +func (s *VirtualInterface) SetOwnerAccount(v string) *VirtualInterface { + s.OwnerAccount = &v + return s +} + +// SetRouteFilterPrefixes sets the RouteFilterPrefixes field's value. +func (s *VirtualInterface) SetRouteFilterPrefixes(v []*RouteFilterPrefix) *VirtualInterface { + s.RouteFilterPrefixes = v + return s +} + +// SetVirtualGatewayId sets the VirtualGatewayId field's value. +func (s *VirtualInterface) SetVirtualGatewayId(v string) *VirtualInterface { + s.VirtualGatewayId = &v + return s +} + +// SetVirtualInterfaceId sets the VirtualInterfaceId field's value. +func (s *VirtualInterface) SetVirtualInterfaceId(v string) *VirtualInterface { + s.VirtualInterfaceId = &v + return s +} + +// SetVirtualInterfaceName sets the VirtualInterfaceName field's value. +func (s *VirtualInterface) SetVirtualInterfaceName(v string) *VirtualInterface { + s.VirtualInterfaceName = &v + return s +} + +// SetVirtualInterfaceState sets the VirtualInterfaceState field's value. +func (s *VirtualInterface) SetVirtualInterfaceState(v string) *VirtualInterface { + s.VirtualInterfaceState = &v + return s +} + +// SetVirtualInterfaceType sets the VirtualInterfaceType field's value. +func (s *VirtualInterface) SetVirtualInterfaceType(v string) *VirtualInterface { + s.VirtualInterfaceType = &v + return s +} + +// SetVlan sets the Vlan field's value. +func (s *VirtualInterface) SetVlan(v int64) *VirtualInterface { + s.Vlan = &v + return s +} + +// Indicates the address family for the BGP peer. +// +// * ipv4: IPv4 address family +// +// * ipv6: IPv6 address family +const ( + // AddressFamilyIpv4 is a AddressFamily enum value + AddressFamilyIpv4 = "ipv4" + + // AddressFamilyIpv6 is a AddressFamily enum value + AddressFamilyIpv6 = "ipv6" +) + +// The state of the BGP peer. +// +// * Verifying: The BGP peering addresses or ASN require validation before +// the BGP peer can be created. This state only applies to BGP peers on a +// public virtual interface. +// +// * Pending: The BGP peer has been created, and is in this state until it +// is ready to be established. +// +// * Available: The BGP peer can be established. +// +// * Deleting: The BGP peer is in the process of being deleted. +// +// * Deleted: The BGP peer has been deleted and cannot be established. +const ( + // BGPPeerStateVerifying is a BGPPeerState enum value + BGPPeerStateVerifying = "verifying" + + // BGPPeerStatePending is a BGPPeerState enum value + BGPPeerStatePending = "pending" + + // BGPPeerStateAvailable is a BGPPeerState enum value + BGPPeerStateAvailable = "available" + + // BGPPeerStateDeleting is a BGPPeerState enum value + BGPPeerStateDeleting = "deleting" + + // BGPPeerStateDeleted is a BGPPeerState enum value + BGPPeerStateDeleted = "deleted" +) + +// The Up/Down state of the BGP peer. +// +// * Up: The BGP peer is established. +// +// * Down: The BGP peer is down. +const ( + // BGPStatusUp is a BGPStatus enum value + BGPStatusUp = "up" + + // BGPStatusDown is a BGPStatus enum value + BGPStatusDown = "down" +) + // State of the connection. // -// Ordering: The initial state of a hosted connection provisioned on an -// interconnect. The connection stays in the ordering state until the owner -// of the hosted connection confirms or declines the connection order. +// * Ordering: The initial state of a hosted connection provisioned on an +// interconnect. The connection stays in the ordering state until the owner +// of the hosted connection confirms or declines the connection order. // -// Requested: The initial state of a standard connection. The connection -// stays in the requested state until the Letter of Authorization (LOA) is sent -// to the customer. +// * Requested: The initial state of a standard connection. The connection +// stays in the requested state until the Letter of Authorization (LOA) is +// sent to the customer. // -// Pending: The connection has been approved, and is being initialized. +// * Pending: The connection has been approved, and is being initialized. // -// Available: The network link is up, and the connection is ready for use. +// * Available: The network link is up, and the connection is ready for use. // -// Down: The network link is down. +// * Down: The network link is down. // -// Deleting: The connection is in the process of being deleted. +// * Deleting: The connection is in the process of being deleted. // -// Deleted: The connection has been deleted. +// * Deleted: The connection has been deleted. // -// Rejected: A hosted connection in the 'Ordering' state will enter the -// 'Rejected' state if it is deleted by the end customer. +// * Rejected: A hosted connection in the 'Ordering' state will enter the +// 'Rejected' state if it is deleted by the end customer. const ( // ConnectionStateOrdering is a ConnectionState enum value ConnectionStateOrdering = "ordering" @@ -3584,20 +7344,20 @@ const ( // State of the interconnect. // -// Requested: The initial state of an interconnect. The interconnect stays -// in the requested state until the Letter of Authorization (LOA) is sent to -// the customer. +// * Requested: The initial state of an interconnect. The interconnect stays +// in the requested state until the Letter of Authorization (LOA) is sent +// to the customer. // -// Pending>: The interconnect has been approved, and is being initialized. +// * Pending: The interconnect has been approved, and is being initialized. // -// Available: The network link is up, and the interconnect is ready for -// use. +// * Available: The network link is up, and the interconnect is ready for +// use. // -// Down: The network link is down. +// * Down: The network link is down. // -// Deleting: The interconnect is in the process of being deleted. +// * Deleting: The interconnect is in the process of being deleted. // -// Deleted: The interconnect has been deleted. +// * Deleted: The interconnect has been deleted. const ( // InterconnectStateRequested is a InterconnectState enum value InterconnectStateRequested = "requested" @@ -3618,6 +7378,41 @@ const ( InterconnectStateDeleted = "deleted" ) +// The state of the LAG. +// +// * Requested: The initial state of a LAG. The LAG stays in the requested +// state until the Letter of Authorization (LOA) is available. +// +// * Pending: The LAG has been approved, and is being initialized. +// +// * Available: The network link is established, and the LAG is ready for +// use. +// +// * Down: The network link is down. +// +// * Deleting: The LAG is in the process of being deleted. +// +// * Deleted: The LAG has been deleted. +const ( + // LagStateRequested is a LagState enum value + LagStateRequested = "requested" + + // LagStatePending is a LagState enum value + LagStatePending = "pending" + + // LagStateAvailable is a LagState enum value + LagStateAvailable = "available" + + // LagStateDown is a LagState enum value + LagStateDown = "down" + + // LagStateDeleting is a LagState enum value + LagStateDeleting = "deleting" + + // LagStateDeleted is a LagState enum value + LagStateDeleted = "deleted" +) + // A standard media type indicating the content type of the LOA-CFA document. // Currently, the only supported value is "application/pdf". // @@ -3629,32 +7424,32 @@ const ( // State of the virtual interface. // -// Confirming: The creation of the virtual interface is pending confirmation -// from the virtual interface owner. If the owner of the virtual interface is -// different from the owner of the connection on which it is provisioned, then -// the virtual interface will remain in this state until it is confirmed by -// the virtual interface owner. +// * Confirming: The creation of the virtual interface is pending confirmation +// from the virtual interface owner. If the owner of the virtual interface +// is different from the owner of the connection on which it is provisioned, +// then the virtual interface will remain in this state until it is confirmed +// by the virtual interface owner. // -// Verifying: This state only applies to public virtual interfaces. Each -// public virtual interface needs validation before the virtual interface can -// be created. +// * Verifying: This state only applies to public virtual interfaces. Each +// public virtual interface needs validation before the virtual interface +// can be created. // -// Pending: A virtual interface is in this state from the time that it is -// created until the virtual interface is ready to forward traffic. +// * Pending: A virtual interface is in this state from the time that it +// is created until the virtual interface is ready to forward traffic. // -// Available: A virtual interface that is able to forward traffic. +// * Available: A virtual interface that is able to forward traffic. // -// Down: A virtual interface that is BGP down. +// * Down: A virtual interface that is BGP down. // -// Deleting: A virtual interface is in this state immediately after calling -// DeleteVirtualInterface until it can no longer forward traffic. +// * Deleting: A virtual interface is in this state immediately after calling +// DeleteVirtualInterface until it can no longer forward traffic. // -// Deleted: A virtual interface that cannot forward traffic. +// * Deleted: A virtual interface that cannot forward traffic. // -// Rejected: The virtual interface owner has declined creation of the virtual -// interface. If a virtual interface in the 'Confirming' state is deleted by -// the virtual interface owner, the virtual interface will enter the 'Rejected' -// state. +// * Rejected: The virtual interface owner has declined creation of the virtual +// interface. If a virtual interface in the 'Confirming' state is deleted +// by the virtual interface owner, the virtual interface will enter the 'Rejected' +// state. const ( // VirtualInterfaceStateConfirming is a VirtualInterfaceState enum value VirtualInterfaceStateConfirming = "confirming" diff --git a/vendor/github.com/aws/aws-sdk-go/service/directconnect/directconnectiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/directconnect/directconnectiface/interface.go index 6ccf82d64..63c73e445 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directconnect/directconnectiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directconnect/directconnectiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockDirectConnectClient{} // @@ -63,6 +63,10 @@ type DirectConnectAPI interface { AllocateConnectionOnInterconnect(*directconnect.AllocateConnectionOnInterconnectInput) (*directconnect.Connection, error) + AllocateHostedConnectionRequest(*directconnect.AllocateHostedConnectionInput) (*request.Request, *directconnect.Connection) + + AllocateHostedConnection(*directconnect.AllocateHostedConnectionInput) (*directconnect.Connection, error) + AllocatePrivateVirtualInterfaceRequest(*directconnect.AllocatePrivateVirtualInterfaceInput) (*request.Request, *directconnect.VirtualInterface) AllocatePrivateVirtualInterface(*directconnect.AllocatePrivateVirtualInterfaceInput) (*directconnect.VirtualInterface, error) @@ -71,6 +75,18 @@ type DirectConnectAPI interface { AllocatePublicVirtualInterface(*directconnect.AllocatePublicVirtualInterfaceInput) (*directconnect.VirtualInterface, error) + AssociateConnectionWithLagRequest(*directconnect.AssociateConnectionWithLagInput) (*request.Request, *directconnect.Connection) + + AssociateConnectionWithLag(*directconnect.AssociateConnectionWithLagInput) (*directconnect.Connection, error) + + AssociateHostedConnectionRequest(*directconnect.AssociateHostedConnectionInput) (*request.Request, *directconnect.Connection) + + AssociateHostedConnection(*directconnect.AssociateHostedConnectionInput) (*directconnect.Connection, error) + + AssociateVirtualInterfaceRequest(*directconnect.AssociateVirtualInterfaceInput) (*request.Request, *directconnect.VirtualInterface) + + AssociateVirtualInterface(*directconnect.AssociateVirtualInterfaceInput) (*directconnect.VirtualInterface, error) + ConfirmConnectionRequest(*directconnect.ConfirmConnectionInput) (*request.Request, *directconnect.ConfirmConnectionOutput) ConfirmConnection(*directconnect.ConfirmConnectionInput) (*directconnect.ConfirmConnectionOutput, error) @@ -83,6 +99,10 @@ type DirectConnectAPI interface { ConfirmPublicVirtualInterface(*directconnect.ConfirmPublicVirtualInterfaceInput) (*directconnect.ConfirmPublicVirtualInterfaceOutput, error) + CreateBGPPeerRequest(*directconnect.CreateBGPPeerInput) (*request.Request, *directconnect.CreateBGPPeerOutput) + + CreateBGPPeer(*directconnect.CreateBGPPeerInput) (*directconnect.CreateBGPPeerOutput, error) + CreateConnectionRequest(*directconnect.CreateConnectionInput) (*request.Request, *directconnect.Connection) CreateConnection(*directconnect.CreateConnectionInput) (*directconnect.Connection, error) @@ -91,6 +111,10 @@ type DirectConnectAPI interface { CreateInterconnect(*directconnect.CreateInterconnectInput) (*directconnect.Interconnect, error) + CreateLagRequest(*directconnect.CreateLagInput) (*request.Request, *directconnect.Lag) + + CreateLag(*directconnect.CreateLagInput) (*directconnect.Lag, error) + CreatePrivateVirtualInterfaceRequest(*directconnect.CreatePrivateVirtualInterfaceInput) (*request.Request, *directconnect.VirtualInterface) CreatePrivateVirtualInterface(*directconnect.CreatePrivateVirtualInterfaceInput) (*directconnect.VirtualInterface, error) @@ -99,6 +123,10 @@ type DirectConnectAPI interface { CreatePublicVirtualInterface(*directconnect.CreatePublicVirtualInterfaceInput) (*directconnect.VirtualInterface, error) + DeleteBGPPeerRequest(*directconnect.DeleteBGPPeerInput) (*request.Request, *directconnect.DeleteBGPPeerOutput) + + DeleteBGPPeer(*directconnect.DeleteBGPPeerInput) (*directconnect.DeleteBGPPeerOutput, error) + DeleteConnectionRequest(*directconnect.DeleteConnectionInput) (*request.Request, *directconnect.Connection) DeleteConnection(*directconnect.DeleteConnectionInput) (*directconnect.Connection, error) @@ -107,6 +135,10 @@ type DirectConnectAPI interface { DeleteInterconnect(*directconnect.DeleteInterconnectInput) (*directconnect.DeleteInterconnectOutput, error) + DeleteLagRequest(*directconnect.DeleteLagInput) (*request.Request, *directconnect.Lag) + + DeleteLag(*directconnect.DeleteLagInput) (*directconnect.Lag, error) + DeleteVirtualInterfaceRequest(*directconnect.DeleteVirtualInterfaceInput) (*request.Request, *directconnect.DeleteVirtualInterfaceOutput) DeleteVirtualInterface(*directconnect.DeleteVirtualInterfaceInput) (*directconnect.DeleteVirtualInterfaceOutput, error) @@ -123,6 +155,10 @@ type DirectConnectAPI interface { DescribeConnectionsOnInterconnect(*directconnect.DescribeConnectionsOnInterconnectInput) (*directconnect.Connections, error) + DescribeHostedConnectionsRequest(*directconnect.DescribeHostedConnectionsInput) (*request.Request, *directconnect.Connections) + + DescribeHostedConnections(*directconnect.DescribeHostedConnectionsInput) (*directconnect.Connections, error) + DescribeInterconnectLoaRequest(*directconnect.DescribeInterconnectLoaInput) (*request.Request, *directconnect.DescribeInterconnectLoaOutput) DescribeInterconnectLoa(*directconnect.DescribeInterconnectLoaInput) (*directconnect.DescribeInterconnectLoaOutput, error) @@ -131,10 +167,22 @@ type DirectConnectAPI interface { DescribeInterconnects(*directconnect.DescribeInterconnectsInput) (*directconnect.DescribeInterconnectsOutput, error) + DescribeLagsRequest(*directconnect.DescribeLagsInput) (*request.Request, *directconnect.DescribeLagsOutput) + + DescribeLags(*directconnect.DescribeLagsInput) (*directconnect.DescribeLagsOutput, error) + + DescribeLoaRequest(*directconnect.DescribeLoaInput) (*request.Request, *directconnect.Loa) + + DescribeLoa(*directconnect.DescribeLoaInput) (*directconnect.Loa, error) + DescribeLocationsRequest(*directconnect.DescribeLocationsInput) (*request.Request, *directconnect.DescribeLocationsOutput) DescribeLocations(*directconnect.DescribeLocationsInput) (*directconnect.DescribeLocationsOutput, error) + DescribeTagsRequest(*directconnect.DescribeTagsInput) (*request.Request, *directconnect.DescribeTagsOutput) + + DescribeTags(*directconnect.DescribeTagsInput) (*directconnect.DescribeTagsOutput, error) + DescribeVirtualGatewaysRequest(*directconnect.DescribeVirtualGatewaysInput) (*request.Request, *directconnect.DescribeVirtualGatewaysOutput) DescribeVirtualGateways(*directconnect.DescribeVirtualGatewaysInput) (*directconnect.DescribeVirtualGatewaysOutput, error) @@ -142,6 +190,22 @@ type DirectConnectAPI interface { DescribeVirtualInterfacesRequest(*directconnect.DescribeVirtualInterfacesInput) (*request.Request, *directconnect.DescribeVirtualInterfacesOutput) DescribeVirtualInterfaces(*directconnect.DescribeVirtualInterfacesInput) (*directconnect.DescribeVirtualInterfacesOutput, error) + + DisassociateConnectionFromLagRequest(*directconnect.DisassociateConnectionFromLagInput) (*request.Request, *directconnect.Connection) + + DisassociateConnectionFromLag(*directconnect.DisassociateConnectionFromLagInput) (*directconnect.Connection, error) + + TagResourceRequest(*directconnect.TagResourceInput) (*request.Request, *directconnect.TagResourceOutput) + + TagResource(*directconnect.TagResourceInput) (*directconnect.TagResourceOutput, error) + + UntagResourceRequest(*directconnect.UntagResourceInput) (*request.Request, *directconnect.UntagResourceOutput) + + UntagResource(*directconnect.UntagResourceInput) (*directconnect.UntagResourceOutput, error) + + UpdateLagRequest(*directconnect.UpdateLagInput) (*request.Request, *directconnect.Lag) + + UpdateLag(*directconnect.UpdateLagInput) (*directconnect.Lag, error) } var _ DirectConnectAPI = (*directconnect.DirectConnect)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/directconnect/errors.go b/vendor/github.com/aws/aws-sdk-go/service/directconnect/errors.go new file mode 100644 index 000000000..27d81f865 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/directconnect/errors.go @@ -0,0 +1,33 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package directconnect + +const ( + + // ErrCodeClientException for service response error code + // "ClientException". + // + // The API was called with invalid parameters. The error message will contain + // additional details about the cause. + ErrCodeClientException = "ClientException" + + // ErrCodeDuplicateTagKeysException for service response error code + // "DuplicateTagKeysException". + // + // A tag key was specified more than once. + ErrCodeDuplicateTagKeysException = "DuplicateTagKeysException" + + // ErrCodeServerException for service response error code + // "ServerException". + // + // A server-side error occurred during the API call. The error message will + // contain additional details about the cause. + ErrCodeServerException = "ServerException" + + // ErrCodeTooManyTagsException for service response error code + // "TooManyTagsException". + // + // You have reached the limit on the number of tags that can be assigned to + // a Direct Connect resource. + ErrCodeTooManyTagsException = "TooManyTagsException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/directconnect/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/directconnect/examples_test.go index e08d7c6c9..3ac8b9590 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directconnect/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directconnect/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleDirectConnect_AllocateConnectionOnInterconnect() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -44,13 +40,34 @@ func ExampleDirectConnect_AllocateConnectionOnInterconnect() { fmt.Println(resp) } -func ExampleDirectConnect_AllocatePrivateVirtualInterface() { - sess, err := session.NewSession() +func ExampleDirectConnect_AllocateHostedConnection() { + sess := session.Must(session.NewSession()) + + svc := directconnect.New(sess) + + params := &directconnect.AllocateHostedConnectionInput{ + Bandwidth: aws.String("Bandwidth"), // Required + ConnectionId: aws.String("ConnectionId"), // Required + ConnectionName: aws.String("ConnectionName"), // Required + OwnerAccount: aws.String("OwnerAccount"), // Required + Vlan: aws.Int64(1), // Required + } + resp, err := svc.AllocateHostedConnection(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDirectConnect_AllocatePrivateVirtualInterface() { + sess := session.Must(session.NewSession()) + svc := directconnect.New(sess) params := &directconnect.AllocatePrivateVirtualInterfaceInput{ @@ -59,6 +76,7 @@ func ExampleDirectConnect_AllocatePrivateVirtualInterface() { Asn: aws.Int64(1), // Required VirtualInterfaceName: aws.String("VirtualInterfaceName"), // Required Vlan: aws.Int64(1), // Required + AddressFamily: aws.String("AddressFamily"), AmazonAddress: aws.String("AmazonAddress"), AuthKey: aws.String("BGPAuthKey"), CustomerAddress: aws.String("CustomerAddress"), @@ -79,29 +97,26 @@ func ExampleDirectConnect_AllocatePrivateVirtualInterface() { } func ExampleDirectConnect_AllocatePublicVirtualInterface() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) params := &directconnect.AllocatePublicVirtualInterfaceInput{ ConnectionId: aws.String("ConnectionId"), // Required NewPublicVirtualInterfaceAllocation: &directconnect.NewPublicVirtualInterfaceAllocation{ // Required - AmazonAddress: aws.String("AmazonAddress"), // Required - Asn: aws.Int64(1), // Required - CustomerAddress: aws.String("CustomerAddress"), // Required - RouteFilterPrefixes: []*directconnect.RouteFilterPrefix{ // Required + Asn: aws.Int64(1), // Required + VirtualInterfaceName: aws.String("VirtualInterfaceName"), // Required + Vlan: aws.Int64(1), // Required + AddressFamily: aws.String("AddressFamily"), + AmazonAddress: aws.String("AmazonAddress"), + AuthKey: aws.String("BGPAuthKey"), + CustomerAddress: aws.String("CustomerAddress"), + RouteFilterPrefixes: []*directconnect.RouteFilterPrefix{ { // Required Cidr: aws.String("CIDR"), }, // More values... }, - VirtualInterfaceName: aws.String("VirtualInterfaceName"), // Required - Vlan: aws.Int64(1), // Required - AuthKey: aws.String("BGPAuthKey"), }, OwnerAccount: aws.String("OwnerAccount"), // Required } @@ -118,13 +133,75 @@ func ExampleDirectConnect_AllocatePublicVirtualInterface() { fmt.Println(resp) } -func ExampleDirectConnect_ConfirmConnection() { - sess, err := session.NewSession() +func ExampleDirectConnect_AssociateConnectionWithLag() { + sess := session.Must(session.NewSession()) + + svc := directconnect.New(sess) + + params := &directconnect.AssociateConnectionWithLagInput{ + ConnectionId: aws.String("ConnectionId"), // Required + LagId: aws.String("LagId"), // Required + } + resp, err := svc.AssociateConnectionWithLag(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDirectConnect_AssociateHostedConnection() { + sess := session.Must(session.NewSession()) + + svc := directconnect.New(sess) + + params := &directconnect.AssociateHostedConnectionInput{ + ConnectionId: aws.String("ConnectionId"), // Required + ParentConnectionId: aws.String("ConnectionId"), // Required + } + resp, err := svc.AssociateHostedConnection(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDirectConnect_AssociateVirtualInterface() { + sess := session.Must(session.NewSession()) + + svc := directconnect.New(sess) + + params := &directconnect.AssociateVirtualInterfaceInput{ + ConnectionId: aws.String("ConnectionId"), // Required + VirtualInterfaceId: aws.String("VirtualInterfaceId"), // Required + } + resp, err := svc.AssociateVirtualInterface(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDirectConnect_ConfirmConnection() { + sess := session.Must(session.NewSession()) + svc := directconnect.New(sess) params := &directconnect.ConfirmConnectionInput{ @@ -144,11 +221,7 @@ func ExampleDirectConnect_ConfirmConnection() { } func ExampleDirectConnect_ConfirmPrivateVirtualInterface() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -170,11 +243,7 @@ func ExampleDirectConnect_ConfirmPrivateVirtualInterface() { } func ExampleDirectConnect_ConfirmPublicVirtualInterface() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -194,19 +263,44 @@ func ExampleDirectConnect_ConfirmPublicVirtualInterface() { fmt.Println(resp) } -func ExampleDirectConnect_CreateConnection() { - sess, err := session.NewSession() +func ExampleDirectConnect_CreateBGPPeer() { + sess := session.Must(session.NewSession()) + + svc := directconnect.New(sess) + + params := &directconnect.CreateBGPPeerInput{ + NewBGPPeer: &directconnect.NewBGPPeer{ + AddressFamily: aws.String("AddressFamily"), + AmazonAddress: aws.String("AmazonAddress"), + Asn: aws.Int64(1), + AuthKey: aws.String("BGPAuthKey"), + CustomerAddress: aws.String("CustomerAddress"), + }, + VirtualInterfaceId: aws.String("VirtualInterfaceId"), + } + resp, err := svc.CreateBGPPeer(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDirectConnect_CreateConnection() { + sess := session.Must(session.NewSession()) + svc := directconnect.New(sess) params := &directconnect.CreateConnectionInput{ Bandwidth: aws.String("Bandwidth"), // Required ConnectionName: aws.String("ConnectionName"), // Required Location: aws.String("LocationCode"), // Required + LagId: aws.String("LagId"), } resp, err := svc.CreateConnection(params) @@ -222,11 +316,7 @@ func ExampleDirectConnect_CreateConnection() { } func ExampleDirectConnect_CreateInterconnect() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -234,6 +324,7 @@ func ExampleDirectConnect_CreateInterconnect() { Bandwidth: aws.String("Bandwidth"), // Required InterconnectName: aws.String("InterconnectName"), // Required Location: aws.String("LocationCode"), // Required + LagId: aws.String("LagId"), } resp, err := svc.CreateInterconnect(params) @@ -248,13 +339,34 @@ func ExampleDirectConnect_CreateInterconnect() { fmt.Println(resp) } -func ExampleDirectConnect_CreatePrivateVirtualInterface() { - sess, err := session.NewSession() +func ExampleDirectConnect_CreateLag() { + sess := session.Must(session.NewSession()) + + svc := directconnect.New(sess) + + params := &directconnect.CreateLagInput{ + ConnectionsBandwidth: aws.String("Bandwidth"), // Required + LagName: aws.String("LagName"), // Required + Location: aws.String("LocationCode"), // Required + NumberOfConnections: aws.Int64(1), // Required + ConnectionId: aws.String("ConnectionId"), + } + resp, err := svc.CreateLag(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDirectConnect_CreatePrivateVirtualInterface() { + sess := session.Must(session.NewSession()) + svc := directconnect.New(sess) params := &directconnect.CreatePrivateVirtualInterfaceInput{ @@ -264,6 +376,7 @@ func ExampleDirectConnect_CreatePrivateVirtualInterface() { VirtualGatewayId: aws.String("VirtualGatewayId"), // Required VirtualInterfaceName: aws.String("VirtualInterfaceName"), // Required Vlan: aws.Int64(1), // Required + AddressFamily: aws.String("AddressFamily"), AmazonAddress: aws.String("AmazonAddress"), AuthKey: aws.String("BGPAuthKey"), CustomerAddress: aws.String("CustomerAddress"), @@ -283,29 +396,26 @@ func ExampleDirectConnect_CreatePrivateVirtualInterface() { } func ExampleDirectConnect_CreatePublicVirtualInterface() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) params := &directconnect.CreatePublicVirtualInterfaceInput{ ConnectionId: aws.String("ConnectionId"), // Required NewPublicVirtualInterface: &directconnect.NewPublicVirtualInterface{ // Required - AmazonAddress: aws.String("AmazonAddress"), // Required - Asn: aws.Int64(1), // Required - CustomerAddress: aws.String("CustomerAddress"), // Required - RouteFilterPrefixes: []*directconnect.RouteFilterPrefix{ // Required + Asn: aws.Int64(1), // Required + VirtualInterfaceName: aws.String("VirtualInterfaceName"), // Required + Vlan: aws.Int64(1), // Required + AddressFamily: aws.String("AddressFamily"), + AmazonAddress: aws.String("AmazonAddress"), + AuthKey: aws.String("BGPAuthKey"), + CustomerAddress: aws.String("CustomerAddress"), + RouteFilterPrefixes: []*directconnect.RouteFilterPrefix{ { // Required Cidr: aws.String("CIDR"), }, // More values... }, - VirtualInterfaceName: aws.String("VirtualInterfaceName"), // Required - Vlan: aws.Int64(1), // Required - AuthKey: aws.String("BGPAuthKey"), }, } resp, err := svc.CreatePublicVirtualInterface(params) @@ -321,13 +431,32 @@ func ExampleDirectConnect_CreatePublicVirtualInterface() { fmt.Println(resp) } -func ExampleDirectConnect_DeleteConnection() { - sess, err := session.NewSession() +func ExampleDirectConnect_DeleteBGPPeer() { + sess := session.Must(session.NewSession()) + + svc := directconnect.New(sess) + + params := &directconnect.DeleteBGPPeerInput{ + Asn: aws.Int64(1), + CustomerAddress: aws.String("CustomerAddress"), + VirtualInterfaceId: aws.String("VirtualInterfaceId"), + } + resp, err := svc.DeleteBGPPeer(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDirectConnect_DeleteConnection() { + sess := session.Must(session.NewSession()) + svc := directconnect.New(sess) params := &directconnect.DeleteConnectionInput{ @@ -347,11 +476,7 @@ func ExampleDirectConnect_DeleteConnection() { } func ExampleDirectConnect_DeleteInterconnect() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -371,13 +496,30 @@ func ExampleDirectConnect_DeleteInterconnect() { fmt.Println(resp) } -func ExampleDirectConnect_DeleteVirtualInterface() { - sess, err := session.NewSession() +func ExampleDirectConnect_DeleteLag() { + sess := session.Must(session.NewSession()) + + svc := directconnect.New(sess) + + params := &directconnect.DeleteLagInput{ + LagId: aws.String("LagId"), // Required + } + resp, err := svc.DeleteLag(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDirectConnect_DeleteVirtualInterface() { + sess := session.Must(session.NewSession()) + svc := directconnect.New(sess) params := &directconnect.DeleteVirtualInterfaceInput{ @@ -397,11 +539,7 @@ func ExampleDirectConnect_DeleteVirtualInterface() { } func ExampleDirectConnect_DescribeConnectionLoa() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -424,11 +562,7 @@ func ExampleDirectConnect_DescribeConnectionLoa() { } func ExampleDirectConnect_DescribeConnections() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -449,11 +583,7 @@ func ExampleDirectConnect_DescribeConnections() { } func ExampleDirectConnect_DescribeConnectionsOnInterconnect() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -473,13 +603,30 @@ func ExampleDirectConnect_DescribeConnectionsOnInterconnect() { fmt.Println(resp) } -func ExampleDirectConnect_DescribeInterconnectLoa() { - sess, err := session.NewSession() +func ExampleDirectConnect_DescribeHostedConnections() { + sess := session.Must(session.NewSession()) + + svc := directconnect.New(sess) + + params := &directconnect.DescribeHostedConnectionsInput{ + ConnectionId: aws.String("ConnectionId"), // Required + } + resp, err := svc.DescribeHostedConnections(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDirectConnect_DescribeInterconnectLoa() { + sess := session.Must(session.NewSession()) + svc := directconnect.New(sess) params := &directconnect.DescribeInterconnectLoaInput{ @@ -501,11 +648,7 @@ func ExampleDirectConnect_DescribeInterconnectLoa() { } func ExampleDirectConnect_DescribeInterconnects() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -525,13 +668,53 @@ func ExampleDirectConnect_DescribeInterconnects() { fmt.Println(resp) } -func ExampleDirectConnect_DescribeLocations() { - sess, err := session.NewSession() +func ExampleDirectConnect_DescribeLags() { + sess := session.Must(session.NewSession()) + + svc := directconnect.New(sess) + + params := &directconnect.DescribeLagsInput{ + LagId: aws.String("LagId"), + } + resp, err := svc.DescribeLags(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDirectConnect_DescribeLoa() { + sess := session.Must(session.NewSession()) + + svc := directconnect.New(sess) + + params := &directconnect.DescribeLoaInput{ + ConnectionId: aws.String("ConnectionId"), // Required + LoaContentType: aws.String("LoaContentType"), + ProviderName: aws.String("ProviderName"), + } + resp, err := svc.DescribeLoa(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDirectConnect_DescribeLocations() { + sess := session.Must(session.NewSession()) + svc := directconnect.New(sess) var params *directconnect.DescribeLocationsInput @@ -548,13 +731,33 @@ func ExampleDirectConnect_DescribeLocations() { fmt.Println(resp) } -func ExampleDirectConnect_DescribeVirtualGateways() { - sess, err := session.NewSession() +func ExampleDirectConnect_DescribeTags() { + sess := session.Must(session.NewSession()) + + svc := directconnect.New(sess) + + params := &directconnect.DescribeTagsInput{ + ResourceArns: []*string{ // Required + aws.String("ResourceArn"), // Required + // More values... + }, + } + resp, err := svc.DescribeTags(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDirectConnect_DescribeVirtualGateways() { + sess := session.Must(session.NewSession()) + svc := directconnect.New(sess) var params *directconnect.DescribeVirtualGatewaysInput @@ -572,11 +775,7 @@ func ExampleDirectConnect_DescribeVirtualGateways() { } func ExampleDirectConnect_DescribeVirtualInterfaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directconnect.New(sess) @@ -596,3 +795,101 @@ func ExampleDirectConnect_DescribeVirtualInterfaces() { // Pretty-print the response data. fmt.Println(resp) } + +func ExampleDirectConnect_DisassociateConnectionFromLag() { + sess := session.Must(session.NewSession()) + + svc := directconnect.New(sess) + + params := &directconnect.DisassociateConnectionFromLagInput{ + ConnectionId: aws.String("ConnectionId"), // Required + LagId: aws.String("LagId"), // Required + } + resp, err := svc.DisassociateConnectionFromLag(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDirectConnect_TagResource() { + sess := session.Must(session.NewSession()) + + svc := directconnect.New(sess) + + params := &directconnect.TagResourceInput{ + ResourceArn: aws.String("ResourceArn"), // Required + Tags: []*directconnect.Tag{ // Required + { // Required + Key: aws.String("TagKey"), // Required + Value: aws.String("TagValue"), + }, + // More values... + }, + } + resp, err := svc.TagResource(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDirectConnect_UntagResource() { + sess := session.Must(session.NewSession()) + + svc := directconnect.New(sess) + + params := &directconnect.UntagResourceInput{ + ResourceArn: aws.String("ResourceArn"), // Required + TagKeys: []*string{ // Required + aws.String("TagKey"), // Required + // More values... + }, + } + resp, err := svc.UntagResource(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDirectConnect_UpdateLag() { + sess := session.Must(session.NewSession()) + + svc := directconnect.New(sess) + + params := &directconnect.UpdateLagInput{ + LagId: aws.String("LagId"), // Required + LagName: aws.String("LagName"), + MinimumLinks: aws.Int64(1), + } + resp, err := svc.UpdateLag(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/directconnect/service.go b/vendor/github.com/aws/aws-sdk-go/service/directconnect/service.go index d6fe21435..c7f8e2cb1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directconnect/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directconnect/service.go @@ -23,8 +23,9 @@ import ( // example, you can provision a single connection to any AWS Direct Connect // location in the US and use it to access public AWS services in all US Regions // and AWS GovCloud (US). -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25 type DirectConnect struct { *client.Client } @@ -35,8 +36,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "directconnect" +// Service information constants +const ( + ServiceName = "directconnect" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the DirectConnect client with a session. // If additional configuration is needed for the client instance use the optional @@ -49,17 +53,18 @@ const ServiceName = "directconnect" // // Create a DirectConnect client with additional configuration // svc := directconnect.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *DirectConnect { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *DirectConnect { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *DirectConnect { svc := &DirectConnect{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2012-10-25", diff --git a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/api.go index 610dbff11..436175a5a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/api.go @@ -37,6 +37,7 @@ const opAddIpRoutes = "AddIpRoutes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/AddIpRoutes func (c *DirectoryService) AddIpRoutesRequest(input *AddIpRoutesInput) (req *request.Request, output *AddIpRoutesOutput) { op := &request.Operation{ Name: opAddIpRoutes, @@ -48,9 +49,8 @@ func (c *DirectoryService) AddIpRoutesRequest(input *AddIpRoutesInput) (req *req input = &AddIpRoutesInput{} } - req = c.newRequest(op, input, output) output = &AddIpRoutesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -62,6 +62,11 @@ func (c *DirectoryService) AddIpRoutesRequest(input *AddIpRoutesInput) (req *req // address block. You can also use AddIpRoutes to facilitate routing traffic // that uses public IP ranges from your Microsoft AD on AWS to a peer VPC. // +// Before you call AddIpRoutes, ensure that all of the required permissions +// have been explicitly granted through a policy. For details about what permissions +// are required to run the AddIpRoutes operation, see AWS Directory Service +// API Permissions: Actions, Resources, and Conditions Reference (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -70,28 +75,29 @@ func (c *DirectoryService) AddIpRoutesRequest(input *AddIpRoutesInput) (req *req // API operation AddIpRoutes for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * EntityAlreadyExistsException +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" // The specified entity already exists. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * DirectoryUnavailableException +// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" // The specified directory is unavailable or could not be found. // -// * IpRouteLimitExceededException +// * ErrCodeIpRouteLimitExceededException "IpRouteLimitExceededException" // The maximum allowed number of IP addresses was exceeded. The default limit // is 100 IP address blocks. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/AddIpRoutes func (c *DirectoryService) AddIpRoutes(input *AddIpRoutesInput) (*AddIpRoutesOutput, error) { req, out := c.AddIpRoutesRequest(input) err := req.Send() @@ -124,6 +130,7 @@ const opAddTagsToResource = "AddTagsToResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/AddTagsToResource func (c *DirectoryService) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) { op := &request.Operation{ Name: opAddTagsToResource, @@ -135,17 +142,16 @@ func (c *DirectoryService) AddTagsToResourceRequest(input *AddTagsToResourceInpu input = &AddTagsToResourceInput{} } - req = c.newRequest(op, input, output) output = &AddTagsToResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // AddTagsToResource API operation for AWS Directory Service. // -// Adds or overwrites one or more tags for the specified Amazon Directory Services -// directory. Each directory can have a maximum of 10 tags. Each tag consists -// of a key and optional value. Tag keys must be unique to each resource. +// Adds or overwrites one or more tags for the specified directory. Each directory +// can have a maximum of 50 tags. Each tag consists of a key and optional value. +// Tag keys must be unique to each resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -155,27 +161,102 @@ func (c *DirectoryService) AddTagsToResourceRequest(input *AddTagsToResourceInpu // API operation AddTagsToResource for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * TagLimitExceededException +// * ErrCodeTagLimitExceededException "TagLimitExceededException" // The maximum allowed number of tags was exceeded. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/AddTagsToResource func (c *DirectoryService) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() return out, err } +const opCancelSchemaExtension = "CancelSchemaExtension" + +// CancelSchemaExtensionRequest generates a "aws/request.Request" representing the +// client's request for the CancelSchemaExtension operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CancelSchemaExtension for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CancelSchemaExtension method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CancelSchemaExtensionRequest method. +// req, resp := client.CancelSchemaExtensionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CancelSchemaExtension +func (c *DirectoryService) CancelSchemaExtensionRequest(input *CancelSchemaExtensionInput) (req *request.Request, output *CancelSchemaExtensionOutput) { + op := &request.Operation{ + Name: opCancelSchemaExtension, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CancelSchemaExtensionInput{} + } + + output = &CancelSchemaExtensionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CancelSchemaExtension API operation for AWS Directory Service. +// +// Cancels an in-progress schema extension to a Microsoft AD directory. Once +// a schema extension has started replicating to all domain controllers, the +// task can no longer be canceled. A schema extension can be canceled during +// any of the following states; Initializing, CreatingSnapshot, and UpdatingSchema. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation CancelSchemaExtension for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// The specified entity could not be found. +// +// * ErrCodeClientException "ClientException" +// A client exception has occurred. +// +// * ErrCodeServiceException "ServiceException" +// An exception has occurred in AWS Directory Service. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CancelSchemaExtension +func (c *DirectoryService) CancelSchemaExtension(input *CancelSchemaExtensionInput) (*CancelSchemaExtensionOutput, error) { + req, out := c.CancelSchemaExtensionRequest(input) + err := req.Send() + return out, err +} + const opConnectDirectory = "ConnectDirectory" // ConnectDirectoryRequest generates a "aws/request.Request" representing the @@ -202,6 +283,7 @@ const opConnectDirectory = "ConnectDirectory" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ConnectDirectory func (c *DirectoryService) ConnectDirectoryRequest(input *ConnectDirectoryInput) (req *request.Request, output *ConnectDirectoryOutput) { op := &request.Operation{ Name: opConnectDirectory, @@ -213,9 +295,8 @@ func (c *DirectoryService) ConnectDirectoryRequest(input *ConnectDirectoryInput) input = &ConnectDirectoryInput{} } - req = c.newRequest(op, input, output) output = &ConnectDirectoryOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -223,6 +304,11 @@ func (c *DirectoryService) ConnectDirectoryRequest(input *ConnectDirectoryInput) // // Creates an AD Connector to connect to an on-premises directory. // +// Before you call ConnectDirectory, ensure that all of the required permissions +// have been explicitly granted through a policy. For details about what permissions +// are required to run the ConnectDirectory operation, see AWS Directory Service +// API Permissions: Actions, Resources, and Conditions Reference (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -231,20 +317,21 @@ func (c *DirectoryService) ConnectDirectoryRequest(input *ConnectDirectoryInput) // API operation ConnectDirectory for usage and error information. // // Returned Error Codes: -// * DirectoryLimitExceededException +// * ErrCodeDirectoryLimitExceededException "DirectoryLimitExceededException" // The maximum number of directories in the region has been reached. You can // use the GetDirectoryLimits operation to determine your directory limits in // the region. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ConnectDirectory func (c *DirectoryService) ConnectDirectory(input *ConnectDirectoryInput) (*ConnectDirectoryOutput, error) { req, out := c.ConnectDirectoryRequest(input) err := req.Send() @@ -277,6 +364,7 @@ const opCreateAlias = "CreateAlias" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateAlias func (c *DirectoryService) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, output *CreateAliasOutput) { op := &request.Operation{ Name: opCreateAlias, @@ -288,9 +376,8 @@ func (c *DirectoryService) CreateAliasRequest(input *CreateAliasInput) (req *req input = &CreateAliasInput{} } - req = c.newRequest(op, input, output) output = &CreateAliasOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -300,7 +387,7 @@ func (c *DirectoryService) CreateAliasRequest(input *CreateAliasInput) (req *req // The alias is used to construct the access URL for the directory, such as // http://.awsapps.com. // -// After an alias has been created, it cannot be deleted or reused, so this +// After an alias has been created, it cannot be deleted or reused, so this // operation should only be used when absolutely necessary. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -311,21 +398,22 @@ func (c *DirectoryService) CreateAliasRequest(input *CreateAliasInput) (req *req // API operation CreateAlias for usage and error information. // // Returned Error Codes: -// * EntityAlreadyExistsException +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" // The specified entity already exists. // -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateAlias func (c *DirectoryService) CreateAlias(input *CreateAliasInput) (*CreateAliasOutput, error) { req, out := c.CreateAliasRequest(input) err := req.Send() @@ -358,6 +446,7 @@ const opCreateComputer = "CreateComputer" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateComputer func (c *DirectoryService) CreateComputerRequest(input *CreateComputerInput) (req *request.Request, output *CreateComputerOutput) { op := &request.Operation{ Name: opCreateComputer, @@ -369,9 +458,8 @@ func (c *DirectoryService) CreateComputerRequest(input *CreateComputerInput) (re input = &CreateComputerInput{} } - req = c.newRequest(op, input, output) output = &CreateComputerOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -388,30 +476,31 @@ func (c *DirectoryService) CreateComputerRequest(input *CreateComputerInput) (re // API operation CreateComputer for usage and error information. // // Returned Error Codes: -// * AuthenticationFailedException +// * ErrCodeAuthenticationFailedException "AuthenticationFailedException" // An authentication error occurred. // -// * DirectoryUnavailableException +// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" // The specified directory is unavailable or could not be found. // -// * EntityAlreadyExistsException +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" // The specified entity already exists. // -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The operation is not supported. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateComputer func (c *DirectoryService) CreateComputer(input *CreateComputerInput) (*CreateComputerOutput, error) { req, out := c.CreateComputerRequest(input) err := req.Send() @@ -444,6 +533,7 @@ const opCreateConditionalForwarder = "CreateConditionalForwarder" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateConditionalForwarder func (c *DirectoryService) CreateConditionalForwarderRequest(input *CreateConditionalForwarderInput) (req *request.Request, output *CreateConditionalForwarderOutput) { op := &request.Operation{ Name: opCreateConditionalForwarder, @@ -455,9 +545,8 @@ func (c *DirectoryService) CreateConditionalForwarderRequest(input *CreateCondit input = &CreateConditionalForwarderInput{} } - req = c.newRequest(op, input, output) output = &CreateConditionalForwarderOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -475,27 +564,28 @@ func (c *DirectoryService) CreateConditionalForwarderRequest(input *CreateCondit // API operation CreateConditionalForwarder for usage and error information. // // Returned Error Codes: -// * EntityAlreadyExistsException +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" // The specified entity already exists. // -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * DirectoryUnavailableException +// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" // The specified directory is unavailable or could not be found. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The operation is not supported. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateConditionalForwarder func (c *DirectoryService) CreateConditionalForwarder(input *CreateConditionalForwarderInput) (*CreateConditionalForwarderOutput, error) { req, out := c.CreateConditionalForwarderRequest(input) err := req.Send() @@ -528,6 +618,7 @@ const opCreateDirectory = "CreateDirectory" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateDirectory func (c *DirectoryService) CreateDirectoryRequest(input *CreateDirectoryInput) (req *request.Request, output *CreateDirectoryOutput) { op := &request.Operation{ Name: opCreateDirectory, @@ -539,9 +630,8 @@ func (c *DirectoryService) CreateDirectoryRequest(input *CreateDirectoryInput) ( input = &CreateDirectoryInput{} } - req = c.newRequest(op, input, output) output = &CreateDirectoryOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -549,6 +639,11 @@ func (c *DirectoryService) CreateDirectoryRequest(input *CreateDirectoryInput) ( // // Creates a Simple AD directory. // +// Before you call CreateDirectory, ensure that all of the required permissions +// have been explicitly granted through a policy. For details about what permissions +// are required to run the CreateDirectory operation, see AWS Directory Service +// API Permissions: Actions, Resources, and Conditions Reference (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -557,20 +652,21 @@ func (c *DirectoryService) CreateDirectoryRequest(input *CreateDirectoryInput) ( // API operation CreateDirectory for usage and error information. // // Returned Error Codes: -// * DirectoryLimitExceededException +// * ErrCodeDirectoryLimitExceededException "DirectoryLimitExceededException" // The maximum number of directories in the region has been reached. You can // use the GetDirectoryLimits operation to determine your directory limits in // the region. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateDirectory func (c *DirectoryService) CreateDirectory(input *CreateDirectoryInput) (*CreateDirectoryOutput, error) { req, out := c.CreateDirectoryRequest(input) err := req.Send() @@ -603,6 +699,7 @@ const opCreateMicrosoftAD = "CreateMicrosoftAD" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateMicrosoftAD func (c *DirectoryService) CreateMicrosoftADRequest(input *CreateMicrosoftADInput) (req *request.Request, output *CreateMicrosoftADOutput) { op := &request.Operation{ Name: opCreateMicrosoftAD, @@ -614,9 +711,8 @@ func (c *DirectoryService) CreateMicrosoftADRequest(input *CreateMicrosoftADInpu input = &CreateMicrosoftADInput{} } - req = c.newRequest(op, input, output) output = &CreateMicrosoftADOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -624,6 +720,11 @@ func (c *DirectoryService) CreateMicrosoftADRequest(input *CreateMicrosoftADInpu // // Creates a Microsoft AD in the AWS cloud. // +// Before you call CreateMicrosoftAD, ensure that all of the required permissions +// have been explicitly granted through a policy. For details about what permissions +// are required to run the CreateMicrosoftAD operation, see AWS Directory Service +// API Permissions: Actions, Resources, and Conditions Reference (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -632,23 +733,24 @@ func (c *DirectoryService) CreateMicrosoftADRequest(input *CreateMicrosoftADInpu // API operation CreateMicrosoftAD for usage and error information. // // Returned Error Codes: -// * DirectoryLimitExceededException +// * ErrCodeDirectoryLimitExceededException "DirectoryLimitExceededException" // The maximum number of directories in the region has been reached. You can // use the GetDirectoryLimits operation to determine your directory limits in // the region. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The operation is not supported. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateMicrosoftAD func (c *DirectoryService) CreateMicrosoftAD(input *CreateMicrosoftADInput) (*CreateMicrosoftADOutput, error) { req, out := c.CreateMicrosoftADRequest(input) err := req.Send() @@ -681,6 +783,7 @@ const opCreateSnapshot = "CreateSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateSnapshot func (c *DirectoryService) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Request, output *CreateSnapshotOutput) { op := &request.Operation{ Name: opCreateSnapshot, @@ -692,9 +795,8 @@ func (c *DirectoryService) CreateSnapshotRequest(input *CreateSnapshotInput) (re input = &CreateSnapshotInput{} } - req = c.newRequest(op, input, output) output = &CreateSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -702,7 +804,7 @@ func (c *DirectoryService) CreateSnapshotRequest(input *CreateSnapshotInput) (re // // Creates a snapshot of a Simple AD or Microsoft AD directory in the AWS cloud. // -// You cannot take snapshots of AD Connector directories. +// You cannot take snapshots of AD Connector directories. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -712,23 +814,24 @@ func (c *DirectoryService) CreateSnapshotRequest(input *CreateSnapshotInput) (re // API operation CreateSnapshot for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * SnapshotLimitExceededException +// * ErrCodeSnapshotLimitExceededException "SnapshotLimitExceededException" // The maximum number of manual snapshots for the directory has been reached. // You can use the GetSnapshotLimits operation to determine the snapshot limits // for a directory. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateSnapshot func (c *DirectoryService) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error) { req, out := c.CreateSnapshotRequest(input) err := req.Send() @@ -761,6 +864,7 @@ const opCreateTrust = "CreateTrust" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateTrust func (c *DirectoryService) CreateTrustRequest(input *CreateTrustInput) (req *request.Request, output *CreateTrustOutput) { op := &request.Operation{ Name: opCreateTrust, @@ -772,9 +876,8 @@ func (c *DirectoryService) CreateTrustRequest(input *CreateTrustInput) (req *req input = &CreateTrustInput{} } - req = c.newRequest(op, input, output) output = &CreateTrustOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -797,24 +900,25 @@ func (c *DirectoryService) CreateTrustRequest(input *CreateTrustInput) (req *req // API operation CreateTrust for usage and error information. // // Returned Error Codes: -// * EntityAlreadyExistsException +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" // The specified entity already exists. // -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The operation is not supported. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateTrust func (c *DirectoryService) CreateTrust(input *CreateTrustInput) (*CreateTrustOutput, error) { req, out := c.CreateTrustRequest(input) err := req.Send() @@ -847,6 +951,7 @@ const opDeleteConditionalForwarder = "DeleteConditionalForwarder" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteConditionalForwarder func (c *DirectoryService) DeleteConditionalForwarderRequest(input *DeleteConditionalForwarderInput) (req *request.Request, output *DeleteConditionalForwarderOutput) { op := &request.Operation{ Name: opDeleteConditionalForwarder, @@ -858,9 +963,8 @@ func (c *DirectoryService) DeleteConditionalForwarderRequest(input *DeleteCondit input = &DeleteConditionalForwarderInput{} } - req = c.newRequest(op, input, output) output = &DeleteConditionalForwarderOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -876,24 +980,25 @@ func (c *DirectoryService) DeleteConditionalForwarderRequest(input *DeleteCondit // API operation DeleteConditionalForwarder for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * DirectoryUnavailableException +// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" // The specified directory is unavailable or could not be found. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The operation is not supported. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteConditionalForwarder func (c *DirectoryService) DeleteConditionalForwarder(input *DeleteConditionalForwarderInput) (*DeleteConditionalForwarderOutput, error) { req, out := c.DeleteConditionalForwarderRequest(input) err := req.Send() @@ -926,6 +1031,7 @@ const opDeleteDirectory = "DeleteDirectory" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteDirectory func (c *DirectoryService) DeleteDirectoryRequest(input *DeleteDirectoryInput) (req *request.Request, output *DeleteDirectoryOutput) { op := &request.Operation{ Name: opDeleteDirectory, @@ -937,9 +1043,8 @@ func (c *DirectoryService) DeleteDirectoryRequest(input *DeleteDirectoryInput) ( input = &DeleteDirectoryInput{} } - req = c.newRequest(op, input, output) output = &DeleteDirectoryOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -947,6 +1052,11 @@ func (c *DirectoryService) DeleteDirectoryRequest(input *DeleteDirectoryInput) ( // // Deletes an AWS Directory Service directory. // +// Before you call DeleteDirectory, ensure that all of the required permissions +// have been explicitly granted through a policy. For details about what permissions +// are required to run the DeleteDirectory operation, see AWS Directory Service +// API Permissions: Actions, Resources, and Conditions Reference (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -955,15 +1065,16 @@ func (c *DirectoryService) DeleteDirectoryRequest(input *DeleteDirectoryInput) ( // API operation DeleteDirectory for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteDirectory func (c *DirectoryService) DeleteDirectory(input *DeleteDirectoryInput) (*DeleteDirectoryOutput, error) { req, out := c.DeleteDirectoryRequest(input) err := req.Send() @@ -996,6 +1107,7 @@ const opDeleteSnapshot = "DeleteSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteSnapshot func (c *DirectoryService) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *request.Request, output *DeleteSnapshotOutput) { op := &request.Operation{ Name: opDeleteSnapshot, @@ -1007,9 +1119,8 @@ func (c *DirectoryService) DeleteSnapshotRequest(input *DeleteSnapshotInput) (re input = &DeleteSnapshotInput{} } - req = c.newRequest(op, input, output) output = &DeleteSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1025,18 +1136,19 @@ func (c *DirectoryService) DeleteSnapshotRequest(input *DeleteSnapshotInput) (re // API operation DeleteSnapshot for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteSnapshot func (c *DirectoryService) DeleteSnapshot(input *DeleteSnapshotInput) (*DeleteSnapshotOutput, error) { req, out := c.DeleteSnapshotRequest(input) err := req.Send() @@ -1069,6 +1181,7 @@ const opDeleteTrust = "DeleteTrust" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteTrust func (c *DirectoryService) DeleteTrustRequest(input *DeleteTrustInput) (req *request.Request, output *DeleteTrustOutput) { op := &request.Operation{ Name: opDeleteTrust, @@ -1080,9 +1193,8 @@ func (c *DirectoryService) DeleteTrustRequest(input *DeleteTrustInput) (req *req input = &DeleteTrustInput{} } - req = c.newRequest(op, input, output) output = &DeleteTrustOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1099,21 +1211,22 @@ func (c *DirectoryService) DeleteTrustRequest(input *DeleteTrustInput) (req *req // API operation DeleteTrust for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The operation is not supported. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteTrust func (c *DirectoryService) DeleteTrust(input *DeleteTrustInput) (*DeleteTrustOutput, error) { req, out := c.DeleteTrustRequest(input) err := req.Send() @@ -1146,6 +1259,7 @@ const opDeregisterEventTopic = "DeregisterEventTopic" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeregisterEventTopic func (c *DirectoryService) DeregisterEventTopicRequest(input *DeregisterEventTopicInput) (req *request.Request, output *DeregisterEventTopicOutput) { op := &request.Operation{ Name: opDeregisterEventTopic, @@ -1157,9 +1271,8 @@ func (c *DirectoryService) DeregisterEventTopicRequest(input *DeregisterEventTop input = &DeregisterEventTopicInput{} } - req = c.newRequest(op, input, output) output = &DeregisterEventTopicOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1175,18 +1288,19 @@ func (c *DirectoryService) DeregisterEventTopicRequest(input *DeregisterEventTop // API operation DeregisterEventTopic for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeregisterEventTopic func (c *DirectoryService) DeregisterEventTopic(input *DeregisterEventTopicInput) (*DeregisterEventTopicOutput, error) { req, out := c.DeregisterEventTopicRequest(input) err := req.Send() @@ -1219,6 +1333,7 @@ const opDescribeConditionalForwarders = "DescribeConditionalForwarders" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeConditionalForwarders func (c *DirectoryService) DescribeConditionalForwardersRequest(input *DescribeConditionalForwardersInput) (req *request.Request, output *DescribeConditionalForwardersOutput) { op := &request.Operation{ Name: opDescribeConditionalForwarders, @@ -1230,9 +1345,8 @@ func (c *DirectoryService) DescribeConditionalForwardersRequest(input *DescribeC input = &DescribeConditionalForwardersInput{} } - req = c.newRequest(op, input, output) output = &DescribeConditionalForwardersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1240,8 +1354,8 @@ func (c *DirectoryService) DescribeConditionalForwardersRequest(input *DescribeC // // Obtains information about the conditional forwarders for this account. // -// If no input parameters are provided for RemoteDomainNames, this request -// describes all conditional forwarders for the specified directory ID. +// If no input parameters are provided for RemoteDomainNames, this request describes +// all conditional forwarders for the specified directory ID. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1251,24 +1365,25 @@ func (c *DirectoryService) DescribeConditionalForwardersRequest(input *DescribeC // API operation DescribeConditionalForwarders for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * DirectoryUnavailableException +// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" // The specified directory is unavailable or could not be found. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The operation is not supported. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeConditionalForwarders func (c *DirectoryService) DescribeConditionalForwarders(input *DescribeConditionalForwardersInput) (*DescribeConditionalForwardersOutput, error) { req, out := c.DescribeConditionalForwardersRequest(input) err := req.Send() @@ -1301,6 +1416,7 @@ const opDescribeDirectories = "DescribeDirectories" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeDirectories func (c *DirectoryService) DescribeDirectoriesRequest(input *DescribeDirectoriesInput) (req *request.Request, output *DescribeDirectoriesOutput) { op := &request.Operation{ Name: opDescribeDirectories, @@ -1312,9 +1428,8 @@ func (c *DirectoryService) DescribeDirectoriesRequest(input *DescribeDirectories input = &DescribeDirectoriesInput{} } - req = c.newRequest(op, input, output) output = &DescribeDirectoriesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1341,21 +1456,22 @@ func (c *DirectoryService) DescribeDirectoriesRequest(input *DescribeDirectories // API operation DescribeDirectories for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * InvalidNextTokenException +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" // The NextToken value is not valid. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeDirectories func (c *DirectoryService) DescribeDirectories(input *DescribeDirectoriesInput) (*DescribeDirectoriesOutput, error) { req, out := c.DescribeDirectoriesRequest(input) err := req.Send() @@ -1388,6 +1504,7 @@ const opDescribeEventTopics = "DescribeEventTopics" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeEventTopics func (c *DirectoryService) DescribeEventTopicsRequest(input *DescribeEventTopicsInput) (req *request.Request, output *DescribeEventTopicsOutput) { op := &request.Operation{ Name: opDescribeEventTopics, @@ -1399,9 +1516,8 @@ func (c *DirectoryService) DescribeEventTopicsRequest(input *DescribeEventTopics input = &DescribeEventTopicsInput{} } - req = c.newRequest(op, input, output) output = &DescribeEventTopicsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1421,18 +1537,19 @@ func (c *DirectoryService) DescribeEventTopicsRequest(input *DescribeEventTopics // API operation DescribeEventTopics for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeEventTopics func (c *DirectoryService) DescribeEventTopics(input *DescribeEventTopicsInput) (*DescribeEventTopicsOutput, error) { req, out := c.DescribeEventTopicsRequest(input) err := req.Send() @@ -1465,6 +1582,7 @@ const opDescribeSnapshots = "DescribeSnapshots" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeSnapshots func (c *DirectoryService) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *request.Request, output *DescribeSnapshotsOutput) { op := &request.Operation{ Name: opDescribeSnapshots, @@ -1476,9 +1594,8 @@ func (c *DirectoryService) DescribeSnapshotsRequest(input *DescribeSnapshotsInpu input = &DescribeSnapshotsInput{} } - req = c.newRequest(op, input, output) output = &DescribeSnapshotsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1501,21 +1618,22 @@ func (c *DirectoryService) DescribeSnapshotsRequest(input *DescribeSnapshotsInpu // API operation DescribeSnapshots for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * InvalidNextTokenException +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" // The NextToken value is not valid. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeSnapshots func (c *DirectoryService) DescribeSnapshots(input *DescribeSnapshotsInput) (*DescribeSnapshotsOutput, error) { req, out := c.DescribeSnapshotsRequest(input) err := req.Send() @@ -1548,6 +1666,7 @@ const opDescribeTrusts = "DescribeTrusts" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeTrusts func (c *DirectoryService) DescribeTrustsRequest(input *DescribeTrustsInput) (req *request.Request, output *DescribeTrustsOutput) { op := &request.Operation{ Name: opDescribeTrusts, @@ -1559,9 +1678,8 @@ func (c *DirectoryService) DescribeTrustsRequest(input *DescribeTrustsInput) (re input = &DescribeTrustsInput{} } - req = c.newRequest(op, input, output) output = &DescribeTrustsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1580,24 +1698,25 @@ func (c *DirectoryService) DescribeTrustsRequest(input *DescribeTrustsInput) (re // API operation DescribeTrusts for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InvalidNextTokenException +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" // The NextToken value is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The operation is not supported. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeTrusts func (c *DirectoryService) DescribeTrusts(input *DescribeTrustsInput) (*DescribeTrustsOutput, error) { req, out := c.DescribeTrustsRequest(input) err := req.Send() @@ -1630,6 +1749,7 @@ const opDisableRadius = "DisableRadius" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DisableRadius func (c *DirectoryService) DisableRadiusRequest(input *DisableRadiusInput) (req *request.Request, output *DisableRadiusOutput) { op := &request.Operation{ Name: opDisableRadius, @@ -1641,9 +1761,8 @@ func (c *DirectoryService) DisableRadiusRequest(input *DisableRadiusInput) (req input = &DisableRadiusInput{} } - req = c.newRequest(op, input, output) output = &DisableRadiusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1660,15 +1779,16 @@ func (c *DirectoryService) DisableRadiusRequest(input *DisableRadiusInput) (req // API operation DisableRadius for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DisableRadius func (c *DirectoryService) DisableRadius(input *DisableRadiusInput) (*DisableRadiusOutput, error) { req, out := c.DisableRadiusRequest(input) err := req.Send() @@ -1701,6 +1821,7 @@ const opDisableSso = "DisableSso" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DisableSso func (c *DirectoryService) DisableSsoRequest(input *DisableSsoInput) (req *request.Request, output *DisableSsoOutput) { op := &request.Operation{ Name: opDisableSso, @@ -1712,9 +1833,8 @@ func (c *DirectoryService) DisableSsoRequest(input *DisableSsoInput) (req *reque input = &DisableSsoInput{} } - req = c.newRequest(op, input, output) output = &DisableSsoOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1730,21 +1850,22 @@ func (c *DirectoryService) DisableSsoRequest(input *DisableSsoInput) (req *reque // API operation DisableSso for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InsufficientPermissionsException +// * ErrCodeInsufficientPermissionsException "InsufficientPermissionsException" // The account does not have sufficient permission to perform the operation. // -// * AuthenticationFailedException +// * ErrCodeAuthenticationFailedException "AuthenticationFailedException" // An authentication error occurred. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DisableSso func (c *DirectoryService) DisableSso(input *DisableSsoInput) (*DisableSsoOutput, error) { req, out := c.DisableSsoRequest(input) err := req.Send() @@ -1777,6 +1898,7 @@ const opEnableRadius = "EnableRadius" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/EnableRadius func (c *DirectoryService) EnableRadiusRequest(input *EnableRadiusInput) (req *request.Request, output *EnableRadiusOutput) { op := &request.Operation{ Name: opEnableRadius, @@ -1788,9 +1910,8 @@ func (c *DirectoryService) EnableRadiusRequest(input *EnableRadiusInput) (req *r input = &EnableRadiusInput{} } - req = c.newRequest(op, input, output) output = &EnableRadiusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1807,21 +1928,22 @@ func (c *DirectoryService) EnableRadiusRequest(input *EnableRadiusInput) (req *r // API operation EnableRadius for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * EntityAlreadyExistsException +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" // The specified entity already exists. // -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/EnableRadius func (c *DirectoryService) EnableRadius(input *EnableRadiusInput) (*EnableRadiusOutput, error) { req, out := c.EnableRadiusRequest(input) err := req.Send() @@ -1854,6 +1976,7 @@ const opEnableSso = "EnableSso" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/EnableSso func (c *DirectoryService) EnableSsoRequest(input *EnableSsoInput) (req *request.Request, output *EnableSsoOutput) { op := &request.Operation{ Name: opEnableSso, @@ -1865,15 +1988,14 @@ func (c *DirectoryService) EnableSsoRequest(input *EnableSsoInput) (req *request input = &EnableSsoInput{} } - req = c.newRequest(op, input, output) output = &EnableSsoOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // EnableSso API operation for AWS Directory Service. // -// Enables single-sign on for a directory. +// Enables single sign-on for a directory. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1883,21 +2005,22 @@ func (c *DirectoryService) EnableSsoRequest(input *EnableSsoInput) (req *request // API operation EnableSso for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InsufficientPermissionsException +// * ErrCodeInsufficientPermissionsException "InsufficientPermissionsException" // The account does not have sufficient permission to perform the operation. // -// * AuthenticationFailedException +// * ErrCodeAuthenticationFailedException "AuthenticationFailedException" // An authentication error occurred. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/EnableSso func (c *DirectoryService) EnableSso(input *EnableSsoInput) (*EnableSsoOutput, error) { req, out := c.EnableSsoRequest(input) err := req.Send() @@ -1930,6 +2053,7 @@ const opGetDirectoryLimits = "GetDirectoryLimits" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/GetDirectoryLimits func (c *DirectoryService) GetDirectoryLimitsRequest(input *GetDirectoryLimitsInput) (req *request.Request, output *GetDirectoryLimitsOutput) { op := &request.Operation{ Name: opGetDirectoryLimits, @@ -1941,9 +2065,8 @@ func (c *DirectoryService) GetDirectoryLimitsRequest(input *GetDirectoryLimitsIn input = &GetDirectoryLimitsInput{} } - req = c.newRequest(op, input, output) output = &GetDirectoryLimitsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1959,15 +2082,16 @@ func (c *DirectoryService) GetDirectoryLimitsRequest(input *GetDirectoryLimitsIn // API operation GetDirectoryLimits for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/GetDirectoryLimits func (c *DirectoryService) GetDirectoryLimits(input *GetDirectoryLimitsInput) (*GetDirectoryLimitsOutput, error) { req, out := c.GetDirectoryLimitsRequest(input) err := req.Send() @@ -2000,6 +2124,7 @@ const opGetSnapshotLimits = "GetSnapshotLimits" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/GetSnapshotLimits func (c *DirectoryService) GetSnapshotLimitsRequest(input *GetSnapshotLimitsInput) (req *request.Request, output *GetSnapshotLimitsOutput) { op := &request.Operation{ Name: opGetSnapshotLimits, @@ -2011,9 +2136,8 @@ func (c *DirectoryService) GetSnapshotLimitsRequest(input *GetSnapshotLimitsInpu input = &GetSnapshotLimitsInput{} } - req = c.newRequest(op, input, output) output = &GetSnapshotLimitsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2029,15 +2153,16 @@ func (c *DirectoryService) GetSnapshotLimitsRequest(input *GetSnapshotLimitsInpu // API operation GetSnapshotLimits for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/GetSnapshotLimits func (c *DirectoryService) GetSnapshotLimits(input *GetSnapshotLimitsInput) (*GetSnapshotLimitsOutput, error) { req, out := c.GetSnapshotLimitsRequest(input) err := req.Send() @@ -2070,6 +2195,7 @@ const opListIpRoutes = "ListIpRoutes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListIpRoutes func (c *DirectoryService) ListIpRoutesRequest(input *ListIpRoutesInput) (req *request.Request, output *ListIpRoutesOutput) { op := &request.Operation{ Name: opListIpRoutes, @@ -2081,9 +2207,8 @@ func (c *DirectoryService) ListIpRoutesRequest(input *ListIpRoutesInput) (req *r input = &ListIpRoutesInput{} } - req = c.newRequest(op, input, output) output = &ListIpRoutesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2099,27 +2224,102 @@ func (c *DirectoryService) ListIpRoutesRequest(input *ListIpRoutesInput) (req *r // API operation ListIpRoutes for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InvalidNextTokenException +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" // The NextToken value is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListIpRoutes func (c *DirectoryService) ListIpRoutes(input *ListIpRoutesInput) (*ListIpRoutesOutput, error) { req, out := c.ListIpRoutesRequest(input) err := req.Send() return out, err } +const opListSchemaExtensions = "ListSchemaExtensions" + +// ListSchemaExtensionsRequest generates a "aws/request.Request" representing the +// client's request for the ListSchemaExtensions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListSchemaExtensions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListSchemaExtensions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListSchemaExtensionsRequest method. +// req, resp := client.ListSchemaExtensionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListSchemaExtensions +func (c *DirectoryService) ListSchemaExtensionsRequest(input *ListSchemaExtensionsInput) (req *request.Request, output *ListSchemaExtensionsOutput) { + op := &request.Operation{ + Name: opListSchemaExtensions, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListSchemaExtensionsInput{} + } + + output = &ListSchemaExtensionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListSchemaExtensions API operation for AWS Directory Service. +// +// Lists all schema extensions applied to a Microsoft AD Directory. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation ListSchemaExtensions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The NextToken value is not valid. +// +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// The specified entity could not be found. +// +// * ErrCodeClientException "ClientException" +// A client exception has occurred. +// +// * ErrCodeServiceException "ServiceException" +// An exception has occurred in AWS Directory Service. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListSchemaExtensions +func (c *DirectoryService) ListSchemaExtensions(input *ListSchemaExtensionsInput) (*ListSchemaExtensionsOutput, error) { + req, out := c.ListSchemaExtensionsRequest(input) + err := req.Send() + return out, err +} + const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the @@ -2146,6 +2346,7 @@ const opListTagsForResource = "ListTagsForResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListTagsForResource func (c *DirectoryService) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ Name: opListTagsForResource, @@ -2157,15 +2358,14 @@ func (c *DirectoryService) ListTagsForResourceRequest(input *ListTagsForResource input = &ListTagsForResourceInput{} } - req = c.newRequest(op, input, output) output = &ListTagsForResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // ListTagsForResource API operation for AWS Directory Service. // -// Lists all tags on an Amazon Directory Services directory. +// Lists all tags on a directory. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2175,21 +2375,22 @@ func (c *DirectoryService) ListTagsForResourceRequest(input *ListTagsForResource // API operation ListTagsForResource for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InvalidNextTokenException +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" // The NextToken value is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListTagsForResource func (c *DirectoryService) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -2222,6 +2423,7 @@ const opRegisterEventTopic = "RegisterEventTopic" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RegisterEventTopic func (c *DirectoryService) RegisterEventTopicRequest(input *RegisterEventTopicInput) (req *request.Request, output *RegisterEventTopicOutput) { op := &request.Operation{ Name: opRegisterEventTopic, @@ -2233,9 +2435,8 @@ func (c *DirectoryService) RegisterEventTopicRequest(input *RegisterEventTopicIn input = &RegisterEventTopicInput{} } - req = c.newRequest(op, input, output) output = &RegisterEventTopicOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2256,18 +2457,19 @@ func (c *DirectoryService) RegisterEventTopicRequest(input *RegisterEventTopicIn // API operation RegisterEventTopic for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RegisterEventTopic func (c *DirectoryService) RegisterEventTopic(input *RegisterEventTopicInput) (*RegisterEventTopicOutput, error) { req, out := c.RegisterEventTopicRequest(input) err := req.Send() @@ -2300,6 +2502,7 @@ const opRemoveIpRoutes = "RemoveIpRoutes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RemoveIpRoutes func (c *DirectoryService) RemoveIpRoutesRequest(input *RemoveIpRoutesInput) (req *request.Request, output *RemoveIpRoutesOutput) { op := &request.Operation{ Name: opRemoveIpRoutes, @@ -2311,9 +2514,8 @@ func (c *DirectoryService) RemoveIpRoutesRequest(input *RemoveIpRoutesInput) (re input = &RemoveIpRoutesInput{} } - req = c.newRequest(op, input, output) output = &RemoveIpRoutesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2329,21 +2531,22 @@ func (c *DirectoryService) RemoveIpRoutesRequest(input *RemoveIpRoutesInput) (re // API operation RemoveIpRoutes for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * DirectoryUnavailableException +// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" // The specified directory is unavailable or could not be found. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RemoveIpRoutes func (c *DirectoryService) RemoveIpRoutes(input *RemoveIpRoutesInput) (*RemoveIpRoutesOutput, error) { req, out := c.RemoveIpRoutesRequest(input) err := req.Send() @@ -2376,6 +2579,7 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RemoveTagsFromResource func (c *DirectoryService) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) { op := &request.Operation{ Name: opRemoveTagsFromResource, @@ -2387,15 +2591,14 @@ func (c *DirectoryService) RemoveTagsFromResourceRequest(input *RemoveTagsFromRe input = &RemoveTagsFromResourceInput{} } - req = c.newRequest(op, input, output) output = &RemoveTagsFromResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // RemoveTagsFromResource API operation for AWS Directory Service. // -// Removes tags from an Amazon Directory Services directory. +// Removes tags from a directory. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2405,18 +2608,19 @@ func (c *DirectoryService) RemoveTagsFromResourceRequest(input *RemoveTagsFromRe // API operation RemoveTagsFromResource for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RemoveTagsFromResource func (c *DirectoryService) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { req, out := c.RemoveTagsFromResourceRequest(input) err := req.Send() @@ -2449,6 +2653,7 @@ const opRestoreFromSnapshot = "RestoreFromSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RestoreFromSnapshot func (c *DirectoryService) RestoreFromSnapshotRequest(input *RestoreFromSnapshotInput) (req *request.Request, output *RestoreFromSnapshotOutput) { op := &request.Operation{ Name: opRestoreFromSnapshot, @@ -2460,9 +2665,8 @@ func (c *DirectoryService) RestoreFromSnapshotRequest(input *RestoreFromSnapshot input = &RestoreFromSnapshotInput{} } - req = c.newRequest(op, input, output) output = &RestoreFromSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2486,24 +2690,107 @@ func (c *DirectoryService) RestoreFromSnapshotRequest(input *RestoreFromSnapshot // API operation RestoreFromSnapshot for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RestoreFromSnapshot func (c *DirectoryService) RestoreFromSnapshot(input *RestoreFromSnapshotInput) (*RestoreFromSnapshotOutput, error) { req, out := c.RestoreFromSnapshotRequest(input) err := req.Send() return out, err } +const opStartSchemaExtension = "StartSchemaExtension" + +// StartSchemaExtensionRequest generates a "aws/request.Request" representing the +// client's request for the StartSchemaExtension operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See StartSchemaExtension for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the StartSchemaExtension method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the StartSchemaExtensionRequest method. +// req, resp := client.StartSchemaExtensionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/StartSchemaExtension +func (c *DirectoryService) StartSchemaExtensionRequest(input *StartSchemaExtensionInput) (req *request.Request, output *StartSchemaExtensionOutput) { + op := &request.Operation{ + Name: opStartSchemaExtension, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartSchemaExtensionInput{} + } + + output = &StartSchemaExtensionOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartSchemaExtension API operation for AWS Directory Service. +// +// Applies a schema extension to a Microsoft AD directory. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation StartSchemaExtension for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// The specified directory is unavailable or could not be found. +// +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// The specified entity could not be found. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters are not valid. +// +// * ErrCodeSnapshotLimitExceededException "SnapshotLimitExceededException" +// The maximum number of manual snapshots for the directory has been reached. +// You can use the GetSnapshotLimits operation to determine the snapshot limits +// for a directory. +// +// * ErrCodeClientException "ClientException" +// A client exception has occurred. +// +// * ErrCodeServiceException "ServiceException" +// An exception has occurred in AWS Directory Service. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/StartSchemaExtension +func (c *DirectoryService) StartSchemaExtension(input *StartSchemaExtensionInput) (*StartSchemaExtensionOutput, error) { + req, out := c.StartSchemaExtensionRequest(input) + err := req.Send() + return out, err +} + const opUpdateConditionalForwarder = "UpdateConditionalForwarder" // UpdateConditionalForwarderRequest generates a "aws/request.Request" representing the @@ -2530,6 +2817,7 @@ const opUpdateConditionalForwarder = "UpdateConditionalForwarder" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateConditionalForwarder func (c *DirectoryService) UpdateConditionalForwarderRequest(input *UpdateConditionalForwarderInput) (req *request.Request, output *UpdateConditionalForwarderOutput) { op := &request.Operation{ Name: opUpdateConditionalForwarder, @@ -2541,9 +2829,8 @@ func (c *DirectoryService) UpdateConditionalForwarderRequest(input *UpdateCondit input = &UpdateConditionalForwarderInput{} } - req = c.newRequest(op, input, output) output = &UpdateConditionalForwarderOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2559,24 +2846,25 @@ func (c *DirectoryService) UpdateConditionalForwarderRequest(input *UpdateCondit // API operation UpdateConditionalForwarder for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * DirectoryUnavailableException +// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" // The specified directory is unavailable or could not be found. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The operation is not supported. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateConditionalForwarder func (c *DirectoryService) UpdateConditionalForwarder(input *UpdateConditionalForwarderInput) (*UpdateConditionalForwarderOutput, error) { req, out := c.UpdateConditionalForwarderRequest(input) err := req.Send() @@ -2609,6 +2897,7 @@ const opUpdateRadius = "UpdateRadius" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateRadius func (c *DirectoryService) UpdateRadiusRequest(input *UpdateRadiusInput) (req *request.Request, output *UpdateRadiusOutput) { op := &request.Operation{ Name: opUpdateRadius, @@ -2620,9 +2909,8 @@ func (c *DirectoryService) UpdateRadiusRequest(input *UpdateRadiusInput) (req *r input = &UpdateRadiusInput{} } - req = c.newRequest(op, input, output) output = &UpdateRadiusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2639,18 +2927,19 @@ func (c *DirectoryService) UpdateRadiusRequest(input *UpdateRadiusInput) (req *r // API operation UpdateRadius for usage and error information. // // Returned Error Codes: -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateRadius func (c *DirectoryService) UpdateRadius(input *UpdateRadiusInput) (*UpdateRadiusOutput, error) { req, out := c.UpdateRadiusRequest(input) err := req.Send() @@ -2683,6 +2972,7 @@ const opVerifyTrust = "VerifyTrust" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/VerifyTrust func (c *DirectoryService) VerifyTrustRequest(input *VerifyTrustInput) (req *request.Request, output *VerifyTrustOutput) { op := &request.Operation{ Name: opVerifyTrust, @@ -2694,9 +2984,8 @@ func (c *DirectoryService) VerifyTrustRequest(input *VerifyTrustInput) (req *req input = &VerifyTrustInput{} } - req = c.newRequest(op, input, output) output = &VerifyTrustOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2716,27 +3005,29 @@ func (c *DirectoryService) VerifyTrustRequest(input *VerifyTrustInput) (req *req // API operation VerifyTrust for usage and error information. // // Returned Error Codes: -// * EntityDoesNotExistException +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * ClientException +// * ErrCodeClientException "ClientException" // A client exception has occurred. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The operation is not supported. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/VerifyTrust func (c *DirectoryService) VerifyTrust(input *VerifyTrustInput) (*VerifyTrustOutput, error) { req, out := c.VerifyTrustRequest(input) err := req.Send() return out, err } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/AddIpRoutesRequest type AddIpRoutesInput struct { _ struct{} `type:"structure"` @@ -2757,46 +3048,43 @@ type AddIpRoutesInput struct { // // Inbound: // - // Type: Custom UDP Rule, Protocol: UDP, Range: 88, Source: 0.0.0.0/0 - // - // Type: Custom UDP Rule, Protocol: UDP, Range: 123, Source: 0.0.0.0/0 + // * Type: Custom UDP Rule, Protocol: UDP, Range: 88, Source: 0.0.0.0/0 // - // Type: Custom UDP Rule, Protocol: UDP, Range: 138, Source: 0.0.0.0/0 + // * Type: Custom UDP Rule, Protocol: UDP, Range: 123, Source: 0.0.0.0/0 // - // Type: Custom UDP Rule, Protocol: UDP, Range: 389, Source: 0.0.0.0/0 + // * Type: Custom UDP Rule, Protocol: UDP, Range: 138, Source: 0.0.0.0/0 // - // Type: Custom UDP Rule, Protocol: UDP, Range: 464, Source: 0.0.0.0/0 + // * Type: Custom UDP Rule, Protocol: UDP, Range: 389, Source: 0.0.0.0/0 // - // Type: Custom UDP Rule, Protocol: UDP, Range: 445, Source: 0.0.0.0/0 + // * Type: Custom UDP Rule, Protocol: UDP, Range: 464, Source: 0.0.0.0/0 // - // Type: Custom TCP Rule, Protocol: TCP, Range: 88, Source: 0.0.0.0/0 + // * Type: Custom UDP Rule, Protocol: UDP, Range: 445, Source: 0.0.0.0/0 // - // Type: Custom TCP Rule, Protocol: TCP, Range: 135, Source: 0.0.0.0/0 + // * Type: Custom TCP Rule, Protocol: TCP, Range: 88, Source: 0.0.0.0/0 // - // Type: Custom TCP Rule, Protocol: TCP, Range: 445, Source: 0.0.0.0/0 + // * Type: Custom TCP Rule, Protocol: TCP, Range: 135, Source: 0.0.0.0/0 // - // Type: Custom TCP Rule, Protocol: TCP, Range: 464, Source: 0.0.0.0/0 + // * Type: Custom TCP Rule, Protocol: TCP, Range: 445, Source: 0.0.0.0/0 // - // Type: Custom TCP Rule, Protocol: TCP, Range: 636, Source: 0.0.0.0/0 + // * Type: Custom TCP Rule, Protocol: TCP, Range: 464, Source: 0.0.0.0/0 // - // Type: Custom TCP Rule, Protocol: TCP, Range: 1024-65535, Source: 0.0.0.0/0 + // * Type: Custom TCP Rule, Protocol: TCP, Range: 636, Source: 0.0.0.0/0 // - // Type: Custom TCP Rule, Protocol: TCP, Range: 3268-33269, Source: 0.0.0.0/0 + // * Type: Custom TCP Rule, Protocol: TCP, Range: 1024-65535, Source: 0.0.0.0/0 // - // Type: DNS (UDP), Protocol: UDP, Range: 53, Source: 0.0.0.0/0 + // * Type: Custom TCP Rule, Protocol: TCP, Range: 3268-33269, Source: 0.0.0.0/0 // - // Type: DNS (TCP), Protocol: TCP, Range: 53, Source: 0.0.0.0/0 + // * Type: DNS (UDP), Protocol: UDP, Range: 53, Source: 0.0.0.0/0 // - // Type: LDAP, Protocol: TCP, Range: 389, Source: 0.0.0.0/0 + // * Type: DNS (TCP), Protocol: TCP, Range: 53, Source: 0.0.0.0/0 // - // Type: All ICMP, Protocol: All, Range: N/A, Source: 0.0.0.0/0 + // * Type: LDAP, Protocol: TCP, Range: 389, Source: 0.0.0.0/0 // - // Outbound: + // * Type: All ICMP, Protocol: All, Range: N/A, Source: 0.0.0.0/0 // - // Type: All traffic, Protocol: All, Range: All, Destination: 0.0.0.0/0 + // Outbound: // - // These security rules impact an internal network interface that is not - // exposed publicly. + // Type: All traffic, Protocol: All, Range: All, Destination: 0.0.0.0/0 UpdateSecurityGroupForDirectoryControllers *bool `type:"boolean"` } @@ -2826,6 +3114,25 @@ func (s *AddIpRoutesInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *AddIpRoutesInput) SetDirectoryId(v string) *AddIpRoutesInput { + s.DirectoryId = &v + return s +} + +// SetIpRoutes sets the IpRoutes field's value. +func (s *AddIpRoutesInput) SetIpRoutes(v []*IpRoute) *AddIpRoutesInput { + s.IpRoutes = v + return s +} + +// SetUpdateSecurityGroupForDirectoryControllers sets the UpdateSecurityGroupForDirectoryControllers field's value. +func (s *AddIpRoutesInput) SetUpdateSecurityGroupForDirectoryControllers(v bool) *AddIpRoutesInput { + s.UpdateSecurityGroupForDirectoryControllers = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/AddIpRoutesResult type AddIpRoutesOutput struct { _ struct{} `type:"structure"` } @@ -2840,6 +3147,7 @@ func (s AddIpRoutesOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/AddTagsToResourceRequest type AddTagsToResourceInput struct { _ struct{} `type:"structure"` @@ -2848,7 +3156,7 @@ type AddTagsToResourceInput struct { // ResourceId is a required field ResourceId *string `type:"string" required:"true"` - // The tags to be assigned to the Amazon Directory Services directory. + // The tags to be assigned to the directory. // // Tags is a required field Tags []*Tag `type:"list" required:"true"` @@ -2890,6 +3198,19 @@ func (s *AddTagsToResourceInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *AddTagsToResourceInput) SetResourceId(v string) *AddTagsToResourceInput { + s.ResourceId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsToResourceInput) SetTags(v []*Tag) *AddTagsToResourceInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/AddTagsToResourceResult type AddTagsToResourceOutput struct { _ struct{} `type:"structure"` } @@ -2905,6 +3226,7 @@ func (s AddTagsToResourceOutput) GoString() string { } // Represents a named directory attribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/Attribute type Attribute struct { _ struct{} `type:"structure"` @@ -2938,16 +3260,97 @@ func (s *Attribute) Validate() error { return nil } -// Contains information about a computer account in a directory. -type Computer struct { - _ struct{} `type:"structure"` +// SetName sets the Name field's value. +func (s *Attribute) SetName(v string) *Attribute { + s.Name = &v + return s +} - // An array of Attribute objects containing the LDAP attributes that belong - // to the computer account. - ComputerAttributes []*Attribute `type:"list"` +// SetValue sets the Value field's value. +func (s *Attribute) SetValue(v string) *Attribute { + s.Value = &v + return s +} - // The identifier of the computer. - ComputerId *string `min:"1" type:"string"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CancelSchemaExtensionRequest +type CancelSchemaExtensionInput struct { + _ struct{} `type:"structure"` + + // The identifier of the directory whose schema extension will be canceled. + // + // DirectoryId is a required field + DirectoryId *string `type:"string" required:"true"` + + // The identifier of the schema extension that will be canceled. + // + // SchemaExtensionId is a required field + SchemaExtensionId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CancelSchemaExtensionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelSchemaExtensionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelSchemaExtensionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelSchemaExtensionInput"} + if s.DirectoryId == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryId")) + } + if s.SchemaExtensionId == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaExtensionId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *CancelSchemaExtensionInput) SetDirectoryId(v string) *CancelSchemaExtensionInput { + s.DirectoryId = &v + return s +} + +// SetSchemaExtensionId sets the SchemaExtensionId field's value. +func (s *CancelSchemaExtensionInput) SetSchemaExtensionId(v string) *CancelSchemaExtensionInput { + s.SchemaExtensionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CancelSchemaExtensionResult +type CancelSchemaExtensionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CancelSchemaExtensionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelSchemaExtensionOutput) GoString() string { + return s.String() +} + +// Contains information about a computer account in a directory. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/Computer +type Computer struct { + _ struct{} `type:"structure"` + + // An array of Attribute objects containing the LDAP attributes that belong + // to the computer account. + ComputerAttributes []*Attribute `type:"list"` + + // The identifier of the computer. + ComputerId *string `min:"1" type:"string"` // The computer name. ComputerName *string `min:"1" type:"string"` @@ -2963,9 +3366,28 @@ func (s Computer) GoString() string { return s.String() } +// SetComputerAttributes sets the ComputerAttributes field's value. +func (s *Computer) SetComputerAttributes(v []*Attribute) *Computer { + s.ComputerAttributes = v + return s +} + +// SetComputerId sets the ComputerId field's value. +func (s *Computer) SetComputerId(v string) *Computer { + s.ComputerId = &v + return s +} + +// SetComputerName sets the ComputerName field's value. +func (s *Computer) SetComputerName(v string) *Computer { + s.ComputerName = &v + return s +} + // Points to a remote domain with which you are setting up a trust relationship. // Conditional forwarders are required in order to set up a trust relationship // with another domain. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ConditionalForwarder type ConditionalForwarder struct { _ struct{} `type:"structure"` @@ -2994,7 +3416,26 @@ func (s ConditionalForwarder) GoString() string { return s.String() } +// SetDnsIpAddrs sets the DnsIpAddrs field's value. +func (s *ConditionalForwarder) SetDnsIpAddrs(v []*string) *ConditionalForwarder { + s.DnsIpAddrs = v + return s +} + +// SetRemoteDomainName sets the RemoteDomainName field's value. +func (s *ConditionalForwarder) SetRemoteDomainName(v string) *ConditionalForwarder { + s.RemoteDomainName = &v + return s +} + +// SetReplicationScope sets the ReplicationScope field's value. +func (s *ConditionalForwarder) SetReplicationScope(v string) *ConditionalForwarder { + s.ReplicationScope = &v + return s +} + // Contains the inputs for the ConnectDirectory operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ConnectDirectoryRequest type ConnectDirectoryInput struct { _ struct{} `type:"structure"` @@ -3066,7 +3507,44 @@ func (s *ConnectDirectoryInput) Validate() error { return nil } +// SetConnectSettings sets the ConnectSettings field's value. +func (s *ConnectDirectoryInput) SetConnectSettings(v *DirectoryConnectSettings) *ConnectDirectoryInput { + s.ConnectSettings = v + return s +} + +// SetDescription sets the Description field's value. +func (s *ConnectDirectoryInput) SetDescription(v string) *ConnectDirectoryInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *ConnectDirectoryInput) SetName(v string) *ConnectDirectoryInput { + s.Name = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *ConnectDirectoryInput) SetPassword(v string) *ConnectDirectoryInput { + s.Password = &v + return s +} + +// SetShortName sets the ShortName field's value. +func (s *ConnectDirectoryInput) SetShortName(v string) *ConnectDirectoryInput { + s.ShortName = &v + return s +} + +// SetSize sets the Size field's value. +func (s *ConnectDirectoryInput) SetSize(v string) *ConnectDirectoryInput { + s.Size = &v + return s +} + // Contains the results of the ConnectDirectory operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ConnectDirectoryResult type ConnectDirectoryOutput struct { _ struct{} `type:"structure"` @@ -3084,7 +3562,14 @@ func (s ConnectDirectoryOutput) GoString() string { return s.String() } +// SetDirectoryId sets the DirectoryId field's value. +func (s *ConnectDirectoryOutput) SetDirectoryId(v string) *ConnectDirectoryOutput { + s.DirectoryId = &v + return s +} + // Contains the inputs for the CreateAlias operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateAliasRequest type CreateAliasInput struct { _ struct{} `type:"structure"` @@ -3131,7 +3616,20 @@ func (s *CreateAliasInput) Validate() error { return nil } +// SetAlias sets the Alias field's value. +func (s *CreateAliasInput) SetAlias(v string) *CreateAliasInput { + s.Alias = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *CreateAliasInput) SetDirectoryId(v string) *CreateAliasInput { + s.DirectoryId = &v + return s +} + // Contains the results of the CreateAlias operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateAliasResult type CreateAliasOutput struct { _ struct{} `type:"structure"` @@ -3152,7 +3650,20 @@ func (s CreateAliasOutput) GoString() string { return s.String() } +// SetAlias sets the Alias field's value. +func (s *CreateAliasOutput) SetAlias(v string) *CreateAliasOutput { + s.Alias = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *CreateAliasOutput) SetDirectoryId(v string) *CreateAliasOutput { + s.DirectoryId = &v + return s +} + // Contains the inputs for the CreateComputer operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateComputerRequest type CreateComputerInput struct { _ struct{} `type:"structure"` @@ -3229,7 +3740,38 @@ func (s *CreateComputerInput) Validate() error { return nil } +// SetComputerAttributes sets the ComputerAttributes field's value. +func (s *CreateComputerInput) SetComputerAttributes(v []*Attribute) *CreateComputerInput { + s.ComputerAttributes = v + return s +} + +// SetComputerName sets the ComputerName field's value. +func (s *CreateComputerInput) SetComputerName(v string) *CreateComputerInput { + s.ComputerName = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *CreateComputerInput) SetDirectoryId(v string) *CreateComputerInput { + s.DirectoryId = &v + return s +} + +// SetOrganizationalUnitDistinguishedName sets the OrganizationalUnitDistinguishedName field's value. +func (s *CreateComputerInput) SetOrganizationalUnitDistinguishedName(v string) *CreateComputerInput { + s.OrganizationalUnitDistinguishedName = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *CreateComputerInput) SetPassword(v string) *CreateComputerInput { + s.Password = &v + return s +} + // Contains the results for the CreateComputer operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateComputerResult type CreateComputerOutput struct { _ struct{} `type:"structure"` @@ -3247,9 +3789,16 @@ func (s CreateComputerOutput) GoString() string { return s.String() } +// SetComputer sets the Computer field's value. +func (s *CreateComputerOutput) SetComputer(v *Computer) *CreateComputerOutput { + s.Computer = v + return s +} + // Initiates the creation of a conditional forwarder for your AWS Directory // Service for Microsoft Active Directory. Conditional forwarders are required // in order to set up a trust relationship with another domain. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateConditionalForwarderRequest type CreateConditionalForwarderInput struct { _ struct{} `type:"structure"` @@ -3300,7 +3849,26 @@ func (s *CreateConditionalForwarderInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *CreateConditionalForwarderInput) SetDirectoryId(v string) *CreateConditionalForwarderInput { + s.DirectoryId = &v + return s +} + +// SetDnsIpAddrs sets the DnsIpAddrs field's value. +func (s *CreateConditionalForwarderInput) SetDnsIpAddrs(v []*string) *CreateConditionalForwarderInput { + s.DnsIpAddrs = v + return s +} + +// SetRemoteDomainName sets the RemoteDomainName field's value. +func (s *CreateConditionalForwarderInput) SetRemoteDomainName(v string) *CreateConditionalForwarderInput { + s.RemoteDomainName = &v + return s +} + // The result of a CreateConditinalForwarder request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateConditionalForwarderResult type CreateConditionalForwarderOutput struct { _ struct{} `type:"structure"` } @@ -3316,6 +3884,7 @@ func (s CreateConditionalForwarderOutput) GoString() string { } // Contains the inputs for the CreateDirectory operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateDirectoryRequest type CreateDirectoryInput struct { _ struct{} `type:"structure"` @@ -3381,7 +3950,44 @@ func (s *CreateDirectoryInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateDirectoryInput) SetDescription(v string) *CreateDirectoryInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateDirectoryInput) SetName(v string) *CreateDirectoryInput { + s.Name = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *CreateDirectoryInput) SetPassword(v string) *CreateDirectoryInput { + s.Password = &v + return s +} + +// SetShortName sets the ShortName field's value. +func (s *CreateDirectoryInput) SetShortName(v string) *CreateDirectoryInput { + s.ShortName = &v + return s +} + +// SetSize sets the Size field's value. +func (s *CreateDirectoryInput) SetSize(v string) *CreateDirectoryInput { + s.Size = &v + return s +} + +// SetVpcSettings sets the VpcSettings field's value. +func (s *CreateDirectoryInput) SetVpcSettings(v *DirectoryVpcSettings) *CreateDirectoryInput { + s.VpcSettings = v + return s +} + // Contains the results of the CreateDirectory operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateDirectoryResult type CreateDirectoryOutput struct { _ struct{} `type:"structure"` @@ -3399,7 +4005,14 @@ func (s CreateDirectoryOutput) GoString() string { return s.String() } +// SetDirectoryId sets the DirectoryId field's value. +func (s *CreateDirectoryOutput) SetDirectoryId(v string) *CreateDirectoryOutput { + s.DirectoryId = &v + return s +} + // Creates a Microsoft AD in the AWS cloud. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateMicrosoftADRequest type CreateMicrosoftADInput struct { _ struct{} `type:"structure"` @@ -3464,7 +4077,38 @@ func (s *CreateMicrosoftADInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateMicrosoftADInput) SetDescription(v string) *CreateMicrosoftADInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateMicrosoftADInput) SetName(v string) *CreateMicrosoftADInput { + s.Name = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *CreateMicrosoftADInput) SetPassword(v string) *CreateMicrosoftADInput { + s.Password = &v + return s +} + +// SetShortName sets the ShortName field's value. +func (s *CreateMicrosoftADInput) SetShortName(v string) *CreateMicrosoftADInput { + s.ShortName = &v + return s +} + +// SetVpcSettings sets the VpcSettings field's value. +func (s *CreateMicrosoftADInput) SetVpcSettings(v *DirectoryVpcSettings) *CreateMicrosoftADInput { + s.VpcSettings = v + return s +} + // Result of a CreateMicrosoftAD request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateMicrosoftADResult type CreateMicrosoftADOutput struct { _ struct{} `type:"structure"` @@ -3482,7 +4126,14 @@ func (s CreateMicrosoftADOutput) GoString() string { return s.String() } +// SetDirectoryId sets the DirectoryId field's value. +func (s *CreateMicrosoftADOutput) SetDirectoryId(v string) *CreateMicrosoftADOutput { + s.DirectoryId = &v + return s +} + // Contains the inputs for the CreateSnapshot operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateSnapshotRequest type CreateSnapshotInput struct { _ struct{} `type:"structure"` @@ -3518,7 +4169,20 @@ func (s *CreateSnapshotInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *CreateSnapshotInput) SetDirectoryId(v string) *CreateSnapshotInput { + s.DirectoryId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateSnapshotInput) SetName(v string) *CreateSnapshotInput { + s.Name = &v + return s +} + // Contains the results of the CreateSnapshot operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateSnapshotResult type CreateSnapshotOutput struct { _ struct{} `type:"structure"` @@ -3536,6 +4200,12 @@ func (s CreateSnapshotOutput) GoString() string { return s.String() } +// SetSnapshotId sets the SnapshotId field's value. +func (s *CreateSnapshotOutput) SetSnapshotId(v string) *CreateSnapshotOutput { + s.SnapshotId = &v + return s +} + // AWS Directory Service for Microsoft Active Directory allows you to configure // trust relationships. For example, you can establish a trust between your // Microsoft AD in the AWS cloud, and your existing on-premises Microsoft Active @@ -3544,6 +4214,7 @@ func (s CreateSnapshotOutput) GoString() string { // // This action initiates the creation of the AWS side of a trust relationship // between a Microsoft AD in the AWS cloud and an external domain. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateTrustRequest type CreateTrustInput struct { _ struct{} `type:"structure"` @@ -3612,7 +4283,44 @@ func (s *CreateTrustInput) Validate() error { return nil } +// SetConditionalForwarderIpAddrs sets the ConditionalForwarderIpAddrs field's value. +func (s *CreateTrustInput) SetConditionalForwarderIpAddrs(v []*string) *CreateTrustInput { + s.ConditionalForwarderIpAddrs = v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *CreateTrustInput) SetDirectoryId(v string) *CreateTrustInput { + s.DirectoryId = &v + return s +} + +// SetRemoteDomainName sets the RemoteDomainName field's value. +func (s *CreateTrustInput) SetRemoteDomainName(v string) *CreateTrustInput { + s.RemoteDomainName = &v + return s +} + +// SetTrustDirection sets the TrustDirection field's value. +func (s *CreateTrustInput) SetTrustDirection(v string) *CreateTrustInput { + s.TrustDirection = &v + return s +} + +// SetTrustPassword sets the TrustPassword field's value. +func (s *CreateTrustInput) SetTrustPassword(v string) *CreateTrustInput { + s.TrustPassword = &v + return s +} + +// SetTrustType sets the TrustType field's value. +func (s *CreateTrustInput) SetTrustType(v string) *CreateTrustInput { + s.TrustType = &v + return s +} + // The result of a CreateTrust request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateTrustResult type CreateTrustOutput struct { _ struct{} `type:"structure"` @@ -3630,7 +4338,14 @@ func (s CreateTrustOutput) GoString() string { return s.String() } +// SetTrustId sets the TrustId field's value. +func (s *CreateTrustOutput) SetTrustId(v string) *CreateTrustOutput { + s.TrustId = &v + return s +} + // Deletes a conditional forwarder. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteConditionalForwarderRequest type DeleteConditionalForwarderInput struct { _ struct{} `type:"structure"` @@ -3672,7 +4387,20 @@ func (s *DeleteConditionalForwarderInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *DeleteConditionalForwarderInput) SetDirectoryId(v string) *DeleteConditionalForwarderInput { + s.DirectoryId = &v + return s +} + +// SetRemoteDomainName sets the RemoteDomainName field's value. +func (s *DeleteConditionalForwarderInput) SetRemoteDomainName(v string) *DeleteConditionalForwarderInput { + s.RemoteDomainName = &v + return s +} + // The result of a DeleteConditionalForwarder request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteConditionalForwarderResult type DeleteConditionalForwarderOutput struct { _ struct{} `type:"structure"` } @@ -3688,6 +4416,7 @@ func (s DeleteConditionalForwarderOutput) GoString() string { } // Contains the inputs for the DeleteDirectory operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteDirectoryRequest type DeleteDirectoryInput struct { _ struct{} `type:"structure"` @@ -3720,7 +4449,14 @@ func (s *DeleteDirectoryInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *DeleteDirectoryInput) SetDirectoryId(v string) *DeleteDirectoryInput { + s.DirectoryId = &v + return s +} + // Contains the results of the DeleteDirectory operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteDirectoryResult type DeleteDirectoryOutput struct { _ struct{} `type:"structure"` @@ -3738,7 +4474,14 @@ func (s DeleteDirectoryOutput) GoString() string { return s.String() } +// SetDirectoryId sets the DirectoryId field's value. +func (s *DeleteDirectoryOutput) SetDirectoryId(v string) *DeleteDirectoryOutput { + s.DirectoryId = &v + return s +} + // Contains the inputs for the DeleteSnapshot operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteSnapshotRequest type DeleteSnapshotInput struct { _ struct{} `type:"structure"` @@ -3771,7 +4514,14 @@ func (s *DeleteSnapshotInput) Validate() error { return nil } +// SetSnapshotId sets the SnapshotId field's value. +func (s *DeleteSnapshotInput) SetSnapshotId(v string) *DeleteSnapshotInput { + s.SnapshotId = &v + return s +} + // Contains the results of the DeleteSnapshot operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteSnapshotResult type DeleteSnapshotOutput struct { _ struct{} `type:"structure"` @@ -3789,8 +4539,15 @@ func (s DeleteSnapshotOutput) GoString() string { return s.String() } +// SetSnapshotId sets the SnapshotId field's value. +func (s *DeleteSnapshotOutput) SetSnapshotId(v string) *DeleteSnapshotOutput { + s.SnapshotId = &v + return s +} + // Deletes the local side of an existing trust relationship between the Microsoft // AD in the AWS cloud and the external domain. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteTrustRequest type DeleteTrustInput struct { _ struct{} `type:"structure"` @@ -3826,7 +4583,20 @@ func (s *DeleteTrustInput) Validate() error { return nil } +// SetDeleteAssociatedConditionalForwarder sets the DeleteAssociatedConditionalForwarder field's value. +func (s *DeleteTrustInput) SetDeleteAssociatedConditionalForwarder(v bool) *DeleteTrustInput { + s.DeleteAssociatedConditionalForwarder = &v + return s +} + +// SetTrustId sets the TrustId field's value. +func (s *DeleteTrustInput) SetTrustId(v string) *DeleteTrustInput { + s.TrustId = &v + return s +} + // The result of a DeleteTrust request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteTrustResult type DeleteTrustOutput struct { _ struct{} `type:"structure"` @@ -3844,7 +4614,14 @@ func (s DeleteTrustOutput) GoString() string { return s.String() } +// SetTrustId sets the TrustId field's value. +func (s *DeleteTrustOutput) SetTrustId(v string) *DeleteTrustOutput { + s.TrustId = &v + return s +} + // Removes the specified directory as a publisher to the specified SNS topic. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeregisterEventTopicRequest type DeregisterEventTopicInput struct { _ struct{} `type:"structure"` @@ -3889,7 +4666,20 @@ func (s *DeregisterEventTopicInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *DeregisterEventTopicInput) SetDirectoryId(v string) *DeregisterEventTopicInput { + s.DirectoryId = &v + return s +} + +// SetTopicName sets the TopicName field's value. +func (s *DeregisterEventTopicInput) SetTopicName(v string) *DeregisterEventTopicInput { + s.TopicName = &v + return s +} + // The result of a DeregisterEventTopic request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeregisterEventTopicResult type DeregisterEventTopicOutput struct { _ struct{} `type:"structure"` } @@ -3905,6 +4695,7 @@ func (s DeregisterEventTopicOutput) GoString() string { } // Describes a conditional forwarder. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeConditionalForwardersRequest type DescribeConditionalForwardersInput struct { _ struct{} `type:"structure"` @@ -3942,7 +4733,20 @@ func (s *DescribeConditionalForwardersInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *DescribeConditionalForwardersInput) SetDirectoryId(v string) *DescribeConditionalForwardersInput { + s.DirectoryId = &v + return s +} + +// SetRemoteDomainNames sets the RemoteDomainNames field's value. +func (s *DescribeConditionalForwardersInput) SetRemoteDomainNames(v []*string) *DescribeConditionalForwardersInput { + s.RemoteDomainNames = v + return s +} + // The result of a DescribeConditionalForwarder request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeConditionalForwardersResult type DescribeConditionalForwardersOutput struct { _ struct{} `type:"structure"` @@ -3960,7 +4764,14 @@ func (s DescribeConditionalForwardersOutput) GoString() string { return s.String() } +// SetConditionalForwarders sets the ConditionalForwarders field's value. +func (s *DescribeConditionalForwardersOutput) SetConditionalForwarders(v []*ConditionalForwarder) *DescribeConditionalForwardersOutput { + s.ConditionalForwarders = v + return s +} + // Contains the inputs for the DescribeDirectories operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeDirectoriesRequest type DescribeDirectoriesInput struct { _ struct{} `type:"structure"` @@ -3990,7 +4801,26 @@ func (s DescribeDirectoriesInput) GoString() string { return s.String() } +// SetDirectoryIds sets the DirectoryIds field's value. +func (s *DescribeDirectoriesInput) SetDirectoryIds(v []*string) *DescribeDirectoriesInput { + s.DirectoryIds = v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeDirectoriesInput) SetLimit(v int64) *DescribeDirectoriesInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeDirectoriesInput) SetNextToken(v string) *DescribeDirectoriesInput { + s.NextToken = &v + return s +} + // Contains the results of the DescribeDirectories operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeDirectoriesResult type DescribeDirectoriesOutput struct { _ struct{} `type:"structure"` @@ -4018,7 +4848,20 @@ func (s DescribeDirectoriesOutput) GoString() string { return s.String() } +// SetDirectoryDescriptions sets the DirectoryDescriptions field's value. +func (s *DescribeDirectoriesOutput) SetDirectoryDescriptions(v []*DirectoryDescription) *DescribeDirectoriesOutput { + s.DirectoryDescriptions = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeDirectoriesOutput) SetNextToken(v string) *DescribeDirectoriesOutput { + s.NextToken = &v + return s +} + // Describes event topics. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeEventTopicsRequest type DescribeEventTopicsInput struct { _ struct{} `type:"structure"` @@ -4043,7 +4886,20 @@ func (s DescribeEventTopicsInput) GoString() string { return s.String() } +// SetDirectoryId sets the DirectoryId field's value. +func (s *DescribeEventTopicsInput) SetDirectoryId(v string) *DescribeEventTopicsInput { + s.DirectoryId = &v + return s +} + +// SetTopicNames sets the TopicNames field's value. +func (s *DescribeEventTopicsInput) SetTopicNames(v []*string) *DescribeEventTopicsInput { + s.TopicNames = v + return s +} + // The result of a DescribeEventTopic request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeEventTopicsResult type DescribeEventTopicsOutput struct { _ struct{} `type:"structure"` @@ -4062,7 +4918,14 @@ func (s DescribeEventTopicsOutput) GoString() string { return s.String() } +// SetEventTopics sets the EventTopics field's value. +func (s *DescribeEventTopicsOutput) SetEventTopics(v []*EventTopic) *DescribeEventTopicsOutput { + s.EventTopics = v + return s +} + // Contains the inputs for the DescribeSnapshots operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeSnapshotsRequest type DescribeSnapshotsInput struct { _ struct{} `type:"structure"` @@ -4092,7 +4955,32 @@ func (s DescribeSnapshotsInput) GoString() string { return s.String() } +// SetDirectoryId sets the DirectoryId field's value. +func (s *DescribeSnapshotsInput) SetDirectoryId(v string) *DescribeSnapshotsInput { + s.DirectoryId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeSnapshotsInput) SetLimit(v int64) *DescribeSnapshotsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSnapshotsInput) SetNextToken(v string) *DescribeSnapshotsInput { + s.NextToken = &v + return s +} + +// SetSnapshotIds sets the SnapshotIds field's value. +func (s *DescribeSnapshotsInput) SetSnapshotIds(v []*string) *DescribeSnapshotsInput { + s.SnapshotIds = v + return s +} + // Contains the results of the DescribeSnapshots operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeSnapshotsResult type DescribeSnapshotsOutput struct { _ struct{} `type:"structure"` @@ -4119,9 +5007,22 @@ func (s DescribeSnapshotsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeSnapshotsOutput) SetNextToken(v string) *DescribeSnapshotsOutput { + s.NextToken = &v + return s +} + +// SetSnapshots sets the Snapshots field's value. +func (s *DescribeSnapshotsOutput) SetSnapshots(v []*Snapshot) *DescribeSnapshotsOutput { + s.Snapshots = v + return s +} + // Describes the trust relationships for a particular Microsoft AD in the AWS // cloud. If no input parameters are are provided, such as directory ID or trust // ID, this request describes all the trust relationships. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeTrustsRequest type DescribeTrustsInput struct { _ struct{} `type:"structure"` @@ -4154,7 +5055,32 @@ func (s DescribeTrustsInput) GoString() string { return s.String() } +// SetDirectoryId sets the DirectoryId field's value. +func (s *DescribeTrustsInput) SetDirectoryId(v string) *DescribeTrustsInput { + s.DirectoryId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeTrustsInput) SetLimit(v int64) *DescribeTrustsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeTrustsInput) SetNextToken(v string) *DescribeTrustsInput { + s.NextToken = &v + return s +} + +// SetTrustIds sets the TrustIds field's value. +func (s *DescribeTrustsInput) SetTrustIds(v []*string) *DescribeTrustsInput { + s.TrustIds = v + return s +} + // The result of a DescribeTrust request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeTrustsResult type DescribeTrustsOutput struct { _ struct{} `type:"structure"` @@ -4182,8 +5108,21 @@ func (s DescribeTrustsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeTrustsOutput) SetNextToken(v string) *DescribeTrustsOutput { + s.NextToken = &v + return s +} + +// SetTrusts sets the Trusts field's value. +func (s *DescribeTrustsOutput) SetTrusts(v []*Trust) *DescribeTrustsOutput { + s.Trusts = v + return s +} + // Contains information for the ConnectDirectory operation when an AD Connector // directory is being created. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DirectoryConnectSettings type DirectoryConnectSettings struct { _ struct{} `type:"structure"` @@ -4196,11 +5135,11 @@ type DirectoryConnectSettings struct { // The username of an account in the on-premises directory that is used to connect // to the directory. This account must have the following privileges: // - // Read users and groups + // * Read users and groups // - // Create computer objects + // * Create computer objects // - // Join computers to the domain + // * Join computers to the domain // // CustomerUserName is a required field CustomerUserName *string `min:"1" type:"string" required:"true"` @@ -4251,7 +5190,32 @@ func (s *DirectoryConnectSettings) Validate() error { return nil } +// SetCustomerDnsIps sets the CustomerDnsIps field's value. +func (s *DirectoryConnectSettings) SetCustomerDnsIps(v []*string) *DirectoryConnectSettings { + s.CustomerDnsIps = v + return s +} + +// SetCustomerUserName sets the CustomerUserName field's value. +func (s *DirectoryConnectSettings) SetCustomerUserName(v string) *DirectoryConnectSettings { + s.CustomerUserName = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *DirectoryConnectSettings) SetSubnetIds(v []*string) *DirectoryConnectSettings { + s.SubnetIds = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DirectoryConnectSettings) SetVpcId(v string) *DirectoryConnectSettings { + s.VpcId = &v + return s +} + // Contains information about an AD Connector directory. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DirectoryConnectSettingsDescription type DirectoryConnectSettingsDescription struct { _ struct{} `type:"structure"` @@ -4284,7 +5248,44 @@ func (s DirectoryConnectSettingsDescription) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *DirectoryConnectSettingsDescription) SetAvailabilityZones(v []*string) *DirectoryConnectSettingsDescription { + s.AvailabilityZones = v + return s +} + +// SetConnectIps sets the ConnectIps field's value. +func (s *DirectoryConnectSettingsDescription) SetConnectIps(v []*string) *DirectoryConnectSettingsDescription { + s.ConnectIps = v + return s +} + +// SetCustomerUserName sets the CustomerUserName field's value. +func (s *DirectoryConnectSettingsDescription) SetCustomerUserName(v string) *DirectoryConnectSettingsDescription { + s.CustomerUserName = &v + return s +} + +// SetSecurityGroupId sets the SecurityGroupId field's value. +func (s *DirectoryConnectSettingsDescription) SetSecurityGroupId(v string) *DirectoryConnectSettingsDescription { + s.SecurityGroupId = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *DirectoryConnectSettingsDescription) SetSubnetIds(v []*string) *DirectoryConnectSettingsDescription { + s.SubnetIds = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DirectoryConnectSettingsDescription) SetVpcId(v string) *DirectoryConnectSettingsDescription { + s.VpcId = &v + return s +} + // Contains information about an AWS Directory Service directory. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DirectoryDescription type DirectoryDescription struct { _ struct{} `type:"structure"` @@ -4366,21 +5367,130 @@ func (s DirectoryDescription) GoString() string { return s.String() } -// Contains directory limit information for a region. -type DirectoryLimits struct { - _ struct{} `type:"structure"` +// SetAccessUrl sets the AccessUrl field's value. +func (s *DirectoryDescription) SetAccessUrl(v string) *DirectoryDescription { + s.AccessUrl = &v + return s +} - // The current number of cloud directories in the region. - CloudOnlyDirectoriesCurrentCount *int64 `type:"integer"` +// SetAlias sets the Alias field's value. +func (s *DirectoryDescription) SetAlias(v string) *DirectoryDescription { + s.Alias = &v + return s +} - // The maximum number of cloud directories allowed in the region. - CloudOnlyDirectoriesLimit *int64 `type:"integer"` +// SetConnectSettings sets the ConnectSettings field's value. +func (s *DirectoryDescription) SetConnectSettings(v *DirectoryConnectSettingsDescription) *DirectoryDescription { + s.ConnectSettings = v + return s +} - // Indicates if the cloud directory limit has been reached. - CloudOnlyDirectoriesLimitReached *bool `type:"boolean"` +// SetDescription sets the Description field's value. +func (s *DirectoryDescription) SetDescription(v string) *DirectoryDescription { + s.Description = &v + return s +} - // The current number of Microsoft AD directories in the region. - CloudOnlyMicrosoftADCurrentCount *int64 `type:"integer"` +// SetDirectoryId sets the DirectoryId field's value. +func (s *DirectoryDescription) SetDirectoryId(v string) *DirectoryDescription { + s.DirectoryId = &v + return s +} + +// SetDnsIpAddrs sets the DnsIpAddrs field's value. +func (s *DirectoryDescription) SetDnsIpAddrs(v []*string) *DirectoryDescription { + s.DnsIpAddrs = v + return s +} + +// SetLaunchTime sets the LaunchTime field's value. +func (s *DirectoryDescription) SetLaunchTime(v time.Time) *DirectoryDescription { + s.LaunchTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *DirectoryDescription) SetName(v string) *DirectoryDescription { + s.Name = &v + return s +} + +// SetRadiusSettings sets the RadiusSettings field's value. +func (s *DirectoryDescription) SetRadiusSettings(v *RadiusSettings) *DirectoryDescription { + s.RadiusSettings = v + return s +} + +// SetRadiusStatus sets the RadiusStatus field's value. +func (s *DirectoryDescription) SetRadiusStatus(v string) *DirectoryDescription { + s.RadiusStatus = &v + return s +} + +// SetShortName sets the ShortName field's value. +func (s *DirectoryDescription) SetShortName(v string) *DirectoryDescription { + s.ShortName = &v + return s +} + +// SetSize sets the Size field's value. +func (s *DirectoryDescription) SetSize(v string) *DirectoryDescription { + s.Size = &v + return s +} + +// SetSsoEnabled sets the SsoEnabled field's value. +func (s *DirectoryDescription) SetSsoEnabled(v bool) *DirectoryDescription { + s.SsoEnabled = &v + return s +} + +// SetStage sets the Stage field's value. +func (s *DirectoryDescription) SetStage(v string) *DirectoryDescription { + s.Stage = &v + return s +} + +// SetStageLastUpdatedDateTime sets the StageLastUpdatedDateTime field's value. +func (s *DirectoryDescription) SetStageLastUpdatedDateTime(v time.Time) *DirectoryDescription { + s.StageLastUpdatedDateTime = &v + return s +} + +// SetStageReason sets the StageReason field's value. +func (s *DirectoryDescription) SetStageReason(v string) *DirectoryDescription { + s.StageReason = &v + return s +} + +// SetType sets the Type field's value. +func (s *DirectoryDescription) SetType(v string) *DirectoryDescription { + s.Type = &v + return s +} + +// SetVpcSettings sets the VpcSettings field's value. +func (s *DirectoryDescription) SetVpcSettings(v *DirectoryVpcSettingsDescription) *DirectoryDescription { + s.VpcSettings = v + return s +} + +// Contains directory limit information for a region. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DirectoryLimits +type DirectoryLimits struct { + _ struct{} `type:"structure"` + + // The current number of cloud directories in the region. + CloudOnlyDirectoriesCurrentCount *int64 `type:"integer"` + + // The maximum number of cloud directories allowed in the region. + CloudOnlyDirectoriesLimit *int64 `type:"integer"` + + // Indicates if the cloud directory limit has been reached. + CloudOnlyDirectoriesLimitReached *bool `type:"boolean"` + + // The current number of Microsoft AD directories in the region. + CloudOnlyMicrosoftADCurrentCount *int64 `type:"integer"` // The maximum number of Microsoft AD directories allowed in the region. CloudOnlyMicrosoftADLimit *int64 `type:"integer"` @@ -4408,7 +5518,62 @@ func (s DirectoryLimits) GoString() string { return s.String() } +// SetCloudOnlyDirectoriesCurrentCount sets the CloudOnlyDirectoriesCurrentCount field's value. +func (s *DirectoryLimits) SetCloudOnlyDirectoriesCurrentCount(v int64) *DirectoryLimits { + s.CloudOnlyDirectoriesCurrentCount = &v + return s +} + +// SetCloudOnlyDirectoriesLimit sets the CloudOnlyDirectoriesLimit field's value. +func (s *DirectoryLimits) SetCloudOnlyDirectoriesLimit(v int64) *DirectoryLimits { + s.CloudOnlyDirectoriesLimit = &v + return s +} + +// SetCloudOnlyDirectoriesLimitReached sets the CloudOnlyDirectoriesLimitReached field's value. +func (s *DirectoryLimits) SetCloudOnlyDirectoriesLimitReached(v bool) *DirectoryLimits { + s.CloudOnlyDirectoriesLimitReached = &v + return s +} + +// SetCloudOnlyMicrosoftADCurrentCount sets the CloudOnlyMicrosoftADCurrentCount field's value. +func (s *DirectoryLimits) SetCloudOnlyMicrosoftADCurrentCount(v int64) *DirectoryLimits { + s.CloudOnlyMicrosoftADCurrentCount = &v + return s +} + +// SetCloudOnlyMicrosoftADLimit sets the CloudOnlyMicrosoftADLimit field's value. +func (s *DirectoryLimits) SetCloudOnlyMicrosoftADLimit(v int64) *DirectoryLimits { + s.CloudOnlyMicrosoftADLimit = &v + return s +} + +// SetCloudOnlyMicrosoftADLimitReached sets the CloudOnlyMicrosoftADLimitReached field's value. +func (s *DirectoryLimits) SetCloudOnlyMicrosoftADLimitReached(v bool) *DirectoryLimits { + s.CloudOnlyMicrosoftADLimitReached = &v + return s +} + +// SetConnectedDirectoriesCurrentCount sets the ConnectedDirectoriesCurrentCount field's value. +func (s *DirectoryLimits) SetConnectedDirectoriesCurrentCount(v int64) *DirectoryLimits { + s.ConnectedDirectoriesCurrentCount = &v + return s +} + +// SetConnectedDirectoriesLimit sets the ConnectedDirectoriesLimit field's value. +func (s *DirectoryLimits) SetConnectedDirectoriesLimit(v int64) *DirectoryLimits { + s.ConnectedDirectoriesLimit = &v + return s +} + +// SetConnectedDirectoriesLimitReached sets the ConnectedDirectoriesLimitReached field's value. +func (s *DirectoryLimits) SetConnectedDirectoriesLimitReached(v bool) *DirectoryLimits { + s.ConnectedDirectoriesLimitReached = &v + return s +} + // Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DirectoryVpcSettings type DirectoryVpcSettings struct { _ struct{} `type:"structure"` @@ -4451,7 +5616,20 @@ func (s *DirectoryVpcSettings) Validate() error { return nil } +// SetSubnetIds sets the SubnetIds field's value. +func (s *DirectoryVpcSettings) SetSubnetIds(v []*string) *DirectoryVpcSettings { + s.SubnetIds = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DirectoryVpcSettings) SetVpcId(v string) *DirectoryVpcSettings { + s.VpcId = &v + return s +} + // Contains information about the directory. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DirectoryVpcSettingsDescription type DirectoryVpcSettingsDescription struct { _ struct{} `type:"structure"` @@ -4481,7 +5659,32 @@ func (s DirectoryVpcSettingsDescription) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *DirectoryVpcSettingsDescription) SetAvailabilityZones(v []*string) *DirectoryVpcSettingsDescription { + s.AvailabilityZones = v + return s +} + +// SetSecurityGroupId sets the SecurityGroupId field's value. +func (s *DirectoryVpcSettingsDescription) SetSecurityGroupId(v string) *DirectoryVpcSettingsDescription { + s.SecurityGroupId = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *DirectoryVpcSettingsDescription) SetSubnetIds(v []*string) *DirectoryVpcSettingsDescription { + s.SubnetIds = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DirectoryVpcSettingsDescription) SetVpcId(v string) *DirectoryVpcSettingsDescription { + s.VpcId = &v + return s +} + // Contains the inputs for the DisableRadius operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DisableRadiusRequest type DisableRadiusInput struct { _ struct{} `type:"structure"` @@ -4514,7 +5717,14 @@ func (s *DisableRadiusInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *DisableRadiusInput) SetDirectoryId(v string) *DisableRadiusInput { + s.DirectoryId = &v + return s +} + // Contains the results of the DisableRadius operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DisableRadiusResult type DisableRadiusOutput struct { _ struct{} `type:"structure"` } @@ -4530,6 +5740,7 @@ func (s DisableRadiusOutput) GoString() string { } // Contains the inputs for the DisableSso operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DisableSsoRequest type DisableSsoInput struct { _ struct{} `type:"structure"` @@ -4584,7 +5795,26 @@ func (s *DisableSsoInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *DisableSsoInput) SetDirectoryId(v string) *DisableSsoInput { + s.DirectoryId = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *DisableSsoInput) SetPassword(v string) *DisableSsoInput { + s.Password = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DisableSsoInput) SetUserName(v string) *DisableSsoInput { + s.UserName = &v + return s +} + // Contains the results of the DisableSso operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DisableSsoResult type DisableSsoOutput struct { _ struct{} `type:"structure"` } @@ -4600,6 +5830,7 @@ func (s DisableSsoOutput) GoString() string { } // Contains the inputs for the EnableRadius operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/EnableRadiusRequest type EnableRadiusInput struct { _ struct{} `type:"structure"` @@ -4645,7 +5876,20 @@ func (s *EnableRadiusInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *EnableRadiusInput) SetDirectoryId(v string) *EnableRadiusInput { + s.DirectoryId = &v + return s +} + +// SetRadiusSettings sets the RadiusSettings field's value. +func (s *EnableRadiusInput) SetRadiusSettings(v *RadiusSettings) *EnableRadiusInput { + s.RadiusSettings = v + return s +} + // Contains the results of the EnableRadius operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/EnableRadiusResult type EnableRadiusOutput struct { _ struct{} `type:"structure"` } @@ -4661,6 +5905,7 @@ func (s EnableRadiusOutput) GoString() string { } // Contains the inputs for the EnableSso operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/EnableSsoRequest type EnableSsoInput struct { _ struct{} `type:"structure"` @@ -4715,7 +5960,26 @@ func (s *EnableSsoInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *EnableSsoInput) SetDirectoryId(v string) *EnableSsoInput { + s.DirectoryId = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *EnableSsoInput) SetPassword(v string) *EnableSsoInput { + s.Password = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *EnableSsoInput) SetUserName(v string) *EnableSsoInput { + s.UserName = &v + return s +} + // Contains the results of the EnableSso operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/EnableSsoResult type EnableSsoOutput struct { _ struct{} `type:"structure"` } @@ -4731,6 +5995,7 @@ func (s EnableSsoOutput) GoString() string { } // Information about SNS topic and AWS Directory Service directory associations. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/EventTopic type EventTopic struct { _ struct{} `type:"structure"` @@ -4761,7 +6026,38 @@ func (s EventTopic) GoString() string { return s.String() } +// SetCreatedDateTime sets the CreatedDateTime field's value. +func (s *EventTopic) SetCreatedDateTime(v time.Time) *EventTopic { + s.CreatedDateTime = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *EventTopic) SetDirectoryId(v string) *EventTopic { + s.DirectoryId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EventTopic) SetStatus(v string) *EventTopic { + s.Status = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *EventTopic) SetTopicArn(v string) *EventTopic { + s.TopicArn = &v + return s +} + +// SetTopicName sets the TopicName field's value. +func (s *EventTopic) SetTopicName(v string) *EventTopic { + s.TopicName = &v + return s +} + // Contains the inputs for the GetDirectoryLimits operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/GetDirectoryLimitsRequest type GetDirectoryLimitsInput struct { _ struct{} `type:"structure"` } @@ -4777,6 +6073,7 @@ func (s GetDirectoryLimitsInput) GoString() string { } // Contains the results of the GetDirectoryLimits operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/GetDirectoryLimitsResult type GetDirectoryLimitsOutput struct { _ struct{} `type:"structure"` @@ -4795,7 +6092,14 @@ func (s GetDirectoryLimitsOutput) GoString() string { return s.String() } +// SetDirectoryLimits sets the DirectoryLimits field's value. +func (s *GetDirectoryLimitsOutput) SetDirectoryLimits(v *DirectoryLimits) *GetDirectoryLimitsOutput { + s.DirectoryLimits = v + return s +} + // Contains the inputs for the GetSnapshotLimits operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/GetSnapshotLimitsRequest type GetSnapshotLimitsInput struct { _ struct{} `type:"structure"` @@ -4828,7 +6132,14 @@ func (s *GetSnapshotLimitsInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *GetSnapshotLimitsInput) SetDirectoryId(v string) *GetSnapshotLimitsInput { + s.DirectoryId = &v + return s +} + // Contains the results of the GetSnapshotLimits operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/GetSnapshotLimitsResult type GetSnapshotLimitsOutput struct { _ struct{} `type:"structure"` @@ -4847,8 +6158,15 @@ func (s GetSnapshotLimitsOutput) GoString() string { return s.String() } +// SetSnapshotLimits sets the SnapshotLimits field's value. +func (s *GetSnapshotLimitsOutput) SetSnapshotLimits(v *SnapshotLimits) *GetSnapshotLimitsOutput { + s.SnapshotLimits = v + return s +} + // IP address block. This is often the address block of the DNS server used // for your on-premises domain. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/IpRoute type IpRoute struct { _ struct{} `type:"structure"` @@ -4871,7 +6189,20 @@ func (s IpRoute) GoString() string { return s.String() } +// SetCidrIp sets the CidrIp field's value. +func (s *IpRoute) SetCidrIp(v string) *IpRoute { + s.CidrIp = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *IpRoute) SetDescription(v string) *IpRoute { + s.Description = &v + return s +} + // Information about one or more IP address blocks. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/IpRouteInfo type IpRouteInfo struct { _ struct{} `type:"structure"` @@ -4904,6 +6235,43 @@ func (s IpRouteInfo) GoString() string { return s.String() } +// SetAddedDateTime sets the AddedDateTime field's value. +func (s *IpRouteInfo) SetAddedDateTime(v time.Time) *IpRouteInfo { + s.AddedDateTime = &v + return s +} + +// SetCidrIp sets the CidrIp field's value. +func (s *IpRouteInfo) SetCidrIp(v string) *IpRouteInfo { + s.CidrIp = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *IpRouteInfo) SetDescription(v string) *IpRouteInfo { + s.Description = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *IpRouteInfo) SetDirectoryId(v string) *IpRouteInfo { + s.DirectoryId = &v + return s +} + +// SetIpRouteStatusMsg sets the IpRouteStatusMsg field's value. +func (s *IpRouteInfo) SetIpRouteStatusMsg(v string) *IpRouteInfo { + s.IpRouteStatusMsg = &v + return s +} + +// SetIpRouteStatusReason sets the IpRouteStatusReason field's value. +func (s *IpRouteInfo) SetIpRouteStatusReason(v string) *IpRouteInfo { + s.IpRouteStatusReason = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListIpRoutesRequest type ListIpRoutesInput struct { _ struct{} `type:"structure"` @@ -4944,6 +6312,25 @@ func (s *ListIpRoutesInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *ListIpRoutesInput) SetDirectoryId(v string) *ListIpRoutesInput { + s.DirectoryId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListIpRoutesInput) SetLimit(v int64) *ListIpRoutesInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListIpRoutesInput) SetNextToken(v string) *ListIpRoutesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListIpRoutesResult type ListIpRoutesOutput struct { _ struct{} `type:"structure"` @@ -4966,6 +6353,113 @@ func (s ListIpRoutesOutput) GoString() string { return s.String() } +// SetIpRoutesInfo sets the IpRoutesInfo field's value. +func (s *ListIpRoutesOutput) SetIpRoutesInfo(v []*IpRouteInfo) *ListIpRoutesOutput { + s.IpRoutesInfo = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListIpRoutesOutput) SetNextToken(v string) *ListIpRoutesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListSchemaExtensionsRequest +type ListSchemaExtensionsInput struct { + _ struct{} `type:"structure"` + + // The identifier of the directory from which to retrieve the schema extension + // information. + // + // DirectoryId is a required field + DirectoryId *string `type:"string" required:"true"` + + // The maximum number of items to return. + Limit *int64 `type:"integer"` + + // The ListSchemaExtensions.NextToken value from a previous call to ListSchemaExtensions. + // Pass null if this is the first call. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListSchemaExtensionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListSchemaExtensionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListSchemaExtensionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSchemaExtensionsInput"} + if s.DirectoryId == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *ListSchemaExtensionsInput) SetDirectoryId(v string) *ListSchemaExtensionsInput { + s.DirectoryId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListSchemaExtensionsInput) SetLimit(v int64) *ListSchemaExtensionsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSchemaExtensionsInput) SetNextToken(v string) *ListSchemaExtensionsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListSchemaExtensionsResult +type ListSchemaExtensionsOutput struct { + _ struct{} `type:"structure"` + + // If not null, more results are available. Pass this value for the NextToken + // parameter in a subsequent call to ListSchemaExtensions to retrieve the next + // set of items. + NextToken *string `type:"string"` + + // Information about the schema extensions applied to the directory. + SchemaExtensionsInfo []*SchemaExtensionInfo `type:"list"` +} + +// String returns the string representation +func (s ListSchemaExtensionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListSchemaExtensionsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSchemaExtensionsOutput) SetNextToken(v string) *ListSchemaExtensionsOutput { + s.NextToken = &v + return s +} + +// SetSchemaExtensionsInfo sets the SchemaExtensionsInfo field's value. +func (s *ListSchemaExtensionsOutput) SetSchemaExtensionsInfo(v []*SchemaExtensionInfo) *ListSchemaExtensionsOutput { + s.SchemaExtensionsInfo = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListTagsForResourceRequest type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -5004,6 +6498,25 @@ func (s *ListTagsForResourceInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListTagsForResourceInput) SetLimit(v int64) *ListTagsForResourceInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTagsForResourceInput) SetNextToken(v string) *ListTagsForResourceInput { + s.NextToken = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *ListTagsForResourceInput) SetResourceId(v string) *ListTagsForResourceInput { + s.ResourceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListTagsForResourceResult type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` @@ -5024,8 +6537,21 @@ func (s ListTagsForResourceOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListTagsForResourceOutput) SetNextToken(v string) *ListTagsForResourceOutput { + s.NextToken = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { + s.Tags = v + return s +} + // Contains information about a Remote Authentication Dial In User Service (RADIUS) // server. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RadiusSettings type RadiusSettings struct { _ struct{} `type:"structure"` @@ -5090,7 +6616,56 @@ func (s *RadiusSettings) Validate() error { return nil } +// SetAuthenticationProtocol sets the AuthenticationProtocol field's value. +func (s *RadiusSettings) SetAuthenticationProtocol(v string) *RadiusSettings { + s.AuthenticationProtocol = &v + return s +} + +// SetDisplayLabel sets the DisplayLabel field's value. +func (s *RadiusSettings) SetDisplayLabel(v string) *RadiusSettings { + s.DisplayLabel = &v + return s +} + +// SetRadiusPort sets the RadiusPort field's value. +func (s *RadiusSettings) SetRadiusPort(v int64) *RadiusSettings { + s.RadiusPort = &v + return s +} + +// SetRadiusRetries sets the RadiusRetries field's value. +func (s *RadiusSettings) SetRadiusRetries(v int64) *RadiusSettings { + s.RadiusRetries = &v + return s +} + +// SetRadiusServers sets the RadiusServers field's value. +func (s *RadiusSettings) SetRadiusServers(v []*string) *RadiusSettings { + s.RadiusServers = v + return s +} + +// SetRadiusTimeout sets the RadiusTimeout field's value. +func (s *RadiusSettings) SetRadiusTimeout(v int64) *RadiusSettings { + s.RadiusTimeout = &v + return s +} + +// SetSharedSecret sets the SharedSecret field's value. +func (s *RadiusSettings) SetSharedSecret(v string) *RadiusSettings { + s.SharedSecret = &v + return s +} + +// SetUseSameUsername sets the UseSameUsername field's value. +func (s *RadiusSettings) SetUseSameUsername(v bool) *RadiusSettings { + s.UseSameUsername = &v + return s +} + // Registers a new event topic. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RegisterEventTopicRequest type RegisterEventTopicInput struct { _ struct{} `type:"structure"` @@ -5135,7 +6710,20 @@ func (s *RegisterEventTopicInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *RegisterEventTopicInput) SetDirectoryId(v string) *RegisterEventTopicInput { + s.DirectoryId = &v + return s +} + +// SetTopicName sets the TopicName field's value. +func (s *RegisterEventTopicInput) SetTopicName(v string) *RegisterEventTopicInput { + s.TopicName = &v + return s +} + // The result of a RegisterEventTopic request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RegisterEventTopicResult type RegisterEventTopicOutput struct { _ struct{} `type:"structure"` } @@ -5150,6 +6738,7 @@ func (s RegisterEventTopicOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RemoveIpRoutesRequest type RemoveIpRoutesInput struct { _ struct{} `type:"structure"` @@ -5190,6 +6779,19 @@ func (s *RemoveIpRoutesInput) Validate() error { return nil } +// SetCidrIps sets the CidrIps field's value. +func (s *RemoveIpRoutesInput) SetCidrIps(v []*string) *RemoveIpRoutesInput { + s.CidrIps = v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *RemoveIpRoutesInput) SetDirectoryId(v string) *RemoveIpRoutesInput { + s.DirectoryId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RemoveIpRoutesResult type RemoveIpRoutesOutput struct { _ struct{} `type:"structure"` } @@ -5204,6 +6806,7 @@ func (s RemoveIpRoutesOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RemoveTagsFromResourceRequest type RemoveTagsFromResourceInput struct { _ struct{} `type:"structure"` @@ -5244,6 +6847,19 @@ func (s *RemoveTagsFromResourceInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *RemoveTagsFromResourceInput) SetResourceId(v string) *RemoveTagsFromResourceInput { + s.ResourceId = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsFromResourceInput) SetTagKeys(v []*string) *RemoveTagsFromResourceInput { + s.TagKeys = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RemoveTagsFromResourceResult type RemoveTagsFromResourceOutput struct { _ struct{} `type:"structure"` } @@ -5259,6 +6875,7 @@ func (s RemoveTagsFromResourceOutput) GoString() string { } // An object representing the inputs for the RestoreFromSnapshot operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RestoreFromSnapshotRequest type RestoreFromSnapshotInput struct { _ struct{} `type:"structure"` @@ -5291,7 +6908,14 @@ func (s *RestoreFromSnapshotInput) Validate() error { return nil } +// SetSnapshotId sets the SnapshotId field's value. +func (s *RestoreFromSnapshotInput) SetSnapshotId(v string) *RestoreFromSnapshotInput { + s.SnapshotId = &v + return s +} + // Contains the results of the RestoreFromSnapshot operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RestoreFromSnapshotResult type RestoreFromSnapshotOutput struct { _ struct{} `type:"structure"` } @@ -5306,7 +6930,88 @@ func (s RestoreFromSnapshotOutput) GoString() string { return s.String() } +// Information about a schema extension. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/SchemaExtensionInfo +type SchemaExtensionInfo struct { + _ struct{} `type:"structure"` + + // A description of the schema extension. + Description *string `type:"string"` + + // The identifier of the directory to which the schema extension is applied. + DirectoryId *string `type:"string"` + + // The date and time that the schema extension was completed. + EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The identifier of the schema extension. + SchemaExtensionId *string `type:"string"` + + // The current status of the schema extension. + SchemaExtensionStatus *string `type:"string" enum:"SchemaExtensionStatus"` + + // The reason for the SchemaExtensionStatus. + SchemaExtensionStatusReason *string `type:"string"` + + // The date and time that the schema extension started being applied to the + // directory. + StartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` +} + +// String returns the string representation +func (s SchemaExtensionInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SchemaExtensionInfo) GoString() string { + return s.String() +} + +// SetDescription sets the Description field's value. +func (s *SchemaExtensionInfo) SetDescription(v string) *SchemaExtensionInfo { + s.Description = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *SchemaExtensionInfo) SetDirectoryId(v string) *SchemaExtensionInfo { + s.DirectoryId = &v + return s +} + +// SetEndDateTime sets the EndDateTime field's value. +func (s *SchemaExtensionInfo) SetEndDateTime(v time.Time) *SchemaExtensionInfo { + s.EndDateTime = &v + return s +} + +// SetSchemaExtensionId sets the SchemaExtensionId field's value. +func (s *SchemaExtensionInfo) SetSchemaExtensionId(v string) *SchemaExtensionInfo { + s.SchemaExtensionId = &v + return s +} + +// SetSchemaExtensionStatus sets the SchemaExtensionStatus field's value. +func (s *SchemaExtensionInfo) SetSchemaExtensionStatus(v string) *SchemaExtensionInfo { + s.SchemaExtensionStatus = &v + return s +} + +// SetSchemaExtensionStatusReason sets the SchemaExtensionStatusReason field's value. +func (s *SchemaExtensionInfo) SetSchemaExtensionStatusReason(v string) *SchemaExtensionInfo { + s.SchemaExtensionStatusReason = &v + return s +} + +// SetStartDateTime sets the StartDateTime field's value. +func (s *SchemaExtensionInfo) SetStartDateTime(v time.Time) *SchemaExtensionInfo { + s.StartDateTime = &v + return s +} + // Describes a directory snapshot. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/Snapshot type Snapshot struct { _ struct{} `type:"structure"` @@ -5339,7 +7044,44 @@ func (s Snapshot) GoString() string { return s.String() } +// SetDirectoryId sets the DirectoryId field's value. +func (s *Snapshot) SetDirectoryId(v string) *Snapshot { + s.DirectoryId = &v + return s +} + +// SetName sets the Name field's value. +func (s *Snapshot) SetName(v string) *Snapshot { + s.Name = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *Snapshot) SetSnapshotId(v string) *Snapshot { + s.SnapshotId = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *Snapshot) SetStartTime(v time.Time) *Snapshot { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Snapshot) SetStatus(v string) *Snapshot { + s.Status = &v + return s +} + +// SetType sets the Type field's value. +func (s *Snapshot) SetType(v string) *Snapshot { + s.Type = &v + return s +} + // Contains manual snapshot limit information for a directory. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/SnapshotLimits type SnapshotLimits struct { _ struct{} `type:"structure"` @@ -5363,8 +7105,138 @@ func (s SnapshotLimits) GoString() string { return s.String() } -// Metadata assigned to an Amazon Directory Services directory consisting of -// a key-value pair. +// SetManualSnapshotsCurrentCount sets the ManualSnapshotsCurrentCount field's value. +func (s *SnapshotLimits) SetManualSnapshotsCurrentCount(v int64) *SnapshotLimits { + s.ManualSnapshotsCurrentCount = &v + return s +} + +// SetManualSnapshotsLimit sets the ManualSnapshotsLimit field's value. +func (s *SnapshotLimits) SetManualSnapshotsLimit(v int64) *SnapshotLimits { + s.ManualSnapshotsLimit = &v + return s +} + +// SetManualSnapshotsLimitReached sets the ManualSnapshotsLimitReached field's value. +func (s *SnapshotLimits) SetManualSnapshotsLimitReached(v bool) *SnapshotLimits { + s.ManualSnapshotsLimitReached = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/StartSchemaExtensionRequest +type StartSchemaExtensionInput struct { + _ struct{} `type:"structure"` + + // If true, creates a snapshot of the directory before applying the schema extension. + // + // CreateSnapshotBeforeSchemaExtension is a required field + CreateSnapshotBeforeSchemaExtension *bool `type:"boolean" required:"true"` + + // A description of the schema extension. + // + // Description is a required field + Description *string `type:"string" required:"true"` + + // The identifier of the directory for which the schema extension will be applied + // to. + // + // DirectoryId is a required field + DirectoryId *string `type:"string" required:"true"` + + // The LDIF file represented as a string. To construct the LdifContent string, + // precede each line as it would be formatted in an ldif file with \n. See the + // example request below for more details. The file size can be no larger than + // 1MB. + // + // LdifContent is a required field + LdifContent *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s StartSchemaExtensionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartSchemaExtensionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartSchemaExtensionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartSchemaExtensionInput"} + if s.CreateSnapshotBeforeSchemaExtension == nil { + invalidParams.Add(request.NewErrParamRequired("CreateSnapshotBeforeSchemaExtension")) + } + if s.Description == nil { + invalidParams.Add(request.NewErrParamRequired("Description")) + } + if s.DirectoryId == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryId")) + } + if s.LdifContent == nil { + invalidParams.Add(request.NewErrParamRequired("LdifContent")) + } + if s.LdifContent != nil && len(*s.LdifContent) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LdifContent", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCreateSnapshotBeforeSchemaExtension sets the CreateSnapshotBeforeSchemaExtension field's value. +func (s *StartSchemaExtensionInput) SetCreateSnapshotBeforeSchemaExtension(v bool) *StartSchemaExtensionInput { + s.CreateSnapshotBeforeSchemaExtension = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *StartSchemaExtensionInput) SetDescription(v string) *StartSchemaExtensionInput { + s.Description = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *StartSchemaExtensionInput) SetDirectoryId(v string) *StartSchemaExtensionInput { + s.DirectoryId = &v + return s +} + +// SetLdifContent sets the LdifContent field's value. +func (s *StartSchemaExtensionInput) SetLdifContent(v string) *StartSchemaExtensionInput { + s.LdifContent = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/StartSchemaExtensionResult +type StartSchemaExtensionOutput struct { + _ struct{} `type:"structure"` + + // The identifier of the schema extension that will be applied. + SchemaExtensionId *string `type:"string"` +} + +// String returns the string representation +func (s StartSchemaExtensionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartSchemaExtensionOutput) GoString() string { + return s.String() +} + +// SetSchemaExtensionId sets the SchemaExtensionId field's value. +func (s *StartSchemaExtensionOutput) SetSchemaExtensionId(v string) *StartSchemaExtensionOutput { + s.SchemaExtensionId = &v + return s +} + +// Metadata assigned to a directory consisting of a key-value pair. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/Tag type Tag struct { _ struct{} `type:"structure"` @@ -5412,8 +7284,21 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Describes a trust relationship between an Microsoft AD in the AWS cloud and // an external domain. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/Trust type Trust struct { _ struct{} `type:"structure"` @@ -5459,7 +7344,68 @@ func (s Trust) GoString() string { return s.String() } +// SetCreatedDateTime sets the CreatedDateTime field's value. +func (s *Trust) SetCreatedDateTime(v time.Time) *Trust { + s.CreatedDateTime = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *Trust) SetDirectoryId(v string) *Trust { + s.DirectoryId = &v + return s +} + +// SetLastUpdatedDateTime sets the LastUpdatedDateTime field's value. +func (s *Trust) SetLastUpdatedDateTime(v time.Time) *Trust { + s.LastUpdatedDateTime = &v + return s +} + +// SetRemoteDomainName sets the RemoteDomainName field's value. +func (s *Trust) SetRemoteDomainName(v string) *Trust { + s.RemoteDomainName = &v + return s +} + +// SetStateLastUpdatedDateTime sets the StateLastUpdatedDateTime field's value. +func (s *Trust) SetStateLastUpdatedDateTime(v time.Time) *Trust { + s.StateLastUpdatedDateTime = &v + return s +} + +// SetTrustDirection sets the TrustDirection field's value. +func (s *Trust) SetTrustDirection(v string) *Trust { + s.TrustDirection = &v + return s +} + +// SetTrustId sets the TrustId field's value. +func (s *Trust) SetTrustId(v string) *Trust { + s.TrustId = &v + return s +} + +// SetTrustState sets the TrustState field's value. +func (s *Trust) SetTrustState(v string) *Trust { + s.TrustState = &v + return s +} + +// SetTrustStateReason sets the TrustStateReason field's value. +func (s *Trust) SetTrustStateReason(v string) *Trust { + s.TrustStateReason = &v + return s +} + +// SetTrustType sets the TrustType field's value. +func (s *Trust) SetTrustType(v string) *Trust { + s.TrustType = &v + return s +} + // Updates a conditional forwarder. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateConditionalForwarderRequest type UpdateConditionalForwarderInput struct { _ struct{} `type:"structure"` @@ -5511,7 +7457,26 @@ func (s *UpdateConditionalForwarderInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *UpdateConditionalForwarderInput) SetDirectoryId(v string) *UpdateConditionalForwarderInput { + s.DirectoryId = &v + return s +} + +// SetDnsIpAddrs sets the DnsIpAddrs field's value. +func (s *UpdateConditionalForwarderInput) SetDnsIpAddrs(v []*string) *UpdateConditionalForwarderInput { + s.DnsIpAddrs = v + return s +} + +// SetRemoteDomainName sets the RemoteDomainName field's value. +func (s *UpdateConditionalForwarderInput) SetRemoteDomainName(v string) *UpdateConditionalForwarderInput { + s.RemoteDomainName = &v + return s +} + // The result of an UpdateConditionalForwarder request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateConditionalForwarderResult type UpdateConditionalForwarderOutput struct { _ struct{} `type:"structure"` } @@ -5527,6 +7492,7 @@ func (s UpdateConditionalForwarderOutput) GoString() string { } // Contains the inputs for the UpdateRadius operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateRadiusRequest type UpdateRadiusInput struct { _ struct{} `type:"structure"` @@ -5572,7 +7538,20 @@ func (s *UpdateRadiusInput) Validate() error { return nil } +// SetDirectoryId sets the DirectoryId field's value. +func (s *UpdateRadiusInput) SetDirectoryId(v string) *UpdateRadiusInput { + s.DirectoryId = &v + return s +} + +// SetRadiusSettings sets the RadiusSettings field's value. +func (s *UpdateRadiusInput) SetRadiusSettings(v *RadiusSettings) *UpdateRadiusInput { + s.RadiusSettings = v + return s +} + // Contains the results of the UpdateRadius operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateRadiusResult type UpdateRadiusOutput struct { _ struct{} `type:"structure"` } @@ -5589,6 +7568,7 @@ func (s UpdateRadiusOutput) GoString() string { // Initiates the verification of an existing trust relationship between a Microsoft // AD in the AWS cloud and an external domain. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/VerifyTrustRequest type VerifyTrustInput struct { _ struct{} `type:"structure"` @@ -5621,7 +7601,14 @@ func (s *VerifyTrustInput) Validate() error { return nil } +// SetTrustId sets the TrustId field's value. +func (s *VerifyTrustInput) SetTrustId(v string) *VerifyTrustInput { + s.TrustId = &v + return s +} + // Result of a VerifyTrust request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/VerifyTrustResult type VerifyTrustOutput struct { _ struct{} `type:"structure"` @@ -5639,6 +7626,12 @@ func (s VerifyTrustOutput) GoString() string { return s.String() } +// SetTrustId sets the TrustId field's value. +func (s *VerifyTrustOutput) SetTrustId(v string) *VerifyTrustOutput { + s.TrustId = &v + return s +} + const ( // DirectorySizeSmall is a DirectorySize enum value DirectorySizeSmall = "Small" @@ -5743,6 +7736,35 @@ const ( ReplicationScopeDomain = "Domain" ) +const ( + // SchemaExtensionStatusInitializing is a SchemaExtensionStatus enum value + SchemaExtensionStatusInitializing = "Initializing" + + // SchemaExtensionStatusCreatingSnapshot is a SchemaExtensionStatus enum value + SchemaExtensionStatusCreatingSnapshot = "CreatingSnapshot" + + // SchemaExtensionStatusUpdatingSchema is a SchemaExtensionStatus enum value + SchemaExtensionStatusUpdatingSchema = "UpdatingSchema" + + // SchemaExtensionStatusReplicating is a SchemaExtensionStatus enum value + SchemaExtensionStatusReplicating = "Replicating" + + // SchemaExtensionStatusCancelInProgress is a SchemaExtensionStatus enum value + SchemaExtensionStatusCancelInProgress = "CancelInProgress" + + // SchemaExtensionStatusRollbackInProgress is a SchemaExtensionStatus enum value + SchemaExtensionStatusRollbackInProgress = "RollbackInProgress" + + // SchemaExtensionStatusCancelled is a SchemaExtensionStatus enum value + SchemaExtensionStatusCancelled = "Cancelled" + + // SchemaExtensionStatusFailed is a SchemaExtensionStatus enum value + SchemaExtensionStatusFailed = "Failed" + + // SchemaExtensionStatusCompleted is a SchemaExtensionStatus enum value + SchemaExtensionStatusCompleted = "Completed" +) + const ( // SnapshotStatusCreating is a SnapshotStatus enum value SnapshotStatusCreating = "Creating" diff --git a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/directoryserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/directoryserviceiface/interface.go index 995ae2a0c..51aa33de9 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/directoryserviceiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/directoryserviceiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockDirectoryServiceClient{} // @@ -67,6 +67,10 @@ type DirectoryServiceAPI interface { AddTagsToResource(*directoryservice.AddTagsToResourceInput) (*directoryservice.AddTagsToResourceOutput, error) + CancelSchemaExtensionRequest(*directoryservice.CancelSchemaExtensionInput) (*request.Request, *directoryservice.CancelSchemaExtensionOutput) + + CancelSchemaExtension(*directoryservice.CancelSchemaExtensionInput) (*directoryservice.CancelSchemaExtensionOutput, error) + ConnectDirectoryRequest(*directoryservice.ConnectDirectoryInput) (*request.Request, *directoryservice.ConnectDirectoryOutput) ConnectDirectory(*directoryservice.ConnectDirectoryInput) (*directoryservice.ConnectDirectoryOutput, error) @@ -167,6 +171,10 @@ type DirectoryServiceAPI interface { ListIpRoutes(*directoryservice.ListIpRoutesInput) (*directoryservice.ListIpRoutesOutput, error) + ListSchemaExtensionsRequest(*directoryservice.ListSchemaExtensionsInput) (*request.Request, *directoryservice.ListSchemaExtensionsOutput) + + ListSchemaExtensions(*directoryservice.ListSchemaExtensionsInput) (*directoryservice.ListSchemaExtensionsOutput, error) + ListTagsForResourceRequest(*directoryservice.ListTagsForResourceInput) (*request.Request, *directoryservice.ListTagsForResourceOutput) ListTagsForResource(*directoryservice.ListTagsForResourceInput) (*directoryservice.ListTagsForResourceOutput, error) @@ -187,6 +195,10 @@ type DirectoryServiceAPI interface { RestoreFromSnapshot(*directoryservice.RestoreFromSnapshotInput) (*directoryservice.RestoreFromSnapshotOutput, error) + StartSchemaExtensionRequest(*directoryservice.StartSchemaExtensionInput) (*request.Request, *directoryservice.StartSchemaExtensionOutput) + + StartSchemaExtension(*directoryservice.StartSchemaExtensionInput) (*directoryservice.StartSchemaExtensionOutput, error) + UpdateConditionalForwarderRequest(*directoryservice.UpdateConditionalForwarderInput) (*request.Request, *directoryservice.UpdateConditionalForwarderOutput) UpdateConditionalForwarder(*directoryservice.UpdateConditionalForwarderInput) (*directoryservice.UpdateConditionalForwarderOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/errors.go b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/errors.go new file mode 100644 index 000000000..d8d9fa52a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/errors.go @@ -0,0 +1,95 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package directoryservice + +const ( + + // ErrCodeAuthenticationFailedException for service response error code + // "AuthenticationFailedException". + // + // An authentication error occurred. + ErrCodeAuthenticationFailedException = "AuthenticationFailedException" + + // ErrCodeClientException for service response error code + // "ClientException". + // + // A client exception has occurred. + ErrCodeClientException = "ClientException" + + // ErrCodeDirectoryLimitExceededException for service response error code + // "DirectoryLimitExceededException". + // + // The maximum number of directories in the region has been reached. You can + // use the GetDirectoryLimits operation to determine your directory limits in + // the region. + ErrCodeDirectoryLimitExceededException = "DirectoryLimitExceededException" + + // ErrCodeDirectoryUnavailableException for service response error code + // "DirectoryUnavailableException". + // + // The specified directory is unavailable or could not be found. + ErrCodeDirectoryUnavailableException = "DirectoryUnavailableException" + + // ErrCodeEntityAlreadyExistsException for service response error code + // "EntityAlreadyExistsException". + // + // The specified entity already exists. + ErrCodeEntityAlreadyExistsException = "EntityAlreadyExistsException" + + // ErrCodeEntityDoesNotExistException for service response error code + // "EntityDoesNotExistException". + // + // The specified entity could not be found. + ErrCodeEntityDoesNotExistException = "EntityDoesNotExistException" + + // ErrCodeInsufficientPermissionsException for service response error code + // "InsufficientPermissionsException". + // + // The account does not have sufficient permission to perform the operation. + ErrCodeInsufficientPermissionsException = "InsufficientPermissionsException" + + // ErrCodeInvalidNextTokenException for service response error code + // "InvalidNextTokenException". + // + // The NextToken value is not valid. + ErrCodeInvalidNextTokenException = "InvalidNextTokenException" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameterException". + // + // One or more parameters are not valid. + ErrCodeInvalidParameterException = "InvalidParameterException" + + // ErrCodeIpRouteLimitExceededException for service response error code + // "IpRouteLimitExceededException". + // + // The maximum allowed number of IP addresses was exceeded. The default limit + // is 100 IP address blocks. + ErrCodeIpRouteLimitExceededException = "IpRouteLimitExceededException" + + // ErrCodeServiceException for service response error code + // "ServiceException". + // + // An exception has occurred in AWS Directory Service. + ErrCodeServiceException = "ServiceException" + + // ErrCodeSnapshotLimitExceededException for service response error code + // "SnapshotLimitExceededException". + // + // The maximum number of manual snapshots for the directory has been reached. + // You can use the GetSnapshotLimits operation to determine the snapshot limits + // for a directory. + ErrCodeSnapshotLimitExceededException = "SnapshotLimitExceededException" + + // ErrCodeTagLimitExceededException for service response error code + // "TagLimitExceededException". + // + // The maximum allowed number of tags was exceeded. + ErrCodeTagLimitExceededException = "TagLimitExceededException" + + // ErrCodeUnsupportedOperationException for service response error code + // "UnsupportedOperationException". + // + // The operation is not supported. + ErrCodeUnsupportedOperationException = "UnsupportedOperationException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/examples_test.go index cbc17399e..5e7a4c088 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleDirectoryService_AddIpRoutes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -49,11 +45,7 @@ func ExampleDirectoryService_AddIpRoutes() { } func ExampleDirectoryService_AddTagsToResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -80,13 +72,31 @@ func ExampleDirectoryService_AddTagsToResource() { fmt.Println(resp) } -func ExampleDirectoryService_ConnectDirectory() { - sess, err := session.NewSession() +func ExampleDirectoryService_CancelSchemaExtension() { + sess := session.Must(session.NewSession()) + + svc := directoryservice.New(sess) + + params := &directoryservice.CancelSchemaExtensionInput{ + DirectoryId: aws.String("DirectoryId"), // Required + SchemaExtensionId: aws.String("SchemaExtensionId"), // Required + } + resp, err := svc.CancelSchemaExtension(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDirectoryService_ConnectDirectory() { + sess := session.Must(session.NewSession()) + svc := directoryservice.New(sess) params := &directoryservice.ConnectDirectoryInput{ @@ -122,11 +132,7 @@ func ExampleDirectoryService_ConnectDirectory() { } func ExampleDirectoryService_CreateAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -148,11 +154,7 @@ func ExampleDirectoryService_CreateAlias() { } func ExampleDirectoryService_CreateComputer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -183,11 +185,7 @@ func ExampleDirectoryService_CreateComputer() { } func ExampleDirectoryService_CreateConditionalForwarder() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -213,11 +211,7 @@ func ExampleDirectoryService_CreateConditionalForwarder() { } func ExampleDirectoryService_CreateDirectory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -249,11 +243,7 @@ func ExampleDirectoryService_CreateDirectory() { } func ExampleDirectoryService_CreateMicrosoftAD() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -284,11 +274,7 @@ func ExampleDirectoryService_CreateMicrosoftAD() { } func ExampleDirectoryService_CreateSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -310,11 +296,7 @@ func ExampleDirectoryService_CreateSnapshot() { } func ExampleDirectoryService_CreateTrust() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -343,11 +325,7 @@ func ExampleDirectoryService_CreateTrust() { } func ExampleDirectoryService_DeleteConditionalForwarder() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -369,11 +347,7 @@ func ExampleDirectoryService_DeleteConditionalForwarder() { } func ExampleDirectoryService_DeleteDirectory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -394,11 +368,7 @@ func ExampleDirectoryService_DeleteDirectory() { } func ExampleDirectoryService_DeleteSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -419,11 +389,7 @@ func ExampleDirectoryService_DeleteSnapshot() { } func ExampleDirectoryService_DeleteTrust() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -445,11 +411,7 @@ func ExampleDirectoryService_DeleteTrust() { } func ExampleDirectoryService_DeregisterEventTopic() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -471,11 +433,7 @@ func ExampleDirectoryService_DeregisterEventTopic() { } func ExampleDirectoryService_DescribeConditionalForwarders() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -500,11 +458,7 @@ func ExampleDirectoryService_DescribeConditionalForwarders() { } func ExampleDirectoryService_DescribeDirectories() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -530,11 +484,7 @@ func ExampleDirectoryService_DescribeDirectories() { } func ExampleDirectoryService_DescribeEventTopics() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -559,11 +509,7 @@ func ExampleDirectoryService_DescribeEventTopics() { } func ExampleDirectoryService_DescribeSnapshots() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -590,11 +536,7 @@ func ExampleDirectoryService_DescribeSnapshots() { } func ExampleDirectoryService_DescribeTrusts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -621,11 +563,7 @@ func ExampleDirectoryService_DescribeTrusts() { } func ExampleDirectoryService_DisableRadius() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -646,11 +584,7 @@ func ExampleDirectoryService_DisableRadius() { } func ExampleDirectoryService_DisableSso() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -673,11 +607,7 @@ func ExampleDirectoryService_DisableSso() { } func ExampleDirectoryService_EnableRadius() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -711,11 +641,7 @@ func ExampleDirectoryService_EnableRadius() { } func ExampleDirectoryService_EnableSso() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -738,11 +664,7 @@ func ExampleDirectoryService_EnableSso() { } func ExampleDirectoryService_GetDirectoryLimits() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -761,11 +683,7 @@ func ExampleDirectoryService_GetDirectoryLimits() { } func ExampleDirectoryService_GetSnapshotLimits() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -786,11 +704,7 @@ func ExampleDirectoryService_GetSnapshotLimits() { } func ExampleDirectoryService_ListIpRoutes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -812,13 +726,32 @@ func ExampleDirectoryService_ListIpRoutes() { fmt.Println(resp) } -func ExampleDirectoryService_ListTagsForResource() { - sess, err := session.NewSession() +func ExampleDirectoryService_ListSchemaExtensions() { + sess := session.Must(session.NewSession()) + + svc := directoryservice.New(sess) + + params := &directoryservice.ListSchemaExtensionsInput{ + DirectoryId: aws.String("DirectoryId"), // Required + Limit: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListSchemaExtensions(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDirectoryService_ListTagsForResource() { + sess := session.Must(session.NewSession()) + svc := directoryservice.New(sess) params := &directoryservice.ListTagsForResourceInput{ @@ -840,11 +773,7 @@ func ExampleDirectoryService_ListTagsForResource() { } func ExampleDirectoryService_RegisterEventTopic() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -866,11 +795,7 @@ func ExampleDirectoryService_RegisterEventTopic() { } func ExampleDirectoryService_RemoveIpRoutes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -895,11 +820,7 @@ func ExampleDirectoryService_RemoveIpRoutes() { } func ExampleDirectoryService_RemoveTagsFromResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -924,11 +845,7 @@ func ExampleDirectoryService_RemoveTagsFromResource() { } func ExampleDirectoryService_RestoreFromSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -948,13 +865,33 @@ func ExampleDirectoryService_RestoreFromSnapshot() { fmt.Println(resp) } -func ExampleDirectoryService_UpdateConditionalForwarder() { - sess, err := session.NewSession() +func ExampleDirectoryService_StartSchemaExtension() { + sess := session.Must(session.NewSession()) + + svc := directoryservice.New(sess) + + params := &directoryservice.StartSchemaExtensionInput{ + CreateSnapshotBeforeSchemaExtension: aws.Bool(true), // Required + Description: aws.String("Description"), // Required + DirectoryId: aws.String("DirectoryId"), // Required + LdifContent: aws.String("LdifContent"), // Required + } + resp, err := svc.StartSchemaExtension(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDirectoryService_UpdateConditionalForwarder() { + sess := session.Must(session.NewSession()) + svc := directoryservice.New(sess) params := &directoryservice.UpdateConditionalForwarderInput{ @@ -979,11 +916,7 @@ func ExampleDirectoryService_UpdateConditionalForwarder() { } func ExampleDirectoryService_UpdateRadius() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) @@ -1017,11 +950,7 @@ func ExampleDirectoryService_UpdateRadius() { } func ExampleDirectoryService_VerifyTrust() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := directoryservice.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/service.go b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/service.go index 62acf33ce..950ed3bef 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/service.go @@ -11,11 +11,22 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) -// This is the AWS Directory Service API Reference. This guide provides detailed +// AWS Directory Service is a web service that makes it easy for you to setup +// and run directories in the AWS cloud, or connect your AWS resources with +// an existing on-premises Microsoft Active Directory. This guide provides detailed // information about AWS Directory Service operations, data types, parameters, -// and errors. -//The service client's operations are safe to be used concurrently. +// and errors. For information about AWS Directory Services features, see AWS +// Directory Service (https://aws.amazon.com/directoryservice/) and the AWS +// Directory Service Administration Guide (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/what_is.html). +// +// AWS provides SDKs that consist of libraries and sample code for various programming +// languages and platforms (Java, Ruby, .Net, iOS, Android, etc.). The SDKs +// provide a convenient way to create programmatic access to AWS Directory Service +// and other AWS services. For more information about the AWS SDKs, including +// how to download and install them, see Tools for Amazon Web Services (http://aws.amazon.com/tools/). +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16 type DirectoryService struct { *client.Client } @@ -26,8 +37,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "ds" +// Service information constants +const ( + ServiceName = "ds" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the DirectoryService client with a session. // If additional configuration is needed for the client instance use the optional @@ -40,17 +54,18 @@ const ServiceName = "ds" // // Create a DirectoryService client with additional configuration // svc := directoryservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *DirectoryService { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *DirectoryService { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *DirectoryService { svc := &DirectoryService{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-04-16", diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go index 1412fe3db..55dfb23c1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go @@ -9,6 +9,8 @@ import ( "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) const opBatchGetItem = "BatchGetItem" @@ -37,6 +39,7 @@ const opBatchGetItem = "BatchGetItem" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchGetItem func (c *DynamoDB) BatchGetItemRequest(input *BatchGetItemInput) (req *request.Request, output *BatchGetItemOutput) { op := &request.Operation{ Name: opBatchGetItem, @@ -54,9 +57,8 @@ func (c *DynamoDB) BatchGetItemRequest(input *BatchGetItemInput) (req *request.R input = &BatchGetItemInput{} } - req = c.newRequest(op, input, output) output = &BatchGetItemOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -72,21 +74,21 @@ func (c *DynamoDB) BatchGetItemRequest(input *BatchGetItemInput) (req *request.R // operation returns a value for UnprocessedKeys. You can use this value to // retry the operation starting with the next item to get. // -// If you request more than 100 items BatchGetItem will return a ValidationException +// If you request more than 100 items BatchGetItem will return a ValidationException // with the message "Too many items requested for the BatchGetItem call". // -// For example, if you ask to retrieve 100 items, but each individual item -// is 300 KB in size, the system returns 52 items (so as not to exceed the 16 -// MB limit). It also returns an appropriate UnprocessedKeys value so you can -// get the next page of results. If desired, your application can include its -// own logic to assemble the pages of results into one data set. +// For example, if you ask to retrieve 100 items, but each individual item is +// 300 KB in size, the system returns 52 items (so as not to exceed the 16 MB +// limit). It also returns an appropriate UnprocessedKeys value so you can get +// the next page of results. If desired, your application can include its own +// logic to assemble the pages of results into one data set. // // If none of the items can be processed due to insufficient provisioned throughput // on all of the tables in the request, then BatchGetItem will return a ProvisionedThroughputExceededException. // If at least one of the items is successfully processed, then BatchGetItem // completes successfully, while returning the keys of the unread items in UnprocessedKeys. // -// If DynamoDB returns any unprocessed items, you should retry the batch operation +// If DynamoDB returns any unprocessed items, you should retry the batch operation // on those items. However, we strongly recommend that you use an exponential // backoff algorithm. If you retry the batch operation immediately, the underlying // read or write requests can still fail due to throttling on the individual @@ -96,15 +98,15 @@ func (c *DynamoDB) BatchGetItemRequest(input *BatchGetItemInput) (req *request.R // For more information, see Batch Operations and Error Handling (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#BatchOperations) // in the Amazon DynamoDB Developer Guide. // -// By default, BatchGetItem performs eventually consistent reads on every -// table in the request. If you want strongly consistent reads instead, you -// can set ConsistentRead to true for any or all tables. +// By default, BatchGetItem performs eventually consistent reads on every table +// in the request. If you want strongly consistent reads instead, you can set +// ConsistentRead to true for any or all tables. // // In order to minimize response latency, BatchGetItem retrieves items in parallel. // // When designing your application, keep in mind that DynamoDB does not return // items in any particular order. To help parse the response by item, include -// the primary key values for the items in your request in the AttributesToGet +// the primary key values for the items in your request in the ProjectionExpression // parameter. // // If a requested item does not exist, it is not returned in the result. Requests @@ -120,21 +122,22 @@ func (c *DynamoDB) BatchGetItemRequest(input *BatchGetItemInput) (req *request.R // API operation BatchGetItem for usage and error information. // // Returned Error Codes: -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests // and use exponential backoff. For more information, go to Error Retries and -// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchGetItem func (c *DynamoDB) BatchGetItem(input *BatchGetItemInput) (*BatchGetItemOutput, error) { req, out := c.BatchGetItemRequest(input) err := req.Send() @@ -192,6 +195,7 @@ const opBatchWriteItem = "BatchWriteItem" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchWriteItem func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *request.Request, output *BatchWriteItemOutput) { op := &request.Operation{ Name: opBatchWriteItem, @@ -203,9 +207,8 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque input = &BatchWriteItemInput{} } - req = c.newRequest(op, input, output) output = &BatchWriteItemOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -216,10 +219,9 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque // can comprise as many as 25 put or delete requests. Individual items to be // written can be as large as 400 KB. // -// BatchWriteItem cannot update items. To update items, use the UpdateItem -// API. +// BatchWriteItem cannot update items. To update items, use the UpdateItem action. // -// The individual PutItem and DeleteItem operations specified in BatchWriteItem +// The individual PutItem and DeleteItem operations specified in BatchWriteItem // are atomic; however BatchWriteItem as a whole is not. If any requested operations // fail because the table's provisioned throughput is exceeded or an internal // processing failure occurs, the failed operations are returned in the UnprocessedItems @@ -232,7 +234,7 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque // throughput on all of the tables in the request, then BatchWriteItem will // return a ProvisionedThroughputExceededException. // -// If DynamoDB returns any unprocessed items, you should retry the batch operation +// If DynamoDB returns any unprocessed items, you should retry the batch operation // on those items. However, we strongly recommend that you use an exponential // backoff algorithm. If you retry the batch operation immediately, the underlying // read or write requests can still fail due to throttling on the individual @@ -242,8 +244,8 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque // For more information, see Batch Operations and Error Handling (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#BatchOperations) // in the Amazon DynamoDB Developer Guide. // -// With BatchWriteItem, you can efficiently write or delete large amounts -// of data, such as from Amazon Elastic MapReduce (EMR), or copy data from another +// With BatchWriteItem, you can efficiently write or delete large amounts of +// data, such as from Amazon Elastic MapReduce (EMR), or copy data from another // database into DynamoDB. In order to improve performance with these large-scale // operations, BatchWriteItem does not behave in the same way as individual // PutItem and DeleteItem calls would. For example, you cannot specify conditions @@ -254,9 +256,9 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque // threads to write items in parallel. Your application must include the necessary // logic to manage the threads. With languages that don't support threading, // you must update or delete the specified items one at a time. In both situations, -// BatchWriteItem provides an alternative where the API performs the specified -// put and delete operations in parallel, giving you the power of the thread -// pool approach without having to introduce complexity into your application. +// BatchWriteItem performs the specified put and delete operations in parallel, +// giving you the power of the thread pool approach without having to introduce +// complexity into your application. // // Parallel processing reduces latency, but each specified put and delete request // consumes the same number of write capacity units whether it is processed @@ -266,20 +268,21 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque // If one or more of the following is true, DynamoDB rejects the entire batch // write operation: // -// One or more tables specified in the BatchWriteItem request does not exist. +// * One or more tables specified in the BatchWriteItem request does not +// exist. // -// Primary key attributes specified on an item in the request do not match -// those in the corresponding table's primary key schema. +// * Primary key attributes specified on an item in the request do not match +// those in the corresponding table's primary key schema. // -// You try to perform multiple operations on the same item in the same BatchWriteItem -// request. For example, you cannot put and delete the same item in the same -// BatchWriteItem request. +// * You try to perform multiple operations on the same item in the same +// BatchWriteItem request. For example, you cannot put and delete the same +// item in the same BatchWriteItem request. // -// There are more than 25 requests in the batch. +// * There are more than 25 requests in the batch. // -// Any individual item in a batch exceeds 400 KB. +// * Any individual item in a batch exceeds 400 KB. // -// The total request size exceeds 16 MB. +// * The total request size exceeds 16 MB. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -289,25 +292,26 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque // API operation BatchWriteItem for usage and error information. // // Returned Error Codes: -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests // and use exponential backoff. For more information, go to Error Retries and -// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ItemCollectionSizeLimitExceededException +// * ErrCodeItemCollectionSizeLimitExceededException "ItemCollectionSizeLimitExceededException" // An item collection is too large. This exception is only returned for tables // that have one or more local secondary indexes. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchWriteItem func (c *DynamoDB) BatchWriteItem(input *BatchWriteItemInput) (*BatchWriteItemOutput, error) { req, out := c.BatchWriteItemRequest(input) err := req.Send() @@ -340,6 +344,7 @@ const opCreateTable = "CreateTable" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/CreateTable func (c *DynamoDB) CreateTableRequest(input *CreateTableInput) (req *request.Request, output *CreateTableOutput) { op := &request.Operation{ Name: opCreateTable, @@ -351,9 +356,8 @@ func (c *DynamoDB) CreateTableRequest(input *CreateTableInput) (req *request.Req input = &CreateTableInput{} } - req = c.newRequest(op, input, output) output = &CreateTableOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -363,17 +367,17 @@ func (c *DynamoDB) CreateTableRequest(input *CreateTableInput) (req *request.Req // table names must be unique within each region. That is, you can have two // tables with same name if you create the tables in different regions. // -// CreateTable is an asynchronous operation. Upon receiving a CreateTable -// request, DynamoDB immediately returns a response with a TableStatus of CREATING. -// After the table is created, DynamoDB sets the TableStatus to ACTIVE. You -// can perform read and write operations only on an ACTIVE table. +// CreateTable is an asynchronous operation. Upon receiving a CreateTable request, +// DynamoDB immediately returns a response with a TableStatus of CREATING. After +// the table is created, DynamoDB sets the TableStatus to ACTIVE. You can perform +// read and write operations only on an ACTIVE table. // // You can optionally define secondary indexes on the new table, as part of // the CreateTable operation. If you want to create multiple tables with secondary // indexes on them, you must create the tables sequentially. Only one table // with secondary indexes can be in the CREATING state at any given time. // -// You can use the DescribeTable API to check the table status. +// You can use the DescribeTable action to check the table status. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -383,12 +387,12 @@ func (c *DynamoDB) CreateTableRequest(input *CreateTableInput) (req *request.Req // API operation CreateTable for usage and error information. // // Returned Error Codes: -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The operation conflicts with the resource's availability. For example, you // attempted to recreate an existing table, or tried to delete a table currently // in the CREATING state. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The number of concurrent table requests (cumulative number of tables in the // CREATING, DELETING or UPDATING state) exceeds the maximum allowed of 10. // @@ -398,9 +402,10 @@ func (c *DynamoDB) CreateTableRequest(input *CreateTableInput) (req *request.Req // // The total limit of tables in the ACTIVE state is 250. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/CreateTable func (c *DynamoDB) CreateTable(input *CreateTableInput) (*CreateTableOutput, error) { req, out := c.CreateTableRequest(input) err := req.Send() @@ -433,6 +438,7 @@ const opDeleteItem = "DeleteItem" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DeleteItem func (c *DynamoDB) DeleteItemRequest(input *DeleteItemInput) (req *request.Request, output *DeleteItemOutput) { op := &request.Operation{ Name: opDeleteItem, @@ -444,9 +450,8 @@ func (c *DynamoDB) DeleteItemRequest(input *DeleteItemInput) (req *request.Reque input = &DeleteItemInput{} } - req = c.newRequest(op, input, output) output = &DeleteItemOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -475,28 +480,29 @@ func (c *DynamoDB) DeleteItemRequest(input *DeleteItemInput) (req *request.Reque // API operation DeleteItem for usage and error information. // // Returned Error Codes: -// * ConditionalCheckFailedException +// * ErrCodeConditionalCheckFailedException "ConditionalCheckFailedException" // A condition specified in the operation could not be evaluated. // -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests // and use exponential backoff. For more information, go to Error Retries and -// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ItemCollectionSizeLimitExceededException +// * ErrCodeItemCollectionSizeLimitExceededException "ItemCollectionSizeLimitExceededException" // An item collection is too large. This exception is only returned for tables // that have one or more local secondary indexes. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DeleteItem func (c *DynamoDB) DeleteItem(input *DeleteItemInput) (*DeleteItemOutput, error) { req, out := c.DeleteItemRequest(input) err := req.Send() @@ -529,6 +535,7 @@ const opDeleteTable = "DeleteTable" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DeleteTable func (c *DynamoDB) DeleteTableRequest(input *DeleteTableInput) (req *request.Request, output *DeleteTableOutput) { op := &request.Operation{ Name: opDeleteTable, @@ -540,9 +547,8 @@ func (c *DynamoDB) DeleteTableRequest(input *DeleteTableInput) (req *request.Req input = &DeleteTableInput{} } - req = c.newRequest(op, input, output) output = &DeleteTableOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -555,17 +561,17 @@ func (c *DynamoDB) DeleteTableRequest(input *DeleteTableInput) (req *request.Req // If the specified table does not exist, DynamoDB returns a ResourceNotFoundException. // If table is already in the DELETING state, no error is returned. // -// DynamoDB might continue to accept data read and write operations, such -// as GetItem and PutItem, on a table in the DELETING state until the table -// deletion is complete. +// DynamoDB might continue to accept data read and write operations, such as +// GetItem and PutItem, on a table in the DELETING state until the table deletion +// is complete. // -// When you delete a table, any indexes on that table are also deleted. +// When you delete a table, any indexes on that table are also deleted. // // If you have DynamoDB Streams enabled on the table, then the corresponding // stream on that table goes into the DISABLED state, and the stream is automatically // deleted after 24 hours. // -// Use the DescribeTable API to check the status of the table. +// Use the DescribeTable action to check the status of the table. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -575,16 +581,16 @@ func (c *DynamoDB) DeleteTableRequest(input *DeleteTableInput) (req *request.Req // API operation DeleteTable for usage and error information. // // Returned Error Codes: -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The operation conflicts with the resource's availability. For example, you // attempted to recreate an existing table, or tried to delete a table currently // in the CREATING state. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The number of concurrent table requests (cumulative number of tables in the // CREATING, DELETING or UPDATING state) exceeds the maximum allowed of 10. // @@ -594,9 +600,10 @@ func (c *DynamoDB) DeleteTableRequest(input *DeleteTableInput) (req *request.Req // // The total limit of tables in the ACTIVE state is 250. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DeleteTable func (c *DynamoDB) DeleteTable(input *DeleteTableInput) (*DeleteTableOutput, error) { req, out := c.DeleteTableRequest(input) err := req.Send() @@ -629,6 +636,7 @@ const opDescribeLimits = "DescribeLimits" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeLimits func (c *DynamoDB) DescribeLimitsRequest(input *DescribeLimitsInput) (req *request.Request, output *DescribeLimitsOutput) { op := &request.Operation{ Name: opDescribeLimits, @@ -640,9 +648,8 @@ func (c *DynamoDB) DescribeLimitsRequest(input *DescribeLimitsInput) (req *reque input = &DescribeLimitsInput{} } - req = c.newRequest(op, input, output) output = &DescribeLimitsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -661,51 +668,50 @@ func (c *DynamoDB) DescribeLimitsRequest(input *DescribeLimitsInput) (req *reque // // Although you can increase these limits by filing a case at AWS Support Center // (https://console.aws.amazon.com/support/home#/), obtaining the increase is -// not instantaneous. The DescribeLimits API lets you write code to compare +// not instantaneous. The DescribeLimits action lets you write code to compare // the capacity you are currently using to those limits imposed by your account // so that you have enough time to apply for an increase before you hit a limit. // // For example, you could use one of the AWS SDKs to do the following: // -// Call DescribeLimits for a particular region to obtain your current account +// Call DescribeLimits for a particular region to obtain your current account // limits on provisioned capacity there. // -// Create a variable to hold the aggregate read capacity units provisioned -// for all your tables in that region, and one to hold the aggregate write capacity +// Create a variable to hold the aggregate read capacity units provisioned for +// all your tables in that region, and one to hold the aggregate write capacity // units. Zero them both. // -// Call ListTables to obtain a list of all your DynamoDB tables. +// Call ListTables to obtain a list of all your DynamoDB tables. // -// For each table name listed by ListTables, do the following: +// For each table name listed by ListTables, do the following: // -// Call DescribeTable with the table name. +// Call DescribeTable with the table name. // -// Use the data returned by DescribeTable to add the read capacity units and +// Use the data returned by DescribeTable to add the read capacity units and // write capacity units provisioned for the table itself to your variables. // -// If the table has one or more global secondary indexes (GSIs), loop over -// these GSIs and add their provisioned capacity values to your variables as -// well. +// If the table has one or more global secondary indexes (GSIs), loop over these +// GSIs and add their provisioned capacity values to your variables as well. // -// Report the account limits for that region returned by DescribeLimits, -// along with the total current provisioned capacity levels you have calculated. +// Report the account limits for that region returned by DescribeLimits, along +// with the total current provisioned capacity levels you have calculated. // -// This will let you see whether you are getting close to your account-level +// This will let you see whether you are getting close to your account-level // limits. // -// The per-table limits apply only when you are creating a new table. They -// restrict the sum of the provisioned capacity of the new table itself and -// all its global secondary indexes. +// The per-table limits apply only when you are creating a new table. They restrict +// the sum of the provisioned capacity of the new table itself and all its global +// secondary indexes. // // For existing tables and their GSIs, DynamoDB will not let you increase provisioned // capacity extremely rapidly, but the only upper limit that applies is that // the aggregate provisioned capacity over all your tables and GSIs cannot exceed // either of the per-account limits. // -// DescribeLimits should only be called periodically. You can expect throttling +// DescribeLimits should only be called periodically. You can expect throttling // errors if you call it more than once in a minute. // -// The DescribeLimits Request element has no content. +// The DescribeLimits Request element has no content. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -715,9 +721,10 @@ func (c *DynamoDB) DescribeLimitsRequest(input *DescribeLimitsInput) (req *reque // API operation DescribeLimits for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeLimits func (c *DynamoDB) DescribeLimits(input *DescribeLimitsInput) (*DescribeLimitsOutput, error) { req, out := c.DescribeLimitsRequest(input) err := req.Send() @@ -750,6 +757,7 @@ const opDescribeTable = "DescribeTable" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeTable func (c *DynamoDB) DescribeTableRequest(input *DescribeTableInput) (req *request.Request, output *DescribeTableOutput) { op := &request.Operation{ Name: opDescribeTable, @@ -761,9 +769,8 @@ func (c *DynamoDB) DescribeTableRequest(input *DescribeTableInput) (req *request input = &DescribeTableInput{} } - req = c.newRequest(op, input, output) output = &DescribeTableOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -773,7 +780,7 @@ func (c *DynamoDB) DescribeTableRequest(input *DescribeTableInput) (req *request // table, when it was created, the primary key schema, and any indexes on the // table. // -// If you issue a DescribeTable request immediately after a CreateTable request, +// If you issue a DescribeTable request immediately after a CreateTable request, // DynamoDB might return a ResourceNotFoundException. This is because DescribeTable // uses an eventually consistent query, and the metadata for your table might // not be available at that moment. Wait for a few seconds, and then try the @@ -787,19 +794,89 @@ func (c *DynamoDB) DescribeTableRequest(input *DescribeTableInput) (req *request // API operation DescribeTable for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeTable func (c *DynamoDB) DescribeTable(input *DescribeTableInput) (*DescribeTableOutput, error) { req, out := c.DescribeTableRequest(input) err := req.Send() return out, err } +const opDescribeTimeToLive = "DescribeTimeToLive" + +// DescribeTimeToLiveRequest generates a "aws/request.Request" representing the +// client's request for the DescribeTimeToLive operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeTimeToLive for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeTimeToLive method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeTimeToLiveRequest method. +// req, resp := client.DescribeTimeToLiveRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeTimeToLive +func (c *DynamoDB) DescribeTimeToLiveRequest(input *DescribeTimeToLiveInput) (req *request.Request, output *DescribeTimeToLiveOutput) { + op := &request.Operation{ + Name: opDescribeTimeToLive, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeTimeToLiveInput{} + } + + output = &DescribeTimeToLiveOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeTimeToLive API operation for Amazon DynamoDB. +// +// Gives a description of the Time to Live (TTL) status on the specified table. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation DescribeTimeToLive for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The operation tried to access a nonexistent table or index. The resource +// might not be specified correctly, or its status might not be ACTIVE. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeTimeToLive +func (c *DynamoDB) DescribeTimeToLive(input *DescribeTimeToLiveInput) (*DescribeTimeToLiveOutput, error) { + req, out := c.DescribeTimeToLiveRequest(input) + err := req.Send() + return out, err +} + const opGetItem = "GetItem" // GetItemRequest generates a "aws/request.Request" representing the @@ -826,6 +903,7 @@ const opGetItem = "GetItem" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/GetItem func (c *DynamoDB) GetItemRequest(input *GetItemInput) (req *request.Request, output *GetItemOutput) { op := &request.Operation{ Name: opGetItem, @@ -837,18 +915,18 @@ func (c *DynamoDB) GetItemRequest(input *GetItemInput) (req *request.Request, ou input = &GetItemInput{} } - req = c.newRequest(op, input, output) output = &GetItemOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // GetItem API operation for Amazon DynamoDB. // // The GetItem operation returns a set of attributes for the item with the given -// primary key. If there is no matching item, GetItem does not return any data. +// primary key. If there is no matching item, GetItem does not return any data +// and there will be no Item element in the response. // -// GetItem provides an eventually consistent read by default. If your application +// GetItem provides an eventually consistent read by default. If your application // requires a strongly consistent read, set ConsistentRead to true. Although // a strongly consistent read might take more time than an eventually consistent // read, it always returns the last updated value. @@ -861,21 +939,22 @@ func (c *DynamoDB) GetItemRequest(input *GetItemInput) (req *request.Request, ou // API operation GetItem for usage and error information. // // Returned Error Codes: -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests // and use exponential backoff. For more information, go to Error Retries and -// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/GetItem func (c *DynamoDB) GetItem(input *GetItemInput) (*GetItemOutput, error) { req, out := c.GetItemRequest(input) err := req.Send() @@ -908,6 +987,7 @@ const opListTables = "ListTables" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListTables func (c *DynamoDB) ListTablesRequest(input *ListTablesInput) (req *request.Request, output *ListTablesOutput) { op := &request.Operation{ Name: opListTables, @@ -925,9 +1005,8 @@ func (c *DynamoDB) ListTablesRequest(input *ListTablesInput) (req *request.Reque input = &ListTablesInput{} } - req = c.newRequest(op, input, output) output = &ListTablesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -945,9 +1024,10 @@ func (c *DynamoDB) ListTablesRequest(input *ListTablesInput) (req *request.Reque // API operation ListTables for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListTables func (c *DynamoDB) ListTables(input *ListTablesInput) (*ListTablesOutput, error) { req, out := c.ListTablesRequest(input) err := req.Send() @@ -979,6 +1059,79 @@ func (c *DynamoDB) ListTablesPages(input *ListTablesInput, fn func(p *ListTables }) } +const opListTagsOfResource = "ListTagsOfResource" + +// ListTagsOfResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsOfResource operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListTagsOfResource for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListTagsOfResource method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListTagsOfResourceRequest method. +// req, resp := client.ListTagsOfResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListTagsOfResource +func (c *DynamoDB) ListTagsOfResourceRequest(input *ListTagsOfResourceInput) (req *request.Request, output *ListTagsOfResourceOutput) { + op := &request.Operation{ + Name: opListTagsOfResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListTagsOfResourceInput{} + } + + output = &ListTagsOfResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagsOfResource API operation for Amazon DynamoDB. +// +// List all tags on an Amazon DynamoDB resource. You can call ListTagsOfResource +// up to 10 times per second, per account. +// +// For an overview on tagging DynamoDB resources, see Tagging for DynamoDB (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html) +// in the Amazon DynamoDB Developer Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation ListTagsOfResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The operation tried to access a nonexistent table or index. The resource +// might not be specified correctly, or its status might not be ACTIVE. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListTagsOfResource +func (c *DynamoDB) ListTagsOfResource(input *ListTagsOfResourceInput) (*ListTagsOfResourceOutput, error) { + req, out := c.ListTagsOfResourceRequest(input) + err := req.Send() + return out, err +} + const opPutItem = "PutItem" // PutItemRequest generates a "aws/request.Request" representing the @@ -1005,6 +1158,7 @@ const opPutItem = "PutItem" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/PutItem func (c *DynamoDB) PutItemRequest(input *PutItemInput) (req *request.Request, output *PutItemOutput) { op := &request.Operation{ Name: opPutItem, @@ -1016,9 +1170,8 @@ func (c *DynamoDB) PutItemRequest(input *PutItemInput) (req *request.Request, ou input = &PutItemInput{} } - req = c.newRequest(op, input, output) output = &PutItemOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1039,17 +1192,13 @@ func (c *DynamoDB) PutItemRequest(input *PutItemInput) (req *request.Request, ou // must have lengths greater than zero. Set type attributes cannot be empty. // Requests with empty values will be rejected with a ValidationException exception. // -// You can request that PutItem return either a copy of the original item (before -// the update) or a copy of the updated item (after the update). For more information, -// see the ReturnValues description below. -// -// To prevent a new item from replacing an existing item, use a conditional +// To prevent a new item from replacing an existing item, use a conditional // expression that contains the attribute_not_exists function with the name // of the attribute being used as the partition key for the table. Since every // record must contain that attribute, the attribute_not_exists function will // only succeed if no matching item exists. // -// For more information about using this API, see Working with Items (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html) +// For more information about PutItem, see Working with Items (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html) // in the Amazon DynamoDB Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1060,28 +1209,29 @@ func (c *DynamoDB) PutItemRequest(input *PutItemInput) (req *request.Request, ou // API operation PutItem for usage and error information. // // Returned Error Codes: -// * ConditionalCheckFailedException +// * ErrCodeConditionalCheckFailedException "ConditionalCheckFailedException" // A condition specified in the operation could not be evaluated. // -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests // and use exponential backoff. For more information, go to Error Retries and -// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ItemCollectionSizeLimitExceededException +// * ErrCodeItemCollectionSizeLimitExceededException "ItemCollectionSizeLimitExceededException" // An item collection is too large. This exception is only returned for tables // that have one or more local secondary indexes. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/PutItem func (c *DynamoDB) PutItem(input *PutItemInput) (*PutItemOutput, error) { req, out := c.PutItemRequest(input) err := req.Send() @@ -1114,6 +1264,7 @@ const opQuery = "Query" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/Query func (c *DynamoDB) QueryRequest(input *QueryInput) (req *request.Request, output *QueryOutput) { op := &request.Operation{ Name: opQuery, @@ -1131,9 +1282,8 @@ func (c *DynamoDB) QueryRequest(input *QueryInput) (req *request.Request, output input = &QueryInput{} } - req = c.newRequest(op, input, output) output = &QueryOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1174,21 +1324,22 @@ func (c *DynamoDB) QueryRequest(input *QueryInput) (req *request.Request, output // API operation Query for usage and error information. // // Returned Error Codes: -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests // and use exponential backoff. For more information, go to Error Retries and -// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/Query func (c *DynamoDB) Query(input *QueryInput) (*QueryOutput, error) { req, out := c.QueryRequest(input) err := req.Send() @@ -1246,6 +1397,7 @@ const opScan = "Scan" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/Scan func (c *DynamoDB) ScanRequest(input *ScanInput) (req *request.Request, output *ScanOutput) { op := &request.Operation{ Name: opScan, @@ -1263,9 +1415,8 @@ func (c *DynamoDB) ScanRequest(input *ScanInput) (req *request.Request, output * input = &ScanInput{} } - req = c.newRequest(op, input, output) output = &ScanOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1273,7 +1424,7 @@ func (c *DynamoDB) ScanRequest(input *ScanInput) (req *request.Request, output * // // The Scan operation returns one or more items and item attributes by accessing // every item in a table or a secondary index. To have DynamoDB return fewer -// items, you can provide a ScanFilter operation. +// items, you can provide a FilterExpression operation. // // If the total number of scanned items exceeds the maximum data set size limit // of 1 MB, the scan stops and results are returned to the user as a LastEvaluatedKey @@ -1301,21 +1452,22 @@ func (c *DynamoDB) ScanRequest(input *ScanInput) (req *request.Request, output * // API operation Scan for usage and error information. // // Returned Error Codes: -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests // and use exponential backoff. For more information, go to Error Retries and -// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/Scan func (c *DynamoDB) Scan(input *ScanInput) (*ScanOutput, error) { req, out := c.ScanRequest(input) err := req.Send() @@ -1347,6 +1499,188 @@ func (c *DynamoDB) ScanPages(input *ScanInput, fn func(p *ScanOutput, lastPage b }) } +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See TagResource for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the TagResource method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TagResource +func (c *DynamoDB) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagResource API operation for Amazon DynamoDB. +// +// Associate a set of tags with an Amazon DynamoDB resource. You can then activate +// these user-defined tags so that they appear on the Billing and Cost Management +// console for cost allocation tracking. You can call TagResource up to 5 times +// per second, per account. +// +// For an overview on tagging DynamoDB resources, see Tagging for DynamoDB (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html) +// in the Amazon DynamoDB Developer Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation TagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeLimitExceededException "LimitExceededException" +// The number of concurrent table requests (cumulative number of tables in the +// CREATING, DELETING or UPDATING state) exceeds the maximum allowed of 10. +// +// Also, for tables with secondary indexes, only one of those tables can be +// in the CREATING state at any point in time. Do not attempt to create more +// than one such table simultaneously. +// +// The total limit of tables in the ACTIVE state is 250. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The operation tried to access a nonexistent table or index. The resource +// might not be specified correctly, or its status might not be ACTIVE. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The operation conflicts with the resource's availability. For example, you +// attempted to recreate an existing table, or tried to delete a table currently +// in the CREATING state. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TagResource +func (c *DynamoDB) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + err := req.Send() + return out, err +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UntagResource for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UntagResource method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UntagResource +func (c *DynamoDB) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagResource API operation for Amazon DynamoDB. +// +// Removes the association of tags from an Amazon DynamoDB resource. You can +// call UntagResource up to 5 times per second, per account. +// +// For an overview on tagging DynamoDB resources, see Tagging for DynamoDB (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html) +// in the Amazon DynamoDB Developer Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation UntagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeLimitExceededException "LimitExceededException" +// The number of concurrent table requests (cumulative number of tables in the +// CREATING, DELETING or UPDATING state) exceeds the maximum allowed of 10. +// +// Also, for tables with secondary indexes, only one of those tables can be +// in the CREATING state at any point in time. Do not attempt to create more +// than one such table simultaneously. +// +// The total limit of tables in the ACTIVE state is 250. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The operation tried to access a nonexistent table or index. The resource +// might not be specified correctly, or its status might not be ACTIVE. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The operation conflicts with the resource's availability. For example, you +// attempted to recreate an existing table, or tried to delete a table currently +// in the CREATING state. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UntagResource +func (c *DynamoDB) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + err := req.Send() + return out, err +} + const opUpdateItem = "UpdateItem" // UpdateItemRequest generates a "aws/request.Request" representing the @@ -1373,6 +1707,7 @@ const opUpdateItem = "UpdateItem" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateItem func (c *DynamoDB) UpdateItemRequest(input *UpdateItemInput) (req *request.Request, output *UpdateItemOutput) { op := &request.Operation{ Name: opUpdateItem, @@ -1384,9 +1719,8 @@ func (c *DynamoDB) UpdateItemRequest(input *UpdateItemInput) (req *request.Reque input = &UpdateItemInput{} } - req = c.newRequest(op, input, output) output = &UpdateItemOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1409,28 +1743,29 @@ func (c *DynamoDB) UpdateItemRequest(input *UpdateItemInput) (req *request.Reque // API operation UpdateItem for usage and error information. // // Returned Error Codes: -// * ConditionalCheckFailedException +// * ErrCodeConditionalCheckFailedException "ConditionalCheckFailedException" // A condition specified in the operation could not be evaluated. // -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests // and use exponential backoff. For more information, go to Error Retries and -// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ItemCollectionSizeLimitExceededException +// * ErrCodeItemCollectionSizeLimitExceededException "ItemCollectionSizeLimitExceededException" // An item collection is too large. This exception is only returned for tables // that have one or more local secondary indexes. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateItem func (c *DynamoDB) UpdateItem(input *UpdateItemInput) (*UpdateItemOutput, error) { req, out := c.UpdateItemRequest(input) err := req.Send() @@ -1463,6 +1798,7 @@ const opUpdateTable = "UpdateTable" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTable func (c *DynamoDB) UpdateTableRequest(input *UpdateTableInput) (req *request.Request, output *UpdateTableOutput) { op := &request.Operation{ Name: opUpdateTable, @@ -1474,9 +1810,8 @@ func (c *DynamoDB) UpdateTableRequest(input *UpdateTableInput) (req *request.Req input = &UpdateTableInput{} } - req = c.newRequest(op, input, output) output = &UpdateTableOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1487,17 +1822,17 @@ func (c *DynamoDB) UpdateTableRequest(input *UpdateTableInput) (req *request.Req // // You can only perform one of the following operations at once: // -// Modify the provisioned throughput settings of the table. +// * Modify the provisioned throughput settings of the table. // -// Enable or disable Streams on the table. +// * Enable or disable Streams on the table. // -// Remove a global secondary index from the table. +// * Remove a global secondary index from the table. // -// Create a new global secondary index on the table. Once the index begins -// backfilling, you can use UpdateTable to perform other operations. +// * Create a new global secondary index on the table. Once the index begins +// backfilling, you can use UpdateTable to perform other operations. // -// UpdateTable is an asynchronous operation; while it is executing, the -// table status changes from ACTIVE to UPDATING. While it is UPDATING, you cannot +// UpdateTable is an asynchronous operation; while it is executing, the table +// status changes from ACTIVE to UPDATING. While it is UPDATING, you cannot // issue another UpdateTable request. When the table returns to the ACTIVE state, // the UpdateTable operation is complete. // @@ -1509,16 +1844,16 @@ func (c *DynamoDB) UpdateTableRequest(input *UpdateTableInput) (req *request.Req // API operation UpdateTable for usage and error information. // // Returned Error Codes: -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The operation conflicts with the resource's availability. For example, you // attempted to recreate an existing table, or tried to delete a table currently // in the CREATING state. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The number of concurrent table requests (cumulative number of tables in the // CREATING, DELETING or UPDATING state) exceeds the maximum allowed of 10. // @@ -1528,16 +1863,129 @@ func (c *DynamoDB) UpdateTableRequest(input *UpdateTableInput) (req *request.Req // // The total limit of tables in the ACTIVE state is 250. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTable func (c *DynamoDB) UpdateTable(input *UpdateTableInput) (*UpdateTableOutput, error) { req, out := c.UpdateTableRequest(input) err := req.Send() return out, err } +const opUpdateTimeToLive = "UpdateTimeToLive" + +// UpdateTimeToLiveRequest generates a "aws/request.Request" representing the +// client's request for the UpdateTimeToLive operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateTimeToLive for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateTimeToLive method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateTimeToLiveRequest method. +// req, resp := client.UpdateTimeToLiveRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTimeToLive +func (c *DynamoDB) UpdateTimeToLiveRequest(input *UpdateTimeToLiveInput) (req *request.Request, output *UpdateTimeToLiveOutput) { + op := &request.Operation{ + Name: opUpdateTimeToLive, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateTimeToLiveInput{} + } + + output = &UpdateTimeToLiveOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateTimeToLive API operation for Amazon DynamoDB. +// +// Specify the lifetime of individual table items. The database automatically +// removes the item at the expiration of the item. The UpdateTimeToLive method +// will enable or disable TTL for the specified table. A successful UpdateTimeToLive +// call returns the current TimeToLiveSpecification; it may take up to one hour +// for the change to fully process. +// +// TTL compares the current time in epoch time format to the time stored in +// the TTL attribute of an item. If the epoch time value stored in the attribute +// is less than the current time, the item is marked as expired and subsequently +// deleted. +// +// The epoch time format is the number of seconds elapsed since 12:00:00 AM +// January 1st, 1970 UTC. +// +// DynamoDB deletes expired items on a best-effort basis to ensure availability +// of throughput for other data operations. +// +// DynamoDB typically deletes expired items within two days of expiration. The +// exact duration within which an item gets deleted after expiration is specific +// to the nature of the workload. Items that have expired and not been deleted +// will still show up in reads, queries, and scans. +// +// As items are deleted, they are removed from any Local Secondary Index and +// Global Secondary Index immediately in the same eventually consistent way +// as a standard delete operation. +// +// For more information, see Time To Live (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/TTL.html) +// in the Amazon DynamoDB Developer Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation UpdateTimeToLive for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceInUseException "ResourceInUseException" +// The operation conflicts with the resource's availability. For example, you +// attempted to recreate an existing table, or tried to delete a table currently +// in the CREATING state. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The operation tried to access a nonexistent table or index. The resource +// might not be specified correctly, or its status might not be ACTIVE. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The number of concurrent table requests (cumulative number of tables in the +// CREATING, DELETING or UPDATING state) exceeds the maximum allowed of 10. +// +// Also, for tables with secondary indexes, only one of those tables can be +// in the CREATING state at any point in time. Do not attempt to create more +// than one such table simultaneously. +// +// The total limit of tables in the ACTIVE state is 250. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTimeToLive +func (c *DynamoDB) UpdateTimeToLive(input *UpdateTimeToLiveInput) (*UpdateTimeToLiveOutput, error) { + req, out := c.UpdateTimeToLiveRequest(input) + err := req.Send() + return out, err +} + // Represents an attribute for describing the key schema for the table and indexes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/AttributeDefinition type AttributeDefinition struct { _ struct{} `type:"structure"` @@ -1548,11 +1996,11 @@ type AttributeDefinition struct { // The data type for the attribute, where: // - // S - the attribute is of type String + // * S - the attribute is of type String // - // N - the attribute is of type Number + // * N - the attribute is of type Number // - // B - the attribute is of type Binary + // * B - the attribute is of type Binary // // AttributeType is a required field AttributeType *string `type:"string" required:"true" enum:"ScalarAttributeType"` @@ -1587,46 +2035,87 @@ func (s *AttributeDefinition) Validate() error { return nil } -// Represents the data for an attribute. You can set one, and only one, of the -// elements. +// SetAttributeName sets the AttributeName field's value. +func (s *AttributeDefinition) SetAttributeName(v string) *AttributeDefinition { + s.AttributeName = &v + return s +} + +// SetAttributeType sets the AttributeType field's value. +func (s *AttributeDefinition) SetAttributeType(v string) *AttributeDefinition { + s.AttributeType = &v + return s +} + +// Represents the data for an attribute. // -// Each attribute in an item is a name-value pair. An attribute can be single-valued -// or multi-valued set. For example, a book item can have title and authors -// attributes. Each book has one title but can have many authors. The multi-valued -// attribute is a set; duplicate values are not allowed. +// Each attribute value is described as a name-value pair. The name is the data +// type, and the value is the data itself. +// +// For more information, see Data Types (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes) +// in the Amazon DynamoDB Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/AttributeValue type AttributeValue struct { _ struct{} `type:"structure"` - // A Binary data type. + // An attribute of type Binary. For example: + // + // "B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk" // // B is automatically base64 encoded/decoded by the SDK. B []byte `type:"blob"` - // A Boolean data type. + // An attribute of type Boolean. For example: + // + // "BOOL": true BOOL *bool `type:"boolean"` - // A Binary Set data type. + // An attribute of type Binary Set. For example: + // + // "BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="] BS [][]byte `type:"list"` - // A List of attribute values. + // An attribute of type List. For example: + // + // "L": ["Cookies", "Coffee", 3.14159] L []*AttributeValue `type:"list"` - // A Map of attribute values. + // An attribute of type Map. For example: + // + // "M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}} M map[string]*AttributeValue `type:"map"` - // A Number data type. + // An attribute of type Number. For example: + // + // "N": "123.45" + // + // Numbers are sent across the network to DynamoDB as strings, to maximize compatibility + // across languages and libraries. However, DynamoDB treats them as number type + // attributes for mathematical operations. N *string `type:"string"` - // A Number Set data type. + // An attribute of type Number Set. For example: + // + // "NS": ["42.2", "-19", "7.5", "3.14"] + // + // Numbers are sent across the network to DynamoDB as strings, to maximize compatibility + // across languages and libraries. However, DynamoDB treats them as number type + // attributes for mathematical operations. NS []*string `type:"list"` - // A Null data type. + // An attribute of type Null. For example: + // + // "NULL": true NULL *bool `type:"boolean"` - // A String data type. + // An attribute of type String. For example: + // + // "S": "Hello" S *string `type:"string"` - // A String Set data type. + // An attribute of type String Set. For example: + // + // "SS": ["Giraffe", "Hippo" ,"Zebra"] SS []*string `type:"list"` } @@ -1640,16 +2129,77 @@ func (s AttributeValue) GoString() string { return s.String() } +// SetB sets the B field's value. +func (s *AttributeValue) SetB(v []byte) *AttributeValue { + s.B = v + return s +} + +// SetBOOL sets the BOOL field's value. +func (s *AttributeValue) SetBOOL(v bool) *AttributeValue { + s.BOOL = &v + return s +} + +// SetBS sets the BS field's value. +func (s *AttributeValue) SetBS(v [][]byte) *AttributeValue { + s.BS = v + return s +} + +// SetL sets the L field's value. +func (s *AttributeValue) SetL(v []*AttributeValue) *AttributeValue { + s.L = v + return s +} + +// SetM sets the M field's value. +func (s *AttributeValue) SetM(v map[string]*AttributeValue) *AttributeValue { + s.M = v + return s +} + +// SetN sets the N field's value. +func (s *AttributeValue) SetN(v string) *AttributeValue { + s.N = &v + return s +} + +// SetNS sets the NS field's value. +func (s *AttributeValue) SetNS(v []*string) *AttributeValue { + s.NS = v + return s +} + +// SetNULL sets the NULL field's value. +func (s *AttributeValue) SetNULL(v bool) *AttributeValue { + s.NULL = &v + return s +} + +// SetS sets the S field's value. +func (s *AttributeValue) SetS(v string) *AttributeValue { + s.S = &v + return s +} + +// SetSS sets the SS field's value. +func (s *AttributeValue) SetSS(v []*string) *AttributeValue { + s.SS = v + return s +} + // For the UpdateItem operation, represents the attributes to be modified, the // action to perform on each, and the new value for each. // -// You cannot use UpdateItem to update any primary key attributes. Instead, +// You cannot use UpdateItem to update any primary key attributes. Instead, // you will need to delete the item, and then use PutItem to create a new item // with new attributes. // -// Attribute values cannot be null; string and binary type attributes must -// have lengths greater than zero; and set type attributes must not be empty. -// Requests with empty values will be rejected with a ValidationException exception. +// Attribute values cannot be null; string and binary type attributes must have +// lengths greater than zero; and set type attributes must not be empty. Requests +// with empty values will be rejected with a ValidationException exception. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/AttributeValueUpdate type AttributeValueUpdate struct { _ struct{} `type:"structure"` @@ -1657,73 +2207,74 @@ type AttributeValueUpdate struct { // and ADD. The behavior depends on whether the specified primary key already // exists in the table. // - // If an item with the specified Key is found in the table: + // If an item with the specified Key is found in the table: // - // PUT - Adds the specified attribute to the item. If the attribute already - // exists, it is replaced by the new value. + // * PUT - Adds the specified attribute to the item. If the attribute already + // exists, it is replaced by the new value. // - // DELETE - If no value is specified, the attribute and its value are removed - // from the item. The data type of the specified value must match the existing - // value's data type. + // * DELETE - If no value is specified, the attribute and its value are removed + // from the item. The data type of the specified value must match the existing + // value's data type. // // If a set of values is specified, then those values are subtracted from the - // old set. For example, if the attribute value was the set [a,b,c] and the - // DELETE action specified [a,c], then the final attribute value would be [b]. - // Specifying an empty set is an error. + // old set. For example, if the attribute value was the set [a,b,c] and the + // DELETE action specified [a,c], then the final attribute value would be + // [b]. Specifying an empty set is an error. // - // ADD - If the attribute does not already exist, then the attribute and - // its values are added to the item. If the attribute does exist, then the behavior - // of ADD depends on the data type of the attribute: + // * ADD - If the attribute does not already exist, then the attribute and + // its values are added to the item. If the attribute does exist, then the + // behavior of ADD depends on the data type of the attribute: // - // If the existing attribute is a number, and if Value is also a number, - // then the Value is mathematically added to the existing attribute. If Value - // is a negative number, then it is subtracted from the existing attribute. + // If the existing attribute is a number, and if Value is also a number, then + // the Value is mathematically added to the existing attribute. If Value + // is a negative number, then it is subtracted from the existing attribute. // - // If you use ADD to increment or decrement a number value for an item that - // doesn't exist before the update, DynamoDB uses 0 as the initial value. + // If you use ADD to increment or decrement a number value for an item that + // doesn't exist before the update, DynamoDB uses 0 as the initial value. // // In addition, if you use ADD to update an existing item, and intend to increment - // or decrement an attribute value which does not yet exist, DynamoDB uses 0 - // as the initial value. For example, suppose that the item you want to update - // does not yet have an attribute named itemcount, but you decide to ADD the - // number 3 to this attribute anyway, even though it currently does not exist. - // DynamoDB will create the itemcount attribute, set its initial value to 0, - // and finally add 3 to it. The result will be a new itemcount attribute in - // the item, with a value of 3. - // - // If the existing data type is a set, and if the Value is also a set, then - // the Value is added to the existing set. (This is a set operation, not mathematical - // addition.) For example, if the attribute value was the set [1,2], and the - // ADD action specified [3], then the final attribute value would be [1,2,3]. - // An error occurs if an Add action is specified for a set attribute and the - // attribute type specified does not match the existing set type. + // or decrement an attribute value which does not yet exist, DynamoDB uses + // 0 as the initial value. For example, suppose that the item you want to + // update does not yet have an attribute named itemcount, but you decide + // to ADD the number 3 to this attribute anyway, even though it currently + // does not exist. DynamoDB will create the itemcount attribute, set its + // initial value to 0, and finally add 3 to it. The result will be a new + // itemcount attribute in the item, with a value of 3. + // + // If the existing data type is a set, and if the Value is also a set, then + // the Value is added to the existing set. (This is a set operation, not + // mathematical addition.) For example, if the attribute value was the set + // [1,2], and the ADD action specified [3], then the final attribute value + // would be [1,2,3]. An error occurs if an Add action is specified for a + // set attribute and the attribute type specified does not match the existing + // set type. // // Both sets must have the same primitive data type. For example, if the existing - // data type is a set of strings, the Value must also be a set of strings. The - // same holds true for number sets and binary sets. + // data type is a set of strings, the Value must also be a set of strings. + // The same holds true for number sets and binary sets. // - // This action is only valid for an existing attribute whose data type is - // number or is a set. Do not use ADD for any other data types. + // This action is only valid for an existing attribute whose data type is number + // or is a set. Do not use ADD for any other data types. // - // If no item with the specified Key is found: + // If no item with the specified Key is found: // - // PUT - DynamoDB creates a new item with the specified primary key, and - // then adds the attribute. + // * PUT - DynamoDB creates a new item with the specified primary key, and + // then adds the attribute. // - // DELETE - Nothing happens; there is no attribute to delete. + // * DELETE - Nothing happens; there is no attribute to delete. // - // ADD - DynamoDB creates an item with the supplied primary key and number - // (or set of numbers) for the attribute value. The only data types allowed - // are number and number set; no other data types can be specified. + // * ADD - DynamoDB creates an item with the supplied primary key and number + // (or set of numbers) for the attribute value. The only data types allowed + // are number and number set; no other data types can be specified. Action *string `type:"string" enum:"AttributeAction"` - // Represents the data for an attribute. You can set one, and only one, of the - // elements. + // Represents the data for an attribute. // - // Each attribute in an item is a name-value pair. An attribute can be single-valued - // or multi-valued set. For example, a book item can have title and authors - // attributes. Each book has one title but can have many authors. The multi-valued - // attribute is a set; duplicate values are not allowed. + // Each attribute value is described as a name-value pair. The name is the data + // type, and the value is the data itself. + // + // For more information, see Data TYpes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes) + // in the Amazon DynamoDB Developer Guide. Value *AttributeValue `type:"structure"` } @@ -1737,7 +2288,20 @@ func (s AttributeValueUpdate) GoString() string { return s.String() } +// SetAction sets the Action field's value. +func (s *AttributeValueUpdate) SetAction(v string) *AttributeValueUpdate { + s.Action = &v + return s +} + +// SetValue sets the Value field's value. +func (s *AttributeValueUpdate) SetValue(v *AttributeValue) *AttributeValueUpdate { + s.Value = v + return s +} + // Represents the input of a BatchGetItem operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchGetItemInput type BatchGetItemInput struct { _ struct{} `type:"structure"` @@ -1747,80 +2311,66 @@ type BatchGetItemInput struct { // // Each element in the map of items to retrieve consists of the following: // - // ConsistentRead - If true, a strongly consistent read is used; if false - // (the default), an eventually consistent read is used. + // * ConsistentRead - If true, a strongly consistent read is used; if false + // (the default), an eventually consistent read is used. // - // ExpressionAttributeNames - One or more substitution tokens for attribute - // names in the ProjectionExpression parameter. The following are some use cases - // for using ExpressionAttributeNames: + // * ExpressionAttributeNames - One or more substitution tokens for attribute + // names in the ProjectionExpression parameter. The following are some use + // cases for using ExpressionAttributeNames: // - // To access an attribute whose name conflicts with a DynamoDB reserved word. + // To access an attribute whose name conflicts with a DynamoDB reserved word. // - // To create a placeholder for repeating occurrences of an attribute name - // in an expression. + // To create a placeholder for repeating occurrences of an attribute name in + // an expression. // - // To prevent special characters in an attribute name from being misinterpreted - // in an expression. + // To prevent special characters in an attribute name from being misinterpreted + // in an expression. // - // Use the # character in an expression to dereference an attribute name. - // For example, consider the following attribute name: + // Use the # character in an expression to dereference an attribute name. For + // example, consider the following attribute name: // - // Percentile + // Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot - // be used directly in an expression. (For the complete list of reserved words, - // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) - // in the Amazon DynamoDB Developer Guide). To work around this, you could specify - // the following for ExpressionAttributeNames: + // The name of this attribute conflicts with a reserved word, so it cannot be + // used directly in an expression. (For the complete list of reserved words, + // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) + // in the Amazon DynamoDB Developer Guide). To work around this, you could + // specify the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // #P = :val // - // Tokens that begin with the : character are expression attribute values, - // which are placeholders for the actual value at runtime. + // Tokens that begin with the : character are expression attribute values, which + // are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) - // in the Amazon DynamoDB Developer Guide. + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // in the Amazon DynamoDB Developer Guide. // - // Keys - An array of primary key attribute values that define specific - // items in the table. For each primary key, you must provide all of the key - // attributes. For example, with a simple primary key, you only need to provide - // the partition key value. For a composite key, you must provide both the partition - // key value and the sort key value. + // * Keys - An array of primary key attribute values that define specific + // items in the table. For each primary key, you must provide all of the + // key attributes. For example, with a simple primary key, you only need + // to provide the partition key value. For a composite key, you must provide + // both the partition key value and the sort key value. // - // ProjectionExpression - A string that identifies one or more attributes - // to retrieve from the table. These attributes can include scalars, sets, or - // elements of a JSON document. The attributes in the expression must be separated - // by commas. + // * ProjectionExpression - A string that identifies one or more attributes + // to retrieve from the table. These attributes can include scalars, sets, + // or elements of a JSON document. The attributes in the expression must + // be separated by commas. // // If no attribute names are specified, then all attributes will be returned. - // If any of the requested attributes are not found, they will not appear in - // the result. + // If any of the requested attributes are not found, they will not appear + // in the result. // // For more information, see Accessing Item Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) - // in the Amazon DynamoDB Developer Guide. - // - // AttributesToGet - + // in the Amazon DynamoDB Developer Guide. // - // This is a legacy parameter, for backward compatibility. New applications - // should use ProjectionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. - // - // This parameter allows you to retrieve attributes of type List or Map; however, - // it cannot retrieve individual elements within a List or a Map. - // - // The names of one or more attributes to retrieve. If no attribute names - // are provided, then all attributes will be returned. If any of the requested - // attributes are not found, they will not appear in the result. - // - // Note that AttributesToGet has no effect on provisioned throughput consumption. - // DynamoDB determines capacity units consumed based on item size, not on the - // amount of data that is returned to an application. + // * AttributesToGet - This is a legacy parameter. Use ProjectionExpression + // instead. For more information, see AttributesToGet (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html) + // in the Amazon DynamoDB Developer Guide. // // RequestItems is a required field RequestItems map[string]*KeysAndAttributes `min:"1" type:"map" required:"true"` @@ -1828,18 +2378,18 @@ type BatchGetItemInput struct { // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the - // operation, together with ConsumedCapacity for each table and secondary index - // that was accessed. + // * INDEXES - The response includes the aggregate ConsumedCapacity for the + // operation, together with ConsumedCapacity for each table and secondary + // index that was accessed. // // Note that some operations, such as GetItem and BatchGetItem, do not access - // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity - // information for table(s). + // any indexes at all. In these cases, specifying INDEXES will only return + // ConsumedCapacity information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // * TOTAL - The response includes only the aggregate ConsumedCapacity for + // the operation. // - // NONE - No ConsumedCapacity details are included in the response. + // * NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` } @@ -1879,17 +2429,30 @@ func (s *BatchGetItemInput) Validate() error { return nil } +// SetRequestItems sets the RequestItems field's value. +func (s *BatchGetItemInput) SetRequestItems(v map[string]*KeysAndAttributes) *BatchGetItemInput { + s.RequestItems = v + return s +} + +// SetReturnConsumedCapacity sets the ReturnConsumedCapacity field's value. +func (s *BatchGetItemInput) SetReturnConsumedCapacity(v string) *BatchGetItemInput { + s.ReturnConsumedCapacity = &v + return s +} + // Represents the output of a BatchGetItem operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchGetItemOutput type BatchGetItemOutput struct { _ struct{} `type:"structure"` - // The read capacity units consumed by the operation. + // The read capacity units consumed by the entire BatchGetItem operation. // // Each element consists of: // - // TableName - The table that consumed the provisioned throughput. + // * TableName - The table that consumed the provisioned throughput. // - // CapacityUnits - The total number of capacity units consumed. + // * CapacityUnits - The total number of capacity units consumed. ConsumedCapacity []*ConsumedCapacity `type:"list"` // A map of table name to a list of items. Each object in Responses consists @@ -1904,18 +2467,18 @@ type BatchGetItemOutput struct { // // Each element consists of: // - // Keys - An array of primary key attribute values that define specific - // items in the table. + // * Keys - An array of primary key attribute values that define specific + // items in the table. // - // AttributesToGet - One or more attributes to be retrieved from the table - // or index. By default, all attributes are returned. If a requested attribute - // is not found, it does not appear in the result. + // * ProjectionExpression - One or more attributes to be retrieved from the + // table or index. By default, all attributes are returned. If a requested + // attribute is not found, it does not appear in the result. // - // ConsistentRead - The consistency of a read operation. If set to true, - // then a strongly consistent read is used; otherwise, an eventually consistent - // read is used. + // * ConsistentRead - The consistency of a read operation. If set to true, + // then a strongly consistent read is used; otherwise, an eventually consistent + // read is used. // - // If there are no unprocessed keys remaining, the response contains an empty + // If there are no unprocessed keys remaining, the response contains an empty // UnprocessedKeys map. UnprocessedKeys map[string]*KeysAndAttributes `min:"1" type:"map"` } @@ -1930,7 +2493,26 @@ func (s BatchGetItemOutput) GoString() string { return s.String() } +// SetConsumedCapacity sets the ConsumedCapacity field's value. +func (s *BatchGetItemOutput) SetConsumedCapacity(v []*ConsumedCapacity) *BatchGetItemOutput { + s.ConsumedCapacity = v + return s +} + +// SetResponses sets the Responses field's value. +func (s *BatchGetItemOutput) SetResponses(v map[string][]map[string]*AttributeValue) *BatchGetItemOutput { + s.Responses = v + return s +} + +// SetUnprocessedKeys sets the UnprocessedKeys field's value. +func (s *BatchGetItemOutput) SetUnprocessedKeys(v map[string]*KeysAndAttributes) *BatchGetItemOutput { + s.UnprocessedKeys = v + return s +} + // Represents the input of a BatchWriteItem operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchWriteItemInput type BatchWriteItemInput struct { _ struct{} `type:"structure"` @@ -1938,28 +2520,28 @@ type BatchWriteItemInput struct { // to be performed (DeleteRequest or PutRequest). Each element in the map consists // of the following: // - // DeleteRequest - Perform a DeleteItem operation on the specified item. - // The item to be deleted is identified by a Key subelement: + // * DeleteRequest - Perform a DeleteItem operation on the specified item. + // The item to be deleted is identified by a Key subelement: // - // Key - A map of primary key attribute values that uniquely identify the - // ! item. Each entry in this map consists of an attribute name and an attribute - // value. For each primary key, you must provide all of the key attributes. - // For example, with a simple primary key, you only need to provide a value - // for the partition key. For a composite primary key, you must provide values - // for both the partition key and the sort key. + // Key - A map of primary key attribute values that uniquely identify the ! + // item. Each entry in this map consists of an attribute name and an attribute + // value. For each primary key, you must provide all of the key attributes. + // For example, with a simple primary key, you only need to provide a value + // for the partition key. For a composite primary key, you must provide values + // for both the partition key and the sort key. // - // PutRequest - Perform a PutItem operation on the specified item. The - // item to be put is identified by an Item subelement: + // * PutRequest - Perform a PutItem operation on the specified item. The + // item to be put is identified by an Item subelement: // - // Item - A map of attributes and their values. Each entry in this map consists - // of an attribute name and an attribute value. Attribute values must not be - // null; string and binary type attributes must have lengths greater than zero; - // and set type attributes must not be empty. Requests that contain empty values - // will be rejected with a ValidationException exception. + // Item - A map of attributes and their values. Each entry in this map consists + // of an attribute name and an attribute value. Attribute values must not + // be null; string and binary type attributes must have lengths greater than + // zero; and set type attributes must not be empty. Requests that contain + // empty values will be rejected with a ValidationException exception. // // If you specify any attributes that are part of an index key, then the data - // types for those attributes must match those of the schema in the table's - // attribute definition. + // types for those attributes must match those of the schema in the table's + // attribute definition. // // RequestItems is a required field RequestItems map[string][]*WriteRequest `min:"1" type:"map" required:"true"` @@ -1967,18 +2549,18 @@ type BatchWriteItemInput struct { // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the - // operation, together with ConsumedCapacity for each table and secondary index - // that was accessed. + // * INDEXES - The response includes the aggregate ConsumedCapacity for the + // operation, together with ConsumedCapacity for each table and secondary + // index that was accessed. // // Note that some operations, such as GetItem and BatchGetItem, do not access - // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity - // information for table(s). + // any indexes at all. In these cases, specifying INDEXES will only return + // ConsumedCapacity information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // * TOTAL - The response includes only the aggregate ConsumedCapacity for + // the operation. // - // NONE - No ConsumedCapacity details are included in the response. + // * NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` // Determines whether item collection metrics are returned. If set to SIZE, @@ -2014,17 +2596,36 @@ func (s *BatchWriteItemInput) Validate() error { return nil } +// SetRequestItems sets the RequestItems field's value. +func (s *BatchWriteItemInput) SetRequestItems(v map[string][]*WriteRequest) *BatchWriteItemInput { + s.RequestItems = v + return s +} + +// SetReturnConsumedCapacity sets the ReturnConsumedCapacity field's value. +func (s *BatchWriteItemInput) SetReturnConsumedCapacity(v string) *BatchWriteItemInput { + s.ReturnConsumedCapacity = &v + return s +} + +// SetReturnItemCollectionMetrics sets the ReturnItemCollectionMetrics field's value. +func (s *BatchWriteItemInput) SetReturnItemCollectionMetrics(v string) *BatchWriteItemInput { + s.ReturnItemCollectionMetrics = &v + return s +} + // Represents the output of a BatchWriteItem operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchWriteItemOutput type BatchWriteItemOutput struct { _ struct{} `type:"structure"` - // The capacity units consumed by the operation. + // The capacity units consumed by the entire BatchWriteItem operation. // // Each element consists of: // - // TableName - The table that consumed the provisioned throughput. + // * TableName - The table that consumed the provisioned throughput. // - // CapacityUnits - The total number of capacity units consumed. + // * CapacityUnits - The total number of capacity units consumed. ConsumedCapacity []*ConsumedCapacity `type:"list"` // A list of tables that were processed by BatchWriteItem and, for each table, @@ -2033,18 +2634,18 @@ type BatchWriteItemOutput struct { // // Each entry consists of the following subelements: // - // ItemCollectionKey - The partition key value of the item collection. This - // is the same as the partition key value of the item. + // * ItemCollectionKey - The partition key value of the item collection. + // This is the same as the partition key value of the item. // - // SizeEstimateRange - An estimate of item collection size, expressed in - // GB. This is a two-element array containing a lower bound and an upper bound - // for the estimate. The estimate includes the size of all the items in the - // table, plus the size of all attributes projected into all of the local secondary - // indexes on the table. Use this estimate to measure whether a local secondary - // index is approaching its size limit. + // * SizeEstimateRange - An estimate of item collection size, expressed in + // GB. This is a two-element array containing a lower bound and an upper + // bound for the estimate. The estimate includes the size of all the items + // in the table, plus the size of all attributes projected into all of the + // local secondary indexes on the table. Use this estimate to measure whether + // a local secondary index is approaching its size limit. // // The estimate is subject to change over time; therefore, do not rely on the - // precision or accuracy of the estimate. + // precision or accuracy of the estimate. ItemCollectionMetrics map[string][]*ItemCollectionMetrics `type:"map"` // A map of tables and requests against those tables that were not processed. @@ -2055,28 +2656,28 @@ type BatchWriteItemOutput struct { // Each UnprocessedItems entry consists of a table name and, for that table, // a list of operations to perform (DeleteRequest or PutRequest). // - // DeleteRequest - Perform a DeleteItem operation on the specified item. - // The item to be deleted is identified by a Key subelement: + // * DeleteRequest - Perform a DeleteItem operation on the specified item. + // The item to be deleted is identified by a Key subelement: // - // Key - A map of primary key attribute values that uniquely identify the - // item. Each entry in this map consists of an attribute name and an attribute - // value. + // Key - A map of primary key attribute values that uniquely identify the item. + // Each entry in this map consists of an attribute name and an attribute + // value. // - // PutRequest - Perform a PutItem operation on the specified item. The - // item to be put is identified by an Item subelement: + // * PutRequest - Perform a PutItem operation on the specified item. The + // item to be put is identified by an Item subelement: // - // Item - A map of attributes and their values. Each entry in this map consists - // of an attribute name and an attribute value. Attribute values must not be - // null; string and binary type attributes must have lengths greater than zero; - // and set type attributes must not be empty. Requests that contain empty values - // will be rejected with a ValidationException exception. + // Item - A map of attributes and their values. Each entry in this map consists + // of an attribute name and an attribute value. Attribute values must not + // be null; string and binary type attributes must have lengths greater than + // zero; and set type attributes must not be empty. Requests that contain + // empty values will be rejected with a ValidationException exception. // // If you specify any attributes that are part of an index key, then the data - // types for those attributes must match those of the schema in the table's - // attribute definition. + // types for those attributes must match those of the schema in the table's + // attribute definition. // - // If there are no unprocessed items remaining, the response contains an - // empty UnprocessedItems map. + // If there are no unprocessed items remaining, the response contains an empty + // UnprocessedItems map. UnprocessedItems map[string][]*WriteRequest `min:"1" type:"map"` } @@ -2090,8 +2691,27 @@ func (s BatchWriteItemOutput) GoString() string { return s.String() } +// SetConsumedCapacity sets the ConsumedCapacity field's value. +func (s *BatchWriteItemOutput) SetConsumedCapacity(v []*ConsumedCapacity) *BatchWriteItemOutput { + s.ConsumedCapacity = v + return s +} + +// SetItemCollectionMetrics sets the ItemCollectionMetrics field's value. +func (s *BatchWriteItemOutput) SetItemCollectionMetrics(v map[string][]*ItemCollectionMetrics) *BatchWriteItemOutput { + s.ItemCollectionMetrics = v + return s +} + +// SetUnprocessedItems sets the UnprocessedItems field's value. +func (s *BatchWriteItemOutput) SetUnprocessedItems(v map[string][]*WriteRequest) *BatchWriteItemOutput { + s.UnprocessedItems = v + return s +} + // Represents the amount of provisioned throughput capacity consumed on a table // or an index. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/Capacity type Capacity struct { _ struct{} `type:"structure"` @@ -2109,19 +2729,26 @@ func (s Capacity) GoString() string { return s.String() } +// SetCapacityUnits sets the CapacityUnits field's value. +func (s *Capacity) SetCapacityUnits(v float64) *Capacity { + s.CapacityUnits = &v + return s +} + // Represents the selection criteria for a Query or Scan operation: // -// For a Query operation, Condition is used for specifying the KeyConditions -// to use when querying a table or an index. For KeyConditions, only the following -// comparison operators are supported: +// * For a Query operation, Condition is used for specifying the KeyConditions +// to use when querying a table or an index. For KeyConditions, only the +// following comparison operators are supported: // -// EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN +// EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN // -// Condition is also used in a QueryFilter, which evaluates the query results -// and returns only the desired values. +// Condition is also used in a QueryFilter, which evaluates the query results +// and returns only the desired values. // -// For a Scan operation, Condition is used in a ScanFilter, which evaluates -// the scan results and returns only the desired values. +// * For a Scan operation, Condition is used in a ScanFilter, which evaluates +// the scan results and returns only the desired values. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/Condition type Condition struct { _ struct{} `type:"structure"` @@ -2144,132 +2771,42 @@ type Condition struct { // // The following comparison operators are available: // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS - // | BEGINS_WITH | IN | BETWEEN + // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | + // BEGINS_WITH | IN | BETWEEN // // The following are descriptions of each comparison operator. // - // EQ : Equal. EQ is supported for all datatypes, including lists and maps. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, Binary, String Set, Number Set, or Binary Set. If an item - // contains an AttributeValue element of a different type than the one provided - // in the request, the value does not match. For example, {"S":"6"} does not - // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // * EQ : Equal. EQ is supported for all data types, including lists and + // maps. // - // NE : Not equal. NE is supported for all datatypes, including lists and - // maps. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, Binary, String Set, Number Set, or Binary Set. If an item contains + // an AttributeValue element of a different type than the one provided in + // the request, the value does not match. For example, {"S":"6"} does not + // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, Binary, String Set, Number Set, or Binary Set. If an item contains - // an AttributeValue of a different type than the one provided in the request, - // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // * NE : Not equal. NE is supported for all data types, including lists + // and maps. // - // LE : Less than or equal. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. + // * AttributeValueList can contain only one AttributeValue of type String, + // Number, Binary, String Set, Number Set, or Binary Set. If an item contains + // an AttributeValue of a different type than the one provided in the request, + // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. + // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // LT : Less than. + // * LE : Less than or equal. // - // AttributeValueList can contain only one AttributeValue of type String, + // AttributeValueList can contain only one AttributeValue element of type String, // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // GE : Greater than or equal. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // GT : Greater than. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, - // including lists and maps. - // - // This operator tests for the existence of an attribute, not its data type. - // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, - // the result is a Boolean true. This result is because the attribute "a" exists; - // its data type is not relevant to the NOT_NULL comparison operator. - // - // NULL : The attribute does not exist. NULL is supported for all datatypes, - // including lists and maps. - // - // This operator tests for the nonexistence of an attribute, not its data - // type. If the data type of attribute "a" is null, and you evaluate it using - // NULL, the result is a Boolean false. This is because the attribute "a" exists; - // its data type is not relevant to the NULL comparison operator. - // - // CONTAINS : Checks for a subsequence, or value in a set. + // LT: Less than. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is of type String, then the operator checks for a substring match. - // If the target attribute of the comparison is of type Binary, then the operator - // looks for a subsequence of the target that matches the input. If the target - // attribute of the comparison is a set ("SS", "NS", or "BS"), then the operator - // evaluates to true if it finds an exact match with any member of the set. - // - // CONTAINS is supported for lists: When evaluating "a CONTAINS b", "a" can - // be a list; however, "b" cannot be a set, a map, or a list. - // - // NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value - // in a set. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is a String, then the operator checks for the absence of a substring - // match. If the target attribute of the comparison is Binary, then the operator - // checks for the absence of a subsequence of the target that matches the input. - // If the target attribute of the comparison is a set ("SS", "NS", or "BS"), - // then the operator evaluates to true if it does not find an exact match with - // any member of the set. - // - // NOT_CONTAINS is supported for lists: When evaluating "a NOT CONTAINS b", - // "a" can be a list; however, "b" cannot be a set, a map, or a list. - // - // BEGINS_WITH : Checks for a prefix. - // - // AttributeValueList can contain only one AttributeValue of type String or - // Binary (not a Number or a set type). The target attribute of the comparison - // must be of type String or Binary (not a Number or a set type). - // - // IN : Checks for matching elements within two sets. - // - // AttributeValueList can contain one or more AttributeValue elements of type - // String, Number, or Binary (not a set type). These attributes are compared - // against an existing set type attribute of an item. If any elements of the - // input set are present in the item attribute, the expression evaluates to - // true. - // - // BETWEEN : Greater than or equal to the first value, and less than or - // equal to the second value. - // - // AttributeValueList must contain two AttributeValue elements of the same - // type, either String, Number, or Binary (not a set type). A target attribute - // matches if the target value is greater than, or equal to, the first element - // and less than, or equal to, the second element. If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not compare to {"N":"6"}. Also, - // {"N":"6"} does not compare to {"NS":["6", "2", "1"]} - // - // For usage examples of AttributeValueList and ComparisonOperator, see Legacy - // Conditional Parameters (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html) - // in the Amazon DynamoDB Developer Guide. + // AttributeValueListcan contain only one AttributeValueof type String, Number, or Binary (not a set type). If an item contains an + // AttributeValueelement of a different type than the one provided in the request, the value + // does not match. For example, {"S":"6"}does not equal {"N":"6"}. Also, {"N":"6"}does not compare to {"NS":["6", "2", "1"]} // // ComparisonOperator is a required field ComparisonOperator *string `type:"string" required:"true" enum:"ComparisonOperator"` @@ -2298,12 +2835,25 @@ func (s *Condition) Validate() error { return nil } +// SetAttributeValueList sets the AttributeValueList field's value. +func (s *Condition) SetAttributeValueList(v []*AttributeValue) *Condition { + s.AttributeValueList = v + return s +} + +// SetComparisonOperator sets the ComparisonOperator field's value. +func (s *Condition) SetComparisonOperator(v string) *Condition { + s.ComparisonOperator = &v + return s +} + // The capacity units consumed by an operation. The data returned includes the // total provisioned throughput consumed, along with statistics for the table // and any indexes involved in the operation. ConsumedCapacity is only returned // if the request asked for it. For more information, see Provisioned Throughput // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) // in the Amazon DynamoDB Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ConsumedCapacity type ConsumedCapacity struct { _ struct{} `type:"structure"` @@ -2333,7 +2883,38 @@ func (s ConsumedCapacity) GoString() string { return s.String() } +// SetCapacityUnits sets the CapacityUnits field's value. +func (s *ConsumedCapacity) SetCapacityUnits(v float64) *ConsumedCapacity { + s.CapacityUnits = &v + return s +} + +// SetGlobalSecondaryIndexes sets the GlobalSecondaryIndexes field's value. +func (s *ConsumedCapacity) SetGlobalSecondaryIndexes(v map[string]*Capacity) *ConsumedCapacity { + s.GlobalSecondaryIndexes = v + return s +} + +// SetLocalSecondaryIndexes sets the LocalSecondaryIndexes field's value. +func (s *ConsumedCapacity) SetLocalSecondaryIndexes(v map[string]*Capacity) *ConsumedCapacity { + s.LocalSecondaryIndexes = v + return s +} + +// SetTable sets the Table field's value. +func (s *ConsumedCapacity) SetTable(v *Capacity) *ConsumedCapacity { + s.Table = v + return s +} + +// SetTableName sets the TableName field's value. +func (s *ConsumedCapacity) SetTableName(v string) *ConsumedCapacity { + s.TableName = &v + return s +} + // Represents a new global secondary index to be added to an existing table. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/CreateGlobalSecondaryIndexAction type CreateGlobalSecondaryIndexAction struct { _ struct{} `type:"structure"` @@ -2354,8 +2935,8 @@ type CreateGlobalSecondaryIndexAction struct { // Projection is a required field Projection *Projection `type:"structure" required:"true"` - // Represents the provisioned throughput settings for a specified table or index. - // The settings can be modified using the UpdateTable operation. + // Represents the provisioned throughput settings for the specified global secondary + // index. // // For current minimum and maximum provisioned throughput values, see Limits // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) @@ -2423,7 +3004,32 @@ func (s *CreateGlobalSecondaryIndexAction) Validate() error { return nil } +// SetIndexName sets the IndexName field's value. +func (s *CreateGlobalSecondaryIndexAction) SetIndexName(v string) *CreateGlobalSecondaryIndexAction { + s.IndexName = &v + return s +} + +// SetKeySchema sets the KeySchema field's value. +func (s *CreateGlobalSecondaryIndexAction) SetKeySchema(v []*KeySchemaElement) *CreateGlobalSecondaryIndexAction { + s.KeySchema = v + return s +} + +// SetProjection sets the Projection field's value. +func (s *CreateGlobalSecondaryIndexAction) SetProjection(v *Projection) *CreateGlobalSecondaryIndexAction { + s.Projection = v + return s +} + +// SetProvisionedThroughput sets the ProvisionedThroughput field's value. +func (s *CreateGlobalSecondaryIndexAction) SetProvisionedThroughput(v *ProvisionedThroughput) *CreateGlobalSecondaryIndexAction { + s.ProvisionedThroughput = v + return s +} + // Represents the input of a CreateTable operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/CreateTableInput type CreateTableInput struct { _ struct{} `type:"structure"` @@ -2435,33 +3041,33 @@ type CreateTableInput struct { // One or more global secondary indexes (the maximum is five) to be created // on the table. Each global secondary index in the array includes the following: // - // IndexName - The name of the global secondary index. Must be unique only - // for this table. + // * IndexName - The name of the global secondary index. Must be unique only + // for this table. // - // KeySchema - Specifies the key schema for the global secondary index. + // * KeySchema - Specifies the key schema for the global secondary index. // - // Projection - Specifies attributes that are copied (projected) from the - // table into the index. These are in addition to the primary key attributes - // and index key attributes, which are automatically projected. Each attribute - // specification is composed of: + // * Projection - Specifies attributes that are copied (projected) from the + // table into the index. These are in addition to the primary key attributes + // and index key attributes, which are automatically projected. Each attribute + // specification is composed of: // - // ProjectionType - One of the following: + // * ProjectionType - One of the following: // - // KEYS_ONLY - Only the index and primary keys are projected into the index. + // KEYS_ONLY - Only the index and primary keys are projected into the index. // - // INCLUDE - Only the specified table attributes are projected into the - // index. The list of projected attributes are in NonKeyAttributes. + // INCLUDE - Only the specified table attributes are projected into the index. + // The list of projected attributes are in NonKeyAttributes. // - // ALL - All of the table attributes are projected into the index. + // ALL - All of the table attributes are projected into the index. // - // NonKeyAttributes - A list of one or more non-key attribute names that - // are projected into the secondary index. The total count of attributes provided - // in NonKeyAttributes, summed across all of the secondary indexes, must not - // exceed 20. If you project the same attribute into two different indexes, - // this counts as two distinct attributes when determining the total. + // NonKeyAttributes - A list of one or more non-key attribute names that are + // projected into the secondary index. The total count of attributes provided + // in NonKeyAttributes, summed across all of the secondary indexes, must + // not exceed 20. If you project the same attribute into two different indexes, + // this counts as two distinct attributes when determining the total. // - // ProvisionedThroughput - The provisioned throughput settings for the - // global secondary index, consisting of read and write capacity units. + // * ProvisionedThroughput - The provisioned throughput settings for the + // global secondary index, consisting of read and write capacity units. GlobalSecondaryIndexes []*GlobalSecondaryIndex `type:"list"` // Specifies the attributes that make up the primary key for a table or an index. @@ -2471,16 +3077,16 @@ type CreateTableInput struct { // // Each KeySchemaElement in the array is composed of: // - // AttributeName - The name of this key attribute. + // * AttributeName - The name of this key attribute. // - // KeyType - The role that the key attribute will assume: + // * KeyType - The role that the key attribute will assume: // - // HASH - partition key + // HASH - partition key // - // RANGE - sort key + // RANGE - sort key // - // The partition key of an item is also known as its hash attribute. The - // term "hash attribute" derives from DynamoDB' usage of an internal hash function + // The partition key of an item is also known as its hash attribute. The term + // "hash attribute" derives from DynamoDB' usage of an internal hash function // to evenly distribute data items across partitions, based on their partition // key values. // @@ -2488,8 +3094,8 @@ type CreateTableInput struct { // attribute" derives from the way DynamoDB stores items with the same partition // key physically close together, in sorted order by the sort key value. // - // For a simple primary key (partition key), you must provide exactly one - // element with a KeyType of HASH. + // For a simple primary key (partition key), you must provide exactly one element + // with a KeyType of HASH. // // For a composite primary key (partition key and sort key), you must provide // exactly two elements, in this order: The first element must have a KeyType @@ -2508,31 +3114,31 @@ type CreateTableInput struct { // // Each local secondary index in the array includes the following: // - // IndexName - The name of the local secondary index. Must be unique only - // for this table. + // * IndexName - The name of the local secondary index. Must be unique only + // for this table. // - // KeySchema - Specifies the key schema for the local secondary index. - // The key schema must begin with the same partition key as the table. + // * KeySchema - Specifies the key schema for the local secondary index. + // The key schema must begin with the same partition key as the table. // - // Projection - Specifies attributes that are copied (projected) from the - // table into the index. These are in addition to the primary key attributes - // and index key attributes, which are automatically projected. Each attribute - // specification is composed of: + // * Projection - Specifies attributes that are copied (projected) from the + // table into the index. These are in addition to the primary key attributes + // and index key attributes, which are automatically projected. Each attribute + // specification is composed of: // - // ProjectionType - One of the following: + // * ProjectionType - One of the following: // - // KEYS_ONLY - Only the index and primary keys are projected into the index. + // KEYS_ONLY - Only the index and primary keys are projected into the index. // - // INCLUDE - Only the specified table attributes are projected into the - // index. The list of projected attributes are in NonKeyAttributes. + // INCLUDE - Only the specified table attributes are projected into the index. + // The list of projected attributes are in NonKeyAttributes. // - // ALL - All of the table attributes are projected into the index. + // ALL - All of the table attributes are projected into the index. // - // NonKeyAttributes - A list of one or more non-key attribute names that - // are projected into the secondary index. The total count of attributes provided - // in NonKeyAttributes, summed across all of the secondary indexes, must not - // exceed 20. If you project the same attribute into two different indexes, - // this counts as two distinct attributes when determining the total. + // NonKeyAttributes - A list of one or more non-key attribute names that are + // projected into the secondary index. The total count of attributes provided + // in NonKeyAttributes, summed across all of the secondary indexes, must + // not exceed 20. If you project the same attribute into two different indexes, + // this counts as two distinct attributes when determining the total. LocalSecondaryIndexes []*LocalSecondaryIndex `type:"list"` // Represents the provisioned throughput settings for a specified table or index. @@ -2547,24 +3153,24 @@ type CreateTableInput struct { // The settings for DynamoDB Streams on the table. These settings consist of: // - // StreamEnabled - Indicates whether Streams is to be enabled (true) or - // disabled (false). + // * StreamEnabled - Indicates whether Streams is to be enabled (true) or + // disabled (false). // - // StreamViewType - When an item in the table is modified, StreamViewType - // determines what information is written to the table's stream. Valid values - // for StreamViewType are: + // * StreamViewType - When an item in the table is modified, StreamViewType + // determines what information is written to the table's stream. Valid values + // for StreamViewType are: // - // KEYS_ONLY - Only the key attributes of the modified item are written - // to the stream. + // KEYS_ONLY - Only the key attributes of the modified item are written to the + // stream. // - // NEW_IMAGE - The entire item, as it appears after it was modified, is - // written to the stream. + // NEW_IMAGE - The entire item, as it appears after it was modified, is written + // to the stream. // - // OLD_IMAGE - The entire item, as it appeared before it was modified, is - // written to the stream. + // OLD_IMAGE - The entire item, as it appeared before it was modified, is written + // to the stream. // - // NEW_AND_OLD_IMAGES - Both the new and the old item images of the item - // are written to the stream. + // NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are + // written to the stream. StreamSpecification *StreamSpecification `type:"structure"` // The name of the table to create. @@ -2656,11 +3262,54 @@ func (s *CreateTableInput) Validate() error { return nil } +// SetAttributeDefinitions sets the AttributeDefinitions field's value. +func (s *CreateTableInput) SetAttributeDefinitions(v []*AttributeDefinition) *CreateTableInput { + s.AttributeDefinitions = v + return s +} + +// SetGlobalSecondaryIndexes sets the GlobalSecondaryIndexes field's value. +func (s *CreateTableInput) SetGlobalSecondaryIndexes(v []*GlobalSecondaryIndex) *CreateTableInput { + s.GlobalSecondaryIndexes = v + return s +} + +// SetKeySchema sets the KeySchema field's value. +func (s *CreateTableInput) SetKeySchema(v []*KeySchemaElement) *CreateTableInput { + s.KeySchema = v + return s +} + +// SetLocalSecondaryIndexes sets the LocalSecondaryIndexes field's value. +func (s *CreateTableInput) SetLocalSecondaryIndexes(v []*LocalSecondaryIndex) *CreateTableInput { + s.LocalSecondaryIndexes = v + return s +} + +// SetProvisionedThroughput sets the ProvisionedThroughput field's value. +func (s *CreateTableInput) SetProvisionedThroughput(v *ProvisionedThroughput) *CreateTableInput { + s.ProvisionedThroughput = v + return s +} + +// SetStreamSpecification sets the StreamSpecification field's value. +func (s *CreateTableInput) SetStreamSpecification(v *StreamSpecification) *CreateTableInput { + s.StreamSpecification = v + return s +} + +// SetTableName sets the TableName field's value. +func (s *CreateTableInput) SetTableName(v string) *CreateTableInput { + s.TableName = &v + return s +} + // Represents the output of a CreateTable operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/CreateTableOutput type CreateTableOutput struct { _ struct{} `type:"structure"` - // Represents the properties of a table. + // Represents the properties of the table. TableDescription *TableDescription `type:"structure"` } @@ -2674,7 +3323,14 @@ func (s CreateTableOutput) GoString() string { return s.String() } +// SetTableDescription sets the TableDescription field's value. +func (s *CreateTableOutput) SetTableDescription(v *TableDescription) *CreateTableOutput { + s.TableDescription = v + return s +} + // Represents a global secondary index to be deleted from an existing table. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DeleteGlobalSecondaryIndexAction type DeleteGlobalSecondaryIndexAction struct { _ struct{} `type:"structure"` @@ -2710,7 +3366,14 @@ func (s *DeleteGlobalSecondaryIndexAction) Validate() error { return nil } +// SetIndexName sets the IndexName field's value. +func (s *DeleteGlobalSecondaryIndexAction) SetIndexName(v string) *DeleteGlobalSecondaryIndexAction { + s.IndexName = &v + return s +} + // Represents the input of a DeleteItem operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DeleteItemInput type DeleteItemInput struct { _ struct{} `type:"structure"` @@ -2719,292 +3382,83 @@ type DeleteItemInput struct { // // An expression can contain any of the following: // - // Functions: attribute_exists | attribute_not_exists | attribute_type | - // contains | begins_with | size + // * Functions: attribute_exists | attribute_not_exists | attribute_type + // | contains | begins_with | size // // These function names are case-sensitive. // - // Comparison operators: = | <> | < | > | <= | - // >= | BETWEEN | IN + // * Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN // - // Logical operators: AND | OR | NOT + // * Logical operators: AND | OR | NOT // - // For more information on condition expressions, see Specifying Conditions + // For more information on condition expressions, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) // in the Amazon DynamoDB Developer Guide. - // - // ConditionExpression replaces the legacy ConditionalOperator and Expected - // parameters. ConditionExpression *string `type:"string"` - // This is a legacy parameter, for backward compatibility. New applications - // should use ConditionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. + // This is a legacy parameter. Use ConditionExpression instead. For more information, + // see ConditionalOperator (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) + // in the Amazon DynamoDB Developer Guide. + ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` + + // This is a legacy parameter. Use ConditionExpresssion instead. For more information, + // see Expected (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html) + // in the Amazon DynamoDB Developer Guide. + Expected map[string]*ExpectedAttributeValue `type:"map"` + + // One or more substitution tokens for attribute names in an expression. The + // following are some use cases for using ExpressionAttributeNames: // - // A logical operator to apply to the conditions in the Expected map: + // * To access an attribute whose name conflicts with a DynamoDB reserved + // word. // - // AND - If all of the conditions evaluate to true, then the entire map - // evaluates to true. + // * To create a placeholder for repeating occurrences of an attribute name + // in an expression. // - // OR - If at least one of the conditions evaluate to true, then the entire - // map evaluates to true. + // * To prevent special characters in an attribute name from being misinterpreted + // in an expression. // - // If you omit ConditionalOperator, then AND is the default. + // Use the # character in an expression to dereference an attribute name. For + // example, consider the following attribute name: // - // The operation will succeed only if the entire map evaluates to true. + // * Percentile // - // This parameter does not support attributes of type List or Map. - ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` - - // This is a legacy parameter, for backward compatibility. New applications - // should use ConditionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. + // The name of this attribute conflicts with a reserved word, so it cannot be + // used directly in an expression. (For the complete list of reserved words, + // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) + // in the Amazon DynamoDB Developer Guide). To work around this, you could specify + // the following for ExpressionAttributeNames: // - // A map of attribute/condition pairs. Expected provides a conditional block - // for the DeleteItem operation. + // * {"#P":"Percentile"} // - // Each element of Expected consists of an attribute name, a comparison operator, - // and one or more values. DynamoDB compares the attribute with the value(s) - // you supplied, using the comparison operator. For each Expected element, the - // result of the evaluation is either true or false. + // You could then use this substitution in an expression, as in this example: // - // If you specify more than one element in the Expected map, then by default - // all of the conditions must evaluate to true. In other words, the conditions - // are ANDed together. (You can use the ConditionalOperator parameter to OR - // the conditions instead. If you do this, then at least one of the conditions - // must evaluate to true, rather than all of them.) + // * #P = :val // - // If the Expected map evaluates to true, then the conditional operation succeeds; - // otherwise, it fails. + // Tokens that begin with the : character are expression attribute values, which + // are placeholders for the actual value at runtime. // - // Expected contains the following: + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // in the Amazon DynamoDB Developer Guide. + ExpressionAttributeNames map[string]*string `type:"map"` + + // One or more values that can be substituted in an expression. // - // AttributeValueList - One or more values to evaluate against the supplied - // attribute. The number of values in the list depends on the ComparisonOperator - // being used. + // Use the : (colon) character in an expression to dereference an attribute + // value. For example, suppose that you wanted to check whether the value of + // the ProductStatus attribute was one of the following: // - // For type Number, value comparisons are numeric. - // - // String value comparisons for greater than, equals, or less than are based - // on ASCII character code values. For example, a is greater than A, and a is - // greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). - // - // For type Binary, DynamoDB treats each byte of the binary data as unsigned - // when it compares binary values. - // - // ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. - // When performing the comparison, DynamoDB uses strongly consistent reads. - // - // The following comparison operators are available: - // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS - // | BEGINS_WITH | IN | BETWEEN - // - // The following are descriptions of each comparison operator. - // - // EQ : Equal. EQ is supported for all datatypes, including lists and maps. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, Binary, String Set, Number Set, or Binary Set. If an item - // contains an AttributeValue element of a different type than the one provided - // in the request, the value does not match. For example, {"S":"6"} does not - // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. - // - // NE : Not equal. NE is supported for all datatypes, including lists and - // maps. - // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, Binary, String Set, Number Set, or Binary Set. If an item contains - // an AttributeValue of a different type than the one provided in the request, - // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. - // - // LE : Less than or equal. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // LT : Less than. - // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // GE : Greater than or equal. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // GT : Greater than. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, - // including lists and maps. - // - // This operator tests for the existence of an attribute, not its data type. - // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, - // the result is a Boolean true. This result is because the attribute "a" exists; - // its data type is not relevant to the NOT_NULL comparison operator. - // - // NULL : The attribute does not exist. NULL is supported for all datatypes, - // including lists and maps. - // - // This operator tests for the nonexistence of an attribute, not its data - // type. If the data type of attribute "a" is null, and you evaluate it using - // NULL, the result is a Boolean false. This is because the attribute "a" exists; - // its data type is not relevant to the NULL comparison operator. - // - // CONTAINS : Checks for a subsequence, or value in a set. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is of type String, then the operator checks for a substring match. - // If the target attribute of the comparison is of type Binary, then the operator - // looks for a subsequence of the target that matches the input. If the target - // attribute of the comparison is a set ("SS", "NS", or "BS"), then the operator - // evaluates to true if it finds an exact match with any member of the set. - // - // CONTAINS is supported for lists: When evaluating "a CONTAINS b", "a" can - // be a list; however, "b" cannot be a set, a map, or a list. - // - // NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value - // in a set. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is a String, then the operator checks for the absence of a substring - // match. If the target attribute of the comparison is Binary, then the operator - // checks for the absence of a subsequence of the target that matches the input. - // If the target attribute of the comparison is a set ("SS", "NS", or "BS"), - // then the operator evaluates to true if it does not find an exact match with - // any member of the set. - // - // NOT_CONTAINS is supported for lists: When evaluating "a NOT CONTAINS b", - // "a" can be a list; however, "b" cannot be a set, a map, or a list. - // - // BEGINS_WITH : Checks for a prefix. - // - // AttributeValueList can contain only one AttributeValue of type String or - // Binary (not a Number or a set type). The target attribute of the comparison - // must be of type String or Binary (not a Number or a set type). - // - // IN : Checks for matching elements within two sets. - // - // AttributeValueList can contain one or more AttributeValue elements of type - // String, Number, or Binary (not a set type). These attributes are compared - // against an existing set type attribute of an item. If any elements of the - // input set are present in the item attribute, the expression evaluates to - // true. - // - // BETWEEN : Greater than or equal to the first value, and less than or - // equal to the second value. - // - // AttributeValueList must contain two AttributeValue elements of the same - // type, either String, Number, or Binary (not a set type). A target attribute - // matches if the target value is greater than, or equal to, the first element - // and less than, or equal to, the second element. If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not compare to {"N":"6"}. Also, - // {"N":"6"} does not compare to {"NS":["6", "2", "1"]} - // - // For usage examples of AttributeValueList and ComparisonOperator, see - // Legacy Conditional Parameters (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html) - // in the Amazon DynamoDB Developer Guide. - // - // For backward compatibility with previous DynamoDB releases, the following - // parameters can be used instead of AttributeValueList and ComparisonOperator: - // - // Value - A value for DynamoDB to compare with an attribute. - // - // Exists - A Boolean value that causes DynamoDB to evaluate the value before - // attempting the conditional operation: - // - // If Exists is true, DynamoDB will check to see if that attribute value - // already exists in the table. If it is found, then the condition evaluates - // to true; otherwise the condition evaluate to false. - // - // If Exists is false, DynamoDB assumes that the attribute value does not - // exist in the table. If in fact the value does not exist, then the assumption - // is valid and the condition evaluates to true. If the value is found, despite - // the assumption that it does not exist, the condition evaluates to false. - // - // Note that the default value for Exists is true. - // - // The Value and Exists parameters are incompatible with AttributeValueList - // and ComparisonOperator. Note that if you use both sets of parameters at once, - // DynamoDB will return a ValidationException exception. - // - // This parameter does not support attributes of type List or Map. - Expected map[string]*ExpectedAttributeValue `type:"map"` - - // One or more substitution tokens for attribute names in an expression. The - // following are some use cases for using ExpressionAttributeNames: - // - // To access an attribute whose name conflicts with a DynamoDB reserved word. - // - // To create a placeholder for repeating occurrences of an attribute name - // in an expression. - // - // To prevent special characters in an attribute name from being misinterpreted - // in an expression. - // - // Use the # character in an expression to dereference an attribute name. - // For example, consider the following attribute name: - // - // Percentile - // - // The name of this attribute conflicts with a reserved word, so it cannot - // be used directly in an expression. (For the complete list of reserved words, - // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) - // in the Amazon DynamoDB Developer Guide). To work around this, you could specify - // the following for ExpressionAttributeNames: - // - // {"#P":"Percentile"} - // - // You could then use this substitution in an expression, as in this example: - // - // #P = :val - // - // Tokens that begin with the : character are expression attribute values, - // which are placeholders for the actual value at runtime. - // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) - // in the Amazon DynamoDB Developer Guide. - ExpressionAttributeNames map[string]*string `type:"map"` - - // One or more values that can be substituted in an expression. - // - // Use the : (colon) character in an expression to dereference an attribute - // value. For example, suppose that you wanted to check whether the value of - // the ProductStatus attribute was one of the following: - // - // Available | Backordered | Discontinued + // Available | Backordered | Discontinued // // You would first need to specify ExpressionAttributeValues as follows: // - // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} + // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} // } // // You could then use these values in an expression, such as this: // - // ProductStatus IN (:avail, :back, :disc) + // ProductStatus IN (:avail, :back, :disc) // // For more information on expression attribute values, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) @@ -3025,18 +3479,18 @@ type DeleteItemInput struct { // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the - // operation, together with ConsumedCapacity for each table and secondary index - // that was accessed. + // * INDEXES - The response includes the aggregate ConsumedCapacity for the + // operation, together with ConsumedCapacity for each table and secondary + // index that was accessed. // // Note that some operations, such as GetItem and BatchGetItem, do not access - // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity - // information for table(s). + // any indexes at all. In these cases, specifying INDEXES will only return + // ConsumedCapacity information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // * TOTAL - The response includes only the aggregate ConsumedCapacity for + // the operation. // - // NONE - No ConsumedCapacity details are included in the response. + // * NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` // Determines whether item collection metrics are returned. If set to SIZE, @@ -3048,12 +3502,12 @@ type DeleteItemInput struct { // Use ReturnValues if you want to get the item attributes as they appeared // before they were deleted. For DeleteItem, the valid values are: // - // NONE - If ReturnValues is not specified, or if its value is NONE, then - // nothing is returned. (This setting is the default for ReturnValues.) + // * NONE - If ReturnValues is not specified, or if its value is NONE, then + // nothing is returned. (This setting is the default for ReturnValues.) // - // ALL_OLD - The content of the old item is returned. + // * ALL_OLD - The content of the old item is returned. // - // The ReturnValues parameter is used by several DynamoDB operations; however, + // The ReturnValues parameter is used by several DynamoDB operations; however, // DeleteItem does not recognize any values other than NONE or ALL_OLD. ReturnValues *string `type:"string" enum:"ReturnValue"` @@ -3092,7 +3546,68 @@ func (s *DeleteItemInput) Validate() error { return nil } +// SetConditionExpression sets the ConditionExpression field's value. +func (s *DeleteItemInput) SetConditionExpression(v string) *DeleteItemInput { + s.ConditionExpression = &v + return s +} + +// SetConditionalOperator sets the ConditionalOperator field's value. +func (s *DeleteItemInput) SetConditionalOperator(v string) *DeleteItemInput { + s.ConditionalOperator = &v + return s +} + +// SetExpected sets the Expected field's value. +func (s *DeleteItemInput) SetExpected(v map[string]*ExpectedAttributeValue) *DeleteItemInput { + s.Expected = v + return s +} + +// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. +func (s *DeleteItemInput) SetExpressionAttributeNames(v map[string]*string) *DeleteItemInput { + s.ExpressionAttributeNames = v + return s +} + +// SetExpressionAttributeValues sets the ExpressionAttributeValues field's value. +func (s *DeleteItemInput) SetExpressionAttributeValues(v map[string]*AttributeValue) *DeleteItemInput { + s.ExpressionAttributeValues = v + return s +} + +// SetKey sets the Key field's value. +func (s *DeleteItemInput) SetKey(v map[string]*AttributeValue) *DeleteItemInput { + s.Key = v + return s +} + +// SetReturnConsumedCapacity sets the ReturnConsumedCapacity field's value. +func (s *DeleteItemInput) SetReturnConsumedCapacity(v string) *DeleteItemInput { + s.ReturnConsumedCapacity = &v + return s +} + +// SetReturnItemCollectionMetrics sets the ReturnItemCollectionMetrics field's value. +func (s *DeleteItemInput) SetReturnItemCollectionMetrics(v string) *DeleteItemInput { + s.ReturnItemCollectionMetrics = &v + return s +} + +// SetReturnValues sets the ReturnValues field's value. +func (s *DeleteItemInput) SetReturnValues(v string) *DeleteItemInput { + s.ReturnValues = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *DeleteItemInput) SetTableName(v string) *DeleteItemInput { + s.TableName = &v + return s +} + // Represents the output of a DeleteItem operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DeleteItemOutput type DeleteItemOutput struct { _ struct{} `type:"structure"` @@ -3101,33 +3616,33 @@ type DeleteItemOutput struct { // only if ReturnValues was specified as ALL_OLD in the request. Attributes map[string]*AttributeValue `type:"map"` - // The capacity units consumed by an operation. The data returned includes the - // total provisioned throughput consumed, along with statistics for the table - // and any indexes involved in the operation. ConsumedCapacity is only returned - // if the request asked for it. For more information, see Provisioned Throughput - // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) + // The capacity units consumed by the DeleteItem operation. The data returned + // includes the total provisioned throughput consumed, along with statistics + // for the table and any indexes involved in the operation. ConsumedCapacity + // is only returned if the ReturnConsumedCapacity parameter was specified. For + // more information, see Provisioned Throughput (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) // in the Amazon DynamoDB Developer Guide. ConsumedCapacity *ConsumedCapacity `type:"structure"` - // Information about item collections, if any, that were affected by the operation. - // ItemCollectionMetrics is only returned if the request asked for it. If the - // table does not have any local secondary indexes, this information is not - // returned in the response. + // Information about item collections, if any, that were affected by the DeleteItem + // operation. ItemCollectionMetrics is only returned if the ReturnItemCollectionMetrics + // parameter was specified. If the table does not have any local secondary indexes, + // this information is not returned in the response. // // Each ItemCollectionMetrics element consists of: // - // ItemCollectionKey - The partition key value of the item collection. This - // is the same as the partition key value of the item itself. + // * ItemCollectionKey - The partition key value of the item collection. + // This is the same as the partition key value of the item itself. // - // SizeEstimateRange - An estimate of item collection size, in gigabytes. - // This value is a two-element array containing a lower bound and an upper bound - // for the estimate. The estimate includes the size of all the items in the - // table, plus the size of all attributes projected into all of the local secondary - // indexes on that table. Use this estimate to measure whether a local secondary - // index is approaching its size limit. + // * SizeEstimateRange - An estimate of item collection size, in gigabytes. + // This value is a two-element array containing a lower bound and an upper + // bound for the estimate. The estimate includes the size of all the items + // in the table, plus the size of all attributes projected into all of the + // local secondary indexes on that table. Use this estimate to measure whether + // a local secondary index is approaching its size limit. // // The estimate is subject to change over time; therefore, do not rely on the - // precision or accuracy of the estimate. + // precision or accuracy of the estimate. ItemCollectionMetrics *ItemCollectionMetrics `type:"structure"` } @@ -3141,7 +3656,26 @@ func (s DeleteItemOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *DeleteItemOutput) SetAttributes(v map[string]*AttributeValue) *DeleteItemOutput { + s.Attributes = v + return s +} + +// SetConsumedCapacity sets the ConsumedCapacity field's value. +func (s *DeleteItemOutput) SetConsumedCapacity(v *ConsumedCapacity) *DeleteItemOutput { + s.ConsumedCapacity = v + return s +} + +// SetItemCollectionMetrics sets the ItemCollectionMetrics field's value. +func (s *DeleteItemOutput) SetItemCollectionMetrics(v *ItemCollectionMetrics) *DeleteItemOutput { + s.ItemCollectionMetrics = v + return s +} + // Represents a request to perform a DeleteItem operation on an item. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DeleteRequest type DeleteRequest struct { _ struct{} `type:"structure"` @@ -3163,7 +3697,14 @@ func (s DeleteRequest) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *DeleteRequest) SetKey(v map[string]*AttributeValue) *DeleteRequest { + s.Key = v + return s +} + // Represents the input of a DeleteTable operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DeleteTableInput type DeleteTableInput struct { _ struct{} `type:"structure"` @@ -3199,7 +3740,14 @@ func (s *DeleteTableInput) Validate() error { return nil } +// SetTableName sets the TableName field's value. +func (s *DeleteTableInput) SetTableName(v string) *DeleteTableInput { + s.TableName = &v + return s +} + // Represents the output of a DeleteTable operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DeleteTableOutput type DeleteTableOutput struct { _ struct{} `type:"structure"` @@ -3217,7 +3765,14 @@ func (s DeleteTableOutput) GoString() string { return s.String() } +// SetTableDescription sets the TableDescription field's value. +func (s *DeleteTableOutput) SetTableDescription(v *TableDescription) *DeleteTableOutput { + s.TableDescription = v + return s +} + // Represents the input of a DescribeLimits operation. Has no content. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeLimitsInput type DescribeLimitsInput struct { _ struct{} `type:"structure"` } @@ -3233,6 +3788,7 @@ func (s DescribeLimitsInput) GoString() string { } // Represents the output of a DescribeLimits operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeLimitsOutput type DescribeLimitsOutput struct { _ struct{} `type:"structure"` @@ -3265,7 +3821,32 @@ func (s DescribeLimitsOutput) GoString() string { return s.String() } +// SetAccountMaxReadCapacityUnits sets the AccountMaxReadCapacityUnits field's value. +func (s *DescribeLimitsOutput) SetAccountMaxReadCapacityUnits(v int64) *DescribeLimitsOutput { + s.AccountMaxReadCapacityUnits = &v + return s +} + +// SetAccountMaxWriteCapacityUnits sets the AccountMaxWriteCapacityUnits field's value. +func (s *DescribeLimitsOutput) SetAccountMaxWriteCapacityUnits(v int64) *DescribeLimitsOutput { + s.AccountMaxWriteCapacityUnits = &v + return s +} + +// SetTableMaxReadCapacityUnits sets the TableMaxReadCapacityUnits field's value. +func (s *DescribeLimitsOutput) SetTableMaxReadCapacityUnits(v int64) *DescribeLimitsOutput { + s.TableMaxReadCapacityUnits = &v + return s +} + +// SetTableMaxWriteCapacityUnits sets the TableMaxWriteCapacityUnits field's value. +func (s *DescribeLimitsOutput) SetTableMaxWriteCapacityUnits(v int64) *DescribeLimitsOutput { + s.TableMaxWriteCapacityUnits = &v + return s +} + // Represents the input of a DescribeTable operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeTableInput type DescribeTableInput struct { _ struct{} `type:"structure"` @@ -3301,11 +3882,18 @@ func (s *DescribeTableInput) Validate() error { return nil } +// SetTableName sets the TableName field's value. +func (s *DescribeTableInput) SetTableName(v string) *DescribeTableInput { + s.TableName = &v + return s +} + // Represents the output of a DescribeTable operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeTableOutput type DescribeTableOutput struct { _ struct{} `type:"structure"` - // Represents the properties of a table. + // The properties of the table. Table *TableDescription `type:"structure"` } @@ -3319,26 +3907,98 @@ func (s DescribeTableOutput) GoString() string { return s.String() } +// SetTable sets the Table field's value. +func (s *DescribeTableOutput) SetTable(v *TableDescription) *DescribeTableOutput { + s.Table = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeTimeToLiveInput +type DescribeTimeToLiveInput struct { + _ struct{} `type:"structure"` + + // The name of the table to be described. + // + // TableName is a required field + TableName *string `min:"3" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeTimeToLiveInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTimeToLiveInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeTimeToLiveInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeTimeToLiveInput"} + if s.TableName == nil { + invalidParams.Add(request.NewErrParamRequired("TableName")) + } + if s.TableName != nil && len(*s.TableName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTableName sets the TableName field's value. +func (s *DescribeTimeToLiveInput) SetTableName(v string) *DescribeTimeToLiveInput { + s.TableName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeTimeToLiveOutput +type DescribeTimeToLiveOutput struct { + _ struct{} `type:"structure"` + + TimeToLiveDescription *TimeToLiveDescription `type:"structure"` +} + +// String returns the string representation +func (s DescribeTimeToLiveOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTimeToLiveOutput) GoString() string { + return s.String() +} + +// SetTimeToLiveDescription sets the TimeToLiveDescription field's value. +func (s *DescribeTimeToLiveOutput) SetTimeToLiveDescription(v *TimeToLiveDescription) *DescribeTimeToLiveOutput { + s.TimeToLiveDescription = v + return s +} + // Represents a condition to be compared with an attribute value. This condition // can be used with DeleteItem, PutItem or UpdateItem operations; if the comparison // evaluates to true, the operation succeeds; if not, the operation fails. You // can use ExpectedAttributeValue in one of two different ways: // -// Use AttributeValueList to specify one or more values to compare against -// an attribute. Use ComparisonOperator to specify how you want to perform the -// comparison. If the comparison evaluates to true, then the conditional operation -// succeeds. +// * Use AttributeValueList to specify one or more values to compare against +// an attribute. Use ComparisonOperator to specify how you want to perform +// the comparison. If the comparison evaluates to true, then the conditional +// operation succeeds. // -// Use Value to specify a value that DynamoDB will compare against an attribute. -// If the values match, then ExpectedAttributeValue evaluates to true and the -// conditional operation succeeds. Optionally, you can also set Exists to false, -// indicating that you do not expect to find the attribute value in the table. -// In this case, the conditional operation succeeds only if the comparison evaluates -// to false. +// * Use Value to specify a value that DynamoDB will compare against an attribute. +// If the values match, then ExpectedAttributeValue evaluates to true and +// the conditional operation succeeds. Optionally, you can also set Exists +// to false, indicating that you do not expect to find the attribute value +// in the table. In this case, the conditional operation succeeds only if +// the comparison evaluates to false. // -// Value and Exists are incompatible with AttributeValueList and ComparisonOperator. +// Value and Exists are incompatible with AttributeValueList and ComparisonOperator. // Note that if you use both sets of parameters at once, DynamoDB will return // a ValidationException exception. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ExpectedAttributeValue type ExpectedAttributeValue struct { _ struct{} `type:"structure"` @@ -3364,161 +4024,75 @@ type ExpectedAttributeValue struct { // // The following comparison operators are available: // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS - // | BEGINS_WITH | IN | BETWEEN + // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | + // BEGINS_WITH | IN | BETWEEN // // The following are descriptions of each comparison operator. // - // EQ : Equal. EQ is supported for all datatypes, including lists and maps. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, Binary, String Set, Number Set, or Binary Set. If an item - // contains an AttributeValue element of a different type than the one provided - // in the request, the value does not match. For example, {"S":"6"} does not - // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. - // - // NE : Not equal. NE is supported for all datatypes, including lists and - // maps. + // * EQ : Equal. EQ is supported for all data types, including lists and + // maps. // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, Binary, String Set, Number Set, or Binary Set. If an item contains - // an AttributeValue of a different type than the one provided in the request, - // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, Binary, String Set, Number Set, or Binary Set. If an item contains + // an AttributeValue element of a different type than the one provided in + // the request, the value does not match. For example, {"S":"6"} does not + // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // LE : Less than or equal. + // * NE : Not equal. NE is supported for all data types, including lists + // and maps. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. + // * AttributeValueList can contain only one AttributeValue of type String, + // Number, Binary, String Set, Number Set, or Binary Set. If an item contains + // an AttributeValue of a different type than the one provided in the request, + // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. + // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // LT : Less than. + // * LE : Less than or equal. // - // AttributeValueList can contain only one AttributeValue of type String, + // AttributeValueList can contain only one AttributeValue element of type String, // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // GE : Greater than or equal. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // GT : Greater than. + // LT: Less than. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, - // including lists and maps. - // - // This operator tests for the existence of an attribute, not its data type. - // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, - // the result is a Boolean true. This result is because the attribute "a" exists; - // its data type is not relevant to the NOT_NULL comparison operator. - // - // NULL : The attribute does not exist. NULL is supported for all datatypes, - // including lists and maps. - // - // This operator tests for the nonexistence of an attribute, not its data - // type. If the data type of attribute "a" is null, and you evaluate it using - // NULL, the result is a Boolean false. This is because the attribute "a" exists; - // its data type is not relevant to the NULL comparison operator. - // - // CONTAINS : Checks for a subsequence, or value in a set. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is of type String, then the operator checks for a substring match. - // If the target attribute of the comparison is of type Binary, then the operator - // looks for a subsequence of the target that matches the input. If the target - // attribute of the comparison is a set ("SS", "NS", or "BS"), then the operator - // evaluates to true if it finds an exact match with any member of the set. - // - // CONTAINS is supported for lists: When evaluating "a CONTAINS b", "a" can - // be a list; however, "b" cannot be a set, a map, or a list. - // - // NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value - // in a set. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is a String, then the operator checks for the absence of a substring - // match. If the target attribute of the comparison is Binary, then the operator - // checks for the absence of a subsequence of the target that matches the input. - // If the target attribute of the comparison is a set ("SS", "NS", or "BS"), - // then the operator evaluates to true if it does not find an exact match with - // any member of the set. - // - // NOT_CONTAINS is supported for lists: When evaluating "a NOT CONTAINS b", - // "a" can be a list; however, "b" cannot be a set, a map, or a list. - // - // BEGINS_WITH : Checks for a prefix. - // - // AttributeValueList can contain only one AttributeValue of type String or - // Binary (not a Number or a set type). The target attribute of the comparison - // must be of type String or Binary (not a Number or a set type). - // - // IN : Checks for matching elements within two sets. - // - // AttributeValueList can contain one or more AttributeValue elements of type - // String, Number, or Binary (not a set type). These attributes are compared - // against an existing set type attribute of an item. If any elements of the - // input set are present in the item attribute, the expression evaluates to - // true. - // - // BETWEEN : Greater than or equal to the first value, and less than or - // equal to the second value. - // - // AttributeValueList must contain two AttributeValue elements of the same - // type, either String, Number, or Binary (not a set type). A target attribute - // matches if the target value is greater than, or equal to, the first element - // and less than, or equal to, the second element. If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not compare to {"N":"6"}. Also, - // {"N":"6"} does not compare to {"NS":["6", "2", "1"]} + // AttributeValueListcan contain only one AttributeValueof type String, Number, or Binary (not a set type). If an item contains an + // AttributeValueelement of a different type than the one provided in the request, the value + // does not match. For example, {"S":"6"}does not equal {"N":"6"}. Also, {"N":"6"}does not compare to {"NS":["6", "2", "1"]} ComparisonOperator *string `type:"string" enum:"ComparisonOperator"` // Causes DynamoDB to evaluate the value before attempting a conditional operation: // - // If Exists is true, DynamoDB will check to see if that attribute value - // already exists in the table. If it is found, then the operation succeeds. - // If it is not found, the operation fails with a ConditionalCheckFailedException. + // * If Exists is true, DynamoDB will check to see if that attribute value + // already exists in the table. If it is found, then the operation succeeds. + // If it is not found, the operation fails with a ConditionalCheckFailedException. // - // If Exists is false, DynamoDB assumes that the attribute value does not - // exist in the table. If in fact the value does not exist, then the assumption - // is valid and the operation succeeds. If the value is found, despite the assumption - // that it does not exist, the operation fails with a ConditionalCheckFailedException. + // * If Exists is false, DynamoDB assumes that the attribute value does not + // exist in the table. If in fact the value does not exist, then the assumption + // is valid and the operation succeeds. If the value is found, despite the + // assumption that it does not exist, the operation fails with a ConditionalCheckFailedException. // - // The default setting for Exists is true. If you supply a Value all by itself, + // The default setting for Exists is true. If you supply a Value all by itself, // DynamoDB assumes the attribute exists: You don't have to set Exists to true, // because it is implied. // // DynamoDB returns a ValidationException if: // - // Exists is true but there is no Value to check. (You expect a value to - // exist, but don't specify what that value is.) + // * Exists is true but there is no Value to check. (You expect a value to + // exist, but don't specify what that value is.) // - // Exists is false but you also provide a Value. (You cannot expect an attribute - // to have a value, while also expecting it not to exist.) + // * Exists is false but you also provide a Value. (You cannot expect an + // attribute to have a value, while also expecting it not to exist.) Exists *bool `type:"boolean"` - // Represents the data for an attribute. You can set one, and only one, of the - // elements. + // Represents the data for the expected attribute. // - // Each attribute in an item is a name-value pair. An attribute can be single-valued - // or multi-valued set. For example, a book item can have title and authors - // attributes. Each book has one title but can have many authors. The multi-valued - // attribute is a set; duplicate values are not allowed. + // Each attribute value is described as a name-value pair. The name is the data + // type, and the value is the data itself. + // + // For more information, see Data Types (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes) + // in the Amazon DynamoDB Developer Guide. Value *AttributeValue `type:"structure"` } @@ -3532,25 +4106,38 @@ func (s ExpectedAttributeValue) GoString() string { return s.String() } +// SetAttributeValueList sets the AttributeValueList field's value. +func (s *ExpectedAttributeValue) SetAttributeValueList(v []*AttributeValue) *ExpectedAttributeValue { + s.AttributeValueList = v + return s +} + +// SetComparisonOperator sets the ComparisonOperator field's value. +func (s *ExpectedAttributeValue) SetComparisonOperator(v string) *ExpectedAttributeValue { + s.ComparisonOperator = &v + return s +} + +// SetExists sets the Exists field's value. +func (s *ExpectedAttributeValue) SetExists(v bool) *ExpectedAttributeValue { + s.Exists = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ExpectedAttributeValue) SetValue(v *AttributeValue) *ExpectedAttributeValue { + s.Value = v + return s +} + // Represents the input of a GetItem operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/GetItemInput type GetItemInput struct { _ struct{} `type:"structure"` - // This is a legacy parameter, for backward compatibility. New applications - // should use ProjectionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. - // - // This parameter allows you to retrieve attributes of type List or Map; however, - // it cannot retrieve individual elements within a List or a Map. - // - // The names of one or more attributes to retrieve. If no attribute names - // are provided, then all attributes will be returned. If any of the requested - // attributes are not found, they will not appear in the result. - // - // Note that AttributesToGet has no effect on provisioned throughput consumption. - // DynamoDB determines capacity units consumed based on item size, not on the - // amount of data that is returned to an application. + // This is a legacy parameter. Use ProjectionExpression instead. For more information, + // see AttributesToGet (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html) + // in the Amazon DynamoDB Developer Guide. AttributesToGet []*string `min:"1" type:"list"` // Determines the read consistency model: If set to true, then the operation @@ -3561,36 +4148,37 @@ type GetItemInput struct { // One or more substitution tokens for attribute names in an expression. The // following are some use cases for using ExpressionAttributeNames: // - // To access an attribute whose name conflicts with a DynamoDB reserved word. + // * To access an attribute whose name conflicts with a DynamoDB reserved + // word. // - // To create a placeholder for repeating occurrences of an attribute name - // in an expression. + // * To create a placeholder for repeating occurrences of an attribute name + // in an expression. // - // To prevent special characters in an attribute name from being misinterpreted - // in an expression. + // * To prevent special characters in an attribute name from being misinterpreted + // in an expression. // - // Use the # character in an expression to dereference an attribute name. - // For example, consider the following attribute name: + // Use the # character in an expression to dereference an attribute name. For + // example, consider the following attribute name: // - // Percentile + // * Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot - // be used directly in an expression. (For the complete list of reserved words, + // The name of this attribute conflicts with a reserved word, so it cannot be + // used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // * {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // * #P = :val // - // Tokens that begin with the : character are expression attribute values, - // which are placeholders for the actual value at runtime. + // Tokens that begin with the : character are expression attribute values, which + // are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. ExpressionAttributeNames map[string]*string `type:"map"` @@ -3615,25 +4203,23 @@ type GetItemInput struct { // // For more information, see Accessing Item Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. - // - // ProjectionExpression replaces the legacy AttributesToGet parameter. ProjectionExpression *string `type:"string"` // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the - // operation, together with ConsumedCapacity for each table and secondary index - // that was accessed. + // * INDEXES - The response includes the aggregate ConsumedCapacity for the + // operation, together with ConsumedCapacity for each table and secondary + // index that was accessed. // // Note that some operations, such as GetItem and BatchGetItem, do not access - // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity - // information for table(s). + // any indexes at all. In these cases, specifying INDEXES will only return + // ConsumedCapacity information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // * TOTAL - The response includes only the aggregate ConsumedCapacity for + // the operation. // - // NONE - No ConsumedCapacity details are included in the response. + // * NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` // The name of the table containing the requested item. @@ -3674,19 +4260,62 @@ func (s *GetItemInput) Validate() error { return nil } +// SetAttributesToGet sets the AttributesToGet field's value. +func (s *GetItemInput) SetAttributesToGet(v []*string) *GetItemInput { + s.AttributesToGet = v + return s +} + +// SetConsistentRead sets the ConsistentRead field's value. +func (s *GetItemInput) SetConsistentRead(v bool) *GetItemInput { + s.ConsistentRead = &v + return s +} + +// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. +func (s *GetItemInput) SetExpressionAttributeNames(v map[string]*string) *GetItemInput { + s.ExpressionAttributeNames = v + return s +} + +// SetKey sets the Key field's value. +func (s *GetItemInput) SetKey(v map[string]*AttributeValue) *GetItemInput { + s.Key = v + return s +} + +// SetProjectionExpression sets the ProjectionExpression field's value. +func (s *GetItemInput) SetProjectionExpression(v string) *GetItemInput { + s.ProjectionExpression = &v + return s +} + +// SetReturnConsumedCapacity sets the ReturnConsumedCapacity field's value. +func (s *GetItemInput) SetReturnConsumedCapacity(v string) *GetItemInput { + s.ReturnConsumedCapacity = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *GetItemInput) SetTableName(v string) *GetItemInput { + s.TableName = &v + return s +} + // Represents the output of a GetItem operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/GetItemOutput type GetItemOutput struct { _ struct{} `type:"structure"` - // The capacity units consumed by an operation. The data returned includes the - // total provisioned throughput consumed, along with statistics for the table - // and any indexes involved in the operation. ConsumedCapacity is only returned - // if the request asked for it. For more information, see Provisioned Throughput - // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) + // The capacity units consumed by the GetItem operation. The data returned includes + // the total provisioned throughput consumed, along with statistics for the + // table and any indexes involved in the operation. ConsumedCapacity is only + // returned if the ReturnConsumedCapacity parameter was specified. For more + // information, see Provisioned Throughput (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) // in the Amazon DynamoDB Developer Guide. ConsumedCapacity *ConsumedCapacity `type:"structure"` - // A map of attribute names to AttributeValue objects, as specified by AttributesToGet. + // A map of attribute names to AttributeValue objects, as specified by ProjectionExpression. Item map[string]*AttributeValue `type:"map"` } @@ -3700,7 +4329,20 @@ func (s GetItemOutput) GoString() string { return s.String() } +// SetConsumedCapacity sets the ConsumedCapacity field's value. +func (s *GetItemOutput) SetConsumedCapacity(v *ConsumedCapacity) *GetItemOutput { + s.ConsumedCapacity = v + return s +} + +// SetItem sets the Item field's value. +func (s *GetItemOutput) SetItem(v map[string]*AttributeValue) *GetItemOutput { + s.Item = v + return s +} + // Represents the properties of a global secondary index. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/GlobalSecondaryIndex type GlobalSecondaryIndex struct { _ struct{} `type:"structure"` @@ -3713,12 +4355,12 @@ type GlobalSecondaryIndex struct { // The complete key schema for a global secondary index, which consists of one // or more pairs of attribute names and key types: // - // HASH - partition key + // * HASH - partition key // - // RANGE - sort key + // * RANGE - sort key // - // The partition key of an item is also known as its hash attribute. The - // term "hash attribute" derives from DynamoDB' usage of an internal hash function + // The partition key of an item is also known as its hash attribute. The term + // "hash attribute" derives from DynamoDB' usage of an internal hash function // to evenly distribute data items across partitions, based on their partition // key values. // @@ -3729,15 +4371,15 @@ type GlobalSecondaryIndex struct { // KeySchema is a required field KeySchema []*KeySchemaElement `min:"1" type:"list" required:"true"` - // Represents attributes that are copied (projected) from the table into an - // index. These are in addition to the primary key attributes and index key - // attributes, which are automatically projected. + // Represents attributes that are copied (projected) from the table into the + // global secondary index. These are in addition to the primary key attributes + // and index key attributes, which are automatically projected. // // Projection is a required field Projection *Projection `type:"structure" required:"true"` - // Represents the provisioned throughput settings for a specified table or index. - // The settings can be modified using the UpdateTable operation. + // Represents the provisioned throughput settings for the specified global secondary + // index. // // For current minimum and maximum provisioned throughput values, see Limits // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) @@ -3805,18 +4447,43 @@ func (s *GlobalSecondaryIndex) Validate() error { return nil } -// Represents the properties of a global secondary index. -type GlobalSecondaryIndexDescription struct { - _ struct{} `type:"structure"` +// SetIndexName sets the IndexName field's value. +func (s *GlobalSecondaryIndex) SetIndexName(v string) *GlobalSecondaryIndex { + s.IndexName = &v + return s +} - // Indicates whether the index is currently backfilling. Backfilling is the - // process of reading items from the table and determining whether they can +// SetKeySchema sets the KeySchema field's value. +func (s *GlobalSecondaryIndex) SetKeySchema(v []*KeySchemaElement) *GlobalSecondaryIndex { + s.KeySchema = v + return s +} + +// SetProjection sets the Projection field's value. +func (s *GlobalSecondaryIndex) SetProjection(v *Projection) *GlobalSecondaryIndex { + s.Projection = v + return s +} + +// SetProvisionedThroughput sets the ProvisionedThroughput field's value. +func (s *GlobalSecondaryIndex) SetProvisionedThroughput(v *ProvisionedThroughput) *GlobalSecondaryIndex { + s.ProvisionedThroughput = v + return s +} + +// Represents the properties of a global secondary index. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/GlobalSecondaryIndexDescription +type GlobalSecondaryIndexDescription struct { + _ struct{} `type:"structure"` + + // Indicates whether the index is currently backfilling. Backfilling is the + // process of reading items from the table and determining whether they can // be added to the index. (Not all items will qualify: For example, a partition // key cannot have any duplicate values.) If an item can be added to the index, // DynamoDB will do so. After all items have been processed, the backfilling // operation is complete and Backfilling is false. // - // For indexes that were created during a CreateTable operation, the Backfilling + // For indexes that were created during a CreateTable operation, the Backfilling // attribute does not appear in the DescribeTable output. Backfilling *bool `type:"boolean"` @@ -3833,13 +4500,13 @@ type GlobalSecondaryIndexDescription struct { // The current state of the global secondary index: // - // CREATING - The index is being created. + // * CREATING - The index is being created. // - // UPDATING - The index is being updated. + // * UPDATING - The index is being updated. // - // DELETING - The index is being deleted. + // * DELETING - The index is being deleted. // - // ACTIVE - The index is ready for use. + // * ACTIVE - The index is ready for use. IndexStatus *string `type:"string" enum:"IndexStatus"` // The number of items in the specified index. DynamoDB updates this value approximately @@ -3849,12 +4516,12 @@ type GlobalSecondaryIndexDescription struct { // The complete key schema for a global secondary index, which consists of one // or more pairs of attribute names and key types: // - // HASH - partition key + // * HASH - partition key // - // RANGE - sort key + // * RANGE - sort key // - // The partition key of an item is also known as its hash attribute. The - // term "hash attribute" derives from DynamoDB' usage of an internal hash function + // The partition key of an item is also known as its hash attribute. The term + // "hash attribute" derives from DynamoDB' usage of an internal hash function // to evenly distribute data items across partitions, based on their partition // key values. // @@ -3863,13 +4530,17 @@ type GlobalSecondaryIndexDescription struct { // key physically close together, in sorted order by the sort key value. KeySchema []*KeySchemaElement `min:"1" type:"list"` - // Represents attributes that are copied (projected) from the table into an - // index. These are in addition to the primary key attributes and index key - // attributes, which are automatically projected. + // Represents attributes that are copied (projected) from the table into the + // global secondary index. These are in addition to the primary key attributes + // and index key attributes, which are automatically projected. Projection *Projection `type:"structure"` - // Represents the provisioned throughput settings for the table, consisting - // of read and write capacity units, along with data about increases and decreases. + // Represents the provisioned throughput settings for the specified global secondary + // index. + // + // For current minimum and maximum provisioned throughput values, see Limits + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) + // in the Amazon DynamoDB Developer Guide. ProvisionedThroughput *ProvisionedThroughputDescription `type:"structure"` } @@ -3883,29 +4554,84 @@ func (s GlobalSecondaryIndexDescription) GoString() string { return s.String() } +// SetBackfilling sets the Backfilling field's value. +func (s *GlobalSecondaryIndexDescription) SetBackfilling(v bool) *GlobalSecondaryIndexDescription { + s.Backfilling = &v + return s +} + +// SetIndexArn sets the IndexArn field's value. +func (s *GlobalSecondaryIndexDescription) SetIndexArn(v string) *GlobalSecondaryIndexDescription { + s.IndexArn = &v + return s +} + +// SetIndexName sets the IndexName field's value. +func (s *GlobalSecondaryIndexDescription) SetIndexName(v string) *GlobalSecondaryIndexDescription { + s.IndexName = &v + return s +} + +// SetIndexSizeBytes sets the IndexSizeBytes field's value. +func (s *GlobalSecondaryIndexDescription) SetIndexSizeBytes(v int64) *GlobalSecondaryIndexDescription { + s.IndexSizeBytes = &v + return s +} + +// SetIndexStatus sets the IndexStatus field's value. +func (s *GlobalSecondaryIndexDescription) SetIndexStatus(v string) *GlobalSecondaryIndexDescription { + s.IndexStatus = &v + return s +} + +// SetItemCount sets the ItemCount field's value. +func (s *GlobalSecondaryIndexDescription) SetItemCount(v int64) *GlobalSecondaryIndexDescription { + s.ItemCount = &v + return s +} + +// SetKeySchema sets the KeySchema field's value. +func (s *GlobalSecondaryIndexDescription) SetKeySchema(v []*KeySchemaElement) *GlobalSecondaryIndexDescription { + s.KeySchema = v + return s +} + +// SetProjection sets the Projection field's value. +func (s *GlobalSecondaryIndexDescription) SetProjection(v *Projection) *GlobalSecondaryIndexDescription { + s.Projection = v + return s +} + +// SetProvisionedThroughput sets the ProvisionedThroughput field's value. +func (s *GlobalSecondaryIndexDescription) SetProvisionedThroughput(v *ProvisionedThroughputDescription) *GlobalSecondaryIndexDescription { + s.ProvisionedThroughput = v + return s +} + // Represents one of the following: // -// A new global secondary index to be added to an existing table. +// * A new global secondary index to be added to an existing table. // -// New provisioned throughput parameters for an existing global secondary -// index. +// * New provisioned throughput parameters for an existing global secondary +// index. // -// An existing global secondary index to be removed from an existing table. +// * An existing global secondary index to be removed from an existing table. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/GlobalSecondaryIndexUpdate type GlobalSecondaryIndexUpdate struct { _ struct{} `type:"structure"` // The parameters required for creating a global secondary index on an existing // table: // - // IndexName + // * IndexName // - // KeySchema + // * KeySchema // - // AttributeDefinitions + // * AttributeDefinitions // - // Projection + // * Projection // - // ProvisionedThroughput + // * ProvisionedThroughput Create *CreateGlobalSecondaryIndexAction `type:"structure"` // The name of an existing global secondary index to be removed. @@ -3951,10 +4677,29 @@ func (s *GlobalSecondaryIndexUpdate) Validate() error { return nil } +// SetCreate sets the Create field's value. +func (s *GlobalSecondaryIndexUpdate) SetCreate(v *CreateGlobalSecondaryIndexAction) *GlobalSecondaryIndexUpdate { + s.Create = v + return s +} + +// SetDelete sets the Delete field's value. +func (s *GlobalSecondaryIndexUpdate) SetDelete(v *DeleteGlobalSecondaryIndexAction) *GlobalSecondaryIndexUpdate { + s.Delete = v + return s +} + +// SetUpdate sets the Update field's value. +func (s *GlobalSecondaryIndexUpdate) SetUpdate(v *UpdateGlobalSecondaryIndexAction) *GlobalSecondaryIndexUpdate { + s.Update = v + return s +} + // Information about item collections, if any, that were affected by the operation. // ItemCollectionMetrics is only returned if the request asked for it. If the // table does not have any local secondary indexes, this information is not // returned in the response. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ItemCollectionMetrics type ItemCollectionMetrics struct { _ struct{} `type:"structure"` @@ -3984,17 +4729,30 @@ func (s ItemCollectionMetrics) GoString() string { return s.String() } +// SetItemCollectionKey sets the ItemCollectionKey field's value. +func (s *ItemCollectionMetrics) SetItemCollectionKey(v map[string]*AttributeValue) *ItemCollectionMetrics { + s.ItemCollectionKey = v + return s +} + +// SetSizeEstimateRangeGB sets the SizeEstimateRangeGB field's value. +func (s *ItemCollectionMetrics) SetSizeEstimateRangeGB(v []*float64) *ItemCollectionMetrics { + s.SizeEstimateRangeGB = v + return s +} + // Represents a single element of a key schema. A key schema specifies the attributes // that make up the primary key of a table, or the key attributes of an index. // -// A KeySchemaElement represents exactly one attribute of the primary key. -// For example, a simple primary key would be represented by one KeySchemaElement +// A KeySchemaElement represents exactly one attribute of the primary key. For +// example, a simple primary key would be represented by one KeySchemaElement // (for the partition key). A composite primary key would require one KeySchemaElement // for the partition key, and another KeySchemaElement for the sort key. // // A KeySchemaElement must be a scalar, top-level attribute (not a nested attribute). // The data type must be one of String, Number, or Binary. The attribute cannot // be nested within a List or a Map. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/KeySchemaElement type KeySchemaElement struct { _ struct{} `type:"structure"` @@ -4005,12 +4763,12 @@ type KeySchemaElement struct { // The role that this key attribute will assume: // - // HASH - partition key + // * HASH - partition key // - // RANGE - sort key + // * RANGE - sort key // - // The partition key of an item is also known as its hash attribute. The - // term "hash attribute" derives from DynamoDB' usage of an internal hash function + // The partition key of an item is also known as its hash attribute. The term + // "hash attribute" derives from DynamoDB' usage of an internal hash function // to evenly distribute data items across partitions, based on their partition // key values. // @@ -4051,6 +4809,18 @@ func (s *KeySchemaElement) Validate() error { return nil } +// SetAttributeName sets the AttributeName field's value. +func (s *KeySchemaElement) SetAttributeName(v string) *KeySchemaElement { + s.AttributeName = &v + return s +} + +// SetKeyType sets the KeyType field's value. +func (s *KeySchemaElement) SetKeyType(v string) *KeySchemaElement { + s.KeyType = &v + return s +} + // Represents a set of primary keys and, for each key, the attributes to retrieve // from the table. // @@ -4058,12 +4828,13 @@ func (s *KeySchemaElement) Validate() error { // with a simple primary key, you only need to provide the partition key. For // a composite primary key, you must provide both the partition key and the // sort key. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/KeysAndAttributes type KeysAndAttributes struct { _ struct{} `type:"structure"` - // One or more attributes to retrieve from the table or index. If no attribute - // names are specified then all attributes will be returned. If any of the specified - // attributes are not found, they will not appear in the result. + // This is a legacy parameter. Use ProjectionExpression instead. For more information, + // see Legacy Conditional Parameters (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html) + // in the Amazon DynamoDB Developer Guide. AttributesToGet []*string `min:"1" type:"list"` // The consistency of a read operation. If set to true, then a strongly consistent @@ -4073,36 +4844,37 @@ type KeysAndAttributes struct { // One or more substitution tokens for attribute names in an expression. The // following are some use cases for using ExpressionAttributeNames: // - // To access an attribute whose name conflicts with a DynamoDB reserved word. + // * To access an attribute whose name conflicts with a DynamoDB reserved + // word. // - // To create a placeholder for repeating occurrences of an attribute name - // in an expression. + // * To create a placeholder for repeating occurrences of an attribute name + // in an expression. // - // To prevent special characters in an attribute name from being misinterpreted - // in an expression. + // * To prevent special characters in an attribute name from being misinterpreted + // in an expression. // - // Use the # character in an expression to dereference an attribute name. - // For example, consider the following attribute name: + // Use the # character in an expression to dereference an attribute name. For + // example, consider the following attribute name: // - // Percentile + // * Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot - // be used directly in an expression. (For the complete list of reserved words, + // The name of this attribute conflicts with a reserved word, so it cannot be + // used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // * {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // * #P = :val // - // Tokens that begin with the : character are expression attribute values, - // which are placeholders for the actual value at runtime. + // Tokens that begin with the : character are expression attribute values, which + // are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. ExpressionAttributeNames map[string]*string `type:"map"` @@ -4122,8 +4894,6 @@ type KeysAndAttributes struct { // // For more information, see Accessing Item Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. - // - // ProjectionExpression replaces the legacy AttributesToGet parameter. ProjectionExpression *string `type:"string"` } @@ -4156,7 +4926,38 @@ func (s *KeysAndAttributes) Validate() error { return nil } +// SetAttributesToGet sets the AttributesToGet field's value. +func (s *KeysAndAttributes) SetAttributesToGet(v []*string) *KeysAndAttributes { + s.AttributesToGet = v + return s +} + +// SetConsistentRead sets the ConsistentRead field's value. +func (s *KeysAndAttributes) SetConsistentRead(v bool) *KeysAndAttributes { + s.ConsistentRead = &v + return s +} + +// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. +func (s *KeysAndAttributes) SetExpressionAttributeNames(v map[string]*string) *KeysAndAttributes { + s.ExpressionAttributeNames = v + return s +} + +// SetKeys sets the Keys field's value. +func (s *KeysAndAttributes) SetKeys(v []map[string]*AttributeValue) *KeysAndAttributes { + s.Keys = v + return s +} + +// SetProjectionExpression sets the ProjectionExpression field's value. +func (s *KeysAndAttributes) SetProjectionExpression(v string) *KeysAndAttributes { + s.ProjectionExpression = &v + return s +} + // Represents the input of a ListTables operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListTablesInput type ListTablesInput struct { _ struct{} `type:"structure"` @@ -4196,7 +4997,20 @@ func (s *ListTablesInput) Validate() error { return nil } +// SetExclusiveStartTableName sets the ExclusiveStartTableName field's value. +func (s *ListTablesInput) SetExclusiveStartTableName(v string) *ListTablesInput { + s.ExclusiveStartTableName = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListTablesInput) SetLimit(v int64) *ListTablesInput { + s.Limit = &v + return s +} + // Represents the output of a ListTables operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListTablesOutput type ListTablesOutput struct { _ struct{} `type:"structure"` @@ -4227,7 +5041,109 @@ func (s ListTablesOutput) GoString() string { return s.String() } +// SetLastEvaluatedTableName sets the LastEvaluatedTableName field's value. +func (s *ListTablesOutput) SetLastEvaluatedTableName(v string) *ListTablesOutput { + s.LastEvaluatedTableName = &v + return s +} + +// SetTableNames sets the TableNames field's value. +func (s *ListTablesOutput) SetTableNames(v []*string) *ListTablesOutput { + s.TableNames = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListTagsOfResourceInput +type ListTagsOfResourceInput struct { + _ struct{} `type:"structure"` + + // An optional string that, if supplied, must be copied from the output of a + // previous call to ListTagOfResource. When provided in this manner, this API + // fetches the next page of results. + NextToken *string `type:"string"` + + // The Amazon DynamoDB resource with tags to be listed. This value is an Amazon + // Resource Name (ARN). + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListTagsOfResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsOfResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsOfResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsOfResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTagsOfResourceInput) SetNextToken(v string) *ListTagsOfResourceInput { + s.NextToken = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsOfResourceInput) SetResourceArn(v string) *ListTagsOfResourceInput { + s.ResourceArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListTagsOfResourceOutput +type ListTagsOfResourceOutput struct { + _ struct{} `type:"structure"` + + // If this value is returned, there are additional results to be displayed. + // To retrieve them, call ListTagsOfResource again, with NextToken set to this + // value. + NextToken *string `type:"string"` + + // The tags currently associated with the Amazon DynamoDB resource. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s ListTagsOfResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsOfResourceOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTagsOfResourceOutput) SetNextToken(v string) *ListTagsOfResourceOutput { + s.NextToken = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ListTagsOfResourceOutput) SetTags(v []*Tag) *ListTagsOfResourceOutput { + s.Tags = v + return s +} + // Represents the properties of a local secondary index. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/LocalSecondaryIndex type LocalSecondaryIndex struct { _ struct{} `type:"structure"` @@ -4240,12 +5156,12 @@ type LocalSecondaryIndex struct { // The complete key schema for the local secondary index, consisting of one // or more pairs of attribute names and key types: // - // HASH - partition key + // * HASH - partition key // - // RANGE - sort key + // * RANGE - sort key // - // The partition key of an item is also known as its hash attribute. The - // term "hash attribute" derives from DynamoDB' usage of an internal hash function + // The partition key of an item is also known as its hash attribute. The term + // "hash attribute" derives from DynamoDB' usage of an internal hash function // to evenly distribute data items across partitions, based on their partition // key values. // @@ -4256,9 +5172,9 @@ type LocalSecondaryIndex struct { // KeySchema is a required field KeySchema []*KeySchemaElement `min:"1" type:"list" required:"true"` - // Represents attributes that are copied (projected) from the table into an - // index. These are in addition to the primary key attributes and index key - // attributes, which are automatically projected. + // Represents attributes that are copied (projected) from the table into the + // local secondary index. These are in addition to the primary key attributes + // and index key attributes, which are automatically projected. // // Projection is a required field Projection *Projection `type:"structure" required:"true"` @@ -4314,7 +5230,26 @@ func (s *LocalSecondaryIndex) Validate() error { return nil } +// SetIndexName sets the IndexName field's value. +func (s *LocalSecondaryIndex) SetIndexName(v string) *LocalSecondaryIndex { + s.IndexName = &v + return s +} + +// SetKeySchema sets the KeySchema field's value. +func (s *LocalSecondaryIndex) SetKeySchema(v []*KeySchemaElement) *LocalSecondaryIndex { + s.KeySchema = v + return s +} + +// SetProjection sets the Projection field's value. +func (s *LocalSecondaryIndex) SetProjection(v *Projection) *LocalSecondaryIndex { + s.Projection = v + return s +} + // Represents the properties of a local secondary index. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/LocalSecondaryIndexDescription type LocalSecondaryIndexDescription struct { _ struct{} `type:"structure"` @@ -4336,12 +5271,12 @@ type LocalSecondaryIndexDescription struct { // The complete key schema for the local secondary index, consisting of one // or more pairs of attribute names and key types: // - // HASH - partition key + // * HASH - partition key // - // RANGE - sort key + // * RANGE - sort key // - // The partition key of an item is also known as its hash attribute. The - // term "hash attribute" derives from DynamoDB' usage of an internal hash function + // The partition key of an item is also known as its hash attribute. The term + // "hash attribute" derives from DynamoDB' usage of an internal hash function // to evenly distribute data items across partitions, based on their partition // key values. // @@ -4350,9 +5285,9 @@ type LocalSecondaryIndexDescription struct { // key physically close together, in sorted order by the sort key value. KeySchema []*KeySchemaElement `min:"1" type:"list"` - // Represents attributes that are copied (projected) from the table into an - // index. These are in addition to the primary key attributes and index key - // attributes, which are automatically projected. + // Represents attributes that are copied (projected) from the table into the + // global secondary index. These are in addition to the primary key attributes + // and index key attributes, which are automatically projected. Projection *Projection `type:"structure"` } @@ -4366,28 +5301,65 @@ func (s LocalSecondaryIndexDescription) GoString() string { return s.String() } +// SetIndexArn sets the IndexArn field's value. +func (s *LocalSecondaryIndexDescription) SetIndexArn(v string) *LocalSecondaryIndexDescription { + s.IndexArn = &v + return s +} + +// SetIndexName sets the IndexName field's value. +func (s *LocalSecondaryIndexDescription) SetIndexName(v string) *LocalSecondaryIndexDescription { + s.IndexName = &v + return s +} + +// SetIndexSizeBytes sets the IndexSizeBytes field's value. +func (s *LocalSecondaryIndexDescription) SetIndexSizeBytes(v int64) *LocalSecondaryIndexDescription { + s.IndexSizeBytes = &v + return s +} + +// SetItemCount sets the ItemCount field's value. +func (s *LocalSecondaryIndexDescription) SetItemCount(v int64) *LocalSecondaryIndexDescription { + s.ItemCount = &v + return s +} + +// SetKeySchema sets the KeySchema field's value. +func (s *LocalSecondaryIndexDescription) SetKeySchema(v []*KeySchemaElement) *LocalSecondaryIndexDescription { + s.KeySchema = v + return s +} + +// SetProjection sets the Projection field's value. +func (s *LocalSecondaryIndexDescription) SetProjection(v *Projection) *LocalSecondaryIndexDescription { + s.Projection = v + return s +} + // Represents attributes that are copied (projected) from the table into an // index. These are in addition to the primary key attributes and index key // attributes, which are automatically projected. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/Projection type Projection struct { _ struct{} `type:"structure"` // Represents the non-key attribute names which will be projected into the index. // - // For local secondary indexes, the total count of NonKeyAttributes summed - // across all of the local secondary indexes, must not exceed 20. If you project - // the same attribute into two different indexes, this counts as two distinct - // attributes when determining the total. + // For local secondary indexes, the total count of NonKeyAttributes summed across + // all of the local secondary indexes, must not exceed 20. If you project the + // same attribute into two different indexes, this counts as two distinct attributes + // when determining the total. NonKeyAttributes []*string `min:"1" type:"list"` // The set of attributes that are projected into the index: // - // KEYS_ONLY - Only the index and primary keys are projected into the index. + // * KEYS_ONLY - Only the index and primary keys are projected into the index. // - // INCLUDE - Only the specified table attributes are projected into the - // index. The list of projected attributes are in NonKeyAttributes. + // * INCLUDE - Only the specified table attributes are projected into the + // index. The list of projected attributes are in NonKeyAttributes. // - // ALL - All of the table attributes are projected into the index. + // * ALL - All of the table attributes are projected into the index. ProjectionType *string `type:"string" enum:"ProjectionType"` } @@ -4414,12 +5386,25 @@ func (s *Projection) Validate() error { return nil } +// SetNonKeyAttributes sets the NonKeyAttributes field's value. +func (s *Projection) SetNonKeyAttributes(v []*string) *Projection { + s.NonKeyAttributes = v + return s +} + +// SetProjectionType sets the ProjectionType field's value. +func (s *Projection) SetProjectionType(v string) *Projection { + s.ProjectionType = &v + return s +} + // Represents the provisioned throughput settings for a specified table or index. // The settings can be modified using the UpdateTable operation. // // For current minimum and maximum provisioned throughput values, see Limits // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) // in the Amazon DynamoDB Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ProvisionedThroughput type ProvisionedThroughput struct { _ struct{} `type:"structure"` @@ -4472,8 +5457,21 @@ func (s *ProvisionedThroughput) Validate() error { return nil } +// SetReadCapacityUnits sets the ReadCapacityUnits field's value. +func (s *ProvisionedThroughput) SetReadCapacityUnits(v int64) *ProvisionedThroughput { + s.ReadCapacityUnits = &v + return s +} + +// SetWriteCapacityUnits sets the WriteCapacityUnits field's value. +func (s *ProvisionedThroughput) SetWriteCapacityUnits(v int64) *ProvisionedThroughput { + s.WriteCapacityUnits = &v + return s +} + // Represents the provisioned throughput settings for the table, consisting // of read and write capacity units, along with data about increases and decreases. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ProvisionedThroughputDescription type ProvisionedThroughputDescription struct { _ struct{} `type:"structure"` @@ -4510,7 +5508,38 @@ func (s ProvisionedThroughputDescription) GoString() string { return s.String() } +// SetLastDecreaseDateTime sets the LastDecreaseDateTime field's value. +func (s *ProvisionedThroughputDescription) SetLastDecreaseDateTime(v time.Time) *ProvisionedThroughputDescription { + s.LastDecreaseDateTime = &v + return s +} + +// SetLastIncreaseDateTime sets the LastIncreaseDateTime field's value. +func (s *ProvisionedThroughputDescription) SetLastIncreaseDateTime(v time.Time) *ProvisionedThroughputDescription { + s.LastIncreaseDateTime = &v + return s +} + +// SetNumberOfDecreasesToday sets the NumberOfDecreasesToday field's value. +func (s *ProvisionedThroughputDescription) SetNumberOfDecreasesToday(v int64) *ProvisionedThroughputDescription { + s.NumberOfDecreasesToday = &v + return s +} + +// SetReadCapacityUnits sets the ReadCapacityUnits field's value. +func (s *ProvisionedThroughputDescription) SetReadCapacityUnits(v int64) *ProvisionedThroughputDescription { + s.ReadCapacityUnits = &v + return s +} + +// SetWriteCapacityUnits sets the WriteCapacityUnits field's value. +func (s *ProvisionedThroughputDescription) SetWriteCapacityUnits(v int64) *ProvisionedThroughputDescription { + s.WriteCapacityUnits = &v + return s +} + // Represents the input of a PutItem operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/PutItemInput type PutItemInput struct { _ struct{} `type:"structure"` @@ -4519,273 +5548,64 @@ type PutItemInput struct { // // An expression can contain any of the following: // - // Functions: attribute_exists | attribute_not_exists | attribute_type | - // contains | begins_with | size + // * Functions: attribute_exists | attribute_not_exists | attribute_type + // | contains | begins_with | size // // These function names are case-sensitive. // - // Comparison operators: = | <> | < | > | <= | - // >= | BETWEEN | IN + // * Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN // - // Logical operators: AND | OR | NOT + // * Logical operators: AND | OR | NOT // - // For more information on condition expressions, see Specifying Conditions + // For more information on condition expressions, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) // in the Amazon DynamoDB Developer Guide. - // - // ConditionExpression replaces the legacy ConditionalOperator and Expected - // parameters. ConditionExpression *string `type:"string"` - // This is a legacy parameter, for backward compatibility. New applications - // should use ConditionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. - // - // A logical operator to apply to the conditions in the Expected map: - // - // AND - If all of the conditions evaluate to true, then the entire map - // evaluates to true. - // - // OR - If at least one of the conditions evaluate to true, then the entire - // map evaluates to true. - // - // If you omit ConditionalOperator, then AND is the default. - // - // The operation will succeed only if the entire map evaluates to true. - // - // This parameter does not support attributes of type List or Map. + // This is a legacy parameter. Use ConditionExpression instead. For more information, + // see ConditionalOperator (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) + // in the Amazon DynamoDB Developer Guide. ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` - // This is a legacy parameter, for backward compatibility. New applications - // should use ConditionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. - // - // A map of attribute/condition pairs. Expected provides a conditional block - // for the PutItem operation. - // - // This parameter does not support attributes of type List or Map. - // - // Each element of Expected consists of an attribute name, a comparison operator, - // and one or more values. DynamoDB compares the attribute with the value(s) - // you supplied, using the comparison operator. For each Expected element, the - // result of the evaluation is either true or false. - // - // If you specify more than one element in the Expected map, then by default - // all of the conditions must evaluate to true. In other words, the conditions - // are ANDed together. (You can use the ConditionalOperator parameter to OR - // the conditions instead. If you do this, then at least one of the conditions - // must evaluate to true, rather than all of them.) - // - // If the Expected map evaluates to true, then the conditional operation succeeds; - // otherwise, it fails. - // - // Expected contains the following: - // - // AttributeValueList - One or more values to evaluate against the supplied - // attribute. The number of values in the list depends on the ComparisonOperator - // being used. - // - // For type Number, value comparisons are numeric. - // - // String value comparisons for greater than, equals, or less than are based - // on ASCII character code values. For example, a is greater than A, and a is - // greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). - // - // For type Binary, DynamoDB treats each byte of the binary data as unsigned - // when it compares binary values. - // - // ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. - // When performing the comparison, DynamoDB uses strongly consistent reads. - // - // The following comparison operators are available: - // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS - // | BEGINS_WITH | IN | BETWEEN - // - // The following are descriptions of each comparison operator. - // - // EQ : Equal. EQ is supported for all datatypes, including lists and maps. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, Binary, String Set, Number Set, or Binary Set. If an item - // contains an AttributeValue element of a different type than the one provided - // in the request, the value does not match. For example, {"S":"6"} does not - // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. - // - // NE : Not equal. NE is supported for all datatypes, including lists and - // maps. - // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, Binary, String Set, Number Set, or Binary Set. If an item contains - // an AttributeValue of a different type than the one provided in the request, - // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. - // - // LE : Less than or equal. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // LT : Less than. - // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // GE : Greater than or equal. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // GT : Greater than. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, - // including lists and maps. - // - // This operator tests for the existence of an attribute, not its data type. - // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, - // the result is a Boolean true. This result is because the attribute "a" exists; - // its data type is not relevant to the NOT_NULL comparison operator. - // - // NULL : The attribute does not exist. NULL is supported for all datatypes, - // including lists and maps. - // - // This operator tests for the nonexistence of an attribute, not its data - // type. If the data type of attribute "a" is null, and you evaluate it using - // NULL, the result is a Boolean false. This is because the attribute "a" exists; - // its data type is not relevant to the NULL comparison operator. - // - // CONTAINS : Checks for a subsequence, or value in a set. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is of type String, then the operator checks for a substring match. - // If the target attribute of the comparison is of type Binary, then the operator - // looks for a subsequence of the target that matches the input. If the target - // attribute of the comparison is a set ("SS", "NS", or "BS"), then the operator - // evaluates to true if it finds an exact match with any member of the set. - // - // CONTAINS is supported for lists: When evaluating "a CONTAINS b", "a" can - // be a list; however, "b" cannot be a set, a map, or a list. - // - // NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value - // in a set. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is a String, then the operator checks for the absence of a substring - // match. If the target attribute of the comparison is Binary, then the operator - // checks for the absence of a subsequence of the target that matches the input. - // If the target attribute of the comparison is a set ("SS", "NS", or "BS"), - // then the operator evaluates to true if it does not find an exact match with - // any member of the set. - // - // NOT_CONTAINS is supported for lists: When evaluating "a NOT CONTAINS b", - // "a" can be a list; however, "b" cannot be a set, a map, or a list. - // - // BEGINS_WITH : Checks for a prefix. - // - // AttributeValueList can contain only one AttributeValue of type String or - // Binary (not a Number or a set type). The target attribute of the comparison - // must be of type String or Binary (not a Number or a set type). - // - // IN : Checks for matching elements within two sets. - // - // AttributeValueList can contain one or more AttributeValue elements of type - // String, Number, or Binary (not a set type). These attributes are compared - // against an existing set type attribute of an item. If any elements of the - // input set are present in the item attribute, the expression evaluates to - // true. - // - // BETWEEN : Greater than or equal to the first value, and less than or - // equal to the second value. - // - // AttributeValueList must contain two AttributeValue elements of the same - // type, either String, Number, or Binary (not a set type). A target attribute - // matches if the target value is greater than, or equal to, the first element - // and less than, or equal to, the second element. If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not compare to {"N":"6"}. Also, - // {"N":"6"} does not compare to {"NS":["6", "2", "1"]} - // - // For usage examples of AttributeValueList and ComparisonOperator, see - // Legacy Conditional Parameters (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html) + // This is a legacy parameter. Use ConditionExpresssion instead. For more information, + // see Expected (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html) // in the Amazon DynamoDB Developer Guide. - // - // For backward compatibility with previous DynamoDB releases, the following - // parameters can be used instead of AttributeValueList and ComparisonOperator: - // - // Value - A value for DynamoDB to compare with an attribute. - // - // Exists - A Boolean value that causes DynamoDB to evaluate the value before - // attempting the conditional operation: - // - // If Exists is true, DynamoDB will check to see if that attribute value - // already exists in the table. If it is found, then the condition evaluates - // to true; otherwise the condition evaluate to false. - // - // If Exists is false, DynamoDB assumes that the attribute value does not - // exist in the table. If in fact the value does not exist, then the assumption - // is valid and the condition evaluates to true. If the value is found, despite - // the assumption that it does not exist, the condition evaluates to false. - // - // Note that the default value for Exists is true. - // - // The Value and Exists parameters are incompatible with AttributeValueList - // and ComparisonOperator. Note that if you use both sets of parameters at once, - // DynamoDB will return a ValidationException exception. Expected map[string]*ExpectedAttributeValue `type:"map"` // One or more substitution tokens for attribute names in an expression. The // following are some use cases for using ExpressionAttributeNames: // - // To access an attribute whose name conflicts with a DynamoDB reserved word. + // * To access an attribute whose name conflicts with a DynamoDB reserved + // word. // - // To create a placeholder for repeating occurrences of an attribute name - // in an expression. + // * To create a placeholder for repeating occurrences of an attribute name + // in an expression. // - // To prevent special characters in an attribute name from being misinterpreted - // in an expression. + // * To prevent special characters in an attribute name from being misinterpreted + // in an expression. // - // Use the # character in an expression to dereference an attribute name. - // For example, consider the following attribute name: + // Use the # character in an expression to dereference an attribute name. For + // example, consider the following attribute name: // - // Percentile + // * Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot - // be used directly in an expression. (For the complete list of reserved words, + // The name of this attribute conflicts with a reserved word, so it cannot be + // used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // * {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // * #P = :val // - // Tokens that begin with the : character are expression attribute values, - // which are placeholders for the actual value at runtime. + // Tokens that begin with the : character are expression attribute values, which + // are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. ExpressionAttributeNames map[string]*string `type:"map"` @@ -4795,16 +5615,16 @@ type PutItemInput struct { // value. For example, suppose that you wanted to check whether the value of // the ProductStatus attribute was one of the following: // - // Available | Backordered | Discontinued + // Available | Backordered | Discontinued // // You would first need to specify ExpressionAttributeValues as follows: // - // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} + // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} // } // // You could then use these values in an expression, such as this: // - // ProductStatus IN (:avail, :back, :disc) + // ProductStatus IN (:avail, :back, :disc) // // For more information on expression attribute values, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) @@ -4835,18 +5655,18 @@ type PutItemInput struct { // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the - // operation, together with ConsumedCapacity for each table and secondary index - // that was accessed. + // * INDEXES - The response includes the aggregate ConsumedCapacity for the + // operation, together with ConsumedCapacity for each table and secondary + // index that was accessed. // // Note that some operations, such as GetItem and BatchGetItem, do not access - // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity - // information for table(s). + // any indexes at all. In these cases, specifying INDEXES will only return + // ConsumedCapacity information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // * TOTAL - The response includes only the aggregate ConsumedCapacity for + // the operation. // - // NONE - No ConsumedCapacity details are included in the response. + // * NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` // Determines whether item collection metrics are returned. If set to SIZE, @@ -4859,13 +5679,13 @@ type PutItemInput struct { // before they were updated with the PutItem request. For PutItem, the valid // values are: // - // NONE - If ReturnValues is not specified, or if its value is NONE, then - // nothing is returned. (This setting is the default for ReturnValues.) + // * NONE - If ReturnValues is not specified, or if its value is NONE, then + // nothing is returned. (This setting is the default for ReturnValues.) // - // ALL_OLD - If PutItem overwrote an attribute name-value pair, then the - // content of the old item is returned. + // * ALL_OLD - If PutItem overwrote an attribute name-value pair, then the + // content of the old item is returned. // - // The ReturnValues parameter is used by several DynamoDB operations; however, + // The ReturnValues parameter is used by several DynamoDB operations; however, // PutItem does not recognize any values other than NONE or ALL_OLD. ReturnValues *string `type:"string" enum:"ReturnValue"` @@ -4904,42 +5724,103 @@ func (s *PutItemInput) Validate() error { return nil } -// Represents the output of a PutItem operation. -type PutItemOutput struct { - _ struct{} `type:"structure"` +// SetConditionExpression sets the ConditionExpression field's value. +func (s *PutItemInput) SetConditionExpression(v string) *PutItemInput { + s.ConditionExpression = &v + return s +} - // The attribute values as they appeared before the PutItem operation, but only - // if ReturnValues is specified as ALL_OLD in the request. Each element consists - // of an attribute name and an attribute value. - Attributes map[string]*AttributeValue `type:"map"` +// SetConditionalOperator sets the ConditionalOperator field's value. +func (s *PutItemInput) SetConditionalOperator(v string) *PutItemInput { + s.ConditionalOperator = &v + return s +} - // The capacity units consumed by an operation. The data returned includes the - // total provisioned throughput consumed, along with statistics for the table - // and any indexes involved in the operation. ConsumedCapacity is only returned - // if the request asked for it. For more information, see Provisioned Throughput - // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) - // in the Amazon DynamoDB Developer Guide. - ConsumedCapacity *ConsumedCapacity `type:"structure"` +// SetExpected sets the Expected field's value. +func (s *PutItemInput) SetExpected(v map[string]*ExpectedAttributeValue) *PutItemInput { + s.Expected = v + return s +} - // Information about item collections, if any, that were affected by the operation. - // ItemCollectionMetrics is only returned if the request asked for it. If the - // table does not have any local secondary indexes, this information is not - // returned in the response. - // - // Each ItemCollectionMetrics element consists of: - // - // ItemCollectionKey - The partition key value of the item collection. This - // is the same as the partition key value of the item itself. - // - // SizeEstimateRange - An estimate of item collection size, in gigabytes. - // This value is a two-element array containing a lower bound and an upper bound - // for the estimate. The estimate includes the size of all the items in the - // table, plus the size of all attributes projected into all of the local secondary - // indexes on that table. Use this estimate to measure whether a local secondary - // index is approaching its size limit. - // - // The estimate is subject to change over time; therefore, do not rely on the - // precision or accuracy of the estimate. +// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. +func (s *PutItemInput) SetExpressionAttributeNames(v map[string]*string) *PutItemInput { + s.ExpressionAttributeNames = v + return s +} + +// SetExpressionAttributeValues sets the ExpressionAttributeValues field's value. +func (s *PutItemInput) SetExpressionAttributeValues(v map[string]*AttributeValue) *PutItemInput { + s.ExpressionAttributeValues = v + return s +} + +// SetItem sets the Item field's value. +func (s *PutItemInput) SetItem(v map[string]*AttributeValue) *PutItemInput { + s.Item = v + return s +} + +// SetReturnConsumedCapacity sets the ReturnConsumedCapacity field's value. +func (s *PutItemInput) SetReturnConsumedCapacity(v string) *PutItemInput { + s.ReturnConsumedCapacity = &v + return s +} + +// SetReturnItemCollectionMetrics sets the ReturnItemCollectionMetrics field's value. +func (s *PutItemInput) SetReturnItemCollectionMetrics(v string) *PutItemInput { + s.ReturnItemCollectionMetrics = &v + return s +} + +// SetReturnValues sets the ReturnValues field's value. +func (s *PutItemInput) SetReturnValues(v string) *PutItemInput { + s.ReturnValues = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *PutItemInput) SetTableName(v string) *PutItemInput { + s.TableName = &v + return s +} + +// Represents the output of a PutItem operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/PutItemOutput +type PutItemOutput struct { + _ struct{} `type:"structure"` + + // The attribute values as they appeared before the PutItem operation, but only + // if ReturnValues is specified as ALL_OLD in the request. Each element consists + // of an attribute name and an attribute value. + Attributes map[string]*AttributeValue `type:"map"` + + // The capacity units consumed by the PutItem operation. The data returned includes + // the total provisioned throughput consumed, along with statistics for the + // table and any indexes involved in the operation. ConsumedCapacity is only + // returned if the ReturnConsumedCapacity parameter was specified. For more + // information, see Provisioned Throughput (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) + // in the Amazon DynamoDB Developer Guide. + ConsumedCapacity *ConsumedCapacity `type:"structure"` + + // Information about item collections, if any, that were affected by the PutItem + // operation. ItemCollectionMetrics is only returned if the ReturnItemCollectionMetrics + // parameter was specified. If the table does not have any local secondary indexes, + // this information is not returned in the response. + // + // Each ItemCollectionMetrics element consists of: + // + // * ItemCollectionKey - The partition key value of the item collection. + // This is the same as the partition key value of the item itself. + // + // * SizeEstimateRange - An estimate of item collection size, in gigabytes. + // This value is a two-element array containing a lower bound and an upper + // bound for the estimate. The estimate includes the size of all the items + // in the table, plus the size of all attributes projected into all of the + // local secondary indexes on that table. Use this estimate to measure whether + // a local secondary index is approaching its size limit. + // + // The estimate is subject to change over time; therefore, do not rely on the + // precision or accuracy of the estimate. ItemCollectionMetrics *ItemCollectionMetrics `type:"structure"` } @@ -4953,7 +5834,26 @@ func (s PutItemOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *PutItemOutput) SetAttributes(v map[string]*AttributeValue) *PutItemOutput { + s.Attributes = v + return s +} + +// SetConsumedCapacity sets the ConsumedCapacity field's value. +func (s *PutItemOutput) SetConsumedCapacity(v *ConsumedCapacity) *PutItemOutput { + s.ConsumedCapacity = v + return s +} + +// SetItemCollectionMetrics sets the ItemCollectionMetrics field's value. +func (s *PutItemOutput) SetItemCollectionMetrics(v *ItemCollectionMetrics) *PutItemOutput { + s.ItemCollectionMetrics = v + return s +} + // Represents a request to perform a PutItem operation on an item. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/PutRequest type PutRequest struct { _ struct{} `type:"structure"` @@ -4977,60 +5877,25 @@ func (s PutRequest) GoString() string { return s.String() } +// SetItem sets the Item field's value. +func (s *PutRequest) SetItem(v map[string]*AttributeValue) *PutRequest { + s.Item = v + return s +} + // Represents the input of a Query operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/QueryInput type QueryInput struct { _ struct{} `type:"structure"` - // This is a legacy parameter, for backward compatibility. New applications - // should use ProjectionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. - // - // This parameter allows you to retrieve attributes of type List or Map; however, - // it cannot retrieve individual elements within a List or a Map. - // - // The names of one or more attributes to retrieve. If no attribute names - // are provided, then all attributes will be returned. If any of the requested - // attributes are not found, they will not appear in the result. - // - // Note that AttributesToGet has no effect on provisioned throughput consumption. - // DynamoDB determines capacity units consumed based on item size, not on the - // amount of data that is returned to an application. - // - // You cannot use both AttributesToGet and Select together in a Query request, - // unless the value for Select is SPECIFIC_ATTRIBUTES. (This usage is equivalent - // to specifying AttributesToGet without any value for Select.) - // - // If you query a local secondary index and request only attributes that are - // projected into that index, the operation will read only the index and not - // the table. If any of the requested attributes are not projected into the - // local secondary index, DynamoDB will fetch each of these attributes from - // the parent table. This extra fetching incurs additional throughput cost and - // latency. - // - // If you query a global secondary index, you can only request attributes that - // are projected into the index. Global secondary index queries cannot fetch - // attributes from the parent table. + // This is a legacy parameter. Use ProjectionExpression instead. For more information, + // see AttributesToGet (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html) + // in the Amazon DynamoDB Developer Guide. AttributesToGet []*string `min:"1" type:"list"` - // This is a legacy parameter, for backward compatibility. New applications - // should use FilterExpression instead. Do not combine legacy parameters and - // expression parameters in a single API call; otherwise, DynamoDB will return - // a ValidationException exception. - // - // A logical operator to apply to the conditions in a QueryFilter map: - // - // AND - If all of the conditions evaluate to true, then the entire map - // evaluates to true. - // - // OR - If at least one of the conditions evaluate to true, then the entire - // map evaluates to true. - // - // If you omit ConditionalOperator, then AND is the default. - // - // The operation will succeed only if the entire map evaluates to true. - // - // This parameter does not support attributes of type List or Map. + // This is a legacy parameter. Use FilterExpression instead. For more information, + // see ConditionalOperator (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) + // in the Amazon DynamoDB Developer Guide. ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` // Determines the read consistency model: If set to true, then the operation @@ -5052,36 +5917,37 @@ type QueryInput struct { // One or more substitution tokens for attribute names in an expression. The // following are some use cases for using ExpressionAttributeNames: // - // To access an attribute whose name conflicts with a DynamoDB reserved word. + // * To access an attribute whose name conflicts with a DynamoDB reserved + // word. // - // To create a placeholder for repeating occurrences of an attribute name - // in an expression. + // * To create a placeholder for repeating occurrences of an attribute name + // in an expression. // - // To prevent special characters in an attribute name from being misinterpreted - // in an expression. + // * To prevent special characters in an attribute name from being misinterpreted + // in an expression. // - // Use the # character in an expression to dereference an attribute name. - // For example, consider the following attribute name: + // Use the # character in an expression to dereference an attribute name. For + // example, consider the following attribute name: // - // Percentile + // * Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot - // be used directly in an expression. (For the complete list of reserved words, + // The name of this attribute conflicts with a reserved word, so it cannot be + // used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // * {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // * #P = :val // - // Tokens that begin with the : character are expression attribute values, - // which are placeholders for the actual value at runtime. + // Tokens that begin with the : character are expression attribute values, which + // are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. ExpressionAttributeNames map[string]*string `type:"map"` @@ -5091,16 +5957,16 @@ type QueryInput struct { // value. For example, suppose that you wanted to check whether the value of // the ProductStatus attribute was one of the following: // - // Available | Backordered | Discontinued + // Available | Backordered | Discontinued // // You would first need to specify ExpressionAttributeValues as follows: // - // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} + // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} // } // // You could then use these values in an expression, such as this: // - // ProductStatus IN (:avail, :back, :disc) + // ProductStatus IN (:avail, :back, :disc) // // For more information on expression attribute values, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) @@ -5111,14 +5977,14 @@ type QueryInput struct { // but before the data is returned to you. Items that do not satisfy the FilterExpression // criteria are not returned. // - // A FilterExpression is applied after the items have already been read; the + // A FilterExpression does not allow key attributes. You cannot define a filter + // expression based on a partition key or a sort key. + // + // A FilterExpression is applied after the items have already been read; the // process of filtering does not consume any additional read capacity units. // - // For more information, see Filter Expressions (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#FilteringResults) + // For more information, see Filter Expressions (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#FilteringResults) // in the Amazon DynamoDB Developer Guide. - // - // FilterExpression replaces the legacy QueryFilter and ConditionalOperator - // parameters. FilterExpression *string `type:"string"` // The name of an index to query. This index can be any local secondary index @@ -5138,39 +6004,40 @@ type QueryInput struct { // The partition key equality test is required, and must be specified in the // following format: // - // partitionKeyName = :partitionkeyval + // partitionKeyName=:partitionkeyval // // If you also want to provide a condition for the sort key, it must be combined // using AND with the condition for the sort key. Following is an example, using // the = comparison operator for the sort key: // - // partitionKeyName = :partitionkeyval AND sortKeyName = :sortkeyval + // partitionKeyName=:partitionkeyvalANDsortKeyName=:sortkeyval // // Valid comparisons for the sort key condition are as follows: // - // sortKeyName = :sortkeyval - true if the sort key value is equal to :sortkeyval. + // * sortKeyName=:sortkeyval - true if the sort key value is equal to :sortkeyval. // - // sortKeyName < :sortkeyval - true if the sort key value is less than :sortkeyval. + // * sortKeyName<:sortkeyval - true if the sort key value is less than :sortkeyval. // - // sortKeyName <= :sortkeyval - true if the sort key value is less than - // or equal to :sortkeyval. + // * sortKeyName<=:sortkeyval - true if the sort key value is less than or + // equal to :sortkeyval. // - // sortKeyName > :sortkeyval - true if the sort key value is greater than - // :sortkeyval. + // * sortKeyName>:sortkeyval - true if the sort key value is greater than + // :sortkeyval. // - // sortKeyName >= :sortkeyval - true if the sort key value is greater than - // or equal to :sortkeyval. + // * sortKeyName>= :sortkeyval - true if the sort key value is greater than + // or equal to :sortkeyval. // - // sortKeyName BETWEEN :sortkeyval1 AND :sortkeyval2 - true if the sort - // key value is greater than or equal to :sortkeyval1, and less than or equal - // to :sortkeyval2. + // * sortKeyNameBETWEEN:sortkeyval1AND:sortkeyval2 - true if the sort key + // value is greater than or equal to :sortkeyval1, and less than or equal + // to :sortkeyval2. // - // begins_with ( sortKeyName, :sortkeyval ) - true if the sort key value - // begins with a particular operand. (You cannot use this function with a sort - // key that is of type Number.) Note that the function name begins_with is case-sensitive. + // * begins_with (sortKeyName, :sortkeyval) - true if the sort key value + // begins with a particular operand. (You cannot use this function with a + // sort key that is of type Number.) Note that the function name begins_with + // is case-sensitive. // - // Use the ExpressionAttributeValues parameter to replace tokens such as - // :partitionval and :sortval with actual values at runtime. + // Use the ExpressionAttributeValues parameter to replace tokens such as :partitionval + // and :sortval with actual values at runtime. // // You can optionally use the ExpressionAttributeNames parameter to replace // the names of the partition key and sort key with placeholder tokens. This @@ -5178,127 +6045,23 @@ type QueryInput struct { // reserved word. For example, the following KeyConditionExpression parameter // causes an error because Size is a reserved word: // - // Size = :myval + // * Size = :myval // - // To work around this, define a placeholder (such a #S) to represent the - // attribute name Size. KeyConditionExpression then is as follows: + // To work around this, define a placeholder (such a #S) to represent the attribute + // name Size. KeyConditionExpression then is as follows: // - // #S = :myval + // * #S = :myval // - // For a list of reserved words, see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) + // For a list of reserved words, see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide. // // For more information on ExpressionAttributeNames and ExpressionAttributeValues, // see Using Placeholders for Attribute Names and Values (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ExpressionPlaceholders.html) // in the Amazon DynamoDB Developer Guide. - // - // KeyConditionExpression replaces the legacy KeyConditions parameter. KeyConditionExpression *string `type:"string"` - // This is a legacy parameter, for backward compatibility. New applications - // should use KeyConditionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. - // - // The selection criteria for the query. For a query on a table, you can have - // conditions only on the table primary key attributes. You must provide the - // partition key name and value as an EQ condition. You can optionally provide - // a second condition, referring to the sort key. - // - // If you don't provide a sort key condition, all of the items that match - // the partition key will be retrieved. If a FilterExpression or QueryFilter - // is present, it will be applied after the items are retrieved. - // - // For a query on an index, you can have conditions only on the index key - // attributes. You must provide the index partition key name and value as an - // EQ condition. You can optionally provide a second condition, referring to - // the index sort key. - // - // Each KeyConditions element consists of an attribute name to compare, along - // with the following: - // - // AttributeValueList - One or more values to evaluate against the supplied - // attribute. The number of values in the list depends on the ComparisonOperator - // being used. - // - // For type Number, value comparisons are numeric. - // - // String value comparisons for greater than, equals, or less than are based - // on ASCII character code values. For example, a is greater than A, and a is - // greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). - // - // For Binary, DynamoDB treats each byte of the binary data as unsigned when - // it compares binary values. - // - // ComparisonOperator - A comparator for evaluating attributes, for example, - // equals, greater than, less than, and so on. - // - // For KeyConditions, only the following comparison operators are supported: - // - // EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN - // - // The following are descriptions of these comparison operators. - // - // EQ : Equal. - // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one specified in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not equal {"NS":["6", "2", "1"]}. - // - // LE : Less than or equal. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // LT : Less than. - // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // GE : Greater than or equal. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // GT : Greater than. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // BEGINS_WITH : Checks for a prefix. - // - // AttributeValueList can contain only one AttributeValue of type String or - // Binary (not a Number or a set type). The target attribute of the comparison - // must be of type String or Binary (not a Number or a set type). - // - // BETWEEN : Greater than or equal to the first value, and less than or - // equal to the second value. - // - // AttributeValueList must contain two AttributeValue elements of the same - // type, either String, Number, or Binary (not a set type). A target attribute - // matches if the target value is greater than, or equal to, the first element - // and less than, or equal to, the second element. If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not compare to {"N":"6"}. Also, - // {"N":"6"} does not compare to {"NS":["6", "2", "1"]} - // - // For usage examples of AttributeValueList and ComparisonOperator, see - // Legacy Conditional Parameters (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html) + // This is a legacy parameter. Use KeyConditionExpression instead. For more + // information, see KeyConditions (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.KeyConditions.html) // in the Amazon DynamoDB Developer Guide. KeyConditions map[string]*Condition `type:"map"` @@ -5324,80 +6087,28 @@ type QueryInput struct { // // For more information, see Accessing Item Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. - // - // ProjectionExpression replaces the legacy AttributesToGet parameter. ProjectionExpression *string `type:"string"` - // This is a legacy parameter, for backward compatibility. New applications - // should use FilterExpression instead. Do not combine legacy parameters and - // expression parameters in a single API call; otherwise, DynamoDB will return - // a ValidationException exception. - // - // A condition that evaluates the query results after the items are read and - // returns only the desired values. - // - // This parameter does not support attributes of type List or Map. - // - // A QueryFilter is applied after the items have already been read; the process - // of filtering does not consume any additional read capacity units. - // - // If you provide more than one condition in the QueryFilter map, then by - // default all of the conditions must evaluate to true. In other words, the - // conditions are ANDed together. (You can use the ConditionalOperator parameter - // to OR the conditions instead. If you do this, then at least one of the conditions - // must evaluate to true, rather than all of them.) - // - // Note that QueryFilter does not allow key attributes. You cannot define a - // filter condition on a partition key or a sort key. - // - // Each QueryFilter element consists of an attribute name to compare, along - // with the following: - // - // AttributeValueList - One or more values to evaluate against the supplied - // attribute. The number of values in the list depends on the operator specified - // in ComparisonOperator. - // - // For type Number, value comparisons are numeric. - // - // String value comparisons for greater than, equals, or less than are based - // on ASCII character code values. For example, a is greater than A, and a is - // greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). - // - // For type Binary, DynamoDB treats each byte of the binary data as unsigned - // when it compares binary values. - // - // For information on specifying data types in JSON, see JSON Data Format (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataFormat.html) + // This is a legacy parameter. Use FilterExpression instead. For more information, + // see QueryFilter (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.QueryFilter.html) // in the Amazon DynamoDB Developer Guide. - // - // ComparisonOperator - A comparator for evaluating attributes. For example, - // equals, greater than, less than, etc. - // - // The following comparison operators are available: - // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS - // | BEGINS_WITH | IN | BETWEEN - // - // For complete descriptions of all comparison operators, see the Condition - // (http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Condition.html) - // data type. QueryFilter map[string]*Condition `type:"map"` // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the - // operation, together with ConsumedCapacity for each table and secondary index - // that was accessed. + // * INDEXES - The response includes the aggregate ConsumedCapacity for the + // operation, together with ConsumedCapacity for each table and secondary + // index that was accessed. // // Note that some operations, such as GetItem and BatchGetItem, do not access - // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity - // information for table(s). + // any indexes at all. In these cases, specifying INDEXES will only return + // ConsumedCapacity information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // * TOTAL - The response includes only the aggregate ConsumedCapacity for + // the operation. // - // NONE - No ConsumedCapacity details are included in the response. + // * NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` // Specifies the order for index traversal: If true (default), the traversal @@ -5420,43 +6131,44 @@ type QueryInput struct { // specific item attributes, the count of matching items, or in the case of // an index, some or all of the attributes projected into the index. // - // ALL_ATTRIBUTES - Returns all of the item attributes from the specified - // table or index. If you query a local secondary index, then for each matching - // item in the index DynamoDB will fetch the entire item from the parent table. - // If the index is configured to project all item attributes, then all of the - // data can be obtained from the local secondary index, and no fetching is required. - // - // ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves - // all attributes that have been projected into the index. If the index is configured - // to project all attributes, this return value is equivalent to specifying - // ALL_ATTRIBUTES. - // - // COUNT - Returns the number of matching items, rather than the matching - // items themselves. - // - // SPECIFIC_ATTRIBUTES - Returns only the attributes listed in AttributesToGet. - // This return value is equivalent to specifying AttributesToGet without specifying - // any value for Select. - // - // If you query a local secondary index and request only attributes that are - // projected into that index, the operation will read only the index and not - // the table. If any of the requested attributes are not projected into the - // local secondary index, DynamoDB will fetch each of these attributes from - // the parent table. This extra fetching incurs additional throughput cost and - // latency. - // - // If you query a global secondary index, you can only request attributes that - // are projected into the index. Global secondary index queries cannot fetch - // attributes from the parent table. - // - // If neither Select nor AttributesToGet are specified, DynamoDB defaults - // to ALL_ATTRIBUTES when accessing a table, and ALL_PROJECTED_ATTRIBUTES when + // * ALL_ATTRIBUTES - Returns all of the item attributes from the specified + // table or index. If you query a local secondary index, then for each matching + // item in the index DynamoDB will fetch the entire item from the parent + // table. If the index is configured to project all item attributes, then + // all of the data can be obtained from the local secondary index, and no + // fetching is required. + // + // * ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves + // all attributes that have been projected into the index. If the index is + // configured to project all attributes, this return value is equivalent + // to specifying ALL_ATTRIBUTES. + // + // * COUNT - Returns the number of matching items, rather than the matching + // items themselves. + // + // * SPECIFIC_ATTRIBUTES - Returns only the attributes listed in AttributesToGet. + // This return value is equivalent to specifying AttributesToGet without + // specifying any value for Select. + // + // If you query or scan a local secondary index and request only attributes + // that are projected into that index, the operation will read only the index + // and not the table. If any of the requested attributes are not projected + // into the local secondary index, DynamoDB will fetch each of these attributes + // from the parent table. This extra fetching incurs additional throughput + // cost and latency. + // + // If you query or scan a global secondary index, you can only request attributes + // that are projected into the index. Global secondary index queries cannot + // fetch attributes from the parent table. + // + // If neither Select nor AttributesToGet are specified, DynamoDB defaults to + // ALL_ATTRIBUTES when accessing a table, and ALL_PROJECTED_ATTRIBUTES when // accessing an index. You cannot use both Select and AttributesToGet together // in a single request, unless the value for Select is SPECIFIC_ATTRIBUTES. // (This usage is equivalent to specifying AttributesToGet without any value // for Select.) // - // If you use the ProjectionExpression parameter, then the value for Select + // If you use the ProjectionExpression parameter, then the value for Select // can only be SPECIFIC_ATTRIBUTES. Any other value for Select will return an // error. Select *string `type:"string" enum:"Select"` @@ -5522,15 +6234,118 @@ func (s *QueryInput) Validate() error { return nil } +// SetAttributesToGet sets the AttributesToGet field's value. +func (s *QueryInput) SetAttributesToGet(v []*string) *QueryInput { + s.AttributesToGet = v + return s +} + +// SetConditionalOperator sets the ConditionalOperator field's value. +func (s *QueryInput) SetConditionalOperator(v string) *QueryInput { + s.ConditionalOperator = &v + return s +} + +// SetConsistentRead sets the ConsistentRead field's value. +func (s *QueryInput) SetConsistentRead(v bool) *QueryInput { + s.ConsistentRead = &v + return s +} + +// SetExclusiveStartKey sets the ExclusiveStartKey field's value. +func (s *QueryInput) SetExclusiveStartKey(v map[string]*AttributeValue) *QueryInput { + s.ExclusiveStartKey = v + return s +} + +// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. +func (s *QueryInput) SetExpressionAttributeNames(v map[string]*string) *QueryInput { + s.ExpressionAttributeNames = v + return s +} + +// SetExpressionAttributeValues sets the ExpressionAttributeValues field's value. +func (s *QueryInput) SetExpressionAttributeValues(v map[string]*AttributeValue) *QueryInput { + s.ExpressionAttributeValues = v + return s +} + +// SetFilterExpression sets the FilterExpression field's value. +func (s *QueryInput) SetFilterExpression(v string) *QueryInput { + s.FilterExpression = &v + return s +} + +// SetIndexName sets the IndexName field's value. +func (s *QueryInput) SetIndexName(v string) *QueryInput { + s.IndexName = &v + return s +} + +// SetKeyConditionExpression sets the KeyConditionExpression field's value. +func (s *QueryInput) SetKeyConditionExpression(v string) *QueryInput { + s.KeyConditionExpression = &v + return s +} + +// SetKeyConditions sets the KeyConditions field's value. +func (s *QueryInput) SetKeyConditions(v map[string]*Condition) *QueryInput { + s.KeyConditions = v + return s +} + +// SetLimit sets the Limit field's value. +func (s *QueryInput) SetLimit(v int64) *QueryInput { + s.Limit = &v + return s +} + +// SetProjectionExpression sets the ProjectionExpression field's value. +func (s *QueryInput) SetProjectionExpression(v string) *QueryInput { + s.ProjectionExpression = &v + return s +} + +// SetQueryFilter sets the QueryFilter field's value. +func (s *QueryInput) SetQueryFilter(v map[string]*Condition) *QueryInput { + s.QueryFilter = v + return s +} + +// SetReturnConsumedCapacity sets the ReturnConsumedCapacity field's value. +func (s *QueryInput) SetReturnConsumedCapacity(v string) *QueryInput { + s.ReturnConsumedCapacity = &v + return s +} + +// SetScanIndexForward sets the ScanIndexForward field's value. +func (s *QueryInput) SetScanIndexForward(v bool) *QueryInput { + s.ScanIndexForward = &v + return s +} + +// SetSelect sets the Select field's value. +func (s *QueryInput) SetSelect(v string) *QueryInput { + s.Select = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *QueryInput) SetTableName(v string) *QueryInput { + s.TableName = &v + return s +} + // Represents the output of a Query operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/QueryOutput type QueryOutput struct { _ struct{} `type:"structure"` - // The capacity units consumed by an operation. The data returned includes the - // total provisioned throughput consumed, along with statistics for the table - // and any indexes involved in the operation. ConsumedCapacity is only returned - // if the request asked for it. For more information, see Provisioned Throughput - // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) + // The capacity units consumed by the Query operation. The data returned includes + // the total provisioned throughput consumed, along with statistics for the + // table and any indexes involved in the operation. ConsumedCapacity is only + // returned if the ReturnConsumedCapacity parameter was specified For more information, + // see Provisioned Throughput (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) // in the Amazon DynamoDB Developer Guide. ConsumedCapacity *ConsumedCapacity `type:"structure"` @@ -5540,8 +6355,8 @@ type QueryOutput struct { // returned after the filter was applied, and ScannedCount is the number of // matching items before the filter was applied. // - // If you did not use a filter in the request, then Count and ScannedCount - // are the same. + // If you did not use a filter in the request, then Count and ScannedCount are + // the same. Count *int64 `type:"integer"` // An array of item attributes that match the query criteria. Each element in @@ -5580,57 +6395,61 @@ func (s QueryOutput) GoString() string { return s.String() } +// SetConsumedCapacity sets the ConsumedCapacity field's value. +func (s *QueryOutput) SetConsumedCapacity(v *ConsumedCapacity) *QueryOutput { + s.ConsumedCapacity = v + return s +} + +// SetCount sets the Count field's value. +func (s *QueryOutput) SetCount(v int64) *QueryOutput { + s.Count = &v + return s +} + +// SetItems sets the Items field's value. +func (s *QueryOutput) SetItems(v []map[string]*AttributeValue) *QueryOutput { + s.Items = v + return s +} + +// SetLastEvaluatedKey sets the LastEvaluatedKey field's value. +func (s *QueryOutput) SetLastEvaluatedKey(v map[string]*AttributeValue) *QueryOutput { + s.LastEvaluatedKey = v + return s +} + +// SetScannedCount sets the ScannedCount field's value. +func (s *QueryOutput) SetScannedCount(v int64) *QueryOutput { + s.ScannedCount = &v + return s +} + // Represents the input of a Scan operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ScanInput type ScanInput struct { _ struct{} `type:"structure"` - // This is a legacy parameter, for backward compatibility. New applications - // should use ProjectionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. - // - // This parameter allows you to retrieve attributes of type List or Map; however, - // it cannot retrieve individual elements within a List or a Map. - // - // The names of one or more attributes to retrieve. If no attribute names - // are provided, then all attributes will be returned. If any of the requested - // attributes are not found, they will not appear in the result. - // - // Note that AttributesToGet has no effect on provisioned throughput consumption. - // DynamoDB determines capacity units consumed based on item size, not on the - // amount of data that is returned to an application. + // This is a legacy parameter. Use ProjectionExpression instead. For more information, + // see AttributesToGet (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html) + // in the Amazon DynamoDB Developer Guide. AttributesToGet []*string `min:"1" type:"list"` - // This is a legacy parameter, for backward compatibility. New applications - // should use FilterExpression instead. Do not combine legacy parameters and - // expression parameters in a single API call; otherwise, DynamoDB will return - // a ValidationException exception. - // - // A logical operator to apply to the conditions in a ScanFilter map: - // - // AND - If all of the conditions evaluate to true, then the entire map - // evaluates to true. - // - // OR - If at least one of the conditions evaluate to true, then the entire - // map evaluates to true. - // - // If you omit ConditionalOperator, then AND is the default. - // - // The operation will succeed only if the entire map evaluates to true. - // - // This parameter does not support attributes of type List or Map. + // This is a legacy parameter. Use FilterExpression instead. For more information, + // see ConditionalOperator (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) + // in the Amazon DynamoDB Developer Guide. ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` // A Boolean value that determines the read consistency model during the scan: // - // If ConsistentRead is false, then the data returned from Scan might not - // contain the results from other recently completed write operations (PutItem, - // UpdateItem or DeleteItem). + // * If ConsistentRead is false, then the data returned from Scan might not + // contain the results from other recently completed write operations (PutItem, + // UpdateItem or DeleteItem). // - // If ConsistentRead is true, then all of the write operations that completed - // before the Scan began are guaranteed to be contained in the Scan response. + // * If ConsistentRead is true, then all of the write operations that completed + // before the Scan began are guaranteed to be contained in the Scan response. // - // The default setting for ConsistentRead is false. + // The default setting for ConsistentRead is false. // // The ConsistentRead parameter is not supported on global secondary indexes. // If you scan a global secondary index with ConsistentRead set to true, you @@ -5643,44 +6462,45 @@ type ScanInput struct { // The data type for ExclusiveStartKey must be String, Number or Binary. No // set data types are allowed. // - // In a parallel scan, a Scan request that includes ExclusiveStartKey must - // specify the same segment whose previous Scan returned the corresponding value - // of LastEvaluatedKey. + // In a parallel scan, a Scan request that includes ExclusiveStartKey must specify + // the same segment whose previous Scan returned the corresponding value of + // LastEvaluatedKey. ExclusiveStartKey map[string]*AttributeValue `type:"map"` // One or more substitution tokens for attribute names in an expression. The // following are some use cases for using ExpressionAttributeNames: // - // To access an attribute whose name conflicts with a DynamoDB reserved word. + // * To access an attribute whose name conflicts with a DynamoDB reserved + // word. // - // To create a placeholder for repeating occurrences of an attribute name - // in an expression. + // * To create a placeholder for repeating occurrences of an attribute name + // in an expression. // - // To prevent special characters in an attribute name from being misinterpreted - // in an expression. + // * To prevent special characters in an attribute name from being misinterpreted + // in an expression. // - // Use the # character in an expression to dereference an attribute name. - // For example, consider the following attribute name: + // Use the # character in an expression to dereference an attribute name. For + // example, consider the following attribute name: // - // Percentile + // * Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot - // be used directly in an expression. (For the complete list of reserved words, + // The name of this attribute conflicts with a reserved word, so it cannot be + // used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // * {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // * #P = :val // - // Tokens that begin with the : character are expression attribute values, - // which are placeholders for the actual value at runtime. + // Tokens that begin with the : character are expression attribute values, which + // are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. ExpressionAttributeNames map[string]*string `type:"map"` @@ -5690,16 +6510,16 @@ type ScanInput struct { // value. For example, suppose that you wanted to check whether the value of // the ProductStatus attribute was one of the following: // - // Available | Backordered | Discontinued + // Available | Backordered | Discontinued // // You would first need to specify ExpressionAttributeValues as follows: // - // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} + // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} // } // // You could then use these values in an expression, such as this: // - // ProductStatus IN (:avail, :back, :disc) + // ProductStatus IN (:avail, :back, :disc) // // For more information on expression attribute values, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) @@ -5710,14 +6530,11 @@ type ScanInput struct { // but before the data is returned to you. Items that do not satisfy the FilterExpression // criteria are not returned. // - // A FilterExpression is applied after the items have already been read; the + // A FilterExpression is applied after the items have already been read; the // process of filtering does not consume any additional read capacity units. // - // For more information, see Filter Expressions (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#FilteringResults) + // For more information, see Filter Expressions (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#FilteringResults) // in the Amazon DynamoDB Developer Guide. - // - // FilterExpression replaces the legacy ScanFilter and ConditionalOperator - // parameters. FilterExpression *string `type:"string"` // The name of a secondary index to scan. This index can be any local secondary @@ -5747,72 +6564,28 @@ type ScanInput struct { // // For more information, see Accessing Item Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. - // - // ProjectionExpression replaces the legacy AttributesToGet parameter. ProjectionExpression *string `type:"string"` // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the - // operation, together with ConsumedCapacity for each table and secondary index - // that was accessed. + // * INDEXES - The response includes the aggregate ConsumedCapacity for the + // operation, together with ConsumedCapacity for each table and secondary + // index that was accessed. // // Note that some operations, such as GetItem and BatchGetItem, do not access - // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity - // information for table(s). + // any indexes at all. In these cases, specifying INDEXES will only return + // ConsumedCapacity information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // * TOTAL - The response includes only the aggregate ConsumedCapacity for + // the operation. // - // NONE - No ConsumedCapacity details are included in the response. + // * NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` - // This is a legacy parameter, for backward compatibility. New applications - // should use FilterExpression instead. Do not combine legacy parameters and - // expression parameters in a single API call; otherwise, DynamoDB will return - // a ValidationException exception. - // - // A condition that evaluates the scan results and returns only the desired - // values. - // - // This parameter does not support attributes of type List or Map. - // - // If you specify more than one condition in the ScanFilter map, then by default - // all of the conditions must evaluate to true. In other words, the conditions - // are ANDed together. (You can use the ConditionalOperator parameter to OR - // the conditions instead. If you do this, then at least one of the conditions - // must evaluate to true, rather than all of them.) - // - // Each ScanFilter element consists of an attribute name to compare, along - // with the following: - // - // AttributeValueList - One or more values to evaluate against the supplied - // attribute. The number of values in the list depends on the operator specified - // in ComparisonOperator . - // - // For type Number, value comparisons are numeric. - // - // String value comparisons for greater than, equals, or less than are based - // on ASCII character code values. For example, a is greater than A, and a is - // greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). - // - // For Binary, DynamoDB treats each byte of the binary data as unsigned when - // it compares binary values. - // - // For information on specifying data types in JSON, see JSON Data Format (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataFormat.html) + // This is a legacy parameter. Use FilterExpression instead. For more information, + // see ScanFilter (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ScanFilter.html) // in the Amazon DynamoDB Developer Guide. - // - // ComparisonOperator - A comparator for evaluating attributes. For example, - // equals, greater than, less than, etc. - // - // The following comparison operators are available: - // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS - // | BEGINS_WITH | IN | BETWEEN - // - // For complete descriptions of all comparison operators, see Condition (http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Condition.html). ScanFilter map[string]*Condition `type:"map"` // For a parallel Scan request, Segment identifies an individual segment to @@ -5827,34 +6600,56 @@ type ScanInput struct { // be used as ExclusiveStartKey with the same segment ID in a subsequent Scan // operation. // - // The value for Segment must be greater than or equal to 0, and less than - // the value provided for TotalSegments. + // The value for Segment must be greater than or equal to 0, and less than the + // value provided for TotalSegments. // // If you provide Segment, you must also provide TotalSegments. Segment *int64 `type:"integer"` // The attributes to be returned in the result. You can retrieve all item attributes, - // specific item attributes, or the count of matching items. - // - // ALL_ATTRIBUTES - Returns all of the item attributes. - // - // ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves - // all attributes that have been projected into the index. If the index is configured - // to project all attributes, this return value is equivalent to specifying - // ALL_ATTRIBUTES. - // - // COUNT - Returns the number of matching items, rather than the matching - // items themselves. - // - // SPECIFIC_ATTRIBUTES - Returns only the attributes listed in AttributesToGet. - // This return value is equivalent to specifying AttributesToGet without specifying - // any value for Select. + // specific item attributes, the count of matching items, or in the case of + // an index, some or all of the attributes projected into the index. // - // If neither Select nor AttributesToGet are specified, DynamoDB defaults - // to ALL_ATTRIBUTES. You cannot use both AttributesToGet and Select together + // * ALL_ATTRIBUTES - Returns all of the item attributes from the specified + // table or index. If you query a local secondary index, then for each matching + // item in the index DynamoDB will fetch the entire item from the parent + // table. If the index is configured to project all item attributes, then + // all of the data can be obtained from the local secondary index, and no + // fetching is required. + // + // * ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves + // all attributes that have been projected into the index. If the index is + // configured to project all attributes, this return value is equivalent + // to specifying ALL_ATTRIBUTES. + // + // * COUNT - Returns the number of matching items, rather than the matching + // items themselves. + // + // * SPECIFIC_ATTRIBUTES - Returns only the attributes listed in AttributesToGet. + // This return value is equivalent to specifying AttributesToGet without + // specifying any value for Select. + // + // If you query or scan a local secondary index and request only attributes + // that are projected into that index, the operation will read only the index + // and not the table. If any of the requested attributes are not projected + // into the local secondary index, DynamoDB will fetch each of these attributes + // from the parent table. This extra fetching incurs additional throughput + // cost and latency. + // + // If you query or scan a global secondary index, you can only request attributes + // that are projected into the index. Global secondary index queries cannot + // fetch attributes from the parent table. + // + // If neither Select nor AttributesToGet are specified, DynamoDB defaults to + // ALL_ATTRIBUTES when accessing a table, and ALL_PROJECTED_ATTRIBUTES when + // accessing an index. You cannot use both Select and AttributesToGet together // in a single request, unless the value for Select is SPECIFIC_ATTRIBUTES. // (This usage is equivalent to specifying AttributesToGet without any value // for Select.) + // + // If you use the ProjectionExpression parameter, then the value for Select + // can only be SPECIFIC_ATTRIBUTES. Any other value for Select will return an + // error. Select *string `type:"string" enum:"Select"` // The name of the table containing the requested items; or, if you provide @@ -5925,23 +6720,120 @@ func (s *ScanInput) Validate() error { return nil } +// SetAttributesToGet sets the AttributesToGet field's value. +func (s *ScanInput) SetAttributesToGet(v []*string) *ScanInput { + s.AttributesToGet = v + return s +} + +// SetConditionalOperator sets the ConditionalOperator field's value. +func (s *ScanInput) SetConditionalOperator(v string) *ScanInput { + s.ConditionalOperator = &v + return s +} + +// SetConsistentRead sets the ConsistentRead field's value. +func (s *ScanInput) SetConsistentRead(v bool) *ScanInput { + s.ConsistentRead = &v + return s +} + +// SetExclusiveStartKey sets the ExclusiveStartKey field's value. +func (s *ScanInput) SetExclusiveStartKey(v map[string]*AttributeValue) *ScanInput { + s.ExclusiveStartKey = v + return s +} + +// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. +func (s *ScanInput) SetExpressionAttributeNames(v map[string]*string) *ScanInput { + s.ExpressionAttributeNames = v + return s +} + +// SetExpressionAttributeValues sets the ExpressionAttributeValues field's value. +func (s *ScanInput) SetExpressionAttributeValues(v map[string]*AttributeValue) *ScanInput { + s.ExpressionAttributeValues = v + return s +} + +// SetFilterExpression sets the FilterExpression field's value. +func (s *ScanInput) SetFilterExpression(v string) *ScanInput { + s.FilterExpression = &v + return s +} + +// SetIndexName sets the IndexName field's value. +func (s *ScanInput) SetIndexName(v string) *ScanInput { + s.IndexName = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ScanInput) SetLimit(v int64) *ScanInput { + s.Limit = &v + return s +} + +// SetProjectionExpression sets the ProjectionExpression field's value. +func (s *ScanInput) SetProjectionExpression(v string) *ScanInput { + s.ProjectionExpression = &v + return s +} + +// SetReturnConsumedCapacity sets the ReturnConsumedCapacity field's value. +func (s *ScanInput) SetReturnConsumedCapacity(v string) *ScanInput { + s.ReturnConsumedCapacity = &v + return s +} + +// SetScanFilter sets the ScanFilter field's value. +func (s *ScanInput) SetScanFilter(v map[string]*Condition) *ScanInput { + s.ScanFilter = v + return s +} + +// SetSegment sets the Segment field's value. +func (s *ScanInput) SetSegment(v int64) *ScanInput { + s.Segment = &v + return s +} + +// SetSelect sets the Select field's value. +func (s *ScanInput) SetSelect(v string) *ScanInput { + s.Select = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *ScanInput) SetTableName(v string) *ScanInput { + s.TableName = &v + return s +} + +// SetTotalSegments sets the TotalSegments field's value. +func (s *ScanInput) SetTotalSegments(v int64) *ScanInput { + s.TotalSegments = &v + return s +} + // Represents the output of a Scan operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ScanOutput type ScanOutput struct { _ struct{} `type:"structure"` - // The capacity units consumed by an operation. The data returned includes the - // total provisioned throughput consumed, along with statistics for the table - // and any indexes involved in the operation. ConsumedCapacity is only returned - // if the request asked for it. For more information, see Provisioned Throughput - // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) + // The capacity units consumed by the Scan operation. The data returned includes + // the total provisioned throughput consumed, along with statistics for the + // table and any indexes involved in the operation. ConsumedCapacity is only + // returned if the ReturnConsumedCapacity parameter was specified. For more + // information, see Provisioned Throughput (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) // in the Amazon DynamoDB Developer Guide. ConsumedCapacity *ConsumedCapacity `type:"structure"` // The number of items in the response. // - // If you set ScanFilter in the request, then Count is the number of items - // returned after the filter was applied, and ScannedCount is the number of - // matching items before the filter was applied. + // If you set ScanFilter in the request, then Count is the number of items returned + // after the filter was applied, and ScannedCount is the number of matching + // items before the filter was applied. // // If you did not use a filter in the request, then Count is the same as ScannedCount. Count *int64 `type:"integer"` @@ -5982,7 +6874,38 @@ func (s ScanOutput) GoString() string { return s.String() } +// SetConsumedCapacity sets the ConsumedCapacity field's value. +func (s *ScanOutput) SetConsumedCapacity(v *ConsumedCapacity) *ScanOutput { + s.ConsumedCapacity = v + return s +} + +// SetCount sets the Count field's value. +func (s *ScanOutput) SetCount(v int64) *ScanOutput { + s.Count = &v + return s +} + +// SetItems sets the Items field's value. +func (s *ScanOutput) SetItems(v []map[string]*AttributeValue) *ScanOutput { + s.Items = v + return s +} + +// SetLastEvaluatedKey sets the LastEvaluatedKey field's value. +func (s *ScanOutput) SetLastEvaluatedKey(v map[string]*AttributeValue) *ScanOutput { + s.LastEvaluatedKey = v + return s +} + +// SetScannedCount sets the ScannedCount field's value. +func (s *ScanOutput) SetScannedCount(v int64) *ScanOutput { + s.ScannedCount = &v + return s +} + // Represents the DynamoDB Streams configuration for a table in DynamoDB. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/StreamSpecification type StreamSpecification struct { _ struct{} `type:"structure"` @@ -5990,26 +6913,21 @@ type StreamSpecification struct { // on the table. StreamEnabled *bool `type:"boolean"` - // The DynamoDB Streams settings for the table. These settings consist of: - // - // StreamEnabled - Indicates whether DynamoDB Streams is enabled (true) - // or disabled (false) on the table. - // - // StreamViewType - When an item in the table is modified, StreamViewType - // determines what information is written to the stream for this table. Valid - // values for StreamViewType are: + // When an item in the table is modified, StreamViewType determines what information + // is written to the stream for this table. Valid values for StreamViewType + // are: // - // KEYS_ONLY - Only the key attributes of the modified item are written - // to the stream. + // * KEYS_ONLY - Only the key attributes of the modified item are written + // to the stream. // - // NEW_IMAGE - The entire item, as it appears after it was modified, is - // written to the stream. + // * NEW_IMAGE - The entire item, as it appears after it was modified, is + // written to the stream. // - // OLD_IMAGE - The entire item, as it appeared before it was modified, is - // written to the stream. + // * OLD_IMAGE - The entire item, as it appeared before it was modified, + // is written to the stream. // - // NEW_AND_OLD_IMAGES - Both the new and the old item images of the item - // are written to the stream. + // * NEW_AND_OLD_IMAGES - Both the new and the old item images of the item + // are written to the stream. StreamViewType *string `type:"string" enum:"StreamViewType"` } @@ -6023,7 +6941,20 @@ func (s StreamSpecification) GoString() string { return s.String() } +// SetStreamEnabled sets the StreamEnabled field's value. +func (s *StreamSpecification) SetStreamEnabled(v bool) *StreamSpecification { + s.StreamEnabled = &v + return s +} + +// SetStreamViewType sets the StreamViewType field's value. +func (s *StreamSpecification) SetStreamViewType(v string) *StreamSpecification { + s.StreamViewType = &v + return s +} + // Represents the properties of a table. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TableDescription type TableDescription struct { _ struct{} `type:"structure"` @@ -6032,9 +6963,9 @@ type TableDescription struct { // // Each AttributeDefinition object in this array is composed of: // - // AttributeName - The name of the attribute. + // * AttributeName - The name of the attribute. // - // AttributeType - The data type for the attribute. + // * AttributeType - The data type for the attribute. AttributeDefinitions []*AttributeDefinition `type:"list"` // The date and time when the table was created, in UNIX epoch time (http://www.epochconverter.com/) @@ -6044,61 +6975,61 @@ type TableDescription struct { // The global secondary indexes, if any, on the table. Each index is scoped // to a given partition key value. Each element is composed of: // - // Backfilling - If true, then the index is currently in the backfilling - // phase. Backfilling occurs only when a new global secondary index is added - // to the table; it is the process by which DynamoDB populates the new index - // with data from the table. (This attribute does not appear for indexes that - // were created during a CreateTable operation.) + // * Backfilling - If true, then the index is currently in the backfilling + // phase. Backfilling occurs only when a new global secondary index is added + // to the table; it is the process by which DynamoDB populates the new index + // with data from the table. (This attribute does not appear for indexes + // that were created during a CreateTable operation.) // - // IndexName - The name of the global secondary index. + // * IndexName - The name of the global secondary index. // - // IndexSizeBytes - The total size of the global secondary index, in bytes. - // DynamoDB updates this value approximately every six hours. Recent changes - // might not be reflected in this value. + // * IndexSizeBytes - The total size of the global secondary index, in bytes. + // DynamoDB updates this value approximately every six hours. Recent changes + // might not be reflected in this value. // - // IndexStatus - The current status of the global secondary index: + // * IndexStatus - The current status of the global secondary index: // - // CREATING - The index is being created. + // CREATING - The index is being created. // - // UPDATING - The index is being updated. + // UPDATING - The index is being updated. // - // DELETING - The index is being deleted. + // DELETING - The index is being deleted. // - // ACTIVE - The index is ready for use. + // ACTIVE - The index is ready for use. // - // ItemCount - The number of items in the global secondary index. DynamoDB - // updates this value approximately every six hours. Recent changes might not - // be reflected in this value. + // * ItemCount - The number of items in the global secondary index. DynamoDB + // updates this value approximately every six hours. Recent changes might + // not be reflected in this value. // - // KeySchema - Specifies the complete index key schema. The attribute names - // in the key schema must be between 1 and 255 characters (inclusive). The key - // schema must begin with the same partition key as the table. + // * KeySchema - Specifies the complete index key schema. The attribute names + // in the key schema must be between 1 and 255 characters (inclusive). The + // key schema must begin with the same partition key as the table. // - // Projection - Specifies attributes that are copied (projected) from the - // table into the index. These are in addition to the primary key attributes - // and index key attributes, which are automatically projected. Each attribute - // specification is composed of: + // * Projection - Specifies attributes that are copied (projected) from the + // table into the index. These are in addition to the primary key attributes + // and index key attributes, which are automatically projected. Each attribute + // specification is composed of: // - // ProjectionType - One of the following: + // ProjectionType - One of the following: // - // KEYS_ONLY - Only the index and primary keys are projected into the index. + // KEYS_ONLY - Only the index and primary keys are projected into the index. // - // INCLUDE - Only the specified table attributes are projected into the - // index. The list of projected attributes are in NonKeyAttributes. + // INCLUDE - Only the specified table attributes are projected into the index. + // The list of projected attributes are in NonKeyAttributes. // - // ALL - All of the table attributes are projected into the index. + // ALL - All of the table attributes are projected into the index. // - // NonKeyAttributes - A list of one or more non-key attribute names that - // are projected into the secondary index. The total count of attributes provided - // in NonKeyAttributes, summed across all of the secondary indexes, must not - // exceed 20. If you project the same attribute into two different indexes, - // this counts as two distinct attributes when determining the total. + // NonKeyAttributes - A list of one or more non-key attribute names that are + // projected into the secondary index. The total count of attributes provided + // in NonKeyAttributes, summed across all of the secondary indexes, must + // not exceed 20. If you project the same attribute into two different indexes, + // this counts as two distinct attributes when determining the total. // - // ProvisionedThroughput - The provisioned throughput settings for the - // global secondary index, consisting of read and write capacity units, along - // with data about increases and decreases. + // * ProvisionedThroughput - The provisioned throughput settings for the + // global secondary index, consisting of read and write capacity units, along + // with data about increases and decreases. // - // If the table is in the DELETING state, no information about indexes will + // If the table is in the DELETING state, no information about indexes will // be returned. GlobalSecondaryIndexes []*GlobalSecondaryIndexDescription `type:"list"` @@ -6108,24 +7039,24 @@ type TableDescription struct { // The primary key structure for the table. Each KeySchemaElement consists of: // - // AttributeName - The name of the attribute. + // * AttributeName - The name of the attribute. // - // KeyType - The role of the attribute: + // * KeyType - The role of the attribute: // - // HASH - partition key + // HASH - partition key // - // RANGE - sort key + // RANGE - sort key // - // The partition key of an item is also known as its hash attribute. The - // term "hash attribute" derives from DynamoDB' usage of an internal hash function - // to evenly distribute data items across partitions, based on their partition - // key values. + // The partition key of an item is also known as its hash attribute. The term + // "hash attribute" derives from DynamoDB' usage of an internal hash function + // to evenly distribute data items across partitions, based on their partition + // key values. // // The sort key of an item is also known as its range attribute. The term "range - // attribute" derives from the way DynamoDB stores items with the same partition - // key physically close together, in sorted order by the sort key value. + // attribute" derives from the way DynamoDB stores items with the same partition + // key physically close together, in sorted order by the sort key value. // - // For more information about primary keys, see Primary Key (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html#DataModelPrimaryKey) + // For more information about primary keys, see Primary Key (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html#DataModelPrimaryKey) // in the Amazon DynamoDB Developer Guide. KeySchema []*KeySchemaElement `min:"1" type:"list"` @@ -6140,11 +7071,11 @@ type TableDescription struct { // However, the combination of the following three elements is guaranteed to // be unique: // - // the AWS customer ID. + // * the AWS customer ID. // - // the table name. + // * the table name. // - // the StreamLabel. + // * the StreamLabel. LatestStreamLabel *string `type:"string"` // Represents one or more local secondary indexes on the table. Each index is @@ -6153,41 +7084,41 @@ type TableDescription struct { // data within a given item collection cannot exceed 10 GB. Each element is // composed of: // - // IndexName - The name of the local secondary index. + // * IndexName - The name of the local secondary index. // - // KeySchema - Specifies the complete index key schema. The attribute names - // in the key schema must be between 1 and 255 characters (inclusive). The key - // schema must begin with the same partition key as the table. + // * KeySchema - Specifies the complete index key schema. The attribute names + // in the key schema must be between 1 and 255 characters (inclusive). The + // key schema must begin with the same partition key as the table. // - // Projection - Specifies attributes that are copied (projected) from the - // table into the index. These are in addition to the primary key attributes - // and index key attributes, which are automatically projected. Each attribute - // specification is composed of: + // * Projection - Specifies attributes that are copied (projected) from the + // table into the index. These are in addition to the primary key attributes + // and index key attributes, which are automatically projected. Each attribute + // specification is composed of: // - // ProjectionType - One of the following: + // ProjectionType - One of the following: // - // KEYS_ONLY - Only the index and primary keys are projected into the index. + // KEYS_ONLY - Only the index and primary keys are projected into the index. // - // INCLUDE - Only the specified table attributes are projected into the - // index. The list of projected attributes are in NonKeyAttributes. + // INCLUDE - Only the specified table attributes are projected into the index. + // The list of projected attributes are in NonKeyAttributes. // - // ALL - All of the table attributes are projected into the index. + // ALL - All of the table attributes are projected into the index. // - // NonKeyAttributes - A list of one or more non-key attribute names that - // are projected into the secondary index. The total count of attributes provided - // in NonKeyAttributes, summed across all of the secondary indexes, must not - // exceed 20. If you project the same attribute into two different indexes, - // this counts as two distinct attributes when determining the total. + // NonKeyAttributes - A list of one or more non-key attribute names that are + // projected into the secondary index. The total count of attributes provided + // in NonKeyAttributes, summed across all of the secondary indexes, must + // not exceed 20. If you project the same attribute into two different indexes, + // this counts as two distinct attributes when determining the total. // - // IndexSizeBytes - Represents the total size of the index, in bytes. - // DynamoDB updates this value approximately every six hours. Recent changes - // might not be reflected in this value. + // * IndexSizeBytes - Represents the total size of the index, in bytes. DynamoDB + // updates this value approximately every six hours. Recent changes might + // not be reflected in this value. // - // ItemCount - Represents the number of items in the index. DynamoDB updates - // this value approximately every six hours. Recent changes might not be reflected - // in this value. + // * ItemCount - Represents the number of items in the index. DynamoDB updates + // this value approximately every six hours. Recent changes might not be + // reflected in this value. // - // If the table is in the DELETING state, no information about indexes will + // If the table is in the DELETING state, no information about indexes will // be returned. LocalSecondaryIndexes []*LocalSecondaryIndexDescription `type:"list"` @@ -6211,13 +7142,13 @@ type TableDescription struct { // The current state of the table: // - // CREATING - The table is being created. + // * CREATING - The table is being created. // - // UPDATING - The table is being updated. + // * UPDATING - The table is being updated. // - // DELETING - The table is being deleted. + // * DELETING - The table is being deleted. // - // ACTIVE - The table is ready for use. + // * ACTIVE - The table is ready for use. TableStatus *string `type:"string" enum:"TableStatus"` } @@ -6231,8 +7162,410 @@ func (s TableDescription) GoString() string { return s.String() } +// SetAttributeDefinitions sets the AttributeDefinitions field's value. +func (s *TableDescription) SetAttributeDefinitions(v []*AttributeDefinition) *TableDescription { + s.AttributeDefinitions = v + return s +} + +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *TableDescription) SetCreationDateTime(v time.Time) *TableDescription { + s.CreationDateTime = &v + return s +} + +// SetGlobalSecondaryIndexes sets the GlobalSecondaryIndexes field's value. +func (s *TableDescription) SetGlobalSecondaryIndexes(v []*GlobalSecondaryIndexDescription) *TableDescription { + s.GlobalSecondaryIndexes = v + return s +} + +// SetItemCount sets the ItemCount field's value. +func (s *TableDescription) SetItemCount(v int64) *TableDescription { + s.ItemCount = &v + return s +} + +// SetKeySchema sets the KeySchema field's value. +func (s *TableDescription) SetKeySchema(v []*KeySchemaElement) *TableDescription { + s.KeySchema = v + return s +} + +// SetLatestStreamArn sets the LatestStreamArn field's value. +func (s *TableDescription) SetLatestStreamArn(v string) *TableDescription { + s.LatestStreamArn = &v + return s +} + +// SetLatestStreamLabel sets the LatestStreamLabel field's value. +func (s *TableDescription) SetLatestStreamLabel(v string) *TableDescription { + s.LatestStreamLabel = &v + return s +} + +// SetLocalSecondaryIndexes sets the LocalSecondaryIndexes field's value. +func (s *TableDescription) SetLocalSecondaryIndexes(v []*LocalSecondaryIndexDescription) *TableDescription { + s.LocalSecondaryIndexes = v + return s +} + +// SetProvisionedThroughput sets the ProvisionedThroughput field's value. +func (s *TableDescription) SetProvisionedThroughput(v *ProvisionedThroughputDescription) *TableDescription { + s.ProvisionedThroughput = v + return s +} + +// SetStreamSpecification sets the StreamSpecification field's value. +func (s *TableDescription) SetStreamSpecification(v *StreamSpecification) *TableDescription { + s.StreamSpecification = v + return s +} + +// SetTableArn sets the TableArn field's value. +func (s *TableDescription) SetTableArn(v string) *TableDescription { + s.TableArn = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *TableDescription) SetTableName(v string) *TableDescription { + s.TableName = &v + return s +} + +// SetTableSizeBytes sets the TableSizeBytes field's value. +func (s *TableDescription) SetTableSizeBytes(v int64) *TableDescription { + s.TableSizeBytes = &v + return s +} + +// SetTableStatus sets the TableStatus field's value. +func (s *TableDescription) SetTableStatus(v string) *TableDescription { + s.TableStatus = &v + return s +} + +// Describes a tag. A tag is a key-value pair. You can add up to 50 tags to +// a single DynamoDB table. +// +// AWS-assigned tag names and values are automatically assigned the aws: prefix, +// which the user cannot assign. AWS-assigned tag names do not count towards +// the tag limit of 50. User-assigned tag names have the prefix user: in the +// Cost Allocation Report. You cannot backdate the application of a tag. +// +// For an overview on tagging DynamoDB resources, see Tagging for DynamoDB (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html) +// in the Amazon DynamoDB Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/Tag +type Tag struct { + _ struct{} `type:"structure"` + + // The key of the tag.Tag keys are case sensitive. Each DynamoDB table can only + // have up to one tag with the same key. If you try to add an existing tag (same + // key), the existing tag value will be updated to the new value. + // + // Key is a required field + Key *string `min:"1" type:"string" required:"true"` + + // The value of the tag. Tag values are case-sensitive and can be null. + // + // Value is a required field + Value *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s Tag) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Tag) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Tag) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Tag"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TagResourceInput +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // Identifies the Amazon DynamoDB resource to which tags should be added. This + // value is an Amazon Resource Name (ARN). + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` + + // The tags to be assigned to the Amazon DynamoDB resource. + // + // Tags is a required field + Tags []*Tag `type:"list" required:"true"` +} + +// String returns the string representation +func (s TagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TagResourceOutput +type TagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s TagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagResourceOutput) GoString() string { + return s.String() +} + +// The description of the Time to Live (TTL) status on the specified table. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TimeToLiveDescription +type TimeToLiveDescription struct { + _ struct{} `type:"structure"` + + // The name of the Time to Live attribute for items in the table. + AttributeName *string `min:"1" type:"string"` + + // The Time to Live status for the table. + TimeToLiveStatus *string `type:"string" enum:"TimeToLiveStatus"` +} + +// String returns the string representation +func (s TimeToLiveDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TimeToLiveDescription) GoString() string { + return s.String() +} + +// SetAttributeName sets the AttributeName field's value. +func (s *TimeToLiveDescription) SetAttributeName(v string) *TimeToLiveDescription { + s.AttributeName = &v + return s +} + +// SetTimeToLiveStatus sets the TimeToLiveStatus field's value. +func (s *TimeToLiveDescription) SetTimeToLiveStatus(v string) *TimeToLiveDescription { + s.TimeToLiveStatus = &v + return s +} + +// Represents the settings used to enable or disable Time to Live for the specified +// table. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TimeToLiveSpecification +type TimeToLiveSpecification struct { + _ struct{} `type:"structure"` + + // The name of the Time to Live attribute used to store the expiration time + // for items in the table. + // + // AttributeName is a required field + AttributeName *string `min:"1" type:"string" required:"true"` + + // Indicates whether Time To Live is to be enabled (true) or disabled (false) + // on the table. + // + // Enabled is a required field + Enabled *bool `type:"boolean" required:"true"` +} + +// String returns the string representation +func (s TimeToLiveSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TimeToLiveSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TimeToLiveSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TimeToLiveSpecification"} + if s.AttributeName == nil { + invalidParams.Add(request.NewErrParamRequired("AttributeName")) + } + if s.AttributeName != nil && len(*s.AttributeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttributeName", 1)) + } + if s.Enabled == nil { + invalidParams.Add(request.NewErrParamRequired("Enabled")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttributeName sets the AttributeName field's value. +func (s *TimeToLiveSpecification) SetAttributeName(v string) *TimeToLiveSpecification { + s.AttributeName = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *TimeToLiveSpecification) SetEnabled(v bool) *TimeToLiveSpecification { + s.Enabled = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UntagResourceInput +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon DyanamoDB resource the tags will be removed from. This value is + // an Amazon Resource Name (ARN). + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` + + // A list of tag keys. Existing tags of the resource whose keys are members + // of this list will be removed from the Amazon DynamoDB resource. + // + // TagKeys is a required field + TagKeys []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s UntagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UntagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UntagResourceOutput +type UntagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UntagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UntagResourceOutput) GoString() string { + return s.String() +} + // Represents the new provisioned throughput settings to be applied to a global // secondary index. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateGlobalSecondaryIndexAction type UpdateGlobalSecondaryIndexAction struct { _ struct{} `type:"structure"` @@ -6241,8 +7574,8 @@ type UpdateGlobalSecondaryIndexAction struct { // IndexName is a required field IndexName *string `min:"3" type:"string" required:"true"` - // Represents the provisioned throughput settings for a specified table or index. - // The settings can be modified using the UpdateTable operation. + // Represents the provisioned throughput settings for the specified global secondary + // index. // // For current minimum and maximum provisioned throughput values, see Limits // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) @@ -6286,371 +7619,90 @@ func (s *UpdateGlobalSecondaryIndexAction) Validate() error { return nil } +// SetIndexName sets the IndexName field's value. +func (s *UpdateGlobalSecondaryIndexAction) SetIndexName(v string) *UpdateGlobalSecondaryIndexAction { + s.IndexName = &v + return s +} + +// SetProvisionedThroughput sets the ProvisionedThroughput field's value. +func (s *UpdateGlobalSecondaryIndexAction) SetProvisionedThroughput(v *ProvisionedThroughput) *UpdateGlobalSecondaryIndexAction { + s.ProvisionedThroughput = v + return s +} + // Represents the input of an UpdateItem operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateItemInput type UpdateItemInput struct { _ struct{} `type:"structure"` - // This is a legacy parameter, for backward compatibility. New applications - // should use UpdateExpression instead. Do not combine legacy parameters and - // expression parameters in a single API call; otherwise, DynamoDB will return - // a ValidationException exception. - // - // This parameter can be used for modifying top-level attributes; however, - // it does not support individual list or map elements. - // - // The names of attributes to be modified, the action to perform on each, - // and the new value for each. If you are updating an attribute that is an index - // key attribute for any indexes on that table, the attribute type must match - // the index key type defined in the AttributesDefinition of the table description. - // You can use UpdateItem to update any non-key attributes. - // - // Attribute values cannot be null. String and Binary type attributes must - // have lengths greater than zero. Set type attributes must not be empty. Requests - // with empty values will be rejected with a ValidationException exception. - // - // Each AttributeUpdates element consists of an attribute name to modify, along - // with the following: - // - // Value - The new value, if applicable, for this attribute. - // - // Action - A value that specifies how to perform the update. This action - // is only valid for an existing attribute whose data type is Number or is a - // set; do not use ADD for other data types. - // - // If an item with the specified primary key is found in the table, the following - // values perform the following actions: - // - // PUT - Adds the specified attribute to the item. If the attribute already - // exists, it is replaced by the new value. - // - // DELETE - Removes the attribute and its value, if no value is specified - // for DELETE. The data type of the specified value must match the existing - // value's data type. - // - // If a set of values is specified, then those values are subtracted from the - // old set. For example, if the attribute value was the set [a,b,c] and the - // DELETE action specifies [a,c], then the final attribute value is [b]. Specifying - // an empty set is an error. - // - // ADD - Adds the specified value to the item, if the attribute does not - // already exist. If the attribute does exist, then the behavior of ADD depends - // on the data type of the attribute: - // - // If the existing attribute is a number, and if Value is also a number, - // then Value is mathematically added to the existing attribute. If Value is - // a negative number, then it is subtracted from the existing attribute. - // - // If you use ADD to increment or decrement a number value for an item that - // doesn't exist before the update, DynamoDB uses 0 as the initial value. - // - // Similarly, if you use ADD for an existing item to increment or decrement - // an attribute value that doesn't exist before the update, DynamoDB uses 0 - // as the initial value. For example, suppose that the item you want to update - // doesn't have an attribute named itemcount, but you decide to ADD the number - // 3 to this attribute anyway. DynamoDB will create the itemcount attribute, - // set its initial value to 0, and finally add 3 to it. The result will be a - // new itemcount attribute, with a value of 3. - // - // If the existing data type is a set, and if Value is also a set, then - // Value is appended to the existing set. For example, if the attribute value - // is the set [1,2], and the ADD action specified [3], then the final attribute - // value is [1,2,3]. An error occurs if an ADD action is specified for a set - // attribute and the attribute type specified does not match the existing set - // type. - // - // Both sets must have the same primitive data type. For example, if the existing - // data type is a set of strings, Value must also be a set of strings. - // - // If no item with the specified key is found in the table, the following - // values perform the following actions: - // - // PUT - Causes DynamoDB to create a new item with the specified primary - // key, and then adds the attribute. - // - // DELETE - Nothing happens, because attributes cannot be deleted from a - // nonexistent item. The operation succeeds, but DynamoDB does not create a - // new item. - // - // ADD - Causes DynamoDB to create an item with the supplied primary key - // and number (or set of numbers) for the attribute value. The only data types - // allowed are Number and Number Set. - // - // If you provide any attributes that are part of an index key, then the - // data types for those attributes must match those of the schema in the table's - // attribute definition. + // This is a legacy parameter. Use UpdateExpression instead. For more information, + // see AttributeUpdates (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributeUpdates.html) + // in the Amazon DynamoDB Developer Guide. AttributeUpdates map[string]*AttributeValueUpdate `type:"map"` // A condition that must be satisfied in order for a conditional update to succeed. // // An expression can contain any of the following: // - // Functions: attribute_exists | attribute_not_exists | attribute_type | - // contains | begins_with | size + // * Functions: attribute_exists | attribute_not_exists | attribute_type + // | contains | begins_with | size // // These function names are case-sensitive. // - // Comparison operators: = | <> | < | > | <= | - // >= | BETWEEN | IN + // * Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN // - // Logical operators: AND | OR | NOT + // * Logical operators: AND | OR | NOT // - // For more information on condition expressions, see Specifying Conditions + // For more information on condition expressions, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) // in the Amazon DynamoDB Developer Guide. - // - // ConditionExpression replaces the legacy ConditionalOperator and Expected - // parameters. ConditionExpression *string `type:"string"` - // This is a legacy parameter, for backward compatibility. New applications - // should use ConditionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. - // - // A logical operator to apply to the conditions in the Expected map: - // - // AND - If all of the conditions evaluate to true, then the entire map - // evaluates to true. - // - // OR - If at least one of the conditions evaluate to true, then the entire - // map evaluates to true. - // - // If you omit ConditionalOperator, then AND is the default. - // - // The operation will succeed only if the entire map evaluates to true. - // - // This parameter does not support attributes of type List or Map. + // This is a legacy parameter. Use ConditionExpression instead. For more information, + // see ConditionalOperator (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) + // in the Amazon DynamoDB Developer Guide. ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` - // This is a legacy parameter, for backward compatibility. New applications - // should use ConditionExpression instead. Do not combine legacy parameters - // and expression parameters in a single API call; otherwise, DynamoDB will - // return a ValidationException exception. - // - // A map of attribute/condition pairs. Expected provides a conditional block - // for the UpdateItem operation. - // - // Each element of Expected consists of an attribute name, a comparison operator, - // and one or more values. DynamoDB compares the attribute with the value(s) - // you supplied, using the comparison operator. For each Expected element, the - // result of the evaluation is either true or false. - // - // If you specify more than one element in the Expected map, then by default - // all of the conditions must evaluate to true. In other words, the conditions - // are ANDed together. (You can use the ConditionalOperator parameter to OR - // the conditions instead. If you do this, then at least one of the conditions - // must evaluate to true, rather than all of them.) - // - // If the Expected map evaluates to true, then the conditional operation succeeds; - // otherwise, it fails. - // - // Expected contains the following: - // - // AttributeValueList - One or more values to evaluate against the supplied - // attribute. The number of values in the list depends on the ComparisonOperator - // being used. - // - // For type Number, value comparisons are numeric. - // - // String value comparisons for greater than, equals, or less than are based - // on ASCII character code values. For example, a is greater than A, and a is - // greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). - // - // For type Binary, DynamoDB treats each byte of the binary data as unsigned - // when it compares binary values. - // - // ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. - // When performing the comparison, DynamoDB uses strongly consistent reads. - // - // The following comparison operators are available: - // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS - // | BEGINS_WITH | IN | BETWEEN - // - // The following are descriptions of each comparison operator. - // - // EQ : Equal. EQ is supported for all datatypes, including lists and maps. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, Binary, String Set, Number Set, or Binary Set. If an item - // contains an AttributeValue element of a different type than the one provided - // in the request, the value does not match. For example, {"S":"6"} does not - // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. - // - // NE : Not equal. NE is supported for all datatypes, including lists and - // maps. - // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, Binary, String Set, Number Set, or Binary Set. If an item contains - // an AttributeValue of a different type than the one provided in the request, - // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. - // - // LE : Less than or equal. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // LT : Less than. - // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // GE : Greater than or equal. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // GT : Greater than. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} - // does not compare to {"NS":["6", "2", "1"]}. - // - // NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, - // including lists and maps. - // - // This operator tests for the existence of an attribute, not its data type. - // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, - // the result is a Boolean true. This result is because the attribute "a" exists; - // its data type is not relevant to the NOT_NULL comparison operator. - // - // NULL : The attribute does not exist. NULL is supported for all datatypes, - // including lists and maps. - // - // This operator tests for the nonexistence of an attribute, not its data - // type. If the data type of attribute "a" is null, and you evaluate it using - // NULL, the result is a Boolean false. This is because the attribute "a" exists; - // its data type is not relevant to the NULL comparison operator. - // - // CONTAINS : Checks for a subsequence, or value in a set. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is of type String, then the operator checks for a substring match. - // If the target attribute of the comparison is of type Binary, then the operator - // looks for a subsequence of the target that matches the input. If the target - // attribute of the comparison is a set ("SS", "NS", or "BS"), then the operator - // evaluates to true if it finds an exact match with any member of the set. - // - // CONTAINS is supported for lists: When evaluating "a CONTAINS b", "a" can - // be a list; however, "b" cannot be a set, a map, or a list. - // - // NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value - // in a set. - // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is a String, then the operator checks for the absence of a substring - // match. If the target attribute of the comparison is Binary, then the operator - // checks for the absence of a subsequence of the target that matches the input. - // If the target attribute of the comparison is a set ("SS", "NS", or "BS"), - // then the operator evaluates to true if it does not find an exact match with - // any member of the set. - // - // NOT_CONTAINS is supported for lists: When evaluating "a NOT CONTAINS b", - // "a" can be a list; however, "b" cannot be a set, a map, or a list. - // - // BEGINS_WITH : Checks for a prefix. - // - // AttributeValueList can contain only one AttributeValue of type String or - // Binary (not a Number or a set type). The target attribute of the comparison - // must be of type String or Binary (not a Number or a set type). - // - // IN : Checks for matching elements within two sets. - // - // AttributeValueList can contain one or more AttributeValue elements of type - // String, Number, or Binary (not a set type). These attributes are compared - // against an existing set type attribute of an item. If any elements of the - // input set are present in the item attribute, the expression evaluates to - // true. - // - // BETWEEN : Greater than or equal to the first value, and less than or - // equal to the second value. - // - // AttributeValueList must contain two AttributeValue elements of the same - // type, either String, Number, or Binary (not a set type). A target attribute - // matches if the target value is greater than, or equal to, the first element - // and less than, or equal to, the second element. If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not compare to {"N":"6"}. Also, - // {"N":"6"} does not compare to {"NS":["6", "2", "1"]} - // - // For usage examples of AttributeValueList and ComparisonOperator, see - // Legacy Conditional Parameters (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html) + // This is a legacy parameter. Use ConditionExpresssion instead. For more information, + // see Expected (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html) // in the Amazon DynamoDB Developer Guide. - // - // For backward compatibility with previous DynamoDB releases, the following - // parameters can be used instead of AttributeValueList and ComparisonOperator: - // - // Value - A value for DynamoDB to compare with an attribute. - // - // Exists - A Boolean value that causes DynamoDB to evaluate the value before - // attempting the conditional operation: - // - // If Exists is true, DynamoDB will check to see if that attribute value - // already exists in the table. If it is found, then the condition evaluates - // to true; otherwise the condition evaluate to false. - // - // If Exists is false, DynamoDB assumes that the attribute value does not - // exist in the table. If in fact the value does not exist, then the assumption - // is valid and the condition evaluates to true. If the value is found, despite - // the assumption that it does not exist, the condition evaluates to false. - // - // Note that the default value for Exists is true. - // - // The Value and Exists parameters are incompatible with AttributeValueList - // and ComparisonOperator. Note that if you use both sets of parameters at once, - // DynamoDB will return a ValidationException exception. - // - // This parameter does not support attributes of type List or Map. Expected map[string]*ExpectedAttributeValue `type:"map"` // One or more substitution tokens for attribute names in an expression. The // following are some use cases for using ExpressionAttributeNames: // - // To access an attribute whose name conflicts with a DynamoDB reserved word. + // * To access an attribute whose name conflicts with a DynamoDB reserved + // word. // - // To create a placeholder for repeating occurrences of an attribute name - // in an expression. + // * To create a placeholder for repeating occurrences of an attribute name + // in an expression. // - // To prevent special characters in an attribute name from being misinterpreted - // in an expression. + // * To prevent special characters in an attribute name from being misinterpreted + // in an expression. // - // Use the # character in an expression to dereference an attribute name. - // For example, consider the following attribute name: + // Use the # character in an expression to dereference an attribute name. For + // example, consider the following attribute name: // - // Percentile + // * Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot - // be used directly in an expression. (For the complete list of reserved words, + // The name of this attribute conflicts with a reserved word, so it cannot be + // used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // * {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // * #P = :val // - // Tokens that begin with the : character are expression attribute values, - // which are placeholders for the actual value at runtime. + // Tokens that begin with the : character are expression attribute values, which + // are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. ExpressionAttributeNames map[string]*string `type:"map"` @@ -6660,16 +7712,16 @@ type UpdateItemInput struct { // value. For example, suppose that you wanted to check whether the value of // the ProductStatus attribute was one of the following: // - // Available | Backordered | Discontinued + // Available | Backordered | Discontinued // // You would first need to specify ExpressionAttributeValues as follows: // - // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} + // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} // } // // You could then use these values in an expression, such as this: // - // ProductStatus IN (:avail, :back, :disc) + // ProductStatus IN (:avail, :back, :disc) // // For more information on expression attribute values, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) @@ -6690,18 +7742,18 @@ type UpdateItemInput struct { // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the - // operation, together with ConsumedCapacity for each table and secondary index - // that was accessed. + // * INDEXES - The response includes the aggregate ConsumedCapacity for the + // operation, together with ConsumedCapacity for each table and secondary + // index that was accessed. // // Note that some operations, such as GetItem and BatchGetItem, do not access - // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity - // information for table(s). + // any indexes at all. In these cases, specifying INDEXES will only return + // ConsumedCapacity information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // * TOTAL - The response includes only the aggregate ConsumedCapacity for + // the operation. // - // NONE - No ConsumedCapacity details are included in the response. + // * NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` // Determines whether item collection metrics are returned. If set to SIZE, @@ -6714,21 +7766,24 @@ type UpdateItemInput struct { // either before or after they were updated. For UpdateItem, the valid values // are: // - // NONE - If ReturnValues is not specified, or if its value is NONE, then - // nothing is returned. (This setting is the default for ReturnValues.) + // * NONE - If ReturnValues is not specified, or if its value is NONE, then + // nothing is returned. (This setting is the default for ReturnValues.) // - // ALL_OLD - If UpdateItem overwrote an attribute name-value pair, then - // the content of the old item is returned. + // * ALL_OLD - Returns all of the attributes of the item, as they appeared + // before the UpdateItem operation. // - // UPDATED_OLD - The old versions of only the updated attributes are returned. + // * UPDATED_OLD - Returns only the updated attributes, as they appeared + // before the UpdateItem operation. // - // ALL_NEW - All of the attributes of the new version of the item are returned. + // * ALL_NEW - Returns all of the attributes of the item, as they appear + // after the UpdateItem operation. // - // UPDATED_NEW - The new versions of only the updated attributes are returned. + // * UPDATED_NEW - Returns only the updated attributes, as they appear after + // the UpdateItem operation. // - // There is no additional cost associated with requesting a return value - // aside from the small network and processing overhead of receiving a larger - // response. No Read Capacity Units are consumed. + // There is no additional cost associated with requesting a return value aside + // from the small network and processing overhead of receiving a larger response. + // No Read Capacity Units are consumed. // // Values returned are strongly consistent ReturnValues *string `type:"string" enum:"ReturnValue"` @@ -6743,75 +7798,74 @@ type UpdateItemInput struct { // // The following action values are available for UpdateExpression. // - // SET - Adds one or more attributes and values to an item. If any of these - // attribute already exist, they are replaced by the new values. You can also - // use SET to add or subtract from an attribute that is of type Number. For - // example: SET myNum = myNum + :val + // * SET - Adds one or more attributes and values to an item. If any of these + // attribute already exist, they are replaced by the new values. You can + // also use SET to add or subtract from an attribute that is of type Number. + // For example: SET myNum = myNum + :val // - // SET supports the following functions: + // SET supports the following functions: // - // if_not_exists (path, operand) - if the item does not contain an attribute - // at the specified path, then if_not_exists evaluates to operand; otherwise, - // it evaluates to path. You can use this function to avoid overwriting an attribute - // that may already be present in the item. + // if_not_exists (path, operand) - if the item does not contain an attribute + // at the specified path, then if_not_exists evaluates to operand; otherwise, + // it evaluates to path. You can use this function to avoid overwriting an + // attribute that may already be present in the item. // - // list_append (operand, operand) - evaluates to a list with a new element - // added to it. You can append the new element to the start or the end of the - // list by reversing the order of the operands. + // list_append (operand, operand) - evaluates to a list with a new element added + // to it. You can append the new element to the start or the end of the list + // by reversing the order of the operands. // - // These function names are case-sensitive. + // These function names are case-sensitive. // - // REMOVE - Removes one or more attributes from an item. + // * REMOVE - Removes one or more attributes from an item. // - // ADD - Adds the specified value to the item, if the attribute does not - // already exist. If the attribute does exist, then the behavior of ADD depends - // on the data type of the attribute: + // * ADD - Adds the specified value to the item, if the attribute does not + // already exist. If the attribute does exist, then the behavior of ADD depends + // on the data type of the attribute: // - // If the existing attribute is a number, and if Value is also a number, - // then Value is mathematically added to the existing attribute. If Value is - // a negative number, then it is subtracted from the existing attribute. + // If the existing attribute is a number, and if Value is also a number, then + // Value is mathematically added to the existing attribute. If Value is a + // negative number, then it is subtracted from the existing attribute. // - // If you use ADD to increment or decrement a number value for an item that - // doesn't exist before the update, DynamoDB uses 0 as the initial value. + // If you use ADD to increment or decrement a number value for an item that + // doesn't exist before the update, DynamoDB uses 0 as the initial value. // // Similarly, if you use ADD for an existing item to increment or decrement - // an attribute value that doesn't exist before the update, DynamoDB uses 0 - // as the initial value. For example, suppose that the item you want to update - // doesn't have an attribute named itemcount, but you decide to ADD the number - // 3 to this attribute anyway. DynamoDB will create the itemcount attribute, - // set its initial value to 0, and finally add 3 to it. The result will be a - // new itemcount attribute in the item, with a value of 3. - // - // If the existing data type is a set and if Value is also a set, then Value - // is added to the existing set. For example, if the attribute value is the - // set [1,2], and the ADD action specified [3], then the final attribute value - // is [1,2,3]. An error occurs if an ADD action is specified for a set attribute - // and the attribute type specified does not match the existing set type. + // an attribute value that doesn't exist before the update, DynamoDB uses + // 0 as the initial value. For example, suppose that the item you want to + // update doesn't have an attribute named itemcount, but you decide to ADD + // the number 3 to this attribute anyway. DynamoDB will create the itemcount + // attribute, set its initial value to 0, and finally add 3 to it. The result + // will be a new itemcount attribute in the item, with a value of 3. + // + // If the existing data type is a set and if Value is also a set, then Value + // is added to the existing set. For example, if the attribute value is the + // set [1,2], and the ADD action specified [3], then the final attribute + // value is [1,2,3]. An error occurs if an ADD action is specified for a + // set attribute and the attribute type specified does not match the existing + // set type. // // Both sets must have the same primitive data type. For example, if the existing - // data type is a set of strings, the Value must also be a set of strings. + // data type is a set of strings, the Value must also be a set of strings. // - // The ADD action only supports Number and set data types. In addition, - // ADD can only be used on top-level attributes, not nested attributes. + // The ADD action only supports Number and set data types. In addition, ADD + // can only be used on top-level attributes, not nested attributes. // - // DELETE - Deletes an element from a set. + // * DELETE - Deletes an element from a set. // // If a set of values is specified, then those values are subtracted from the - // old set. For example, if the attribute value was the set [a,b,c] and the - // DELETE action specifies [a,c], then the final attribute value is [b]. Specifying - // an empty set is an error. + // old set. For example, if the attribute value was the set [a,b,c] and the + // DELETE action specifies [a,c], then the final attribute value is [b]. + // Specifying an empty set is an error. // - // The DELETE action only supports set data types. In addition, DELETE can - // only be used on top-level attributes, not nested attributes. + // The DELETE action only supports set data types. In addition, DELETE can only + // be used on top-level attributes, not nested attributes. // - // You can have many actions in a single expression, such as the following: + // You can have many actions in a single expression, such as the following: // SET a=:value1, b=:value2 DELETE :value3, :value4, :value5 // // For more information on update expressions, see Modifying Items and Attributes // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.Modifying.html) // in the Amazon DynamoDB Developer Guide. - // - // UpdateExpression replaces the legacy AttributeUpdates parameter. UpdateExpression *string `type:"string"` } @@ -6844,7 +7898,80 @@ func (s *UpdateItemInput) Validate() error { return nil } +// SetAttributeUpdates sets the AttributeUpdates field's value. +func (s *UpdateItemInput) SetAttributeUpdates(v map[string]*AttributeValueUpdate) *UpdateItemInput { + s.AttributeUpdates = v + return s +} + +// SetConditionExpression sets the ConditionExpression field's value. +func (s *UpdateItemInput) SetConditionExpression(v string) *UpdateItemInput { + s.ConditionExpression = &v + return s +} + +// SetConditionalOperator sets the ConditionalOperator field's value. +func (s *UpdateItemInput) SetConditionalOperator(v string) *UpdateItemInput { + s.ConditionalOperator = &v + return s +} + +// SetExpected sets the Expected field's value. +func (s *UpdateItemInput) SetExpected(v map[string]*ExpectedAttributeValue) *UpdateItemInput { + s.Expected = v + return s +} + +// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. +func (s *UpdateItemInput) SetExpressionAttributeNames(v map[string]*string) *UpdateItemInput { + s.ExpressionAttributeNames = v + return s +} + +// SetExpressionAttributeValues sets the ExpressionAttributeValues field's value. +func (s *UpdateItemInput) SetExpressionAttributeValues(v map[string]*AttributeValue) *UpdateItemInput { + s.ExpressionAttributeValues = v + return s +} + +// SetKey sets the Key field's value. +func (s *UpdateItemInput) SetKey(v map[string]*AttributeValue) *UpdateItemInput { + s.Key = v + return s +} + +// SetReturnConsumedCapacity sets the ReturnConsumedCapacity field's value. +func (s *UpdateItemInput) SetReturnConsumedCapacity(v string) *UpdateItemInput { + s.ReturnConsumedCapacity = &v + return s +} + +// SetReturnItemCollectionMetrics sets the ReturnItemCollectionMetrics field's value. +func (s *UpdateItemInput) SetReturnItemCollectionMetrics(v string) *UpdateItemInput { + s.ReturnItemCollectionMetrics = &v + return s +} + +// SetReturnValues sets the ReturnValues field's value. +func (s *UpdateItemInput) SetReturnValues(v string) *UpdateItemInput { + s.ReturnValues = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *UpdateItemInput) SetTableName(v string) *UpdateItemInput { + s.TableName = &v + return s +} + +// SetUpdateExpression sets the UpdateExpression field's value. +func (s *UpdateItemInput) SetUpdateExpression(v string) *UpdateItemInput { + s.UpdateExpression = &v + return s +} + // Represents the output of an UpdateItem operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateItemOutput type UpdateItemOutput struct { _ struct{} `type:"structure"` @@ -6853,18 +7980,33 @@ type UpdateItemOutput struct { // NONE in the request. Each element represents one attribute. Attributes map[string]*AttributeValue `type:"map"` - // The capacity units consumed by an operation. The data returned includes the - // total provisioned throughput consumed, along with statistics for the table - // and any indexes involved in the operation. ConsumedCapacity is only returned - // if the request asked for it. For more information, see Provisioned Throughput - // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) + // The capacity units consumed by the UpdateItem operation. The data returned + // includes the total provisioned throughput consumed, along with statistics + // for the table and any indexes involved in the operation. ConsumedCapacity + // is only returned if the ReturnConsumedCapacity parameter was specified. For + // more information, see Provisioned Throughput (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) // in the Amazon DynamoDB Developer Guide. ConsumedCapacity *ConsumedCapacity `type:"structure"` - // Information about item collections, if any, that were affected by the operation. - // ItemCollectionMetrics is only returned if the request asked for it. If the - // table does not have any local secondary indexes, this information is not - // returned in the response. + // Information about item collections, if any, that were affected by the UpdateItem + // operation. ItemCollectionMetrics is only returned if the ReturnItemCollectionMetrics + // parameter was specified. If the table does not have any local secondary indexes, + // this information is not returned in the response. + // + // Each ItemCollectionMetrics element consists of: + // + // * ItemCollectionKey - The partition key value of the item collection. + // This is the same as the partition key value of the item itself. + // + // * SizeEstimateRange - An estimate of item collection size, in gigabytes. + // This value is a two-element array containing a lower bound and an upper + // bound for the estimate. The estimate includes the size of all the items + // in the table, plus the size of all attributes projected into all of the + // local secondary indexes on that table. Use this estimate to measure whether + // a local secondary index is approaching its size limit. + // + // The estimate is subject to change over time; therefore, do not rely on the + // precision or accuracy of the estimate. ItemCollectionMetrics *ItemCollectionMetrics `type:"structure"` } @@ -6878,7 +8020,26 @@ func (s UpdateItemOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *UpdateItemOutput) SetAttributes(v map[string]*AttributeValue) *UpdateItemOutput { + s.Attributes = v + return s +} + +// SetConsumedCapacity sets the ConsumedCapacity field's value. +func (s *UpdateItemOutput) SetConsumedCapacity(v *ConsumedCapacity) *UpdateItemOutput { + s.ConsumedCapacity = v + return s +} + +// SetItemCollectionMetrics sets the ItemCollectionMetrics field's value. +func (s *UpdateItemOutput) SetItemCollectionMetrics(v *ItemCollectionMetrics) *UpdateItemOutput { + s.ItemCollectionMetrics = v + return s +} + // Represents the input of an UpdateTable operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTableInput type UpdateTableInput struct { _ struct{} `type:"structure"` @@ -6890,28 +8051,23 @@ type UpdateTableInput struct { // An array of one or more global secondary indexes for the table. For each // index in the array, you can request one action: // - // Create - add a new global secondary index to the table. + // * Create - add a new global secondary index to the table. // - // Update - modify the provisioned throughput settings of an existing global - // secondary index. + // * Update - modify the provisioned throughput settings of an existing global + // secondary index. // - // Delete - remove a global secondary index from the table. + // * Delete - remove a global secondary index from the table. // - // For more information, see Managing Global Secondary Indexes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.OnlineOps.html) + // For more information, see Managing Global Secondary Indexes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.OnlineOps.html) // in the Amazon DynamoDB Developer Guide. GlobalSecondaryIndexUpdates []*GlobalSecondaryIndexUpdate `type:"list"` - // Represents the provisioned throughput settings for a specified table or index. - // The settings can be modified using the UpdateTable operation. - // - // For current minimum and maximum provisioned throughput values, see Limits - // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) - // in the Amazon DynamoDB Developer Guide. + // The new provisioned throughput settings for the specified table or index. ProvisionedThroughput *ProvisionedThroughput `type:"structure"` // Represents the DynamoDB Streams configuration for the table. // - // You will receive a ResourceInUseException if you attempt to enable a stream + // You will receive a ResourceInUseException if you attempt to enable a stream // on a table that already has a stream, or if you attempt to disable a stream // on a table which does not have a stream. StreamSpecification *StreamSpecification `type:"structure"` @@ -6973,11 +8129,42 @@ func (s *UpdateTableInput) Validate() error { return nil } +// SetAttributeDefinitions sets the AttributeDefinitions field's value. +func (s *UpdateTableInput) SetAttributeDefinitions(v []*AttributeDefinition) *UpdateTableInput { + s.AttributeDefinitions = v + return s +} + +// SetGlobalSecondaryIndexUpdates sets the GlobalSecondaryIndexUpdates field's value. +func (s *UpdateTableInput) SetGlobalSecondaryIndexUpdates(v []*GlobalSecondaryIndexUpdate) *UpdateTableInput { + s.GlobalSecondaryIndexUpdates = v + return s +} + +// SetProvisionedThroughput sets the ProvisionedThroughput field's value. +func (s *UpdateTableInput) SetProvisionedThroughput(v *ProvisionedThroughput) *UpdateTableInput { + s.ProvisionedThroughput = v + return s +} + +// SetStreamSpecification sets the StreamSpecification field's value. +func (s *UpdateTableInput) SetStreamSpecification(v *StreamSpecification) *UpdateTableInput { + s.StreamSpecification = v + return s +} + +// SetTableName sets the TableName field's value. +func (s *UpdateTableInput) SetTableName(v string) *UpdateTableInput { + s.TableName = &v + return s +} + // Represents the output of an UpdateTable operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTableOutput type UpdateTableOutput struct { _ struct{} `type:"structure"` - // Represents the properties of a table. + // Represents the properties of the table. TableDescription *TableDescription `type:"structure"` } @@ -6991,10 +8178,104 @@ func (s UpdateTableOutput) GoString() string { return s.String() } +// SetTableDescription sets the TableDescription field's value. +func (s *UpdateTableOutput) SetTableDescription(v *TableDescription) *UpdateTableOutput { + s.TableDescription = v + return s +} + +// Represents the input of an UpdateTimeToLive operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTimeToLiveInput +type UpdateTimeToLiveInput struct { + _ struct{} `type:"structure"` + + // The name of the table to be configured. + // + // TableName is a required field + TableName *string `min:"3" type:"string" required:"true"` + + // Represents the settings used to enable or disable Time to Live for the specified + // table. + // + // TimeToLiveSpecification is a required field + TimeToLiveSpecification *TimeToLiveSpecification `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateTimeToLiveInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateTimeToLiveInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateTimeToLiveInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateTimeToLiveInput"} + if s.TableName == nil { + invalidParams.Add(request.NewErrParamRequired("TableName")) + } + if s.TableName != nil && len(*s.TableName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) + } + if s.TimeToLiveSpecification == nil { + invalidParams.Add(request.NewErrParamRequired("TimeToLiveSpecification")) + } + if s.TimeToLiveSpecification != nil { + if err := s.TimeToLiveSpecification.Validate(); err != nil { + invalidParams.AddNested("TimeToLiveSpecification", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTableName sets the TableName field's value. +func (s *UpdateTimeToLiveInput) SetTableName(v string) *UpdateTimeToLiveInput { + s.TableName = &v + return s +} + +// SetTimeToLiveSpecification sets the TimeToLiveSpecification field's value. +func (s *UpdateTimeToLiveInput) SetTimeToLiveSpecification(v *TimeToLiveSpecification) *UpdateTimeToLiveInput { + s.TimeToLiveSpecification = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTimeToLiveOutput +type UpdateTimeToLiveOutput struct { + _ struct{} `type:"structure"` + + // Represents the output of an UpdateTimeToLive operation. + TimeToLiveSpecification *TimeToLiveSpecification `type:"structure"` +} + +// String returns the string representation +func (s UpdateTimeToLiveOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateTimeToLiveOutput) GoString() string { + return s.String() +} + +// SetTimeToLiveSpecification sets the TimeToLiveSpecification field's value. +func (s *UpdateTimeToLiveOutput) SetTimeToLiveSpecification(v *TimeToLiveSpecification) *UpdateTimeToLiveOutput { + s.TimeToLiveSpecification = v + return s +} + // Represents an operation to perform - either DeleteItem or PutItem. You can // only request one of these operations, not both, in a single WriteRequest. // If you do need to perform both of these operations, you will need to provide // two separate WriteRequest objects. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/WriteRequest type WriteRequest struct { _ struct{} `type:"structure"` @@ -7015,6 +8296,18 @@ func (s WriteRequest) GoString() string { return s.String() } +// SetDeleteRequest sets the DeleteRequest field's value. +func (s *WriteRequest) SetDeleteRequest(v *DeleteRequest) *WriteRequest { + s.DeleteRequest = v + return s +} + +// SetPutRequest sets the PutRequest field's value. +func (s *WriteRequest) SetPutRequest(v *PutRequest) *WriteRequest { + s.PutRequest = v + return s +} + const ( // AttributeActionAdd is a AttributeAction enum value AttributeActionAdd = "ADD" @@ -7111,18 +8404,18 @@ const ( // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // -// INDEXES - The response includes the aggregate ConsumedCapacity for the -// operation, together with ConsumedCapacity for each table and secondary index -// that was accessed. +// * INDEXES - The response includes the aggregate ConsumedCapacity for the +// operation, together with ConsumedCapacity for each table and secondary +// index that was accessed. // // Note that some operations, such as GetItem and BatchGetItem, do not access -// any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity -// information for table(s). +// any indexes at all. In these cases, specifying INDEXES will only return +// ConsumedCapacity information for table(s). // -// TOTAL - The response includes only the aggregate ConsumedCapacity for -// the operation. +// * TOTAL - The response includes only the aggregate ConsumedCapacity for +// the operation. // -// NONE - No ConsumedCapacity details are included in the response. +// * NONE - No ConsumedCapacity details are included in the response. const ( // ReturnConsumedCapacityIndexes is a ReturnConsumedCapacity enum value ReturnConsumedCapacityIndexes = "INDEXES" @@ -7211,3 +8504,17 @@ const ( // TableStatusActive is a TableStatus enum value TableStatusActive = "ACTIVE" ) + +const ( + // TimeToLiveStatusEnabling is a TimeToLiveStatus enum value + TimeToLiveStatusEnabling = "ENABLING" + + // TimeToLiveStatusDisabling is a TimeToLiveStatus enum value + TimeToLiveStatusDisabling = "DISABLING" + + // TimeToLiveStatusEnabled is a TimeToLiveStatus enum value + TimeToLiveStatusEnabled = "ENABLED" + + // TimeToLiveStatusDisabled is a TimeToLiveStatus enum value + TimeToLiveStatusDisabled = "DISABLED" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode.go index fed0793cc..b6afaf126 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode.go @@ -241,7 +241,7 @@ func (d *Decoder) decodeBinary(b []byte, v reflect.Value) error { func (d *Decoder) decodeBool(b *bool, v reflect.Value) error { switch v.Kind() { case reflect.Bool, reflect.Interface: - v.Set(reflect.ValueOf(*b)) + v.Set(reflect.ValueOf(*b).Convert(v.Type())) default: return &UnmarshalTypeError{Value: "bool", Type: v.Type()} } diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode_test.go index 992e169dd..387673314 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode_test.go @@ -478,3 +478,19 @@ func TestDecodeEmbeddedPointerStruct(t *testing.T) { // But not for absent fields. assert.Nil(t, a.C) } + +func TestDecodeBooleanOverlay(t *testing.T) { + type BooleanOverlay bool + + av := &dynamodb.AttributeValue{ + BOOL: aws.Bool(true), + } + + decoder := NewDecoder() + + var v BooleanOverlay + + err := decoder.Decode(av, &v) + assert.NoError(t, err) + assert.Equal(t, BooleanOverlay(true), v) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/doc.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/doc.go index b603b5840..03fd91264 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/doc.go @@ -31,11 +31,7 @@ // // Marshal Go value type for DynamoDB.PutItem: // -// sess, err := session.NewSession() -// if err != nil { -// fmt.Println("Failed create session", err) -// return -// } +// sess := session.Must(session.NewSession()) // // svc := dynamodb.New(sess) // item, err := dynamodbattribute.MarshalMap(r) diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/marshaler_examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/marshaler_examples_test.go index 28e915e35..049d3e78a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/marshaler_examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/marshaler_examples_test.go @@ -33,7 +33,7 @@ func ExampleMarshal() { // Output: // err // Bytes { - // B: [48,49] + // B: len 2 // } // MyField { // S: "MyFieldValue" diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/shared_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/shared_test.go index 3546ec30f..480fe1606 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/shared_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/shared_test.go @@ -37,6 +37,8 @@ type testAliasedIntSlice []int type testAliasedMap map[string]int type testAliasedSlice []string type testAliasedByteSlice []byte +type testAliasedBool bool +type testAliasedBoolSlice []bool type testAliasedStruct struct { Value testAliasedString @@ -54,6 +56,9 @@ type testAliasedStruct struct { Value11 testAliasedIntSlice Value12 testAliasedStringSlice + + Value13 testAliasedBool + Value14 testAliasedBoolSlice } type testNamedPointer *int @@ -246,6 +251,12 @@ var sharedTestCases = []struct { {S: aws.String("2")}, {S: aws.String("3")}, }}, + "Value13": {BOOL: aws.Bool(true)}, + "Value14": {L: []*dynamodb.AttributeValue{ + {BOOL: aws.Bool(true)}, + {BOOL: aws.Bool(false)}, + {BOOL: aws.Bool(true)}, + }}, }, }, actual: &testAliasedStruct{}, @@ -266,6 +277,8 @@ var sharedTestCases = []struct { Value10: []testAliasedString{"1", "2", "3"}, Value11: testAliasedIntSlice{1, 2, 3}, Value12: testAliasedStringSlice{"1", "2", "3"}, + Value13: true, + Value14: testAliasedBoolSlice{true, false, true}, }, }, { diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface/interface.go index e934de085..021d71a0f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockDynamoDBClient{} // @@ -89,6 +89,10 @@ type DynamoDBAPI interface { DescribeTable(*dynamodb.DescribeTableInput) (*dynamodb.DescribeTableOutput, error) + DescribeTimeToLiveRequest(*dynamodb.DescribeTimeToLiveInput) (*request.Request, *dynamodb.DescribeTimeToLiveOutput) + + DescribeTimeToLive(*dynamodb.DescribeTimeToLiveInput) (*dynamodb.DescribeTimeToLiveOutput, error) + GetItemRequest(*dynamodb.GetItemInput) (*request.Request, *dynamodb.GetItemOutput) GetItem(*dynamodb.GetItemInput) (*dynamodb.GetItemOutput, error) @@ -99,6 +103,10 @@ type DynamoDBAPI interface { ListTablesPages(*dynamodb.ListTablesInput, func(*dynamodb.ListTablesOutput, bool) bool) error + ListTagsOfResourceRequest(*dynamodb.ListTagsOfResourceInput) (*request.Request, *dynamodb.ListTagsOfResourceOutput) + + ListTagsOfResource(*dynamodb.ListTagsOfResourceInput) (*dynamodb.ListTagsOfResourceOutput, error) + PutItemRequest(*dynamodb.PutItemInput) (*request.Request, *dynamodb.PutItemOutput) PutItem(*dynamodb.PutItemInput) (*dynamodb.PutItemOutput, error) @@ -115,6 +123,14 @@ type DynamoDBAPI interface { ScanPages(*dynamodb.ScanInput, func(*dynamodb.ScanOutput, bool) bool) error + TagResourceRequest(*dynamodb.TagResourceInput) (*request.Request, *dynamodb.TagResourceOutput) + + TagResource(*dynamodb.TagResourceInput) (*dynamodb.TagResourceOutput, error) + + UntagResourceRequest(*dynamodb.UntagResourceInput) (*request.Request, *dynamodb.UntagResourceOutput) + + UntagResource(*dynamodb.UntagResourceInput) (*dynamodb.UntagResourceOutput, error) + UpdateItemRequest(*dynamodb.UpdateItemInput) (*request.Request, *dynamodb.UpdateItemOutput) UpdateItem(*dynamodb.UpdateItemInput) (*dynamodb.UpdateItemOutput, error) @@ -123,6 +139,10 @@ type DynamoDBAPI interface { UpdateTable(*dynamodb.UpdateTableInput) (*dynamodb.UpdateTableOutput, error) + UpdateTimeToLiveRequest(*dynamodb.UpdateTimeToLiveInput) (*request.Request, *dynamodb.UpdateTimeToLiveOutput) + + UpdateTimeToLive(*dynamodb.UpdateTimeToLiveInput) (*dynamodb.UpdateTimeToLiveOutput, error) + WaitUntilTableExists(*dynamodb.DescribeTableInput) error WaitUntilTableNotExists(*dynamodb.DescribeTableInput) error diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/errors.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/errors.go new file mode 100644 index 000000000..05a9ee84c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/errors.go @@ -0,0 +1,64 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package dynamodb + +const ( + + // ErrCodeConditionalCheckFailedException for service response error code + // "ConditionalCheckFailedException". + // + // A condition specified in the operation could not be evaluated. + ErrCodeConditionalCheckFailedException = "ConditionalCheckFailedException" + + // ErrCodeInternalServerError for service response error code + // "InternalServerError". + // + // An error occurred on the server side. + ErrCodeInternalServerError = "InternalServerError" + + // ErrCodeItemCollectionSizeLimitExceededException for service response error code + // "ItemCollectionSizeLimitExceededException". + // + // An item collection is too large. This exception is only returned for tables + // that have one or more local secondary indexes. + ErrCodeItemCollectionSizeLimitExceededException = "ItemCollectionSizeLimitExceededException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // The number of concurrent table requests (cumulative number of tables in the + // CREATING, DELETING or UPDATING state) exceeds the maximum allowed of 10. + // + // Also, for tables with secondary indexes, only one of those tables can be + // in the CREATING state at any point in time. Do not attempt to create more + // than one such table simultaneously. + // + // The total limit of tables in the ACTIVE state is 250. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeProvisionedThroughputExceededException for service response error code + // "ProvisionedThroughputExceededException". + // + // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry + // requests that receive this exception. Your request is eventually successful, + // unless your retry queue is too large to finish. Reduce the frequency of requests + // and use exponential backoff. For more information, go to Error Retries and + // Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) + // in the Amazon DynamoDB Developer Guide. + ErrCodeProvisionedThroughputExceededException = "ProvisionedThroughputExceededException" + + // ErrCodeResourceInUseException for service response error code + // "ResourceInUseException". + // + // The operation conflicts with the resource's availability. For example, you + // attempted to recreate an existing table, or tried to delete a table currently + // in the CREATING state. + ErrCodeResourceInUseException = "ResourceInUseException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The operation tried to access a nonexistent table or index. The resource + // might not be specified correctly, or its status might not be ACTIVE. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/examples_test.go index 0a96cd8d2..dbde85061 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleDynamoDB_BatchGetItem() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -93,11 +89,7 @@ func ExampleDynamoDB_BatchGetItem() { } func ExampleDynamoDB_BatchWriteItem() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -199,11 +191,7 @@ func ExampleDynamoDB_BatchWriteItem() { } func ExampleDynamoDB_CreateTable() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -290,11 +278,7 @@ func ExampleDynamoDB_CreateTable() { } func ExampleDynamoDB_DeleteItem() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -464,11 +448,7 @@ func ExampleDynamoDB_DeleteItem() { } func ExampleDynamoDB_DeleteTable() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -489,11 +469,7 @@ func ExampleDynamoDB_DeleteTable() { } func ExampleDynamoDB_DescribeLimits() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -512,11 +488,7 @@ func ExampleDynamoDB_DescribeLimits() { } func ExampleDynamoDB_DescribeTable() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -536,13 +508,30 @@ func ExampleDynamoDB_DescribeTable() { fmt.Println(resp) } -func ExampleDynamoDB_GetItem() { - sess, err := session.NewSession() +func ExampleDynamoDB_DescribeTimeToLive() { + sess := session.Must(session.NewSession()) + + svc := dynamodb.New(sess) + + params := &dynamodb.DescribeTimeToLiveInput{ + TableName: aws.String("TableName"), // Required + } + resp, err := svc.DescribeTimeToLive(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDynamoDB_GetItem() { + sess := session.Must(session.NewSession()) + svc := dynamodb.New(sess) params := &dynamodb.GetItemInput{ @@ -607,11 +596,7 @@ func ExampleDynamoDB_GetItem() { } func ExampleDynamoDB_ListTables() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -632,13 +617,31 @@ func ExampleDynamoDB_ListTables() { fmt.Println(resp) } -func ExampleDynamoDB_PutItem() { - sess, err := session.NewSession() +func ExampleDynamoDB_ListTagsOfResource() { + sess := session.Must(session.NewSession()) + + svc := dynamodb.New(sess) + + params := &dynamodb.ListTagsOfResourceInput{ + ResourceArn: aws.String("ResourceArnString"), // Required + NextToken: aws.String("NextTokenString"), + } + resp, err := svc.ListTagsOfResource(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDynamoDB_PutItem() { + sess := session.Must(session.NewSession()) + svc := dynamodb.New(sess) params := &dynamodb.PutItemInput{ @@ -807,11 +810,7 @@ func ExampleDynamoDB_PutItem() { } func ExampleDynamoDB_Query() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -998,11 +997,7 @@ func ExampleDynamoDB_Query() { } func ExampleDynamoDB_Scan() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -1148,13 +1143,62 @@ func ExampleDynamoDB_Scan() { fmt.Println(resp) } -func ExampleDynamoDB_UpdateItem() { - sess, err := session.NewSession() +func ExampleDynamoDB_TagResource() { + sess := session.Must(session.NewSession()) + + svc := dynamodb.New(sess) + + params := &dynamodb.TagResourceInput{ + ResourceArn: aws.String("ResourceArnString"), // Required + Tags: []*dynamodb.Tag{ // Required + { // Required + Key: aws.String("TagKeyString"), // Required + Value: aws.String("TagValueString"), // Required + }, + // More values... + }, + } + resp, err := svc.TagResource(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDynamoDB_UntagResource() { + sess := session.Must(session.NewSession()) + + svc := dynamodb.New(sess) + + params := &dynamodb.UntagResourceInput{ + ResourceArn: aws.String("ResourceArnString"), // Required + TagKeys: []*string{ // Required + aws.String("TagKeyString"), // Required + // More values... + }, + } + resp, err := svc.UntagResource(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleDynamoDB_UpdateItem() { + sess := session.Must(session.NewSession()) + svc := dynamodb.New(sess) params := &dynamodb.UpdateItemInput{ @@ -1361,11 +1405,7 @@ func ExampleDynamoDB_UpdateItem() { } func ExampleDynamoDB_UpdateTable() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodb.New(sess) @@ -1435,3 +1475,28 @@ func ExampleDynamoDB_UpdateTable() { // Pretty-print the response data. fmt.Println(resp) } + +func ExampleDynamoDB_UpdateTimeToLive() { + sess := session.Must(session.NewSession()) + + svc := dynamodb.New(sess) + + params := &dynamodb.UpdateTimeToLiveInput{ + TableName: aws.String("TableName"), // Required + TimeToLiveSpecification: &dynamodb.TimeToLiveSpecification{ // Required + AttributeName: aws.String("TimeToLiveAttributeName"), // Required + Enabled: aws.Bool(true), // Required + }, + } + resp, err := svc.UpdateTimeToLive(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/service.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/service.go index 2af4076f8..b8765f033 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/service.go @@ -11,123 +11,27 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) -// This is the Amazon DynamoDB API Reference. This guide provides descriptions -// of the low-level DynamoDB API. -// -// This guide is intended for use with the following DynamoDB documentation: -// -// Amazon DynamoDB Getting Started Guide (http://docs.aws.amazon.com/amazondynamodb/latest/gettingstartedguide/) -// - provides hands-on exercises that help you learn the basics of working with -// DynamoDB. If you are new to DynamoDB, we recommend that you begin with the -// Getting Started Guide. -// -// Amazon DynamoDB Developer Guide (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/) -// - contains detailed information about DynamoDB concepts, usage, and best -// practices. -// -// Amazon DynamoDB Streams API Reference (http://docs.aws.amazon.com/dynamodbstreams/latest/APIReference/) -// - provides descriptions and samples of the DynamoDB Streams API. (For more -// information, see Capturing Table Activity with DynamoDB Streams (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html) -// in the Amazon DynamoDB Developer Guide.) -// -// Instead of making the requests to the low-level DynamoDB API directly -// from your application, we recommend that you use the AWS Software Development -// Kits (SDKs). The easy-to-use libraries in the AWS SDKs make it unnecessary -// to call the low-level DynamoDB API directly from your application. The libraries -// take care of request authentication, serialization, and connection management. -// For more information, see Using the AWS SDKs with DynamoDB (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/UsingAWSSDK.html) -// in the Amazon DynamoDB Developer Guide. -// -// If you decide to code against the low-level DynamoDB API directly, you will -// need to write the necessary code to authenticate your requests. For more -// information on signing your requests, see Using the DynamoDB API (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/API.html) -// in the Amazon DynamoDB Developer Guide. -// -// The following are short descriptions of each low-level API action, organized -// by function. -// -// Managing Tables -// -// CreateTable - Creates a table with user-specified provisioned throughput -// settings. You must define a primary key for the table - either a simple primary -// key (partition key), or a composite primary key (partition key and sort key). -// Optionally, you can create one or more secondary indexes, which provide fast -// data access using non-key attributes. -// -// DescribeTable - Returns metadata for a table, such as table size, status, -// and index information. -// -// UpdateTable - Modifies the provisioned throughput settings for a table. -// Optionally, you can modify the provisioned throughput settings for global -// secondary indexes on the table. -// -// ListTables - Returns a list of all tables associated with the current -// AWS account and endpoint. -// -// DeleteTable - Deletes a table and all of its indexes. -// -// For conceptual information about managing tables, see Working with Tables -// (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html) -// in the Amazon DynamoDB Developer Guide. -// -// Reading Data -// -// GetItem - Returns a set of attributes for the item that has a given primary -// key. By default, GetItem performs an eventually consistent read; however, -// applications can request a strongly consistent read instead. -// -// BatchGetItem - Performs multiple GetItem requests for data items using -// their primary keys, from one table or multiple tables. The response from -// BatchGetItem has a size limit of 16 MB and returns a maximum of 100 items. -// Both eventually consistent and strongly consistent reads can be used. -// -// Query - Returns one or more items from a table or a secondary index. -// You must provide a specific value for the partition key. You can narrow the -// scope of the query using comparison operators against a sort key value, or -// on the index key. Query supports either eventual or strong consistency. A -// single response has a size limit of 1 MB. -// -// Scan - Reads every item in a table; the result set is eventually consistent. -// You can limit the number of items returned by filtering the data attributes, -// using conditional expressions. Scan can be used to enable ad-hoc querying -// of a table against non-key attributes; however, since this is a full table -// scan without using an index, Scan should not be used for any application -// query use case that requires predictable performance. -// -// For conceptual information about reading data, see Working with Items -// (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html) -// and Query and Scan Operations (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html) -// in the Amazon DynamoDB Developer Guide. -// -// Modifying Data -// -// PutItem - Creates a new item, or replaces an existing item with a new -// item (including all the attributes). By default, if an item in the table -// already exists with the same primary key, the new item completely replaces -// the existing item. You can use conditional operators to replace an item only -// if its attribute values match certain conditions, or to insert a new item -// only if that item doesn't already exist. -// -// UpdateItem - Modifies the attributes of an existing item. You can also -// use conditional operators to perform an update only if the item's attribute -// values match certain conditions. -// -// DeleteItem - Deletes an item in a table by primary key. You can use conditional -// operators to perform a delete an item only if the item's attribute values -// match certain conditions. -// -// BatchWriteItem - Performs multiple PutItem and DeleteItem requests across -// multiple tables in a single request. A failure of any request(s) in the batch -// will not cause the entire BatchWriteItem operation to fail. Supports batches -// of up to 25 items to put or delete, with a maximum total request size of -// 16 MB. -// -// For conceptual information about modifying data, see Working with Items -// (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html) -// and Query and Scan Operations (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html) -// in the Amazon DynamoDB Developer Guide. -//The service client's operations are safe to be used concurrently. +// Amazon DynamoDB is a fully managed NoSQL database service that provides fast +// and predictable performance with seamless scalability. DynamoDB lets you +// offload the administrative burdens of operating and scaling a distributed +// database, so that you don't have to worry about hardware provisioning, setup +// and configuration, replication, software patching, or cluster scaling. +// +// With DynamoDB, you can create database tables that can store and retrieve +// any amount of data, and serve any level of request traffic. You can scale +// up or scale down your tables' throughput capacity without downtime or performance +// degradation, and use the AWS Management Console to monitor resource utilization +// and performance metrics. +// +// DynamoDB automatically spreads the data and traffic for your tables over +// a sufficient number of servers to handle your throughput and storage requirements, +// while maintaining consistent and fast performance. All of your data is stored +// on solid state disks (SSDs) and automatically replicated across multiple +// Availability Zones in an AWS region, providing built-in high availability +// and data durability. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10 type DynamoDB struct { *client.Client } @@ -138,8 +42,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "dynamodb" +// Service information constants +const ( + ServiceName = "dynamodb" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the DynamoDB client with a session. // If additional configuration is needed for the client instance use the optional @@ -152,17 +59,18 @@ const ServiceName = "dynamodb" // // Create a DynamoDB client with additional configuration // svc := dynamodb.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *DynamoDB { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *DynamoDB { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *DynamoDB { svc := &DynamoDB{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2012-08-10", diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/api.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/api.go index 33eab8bd7..22c18c3b5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/api.go @@ -37,6 +37,7 @@ const opDescribeStream = "DescribeStream" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/DescribeStream func (c *DynamoDBStreams) DescribeStreamRequest(input *DescribeStreamInput) (req *request.Request, output *DescribeStreamOutput) { op := &request.Operation{ Name: opDescribeStream, @@ -48,9 +49,8 @@ func (c *DynamoDBStreams) DescribeStreamRequest(input *DescribeStreamInput) (req input = &DescribeStreamInput{} } - req = c.newRequest(op, input, output) output = &DescribeStreamOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -60,10 +60,10 @@ func (c *DynamoDBStreams) DescribeStreamRequest(input *DescribeStreamInput) (req // its Amazon Resource Name (ARN), the composition of its shards, and its corresponding // DynamoDB table. // -// You can call DescribeStream at a maximum rate of 10 times per second. +// You can call DescribeStream at a maximum rate of 10 times per second. // -// Each shard in the stream has a SequenceNumberRange associated with it. -// If the SequenceNumberRange has a StartingSequenceNumber but no EndingSequenceNumber, +// Each shard in the stream has a SequenceNumberRange associated with it. If +// the SequenceNumberRange has a StartingSequenceNumber but no EndingSequenceNumber, // then the shard is still open (able to receive more stream records). If both // StartingSequenceNumber and EndingSequenceNumber are present, then that shard // is closed and can no longer receive more data. @@ -76,12 +76,13 @@ func (c *DynamoDBStreams) DescribeStreamRequest(input *DescribeStreamInput) (req // API operation DescribeStream for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The operation tried to access a nonexistent stream. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/DescribeStream func (c *DynamoDBStreams) DescribeStream(input *DescribeStreamInput) (*DescribeStreamOutput, error) { req, out := c.DescribeStreamRequest(input) err := req.Send() @@ -114,6 +115,7 @@ const opGetRecords = "GetRecords" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/GetRecords func (c *DynamoDBStreams) GetRecordsRequest(input *GetRecordsInput) (req *request.Request, output *GetRecordsOutput) { op := &request.Operation{ Name: opGetRecords, @@ -125,9 +127,8 @@ func (c *DynamoDBStreams) GetRecordsRequest(input *GetRecordsInput) (req *reques input = &GetRecordsInput{} } - req = c.newRequest(op, input, output) output = &GetRecordsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -142,7 +143,7 @@ func (c *DynamoDBStreams) GetRecordsRequest(input *GetRecordsInput) (req *reques // an empty list. Note that it might take multiple calls to get to a portion // of the shard that contains stream records. // -// GetRecords can retrieve a maximum of 1 MB of data or 1000 stream records, +// GetRecords can retrieve a maximum of 1 MB of data or 1000 stream records, // whichever comes first. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -153,10 +154,10 @@ func (c *DynamoDBStreams) GetRecordsRequest(input *GetRecordsInput) (req *reques // API operation GetRecords for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The operation tried to access a nonexistent stream. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests @@ -164,28 +165,29 @@ func (c *DynamoDBStreams) GetRecordsRequest(input *GetRecordsInput) (req *reques // Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) // in the Amazon DynamoDB Developer Guide. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // -// * ExpiredIteratorException +// * ErrCodeExpiredIteratorException "ExpiredIteratorException" // The shard iterator has expired and can no longer be used to retrieve stream // records. A shard iterator expires 15 minutes after it is retrieved using // the GetShardIterator action. // -// * TrimmedDataAccessException +// * ErrCodeTrimmedDataAccessException "TrimmedDataAccessException" // The operation attempted to read past the oldest stream record in a shard. // -// In DynamoDB Streams, there is a 24 hour limit on data retention. Stream -// records whose age exceeds this limit are subject to removal (trimming) from -// the stream. You might receive a TrimmedDataAccessException if: +// In DynamoDB Streams, there is a 24 hour limit on data retention. Stream records +// whose age exceeds this limit are subject to removal (trimming) from the stream. +// You might receive a TrimmedDataAccessException if: // -// You request a shard iterator with a sequence number older than the trim -// point (24 hours). +// * You request a shard iterator with a sequence number older than the trim +// point (24 hours). // -// You obtain a shard iterator, but before you use the iterator in a GetRecords -// request, a stream record in the shard exceeds the 24 hour period and is trimmed. -// This causes the iterator to access a record that no longer exists. +// * You obtain a shard iterator, but before you use the iterator in a GetRecords +// request, a stream record in the shard exceeds the 24 hour period and is +// trimmed. This causes the iterator to access a record that no longer exists. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/GetRecords func (c *DynamoDBStreams) GetRecords(input *GetRecordsInput) (*GetRecordsOutput, error) { req, out := c.GetRecordsRequest(input) err := req.Send() @@ -218,6 +220,7 @@ const opGetShardIterator = "GetShardIterator" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/GetShardIterator func (c *DynamoDBStreams) GetShardIteratorRequest(input *GetShardIteratorInput) (req *request.Request, output *GetShardIteratorOutput) { op := &request.Operation{ Name: opGetShardIterator, @@ -229,9 +232,8 @@ func (c *DynamoDBStreams) GetShardIteratorRequest(input *GetShardIteratorInput) input = &GetShardIteratorInput{} } - req = c.newRequest(op, input, output) output = &GetShardIteratorOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -241,7 +243,7 @@ func (c *DynamoDBStreams) GetShardIteratorRequest(input *GetShardIteratorInput) // to retrieve the stream records from within a shard. Use the shard iterator // in a subsequent GetRecords request to read the stream records from the shard. // -// A shard iterator expires 15 minutes after it is returned to the requester. +// A shard iterator expires 15 minutes after it is returned to the requester. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -251,26 +253,27 @@ func (c *DynamoDBStreams) GetShardIteratorRequest(input *GetShardIteratorInput) // API operation GetShardIterator for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The operation tried to access a nonexistent stream. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // -// * TrimmedDataAccessException +// * ErrCodeTrimmedDataAccessException "TrimmedDataAccessException" // The operation attempted to read past the oldest stream record in a shard. // -// In DynamoDB Streams, there is a 24 hour limit on data retention. Stream -// records whose age exceeds this limit are subject to removal (trimming) from -// the stream. You might receive a TrimmedDataAccessException if: +// In DynamoDB Streams, there is a 24 hour limit on data retention. Stream records +// whose age exceeds this limit are subject to removal (trimming) from the stream. +// You might receive a TrimmedDataAccessException if: // -// You request a shard iterator with a sequence number older than the trim -// point (24 hours). +// * You request a shard iterator with a sequence number older than the trim +// point (24 hours). // -// You obtain a shard iterator, but before you use the iterator in a GetRecords -// request, a stream record in the shard exceeds the 24 hour period and is trimmed. -// This causes the iterator to access a record that no longer exists. +// * You obtain a shard iterator, but before you use the iterator in a GetRecords +// request, a stream record in the shard exceeds the 24 hour period and is +// trimmed. This causes the iterator to access a record that no longer exists. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/GetShardIterator func (c *DynamoDBStreams) GetShardIterator(input *GetShardIteratorInput) (*GetShardIteratorOutput, error) { req, out := c.GetShardIteratorRequest(input) err := req.Send() @@ -303,6 +306,7 @@ const opListStreams = "ListStreams" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/ListStreams func (c *DynamoDBStreams) ListStreamsRequest(input *ListStreamsInput) (req *request.Request, output *ListStreamsOutput) { op := &request.Operation{ Name: opListStreams, @@ -314,9 +318,8 @@ func (c *DynamoDBStreams) ListStreamsRequest(input *ListStreamsInput) (req *requ input = &ListStreamsInput{} } - req = c.newRequest(op, input, output) output = &ListStreamsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -326,7 +329,7 @@ func (c *DynamoDBStreams) ListStreamsRequest(input *ListStreamsInput) (req *requ // If the TableName parameter is present, then ListStreams will return only // the streams ARNs for that table. // -// You can call ListStreams at a maximum rate of 5 times per second. +// You can call ListStreams at a maximum rate of 5 times per second. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -336,12 +339,13 @@ func (c *DynamoDBStreams) ListStreamsRequest(input *ListStreamsInput) (req *requ // API operation ListStreams for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The operation tried to access a nonexistent stream. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/ListStreams func (c *DynamoDBStreams) ListStreams(input *ListStreamsInput) (*ListStreamsOutput, error) { req, out := c.ListStreamsRequest(input) err := req.Send() @@ -349,6 +353,7 @@ func (c *DynamoDBStreams) ListStreams(input *ListStreamsInput) (*ListStreamsOutp } // Represents the input of a DescribeStream operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/DescribeStreamInput type DescribeStreamInput struct { _ struct{} `type:"structure"` @@ -397,7 +402,26 @@ func (s *DescribeStreamInput) Validate() error { return nil } +// SetExclusiveStartShardId sets the ExclusiveStartShardId field's value. +func (s *DescribeStreamInput) SetExclusiveStartShardId(v string) *DescribeStreamInput { + s.ExclusiveStartShardId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeStreamInput) SetLimit(v int64) *DescribeStreamInput { + s.Limit = &v + return s +} + +// SetStreamArn sets the StreamArn field's value. +func (s *DescribeStreamInput) SetStreamArn(v string) *DescribeStreamInput { + s.StreamArn = &v + return s +} + // Represents the output of a DescribeStream operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/DescribeStreamOutput type DescribeStreamOutput struct { _ struct{} `type:"structure"` @@ -418,7 +442,14 @@ func (s DescribeStreamOutput) GoString() string { return s.String() } +// SetStreamDescription sets the StreamDescription field's value. +func (s *DescribeStreamOutput) SetStreamDescription(v *StreamDescription) *DescribeStreamOutput { + s.StreamDescription = v + return s +} + // Represents the input of a GetRecords operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/GetRecordsInput type GetRecordsInput struct { _ struct{} `type:"structure"` @@ -462,7 +493,20 @@ func (s *GetRecordsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *GetRecordsInput) SetLimit(v int64) *GetRecordsInput { + s.Limit = &v + return s +} + +// SetShardIterator sets the ShardIterator field's value. +func (s *GetRecordsInput) SetShardIterator(v string) *GetRecordsInput { + s.ShardIterator = &v + return s +} + // Represents the output of a GetRecords operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/GetRecordsOutput type GetRecordsOutput struct { _ struct{} `type:"structure"` @@ -485,7 +529,20 @@ func (s GetRecordsOutput) GoString() string { return s.String() } +// SetNextShardIterator sets the NextShardIterator field's value. +func (s *GetRecordsOutput) SetNextShardIterator(v string) *GetRecordsOutput { + s.NextShardIterator = &v + return s +} + +// SetRecords sets the Records field's value. +func (s *GetRecordsOutput) SetRecords(v []*Record) *GetRecordsOutput { + s.Records = v + return s +} + // Represents the input of a GetShardIterator operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/GetShardIteratorInput type GetShardIteratorInput struct { _ struct{} `type:"structure"` @@ -501,19 +558,19 @@ type GetShardIteratorInput struct { // Determines how the shard iterator is used to start reading stream records // from the shard: // - // AT_SEQUENCE_NUMBER - Start reading exactly from the position denoted - // by a specific sequence number. + // * AT_SEQUENCE_NUMBER - Start reading exactly from the position denoted + // by a specific sequence number. // - // AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted - // by a specific sequence number. + // * AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted + // by a specific sequence number. // - // TRIM_HORIZON - Start reading at the last (untrimmed) stream record, which - // is the oldest record in the shard. In DynamoDB Streams, there is a 24 hour - // limit on data retention. Stream records whose age exceeds this limit are - // subject to removal (trimming) from the stream. + // * TRIM_HORIZON - Start reading at the last (untrimmed) stream record, + // which is the oldest record in the shard. In DynamoDB Streams, there is + // a 24 hour limit on data retention. Stream records whose age exceeds this + // limit are subject to removal (trimming) from the stream. // - // LATEST - Start reading just after the most recent stream record in the - // shard, so that you always read the most recent data in the shard. + // * LATEST - Start reading just after the most recent stream record in the + // shard, so that you always read the most recent data in the shard. // // ShardIteratorType is a required field ShardIteratorType *string `type:"string" required:"true" enum:"ShardIteratorType"` @@ -562,7 +619,32 @@ func (s *GetShardIteratorInput) Validate() error { return nil } +// SetSequenceNumber sets the SequenceNumber field's value. +func (s *GetShardIteratorInput) SetSequenceNumber(v string) *GetShardIteratorInput { + s.SequenceNumber = &v + return s +} + +// SetShardId sets the ShardId field's value. +func (s *GetShardIteratorInput) SetShardId(v string) *GetShardIteratorInput { + s.ShardId = &v + return s +} + +// SetShardIteratorType sets the ShardIteratorType field's value. +func (s *GetShardIteratorInput) SetShardIteratorType(v string) *GetShardIteratorInput { + s.ShardIteratorType = &v + return s +} + +// SetStreamArn sets the StreamArn field's value. +func (s *GetShardIteratorInput) SetStreamArn(v string) *GetShardIteratorInput { + s.StreamArn = &v + return s +} + // Represents the output of a GetShardIterator operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/GetShardIteratorOutput type GetShardIteratorOutput struct { _ struct{} `type:"structure"` @@ -582,7 +664,49 @@ func (s GetShardIteratorOutput) GoString() string { return s.String() } +// SetShardIterator sets the ShardIterator field's value. +func (s *GetShardIteratorOutput) SetShardIterator(v string) *GetShardIteratorOutput { + s.ShardIterator = &v + return s +} + +// Contains details about the type of identity that made the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/Identity +type Identity struct { + _ struct{} `type:"structure"` + + // A unique identifier for the entity that made the call. For Time To Live, + // the principalId is "dynamodb.amazonaws.com". + PrincipalId *string `type:"string"` + + // The type of the identity. For Time To Live, the type is "Service". + Type *string `type:"string"` +} + +// String returns the string representation +func (s Identity) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Identity) GoString() string { + return s.String() +} + +// SetPrincipalId sets the PrincipalId field's value. +func (s *Identity) SetPrincipalId(v string) *Identity { + s.PrincipalId = &v + return s +} + +// SetType sets the Type field's value. +func (s *Identity) SetType(v string) *Identity { + s.Type = &v + return s +} + // Represents the input of a ListStreams operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/ListStreamsInput type ListStreamsInput struct { _ struct{} `type:"structure"` @@ -628,7 +752,26 @@ func (s *ListStreamsInput) Validate() error { return nil } +// SetExclusiveStartStreamArn sets the ExclusiveStartStreamArn field's value. +func (s *ListStreamsInput) SetExclusiveStartStreamArn(v string) *ListStreamsInput { + s.ExclusiveStartStreamArn = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListStreamsInput) SetLimit(v int64) *ListStreamsInput { + s.Limit = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *ListStreamsInput) SetTableName(v string) *ListStreamsInput { + s.TableName = &v + return s +} + // Represents the output of a ListStreams operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/ListStreamsOutput type ListStreamsOutput struct { _ struct{} `type:"structure"` @@ -636,8 +779,8 @@ type ListStreamsOutput struct { // previous result set. Use this value to start a new operation, excluding this // value in the new request. // - // If LastEvaluatedStreamArn is empty, then the "last page" of results has - // been processed and there is no more data to be retrieved. + // If LastEvaluatedStreamArn is empty, then the "last page" of results has been + // processed and there is no more data to be retrieved. // // If LastEvaluatedStreamArn is not empty, it does not necessarily mean that // there is more data in the result set. The only way to know when you have @@ -658,7 +801,20 @@ func (s ListStreamsOutput) GoString() string { return s.String() } +// SetLastEvaluatedStreamArn sets the LastEvaluatedStreamArn field's value. +func (s *ListStreamsOutput) SetLastEvaluatedStreamArn(v string) *ListStreamsOutput { + s.LastEvaluatedStreamArn = &v + return s +} + +// SetStreams sets the Streams field's value. +func (s *ListStreamsOutput) SetStreams(v []*Stream) *ListStreamsOutput { + s.Streams = v + return s +} + // A description of a unique event within a stream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/Record type Record struct { _ struct{} `type:"structure"` @@ -675,11 +831,11 @@ type Record struct { // The type of data modification that was performed on the DynamoDB table: // - // INSERT - a new item was added to the table. + // * INSERT - a new item was added to the table. // - // MODIFY - one or more of an existing item's attributes were modified. + // * MODIFY - one or more of an existing item's attributes were modified. // - // REMOVE - the item was deleted from the table + // * REMOVE - the item was deleted from the table EventName *string `locationName:"eventName" type:"string" enum:"OperationType"` // The AWS service from which the stream record originated. For DynamoDB Streams, @@ -693,6 +849,18 @@ type Record struct { // value, as this number is subject to change at any time. In general, eventVersion // will only increase as the low-level DynamoDB Streams API evolves. EventVersion *string `locationName:"eventVersion" type:"string"` + + // Items that are deleted by the Time to Live process after expiration have + // the following fields: + // + // * Records[].userIdentity.type + // + // "Service" + // + // * Records[].userIdentity.principalId + // + // "dynamodb.amazonaws.com" + UserIdentity *Identity `locationName:"userIdentity" type:"structure"` } // String returns the string representation @@ -705,8 +873,51 @@ func (s Record) GoString() string { return s.String() } +// SetAwsRegion sets the AwsRegion field's value. +func (s *Record) SetAwsRegion(v string) *Record { + s.AwsRegion = &v + return s +} + +// SetDynamodb sets the Dynamodb field's value. +func (s *Record) SetDynamodb(v *StreamRecord) *Record { + s.Dynamodb = v + return s +} + +// SetEventID sets the EventID field's value. +func (s *Record) SetEventID(v string) *Record { + s.EventID = &v + return s +} + +// SetEventName sets the EventName field's value. +func (s *Record) SetEventName(v string) *Record { + s.EventName = &v + return s +} + +// SetEventSource sets the EventSource field's value. +func (s *Record) SetEventSource(v string) *Record { + s.EventSource = &v + return s +} + +// SetEventVersion sets the EventVersion field's value. +func (s *Record) SetEventVersion(v string) *Record { + s.EventVersion = &v + return s +} + +// SetUserIdentity sets the UserIdentity field's value. +func (s *Record) SetUserIdentity(v *Identity) *Record { + s.UserIdentity = v + return s +} + // The beginning and ending sequence numbers for the stream records contained // within a shard. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/SequenceNumberRange type SequenceNumberRange struct { _ struct{} `type:"structure"` @@ -727,7 +938,20 @@ func (s SequenceNumberRange) GoString() string { return s.String() } +// SetEndingSequenceNumber sets the EndingSequenceNumber field's value. +func (s *SequenceNumberRange) SetEndingSequenceNumber(v string) *SequenceNumberRange { + s.EndingSequenceNumber = &v + return s +} + +// SetStartingSequenceNumber sets the StartingSequenceNumber field's value. +func (s *SequenceNumberRange) SetStartingSequenceNumber(v string) *SequenceNumberRange { + s.StartingSequenceNumber = &v + return s +} + // A uniquely identified group of stream records within a stream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/Shard type Shard struct { _ struct{} `type:"structure"` @@ -751,7 +975,26 @@ func (s Shard) GoString() string { return s.String() } +// SetParentShardId sets the ParentShardId field's value. +func (s *Shard) SetParentShardId(v string) *Shard { + s.ParentShardId = &v + return s +} + +// SetSequenceNumberRange sets the SequenceNumberRange field's value. +func (s *Shard) SetSequenceNumberRange(v *SequenceNumberRange) *Shard { + s.SequenceNumberRange = v + return s +} + +// SetShardId sets the ShardId field's value. +func (s *Shard) SetShardId(v string) *Shard { + s.ShardId = &v + return s +} + // Represents all of the data describing a particular stream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/Stream type Stream struct { _ struct{} `type:"structure"` @@ -765,11 +1008,11 @@ type Stream struct { // However, the combination of the following three elements is guaranteed to // be unique: // - // the AWS customer ID. + // * the AWS customer ID. // - // the table name + // * the table name // - // the StreamLabel + // * the StreamLabel StreamLabel *string `type:"string"` // The DynamoDB table with which the stream is associated. @@ -786,7 +1029,26 @@ func (s Stream) GoString() string { return s.String() } +// SetStreamArn sets the StreamArn field's value. +func (s *Stream) SetStreamArn(v string) *Stream { + s.StreamArn = &v + return s +} + +// SetStreamLabel sets the StreamLabel field's value. +func (s *Stream) SetStreamLabel(v string) *Stream { + s.StreamLabel = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *Stream) SetTableName(v string) *Stream { + s.TableName = &v + return s +} + // Represents all of the data describing a particular stream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/StreamDescription type StreamDescription struct { _ struct{} `type:"structure"` @@ -803,9 +1065,9 @@ type StreamDescription struct { // If LastEvaluatedShardId is empty, then the "last page" of results has been // processed and there is currently no more data to be retrieved. // - // If LastEvaluatedShardId is not empty, it does not necessarily mean that - // there is more data in the result set. The only way to know when you have - // reached the end of the result set is when LastEvaluatedShardId is empty. + // If LastEvaluatedShardId is not empty, it does not necessarily mean that there + // is more data in the result set. The only way to know when you have reached + // the end of the result set is when LastEvaluatedShardId is empty. LastEvaluatedShardId *string `min:"28" type:"string"` // The shards that comprise the stream. @@ -821,37 +1083,37 @@ type StreamDescription struct { // However, the combination of the following three elements is guaranteed to // be unique: // - // the AWS customer ID. + // * the AWS customer ID. // - // the table name + // * the table name // - // the StreamLabel + // * the StreamLabel StreamLabel *string `type:"string"` // Indicates the current status of the stream: // - // ENABLING - Streams is currently being enabled on the DynamoDB table. + // * ENABLING - Streams is currently being enabled on the DynamoDB table. // - // ENABLED - the stream is enabled. + // * ENABLED - the stream is enabled. // - // DISABLING - Streams is currently being disabled on the DynamoDB table. + // * DISABLING - Streams is currently being disabled on the DynamoDB table. // - // DISABLED - the stream is disabled. + // * DISABLED - the stream is disabled. StreamStatus *string `type:"string" enum:"StreamStatus"` // Indicates the format of the records within this stream: // - // KEYS_ONLY - only the key attributes of items that were modified in the - // DynamoDB table. + // * KEYS_ONLY - only the key attributes of items that were modified in the + // DynamoDB table. // - // NEW_IMAGE - entire items from the table, as they appeared after they - // were modified. + // * NEW_IMAGE - entire items from the table, as they appeared after they + // were modified. // - // OLD_IMAGE - entire items from the table, as they appeared before they - // were modified. + // * OLD_IMAGE - entire items from the table, as they appeared before they + // were modified. // - // NEW_AND_OLD_IMAGES - both the new and the old images of the items from - // the table. + // * NEW_AND_OLD_IMAGES - both the new and the old images of the items from + // the table. StreamViewType *string `type:"string" enum:"StreamViewType"` // The DynamoDB table with which the stream is associated. @@ -868,8 +1130,63 @@ func (s StreamDescription) GoString() string { return s.String() } +// SetCreationRequestDateTime sets the CreationRequestDateTime field's value. +func (s *StreamDescription) SetCreationRequestDateTime(v time.Time) *StreamDescription { + s.CreationRequestDateTime = &v + return s +} + +// SetKeySchema sets the KeySchema field's value. +func (s *StreamDescription) SetKeySchema(v []*dynamodb.KeySchemaElement) *StreamDescription { + s.KeySchema = v + return s +} + +// SetLastEvaluatedShardId sets the LastEvaluatedShardId field's value. +func (s *StreamDescription) SetLastEvaluatedShardId(v string) *StreamDescription { + s.LastEvaluatedShardId = &v + return s +} + +// SetShards sets the Shards field's value. +func (s *StreamDescription) SetShards(v []*Shard) *StreamDescription { + s.Shards = v + return s +} + +// SetStreamArn sets the StreamArn field's value. +func (s *StreamDescription) SetStreamArn(v string) *StreamDescription { + s.StreamArn = &v + return s +} + +// SetStreamLabel sets the StreamLabel field's value. +func (s *StreamDescription) SetStreamLabel(v string) *StreamDescription { + s.StreamLabel = &v + return s +} + +// SetStreamStatus sets the StreamStatus field's value. +func (s *StreamDescription) SetStreamStatus(v string) *StreamDescription { + s.StreamStatus = &v + return s +} + +// SetStreamViewType sets the StreamViewType field's value. +func (s *StreamDescription) SetStreamViewType(v string) *StreamDescription { + s.StreamViewType = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *StreamDescription) SetTableName(v string) *StreamDescription { + s.TableName = &v + return s +} + // A description of a single data modification that was performed on an item // in a DynamoDB table. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/StreamRecord type StreamRecord struct { _ struct{} `type:"structure"` @@ -895,13 +1212,13 @@ type StreamRecord struct { // The type of data from the modified DynamoDB item that was captured in this // stream record: // - // KEYS_ONLY - only the key attributes of the modified item. + // * KEYS_ONLY - only the key attributes of the modified item. // - // NEW_IMAGE - the entire item, as it appeared after it was modified. + // * NEW_IMAGE - the entire item, as it appeared after it was modified. // - // OLD_IMAGE - the entire item, as it appeared before it was modified. + // * OLD_IMAGE - the entire item, as it appeared before it was modified. // - // NEW_AND_OLD_IMAGES - both the new and the old item images of the item. + // * NEW_AND_OLD_IMAGES - both the new and the old item images of the item. StreamViewType *string `type:"string" enum:"StreamViewType"` } @@ -915,6 +1232,48 @@ func (s StreamRecord) GoString() string { return s.String() } +// SetApproximateCreationDateTime sets the ApproximateCreationDateTime field's value. +func (s *StreamRecord) SetApproximateCreationDateTime(v time.Time) *StreamRecord { + s.ApproximateCreationDateTime = &v + return s +} + +// SetKeys sets the Keys field's value. +func (s *StreamRecord) SetKeys(v map[string]*dynamodb.AttributeValue) *StreamRecord { + s.Keys = v + return s +} + +// SetNewImage sets the NewImage field's value. +func (s *StreamRecord) SetNewImage(v map[string]*dynamodb.AttributeValue) *StreamRecord { + s.NewImage = v + return s +} + +// SetOldImage sets the OldImage field's value. +func (s *StreamRecord) SetOldImage(v map[string]*dynamodb.AttributeValue) *StreamRecord { + s.OldImage = v + return s +} + +// SetSequenceNumber sets the SequenceNumber field's value. +func (s *StreamRecord) SetSequenceNumber(v string) *StreamRecord { + s.SequenceNumber = &v + return s +} + +// SetSizeBytes sets the SizeBytes field's value. +func (s *StreamRecord) SetSizeBytes(v int64) *StreamRecord { + s.SizeBytes = &v + return s +} + +// SetStreamViewType sets the StreamViewType field's value. +func (s *StreamRecord) SetStreamViewType(v string) *StreamRecord { + s.StreamViewType = &v + return s +} + const ( // KeyTypeHash is a KeyType enum value KeyTypeHash = "HASH" diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/dynamodbstreamsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/dynamodbstreamsiface/interface.go index 0955bf94c..88cb11769 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/dynamodbstreamsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/dynamodbstreamsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockDynamoDBStreamsClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/errors.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/errors.go new file mode 100644 index 000000000..b4d16a342 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/errors.go @@ -0,0 +1,54 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package dynamodbstreams + +const ( + + // ErrCodeExpiredIteratorException for service response error code + // "ExpiredIteratorException". + // + // The shard iterator has expired and can no longer be used to retrieve stream + // records. A shard iterator expires 15 minutes after it is retrieved using + // the GetShardIterator action. + ErrCodeExpiredIteratorException = "ExpiredIteratorException" + + // ErrCodeInternalServerError for service response error code + // "InternalServerError". + // + // An error occurred on the server side. + ErrCodeInternalServerError = "InternalServerError" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry + // requests that receive this exception. Your request is eventually successful, + // unless your retry queue is too large to finish. Reduce the frequency of requests + // and use exponential backoff. For more information, go to Error Retries and + // Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) + // in the Amazon DynamoDB Developer Guide. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The operation tried to access a nonexistent stream. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeTrimmedDataAccessException for service response error code + // "TrimmedDataAccessException". + // + // The operation attempted to read past the oldest stream record in a shard. + // + // In DynamoDB Streams, there is a 24 hour limit on data retention. Stream records + // whose age exceeds this limit are subject to removal (trimming) from the stream. + // You might receive a TrimmedDataAccessException if: + // + // * You request a shard iterator with a sequence number older than the trim + // point (24 hours). + // + // * You obtain a shard iterator, but before you use the iterator in a GetRecords + // request, a stream record in the shard exceeds the 24 hour period and is + // trimmed. This causes the iterator to access a record that no longer exists. + ErrCodeTrimmedDataAccessException = "TrimmedDataAccessException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/examples_test.go index 40e37d94c..69e8b7e5a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleDynamoDBStreams_DescribeStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodbstreams.New(sess) @@ -43,11 +39,7 @@ func ExampleDynamoDBStreams_DescribeStream() { } func ExampleDynamoDBStreams_GetRecords() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodbstreams.New(sess) @@ -69,11 +61,7 @@ func ExampleDynamoDBStreams_GetRecords() { } func ExampleDynamoDBStreams_GetShardIterator() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodbstreams.New(sess) @@ -97,11 +85,7 @@ func ExampleDynamoDBStreams_GetShardIterator() { } func ExampleDynamoDBStreams_ListStreams() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := dynamodbstreams.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/service.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/service.go index c8aaeee19..2e025a108 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/service.go @@ -15,21 +15,9 @@ import ( // stream records. To learn more about application development with Streams, // see Capturing Table Activity with DynamoDB Streams (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html) // in the Amazon DynamoDB Developer Guide. -// -// The following are short descriptions of each low-level DynamoDB Streams -// action: -// -// DescribeStream - Returns detailed information about a particular stream. -// -// GetRecords - Retrieves the stream records from within a shard. -// -// GetShardIterator - Returns information on how to retrieve the streams -// record from a shard with a given shard ID. -// -// ListStreams - Returns a list of all the streams associated with the current -// AWS account and endpoint. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10 type DynamoDBStreams struct { *client.Client } @@ -40,8 +28,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "streams.dynamodb" +// Service information constants +const ( + ServiceName = "streams.dynamodb" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the DynamoDBStreams client with a session. // If additional configuration is needed for the client instance use the optional @@ -54,18 +45,21 @@ const ServiceName = "streams.dynamodb" // // Create a DynamoDBStreams client with additional configuration // svc := dynamodbstreams.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *DynamoDBStreams { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *DynamoDBStreams { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *DynamoDBStreams { + if len(signingName) == 0 { + signingName = "dynamodb" + } svc := &DynamoDBStreams{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, - SigningName: "dynamodb", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2012-08-10", diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go index d9aa717bd..83191e2d7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go @@ -39,6 +39,7 @@ const opAcceptReservedInstancesExchangeQuote = "AcceptReservedInstancesExchangeQ // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptReservedInstancesExchangeQuote func (c *EC2) AcceptReservedInstancesExchangeQuoteRequest(input *AcceptReservedInstancesExchangeQuoteInput) (req *request.Request, output *AcceptReservedInstancesExchangeQuoteOutput) { op := &request.Operation{ Name: opAcceptReservedInstancesExchangeQuote, @@ -50,16 +51,15 @@ func (c *EC2) AcceptReservedInstancesExchangeQuoteRequest(input *AcceptReservedI input = &AcceptReservedInstancesExchangeQuoteInput{} } - req = c.newRequest(op, input, output) output = &AcceptReservedInstancesExchangeQuoteOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // AcceptReservedInstancesExchangeQuote API operation for Amazon Elastic Compute Cloud. // -// Purchases Convertible Reserved Instance offerings described in the GetReservedInstancesExchangeQuote -// call. +// Accepts the Convertible Reserved Instance exchange quote described in the +// GetReservedInstancesExchangeQuote call. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -67,6 +67,7 @@ func (c *EC2) AcceptReservedInstancesExchangeQuoteRequest(input *AcceptReservedI // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation AcceptReservedInstancesExchangeQuote for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptReservedInstancesExchangeQuote func (c *EC2) AcceptReservedInstancesExchangeQuote(input *AcceptReservedInstancesExchangeQuoteInput) (*AcceptReservedInstancesExchangeQuoteOutput, error) { req, out := c.AcceptReservedInstancesExchangeQuoteRequest(input) err := req.Send() @@ -99,6 +100,7 @@ const opAcceptVpcPeeringConnection = "AcceptVpcPeeringConnection" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcPeeringConnection func (c *EC2) AcceptVpcPeeringConnectionRequest(input *AcceptVpcPeeringConnectionInput) (req *request.Request, output *AcceptVpcPeeringConnectionOutput) { op := &request.Operation{ Name: opAcceptVpcPeeringConnection, @@ -110,9 +112,8 @@ func (c *EC2) AcceptVpcPeeringConnectionRequest(input *AcceptVpcPeeringConnectio input = &AcceptVpcPeeringConnectionInput{} } - req = c.newRequest(op, input, output) output = &AcceptVpcPeeringConnectionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -129,6 +130,7 @@ func (c *EC2) AcceptVpcPeeringConnectionRequest(input *AcceptVpcPeeringConnectio // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation AcceptVpcPeeringConnection for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcPeeringConnection func (c *EC2) AcceptVpcPeeringConnection(input *AcceptVpcPeeringConnectionInput) (*AcceptVpcPeeringConnectionOutput, error) { req, out := c.AcceptVpcPeeringConnectionRequest(input) err := req.Send() @@ -161,6 +163,7 @@ const opAllocateAddress = "AllocateAddress" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateAddress func (c *EC2) AllocateAddressRequest(input *AllocateAddressInput) (req *request.Request, output *AllocateAddressOutput) { op := &request.Operation{ Name: opAllocateAddress, @@ -172,9 +175,8 @@ func (c *EC2) AllocateAddressRequest(input *AllocateAddressInput) (req *request. input = &AllocateAddressInput{} } - req = c.newRequest(op, input, output) output = &AllocateAddressOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -192,6 +194,7 @@ func (c *EC2) AllocateAddressRequest(input *AllocateAddressInput) (req *request. // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation AllocateAddress for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateAddress func (c *EC2) AllocateAddress(input *AllocateAddressInput) (*AllocateAddressOutput, error) { req, out := c.AllocateAddressRequest(input) err := req.Send() @@ -224,6 +227,7 @@ const opAllocateHosts = "AllocateHosts" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateHosts func (c *EC2) AllocateHostsRequest(input *AllocateHostsInput) (req *request.Request, output *AllocateHostsOutput) { op := &request.Operation{ Name: opAllocateHosts, @@ -235,9 +239,8 @@ func (c *EC2) AllocateHostsRequest(input *AllocateHostsInput) (req *request.Requ input = &AllocateHostsInput{} } - req = c.newRequest(op, input, output) output = &AllocateHostsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -253,12 +256,80 @@ func (c *EC2) AllocateHostsRequest(input *AllocateHostsInput) (req *request.Requ // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation AllocateHosts for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateHosts func (c *EC2) AllocateHosts(input *AllocateHostsInput) (*AllocateHostsOutput, error) { req, out := c.AllocateHostsRequest(input) err := req.Send() return out, err } +const opAssignIpv6Addresses = "AssignIpv6Addresses" + +// AssignIpv6AddressesRequest generates a "aws/request.Request" representing the +// client's request for the AssignIpv6Addresses operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AssignIpv6Addresses for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AssignIpv6Addresses method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AssignIpv6AddressesRequest method. +// req, resp := client.AssignIpv6AddressesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignIpv6Addresses +func (c *EC2) AssignIpv6AddressesRequest(input *AssignIpv6AddressesInput) (req *request.Request, output *AssignIpv6AddressesOutput) { + op := &request.Operation{ + Name: opAssignIpv6Addresses, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AssignIpv6AddressesInput{} + } + + output = &AssignIpv6AddressesOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssignIpv6Addresses API operation for Amazon Elastic Compute Cloud. +// +// Assigns one or more IPv6 addresses to the specified network interface. You +// can specify one or more specific IPv6 addresses, or you can specify the number +// of IPv6 addresses to be automatically assigned from within the subnet's IPv6 +// CIDR block range. You can assign as many IPv6 addresses to a network interface +// as you can assign private IPv4 addresses, and the limit varies per instance +// type. For information, see IP Addresses Per Network Interface Per Instance +// Type (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI) +// in the Amazon Elastic Compute Cloud User Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AssignIpv6Addresses for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignIpv6Addresses +func (c *EC2) AssignIpv6Addresses(input *AssignIpv6AddressesInput) (*AssignIpv6AddressesOutput, error) { + req, out := c.AssignIpv6AddressesRequest(input) + err := req.Send() + return out, err +} + const opAssignPrivateIpAddresses = "AssignPrivateIpAddresses" // AssignPrivateIpAddressesRequest generates a "aws/request.Request" representing the @@ -285,6 +356,7 @@ const opAssignPrivateIpAddresses = "AssignPrivateIpAddresses" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignPrivateIpAddresses func (c *EC2) AssignPrivateIpAddressesRequest(input *AssignPrivateIpAddressesInput) (req *request.Request, output *AssignPrivateIpAddressesOutput) { op := &request.Operation{ Name: opAssignPrivateIpAddresses, @@ -296,11 +368,10 @@ func (c *EC2) AssignPrivateIpAddressesRequest(input *AssignPrivateIpAddressesInp input = &AssignPrivateIpAddressesInput{} } + output = &AssignPrivateIpAddressesOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AssignPrivateIpAddressesOutput{} - req.Data = output return } @@ -324,6 +395,7 @@ func (c *EC2) AssignPrivateIpAddressesRequest(input *AssignPrivateIpAddressesInp // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation AssignPrivateIpAddresses for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignPrivateIpAddresses func (c *EC2) AssignPrivateIpAddresses(input *AssignPrivateIpAddressesInput) (*AssignPrivateIpAddressesOutput, error) { req, out := c.AssignPrivateIpAddressesRequest(input) err := req.Send() @@ -356,6 +428,7 @@ const opAssociateAddress = "AssociateAddress" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateAddress func (c *EC2) AssociateAddressRequest(input *AssociateAddressInput) (req *request.Request, output *AssociateAddressOutput) { op := &request.Operation{ Name: opAssociateAddress, @@ -367,9 +440,8 @@ func (c *EC2) AssociateAddressRequest(input *AssociateAddressInput) (req *reques input = &AssociateAddressInput{} } - req = c.newRequest(op, input, output) output = &AssociateAddressOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -381,18 +453,18 @@ func (c *EC2) AssociateAddressRequest(input *AssociateAddressInput) (req *reques // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) // in the Amazon Elastic Compute Cloud User Guide. // -// [EC2-Classic, VPC in an EC2-VPC-only account] If the Elastic IP address -// is already associated with a different instance, it is disassociated from -// that instance and associated with the specified instance. +// [EC2-Classic, VPC in an EC2-VPC-only account] If the Elastic IP address is +// already associated with a different instance, it is disassociated from that +// instance and associated with the specified instance. // // [VPC in an EC2-Classic account] If you don't specify a private IP address, // the Elastic IP address is associated with the primary IP address. If the // Elastic IP address is already associated with a different instance or a network // interface, you get an error unless you allow reassociation. // -// This is an idempotent operation. If you perform the operation more than -// once, Amazon EC2 doesn't return an error, and you may be charged for each -// time the Elastic IP address is remapped to the same instance. For more information, +// This is an idempotent operation. If you perform the operation more than once, +// Amazon EC2 doesn't return an error, and you may be charged for each time +// the Elastic IP address is remapped to the same instance. For more information, // see the Elastic IP Addresses section of Amazon EC2 Pricing (http://aws.amazon.com/ec2/pricing/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -401,6 +473,7 @@ func (c *EC2) AssociateAddressRequest(input *AssociateAddressInput) (req *reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation AssociateAddress for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateAddress func (c *EC2) AssociateAddress(input *AssociateAddressInput) (*AssociateAddressOutput, error) { req, out := c.AssociateAddressRequest(input) err := req.Send() @@ -433,6 +506,7 @@ const opAssociateDhcpOptions = "AssociateDhcpOptions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateDhcpOptions func (c *EC2) AssociateDhcpOptionsRequest(input *AssociateDhcpOptionsInput) (req *request.Request, output *AssociateDhcpOptionsOutput) { op := &request.Operation{ Name: opAssociateDhcpOptions, @@ -444,11 +518,10 @@ func (c *EC2) AssociateDhcpOptionsRequest(input *AssociateDhcpOptionsInput) (req input = &AssociateDhcpOptionsInput{} } + output = &AssociateDhcpOptionsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AssociateDhcpOptionsOutput{} - req.Data = output return } @@ -473,12 +546,74 @@ func (c *EC2) AssociateDhcpOptionsRequest(input *AssociateDhcpOptionsInput) (req // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation AssociateDhcpOptions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateDhcpOptions func (c *EC2) AssociateDhcpOptions(input *AssociateDhcpOptionsInput) (*AssociateDhcpOptionsOutput, error) { req, out := c.AssociateDhcpOptionsRequest(input) err := req.Send() return out, err } +const opAssociateIamInstanceProfile = "AssociateIamInstanceProfile" + +// AssociateIamInstanceProfileRequest generates a "aws/request.Request" representing the +// client's request for the AssociateIamInstanceProfile operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AssociateIamInstanceProfile for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AssociateIamInstanceProfile method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AssociateIamInstanceProfileRequest method. +// req, resp := client.AssociateIamInstanceProfileRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateIamInstanceProfile +func (c *EC2) AssociateIamInstanceProfileRequest(input *AssociateIamInstanceProfileInput) (req *request.Request, output *AssociateIamInstanceProfileOutput) { + op := &request.Operation{ + Name: opAssociateIamInstanceProfile, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AssociateIamInstanceProfileInput{} + } + + output = &AssociateIamInstanceProfileOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssociateIamInstanceProfile API operation for Amazon Elastic Compute Cloud. +// +// Associates an IAM instance profile with a running or stopped instance. You +// cannot associate more than one IAM instance profile with an instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AssociateIamInstanceProfile for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateIamInstanceProfile +func (c *EC2) AssociateIamInstanceProfile(input *AssociateIamInstanceProfileInput) (*AssociateIamInstanceProfileOutput, error) { + req, out := c.AssociateIamInstanceProfileRequest(input) + err := req.Send() + return out, err +} + const opAssociateRouteTable = "AssociateRouteTable" // AssociateRouteTableRequest generates a "aws/request.Request" representing the @@ -505,6 +640,7 @@ const opAssociateRouteTable = "AssociateRouteTable" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateRouteTable func (c *EC2) AssociateRouteTableRequest(input *AssociateRouteTableInput) (req *request.Request, output *AssociateRouteTableOutput) { op := &request.Operation{ Name: opAssociateRouteTable, @@ -516,9 +652,8 @@ func (c *EC2) AssociateRouteTableRequest(input *AssociateRouteTableInput) (req * input = &AssociateRouteTableInput{} } - req = c.newRequest(op, input, output) output = &AssociateRouteTableOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -539,12 +674,136 @@ func (c *EC2) AssociateRouteTableRequest(input *AssociateRouteTableInput) (req * // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation AssociateRouteTable for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateRouteTable func (c *EC2) AssociateRouteTable(input *AssociateRouteTableInput) (*AssociateRouteTableOutput, error) { req, out := c.AssociateRouteTableRequest(input) err := req.Send() return out, err } +const opAssociateSubnetCidrBlock = "AssociateSubnetCidrBlock" + +// AssociateSubnetCidrBlockRequest generates a "aws/request.Request" representing the +// client's request for the AssociateSubnetCidrBlock operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AssociateSubnetCidrBlock for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AssociateSubnetCidrBlock method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AssociateSubnetCidrBlockRequest method. +// req, resp := client.AssociateSubnetCidrBlockRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateSubnetCidrBlock +func (c *EC2) AssociateSubnetCidrBlockRequest(input *AssociateSubnetCidrBlockInput) (req *request.Request, output *AssociateSubnetCidrBlockOutput) { + op := &request.Operation{ + Name: opAssociateSubnetCidrBlock, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AssociateSubnetCidrBlockInput{} + } + + output = &AssociateSubnetCidrBlockOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssociateSubnetCidrBlock API operation for Amazon Elastic Compute Cloud. +// +// Associates a CIDR block with your subnet. You can only associate a single +// IPv6 CIDR block with your subnet. An IPv6 CIDR block must have a prefix length +// of /64. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AssociateSubnetCidrBlock for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateSubnetCidrBlock +func (c *EC2) AssociateSubnetCidrBlock(input *AssociateSubnetCidrBlockInput) (*AssociateSubnetCidrBlockOutput, error) { + req, out := c.AssociateSubnetCidrBlockRequest(input) + err := req.Send() + return out, err +} + +const opAssociateVpcCidrBlock = "AssociateVpcCidrBlock" + +// AssociateVpcCidrBlockRequest generates a "aws/request.Request" representing the +// client's request for the AssociateVpcCidrBlock operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AssociateVpcCidrBlock for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AssociateVpcCidrBlock method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AssociateVpcCidrBlockRequest method. +// req, resp := client.AssociateVpcCidrBlockRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateVpcCidrBlock +func (c *EC2) AssociateVpcCidrBlockRequest(input *AssociateVpcCidrBlockInput) (req *request.Request, output *AssociateVpcCidrBlockOutput) { + op := &request.Operation{ + Name: opAssociateVpcCidrBlock, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AssociateVpcCidrBlockInput{} + } + + output = &AssociateVpcCidrBlockOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssociateVpcCidrBlock API operation for Amazon Elastic Compute Cloud. +// +// Associates a CIDR block with your VPC. You can only associate a single Amazon-provided +// IPv6 CIDR block with your VPC. The IPv6 CIDR block size is fixed at /56. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AssociateVpcCidrBlock for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateVpcCidrBlock +func (c *EC2) AssociateVpcCidrBlock(input *AssociateVpcCidrBlockInput) (*AssociateVpcCidrBlockOutput, error) { + req, out := c.AssociateVpcCidrBlockRequest(input) + err := req.Send() + return out, err +} + const opAttachClassicLinkVpc = "AttachClassicLinkVpc" // AttachClassicLinkVpcRequest generates a "aws/request.Request" representing the @@ -571,6 +830,7 @@ const opAttachClassicLinkVpc = "AttachClassicLinkVpc" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachClassicLinkVpc func (c *EC2) AttachClassicLinkVpcRequest(input *AttachClassicLinkVpcInput) (req *request.Request, output *AttachClassicLinkVpcOutput) { op := &request.Operation{ Name: opAttachClassicLinkVpc, @@ -582,9 +842,8 @@ func (c *EC2) AttachClassicLinkVpcRequest(input *AttachClassicLinkVpcInput) (req input = &AttachClassicLinkVpcInput{} } - req = c.newRequest(op, input, output) output = &AttachClassicLinkVpcOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -609,6 +868,7 @@ func (c *EC2) AttachClassicLinkVpcRequest(input *AttachClassicLinkVpcInput) (req // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation AttachClassicLinkVpc for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachClassicLinkVpc func (c *EC2) AttachClassicLinkVpc(input *AttachClassicLinkVpcInput) (*AttachClassicLinkVpcOutput, error) { req, out := c.AttachClassicLinkVpcRequest(input) err := req.Send() @@ -641,6 +901,7 @@ const opAttachInternetGateway = "AttachInternetGateway" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachInternetGateway func (c *EC2) AttachInternetGatewayRequest(input *AttachInternetGatewayInput) (req *request.Request, output *AttachInternetGatewayOutput) { op := &request.Operation{ Name: opAttachInternetGateway, @@ -652,11 +913,10 @@ func (c *EC2) AttachInternetGatewayRequest(input *AttachInternetGatewayInput) (r input = &AttachInternetGatewayInput{} } + output = &AttachInternetGatewayOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AttachInternetGatewayOutput{} - req.Data = output return } @@ -672,6 +932,7 @@ func (c *EC2) AttachInternetGatewayRequest(input *AttachInternetGatewayInput) (r // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation AttachInternetGateway for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachInternetGateway func (c *EC2) AttachInternetGateway(input *AttachInternetGatewayInput) (*AttachInternetGatewayOutput, error) { req, out := c.AttachInternetGatewayRequest(input) err := req.Send() @@ -704,6 +965,7 @@ const opAttachNetworkInterface = "AttachNetworkInterface" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachNetworkInterface func (c *EC2) AttachNetworkInterfaceRequest(input *AttachNetworkInterfaceInput) (req *request.Request, output *AttachNetworkInterfaceOutput) { op := &request.Operation{ Name: opAttachNetworkInterface, @@ -715,9 +977,8 @@ func (c *EC2) AttachNetworkInterfaceRequest(input *AttachNetworkInterfaceInput) input = &AttachNetworkInterfaceInput{} } - req = c.newRequest(op, input, output) output = &AttachNetworkInterfaceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -731,6 +992,7 @@ func (c *EC2) AttachNetworkInterfaceRequest(input *AttachNetworkInterfaceInput) // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation AttachNetworkInterface for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachNetworkInterface func (c *EC2) AttachNetworkInterface(input *AttachNetworkInterfaceInput) (*AttachNetworkInterfaceOutput, error) { req, out := c.AttachNetworkInterfaceRequest(input) err := req.Send() @@ -763,6 +1025,7 @@ const opAttachVolume = "AttachVolume" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVolume func (c *EC2) AttachVolumeRequest(input *AttachVolumeInput) (req *request.Request, output *VolumeAttachment) { op := &request.Operation{ Name: opAttachVolume, @@ -774,9 +1037,8 @@ func (c *EC2) AttachVolumeRequest(input *AttachVolumeInput) (req *request.Reques input = &AttachVolumeInput{} } - req = c.newRequest(op, input, output) output = &VolumeAttachment{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -789,26 +1051,25 @@ func (c *EC2) AttachVolumeRequest(input *AttachVolumeInput) (req *request.Reques // EBS encryption. For more information, see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) // in the Amazon Elastic Compute Cloud User Guide. // -// For a list of supported device names, see Attaching an EBS Volume to an -// Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-attaching-volume.html). +// For a list of supported device names, see Attaching an EBS Volume to an Instance +// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-attaching-volume.html). // Any device names that aren't reserved for instance store volumes can be used // for EBS volumes. For more information, see Amazon EC2 Instance Store (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html) // in the Amazon Elastic Compute Cloud User Guide. // // If a volume has an AWS Marketplace product code: // -// The volume can be attached only to a stopped instance. +// * The volume can be attached only to a stopped instance. // -// AWS Marketplace product codes are copied from the volume to the instance. +// * AWS Marketplace product codes are copied from the volume to the instance. // -// You must be subscribed to the product. +// * You must be subscribed to the product. // -// The instance type and operating system of the instance must support the -// product. For example, you can't detach a volume from a Windows instance and -// attach it to a Linux instance. +// * The instance type and operating system of the instance must support +// the product. For example, you can't detach a volume from a Windows instance +// and attach it to a Linux instance. // -// For an overview of the AWS Marketplace, see Introducing AWS Marketplace -// (https://aws.amazon.com/marketplace/help/200900000). +// For an overview of the AWS Marketplace, see Introducing AWS Marketplace (https://aws.amazon.com/marketplace/help/200900000). // // For more information about EBS volumes, see Attaching Amazon EBS Volumes // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-attaching-volume.html) @@ -820,6 +1081,7 @@ func (c *EC2) AttachVolumeRequest(input *AttachVolumeInput) (req *request.Reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation AttachVolume for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVolume func (c *EC2) AttachVolume(input *AttachVolumeInput) (*VolumeAttachment, error) { req, out := c.AttachVolumeRequest(input) err := req.Send() @@ -852,6 +1114,7 @@ const opAttachVpnGateway = "AttachVpnGateway" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVpnGateway func (c *EC2) AttachVpnGatewayRequest(input *AttachVpnGatewayInput) (req *request.Request, output *AttachVpnGatewayOutput) { op := &request.Operation{ Name: opAttachVpnGateway, @@ -863,9 +1126,8 @@ func (c *EC2) AttachVpnGatewayRequest(input *AttachVpnGatewayInput) (req *reques input = &AttachVpnGatewayInput{} } - req = c.newRequest(op, input, output) output = &AttachVpnGatewayOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -881,6 +1143,7 @@ func (c *EC2) AttachVpnGatewayRequest(input *AttachVpnGatewayInput) (req *reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation AttachVpnGateway for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVpnGateway func (c *EC2) AttachVpnGateway(input *AttachVpnGatewayInput) (*AttachVpnGatewayOutput, error) { req, out := c.AttachVpnGatewayRequest(input) err := req.Send() @@ -913,6 +1176,7 @@ const opAuthorizeSecurityGroupEgress = "AuthorizeSecurityGroupEgress" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupEgress func (c *EC2) AuthorizeSecurityGroupEgressRequest(input *AuthorizeSecurityGroupEgressInput) (req *request.Request, output *AuthorizeSecurityGroupEgressOutput) { op := &request.Operation{ Name: opAuthorizeSecurityGroupEgress, @@ -924,11 +1188,10 @@ func (c *EC2) AuthorizeSecurityGroupEgressRequest(input *AuthorizeSecurityGroupE input = &AuthorizeSecurityGroupEgressInput{} } + output = &AuthorizeSecurityGroupEgressOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AuthorizeSecurityGroupEgressOutput{} - req.Data = output return } @@ -936,16 +1199,14 @@ func (c *EC2) AuthorizeSecurityGroupEgressRequest(input *AuthorizeSecurityGroupE // // [EC2-VPC only] Adds one or more egress rules to a security group for use // with a VPC. Specifically, this action permits instances to send traffic to -// one or more destination CIDR IP address ranges, or to one or more destination -// security groups for the same VPC. This action doesn't apply to security groups -// for use in EC2-Classic. For more information, see Security Groups for Your -// VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html) -// in the Amazon Virtual Private Cloud User Guide. -// -// You can have up to 50 rules per security group (covering both ingress and -// egress rules). -// -// Each rule consists of the protocol (for example, TCP), plus either a CIDR +// one or more destination IPv4 or IPv6 CIDR address ranges, or to one or more +// destination security groups for the same VPC. This action doesn't apply to +// security groups for use in EC2-Classic. For more information, see Security +// Groups for Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html) +// in the Amazon Virtual Private Cloud User Guide. For more information about +// security group limits, see Amazon VPC Limits (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html). +// +// Each rule consists of the protocol (for example, TCP), plus either a CIDR // range or a source group. For the TCP and UDP protocols, you must also specify // the destination port or port range. For the ICMP protocol, you must also // specify the ICMP type and code. You can use -1 for the type or code to mean @@ -960,6 +1221,7 @@ func (c *EC2) AuthorizeSecurityGroupEgressRequest(input *AuthorizeSecurityGroupE // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation AuthorizeSecurityGroupEgress for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupEgress func (c *EC2) AuthorizeSecurityGroupEgress(input *AuthorizeSecurityGroupEgressInput) (*AuthorizeSecurityGroupEgressOutput, error) { req, out := c.AuthorizeSecurityGroupEgressRequest(input) err := req.Send() @@ -992,6 +1254,7 @@ const opAuthorizeSecurityGroupIngress = "AuthorizeSecurityGroupIngress" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupIngress func (c *EC2) AuthorizeSecurityGroupIngressRequest(input *AuthorizeSecurityGroupIngressInput) (req *request.Request, output *AuthorizeSecurityGroupIngressOutput) { op := &request.Operation{ Name: opAuthorizeSecurityGroupIngress, @@ -1003,11 +1266,10 @@ func (c *EC2) AuthorizeSecurityGroupIngressRequest(input *AuthorizeSecurityGroup input = &AuthorizeSecurityGroupIngressInput{} } + output = &AuthorizeSecurityGroupIngressOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AuthorizeSecurityGroupIngressOutput{} - req.Data = output return } @@ -1015,23 +1277,21 @@ func (c *EC2) AuthorizeSecurityGroupIngressRequest(input *AuthorizeSecurityGroup // // Adds one or more ingress rules to a security group. // -// EC2-Classic: You can have up to 100 rules per group. -// -// EC2-VPC: You can have up to 50 rules per group (covering both ingress and -// egress rules). -// -// Rule changes are propagated to instances within the security group as quickly +// Rule changes are propagated to instances within the security group as quickly // as possible. However, a small delay might occur. // -// [EC2-Classic] This action gives one or more CIDR IP address ranges permission +// [EC2-Classic] This action gives one or more IPv4 CIDR address ranges permission // to access a security group in your account, or gives one or more security // groups (called the source groups) permission to access a security group for // your account. A source group can be for your own AWS account, or another. +// You can have up to 100 rules per group. // -// [EC2-VPC] This action gives one or more CIDR IP address ranges permission -// to access a security group in your VPC, or gives one or more other security -// groups (called the source groups) permission to access a security group for -// your VPC. The security groups must all be for the same VPC. +// [EC2-VPC] This action gives one or more IPv4 or IPv6 CIDR address ranges +// permission to access a security group in your VPC, or gives one or more other +// security groups (called the source groups) permission to access a security +// group for your VPC. The security groups must all be for the same VPC or a +// peer VPC in a VPC peering connection. For more information about VPC security +// group limits, see Amazon VPC Limits (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1039,6 +1299,7 @@ func (c *EC2) AuthorizeSecurityGroupIngressRequest(input *AuthorizeSecurityGroup // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation AuthorizeSecurityGroupIngress for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupIngress func (c *EC2) AuthorizeSecurityGroupIngress(input *AuthorizeSecurityGroupIngressInput) (*AuthorizeSecurityGroupIngressOutput, error) { req, out := c.AuthorizeSecurityGroupIngressRequest(input) err := req.Send() @@ -1071,6 +1332,7 @@ const opBundleInstance = "BundleInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleInstance func (c *EC2) BundleInstanceRequest(input *BundleInstanceInput) (req *request.Request, output *BundleInstanceOutput) { op := &request.Operation{ Name: opBundleInstance, @@ -1082,9 +1344,8 @@ func (c *EC2) BundleInstanceRequest(input *BundleInstanceInput) (req *request.Re input = &BundleInstanceInput{} } - req = c.newRequest(op, input, output) output = &BundleInstanceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1095,11 +1356,10 @@ func (c *EC2) BundleInstanceRequest(input *BundleInstanceInput) (req *request.Re // During bundling, only the root device volume (C:\) is bundled. Data on other // instance store volumes is not preserved. // -// This action is not applicable for Linux/Unix instances or Windows instances +// This action is not applicable for Linux/Unix instances or Windows instances // that are backed by Amazon EBS. // -// For more information, see Creating an Instance Store-Backed Windows AMI -// (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/Creating_InstanceStoreBacked_WinAMI.html). +// For more information, see Creating an Instance Store-Backed Windows AMI (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/Creating_InstanceStoreBacked_WinAMI.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1107,6 +1367,7 @@ func (c *EC2) BundleInstanceRequest(input *BundleInstanceInput) (req *request.Re // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation BundleInstance for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleInstance func (c *EC2) BundleInstance(input *BundleInstanceInput) (*BundleInstanceOutput, error) { req, out := c.BundleInstanceRequest(input) err := req.Send() @@ -1139,6 +1400,7 @@ const opCancelBundleTask = "CancelBundleTask" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelBundleTask func (c *EC2) CancelBundleTaskRequest(input *CancelBundleTaskInput) (req *request.Request, output *CancelBundleTaskOutput) { op := &request.Operation{ Name: opCancelBundleTask, @@ -1150,9 +1412,8 @@ func (c *EC2) CancelBundleTaskRequest(input *CancelBundleTaskInput) (req *reques input = &CancelBundleTaskInput{} } - req = c.newRequest(op, input, output) output = &CancelBundleTaskOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1166,6 +1427,7 @@ func (c *EC2) CancelBundleTaskRequest(input *CancelBundleTaskInput) (req *reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CancelBundleTask for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelBundleTask func (c *EC2) CancelBundleTask(input *CancelBundleTaskInput) (*CancelBundleTaskOutput, error) { req, out := c.CancelBundleTaskRequest(input) err := req.Send() @@ -1198,6 +1460,7 @@ const opCancelConversionTask = "CancelConversionTask" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelConversionTask func (c *EC2) CancelConversionTaskRequest(input *CancelConversionTaskInput) (req *request.Request, output *CancelConversionTaskOutput) { op := &request.Operation{ Name: opCancelConversionTask, @@ -1209,11 +1472,10 @@ func (c *EC2) CancelConversionTaskRequest(input *CancelConversionTaskInput) (req input = &CancelConversionTaskInput{} } + output = &CancelConversionTaskOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CancelConversionTaskOutput{} - req.Data = output return } @@ -1234,6 +1496,7 @@ func (c *EC2) CancelConversionTaskRequest(input *CancelConversionTaskInput) (req // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CancelConversionTask for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelConversionTask func (c *EC2) CancelConversionTask(input *CancelConversionTaskInput) (*CancelConversionTaskOutput, error) { req, out := c.CancelConversionTaskRequest(input) err := req.Send() @@ -1266,6 +1529,7 @@ const opCancelExportTask = "CancelExportTask" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelExportTask func (c *EC2) CancelExportTaskRequest(input *CancelExportTaskInput) (req *request.Request, output *CancelExportTaskOutput) { op := &request.Operation{ Name: opCancelExportTask, @@ -1277,11 +1541,10 @@ func (c *EC2) CancelExportTaskRequest(input *CancelExportTaskInput) (req *reques input = &CancelExportTaskInput{} } + output = &CancelExportTaskOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CancelExportTaskOutput{} - req.Data = output return } @@ -1298,6 +1561,7 @@ func (c *EC2) CancelExportTaskRequest(input *CancelExportTaskInput) (req *reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CancelExportTask for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelExportTask func (c *EC2) CancelExportTask(input *CancelExportTaskInput) (*CancelExportTaskOutput, error) { req, out := c.CancelExportTaskRequest(input) err := req.Send() @@ -1330,6 +1594,7 @@ const opCancelImportTask = "CancelImportTask" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelImportTask func (c *EC2) CancelImportTaskRequest(input *CancelImportTaskInput) (req *request.Request, output *CancelImportTaskOutput) { op := &request.Operation{ Name: opCancelImportTask, @@ -1341,9 +1606,8 @@ func (c *EC2) CancelImportTaskRequest(input *CancelImportTaskInput) (req *reques input = &CancelImportTaskInput{} } - req = c.newRequest(op, input, output) output = &CancelImportTaskOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1357,6 +1621,7 @@ func (c *EC2) CancelImportTaskRequest(input *CancelImportTaskInput) (req *reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CancelImportTask for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelImportTask func (c *EC2) CancelImportTask(input *CancelImportTaskInput) (*CancelImportTaskOutput, error) { req, out := c.CancelImportTaskRequest(input) err := req.Send() @@ -1389,6 +1654,7 @@ const opCancelReservedInstancesListing = "CancelReservedInstancesListing" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelReservedInstancesListing func (c *EC2) CancelReservedInstancesListingRequest(input *CancelReservedInstancesListingInput) (req *request.Request, output *CancelReservedInstancesListingOutput) { op := &request.Operation{ Name: opCancelReservedInstancesListing, @@ -1400,9 +1666,8 @@ func (c *EC2) CancelReservedInstancesListingRequest(input *CancelReservedInstanc input = &CancelReservedInstancesListingInput{} } - req = c.newRequest(op, input, output) output = &CancelReservedInstancesListingOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1420,6 +1685,7 @@ func (c *EC2) CancelReservedInstancesListingRequest(input *CancelReservedInstanc // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CancelReservedInstancesListing for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelReservedInstancesListing func (c *EC2) CancelReservedInstancesListing(input *CancelReservedInstancesListingInput) (*CancelReservedInstancesListingOutput, error) { req, out := c.CancelReservedInstancesListingRequest(input) err := req.Send() @@ -1452,6 +1718,7 @@ const opCancelSpotFleetRequests = "CancelSpotFleetRequests" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequests func (c *EC2) CancelSpotFleetRequestsRequest(input *CancelSpotFleetRequestsInput) (req *request.Request, output *CancelSpotFleetRequestsOutput) { op := &request.Operation{ Name: opCancelSpotFleetRequests, @@ -1463,9 +1730,8 @@ func (c *EC2) CancelSpotFleetRequestsRequest(input *CancelSpotFleetRequestsInput input = &CancelSpotFleetRequestsInput{} } - req = c.newRequest(op, input, output) output = &CancelSpotFleetRequestsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1486,6 +1752,7 @@ func (c *EC2) CancelSpotFleetRequestsRequest(input *CancelSpotFleetRequestsInput // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CancelSpotFleetRequests for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequests func (c *EC2) CancelSpotFleetRequests(input *CancelSpotFleetRequestsInput) (*CancelSpotFleetRequestsOutput, error) { req, out := c.CancelSpotFleetRequestsRequest(input) err := req.Send() @@ -1518,6 +1785,7 @@ const opCancelSpotInstanceRequests = "CancelSpotInstanceRequests" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotInstanceRequests func (c *EC2) CancelSpotInstanceRequestsRequest(input *CancelSpotInstanceRequestsInput) (req *request.Request, output *CancelSpotInstanceRequestsOutput) { op := &request.Operation{ Name: opCancelSpotInstanceRequests, @@ -1529,9 +1797,8 @@ func (c *EC2) CancelSpotInstanceRequestsRequest(input *CancelSpotInstanceRequest input = &CancelSpotInstanceRequestsInput{} } - req = c.newRequest(op, input, output) output = &CancelSpotInstanceRequestsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1544,7 +1811,7 @@ func (c *EC2) CancelSpotInstanceRequestsRequest(input *CancelSpotInstanceRequest // For more information, see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html) // in the Amazon Elastic Compute Cloud User Guide. // -// Canceling a Spot instance request does not terminate running Spot instances +// Canceling a Spot instance request does not terminate running Spot instances // associated with the request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1553,6 +1820,7 @@ func (c *EC2) CancelSpotInstanceRequestsRequest(input *CancelSpotInstanceRequest // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CancelSpotInstanceRequests for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotInstanceRequests func (c *EC2) CancelSpotInstanceRequests(input *CancelSpotInstanceRequestsInput) (*CancelSpotInstanceRequestsOutput, error) { req, out := c.CancelSpotInstanceRequestsRequest(input) err := req.Send() @@ -1585,6 +1853,7 @@ const opConfirmProductInstance = "ConfirmProductInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConfirmProductInstance func (c *EC2) ConfirmProductInstanceRequest(input *ConfirmProductInstanceInput) (req *request.Request, output *ConfirmProductInstanceOutput) { op := &request.Operation{ Name: opConfirmProductInstance, @@ -1596,9 +1865,8 @@ func (c *EC2) ConfirmProductInstanceRequest(input *ConfirmProductInstanceInput) input = &ConfirmProductInstanceInput{} } - req = c.newRequest(op, input, output) output = &ConfirmProductInstanceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1615,6 +1883,7 @@ func (c *EC2) ConfirmProductInstanceRequest(input *ConfirmProductInstanceInput) // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ConfirmProductInstance for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConfirmProductInstance func (c *EC2) ConfirmProductInstance(input *ConfirmProductInstanceInput) (*ConfirmProductInstanceOutput, error) { req, out := c.ConfirmProductInstanceRequest(input) err := req.Send() @@ -1647,6 +1916,7 @@ const opCopyImage = "CopyImage" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyImage func (c *EC2) CopyImageRequest(input *CopyImageInput) (req *request.Request, output *CopyImageOutput) { op := &request.Operation{ Name: opCopyImage, @@ -1658,9 +1928,8 @@ func (c *EC2) CopyImageRequest(input *CopyImageInput) (req *request.Request, out input = &CopyImageInput{} } - req = c.newRequest(op, input, output) output = &CopyImageOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1679,6 +1948,7 @@ func (c *EC2) CopyImageRequest(input *CopyImageInput) (req *request.Request, out // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CopyImage for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyImage func (c *EC2) CopyImage(input *CopyImageInput) (*CopyImageOutput, error) { req, out := c.CopyImageRequest(input) err := req.Send() @@ -1711,6 +1981,7 @@ const opCopySnapshot = "CopySnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopySnapshot func (c *EC2) CopySnapshotRequest(input *CopySnapshotInput) (req *request.Request, output *CopySnapshotOutput) { op := &request.Operation{ Name: opCopySnapshot, @@ -1722,9 +1993,8 @@ func (c *EC2) CopySnapshotRequest(input *CopySnapshotInput) (req *request.Reques input = &CopySnapshotInput{} } - req = c.newRequest(op, input, output) output = &CopySnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1742,13 +2012,13 @@ func (c *EC2) CopySnapshotRequest(input *CopySnapshotInput) (req *request.Reques // default AWS Key Management Service (AWS KMS) customer master key (CMK); however, // you can specify a non-default CMK with the KmsKeyId parameter. // -// To copy an encrypted snapshot that has been shared from another account, +// To copy an encrypted snapshot that has been shared from another account, // you must have permissions for the CMK used to encrypt the snapshot. // -// Snapshots created by the CopySnapshot action have an arbitrary volume -// ID that should not be used for any purpose. +// Snapshots created by the CopySnapshot action have an arbitrary volume ID +// that should not be used for any purpose. // -// For more information, see Copying an Amazon EBS Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-copy-snapshot.html) +// For more information, see Copying an Amazon EBS Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-copy-snapshot.html) // in the Amazon Elastic Compute Cloud User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1757,6 +2027,7 @@ func (c *EC2) CopySnapshotRequest(input *CopySnapshotInput) (req *request.Reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CopySnapshot for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopySnapshot func (c *EC2) CopySnapshot(input *CopySnapshotInput) (*CopySnapshotOutput, error) { req, out := c.CopySnapshotRequest(input) err := req.Send() @@ -1789,6 +2060,7 @@ const opCreateCustomerGateway = "CreateCustomerGateway" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCustomerGateway func (c *EC2) CreateCustomerGatewayRequest(input *CreateCustomerGatewayInput) (req *request.Request, output *CreateCustomerGatewayOutput) { op := &request.Operation{ Name: opCreateCustomerGateway, @@ -1800,9 +2072,8 @@ func (c *EC2) CreateCustomerGatewayRequest(input *CreateCustomerGatewayInput) (r input = &CreateCustomerGatewayInput{} } - req = c.newRequest(op, input, output) output = &CreateCustomerGatewayOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1820,15 +2091,15 @@ func (c *EC2) CreateCustomerGatewayRequest(input *CreateCustomerGatewayInput) (r // ASN assigned to your network. If you don't have an ASN already, you can use // a private ASN (in the 64512 - 65534 range). // -// Amazon EC2 supports all 2-byte ASN numbers in the range of 1 - 65534, with +// Amazon EC2 supports all 2-byte ASN numbers in the range of 1 - 65534, with // the exception of 7224, which is reserved in the us-east-1 region, and 9059, // which is reserved in the eu-west-1 region. // -// For more information about VPN customer gateways, see Adding a Hardware -// Virtual Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) +// For more information about VPN customer gateways, see Adding a Hardware Virtual +// Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) // in the Amazon Virtual Private Cloud User Guide. // -// You cannot create more than one customer gateway with the same VPN type, +// You cannot create more than one customer gateway with the same VPN type, // IP address, and BGP ASN parameter values. If you run an identical request // more than one time, the first request creates the customer gateway, and subsequent // requests return information about the existing customer gateway. The subsequent @@ -1840,6 +2111,7 @@ func (c *EC2) CreateCustomerGatewayRequest(input *CreateCustomerGatewayInput) (r // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateCustomerGateway for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCustomerGateway func (c *EC2) CreateCustomerGateway(input *CreateCustomerGatewayInput) (*CreateCustomerGatewayOutput, error) { req, out := c.CreateCustomerGatewayRequest(input) err := req.Send() @@ -1872,6 +2144,7 @@ const opCreateDhcpOptions = "CreateDhcpOptions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDhcpOptions func (c *EC2) CreateDhcpOptionsRequest(input *CreateDhcpOptionsInput) (req *request.Request, output *CreateDhcpOptionsOutput) { op := &request.Operation{ Name: opCreateDhcpOptions, @@ -1883,9 +2156,8 @@ func (c *EC2) CreateDhcpOptionsRequest(input *CreateDhcpOptionsInput) (req *requ input = &CreateDhcpOptionsInput{} } - req = c.newRequest(op, input, output) output = &CreateDhcpOptionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1897,34 +2169,34 @@ func (c *EC2) CreateDhcpOptionsRequest(input *CreateDhcpOptionsInput) (req *requ // individual DHCP options you can specify. For more information about the options, // see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt). // -// domain-name-servers - The IP addresses of up to four domain name servers, -// or AmazonProvidedDNS. The default DHCP option set specifies AmazonProvidedDNS. -// If specifying more than one domain name server, specify the IP addresses -// in a single parameter, separated by commas. If you want your instance to -// receive a custom DNS hostname as specified in domain-name, you must set domain-name-servers -// to a custom DNS server. -// -// domain-name - If you're using AmazonProvidedDNS in "us-east-1", specify -// "ec2.internal". If you're using AmazonProvidedDNS in another region, specify -// "region.compute.internal" (for example, "ap-northeast-1.compute.internal"). -// Otherwise, specify a domain name (for example, "MyCompany.com"). This value -// is used to complete unqualified DNS hostnames. Important: Some Linux operating -// systems accept multiple domain names separated by spaces. However, Windows -// and other Linux operating systems treat the value as a single domain, which -// results in unexpected behavior. If your DHCP options set is associated with -// a VPC that has instances with multiple operating systems, specify only one -// domain name. -// -// ntp-servers - The IP addresses of up to four Network Time Protocol (NTP) -// servers. -// -// netbios-name-servers - The IP addresses of up to four NetBIOS name servers. -// -// netbios-node-type - The NetBIOS node type (1, 2, 4, or 8). We recommend -// that you specify 2 (broadcast and multicast are not currently supported). -// For more information about these node types, see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt). -// -// Your VPC automatically starts out with a set of DHCP options that includes +// * domain-name-servers - The IP addresses of up to four domain name servers, +// or AmazonProvidedDNS. The default DHCP option set specifies AmazonProvidedDNS. +// If specifying more than one domain name server, specify the IP addresses +// in a single parameter, separated by commas. If you want your instance +// to receive a custom DNS hostname as specified in domain-name, you must +// set domain-name-servers to a custom DNS server. +// +// * domain-name - If you're using AmazonProvidedDNS in "us-east-1", specify +// "ec2.internal". If you're using AmazonProvidedDNS in another region, specify +// "region.compute.internal" (for example, "ap-northeast-1.compute.internal"). +// Otherwise, specify a domain name (for example, "MyCompany.com"). This +// value is used to complete unqualified DNS hostnames. Important: Some Linux +// operating systems accept multiple domain names separated by spaces. However, +// Windows and other Linux operating systems treat the value as a single +// domain, which results in unexpected behavior. If your DHCP options set +// is associated with a VPC that has instances with multiple operating systems, +// specify only one domain name. +// +// * ntp-servers - The IP addresses of up to four Network Time Protocol (NTP) +// servers. +// +// * netbios-name-servers - The IP addresses of up to four NetBIOS name servers. +// +// * netbios-node-type - The NetBIOS node type (1, 2, 4, or 8). We recommend +// that you specify 2 (broadcast and multicast are not currently supported). +// For more information about these node types, see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt). +// +// Your VPC automatically starts out with a set of DHCP options that includes // only a DNS server that we provide (AmazonProvidedDNS). If you create a set // of options, and if your VPC has an Internet gateway, make sure to set the // domain-name-servers option either to AmazonProvidedDNS or to a domain name @@ -1938,12 +2210,76 @@ func (c *EC2) CreateDhcpOptionsRequest(input *CreateDhcpOptionsInput) (req *requ // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateDhcpOptions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDhcpOptions func (c *EC2) CreateDhcpOptions(input *CreateDhcpOptionsInput) (*CreateDhcpOptionsOutput, error) { req, out := c.CreateDhcpOptionsRequest(input) err := req.Send() return out, err } +const opCreateEgressOnlyInternetGateway = "CreateEgressOnlyInternetGateway" + +// CreateEgressOnlyInternetGatewayRequest generates a "aws/request.Request" representing the +// client's request for the CreateEgressOnlyInternetGateway operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateEgressOnlyInternetGateway for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateEgressOnlyInternetGateway method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateEgressOnlyInternetGatewayRequest method. +// req, resp := client.CreateEgressOnlyInternetGatewayRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateEgressOnlyInternetGateway +func (c *EC2) CreateEgressOnlyInternetGatewayRequest(input *CreateEgressOnlyInternetGatewayInput) (req *request.Request, output *CreateEgressOnlyInternetGatewayOutput) { + op := &request.Operation{ + Name: opCreateEgressOnlyInternetGateway, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateEgressOnlyInternetGatewayInput{} + } + + output = &CreateEgressOnlyInternetGatewayOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateEgressOnlyInternetGateway API operation for Amazon Elastic Compute Cloud. +// +// [IPv6 only] Creates an egress-only Internet gateway for your VPC. An egress-only +// Internet gateway is used to enable outbound communication over IPv6 from +// instances in your VPC to the Internet, and prevents hosts outside of your +// VPC from initiating an IPv6 connection with your instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateEgressOnlyInternetGateway for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateEgressOnlyInternetGateway +func (c *EC2) CreateEgressOnlyInternetGateway(input *CreateEgressOnlyInternetGatewayInput) (*CreateEgressOnlyInternetGatewayOutput, error) { + req, out := c.CreateEgressOnlyInternetGatewayRequest(input) + err := req.Send() + return out, err +} + const opCreateFlowLogs = "CreateFlowLogs" // CreateFlowLogsRequest generates a "aws/request.Request" representing the @@ -1970,6 +2306,7 @@ const opCreateFlowLogs = "CreateFlowLogs" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFlowLogs func (c *EC2) CreateFlowLogsRequest(input *CreateFlowLogsInput) (req *request.Request, output *CreateFlowLogsOutput) { op := &request.Operation{ Name: opCreateFlowLogs, @@ -1981,9 +2318,8 @@ func (c *EC2) CreateFlowLogsRequest(input *CreateFlowLogsInput) (req *request.Re input = &CreateFlowLogsInput{} } - req = c.newRequest(op, input, output) output = &CreateFlowLogsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2006,6 +2342,7 @@ func (c *EC2) CreateFlowLogsRequest(input *CreateFlowLogsInput) (req *request.Re // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateFlowLogs for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFlowLogs func (c *EC2) CreateFlowLogs(input *CreateFlowLogsInput) (*CreateFlowLogsOutput, error) { req, out := c.CreateFlowLogsRequest(input) err := req.Send() @@ -2038,6 +2375,7 @@ const opCreateImage = "CreateImage" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImage func (c *EC2) CreateImageRequest(input *CreateImageInput) (req *request.Request, output *CreateImageOutput) { op := &request.Operation{ Name: opCreateImage, @@ -2049,9 +2387,8 @@ func (c *EC2) CreateImageRequest(input *CreateImageInput) (req *request.Request, input = &CreateImageInput{} } - req = c.newRequest(op, input, output) output = &CreateImageOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2074,6 +2411,7 @@ func (c *EC2) CreateImageRequest(input *CreateImageInput) (req *request.Request, // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateImage for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImage func (c *EC2) CreateImage(input *CreateImageInput) (*CreateImageOutput, error) { req, out := c.CreateImageRequest(input) err := req.Send() @@ -2106,6 +2444,7 @@ const opCreateInstanceExportTask = "CreateInstanceExportTask" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInstanceExportTask func (c *EC2) CreateInstanceExportTaskRequest(input *CreateInstanceExportTaskInput) (req *request.Request, output *CreateInstanceExportTaskOutput) { op := &request.Operation{ Name: opCreateInstanceExportTask, @@ -2117,9 +2456,8 @@ func (c *EC2) CreateInstanceExportTaskRequest(input *CreateInstanceExportTaskInp input = &CreateInstanceExportTaskInput{} } - req = c.newRequest(op, input, output) output = &CreateInstanceExportTaskOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2138,6 +2476,7 @@ func (c *EC2) CreateInstanceExportTaskRequest(input *CreateInstanceExportTaskInp // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateInstanceExportTask for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInstanceExportTask func (c *EC2) CreateInstanceExportTask(input *CreateInstanceExportTaskInput) (*CreateInstanceExportTaskOutput, error) { req, out := c.CreateInstanceExportTaskRequest(input) err := req.Send() @@ -2170,6 +2509,7 @@ const opCreateInternetGateway = "CreateInternetGateway" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInternetGateway func (c *EC2) CreateInternetGatewayRequest(input *CreateInternetGatewayInput) (req *request.Request, output *CreateInternetGatewayOutput) { op := &request.Operation{ Name: opCreateInternetGateway, @@ -2181,9 +2521,8 @@ func (c *EC2) CreateInternetGatewayRequest(input *CreateInternetGatewayInput) (r input = &CreateInternetGatewayInput{} } - req = c.newRequest(op, input, output) output = &CreateInternetGatewayOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2201,6 +2540,7 @@ func (c *EC2) CreateInternetGatewayRequest(input *CreateInternetGatewayInput) (r // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateInternetGateway for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInternetGateway func (c *EC2) CreateInternetGateway(input *CreateInternetGatewayInput) (*CreateInternetGatewayOutput, error) { req, out := c.CreateInternetGatewayRequest(input) err := req.Send() @@ -2233,6 +2573,7 @@ const opCreateKeyPair = "CreateKeyPair" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateKeyPair func (c *EC2) CreateKeyPairRequest(input *CreateKeyPairInput) (req *request.Request, output *CreateKeyPairOutput) { op := &request.Operation{ Name: opCreateKeyPair, @@ -2244,9 +2585,8 @@ func (c *EC2) CreateKeyPairRequest(input *CreateKeyPairInput) (req *request.Requ input = &CreateKeyPairInput{} } - req = c.newRequest(op, input, output) output = &CreateKeyPairOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2271,6 +2611,7 @@ func (c *EC2) CreateKeyPairRequest(input *CreateKeyPairInput) (req *request.Requ // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateKeyPair for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateKeyPair func (c *EC2) CreateKeyPair(input *CreateKeyPairInput) (*CreateKeyPairOutput, error) { req, out := c.CreateKeyPairRequest(input) err := req.Send() @@ -2303,6 +2644,7 @@ const opCreateNatGateway = "CreateNatGateway" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGateway func (c *EC2) CreateNatGatewayRequest(input *CreateNatGatewayInput) (req *request.Request, output *CreateNatGatewayOutput) { op := &request.Operation{ Name: opCreateNatGateway, @@ -2314,9 +2656,8 @@ func (c *EC2) CreateNatGatewayRequest(input *CreateNatGatewayInput) (req *reques input = &CreateNatGatewayInput{} } - req = c.newRequest(op, input, output) output = &CreateNatGatewayOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2335,6 +2676,7 @@ func (c *EC2) CreateNatGatewayRequest(input *CreateNatGatewayInput) (req *reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateNatGateway for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGateway func (c *EC2) CreateNatGateway(input *CreateNatGatewayInput) (*CreateNatGatewayOutput, error) { req, out := c.CreateNatGatewayRequest(input) err := req.Send() @@ -2367,6 +2709,7 @@ const opCreateNetworkAcl = "CreateNetworkAcl" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAcl func (c *EC2) CreateNetworkAclRequest(input *CreateNetworkAclInput) (req *request.Request, output *CreateNetworkAclOutput) { op := &request.Operation{ Name: opCreateNetworkAcl, @@ -2378,9 +2721,8 @@ func (c *EC2) CreateNetworkAclRequest(input *CreateNetworkAclInput) (req *reques input = &CreateNetworkAclInput{} } - req = c.newRequest(op, input, output) output = &CreateNetworkAclOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2398,6 +2740,7 @@ func (c *EC2) CreateNetworkAclRequest(input *CreateNetworkAclInput) (req *reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateNetworkAcl for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAcl func (c *EC2) CreateNetworkAcl(input *CreateNetworkAclInput) (*CreateNetworkAclOutput, error) { req, out := c.CreateNetworkAclRequest(input) err := req.Send() @@ -2430,6 +2773,7 @@ const opCreateNetworkAclEntry = "CreateNetworkAclEntry" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclEntry func (c *EC2) CreateNetworkAclEntryRequest(input *CreateNetworkAclEntryInput) (req *request.Request, output *CreateNetworkAclEntryOutput) { op := &request.Operation{ Name: opCreateNetworkAclEntry, @@ -2441,11 +2785,10 @@ func (c *EC2) CreateNetworkAclEntryRequest(input *CreateNetworkAclEntryInput) (r input = &CreateNetworkAclEntryInput{} } + output = &CreateNetworkAclEntryOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CreateNetworkAclEntryOutput{} - req.Data = output return } @@ -2458,8 +2801,8 @@ func (c *EC2) CreateNetworkAclEntryRequest(input *CreateNetworkAclEntryInput) (r // the ACL according to the rule numbers, in ascending order. Each network ACL // has a set of ingress rules and a separate set of egress rules. // -// We recommend that you leave room between the rule numbers (for example, -// 100, 110, 120, ...), and not number them one right after the other (for example, +// We recommend that you leave room between the rule numbers (for example, 100, +// 110, 120, ...), and not number them one right after the other (for example, // 101, 102, 103, ...). This makes it easier to add a rule between existing // ones without having to renumber the rules. // @@ -2475,6 +2818,7 @@ func (c *EC2) CreateNetworkAclEntryRequest(input *CreateNetworkAclEntryInput) (r // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateNetworkAclEntry for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclEntry func (c *EC2) CreateNetworkAclEntry(input *CreateNetworkAclEntryInput) (*CreateNetworkAclEntryOutput, error) { req, out := c.CreateNetworkAclEntryRequest(input) err := req.Send() @@ -2507,6 +2851,7 @@ const opCreateNetworkInterface = "CreateNetworkInterface" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterface func (c *EC2) CreateNetworkInterfaceRequest(input *CreateNetworkInterfaceInput) (req *request.Request, output *CreateNetworkInterfaceOutput) { op := &request.Operation{ Name: opCreateNetworkInterface, @@ -2518,9 +2863,8 @@ func (c *EC2) CreateNetworkInterfaceRequest(input *CreateNetworkInterfaceInput) input = &CreateNetworkInterfaceInput{} } - req = c.newRequest(op, input, output) output = &CreateNetworkInterfaceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2530,7 +2874,7 @@ func (c *EC2) CreateNetworkInterfaceRequest(input *CreateNetworkInterfaceInput) // // For more information about network interfaces, see Elastic Network Interfaces // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html) in the -// Amazon Elastic Compute Cloud User Guide. +// Amazon Virtual Private Cloud User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2538,6 +2882,7 @@ func (c *EC2) CreateNetworkInterfaceRequest(input *CreateNetworkInterfaceInput) // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateNetworkInterface for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterface func (c *EC2) CreateNetworkInterface(input *CreateNetworkInterfaceInput) (*CreateNetworkInterfaceOutput, error) { req, out := c.CreateNetworkInterfaceRequest(input) err := req.Send() @@ -2570,6 +2915,7 @@ const opCreatePlacementGroup = "CreatePlacementGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreatePlacementGroup func (c *EC2) CreatePlacementGroupRequest(input *CreatePlacementGroupInput) (req *request.Request, output *CreatePlacementGroupOutput) { op := &request.Operation{ Name: opCreatePlacementGroup, @@ -2581,11 +2927,10 @@ func (c *EC2) CreatePlacementGroupRequest(input *CreatePlacementGroupInput) (req input = &CreatePlacementGroupInput{} } + output = &CreatePlacementGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CreatePlacementGroupOutput{} - req.Data = output return } @@ -2604,6 +2949,7 @@ func (c *EC2) CreatePlacementGroupRequest(input *CreatePlacementGroupInput) (req // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreatePlacementGroup for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreatePlacementGroup func (c *EC2) CreatePlacementGroup(input *CreatePlacementGroupInput) (*CreatePlacementGroupOutput, error) { req, out := c.CreatePlacementGroupRequest(input) err := req.Send() @@ -2636,6 +2982,7 @@ const opCreateReservedInstancesListing = "CreateReservedInstancesListing" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateReservedInstancesListing func (c *EC2) CreateReservedInstancesListingRequest(input *CreateReservedInstancesListingInput) (req *request.Request, output *CreateReservedInstancesListingOutput) { op := &request.Operation{ Name: opCreateReservedInstancesListing, @@ -2647,9 +2994,8 @@ func (c *EC2) CreateReservedInstancesListingRequest(input *CreateReservedInstanc input = &CreateReservedInstancesListingInput{} } - req = c.newRequest(op, input, output) output = &CreateReservedInstancesListingOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2660,6 +3006,10 @@ func (c *EC2) CreateReservedInstancesListingRequest(input *CreateReservedInstanc // listing at a time. To get a list of your Standard Reserved Instances, you // can use the DescribeReservedInstances operation. // +// Only Standard Reserved Instances with a capacity reservation can be sold +// in the Reserved Instance Marketplace. Convertible Reserved Instances and +// Standard Reserved Instances with a regional benefit cannot be sold. +// // The Reserved Instance Marketplace matches sellers who want to resell Standard // Reserved Instance capacity that they no longer need with buyers who want // to purchase additional capacity. Reserved Instances bought and sold through @@ -2682,6 +3032,7 @@ func (c *EC2) CreateReservedInstancesListingRequest(input *CreateReservedInstanc // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateReservedInstancesListing for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateReservedInstancesListing func (c *EC2) CreateReservedInstancesListing(input *CreateReservedInstancesListingInput) (*CreateReservedInstancesListingOutput, error) { req, out := c.CreateReservedInstancesListingRequest(input) err := req.Send() @@ -2714,6 +3065,7 @@ const opCreateRoute = "CreateRoute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRoute func (c *EC2) CreateRouteRequest(input *CreateRouteInput) (req *request.Request, output *CreateRouteOutput) { op := &request.Operation{ Name: opCreateRoute, @@ -2725,9 +3077,8 @@ func (c *EC2) CreateRouteRequest(input *CreateRouteInput) (req *request.Request, input = &CreateRouteInput{} } - req = c.newRequest(op, input, output) output = &CreateRouteOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2736,19 +3087,19 @@ func (c *EC2) CreateRouteRequest(input *CreateRouteInput) (req *request.Request, // Creates a route in a route table within a VPC. // // You must specify one of the following targets: Internet gateway or virtual -// private gateway, NAT instance, NAT gateway, VPC peering connection, or network -// interface. +// private gateway, NAT instance, NAT gateway, VPC peering connection, network +// interface, or egress-only Internet gateway. // // When determining how to route traffic, we use the route with the most specific -// match. For example, let's say the traffic is destined for 192.0.2.3, and -// the route table includes the following two routes: +// match. For example, traffic is destined for the IPv4 address 192.0.2.3, and +// the route table includes the following two IPv4 routes: // -// 192.0.2.0/24 (goes to some target A) +// * 192.0.2.0/24 (goes to some target A) // -// 192.0.2.0/28 (goes to some target B) +// * 192.0.2.0/28 (goes to some target B) // -// Both routes apply to the traffic destined for 192.0.2.3. However, the -// second route in the list covers a smaller number of IP addresses and is therefore +// Both routes apply to the traffic destined for 192.0.2.3. However, the second +// route in the list covers a smaller number of IP addresses and is therefore // more specific, so we use that route to determine where to target the traffic. // // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html) @@ -2760,6 +3111,7 @@ func (c *EC2) CreateRouteRequest(input *CreateRouteInput) (req *request.Request, // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateRoute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRoute func (c *EC2) CreateRoute(input *CreateRouteInput) (*CreateRouteOutput, error) { req, out := c.CreateRouteRequest(input) err := req.Send() @@ -2792,6 +3144,7 @@ const opCreateRouteTable = "CreateRouteTable" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteTable func (c *EC2) CreateRouteTableRequest(input *CreateRouteTableInput) (req *request.Request, output *CreateRouteTableOutput) { op := &request.Operation{ Name: opCreateRouteTable, @@ -2803,9 +3156,8 @@ func (c *EC2) CreateRouteTableRequest(input *CreateRouteTableInput) (req *reques input = &CreateRouteTableInput{} } - req = c.newRequest(op, input, output) output = &CreateRouteTableOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2823,6 +3175,7 @@ func (c *EC2) CreateRouteTableRequest(input *CreateRouteTableInput) (req *reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateRouteTable for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteTable func (c *EC2) CreateRouteTable(input *CreateRouteTableInput) (*CreateRouteTableOutput, error) { req, out := c.CreateRouteTableRequest(input) err := req.Send() @@ -2855,6 +3208,7 @@ const opCreateSecurityGroup = "CreateSecurityGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSecurityGroup func (c *EC2) CreateSecurityGroupRequest(input *CreateSecurityGroupInput) (req *request.Request, output *CreateSecurityGroupOutput) { op := &request.Operation{ Name: opCreateSecurityGroup, @@ -2866,9 +3220,8 @@ func (c *EC2) CreateSecurityGroupRequest(input *CreateSecurityGroupInput) (req * input = &CreateSecurityGroupInput{} } - req = c.newRequest(op, input, output) output = &CreateSecurityGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2883,11 +3236,11 @@ func (c *EC2) CreateSecurityGroupRequest(input *CreateSecurityGroupInput) (req * // VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html) // in the Amazon Virtual Private Cloud User Guide. // -// EC2-Classic: You can have up to 500 security groups. +// EC2-Classic: You can have up to 500 security groups. // // EC2-VPC: You can create up to 500 security groups per VPC. // -// When you create a security group, you specify a friendly name of your choice. +// When you create a security group, you specify a friendly name of your choice. // You can have a security group for use in EC2-Classic with the same name as // a security group for use in a VPC. However, you can't have two security groups // for use in EC2-Classic with the same name or two security groups for use @@ -2908,6 +3261,7 @@ func (c *EC2) CreateSecurityGroupRequest(input *CreateSecurityGroupInput) (req * // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateSecurityGroup for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSecurityGroup func (c *EC2) CreateSecurityGroup(input *CreateSecurityGroupInput) (*CreateSecurityGroupOutput, error) { req, out := c.CreateSecurityGroupRequest(input) err := req.Send() @@ -2940,6 +3294,7 @@ const opCreateSnapshot = "CreateSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSnapshot func (c *EC2) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Request, output *Snapshot) { op := &request.Operation{ Name: opCreateSnapshot, @@ -2951,9 +3306,8 @@ func (c *EC2) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Re input = &CreateSnapshotInput{} } - req = c.newRequest(op, input, output) output = &Snapshot{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2994,6 +3348,7 @@ func (c *EC2) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Re // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateSnapshot for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSnapshot func (c *EC2) CreateSnapshot(input *CreateSnapshotInput) (*Snapshot, error) { req, out := c.CreateSnapshotRequest(input) err := req.Send() @@ -3026,6 +3381,7 @@ const opCreateSpotDatafeedSubscription = "CreateSpotDatafeedSubscription" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSpotDatafeedSubscription func (c *EC2) CreateSpotDatafeedSubscriptionRequest(input *CreateSpotDatafeedSubscriptionInput) (req *request.Request, output *CreateSpotDatafeedSubscriptionOutput) { op := &request.Operation{ Name: opCreateSpotDatafeedSubscription, @@ -3037,9 +3393,8 @@ func (c *EC2) CreateSpotDatafeedSubscriptionRequest(input *CreateSpotDatafeedSub input = &CreateSpotDatafeedSubscriptionInput{} } - req = c.newRequest(op, input, output) output = &CreateSpotDatafeedSubscriptionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3056,6 +3411,7 @@ func (c *EC2) CreateSpotDatafeedSubscriptionRequest(input *CreateSpotDatafeedSub // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateSpotDatafeedSubscription for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSpotDatafeedSubscription func (c *EC2) CreateSpotDatafeedSubscription(input *CreateSpotDatafeedSubscriptionInput) (*CreateSpotDatafeedSubscriptionOutput, error) { req, out := c.CreateSpotDatafeedSubscriptionRequest(input) err := req.Send() @@ -3088,6 +3444,7 @@ const opCreateSubnet = "CreateSubnet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSubnet func (c *EC2) CreateSubnetRequest(input *CreateSubnetInput) (req *request.Request, output *CreateSubnetOutput) { op := &request.Operation{ Name: opCreateSubnet, @@ -3099,9 +3456,8 @@ func (c *EC2) CreateSubnetRequest(input *CreateSubnetInput) (req *request.Reques input = &CreateSubnetInput{} } - req = c.newRequest(op, input, output) output = &CreateSubnetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3111,17 +3467,20 @@ func (c *EC2) CreateSubnetRequest(input *CreateSubnetInput) (req *request.Reques // // When you create each subnet, you provide the VPC ID and the CIDR block you // want for the subnet. After you create a subnet, you can't change its CIDR -// block. The subnet's CIDR block can be the same as the VPC's CIDR block (assuming -// you want only a single subnet in the VPC), or a subset of the VPC's CIDR -// block. If you create more than one subnet in a VPC, the subnets' CIDR blocks -// must not overlap. The smallest subnet (and VPC) you can create uses a /28 -// netmask (16 IP addresses), and the largest uses a /16 netmask (65,536 IP -// addresses). -// -// AWS reserves both the first four and the last IP address in each subnet's +// block. The subnet's IPv4 CIDR block can be the same as the VPC's IPv4 CIDR +// block (assuming you want only a single subnet in the VPC), or a subset of +// the VPC's IPv4 CIDR block. If you create more than one subnet in a VPC, the +// subnets' CIDR blocks must not overlap. The smallest IPv4 subnet (and VPC) +// you can create uses a /28 netmask (16 IPv4 addresses), and the largest uses +// a /16 netmask (65,536 IPv4 addresses). +// +// If you've associated an IPv6 CIDR block with your VPC, you can create a subnet +// with an IPv6 CIDR block that uses a /64 prefix length. +// +// AWS reserves both the first four and the last IP address in each subnet's // CIDR block. They're not available for use. // -// If you add more than one subnet to a VPC, they're set up in a star topology +// If you add more than one subnet to a VPC, they're set up in a star topology // with a logical router in the middle. // // If you launch an instance in a VPC using an Amazon EBS-backed AMI, the IP @@ -3139,6 +3498,7 @@ func (c *EC2) CreateSubnetRequest(input *CreateSubnetInput) (req *request.Reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateSubnet for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSubnet func (c *EC2) CreateSubnet(input *CreateSubnetInput) (*CreateSubnetOutput, error) { req, out := c.CreateSubnetRequest(input) err := req.Send() @@ -3171,6 +3531,7 @@ const opCreateTags = "CreateTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTags func (c *EC2) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, output *CreateTagsOutput) { op := &request.Operation{ Name: opCreateTags, @@ -3182,11 +3543,10 @@ func (c *EC2) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, o input = &CreateTagsInput{} } + output = &CreateTagsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CreateTagsOutput{} - req.Data = output return } @@ -3208,6 +3568,7 @@ func (c *EC2) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, o // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateTags for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTags func (c *EC2) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) { req, out := c.CreateTagsRequest(input) err := req.Send() @@ -3240,6 +3601,7 @@ const opCreateVolume = "CreateVolume" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolume func (c *EC2) CreateVolumeRequest(input *CreateVolumeInput) (req *request.Request, output *Volume) { op := &request.Operation{ Name: opCreateVolume, @@ -3251,9 +3613,8 @@ func (c *EC2) CreateVolumeRequest(input *CreateVolumeInput) (req *request.Reques input = &CreateVolumeInput{} } - req = c.newRequest(op, input, output) output = &Volume{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3282,6 +3643,7 @@ func (c *EC2) CreateVolumeRequest(input *CreateVolumeInput) (req *request.Reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateVolume for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolume func (c *EC2) CreateVolume(input *CreateVolumeInput) (*Volume, error) { req, out := c.CreateVolumeRequest(input) err := req.Send() @@ -3314,6 +3676,7 @@ const opCreateVpc = "CreateVpc" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpc func (c *EC2) CreateVpcRequest(input *CreateVpcInput) (req *request.Request, output *CreateVpcOutput) { op := &request.Operation{ Name: opCreateVpc, @@ -3325,21 +3688,23 @@ func (c *EC2) CreateVpcRequest(input *CreateVpcInput) (req *request.Request, out input = &CreateVpcInput{} } - req = c.newRequest(op, input, output) output = &CreateVpcOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // CreateVpc API operation for Amazon Elastic Compute Cloud. // -// Creates a VPC with the specified CIDR block. -// -// The smallest VPC you can create uses a /28 netmask (16 IP addresses), and -// the largest uses a /16 netmask (65,536 IP addresses). To help you decide -// how big to make your VPC, see Your VPC and Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html) +// Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can +// create uses a /28 netmask (16 IPv4 addresses), and the largest uses a /16 +// netmask (65,536 IPv4 addresses). To help you decide how big to make your +// VPC, see Your VPC and Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html) // in the Amazon Virtual Private Cloud User Guide. // +// You can optionally request an Amazon-provided IPv6 CIDR block for the VPC. +// The IPv6 CIDR block uses a /56 prefix length, and is allocated from Amazon's +// pool of IPv6 addresses. You cannot choose the IPv6 range for your VPC. +// // By default, each instance you launch in the VPC has the default DHCP options, // which includes only a default DNS server that we provide (AmazonProvidedDNS). // For more information about DHCP options, see DHCP Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html) @@ -3347,8 +3712,8 @@ func (c *EC2) CreateVpcRequest(input *CreateVpcInput) (req *request.Request, out // // You can specify the instance tenancy value for the VPC when you create it. // You can't change this value for the VPC after you create it. For more information, -// see Dedicated Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/dedicated-instance.html.html) -// in the Amazon Virtual Private Cloud User Guide. +// see Dedicated Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html) +// in the Amazon Elastic Compute Cloud User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3356,6 +3721,7 @@ func (c *EC2) CreateVpcRequest(input *CreateVpcInput) (req *request.Request, out // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateVpc for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpc func (c *EC2) CreateVpc(input *CreateVpcInput) (*CreateVpcOutput, error) { req, out := c.CreateVpcRequest(input) err := req.Send() @@ -3388,6 +3754,7 @@ const opCreateVpcEndpoint = "CreateVpcEndpoint" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpoint func (c *EC2) CreateVpcEndpointRequest(input *CreateVpcEndpointInput) (req *request.Request, output *CreateVpcEndpointOutput) { op := &request.Operation{ Name: opCreateVpcEndpoint, @@ -3399,9 +3766,8 @@ func (c *EC2) CreateVpcEndpointRequest(input *CreateVpcEndpointInput) (req *requ input = &CreateVpcEndpointInput{} } - req = c.newRequest(op, input, output) output = &CreateVpcEndpointOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3413,7 +3779,7 @@ func (c *EC2) CreateVpcEndpointRequest(input *CreateVpcEndpointInput) (req *requ // that will control access to the service from your VPC. You can also specify // the VPC route tables that use the endpoint. // -// Currently, only endpoints to Amazon S3 are supported. +// Use DescribeVpcEndpointServices to get a list of supported AWS services. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3421,6 +3787,7 @@ func (c *EC2) CreateVpcEndpointRequest(input *CreateVpcEndpointInput) (req *requ // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateVpcEndpoint for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpoint func (c *EC2) CreateVpcEndpoint(input *CreateVpcEndpointInput) (*CreateVpcEndpointOutput, error) { req, out := c.CreateVpcEndpointRequest(input) err := req.Send() @@ -3453,6 +3820,7 @@ const opCreateVpcPeeringConnection = "CreateVpcPeeringConnection" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcPeeringConnection func (c *EC2) CreateVpcPeeringConnectionRequest(input *CreateVpcPeeringConnectionInput) (req *request.Request, output *CreateVpcPeeringConnectionOutput) { op := &request.Operation{ Name: opCreateVpcPeeringConnection, @@ -3464,9 +3832,8 @@ func (c *EC2) CreateVpcPeeringConnectionRequest(input *CreateVpcPeeringConnectio input = &CreateVpcPeeringConnectionInput{} } - req = c.newRequest(op, input, output) output = &CreateVpcPeeringConnectionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3481,8 +3848,8 @@ func (c *EC2) CreateVpcPeeringConnectionRequest(input *CreateVpcPeeringConnectio // peering connection. The VPC peering connection request expires after 7 days, // after which it cannot be accepted or rejected. // -// A CreateVpcPeeringConnection request between VPCs with overlapping CIDR -// blocks results in the VPC peering connection having a status of failed. +// A CreateVpcPeeringConnection request between VPCs with overlapping CIDR blocks +// results in the VPC peering connection having a status of failed. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3490,6 +3857,7 @@ func (c *EC2) CreateVpcPeeringConnectionRequest(input *CreateVpcPeeringConnectio // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateVpcPeeringConnection for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcPeeringConnection func (c *EC2) CreateVpcPeeringConnection(input *CreateVpcPeeringConnectionInput) (*CreateVpcPeeringConnectionOutput, error) { req, out := c.CreateVpcPeeringConnectionRequest(input) err := req.Send() @@ -3522,6 +3890,7 @@ const opCreateVpnConnection = "CreateVpnConnection" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnection func (c *EC2) CreateVpnConnectionRequest(input *CreateVpnConnectionInput) (req *request.Request, output *CreateVpnConnectionOutput) { op := &request.Operation{ Name: opCreateVpnConnection, @@ -3533,9 +3902,8 @@ func (c *EC2) CreateVpnConnectionRequest(input *CreateVpnConnectionInput) (req * input = &CreateVpnConnectionInput{} } - req = c.newRequest(op, input, output) output = &CreateVpnConnectionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3544,19 +3912,19 @@ func (c *EC2) CreateVpnConnectionRequest(input *CreateVpnConnectionInput) (req * // Creates a VPN connection between an existing virtual private gateway and // a VPN customer gateway. The only supported connection type is ipsec.1. // -// The response includes information that you need to give to your network -// administrator to configure your customer gateway. +// The response includes information that you need to give to your network administrator +// to configure your customer gateway. // -// We strongly recommend that you use HTTPS when calling this operation because +// We strongly recommend that you use HTTPS when calling this operation because // the response contains sensitive cryptographic information for configuring // your customer gateway. // -// If you decide to shut down your VPN connection for any reason and later -// create a new VPN connection, you must reconfigure your customer gateway with -// the new information returned from this call. +// If you decide to shut down your VPN connection for any reason and later create +// a new VPN connection, you must reconfigure your customer gateway with the +// new information returned from this call. // -// This is an idempotent operation. If you perform the operation more than -// once, Amazon EC2 doesn't return an error. +// This is an idempotent operation. If you perform the operation more than once, +// Amazon EC2 doesn't return an error. // // For more information about VPN connections, see Adding a Hardware Virtual // Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) @@ -3568,6 +3936,7 @@ func (c *EC2) CreateVpnConnectionRequest(input *CreateVpnConnectionInput) (req * // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateVpnConnection for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnection func (c *EC2) CreateVpnConnection(input *CreateVpnConnectionInput) (*CreateVpnConnectionOutput, error) { req, out := c.CreateVpnConnectionRequest(input) err := req.Send() @@ -3600,6 +3969,7 @@ const opCreateVpnConnectionRoute = "CreateVpnConnectionRoute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionRoute func (c *EC2) CreateVpnConnectionRouteRequest(input *CreateVpnConnectionRouteInput) (req *request.Request, output *CreateVpnConnectionRouteOutput) { op := &request.Operation{ Name: opCreateVpnConnectionRoute, @@ -3611,11 +3981,10 @@ func (c *EC2) CreateVpnConnectionRouteRequest(input *CreateVpnConnectionRouteInp input = &CreateVpnConnectionRouteInput{} } + output = &CreateVpnConnectionRouteOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CreateVpnConnectionRouteOutput{} - req.Data = output return } @@ -3636,6 +4005,7 @@ func (c *EC2) CreateVpnConnectionRouteRequest(input *CreateVpnConnectionRouteInp // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateVpnConnectionRoute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionRoute func (c *EC2) CreateVpnConnectionRoute(input *CreateVpnConnectionRouteInput) (*CreateVpnConnectionRouteOutput, error) { req, out := c.CreateVpnConnectionRouteRequest(input) err := req.Send() @@ -3668,6 +4038,7 @@ const opCreateVpnGateway = "CreateVpnGateway" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnGateway func (c *EC2) CreateVpnGatewayRequest(input *CreateVpnGatewayInput) (req *request.Request, output *CreateVpnGatewayOutput) { op := &request.Operation{ Name: opCreateVpnGateway, @@ -3679,9 +4050,8 @@ func (c *EC2) CreateVpnGatewayRequest(input *CreateVpnGatewayInput) (req *reques input = &CreateVpnGatewayInput{} } - req = c.newRequest(op, input, output) output = &CreateVpnGatewayOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3701,6 +4071,7 @@ func (c *EC2) CreateVpnGatewayRequest(input *CreateVpnGatewayInput) (req *reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation CreateVpnGateway for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnGateway func (c *EC2) CreateVpnGateway(input *CreateVpnGatewayInput) (*CreateVpnGatewayOutput, error) { req, out := c.CreateVpnGatewayRequest(input) err := req.Send() @@ -3733,6 +4104,7 @@ const opDeleteCustomerGateway = "DeleteCustomerGateway" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCustomerGateway func (c *EC2) DeleteCustomerGatewayRequest(input *DeleteCustomerGatewayInput) (req *request.Request, output *DeleteCustomerGatewayOutput) { op := &request.Operation{ Name: opDeleteCustomerGateway, @@ -3744,11 +4116,10 @@ func (c *EC2) DeleteCustomerGatewayRequest(input *DeleteCustomerGatewayInput) (r input = &DeleteCustomerGatewayInput{} } + output = &DeleteCustomerGatewayOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteCustomerGatewayOutput{} - req.Data = output return } @@ -3763,6 +4134,7 @@ func (c *EC2) DeleteCustomerGatewayRequest(input *DeleteCustomerGatewayInput) (r // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteCustomerGateway for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCustomerGateway func (c *EC2) DeleteCustomerGateway(input *DeleteCustomerGatewayInput) (*DeleteCustomerGatewayOutput, error) { req, out := c.DeleteCustomerGatewayRequest(input) err := req.Send() @@ -3795,6 +4167,7 @@ const opDeleteDhcpOptions = "DeleteDhcpOptions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteDhcpOptions func (c *EC2) DeleteDhcpOptionsRequest(input *DeleteDhcpOptionsInput) (req *request.Request, output *DeleteDhcpOptionsOutput) { op := &request.Operation{ Name: opDeleteDhcpOptions, @@ -3806,11 +4179,10 @@ func (c *EC2) DeleteDhcpOptionsRequest(input *DeleteDhcpOptionsInput) (req *requ input = &DeleteDhcpOptionsInput{} } + output = &DeleteDhcpOptionsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteDhcpOptionsOutput{} - req.Data = output return } @@ -3827,12 +4199,73 @@ func (c *EC2) DeleteDhcpOptionsRequest(input *DeleteDhcpOptionsInput) (req *requ // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteDhcpOptions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteDhcpOptions func (c *EC2) DeleteDhcpOptions(input *DeleteDhcpOptionsInput) (*DeleteDhcpOptionsOutput, error) { req, out := c.DeleteDhcpOptionsRequest(input) err := req.Send() return out, err } +const opDeleteEgressOnlyInternetGateway = "DeleteEgressOnlyInternetGateway" + +// DeleteEgressOnlyInternetGatewayRequest generates a "aws/request.Request" representing the +// client's request for the DeleteEgressOnlyInternetGateway operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteEgressOnlyInternetGateway for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteEgressOnlyInternetGateway method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteEgressOnlyInternetGatewayRequest method. +// req, resp := client.DeleteEgressOnlyInternetGatewayRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteEgressOnlyInternetGateway +func (c *EC2) DeleteEgressOnlyInternetGatewayRequest(input *DeleteEgressOnlyInternetGatewayInput) (req *request.Request, output *DeleteEgressOnlyInternetGatewayOutput) { + op := &request.Operation{ + Name: opDeleteEgressOnlyInternetGateway, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteEgressOnlyInternetGatewayInput{} + } + + output = &DeleteEgressOnlyInternetGatewayOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteEgressOnlyInternetGateway API operation for Amazon Elastic Compute Cloud. +// +// Deletes an egress-only Internet gateway. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteEgressOnlyInternetGateway for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteEgressOnlyInternetGateway +func (c *EC2) DeleteEgressOnlyInternetGateway(input *DeleteEgressOnlyInternetGatewayInput) (*DeleteEgressOnlyInternetGatewayOutput, error) { + req, out := c.DeleteEgressOnlyInternetGatewayRequest(input) + err := req.Send() + return out, err +} + const opDeleteFlowLogs = "DeleteFlowLogs" // DeleteFlowLogsRequest generates a "aws/request.Request" representing the @@ -3859,6 +4292,7 @@ const opDeleteFlowLogs = "DeleteFlowLogs" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFlowLogs func (c *EC2) DeleteFlowLogsRequest(input *DeleteFlowLogsInput) (req *request.Request, output *DeleteFlowLogsOutput) { op := &request.Operation{ Name: opDeleteFlowLogs, @@ -3870,9 +4304,8 @@ func (c *EC2) DeleteFlowLogsRequest(input *DeleteFlowLogsInput) (req *request.Re input = &DeleteFlowLogsInput{} } - req = c.newRequest(op, input, output) output = &DeleteFlowLogsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3886,6 +4319,7 @@ func (c *EC2) DeleteFlowLogsRequest(input *DeleteFlowLogsInput) (req *request.Re // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteFlowLogs for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFlowLogs func (c *EC2) DeleteFlowLogs(input *DeleteFlowLogsInput) (*DeleteFlowLogsOutput, error) { req, out := c.DeleteFlowLogsRequest(input) err := req.Send() @@ -3918,6 +4352,7 @@ const opDeleteInternetGateway = "DeleteInternetGateway" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteInternetGateway func (c *EC2) DeleteInternetGatewayRequest(input *DeleteInternetGatewayInput) (req *request.Request, output *DeleteInternetGatewayOutput) { op := &request.Operation{ Name: opDeleteInternetGateway, @@ -3929,11 +4364,10 @@ func (c *EC2) DeleteInternetGatewayRequest(input *DeleteInternetGatewayInput) (r input = &DeleteInternetGatewayInput{} } + output = &DeleteInternetGatewayOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteInternetGatewayOutput{} - req.Data = output return } @@ -3948,6 +4382,7 @@ func (c *EC2) DeleteInternetGatewayRequest(input *DeleteInternetGatewayInput) (r // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteInternetGateway for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteInternetGateway func (c *EC2) DeleteInternetGateway(input *DeleteInternetGatewayInput) (*DeleteInternetGatewayOutput, error) { req, out := c.DeleteInternetGatewayRequest(input) err := req.Send() @@ -3980,6 +4415,7 @@ const opDeleteKeyPair = "DeleteKeyPair" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteKeyPair func (c *EC2) DeleteKeyPairRequest(input *DeleteKeyPairInput) (req *request.Request, output *DeleteKeyPairOutput) { op := &request.Operation{ Name: opDeleteKeyPair, @@ -3991,11 +4427,10 @@ func (c *EC2) DeleteKeyPairRequest(input *DeleteKeyPairInput) (req *request.Requ input = &DeleteKeyPairInput{} } + output = &DeleteKeyPairOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteKeyPairOutput{} - req.Data = output return } @@ -4009,6 +4444,7 @@ func (c *EC2) DeleteKeyPairRequest(input *DeleteKeyPairInput) (req *request.Requ // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteKeyPair for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteKeyPair func (c *EC2) DeleteKeyPair(input *DeleteKeyPairInput) (*DeleteKeyPairOutput, error) { req, out := c.DeleteKeyPairRequest(input) err := req.Send() @@ -4041,6 +4477,7 @@ const opDeleteNatGateway = "DeleteNatGateway" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNatGateway func (c *EC2) DeleteNatGatewayRequest(input *DeleteNatGatewayInput) (req *request.Request, output *DeleteNatGatewayOutput) { op := &request.Operation{ Name: opDeleteNatGateway, @@ -4052,9 +4489,8 @@ func (c *EC2) DeleteNatGatewayRequest(input *DeleteNatGatewayInput) (req *reques input = &DeleteNatGatewayInput{} } - req = c.newRequest(op, input, output) output = &DeleteNatGatewayOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4070,6 +4506,7 @@ func (c *EC2) DeleteNatGatewayRequest(input *DeleteNatGatewayInput) (req *reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteNatGateway for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNatGateway func (c *EC2) DeleteNatGateway(input *DeleteNatGatewayInput) (*DeleteNatGatewayOutput, error) { req, out := c.DeleteNatGatewayRequest(input) err := req.Send() @@ -4102,6 +4539,7 @@ const opDeleteNetworkAcl = "DeleteNetworkAcl" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAcl func (c *EC2) DeleteNetworkAclRequest(input *DeleteNetworkAclInput) (req *request.Request, output *DeleteNetworkAclOutput) { op := &request.Operation{ Name: opDeleteNetworkAcl, @@ -4113,11 +4551,10 @@ func (c *EC2) DeleteNetworkAclRequest(input *DeleteNetworkAclInput) (req *reques input = &DeleteNetworkAclInput{} } + output = &DeleteNetworkAclOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteNetworkAclOutput{} - req.Data = output return } @@ -4132,6 +4569,7 @@ func (c *EC2) DeleteNetworkAclRequest(input *DeleteNetworkAclInput) (req *reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteNetworkAcl for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAcl func (c *EC2) DeleteNetworkAcl(input *DeleteNetworkAclInput) (*DeleteNetworkAclOutput, error) { req, out := c.DeleteNetworkAclRequest(input) err := req.Send() @@ -4164,6 +4602,7 @@ const opDeleteNetworkAclEntry = "DeleteNetworkAclEntry" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclEntry func (c *EC2) DeleteNetworkAclEntryRequest(input *DeleteNetworkAclEntryInput) (req *request.Request, output *DeleteNetworkAclEntryOutput) { op := &request.Operation{ Name: opDeleteNetworkAclEntry, @@ -4175,11 +4614,10 @@ func (c *EC2) DeleteNetworkAclEntryRequest(input *DeleteNetworkAclEntryInput) (r input = &DeleteNetworkAclEntryInput{} } + output = &DeleteNetworkAclEntryOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteNetworkAclEntryOutput{} - req.Data = output return } @@ -4194,6 +4632,7 @@ func (c *EC2) DeleteNetworkAclEntryRequest(input *DeleteNetworkAclEntryInput) (r // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteNetworkAclEntry for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclEntry func (c *EC2) DeleteNetworkAclEntry(input *DeleteNetworkAclEntryInput) (*DeleteNetworkAclEntryOutput, error) { req, out := c.DeleteNetworkAclEntryRequest(input) err := req.Send() @@ -4226,6 +4665,7 @@ const opDeleteNetworkInterface = "DeleteNetworkInterface" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterface func (c *EC2) DeleteNetworkInterfaceRequest(input *DeleteNetworkInterfaceInput) (req *request.Request, output *DeleteNetworkInterfaceOutput) { op := &request.Operation{ Name: opDeleteNetworkInterface, @@ -4237,11 +4677,10 @@ func (c *EC2) DeleteNetworkInterfaceRequest(input *DeleteNetworkInterfaceInput) input = &DeleteNetworkInterfaceInput{} } + output = &DeleteNetworkInterfaceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteNetworkInterfaceOutput{} - req.Data = output return } @@ -4256,6 +4695,7 @@ func (c *EC2) DeleteNetworkInterfaceRequest(input *DeleteNetworkInterfaceInput) // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteNetworkInterface for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterface func (c *EC2) DeleteNetworkInterface(input *DeleteNetworkInterfaceInput) (*DeleteNetworkInterfaceOutput, error) { req, out := c.DeleteNetworkInterfaceRequest(input) err := req.Send() @@ -4288,6 +4728,7 @@ const opDeletePlacementGroup = "DeletePlacementGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeletePlacementGroup func (c *EC2) DeletePlacementGroupRequest(input *DeletePlacementGroupInput) (req *request.Request, output *DeletePlacementGroupOutput) { op := &request.Operation{ Name: opDeletePlacementGroup, @@ -4299,11 +4740,10 @@ func (c *EC2) DeletePlacementGroupRequest(input *DeletePlacementGroupInput) (req input = &DeletePlacementGroupInput{} } + output = &DeletePlacementGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeletePlacementGroupOutput{} - req.Data = output return } @@ -4320,6 +4760,7 @@ func (c *EC2) DeletePlacementGroupRequest(input *DeletePlacementGroupInput) (req // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeletePlacementGroup for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeletePlacementGroup func (c *EC2) DeletePlacementGroup(input *DeletePlacementGroupInput) (*DeletePlacementGroupOutput, error) { req, out := c.DeletePlacementGroupRequest(input) err := req.Send() @@ -4352,6 +4793,7 @@ const opDeleteRoute = "DeleteRoute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRoute func (c *EC2) DeleteRouteRequest(input *DeleteRouteInput) (req *request.Request, output *DeleteRouteOutput) { op := &request.Operation{ Name: opDeleteRoute, @@ -4363,11 +4805,10 @@ func (c *EC2) DeleteRouteRequest(input *DeleteRouteInput) (req *request.Request, input = &DeleteRouteInput{} } + output = &DeleteRouteOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteRouteOutput{} - req.Data = output return } @@ -4381,6 +4822,7 @@ func (c *EC2) DeleteRouteRequest(input *DeleteRouteInput) (req *request.Request, // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteRoute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRoute func (c *EC2) DeleteRoute(input *DeleteRouteInput) (*DeleteRouteOutput, error) { req, out := c.DeleteRouteRequest(input) err := req.Send() @@ -4413,6 +4855,7 @@ const opDeleteRouteTable = "DeleteRouteTable" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteTable func (c *EC2) DeleteRouteTableRequest(input *DeleteRouteTableInput) (req *request.Request, output *DeleteRouteTableOutput) { op := &request.Operation{ Name: opDeleteRouteTable, @@ -4424,11 +4867,10 @@ func (c *EC2) DeleteRouteTableRequest(input *DeleteRouteTableInput) (req *reques input = &DeleteRouteTableInput{} } + output = &DeleteRouteTableOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteRouteTableOutput{} - req.Data = output return } @@ -4444,6 +4886,7 @@ func (c *EC2) DeleteRouteTableRequest(input *DeleteRouteTableInput) (req *reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteRouteTable for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteTable func (c *EC2) DeleteRouteTable(input *DeleteRouteTableInput) (*DeleteRouteTableOutput, error) { req, out := c.DeleteRouteTableRequest(input) err := req.Send() @@ -4476,6 +4919,7 @@ const opDeleteSecurityGroup = "DeleteSecurityGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSecurityGroup func (c *EC2) DeleteSecurityGroupRequest(input *DeleteSecurityGroupInput) (req *request.Request, output *DeleteSecurityGroupOutput) { op := &request.Operation{ Name: opDeleteSecurityGroup, @@ -4487,11 +4931,10 @@ func (c *EC2) DeleteSecurityGroupRequest(input *DeleteSecurityGroupInput) (req * input = &DeleteSecurityGroupInput{} } + output = &DeleteSecurityGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteSecurityGroupOutput{} - req.Data = output return } @@ -4509,6 +4952,7 @@ func (c *EC2) DeleteSecurityGroupRequest(input *DeleteSecurityGroupInput) (req * // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteSecurityGroup for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSecurityGroup func (c *EC2) DeleteSecurityGroup(input *DeleteSecurityGroupInput) (*DeleteSecurityGroupOutput, error) { req, out := c.DeleteSecurityGroupRequest(input) err := req.Send() @@ -4541,6 +4985,7 @@ const opDeleteSnapshot = "DeleteSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSnapshot func (c *EC2) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *request.Request, output *DeleteSnapshotOutput) { op := &request.Operation{ Name: opDeleteSnapshot, @@ -4552,11 +4997,10 @@ func (c *EC2) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *request.Re input = &DeleteSnapshotInput{} } + output = &DeleteSnapshotOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteSnapshotOutput{} - req.Data = output return } @@ -4584,6 +5028,7 @@ func (c *EC2) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *request.Re // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteSnapshot for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSnapshot func (c *EC2) DeleteSnapshot(input *DeleteSnapshotInput) (*DeleteSnapshotOutput, error) { req, out := c.DeleteSnapshotRequest(input) err := req.Send() @@ -4616,6 +5061,7 @@ const opDeleteSpotDatafeedSubscription = "DeleteSpotDatafeedSubscription" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSpotDatafeedSubscription func (c *EC2) DeleteSpotDatafeedSubscriptionRequest(input *DeleteSpotDatafeedSubscriptionInput) (req *request.Request, output *DeleteSpotDatafeedSubscriptionOutput) { op := &request.Operation{ Name: opDeleteSpotDatafeedSubscription, @@ -4627,11 +5073,10 @@ func (c *EC2) DeleteSpotDatafeedSubscriptionRequest(input *DeleteSpotDatafeedSub input = &DeleteSpotDatafeedSubscriptionInput{} } + output = &DeleteSpotDatafeedSubscriptionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteSpotDatafeedSubscriptionOutput{} - req.Data = output return } @@ -4645,6 +5090,7 @@ func (c *EC2) DeleteSpotDatafeedSubscriptionRequest(input *DeleteSpotDatafeedSub // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteSpotDatafeedSubscription for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSpotDatafeedSubscription func (c *EC2) DeleteSpotDatafeedSubscription(input *DeleteSpotDatafeedSubscriptionInput) (*DeleteSpotDatafeedSubscriptionOutput, error) { req, out := c.DeleteSpotDatafeedSubscriptionRequest(input) err := req.Send() @@ -4677,6 +5123,7 @@ const opDeleteSubnet = "DeleteSubnet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSubnet func (c *EC2) DeleteSubnetRequest(input *DeleteSubnetInput) (req *request.Request, output *DeleteSubnetOutput) { op := &request.Operation{ Name: opDeleteSubnet, @@ -4688,11 +5135,10 @@ func (c *EC2) DeleteSubnetRequest(input *DeleteSubnetInput) (req *request.Reques input = &DeleteSubnetInput{} } + output = &DeleteSubnetOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteSubnetOutput{} - req.Data = output return } @@ -4707,6 +5153,7 @@ func (c *EC2) DeleteSubnetRequest(input *DeleteSubnetInput) (req *request.Reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteSubnet for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSubnet func (c *EC2) DeleteSubnet(input *DeleteSubnetInput) (*DeleteSubnetOutput, error) { req, out := c.DeleteSubnetRequest(input) err := req.Send() @@ -4739,6 +5186,7 @@ const opDeleteTags = "DeleteTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTags func (c *EC2) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) { op := &request.Operation{ Name: opDeleteTags, @@ -4750,11 +5198,10 @@ func (c *EC2) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, o input = &DeleteTagsInput{} } + output = &DeleteTagsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteTagsOutput{} - req.Data = output return } @@ -4772,6 +5219,7 @@ func (c *EC2) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, o // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteTags for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTags func (c *EC2) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) err := req.Send() @@ -4804,6 +5252,7 @@ const opDeleteVolume = "DeleteVolume" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVolume func (c *EC2) DeleteVolumeRequest(input *DeleteVolumeInput) (req *request.Request, output *DeleteVolumeOutput) { op := &request.Operation{ Name: opDeleteVolume, @@ -4815,11 +5264,10 @@ func (c *EC2) DeleteVolumeRequest(input *DeleteVolumeInput) (req *request.Reques input = &DeleteVolumeInput{} } + output = &DeleteVolumeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteVolumeOutput{} - req.Data = output return } @@ -4828,9 +5276,9 @@ func (c *EC2) DeleteVolumeRequest(input *DeleteVolumeInput) (req *request.Reques // Deletes the specified EBS volume. The volume must be in the available state // (not attached to an instance). // -// The volume may remain in the deleting state for several minutes. +// The volume may remain in the deleting state for several minutes. // -// For more information, see Deleting an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-volume.html) +// For more information, see Deleting an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-volume.html) // in the Amazon Elastic Compute Cloud User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -4839,6 +5287,7 @@ func (c *EC2) DeleteVolumeRequest(input *DeleteVolumeInput) (req *request.Reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteVolume for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVolume func (c *EC2) DeleteVolume(input *DeleteVolumeInput) (*DeleteVolumeOutput, error) { req, out := c.DeleteVolumeRequest(input) err := req.Send() @@ -4871,6 +5320,7 @@ const opDeleteVpc = "DeleteVpc" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpc func (c *EC2) DeleteVpcRequest(input *DeleteVpcInput) (req *request.Request, output *DeleteVpcOutput) { op := &request.Operation{ Name: opDeleteVpc, @@ -4882,11 +5332,10 @@ func (c *EC2) DeleteVpcRequest(input *DeleteVpcInput) (req *request.Request, out input = &DeleteVpcInput{} } + output = &DeleteVpcOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteVpcOutput{} - req.Data = output return } @@ -4904,6 +5353,7 @@ func (c *EC2) DeleteVpcRequest(input *DeleteVpcInput) (req *request.Request, out // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteVpc for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpc func (c *EC2) DeleteVpc(input *DeleteVpcInput) (*DeleteVpcOutput, error) { req, out := c.DeleteVpcRequest(input) err := req.Send() @@ -4936,6 +5386,7 @@ const opDeleteVpcEndpoints = "DeleteVpcEndpoints" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpoints func (c *EC2) DeleteVpcEndpointsRequest(input *DeleteVpcEndpointsInput) (req *request.Request, output *DeleteVpcEndpointsOutput) { op := &request.Operation{ Name: opDeleteVpcEndpoints, @@ -4947,9 +5398,8 @@ func (c *EC2) DeleteVpcEndpointsRequest(input *DeleteVpcEndpointsInput) (req *re input = &DeleteVpcEndpointsInput{} } - req = c.newRequest(op, input, output) output = &DeleteVpcEndpointsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4964,6 +5414,7 @@ func (c *EC2) DeleteVpcEndpointsRequest(input *DeleteVpcEndpointsInput) (req *re // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteVpcEndpoints for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpoints func (c *EC2) DeleteVpcEndpoints(input *DeleteVpcEndpointsInput) (*DeleteVpcEndpointsOutput, error) { req, out := c.DeleteVpcEndpointsRequest(input) err := req.Send() @@ -4996,6 +5447,7 @@ const opDeleteVpcPeeringConnection = "DeleteVpcPeeringConnection" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcPeeringConnection func (c *EC2) DeleteVpcPeeringConnectionRequest(input *DeleteVpcPeeringConnectionInput) (req *request.Request, output *DeleteVpcPeeringConnectionOutput) { op := &request.Operation{ Name: opDeleteVpcPeeringConnection, @@ -5007,9 +5459,8 @@ func (c *EC2) DeleteVpcPeeringConnectionRequest(input *DeleteVpcPeeringConnectio input = &DeleteVpcPeeringConnectionInput{} } - req = c.newRequest(op, input, output) output = &DeleteVpcPeeringConnectionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5026,6 +5477,7 @@ func (c *EC2) DeleteVpcPeeringConnectionRequest(input *DeleteVpcPeeringConnectio // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteVpcPeeringConnection for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcPeeringConnection func (c *EC2) DeleteVpcPeeringConnection(input *DeleteVpcPeeringConnectionInput) (*DeleteVpcPeeringConnectionOutput, error) { req, out := c.DeleteVpcPeeringConnectionRequest(input) err := req.Send() @@ -5058,6 +5510,7 @@ const opDeleteVpnConnection = "DeleteVpnConnection" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnection func (c *EC2) DeleteVpnConnectionRequest(input *DeleteVpnConnectionInput) (req *request.Request, output *DeleteVpnConnectionOutput) { op := &request.Operation{ Name: opDeleteVpnConnection, @@ -5069,11 +5522,10 @@ func (c *EC2) DeleteVpnConnectionRequest(input *DeleteVpnConnectionInput) (req * input = &DeleteVpnConnectionInput{} } + output = &DeleteVpnConnectionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteVpnConnectionOutput{} - req.Data = output return } @@ -5096,6 +5548,7 @@ func (c *EC2) DeleteVpnConnectionRequest(input *DeleteVpnConnectionInput) (req * // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteVpnConnection for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnection func (c *EC2) DeleteVpnConnection(input *DeleteVpnConnectionInput) (*DeleteVpnConnectionOutput, error) { req, out := c.DeleteVpnConnectionRequest(input) err := req.Send() @@ -5128,6 +5581,7 @@ const opDeleteVpnConnectionRoute = "DeleteVpnConnectionRoute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionRoute func (c *EC2) DeleteVpnConnectionRouteRequest(input *DeleteVpnConnectionRouteInput) (req *request.Request, output *DeleteVpnConnectionRouteOutput) { op := &request.Operation{ Name: opDeleteVpnConnectionRoute, @@ -5139,11 +5593,10 @@ func (c *EC2) DeleteVpnConnectionRouteRequest(input *DeleteVpnConnectionRouteInp input = &DeleteVpnConnectionRouteInput{} } + output = &DeleteVpnConnectionRouteOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteVpnConnectionRouteOutput{} - req.Data = output return } @@ -5160,6 +5613,7 @@ func (c *EC2) DeleteVpnConnectionRouteRequest(input *DeleteVpnConnectionRouteInp // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteVpnConnectionRoute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionRoute func (c *EC2) DeleteVpnConnectionRoute(input *DeleteVpnConnectionRouteInput) (*DeleteVpnConnectionRouteOutput, error) { req, out := c.DeleteVpnConnectionRouteRequest(input) err := req.Send() @@ -5192,6 +5646,7 @@ const opDeleteVpnGateway = "DeleteVpnGateway" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnGateway func (c *EC2) DeleteVpnGatewayRequest(input *DeleteVpnGatewayInput) (req *request.Request, output *DeleteVpnGatewayOutput) { op := &request.Operation{ Name: opDeleteVpnGateway, @@ -5203,11 +5658,10 @@ func (c *EC2) DeleteVpnGatewayRequest(input *DeleteVpnGatewayInput) (req *reques input = &DeleteVpnGatewayInput{} } + output = &DeleteVpnGatewayOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteVpnGatewayOutput{} - req.Data = output return } @@ -5225,6 +5679,7 @@ func (c *EC2) DeleteVpnGatewayRequest(input *DeleteVpnGatewayInput) (req *reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeleteVpnGateway for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnGateway func (c *EC2) DeleteVpnGateway(input *DeleteVpnGatewayInput) (*DeleteVpnGatewayOutput, error) { req, out := c.DeleteVpnGatewayRequest(input) err := req.Send() @@ -5257,6 +5712,7 @@ const opDeregisterImage = "DeregisterImage" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterImage func (c *EC2) DeregisterImageRequest(input *DeregisterImageInput) (req *request.Request, output *DeregisterImageOutput) { op := &request.Operation{ Name: opDeregisterImage, @@ -5268,11 +5724,10 @@ func (c *EC2) DeregisterImageRequest(input *DeregisterImageInput) (req *request. input = &DeregisterImageInput{} } + output = &DeregisterImageOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeregisterImageOutput{} - req.Data = output return } @@ -5289,6 +5744,7 @@ func (c *EC2) DeregisterImageRequest(input *DeregisterImageInput) (req *request. // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DeregisterImage for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterImage func (c *EC2) DeregisterImage(input *DeregisterImageInput) (*DeregisterImageOutput, error) { req, out := c.DeregisterImageRequest(input) err := req.Send() @@ -5321,6 +5777,7 @@ const opDescribeAccountAttributes = "DescribeAccountAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAccountAttributes func (c *EC2) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) (req *request.Request, output *DescribeAccountAttributesOutput) { op := &request.Operation{ Name: opDescribeAccountAttributes, @@ -5332,9 +5789,8 @@ func (c *EC2) DescribeAccountAttributesRequest(input *DescribeAccountAttributesI input = &DescribeAccountAttributesInput{} } - req = c.newRequest(op, input, output) output = &DescribeAccountAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5343,22 +5799,22 @@ func (c *EC2) DescribeAccountAttributesRequest(input *DescribeAccountAttributesI // Describes attributes of your AWS account. The following are the supported // account attributes: // -// supported-platforms: Indicates whether your account can launch instances -// into EC2-Classic and EC2-VPC, or only into EC2-VPC. +// * supported-platforms: Indicates whether your account can launch instances +// into EC2-Classic and EC2-VPC, or only into EC2-VPC. // -// default-vpc: The ID of the default VPC for your account, or none. +// * default-vpc: The ID of the default VPC for your account, or none. // -// max-instances: The maximum number of On-Demand instances that you can -// run. +// * max-instances: The maximum number of On-Demand instances that you can +// run. // -// vpc-max-security-groups-per-interface: The maximum number of security -// groups that you can assign to a network interface. +// * vpc-max-security-groups-per-interface: The maximum number of security +// groups that you can assign to a network interface. // -// max-elastic-ips: The maximum number of Elastic IP addresses that you -// can allocate for use with EC2-Classic. +// * max-elastic-ips: The maximum number of Elastic IP addresses that you +// can allocate for use with EC2-Classic. // -// vpc-max-elastic-ips: The maximum number of Elastic IP addresses that -// you can allocate for use with EC2-VPC. +// * vpc-max-elastic-ips: The maximum number of Elastic IP addresses that +// you can allocate for use with EC2-VPC. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -5366,6 +5822,7 @@ func (c *EC2) DescribeAccountAttributesRequest(input *DescribeAccountAttributesI // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeAccountAttributes for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAccountAttributes func (c *EC2) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) { req, out := c.DescribeAccountAttributesRequest(input) err := req.Send() @@ -5398,6 +5855,7 @@ const opDescribeAddresses = "DescribeAddresses" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAddresses func (c *EC2) DescribeAddressesRequest(input *DescribeAddressesInput) (req *request.Request, output *DescribeAddressesOutput) { op := &request.Operation{ Name: opDescribeAddresses, @@ -5409,9 +5867,8 @@ func (c *EC2) DescribeAddressesRequest(input *DescribeAddressesInput) (req *requ input = &DescribeAddressesInput{} } - req = c.newRequest(op, input, output) output = &DescribeAddressesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5429,6 +5886,7 @@ func (c *EC2) DescribeAddressesRequest(input *DescribeAddressesInput) (req *requ // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeAddresses for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAddresses func (c *EC2) DescribeAddresses(input *DescribeAddressesInput) (*DescribeAddressesOutput, error) { req, out := c.DescribeAddressesRequest(input) err := req.Send() @@ -5461,6 +5919,7 @@ const opDescribeAvailabilityZones = "DescribeAvailabilityZones" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAvailabilityZones func (c *EC2) DescribeAvailabilityZonesRequest(input *DescribeAvailabilityZonesInput) (req *request.Request, output *DescribeAvailabilityZonesOutput) { op := &request.Operation{ Name: opDescribeAvailabilityZones, @@ -5472,9 +5931,8 @@ func (c *EC2) DescribeAvailabilityZonesRequest(input *DescribeAvailabilityZonesI input = &DescribeAvailabilityZonesInput{} } - req = c.newRequest(op, input, output) output = &DescribeAvailabilityZonesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5494,6 +5952,7 @@ func (c *EC2) DescribeAvailabilityZonesRequest(input *DescribeAvailabilityZonesI // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeAvailabilityZones for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAvailabilityZones func (c *EC2) DescribeAvailabilityZones(input *DescribeAvailabilityZonesInput) (*DescribeAvailabilityZonesOutput, error) { req, out := c.DescribeAvailabilityZonesRequest(input) err := req.Send() @@ -5526,6 +5985,7 @@ const opDescribeBundleTasks = "DescribeBundleTasks" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeBundleTasks func (c *EC2) DescribeBundleTasksRequest(input *DescribeBundleTasksInput) (req *request.Request, output *DescribeBundleTasksOutput) { op := &request.Operation{ Name: opDescribeBundleTasks, @@ -5537,9 +5997,8 @@ func (c *EC2) DescribeBundleTasksRequest(input *DescribeBundleTasksInput) (req * input = &DescribeBundleTasksInput{} } - req = c.newRequest(op, input, output) output = &DescribeBundleTasksOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5547,7 +6006,7 @@ func (c *EC2) DescribeBundleTasksRequest(input *DescribeBundleTasksInput) (req * // // Describes one or more of your bundling tasks. // -// Completed bundle tasks are listed for only a limited time. If your bundle +// Completed bundle tasks are listed for only a limited time. If your bundle // task is no longer in the list, you can still register an AMI from it. Just // use RegisterImage with the Amazon S3 bucket name and image manifest name // you provided to the bundle task. @@ -5558,6 +6017,7 @@ func (c *EC2) DescribeBundleTasksRequest(input *DescribeBundleTasksInput) (req * // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeBundleTasks for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeBundleTasks func (c *EC2) DescribeBundleTasks(input *DescribeBundleTasksInput) (*DescribeBundleTasksOutput, error) { req, out := c.DescribeBundleTasksRequest(input) err := req.Send() @@ -5590,6 +6050,7 @@ const opDescribeClassicLinkInstances = "DescribeClassicLinkInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClassicLinkInstances func (c *EC2) DescribeClassicLinkInstancesRequest(input *DescribeClassicLinkInstancesInput) (req *request.Request, output *DescribeClassicLinkInstancesOutput) { op := &request.Operation{ Name: opDescribeClassicLinkInstances, @@ -5601,9 +6062,8 @@ func (c *EC2) DescribeClassicLinkInstancesRequest(input *DescribeClassicLinkInst input = &DescribeClassicLinkInstancesInput{} } - req = c.newRequest(op, input, output) output = &DescribeClassicLinkInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5620,6 +6080,7 @@ func (c *EC2) DescribeClassicLinkInstancesRequest(input *DescribeClassicLinkInst // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeClassicLinkInstances for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClassicLinkInstances func (c *EC2) DescribeClassicLinkInstances(input *DescribeClassicLinkInstancesInput) (*DescribeClassicLinkInstancesOutput, error) { req, out := c.DescribeClassicLinkInstancesRequest(input) err := req.Send() @@ -5652,6 +6113,7 @@ const opDescribeConversionTasks = "DescribeConversionTasks" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeConversionTasks func (c *EC2) DescribeConversionTasksRequest(input *DescribeConversionTasksInput) (req *request.Request, output *DescribeConversionTasksOutput) { op := &request.Operation{ Name: opDescribeConversionTasks, @@ -5663,9 +6125,8 @@ func (c *EC2) DescribeConversionTasksRequest(input *DescribeConversionTasksInput input = &DescribeConversionTasksInput{} } - req = c.newRequest(op, input, output) output = &DescribeConversionTasksOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5683,6 +6144,7 @@ func (c *EC2) DescribeConversionTasksRequest(input *DescribeConversionTasksInput // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeConversionTasks for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeConversionTasks func (c *EC2) DescribeConversionTasks(input *DescribeConversionTasksInput) (*DescribeConversionTasksOutput, error) { req, out := c.DescribeConversionTasksRequest(input) err := req.Send() @@ -5715,6 +6177,7 @@ const opDescribeCustomerGateways = "DescribeCustomerGateways" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCustomerGateways func (c *EC2) DescribeCustomerGatewaysRequest(input *DescribeCustomerGatewaysInput) (req *request.Request, output *DescribeCustomerGatewaysOutput) { op := &request.Operation{ Name: opDescribeCustomerGateways, @@ -5726,9 +6189,8 @@ func (c *EC2) DescribeCustomerGatewaysRequest(input *DescribeCustomerGatewaysInp input = &DescribeCustomerGatewaysInput{} } - req = c.newRequest(op, input, output) output = &DescribeCustomerGatewaysOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5736,8 +6198,8 @@ func (c *EC2) DescribeCustomerGatewaysRequest(input *DescribeCustomerGatewaysInp // // Describes one or more of your VPN customer gateways. // -// For more information about VPN customer gateways, see Adding a Hardware -// Virtual Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) +// For more information about VPN customer gateways, see Adding a Hardware Virtual +// Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) // in the Amazon Virtual Private Cloud User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -5746,6 +6208,7 @@ func (c *EC2) DescribeCustomerGatewaysRequest(input *DescribeCustomerGatewaysInp // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeCustomerGateways for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCustomerGateways func (c *EC2) DescribeCustomerGateways(input *DescribeCustomerGatewaysInput) (*DescribeCustomerGatewaysOutput, error) { req, out := c.DescribeCustomerGatewaysRequest(input) err := req.Send() @@ -5778,6 +6241,7 @@ const opDescribeDhcpOptions = "DescribeDhcpOptions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeDhcpOptions func (c *EC2) DescribeDhcpOptionsRequest(input *DescribeDhcpOptionsInput) (req *request.Request, output *DescribeDhcpOptionsOutput) { op := &request.Operation{ Name: opDescribeDhcpOptions, @@ -5789,9 +6253,8 @@ func (c *EC2) DescribeDhcpOptionsRequest(input *DescribeDhcpOptionsInput) (req * input = &DescribeDhcpOptionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeDhcpOptionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5808,12 +6271,73 @@ func (c *EC2) DescribeDhcpOptionsRequest(input *DescribeDhcpOptionsInput) (req * // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeDhcpOptions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeDhcpOptions func (c *EC2) DescribeDhcpOptions(input *DescribeDhcpOptionsInput) (*DescribeDhcpOptionsOutput, error) { req, out := c.DescribeDhcpOptionsRequest(input) err := req.Send() return out, err } +const opDescribeEgressOnlyInternetGateways = "DescribeEgressOnlyInternetGateways" + +// DescribeEgressOnlyInternetGatewaysRequest generates a "aws/request.Request" representing the +// client's request for the DescribeEgressOnlyInternetGateways operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeEgressOnlyInternetGateways for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeEgressOnlyInternetGateways method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeEgressOnlyInternetGatewaysRequest method. +// req, resp := client.DescribeEgressOnlyInternetGatewaysRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeEgressOnlyInternetGateways +func (c *EC2) DescribeEgressOnlyInternetGatewaysRequest(input *DescribeEgressOnlyInternetGatewaysInput) (req *request.Request, output *DescribeEgressOnlyInternetGatewaysOutput) { + op := &request.Operation{ + Name: opDescribeEgressOnlyInternetGateways, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeEgressOnlyInternetGatewaysInput{} + } + + output = &DescribeEgressOnlyInternetGatewaysOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeEgressOnlyInternetGateways API operation for Amazon Elastic Compute Cloud. +// +// Describes one or more of your egress-only Internet gateways. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeEgressOnlyInternetGateways for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeEgressOnlyInternetGateways +func (c *EC2) DescribeEgressOnlyInternetGateways(input *DescribeEgressOnlyInternetGatewaysInput) (*DescribeEgressOnlyInternetGatewaysOutput, error) { + req, out := c.DescribeEgressOnlyInternetGatewaysRequest(input) + err := req.Send() + return out, err +} + const opDescribeExportTasks = "DescribeExportTasks" // DescribeExportTasksRequest generates a "aws/request.Request" representing the @@ -5840,6 +6364,7 @@ const opDescribeExportTasks = "DescribeExportTasks" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportTasks func (c *EC2) DescribeExportTasksRequest(input *DescribeExportTasksInput) (req *request.Request, output *DescribeExportTasksOutput) { op := &request.Operation{ Name: opDescribeExportTasks, @@ -5851,9 +6376,8 @@ func (c *EC2) DescribeExportTasksRequest(input *DescribeExportTasksInput) (req * input = &DescribeExportTasksInput{} } - req = c.newRequest(op, input, output) output = &DescribeExportTasksOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5867,6 +6391,7 @@ func (c *EC2) DescribeExportTasksRequest(input *DescribeExportTasksInput) (req * // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeExportTasks for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportTasks func (c *EC2) DescribeExportTasks(input *DescribeExportTasksInput) (*DescribeExportTasksOutput, error) { req, out := c.DescribeExportTasksRequest(input) err := req.Send() @@ -5899,6 +6424,7 @@ const opDescribeFlowLogs = "DescribeFlowLogs" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFlowLogs func (c *EC2) DescribeFlowLogsRequest(input *DescribeFlowLogsInput) (req *request.Request, output *DescribeFlowLogsOutput) { op := &request.Operation{ Name: opDescribeFlowLogs, @@ -5910,9 +6436,8 @@ func (c *EC2) DescribeFlowLogsRequest(input *DescribeFlowLogsInput) (req *reques input = &DescribeFlowLogsInput{} } - req = c.newRequest(op, input, output) output = &DescribeFlowLogsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5928,6 +6453,7 @@ func (c *EC2) DescribeFlowLogsRequest(input *DescribeFlowLogsInput) (req *reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeFlowLogs for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFlowLogs func (c *EC2) DescribeFlowLogs(input *DescribeFlowLogsInput) (*DescribeFlowLogsOutput, error) { req, out := c.DescribeFlowLogsRequest(input) err := req.Send() @@ -5960,6 +6486,7 @@ const opDescribeHostReservationOfferings = "DescribeHostReservationOfferings" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationOfferings func (c *EC2) DescribeHostReservationOfferingsRequest(input *DescribeHostReservationOfferingsInput) (req *request.Request, output *DescribeHostReservationOfferingsOutput) { op := &request.Operation{ Name: opDescribeHostReservationOfferings, @@ -5971,9 +6498,8 @@ func (c *EC2) DescribeHostReservationOfferingsRequest(input *DescribeHostReserva input = &DescribeHostReservationOfferingsInput{} } - req = c.newRequest(op, input, output) output = &DescribeHostReservationOfferingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5995,6 +6521,7 @@ func (c *EC2) DescribeHostReservationOfferingsRequest(input *DescribeHostReserva // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeHostReservationOfferings for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationOfferings func (c *EC2) DescribeHostReservationOfferings(input *DescribeHostReservationOfferingsInput) (*DescribeHostReservationOfferingsOutput, error) { req, out := c.DescribeHostReservationOfferingsRequest(input) err := req.Send() @@ -6027,6 +6554,7 @@ const opDescribeHostReservations = "DescribeHostReservations" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservations func (c *EC2) DescribeHostReservationsRequest(input *DescribeHostReservationsInput) (req *request.Request, output *DescribeHostReservationsOutput) { op := &request.Operation{ Name: opDescribeHostReservations, @@ -6038,9 +6566,8 @@ func (c *EC2) DescribeHostReservationsRequest(input *DescribeHostReservationsInp input = &DescribeHostReservationsInput{} } - req = c.newRequest(op, input, output) output = &DescribeHostReservationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6055,6 +6582,7 @@ func (c *EC2) DescribeHostReservationsRequest(input *DescribeHostReservationsInp // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeHostReservations for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservations func (c *EC2) DescribeHostReservations(input *DescribeHostReservationsInput) (*DescribeHostReservationsOutput, error) { req, out := c.DescribeHostReservationsRequest(input) err := req.Send() @@ -6087,6 +6615,7 @@ const opDescribeHosts = "DescribeHosts" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHosts func (c *EC2) DescribeHostsRequest(input *DescribeHostsInput) (req *request.Request, output *DescribeHostsOutput) { op := &request.Operation{ Name: opDescribeHosts, @@ -6098,9 +6627,8 @@ func (c *EC2) DescribeHostsRequest(input *DescribeHostsInput) (req *request.Requ input = &DescribeHostsInput{} } - req = c.newRequest(op, input, output) output = &DescribeHostsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6118,12 +6646,73 @@ func (c *EC2) DescribeHostsRequest(input *DescribeHostsInput) (req *request.Requ // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeHosts for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHosts func (c *EC2) DescribeHosts(input *DescribeHostsInput) (*DescribeHostsOutput, error) { req, out := c.DescribeHostsRequest(input) err := req.Send() return out, err } +const opDescribeIamInstanceProfileAssociations = "DescribeIamInstanceProfileAssociations" + +// DescribeIamInstanceProfileAssociationsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeIamInstanceProfileAssociations operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeIamInstanceProfileAssociations for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeIamInstanceProfileAssociations method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeIamInstanceProfileAssociationsRequest method. +// req, resp := client.DescribeIamInstanceProfileAssociationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIamInstanceProfileAssociations +func (c *EC2) DescribeIamInstanceProfileAssociationsRequest(input *DescribeIamInstanceProfileAssociationsInput) (req *request.Request, output *DescribeIamInstanceProfileAssociationsOutput) { + op := &request.Operation{ + Name: opDescribeIamInstanceProfileAssociations, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeIamInstanceProfileAssociationsInput{} + } + + output = &DescribeIamInstanceProfileAssociationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeIamInstanceProfileAssociations API operation for Amazon Elastic Compute Cloud. +// +// Describes your IAM instance profile associations. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeIamInstanceProfileAssociations for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIamInstanceProfileAssociations +func (c *EC2) DescribeIamInstanceProfileAssociations(input *DescribeIamInstanceProfileAssociationsInput) (*DescribeIamInstanceProfileAssociationsOutput, error) { + req, out := c.DescribeIamInstanceProfileAssociationsRequest(input) + err := req.Send() + return out, err +} + const opDescribeIdFormat = "DescribeIdFormat" // DescribeIdFormatRequest generates a "aws/request.Request" representing the @@ -6150,6 +6739,7 @@ const opDescribeIdFormat = "DescribeIdFormat" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdFormat func (c *EC2) DescribeIdFormatRequest(input *DescribeIdFormatInput) (req *request.Request, output *DescribeIdFormatOutput) { op := &request.Operation{ Name: opDescribeIdFormat, @@ -6161,9 +6751,8 @@ func (c *EC2) DescribeIdFormatRequest(input *DescribeIdFormatInput) (req *reques input = &DescribeIdFormatInput{} } - req = c.newRequest(op, input, output) output = &DescribeIdFormatOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6174,16 +6763,15 @@ func (c *EC2) DescribeIdFormatRequest(input *DescribeIdFormatInput) (req *reques // request only returns information about resource types whose ID formats can // be modified; it does not return information about other resource types. // -// The following resource types support longer IDs: instance | reservation -// | snapshot | volume. +// The following resource types support longer IDs: instance | reservation | +// snapshot | volume. // -// These settings apply to the IAM user who makes the request; they do not -// apply to the entire AWS account. By default, an IAM user defaults to the -// same settings as the root user, unless they explicitly override the settings -// by running the ModifyIdFormat command. Resources created with longer IDs -// are visible to all IAM users, regardless of these settings and provided that -// they have permission to use the relevant Describe command for the resource -// type. +// These settings apply to the IAM user who makes the request; they do not apply +// to the entire AWS account. By default, an IAM user defaults to the same settings +// as the root user, unless they explicitly override the settings by running +// the ModifyIdFormat command. Resources created with longer IDs are visible +// to all IAM users, regardless of these settings and provided that they have +// permission to use the relevant Describe command for the resource type. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -6191,6 +6779,7 @@ func (c *EC2) DescribeIdFormatRequest(input *DescribeIdFormatInput) (req *reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeIdFormat for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdFormat func (c *EC2) DescribeIdFormat(input *DescribeIdFormatInput) (*DescribeIdFormatOutput, error) { req, out := c.DescribeIdFormatRequest(input) err := req.Send() @@ -6223,6 +6812,7 @@ const opDescribeIdentityIdFormat = "DescribeIdentityIdFormat" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdentityIdFormat func (c *EC2) DescribeIdentityIdFormatRequest(input *DescribeIdentityIdFormatInput) (req *request.Request, output *DescribeIdentityIdFormatOutput) { op := &request.Operation{ Name: opDescribeIdentityIdFormat, @@ -6234,9 +6824,8 @@ func (c *EC2) DescribeIdentityIdFormatRequest(input *DescribeIdentityIdFormatInp input = &DescribeIdentityIdFormatInput{} } - req = c.newRequest(op, input, output) output = &DescribeIdentityIdFormatOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6249,11 +6838,11 @@ func (c *EC2) DescribeIdentityIdFormatRequest(input *DescribeIdentityIdFormatInp // other resource types. For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html) // in the Amazon Elastic Compute Cloud User Guide. // -// The following resource types support longer IDs: instance | reservation -// | snapshot | volume. +// The following resource types support longer IDs: instance | reservation | +// snapshot | volume. // -// These settings apply to the principal specified in the request. They do -// not apply to the principal that makes the request. +// These settings apply to the principal specified in the request. They do not +// apply to the principal that makes the request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -6261,6 +6850,7 @@ func (c *EC2) DescribeIdentityIdFormatRequest(input *DescribeIdentityIdFormatInp // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeIdentityIdFormat for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdentityIdFormat func (c *EC2) DescribeIdentityIdFormat(input *DescribeIdentityIdFormatInput) (*DescribeIdentityIdFormatOutput, error) { req, out := c.DescribeIdentityIdFormatRequest(input) err := req.Send() @@ -6293,6 +6883,7 @@ const opDescribeImageAttribute = "DescribeImageAttribute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageAttribute func (c *EC2) DescribeImageAttributeRequest(input *DescribeImageAttributeInput) (req *request.Request, output *DescribeImageAttributeOutput) { op := &request.Operation{ Name: opDescribeImageAttribute, @@ -6304,9 +6895,8 @@ func (c *EC2) DescribeImageAttributeRequest(input *DescribeImageAttributeInput) input = &DescribeImageAttributeInput{} } - req = c.newRequest(op, input, output) output = &DescribeImageAttributeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6321,6 +6911,7 @@ func (c *EC2) DescribeImageAttributeRequest(input *DescribeImageAttributeInput) // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeImageAttribute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageAttribute func (c *EC2) DescribeImageAttribute(input *DescribeImageAttributeInput) (*DescribeImageAttributeOutput, error) { req, out := c.DescribeImageAttributeRequest(input) err := req.Send() @@ -6353,6 +6944,7 @@ const opDescribeImages = "DescribeImages" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImages func (c *EC2) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Request, output *DescribeImagesOutput) { op := &request.Operation{ Name: opDescribeImages, @@ -6364,9 +6956,8 @@ func (c *EC2) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Re input = &DescribeImagesInput{} } - req = c.newRequest(op, input, output) output = &DescribeImagesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6377,7 +6968,7 @@ func (c *EC2) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Re // and private images owned by other AWS accounts but for which you have explicit // launch permissions. // -// Deregistered images are included in the returned results for an unspecified +// Deregistered images are included in the returned results for an unspecified // interval after deregistration. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -6386,6 +6977,7 @@ func (c *EC2) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Re // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeImages for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImages func (c *EC2) DescribeImages(input *DescribeImagesInput) (*DescribeImagesOutput, error) { req, out := c.DescribeImagesRequest(input) err := req.Send() @@ -6418,6 +7010,7 @@ const opDescribeImportImageTasks = "DescribeImportImageTasks" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportImageTasks func (c *EC2) DescribeImportImageTasksRequest(input *DescribeImportImageTasksInput) (req *request.Request, output *DescribeImportImageTasksOutput) { op := &request.Operation{ Name: opDescribeImportImageTasks, @@ -6429,9 +7022,8 @@ func (c *EC2) DescribeImportImageTasksRequest(input *DescribeImportImageTasksInp input = &DescribeImportImageTasksInput{} } - req = c.newRequest(op, input, output) output = &DescribeImportImageTasksOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6446,6 +7038,7 @@ func (c *EC2) DescribeImportImageTasksRequest(input *DescribeImportImageTasksInp // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeImportImageTasks for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportImageTasks func (c *EC2) DescribeImportImageTasks(input *DescribeImportImageTasksInput) (*DescribeImportImageTasksOutput, error) { req, out := c.DescribeImportImageTasksRequest(input) err := req.Send() @@ -6478,6 +7071,7 @@ const opDescribeImportSnapshotTasks = "DescribeImportSnapshotTasks" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportSnapshotTasks func (c *EC2) DescribeImportSnapshotTasksRequest(input *DescribeImportSnapshotTasksInput) (req *request.Request, output *DescribeImportSnapshotTasksOutput) { op := &request.Operation{ Name: opDescribeImportSnapshotTasks, @@ -6489,9 +7083,8 @@ func (c *EC2) DescribeImportSnapshotTasksRequest(input *DescribeImportSnapshotTa input = &DescribeImportSnapshotTasksInput{} } - req = c.newRequest(op, input, output) output = &DescribeImportSnapshotTasksOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6505,6 +7098,7 @@ func (c *EC2) DescribeImportSnapshotTasksRequest(input *DescribeImportSnapshotTa // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeImportSnapshotTasks for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportSnapshotTasks func (c *EC2) DescribeImportSnapshotTasks(input *DescribeImportSnapshotTasksInput) (*DescribeImportSnapshotTasksOutput, error) { req, out := c.DescribeImportSnapshotTasksRequest(input) err := req.Send() @@ -6537,6 +7131,7 @@ const opDescribeInstanceAttribute = "DescribeInstanceAttribute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceAttribute func (c *EC2) DescribeInstanceAttributeRequest(input *DescribeInstanceAttributeInput) (req *request.Request, output *DescribeInstanceAttributeOutput) { op := &request.Operation{ Name: opDescribeInstanceAttribute, @@ -6548,9 +7143,8 @@ func (c *EC2) DescribeInstanceAttributeRequest(input *DescribeInstanceAttributeI input = &DescribeInstanceAttributeInput{} } - req = c.newRequest(op, input, output) output = &DescribeInstanceAttributeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6568,6 +7162,7 @@ func (c *EC2) DescribeInstanceAttributeRequest(input *DescribeInstanceAttributeI // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeInstanceAttribute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceAttribute func (c *EC2) DescribeInstanceAttribute(input *DescribeInstanceAttributeInput) (*DescribeInstanceAttributeOutput, error) { req, out := c.DescribeInstanceAttributeRequest(input) err := req.Send() @@ -6600,6 +7195,7 @@ const opDescribeInstanceStatus = "DescribeInstanceStatus" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceStatus func (c *EC2) DescribeInstanceStatusRequest(input *DescribeInstanceStatusInput) (req *request.Request, output *DescribeInstanceStatusOutput) { op := &request.Operation{ Name: opDescribeInstanceStatus, @@ -6617,9 +7213,8 @@ func (c *EC2) DescribeInstanceStatusRequest(input *DescribeInstanceStatusInput) input = &DescribeInstanceStatusInput{} } - req = c.newRequest(op, input, output) output = &DescribeInstanceStatusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6630,22 +7225,22 @@ func (c *EC2) DescribeInstanceStatusRequest(input *DescribeInstanceStatusInput) // // Instance status includes the following components: // -// Status checks - Amazon EC2 performs status checks on running EC2 instances -// to identify hardware and software issues. For more information, see Status -// Checks for Your Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-system-instance-status-check.html) -// and Troubleshooting Instances with Failed Status Checks (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html) -// in the Amazon Elastic Compute Cloud User Guide. +// * Status checks - Amazon EC2 performs status checks on running EC2 instances +// to identify hardware and software issues. For more information, see Status +// Checks for Your Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-system-instance-status-check.html) +// and Troubleshooting Instances with Failed Status Checks (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html) +// in the Amazon Elastic Compute Cloud User Guide. // -// Scheduled events - Amazon EC2 can schedule events (such as reboot, stop, -// or terminate) for your instances related to hardware issues, software updates, -// or system maintenance. For more information, see Scheduled Events for Your -// Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html) -// in the Amazon Elastic Compute Cloud User Guide. +// * Scheduled events - Amazon EC2 can schedule events (such as reboot, stop, +// or terminate) for your instances related to hardware issues, software +// updates, or system maintenance. For more information, see Scheduled Events +// for Your Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html) +// in the Amazon Elastic Compute Cloud User Guide. // -// Instance state - You can manage your instances from the moment you launch -// them through their termination. For more information, see Instance Lifecycle -// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) -// in the Amazon Elastic Compute Cloud User Guide. +// * Instance state - You can manage your instances from the moment you launch +// them through their termination. For more information, see Instance Lifecycle +// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) +// in the Amazon Elastic Compute Cloud User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -6653,6 +7248,7 @@ func (c *EC2) DescribeInstanceStatusRequest(input *DescribeInstanceStatusInput) // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeInstanceStatus for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceStatus func (c *EC2) DescribeInstanceStatus(input *DescribeInstanceStatusInput) (*DescribeInstanceStatusOutput, error) { req, out := c.DescribeInstanceStatusRequest(input) err := req.Send() @@ -6710,6 +7306,7 @@ const opDescribeInstances = "DescribeInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstances func (c *EC2) DescribeInstancesRequest(input *DescribeInstancesInput) (req *request.Request, output *DescribeInstancesOutput) { op := &request.Operation{ Name: opDescribeInstances, @@ -6727,9 +7324,8 @@ func (c *EC2) DescribeInstancesRequest(input *DescribeInstancesInput) (req *requ input = &DescribeInstancesInput{} } - req = c.newRequest(op, input, output) output = &DescribeInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6737,11 +7333,11 @@ func (c *EC2) DescribeInstancesRequest(input *DescribeInstancesInput) (req *requ // // Describes one or more of your instances. // -// If you specify one or more instance IDs, Amazon EC2 returns information -// for those instances. If you do not specify instance IDs, Amazon EC2 returns -// information for all relevant instances. If you specify an instance ID that -// is not valid, an error is returned. If you specify an instance that you do -// not own, it is not included in the returned results. +// If you specify one or more instance IDs, Amazon EC2 returns information for +// those instances. If you do not specify instance IDs, Amazon EC2 returns information +// for all relevant instances. If you specify an instance ID that is not valid, +// an error is returned. If you specify an instance that you do not own, it +// is not included in the returned results. // // Recently terminated instances might appear in the returned results. This // interval is usually less than one hour. @@ -6758,6 +7354,7 @@ func (c *EC2) DescribeInstancesRequest(input *DescribeInstancesInput) (req *requ // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeInstances for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstances func (c *EC2) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error) { req, out := c.DescribeInstancesRequest(input) err := req.Send() @@ -6815,6 +7412,7 @@ const opDescribeInternetGateways = "DescribeInternetGateways" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGateways func (c *EC2) DescribeInternetGatewaysRequest(input *DescribeInternetGatewaysInput) (req *request.Request, output *DescribeInternetGatewaysOutput) { op := &request.Operation{ Name: opDescribeInternetGateways, @@ -6826,9 +7424,8 @@ func (c *EC2) DescribeInternetGatewaysRequest(input *DescribeInternetGatewaysInp input = &DescribeInternetGatewaysInput{} } - req = c.newRequest(op, input, output) output = &DescribeInternetGatewaysOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6842,6 +7439,7 @@ func (c *EC2) DescribeInternetGatewaysRequest(input *DescribeInternetGatewaysInp // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeInternetGateways for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGateways func (c *EC2) DescribeInternetGateways(input *DescribeInternetGatewaysInput) (*DescribeInternetGatewaysOutput, error) { req, out := c.DescribeInternetGatewaysRequest(input) err := req.Send() @@ -6874,6 +7472,7 @@ const opDescribeKeyPairs = "DescribeKeyPairs" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeKeyPairs func (c *EC2) DescribeKeyPairsRequest(input *DescribeKeyPairsInput) (req *request.Request, output *DescribeKeyPairsOutput) { op := &request.Operation{ Name: opDescribeKeyPairs, @@ -6885,9 +7484,8 @@ func (c *EC2) DescribeKeyPairsRequest(input *DescribeKeyPairsInput) (req *reques input = &DescribeKeyPairsInput{} } - req = c.newRequest(op, input, output) output = &DescribeKeyPairsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6904,6 +7502,7 @@ func (c *EC2) DescribeKeyPairsRequest(input *DescribeKeyPairsInput) (req *reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeKeyPairs for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeKeyPairs func (c *EC2) DescribeKeyPairs(input *DescribeKeyPairsInput) (*DescribeKeyPairsOutput, error) { req, out := c.DescribeKeyPairsRequest(input) err := req.Send() @@ -6936,6 +7535,7 @@ const opDescribeMovingAddresses = "DescribeMovingAddresses" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMovingAddresses func (c *EC2) DescribeMovingAddressesRequest(input *DescribeMovingAddressesInput) (req *request.Request, output *DescribeMovingAddressesOutput) { op := &request.Operation{ Name: opDescribeMovingAddresses, @@ -6947,9 +7547,8 @@ func (c *EC2) DescribeMovingAddressesRequest(input *DescribeMovingAddressesInput input = &DescribeMovingAddressesInput{} } - req = c.newRequest(op, input, output) output = &DescribeMovingAddressesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6965,6 +7564,7 @@ func (c *EC2) DescribeMovingAddressesRequest(input *DescribeMovingAddressesInput // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeMovingAddresses for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMovingAddresses func (c *EC2) DescribeMovingAddresses(input *DescribeMovingAddressesInput) (*DescribeMovingAddressesOutput, error) { req, out := c.DescribeMovingAddressesRequest(input) err := req.Send() @@ -6997,20 +7597,26 @@ const opDescribeNatGateways = "DescribeNatGateways" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGateways func (c *EC2) DescribeNatGatewaysRequest(input *DescribeNatGatewaysInput) (req *request.Request, output *DescribeNatGatewaysOutput) { op := &request.Operation{ Name: opDescribeNatGateways, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { input = &DescribeNatGatewaysInput{} } - req = c.newRequest(op, input, output) output = &DescribeNatGatewaysOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7024,12 +7630,38 @@ func (c *EC2) DescribeNatGatewaysRequest(input *DescribeNatGatewaysInput) (req * // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeNatGateways for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGateways func (c *EC2) DescribeNatGateways(input *DescribeNatGatewaysInput) (*DescribeNatGatewaysOutput, error) { req, out := c.DescribeNatGatewaysRequest(input) err := req.Send() return out, err } +// DescribeNatGatewaysPages iterates over the pages of a DescribeNatGateways operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeNatGateways method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a DescribeNatGateways operation. +// pageNum := 0 +// err := client.DescribeNatGatewaysPages(params, +// func(page *DescribeNatGatewaysOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *EC2) DescribeNatGatewaysPages(input *DescribeNatGatewaysInput, fn func(p *DescribeNatGatewaysOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.DescribeNatGatewaysRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*DescribeNatGatewaysOutput), lastPage) + }) +} + const opDescribeNetworkAcls = "DescribeNetworkAcls" // DescribeNetworkAclsRequest generates a "aws/request.Request" representing the @@ -7056,6 +7688,7 @@ const opDescribeNetworkAcls = "DescribeNetworkAcls" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkAcls func (c *EC2) DescribeNetworkAclsRequest(input *DescribeNetworkAclsInput) (req *request.Request, output *DescribeNetworkAclsOutput) { op := &request.Operation{ Name: opDescribeNetworkAcls, @@ -7067,9 +7700,8 @@ func (c *EC2) DescribeNetworkAclsRequest(input *DescribeNetworkAclsInput) (req * input = &DescribeNetworkAclsInput{} } - req = c.newRequest(op, input, output) output = &DescribeNetworkAclsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7086,6 +7718,7 @@ func (c *EC2) DescribeNetworkAclsRequest(input *DescribeNetworkAclsInput) (req * // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeNetworkAcls for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkAcls func (c *EC2) DescribeNetworkAcls(input *DescribeNetworkAclsInput) (*DescribeNetworkAclsOutput, error) { req, out := c.DescribeNetworkAclsRequest(input) err := req.Send() @@ -7118,6 +7751,7 @@ const opDescribeNetworkInterfaceAttribute = "DescribeNetworkInterfaceAttribute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaceAttribute func (c *EC2) DescribeNetworkInterfaceAttributeRequest(input *DescribeNetworkInterfaceAttributeInput) (req *request.Request, output *DescribeNetworkInterfaceAttributeOutput) { op := &request.Operation{ Name: opDescribeNetworkInterfaceAttribute, @@ -7129,9 +7763,8 @@ func (c *EC2) DescribeNetworkInterfaceAttributeRequest(input *DescribeNetworkInt input = &DescribeNetworkInterfaceAttributeInput{} } - req = c.newRequest(op, input, output) output = &DescribeNetworkInterfaceAttributeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7146,6 +7779,7 @@ func (c *EC2) DescribeNetworkInterfaceAttributeRequest(input *DescribeNetworkInt // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeNetworkInterfaceAttribute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaceAttribute func (c *EC2) DescribeNetworkInterfaceAttribute(input *DescribeNetworkInterfaceAttributeInput) (*DescribeNetworkInterfaceAttributeOutput, error) { req, out := c.DescribeNetworkInterfaceAttributeRequest(input) err := req.Send() @@ -7178,6 +7812,7 @@ const opDescribeNetworkInterfaces = "DescribeNetworkInterfaces" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaces func (c *EC2) DescribeNetworkInterfacesRequest(input *DescribeNetworkInterfacesInput) (req *request.Request, output *DescribeNetworkInterfacesOutput) { op := &request.Operation{ Name: opDescribeNetworkInterfaces, @@ -7189,9 +7824,8 @@ func (c *EC2) DescribeNetworkInterfacesRequest(input *DescribeNetworkInterfacesI input = &DescribeNetworkInterfacesInput{} } - req = c.newRequest(op, input, output) output = &DescribeNetworkInterfacesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7205,6 +7839,7 @@ func (c *EC2) DescribeNetworkInterfacesRequest(input *DescribeNetworkInterfacesI // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeNetworkInterfaces for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaces func (c *EC2) DescribeNetworkInterfaces(input *DescribeNetworkInterfacesInput) (*DescribeNetworkInterfacesOutput, error) { req, out := c.DescribeNetworkInterfacesRequest(input) err := req.Send() @@ -7237,6 +7872,7 @@ const opDescribePlacementGroups = "DescribePlacementGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePlacementGroups func (c *EC2) DescribePlacementGroupsRequest(input *DescribePlacementGroupsInput) (req *request.Request, output *DescribePlacementGroupsOutput) { op := &request.Operation{ Name: opDescribePlacementGroups, @@ -7248,9 +7884,8 @@ func (c *EC2) DescribePlacementGroupsRequest(input *DescribePlacementGroupsInput input = &DescribePlacementGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribePlacementGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7266,6 +7901,7 @@ func (c *EC2) DescribePlacementGroupsRequest(input *DescribePlacementGroupsInput // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribePlacementGroups for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePlacementGroups func (c *EC2) DescribePlacementGroups(input *DescribePlacementGroupsInput) (*DescribePlacementGroupsOutput, error) { req, out := c.DescribePlacementGroupsRequest(input) err := req.Send() @@ -7298,6 +7934,7 @@ const opDescribePrefixLists = "DescribePrefixLists" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrefixLists func (c *EC2) DescribePrefixListsRequest(input *DescribePrefixListsInput) (req *request.Request, output *DescribePrefixListsOutput) { op := &request.Operation{ Name: opDescribePrefixLists, @@ -7309,9 +7946,8 @@ func (c *EC2) DescribePrefixListsRequest(input *DescribePrefixListsInput) (req * input = &DescribePrefixListsInput{} } - req = c.newRequest(op, input, output) output = &DescribePrefixListsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7329,6 +7965,7 @@ func (c *EC2) DescribePrefixListsRequest(input *DescribePrefixListsInput) (req * // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribePrefixLists for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrefixLists func (c *EC2) DescribePrefixLists(input *DescribePrefixListsInput) (*DescribePrefixListsOutput, error) { req, out := c.DescribePrefixListsRequest(input) err := req.Send() @@ -7361,6 +7998,7 @@ const opDescribeRegions = "DescribeRegions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRegions func (c *EC2) DescribeRegionsRequest(input *DescribeRegionsInput) (req *request.Request, output *DescribeRegionsOutput) { op := &request.Operation{ Name: opDescribeRegions, @@ -7372,9 +8010,8 @@ func (c *EC2) DescribeRegionsRequest(input *DescribeRegionsInput) (req *request. input = &DescribeRegionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeRegionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7391,6 +8028,7 @@ func (c *EC2) DescribeRegionsRequest(input *DescribeRegionsInput) (req *request. // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeRegions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRegions func (c *EC2) DescribeRegions(input *DescribeRegionsInput) (*DescribeRegionsOutput, error) { req, out := c.DescribeRegionsRequest(input) err := req.Send() @@ -7423,6 +8061,7 @@ const opDescribeReservedInstances = "DescribeReservedInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstances func (c *EC2) DescribeReservedInstancesRequest(input *DescribeReservedInstancesInput) (req *request.Request, output *DescribeReservedInstancesOutput) { op := &request.Operation{ Name: opDescribeReservedInstances, @@ -7434,9 +8073,8 @@ func (c *EC2) DescribeReservedInstancesRequest(input *DescribeReservedInstancesI input = &DescribeReservedInstancesInput{} } - req = c.newRequest(op, input, output) output = &DescribeReservedInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7453,6 +8091,7 @@ func (c *EC2) DescribeReservedInstancesRequest(input *DescribeReservedInstancesI // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeReservedInstances for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstances func (c *EC2) DescribeReservedInstances(input *DescribeReservedInstancesInput) (*DescribeReservedInstancesOutput, error) { req, out := c.DescribeReservedInstancesRequest(input) err := req.Send() @@ -7485,6 +8124,7 @@ const opDescribeReservedInstancesListings = "DescribeReservedInstancesListings" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesListings func (c *EC2) DescribeReservedInstancesListingsRequest(input *DescribeReservedInstancesListingsInput) (req *request.Request, output *DescribeReservedInstancesListingsOutput) { op := &request.Operation{ Name: opDescribeReservedInstancesListings, @@ -7496,9 +8136,8 @@ func (c *EC2) DescribeReservedInstancesListingsRequest(input *DescribeReservedIn input = &DescribeReservedInstancesListingsInput{} } - req = c.newRequest(op, input, output) output = &DescribeReservedInstancesListingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7512,8 +8151,8 @@ func (c *EC2) DescribeReservedInstancesListingsRequest(input *DescribeReservedIn // additional capacity. Reserved Instances bought and sold through the Reserved // Instance Marketplace work like any other Reserved Instances. // -// As a seller, you choose to list some or all of your Reserved Instances, -// and you specify the upfront price to receive for them. Your Reserved Instances +// As a seller, you choose to list some or all of your Reserved Instances, and +// you specify the upfront price to receive for them. Your Reserved Instances // are then listed in the Reserved Instance Marketplace and are available for // purchase. // @@ -7533,6 +8172,7 @@ func (c *EC2) DescribeReservedInstancesListingsRequest(input *DescribeReservedIn // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeReservedInstancesListings for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesListings func (c *EC2) DescribeReservedInstancesListings(input *DescribeReservedInstancesListingsInput) (*DescribeReservedInstancesListingsOutput, error) { req, out := c.DescribeReservedInstancesListingsRequest(input) err := req.Send() @@ -7565,6 +8205,7 @@ const opDescribeReservedInstancesModifications = "DescribeReservedInstancesModif // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesModifications func (c *EC2) DescribeReservedInstancesModificationsRequest(input *DescribeReservedInstancesModificationsInput) (req *request.Request, output *DescribeReservedInstancesModificationsOutput) { op := &request.Operation{ Name: opDescribeReservedInstancesModifications, @@ -7582,9 +8223,8 @@ func (c *EC2) DescribeReservedInstancesModificationsRequest(input *DescribeReser input = &DescribeReservedInstancesModificationsInput{} } - req = c.newRequest(op, input, output) output = &DescribeReservedInstancesModificationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7604,6 +8244,7 @@ func (c *EC2) DescribeReservedInstancesModificationsRequest(input *DescribeReser // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeReservedInstancesModifications for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesModifications func (c *EC2) DescribeReservedInstancesModifications(input *DescribeReservedInstancesModificationsInput) (*DescribeReservedInstancesModificationsOutput, error) { req, out := c.DescribeReservedInstancesModificationsRequest(input) err := req.Send() @@ -7661,6 +8302,7 @@ const opDescribeReservedInstancesOfferings = "DescribeReservedInstancesOfferings // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesOfferings func (c *EC2) DescribeReservedInstancesOfferingsRequest(input *DescribeReservedInstancesOfferingsInput) (req *request.Request, output *DescribeReservedInstancesOfferingsOutput) { op := &request.Operation{ Name: opDescribeReservedInstancesOfferings, @@ -7678,9 +8320,8 @@ func (c *EC2) DescribeReservedInstancesOfferingsRequest(input *DescribeReservedI input = &DescribeReservedInstancesOfferingsInput{} } - req = c.newRequest(op, input, output) output = &DescribeReservedInstancesOfferingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7692,9 +8333,9 @@ func (c *EC2) DescribeReservedInstancesOfferingsRequest(input *DescribeReservedI // errors, and you pay a lower usage rate than the rate charged for On-Demand // instances for the actual time used. // -// If you have listed your own Reserved Instances for sale in the Reserved -// Instance Marketplace, they will be excluded from these results. This is to -// ensure that you do not purchase your own Reserved Instances. +// If you have listed your own Reserved Instances for sale in the Reserved Instance +// Marketplace, they will be excluded from these results. This is to ensure +// that you do not purchase your own Reserved Instances. // // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) // in the Amazon Elastic Compute Cloud User Guide. @@ -7705,6 +8346,7 @@ func (c *EC2) DescribeReservedInstancesOfferingsRequest(input *DescribeReservedI // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeReservedInstancesOfferings for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesOfferings func (c *EC2) DescribeReservedInstancesOfferings(input *DescribeReservedInstancesOfferingsInput) (*DescribeReservedInstancesOfferingsOutput, error) { req, out := c.DescribeReservedInstancesOfferingsRequest(input) err := req.Send() @@ -7762,6 +8404,7 @@ const opDescribeRouteTables = "DescribeRouteTables" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRouteTables func (c *EC2) DescribeRouteTablesRequest(input *DescribeRouteTablesInput) (req *request.Request, output *DescribeRouteTablesOutput) { op := &request.Operation{ Name: opDescribeRouteTables, @@ -7773,9 +8416,8 @@ func (c *EC2) DescribeRouteTablesRequest(input *DescribeRouteTablesInput) (req * input = &DescribeRouteTablesInput{} } - req = c.newRequest(op, input, output) output = &DescribeRouteTablesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7797,6 +8439,7 @@ func (c *EC2) DescribeRouteTablesRequest(input *DescribeRouteTablesInput) (req * // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeRouteTables for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRouteTables func (c *EC2) DescribeRouteTables(input *DescribeRouteTablesInput) (*DescribeRouteTablesOutput, error) { req, out := c.DescribeRouteTablesRequest(input) err := req.Send() @@ -7829,6 +8472,7 @@ const opDescribeScheduledInstanceAvailability = "DescribeScheduledInstanceAvaila // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstanceAvailability func (c *EC2) DescribeScheduledInstanceAvailabilityRequest(input *DescribeScheduledInstanceAvailabilityInput) (req *request.Request, output *DescribeScheduledInstanceAvailabilityOutput) { op := &request.Operation{ Name: opDescribeScheduledInstanceAvailability, @@ -7840,9 +8484,8 @@ func (c *EC2) DescribeScheduledInstanceAvailabilityRequest(input *DescribeSchedu input = &DescribeScheduledInstanceAvailabilityInput{} } - req = c.newRequest(op, input, output) output = &DescribeScheduledInstanceAvailabilityOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7864,6 +8507,7 @@ func (c *EC2) DescribeScheduledInstanceAvailabilityRequest(input *DescribeSchedu // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeScheduledInstanceAvailability for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstanceAvailability func (c *EC2) DescribeScheduledInstanceAvailability(input *DescribeScheduledInstanceAvailabilityInput) (*DescribeScheduledInstanceAvailabilityOutput, error) { req, out := c.DescribeScheduledInstanceAvailabilityRequest(input) err := req.Send() @@ -7896,6 +8540,7 @@ const opDescribeScheduledInstances = "DescribeScheduledInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstances func (c *EC2) DescribeScheduledInstancesRequest(input *DescribeScheduledInstancesInput) (req *request.Request, output *DescribeScheduledInstancesOutput) { op := &request.Operation{ Name: opDescribeScheduledInstances, @@ -7907,9 +8552,8 @@ func (c *EC2) DescribeScheduledInstancesRequest(input *DescribeScheduledInstance input = &DescribeScheduledInstancesInput{} } - req = c.newRequest(op, input, output) output = &DescribeScheduledInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7923,6 +8567,7 @@ func (c *EC2) DescribeScheduledInstancesRequest(input *DescribeScheduledInstance // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeScheduledInstances for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstances func (c *EC2) DescribeScheduledInstances(input *DescribeScheduledInstancesInput) (*DescribeScheduledInstancesOutput, error) { req, out := c.DescribeScheduledInstancesRequest(input) err := req.Send() @@ -7955,6 +8600,7 @@ const opDescribeSecurityGroupReferences = "DescribeSecurityGroupReferences" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupReferences func (c *EC2) DescribeSecurityGroupReferencesRequest(input *DescribeSecurityGroupReferencesInput) (req *request.Request, output *DescribeSecurityGroupReferencesOutput) { op := &request.Operation{ Name: opDescribeSecurityGroupReferences, @@ -7966,9 +8612,8 @@ func (c *EC2) DescribeSecurityGroupReferencesRequest(input *DescribeSecurityGrou input = &DescribeSecurityGroupReferencesInput{} } - req = c.newRequest(op, input, output) output = &DescribeSecurityGroupReferencesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7983,6 +8628,7 @@ func (c *EC2) DescribeSecurityGroupReferencesRequest(input *DescribeSecurityGrou // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeSecurityGroupReferences for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupReferences func (c *EC2) DescribeSecurityGroupReferences(input *DescribeSecurityGroupReferencesInput) (*DescribeSecurityGroupReferencesOutput, error) { req, out := c.DescribeSecurityGroupReferencesRequest(input) err := req.Send() @@ -8015,6 +8661,7 @@ const opDescribeSecurityGroups = "DescribeSecurityGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroups func (c *EC2) DescribeSecurityGroupsRequest(input *DescribeSecurityGroupsInput) (req *request.Request, output *DescribeSecurityGroupsOutput) { op := &request.Operation{ Name: opDescribeSecurityGroups, @@ -8026,9 +8673,8 @@ func (c *EC2) DescribeSecurityGroupsRequest(input *DescribeSecurityGroupsInput) input = &DescribeSecurityGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeSecurityGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -8049,6 +8695,7 @@ func (c *EC2) DescribeSecurityGroupsRequest(input *DescribeSecurityGroupsInput) // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeSecurityGroups for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroups func (c *EC2) DescribeSecurityGroups(input *DescribeSecurityGroupsInput) (*DescribeSecurityGroupsOutput, error) { req, out := c.DescribeSecurityGroupsRequest(input) err := req.Send() @@ -8081,6 +8728,7 @@ const opDescribeSnapshotAttribute = "DescribeSnapshotAttribute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotAttribute func (c *EC2) DescribeSnapshotAttributeRequest(input *DescribeSnapshotAttributeInput) (req *request.Request, output *DescribeSnapshotAttributeOutput) { op := &request.Operation{ Name: opDescribeSnapshotAttribute, @@ -8092,9 +8740,8 @@ func (c *EC2) DescribeSnapshotAttributeRequest(input *DescribeSnapshotAttributeI input = &DescribeSnapshotAttributeInput{} } - req = c.newRequest(op, input, output) output = &DescribeSnapshotAttributeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -8112,6 +8759,7 @@ func (c *EC2) DescribeSnapshotAttributeRequest(input *DescribeSnapshotAttributeI // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeSnapshotAttribute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotAttribute func (c *EC2) DescribeSnapshotAttribute(input *DescribeSnapshotAttributeInput) (*DescribeSnapshotAttributeOutput, error) { req, out := c.DescribeSnapshotAttributeRequest(input) err := req.Send() @@ -8144,6 +8792,7 @@ const opDescribeSnapshots = "DescribeSnapshots" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshots func (c *EC2) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *request.Request, output *DescribeSnapshotsOutput) { op := &request.Operation{ Name: opDescribeSnapshots, @@ -8161,9 +8810,8 @@ func (c *EC2) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *requ input = &DescribeSnapshotsInput{} } - req = c.newRequest(op, input, output) output = &DescribeSnapshotsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -8176,20 +8824,20 @@ func (c *EC2) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *requ // // The create volume permissions fall into the following categories: // -// public: The owner of the snapshot granted create volume permissions for -// the snapshot to the all group. All AWS accounts have create volume permissions -// for these snapshots. +// * public: The owner of the snapshot granted create volume permissions +// for the snapshot to the all group. All AWS accounts have create volume +// permissions for these snapshots. // -// explicit: The owner of the snapshot granted create volume permissions -// to a specific AWS account. +// * explicit: The owner of the snapshot granted create volume permissions +// to a specific AWS account. // -// implicit: An AWS account has implicit create volume permissions for all -// snapshots it owns. +// * implicit: An AWS account has implicit create volume permissions for +// all snapshots it owns. // -// The list of snapshots returned can be modified by specifying snapshot -// IDs, snapshot owners, or AWS accounts with create volume permissions. If -// no options are specified, Amazon EC2 returns all snapshots for which you -// have create volume permissions. +// The list of snapshots returned can be modified by specifying snapshot IDs, +// snapshot owners, or AWS accounts with create volume permissions. If no options +// are specified, Amazon EC2 returns all snapshots for which you have create +// volume permissions. // // If you specify one or more snapshot IDs, only snapshots that have the specified // IDs are returned. If you specify an invalid snapshot ID, an error is returned. @@ -8222,6 +8870,7 @@ func (c *EC2) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *requ // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeSnapshots for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshots func (c *EC2) DescribeSnapshots(input *DescribeSnapshotsInput) (*DescribeSnapshotsOutput, error) { req, out := c.DescribeSnapshotsRequest(input) err := req.Send() @@ -8279,6 +8928,7 @@ const opDescribeSpotDatafeedSubscription = "DescribeSpotDatafeedSubscription" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotDatafeedSubscription func (c *EC2) DescribeSpotDatafeedSubscriptionRequest(input *DescribeSpotDatafeedSubscriptionInput) (req *request.Request, output *DescribeSpotDatafeedSubscriptionOutput) { op := &request.Operation{ Name: opDescribeSpotDatafeedSubscription, @@ -8290,9 +8940,8 @@ func (c *EC2) DescribeSpotDatafeedSubscriptionRequest(input *DescribeSpotDatafee input = &DescribeSpotDatafeedSubscriptionInput{} } - req = c.newRequest(op, input, output) output = &DescribeSpotDatafeedSubscriptionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -8308,6 +8957,7 @@ func (c *EC2) DescribeSpotDatafeedSubscriptionRequest(input *DescribeSpotDatafee // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeSpotDatafeedSubscription for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotDatafeedSubscription func (c *EC2) DescribeSpotDatafeedSubscription(input *DescribeSpotDatafeedSubscriptionInput) (*DescribeSpotDatafeedSubscriptionOutput, error) { req, out := c.DescribeSpotDatafeedSubscriptionRequest(input) err := req.Send() @@ -8340,6 +8990,7 @@ const opDescribeSpotFleetInstances = "DescribeSpotFleetInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetInstances func (c *EC2) DescribeSpotFleetInstancesRequest(input *DescribeSpotFleetInstancesInput) (req *request.Request, output *DescribeSpotFleetInstancesOutput) { op := &request.Operation{ Name: opDescribeSpotFleetInstances, @@ -8351,9 +9002,8 @@ func (c *EC2) DescribeSpotFleetInstancesRequest(input *DescribeSpotFleetInstance input = &DescribeSpotFleetInstancesInput{} } - req = c.newRequest(op, input, output) output = &DescribeSpotFleetInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -8367,6 +9017,7 @@ func (c *EC2) DescribeSpotFleetInstancesRequest(input *DescribeSpotFleetInstance // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeSpotFleetInstances for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetInstances func (c *EC2) DescribeSpotFleetInstances(input *DescribeSpotFleetInstancesInput) (*DescribeSpotFleetInstancesOutput, error) { req, out := c.DescribeSpotFleetInstancesRequest(input) err := req.Send() @@ -8399,6 +9050,7 @@ const opDescribeSpotFleetRequestHistory = "DescribeSpotFleetRequestHistory" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestHistory func (c *EC2) DescribeSpotFleetRequestHistoryRequest(input *DescribeSpotFleetRequestHistoryInput) (req *request.Request, output *DescribeSpotFleetRequestHistoryOutput) { op := &request.Operation{ Name: opDescribeSpotFleetRequestHistory, @@ -8410,9 +9062,8 @@ func (c *EC2) DescribeSpotFleetRequestHistoryRequest(input *DescribeSpotFleetReq input = &DescribeSpotFleetRequestHistoryInput{} } - req = c.newRequest(op, input, output) output = &DescribeSpotFleetRequestHistoryOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -8431,6 +9082,7 @@ func (c *EC2) DescribeSpotFleetRequestHistoryRequest(input *DescribeSpotFleetReq // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeSpotFleetRequestHistory for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestHistory func (c *EC2) DescribeSpotFleetRequestHistory(input *DescribeSpotFleetRequestHistoryInput) (*DescribeSpotFleetRequestHistoryOutput, error) { req, out := c.DescribeSpotFleetRequestHistoryRequest(input) err := req.Send() @@ -8463,6 +9115,7 @@ const opDescribeSpotFleetRequests = "DescribeSpotFleetRequests" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequests func (c *EC2) DescribeSpotFleetRequestsRequest(input *DescribeSpotFleetRequestsInput) (req *request.Request, output *DescribeSpotFleetRequestsOutput) { op := &request.Operation{ Name: opDescribeSpotFleetRequests, @@ -8480,9 +9133,8 @@ func (c *EC2) DescribeSpotFleetRequestsRequest(input *DescribeSpotFleetRequestsI input = &DescribeSpotFleetRequestsInput{} } - req = c.newRequest(op, input, output) output = &DescribeSpotFleetRequestsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -8499,6 +9151,7 @@ func (c *EC2) DescribeSpotFleetRequestsRequest(input *DescribeSpotFleetRequestsI // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeSpotFleetRequests for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequests func (c *EC2) DescribeSpotFleetRequests(input *DescribeSpotFleetRequestsInput) (*DescribeSpotFleetRequestsOutput, error) { req, out := c.DescribeSpotFleetRequestsRequest(input) err := req.Send() @@ -8556,6 +9209,7 @@ const opDescribeSpotInstanceRequests = "DescribeSpotInstanceRequests" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotInstanceRequests func (c *EC2) DescribeSpotInstanceRequestsRequest(input *DescribeSpotInstanceRequestsInput) (req *request.Request, output *DescribeSpotInstanceRequestsOutput) { op := &request.Operation{ Name: opDescribeSpotInstanceRequests, @@ -8567,9 +9221,8 @@ func (c *EC2) DescribeSpotInstanceRequestsRequest(input *DescribeSpotInstanceReq input = &DescribeSpotInstanceRequestsInput{} } - req = c.newRequest(op, input, output) output = &DescribeSpotInstanceRequestsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -8597,6 +9250,7 @@ func (c *EC2) DescribeSpotInstanceRequestsRequest(input *DescribeSpotInstanceReq // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeSpotInstanceRequests for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotInstanceRequests func (c *EC2) DescribeSpotInstanceRequests(input *DescribeSpotInstanceRequestsInput) (*DescribeSpotInstanceRequestsOutput, error) { req, out := c.DescribeSpotInstanceRequestsRequest(input) err := req.Send() @@ -8629,6 +9283,7 @@ const opDescribeSpotPriceHistory = "DescribeSpotPriceHistory" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotPriceHistory func (c *EC2) DescribeSpotPriceHistoryRequest(input *DescribeSpotPriceHistoryInput) (req *request.Request, output *DescribeSpotPriceHistoryOutput) { op := &request.Operation{ Name: opDescribeSpotPriceHistory, @@ -8646,17 +9301,15 @@ func (c *EC2) DescribeSpotPriceHistoryRequest(input *DescribeSpotPriceHistoryInp input = &DescribeSpotPriceHistoryInput{} } - req = c.newRequest(op, input, output) output = &DescribeSpotPriceHistoryOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeSpotPriceHistory API operation for Amazon Elastic Compute Cloud. // -// Describes the Spot price history. The prices returned are listed in chronological -// order, from the oldest to the most recent, for up to the past 90 days. For -// more information, see Spot Instance Pricing History (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances-history.html) +// Describes the Spot price history. For more information, see Spot Instance +// Pricing History (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances-history.html) // in the Amazon Elastic Compute Cloud User Guide. // // When you specify a start and end time, this operation returns the prices @@ -8670,6 +9323,7 @@ func (c *EC2) DescribeSpotPriceHistoryRequest(input *DescribeSpotPriceHistoryInp // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeSpotPriceHistory for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotPriceHistory func (c *EC2) DescribeSpotPriceHistory(input *DescribeSpotPriceHistoryInput) (*DescribeSpotPriceHistoryOutput, error) { req, out := c.DescribeSpotPriceHistoryRequest(input) err := req.Send() @@ -8727,6 +9381,7 @@ const opDescribeStaleSecurityGroups = "DescribeStaleSecurityGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeStaleSecurityGroups func (c *EC2) DescribeStaleSecurityGroupsRequest(input *DescribeStaleSecurityGroupsInput) (req *request.Request, output *DescribeStaleSecurityGroupsOutput) { op := &request.Operation{ Name: opDescribeStaleSecurityGroups, @@ -8738,9 +9393,8 @@ func (c *EC2) DescribeStaleSecurityGroupsRequest(input *DescribeStaleSecurityGro input = &DescribeStaleSecurityGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeStaleSecurityGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -8757,6 +9411,7 @@ func (c *EC2) DescribeStaleSecurityGroupsRequest(input *DescribeStaleSecurityGro // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeStaleSecurityGroups for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeStaleSecurityGroups func (c *EC2) DescribeStaleSecurityGroups(input *DescribeStaleSecurityGroupsInput) (*DescribeStaleSecurityGroupsOutput, error) { req, out := c.DescribeStaleSecurityGroupsRequest(input) err := req.Send() @@ -8789,6 +9444,7 @@ const opDescribeSubnets = "DescribeSubnets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSubnets func (c *EC2) DescribeSubnetsRequest(input *DescribeSubnetsInput) (req *request.Request, output *DescribeSubnetsOutput) { op := &request.Operation{ Name: opDescribeSubnets, @@ -8800,9 +9456,8 @@ func (c *EC2) DescribeSubnetsRequest(input *DescribeSubnetsInput) (req *request. input = &DescribeSubnetsInput{} } - req = c.newRequest(op, input, output) output = &DescribeSubnetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -8819,6 +9474,7 @@ func (c *EC2) DescribeSubnetsRequest(input *DescribeSubnetsInput) (req *request. // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeSubnets for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSubnets func (c *EC2) DescribeSubnets(input *DescribeSubnetsInput) (*DescribeSubnetsOutput, error) { req, out := c.DescribeSubnetsRequest(input) err := req.Send() @@ -8851,6 +9507,7 @@ const opDescribeTags = "DescribeTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTags func (c *EC2) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) { op := &request.Operation{ Name: opDescribeTags, @@ -8868,9 +9525,8 @@ func (c *EC2) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Reques input = &DescribeTagsInput{} } - req = c.newRequest(op, input, output) output = &DescribeTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -8887,6 +9543,7 @@ func (c *EC2) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeTags for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTags func (c *EC2) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -8944,6 +9601,7 @@ const opDescribeVolumeAttribute = "DescribeVolumeAttribute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeAttribute func (c *EC2) DescribeVolumeAttributeRequest(input *DescribeVolumeAttributeInput) (req *request.Request, output *DescribeVolumeAttributeOutput) { op := &request.Operation{ Name: opDescribeVolumeAttribute, @@ -8955,9 +9613,8 @@ func (c *EC2) DescribeVolumeAttributeRequest(input *DescribeVolumeAttributeInput input = &DescribeVolumeAttributeInput{} } - req = c.newRequest(op, input, output) output = &DescribeVolumeAttributeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -8975,6 +9632,7 @@ func (c *EC2) DescribeVolumeAttributeRequest(input *DescribeVolumeAttributeInput // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeVolumeAttribute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeAttribute func (c *EC2) DescribeVolumeAttribute(input *DescribeVolumeAttributeInput) (*DescribeVolumeAttributeOutput, error) { req, out := c.DescribeVolumeAttributeRequest(input) err := req.Send() @@ -9007,6 +9665,7 @@ const opDescribeVolumeStatus = "DescribeVolumeStatus" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeStatus func (c *EC2) DescribeVolumeStatusRequest(input *DescribeVolumeStatusInput) (req *request.Request, output *DescribeVolumeStatusOutput) { op := &request.Operation{ Name: opDescribeVolumeStatus, @@ -9024,9 +9683,8 @@ func (c *EC2) DescribeVolumeStatusRequest(input *DescribeVolumeStatusInput) (req input = &DescribeVolumeStatusInput{} } - req = c.newRequest(op, input, output) output = &DescribeVolumeStatusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -9044,27 +9702,27 @@ func (c *EC2) DescribeVolumeStatusRequest(input *DescribeVolumeStatusInput) (req // The DescribeVolumeStatus operation provides the following information about // the specified volumes: // -// Status: Reflects the current status of the volume. The possible values -// are ok, impaired , warning, or insufficient-data. If all checks pass, the -// overall status of the volume is ok. If the check fails, the overall status -// is impaired. If the status is insufficient-data, then the checks may still -// be taking place on your volume at the time. We recommend that you retry the -// request. For more information on volume status, see Monitoring the Status -// of Your Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-status.html). +// Status: Reflects the current status of the volume. The possible values are +// ok, impaired , warning, or insufficient-data. If all checks pass, the overall +// status of the volume is ok. If the check fails, the overall status is impaired. +// If the status is insufficient-data, then the checks may still be taking place +// on your volume at the time. We recommend that you retry the request. For +// more information on volume status, see Monitoring the Status of Your Volumes +// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-status.html). // -// Events: Reflect the cause of a volume status and may require you to take +// Events: Reflect the cause of a volume status and may require you to take // action. For example, if your volume returns an impaired status, then the // volume event might be potential-data-inconsistency. This means that your // volume has been affected by an issue with the underlying host, has all I/O // operations disabled, and may have inconsistent data. // -// Actions: Reflect the actions you may have to take in response to an event. +// Actions: Reflect the actions you may have to take in response to an event. // For example, if the status of the volume is impaired and the volume event // shows potential-data-inconsistency, then the action shows enable-volume-io. // This means that you may want to enable the I/O operations for the volume // by calling the EnableVolumeIO action and then check the volume for data consistency. // -// Volume status is based on the volume status checks, and does not reflect +// Volume status is based on the volume status checks, and does not reflect // the volume state. Therefore, volume status does not indicate volumes in the // error state (for example, when a volume is incapable of accepting I/O.) // @@ -9074,6 +9732,7 @@ func (c *EC2) DescribeVolumeStatusRequest(input *DescribeVolumeStatusInput) (req // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeVolumeStatus for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeStatus func (c *EC2) DescribeVolumeStatus(input *DescribeVolumeStatusInput) (*DescribeVolumeStatusOutput, error) { req, out := c.DescribeVolumeStatusRequest(input) err := req.Send() @@ -9131,6 +9790,7 @@ const opDescribeVolumes = "DescribeVolumes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumes func (c *EC2) DescribeVolumesRequest(input *DescribeVolumesInput) (req *request.Request, output *DescribeVolumesOutput) { op := &request.Operation{ Name: opDescribeVolumes, @@ -9148,9 +9808,8 @@ func (c *EC2) DescribeVolumesRequest(input *DescribeVolumesInput) (req *request. input = &DescribeVolumesInput{} } - req = c.newRequest(op, input, output) output = &DescribeVolumesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -9174,6 +9833,7 @@ func (c *EC2) DescribeVolumesRequest(input *DescribeVolumesInput) (req *request. // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeVolumes for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumes func (c *EC2) DescribeVolumes(input *DescribeVolumesInput) (*DescribeVolumesOutput, error) { req, out := c.DescribeVolumesRequest(input) err := req.Send() @@ -9205,6 +9865,78 @@ func (c *EC2) DescribeVolumesPages(input *DescribeVolumesInput, fn func(p *Descr }) } +const opDescribeVolumesModifications = "DescribeVolumesModifications" + +// DescribeVolumesModificationsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeVolumesModifications operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeVolumesModifications for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeVolumesModifications method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeVolumesModificationsRequest method. +// req, resp := client.DescribeVolumesModificationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesModifications +func (c *EC2) DescribeVolumesModificationsRequest(input *DescribeVolumesModificationsInput) (req *request.Request, output *DescribeVolumesModificationsOutput) { + op := &request.Operation{ + Name: opDescribeVolumesModifications, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeVolumesModificationsInput{} + } + + output = &DescribeVolumesModificationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeVolumesModifications API operation for Amazon Elastic Compute Cloud. +// +// Reports the current modification status of EBS volumes. +// +// Current-generation EBS volumes support modification of attributes including +// type, size, and (for io1 volumes) IOPS provisioning while either attached +// to or detached from an instance. Following an action from the API or the +// console to modify a volume, the status of the modification may be modifying, +// optimizing, completed, or failed. If a volume has never been modified, then +// certain elements of the returned VolumeModification objects are null. +// +// You can also use CloudWatch Events to check the status of a modification +// to an EBS volume. For information about CloudWatch Events, see the Amazon +// CloudWatch Events User Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/). +// For more information, see Monitoring Volume Modifications" (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeVolumesModifications for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesModifications +func (c *EC2) DescribeVolumesModifications(input *DescribeVolumesModificationsInput) (*DescribeVolumesModificationsOutput, error) { + req, out := c.DescribeVolumesModificationsRequest(input) + err := req.Send() + return out, err +} + const opDescribeVpcAttribute = "DescribeVpcAttribute" // DescribeVpcAttributeRequest generates a "aws/request.Request" representing the @@ -9231,6 +9963,7 @@ const opDescribeVpcAttribute = "DescribeVpcAttribute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttribute func (c *EC2) DescribeVpcAttributeRequest(input *DescribeVpcAttributeInput) (req *request.Request, output *DescribeVpcAttributeOutput) { op := &request.Operation{ Name: opDescribeVpcAttribute, @@ -9242,9 +9975,8 @@ func (c *EC2) DescribeVpcAttributeRequest(input *DescribeVpcAttributeInput) (req input = &DescribeVpcAttributeInput{} } - req = c.newRequest(op, input, output) output = &DescribeVpcAttributeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -9259,6 +9991,7 @@ func (c *EC2) DescribeVpcAttributeRequest(input *DescribeVpcAttributeInput) (req // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeVpcAttribute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttribute func (c *EC2) DescribeVpcAttribute(input *DescribeVpcAttributeInput) (*DescribeVpcAttributeOutput, error) { req, out := c.DescribeVpcAttributeRequest(input) err := req.Send() @@ -9291,6 +10024,7 @@ const opDescribeVpcClassicLink = "DescribeVpcClassicLink" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLink func (c *EC2) DescribeVpcClassicLinkRequest(input *DescribeVpcClassicLinkInput) (req *request.Request, output *DescribeVpcClassicLinkOutput) { op := &request.Operation{ Name: opDescribeVpcClassicLink, @@ -9302,9 +10036,8 @@ func (c *EC2) DescribeVpcClassicLinkRequest(input *DescribeVpcClassicLinkInput) input = &DescribeVpcClassicLinkInput{} } - req = c.newRequest(op, input, output) output = &DescribeVpcClassicLinkOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -9318,6 +10051,7 @@ func (c *EC2) DescribeVpcClassicLinkRequest(input *DescribeVpcClassicLinkInput) // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeVpcClassicLink for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLink func (c *EC2) DescribeVpcClassicLink(input *DescribeVpcClassicLinkInput) (*DescribeVpcClassicLinkOutput, error) { req, out := c.DescribeVpcClassicLinkRequest(input) err := req.Send() @@ -9350,6 +10084,7 @@ const opDescribeVpcClassicLinkDnsSupport = "DescribeVpcClassicLinkDnsSupport" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkDnsSupport func (c *EC2) DescribeVpcClassicLinkDnsSupportRequest(input *DescribeVpcClassicLinkDnsSupportInput) (req *request.Request, output *DescribeVpcClassicLinkDnsSupportOutput) { op := &request.Operation{ Name: opDescribeVpcClassicLinkDnsSupport, @@ -9361,9 +10096,8 @@ func (c *EC2) DescribeVpcClassicLinkDnsSupportRequest(input *DescribeVpcClassicL input = &DescribeVpcClassicLinkDnsSupportInput{} } - req = c.newRequest(op, input, output) output = &DescribeVpcClassicLinkDnsSupportOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -9383,6 +10117,7 @@ func (c *EC2) DescribeVpcClassicLinkDnsSupportRequest(input *DescribeVpcClassicL // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeVpcClassicLinkDnsSupport for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkDnsSupport func (c *EC2) DescribeVpcClassicLinkDnsSupport(input *DescribeVpcClassicLinkDnsSupportInput) (*DescribeVpcClassicLinkDnsSupportOutput, error) { req, out := c.DescribeVpcClassicLinkDnsSupportRequest(input) err := req.Send() @@ -9415,6 +10150,7 @@ const opDescribeVpcEndpointServices = "DescribeVpcEndpointServices" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServices func (c *EC2) DescribeVpcEndpointServicesRequest(input *DescribeVpcEndpointServicesInput) (req *request.Request, output *DescribeVpcEndpointServicesOutput) { op := &request.Operation{ Name: opDescribeVpcEndpointServices, @@ -9426,9 +10162,8 @@ func (c *EC2) DescribeVpcEndpointServicesRequest(input *DescribeVpcEndpointServi input = &DescribeVpcEndpointServicesInput{} } - req = c.newRequest(op, input, output) output = &DescribeVpcEndpointServicesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -9443,6 +10178,7 @@ func (c *EC2) DescribeVpcEndpointServicesRequest(input *DescribeVpcEndpointServi // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeVpcEndpointServices for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServices func (c *EC2) DescribeVpcEndpointServices(input *DescribeVpcEndpointServicesInput) (*DescribeVpcEndpointServicesOutput, error) { req, out := c.DescribeVpcEndpointServicesRequest(input) err := req.Send() @@ -9475,6 +10211,7 @@ const opDescribeVpcEndpoints = "DescribeVpcEndpoints" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpoints func (c *EC2) DescribeVpcEndpointsRequest(input *DescribeVpcEndpointsInput) (req *request.Request, output *DescribeVpcEndpointsOutput) { op := &request.Operation{ Name: opDescribeVpcEndpoints, @@ -9486,9 +10223,8 @@ func (c *EC2) DescribeVpcEndpointsRequest(input *DescribeVpcEndpointsInput) (req input = &DescribeVpcEndpointsInput{} } - req = c.newRequest(op, input, output) output = &DescribeVpcEndpointsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -9502,6 +10238,7 @@ func (c *EC2) DescribeVpcEndpointsRequest(input *DescribeVpcEndpointsInput) (req // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeVpcEndpoints for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpoints func (c *EC2) DescribeVpcEndpoints(input *DescribeVpcEndpointsInput) (*DescribeVpcEndpointsOutput, error) { req, out := c.DescribeVpcEndpointsRequest(input) err := req.Send() @@ -9534,6 +10271,7 @@ const opDescribeVpcPeeringConnections = "DescribeVpcPeeringConnections" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcPeeringConnections func (c *EC2) DescribeVpcPeeringConnectionsRequest(input *DescribeVpcPeeringConnectionsInput) (req *request.Request, output *DescribeVpcPeeringConnectionsOutput) { op := &request.Operation{ Name: opDescribeVpcPeeringConnections, @@ -9545,9 +10283,8 @@ func (c *EC2) DescribeVpcPeeringConnectionsRequest(input *DescribeVpcPeeringConn input = &DescribeVpcPeeringConnectionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeVpcPeeringConnectionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -9561,6 +10298,7 @@ func (c *EC2) DescribeVpcPeeringConnectionsRequest(input *DescribeVpcPeeringConn // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeVpcPeeringConnections for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcPeeringConnections func (c *EC2) DescribeVpcPeeringConnections(input *DescribeVpcPeeringConnectionsInput) (*DescribeVpcPeeringConnectionsOutput, error) { req, out := c.DescribeVpcPeeringConnectionsRequest(input) err := req.Send() @@ -9593,6 +10331,7 @@ const opDescribeVpcs = "DescribeVpcs" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcs func (c *EC2) DescribeVpcsRequest(input *DescribeVpcsInput) (req *request.Request, output *DescribeVpcsOutput) { op := &request.Operation{ Name: opDescribeVpcs, @@ -9604,9 +10343,8 @@ func (c *EC2) DescribeVpcsRequest(input *DescribeVpcsInput) (req *request.Reques input = &DescribeVpcsInput{} } - req = c.newRequest(op, input, output) output = &DescribeVpcsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -9620,6 +10358,7 @@ func (c *EC2) DescribeVpcsRequest(input *DescribeVpcsInput) (req *request.Reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeVpcs for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcs func (c *EC2) DescribeVpcs(input *DescribeVpcsInput) (*DescribeVpcsOutput, error) { req, out := c.DescribeVpcsRequest(input) err := req.Send() @@ -9652,6 +10391,7 @@ const opDescribeVpnConnections = "DescribeVpnConnections" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnConnections func (c *EC2) DescribeVpnConnectionsRequest(input *DescribeVpnConnectionsInput) (req *request.Request, output *DescribeVpnConnectionsOutput) { op := &request.Operation{ Name: opDescribeVpnConnections, @@ -9663,9 +10403,8 @@ func (c *EC2) DescribeVpnConnectionsRequest(input *DescribeVpnConnectionsInput) input = &DescribeVpnConnectionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeVpnConnectionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -9683,6 +10422,7 @@ func (c *EC2) DescribeVpnConnectionsRequest(input *DescribeVpnConnectionsInput) // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeVpnConnections for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnConnections func (c *EC2) DescribeVpnConnections(input *DescribeVpnConnectionsInput) (*DescribeVpnConnectionsOutput, error) { req, out := c.DescribeVpnConnectionsRequest(input) err := req.Send() @@ -9715,6 +10455,7 @@ const opDescribeVpnGateways = "DescribeVpnGateways" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnGateways func (c *EC2) DescribeVpnGatewaysRequest(input *DescribeVpnGatewaysInput) (req *request.Request, output *DescribeVpnGatewaysOutput) { op := &request.Operation{ Name: opDescribeVpnGateways, @@ -9726,9 +10467,8 @@ func (c *EC2) DescribeVpnGatewaysRequest(input *DescribeVpnGatewaysInput) (req * input = &DescribeVpnGatewaysInput{} } - req = c.newRequest(op, input, output) output = &DescribeVpnGatewaysOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -9746,6 +10486,7 @@ func (c *EC2) DescribeVpnGatewaysRequest(input *DescribeVpnGatewaysInput) (req * // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DescribeVpnGateways for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnGateways func (c *EC2) DescribeVpnGateways(input *DescribeVpnGatewaysInput) (*DescribeVpnGatewaysOutput, error) { req, out := c.DescribeVpnGatewaysRequest(input) err := req.Send() @@ -9778,6 +10519,7 @@ const opDetachClassicLinkVpc = "DetachClassicLinkVpc" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachClassicLinkVpc func (c *EC2) DetachClassicLinkVpcRequest(input *DetachClassicLinkVpcInput) (req *request.Request, output *DetachClassicLinkVpcOutput) { op := &request.Operation{ Name: opDetachClassicLinkVpc, @@ -9789,9 +10531,8 @@ func (c *EC2) DetachClassicLinkVpcRequest(input *DetachClassicLinkVpcInput) (req input = &DetachClassicLinkVpcInput{} } - req = c.newRequest(op, input, output) output = &DetachClassicLinkVpcOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -9807,6 +10548,7 @@ func (c *EC2) DetachClassicLinkVpcRequest(input *DetachClassicLinkVpcInput) (req // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DetachClassicLinkVpc for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachClassicLinkVpc func (c *EC2) DetachClassicLinkVpc(input *DetachClassicLinkVpcInput) (*DetachClassicLinkVpcOutput, error) { req, out := c.DetachClassicLinkVpcRequest(input) err := req.Send() @@ -9839,6 +10581,7 @@ const opDetachInternetGateway = "DetachInternetGateway" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachInternetGateway func (c *EC2) DetachInternetGatewayRequest(input *DetachInternetGatewayInput) (req *request.Request, output *DetachInternetGatewayOutput) { op := &request.Operation{ Name: opDetachInternetGateway, @@ -9850,11 +10593,10 @@ func (c *EC2) DetachInternetGatewayRequest(input *DetachInternetGatewayInput) (r input = &DetachInternetGatewayInput{} } + output = &DetachInternetGatewayOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DetachInternetGatewayOutput{} - req.Data = output return } @@ -9870,6 +10612,7 @@ func (c *EC2) DetachInternetGatewayRequest(input *DetachInternetGatewayInput) (r // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DetachInternetGateway for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachInternetGateway func (c *EC2) DetachInternetGateway(input *DetachInternetGatewayInput) (*DetachInternetGatewayOutput, error) { req, out := c.DetachInternetGatewayRequest(input) err := req.Send() @@ -9902,6 +10645,7 @@ const opDetachNetworkInterface = "DetachNetworkInterface" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachNetworkInterface func (c *EC2) DetachNetworkInterfaceRequest(input *DetachNetworkInterfaceInput) (req *request.Request, output *DetachNetworkInterfaceOutput) { op := &request.Operation{ Name: opDetachNetworkInterface, @@ -9913,11 +10657,10 @@ func (c *EC2) DetachNetworkInterfaceRequest(input *DetachNetworkInterfaceInput) input = &DetachNetworkInterfaceInput{} } + output = &DetachNetworkInterfaceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DetachNetworkInterfaceOutput{} - req.Data = output return } @@ -9931,6 +10674,7 @@ func (c *EC2) DetachNetworkInterfaceRequest(input *DetachNetworkInterfaceInput) // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DetachNetworkInterface for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachNetworkInterface func (c *EC2) DetachNetworkInterface(input *DetachNetworkInterfaceInput) (*DetachNetworkInterfaceOutput, error) { req, out := c.DetachNetworkInterfaceRequest(input) err := req.Send() @@ -9963,6 +10707,7 @@ const opDetachVolume = "DetachVolume" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVolume func (c *EC2) DetachVolumeRequest(input *DetachVolumeInput) (req *request.Request, output *VolumeAttachment) { op := &request.Operation{ Name: opDetachVolume, @@ -9974,9 +10719,8 @@ func (c *EC2) DetachVolumeRequest(input *DetachVolumeInput) (req *request.Reques input = &DetachVolumeInput{} } - req = c.newRequest(op, input, output) output = &VolumeAttachment{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -10003,6 +10747,7 @@ func (c *EC2) DetachVolumeRequest(input *DetachVolumeInput) (req *request.Reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DetachVolume for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVolume func (c *EC2) DetachVolume(input *DetachVolumeInput) (*VolumeAttachment, error) { req, out := c.DetachVolumeRequest(input) err := req.Send() @@ -10035,6 +10780,7 @@ const opDetachVpnGateway = "DetachVpnGateway" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVpnGateway func (c *EC2) DetachVpnGatewayRequest(input *DetachVpnGatewayInput) (req *request.Request, output *DetachVpnGatewayOutput) { op := &request.Operation{ Name: opDetachVpnGateway, @@ -10046,11 +10792,10 @@ func (c *EC2) DetachVpnGatewayRequest(input *DetachVpnGatewayInput) (req *reques input = &DetachVpnGatewayInput{} } + output = &DetachVpnGatewayOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DetachVpnGatewayOutput{} - req.Data = output return } @@ -10071,6 +10816,7 @@ func (c *EC2) DetachVpnGatewayRequest(input *DetachVpnGatewayInput) (req *reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DetachVpnGateway for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVpnGateway func (c *EC2) DetachVpnGateway(input *DetachVpnGatewayInput) (*DetachVpnGatewayOutput, error) { req, out := c.DetachVpnGatewayRequest(input) err := req.Send() @@ -10103,6 +10849,7 @@ const opDisableVgwRoutePropagation = "DisableVgwRoutePropagation" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVgwRoutePropagation func (c *EC2) DisableVgwRoutePropagationRequest(input *DisableVgwRoutePropagationInput) (req *request.Request, output *DisableVgwRoutePropagationOutput) { op := &request.Operation{ Name: opDisableVgwRoutePropagation, @@ -10114,11 +10861,10 @@ func (c *EC2) DisableVgwRoutePropagationRequest(input *DisableVgwRoutePropagatio input = &DisableVgwRoutePropagationInput{} } + output = &DisableVgwRoutePropagationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DisableVgwRoutePropagationOutput{} - req.Data = output return } @@ -10133,6 +10879,7 @@ func (c *EC2) DisableVgwRoutePropagationRequest(input *DisableVgwRoutePropagatio // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DisableVgwRoutePropagation for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVgwRoutePropagation func (c *EC2) DisableVgwRoutePropagation(input *DisableVgwRoutePropagationInput) (*DisableVgwRoutePropagationOutput, error) { req, out := c.DisableVgwRoutePropagationRequest(input) err := req.Send() @@ -10165,6 +10912,7 @@ const opDisableVpcClassicLink = "DisableVpcClassicLink" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLink func (c *EC2) DisableVpcClassicLinkRequest(input *DisableVpcClassicLinkInput) (req *request.Request, output *DisableVpcClassicLinkOutput) { op := &request.Operation{ Name: opDisableVpcClassicLink, @@ -10176,9 +10924,8 @@ func (c *EC2) DisableVpcClassicLinkRequest(input *DisableVpcClassicLinkInput) (r input = &DisableVpcClassicLinkInput{} } - req = c.newRequest(op, input, output) output = &DisableVpcClassicLinkOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -10193,6 +10940,7 @@ func (c *EC2) DisableVpcClassicLinkRequest(input *DisableVpcClassicLinkInput) (r // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DisableVpcClassicLink for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLink func (c *EC2) DisableVpcClassicLink(input *DisableVpcClassicLinkInput) (*DisableVpcClassicLinkOutput, error) { req, out := c.DisableVpcClassicLinkRequest(input) err := req.Send() @@ -10225,6 +10973,7 @@ const opDisableVpcClassicLinkDnsSupport = "DisableVpcClassicLinkDnsSupport" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkDnsSupport func (c *EC2) DisableVpcClassicLinkDnsSupportRequest(input *DisableVpcClassicLinkDnsSupportInput) (req *request.Request, output *DisableVpcClassicLinkDnsSupportOutput) { op := &request.Operation{ Name: opDisableVpcClassicLinkDnsSupport, @@ -10236,9 +10985,8 @@ func (c *EC2) DisableVpcClassicLinkDnsSupportRequest(input *DisableVpcClassicLin input = &DisableVpcClassicLinkDnsSupportInput{} } - req = c.newRequest(op, input, output) output = &DisableVpcClassicLinkDnsSupportOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -10256,6 +11004,7 @@ func (c *EC2) DisableVpcClassicLinkDnsSupportRequest(input *DisableVpcClassicLin // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DisableVpcClassicLinkDnsSupport for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkDnsSupport func (c *EC2) DisableVpcClassicLinkDnsSupport(input *DisableVpcClassicLinkDnsSupportInput) (*DisableVpcClassicLinkDnsSupportOutput, error) { req, out := c.DisableVpcClassicLinkDnsSupportRequest(input) err := req.Send() @@ -10288,6 +11037,7 @@ const opDisassociateAddress = "DisassociateAddress" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateAddress func (c *EC2) DisassociateAddressRequest(input *DisassociateAddressInput) (req *request.Request, output *DisassociateAddressOutput) { op := &request.Operation{ Name: opDisassociateAddress, @@ -10299,11 +11049,10 @@ func (c *EC2) DisassociateAddressRequest(input *DisassociateAddressInput) (req * input = &DisassociateAddressInput{} } + output = &DisassociateAddressOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DisassociateAddressOutput{} - req.Data = output return } @@ -10316,8 +11065,8 @@ func (c *EC2) DisassociateAddressRequest(input *DisassociateAddressInput) (req * // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) // in the Amazon Elastic Compute Cloud User Guide. // -// This is an idempotent operation. If you perform the operation more than -// once, Amazon EC2 doesn't return an error. +// This is an idempotent operation. If you perform the operation more than once, +// Amazon EC2 doesn't return an error. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -10325,12 +11074,75 @@ func (c *EC2) DisassociateAddressRequest(input *DisassociateAddressInput) (req * // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DisassociateAddress for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateAddress func (c *EC2) DisassociateAddress(input *DisassociateAddressInput) (*DisassociateAddressOutput, error) { req, out := c.DisassociateAddressRequest(input) err := req.Send() return out, err } +const opDisassociateIamInstanceProfile = "DisassociateIamInstanceProfile" + +// DisassociateIamInstanceProfileRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateIamInstanceProfile operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DisassociateIamInstanceProfile for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DisassociateIamInstanceProfile method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DisassociateIamInstanceProfileRequest method. +// req, resp := client.DisassociateIamInstanceProfileRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateIamInstanceProfile +func (c *EC2) DisassociateIamInstanceProfileRequest(input *DisassociateIamInstanceProfileInput) (req *request.Request, output *DisassociateIamInstanceProfileOutput) { + op := &request.Operation{ + Name: opDisassociateIamInstanceProfile, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisassociateIamInstanceProfileInput{} + } + + output = &DisassociateIamInstanceProfileOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateIamInstanceProfile API operation for Amazon Elastic Compute Cloud. +// +// Disassociates an IAM instance profile from a running or stopped instance. +// +// Use DescribeIamInstanceProfileAssociations to get the association ID. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DisassociateIamInstanceProfile for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateIamInstanceProfile +func (c *EC2) DisassociateIamInstanceProfile(input *DisassociateIamInstanceProfileInput) (*DisassociateIamInstanceProfileOutput, error) { + req, out := c.DisassociateIamInstanceProfileRequest(input) + err := req.Send() + return out, err +} + const opDisassociateRouteTable = "DisassociateRouteTable" // DisassociateRouteTableRequest generates a "aws/request.Request" representing the @@ -10357,6 +11169,7 @@ const opDisassociateRouteTable = "DisassociateRouteTable" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateRouteTable func (c *EC2) DisassociateRouteTableRequest(input *DisassociateRouteTableInput) (req *request.Request, output *DisassociateRouteTableOutput) { op := &request.Operation{ Name: opDisassociateRouteTable, @@ -10368,11 +11181,10 @@ func (c *EC2) DisassociateRouteTableRequest(input *DisassociateRouteTableInput) input = &DisassociateRouteTableInput{} } + output = &DisassociateRouteTableOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DisassociateRouteTableOutput{} - req.Data = output return } @@ -10391,12 +11203,137 @@ func (c *EC2) DisassociateRouteTableRequest(input *DisassociateRouteTableInput) // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation DisassociateRouteTable for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateRouteTable func (c *EC2) DisassociateRouteTable(input *DisassociateRouteTableInput) (*DisassociateRouteTableOutput, error) { req, out := c.DisassociateRouteTableRequest(input) err := req.Send() return out, err } +const opDisassociateSubnetCidrBlock = "DisassociateSubnetCidrBlock" + +// DisassociateSubnetCidrBlockRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateSubnetCidrBlock operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DisassociateSubnetCidrBlock for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DisassociateSubnetCidrBlock method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DisassociateSubnetCidrBlockRequest method. +// req, resp := client.DisassociateSubnetCidrBlockRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateSubnetCidrBlock +func (c *EC2) DisassociateSubnetCidrBlockRequest(input *DisassociateSubnetCidrBlockInput) (req *request.Request, output *DisassociateSubnetCidrBlockOutput) { + op := &request.Operation{ + Name: opDisassociateSubnetCidrBlock, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisassociateSubnetCidrBlockInput{} + } + + output = &DisassociateSubnetCidrBlockOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateSubnetCidrBlock API operation for Amazon Elastic Compute Cloud. +// +// Disassociates a CIDR block from a subnet. Currently, you can disassociate +// an IPv6 CIDR block only. You must detach or delete all gateways and resources +// that are associated with the CIDR block before you can disassociate it. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DisassociateSubnetCidrBlock for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateSubnetCidrBlock +func (c *EC2) DisassociateSubnetCidrBlock(input *DisassociateSubnetCidrBlockInput) (*DisassociateSubnetCidrBlockOutput, error) { + req, out := c.DisassociateSubnetCidrBlockRequest(input) + err := req.Send() + return out, err +} + +const opDisassociateVpcCidrBlock = "DisassociateVpcCidrBlock" + +// DisassociateVpcCidrBlockRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateVpcCidrBlock operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DisassociateVpcCidrBlock for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DisassociateVpcCidrBlock method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DisassociateVpcCidrBlockRequest method. +// req, resp := client.DisassociateVpcCidrBlockRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateVpcCidrBlock +func (c *EC2) DisassociateVpcCidrBlockRequest(input *DisassociateVpcCidrBlockInput) (req *request.Request, output *DisassociateVpcCidrBlockOutput) { + op := &request.Operation{ + Name: opDisassociateVpcCidrBlock, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisassociateVpcCidrBlockInput{} + } + + output = &DisassociateVpcCidrBlockOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateVpcCidrBlock API operation for Amazon Elastic Compute Cloud. +// +// Disassociates a CIDR block from a VPC. Currently, you can disassociate an +// IPv6 CIDR block only. You must detach or delete all gateways and resources +// that are associated with the CIDR block before you can disassociate it. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DisassociateVpcCidrBlock for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateVpcCidrBlock +func (c *EC2) DisassociateVpcCidrBlock(input *DisassociateVpcCidrBlockInput) (*DisassociateVpcCidrBlockOutput, error) { + req, out := c.DisassociateVpcCidrBlockRequest(input) + err := req.Send() + return out, err +} + const opEnableVgwRoutePropagation = "EnableVgwRoutePropagation" // EnableVgwRoutePropagationRequest generates a "aws/request.Request" representing the @@ -10423,6 +11360,7 @@ const opEnableVgwRoutePropagation = "EnableVgwRoutePropagation" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagation func (c *EC2) EnableVgwRoutePropagationRequest(input *EnableVgwRoutePropagationInput) (req *request.Request, output *EnableVgwRoutePropagationOutput) { op := &request.Operation{ Name: opEnableVgwRoutePropagation, @@ -10434,11 +11372,10 @@ func (c *EC2) EnableVgwRoutePropagationRequest(input *EnableVgwRoutePropagationI input = &EnableVgwRoutePropagationInput{} } + output = &EnableVgwRoutePropagationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &EnableVgwRoutePropagationOutput{} - req.Data = output return } @@ -10453,6 +11390,7 @@ func (c *EC2) EnableVgwRoutePropagationRequest(input *EnableVgwRoutePropagationI // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation EnableVgwRoutePropagation for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagation func (c *EC2) EnableVgwRoutePropagation(input *EnableVgwRoutePropagationInput) (*EnableVgwRoutePropagationOutput, error) { req, out := c.EnableVgwRoutePropagationRequest(input) err := req.Send() @@ -10485,6 +11423,7 @@ const opEnableVolumeIO = "EnableVolumeIO" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVolumeIO func (c *EC2) EnableVolumeIORequest(input *EnableVolumeIOInput) (req *request.Request, output *EnableVolumeIOOutput) { op := &request.Operation{ Name: opEnableVolumeIO, @@ -10496,11 +11435,10 @@ func (c *EC2) EnableVolumeIORequest(input *EnableVolumeIOInput) (req *request.Re input = &EnableVolumeIOInput{} } + output = &EnableVolumeIOOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &EnableVolumeIOOutput{} - req.Data = output return } @@ -10515,6 +11453,7 @@ func (c *EC2) EnableVolumeIORequest(input *EnableVolumeIOInput) (req *request.Re // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation EnableVolumeIO for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVolumeIO func (c *EC2) EnableVolumeIO(input *EnableVolumeIOInput) (*EnableVolumeIOOutput, error) { req, out := c.EnableVolumeIORequest(input) err := req.Send() @@ -10547,6 +11486,7 @@ const opEnableVpcClassicLink = "EnableVpcClassicLink" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLink func (c *EC2) EnableVpcClassicLinkRequest(input *EnableVpcClassicLinkInput) (req *request.Request, output *EnableVpcClassicLinkOutput) { op := &request.Operation{ Name: opEnableVpcClassicLink, @@ -10558,9 +11498,8 @@ func (c *EC2) EnableVpcClassicLinkRequest(input *EnableVpcClassicLinkInput) (req input = &EnableVpcClassicLinkInput{} } - req = c.newRequest(op, input, output) output = &EnableVpcClassicLinkOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -10580,6 +11519,7 @@ func (c *EC2) EnableVpcClassicLinkRequest(input *EnableVpcClassicLinkInput) (req // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation EnableVpcClassicLink for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLink func (c *EC2) EnableVpcClassicLink(input *EnableVpcClassicLinkInput) (*EnableVpcClassicLinkOutput, error) { req, out := c.EnableVpcClassicLinkRequest(input) err := req.Send() @@ -10612,6 +11552,7 @@ const opEnableVpcClassicLinkDnsSupport = "EnableVpcClassicLinkDnsSupport" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkDnsSupport func (c *EC2) EnableVpcClassicLinkDnsSupportRequest(input *EnableVpcClassicLinkDnsSupportInput) (req *request.Request, output *EnableVpcClassicLinkDnsSupportOutput) { op := &request.Operation{ Name: opEnableVpcClassicLinkDnsSupport, @@ -10623,9 +11564,8 @@ func (c *EC2) EnableVpcClassicLinkDnsSupportRequest(input *EnableVpcClassicLinkD input = &EnableVpcClassicLinkDnsSupportInput{} } - req = c.newRequest(op, input, output) output = &EnableVpcClassicLinkDnsSupportOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -10645,6 +11585,7 @@ func (c *EC2) EnableVpcClassicLinkDnsSupportRequest(input *EnableVpcClassicLinkD // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation EnableVpcClassicLinkDnsSupport for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkDnsSupport func (c *EC2) EnableVpcClassicLinkDnsSupport(input *EnableVpcClassicLinkDnsSupportInput) (*EnableVpcClassicLinkDnsSupportOutput, error) { req, out := c.EnableVpcClassicLinkDnsSupportRequest(input) err := req.Send() @@ -10677,6 +11618,7 @@ const opGetConsoleOutput = "GetConsoleOutput" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleOutput func (c *EC2) GetConsoleOutputRequest(input *GetConsoleOutputInput) (req *request.Request, output *GetConsoleOutputOutput) { op := &request.Operation{ Name: opGetConsoleOutput, @@ -10688,9 +11630,8 @@ func (c *EC2) GetConsoleOutputRequest(input *GetConsoleOutputInput) (req *reques input = &GetConsoleOutputInput{} } - req = c.newRequest(op, input, output) output = &GetConsoleOutputOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -10712,8 +11653,8 @@ func (c *EC2) GetConsoleOutputRequest(input *GetConsoleOutputInput) (req *reques // a computer. This output is buffered because the instance produces it and // then posts it to a store where the instance's owner can retrieve it. // -// For Windows instances, the instance console output includes output from -// the EC2Config service. +// For Windows instances, the instance console output includes output from the +// EC2Config service. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -10721,6 +11662,7 @@ func (c *EC2) GetConsoleOutputRequest(input *GetConsoleOutputInput) (req *reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation GetConsoleOutput for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleOutput func (c *EC2) GetConsoleOutput(input *GetConsoleOutputInput) (*GetConsoleOutputOutput, error) { req, out := c.GetConsoleOutputRequest(input) err := req.Send() @@ -10753,6 +11695,7 @@ const opGetConsoleScreenshot = "GetConsoleScreenshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleScreenshot func (c *EC2) GetConsoleScreenshotRequest(input *GetConsoleScreenshotInput) (req *request.Request, output *GetConsoleScreenshotOutput) { op := &request.Operation{ Name: opGetConsoleScreenshot, @@ -10764,9 +11707,8 @@ func (c *EC2) GetConsoleScreenshotRequest(input *GetConsoleScreenshotInput) (req input = &GetConsoleScreenshotInput{} } - req = c.newRequest(op, input, output) output = &GetConsoleScreenshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -10782,6 +11724,7 @@ func (c *EC2) GetConsoleScreenshotRequest(input *GetConsoleScreenshotInput) (req // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation GetConsoleScreenshot for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleScreenshot func (c *EC2) GetConsoleScreenshot(input *GetConsoleScreenshotInput) (*GetConsoleScreenshotOutput, error) { req, out := c.GetConsoleScreenshotRequest(input) err := req.Send() @@ -10814,6 +11757,7 @@ const opGetHostReservationPurchasePreview = "GetHostReservationPurchasePreview" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetHostReservationPurchasePreview func (c *EC2) GetHostReservationPurchasePreviewRequest(input *GetHostReservationPurchasePreviewInput) (req *request.Request, output *GetHostReservationPurchasePreviewOutput) { op := &request.Operation{ Name: opGetHostReservationPurchasePreview, @@ -10825,9 +11769,8 @@ func (c *EC2) GetHostReservationPurchasePreviewRequest(input *GetHostReservation input = &GetHostReservationPurchasePreviewInput{} } - req = c.newRequest(op, input, output) output = &GetHostReservationPurchasePreviewOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -10846,6 +11789,7 @@ func (c *EC2) GetHostReservationPurchasePreviewRequest(input *GetHostReservation // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation GetHostReservationPurchasePreview for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetHostReservationPurchasePreview func (c *EC2) GetHostReservationPurchasePreview(input *GetHostReservationPurchasePreviewInput) (*GetHostReservationPurchasePreviewOutput, error) { req, out := c.GetHostReservationPurchasePreviewRequest(input) err := req.Send() @@ -10878,6 +11822,7 @@ const opGetPasswordData = "GetPasswordData" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetPasswordData func (c *EC2) GetPasswordDataRequest(input *GetPasswordDataInput) (req *request.Request, output *GetPasswordDataOutput) { op := &request.Operation{ Name: opGetPasswordData, @@ -10889,9 +11834,8 @@ func (c *EC2) GetPasswordDataRequest(input *GetPasswordDataInput) (req *request. input = &GetPasswordDataInput{} } - req = c.newRequest(op, input, output) output = &GetPasswordDataOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -10918,6 +11862,7 @@ func (c *EC2) GetPasswordDataRequest(input *GetPasswordDataInput) (req *request. // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation GetPasswordData for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetPasswordData func (c *EC2) GetPasswordData(input *GetPasswordDataInput) (*GetPasswordDataOutput, error) { req, out := c.GetPasswordDataRequest(input) err := req.Send() @@ -10950,6 +11895,7 @@ const opGetReservedInstancesExchangeQuote = "GetReservedInstancesExchangeQuote" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetReservedInstancesExchangeQuote func (c *EC2) GetReservedInstancesExchangeQuoteRequest(input *GetReservedInstancesExchangeQuoteInput) (req *request.Request, output *GetReservedInstancesExchangeQuoteOutput) { op := &request.Operation{ Name: opGetReservedInstancesExchangeQuote, @@ -10961,17 +11907,16 @@ func (c *EC2) GetReservedInstancesExchangeQuoteRequest(input *GetReservedInstanc input = &GetReservedInstancesExchangeQuoteInput{} } - req = c.newRequest(op, input, output) output = &GetReservedInstancesExchangeQuoteOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // GetReservedInstancesExchangeQuote API operation for Amazon Elastic Compute Cloud. // // Returns details about the values and term of your specified Convertible Reserved -// Instances. When an offering ID is specified it returns information about -// whether the exchange is valid and can be performed. +// Instances. When a target configuration is specified, it returns information +// about whether the exchange is valid and can be performed. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -10979,6 +11924,7 @@ func (c *EC2) GetReservedInstancesExchangeQuoteRequest(input *GetReservedInstanc // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation GetReservedInstancesExchangeQuote for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetReservedInstancesExchangeQuote func (c *EC2) GetReservedInstancesExchangeQuote(input *GetReservedInstancesExchangeQuoteInput) (*GetReservedInstancesExchangeQuoteOutput, error) { req, out := c.GetReservedInstancesExchangeQuoteRequest(input) err := req.Send() @@ -11011,6 +11957,7 @@ const opImportImage = "ImportImage" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImage func (c *EC2) ImportImageRequest(input *ImportImageInput) (req *request.Request, output *ImportImageOutput) { op := &request.Operation{ Name: opImportImage, @@ -11022,9 +11969,8 @@ func (c *EC2) ImportImageRequest(input *ImportImageInput) (req *request.Request, input = &ImportImageInput{} } - req = c.newRequest(op, input, output) output = &ImportImageOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -11041,6 +11987,7 @@ func (c *EC2) ImportImageRequest(input *ImportImageInput) (req *request.Request, // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ImportImage for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImage func (c *EC2) ImportImage(input *ImportImageInput) (*ImportImageOutput, error) { req, out := c.ImportImageRequest(input) err := req.Send() @@ -11073,6 +12020,7 @@ const opImportInstance = "ImportInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstance func (c *EC2) ImportInstanceRequest(input *ImportInstanceInput) (req *request.Request, output *ImportInstanceOutput) { op := &request.Operation{ Name: opImportInstance, @@ -11084,9 +12032,8 @@ func (c *EC2) ImportInstanceRequest(input *ImportInstanceInput) (req *request.Re input = &ImportInstanceInput{} } - req = c.newRequest(op, input, output) output = &ImportInstanceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -11106,6 +12053,7 @@ func (c *EC2) ImportInstanceRequest(input *ImportInstanceInput) (req *request.Re // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ImportInstance for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstance func (c *EC2) ImportInstance(input *ImportInstanceInput) (*ImportInstanceOutput, error) { req, out := c.ImportInstanceRequest(input) err := req.Send() @@ -11138,6 +12086,7 @@ const opImportKeyPair = "ImportKeyPair" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPair func (c *EC2) ImportKeyPairRequest(input *ImportKeyPairInput) (req *request.Request, output *ImportKeyPairOutput) { op := &request.Operation{ Name: opImportKeyPair, @@ -11149,9 +12098,8 @@ func (c *EC2) ImportKeyPairRequest(input *ImportKeyPairInput) (req *request.Requ input = &ImportKeyPairInput{} } - req = c.newRequest(op, input, output) output = &ImportKeyPairOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -11172,6 +12120,7 @@ func (c *EC2) ImportKeyPairRequest(input *ImportKeyPairInput) (req *request.Requ // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ImportKeyPair for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPair func (c *EC2) ImportKeyPair(input *ImportKeyPairInput) (*ImportKeyPairOutput, error) { req, out := c.ImportKeyPairRequest(input) err := req.Send() @@ -11204,6 +12153,7 @@ const opImportSnapshot = "ImportSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshot func (c *EC2) ImportSnapshotRequest(input *ImportSnapshotInput) (req *request.Request, output *ImportSnapshotOutput) { op := &request.Operation{ Name: opImportSnapshot, @@ -11215,9 +12165,8 @@ func (c *EC2) ImportSnapshotRequest(input *ImportSnapshotInput) (req *request.Re input = &ImportSnapshotInput{} } - req = c.newRequest(op, input, output) output = &ImportSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -11231,6 +12180,7 @@ func (c *EC2) ImportSnapshotRequest(input *ImportSnapshotInput) (req *request.Re // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ImportSnapshot for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshot func (c *EC2) ImportSnapshot(input *ImportSnapshotInput) (*ImportSnapshotOutput, error) { req, out := c.ImportSnapshotRequest(input) err := req.Send() @@ -11263,6 +12213,7 @@ const opImportVolume = "ImportVolume" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolume func (c *EC2) ImportVolumeRequest(input *ImportVolumeInput) (req *request.Request, output *ImportVolumeOutput) { op := &request.Operation{ Name: opImportVolume, @@ -11274,9 +12225,8 @@ func (c *EC2) ImportVolumeRequest(input *ImportVolumeInput) (req *request.Reques input = &ImportVolumeInput{} } - req = c.newRequest(op, input, output) output = &ImportVolumeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -11294,6 +12244,7 @@ func (c *EC2) ImportVolumeRequest(input *ImportVolumeInput) (req *request.Reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ImportVolume for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolume func (c *EC2) ImportVolume(input *ImportVolumeInput) (*ImportVolumeOutput, error) { req, out := c.ImportVolumeRequest(input) err := req.Send() @@ -11326,6 +12277,7 @@ const opModifyHosts = "ModifyHosts" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyHosts func (c *EC2) ModifyHostsRequest(input *ModifyHostsInput) (req *request.Request, output *ModifyHostsOutput) { op := &request.Operation{ Name: opModifyHosts, @@ -11337,9 +12289,8 @@ func (c *EC2) ModifyHostsRequest(input *ModifyHostsInput) (req *request.Request, input = &ModifyHostsInput{} } - req = c.newRequest(op, input, output) output = &ModifyHostsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -11359,6 +12310,7 @@ func (c *EC2) ModifyHostsRequest(input *ModifyHostsInput) (req *request.Request, // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ModifyHosts for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyHosts func (c *EC2) ModifyHosts(input *ModifyHostsInput) (*ModifyHostsOutput, error) { req, out := c.ModifyHostsRequest(input) err := req.Send() @@ -11391,6 +12343,7 @@ const opModifyIdFormat = "ModifyIdFormat" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdFormat func (c *EC2) ModifyIdFormatRequest(input *ModifyIdFormatInput) (req *request.Request, output *ModifyIdFormatOutput) { op := &request.Operation{ Name: opModifyIdFormat, @@ -11402,11 +12355,10 @@ func (c *EC2) ModifyIdFormatRequest(input *ModifyIdFormatInput) (req *request.Re input = &ModifyIdFormatInput{} } + output = &ModifyIdFormatOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ModifyIdFormatOutput{} - req.Data = output return } @@ -11417,12 +12369,11 @@ func (c *EC2) ModifyIdFormatRequest(input *ModifyIdFormatInput) (req *request.Re // when they are created. The following resource types support longer IDs: instance // | reservation | snapshot | volume. // -// This setting applies to the IAM user who makes the request; it does not -// apply to the entire AWS account. By default, an IAM user defaults to the -// same settings as the root user. If you're using this action as the root user, -// then these settings apply to the entire account, unless an IAM user explicitly -// overrides these settings for themselves. For more information, see Resource -// IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html) +// This setting applies to the IAM user who makes the request; it does not apply +// to the entire AWS account. By default, an IAM user defaults to the same settings +// as the root user. If you're using this action as the root user, then these +// settings apply to the entire account, unless an IAM user explicitly overrides +// these settings for themselves. For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html) // in the Amazon Elastic Compute Cloud User Guide. // // Resources created with longer IDs are visible to all IAM roles and users, @@ -11435,6 +12386,7 @@ func (c *EC2) ModifyIdFormatRequest(input *ModifyIdFormatInput) (req *request.Re // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ModifyIdFormat for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdFormat func (c *EC2) ModifyIdFormat(input *ModifyIdFormatInput) (*ModifyIdFormatOutput, error) { req, out := c.ModifyIdFormatRequest(input) err := req.Send() @@ -11467,6 +12419,7 @@ const opModifyIdentityIdFormat = "ModifyIdentityIdFormat" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdentityIdFormat func (c *EC2) ModifyIdentityIdFormatRequest(input *ModifyIdentityIdFormatInput) (req *request.Request, output *ModifyIdentityIdFormatOutput) { op := &request.Operation{ Name: opModifyIdentityIdFormat, @@ -11478,11 +12431,10 @@ func (c *EC2) ModifyIdentityIdFormatRequest(input *ModifyIdentityIdFormatInput) input = &ModifyIdentityIdFormatInput{} } + output = &ModifyIdentityIdFormatOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ModifyIdentityIdFormatOutput{} - req.Data = output return } @@ -11493,12 +12445,12 @@ func (c *EC2) ModifyIdentityIdFormatRequest(input *ModifyIdentityIdFormatInput) // user for an account. You can specify that resources should receive longer // IDs (17-character IDs) when they are created. // -// The following resource types support longer IDs: instance | reservation -// | snapshot | volume. For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html) +// The following resource types support longer IDs: instance | reservation | +// snapshot | volume. For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html) // in the Amazon Elastic Compute Cloud User Guide. // -// This setting applies to the principal specified in the request; it does -// not apply to the principal that makes the request. +// This setting applies to the principal specified in the request; it does not +// apply to the principal that makes the request. // // Resources created with longer IDs are visible to all IAM roles and users, // regardless of these settings and provided that they have permission to use @@ -11510,6 +12462,7 @@ func (c *EC2) ModifyIdentityIdFormatRequest(input *ModifyIdentityIdFormatInput) // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ModifyIdentityIdFormat for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdentityIdFormat func (c *EC2) ModifyIdentityIdFormat(input *ModifyIdentityIdFormatInput) (*ModifyIdentityIdFormatOutput, error) { req, out := c.ModifyIdentityIdFormatRequest(input) err := req.Send() @@ -11542,6 +12495,7 @@ const opModifyImageAttribute = "ModifyImageAttribute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttribute func (c *EC2) ModifyImageAttributeRequest(input *ModifyImageAttributeInput) (req *request.Request, output *ModifyImageAttributeOutput) { op := &request.Operation{ Name: opModifyImageAttribute, @@ -11553,11 +12507,10 @@ func (c *EC2) ModifyImageAttributeRequest(input *ModifyImageAttributeInput) (req input = &ModifyImageAttributeInput{} } + output = &ModifyImageAttributeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ModifyImageAttributeOutput{} - req.Data = output return } @@ -11566,10 +12519,10 @@ func (c *EC2) ModifyImageAttributeRequest(input *ModifyImageAttributeInput) (req // Modifies the specified attribute of the specified AMI. You can specify only // one attribute at a time. // -// AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace +// AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace // product code cannot be made public. // -// The SriovNetSupport enhanced networking attribute cannot be changed using +// The SriovNetSupport enhanced networking attribute cannot be changed using // this command. Instead, enable SriovNetSupport on an instance and create an // AMI from the instance. This will result in an image with SriovNetSupport // enabled. @@ -11580,6 +12533,7 @@ func (c *EC2) ModifyImageAttributeRequest(input *ModifyImageAttributeInput) (req // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ModifyImageAttribute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttribute func (c *EC2) ModifyImageAttribute(input *ModifyImageAttributeInput) (*ModifyImageAttributeOutput, error) { req, out := c.ModifyImageAttributeRequest(input) err := req.Send() @@ -11612,6 +12566,7 @@ const opModifyInstanceAttribute = "ModifyInstanceAttribute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttribute func (c *EC2) ModifyInstanceAttributeRequest(input *ModifyInstanceAttributeInput) (req *request.Request, output *ModifyInstanceAttributeOutput) { op := &request.Operation{ Name: opModifyInstanceAttribute, @@ -11623,11 +12578,10 @@ func (c *EC2) ModifyInstanceAttributeRequest(input *ModifyInstanceAttributeInput input = &ModifyInstanceAttributeInput{} } + output = &ModifyInstanceAttributeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ModifyInstanceAttributeOutput{} - req.Data = output return } @@ -11646,6 +12600,7 @@ func (c *EC2) ModifyInstanceAttributeRequest(input *ModifyInstanceAttributeInput // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ModifyInstanceAttribute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttribute func (c *EC2) ModifyInstanceAttribute(input *ModifyInstanceAttributeInput) (*ModifyInstanceAttributeOutput, error) { req, out := c.ModifyInstanceAttributeRequest(input) err := req.Send() @@ -11678,6 +12633,7 @@ const opModifyInstancePlacement = "ModifyInstancePlacement" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstancePlacement func (c *EC2) ModifyInstancePlacementRequest(input *ModifyInstancePlacementInput) (req *request.Request, output *ModifyInstancePlacementOutput) { op := &request.Operation{ Name: opModifyInstancePlacement, @@ -11689,9 +12645,8 @@ func (c *EC2) ModifyInstancePlacementRequest(input *ModifyInstancePlacementInput input = &ModifyInstancePlacementInput{} } - req = c.newRequest(op, input, output) output = &ModifyInstancePlacementOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -11709,13 +12664,13 @@ func (c *EC2) ModifyInstancePlacementRequest(input *ModifyInstancePlacementInput // instance has a new host ID association, the instance will target that host // when restarted. // -// You can modify the tenancy of a stopped instance with a tenancy of host -// or dedicated. +// You can modify the tenancy of a stopped instance with a tenancy of host or +// dedicated. // -// Affinity, hostID, and tenancy are not required parameters, but at least -// one of them must be specified in the request. Affinity and tenancy can be -// modified in the same request, but tenancy can only be modified on instances -// that are stopped. +// Affinity, hostID, and tenancy are not required parameters, but at least one +// of them must be specified in the request. Affinity and tenancy can be modified +// in the same request, but tenancy can only be modified on instances that are +// stopped. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -11723,6 +12678,7 @@ func (c *EC2) ModifyInstancePlacementRequest(input *ModifyInstancePlacementInput // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ModifyInstancePlacement for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstancePlacement func (c *EC2) ModifyInstancePlacement(input *ModifyInstancePlacementInput) (*ModifyInstancePlacementOutput, error) { req, out := c.ModifyInstancePlacementRequest(input) err := req.Send() @@ -11755,6 +12711,7 @@ const opModifyNetworkInterfaceAttribute = "ModifyNetworkInterfaceAttribute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttribute func (c *EC2) ModifyNetworkInterfaceAttributeRequest(input *ModifyNetworkInterfaceAttributeInput) (req *request.Request, output *ModifyNetworkInterfaceAttributeOutput) { op := &request.Operation{ Name: opModifyNetworkInterfaceAttribute, @@ -11766,11 +12723,10 @@ func (c *EC2) ModifyNetworkInterfaceAttributeRequest(input *ModifyNetworkInterfa input = &ModifyNetworkInterfaceAttributeInput{} } + output = &ModifyNetworkInterfaceAttributeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ModifyNetworkInterfaceAttributeOutput{} - req.Data = output return } @@ -11785,6 +12741,7 @@ func (c *EC2) ModifyNetworkInterfaceAttributeRequest(input *ModifyNetworkInterfa // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ModifyNetworkInterfaceAttribute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttribute func (c *EC2) ModifyNetworkInterfaceAttribute(input *ModifyNetworkInterfaceAttributeInput) (*ModifyNetworkInterfaceAttributeOutput, error) { req, out := c.ModifyNetworkInterfaceAttributeRequest(input) err := req.Send() @@ -11817,6 +12774,7 @@ const opModifyReservedInstances = "ModifyReservedInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyReservedInstances func (c *EC2) ModifyReservedInstancesRequest(input *ModifyReservedInstancesInput) (req *request.Request, output *ModifyReservedInstancesOutput) { op := &request.Operation{ Name: opModifyReservedInstances, @@ -11828,9 +12786,8 @@ func (c *EC2) ModifyReservedInstancesRequest(input *ModifyReservedInstancesInput input = &ModifyReservedInstancesInput{} } - req = c.newRequest(op, input, output) output = &ModifyReservedInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -11850,6 +12807,7 @@ func (c *EC2) ModifyReservedInstancesRequest(input *ModifyReservedInstancesInput // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ModifyReservedInstances for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyReservedInstances func (c *EC2) ModifyReservedInstances(input *ModifyReservedInstancesInput) (*ModifyReservedInstancesOutput, error) { req, out := c.ModifyReservedInstancesRequest(input) err := req.Send() @@ -11882,6 +12840,7 @@ const opModifySnapshotAttribute = "ModifySnapshotAttribute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySnapshotAttribute func (c *EC2) ModifySnapshotAttributeRequest(input *ModifySnapshotAttributeInput) (req *request.Request, output *ModifySnapshotAttributeOutput) { op := &request.Operation{ Name: opModifySnapshotAttribute, @@ -11893,11 +12852,10 @@ func (c *EC2) ModifySnapshotAttributeRequest(input *ModifySnapshotAttributeInput input = &ModifySnapshotAttributeInput{} } + output = &ModifySnapshotAttributeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ModifySnapshotAttributeOutput{} - req.Data = output return } @@ -11909,11 +12867,11 @@ func (c *EC2) ModifySnapshotAttributeRequest(input *ModifySnapshotAttributeInput // both add and remove account IDs for a snapshot, you must use multiple API // calls. // -// Encrypted snapshots and snapshots with AWS Marketplace product codes cannot +// Encrypted snapshots and snapshots with AWS Marketplace product codes cannot // be made public. Snapshots encrypted with your default CMK cannot be shared // with other accounts. // -// For more information on modifying snapshot permissions, see Sharing Snapshots +// For more information on modifying snapshot permissions, see Sharing Snapshots // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html) // in the Amazon Elastic Compute Cloud User Guide. // @@ -11923,6 +12881,7 @@ func (c *EC2) ModifySnapshotAttributeRequest(input *ModifySnapshotAttributeInput // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ModifySnapshotAttribute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySnapshotAttribute func (c *EC2) ModifySnapshotAttribute(input *ModifySnapshotAttributeInput) (*ModifySnapshotAttributeOutput, error) { req, out := c.ModifySnapshotAttributeRequest(input) err := req.Send() @@ -11955,6 +12914,7 @@ const opModifySpotFleetRequest = "ModifySpotFleetRequest" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySpotFleetRequest func (c *EC2) ModifySpotFleetRequestRequest(input *ModifySpotFleetRequestInput) (req *request.Request, output *ModifySpotFleetRequestOutput) { op := &request.Operation{ Name: opModifySpotFleetRequest, @@ -11966,9 +12926,8 @@ func (c *EC2) ModifySpotFleetRequestRequest(input *ModifySpotFleetRequestInput) input = &ModifySpotFleetRequestInput{} } - req = c.newRequest(op, input, output) output = &ModifySpotFleetRequestOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -11985,10 +12944,10 @@ func (c *EC2) ModifySpotFleetRequestRequest(input *ModifySpotFleetRequestInput) // If the allocation strategy is diversified, the Spot fleet distributes the // instances across the Spot pools. // -// To scale down your Spot fleet, decrease its target capacity. First, the -// Spot fleet cancels any open bids that exceed the new target capacity. You -// can request that the Spot fleet terminate Spot instances until the size of -// the fleet no longer exceeds the new target capacity. If the allocation strategy +// To scale down your Spot fleet, decrease its target capacity. First, the Spot +// fleet cancels any open bids that exceed the new target capacity. You can +// request that the Spot fleet terminate Spot instances until the size of the +// fleet no longer exceeds the new target capacity. If the allocation strategy // is lowestPrice, the Spot fleet terminates the instances with the highest // price per unit. If the allocation strategy is diversified, the Spot fleet // terminates instances across the Spot pools. Alternatively, you can request @@ -12001,6 +12960,7 @@ func (c *EC2) ModifySpotFleetRequestRequest(input *ModifySpotFleetRequestInput) // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ModifySpotFleetRequest for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySpotFleetRequest func (c *EC2) ModifySpotFleetRequest(input *ModifySpotFleetRequestInput) (*ModifySpotFleetRequestOutput, error) { req, out := c.ModifySpotFleetRequestRequest(input) err := req.Send() @@ -12033,6 +12993,7 @@ const opModifySubnetAttribute = "ModifySubnetAttribute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySubnetAttribute func (c *EC2) ModifySubnetAttributeRequest(input *ModifySubnetAttributeInput) (req *request.Request, output *ModifySubnetAttributeOutput) { op := &request.Operation{ Name: opModifySubnetAttribute, @@ -12044,17 +13005,16 @@ func (c *EC2) ModifySubnetAttributeRequest(input *ModifySubnetAttributeInput) (r input = &ModifySubnetAttributeInput{} } + output = &ModifySubnetAttributeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ModifySubnetAttributeOutput{} - req.Data = output return } // ModifySubnetAttribute API operation for Amazon Elastic Compute Cloud. // -// Modifies a subnet attribute. +// Modifies a subnet attribute. You can only modify one attribute at a time. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -12062,12 +13022,105 @@ func (c *EC2) ModifySubnetAttributeRequest(input *ModifySubnetAttributeInput) (r // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ModifySubnetAttribute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySubnetAttribute func (c *EC2) ModifySubnetAttribute(input *ModifySubnetAttributeInput) (*ModifySubnetAttributeOutput, error) { req, out := c.ModifySubnetAttributeRequest(input) err := req.Send() return out, err } +const opModifyVolume = "ModifyVolume" + +// ModifyVolumeRequest generates a "aws/request.Request" representing the +// client's request for the ModifyVolume operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ModifyVolume for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ModifyVolume method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ModifyVolumeRequest method. +// req, resp := client.ModifyVolumeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolume +func (c *EC2) ModifyVolumeRequest(input *ModifyVolumeInput) (req *request.Request, output *ModifyVolumeOutput) { + op := &request.Operation{ + Name: opModifyVolume, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyVolumeInput{} + } + + output = &ModifyVolumeOutput{} + req = c.newRequest(op, input, output) + return +} + +// ModifyVolume API operation for Amazon Elastic Compute Cloud. +// +// You can modify several parameters of an existing EBS volume, including volume +// size, volume type, and IOPS capacity. If your EBS volume is attached to a +// current-generation EC2 instance type, you may be able to apply these changes +// without stopping the instance or detaching the volume from it. For more information +// about modifying an EBS volume running Linux, see Modifying the Size, IOPS, +// or Type of an EBS Volume on Linux (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html). +// For more information about modifying an EBS volume running Windows, see Modifying +// the Size, IOPS, or Type of an EBS Volume on Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html). +// +// When you complete a resize operation on your volume, you need to extend the +// volume's file-system size to take advantage of the new storage capacity. +// For information about extending a Linux file system, see Extending a Linux +// File System (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#recognize-expanded-volume-linux). +// For information about extending a Windows file system, see Extending a Windows +// File System (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html#recognize-expanded-volume-windows). +// +// You can use CloudWatch Events to check the status of a modification to an +// EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch +// Events User Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/). +// You can also track the status of a modification using the DescribeVolumesModifications +// API. For information about tracking status changes using either method, see +// Monitoring Volume Modifications (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods). +// +// With previous-generation instance types, resizing an EBS volume may require +// detaching and reattaching the volume or stopping and restarting the instance. +// For more information about modifying an EBS volume running Linux, see Modifying +// the Size, IOPS, or Type of an EBS Volume on Linux (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html). +// For more information about modifying an EBS volume running Windows, see Modifying +// the Size, IOPS, or Type of an EBS Volume on Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html). +// +// If you reach the maximum volume modification rate per volume limit, you will +// need to wait at least six hours before applying further modifications to +// the affected EBS volume. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ModifyVolume for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolume +func (c *EC2) ModifyVolume(input *ModifyVolumeInput) (*ModifyVolumeOutput, error) { + req, out := c.ModifyVolumeRequest(input) + err := req.Send() + return out, err +} + const opModifyVolumeAttribute = "ModifyVolumeAttribute" // ModifyVolumeAttributeRequest generates a "aws/request.Request" representing the @@ -12094,6 +13147,7 @@ const opModifyVolumeAttribute = "ModifyVolumeAttribute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeAttribute func (c *EC2) ModifyVolumeAttributeRequest(input *ModifyVolumeAttributeInput) (req *request.Request, output *ModifyVolumeAttributeOutput) { op := &request.Operation{ Name: opModifyVolumeAttribute, @@ -12105,11 +13159,10 @@ func (c *EC2) ModifyVolumeAttributeRequest(input *ModifyVolumeAttributeInput) (r input = &ModifyVolumeAttributeInput{} } + output = &ModifyVolumeAttributeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ModifyVolumeAttributeOutput{} - req.Data = output return } @@ -12132,6 +13185,7 @@ func (c *EC2) ModifyVolumeAttributeRequest(input *ModifyVolumeAttributeInput) (r // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ModifyVolumeAttribute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeAttribute func (c *EC2) ModifyVolumeAttribute(input *ModifyVolumeAttributeInput) (*ModifyVolumeAttributeOutput, error) { req, out := c.ModifyVolumeAttributeRequest(input) err := req.Send() @@ -12164,6 +13218,7 @@ const opModifyVpcAttribute = "ModifyVpcAttribute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttribute func (c *EC2) ModifyVpcAttributeRequest(input *ModifyVpcAttributeInput) (req *request.Request, output *ModifyVpcAttributeOutput) { op := &request.Operation{ Name: opModifyVpcAttribute, @@ -12175,11 +13230,10 @@ func (c *EC2) ModifyVpcAttributeRequest(input *ModifyVpcAttributeInput) (req *re input = &ModifyVpcAttributeInput{} } + output = &ModifyVpcAttributeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ModifyVpcAttributeOutput{} - req.Data = output return } @@ -12193,6 +13247,7 @@ func (c *EC2) ModifyVpcAttributeRequest(input *ModifyVpcAttributeInput) (req *re // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ModifyVpcAttribute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttribute func (c *EC2) ModifyVpcAttribute(input *ModifyVpcAttributeInput) (*ModifyVpcAttributeOutput, error) { req, out := c.ModifyVpcAttributeRequest(input) err := req.Send() @@ -12225,6 +13280,7 @@ const opModifyVpcEndpoint = "ModifyVpcEndpoint" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpoint func (c *EC2) ModifyVpcEndpointRequest(input *ModifyVpcEndpointInput) (req *request.Request, output *ModifyVpcEndpointOutput) { op := &request.Operation{ Name: opModifyVpcEndpoint, @@ -12236,9 +13292,8 @@ func (c *EC2) ModifyVpcEndpointRequest(input *ModifyVpcEndpointInput) (req *requ input = &ModifyVpcEndpointInput{} } - req = c.newRequest(op, input, output) output = &ModifyVpcEndpointOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -12254,6 +13309,7 @@ func (c *EC2) ModifyVpcEndpointRequest(input *ModifyVpcEndpointInput) (req *requ // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ModifyVpcEndpoint for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpoint func (c *EC2) ModifyVpcEndpoint(input *ModifyVpcEndpointInput) (*ModifyVpcEndpointOutput, error) { req, out := c.ModifyVpcEndpointRequest(input) err := req.Send() @@ -12286,6 +13342,7 @@ const opModifyVpcPeeringConnectionOptions = "ModifyVpcPeeringConnectionOptions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcPeeringConnectionOptions func (c *EC2) ModifyVpcPeeringConnectionOptionsRequest(input *ModifyVpcPeeringConnectionOptionsInput) (req *request.Request, output *ModifyVpcPeeringConnectionOptionsOutput) { op := &request.Operation{ Name: opModifyVpcPeeringConnectionOptions, @@ -12297,9 +13354,8 @@ func (c *EC2) ModifyVpcPeeringConnectionOptionsRequest(input *ModifyVpcPeeringCo input = &ModifyVpcPeeringConnectionOptionsInput{} } - req = c.newRequest(op, input, output) output = &ModifyVpcPeeringConnectionOptionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -12308,21 +13364,21 @@ func (c *EC2) ModifyVpcPeeringConnectionOptionsRequest(input *ModifyVpcPeeringCo // Modifies the VPC peering connection options on one side of a VPC peering // connection. You can do the following: // -// Enable/disable communication over the peering connection between an EC2-Classic -// instance that's linked to your VPC (using ClassicLink) and instances in the -// peer VPC. +// * Enable/disable communication over the peering connection between an +// EC2-Classic instance that's linked to your VPC (using ClassicLink) and +// instances in the peer VPC. // -// Enable/disable communication over the peering connection between instances -// in your VPC and an EC2-Classic instance that's linked to the peer VPC. +// * Enable/disable communication over the peering connection between instances +// in your VPC and an EC2-Classic instance that's linked to the peer VPC. // -// Enable/disable a local VPC to resolve public DNS hostnames to private -// IP addresses when queried from instances in the peer VPC. +// * Enable/disable a local VPC to resolve public DNS hostnames to private +// IP addresses when queried from instances in the peer VPC. // -// If the peered VPCs are in different accounts, each owner must initiate -// a separate request to modify the peering connection options, depending on -// whether their VPC was the requester or accepter for the VPC peering connection. -// If the peered VPCs are in the same account, you can modify the requester -// and accepter options in the same request. To confirm which VPC is the accepter +// If the peered VPCs are in different accounts, each owner must initiate a +// separate request to modify the peering connection options, depending on whether +// their VPC was the requester or accepter for the VPC peering connection. If +// the peered VPCs are in the same account, you can modify the requester and +// accepter options in the same request. To confirm which VPC is the accepter // and requester for a VPC peering connection, use the DescribeVpcPeeringConnections // command. // @@ -12332,6 +13388,7 @@ func (c *EC2) ModifyVpcPeeringConnectionOptionsRequest(input *ModifyVpcPeeringCo // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ModifyVpcPeeringConnectionOptions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcPeeringConnectionOptions func (c *EC2) ModifyVpcPeeringConnectionOptions(input *ModifyVpcPeeringConnectionOptionsInput) (*ModifyVpcPeeringConnectionOptionsOutput, error) { req, out := c.ModifyVpcPeeringConnectionOptionsRequest(input) err := req.Send() @@ -12364,6 +13421,7 @@ const opMonitorInstances = "MonitorInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MonitorInstances func (c *EC2) MonitorInstancesRequest(input *MonitorInstancesInput) (req *request.Request, output *MonitorInstancesOutput) { op := &request.Operation{ Name: opMonitorInstances, @@ -12375,24 +13433,27 @@ func (c *EC2) MonitorInstancesRequest(input *MonitorInstancesInput) (req *reques input = &MonitorInstancesInput{} } - req = c.newRequest(op, input, output) output = &MonitorInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // MonitorInstances API operation for Amazon Elastic Compute Cloud. // -// Enables monitoring for a running instance. For more information about monitoring -// instances, see Monitoring Your Instances and Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html) +// Enables detailed monitoring for a running instance. Otherwise, basic monitoring +// is enabled. For more information, see Monitoring Your Instances and Volumes +// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html) // in the Amazon Elastic Compute Cloud User Guide. // +// To disable detailed monitoring, see . +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation MonitorInstances for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MonitorInstances func (c *EC2) MonitorInstances(input *MonitorInstancesInput) (*MonitorInstancesOutput, error) { req, out := c.MonitorInstancesRequest(input) err := req.Send() @@ -12425,6 +13486,7 @@ const opMoveAddressToVpc = "MoveAddressToVpc" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveAddressToVpc func (c *EC2) MoveAddressToVpcRequest(input *MoveAddressToVpcInput) (req *request.Request, output *MoveAddressToVpcOutput) { op := &request.Operation{ Name: opMoveAddressToVpc, @@ -12436,9 +13498,8 @@ func (c *EC2) MoveAddressToVpcRequest(input *MoveAddressToVpcInput) (req *reques input = &MoveAddressToVpcInput{} } - req = c.newRequest(op, input, output) output = &MoveAddressToVpcOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -12458,6 +13519,7 @@ func (c *EC2) MoveAddressToVpcRequest(input *MoveAddressToVpcInput) (req *reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation MoveAddressToVpc for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveAddressToVpc func (c *EC2) MoveAddressToVpc(input *MoveAddressToVpcInput) (*MoveAddressToVpcOutput, error) { req, out := c.MoveAddressToVpcRequest(input) err := req.Send() @@ -12490,6 +13552,7 @@ const opPurchaseHostReservation = "PurchaseHostReservation" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseHostReservation func (c *EC2) PurchaseHostReservationRequest(input *PurchaseHostReservationInput) (req *request.Request, output *PurchaseHostReservationOutput) { op := &request.Operation{ Name: opPurchaseHostReservation, @@ -12501,9 +13564,8 @@ func (c *EC2) PurchaseHostReservationRequest(input *PurchaseHostReservationInput input = &PurchaseHostReservationInput{} } - req = c.newRequest(op, input, output) output = &PurchaseHostReservationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -12520,6 +13582,7 @@ func (c *EC2) PurchaseHostReservationRequest(input *PurchaseHostReservationInput // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation PurchaseHostReservation for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseHostReservation func (c *EC2) PurchaseHostReservation(input *PurchaseHostReservationInput) (*PurchaseHostReservationOutput, error) { req, out := c.PurchaseHostReservationRequest(input) err := req.Send() @@ -12552,6 +13615,7 @@ const opPurchaseReservedInstancesOffering = "PurchaseReservedInstancesOffering" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseReservedInstancesOffering func (c *EC2) PurchaseReservedInstancesOfferingRequest(input *PurchaseReservedInstancesOfferingInput) (req *request.Request, output *PurchaseReservedInstancesOfferingOutput) { op := &request.Operation{ Name: opPurchaseReservedInstancesOffering, @@ -12563,9 +13627,8 @@ func (c *EC2) PurchaseReservedInstancesOfferingRequest(input *PurchaseReservedIn input = &PurchaseReservedInstancesOfferingInput{} } - req = c.newRequest(op, input, output) output = &PurchaseReservedInstancesOfferingOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -12588,6 +13651,7 @@ func (c *EC2) PurchaseReservedInstancesOfferingRequest(input *PurchaseReservedIn // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation PurchaseReservedInstancesOffering for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseReservedInstancesOffering func (c *EC2) PurchaseReservedInstancesOffering(input *PurchaseReservedInstancesOfferingInput) (*PurchaseReservedInstancesOfferingOutput, error) { req, out := c.PurchaseReservedInstancesOfferingRequest(input) err := req.Send() @@ -12620,6 +13684,7 @@ const opPurchaseScheduledInstances = "PurchaseScheduledInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseScheduledInstances func (c *EC2) PurchaseScheduledInstancesRequest(input *PurchaseScheduledInstancesInput) (req *request.Request, output *PurchaseScheduledInstancesOutput) { op := &request.Operation{ Name: opPurchaseScheduledInstances, @@ -12631,9 +13696,8 @@ func (c *EC2) PurchaseScheduledInstancesRequest(input *PurchaseScheduledInstance input = &PurchaseScheduledInstancesInput{} } - req = c.newRequest(op, input, output) output = &PurchaseScheduledInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -12656,6 +13720,7 @@ func (c *EC2) PurchaseScheduledInstancesRequest(input *PurchaseScheduledInstance // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation PurchaseScheduledInstances for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseScheduledInstances func (c *EC2) PurchaseScheduledInstances(input *PurchaseScheduledInstancesInput) (*PurchaseScheduledInstancesOutput, error) { req, out := c.PurchaseScheduledInstancesRequest(input) err := req.Send() @@ -12688,6 +13753,7 @@ const opRebootInstances = "RebootInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RebootInstances func (c *EC2) RebootInstancesRequest(input *RebootInstancesInput) (req *request.Request, output *RebootInstancesOutput) { op := &request.Operation{ Name: opRebootInstances, @@ -12699,11 +13765,10 @@ func (c *EC2) RebootInstancesRequest(input *RebootInstancesInput) (req *request. input = &RebootInstancesInput{} } + output = &RebootInstancesOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RebootInstancesOutput{} - req.Data = output return } @@ -12727,6 +13792,7 @@ func (c *EC2) RebootInstancesRequest(input *RebootInstancesInput) (req *request. // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation RebootInstances for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RebootInstances func (c *EC2) RebootInstances(input *RebootInstancesInput) (*RebootInstancesOutput, error) { req, out := c.RebootInstancesRequest(input) err := req.Send() @@ -12759,6 +13825,7 @@ const opRegisterImage = "RegisterImage" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterImage func (c *EC2) RegisterImageRequest(input *RegisterImageInput) (req *request.Request, output *RegisterImageOutput) { op := &request.Operation{ Name: opRegisterImage, @@ -12770,9 +13837,8 @@ func (c *EC2) RegisterImageRequest(input *RegisterImageInput) (req *request.Requ input = &RegisterImageInput{} } - req = c.newRequest(op, input, output) output = &RegisterImageOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -12783,41 +13849,38 @@ func (c *EC2) RegisterImageRequest(input *RegisterImageInput) (req *request.Requ // about creating AMIs, see Creating Your Own AMIs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html) // in the Amazon Elastic Compute Cloud User Guide. // -// For Amazon EBS-backed instances, CreateImage creates and registers the -// AMI in a single request, so you don't have to register the AMI yourself. +// For Amazon EBS-backed instances, CreateImage creates and registers the AMI +// in a single request, so you don't have to register the AMI yourself. // -// You can also use RegisterImage to create an Amazon EBS-backed Linux AMI -// from a snapshot of a root device volume. For more information, see Launching -// an Instance from a Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_LaunchingInstanceFromSnapshot.html) +// You can also use RegisterImage to create an Amazon EBS-backed Linux AMI from +// a snapshot of a root device volume. You specify the snapshot using the block +// device mapping. For more information, see Launching an Instance from a Snapshot +// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_LaunchingInstanceFromSnapshot.html) // in the Amazon Elastic Compute Cloud User Guide. // -// Some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE -// Linux Enterprise Server (SLES), use the EC2 billingProduct code associated -// with an AMI to verify subscription status for package updates. Creating an -// AMI from an EBS snapshot does not maintain this billing code, and subsequent -// instances launched from such an AMI will not be able to connect to package -// update infrastructure. -// -// Similarly, although you can create a Windows AMI from a snapshot, you can't -// successfully launch an instance from the AMI. +// You can't register an image where a secondary (non-root) snapshot has AWS +// Marketplace product codes. // -// To create Windows AMIs or to create AMIs for Linux operating systems that -// must retain AMI billing codes to work properly, see CreateImage. +// Some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE +// Linux Enterprise Server (SLES), use the EC2 billing product code associated +// with an AMI to verify the subscription status for package updates. Creating +// an AMI from an EBS snapshot does not maintain this billing code, and subsequent +// instances launched from such an AMI will not be able to connect to package +// update infrastructure. To create an AMI that must retain billing codes, see +// CreateImage. // -// If needed, you can deregister an AMI at any time. Any modifications you -// make to an AMI backed by an instance store volume invalidates its registration. +// If needed, you can deregister an AMI at any time. Any modifications you make +// to an AMI backed by an instance store volume invalidates its registration. // If you make changes to an image, deregister the previous image and register // the new image. // -// You can't register an image where a secondary (non-root) snapshot has AWS -// Marketplace product codes. -// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation RegisterImage for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterImage func (c *EC2) RegisterImage(input *RegisterImageInput) (*RegisterImageOutput, error) { req, out := c.RegisterImageRequest(input) err := req.Send() @@ -12850,6 +13913,7 @@ const opRejectVpcPeeringConnection = "RejectVpcPeeringConnection" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcPeeringConnection func (c *EC2) RejectVpcPeeringConnectionRequest(input *RejectVpcPeeringConnectionInput) (req *request.Request, output *RejectVpcPeeringConnectionOutput) { op := &request.Operation{ Name: opRejectVpcPeeringConnection, @@ -12861,9 +13925,8 @@ func (c *EC2) RejectVpcPeeringConnectionRequest(input *RejectVpcPeeringConnectio input = &RejectVpcPeeringConnectionInput{} } - req = c.newRequest(op, input, output) output = &RejectVpcPeeringConnectionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -12881,6 +13944,7 @@ func (c *EC2) RejectVpcPeeringConnectionRequest(input *RejectVpcPeeringConnectio // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation RejectVpcPeeringConnection for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcPeeringConnection func (c *EC2) RejectVpcPeeringConnection(input *RejectVpcPeeringConnectionInput) (*RejectVpcPeeringConnectionOutput, error) { req, out := c.RejectVpcPeeringConnectionRequest(input) err := req.Send() @@ -12913,6 +13977,7 @@ const opReleaseAddress = "ReleaseAddress" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseAddress func (c *EC2) ReleaseAddressRequest(input *ReleaseAddressInput) (req *request.Request, output *ReleaseAddressOutput) { op := &request.Operation{ Name: opReleaseAddress, @@ -12924,11 +13989,10 @@ func (c *EC2) ReleaseAddressRequest(input *ReleaseAddressInput) (req *request.Re input = &ReleaseAddressInput{} } + output = &ReleaseAddressOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ReleaseAddressOutput{} - req.Data = output return } @@ -12936,11 +14000,11 @@ func (c *EC2) ReleaseAddressRequest(input *ReleaseAddressInput) (req *request.Re // // Releases the specified Elastic IP address. // -// After releasing an Elastic IP address, it is released to the IP address -// pool and might be unavailable to you. Be sure to update your DNS records -// and any servers or devices that communicate with the address. If you attempt -// to release an Elastic IP address that you already released, you'll get an -// AuthFailure error if the address is already allocated to another AWS account. +// After releasing an Elastic IP address, it is released to the IP address pool +// and might be unavailable to you. Be sure to update your DNS records and any +// servers or devices that communicate with the address. If you attempt to release +// an Elastic IP address that you already released, you'll get an AuthFailure +// error if the address is already allocated to another AWS account. // // [EC2-Classic, default VPC] Releasing an Elastic IP address automatically // disassociates it from any instance that it's associated with. To disassociate @@ -12956,6 +14020,7 @@ func (c *EC2) ReleaseAddressRequest(input *ReleaseAddressInput) (req *request.Re // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ReleaseAddress for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseAddress func (c *EC2) ReleaseAddress(input *ReleaseAddressInput) (*ReleaseAddressOutput, error) { req, out := c.ReleaseAddressRequest(input) err := req.Send() @@ -12988,6 +14053,7 @@ const opReleaseHosts = "ReleaseHosts" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseHosts func (c *EC2) ReleaseHostsRequest(input *ReleaseHostsInput) (req *request.Request, output *ReleaseHostsOutput) { op := &request.Operation{ Name: opReleaseHosts, @@ -12999,9 +14065,8 @@ func (c *EC2) ReleaseHostsRequest(input *ReleaseHostsInput) (req *request.Reques input = &ReleaseHostsInput{} } - req = c.newRequest(op, input, output) output = &ReleaseHostsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -13026,12 +14091,78 @@ func (c *EC2) ReleaseHostsRequest(input *ReleaseHostsInput) (req *request.Reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ReleaseHosts for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseHosts func (c *EC2) ReleaseHosts(input *ReleaseHostsInput) (*ReleaseHostsOutput, error) { req, out := c.ReleaseHostsRequest(input) err := req.Send() return out, err } +const opReplaceIamInstanceProfileAssociation = "ReplaceIamInstanceProfileAssociation" + +// ReplaceIamInstanceProfileAssociationRequest generates a "aws/request.Request" representing the +// client's request for the ReplaceIamInstanceProfileAssociation operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ReplaceIamInstanceProfileAssociation for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ReplaceIamInstanceProfileAssociation method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ReplaceIamInstanceProfileAssociationRequest method. +// req, resp := client.ReplaceIamInstanceProfileAssociationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceIamInstanceProfileAssociation +func (c *EC2) ReplaceIamInstanceProfileAssociationRequest(input *ReplaceIamInstanceProfileAssociationInput) (req *request.Request, output *ReplaceIamInstanceProfileAssociationOutput) { + op := &request.Operation{ + Name: opReplaceIamInstanceProfileAssociation, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ReplaceIamInstanceProfileAssociationInput{} + } + + output = &ReplaceIamInstanceProfileAssociationOutput{} + req = c.newRequest(op, input, output) + return +} + +// ReplaceIamInstanceProfileAssociation API operation for Amazon Elastic Compute Cloud. +// +// Replaces an IAM instance profile for the specified running instance. You +// can use this action to change the IAM instance profile that's associated +// with an instance without having to disassociate the existing IAM instance +// profile first. +// +// Use DescribeIamInstanceProfileAssociations to get the association ID. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ReplaceIamInstanceProfileAssociation for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceIamInstanceProfileAssociation +func (c *EC2) ReplaceIamInstanceProfileAssociation(input *ReplaceIamInstanceProfileAssociationInput) (*ReplaceIamInstanceProfileAssociationOutput, error) { + req, out := c.ReplaceIamInstanceProfileAssociationRequest(input) + err := req.Send() + return out, err +} + const opReplaceNetworkAclAssociation = "ReplaceNetworkAclAssociation" // ReplaceNetworkAclAssociationRequest generates a "aws/request.Request" representing the @@ -13058,6 +14189,7 @@ const opReplaceNetworkAclAssociation = "ReplaceNetworkAclAssociation" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclAssociation func (c *EC2) ReplaceNetworkAclAssociationRequest(input *ReplaceNetworkAclAssociationInput) (req *request.Request, output *ReplaceNetworkAclAssociationOutput) { op := &request.Operation{ Name: opReplaceNetworkAclAssociation, @@ -13069,9 +14201,8 @@ func (c *EC2) ReplaceNetworkAclAssociationRequest(input *ReplaceNetworkAclAssoci input = &ReplaceNetworkAclAssociationInput{} } - req = c.newRequest(op, input, output) output = &ReplaceNetworkAclAssociationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -13088,6 +14219,7 @@ func (c *EC2) ReplaceNetworkAclAssociationRequest(input *ReplaceNetworkAclAssoci // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ReplaceNetworkAclAssociation for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclAssociation func (c *EC2) ReplaceNetworkAclAssociation(input *ReplaceNetworkAclAssociationInput) (*ReplaceNetworkAclAssociationOutput, error) { req, out := c.ReplaceNetworkAclAssociationRequest(input) err := req.Send() @@ -13120,6 +14252,7 @@ const opReplaceNetworkAclEntry = "ReplaceNetworkAclEntry" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclEntry func (c *EC2) ReplaceNetworkAclEntryRequest(input *ReplaceNetworkAclEntryInput) (req *request.Request, output *ReplaceNetworkAclEntryOutput) { op := &request.Operation{ Name: opReplaceNetworkAclEntry, @@ -13131,11 +14264,10 @@ func (c *EC2) ReplaceNetworkAclEntryRequest(input *ReplaceNetworkAclEntryInput) input = &ReplaceNetworkAclEntryInput{} } + output = &ReplaceNetworkAclEntryOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ReplaceNetworkAclEntryOutput{} - req.Data = output return } @@ -13151,6 +14283,7 @@ func (c *EC2) ReplaceNetworkAclEntryRequest(input *ReplaceNetworkAclEntryInput) // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ReplaceNetworkAclEntry for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclEntry func (c *EC2) ReplaceNetworkAclEntry(input *ReplaceNetworkAclEntryInput) (*ReplaceNetworkAclEntryOutput, error) { req, out := c.ReplaceNetworkAclEntryRequest(input) err := req.Send() @@ -13183,6 +14316,7 @@ const opReplaceRoute = "ReplaceRoute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRoute func (c *EC2) ReplaceRouteRequest(input *ReplaceRouteInput) (req *request.Request, output *ReplaceRouteOutput) { op := &request.Operation{ Name: opReplaceRoute, @@ -13194,11 +14328,10 @@ func (c *EC2) ReplaceRouteRequest(input *ReplaceRouteInput) (req *request.Reques input = &ReplaceRouteInput{} } + output = &ReplaceRouteOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ReplaceRouteOutput{} - req.Data = output return } @@ -13206,7 +14339,8 @@ func (c *EC2) ReplaceRouteRequest(input *ReplaceRouteInput) (req *request.Reques // // Replaces an existing route within a route table in a VPC. You must provide // only one of the following: Internet gateway or virtual private gateway, NAT -// instance, NAT gateway, VPC peering connection, or network interface. +// instance, NAT gateway, VPC peering connection, network interface, or egress-only +// Internet gateway. // // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html) // in the Amazon Virtual Private Cloud User Guide. @@ -13217,6 +14351,7 @@ func (c *EC2) ReplaceRouteRequest(input *ReplaceRouteInput) (req *request.Reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ReplaceRoute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRoute func (c *EC2) ReplaceRoute(input *ReplaceRouteInput) (*ReplaceRouteOutput, error) { req, out := c.ReplaceRouteRequest(input) err := req.Send() @@ -13249,6 +14384,7 @@ const opReplaceRouteTableAssociation = "ReplaceRouteTableAssociation" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteTableAssociation func (c *EC2) ReplaceRouteTableAssociationRequest(input *ReplaceRouteTableAssociationInput) (req *request.Request, output *ReplaceRouteTableAssociationOutput) { op := &request.Operation{ Name: opReplaceRouteTableAssociation, @@ -13260,9 +14396,8 @@ func (c *EC2) ReplaceRouteTableAssociationRequest(input *ReplaceRouteTableAssoci input = &ReplaceRouteTableAssociationInput{} } - req = c.newRequest(op, input, output) output = &ReplaceRouteTableAssociationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -13284,6 +14419,7 @@ func (c *EC2) ReplaceRouteTableAssociationRequest(input *ReplaceRouteTableAssoci // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ReplaceRouteTableAssociation for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteTableAssociation func (c *EC2) ReplaceRouteTableAssociation(input *ReplaceRouteTableAssociationInput) (*ReplaceRouteTableAssociationOutput, error) { req, out := c.ReplaceRouteTableAssociationRequest(input) err := req.Send() @@ -13316,6 +14452,7 @@ const opReportInstanceStatus = "ReportInstanceStatus" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReportInstanceStatus func (c *EC2) ReportInstanceStatusRequest(input *ReportInstanceStatusInput) (req *request.Request, output *ReportInstanceStatusOutput) { op := &request.Operation{ Name: opReportInstanceStatus, @@ -13327,11 +14464,10 @@ func (c *EC2) ReportInstanceStatusRequest(input *ReportInstanceStatusInput) (req input = &ReportInstanceStatusInput{} } + output = &ReportInstanceStatusOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ReportInstanceStatusOutput{} - req.Data = output return } @@ -13351,6 +14487,7 @@ func (c *EC2) ReportInstanceStatusRequest(input *ReportInstanceStatusInput) (req // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ReportInstanceStatus for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReportInstanceStatus func (c *EC2) ReportInstanceStatus(input *ReportInstanceStatusInput) (*ReportInstanceStatusOutput, error) { req, out := c.ReportInstanceStatusRequest(input) err := req.Send() @@ -13383,6 +14520,7 @@ const opRequestSpotFleet = "RequestSpotFleet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotFleet func (c *EC2) RequestSpotFleetRequest(input *RequestSpotFleetInput) (req *request.Request, output *RequestSpotFleetOutput) { op := &request.Operation{ Name: opRequestSpotFleet, @@ -13394,9 +14532,8 @@ func (c *EC2) RequestSpotFleetRequest(input *RequestSpotFleetInput) (req *reques input = &RequestSpotFleetInput{} } - req = c.newRequest(op, input, output) output = &RequestSpotFleetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -13426,6 +14563,7 @@ func (c *EC2) RequestSpotFleetRequest(input *RequestSpotFleetInput) (req *reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation RequestSpotFleet for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotFleet func (c *EC2) RequestSpotFleet(input *RequestSpotFleetInput) (*RequestSpotFleetOutput, error) { req, out := c.RequestSpotFleetRequest(input) err := req.Send() @@ -13458,6 +14596,7 @@ const opRequestSpotInstances = "RequestSpotInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotInstances func (c *EC2) RequestSpotInstancesRequest(input *RequestSpotInstancesInput) (req *request.Request, output *RequestSpotInstancesOutput) { op := &request.Operation{ Name: opRequestSpotInstances, @@ -13469,9 +14608,8 @@ func (c *EC2) RequestSpotInstancesRequest(input *RequestSpotInstancesInput) (req input = &RequestSpotInstancesInput{} } - req = c.newRequest(op, input, output) output = &RequestSpotInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -13490,6 +14628,7 @@ func (c *EC2) RequestSpotInstancesRequest(input *RequestSpotInstancesInput) (req // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation RequestSpotInstances for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotInstances func (c *EC2) RequestSpotInstances(input *RequestSpotInstancesInput) (*RequestSpotInstancesOutput, error) { req, out := c.RequestSpotInstancesRequest(input) err := req.Send() @@ -13522,6 +14661,7 @@ const opResetImageAttribute = "ResetImageAttribute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetImageAttribute func (c *EC2) ResetImageAttributeRequest(input *ResetImageAttributeInput) (req *request.Request, output *ResetImageAttributeOutput) { op := &request.Operation{ Name: opResetImageAttribute, @@ -13533,11 +14673,10 @@ func (c *EC2) ResetImageAttributeRequest(input *ResetImageAttributeInput) (req * input = &ResetImageAttributeInput{} } + output = &ResetImageAttributeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ResetImageAttributeOutput{} - req.Data = output return } @@ -13545,7 +14684,7 @@ func (c *EC2) ResetImageAttributeRequest(input *ResetImageAttributeInput) (req * // // Resets an attribute of an AMI to its default value. // -// The productCodes attribute can't be reset. +// The productCodes attribute can't be reset. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -13553,6 +14692,7 @@ func (c *EC2) ResetImageAttributeRequest(input *ResetImageAttributeInput) (req * // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ResetImageAttribute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetImageAttribute func (c *EC2) ResetImageAttribute(input *ResetImageAttributeInput) (*ResetImageAttributeOutput, error) { req, out := c.ResetImageAttributeRequest(input) err := req.Send() @@ -13585,6 +14725,7 @@ const opResetInstanceAttribute = "ResetInstanceAttribute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetInstanceAttribute func (c *EC2) ResetInstanceAttributeRequest(input *ResetInstanceAttributeInput) (req *request.Request, output *ResetInstanceAttributeOutput) { op := &request.Operation{ Name: opResetInstanceAttribute, @@ -13596,11 +14737,10 @@ func (c *EC2) ResetInstanceAttributeRequest(input *ResetInstanceAttributeInput) input = &ResetInstanceAttributeInput{} } + output = &ResetInstanceAttributeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ResetInstanceAttributeOutput{} - req.Data = output return } @@ -13622,6 +14762,7 @@ func (c *EC2) ResetInstanceAttributeRequest(input *ResetInstanceAttributeInput) // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ResetInstanceAttribute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetInstanceAttribute func (c *EC2) ResetInstanceAttribute(input *ResetInstanceAttributeInput) (*ResetInstanceAttributeOutput, error) { req, out := c.ResetInstanceAttributeRequest(input) err := req.Send() @@ -13654,6 +14795,7 @@ const opResetNetworkInterfaceAttribute = "ResetNetworkInterfaceAttribute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetNetworkInterfaceAttribute func (c *EC2) ResetNetworkInterfaceAttributeRequest(input *ResetNetworkInterfaceAttributeInput) (req *request.Request, output *ResetNetworkInterfaceAttributeOutput) { op := &request.Operation{ Name: opResetNetworkInterfaceAttribute, @@ -13665,11 +14807,10 @@ func (c *EC2) ResetNetworkInterfaceAttributeRequest(input *ResetNetworkInterface input = &ResetNetworkInterfaceAttributeInput{} } + output = &ResetNetworkInterfaceAttributeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ResetNetworkInterfaceAttributeOutput{} - req.Data = output return } @@ -13684,6 +14825,7 @@ func (c *EC2) ResetNetworkInterfaceAttributeRequest(input *ResetNetworkInterface // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ResetNetworkInterfaceAttribute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetNetworkInterfaceAttribute func (c *EC2) ResetNetworkInterfaceAttribute(input *ResetNetworkInterfaceAttributeInput) (*ResetNetworkInterfaceAttributeOutput, error) { req, out := c.ResetNetworkInterfaceAttributeRequest(input) err := req.Send() @@ -13716,6 +14858,7 @@ const opResetSnapshotAttribute = "ResetSnapshotAttribute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetSnapshotAttribute func (c *EC2) ResetSnapshotAttributeRequest(input *ResetSnapshotAttributeInput) (req *request.Request, output *ResetSnapshotAttributeOutput) { op := &request.Operation{ Name: opResetSnapshotAttribute, @@ -13727,11 +14870,10 @@ func (c *EC2) ResetSnapshotAttributeRequest(input *ResetSnapshotAttributeInput) input = &ResetSnapshotAttributeInput{} } + output = &ResetSnapshotAttributeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ResetSnapshotAttributeOutput{} - req.Data = output return } @@ -13749,6 +14891,7 @@ func (c *EC2) ResetSnapshotAttributeRequest(input *ResetSnapshotAttributeInput) // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation ResetSnapshotAttribute for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetSnapshotAttribute func (c *EC2) ResetSnapshotAttribute(input *ResetSnapshotAttributeInput) (*ResetSnapshotAttributeOutput, error) { req, out := c.ResetSnapshotAttributeRequest(input) err := req.Send() @@ -13781,6 +14924,7 @@ const opRestoreAddressToClassic = "RestoreAddressToClassic" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassic func (c *EC2) RestoreAddressToClassicRequest(input *RestoreAddressToClassicInput) (req *request.Request, output *RestoreAddressToClassicOutput) { op := &request.Operation{ Name: opRestoreAddressToClassic, @@ -13792,9 +14936,8 @@ func (c *EC2) RestoreAddressToClassicRequest(input *RestoreAddressToClassicInput input = &RestoreAddressToClassicInput{} } - req = c.newRequest(op, input, output) output = &RestoreAddressToClassicOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -13811,6 +14954,7 @@ func (c *EC2) RestoreAddressToClassicRequest(input *RestoreAddressToClassicInput // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation RestoreAddressToClassic for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassic func (c *EC2) RestoreAddressToClassic(input *RestoreAddressToClassicInput) (*RestoreAddressToClassicOutput, error) { req, out := c.RestoreAddressToClassicRequest(input) err := req.Send() @@ -13843,6 +14987,7 @@ const opRevokeSecurityGroupEgress = "RevokeSecurityGroupEgress" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupEgress func (c *EC2) RevokeSecurityGroupEgressRequest(input *RevokeSecurityGroupEgressInput) (req *request.Request, output *RevokeSecurityGroupEgressOutput) { op := &request.Operation{ Name: opRevokeSecurityGroupEgress, @@ -13854,11 +14999,10 @@ func (c *EC2) RevokeSecurityGroupEgressRequest(input *RevokeSecurityGroupEgressI input = &RevokeSecurityGroupEgressInput{} } + output = &RevokeSecurityGroupEgressOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RevokeSecurityGroupEgressOutput{} - req.Data = output return } @@ -13869,10 +15013,10 @@ func (c *EC2) RevokeSecurityGroupEgressRequest(input *RevokeSecurityGroupEgressI // The values that you specify in the revoke request (for example, ports) must // match the existing rule's values for the rule to be revoked. // -// Each rule consists of the protocol and the CIDR range or source security -// group. For the TCP and UDP protocols, you must also specify the destination -// port or range of ports. For the ICMP protocol, you must also specify the -// ICMP type and code. +// Each rule consists of the protocol and the IPv4 or IPv6 CIDR range or source +// security group. For the TCP and UDP protocols, you must also specify the +// destination port or range of ports. For the ICMP protocol, you must also +// specify the ICMP type and code. // // Rule changes are propagated to instances within the security group as quickly // as possible. However, a small delay might occur. @@ -13883,6 +15027,7 @@ func (c *EC2) RevokeSecurityGroupEgressRequest(input *RevokeSecurityGroupEgressI // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation RevokeSecurityGroupEgress for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupEgress func (c *EC2) RevokeSecurityGroupEgress(input *RevokeSecurityGroupEgressInput) (*RevokeSecurityGroupEgressOutput, error) { req, out := c.RevokeSecurityGroupEgressRequest(input) err := req.Send() @@ -13915,6 +15060,7 @@ const opRevokeSecurityGroupIngress = "RevokeSecurityGroupIngress" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupIngress func (c *EC2) RevokeSecurityGroupIngressRequest(input *RevokeSecurityGroupIngressInput) (req *request.Request, output *RevokeSecurityGroupIngressOutput) { op := &request.Operation{ Name: opRevokeSecurityGroupIngress, @@ -13926,11 +15072,10 @@ func (c *EC2) RevokeSecurityGroupIngressRequest(input *RevokeSecurityGroupIngres input = &RevokeSecurityGroupIngressInput{} } + output = &RevokeSecurityGroupIngressOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RevokeSecurityGroupIngressOutput{} - req.Data = output return } @@ -13954,6 +15099,7 @@ func (c *EC2) RevokeSecurityGroupIngressRequest(input *RevokeSecurityGroupIngres // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation RevokeSecurityGroupIngress for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupIngress func (c *EC2) RevokeSecurityGroupIngress(input *RevokeSecurityGroupIngressInput) (*RevokeSecurityGroupIngressOutput, error) { req, out := c.RevokeSecurityGroupIngressRequest(input) err := req.Send() @@ -13986,6 +15132,7 @@ const opRunInstances = "RunInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstances func (c *EC2) RunInstancesRequest(input *RunInstancesInput) (req *request.Request, output *Reservation) { op := &request.Operation{ Name: opRunInstances, @@ -13997,9 +15144,8 @@ func (c *EC2) RunInstancesRequest(input *RunInstancesInput) (req *request.Reques input = &RunInstancesInput{} } - req = c.newRequest(op, input, output) output = &Reservation{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -14008,28 +15154,41 @@ func (c *EC2) RunInstancesRequest(input *RunInstancesInput) (req *request.Reques // Launches the specified number of instances using an AMI for which you have // permissions. // -// When you launch an instance, it enters the pending state. After the instance -// is ready for you, it enters the running state. To check the state of your -// instance, call DescribeInstances. +// You can specify a number of options, or leave the default options. The following +// rules apply: // -// To ensure faster instance launches, break up large requests into smaller -// batches. For example, create five separate launch requests for 100 instances -// each instead of one launch request for 500 instances. +// * [EC2-VPC] If you don't specify a subnet ID, we choose a default subnet +// from your default VPC for you. If you don't have a default VPC, you must +// specify a subnet ID in the request. // -// To tag your instance, ensure that it is running as CreateTags requires a -// resource ID. For more information about tagging, see Tagging Your Amazon -// EC2 Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html). +// * [EC2-Classic] If don't specify an Availability Zone, we choose one for +// you. // -// If you don't specify a security group when launching an instance, Amazon -// EC2 uses the default security group. For more information, see Security Groups -// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html) -// in the Amazon Elastic Compute Cloud User Guide. +// * Some instance types must be launched into a VPC. If you do not have +// a default VPC, or if you do not specify a subnet ID, the request fails. +// For more information, see Instance Types Available Only in a VPC (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-vpc.html#vpc-only-instance-types). // -// [EC2-VPC only accounts] If you don't specify a subnet in the request, we -// choose a default subnet from your default VPC for you. +// * [EC2-VPC] All instances have a network interface with a primary private +// IPv4 address. If you don't specify this address, we choose one from the +// IPv4 range of your subnet. // -// [EC2-Classic accounts] If you're launching into EC2-Classic and you don't -// specify an Availability Zone, we choose one for you. +// * Not all instance types support IPv6 addresses. For more information, +// see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html). +// +// * If you don't specify a security group ID, we use the default security +// group. For more information, see Security Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html). +// +// * If any of the AMIs have a product code attached for which the user has +// not subscribed, the request fails. +// +// To ensure faster instance launches, break up large requests into smaller +// batches. For example, create 5 separate launch requests for 100 instances +// each instead of 1 launch request for 500 instances. +// +// An instance is ready for you to use when it's in the running state. You can +// check the state of your instance using DescribeInstances. After launch, you +// can apply tags to your running instance (requires a resource ID). For more +// information, see CreateTags and Tagging Your Amazon EC2 Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html). // // Linux instances have access to the public key of the key pair at boot. You // can use this key to provide secure access to the instance. Amazon EC2 public @@ -14037,19 +15196,8 @@ func (c *EC2) RunInstancesRequest(input *RunInstancesInput) (req *request.Reques // information, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) // in the Amazon Elastic Compute Cloud User Guide. // -// You can provide optional user data when launching an instance. For more -// information, see Instance Metadata (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html) -// in the Amazon Elastic Compute Cloud User Guide. -// -// If any of the AMIs have a product code attached for which the user has not -// subscribed, RunInstances fails. -// -// Some instance types can only be launched into a VPC. If you do not have -// a default VPC, or if you do not specify a subnet ID in the request, RunInstances -// fails. For more information, see Instance Types Available Only in a VPC (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-vpc.html#vpc-only-instance-types). -// -// For more information about troubleshooting, see What To Do If An Instance -// Immediately Terminates (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_InstanceStraightToTerminated.html), +// For troubleshooting, see What To Do If An Instance Immediately Terminates +// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_InstanceStraightToTerminated.html), // and Troubleshooting Connecting to Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html) // in the Amazon Elastic Compute Cloud User Guide. // @@ -14059,6 +15207,7 @@ func (c *EC2) RunInstancesRequest(input *RunInstancesInput) (req *request.Reques // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation RunInstances for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstances func (c *EC2) RunInstances(input *RunInstancesInput) (*Reservation, error) { req, out := c.RunInstancesRequest(input) err := req.Send() @@ -14091,6 +15240,7 @@ const opRunScheduledInstances = "RunScheduledInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunScheduledInstances func (c *EC2) RunScheduledInstancesRequest(input *RunScheduledInstancesInput) (req *request.Request, output *RunScheduledInstancesOutput) { op := &request.Operation{ Name: opRunScheduledInstances, @@ -14102,9 +15252,8 @@ func (c *EC2) RunScheduledInstancesRequest(input *RunScheduledInstancesInput) (r input = &RunScheduledInstancesInput{} } - req = c.newRequest(op, input, output) output = &RunScheduledInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -14128,6 +15277,7 @@ func (c *EC2) RunScheduledInstancesRequest(input *RunScheduledInstancesInput) (r // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation RunScheduledInstances for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunScheduledInstances func (c *EC2) RunScheduledInstances(input *RunScheduledInstancesInput) (*RunScheduledInstancesOutput, error) { req, out := c.RunScheduledInstancesRequest(input) err := req.Send() @@ -14160,6 +15310,7 @@ const opStartInstances = "StartInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StartInstances func (c *EC2) StartInstancesRequest(input *StartInstancesInput) (req *request.Request, output *StartInstancesOutput) { op := &request.Operation{ Name: opStartInstances, @@ -14171,9 +15322,8 @@ func (c *EC2) StartInstancesRequest(input *StartInstancesInput) (req *request.Re input = &StartInstancesInput{} } - req = c.newRequest(op, input, output) output = &StartInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -14193,8 +15343,8 @@ func (c *EC2) StartInstancesRequest(input *StartInstancesInput) (req *request.Re // Before stopping an instance, make sure it is in a state from which it can // be restarted. Stopping an instance does not preserve data stored in RAM. // -// Performing this operation on an instance that uses an instance store as -// its root device returns an error. +// Performing this operation on an instance that uses an instance store as its +// root device returns an error. // // For more information, see Stopping Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html) // in the Amazon Elastic Compute Cloud User Guide. @@ -14205,6 +15355,7 @@ func (c *EC2) StartInstancesRequest(input *StartInstancesInput) (req *request.Re // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation StartInstances for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StartInstances func (c *EC2) StartInstances(input *StartInstancesInput) (*StartInstancesOutput, error) { req, out := c.StartInstancesRequest(input) err := req.Send() @@ -14237,6 +15388,7 @@ const opStopInstances = "StopInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StopInstances func (c *EC2) StopInstancesRequest(input *StopInstancesInput) (req *request.Request, output *StopInstancesOutput) { op := &request.Operation{ Name: opStopInstances, @@ -14248,9 +15400,8 @@ func (c *EC2) StopInstancesRequest(input *StopInstancesInput) (req *request.Requ input = &StopInstancesInput{} } - req = c.newRequest(op, input, output) output = &StopInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -14293,6 +15444,7 @@ func (c *EC2) StopInstancesRequest(input *StopInstancesInput) (req *request.Requ // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation StopInstances for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StopInstances func (c *EC2) StopInstances(input *StopInstancesInput) (*StopInstancesOutput, error) { req, out := c.StopInstancesRequest(input) err := req.Send() @@ -14325,6 +15477,7 @@ const opTerminateInstances = "TerminateInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateInstances func (c *EC2) TerminateInstancesRequest(input *TerminateInstancesInput) (req *request.Request, output *TerminateInstancesOutput) { op := &request.Operation{ Name: opTerminateInstances, @@ -14336,9 +15489,8 @@ func (c *EC2) TerminateInstancesRequest(input *TerminateInstancesInput) (req *re input = &TerminateInstancesInput{} } - req = c.newRequest(op, input, output) output = &TerminateInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -14376,12 +15528,73 @@ func (c *EC2) TerminateInstancesRequest(input *TerminateInstancesInput) (req *re // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation TerminateInstances for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateInstances func (c *EC2) TerminateInstances(input *TerminateInstancesInput) (*TerminateInstancesOutput, error) { req, out := c.TerminateInstancesRequest(input) err := req.Send() return out, err } +const opUnassignIpv6Addresses = "UnassignIpv6Addresses" + +// UnassignIpv6AddressesRequest generates a "aws/request.Request" representing the +// client's request for the UnassignIpv6Addresses operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UnassignIpv6Addresses for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UnassignIpv6Addresses method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UnassignIpv6AddressesRequest method. +// req, resp := client.UnassignIpv6AddressesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignIpv6Addresses +func (c *EC2) UnassignIpv6AddressesRequest(input *UnassignIpv6AddressesInput) (req *request.Request, output *UnassignIpv6AddressesOutput) { + op := &request.Operation{ + Name: opUnassignIpv6Addresses, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UnassignIpv6AddressesInput{} + } + + output = &UnassignIpv6AddressesOutput{} + req = c.newRequest(op, input, output) + return +} + +// UnassignIpv6Addresses API operation for Amazon Elastic Compute Cloud. +// +// Unassigns one or more IPv6 addresses from a network interface. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation UnassignIpv6Addresses for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignIpv6Addresses +func (c *EC2) UnassignIpv6Addresses(input *UnassignIpv6AddressesInput) (*UnassignIpv6AddressesOutput, error) { + req, out := c.UnassignIpv6AddressesRequest(input) + err := req.Send() + return out, err +} + const opUnassignPrivateIpAddresses = "UnassignPrivateIpAddresses" // UnassignPrivateIpAddressesRequest generates a "aws/request.Request" representing the @@ -14408,6 +15621,7 @@ const opUnassignPrivateIpAddresses = "UnassignPrivateIpAddresses" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateIpAddresses func (c *EC2) UnassignPrivateIpAddressesRequest(input *UnassignPrivateIpAddressesInput) (req *request.Request, output *UnassignPrivateIpAddressesOutput) { op := &request.Operation{ Name: opUnassignPrivateIpAddresses, @@ -14419,11 +15633,10 @@ func (c *EC2) UnassignPrivateIpAddressesRequest(input *UnassignPrivateIpAddresse input = &UnassignPrivateIpAddressesInput{} } + output = &UnassignPrivateIpAddressesOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UnassignPrivateIpAddressesOutput{} - req.Data = output return } @@ -14437,6 +15650,7 @@ func (c *EC2) UnassignPrivateIpAddressesRequest(input *UnassignPrivateIpAddresse // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation UnassignPrivateIpAddresses for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateIpAddresses func (c *EC2) UnassignPrivateIpAddresses(input *UnassignPrivateIpAddressesInput) (*UnassignPrivateIpAddressesOutput, error) { req, out := c.UnassignPrivateIpAddressesRequest(input) err := req.Send() @@ -14469,6 +15683,7 @@ const opUnmonitorInstances = "UnmonitorInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnmonitorInstances func (c *EC2) UnmonitorInstancesRequest(input *UnmonitorInstancesInput) (req *request.Request, output *UnmonitorInstancesOutput) { op := &request.Operation{ Name: opUnmonitorInstances, @@ -14480,16 +15695,15 @@ func (c *EC2) UnmonitorInstancesRequest(input *UnmonitorInstancesInput) (req *re input = &UnmonitorInstancesInput{} } - req = c.newRequest(op, input, output) output = &UnmonitorInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // UnmonitorInstances API operation for Amazon Elastic Compute Cloud. // -// Disables monitoring for a running instance. For more information about monitoring -// instances, see Monitoring Your Instances and Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html) +// Disables detailed monitoring for a running instance. For more information, +// see Monitoring Your Instances and Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html) // in the Amazon Elastic Compute Cloud User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -14498,6 +15712,7 @@ func (c *EC2) UnmonitorInstancesRequest(input *UnmonitorInstancesInput) (req *re // // See the AWS API reference guide for Amazon Elastic Compute Cloud's // API operation UnmonitorInstances for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnmonitorInstances func (c *EC2) UnmonitorInstances(input *UnmonitorInstancesInput) (*UnmonitorInstancesOutput, error) { req, out := c.UnmonitorInstancesRequest(input) err := req.Send() @@ -14505,6 +15720,7 @@ func (c *EC2) UnmonitorInstances(input *UnmonitorInstancesInput) (*UnmonitorInst } // Contains the parameters for accepting the quote. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptReservedInstancesExchangeQuoteRequest type AcceptReservedInstancesExchangeQuoteInput struct { _ struct{} `type:"structure"` @@ -14514,14 +15730,14 @@ type AcceptReservedInstancesExchangeQuoteInput struct { // it is UnauthorizedOperation. DryRun *bool `type:"boolean"` - // The IDs of the Convertible Reserved Instances that you want to exchange for - // other Convertible Reserved Instances of the same or higher value. + // The IDs of the Convertible Reserved Instances to exchange for other Convertible + // Reserved Instances of the same or higher value. // // ReservedInstanceIds is a required field ReservedInstanceIds []*string `locationName:"ReservedInstanceId" locationNameList:"ReservedInstanceId" type:"list" required:"true"` - // The configurations of the Convertible Reserved Instance offerings you are - // purchasing in this exchange. + // The configurations of the Convertible Reserved Instance offerings that you + // are purchasing in this exchange. TargetConfigurations []*TargetConfigurationRequest `locationName:"TargetConfiguration" locationNameList:"TargetConfigurationRequest" type:"list"` } @@ -14558,7 +15774,26 @@ func (s *AcceptReservedInstancesExchangeQuoteInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *AcceptReservedInstancesExchangeQuoteInput) SetDryRun(v bool) *AcceptReservedInstancesExchangeQuoteInput { + s.DryRun = &v + return s +} + +// SetReservedInstanceIds sets the ReservedInstanceIds field's value. +func (s *AcceptReservedInstancesExchangeQuoteInput) SetReservedInstanceIds(v []*string) *AcceptReservedInstancesExchangeQuoteInput { + s.ReservedInstanceIds = v + return s +} + +// SetTargetConfigurations sets the TargetConfigurations field's value. +func (s *AcceptReservedInstancesExchangeQuoteInput) SetTargetConfigurations(v []*TargetConfigurationRequest) *AcceptReservedInstancesExchangeQuoteInput { + s.TargetConfigurations = v + return s +} + // The result of the exchange and whether it was successful. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptReservedInstancesExchangeQuoteResult type AcceptReservedInstancesExchangeQuoteOutput struct { _ struct{} `type:"structure"` @@ -14576,7 +15811,14 @@ func (s AcceptReservedInstancesExchangeQuoteOutput) GoString() string { return s.String() } +// SetExchangeId sets the ExchangeId field's value. +func (s *AcceptReservedInstancesExchangeQuoteOutput) SetExchangeId(v string) *AcceptReservedInstancesExchangeQuoteOutput { + s.ExchangeId = &v + return s +} + // Contains the parameters for AcceptVpcPeeringConnection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcPeeringConnectionRequest type AcceptVpcPeeringConnectionInput struct { _ struct{} `type:"structure"` @@ -14600,7 +15842,20 @@ func (s AcceptVpcPeeringConnectionInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *AcceptVpcPeeringConnectionInput) SetDryRun(v bool) *AcceptVpcPeeringConnectionInput { + s.DryRun = &v + return s +} + +// SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. +func (s *AcceptVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *AcceptVpcPeeringConnectionInput { + s.VpcPeeringConnectionId = &v + return s +} + // Contains the output of AcceptVpcPeeringConnection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcPeeringConnectionResult type AcceptVpcPeeringConnectionOutput struct { _ struct{} `type:"structure"` @@ -14618,7 +15873,14 @@ func (s AcceptVpcPeeringConnectionOutput) GoString() string { return s.String() } +// SetVpcPeeringConnection sets the VpcPeeringConnection field's value. +func (s *AcceptVpcPeeringConnectionOutput) SetVpcPeeringConnection(v *VpcPeeringConnection) *AcceptVpcPeeringConnectionOutput { + s.VpcPeeringConnection = v + return s +} + // Describes an account attribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AccountAttribute type AccountAttribute struct { _ struct{} `type:"structure"` @@ -14639,7 +15901,20 @@ func (s AccountAttribute) GoString() string { return s.String() } +// SetAttributeName sets the AttributeName field's value. +func (s *AccountAttribute) SetAttributeName(v string) *AccountAttribute { + s.AttributeName = &v + return s +} + +// SetAttributeValues sets the AttributeValues field's value. +func (s *AccountAttribute) SetAttributeValues(v []*AccountAttributeValue) *AccountAttribute { + s.AttributeValues = v + return s +} + // Describes a value of an account attribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AccountAttributeValue type AccountAttributeValue struct { _ struct{} `type:"structure"` @@ -14657,10 +15932,22 @@ func (s AccountAttributeValue) GoString() string { return s.String() } +// SetAttributeValue sets the AttributeValue field's value. +func (s *AccountAttributeValue) SetAttributeValue(v string) *AccountAttributeValue { + s.AttributeValue = &v + return s +} + // Describes a running instance in a Spot fleet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ActiveInstance type ActiveInstance struct { _ struct{} `type:"structure"` + // The health status of the instance. If the status of both the instance status + // check and the system status check is impaired, the health status of the instance + // is unhealthy. Otherwise, the health status is healthy. + InstanceHealth *string `locationName:"instanceHealth" type:"string" enum:"InstanceHealthStatus"` + // The ID of the instance. InstanceId *string `locationName:"instanceId" type:"string"` @@ -14681,7 +15968,32 @@ func (s ActiveInstance) GoString() string { return s.String() } +// SetInstanceHealth sets the InstanceHealth field's value. +func (s *ActiveInstance) SetInstanceHealth(v string) *ActiveInstance { + s.InstanceHealth = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ActiveInstance) SetInstanceId(v string) *ActiveInstance { + s.InstanceId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ActiveInstance) SetInstanceType(v string) *ActiveInstance { + s.InstanceType = &v + return s +} + +// SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value. +func (s *ActiveInstance) SetSpotInstanceRequestId(v string) *ActiveInstance { + s.SpotInstanceRequestId = &v + return s +} + // Describes an Elastic IP address. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Address type Address struct { _ struct{} `type:"structure"` @@ -14722,7 +16034,56 @@ func (s Address) GoString() string { return s.String() } +// SetAllocationId sets the AllocationId field's value. +func (s *Address) SetAllocationId(v string) *Address { + s.AllocationId = &v + return s +} + +// SetAssociationId sets the AssociationId field's value. +func (s *Address) SetAssociationId(v string) *Address { + s.AssociationId = &v + return s +} + +// SetDomain sets the Domain field's value. +func (s *Address) SetDomain(v string) *Address { + s.Domain = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *Address) SetInstanceId(v string) *Address { + s.InstanceId = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *Address) SetNetworkInterfaceId(v string) *Address { + s.NetworkInterfaceId = &v + return s +} + +// SetNetworkInterfaceOwnerId sets the NetworkInterfaceOwnerId field's value. +func (s *Address) SetNetworkInterfaceOwnerId(v string) *Address { + s.NetworkInterfaceOwnerId = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *Address) SetPrivateIpAddress(v string) *Address { + s.PrivateIpAddress = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *Address) SetPublicIp(v string) *Address { + s.PublicIp = &v + return s +} + // Contains the parameters for AllocateAddress. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateAddressRequest type AllocateAddressInput struct { _ struct{} `type:"structure"` @@ -14748,7 +16109,20 @@ func (s AllocateAddressInput) GoString() string { return s.String() } +// SetDomain sets the Domain field's value. +func (s *AllocateAddressInput) SetDomain(v string) *AllocateAddressInput { + s.Domain = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *AllocateAddressInput) SetDryRun(v bool) *AllocateAddressInput { + s.DryRun = &v + return s +} + // Contains the output of AllocateAddress. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateAddressResult type AllocateAddressOutput struct { _ struct{} `type:"structure"` @@ -14774,7 +16148,26 @@ func (s AllocateAddressOutput) GoString() string { return s.String() } +// SetAllocationId sets the AllocationId field's value. +func (s *AllocateAddressOutput) SetAllocationId(v string) *AllocateAddressOutput { + s.AllocationId = &v + return s +} + +// SetDomain sets the Domain field's value. +func (s *AllocateAddressOutput) SetDomain(v string) *AllocateAddressOutput { + s.Domain = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *AllocateAddressOutput) SetPublicIp(v string) *AllocateAddressOutput { + s.PublicIp = &v + return s +} + // Contains the parameters for AllocateHosts. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateHostsRequest type AllocateHostsInput struct { _ struct{} `type:"structure"` @@ -14838,7 +16231,38 @@ func (s *AllocateHostsInput) Validate() error { return nil } +// SetAutoPlacement sets the AutoPlacement field's value. +func (s *AllocateHostsInput) SetAutoPlacement(v string) *AllocateHostsInput { + s.AutoPlacement = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *AllocateHostsInput) SetAvailabilityZone(v string) *AllocateHostsInput { + s.AvailabilityZone = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *AllocateHostsInput) SetClientToken(v string) *AllocateHostsInput { + s.ClientToken = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *AllocateHostsInput) SetInstanceType(v string) *AllocateHostsInput { + s.InstanceType = &v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *AllocateHostsInput) SetQuantity(v int64) *AllocateHostsInput { + s.Quantity = &v + return s +} + // Contains the output of AllocateHosts. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateHostsResult type AllocateHostsOutput struct { _ struct{} `type:"structure"` @@ -14857,7 +16281,107 @@ func (s AllocateHostsOutput) GoString() string { return s.String() } +// SetHostIds sets the HostIds field's value. +func (s *AllocateHostsOutput) SetHostIds(v []*string) *AllocateHostsOutput { + s.HostIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignIpv6AddressesRequest +type AssignIpv6AddressesInput struct { + _ struct{} `type:"structure"` + + // The number of IPv6 addresses to assign to the network interface. Amazon EC2 + // automatically selects the IPv6 addresses from the subnet range. You can't + // use this option if specifying specific IPv6 addresses. + Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"` + + // One or more specific IPv6 addresses to be assigned to the network interface. + // You can't use this option if you're specifying a number of IPv6 addresses. + Ipv6Addresses []*string `locationName:"ipv6Addresses" locationNameList:"item" type:"list"` + + // The ID of the network interface. + // + // NetworkInterfaceId is a required field + NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssignIpv6AddressesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssignIpv6AddressesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssignIpv6AddressesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssignIpv6AddressesInput"} + if s.NetworkInterfaceId == nil { + invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIpv6AddressCount sets the Ipv6AddressCount field's value. +func (s *AssignIpv6AddressesInput) SetIpv6AddressCount(v int64) *AssignIpv6AddressesInput { + s.Ipv6AddressCount = &v + return s +} + +// SetIpv6Addresses sets the Ipv6Addresses field's value. +func (s *AssignIpv6AddressesInput) SetIpv6Addresses(v []*string) *AssignIpv6AddressesInput { + s.Ipv6Addresses = v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *AssignIpv6AddressesInput) SetNetworkInterfaceId(v string) *AssignIpv6AddressesInput { + s.NetworkInterfaceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignIpv6AddressesResult +type AssignIpv6AddressesOutput struct { + _ struct{} `type:"structure"` + + // The IPv6 addresses assigned to the network interface. + AssignedIpv6Addresses []*string `locationName:"assignedIpv6Addresses" locationNameList:"item" type:"list"` + + // The ID of the network interface. + NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"` +} + +// String returns the string representation +func (s AssignIpv6AddressesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssignIpv6AddressesOutput) GoString() string { + return s.String() +} + +// SetAssignedIpv6Addresses sets the AssignedIpv6Addresses field's value. +func (s *AssignIpv6AddressesOutput) SetAssignedIpv6Addresses(v []*string) *AssignIpv6AddressesOutput { + s.AssignedIpv6Addresses = v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *AssignIpv6AddressesOutput) SetNetworkInterfaceId(v string) *AssignIpv6AddressesOutput { + s.NetworkInterfaceId = &v + return s +} + // Contains the parameters for AssignPrivateIpAddresses. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignPrivateIpAddressesRequest type AssignPrivateIpAddressesInput struct { _ struct{} `type:"structure"` @@ -14874,8 +16398,8 @@ type AssignPrivateIpAddressesInput struct { // to the network interface. You can't specify this parameter when also specifying // a number of secondary IP addresses. // - // If you don't specify an IP address, Amazon EC2 automatically selects an - // IP address within the subnet range. + // If you don't specify an IP address, Amazon EC2 automatically selects an IP + // address within the subnet range. PrivateIpAddresses []*string `locationName:"privateIpAddress" locationNameList:"PrivateIpAddress" type:"list"` // The number of secondary IP addresses to assign to the network interface. @@ -14906,6 +16430,31 @@ func (s *AssignPrivateIpAddressesInput) Validate() error { return nil } +// SetAllowReassignment sets the AllowReassignment field's value. +func (s *AssignPrivateIpAddressesInput) SetAllowReassignment(v bool) *AssignPrivateIpAddressesInput { + s.AllowReassignment = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *AssignPrivateIpAddressesInput) SetNetworkInterfaceId(v string) *AssignPrivateIpAddressesInput { + s.NetworkInterfaceId = &v + return s +} + +// SetPrivateIpAddresses sets the PrivateIpAddresses field's value. +func (s *AssignPrivateIpAddressesInput) SetPrivateIpAddresses(v []*string) *AssignPrivateIpAddressesInput { + s.PrivateIpAddresses = v + return s +} + +// SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value. +func (s *AssignPrivateIpAddressesInput) SetSecondaryPrivateIpAddressCount(v int64) *AssignPrivateIpAddressesInput { + s.SecondaryPrivateIpAddressCount = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignPrivateIpAddressesOutput type AssignPrivateIpAddressesOutput struct { _ struct{} `type:"structure"` } @@ -14921,6 +16470,7 @@ func (s AssignPrivateIpAddressesOutput) GoString() string { } // Contains the parameters for AssociateAddress. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateAddressRequest type AssociateAddressInput struct { _ struct{} `type:"structure"` @@ -14970,7 +16520,50 @@ func (s AssociateAddressInput) GoString() string { return s.String() } +// SetAllocationId sets the AllocationId field's value. +func (s *AssociateAddressInput) SetAllocationId(v string) *AssociateAddressInput { + s.AllocationId = &v + return s +} + +// SetAllowReassociation sets the AllowReassociation field's value. +func (s *AssociateAddressInput) SetAllowReassociation(v bool) *AssociateAddressInput { + s.AllowReassociation = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *AssociateAddressInput) SetDryRun(v bool) *AssociateAddressInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AssociateAddressInput) SetInstanceId(v string) *AssociateAddressInput { + s.InstanceId = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *AssociateAddressInput) SetNetworkInterfaceId(v string) *AssociateAddressInput { + s.NetworkInterfaceId = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *AssociateAddressInput) SetPrivateIpAddress(v string) *AssociateAddressInput { + s.PrivateIpAddress = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *AssociateAddressInput) SetPublicIp(v string) *AssociateAddressInput { + s.PublicIp = &v + return s +} + // Contains the output of AssociateAddress. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateAddressResult type AssociateAddressOutput struct { _ struct{} `type:"structure"` @@ -14989,7 +16582,14 @@ func (s AssociateAddressOutput) GoString() string { return s.String() } +// SetAssociationId sets the AssociationId field's value. +func (s *AssociateAddressOutput) SetAssociationId(v string) *AssociateAddressOutput { + s.AssociationId = &v + return s +} + // Contains the parameters for AssociateDhcpOptions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateDhcpOptionsRequest type AssociateDhcpOptionsInput struct { _ struct{} `type:"structure"` @@ -15037,6 +16637,25 @@ func (s *AssociateDhcpOptionsInput) Validate() error { return nil } +// SetDhcpOptionsId sets the DhcpOptionsId field's value. +func (s *AssociateDhcpOptionsInput) SetDhcpOptionsId(v string) *AssociateDhcpOptionsInput { + s.DhcpOptionsId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *AssociateDhcpOptionsInput) SetDryRun(v bool) *AssociateDhcpOptionsInput { + s.DryRun = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *AssociateDhcpOptionsInput) SetVpcId(v string) *AssociateDhcpOptionsInput { + s.VpcId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateDhcpOptionsOutput type AssociateDhcpOptionsOutput struct { _ struct{} `type:"structure"` } @@ -15051,7 +16670,85 @@ func (s AssociateDhcpOptionsOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateIamInstanceProfileRequest +type AssociateIamInstanceProfileInput struct { + _ struct{} `type:"structure"` + + // The IAM instance profile. + // + // IamInstanceProfile is a required field + IamInstanceProfile *IamInstanceProfileSpecification `type:"structure" required:"true"` + + // The ID of the instance. + // + // InstanceId is a required field + InstanceId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateIamInstanceProfileInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateIamInstanceProfileInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateIamInstanceProfileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateIamInstanceProfileInput"} + if s.IamInstanceProfile == nil { + invalidParams.Add(request.NewErrParamRequired("IamInstanceProfile")) + } + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *AssociateIamInstanceProfileInput) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *AssociateIamInstanceProfileInput { + s.IamInstanceProfile = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AssociateIamInstanceProfileInput) SetInstanceId(v string) *AssociateIamInstanceProfileInput { + s.InstanceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateIamInstanceProfileResult +type AssociateIamInstanceProfileOutput struct { + _ struct{} `type:"structure"` + + // Information about the IAM instance profile association. + IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"` +} + +// String returns the string representation +func (s AssociateIamInstanceProfileOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateIamInstanceProfileOutput) GoString() string { + return s.String() +} + +// SetIamInstanceProfileAssociation sets the IamInstanceProfileAssociation field's value. +func (s *AssociateIamInstanceProfileOutput) SetIamInstanceProfileAssociation(v *IamInstanceProfileAssociation) *AssociateIamInstanceProfileOutput { + s.IamInstanceProfileAssociation = v + return s +} + // Contains the parameters for AssociateRouteTable. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateRouteTableRequest type AssociateRouteTableInput struct { _ struct{} `type:"structure"` @@ -15098,7 +16795,26 @@ func (s *AssociateRouteTableInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *AssociateRouteTableInput) SetDryRun(v bool) *AssociateRouteTableInput { + s.DryRun = &v + return s +} + +// SetRouteTableId sets the RouteTableId field's value. +func (s *AssociateRouteTableInput) SetRouteTableId(v string) *AssociateRouteTableInput { + s.RouteTableId = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *AssociateRouteTableInput) SetSubnetId(v string) *AssociateRouteTableInput { + s.SubnetId = &v + return s +} + // Contains the output of AssociateRouteTable. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateRouteTableResult type AssociateRouteTableOutput struct { _ struct{} `type:"structure"` @@ -15116,7 +16832,183 @@ func (s AssociateRouteTableOutput) GoString() string { return s.String() } +// SetAssociationId sets the AssociationId field's value. +func (s *AssociateRouteTableOutput) SetAssociationId(v string) *AssociateRouteTableOutput { + s.AssociationId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateSubnetCidrBlockRequest +type AssociateSubnetCidrBlockInput struct { + _ struct{} `type:"structure"` + + // The IPv6 CIDR block for your subnet. The subnet must have a /64 prefix length. + // + // Ipv6CidrBlock is a required field + Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string" required:"true"` + + // The ID of your subnet. + // + // SubnetId is a required field + SubnetId *string `locationName:"subnetId" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateSubnetCidrBlockInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateSubnetCidrBlockInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateSubnetCidrBlockInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateSubnetCidrBlockInput"} + if s.Ipv6CidrBlock == nil { + invalidParams.Add(request.NewErrParamRequired("Ipv6CidrBlock")) + } + if s.SubnetId == nil { + invalidParams.Add(request.NewErrParamRequired("SubnetId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIpv6CidrBlock sets the Ipv6CidrBlock field's value. +func (s *AssociateSubnetCidrBlockInput) SetIpv6CidrBlock(v string) *AssociateSubnetCidrBlockInput { + s.Ipv6CidrBlock = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *AssociateSubnetCidrBlockInput) SetSubnetId(v string) *AssociateSubnetCidrBlockInput { + s.SubnetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateSubnetCidrBlockResult +type AssociateSubnetCidrBlockOutput struct { + _ struct{} `type:"structure"` + + // Information about the IPv6 CIDR block association. + Ipv6CidrBlockAssociation *SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"` + + // The ID of the subnet. + SubnetId *string `locationName:"subnetId" type:"string"` +} + +// String returns the string representation +func (s AssociateSubnetCidrBlockOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateSubnetCidrBlockOutput) GoString() string { + return s.String() +} + +// SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value. +func (s *AssociateSubnetCidrBlockOutput) SetIpv6CidrBlockAssociation(v *SubnetIpv6CidrBlockAssociation) *AssociateSubnetCidrBlockOutput { + s.Ipv6CidrBlockAssociation = v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *AssociateSubnetCidrBlockOutput) SetSubnetId(v string) *AssociateSubnetCidrBlockOutput { + s.SubnetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateVpcCidrBlockRequest +type AssociateVpcCidrBlockInput struct { + _ struct{} `type:"structure"` + + // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for + // the VPC. You cannot specify the range of IPv6 addresses, or the size of the + // CIDR block. + AmazonProvidedIpv6CidrBlock *bool `locationName:"amazonProvidedIpv6CidrBlock" type:"boolean"` + + // The ID of the VPC. + // + // VpcId is a required field + VpcId *string `locationName:"vpcId" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateVpcCidrBlockInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateVpcCidrBlockInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateVpcCidrBlockInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateVpcCidrBlockInput"} + if s.VpcId == nil { + invalidParams.Add(request.NewErrParamRequired("VpcId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAmazonProvidedIpv6CidrBlock sets the AmazonProvidedIpv6CidrBlock field's value. +func (s *AssociateVpcCidrBlockInput) SetAmazonProvidedIpv6CidrBlock(v bool) *AssociateVpcCidrBlockInput { + s.AmazonProvidedIpv6CidrBlock = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *AssociateVpcCidrBlockInput) SetVpcId(v string) *AssociateVpcCidrBlockInput { + s.VpcId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateVpcCidrBlockResult +type AssociateVpcCidrBlockOutput struct { + _ struct{} `type:"structure"` + + // Information about the IPv6 CIDR block association. + Ipv6CidrBlockAssociation *VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"` + + // The ID of the VPC. + VpcId *string `locationName:"vpcId" type:"string"` +} + +// String returns the string representation +func (s AssociateVpcCidrBlockOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateVpcCidrBlockOutput) GoString() string { + return s.String() +} + +// SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value. +func (s *AssociateVpcCidrBlockOutput) SetIpv6CidrBlockAssociation(v *VpcIpv6CidrBlockAssociation) *AssociateVpcCidrBlockOutput { + s.Ipv6CidrBlockAssociation = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *AssociateVpcCidrBlockOutput) SetVpcId(v string) *AssociateVpcCidrBlockOutput { + s.VpcId = &v + return s +} + // Contains the parameters for AttachClassicLinkVpc. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachClassicLinkVpcRequest type AttachClassicLinkVpcInput struct { _ struct{} `type:"structure"` @@ -15172,7 +17064,32 @@ func (s *AttachClassicLinkVpcInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *AttachClassicLinkVpcInput) SetDryRun(v bool) *AttachClassicLinkVpcInput { + s.DryRun = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *AttachClassicLinkVpcInput) SetGroups(v []*string) *AttachClassicLinkVpcInput { + s.Groups = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AttachClassicLinkVpcInput) SetInstanceId(v string) *AttachClassicLinkVpcInput { + s.InstanceId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *AttachClassicLinkVpcInput) SetVpcId(v string) *AttachClassicLinkVpcInput { + s.VpcId = &v + return s +} + // Contains the output of AttachClassicLinkVpc. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachClassicLinkVpcResult type AttachClassicLinkVpcOutput struct { _ struct{} `type:"structure"` @@ -15190,7 +17107,14 @@ func (s AttachClassicLinkVpcOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *AttachClassicLinkVpcOutput) SetReturn(v bool) *AttachClassicLinkVpcOutput { + s.Return = &v + return s +} + // Contains the parameters for AttachInternetGateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachInternetGatewayRequest type AttachInternetGatewayInput struct { _ struct{} `type:"structure"` @@ -15237,6 +17161,25 @@ func (s *AttachInternetGatewayInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *AttachInternetGatewayInput) SetDryRun(v bool) *AttachInternetGatewayInput { + s.DryRun = &v + return s +} + +// SetInternetGatewayId sets the InternetGatewayId field's value. +func (s *AttachInternetGatewayInput) SetInternetGatewayId(v string) *AttachInternetGatewayInput { + s.InternetGatewayId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *AttachInternetGatewayInput) SetVpcId(v string) *AttachInternetGatewayInput { + s.VpcId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachInternetGatewayOutput type AttachInternetGatewayOutput struct { _ struct{} `type:"structure"` } @@ -15252,6 +17195,7 @@ func (s AttachInternetGatewayOutput) GoString() string { } // Contains the parameters for AttachNetworkInterface. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachNetworkInterfaceRequest type AttachNetworkInterfaceInput struct { _ struct{} `type:"structure"` @@ -15306,7 +17250,32 @@ func (s *AttachNetworkInterfaceInput) Validate() error { return nil } +// SetDeviceIndex sets the DeviceIndex field's value. +func (s *AttachNetworkInterfaceInput) SetDeviceIndex(v int64) *AttachNetworkInterfaceInput { + s.DeviceIndex = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *AttachNetworkInterfaceInput) SetDryRun(v bool) *AttachNetworkInterfaceInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AttachNetworkInterfaceInput) SetInstanceId(v string) *AttachNetworkInterfaceInput { + s.InstanceId = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *AttachNetworkInterfaceInput) SetNetworkInterfaceId(v string) *AttachNetworkInterfaceInput { + s.NetworkInterfaceId = &v + return s +} + // Contains the output of AttachNetworkInterface. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachNetworkInterfaceResult type AttachNetworkInterfaceOutput struct { _ struct{} `type:"structure"` @@ -15324,7 +17293,14 @@ func (s AttachNetworkInterfaceOutput) GoString() string { return s.String() } +// SetAttachmentId sets the AttachmentId field's value. +func (s *AttachNetworkInterfaceOutput) SetAttachmentId(v string) *AttachNetworkInterfaceOutput { + s.AttachmentId = &v + return s +} + // Contains the parameters for AttachVolume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVolumeRequest type AttachVolumeInput struct { _ struct{} `type:"structure"` @@ -15380,7 +17356,32 @@ func (s *AttachVolumeInput) Validate() error { return nil } +// SetDevice sets the Device field's value. +func (s *AttachVolumeInput) SetDevice(v string) *AttachVolumeInput { + s.Device = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *AttachVolumeInput) SetDryRun(v bool) *AttachVolumeInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AttachVolumeInput) SetInstanceId(v string) *AttachVolumeInput { + s.InstanceId = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *AttachVolumeInput) SetVolumeId(v string) *AttachVolumeInput { + s.VolumeId = &v + return s +} + // Contains the parameters for AttachVpnGateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVpnGatewayRequest type AttachVpnGatewayInput struct { _ struct{} `type:"structure"` @@ -15427,7 +17428,26 @@ func (s *AttachVpnGatewayInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *AttachVpnGatewayInput) SetDryRun(v bool) *AttachVpnGatewayInput { + s.DryRun = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *AttachVpnGatewayInput) SetVpcId(v string) *AttachVpnGatewayInput { + s.VpcId = &v + return s +} + +// SetVpnGatewayId sets the VpnGatewayId field's value. +func (s *AttachVpnGatewayInput) SetVpnGatewayId(v string) *AttachVpnGatewayInput { + s.VpnGatewayId = &v + return s +} + // Contains the output of AttachVpnGateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVpnGatewayResult type AttachVpnGatewayOutput struct { _ struct{} `type:"structure"` @@ -15445,7 +17465,14 @@ func (s AttachVpnGatewayOutput) GoString() string { return s.String() } +// SetVpcAttachment sets the VpcAttachment field's value. +func (s *AttachVpnGatewayOutput) SetVpcAttachment(v *VpcAttachment) *AttachVpnGatewayOutput { + s.VpcAttachment = v + return s +} + // Describes a value for a resource attribute that is a Boolean value. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttributeBooleanValue type AttributeBooleanValue struct { _ struct{} `type:"structure"` @@ -15463,7 +17490,14 @@ func (s AttributeBooleanValue) GoString() string { return s.String() } +// SetValue sets the Value field's value. +func (s *AttributeBooleanValue) SetValue(v bool) *AttributeBooleanValue { + s.Value = &v + return s +} + // Describes a value for a resource attribute that is a String. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttributeValue type AttributeValue struct { _ struct{} `type:"structure"` @@ -15481,12 +17515,19 @@ func (s AttributeValue) GoString() string { return s.String() } +// SetValue sets the Value field's value. +func (s *AttributeValue) SetValue(v string) *AttributeValue { + s.Value = &v + return s +} + // Contains the parameters for AuthorizeSecurityGroupEgress. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupEgressRequest type AuthorizeSecurityGroupEgressInput struct { _ struct{} `type:"structure"` - // The CIDR IP address range. We recommend that you specify the CIDR range in - // a set of IP permissions instead. + // The CIDR IPv4 address range. We recommend that you specify the CIDR range + // in a set of IP permissions instead. CidrIp *string `locationName:"cidrIp" type:"string"` // Checks whether you have the required permissions for the action, without @@ -15550,6 +17591,61 @@ func (s *AuthorizeSecurityGroupEgressInput) Validate() error { return nil } +// SetCidrIp sets the CidrIp field's value. +func (s *AuthorizeSecurityGroupEgressInput) SetCidrIp(v string) *AuthorizeSecurityGroupEgressInput { + s.CidrIp = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *AuthorizeSecurityGroupEgressInput) SetDryRun(v bool) *AuthorizeSecurityGroupEgressInput { + s.DryRun = &v + return s +} + +// SetFromPort sets the FromPort field's value. +func (s *AuthorizeSecurityGroupEgressInput) SetFromPort(v int64) *AuthorizeSecurityGroupEgressInput { + s.FromPort = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *AuthorizeSecurityGroupEgressInput) SetGroupId(v string) *AuthorizeSecurityGroupEgressInput { + s.GroupId = &v + return s +} + +// SetIpPermissions sets the IpPermissions field's value. +func (s *AuthorizeSecurityGroupEgressInput) SetIpPermissions(v []*IpPermission) *AuthorizeSecurityGroupEgressInput { + s.IpPermissions = v + return s +} + +// SetIpProtocol sets the IpProtocol field's value. +func (s *AuthorizeSecurityGroupEgressInput) SetIpProtocol(v string) *AuthorizeSecurityGroupEgressInput { + s.IpProtocol = &v + return s +} + +// SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value. +func (s *AuthorizeSecurityGroupEgressInput) SetSourceSecurityGroupName(v string) *AuthorizeSecurityGroupEgressInput { + s.SourceSecurityGroupName = &v + return s +} + +// SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value. +func (s *AuthorizeSecurityGroupEgressInput) SetSourceSecurityGroupOwnerId(v string) *AuthorizeSecurityGroupEgressInput { + s.SourceSecurityGroupOwnerId = &v + return s +} + +// SetToPort sets the ToPort field's value. +func (s *AuthorizeSecurityGroupEgressInput) SetToPort(v int64) *AuthorizeSecurityGroupEgressInput { + s.ToPort = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupEgressOutput type AuthorizeSecurityGroupEgressOutput struct { _ struct{} `type:"structure"` } @@ -15565,10 +17661,11 @@ func (s AuthorizeSecurityGroupEgressOutput) GoString() string { } // Contains the parameters for AuthorizeSecurityGroupIngress. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupIngressRequest type AuthorizeSecurityGroupIngressInput struct { _ struct{} `type:"structure"` - // The CIDR IP address range. You can't specify this parameter when specifying + // The CIDR IPv4 address range. You can't specify this parameter when specifying // a source security group. CidrIp *string `type:"string"` @@ -15578,8 +17675,8 @@ type AuthorizeSecurityGroupIngressInput struct { // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` - // The start of port range for the TCP and UDP protocols, or an ICMP type number. - // For the ICMP type number, use -1 to specify all ICMP types. + // The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 + // type number. For the ICMP/ICMPv6 type number, use -1 to specify all types. FromPort *int64 `type:"integer"` // The ID of the security group. Required for a nondefault VPC. @@ -15593,8 +17690,11 @@ type AuthorizeSecurityGroupIngressInput struct { IpPermissions []*IpPermission `locationNameList:"item" type:"list"` // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)). - // (VPC only) Use -1 to specify all traffic. If you specify -1, traffic on all - // ports is allowed, regardless of any ports you specify. + // (VPC only) Use -1 to specify all protocols. If you specify -1, or a protocol + // number other than tcp, udp, icmp, or 58 (ICMPv6), traffic on all ports is + // allowed, regardless of any ports you specify. For tcp, udp, and icmp, you + // must specify a port range. For protocol 58 (ICMPv6), you can optionally specify + // a port range; if you don't, traffic for all types and codes is allowed. IpProtocol *string `type:"string"` // [EC2-Classic, default VPC] The name of the source security group. You can't @@ -15614,8 +17714,8 @@ type AuthorizeSecurityGroupIngressInput struct { // with a specific IP protocol and port range, use a set of IP permissions instead. SourceSecurityGroupOwnerId *string `type:"string"` - // The end of port range for the TCP and UDP protocols, or an ICMP code number. - // For the ICMP code number, use -1 to specify all ICMP codes for the ICMP type. + // The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code + // number. For the ICMP/ICMPv6 code number, use -1 to specify all codes. ToPort *int64 `type:"integer"` } @@ -15629,6 +17729,67 @@ func (s AuthorizeSecurityGroupIngressInput) GoString() string { return s.String() } +// SetCidrIp sets the CidrIp field's value. +func (s *AuthorizeSecurityGroupIngressInput) SetCidrIp(v string) *AuthorizeSecurityGroupIngressInput { + s.CidrIp = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *AuthorizeSecurityGroupIngressInput) SetDryRun(v bool) *AuthorizeSecurityGroupIngressInput { + s.DryRun = &v + return s +} + +// SetFromPort sets the FromPort field's value. +func (s *AuthorizeSecurityGroupIngressInput) SetFromPort(v int64) *AuthorizeSecurityGroupIngressInput { + s.FromPort = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *AuthorizeSecurityGroupIngressInput) SetGroupId(v string) *AuthorizeSecurityGroupIngressInput { + s.GroupId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *AuthorizeSecurityGroupIngressInput) SetGroupName(v string) *AuthorizeSecurityGroupIngressInput { + s.GroupName = &v + return s +} + +// SetIpPermissions sets the IpPermissions field's value. +func (s *AuthorizeSecurityGroupIngressInput) SetIpPermissions(v []*IpPermission) *AuthorizeSecurityGroupIngressInput { + s.IpPermissions = v + return s +} + +// SetIpProtocol sets the IpProtocol field's value. +func (s *AuthorizeSecurityGroupIngressInput) SetIpProtocol(v string) *AuthorizeSecurityGroupIngressInput { + s.IpProtocol = &v + return s +} + +// SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value. +func (s *AuthorizeSecurityGroupIngressInput) SetSourceSecurityGroupName(v string) *AuthorizeSecurityGroupIngressInput { + s.SourceSecurityGroupName = &v + return s +} + +// SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value. +func (s *AuthorizeSecurityGroupIngressInput) SetSourceSecurityGroupOwnerId(v string) *AuthorizeSecurityGroupIngressInput { + s.SourceSecurityGroupOwnerId = &v + return s +} + +// SetToPort sets the ToPort field's value. +func (s *AuthorizeSecurityGroupIngressInput) SetToPort(v int64) *AuthorizeSecurityGroupIngressInput { + s.ToPort = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupIngressOutput type AuthorizeSecurityGroupIngressOutput struct { _ struct{} `type:"structure"` } @@ -15644,6 +17805,7 @@ func (s AuthorizeSecurityGroupIngressOutput) GoString() string { } // Describes an Availability Zone. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AvailabilityZone type AvailabilityZone struct { _ struct{} `type:"structure"` @@ -15670,7 +17832,32 @@ func (s AvailabilityZone) GoString() string { return s.String() } +// SetMessages sets the Messages field's value. +func (s *AvailabilityZone) SetMessages(v []*AvailabilityZoneMessage) *AvailabilityZone { + s.Messages = v + return s +} + +// SetRegionName sets the RegionName field's value. +func (s *AvailabilityZone) SetRegionName(v string) *AvailabilityZone { + s.RegionName = &v + return s +} + +// SetState sets the State field's value. +func (s *AvailabilityZone) SetState(v string) *AvailabilityZone { + s.State = &v + return s +} + +// SetZoneName sets the ZoneName field's value. +func (s *AvailabilityZone) SetZoneName(v string) *AvailabilityZone { + s.ZoneName = &v + return s +} + // Describes a message about an Availability Zone. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AvailabilityZoneMessage type AvailabilityZoneMessage struct { _ struct{} `type:"structure"` @@ -15688,7 +17875,14 @@ func (s AvailabilityZoneMessage) GoString() string { return s.String() } +// SetMessage sets the Message field's value. +func (s *AvailabilityZoneMessage) SetMessage(v string) *AvailabilityZoneMessage { + s.Message = &v + return s +} + // The capacity information for instances launched onto the Dedicated Host. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AvailableCapacity type AvailableCapacity struct { _ struct{} `type:"structure"` @@ -15709,6 +17903,19 @@ func (s AvailableCapacity) GoString() string { return s.String() } +// SetAvailableInstanceCapacity sets the AvailableInstanceCapacity field's value. +func (s *AvailableCapacity) SetAvailableInstanceCapacity(v []*InstanceCapacity) *AvailableCapacity { + s.AvailableInstanceCapacity = v + return s +} + +// SetAvailableVCpus sets the AvailableVCpus field's value. +func (s *AvailableCapacity) SetAvailableVCpus(v int64) *AvailableCapacity { + s.AvailableVCpus = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BlobAttributeValue type BlobAttributeValue struct { _ struct{} `type:"structure"` @@ -15726,7 +17933,14 @@ func (s BlobAttributeValue) GoString() string { return s.String() } +// SetValue sets the Value field's value. +func (s *BlobAttributeValue) SetValue(v []byte) *BlobAttributeValue { + s.Value = v + return s +} + // Describes a block device mapping. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BlockDeviceMapping type BlockDeviceMapping struct { _ struct{} `type:"structure"` @@ -15764,7 +17978,32 @@ func (s BlockDeviceMapping) GoString() string { return s.String() } +// SetDeviceName sets the DeviceName field's value. +func (s *BlockDeviceMapping) SetDeviceName(v string) *BlockDeviceMapping { + s.DeviceName = &v + return s +} + +// SetEbs sets the Ebs field's value. +func (s *BlockDeviceMapping) SetEbs(v *EbsBlockDevice) *BlockDeviceMapping { + s.Ebs = v + return s +} + +// SetNoDevice sets the NoDevice field's value. +func (s *BlockDeviceMapping) SetNoDevice(v string) *BlockDeviceMapping { + s.NoDevice = &v + return s +} + +// SetVirtualName sets the VirtualName field's value. +func (s *BlockDeviceMapping) SetVirtualName(v string) *BlockDeviceMapping { + s.VirtualName = &v + return s +} + // Contains the parameters for BundleInstance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleInstanceRequest type BundleInstanceInput struct { _ struct{} `type:"structure"` @@ -15819,7 +18058,26 @@ func (s *BundleInstanceInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *BundleInstanceInput) SetDryRun(v bool) *BundleInstanceInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *BundleInstanceInput) SetInstanceId(v string) *BundleInstanceInput { + s.InstanceId = &v + return s +} + +// SetStorage sets the Storage field's value. +func (s *BundleInstanceInput) SetStorage(v *Storage) *BundleInstanceInput { + s.Storage = v + return s +} + // Contains the output of BundleInstance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleInstanceResult type BundleInstanceOutput struct { _ struct{} `type:"structure"` @@ -15837,7 +18095,14 @@ func (s BundleInstanceOutput) GoString() string { return s.String() } +// SetBundleTask sets the BundleTask field's value. +func (s *BundleInstanceOutput) SetBundleTask(v *BundleTask) *BundleInstanceOutput { + s.BundleTask = v + return s +} + // Describes a bundle task. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleTask type BundleTask struct { _ struct{} `type:"structure"` @@ -15876,7 +18141,56 @@ func (s BundleTask) GoString() string { return s.String() } +// SetBundleId sets the BundleId field's value. +func (s *BundleTask) SetBundleId(v string) *BundleTask { + s.BundleId = &v + return s +} + +// SetBundleTaskError sets the BundleTaskError field's value. +func (s *BundleTask) SetBundleTaskError(v *BundleTaskError) *BundleTask { + s.BundleTaskError = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *BundleTask) SetInstanceId(v string) *BundleTask { + s.InstanceId = &v + return s +} + +// SetProgress sets the Progress field's value. +func (s *BundleTask) SetProgress(v string) *BundleTask { + s.Progress = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *BundleTask) SetStartTime(v time.Time) *BundleTask { + s.StartTime = &v + return s +} + +// SetState sets the State field's value. +func (s *BundleTask) SetState(v string) *BundleTask { + s.State = &v + return s +} + +// SetStorage sets the Storage field's value. +func (s *BundleTask) SetStorage(v *Storage) *BundleTask { + s.Storage = v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *BundleTask) SetUpdateTime(v time.Time) *BundleTask { + s.UpdateTime = &v + return s +} + // Describes an error for BundleInstance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleTaskError type BundleTaskError struct { _ struct{} `type:"structure"` @@ -15897,7 +18211,20 @@ func (s BundleTaskError) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *BundleTaskError) SetCode(v string) *BundleTaskError { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *BundleTaskError) SetMessage(v string) *BundleTaskError { + s.Message = &v + return s +} + // Contains the parameters for CancelBundleTask. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelBundleTaskRequest type CancelBundleTaskInput struct { _ struct{} `type:"structure"` @@ -15936,7 +18263,20 @@ func (s *CancelBundleTaskInput) Validate() error { return nil } +// SetBundleId sets the BundleId field's value. +func (s *CancelBundleTaskInput) SetBundleId(v string) *CancelBundleTaskInput { + s.BundleId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CancelBundleTaskInput) SetDryRun(v bool) *CancelBundleTaskInput { + s.DryRun = &v + return s +} + // Contains the output of CancelBundleTask. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelBundleTaskResult type CancelBundleTaskOutput struct { _ struct{} `type:"structure"` @@ -15954,7 +18294,14 @@ func (s CancelBundleTaskOutput) GoString() string { return s.String() } +// SetBundleTask sets the BundleTask field's value. +func (s *CancelBundleTaskOutput) SetBundleTask(v *BundleTask) *CancelBundleTaskOutput { + s.BundleTask = v + return s +} + // Contains the parameters for CancelConversionTask. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelConversionRequest type CancelConversionTaskInput struct { _ struct{} `type:"structure"` @@ -15996,6 +18343,25 @@ func (s *CancelConversionTaskInput) Validate() error { return nil } +// SetConversionTaskId sets the ConversionTaskId field's value. +func (s *CancelConversionTaskInput) SetConversionTaskId(v string) *CancelConversionTaskInput { + s.ConversionTaskId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CancelConversionTaskInput) SetDryRun(v bool) *CancelConversionTaskInput { + s.DryRun = &v + return s +} + +// SetReasonMessage sets the ReasonMessage field's value. +func (s *CancelConversionTaskInput) SetReasonMessage(v string) *CancelConversionTaskInput { + s.ReasonMessage = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelConversionTaskOutput type CancelConversionTaskOutput struct { _ struct{} `type:"structure"` } @@ -16011,6 +18377,7 @@ func (s CancelConversionTaskOutput) GoString() string { } // Contains the parameters for CancelExportTask. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelExportTaskRequest type CancelExportTaskInput struct { _ struct{} `type:"structure"` @@ -16043,6 +18410,13 @@ func (s *CancelExportTaskInput) Validate() error { return nil } +// SetExportTaskId sets the ExportTaskId field's value. +func (s *CancelExportTaskInput) SetExportTaskId(v string) *CancelExportTaskInput { + s.ExportTaskId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelExportTaskOutput type CancelExportTaskOutput struct { _ struct{} `type:"structure"` } @@ -16058,6 +18432,7 @@ func (s CancelExportTaskOutput) GoString() string { } // Contains the parameters for CancelImportTask. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelImportTaskRequest type CancelImportTaskInput struct { _ struct{} `type:"structure"` @@ -16084,7 +18459,26 @@ func (s CancelImportTaskInput) GoString() string { return s.String() } +// SetCancelReason sets the CancelReason field's value. +func (s *CancelImportTaskInput) SetCancelReason(v string) *CancelImportTaskInput { + s.CancelReason = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CancelImportTaskInput) SetDryRun(v bool) *CancelImportTaskInput { + s.DryRun = &v + return s +} + +// SetImportTaskId sets the ImportTaskId field's value. +func (s *CancelImportTaskInput) SetImportTaskId(v string) *CancelImportTaskInput { + s.ImportTaskId = &v + return s +} + // Contains the output for CancelImportTask. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelImportTaskResult type CancelImportTaskOutput struct { _ struct{} `type:"structure"` @@ -16108,7 +18502,26 @@ func (s CancelImportTaskOutput) GoString() string { return s.String() } +// SetImportTaskId sets the ImportTaskId field's value. +func (s *CancelImportTaskOutput) SetImportTaskId(v string) *CancelImportTaskOutput { + s.ImportTaskId = &v + return s +} + +// SetPreviousState sets the PreviousState field's value. +func (s *CancelImportTaskOutput) SetPreviousState(v string) *CancelImportTaskOutput { + s.PreviousState = &v + return s +} + +// SetState sets the State field's value. +func (s *CancelImportTaskOutput) SetState(v string) *CancelImportTaskOutput { + s.State = &v + return s +} + // Contains the parameters for CancelReservedInstancesListing. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelReservedInstancesListingRequest type CancelReservedInstancesListingInput struct { _ struct{} `type:"structure"` @@ -16141,7 +18554,14 @@ func (s *CancelReservedInstancesListingInput) Validate() error { return nil } +// SetReservedInstancesListingId sets the ReservedInstancesListingId field's value. +func (s *CancelReservedInstancesListingInput) SetReservedInstancesListingId(v string) *CancelReservedInstancesListingInput { + s.ReservedInstancesListingId = &v + return s +} + // Contains the output of CancelReservedInstancesListing. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelReservedInstancesListingResult type CancelReservedInstancesListingOutput struct { _ struct{} `type:"structure"` @@ -16159,7 +18579,14 @@ func (s CancelReservedInstancesListingOutput) GoString() string { return s.String() } +// SetReservedInstancesListings sets the ReservedInstancesListings field's value. +func (s *CancelReservedInstancesListingOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *CancelReservedInstancesListingOutput { + s.ReservedInstancesListings = v + return s +} + // Describes a Spot fleet error. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequestsError type CancelSpotFleetRequestsError struct { _ struct{} `type:"structure"` @@ -16184,7 +18611,20 @@ func (s CancelSpotFleetRequestsError) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *CancelSpotFleetRequestsError) SetCode(v string) *CancelSpotFleetRequestsError { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *CancelSpotFleetRequestsError) SetMessage(v string) *CancelSpotFleetRequestsError { + s.Message = &v + return s +} + // Describes a Spot fleet request that was not successfully canceled. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequestsErrorItem type CancelSpotFleetRequestsErrorItem struct { _ struct{} `type:"structure"` @@ -16209,7 +18649,20 @@ func (s CancelSpotFleetRequestsErrorItem) GoString() string { return s.String() } +// SetError sets the Error field's value. +func (s *CancelSpotFleetRequestsErrorItem) SetError(v *CancelSpotFleetRequestsError) *CancelSpotFleetRequestsErrorItem { + s.Error = v + return s +} + +// SetSpotFleetRequestId sets the SpotFleetRequestId field's value. +func (s *CancelSpotFleetRequestsErrorItem) SetSpotFleetRequestId(v string) *CancelSpotFleetRequestsErrorItem { + s.SpotFleetRequestId = &v + return s +} + // Contains the parameters for CancelSpotFleetRequests. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequestsRequest type CancelSpotFleetRequestsInput struct { _ struct{} `type:"structure"` @@ -16257,7 +18710,26 @@ func (s *CancelSpotFleetRequestsInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *CancelSpotFleetRequestsInput) SetDryRun(v bool) *CancelSpotFleetRequestsInput { + s.DryRun = &v + return s +} + +// SetSpotFleetRequestIds sets the SpotFleetRequestIds field's value. +func (s *CancelSpotFleetRequestsInput) SetSpotFleetRequestIds(v []*string) *CancelSpotFleetRequestsInput { + s.SpotFleetRequestIds = v + return s +} + +// SetTerminateInstances sets the TerminateInstances field's value. +func (s *CancelSpotFleetRequestsInput) SetTerminateInstances(v bool) *CancelSpotFleetRequestsInput { + s.TerminateInstances = &v + return s +} + // Contains the output of CancelSpotFleetRequests. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequestsResponse type CancelSpotFleetRequestsOutput struct { _ struct{} `type:"structure"` @@ -16278,7 +18750,20 @@ func (s CancelSpotFleetRequestsOutput) GoString() string { return s.String() } +// SetSuccessfulFleetRequests sets the SuccessfulFleetRequests field's value. +func (s *CancelSpotFleetRequestsOutput) SetSuccessfulFleetRequests(v []*CancelSpotFleetRequestsSuccessItem) *CancelSpotFleetRequestsOutput { + s.SuccessfulFleetRequests = v + return s +} + +// SetUnsuccessfulFleetRequests sets the UnsuccessfulFleetRequests field's value. +func (s *CancelSpotFleetRequestsOutput) SetUnsuccessfulFleetRequests(v []*CancelSpotFleetRequestsErrorItem) *CancelSpotFleetRequestsOutput { + s.UnsuccessfulFleetRequests = v + return s +} + // Describes a Spot fleet request that was successfully canceled. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequestsSuccessItem type CancelSpotFleetRequestsSuccessItem struct { _ struct{} `type:"structure"` @@ -16308,7 +18793,26 @@ func (s CancelSpotFleetRequestsSuccessItem) GoString() string { return s.String() } +// SetCurrentSpotFleetRequestState sets the CurrentSpotFleetRequestState field's value. +func (s *CancelSpotFleetRequestsSuccessItem) SetCurrentSpotFleetRequestState(v string) *CancelSpotFleetRequestsSuccessItem { + s.CurrentSpotFleetRequestState = &v + return s +} + +// SetPreviousSpotFleetRequestState sets the PreviousSpotFleetRequestState field's value. +func (s *CancelSpotFleetRequestsSuccessItem) SetPreviousSpotFleetRequestState(v string) *CancelSpotFleetRequestsSuccessItem { + s.PreviousSpotFleetRequestState = &v + return s +} + +// SetSpotFleetRequestId sets the SpotFleetRequestId field's value. +func (s *CancelSpotFleetRequestsSuccessItem) SetSpotFleetRequestId(v string) *CancelSpotFleetRequestsSuccessItem { + s.SpotFleetRequestId = &v + return s +} + // Contains the parameters for CancelSpotInstanceRequests. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotInstanceRequestsRequest type CancelSpotInstanceRequestsInput struct { _ struct{} `type:"structure"` @@ -16347,7 +18851,20 @@ func (s *CancelSpotInstanceRequestsInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *CancelSpotInstanceRequestsInput) SetDryRun(v bool) *CancelSpotInstanceRequestsInput { + s.DryRun = &v + return s +} + +// SetSpotInstanceRequestIds sets the SpotInstanceRequestIds field's value. +func (s *CancelSpotInstanceRequestsInput) SetSpotInstanceRequestIds(v []*string) *CancelSpotInstanceRequestsInput { + s.SpotInstanceRequestIds = v + return s +} + // Contains the output of CancelSpotInstanceRequests. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotInstanceRequestsResult type CancelSpotInstanceRequestsOutput struct { _ struct{} `type:"structure"` @@ -16365,7 +18882,14 @@ func (s CancelSpotInstanceRequestsOutput) GoString() string { return s.String() } +// SetCancelledSpotInstanceRequests sets the CancelledSpotInstanceRequests field's value. +func (s *CancelSpotInstanceRequestsOutput) SetCancelledSpotInstanceRequests(v []*CancelledSpotInstanceRequest) *CancelSpotInstanceRequestsOutput { + s.CancelledSpotInstanceRequests = v + return s +} + // Describes a request to cancel a Spot instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelledSpotInstanceRequest type CancelledSpotInstanceRequest struct { _ struct{} `type:"structure"` @@ -16386,7 +18910,20 @@ func (s CancelledSpotInstanceRequest) GoString() string { return s.String() } +// SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value. +func (s *CancelledSpotInstanceRequest) SetSpotInstanceRequestId(v string) *CancelledSpotInstanceRequest { + s.SpotInstanceRequestId = &v + return s +} + +// SetState sets the State field's value. +func (s *CancelledSpotInstanceRequest) SetState(v string) *CancelledSpotInstanceRequest { + s.State = &v + return s +} + // Describes the ClassicLink DNS support status of a VPC. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ClassicLinkDnsSupport type ClassicLinkDnsSupport struct { _ struct{} `type:"structure"` @@ -16407,7 +18944,20 @@ func (s ClassicLinkDnsSupport) GoString() string { return s.String() } +// SetClassicLinkDnsSupported sets the ClassicLinkDnsSupported field's value. +func (s *ClassicLinkDnsSupport) SetClassicLinkDnsSupported(v bool) *ClassicLinkDnsSupport { + s.ClassicLinkDnsSupported = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *ClassicLinkDnsSupport) SetVpcId(v string) *ClassicLinkDnsSupport { + s.VpcId = &v + return s +} + // Describes a linked EC2-Classic instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ClassicLinkInstance type ClassicLinkInstance struct { _ struct{} `type:"structure"` @@ -16434,7 +18984,32 @@ func (s ClassicLinkInstance) GoString() string { return s.String() } +// SetGroups sets the Groups field's value. +func (s *ClassicLinkInstance) SetGroups(v []*GroupIdentifier) *ClassicLinkInstance { + s.Groups = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ClassicLinkInstance) SetInstanceId(v string) *ClassicLinkInstance { + s.InstanceId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ClassicLinkInstance) SetTags(v []*Tag) *ClassicLinkInstance { + s.Tags = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *ClassicLinkInstance) SetVpcId(v string) *ClassicLinkInstance { + s.VpcId = &v + return s +} + // Describes the client-specific data. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ClientData type ClientData struct { _ struct{} `type:"structure"` @@ -16461,7 +19036,32 @@ func (s ClientData) GoString() string { return s.String() } +// SetComment sets the Comment field's value. +func (s *ClientData) SetComment(v string) *ClientData { + s.Comment = &v + return s +} + +// SetUploadEnd sets the UploadEnd field's value. +func (s *ClientData) SetUploadEnd(v time.Time) *ClientData { + s.UploadEnd = &v + return s +} + +// SetUploadSize sets the UploadSize field's value. +func (s *ClientData) SetUploadSize(v float64) *ClientData { + s.UploadSize = &v + return s +} + +// SetUploadStart sets the UploadStart field's value. +func (s *ClientData) SetUploadStart(v time.Time) *ClientData { + s.UploadStart = &v + return s +} + // Contains the parameters for ConfirmProductInstance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConfirmProductInstanceRequest type ConfirmProductInstanceInput struct { _ struct{} `type:"structure"` @@ -16508,7 +19108,26 @@ func (s *ConfirmProductInstanceInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *ConfirmProductInstanceInput) SetDryRun(v bool) *ConfirmProductInstanceInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ConfirmProductInstanceInput) SetInstanceId(v string) *ConfirmProductInstanceInput { + s.InstanceId = &v + return s +} + +// SetProductCode sets the ProductCode field's value. +func (s *ConfirmProductInstanceInput) SetProductCode(v string) *ConfirmProductInstanceInput { + s.ProductCode = &v + return s +} + // Contains the output of ConfirmProductInstance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConfirmProductInstanceResult type ConfirmProductInstanceOutput struct { _ struct{} `type:"structure"` @@ -16531,7 +19150,20 @@ func (s ConfirmProductInstanceOutput) GoString() string { return s.String() } +// SetOwnerId sets the OwnerId field's value. +func (s *ConfirmProductInstanceOutput) SetOwnerId(v string) *ConfirmProductInstanceOutput { + s.OwnerId = &v + return s +} + +// SetReturn sets the Return field's value. +func (s *ConfirmProductInstanceOutput) SetReturn(v bool) *ConfirmProductInstanceOutput { + s.Return = &v + return s +} + // Describes a conversion task. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConversionTask type ConversionTask struct { _ struct{} `type:"structure"` @@ -16574,7 +19206,50 @@ func (s ConversionTask) GoString() string { return s.String() } +// SetConversionTaskId sets the ConversionTaskId field's value. +func (s *ConversionTask) SetConversionTaskId(v string) *ConversionTask { + s.ConversionTaskId = &v + return s +} + +// SetExpirationTime sets the ExpirationTime field's value. +func (s *ConversionTask) SetExpirationTime(v string) *ConversionTask { + s.ExpirationTime = &v + return s +} + +// SetImportInstance sets the ImportInstance field's value. +func (s *ConversionTask) SetImportInstance(v *ImportInstanceTaskDetails) *ConversionTask { + s.ImportInstance = v + return s +} + +// SetImportVolume sets the ImportVolume field's value. +func (s *ConversionTask) SetImportVolume(v *ImportVolumeTaskDetails) *ConversionTask { + s.ImportVolume = v + return s +} + +// SetState sets the State field's value. +func (s *ConversionTask) SetState(v string) *ConversionTask { + s.State = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ConversionTask) SetStatusMessage(v string) *ConversionTask { + s.StatusMessage = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ConversionTask) SetTags(v []*Tag) *ConversionTask { + s.Tags = v + return s +} + // Contains the parameters for CopyImage. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyImageRequest type CopyImageInput struct { _ struct{} `type:"structure"` @@ -16654,7 +19329,56 @@ func (s *CopyImageInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *CopyImageInput) SetClientToken(v string) *CopyImageInput { + s.ClientToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CopyImageInput) SetDescription(v string) *CopyImageInput { + s.Description = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CopyImageInput) SetDryRun(v bool) *CopyImageInput { + s.DryRun = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *CopyImageInput) SetEncrypted(v bool) *CopyImageInput { + s.Encrypted = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CopyImageInput) SetKmsKeyId(v string) *CopyImageInput { + s.KmsKeyId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CopyImageInput) SetName(v string) *CopyImageInput { + s.Name = &v + return s +} + +// SetSourceImageId sets the SourceImageId field's value. +func (s *CopyImageInput) SetSourceImageId(v string) *CopyImageInput { + s.SourceImageId = &v + return s +} + +// SetSourceRegion sets the SourceRegion field's value. +func (s *CopyImageInput) SetSourceRegion(v string) *CopyImageInput { + s.SourceRegion = &v + return s +} + // Contains the output of CopyImage. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyImageResult type CopyImageOutput struct { _ struct{} `type:"structure"` @@ -16672,7 +19396,14 @@ func (s CopyImageOutput) GoString() string { return s.String() } +// SetImageId sets the ImageId field's value. +func (s *CopyImageOutput) SetImageId(v string) *CopyImageOutput { + s.ImageId = &v + return s +} + // Contains the parameters for CopySnapshot. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopySnapshotRequest type CopySnapshotInput struct { _ struct{} `type:"structure"` @@ -16683,10 +19414,10 @@ type CopySnapshotInput struct { // copy operation. This parameter is only valid for specifying the destination // region in a PresignedUrl parameter, where it is required. // - // CopySnapshot sends the snapshot copy to the regional endpoint that you - // send the HTTP request to, such as ec2.us-east-1.amazonaws.com (in the AWS - // CLI, this is specified with the --region parameter or the default region - // in your AWS configuration file). + // CopySnapshot sends the snapshot copy to the regional endpoint that you send + // the HTTP request to, such as ec2.us-east-1.amazonaws.com (in the AWS CLI, + // this is specified with the --region parameter or the default region in your + // AWS configuration file). DestinationRegion *string `locationName:"destinationRegion" type:"string"` // Checks whether you have the required permissions for the action, without @@ -16765,7 +19496,56 @@ func (s *CopySnapshotInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CopySnapshotInput) SetDescription(v string) *CopySnapshotInput { + s.Description = &v + return s +} + +// SetDestinationRegion sets the DestinationRegion field's value. +func (s *CopySnapshotInput) SetDestinationRegion(v string) *CopySnapshotInput { + s.DestinationRegion = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CopySnapshotInput) SetDryRun(v bool) *CopySnapshotInput { + s.DryRun = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *CopySnapshotInput) SetEncrypted(v bool) *CopySnapshotInput { + s.Encrypted = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CopySnapshotInput) SetKmsKeyId(v string) *CopySnapshotInput { + s.KmsKeyId = &v + return s +} + +// SetPresignedUrl sets the PresignedUrl field's value. +func (s *CopySnapshotInput) SetPresignedUrl(v string) *CopySnapshotInput { + s.PresignedUrl = &v + return s +} + +// SetSourceRegion sets the SourceRegion field's value. +func (s *CopySnapshotInput) SetSourceRegion(v string) *CopySnapshotInput { + s.SourceRegion = &v + return s +} + +// SetSourceSnapshotId sets the SourceSnapshotId field's value. +func (s *CopySnapshotInput) SetSourceSnapshotId(v string) *CopySnapshotInput { + s.SourceSnapshotId = &v + return s +} + // Contains the output of CopySnapshot. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopySnapshotResult type CopySnapshotOutput struct { _ struct{} `type:"structure"` @@ -16783,7 +19563,14 @@ func (s CopySnapshotOutput) GoString() string { return s.String() } +// SetSnapshotId sets the SnapshotId field's value. +func (s *CopySnapshotOutput) SetSnapshotId(v string) *CopySnapshotOutput { + s.SnapshotId = &v + return s +} + // Contains the parameters for CreateCustomerGateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCustomerGatewayRequest type CreateCustomerGatewayInput struct { _ struct{} `type:"structure"` @@ -16841,7 +19628,32 @@ func (s *CreateCustomerGatewayInput) Validate() error { return nil } +// SetBgpAsn sets the BgpAsn field's value. +func (s *CreateCustomerGatewayInput) SetBgpAsn(v int64) *CreateCustomerGatewayInput { + s.BgpAsn = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateCustomerGatewayInput) SetDryRun(v bool) *CreateCustomerGatewayInput { + s.DryRun = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *CreateCustomerGatewayInput) SetPublicIp(v string) *CreateCustomerGatewayInput { + s.PublicIp = &v + return s +} + +// SetType sets the Type field's value. +func (s *CreateCustomerGatewayInput) SetType(v string) *CreateCustomerGatewayInput { + s.Type = &v + return s +} + // Contains the output of CreateCustomerGateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCustomerGatewayResult type CreateCustomerGatewayOutput struct { _ struct{} `type:"structure"` @@ -16859,7 +19671,14 @@ func (s CreateCustomerGatewayOutput) GoString() string { return s.String() } +// SetCustomerGateway sets the CustomerGateway field's value. +func (s *CreateCustomerGatewayOutput) SetCustomerGateway(v *CustomerGateway) *CreateCustomerGatewayOutput { + s.CustomerGateway = v + return s +} + // Contains the parameters for CreateDhcpOptions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDhcpOptionsRequest type CreateDhcpOptionsInput struct { _ struct{} `type:"structure"` @@ -16898,7 +19717,20 @@ func (s *CreateDhcpOptionsInput) Validate() error { return nil } +// SetDhcpConfigurations sets the DhcpConfigurations field's value. +func (s *CreateDhcpOptionsInput) SetDhcpConfigurations(v []*NewDhcpConfiguration) *CreateDhcpOptionsInput { + s.DhcpConfigurations = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateDhcpOptionsInput) SetDryRun(v bool) *CreateDhcpOptionsInput { + s.DryRun = &v + return s +} + // Contains the output of CreateDhcpOptions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDhcpOptionsResult type CreateDhcpOptionsOutput struct { _ struct{} `type:"structure"` @@ -16916,7 +19748,109 @@ func (s CreateDhcpOptionsOutput) GoString() string { return s.String() } +// SetDhcpOptions sets the DhcpOptions field's value. +func (s *CreateDhcpOptionsOutput) SetDhcpOptions(v *DhcpOptions) *CreateDhcpOptionsOutput { + s.DhcpOptions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateEgressOnlyInternetGatewayRequest +type CreateEgressOnlyInternetGatewayInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier you provide to ensure the idempotency of + // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html). + ClientToken *string `type:"string"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The ID of the VPC for which to create the egress-only Internet gateway. + // + // VpcId is a required field + VpcId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateEgressOnlyInternetGatewayInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateEgressOnlyInternetGatewayInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateEgressOnlyInternetGatewayInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateEgressOnlyInternetGatewayInput"} + if s.VpcId == nil { + invalidParams.Add(request.NewErrParamRequired("VpcId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateEgressOnlyInternetGatewayInput) SetClientToken(v string) *CreateEgressOnlyInternetGatewayInput { + s.ClientToken = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateEgressOnlyInternetGatewayInput) SetDryRun(v bool) *CreateEgressOnlyInternetGatewayInput { + s.DryRun = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CreateEgressOnlyInternetGatewayInput) SetVpcId(v string) *CreateEgressOnlyInternetGatewayInput { + s.VpcId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateEgressOnlyInternetGatewayResult +type CreateEgressOnlyInternetGatewayOutput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier you provide to ensure the idempotency of + // the request. + ClientToken *string `locationName:"clientToken" type:"string"` + + // Information about the egress-only Internet gateway. + EgressOnlyInternetGateway *EgressOnlyInternetGateway `locationName:"egressOnlyInternetGateway" type:"structure"` +} + +// String returns the string representation +func (s CreateEgressOnlyInternetGatewayOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateEgressOnlyInternetGatewayOutput) GoString() string { + return s.String() +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateEgressOnlyInternetGatewayOutput) SetClientToken(v string) *CreateEgressOnlyInternetGatewayOutput { + s.ClientToken = &v + return s +} + +// SetEgressOnlyInternetGateway sets the EgressOnlyInternetGateway field's value. +func (s *CreateEgressOnlyInternetGatewayOutput) SetEgressOnlyInternetGateway(v *EgressOnlyInternetGateway) *CreateEgressOnlyInternetGatewayOutput { + s.EgressOnlyInternetGateway = v + return s +} + // Contains the parameters for CreateFlowLogs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFlowLogsRequest type CreateFlowLogsInput struct { _ struct{} `type:"structure"` @@ -16988,7 +19922,44 @@ func (s *CreateFlowLogsInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *CreateFlowLogsInput) SetClientToken(v string) *CreateFlowLogsInput { + s.ClientToken = &v + return s +} + +// SetDeliverLogsPermissionArn sets the DeliverLogsPermissionArn field's value. +func (s *CreateFlowLogsInput) SetDeliverLogsPermissionArn(v string) *CreateFlowLogsInput { + s.DeliverLogsPermissionArn = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *CreateFlowLogsInput) SetLogGroupName(v string) *CreateFlowLogsInput { + s.LogGroupName = &v + return s +} + +// SetResourceIds sets the ResourceIds field's value. +func (s *CreateFlowLogsInput) SetResourceIds(v []*string) *CreateFlowLogsInput { + s.ResourceIds = v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *CreateFlowLogsInput) SetResourceType(v string) *CreateFlowLogsInput { + s.ResourceType = &v + return s +} + +// SetTrafficType sets the TrafficType field's value. +func (s *CreateFlowLogsInput) SetTrafficType(v string) *CreateFlowLogsInput { + s.TrafficType = &v + return s +} + // Contains the output of CreateFlowLogs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFlowLogsResult type CreateFlowLogsOutput struct { _ struct{} `type:"structure"` @@ -17013,7 +19984,26 @@ func (s CreateFlowLogsOutput) GoString() string { return s.String() } +// SetClientToken sets the ClientToken field's value. +func (s *CreateFlowLogsOutput) SetClientToken(v string) *CreateFlowLogsOutput { + s.ClientToken = &v + return s +} + +// SetFlowLogIds sets the FlowLogIds field's value. +func (s *CreateFlowLogsOutput) SetFlowLogIds(v []*string) *CreateFlowLogsOutput { + s.FlowLogIds = v + return s +} + +// SetUnsuccessful sets the Unsuccessful field's value. +func (s *CreateFlowLogsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *CreateFlowLogsOutput { + s.Unsuccessful = v + return s +} + // Contains the parameters for CreateImage. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImageRequest type CreateImageInput struct { _ struct{} `type:"structure"` @@ -17076,7 +20066,44 @@ func (s *CreateImageInput) Validate() error { return nil } +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *CreateImageInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *CreateImageInput { + s.BlockDeviceMappings = v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateImageInput) SetDescription(v string) *CreateImageInput { + s.Description = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateImageInput) SetDryRun(v bool) *CreateImageInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CreateImageInput) SetInstanceId(v string) *CreateImageInput { + s.InstanceId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateImageInput) SetName(v string) *CreateImageInput { + s.Name = &v + return s +} + +// SetNoReboot sets the NoReboot field's value. +func (s *CreateImageInput) SetNoReboot(v bool) *CreateImageInput { + s.NoReboot = &v + return s +} + // Contains the output of CreateImage. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImageResult type CreateImageOutput struct { _ struct{} `type:"structure"` @@ -17094,7 +20121,14 @@ func (s CreateImageOutput) GoString() string { return s.String() } +// SetImageId sets the ImageId field's value. +func (s *CreateImageOutput) SetImageId(v string) *CreateImageOutput { + s.ImageId = &v + return s +} + // Contains the parameters for CreateInstanceExportTask. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInstanceExportTaskRequest type CreateInstanceExportTaskInput struct { _ struct{} `type:"structure"` @@ -17137,7 +20171,32 @@ func (s *CreateInstanceExportTaskInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateInstanceExportTaskInput) SetDescription(v string) *CreateInstanceExportTaskInput { + s.Description = &v + return s +} + +// SetExportToS3Task sets the ExportToS3Task field's value. +func (s *CreateInstanceExportTaskInput) SetExportToS3Task(v *ExportToS3TaskSpecification) *CreateInstanceExportTaskInput { + s.ExportToS3Task = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CreateInstanceExportTaskInput) SetInstanceId(v string) *CreateInstanceExportTaskInput { + s.InstanceId = &v + return s +} + +// SetTargetEnvironment sets the TargetEnvironment field's value. +func (s *CreateInstanceExportTaskInput) SetTargetEnvironment(v string) *CreateInstanceExportTaskInput { + s.TargetEnvironment = &v + return s +} + // Contains the output for CreateInstanceExportTask. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInstanceExportTaskResult type CreateInstanceExportTaskOutput struct { _ struct{} `type:"structure"` @@ -17155,7 +20214,14 @@ func (s CreateInstanceExportTaskOutput) GoString() string { return s.String() } +// SetExportTask sets the ExportTask field's value. +func (s *CreateInstanceExportTaskOutput) SetExportTask(v *ExportTask) *CreateInstanceExportTaskOutput { + s.ExportTask = v + return s +} + // Contains the parameters for CreateInternetGateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInternetGatewayRequest type CreateInternetGatewayInput struct { _ struct{} `type:"structure"` @@ -17176,7 +20242,14 @@ func (s CreateInternetGatewayInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *CreateInternetGatewayInput) SetDryRun(v bool) *CreateInternetGatewayInput { + s.DryRun = &v + return s +} + // Contains the output of CreateInternetGateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInternetGatewayResult type CreateInternetGatewayOutput struct { _ struct{} `type:"structure"` @@ -17194,7 +20267,14 @@ func (s CreateInternetGatewayOutput) GoString() string { return s.String() } +// SetInternetGateway sets the InternetGateway field's value. +func (s *CreateInternetGatewayOutput) SetInternetGateway(v *InternetGateway) *CreateInternetGatewayOutput { + s.InternetGateway = v + return s +} + // Contains the parameters for CreateKeyPair. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateKeyPairRequest type CreateKeyPairInput struct { _ struct{} `type:"structure"` @@ -17235,7 +20315,20 @@ func (s *CreateKeyPairInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *CreateKeyPairInput) SetDryRun(v bool) *CreateKeyPairInput { + s.DryRun = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *CreateKeyPairInput) SetKeyName(v string) *CreateKeyPairInput { + s.KeyName = &v + return s +} + // Describes a key pair. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/KeyPair type CreateKeyPairOutput struct { _ struct{} `type:"structure"` @@ -17259,7 +20352,26 @@ func (s CreateKeyPairOutput) GoString() string { return s.String() } +// SetKeyFingerprint sets the KeyFingerprint field's value. +func (s *CreateKeyPairOutput) SetKeyFingerprint(v string) *CreateKeyPairOutput { + s.KeyFingerprint = &v + return s +} + +// SetKeyMaterial sets the KeyMaterial field's value. +func (s *CreateKeyPairOutput) SetKeyMaterial(v string) *CreateKeyPairOutput { + s.KeyMaterial = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *CreateKeyPairOutput) SetKeyName(v string) *CreateKeyPairOutput { + s.KeyName = &v + return s +} + // Contains the parameters for CreateNatGateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGatewayRequest type CreateNatGatewayInput struct { _ struct{} `type:"structure"` @@ -17308,7 +20420,26 @@ func (s *CreateNatGatewayInput) Validate() error { return nil } +// SetAllocationId sets the AllocationId field's value. +func (s *CreateNatGatewayInput) SetAllocationId(v string) *CreateNatGatewayInput { + s.AllocationId = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateNatGatewayInput) SetClientToken(v string) *CreateNatGatewayInput { + s.ClientToken = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *CreateNatGatewayInput) SetSubnetId(v string) *CreateNatGatewayInput { + s.SubnetId = &v + return s +} + // Contains the output of CreateNatGateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGatewayResult type CreateNatGatewayOutput struct { _ struct{} `type:"structure"` @@ -17330,14 +20461,25 @@ func (s CreateNatGatewayOutput) GoString() string { return s.String() } +// SetClientToken sets the ClientToken field's value. +func (s *CreateNatGatewayOutput) SetClientToken(v string) *CreateNatGatewayOutput { + s.ClientToken = &v + return s +} + +// SetNatGateway sets the NatGateway field's value. +func (s *CreateNatGatewayOutput) SetNatGateway(v *NatGateway) *CreateNatGatewayOutput { + s.NatGateway = v + return s +} + // Contains the parameters for CreateNetworkAclEntry. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclEntryRequest type CreateNetworkAclEntryInput struct { _ struct{} `type:"structure"` - // The network range to allow or deny, in CIDR notation (for example 172.16.0.0/24). - // - // CidrBlock is a required field - CidrBlock *string `locationName:"cidrBlock" type:"string" required:"true"` + // The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24). + CidrBlock *string `locationName:"cidrBlock" type:"string"` // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have @@ -17351,10 +20493,13 @@ type CreateNetworkAclEntryInput struct { // Egress is a required field Egress *bool `locationName:"egress" type:"boolean" required:"true"` - // ICMP protocol: The ICMP type and code. Required if specifying ICMP for the - // protocol. + // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying the + // ICMP protocol, or protocol 58 (ICMPv6) with an IPv6 CIDR block. IcmpTypeCode *IcmpTypeCode `locationName:"Icmp" type:"structure"` + // The IPv6 network range to allow or deny, in CIDR notation (for example 2001:db8:1234:1a00::/64). + Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"` + // The ID of the network ACL. // // NetworkAclId is a required field @@ -17363,7 +20508,13 @@ type CreateNetworkAclEntryInput struct { // TCP or UDP protocols: The range of ports the rule applies to. PortRange *PortRange `locationName:"portRange" type:"structure"` - // The protocol. A value of -1 means all protocols. + // The protocol. A value of -1 or all means all protocols. If you specify all, + // -1, or a protocol number other than tcp, udp, or icmp, traffic on all ports + // is allowed, regardless of any ports or ICMP types or codes you specify. If + // you specify protocol 58 (ICMPv6) and specify an IPv4 CIDR block, traffic + // for all ICMP types and codes allowed, regardless of any that you specify. + // If you specify protocol 58 (ICMPv6) and specify an IPv6 CIDR block, you must + // specify an ICMP type and code. // // Protocol is a required field Protocol *string `locationName:"protocol" type:"string" required:"true"` @@ -17376,8 +20527,8 @@ type CreateNetworkAclEntryInput struct { // The rule number for the entry (for example, 100). ACL entries are processed // in ascending order by rule number. // - // Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 - // is reserved for internal use. + // Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 is + // reserved for internal use. // // RuleNumber is a required field RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"` @@ -17396,9 +20547,6 @@ func (s CreateNetworkAclEntryInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *CreateNetworkAclEntryInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateNetworkAclEntryInput"} - if s.CidrBlock == nil { - invalidParams.Add(request.NewErrParamRequired("CidrBlock")) - } if s.Egress == nil { invalidParams.Add(request.NewErrParamRequired("Egress")) } @@ -17421,6 +20569,67 @@ func (s *CreateNetworkAclEntryInput) Validate() error { return nil } +// SetCidrBlock sets the CidrBlock field's value. +func (s *CreateNetworkAclEntryInput) SetCidrBlock(v string) *CreateNetworkAclEntryInput { + s.CidrBlock = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateNetworkAclEntryInput) SetDryRun(v bool) *CreateNetworkAclEntryInput { + s.DryRun = &v + return s +} + +// SetEgress sets the Egress field's value. +func (s *CreateNetworkAclEntryInput) SetEgress(v bool) *CreateNetworkAclEntryInput { + s.Egress = &v + return s +} + +// SetIcmpTypeCode sets the IcmpTypeCode field's value. +func (s *CreateNetworkAclEntryInput) SetIcmpTypeCode(v *IcmpTypeCode) *CreateNetworkAclEntryInput { + s.IcmpTypeCode = v + return s +} + +// SetIpv6CidrBlock sets the Ipv6CidrBlock field's value. +func (s *CreateNetworkAclEntryInput) SetIpv6CidrBlock(v string) *CreateNetworkAclEntryInput { + s.Ipv6CidrBlock = &v + return s +} + +// SetNetworkAclId sets the NetworkAclId field's value. +func (s *CreateNetworkAclEntryInput) SetNetworkAclId(v string) *CreateNetworkAclEntryInput { + s.NetworkAclId = &v + return s +} + +// SetPortRange sets the PortRange field's value. +func (s *CreateNetworkAclEntryInput) SetPortRange(v *PortRange) *CreateNetworkAclEntryInput { + s.PortRange = v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *CreateNetworkAclEntryInput) SetProtocol(v string) *CreateNetworkAclEntryInput { + s.Protocol = &v + return s +} + +// SetRuleAction sets the RuleAction field's value. +func (s *CreateNetworkAclEntryInput) SetRuleAction(v string) *CreateNetworkAclEntryInput { + s.RuleAction = &v + return s +} + +// SetRuleNumber sets the RuleNumber field's value. +func (s *CreateNetworkAclEntryInput) SetRuleNumber(v int64) *CreateNetworkAclEntryInput { + s.RuleNumber = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclEntryOutput type CreateNetworkAclEntryOutput struct { _ struct{} `type:"structure"` } @@ -17436,6 +20645,7 @@ func (s CreateNetworkAclEntryOutput) GoString() string { } // Contains the parameters for CreateNetworkAcl. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclRequest type CreateNetworkAclInput struct { _ struct{} `type:"structure"` @@ -17474,7 +20684,20 @@ func (s *CreateNetworkAclInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *CreateNetworkAclInput) SetDryRun(v bool) *CreateNetworkAclInput { + s.DryRun = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CreateNetworkAclInput) SetVpcId(v string) *CreateNetworkAclInput { + s.VpcId = &v + return s +} + // Contains the output of CreateNetworkAcl. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclResult type CreateNetworkAclOutput struct { _ struct{} `type:"structure"` @@ -17492,7 +20715,14 @@ func (s CreateNetworkAclOutput) GoString() string { return s.String() } +// SetNetworkAcl sets the NetworkAcl field's value. +func (s *CreateNetworkAclOutput) SetNetworkAcl(v *NetworkAcl) *CreateNetworkAclOutput { + s.NetworkAcl = v + return s +} + // Contains the parameters for CreateNetworkInterface. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfaceRequest type CreateNetworkInterfaceInput struct { _ struct{} `type:"structure"` @@ -17508,24 +20738,36 @@ type CreateNetworkInterfaceInput struct { // The IDs of one or more security groups. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"` - // The primary private IP address of the network interface. If you don't specify - // an IP address, Amazon EC2 selects one for you from the subnet range. If you - // specify an IP address, you cannot indicate any IP addresses specified in - // privateIpAddresses as primary (only one IP address can be designated as primary). + // The number of IPv6 addresses to assign to a network interface. Amazon EC2 + // automatically selects the IPv6 addresses from the subnet range. You can't + // use this option if specifying specific IPv6 addresses. If your subnet has + // the AssignIpv6AddressOnCreation attribute set to true, you can specify 0 + // to override this setting. + Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"` + + // One or more specific IPv6 addresses from the IPv6 CIDR block range of your + // subnet. You can't use this option if you're specifying a number of IPv6 addresses. + Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6Addresses" locationNameList:"item" type:"list"` + + // The primary private IPv4 address of the network interface. If you don't specify + // an IPv4 address, Amazon EC2 selects one for you from the subnet's IPv4 CIDR + // range. If you specify an IP address, you cannot indicate any IP addresses + // specified in privateIpAddresses as primary (only one IP address can be designated + // as primary). PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` - // One or more private IP addresses. + // One or more private IPv4 addresses. PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddresses" locationNameList:"item" type:"list"` - // The number of secondary private IP addresses to assign to a network interface. - // When you specify a number of secondary IP addresses, Amazon EC2 selects these - // IP addresses within the subnet range. You can't specify this option and specify - // more than one private IP address using privateIpAddresses. + // The number of secondary private IPv4 addresses to assign to a network interface. + // When you specify a number of secondary IPv4 addresses, Amazon EC2 selects + // these IP addresses within the subnet's IPv4 CIDR range. You can't specify + // this option and specify more than one private IP address using privateIpAddresses. // - // The number of IP addresses you can assign to a network interface varies - // by instance type. For more information, see Private IP Addresses Per ENI - // Per Instance Type (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI) - // in the Amazon Elastic Compute Cloud User Guide. + // The number of IP addresses you can assign to a network interface varies by + // instance type. For more information, see IP Addresses Per ENI Per Instance + // Type (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI) + // in the Amazon Virtual Private Cloud User Guide. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"` // The ID of the subnet to associate with the network interface. @@ -17567,7 +20809,62 @@ func (s *CreateNetworkInterfaceInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateNetworkInterfaceInput) SetDescription(v string) *CreateNetworkInterfaceInput { + s.Description = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateNetworkInterfaceInput) SetDryRun(v bool) *CreateNetworkInterfaceInput { + s.DryRun = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *CreateNetworkInterfaceInput) SetGroups(v []*string) *CreateNetworkInterfaceInput { + s.Groups = v + return s +} + +// SetIpv6AddressCount sets the Ipv6AddressCount field's value. +func (s *CreateNetworkInterfaceInput) SetIpv6AddressCount(v int64) *CreateNetworkInterfaceInput { + s.Ipv6AddressCount = &v + return s +} + +// SetIpv6Addresses sets the Ipv6Addresses field's value. +func (s *CreateNetworkInterfaceInput) SetIpv6Addresses(v []*InstanceIpv6Address) *CreateNetworkInterfaceInput { + s.Ipv6Addresses = v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *CreateNetworkInterfaceInput) SetPrivateIpAddress(v string) *CreateNetworkInterfaceInput { + s.PrivateIpAddress = &v + return s +} + +// SetPrivateIpAddresses sets the PrivateIpAddresses field's value. +func (s *CreateNetworkInterfaceInput) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *CreateNetworkInterfaceInput { + s.PrivateIpAddresses = v + return s +} + +// SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value. +func (s *CreateNetworkInterfaceInput) SetSecondaryPrivateIpAddressCount(v int64) *CreateNetworkInterfaceInput { + s.SecondaryPrivateIpAddressCount = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *CreateNetworkInterfaceInput) SetSubnetId(v string) *CreateNetworkInterfaceInput { + s.SubnetId = &v + return s +} + // Contains the output of CreateNetworkInterface. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfaceResult type CreateNetworkInterfaceOutput struct { _ struct{} `type:"structure"` @@ -17585,7 +20882,14 @@ func (s CreateNetworkInterfaceOutput) GoString() string { return s.String() } +// SetNetworkInterface sets the NetworkInterface field's value. +func (s *CreateNetworkInterfaceOutput) SetNetworkInterface(v *NetworkInterface) *CreateNetworkInterfaceOutput { + s.NetworkInterface = v + return s +} + // Contains the parameters for CreatePlacementGroup. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreatePlacementGroupRequest type CreatePlacementGroupInput struct { _ struct{} `type:"structure"` @@ -17634,6 +20938,25 @@ func (s *CreatePlacementGroupInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *CreatePlacementGroupInput) SetDryRun(v bool) *CreatePlacementGroupInput { + s.DryRun = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *CreatePlacementGroupInput) SetGroupName(v string) *CreatePlacementGroupInput { + s.GroupName = &v + return s +} + +// SetStrategy sets the Strategy field's value. +func (s *CreatePlacementGroupInput) SetStrategy(v string) *CreatePlacementGroupInput { + s.Strategy = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreatePlacementGroupOutput type CreatePlacementGroupOutput struct { _ struct{} `type:"structure"` } @@ -17649,6 +20972,7 @@ func (s CreatePlacementGroupOutput) GoString() string { } // Contains the parameters for CreateReservedInstancesListing. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateReservedInstancesListingRequest type CreateReservedInstancesListingInput struct { _ struct{} `type:"structure"` @@ -17711,7 +21035,32 @@ func (s *CreateReservedInstancesListingInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *CreateReservedInstancesListingInput) SetClientToken(v string) *CreateReservedInstancesListingInput { + s.ClientToken = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *CreateReservedInstancesListingInput) SetInstanceCount(v int64) *CreateReservedInstancesListingInput { + s.InstanceCount = &v + return s +} + +// SetPriceSchedules sets the PriceSchedules field's value. +func (s *CreateReservedInstancesListingInput) SetPriceSchedules(v []*PriceScheduleSpecification) *CreateReservedInstancesListingInput { + s.PriceSchedules = v + return s +} + +// SetReservedInstancesId sets the ReservedInstancesId field's value. +func (s *CreateReservedInstancesListingInput) SetReservedInstancesId(v string) *CreateReservedInstancesListingInput { + s.ReservedInstancesId = &v + return s +} + // Contains the output of CreateReservedInstancesListing. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateReservedInstancesListingResult type CreateReservedInstancesListingOutput struct { _ struct{} `type:"structure"` @@ -17729,15 +21078,24 @@ func (s CreateReservedInstancesListingOutput) GoString() string { return s.String() } +// SetReservedInstancesListings sets the ReservedInstancesListings field's value. +func (s *CreateReservedInstancesListingOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *CreateReservedInstancesListingOutput { + s.ReservedInstancesListings = v + return s +} + // Contains the parameters for CreateRoute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteRequest type CreateRouteInput struct { _ struct{} `type:"structure"` - // The CIDR address block used for the destination match. Routing decisions + // The IPv4 CIDR address block used for the destination match. Routing decisions // are based on the most specific match. - // - // DestinationCidrBlock is a required field - DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string" required:"true"` + DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"` + + // The IPv6 CIDR block used for the destination match. Routing decisions are + // based on the most specific match. + DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"` // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have @@ -17745,6 +21103,9 @@ type CreateRouteInput struct { // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` + // [IPv6 traffic only] The ID of an egress-only Internet gateway. + EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"` + // The ID of an Internet gateway or virtual private gateway attached to your // VPC. GatewayId *string `locationName:"gatewayId" type:"string"` @@ -17753,7 +21114,7 @@ type CreateRouteInput struct { // an instance ID unless exactly one network interface is attached. InstanceId *string `locationName:"instanceId" type:"string"` - // The ID of a NAT gateway. + // [IPv4 traffic only] The ID of a NAT gateway. NatGatewayId *string `locationName:"natGatewayId" type:"string"` // The ID of a network interface. @@ -17781,9 +21142,6 @@ func (s CreateRouteInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *CreateRouteInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateRouteInput"} - if s.DestinationCidrBlock == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock")) - } if s.RouteTableId == nil { invalidParams.Add(request.NewErrParamRequired("RouteTableId")) } @@ -17794,7 +21152,68 @@ func (s *CreateRouteInput) Validate() error { return nil } +// SetDestinationCidrBlock sets the DestinationCidrBlock field's value. +func (s *CreateRouteInput) SetDestinationCidrBlock(v string) *CreateRouteInput { + s.DestinationCidrBlock = &v + return s +} + +// SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value. +func (s *CreateRouteInput) SetDestinationIpv6CidrBlock(v string) *CreateRouteInput { + s.DestinationIpv6CidrBlock = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateRouteInput) SetDryRun(v bool) *CreateRouteInput { + s.DryRun = &v + return s +} + +// SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value. +func (s *CreateRouteInput) SetEgressOnlyInternetGatewayId(v string) *CreateRouteInput { + s.EgressOnlyInternetGatewayId = &v + return s +} + +// SetGatewayId sets the GatewayId field's value. +func (s *CreateRouteInput) SetGatewayId(v string) *CreateRouteInput { + s.GatewayId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CreateRouteInput) SetInstanceId(v string) *CreateRouteInput { + s.InstanceId = &v + return s +} + +// SetNatGatewayId sets the NatGatewayId field's value. +func (s *CreateRouteInput) SetNatGatewayId(v string) *CreateRouteInput { + s.NatGatewayId = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *CreateRouteInput) SetNetworkInterfaceId(v string) *CreateRouteInput { + s.NetworkInterfaceId = &v + return s +} + +// SetRouteTableId sets the RouteTableId field's value. +func (s *CreateRouteInput) SetRouteTableId(v string) *CreateRouteInput { + s.RouteTableId = &v + return s +} + +// SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. +func (s *CreateRouteInput) SetVpcPeeringConnectionId(v string) *CreateRouteInput { + s.VpcPeeringConnectionId = &v + return s +} + // Contains the output of CreateRoute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteResult type CreateRouteOutput struct { _ struct{} `type:"structure"` @@ -17812,7 +21231,14 @@ func (s CreateRouteOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *CreateRouteOutput) SetReturn(v bool) *CreateRouteOutput { + s.Return = &v + return s +} + // Contains the parameters for CreateRouteTable. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteTableRequest type CreateRouteTableInput struct { _ struct{} `type:"structure"` @@ -17851,7 +21277,20 @@ func (s *CreateRouteTableInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *CreateRouteTableInput) SetDryRun(v bool) *CreateRouteTableInput { + s.DryRun = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CreateRouteTableInput) SetVpcId(v string) *CreateRouteTableInput { + s.VpcId = &v + return s +} + // Contains the output of CreateRouteTable. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteTableResult type CreateRouteTableOutput struct { _ struct{} `type:"structure"` @@ -17869,7 +21308,14 @@ func (s CreateRouteTableOutput) GoString() string { return s.String() } +// SetRouteTable sets the RouteTable field's value. +func (s *CreateRouteTableOutput) SetRouteTable(v *RouteTable) *CreateRouteTableOutput { + s.RouteTable = v + return s +} + // Contains the parameters for CreateSecurityGroup. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSecurityGroupRequest type CreateSecurityGroupInput struct { _ struct{} `type:"structure"` @@ -17931,7 +21377,32 @@ func (s *CreateSecurityGroupInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateSecurityGroupInput) SetDescription(v string) *CreateSecurityGroupInput { + s.Description = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateSecurityGroupInput) SetDryRun(v bool) *CreateSecurityGroupInput { + s.DryRun = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *CreateSecurityGroupInput) SetGroupName(v string) *CreateSecurityGroupInput { + s.GroupName = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CreateSecurityGroupInput) SetVpcId(v string) *CreateSecurityGroupInput { + s.VpcId = &v + return s +} + // Contains the output of CreateSecurityGroup. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSecurityGroupResult type CreateSecurityGroupOutput struct { _ struct{} `type:"structure"` @@ -17949,7 +21420,14 @@ func (s CreateSecurityGroupOutput) GoString() string { return s.String() } +// SetGroupId sets the GroupId field's value. +func (s *CreateSecurityGroupOutput) SetGroupId(v string) *CreateSecurityGroupOutput { + s.GroupId = &v + return s +} + // Contains the parameters for CreateSnapshot. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSnapshotRequest type CreateSnapshotInput struct { _ struct{} `type:"structure"` @@ -17991,7 +21469,26 @@ func (s *CreateSnapshotInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateSnapshotInput) SetDescription(v string) *CreateSnapshotInput { + s.Description = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateSnapshotInput) SetDryRun(v bool) *CreateSnapshotInput { + s.DryRun = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *CreateSnapshotInput) SetVolumeId(v string) *CreateSnapshotInput { + s.VolumeId = &v + return s +} + // Contains the parameters for CreateSpotDatafeedSubscription. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSpotDatafeedSubscriptionRequest type CreateSpotDatafeedSubscriptionInput struct { _ struct{} `type:"structure"` @@ -18033,7 +21530,26 @@ func (s *CreateSpotDatafeedSubscriptionInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *CreateSpotDatafeedSubscriptionInput) SetBucket(v string) *CreateSpotDatafeedSubscriptionInput { + s.Bucket = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateSpotDatafeedSubscriptionInput) SetDryRun(v bool) *CreateSpotDatafeedSubscriptionInput { + s.DryRun = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *CreateSpotDatafeedSubscriptionInput) SetPrefix(v string) *CreateSpotDatafeedSubscriptionInput { + s.Prefix = &v + return s +} + // Contains the output of CreateSpotDatafeedSubscription. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSpotDatafeedSubscriptionResult type CreateSpotDatafeedSubscriptionOutput struct { _ struct{} `type:"structure"` @@ -18051,17 +21567,24 @@ func (s CreateSpotDatafeedSubscriptionOutput) GoString() string { return s.String() } +// SetSpotDatafeedSubscription sets the SpotDatafeedSubscription field's value. +func (s *CreateSpotDatafeedSubscriptionOutput) SetSpotDatafeedSubscription(v *SpotDatafeedSubscription) *CreateSpotDatafeedSubscriptionOutput { + s.SpotDatafeedSubscription = v + return s +} + // Contains the parameters for CreateSubnet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSubnetRequest type CreateSubnetInput struct { _ struct{} `type:"structure"` // The Availability Zone for the subnet. // - // Default: AWS selects one for you. If you create more than one subnet in - // your VPC, we may not necessarily select a different zone for each subnet. + // Default: AWS selects one for you. If you create more than one subnet in your + // VPC, we may not necessarily select a different zone for each subnet. AvailabilityZone *string `type:"string"` - // The network range for the subnet, in CIDR notation. For example, 10.0.0.0/24. + // The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24. // // CidrBlock is a required field CidrBlock *string `type:"string" required:"true"` @@ -18072,6 +21595,10 @@ type CreateSubnetInput struct { // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` + // The IPv6 network range for the subnet, in CIDR notation. The subnet size + // must use a /64 prefix length. + Ipv6CidrBlock *string `type:"string"` + // The ID of the VPC. // // VpcId is a required field @@ -18104,7 +21631,38 @@ func (s *CreateSubnetInput) Validate() error { return nil } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateSubnetInput) SetAvailabilityZone(v string) *CreateSubnetInput { + s.AvailabilityZone = &v + return s +} + +// SetCidrBlock sets the CidrBlock field's value. +func (s *CreateSubnetInput) SetCidrBlock(v string) *CreateSubnetInput { + s.CidrBlock = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateSubnetInput) SetDryRun(v bool) *CreateSubnetInput { + s.DryRun = &v + return s +} + +// SetIpv6CidrBlock sets the Ipv6CidrBlock field's value. +func (s *CreateSubnetInput) SetIpv6CidrBlock(v string) *CreateSubnetInput { + s.Ipv6CidrBlock = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CreateSubnetInput) SetVpcId(v string) *CreateSubnetInput { + s.VpcId = &v + return s +} + // Contains the output of CreateSubnet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSubnetResult type CreateSubnetOutput struct { _ struct{} `type:"structure"` @@ -18122,7 +21680,14 @@ func (s CreateSubnetOutput) GoString() string { return s.String() } +// SetSubnet sets the Subnet field's value. +func (s *CreateSubnetOutput) SetSubnet(v *Subnet) *CreateSubnetOutput { + s.Subnet = v + return s +} + // Contains the parameters for CreateTags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTagsRequest type CreateTagsInput struct { _ struct{} `type:"structure"` @@ -18171,6 +21736,25 @@ func (s *CreateTagsInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *CreateTagsInput) SetDryRun(v bool) *CreateTagsInput { + s.DryRun = &v + return s +} + +// SetResources sets the Resources field's value. +func (s *CreateTagsInput) SetResources(v []*string) *CreateTagsInput { + s.Resources = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateTagsInput) SetTags(v []*Tag) *CreateTagsInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTagsOutput type CreateTagsOutput struct { _ struct{} `type:"structure"` } @@ -18186,6 +21770,7 @@ func (s CreateTagsOutput) GoString() string { } // Contains the parameters for CreateVolume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolumeRequest type CreateVolumeInput struct { _ struct{} `type:"structure"` @@ -18211,7 +21796,7 @@ type CreateVolumeInput struct { Encrypted *bool `locationName:"encrypted" type:"boolean"` // Only valid for Provisioned IOPS SSD volumes. The number of I/O operations - // per second (IOPS) to provision for the volume, with a maximum ratio of 30 + // per second (IOPS) to provision for the volume, with a maximum ratio of 50 // IOPS/GiB. // // Constraint: Range is 100 to 20000 for Provisioned IOPS SSD volumes @@ -18270,8 +21855,57 @@ func (s *CreateVolumeInput) Validate() error { return nil } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateVolumeInput) SetAvailabilityZone(v string) *CreateVolumeInput { + s.AvailabilityZone = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateVolumeInput) SetDryRun(v bool) *CreateVolumeInput { + s.DryRun = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *CreateVolumeInput) SetEncrypted(v bool) *CreateVolumeInput { + s.Encrypted = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *CreateVolumeInput) SetIops(v int64) *CreateVolumeInput { + s.Iops = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateVolumeInput) SetKmsKeyId(v string) *CreateVolumeInput { + s.KmsKeyId = &v + return s +} + +// SetSize sets the Size field's value. +func (s *CreateVolumeInput) SetSize(v int64) *CreateVolumeInput { + s.Size = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *CreateVolumeInput) SetSnapshotId(v string) *CreateVolumeInput { + s.SnapshotId = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *CreateVolumeInput) SetVolumeType(v string) *CreateVolumeInput { + s.VolumeType = &v + return s +} + // Describes the user or group to be added or removed from the permissions for // a volume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolumePermission type CreateVolumePermission struct { _ struct{} `type:"structure"` @@ -18294,7 +21928,20 @@ func (s CreateVolumePermission) GoString() string { return s.String() } +// SetGroup sets the Group field's value. +func (s *CreateVolumePermission) SetGroup(v string) *CreateVolumePermission { + s.Group = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *CreateVolumePermission) SetUserId(v string) *CreateVolumePermission { + s.UserId = &v + return s +} + // Describes modifications to the permissions for a volume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolumePermissionModifications type CreateVolumePermissionModifications struct { _ struct{} `type:"structure"` @@ -18317,7 +21964,20 @@ func (s CreateVolumePermissionModifications) GoString() string { return s.String() } +// SetAdd sets the Add field's value. +func (s *CreateVolumePermissionModifications) SetAdd(v []*CreateVolumePermission) *CreateVolumePermissionModifications { + s.Add = v + return s +} + +// SetRemove sets the Remove field's value. +func (s *CreateVolumePermissionModifications) SetRemove(v []*CreateVolumePermission) *CreateVolumePermissionModifications { + s.Remove = v + return s +} + // Contains the parameters for CreateVpcEndpoint. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointRequest type CreateVpcEndpointInput struct { _ struct{} `type:"structure"` @@ -18339,7 +21999,7 @@ type CreateVpcEndpointInput struct { // One or more route table IDs. RouteTableIds []*string `locationName:"RouteTableId" locationNameList:"item" type:"list"` - // The AWS service name, in the form com.amazonaws.region.service . To get a + // The AWS service name, in the form com.amazonaws.region.service. To get a // list of available services, use the DescribeVpcEndpointServices request. // // ServiceName is a required field @@ -18377,7 +22037,44 @@ func (s *CreateVpcEndpointInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *CreateVpcEndpointInput) SetClientToken(v string) *CreateVpcEndpointInput { + s.ClientToken = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateVpcEndpointInput) SetDryRun(v bool) *CreateVpcEndpointInput { + s.DryRun = &v + return s +} + +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *CreateVpcEndpointInput) SetPolicyDocument(v string) *CreateVpcEndpointInput { + s.PolicyDocument = &v + return s +} + +// SetRouteTableIds sets the RouteTableIds field's value. +func (s *CreateVpcEndpointInput) SetRouteTableIds(v []*string) *CreateVpcEndpointInput { + s.RouteTableIds = v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *CreateVpcEndpointInput) SetServiceName(v string) *CreateVpcEndpointInput { + s.ServiceName = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CreateVpcEndpointInput) SetVpcId(v string) *CreateVpcEndpointInput { + s.VpcId = &v + return s +} + // Contains the output of CreateVpcEndpoint. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointResult type CreateVpcEndpointOutput struct { _ struct{} `type:"structure"` @@ -18399,11 +22096,29 @@ func (s CreateVpcEndpointOutput) GoString() string { return s.String() } +// SetClientToken sets the ClientToken field's value. +func (s *CreateVpcEndpointOutput) SetClientToken(v string) *CreateVpcEndpointOutput { + s.ClientToken = &v + return s +} + +// SetVpcEndpoint sets the VpcEndpoint field's value. +func (s *CreateVpcEndpointOutput) SetVpcEndpoint(v *VpcEndpoint) *CreateVpcEndpointOutput { + s.VpcEndpoint = v + return s +} + // Contains the parameters for CreateVpc. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcRequest type CreateVpcInput struct { _ struct{} `type:"structure"` - // The network range for the VPC, in CIDR notation. For example, 10.0.0.0/16. + // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for + // the VPC. You cannot specify the range of IP addresses, or the size of the + // CIDR block. + AmazonProvidedIpv6CidrBlock *bool `locationName:"amazonProvidedIpv6CidrBlock" type:"boolean"` + + // The IPv4 network range for the VPC, in CIDR notation. For example, 10.0.0.0/16. // // CidrBlock is a required field CidrBlock *string `type:"string" required:"true"` @@ -18420,7 +22135,7 @@ type CreateVpcInput struct { // as dedicated tenancy instances by default. You can only launch instances // with a tenancy of dedicated or host into a dedicated tenancy VPC. // - // Important: The host value cannot be used with this parameter. Use the default + // Important: The host value cannot be used with this parameter. Use the default // or dedicated values only. // // Default: default @@ -18450,7 +22165,32 @@ func (s *CreateVpcInput) Validate() error { return nil } +// SetAmazonProvidedIpv6CidrBlock sets the AmazonProvidedIpv6CidrBlock field's value. +func (s *CreateVpcInput) SetAmazonProvidedIpv6CidrBlock(v bool) *CreateVpcInput { + s.AmazonProvidedIpv6CidrBlock = &v + return s +} + +// SetCidrBlock sets the CidrBlock field's value. +func (s *CreateVpcInput) SetCidrBlock(v string) *CreateVpcInput { + s.CidrBlock = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateVpcInput) SetDryRun(v bool) *CreateVpcInput { + s.DryRun = &v + return s +} + +// SetInstanceTenancy sets the InstanceTenancy field's value. +func (s *CreateVpcInput) SetInstanceTenancy(v string) *CreateVpcInput { + s.InstanceTenancy = &v + return s +} + // Contains the output of CreateVpc. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcResult type CreateVpcOutput struct { _ struct{} `type:"structure"` @@ -18468,7 +22208,14 @@ func (s CreateVpcOutput) GoString() string { return s.String() } +// SetVpc sets the Vpc field's value. +func (s *CreateVpcOutput) SetVpc(v *Vpc) *CreateVpcOutput { + s.Vpc = v + return s +} + // Contains the parameters for CreateVpcPeeringConnection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcPeeringConnectionRequest type CreateVpcPeeringConnectionInput struct { _ struct{} `type:"structure"` @@ -18500,7 +22247,32 @@ func (s CreateVpcPeeringConnectionInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *CreateVpcPeeringConnectionInput) SetDryRun(v bool) *CreateVpcPeeringConnectionInput { + s.DryRun = &v + return s +} + +// SetPeerOwnerId sets the PeerOwnerId field's value. +func (s *CreateVpcPeeringConnectionInput) SetPeerOwnerId(v string) *CreateVpcPeeringConnectionInput { + s.PeerOwnerId = &v + return s +} + +// SetPeerVpcId sets the PeerVpcId field's value. +func (s *CreateVpcPeeringConnectionInput) SetPeerVpcId(v string) *CreateVpcPeeringConnectionInput { + s.PeerVpcId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CreateVpcPeeringConnectionInput) SetVpcId(v string) *CreateVpcPeeringConnectionInput { + s.VpcId = &v + return s +} + // Contains the output of CreateVpcPeeringConnection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcPeeringConnectionResult type CreateVpcPeeringConnectionOutput struct { _ struct{} `type:"structure"` @@ -18518,7 +22290,14 @@ func (s CreateVpcPeeringConnectionOutput) GoString() string { return s.String() } +// SetVpcPeeringConnection sets the VpcPeeringConnection field's value. +func (s *CreateVpcPeeringConnectionOutput) SetVpcPeeringConnection(v *VpcPeeringConnection) *CreateVpcPeeringConnectionOutput { + s.VpcPeeringConnection = v + return s +} + // Contains the parameters for CreateVpnConnection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionRequest type CreateVpnConnectionInput struct { _ struct{} `type:"structure"` @@ -18580,7 +22359,38 @@ func (s *CreateVpnConnectionInput) Validate() error { return nil } +// SetCustomerGatewayId sets the CustomerGatewayId field's value. +func (s *CreateVpnConnectionInput) SetCustomerGatewayId(v string) *CreateVpnConnectionInput { + s.CustomerGatewayId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateVpnConnectionInput) SetDryRun(v bool) *CreateVpnConnectionInput { + s.DryRun = &v + return s +} + +// SetOptions sets the Options field's value. +func (s *CreateVpnConnectionInput) SetOptions(v *VpnConnectionOptionsSpecification) *CreateVpnConnectionInput { + s.Options = v + return s +} + +// SetType sets the Type field's value. +func (s *CreateVpnConnectionInput) SetType(v string) *CreateVpnConnectionInput { + s.Type = &v + return s +} + +// SetVpnGatewayId sets the VpnGatewayId field's value. +func (s *CreateVpnConnectionInput) SetVpnGatewayId(v string) *CreateVpnConnectionInput { + s.VpnGatewayId = &v + return s +} + // Contains the output of CreateVpnConnection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionResult type CreateVpnConnectionOutput struct { _ struct{} `type:"structure"` @@ -18598,7 +22408,14 @@ func (s CreateVpnConnectionOutput) GoString() string { return s.String() } +// SetVpnConnection sets the VpnConnection field's value. +func (s *CreateVpnConnectionOutput) SetVpnConnection(v *VpnConnection) *CreateVpnConnectionOutput { + s.VpnConnection = v + return s +} + // Contains the parameters for CreateVpnConnectionRoute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionRouteRequest type CreateVpnConnectionRouteInput struct { _ struct{} `type:"structure"` @@ -18639,6 +22456,19 @@ func (s *CreateVpnConnectionRouteInput) Validate() error { return nil } +// SetDestinationCidrBlock sets the DestinationCidrBlock field's value. +func (s *CreateVpnConnectionRouteInput) SetDestinationCidrBlock(v string) *CreateVpnConnectionRouteInput { + s.DestinationCidrBlock = &v + return s +} + +// SetVpnConnectionId sets the VpnConnectionId field's value. +func (s *CreateVpnConnectionRouteInput) SetVpnConnectionId(v string) *CreateVpnConnectionRouteInput { + s.VpnConnectionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionRouteOutput type CreateVpnConnectionRouteOutput struct { _ struct{} `type:"structure"` } @@ -18654,6 +22484,7 @@ func (s CreateVpnConnectionRouteOutput) GoString() string { } // Contains the parameters for CreateVpnGateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnGatewayRequest type CreateVpnGatewayInput struct { _ struct{} `type:"structure"` @@ -18695,7 +22526,26 @@ func (s *CreateVpnGatewayInput) Validate() error { return nil } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateVpnGatewayInput) SetAvailabilityZone(v string) *CreateVpnGatewayInput { + s.AvailabilityZone = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateVpnGatewayInput) SetDryRun(v bool) *CreateVpnGatewayInput { + s.DryRun = &v + return s +} + +// SetType sets the Type field's value. +func (s *CreateVpnGatewayInput) SetType(v string) *CreateVpnGatewayInput { + s.Type = &v + return s +} + // Contains the output of CreateVpnGateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnGatewayResult type CreateVpnGatewayOutput struct { _ struct{} `type:"structure"` @@ -18713,7 +22563,14 @@ func (s CreateVpnGatewayOutput) GoString() string { return s.String() } +// SetVpnGateway sets the VpnGateway field's value. +func (s *CreateVpnGatewayOutput) SetVpnGateway(v *VpnGateway) *CreateVpnGatewayOutput { + s.VpnGateway = v + return s +} + // Describes a customer gateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CustomerGateway type CustomerGateway struct { _ struct{} `type:"structure"` @@ -18748,7 +22605,44 @@ func (s CustomerGateway) GoString() string { return s.String() } +// SetBgpAsn sets the BgpAsn field's value. +func (s *CustomerGateway) SetBgpAsn(v string) *CustomerGateway { + s.BgpAsn = &v + return s +} + +// SetCustomerGatewayId sets the CustomerGatewayId field's value. +func (s *CustomerGateway) SetCustomerGatewayId(v string) *CustomerGateway { + s.CustomerGatewayId = &v + return s +} + +// SetIpAddress sets the IpAddress field's value. +func (s *CustomerGateway) SetIpAddress(v string) *CustomerGateway { + s.IpAddress = &v + return s +} + +// SetState sets the State field's value. +func (s *CustomerGateway) SetState(v string) *CustomerGateway { + s.State = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CustomerGateway) SetTags(v []*Tag) *CustomerGateway { + s.Tags = v + return s +} + +// SetType sets the Type field's value. +func (s *CustomerGateway) SetType(v string) *CustomerGateway { + s.Type = &v + return s +} + // Contains the parameters for DeleteCustomerGateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCustomerGatewayRequest type DeleteCustomerGatewayInput struct { _ struct{} `type:"structure"` @@ -18787,6 +22681,19 @@ func (s *DeleteCustomerGatewayInput) Validate() error { return nil } +// SetCustomerGatewayId sets the CustomerGatewayId field's value. +func (s *DeleteCustomerGatewayInput) SetCustomerGatewayId(v string) *DeleteCustomerGatewayInput { + s.CustomerGatewayId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DeleteCustomerGatewayInput) SetDryRun(v bool) *DeleteCustomerGatewayInput { + s.DryRun = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCustomerGatewayOutput type DeleteCustomerGatewayOutput struct { _ struct{} `type:"structure"` } @@ -18802,6 +22709,7 @@ func (s DeleteCustomerGatewayOutput) GoString() string { } // Contains the parameters for DeleteDhcpOptions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteDhcpOptionsRequest type DeleteDhcpOptionsInput struct { _ struct{} `type:"structure"` @@ -18840,6 +22748,19 @@ func (s *DeleteDhcpOptionsInput) Validate() error { return nil } +// SetDhcpOptionsId sets the DhcpOptionsId field's value. +func (s *DeleteDhcpOptionsInput) SetDhcpOptionsId(v string) *DeleteDhcpOptionsInput { + s.DhcpOptionsId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DeleteDhcpOptionsInput) SetDryRun(v bool) *DeleteDhcpOptionsInput { + s.DryRun = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteDhcpOptionsOutput type DeleteDhcpOptionsOutput struct { _ struct{} `type:"structure"` } @@ -18854,7 +22775,83 @@ func (s DeleteDhcpOptionsOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteEgressOnlyInternetGatewayRequest +type DeleteEgressOnlyInternetGatewayInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The ID of the egress-only Internet gateway. + // + // EgressOnlyInternetGatewayId is a required field + EgressOnlyInternetGatewayId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteEgressOnlyInternetGatewayInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteEgressOnlyInternetGatewayInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteEgressOnlyInternetGatewayInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteEgressOnlyInternetGatewayInput"} + if s.EgressOnlyInternetGatewayId == nil { + invalidParams.Add(request.NewErrParamRequired("EgressOnlyInternetGatewayId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *DeleteEgressOnlyInternetGatewayInput) SetDryRun(v bool) *DeleteEgressOnlyInternetGatewayInput { + s.DryRun = &v + return s +} + +// SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value. +func (s *DeleteEgressOnlyInternetGatewayInput) SetEgressOnlyInternetGatewayId(v string) *DeleteEgressOnlyInternetGatewayInput { + s.EgressOnlyInternetGatewayId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteEgressOnlyInternetGatewayResult +type DeleteEgressOnlyInternetGatewayOutput struct { + _ struct{} `type:"structure"` + + // Returns true if the request succeeds; otherwise, it returns an error. + ReturnCode *bool `locationName:"returnCode" type:"boolean"` +} + +// String returns the string representation +func (s DeleteEgressOnlyInternetGatewayOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteEgressOnlyInternetGatewayOutput) GoString() string { + return s.String() +} + +// SetReturnCode sets the ReturnCode field's value. +func (s *DeleteEgressOnlyInternetGatewayOutput) SetReturnCode(v bool) *DeleteEgressOnlyInternetGatewayOutput { + s.ReturnCode = &v + return s +} + // Contains the parameters for DeleteFlowLogs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFlowLogsRequest type DeleteFlowLogsInput struct { _ struct{} `type:"structure"` @@ -18887,7 +22884,14 @@ func (s *DeleteFlowLogsInput) Validate() error { return nil } +// SetFlowLogIds sets the FlowLogIds field's value. +func (s *DeleteFlowLogsInput) SetFlowLogIds(v []*string) *DeleteFlowLogsInput { + s.FlowLogIds = v + return s +} + // Contains the output of DeleteFlowLogs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFlowLogsResult type DeleteFlowLogsOutput struct { _ struct{} `type:"structure"` @@ -18905,7 +22909,14 @@ func (s DeleteFlowLogsOutput) GoString() string { return s.String() } +// SetUnsuccessful sets the Unsuccessful field's value. +func (s *DeleteFlowLogsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteFlowLogsOutput { + s.Unsuccessful = v + return s +} + // Contains the parameters for DeleteInternetGateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteInternetGatewayRequest type DeleteInternetGatewayInput struct { _ struct{} `type:"structure"` @@ -18944,6 +22955,19 @@ func (s *DeleteInternetGatewayInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteInternetGatewayInput) SetDryRun(v bool) *DeleteInternetGatewayInput { + s.DryRun = &v + return s +} + +// SetInternetGatewayId sets the InternetGatewayId field's value. +func (s *DeleteInternetGatewayInput) SetInternetGatewayId(v string) *DeleteInternetGatewayInput { + s.InternetGatewayId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteInternetGatewayOutput type DeleteInternetGatewayOutput struct { _ struct{} `type:"structure"` } @@ -18959,6 +22983,7 @@ func (s DeleteInternetGatewayOutput) GoString() string { } // Contains the parameters for DeleteKeyPair. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteKeyPairRequest type DeleteKeyPairInput struct { _ struct{} `type:"structure"` @@ -18997,6 +23022,19 @@ func (s *DeleteKeyPairInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteKeyPairInput) SetDryRun(v bool) *DeleteKeyPairInput { + s.DryRun = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *DeleteKeyPairInput) SetKeyName(v string) *DeleteKeyPairInput { + s.KeyName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteKeyPairOutput type DeleteKeyPairOutput struct { _ struct{} `type:"structure"` } @@ -19012,6 +23050,7 @@ func (s DeleteKeyPairOutput) GoString() string { } // Contains the parameters for DeleteNatGateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNatGatewayRequest type DeleteNatGatewayInput struct { _ struct{} `type:"structure"` @@ -19044,7 +23083,14 @@ func (s *DeleteNatGatewayInput) Validate() error { return nil } +// SetNatGatewayId sets the NatGatewayId field's value. +func (s *DeleteNatGatewayInput) SetNatGatewayId(v string) *DeleteNatGatewayInput { + s.NatGatewayId = &v + return s +} + // Contains the output of DeleteNatGateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNatGatewayResult type DeleteNatGatewayOutput struct { _ struct{} `type:"structure"` @@ -19062,7 +23108,14 @@ func (s DeleteNatGatewayOutput) GoString() string { return s.String() } +// SetNatGatewayId sets the NatGatewayId field's value. +func (s *DeleteNatGatewayOutput) SetNatGatewayId(v string) *DeleteNatGatewayOutput { + s.NatGatewayId = &v + return s +} + // Contains the parameters for DeleteNetworkAclEntry. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclEntryRequest type DeleteNetworkAclEntryInput struct { _ struct{} `type:"structure"` @@ -19117,6 +23170,31 @@ func (s *DeleteNetworkAclEntryInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteNetworkAclEntryInput) SetDryRun(v bool) *DeleteNetworkAclEntryInput { + s.DryRun = &v + return s +} + +// SetEgress sets the Egress field's value. +func (s *DeleteNetworkAclEntryInput) SetEgress(v bool) *DeleteNetworkAclEntryInput { + s.Egress = &v + return s +} + +// SetNetworkAclId sets the NetworkAclId field's value. +func (s *DeleteNetworkAclEntryInput) SetNetworkAclId(v string) *DeleteNetworkAclEntryInput { + s.NetworkAclId = &v + return s +} + +// SetRuleNumber sets the RuleNumber field's value. +func (s *DeleteNetworkAclEntryInput) SetRuleNumber(v int64) *DeleteNetworkAclEntryInput { + s.RuleNumber = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclEntryOutput type DeleteNetworkAclEntryOutput struct { _ struct{} `type:"structure"` } @@ -19132,6 +23210,7 @@ func (s DeleteNetworkAclEntryOutput) GoString() string { } // Contains the parameters for DeleteNetworkAcl. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclRequest type DeleteNetworkAclInput struct { _ struct{} `type:"structure"` @@ -19170,6 +23249,19 @@ func (s *DeleteNetworkAclInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteNetworkAclInput) SetDryRun(v bool) *DeleteNetworkAclInput { + s.DryRun = &v + return s +} + +// SetNetworkAclId sets the NetworkAclId field's value. +func (s *DeleteNetworkAclInput) SetNetworkAclId(v string) *DeleteNetworkAclInput { + s.NetworkAclId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclOutput type DeleteNetworkAclOutput struct { _ struct{} `type:"structure"` } @@ -19185,6 +23277,7 @@ func (s DeleteNetworkAclOutput) GoString() string { } // Contains the parameters for DeleteNetworkInterface. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterfaceRequest type DeleteNetworkInterfaceInput struct { _ struct{} `type:"structure"` @@ -19223,6 +23316,19 @@ func (s *DeleteNetworkInterfaceInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteNetworkInterfaceInput) SetDryRun(v bool) *DeleteNetworkInterfaceInput { + s.DryRun = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *DeleteNetworkInterfaceInput) SetNetworkInterfaceId(v string) *DeleteNetworkInterfaceInput { + s.NetworkInterfaceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterfaceOutput type DeleteNetworkInterfaceOutput struct { _ struct{} `type:"structure"` } @@ -19238,6 +23344,7 @@ func (s DeleteNetworkInterfaceOutput) GoString() string { } // Contains the parameters for DeletePlacementGroup. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeletePlacementGroupRequest type DeletePlacementGroupInput struct { _ struct{} `type:"structure"` @@ -19276,6 +23383,19 @@ func (s *DeletePlacementGroupInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeletePlacementGroupInput) SetDryRun(v bool) *DeletePlacementGroupInput { + s.DryRun = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *DeletePlacementGroupInput) SetGroupName(v string) *DeletePlacementGroupInput { + s.GroupName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeletePlacementGroupOutput type DeletePlacementGroupOutput struct { _ struct{} `type:"structure"` } @@ -19291,14 +23411,17 @@ func (s DeletePlacementGroupOutput) GoString() string { } // Contains the parameters for DeleteRoute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteRequest type DeleteRouteInput struct { _ struct{} `type:"structure"` - // The CIDR range for the route. The value you specify must match the CIDR for - // the route exactly. - // - // DestinationCidrBlock is a required field - DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string" required:"true"` + // The IPv4 CIDR range for the route. The value you specify must match the CIDR + // for the route exactly. + DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"` + + // The IPv6 CIDR range for the route. The value you specify must match the CIDR + // for the route exactly. + DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"` // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have @@ -19325,9 +23448,6 @@ func (s DeleteRouteInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteRouteInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteRouteInput"} - if s.DestinationCidrBlock == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock")) - } if s.RouteTableId == nil { invalidParams.Add(request.NewErrParamRequired("RouteTableId")) } @@ -19338,6 +23458,31 @@ func (s *DeleteRouteInput) Validate() error { return nil } +// SetDestinationCidrBlock sets the DestinationCidrBlock field's value. +func (s *DeleteRouteInput) SetDestinationCidrBlock(v string) *DeleteRouteInput { + s.DestinationCidrBlock = &v + return s +} + +// SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value. +func (s *DeleteRouteInput) SetDestinationIpv6CidrBlock(v string) *DeleteRouteInput { + s.DestinationIpv6CidrBlock = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DeleteRouteInput) SetDryRun(v bool) *DeleteRouteInput { + s.DryRun = &v + return s +} + +// SetRouteTableId sets the RouteTableId field's value. +func (s *DeleteRouteInput) SetRouteTableId(v string) *DeleteRouteInput { + s.RouteTableId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteOutput type DeleteRouteOutput struct { _ struct{} `type:"structure"` } @@ -19353,6 +23498,7 @@ func (s DeleteRouteOutput) GoString() string { } // Contains the parameters for DeleteRouteTable. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteTableRequest type DeleteRouteTableInput struct { _ struct{} `type:"structure"` @@ -19391,6 +23537,19 @@ func (s *DeleteRouteTableInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteRouteTableInput) SetDryRun(v bool) *DeleteRouteTableInput { + s.DryRun = &v + return s +} + +// SetRouteTableId sets the RouteTableId field's value. +func (s *DeleteRouteTableInput) SetRouteTableId(v string) *DeleteRouteTableInput { + s.RouteTableId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteTableOutput type DeleteRouteTableOutput struct { _ struct{} `type:"structure"` } @@ -19406,6 +23565,7 @@ func (s DeleteRouteTableOutput) GoString() string { } // Contains the parameters for DeleteSecurityGroup. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSecurityGroupRequest type DeleteSecurityGroupInput struct { _ struct{} `type:"structure"` @@ -19433,6 +23593,25 @@ func (s DeleteSecurityGroupInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DeleteSecurityGroupInput) SetDryRun(v bool) *DeleteSecurityGroupInput { + s.DryRun = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *DeleteSecurityGroupInput) SetGroupId(v string) *DeleteSecurityGroupInput { + s.GroupId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *DeleteSecurityGroupInput) SetGroupName(v string) *DeleteSecurityGroupInput { + s.GroupName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSecurityGroupOutput type DeleteSecurityGroupOutput struct { _ struct{} `type:"structure"` } @@ -19448,6 +23627,7 @@ func (s DeleteSecurityGroupOutput) GoString() string { } // Contains the parameters for DeleteSnapshot. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSnapshotRequest type DeleteSnapshotInput struct { _ struct{} `type:"structure"` @@ -19486,6 +23666,19 @@ func (s *DeleteSnapshotInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteSnapshotInput) SetDryRun(v bool) *DeleteSnapshotInput { + s.DryRun = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *DeleteSnapshotInput) SetSnapshotId(v string) *DeleteSnapshotInput { + s.SnapshotId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSnapshotOutput type DeleteSnapshotOutput struct { _ struct{} `type:"structure"` } @@ -19501,6 +23694,7 @@ func (s DeleteSnapshotOutput) GoString() string { } // Contains the parameters for DeleteSpotDatafeedSubscription. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSpotDatafeedSubscriptionRequest type DeleteSpotDatafeedSubscriptionInput struct { _ struct{} `type:"structure"` @@ -19521,6 +23715,13 @@ func (s DeleteSpotDatafeedSubscriptionInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DeleteSpotDatafeedSubscriptionInput) SetDryRun(v bool) *DeleteSpotDatafeedSubscriptionInput { + s.DryRun = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSpotDatafeedSubscriptionOutput type DeleteSpotDatafeedSubscriptionOutput struct { _ struct{} `type:"structure"` } @@ -19536,6 +23737,7 @@ func (s DeleteSpotDatafeedSubscriptionOutput) GoString() string { } // Contains the parameters for DeleteSubnet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSubnetRequest type DeleteSubnetInput struct { _ struct{} `type:"structure"` @@ -19574,6 +23776,19 @@ func (s *DeleteSubnetInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteSubnetInput) SetDryRun(v bool) *DeleteSubnetInput { + s.DryRun = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *DeleteSubnetInput) SetSubnetId(v string) *DeleteSubnetInput { + s.SubnetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSubnetOutput type DeleteSubnetOutput struct { _ struct{} `type:"structure"` } @@ -19589,6 +23804,7 @@ func (s DeleteSubnetOutput) GoString() string { } // Contains the parameters for DeleteTags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTagsRequest type DeleteTagsInput struct { _ struct{} `type:"structure"` @@ -19633,6 +23849,25 @@ func (s *DeleteTagsInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteTagsInput) SetDryRun(v bool) *DeleteTagsInput { + s.DryRun = &v + return s +} + +// SetResources sets the Resources field's value. +func (s *DeleteTagsInput) SetResources(v []*string) *DeleteTagsInput { + s.Resources = v + return s +} + +// SetTags sets the Tags field's value. +func (s *DeleteTagsInput) SetTags(v []*Tag) *DeleteTagsInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTagsOutput type DeleteTagsOutput struct { _ struct{} `type:"structure"` } @@ -19648,6 +23883,7 @@ func (s DeleteTagsOutput) GoString() string { } // Contains the parameters for DeleteVolume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVolumeRequest type DeleteVolumeInput struct { _ struct{} `type:"structure"` @@ -19686,6 +23922,19 @@ func (s *DeleteVolumeInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteVolumeInput) SetDryRun(v bool) *DeleteVolumeInput { + s.DryRun = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *DeleteVolumeInput) SetVolumeId(v string) *DeleteVolumeInput { + s.VolumeId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVolumeOutput type DeleteVolumeOutput struct { _ struct{} `type:"structure"` } @@ -19701,6 +23950,7 @@ func (s DeleteVolumeOutput) GoString() string { } // Contains the parameters for DeleteVpcEndpoints. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointsRequest type DeleteVpcEndpointsInput struct { _ struct{} `type:"structure"` @@ -19739,7 +23989,20 @@ func (s *DeleteVpcEndpointsInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteVpcEndpointsInput) SetDryRun(v bool) *DeleteVpcEndpointsInput { + s.DryRun = &v + return s +} + +// SetVpcEndpointIds sets the VpcEndpointIds field's value. +func (s *DeleteVpcEndpointsInput) SetVpcEndpointIds(v []*string) *DeleteVpcEndpointsInput { + s.VpcEndpointIds = v + return s +} + // Contains the output of DeleteVpcEndpoints. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointsResult type DeleteVpcEndpointsOutput struct { _ struct{} `type:"structure"` @@ -19757,7 +24020,14 @@ func (s DeleteVpcEndpointsOutput) GoString() string { return s.String() } +// SetUnsuccessful sets the Unsuccessful field's value. +func (s *DeleteVpcEndpointsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteVpcEndpointsOutput { + s.Unsuccessful = v + return s +} + // Contains the parameters for DeleteVpc. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcRequest type DeleteVpcInput struct { _ struct{} `type:"structure"` @@ -19796,6 +24066,19 @@ func (s *DeleteVpcInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteVpcInput) SetDryRun(v bool) *DeleteVpcInput { + s.DryRun = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DeleteVpcInput) SetVpcId(v string) *DeleteVpcInput { + s.VpcId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcOutput type DeleteVpcOutput struct { _ struct{} `type:"structure"` } @@ -19811,6 +24094,7 @@ func (s DeleteVpcOutput) GoString() string { } // Contains the parameters for DeleteVpcPeeringConnection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcPeeringConnectionRequest type DeleteVpcPeeringConnectionInput struct { _ struct{} `type:"structure"` @@ -19849,7 +24133,20 @@ func (s *DeleteVpcPeeringConnectionInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteVpcPeeringConnectionInput) SetDryRun(v bool) *DeleteVpcPeeringConnectionInput { + s.DryRun = &v + return s +} + +// SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. +func (s *DeleteVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *DeleteVpcPeeringConnectionInput { + s.VpcPeeringConnectionId = &v + return s +} + // Contains the output of DeleteVpcPeeringConnection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcPeeringConnectionResult type DeleteVpcPeeringConnectionOutput struct { _ struct{} `type:"structure"` @@ -19867,7 +24164,14 @@ func (s DeleteVpcPeeringConnectionOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *DeleteVpcPeeringConnectionOutput) SetReturn(v bool) *DeleteVpcPeeringConnectionOutput { + s.Return = &v + return s +} + // Contains the parameters for DeleteVpnConnection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionRequest type DeleteVpnConnectionInput struct { _ struct{} `type:"structure"` @@ -19906,6 +24210,19 @@ func (s *DeleteVpnConnectionInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteVpnConnectionInput) SetDryRun(v bool) *DeleteVpnConnectionInput { + s.DryRun = &v + return s +} + +// SetVpnConnectionId sets the VpnConnectionId field's value. +func (s *DeleteVpnConnectionInput) SetVpnConnectionId(v string) *DeleteVpnConnectionInput { + s.VpnConnectionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionOutput type DeleteVpnConnectionOutput struct { _ struct{} `type:"structure"` } @@ -19921,6 +24238,7 @@ func (s DeleteVpnConnectionOutput) GoString() string { } // Contains the parameters for DeleteVpnConnectionRoute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionRouteRequest type DeleteVpnConnectionRouteInput struct { _ struct{} `type:"structure"` @@ -19961,6 +24279,19 @@ func (s *DeleteVpnConnectionRouteInput) Validate() error { return nil } +// SetDestinationCidrBlock sets the DestinationCidrBlock field's value. +func (s *DeleteVpnConnectionRouteInput) SetDestinationCidrBlock(v string) *DeleteVpnConnectionRouteInput { + s.DestinationCidrBlock = &v + return s +} + +// SetVpnConnectionId sets the VpnConnectionId field's value. +func (s *DeleteVpnConnectionRouteInput) SetVpnConnectionId(v string) *DeleteVpnConnectionRouteInput { + s.VpnConnectionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionRouteOutput type DeleteVpnConnectionRouteOutput struct { _ struct{} `type:"structure"` } @@ -19976,6 +24307,7 @@ func (s DeleteVpnConnectionRouteOutput) GoString() string { } // Contains the parameters for DeleteVpnGateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnGatewayRequest type DeleteVpnGatewayInput struct { _ struct{} `type:"structure"` @@ -20014,6 +24346,19 @@ func (s *DeleteVpnGatewayInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeleteVpnGatewayInput) SetDryRun(v bool) *DeleteVpnGatewayInput { + s.DryRun = &v + return s +} + +// SetVpnGatewayId sets the VpnGatewayId field's value. +func (s *DeleteVpnGatewayInput) SetVpnGatewayId(v string) *DeleteVpnGatewayInput { + s.VpnGatewayId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnGatewayOutput type DeleteVpnGatewayOutput struct { _ struct{} `type:"structure"` } @@ -20029,6 +24374,7 @@ func (s DeleteVpnGatewayOutput) GoString() string { } // Contains the parameters for DeregisterImage. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterImageRequest type DeregisterImageInput struct { _ struct{} `type:"structure"` @@ -20067,6 +24413,19 @@ func (s *DeregisterImageInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DeregisterImageInput) SetDryRun(v bool) *DeregisterImageInput { + s.DryRun = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *DeregisterImageInput) SetImageId(v string) *DeregisterImageInput { + s.ImageId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterImageOutput type DeregisterImageOutput struct { _ struct{} `type:"structure"` } @@ -20082,6 +24441,7 @@ func (s DeregisterImageOutput) GoString() string { } // Contains the parameters for DescribeAccountAttributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAccountAttributesRequest type DescribeAccountAttributesInput struct { _ struct{} `type:"structure"` @@ -20105,7 +24465,20 @@ func (s DescribeAccountAttributesInput) GoString() string { return s.String() } +// SetAttributeNames sets the AttributeNames field's value. +func (s *DescribeAccountAttributesInput) SetAttributeNames(v []*string) *DescribeAccountAttributesInput { + s.AttributeNames = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeAccountAttributesInput) SetDryRun(v bool) *DescribeAccountAttributesInput { + s.DryRun = &v + return s +} + // Contains the output of DescribeAccountAttributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAccountAttributesResult type DescribeAccountAttributesOutput struct { _ struct{} `type:"structure"` @@ -20123,7 +24496,14 @@ func (s DescribeAccountAttributesOutput) GoString() string { return s.String() } +// SetAccountAttributes sets the AccountAttributes field's value. +func (s *DescribeAccountAttributesOutput) SetAccountAttributes(v []*AccountAttribute) *DescribeAccountAttributesOutput { + s.AccountAttributes = v + return s +} + // Contains the parameters for DescribeAddresses. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAddressesRequest type DescribeAddressesInput struct { _ struct{} `type:"structure"` @@ -20140,25 +24520,25 @@ type DescribeAddressesInput struct { // One or more filters. Filter names and values are case-sensitive. // - // allocation-id - [EC2-VPC] The allocation ID for the address. + // * allocation-id - [EC2-VPC] The allocation ID for the address. // - // association-id - [EC2-VPC] The association ID for the address. + // * association-id - [EC2-VPC] The association ID for the address. // - // domain - Indicates whether the address is for use in EC2-Classic (standard) - // or in a VPC (vpc). + // * domain - Indicates whether the address is for use in EC2-Classic (standard) + // or in a VPC (vpc). // - // instance-id - The ID of the instance the address is associated with, - // if any. + // * instance-id - The ID of the instance the address is associated with, + // if any. // - // network-interface-id - [EC2-VPC] The ID of the network interface that - // the address is associated with, if any. + // * network-interface-id - [EC2-VPC] The ID of the network interface that + // the address is associated with, if any. // - // network-interface-owner-id - The AWS account ID of the owner. + // * network-interface-owner-id - The AWS account ID of the owner. // - // private-ip-address - [EC2-VPC] The private IP address associated with - // the Elastic IP address. + // * private-ip-address - [EC2-VPC] The private IP address associated with + // the Elastic IP address. // - // public-ip - The Elastic IP address. + // * public-ip - The Elastic IP address. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // [EC2-Classic] One or more Elastic IP addresses. @@ -20177,7 +24557,32 @@ func (s DescribeAddressesInput) GoString() string { return s.String() } +// SetAllocationIds sets the AllocationIds field's value. +func (s *DescribeAddressesInput) SetAllocationIds(v []*string) *DescribeAddressesInput { + s.AllocationIds = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeAddressesInput) SetDryRun(v bool) *DescribeAddressesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeAddressesInput) SetFilters(v []*Filter) *DescribeAddressesInput { + s.Filters = v + return s +} + +// SetPublicIps sets the PublicIps field's value. +func (s *DescribeAddressesInput) SetPublicIps(v []*string) *DescribeAddressesInput { + s.PublicIps = v + return s +} + // Contains the output of DescribeAddresses. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAddressesResult type DescribeAddressesOutput struct { _ struct{} `type:"structure"` @@ -20195,7 +24600,14 @@ func (s DescribeAddressesOutput) GoString() string { return s.String() } +// SetAddresses sets the Addresses field's value. +func (s *DescribeAddressesOutput) SetAddresses(v []*Address) *DescribeAddressesOutput { + s.Addresses = v + return s +} + // Contains the parameters for DescribeAvailabilityZones. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAvailabilityZonesRequest type DescribeAvailabilityZonesInput struct { _ struct{} `type:"structure"` @@ -20207,15 +24619,15 @@ type DescribeAvailabilityZonesInput struct { // One or more filters. // - // message - Information about the Availability Zone. + // * message - Information about the Availability Zone. // - // region-name - The name of the region for the Availability Zone (for example, - // us-east-1). + // * region-name - The name of the region for the Availability Zone (for + // example, us-east-1). // - // state - The state of the Availability Zone (available | information | - // impaired | unavailable). + // * state - The state of the Availability Zone (available | information + // | impaired | unavailable). // - // zone-name - The name of the Availability Zone (for example, us-east-1a). + // * zone-name - The name of the Availability Zone (for example, us-east-1a). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The names of one or more Availability Zones. @@ -20232,7 +24644,26 @@ func (s DescribeAvailabilityZonesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeAvailabilityZonesInput) SetDryRun(v bool) *DescribeAvailabilityZonesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeAvailabilityZonesInput) SetFilters(v []*Filter) *DescribeAvailabilityZonesInput { + s.Filters = v + return s +} + +// SetZoneNames sets the ZoneNames field's value. +func (s *DescribeAvailabilityZonesInput) SetZoneNames(v []*string) *DescribeAvailabilityZonesInput { + s.ZoneNames = v + return s +} + // Contains the output of DescribeAvailabiltyZones. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAvailabilityZonesResult type DescribeAvailabilityZonesOutput struct { _ struct{} `type:"structure"` @@ -20250,7 +24681,14 @@ func (s DescribeAvailabilityZonesOutput) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *DescribeAvailabilityZonesOutput) SetAvailabilityZones(v []*AvailabilityZone) *DescribeAvailabilityZonesOutput { + s.AvailabilityZones = v + return s +} + // Contains the parameters for DescribeBundleTasks. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeBundleTasksRequest type DescribeBundleTasksInput struct { _ struct{} `type:"structure"` @@ -20267,27 +24705,27 @@ type DescribeBundleTasksInput struct { // One or more filters. // - // bundle-id - The ID of the bundle task. + // * bundle-id - The ID of the bundle task. // - // error-code - If the task failed, the error code returned. + // * error-code - If the task failed, the error code returned. // - // error-message - If the task failed, the error message returned. + // * error-message - If the task failed, the error message returned. // - // instance-id - The ID of the instance. + // * instance-id - The ID of the instance. // - // progress - The level of task completion, as a percentage (for example, - // 20%). + // * progress - The level of task completion, as a percentage (for example, + // 20%). // - // s3-bucket - The Amazon S3 bucket to store the AMI. + // * s3-bucket - The Amazon S3 bucket to store the AMI. // - // s3-prefix - The beginning of the AMI name. + // * s3-prefix - The beginning of the AMI name. // - // start-time - The time the task started (for example, 2013-09-15T17:15:20.000Z). + // * start-time - The time the task started (for example, 2013-09-15T17:15:20.000Z). // - // state - The state of the task (pending | waiting-for-shutdown | bundling - // | storing | cancelling | complete | failed). + // * state - The state of the task (pending | waiting-for-shutdown | bundling + // | storing | cancelling | complete | failed). // - // update-time - The time of the most recent update for the task. + // * update-time - The time of the most recent update for the task. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` } @@ -20301,7 +24739,26 @@ func (s DescribeBundleTasksInput) GoString() string { return s.String() } +// SetBundleIds sets the BundleIds field's value. +func (s *DescribeBundleTasksInput) SetBundleIds(v []*string) *DescribeBundleTasksInput { + s.BundleIds = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeBundleTasksInput) SetDryRun(v bool) *DescribeBundleTasksInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeBundleTasksInput) SetFilters(v []*Filter) *DescribeBundleTasksInput { + s.Filters = v + return s +} + // Contains the output of DescribeBundleTasks. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeBundleTasksResult type DescribeBundleTasksOutput struct { _ struct{} `type:"structure"` @@ -20319,7 +24776,14 @@ func (s DescribeBundleTasksOutput) GoString() string { return s.String() } +// SetBundleTasks sets the BundleTasks field's value. +func (s *DescribeBundleTasksOutput) SetBundleTasks(v []*BundleTask) *DescribeBundleTasksOutput { + s.BundleTasks = v + return s +} + // Contains the parameters for DescribeClassicLinkInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClassicLinkInstancesRequest type DescribeClassicLinkInstancesInput struct { _ struct{} `type:"structure"` @@ -20331,24 +24795,25 @@ type DescribeClassicLinkInstancesInput struct { // One or more filters. // - // group-id - The ID of a VPC security group that's associated with the - // instance. + // * group-id - The ID of a VPC security group that's associated with the + // instance. // - // instance-id - The ID of the instance. + // * instance-id - The ID of the instance. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // vpc-id - The ID of the VPC that the instance is linked to. + // * vpc-id - The ID of the VPC that the instance is linked to. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more instance IDs. Must be instances linked to a VPC through ClassicLink. @@ -20378,7 +24843,38 @@ func (s DescribeClassicLinkInstancesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeClassicLinkInstancesInput) SetDryRun(v bool) *DescribeClassicLinkInstancesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeClassicLinkInstancesInput) SetFilters(v []*Filter) *DescribeClassicLinkInstancesInput { + s.Filters = v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *DescribeClassicLinkInstancesInput) SetInstanceIds(v []*string) *DescribeClassicLinkInstancesInput { + s.InstanceIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeClassicLinkInstancesInput) SetMaxResults(v int64) *DescribeClassicLinkInstancesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeClassicLinkInstancesInput) SetNextToken(v string) *DescribeClassicLinkInstancesInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeClassicLinkInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClassicLinkInstancesResult type DescribeClassicLinkInstancesOutput struct { _ struct{} `type:"structure"` @@ -20400,7 +24896,20 @@ func (s DescribeClassicLinkInstancesOutput) GoString() string { return s.String() } +// SetInstances sets the Instances field's value. +func (s *DescribeClassicLinkInstancesOutput) SetInstances(v []*ClassicLinkInstance) *DescribeClassicLinkInstancesOutput { + s.Instances = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeClassicLinkInstancesOutput) SetNextToken(v string) *DescribeClassicLinkInstancesOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeConversionTasks. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeConversionTasksRequest type DescribeConversionTasksInput struct { _ struct{} `type:"structure"` @@ -20424,7 +24933,20 @@ func (s DescribeConversionTasksInput) GoString() string { return s.String() } +// SetConversionTaskIds sets the ConversionTaskIds field's value. +func (s *DescribeConversionTasksInput) SetConversionTaskIds(v []*string) *DescribeConversionTasksInput { + s.ConversionTaskIds = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeConversionTasksInput) SetDryRun(v bool) *DescribeConversionTasksInput { + s.DryRun = &v + return s +} + // Contains the output for DescribeConversionTasks. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeConversionTasksResult type DescribeConversionTasksOutput struct { _ struct{} `type:"structure"` @@ -20442,7 +24964,14 @@ func (s DescribeConversionTasksOutput) GoString() string { return s.String() } +// SetConversionTasks sets the ConversionTasks field's value. +func (s *DescribeConversionTasksOutput) SetConversionTasks(v []*ConversionTask) *DescribeConversionTasksOutput { + s.ConversionTasks = v + return s +} + // Contains the parameters for DescribeCustomerGateways. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCustomerGatewaysRequest type DescribeCustomerGatewaysInput struct { _ struct{} `type:"structure"` @@ -20459,31 +24988,35 @@ type DescribeCustomerGatewaysInput struct { // One or more filters. // - // bgp-asn - The customer gateway's Border Gateway Protocol (BGP) Autonomous - // System Number (ASN). + // * bgp-asn - The customer gateway's Border Gateway Protocol (BGP) Autonomous + // System Number (ASN). // - // customer-gateway-id - The ID of the customer gateway. + // * customer-gateway-id - The ID of the customer gateway. // - // ip-address - The IP address of the customer gateway's Internet-routable - // external interface. + // * ip-address - The IP address of the customer gateway's Internet-routable + // external interface. // - // state - The state of the customer gateway (pending | available | deleting - // | deleted). + // * state - The state of the customer gateway (pending | available | deleting + // | deleted). // - // type - The type of customer gateway. Currently, the only supported type - // is ipsec.1. + // * type - The type of customer gateway. Currently, the only supported type + // is ipsec.1. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` } @@ -20497,7 +25030,26 @@ func (s DescribeCustomerGatewaysInput) GoString() string { return s.String() } +// SetCustomerGatewayIds sets the CustomerGatewayIds field's value. +func (s *DescribeCustomerGatewaysInput) SetCustomerGatewayIds(v []*string) *DescribeCustomerGatewaysInput { + s.CustomerGatewayIds = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeCustomerGatewaysInput) SetDryRun(v bool) *DescribeCustomerGatewaysInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeCustomerGatewaysInput) SetFilters(v []*Filter) *DescribeCustomerGatewaysInput { + s.Filters = v + return s +} + // Contains the output of DescribeCustomerGateways. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCustomerGatewaysResult type DescribeCustomerGatewaysOutput struct { _ struct{} `type:"structure"` @@ -20515,7 +25067,14 @@ func (s DescribeCustomerGatewaysOutput) GoString() string { return s.String() } +// SetCustomerGateways sets the CustomerGateways field's value. +func (s *DescribeCustomerGatewaysOutput) SetCustomerGateways(v []*CustomerGateway) *DescribeCustomerGatewaysOutput { + s.CustomerGateways = v + return s +} + // Contains the parameters for DescribeDhcpOptions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeDhcpOptionsRequest type DescribeDhcpOptionsInput struct { _ struct{} `type:"structure"` @@ -20532,23 +25091,27 @@ type DescribeDhcpOptionsInput struct { // One or more filters. // - // dhcp-options-id - The ID of a set of DHCP options. + // * dhcp-options-id - The ID of a set of DHCP options. // - // key - The key for one of the options (for example, domain-name). + // * key - The key for one of the options (for example, domain-name). // - // value - The value for one of the options. + // * value - The value for one of the options. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` } @@ -20562,7 +25125,26 @@ func (s DescribeDhcpOptionsInput) GoString() string { return s.String() } +// SetDhcpOptionsIds sets the DhcpOptionsIds field's value. +func (s *DescribeDhcpOptionsInput) SetDhcpOptionsIds(v []*string) *DescribeDhcpOptionsInput { + s.DhcpOptionsIds = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeDhcpOptionsInput) SetDryRun(v bool) *DescribeDhcpOptionsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDhcpOptionsInput) SetFilters(v []*Filter) *DescribeDhcpOptionsInput { + s.Filters = v + return s +} + // Contains the output of DescribeDhcpOptions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeDhcpOptionsResult type DescribeDhcpOptionsOutput struct { _ struct{} `type:"structure"` @@ -20580,7 +25162,104 @@ func (s DescribeDhcpOptionsOutput) GoString() string { return s.String() } +// SetDhcpOptions sets the DhcpOptions field's value. +func (s *DescribeDhcpOptionsOutput) SetDhcpOptions(v []*DhcpOptions) *DescribeDhcpOptionsOutput { + s.DhcpOptions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeEgressOnlyInternetGatewaysRequest +type DescribeEgressOnlyInternetGatewaysInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // One or more egress-only Internet gateway IDs. + EgressOnlyInternetGatewayIds []*string `locationName:"EgressOnlyInternetGatewayId" locationNameList:"item" type:"list"` + + // The maximum number of results to return for the request in a single page. + // The remaining results can be seen by sending another request with the returned + // NextToken value. This value can be between 5 and 1000; if MaxResults is given + // a value larger than 1000, only 1000 results are returned. + MaxResults *int64 `type:"integer"` + + // The token to retrieve the next page of results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeEgressOnlyInternetGatewaysInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEgressOnlyInternetGatewaysInput) GoString() string { + return s.String() +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeEgressOnlyInternetGatewaysInput) SetDryRun(v bool) *DescribeEgressOnlyInternetGatewaysInput { + s.DryRun = &v + return s +} + +// SetEgressOnlyInternetGatewayIds sets the EgressOnlyInternetGatewayIds field's value. +func (s *DescribeEgressOnlyInternetGatewaysInput) SetEgressOnlyInternetGatewayIds(v []*string) *DescribeEgressOnlyInternetGatewaysInput { + s.EgressOnlyInternetGatewayIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeEgressOnlyInternetGatewaysInput) SetMaxResults(v int64) *DescribeEgressOnlyInternetGatewaysInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEgressOnlyInternetGatewaysInput) SetNextToken(v string) *DescribeEgressOnlyInternetGatewaysInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeEgressOnlyInternetGatewaysResult +type DescribeEgressOnlyInternetGatewaysOutput struct { + _ struct{} `type:"structure"` + + // Information about the egress-only Internet gateways. + EgressOnlyInternetGateways []*EgressOnlyInternetGateway `locationName:"egressOnlyInternetGatewaySet" locationNameList:"item" type:"list"` + + // The token to use to retrieve the next page of results. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s DescribeEgressOnlyInternetGatewaysOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEgressOnlyInternetGatewaysOutput) GoString() string { + return s.String() +} + +// SetEgressOnlyInternetGateways sets the EgressOnlyInternetGateways field's value. +func (s *DescribeEgressOnlyInternetGatewaysOutput) SetEgressOnlyInternetGateways(v []*EgressOnlyInternetGateway) *DescribeEgressOnlyInternetGatewaysOutput { + s.EgressOnlyInternetGateways = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEgressOnlyInternetGatewaysOutput) SetNextToken(v string) *DescribeEgressOnlyInternetGatewaysOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeExportTasks. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportTasksRequest type DescribeExportTasksInput struct { _ struct{} `type:"structure"` @@ -20598,7 +25277,14 @@ func (s DescribeExportTasksInput) GoString() string { return s.String() } +// SetExportTaskIds sets the ExportTaskIds field's value. +func (s *DescribeExportTasksInput) SetExportTaskIds(v []*string) *DescribeExportTasksInput { + s.ExportTaskIds = v + return s +} + // Contains the output for DescribeExportTasks. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportTasksResult type DescribeExportTasksOutput struct { _ struct{} `type:"structure"` @@ -20616,21 +25302,28 @@ func (s DescribeExportTasksOutput) GoString() string { return s.String() } +// SetExportTasks sets the ExportTasks field's value. +func (s *DescribeExportTasksOutput) SetExportTasks(v []*ExportTask) *DescribeExportTasksOutput { + s.ExportTasks = v + return s +} + // Contains the parameters for DescribeFlowLogs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFlowLogsRequest type DescribeFlowLogsInput struct { _ struct{} `type:"structure"` // One or more filters. // - // deliver-log-status - The status of the logs delivery (SUCCESS | FAILED). + // * deliver-log-status - The status of the logs delivery (SUCCESS | FAILED). // - // flow-log-id - The ID of the flow log. + // * flow-log-id - The ID of the flow log. // - // log-group-name - The name of the log group. + // * log-group-name - The name of the log group. // - // resource-id - The ID of the VPC, subnet, or network interface. + // * resource-id - The ID of the VPC, subnet, or network interface. // - // traffic-type - The type of traffic (ACCEPT | REJECT | ALL) + // * traffic-type - The type of traffic (ACCEPT | REJECT | ALL) Filter []*Filter `locationNameList:"Filter" type:"list"` // One or more flow log IDs. @@ -20657,7 +25350,32 @@ func (s DescribeFlowLogsInput) GoString() string { return s.String() } +// SetFilter sets the Filter field's value. +func (s *DescribeFlowLogsInput) SetFilter(v []*Filter) *DescribeFlowLogsInput { + s.Filter = v + return s +} + +// SetFlowLogIds sets the FlowLogIds field's value. +func (s *DescribeFlowLogsInput) SetFlowLogIds(v []*string) *DescribeFlowLogsInput { + s.FlowLogIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeFlowLogsInput) SetMaxResults(v int64) *DescribeFlowLogsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeFlowLogsInput) SetNextToken(v string) *DescribeFlowLogsInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeFlowLogs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFlowLogsResult type DescribeFlowLogsOutput struct { _ struct{} `type:"structure"` @@ -20679,15 +25397,27 @@ func (s DescribeFlowLogsOutput) GoString() string { return s.String() } +// SetFlowLogs sets the FlowLogs field's value. +func (s *DescribeFlowLogsOutput) SetFlowLogs(v []*FlowLog) *DescribeFlowLogsOutput { + s.FlowLogs = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeFlowLogsOutput) SetNextToken(v string) *DescribeFlowLogsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationOfferingsRequest type DescribeHostReservationOfferingsInput struct { _ struct{} `type:"structure"` // One or more filters. // - // instance-family - The instance family of the offering (e.g., m4). + // * instance-family - The instance family of the offering (e.g., m4). // - // payment-option - The payment option (No Upfront | Partial Upfront | All - // Upfront). + // * payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront). Filter []*Filter `locationNameList:"Filter" type:"list"` // This is the maximum duration of the reservation you'd like to purchase, specified @@ -20727,6 +25457,43 @@ func (s DescribeHostReservationOfferingsInput) GoString() string { return s.String() } +// SetFilter sets the Filter field's value. +func (s *DescribeHostReservationOfferingsInput) SetFilter(v []*Filter) *DescribeHostReservationOfferingsInput { + s.Filter = v + return s +} + +// SetMaxDuration sets the MaxDuration field's value. +func (s *DescribeHostReservationOfferingsInput) SetMaxDuration(v int64) *DescribeHostReservationOfferingsInput { + s.MaxDuration = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeHostReservationOfferingsInput) SetMaxResults(v int64) *DescribeHostReservationOfferingsInput { + s.MaxResults = &v + return s +} + +// SetMinDuration sets the MinDuration field's value. +func (s *DescribeHostReservationOfferingsInput) SetMinDuration(v int64) *DescribeHostReservationOfferingsInput { + s.MinDuration = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeHostReservationOfferingsInput) SetNextToken(v string) *DescribeHostReservationOfferingsInput { + s.NextToken = &v + return s +} + +// SetOfferingId sets the OfferingId field's value. +func (s *DescribeHostReservationOfferingsInput) SetOfferingId(v string) *DescribeHostReservationOfferingsInput { + s.OfferingId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationOfferingsResult type DescribeHostReservationOfferingsOutput struct { _ struct{} `type:"structure"` @@ -20748,18 +25515,30 @@ func (s DescribeHostReservationOfferingsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeHostReservationOfferingsOutput) SetNextToken(v string) *DescribeHostReservationOfferingsOutput { + s.NextToken = &v + return s +} + +// SetOfferingSet sets the OfferingSet field's value. +func (s *DescribeHostReservationOfferingsOutput) SetOfferingSet(v []*HostOffering) *DescribeHostReservationOfferingsOutput { + s.OfferingSet = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationsRequest type DescribeHostReservationsInput struct { _ struct{} `type:"structure"` // One or more filters. // - // instance-family - The instance family (e.g., m4). + // * instance-family - The instance family (e.g., m4). // - // payment-option - The payment option (No Upfront | Partial Upfront | All - // Upfront). + // * payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront). // - // state - The state of the reservation (payment-pending | payment-failed - // | active | retired). + // * state - The state of the reservation (payment-pending | payment-failed + // | active | retired). Filter []*Filter `locationNameList:"Filter" type:"list"` // One or more host reservation IDs. @@ -20785,6 +25564,31 @@ func (s DescribeHostReservationsInput) GoString() string { return s.String() } +// SetFilter sets the Filter field's value. +func (s *DescribeHostReservationsInput) SetFilter(v []*Filter) *DescribeHostReservationsInput { + s.Filter = v + return s +} + +// SetHostReservationIdSet sets the HostReservationIdSet field's value. +func (s *DescribeHostReservationsInput) SetHostReservationIdSet(v []*string) *DescribeHostReservationsInput { + s.HostReservationIdSet = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeHostReservationsInput) SetMaxResults(v int64) *DescribeHostReservationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeHostReservationsInput) SetNextToken(v string) *DescribeHostReservationsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationsResult type DescribeHostReservationsOutput struct { _ struct{} `type:"structure"` @@ -20806,27 +25610,40 @@ func (s DescribeHostReservationsOutput) GoString() string { return s.String() } +// SetHostReservationSet sets the HostReservationSet field's value. +func (s *DescribeHostReservationsOutput) SetHostReservationSet(v []*HostReservation) *DescribeHostReservationsOutput { + s.HostReservationSet = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeHostReservationsOutput) SetNextToken(v string) *DescribeHostReservationsOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeHosts. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostsRequest type DescribeHostsInput struct { _ struct{} `type:"structure"` // One or more filters. // - // instance-type - The instance type size that the Dedicated Host is configured - // to support. + // * instance-type - The instance type size that the Dedicated Host is configured + // to support. // - // auto-placement - Whether auto-placement is enabled or disabled (on | - // off). + // * auto-placement - Whether auto-placement is enabled or disabled (on | + // off). // - // host-reservation-id - The ID of the reservation assigned to this host. + // * host-reservation-id - The ID of the reservation assigned to this host. // - // client-token - The idempotency token you provided when you launched the - // instance + // * client-token - The idempotency token you provided when you launched + // the instance // - // state- The allocation state of the Dedicated Host (available | under-assessment - // | permanent-failure | released | released-permanent-failure). + // * state- The allocation state of the Dedicated Host (available | under-assessment + // | permanent-failure | released | released-permanent-failure). // - // availability-zone - The Availability Zone of the host. + // * availability-zone - The Availability Zone of the host. Filter []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"` // The IDs of the Dedicated Hosts. The IDs are used for targeted instance launches. @@ -20853,7 +25670,32 @@ func (s DescribeHostsInput) GoString() string { return s.String() } +// SetFilter sets the Filter field's value. +func (s *DescribeHostsInput) SetFilter(v []*Filter) *DescribeHostsInput { + s.Filter = v + return s +} + +// SetHostIds sets the HostIds field's value. +func (s *DescribeHostsInput) SetHostIds(v []*string) *DescribeHostsInput { + s.HostIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeHostsInput) SetMaxResults(v int64) *DescribeHostsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeHostsInput) SetNextToken(v string) *DescribeHostsInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeHosts. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostsResult type DescribeHostsOutput struct { _ struct{} `type:"structure"` @@ -20875,7 +25717,127 @@ func (s DescribeHostsOutput) GoString() string { return s.String() } +// SetHosts sets the Hosts field's value. +func (s *DescribeHostsOutput) SetHosts(v []*Host) *DescribeHostsOutput { + s.Hosts = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeHostsOutput) SetNextToken(v string) *DescribeHostsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIamInstanceProfileAssociationsRequest +type DescribeIamInstanceProfileAssociationsInput struct { + _ struct{} `type:"structure"` + + // One or more IAM instance profile associations. + AssociationIds []*string `locationName:"AssociationId" locationNameList:"AssociationId" type:"list"` + + // One or more filters. + // + // * instance-id - The ID of the instance. + // + // * state - The state of the association (associating | associated | disassociating + // | disassociated). + Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + + // The maximum number of results to return in a single call. To retrieve the + // remaining results, make another call with the returned NextToken value. + MaxResults *int64 `min:"5" type:"integer"` + + // The token to request the next page of results. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeIamInstanceProfileAssociationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeIamInstanceProfileAssociationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeIamInstanceProfileAssociationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeIamInstanceProfileAssociationsInput"} + if s.MaxResults != nil && *s.MaxResults < 5 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssociationIds sets the AssociationIds field's value. +func (s *DescribeIamInstanceProfileAssociationsInput) SetAssociationIds(v []*string) *DescribeIamInstanceProfileAssociationsInput { + s.AssociationIds = v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeIamInstanceProfileAssociationsInput) SetFilters(v []*Filter) *DescribeIamInstanceProfileAssociationsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeIamInstanceProfileAssociationsInput) SetMaxResults(v int64) *DescribeIamInstanceProfileAssociationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeIamInstanceProfileAssociationsInput) SetNextToken(v string) *DescribeIamInstanceProfileAssociationsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIamInstanceProfileAssociationsResult +type DescribeIamInstanceProfileAssociationsOutput struct { + _ struct{} `type:"structure"` + + // Information about one or more IAM instance profile associations. + IamInstanceProfileAssociations []*IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociationSet" locationNameList:"item" type:"list"` + + // The token to use to retrieve the next page of results. This value is null + // when there are no more results to return. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeIamInstanceProfileAssociationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeIamInstanceProfileAssociationsOutput) GoString() string { + return s.String() +} + +// SetIamInstanceProfileAssociations sets the IamInstanceProfileAssociations field's value. +func (s *DescribeIamInstanceProfileAssociationsOutput) SetIamInstanceProfileAssociations(v []*IamInstanceProfileAssociation) *DescribeIamInstanceProfileAssociationsOutput { + s.IamInstanceProfileAssociations = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeIamInstanceProfileAssociationsOutput) SetNextToken(v string) *DescribeIamInstanceProfileAssociationsOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeIdFormat. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdFormatRequest type DescribeIdFormatInput struct { _ struct{} `type:"structure"` @@ -20893,7 +25855,14 @@ func (s DescribeIdFormatInput) GoString() string { return s.String() } +// SetResource sets the Resource field's value. +func (s *DescribeIdFormatInput) SetResource(v string) *DescribeIdFormatInput { + s.Resource = &v + return s +} + // Contains the output of DescribeIdFormat. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdFormatResult type DescribeIdFormatOutput struct { _ struct{} `type:"structure"` @@ -20911,7 +25880,14 @@ func (s DescribeIdFormatOutput) GoString() string { return s.String() } +// SetStatuses sets the Statuses field's value. +func (s *DescribeIdFormatOutput) SetStatuses(v []*IdFormat) *DescribeIdFormatOutput { + s.Statuses = v + return s +} + // Contains the parameters for DescribeIdentityIdFormat. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdentityIdFormatRequest type DescribeIdentityIdFormatInput struct { _ struct{} `type:"structure"` @@ -20948,7 +25924,20 @@ func (s *DescribeIdentityIdFormatInput) Validate() error { return nil } +// SetPrincipalArn sets the PrincipalArn field's value. +func (s *DescribeIdentityIdFormatInput) SetPrincipalArn(v string) *DescribeIdentityIdFormatInput { + s.PrincipalArn = &v + return s +} + +// SetResource sets the Resource field's value. +func (s *DescribeIdentityIdFormatInput) SetResource(v string) *DescribeIdentityIdFormatInput { + s.Resource = &v + return s +} + // Contains the output of DescribeIdentityIdFormat. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdentityIdFormatResult type DescribeIdentityIdFormatOutput struct { _ struct{} `type:"structure"` @@ -20966,13 +25955,20 @@ func (s DescribeIdentityIdFormatOutput) GoString() string { return s.String() } +// SetStatuses sets the Statuses field's value. +func (s *DescribeIdentityIdFormatOutput) SetStatuses(v []*IdFormat) *DescribeIdentityIdFormatOutput { + s.Statuses = v + return s +} + // Contains the parameters for DescribeImageAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageAttributeRequest type DescribeImageAttributeInput struct { _ struct{} `type:"structure"` // The AMI attribute. // - // Note: Depending on your account privileges, the blockDeviceMapping attribute + // Note: Depending on your account privileges, the blockDeviceMapping attribute // may return a Client.AuthFailure error. If this happens, use DescribeImages // to get information about the block device mapping for the AMI. // @@ -21017,7 +26013,26 @@ func (s *DescribeImageAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *DescribeImageAttributeInput) SetAttribute(v string) *DescribeImageAttributeInput { + s.Attribute = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeImageAttributeInput) SetDryRun(v bool) *DescribeImageAttributeInput { + s.DryRun = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *DescribeImageAttributeInput) SetImageId(v string) *DescribeImageAttributeInput { + s.ImageId = &v + return s +} + // Describes an image attribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageAttribute type DescribeImageAttributeOutput struct { _ struct{} `type:"structure"` @@ -21057,7 +26072,56 @@ func (s DescribeImageAttributeOutput) GoString() string { return s.String() } +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *DescribeImageAttributeOutput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *DescribeImageAttributeOutput { + s.BlockDeviceMappings = v + return s +} + +// SetDescription sets the Description field's value. +func (s *DescribeImageAttributeOutput) SetDescription(v *AttributeValue) *DescribeImageAttributeOutput { + s.Description = v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *DescribeImageAttributeOutput) SetImageId(v string) *DescribeImageAttributeOutput { + s.ImageId = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *DescribeImageAttributeOutput) SetKernelId(v *AttributeValue) *DescribeImageAttributeOutput { + s.KernelId = v + return s +} + +// SetLaunchPermissions sets the LaunchPermissions field's value. +func (s *DescribeImageAttributeOutput) SetLaunchPermissions(v []*LaunchPermission) *DescribeImageAttributeOutput { + s.LaunchPermissions = v + return s +} + +// SetProductCodes sets the ProductCodes field's value. +func (s *DescribeImageAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeImageAttributeOutput { + s.ProductCodes = v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *DescribeImageAttributeOutput) SetRamdiskId(v *AttributeValue) *DescribeImageAttributeOutput { + s.RamdiskId = v + return s +} + +// SetSriovNetSupport sets the SriovNetSupport field's value. +func (s *DescribeImageAttributeOutput) SetSriovNetSupport(v *AttributeValue) *DescribeImageAttributeOutput { + s.SriovNetSupport = v + return s +} + // Contains the parameters for DescribeImages. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImagesRequest type DescribeImagesInput struct { _ struct{} `type:"structure"` @@ -21073,76 +26137,84 @@ type DescribeImagesInput struct { // One or more filters. // - // architecture - The image architecture (i386 | x86_64). + // * architecture - The image architecture (i386 | x86_64). // - // block-device-mapping.delete-on-termination - A Boolean value that indicates - // whether the Amazon EBS volume is deleted on instance termination. + // * block-device-mapping.delete-on-termination - A Boolean value that indicates + // whether the Amazon EBS volume is deleted on instance termination. // - // block-device-mapping.device-name - The device name for the EBS volume - // (for example, /dev/sdh). + // * block-device-mapping.device-name - The device name for the EBS volume + // (for example, /dev/sdh). // - // block-device-mapping.snapshot-id - The ID of the snapshot used for the - // EBS volume. + // * block-device-mapping.snapshot-id - The ID of the snapshot used for the + // EBS volume. // - // block-device-mapping.volume-size - The volume size of the EBS volume, - // in GiB. + // * block-device-mapping.volume-size - The volume size of the EBS volume, + // in GiB. // - // block-device-mapping.volume-type - The volume type of the EBS volume - // (gp2 | io1 | st1 | sc1 | standard). + // * block-device-mapping.volume-type - The volume type of the EBS volume + // (gp2 | io1 | st1 | sc1 | standard). // - // description - The description of the image (provided during image creation). + // * description - The description of the image (provided during image creation). // - // hypervisor - The hypervisor type (ovm | xen). + // * ena-support - A Boolean that indicates whether enhanced networking with + // ENA is enabled. // - // image-id - The ID of the image. + // * hypervisor - The hypervisor type (ovm | xen). // - // image-type - The image type (machine | kernel | ramdisk). + // * image-id - The ID of the image. // - // is-public - A Boolean that indicates whether the image is public. + // * image-type - The image type (machine | kernel | ramdisk). // - // kernel-id - The kernel ID. + // * is-public - A Boolean that indicates whether the image is public. // - // manifest-location - The location of the image manifest. + // * kernel-id - The kernel ID. // - // name - The name of the AMI (provided during image creation). + // * manifest-location - The location of the image manifest. // - // owner-alias - String value from an Amazon-maintained list (amazon | aws-marketplace - // | microsoft) of snapshot owners. Not to be confused with the user-configured - // AWS account alias, which is set from the IAM console. + // * name - The name of the AMI (provided during image creation). // - // owner-id - The AWS account ID of the image owner. + // * owner-alias - String value from an Amazon-maintained list (amazon | + // aws-marketplace | microsoft) of snapshot owners. Not to be confused with + // the user-configured AWS account alias, which is set from the IAM console. // - // platform - The platform. To only list Windows-based AMIs, use windows. + // * owner-id - The AWS account ID of the image owner. // - // product-code - The product code. + // * platform - The platform. To only list Windows-based AMIs, use windows. // - // product-code.type - The type of the product code (devpay | marketplace). + // * product-code - The product code. // - // ramdisk-id - The RAM disk ID. + // * product-code.type - The type of the product code (devpay | marketplace). // - // root-device-name - The name of the root device volume (for example, /dev/sda1). + // * ramdisk-id - The RAM disk ID. // - // root-device-type - The type of the root device volume (ebs | instance-store). + // * root-device-name - The name of the root device volume (for example, + // /dev/sda1). // - // state - The state of the image (available | pending | failed). + // * root-device-type - The type of the root device volume (ebs | instance-store). // - // state-reason-code - The reason code for the state change. + // * state - The state of the image (available | pending | failed). // - // state-reason-message - The message for the state change. + // * state-reason-code - The reason code for the state change. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * state-reason-message - The message for the state change. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // virtualization-type - The virtualization type (paravirtual | hvm). + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. + // + // * virtualization-type - The virtualization type (paravirtual | hvm). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more image IDs. @@ -21167,7 +26239,38 @@ func (s DescribeImagesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeImagesInput) SetDryRun(v bool) *DescribeImagesInput { + s.DryRun = &v + return s +} + +// SetExecutableUsers sets the ExecutableUsers field's value. +func (s *DescribeImagesInput) SetExecutableUsers(v []*string) *DescribeImagesInput { + s.ExecutableUsers = v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeImagesInput) SetFilters(v []*Filter) *DescribeImagesInput { + s.Filters = v + return s +} + +// SetImageIds sets the ImageIds field's value. +func (s *DescribeImagesInput) SetImageIds(v []*string) *DescribeImagesInput { + s.ImageIds = v + return s +} + +// SetOwners sets the Owners field's value. +func (s *DescribeImagesInput) SetOwners(v []*string) *DescribeImagesInput { + s.Owners = v + return s +} + // Contains the output of DescribeImages. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImagesResult type DescribeImagesOutput struct { _ struct{} `type:"structure"` @@ -21185,7 +26288,14 @@ func (s DescribeImagesOutput) GoString() string { return s.String() } +// SetImages sets the Images field's value. +func (s *DescribeImagesOutput) SetImages(v []*Image) *DescribeImagesOutput { + s.Images = v + return s +} + // Contains the parameters for DescribeImportImageTasks. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportImageTasksRequest type DescribeImportImageTasksInput struct { _ struct{} `type:"structure"` @@ -21220,7 +26330,38 @@ func (s DescribeImportImageTasksInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeImportImageTasksInput) SetDryRun(v bool) *DescribeImportImageTasksInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeImportImageTasksInput) SetFilters(v []*Filter) *DescribeImportImageTasksInput { + s.Filters = v + return s +} + +// SetImportTaskIds sets the ImportTaskIds field's value. +func (s *DescribeImportImageTasksInput) SetImportTaskIds(v []*string) *DescribeImportImageTasksInput { + s.ImportTaskIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeImportImageTasksInput) SetMaxResults(v int64) *DescribeImportImageTasksInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeImportImageTasksInput) SetNextToken(v string) *DescribeImportImageTasksInput { + s.NextToken = &v + return s +} + // Contains the output for DescribeImportImageTasks. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportImageTasksResult type DescribeImportImageTasksOutput struct { _ struct{} `type:"structure"` @@ -21243,7 +26384,20 @@ func (s DescribeImportImageTasksOutput) GoString() string { return s.String() } +// SetImportImageTasks sets the ImportImageTasks field's value. +func (s *DescribeImportImageTasksOutput) SetImportImageTasks(v []*ImportImageTask) *DescribeImportImageTasksOutput { + s.ImportImageTasks = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeImportImageTasksOutput) SetNextToken(v string) *DescribeImportImageTasksOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeImportSnapshotTasks. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportSnapshotTasksRequest type DescribeImportSnapshotTasksInput struct { _ struct{} `type:"structure"` @@ -21277,7 +26431,38 @@ func (s DescribeImportSnapshotTasksInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeImportSnapshotTasksInput) SetDryRun(v bool) *DescribeImportSnapshotTasksInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeImportSnapshotTasksInput) SetFilters(v []*Filter) *DescribeImportSnapshotTasksInput { + s.Filters = v + return s +} + +// SetImportTaskIds sets the ImportTaskIds field's value. +func (s *DescribeImportSnapshotTasksInput) SetImportTaskIds(v []*string) *DescribeImportSnapshotTasksInput { + s.ImportTaskIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeImportSnapshotTasksInput) SetMaxResults(v int64) *DescribeImportSnapshotTasksInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeImportSnapshotTasksInput) SetNextToken(v string) *DescribeImportSnapshotTasksInput { + s.NextToken = &v + return s +} + // Contains the output for DescribeImportSnapshotTasks. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportSnapshotTasksResult type DescribeImportSnapshotTasksOutput struct { _ struct{} `type:"structure"` @@ -21300,7 +26485,20 @@ func (s DescribeImportSnapshotTasksOutput) GoString() string { return s.String() } +// SetImportSnapshotTasks sets the ImportSnapshotTasks field's value. +func (s *DescribeImportSnapshotTasksOutput) SetImportSnapshotTasks(v []*ImportSnapshotTask) *DescribeImportSnapshotTasksOutput { + s.ImportSnapshotTasks = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeImportSnapshotTasksOutput) SetNextToken(v string) *DescribeImportSnapshotTasksOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeInstanceAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceAttributeRequest type DescribeInstanceAttributeInput struct { _ struct{} `type:"structure"` @@ -21349,7 +26547,26 @@ func (s *DescribeInstanceAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *DescribeInstanceAttributeInput) SetAttribute(v string) *DescribeInstanceAttributeInput { + s.Attribute = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeInstanceAttributeInput) SetDryRun(v bool) *DescribeInstanceAttributeInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeInstanceAttributeInput) SetInstanceId(v string) *DescribeInstanceAttributeInput { + s.InstanceId = &v + return s +} + // Describes an instance attribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceAttribute type DescribeInstanceAttributeOutput struct { _ struct{} `type:"structure"` @@ -21414,7 +26631,98 @@ func (s DescribeInstanceAttributeOutput) GoString() string { return s.String() } +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *DescribeInstanceAttributeOutput) SetBlockDeviceMappings(v []*InstanceBlockDeviceMapping) *DescribeInstanceAttributeOutput { + s.BlockDeviceMappings = v + return s +} + +// SetDisableApiTermination sets the DisableApiTermination field's value. +func (s *DescribeInstanceAttributeOutput) SetDisableApiTermination(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput { + s.DisableApiTermination = v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *DescribeInstanceAttributeOutput) SetEbsOptimized(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput { + s.EbsOptimized = v + return s +} + +// SetEnaSupport sets the EnaSupport field's value. +func (s *DescribeInstanceAttributeOutput) SetEnaSupport(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput { + s.EnaSupport = v + return s +} + +// SetGroups sets the Groups field's value. +func (s *DescribeInstanceAttributeOutput) SetGroups(v []*GroupIdentifier) *DescribeInstanceAttributeOutput { + s.Groups = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeInstanceAttributeOutput) SetInstanceId(v string) *DescribeInstanceAttributeOutput { + s.InstanceId = &v + return s +} + +// SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value. +func (s *DescribeInstanceAttributeOutput) SetInstanceInitiatedShutdownBehavior(v *AttributeValue) *DescribeInstanceAttributeOutput { + s.InstanceInitiatedShutdownBehavior = v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *DescribeInstanceAttributeOutput) SetInstanceType(v *AttributeValue) *DescribeInstanceAttributeOutput { + s.InstanceType = v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *DescribeInstanceAttributeOutput) SetKernelId(v *AttributeValue) *DescribeInstanceAttributeOutput { + s.KernelId = v + return s +} + +// SetProductCodes sets the ProductCodes field's value. +func (s *DescribeInstanceAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeInstanceAttributeOutput { + s.ProductCodes = v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *DescribeInstanceAttributeOutput) SetRamdiskId(v *AttributeValue) *DescribeInstanceAttributeOutput { + s.RamdiskId = v + return s +} + +// SetRootDeviceName sets the RootDeviceName field's value. +func (s *DescribeInstanceAttributeOutput) SetRootDeviceName(v *AttributeValue) *DescribeInstanceAttributeOutput { + s.RootDeviceName = v + return s +} + +// SetSourceDestCheck sets the SourceDestCheck field's value. +func (s *DescribeInstanceAttributeOutput) SetSourceDestCheck(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput { + s.SourceDestCheck = v + return s +} + +// SetSriovNetSupport sets the SriovNetSupport field's value. +func (s *DescribeInstanceAttributeOutput) SetSriovNetSupport(v *AttributeValue) *DescribeInstanceAttributeOutput { + s.SriovNetSupport = v + return s +} + +// SetUserData sets the UserData field's value. +func (s *DescribeInstanceAttributeOutput) SetUserData(v *AttributeValue) *DescribeInstanceAttributeOutput { + s.UserData = v + return s +} + // Contains the parameters for DescribeInstanceStatus. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceStatusRequest type DescribeInstanceStatusInput struct { _ struct{} `type:"structure"` @@ -21426,39 +26734,39 @@ type DescribeInstanceStatusInput struct { // One or more filters. // - // availability-zone - The Availability Zone of the instance. + // * availability-zone - The Availability Zone of the instance. // - // event.code - The code for the scheduled event (instance-reboot | system-reboot - // | system-maintenance | instance-retirement | instance-stop). + // * event.code - The code for the scheduled event (instance-reboot | system-reboot + // | system-maintenance | instance-retirement | instance-stop). // - // event.description - A description of the event. + // * event.description - A description of the event. // - // event.not-after - The latest end time for the scheduled event (for example, - // 2014-09-15T17:15:20.000Z). + // * event.not-after - The latest end time for the scheduled event (for example, + // 2014-09-15T17:15:20.000Z). // - // event.not-before - The earliest start time for the scheduled event (for - // example, 2014-09-15T17:15:20.000Z). + // * event.not-before - The earliest start time for the scheduled event (for + // example, 2014-09-15T17:15:20.000Z). // - // instance-state-code - The code for the instance state, as a 16-bit unsigned - // integer. The high byte is an opaque internal value and should be ignored. - // The low byte is set based on the state represented. The valid values are - // 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), - // and 80 (stopped). + // * instance-state-code - The code for the instance state, as a 16-bit unsigned + // integer. The high byte is an opaque internal value and should be ignored. + // The low byte is set based on the state represented. The valid values are + // 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), + // and 80 (stopped). // - // instance-state-name - The state of the instance (pending | running | - // shutting-down | terminated | stopping | stopped). + // * instance-state-name - The state of the instance (pending | running | + // shutting-down | terminated | stopping | stopped). // - // instance-status.reachability - Filters on instance status where the name - // is reachability (passed | failed | initializing | insufficient-data). + // * instance-status.reachability - Filters on instance status where the + // name is reachability (passed | failed | initializing | insufficient-data). // - // instance-status.status - The status of the instance (ok | impaired | - // initializing | insufficient-data | not-applicable). + // * instance-status.status - The status of the instance (ok | impaired | + // initializing | insufficient-data | not-applicable). // - // system-status.reachability - Filters on system status where the name - // is reachability (passed | failed | initializing | insufficient-data). + // * system-status.reachability - Filters on system status where the name + // is reachability (passed | failed | initializing | insufficient-data). // - // system-status.status - The system status of the instance (ok | impaired - // | initializing | insufficient-data | not-applicable). + // * system-status.status - The system status of the instance (ok | impaired + // | initializing | insufficient-data | not-applicable). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // When true, includes the health status for all instances. When false, includes @@ -21494,7 +26802,44 @@ func (s DescribeInstanceStatusInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeInstanceStatusInput) SetDryRun(v bool) *DescribeInstanceStatusInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeInstanceStatusInput) SetFilters(v []*Filter) *DescribeInstanceStatusInput { + s.Filters = v + return s +} + +// SetIncludeAllInstances sets the IncludeAllInstances field's value. +func (s *DescribeInstanceStatusInput) SetIncludeAllInstances(v bool) *DescribeInstanceStatusInput { + s.IncludeAllInstances = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *DescribeInstanceStatusInput) SetInstanceIds(v []*string) *DescribeInstanceStatusInput { + s.InstanceIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeInstanceStatusInput) SetMaxResults(v int64) *DescribeInstanceStatusInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstanceStatusInput) SetNextToken(v string) *DescribeInstanceStatusInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeInstanceStatus. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceStatusResult type DescribeInstanceStatusOutput struct { _ struct{} `type:"structure"` @@ -21516,7 +26861,20 @@ func (s DescribeInstanceStatusOutput) GoString() string { return s.String() } +// SetInstanceStatuses sets the InstanceStatuses field's value. +func (s *DescribeInstanceStatusOutput) SetInstanceStatuses(v []*InstanceStatus) *DescribeInstanceStatusOutput { + s.InstanceStatuses = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstanceStatusOutput) SetNextToken(v string) *DescribeInstanceStatusOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstancesRequest type DescribeInstancesInput struct { _ struct{} `type:"structure"` @@ -21528,235 +26886,244 @@ type DescribeInstancesInput struct { // One or more filters. // - // affinity - The affinity setting for an instance running on a Dedicated - // Host (default | host). + // * affinity - The affinity setting for an instance running on a Dedicated + // Host (default | host). // - // architecture - The instance architecture (i386 | x86_64). + // * architecture - The instance architecture (i386 | x86_64). // - // availability-zone - The Availability Zone of the instance. + // * association.public-ip - The address of the Elastic IP address (IPv4) + // bound to the network interface. // - // block-device-mapping.attach-time - The attach time for an EBS volume - // mapped to the instance, for example, 2010-09-15T17:15:20.000Z. + // * association.ip-owner-id - The owner of the Elastic IP address (IPv4) + // associated with the network interface. // - // block-device-mapping.delete-on-termination - A Boolean that indicates - // whether the EBS volume is deleted on instance termination. + // * association.allocation-id - The allocation ID returned when you allocated + // the Elastic IP address (IPv4) for your network interface. // - // block-device-mapping.device-name - The device name for the EBS volume - // (for example, /dev/sdh or xvdh). + // * association.association-id - The association ID returned when the network + // interface was associated with an IPv4 address. // - // block-device-mapping.status - The status for the EBS volume (attaching - // | attached | detaching | detached). + // * availability-zone - The Availability Zone of the instance. // - // block-device-mapping.volume-id - The volume ID of the EBS volume. + // * block-device-mapping.attach-time - The attach time for an EBS volume + // mapped to the instance, for example, 2010-09-15T17:15:20.000Z. // - // client-token - The idempotency token you provided when you launched the - // instance. + // * block-device-mapping.delete-on-termination - A Boolean that indicates + // whether the EBS volume is deleted on instance termination. // - // dns-name - The public DNS name of the instance. + // * block-device-mapping.device-name - The device name for the EBS volume + // (for example, /dev/sdh or xvdh). // - // group-id - The ID of the security group for the instance. EC2-Classic - // only. + // * block-device-mapping.status - The status for the EBS volume (attaching + // | attached | detaching | detached). // - // group-name - The name of the security group for the instance. EC2-Classic - // only. + // * block-device-mapping.volume-id - The volume ID of the EBS volume. // - // host-id - The ID of the Dedicated Host on which the instance is running, - // if applicable. + // * client-token - The idempotency token you provided when you launched + // the instance. // - // hypervisor - The hypervisor type of the instance (ovm | xen). + // * dns-name - The public DNS name of the instance. // - // iam-instance-profile.arn - The instance profile associated with the instance. - // Specified as an ARN. + // * group-id - The ID of the security group for the instance. EC2-Classic + // only. // - // image-id - The ID of the image used to launch the instance. + // * group-name - The name of the security group for the instance. EC2-Classic + // only. // - // instance-id - The ID of the instance. + // * host-id - The ID of the Dedicated Host on which the instance is running, + // if applicable. // - // instance-lifecycle - Indicates whether this is a Spot Instance or a Scheduled - // Instance (spot | scheduled). + // * hypervisor - The hypervisor type of the instance (ovm | xen). // - // instance-state-code - The state of the instance, as a 16-bit unsigned - // integer. The high byte is an opaque internal value and should be ignored. - // The low byte is set based on the state represented. The valid values are: - // 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), - // and 80 (stopped). + // * iam-instance-profile.arn - The instance profile associated with the + // instance. Specified as an ARN. // - // instance-state-name - The state of the instance (pending | running | - // shutting-down | terminated | stopping | stopped). + // * image-id - The ID of the image used to launch the instance. // - // instance-type - The type of instance (for example, t2.micro). + // * instance-id - The ID of the instance. // - // instance.group-id - The ID of the security group for the instance. + // * instance-lifecycle - Indicates whether this is a Spot Instance or a + // Scheduled Instance (spot | scheduled). // - // instance.group-name - The name of the security group for the instance. + // * instance-state-code - The state of the instance, as a 16-bit unsigned + // integer. The high byte is an opaque internal value and should be ignored. + // The low byte is set based on the state represented. The valid values are: + // 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), + // and 80 (stopped). // - // ip-address - The public IP address of the instance. + // * instance-state-name - The state of the instance (pending | running | + // shutting-down | terminated | stopping | stopped). // - // kernel-id - The kernel ID. + // * instance-type - The type of instance (for example, t2.micro). // - // key-name - The name of the key pair used when the instance was launched. + // * instance.group-id - The ID of the security group for the instance. // - // launch-index - When launching multiple instances, this is the index for - // the instance in the launch group (for example, 0, 1, 2, and so on). + // * instance.group-name - The name of the security group for the instance. // - // launch-time - The time when the instance was launched. // - // monitoring-state - Indicates whether monitoring is enabled for the instance - // (disabled | enabled). + // * ip-address - The public IPv4 address of the instance. // - // owner-id - The AWS account ID of the instance owner. + // * kernel-id - The kernel ID. // - // placement-group-name - The name of the placement group for the instance. + // * key-name - The name of the key pair used when the instance was launched. // - // platform - The platform. Use windows if you have Windows instances; otherwise, - // leave blank. + // * launch-index - When launching multiple instances, this is the index + // for the instance in the launch group (for example, 0, 1, 2, and so on). // - // private-dns-name - The private DNS name of the instance. // - // private-ip-address - The private IP address of the instance. + // * launch-time - The time when the instance was launched. // - // product-code - The product code associated with the AMI used to launch - // the instance. + // * monitoring-state - Indicates whether detailed monitoring is enabled + // (disabled | enabled). // - // product-code.type - The type of product code (devpay | marketplace). + // * network-interface.addresses.private-ip-address - The private IPv4 address + // associated with the network interface. // - // ramdisk-id - The RAM disk ID. + // * network-interface.addresses.primary - Specifies whether the IPv4 address + // of the network interface is the primary private IPv4 address. // - // reason - The reason for the current state of the instance (for example, - // shows "User Initiated [date]" when you stop or terminate the instance). Similar - // to the state-reason-code filter. + // * network-interface.addresses.association.public-ip - The ID of the association + // of an Elastic IP address (IPv4) with a network interface. // - // requester-id - The ID of the entity that launched the instance on your - // behalf (for example, AWS Management Console, Auto Scaling, and so on). + // * network-interface.addresses.association.ip-owner-id - The owner ID of + // the private IPv4 address associated with the network interface. // - // reservation-id - The ID of the instance's reservation. A reservation - // ID is created any time you launch an instance. A reservation ID has a one-to-one - // relationship with an instance launch request, but can be associated with - // more than one instance if you launch multiple instances using the same launch - // request. For example, if you launch one instance, you'll get one reservation - // ID. If you launch ten instances using the same launch request, you'll also - // get one reservation ID. + // * network-interface.attachment.attachment-id - The ID of the interface + // attachment. // - // root-device-name - The name of the root device for the instance (for - // example, /dev/sda1 or /dev/xvda). + // * network-interface.attachment.instance-id - The ID of the instance to + // which the network interface is attached. // - // root-device-type - The type of root device that the instance uses (ebs - // | instance-store). + // * network-interface.attachment.instance-owner-id - The owner ID of the + // instance to which the network interface is attached. // - // source-dest-check - Indicates whether the instance performs source/destination - // checking. A value of true means that checking is enabled, and false means - // checking is disabled. The value must be false for the instance to perform - // network address translation (NAT) in your VPC. + // * network-interface.attachment.device-index - The device index to which + // the network interface is attached. // - // spot-instance-request-id - The ID of the Spot instance request. + // * network-interface.attachment.status - The status of the attachment (attaching + // | attached | detaching | detached). // - // state-reason-code - The reason code for the state change. + // * network-interface.attachment.attach-time - The time that the network + // interface was attached to an instance. // - // state-reason-message - A message that describes the state change. + // * network-interface.attachment.delete-on-termination - Specifies whether + // the attachment is deleted when an instance is terminated. // - // subnet-id - The ID of the subnet for the instance. + // * network-interface.availability-zone - The Availability Zone for the + // network interface. // - // tag:key=value - The key/value combination of a tag assigned to the resource, - // where tag:key is the tag's key. + // * network-interface.description - The description of the network interface. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * network-interface.group-id - The ID of a security group associated with + // the network interface. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * network-interface.group-name - The name of a security group associated + // with the network interface. // - // tenancy - The tenancy of an instance (dedicated | default | host). + // * network-interface.ipv6-addresses.ipv6-address - The IPv6 address associated + // with the network interface. // - // virtualization-type - The virtualization type of the instance (paravirtual - // | hvm). + // * network-interface.mac-address - The MAC address of the network interface. // - // vpc-id - The ID of the VPC that the instance is running in. + // * network-interface.network-interface-id - The ID of the network interface. // - // network-interface.description - The description of the network interface. + // * network-interface.owner-id - The ID of the owner of the network interface. // - // network-interface.subnet-id - The ID of the subnet for the network interface. + // * network-interface.private-dns-name - The private DNS name of the network + // interface. // - // network-interface.vpc-id - The ID of the VPC for the network interface. + // * network-interface.requester-id - The requester ID for the network interface. // - // network-interface.network-interface-id - The ID of the network interface. + // * network-interface.requester-managed - Indicates whether the network + // interface is being managed by AWS. // - // network-interface.owner-id - The ID of the owner of the network interface. + // * network-interface.status - The status of the network interface (available) + // | in-use). // - // network-interface.availability-zone - The Availability Zone for the network - // interface. + // * network-interface.source-dest-check - Whether the network interface + // performs source/destination checking. A value of true means checking is + // enabled, and false means checking is disabled. The value must be false + // for the network interface to perform network address translation (NAT) + // in your VPC. // - // network-interface.requester-id - The requester ID for the network interface. + // * network-interface.subnet-id - The ID of the subnet for the network interface. // - // network-interface.requester-managed - Indicates whether the network interface - // is being managed by AWS. + // * network-interface.vpc-id - The ID of the VPC for the network interface. // - // network-interface.status - The status of the network interface (available) - // | in-use). + // * owner-id - The AWS account ID of the instance owner. // - // network-interface.mac-address - The MAC address of the network interface. + // * placement-group-name - The name of the placement group for the instance. // - // network-interface.private-dns-name - The private DNS name of the network - // interface. + // * platform - The platform. Use windows if you have Windows instances; + // otherwise, leave blank. // - // network-interface.source-dest-check - Whether the network interface performs - // source/destination checking. A value of true means checking is enabled, and - // false means checking is disabled. The value must be false for the network - // interface to perform network address translation (NAT) in your VPC. + // * private-dns-name - The private IPv4 DNS name of the instance. // - // network-interface.group-id - The ID of a security group associated with - // the network interface. + // * private-ip-address - The private IPv4 address of the instance. // - // network-interface.group-name - The name of a security group associated - // with the network interface. + // * product-code - The product code associated with the AMI used to launch + // the instance. // - // network-interface.attachment.attachment-id - The ID of the interface - // attachment. + // * product-code.type - The type of product code (devpay | marketplace). // - // network-interface.attachment.instance-id - The ID of the instance to - // which the network interface is attached. + // * ramdisk-id - The RAM disk ID. // - // network-interface.attachment.instance-owner-id - The owner ID of the - // instance to which the network interface is attached. + // * reason - The reason for the current state of the instance (for example, + // shows "User Initiated [date]" when you stop or terminate the instance). + // Similar to the state-reason-code filter. // - // network-interface.addresses.private-ip-address - The private IP address - // associated with the network interface. + // * requester-id - The ID of the entity that launched the instance on your + // behalf (for example, AWS Management Console, Auto Scaling, and so on). // - // network-interface.attachment.device-index - The device index to which - // the network interface is attached. + // * reservation-id - The ID of the instance's reservation. A reservation + // ID is created any time you launch an instance. A reservation ID has a + // one-to-one relationship with an instance launch request, but can be associated + // with more than one instance if you launch multiple instances using the + // same launch request. For example, if you launch one instance, you'll get + // one reservation ID. If you launch ten instances using the same launch + // request, you'll also get one reservation ID. // - // network-interface.attachment.status - The status of the attachment (attaching - // | attached | detaching | detached). + // * root-device-name - The name of the root device for the instance (for + // example, /dev/sda1 or /dev/xvda). // - // network-interface.attachment.attach-time - The time that the network - // interface was attached to an instance. + // * root-device-type - The type of root device that the instance uses (ebs + // | instance-store). // - // network-interface.attachment.delete-on-termination - Specifies whether - // the attachment is deleted when an instance is terminated. + // * source-dest-check - Indicates whether the instance performs source/destination + // checking. A value of true means that checking is enabled, and false means + // checking is disabled. The value must be false for the instance to perform + // network address translation (NAT) in your VPC. // - // network-interface.addresses.primary - Specifies whether the IP address - // of the network interface is the primary private IP address. + // * spot-instance-request-id - The ID of the Spot instance request. // - // network-interface.addresses.association.public-ip - The ID of the association - // of an Elastic IP address with a network interface. + // * state-reason-code - The reason code for the state change. // - // network-interface.addresses.association.ip-owner-id - The owner ID of - // the private IP address associated with the network interface. + // * state-reason-message - A message that describes the state change. // - // association.public-ip - The address of the Elastic IP address bound to - // the network interface. + // * subnet-id - The ID of the subnet for the instance. + // + // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // - // association.ip-owner-id - The owner of the Elastic IP address associated - // with the network interface. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // association.allocation-id - The allocation ID returned when you allocated - // the Elastic IP address for your network interface. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // association.association-id - The association ID returned when the network - // interface was associated with an IP address. + // * tenancy - The tenancy of an instance (dedicated | default | host). + // + // * virtualization-type - The virtualization type of the instance (paravirtual + // | hvm). + // + // * vpc-id - The ID of the VPC that the instance is running in. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more instance IDs. @@ -21784,7 +27151,38 @@ func (s DescribeInstancesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeInstancesInput) SetDryRun(v bool) *DescribeInstancesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeInstancesInput) SetFilters(v []*Filter) *DescribeInstancesInput { + s.Filters = v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *DescribeInstancesInput) SetInstanceIds(v []*string) *DescribeInstancesInput { + s.InstanceIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeInstancesInput) SetMaxResults(v int64) *DescribeInstancesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstancesInput) SetNextToken(v string) *DescribeInstancesInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstancesResult type DescribeInstancesOutput struct { _ struct{} `type:"structure"` @@ -21806,7 +27204,20 @@ func (s DescribeInstancesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstancesOutput) SetNextToken(v string) *DescribeInstancesOutput { + s.NextToken = &v + return s +} + +// SetReservations sets the Reservations field's value. +func (s *DescribeInstancesOutput) SetReservations(v []*Reservation) *DescribeInstancesOutput { + s.Reservations = v + return s +} + // Contains the parameters for DescribeInternetGateways. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGatewaysRequest type DescribeInternetGatewaysInput struct { _ struct{} `type:"structure"` @@ -21818,24 +27229,28 @@ type DescribeInternetGatewaysInput struct { // One or more filters. // - // attachment.state - The current state of the attachment between the gateway - // and the VPC (available). Present only if a VPC is attached. + // * attachment.state - The current state of the attachment between the gateway + // and the VPC (available). Present only if a VPC is attached. // - // attachment.vpc-id - The ID of an attached VPC. + // * attachment.vpc-id - The ID of an attached VPC. // - // internet-gateway-id - The ID of the Internet gateway. + // * internet-gateway-id - The ID of the Internet gateway. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more Internet gateway IDs. @@ -21854,7 +27269,26 @@ func (s DescribeInternetGatewaysInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeInternetGatewaysInput) SetDryRun(v bool) *DescribeInternetGatewaysInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeInternetGatewaysInput) SetFilters(v []*Filter) *DescribeInternetGatewaysInput { + s.Filters = v + return s +} + +// SetInternetGatewayIds sets the InternetGatewayIds field's value. +func (s *DescribeInternetGatewaysInput) SetInternetGatewayIds(v []*string) *DescribeInternetGatewaysInput { + s.InternetGatewayIds = v + return s +} + // Contains the output of DescribeInternetGateways. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGatewaysResult type DescribeInternetGatewaysOutput struct { _ struct{} `type:"structure"` @@ -21872,7 +27306,14 @@ func (s DescribeInternetGatewaysOutput) GoString() string { return s.String() } +// SetInternetGateways sets the InternetGateways field's value. +func (s *DescribeInternetGatewaysOutput) SetInternetGateways(v []*InternetGateway) *DescribeInternetGatewaysOutput { + s.InternetGateways = v + return s +} + // Contains the parameters for DescribeKeyPairs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeKeyPairsRequest type DescribeKeyPairsInput struct { _ struct{} `type:"structure"` @@ -21884,9 +27325,9 @@ type DescribeKeyPairsInput struct { // One or more filters. // - // fingerprint - The fingerprint of the key pair. + // * fingerprint - The fingerprint of the key pair. // - // key-name - The name of the key pair. + // * key-name - The name of the key pair. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more key pair names. @@ -21905,7 +27346,26 @@ func (s DescribeKeyPairsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeKeyPairsInput) SetDryRun(v bool) *DescribeKeyPairsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeKeyPairsInput) SetFilters(v []*Filter) *DescribeKeyPairsInput { + s.Filters = v + return s +} + +// SetKeyNames sets the KeyNames field's value. +func (s *DescribeKeyPairsInput) SetKeyNames(v []*string) *DescribeKeyPairsInput { + s.KeyNames = v + return s +} + // Contains the output of DescribeKeyPairs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeKeyPairsResult type DescribeKeyPairsOutput struct { _ struct{} `type:"structure"` @@ -21923,7 +27383,14 @@ func (s DescribeKeyPairsOutput) GoString() string { return s.String() } +// SetKeyPairs sets the KeyPairs field's value. +func (s *DescribeKeyPairsOutput) SetKeyPairs(v []*KeyPairInfo) *DescribeKeyPairsOutput { + s.KeyPairs = v + return s +} + // Contains the parameters for DescribeMovingAddresses. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMovingAddressesRequest type DescribeMovingAddressesInput struct { _ struct{} `type:"structure"` @@ -21935,7 +27402,8 @@ type DescribeMovingAddressesInput struct { // One or more filters. // - // moving-status - The status of the Elastic IP address (MovingToVpc | RestoringToClassic). + // * moving-status - The status of the Elastic IP address (MovingToVpc | + // RestoringToClassic). Filters []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"` // The maximum number of results to return for the request in a single page. @@ -21963,7 +27431,38 @@ func (s DescribeMovingAddressesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeMovingAddressesInput) SetDryRun(v bool) *DescribeMovingAddressesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeMovingAddressesInput) SetFilters(v []*Filter) *DescribeMovingAddressesInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeMovingAddressesInput) SetMaxResults(v int64) *DescribeMovingAddressesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMovingAddressesInput) SetNextToken(v string) *DescribeMovingAddressesInput { + s.NextToken = &v + return s +} + +// SetPublicIps sets the PublicIps field's value. +func (s *DescribeMovingAddressesInput) SetPublicIps(v []*string) *DescribeMovingAddressesInput { + s.PublicIps = v + return s +} + // Contains the output of DescribeMovingAddresses. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMovingAddressesResult type DescribeMovingAddressesOutput struct { _ struct{} `type:"structure"` @@ -21985,28 +27484,41 @@ func (s DescribeMovingAddressesOutput) GoString() string { return s.String() } +// SetMovingAddressStatuses sets the MovingAddressStatuses field's value. +func (s *DescribeMovingAddressesOutput) SetMovingAddressStatuses(v []*MovingAddressStatus) *DescribeMovingAddressesOutput { + s.MovingAddressStatuses = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMovingAddressesOutput) SetNextToken(v string) *DescribeMovingAddressesOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeNatGateways. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGatewaysRequest type DescribeNatGatewaysInput struct { _ struct{} `type:"structure"` // One or more filters. // - // nat-gateway-id - The ID of the NAT gateway. + // * nat-gateway-id - The ID of the NAT gateway. // - // state - The state of the NAT gateway (pending | failed | available | - // deleting | deleted). + // * state - The state of the NAT gateway (pending | failed | available | + // deleting | deleted). // - // subnet-id - The ID of the subnet in which the NAT gateway resides. + // * subnet-id - The ID of the subnet in which the NAT gateway resides. // - // vpc-id - The ID of the VPC in which the NAT gateway resides. + // * vpc-id - The ID of the VPC in which the NAT gateway resides. Filter []*Filter `locationNameList:"Filter" type:"list"` // The maximum number of items to return for this request. The request returns // a token that you can specify in a subsequent call to get the next set of // results. // - // Constraint: If the value specified is greater than 1000, we return only - // 1000 items. + // Constraint: If the value specified is greater than 1000, we return only 1000 + // items. MaxResults *int64 `type:"integer"` // One or more NAT gateway IDs. @@ -22026,7 +27538,32 @@ func (s DescribeNatGatewaysInput) GoString() string { return s.String() } +// SetFilter sets the Filter field's value. +func (s *DescribeNatGatewaysInput) SetFilter(v []*Filter) *DescribeNatGatewaysInput { + s.Filter = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeNatGatewaysInput) SetMaxResults(v int64) *DescribeNatGatewaysInput { + s.MaxResults = &v + return s +} + +// SetNatGatewayIds sets the NatGatewayIds field's value. +func (s *DescribeNatGatewaysInput) SetNatGatewayIds(v []*string) *DescribeNatGatewaysInput { + s.NatGatewayIds = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeNatGatewaysInput) SetNextToken(v string) *DescribeNatGatewaysInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeNatGateways. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGatewaysResult type DescribeNatGatewaysOutput struct { _ struct{} `type:"structure"` @@ -22048,7 +27585,20 @@ func (s DescribeNatGatewaysOutput) GoString() string { return s.String() } +// SetNatGateways sets the NatGateways field's value. +func (s *DescribeNatGatewaysOutput) SetNatGateways(v []*NatGateway) *DescribeNatGatewaysOutput { + s.NatGateways = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeNatGatewaysOutput) SetNextToken(v string) *DescribeNatGatewaysOutput { + s.NextToken = &v + return s +} + // Contains the parameters for DescribeNetworkAcls. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkAclsRequest type DescribeNetworkAclsInput struct { _ struct{} `type:"structure"` @@ -22060,52 +27610,59 @@ type DescribeNetworkAclsInput struct { // One or more filters. // - // association.association-id - The ID of an association ID for the ACL. + // * association.association-id - The ID of an association ID for the ACL. // - // association.network-acl-id - The ID of the network ACL involved in the - // association. + // * association.network-acl-id - The ID of the network ACL involved in the + // association. // - // association.subnet-id - The ID of the subnet involved in the association. + // * association.subnet-id - The ID of the subnet involved in the association. // - // default - Indicates whether the ACL is the default network ACL for the - // VPC. + // * default - Indicates whether the ACL is the default network ACL for the + // VPC. + // + // * entry.cidr - The IPv4 CIDR range specified in the entry. // - // entry.cidr - The CIDR range specified in the entry. + // * entry.egress - Indicates whether the entry applies to egress traffic. // - // entry.egress - Indicates whether the entry applies to egress traffic. + // * entry.icmp.code - The ICMP code specified in the entry, if any. // - // entry.icmp.code - The ICMP code specified in the entry, if any. + // * entry.icmp.type - The ICMP type specified in the entry, if any. // - // entry.icmp.type - The ICMP type specified in the entry, if any. + // * entry.ipv6-cidr - The IPv6 CIDR range specified in the entry. // - // entry.port-range.from - The start of the port range specified in the - // entry. + // * entry.port-range.from - The start of the port range specified in the + // entry. // - // entry.port-range.to - The end of the port range specified in the entry. + // * entry.port-range.to - The end of the port range specified in the entry. // - // entry.protocol - The protocol specified in the entry (tcp | udp | icmp - // or a protocol number). // - // entry.rule-action - Allows or denies the matching traffic (allow | deny). + // * entry.protocol - The protocol specified in the entry (tcp | udp | icmp + // or a protocol number). // - // entry.rule-number - The number of an entry (in other words, rule) in - // the ACL's set of entries. + // * entry.rule-action - Allows or denies the matching traffic (allow | deny). // - // network-acl-id - The ID of the network ACL. + // * entry.rule-number - The number of an entry (in other words, rule) in + // the ACL's set of entries. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * network-acl-id - The ID of the network ACL. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // vpc-id - The ID of the VPC for the network ACL. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. + // + // * vpc-id - The ID of the VPC for the network ACL. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more network ACL IDs. @@ -22124,7 +27681,26 @@ func (s DescribeNetworkAclsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeNetworkAclsInput) SetDryRun(v bool) *DescribeNetworkAclsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeNetworkAclsInput) SetFilters(v []*Filter) *DescribeNetworkAclsInput { + s.Filters = v + return s +} + +// SetNetworkAclIds sets the NetworkAclIds field's value. +func (s *DescribeNetworkAclsInput) SetNetworkAclIds(v []*string) *DescribeNetworkAclsInput { + s.NetworkAclIds = v + return s +} + // Contains the output of DescribeNetworkAcls. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkAclsResult type DescribeNetworkAclsOutput struct { _ struct{} `type:"structure"` @@ -22142,7 +27718,14 @@ func (s DescribeNetworkAclsOutput) GoString() string { return s.String() } +// SetNetworkAcls sets the NetworkAcls field's value. +func (s *DescribeNetworkAclsOutput) SetNetworkAcls(v []*NetworkAcl) *DescribeNetworkAclsOutput { + s.NetworkAcls = v + return s +} + // Contains the parameters for DescribeNetworkInterfaceAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaceAttributeRequest type DescribeNetworkInterfaceAttributeInput struct { _ struct{} `type:"structure"` @@ -22184,7 +27767,26 @@ func (s *DescribeNetworkInterfaceAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *DescribeNetworkInterfaceAttributeInput) SetAttribute(v string) *DescribeNetworkInterfaceAttributeInput { + s.Attribute = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeNetworkInterfaceAttributeInput) SetDryRun(v bool) *DescribeNetworkInterfaceAttributeInput { + s.DryRun = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *DescribeNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeInput { + s.NetworkInterfaceId = &v + return s +} + // Contains the output of DescribeNetworkInterfaceAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaceAttributeResult type DescribeNetworkInterfaceAttributeOutput struct { _ struct{} `type:"structure"` @@ -22214,7 +27816,38 @@ func (s DescribeNetworkInterfaceAttributeOutput) GoString() string { return s.String() } +// SetAttachment sets the Attachment field's value. +func (s *DescribeNetworkInterfaceAttributeOutput) SetAttachment(v *NetworkInterfaceAttachment) *DescribeNetworkInterfaceAttributeOutput { + s.Attachment = v + return s +} + +// SetDescription sets the Description field's value. +func (s *DescribeNetworkInterfaceAttributeOutput) SetDescription(v *AttributeValue) *DescribeNetworkInterfaceAttributeOutput { + s.Description = v + return s +} + +// SetGroups sets the Groups field's value. +func (s *DescribeNetworkInterfaceAttributeOutput) SetGroups(v []*GroupIdentifier) *DescribeNetworkInterfaceAttributeOutput { + s.Groups = v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *DescribeNetworkInterfaceAttributeOutput) SetNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeOutput { + s.NetworkInterfaceId = &v + return s +} + +// SetSourceDestCheck sets the SourceDestCheck field's value. +func (s *DescribeNetworkInterfaceAttributeOutput) SetSourceDestCheck(v *AttributeBooleanValue) *DescribeNetworkInterfaceAttributeOutput { + s.SourceDestCheck = v + return s +} + // Contains the parameters for DescribeNetworkInterfaces. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfacesRequest type DescribeNetworkInterfacesInput struct { _ struct{} `type:"structure"` @@ -22226,106 +27859,115 @@ type DescribeNetworkInterfacesInput struct { // One or more filters. // - // addresses.private-ip-address - The private IP addresses associated with - // the network interface. + // * addresses.private-ip-address - The private IPv4 addresses associated + // with the network interface. // - // addresses.primary - Whether the private IP address is the primary IP - // address associated with the network interface. + // * addresses.primary - Whether the private IPv4 address is the primary + // IP address associated with the network interface. // - // addresses.association.public-ip - The association ID returned when the - // network interface was associated with the Elastic IP address. + // * addresses.association.public-ip - The association ID returned when the + // network interface was associated with the Elastic IP address (IPv4). // - // addresses.association.owner-id - The owner ID of the addresses associated - // with the network interface. + // * addresses.association.owner-id - The owner ID of the addresses associated + // with the network interface. // - // association.association-id - The association ID returned when the network - // interface was associated with an IP address. + // * association.association-id - The association ID returned when the network + // interface was associated with an IPv4 address. // - // association.allocation-id - The allocation ID returned when you allocated - // the Elastic IP address for your network interface. + // * association.allocation-id - The allocation ID returned when you allocated + // the Elastic IP address (IPv4) for your network interface. // - // association.ip-owner-id - The owner of the Elastic IP address associated - // with the network interface. + // * association.ip-owner-id - The owner of the Elastic IP address (IPv4) + // associated with the network interface. // - // association.public-ip - The address of the Elastic IP address bound to - // the network interface. + // * association.public-ip - The address of the Elastic IP address (IPv4) + // bound to the network interface. // - // association.public-dns-name - The public DNS name for the network interface. + // * association.public-dns-name - The public DNS name for the network interface + // (IPv4). // - // attachment.attachment-id - The ID of the interface attachment. + // * attachment.attachment-id - The ID of the interface attachment. // - // attachment.attach.time - The time that the network interface was attached - // to an instance. + // * attachment.attach.time - The time that the network interface was attached + // to an instance. // - // attachment.delete-on-termination - Indicates whether the attachment is - // deleted when an instance is terminated. + // * attachment.delete-on-termination - Indicates whether the attachment + // is deleted when an instance is terminated. // - // attachment.device-index - The device index to which the network interface - // is attached. + // * attachment.device-index - The device index to which the network interface + // is attached. // - // attachment.instance-id - The ID of the instance to which the network - // interface is attached. + // * attachment.instance-id - The ID of the instance to which the network + // interface is attached. // - // attachment.instance-owner-id - The owner ID of the instance to which - // the network interface is attached. + // * attachment.instance-owner-id - The owner ID of the instance to which + // the network interface is attached. // - // attachment.nat-gateway-id - The ID of the NAT gateway to which the network - // interface is attached. + // * attachment.nat-gateway-id - The ID of the NAT gateway to which the network + // interface is attached. // - // attachment.status - The status of the attachment (attaching | attached - // | detaching | detached). + // * attachment.status - The status of the attachment (attaching | attached + // | detaching | detached). // - // availability-zone - The Availability Zone of the network interface. + // * availability-zone - The Availability Zone of the network interface. // - // description - The description of the network interface. + // * description - The description of the network interface. // - // group-id - The ID of a security group associated with the network interface. + // * group-id - The ID of a security group associated with the network interface. // - // group-name - The name of a security group associated with the network - // interface. + // * group-name - The name of a security group associated with the network + // interface. // - // mac-address - The MAC address of the network interface. + // * ipv6-addresses.ipv6-address - An IPv6 address associated with the network + // interface. // - // network-interface-id - The ID of the network interface. + // * mac-address - The MAC address of the network interface. // - // owner-id - The AWS account ID of the network interface owner. + // * network-interface-id - The ID of the network interface. // - // private-ip-address - The private IP address or addresses of the network - // interface. + // * owner-id - The AWS account ID of the network interface owner. + // + // * private-ip-address - The private IPv4 address or addresses of the network + // interface. // - // private-dns-name - The private DNS name of the network interface. + // * private-dns-name - The private DNS name of the network interface (IPv4). // - // requester-id - The ID of the entity that launched the instance on your - // behalf (for example, AWS Management Console, Auto Scaling, and so on). + // * requester-id - The ID of the entity that launched the instance on your + // behalf (for example, AWS Management Console, Auto Scaling, and so on). // - // requester-managed - Indicates whether the network interface is being - // managed by an AWS service (for example, AWS Management Console, Auto Scaling, - // and so on). + // * requester-managed - Indicates whether the network interface is being + // managed by an AWS service (for example, AWS Management Console, Auto Scaling, + // and so on). // - // source-desk-check - Indicates whether the network interface performs - // source/destination checking. A value of true means checking is enabled, and - // false means checking is disabled. The value must be false for the network - // interface to perform network address translation (NAT) in your VPC. + // * source-desk-check - Indicates whether the network interface performs + // source/destination checking. A value of true means checking is enabled, + // and false means checking is disabled. The value must be false for the + // network interface to perform network address translation (NAT) in your + // VPC. // - // status - The status of the network interface. If the network interface - // is not attached to an instance, the status is available; if a network interface - // is attached to an instance the status is in-use. + // * status - The status of the network interface. If the network interface + // is not attached to an instance, the status is available; if a network + // interface is attached to an instance the status is in-use. // - // subnet-id - The ID of the subnet for the network interface. + // * subnet-id - The ID of the subnet for the network interface. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // vpc-id - The ID of the VPC for the network interface. + // * vpc-id - The ID of the VPC for the network interface. Filters []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"` // One or more network interface IDs. @@ -22344,7 +27986,26 @@ func (s DescribeNetworkInterfacesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeNetworkInterfacesInput) SetDryRun(v bool) *DescribeNetworkInterfacesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeNetworkInterfacesInput) SetFilters(v []*Filter) *DescribeNetworkInterfacesInput { + s.Filters = v + return s +} + +// SetNetworkInterfaceIds sets the NetworkInterfaceIds field's value. +func (s *DescribeNetworkInterfacesInput) SetNetworkInterfaceIds(v []*string) *DescribeNetworkInterfacesInput { + s.NetworkInterfaceIds = v + return s +} + // Contains the output of DescribeNetworkInterfaces. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfacesResult type DescribeNetworkInterfacesOutput struct { _ struct{} `type:"structure"` @@ -22362,7 +28023,14 @@ func (s DescribeNetworkInterfacesOutput) GoString() string { return s.String() } +// SetNetworkInterfaces sets the NetworkInterfaces field's value. +func (s *DescribeNetworkInterfacesOutput) SetNetworkInterfaces(v []*NetworkInterface) *DescribeNetworkInterfacesOutput { + s.NetworkInterfaces = v + return s +} + // Contains the parameters for DescribePlacementGroups. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePlacementGroupsRequest type DescribePlacementGroupsInput struct { _ struct{} `type:"structure"` @@ -22374,12 +28042,12 @@ type DescribePlacementGroupsInput struct { // One or more filters. // - // group-name - The name of the placement group. + // * group-name - The name of the placement group. // - // state - The state of the placement group (pending | available | deleting - // | deleted). + // * state - The state of the placement group (pending | available | deleting + // | deleted). // - // strategy - The strategy of the placement group (cluster). + // * strategy - The strategy of the placement group (cluster). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more placement group names. @@ -22398,7 +28066,26 @@ func (s DescribePlacementGroupsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribePlacementGroupsInput) SetDryRun(v bool) *DescribePlacementGroupsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribePlacementGroupsInput) SetFilters(v []*Filter) *DescribePlacementGroupsInput { + s.Filters = v + return s +} + +// SetGroupNames sets the GroupNames field's value. +func (s *DescribePlacementGroupsInput) SetGroupNames(v []*string) *DescribePlacementGroupsInput { + s.GroupNames = v + return s +} + // Contains the output of DescribePlacementGroups. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePlacementGroupsResult type DescribePlacementGroupsOutput struct { _ struct{} `type:"structure"` @@ -22416,7 +28103,14 @@ func (s DescribePlacementGroupsOutput) GoString() string { return s.String() } +// SetPlacementGroups sets the PlacementGroups field's value. +func (s *DescribePlacementGroupsOutput) SetPlacementGroups(v []*PlacementGroup) *DescribePlacementGroupsOutput { + s.PlacementGroups = v + return s +} + // Contains the parameters for DescribePrefixLists. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrefixListsRequest type DescribePrefixListsInput struct { _ struct{} `type:"structure"` @@ -22428,17 +28122,17 @@ type DescribePrefixListsInput struct { // One or more filters. // - // prefix-list-id: The ID of a prefix list. + // * prefix-list-id: The ID of a prefix list. // - // prefix-list-name: The name of a prefix list. + // * prefix-list-name: The name of a prefix list. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The maximum number of items to return for this request. The request returns // a token that you can specify in a subsequent call to get the next set of // results. // - // Constraint: If the value specified is greater than 1000, we return only - // 1000 items. + // Constraint: If the value specified is greater than 1000, we return only 1000 + // items. MaxResults *int64 `type:"integer"` // The token for the next set of items to return. (You received this token from @@ -22459,7 +28153,38 @@ func (s DescribePrefixListsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribePrefixListsInput) SetDryRun(v bool) *DescribePrefixListsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribePrefixListsInput) SetFilters(v []*Filter) *DescribePrefixListsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribePrefixListsInput) SetMaxResults(v int64) *DescribePrefixListsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribePrefixListsInput) SetNextToken(v string) *DescribePrefixListsInput { + s.NextToken = &v + return s +} + +// SetPrefixListIds sets the PrefixListIds field's value. +func (s *DescribePrefixListsInput) SetPrefixListIds(v []*string) *DescribePrefixListsInput { + s.PrefixListIds = v + return s +} + // Contains the output of DescribePrefixLists. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrefixListsResult type DescribePrefixListsOutput struct { _ struct{} `type:"structure"` @@ -22481,7 +28206,20 @@ func (s DescribePrefixListsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribePrefixListsOutput) SetNextToken(v string) *DescribePrefixListsOutput { + s.NextToken = &v + return s +} + +// SetPrefixLists sets the PrefixLists field's value. +func (s *DescribePrefixListsOutput) SetPrefixLists(v []*PrefixList) *DescribePrefixListsOutput { + s.PrefixLists = v + return s +} + // Contains the parameters for DescribeRegions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRegionsRequest type DescribeRegionsInput struct { _ struct{} `type:"structure"` @@ -22493,9 +28231,9 @@ type DescribeRegionsInput struct { // One or more filters. // - // endpoint - The endpoint of the region (for example, ec2.us-east-1.amazonaws.com). + // * endpoint - The endpoint of the region (for example, ec2.us-east-1.amazonaws.com). // - // region-name - The name of the region (for example, us-east-1). + // * region-name - The name of the region (for example, us-east-1). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The names of one or more regions. @@ -22512,7 +28250,26 @@ func (s DescribeRegionsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeRegionsInput) SetDryRun(v bool) *DescribeRegionsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeRegionsInput) SetFilters(v []*Filter) *DescribeRegionsInput { + s.Filters = v + return s +} + +// SetRegionNames sets the RegionNames field's value. +func (s *DescribeRegionsInput) SetRegionNames(v []*string) *DescribeRegionsInput { + s.RegionNames = v + return s +} + // Contains the output of DescribeRegions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRegionsResult type DescribeRegionsOutput struct { _ struct{} `type:"structure"` @@ -22530,7 +28287,14 @@ func (s DescribeRegionsOutput) GoString() string { return s.String() } +// SetRegions sets the Regions field's value. +func (s *DescribeRegionsOutput) SetRegions(v []*Region) *DescribeRegionsOutput { + s.Regions = v + return s +} + // Contains the parameters for DescribeReservedInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesRequest type DescribeReservedInstancesInput struct { _ struct{} `type:"structure"` @@ -22542,53 +28306,57 @@ type DescribeReservedInstancesInput struct { // One or more filters. // - // availability-zone - The Availability Zone where the Reserved Instance - // can be used. + // * availability-zone - The Availability Zone where the Reserved Instance + // can be used. // - // duration - The duration of the Reserved Instance (one year or three years), - // in seconds (31536000 | 94608000). + // * duration - The duration of the Reserved Instance (one year or three + // years), in seconds (31536000 | 94608000). // - // end - The time when the Reserved Instance expires (for example, 2015-08-07T11:54:42.000Z). + // * end - The time when the Reserved Instance expires (for example, 2015-08-07T11:54:42.000Z). // - // fixed-price - The purchase price of the Reserved Instance (for example, - // 9800.0). + // * fixed-price - The purchase price of the Reserved Instance (for example, + // 9800.0). // - // instance-type - The instance type that is covered by the reservation. + // * instance-type - The instance type that is covered by the reservation. // - // scope - The scope of the Reserved Instance (Region or Availability Zone). + // * scope - The scope of the Reserved Instance (Region or Availability Zone). // - // product-description - The Reserved Instance product platform description. - // Instances that include (Amazon VPC) in the product platform description will - // only be displayed to EC2-Classic account holders and are for use with Amazon - // VPC (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE Linux (Amazon - // VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux (Amazon VPC) | - // Windows | Windows (Amazon VPC) | Windows with SQL Server Standard | Windows - // with SQL Server Standard (Amazon VPC) | Windows with SQL Server Web | Windows - // with SQL Server Web (Amazon VPC) | Windows with SQL Server Enterprise | Windows - // with SQL Server Enterprise (Amazon VPC)). + // * product-description - The Reserved Instance product platform description. + // Instances that include (Amazon VPC) in the product platform description + // will only be displayed to EC2-Classic account holders and are for use + // with Amazon VPC (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE + // Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux + // (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL Server + // Standard | Windows with SQL Server Standard (Amazon VPC) | Windows with + // SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows with + // SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon VPC)). // - // reserved-instances-id - The ID of the Reserved Instance. + // * reserved-instances-id - The ID of the Reserved Instance. // - // start - The time at which the Reserved Instance purchase request was - // placed (for example, 2014-08-07T11:54:42.000Z). + // * start - The time at which the Reserved Instance purchase request was + // placed (for example, 2014-08-07T11:54:42.000Z). // - // state - The state of the Reserved Instance (payment-pending | active - // | payment-failed | retired). + // * state - The state of the Reserved Instance (payment-pending | active + // | payment-failed | retired). // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // usage-price - The usage price of the Reserved Instance, per hour (for - // example, 0.84). + // * usage-price - The usage price of the Reserved Instance, per hour (for + // example, 0.84). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // Describes whether the Reserved Instance is Standard or Convertible. @@ -22601,8 +28369,7 @@ type DescribeReservedInstancesInput struct { // One or more Reserved Instance IDs. // - // Default: Describes all your Reserved Instances, or only those otherwise - // specified. + // Default: Describes all your Reserved Instances, or only those otherwise specified. ReservedInstancesIds []*string `locationName:"ReservedInstancesId" locationNameList:"ReservedInstancesId" type:"list"` } @@ -22616,20 +28383,51 @@ func (s DescribeReservedInstancesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeReservedInstancesInput) SetDryRun(v bool) *DescribeReservedInstancesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeReservedInstancesInput) SetFilters(v []*Filter) *DescribeReservedInstancesInput { + s.Filters = v + return s +} + +// SetOfferingClass sets the OfferingClass field's value. +func (s *DescribeReservedInstancesInput) SetOfferingClass(v string) *DescribeReservedInstancesInput { + s.OfferingClass = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *DescribeReservedInstancesInput) SetOfferingType(v string) *DescribeReservedInstancesInput { + s.OfferingType = &v + return s +} + +// SetReservedInstancesIds sets the ReservedInstancesIds field's value. +func (s *DescribeReservedInstancesInput) SetReservedInstancesIds(v []*string) *DescribeReservedInstancesInput { + s.ReservedInstancesIds = v + return s +} + // Contains the parameters for DescribeReservedInstancesListings. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesListingsRequest type DescribeReservedInstancesListingsInput struct { _ struct{} `type:"structure"` // One or more filters. // - // reserved-instances-id - The ID of the Reserved Instances. + // * reserved-instances-id - The ID of the Reserved Instances. // - // reserved-instances-listing-id - The ID of the Reserved Instances listing. + // * reserved-instances-listing-id - The ID of the Reserved Instances listing. // - // status - The status of the Reserved Instance listing (pending | active - // | cancelled | closed). + // * status - The status of the Reserved Instance listing (pending | active + // | cancelled | closed). // - // status-message - The reason for the status. + // * status-message - The reason for the status. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more Reserved Instance IDs. @@ -22649,7 +28447,26 @@ func (s DescribeReservedInstancesListingsInput) GoString() string { return s.String() } +// SetFilters sets the Filters field's value. +func (s *DescribeReservedInstancesListingsInput) SetFilters(v []*Filter) *DescribeReservedInstancesListingsInput { + s.Filters = v + return s +} + +// SetReservedInstancesId sets the ReservedInstancesId field's value. +func (s *DescribeReservedInstancesListingsInput) SetReservedInstancesId(v string) *DescribeReservedInstancesListingsInput { + s.ReservedInstancesId = &v + return s +} + +// SetReservedInstancesListingId sets the ReservedInstancesListingId field's value. +func (s *DescribeReservedInstancesListingsInput) SetReservedInstancesListingId(v string) *DescribeReservedInstancesListingsInput { + s.ReservedInstancesListingId = &v + return s +} + // Contains the output of DescribeReservedInstancesListings. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesListingsResult type DescribeReservedInstancesListingsOutput struct { _ struct{} `type:"structure"` @@ -22667,44 +28484,51 @@ func (s DescribeReservedInstancesListingsOutput) GoString() string { return s.String() } +// SetReservedInstancesListings sets the ReservedInstancesListings field's value. +func (s *DescribeReservedInstancesListingsOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *DescribeReservedInstancesListingsOutput { + s.ReservedInstancesListings = v + return s +} + // Contains the parameters for DescribeReservedInstancesModifications. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesModificationsRequest type DescribeReservedInstancesModificationsInput struct { _ struct{} `type:"structure"` // One or more filters. // - // client-token - The idempotency token for the modification request. + // * client-token - The idempotency token for the modification request. // - // create-date - The time when the modification request was created. + // * create-date - The time when the modification request was created. // - // effective-date - The time when the modification becomes effective. + // * effective-date - The time when the modification becomes effective. // - // modification-result.reserved-instances-id - The ID for the Reserved Instances - // created as part of the modification request. This ID is only available when - // the status of the modification is fulfilled. + // * modification-result.reserved-instances-id - The ID for the Reserved + // Instances created as part of the modification request. This ID is only + // available when the status of the modification is fulfilled. // - // modification-result.target-configuration.availability-zone - The Availability - // Zone for the new Reserved Instances. + // * modification-result.target-configuration.availability-zone - The Availability + // Zone for the new Reserved Instances. // - // modification-result.target-configuration.instance-count - The number - // of new Reserved Instances. + // * modification-result.target-configuration.instance-count - The number + // of new Reserved Instances. // - // modification-result.target-configuration.instance-type - The instance - // type of the new Reserved Instances. + // * modification-result.target-configuration.instance-type - The instance + // type of the new Reserved Instances. // - // modification-result.target-configuration.platform - The network platform - // of the new Reserved Instances (EC2-Classic | EC2-VPC). + // * modification-result.target-configuration.platform - The network platform + // of the new Reserved Instances (EC2-Classic | EC2-VPC). // - // reserved-instances-id - The ID of the Reserved Instances modified. + // * reserved-instances-id - The ID of the Reserved Instances modified. // - // reserved-instances-modification-id - The ID of the modification request. + // * reserved-instances-modification-id - The ID of the modification request. // - // status - The status of the Reserved Instances modification request (processing - // | fulfilled | failed). + // * status - The status of the Reserved Instances modification request (processing + // | fulfilled | failed). // - // status-message - The reason for the status. + // * status-message - The reason for the status. // - // update-date - The time when the modification request was last updated. + // * update-date - The time when the modification request was last updated. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The token to retrieve the next page of results. @@ -22724,7 +28548,26 @@ func (s DescribeReservedInstancesModificationsInput) GoString() string { return s.String() } +// SetFilters sets the Filters field's value. +func (s *DescribeReservedInstancesModificationsInput) SetFilters(v []*Filter) *DescribeReservedInstancesModificationsInput { + s.Filters = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeReservedInstancesModificationsInput) SetNextToken(v string) *DescribeReservedInstancesModificationsInput { + s.NextToken = &v + return s +} + +// SetReservedInstancesModificationIds sets the ReservedInstancesModificationIds field's value. +func (s *DescribeReservedInstancesModificationsInput) SetReservedInstancesModificationIds(v []*string) *DescribeReservedInstancesModificationsInput { + s.ReservedInstancesModificationIds = v + return s +} + // Contains the output of DescribeReservedInstancesModifications. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesModificationsResult type DescribeReservedInstancesModificationsOutput struct { _ struct{} `type:"structure"` @@ -22746,7 +28589,20 @@ func (s DescribeReservedInstancesModificationsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeReservedInstancesModificationsOutput) SetNextToken(v string) *DescribeReservedInstancesModificationsOutput { + s.NextToken = &v + return s +} + +// SetReservedInstancesModifications sets the ReservedInstancesModifications field's value. +func (s *DescribeReservedInstancesModificationsOutput) SetReservedInstancesModifications(v []*ReservedInstancesModification) *DescribeReservedInstancesModificationsOutput { + s.ReservedInstancesModifications = v + return s +} + // Contains the parameters for DescribeReservedInstancesOfferings. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesOfferingsRequest type DescribeReservedInstancesOfferingsInput struct { _ struct{} `type:"structure"` @@ -22761,37 +28617,39 @@ type DescribeReservedInstancesOfferingsInput struct { // One or more filters. // - // availability-zone - The Availability Zone where the Reserved Instance - // can be used. + // * availability-zone - The Availability Zone where the Reserved Instance + // can be used. // - // duration - The duration of the Reserved Instance (for example, one year - // or three years), in seconds (31536000 | 94608000). + // * duration - The duration of the Reserved Instance (for example, one year + // or three years), in seconds (31536000 | 94608000). // - // fixed-price - The purchase price of the Reserved Instance (for example, - // 9800.0). + // * fixed-price - The purchase price of the Reserved Instance (for example, + // 9800.0). // - // instance-type - The instance type that is covered by the reservation. + // * instance-type - The instance type that is covered by the reservation. // - // marketplace - Set to true to show only Reserved Instance Marketplace - // offerings. When this filter is not used, which is the default behavior, all - // offerings from both AWS and the Reserved Instance Marketplace are listed. + // * marketplace - Set to true to show only Reserved Instance Marketplace + // offerings. When this filter is not used, which is the default behavior, + // all offerings from both AWS and the Reserved Instance Marketplace are + // listed. // - // product-description - The Reserved Instance product platform description. - // Instances that include (Amazon VPC) in the product platform description will - // only be displayed to EC2-Classic account holders and are for use with Amazon - // VPC. (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE Linux (Amazon - // VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux (Amazon VPC) | - // Windows | Windows (Amazon VPC) | Windows with SQL Server Standard | Windows - // with SQL Server Standard (Amazon VPC) | Windows with SQL Server Web | Windows - // with SQL Server Web (Amazon VPC) | Windows with SQL Server Enterprise | Windows - // with SQL Server Enterprise (Amazon VPC)) + // * product-description - The Reserved Instance product platform description. + // Instances that include (Amazon VPC) in the product platform description + // will only be displayed to EC2-Classic account holders and are for use + // with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | + // SUSE Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise + // Linux (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL + // Server Standard | Windows with SQL Server Standard (Amazon VPC) | Windows + // with SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows + // with SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon + // VPC)) // - // reserved-instances-offering-id - The Reserved Instances offering ID. + // * reserved-instances-offering-id - The Reserved Instances offering ID. // - // scope - The scope of the Reserved Instance (Availability Zone or Region). + // * scope - The scope of the Reserved Instance (Availability Zone or Region). // - // usage-price - The usage price of the Reserved Instance, per hour (for - // example, 0.84). + // * usage-price - The usage price of the Reserved Instance, per hour (for + // example, 0.84). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // Include Reserved Instance Marketplace offerings in the response. @@ -22860,7 +28718,98 @@ func (s DescribeReservedInstancesOfferingsInput) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetAvailabilityZone(v string) *DescribeReservedInstancesOfferingsInput { + s.AvailabilityZone = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetDryRun(v bool) *DescribeReservedInstancesOfferingsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetFilters(v []*Filter) *DescribeReservedInstancesOfferingsInput { + s.Filters = v + return s +} + +// SetIncludeMarketplace sets the IncludeMarketplace field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetIncludeMarketplace(v bool) *DescribeReservedInstancesOfferingsInput { + s.IncludeMarketplace = &v + return s +} + +// SetInstanceTenancy sets the InstanceTenancy field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetInstanceTenancy(v string) *DescribeReservedInstancesOfferingsInput { + s.InstanceTenancy = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetInstanceType(v string) *DescribeReservedInstancesOfferingsInput { + s.InstanceType = &v + return s +} + +// SetMaxDuration sets the MaxDuration field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetMaxDuration(v int64) *DescribeReservedInstancesOfferingsInput { + s.MaxDuration = &v + return s +} + +// SetMaxInstanceCount sets the MaxInstanceCount field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetMaxInstanceCount(v int64) *DescribeReservedInstancesOfferingsInput { + s.MaxInstanceCount = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetMaxResults(v int64) *DescribeReservedInstancesOfferingsInput { + s.MaxResults = &v + return s +} + +// SetMinDuration sets the MinDuration field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetMinDuration(v int64) *DescribeReservedInstancesOfferingsInput { + s.MinDuration = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetNextToken(v string) *DescribeReservedInstancesOfferingsInput { + s.NextToken = &v + return s +} + +// SetOfferingClass sets the OfferingClass field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetOfferingClass(v string) *DescribeReservedInstancesOfferingsInput { + s.OfferingClass = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetOfferingType(v string) *DescribeReservedInstancesOfferingsInput { + s.OfferingType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetProductDescription(v string) *DescribeReservedInstancesOfferingsInput { + s.ProductDescription = &v + return s +} + +// SetReservedInstancesOfferingIds sets the ReservedInstancesOfferingIds field's value. +func (s *DescribeReservedInstancesOfferingsInput) SetReservedInstancesOfferingIds(v []*string) *DescribeReservedInstancesOfferingsInput { + s.ReservedInstancesOfferingIds = v + return s +} + // Contains the output of DescribeReservedInstancesOfferings. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesOfferingsResult type DescribeReservedInstancesOfferingsOutput struct { _ struct{} `type:"structure"` @@ -22882,7 +28831,20 @@ func (s DescribeReservedInstancesOfferingsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeReservedInstancesOfferingsOutput) SetNextToken(v string) *DescribeReservedInstancesOfferingsOutput { + s.NextToken = &v + return s +} + +// SetReservedInstancesOfferings sets the ReservedInstancesOfferings field's value. +func (s *DescribeReservedInstancesOfferingsOutput) SetReservedInstancesOfferings(v []*ReservedInstancesOffering) *DescribeReservedInstancesOfferingsOutput { + s.ReservedInstancesOfferings = v + return s +} + // Contains the output for DescribeReservedInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesResult type DescribeReservedInstancesOutput struct { _ struct{} `type:"structure"` @@ -22900,7 +28862,14 @@ func (s DescribeReservedInstancesOutput) GoString() string { return s.String() } +// SetReservedInstances sets the ReservedInstances field's value. +func (s *DescribeReservedInstancesOutput) SetReservedInstances(v []*ReservedInstances) *DescribeReservedInstancesOutput { + s.ReservedInstances = v + return s +} + // Contains the parameters for DescribeRouteTables. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRouteTablesRequest type DescribeRouteTablesInput struct { _ struct{} `type:"structure"` @@ -22912,59 +28881,69 @@ type DescribeRouteTablesInput struct { // One or more filters. // - // association.route-table-association-id - The ID of an association ID - // for the route table. + // * association.route-table-association-id - The ID of an association ID + // for the route table. // - // association.route-table-id - The ID of the route table involved in the - // association. + // * association.route-table-id - The ID of the route table involved in the + // association. // - // association.subnet-id - The ID of the subnet involved in the association. + // * association.subnet-id - The ID of the subnet involved in the association. // - // association.main - Indicates whether the route table is the main route - // table for the VPC (true | false). + // * association.main - Indicates whether the route table is the main route + // table for the VPC (true | false). // - // route-table-id - The ID of the route table. + // * route-table-id - The ID of the route table. // - // route.destination-cidr-block - The CIDR range specified in a route in - // the table. + // * route.destination-cidr-block - The IPv4 CIDR range specified in a route + // in the table. // - // route.destination-prefix-list-id - The ID (prefix) of the AWS service - // specified in a route in the table. + // * route.destination-ipv6-cidr-block - The IPv6 CIDR range specified in + // a route in the route table. // - // route.gateway-id - The ID of a gateway specified in a route in the table. + // * route.destination-prefix-list-id - The ID (prefix) of the AWS service + // specified in a route in the table. // - // route.instance-id - The ID of an instance specified in a route in the - // table. + // * route.egress-only-internet-gateway-id - The ID of an egress-only Internet + // gateway specified in a route in the route table. // - // route.nat-gateway-id - The ID of a NAT gateway. + // * route.gateway-id - The ID of a gateway specified in a route in the table. // - // route.origin - Describes how the route was created. CreateRouteTable - // indicates that the route was automatically created when the route table was - // created; CreateRoute indicates that the route was manually added to the route - // table; EnableVgwRoutePropagation indicates that the route was propagated - // by route propagation. + // * route.instance-id - The ID of an instance specified in a route in the + // table. // - // route.state - The state of a route in the route table (active | blackhole). - // The blackhole state indicates that the route's target isn't available (for - // example, the specified gateway isn't attached to the VPC, the specified NAT - // instance has been terminated, and so on). + // * route.nat-gateway-id - The ID of a NAT gateway. // - // route.vpc-peering-connection-id - The ID of a VPC peering connection - // specified in a route in the table. + // * route.origin - Describes how the route was created. CreateRouteTable + // indicates that the route was automatically created when the route table + // was created; CreateRoute indicates that the route was manually added to + // the route table; EnableVgwRoutePropagation indicates that the route was + // propagated by route propagation. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * route.state - The state of a route in the route table (active | blackhole). + // The blackhole state indicates that the route's target isn't available + // (for example, the specified gateway isn't attached to the VPC, the specified + // NAT instance has been terminated, and so on). // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * route.vpc-peering-connection-id - The ID of a VPC peering connection + // specified in a route in the table. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // - // vpc-id - The ID of the VPC for the route table. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. + // + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. + // + // * vpc-id - The ID of the VPC for the route table. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more route table IDs. @@ -22983,7 +28962,26 @@ func (s DescribeRouteTablesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeRouteTablesInput) SetDryRun(v bool) *DescribeRouteTablesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeRouteTablesInput) SetFilters(v []*Filter) *DescribeRouteTablesInput { + s.Filters = v + return s +} + +// SetRouteTableIds sets the RouteTableIds field's value. +func (s *DescribeRouteTablesInput) SetRouteTableIds(v []*string) *DescribeRouteTablesInput { + s.RouteTableIds = v + return s +} + // Contains the output of DescribeRouteTables. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRouteTablesResult type DescribeRouteTablesOutput struct { _ struct{} `type:"structure"` @@ -23001,7 +28999,14 @@ func (s DescribeRouteTablesOutput) GoString() string { return s.String() } +// SetRouteTables sets the RouteTables field's value. +func (s *DescribeRouteTablesOutput) SetRouteTables(v []*RouteTable) *DescribeRouteTablesOutput { + s.RouteTables = v + return s +} + // Contains the parameters for DescribeScheduledInstanceAvailability. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstanceAvailabilityRequest type DescribeScheduledInstanceAvailabilityInput struct { _ struct{} `type:"structure"` @@ -23013,13 +29018,13 @@ type DescribeScheduledInstanceAvailabilityInput struct { // One or more filters. // - // availability-zone - The Availability Zone (for example, us-west-2a). + // * availability-zone - The Availability Zone (for example, us-west-2a). // - // instance-type - The instance type (for example, c4.large). + // * instance-type - The instance type (for example, c4.large). // - // network-platform - The network platform (EC2-Classic or EC2-VPC). + // * network-platform - The network platform (EC2-Classic or EC2-VPC). // - // platform - The platform (Linux/UNIX or Windows). + // * platform - The platform (Linux/UNIX or Windows). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The time period for the first schedule to start. @@ -23082,7 +29087,56 @@ func (s *DescribeScheduledInstanceAvailabilityInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DescribeScheduledInstanceAvailabilityInput) SetDryRun(v bool) *DescribeScheduledInstanceAvailabilityInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeScheduledInstanceAvailabilityInput) SetFilters(v []*Filter) *DescribeScheduledInstanceAvailabilityInput { + s.Filters = v + return s +} + +// SetFirstSlotStartTimeRange sets the FirstSlotStartTimeRange field's value. +func (s *DescribeScheduledInstanceAvailabilityInput) SetFirstSlotStartTimeRange(v *SlotDateTimeRangeRequest) *DescribeScheduledInstanceAvailabilityInput { + s.FirstSlotStartTimeRange = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeScheduledInstanceAvailabilityInput) SetMaxResults(v int64) *DescribeScheduledInstanceAvailabilityInput { + s.MaxResults = &v + return s +} + +// SetMaxSlotDurationInHours sets the MaxSlotDurationInHours field's value. +func (s *DescribeScheduledInstanceAvailabilityInput) SetMaxSlotDurationInHours(v int64) *DescribeScheduledInstanceAvailabilityInput { + s.MaxSlotDurationInHours = &v + return s +} + +// SetMinSlotDurationInHours sets the MinSlotDurationInHours field's value. +func (s *DescribeScheduledInstanceAvailabilityInput) SetMinSlotDurationInHours(v int64) *DescribeScheduledInstanceAvailabilityInput { + s.MinSlotDurationInHours = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeScheduledInstanceAvailabilityInput) SetNextToken(v string) *DescribeScheduledInstanceAvailabilityInput { + s.NextToken = &v + return s +} + +// SetRecurrence sets the Recurrence field's value. +func (s *DescribeScheduledInstanceAvailabilityInput) SetRecurrence(v *ScheduledInstanceRecurrenceRequest) *DescribeScheduledInstanceAvailabilityInput { + s.Recurrence = v + return s +} + // Contains the output of DescribeScheduledInstanceAvailability. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstanceAvailabilityResult type DescribeScheduledInstanceAvailabilityOutput struct { _ struct{} `type:"structure"` @@ -23104,7 +29158,20 @@ func (s DescribeScheduledInstanceAvailabilityOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeScheduledInstanceAvailabilityOutput) SetNextToken(v string) *DescribeScheduledInstanceAvailabilityOutput { + s.NextToken = &v + return s +} + +// SetScheduledInstanceAvailabilitySet sets the ScheduledInstanceAvailabilitySet field's value. +func (s *DescribeScheduledInstanceAvailabilityOutput) SetScheduledInstanceAvailabilitySet(v []*ScheduledInstanceAvailability) *DescribeScheduledInstanceAvailabilityOutput { + s.ScheduledInstanceAvailabilitySet = v + return s +} + // Contains the parameters for DescribeScheduledInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstancesRequest type DescribeScheduledInstancesInput struct { _ struct{} `type:"structure"` @@ -23116,13 +29183,13 @@ type DescribeScheduledInstancesInput struct { // One or more filters. // - // availability-zone - The Availability Zone (for example, us-west-2a). + // * availability-zone - The Availability Zone (for example, us-west-2a). // - // instance-type - The instance type (for example, c4.large). + // * instance-type - The instance type (for example, c4.large). // - // network-platform - The network platform (EC2-Classic or EC2-VPC). + // * network-platform - The network platform (EC2-Classic or EC2-VPC). // - // platform - The platform (Linux/UNIX or Windows). + // * platform - The platform (Linux/UNIX or Windows). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The maximum number of results to return in a single call. This value can @@ -23150,7 +29217,44 @@ func (s DescribeScheduledInstancesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeScheduledInstancesInput) SetDryRun(v bool) *DescribeScheduledInstancesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeScheduledInstancesInput) SetFilters(v []*Filter) *DescribeScheduledInstancesInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeScheduledInstancesInput) SetMaxResults(v int64) *DescribeScheduledInstancesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeScheduledInstancesInput) SetNextToken(v string) *DescribeScheduledInstancesInput { + s.NextToken = &v + return s +} + +// SetScheduledInstanceIds sets the ScheduledInstanceIds field's value. +func (s *DescribeScheduledInstancesInput) SetScheduledInstanceIds(v []*string) *DescribeScheduledInstancesInput { + s.ScheduledInstanceIds = v + return s +} + +// SetSlotStartTimeRange sets the SlotStartTimeRange field's value. +func (s *DescribeScheduledInstancesInput) SetSlotStartTimeRange(v *SlotStartTimeRangeRequest) *DescribeScheduledInstancesInput { + s.SlotStartTimeRange = v + return s +} + // Contains the output of DescribeScheduledInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstancesResult type DescribeScheduledInstancesOutput struct { _ struct{} `type:"structure"` @@ -23172,6 +29276,19 @@ func (s DescribeScheduledInstancesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeScheduledInstancesOutput) SetNextToken(v string) *DescribeScheduledInstancesOutput { + s.NextToken = &v + return s +} + +// SetScheduledInstanceSet sets the ScheduledInstanceSet field's value. +func (s *DescribeScheduledInstancesOutput) SetScheduledInstanceSet(v []*ScheduledInstance) *DescribeScheduledInstancesOutput { + s.ScheduledInstanceSet = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupReferencesRequest type DescribeSecurityGroupReferencesInput struct { _ struct{} `type:"structure"` @@ -23210,6 +29327,19 @@ func (s *DescribeSecurityGroupReferencesInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DescribeSecurityGroupReferencesInput) SetDryRun(v bool) *DescribeSecurityGroupReferencesInput { + s.DryRun = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *DescribeSecurityGroupReferencesInput) SetGroupId(v []*string) *DescribeSecurityGroupReferencesInput { + s.GroupId = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupReferencesResult type DescribeSecurityGroupReferencesOutput struct { _ struct{} `type:"structure"` @@ -23227,7 +29357,14 @@ func (s DescribeSecurityGroupReferencesOutput) GoString() string { return s.String() } +// SetSecurityGroupReferenceSet sets the SecurityGroupReferenceSet field's value. +func (s *DescribeSecurityGroupReferencesOutput) SetSecurityGroupReferenceSet(v []*SecurityGroupReference) *DescribeSecurityGroupReferencesOutput { + s.SecurityGroupReferenceSet = v + return s +} + // Contains the parameters for DescribeSecurityGroups. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupsRequest type DescribeSecurityGroupsInput struct { _ struct{} `type:"structure"` @@ -23241,42 +29378,46 @@ type DescribeSecurityGroupsInput struct { // security groups for which any combination of rules - not necessarily a single // rule - match all filters. // - // description - The description of the security group. + // * description - The description of the security group. + // + // * egress.ip-permission.prefix-list-id - The ID (prefix) of the AWS service + // to which the security group allows access. // - // egress.ip-permission.prefix-list-id - The ID (prefix) of the AWS service - // to which the security group allows access. + // * group-id - The ID of the security group. // - // group-id - The ID of the security group. + // * group-name - The name of the security group. // - // group-name - The name of the security group. + // * ip-permission.cidr - An IPv4 CIDR range that has been granted permission + // in a security group rule. // - // ip-permission.cidr - A CIDR range that has been granted permission. + // * ip-permission.from-port - The start of port range for the TCP and UDP + // protocols, or an ICMP type number. // - // ip-permission.from-port - The start of port range for the TCP and UDP - // protocols, or an ICMP type number. + // * ip-permission.group-id - The ID of a security group that has been granted + // permission. // - // ip-permission.group-id - The ID of a security group that has been granted - // permission. + // * ip-permission.group-name - The name of a security group that has been + // granted permission. // - // ip-permission.group-name - The name of a security group that has been - // granted permission. + // * ip-permission.ipv6-cidr - An IPv6 CIDR range that has been granted permission + // in a security group rule. // - // ip-permission.protocol - The IP protocol for the permission (tcp | udp - // | icmp or a protocol number). + // * ip-permission.protocol - The IP protocol for the permission (tcp | udp + // | icmp or a protocol number). // - // ip-permission.to-port - The end of port range for the TCP and UDP protocols, - // or an ICMP code. + // * ip-permission.to-port - The end of port range for the TCP and UDP protocols, + // or an ICMP code. // - // ip-permission.user-id - The ID of an AWS account that has been granted - // permission. + // * ip-permission.user-id - The ID of an AWS account that has been granted + // permission. // - // owner-id - The AWS account ID of the owner of the security group. + // * owner-id - The AWS account ID of the owner of the security group. // - // tag-key - The key of a tag assigned to the security group. + // * tag-key - The key of a tag assigned to the security group. // - // tag-value - The value of a tag assigned to the security group. + // * tag-value - The value of a tag assigned to the security group. // - // vpc-id - The ID of the VPC specified when the security group was created. + // * vpc-id - The ID of the VPC specified when the security group was created. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more security group IDs. Required for security groups in a nondefault @@ -23304,7 +29445,32 @@ func (s DescribeSecurityGroupsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeSecurityGroupsInput) SetDryRun(v bool) *DescribeSecurityGroupsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeSecurityGroupsInput) SetFilters(v []*Filter) *DescribeSecurityGroupsInput { + s.Filters = v + return s +} + +// SetGroupIds sets the GroupIds field's value. +func (s *DescribeSecurityGroupsInput) SetGroupIds(v []*string) *DescribeSecurityGroupsInput { + s.GroupIds = v + return s +} + +// SetGroupNames sets the GroupNames field's value. +func (s *DescribeSecurityGroupsInput) SetGroupNames(v []*string) *DescribeSecurityGroupsInput { + s.GroupNames = v + return s +} + // Contains the output of DescribeSecurityGroups. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupsResult type DescribeSecurityGroupsOutput struct { _ struct{} `type:"structure"` @@ -23322,7 +29488,14 @@ func (s DescribeSecurityGroupsOutput) GoString() string { return s.String() } +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *DescribeSecurityGroupsOutput) SetSecurityGroups(v []*SecurityGroup) *DescribeSecurityGroupsOutput { + s.SecurityGroups = v + return s +} + // Contains the parameters for DescribeSnapshotAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotAttributeRequest type DescribeSnapshotAttributeInput struct { _ struct{} `type:"structure"` @@ -23369,7 +29542,26 @@ func (s *DescribeSnapshotAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *DescribeSnapshotAttributeInput) SetAttribute(v string) *DescribeSnapshotAttributeInput { + s.Attribute = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeSnapshotAttributeInput) SetDryRun(v bool) *DescribeSnapshotAttributeInput { + s.DryRun = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *DescribeSnapshotAttributeInput) SetSnapshotId(v string) *DescribeSnapshotAttributeInput { + s.SnapshotId = &v + return s +} + // Contains the output of DescribeSnapshotAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotAttributeResult type DescribeSnapshotAttributeOutput struct { _ struct{} `type:"structure"` @@ -23393,7 +29585,26 @@ func (s DescribeSnapshotAttributeOutput) GoString() string { return s.String() } +// SetCreateVolumePermissions sets the CreateVolumePermissions field's value. +func (s *DescribeSnapshotAttributeOutput) SetCreateVolumePermissions(v []*CreateVolumePermission) *DescribeSnapshotAttributeOutput { + s.CreateVolumePermissions = v + return s +} + +// SetProductCodes sets the ProductCodes field's value. +func (s *DescribeSnapshotAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeSnapshotAttributeOutput { + s.ProductCodes = v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *DescribeSnapshotAttributeOutput) SetSnapshotId(v string) *DescribeSnapshotAttributeOutput { + s.SnapshotId = &v + return s +} + // Contains the parameters for DescribeSnapshots. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotsRequest type DescribeSnapshotsInput struct { _ struct{} `type:"structure"` @@ -23405,38 +29616,42 @@ type DescribeSnapshotsInput struct { // One or more filters. // - // description - A description of the snapshot. + // * description - A description of the snapshot. // - // owner-alias - Value from an Amazon-maintained list (amazon | aws-marketplace - // | microsoft) of snapshot owners. Not to be confused with the user-configured - // AWS account alias, which is set from the IAM consolew. + // * owner-alias - Value from an Amazon-maintained list (amazon | aws-marketplace + // | microsoft) of snapshot owners. Not to be confused with the user-configured + // AWS account alias, which is set from the IAM consolew. // - // owner-id - The ID of the AWS account that owns the snapshot. + // * owner-id - The ID of the AWS account that owns the snapshot. // - // progress - The progress of the snapshot, as a percentage (for example, - // 80%). + // * progress - The progress of the snapshot, as a percentage (for example, + // 80%). // - // snapshot-id - The snapshot ID. + // * snapshot-id - The snapshot ID. // - // start-time - The time stamp when the snapshot was initiated. + // * start-time - The time stamp when the snapshot was initiated. // - // status - The status of the snapshot (pending | completed | error). + // * status - The status of the snapshot (pending | completed | error). // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // volume-id - The ID of the volume the snapshot is for. + // * volume-id - The ID of the volume the snapshot is for. // - // volume-size - The size of the volume, in GiB. + // * volume-size - The size of the volume, in GiB. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The maximum number of snapshot results returned by DescribeSnapshots in paginated @@ -23480,7 +29695,50 @@ func (s DescribeSnapshotsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeSnapshotsInput) SetDryRun(v bool) *DescribeSnapshotsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeSnapshotsInput) SetFilters(v []*Filter) *DescribeSnapshotsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeSnapshotsInput) SetMaxResults(v int64) *DescribeSnapshotsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSnapshotsInput) SetNextToken(v string) *DescribeSnapshotsInput { + s.NextToken = &v + return s +} + +// SetOwnerIds sets the OwnerIds field's value. +func (s *DescribeSnapshotsInput) SetOwnerIds(v []*string) *DescribeSnapshotsInput { + s.OwnerIds = v + return s +} + +// SetRestorableByUserIds sets the RestorableByUserIds field's value. +func (s *DescribeSnapshotsInput) SetRestorableByUserIds(v []*string) *DescribeSnapshotsInput { + s.RestorableByUserIds = v + return s +} + +// SetSnapshotIds sets the SnapshotIds field's value. +func (s *DescribeSnapshotsInput) SetSnapshotIds(v []*string) *DescribeSnapshotsInput { + s.SnapshotIds = v + return s +} + // Contains the output of DescribeSnapshots. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotsResult type DescribeSnapshotsOutput struct { _ struct{} `type:"structure"` @@ -23504,7 +29762,20 @@ func (s DescribeSnapshotsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeSnapshotsOutput) SetNextToken(v string) *DescribeSnapshotsOutput { + s.NextToken = &v + return s +} + +// SetSnapshots sets the Snapshots field's value. +func (s *DescribeSnapshotsOutput) SetSnapshots(v []*Snapshot) *DescribeSnapshotsOutput { + s.Snapshots = v + return s +} + // Contains the parameters for DescribeSpotDatafeedSubscription. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotDatafeedSubscriptionRequest type DescribeSpotDatafeedSubscriptionInput struct { _ struct{} `type:"structure"` @@ -23525,7 +29796,14 @@ func (s DescribeSpotDatafeedSubscriptionInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeSpotDatafeedSubscriptionInput) SetDryRun(v bool) *DescribeSpotDatafeedSubscriptionInput { + s.DryRun = &v + return s +} + // Contains the output of DescribeSpotDatafeedSubscription. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotDatafeedSubscriptionResult type DescribeSpotDatafeedSubscriptionOutput struct { _ struct{} `type:"structure"` @@ -23543,7 +29821,14 @@ func (s DescribeSpotDatafeedSubscriptionOutput) GoString() string { return s.String() } +// SetSpotDatafeedSubscription sets the SpotDatafeedSubscription field's value. +func (s *DescribeSpotDatafeedSubscriptionOutput) SetSpotDatafeedSubscription(v *SpotDatafeedSubscription) *DescribeSpotDatafeedSubscriptionOutput { + s.SpotDatafeedSubscription = v + return s +} + // Contains the parameters for DescribeSpotFleetInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetInstancesRequest type DescribeSpotFleetInstancesInput struct { _ struct{} `type:"structure"` @@ -23590,7 +29875,32 @@ func (s *DescribeSpotFleetInstancesInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DescribeSpotFleetInstancesInput) SetDryRun(v bool) *DescribeSpotFleetInstancesInput { + s.DryRun = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeSpotFleetInstancesInput) SetMaxResults(v int64) *DescribeSpotFleetInstancesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSpotFleetInstancesInput) SetNextToken(v string) *DescribeSpotFleetInstancesInput { + s.NextToken = &v + return s +} + +// SetSpotFleetRequestId sets the SpotFleetRequestId field's value. +func (s *DescribeSpotFleetInstancesInput) SetSpotFleetRequestId(v string) *DescribeSpotFleetInstancesInput { + s.SpotFleetRequestId = &v + return s +} + // Contains the output of DescribeSpotFleetInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetInstancesResponse type DescribeSpotFleetInstancesOutput struct { _ struct{} `type:"structure"` @@ -23620,7 +29930,26 @@ func (s DescribeSpotFleetInstancesOutput) GoString() string { return s.String() } +// SetActiveInstances sets the ActiveInstances field's value. +func (s *DescribeSpotFleetInstancesOutput) SetActiveInstances(v []*ActiveInstance) *DescribeSpotFleetInstancesOutput { + s.ActiveInstances = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSpotFleetInstancesOutput) SetNextToken(v string) *DescribeSpotFleetInstancesOutput { + s.NextToken = &v + return s +} + +// SetSpotFleetRequestId sets the SpotFleetRequestId field's value. +func (s *DescribeSpotFleetInstancesOutput) SetSpotFleetRequestId(v string) *DescribeSpotFleetInstancesOutput { + s.SpotFleetRequestId = &v + return s +} + // Contains the parameters for DescribeSpotFleetRequestHistory. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestHistoryRequest type DescribeSpotFleetRequestHistoryInput struct { _ struct{} `type:"structure"` @@ -23678,7 +30007,44 @@ func (s *DescribeSpotFleetRequestHistoryInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DescribeSpotFleetRequestHistoryInput) SetDryRun(v bool) *DescribeSpotFleetRequestHistoryInput { + s.DryRun = &v + return s +} + +// SetEventType sets the EventType field's value. +func (s *DescribeSpotFleetRequestHistoryInput) SetEventType(v string) *DescribeSpotFleetRequestHistoryInput { + s.EventType = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeSpotFleetRequestHistoryInput) SetMaxResults(v int64) *DescribeSpotFleetRequestHistoryInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSpotFleetRequestHistoryInput) SetNextToken(v string) *DescribeSpotFleetRequestHistoryInput { + s.NextToken = &v + return s +} + +// SetSpotFleetRequestId sets the SpotFleetRequestId field's value. +func (s *DescribeSpotFleetRequestHistoryInput) SetSpotFleetRequestId(v string) *DescribeSpotFleetRequestHistoryInput { + s.SpotFleetRequestId = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeSpotFleetRequestHistoryInput) SetStartTime(v time.Time) *DescribeSpotFleetRequestHistoryInput { + s.StartTime = &v + return s +} + // Contains the output of DescribeSpotFleetRequestHistory. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestHistoryResponse type DescribeSpotFleetRequestHistoryOutput struct { _ struct{} `type:"structure"` @@ -23720,7 +30086,38 @@ func (s DescribeSpotFleetRequestHistoryOutput) GoString() string { return s.String() } +// SetHistoryRecords sets the HistoryRecords field's value. +func (s *DescribeSpotFleetRequestHistoryOutput) SetHistoryRecords(v []*HistoryRecord) *DescribeSpotFleetRequestHistoryOutput { + s.HistoryRecords = v + return s +} + +// SetLastEvaluatedTime sets the LastEvaluatedTime field's value. +func (s *DescribeSpotFleetRequestHistoryOutput) SetLastEvaluatedTime(v time.Time) *DescribeSpotFleetRequestHistoryOutput { + s.LastEvaluatedTime = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSpotFleetRequestHistoryOutput) SetNextToken(v string) *DescribeSpotFleetRequestHistoryOutput { + s.NextToken = &v + return s +} + +// SetSpotFleetRequestId sets the SpotFleetRequestId field's value. +func (s *DescribeSpotFleetRequestHistoryOutput) SetSpotFleetRequestId(v string) *DescribeSpotFleetRequestHistoryOutput { + s.SpotFleetRequestId = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeSpotFleetRequestHistoryOutput) SetStartTime(v time.Time) *DescribeSpotFleetRequestHistoryOutput { + s.StartTime = &v + return s +} + // Contains the parameters for DescribeSpotFleetRequests. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestsRequest type DescribeSpotFleetRequestsInput struct { _ struct{} `type:"structure"` @@ -23752,7 +30149,32 @@ func (s DescribeSpotFleetRequestsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeSpotFleetRequestsInput) SetDryRun(v bool) *DescribeSpotFleetRequestsInput { + s.DryRun = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeSpotFleetRequestsInput) SetMaxResults(v int64) *DescribeSpotFleetRequestsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSpotFleetRequestsInput) SetNextToken(v string) *DescribeSpotFleetRequestsInput { + s.NextToken = &v + return s +} + +// SetSpotFleetRequestIds sets the SpotFleetRequestIds field's value. +func (s *DescribeSpotFleetRequestsInput) SetSpotFleetRequestIds(v []*string) *DescribeSpotFleetRequestsInput { + s.SpotFleetRequestIds = v + return s +} + // Contains the output of DescribeSpotFleetRequests. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestsResponse type DescribeSpotFleetRequestsOutput struct { _ struct{} `type:"structure"` @@ -23776,7 +30198,20 @@ func (s DescribeSpotFleetRequestsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeSpotFleetRequestsOutput) SetNextToken(v string) *DescribeSpotFleetRequestsOutput { + s.NextToken = &v + return s +} + +// SetSpotFleetRequestConfigs sets the SpotFleetRequestConfigs field's value. +func (s *DescribeSpotFleetRequestsOutput) SetSpotFleetRequestConfigs(v []*SpotFleetRequestConfig) *DescribeSpotFleetRequestsOutput { + s.SpotFleetRequestConfigs = v + return s +} + // Contains the parameters for DescribeSpotInstanceRequests. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotInstanceRequestsRequest type DescribeSpotInstanceRequestsInput struct { _ struct{} `type:"structure"` @@ -23788,113 +30223,117 @@ type DescribeSpotInstanceRequestsInput struct { // One or more filters. // - // availability-zone-group - The Availability Zone group. + // * availability-zone-group - The Availability Zone group. // - // create-time - The time stamp when the Spot instance request was created. + // * create-time - The time stamp when the Spot instance request was created. // - // fault-code - The fault code related to the request. + // * fault-code - The fault code related to the request. // - // fault-message - The fault message related to the request. + // * fault-message - The fault message related to the request. // - // instance-id - The ID of the instance that fulfilled the request. + // * instance-id - The ID of the instance that fulfilled the request. // - // launch-group - The Spot instance launch group. + // * launch-group - The Spot instance launch group. // - // launch.block-device-mapping.delete-on-termination - Indicates whether - // the Amazon EBS volume is deleted on instance termination. + // * launch.block-device-mapping.delete-on-termination - Indicates whether + // the Amazon EBS volume is deleted on instance termination. // - // launch.block-device-mapping.device-name - The device name for the Amazon - // EBS volume (for example, /dev/sdh). + // * launch.block-device-mapping.device-name - The device name for the Amazon + // EBS volume (for example, /dev/sdh). // - // launch.block-device-mapping.snapshot-id - The ID of the snapshot used - // for the Amazon EBS volume. + // * launch.block-device-mapping.snapshot-id - The ID of the snapshot used + // for the Amazon EBS volume. // - // launch.block-device-mapping.volume-size - The size of the Amazon EBS - // volume, in GiB. + // * launch.block-device-mapping.volume-size - The size of the Amazon EBS + // volume, in GiB. // - // launch.block-device-mapping.volume-type - The type of the Amazon EBS - // volume: gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD, st1 for - // Throughput Optimized HDD, sc1for Cold HDD, or standard for Magnetic. + // * launch.block-device-mapping.volume-type - The type of the Amazon EBS + // volume: gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD, st1 + // for Throughput Optimized HDD, sc1for Cold HDD, or standard for Magnetic. // - // launch.group-id - The security group for the instance. + // * launch.group-id - The security group for the instance. // - // launch.image-id - The ID of the AMI. + // * launch.image-id - The ID of the AMI. // - // launch.instance-type - The type of instance (for example, m3.medium). + // * launch.instance-type - The type of instance (for example, m3.medium). // - // launch.kernel-id - The kernel ID. + // * launch.kernel-id - The kernel ID. // - // launch.key-name - The name of the key pair the instance launched with. + // * launch.key-name - The name of the key pair the instance launched with. // - // launch.monitoring-enabled - Whether monitoring is enabled for the Spot - // instance. + // * launch.monitoring-enabled - Whether monitoring is enabled for the Spot + // instance. // - // launch.ramdisk-id - The RAM disk ID. + // * launch.ramdisk-id - The RAM disk ID. // - // network-interface.network-interface-id - The ID of the network interface. + // * network-interface.network-interface-id - The ID of the network interface. // - // network-interface.device-index - The index of the device for the network - // interface attachment on the instance. + // * network-interface.device-index - The index of the device for the network + // interface attachment on the instance. // - // network-interface.subnet-id - The ID of the subnet for the instance. + // * network-interface.subnet-id - The ID of the subnet for the instance. // - // network-interface.description - A description of the network interface. + // * network-interface.description - A description of the network interface. // - // network-interface.private-ip-address - The primary private IP address - // of the network interface. + // * network-interface.private-ip-address - The primary private IP address + // of the network interface. // - // network-interface.delete-on-termination - Indicates whether the network - // interface is deleted when the instance is terminated. + // * network-interface.delete-on-termination - Indicates whether the network + // interface is deleted when the instance is terminated. // - // network-interface.group-id - The ID of the security group associated - // with the network interface. + // * network-interface.group-id - The ID of the security group associated + // with the network interface. // - // network-interface.group-name - The name of the security group associated - // with the network interface. + // * network-interface.group-name - The name of the security group associated + // with the network interface. // - // network-interface.addresses.primary - Indicates whether the IP address - // is the primary private IP address. + // * network-interface.addresses.primary - Indicates whether the IP address + // is the primary private IP address. // - // product-description - The product description associated with the instance - // (Linux/UNIX | Windows). + // * product-description - The product description associated with the instance + // (Linux/UNIX | Windows). // - // spot-instance-request-id - The Spot instance request ID. + // * spot-instance-request-id - The Spot instance request ID. // - // spot-price - The maximum hourly price for any Spot instance launched - // to fulfill the request. + // * spot-price - The maximum hourly price for any Spot instance launched + // to fulfill the request. // - // state - The state of the Spot instance request (open | active | closed - // | cancelled | failed). Spot bid status information can help you track your - // Amazon EC2 Spot instance requests. For more information, see Spot Bid Status - // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html) - // in the Amazon Elastic Compute Cloud User Guide. + // * state - The state of the Spot instance request (open | active | closed + // | cancelled | failed). Spot bid status information can help you track + // your Amazon EC2 Spot instance requests. For more information, see Spot + // Bid Status (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html) + // in the Amazon Elastic Compute Cloud User Guide. // - // status-code - The short code describing the most recent evaluation of - // your Spot instance request. + // * status-code - The short code describing the most recent evaluation of + // your Spot instance request. // - // status-message - The message explaining the status of the Spot instance - // request. + // * status-message - The message explaining the status of the Spot instance + // request. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // type - The type of Spot instance request (one-time | persistent). + // * type - The type of Spot instance request (one-time | persistent). // - // launched-availability-zone - The Availability Zone in which the bid is - // launched. + // * launched-availability-zone - The Availability Zone in which the bid + // is launched. // - // valid-from - The start date of the request. + // * valid-from - The start date of the request. // - // valid-until - The end date of the request. + // * valid-until - The end date of the request. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more Spot instance request IDs. @@ -23911,7 +30350,26 @@ func (s DescribeSpotInstanceRequestsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeSpotInstanceRequestsInput) SetDryRun(v bool) *DescribeSpotInstanceRequestsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeSpotInstanceRequestsInput) SetFilters(v []*Filter) *DescribeSpotInstanceRequestsInput { + s.Filters = v + return s +} + +// SetSpotInstanceRequestIds sets the SpotInstanceRequestIds field's value. +func (s *DescribeSpotInstanceRequestsInput) SetSpotInstanceRequestIds(v []*string) *DescribeSpotInstanceRequestsInput { + s.SpotInstanceRequestIds = v + return s +} + // Contains the output of DescribeSpotInstanceRequests. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotInstanceRequestsResult type DescribeSpotInstanceRequestsOutput struct { _ struct{} `type:"structure"` @@ -23929,7 +30387,14 @@ func (s DescribeSpotInstanceRequestsOutput) GoString() string { return s.String() } +// SetSpotInstanceRequests sets the SpotInstanceRequests field's value. +func (s *DescribeSpotInstanceRequestsOutput) SetSpotInstanceRequests(v []*SpotInstanceRequest) *DescribeSpotInstanceRequestsOutput { + s.SpotInstanceRequests = v + return s +} + // Contains the parameters for DescribeSpotPriceHistory. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotPriceHistoryRequest type DescribeSpotPriceHistoryInput struct { _ struct{} `type:"structure"` @@ -23948,24 +30413,25 @@ type DescribeSpotPriceHistoryInput struct { // One or more filters. // - // availability-zone - The Availability Zone for which prices should be - // returned. + // * availability-zone - The Availability Zone for which prices should be + // returned. // - // instance-type - The type of instance (for example, m3.medium). + // * instance-type - The type of instance (for example, m3.medium). // - // product-description - The product description for the Spot price (Linux/UNIX - // | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | SUSE Linux (Amazon VPC) - // | Windows (Amazon VPC)). + // * product-description - The product description for the Spot price (Linux/UNIX + // | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | SUSE Linux (Amazon + // VPC) | Windows (Amazon VPC)). // - // spot-price - The Spot price. The value must match exactly (or use wildcards; - // greater than or less than comparison is not supported). + // * spot-price - The Spot price. The value must match exactly (or use wildcards; + // greater than or less than comparison is not supported). // - // timestamp - The timestamp of the Spot price history, in UTC format (for - // example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater - // than or less than comparison is not supported. + // * timestamp - The timestamp of the Spot price history, in UTC format (for + // example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater + // than or less than comparison is not supported. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` - // Filters the results by the specified instance types. + // Filters the results by the specified instance types. Note that T2 and HS1 + // instance types are not supported. InstanceTypes []*string `locationName:"InstanceType" type:"list"` // The maximum number of results to return in a single call. Specify a value @@ -23994,7 +30460,62 @@ func (s DescribeSpotPriceHistoryInput) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *DescribeSpotPriceHistoryInput) SetAvailabilityZone(v string) *DescribeSpotPriceHistoryInput { + s.AvailabilityZone = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeSpotPriceHistoryInput) SetDryRun(v bool) *DescribeSpotPriceHistoryInput { + s.DryRun = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *DescribeSpotPriceHistoryInput) SetEndTime(v time.Time) *DescribeSpotPriceHistoryInput { + s.EndTime = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeSpotPriceHistoryInput) SetFilters(v []*Filter) *DescribeSpotPriceHistoryInput { + s.Filters = v + return s +} + +// SetInstanceTypes sets the InstanceTypes field's value. +func (s *DescribeSpotPriceHistoryInput) SetInstanceTypes(v []*string) *DescribeSpotPriceHistoryInput { + s.InstanceTypes = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeSpotPriceHistoryInput) SetMaxResults(v int64) *DescribeSpotPriceHistoryInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSpotPriceHistoryInput) SetNextToken(v string) *DescribeSpotPriceHistoryInput { + s.NextToken = &v + return s +} + +// SetProductDescriptions sets the ProductDescriptions field's value. +func (s *DescribeSpotPriceHistoryInput) SetProductDescriptions(v []*string) *DescribeSpotPriceHistoryInput { + s.ProductDescriptions = v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeSpotPriceHistoryInput) SetStartTime(v time.Time) *DescribeSpotPriceHistoryInput { + s.StartTime = &v + return s +} + // Contains the output of DescribeSpotPriceHistory. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotPriceHistoryResult type DescribeSpotPriceHistoryOutput struct { _ struct{} `type:"structure"` @@ -24016,6 +30537,19 @@ func (s DescribeSpotPriceHistoryOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeSpotPriceHistoryOutput) SetNextToken(v string) *DescribeSpotPriceHistoryOutput { + s.NextToken = &v + return s +} + +// SetSpotPriceHistory sets the SpotPriceHistory field's value. +func (s *DescribeSpotPriceHistoryOutput) SetSpotPriceHistory(v []*SpotPrice) *DescribeSpotPriceHistoryOutput { + s.SpotPriceHistory = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeStaleSecurityGroupsRequest type DescribeStaleSecurityGroupsInput struct { _ struct{} `type:"structure"` @@ -24069,6 +30603,31 @@ func (s *DescribeStaleSecurityGroupsInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DescribeStaleSecurityGroupsInput) SetDryRun(v bool) *DescribeStaleSecurityGroupsInput { + s.DryRun = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeStaleSecurityGroupsInput) SetMaxResults(v int64) *DescribeStaleSecurityGroupsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeStaleSecurityGroupsInput) SetNextToken(v string) *DescribeStaleSecurityGroupsInput { + s.NextToken = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DescribeStaleSecurityGroupsInput) SetVpcId(v string) *DescribeStaleSecurityGroupsInput { + s.VpcId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeStaleSecurityGroupsResult type DescribeStaleSecurityGroupsOutput struct { _ struct{} `type:"structure"` @@ -24090,7 +30649,20 @@ func (s DescribeStaleSecurityGroupsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeStaleSecurityGroupsOutput) SetNextToken(v string) *DescribeStaleSecurityGroupsOutput { + s.NextToken = &v + return s +} + +// SetStaleSecurityGroupSet sets the StaleSecurityGroupSet field's value. +func (s *DescribeStaleSecurityGroupsOutput) SetStaleSecurityGroupSet(v []*StaleSecurityGroup) *DescribeStaleSecurityGroupsOutput { + s.StaleSecurityGroupSet = v + return s +} + // Contains the parameters for DescribeSubnets. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSubnetsRequest type DescribeSubnetsInput struct { _ struct{} `type:"structure"` @@ -24102,36 +30674,49 @@ type DescribeSubnetsInput struct { // One or more filters. // - // availabilityZone - The Availability Zone for the subnet. You can also - // use availability-zone as the filter name. + // * availabilityZone - The Availability Zone for the subnet. You can also + // use availability-zone as the filter name. // - // available-ip-address-count - The number of IP addresses in the subnet - // that are available. + // * available-ip-address-count - The number of IPv4 addresses in the subnet + // that are available. // - // cidrBlock - The CIDR block of the subnet. The CIDR block you specify - // must exactly match the subnet's CIDR block for information to be returned - // for the subnet. You can also use cidr or cidr-block as the filter names. + // * cidrBlock - The IPv4 CIDR block of the subnet. The CIDR block you specify + // must exactly match the subnet's CIDR block for information to be returned + // for the subnet. You can also use cidr or cidr-block as the filter names. // - // defaultForAz - Indicates whether this is the default subnet for the Availability - // Zone. You can also use default-for-az as the filter name. + // * defaultForAz - Indicates whether this is the default subnet for the + // Availability Zone. You can also use default-for-az as the filter name. // - // state - The state of the subnet (pending | available). + // * ipv6-cidr-block-association.ipv6-cidr-block - An IPv6 CIDR block associated + // with the subnet. // - // subnet-id - The ID of the subnet. + // * ipv6-cidr-block-association.association-id - An association ID for an + // IPv6 CIDR block associated with the subnet. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * ipv6-cidr-block-association.state - The state of an IPv6 CIDR block + // associated with the subnet. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * state - The state of the subnet (pending | available). // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * subnet-id - The ID of the subnet. // - // vpc-id - The ID of the VPC for the subnet. + // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. + // + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. + // + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. + // + // * vpc-id - The ID of the VPC for the subnet. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more subnet IDs. @@ -24150,7 +30735,26 @@ func (s DescribeSubnetsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeSubnetsInput) SetDryRun(v bool) *DescribeSubnetsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeSubnetsInput) SetFilters(v []*Filter) *DescribeSubnetsInput { + s.Filters = v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *DescribeSubnetsInput) SetSubnetIds(v []*string) *DescribeSubnetsInput { + s.SubnetIds = v + return s +} + // Contains the output of DescribeSubnets. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSubnetsResult type DescribeSubnetsOutput struct { _ struct{} `type:"structure"` @@ -24168,7 +30772,14 @@ func (s DescribeSubnetsOutput) GoString() string { return s.String() } +// SetSubnets sets the Subnets field's value. +func (s *DescribeSubnetsOutput) SetSubnets(v []*Subnet) *DescribeSubnetsOutput { + s.Subnets = v + return s +} + // Contains the parameters for DescribeTags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTagsRequest type DescribeTagsInput struct { _ struct{} `type:"structure"` @@ -24180,16 +30791,16 @@ type DescribeTagsInput struct { // One or more filters. // - // key - The tag key. + // * key - The tag key. // - // resource-id - The resource ID. + // * resource-id - The resource ID. // - // resource-type - The resource type (customer-gateway | dhcp-options | - // image | instance | internet-gateway | network-acl | network-interface | reserved-instances - // | route-table | security-group | snapshot | spot-instances-request | subnet - // | volume | vpc | vpn-connection | vpn-gateway). + // * resource-type - The resource type (customer-gateway | dhcp-options | + // image | instance | internet-gateway | network-acl | network-interface + // | reserved-instances | route-table | security-group | snapshot | spot-instances-request + // | subnet | volume | vpc | vpn-connection | vpn-gateway). // - // value - The tag value. + // * value - The tag value. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The maximum number of results to return in a single call. This value can @@ -24211,7 +30822,32 @@ func (s DescribeTagsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeTagsInput) SetDryRun(v bool) *DescribeTagsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeTagsInput) SetFilters(v []*Filter) *DescribeTagsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeTagsInput) SetMaxResults(v int64) *DescribeTagsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeTagsInput) SetNextToken(v string) *DescribeTagsInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeTags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTagsResult type DescribeTagsOutput struct { _ struct{} `type:"structure"` @@ -24233,7 +30869,20 @@ func (s DescribeTagsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeTagsOutput) SetNextToken(v string) *DescribeTagsOutput { + s.NextToken = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *DescribeTagsOutput) SetTags(v []*TagDescription) *DescribeTagsOutput { + s.Tags = v + return s +} + // Contains the parameters for DescribeVolumeAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeAttributeRequest type DescribeVolumeAttributeInput struct { _ struct{} `type:"structure"` @@ -24275,7 +30924,26 @@ func (s *DescribeVolumeAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *DescribeVolumeAttributeInput) SetAttribute(v string) *DescribeVolumeAttributeInput { + s.Attribute = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeVolumeAttributeInput) SetDryRun(v bool) *DescribeVolumeAttributeInput { + s.DryRun = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *DescribeVolumeAttributeInput) SetVolumeId(v string) *DescribeVolumeAttributeInput { + s.VolumeId = &v + return s +} + // Contains the output of DescribeVolumeAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeAttributeResult type DescribeVolumeAttributeOutput struct { _ struct{} `type:"structure"` @@ -24299,7 +30967,26 @@ func (s DescribeVolumeAttributeOutput) GoString() string { return s.String() } +// SetAutoEnableIO sets the AutoEnableIO field's value. +func (s *DescribeVolumeAttributeOutput) SetAutoEnableIO(v *AttributeBooleanValue) *DescribeVolumeAttributeOutput { + s.AutoEnableIO = v + return s +} + +// SetProductCodes sets the ProductCodes field's value. +func (s *DescribeVolumeAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeVolumeAttributeOutput { + s.ProductCodes = v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *DescribeVolumeAttributeOutput) SetVolumeId(v string) *DescribeVolumeAttributeOutput { + s.VolumeId = &v + return s +} + // Contains the parameters for DescribeVolumeStatus. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeStatusRequest type DescribeVolumeStatusInput struct { _ struct{} `type:"structure"` @@ -24311,35 +30998,35 @@ type DescribeVolumeStatusInput struct { // One or more filters. // - // action.code - The action code for the event (for example, enable-volume-io). + // * action.code - The action code for the event (for example, enable-volume-io). // - // action.description - A description of the action. + // * action.description - A description of the action. // - // action.event-id - The event ID associated with the action. + // * action.event-id - The event ID associated with the action. // - // availability-zone - The Availability Zone of the instance. + // * availability-zone - The Availability Zone of the instance. // - // event.description - A description of the event. + // * event.description - A description of the event. // - // event.event-id - The event ID. + // * event.event-id - The event ID. // - // event.event-type - The event type (for io-enabled: passed | failed; for - // io-performance: io-performance:degraded | io-performance:severely-degraded - // | io-performance:stalled). + // * event.event-type - The event type (for io-enabled: passed | failed; + // for io-performance: io-performance:degraded | io-performance:severely-degraded + // | io-performance:stalled). // - // event.not-after - The latest end time for the event. + // * event.not-after - The latest end time for the event. // - // event.not-before - The earliest start time for the event. + // * event.not-before - The earliest start time for the event. // - // volume-status.details-name - The cause for volume-status.status (io-enabled - // | io-performance). + // * volume-status.details-name - The cause for volume-status.status (io-enabled + // | io-performance). // - // volume-status.details-status - The status of volume-status.details-name - // (for io-enabled: passed | failed; for io-performance: normal | degraded | - // severely-degraded | stalled). + // * volume-status.details-status - The status of volume-status.details-name + // (for io-enabled: passed | failed; for io-performance: normal | degraded + // | severely-degraded | stalled). // - // volume-status.status - The status of the volume (ok | impaired | warning - // | insufficient-data). + // * volume-status.status - The status of the volume (ok | impaired | warning + // | insufficient-data). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The maximum number of volume results returned by DescribeVolumeStatus in @@ -24374,7 +31061,38 @@ func (s DescribeVolumeStatusInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeVolumeStatusInput) SetDryRun(v bool) *DescribeVolumeStatusInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVolumeStatusInput) SetFilters(v []*Filter) *DescribeVolumeStatusInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeVolumeStatusInput) SetMaxResults(v int64) *DescribeVolumeStatusInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVolumeStatusInput) SetNextToken(v string) *DescribeVolumeStatusInput { + s.NextToken = &v + return s +} + +// SetVolumeIds sets the VolumeIds field's value. +func (s *DescribeVolumeStatusInput) SetVolumeIds(v []*string) *DescribeVolumeStatusInput { + s.VolumeIds = v + return s +} + // Contains the output of DescribeVolumeStatus. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeStatusResult type DescribeVolumeStatusOutput struct { _ struct{} `type:"structure"` @@ -24396,7 +31114,20 @@ func (s DescribeVolumeStatusOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeVolumeStatusOutput) SetNextToken(v string) *DescribeVolumeStatusOutput { + s.NextToken = &v + return s +} + +// SetVolumeStatuses sets the VolumeStatuses field's value. +func (s *DescribeVolumeStatusOutput) SetVolumeStatuses(v []*VolumeStatusItem) *DescribeVolumeStatusOutput { + s.VolumeStatuses = v + return s +} + // Contains the parameters for DescribeVolumes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesRequest type DescribeVolumesInput struct { _ struct{} `type:"structure"` @@ -24408,50 +31139,54 @@ type DescribeVolumesInput struct { // One or more filters. // - // attachment.attach-time - The time stamp when the attachment initiated. + // * attachment.attach-time - The time stamp when the attachment initiated. // - // attachment.delete-on-termination - Whether the volume is deleted on instance - // termination. + // * attachment.delete-on-termination - Whether the volume is deleted on + // instance termination. // - // attachment.device - The device name that is exposed to the instance (for - // example, /dev/sda1). + // * attachment.device - The device name that is exposed to the instance + // (for example, /dev/sda1). // - // attachment.instance-id - The ID of the instance the volume is attached - // to. + // * attachment.instance-id - The ID of the instance the volume is attached + // to. // - // attachment.status - The attachment state (attaching | attached | detaching - // | detached). + // * attachment.status - The attachment state (attaching | attached | detaching + // | detached). // - // availability-zone - The Availability Zone in which the volume was created. + // * availability-zone - The Availability Zone in which the volume was created. // - // create-time - The time stamp when the volume was created. + // * create-time - The time stamp when the volume was created. // - // encrypted - The encryption status of the volume. + // * encrypted - The encryption status of the volume. // - // size - The size of the volume, in GiB. + // * size - The size of the volume, in GiB. // - // snapshot-id - The snapshot from which the volume was created. + // * snapshot-id - The snapshot from which the volume was created. // - // status - The status of the volume (creating | available | in-use | deleting - // | deleted | error). + // * status - The status of the volume (creating | available | in-use | deleting + // | deleted | error). // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // volume-id - The volume ID. + // * volume-id - The volume ID. // - // volume-type - The Amazon EBS volume type. This can be gp2 for General - // Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput Optimized HDD, - // sc1 for Cold HDD, or standard for Magnetic volumes. + // * volume-type - The Amazon EBS volume type. This can be gp2 for General + // Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput Optimized + // HDD, sc1 for Cold HDD, or standard for Magnetic volumes. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The maximum number of volume results returned by DescribeVolumes in paginated @@ -24459,10 +31194,10 @@ type DescribeVolumesInput struct { // results in a single page along with a NextToken response element. The remaining // results of the initial request can be seen by sending another DescribeVolumes // request with the returned NextToken value. This value can be between 5 and - // 1000; if MaxResults is given a value larger than 1000, only 1000 results - // are returned. If this parameter is not used, then DescribeVolumes returns - // all results. You cannot specify this parameter and the volume IDs parameter - // in the same request. + // 500; if MaxResults is given a value larger than 500, only 500 results are + // returned. If this parameter is not used, then DescribeVolumes returns all + // results. You cannot specify this parameter and the volume IDs parameter in + // the same request. MaxResults *int64 `locationName:"maxResults" type:"integer"` // The NextToken value returned from a previous paginated DescribeVolumes request @@ -24485,7 +31220,137 @@ func (s DescribeVolumesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeVolumesInput) SetDryRun(v bool) *DescribeVolumesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVolumesInput) SetFilters(v []*Filter) *DescribeVolumesInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeVolumesInput) SetMaxResults(v int64) *DescribeVolumesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVolumesInput) SetNextToken(v string) *DescribeVolumesInput { + s.NextToken = &v + return s +} + +// SetVolumeIds sets the VolumeIds field's value. +func (s *DescribeVolumesInput) SetVolumeIds(v []*string) *DescribeVolumesInput { + s.VolumeIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesModificationsRequest +type DescribeVolumesModificationsInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // One or more filters. Supported filters: volume-id, modification-state, target-size, + // target-iops, target-volume-type, original-size, original-iops, original-volume-type, + // start-time. + Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + + // The maximum number of results (up to a limit of 500) to be returned in a + // paginated request. + MaxResults *int64 `type:"integer"` + + // The nextToken value returned by a previous paginated request. + NextToken *string `type:"string"` + + // One or more volume IDs for which in-progress modifications will be described. + VolumeIds []*string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"` +} + +// String returns the string representation +func (s DescribeVolumesModificationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeVolumesModificationsInput) GoString() string { + return s.String() +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeVolumesModificationsInput) SetDryRun(v bool) *DescribeVolumesModificationsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVolumesModificationsInput) SetFilters(v []*Filter) *DescribeVolumesModificationsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeVolumesModificationsInput) SetMaxResults(v int64) *DescribeVolumesModificationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVolumesModificationsInput) SetNextToken(v string) *DescribeVolumesModificationsInput { + s.NextToken = &v + return s +} + +// SetVolumeIds sets the VolumeIds field's value. +func (s *DescribeVolumesModificationsInput) SetVolumeIds(v []*string) *DescribeVolumesModificationsInput { + s.VolumeIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesModificationsResult +type DescribeVolumesModificationsOutput struct { + _ struct{} `type:"structure"` + + // Token for pagination, null if there are no more results + NextToken *string `locationName:"nextToken" type:"string"` + + // A list of returned VolumeModification objects. + VolumesModifications []*VolumeModification `locationName:"volumeModificationSet" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s DescribeVolumesModificationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeVolumesModificationsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVolumesModificationsOutput) SetNextToken(v string) *DescribeVolumesModificationsOutput { + s.NextToken = &v + return s +} + +// SetVolumesModifications sets the VolumesModifications field's value. +func (s *DescribeVolumesModificationsOutput) SetVolumesModifications(v []*VolumeModification) *DescribeVolumesModificationsOutput { + s.VolumesModifications = v + return s +} + // Contains the output of DescribeVolumes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesResult type DescribeVolumesOutput struct { _ struct{} `type:"structure"` @@ -24509,7 +31374,20 @@ func (s DescribeVolumesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeVolumesOutput) SetNextToken(v string) *DescribeVolumesOutput { + s.NextToken = &v + return s +} + +// SetVolumes sets the Volumes field's value. +func (s *DescribeVolumesOutput) SetVolumes(v []*Volume) *DescribeVolumesOutput { + s.Volumes = v + return s +} + // Contains the parameters for DescribeVpcAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttributeRequest type DescribeVpcAttributeInput struct { _ struct{} `type:"structure"` @@ -24556,7 +31434,26 @@ func (s *DescribeVpcAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *DescribeVpcAttributeInput) SetAttribute(v string) *DescribeVpcAttributeInput { + s.Attribute = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeVpcAttributeInput) SetDryRun(v bool) *DescribeVpcAttributeInput { + s.DryRun = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DescribeVpcAttributeInput) SetVpcId(v string) *DescribeVpcAttributeInput { + s.VpcId = &v + return s +} + // Contains the output of DescribeVpcAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttributeResult type DescribeVpcAttributeOutput struct { _ struct{} `type:"structure"` @@ -24584,7 +31481,26 @@ func (s DescribeVpcAttributeOutput) GoString() string { return s.String() } +// SetEnableDnsHostnames sets the EnableDnsHostnames field's value. +func (s *DescribeVpcAttributeOutput) SetEnableDnsHostnames(v *AttributeBooleanValue) *DescribeVpcAttributeOutput { + s.EnableDnsHostnames = v + return s +} + +// SetEnableDnsSupport sets the EnableDnsSupport field's value. +func (s *DescribeVpcAttributeOutput) SetEnableDnsSupport(v *AttributeBooleanValue) *DescribeVpcAttributeOutput { + s.EnableDnsSupport = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DescribeVpcAttributeOutput) SetVpcId(v string) *DescribeVpcAttributeOutput { + s.VpcId = &v + return s +} + // Contains the parameters for DescribeVpcClassicLinkDnsSupport. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkDnsSupportRequest type DescribeVpcClassicLinkDnsSupportInput struct { _ struct{} `type:"structure"` @@ -24627,7 +31543,26 @@ func (s *DescribeVpcClassicLinkDnsSupportInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeVpcClassicLinkDnsSupportInput) SetMaxResults(v int64) *DescribeVpcClassicLinkDnsSupportInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVpcClassicLinkDnsSupportInput) SetNextToken(v string) *DescribeVpcClassicLinkDnsSupportInput { + s.NextToken = &v + return s +} + +// SetVpcIds sets the VpcIds field's value. +func (s *DescribeVpcClassicLinkDnsSupportInput) SetVpcIds(v []*string) *DescribeVpcClassicLinkDnsSupportInput { + s.VpcIds = v + return s +} + // Contains the output of DescribeVpcClassicLinkDnsSupport. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkDnsSupportResult type DescribeVpcClassicLinkDnsSupportOutput struct { _ struct{} `type:"structure"` @@ -24648,7 +31583,20 @@ func (s DescribeVpcClassicLinkDnsSupportOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeVpcClassicLinkDnsSupportOutput) SetNextToken(v string) *DescribeVpcClassicLinkDnsSupportOutput { + s.NextToken = &v + return s +} + +// SetVpcs sets the Vpcs field's value. +func (s *DescribeVpcClassicLinkDnsSupportOutput) SetVpcs(v []*ClassicLinkDnsSupport) *DescribeVpcClassicLinkDnsSupportOutput { + s.Vpcs = v + return s +} + // Contains the parameters for DescribeVpcClassicLink. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkRequest type DescribeVpcClassicLinkInput struct { _ struct{} `type:"structure"` @@ -24660,20 +31608,24 @@ type DescribeVpcClassicLinkInput struct { // One or more filters. // - // is-classic-link-enabled - Whether the VPC is enabled for ClassicLink - // (true | false). + // * is-classic-link-enabled - Whether the VPC is enabled for ClassicLink + // (true | false). // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more VPCs for which you want to describe the ClassicLink status. @@ -24690,7 +31642,26 @@ func (s DescribeVpcClassicLinkInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeVpcClassicLinkInput) SetDryRun(v bool) *DescribeVpcClassicLinkInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVpcClassicLinkInput) SetFilters(v []*Filter) *DescribeVpcClassicLinkInput { + s.Filters = v + return s +} + +// SetVpcIds sets the VpcIds field's value. +func (s *DescribeVpcClassicLinkInput) SetVpcIds(v []*string) *DescribeVpcClassicLinkInput { + s.VpcIds = v + return s +} + // Contains the output of DescribeVpcClassicLink. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkResult type DescribeVpcClassicLinkOutput struct { _ struct{} `type:"structure"` @@ -24708,7 +31679,14 @@ func (s DescribeVpcClassicLinkOutput) GoString() string { return s.String() } +// SetVpcs sets the Vpcs field's value. +func (s *DescribeVpcClassicLinkOutput) SetVpcs(v []*VpcClassicLink) *DescribeVpcClassicLinkOutput { + s.Vpcs = v + return s +} + // Contains the parameters for DescribeVpcEndpointServices. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicesRequest type DescribeVpcEndpointServicesInput struct { _ struct{} `type:"structure"` @@ -24740,7 +31718,26 @@ func (s DescribeVpcEndpointServicesInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeVpcEndpointServicesInput) SetDryRun(v bool) *DescribeVpcEndpointServicesInput { + s.DryRun = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeVpcEndpointServicesInput) SetMaxResults(v int64) *DescribeVpcEndpointServicesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVpcEndpointServicesInput) SetNextToken(v string) *DescribeVpcEndpointServicesInput { + s.NextToken = &v + return s +} + // Contains the output of DescribeVpcEndpointServices. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicesResult type DescribeVpcEndpointServicesOutput struct { _ struct{} `type:"structure"` @@ -24762,7 +31759,20 @@ func (s DescribeVpcEndpointServicesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeVpcEndpointServicesOutput) SetNextToken(v string) *DescribeVpcEndpointServicesOutput { + s.NextToken = &v + return s +} + +// SetServiceNames sets the ServiceNames field's value. +func (s *DescribeVpcEndpointServicesOutput) SetServiceNames(v []*string) *DescribeVpcEndpointServicesOutput { + s.ServiceNames = v + return s +} + // Contains the parameters for DescribeVpcEndpoints. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointsRequest type DescribeVpcEndpointsInput struct { _ struct{} `type:"structure"` @@ -24774,14 +31784,14 @@ type DescribeVpcEndpointsInput struct { // One or more filters. // - // service-name: The name of the AWS service. + // * service-name: The name of the AWS service. // - // vpc-id: The ID of the VPC in which the endpoint resides. + // * vpc-id: The ID of the VPC in which the endpoint resides. // - // vpc-endpoint-id: The ID of the endpoint. + // * vpc-endpoint-id: The ID of the endpoint. // - // vpc-endpoint-state: The state of the endpoint. (pending | available | - // deleting | deleted) + // * vpc-endpoint-state: The state of the endpoint. (pending | available + // | deleting | deleted) Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The maximum number of items to return for this request. The request returns @@ -24809,7 +31819,38 @@ func (s DescribeVpcEndpointsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeVpcEndpointsInput) SetDryRun(v bool) *DescribeVpcEndpointsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVpcEndpointsInput) SetFilters(v []*Filter) *DescribeVpcEndpointsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeVpcEndpointsInput) SetMaxResults(v int64) *DescribeVpcEndpointsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVpcEndpointsInput) SetNextToken(v string) *DescribeVpcEndpointsInput { + s.NextToken = &v + return s +} + +// SetVpcEndpointIds sets the VpcEndpointIds field's value. +func (s *DescribeVpcEndpointsInput) SetVpcEndpointIds(v []*string) *DescribeVpcEndpointsInput { + s.VpcEndpointIds = v + return s +} + // Contains the output of DescribeVpcEndpoints. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointsResult type DescribeVpcEndpointsOutput struct { _ struct{} `type:"structure"` @@ -24831,7 +31872,20 @@ func (s DescribeVpcEndpointsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeVpcEndpointsOutput) SetNextToken(v string) *DescribeVpcEndpointsOutput { + s.NextToken = &v + return s +} + +// SetVpcEndpoints sets the VpcEndpoints field's value. +func (s *DescribeVpcEndpointsOutput) SetVpcEndpoints(v []*VpcEndpoint) *DescribeVpcEndpointsOutput { + s.VpcEndpoints = v + return s +} + // Contains the parameters for DescribeVpcPeeringConnections. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcPeeringConnectionsRequest type DescribeVpcPeeringConnectionsInput struct { _ struct{} `type:"structure"` @@ -24843,41 +31897,46 @@ type DescribeVpcPeeringConnectionsInput struct { // One or more filters. // - // accepter-vpc-info.cidr-block - The CIDR block of the peer VPC. + // * accepter-vpc-info.cidr-block - The IPv4 CIDR block of the peer VPC. // - // accepter-vpc-info.owner-id - The AWS account ID of the owner of the peer - // VPC. + // * accepter-vpc-info.owner-id - The AWS account ID of the owner of the + // peer VPC. // - // accepter-vpc-info.vpc-id - The ID of the peer VPC. + // * accepter-vpc-info.vpc-id - The ID of the peer VPC. // - // expiration-time - The expiration date and time for the VPC peering connection. + // * expiration-time - The expiration date and time for the VPC peering connection. // - // requester-vpc-info.cidr-block - The CIDR block of the requester's VPC. + // * requester-vpc-info.cidr-block - The IPv4 CIDR block of the requester's + // VPC. // - // requester-vpc-info.owner-id - The AWS account ID of the owner of the - // requester VPC. + // * requester-vpc-info.owner-id - The AWS account ID of the owner of the + // requester VPC. // - // requester-vpc-info.vpc-id - The ID of the requester VPC. + // * requester-vpc-info.vpc-id - The ID of the requester VPC. // - // status-code - The status of the VPC peering connection (pending-acceptance - // | failed | expired | provisioning | active | deleted | rejected). + // * status-code - The status of the VPC peering connection (pending-acceptance + // | failed | expired | provisioning | active | deleted | rejected). // - // status-message - A message that provides more information about the status - // of the VPC peering connection, if applicable. + // * status-message - A message that provides more information about the + // status of the VPC peering connection, if applicable. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // vpc-peering-connection-id - The ID of the VPC peering connection. + // * vpc-peering-connection-id - The ID of the VPC peering connection. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more VPC peering connection IDs. @@ -24896,7 +31955,26 @@ func (s DescribeVpcPeeringConnectionsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeVpcPeeringConnectionsInput) SetDryRun(v bool) *DescribeVpcPeeringConnectionsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVpcPeeringConnectionsInput) SetFilters(v []*Filter) *DescribeVpcPeeringConnectionsInput { + s.Filters = v + return s +} + +// SetVpcPeeringConnectionIds sets the VpcPeeringConnectionIds field's value. +func (s *DescribeVpcPeeringConnectionsInput) SetVpcPeeringConnectionIds(v []*string) *DescribeVpcPeeringConnectionsInput { + s.VpcPeeringConnectionIds = v + return s +} + // Contains the output of DescribeVpcPeeringConnections. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcPeeringConnectionsResult type DescribeVpcPeeringConnectionsOutput struct { _ struct{} `type:"structure"` @@ -24914,7 +31992,14 @@ func (s DescribeVpcPeeringConnectionsOutput) GoString() string { return s.String() } +// SetVpcPeeringConnections sets the VpcPeeringConnections field's value. +func (s *DescribeVpcPeeringConnectionsOutput) SetVpcPeeringConnections(v []*VpcPeeringConnection) *DescribeVpcPeeringConnectionsOutput { + s.VpcPeeringConnections = v + return s +} + // Contains the parameters for DescribeVpcs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcsRequest type DescribeVpcsInput struct { _ struct{} `type:"structure"` @@ -24926,29 +32011,43 @@ type DescribeVpcsInput struct { // One or more filters. // - // cidr - The CIDR block of the VPC. The CIDR block you specify must exactly - // match the VPC's CIDR block for information to be returned for the VPC. Must - // contain the slash followed by one or two digits (for example, /28). + // * cidr - The IPv4 CIDR block of the VPC. The CIDR block you specify must + // exactly match the VPC's CIDR block for information to be returned for + // the VPC. Must contain the slash followed by one or two digits (for example, + // /28). + // + // * dhcp-options-id - The ID of a set of DHCP options. // - // dhcp-options-id - The ID of a set of DHCP options. + // * ipv6-cidr-block-association.ipv6-cidr-block - An IPv6 CIDR block associated + // with the VPC. // - // isDefault - Indicates whether the VPC is the default VPC. + // * ipv6-cidr-block-association.association-id - The association ID for + // an IPv6 CIDR block associated with the VPC. // - // state - The state of the VPC (pending | available). + // * ipv6-cidr-block-association.state - The state of an IPv6 CIDR block + // associated with the VPC. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * isDefault - Indicates whether the VPC is the default VPC. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * state - The state of the VPC (pending | available). // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // - // vpc-id - The ID of the VPC. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. + // + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. + // + // * vpc-id - The ID of the VPC. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more VPC IDs. @@ -24967,7 +32066,26 @@ func (s DescribeVpcsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeVpcsInput) SetDryRun(v bool) *DescribeVpcsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVpcsInput) SetFilters(v []*Filter) *DescribeVpcsInput { + s.Filters = v + return s +} + +// SetVpcIds sets the VpcIds field's value. +func (s *DescribeVpcsInput) SetVpcIds(v []*string) *DescribeVpcsInput { + s.VpcIds = v + return s +} + // Contains the output of DescribeVpcs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcsResult type DescribeVpcsOutput struct { _ struct{} `type:"structure"` @@ -24985,7 +32103,14 @@ func (s DescribeVpcsOutput) GoString() string { return s.String() } +// SetVpcs sets the Vpcs field's value. +func (s *DescribeVpcsOutput) SetVpcs(v []*Vpc) *DescribeVpcsOutput { + s.Vpcs = v + return s +} + // Contains the parameters for DescribeVpnConnections. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnConnectionsRequest type DescribeVpnConnectionsInput struct { _ struct{} `type:"structure"` @@ -24997,44 +32122,48 @@ type DescribeVpnConnectionsInput struct { // One or more filters. // - // customer-gateway-configuration - The configuration information for the - // customer gateway. + // * customer-gateway-configuration - The configuration information for the + // customer gateway. // - // customer-gateway-id - The ID of a customer gateway associated with the - // VPN connection. + // * customer-gateway-id - The ID of a customer gateway associated with the + // VPN connection. // - // state - The state of the VPN connection (pending | available | deleting - // | deleted). + // * state - The state of the VPN connection (pending | available | deleting + // | deleted). // - // option.static-routes-only - Indicates whether the connection has static - // routes only. Used for devices that do not support Border Gateway Protocol - // (BGP). + // * option.static-routes-only - Indicates whether the connection has static + // routes only. Used for devices that do not support Border Gateway Protocol + // (BGP). // - // route.destination-cidr-block - The destination CIDR block. This corresponds - // to the subnet used in a customer data center. + // * route.destination-cidr-block - The destination CIDR block. This corresponds + // to the subnet used in a customer data center. // - // bgp-asn - The BGP Autonomous System Number (ASN) associated with a BGP - // device. + // * bgp-asn - The BGP Autonomous System Number (ASN) associated with a BGP + // device. // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // type - The type of VPN connection. Currently the only supported type - // is ipsec.1. + // * type - The type of VPN connection. Currently the only supported type + // is ipsec.1. // - // vpn-connection-id - The ID of the VPN connection. + // * vpn-connection-id - The ID of the VPN connection. // - // vpn-gateway-id - The ID of a virtual private gateway associated with - // the VPN connection. + // * vpn-gateway-id - The ID of a virtual private gateway associated with + // the VPN connection. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more VPN connection IDs. @@ -25053,7 +32182,26 @@ func (s DescribeVpnConnectionsInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeVpnConnectionsInput) SetDryRun(v bool) *DescribeVpnConnectionsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVpnConnectionsInput) SetFilters(v []*Filter) *DescribeVpnConnectionsInput { + s.Filters = v + return s +} + +// SetVpnConnectionIds sets the VpnConnectionIds field's value. +func (s *DescribeVpnConnectionsInput) SetVpnConnectionIds(v []*string) *DescribeVpnConnectionsInput { + s.VpnConnectionIds = v + return s +} + // Contains the output of DescribeVpnConnections. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnConnectionsResult type DescribeVpnConnectionsOutput struct { _ struct{} `type:"structure"` @@ -25071,7 +32219,14 @@ func (s DescribeVpnConnectionsOutput) GoString() string { return s.String() } +// SetVpnConnections sets the VpnConnections field's value. +func (s *DescribeVpnConnectionsOutput) SetVpnConnections(v []*VpnConnection) *DescribeVpnConnectionsOutput { + s.VpnConnections = v + return s +} + // Contains the parameters for DescribeVpnGateways. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnGatewaysRequest type DescribeVpnGatewaysInput struct { _ struct{} `type:"structure"` @@ -25083,33 +32238,37 @@ type DescribeVpnGatewaysInput struct { // One or more filters. // - // attachment.state - The current state of the attachment between the gateway - // and the VPC (attaching | attached | detaching | detached). + // * attachment.state - The current state of the attachment between the gateway + // and the VPC (attaching | attached | detaching | detached). // - // attachment.vpc-id - The ID of an attached VPC. + // * attachment.vpc-id - The ID of an attached VPC. // - // availability-zone - The Availability Zone for the virtual private gateway - // (if applicable). + // * availability-zone - The Availability Zone for the virtual private gateway + // (if applicable). // - // state - The state of the virtual private gateway (pending | available - // | deleting | deleted). + // * state - The state of the virtual private gateway (pending | available + // | deleting | deleted). // - // tag:key=value - The key/value combination of a tag assigned to the resource. + // * tag:key=value - The key/value combination of a tag assigned to the resource. + // Specify the key of the tag in the filter name and the value of the tag + // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose + // for the filter name and X for the filter value. // - // tag-key - The key of a tag assigned to the resource. This filter is independent - // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" - // and the filter "tag-value=X", you get any resources assigned both the tag - // key Purpose (regardless of what the tag's value is), and the tag value X - // (regardless of what the tag's key is). If you want to list only resources - // where Purpose is X, see the tag:key=value filter. + // * tag-key - The key of a tag assigned to the resource. This filter is + // independent of the tag-value filter. For example, if you use both the + // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources + // assigned both the tag key Purpose (regardless of what the tag's value + // is), and the tag value X (regardless of what the tag's key is). If you + // want to list only resources where Purpose is X, see the tag:key=value + // filter. // - // tag-value - The value of a tag assigned to the resource. This filter - // is independent of the tag-key filter. + // * tag-value - The value of a tag assigned to the resource. This filter + // is independent of the tag-key filter. // - // type - The type of virtual private gateway. Currently the only supported - // type is ipsec.1. + // * type - The type of virtual private gateway. Currently the only supported + // type is ipsec.1. // - // vpn-gateway-id - The ID of the virtual private gateway. + // * vpn-gateway-id - The ID of the virtual private gateway. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // One or more virtual private gateway IDs. @@ -25128,7 +32287,26 @@ func (s DescribeVpnGatewaysInput) GoString() string { return s.String() } +// SetDryRun sets the DryRun field's value. +func (s *DescribeVpnGatewaysInput) SetDryRun(v bool) *DescribeVpnGatewaysInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeVpnGatewaysInput) SetFilters(v []*Filter) *DescribeVpnGatewaysInput { + s.Filters = v + return s +} + +// SetVpnGatewayIds sets the VpnGatewayIds field's value. +func (s *DescribeVpnGatewaysInput) SetVpnGatewayIds(v []*string) *DescribeVpnGatewaysInput { + s.VpnGatewayIds = v + return s +} + // Contains the output of DescribeVpnGateways. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnGatewaysResult type DescribeVpnGatewaysOutput struct { _ struct{} `type:"structure"` @@ -25146,7 +32324,14 @@ func (s DescribeVpnGatewaysOutput) GoString() string { return s.String() } +// SetVpnGateways sets the VpnGateways field's value. +func (s *DescribeVpnGatewaysOutput) SetVpnGateways(v []*VpnGateway) *DescribeVpnGatewaysOutput { + s.VpnGateways = v + return s +} + // Contains the parameters for DetachClassicLinkVpc. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachClassicLinkVpcRequest type DetachClassicLinkVpcInput struct { _ struct{} `type:"structure"` @@ -25193,7 +32378,26 @@ func (s *DetachClassicLinkVpcInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DetachClassicLinkVpcInput) SetDryRun(v bool) *DetachClassicLinkVpcInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DetachClassicLinkVpcInput) SetInstanceId(v string) *DetachClassicLinkVpcInput { + s.InstanceId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DetachClassicLinkVpcInput) SetVpcId(v string) *DetachClassicLinkVpcInput { + s.VpcId = &v + return s +} + // Contains the output of DetachClassicLinkVpc. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachClassicLinkVpcResult type DetachClassicLinkVpcOutput struct { _ struct{} `type:"structure"` @@ -25211,7 +32415,14 @@ func (s DetachClassicLinkVpcOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *DetachClassicLinkVpcOutput) SetReturn(v bool) *DetachClassicLinkVpcOutput { + s.Return = &v + return s +} + // Contains the parameters for DetachInternetGateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachInternetGatewayRequest type DetachInternetGatewayInput struct { _ struct{} `type:"structure"` @@ -25258,6 +32469,25 @@ func (s *DetachInternetGatewayInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DetachInternetGatewayInput) SetDryRun(v bool) *DetachInternetGatewayInput { + s.DryRun = &v + return s +} + +// SetInternetGatewayId sets the InternetGatewayId field's value. +func (s *DetachInternetGatewayInput) SetInternetGatewayId(v string) *DetachInternetGatewayInput { + s.InternetGatewayId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DetachInternetGatewayInput) SetVpcId(v string) *DetachInternetGatewayInput { + s.VpcId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachInternetGatewayOutput type DetachInternetGatewayOutput struct { _ struct{} `type:"structure"` } @@ -25273,6 +32503,7 @@ func (s DetachInternetGatewayOutput) GoString() string { } // Contains the parameters for DetachNetworkInterface. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachNetworkInterfaceRequest type DetachNetworkInterfaceInput struct { _ struct{} `type:"structure"` @@ -25314,6 +32545,25 @@ func (s *DetachNetworkInterfaceInput) Validate() error { return nil } +// SetAttachmentId sets the AttachmentId field's value. +func (s *DetachNetworkInterfaceInput) SetAttachmentId(v string) *DetachNetworkInterfaceInput { + s.AttachmentId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DetachNetworkInterfaceInput) SetDryRun(v bool) *DetachNetworkInterfaceInput { + s.DryRun = &v + return s +} + +// SetForce sets the Force field's value. +func (s *DetachNetworkInterfaceInput) SetForce(v bool) *DetachNetworkInterfaceInput { + s.Force = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachNetworkInterfaceOutput type DetachNetworkInterfaceOutput struct { _ struct{} `type:"structure"` } @@ -25329,6 +32579,7 @@ func (s DetachNetworkInterfaceOutput) GoString() string { } // Contains the parameters for DetachVolume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVolumeRequest type DetachVolumeInput struct { _ struct{} `type:"structure"` @@ -25382,7 +32633,38 @@ func (s *DetachVolumeInput) Validate() error { return nil } +// SetDevice sets the Device field's value. +func (s *DetachVolumeInput) SetDevice(v string) *DetachVolumeInput { + s.Device = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DetachVolumeInput) SetDryRun(v bool) *DetachVolumeInput { + s.DryRun = &v + return s +} + +// SetForce sets the Force field's value. +func (s *DetachVolumeInput) SetForce(v bool) *DetachVolumeInput { + s.Force = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DetachVolumeInput) SetInstanceId(v string) *DetachVolumeInput { + s.InstanceId = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *DetachVolumeInput) SetVolumeId(v string) *DetachVolumeInput { + s.VolumeId = &v + return s +} + // Contains the parameters for DetachVpnGateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVpnGatewayRequest type DetachVpnGatewayInput struct { _ struct{} `type:"structure"` @@ -25429,6 +32711,25 @@ func (s *DetachVpnGatewayInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DetachVpnGatewayInput) SetDryRun(v bool) *DetachVpnGatewayInput { + s.DryRun = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DetachVpnGatewayInput) SetVpcId(v string) *DetachVpnGatewayInput { + s.VpcId = &v + return s +} + +// SetVpnGatewayId sets the VpnGatewayId field's value. +func (s *DetachVpnGatewayInput) SetVpnGatewayId(v string) *DetachVpnGatewayInput { + s.VpnGatewayId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVpnGatewayOutput type DetachVpnGatewayOutput struct { _ struct{} `type:"structure"` } @@ -25444,6 +32745,7 @@ func (s DetachVpnGatewayOutput) GoString() string { } // Describes a DHCP configuration option. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DhcpConfiguration type DhcpConfiguration struct { _ struct{} `type:"structure"` @@ -25464,7 +32766,20 @@ func (s DhcpConfiguration) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *DhcpConfiguration) SetKey(v string) *DhcpConfiguration { + s.Key = &v + return s +} + +// SetValues sets the Values field's value. +func (s *DhcpConfiguration) SetValues(v []*AttributeValue) *DhcpConfiguration { + s.Values = v + return s +} + // Describes a set of DHCP options. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DhcpOptions type DhcpOptions struct { _ struct{} `type:"structure"` @@ -25488,7 +32803,26 @@ func (s DhcpOptions) GoString() string { return s.String() } +// SetDhcpConfigurations sets the DhcpConfigurations field's value. +func (s *DhcpOptions) SetDhcpConfigurations(v []*DhcpConfiguration) *DhcpOptions { + s.DhcpConfigurations = v + return s +} + +// SetDhcpOptionsId sets the DhcpOptionsId field's value. +func (s *DhcpOptions) SetDhcpOptionsId(v string) *DhcpOptions { + s.DhcpOptionsId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *DhcpOptions) SetTags(v []*Tag) *DhcpOptions { + s.Tags = v + return s +} + // Contains the parameters for DisableVgwRoutePropagation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVgwRoutePropagationRequest type DisableVgwRoutePropagationInput struct { _ struct{} `type:"structure"` @@ -25529,6 +32863,19 @@ func (s *DisableVgwRoutePropagationInput) Validate() error { return nil } +// SetGatewayId sets the GatewayId field's value. +func (s *DisableVgwRoutePropagationInput) SetGatewayId(v string) *DisableVgwRoutePropagationInput { + s.GatewayId = &v + return s +} + +// SetRouteTableId sets the RouteTableId field's value. +func (s *DisableVgwRoutePropagationInput) SetRouteTableId(v string) *DisableVgwRoutePropagationInput { + s.RouteTableId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVgwRoutePropagationOutput type DisableVgwRoutePropagationOutput struct { _ struct{} `type:"structure"` } @@ -25544,6 +32891,7 @@ func (s DisableVgwRoutePropagationOutput) GoString() string { } // Contains the parameters for DisableVpcClassicLinkDnsSupport. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkDnsSupportRequest type DisableVpcClassicLinkDnsSupportInput struct { _ struct{} `type:"structure"` @@ -25561,7 +32909,14 @@ func (s DisableVpcClassicLinkDnsSupportInput) GoString() string { return s.String() } +// SetVpcId sets the VpcId field's value. +func (s *DisableVpcClassicLinkDnsSupportInput) SetVpcId(v string) *DisableVpcClassicLinkDnsSupportInput { + s.VpcId = &v + return s +} + // Contains the output of DisableVpcClassicLinkDnsSupport. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkDnsSupportResult type DisableVpcClassicLinkDnsSupportOutput struct { _ struct{} `type:"structure"` @@ -25579,7 +32934,14 @@ func (s DisableVpcClassicLinkDnsSupportOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *DisableVpcClassicLinkDnsSupportOutput) SetReturn(v bool) *DisableVpcClassicLinkDnsSupportOutput { + s.Return = &v + return s +} + // Contains the parameters for DisableVpcClassicLink. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkRequest type DisableVpcClassicLinkInput struct { _ struct{} `type:"structure"` @@ -25618,7 +32980,20 @@ func (s *DisableVpcClassicLinkInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *DisableVpcClassicLinkInput) SetDryRun(v bool) *DisableVpcClassicLinkInput { + s.DryRun = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DisableVpcClassicLinkInput) SetVpcId(v string) *DisableVpcClassicLinkInput { + s.VpcId = &v + return s +} + // Contains the output of DisableVpcClassicLink. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkResult type DisableVpcClassicLinkOutput struct { _ struct{} `type:"structure"` @@ -25636,7 +33011,14 @@ func (s DisableVpcClassicLinkOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *DisableVpcClassicLinkOutput) SetReturn(v bool) *DisableVpcClassicLinkOutput { + s.Return = &v + return s +} + // Contains the parameters for DisassociateAddress. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateAddressRequest type DisassociateAddressInput struct { _ struct{} `type:"structure"` @@ -25663,6 +33045,25 @@ func (s DisassociateAddressInput) GoString() string { return s.String() } +// SetAssociationId sets the AssociationId field's value. +func (s *DisassociateAddressInput) SetAssociationId(v string) *DisassociateAddressInput { + s.AssociationId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DisassociateAddressInput) SetDryRun(v bool) *DisassociateAddressInput { + s.DryRun = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *DisassociateAddressInput) SetPublicIp(v string) *DisassociateAddressInput { + s.PublicIp = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateAddressOutput type DisassociateAddressOutput struct { _ struct{} `type:"structure"` } @@ -25677,7 +33078,71 @@ func (s DisassociateAddressOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateIamInstanceProfileRequest +type DisassociateIamInstanceProfileInput struct { + _ struct{} `type:"structure"` + + // The ID of the IAM instance profile association. + // + // AssociationId is a required field + AssociationId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateIamInstanceProfileInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateIamInstanceProfileInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateIamInstanceProfileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateIamInstanceProfileInput"} + if s.AssociationId == nil { + invalidParams.Add(request.NewErrParamRequired("AssociationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssociationId sets the AssociationId field's value. +func (s *DisassociateIamInstanceProfileInput) SetAssociationId(v string) *DisassociateIamInstanceProfileInput { + s.AssociationId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateIamInstanceProfileResult +type DisassociateIamInstanceProfileOutput struct { + _ struct{} `type:"structure"` + + // Information about the IAM instance profile association. + IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"` +} + +// String returns the string representation +func (s DisassociateIamInstanceProfileOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateIamInstanceProfileOutput) GoString() string { + return s.String() +} + +// SetIamInstanceProfileAssociation sets the IamInstanceProfileAssociation field's value. +func (s *DisassociateIamInstanceProfileOutput) SetIamInstanceProfileAssociation(v *IamInstanceProfileAssociation) *DisassociateIamInstanceProfileOutput { + s.IamInstanceProfileAssociation = v + return s +} + // Contains the parameters for DisassociateRouteTable. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateRouteTableRequest type DisassociateRouteTableInput struct { _ struct{} `type:"structure"` @@ -25717,6 +33182,19 @@ func (s *DisassociateRouteTableInput) Validate() error { return nil } +// SetAssociationId sets the AssociationId field's value. +func (s *DisassociateRouteTableInput) SetAssociationId(v string) *DisassociateRouteTableInput { + s.AssociationId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DisassociateRouteTableInput) SetDryRun(v bool) *DisassociateRouteTableInput { + s.DryRun = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateRouteTableOutput type DisassociateRouteTableOutput struct { _ struct{} `type:"structure"` } @@ -25731,7 +33209,152 @@ func (s DisassociateRouteTableOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateSubnetCidrBlockRequest +type DisassociateSubnetCidrBlockInput struct { + _ struct{} `type:"structure"` + + // The association ID for the CIDR block. + // + // AssociationId is a required field + AssociationId *string `locationName:"associationId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateSubnetCidrBlockInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateSubnetCidrBlockInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateSubnetCidrBlockInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateSubnetCidrBlockInput"} + if s.AssociationId == nil { + invalidParams.Add(request.NewErrParamRequired("AssociationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssociationId sets the AssociationId field's value. +func (s *DisassociateSubnetCidrBlockInput) SetAssociationId(v string) *DisassociateSubnetCidrBlockInput { + s.AssociationId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateSubnetCidrBlockResult +type DisassociateSubnetCidrBlockOutput struct { + _ struct{} `type:"structure"` + + // Information about the IPv6 CIDR block association. + Ipv6CidrBlockAssociation *SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"` + + // The ID of the subnet. + SubnetId *string `locationName:"subnetId" type:"string"` +} + +// String returns the string representation +func (s DisassociateSubnetCidrBlockOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateSubnetCidrBlockOutput) GoString() string { + return s.String() +} + +// SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value. +func (s *DisassociateSubnetCidrBlockOutput) SetIpv6CidrBlockAssociation(v *SubnetIpv6CidrBlockAssociation) *DisassociateSubnetCidrBlockOutput { + s.Ipv6CidrBlockAssociation = v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *DisassociateSubnetCidrBlockOutput) SetSubnetId(v string) *DisassociateSubnetCidrBlockOutput { + s.SubnetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateVpcCidrBlockRequest +type DisassociateVpcCidrBlockInput struct { + _ struct{} `type:"structure"` + + // The association ID for the CIDR block. + // + // AssociationId is a required field + AssociationId *string `locationName:"associationId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateVpcCidrBlockInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateVpcCidrBlockInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateVpcCidrBlockInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateVpcCidrBlockInput"} + if s.AssociationId == nil { + invalidParams.Add(request.NewErrParamRequired("AssociationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssociationId sets the AssociationId field's value. +func (s *DisassociateVpcCidrBlockInput) SetAssociationId(v string) *DisassociateVpcCidrBlockInput { + s.AssociationId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateVpcCidrBlockResult +type DisassociateVpcCidrBlockOutput struct { + _ struct{} `type:"structure"` + + // Information about the IPv6 CIDR block association. + Ipv6CidrBlockAssociation *VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"` + + // The ID of the VPC. + VpcId *string `locationName:"vpcId" type:"string"` +} + +// String returns the string representation +func (s DisassociateVpcCidrBlockOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateVpcCidrBlockOutput) GoString() string { + return s.String() +} + +// SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value. +func (s *DisassociateVpcCidrBlockOutput) SetIpv6CidrBlockAssociation(v *VpcIpv6CidrBlockAssociation) *DisassociateVpcCidrBlockOutput { + s.Ipv6CidrBlockAssociation = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DisassociateVpcCidrBlockOutput) SetVpcId(v string) *DisassociateVpcCidrBlockOutput { + s.VpcId = &v + return s +} + // Describes a disk image. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DiskImage type DiskImage struct { _ struct{} `type:"structure"` @@ -25775,7 +33398,26 @@ func (s *DiskImage) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *DiskImage) SetDescription(v string) *DiskImage { + s.Description = &v + return s +} + +// SetImage sets the Image field's value. +func (s *DiskImage) SetImage(v *DiskImageDetail) *DiskImage { + s.Image = v + return s +} + +// SetVolume sets the Volume field's value. +func (s *DiskImage) SetVolume(v *VolumeDetail) *DiskImage { + s.Volume = v + return s +} + // Describes a disk image. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DiskImageDescription type DiskImageDescription struct { _ struct{} `type:"structure"` @@ -25815,7 +33457,32 @@ func (s DiskImageDescription) GoString() string { return s.String() } +// SetChecksum sets the Checksum field's value. +func (s *DiskImageDescription) SetChecksum(v string) *DiskImageDescription { + s.Checksum = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *DiskImageDescription) SetFormat(v string) *DiskImageDescription { + s.Format = &v + return s +} + +// SetImportManifestUrl sets the ImportManifestUrl field's value. +func (s *DiskImageDescription) SetImportManifestUrl(v string) *DiskImageDescription { + s.ImportManifestUrl = &v + return s +} + +// SetSize sets the Size field's value. +func (s *DiskImageDescription) SetSize(v int64) *DiskImageDescription { + s.Size = &v + return s +} + // Describes a disk image. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DiskImageDetail type DiskImageDetail struct { _ struct{} `type:"structure"` @@ -25871,7 +33538,26 @@ func (s *DiskImageDetail) Validate() error { return nil } +// SetBytes sets the Bytes field's value. +func (s *DiskImageDetail) SetBytes(v int64) *DiskImageDetail { + s.Bytes = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *DiskImageDetail) SetFormat(v string) *DiskImageDetail { + s.Format = &v + return s +} + +// SetImportManifestUrl sets the ImportManifestUrl field's value. +func (s *DiskImageDetail) SetImportManifestUrl(v string) *DiskImageDetail { + s.ImportManifestUrl = &v + return s +} + // Describes a disk image volume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DiskImageVolumeDescription type DiskImageVolumeDescription struct { _ struct{} `type:"structure"` @@ -25894,7 +33580,20 @@ func (s DiskImageVolumeDescription) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *DiskImageVolumeDescription) SetId(v string) *DiskImageVolumeDescription { + s.Id = &v + return s +} + +// SetSize sets the Size field's value. +func (s *DiskImageVolumeDescription) SetSize(v int64) *DiskImageVolumeDescription { + s.Size = &v + return s +} + // Describes a block device for an EBS volume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EbsBlockDevice type EbsBlockDevice struct { _ struct{} `type:"structure"` @@ -25951,7 +33650,44 @@ func (s EbsBlockDevice) GoString() string { return s.String() } +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *EbsBlockDevice) SetDeleteOnTermination(v bool) *EbsBlockDevice { + s.DeleteOnTermination = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *EbsBlockDevice) SetEncrypted(v bool) *EbsBlockDevice { + s.Encrypted = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *EbsBlockDevice) SetIops(v int64) *EbsBlockDevice { + s.Iops = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *EbsBlockDevice) SetSnapshotId(v string) *EbsBlockDevice { + s.SnapshotId = &v + return s +} + +// SetVolumeSize sets the VolumeSize field's value. +func (s *EbsBlockDevice) SetVolumeSize(v int64) *EbsBlockDevice { + s.VolumeSize = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *EbsBlockDevice) SetVolumeType(v string) *EbsBlockDevice { + s.VolumeType = &v + return s +} + // Describes a parameter used to set up an EBS volume in a block device mapping. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EbsInstanceBlockDevice type EbsInstanceBlockDevice struct { _ struct{} `type:"structure"` @@ -25978,8 +33714,33 @@ func (s EbsInstanceBlockDevice) GoString() string { return s.String() } +// SetAttachTime sets the AttachTime field's value. +func (s *EbsInstanceBlockDevice) SetAttachTime(v time.Time) *EbsInstanceBlockDevice { + s.AttachTime = &v + return s +} + +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *EbsInstanceBlockDevice) SetDeleteOnTermination(v bool) *EbsInstanceBlockDevice { + s.DeleteOnTermination = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EbsInstanceBlockDevice) SetStatus(v string) *EbsInstanceBlockDevice { + s.Status = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *EbsInstanceBlockDevice) SetVolumeId(v string) *EbsInstanceBlockDevice { + s.VolumeId = &v + return s +} + // Describes information used to set up an EBS volume specified in a block device // mapping. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EbsInstanceBlockDeviceSpecification type EbsInstanceBlockDeviceSpecification struct { _ struct{} `type:"structure"` @@ -26000,7 +33761,54 @@ func (s EbsInstanceBlockDeviceSpecification) GoString() string { return s.String() } +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *EbsInstanceBlockDeviceSpecification) SetDeleteOnTermination(v bool) *EbsInstanceBlockDeviceSpecification { + s.DeleteOnTermination = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *EbsInstanceBlockDeviceSpecification) SetVolumeId(v string) *EbsInstanceBlockDeviceSpecification { + s.VolumeId = &v + return s +} + +// Describes an egress-only Internet gateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EgressOnlyInternetGateway +type EgressOnlyInternetGateway struct { + _ struct{} `type:"structure"` + + // Information about the attachment of the egress-only Internet gateway. + Attachments []*InternetGatewayAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"` + + // The ID of the egress-only Internet gateway. + EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"` +} + +// String returns the string representation +func (s EgressOnlyInternetGateway) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EgressOnlyInternetGateway) GoString() string { + return s.String() +} + +// SetAttachments sets the Attachments field's value. +func (s *EgressOnlyInternetGateway) SetAttachments(v []*InternetGatewayAttachment) *EgressOnlyInternetGateway { + s.Attachments = v + return s +} + +// SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value. +func (s *EgressOnlyInternetGateway) SetEgressOnlyInternetGatewayId(v string) *EgressOnlyInternetGateway { + s.EgressOnlyInternetGatewayId = &v + return s +} + // Contains the parameters for EnableVgwRoutePropagation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagationRequest type EnableVgwRoutePropagationInput struct { _ struct{} `type:"structure"` @@ -26041,6 +33849,19 @@ func (s *EnableVgwRoutePropagationInput) Validate() error { return nil } +// SetGatewayId sets the GatewayId field's value. +func (s *EnableVgwRoutePropagationInput) SetGatewayId(v string) *EnableVgwRoutePropagationInput { + s.GatewayId = &v + return s +} + +// SetRouteTableId sets the RouteTableId field's value. +func (s *EnableVgwRoutePropagationInput) SetRouteTableId(v string) *EnableVgwRoutePropagationInput { + s.RouteTableId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagationOutput type EnableVgwRoutePropagationOutput struct { _ struct{} `type:"structure"` } @@ -26056,6 +33877,7 @@ func (s EnableVgwRoutePropagationOutput) GoString() string { } // Contains the parameters for EnableVolumeIO. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVolumeIORequest type EnableVolumeIOInput struct { _ struct{} `type:"structure"` @@ -26094,6 +33916,19 @@ func (s *EnableVolumeIOInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *EnableVolumeIOInput) SetDryRun(v bool) *EnableVolumeIOInput { + s.DryRun = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *EnableVolumeIOInput) SetVolumeId(v string) *EnableVolumeIOInput { + s.VolumeId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVolumeIOOutput type EnableVolumeIOOutput struct { _ struct{} `type:"structure"` } @@ -26109,6 +33944,7 @@ func (s EnableVolumeIOOutput) GoString() string { } // Contains the parameters for EnableVpcClassicLinkDnsSupport. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkDnsSupportRequest type EnableVpcClassicLinkDnsSupportInput struct { _ struct{} `type:"structure"` @@ -26126,7 +33962,14 @@ func (s EnableVpcClassicLinkDnsSupportInput) GoString() string { return s.String() } +// SetVpcId sets the VpcId field's value. +func (s *EnableVpcClassicLinkDnsSupportInput) SetVpcId(v string) *EnableVpcClassicLinkDnsSupportInput { + s.VpcId = &v + return s +} + // Contains the output of EnableVpcClassicLinkDnsSupport. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkDnsSupportResult type EnableVpcClassicLinkDnsSupportOutput struct { _ struct{} `type:"structure"` @@ -26144,7 +33987,14 @@ func (s EnableVpcClassicLinkDnsSupportOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *EnableVpcClassicLinkDnsSupportOutput) SetReturn(v bool) *EnableVpcClassicLinkDnsSupportOutput { + s.Return = &v + return s +} + // Contains the parameters for EnableVpcClassicLink. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkRequest type EnableVpcClassicLinkInput struct { _ struct{} `type:"structure"` @@ -26183,7 +34033,20 @@ func (s *EnableVpcClassicLinkInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *EnableVpcClassicLinkInput) SetDryRun(v bool) *EnableVpcClassicLinkInput { + s.DryRun = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *EnableVpcClassicLinkInput) SetVpcId(v string) *EnableVpcClassicLinkInput { + s.VpcId = &v + return s +} + // Contains the output of EnableVpcClassicLink. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkResult type EnableVpcClassicLinkOutput struct { _ struct{} `type:"structure"` @@ -26201,7 +34064,14 @@ func (s EnableVpcClassicLinkOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *EnableVpcClassicLinkOutput) SetReturn(v bool) *EnableVpcClassicLinkOutput { + s.Return = &v + return s +} + // Describes a Spot fleet event. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EventInformation type EventInformation struct { _ struct{} `type:"structure"` @@ -26212,54 +34082,54 @@ type EventInformation struct { // // The following are the error events. // - // iamFleetRoleInvalid - The Spot fleet did not have the required permissions - // either to launch or terminate an instance. + // * iamFleetRoleInvalid - The Spot fleet did not have the required permissions + // either to launch or terminate an instance. // - // launchSpecTemporarilyBlacklisted - The configuration is not valid and - // several attempts to launch instances have failed. For more information, see - // the description of the event. + // * launchSpecTemporarilyBlacklisted - The configuration is not valid and + // several attempts to launch instances have failed. For more information, + // see the description of the event. // - // spotFleetRequestConfigurationInvalid - The configuration is not valid. - // For more information, see the description of the event. + // * spotFleetRequestConfigurationInvalid - The configuration is not valid. + // For more information, see the description of the event. // - // spotInstanceCountLimitExceeded - You've reached the limit on the number - // of Spot instances that you can launch. + // * spotInstanceCountLimitExceeded - You've reached the limit on the number + // of Spot instances that you can launch. // - // The following are the fleetRequestChange events. + // The following are the fleetRequestChange events. // - // active - The Spot fleet has been validated and Amazon EC2 is attempting - // to maintain the target number of running Spot instances. + // * active - The Spot fleet has been validated and Amazon EC2 is attempting + // to maintain the target number of running Spot instances. // - // cancelled - The Spot fleet is canceled and has no running Spot instances. - // The Spot fleet will be deleted two days after its instances were terminated. + // * cancelled - The Spot fleet is canceled and has no running Spot instances. + // The Spot fleet will be deleted two days after its instances were terminated. // - // cancelled_running - The Spot fleet is canceled and will not launch additional - // Spot instances, but its existing Spot instances continue to run until they - // are interrupted or terminated. + // * cancelled_running - The Spot fleet is canceled and will not launch additional + // Spot instances, but its existing Spot instances continue to run until + // they are interrupted or terminated. // - // cancelled_terminating - The Spot fleet is canceled and its Spot instances - // are terminating. + // * cancelled_terminating - The Spot fleet is canceled and its Spot instances + // are terminating. // - // expired - The Spot fleet request has expired. A subsequent event indicates - // that the instances were terminated, if the request was created with TerminateInstancesWithExpiration - // set. + // * expired - The Spot fleet request has expired. A subsequent event indicates + // that the instances were terminated, if the request was created with TerminateInstancesWithExpiration + // set. // - // modify_in_progress - A request to modify the Spot fleet request was accepted - // and is in progress. + // * modify_in_progress - A request to modify the Spot fleet request was + // accepted and is in progress. // - // modify_successful - The Spot fleet request was modified. + // * modify_successful - The Spot fleet request was modified. // - // price_update - The bid price for a launch configuration was adjusted - // because it was too high. This change is permanent. + // * price_update - The bid price for a launch configuration was adjusted + // because it was too high. This change is permanent. // - // submitted - The Spot fleet request is being evaluated and Amazon EC2 - // is preparing to launch the target number of Spot instances. + // * submitted - The Spot fleet request is being evaluated and Amazon EC2 + // is preparing to launch the target number of Spot instances. // - // The following are the instanceChange events. + // The following are the instanceChange events. // - // launched - A bid was fulfilled and a new instance was launched. + // * launched - A bid was fulfilled and a new instance was launched. // - // terminated - An instance was terminated by the user. + // * terminated - An instance was terminated by the user. EventSubType *string `locationName:"eventSubType" type:"string"` // The ID of the instance. This information is available only for instanceChange @@ -26277,7 +34147,26 @@ func (s EventInformation) GoString() string { return s.String() } +// SetEventDescription sets the EventDescription field's value. +func (s *EventInformation) SetEventDescription(v string) *EventInformation { + s.EventDescription = &v + return s +} + +// SetEventSubType sets the EventSubType field's value. +func (s *EventInformation) SetEventSubType(v string) *EventInformation { + s.EventSubType = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *EventInformation) SetInstanceId(v string) *EventInformation { + s.InstanceId = &v + return s +} + // Describes an instance export task. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportTask type ExportTask struct { _ struct{} `type:"structure"` @@ -26310,7 +34199,44 @@ func (s ExportTask) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *ExportTask) SetDescription(v string) *ExportTask { + s.Description = &v + return s +} + +// SetExportTaskId sets the ExportTaskId field's value. +func (s *ExportTask) SetExportTaskId(v string) *ExportTask { + s.ExportTaskId = &v + return s +} + +// SetExportToS3Task sets the ExportToS3Task field's value. +func (s *ExportTask) SetExportToS3Task(v *ExportToS3Task) *ExportTask { + s.ExportToS3Task = v + return s +} + +// SetInstanceExportDetails sets the InstanceExportDetails field's value. +func (s *ExportTask) SetInstanceExportDetails(v *InstanceExportDetails) *ExportTask { + s.InstanceExportDetails = v + return s +} + +// SetState sets the State field's value. +func (s *ExportTask) SetState(v string) *ExportTask { + s.State = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ExportTask) SetStatusMessage(v string) *ExportTask { + s.StatusMessage = &v + return s +} + // Describes the format and location for an instance export task. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportToS3Task type ExportToS3Task struct { _ struct{} `type:"structure"` @@ -26339,7 +34265,32 @@ func (s ExportToS3Task) GoString() string { return s.String() } +// SetContainerFormat sets the ContainerFormat field's value. +func (s *ExportToS3Task) SetContainerFormat(v string) *ExportToS3Task { + s.ContainerFormat = &v + return s +} + +// SetDiskImageFormat sets the DiskImageFormat field's value. +func (s *ExportToS3Task) SetDiskImageFormat(v string) *ExportToS3Task { + s.DiskImageFormat = &v + return s +} + +// SetS3Bucket sets the S3Bucket field's value. +func (s *ExportToS3Task) SetS3Bucket(v string) *ExportToS3Task { + s.S3Bucket = &v + return s +} + +// SetS3Key sets the S3Key field's value. +func (s *ExportToS3Task) SetS3Key(v string) *ExportToS3Task { + s.S3Key = &v + return s +} + // Describes an instance export task. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportToS3TaskSpecification type ExportToS3TaskSpecification struct { _ struct{} `type:"structure"` @@ -26369,9 +34320,34 @@ func (s ExportToS3TaskSpecification) GoString() string { return s.String() } +// SetContainerFormat sets the ContainerFormat field's value. +func (s *ExportToS3TaskSpecification) SetContainerFormat(v string) *ExportToS3TaskSpecification { + s.ContainerFormat = &v + return s +} + +// SetDiskImageFormat sets the DiskImageFormat field's value. +func (s *ExportToS3TaskSpecification) SetDiskImageFormat(v string) *ExportToS3TaskSpecification { + s.DiskImageFormat = &v + return s +} + +// SetS3Bucket sets the S3Bucket field's value. +func (s *ExportToS3TaskSpecification) SetS3Bucket(v string) *ExportToS3TaskSpecification { + s.S3Bucket = &v + return s +} + +// SetS3Prefix sets the S3Prefix field's value. +func (s *ExportToS3TaskSpecification) SetS3Prefix(v string) *ExportToS3TaskSpecification { + s.S3Prefix = &v + return s +} + // A filter name and value pair that is used to return a more specific list // of results. Filters can be used to match a set of resources by various criteria, // such as tags, attributes, or IDs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Filter type Filter struct { _ struct{} `type:"structure"` @@ -26392,7 +34368,20 @@ func (s Filter) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *Filter) SetName(v string) *Filter { + s.Name = &v + return s +} + +// SetValues sets the Values field's value. +func (s *Filter) SetValues(v []*string) *Filter { + s.Values = v + return s +} + // Describes a flow log. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/FlowLog type FlowLog struct { _ struct{} `type:"structure"` @@ -26439,7 +34428,62 @@ func (s FlowLog) GoString() string { return s.String() } +// SetCreationTime sets the CreationTime field's value. +func (s *FlowLog) SetCreationTime(v time.Time) *FlowLog { + s.CreationTime = &v + return s +} + +// SetDeliverLogsErrorMessage sets the DeliverLogsErrorMessage field's value. +func (s *FlowLog) SetDeliverLogsErrorMessage(v string) *FlowLog { + s.DeliverLogsErrorMessage = &v + return s +} + +// SetDeliverLogsPermissionArn sets the DeliverLogsPermissionArn field's value. +func (s *FlowLog) SetDeliverLogsPermissionArn(v string) *FlowLog { + s.DeliverLogsPermissionArn = &v + return s +} + +// SetDeliverLogsStatus sets the DeliverLogsStatus field's value. +func (s *FlowLog) SetDeliverLogsStatus(v string) *FlowLog { + s.DeliverLogsStatus = &v + return s +} + +// SetFlowLogId sets the FlowLogId field's value. +func (s *FlowLog) SetFlowLogId(v string) *FlowLog { + s.FlowLogId = &v + return s +} + +// SetFlowLogStatus sets the FlowLogStatus field's value. +func (s *FlowLog) SetFlowLogStatus(v string) *FlowLog { + s.FlowLogStatus = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *FlowLog) SetLogGroupName(v string) *FlowLog { + s.LogGroupName = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *FlowLog) SetResourceId(v string) *FlowLog { + s.ResourceId = &v + return s +} + +// SetTrafficType sets the TrafficType field's value. +func (s *FlowLog) SetTrafficType(v string) *FlowLog { + s.TrafficType = &v + return s +} + // Contains the parameters for GetConsoleOutput. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleOutputRequest type GetConsoleOutputInput struct { _ struct{} `type:"structure"` @@ -26478,7 +34522,20 @@ func (s *GetConsoleOutputInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *GetConsoleOutputInput) SetDryRun(v bool) *GetConsoleOutputInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *GetConsoleOutputInput) SetInstanceId(v string) *GetConsoleOutputInput { + s.InstanceId = &v + return s +} + // Contains the output of GetConsoleOutput. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleOutputResult type GetConsoleOutputOutput struct { _ struct{} `type:"structure"` @@ -26503,7 +34560,26 @@ func (s GetConsoleOutputOutput) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *GetConsoleOutputOutput) SetInstanceId(v string) *GetConsoleOutputOutput { + s.InstanceId = &v + return s +} + +// SetOutput sets the Output field's value. +func (s *GetConsoleOutputOutput) SetOutput(v string) *GetConsoleOutputOutput { + s.Output = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *GetConsoleOutputOutput) SetTimestamp(v time.Time) *GetConsoleOutputOutput { + s.Timestamp = &v + return s +} + // Contains the parameters for the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleScreenshotRequest type GetConsoleScreenshotInput struct { _ struct{} `type:"structure"` @@ -26546,7 +34622,26 @@ func (s *GetConsoleScreenshotInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *GetConsoleScreenshotInput) SetDryRun(v bool) *GetConsoleScreenshotInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *GetConsoleScreenshotInput) SetInstanceId(v string) *GetConsoleScreenshotInput { + s.InstanceId = &v + return s +} + +// SetWakeUp sets the WakeUp field's value. +func (s *GetConsoleScreenshotInput) SetWakeUp(v bool) *GetConsoleScreenshotInput { + s.WakeUp = &v + return s +} + // Contains the output of the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleScreenshotResult type GetConsoleScreenshotOutput struct { _ struct{} `type:"structure"` @@ -26567,6 +34662,19 @@ func (s GetConsoleScreenshotOutput) GoString() string { return s.String() } +// SetImageData sets the ImageData field's value. +func (s *GetConsoleScreenshotOutput) SetImageData(v string) *GetConsoleScreenshotOutput { + s.ImageData = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *GetConsoleScreenshotOutput) SetInstanceId(v string) *GetConsoleScreenshotOutput { + s.InstanceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetHostReservationPurchasePreviewRequest type GetHostReservationPurchasePreviewInput struct { _ struct{} `type:"structure"` @@ -26608,6 +34716,19 @@ func (s *GetHostReservationPurchasePreviewInput) Validate() error { return nil } +// SetHostIdSet sets the HostIdSet field's value. +func (s *GetHostReservationPurchasePreviewInput) SetHostIdSet(v []*string) *GetHostReservationPurchasePreviewInput { + s.HostIdSet = v + return s +} + +// SetOfferingId sets the OfferingId field's value. +func (s *GetHostReservationPurchasePreviewInput) SetOfferingId(v string) *GetHostReservationPurchasePreviewInput { + s.OfferingId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetHostReservationPurchasePreviewResult type GetHostReservationPurchasePreviewOutput struct { _ struct{} `type:"structure"` @@ -26636,7 +34757,32 @@ func (s GetHostReservationPurchasePreviewOutput) GoString() string { return s.String() } +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *GetHostReservationPurchasePreviewOutput) SetCurrencyCode(v string) *GetHostReservationPurchasePreviewOutput { + s.CurrencyCode = &v + return s +} + +// SetPurchase sets the Purchase field's value. +func (s *GetHostReservationPurchasePreviewOutput) SetPurchase(v []*Purchase) *GetHostReservationPurchasePreviewOutput { + s.Purchase = v + return s +} + +// SetTotalHourlyPrice sets the TotalHourlyPrice field's value. +func (s *GetHostReservationPurchasePreviewOutput) SetTotalHourlyPrice(v string) *GetHostReservationPurchasePreviewOutput { + s.TotalHourlyPrice = &v + return s +} + +// SetTotalUpfrontPrice sets the TotalUpfrontPrice field's value. +func (s *GetHostReservationPurchasePreviewOutput) SetTotalUpfrontPrice(v string) *GetHostReservationPurchasePreviewOutput { + s.TotalUpfrontPrice = &v + return s +} + // Contains the parameters for GetPasswordData. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetPasswordDataRequest type GetPasswordDataInput struct { _ struct{} `type:"structure"` @@ -26675,7 +34821,20 @@ func (s *GetPasswordDataInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *GetPasswordDataInput) SetDryRun(v bool) *GetPasswordDataInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *GetPasswordDataInput) SetInstanceId(v string) *GetPasswordDataInput { + s.InstanceId = &v + return s +} + // Contains the output of GetPasswordData. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetPasswordDataResult type GetPasswordDataOutput struct { _ struct{} `type:"structure"` @@ -26699,7 +34858,26 @@ func (s GetPasswordDataOutput) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *GetPasswordDataOutput) SetInstanceId(v string) *GetPasswordDataOutput { + s.InstanceId = &v + return s +} + +// SetPasswordData sets the PasswordData field's value. +func (s *GetPasswordDataOutput) SetPasswordData(v string) *GetPasswordDataOutput { + s.PasswordData = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *GetPasswordDataOutput) SetTimestamp(v time.Time) *GetPasswordDataOutput { + s.Timestamp = &v + return s +} + // Contains the parameters for GetReservedInstanceExchangeQuote. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetReservedInstancesExchangeQuoteRequest type GetReservedInstancesExchangeQuoteInput struct { _ struct{} `type:"structure"` @@ -26709,13 +34887,13 @@ type GetReservedInstancesExchangeQuoteInput struct { // it is UnauthorizedOperation. DryRun *bool `type:"boolean"` - // The ID/s of the Convertible Reserved Instances you want to exchange. + // The IDs of the Convertible Reserved Instances to exchange. // // ReservedInstanceIds is a required field ReservedInstanceIds []*string `locationName:"ReservedInstanceId" locationNameList:"ReservedInstanceId" type:"list" required:"true"` - // The configuration requirements of the Convertible Reserved Instances you - // want in exchange for your current Convertible Reserved Instances. + // The configuration requirements of the Convertible Reserved Instances to exchange + // for your current Convertible Reserved Instances. TargetConfigurations []*TargetConfigurationRequest `locationName:"TargetConfiguration" locationNameList:"TargetConfigurationRequest" type:"list"` } @@ -26752,14 +34930,33 @@ func (s *GetReservedInstancesExchangeQuoteInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *GetReservedInstancesExchangeQuoteInput) SetDryRun(v bool) *GetReservedInstancesExchangeQuoteInput { + s.DryRun = &v + return s +} + +// SetReservedInstanceIds sets the ReservedInstanceIds field's value. +func (s *GetReservedInstancesExchangeQuoteInput) SetReservedInstanceIds(v []*string) *GetReservedInstancesExchangeQuoteInput { + s.ReservedInstanceIds = v + return s +} + +// SetTargetConfigurations sets the TargetConfigurations field's value. +func (s *GetReservedInstancesExchangeQuoteInput) SetTargetConfigurations(v []*TargetConfigurationRequest) *GetReservedInstancesExchangeQuoteInput { + s.TargetConfigurations = v + return s +} + // Contains the output of GetReservedInstancesExchangeQuote. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetReservedInstancesExchangeQuoteResult type GetReservedInstancesExchangeQuoteOutput struct { _ struct{} `type:"structure"` // The currency of the transaction. CurrencyCode *string `locationName:"currencyCode" type:"string"` - // If true, the exchange is valid. If false, the exchange cannot be performed. + // If true, the exchange is valid. If false, the exchange cannot be completed. IsValidExchange *bool `locationName:"isValidExchange" type:"boolean"` // The new end date of the reservation term. @@ -26780,7 +34977,7 @@ type GetReservedInstancesExchangeQuoteOutput struct { // The values of the target Convertible Reserved Instances. TargetConfigurationValueSet []*TargetReservationValue `locationName:"targetConfigurationValueSet" locationNameList:"item" type:"list"` - // Describes the reason why the exchange can not be completed. + // Describes the reason why the exchange cannot be completed. ValidationFailureReason *string `locationName:"validationFailureReason" type:"string"` } @@ -26794,7 +34991,62 @@ func (s GetReservedInstancesExchangeQuoteOutput) GoString() string { return s.String() } +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *GetReservedInstancesExchangeQuoteOutput) SetCurrencyCode(v string) *GetReservedInstancesExchangeQuoteOutput { + s.CurrencyCode = &v + return s +} + +// SetIsValidExchange sets the IsValidExchange field's value. +func (s *GetReservedInstancesExchangeQuoteOutput) SetIsValidExchange(v bool) *GetReservedInstancesExchangeQuoteOutput { + s.IsValidExchange = &v + return s +} + +// SetOutputReservedInstancesWillExpireAt sets the OutputReservedInstancesWillExpireAt field's value. +func (s *GetReservedInstancesExchangeQuoteOutput) SetOutputReservedInstancesWillExpireAt(v time.Time) *GetReservedInstancesExchangeQuoteOutput { + s.OutputReservedInstancesWillExpireAt = &v + return s +} + +// SetPaymentDue sets the PaymentDue field's value. +func (s *GetReservedInstancesExchangeQuoteOutput) SetPaymentDue(v string) *GetReservedInstancesExchangeQuoteOutput { + s.PaymentDue = &v + return s +} + +// SetReservedInstanceValueRollup sets the ReservedInstanceValueRollup field's value. +func (s *GetReservedInstancesExchangeQuoteOutput) SetReservedInstanceValueRollup(v *ReservationValue) *GetReservedInstancesExchangeQuoteOutput { + s.ReservedInstanceValueRollup = v + return s +} + +// SetReservedInstanceValueSet sets the ReservedInstanceValueSet field's value. +func (s *GetReservedInstancesExchangeQuoteOutput) SetReservedInstanceValueSet(v []*ReservedInstanceReservationValue) *GetReservedInstancesExchangeQuoteOutput { + s.ReservedInstanceValueSet = v + return s +} + +// SetTargetConfigurationValueRollup sets the TargetConfigurationValueRollup field's value. +func (s *GetReservedInstancesExchangeQuoteOutput) SetTargetConfigurationValueRollup(v *ReservationValue) *GetReservedInstancesExchangeQuoteOutput { + s.TargetConfigurationValueRollup = v + return s +} + +// SetTargetConfigurationValueSet sets the TargetConfigurationValueSet field's value. +func (s *GetReservedInstancesExchangeQuoteOutput) SetTargetConfigurationValueSet(v []*TargetReservationValue) *GetReservedInstancesExchangeQuoteOutput { + s.TargetConfigurationValueSet = v + return s +} + +// SetValidationFailureReason sets the ValidationFailureReason field's value. +func (s *GetReservedInstancesExchangeQuoteOutput) SetValidationFailureReason(v string) *GetReservedInstancesExchangeQuoteOutput { + s.ValidationFailureReason = &v + return s +} + // Describes a security group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GroupIdentifier type GroupIdentifier struct { _ struct{} `type:"structure"` @@ -26815,7 +35067,20 @@ func (s GroupIdentifier) GoString() string { return s.String() } +// SetGroupId sets the GroupId field's value. +func (s *GroupIdentifier) SetGroupId(v string) *GroupIdentifier { + s.GroupId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *GroupIdentifier) SetGroupName(v string) *GroupIdentifier { + s.GroupName = &v + return s +} + // Describes an event in the history of the Spot fleet request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/HistoryRecord type HistoryRecord struct { _ struct{} `type:"structure"` @@ -26826,12 +35091,12 @@ type HistoryRecord struct { // The event type. // - // error - Indicates an error with the Spot fleet request. + // * error - Indicates an error with the Spot fleet request. // - // fleetRequestChange - Indicates a change in the status or configuration - // of the Spot fleet request. + // * fleetRequestChange - Indicates a change in the status or configuration + // of the Spot fleet request. // - // instanceChange - Indicates that an instance was launched or terminated. + // * instanceChange - Indicates that an instance was launched or terminated. // // EventType is a required field EventType *string `locationName:"eventType" type:"string" required:"true" enum:"EventType"` @@ -26852,7 +35117,26 @@ func (s HistoryRecord) GoString() string { return s.String() } +// SetEventInformation sets the EventInformation field's value. +func (s *HistoryRecord) SetEventInformation(v *EventInformation) *HistoryRecord { + s.EventInformation = v + return s +} + +// SetEventType sets the EventType field's value. +func (s *HistoryRecord) SetEventType(v string) *HistoryRecord { + s.EventType = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *HistoryRecord) SetTimestamp(v time.Time) *HistoryRecord { + s.Timestamp = &v + return s +} + // Describes the properties of the Dedicated Host. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Host type Host struct { _ struct{} `type:"structure"` @@ -26897,7 +35181,62 @@ func (s Host) GoString() string { return s.String() } +// SetAutoPlacement sets the AutoPlacement field's value. +func (s *Host) SetAutoPlacement(v string) *Host { + s.AutoPlacement = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Host) SetAvailabilityZone(v string) *Host { + s.AvailabilityZone = &v + return s +} + +// SetAvailableCapacity sets the AvailableCapacity field's value. +func (s *Host) SetAvailableCapacity(v *AvailableCapacity) *Host { + s.AvailableCapacity = v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *Host) SetClientToken(v string) *Host { + s.ClientToken = &v + return s +} + +// SetHostId sets the HostId field's value. +func (s *Host) SetHostId(v string) *Host { + s.HostId = &v + return s +} + +// SetHostProperties sets the HostProperties field's value. +func (s *Host) SetHostProperties(v *HostProperties) *Host { + s.HostProperties = v + return s +} + +// SetHostReservationId sets the HostReservationId field's value. +func (s *Host) SetHostReservationId(v string) *Host { + s.HostReservationId = &v + return s +} + +// SetInstances sets the Instances field's value. +func (s *Host) SetInstances(v []*HostInstance) *Host { + s.Instances = v + return s +} + +// SetState sets the State field's value. +func (s *Host) SetState(v string) *Host { + s.State = &v + return s +} + // Describes an instance running on a Dedicated Host. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/HostInstance type HostInstance struct { _ struct{} `type:"structure"` @@ -26918,7 +35257,20 @@ func (s HostInstance) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *HostInstance) SetInstanceId(v string) *HostInstance { + s.InstanceId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *HostInstance) SetInstanceType(v string) *HostInstance { + s.InstanceType = &v + return s +} + // Details about the Dedicated Host Reservation offering. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/HostOffering type HostOffering struct { _ struct{} `type:"structure"` @@ -26954,7 +35306,50 @@ func (s HostOffering) GoString() string { return s.String() } +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *HostOffering) SetCurrencyCode(v string) *HostOffering { + s.CurrencyCode = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *HostOffering) SetDuration(v int64) *HostOffering { + s.Duration = &v + return s +} + +// SetHourlyPrice sets the HourlyPrice field's value. +func (s *HostOffering) SetHourlyPrice(v string) *HostOffering { + s.HourlyPrice = &v + return s +} + +// SetInstanceFamily sets the InstanceFamily field's value. +func (s *HostOffering) SetInstanceFamily(v string) *HostOffering { + s.InstanceFamily = &v + return s +} + +// SetOfferingId sets the OfferingId field's value. +func (s *HostOffering) SetOfferingId(v string) *HostOffering { + s.OfferingId = &v + return s +} + +// SetPaymentOption sets the PaymentOption field's value. +func (s *HostOffering) SetPaymentOption(v string) *HostOffering { + s.PaymentOption = &v + return s +} + +// SetUpfrontPrice sets the UpfrontPrice field's value. +func (s *HostOffering) SetUpfrontPrice(v string) *HostOffering { + s.UpfrontPrice = &v + return s +} + // Describes properties of a Dedicated Host. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/HostProperties type HostProperties struct { _ struct{} `type:"structure"` @@ -26981,7 +35376,32 @@ func (s HostProperties) GoString() string { return s.String() } +// SetCores sets the Cores field's value. +func (s *HostProperties) SetCores(v int64) *HostProperties { + s.Cores = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *HostProperties) SetInstanceType(v string) *HostProperties { + s.InstanceType = &v + return s +} + +// SetSockets sets the Sockets field's value. +func (s *HostProperties) SetSockets(v int64) *HostProperties { + s.Sockets = &v + return s +} + +// SetTotalVCpus sets the TotalVCpus field's value. +func (s *HostProperties) SetTotalVCpus(v int64) *HostProperties { + s.TotalVCpus = &v + return s +} + // Details about the Dedicated Host Reservation and associated Dedicated Hosts. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/HostReservation type HostReservation struct { _ struct{} `type:"structure"` @@ -27040,7 +35460,86 @@ func (s HostReservation) GoString() string { return s.String() } +// SetCount sets the Count field's value. +func (s *HostReservation) SetCount(v int64) *HostReservation { + s.Count = &v + return s +} + +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *HostReservation) SetCurrencyCode(v string) *HostReservation { + s.CurrencyCode = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *HostReservation) SetDuration(v int64) *HostReservation { + s.Duration = &v + return s +} + +// SetEnd sets the End field's value. +func (s *HostReservation) SetEnd(v time.Time) *HostReservation { + s.End = &v + return s +} + +// SetHostIdSet sets the HostIdSet field's value. +func (s *HostReservation) SetHostIdSet(v []*string) *HostReservation { + s.HostIdSet = v + return s +} + +// SetHostReservationId sets the HostReservationId field's value. +func (s *HostReservation) SetHostReservationId(v string) *HostReservation { + s.HostReservationId = &v + return s +} + +// SetHourlyPrice sets the HourlyPrice field's value. +func (s *HostReservation) SetHourlyPrice(v string) *HostReservation { + s.HourlyPrice = &v + return s +} + +// SetInstanceFamily sets the InstanceFamily field's value. +func (s *HostReservation) SetInstanceFamily(v string) *HostReservation { + s.InstanceFamily = &v + return s +} + +// SetOfferingId sets the OfferingId field's value. +func (s *HostReservation) SetOfferingId(v string) *HostReservation { + s.OfferingId = &v + return s +} + +// SetPaymentOption sets the PaymentOption field's value. +func (s *HostReservation) SetPaymentOption(v string) *HostReservation { + s.PaymentOption = &v + return s +} + +// SetStart sets the Start field's value. +func (s *HostReservation) SetStart(v time.Time) *HostReservation { + s.Start = &v + return s +} + +// SetState sets the State field's value. +func (s *HostReservation) SetState(v string) *HostReservation { + s.State = &v + return s +} + +// SetUpfrontPrice sets the UpfrontPrice field's value. +func (s *HostReservation) SetUpfrontPrice(v string) *HostReservation { + s.UpfrontPrice = &v + return s +} + // Describes an IAM instance profile. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IamInstanceProfile type IamInstanceProfile struct { _ struct{} `type:"structure"` @@ -27061,7 +35560,81 @@ func (s IamInstanceProfile) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *IamInstanceProfile) SetArn(v string) *IamInstanceProfile { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *IamInstanceProfile) SetId(v string) *IamInstanceProfile { + s.Id = &v + return s +} + +// Describes an association between an IAM instance profile and an instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IamInstanceProfileAssociation +type IamInstanceProfileAssociation struct { + _ struct{} `type:"structure"` + + // The ID of the association. + AssociationId *string `locationName:"associationId" type:"string"` + + // The IAM instance profile. + IamInstanceProfile *IamInstanceProfile `locationName:"iamInstanceProfile" type:"structure"` + + // The ID of the instance. + InstanceId *string `locationName:"instanceId" type:"string"` + + // The state of the association. + State *string `locationName:"state" type:"string" enum:"IamInstanceProfileAssociationState"` + + // The time the IAM instance profile was associated with the instance. + Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"` +} + +// String returns the string representation +func (s IamInstanceProfileAssociation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IamInstanceProfileAssociation) GoString() string { + return s.String() +} + +// SetAssociationId sets the AssociationId field's value. +func (s *IamInstanceProfileAssociation) SetAssociationId(v string) *IamInstanceProfileAssociation { + s.AssociationId = &v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *IamInstanceProfileAssociation) SetIamInstanceProfile(v *IamInstanceProfile) *IamInstanceProfileAssociation { + s.IamInstanceProfile = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *IamInstanceProfileAssociation) SetInstanceId(v string) *IamInstanceProfileAssociation { + s.InstanceId = &v + return s +} + +// SetState sets the State field's value. +func (s *IamInstanceProfileAssociation) SetState(v string) *IamInstanceProfileAssociation { + s.State = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *IamInstanceProfileAssociation) SetTimestamp(v time.Time) *IamInstanceProfileAssociation { + s.Timestamp = &v + return s +} + // Describes an IAM instance profile. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IamInstanceProfileSpecification type IamInstanceProfileSpecification struct { _ struct{} `type:"structure"` @@ -27082,14 +35655,27 @@ func (s IamInstanceProfileSpecification) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *IamInstanceProfileSpecification) SetArn(v string) *IamInstanceProfileSpecification { + s.Arn = &v + return s +} + +// SetName sets the Name field's value. +func (s *IamInstanceProfileSpecification) SetName(v string) *IamInstanceProfileSpecification { + s.Name = &v + return s +} + // Describes the ICMP type and code. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IcmpTypeCode type IcmpTypeCode struct { _ struct{} `type:"structure"` - // The ICMP type. A value of -1 means all types. + // The ICMP code. A value of -1 means all codes for the specified ICMP type. Code *int64 `locationName:"code" type:"integer"` - // The ICMP code. A value of -1 means all codes for the specified ICMP type. + // The ICMP type. A value of -1 means all types. Type *int64 `locationName:"type" type:"integer"` } @@ -27103,7 +35689,20 @@ func (s IcmpTypeCode) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *IcmpTypeCode) SetCode(v int64) *IcmpTypeCode { + s.Code = &v + return s +} + +// SetType sets the Type field's value. +func (s *IcmpTypeCode) SetType(v int64) *IcmpTypeCode { + s.Type = &v + return s +} + // Describes the ID format for a resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IdFormat type IdFormat struct { _ struct{} `type:"structure"` @@ -27129,7 +35728,26 @@ func (s IdFormat) GoString() string { return s.String() } +// SetDeadline sets the Deadline field's value. +func (s *IdFormat) SetDeadline(v time.Time) *IdFormat { + s.Deadline = &v + return s +} + +// SetResource sets the Resource field's value. +func (s *IdFormat) SetResource(v string) *IdFormat { + s.Resource = &v + return s +} + +// SetUseLongIds sets the UseLongIds field's value. +func (s *IdFormat) SetUseLongIds(v bool) *IdFormat { + s.UseLongIds = &v + return s +} + // Describes an image. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Image type Image struct { _ struct{} `type:"structure"` @@ -27224,7 +35842,152 @@ func (s Image) GoString() string { return s.String() } +// SetArchitecture sets the Architecture field's value. +func (s *Image) SetArchitecture(v string) *Image { + s.Architecture = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *Image) SetBlockDeviceMappings(v []*BlockDeviceMapping) *Image { + s.BlockDeviceMappings = v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *Image) SetCreationDate(v string) *Image { + s.CreationDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Image) SetDescription(v string) *Image { + s.Description = &v + return s +} + +// SetEnaSupport sets the EnaSupport field's value. +func (s *Image) SetEnaSupport(v bool) *Image { + s.EnaSupport = &v + return s +} + +// SetHypervisor sets the Hypervisor field's value. +func (s *Image) SetHypervisor(v string) *Image { + s.Hypervisor = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *Image) SetImageId(v string) *Image { + s.ImageId = &v + return s +} + +// SetImageLocation sets the ImageLocation field's value. +func (s *Image) SetImageLocation(v string) *Image { + s.ImageLocation = &v + return s +} + +// SetImageOwnerAlias sets the ImageOwnerAlias field's value. +func (s *Image) SetImageOwnerAlias(v string) *Image { + s.ImageOwnerAlias = &v + return s +} + +// SetImageType sets the ImageType field's value. +func (s *Image) SetImageType(v string) *Image { + s.ImageType = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *Image) SetKernelId(v string) *Image { + s.KernelId = &v + return s +} + +// SetName sets the Name field's value. +func (s *Image) SetName(v string) *Image { + s.Name = &v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *Image) SetOwnerId(v string) *Image { + s.OwnerId = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *Image) SetPlatform(v string) *Image { + s.Platform = &v + return s +} + +// SetProductCodes sets the ProductCodes field's value. +func (s *Image) SetProductCodes(v []*ProductCode) *Image { + s.ProductCodes = v + return s +} + +// SetPublic sets the Public field's value. +func (s *Image) SetPublic(v bool) *Image { + s.Public = &v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *Image) SetRamdiskId(v string) *Image { + s.RamdiskId = &v + return s +} + +// SetRootDeviceName sets the RootDeviceName field's value. +func (s *Image) SetRootDeviceName(v string) *Image { + s.RootDeviceName = &v + return s +} + +// SetRootDeviceType sets the RootDeviceType field's value. +func (s *Image) SetRootDeviceType(v string) *Image { + s.RootDeviceType = &v + return s +} + +// SetSriovNetSupport sets the SriovNetSupport field's value. +func (s *Image) SetSriovNetSupport(v string) *Image { + s.SriovNetSupport = &v + return s +} + +// SetState sets the State field's value. +func (s *Image) SetState(v string) *Image { + s.State = &v + return s +} + +// SetStateReason sets the StateReason field's value. +func (s *Image) SetStateReason(v *StateReason) *Image { + s.StateReason = v + return s +} + +// SetTags sets the Tags field's value. +func (s *Image) SetTags(v []*Tag) *Image { + s.Tags = v + return s +} + +// SetVirtualizationType sets the VirtualizationType field's value. +func (s *Image) SetVirtualizationType(v string) *Image { + s.VirtualizationType = &v + return s +} + // Describes the disk container object for an import image task. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageDiskContainer type ImageDiskContainer struct { _ struct{} `type:"structure"` @@ -27260,7 +36023,44 @@ func (s ImageDiskContainer) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *ImageDiskContainer) SetDescription(v string) *ImageDiskContainer { + s.Description = &v + return s +} + +// SetDeviceName sets the DeviceName field's value. +func (s *ImageDiskContainer) SetDeviceName(v string) *ImageDiskContainer { + s.DeviceName = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *ImageDiskContainer) SetFormat(v string) *ImageDiskContainer { + s.Format = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *ImageDiskContainer) SetSnapshotId(v string) *ImageDiskContainer { + s.SnapshotId = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *ImageDiskContainer) SetUrl(v string) *ImageDiskContainer { + s.Url = &v + return s +} + +// SetUserBucket sets the UserBucket field's value. +func (s *ImageDiskContainer) SetUserBucket(v *UserBucket) *ImageDiskContainer { + s.UserBucket = v + return s +} + // Contains the parameters for ImportImage. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImageRequest type ImportImageInput struct { _ struct{} `type:"structure"` @@ -27294,7 +36094,7 @@ type ImportImageInput struct { // The license type to be used for the Amazon Machine Image (AMI) after importing. // - // Note: You may only use BYOL if you have existing licenses with rights to + // Note: You may only use BYOL if you have existing licenses with rights to // use these licenses in a third party cloud like AWS. For more information, // see Prerequisites (http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#prerequisites-image) // in the VM Import/Export User Guide. @@ -27321,7 +36121,68 @@ func (s ImportImageInput) GoString() string { return s.String() } +// SetArchitecture sets the Architecture field's value. +func (s *ImportImageInput) SetArchitecture(v string) *ImportImageInput { + s.Architecture = &v + return s +} + +// SetClientData sets the ClientData field's value. +func (s *ImportImageInput) SetClientData(v *ClientData) *ImportImageInput { + s.ClientData = v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *ImportImageInput) SetClientToken(v string) *ImportImageInput { + s.ClientToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ImportImageInput) SetDescription(v string) *ImportImageInput { + s.Description = &v + return s +} + +// SetDiskContainers sets the DiskContainers field's value. +func (s *ImportImageInput) SetDiskContainers(v []*ImageDiskContainer) *ImportImageInput { + s.DiskContainers = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ImportImageInput) SetDryRun(v bool) *ImportImageInput { + s.DryRun = &v + return s +} + +// SetHypervisor sets the Hypervisor field's value. +func (s *ImportImageInput) SetHypervisor(v string) *ImportImageInput { + s.Hypervisor = &v + return s +} + +// SetLicenseType sets the LicenseType field's value. +func (s *ImportImageInput) SetLicenseType(v string) *ImportImageInput { + s.LicenseType = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *ImportImageInput) SetPlatform(v string) *ImportImageInput { + s.Platform = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *ImportImageInput) SetRoleName(v string) *ImportImageInput { + s.RoleName = &v + return s +} + // Contains the output for ImportImage. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImageResult type ImportImageOutput struct { _ struct{} `type:"structure"` @@ -27369,7 +36230,74 @@ func (s ImportImageOutput) GoString() string { return s.String() } +// SetArchitecture sets the Architecture field's value. +func (s *ImportImageOutput) SetArchitecture(v string) *ImportImageOutput { + s.Architecture = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ImportImageOutput) SetDescription(v string) *ImportImageOutput { + s.Description = &v + return s +} + +// SetHypervisor sets the Hypervisor field's value. +func (s *ImportImageOutput) SetHypervisor(v string) *ImportImageOutput { + s.Hypervisor = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *ImportImageOutput) SetImageId(v string) *ImportImageOutput { + s.ImageId = &v + return s +} + +// SetImportTaskId sets the ImportTaskId field's value. +func (s *ImportImageOutput) SetImportTaskId(v string) *ImportImageOutput { + s.ImportTaskId = &v + return s +} + +// SetLicenseType sets the LicenseType field's value. +func (s *ImportImageOutput) SetLicenseType(v string) *ImportImageOutput { + s.LicenseType = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *ImportImageOutput) SetPlatform(v string) *ImportImageOutput { + s.Platform = &v + return s +} + +// SetProgress sets the Progress field's value. +func (s *ImportImageOutput) SetProgress(v string) *ImportImageOutput { + s.Progress = &v + return s +} + +// SetSnapshotDetails sets the SnapshotDetails field's value. +func (s *ImportImageOutput) SetSnapshotDetails(v []*SnapshotDetail) *ImportImageOutput { + s.SnapshotDetails = v + return s +} + +// SetStatus sets the Status field's value. +func (s *ImportImageOutput) SetStatus(v string) *ImportImageOutput { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ImportImageOutput) SetStatusMessage(v string) *ImportImageOutput { + s.StatusMessage = &v + return s +} + // Describes an import image task. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImageTask type ImportImageTask struct { _ struct{} `type:"structure"` @@ -27421,7 +36349,74 @@ func (s ImportImageTask) GoString() string { return s.String() } +// SetArchitecture sets the Architecture field's value. +func (s *ImportImageTask) SetArchitecture(v string) *ImportImageTask { + s.Architecture = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ImportImageTask) SetDescription(v string) *ImportImageTask { + s.Description = &v + return s +} + +// SetHypervisor sets the Hypervisor field's value. +func (s *ImportImageTask) SetHypervisor(v string) *ImportImageTask { + s.Hypervisor = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *ImportImageTask) SetImageId(v string) *ImportImageTask { + s.ImageId = &v + return s +} + +// SetImportTaskId sets the ImportTaskId field's value. +func (s *ImportImageTask) SetImportTaskId(v string) *ImportImageTask { + s.ImportTaskId = &v + return s +} + +// SetLicenseType sets the LicenseType field's value. +func (s *ImportImageTask) SetLicenseType(v string) *ImportImageTask { + s.LicenseType = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *ImportImageTask) SetPlatform(v string) *ImportImageTask { + s.Platform = &v + return s +} + +// SetProgress sets the Progress field's value. +func (s *ImportImageTask) SetProgress(v string) *ImportImageTask { + s.Progress = &v + return s +} + +// SetSnapshotDetails sets the SnapshotDetails field's value. +func (s *ImportImageTask) SetSnapshotDetails(v []*SnapshotDetail) *ImportImageTask { + s.SnapshotDetails = v + return s +} + +// SetStatus sets the Status field's value. +func (s *ImportImageTask) SetStatus(v string) *ImportImageTask { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ImportImageTask) SetStatusMessage(v string) *ImportImageTask { + s.StatusMessage = &v + return s +} + // Contains the parameters for ImportInstance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstanceRequest type ImportInstanceInput struct { _ struct{} `type:"structure"` @@ -27479,7 +36474,38 @@ func (s *ImportInstanceInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *ImportInstanceInput) SetDescription(v string) *ImportInstanceInput { + s.Description = &v + return s +} + +// SetDiskImages sets the DiskImages field's value. +func (s *ImportInstanceInput) SetDiskImages(v []*DiskImage) *ImportInstanceInput { + s.DiskImages = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ImportInstanceInput) SetDryRun(v bool) *ImportInstanceInput { + s.DryRun = &v + return s +} + +// SetLaunchSpecification sets the LaunchSpecification field's value. +func (s *ImportInstanceInput) SetLaunchSpecification(v *ImportInstanceLaunchSpecification) *ImportInstanceInput { + s.LaunchSpecification = v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *ImportInstanceInput) SetPlatform(v string) *ImportInstanceInput { + s.Platform = &v + return s +} + // Describes the launch specification for VM import. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstanceLaunchSpecification type ImportInstanceLaunchSpecification struct { _ struct{} `type:"structure"` @@ -27532,7 +36558,74 @@ func (s ImportInstanceLaunchSpecification) GoString() string { return s.String() } +// SetAdditionalInfo sets the AdditionalInfo field's value. +func (s *ImportInstanceLaunchSpecification) SetAdditionalInfo(v string) *ImportInstanceLaunchSpecification { + s.AdditionalInfo = &v + return s +} + +// SetArchitecture sets the Architecture field's value. +func (s *ImportInstanceLaunchSpecification) SetArchitecture(v string) *ImportInstanceLaunchSpecification { + s.Architecture = &v + return s +} + +// SetGroupIds sets the GroupIds field's value. +func (s *ImportInstanceLaunchSpecification) SetGroupIds(v []*string) *ImportInstanceLaunchSpecification { + s.GroupIds = v + return s +} + +// SetGroupNames sets the GroupNames field's value. +func (s *ImportInstanceLaunchSpecification) SetGroupNames(v []*string) *ImportInstanceLaunchSpecification { + s.GroupNames = v + return s +} + +// SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value. +func (s *ImportInstanceLaunchSpecification) SetInstanceInitiatedShutdownBehavior(v string) *ImportInstanceLaunchSpecification { + s.InstanceInitiatedShutdownBehavior = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ImportInstanceLaunchSpecification) SetInstanceType(v string) *ImportInstanceLaunchSpecification { + s.InstanceType = &v + return s +} + +// SetMonitoring sets the Monitoring field's value. +func (s *ImportInstanceLaunchSpecification) SetMonitoring(v bool) *ImportInstanceLaunchSpecification { + s.Monitoring = &v + return s +} + +// SetPlacement sets the Placement field's value. +func (s *ImportInstanceLaunchSpecification) SetPlacement(v *Placement) *ImportInstanceLaunchSpecification { + s.Placement = v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *ImportInstanceLaunchSpecification) SetPrivateIpAddress(v string) *ImportInstanceLaunchSpecification { + s.PrivateIpAddress = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *ImportInstanceLaunchSpecification) SetSubnetId(v string) *ImportInstanceLaunchSpecification { + s.SubnetId = &v + return s +} + +// SetUserData sets the UserData field's value. +func (s *ImportInstanceLaunchSpecification) SetUserData(v *UserData) *ImportInstanceLaunchSpecification { + s.UserData = v + return s +} + // Contains the output for ImportInstance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstanceResult type ImportInstanceOutput struct { _ struct{} `type:"structure"` @@ -27550,7 +36643,14 @@ func (s ImportInstanceOutput) GoString() string { return s.String() } +// SetConversionTask sets the ConversionTask field's value. +func (s *ImportInstanceOutput) SetConversionTask(v *ConversionTask) *ImportInstanceOutput { + s.ConversionTask = v + return s +} + // Describes an import instance task. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstanceTaskDetails type ImportInstanceTaskDetails struct { _ struct{} `type:"structure"` @@ -27579,7 +36679,32 @@ func (s ImportInstanceTaskDetails) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *ImportInstanceTaskDetails) SetDescription(v string) *ImportInstanceTaskDetails { + s.Description = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ImportInstanceTaskDetails) SetInstanceId(v string) *ImportInstanceTaskDetails { + s.InstanceId = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *ImportInstanceTaskDetails) SetPlatform(v string) *ImportInstanceTaskDetails { + s.Platform = &v + return s +} + +// SetVolumes sets the Volumes field's value. +func (s *ImportInstanceTaskDetails) SetVolumes(v []*ImportInstanceVolumeDetailItem) *ImportInstanceTaskDetails { + s.Volumes = v + return s +} + // Describes an import volume task. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstanceVolumeDetailItem type ImportInstanceVolumeDetailItem struct { _ struct{} `type:"structure"` @@ -27625,7 +36750,50 @@ func (s ImportInstanceVolumeDetailItem) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ImportInstanceVolumeDetailItem) SetAvailabilityZone(v string) *ImportInstanceVolumeDetailItem { + s.AvailabilityZone = &v + return s +} + +// SetBytesConverted sets the BytesConverted field's value. +func (s *ImportInstanceVolumeDetailItem) SetBytesConverted(v int64) *ImportInstanceVolumeDetailItem { + s.BytesConverted = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ImportInstanceVolumeDetailItem) SetDescription(v string) *ImportInstanceVolumeDetailItem { + s.Description = &v + return s +} + +// SetImage sets the Image field's value. +func (s *ImportInstanceVolumeDetailItem) SetImage(v *DiskImageDescription) *ImportInstanceVolumeDetailItem { + s.Image = v + return s +} + +// SetStatus sets the Status field's value. +func (s *ImportInstanceVolumeDetailItem) SetStatus(v string) *ImportInstanceVolumeDetailItem { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ImportInstanceVolumeDetailItem) SetStatusMessage(v string) *ImportInstanceVolumeDetailItem { + s.StatusMessage = &v + return s +} + +// SetVolume sets the Volume field's value. +func (s *ImportInstanceVolumeDetailItem) SetVolume(v *DiskImageVolumeDescription) *ImportInstanceVolumeDetailItem { + s.Volume = v + return s +} + // Contains the parameters for ImportKeyPair. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPairRequest type ImportKeyPairInput struct { _ struct{} `type:"structure"` @@ -27675,7 +36843,26 @@ func (s *ImportKeyPairInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *ImportKeyPairInput) SetDryRun(v bool) *ImportKeyPairInput { + s.DryRun = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *ImportKeyPairInput) SetKeyName(v string) *ImportKeyPairInput { + s.KeyName = &v + return s +} + +// SetPublicKeyMaterial sets the PublicKeyMaterial field's value. +func (s *ImportKeyPairInput) SetPublicKeyMaterial(v []byte) *ImportKeyPairInput { + s.PublicKeyMaterial = v + return s +} + // Contains the output of ImportKeyPair. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPairResult type ImportKeyPairOutput struct { _ struct{} `type:"structure"` @@ -27696,7 +36883,20 @@ func (s ImportKeyPairOutput) GoString() string { return s.String() } +// SetKeyFingerprint sets the KeyFingerprint field's value. +func (s *ImportKeyPairOutput) SetKeyFingerprint(v string) *ImportKeyPairOutput { + s.KeyFingerprint = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *ImportKeyPairOutput) SetKeyName(v string) *ImportKeyPairOutput { + s.KeyName = &v + return s +} + // Contains the parameters for ImportSnapshot. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshotRequest type ImportSnapshotInput struct { _ struct{} `type:"structure"` @@ -27732,7 +36932,44 @@ func (s ImportSnapshotInput) GoString() string { return s.String() } +// SetClientData sets the ClientData field's value. +func (s *ImportSnapshotInput) SetClientData(v *ClientData) *ImportSnapshotInput { + s.ClientData = v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *ImportSnapshotInput) SetClientToken(v string) *ImportSnapshotInput { + s.ClientToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ImportSnapshotInput) SetDescription(v string) *ImportSnapshotInput { + s.Description = &v + return s +} + +// SetDiskContainer sets the DiskContainer field's value. +func (s *ImportSnapshotInput) SetDiskContainer(v *SnapshotDiskContainer) *ImportSnapshotInput { + s.DiskContainer = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ImportSnapshotInput) SetDryRun(v bool) *ImportSnapshotInput { + s.DryRun = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *ImportSnapshotInput) SetRoleName(v string) *ImportSnapshotInput { + s.RoleName = &v + return s +} + // Contains the output for ImportSnapshot. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshotResult type ImportSnapshotOutput struct { _ struct{} `type:"structure"` @@ -27756,7 +36993,26 @@ func (s ImportSnapshotOutput) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *ImportSnapshotOutput) SetDescription(v string) *ImportSnapshotOutput { + s.Description = &v + return s +} + +// SetImportTaskId sets the ImportTaskId field's value. +func (s *ImportSnapshotOutput) SetImportTaskId(v string) *ImportSnapshotOutput { + s.ImportTaskId = &v + return s +} + +// SetSnapshotTaskDetail sets the SnapshotTaskDetail field's value. +func (s *ImportSnapshotOutput) SetSnapshotTaskDetail(v *SnapshotTaskDetail) *ImportSnapshotOutput { + s.SnapshotTaskDetail = v + return s +} + // Describes an import snapshot task. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshotTask type ImportSnapshotTask struct { _ struct{} `type:"structure"` @@ -27780,7 +37036,26 @@ func (s ImportSnapshotTask) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *ImportSnapshotTask) SetDescription(v string) *ImportSnapshotTask { + s.Description = &v + return s +} + +// SetImportTaskId sets the ImportTaskId field's value. +func (s *ImportSnapshotTask) SetImportTaskId(v string) *ImportSnapshotTask { + s.ImportTaskId = &v + return s +} + +// SetSnapshotTaskDetail sets the SnapshotTaskDetail field's value. +func (s *ImportSnapshotTask) SetSnapshotTaskDetail(v *SnapshotTaskDetail) *ImportSnapshotTask { + s.SnapshotTaskDetail = v + return s +} + // Contains the parameters for ImportVolume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolumeRequest type ImportVolumeInput struct { _ struct{} `type:"structure"` @@ -27848,7 +37123,38 @@ func (s *ImportVolumeInput) Validate() error { return nil } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ImportVolumeInput) SetAvailabilityZone(v string) *ImportVolumeInput { + s.AvailabilityZone = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ImportVolumeInput) SetDescription(v string) *ImportVolumeInput { + s.Description = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ImportVolumeInput) SetDryRun(v bool) *ImportVolumeInput { + s.DryRun = &v + return s +} + +// SetImage sets the Image field's value. +func (s *ImportVolumeInput) SetImage(v *DiskImageDetail) *ImportVolumeInput { + s.Image = v + return s +} + +// SetVolume sets the Volume field's value. +func (s *ImportVolumeInput) SetVolume(v *VolumeDetail) *ImportVolumeInput { + s.Volume = v + return s +} + // Contains the output for ImportVolume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolumeResult type ImportVolumeOutput struct { _ struct{} `type:"structure"` @@ -27866,7 +37172,14 @@ func (s ImportVolumeOutput) GoString() string { return s.String() } +// SetConversionTask sets the ConversionTask field's value. +func (s *ImportVolumeOutput) SetConversionTask(v *ConversionTask) *ImportVolumeOutput { + s.ConversionTask = v + return s +} + // Describes an import volume task. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolumeTaskDetails type ImportVolumeTaskDetails struct { _ struct{} `type:"structure"` @@ -27904,7 +37217,38 @@ func (s ImportVolumeTaskDetails) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ImportVolumeTaskDetails) SetAvailabilityZone(v string) *ImportVolumeTaskDetails { + s.AvailabilityZone = &v + return s +} + +// SetBytesConverted sets the BytesConverted field's value. +func (s *ImportVolumeTaskDetails) SetBytesConverted(v int64) *ImportVolumeTaskDetails { + s.BytesConverted = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ImportVolumeTaskDetails) SetDescription(v string) *ImportVolumeTaskDetails { + s.Description = &v + return s +} + +// SetImage sets the Image field's value. +func (s *ImportVolumeTaskDetails) SetImage(v *DiskImageDescription) *ImportVolumeTaskDetails { + s.Image = v + return s +} + +// SetVolume sets the Volume field's value. +func (s *ImportVolumeTaskDetails) SetVolume(v *DiskImageVolumeDescription) *ImportVolumeTaskDetails { + s.Volume = v + return s +} + // Describes an instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Instance type Instance struct { _ struct{} `type:"structure"` @@ -27959,7 +37303,7 @@ type Instance struct { // The time the instance was launched. LaunchTime *time.Time `locationName:"launchTime" type:"timestamp" timestampFormat:"iso8601"` - // The monitoring information for the instance. + // The monitoring for the instance. Monitoring *Monitoring `locationName:"monitoring" type:"structure"` // [EC2-VPC] One or more network interfaces for the instance. @@ -27971,24 +37315,28 @@ type Instance struct { // The value is Windows for Windows instances; otherwise blank. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"` - // The private DNS name assigned to the instance. This DNS name can only be - // used inside the Amazon EC2 network. This name is not available until the - // instance enters the running state. For EC2-VPC, this name is only available - // if you've enabled DNS hostnames for your VPC. + // (IPv4 only) The private DNS hostname name assigned to the instance. This + // DNS hostname can only be used inside the Amazon EC2 network. This name is + // not available until the instance enters the running state. + // + // [EC2-VPC] The Amazon-provided DNS server will resolve Amazon-provided private + // DNS hostnames if you've enabled DNS resolution and DNS hostnames in your + // VPC. If you are not using the Amazon-provided DNS server in your VPC, your + // custom domain name servers must resolve the hostname as appropriate. PrivateDnsName *string `locationName:"privateDnsName" type:"string"` - // The private IP address assigned to the instance. + // The private IPv4 address assigned to the instance. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` // The product codes attached to this instance, if applicable. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"` - // The public DNS name assigned to the instance. This name is not available - // until the instance enters the running state. For EC2-VPC, this name is only - // available if you've enabled DNS hostnames for your VPC. + // (IPv4 only) The public DNS name assigned to the instance. This name is not + // available until the instance enters the running state. For EC2-VPC, this + // name is only available if you've enabled DNS hostnames for your VPC. PublicDnsName *string `locationName:"dnsName" type:"string"` - // The public IP address assigned to the instance, if applicable. + // The public IPv4 address assigned to the instance, if applicable. PublicIpAddress *string `locationName:"ipAddress" type:"string"` // The RAM disk associated with this instance, if applicable. @@ -28051,7 +37399,236 @@ func (s Instance) GoString() string { return s.String() } +// SetAmiLaunchIndex sets the AmiLaunchIndex field's value. +func (s *Instance) SetAmiLaunchIndex(v int64) *Instance { + s.AmiLaunchIndex = &v + return s +} + +// SetArchitecture sets the Architecture field's value. +func (s *Instance) SetArchitecture(v string) *Instance { + s.Architecture = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *Instance) SetBlockDeviceMappings(v []*InstanceBlockDeviceMapping) *Instance { + s.BlockDeviceMappings = v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *Instance) SetClientToken(v string) *Instance { + s.ClientToken = &v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *Instance) SetEbsOptimized(v bool) *Instance { + s.EbsOptimized = &v + return s +} + +// SetEnaSupport sets the EnaSupport field's value. +func (s *Instance) SetEnaSupport(v bool) *Instance { + s.EnaSupport = &v + return s +} + +// SetHypervisor sets the Hypervisor field's value. +func (s *Instance) SetHypervisor(v string) *Instance { + s.Hypervisor = &v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *Instance) SetIamInstanceProfile(v *IamInstanceProfile) *Instance { + s.IamInstanceProfile = v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *Instance) SetImageId(v string) *Instance { + s.ImageId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *Instance) SetInstanceId(v string) *Instance { + s.InstanceId = &v + return s +} + +// SetInstanceLifecycle sets the InstanceLifecycle field's value. +func (s *Instance) SetInstanceLifecycle(v string) *Instance { + s.InstanceLifecycle = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *Instance) SetInstanceType(v string) *Instance { + s.InstanceType = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *Instance) SetKernelId(v string) *Instance { + s.KernelId = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *Instance) SetKeyName(v string) *Instance { + s.KeyName = &v + return s +} + +// SetLaunchTime sets the LaunchTime field's value. +func (s *Instance) SetLaunchTime(v time.Time) *Instance { + s.LaunchTime = &v + return s +} + +// SetMonitoring sets the Monitoring field's value. +func (s *Instance) SetMonitoring(v *Monitoring) *Instance { + s.Monitoring = v + return s +} + +// SetNetworkInterfaces sets the NetworkInterfaces field's value. +func (s *Instance) SetNetworkInterfaces(v []*InstanceNetworkInterface) *Instance { + s.NetworkInterfaces = v + return s +} + +// SetPlacement sets the Placement field's value. +func (s *Instance) SetPlacement(v *Placement) *Instance { + s.Placement = v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *Instance) SetPlatform(v string) *Instance { + s.Platform = &v + return s +} + +// SetPrivateDnsName sets the PrivateDnsName field's value. +func (s *Instance) SetPrivateDnsName(v string) *Instance { + s.PrivateDnsName = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *Instance) SetPrivateIpAddress(v string) *Instance { + s.PrivateIpAddress = &v + return s +} + +// SetProductCodes sets the ProductCodes field's value. +func (s *Instance) SetProductCodes(v []*ProductCode) *Instance { + s.ProductCodes = v + return s +} + +// SetPublicDnsName sets the PublicDnsName field's value. +func (s *Instance) SetPublicDnsName(v string) *Instance { + s.PublicDnsName = &v + return s +} + +// SetPublicIpAddress sets the PublicIpAddress field's value. +func (s *Instance) SetPublicIpAddress(v string) *Instance { + s.PublicIpAddress = &v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *Instance) SetRamdiskId(v string) *Instance { + s.RamdiskId = &v + return s +} + +// SetRootDeviceName sets the RootDeviceName field's value. +func (s *Instance) SetRootDeviceName(v string) *Instance { + s.RootDeviceName = &v + return s +} + +// SetRootDeviceType sets the RootDeviceType field's value. +func (s *Instance) SetRootDeviceType(v string) *Instance { + s.RootDeviceType = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *Instance) SetSecurityGroups(v []*GroupIdentifier) *Instance { + s.SecurityGroups = v + return s +} + +// SetSourceDestCheck sets the SourceDestCheck field's value. +func (s *Instance) SetSourceDestCheck(v bool) *Instance { + s.SourceDestCheck = &v + return s +} + +// SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value. +func (s *Instance) SetSpotInstanceRequestId(v string) *Instance { + s.SpotInstanceRequestId = &v + return s +} + +// SetSriovNetSupport sets the SriovNetSupport field's value. +func (s *Instance) SetSriovNetSupport(v string) *Instance { + s.SriovNetSupport = &v + return s +} + +// SetState sets the State field's value. +func (s *Instance) SetState(v *InstanceState) *Instance { + s.State = v + return s +} + +// SetStateReason sets the StateReason field's value. +func (s *Instance) SetStateReason(v *StateReason) *Instance { + s.StateReason = v + return s +} + +// SetStateTransitionReason sets the StateTransitionReason field's value. +func (s *Instance) SetStateTransitionReason(v string) *Instance { + s.StateTransitionReason = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *Instance) SetSubnetId(v string) *Instance { + s.SubnetId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Instance) SetTags(v []*Tag) *Instance { + s.Tags = v + return s +} + +// SetVirtualizationType sets the VirtualizationType field's value. +func (s *Instance) SetVirtualizationType(v string) *Instance { + s.VirtualizationType = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *Instance) SetVpcId(v string) *Instance { + s.VpcId = &v + return s +} + // Describes a block device mapping. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceBlockDeviceMapping type InstanceBlockDeviceMapping struct { _ struct{} `type:"structure"` @@ -28073,7 +37650,20 @@ func (s InstanceBlockDeviceMapping) GoString() string { return s.String() } +// SetDeviceName sets the DeviceName field's value. +func (s *InstanceBlockDeviceMapping) SetDeviceName(v string) *InstanceBlockDeviceMapping { + s.DeviceName = &v + return s +} + +// SetEbs sets the Ebs field's value. +func (s *InstanceBlockDeviceMapping) SetEbs(v *EbsInstanceBlockDevice) *InstanceBlockDeviceMapping { + s.Ebs = v + return s +} + // Describes a block device mapping entry. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceBlockDeviceMappingSpecification type InstanceBlockDeviceMappingSpecification struct { _ struct{} `type:"structure"` @@ -28101,7 +37691,32 @@ func (s InstanceBlockDeviceMappingSpecification) GoString() string { return s.String() } +// SetDeviceName sets the DeviceName field's value. +func (s *InstanceBlockDeviceMappingSpecification) SetDeviceName(v string) *InstanceBlockDeviceMappingSpecification { + s.DeviceName = &v + return s +} + +// SetEbs sets the Ebs field's value. +func (s *InstanceBlockDeviceMappingSpecification) SetEbs(v *EbsInstanceBlockDeviceSpecification) *InstanceBlockDeviceMappingSpecification { + s.Ebs = v + return s +} + +// SetNoDevice sets the NoDevice field's value. +func (s *InstanceBlockDeviceMappingSpecification) SetNoDevice(v string) *InstanceBlockDeviceMappingSpecification { + s.NoDevice = &v + return s +} + +// SetVirtualName sets the VirtualName field's value. +func (s *InstanceBlockDeviceMappingSpecification) SetVirtualName(v string) *InstanceBlockDeviceMappingSpecification { + s.VirtualName = &v + return s +} + // Information about the instance type that the Dedicated Host supports. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceCapacity type InstanceCapacity struct { _ struct{} `type:"structure"` @@ -28125,7 +37740,26 @@ func (s InstanceCapacity) GoString() string { return s.String() } +// SetAvailableCapacity sets the AvailableCapacity field's value. +func (s *InstanceCapacity) SetAvailableCapacity(v int64) *InstanceCapacity { + s.AvailableCapacity = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *InstanceCapacity) SetInstanceType(v string) *InstanceCapacity { + s.InstanceType = &v + return s +} + +// SetTotalCapacity sets the TotalCapacity field's value. +func (s *InstanceCapacity) SetTotalCapacity(v int64) *InstanceCapacity { + s.TotalCapacity = &v + return s +} + // Describes a Reserved Instance listing state. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceCount type InstanceCount struct { _ struct{} `type:"structure"` @@ -28146,7 +37780,20 @@ func (s InstanceCount) GoString() string { return s.String() } +// SetInstanceCount sets the InstanceCount field's value. +func (s *InstanceCount) SetInstanceCount(v int64) *InstanceCount { + s.InstanceCount = &v + return s +} + +// SetState sets the State field's value. +func (s *InstanceCount) SetState(v string) *InstanceCount { + s.State = &v + return s +} + // Describes an instance to export. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceExportDetails type InstanceExportDetails struct { _ struct{} `type:"structure"` @@ -28167,14 +37814,52 @@ func (s InstanceExportDetails) GoString() string { return s.String() } -// Describes the monitoring information of the instance. +// SetInstanceId sets the InstanceId field's value. +func (s *InstanceExportDetails) SetInstanceId(v string) *InstanceExportDetails { + s.InstanceId = &v + return s +} + +// SetTargetEnvironment sets the TargetEnvironment field's value. +func (s *InstanceExportDetails) SetTargetEnvironment(v string) *InstanceExportDetails { + s.TargetEnvironment = &v + return s +} + +// Describes an IPv6 address. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceIpv6Address +type InstanceIpv6Address struct { + _ struct{} `type:"structure"` + + // The IPv6 address. + Ipv6Address *string `locationName:"ipv6Address" type:"string"` +} + +// String returns the string representation +func (s InstanceIpv6Address) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceIpv6Address) GoString() string { + return s.String() +} + +// SetIpv6Address sets the Ipv6Address field's value. +func (s *InstanceIpv6Address) SetIpv6Address(v string) *InstanceIpv6Address { + s.Ipv6Address = &v + return s +} + +// Describes the monitoring of an instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceMonitoring type InstanceMonitoring struct { _ struct{} `type:"structure"` // The ID of the instance. InstanceId *string `locationName:"instanceId" type:"string"` - // The monitoring information. + // The monitoring for the instance. Monitoring *Monitoring `locationName:"monitoring" type:"structure"` } @@ -28188,11 +37873,24 @@ func (s InstanceMonitoring) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *InstanceMonitoring) SetInstanceId(v string) *InstanceMonitoring { + s.InstanceId = &v + return s +} + +// SetMonitoring sets the Monitoring field's value. +func (s *InstanceMonitoring) SetMonitoring(v *Monitoring) *InstanceMonitoring { + s.Monitoring = v + return s +} + // Describes a network interface. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceNetworkInterface type InstanceNetworkInterface struct { _ struct{} `type:"structure"` - // The association information for an Elastic IP associated with the network + // The association information for an Elastic IPv4 associated with the network // interface. Association *InstanceNetworkInterfaceAssociation `locationName:"association" type:"structure"` @@ -28205,6 +37903,9 @@ type InstanceNetworkInterface struct { // One or more security groups. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"` + // One or more IPv6 addresses associated with the network interface. + Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"` + // The MAC address. MacAddress *string `locationName:"macAddress" type:"string"` @@ -28217,10 +37918,10 @@ type InstanceNetworkInterface struct { // The private DNS name. PrivateDnsName *string `locationName:"privateDnsName" type:"string"` - // The IP address of the network interface within the subnet. + // The IPv4 address of the network interface within the subnet. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` - // The private IP addresses associated with the network interface. + // One or more private IPv4 addresses associated with the network interface. PrivateIpAddresses []*InstancePrivateIpAddress `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"` // Indicates whether to validate network traffic to or from this network interface. @@ -28246,7 +37947,98 @@ func (s InstanceNetworkInterface) GoString() string { return s.String() } -// Describes association information for an Elastic IP address. +// SetAssociation sets the Association field's value. +func (s *InstanceNetworkInterface) SetAssociation(v *InstanceNetworkInterfaceAssociation) *InstanceNetworkInterface { + s.Association = v + return s +} + +// SetAttachment sets the Attachment field's value. +func (s *InstanceNetworkInterface) SetAttachment(v *InstanceNetworkInterfaceAttachment) *InstanceNetworkInterface { + s.Attachment = v + return s +} + +// SetDescription sets the Description field's value. +func (s *InstanceNetworkInterface) SetDescription(v string) *InstanceNetworkInterface { + s.Description = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *InstanceNetworkInterface) SetGroups(v []*GroupIdentifier) *InstanceNetworkInterface { + s.Groups = v + return s +} + +// SetIpv6Addresses sets the Ipv6Addresses field's value. +func (s *InstanceNetworkInterface) SetIpv6Addresses(v []*InstanceIpv6Address) *InstanceNetworkInterface { + s.Ipv6Addresses = v + return s +} + +// SetMacAddress sets the MacAddress field's value. +func (s *InstanceNetworkInterface) SetMacAddress(v string) *InstanceNetworkInterface { + s.MacAddress = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *InstanceNetworkInterface) SetNetworkInterfaceId(v string) *InstanceNetworkInterface { + s.NetworkInterfaceId = &v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *InstanceNetworkInterface) SetOwnerId(v string) *InstanceNetworkInterface { + s.OwnerId = &v + return s +} + +// SetPrivateDnsName sets the PrivateDnsName field's value. +func (s *InstanceNetworkInterface) SetPrivateDnsName(v string) *InstanceNetworkInterface { + s.PrivateDnsName = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *InstanceNetworkInterface) SetPrivateIpAddress(v string) *InstanceNetworkInterface { + s.PrivateIpAddress = &v + return s +} + +// SetPrivateIpAddresses sets the PrivateIpAddresses field's value. +func (s *InstanceNetworkInterface) SetPrivateIpAddresses(v []*InstancePrivateIpAddress) *InstanceNetworkInterface { + s.PrivateIpAddresses = v + return s +} + +// SetSourceDestCheck sets the SourceDestCheck field's value. +func (s *InstanceNetworkInterface) SetSourceDestCheck(v bool) *InstanceNetworkInterface { + s.SourceDestCheck = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *InstanceNetworkInterface) SetStatus(v string) *InstanceNetworkInterface { + s.Status = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *InstanceNetworkInterface) SetSubnetId(v string) *InstanceNetworkInterface { + s.SubnetId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *InstanceNetworkInterface) SetVpcId(v string) *InstanceNetworkInterface { + s.VpcId = &v + return s +} + +// Describes association information for an Elastic IP address (IPv4). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceNetworkInterfaceAssociation type InstanceNetworkInterfaceAssociation struct { _ struct{} `type:"structure"` @@ -28270,7 +38062,26 @@ func (s InstanceNetworkInterfaceAssociation) GoString() string { return s.String() } +// SetIpOwnerId sets the IpOwnerId field's value. +func (s *InstanceNetworkInterfaceAssociation) SetIpOwnerId(v string) *InstanceNetworkInterfaceAssociation { + s.IpOwnerId = &v + return s +} + +// SetPublicDnsName sets the PublicDnsName field's value. +func (s *InstanceNetworkInterfaceAssociation) SetPublicDnsName(v string) *InstanceNetworkInterfaceAssociation { + s.PublicDnsName = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *InstanceNetworkInterfaceAssociation) SetPublicIp(v string) *InstanceNetworkInterfaceAssociation { + s.PublicIp = &v + return s +} + // Describes a network interface attachment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceNetworkInterfaceAttachment type InstanceNetworkInterfaceAttachment struct { _ struct{} `type:"structure"` @@ -28300,11 +38111,42 @@ func (s InstanceNetworkInterfaceAttachment) GoString() string { return s.String() } +// SetAttachTime sets the AttachTime field's value. +func (s *InstanceNetworkInterfaceAttachment) SetAttachTime(v time.Time) *InstanceNetworkInterfaceAttachment { + s.AttachTime = &v + return s +} + +// SetAttachmentId sets the AttachmentId field's value. +func (s *InstanceNetworkInterfaceAttachment) SetAttachmentId(v string) *InstanceNetworkInterfaceAttachment { + s.AttachmentId = &v + return s +} + +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *InstanceNetworkInterfaceAttachment) SetDeleteOnTermination(v bool) *InstanceNetworkInterfaceAttachment { + s.DeleteOnTermination = &v + return s +} + +// SetDeviceIndex sets the DeviceIndex field's value. +func (s *InstanceNetworkInterfaceAttachment) SetDeviceIndex(v int64) *InstanceNetworkInterfaceAttachment { + s.DeviceIndex = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *InstanceNetworkInterfaceAttachment) SetStatus(v string) *InstanceNetworkInterfaceAttachment { + s.Status = &v + return s +} + // Describes a network interface. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceNetworkInterfaceSpecification type InstanceNetworkInterfaceSpecification struct { _ struct{} `type:"structure"` - // Indicates whether to assign a public IP address to an instance you launch + // Indicates whether to assign a public IPv4 address to an instance you launch // in a VPC. The public IP address can only be assigned to a network interface // for eth0, and can only be assigned to a new network interface, not an existing // one. You cannot specify more than one network interface in the request. If @@ -28329,20 +38171,34 @@ type InstanceNetworkInterfaceSpecification struct { // creating a network interface when launching an instance. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"` + // A number of IPv6 addresses to assign to the network interface. Amazon EC2 + // chooses the IPv6 addresses from the range of the subnet. You cannot specify + // this option and the option to assign specific IPv6 addresses in the same + // request. You can specify this option if you've specified a minimum number + // of instances to launch. + Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"` + + // One or more IPv6 addresses to assign to the network interface. You cannot + // specify this option and the option to assign a number of IPv6 addresses in + // the same request. You cannot specify this option if you've specified a minimum + // number of instances to launch. + Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6AddressesSet" queryName:"Ipv6Addresses" locationNameList:"item" type:"list"` + // The ID of the network interface. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"` - // The private IP address of the network interface. Applies only if creating + // The private IPv4 address of the network interface. Applies only if creating // a network interface when launching an instance. You cannot specify this option // if you're launching more than one instance in a RunInstances request. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` - // One or more private IP addresses to assign to the network interface. Only - // one private IP address can be designated as primary. You cannot specify this - // option if you're launching more than one instance in a RunInstances request. + // One or more private IPv4 addresses to assign to the network interface. Only + // one private IPv4 address can be designated as primary. You cannot specify + // this option if you're launching more than one instance in a RunInstances + // request. PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddressesSet" queryName:"PrivateIpAddresses" locationNameList:"item" type:"list"` - // The number of secondary private IP addresses. You can't specify this option + // The number of secondary private IPv4 addresses. You can't specify this option // and specify more than one private IP address using the private IP addresses // option. You cannot specify this option if you're launching more than one // instance in a RunInstances request. @@ -28383,21 +38239,94 @@ func (s *InstanceNetworkInterfaceSpecification) Validate() error { return nil } -// Describes a private IP address. +// SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value. +func (s *InstanceNetworkInterfaceSpecification) SetAssociatePublicIpAddress(v bool) *InstanceNetworkInterfaceSpecification { + s.AssociatePublicIpAddress = &v + return s +} + +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *InstanceNetworkInterfaceSpecification) SetDeleteOnTermination(v bool) *InstanceNetworkInterfaceSpecification { + s.DeleteOnTermination = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *InstanceNetworkInterfaceSpecification) SetDescription(v string) *InstanceNetworkInterfaceSpecification { + s.Description = &v + return s +} + +// SetDeviceIndex sets the DeviceIndex field's value. +func (s *InstanceNetworkInterfaceSpecification) SetDeviceIndex(v int64) *InstanceNetworkInterfaceSpecification { + s.DeviceIndex = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *InstanceNetworkInterfaceSpecification) SetGroups(v []*string) *InstanceNetworkInterfaceSpecification { + s.Groups = v + return s +} + +// SetIpv6AddressCount sets the Ipv6AddressCount field's value. +func (s *InstanceNetworkInterfaceSpecification) SetIpv6AddressCount(v int64) *InstanceNetworkInterfaceSpecification { + s.Ipv6AddressCount = &v + return s +} + +// SetIpv6Addresses sets the Ipv6Addresses field's value. +func (s *InstanceNetworkInterfaceSpecification) SetIpv6Addresses(v []*InstanceIpv6Address) *InstanceNetworkInterfaceSpecification { + s.Ipv6Addresses = v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *InstanceNetworkInterfaceSpecification) SetNetworkInterfaceId(v string) *InstanceNetworkInterfaceSpecification { + s.NetworkInterfaceId = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *InstanceNetworkInterfaceSpecification) SetPrivateIpAddress(v string) *InstanceNetworkInterfaceSpecification { + s.PrivateIpAddress = &v + return s +} + +// SetPrivateIpAddresses sets the PrivateIpAddresses field's value. +func (s *InstanceNetworkInterfaceSpecification) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *InstanceNetworkInterfaceSpecification { + s.PrivateIpAddresses = v + return s +} + +// SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value. +func (s *InstanceNetworkInterfaceSpecification) SetSecondaryPrivateIpAddressCount(v int64) *InstanceNetworkInterfaceSpecification { + s.SecondaryPrivateIpAddressCount = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *InstanceNetworkInterfaceSpecification) SetSubnetId(v string) *InstanceNetworkInterfaceSpecification { + s.SubnetId = &v + return s +} + +// Describes a private IPv4 address. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstancePrivateIpAddress type InstancePrivateIpAddress struct { _ struct{} `type:"structure"` // The association information for an Elastic IP address for the network interface. Association *InstanceNetworkInterfaceAssociation `locationName:"association" type:"structure"` - // Indicates whether this IP address is the primary private IP address of the - // network interface. + // Indicates whether this IPv4 address is the primary private IP address of + // the network interface. Primary *bool `locationName:"primary" type:"boolean"` - // The private DNS name. + // The private IPv4 DNS name. PrivateDnsName *string `locationName:"privateDnsName" type:"string"` - // The private IP address of the network interface. + // The private IPv4 address of the network interface. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` } @@ -28411,24 +38340,49 @@ func (s InstancePrivateIpAddress) GoString() string { return s.String() } -// Describes the current state of the instance. +// SetAssociation sets the Association field's value. +func (s *InstancePrivateIpAddress) SetAssociation(v *InstanceNetworkInterfaceAssociation) *InstancePrivateIpAddress { + s.Association = v + return s +} + +// SetPrimary sets the Primary field's value. +func (s *InstancePrivateIpAddress) SetPrimary(v bool) *InstancePrivateIpAddress { + s.Primary = &v + return s +} + +// SetPrivateDnsName sets the PrivateDnsName field's value. +func (s *InstancePrivateIpAddress) SetPrivateDnsName(v string) *InstancePrivateIpAddress { + s.PrivateDnsName = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *InstancePrivateIpAddress) SetPrivateIpAddress(v string) *InstancePrivateIpAddress { + s.PrivateIpAddress = &v + return s +} + +// Describes the current state of an instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceState type InstanceState struct { _ struct{} `type:"structure"` // The low byte represents the state. The high byte is an opaque internal value // and should be ignored. // - // 0 : pending + // * 0 : pending // - // 16 : running + // * 16 : running // - // 32 : shutting-down + // * 32 : shutting-down // - // 48 : terminated + // * 48 : terminated // - // 64 : stopping + // * 64 : stopping // - // 80 : stopped + // * 80 : stopped Code *int64 `locationName:"code" type:"integer"` // The current state of the instance. @@ -28445,7 +38399,20 @@ func (s InstanceState) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *InstanceState) SetCode(v int64) *InstanceState { + s.Code = &v + return s +} + +// SetName sets the Name field's value. +func (s *InstanceState) SetName(v string) *InstanceState { + s.Name = &v + return s +} + // Describes an instance state change. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceStateChange type InstanceStateChange struct { _ struct{} `type:"structure"` @@ -28469,7 +38436,26 @@ func (s InstanceStateChange) GoString() string { return s.String() } +// SetCurrentState sets the CurrentState field's value. +func (s *InstanceStateChange) SetCurrentState(v *InstanceState) *InstanceStateChange { + s.CurrentState = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *InstanceStateChange) SetInstanceId(v string) *InstanceStateChange { + s.InstanceId = &v + return s +} + +// SetPreviousState sets the PreviousState field's value. +func (s *InstanceStateChange) SetPreviousState(v *InstanceState) *InstanceStateChange { + s.PreviousState = v + return s +} + // Describes the status of an instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceStatus type InstanceStatus struct { _ struct{} `type:"structure"` @@ -28506,7 +38492,44 @@ func (s InstanceStatus) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *InstanceStatus) SetAvailabilityZone(v string) *InstanceStatus { + s.AvailabilityZone = &v + return s +} + +// SetEvents sets the Events field's value. +func (s *InstanceStatus) SetEvents(v []*InstanceStatusEvent) *InstanceStatus { + s.Events = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *InstanceStatus) SetInstanceId(v string) *InstanceStatus { + s.InstanceId = &v + return s +} + +// SetInstanceState sets the InstanceState field's value. +func (s *InstanceStatus) SetInstanceState(v *InstanceState) *InstanceStatus { + s.InstanceState = v + return s +} + +// SetInstanceStatus sets the InstanceStatus field's value. +func (s *InstanceStatus) SetInstanceStatus(v *InstanceStatusSummary) *InstanceStatus { + s.InstanceStatus = v + return s +} + +// SetSystemStatus sets the SystemStatus field's value. +func (s *InstanceStatus) SetSystemStatus(v *InstanceStatusSummary) *InstanceStatus { + s.SystemStatus = v + return s +} + // Describes the instance status. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceStatusDetails type InstanceStatusDetails struct { _ struct{} `type:"structure"` @@ -28531,7 +38554,26 @@ func (s InstanceStatusDetails) GoString() string { return s.String() } +// SetImpairedSince sets the ImpairedSince field's value. +func (s *InstanceStatusDetails) SetImpairedSince(v time.Time) *InstanceStatusDetails { + s.ImpairedSince = &v + return s +} + +// SetName sets the Name field's value. +func (s *InstanceStatusDetails) SetName(v string) *InstanceStatusDetails { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *InstanceStatusDetails) SetStatus(v string) *InstanceStatusDetails { + s.Status = &v + return s +} + // Describes a scheduled event for an instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceStatusEvent type InstanceStatusEvent struct { _ struct{} `type:"structure"` @@ -28562,7 +38604,32 @@ func (s InstanceStatusEvent) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *InstanceStatusEvent) SetCode(v string) *InstanceStatusEvent { + s.Code = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *InstanceStatusEvent) SetDescription(v string) *InstanceStatusEvent { + s.Description = &v + return s +} + +// SetNotAfter sets the NotAfter field's value. +func (s *InstanceStatusEvent) SetNotAfter(v time.Time) *InstanceStatusEvent { + s.NotAfter = &v + return s +} + +// SetNotBefore sets the NotBefore field's value. +func (s *InstanceStatusEvent) SetNotBefore(v time.Time) *InstanceStatusEvent { + s.NotBefore = &v + return s +} + // Describes the status of an instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceStatusSummary type InstanceStatusSummary struct { _ struct{} `type:"structure"` @@ -28583,7 +38650,20 @@ func (s InstanceStatusSummary) GoString() string { return s.String() } +// SetDetails sets the Details field's value. +func (s *InstanceStatusSummary) SetDetails(v []*InstanceStatusDetails) *InstanceStatusSummary { + s.Details = v + return s +} + +// SetStatus sets the Status field's value. +func (s *InstanceStatusSummary) SetStatus(v string) *InstanceStatusSummary { + s.Status = &v + return s +} + // Describes an Internet gateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InternetGateway type InternetGateway struct { _ struct{} `type:"structure"` @@ -28607,7 +38687,27 @@ func (s InternetGateway) GoString() string { return s.String() } -// Describes the attachment of a VPC to an Internet gateway. +// SetAttachments sets the Attachments field's value. +func (s *InternetGateway) SetAttachments(v []*InternetGatewayAttachment) *InternetGateway { + s.Attachments = v + return s +} + +// SetInternetGatewayId sets the InternetGatewayId field's value. +func (s *InternetGateway) SetInternetGatewayId(v string) *InternetGateway { + s.InternetGatewayId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *InternetGateway) SetTags(v []*Tag) *InternetGateway { + s.Tags = v + return s +} + +// Describes the attachment of a VPC to an Internet gateway or an egress-only +// Internet gateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InternetGatewayAttachment type InternetGatewayAttachment struct { _ struct{} `type:"structure"` @@ -28628,32 +38728,51 @@ func (s InternetGatewayAttachment) GoString() string { return s.String() } +// SetState sets the State field's value. +func (s *InternetGatewayAttachment) SetState(v string) *InternetGatewayAttachment { + s.State = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *InternetGatewayAttachment) SetVpcId(v string) *InternetGatewayAttachment { + s.VpcId = &v + return s +} + // Describes a security group rule. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IpPermission type IpPermission struct { _ struct{} `type:"structure"` - // The start of port range for the TCP and UDP protocols, or an ICMP type number. - // A value of -1 indicates all ICMP types. + // The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 + // type number. A value of -1 indicates all ICMP/ICMPv6 types. FromPort *int64 `locationName:"fromPort" type:"integer"` - // The IP protocol name (for tcp, udp, and icmp) or number (see Protocol Numbers - // (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)). + // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)). // - // [EC2-VPC only] When you authorize or revoke security group rules, you can - // use -1 to specify all. + // [EC2-VPC only] Use -1 to specify all protocols. When authorizing security + // group rules, specifying -1 or a protocol number other than tcp, udp, icmp, + // or 58 (ICMPv6) allows traffic on all ports, regardless of any port range + // you specify. For tcp, udp, and icmp, you must specify a port range. For 58 + // (ICMPv6), you can optionally specify a port range; if you don't, traffic + // for all types and codes is allowed when authorizing rules. IpProtocol *string `locationName:"ipProtocol" type:"string"` - // One or more IP ranges. + // One or more IPv4 ranges. IpRanges []*IpRange `locationName:"ipRanges" locationNameList:"item" type:"list"` + // [EC2-VPC only] One or more IPv6 ranges. + Ipv6Ranges []*Ipv6Range `locationName:"ipv6Ranges" locationNameList:"item" type:"list"` + // (Valid for AuthorizeSecurityGroupEgress, RevokeSecurityGroupEgress and DescribeSecurityGroups // only) One or more prefix list IDs for an AWS service. In an AuthorizeSecurityGroupEgress // request, this is the AWS service that you want to access through a VPC endpoint // from instances associated with the security group. PrefixListIds []*PrefixListId `locationName:"prefixListIds" locationNameList:"item" type:"list"` - // The end of port range for the TCP and UDP protocols, or an ICMP code. A value - // of -1 indicates all ICMP codes for the specified ICMP type. + // The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. + // A value of -1 indicates all ICMP/ICMPv6 codes for the specified ICMP type. ToPort *int64 `locationName:"toPort" type:"integer"` // One or more security group and AWS account ID pairs. @@ -28670,12 +38789,55 @@ func (s IpPermission) GoString() string { return s.String() } -// Describes an IP range. +// SetFromPort sets the FromPort field's value. +func (s *IpPermission) SetFromPort(v int64) *IpPermission { + s.FromPort = &v + return s +} + +// SetIpProtocol sets the IpProtocol field's value. +func (s *IpPermission) SetIpProtocol(v string) *IpPermission { + s.IpProtocol = &v + return s +} + +// SetIpRanges sets the IpRanges field's value. +func (s *IpPermission) SetIpRanges(v []*IpRange) *IpPermission { + s.IpRanges = v + return s +} + +// SetIpv6Ranges sets the Ipv6Ranges field's value. +func (s *IpPermission) SetIpv6Ranges(v []*Ipv6Range) *IpPermission { + s.Ipv6Ranges = v + return s +} + +// SetPrefixListIds sets the PrefixListIds field's value. +func (s *IpPermission) SetPrefixListIds(v []*PrefixListId) *IpPermission { + s.PrefixListIds = v + return s +} + +// SetToPort sets the ToPort field's value. +func (s *IpPermission) SetToPort(v int64) *IpPermission { + s.ToPort = &v + return s +} + +// SetUserIdGroupPairs sets the UserIdGroupPairs field's value. +func (s *IpPermission) SetUserIdGroupPairs(v []*UserIdGroupPair) *IpPermission { + s.UserIdGroupPairs = v + return s +} + +// Describes an IPv4 range. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IpRange type IpRange struct { _ struct{} `type:"structure"` - // The CIDR range. You can either specify a CIDR range or a source security - // group, not both. + // The IPv4 CIDR range. You can either specify a CIDR range or a source security + // group, not both. To specify a single IPv4 address, use the /32 prefix. CidrIp *string `locationName:"cidrIp" type:"string"` } @@ -28689,7 +38851,65 @@ func (s IpRange) GoString() string { return s.String() } +// SetCidrIp sets the CidrIp field's value. +func (s *IpRange) SetCidrIp(v string) *IpRange { + s.CidrIp = &v + return s +} + +// Describes an IPv6 CIDR block. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Ipv6CidrBlock +type Ipv6CidrBlock struct { + _ struct{} `type:"structure"` + + // The IPv6 CIDR block. + Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"` +} + +// String returns the string representation +func (s Ipv6CidrBlock) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Ipv6CidrBlock) GoString() string { + return s.String() +} + +// SetIpv6CidrBlock sets the Ipv6CidrBlock field's value. +func (s *Ipv6CidrBlock) SetIpv6CidrBlock(v string) *Ipv6CidrBlock { + s.Ipv6CidrBlock = &v + return s +} + +// [EC2-VPC only] Describes an IPv6 range. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Ipv6Range +type Ipv6Range struct { + _ struct{} `type:"structure"` + + // The IPv6 CIDR range. You can either specify a CIDR range or a source security + // group, not both. To specify a single IPv6 address, use the /128 prefix. + CidrIpv6 *string `locationName:"cidrIpv6" type:"string"` +} + +// String returns the string representation +func (s Ipv6Range) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Ipv6Range) GoString() string { + return s.String() +} + +// SetCidrIpv6 sets the CidrIpv6 field's value. +func (s *Ipv6Range) SetCidrIpv6(v string) *Ipv6Range { + s.CidrIpv6 = &v + return s +} + // Describes a key pair. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/KeyPairInfo type KeyPairInfo struct { _ struct{} `type:"structure"` @@ -28713,7 +38933,20 @@ func (s KeyPairInfo) GoString() string { return s.String() } +// SetKeyFingerprint sets the KeyFingerprint field's value. +func (s *KeyPairInfo) SetKeyFingerprint(v string) *KeyPairInfo { + s.KeyFingerprint = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *KeyPairInfo) SetKeyName(v string) *KeyPairInfo { + s.KeyName = &v + return s +} + // Describes a launch permission. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchPermission type LaunchPermission struct { _ struct{} `type:"structure"` @@ -28734,7 +38967,20 @@ func (s LaunchPermission) GoString() string { return s.String() } +// SetGroup sets the Group field's value. +func (s *LaunchPermission) SetGroup(v string) *LaunchPermission { + s.Group = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *LaunchPermission) SetUserId(v string) *LaunchPermission { + s.UserId = &v + return s +} + // Describes a launch permission modification. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchPermissionModifications type LaunchPermissionModifications struct { _ struct{} `type:"structure"` @@ -28756,7 +39002,20 @@ func (s LaunchPermissionModifications) GoString() string { return s.String() } +// SetAdd sets the Add field's value. +func (s *LaunchPermissionModifications) SetAdd(v []*LaunchPermission) *LaunchPermissionModifications { + s.Add = v + return s +} + +// SetRemove sets the Remove field's value. +func (s *LaunchPermissionModifications) SetRemove(v []*LaunchPermission) *LaunchPermissionModifications { + s.Remove = v + return s +} + // Describes the launch specification for an instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchSpecification type LaunchSpecification struct { _ struct{} `type:"structure"` @@ -28793,10 +39052,11 @@ type LaunchSpecification struct { // The name of the key pair. KeyName *string `locationName:"keyName" type:"string"` - // Describes the monitoring for the instance. + // Describes the monitoring of an instance. Monitoring *RunInstancesMonitoringEnabled `locationName:"monitoring" type:"structure"` - // One or more network interfaces. + // One or more network interfaces. If you specify a network interface, you must + // specify subnet IDs and security group IDs using the network interface. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"` // The placement information for the instance. @@ -28829,7 +39089,98 @@ func (s LaunchSpecification) GoString() string { return s.String() } +// SetAddressingType sets the AddressingType field's value. +func (s *LaunchSpecification) SetAddressingType(v string) *LaunchSpecification { + s.AddressingType = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *LaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *LaunchSpecification { + s.BlockDeviceMappings = v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *LaunchSpecification) SetEbsOptimized(v bool) *LaunchSpecification { + s.EbsOptimized = &v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *LaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *LaunchSpecification { + s.IamInstanceProfile = v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *LaunchSpecification) SetImageId(v string) *LaunchSpecification { + s.ImageId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *LaunchSpecification) SetInstanceType(v string) *LaunchSpecification { + s.InstanceType = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *LaunchSpecification) SetKernelId(v string) *LaunchSpecification { + s.KernelId = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *LaunchSpecification) SetKeyName(v string) *LaunchSpecification { + s.KeyName = &v + return s +} + +// SetMonitoring sets the Monitoring field's value. +func (s *LaunchSpecification) SetMonitoring(v *RunInstancesMonitoringEnabled) *LaunchSpecification { + s.Monitoring = v + return s +} + +// SetNetworkInterfaces sets the NetworkInterfaces field's value. +func (s *LaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *LaunchSpecification { + s.NetworkInterfaces = v + return s +} + +// SetPlacement sets the Placement field's value. +func (s *LaunchSpecification) SetPlacement(v *SpotPlacement) *LaunchSpecification { + s.Placement = v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *LaunchSpecification) SetRamdiskId(v string) *LaunchSpecification { + s.RamdiskId = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *LaunchSpecification) SetSecurityGroups(v []*GroupIdentifier) *LaunchSpecification { + s.SecurityGroups = v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *LaunchSpecification) SetSubnetId(v string) *LaunchSpecification { + s.SubnetId = &v + return s +} + +// SetUserData sets the UserData field's value. +func (s *LaunchSpecification) SetUserData(v string) *LaunchSpecification { + s.UserData = &v + return s +} + // Contains the parameters for ModifyHosts. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyHostsRequest type ModifyHostsInput struct { _ struct{} `type:"structure"` @@ -28870,7 +39221,20 @@ func (s *ModifyHostsInput) Validate() error { return nil } +// SetAutoPlacement sets the AutoPlacement field's value. +func (s *ModifyHostsInput) SetAutoPlacement(v string) *ModifyHostsInput { + s.AutoPlacement = &v + return s +} + +// SetHostIds sets the HostIds field's value. +func (s *ModifyHostsInput) SetHostIds(v []*string) *ModifyHostsInput { + s.HostIds = v + return s +} + // Contains the output of ModifyHosts. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyHostsResult type ModifyHostsOutput struct { _ struct{} `type:"structure"` @@ -28892,7 +39256,20 @@ func (s ModifyHostsOutput) GoString() string { return s.String() } +// SetSuccessful sets the Successful field's value. +func (s *ModifyHostsOutput) SetSuccessful(v []*string) *ModifyHostsOutput { + s.Successful = v + return s +} + +// SetUnsuccessful sets the Unsuccessful field's value. +func (s *ModifyHostsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *ModifyHostsOutput { + s.Unsuccessful = v + return s +} + // Contains the parameters of ModifyIdFormat. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdFormatRequest type ModifyIdFormatInput struct { _ struct{} `type:"structure"` @@ -28933,6 +39310,19 @@ func (s *ModifyIdFormatInput) Validate() error { return nil } +// SetResource sets the Resource field's value. +func (s *ModifyIdFormatInput) SetResource(v string) *ModifyIdFormatInput { + s.Resource = &v + return s +} + +// SetUseLongIds sets the UseLongIds field's value. +func (s *ModifyIdFormatInput) SetUseLongIds(v bool) *ModifyIdFormatInput { + s.UseLongIds = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdFormatOutput type ModifyIdFormatOutput struct { _ struct{} `type:"structure"` } @@ -28948,6 +39338,7 @@ func (s ModifyIdFormatOutput) GoString() string { } // Contains the parameters of ModifyIdentityIdFormat. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdentityIdFormatRequest type ModifyIdentityIdFormatInput struct { _ struct{} `type:"structure"` @@ -28998,6 +39389,25 @@ func (s *ModifyIdentityIdFormatInput) Validate() error { return nil } +// SetPrincipalArn sets the PrincipalArn field's value. +func (s *ModifyIdentityIdFormatInput) SetPrincipalArn(v string) *ModifyIdentityIdFormatInput { + s.PrincipalArn = &v + return s +} + +// SetResource sets the Resource field's value. +func (s *ModifyIdentityIdFormatInput) SetResource(v string) *ModifyIdentityIdFormatInput { + s.Resource = &v + return s +} + +// SetUseLongIds sets the UseLongIds field's value. +func (s *ModifyIdentityIdFormatInput) SetUseLongIds(v bool) *ModifyIdentityIdFormatInput { + s.UseLongIds = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdentityIdFormatOutput type ModifyIdentityIdFormatOutput struct { _ struct{} `type:"structure"` } @@ -29013,6 +39423,7 @@ func (s ModifyIdentityIdFormatOutput) GoString() string { } // Contains the parameters for ModifyImageAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttributeRequest type ModifyImageAttributeInput struct { _ struct{} `type:"structure"` @@ -29079,6 +39490,67 @@ func (s *ModifyImageAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *ModifyImageAttributeInput) SetAttribute(v string) *ModifyImageAttributeInput { + s.Attribute = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ModifyImageAttributeInput) SetDescription(v *AttributeValue) *ModifyImageAttributeInput { + s.Description = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifyImageAttributeInput) SetDryRun(v bool) *ModifyImageAttributeInput { + s.DryRun = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *ModifyImageAttributeInput) SetImageId(v string) *ModifyImageAttributeInput { + s.ImageId = &v + return s +} + +// SetLaunchPermission sets the LaunchPermission field's value. +func (s *ModifyImageAttributeInput) SetLaunchPermission(v *LaunchPermissionModifications) *ModifyImageAttributeInput { + s.LaunchPermission = v + return s +} + +// SetOperationType sets the OperationType field's value. +func (s *ModifyImageAttributeInput) SetOperationType(v string) *ModifyImageAttributeInput { + s.OperationType = &v + return s +} + +// SetProductCodes sets the ProductCodes field's value. +func (s *ModifyImageAttributeInput) SetProductCodes(v []*string) *ModifyImageAttributeInput { + s.ProductCodes = v + return s +} + +// SetUserGroups sets the UserGroups field's value. +func (s *ModifyImageAttributeInput) SetUserGroups(v []*string) *ModifyImageAttributeInput { + s.UserGroups = v + return s +} + +// SetUserIds sets the UserIds field's value. +func (s *ModifyImageAttributeInput) SetUserIds(v []*string) *ModifyImageAttributeInput { + s.UserIds = v + return s +} + +// SetValue sets the Value field's value. +func (s *ModifyImageAttributeInput) SetValue(v string) *ModifyImageAttributeInput { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttributeOutput type ModifyImageAttributeOutput struct { _ struct{} `type:"structure"` } @@ -29094,6 +39566,7 @@ func (s ModifyImageAttributeOutput) GoString() string { } // Contains the parameters for ModifyInstanceAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttributeRequest type ModifyInstanceAttributeInput struct { _ struct{} `type:"structure"` @@ -29131,8 +39604,8 @@ type ModifyInstanceAttributeInput struct { // Set to true to enable enhanced networking with ENA for the instance. // - // This option is supported only for HVM instances. Specifying this option - // with a PV instance can make it unreachable. + // This option is supported only for HVM instances. Specifying this option with + // a PV instance can make it unreachable. EnaSupport *AttributeBooleanValue `locationName:"enaSupport" type:"structure"` // [EC2-VPC] Changes the security groups of the instance. You must specify at @@ -29175,8 +39648,8 @@ type ModifyInstanceAttributeInput struct { // There is no way to disable enhanced networking with the Intel 82599 Virtual // Function interface at this time. // - // This option is supported only for HVM instances. Specifying this option - // with a PV instance can make it unreachable. + // This option is supported only for HVM instances. Specifying this option with + // a PV instance can make it unreachable. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"` // Changes the instance's user data to the specified value. If you are using @@ -29213,6 +39686,103 @@ func (s *ModifyInstanceAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *ModifyInstanceAttributeInput) SetAttribute(v string) *ModifyInstanceAttributeInput { + s.Attribute = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *ModifyInstanceAttributeInput) SetBlockDeviceMappings(v []*InstanceBlockDeviceMappingSpecification) *ModifyInstanceAttributeInput { + s.BlockDeviceMappings = v + return s +} + +// SetDisableApiTermination sets the DisableApiTermination field's value. +func (s *ModifyInstanceAttributeInput) SetDisableApiTermination(v *AttributeBooleanValue) *ModifyInstanceAttributeInput { + s.DisableApiTermination = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifyInstanceAttributeInput) SetDryRun(v bool) *ModifyInstanceAttributeInput { + s.DryRun = &v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *ModifyInstanceAttributeInput) SetEbsOptimized(v *AttributeBooleanValue) *ModifyInstanceAttributeInput { + s.EbsOptimized = v + return s +} + +// SetEnaSupport sets the EnaSupport field's value. +func (s *ModifyInstanceAttributeInput) SetEnaSupport(v *AttributeBooleanValue) *ModifyInstanceAttributeInput { + s.EnaSupport = v + return s +} + +// SetGroups sets the Groups field's value. +func (s *ModifyInstanceAttributeInput) SetGroups(v []*string) *ModifyInstanceAttributeInput { + s.Groups = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ModifyInstanceAttributeInput) SetInstanceId(v string) *ModifyInstanceAttributeInput { + s.InstanceId = &v + return s +} + +// SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value. +func (s *ModifyInstanceAttributeInput) SetInstanceInitiatedShutdownBehavior(v *AttributeValue) *ModifyInstanceAttributeInput { + s.InstanceInitiatedShutdownBehavior = v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ModifyInstanceAttributeInput) SetInstanceType(v *AttributeValue) *ModifyInstanceAttributeInput { + s.InstanceType = v + return s +} + +// SetKernel sets the Kernel field's value. +func (s *ModifyInstanceAttributeInput) SetKernel(v *AttributeValue) *ModifyInstanceAttributeInput { + s.Kernel = v + return s +} + +// SetRamdisk sets the Ramdisk field's value. +func (s *ModifyInstanceAttributeInput) SetRamdisk(v *AttributeValue) *ModifyInstanceAttributeInput { + s.Ramdisk = v + return s +} + +// SetSourceDestCheck sets the SourceDestCheck field's value. +func (s *ModifyInstanceAttributeInput) SetSourceDestCheck(v *AttributeBooleanValue) *ModifyInstanceAttributeInput { + s.SourceDestCheck = v + return s +} + +// SetSriovNetSupport sets the SriovNetSupport field's value. +func (s *ModifyInstanceAttributeInput) SetSriovNetSupport(v *AttributeValue) *ModifyInstanceAttributeInput { + s.SriovNetSupport = v + return s +} + +// SetUserData sets the UserData field's value. +func (s *ModifyInstanceAttributeInput) SetUserData(v *BlobAttributeValue) *ModifyInstanceAttributeInput { + s.UserData = v + return s +} + +// SetValue sets the Value field's value. +func (s *ModifyInstanceAttributeInput) SetValue(v string) *ModifyInstanceAttributeInput { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttributeOutput type ModifyInstanceAttributeOutput struct { _ struct{} `type:"structure"` } @@ -29228,6 +39798,7 @@ func (s ModifyInstanceAttributeOutput) GoString() string { } // Contains the parameters for ModifyInstancePlacement. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstancePlacementRequest type ModifyInstancePlacementInput struct { _ struct{} `type:"structure"` @@ -29269,7 +39840,32 @@ func (s *ModifyInstancePlacementInput) Validate() error { return nil } +// SetAffinity sets the Affinity field's value. +func (s *ModifyInstancePlacementInput) SetAffinity(v string) *ModifyInstancePlacementInput { + s.Affinity = &v + return s +} + +// SetHostId sets the HostId field's value. +func (s *ModifyInstancePlacementInput) SetHostId(v string) *ModifyInstancePlacementInput { + s.HostId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ModifyInstancePlacementInput) SetInstanceId(v string) *ModifyInstancePlacementInput { + s.InstanceId = &v + return s +} + +// SetTenancy sets the Tenancy field's value. +func (s *ModifyInstancePlacementInput) SetTenancy(v string) *ModifyInstancePlacementInput { + s.Tenancy = &v + return s +} + // Contains the output of ModifyInstancePlacement. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstancePlacementResult type ModifyInstancePlacementOutput struct { _ struct{} `type:"structure"` @@ -29287,7 +39883,14 @@ func (s ModifyInstancePlacementOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *ModifyInstancePlacementOutput) SetReturn(v bool) *ModifyInstancePlacementOutput { + s.Return = &v + return s +} + // Contains the parameters for ModifyNetworkInterfaceAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttributeRequest type ModifyNetworkInterfaceAttributeInput struct { _ struct{} `type:"structure"` @@ -29346,6 +39949,43 @@ func (s *ModifyNetworkInterfaceAttributeInput) Validate() error { return nil } +// SetAttachment sets the Attachment field's value. +func (s *ModifyNetworkInterfaceAttributeInput) SetAttachment(v *NetworkInterfaceAttachmentChanges) *ModifyNetworkInterfaceAttributeInput { + s.Attachment = v + return s +} + +// SetDescription sets the Description field's value. +func (s *ModifyNetworkInterfaceAttributeInput) SetDescription(v *AttributeValue) *ModifyNetworkInterfaceAttributeInput { + s.Description = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifyNetworkInterfaceAttributeInput) SetDryRun(v bool) *ModifyNetworkInterfaceAttributeInput { + s.DryRun = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *ModifyNetworkInterfaceAttributeInput) SetGroups(v []*string) *ModifyNetworkInterfaceAttributeInput { + s.Groups = v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *ModifyNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *ModifyNetworkInterfaceAttributeInput { + s.NetworkInterfaceId = &v + return s +} + +// SetSourceDestCheck sets the SourceDestCheck field's value. +func (s *ModifyNetworkInterfaceAttributeInput) SetSourceDestCheck(v *AttributeBooleanValue) *ModifyNetworkInterfaceAttributeInput { + s.SourceDestCheck = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttributeOutput type ModifyNetworkInterfaceAttributeOutput struct { _ struct{} `type:"structure"` } @@ -29361,6 +40001,7 @@ func (s ModifyNetworkInterfaceAttributeOutput) GoString() string { } // Contains the parameters for ModifyReservedInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyReservedInstancesRequest type ModifyReservedInstancesInput struct { _ struct{} `type:"structure"` @@ -29405,7 +40046,26 @@ func (s *ModifyReservedInstancesInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *ModifyReservedInstancesInput) SetClientToken(v string) *ModifyReservedInstancesInput { + s.ClientToken = &v + return s +} + +// SetReservedInstancesIds sets the ReservedInstancesIds field's value. +func (s *ModifyReservedInstancesInput) SetReservedInstancesIds(v []*string) *ModifyReservedInstancesInput { + s.ReservedInstancesIds = v + return s +} + +// SetTargetConfigurations sets the TargetConfigurations field's value. +func (s *ModifyReservedInstancesInput) SetTargetConfigurations(v []*ReservedInstancesConfiguration) *ModifyReservedInstancesInput { + s.TargetConfigurations = v + return s +} + // Contains the output of ModifyReservedInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyReservedInstancesResult type ModifyReservedInstancesOutput struct { _ struct{} `type:"structure"` @@ -29423,13 +40083,20 @@ func (s ModifyReservedInstancesOutput) GoString() string { return s.String() } +// SetReservedInstancesModificationId sets the ReservedInstancesModificationId field's value. +func (s *ModifyReservedInstancesOutput) SetReservedInstancesModificationId(v string) *ModifyReservedInstancesOutput { + s.ReservedInstancesModificationId = &v + return s +} + // Contains the parameters for ModifySnapshotAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySnapshotAttributeRequest type ModifySnapshotAttributeInput struct { _ struct{} `type:"structure"` // The snapshot attribute to modify. // - // Only volume creation permissions may be modified at the customer level. + // Only volume creation permissions may be modified at the customer level. Attribute *string `type:"string" enum:"SnapshotAttributeName"` // A JSON representation of the snapshot attribute modification. @@ -29479,6 +40146,49 @@ func (s *ModifySnapshotAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *ModifySnapshotAttributeInput) SetAttribute(v string) *ModifySnapshotAttributeInput { + s.Attribute = &v + return s +} + +// SetCreateVolumePermission sets the CreateVolumePermission field's value. +func (s *ModifySnapshotAttributeInput) SetCreateVolumePermission(v *CreateVolumePermissionModifications) *ModifySnapshotAttributeInput { + s.CreateVolumePermission = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifySnapshotAttributeInput) SetDryRun(v bool) *ModifySnapshotAttributeInput { + s.DryRun = &v + return s +} + +// SetGroupNames sets the GroupNames field's value. +func (s *ModifySnapshotAttributeInput) SetGroupNames(v []*string) *ModifySnapshotAttributeInput { + s.GroupNames = v + return s +} + +// SetOperationType sets the OperationType field's value. +func (s *ModifySnapshotAttributeInput) SetOperationType(v string) *ModifySnapshotAttributeInput { + s.OperationType = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *ModifySnapshotAttributeInput) SetSnapshotId(v string) *ModifySnapshotAttributeInput { + s.SnapshotId = &v + return s +} + +// SetUserIds sets the UserIds field's value. +func (s *ModifySnapshotAttributeInput) SetUserIds(v []*string) *ModifySnapshotAttributeInput { + s.UserIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySnapshotAttributeOutput type ModifySnapshotAttributeOutput struct { _ struct{} `type:"structure"` } @@ -29494,6 +40204,7 @@ func (s ModifySnapshotAttributeOutput) GoString() string { } // Contains the parameters for ModifySpotFleetRequest. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySpotFleetRequestRequest type ModifySpotFleetRequestInput struct { _ struct{} `type:"structure"` @@ -29534,7 +40245,26 @@ func (s *ModifySpotFleetRequestInput) Validate() error { return nil } +// SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value. +func (s *ModifySpotFleetRequestInput) SetExcessCapacityTerminationPolicy(v string) *ModifySpotFleetRequestInput { + s.ExcessCapacityTerminationPolicy = &v + return s +} + +// SetSpotFleetRequestId sets the SpotFleetRequestId field's value. +func (s *ModifySpotFleetRequestInput) SetSpotFleetRequestId(v string) *ModifySpotFleetRequestInput { + s.SpotFleetRequestId = &v + return s +} + +// SetTargetCapacity sets the TargetCapacity field's value. +func (s *ModifySpotFleetRequestInput) SetTargetCapacity(v int64) *ModifySpotFleetRequestInput { + s.TargetCapacity = &v + return s +} + // Contains the output of ModifySpotFleetRequest. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySpotFleetRequestResponse type ModifySpotFleetRequestOutput struct { _ struct{} `type:"structure"` @@ -29552,12 +40282,31 @@ func (s ModifySpotFleetRequestOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *ModifySpotFleetRequestOutput) SetReturn(v bool) *ModifySpotFleetRequestOutput { + s.Return = &v + return s +} + // Contains the parameters for ModifySubnetAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySubnetAttributeRequest type ModifySubnetAttributeInput struct { _ struct{} `type:"structure"` - // Specify true to indicate that instances launched into the specified subnet - // should be assigned public IP address. + // Specify true to indicate that network interfaces created in the specified + // subnet should be assigned an IPv6 address. This includes a network interface + // that's created when launching an instance into the subnet (the instance therefore + // receives an IPv6 address). + // + // If you enable the IPv6 addressing feature for your subnet, your network interface + // or instance only receives an IPv6 address if it's created using version 2016-11-15 + // or later of the Amazon EC2 API. + AssignIpv6AddressOnCreation *AttributeBooleanValue `type:"structure"` + + // Specify true to indicate that network interfaces created in the specified + // subnet should be assigned a public IPv4 address. This includes a network + // interface that's created when launching an instance into the subnet (the + // instance therefore receives a public IPv4 address). MapPublicIpOnLaunch *AttributeBooleanValue `type:"structure"` // The ID of the subnet. @@ -29589,6 +40338,25 @@ func (s *ModifySubnetAttributeInput) Validate() error { return nil } +// SetAssignIpv6AddressOnCreation sets the AssignIpv6AddressOnCreation field's value. +func (s *ModifySubnetAttributeInput) SetAssignIpv6AddressOnCreation(v *AttributeBooleanValue) *ModifySubnetAttributeInput { + s.AssignIpv6AddressOnCreation = v + return s +} + +// SetMapPublicIpOnLaunch sets the MapPublicIpOnLaunch field's value. +func (s *ModifySubnetAttributeInput) SetMapPublicIpOnLaunch(v *AttributeBooleanValue) *ModifySubnetAttributeInput { + s.MapPublicIpOnLaunch = v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *ModifySubnetAttributeInput) SetSubnetId(v string) *ModifySubnetAttributeInput { + s.SubnetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySubnetAttributeOutput type ModifySubnetAttributeOutput struct { _ struct{} `type:"structure"` } @@ -29604,6 +40372,7 @@ func (s ModifySubnetAttributeOutput) GoString() string { } // Contains the parameters for ModifyVolumeAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeAttributeRequest type ModifyVolumeAttributeInput struct { _ struct{} `type:"structure"` @@ -29645,6 +40414,25 @@ func (s *ModifyVolumeAttributeInput) Validate() error { return nil } +// SetAutoEnableIO sets the AutoEnableIO field's value. +func (s *ModifyVolumeAttributeInput) SetAutoEnableIO(v *AttributeBooleanValue) *ModifyVolumeAttributeInput { + s.AutoEnableIO = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifyVolumeAttributeInput) SetDryRun(v bool) *ModifyVolumeAttributeInput { + s.DryRun = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *ModifyVolumeAttributeInput) SetVolumeId(v string) *ModifyVolumeAttributeInput { + s.VolumeId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeAttributeOutput type ModifyVolumeAttributeOutput struct { _ struct{} `type:"structure"` } @@ -29659,7 +40447,124 @@ func (s ModifyVolumeAttributeOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeRequest +type ModifyVolumeInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // Target IOPS rate of the volume to be modified. + // + // Only valid for Provisioned IOPS SSD (io1) volumes. For more information about + // io1 IOPS configuration, see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops + // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops). + // + // Default: If no IOPS value is specified, the existing value is retained. + Iops *int64 `type:"integer"` + + // Target size in GiB of the volume to be modified. Target volume size must + // be greater than or equal to than the existing size of the volume. For information + // about available EBS volume sizes, see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html + // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html). + // + // Default: If no size is specified, the existing size is retained. + Size *int64 `type:"integer"` + + // VolumeId is a required field + VolumeId *string `type:"string" required:"true"` + + // Target EBS volume type of the volume to be modified + // + // The API does not support modifications for volume type standard. You also + // cannot change the type of a volume to standard. + // + // Default: If no type is specified, the existing type is retained. + VolumeType *string `type:"string" enum:"VolumeType"` +} + +// String returns the string representation +func (s ModifyVolumeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyVolumeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyVolumeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyVolumeInput"} + if s.VolumeId == nil { + invalidParams.Add(request.NewErrParamRequired("VolumeId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifyVolumeInput) SetDryRun(v bool) *ModifyVolumeInput { + s.DryRun = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *ModifyVolumeInput) SetIops(v int64) *ModifyVolumeInput { + s.Iops = &v + return s +} + +// SetSize sets the Size field's value. +func (s *ModifyVolumeInput) SetSize(v int64) *ModifyVolumeInput { + s.Size = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *ModifyVolumeInput) SetVolumeId(v string) *ModifyVolumeInput { + s.VolumeId = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *ModifyVolumeInput) SetVolumeType(v string) *ModifyVolumeInput { + s.VolumeType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeResult +type ModifyVolumeOutput struct { + _ struct{} `type:"structure"` + + // A VolumeModification object. + VolumeModification *VolumeModification `locationName:"volumeModification" type:"structure"` +} + +// String returns the string representation +func (s ModifyVolumeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyVolumeOutput) GoString() string { + return s.String() +} + +// SetVolumeModification sets the VolumeModification field's value. +func (s *ModifyVolumeOutput) SetVolumeModification(v *VolumeModification) *ModifyVolumeOutput { + s.VolumeModification = v + return s +} + // Contains the parameters for ModifyVpcAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttributeRequest type ModifyVpcAttributeInput struct { _ struct{} `type:"structure"` @@ -29710,6 +40615,25 @@ func (s *ModifyVpcAttributeInput) Validate() error { return nil } +// SetEnableDnsHostnames sets the EnableDnsHostnames field's value. +func (s *ModifyVpcAttributeInput) SetEnableDnsHostnames(v *AttributeBooleanValue) *ModifyVpcAttributeInput { + s.EnableDnsHostnames = v + return s +} + +// SetEnableDnsSupport sets the EnableDnsSupport field's value. +func (s *ModifyVpcAttributeInput) SetEnableDnsSupport(v *AttributeBooleanValue) *ModifyVpcAttributeInput { + s.EnableDnsSupport = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *ModifyVpcAttributeInput) SetVpcId(v string) *ModifyVpcAttributeInput { + s.VpcId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttributeOutput type ModifyVpcAttributeOutput struct { _ struct{} `type:"structure"` } @@ -29725,6 +40649,7 @@ func (s ModifyVpcAttributeOutput) GoString() string { } // Contains the parameters for ModifyVpcEndpoint. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointRequest type ModifyVpcEndpointInput struct { _ struct{} `type:"structure"` @@ -29777,7 +40702,44 @@ func (s *ModifyVpcEndpointInput) Validate() error { return nil } +// SetAddRouteTableIds sets the AddRouteTableIds field's value. +func (s *ModifyVpcEndpointInput) SetAddRouteTableIds(v []*string) *ModifyVpcEndpointInput { + s.AddRouteTableIds = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifyVpcEndpointInput) SetDryRun(v bool) *ModifyVpcEndpointInput { + s.DryRun = &v + return s +} + +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *ModifyVpcEndpointInput) SetPolicyDocument(v string) *ModifyVpcEndpointInput { + s.PolicyDocument = &v + return s +} + +// SetRemoveRouteTableIds sets the RemoveRouteTableIds field's value. +func (s *ModifyVpcEndpointInput) SetRemoveRouteTableIds(v []*string) *ModifyVpcEndpointInput { + s.RemoveRouteTableIds = v + return s +} + +// SetResetPolicy sets the ResetPolicy field's value. +func (s *ModifyVpcEndpointInput) SetResetPolicy(v bool) *ModifyVpcEndpointInput { + s.ResetPolicy = &v + return s +} + +// SetVpcEndpointId sets the VpcEndpointId field's value. +func (s *ModifyVpcEndpointInput) SetVpcEndpointId(v string) *ModifyVpcEndpointInput { + s.VpcEndpointId = &v + return s +} + // Contains the output of ModifyVpcEndpoint. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointResult type ModifyVpcEndpointOutput struct { _ struct{} `type:"structure"` @@ -29795,6 +40757,13 @@ func (s ModifyVpcEndpointOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *ModifyVpcEndpointOutput) SetReturn(v bool) *ModifyVpcEndpointOutput { + s.Return = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcPeeringConnectionOptionsRequest type ModifyVpcPeeringConnectionOptionsInput struct { _ struct{} `type:"structure"` @@ -29839,6 +40808,31 @@ func (s *ModifyVpcPeeringConnectionOptionsInput) Validate() error { return nil } +// SetAccepterPeeringConnectionOptions sets the AccepterPeeringConnectionOptions field's value. +func (s *ModifyVpcPeeringConnectionOptionsInput) SetAccepterPeeringConnectionOptions(v *PeeringConnectionOptionsRequest) *ModifyVpcPeeringConnectionOptionsInput { + s.AccepterPeeringConnectionOptions = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifyVpcPeeringConnectionOptionsInput) SetDryRun(v bool) *ModifyVpcPeeringConnectionOptionsInput { + s.DryRun = &v + return s +} + +// SetRequesterPeeringConnectionOptions sets the RequesterPeeringConnectionOptions field's value. +func (s *ModifyVpcPeeringConnectionOptionsInput) SetRequesterPeeringConnectionOptions(v *PeeringConnectionOptionsRequest) *ModifyVpcPeeringConnectionOptionsInput { + s.RequesterPeeringConnectionOptions = v + return s +} + +// SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. +func (s *ModifyVpcPeeringConnectionOptionsInput) SetVpcPeeringConnectionId(v string) *ModifyVpcPeeringConnectionOptionsInput { + s.VpcPeeringConnectionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcPeeringConnectionOptionsResult type ModifyVpcPeeringConnectionOptionsOutput struct { _ struct{} `type:"structure"` @@ -29859,7 +40853,20 @@ func (s ModifyVpcPeeringConnectionOptionsOutput) GoString() string { return s.String() } +// SetAccepterPeeringConnectionOptions sets the AccepterPeeringConnectionOptions field's value. +func (s *ModifyVpcPeeringConnectionOptionsOutput) SetAccepterPeeringConnectionOptions(v *PeeringConnectionOptions) *ModifyVpcPeeringConnectionOptionsOutput { + s.AccepterPeeringConnectionOptions = v + return s +} + +// SetRequesterPeeringConnectionOptions sets the RequesterPeeringConnectionOptions field's value. +func (s *ModifyVpcPeeringConnectionOptionsOutput) SetRequesterPeeringConnectionOptions(v *PeeringConnectionOptions) *ModifyVpcPeeringConnectionOptionsOutput { + s.RequesterPeeringConnectionOptions = v + return s +} + // Contains the parameters for MonitorInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MonitorInstancesRequest type MonitorInstancesInput struct { _ struct{} `type:"structure"` @@ -29898,11 +40905,24 @@ func (s *MonitorInstancesInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *MonitorInstancesInput) SetDryRun(v bool) *MonitorInstancesInput { + s.DryRun = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *MonitorInstancesInput) SetInstanceIds(v []*string) *MonitorInstancesInput { + s.InstanceIds = v + return s +} + // Contains the output of MonitorInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MonitorInstancesResult type MonitorInstancesOutput struct { _ struct{} `type:"structure"` - // Monitoring information for one or more instances. + // The monitoring information. InstanceMonitorings []*InstanceMonitoring `locationName:"instancesSet" locationNameList:"item" type:"list"` } @@ -29916,11 +40936,19 @@ func (s MonitorInstancesOutput) GoString() string { return s.String() } -// Describes the monitoring for the instance. +// SetInstanceMonitorings sets the InstanceMonitorings field's value. +func (s *MonitorInstancesOutput) SetInstanceMonitorings(v []*InstanceMonitoring) *MonitorInstancesOutput { + s.InstanceMonitorings = v + return s +} + +// Describes the monitoring of an instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Monitoring type Monitoring struct { _ struct{} `type:"structure"` - // Indicates whether monitoring is enabled for the instance. + // Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring + // is enabled. State *string `locationName:"state" type:"string" enum:"MonitoringState"` } @@ -29934,7 +40962,14 @@ func (s Monitoring) GoString() string { return s.String() } +// SetState sets the State field's value. +func (s *Monitoring) SetState(v string) *Monitoring { + s.State = &v + return s +} + // Contains the parameters for MoveAddressToVpc. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveAddressToVpcRequest type MoveAddressToVpcInput struct { _ struct{} `type:"structure"` @@ -29973,7 +41008,20 @@ func (s *MoveAddressToVpcInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *MoveAddressToVpcInput) SetDryRun(v bool) *MoveAddressToVpcInput { + s.DryRun = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *MoveAddressToVpcInput) SetPublicIp(v string) *MoveAddressToVpcInput { + s.PublicIp = &v + return s +} + // Contains the output of MoveAddressToVpc. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveAddressToVpcResult type MoveAddressToVpcOutput struct { _ struct{} `type:"structure"` @@ -29994,7 +41042,20 @@ func (s MoveAddressToVpcOutput) GoString() string { return s.String() } +// SetAllocationId sets the AllocationId field's value. +func (s *MoveAddressToVpcOutput) SetAllocationId(v string) *MoveAddressToVpcOutput { + s.AllocationId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *MoveAddressToVpcOutput) SetStatus(v string) *MoveAddressToVpcOutput { + s.Status = &v + return s +} + // Describes the status of a moving Elastic IP address. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MovingAddressStatus type MovingAddressStatus struct { _ struct{} `type:"structure"` @@ -30016,7 +41077,20 @@ func (s MovingAddressStatus) GoString() string { return s.String() } +// SetMoveStatus sets the MoveStatus field's value. +func (s *MovingAddressStatus) SetMoveStatus(v string) *MovingAddressStatus { + s.MoveStatus = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *MovingAddressStatus) SetPublicIp(v string) *MovingAddressStatus { + s.PublicIp = &v + return s +} + // Describes a NAT gateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NatGateway type NatGateway struct { _ struct{} `type:"structure"` @@ -30034,23 +41108,23 @@ type NatGateway struct { // If the NAT gateway could not be created, specifies the error message for // the failure, that corresponds to the error code. // - // For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free addresses - // to create this NAT gateway" + // * For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free + // addresses to create this NAT gateway" // - // For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway - // attached" + // * For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway + // attached" // - // For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx - // could not be associated with this NAT gateway" + // * For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx + // could not be associated with this NAT gateway" // - // For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx - // is already associated" + // * For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx + // is already associated" // - // For InternalError: "Network interface eni-xxxxxxxx, created and used internally - // by this NAT gateway is in an invalid state. Please try again." + // * For InternalError: "Network interface eni-xxxxxxxx, created and used + // internally by this NAT gateway is in an invalid state. Please try again." // - // For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx does - // not exist or could not be found." + // * For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx + // does not exist or could not be found." FailureMessage *string `locationName:"failureMessage" type:"string"` // Information about the IP addresses and network interface associated with @@ -30067,21 +41141,21 @@ type NatGateway struct { // The state of the NAT gateway. // - // pending: The NAT gateway is being created and is not ready to process - // traffic. + // * pending: The NAT gateway is being created and is not ready to process + // traffic. // - // failed: The NAT gateway could not be created. Check the failureCode and - // failureMessage fields for the reason. + // * failed: The NAT gateway could not be created. Check the failureCode + // and failureMessage fields for the reason. // - // available: The NAT gateway is able to process traffic. This status remains - // until you delete the NAT gateway, and does not indicate the health of the - // NAT gateway. + // * available: The NAT gateway is able to process traffic. This status remains + // until you delete the NAT gateway, and does not indicate the health of + // the NAT gateway. // - // deleting: The NAT gateway is in the process of being terminated and may - // still be processing traffic. + // * deleting: The NAT gateway is in the process of being terminated and + // may still be processing traffic. // - // deleted: The NAT gateway has been terminated and is no longer processing - // traffic. + // * deleted: The NAT gateway has been terminated and is no longer processing + // traffic. State *string `locationName:"state" type:"string" enum:"NatGatewayState"` // The ID of the subnet in which the NAT gateway is located. @@ -30101,7 +41175,68 @@ func (s NatGateway) GoString() string { return s.String() } +// SetCreateTime sets the CreateTime field's value. +func (s *NatGateway) SetCreateTime(v time.Time) *NatGateway { + s.CreateTime = &v + return s +} + +// SetDeleteTime sets the DeleteTime field's value. +func (s *NatGateway) SetDeleteTime(v time.Time) *NatGateway { + s.DeleteTime = &v + return s +} + +// SetFailureCode sets the FailureCode field's value. +func (s *NatGateway) SetFailureCode(v string) *NatGateway { + s.FailureCode = &v + return s +} + +// SetFailureMessage sets the FailureMessage field's value. +func (s *NatGateway) SetFailureMessage(v string) *NatGateway { + s.FailureMessage = &v + return s +} + +// SetNatGatewayAddresses sets the NatGatewayAddresses field's value. +func (s *NatGateway) SetNatGatewayAddresses(v []*NatGatewayAddress) *NatGateway { + s.NatGatewayAddresses = v + return s +} + +// SetNatGatewayId sets the NatGatewayId field's value. +func (s *NatGateway) SetNatGatewayId(v string) *NatGateway { + s.NatGatewayId = &v + return s +} + +// SetProvisionedBandwidth sets the ProvisionedBandwidth field's value. +func (s *NatGateway) SetProvisionedBandwidth(v *ProvisionedBandwidth) *NatGateway { + s.ProvisionedBandwidth = v + return s +} + +// SetState sets the State field's value. +func (s *NatGateway) SetState(v string) *NatGateway { + s.State = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *NatGateway) SetSubnetId(v string) *NatGateway { + s.SubnetId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *NatGateway) SetVpcId(v string) *NatGateway { + s.VpcId = &v + return s +} + // Describes the IP addresses and network interface associated with a NAT gateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NatGatewayAddress type NatGatewayAddress struct { _ struct{} `type:"structure"` @@ -30129,7 +41264,32 @@ func (s NatGatewayAddress) GoString() string { return s.String() } +// SetAllocationId sets the AllocationId field's value. +func (s *NatGatewayAddress) SetAllocationId(v string) *NatGatewayAddress { + s.AllocationId = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *NatGatewayAddress) SetNetworkInterfaceId(v string) *NatGatewayAddress { + s.NetworkInterfaceId = &v + return s +} + +// SetPrivateIp sets the PrivateIp field's value. +func (s *NatGatewayAddress) SetPrivateIp(v string) *NatGatewayAddress { + s.PrivateIp = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *NatGatewayAddress) SetPublicIp(v string) *NatGatewayAddress { + s.PublicIp = &v + return s +} + // Describes a network ACL. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkAcl type NetworkAcl struct { _ struct{} `type:"structure"` @@ -30162,7 +41322,44 @@ func (s NetworkAcl) GoString() string { return s.String() } +// SetAssociations sets the Associations field's value. +func (s *NetworkAcl) SetAssociations(v []*NetworkAclAssociation) *NetworkAcl { + s.Associations = v + return s +} + +// SetEntries sets the Entries field's value. +func (s *NetworkAcl) SetEntries(v []*NetworkAclEntry) *NetworkAcl { + s.Entries = v + return s +} + +// SetIsDefault sets the IsDefault field's value. +func (s *NetworkAcl) SetIsDefault(v bool) *NetworkAcl { + s.IsDefault = &v + return s +} + +// SetNetworkAclId sets the NetworkAclId field's value. +func (s *NetworkAcl) SetNetworkAclId(v string) *NetworkAcl { + s.NetworkAclId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *NetworkAcl) SetTags(v []*Tag) *NetworkAcl { + s.Tags = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *NetworkAcl) SetVpcId(v string) *NetworkAcl { + s.VpcId = &v + return s +} + // Describes an association between a network ACL and a subnet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkAclAssociation type NetworkAclAssociation struct { _ struct{} `type:"structure"` @@ -30186,11 +41383,30 @@ func (s NetworkAclAssociation) GoString() string { return s.String() } +// SetNetworkAclAssociationId sets the NetworkAclAssociationId field's value. +func (s *NetworkAclAssociation) SetNetworkAclAssociationId(v string) *NetworkAclAssociation { + s.NetworkAclAssociationId = &v + return s +} + +// SetNetworkAclId sets the NetworkAclId field's value. +func (s *NetworkAclAssociation) SetNetworkAclId(v string) *NetworkAclAssociation { + s.NetworkAclId = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *NetworkAclAssociation) SetSubnetId(v string) *NetworkAclAssociation { + s.SubnetId = &v + return s +} + // Describes an entry in a network ACL. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkAclEntry type NetworkAclEntry struct { _ struct{} `type:"structure"` - // The network range to allow or deny, in CIDR notation. + // The IPv4 network range to allow or deny, in CIDR notation. CidrBlock *string `locationName:"cidrBlock" type:"string"` // Indicates whether the rule is an egress rule (applied to traffic leaving @@ -30200,6 +41416,9 @@ type NetworkAclEntry struct { // ICMP protocol: The ICMP type and code. IcmpTypeCode *IcmpTypeCode `locationName:"icmpTypeCode" type:"structure"` + // The IPv6 network range to allow or deny, in CIDR notation. + Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"` + // TCP or UDP protocols: The range of ports the rule applies to. PortRange *PortRange `locationName:"portRange" type:"structure"` @@ -30224,12 +41443,61 @@ func (s NetworkAclEntry) GoString() string { return s.String() } +// SetCidrBlock sets the CidrBlock field's value. +func (s *NetworkAclEntry) SetCidrBlock(v string) *NetworkAclEntry { + s.CidrBlock = &v + return s +} + +// SetEgress sets the Egress field's value. +func (s *NetworkAclEntry) SetEgress(v bool) *NetworkAclEntry { + s.Egress = &v + return s +} + +// SetIcmpTypeCode sets the IcmpTypeCode field's value. +func (s *NetworkAclEntry) SetIcmpTypeCode(v *IcmpTypeCode) *NetworkAclEntry { + s.IcmpTypeCode = v + return s +} + +// SetIpv6CidrBlock sets the Ipv6CidrBlock field's value. +func (s *NetworkAclEntry) SetIpv6CidrBlock(v string) *NetworkAclEntry { + s.Ipv6CidrBlock = &v + return s +} + +// SetPortRange sets the PortRange field's value. +func (s *NetworkAclEntry) SetPortRange(v *PortRange) *NetworkAclEntry { + s.PortRange = v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *NetworkAclEntry) SetProtocol(v string) *NetworkAclEntry { + s.Protocol = &v + return s +} + +// SetRuleAction sets the RuleAction field's value. +func (s *NetworkAclEntry) SetRuleAction(v string) *NetworkAclEntry { + s.RuleAction = &v + return s +} + +// SetRuleNumber sets the RuleNumber field's value. +func (s *NetworkAclEntry) SetRuleNumber(v int64) *NetworkAclEntry { + s.RuleNumber = &v + return s +} + // Describes a network interface. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterface type NetworkInterface struct { _ struct{} `type:"structure"` - // The association information for an Elastic IP associated with the network - // interface. + // The association information for an Elastic IP address (IPv4) associated with + // the network interface. Association *NetworkInterfaceAssociation `locationName:"association" type:"structure"` // The network interface attachment. @@ -30247,6 +41515,9 @@ type NetworkInterface struct { // The type of interface. InterfaceType *string `locationName:"interfaceType" type:"string" enum:"NetworkInterfaceType"` + // The IPv6 addresses associated with the network interface. + Ipv6Addresses []*NetworkInterfaceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"` + // The MAC address. MacAddress *string `locationName:"macAddress" type:"string"` @@ -30259,10 +41530,10 @@ type NetworkInterface struct { // The private DNS name. PrivateDnsName *string `locationName:"privateDnsName" type:"string"` - // The IP address of the network interface within the subnet. + // The IPv4 address of the network interface within the subnet. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` - // The private IP addresses associated with the network interface. + // The private IPv4 addresses associated with the network interface. PrivateIpAddresses []*NetworkInterfacePrivateIpAddress `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"` // The ID of the entity that launched the instance on your behalf (for example, @@ -30298,7 +41569,128 @@ func (s NetworkInterface) GoString() string { return s.String() } -// Describes association information for an Elastic IP address. +// SetAssociation sets the Association field's value. +func (s *NetworkInterface) SetAssociation(v *NetworkInterfaceAssociation) *NetworkInterface { + s.Association = v + return s +} + +// SetAttachment sets the Attachment field's value. +func (s *NetworkInterface) SetAttachment(v *NetworkInterfaceAttachment) *NetworkInterface { + s.Attachment = v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *NetworkInterface) SetAvailabilityZone(v string) *NetworkInterface { + s.AvailabilityZone = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *NetworkInterface) SetDescription(v string) *NetworkInterface { + s.Description = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *NetworkInterface) SetGroups(v []*GroupIdentifier) *NetworkInterface { + s.Groups = v + return s +} + +// SetInterfaceType sets the InterfaceType field's value. +func (s *NetworkInterface) SetInterfaceType(v string) *NetworkInterface { + s.InterfaceType = &v + return s +} + +// SetIpv6Addresses sets the Ipv6Addresses field's value. +func (s *NetworkInterface) SetIpv6Addresses(v []*NetworkInterfaceIpv6Address) *NetworkInterface { + s.Ipv6Addresses = v + return s +} + +// SetMacAddress sets the MacAddress field's value. +func (s *NetworkInterface) SetMacAddress(v string) *NetworkInterface { + s.MacAddress = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *NetworkInterface) SetNetworkInterfaceId(v string) *NetworkInterface { + s.NetworkInterfaceId = &v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *NetworkInterface) SetOwnerId(v string) *NetworkInterface { + s.OwnerId = &v + return s +} + +// SetPrivateDnsName sets the PrivateDnsName field's value. +func (s *NetworkInterface) SetPrivateDnsName(v string) *NetworkInterface { + s.PrivateDnsName = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *NetworkInterface) SetPrivateIpAddress(v string) *NetworkInterface { + s.PrivateIpAddress = &v + return s +} + +// SetPrivateIpAddresses sets the PrivateIpAddresses field's value. +func (s *NetworkInterface) SetPrivateIpAddresses(v []*NetworkInterfacePrivateIpAddress) *NetworkInterface { + s.PrivateIpAddresses = v + return s +} + +// SetRequesterId sets the RequesterId field's value. +func (s *NetworkInterface) SetRequesterId(v string) *NetworkInterface { + s.RequesterId = &v + return s +} + +// SetRequesterManaged sets the RequesterManaged field's value. +func (s *NetworkInterface) SetRequesterManaged(v bool) *NetworkInterface { + s.RequesterManaged = &v + return s +} + +// SetSourceDestCheck sets the SourceDestCheck field's value. +func (s *NetworkInterface) SetSourceDestCheck(v bool) *NetworkInterface { + s.SourceDestCheck = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *NetworkInterface) SetStatus(v string) *NetworkInterface { + s.Status = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *NetworkInterface) SetSubnetId(v string) *NetworkInterface { + s.SubnetId = &v + return s +} + +// SetTagSet sets the TagSet field's value. +func (s *NetworkInterface) SetTagSet(v []*Tag) *NetworkInterface { + s.TagSet = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *NetworkInterface) SetVpcId(v string) *NetworkInterface { + s.VpcId = &v + return s +} + +// Describes association information for an Elastic IP address (IPv4 only). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterfaceAssociation type NetworkInterfaceAssociation struct { _ struct{} `type:"structure"` @@ -30328,7 +41720,38 @@ func (s NetworkInterfaceAssociation) GoString() string { return s.String() } +// SetAllocationId sets the AllocationId field's value. +func (s *NetworkInterfaceAssociation) SetAllocationId(v string) *NetworkInterfaceAssociation { + s.AllocationId = &v + return s +} + +// SetAssociationId sets the AssociationId field's value. +func (s *NetworkInterfaceAssociation) SetAssociationId(v string) *NetworkInterfaceAssociation { + s.AssociationId = &v + return s +} + +// SetIpOwnerId sets the IpOwnerId field's value. +func (s *NetworkInterfaceAssociation) SetIpOwnerId(v string) *NetworkInterfaceAssociation { + s.IpOwnerId = &v + return s +} + +// SetPublicDnsName sets the PublicDnsName field's value. +func (s *NetworkInterfaceAssociation) SetPublicDnsName(v string) *NetworkInterfaceAssociation { + s.PublicDnsName = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *NetworkInterfaceAssociation) SetPublicIp(v string) *NetworkInterfaceAssociation { + s.PublicIp = &v + return s +} + // Describes a network interface attachment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterfaceAttachment type NetworkInterfaceAttachment struct { _ struct{} `type:"structure"` @@ -30364,7 +41787,50 @@ func (s NetworkInterfaceAttachment) GoString() string { return s.String() } +// SetAttachTime sets the AttachTime field's value. +func (s *NetworkInterfaceAttachment) SetAttachTime(v time.Time) *NetworkInterfaceAttachment { + s.AttachTime = &v + return s +} + +// SetAttachmentId sets the AttachmentId field's value. +func (s *NetworkInterfaceAttachment) SetAttachmentId(v string) *NetworkInterfaceAttachment { + s.AttachmentId = &v + return s +} + +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *NetworkInterfaceAttachment) SetDeleteOnTermination(v bool) *NetworkInterfaceAttachment { + s.DeleteOnTermination = &v + return s +} + +// SetDeviceIndex sets the DeviceIndex field's value. +func (s *NetworkInterfaceAttachment) SetDeviceIndex(v int64) *NetworkInterfaceAttachment { + s.DeviceIndex = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *NetworkInterfaceAttachment) SetInstanceId(v string) *NetworkInterfaceAttachment { + s.InstanceId = &v + return s +} + +// SetInstanceOwnerId sets the InstanceOwnerId field's value. +func (s *NetworkInterfaceAttachment) SetInstanceOwnerId(v string) *NetworkInterfaceAttachment { + s.InstanceOwnerId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *NetworkInterfaceAttachment) SetStatus(v string) *NetworkInterfaceAttachment { + s.Status = &v + return s +} + // Describes an attachment change. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterfaceAttachmentChanges type NetworkInterfaceAttachmentChanges struct { _ struct{} `type:"structure"` @@ -30385,22 +41851,60 @@ func (s NetworkInterfaceAttachmentChanges) GoString() string { return s.String() } -// Describes the private IP address of a network interface. +// SetAttachmentId sets the AttachmentId field's value. +func (s *NetworkInterfaceAttachmentChanges) SetAttachmentId(v string) *NetworkInterfaceAttachmentChanges { + s.AttachmentId = &v + return s +} + +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *NetworkInterfaceAttachmentChanges) SetDeleteOnTermination(v bool) *NetworkInterfaceAttachmentChanges { + s.DeleteOnTermination = &v + return s +} + +// Describes an IPv6 address associated with a network interface. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterfaceIpv6Address +type NetworkInterfaceIpv6Address struct { + _ struct{} `type:"structure"` + + // The IPv6 address. + Ipv6Address *string `locationName:"ipv6Address" type:"string"` +} + +// String returns the string representation +func (s NetworkInterfaceIpv6Address) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NetworkInterfaceIpv6Address) GoString() string { + return s.String() +} + +// SetIpv6Address sets the Ipv6Address field's value. +func (s *NetworkInterfaceIpv6Address) SetIpv6Address(v string) *NetworkInterfaceIpv6Address { + s.Ipv6Address = &v + return s +} + +// Describes the private IPv4 address of a network interface. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterfacePrivateIpAddress type NetworkInterfacePrivateIpAddress struct { _ struct{} `type:"structure"` - // The association information for an Elastic IP address associated with the - // network interface. + // The association information for an Elastic IP address (IPv4) associated with + // the network interface. Association *NetworkInterfaceAssociation `locationName:"association" type:"structure"` - // Indicates whether this IP address is the primary private IP address of the - // network interface. + // Indicates whether this IPv4 address is the primary private IPv4 address of + // the network interface. Primary *bool `locationName:"primary" type:"boolean"` // The private DNS name. PrivateDnsName *string `locationName:"privateDnsName" type:"string"` - // The private IP address. + // The private IPv4 address. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` } @@ -30414,6 +41918,31 @@ func (s NetworkInterfacePrivateIpAddress) GoString() string { return s.String() } +// SetAssociation sets the Association field's value. +func (s *NetworkInterfacePrivateIpAddress) SetAssociation(v *NetworkInterfaceAssociation) *NetworkInterfacePrivateIpAddress { + s.Association = v + return s +} + +// SetPrimary sets the Primary field's value. +func (s *NetworkInterfacePrivateIpAddress) SetPrimary(v bool) *NetworkInterfacePrivateIpAddress { + s.Primary = &v + return s +} + +// SetPrivateDnsName sets the PrivateDnsName field's value. +func (s *NetworkInterfacePrivateIpAddress) SetPrivateDnsName(v string) *NetworkInterfacePrivateIpAddress { + s.PrivateDnsName = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *NetworkInterfacePrivateIpAddress) SetPrivateIpAddress(v string) *NetworkInterfacePrivateIpAddress { + s.PrivateIpAddress = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NewDhcpConfiguration type NewDhcpConfiguration struct { _ struct{} `type:"structure"` @@ -30432,7 +41961,20 @@ func (s NewDhcpConfiguration) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *NewDhcpConfiguration) SetKey(v string) *NewDhcpConfiguration { + s.Key = &v + return s +} + +// SetValues sets the Values field's value. +func (s *NewDhcpConfiguration) SetValues(v []*string) *NewDhcpConfiguration { + s.Values = v + return s +} + // Describes the VPC peering connection options. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PeeringConnectionOptions type PeeringConnectionOptions struct { _ struct{} `type:"structure"` @@ -30459,7 +42001,26 @@ func (s PeeringConnectionOptions) GoString() string { return s.String() } +// SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value. +func (s *PeeringConnectionOptions) SetAllowDnsResolutionFromRemoteVpc(v bool) *PeeringConnectionOptions { + s.AllowDnsResolutionFromRemoteVpc = &v + return s +} + +// SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value. +func (s *PeeringConnectionOptions) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *PeeringConnectionOptions { + s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v + return s +} + +// SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value. +func (s *PeeringConnectionOptions) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *PeeringConnectionOptions { + s.AllowEgressFromLocalVpcToRemoteClassicLink = &v + return s +} + // The VPC peering connection options. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PeeringConnectionOptionsRequest type PeeringConnectionOptionsRequest struct { _ struct{} `type:"structure"` @@ -30486,7 +42047,26 @@ func (s PeeringConnectionOptionsRequest) GoString() string { return s.String() } -// Describes the placement for the instance. +// SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value. +func (s *PeeringConnectionOptionsRequest) SetAllowDnsResolutionFromRemoteVpc(v bool) *PeeringConnectionOptionsRequest { + s.AllowDnsResolutionFromRemoteVpc = &v + return s +} + +// SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value. +func (s *PeeringConnectionOptionsRequest) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *PeeringConnectionOptionsRequest { + s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v + return s +} + +// SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value. +func (s *PeeringConnectionOptionsRequest) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *PeeringConnectionOptionsRequest { + s.AllowEgressFromLocalVpcToRemoteClassicLink = &v + return s +} + +// Describes the placement of an instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Placement type Placement struct { _ struct{} `type:"structure"` @@ -30500,8 +42080,8 @@ type Placement struct { // The name of the placement group the instance is in (for cluster compute instances). GroupName *string `locationName:"groupName" type:"string"` - // The ID of the Dedicted host on which the instance resides. This parameter - // is not support for the ImportInstance command. + // The ID of the Dedicated Host on which the instance resides. This parameter + // is not supported for the ImportInstance command. HostId *string `locationName:"hostId" type:"string"` // The tenancy of the instance (if the instance is running in a VPC). An instance @@ -30520,7 +42100,38 @@ func (s Placement) GoString() string { return s.String() } +// SetAffinity sets the Affinity field's value. +func (s *Placement) SetAffinity(v string) *Placement { + s.Affinity = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Placement) SetAvailabilityZone(v string) *Placement { + s.AvailabilityZone = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *Placement) SetGroupName(v string) *Placement { + s.GroupName = &v + return s +} + +// SetHostId sets the HostId field's value. +func (s *Placement) SetHostId(v string) *Placement { + s.HostId = &v + return s +} + +// SetTenancy sets the Tenancy field's value. +func (s *Placement) SetTenancy(v string) *Placement { + s.Tenancy = &v + return s +} + // Describes a placement group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PlacementGroup type PlacementGroup struct { _ struct{} `type:"structure"` @@ -30544,7 +42155,26 @@ func (s PlacementGroup) GoString() string { return s.String() } +// SetGroupName sets the GroupName field's value. +func (s *PlacementGroup) SetGroupName(v string) *PlacementGroup { + s.GroupName = &v + return s +} + +// SetState sets the State field's value. +func (s *PlacementGroup) SetState(v string) *PlacementGroup { + s.State = &v + return s +} + +// SetStrategy sets the Strategy field's value. +func (s *PlacementGroup) SetStrategy(v string) *PlacementGroup { + s.Strategy = &v + return s +} + // Describes a range of ports. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PortRange type PortRange struct { _ struct{} `type:"structure"` @@ -30565,7 +42195,20 @@ func (s PortRange) GoString() string { return s.String() } +// SetFrom sets the From field's value. +func (s *PortRange) SetFrom(v int64) *PortRange { + s.From = &v + return s +} + +// SetTo sets the To field's value. +func (s *PortRange) SetTo(v int64) *PortRange { + s.To = &v + return s +} + // Describes prefixes for AWS services. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PrefixList type PrefixList struct { _ struct{} `type:"structure"` @@ -30589,7 +42232,26 @@ func (s PrefixList) GoString() string { return s.String() } +// SetCidrs sets the Cidrs field's value. +func (s *PrefixList) SetCidrs(v []*string) *PrefixList { + s.Cidrs = v + return s +} + +// SetPrefixListId sets the PrefixListId field's value. +func (s *PrefixList) SetPrefixListId(v string) *PrefixList { + s.PrefixListId = &v + return s +} + +// SetPrefixListName sets the PrefixListName field's value. +func (s *PrefixList) SetPrefixListName(v string) *PrefixList { + s.PrefixListName = &v + return s +} + // The ID of the prefix. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PrefixListId type PrefixListId struct { _ struct{} `type:"structure"` @@ -30607,7 +42269,14 @@ func (s PrefixListId) GoString() string { return s.String() } +// SetPrefixListId sets the PrefixListId field's value. +func (s *PrefixListId) SetPrefixListId(v string) *PrefixListId { + s.PrefixListId = &v + return s +} + // Describes the price for a Reserved Instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PriceSchedule type PriceSchedule struct { _ struct{} `type:"structure"` @@ -30645,7 +42314,32 @@ func (s PriceSchedule) GoString() string { return s.String() } +// SetActive sets the Active field's value. +func (s *PriceSchedule) SetActive(v bool) *PriceSchedule { + s.Active = &v + return s +} + +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *PriceSchedule) SetCurrencyCode(v string) *PriceSchedule { + s.CurrencyCode = &v + return s +} + +// SetPrice sets the Price field's value. +func (s *PriceSchedule) SetPrice(v float64) *PriceSchedule { + s.Price = &v + return s +} + +// SetTerm sets the Term field's value. +func (s *PriceSchedule) SetTerm(v int64) *PriceSchedule { + s.Term = &v + return s +} + // Describes the price for a Reserved Instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PriceScheduleSpecification type PriceScheduleSpecification struct { _ struct{} `type:"structure"` @@ -30671,7 +42365,26 @@ func (s PriceScheduleSpecification) GoString() string { return s.String() } +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *PriceScheduleSpecification) SetCurrencyCode(v string) *PriceScheduleSpecification { + s.CurrencyCode = &v + return s +} + +// SetPrice sets the Price field's value. +func (s *PriceScheduleSpecification) SetPrice(v float64) *PriceScheduleSpecification { + s.Price = &v + return s +} + +// SetTerm sets the Term field's value. +func (s *PriceScheduleSpecification) SetTerm(v int64) *PriceScheduleSpecification { + s.Term = &v + return s +} + // Describes a Reserved Instance offering. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PricingDetail type PricingDetail struct { _ struct{} `type:"structure"` @@ -30692,15 +42405,28 @@ func (s PricingDetail) GoString() string { return s.String() } -// Describes a secondary private IP address for a network interface. +// SetCount sets the Count field's value. +func (s *PricingDetail) SetCount(v int64) *PricingDetail { + s.Count = &v + return s +} + +// SetPrice sets the Price field's value. +func (s *PricingDetail) SetPrice(v float64) *PricingDetail { + s.Price = &v + return s +} + +// Describes a secondary private IPv4 address for a network interface. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PrivateIpAddressSpecification type PrivateIpAddressSpecification struct { _ struct{} `type:"structure"` - // Indicates whether the private IP address is the primary private IP address. - // Only one IP address can be designated as primary. + // Indicates whether the private IPv4 address is the primary private IPv4 address. + // Only one IPv4 address can be designated as primary. Primary *bool `locationName:"primary" type:"boolean"` - // The private IP addresses. + // The private IPv4 addresses. // // PrivateIpAddress is a required field PrivateIpAddress *string `locationName:"privateIpAddress" type:"string" required:"true"` @@ -30729,7 +42455,20 @@ func (s *PrivateIpAddressSpecification) Validate() error { return nil } +// SetPrimary sets the Primary field's value. +func (s *PrivateIpAddressSpecification) SetPrimary(v bool) *PrivateIpAddressSpecification { + s.Primary = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *PrivateIpAddressSpecification) SetPrivateIpAddress(v string) *PrivateIpAddressSpecification { + s.PrivateIpAddress = &v + return s +} + // Describes a product code. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ProductCode type ProductCode struct { _ struct{} `type:"structure"` @@ -30750,7 +42489,20 @@ func (s ProductCode) GoString() string { return s.String() } +// SetProductCodeId sets the ProductCodeId field's value. +func (s *ProductCode) SetProductCodeId(v string) *ProductCode { + s.ProductCodeId = &v + return s +} + +// SetProductCodeType sets the ProductCodeType field's value. +func (s *ProductCode) SetProductCodeType(v string) *ProductCode { + s.ProductCodeType = &v + return s +} + // Describes a virtual private gateway propagating route. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PropagatingVgw type PropagatingVgw struct { _ struct{} `type:"structure"` @@ -30768,9 +42520,16 @@ func (s PropagatingVgw) GoString() string { return s.String() } +// SetGatewayId sets the GatewayId field's value. +func (s *PropagatingVgw) SetGatewayId(v string) *PropagatingVgw { + s.GatewayId = &v + return s +} + // Reserved. If you need to sustain traffic greater than the documented limits // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html), // contact us through the Support Center (https://console.aws.amazon.com/support/home?). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ProvisionedBandwidth type ProvisionedBandwidth struct { _ struct{} `type:"structure"` @@ -30810,7 +42569,38 @@ func (s ProvisionedBandwidth) GoString() string { return s.String() } +// SetProvisionTime sets the ProvisionTime field's value. +func (s *ProvisionedBandwidth) SetProvisionTime(v time.Time) *ProvisionedBandwidth { + s.ProvisionTime = &v + return s +} + +// SetProvisioned sets the Provisioned field's value. +func (s *ProvisionedBandwidth) SetProvisioned(v string) *ProvisionedBandwidth { + s.Provisioned = &v + return s +} + +// SetRequestTime sets the RequestTime field's value. +func (s *ProvisionedBandwidth) SetRequestTime(v time.Time) *ProvisionedBandwidth { + s.RequestTime = &v + return s +} + +// SetRequested sets the Requested field's value. +func (s *ProvisionedBandwidth) SetRequested(v string) *ProvisionedBandwidth { + s.Requested = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ProvisionedBandwidth) SetStatus(v string) *ProvisionedBandwidth { + s.Status = &v + return s +} + // Describes the result of the purchase. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Purchase type Purchase struct { _ struct{} `type:"structure"` @@ -30851,6 +42641,55 @@ func (s Purchase) GoString() string { return s.String() } +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *Purchase) SetCurrencyCode(v string) *Purchase { + s.CurrencyCode = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *Purchase) SetDuration(v int64) *Purchase { + s.Duration = &v + return s +} + +// SetHostIdSet sets the HostIdSet field's value. +func (s *Purchase) SetHostIdSet(v []*string) *Purchase { + s.HostIdSet = v + return s +} + +// SetHostReservationId sets the HostReservationId field's value. +func (s *Purchase) SetHostReservationId(v string) *Purchase { + s.HostReservationId = &v + return s +} + +// SetHourlyPrice sets the HourlyPrice field's value. +func (s *Purchase) SetHourlyPrice(v string) *Purchase { + s.HourlyPrice = &v + return s +} + +// SetInstanceFamily sets the InstanceFamily field's value. +func (s *Purchase) SetInstanceFamily(v string) *Purchase { + s.InstanceFamily = &v + return s +} + +// SetPaymentOption sets the PaymentOption field's value. +func (s *Purchase) SetPaymentOption(v string) *Purchase { + s.PaymentOption = &v + return s +} + +// SetUpfrontPrice sets the UpfrontPrice field's value. +func (s *Purchase) SetUpfrontPrice(v string) *Purchase { + s.UpfrontPrice = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseHostReservationRequest type PurchaseHostReservationInput struct { _ struct{} `type:"structure"` @@ -30910,6 +42749,37 @@ func (s *PurchaseHostReservationInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *PurchaseHostReservationInput) SetClientToken(v string) *PurchaseHostReservationInput { + s.ClientToken = &v + return s +} + +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *PurchaseHostReservationInput) SetCurrencyCode(v string) *PurchaseHostReservationInput { + s.CurrencyCode = &v + return s +} + +// SetHostIdSet sets the HostIdSet field's value. +func (s *PurchaseHostReservationInput) SetHostIdSet(v []*string) *PurchaseHostReservationInput { + s.HostIdSet = v + return s +} + +// SetLimitPrice sets the LimitPrice field's value. +func (s *PurchaseHostReservationInput) SetLimitPrice(v string) *PurchaseHostReservationInput { + s.LimitPrice = &v + return s +} + +// SetOfferingId sets the OfferingId field's value. +func (s *PurchaseHostReservationInput) SetOfferingId(v string) *PurchaseHostReservationInput { + s.OfferingId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseHostReservationResult type PurchaseHostReservationOutput struct { _ struct{} `type:"structure"` @@ -30943,7 +42813,38 @@ func (s PurchaseHostReservationOutput) GoString() string { return s.String() } +// SetClientToken sets the ClientToken field's value. +func (s *PurchaseHostReservationOutput) SetClientToken(v string) *PurchaseHostReservationOutput { + s.ClientToken = &v + return s +} + +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *PurchaseHostReservationOutput) SetCurrencyCode(v string) *PurchaseHostReservationOutput { + s.CurrencyCode = &v + return s +} + +// SetPurchase sets the Purchase field's value. +func (s *PurchaseHostReservationOutput) SetPurchase(v []*Purchase) *PurchaseHostReservationOutput { + s.Purchase = v + return s +} + +// SetTotalHourlyPrice sets the TotalHourlyPrice field's value. +func (s *PurchaseHostReservationOutput) SetTotalHourlyPrice(v string) *PurchaseHostReservationOutput { + s.TotalHourlyPrice = &v + return s +} + +// SetTotalUpfrontPrice sets the TotalUpfrontPrice field's value. +func (s *PurchaseHostReservationOutput) SetTotalUpfrontPrice(v string) *PurchaseHostReservationOutput { + s.TotalUpfrontPrice = &v + return s +} + // Describes a request to purchase Scheduled Instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseRequest type PurchaseRequest struct { _ struct{} `type:"structure"` @@ -30984,7 +42885,20 @@ func (s *PurchaseRequest) Validate() error { return nil } +// SetInstanceCount sets the InstanceCount field's value. +func (s *PurchaseRequest) SetInstanceCount(v int64) *PurchaseRequest { + s.InstanceCount = &v + return s +} + +// SetPurchaseToken sets the PurchaseToken field's value. +func (s *PurchaseRequest) SetPurchaseToken(v string) *PurchaseRequest { + s.PurchaseToken = &v + return s +} + // Contains the parameters for PurchaseReservedInstancesOffering. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseReservedInstancesOfferingRequest type PurchaseReservedInstancesOfferingInput struct { _ struct{} `type:"structure"` @@ -31036,7 +42950,32 @@ func (s *PurchaseReservedInstancesOfferingInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *PurchaseReservedInstancesOfferingInput) SetDryRun(v bool) *PurchaseReservedInstancesOfferingInput { + s.DryRun = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *PurchaseReservedInstancesOfferingInput) SetInstanceCount(v int64) *PurchaseReservedInstancesOfferingInput { + s.InstanceCount = &v + return s +} + +// SetLimitPrice sets the LimitPrice field's value. +func (s *PurchaseReservedInstancesOfferingInput) SetLimitPrice(v *ReservedInstanceLimitPrice) *PurchaseReservedInstancesOfferingInput { + s.LimitPrice = v + return s +} + +// SetReservedInstancesOfferingId sets the ReservedInstancesOfferingId field's value. +func (s *PurchaseReservedInstancesOfferingInput) SetReservedInstancesOfferingId(v string) *PurchaseReservedInstancesOfferingInput { + s.ReservedInstancesOfferingId = &v + return s +} + // Contains the output of PurchaseReservedInstancesOffering. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseReservedInstancesOfferingResult type PurchaseReservedInstancesOfferingOutput struct { _ struct{} `type:"structure"` @@ -31054,7 +42993,14 @@ func (s PurchaseReservedInstancesOfferingOutput) GoString() string { return s.String() } +// SetReservedInstancesId sets the ReservedInstancesId field's value. +func (s *PurchaseReservedInstancesOfferingOutput) SetReservedInstancesId(v string) *PurchaseReservedInstancesOfferingOutput { + s.ReservedInstancesId = &v + return s +} + // Contains the parameters for PurchaseScheduledInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseScheduledInstancesRequest type PurchaseScheduledInstancesInput struct { _ struct{} `type:"structure"` @@ -31110,7 +43056,26 @@ func (s *PurchaseScheduledInstancesInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *PurchaseScheduledInstancesInput) SetClientToken(v string) *PurchaseScheduledInstancesInput { + s.ClientToken = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *PurchaseScheduledInstancesInput) SetDryRun(v bool) *PurchaseScheduledInstancesInput { + s.DryRun = &v + return s +} + +// SetPurchaseRequests sets the PurchaseRequests field's value. +func (s *PurchaseScheduledInstancesInput) SetPurchaseRequests(v []*PurchaseRequest) *PurchaseScheduledInstancesInput { + s.PurchaseRequests = v + return s +} + // Contains the output of PurchaseScheduledInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseScheduledInstancesResult type PurchaseScheduledInstancesOutput struct { _ struct{} `type:"structure"` @@ -31128,7 +43093,14 @@ func (s PurchaseScheduledInstancesOutput) GoString() string { return s.String() } +// SetScheduledInstanceSet sets the ScheduledInstanceSet field's value. +func (s *PurchaseScheduledInstancesOutput) SetScheduledInstanceSet(v []*ScheduledInstance) *PurchaseScheduledInstancesOutput { + s.ScheduledInstanceSet = v + return s +} + // Contains the parameters for RebootInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RebootInstancesRequest type RebootInstancesInput struct { _ struct{} `type:"structure"` @@ -31167,6 +43139,19 @@ func (s *RebootInstancesInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *RebootInstancesInput) SetDryRun(v bool) *RebootInstancesInput { + s.DryRun = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *RebootInstancesInput) SetInstanceIds(v []*string) *RebootInstancesInput { + s.InstanceIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RebootInstancesOutput type RebootInstancesOutput struct { _ struct{} `type:"structure"` } @@ -31182,6 +43167,7 @@ func (s RebootInstancesOutput) GoString() string { } // Describes a recurring charge. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RecurringCharge type RecurringCharge struct { _ struct{} `type:"structure"` @@ -31202,7 +43188,20 @@ func (s RecurringCharge) GoString() string { return s.String() } +// SetAmount sets the Amount field's value. +func (s *RecurringCharge) SetAmount(v float64) *RecurringCharge { + s.Amount = &v + return s +} + +// SetFrequency sets the Frequency field's value. +func (s *RecurringCharge) SetFrequency(v string) *RecurringCharge { + s.Frequency = &v + return s +} + // Describes a region. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Region type Region struct { _ struct{} `type:"structure"` @@ -31223,7 +43222,20 @@ func (s Region) GoString() string { return s.String() } +// SetEndpoint sets the Endpoint field's value. +func (s *Region) SetEndpoint(v string) *Region { + s.Endpoint = &v + return s +} + +// SetRegionName sets the RegionName field's value. +func (s *Region) SetRegionName(v string) *Region { + s.RegionName = &v + return s +} + // Contains the parameters for RegisterImage. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterImageRequest type RegisterImageInput struct { _ struct{} `type:"structure"` @@ -31233,6 +43245,9 @@ type RegisterImageInput struct { // the architecture specified in the manifest file. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"` + // The billing product codes. + BillingProducts []*string `locationName:"BillingProduct" locationNameList:"item" type:"list"` + // One or more block device mapping entries. BlockDeviceMappings []*BlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"` @@ -31248,8 +43263,8 @@ type RegisterImageInput struct { // Set to true to enable enhanced networking with ENA for the AMI and any instances // that you launch from the AMI. // - // This option is supported only for HVM AMIs. Specifying this option with - // a PV AMI can make instances launched from the AMI unreachable. + // This option is supported only for HVM AMIs. Specifying this option with a + // PV AMI can make instances launched from the AMI unreachable. EnaSupport *bool `locationName:"enaSupport" type:"boolean"` // The full path to your AMI manifest in Amazon S3 storage. @@ -31279,8 +43294,8 @@ type RegisterImageInput struct { // // There is no way to disable sriovNetSupport at this time. // - // This option is supported only for HVM AMIs. Specifying this option with - // a PV AMI can make instances launched from the AMI unreachable. + // This option is supported only for HVM AMIs. Specifying this option with a + // PV AMI can make instances launched from the AMI unreachable. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"` // The type of virtualization. @@ -31312,7 +43327,86 @@ func (s *RegisterImageInput) Validate() error { return nil } +// SetArchitecture sets the Architecture field's value. +func (s *RegisterImageInput) SetArchitecture(v string) *RegisterImageInput { + s.Architecture = &v + return s +} + +// SetBillingProducts sets the BillingProducts field's value. +func (s *RegisterImageInput) SetBillingProducts(v []*string) *RegisterImageInput { + s.BillingProducts = v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *RegisterImageInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RegisterImageInput { + s.BlockDeviceMappings = v + return s +} + +// SetDescription sets the Description field's value. +func (s *RegisterImageInput) SetDescription(v string) *RegisterImageInput { + s.Description = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *RegisterImageInput) SetDryRun(v bool) *RegisterImageInput { + s.DryRun = &v + return s +} + +// SetEnaSupport sets the EnaSupport field's value. +func (s *RegisterImageInput) SetEnaSupport(v bool) *RegisterImageInput { + s.EnaSupport = &v + return s +} + +// SetImageLocation sets the ImageLocation field's value. +func (s *RegisterImageInput) SetImageLocation(v string) *RegisterImageInput { + s.ImageLocation = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *RegisterImageInput) SetKernelId(v string) *RegisterImageInput { + s.KernelId = &v + return s +} + +// SetName sets the Name field's value. +func (s *RegisterImageInput) SetName(v string) *RegisterImageInput { + s.Name = &v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *RegisterImageInput) SetRamdiskId(v string) *RegisterImageInput { + s.RamdiskId = &v + return s +} + +// SetRootDeviceName sets the RootDeviceName field's value. +func (s *RegisterImageInput) SetRootDeviceName(v string) *RegisterImageInput { + s.RootDeviceName = &v + return s +} + +// SetSriovNetSupport sets the SriovNetSupport field's value. +func (s *RegisterImageInput) SetSriovNetSupport(v string) *RegisterImageInput { + s.SriovNetSupport = &v + return s +} + +// SetVirtualizationType sets the VirtualizationType field's value. +func (s *RegisterImageInput) SetVirtualizationType(v string) *RegisterImageInput { + s.VirtualizationType = &v + return s +} + // Contains the output of RegisterImage. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterImageResult type RegisterImageOutput struct { _ struct{} `type:"structure"` @@ -31330,7 +43424,14 @@ func (s RegisterImageOutput) GoString() string { return s.String() } +// SetImageId sets the ImageId field's value. +func (s *RegisterImageOutput) SetImageId(v string) *RegisterImageOutput { + s.ImageId = &v + return s +} + // Contains the parameters for RejectVpcPeeringConnection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcPeeringConnectionRequest type RejectVpcPeeringConnectionInput struct { _ struct{} `type:"structure"` @@ -31369,7 +43470,20 @@ func (s *RejectVpcPeeringConnectionInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *RejectVpcPeeringConnectionInput) SetDryRun(v bool) *RejectVpcPeeringConnectionInput { + s.DryRun = &v + return s +} + +// SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. +func (s *RejectVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *RejectVpcPeeringConnectionInput { + s.VpcPeeringConnectionId = &v + return s +} + // Contains the output of RejectVpcPeeringConnection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcPeeringConnectionResult type RejectVpcPeeringConnectionOutput struct { _ struct{} `type:"structure"` @@ -31387,7 +43501,14 @@ func (s RejectVpcPeeringConnectionOutput) GoString() string { return s.String() } +// SetReturn sets the Return field's value. +func (s *RejectVpcPeeringConnectionOutput) SetReturn(v bool) *RejectVpcPeeringConnectionOutput { + s.Return = &v + return s +} + // Contains the parameters for ReleaseAddress. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseAddressRequest type ReleaseAddressInput struct { _ struct{} `type:"structure"` @@ -31414,6 +43535,25 @@ func (s ReleaseAddressInput) GoString() string { return s.String() } +// SetAllocationId sets the AllocationId field's value. +func (s *ReleaseAddressInput) SetAllocationId(v string) *ReleaseAddressInput { + s.AllocationId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ReleaseAddressInput) SetDryRun(v bool) *ReleaseAddressInput { + s.DryRun = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *ReleaseAddressInput) SetPublicIp(v string) *ReleaseAddressInput { + s.PublicIp = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseAddressOutput type ReleaseAddressOutput struct { _ struct{} `type:"structure"` } @@ -31429,6 +43569,7 @@ func (s ReleaseAddressOutput) GoString() string { } // Contains the parameters for ReleaseHosts. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseHostsRequest type ReleaseHostsInput struct { _ struct{} `type:"structure"` @@ -31461,7 +43602,14 @@ func (s *ReleaseHostsInput) Validate() error { return nil } +// SetHostIds sets the HostIds field's value. +func (s *ReleaseHostsInput) SetHostIds(v []*string) *ReleaseHostsInput { + s.HostIds = v + return s +} + // Contains the output of ReleaseHosts. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseHostsResult type ReleaseHostsOutput struct { _ struct{} `type:"structure"` @@ -31483,7 +43631,97 @@ func (s ReleaseHostsOutput) GoString() string { return s.String() } +// SetSuccessful sets the Successful field's value. +func (s *ReleaseHostsOutput) SetSuccessful(v []*string) *ReleaseHostsOutput { + s.Successful = v + return s +} + +// SetUnsuccessful sets the Unsuccessful field's value. +func (s *ReleaseHostsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *ReleaseHostsOutput { + s.Unsuccessful = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceIamInstanceProfileAssociationRequest +type ReplaceIamInstanceProfileAssociationInput struct { + _ struct{} `type:"structure"` + + // The ID of the existing IAM instance profile association. + // + // AssociationId is a required field + AssociationId *string `type:"string" required:"true"` + + // The IAM instance profile. + // + // IamInstanceProfile is a required field + IamInstanceProfile *IamInstanceProfileSpecification `type:"structure" required:"true"` +} + +// String returns the string representation +func (s ReplaceIamInstanceProfileAssociationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplaceIamInstanceProfileAssociationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ReplaceIamInstanceProfileAssociationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ReplaceIamInstanceProfileAssociationInput"} + if s.AssociationId == nil { + invalidParams.Add(request.NewErrParamRequired("AssociationId")) + } + if s.IamInstanceProfile == nil { + invalidParams.Add(request.NewErrParamRequired("IamInstanceProfile")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssociationId sets the AssociationId field's value. +func (s *ReplaceIamInstanceProfileAssociationInput) SetAssociationId(v string) *ReplaceIamInstanceProfileAssociationInput { + s.AssociationId = &v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *ReplaceIamInstanceProfileAssociationInput) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *ReplaceIamInstanceProfileAssociationInput { + s.IamInstanceProfile = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceIamInstanceProfileAssociationResult +type ReplaceIamInstanceProfileAssociationOutput struct { + _ struct{} `type:"structure"` + + // Information about the IAM instance profile association. + IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"` +} + +// String returns the string representation +func (s ReplaceIamInstanceProfileAssociationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplaceIamInstanceProfileAssociationOutput) GoString() string { + return s.String() +} + +// SetIamInstanceProfileAssociation sets the IamInstanceProfileAssociation field's value. +func (s *ReplaceIamInstanceProfileAssociationOutput) SetIamInstanceProfileAssociation(v *IamInstanceProfileAssociation) *ReplaceIamInstanceProfileAssociationOutput { + s.IamInstanceProfileAssociation = v + return s +} + // Contains the parameters for ReplaceNetworkAclAssociation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclAssociationRequest type ReplaceNetworkAclAssociationInput struct { _ struct{} `type:"structure"` @@ -31531,7 +43769,26 @@ func (s *ReplaceNetworkAclAssociationInput) Validate() error { return nil } +// SetAssociationId sets the AssociationId field's value. +func (s *ReplaceNetworkAclAssociationInput) SetAssociationId(v string) *ReplaceNetworkAclAssociationInput { + s.AssociationId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ReplaceNetworkAclAssociationInput) SetDryRun(v bool) *ReplaceNetworkAclAssociationInput { + s.DryRun = &v + return s +} + +// SetNetworkAclId sets the NetworkAclId field's value. +func (s *ReplaceNetworkAclAssociationInput) SetNetworkAclId(v string) *ReplaceNetworkAclAssociationInput { + s.NetworkAclId = &v + return s +} + // Contains the output of ReplaceNetworkAclAssociation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclAssociationResult type ReplaceNetworkAclAssociationOutput struct { _ struct{} `type:"structure"` @@ -31549,14 +43806,19 @@ func (s ReplaceNetworkAclAssociationOutput) GoString() string { return s.String() } +// SetNewAssociationId sets the NewAssociationId field's value. +func (s *ReplaceNetworkAclAssociationOutput) SetNewAssociationId(v string) *ReplaceNetworkAclAssociationOutput { + s.NewAssociationId = &v + return s +} + // Contains the parameters for ReplaceNetworkAclEntry. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclEntryRequest type ReplaceNetworkAclEntryInput struct { _ struct{} `type:"structure"` - // The network range to allow or deny, in CIDR notation. - // - // CidrBlock is a required field - CidrBlock *string `locationName:"cidrBlock" type:"string" required:"true"` + // The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24). + CidrBlock *string `locationName:"cidrBlock" type:"string"` // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have @@ -31571,20 +43833,29 @@ type ReplaceNetworkAclEntryInput struct { // Egress is a required field Egress *bool `locationName:"egress" type:"boolean" required:"true"` - // ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP) for - // the protocol. + // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying the + // ICMP (1) protocol, or protocol 58 (ICMPv6) with an IPv6 CIDR block. IcmpTypeCode *IcmpTypeCode `locationName:"Icmp" type:"structure"` + // The IPv6 network range to allow or deny, in CIDR notation (for example 2001:bd8:1234:1a00::/64). + Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"` + // The ID of the ACL. // // NetworkAclId is a required field NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"` // TCP or UDP protocols: The range of ports the rule applies to. Required if - // specifying 6 (TCP) or 17 (UDP) for the protocol. + // specifying TCP (6) or UDP (17) for the protocol. PortRange *PortRange `locationName:"portRange" type:"structure"` - // The IP protocol. You can specify all or -1 to mean all protocols. + // The IP protocol. You can specify all or -1 to mean all protocols. If you + // specify all, -1, or a protocol number other than tcp, udp, or icmp, traffic + // on all ports is allowed, regardless of any ports or ICMP types or codes you + // specify. If you specify protocol 58 (ICMPv6) and specify an IPv4 CIDR block, + // traffic for all ICMP types and codes allowed, regardless of any that you + // specify. If you specify protocol 58 (ICMPv6) and specify an IPv6 CIDR block, + // you must specify an ICMP type and code. // // Protocol is a required field Protocol *string `locationName:"protocol" type:"string" required:"true"` @@ -31613,9 +43884,6 @@ func (s ReplaceNetworkAclEntryInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *ReplaceNetworkAclEntryInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ReplaceNetworkAclEntryInput"} - if s.CidrBlock == nil { - invalidParams.Add(request.NewErrParamRequired("CidrBlock")) - } if s.Egress == nil { invalidParams.Add(request.NewErrParamRequired("Egress")) } @@ -31638,6 +43906,67 @@ func (s *ReplaceNetworkAclEntryInput) Validate() error { return nil } +// SetCidrBlock sets the CidrBlock field's value. +func (s *ReplaceNetworkAclEntryInput) SetCidrBlock(v string) *ReplaceNetworkAclEntryInput { + s.CidrBlock = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ReplaceNetworkAclEntryInput) SetDryRun(v bool) *ReplaceNetworkAclEntryInput { + s.DryRun = &v + return s +} + +// SetEgress sets the Egress field's value. +func (s *ReplaceNetworkAclEntryInput) SetEgress(v bool) *ReplaceNetworkAclEntryInput { + s.Egress = &v + return s +} + +// SetIcmpTypeCode sets the IcmpTypeCode field's value. +func (s *ReplaceNetworkAclEntryInput) SetIcmpTypeCode(v *IcmpTypeCode) *ReplaceNetworkAclEntryInput { + s.IcmpTypeCode = v + return s +} + +// SetIpv6CidrBlock sets the Ipv6CidrBlock field's value. +func (s *ReplaceNetworkAclEntryInput) SetIpv6CidrBlock(v string) *ReplaceNetworkAclEntryInput { + s.Ipv6CidrBlock = &v + return s +} + +// SetNetworkAclId sets the NetworkAclId field's value. +func (s *ReplaceNetworkAclEntryInput) SetNetworkAclId(v string) *ReplaceNetworkAclEntryInput { + s.NetworkAclId = &v + return s +} + +// SetPortRange sets the PortRange field's value. +func (s *ReplaceNetworkAclEntryInput) SetPortRange(v *PortRange) *ReplaceNetworkAclEntryInput { + s.PortRange = v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *ReplaceNetworkAclEntryInput) SetProtocol(v string) *ReplaceNetworkAclEntryInput { + s.Protocol = &v + return s +} + +// SetRuleAction sets the RuleAction field's value. +func (s *ReplaceNetworkAclEntryInput) SetRuleAction(v string) *ReplaceNetworkAclEntryInput { + s.RuleAction = &v + return s +} + +// SetRuleNumber sets the RuleNumber field's value. +func (s *ReplaceNetworkAclEntryInput) SetRuleNumber(v int64) *ReplaceNetworkAclEntryInput { + s.RuleNumber = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclEntryOutput type ReplaceNetworkAclEntryOutput struct { _ struct{} `type:"structure"` } @@ -31653,14 +43982,17 @@ func (s ReplaceNetworkAclEntryOutput) GoString() string { } // Contains the parameters for ReplaceRoute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteRequest type ReplaceRouteInput struct { _ struct{} `type:"structure"` - // The CIDR address block used for the destination match. The value you provide - // must match the CIDR of an existing route in the table. - // - // DestinationCidrBlock is a required field - DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string" required:"true"` + // The IPv4 CIDR address block used for the destination match. The value you + // provide must match the CIDR of an existing route in the table. + DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"` + + // The IPv6 CIDR address block used for the destination match. The value you + // provide must match the CIDR of an existing route in the table. + DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"` // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have @@ -31668,13 +44000,16 @@ type ReplaceRouteInput struct { // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` + // [IPv6 traffic only] The ID of an egress-only Internet gateway. + EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"` + // The ID of an Internet gateway or virtual private gateway. GatewayId *string `locationName:"gatewayId" type:"string"` // The ID of a NAT instance in your VPC. InstanceId *string `locationName:"instanceId" type:"string"` - // The ID of a NAT gateway. + // [IPv4 traffic only] The ID of a NAT gateway. NatGatewayId *string `locationName:"natGatewayId" type:"string"` // The ID of a network interface. @@ -31702,9 +44037,6 @@ func (s ReplaceRouteInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *ReplaceRouteInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ReplaceRouteInput"} - if s.DestinationCidrBlock == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock")) - } if s.RouteTableId == nil { invalidParams.Add(request.NewErrParamRequired("RouteTableId")) } @@ -31715,6 +44047,67 @@ func (s *ReplaceRouteInput) Validate() error { return nil } +// SetDestinationCidrBlock sets the DestinationCidrBlock field's value. +func (s *ReplaceRouteInput) SetDestinationCidrBlock(v string) *ReplaceRouteInput { + s.DestinationCidrBlock = &v + return s +} + +// SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value. +func (s *ReplaceRouteInput) SetDestinationIpv6CidrBlock(v string) *ReplaceRouteInput { + s.DestinationIpv6CidrBlock = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ReplaceRouteInput) SetDryRun(v bool) *ReplaceRouteInput { + s.DryRun = &v + return s +} + +// SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value. +func (s *ReplaceRouteInput) SetEgressOnlyInternetGatewayId(v string) *ReplaceRouteInput { + s.EgressOnlyInternetGatewayId = &v + return s +} + +// SetGatewayId sets the GatewayId field's value. +func (s *ReplaceRouteInput) SetGatewayId(v string) *ReplaceRouteInput { + s.GatewayId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ReplaceRouteInput) SetInstanceId(v string) *ReplaceRouteInput { + s.InstanceId = &v + return s +} + +// SetNatGatewayId sets the NatGatewayId field's value. +func (s *ReplaceRouteInput) SetNatGatewayId(v string) *ReplaceRouteInput { + s.NatGatewayId = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *ReplaceRouteInput) SetNetworkInterfaceId(v string) *ReplaceRouteInput { + s.NetworkInterfaceId = &v + return s +} + +// SetRouteTableId sets the RouteTableId field's value. +func (s *ReplaceRouteInput) SetRouteTableId(v string) *ReplaceRouteInput { + s.RouteTableId = &v + return s +} + +// SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. +func (s *ReplaceRouteInput) SetVpcPeeringConnectionId(v string) *ReplaceRouteInput { + s.VpcPeeringConnectionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteOutput type ReplaceRouteOutput struct { _ struct{} `type:"structure"` } @@ -31730,6 +44123,7 @@ func (s ReplaceRouteOutput) GoString() string { } // Contains the parameters for ReplaceRouteTableAssociation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteTableAssociationRequest type ReplaceRouteTableAssociationInput struct { _ struct{} `type:"structure"` @@ -31776,7 +44170,26 @@ func (s *ReplaceRouteTableAssociationInput) Validate() error { return nil } +// SetAssociationId sets the AssociationId field's value. +func (s *ReplaceRouteTableAssociationInput) SetAssociationId(v string) *ReplaceRouteTableAssociationInput { + s.AssociationId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ReplaceRouteTableAssociationInput) SetDryRun(v bool) *ReplaceRouteTableAssociationInput { + s.DryRun = &v + return s +} + +// SetRouteTableId sets the RouteTableId field's value. +func (s *ReplaceRouteTableAssociationInput) SetRouteTableId(v string) *ReplaceRouteTableAssociationInput { + s.RouteTableId = &v + return s +} + // Contains the output of ReplaceRouteTableAssociation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteTableAssociationResult type ReplaceRouteTableAssociationOutput struct { _ struct{} `type:"structure"` @@ -31794,7 +44207,14 @@ func (s ReplaceRouteTableAssociationOutput) GoString() string { return s.String() } +// SetNewAssociationId sets the NewAssociationId field's value. +func (s *ReplaceRouteTableAssociationOutput) SetNewAssociationId(v string) *ReplaceRouteTableAssociationOutput { + s.NewAssociationId = &v + return s +} + // Contains the parameters for ReportInstanceStatus. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReportInstanceStatusRequest type ReportInstanceStatusInput struct { _ struct{} `type:"structure"` @@ -31817,26 +44237,26 @@ type ReportInstanceStatusInput struct { // One or more reason codes that describes the health state of your instance. // - // instance-stuck-in-state: My instance is stuck in a state. + // * instance-stuck-in-state: My instance is stuck in a state. // - // unresponsive: My instance is unresponsive. + // * unresponsive: My instance is unresponsive. // - // not-accepting-credentials: My instance is not accepting my credentials. + // * not-accepting-credentials: My instance is not accepting my credentials. // - // password-not-available: A password is not available for my instance. + // * password-not-available: A password is not available for my instance. // - // performance-network: My instance is experiencing performance problems - // which I believe are network related. + // * performance-network: My instance is experiencing performance problems + // which I believe are network related. // - // performance-instance-store: My instance is experiencing performance problems - // which I believe are related to the instance stores. + // * performance-instance-store: My instance is experiencing performance + // problems which I believe are related to the instance stores. // - // performance-ebs-volume: My instance is experiencing performance problems - // which I believe are related to an EBS volume. + // * performance-ebs-volume: My instance is experiencing performance problems + // which I believe are related to an EBS volume. // - // performance-other: My instance is experiencing performance problems. + // * performance-other: My instance is experiencing performance problems. // - // other: [explain using the description parameter] + // * other: [explain using the description parameter] // // ReasonCodes is a required field ReasonCodes []*string `locationName:"reasonCode" locationNameList:"item" type:"list" required:"true"` @@ -31879,6 +44299,49 @@ func (s *ReportInstanceStatusInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *ReportInstanceStatusInput) SetDescription(v string) *ReportInstanceStatusInput { + s.Description = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ReportInstanceStatusInput) SetDryRun(v bool) *ReportInstanceStatusInput { + s.DryRun = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *ReportInstanceStatusInput) SetEndTime(v time.Time) *ReportInstanceStatusInput { + s.EndTime = &v + return s +} + +// SetInstances sets the Instances field's value. +func (s *ReportInstanceStatusInput) SetInstances(v []*string) *ReportInstanceStatusInput { + s.Instances = v + return s +} + +// SetReasonCodes sets the ReasonCodes field's value. +func (s *ReportInstanceStatusInput) SetReasonCodes(v []*string) *ReportInstanceStatusInput { + s.ReasonCodes = v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *ReportInstanceStatusInput) SetStartTime(v time.Time) *ReportInstanceStatusInput { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ReportInstanceStatusInput) SetStatus(v string) *ReportInstanceStatusInput { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReportInstanceStatusOutput type ReportInstanceStatusOutput struct { _ struct{} `type:"structure"` } @@ -31894,6 +44357,7 @@ func (s ReportInstanceStatusOutput) GoString() string { } // Contains the parameters for RequestSpotFleet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotFleetRequest type RequestSpotFleetInput struct { _ struct{} `type:"structure"` @@ -31937,7 +44401,20 @@ func (s *RequestSpotFleetInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *RequestSpotFleetInput) SetDryRun(v bool) *RequestSpotFleetInput { + s.DryRun = &v + return s +} + +// SetSpotFleetRequestConfig sets the SpotFleetRequestConfig field's value. +func (s *RequestSpotFleetInput) SetSpotFleetRequestConfig(v *SpotFleetRequestConfigData) *RequestSpotFleetInput { + s.SpotFleetRequestConfig = v + return s +} + // Contains the output of RequestSpotFleet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotFleetResponse type RequestSpotFleetOutput struct { _ struct{} `type:"structure"` @@ -31957,14 +44434,21 @@ func (s RequestSpotFleetOutput) GoString() string { return s.String() } +// SetSpotFleetRequestId sets the SpotFleetRequestId field's value. +func (s *RequestSpotFleetOutput) SetSpotFleetRequestId(v string) *RequestSpotFleetOutput { + s.SpotFleetRequestId = &v + return s +} + // Contains the parameters for RequestSpotInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotInstancesRequest type RequestSpotInstancesInput struct { _ struct{} `type:"structure"` // The user-specified name for a logical grouping of bids. // - // When you specify an Availability Zone group in a Spot Instance request, - // all Spot instances in the request are launched in the same Availability Zone. + // When you specify an Availability Zone group in a Spot Instance request, all + // Spot instances in the request are launched in the same Availability Zone. // Instance proximity is maintained with this parameter, but the choice of Availability // Zone is not. The group applies only to bids for Spot Instances of the same // instance type. Any additional Spot instance requests that are specified with @@ -32077,7 +44561,74 @@ func (s *RequestSpotInstancesInput) Validate() error { return nil } +// SetAvailabilityZoneGroup sets the AvailabilityZoneGroup field's value. +func (s *RequestSpotInstancesInput) SetAvailabilityZoneGroup(v string) *RequestSpotInstancesInput { + s.AvailabilityZoneGroup = &v + return s +} + +// SetBlockDurationMinutes sets the BlockDurationMinutes field's value. +func (s *RequestSpotInstancesInput) SetBlockDurationMinutes(v int64) *RequestSpotInstancesInput { + s.BlockDurationMinutes = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *RequestSpotInstancesInput) SetClientToken(v string) *RequestSpotInstancesInput { + s.ClientToken = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *RequestSpotInstancesInput) SetDryRun(v bool) *RequestSpotInstancesInput { + s.DryRun = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *RequestSpotInstancesInput) SetInstanceCount(v int64) *RequestSpotInstancesInput { + s.InstanceCount = &v + return s +} + +// SetLaunchGroup sets the LaunchGroup field's value. +func (s *RequestSpotInstancesInput) SetLaunchGroup(v string) *RequestSpotInstancesInput { + s.LaunchGroup = &v + return s +} + +// SetLaunchSpecification sets the LaunchSpecification field's value. +func (s *RequestSpotInstancesInput) SetLaunchSpecification(v *RequestSpotLaunchSpecification) *RequestSpotInstancesInput { + s.LaunchSpecification = v + return s +} + +// SetSpotPrice sets the SpotPrice field's value. +func (s *RequestSpotInstancesInput) SetSpotPrice(v string) *RequestSpotInstancesInput { + s.SpotPrice = &v + return s +} + +// SetType sets the Type field's value. +func (s *RequestSpotInstancesInput) SetType(v string) *RequestSpotInstancesInput { + s.Type = &v + return s +} + +// SetValidFrom sets the ValidFrom field's value. +func (s *RequestSpotInstancesInput) SetValidFrom(v time.Time) *RequestSpotInstancesInput { + s.ValidFrom = &v + return s +} + +// SetValidUntil sets the ValidUntil field's value. +func (s *RequestSpotInstancesInput) SetValidUntil(v time.Time) *RequestSpotInstancesInput { + s.ValidUntil = &v + return s +} + // Contains the output of RequestSpotInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotInstancesResult type RequestSpotInstancesOutput struct { _ struct{} `type:"structure"` @@ -32095,7 +44646,14 @@ func (s RequestSpotInstancesOutput) GoString() string { return s.String() } +// SetSpotInstanceRequests sets the SpotInstanceRequests field's value. +func (s *RequestSpotInstancesOutput) SetSpotInstanceRequests(v []*SpotInstanceRequest) *RequestSpotInstancesOutput { + s.SpotInstanceRequests = v + return s +} + // Describes the launch specification for an instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotLaunchSpecification type RequestSpotLaunchSpecification struct { _ struct{} `type:"structure"` @@ -32132,10 +44690,11 @@ type RequestSpotLaunchSpecification struct { // The name of the key pair. KeyName *string `locationName:"keyName" type:"string"` - // Describes the monitoring for the instance. + // Describes the monitoring of an instance. Monitoring *RunInstancesMonitoringEnabled `locationName:"monitoring" type:"structure"` - // One or more network interfaces. + // One or more network interfaces. If you specify a network interface, you must + // specify subnet IDs and security group IDs using the network interface. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"NetworkInterface" locationNameList:"item" type:"list"` // The placement information for the instance. @@ -32192,7 +44751,104 @@ func (s *RequestSpotLaunchSpecification) Validate() error { return nil } +// SetAddressingType sets the AddressingType field's value. +func (s *RequestSpotLaunchSpecification) SetAddressingType(v string) *RequestSpotLaunchSpecification { + s.AddressingType = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *RequestSpotLaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RequestSpotLaunchSpecification { + s.BlockDeviceMappings = v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *RequestSpotLaunchSpecification) SetEbsOptimized(v bool) *RequestSpotLaunchSpecification { + s.EbsOptimized = &v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *RequestSpotLaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *RequestSpotLaunchSpecification { + s.IamInstanceProfile = v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *RequestSpotLaunchSpecification) SetImageId(v string) *RequestSpotLaunchSpecification { + s.ImageId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *RequestSpotLaunchSpecification) SetInstanceType(v string) *RequestSpotLaunchSpecification { + s.InstanceType = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *RequestSpotLaunchSpecification) SetKernelId(v string) *RequestSpotLaunchSpecification { + s.KernelId = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *RequestSpotLaunchSpecification) SetKeyName(v string) *RequestSpotLaunchSpecification { + s.KeyName = &v + return s +} + +// SetMonitoring sets the Monitoring field's value. +func (s *RequestSpotLaunchSpecification) SetMonitoring(v *RunInstancesMonitoringEnabled) *RequestSpotLaunchSpecification { + s.Monitoring = v + return s +} + +// SetNetworkInterfaces sets the NetworkInterfaces field's value. +func (s *RequestSpotLaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *RequestSpotLaunchSpecification { + s.NetworkInterfaces = v + return s +} + +// SetPlacement sets the Placement field's value. +func (s *RequestSpotLaunchSpecification) SetPlacement(v *SpotPlacement) *RequestSpotLaunchSpecification { + s.Placement = v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *RequestSpotLaunchSpecification) SetRamdiskId(v string) *RequestSpotLaunchSpecification { + s.RamdiskId = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *RequestSpotLaunchSpecification) SetSecurityGroupIds(v []*string) *RequestSpotLaunchSpecification { + s.SecurityGroupIds = v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *RequestSpotLaunchSpecification) SetSecurityGroups(v []*string) *RequestSpotLaunchSpecification { + s.SecurityGroups = v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *RequestSpotLaunchSpecification) SetSubnetId(v string) *RequestSpotLaunchSpecification { + s.SubnetId = &v + return s +} + +// SetUserData sets the UserData field's value. +func (s *RequestSpotLaunchSpecification) SetUserData(v string) *RequestSpotLaunchSpecification { + s.UserData = &v + return s +} + // Describes a reservation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Reservation type Reservation struct { _ struct{} `type:"structure"` @@ -32223,7 +44879,38 @@ func (s Reservation) GoString() string { return s.String() } +// SetGroups sets the Groups field's value. +func (s *Reservation) SetGroups(v []*GroupIdentifier) *Reservation { + s.Groups = v + return s +} + +// SetInstances sets the Instances field's value. +func (s *Reservation) SetInstances(v []*Instance) *Reservation { + s.Instances = v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *Reservation) SetOwnerId(v string) *Reservation { + s.OwnerId = &v + return s +} + +// SetRequesterId sets the RequesterId field's value. +func (s *Reservation) SetRequesterId(v string) *Reservation { + s.RequesterId = &v + return s +} + +// SetReservationId sets the ReservationId field's value. +func (s *Reservation) SetReservationId(v string) *Reservation { + s.ReservationId = &v + return s +} + // The cost associated with the Reserved Instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservationValue type ReservationValue struct { _ struct{} `type:"structure"` @@ -32248,7 +44935,26 @@ func (s ReservationValue) GoString() string { return s.String() } +// SetHourlyPrice sets the HourlyPrice field's value. +func (s *ReservationValue) SetHourlyPrice(v string) *ReservationValue { + s.HourlyPrice = &v + return s +} + +// SetRemainingTotalValue sets the RemainingTotalValue field's value. +func (s *ReservationValue) SetRemainingTotalValue(v string) *ReservationValue { + s.RemainingTotalValue = &v + return s +} + +// SetRemainingUpfrontValue sets the RemainingUpfrontValue field's value. +func (s *ReservationValue) SetRemainingUpfrontValue(v string) *ReservationValue { + s.RemainingUpfrontValue = &v + return s +} + // Describes the limit price of a Reserved Instance offering. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstanceLimitPrice type ReservedInstanceLimitPrice struct { _ struct{} `type:"structure"` @@ -32271,7 +44977,20 @@ func (s ReservedInstanceLimitPrice) GoString() string { return s.String() } +// SetAmount sets the Amount field's value. +func (s *ReservedInstanceLimitPrice) SetAmount(v float64) *ReservedInstanceLimitPrice { + s.Amount = &v + return s +} + +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *ReservedInstanceLimitPrice) SetCurrencyCode(v string) *ReservedInstanceLimitPrice { + s.CurrencyCode = &v + return s +} + // The total value of the Convertible Reserved Instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstanceReservationValue type ReservedInstanceReservationValue struct { _ struct{} `type:"structure"` @@ -32292,7 +45011,20 @@ func (s ReservedInstanceReservationValue) GoString() string { return s.String() } +// SetReservationValue sets the ReservationValue field's value. +func (s *ReservedInstanceReservationValue) SetReservationValue(v *ReservationValue) *ReservedInstanceReservationValue { + s.ReservationValue = v + return s +} + +// SetReservedInstanceId sets the ReservedInstanceId field's value. +func (s *ReservedInstanceReservationValue) SetReservedInstanceId(v string) *ReservedInstanceReservationValue { + s.ReservedInstanceId = &v + return s +} + // Describes a Reserved Instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstances type ReservedInstances struct { _ struct{} `type:"structure"` @@ -32362,7 +45094,116 @@ func (s ReservedInstances) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ReservedInstances) SetAvailabilityZone(v string) *ReservedInstances { + s.AvailabilityZone = &v + return s +} + +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *ReservedInstances) SetCurrencyCode(v string) *ReservedInstances { + s.CurrencyCode = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *ReservedInstances) SetDuration(v int64) *ReservedInstances { + s.Duration = &v + return s +} + +// SetEnd sets the End field's value. +func (s *ReservedInstances) SetEnd(v time.Time) *ReservedInstances { + s.End = &v + return s +} + +// SetFixedPrice sets the FixedPrice field's value. +func (s *ReservedInstances) SetFixedPrice(v float64) *ReservedInstances { + s.FixedPrice = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *ReservedInstances) SetInstanceCount(v int64) *ReservedInstances { + s.InstanceCount = &v + return s +} + +// SetInstanceTenancy sets the InstanceTenancy field's value. +func (s *ReservedInstances) SetInstanceTenancy(v string) *ReservedInstances { + s.InstanceTenancy = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ReservedInstances) SetInstanceType(v string) *ReservedInstances { + s.InstanceType = &v + return s +} + +// SetOfferingClass sets the OfferingClass field's value. +func (s *ReservedInstances) SetOfferingClass(v string) *ReservedInstances { + s.OfferingClass = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *ReservedInstances) SetOfferingType(v string) *ReservedInstances { + s.OfferingType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *ReservedInstances) SetProductDescription(v string) *ReservedInstances { + s.ProductDescription = &v + return s +} + +// SetRecurringCharges sets the RecurringCharges field's value. +func (s *ReservedInstances) SetRecurringCharges(v []*RecurringCharge) *ReservedInstances { + s.RecurringCharges = v + return s +} + +// SetReservedInstancesId sets the ReservedInstancesId field's value. +func (s *ReservedInstances) SetReservedInstancesId(v string) *ReservedInstances { + s.ReservedInstancesId = &v + return s +} + +// SetScope sets the Scope field's value. +func (s *ReservedInstances) SetScope(v string) *ReservedInstances { + s.Scope = &v + return s +} + +// SetStart sets the Start field's value. +func (s *ReservedInstances) SetStart(v time.Time) *ReservedInstances { + s.Start = &v + return s +} + +// SetState sets the State field's value. +func (s *ReservedInstances) SetState(v string) *ReservedInstances { + s.State = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ReservedInstances) SetTags(v []*Tag) *ReservedInstances { + s.Tags = v + return s +} + +// SetUsagePrice sets the UsagePrice field's value. +func (s *ReservedInstances) SetUsagePrice(v float64) *ReservedInstances { + s.UsagePrice = &v + return s +} + // Describes the configuration settings for the modified Reserved Instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstancesConfiguration type ReservedInstancesConfiguration struct { _ struct{} `type:"structure"` @@ -32379,7 +45220,8 @@ type ReservedInstancesConfiguration struct { // EC2-Classic or EC2-VPC. Platform *string `locationName:"platform" type:"string"` - // Whether the Reserved Instance is standard or convertible. + // Whether the Reserved Instance is applied to instances in a region or instances + // in a specific Availability Zone. Scope *string `locationName:"scope" type:"string" enum:"scope"` } @@ -32393,7 +45235,38 @@ func (s ReservedInstancesConfiguration) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ReservedInstancesConfiguration) SetAvailabilityZone(v string) *ReservedInstancesConfiguration { + s.AvailabilityZone = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *ReservedInstancesConfiguration) SetInstanceCount(v int64) *ReservedInstancesConfiguration { + s.InstanceCount = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ReservedInstancesConfiguration) SetInstanceType(v string) *ReservedInstancesConfiguration { + s.InstanceType = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *ReservedInstancesConfiguration) SetPlatform(v string) *ReservedInstancesConfiguration { + s.Platform = &v + return s +} + +// SetScope sets the Scope field's value. +func (s *ReservedInstancesConfiguration) SetScope(v string) *ReservedInstancesConfiguration { + s.Scope = &v + return s +} + // Describes the ID of a Reserved Instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstancesId type ReservedInstancesId struct { _ struct{} `type:"structure"` @@ -32411,7 +45284,14 @@ func (s ReservedInstancesId) GoString() string { return s.String() } +// SetReservedInstancesId sets the ReservedInstancesId field's value. +func (s *ReservedInstancesId) SetReservedInstancesId(v string) *ReservedInstancesId { + s.ReservedInstancesId = &v + return s +} + // Describes a Reserved Instance listing. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstancesListing type ReservedInstancesListing struct { _ struct{} `type:"structure"` @@ -32458,7 +45338,68 @@ func (s ReservedInstancesListing) GoString() string { return s.String() } +// SetClientToken sets the ClientToken field's value. +func (s *ReservedInstancesListing) SetClientToken(v string) *ReservedInstancesListing { + s.ClientToken = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *ReservedInstancesListing) SetCreateDate(v time.Time) *ReservedInstancesListing { + s.CreateDate = &v + return s +} + +// SetInstanceCounts sets the InstanceCounts field's value. +func (s *ReservedInstancesListing) SetInstanceCounts(v []*InstanceCount) *ReservedInstancesListing { + s.InstanceCounts = v + return s +} + +// SetPriceSchedules sets the PriceSchedules field's value. +func (s *ReservedInstancesListing) SetPriceSchedules(v []*PriceSchedule) *ReservedInstancesListing { + s.PriceSchedules = v + return s +} + +// SetReservedInstancesId sets the ReservedInstancesId field's value. +func (s *ReservedInstancesListing) SetReservedInstancesId(v string) *ReservedInstancesListing { + s.ReservedInstancesId = &v + return s +} + +// SetReservedInstancesListingId sets the ReservedInstancesListingId field's value. +func (s *ReservedInstancesListing) SetReservedInstancesListingId(v string) *ReservedInstancesListing { + s.ReservedInstancesListingId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ReservedInstancesListing) SetStatus(v string) *ReservedInstancesListing { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ReservedInstancesListing) SetStatusMessage(v string) *ReservedInstancesListing { + s.StatusMessage = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ReservedInstancesListing) SetTags(v []*Tag) *ReservedInstancesListing { + s.Tags = v + return s +} + +// SetUpdateDate sets the UpdateDate field's value. +func (s *ReservedInstancesListing) SetUpdateDate(v time.Time) *ReservedInstancesListing { + s.UpdateDate = &v + return s +} + // Describes a Reserved Instance modification. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstancesModification type ReservedInstancesModification struct { _ struct{} `type:"structure"` @@ -32502,7 +45443,62 @@ func (s ReservedInstancesModification) GoString() string { return s.String() } +// SetClientToken sets the ClientToken field's value. +func (s *ReservedInstancesModification) SetClientToken(v string) *ReservedInstancesModification { + s.ClientToken = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *ReservedInstancesModification) SetCreateDate(v time.Time) *ReservedInstancesModification { + s.CreateDate = &v + return s +} + +// SetEffectiveDate sets the EffectiveDate field's value. +func (s *ReservedInstancesModification) SetEffectiveDate(v time.Time) *ReservedInstancesModification { + s.EffectiveDate = &v + return s +} + +// SetModificationResults sets the ModificationResults field's value. +func (s *ReservedInstancesModification) SetModificationResults(v []*ReservedInstancesModificationResult) *ReservedInstancesModification { + s.ModificationResults = v + return s +} + +// SetReservedInstancesIds sets the ReservedInstancesIds field's value. +func (s *ReservedInstancesModification) SetReservedInstancesIds(v []*ReservedInstancesId) *ReservedInstancesModification { + s.ReservedInstancesIds = v + return s +} + +// SetReservedInstancesModificationId sets the ReservedInstancesModificationId field's value. +func (s *ReservedInstancesModification) SetReservedInstancesModificationId(v string) *ReservedInstancesModification { + s.ReservedInstancesModificationId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ReservedInstancesModification) SetStatus(v string) *ReservedInstancesModification { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ReservedInstancesModification) SetStatusMessage(v string) *ReservedInstancesModification { + s.StatusMessage = &v + return s +} + +// SetUpdateDate sets the UpdateDate field's value. +func (s *ReservedInstancesModification) SetUpdateDate(v time.Time) *ReservedInstancesModification { + s.UpdateDate = &v + return s +} + // Describes the modification request/s. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstancesModificationResult type ReservedInstancesModificationResult struct { _ struct{} `type:"structure"` @@ -32525,7 +45521,20 @@ func (s ReservedInstancesModificationResult) GoString() string { return s.String() } +// SetReservedInstancesId sets the ReservedInstancesId field's value. +func (s *ReservedInstancesModificationResult) SetReservedInstancesId(v string) *ReservedInstancesModificationResult { + s.ReservedInstancesId = &v + return s +} + +// SetTargetConfiguration sets the TargetConfiguration field's value. +func (s *ReservedInstancesModificationResult) SetTargetConfiguration(v *ReservedInstancesConfiguration) *ReservedInstancesModificationResult { + s.TargetConfiguration = v + return s +} + // Describes a Reserved Instance offering. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstancesOffering type ReservedInstancesOffering struct { _ struct{} `type:"structure"` @@ -32593,7 +45602,98 @@ func (s ReservedInstancesOffering) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ReservedInstancesOffering) SetAvailabilityZone(v string) *ReservedInstancesOffering { + s.AvailabilityZone = &v + return s +} + +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *ReservedInstancesOffering) SetCurrencyCode(v string) *ReservedInstancesOffering { + s.CurrencyCode = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *ReservedInstancesOffering) SetDuration(v int64) *ReservedInstancesOffering { + s.Duration = &v + return s +} + +// SetFixedPrice sets the FixedPrice field's value. +func (s *ReservedInstancesOffering) SetFixedPrice(v float64) *ReservedInstancesOffering { + s.FixedPrice = &v + return s +} + +// SetInstanceTenancy sets the InstanceTenancy field's value. +func (s *ReservedInstancesOffering) SetInstanceTenancy(v string) *ReservedInstancesOffering { + s.InstanceTenancy = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ReservedInstancesOffering) SetInstanceType(v string) *ReservedInstancesOffering { + s.InstanceType = &v + return s +} + +// SetMarketplace sets the Marketplace field's value. +func (s *ReservedInstancesOffering) SetMarketplace(v bool) *ReservedInstancesOffering { + s.Marketplace = &v + return s +} + +// SetOfferingClass sets the OfferingClass field's value. +func (s *ReservedInstancesOffering) SetOfferingClass(v string) *ReservedInstancesOffering { + s.OfferingClass = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *ReservedInstancesOffering) SetOfferingType(v string) *ReservedInstancesOffering { + s.OfferingType = &v + return s +} + +// SetPricingDetails sets the PricingDetails field's value. +func (s *ReservedInstancesOffering) SetPricingDetails(v []*PricingDetail) *ReservedInstancesOffering { + s.PricingDetails = v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *ReservedInstancesOffering) SetProductDescription(v string) *ReservedInstancesOffering { + s.ProductDescription = &v + return s +} + +// SetRecurringCharges sets the RecurringCharges field's value. +func (s *ReservedInstancesOffering) SetRecurringCharges(v []*RecurringCharge) *ReservedInstancesOffering { + s.RecurringCharges = v + return s +} + +// SetReservedInstancesOfferingId sets the ReservedInstancesOfferingId field's value. +func (s *ReservedInstancesOffering) SetReservedInstancesOfferingId(v string) *ReservedInstancesOffering { + s.ReservedInstancesOfferingId = &v + return s +} + +// SetScope sets the Scope field's value. +func (s *ReservedInstancesOffering) SetScope(v string) *ReservedInstancesOffering { + s.Scope = &v + return s +} + +// SetUsagePrice sets the UsagePrice field's value. +func (s *ReservedInstancesOffering) SetUsagePrice(v float64) *ReservedInstancesOffering { + s.UsagePrice = &v + return s +} + // Contains the parameters for ResetImageAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetImageAttributeRequest type ResetImageAttributeInput struct { _ struct{} `type:"structure"` @@ -32641,6 +45741,25 @@ func (s *ResetImageAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *ResetImageAttributeInput) SetAttribute(v string) *ResetImageAttributeInput { + s.Attribute = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ResetImageAttributeInput) SetDryRun(v bool) *ResetImageAttributeInput { + s.DryRun = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *ResetImageAttributeInput) SetImageId(v string) *ResetImageAttributeInput { + s.ImageId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetImageAttributeOutput type ResetImageAttributeOutput struct { _ struct{} `type:"structure"` } @@ -32656,12 +45775,13 @@ func (s ResetImageAttributeOutput) GoString() string { } // Contains the parameters for ResetInstanceAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetInstanceAttributeRequest type ResetInstanceAttributeInput struct { _ struct{} `type:"structure"` // The attribute to reset. // - // You can only reset the following attributes: kernel | ramdisk | sourceDestCheck. + // You can only reset the following attributes: kernel | ramdisk | sourceDestCheck. // To change an instance attribute, use ModifyInstanceAttribute. // // Attribute is a required field @@ -32705,6 +45825,25 @@ func (s *ResetInstanceAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *ResetInstanceAttributeInput) SetAttribute(v string) *ResetInstanceAttributeInput { + s.Attribute = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ResetInstanceAttributeInput) SetDryRun(v bool) *ResetInstanceAttributeInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ResetInstanceAttributeInput) SetInstanceId(v string) *ResetInstanceAttributeInput { + s.InstanceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetInstanceAttributeOutput type ResetInstanceAttributeOutput struct { _ struct{} `type:"structure"` } @@ -32720,6 +45859,7 @@ func (s ResetInstanceAttributeOutput) GoString() string { } // Contains the parameters for ResetNetworkInterfaceAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetNetworkInterfaceAttributeRequest type ResetNetworkInterfaceAttributeInput struct { _ struct{} `type:"structure"` @@ -32761,6 +45901,25 @@ func (s *ResetNetworkInterfaceAttributeInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *ResetNetworkInterfaceAttributeInput) SetDryRun(v bool) *ResetNetworkInterfaceAttributeInput { + s.DryRun = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *ResetNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *ResetNetworkInterfaceAttributeInput { + s.NetworkInterfaceId = &v + return s +} + +// SetSourceDestCheck sets the SourceDestCheck field's value. +func (s *ResetNetworkInterfaceAttributeInput) SetSourceDestCheck(v string) *ResetNetworkInterfaceAttributeInput { + s.SourceDestCheck = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetNetworkInterfaceAttributeOutput type ResetNetworkInterfaceAttributeOutput struct { _ struct{} `type:"structure"` } @@ -32776,6 +45935,7 @@ func (s ResetNetworkInterfaceAttributeOutput) GoString() string { } // Contains the parameters for ResetSnapshotAttribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetSnapshotAttributeRequest type ResetSnapshotAttributeInput struct { _ struct{} `type:"structure"` @@ -32823,6 +45983,25 @@ func (s *ResetSnapshotAttributeInput) Validate() error { return nil } +// SetAttribute sets the Attribute field's value. +func (s *ResetSnapshotAttributeInput) SetAttribute(v string) *ResetSnapshotAttributeInput { + s.Attribute = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ResetSnapshotAttributeInput) SetDryRun(v bool) *ResetSnapshotAttributeInput { + s.DryRun = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *ResetSnapshotAttributeInput) SetSnapshotId(v string) *ResetSnapshotAttributeInput { + s.SnapshotId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetSnapshotAttributeOutput type ResetSnapshotAttributeOutput struct { _ struct{} `type:"structure"` } @@ -32838,6 +46017,7 @@ func (s ResetSnapshotAttributeOutput) GoString() string { } // Contains the parameters for RestoreAddressToClassic. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassicRequest type RestoreAddressToClassicInput struct { _ struct{} `type:"structure"` @@ -32876,7 +46056,20 @@ func (s *RestoreAddressToClassicInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *RestoreAddressToClassicInput) SetDryRun(v bool) *RestoreAddressToClassicInput { + s.DryRun = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *RestoreAddressToClassicInput) SetPublicIp(v string) *RestoreAddressToClassicInput { + s.PublicIp = &v + return s +} + // Contains the output of RestoreAddressToClassic. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassicResult type RestoreAddressToClassicOutput struct { _ struct{} `type:"structure"` @@ -32897,7 +46090,20 @@ func (s RestoreAddressToClassicOutput) GoString() string { return s.String() } +// SetPublicIp sets the PublicIp field's value. +func (s *RestoreAddressToClassicOutput) SetPublicIp(v string) *RestoreAddressToClassicOutput { + s.PublicIp = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *RestoreAddressToClassicOutput) SetStatus(v string) *RestoreAddressToClassicOutput { + s.Status = &v + return s +} + // Contains the parameters for RevokeSecurityGroupEgress. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupEgressRequest type RevokeSecurityGroupEgressInput struct { _ struct{} `type:"structure"` @@ -32966,6 +46172,61 @@ func (s *RevokeSecurityGroupEgressInput) Validate() error { return nil } +// SetCidrIp sets the CidrIp field's value. +func (s *RevokeSecurityGroupEgressInput) SetCidrIp(v string) *RevokeSecurityGroupEgressInput { + s.CidrIp = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *RevokeSecurityGroupEgressInput) SetDryRun(v bool) *RevokeSecurityGroupEgressInput { + s.DryRun = &v + return s +} + +// SetFromPort sets the FromPort field's value. +func (s *RevokeSecurityGroupEgressInput) SetFromPort(v int64) *RevokeSecurityGroupEgressInput { + s.FromPort = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *RevokeSecurityGroupEgressInput) SetGroupId(v string) *RevokeSecurityGroupEgressInput { + s.GroupId = &v + return s +} + +// SetIpPermissions sets the IpPermissions field's value. +func (s *RevokeSecurityGroupEgressInput) SetIpPermissions(v []*IpPermission) *RevokeSecurityGroupEgressInput { + s.IpPermissions = v + return s +} + +// SetIpProtocol sets the IpProtocol field's value. +func (s *RevokeSecurityGroupEgressInput) SetIpProtocol(v string) *RevokeSecurityGroupEgressInput { + s.IpProtocol = &v + return s +} + +// SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value. +func (s *RevokeSecurityGroupEgressInput) SetSourceSecurityGroupName(v string) *RevokeSecurityGroupEgressInput { + s.SourceSecurityGroupName = &v + return s +} + +// SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value. +func (s *RevokeSecurityGroupEgressInput) SetSourceSecurityGroupOwnerId(v string) *RevokeSecurityGroupEgressInput { + s.SourceSecurityGroupOwnerId = &v + return s +} + +// SetToPort sets the ToPort field's value. +func (s *RevokeSecurityGroupEgressInput) SetToPort(v int64) *RevokeSecurityGroupEgressInput { + s.ToPort = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupEgressOutput type RevokeSecurityGroupEgressOutput struct { _ struct{} `type:"structure"` } @@ -32981,6 +46242,7 @@ func (s RevokeSecurityGroupEgressOutput) GoString() string { } // Contains the parameters for RevokeSecurityGroupIngress. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupIngressRequest type RevokeSecurityGroupIngressInput struct { _ struct{} `type:"structure"` @@ -33044,6 +46306,67 @@ func (s RevokeSecurityGroupIngressInput) GoString() string { return s.String() } +// SetCidrIp sets the CidrIp field's value. +func (s *RevokeSecurityGroupIngressInput) SetCidrIp(v string) *RevokeSecurityGroupIngressInput { + s.CidrIp = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *RevokeSecurityGroupIngressInput) SetDryRun(v bool) *RevokeSecurityGroupIngressInput { + s.DryRun = &v + return s +} + +// SetFromPort sets the FromPort field's value. +func (s *RevokeSecurityGroupIngressInput) SetFromPort(v int64) *RevokeSecurityGroupIngressInput { + s.FromPort = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *RevokeSecurityGroupIngressInput) SetGroupId(v string) *RevokeSecurityGroupIngressInput { + s.GroupId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *RevokeSecurityGroupIngressInput) SetGroupName(v string) *RevokeSecurityGroupIngressInput { + s.GroupName = &v + return s +} + +// SetIpPermissions sets the IpPermissions field's value. +func (s *RevokeSecurityGroupIngressInput) SetIpPermissions(v []*IpPermission) *RevokeSecurityGroupIngressInput { + s.IpPermissions = v + return s +} + +// SetIpProtocol sets the IpProtocol field's value. +func (s *RevokeSecurityGroupIngressInput) SetIpProtocol(v string) *RevokeSecurityGroupIngressInput { + s.IpProtocol = &v + return s +} + +// SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value. +func (s *RevokeSecurityGroupIngressInput) SetSourceSecurityGroupName(v string) *RevokeSecurityGroupIngressInput { + s.SourceSecurityGroupName = &v + return s +} + +// SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value. +func (s *RevokeSecurityGroupIngressInput) SetSourceSecurityGroupOwnerId(v string) *RevokeSecurityGroupIngressInput { + s.SourceSecurityGroupOwnerId = &v + return s +} + +// SetToPort sets the ToPort field's value. +func (s *RevokeSecurityGroupIngressInput) SetToPort(v int64) *RevokeSecurityGroupIngressInput { + s.ToPort = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupIngressOutput type RevokeSecurityGroupIngressOutput struct { _ struct{} `type:"structure"` } @@ -33059,15 +46382,22 @@ func (s RevokeSecurityGroupIngressOutput) GoString() string { } // Describes a route in a route table. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Route type Route struct { _ struct{} `type:"structure"` - // The CIDR block used for the destination match. + // The IPv4 CIDR block used for the destination match. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"` + // The IPv6 CIDR block used for the destination match. + DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"` + // The prefix of the AWS service. DestinationPrefixListId *string `locationName:"destinationPrefixListId" type:"string"` + // The ID of the egress-only Internet gateway. + EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"` + // The ID of a gateway attached to your VPC. GatewayId *string `locationName:"gatewayId" type:"string"` @@ -33085,12 +46415,12 @@ type Route struct { // Describes how the route was created. // - // CreateRouteTable - The route was automatically created when the route - // table was created. + // * CreateRouteTable - The route was automatically created when the route + // table was created. // - // CreateRoute - The route was manually added to the route table. + // * CreateRoute - The route was manually added to the route table. // - // EnableVgwRoutePropagation - The route was propagated by route propagation. + // * EnableVgwRoutePropagation - The route was propagated by route propagation. Origin *string `locationName:"origin" type:"string" enum:"RouteOrigin"` // The state of the route. The blackhole state indicates that the route's target @@ -33112,7 +46442,80 @@ func (s Route) GoString() string { return s.String() } +// SetDestinationCidrBlock sets the DestinationCidrBlock field's value. +func (s *Route) SetDestinationCidrBlock(v string) *Route { + s.DestinationCidrBlock = &v + return s +} + +// SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value. +func (s *Route) SetDestinationIpv6CidrBlock(v string) *Route { + s.DestinationIpv6CidrBlock = &v + return s +} + +// SetDestinationPrefixListId sets the DestinationPrefixListId field's value. +func (s *Route) SetDestinationPrefixListId(v string) *Route { + s.DestinationPrefixListId = &v + return s +} + +// SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value. +func (s *Route) SetEgressOnlyInternetGatewayId(v string) *Route { + s.EgressOnlyInternetGatewayId = &v + return s +} + +// SetGatewayId sets the GatewayId field's value. +func (s *Route) SetGatewayId(v string) *Route { + s.GatewayId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *Route) SetInstanceId(v string) *Route { + s.InstanceId = &v + return s +} + +// SetInstanceOwnerId sets the InstanceOwnerId field's value. +func (s *Route) SetInstanceOwnerId(v string) *Route { + s.InstanceOwnerId = &v + return s +} + +// SetNatGatewayId sets the NatGatewayId field's value. +func (s *Route) SetNatGatewayId(v string) *Route { + s.NatGatewayId = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *Route) SetNetworkInterfaceId(v string) *Route { + s.NetworkInterfaceId = &v + return s +} + +// SetOrigin sets the Origin field's value. +func (s *Route) SetOrigin(v string) *Route { + s.Origin = &v + return s +} + +// SetState sets the State field's value. +func (s *Route) SetState(v string) *Route { + s.State = &v + return s +} + +// SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. +func (s *Route) SetVpcPeeringConnectionId(v string) *Route { + s.VpcPeeringConnectionId = &v + return s +} + // Describes a route table. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RouteTable type RouteTable struct { _ struct{} `type:"structure"` @@ -33145,7 +46548,44 @@ func (s RouteTable) GoString() string { return s.String() } +// SetAssociations sets the Associations field's value. +func (s *RouteTable) SetAssociations(v []*RouteTableAssociation) *RouteTable { + s.Associations = v + return s +} + +// SetPropagatingVgws sets the PropagatingVgws field's value. +func (s *RouteTable) SetPropagatingVgws(v []*PropagatingVgw) *RouteTable { + s.PropagatingVgws = v + return s +} + +// SetRouteTableId sets the RouteTableId field's value. +func (s *RouteTable) SetRouteTableId(v string) *RouteTable { + s.RouteTableId = &v + return s +} + +// SetRoutes sets the Routes field's value. +func (s *RouteTable) SetRoutes(v []*Route) *RouteTable { + s.Routes = v + return s +} + +// SetTags sets the Tags field's value. +func (s *RouteTable) SetTags(v []*Tag) *RouteTable { + s.Tags = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *RouteTable) SetVpcId(v string) *RouteTable { + s.VpcId = &v + return s +} + // Describes an association between a route table and a subnet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RouteTableAssociation type RouteTableAssociation struct { _ struct{} `type:"structure"` @@ -33172,7 +46612,32 @@ func (s RouteTableAssociation) GoString() string { return s.String() } +// SetMain sets the Main field's value. +func (s *RouteTableAssociation) SetMain(v bool) *RouteTableAssociation { + s.Main = &v + return s +} + +// SetRouteTableAssociationId sets the RouteTableAssociationId field's value. +func (s *RouteTableAssociation) SetRouteTableAssociationId(v string) *RouteTableAssociation { + s.RouteTableAssociationId = &v + return s +} + +// SetRouteTableId sets the RouteTableId field's value. +func (s *RouteTableAssociation) SetRouteTableId(v string) *RouteTableAssociation { + s.RouteTableId = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *RouteTableAssociation) SetSubnetId(v string) *RouteTableAssociation { + s.SubnetId = &v + return s +} + // Contains the parameters for RunInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstancesRequest type RunInstancesInput struct { _ struct{} `type:"structure"` @@ -33181,7 +46646,7 @@ type RunInstancesInput struct { // The block device mapping. // - // Supplying both a snapshot ID and an encryption value as arguments for block-device + // Supplying both a snapshot ID and an encryption value as arguments for block-device // mapping results in an error. This is because only blank volumes can be encrypted // on start, and these are not created from a snapshot. If a snapshot is the // basis for the volume, it contains data by definition and its encryption status @@ -33195,12 +46660,10 @@ type RunInstancesInput struct { ClientToken *string `locationName:"clientToken" type:"string"` // If you set this parameter to true, you can't terminate the instance using - // the Amazon EC2 console, CLI, or API; otherwise, you can. If you set this - // parameter to true and then later want to be able to terminate the instance, - // you must first change the value of the disableApiTermination attribute to - // false using ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior - // to terminate, you can terminate the instance by running the shutdown command - // from the instance. + // the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute + // to false after launch, use ModifyInstanceAttribute. Alternatively, if you + // set InstanceInitiatedShutdownBehavior to terminate, you can terminate the + // instance by running the shutdown command from the instance. // // Default: false DisableApiTermination *bool `locationName:"disableApiTermination" type:"boolean"` @@ -33240,17 +46703,31 @@ type RunInstancesInput struct { // Default: m1.small InstanceType *string `type:"string" enum:"InstanceType"` + // [EC2-VPC] A number of IPv6 addresses to associate with the primary network + // interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet. + // You cannot specify this option and the option to assign specific IPv6 addresses + // in the same request. You can specify this option if you've specified a minimum + // number of instances to launch. + Ipv6AddressCount *int64 `type:"integer"` + + // [EC2-VPC] Specify one or more IPv6 addresses from the range of the subnet + // to associate with the primary network interface. You cannot specify this + // option and the option to assign a number of IPv6 addresses in the same request. + // You cannot specify this option if you've specified a minimum number of instances + // to launch. + Ipv6Addresses []*InstanceIpv6Address `locationName:"Ipv6Address" locationNameList:"item" type:"list"` + // The ID of the kernel. // - // We recommend that you use PV-GRUB instead of kernels and RAM disks. For - // more information, see PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) + // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more + // information, see PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) // in the Amazon Elastic Compute Cloud User Guide. KernelId *string `type:"string"` // The name of the key pair. You can create a key pair using CreateKeyPair or // ImportKeyPair. // - // If you do not specify a key pair, you can't connect to the instance unless + // If you do not specify a key pair, you can't connect to the instance unless // you choose an AMI that is configured to allow users another way to log in. KeyName *string `type:"string"` @@ -33287,23 +46764,19 @@ type RunInstancesInput struct { // The placement for the instance. Placement *Placement `type:"structure"` - // [EC2-VPC] The primary IP address. You must specify a value from the IP address - // range of the subnet. - // - // Only one private IP address can be designated as primary. Therefore, you - // can't specify this parameter if PrivateIpAddresses.n.Primary is set to true - // and PrivateIpAddresses.n.PrivateIpAddress is set to an IP address. + // [EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4 + // address range of the subnet. // - // You cannot specify this option if you're launching more than one instance - // in the request. - // - // Default: We select an IP address from the IP address range of the subnet. + // Only one private IP address can be designated as primary. You can't specify + // this option if you've specified the option to designate a private IP address + // as the primary IP address in a network interface specification. You cannot + // specify this option if you're launching more than one instance in the request. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` // The ID of the RAM disk. // - // We recommend that you use PV-GRUB instead of kernels and RAM disks. For - // more information, see PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) + // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more + // information, see PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) // in the Amazon Elastic Compute Cloud User Guide. RamdiskId *string `type:"string"` @@ -33374,11 +46847,163 @@ func (s *RunInstancesInput) Validate() error { return nil } -// Describes the monitoring for the instance. +// SetAdditionalInfo sets the AdditionalInfo field's value. +func (s *RunInstancesInput) SetAdditionalInfo(v string) *RunInstancesInput { + s.AdditionalInfo = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *RunInstancesInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RunInstancesInput { + s.BlockDeviceMappings = v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *RunInstancesInput) SetClientToken(v string) *RunInstancesInput { + s.ClientToken = &v + return s +} + +// SetDisableApiTermination sets the DisableApiTermination field's value. +func (s *RunInstancesInput) SetDisableApiTermination(v bool) *RunInstancesInput { + s.DisableApiTermination = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *RunInstancesInput) SetDryRun(v bool) *RunInstancesInput { + s.DryRun = &v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *RunInstancesInput) SetEbsOptimized(v bool) *RunInstancesInput { + s.EbsOptimized = &v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *RunInstancesInput) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *RunInstancesInput { + s.IamInstanceProfile = v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *RunInstancesInput) SetImageId(v string) *RunInstancesInput { + s.ImageId = &v + return s +} + +// SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value. +func (s *RunInstancesInput) SetInstanceInitiatedShutdownBehavior(v string) *RunInstancesInput { + s.InstanceInitiatedShutdownBehavior = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *RunInstancesInput) SetInstanceType(v string) *RunInstancesInput { + s.InstanceType = &v + return s +} + +// SetIpv6AddressCount sets the Ipv6AddressCount field's value. +func (s *RunInstancesInput) SetIpv6AddressCount(v int64) *RunInstancesInput { + s.Ipv6AddressCount = &v + return s +} + +// SetIpv6Addresses sets the Ipv6Addresses field's value. +func (s *RunInstancesInput) SetIpv6Addresses(v []*InstanceIpv6Address) *RunInstancesInput { + s.Ipv6Addresses = v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *RunInstancesInput) SetKernelId(v string) *RunInstancesInput { + s.KernelId = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *RunInstancesInput) SetKeyName(v string) *RunInstancesInput { + s.KeyName = &v + return s +} + +// SetMaxCount sets the MaxCount field's value. +func (s *RunInstancesInput) SetMaxCount(v int64) *RunInstancesInput { + s.MaxCount = &v + return s +} + +// SetMinCount sets the MinCount field's value. +func (s *RunInstancesInput) SetMinCount(v int64) *RunInstancesInput { + s.MinCount = &v + return s +} + +// SetMonitoring sets the Monitoring field's value. +func (s *RunInstancesInput) SetMonitoring(v *RunInstancesMonitoringEnabled) *RunInstancesInput { + s.Monitoring = v + return s +} + +// SetNetworkInterfaces sets the NetworkInterfaces field's value. +func (s *RunInstancesInput) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *RunInstancesInput { + s.NetworkInterfaces = v + return s +} + +// SetPlacement sets the Placement field's value. +func (s *RunInstancesInput) SetPlacement(v *Placement) *RunInstancesInput { + s.Placement = v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *RunInstancesInput) SetPrivateIpAddress(v string) *RunInstancesInput { + s.PrivateIpAddress = &v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *RunInstancesInput) SetRamdiskId(v string) *RunInstancesInput { + s.RamdiskId = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *RunInstancesInput) SetSecurityGroupIds(v []*string) *RunInstancesInput { + s.SecurityGroupIds = v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *RunInstancesInput) SetSecurityGroups(v []*string) *RunInstancesInput { + s.SecurityGroups = v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *RunInstancesInput) SetSubnetId(v string) *RunInstancesInput { + s.SubnetId = &v + return s +} + +// SetUserData sets the UserData field's value. +func (s *RunInstancesInput) SetUserData(v string) *RunInstancesInput { + s.UserData = &v + return s +} + +// Describes the monitoring of an instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstancesMonitoringEnabled type RunInstancesMonitoringEnabled struct { _ struct{} `type:"structure"` - // Indicates whether monitoring is enabled for the instance. + // Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring + // is enabled. // // Enabled is a required field Enabled *bool `locationName:"enabled" type:"boolean" required:"true"` @@ -33407,7 +47032,14 @@ func (s *RunInstancesMonitoringEnabled) Validate() error { return nil } +// SetEnabled sets the Enabled field's value. +func (s *RunInstancesMonitoringEnabled) SetEnabled(v bool) *RunInstancesMonitoringEnabled { + s.Enabled = &v + return s +} + // Contains the parameters for RunScheduledInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunScheduledInstancesRequest type RunScheduledInstancesInput struct { _ struct{} `type:"structure"` @@ -33469,7 +47101,38 @@ func (s *RunScheduledInstancesInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *RunScheduledInstancesInput) SetClientToken(v string) *RunScheduledInstancesInput { + s.ClientToken = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *RunScheduledInstancesInput) SetDryRun(v bool) *RunScheduledInstancesInput { + s.DryRun = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *RunScheduledInstancesInput) SetInstanceCount(v int64) *RunScheduledInstancesInput { + s.InstanceCount = &v + return s +} + +// SetLaunchSpecification sets the LaunchSpecification field's value. +func (s *RunScheduledInstancesInput) SetLaunchSpecification(v *ScheduledInstancesLaunchSpecification) *RunScheduledInstancesInput { + s.LaunchSpecification = v + return s +} + +// SetScheduledInstanceId sets the ScheduledInstanceId field's value. +func (s *RunScheduledInstancesInput) SetScheduledInstanceId(v string) *RunScheduledInstancesInput { + s.ScheduledInstanceId = &v + return s +} + // Contains the output of RunScheduledInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunScheduledInstancesResult type RunScheduledInstancesOutput struct { _ struct{} `type:"structure"` @@ -33487,8 +47150,15 @@ func (s RunScheduledInstancesOutput) GoString() string { return s.String() } +// SetInstanceIdSet sets the InstanceIdSet field's value. +func (s *RunScheduledInstancesOutput) SetInstanceIdSet(v []*string) *RunScheduledInstancesOutput { + s.InstanceIdSet = v + return s +} + // Describes the storage parameters for S3 and S3 buckets for an instance store-backed // AMI. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/S3Storage type S3Storage struct { _ struct{} `type:"structure"` @@ -33525,7 +47195,38 @@ func (s S3Storage) GoString() string { return s.String() } +// SetAWSAccessKeyId sets the AWSAccessKeyId field's value. +func (s *S3Storage) SetAWSAccessKeyId(v string) *S3Storage { + s.AWSAccessKeyId = &v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *S3Storage) SetBucket(v string) *S3Storage { + s.Bucket = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *S3Storage) SetPrefix(v string) *S3Storage { + s.Prefix = &v + return s +} + +// SetUploadPolicy sets the UploadPolicy field's value. +func (s *S3Storage) SetUploadPolicy(v []byte) *S3Storage { + s.UploadPolicy = v + return s +} + +// SetUploadPolicySignature sets the UploadPolicySignature field's value. +func (s *S3Storage) SetUploadPolicySignature(v string) *S3Storage { + s.UploadPolicySignature = &v + return s +} + // Describes a Scheduled Instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstance type ScheduledInstance struct { _ struct{} `type:"structure"` @@ -33585,7 +47286,98 @@ func (s ScheduledInstance) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ScheduledInstance) SetAvailabilityZone(v string) *ScheduledInstance { + s.AvailabilityZone = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *ScheduledInstance) SetCreateDate(v time.Time) *ScheduledInstance { + s.CreateDate = &v + return s +} + +// SetHourlyPrice sets the HourlyPrice field's value. +func (s *ScheduledInstance) SetHourlyPrice(v string) *ScheduledInstance { + s.HourlyPrice = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *ScheduledInstance) SetInstanceCount(v int64) *ScheduledInstance { + s.InstanceCount = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ScheduledInstance) SetInstanceType(v string) *ScheduledInstance { + s.InstanceType = &v + return s +} + +// SetNetworkPlatform sets the NetworkPlatform field's value. +func (s *ScheduledInstance) SetNetworkPlatform(v string) *ScheduledInstance { + s.NetworkPlatform = &v + return s +} + +// SetNextSlotStartTime sets the NextSlotStartTime field's value. +func (s *ScheduledInstance) SetNextSlotStartTime(v time.Time) *ScheduledInstance { + s.NextSlotStartTime = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *ScheduledInstance) SetPlatform(v string) *ScheduledInstance { + s.Platform = &v + return s +} + +// SetPreviousSlotEndTime sets the PreviousSlotEndTime field's value. +func (s *ScheduledInstance) SetPreviousSlotEndTime(v time.Time) *ScheduledInstance { + s.PreviousSlotEndTime = &v + return s +} + +// SetRecurrence sets the Recurrence field's value. +func (s *ScheduledInstance) SetRecurrence(v *ScheduledInstanceRecurrence) *ScheduledInstance { + s.Recurrence = v + return s +} + +// SetScheduledInstanceId sets the ScheduledInstanceId field's value. +func (s *ScheduledInstance) SetScheduledInstanceId(v string) *ScheduledInstance { + s.ScheduledInstanceId = &v + return s +} + +// SetSlotDurationInHours sets the SlotDurationInHours field's value. +func (s *ScheduledInstance) SetSlotDurationInHours(v int64) *ScheduledInstance { + s.SlotDurationInHours = &v + return s +} + +// SetTermEndDate sets the TermEndDate field's value. +func (s *ScheduledInstance) SetTermEndDate(v time.Time) *ScheduledInstance { + s.TermEndDate = &v + return s +} + +// SetTermStartDate sets the TermStartDate field's value. +func (s *ScheduledInstance) SetTermStartDate(v time.Time) *ScheduledInstance { + s.TermStartDate = &v + return s +} + +// SetTotalScheduledInstanceHours sets the TotalScheduledInstanceHours field's value. +func (s *ScheduledInstance) SetTotalScheduledInstanceHours(v int64) *ScheduledInstance { + s.TotalScheduledInstanceHours = &v + return s +} + // Describes a schedule that is available for your Scheduled Instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstanceAvailability type ScheduledInstanceAvailability struct { _ struct{} `type:"structure"` @@ -33640,7 +47432,86 @@ func (s ScheduledInstanceAvailability) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ScheduledInstanceAvailability) SetAvailabilityZone(v string) *ScheduledInstanceAvailability { + s.AvailabilityZone = &v + return s +} + +// SetAvailableInstanceCount sets the AvailableInstanceCount field's value. +func (s *ScheduledInstanceAvailability) SetAvailableInstanceCount(v int64) *ScheduledInstanceAvailability { + s.AvailableInstanceCount = &v + return s +} + +// SetFirstSlotStartTime sets the FirstSlotStartTime field's value. +func (s *ScheduledInstanceAvailability) SetFirstSlotStartTime(v time.Time) *ScheduledInstanceAvailability { + s.FirstSlotStartTime = &v + return s +} + +// SetHourlyPrice sets the HourlyPrice field's value. +func (s *ScheduledInstanceAvailability) SetHourlyPrice(v string) *ScheduledInstanceAvailability { + s.HourlyPrice = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ScheduledInstanceAvailability) SetInstanceType(v string) *ScheduledInstanceAvailability { + s.InstanceType = &v + return s +} + +// SetMaxTermDurationInDays sets the MaxTermDurationInDays field's value. +func (s *ScheduledInstanceAvailability) SetMaxTermDurationInDays(v int64) *ScheduledInstanceAvailability { + s.MaxTermDurationInDays = &v + return s +} + +// SetMinTermDurationInDays sets the MinTermDurationInDays field's value. +func (s *ScheduledInstanceAvailability) SetMinTermDurationInDays(v int64) *ScheduledInstanceAvailability { + s.MinTermDurationInDays = &v + return s +} + +// SetNetworkPlatform sets the NetworkPlatform field's value. +func (s *ScheduledInstanceAvailability) SetNetworkPlatform(v string) *ScheduledInstanceAvailability { + s.NetworkPlatform = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *ScheduledInstanceAvailability) SetPlatform(v string) *ScheduledInstanceAvailability { + s.Platform = &v + return s +} + +// SetPurchaseToken sets the PurchaseToken field's value. +func (s *ScheduledInstanceAvailability) SetPurchaseToken(v string) *ScheduledInstanceAvailability { + s.PurchaseToken = &v + return s +} + +// SetRecurrence sets the Recurrence field's value. +func (s *ScheduledInstanceAvailability) SetRecurrence(v *ScheduledInstanceRecurrence) *ScheduledInstanceAvailability { + s.Recurrence = v + return s +} + +// SetSlotDurationInHours sets the SlotDurationInHours field's value. +func (s *ScheduledInstanceAvailability) SetSlotDurationInHours(v int64) *ScheduledInstanceAvailability { + s.SlotDurationInHours = &v + return s +} + +// SetTotalScheduledInstanceHours sets the TotalScheduledInstanceHours field's value. +func (s *ScheduledInstanceAvailability) SetTotalScheduledInstanceHours(v int64) *ScheduledInstanceAvailability { + s.TotalScheduledInstanceHours = &v + return s +} + // Describes the recurring schedule for a Scheduled Instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstanceRecurrence type ScheduledInstanceRecurrence struct { _ struct{} `type:"structure"` @@ -33674,7 +47545,38 @@ func (s ScheduledInstanceRecurrence) GoString() string { return s.String() } +// SetFrequency sets the Frequency field's value. +func (s *ScheduledInstanceRecurrence) SetFrequency(v string) *ScheduledInstanceRecurrence { + s.Frequency = &v + return s +} + +// SetInterval sets the Interval field's value. +func (s *ScheduledInstanceRecurrence) SetInterval(v int64) *ScheduledInstanceRecurrence { + s.Interval = &v + return s +} + +// SetOccurrenceDaySet sets the OccurrenceDaySet field's value. +func (s *ScheduledInstanceRecurrence) SetOccurrenceDaySet(v []*int64) *ScheduledInstanceRecurrence { + s.OccurrenceDaySet = v + return s +} + +// SetOccurrenceRelativeToEnd sets the OccurrenceRelativeToEnd field's value. +func (s *ScheduledInstanceRecurrence) SetOccurrenceRelativeToEnd(v bool) *ScheduledInstanceRecurrence { + s.OccurrenceRelativeToEnd = &v + return s +} + +// SetOccurrenceUnit sets the OccurrenceUnit field's value. +func (s *ScheduledInstanceRecurrence) SetOccurrenceUnit(v string) *ScheduledInstanceRecurrence { + s.OccurrenceUnit = &v + return s +} + // Describes the recurring schedule for a Scheduled Instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstanceRecurrenceRequest type ScheduledInstanceRecurrenceRequest struct { _ struct{} `type:"structure"` @@ -33711,7 +47613,38 @@ func (s ScheduledInstanceRecurrenceRequest) GoString() string { return s.String() } +// SetFrequency sets the Frequency field's value. +func (s *ScheduledInstanceRecurrenceRequest) SetFrequency(v string) *ScheduledInstanceRecurrenceRequest { + s.Frequency = &v + return s +} + +// SetInterval sets the Interval field's value. +func (s *ScheduledInstanceRecurrenceRequest) SetInterval(v int64) *ScheduledInstanceRecurrenceRequest { + s.Interval = &v + return s +} + +// SetOccurrenceDays sets the OccurrenceDays field's value. +func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceDays(v []*int64) *ScheduledInstanceRecurrenceRequest { + s.OccurrenceDays = v + return s +} + +// SetOccurrenceRelativeToEnd sets the OccurrenceRelativeToEnd field's value. +func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceRelativeToEnd(v bool) *ScheduledInstanceRecurrenceRequest { + s.OccurrenceRelativeToEnd = &v + return s +} + +// SetOccurrenceUnit sets the OccurrenceUnit field's value. +func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceUnit(v string) *ScheduledInstanceRecurrenceRequest { + s.OccurrenceUnit = &v + return s +} + // Describes a block device mapping for a Scheduled Instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesBlockDeviceMapping type ScheduledInstancesBlockDeviceMapping struct { _ struct{} `type:"structure"` @@ -33749,7 +47682,32 @@ func (s ScheduledInstancesBlockDeviceMapping) GoString() string { return s.String() } +// SetDeviceName sets the DeviceName field's value. +func (s *ScheduledInstancesBlockDeviceMapping) SetDeviceName(v string) *ScheduledInstancesBlockDeviceMapping { + s.DeviceName = &v + return s +} + +// SetEbs sets the Ebs field's value. +func (s *ScheduledInstancesBlockDeviceMapping) SetEbs(v *ScheduledInstancesEbs) *ScheduledInstancesBlockDeviceMapping { + s.Ebs = v + return s +} + +// SetNoDevice sets the NoDevice field's value. +func (s *ScheduledInstancesBlockDeviceMapping) SetNoDevice(v string) *ScheduledInstancesBlockDeviceMapping { + s.NoDevice = &v + return s +} + +// SetVirtualName sets the VirtualName field's value. +func (s *ScheduledInstancesBlockDeviceMapping) SetVirtualName(v string) *ScheduledInstancesBlockDeviceMapping { + s.VirtualName = &v + return s +} + // Describes an EBS volume for a Scheduled Instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesEbs type ScheduledInstancesEbs struct { _ struct{} `type:"structure"` @@ -33801,7 +47759,44 @@ func (s ScheduledInstancesEbs) GoString() string { return s.String() } +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *ScheduledInstancesEbs) SetDeleteOnTermination(v bool) *ScheduledInstancesEbs { + s.DeleteOnTermination = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *ScheduledInstancesEbs) SetEncrypted(v bool) *ScheduledInstancesEbs { + s.Encrypted = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *ScheduledInstancesEbs) SetIops(v int64) *ScheduledInstancesEbs { + s.Iops = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *ScheduledInstancesEbs) SetSnapshotId(v string) *ScheduledInstancesEbs { + s.SnapshotId = &v + return s +} + +// SetVolumeSize sets the VolumeSize field's value. +func (s *ScheduledInstancesEbs) SetVolumeSize(v int64) *ScheduledInstancesEbs { + s.VolumeSize = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *ScheduledInstancesEbs) SetVolumeType(v string) *ScheduledInstancesEbs { + s.VolumeType = &v + return s +} + // Describes an IAM instance profile for a Scheduled Instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesIamInstanceProfile type ScheduledInstancesIamInstanceProfile struct { _ struct{} `type:"structure"` @@ -33822,11 +47817,49 @@ func (s ScheduledInstancesIamInstanceProfile) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *ScheduledInstancesIamInstanceProfile) SetArn(v string) *ScheduledInstancesIamInstanceProfile { + s.Arn = &v + return s +} + +// SetName sets the Name field's value. +func (s *ScheduledInstancesIamInstanceProfile) SetName(v string) *ScheduledInstancesIamInstanceProfile { + s.Name = &v + return s +} + +// Describes an IPv6 address. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesIpv6Address +type ScheduledInstancesIpv6Address struct { + _ struct{} `type:"structure"` + + // The IPv6 address. + Ipv6Address *string `type:"string"` +} + +// String returns the string representation +func (s ScheduledInstancesIpv6Address) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ScheduledInstancesIpv6Address) GoString() string { + return s.String() +} + +// SetIpv6Address sets the Ipv6Address field's value. +func (s *ScheduledInstancesIpv6Address) SetIpv6Address(v string) *ScheduledInstancesIpv6Address { + s.Ipv6Address = &v + return s +} + // Describes the launch specification for a Scheduled Instance. // // If you are launching the Scheduled Instance in EC2-VPC, you must specify // the ID of the subnet. You can specify the subnet using either SubnetId or // NetworkInterface. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesLaunchSpecification type ScheduledInstancesLaunchSpecification struct { _ struct{} `type:"structure"` @@ -33904,7 +47937,92 @@ func (s *ScheduledInstancesLaunchSpecification) Validate() error { return nil } +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *ScheduledInstancesLaunchSpecification) SetBlockDeviceMappings(v []*ScheduledInstancesBlockDeviceMapping) *ScheduledInstancesLaunchSpecification { + s.BlockDeviceMappings = v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *ScheduledInstancesLaunchSpecification) SetEbsOptimized(v bool) *ScheduledInstancesLaunchSpecification { + s.EbsOptimized = &v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *ScheduledInstancesLaunchSpecification) SetIamInstanceProfile(v *ScheduledInstancesIamInstanceProfile) *ScheduledInstancesLaunchSpecification { + s.IamInstanceProfile = v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *ScheduledInstancesLaunchSpecification) SetImageId(v string) *ScheduledInstancesLaunchSpecification { + s.ImageId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ScheduledInstancesLaunchSpecification) SetInstanceType(v string) *ScheduledInstancesLaunchSpecification { + s.InstanceType = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *ScheduledInstancesLaunchSpecification) SetKernelId(v string) *ScheduledInstancesLaunchSpecification { + s.KernelId = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *ScheduledInstancesLaunchSpecification) SetKeyName(v string) *ScheduledInstancesLaunchSpecification { + s.KeyName = &v + return s +} + +// SetMonitoring sets the Monitoring field's value. +func (s *ScheduledInstancesLaunchSpecification) SetMonitoring(v *ScheduledInstancesMonitoring) *ScheduledInstancesLaunchSpecification { + s.Monitoring = v + return s +} + +// SetNetworkInterfaces sets the NetworkInterfaces field's value. +func (s *ScheduledInstancesLaunchSpecification) SetNetworkInterfaces(v []*ScheduledInstancesNetworkInterface) *ScheduledInstancesLaunchSpecification { + s.NetworkInterfaces = v + return s +} + +// SetPlacement sets the Placement field's value. +func (s *ScheduledInstancesLaunchSpecification) SetPlacement(v *ScheduledInstancesPlacement) *ScheduledInstancesLaunchSpecification { + s.Placement = v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *ScheduledInstancesLaunchSpecification) SetRamdiskId(v string) *ScheduledInstancesLaunchSpecification { + s.RamdiskId = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *ScheduledInstancesLaunchSpecification) SetSecurityGroupIds(v []*string) *ScheduledInstancesLaunchSpecification { + s.SecurityGroupIds = v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *ScheduledInstancesLaunchSpecification) SetSubnetId(v string) *ScheduledInstancesLaunchSpecification { + s.SubnetId = &v + return s +} + +// SetUserData sets the UserData field's value. +func (s *ScheduledInstancesLaunchSpecification) SetUserData(v string) *ScheduledInstancesLaunchSpecification { + s.UserData = &v + return s +} + // Describes whether monitoring is enabled for a Scheduled Instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesMonitoring type ScheduledInstancesMonitoring struct { _ struct{} `type:"structure"` @@ -33922,12 +48040,19 @@ func (s ScheduledInstancesMonitoring) GoString() string { return s.String() } +// SetEnabled sets the Enabled field's value. +func (s *ScheduledInstancesMonitoring) SetEnabled(v bool) *ScheduledInstancesMonitoring { + s.Enabled = &v + return s +} + // Describes a network interface for a Scheduled Instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesNetworkInterface type ScheduledInstancesNetworkInterface struct { _ struct{} `type:"structure"` - // Indicates whether to assign a public IP address to instances launched in - // a VPC. The public IP address can only be assigned to a network interface + // Indicates whether to assign a public IPv4 address to instances launched in + // a VPC. The public IPv4 address can only be assigned to a network interface // for eth0, and can only be assigned to a new network interface, not an existing // one. You cannot specify more than one network interface in the request. If // launching into a default subnet, the default value is true. @@ -33945,16 +48070,23 @@ type ScheduledInstancesNetworkInterface struct { // The IDs of one or more security groups. Groups []*string `locationName:"Group" locationNameList:"SecurityGroupId" type:"list"` + // The number of IPv6 addresses to assign to the network interface. The IPv6 + // addresses are automatically selected from the subnet range. + Ipv6AddressCount *int64 `type:"integer"` + + // One or more specific IPv6 addresses from the subnet range. + Ipv6Addresses []*ScheduledInstancesIpv6Address `locationName:"Ipv6Address" locationNameList:"Ipv6Address" type:"list"` + // The ID of the network interface. NetworkInterfaceId *string `type:"string"` - // The IP address of the network interface within the subnet. + // The IPv4 address of the network interface within the subnet. PrivateIpAddress *string `type:"string"` - // The private IP addresses. + // The private IPv4 addresses. PrivateIpAddressConfigs []*ScheduledInstancesPrivateIpAddressConfig `locationName:"PrivateIpAddressConfig" locationNameList:"PrivateIpAddressConfigSet" type:"list"` - // The number of secondary private IP addresses. + // The number of secondary private IPv4 addresses. SecondaryPrivateIpAddressCount *int64 `type:"integer"` // The ID of the subnet. @@ -33971,7 +48103,80 @@ func (s ScheduledInstancesNetworkInterface) GoString() string { return s.String() } +// SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value. +func (s *ScheduledInstancesNetworkInterface) SetAssociatePublicIpAddress(v bool) *ScheduledInstancesNetworkInterface { + s.AssociatePublicIpAddress = &v + return s +} + +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *ScheduledInstancesNetworkInterface) SetDeleteOnTermination(v bool) *ScheduledInstancesNetworkInterface { + s.DeleteOnTermination = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ScheduledInstancesNetworkInterface) SetDescription(v string) *ScheduledInstancesNetworkInterface { + s.Description = &v + return s +} + +// SetDeviceIndex sets the DeviceIndex field's value. +func (s *ScheduledInstancesNetworkInterface) SetDeviceIndex(v int64) *ScheduledInstancesNetworkInterface { + s.DeviceIndex = &v + return s +} + +// SetGroups sets the Groups field's value. +func (s *ScheduledInstancesNetworkInterface) SetGroups(v []*string) *ScheduledInstancesNetworkInterface { + s.Groups = v + return s +} + +// SetIpv6AddressCount sets the Ipv6AddressCount field's value. +func (s *ScheduledInstancesNetworkInterface) SetIpv6AddressCount(v int64) *ScheduledInstancesNetworkInterface { + s.Ipv6AddressCount = &v + return s +} + +// SetIpv6Addresses sets the Ipv6Addresses field's value. +func (s *ScheduledInstancesNetworkInterface) SetIpv6Addresses(v []*ScheduledInstancesIpv6Address) *ScheduledInstancesNetworkInterface { + s.Ipv6Addresses = v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *ScheduledInstancesNetworkInterface) SetNetworkInterfaceId(v string) *ScheduledInstancesNetworkInterface { + s.NetworkInterfaceId = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *ScheduledInstancesNetworkInterface) SetPrivateIpAddress(v string) *ScheduledInstancesNetworkInterface { + s.PrivateIpAddress = &v + return s +} + +// SetPrivateIpAddressConfigs sets the PrivateIpAddressConfigs field's value. +func (s *ScheduledInstancesNetworkInterface) SetPrivateIpAddressConfigs(v []*ScheduledInstancesPrivateIpAddressConfig) *ScheduledInstancesNetworkInterface { + s.PrivateIpAddressConfigs = v + return s +} + +// SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value. +func (s *ScheduledInstancesNetworkInterface) SetSecondaryPrivateIpAddressCount(v int64) *ScheduledInstancesNetworkInterface { + s.SecondaryPrivateIpAddressCount = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *ScheduledInstancesNetworkInterface) SetSubnetId(v string) *ScheduledInstancesNetworkInterface { + s.SubnetId = &v + return s +} + // Describes the placement for a Scheduled Instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesPlacement type ScheduledInstancesPlacement struct { _ struct{} `type:"structure"` @@ -33992,15 +48197,28 @@ func (s ScheduledInstancesPlacement) GoString() string { return s.String() } -// Describes a private IP address for a Scheduled Instance. +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ScheduledInstancesPlacement) SetAvailabilityZone(v string) *ScheduledInstancesPlacement { + s.AvailabilityZone = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *ScheduledInstancesPlacement) SetGroupName(v string) *ScheduledInstancesPlacement { + s.GroupName = &v + return s +} + +// Describes a private IPv4 address for a Scheduled Instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesPrivateIpAddressConfig type ScheduledInstancesPrivateIpAddressConfig struct { _ struct{} `type:"structure"` - // Indicates whether this is a primary IP address. Otherwise, this is a secondary - // IP address. + // Indicates whether this is a primary IPv4 address. Otherwise, this is a secondary + // IPv4 address. Primary *bool `type:"boolean"` - // The IP address. + // The IPv4 address. PrivateIpAddress *string `type:"string"` } @@ -34014,7 +48232,20 @@ func (s ScheduledInstancesPrivateIpAddressConfig) GoString() string { return s.String() } +// SetPrimary sets the Primary field's value. +func (s *ScheduledInstancesPrivateIpAddressConfig) SetPrimary(v bool) *ScheduledInstancesPrivateIpAddressConfig { + s.Primary = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *ScheduledInstancesPrivateIpAddressConfig) SetPrivateIpAddress(v string) *ScheduledInstancesPrivateIpAddressConfig { + s.PrivateIpAddress = &v + return s +} + // Describes a security group +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SecurityGroup type SecurityGroup struct { _ struct{} `type:"structure"` @@ -34053,7 +48284,56 @@ func (s SecurityGroup) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *SecurityGroup) SetDescription(v string) *SecurityGroup { + s.Description = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *SecurityGroup) SetGroupId(v string) *SecurityGroup { + s.GroupId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *SecurityGroup) SetGroupName(v string) *SecurityGroup { + s.GroupName = &v + return s +} + +// SetIpPermissions sets the IpPermissions field's value. +func (s *SecurityGroup) SetIpPermissions(v []*IpPermission) *SecurityGroup { + s.IpPermissions = v + return s +} + +// SetIpPermissionsEgress sets the IpPermissionsEgress field's value. +func (s *SecurityGroup) SetIpPermissionsEgress(v []*IpPermission) *SecurityGroup { + s.IpPermissionsEgress = v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *SecurityGroup) SetOwnerId(v string) *SecurityGroup { + s.OwnerId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *SecurityGroup) SetTags(v []*Tag) *SecurityGroup { + s.Tags = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *SecurityGroup) SetVpcId(v string) *SecurityGroup { + s.VpcId = &v + return s +} + // Describes a VPC with a security group that references your security group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SecurityGroupReference type SecurityGroupReference struct { _ struct{} `type:"structure"` @@ -34081,8 +48361,27 @@ func (s SecurityGroupReference) GoString() string { return s.String() } +// SetGroupId sets the GroupId field's value. +func (s *SecurityGroupReference) SetGroupId(v string) *SecurityGroupReference { + s.GroupId = &v + return s +} + +// SetReferencingVpcId sets the ReferencingVpcId field's value. +func (s *SecurityGroupReference) SetReferencingVpcId(v string) *SecurityGroupReference { + s.ReferencingVpcId = &v + return s +} + +// SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. +func (s *SecurityGroupReference) SetVpcPeeringConnectionId(v string) *SecurityGroupReference { + s.VpcPeeringConnectionId = &v + return s +} + // Describes the time period for a Scheduled Instance to start its first schedule. // The time period must span less than one day. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SlotDateTimeRangeRequest type SlotDateTimeRangeRequest struct { _ struct{} `type:"structure"` @@ -34125,7 +48424,20 @@ func (s *SlotDateTimeRangeRequest) Validate() error { return nil } +// SetEarliestTime sets the EarliestTime field's value. +func (s *SlotDateTimeRangeRequest) SetEarliestTime(v time.Time) *SlotDateTimeRangeRequest { + s.EarliestTime = &v + return s +} + +// SetLatestTime sets the LatestTime field's value. +func (s *SlotDateTimeRangeRequest) SetLatestTime(v time.Time) *SlotDateTimeRangeRequest { + s.LatestTime = &v + return s +} + // Describes the time period for a Scheduled Instance to start its first schedule. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SlotStartTimeRangeRequest type SlotStartTimeRangeRequest struct { _ struct{} `type:"structure"` @@ -34146,7 +48458,20 @@ func (s SlotStartTimeRangeRequest) GoString() string { return s.String() } +// SetEarliestTime sets the EarliestTime field's value. +func (s *SlotStartTimeRangeRequest) SetEarliestTime(v time.Time) *SlotStartTimeRangeRequest { + s.EarliestTime = &v + return s +} + +// SetLatestTime sets the LatestTime field's value. +func (s *SlotStartTimeRangeRequest) SetLatestTime(v time.Time) *SlotStartTimeRangeRequest { + s.LatestTime = &v + return s +} + // Describes a snapshot. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Snapshot type Snapshot struct { _ struct{} `type:"structure"` @@ -34219,7 +48544,92 @@ func (s Snapshot) GoString() string { return s.String() } +// SetDataEncryptionKeyId sets the DataEncryptionKeyId field's value. +func (s *Snapshot) SetDataEncryptionKeyId(v string) *Snapshot { + s.DataEncryptionKeyId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Snapshot) SetDescription(v string) *Snapshot { + s.Description = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *Snapshot) SetEncrypted(v bool) *Snapshot { + s.Encrypted = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *Snapshot) SetKmsKeyId(v string) *Snapshot { + s.KmsKeyId = &v + return s +} + +// SetOwnerAlias sets the OwnerAlias field's value. +func (s *Snapshot) SetOwnerAlias(v string) *Snapshot { + s.OwnerAlias = &v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *Snapshot) SetOwnerId(v string) *Snapshot { + s.OwnerId = &v + return s +} + +// SetProgress sets the Progress field's value. +func (s *Snapshot) SetProgress(v string) *Snapshot { + s.Progress = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *Snapshot) SetSnapshotId(v string) *Snapshot { + s.SnapshotId = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *Snapshot) SetStartTime(v time.Time) *Snapshot { + s.StartTime = &v + return s +} + +// SetState sets the State field's value. +func (s *Snapshot) SetState(v string) *Snapshot { + s.State = &v + return s +} + +// SetStateMessage sets the StateMessage field's value. +func (s *Snapshot) SetStateMessage(v string) *Snapshot { + s.StateMessage = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Snapshot) SetTags(v []*Tag) *Snapshot { + s.Tags = v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *Snapshot) SetVolumeId(v string) *Snapshot { + s.VolumeId = &v + return s +} + +// SetVolumeSize sets the VolumeSize field's value. +func (s *Snapshot) SetVolumeSize(v int64) *Snapshot { + s.VolumeSize = &v + return s +} + // Describes the snapshot created from the imported disk. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SnapshotDetail type SnapshotDetail struct { _ struct{} `type:"structure"` @@ -34264,7 +48674,68 @@ func (s SnapshotDetail) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *SnapshotDetail) SetDescription(v string) *SnapshotDetail { + s.Description = &v + return s +} + +// SetDeviceName sets the DeviceName field's value. +func (s *SnapshotDetail) SetDeviceName(v string) *SnapshotDetail { + s.DeviceName = &v + return s +} + +// SetDiskImageSize sets the DiskImageSize field's value. +func (s *SnapshotDetail) SetDiskImageSize(v float64) *SnapshotDetail { + s.DiskImageSize = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *SnapshotDetail) SetFormat(v string) *SnapshotDetail { + s.Format = &v + return s +} + +// SetProgress sets the Progress field's value. +func (s *SnapshotDetail) SetProgress(v string) *SnapshotDetail { + s.Progress = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *SnapshotDetail) SetSnapshotId(v string) *SnapshotDetail { + s.SnapshotId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SnapshotDetail) SetStatus(v string) *SnapshotDetail { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *SnapshotDetail) SetStatusMessage(v string) *SnapshotDetail { + s.StatusMessage = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *SnapshotDetail) SetUrl(v string) *SnapshotDetail { + s.Url = &v + return s +} + +// SetUserBucket sets the UserBucket field's value. +func (s *SnapshotDetail) SetUserBucket(v *UserBucketDetails) *SnapshotDetail { + s.UserBucket = v + return s +} + // The disk container object for the import snapshot request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SnapshotDiskContainer type SnapshotDiskContainer struct { _ struct{} `type:"structure"` @@ -34294,7 +48765,32 @@ func (s SnapshotDiskContainer) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *SnapshotDiskContainer) SetDescription(v string) *SnapshotDiskContainer { + s.Description = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *SnapshotDiskContainer) SetFormat(v string) *SnapshotDiskContainer { + s.Format = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *SnapshotDiskContainer) SetUrl(v string) *SnapshotDiskContainer { + s.Url = &v + return s +} + +// SetUserBucket sets the UserBucket field's value. +func (s *SnapshotDiskContainer) SetUserBucket(v *UserBucket) *SnapshotDiskContainer { + s.UserBucket = v + return s +} + // Details about the import snapshot task. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SnapshotTaskDetail type SnapshotTaskDetail struct { _ struct{} `type:"structure"` @@ -34336,7 +48832,62 @@ func (s SnapshotTaskDetail) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *SnapshotTaskDetail) SetDescription(v string) *SnapshotTaskDetail { + s.Description = &v + return s +} + +// SetDiskImageSize sets the DiskImageSize field's value. +func (s *SnapshotTaskDetail) SetDiskImageSize(v float64) *SnapshotTaskDetail { + s.DiskImageSize = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *SnapshotTaskDetail) SetFormat(v string) *SnapshotTaskDetail { + s.Format = &v + return s +} + +// SetProgress sets the Progress field's value. +func (s *SnapshotTaskDetail) SetProgress(v string) *SnapshotTaskDetail { + s.Progress = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *SnapshotTaskDetail) SetSnapshotId(v string) *SnapshotTaskDetail { + s.SnapshotId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SnapshotTaskDetail) SetStatus(v string) *SnapshotTaskDetail { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *SnapshotTaskDetail) SetStatusMessage(v string) *SnapshotTaskDetail { + s.StatusMessage = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *SnapshotTaskDetail) SetUrl(v string) *SnapshotTaskDetail { + s.Url = &v + return s +} + +// SetUserBucket sets the UserBucket field's value. +func (s *SnapshotTaskDetail) SetUserBucket(v *UserBucketDetails) *SnapshotTaskDetail { + s.UserBucket = v + return s +} + // Describes the data feed for a Spot instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotDatafeedSubscription type SpotDatafeedSubscription struct { _ struct{} `type:"structure"` @@ -34366,7 +48917,38 @@ func (s SpotDatafeedSubscription) GoString() string { return s.String() } +// SetBucket sets the Bucket field's value. +func (s *SpotDatafeedSubscription) SetBucket(v string) *SpotDatafeedSubscription { + s.Bucket = &v + return s +} + +// SetFault sets the Fault field's value. +func (s *SpotDatafeedSubscription) SetFault(v *SpotInstanceStateFault) *SpotDatafeedSubscription { + s.Fault = v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *SpotDatafeedSubscription) SetOwnerId(v string) *SpotDatafeedSubscription { + s.OwnerId = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *SpotDatafeedSubscription) SetPrefix(v string) *SpotDatafeedSubscription { + s.Prefix = &v + return s +} + +// SetState sets the State field's value. +func (s *SpotDatafeedSubscription) SetState(v string) *SpotDatafeedSubscription { + s.State = &v + return s +} + // Describes the launch specification for one or more Spot instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotFleetLaunchSpecification type SpotFleetLaunchSpecification struct { _ struct{} `type:"structure"` @@ -34391,7 +48973,7 @@ type SpotFleetLaunchSpecification struct { // The ID of the AMI. ImageId *string `locationName:"imageId" type:"string"` - // The instance type. + // The instance type. Note that T2 and HS1 instance types are not supported. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"` // The ID of the kernel. @@ -34403,7 +48985,8 @@ type SpotFleetLaunchSpecification struct { // Enable or disable monitoring for the instances. Monitoring *SpotFleetMonitoring `locationName:"monitoring" type:"structure"` - // One or more network interfaces. + // One or more network interfaces. If you specify a network interface, you must + // specify subnet IDs and security group IDs using the network interface. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"` // The placement information. @@ -34472,7 +49055,110 @@ func (s *SpotFleetLaunchSpecification) Validate() error { return nil } +// SetAddressingType sets the AddressingType field's value. +func (s *SpotFleetLaunchSpecification) SetAddressingType(v string) *SpotFleetLaunchSpecification { + s.AddressingType = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *SpotFleetLaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *SpotFleetLaunchSpecification { + s.BlockDeviceMappings = v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *SpotFleetLaunchSpecification) SetEbsOptimized(v bool) *SpotFleetLaunchSpecification { + s.EbsOptimized = &v + return s +} + +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *SpotFleetLaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *SpotFleetLaunchSpecification { + s.IamInstanceProfile = v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *SpotFleetLaunchSpecification) SetImageId(v string) *SpotFleetLaunchSpecification { + s.ImageId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *SpotFleetLaunchSpecification) SetInstanceType(v string) *SpotFleetLaunchSpecification { + s.InstanceType = &v + return s +} + +// SetKernelId sets the KernelId field's value. +func (s *SpotFleetLaunchSpecification) SetKernelId(v string) *SpotFleetLaunchSpecification { + s.KernelId = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *SpotFleetLaunchSpecification) SetKeyName(v string) *SpotFleetLaunchSpecification { + s.KeyName = &v + return s +} + +// SetMonitoring sets the Monitoring field's value. +func (s *SpotFleetLaunchSpecification) SetMonitoring(v *SpotFleetMonitoring) *SpotFleetLaunchSpecification { + s.Monitoring = v + return s +} + +// SetNetworkInterfaces sets the NetworkInterfaces field's value. +func (s *SpotFleetLaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *SpotFleetLaunchSpecification { + s.NetworkInterfaces = v + return s +} + +// SetPlacement sets the Placement field's value. +func (s *SpotFleetLaunchSpecification) SetPlacement(v *SpotPlacement) *SpotFleetLaunchSpecification { + s.Placement = v + return s +} + +// SetRamdiskId sets the RamdiskId field's value. +func (s *SpotFleetLaunchSpecification) SetRamdiskId(v string) *SpotFleetLaunchSpecification { + s.RamdiskId = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *SpotFleetLaunchSpecification) SetSecurityGroups(v []*GroupIdentifier) *SpotFleetLaunchSpecification { + s.SecurityGroups = v + return s +} + +// SetSpotPrice sets the SpotPrice field's value. +func (s *SpotFleetLaunchSpecification) SetSpotPrice(v string) *SpotFleetLaunchSpecification { + s.SpotPrice = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *SpotFleetLaunchSpecification) SetSubnetId(v string) *SpotFleetLaunchSpecification { + s.SubnetId = &v + return s +} + +// SetUserData sets the UserData field's value. +func (s *SpotFleetLaunchSpecification) SetUserData(v string) *SpotFleetLaunchSpecification { + s.UserData = &v + return s +} + +// SetWeightedCapacity sets the WeightedCapacity field's value. +func (s *SpotFleetLaunchSpecification) SetWeightedCapacity(v float64) *SpotFleetLaunchSpecification { + s.WeightedCapacity = &v + return s +} + // Describes whether monitoring is enabled. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotFleetMonitoring type SpotFleetMonitoring struct { _ struct{} `type:"structure"` @@ -34492,7 +49178,14 @@ func (s SpotFleetMonitoring) GoString() string { return s.String() } +// SetEnabled sets the Enabled field's value. +func (s *SpotFleetMonitoring) SetEnabled(v bool) *SpotFleetMonitoring { + s.Enabled = &v + return s +} + // Describes a Spot fleet request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotFleetRequestConfig type SpotFleetRequestConfig struct { _ struct{} `type:"structure"` @@ -34534,7 +49227,38 @@ func (s SpotFleetRequestConfig) GoString() string { return s.String() } +// SetActivityStatus sets the ActivityStatus field's value. +func (s *SpotFleetRequestConfig) SetActivityStatus(v string) *SpotFleetRequestConfig { + s.ActivityStatus = &v + return s +} + +// SetCreateTime sets the CreateTime field's value. +func (s *SpotFleetRequestConfig) SetCreateTime(v time.Time) *SpotFleetRequestConfig { + s.CreateTime = &v + return s +} + +// SetSpotFleetRequestConfig sets the SpotFleetRequestConfig field's value. +func (s *SpotFleetRequestConfig) SetSpotFleetRequestConfig(v *SpotFleetRequestConfigData) *SpotFleetRequestConfig { + s.SpotFleetRequestConfig = v + return s +} + +// SetSpotFleetRequestId sets the SpotFleetRequestId field's value. +func (s *SpotFleetRequestConfig) SetSpotFleetRequestId(v string) *SpotFleetRequestConfig { + s.SpotFleetRequestId = &v + return s +} + +// SetSpotFleetRequestState sets the SpotFleetRequestState field's value. +func (s *SpotFleetRequestConfig) SetSpotFleetRequestState(v string) *SpotFleetRequestConfig { + s.SpotFleetRequestState = &v + return s +} + // Describes the configuration of a Spot fleet request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotFleetRequestConfigData type SpotFleetRequestConfigData struct { _ struct{} `type:"structure"` @@ -34568,6 +49292,9 @@ type SpotFleetRequestConfigData struct { // LaunchSpecifications is a required field LaunchSpecifications []*SpotFleetLaunchSpecification `locationName:"launchSpecifications" locationNameList:"item" min:"1" type:"list" required:"true"` + // Indicates whether Spot fleet should replace unhealthy instances. + ReplaceUnhealthyInstances *bool `locationName:"replaceUnhealthyInstances" type:"boolean"` + // The bid price per unit hour. // // SpotPrice is a required field @@ -34649,7 +49376,86 @@ func (s *SpotFleetRequestConfigData) Validate() error { return nil } +// SetAllocationStrategy sets the AllocationStrategy field's value. +func (s *SpotFleetRequestConfigData) SetAllocationStrategy(v string) *SpotFleetRequestConfigData { + s.AllocationStrategy = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *SpotFleetRequestConfigData) SetClientToken(v string) *SpotFleetRequestConfigData { + s.ClientToken = &v + return s +} + +// SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value. +func (s *SpotFleetRequestConfigData) SetExcessCapacityTerminationPolicy(v string) *SpotFleetRequestConfigData { + s.ExcessCapacityTerminationPolicy = &v + return s +} + +// SetFulfilledCapacity sets the FulfilledCapacity field's value. +func (s *SpotFleetRequestConfigData) SetFulfilledCapacity(v float64) *SpotFleetRequestConfigData { + s.FulfilledCapacity = &v + return s +} + +// SetIamFleetRole sets the IamFleetRole field's value. +func (s *SpotFleetRequestConfigData) SetIamFleetRole(v string) *SpotFleetRequestConfigData { + s.IamFleetRole = &v + return s +} + +// SetLaunchSpecifications sets the LaunchSpecifications field's value. +func (s *SpotFleetRequestConfigData) SetLaunchSpecifications(v []*SpotFleetLaunchSpecification) *SpotFleetRequestConfigData { + s.LaunchSpecifications = v + return s +} + +// SetReplaceUnhealthyInstances sets the ReplaceUnhealthyInstances field's value. +func (s *SpotFleetRequestConfigData) SetReplaceUnhealthyInstances(v bool) *SpotFleetRequestConfigData { + s.ReplaceUnhealthyInstances = &v + return s +} + +// SetSpotPrice sets the SpotPrice field's value. +func (s *SpotFleetRequestConfigData) SetSpotPrice(v string) *SpotFleetRequestConfigData { + s.SpotPrice = &v + return s +} + +// SetTargetCapacity sets the TargetCapacity field's value. +func (s *SpotFleetRequestConfigData) SetTargetCapacity(v int64) *SpotFleetRequestConfigData { + s.TargetCapacity = &v + return s +} + +// SetTerminateInstancesWithExpiration sets the TerminateInstancesWithExpiration field's value. +func (s *SpotFleetRequestConfigData) SetTerminateInstancesWithExpiration(v bool) *SpotFleetRequestConfigData { + s.TerminateInstancesWithExpiration = &v + return s +} + +// SetType sets the Type field's value. +func (s *SpotFleetRequestConfigData) SetType(v string) *SpotFleetRequestConfigData { + s.Type = &v + return s +} + +// SetValidFrom sets the ValidFrom field's value. +func (s *SpotFleetRequestConfigData) SetValidFrom(v time.Time) *SpotFleetRequestConfigData { + s.ValidFrom = &v + return s +} + +// SetValidUntil sets the ValidUntil field's value. +func (s *SpotFleetRequestConfigData) SetValidUntil(v time.Time) *SpotFleetRequestConfigData { + s.ValidUntil = &v + return s +} + // Describes a Spot instance request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotInstanceRequest type SpotInstanceRequest struct { _ struct{} `type:"structure"` @@ -34732,7 +49538,116 @@ func (s SpotInstanceRequest) GoString() string { return s.String() } +// SetActualBlockHourlyPrice sets the ActualBlockHourlyPrice field's value. +func (s *SpotInstanceRequest) SetActualBlockHourlyPrice(v string) *SpotInstanceRequest { + s.ActualBlockHourlyPrice = &v + return s +} + +// SetAvailabilityZoneGroup sets the AvailabilityZoneGroup field's value. +func (s *SpotInstanceRequest) SetAvailabilityZoneGroup(v string) *SpotInstanceRequest { + s.AvailabilityZoneGroup = &v + return s +} + +// SetBlockDurationMinutes sets the BlockDurationMinutes field's value. +func (s *SpotInstanceRequest) SetBlockDurationMinutes(v int64) *SpotInstanceRequest { + s.BlockDurationMinutes = &v + return s +} + +// SetCreateTime sets the CreateTime field's value. +func (s *SpotInstanceRequest) SetCreateTime(v time.Time) *SpotInstanceRequest { + s.CreateTime = &v + return s +} + +// SetFault sets the Fault field's value. +func (s *SpotInstanceRequest) SetFault(v *SpotInstanceStateFault) *SpotInstanceRequest { + s.Fault = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *SpotInstanceRequest) SetInstanceId(v string) *SpotInstanceRequest { + s.InstanceId = &v + return s +} + +// SetLaunchGroup sets the LaunchGroup field's value. +func (s *SpotInstanceRequest) SetLaunchGroup(v string) *SpotInstanceRequest { + s.LaunchGroup = &v + return s +} + +// SetLaunchSpecification sets the LaunchSpecification field's value. +func (s *SpotInstanceRequest) SetLaunchSpecification(v *LaunchSpecification) *SpotInstanceRequest { + s.LaunchSpecification = v + return s +} + +// SetLaunchedAvailabilityZone sets the LaunchedAvailabilityZone field's value. +func (s *SpotInstanceRequest) SetLaunchedAvailabilityZone(v string) *SpotInstanceRequest { + s.LaunchedAvailabilityZone = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *SpotInstanceRequest) SetProductDescription(v string) *SpotInstanceRequest { + s.ProductDescription = &v + return s +} + +// SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value. +func (s *SpotInstanceRequest) SetSpotInstanceRequestId(v string) *SpotInstanceRequest { + s.SpotInstanceRequestId = &v + return s +} + +// SetSpotPrice sets the SpotPrice field's value. +func (s *SpotInstanceRequest) SetSpotPrice(v string) *SpotInstanceRequest { + s.SpotPrice = &v + return s +} + +// SetState sets the State field's value. +func (s *SpotInstanceRequest) SetState(v string) *SpotInstanceRequest { + s.State = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SpotInstanceRequest) SetStatus(v *SpotInstanceStatus) *SpotInstanceRequest { + s.Status = v + return s +} + +// SetTags sets the Tags field's value. +func (s *SpotInstanceRequest) SetTags(v []*Tag) *SpotInstanceRequest { + s.Tags = v + return s +} + +// SetType sets the Type field's value. +func (s *SpotInstanceRequest) SetType(v string) *SpotInstanceRequest { + s.Type = &v + return s +} + +// SetValidFrom sets the ValidFrom field's value. +func (s *SpotInstanceRequest) SetValidFrom(v time.Time) *SpotInstanceRequest { + s.ValidFrom = &v + return s +} + +// SetValidUntil sets the ValidUntil field's value. +func (s *SpotInstanceRequest) SetValidUntil(v time.Time) *SpotInstanceRequest { + s.ValidUntil = &v + return s +} + // Describes a Spot instance state change. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotInstanceStateFault type SpotInstanceStateFault struct { _ struct{} `type:"structure"` @@ -34753,7 +49668,20 @@ func (s SpotInstanceStateFault) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *SpotInstanceStateFault) SetCode(v string) *SpotInstanceStateFault { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *SpotInstanceStateFault) SetMessage(v string) *SpotInstanceStateFault { + s.Message = &v + return s +} + // Describes the status of a Spot instance request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotInstanceStatus type SpotInstanceStatus struct { _ struct{} `type:"structure"` @@ -34779,18 +49707,42 @@ func (s SpotInstanceStatus) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *SpotInstanceStatus) SetCode(v string) *SpotInstanceStatus { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *SpotInstanceStatus) SetMessage(v string) *SpotInstanceStatus { + s.Message = &v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *SpotInstanceStatus) SetUpdateTime(v time.Time) *SpotInstanceStatus { + s.UpdateTime = &v + return s +} + // Describes Spot instance placement. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotPlacement type SpotPlacement struct { _ struct{} `type:"structure"` // The Availability Zone. // - // [Spot fleet only] To specify multiple Availability Zones, separate them - // using commas; for example, "us-west-2a, us-west-2b". + // [Spot fleet only] To specify multiple Availability Zones, separate them using + // commas; for example, "us-west-2a, us-west-2b". AvailabilityZone *string `locationName:"availabilityZone" type:"string"` // The name of the placement group (for cluster instances). GroupName *string `locationName:"groupName" type:"string"` + + // The tenancy of the instance (if the instance is running in a VPC). An instance + // with a tenancy of dedicated runs on single-tenant hardware. The host tenancy + // is not supported for Spot instances. + Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"` } // String returns the string representation @@ -34803,15 +49755,34 @@ func (s SpotPlacement) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *SpotPlacement) SetAvailabilityZone(v string) *SpotPlacement { + s.AvailabilityZone = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *SpotPlacement) SetGroupName(v string) *SpotPlacement { + s.GroupName = &v + return s +} + +// SetTenancy sets the Tenancy field's value. +func (s *SpotPlacement) SetTenancy(v string) *SpotPlacement { + s.Tenancy = &v + return s +} + // Describes the maximum hourly price (bid) for any Spot instance launched to // fulfill the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotPrice type SpotPrice struct { _ struct{} `type:"structure"` // The Availability Zone. AvailabilityZone *string `locationName:"availabilityZone" type:"string"` - // The instance type. + // The instance type. Note that T2 and HS1 instance types are not supported. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"` // A general description of the AMI. @@ -34834,7 +49805,38 @@ func (s SpotPrice) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *SpotPrice) SetAvailabilityZone(v string) *SpotPrice { + s.AvailabilityZone = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *SpotPrice) SetInstanceType(v string) *SpotPrice { + s.InstanceType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *SpotPrice) SetProductDescription(v string) *SpotPrice { + s.ProductDescription = &v + return s +} + +// SetSpotPrice sets the SpotPrice field's value. +func (s *SpotPrice) SetSpotPrice(v string) *SpotPrice { + s.SpotPrice = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *SpotPrice) SetTimestamp(v time.Time) *SpotPrice { + s.Timestamp = &v + return s +} + // Describes a stale rule in a security group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StaleIpPermission type StaleIpPermission struct { _ struct{} `type:"structure"` @@ -34872,7 +49874,44 @@ func (s StaleIpPermission) GoString() string { return s.String() } +// SetFromPort sets the FromPort field's value. +func (s *StaleIpPermission) SetFromPort(v int64) *StaleIpPermission { + s.FromPort = &v + return s +} + +// SetIpProtocol sets the IpProtocol field's value. +func (s *StaleIpPermission) SetIpProtocol(v string) *StaleIpPermission { + s.IpProtocol = &v + return s +} + +// SetIpRanges sets the IpRanges field's value. +func (s *StaleIpPermission) SetIpRanges(v []*string) *StaleIpPermission { + s.IpRanges = v + return s +} + +// SetPrefixListIds sets the PrefixListIds field's value. +func (s *StaleIpPermission) SetPrefixListIds(v []*string) *StaleIpPermission { + s.PrefixListIds = v + return s +} + +// SetToPort sets the ToPort field's value. +func (s *StaleIpPermission) SetToPort(v int64) *StaleIpPermission { + s.ToPort = &v + return s +} + +// SetUserIdGroupPairs sets the UserIdGroupPairs field's value. +func (s *StaleIpPermission) SetUserIdGroupPairs(v []*UserIdGroupPair) *StaleIpPermission { + s.UserIdGroupPairs = v + return s +} + // Describes a stale security group (a security group that contains stale rules). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StaleSecurityGroup type StaleSecurityGroup struct { _ struct{} `type:"structure"` @@ -34907,7 +49946,44 @@ func (s StaleSecurityGroup) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *StaleSecurityGroup) SetDescription(v string) *StaleSecurityGroup { + s.Description = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *StaleSecurityGroup) SetGroupId(v string) *StaleSecurityGroup { + s.GroupId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *StaleSecurityGroup) SetGroupName(v string) *StaleSecurityGroup { + s.GroupName = &v + return s +} + +// SetStaleIpPermissions sets the StaleIpPermissions field's value. +func (s *StaleSecurityGroup) SetStaleIpPermissions(v []*StaleIpPermission) *StaleSecurityGroup { + s.StaleIpPermissions = v + return s +} + +// SetStaleIpPermissionsEgress sets the StaleIpPermissionsEgress field's value. +func (s *StaleSecurityGroup) SetStaleIpPermissionsEgress(v []*StaleIpPermission) *StaleSecurityGroup { + s.StaleIpPermissionsEgress = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *StaleSecurityGroup) SetVpcId(v string) *StaleSecurityGroup { + s.VpcId = &v + return s +} + // Contains the parameters for StartInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StartInstancesRequest type StartInstancesInput struct { _ struct{} `type:"structure"` @@ -34949,7 +50025,26 @@ func (s *StartInstancesInput) Validate() error { return nil } +// SetAdditionalInfo sets the AdditionalInfo field's value. +func (s *StartInstancesInput) SetAdditionalInfo(v string) *StartInstancesInput { + s.AdditionalInfo = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *StartInstancesInput) SetDryRun(v bool) *StartInstancesInput { + s.DryRun = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *StartInstancesInput) SetInstanceIds(v []*string) *StartInstancesInput { + s.InstanceIds = v + return s +} + // Contains the output of StartInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StartInstancesResult type StartInstancesOutput struct { _ struct{} `type:"structure"` @@ -34967,7 +50062,14 @@ func (s StartInstancesOutput) GoString() string { return s.String() } +// SetStartingInstances sets the StartingInstances field's value. +func (s *StartInstancesOutput) SetStartingInstances(v []*InstanceStateChange) *StartInstancesOutput { + s.StartingInstances = v + return s +} + // Describes a state change. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StateReason type StateReason struct { _ struct{} `type:"structure"` @@ -34976,29 +50078,31 @@ type StateReason struct { // The message for the state change. // - // Server.SpotInstanceTermination: A Spot instance was terminated due to - // an increase in the market price. + // * Server.InsufficientInstanceCapacity: There was insufficient instance + // capacity to satisfy the launch request. // - // Server.InternalError: An internal error occurred during instance launch, - // resulting in termination. + // * Server.InternalError: An internal error occurred during instance launch, + // resulting in termination. // - // Server.InsufficientInstanceCapacity: There was insufficient instance - // capacity to satisfy the launch request. + // * Server.ScheduledStop: The instance was stopped due to a scheduled retirement. // - // Client.InternalError: A client error caused the instance to terminate - // on launch. + // * Server.SpotInstanceTermination: A Spot instance was terminated due to + // an increase in the market price. // - // Client.InstanceInitiatedShutdown: The instance was shut down using the - // shutdown -h command from the instance. + // * Client.InternalError: A client error caused the instance to terminate + // on launch. // - // Client.UserInitiatedShutdown: The instance was shut down using the Amazon - // EC2 API. + // * Client.InstanceInitiatedShutdown: The instance was shut down using the + // shutdown -h command from the instance. // - // Client.VolumeLimitExceeded: The limit on the number of EBS volumes or - // total storage was exceeded. Decrease usage or request an increase in your - // limits. + // * Client.UserInitiatedShutdown: The instance was shut down using the Amazon + // EC2 API. // - // Client.InvalidSnapshot.NotFound: The specified snapshot was not found. + // * Client.VolumeLimitExceeded: The limit on the number of EBS volumes or + // total storage was exceeded. Decrease usage or request an increase in your + // limits. + // + // * Client.InvalidSnapshot.NotFound: The specified snapshot was not found. Message *string `locationName:"message" type:"string"` } @@ -35012,7 +50116,20 @@ func (s StateReason) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *StateReason) SetCode(v string) *StateReason { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *StateReason) SetMessage(v string) *StateReason { + s.Message = &v + return s +} + // Contains the parameters for StopInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StopInstancesRequest type StopInstancesInput struct { _ struct{} `type:"structure"` @@ -35059,7 +50176,26 @@ func (s *StopInstancesInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *StopInstancesInput) SetDryRun(v bool) *StopInstancesInput { + s.DryRun = &v + return s +} + +// SetForce sets the Force field's value. +func (s *StopInstancesInput) SetForce(v bool) *StopInstancesInput { + s.Force = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *StopInstancesInput) SetInstanceIds(v []*string) *StopInstancesInput { + s.InstanceIds = v + return s +} + // Contains the output of StopInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StopInstancesResult type StopInstancesOutput struct { _ struct{} `type:"structure"` @@ -35077,7 +50213,14 @@ func (s StopInstancesOutput) GoString() string { return s.String() } +// SetStoppingInstances sets the StoppingInstances field's value. +func (s *StopInstancesOutput) SetStoppingInstances(v []*InstanceStateChange) *StopInstancesOutput { + s.StoppingInstances = v + return s +} + // Describes the storage location for an instance store-backed AMI. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Storage type Storage struct { _ struct{} `type:"structure"` @@ -35095,24 +50238,39 @@ func (s Storage) GoString() string { return s.String() } +// SetS3 sets the S3 field's value. +func (s *Storage) SetS3(v *S3Storage) *Storage { + s.S3 = v + return s +} + // Describes a subnet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Subnet type Subnet struct { _ struct{} `type:"structure"` + // Indicates whether a network interface created in this subnet (including a + // network interface created by RunInstances) receives an IPv6 address. + AssignIpv6AddressOnCreation *bool `locationName:"assignIpv6AddressOnCreation" type:"boolean"` + // The Availability Zone of the subnet. AvailabilityZone *string `locationName:"availabilityZone" type:"string"` - // The number of unused IP addresses in the subnet. Note that the IP addresses - // for any stopped instances are considered unavailable. + // The number of unused private IPv4 addresses in the subnet. Note that the + // IPv4 addresses for any stopped instances are considered unavailable. AvailableIpAddressCount *int64 `locationName:"availableIpAddressCount" type:"integer"` - // The CIDR block assigned to the subnet. + // The IPv4 CIDR block assigned to the subnet. CidrBlock *string `locationName:"cidrBlock" type:"string"` // Indicates whether this is the default subnet for the Availability Zone. DefaultForAz *bool `locationName:"defaultForAz" type:"boolean"` - // Indicates whether instances launched in this subnet receive a public IP address. + // Information about the IPv6 CIDR blocks associated with the subnet. + Ipv6CidrBlockAssociationSet []*SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociationSet" locationNameList:"item" type:"list"` + + // Indicates whether instances launched in this subnet receive a public IPv4 + // address. MapPublicIpOnLaunch *bool `locationName:"mapPublicIpOnLaunch" type:"boolean"` // The current state of the subnet. @@ -35138,7 +50296,151 @@ func (s Subnet) GoString() string { return s.String() } +// SetAssignIpv6AddressOnCreation sets the AssignIpv6AddressOnCreation field's value. +func (s *Subnet) SetAssignIpv6AddressOnCreation(v bool) *Subnet { + s.AssignIpv6AddressOnCreation = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Subnet) SetAvailabilityZone(v string) *Subnet { + s.AvailabilityZone = &v + return s +} + +// SetAvailableIpAddressCount sets the AvailableIpAddressCount field's value. +func (s *Subnet) SetAvailableIpAddressCount(v int64) *Subnet { + s.AvailableIpAddressCount = &v + return s +} + +// SetCidrBlock sets the CidrBlock field's value. +func (s *Subnet) SetCidrBlock(v string) *Subnet { + s.CidrBlock = &v + return s +} + +// SetDefaultForAz sets the DefaultForAz field's value. +func (s *Subnet) SetDefaultForAz(v bool) *Subnet { + s.DefaultForAz = &v + return s +} + +// SetIpv6CidrBlockAssociationSet sets the Ipv6CidrBlockAssociationSet field's value. +func (s *Subnet) SetIpv6CidrBlockAssociationSet(v []*SubnetIpv6CidrBlockAssociation) *Subnet { + s.Ipv6CidrBlockAssociationSet = v + return s +} + +// SetMapPublicIpOnLaunch sets the MapPublicIpOnLaunch field's value. +func (s *Subnet) SetMapPublicIpOnLaunch(v bool) *Subnet { + s.MapPublicIpOnLaunch = &v + return s +} + +// SetState sets the State field's value. +func (s *Subnet) SetState(v string) *Subnet { + s.State = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *Subnet) SetSubnetId(v string) *Subnet { + s.SubnetId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Subnet) SetTags(v []*Tag) *Subnet { + s.Tags = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *Subnet) SetVpcId(v string) *Subnet { + s.VpcId = &v + return s +} + +// Describes the state of a CIDR block. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SubnetCidrBlockState +type SubnetCidrBlockState struct { + _ struct{} `type:"structure"` + + // The state of a CIDR block. + State *string `locationName:"state" type:"string" enum:"SubnetCidrBlockStateCode"` + + // A message about the status of the CIDR block, if applicable. + StatusMessage *string `locationName:"statusMessage" type:"string"` +} + +// String returns the string representation +func (s SubnetCidrBlockState) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SubnetCidrBlockState) GoString() string { + return s.String() +} + +// SetState sets the State field's value. +func (s *SubnetCidrBlockState) SetState(v string) *SubnetCidrBlockState { + s.State = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *SubnetCidrBlockState) SetStatusMessage(v string) *SubnetCidrBlockState { + s.StatusMessage = &v + return s +} + +// Describes an IPv6 CIDR block associated with a subnet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SubnetIpv6CidrBlockAssociation +type SubnetIpv6CidrBlockAssociation struct { + _ struct{} `type:"structure"` + + // The association ID for the CIDR block. + AssociationId *string `locationName:"associationId" type:"string"` + + // The IPv6 CIDR block. + Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"` + + // Information about the state of the CIDR block. + Ipv6CidrBlockState *SubnetCidrBlockState `locationName:"ipv6CidrBlockState" type:"structure"` +} + +// String returns the string representation +func (s SubnetIpv6CidrBlockAssociation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SubnetIpv6CidrBlockAssociation) GoString() string { + return s.String() +} + +// SetAssociationId sets the AssociationId field's value. +func (s *SubnetIpv6CidrBlockAssociation) SetAssociationId(v string) *SubnetIpv6CidrBlockAssociation { + s.AssociationId = &v + return s +} + +// SetIpv6CidrBlock sets the Ipv6CidrBlock field's value. +func (s *SubnetIpv6CidrBlockAssociation) SetIpv6CidrBlock(v string) *SubnetIpv6CidrBlockAssociation { + s.Ipv6CidrBlock = &v + return s +} + +// SetIpv6CidrBlockState sets the Ipv6CidrBlockState field's value. +func (s *SubnetIpv6CidrBlockAssociation) SetIpv6CidrBlockState(v *SubnetCidrBlockState) *SubnetIpv6CidrBlockAssociation { + s.Ipv6CidrBlockState = v + return s +} + // Describes a tag. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Tag type Tag struct { _ struct{} `type:"structure"` @@ -35165,7 +50467,20 @@ func (s Tag) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Describes a tag. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TagDescription type TagDescription struct { _ struct{} `type:"structure"` @@ -35192,7 +50507,32 @@ func (s TagDescription) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *TagDescription) SetKey(v string) *TagDescription { + s.Key = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *TagDescription) SetResourceId(v string) *TagDescription { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *TagDescription) SetResourceType(v string) *TagDescription { + s.ResourceType = &v + return s +} + +// SetValue sets the Value field's value. +func (s *TagDescription) SetValue(v string) *TagDescription { + s.Value = &v + return s +} + // Information about the Convertible Reserved Instance offering. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TargetConfiguration type TargetConfiguration struct { _ struct{} `type:"structure"` @@ -35214,7 +50554,20 @@ func (s TargetConfiguration) GoString() string { return s.String() } +// SetInstanceCount sets the InstanceCount field's value. +func (s *TargetConfiguration) SetInstanceCount(v int64) *TargetConfiguration { + s.InstanceCount = &v + return s +} + +// SetOfferingId sets the OfferingId field's value. +func (s *TargetConfiguration) SetOfferingId(v string) *TargetConfiguration { + s.OfferingId = &v + return s +} + // Details about the target configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TargetConfigurationRequest type TargetConfigurationRequest struct { _ struct{} `type:"structure"` @@ -35222,9 +50575,7 @@ type TargetConfigurationRequest struct { // applied to. This parameter is reserved and cannot be specified in a request InstanceCount *int64 `type:"integer"` - // The Convertible Reserved Instance offering ID. If this isn't included in - // the request, the response lists your current Convertible Reserved Instance/s - // and their value/s. + // The Convertible Reserved Instance offering ID. // // OfferingId is a required field OfferingId *string `type:"string" required:"true"` @@ -35253,7 +50604,20 @@ func (s *TargetConfigurationRequest) Validate() error { return nil } +// SetInstanceCount sets the InstanceCount field's value. +func (s *TargetConfigurationRequest) SetInstanceCount(v int64) *TargetConfigurationRequest { + s.InstanceCount = &v + return s +} + +// SetOfferingId sets the OfferingId field's value. +func (s *TargetConfigurationRequest) SetOfferingId(v string) *TargetConfigurationRequest { + s.OfferingId = &v + return s +} + // The total value of the new Convertible Reserved Instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TargetReservationValue type TargetReservationValue struct { _ struct{} `type:"structure"` @@ -35277,7 +50641,20 @@ func (s TargetReservationValue) GoString() string { return s.String() } +// SetReservationValue sets the ReservationValue field's value. +func (s *TargetReservationValue) SetReservationValue(v *ReservationValue) *TargetReservationValue { + s.ReservationValue = v + return s +} + +// SetTargetConfiguration sets the TargetConfiguration field's value. +func (s *TargetReservationValue) SetTargetConfiguration(v *TargetConfiguration) *TargetReservationValue { + s.TargetConfiguration = v + return s +} + // Contains the parameters for TerminateInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateInstancesRequest type TerminateInstancesInput struct { _ struct{} `type:"structure"` @@ -35319,7 +50696,20 @@ func (s *TerminateInstancesInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *TerminateInstancesInput) SetDryRun(v bool) *TerminateInstancesInput { + s.DryRun = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *TerminateInstancesInput) SetInstanceIds(v []*string) *TerminateInstancesInput { + s.InstanceIds = v + return s +} + // Contains the output of TerminateInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateInstancesResult type TerminateInstancesOutput struct { _ struct{} `type:"structure"` @@ -35337,7 +50727,100 @@ func (s TerminateInstancesOutput) GoString() string { return s.String() } +// SetTerminatingInstances sets the TerminatingInstances field's value. +func (s *TerminateInstancesOutput) SetTerminatingInstances(v []*InstanceStateChange) *TerminateInstancesOutput { + s.TerminatingInstances = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignIpv6AddressesRequest +type UnassignIpv6AddressesInput struct { + _ struct{} `type:"structure"` + + // The IPv6 addresses to unassign from the network interface. + // + // Ipv6Addresses is a required field + Ipv6Addresses []*string `locationName:"ipv6Addresses" locationNameList:"item" type:"list" required:"true"` + + // The ID of the network interface. + // + // NetworkInterfaceId is a required field + NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"` +} + +// String returns the string representation +func (s UnassignIpv6AddressesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnassignIpv6AddressesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UnassignIpv6AddressesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UnassignIpv6AddressesInput"} + if s.Ipv6Addresses == nil { + invalidParams.Add(request.NewErrParamRequired("Ipv6Addresses")) + } + if s.NetworkInterfaceId == nil { + invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIpv6Addresses sets the Ipv6Addresses field's value. +func (s *UnassignIpv6AddressesInput) SetIpv6Addresses(v []*string) *UnassignIpv6AddressesInput { + s.Ipv6Addresses = v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *UnassignIpv6AddressesInput) SetNetworkInterfaceId(v string) *UnassignIpv6AddressesInput { + s.NetworkInterfaceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignIpv6AddressesResult +type UnassignIpv6AddressesOutput struct { + _ struct{} `type:"structure"` + + // The ID of the network interface. + NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"` + + // The IPv6 addresses that have been unassigned from the network interface. + UnassignedIpv6Addresses []*string `locationName:"unassignedIpv6Addresses" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s UnassignIpv6AddressesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnassignIpv6AddressesOutput) GoString() string { + return s.String() +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *UnassignIpv6AddressesOutput) SetNetworkInterfaceId(v string) *UnassignIpv6AddressesOutput { + s.NetworkInterfaceId = &v + return s +} + +// SetUnassignedIpv6Addresses sets the UnassignedIpv6Addresses field's value. +func (s *UnassignIpv6AddressesOutput) SetUnassignedIpv6Addresses(v []*string) *UnassignIpv6AddressesOutput { + s.UnassignedIpv6Addresses = v + return s +} + // Contains the parameters for UnassignPrivateIpAddresses. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateIpAddressesRequest type UnassignPrivateIpAddressesInput struct { _ struct{} `type:"structure"` @@ -35379,6 +50862,19 @@ func (s *UnassignPrivateIpAddressesInput) Validate() error { return nil } +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *UnassignPrivateIpAddressesInput) SetNetworkInterfaceId(v string) *UnassignPrivateIpAddressesInput { + s.NetworkInterfaceId = &v + return s +} + +// SetPrivateIpAddresses sets the PrivateIpAddresses field's value. +func (s *UnassignPrivateIpAddressesInput) SetPrivateIpAddresses(v []*string) *UnassignPrivateIpAddressesInput { + s.PrivateIpAddresses = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateIpAddressesOutput type UnassignPrivateIpAddressesOutput struct { _ struct{} `type:"structure"` } @@ -35394,6 +50890,7 @@ func (s UnassignPrivateIpAddressesOutput) GoString() string { } // Contains the parameters for UnmonitorInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnmonitorInstancesRequest type UnmonitorInstancesInput struct { _ struct{} `type:"structure"` @@ -35432,11 +50929,24 @@ func (s *UnmonitorInstancesInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *UnmonitorInstancesInput) SetDryRun(v bool) *UnmonitorInstancesInput { + s.DryRun = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *UnmonitorInstancesInput) SetInstanceIds(v []*string) *UnmonitorInstancesInput { + s.InstanceIds = v + return s +} + // Contains the output of UnmonitorInstances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnmonitorInstancesResult type UnmonitorInstancesOutput struct { _ struct{} `type:"structure"` - // Monitoring information for one or more instances. + // The monitoring information. InstanceMonitorings []*InstanceMonitoring `locationName:"instancesSet" locationNameList:"item" type:"list"` } @@ -35450,7 +50960,14 @@ func (s UnmonitorInstancesOutput) GoString() string { return s.String() } +// SetInstanceMonitorings sets the InstanceMonitorings field's value. +func (s *UnmonitorInstancesOutput) SetInstanceMonitorings(v []*InstanceMonitoring) *UnmonitorInstancesOutput { + s.InstanceMonitorings = v + return s +} + // Information about items that were not successfully processed in a batch call. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnsuccessfulItem type UnsuccessfulItem struct { _ struct{} `type:"structure"` @@ -35473,8 +50990,21 @@ func (s UnsuccessfulItem) GoString() string { return s.String() } +// SetError sets the Error field's value. +func (s *UnsuccessfulItem) SetError(v *UnsuccessfulItemError) *UnsuccessfulItem { + s.Error = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *UnsuccessfulItem) SetResourceId(v string) *UnsuccessfulItem { + s.ResourceId = &v + return s +} + // Information about the error that occurred. For more information about errors, // see Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnsuccessfulItemError type UnsuccessfulItemError struct { _ struct{} `type:"structure"` @@ -35499,7 +51029,20 @@ func (s UnsuccessfulItemError) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *UnsuccessfulItemError) SetCode(v string) *UnsuccessfulItemError { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *UnsuccessfulItemError) SetMessage(v string) *UnsuccessfulItemError { + s.Message = &v + return s +} + // Describes the S3 bucket for the disk image. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UserBucket type UserBucket struct { _ struct{} `type:"structure"` @@ -35520,7 +51063,20 @@ func (s UserBucket) GoString() string { return s.String() } +// SetS3Bucket sets the S3Bucket field's value. +func (s *UserBucket) SetS3Bucket(v string) *UserBucket { + s.S3Bucket = &v + return s +} + +// SetS3Key sets the S3Key field's value. +func (s *UserBucket) SetS3Key(v string) *UserBucket { + s.S3Key = &v + return s +} + // Describes the S3 bucket for the disk image. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UserBucketDetails type UserBucketDetails struct { _ struct{} `type:"structure"` @@ -35541,7 +51097,20 @@ func (s UserBucketDetails) GoString() string { return s.String() } +// SetS3Bucket sets the S3Bucket field's value. +func (s *UserBucketDetails) SetS3Bucket(v string) *UserBucketDetails { + s.S3Bucket = &v + return s +} + +// SetS3Key sets the S3Key field's value. +func (s *UserBucketDetails) SetS3Key(v string) *UserBucketDetails { + s.S3Key = &v + return s +} + // Describes the user data for an instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UserData type UserData struct { _ struct{} `type:"structure"` @@ -35561,7 +51130,14 @@ func (s UserData) GoString() string { return s.String() } +// SetData sets the Data field's value. +func (s *UserData) SetData(v string) *UserData { + s.Data = &v + return s +} + // Describes a security group and AWS account ID pair. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UserIdGroupPair type UserIdGroupPair struct { _ struct{} `type:"structure"` @@ -35600,7 +51176,44 @@ func (s UserIdGroupPair) GoString() string { return s.String() } +// SetGroupId sets the GroupId field's value. +func (s *UserIdGroupPair) SetGroupId(v string) *UserIdGroupPair { + s.GroupId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *UserIdGroupPair) SetGroupName(v string) *UserIdGroupPair { + s.GroupName = &v + return s +} + +// SetPeeringStatus sets the PeeringStatus field's value. +func (s *UserIdGroupPair) SetPeeringStatus(v string) *UserIdGroupPair { + s.PeeringStatus = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *UserIdGroupPair) SetUserId(v string) *UserIdGroupPair { + s.UserId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *UserIdGroupPair) SetVpcId(v string) *UserIdGroupPair { + s.VpcId = &v + return s +} + +// SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. +func (s *UserIdGroupPair) SetVpcPeeringConnectionId(v string) *UserIdGroupPair { + s.VpcPeeringConnectionId = &v + return s +} + // Describes telemetry for a VPN tunnel. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VgwTelemetry type VgwTelemetry struct { _ struct{} `type:"structure"` @@ -35631,7 +51244,38 @@ func (s VgwTelemetry) GoString() string { return s.String() } +// SetAcceptedRouteCount sets the AcceptedRouteCount field's value. +func (s *VgwTelemetry) SetAcceptedRouteCount(v int64) *VgwTelemetry { + s.AcceptedRouteCount = &v + return s +} + +// SetLastStatusChange sets the LastStatusChange field's value. +func (s *VgwTelemetry) SetLastStatusChange(v time.Time) *VgwTelemetry { + s.LastStatusChange = &v + return s +} + +// SetOutsideIpAddress sets the OutsideIpAddress field's value. +func (s *VgwTelemetry) SetOutsideIpAddress(v string) *VgwTelemetry { + s.OutsideIpAddress = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *VgwTelemetry) SetStatus(v string) *VgwTelemetry { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *VgwTelemetry) SetStatusMessage(v string) *VgwTelemetry { + s.StatusMessage = &v + return s +} + // Describes a volume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Volume type Volume struct { _ struct{} `type:"structure"` @@ -35697,7 +51341,80 @@ func (s Volume) GoString() string { return s.String() } +// SetAttachments sets the Attachments field's value. +func (s *Volume) SetAttachments(v []*VolumeAttachment) *Volume { + s.Attachments = v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Volume) SetAvailabilityZone(v string) *Volume { + s.AvailabilityZone = &v + return s +} + +// SetCreateTime sets the CreateTime field's value. +func (s *Volume) SetCreateTime(v time.Time) *Volume { + s.CreateTime = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *Volume) SetEncrypted(v bool) *Volume { + s.Encrypted = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *Volume) SetIops(v int64) *Volume { + s.Iops = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *Volume) SetKmsKeyId(v string) *Volume { + s.KmsKeyId = &v + return s +} + +// SetSize sets the Size field's value. +func (s *Volume) SetSize(v int64) *Volume { + s.Size = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *Volume) SetSnapshotId(v string) *Volume { + s.SnapshotId = &v + return s +} + +// SetState sets the State field's value. +func (s *Volume) SetState(v string) *Volume { + s.State = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Volume) SetTags(v []*Tag) *Volume { + s.Tags = v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *Volume) SetVolumeId(v string) *Volume { + s.VolumeId = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *Volume) SetVolumeType(v string) *Volume { + s.VolumeType = &v + return s +} + // Describes volume attachment details. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeAttachment type VolumeAttachment struct { _ struct{} `type:"structure"` @@ -35730,7 +51447,44 @@ func (s VolumeAttachment) GoString() string { return s.String() } +// SetAttachTime sets the AttachTime field's value. +func (s *VolumeAttachment) SetAttachTime(v time.Time) *VolumeAttachment { + s.AttachTime = &v + return s +} + +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *VolumeAttachment) SetDeleteOnTermination(v bool) *VolumeAttachment { + s.DeleteOnTermination = &v + return s +} + +// SetDevice sets the Device field's value. +func (s *VolumeAttachment) SetDevice(v string) *VolumeAttachment { + s.Device = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *VolumeAttachment) SetInstanceId(v string) *VolumeAttachment { + s.InstanceId = &v + return s +} + +// SetState sets the State field's value. +func (s *VolumeAttachment) SetState(v string) *VolumeAttachment { + s.State = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *VolumeAttachment) SetVolumeId(v string) *VolumeAttachment { + s.VolumeId = &v + return s +} + // Describes an EBS volume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeDetail type VolumeDetail struct { _ struct{} `type:"structure"` @@ -35763,7 +51517,141 @@ func (s *VolumeDetail) Validate() error { return nil } +// SetSize sets the Size field's value. +func (s *VolumeDetail) SetSize(v int64) *VolumeDetail { + s.Size = &v + return s +} + +// Describes the modification status of an EBS volume. +// +// If the volume has never been modified, some element values will be null. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeModification +type VolumeModification struct { + _ struct{} `type:"structure"` + + // Modification completion or failure time. + EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"` + + // Current state of modification. Modification state is null for unmodified + // volumes. + ModificationState *string `locationName:"modificationState" type:"string" enum:"VolumeModificationState"` + + // Original IOPS rate of the volume being modified. + OriginalIops *int64 `locationName:"originalIops" type:"integer"` + + // Original size of the volume being modified. + OriginalSize *int64 `locationName:"originalSize" type:"integer"` + + // Original EBS volume type of the volume being modified. + OriginalVolumeType *string `locationName:"originalVolumeType" type:"string" enum:"VolumeType"` + + // Modification progress from 0 to 100%. + Progress *int64 `locationName:"progress" type:"long"` + + // Modification start time + StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"` + + // Generic status message on modification progress or failure. + StatusMessage *string `locationName:"statusMessage" type:"string"` + + // Target IOPS rate of the volume being modified. + TargetIops *int64 `locationName:"targetIops" type:"integer"` + + // Target size of the volume being modified. + TargetSize *int64 `locationName:"targetSize" type:"integer"` + + // Target EBS volume type of the volume being modified. + TargetVolumeType *string `locationName:"targetVolumeType" type:"string" enum:"VolumeType"` + + // ID of the volume being modified. + VolumeId *string `locationName:"volumeId" type:"string"` +} + +// String returns the string representation +func (s VolumeModification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VolumeModification) GoString() string { + return s.String() +} + +// SetEndTime sets the EndTime field's value. +func (s *VolumeModification) SetEndTime(v time.Time) *VolumeModification { + s.EndTime = &v + return s +} + +// SetModificationState sets the ModificationState field's value. +func (s *VolumeModification) SetModificationState(v string) *VolumeModification { + s.ModificationState = &v + return s +} + +// SetOriginalIops sets the OriginalIops field's value. +func (s *VolumeModification) SetOriginalIops(v int64) *VolumeModification { + s.OriginalIops = &v + return s +} + +// SetOriginalSize sets the OriginalSize field's value. +func (s *VolumeModification) SetOriginalSize(v int64) *VolumeModification { + s.OriginalSize = &v + return s +} + +// SetOriginalVolumeType sets the OriginalVolumeType field's value. +func (s *VolumeModification) SetOriginalVolumeType(v string) *VolumeModification { + s.OriginalVolumeType = &v + return s +} + +// SetProgress sets the Progress field's value. +func (s *VolumeModification) SetProgress(v int64) *VolumeModification { + s.Progress = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *VolumeModification) SetStartTime(v time.Time) *VolumeModification { + s.StartTime = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *VolumeModification) SetStatusMessage(v string) *VolumeModification { + s.StatusMessage = &v + return s +} + +// SetTargetIops sets the TargetIops field's value. +func (s *VolumeModification) SetTargetIops(v int64) *VolumeModification { + s.TargetIops = &v + return s +} + +// SetTargetSize sets the TargetSize field's value. +func (s *VolumeModification) SetTargetSize(v int64) *VolumeModification { + s.TargetSize = &v + return s +} + +// SetTargetVolumeType sets the TargetVolumeType field's value. +func (s *VolumeModification) SetTargetVolumeType(v string) *VolumeModification { + s.TargetVolumeType = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *VolumeModification) SetVolumeId(v string) *VolumeModification { + s.VolumeId = &v + return s +} + // Describes a volume status operation code. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeStatusAction type VolumeStatusAction struct { _ struct{} `type:"structure"` @@ -35790,7 +51678,32 @@ func (s VolumeStatusAction) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *VolumeStatusAction) SetCode(v string) *VolumeStatusAction { + s.Code = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *VolumeStatusAction) SetDescription(v string) *VolumeStatusAction { + s.Description = &v + return s +} + +// SetEventId sets the EventId field's value. +func (s *VolumeStatusAction) SetEventId(v string) *VolumeStatusAction { + s.EventId = &v + return s +} + +// SetEventType sets the EventType field's value. +func (s *VolumeStatusAction) SetEventType(v string) *VolumeStatusAction { + s.EventType = &v + return s +} + // Describes a volume status. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeStatusDetails type VolumeStatusDetails struct { _ struct{} `type:"structure"` @@ -35811,7 +51724,20 @@ func (s VolumeStatusDetails) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *VolumeStatusDetails) SetName(v string) *VolumeStatusDetails { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *VolumeStatusDetails) SetStatus(v string) *VolumeStatusDetails { + s.Status = &v + return s +} + // Describes a volume status event. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeStatusEvent type VolumeStatusEvent struct { _ struct{} `type:"structure"` @@ -35841,7 +51767,38 @@ func (s VolumeStatusEvent) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *VolumeStatusEvent) SetDescription(v string) *VolumeStatusEvent { + s.Description = &v + return s +} + +// SetEventId sets the EventId field's value. +func (s *VolumeStatusEvent) SetEventId(v string) *VolumeStatusEvent { + s.EventId = &v + return s +} + +// SetEventType sets the EventType field's value. +func (s *VolumeStatusEvent) SetEventType(v string) *VolumeStatusEvent { + s.EventType = &v + return s +} + +// SetNotAfter sets the NotAfter field's value. +func (s *VolumeStatusEvent) SetNotAfter(v time.Time) *VolumeStatusEvent { + s.NotAfter = &v + return s +} + +// SetNotBefore sets the NotBefore field's value. +func (s *VolumeStatusEvent) SetNotBefore(v time.Time) *VolumeStatusEvent { + s.NotBefore = &v + return s +} + // Describes the status of a volume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeStatusInfo type VolumeStatusInfo struct { _ struct{} `type:"structure"` @@ -35862,7 +51819,20 @@ func (s VolumeStatusInfo) GoString() string { return s.String() } +// SetDetails sets the Details field's value. +func (s *VolumeStatusInfo) SetDetails(v []*VolumeStatusDetails) *VolumeStatusInfo { + s.Details = v + return s +} + +// SetStatus sets the Status field's value. +func (s *VolumeStatusInfo) SetStatus(v string) *VolumeStatusInfo { + s.Status = &v + return s +} + // Describes the volume status. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeStatusItem type VolumeStatusItem struct { _ struct{} `type:"structure"` @@ -35892,11 +51862,42 @@ func (s VolumeStatusItem) GoString() string { return s.String() } +// SetActions sets the Actions field's value. +func (s *VolumeStatusItem) SetActions(v []*VolumeStatusAction) *VolumeStatusItem { + s.Actions = v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *VolumeStatusItem) SetAvailabilityZone(v string) *VolumeStatusItem { + s.AvailabilityZone = &v + return s +} + +// SetEvents sets the Events field's value. +func (s *VolumeStatusItem) SetEvents(v []*VolumeStatusEvent) *VolumeStatusItem { + s.Events = v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *VolumeStatusItem) SetVolumeId(v string) *VolumeStatusItem { + s.VolumeId = &v + return s +} + +// SetVolumeStatus sets the VolumeStatus field's value. +func (s *VolumeStatusItem) SetVolumeStatus(v *VolumeStatusInfo) *VolumeStatusItem { + s.VolumeStatus = v + return s +} + // Describes a VPC. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Vpc type Vpc struct { _ struct{} `type:"structure"` - // The CIDR block for the VPC. + // The IPv4 CIDR block for the VPC. CidrBlock *string `locationName:"cidrBlock" type:"string"` // The ID of the set of DHCP options you've associated with the VPC (or default @@ -35906,6 +51907,9 @@ type Vpc struct { // The allowed tenancy of instances launched into the VPC. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"` + // Information about the IPv6 CIDR blocks associated with the VPC. + Ipv6CidrBlockAssociationSet []*VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociationSet" locationNameList:"item" type:"list"` + // Indicates whether the VPC is the default VPC. IsDefault *bool `locationName:"isDefault" type:"boolean"` @@ -35929,7 +51933,56 @@ func (s Vpc) GoString() string { return s.String() } +// SetCidrBlock sets the CidrBlock field's value. +func (s *Vpc) SetCidrBlock(v string) *Vpc { + s.CidrBlock = &v + return s +} + +// SetDhcpOptionsId sets the DhcpOptionsId field's value. +func (s *Vpc) SetDhcpOptionsId(v string) *Vpc { + s.DhcpOptionsId = &v + return s +} + +// SetInstanceTenancy sets the InstanceTenancy field's value. +func (s *Vpc) SetInstanceTenancy(v string) *Vpc { + s.InstanceTenancy = &v + return s +} + +// SetIpv6CidrBlockAssociationSet sets the Ipv6CidrBlockAssociationSet field's value. +func (s *Vpc) SetIpv6CidrBlockAssociationSet(v []*VpcIpv6CidrBlockAssociation) *Vpc { + s.Ipv6CidrBlockAssociationSet = v + return s +} + +// SetIsDefault sets the IsDefault field's value. +func (s *Vpc) SetIsDefault(v bool) *Vpc { + s.IsDefault = &v + return s +} + +// SetState sets the State field's value. +func (s *Vpc) SetState(v string) *Vpc { + s.State = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Vpc) SetTags(v []*Tag) *Vpc { + s.Tags = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *Vpc) SetVpcId(v string) *Vpc { + s.VpcId = &v + return s +} + // Describes an attachment between a virtual private gateway and a VPC. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcAttachment type VpcAttachment struct { _ struct{} `type:"structure"` @@ -35950,7 +52003,54 @@ func (s VpcAttachment) GoString() string { return s.String() } +// SetState sets the State field's value. +func (s *VpcAttachment) SetState(v string) *VpcAttachment { + s.State = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *VpcAttachment) SetVpcId(v string) *VpcAttachment { + s.VpcId = &v + return s +} + +// Describes the state of a CIDR block. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcCidrBlockState +type VpcCidrBlockState struct { + _ struct{} `type:"structure"` + + // The state of the CIDR block. + State *string `locationName:"state" type:"string" enum:"VpcCidrBlockStateCode"` + + // A message about the status of the CIDR block, if applicable. + StatusMessage *string `locationName:"statusMessage" type:"string"` +} + +// String returns the string representation +func (s VpcCidrBlockState) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VpcCidrBlockState) GoString() string { + return s.String() +} + +// SetState sets the State field's value. +func (s *VpcCidrBlockState) SetState(v string) *VpcCidrBlockState { + s.State = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *VpcCidrBlockState) SetStatusMessage(v string) *VpcCidrBlockState { + s.StatusMessage = &v + return s +} + // Describes whether a VPC is enabled for ClassicLink. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcClassicLink type VpcClassicLink struct { _ struct{} `type:"structure"` @@ -35974,7 +52074,26 @@ func (s VpcClassicLink) GoString() string { return s.String() } +// SetClassicLinkEnabled sets the ClassicLinkEnabled field's value. +func (s *VpcClassicLink) SetClassicLinkEnabled(v bool) *VpcClassicLink { + s.ClassicLinkEnabled = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *VpcClassicLink) SetTags(v []*Tag) *VpcClassicLink { + s.Tags = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *VpcClassicLink) SetVpcId(v string) *VpcClassicLink { + s.VpcId = &v + return s +} + // Describes a VPC endpoint. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcEndpoint type VpcEndpoint struct { _ struct{} `type:"structure"` @@ -36010,7 +52129,93 @@ func (s VpcEndpoint) GoString() string { return s.String() } +// SetCreationTimestamp sets the CreationTimestamp field's value. +func (s *VpcEndpoint) SetCreationTimestamp(v time.Time) *VpcEndpoint { + s.CreationTimestamp = &v + return s +} + +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *VpcEndpoint) SetPolicyDocument(v string) *VpcEndpoint { + s.PolicyDocument = &v + return s +} + +// SetRouteTableIds sets the RouteTableIds field's value. +func (s *VpcEndpoint) SetRouteTableIds(v []*string) *VpcEndpoint { + s.RouteTableIds = v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *VpcEndpoint) SetServiceName(v string) *VpcEndpoint { + s.ServiceName = &v + return s +} + +// SetState sets the State field's value. +func (s *VpcEndpoint) SetState(v string) *VpcEndpoint { + s.State = &v + return s +} + +// SetVpcEndpointId sets the VpcEndpointId field's value. +func (s *VpcEndpoint) SetVpcEndpointId(v string) *VpcEndpoint { + s.VpcEndpointId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *VpcEndpoint) SetVpcId(v string) *VpcEndpoint { + s.VpcId = &v + return s +} + +// Describes an IPv6 CIDR block associated with a VPC. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcIpv6CidrBlockAssociation +type VpcIpv6CidrBlockAssociation struct { + _ struct{} `type:"structure"` + + // The association ID for the IPv6 CIDR block. + AssociationId *string `locationName:"associationId" type:"string"` + + // The IPv6 CIDR block. + Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"` + + // Information about the state of the CIDR block. + Ipv6CidrBlockState *VpcCidrBlockState `locationName:"ipv6CidrBlockState" type:"structure"` +} + +// String returns the string representation +func (s VpcIpv6CidrBlockAssociation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VpcIpv6CidrBlockAssociation) GoString() string { + return s.String() +} + +// SetAssociationId sets the AssociationId field's value. +func (s *VpcIpv6CidrBlockAssociation) SetAssociationId(v string) *VpcIpv6CidrBlockAssociation { + s.AssociationId = &v + return s +} + +// SetIpv6CidrBlock sets the Ipv6CidrBlock field's value. +func (s *VpcIpv6CidrBlockAssociation) SetIpv6CidrBlock(v string) *VpcIpv6CidrBlockAssociation { + s.Ipv6CidrBlock = &v + return s +} + +// SetIpv6CidrBlockState sets the Ipv6CidrBlockState field's value. +func (s *VpcIpv6CidrBlockAssociation) SetIpv6CidrBlockState(v *VpcCidrBlockState) *VpcIpv6CidrBlockAssociation { + s.Ipv6CidrBlockState = v + return s +} + // Describes a VPC peering connection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcPeeringConnection type VpcPeeringConnection struct { _ struct{} `type:"structure"` @@ -36045,7 +52250,44 @@ func (s VpcPeeringConnection) GoString() string { return s.String() } +// SetAccepterVpcInfo sets the AccepterVpcInfo field's value. +func (s *VpcPeeringConnection) SetAccepterVpcInfo(v *VpcPeeringConnectionVpcInfo) *VpcPeeringConnection { + s.AccepterVpcInfo = v + return s +} + +// SetExpirationTime sets the ExpirationTime field's value. +func (s *VpcPeeringConnection) SetExpirationTime(v time.Time) *VpcPeeringConnection { + s.ExpirationTime = &v + return s +} + +// SetRequesterVpcInfo sets the RequesterVpcInfo field's value. +func (s *VpcPeeringConnection) SetRequesterVpcInfo(v *VpcPeeringConnectionVpcInfo) *VpcPeeringConnection { + s.RequesterVpcInfo = v + return s +} + +// SetStatus sets the Status field's value. +func (s *VpcPeeringConnection) SetStatus(v *VpcPeeringConnectionStateReason) *VpcPeeringConnection { + s.Status = v + return s +} + +// SetTags sets the Tags field's value. +func (s *VpcPeeringConnection) SetTags(v []*Tag) *VpcPeeringConnection { + s.Tags = v + return s +} + +// SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. +func (s *VpcPeeringConnection) SetVpcPeeringConnectionId(v string) *VpcPeeringConnection { + s.VpcPeeringConnectionId = &v + return s +} + // Describes the VPC peering connection options. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcPeeringConnectionOptionsDescription type VpcPeeringConnectionOptionsDescription struct { _ struct{} `type:"structure"` @@ -36072,7 +52314,26 @@ func (s VpcPeeringConnectionOptionsDescription) GoString() string { return s.String() } +// SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value. +func (s *VpcPeeringConnectionOptionsDescription) SetAllowDnsResolutionFromRemoteVpc(v bool) *VpcPeeringConnectionOptionsDescription { + s.AllowDnsResolutionFromRemoteVpc = &v + return s +} + +// SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value. +func (s *VpcPeeringConnectionOptionsDescription) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *VpcPeeringConnectionOptionsDescription { + s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v + return s +} + +// SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value. +func (s *VpcPeeringConnectionOptionsDescription) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *VpcPeeringConnectionOptionsDescription { + s.AllowEgressFromLocalVpcToRemoteClassicLink = &v + return s +} + // Describes the status of a VPC peering connection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcPeeringConnectionStateReason type VpcPeeringConnectionStateReason struct { _ struct{} `type:"structure"` @@ -36093,13 +52354,29 @@ func (s VpcPeeringConnectionStateReason) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *VpcPeeringConnectionStateReason) SetCode(v string) *VpcPeeringConnectionStateReason { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *VpcPeeringConnectionStateReason) SetMessage(v string) *VpcPeeringConnectionStateReason { + s.Message = &v + return s +} + // Describes a VPC in a VPC peering connection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcPeeringConnectionVpcInfo type VpcPeeringConnectionVpcInfo struct { _ struct{} `type:"structure"` - // The CIDR block for the VPC. + // The IPv4 CIDR block for the VPC. CidrBlock *string `locationName:"cidrBlock" type:"string"` + // The IPv6 CIDR block for the VPC. + Ipv6CidrBlockSet []*Ipv6CidrBlock `locationName:"ipv6CidrBlockSet" locationNameList:"item" type:"list"` + // The AWS account ID of the VPC owner. OwnerId *string `locationName:"ownerId" type:"string"` @@ -36121,7 +52398,38 @@ func (s VpcPeeringConnectionVpcInfo) GoString() string { return s.String() } +// SetCidrBlock sets the CidrBlock field's value. +func (s *VpcPeeringConnectionVpcInfo) SetCidrBlock(v string) *VpcPeeringConnectionVpcInfo { + s.CidrBlock = &v + return s +} + +// SetIpv6CidrBlockSet sets the Ipv6CidrBlockSet field's value. +func (s *VpcPeeringConnectionVpcInfo) SetIpv6CidrBlockSet(v []*Ipv6CidrBlock) *VpcPeeringConnectionVpcInfo { + s.Ipv6CidrBlockSet = v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *VpcPeeringConnectionVpcInfo) SetOwnerId(v string) *VpcPeeringConnectionVpcInfo { + s.OwnerId = &v + return s +} + +// SetPeeringOptions sets the PeeringOptions field's value. +func (s *VpcPeeringConnectionVpcInfo) SetPeeringOptions(v *VpcPeeringConnectionOptionsDescription) *VpcPeeringConnectionVpcInfo { + s.PeeringOptions = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *VpcPeeringConnectionVpcInfo) SetVpcId(v string) *VpcPeeringConnectionVpcInfo { + s.VpcId = &v + return s +} + // Describes a VPN connection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpnConnection type VpnConnection struct { _ struct{} `type:"structure"` @@ -36169,7 +52477,68 @@ func (s VpnConnection) GoString() string { return s.String() } +// SetCustomerGatewayConfiguration sets the CustomerGatewayConfiguration field's value. +func (s *VpnConnection) SetCustomerGatewayConfiguration(v string) *VpnConnection { + s.CustomerGatewayConfiguration = &v + return s +} + +// SetCustomerGatewayId sets the CustomerGatewayId field's value. +func (s *VpnConnection) SetCustomerGatewayId(v string) *VpnConnection { + s.CustomerGatewayId = &v + return s +} + +// SetOptions sets the Options field's value. +func (s *VpnConnection) SetOptions(v *VpnConnectionOptions) *VpnConnection { + s.Options = v + return s +} + +// SetRoutes sets the Routes field's value. +func (s *VpnConnection) SetRoutes(v []*VpnStaticRoute) *VpnConnection { + s.Routes = v + return s +} + +// SetState sets the State field's value. +func (s *VpnConnection) SetState(v string) *VpnConnection { + s.State = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *VpnConnection) SetTags(v []*Tag) *VpnConnection { + s.Tags = v + return s +} + +// SetType sets the Type field's value. +func (s *VpnConnection) SetType(v string) *VpnConnection { + s.Type = &v + return s +} + +// SetVgwTelemetry sets the VgwTelemetry field's value. +func (s *VpnConnection) SetVgwTelemetry(v []*VgwTelemetry) *VpnConnection { + s.VgwTelemetry = v + return s +} + +// SetVpnConnectionId sets the VpnConnectionId field's value. +func (s *VpnConnection) SetVpnConnectionId(v string) *VpnConnection { + s.VpnConnectionId = &v + return s +} + +// SetVpnGatewayId sets the VpnGatewayId field's value. +func (s *VpnConnection) SetVpnGatewayId(v string) *VpnConnection { + s.VpnGatewayId = &v + return s +} + // Describes VPN connection options. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpnConnectionOptions type VpnConnectionOptions struct { _ struct{} `type:"structure"` @@ -36188,7 +52557,14 @@ func (s VpnConnectionOptions) GoString() string { return s.String() } +// SetStaticRoutesOnly sets the StaticRoutesOnly field's value. +func (s *VpnConnectionOptions) SetStaticRoutesOnly(v bool) *VpnConnectionOptions { + s.StaticRoutesOnly = &v + return s +} + // Describes VPN connection options. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpnConnectionOptionsSpecification type VpnConnectionOptionsSpecification struct { _ struct{} `type:"structure"` @@ -36207,7 +52583,14 @@ func (s VpnConnectionOptionsSpecification) GoString() string { return s.String() } +// SetStaticRoutesOnly sets the StaticRoutesOnly field's value. +func (s *VpnConnectionOptionsSpecification) SetStaticRoutesOnly(v bool) *VpnConnectionOptionsSpecification { + s.StaticRoutesOnly = &v + return s +} + // Describes a virtual private gateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpnGateway type VpnGateway struct { _ struct{} `type:"structure"` @@ -36241,7 +52624,44 @@ func (s VpnGateway) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *VpnGateway) SetAvailabilityZone(v string) *VpnGateway { + s.AvailabilityZone = &v + return s +} + +// SetState sets the State field's value. +func (s *VpnGateway) SetState(v string) *VpnGateway { + s.State = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *VpnGateway) SetTags(v []*Tag) *VpnGateway { + s.Tags = v + return s +} + +// SetType sets the Type field's value. +func (s *VpnGateway) SetType(v string) *VpnGateway { + s.Type = &v + return s +} + +// SetVpcAttachments sets the VpcAttachments field's value. +func (s *VpnGateway) SetVpcAttachments(v []*VpcAttachment) *VpnGateway { + s.VpcAttachments = v + return s +} + +// SetVpnGatewayId sets the VpnGatewayId field's value. +func (s *VpnGateway) SetVpnGatewayId(v string) *VpnGateway { + s.VpnGatewayId = &v + return s +} + // Describes a static route for a VPN connection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpnStaticRoute type VpnStaticRoute struct { _ struct{} `type:"structure"` @@ -36265,6 +52685,24 @@ func (s VpnStaticRoute) GoString() string { return s.String() } +// SetDestinationCidrBlock sets the DestinationCidrBlock field's value. +func (s *VpnStaticRoute) SetDestinationCidrBlock(v string) *VpnStaticRoute { + s.DestinationCidrBlock = &v + return s +} + +// SetSource sets the Source field's value. +func (s *VpnStaticRoute) SetSource(v string) *VpnStaticRoute { + s.Source = &v + return s +} + +// SetState sets the State field's value. +func (s *VpnStaticRoute) SetState(v string) *VpnStaticRoute { + s.State = &v + return s +} + const ( // AccountAttributeNameSupportedPlatforms is a AccountAttributeName enum value AccountAttributeNameSupportedPlatforms = "supported-platforms" @@ -36601,6 +53039,20 @@ const ( HypervisorTypeXen = "xen" ) +const ( + // IamInstanceProfileAssociationStateAssociating is a IamInstanceProfileAssociationState enum value + IamInstanceProfileAssociationStateAssociating = "associating" + + // IamInstanceProfileAssociationStateAssociated is a IamInstanceProfileAssociationState enum value + IamInstanceProfileAssociationStateAssociated = "associated" + + // IamInstanceProfileAssociationStateDisassociating is a IamInstanceProfileAssociationState enum value + IamInstanceProfileAssociationStateDisassociating = "disassociating" + + // IamInstanceProfileAssociationStateDisassociated is a IamInstanceProfileAssociationState enum value + IamInstanceProfileAssociationStateDisassociated = "disassociated" +) + const ( // ImageAttributeNameDescription is a ImageAttributeName enum value ImageAttributeNameDescription = "description" @@ -36702,6 +53154,14 @@ const ( InstanceAttributeNameEnaSupport = "enaSupport" ) +const ( + // InstanceHealthStatusHealthy is a InstanceHealthStatus enum value + InstanceHealthStatusHealthy = "healthy" + + // InstanceHealthStatusUnhealthy is a InstanceHealthStatus enum value + InstanceHealthStatusUnhealthy = "unhealthy" +) + const ( // InstanceLifecycleTypeSpot is a InstanceLifecycleType enum value InstanceLifecycleTypeSpot = "spot" @@ -36749,6 +53209,12 @@ const ( // InstanceTypeT2Large is a InstanceType enum value InstanceTypeT2Large = "t2.large" + // InstanceTypeT2Xlarge is a InstanceType enum value + InstanceTypeT2Xlarge = "t2.xlarge" + + // InstanceTypeT22xlarge is a InstanceType enum value + InstanceTypeT22xlarge = "t2.2xlarge" + // InstanceTypeM1Small is a InstanceType enum value InstanceTypeM1Small = "m1.small" @@ -36818,6 +53284,24 @@ const ( // InstanceTypeR38xlarge is a InstanceType enum value InstanceTypeR38xlarge = "r3.8xlarge" + // InstanceTypeR4Large is a InstanceType enum value + InstanceTypeR4Large = "r4.large" + + // InstanceTypeR4Xlarge is a InstanceType enum value + InstanceTypeR4Xlarge = "r4.xlarge" + + // InstanceTypeR42xlarge is a InstanceType enum value + InstanceTypeR42xlarge = "r4.2xlarge" + + // InstanceTypeR44xlarge is a InstanceType enum value + InstanceTypeR44xlarge = "r4.4xlarge" + + // InstanceTypeR48xlarge is a InstanceType enum value + InstanceTypeR48xlarge = "r4.8xlarge" + + // InstanceTypeR416xlarge is a InstanceType enum value + InstanceTypeR416xlarge = "r4.16xlarge" + // InstanceTypeX116xlarge is a InstanceType enum value InstanceTypeX116xlarge = "x1.16xlarge" @@ -36836,6 +53320,24 @@ const ( // InstanceTypeI28xlarge is a InstanceType enum value InstanceTypeI28xlarge = "i2.8xlarge" + // InstanceTypeI3Large is a InstanceType enum value + InstanceTypeI3Large = "i3.large" + + // InstanceTypeI3Xlarge is a InstanceType enum value + InstanceTypeI3Xlarge = "i3.xlarge" + + // InstanceTypeI32xlarge is a InstanceType enum value + InstanceTypeI32xlarge = "i3.2xlarge" + + // InstanceTypeI34xlarge is a InstanceType enum value + InstanceTypeI34xlarge = "i3.4xlarge" + + // InstanceTypeI38xlarge is a InstanceType enum value + InstanceTypeI38xlarge = "i3.8xlarge" + + // InstanceTypeI316xlarge is a InstanceType enum value + InstanceTypeI316xlarge = "i3.16xlarge" + // InstanceTypeHi14xlarge is a InstanceType enum value InstanceTypeHi14xlarge = "hi1.4xlarge" @@ -36913,6 +53415,12 @@ const ( // InstanceTypeD28xlarge is a InstanceType enum value InstanceTypeD28xlarge = "d2.8xlarge" + + // InstanceTypeF12xlarge is a InstanceType enum value + InstanceTypeF12xlarge = "f1.2xlarge" + + // InstanceTypeF116xlarge is a InstanceType enum value + InstanceTypeF116xlarge = "f1.16xlarge" ) const ( @@ -37367,6 +53875,26 @@ const ( StatusTypeInitializing = "initializing" ) +const ( + // SubnetCidrBlockStateCodeAssociating is a SubnetCidrBlockStateCode enum value + SubnetCidrBlockStateCodeAssociating = "associating" + + // SubnetCidrBlockStateCodeAssociated is a SubnetCidrBlockStateCode enum value + SubnetCidrBlockStateCodeAssociated = "associated" + + // SubnetCidrBlockStateCodeDisassociating is a SubnetCidrBlockStateCode enum value + SubnetCidrBlockStateCodeDisassociating = "disassociating" + + // SubnetCidrBlockStateCodeDisassociated is a SubnetCidrBlockStateCode enum value + SubnetCidrBlockStateCodeDisassociated = "disassociated" + + // SubnetCidrBlockStateCodeFailing is a SubnetCidrBlockStateCode enum value + SubnetCidrBlockStateCodeFailing = "failing" + + // SubnetCidrBlockStateCodeFailed is a SubnetCidrBlockStateCode enum value + SubnetCidrBlockStateCodeFailed = "failed" +) + const ( // SubnetStatePending is a SubnetState enum value SubnetStatePending = "pending" @@ -37452,6 +53980,20 @@ const ( VolumeAttributeNameProductCodes = "productCodes" ) +const ( + // VolumeModificationStateModifying is a VolumeModificationState enum value + VolumeModificationStateModifying = "modifying" + + // VolumeModificationStateOptimizing is a VolumeModificationState enum value + VolumeModificationStateOptimizing = "optimizing" + + // VolumeModificationStateCompleted is a VolumeModificationState enum value + VolumeModificationStateCompleted = "completed" + + // VolumeModificationStateFailed is a VolumeModificationState enum value + VolumeModificationStateFailed = "failed" +) + const ( // VolumeStateCreating is a VolumeState enum value VolumeStateCreating = "creating" @@ -37516,6 +54058,26 @@ const ( VpcAttributeNameEnableDnsHostnames = "enableDnsHostnames" ) +const ( + // VpcCidrBlockStateCodeAssociating is a VpcCidrBlockStateCode enum value + VpcCidrBlockStateCodeAssociating = "associating" + + // VpcCidrBlockStateCodeAssociated is a VpcCidrBlockStateCode enum value + VpcCidrBlockStateCodeAssociated = "associated" + + // VpcCidrBlockStateCodeDisassociating is a VpcCidrBlockStateCode enum value + VpcCidrBlockStateCodeDisassociating = "disassociating" + + // VpcCidrBlockStateCodeDisassociated is a VpcCidrBlockStateCode enum value + VpcCidrBlockStateCodeDisassociated = "disassociated" + + // VpcCidrBlockStateCodeFailing is a VpcCidrBlockStateCode enum value + VpcCidrBlockStateCodeFailing = "failing" + + // VpcCidrBlockStateCodeFailed is a VpcCidrBlockStateCode enum value + VpcCidrBlockStateCodeFailed = "failed" +) + const ( // VpcPeeringConnectionStateReasonCodeInitiatingRequest is a VpcPeeringConnectionStateReasonCode enum value VpcPeeringConnectionStateReasonCodeInitiatingRequest = "initiating-request" diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/customizations.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/customizations.go index 36181d991..36b69ff28 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ec2/customizations.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/customizations.go @@ -5,8 +5,8 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/endpoints" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/endpoints" ) func init() { @@ -39,12 +39,20 @@ func fillPresignedURL(r *request.Request) { WithRegion(aws.StringValue(origParams.SourceRegion))) clientInfo := r.ClientInfo - clientInfo.Endpoint, clientInfo.SigningRegion = endpoints.EndpointForRegion( - clientInfo.ServiceName, - aws.StringValue(cfg.Region), - aws.BoolValue(cfg.DisableSSL), - aws.BoolValue(cfg.UseDualStack), + resolved, err := r.Config.EndpointResolver.EndpointFor( + clientInfo.ServiceName, aws.StringValue(cfg.Region), + func(opt *endpoints.Options) { + opt.DisableSSL = aws.BoolValue(cfg.DisableSSL) + opt.UseDualStack = aws.BoolValue(cfg.UseDualStack) + }, ) + if err != nil { + r.Error = err + return + } + + clientInfo.Endpoint = resolved.URL + clientInfo.SigningRegion = resolved.SigningRegion // Presign a CopySnapshot request with modified params req := request.New(*cfg, clientInfo, r.Handlers, r.Retryer, r.Operation, newParams, r.Data) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/ec2iface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/ec2iface/interface.go index a2bfc329a..8eb9aea99 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ec2/ec2iface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/ec2iface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockEC2Client{} // @@ -75,6 +75,10 @@ type EC2API interface { AllocateHosts(*ec2.AllocateHostsInput) (*ec2.AllocateHostsOutput, error) + AssignIpv6AddressesRequest(*ec2.AssignIpv6AddressesInput) (*request.Request, *ec2.AssignIpv6AddressesOutput) + + AssignIpv6Addresses(*ec2.AssignIpv6AddressesInput) (*ec2.AssignIpv6AddressesOutput, error) + AssignPrivateIpAddressesRequest(*ec2.AssignPrivateIpAddressesInput) (*request.Request, *ec2.AssignPrivateIpAddressesOutput) AssignPrivateIpAddresses(*ec2.AssignPrivateIpAddressesInput) (*ec2.AssignPrivateIpAddressesOutput, error) @@ -87,10 +91,22 @@ type EC2API interface { AssociateDhcpOptions(*ec2.AssociateDhcpOptionsInput) (*ec2.AssociateDhcpOptionsOutput, error) + AssociateIamInstanceProfileRequest(*ec2.AssociateIamInstanceProfileInput) (*request.Request, *ec2.AssociateIamInstanceProfileOutput) + + AssociateIamInstanceProfile(*ec2.AssociateIamInstanceProfileInput) (*ec2.AssociateIamInstanceProfileOutput, error) + AssociateRouteTableRequest(*ec2.AssociateRouteTableInput) (*request.Request, *ec2.AssociateRouteTableOutput) AssociateRouteTable(*ec2.AssociateRouteTableInput) (*ec2.AssociateRouteTableOutput, error) + AssociateSubnetCidrBlockRequest(*ec2.AssociateSubnetCidrBlockInput) (*request.Request, *ec2.AssociateSubnetCidrBlockOutput) + + AssociateSubnetCidrBlock(*ec2.AssociateSubnetCidrBlockInput) (*ec2.AssociateSubnetCidrBlockOutput, error) + + AssociateVpcCidrBlockRequest(*ec2.AssociateVpcCidrBlockInput) (*request.Request, *ec2.AssociateVpcCidrBlockOutput) + + AssociateVpcCidrBlock(*ec2.AssociateVpcCidrBlockInput) (*ec2.AssociateVpcCidrBlockOutput, error) + AttachClassicLinkVpcRequest(*ec2.AttachClassicLinkVpcInput) (*request.Request, *ec2.AttachClassicLinkVpcOutput) AttachClassicLinkVpc(*ec2.AttachClassicLinkVpcInput) (*ec2.AttachClassicLinkVpcOutput, error) @@ -171,6 +187,10 @@ type EC2API interface { CreateDhcpOptions(*ec2.CreateDhcpOptionsInput) (*ec2.CreateDhcpOptionsOutput, error) + CreateEgressOnlyInternetGatewayRequest(*ec2.CreateEgressOnlyInternetGatewayInput) (*request.Request, *ec2.CreateEgressOnlyInternetGatewayOutput) + + CreateEgressOnlyInternetGateway(*ec2.CreateEgressOnlyInternetGatewayInput) (*ec2.CreateEgressOnlyInternetGatewayOutput, error) + CreateFlowLogsRequest(*ec2.CreateFlowLogsInput) (*request.Request, *ec2.CreateFlowLogsOutput) CreateFlowLogs(*ec2.CreateFlowLogsInput) (*ec2.CreateFlowLogsOutput, error) @@ -279,6 +299,10 @@ type EC2API interface { DeleteDhcpOptions(*ec2.DeleteDhcpOptionsInput) (*ec2.DeleteDhcpOptionsOutput, error) + DeleteEgressOnlyInternetGatewayRequest(*ec2.DeleteEgressOnlyInternetGatewayInput) (*request.Request, *ec2.DeleteEgressOnlyInternetGatewayOutput) + + DeleteEgressOnlyInternetGateway(*ec2.DeleteEgressOnlyInternetGatewayInput) (*ec2.DeleteEgressOnlyInternetGatewayOutput, error) + DeleteFlowLogsRequest(*ec2.DeleteFlowLogsInput) (*request.Request, *ec2.DeleteFlowLogsOutput) DeleteFlowLogs(*ec2.DeleteFlowLogsInput) (*ec2.DeleteFlowLogsOutput, error) @@ -403,6 +427,10 @@ type EC2API interface { DescribeDhcpOptions(*ec2.DescribeDhcpOptionsInput) (*ec2.DescribeDhcpOptionsOutput, error) + DescribeEgressOnlyInternetGatewaysRequest(*ec2.DescribeEgressOnlyInternetGatewaysInput) (*request.Request, *ec2.DescribeEgressOnlyInternetGatewaysOutput) + + DescribeEgressOnlyInternetGateways(*ec2.DescribeEgressOnlyInternetGatewaysInput) (*ec2.DescribeEgressOnlyInternetGatewaysOutput, error) + DescribeExportTasksRequest(*ec2.DescribeExportTasksInput) (*request.Request, *ec2.DescribeExportTasksOutput) DescribeExportTasks(*ec2.DescribeExportTasksInput) (*ec2.DescribeExportTasksOutput, error) @@ -423,6 +451,10 @@ type EC2API interface { DescribeHosts(*ec2.DescribeHostsInput) (*ec2.DescribeHostsOutput, error) + DescribeIamInstanceProfileAssociationsRequest(*ec2.DescribeIamInstanceProfileAssociationsInput) (*request.Request, *ec2.DescribeIamInstanceProfileAssociationsOutput) + + DescribeIamInstanceProfileAssociations(*ec2.DescribeIamInstanceProfileAssociationsInput) (*ec2.DescribeIamInstanceProfileAssociationsOutput, error) + DescribeIdFormatRequest(*ec2.DescribeIdFormatInput) (*request.Request, *ec2.DescribeIdFormatOutput) DescribeIdFormat(*ec2.DescribeIdFormatInput) (*ec2.DescribeIdFormatOutput, error) @@ -479,6 +511,8 @@ type EC2API interface { DescribeNatGateways(*ec2.DescribeNatGatewaysInput) (*ec2.DescribeNatGatewaysOutput, error) + DescribeNatGatewaysPages(*ec2.DescribeNatGatewaysInput, func(*ec2.DescribeNatGatewaysOutput, bool) bool) error + DescribeNetworkAclsRequest(*ec2.DescribeNetworkAclsInput) (*request.Request, *ec2.DescribeNetworkAclsOutput) DescribeNetworkAcls(*ec2.DescribeNetworkAclsInput) (*ec2.DescribeNetworkAclsOutput, error) @@ -611,6 +645,10 @@ type EC2API interface { DescribeVolumesPages(*ec2.DescribeVolumesInput, func(*ec2.DescribeVolumesOutput, bool) bool) error + DescribeVolumesModificationsRequest(*ec2.DescribeVolumesModificationsInput) (*request.Request, *ec2.DescribeVolumesModificationsOutput) + + DescribeVolumesModifications(*ec2.DescribeVolumesModificationsInput) (*ec2.DescribeVolumesModificationsOutput, error) + DescribeVpcAttributeRequest(*ec2.DescribeVpcAttributeInput) (*request.Request, *ec2.DescribeVpcAttributeOutput) DescribeVpcAttribute(*ec2.DescribeVpcAttributeInput) (*ec2.DescribeVpcAttributeOutput, error) @@ -683,10 +721,22 @@ type EC2API interface { DisassociateAddress(*ec2.DisassociateAddressInput) (*ec2.DisassociateAddressOutput, error) + DisassociateIamInstanceProfileRequest(*ec2.DisassociateIamInstanceProfileInput) (*request.Request, *ec2.DisassociateIamInstanceProfileOutput) + + DisassociateIamInstanceProfile(*ec2.DisassociateIamInstanceProfileInput) (*ec2.DisassociateIamInstanceProfileOutput, error) + DisassociateRouteTableRequest(*ec2.DisassociateRouteTableInput) (*request.Request, *ec2.DisassociateRouteTableOutput) DisassociateRouteTable(*ec2.DisassociateRouteTableInput) (*ec2.DisassociateRouteTableOutput, error) + DisassociateSubnetCidrBlockRequest(*ec2.DisassociateSubnetCidrBlockInput) (*request.Request, *ec2.DisassociateSubnetCidrBlockOutput) + + DisassociateSubnetCidrBlock(*ec2.DisassociateSubnetCidrBlockInput) (*ec2.DisassociateSubnetCidrBlockOutput, error) + + DisassociateVpcCidrBlockRequest(*ec2.DisassociateVpcCidrBlockInput) (*request.Request, *ec2.DisassociateVpcCidrBlockOutput) + + DisassociateVpcCidrBlock(*ec2.DisassociateVpcCidrBlockInput) (*ec2.DisassociateVpcCidrBlockOutput, error) + EnableVgwRoutePropagationRequest(*ec2.EnableVgwRoutePropagationInput) (*request.Request, *ec2.EnableVgwRoutePropagationOutput) EnableVgwRoutePropagation(*ec2.EnableVgwRoutePropagationInput) (*ec2.EnableVgwRoutePropagationOutput, error) @@ -787,6 +837,10 @@ type EC2API interface { ModifySubnetAttribute(*ec2.ModifySubnetAttributeInput) (*ec2.ModifySubnetAttributeOutput, error) + ModifyVolumeRequest(*ec2.ModifyVolumeInput) (*request.Request, *ec2.ModifyVolumeOutput) + + ModifyVolume(*ec2.ModifyVolumeInput) (*ec2.ModifyVolumeOutput, error) + ModifyVolumeAttributeRequest(*ec2.ModifyVolumeAttributeInput) (*request.Request, *ec2.ModifyVolumeAttributeOutput) ModifyVolumeAttribute(*ec2.ModifyVolumeAttributeInput) (*ec2.ModifyVolumeAttributeOutput, error) @@ -843,6 +897,10 @@ type EC2API interface { ReleaseHosts(*ec2.ReleaseHostsInput) (*ec2.ReleaseHostsOutput, error) + ReplaceIamInstanceProfileAssociationRequest(*ec2.ReplaceIamInstanceProfileAssociationInput) (*request.Request, *ec2.ReplaceIamInstanceProfileAssociationOutput) + + ReplaceIamInstanceProfileAssociation(*ec2.ReplaceIamInstanceProfileAssociationInput) (*ec2.ReplaceIamInstanceProfileAssociationOutput, error) + ReplaceNetworkAclAssociationRequest(*ec2.ReplaceNetworkAclAssociationInput) (*request.Request, *ec2.ReplaceNetworkAclAssociationOutput) ReplaceNetworkAclAssociation(*ec2.ReplaceNetworkAclAssociationInput) (*ec2.ReplaceNetworkAclAssociationOutput, error) @@ -919,6 +977,10 @@ type EC2API interface { TerminateInstances(*ec2.TerminateInstancesInput) (*ec2.TerminateInstancesOutput, error) + UnassignIpv6AddressesRequest(*ec2.UnassignIpv6AddressesInput) (*request.Request, *ec2.UnassignIpv6AddressesOutput) + + UnassignIpv6Addresses(*ec2.UnassignIpv6AddressesInput) (*ec2.UnassignIpv6AddressesOutput, error) + UnassignPrivateIpAddressesRequest(*ec2.UnassignPrivateIpAddressesInput) (*request.Request, *ec2.UnassignPrivateIpAddressesOutput) UnassignPrivateIpAddresses(*ec2.UnassignPrivateIpAddressesInput) (*ec2.UnassignPrivateIpAddressesOutput, error) @@ -981,6 +1043,8 @@ type EC2API interface { WaitUntilVpcExists(*ec2.DescribeVpcsInput) error + WaitUntilVpcPeeringConnectionDeleted(*ec2.DescribeVpcPeeringConnectionsInput) error + WaitUntilVpcPeeringConnectionExists(*ec2.DescribeVpcPeeringConnectionsInput) error WaitUntilVpnConnectionAvailable(*ec2.DescribeVpnConnectionsInput) error diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/errors.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/errors.go new file mode 100644 index 000000000..f90fa6ec5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/errors.go @@ -0,0 +1,3 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package ec2 diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/examples_test.go index f48a84516..e20904414 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ec2/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleEC2_AcceptReservedInstancesExchangeQuote() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -52,11 +48,7 @@ func ExampleEC2_AcceptReservedInstancesExchangeQuote() { } func ExampleEC2_AcceptVpcPeeringConnection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -78,11 +70,7 @@ func ExampleEC2_AcceptVpcPeeringConnection() { } func ExampleEC2_AllocateAddress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -104,11 +92,7 @@ func ExampleEC2_AllocateAddress() { } func ExampleEC2_AllocateHosts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -132,13 +116,35 @@ func ExampleEC2_AllocateHosts() { fmt.Println(resp) } -func ExampleEC2_AssignPrivateIpAddresses() { - sess, err := session.NewSession() +func ExampleEC2_AssignIpv6Addresses() { + sess := session.Must(session.NewSession()) + + svc := ec2.New(sess) + + params := &ec2.AssignIpv6AddressesInput{ + NetworkInterfaceId: aws.String("String"), // Required + Ipv6AddressCount: aws.Int64(1), + Ipv6Addresses: []*string{ + aws.String("String"), // Required + // More values... + }, + } + resp, err := svc.AssignIpv6Addresses(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEC2_AssignPrivateIpAddresses() { + sess := session.Must(session.NewSession()) + svc := ec2.New(sess) params := &ec2.AssignPrivateIpAddressesInput{ @@ -164,11 +170,7 @@ func ExampleEC2_AssignPrivateIpAddresses() { } func ExampleEC2_AssociateAddress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -195,11 +197,7 @@ func ExampleEC2_AssociateAddress() { } func ExampleEC2_AssociateDhcpOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -221,13 +219,34 @@ func ExampleEC2_AssociateDhcpOptions() { fmt.Println(resp) } -func ExampleEC2_AssociateRouteTable() { - sess, err := session.NewSession() +func ExampleEC2_AssociateIamInstanceProfile() { + sess := session.Must(session.NewSession()) + + svc := ec2.New(sess) + + params := &ec2.AssociateIamInstanceProfileInput{ + IamInstanceProfile: &ec2.IamInstanceProfileSpecification{ // Required + Arn: aws.String("String"), + Name: aws.String("String"), + }, + InstanceId: aws.String("String"), // Required + } + resp, err := svc.AssociateIamInstanceProfile(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEC2_AssociateRouteTable() { + sess := session.Must(session.NewSession()) + svc := ec2.New(sess) params := &ec2.AssociateRouteTableInput{ @@ -248,13 +267,53 @@ func ExampleEC2_AssociateRouteTable() { fmt.Println(resp) } -func ExampleEC2_AttachClassicLinkVpc() { - sess, err := session.NewSession() +func ExampleEC2_AssociateSubnetCidrBlock() { + sess := session.Must(session.NewSession()) + + svc := ec2.New(sess) + + params := &ec2.AssociateSubnetCidrBlockInput{ + Ipv6CidrBlock: aws.String("String"), // Required + SubnetId: aws.String("String"), // Required + } + resp, err := svc.AssociateSubnetCidrBlock(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEC2_AssociateVpcCidrBlock() { + sess := session.Must(session.NewSession()) + + svc := ec2.New(sess) + + params := &ec2.AssociateVpcCidrBlockInput{ + VpcId: aws.String("String"), // Required + AmazonProvidedIpv6CidrBlock: aws.Bool(true), + } + resp, err := svc.AssociateVpcCidrBlock(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEC2_AttachClassicLinkVpc() { + sess := session.Must(session.NewSession()) + svc := ec2.New(sess) params := &ec2.AttachClassicLinkVpcInput{ @@ -280,11 +339,7 @@ func ExampleEC2_AttachClassicLinkVpc() { } func ExampleEC2_AttachInternetGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -307,11 +362,7 @@ func ExampleEC2_AttachInternetGateway() { } func ExampleEC2_AttachNetworkInterface() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -335,11 +386,7 @@ func ExampleEC2_AttachNetworkInterface() { } func ExampleEC2_AttachVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -363,11 +410,7 @@ func ExampleEC2_AttachVolume() { } func ExampleEC2_AttachVpnGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -390,11 +433,7 @@ func ExampleEC2_AttachVpnGateway() { } func ExampleEC2_AuthorizeSecurityGroupEgress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -413,6 +452,12 @@ func ExampleEC2_AuthorizeSecurityGroupEgress() { }, // More values... }, + Ipv6Ranges: []*ec2.Ipv6Range{ + { // Required + CidrIpv6: aws.String("String"), + }, + // More values... + }, PrefixListIds: []*ec2.PrefixListId{ { // Required PrefixListId: aws.String("String"), @@ -453,11 +498,7 @@ func ExampleEC2_AuthorizeSecurityGroupEgress() { } func ExampleEC2_AuthorizeSecurityGroupIngress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -477,6 +518,12 @@ func ExampleEC2_AuthorizeSecurityGroupIngress() { }, // More values... }, + Ipv6Ranges: []*ec2.Ipv6Range{ + { // Required + CidrIpv6: aws.String("String"), + }, + // More values... + }, PrefixListIds: []*ec2.PrefixListId{ { // Required PrefixListId: aws.String("String"), @@ -517,11 +564,7 @@ func ExampleEC2_AuthorizeSecurityGroupIngress() { } func ExampleEC2_BundleInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -552,11 +595,7 @@ func ExampleEC2_BundleInstance() { } func ExampleEC2_CancelBundleTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -578,11 +617,7 @@ func ExampleEC2_CancelBundleTask() { } func ExampleEC2_CancelConversionTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -605,11 +640,7 @@ func ExampleEC2_CancelConversionTask() { } func ExampleEC2_CancelExportTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -630,11 +661,7 @@ func ExampleEC2_CancelExportTask() { } func ExampleEC2_CancelImportTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -657,11 +684,7 @@ func ExampleEC2_CancelImportTask() { } func ExampleEC2_CancelReservedInstancesListing() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -682,11 +705,7 @@ func ExampleEC2_CancelReservedInstancesListing() { } func ExampleEC2_CancelSpotFleetRequests() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -712,11 +731,7 @@ func ExampleEC2_CancelSpotFleetRequests() { } func ExampleEC2_CancelSpotInstanceRequests() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -741,11 +756,7 @@ func ExampleEC2_CancelSpotInstanceRequests() { } func ExampleEC2_ConfirmProductInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -768,11 +779,7 @@ func ExampleEC2_ConfirmProductInstance() { } func ExampleEC2_CopyImage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -800,11 +807,7 @@ func ExampleEC2_CopyImage() { } func ExampleEC2_CopySnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -832,11 +835,7 @@ func ExampleEC2_CopySnapshot() { } func ExampleEC2_CreateCustomerGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -860,11 +859,7 @@ func ExampleEC2_CreateCustomerGateway() { } func ExampleEC2_CreateDhcpOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -894,13 +889,32 @@ func ExampleEC2_CreateDhcpOptions() { fmt.Println(resp) } -func ExampleEC2_CreateFlowLogs() { - sess, err := session.NewSession() +func ExampleEC2_CreateEgressOnlyInternetGateway() { + sess := session.Must(session.NewSession()) + + svc := ec2.New(sess) + + params := &ec2.CreateEgressOnlyInternetGatewayInput{ + VpcId: aws.String("String"), // Required + ClientToken: aws.String("String"), + DryRun: aws.Bool(true), + } + resp, err := svc.CreateEgressOnlyInternetGateway(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEC2_CreateFlowLogs() { + sess := session.Must(session.NewSession()) + svc := ec2.New(sess) params := &ec2.CreateFlowLogsInput{ @@ -928,11 +942,7 @@ func ExampleEC2_CreateFlowLogs() { } func ExampleEC2_CreateImage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -973,11 +983,7 @@ func ExampleEC2_CreateImage() { } func ExampleEC2_CreateInstanceExportTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1006,11 +1012,7 @@ func ExampleEC2_CreateInstanceExportTask() { } func ExampleEC2_CreateInternetGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1031,11 +1033,7 @@ func ExampleEC2_CreateInternetGateway() { } func ExampleEC2_CreateKeyPair() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1057,11 +1055,7 @@ func ExampleEC2_CreateKeyPair() { } func ExampleEC2_CreateNatGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1084,11 +1078,7 @@ func ExampleEC2_CreateNatGateway() { } func ExampleEC2_CreateNetworkAcl() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1110,26 +1100,23 @@ func ExampleEC2_CreateNetworkAcl() { } func ExampleEC2_CreateNetworkAclEntry() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) params := &ec2.CreateNetworkAclEntryInput{ - CidrBlock: aws.String("String"), // Required Egress: aws.Bool(true), // Required NetworkAclId: aws.String("String"), // Required Protocol: aws.String("String"), // Required RuleAction: aws.String("RuleAction"), // Required RuleNumber: aws.Int64(1), // Required + CidrBlock: aws.String("String"), DryRun: aws.Bool(true), IcmpTypeCode: &ec2.IcmpTypeCode{ Code: aws.Int64(1), Type: aws.Int64(1), }, + Ipv6CidrBlock: aws.String("String"), PortRange: &ec2.PortRange{ From: aws.Int64(1), To: aws.Int64(1), @@ -1149,11 +1136,7 @@ func ExampleEC2_CreateNetworkAclEntry() { } func ExampleEC2_CreateNetworkInterface() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1165,6 +1148,13 @@ func ExampleEC2_CreateNetworkInterface() { aws.String("String"), // Required // More values... }, + Ipv6AddressCount: aws.Int64(1), + Ipv6Addresses: []*ec2.InstanceIpv6Address{ + { // Required + Ipv6Address: aws.String("String"), + }, + // More values... + }, PrivateIpAddress: aws.String("String"), PrivateIpAddresses: []*ec2.PrivateIpAddressSpecification{ { // Required @@ -1189,11 +1179,7 @@ func ExampleEC2_CreateNetworkInterface() { } func ExampleEC2_CreatePlacementGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1216,11 +1202,7 @@ func ExampleEC2_CreatePlacementGroup() { } func ExampleEC2_CreateReservedInstancesListing() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1251,23 +1233,21 @@ func ExampleEC2_CreateReservedInstancesListing() { } func ExampleEC2_CreateRoute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) params := &ec2.CreateRouteInput{ - DestinationCidrBlock: aws.String("String"), // Required - RouteTableId: aws.String("String"), // Required - DryRun: aws.Bool(true), - GatewayId: aws.String("String"), - InstanceId: aws.String("String"), - NatGatewayId: aws.String("String"), - NetworkInterfaceId: aws.String("String"), - VpcPeeringConnectionId: aws.String("String"), + RouteTableId: aws.String("String"), // Required + DestinationCidrBlock: aws.String("String"), + DestinationIpv6CidrBlock: aws.String("String"), + DryRun: aws.Bool(true), + EgressOnlyInternetGatewayId: aws.String("String"), + GatewayId: aws.String("String"), + InstanceId: aws.String("String"), + NatGatewayId: aws.String("String"), + NetworkInterfaceId: aws.String("String"), + VpcPeeringConnectionId: aws.String("String"), } resp, err := svc.CreateRoute(params) @@ -1283,11 +1263,7 @@ func ExampleEC2_CreateRoute() { } func ExampleEC2_CreateRouteTable() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1309,11 +1285,7 @@ func ExampleEC2_CreateRouteTable() { } func ExampleEC2_CreateSecurityGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1337,11 +1309,7 @@ func ExampleEC2_CreateSecurityGroup() { } func ExampleEC2_CreateSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1364,11 +1332,7 @@ func ExampleEC2_CreateSnapshot() { } func ExampleEC2_CreateSpotDatafeedSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1391,11 +1355,7 @@ func ExampleEC2_CreateSpotDatafeedSubscription() { } func ExampleEC2_CreateSubnet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1404,6 +1364,7 @@ func ExampleEC2_CreateSubnet() { VpcId: aws.String("String"), // Required AvailabilityZone: aws.String("String"), DryRun: aws.Bool(true), + Ipv6CidrBlock: aws.String("String"), } resp, err := svc.CreateSubnet(params) @@ -1419,11 +1380,7 @@ func ExampleEC2_CreateSubnet() { } func ExampleEC2_CreateTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1455,11 +1412,7 @@ func ExampleEC2_CreateTags() { } func ExampleEC2_CreateVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1487,16 +1440,13 @@ func ExampleEC2_CreateVolume() { } func ExampleEC2_CreateVpc() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) params := &ec2.CreateVpcInput{ - CidrBlock: aws.String("String"), // Required + CidrBlock: aws.String("String"), // Required + AmazonProvidedIpv6CidrBlock: aws.Bool(true), DryRun: aws.Bool(true), InstanceTenancy: aws.String("Tenancy"), } @@ -1514,11 +1464,7 @@ func ExampleEC2_CreateVpc() { } func ExampleEC2_CreateVpcEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1547,11 +1493,7 @@ func ExampleEC2_CreateVpcEndpoint() { } func ExampleEC2_CreateVpcPeeringConnection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1575,11 +1517,7 @@ func ExampleEC2_CreateVpcPeeringConnection() { } func ExampleEC2_CreateVpnConnection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1606,11 +1544,7 @@ func ExampleEC2_CreateVpnConnection() { } func ExampleEC2_CreateVpnConnectionRoute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1632,11 +1566,7 @@ func ExampleEC2_CreateVpnConnectionRoute() { } func ExampleEC2_CreateVpnGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1659,11 +1589,7 @@ func ExampleEC2_CreateVpnGateway() { } func ExampleEC2_DeleteCustomerGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1685,11 +1611,7 @@ func ExampleEC2_DeleteCustomerGateway() { } func ExampleEC2_DeleteDhcpOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1710,13 +1632,31 @@ func ExampleEC2_DeleteDhcpOptions() { fmt.Println(resp) } -func ExampleEC2_DeleteFlowLogs() { - sess, err := session.NewSession() +func ExampleEC2_DeleteEgressOnlyInternetGateway() { + sess := session.Must(session.NewSession()) + + svc := ec2.New(sess) + + params := &ec2.DeleteEgressOnlyInternetGatewayInput{ + EgressOnlyInternetGatewayId: aws.String("EgressOnlyInternetGatewayId"), // Required + DryRun: aws.Bool(true), + } + resp, err := svc.DeleteEgressOnlyInternetGateway(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEC2_DeleteFlowLogs() { + sess := session.Must(session.NewSession()) + svc := ec2.New(sess) params := &ec2.DeleteFlowLogsInput{ @@ -1739,11 +1679,7 @@ func ExampleEC2_DeleteFlowLogs() { } func ExampleEC2_DeleteInternetGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1765,11 +1701,7 @@ func ExampleEC2_DeleteInternetGateway() { } func ExampleEC2_DeleteKeyPair() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1791,11 +1723,7 @@ func ExampleEC2_DeleteKeyPair() { } func ExampleEC2_DeleteNatGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1816,11 +1744,7 @@ func ExampleEC2_DeleteNatGateway() { } func ExampleEC2_DeleteNetworkAcl() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1842,11 +1766,7 @@ func ExampleEC2_DeleteNetworkAcl() { } func ExampleEC2_DeleteNetworkAclEntry() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1870,11 +1790,7 @@ func ExampleEC2_DeleteNetworkAclEntry() { } func ExampleEC2_DeleteNetworkInterface() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1896,11 +1812,7 @@ func ExampleEC2_DeleteNetworkInterface() { } func ExampleEC2_DeletePlacementGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1922,18 +1834,15 @@ func ExampleEC2_DeletePlacementGroup() { } func ExampleEC2_DeleteRoute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) params := &ec2.DeleteRouteInput{ - DestinationCidrBlock: aws.String("String"), // Required - RouteTableId: aws.String("String"), // Required - DryRun: aws.Bool(true), + RouteTableId: aws.String("String"), // Required + DestinationCidrBlock: aws.String("String"), + DestinationIpv6CidrBlock: aws.String("String"), + DryRun: aws.Bool(true), } resp, err := svc.DeleteRoute(params) @@ -1949,11 +1858,7 @@ func ExampleEC2_DeleteRoute() { } func ExampleEC2_DeleteRouteTable() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -1975,11 +1880,7 @@ func ExampleEC2_DeleteRouteTable() { } func ExampleEC2_DeleteSecurityGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2002,11 +1903,7 @@ func ExampleEC2_DeleteSecurityGroup() { } func ExampleEC2_DeleteSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2028,11 +1925,7 @@ func ExampleEC2_DeleteSnapshot() { } func ExampleEC2_DeleteSpotDatafeedSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2053,11 +1946,7 @@ func ExampleEC2_DeleteSpotDatafeedSubscription() { } func ExampleEC2_DeleteSubnet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2079,11 +1968,7 @@ func ExampleEC2_DeleteSubnet() { } func ExampleEC2_DeleteTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2115,11 +2000,7 @@ func ExampleEC2_DeleteTags() { } func ExampleEC2_DeleteVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2141,11 +2022,7 @@ func ExampleEC2_DeleteVolume() { } func ExampleEC2_DeleteVpc() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2167,11 +2044,7 @@ func ExampleEC2_DeleteVpc() { } func ExampleEC2_DeleteVpcEndpoints() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2196,11 +2069,7 @@ func ExampleEC2_DeleteVpcEndpoints() { } func ExampleEC2_DeleteVpcPeeringConnection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2222,11 +2091,7 @@ func ExampleEC2_DeleteVpcPeeringConnection() { } func ExampleEC2_DeleteVpnConnection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2248,11 +2113,7 @@ func ExampleEC2_DeleteVpnConnection() { } func ExampleEC2_DeleteVpnConnectionRoute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2274,11 +2135,7 @@ func ExampleEC2_DeleteVpnConnectionRoute() { } func ExampleEC2_DeleteVpnGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2300,11 +2157,7 @@ func ExampleEC2_DeleteVpnGateway() { } func ExampleEC2_DeregisterImage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2326,11 +2179,7 @@ func ExampleEC2_DeregisterImage() { } func ExampleEC2_DescribeAccountAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2355,11 +2204,7 @@ func ExampleEC2_DescribeAccountAttributes() { } func ExampleEC2_DescribeAddresses() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2398,11 +2243,7 @@ func ExampleEC2_DescribeAddresses() { } func ExampleEC2_DescribeAvailabilityZones() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2437,11 +2278,7 @@ func ExampleEC2_DescribeAvailabilityZones() { } func ExampleEC2_DescribeBundleTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2476,11 +2313,7 @@ func ExampleEC2_DescribeBundleTasks() { } func ExampleEC2_DescribeClassicLinkInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2517,11 +2350,7 @@ func ExampleEC2_DescribeClassicLinkInstances() { } func ExampleEC2_DescribeConversionTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2546,11 +2375,7 @@ func ExampleEC2_DescribeConversionTasks() { } func ExampleEC2_DescribeCustomerGateways() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2585,11 +2410,7 @@ func ExampleEC2_DescribeCustomerGateways() { } func ExampleEC2_DescribeDhcpOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2623,13 +2444,36 @@ func ExampleEC2_DescribeDhcpOptions() { fmt.Println(resp) } -func ExampleEC2_DescribeExportTasks() { - sess, err := session.NewSession() +func ExampleEC2_DescribeEgressOnlyInternetGateways() { + sess := session.Must(session.NewSession()) + + svc := ec2.New(sess) + + params := &ec2.DescribeEgressOnlyInternetGatewaysInput{ + DryRun: aws.Bool(true), + EgressOnlyInternetGatewayIds: []*string{ + aws.String("EgressOnlyInternetGatewayId"), // Required + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("String"), + } + resp, err := svc.DescribeEgressOnlyInternetGateways(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEC2_DescribeExportTasks() { + sess := session.Must(session.NewSession()) + svc := ec2.New(sess) params := &ec2.DescribeExportTasksInput{ @@ -2652,11 +2496,7 @@ func ExampleEC2_DescribeExportTasks() { } func ExampleEC2_DescribeFlowLogs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2692,11 +2532,7 @@ func ExampleEC2_DescribeFlowLogs() { } func ExampleEC2_DescribeHostReservationOfferings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2731,11 +2567,7 @@ func ExampleEC2_DescribeHostReservationOfferings() { } func ExampleEC2_DescribeHostReservations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2771,11 +2603,7 @@ func ExampleEC2_DescribeHostReservations() { } func ExampleEC2_DescribeHosts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2810,13 +2638,45 @@ func ExampleEC2_DescribeHosts() { fmt.Println(resp) } -func ExampleEC2_DescribeIdFormat() { - sess, err := session.NewSession() +func ExampleEC2_DescribeIamInstanceProfileAssociations() { + sess := session.Must(session.NewSession()) + + svc := ec2.New(sess) + + params := &ec2.DescribeIamInstanceProfileAssociationsInput{ + AssociationIds: []*string{ + aws.String("String"), // Required + // More values... + }, + Filters: []*ec2.Filter{ + { // Required + Name: aws.String("String"), + Values: []*string{ + aws.String("String"), // Required + // More values... + }, + }, + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.DescribeIamInstanceProfileAssociations(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEC2_DescribeIdFormat() { + sess := session.Must(session.NewSession()) + svc := ec2.New(sess) params := &ec2.DescribeIdFormatInput{ @@ -2836,11 +2696,7 @@ func ExampleEC2_DescribeIdFormat() { } func ExampleEC2_DescribeIdentityIdFormat() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2862,11 +2718,7 @@ func ExampleEC2_DescribeIdentityIdFormat() { } func ExampleEC2_DescribeImageAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2888,13 +2740,9 @@ func ExampleEC2_DescribeImageAttribute() { fmt.Println(resp) } -func ExampleEC2_DescribeImages() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } - +func ExampleEC2_DescribeImages() { + sess := session.Must(session.NewSession()) + svc := ec2.New(sess) params := &ec2.DescribeImagesInput{ @@ -2936,11 +2784,7 @@ func ExampleEC2_DescribeImages() { } func ExampleEC2_DescribeImportImageTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -2977,11 +2821,7 @@ func ExampleEC2_DescribeImportImageTasks() { } func ExampleEC2_DescribeImportSnapshotTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3018,11 +2858,7 @@ func ExampleEC2_DescribeImportSnapshotTasks() { } func ExampleEC2_DescribeInstanceAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3045,11 +2881,7 @@ func ExampleEC2_DescribeInstanceAttribute() { } func ExampleEC2_DescribeInstanceStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3087,11 +2919,7 @@ func ExampleEC2_DescribeInstanceStatus() { } func ExampleEC2_DescribeInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3128,11 +2956,7 @@ func ExampleEC2_DescribeInstances() { } func ExampleEC2_DescribeInternetGateways() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3167,11 +2991,7 @@ func ExampleEC2_DescribeInternetGateways() { } func ExampleEC2_DescribeKeyPairs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3206,11 +3026,7 @@ func ExampleEC2_DescribeKeyPairs() { } func ExampleEC2_DescribeMovingAddresses() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3247,11 +3063,7 @@ func ExampleEC2_DescribeMovingAddresses() { } func ExampleEC2_DescribeNatGateways() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3287,11 +3099,7 @@ func ExampleEC2_DescribeNatGateways() { } func ExampleEC2_DescribeNetworkAcls() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3326,11 +3134,7 @@ func ExampleEC2_DescribeNetworkAcls() { } func ExampleEC2_DescribeNetworkInterfaceAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3353,11 +3157,7 @@ func ExampleEC2_DescribeNetworkInterfaceAttribute() { } func ExampleEC2_DescribeNetworkInterfaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3392,11 +3192,7 @@ func ExampleEC2_DescribeNetworkInterfaces() { } func ExampleEC2_DescribePlacementGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3431,11 +3227,7 @@ func ExampleEC2_DescribePlacementGroups() { } func ExampleEC2_DescribePrefixLists() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3472,11 +3264,7 @@ func ExampleEC2_DescribePrefixLists() { } func ExampleEC2_DescribeRegions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3511,11 +3299,7 @@ func ExampleEC2_DescribeRegions() { } func ExampleEC2_DescribeReservedInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3552,11 +3336,7 @@ func ExampleEC2_DescribeReservedInstances() { } func ExampleEC2_DescribeReservedInstancesListings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3588,11 +3368,7 @@ func ExampleEC2_DescribeReservedInstancesListings() { } func ExampleEC2_DescribeReservedInstancesModifications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3627,11 +3403,7 @@ func ExampleEC2_DescribeReservedInstancesModifications() { } func ExampleEC2_DescribeReservedInstancesOfferings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3678,11 +3450,7 @@ func ExampleEC2_DescribeReservedInstancesOfferings() { } func ExampleEC2_DescribeRouteTables() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3717,11 +3485,7 @@ func ExampleEC2_DescribeRouteTables() { } func ExampleEC2_DescribeScheduledInstanceAvailability() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3770,11 +3534,7 @@ func ExampleEC2_DescribeScheduledInstanceAvailability() { } func ExampleEC2_DescribeScheduledInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3815,11 +3575,7 @@ func ExampleEC2_DescribeScheduledInstances() { } func ExampleEC2_DescribeSecurityGroupReferences() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3844,11 +3600,7 @@ func ExampleEC2_DescribeSecurityGroupReferences() { } func ExampleEC2_DescribeSecurityGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3887,11 +3639,7 @@ func ExampleEC2_DescribeSecurityGroups() { } func ExampleEC2_DescribeSnapshotAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3914,11 +3662,7 @@ func ExampleEC2_DescribeSnapshotAttribute() { } func ExampleEC2_DescribeSnapshots() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3963,11 +3707,7 @@ func ExampleEC2_DescribeSnapshots() { } func ExampleEC2_DescribeSpotDatafeedSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -3988,11 +3728,7 @@ func ExampleEC2_DescribeSpotDatafeedSubscription() { } func ExampleEC2_DescribeSpotFleetInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4016,11 +3752,7 @@ func ExampleEC2_DescribeSpotFleetInstances() { } func ExampleEC2_DescribeSpotFleetRequestHistory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4046,11 +3778,7 @@ func ExampleEC2_DescribeSpotFleetRequestHistory() { } func ExampleEC2_DescribeSpotFleetRequests() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4077,11 +3805,7 @@ func ExampleEC2_DescribeSpotFleetRequests() { } func ExampleEC2_DescribeSpotInstanceRequests() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4116,11 +3840,7 @@ func ExampleEC2_DescribeSpotInstanceRequests() { } func ExampleEC2_DescribeSpotPriceHistory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4164,11 +3884,7 @@ func ExampleEC2_DescribeSpotPriceHistory() { } func ExampleEC2_DescribeStaleSecurityGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4192,11 +3908,7 @@ func ExampleEC2_DescribeStaleSecurityGroups() { } func ExampleEC2_DescribeSubnets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4231,11 +3943,7 @@ func ExampleEC2_DescribeSubnets() { } func ExampleEC2_DescribeTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4268,11 +3976,7 @@ func ExampleEC2_DescribeTags() { } func ExampleEC2_DescribeVolumeAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4295,11 +3999,7 @@ func ExampleEC2_DescribeVolumeAttribute() { } func ExampleEC2_DescribeVolumeStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4336,11 +4036,7 @@ func ExampleEC2_DescribeVolumeStatus() { } func ExampleEC2_DescribeVolumes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4376,13 +4072,46 @@ func ExampleEC2_DescribeVolumes() { fmt.Println(resp) } -func ExampleEC2_DescribeVpcAttribute() { - sess, err := session.NewSession() +func ExampleEC2_DescribeVolumesModifications() { + sess := session.Must(session.NewSession()) + + svc := ec2.New(sess) + + params := &ec2.DescribeVolumesModificationsInput{ + DryRun: aws.Bool(true), + Filters: []*ec2.Filter{ + { // Required + Name: aws.String("String"), + Values: []*string{ + aws.String("String"), // Required + // More values... + }, + }, + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("String"), + VolumeIds: []*string{ + aws.String("String"), // Required + // More values... + }, + } + resp, err := svc.DescribeVolumesModifications(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEC2_DescribeVpcAttribute() { + sess := session.Must(session.NewSession()) + svc := ec2.New(sess) params := &ec2.DescribeVpcAttributeInput{ @@ -4404,11 +4133,7 @@ func ExampleEC2_DescribeVpcAttribute() { } func ExampleEC2_DescribeVpcClassicLink() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4443,11 +4168,7 @@ func ExampleEC2_DescribeVpcClassicLink() { } func ExampleEC2_DescribeVpcClassicLinkDnsSupport() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4473,11 +4194,7 @@ func ExampleEC2_DescribeVpcClassicLinkDnsSupport() { } func ExampleEC2_DescribeVpcEndpointServices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4500,11 +4217,7 @@ func ExampleEC2_DescribeVpcEndpointServices() { } func ExampleEC2_DescribeVpcEndpoints() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4541,11 +4254,7 @@ func ExampleEC2_DescribeVpcEndpoints() { } func ExampleEC2_DescribeVpcPeeringConnections() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4580,11 +4289,7 @@ func ExampleEC2_DescribeVpcPeeringConnections() { } func ExampleEC2_DescribeVpcs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4619,11 +4324,7 @@ func ExampleEC2_DescribeVpcs() { } func ExampleEC2_DescribeVpnConnections() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4658,11 +4359,7 @@ func ExampleEC2_DescribeVpnConnections() { } func ExampleEC2_DescribeVpnGateways() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4697,11 +4394,7 @@ func ExampleEC2_DescribeVpnGateways() { } func ExampleEC2_DetachClassicLinkVpc() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4724,11 +4417,7 @@ func ExampleEC2_DetachClassicLinkVpc() { } func ExampleEC2_DetachInternetGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4751,11 +4440,7 @@ func ExampleEC2_DetachInternetGateway() { } func ExampleEC2_DetachNetworkInterface() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4778,11 +4463,7 @@ func ExampleEC2_DetachNetworkInterface() { } func ExampleEC2_DetachVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4807,11 +4488,7 @@ func ExampleEC2_DetachVolume() { } func ExampleEC2_DetachVpnGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4834,11 +4511,7 @@ func ExampleEC2_DetachVpnGateway() { } func ExampleEC2_DisableVgwRoutePropagation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4860,11 +4533,7 @@ func ExampleEC2_DisableVgwRoutePropagation() { } func ExampleEC2_DisableVpcClassicLink() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4886,11 +4555,7 @@ func ExampleEC2_DisableVpcClassicLink() { } func ExampleEC2_DisableVpcClassicLinkDnsSupport() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4911,11 +4576,7 @@ func ExampleEC2_DisableVpcClassicLinkDnsSupport() { } func ExampleEC2_DisassociateAddress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -4937,13 +4598,30 @@ func ExampleEC2_DisassociateAddress() { fmt.Println(resp) } -func ExampleEC2_DisassociateRouteTable() { - sess, err := session.NewSession() +func ExampleEC2_DisassociateIamInstanceProfile() { + sess := session.Must(session.NewSession()) + + svc := ec2.New(sess) + + params := &ec2.DisassociateIamInstanceProfileInput{ + AssociationId: aws.String("String"), // Required + } + resp, err := svc.DisassociateIamInstanceProfile(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEC2_DisassociateRouteTable() { + sess := session.Must(session.NewSession()) + svc := ec2.New(sess) params := &ec2.DisassociateRouteTableInput{ @@ -4963,13 +4641,51 @@ func ExampleEC2_DisassociateRouteTable() { fmt.Println(resp) } -func ExampleEC2_EnableVgwRoutePropagation() { - sess, err := session.NewSession() +func ExampleEC2_DisassociateSubnetCidrBlock() { + sess := session.Must(session.NewSession()) + + svc := ec2.New(sess) + + params := &ec2.DisassociateSubnetCidrBlockInput{ + AssociationId: aws.String("String"), // Required + } + resp, err := svc.DisassociateSubnetCidrBlock(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEC2_DisassociateVpcCidrBlock() { + sess := session.Must(session.NewSession()) + + svc := ec2.New(sess) + + params := &ec2.DisassociateVpcCidrBlockInput{ + AssociationId: aws.String("String"), // Required + } + resp, err := svc.DisassociateVpcCidrBlock(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEC2_EnableVgwRoutePropagation() { + sess := session.Must(session.NewSession()) + svc := ec2.New(sess) params := &ec2.EnableVgwRoutePropagationInput{ @@ -4990,11 +4706,7 @@ func ExampleEC2_EnableVgwRoutePropagation() { } func ExampleEC2_EnableVolumeIO() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5015,13 +4727,9 @@ func ExampleEC2_EnableVolumeIO() { fmt.Println(resp) } -func ExampleEC2_EnableVpcClassicLink() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } - +func ExampleEC2_EnableVpcClassicLink() { + sess := session.Must(session.NewSession()) + svc := ec2.New(sess) params := &ec2.EnableVpcClassicLinkInput{ @@ -5042,11 +4750,7 @@ func ExampleEC2_EnableVpcClassicLink() { } func ExampleEC2_EnableVpcClassicLinkDnsSupport() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5067,11 +4771,7 @@ func ExampleEC2_EnableVpcClassicLinkDnsSupport() { } func ExampleEC2_GetConsoleOutput() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5093,11 +4793,7 @@ func ExampleEC2_GetConsoleOutput() { } func ExampleEC2_GetConsoleScreenshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5120,11 +4816,7 @@ func ExampleEC2_GetConsoleScreenshot() { } func ExampleEC2_GetHostReservationPurchasePreview() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5149,11 +4841,7 @@ func ExampleEC2_GetHostReservationPurchasePreview() { } func ExampleEC2_GetPasswordData() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5175,11 +4863,7 @@ func ExampleEC2_GetPasswordData() { } func ExampleEC2_GetReservedInstancesExchangeQuote() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5211,11 +4895,7 @@ func ExampleEC2_GetReservedInstancesExchangeQuote() { } func ExampleEC2_ImportImage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5263,11 +4943,7 @@ func ExampleEC2_ImportImage() { } func ExampleEC2_ImportInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5331,11 +5007,7 @@ func ExampleEC2_ImportInstance() { } func ExampleEC2_ImportKeyPair() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5358,11 +5030,7 @@ func ExampleEC2_ImportKeyPair() { } func ExampleEC2_ImportSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5401,11 +5069,7 @@ func ExampleEC2_ImportSnapshot() { } func ExampleEC2_ImportVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5436,11 +5100,7 @@ func ExampleEC2_ImportVolume() { } func ExampleEC2_ModifyHosts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5465,11 +5125,7 @@ func ExampleEC2_ModifyHosts() { } func ExampleEC2_ModifyIdFormat() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5491,11 +5147,7 @@ func ExampleEC2_ModifyIdFormat() { } func ExampleEC2_ModifyIdentityIdFormat() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5518,11 +5170,7 @@ func ExampleEC2_ModifyIdentityIdFormat() { } func ExampleEC2_ModifyImageAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5578,11 +5226,7 @@ func ExampleEC2_ModifyImageAttribute() { } func ExampleEC2_ModifyInstanceAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5652,11 +5296,7 @@ func ExampleEC2_ModifyInstanceAttribute() { } func ExampleEC2_ModifyInstancePlacement() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5680,11 +5320,7 @@ func ExampleEC2_ModifyInstancePlacement() { } func ExampleEC2_ModifyNetworkInterfaceAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5720,11 +5356,7 @@ func ExampleEC2_ModifyNetworkInterfaceAttribute() { } func ExampleEC2_ModifyReservedInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5759,11 +5391,7 @@ func ExampleEC2_ModifyReservedInstances() { } func ExampleEC2_ModifySnapshotAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5811,11 +5439,7 @@ func ExampleEC2_ModifySnapshotAttribute() { } func ExampleEC2_ModifySpotFleetRequest() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5838,16 +5462,15 @@ func ExampleEC2_ModifySpotFleetRequest() { } func ExampleEC2_ModifySubnetAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) params := &ec2.ModifySubnetAttributeInput{ SubnetId: aws.String("String"), // Required + AssignIpv6AddressOnCreation: &ec2.AttributeBooleanValue{ + Value: aws.Bool(true), + }, MapPublicIpOnLaunch: &ec2.AttributeBooleanValue{ Value: aws.Bool(true), }, @@ -5865,13 +5488,34 @@ func ExampleEC2_ModifySubnetAttribute() { fmt.Println(resp) } -func ExampleEC2_ModifyVolumeAttribute() { - sess, err := session.NewSession() +func ExampleEC2_ModifyVolume() { + sess := session.Must(session.NewSession()) + + svc := ec2.New(sess) + + params := &ec2.ModifyVolumeInput{ + VolumeId: aws.String("String"), // Required + DryRun: aws.Bool(true), + Iops: aws.Int64(1), + Size: aws.Int64(1), + VolumeType: aws.String("VolumeType"), + } + resp, err := svc.ModifyVolume(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEC2_ModifyVolumeAttribute() { + sess := session.Must(session.NewSession()) + svc := ec2.New(sess) params := &ec2.ModifyVolumeAttributeInput{ @@ -5895,11 +5539,7 @@ func ExampleEC2_ModifyVolumeAttribute() { } func ExampleEC2_ModifyVpcAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5926,11 +5566,7 @@ func ExampleEC2_ModifyVpcAttribute() { } func ExampleEC2_ModifyVpcEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5962,11 +5598,7 @@ func ExampleEC2_ModifyVpcEndpoint() { } func ExampleEC2_ModifyVpcPeeringConnectionOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -5998,11 +5630,7 @@ func ExampleEC2_ModifyVpcPeeringConnectionOptions() { } func ExampleEC2_MonitorInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6027,11 +5655,7 @@ func ExampleEC2_MonitorInstances() { } func ExampleEC2_MoveAddressToVpc() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6053,11 +5677,7 @@ func ExampleEC2_MoveAddressToVpc() { } func ExampleEC2_PurchaseHostReservation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6085,11 +5705,7 @@ func ExampleEC2_PurchaseHostReservation() { } func ExampleEC2_PurchaseReservedInstancesOffering() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6116,11 +5732,7 @@ func ExampleEC2_PurchaseReservedInstancesOffering() { } func ExampleEC2_PurchaseScheduledInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6149,11 +5761,7 @@ func ExampleEC2_PurchaseScheduledInstances() { } func ExampleEC2_RebootInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6178,17 +5786,17 @@ func ExampleEC2_RebootInstances() { } func ExampleEC2_RegisterImage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) params := &ec2.RegisterImageInput{ Name: aws.String("String"), // Required Architecture: aws.String("ArchitectureValues"), + BillingProducts: []*string{ + aws.String("String"), // Required + // More values... + }, BlockDeviceMappings: []*ec2.BlockDeviceMapping{ { // Required DeviceName: aws.String("String"), @@ -6229,11 +5837,7 @@ func ExampleEC2_RegisterImage() { } func ExampleEC2_RejectVpcPeeringConnection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6255,11 +5859,7 @@ func ExampleEC2_RejectVpcPeeringConnection() { } func ExampleEC2_ReleaseAddress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6282,11 +5882,7 @@ func ExampleEC2_ReleaseAddress() { } func ExampleEC2_ReleaseHosts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6309,13 +5905,34 @@ func ExampleEC2_ReleaseHosts() { fmt.Println(resp) } -func ExampleEC2_ReplaceNetworkAclAssociation() { - sess, err := session.NewSession() +func ExampleEC2_ReplaceIamInstanceProfileAssociation() { + sess := session.Must(session.NewSession()) + + svc := ec2.New(sess) + + params := &ec2.ReplaceIamInstanceProfileAssociationInput{ + AssociationId: aws.String("String"), // Required + IamInstanceProfile: &ec2.IamInstanceProfileSpecification{ // Required + Arn: aws.String("String"), + Name: aws.String("String"), + }, + } + resp, err := svc.ReplaceIamInstanceProfileAssociation(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEC2_ReplaceNetworkAclAssociation() { + sess := session.Must(session.NewSession()) + svc := ec2.New(sess) params := &ec2.ReplaceNetworkAclAssociationInput{ @@ -6337,26 +5954,23 @@ func ExampleEC2_ReplaceNetworkAclAssociation() { } func ExampleEC2_ReplaceNetworkAclEntry() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) params := &ec2.ReplaceNetworkAclEntryInput{ - CidrBlock: aws.String("String"), // Required Egress: aws.Bool(true), // Required NetworkAclId: aws.String("String"), // Required Protocol: aws.String("String"), // Required RuleAction: aws.String("RuleAction"), // Required RuleNumber: aws.Int64(1), // Required + CidrBlock: aws.String("String"), DryRun: aws.Bool(true), IcmpTypeCode: &ec2.IcmpTypeCode{ Code: aws.Int64(1), Type: aws.Int64(1), }, + Ipv6CidrBlock: aws.String("String"), PortRange: &ec2.PortRange{ From: aws.Int64(1), To: aws.Int64(1), @@ -6376,23 +5990,21 @@ func ExampleEC2_ReplaceNetworkAclEntry() { } func ExampleEC2_ReplaceRoute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) params := &ec2.ReplaceRouteInput{ - DestinationCidrBlock: aws.String("String"), // Required - RouteTableId: aws.String("String"), // Required - DryRun: aws.Bool(true), - GatewayId: aws.String("String"), - InstanceId: aws.String("String"), - NatGatewayId: aws.String("String"), - NetworkInterfaceId: aws.String("String"), - VpcPeeringConnectionId: aws.String("String"), + RouteTableId: aws.String("String"), // Required + DestinationCidrBlock: aws.String("String"), + DestinationIpv6CidrBlock: aws.String("String"), + DryRun: aws.Bool(true), + EgressOnlyInternetGatewayId: aws.String("String"), + GatewayId: aws.String("String"), + InstanceId: aws.String("String"), + NatGatewayId: aws.String("String"), + NetworkInterfaceId: aws.String("String"), + VpcPeeringConnectionId: aws.String("String"), } resp, err := svc.ReplaceRoute(params) @@ -6408,11 +6020,7 @@ func ExampleEC2_ReplaceRoute() { } func ExampleEC2_ReplaceRouteTableAssociation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6435,11 +6043,7 @@ func ExampleEC2_ReplaceRouteTableAssociation() { } func ExampleEC2_ReportInstanceStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6472,11 +6076,7 @@ func ExampleEC2_ReportInstanceStatus() { } func ExampleEC2_RequestSpotFleet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6524,6 +6124,13 @@ func ExampleEC2_RequestSpotFleet() { aws.String("String"), // Required // More values... }, + Ipv6AddressCount: aws.Int64(1), + Ipv6Addresses: []*ec2.InstanceIpv6Address{ + { // Required + Ipv6Address: aws.String("String"), + }, + // More values... + }, NetworkInterfaceId: aws.String("String"), PrivateIpAddress: aws.String("String"), PrivateIpAddresses: []*ec2.PrivateIpAddressSpecification{ @@ -6541,6 +6148,7 @@ func ExampleEC2_RequestSpotFleet() { Placement: &ec2.SpotPlacement{ AvailabilityZone: aws.String("String"), GroupName: aws.String("String"), + Tenancy: aws.String("Tenancy"), }, RamdiskId: aws.String("String"), SecurityGroups: []*ec2.GroupIdentifier{ @@ -6563,6 +6171,7 @@ func ExampleEC2_RequestSpotFleet() { ClientToken: aws.String("String"), ExcessCapacityTerminationPolicy: aws.String("ExcessCapacityTerminationPolicy"), FulfilledCapacity: aws.Float64(1.0), + ReplaceUnhealthyInstances: aws.Bool(true), TerminateInstancesWithExpiration: aws.Bool(true), Type: aws.String("FleetType"), ValidFrom: aws.Time(time.Now()), @@ -6584,11 +6193,7 @@ func ExampleEC2_RequestSpotFleet() { } func ExampleEC2_RequestSpotInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6640,6 +6245,13 @@ func ExampleEC2_RequestSpotInstances() { aws.String("String"), // Required // More values... }, + Ipv6AddressCount: aws.Int64(1), + Ipv6Addresses: []*ec2.InstanceIpv6Address{ + { // Required + Ipv6Address: aws.String("String"), + }, + // More values... + }, NetworkInterfaceId: aws.String("String"), PrivateIpAddress: aws.String("String"), PrivateIpAddresses: []*ec2.PrivateIpAddressSpecification{ @@ -6657,6 +6269,7 @@ func ExampleEC2_RequestSpotInstances() { Placement: &ec2.SpotPlacement{ AvailabilityZone: aws.String("String"), GroupName: aws.String("String"), + Tenancy: aws.String("Tenancy"), }, RamdiskId: aws.String("String"), SecurityGroupIds: []*string{ @@ -6688,11 +6301,7 @@ func ExampleEC2_RequestSpotInstances() { } func ExampleEC2_ResetImageAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6715,11 +6324,7 @@ func ExampleEC2_ResetImageAttribute() { } func ExampleEC2_ResetInstanceAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6742,11 +6347,7 @@ func ExampleEC2_ResetInstanceAttribute() { } func ExampleEC2_ResetNetworkInterfaceAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6769,11 +6370,7 @@ func ExampleEC2_ResetNetworkInterfaceAttribute() { } func ExampleEC2_ResetSnapshotAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6796,11 +6393,7 @@ func ExampleEC2_ResetSnapshotAttribute() { } func ExampleEC2_RestoreAddressToClassic() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6822,11 +6415,7 @@ func ExampleEC2_RestoreAddressToClassic() { } func ExampleEC2_RevokeSecurityGroupEgress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6845,6 +6434,12 @@ func ExampleEC2_RevokeSecurityGroupEgress() { }, // More values... }, + Ipv6Ranges: []*ec2.Ipv6Range{ + { // Required + CidrIpv6: aws.String("String"), + }, + // More values... + }, PrefixListIds: []*ec2.PrefixListId{ { // Required PrefixListId: aws.String("String"), @@ -6885,11 +6480,7 @@ func ExampleEC2_RevokeSecurityGroupEgress() { } func ExampleEC2_RevokeSecurityGroupIngress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6909,6 +6500,12 @@ func ExampleEC2_RevokeSecurityGroupIngress() { }, // More values... }, + Ipv6Ranges: []*ec2.Ipv6Range{ + { // Required + CidrIpv6: aws.String("String"), + }, + // More values... + }, PrefixListIds: []*ec2.PrefixListId{ { // Required PrefixListId: aws.String("String"), @@ -6949,11 +6546,7 @@ func ExampleEC2_RevokeSecurityGroupIngress() { } func ExampleEC2_RunInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -6988,8 +6581,15 @@ func ExampleEC2_RunInstances() { }, InstanceInitiatedShutdownBehavior: aws.String("ShutdownBehavior"), InstanceType: aws.String("InstanceType"), - KernelId: aws.String("String"), - KeyName: aws.String("String"), + Ipv6AddressCount: aws.Int64(1), + Ipv6Addresses: []*ec2.InstanceIpv6Address{ + { // Required + Ipv6Address: aws.String("String"), + }, + // More values... + }, + KernelId: aws.String("String"), + KeyName: aws.String("String"), Monitoring: &ec2.RunInstancesMonitoringEnabled{ Enabled: aws.Bool(true), // Required }, @@ -7003,6 +6603,13 @@ func ExampleEC2_RunInstances() { aws.String("String"), // Required // More values... }, + Ipv6AddressCount: aws.Int64(1), + Ipv6Addresses: []*ec2.InstanceIpv6Address{ + { // Required + Ipv6Address: aws.String("String"), + }, + // More values... + }, NetworkInterfaceId: aws.String("String"), PrivateIpAddress: aws.String("String"), PrivateIpAddresses: []*ec2.PrivateIpAddressSpecification{ @@ -7051,11 +6658,7 @@ func ExampleEC2_RunInstances() { } func ExampleEC2_RunScheduledInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -7099,6 +6702,13 @@ func ExampleEC2_RunScheduledInstances() { aws.String("String"), // Required // More values... }, + Ipv6AddressCount: aws.Int64(1), + Ipv6Addresses: []*ec2.ScheduledInstancesIpv6Address{ + { // Required + Ipv6Address: aws.String("Ipv6Address"), + }, + // More values... + }, NetworkInterfaceId: aws.String("String"), PrivateIpAddress: aws.String("String"), PrivateIpAddressConfigs: []*ec2.ScheduledInstancesPrivateIpAddressConfig{ @@ -7144,11 +6754,7 @@ func ExampleEC2_RunScheduledInstances() { } func ExampleEC2_StartInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -7174,11 +6780,7 @@ func ExampleEC2_StartInstances() { } func ExampleEC2_StopInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -7204,11 +6806,7 @@ func ExampleEC2_StopInstances() { } func ExampleEC2_TerminateInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) @@ -7232,13 +6830,34 @@ func ExampleEC2_TerminateInstances() { fmt.Println(resp) } -func ExampleEC2_UnassignPrivateIpAddresses() { - sess, err := session.NewSession() +func ExampleEC2_UnassignIpv6Addresses() { + sess := session.Must(session.NewSession()) + + svc := ec2.New(sess) + + params := &ec2.UnassignIpv6AddressesInput{ + Ipv6Addresses: []*string{ // Required + aws.String("String"), // Required + // More values... + }, + NetworkInterfaceId: aws.String("String"), // Required + } + resp, err := svc.UnassignIpv6Addresses(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEC2_UnassignPrivateIpAddresses() { + sess := session.Must(session.NewSession()) + svc := ec2.New(sess) params := &ec2.UnassignPrivateIpAddressesInput{ @@ -7262,11 +6881,7 @@ func ExampleEC2_UnassignPrivateIpAddresses() { } func ExampleEC2_UnmonitorInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ec2.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/service.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/service.go index b30c5e0d6..c289b5b04 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ec2/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/service.go @@ -15,8 +15,9 @@ import ( // in the Amazon Web Services (AWS) cloud. Using Amazon EC2 eliminates your // need to invest in hardware up front, so you can develop and deploy applications // faster. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15 type EC2 struct { *client.Client } @@ -27,8 +28,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "ec2" +// Service information constants +const ( + ServiceName = "ec2" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the EC2 client with a session. // If additional configuration is needed for the client instance use the optional @@ -41,20 +45,21 @@ const ServiceName = "ec2" // // Create a EC2 client with additional configuration // svc := ec2.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *EC2 { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *EC2 { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *EC2 { svc := &EC2{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, - APIVersion: "2016-09-15", + APIVersion: "2016-11-15", }, handlers, ), diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/waiters.go index 94fab6d84..7917cbdaf 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ec2/waiters.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/waiters.go @@ -498,7 +498,7 @@ func (c *EC2) WaitUntilKeyPairExists(input *DescribeKeyPairsInput) error { Acceptors: []waiter.WaitAcceptor{ { State: "success", - Matcher: "pathAll", + Matcher: "path", Argument: "length(KeyPairs[].KeyName) > `0`", Expected: true, }, @@ -921,6 +921,39 @@ func (c *EC2) WaitUntilVpcExists(input *DescribeVpcsInput) error { return w.Wait() } +// WaitUntilVpcPeeringConnectionDeleted uses the Amazon EC2 API operation +// DescribeVpcPeeringConnections to wait for a condition to be met before returning. +// If the condition is not meet within the max attempt window an error will +// be returned. +func (c *EC2) WaitUntilVpcPeeringConnectionDeleted(input *DescribeVpcPeeringConnectionsInput) error { + waiterCfg := waiter.Config{ + Operation: "DescribeVpcPeeringConnections", + Delay: 15, + MaxAttempts: 40, + Acceptors: []waiter.WaitAcceptor{ + { + State: "success", + Matcher: "pathAll", + Argument: "VpcPeeringConnections[].Status.Code", + Expected: "deleted", + }, + { + State: "success", + Matcher: "error", + Argument: "", + Expected: "InvalidVpcPeeringConnectionID.NotFound", + }, + }, + } + + w := waiter.Waiter{ + Client: c, + Input: input, + Config: waiterCfg, + } + return w.Wait() +} + // WaitUntilVpcPeeringConnectionExists uses the Amazon EC2 API operation // DescribeVpcPeeringConnections to wait for a condition to be met before returning. // If the condition is not meet within the max attempt window an error will diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecr/api.go b/vendor/github.com/aws/aws-sdk-go/service/ecr/api.go index 1ef1aa9ae..fc46f5145 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecr/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecr/api.go @@ -36,6 +36,7 @@ const opBatchCheckLayerAvailability = "BatchCheckLayerAvailability" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchCheckLayerAvailability func (c *ECR) BatchCheckLayerAvailabilityRequest(input *BatchCheckLayerAvailabilityInput) (req *request.Request, output *BatchCheckLayerAvailabilityOutput) { op := &request.Operation{ Name: opBatchCheckLayerAvailability, @@ -47,9 +48,8 @@ func (c *ECR) BatchCheckLayerAvailabilityRequest(input *BatchCheckLayerAvailabil input = &BatchCheckLayerAvailabilityInput{} } - req = c.newRequest(op, input, output) output = &BatchCheckLayerAvailabilityOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -58,8 +58,9 @@ func (c *ECR) BatchCheckLayerAvailabilityRequest(input *BatchCheckLayerAvailabil // Check the availability of multiple image layers in a specified registry and // repository. // -// This operation is used by the Amazon ECR proxy, and it is not intended -// for general use by customers. Use the docker CLI to pull, tag, and push images. +// This operation is used by the Amazon ECR proxy, and it is not intended for +// general use by customers for pulling and pushing images. In most cases, you +// should use the docker CLI to pull, tag, and push images. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -69,17 +70,18 @@ func (c *ECR) BatchCheckLayerAvailabilityRequest(input *BatchCheckLayerAvailabil // API operation BatchCheckLayerAvailability for usage and error information. // // Returned Error Codes: -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchCheckLayerAvailability func (c *ECR) BatchCheckLayerAvailability(input *BatchCheckLayerAvailabilityInput) (*BatchCheckLayerAvailabilityOutput, error) { req, out := c.BatchCheckLayerAvailabilityRequest(input) err := req.Send() @@ -112,6 +114,7 @@ const opBatchDeleteImage = "BatchDeleteImage" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchDeleteImage func (c *ECR) BatchDeleteImageRequest(input *BatchDeleteImageInput) (req *request.Request, output *BatchDeleteImageOutput) { op := &request.Operation{ Name: opBatchDeleteImage, @@ -123,9 +126,8 @@ func (c *ECR) BatchDeleteImageRequest(input *BatchDeleteImageInput) (req *reques input = &BatchDeleteImageInput{} } - req = c.newRequest(op, input, output) output = &BatchDeleteImageOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -134,6 +136,13 @@ func (c *ECR) BatchDeleteImageRequest(input *BatchDeleteImageInput) (req *reques // Deletes a list of specified images within a specified repository. Images // are specified with either imageTag or imageDigest. // +// You can remove a tag from an image by specifying the image's tag in your +// request. When you remove the last tag from an image, the image is deleted +// from your repository. +// +// You can completely delete an image (and all of its tags) by specifying the +// image's digest in your request. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -142,17 +151,18 @@ func (c *ECR) BatchDeleteImageRequest(input *BatchDeleteImageInput) (req *reques // API operation BatchDeleteImage for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchDeleteImage func (c *ECR) BatchDeleteImage(input *BatchDeleteImageInput) (*BatchDeleteImageOutput, error) { req, out := c.BatchDeleteImageRequest(input) err := req.Send() @@ -185,6 +195,7 @@ const opBatchGetImage = "BatchGetImage" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchGetImage func (c *ECR) BatchGetImageRequest(input *BatchGetImageInput) (req *request.Request, output *BatchGetImageOutput) { op := &request.Operation{ Name: opBatchGetImage, @@ -196,9 +207,8 @@ func (c *ECR) BatchGetImageRequest(input *BatchGetImageInput) (req *request.Requ input = &BatchGetImageInput{} } - req = c.newRequest(op, input, output) output = &BatchGetImageOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -215,17 +225,18 @@ func (c *ECR) BatchGetImageRequest(input *BatchGetImageInput) (req *request.Requ // API operation BatchGetImage for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchGetImage func (c *ECR) BatchGetImage(input *BatchGetImageInput) (*BatchGetImageOutput, error) { req, out := c.BatchGetImageRequest(input) err := req.Send() @@ -258,6 +269,7 @@ const opCompleteLayerUpload = "CompleteLayerUpload" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CompleteLayerUpload func (c *ECR) CompleteLayerUploadRequest(input *CompleteLayerUploadInput) (req *request.Request, output *CompleteLayerUploadOutput) { op := &request.Operation{ Name: opCompleteLayerUpload, @@ -269,9 +281,8 @@ func (c *ECR) CompleteLayerUploadRequest(input *CompleteLayerUploadInput) (req * input = &CompleteLayerUploadInput{} } - req = c.newRequest(op, input, output) output = &CompleteLayerUploadOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -281,8 +292,9 @@ func (c *ECR) CompleteLayerUploadRequest(input *CompleteLayerUploadInput) (req * // name, and upload ID, has completed. You can optionally provide a sha256 digest // of the image layer for data validation purposes. // -// This operation is used by the Amazon ECR proxy, and it is not intended -// for general use by customers. Use the docker CLI to pull, tag, and push images. +// This operation is used by the Amazon ECR proxy, and it is not intended for +// general use by customers for pulling and pushing images. In most cases, you +// should use the docker CLI to pull, tag, and push images. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -292,34 +304,35 @@ func (c *ECR) CompleteLayerUploadRequest(input *CompleteLayerUploadInput) (req * // API operation CompleteLayerUpload for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * UploadNotFoundException +// * ErrCodeUploadNotFoundException "UploadNotFoundException" // The upload could not be found, or the specified upload id is not valid for // this repository. // -// * InvalidLayerException +// * ErrCodeInvalidLayerException "InvalidLayerException" // The layer digest calculation performed by Amazon ECR upon receipt of the // image layer does not match the digest specified. // -// * LayerPartTooSmallException +// * ErrCodeLayerPartTooSmallException "LayerPartTooSmallException" // Layer parts must be at least 5 MiB in size. // -// * LayerAlreadyExistsException +// * ErrCodeLayerAlreadyExistsException "LayerAlreadyExistsException" // The image layer already exists in the associated repository. // -// * EmptyUploadException +// * ErrCodeEmptyUploadException "EmptyUploadException" // The specified layer upload does not contain any layer parts. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CompleteLayerUpload func (c *ECR) CompleteLayerUpload(input *CompleteLayerUploadInput) (*CompleteLayerUploadOutput, error) { req, out := c.CompleteLayerUploadRequest(input) err := req.Send() @@ -352,6 +365,7 @@ const opCreateRepository = "CreateRepository" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreateRepository func (c *ECR) CreateRepositoryRequest(input *CreateRepositoryInput) (req *request.Request, output *CreateRepositoryOutput) { op := &request.Operation{ Name: opCreateRepository, @@ -363,9 +377,8 @@ func (c *ECR) CreateRepositoryRequest(input *CreateRepositoryInput) (req *reques input = &CreateRepositoryInput{} } - req = c.newRequest(op, input, output) output = &CreateRepositoryOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -381,22 +394,23 @@ func (c *ECR) CreateRepositoryRequest(input *CreateRepositoryInput) (req *reques // API operation CreateRepository for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryAlreadyExistsException +// * ErrCodeRepositoryAlreadyExistsException "RepositoryAlreadyExistsException" // The specified repository already exists in the specified registry. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The operation did not succeed because it would have exceeded a service limit // for your account. For more information, see Amazon ECR Default Service Limits // (http://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html) // in the Amazon EC2 Container Registry User Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreateRepository func (c *ECR) CreateRepository(input *CreateRepositoryInput) (*CreateRepositoryOutput, error) { req, out := c.CreateRepositoryRequest(input) err := req.Send() @@ -429,6 +443,7 @@ const opDeleteRepository = "DeleteRepository" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRepository func (c *ECR) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req *request.Request, output *DeleteRepositoryOutput) { op := &request.Operation{ Name: opDeleteRepository, @@ -440,9 +455,8 @@ func (c *ECR) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req *reques input = &DeleteRepositoryInput{} } - req = c.newRequest(op, input, output) output = &DeleteRepositoryOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -459,21 +473,22 @@ func (c *ECR) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req *reques // API operation DeleteRepository for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * RepositoryNotEmptyException +// * ErrCodeRepositoryNotEmptyException "RepositoryNotEmptyException" // The specified repository contains images. To delete a repository that contains // images, you must force the deletion with the force parameter. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRepository func (c *ECR) DeleteRepository(input *DeleteRepositoryInput) (*DeleteRepositoryOutput, error) { req, out := c.DeleteRepositoryRequest(input) err := req.Send() @@ -506,6 +521,7 @@ const opDeleteRepositoryPolicy = "DeleteRepositoryPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRepositoryPolicy func (c *ECR) DeleteRepositoryPolicyRequest(input *DeleteRepositoryPolicyInput) (req *request.Request, output *DeleteRepositoryPolicyOutput) { op := &request.Operation{ Name: opDeleteRepositoryPolicy, @@ -517,9 +533,8 @@ func (c *ECR) DeleteRepositoryPolicyRequest(input *DeleteRepositoryPolicyInput) input = &DeleteRepositoryPolicyInput{} } - req = c.newRequest(op, input, output) output = &DeleteRepositoryPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -535,21 +550,22 @@ func (c *ECR) DeleteRepositoryPolicyRequest(input *DeleteRepositoryPolicyInput) // API operation DeleteRepositoryPolicy for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * RepositoryPolicyNotFoundException +// * ErrCodeRepositoryPolicyNotFoundException "RepositoryPolicyNotFoundException" // The specified repository and registry combination does not have an associated // repository policy. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRepositoryPolicy func (c *ECR) DeleteRepositoryPolicy(input *DeleteRepositoryPolicyInput) (*DeleteRepositoryPolicyOutput, error) { req, out := c.DeleteRepositoryPolicyRequest(input) err := req.Send() @@ -582,29 +598,35 @@ const opDescribeImages = "DescribeImages" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeImages func (c *ECR) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Request, output *DescribeImagesOutput) { op := &request.Operation{ Name: opDescribeImages, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { input = &DescribeImagesInput{} } - req = c.newRequest(op, input, output) output = &DescribeImagesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeImages API operation for Amazon EC2 Container Registry. // -// Returns metadata about the images in a repository, including image size and -// creation date. +// Returns metadata about the images in a repository, including image size, +// image tags, and creation date. // -// Beginning with Docker version 1.9, the Docker client compresses image layers +// Beginning with Docker version 1.9, the Docker client compresses image layers // before pushing them to a V2 Docker registry. The output of the docker images // command shows the uncompressed image size, so it may return a larger image // size than the image sizes returned by DescribeImages. @@ -617,26 +639,52 @@ func (c *ECR) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Re // API operation DescribeImages for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ImageNotFoundException +// * ErrCodeImageNotFoundException "ImageNotFoundException" // The image requested does not exist in the specified repository. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeImages func (c *ECR) DescribeImages(input *DescribeImagesInput) (*DescribeImagesOutput, error) { req, out := c.DescribeImagesRequest(input) err := req.Send() return out, err } +// DescribeImagesPages iterates over the pages of a DescribeImages operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeImages method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a DescribeImages operation. +// pageNum := 0 +// err := client.DescribeImagesPages(params, +// func(page *DescribeImagesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *ECR) DescribeImagesPages(input *DescribeImagesInput, fn func(p *DescribeImagesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.DescribeImagesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*DescribeImagesOutput), lastPage) + }) +} + const opDescribeRepositories = "DescribeRepositories" // DescribeRepositoriesRequest generates a "aws/request.Request" representing the @@ -663,20 +711,26 @@ const opDescribeRepositories = "DescribeRepositories" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeRepositories func (c *ECR) DescribeRepositoriesRequest(input *DescribeRepositoriesInput) (req *request.Request, output *DescribeRepositoriesOutput) { op := &request.Operation{ Name: opDescribeRepositories, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { input = &DescribeRepositoriesInput{} } - req = c.newRequest(op, input, output) output = &DescribeRepositoriesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -692,23 +746,49 @@ func (c *ECR) DescribeRepositoriesRequest(input *DescribeRepositoriesInput) (req // API operation DescribeRepositories for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeRepositories func (c *ECR) DescribeRepositories(input *DescribeRepositoriesInput) (*DescribeRepositoriesOutput, error) { req, out := c.DescribeRepositoriesRequest(input) err := req.Send() return out, err } +// DescribeRepositoriesPages iterates over the pages of a DescribeRepositories operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeRepositories method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a DescribeRepositories operation. +// pageNum := 0 +// err := client.DescribeRepositoriesPages(params, +// func(page *DescribeRepositoriesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *ECR) DescribeRepositoriesPages(input *DescribeRepositoriesInput, fn func(p *DescribeRepositoriesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.DescribeRepositoriesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*DescribeRepositoriesOutput), lastPage) + }) +} + const opGetAuthorizationToken = "GetAuthorizationToken" // GetAuthorizationTokenRequest generates a "aws/request.Request" representing the @@ -735,6 +815,7 @@ const opGetAuthorizationToken = "GetAuthorizationToken" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetAuthorizationToken func (c *ECR) GetAuthorizationTokenRequest(input *GetAuthorizationTokenInput) (req *request.Request, output *GetAuthorizationTokenOutput) { op := &request.Operation{ Name: opGetAuthorizationToken, @@ -746,9 +827,8 @@ func (c *ECR) GetAuthorizationTokenRequest(input *GetAuthorizationTokenInput) (r input = &GetAuthorizationTokenInput{} } - req = c.newRequest(op, input, output) output = &GetAuthorizationTokenOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -758,10 +838,10 @@ func (c *ECR) GetAuthorizationTokenRequest(input *GetAuthorizationTokenInput) (r // command allows you to use the docker CLI to push and pull images with Amazon // ECR. If you do not specify a registry, the default registry is assumed. // -// The authorizationToken returned for each registry specified is a base64 -// encoded string that can be decoded and used in a docker login command to -// authenticate to a registry. The AWS CLI offers an aws ecr get-login command -// that simplifies the login process. +// The authorizationToken returned for each registry specified is a base64 encoded +// string that can be decoded and used in a docker login command to authenticate +// to a registry. The AWS CLI offers an aws ecr get-login command that simplifies +// the login process. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -771,13 +851,14 @@ func (c *ECR) GetAuthorizationTokenRequest(input *GetAuthorizationTokenInput) (r // API operation GetAuthorizationToken for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetAuthorizationToken func (c *ECR) GetAuthorizationToken(input *GetAuthorizationTokenInput) (*GetAuthorizationTokenOutput, error) { req, out := c.GetAuthorizationTokenRequest(input) err := req.Send() @@ -810,6 +891,7 @@ const opGetDownloadUrlForLayer = "GetDownloadUrlForLayer" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetDownloadUrlForLayer func (c *ECR) GetDownloadUrlForLayerRequest(input *GetDownloadUrlForLayerInput) (req *request.Request, output *GetDownloadUrlForLayerOutput) { op := &request.Operation{ Name: opGetDownloadUrlForLayer, @@ -821,9 +903,8 @@ func (c *ECR) GetDownloadUrlForLayerRequest(input *GetDownloadUrlForLayerInput) input = &GetDownloadUrlForLayerInput{} } - req = c.newRequest(op, input, output) output = &GetDownloadUrlForLayerOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -832,8 +913,9 @@ func (c *ECR) GetDownloadUrlForLayerRequest(input *GetDownloadUrlForLayerInput) // Retrieves the pre-signed Amazon S3 download URL corresponding to an image // layer. You can only get URLs for image layers that are referenced in an image. // -// This operation is used by the Amazon ECR proxy, and it is not intended -// for general use by customers. Use the docker CLI to pull, tag, and push images. +// This operation is used by the Amazon ECR proxy, and it is not intended for +// general use by customers for pulling and pushing images. In most cases, you +// should use the docker CLI to pull, tag, and push images. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -843,25 +925,26 @@ func (c *ECR) GetDownloadUrlForLayerRequest(input *GetDownloadUrlForLayerInput) // API operation GetDownloadUrlForLayer for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * LayersNotFoundException +// * ErrCodeLayersNotFoundException "LayersNotFoundException" // The specified layers could not be found, or the specified layer is not valid // for this repository. // -// * LayerInaccessibleException +// * ErrCodeLayerInaccessibleException "LayerInaccessibleException" // The specified layer is not available because it is not associated with an // image. Unassociated image layers may be cleaned up at any time. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetDownloadUrlForLayer func (c *ECR) GetDownloadUrlForLayer(input *GetDownloadUrlForLayerInput) (*GetDownloadUrlForLayerOutput, error) { req, out := c.GetDownloadUrlForLayerRequest(input) err := req.Send() @@ -894,6 +977,7 @@ const opGetRepositoryPolicy = "GetRepositoryPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetRepositoryPolicy func (c *ECR) GetRepositoryPolicyRequest(input *GetRepositoryPolicyInput) (req *request.Request, output *GetRepositoryPolicyOutput) { op := &request.Operation{ Name: opGetRepositoryPolicy, @@ -905,9 +989,8 @@ func (c *ECR) GetRepositoryPolicyRequest(input *GetRepositoryPolicyInput) (req * input = &GetRepositoryPolicyInput{} } - req = c.newRequest(op, input, output) output = &GetRepositoryPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -923,21 +1006,22 @@ func (c *ECR) GetRepositoryPolicyRequest(input *GetRepositoryPolicyInput) (req * // API operation GetRepositoryPolicy for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * RepositoryPolicyNotFoundException +// * ErrCodeRepositoryPolicyNotFoundException "RepositoryPolicyNotFoundException" // The specified repository and registry combination does not have an associated // repository policy. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetRepositoryPolicy func (c *ECR) GetRepositoryPolicy(input *GetRepositoryPolicyInput) (*GetRepositoryPolicyOutput, error) { req, out := c.GetRepositoryPolicyRequest(input) err := req.Send() @@ -970,6 +1054,7 @@ const opInitiateLayerUpload = "InitiateLayerUpload" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/InitiateLayerUpload func (c *ECR) InitiateLayerUploadRequest(input *InitiateLayerUploadInput) (req *request.Request, output *InitiateLayerUploadOutput) { op := &request.Operation{ Name: opInitiateLayerUpload, @@ -981,9 +1066,8 @@ func (c *ECR) InitiateLayerUploadRequest(input *InitiateLayerUploadInput) (req * input = &InitiateLayerUploadInput{} } - req = c.newRequest(op, input, output) output = &InitiateLayerUploadOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -991,8 +1075,9 @@ func (c *ECR) InitiateLayerUploadRequest(input *InitiateLayerUploadInput) (req * // // Notify Amazon ECR that you intend to upload an image layer. // -// This operation is used by the Amazon ECR proxy, and it is not intended -// for general use by customers. Use the docker CLI to pull, tag, and push images. +// This operation is used by the Amazon ECR proxy, and it is not intended for +// general use by customers for pulling and pushing images. In most cases, you +// should use the docker CLI to pull, tag, and push images. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1002,17 +1087,18 @@ func (c *ECR) InitiateLayerUploadRequest(input *InitiateLayerUploadInput) (req * // API operation InitiateLayerUpload for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/InitiateLayerUpload func (c *ECR) InitiateLayerUpload(input *InitiateLayerUploadInput) (*InitiateLayerUploadOutput, error) { req, out := c.InitiateLayerUploadRequest(input) err := req.Send() @@ -1045,20 +1131,26 @@ const opListImages = "ListImages" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ListImages func (c *ECR) ListImagesRequest(input *ListImagesInput) (req *request.Request, output *ListImagesOutput) { op := &request.Operation{ Name: opListImages, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { input = &ListImagesInput{} } - req = c.newRequest(op, input, output) output = &ListImagesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1080,23 +1172,49 @@ func (c *ECR) ListImagesRequest(input *ListImagesInput) (req *request.Request, o // API operation ListImages for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ListImages func (c *ECR) ListImages(input *ListImagesInput) (*ListImagesOutput, error) { req, out := c.ListImagesRequest(input) err := req.Send() return out, err } +// ListImagesPages iterates over the pages of a ListImages operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListImages method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListImages operation. +// pageNum := 0 +// err := client.ListImagesPages(params, +// func(page *ListImagesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *ECR) ListImagesPages(input *ListImagesInput, fn func(p *ListImagesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListImagesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListImagesOutput), lastPage) + }) +} + const opPutImage = "PutImage" // PutImageRequest generates a "aws/request.Request" representing the @@ -1123,6 +1241,7 @@ const opPutImage = "PutImage" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutImage func (c *ECR) PutImageRequest(input *PutImageInput) (req *request.Request, output *PutImageOutput) { op := &request.Operation{ Name: opPutImage, @@ -1134,18 +1253,18 @@ func (c *ECR) PutImageRequest(input *PutImageInput) (req *request.Request, outpu input = &PutImageInput{} } - req = c.newRequest(op, input, output) output = &PutImageOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // PutImage API operation for Amazon EC2 Container Registry. // -// Creates or updates the image manifest associated with an image. +// Creates or updates the image manifest and tags associated with an image. // -// This operation is used by the Amazon ECR proxy, and it is not intended -// for general use by customers. Use the docker CLI to pull, tag, and push images. +// This operation is used by the Amazon ECR proxy, and it is not intended for +// general use by customers for pulling and pushing images. In most cases, you +// should use the docker CLI to pull, tag, and push images. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1155,31 +1274,32 @@ func (c *ECR) PutImageRequest(input *PutImageInput) (req *request.Request, outpu // API operation PutImage for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ImageAlreadyExistsException +// * ErrCodeImageAlreadyExistsException "ImageAlreadyExistsException" // The specified image has already been pushed, and there are no changes to // the manifest or image tag since the last push. // -// * LayersNotFoundException +// * ErrCodeLayersNotFoundException "LayersNotFoundException" // The specified layers could not be found, or the specified layer is not valid // for this repository. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The operation did not succeed because it would have exceeded a service limit // for your account. For more information, see Amazon ECR Default Service Limits // (http://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html) // in the Amazon EC2 Container Registry User Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutImage func (c *ECR) PutImage(input *PutImageInput) (*PutImageOutput, error) { req, out := c.PutImageRequest(input) err := req.Send() @@ -1212,6 +1332,7 @@ const opSetRepositoryPolicy = "SetRepositoryPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/SetRepositoryPolicy func (c *ECR) SetRepositoryPolicyRequest(input *SetRepositoryPolicyInput) (req *request.Request, output *SetRepositoryPolicyOutput) { op := &request.Operation{ Name: opSetRepositoryPolicy, @@ -1223,9 +1344,8 @@ func (c *ECR) SetRepositoryPolicyRequest(input *SetRepositoryPolicyInput) (req * input = &SetRepositoryPolicyInput{} } - req = c.newRequest(op, input, output) output = &SetRepositoryPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1241,17 +1361,18 @@ func (c *ECR) SetRepositoryPolicyRequest(input *SetRepositoryPolicyInput) (req * // API operation SetRepositoryPolicy for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/SetRepositoryPolicy func (c *ECR) SetRepositoryPolicy(input *SetRepositoryPolicyInput) (*SetRepositoryPolicyOutput, error) { req, out := c.SetRepositoryPolicyRequest(input) err := req.Send() @@ -1284,6 +1405,7 @@ const opUploadLayerPart = "UploadLayerPart" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/UploadLayerPart func (c *ECR) UploadLayerPartRequest(input *UploadLayerPartInput) (req *request.Request, output *UploadLayerPartOutput) { op := &request.Operation{ Name: opUploadLayerPart, @@ -1295,9 +1417,8 @@ func (c *ECR) UploadLayerPartRequest(input *UploadLayerPartInput) (req *request. input = &UploadLayerPartInput{} } - req = c.newRequest(op, input, output) output = &UploadLayerPartOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1305,8 +1426,9 @@ func (c *ECR) UploadLayerPartRequest(input *UploadLayerPartInput) (req *request. // // Uploads an image layer part to Amazon ECR. // -// This operation is used by the Amazon ECR proxy, and it is not intended -// for general use by customers. Use the docker CLI to pull, tag, and push images. +// This operation is used by the Amazon ECR proxy, and it is not intended for +// general use by customers for pulling and pushing images. In most cases, you +// should use the docker CLI to pull, tag, and push images. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1316,31 +1438,32 @@ func (c *ECR) UploadLayerPartRequest(input *UploadLayerPartInput) (req *request. // API operation UploadLayerPart for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server-side issue. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * InvalidLayerPartException +// * ErrCodeInvalidLayerPartException "InvalidLayerPartException" // The layer part size is not valid, or the first byte specified is not consecutive // to the last byte of a previous layer part upload. // -// * RepositoryNotFoundException +// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * UploadNotFoundException +// * ErrCodeUploadNotFoundException "UploadNotFoundException" // The upload could not be found, or the specified upload id is not valid for // this repository. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The operation did not succeed because it would have exceeded a service limit // for your account. For more information, see Amazon ECR Default Service Limits // (http://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html) // in the Amazon EC2 Container Registry User Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/UploadLayerPart func (c *ECR) UploadLayerPart(input *UploadLayerPartInput) (*UploadLayerPartOutput, error) { req, out := c.UploadLayerPartRequest(input) err := req.Send() @@ -1348,6 +1471,7 @@ func (c *ECR) UploadLayerPart(input *UploadLayerPartInput) (*UploadLayerPartOutp } // An object representing authorization data for an Amazon ECR registry. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/AuthorizationData type AuthorizationData struct { _ struct{} `type:"structure"` @@ -1376,6 +1500,25 @@ func (s AuthorizationData) GoString() string { return s.String() } +// SetAuthorizationToken sets the AuthorizationToken field's value. +func (s *AuthorizationData) SetAuthorizationToken(v string) *AuthorizationData { + s.AuthorizationToken = &v + return s +} + +// SetExpiresAt sets the ExpiresAt field's value. +func (s *AuthorizationData) SetExpiresAt(v time.Time) *AuthorizationData { + s.ExpiresAt = &v + return s +} + +// SetProxyEndpoint sets the ProxyEndpoint field's value. +func (s *AuthorizationData) SetProxyEndpoint(v string) *AuthorizationData { + s.ProxyEndpoint = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchCheckLayerAvailabilityRequest type BatchCheckLayerAvailabilityInput struct { _ struct{} `type:"structure"` @@ -1426,6 +1569,25 @@ func (s *BatchCheckLayerAvailabilityInput) Validate() error { return nil } +// SetLayerDigests sets the LayerDigests field's value. +func (s *BatchCheckLayerAvailabilityInput) SetLayerDigests(v []*string) *BatchCheckLayerAvailabilityInput { + s.LayerDigests = v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *BatchCheckLayerAvailabilityInput) SetRegistryId(v string) *BatchCheckLayerAvailabilityInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *BatchCheckLayerAvailabilityInput) SetRepositoryName(v string) *BatchCheckLayerAvailabilityInput { + s.RepositoryName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchCheckLayerAvailabilityResponse type BatchCheckLayerAvailabilityOutput struct { _ struct{} `type:"structure"` @@ -1447,8 +1609,21 @@ func (s BatchCheckLayerAvailabilityOutput) GoString() string { return s.String() } +// SetFailures sets the Failures field's value. +func (s *BatchCheckLayerAvailabilityOutput) SetFailures(v []*LayerFailure) *BatchCheckLayerAvailabilityOutput { + s.Failures = v + return s +} + +// SetLayers sets the Layers field's value. +func (s *BatchCheckLayerAvailabilityOutput) SetLayers(v []*Layer) *BatchCheckLayerAvailabilityOutput { + s.Layers = v + return s +} + // Deletes specified images within a specified repository. Images are specified // with either the imageTag or imageDigest. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchDeleteImageRequest type BatchDeleteImageInput struct { _ struct{} `type:"structure"` @@ -1500,6 +1675,25 @@ func (s *BatchDeleteImageInput) Validate() error { return nil } +// SetImageIds sets the ImageIds field's value. +func (s *BatchDeleteImageInput) SetImageIds(v []*ImageIdentifier) *BatchDeleteImageInput { + s.ImageIds = v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *BatchDeleteImageInput) SetRegistryId(v string) *BatchDeleteImageInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *BatchDeleteImageInput) SetRepositoryName(v string) *BatchDeleteImageInput { + s.RepositoryName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchDeleteImageResponse type BatchDeleteImageOutput struct { _ struct{} `type:"structure"` @@ -1520,9 +1714,28 @@ func (s BatchDeleteImageOutput) GoString() string { return s.String() } +// SetFailures sets the Failures field's value. +func (s *BatchDeleteImageOutput) SetFailures(v []*ImageFailure) *BatchDeleteImageOutput { + s.Failures = v + return s +} + +// SetImageIds sets the ImageIds field's value. +func (s *BatchDeleteImageOutput) SetImageIds(v []*ImageIdentifier) *BatchDeleteImageOutput { + s.ImageIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchGetImageRequest type BatchGetImageInput struct { _ struct{} `type:"structure"` + // The accepted media types for the request. + // + // Valid values: application/vnd.docker.distribution.manifest.v1+json | application/vnd.docker.distribution.manifest.v2+json + // | application/vnd.oci.image.manifest.v1+json + AcceptedMediaTypes []*string `locationName:"acceptedMediaTypes" min:"1" type:"list"` + // A list of image ID references that correspond to images to describe. The // format of the imageIds reference is imageTag=tag or imageDigest=digest. // @@ -1552,6 +1765,9 @@ func (s BatchGetImageInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *BatchGetImageInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "BatchGetImageInput"} + if s.AcceptedMediaTypes != nil && len(s.AcceptedMediaTypes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AcceptedMediaTypes", 1)) + } if s.ImageIds == nil { invalidParams.Add(request.NewErrParamRequired("ImageIds")) } @@ -1571,6 +1787,31 @@ func (s *BatchGetImageInput) Validate() error { return nil } +// SetAcceptedMediaTypes sets the AcceptedMediaTypes field's value. +func (s *BatchGetImageInput) SetAcceptedMediaTypes(v []*string) *BatchGetImageInput { + s.AcceptedMediaTypes = v + return s +} + +// SetImageIds sets the ImageIds field's value. +func (s *BatchGetImageInput) SetImageIds(v []*ImageIdentifier) *BatchGetImageInput { + s.ImageIds = v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *BatchGetImageInput) SetRegistryId(v string) *BatchGetImageInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *BatchGetImageInput) SetRepositoryName(v string) *BatchGetImageInput { + s.RepositoryName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchGetImageResponse type BatchGetImageOutput struct { _ struct{} `type:"structure"` @@ -1591,6 +1832,19 @@ func (s BatchGetImageOutput) GoString() string { return s.String() } +// SetFailures sets the Failures field's value. +func (s *BatchGetImageOutput) SetFailures(v []*ImageFailure) *BatchGetImageOutput { + s.Failures = v + return s +} + +// SetImages sets the Images field's value. +func (s *BatchGetImageOutput) SetImages(v []*Image) *BatchGetImageOutput { + s.Images = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CompleteLayerUploadRequest type CompleteLayerUploadInput struct { _ struct{} `type:"structure"` @@ -1650,6 +1904,31 @@ func (s *CompleteLayerUploadInput) Validate() error { return nil } +// SetLayerDigests sets the LayerDigests field's value. +func (s *CompleteLayerUploadInput) SetLayerDigests(v []*string) *CompleteLayerUploadInput { + s.LayerDigests = v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *CompleteLayerUploadInput) SetRegistryId(v string) *CompleteLayerUploadInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *CompleteLayerUploadInput) SetRepositoryName(v string) *CompleteLayerUploadInput { + s.RepositoryName = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *CompleteLayerUploadInput) SetUploadId(v string) *CompleteLayerUploadInput { + s.UploadId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CompleteLayerUploadResponse type CompleteLayerUploadOutput struct { _ struct{} `type:"structure"` @@ -1676,6 +1955,31 @@ func (s CompleteLayerUploadOutput) GoString() string { return s.String() } +// SetLayerDigest sets the LayerDigest field's value. +func (s *CompleteLayerUploadOutput) SetLayerDigest(v string) *CompleteLayerUploadOutput { + s.LayerDigest = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *CompleteLayerUploadOutput) SetRegistryId(v string) *CompleteLayerUploadOutput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *CompleteLayerUploadOutput) SetRepositoryName(v string) *CompleteLayerUploadOutput { + s.RepositoryName = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *CompleteLayerUploadOutput) SetUploadId(v string) *CompleteLayerUploadOutput { + s.UploadId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreateRepositoryRequest type CreateRepositoryInput struct { _ struct{} `type:"structure"` @@ -1713,6 +2017,13 @@ func (s *CreateRepositoryInput) Validate() error { return nil } +// SetRepositoryName sets the RepositoryName field's value. +func (s *CreateRepositoryInput) SetRepositoryName(v string) *CreateRepositoryInput { + s.RepositoryName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreateRepositoryResponse type CreateRepositoryOutput struct { _ struct{} `type:"structure"` @@ -1730,6 +2041,13 @@ func (s CreateRepositoryOutput) GoString() string { return s.String() } +// SetRepository sets the Repository field's value. +func (s *CreateRepositoryOutput) SetRepository(v *Repository) *CreateRepositoryOutput { + s.Repository = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRepositoryRequest type DeleteRepositoryInput struct { _ struct{} `type:"structure"` @@ -1772,6 +2090,25 @@ func (s *DeleteRepositoryInput) Validate() error { return nil } +// SetForce sets the Force field's value. +func (s *DeleteRepositoryInput) SetForce(v bool) *DeleteRepositoryInput { + s.Force = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *DeleteRepositoryInput) SetRegistryId(v string) *DeleteRepositoryInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *DeleteRepositoryInput) SetRepositoryName(v string) *DeleteRepositoryInput { + s.RepositoryName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRepositoryResponse type DeleteRepositoryOutput struct { _ struct{} `type:"structure"` @@ -1789,6 +2126,13 @@ func (s DeleteRepositoryOutput) GoString() string { return s.String() } +// SetRepository sets the Repository field's value. +func (s *DeleteRepositoryOutput) SetRepository(v *Repository) *DeleteRepositoryOutput { + s.Repository = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRepositoryPolicyRequest type DeleteRepositoryPolicyInput struct { _ struct{} `type:"structure"` @@ -1830,6 +2174,19 @@ func (s *DeleteRepositoryPolicyInput) Validate() error { return nil } +// SetRegistryId sets the RegistryId field's value. +func (s *DeleteRepositoryPolicyInput) SetRegistryId(v string) *DeleteRepositoryPolicyInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *DeleteRepositoryPolicyInput) SetRepositoryName(v string) *DeleteRepositoryPolicyInput { + s.RepositoryName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRepositoryPolicyResponse type DeleteRepositoryPolicyOutput struct { _ struct{} `type:"structure"` @@ -1853,7 +2210,26 @@ func (s DeleteRepositoryPolicyOutput) GoString() string { return s.String() } +// SetPolicyText sets the PolicyText field's value. +func (s *DeleteRepositoryPolicyOutput) SetPolicyText(v string) *DeleteRepositoryPolicyOutput { + s.PolicyText = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *DeleteRepositoryPolicyOutput) SetRegistryId(v string) *DeleteRepositoryPolicyOutput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *DeleteRepositoryPolicyOutput) SetRepositoryName(v string) *DeleteRepositoryPolicyOutput { + s.RepositoryName = &v + return s +} + // An object representing a filter on a DescribeImages operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeImagesFilter type DescribeImagesFilter struct { _ struct{} `type:"structure"` @@ -1872,6 +2248,13 @@ func (s DescribeImagesFilter) GoString() string { return s.String() } +// SetTagStatus sets the TagStatus field's value. +func (s *DescribeImagesFilter) SetTagStatus(v string) *DescribeImagesFilter { + s.TagStatus = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeImagesRequest type DescribeImagesInput struct { _ struct{} `type:"structure"` @@ -1897,8 +2280,8 @@ type DescribeImagesInput struct { NextToken *string `locationName:"nextToken" type:"string"` // The AWS account ID associated with the registry that contains the repository - // in which to list images. If you do not specify a registry, the default registry - // is assumed. + // in which to describe images. If you do not specify a registry, the default + // registry is assumed. RegistryId *string `locationName:"registryId" type:"string"` // A list of repositories to describe. If this parameter is omitted, then all @@ -1940,6 +2323,43 @@ func (s *DescribeImagesInput) Validate() error { return nil } +// SetFilter sets the Filter field's value. +func (s *DescribeImagesInput) SetFilter(v *DescribeImagesFilter) *DescribeImagesInput { + s.Filter = v + return s +} + +// SetImageIds sets the ImageIds field's value. +func (s *DescribeImagesInput) SetImageIds(v []*ImageIdentifier) *DescribeImagesInput { + s.ImageIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeImagesInput) SetMaxResults(v int64) *DescribeImagesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeImagesInput) SetNextToken(v string) *DescribeImagesInput { + s.NextToken = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *DescribeImagesInput) SetRegistryId(v string) *DescribeImagesInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *DescribeImagesInput) SetRepositoryName(v string) *DescribeImagesInput { + s.RepositoryName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeImagesResponse type DescribeImagesOutput struct { _ struct{} `type:"structure"` @@ -1963,6 +2383,19 @@ func (s DescribeImagesOutput) GoString() string { return s.String() } +// SetImageDetails sets the ImageDetails field's value. +func (s *DescribeImagesOutput) SetImageDetails(v []*ImageDetail) *DescribeImagesOutput { + s.ImageDetails = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeImagesOutput) SetNextToken(v string) *DescribeImagesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeRepositoriesRequest type DescribeRepositoriesInput struct { _ struct{} `type:"structure"` @@ -1981,8 +2414,8 @@ type DescribeRepositoriesInput struct { // returned the nextToken value. This value is null when there are no more results // to return. // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` // The AWS account ID associated with the registry that contains the repositories @@ -2021,6 +2454,31 @@ func (s *DescribeRepositoriesInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeRepositoriesInput) SetMaxResults(v int64) *DescribeRepositoriesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeRepositoriesInput) SetNextToken(v string) *DescribeRepositoriesInput { + s.NextToken = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *DescribeRepositoriesInput) SetRegistryId(v string) *DescribeRepositoriesInput { + s.RegistryId = &v + return s +} + +// SetRepositoryNames sets the RepositoryNames field's value. +func (s *DescribeRepositoriesInput) SetRepositoryNames(v []*string) *DescribeRepositoriesInput { + s.RepositoryNames = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeRepositoriesResponse type DescribeRepositoriesOutput struct { _ struct{} `type:"structure"` @@ -2044,6 +2502,19 @@ func (s DescribeRepositoriesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeRepositoriesOutput) SetNextToken(v string) *DescribeRepositoriesOutput { + s.NextToken = &v + return s +} + +// SetRepositories sets the Repositories field's value. +func (s *DescribeRepositoriesOutput) SetRepositories(v []*Repository) *DescribeRepositoriesOutput { + s.Repositories = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetAuthorizationTokenRequest type GetAuthorizationTokenInput struct { _ struct{} `type:"structure"` @@ -2076,6 +2547,13 @@ func (s *GetAuthorizationTokenInput) Validate() error { return nil } +// SetRegistryIds sets the RegistryIds field's value. +func (s *GetAuthorizationTokenInput) SetRegistryIds(v []*string) *GetAuthorizationTokenInput { + s.RegistryIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetAuthorizationTokenResponse type GetAuthorizationTokenOutput struct { _ struct{} `type:"structure"` @@ -2094,6 +2572,13 @@ func (s GetAuthorizationTokenOutput) GoString() string { return s.String() } +// SetAuthorizationData sets the AuthorizationData field's value. +func (s *GetAuthorizationTokenOutput) SetAuthorizationData(v []*AuthorizationData) *GetAuthorizationTokenOutput { + s.AuthorizationData = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetDownloadUrlForLayerRequest type GetDownloadUrlForLayerInput struct { _ struct{} `type:"structure"` @@ -2141,6 +2626,25 @@ func (s *GetDownloadUrlForLayerInput) Validate() error { return nil } +// SetLayerDigest sets the LayerDigest field's value. +func (s *GetDownloadUrlForLayerInput) SetLayerDigest(v string) *GetDownloadUrlForLayerInput { + s.LayerDigest = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *GetDownloadUrlForLayerInput) SetRegistryId(v string) *GetDownloadUrlForLayerInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetDownloadUrlForLayerInput) SetRepositoryName(v string) *GetDownloadUrlForLayerInput { + s.RepositoryName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetDownloadUrlForLayerResponse type GetDownloadUrlForLayerOutput struct { _ struct{} `type:"structure"` @@ -2161,6 +2665,19 @@ func (s GetDownloadUrlForLayerOutput) GoString() string { return s.String() } +// SetDownloadUrl sets the DownloadUrl field's value. +func (s *GetDownloadUrlForLayerOutput) SetDownloadUrl(v string) *GetDownloadUrlForLayerOutput { + s.DownloadUrl = &v + return s +} + +// SetLayerDigest sets the LayerDigest field's value. +func (s *GetDownloadUrlForLayerOutput) SetLayerDigest(v string) *GetDownloadUrlForLayerOutput { + s.LayerDigest = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetRepositoryPolicyRequest type GetRepositoryPolicyInput struct { _ struct{} `type:"structure"` @@ -2200,6 +2717,19 @@ func (s *GetRepositoryPolicyInput) Validate() error { return nil } +// SetRegistryId sets the RegistryId field's value. +func (s *GetRepositoryPolicyInput) SetRegistryId(v string) *GetRepositoryPolicyInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetRepositoryPolicyInput) SetRepositoryName(v string) *GetRepositoryPolicyInput { + s.RepositoryName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetRepositoryPolicyResponse type GetRepositoryPolicyOutput struct { _ struct{} `type:"structure"` @@ -2223,7 +2753,26 @@ func (s GetRepositoryPolicyOutput) GoString() string { return s.String() } +// SetPolicyText sets the PolicyText field's value. +func (s *GetRepositoryPolicyOutput) SetPolicyText(v string) *GetRepositoryPolicyOutput { + s.PolicyText = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *GetRepositoryPolicyOutput) SetRegistryId(v string) *GetRepositoryPolicyOutput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetRepositoryPolicyOutput) SetRepositoryName(v string) *GetRepositoryPolicyOutput { + s.RepositoryName = &v + return s +} + // An object representing an Amazon ECR image. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/Image type Image struct { _ struct{} `type:"structure"` @@ -2250,7 +2799,32 @@ func (s Image) GoString() string { return s.String() } +// SetImageId sets the ImageId field's value. +func (s *Image) SetImageId(v *ImageIdentifier) *Image { + s.ImageId = v + return s +} + +// SetImageManifest sets the ImageManifest field's value. +func (s *Image) SetImageManifest(v string) *Image { + s.ImageManifest = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *Image) SetRegistryId(v string) *Image { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *Image) SetRepositoryName(v string) *Image { + s.RepositoryName = &v + return s +} + // An object that describes an image returned by a DescribeImages operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageDetail type ImageDetail struct { _ struct{} `type:"structure"` @@ -2263,7 +2837,7 @@ type ImageDetail struct { // The size, in bytes, of the image in the repository. // - // Beginning with Docker version 1.9, the Docker client compresses image layers + // Beginning with Docker version 1.9, the Docker client compresses image layers // before pushing them to a V2 Docker registry. The output of the docker images // command shows the uncompressed image size, so it may return a larger image // size than the image sizes returned by DescribeImages. @@ -2289,7 +2863,44 @@ func (s ImageDetail) GoString() string { return s.String() } +// SetImageDigest sets the ImageDigest field's value. +func (s *ImageDetail) SetImageDigest(v string) *ImageDetail { + s.ImageDigest = &v + return s +} + +// SetImagePushedAt sets the ImagePushedAt field's value. +func (s *ImageDetail) SetImagePushedAt(v time.Time) *ImageDetail { + s.ImagePushedAt = &v + return s +} + +// SetImageSizeInBytes sets the ImageSizeInBytes field's value. +func (s *ImageDetail) SetImageSizeInBytes(v int64) *ImageDetail { + s.ImageSizeInBytes = &v + return s +} + +// SetImageTags sets the ImageTags field's value. +func (s *ImageDetail) SetImageTags(v []*string) *ImageDetail { + s.ImageTags = v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *ImageDetail) SetRegistryId(v string) *ImageDetail { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *ImageDetail) SetRepositoryName(v string) *ImageDetail { + s.RepositoryName = &v + return s +} + // An object representing an Amazon ECR image failure. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageFailure type ImageFailure struct { _ struct{} `type:"structure"` @@ -2313,7 +2924,26 @@ func (s ImageFailure) GoString() string { return s.String() } +// SetFailureCode sets the FailureCode field's value. +func (s *ImageFailure) SetFailureCode(v string) *ImageFailure { + s.FailureCode = &v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *ImageFailure) SetFailureReason(v string) *ImageFailure { + s.FailureReason = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *ImageFailure) SetImageId(v *ImageIdentifier) *ImageFailure { + s.ImageId = v + return s +} + // An object with identifying information for an Amazon ECR image. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageIdentifier type ImageIdentifier struct { _ struct{} `type:"structure"` @@ -2334,6 +2964,19 @@ func (s ImageIdentifier) GoString() string { return s.String() } +// SetImageDigest sets the ImageDigest field's value. +func (s *ImageIdentifier) SetImageDigest(v string) *ImageIdentifier { + s.ImageDigest = &v + return s +} + +// SetImageTag sets the ImageTag field's value. +func (s *ImageIdentifier) SetImageTag(v string) *ImageIdentifier { + s.ImageTag = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/InitiateLayerUploadRequest type InitiateLayerUploadInput struct { _ struct{} `type:"structure"` @@ -2373,6 +3016,19 @@ func (s *InitiateLayerUploadInput) Validate() error { return nil } +// SetRegistryId sets the RegistryId field's value. +func (s *InitiateLayerUploadInput) SetRegistryId(v string) *InitiateLayerUploadInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *InitiateLayerUploadInput) SetRepositoryName(v string) *InitiateLayerUploadInput { + s.RepositoryName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/InitiateLayerUploadResponse type InitiateLayerUploadOutput struct { _ struct{} `type:"structure"` @@ -2395,12 +3051,24 @@ func (s InitiateLayerUploadOutput) GoString() string { return s.String() } +// SetPartSize sets the PartSize field's value. +func (s *InitiateLayerUploadOutput) SetPartSize(v int64) *InitiateLayerUploadOutput { + s.PartSize = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *InitiateLayerUploadOutput) SetUploadId(v string) *InitiateLayerUploadOutput { + s.UploadId = &v + return s +} + // An object representing an Amazon ECR image layer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/Layer type Layer struct { _ struct{} `type:"structure"` - // The availability status of the image layer. Valid values are AVAILABLE and - // UNAVAILABLE. + // The availability status of the image layer. LayerAvailability *string `locationName:"layerAvailability" type:"string" enum:"LayerAvailability"` // The sha256 digest of the image layer. @@ -2408,6 +3076,10 @@ type Layer struct { // The size, in bytes, of the image layer. LayerSize *int64 `locationName:"layerSize" type:"long"` + + // The media type of the layer, such as application/vnd.docker.image.rootfs.diff.tar.gzip + // or application/vnd.oci.image.layer.v1.tar+gzip. + MediaType *string `locationName:"mediaType" type:"string"` } // String returns the string representation @@ -2420,7 +3092,32 @@ func (s Layer) GoString() string { return s.String() } +// SetLayerAvailability sets the LayerAvailability field's value. +func (s *Layer) SetLayerAvailability(v string) *Layer { + s.LayerAvailability = &v + return s +} + +// SetLayerDigest sets the LayerDigest field's value. +func (s *Layer) SetLayerDigest(v string) *Layer { + s.LayerDigest = &v + return s +} + +// SetLayerSize sets the LayerSize field's value. +func (s *Layer) SetLayerSize(v int64) *Layer { + s.LayerSize = &v + return s +} + +// SetMediaType sets the MediaType field's value. +func (s *Layer) SetMediaType(v string) *Layer { + s.MediaType = &v + return s +} + // An object representing an Amazon ECR image layer failure. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/LayerFailure type LayerFailure struct { _ struct{} `type:"structure"` @@ -2444,7 +3141,26 @@ func (s LayerFailure) GoString() string { return s.String() } +// SetFailureCode sets the FailureCode field's value. +func (s *LayerFailure) SetFailureCode(v string) *LayerFailure { + s.FailureCode = &v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *LayerFailure) SetFailureReason(v string) *LayerFailure { + s.FailureReason = &v + return s +} + +// SetLayerDigest sets the LayerDigest field's value. +func (s *LayerFailure) SetLayerDigest(v string) *LayerFailure { + s.LayerDigest = &v + return s +} + // An object representing a filter on a ListImages operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ListImagesFilter type ListImagesFilter struct { _ struct{} `type:"structure"` @@ -2463,6 +3179,13 @@ func (s ListImagesFilter) GoString() string { return s.String() } +// SetTagStatus sets the TagStatus field's value. +func (s *ListImagesFilter) SetTagStatus(v string) *ListImagesFilter { + s.TagStatus = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ListImagesRequest type ListImagesInput struct { _ struct{} `type:"structure"` @@ -2483,8 +3206,8 @@ type ListImagesInput struct { // Pagination continues from the end of the previous results that returned the // nextToken value. This value is null when there are no more results to return. // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` // The AWS account ID associated with the registry that contains the repository @@ -2527,6 +3250,37 @@ func (s *ListImagesInput) Validate() error { return nil } +// SetFilter sets the Filter field's value. +func (s *ListImagesInput) SetFilter(v *ListImagesFilter) *ListImagesInput { + s.Filter = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListImagesInput) SetMaxResults(v int64) *ListImagesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListImagesInput) SetNextToken(v string) *ListImagesInput { + s.NextToken = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *ListImagesInput) SetRegistryId(v string) *ListImagesInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *ListImagesInput) SetRepositoryName(v string) *ListImagesInput { + s.RepositoryName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ListImagesResponse type ListImagesOutput struct { _ struct{} `type:"structure"` @@ -2550,6 +3304,19 @@ func (s ListImagesOutput) GoString() string { return s.String() } +// SetImageIds sets the ImageIds field's value. +func (s *ListImagesOutput) SetImageIds(v []*ImageIdentifier) *ListImagesOutput { + s.ImageIds = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListImagesOutput) SetNextToken(v string) *ListImagesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutImageRequest type PutImageInput struct { _ struct{} `type:"structure"` @@ -2558,6 +3325,10 @@ type PutImageInput struct { // ImageManifest is a required field ImageManifest *string `locationName:"imageManifest" type:"string" required:"true"` + // The tag to associate with the image. This parameter is required for images + // that use the Docker Image Manifest V2 Schema 2 or OCI formats. + ImageTag *string `locationName:"imageTag" type:"string"` + // The AWS account ID associated with the registry that contains the repository // in which to put the image. If you do not specify a registry, the default // registry is assumed. @@ -2598,6 +3369,31 @@ func (s *PutImageInput) Validate() error { return nil } +// SetImageManifest sets the ImageManifest field's value. +func (s *PutImageInput) SetImageManifest(v string) *PutImageInput { + s.ImageManifest = &v + return s +} + +// SetImageTag sets the ImageTag field's value. +func (s *PutImageInput) SetImageTag(v string) *PutImageInput { + s.ImageTag = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *PutImageInput) SetRegistryId(v string) *PutImageInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *PutImageInput) SetRepositoryName(v string) *PutImageInput { + s.RepositoryName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutImageResponse type PutImageOutput struct { _ struct{} `type:"structure"` @@ -2615,7 +3411,14 @@ func (s PutImageOutput) GoString() string { return s.String() } +// SetImage sets the Image field's value. +func (s *PutImageOutput) SetImage(v *Image) *PutImageOutput { + s.Image = v + return s +} + // An object representing a repository. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/Repository type Repository struct { _ struct{} `type:"structure"` @@ -2650,6 +3453,37 @@ func (s Repository) GoString() string { return s.String() } +// SetCreatedAt sets the CreatedAt field's value. +func (s *Repository) SetCreatedAt(v time.Time) *Repository { + s.CreatedAt = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *Repository) SetRegistryId(v string) *Repository { + s.RegistryId = &v + return s +} + +// SetRepositoryArn sets the RepositoryArn field's value. +func (s *Repository) SetRepositoryArn(v string) *Repository { + s.RepositoryArn = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *Repository) SetRepositoryName(v string) *Repository { + s.RepositoryName = &v + return s +} + +// SetRepositoryUri sets the RepositoryUri field's value. +func (s *Repository) SetRepositoryUri(v string) *Repository { + s.RepositoryUri = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/SetRepositoryPolicyRequest type SetRepositoryPolicyInput struct { _ struct{} `type:"structure"` @@ -2702,6 +3536,31 @@ func (s *SetRepositoryPolicyInput) Validate() error { return nil } +// SetForce sets the Force field's value. +func (s *SetRepositoryPolicyInput) SetForce(v bool) *SetRepositoryPolicyInput { + s.Force = &v + return s +} + +// SetPolicyText sets the PolicyText field's value. +func (s *SetRepositoryPolicyInput) SetPolicyText(v string) *SetRepositoryPolicyInput { + s.PolicyText = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *SetRepositoryPolicyInput) SetRegistryId(v string) *SetRepositoryPolicyInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *SetRepositoryPolicyInput) SetRepositoryName(v string) *SetRepositoryPolicyInput { + s.RepositoryName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/SetRepositoryPolicyResponse type SetRepositoryPolicyOutput struct { _ struct{} `type:"structure"` @@ -2725,6 +3584,25 @@ func (s SetRepositoryPolicyOutput) GoString() string { return s.String() } +// SetPolicyText sets the PolicyText field's value. +func (s *SetRepositoryPolicyOutput) SetPolicyText(v string) *SetRepositoryPolicyOutput { + s.PolicyText = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *SetRepositoryPolicyOutput) SetRegistryId(v string) *SetRepositoryPolicyOutput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *SetRepositoryPolicyOutput) SetRepositoryName(v string) *SetRepositoryPolicyOutput { + s.RepositoryName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/UploadLayerPartRequest type UploadLayerPartInput struct { _ struct{} `type:"structure"` @@ -2799,6 +3677,43 @@ func (s *UploadLayerPartInput) Validate() error { return nil } +// SetLayerPartBlob sets the LayerPartBlob field's value. +func (s *UploadLayerPartInput) SetLayerPartBlob(v []byte) *UploadLayerPartInput { + s.LayerPartBlob = v + return s +} + +// SetPartFirstByte sets the PartFirstByte field's value. +func (s *UploadLayerPartInput) SetPartFirstByte(v int64) *UploadLayerPartInput { + s.PartFirstByte = &v + return s +} + +// SetPartLastByte sets the PartLastByte field's value. +func (s *UploadLayerPartInput) SetPartLastByte(v int64) *UploadLayerPartInput { + s.PartLastByte = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *UploadLayerPartInput) SetRegistryId(v string) *UploadLayerPartInput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *UploadLayerPartInput) SetRepositoryName(v string) *UploadLayerPartInput { + s.RepositoryName = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *UploadLayerPartInput) SetUploadId(v string) *UploadLayerPartInput { + s.UploadId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/UploadLayerPartResponse type UploadLayerPartOutput struct { _ struct{} `type:"structure"` @@ -2825,6 +3740,30 @@ func (s UploadLayerPartOutput) GoString() string { return s.String() } +// SetLastByteReceived sets the LastByteReceived field's value. +func (s *UploadLayerPartOutput) SetLastByteReceived(v int64) *UploadLayerPartOutput { + s.LastByteReceived = &v + return s +} + +// SetRegistryId sets the RegistryId field's value. +func (s *UploadLayerPartOutput) SetRegistryId(v string) *UploadLayerPartOutput { + s.RegistryId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *UploadLayerPartOutput) SetRepositoryName(v string) *UploadLayerPartOutput { + s.RepositoryName = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *UploadLayerPartOutput) SetUploadId(v string) *UploadLayerPartOutput { + s.UploadId = &v + return s +} + const ( // ImageFailureCodeInvalidImageDigest is a ImageFailureCode enum value ImageFailureCodeInvalidImageDigest = "InvalidImageDigest" diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecr/ecriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/ecr/ecriface/interface.go index 01189e37a..2bf0e561e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecr/ecriface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecr/ecriface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockECRClient{} // @@ -91,10 +91,14 @@ type ECRAPI interface { DescribeImages(*ecr.DescribeImagesInput) (*ecr.DescribeImagesOutput, error) + DescribeImagesPages(*ecr.DescribeImagesInput, func(*ecr.DescribeImagesOutput, bool) bool) error + DescribeRepositoriesRequest(*ecr.DescribeRepositoriesInput) (*request.Request, *ecr.DescribeRepositoriesOutput) DescribeRepositories(*ecr.DescribeRepositoriesInput) (*ecr.DescribeRepositoriesOutput, error) + DescribeRepositoriesPages(*ecr.DescribeRepositoriesInput, func(*ecr.DescribeRepositoriesOutput, bool) bool) error + GetAuthorizationTokenRequest(*ecr.GetAuthorizationTokenInput) (*request.Request, *ecr.GetAuthorizationTokenOutput) GetAuthorizationToken(*ecr.GetAuthorizationTokenInput) (*ecr.GetAuthorizationTokenOutput, error) @@ -115,6 +119,8 @@ type ECRAPI interface { ListImages(*ecr.ListImagesInput) (*ecr.ListImagesOutput, error) + ListImagesPages(*ecr.ListImagesInput, func(*ecr.ListImagesOutput, bool) bool) error + PutImageRequest(*ecr.PutImageInput) (*request.Request, *ecr.PutImageOutput) PutImage(*ecr.PutImageInput) (*ecr.PutImageOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecr/errors.go b/vendor/github.com/aws/aws-sdk-go/service/ecr/errors.go new file mode 100644 index 000000000..c51948bc7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/ecr/errors.go @@ -0,0 +1,121 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package ecr + +const ( + + // ErrCodeEmptyUploadException for service response error code + // "EmptyUploadException". + // + // The specified layer upload does not contain any layer parts. + ErrCodeEmptyUploadException = "EmptyUploadException" + + // ErrCodeImageAlreadyExistsException for service response error code + // "ImageAlreadyExistsException". + // + // The specified image has already been pushed, and there are no changes to + // the manifest or image tag since the last push. + ErrCodeImageAlreadyExistsException = "ImageAlreadyExistsException" + + // ErrCodeImageNotFoundException for service response error code + // "ImageNotFoundException". + // + // The image requested does not exist in the specified repository. + ErrCodeImageNotFoundException = "ImageNotFoundException" + + // ErrCodeInvalidLayerException for service response error code + // "InvalidLayerException". + // + // The layer digest calculation performed by Amazon ECR upon receipt of the + // image layer does not match the digest specified. + ErrCodeInvalidLayerException = "InvalidLayerException" + + // ErrCodeInvalidLayerPartException for service response error code + // "InvalidLayerPartException". + // + // The layer part size is not valid, or the first byte specified is not consecutive + // to the last byte of a previous layer part upload. + ErrCodeInvalidLayerPartException = "InvalidLayerPartException" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameterException". + // + // The specified parameter is invalid. Review the available parameters for the + // API request. + ErrCodeInvalidParameterException = "InvalidParameterException" + + // ErrCodeLayerAlreadyExistsException for service response error code + // "LayerAlreadyExistsException". + // + // The image layer already exists in the associated repository. + ErrCodeLayerAlreadyExistsException = "LayerAlreadyExistsException" + + // ErrCodeLayerInaccessibleException for service response error code + // "LayerInaccessibleException". + // + // The specified layer is not available because it is not associated with an + // image. Unassociated image layers may be cleaned up at any time. + ErrCodeLayerInaccessibleException = "LayerInaccessibleException" + + // ErrCodeLayerPartTooSmallException for service response error code + // "LayerPartTooSmallException". + // + // Layer parts must be at least 5 MiB in size. + ErrCodeLayerPartTooSmallException = "LayerPartTooSmallException" + + // ErrCodeLayersNotFoundException for service response error code + // "LayersNotFoundException". + // + // The specified layers could not be found, or the specified layer is not valid + // for this repository. + ErrCodeLayersNotFoundException = "LayersNotFoundException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // The operation did not succeed because it would have exceeded a service limit + // for your account. For more information, see Amazon ECR Default Service Limits + // (http://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html) + // in the Amazon EC2 Container Registry User Guide. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeRepositoryAlreadyExistsException for service response error code + // "RepositoryAlreadyExistsException". + // + // The specified repository already exists in the specified registry. + ErrCodeRepositoryAlreadyExistsException = "RepositoryAlreadyExistsException" + + // ErrCodeRepositoryNotEmptyException for service response error code + // "RepositoryNotEmptyException". + // + // The specified repository contains images. To delete a repository that contains + // images, you must force the deletion with the force parameter. + ErrCodeRepositoryNotEmptyException = "RepositoryNotEmptyException" + + // ErrCodeRepositoryNotFoundException for service response error code + // "RepositoryNotFoundException". + // + // The specified repository could not be found. Check the spelling of the specified + // repository and ensure that you are performing operations on the correct registry. + ErrCodeRepositoryNotFoundException = "RepositoryNotFoundException" + + // ErrCodeRepositoryPolicyNotFoundException for service response error code + // "RepositoryPolicyNotFoundException". + // + // The specified repository and registry combination does not have an associated + // repository policy. + ErrCodeRepositoryPolicyNotFoundException = "RepositoryPolicyNotFoundException" + + // ErrCodeServerException for service response error code + // "ServerException". + // + // These errors are usually caused by a server-side issue. + ErrCodeServerException = "ServerException" + + // ErrCodeUploadNotFoundException for service response error code + // "UploadNotFoundException". + // + // The upload could not be found, or the specified upload id is not valid for + // this repository. + ErrCodeUploadNotFoundException = "UploadNotFoundException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecr/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/ecr/examples_test.go index 94527a41c..5973632d9 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecr/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecr/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleECR_BatchCheckLayerAvailability() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -46,11 +42,7 @@ func ExampleECR_BatchCheckLayerAvailability() { } func ExampleECR_BatchDeleteImage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -79,11 +71,7 @@ func ExampleECR_BatchDeleteImage() { } func ExampleECR_BatchGetImage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -96,7 +84,11 @@ func ExampleECR_BatchGetImage() { // More values... }, RepositoryName: aws.String("RepositoryName"), // Required - RegistryId: aws.String("RegistryId"), + AcceptedMediaTypes: []*string{ + aws.String("MediaType"), // Required + // More values... + }, + RegistryId: aws.String("RegistryId"), } resp, err := svc.BatchGetImage(params) @@ -112,11 +104,7 @@ func ExampleECR_BatchGetImage() { } func ExampleECR_CompleteLayerUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -143,11 +131,7 @@ func ExampleECR_CompleteLayerUpload() { } func ExampleECR_CreateRepository() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -168,11 +152,7 @@ func ExampleECR_CreateRepository() { } func ExampleECR_DeleteRepository() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -195,11 +175,7 @@ func ExampleECR_DeleteRepository() { } func ExampleECR_DeleteRepositoryPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -221,11 +197,7 @@ func ExampleECR_DeleteRepositoryPolicy() { } func ExampleECR_DescribeImages() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -259,11 +231,7 @@ func ExampleECR_DescribeImages() { } func ExampleECR_DescribeRepositories() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -290,11 +258,7 @@ func ExampleECR_DescribeRepositories() { } func ExampleECR_GetAuthorizationToken() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -318,11 +282,7 @@ func ExampleECR_GetAuthorizationToken() { } func ExampleECR_GetDownloadUrlForLayer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -345,11 +305,7 @@ func ExampleECR_GetDownloadUrlForLayer() { } func ExampleECR_GetRepositoryPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -371,11 +327,7 @@ func ExampleECR_GetRepositoryPolicy() { } func ExampleECR_InitiateLayerUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -397,11 +349,7 @@ func ExampleECR_InitiateLayerUpload() { } func ExampleECR_ListImages() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -428,17 +376,14 @@ func ExampleECR_ListImages() { } func ExampleECR_PutImage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) params := &ecr.PutImageInput{ ImageManifest: aws.String("ImageManifest"), // Required RepositoryName: aws.String("RepositoryName"), // Required + ImageTag: aws.String("ImageTag"), RegistryId: aws.String("RegistryId"), } resp, err := svc.PutImage(params) @@ -455,11 +400,7 @@ func ExampleECR_PutImage() { } func ExampleECR_SetRepositoryPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) @@ -483,11 +424,7 @@ func ExampleECR_SetRepositoryPolicy() { } func ExampleECR_UploadLayerPart() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecr.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecr/service.go b/vendor/github.com/aws/aws-sdk-go/service/ecr/service.go index 53e3c57e3..2c7904b75 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecr/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecr/service.go @@ -17,8 +17,9 @@ import ( // ECR supports private Docker repositories with resource-based permissions // using AWS IAM so that specific users or Amazon EC2 instances can access repositories // and images. Developers can use the Docker CLI to author and manage images. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21 type ECR struct { *client.Client } @@ -29,8 +30,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "ecr" +// Service information constants +const ( + ServiceName = "ecr" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the ECR client with a session. // If additional configuration is needed for the client instance use the optional @@ -43,17 +47,18 @@ const ServiceName = "ecr" // // Create a ECR client with additional configuration // svc := ecr.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ECR { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ECR { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *ECR { svc := &ECR{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-09-21", diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecs/api.go b/vendor/github.com/aws/aws-sdk-go/service/ecs/api.go index f05c92c72..68ccbd511 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecs/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecs/api.go @@ -37,6 +37,7 @@ const opCreateCluster = "CreateCluster" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/CreateCluster func (c *ECS) CreateClusterRequest(input *CreateClusterInput) (req *request.Request, output *CreateClusterOutput) { op := &request.Operation{ Name: opCreateCluster, @@ -48,9 +49,8 @@ func (c *ECS) CreateClusterRequest(input *CreateClusterInput) (req *request.Requ input = &CreateClusterInput{} } - req = c.newRequest(op, input, output) output = &CreateClusterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -68,18 +68,19 @@ func (c *ECS) CreateClusterRequest(input *CreateClusterInput) (req *request.Requ // API operation CreateCluster for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/CreateCluster func (c *ECS) CreateCluster(input *CreateClusterInput) (*CreateClusterOutput, error) { req, out := c.CreateClusterRequest(input) err := req.Send() @@ -112,6 +113,7 @@ const opCreateService = "CreateService" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/CreateService func (c *ECS) CreateServiceRequest(input *CreateServiceInput) (req *request.Request, output *CreateServiceOutput) { op := &request.Operation{ Name: opCreateService, @@ -123,9 +125,8 @@ func (c *ECS) CreateServiceRequest(input *CreateServiceInput) (req *request.Requ input = &CreateServiceInput{} } - req = c.newRequest(op, input, output) output = &CreateServiceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -133,8 +134,8 @@ func (c *ECS) CreateServiceRequest(input *CreateServiceInput) (req *request.Requ // // Runs and maintains a desired number of tasks from a specified task definition. // If the number of tasks running in a service drops below desiredCount, Amazon -// ECS spawns another instantiation of the task in the specified cluster. To -// update an existing service, see UpdateService. +// ECS spawns another copy of the task in the specified cluster. To update an +// existing service, see UpdateService. // // In addition to maintaining the desired count of tasks in your service, you // can optionally run your service behind a load balancer. The load balancer @@ -142,46 +143,53 @@ func (c *ECS) CreateServiceRequest(input *CreateServiceInput) (req *request.Requ // For more information, see Service Load Balancing (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-load-balancing.html) // in the Amazon EC2 Container Service Developer Guide. // -// You can optionally specify a deployment configuration for your service. -// During a deployment (which is triggered by changing the task definition of -// a service with an UpdateService operation), the service scheduler uses the -// minimumHealthyPercent and maximumPercent parameters to determine the deployment -// strategy. -// -// If the minimumHealthyPercent is below 100%, the scheduler can ignore the -// desiredCount temporarily during a deployment. For example, if your service -// has a desiredCount of four tasks, a minimumHealthyPercent of 50% allows the -// scheduler to stop two existing tasks before starting two new tasks. Tasks -// for services that do not use a load balancer are considered healthy if they -// are in the RUNNING state; tasks for services that do use a load balancer -// are considered healthy if they are in the RUNNING state and the container -// instance it is hosted on is reported as healthy by the load balancer. The -// default value for minimumHealthyPercent is 50% in the console and 100% for -// the AWS CLI, the AWS SDKs, and the APIs. -// -// The maximumPercent parameter represents an upper limit on the number of -// running tasks during a deployment, which enables you to define the deployment -// batch size. For example, if your service has a desiredCount of four tasks, -// a maximumPercent value of 200% starts four new tasks before stopping the -// four older tasks (provided that the cluster resources required to do this -// are available). The default value for maximumPercent is 200%. -// -// When the service scheduler launches new tasks, it attempts to balance them -// across the Availability Zones in your cluster with the following logic: -// -// Determine which of the container instances in your cluster can support -// your service's task definition (for example, they have the required CPU, -// memory, ports, and container instance attributes). -// -// Sort the valid container instances by the fewest number of running tasks -// for this service in the same Availability Zone as the instance. For example, -// if zone A has one running service task and zones B and C each have zero, -// valid container instances in either zone B or C are considered optimal for -// placement. -// -// Place the new service task on a valid container instance in an optimal -// Availability Zone (based on the previous steps), favoring container instances -// with the fewest number of running tasks for this service. +// You can optionally specify a deployment configuration for your service. During +// a deployment (which is triggered by changing the task definition or the desired +// count of a service with an UpdateService operation), the service scheduler +// uses the minimumHealthyPercent and maximumPercent parameters to determine +// the deployment strategy. +// +// The minimumHealthyPercent represents a lower limit on the number of your +// service's tasks that must remain in the RUNNING state during a deployment, +// as a percentage of the desiredCount (rounded up to the nearest integer). +// This parameter enables you to deploy without using additional cluster capacity. +// For example, if desiredCount is four tasks and the minimum is 50%, the scheduler +// can stop two existing tasks to free up cluster capacity before starting two +// new tasks. Tasks for services that do not use a load balancer are considered +// healthy if they are in the RUNNING state. Tasks for services that use a load +// balancer are considered healthy if they are in the RUNNING state and the +// container instance they are hosted on is reported as healthy by the load +// balancer. The default value is 50% in the console and 100% for the AWS CLI, +// the AWS SDKs, and the APIs. +// +// The maximumPercent parameter represents an upper limit on the number of your +// service's tasks that are allowed in the RUNNING or PENDING state during a +// deployment, as a percentage of the desiredCount (rounded down to the nearest +// integer). This parameter enables you to define the deployment batch size. +// For example, if desiredCount is four tasks and the maximum is 200%, the scheduler +// can start four new tasks before stopping the four older tasks (provided that +// the cluster resources required to do this are available). The default value +// is 200%. +// +// When the service scheduler launches new tasks, it determines task placement +// in your cluster using the following logic: +// +// * Determine which of the container instances in your cluster can support +// your service's task definition (for example, they have the required CPU, +// memory, ports, and container instance attributes). +// +// * By default, the service scheduler attempts to balance tasks across Availability +// Zones in this manner (although you can choose a different placement strategy): +// +// Sort the valid container instances by the fewest number of running tasks +// for this service in the same Availability Zone as the instance. For example, +// if zone A has one running service task and zones B and C each have zero, +// valid container instances in either zone B or C are considered optimal +// for placement. +// +// Place the new service task on a valid container instance in an optimal Availability +// Zone (based on the previous steps), favoring container instances with +// the fewest number of running tasks for this service. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -191,28 +199,104 @@ func (c *ECS) CreateServiceRequest(input *CreateServiceInput) (req *request.Requ // API operation CreateService for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/CreateService func (c *ECS) CreateService(input *CreateServiceInput) (*CreateServiceOutput, error) { req, out := c.CreateServiceRequest(input) err := req.Send() return out, err } +const opDeleteAttributes = "DeleteAttributes" + +// DeleteAttributesRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAttributes operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteAttributes for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteAttributes method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteAttributesRequest method. +// req, resp := client.DeleteAttributesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteAttributes +func (c *ECS) DeleteAttributesRequest(input *DeleteAttributesInput) (req *request.Request, output *DeleteAttributesOutput) { + op := &request.Operation{ + Name: opDeleteAttributes, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteAttributesInput{} + } + + output = &DeleteAttributesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteAttributes API operation for Amazon EC2 Container Service. +// +// Deletes one or more custom attributes from an Amazon ECS resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation DeleteAttributes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are region-specific. +// +// * ErrCodeTargetNotFoundException "TargetNotFoundException" +// The specified target could not be found. You can view your available container +// instances with ListContainerInstances. Amazon ECS container instances are +// cluster-specific and region-specific. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteAttributes +func (c *ECS) DeleteAttributes(input *DeleteAttributesInput) (*DeleteAttributesOutput, error) { + req, out := c.DeleteAttributesRequest(input) + err := req.Send() + return out, err +} + const opDeleteCluster = "DeleteCluster" // DeleteClusterRequest generates a "aws/request.Request" representing the @@ -239,6 +323,7 @@ const opDeleteCluster = "DeleteCluster" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteCluster func (c *ECS) DeleteClusterRequest(input *DeleteClusterInput) (req *request.Request, output *DeleteClusterOutput) { op := &request.Operation{ Name: opDeleteCluster, @@ -250,9 +335,8 @@ func (c *ECS) DeleteClusterRequest(input *DeleteClusterInput) (req *request.Requ input = &DeleteClusterInput{} } - req = c.newRequest(op, input, output) output = &DeleteClusterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -270,32 +354,33 @@ func (c *ECS) DeleteClusterRequest(input *DeleteClusterInput) (req *request.Requ // API operation DeleteCluster for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // -// * ClusterContainsContainerInstancesException +// * ErrCodeClusterContainsContainerInstancesException "ClusterContainsContainerInstancesException" // You cannot delete a cluster that has registered container instances. You // must first deregister the container instances before you can delete the cluster. // For more information, see DeregisterContainerInstance. // -// * ClusterContainsServicesException +// * ErrCodeClusterContainsServicesException "ClusterContainsServicesException" // You cannot delete a cluster that contains services. You must first update // the service to reduce its desired task count to 0 and then delete the service. // For more information, see UpdateService and DeleteService. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteCluster func (c *ECS) DeleteCluster(input *DeleteClusterInput) (*DeleteClusterOutput, error) { req, out := c.DeleteClusterRequest(input) err := req.Send() @@ -328,6 +413,7 @@ const opDeleteService = "DeleteService" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteService func (c *ECS) DeleteServiceRequest(input *DeleteServiceInput) (req *request.Request, output *DeleteServiceOutput) { op := &request.Operation{ Name: opDeleteService, @@ -339,9 +425,8 @@ func (c *ECS) DeleteServiceRequest(input *DeleteServiceInput) (req *request.Requ input = &DeleteServiceInput{} } - req = c.newRequest(op, input, output) output = &DeleteServiceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -353,7 +438,7 @@ func (c *ECS) DeleteServiceRequest(input *DeleteServiceInput) (req *request.Requ // update the service to a desired task count of zero. For more information, // see UpdateService. // -// When you delete a service, if there are still running tasks that require +// When you delete a service, if there are still running tasks that require // cleanup, the service status moves from ACTIVE to DRAINING, and the service // is no longer visible in the console or in ListServices API operations. After // the tasks have stopped, then the service status moves from DRAINING to INACTIVE. @@ -370,26 +455,27 @@ func (c *ECS) DeleteServiceRequest(input *DeleteServiceInput) (req *request.Requ // API operation DeleteService for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // -// * ServiceNotFoundException +// * ErrCodeServiceNotFoundException "ServiceNotFoundException" // The specified service could not be found. You can view your available services // with ListServices. Amazon ECS services are cluster-specific and region-specific. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteService func (c *ECS) DeleteService(input *DeleteServiceInput) (*DeleteServiceOutput, error) { req, out := c.DeleteServiceRequest(input) err := req.Send() @@ -422,6 +508,7 @@ const opDeregisterContainerInstance = "DeregisterContainerInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeregisterContainerInstance func (c *ECS) DeregisterContainerInstanceRequest(input *DeregisterContainerInstanceInput) (req *request.Request, output *DeregisterContainerInstanceOutput) { op := &request.Operation{ Name: opDeregisterContainerInstance, @@ -433,9 +520,8 @@ func (c *ECS) DeregisterContainerInstanceRequest(input *DeregisterContainerInsta input = &DeregisterContainerInstanceInput{} } - req = c.newRequest(op, input, output) output = &DeregisterContainerInstanceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -449,14 +535,13 @@ func (c *ECS) DeregisterContainerInstanceRequest(input *DeregisterContainerInsta // instance before deregistration to avoid any orphaned tasks from consuming // resources. // -// Deregistering a container instance removes the instance from a cluster, -// but it does not terminate the EC2 instance; if you are finished using the -// instance, be sure to terminate it in the Amazon EC2 console to stop billing. +// Deregistering a container instance removes the instance from a cluster, but +// it does not terminate the EC2 instance; if you are finished using the instance, +// be sure to terminate it in the Amazon EC2 console to stop billing. // -// If you terminate a running container instance with a connected Amazon ECS -// container agent, the agent automatically deregisters the instance from your -// cluster (stopped container instances or instances with disconnected agents -// are not automatically deregistered when terminated). +// If you terminate a running container instance, Amazon ECS automatically deregisters +// the instance from your cluster (stopped container instances or instances +// with disconnected agents are not automatically deregistered when terminated). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -466,22 +551,23 @@ func (c *ECS) DeregisterContainerInstanceRequest(input *DeregisterContainerInsta // API operation DeregisterContainerInstance for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeregisterContainerInstance func (c *ECS) DeregisterContainerInstance(input *DeregisterContainerInstanceInput) (*DeregisterContainerInstanceOutput, error) { req, out := c.DeregisterContainerInstanceRequest(input) err := req.Send() @@ -514,6 +600,7 @@ const opDeregisterTaskDefinition = "DeregisterTaskDefinition" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeregisterTaskDefinition func (c *ECS) DeregisterTaskDefinitionRequest(input *DeregisterTaskDefinitionInput) (req *request.Request, output *DeregisterTaskDefinitionOutput) { op := &request.Operation{ Name: opDeregisterTaskDefinition, @@ -525,9 +612,8 @@ func (c *ECS) DeregisterTaskDefinitionRequest(input *DeregisterTaskDefinitionInp input = &DeregisterTaskDefinitionInput{} } - req = c.newRequest(op, input, output) output = &DeregisterTaskDefinitionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -552,18 +638,19 @@ func (c *ECS) DeregisterTaskDefinitionRequest(input *DeregisterTaskDefinitionInp // API operation DeregisterTaskDefinition for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeregisterTaskDefinition func (c *ECS) DeregisterTaskDefinition(input *DeregisterTaskDefinitionInput) (*DeregisterTaskDefinitionOutput, error) { req, out := c.DeregisterTaskDefinitionRequest(input) err := req.Send() @@ -596,6 +683,7 @@ const opDescribeClusters = "DescribeClusters" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeClusters func (c *ECS) DescribeClustersRequest(input *DescribeClustersInput) (req *request.Request, output *DescribeClustersOutput) { op := &request.Operation{ Name: opDescribeClusters, @@ -607,9 +695,8 @@ func (c *ECS) DescribeClustersRequest(input *DescribeClustersInput) (req *reques input = &DescribeClustersInput{} } - req = c.newRequest(op, input, output) output = &DescribeClustersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -625,18 +712,19 @@ func (c *ECS) DescribeClustersRequest(input *DescribeClustersInput) (req *reques // API operation DescribeClusters for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeClusters func (c *ECS) DescribeClusters(input *DescribeClustersInput) (*DescribeClustersOutput, error) { req, out := c.DescribeClustersRequest(input) err := req.Send() @@ -669,6 +757,7 @@ const opDescribeContainerInstances = "DescribeContainerInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeContainerInstances func (c *ECS) DescribeContainerInstancesRequest(input *DescribeContainerInstancesInput) (req *request.Request, output *DescribeContainerInstancesOutput) { op := &request.Operation{ Name: opDescribeContainerInstances, @@ -680,9 +769,8 @@ func (c *ECS) DescribeContainerInstancesRequest(input *DescribeContainerInstance input = &DescribeContainerInstancesInput{} } - req = c.newRequest(op, input, output) output = &DescribeContainerInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -699,22 +787,23 @@ func (c *ECS) DescribeContainerInstancesRequest(input *DescribeContainerInstance // API operation DescribeContainerInstances for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeContainerInstances func (c *ECS) DescribeContainerInstances(input *DescribeContainerInstancesInput) (*DescribeContainerInstancesOutput, error) { req, out := c.DescribeContainerInstancesRequest(input) err := req.Send() @@ -747,6 +836,7 @@ const opDescribeServices = "DescribeServices" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeServices func (c *ECS) DescribeServicesRequest(input *DescribeServicesInput) (req *request.Request, output *DescribeServicesOutput) { op := &request.Operation{ Name: opDescribeServices, @@ -758,9 +848,8 @@ func (c *ECS) DescribeServicesRequest(input *DescribeServicesInput) (req *reques input = &DescribeServicesInput{} } - req = c.newRequest(op, input, output) output = &DescribeServicesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -776,22 +865,23 @@ func (c *ECS) DescribeServicesRequest(input *DescribeServicesInput) (req *reques // API operation DescribeServices for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeServices func (c *ECS) DescribeServices(input *DescribeServicesInput) (*DescribeServicesOutput, error) { req, out := c.DescribeServicesRequest(input) err := req.Send() @@ -824,6 +914,7 @@ const opDescribeTaskDefinition = "DescribeTaskDefinition" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeTaskDefinition func (c *ECS) DescribeTaskDefinitionRequest(input *DescribeTaskDefinitionInput) (req *request.Request, output *DescribeTaskDefinitionOutput) { op := &request.Operation{ Name: opDescribeTaskDefinition, @@ -835,9 +926,8 @@ func (c *ECS) DescribeTaskDefinitionRequest(input *DescribeTaskDefinitionInput) input = &DescribeTaskDefinitionInput{} } - req = c.newRequest(op, input, output) output = &DescribeTaskDefinitionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -847,8 +937,8 @@ func (c *ECS) DescribeTaskDefinitionRequest(input *DescribeTaskDefinitionInput) // information about a specific task definition, or you can simply specify the // family to find the latest ACTIVE revision in that family. // -// You can only describe INACTIVE task definitions while an active task or -// service references them. +// You can only describe INACTIVE task definitions while an active task or service +// references them. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -858,18 +948,19 @@ func (c *ECS) DescribeTaskDefinitionRequest(input *DescribeTaskDefinitionInput) // API operation DescribeTaskDefinition for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeTaskDefinition func (c *ECS) DescribeTaskDefinition(input *DescribeTaskDefinitionInput) (*DescribeTaskDefinitionOutput, error) { req, out := c.DescribeTaskDefinitionRequest(input) err := req.Send() @@ -902,6 +993,7 @@ const opDescribeTasks = "DescribeTasks" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeTasks func (c *ECS) DescribeTasksRequest(input *DescribeTasksInput) (req *request.Request, output *DescribeTasksOutput) { op := &request.Operation{ Name: opDescribeTasks, @@ -913,9 +1005,8 @@ func (c *ECS) DescribeTasksRequest(input *DescribeTasksInput) (req *request.Requ input = &DescribeTasksInput{} } - req = c.newRequest(op, input, output) output = &DescribeTasksOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -931,22 +1022,23 @@ func (c *ECS) DescribeTasksRequest(input *DescribeTasksInput) (req *request.Requ // API operation DescribeTasks for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeTasks func (c *ECS) DescribeTasks(input *DescribeTasksInput) (*DescribeTasksOutput, error) { req, out := c.DescribeTasksRequest(input) err := req.Send() @@ -979,6 +1071,7 @@ const opDiscoverPollEndpoint = "DiscoverPollEndpoint" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DiscoverPollEndpoint func (c *ECS) DiscoverPollEndpointRequest(input *DiscoverPollEndpointInput) (req *request.Request, output *DiscoverPollEndpointOutput) { op := &request.Operation{ Name: opDiscoverPollEndpoint, @@ -990,9 +1083,8 @@ func (c *ECS) DiscoverPollEndpointRequest(input *DiscoverPollEndpointInput) (req input = &DiscoverPollEndpointInput{} } - req = c.newRequest(op, input, output) output = &DiscoverPollEndpointOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1001,8 +1093,8 @@ func (c *ECS) DiscoverPollEndpointRequest(input *DiscoverPollEndpointInput) (req // This action is only used by the Amazon EC2 Container Service agent, and it // is not intended for use outside of the agent. // -// Returns an endpoint for the Amazon EC2 Container Service agent to poll -// for updates. +// Returns an endpoint for the Amazon EC2 Container Service agent to poll for +// updates. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1012,20 +1104,97 @@ func (c *ECS) DiscoverPollEndpointRequest(input *DiscoverPollEndpointInput) (req // API operation DiscoverPollEndpoint for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DiscoverPollEndpoint func (c *ECS) DiscoverPollEndpoint(input *DiscoverPollEndpointInput) (*DiscoverPollEndpointOutput, error) { req, out := c.DiscoverPollEndpointRequest(input) err := req.Send() return out, err } +const opListAttributes = "ListAttributes" + +// ListAttributesRequest generates a "aws/request.Request" representing the +// client's request for the ListAttributes operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListAttributes for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListAttributes method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListAttributesRequest method. +// req, resp := client.ListAttributesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListAttributes +func (c *ECS) ListAttributesRequest(input *ListAttributesInput) (req *request.Request, output *ListAttributesOutput) { + op := &request.Operation{ + Name: opListAttributes, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListAttributesInput{} + } + + output = &ListAttributesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAttributes API operation for Amazon EC2 Container Service. +// +// Lists the attributes for Amazon ECS resources within a specified target type +// and cluster. When you specify a target type and cluster, LisAttributes returns +// a list of attribute objects, one for each attribute on each resource. You +// can filter the list of results to a single attribute name to only return +// results that have that name. You can also filter the results by attribute +// name and value, for example, to see which container instances in a cluster +// are running a Linux AMI (ecs.os-type=linux). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation ListAttributes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are region-specific. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListAttributes +func (c *ECS) ListAttributes(input *ListAttributesInput) (*ListAttributesOutput, error) { + req, out := c.ListAttributesRequest(input) + err := req.Send() + return out, err +} + const opListClusters = "ListClusters" // ListClustersRequest generates a "aws/request.Request" representing the @@ -1052,6 +1221,7 @@ const opListClusters = "ListClusters" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListClusters func (c *ECS) ListClustersRequest(input *ListClustersInput) (req *request.Request, output *ListClustersOutput) { op := &request.Operation{ Name: opListClusters, @@ -1069,9 +1239,8 @@ func (c *ECS) ListClustersRequest(input *ListClustersInput) (req *request.Reques input = &ListClustersInput{} } - req = c.newRequest(op, input, output) output = &ListClustersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1087,18 +1256,19 @@ func (c *ECS) ListClustersRequest(input *ListClustersInput) (req *request.Reques // API operation ListClusters for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListClusters func (c *ECS) ListClusters(input *ListClustersInput) (*ListClustersOutput, error) { req, out := c.ListClustersRequest(input) err := req.Send() @@ -1156,6 +1326,7 @@ const opListContainerInstances = "ListContainerInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListContainerInstances func (c *ECS) ListContainerInstancesRequest(input *ListContainerInstancesInput) (req *request.Request, output *ListContainerInstancesOutput) { op := &request.Operation{ Name: opListContainerInstances, @@ -1173,15 +1344,18 @@ func (c *ECS) ListContainerInstancesRequest(input *ListContainerInstancesInput) input = &ListContainerInstancesInput{} } - req = c.newRequest(op, input, output) output = &ListContainerInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // ListContainerInstances API operation for Amazon EC2 Container Service. // -// Returns a list of container instances in a specified cluster. +// Returns a list of container instances in a specified cluster. You can filter +// the results of a ListContainerInstances operation with cluster query language +// statements inside the filter parameter. For more information, see Cluster +// Query Language (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html) +// in the Amazon EC2 Container Service Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1191,22 +1365,23 @@ func (c *ECS) ListContainerInstancesRequest(input *ListContainerInstancesInput) // API operation ListContainerInstances for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListContainerInstances func (c *ECS) ListContainerInstances(input *ListContainerInstancesInput) (*ListContainerInstancesOutput, error) { req, out := c.ListContainerInstancesRequest(input) err := req.Send() @@ -1264,6 +1439,7 @@ const opListServices = "ListServices" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListServices func (c *ECS) ListServicesRequest(input *ListServicesInput) (req *request.Request, output *ListServicesOutput) { op := &request.Operation{ Name: opListServices, @@ -1281,9 +1457,8 @@ func (c *ECS) ListServicesRequest(input *ListServicesInput) (req *request.Reques input = &ListServicesInput{} } - req = c.newRequest(op, input, output) output = &ListServicesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1299,22 +1474,23 @@ func (c *ECS) ListServicesRequest(input *ListServicesInput) (req *request.Reques // API operation ListServices for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListServices func (c *ECS) ListServices(input *ListServicesInput) (*ListServicesOutput, error) { req, out := c.ListServicesRequest(input) err := req.Send() @@ -1372,6 +1548,7 @@ const opListTaskDefinitionFamilies = "ListTaskDefinitionFamilies" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListTaskDefinitionFamilies func (c *ECS) ListTaskDefinitionFamiliesRequest(input *ListTaskDefinitionFamiliesInput) (req *request.Request, output *ListTaskDefinitionFamiliesOutput) { op := &request.Operation{ Name: opListTaskDefinitionFamilies, @@ -1389,9 +1566,8 @@ func (c *ECS) ListTaskDefinitionFamiliesRequest(input *ListTaskDefinitionFamilie input = &ListTaskDefinitionFamiliesInput{} } - req = c.newRequest(op, input, output) output = &ListTaskDefinitionFamiliesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1413,18 +1589,19 @@ func (c *ECS) ListTaskDefinitionFamiliesRequest(input *ListTaskDefinitionFamilie // API operation ListTaskDefinitionFamilies for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListTaskDefinitionFamilies func (c *ECS) ListTaskDefinitionFamilies(input *ListTaskDefinitionFamiliesInput) (*ListTaskDefinitionFamiliesOutput, error) { req, out := c.ListTaskDefinitionFamiliesRequest(input) err := req.Send() @@ -1482,6 +1659,7 @@ const opListTaskDefinitions = "ListTaskDefinitions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListTaskDefinitions func (c *ECS) ListTaskDefinitionsRequest(input *ListTaskDefinitionsInput) (req *request.Request, output *ListTaskDefinitionsOutput) { op := &request.Operation{ Name: opListTaskDefinitions, @@ -1499,9 +1677,8 @@ func (c *ECS) ListTaskDefinitionsRequest(input *ListTaskDefinitionsInput) (req * input = &ListTaskDefinitionsInput{} } - req = c.newRequest(op, input, output) output = &ListTaskDefinitionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1519,18 +1696,19 @@ func (c *ECS) ListTaskDefinitionsRequest(input *ListTaskDefinitionsInput) (req * // API operation ListTaskDefinitions for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListTaskDefinitions func (c *ECS) ListTaskDefinitions(input *ListTaskDefinitionsInput) (*ListTaskDefinitionsOutput, error) { req, out := c.ListTaskDefinitionsRequest(input) err := req.Send() @@ -1588,6 +1766,7 @@ const opListTasks = "ListTasks" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListTasks func (c *ECS) ListTasksRequest(input *ListTasksInput) (req *request.Request, output *ListTasksOutput) { op := &request.Operation{ Name: opListTasks, @@ -1605,9 +1784,8 @@ func (c *ECS) ListTasksRequest(input *ListTasksInput) (req *request.Request, out input = &ListTasksInput{} } - req = c.newRequest(op, input, output) output = &ListTasksOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1617,8 +1795,8 @@ func (c *ECS) ListTasksRequest(input *ListTasksInput) (req *request.Request, out // by family name, by a particular container instance, or by the desired status // of the task with the family, containerInstance, and desiredStatus parameters. // -// Recently-stopped tasks might appear in the returned results. Currently, -// stopped tasks appear in the returned results for at least one hour. +// Recently-stopped tasks might appear in the returned results. Currently, stopped +// tasks appear in the returned results for at least one hour. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1628,26 +1806,27 @@ func (c *ECS) ListTasksRequest(input *ListTasksInput) (req *request.Request, out // API operation ListTasks for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // -// * ServiceNotFoundException +// * ErrCodeServiceNotFoundException "ServiceNotFoundException" // The specified service could not be found. You can view your available services // with ListServices. Amazon ECS services are cluster-specific and region-specific. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListTasks func (c *ECS) ListTasks(input *ListTasksInput) (*ListTasksOutput, error) { req, out := c.ListTasksRequest(input) err := req.Send() @@ -1679,6 +1858,90 @@ func (c *ECS) ListTasksPages(input *ListTasksInput, fn func(p *ListTasksOutput, }) } +const opPutAttributes = "PutAttributes" + +// PutAttributesRequest generates a "aws/request.Request" representing the +// client's request for the PutAttributes operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See PutAttributes for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the PutAttributes method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the PutAttributesRequest method. +// req, resp := client.PutAttributesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/PutAttributes +func (c *ECS) PutAttributesRequest(input *PutAttributesInput) (req *request.Request, output *PutAttributesOutput) { + op := &request.Operation{ + Name: opPutAttributes, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PutAttributesInput{} + } + + output = &PutAttributesOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutAttributes API operation for Amazon EC2 Container Service. +// +// Create or update an attribute on an Amazon ECS resource. If the attribute +// does not exist, it is created. If the attribute exists, its value is replaced +// with the specified value. To delete an attribute, use DeleteAttributes. For +// more information, see Attributes (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html#attributes) +// in the Amazon EC2 Container Service Developer Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation PutAttributes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are region-specific. +// +// * ErrCodeTargetNotFoundException "TargetNotFoundException" +// The specified target could not be found. You can view your available container +// instances with ListContainerInstances. Amazon ECS container instances are +// cluster-specific and region-specific. +// +// * ErrCodeAttributeLimitExceededException "AttributeLimitExceededException" +// You can apply up to 10 custom attributes per resource. You can view the attributes +// of a resource with ListAttributes. You can remove existing attributes on +// a resource with DeleteAttributes. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/PutAttributes +func (c *ECS) PutAttributes(input *PutAttributesInput) (*PutAttributesOutput, error) { + req, out := c.PutAttributesRequest(input) + err := req.Send() + return out, err +} + const opRegisterContainerInstance = "RegisterContainerInstance" // RegisterContainerInstanceRequest generates a "aws/request.Request" representing the @@ -1705,6 +1968,7 @@ const opRegisterContainerInstance = "RegisterContainerInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/RegisterContainerInstance func (c *ECS) RegisterContainerInstanceRequest(input *RegisterContainerInstanceInput) (req *request.Request, output *RegisterContainerInstanceOutput) { op := &request.Operation{ Name: opRegisterContainerInstance, @@ -1716,9 +1980,8 @@ func (c *ECS) RegisterContainerInstanceRequest(input *RegisterContainerInstanceI input = &RegisterContainerInstanceInput{} } - req = c.newRequest(op, input, output) output = &RegisterContainerInstanceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1727,7 +1990,7 @@ func (c *ECS) RegisterContainerInstanceRequest(input *RegisterContainerInstanceI // This action is only used by the Amazon EC2 Container Service agent, and it // is not intended for use outside of the agent. // -// Registers an EC2 instance into the specified cluster. This instance becomes +// Registers an EC2 instance into the specified cluster. This instance becomes // available to place containers on. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1738,14 +2001,15 @@ func (c *ECS) RegisterContainerInstanceRequest(input *RegisterContainerInstanceI // API operation RegisterContainerInstance for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/RegisterContainerInstance func (c *ECS) RegisterContainerInstance(input *RegisterContainerInstanceInput) (*RegisterContainerInstanceOutput, error) { req, out := c.RegisterContainerInstanceRequest(input) err := req.Send() @@ -1778,6 +2042,7 @@ const opRegisterTaskDefinition = "RegisterTaskDefinition" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/RegisterTaskDefinition func (c *ECS) RegisterTaskDefinitionRequest(input *RegisterTaskDefinitionInput) (req *request.Request, output *RegisterTaskDefinitionOutput) { op := &request.Operation{ Name: opRegisterTaskDefinition, @@ -1789,9 +2054,8 @@ func (c *ECS) RegisterTaskDefinitionRequest(input *RegisterTaskDefinitionInput) input = &RegisterTaskDefinitionInput{} } - req = c.newRequest(op, input, output) output = &RegisterTaskDefinitionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1823,18 +2087,19 @@ func (c *ECS) RegisterTaskDefinitionRequest(input *RegisterTaskDefinitionInput) // API operation RegisterTaskDefinition for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/RegisterTaskDefinition func (c *ECS) RegisterTaskDefinition(input *RegisterTaskDefinitionInput) (*RegisterTaskDefinitionOutput, error) { req, out := c.RegisterTaskDefinitionRequest(input) err := req.Send() @@ -1867,6 +2132,7 @@ const opRunTask = "RunTask" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/RunTask func (c *ECS) RunTaskRequest(input *RunTaskInput) (req *request.Request, output *RunTaskOutput) { op := &request.Operation{ Name: opRunTask, @@ -1878,19 +2144,22 @@ func (c *ECS) RunTaskRequest(input *RunTaskInput) (req *request.Request, output input = &RunTaskInput{} } - req = c.newRequest(op, input, output) output = &RunTaskOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // RunTask API operation for Amazon EC2 Container Service. // -// Start a task using random placement and the default Amazon ECS scheduler. -// To use your own scheduler or place a task on a specific container instance, -// use StartTask instead. +// Starts a new task using the specified task definition. +// +// You can allow Amazon ECS to place tasks for you, or you can customize how +// Amazon ECS places tasks using placement constraints and placement strategies. +// For more information, see Scheduling Tasks (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/scheduling_tasks.html) +// in the Amazon EC2 Container Service Developer Guide. // -// The count parameter is limited to 10 tasks per call. +// Alternatively, you can use StartTask to use your own scheduler or place tasks +// manually on specific container instances. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1900,22 +2169,23 @@ func (c *ECS) RunTaskRequest(input *RunTaskInput) (req *request.Request, output // API operation RunTask for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/RunTask func (c *ECS) RunTask(input *RunTaskInput) (*RunTaskOutput, error) { req, out := c.RunTaskRequest(input) err := req.Send() @@ -1948,6 +2218,7 @@ const opStartTask = "StartTask" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/StartTask func (c *ECS) StartTaskRequest(input *StartTaskInput) (req *request.Request, output *StartTaskOutput) { op := &request.Operation{ Name: opStartTask, @@ -1959,19 +2230,19 @@ func (c *ECS) StartTaskRequest(input *StartTaskInput) (req *request.Request, out input = &StartTaskInput{} } - req = c.newRequest(op, input, output) output = &StartTaskOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // StartTask API operation for Amazon EC2 Container Service. // // Starts a new task from the specified task definition on the specified container -// instance or instances. To use the default Amazon ECS scheduler to place your -// task, use RunTask instead. +// instance or instances. // -// The list of container instances to start tasks on is limited to 10. +// Alternatively, you can use RunTask to place tasks for you. For more information, +// see Scheduling Tasks (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/scheduling_tasks.html) +// in the Amazon EC2 Container Service Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1981,22 +2252,23 @@ func (c *ECS) StartTaskRequest(input *StartTaskInput) (req *request.Request, out // API operation StartTask for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/StartTask func (c *ECS) StartTask(input *StartTaskInput) (*StartTaskOutput, error) { req, out := c.StartTaskRequest(input) err := req.Send() @@ -2029,6 +2301,7 @@ const opStopTask = "StopTask" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/StopTask func (c *ECS) StopTaskRequest(input *StopTaskInput) (req *request.Request, output *StopTaskOutput) { op := &request.Operation{ Name: opStopTask, @@ -2040,9 +2313,8 @@ func (c *ECS) StopTaskRequest(input *StopTaskInput) (req *request.Request, outpu input = &StopTaskInput{} } - req = c.newRequest(op, input, output) output = &StopTaskOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2064,22 +2336,23 @@ func (c *ECS) StopTaskRequest(input *StopTaskInput) (req *request.Request, outpu // API operation StopTask for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/StopTask func (c *ECS) StopTask(input *StopTaskInput) (*StopTaskOutput, error) { req, out := c.StopTaskRequest(input) err := req.Send() @@ -2112,6 +2385,7 @@ const opSubmitContainerStateChange = "SubmitContainerStateChange" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/SubmitContainerStateChange func (c *ECS) SubmitContainerStateChangeRequest(input *SubmitContainerStateChangeInput) (req *request.Request, output *SubmitContainerStateChangeOutput) { op := &request.Operation{ Name: opSubmitContainerStateChange, @@ -2123,9 +2397,8 @@ func (c *ECS) SubmitContainerStateChangeRequest(input *SubmitContainerStateChang input = &SubmitContainerStateChangeInput{} } - req = c.newRequest(op, input, output) output = &SubmitContainerStateChangeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2134,7 +2407,7 @@ func (c *ECS) SubmitContainerStateChangeRequest(input *SubmitContainerStateChang // This action is only used by the Amazon EC2 Container Service agent, and it // is not intended for use outside of the agent. // -// Sent to acknowledge that a container changed states. +// Sent to acknowledge that a container changed states. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2144,14 +2417,15 @@ func (c *ECS) SubmitContainerStateChangeRequest(input *SubmitContainerStateChang // API operation SubmitContainerStateChange for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/SubmitContainerStateChange func (c *ECS) SubmitContainerStateChange(input *SubmitContainerStateChangeInput) (*SubmitContainerStateChangeOutput, error) { req, out := c.SubmitContainerStateChangeRequest(input) err := req.Send() @@ -2184,6 +2458,7 @@ const opSubmitTaskStateChange = "SubmitTaskStateChange" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/SubmitTaskStateChange func (c *ECS) SubmitTaskStateChangeRequest(input *SubmitTaskStateChangeInput) (req *request.Request, output *SubmitTaskStateChangeOutput) { op := &request.Operation{ Name: opSubmitTaskStateChange, @@ -2195,9 +2470,8 @@ func (c *ECS) SubmitTaskStateChangeRequest(input *SubmitTaskStateChangeInput) (r input = &SubmitTaskStateChangeInput{} } - req = c.newRequest(op, input, output) output = &SubmitTaskStateChangeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2206,7 +2480,7 @@ func (c *ECS) SubmitTaskStateChangeRequest(input *SubmitTaskStateChangeInput) (r // This action is only used by the Amazon EC2 Container Service agent, and it // is not intended for use outside of the agent. // -// Sent to acknowledge that a task changed states. +// Sent to acknowledge that a task changed states. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2216,14 +2490,15 @@ func (c *ECS) SubmitTaskStateChangeRequest(input *SubmitTaskStateChangeInput) (r // API operation SubmitTaskStateChange for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/SubmitTaskStateChange func (c *ECS) SubmitTaskStateChange(input *SubmitTaskStateChangeInput) (*SubmitTaskStateChangeOutput, error) { req, out := c.SubmitTaskStateChangeRequest(input) err := req.Send() @@ -2256,6 +2531,7 @@ const opUpdateContainerAgent = "UpdateContainerAgent" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateContainerAgent func (c *ECS) UpdateContainerAgentRequest(input *UpdateContainerAgentInput) (req *request.Request, output *UpdateContainerAgentOutput) { op := &request.Operation{ Name: opUpdateContainerAgent, @@ -2267,9 +2543,8 @@ func (c *ECS) UpdateContainerAgentRequest(input *UpdateContainerAgentInput) (req input = &UpdateContainerAgentInput{} } - req = c.newRequest(op, input, output) output = &UpdateContainerAgentOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2281,7 +2556,7 @@ func (c *ECS) UpdateContainerAgentRequest(input *UpdateContainerAgentInput) (req // differs depending on whether your container instance was launched with the // Amazon ECS-optimized AMI or another operating system. // -// UpdateContainerAgent requires the Amazon ECS-optimized AMI or Amazon Linux +// UpdateContainerAgent requires the Amazon ECS-optimized AMI or Amazon Linux // with the ecs-init service installed and running. For help updating the Amazon // ECS container agent on other operating systems, see Manually Updating the // Amazon ECS Container Agent (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html#manually_update_agent) @@ -2295,195 +2570,347 @@ func (c *ECS) UpdateContainerAgentRequest(input *UpdateContainerAgentInput) (req // API operation UpdateContainerAgent for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // -// * UpdateInProgressException +// * ErrCodeUpdateInProgressException "UpdateInProgressException" // There is already a current Amazon ECS container agent update in progress // on the specified container instance. If the container agent becomes disconnected // while it is in a transitional stage, such as PENDING or STAGING, the update // process can get stuck in that state. However, when the agent reconnects, // it resumes where it stopped previously. // -// * NoUpdateAvailableException +// * ErrCodeNoUpdateAvailableException "NoUpdateAvailableException" // There is no update available for this Amazon ECS container agent. This could // be because the agent is already running the latest version, or it is so old // that there is no update path to the current version. // -// * MissingVersionException +// * ErrCodeMissingVersionException "MissingVersionException" // Amazon ECS is unable to determine the current version of the Amazon ECS container // agent on the container instance and does not have enough information to proceed // with an update. This could be because the agent running on the container // instance is an older or custom version that does not use our version information. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateContainerAgent func (c *ECS) UpdateContainerAgent(input *UpdateContainerAgentInput) (*UpdateContainerAgentOutput, error) { req, out := c.UpdateContainerAgentRequest(input) err := req.Send() return out, err } -const opUpdateService = "UpdateService" +const opUpdateContainerInstancesState = "UpdateContainerInstancesState" -// UpdateServiceRequest generates a "aws/request.Request" representing the -// client's request for the UpdateService operation. The "output" return +// UpdateContainerInstancesStateRequest generates a "aws/request.Request" representing the +// client's request for the UpdateContainerInstancesState operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See UpdateService for usage and error information. +// See UpdateContainerInstancesState for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the UpdateService method directly +// you just want the service response, call the UpdateContainerInstancesState method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the UpdateServiceRequest method. -// req, resp := client.UpdateServiceRequest(params) +// // Example sending a request using the UpdateContainerInstancesStateRequest method. +// req, resp := client.UpdateContainerInstancesStateRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *ECS) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Request, output *UpdateServiceOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateContainerInstancesState +func (c *ECS) UpdateContainerInstancesStateRequest(input *UpdateContainerInstancesStateInput) (req *request.Request, output *UpdateContainerInstancesStateOutput) { op := &request.Operation{ - Name: opUpdateService, + Name: opUpdateContainerInstancesState, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateServiceInput{} + input = &UpdateContainerInstancesStateInput{} } + output = &UpdateContainerInstancesStateOutput{} req = c.newRequest(op, input, output) - output = &UpdateServiceOutput{} - req.Data = output return } -// UpdateService API operation for Amazon EC2 Container Service. -// -// Modifies the desired count, deployment configuration, or task definition -// used in a service. +// UpdateContainerInstancesState API operation for Amazon EC2 Container Service. // -// You can add to or subtract from the number of instantiations of a task definition -// in a service by specifying the cluster that the service is running in and -// a new desiredCount parameter. +// Modifies the status of an Amazon ECS container instance. // -// You can use UpdateService to modify your task definition and deploy a new -// version of your service. +// You can change the status of a container instance to DRAINING to manually +// remove an instance from a cluster, for example to perform system updates, +// update the Docker daemon, or scale down the cluster size. // -// You can also update the deployment configuration of a service. When a deployment -// is triggered by updating the task definition of a service, the service scheduler -// uses the deployment configuration parameters, minimumHealthyPercent and maximumPercent, -// to determine the deployment strategy. +// When you set a container instance to DRAINING, Amazon ECS prevents new tasks +// from being scheduled for placement on the container instance and replacement +// service tasks are started on other container instances in the cluster if +// the resources are available. Service tasks on the container instance that +// are in the PENDING state are stopped immediately. // -// If the minimumHealthyPercent is below 100%, the scheduler can ignore the -// desiredCount temporarily during a deployment. For example, if your service -// has a desiredCount of four tasks, a minimumHealthyPercent of 50% allows the -// scheduler to stop two existing tasks before starting two new tasks. Tasks -// for services that do not use a load balancer are considered healthy if they -// are in the RUNNING state; tasks for services that do use a load balancer -// are considered healthy if they are in the RUNNING state and the container -// instance it is hosted on is reported as healthy by the load balancer. -// -// The maximumPercent parameter represents an upper limit on the number of -// running tasks during a deployment, which enables you to define the deployment -// batch size. For example, if your service has a desiredCount of four tasks, -// a maximumPercent value of 200% starts four new tasks before stopping the -// four older tasks (provided that the cluster resources required to do this -// are available). +// Service tasks on the container instance that are in the RUNNING state are +// stopped and replaced according the service's deployment configuration parameters, +// minimumHealthyPercent and maximumPercent. Note that you can change the deployment +// configuration of your service using UpdateService. // -// When UpdateService stops a task during a deployment, the equivalent of docker -// stop is issued to the containers running in the task. This results in a SIGTERM -// and a 30-second timeout, after which SIGKILL is sent and the containers are -// forcibly stopped. If the container handles the SIGTERM gracefully and exits -// within 30 seconds from receiving it, no SIGKILL is sent. +// * If minimumHealthyPercent is below 100%, the scheduler can ignore desiredCount +// temporarily during task replacement. For example, desiredCount is four +// tasks, a minimum of 50% allows the scheduler to stop two existing tasks +// before starting two new tasks. If the minimum is 100%, the service scheduler +// can't remove existing tasks until the replacement tasks are considered +// healthy. Tasks for services that do not use a load balancer are considered +// healthy if they are in the RUNNING state. Tasks for services that use +// a load balancer are considered healthy if they are in the RUNNING state +// and the container instance they are hosted on is reported as healthy by +// the load balancer. // -// When the service scheduler launches new tasks, it attempts to balance them -// across the Availability Zones in your cluster with the following logic: +// * The maximumPercent parameter represents an upper limit on the number +// of running tasks during task replacement, which enables you to define +// the replacement batch size. For example, if desiredCount of four tasks, +// a maximum of 200% starts four new tasks before stopping the four tasks +// to be drained (provided that the cluster resources required to do this +// are available). If the maximum is 100%, then replacement tasks can't start +// until the draining tasks have stopped. // -// Determine which of the container instances in your cluster can support -// your service's task definition (for example, they have the required CPU, -// memory, ports, and container instance attributes). +// Any PENDING or RUNNING tasks that do not belong to a service are not affected; +// you must wait for them to finish or stop them manually. // -// Sort the valid container instances by the fewest number of running tasks -// for this service in the same Availability Zone as the instance. For example, -// if zone A has one running service task and zones B and C each have zero, -// valid container instances in either zone B or C are considered optimal for -// placement. +// A container instance has completed draining when it has no more RUNNING tasks. +// You can verify this using ListTasks. // -// Place the new service task on a valid container instance in an optimal -// Availability Zone (based on the previous steps), favoring container instances -// with the fewest number of running tasks for this service. +// When you set a container instance to ACTIVE, the Amazon ECS scheduler can +// begin scheduling tasks on the instance again. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon EC2 Container Service's -// API operation UpdateService for usage and error information. +// API operation UpdateContainerInstancesState for usage and error information. // // Returned Error Codes: -// * ServerException +// * ErrCodeServerException "ServerException" // These errors are usually caused by a server issue. // -// * ClientException +// * ErrCodeClientException "ClientException" // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permission to use the action // or resource, or specifying an identifier that is not valid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ClusterNotFoundException +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are region-specific. // -// * ServiceNotFoundException -// The specified service could not be found. You can view your available services -// with ListServices. Amazon ECS services are cluster-specific and region-specific. -// -// * ServiceNotActiveException -// The specified service is not active. You cannot update a service that is -// not active. If you have previously deleted a service, you can re-create it -// with CreateService. -// -func (c *ECS) UpdateService(input *UpdateServiceInput) (*UpdateServiceOutput, error) { - req, out := c.UpdateServiceRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateContainerInstancesState +func (c *ECS) UpdateContainerInstancesState(input *UpdateContainerInstancesStateInput) (*UpdateContainerInstancesStateOutput, error) { + req, out := c.UpdateContainerInstancesStateRequest(input) err := req.Send() return out, err } -// The attributes applicable to a container instance when it is registered. -type Attribute struct { - _ struct{} `type:"structure"` - - // The name of the container instance attribute. - // - // Name is a required field - Name *string `locationName:"name" type:"string" required:"true"` +const opUpdateService = "UpdateService" - // The value of the container instance attribute (at this time, the value here - // is Null, but this could change in future revisions for expandability). +// UpdateServiceRequest generates a "aws/request.Request" representing the +// client's request for the UpdateService operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateService for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateService method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateServiceRequest method. +// req, resp := client.UpdateServiceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateService +func (c *ECS) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Request, output *UpdateServiceOutput) { + op := &request.Operation{ + Name: opUpdateService, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateServiceInput{} + } + + output = &UpdateServiceOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateService API operation for Amazon EC2 Container Service. +// +// Modifies the desired count, deployment configuration, or task definition +// used in a service. +// +// You can add to or subtract from the number of instantiations of a task definition +// in a service by specifying the cluster that the service is running in and +// a new desiredCount parameter. +// +// You can use UpdateService to modify your task definition and deploy a new +// version of your service. +// +// You can also update the deployment configuration of a service. When a deployment +// is triggered by updating the task definition of a service, the service scheduler +// uses the deployment configuration parameters, minimumHealthyPercent and maximumPercent, +// to determine the deployment strategy. +// +// * If minimumHealthyPercent is below 100%, the scheduler can ignore desiredCount +// temporarily during a deployment. For example, if desiredCount is four +// tasks, a minimum of 50% allows the scheduler to stop two existing tasks +// before starting two new tasks. Tasks for services that do not use a load +// balancer are considered healthy if they are in the RUNNING state. Tasks +// for services that use a load balancer are considered healthy if they are +// in the RUNNING state and the container instance they are hosted on is +// reported as healthy by the load balancer. +// +// * The maximumPercent parameter represents an upper limit on the number +// of running tasks during a deployment, which enables you to define the +// deployment batch size. For example, if desiredCount is four tasks, a maximum +// of 200% starts four new tasks before stopping the four older tasks (provided +// that the cluster resources required to do this are available). +// +// When UpdateService stops a task during a deployment, the equivalent of docker +// stop is issued to the containers running in the task. This results in a SIGTERM +// and a 30-second timeout, after which SIGKILL is sent and the containers are +// forcibly stopped. If the container handles the SIGTERM gracefully and exits +// within 30 seconds from receiving it, no SIGKILL is sent. +// +// When the service scheduler launches new tasks, it determines task placement +// in your cluster with the following logic: +// +// * Determine which of the container instances in your cluster can support +// your service's task definition (for example, they have the required CPU, +// memory, ports, and container instance attributes). +// +// * By default, the service scheduler attempts to balance tasks across Availability +// Zones in this manner (although you can choose a different placement strategy): +// +// Sort the valid container instances by the fewest number of running tasks +// for this service in the same Availability Zone as the instance. For example, +// if zone A has one running service task and zones B and C each have zero, +// valid container instances in either zone B or C are considered optimal +// for placement. +// +// Place the new service task on a valid container instance in an optimal Availability +// Zone (based on the previous steps), favoring container instances with +// the fewest number of running tasks for this service. +// +// When the service scheduler stops running tasks, it attempts to maintain balance +// across the Availability Zones in your cluster using the following logic: +// +// * Sort the container instances by the largest number of running tasks +// for this service in the same Availability Zone as the instance. For example, +// if zone A has one running service task and zones B and C each have two, +// container instances in either zone B or C are considered optimal for termination. +// +// * Stop the task on a container instance in an optimal Availability Zone +// (based on the previous steps), favoring container instances with the largest +// number of running tasks for this service. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation UpdateService for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServerException "ServerException" +// These errors are usually caused by a server issue. +// +// * ErrCodeClientException "ClientException" +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are region-specific. +// +// * ErrCodeServiceNotFoundException "ServiceNotFoundException" +// The specified service could not be found. You can view your available services +// with ListServices. Amazon ECS services are cluster-specific and region-specific. +// +// * ErrCodeServiceNotActiveException "ServiceNotActiveException" +// The specified service is not active. You cannot update a service that is +// not active. If you have previously deleted a service, you can re-create it +// with CreateService. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateService +func (c *ECS) UpdateService(input *UpdateServiceInput) (*UpdateServiceOutput, error) { + req, out := c.UpdateServiceRequest(input) + err := req.Send() + return out, err +} + +// An attribute is a name-value pair associated with an Amazon ECS object. Attributes +// enable you to extend the Amazon ECS data model by adding custom metadata +// to your resources. For more information, see Attributes (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html#attributes) +// in the Amazon EC2 Container Service Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/Attribute +type Attribute struct { + _ struct{} `type:"structure"` + + // The name of the attribute. Up to 128 letters (uppercase and lowercase), numbers, + // hyphens, underscores, and periods are allowed. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // The ID of the target. You can specify the short form ID for a resource or + // the full Amazon Resource Name (ARN). + TargetId *string `locationName:"targetId" type:"string"` + + // The type of the target with which to attach the attribute. This parameter + // is required if you use the short form ID for a resource instead of the full + // Amazon Resource Name (ARN). + TargetType *string `locationName:"targetType" type:"string" enum:"TargetType"` + + // The value of the attribute. Up to 128 letters (uppercase and lowercase), + // numbers, hyphens, underscores, periods, at signs (@), forward slashes, colons, + // and spaces are allowed. Value *string `locationName:"value" type:"string"` } @@ -2510,10 +2937,35 @@ func (s *Attribute) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *Attribute) SetName(v string) *Attribute { + s.Name = &v + return s +} + +// SetTargetId sets the TargetId field's value. +func (s *Attribute) SetTargetId(v string) *Attribute { + s.TargetId = &v + return s +} + +// SetTargetType sets the TargetType field's value. +func (s *Attribute) SetTargetType(v string) *Attribute { + s.TargetType = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Attribute) SetValue(v string) *Attribute { + s.Value = &v + return s +} + // A regional grouping of one or more container instances on which you can run // task requests. Each account receives a default cluster the first time you // use the Amazon ECS service, but you may also create other clusters. Clusters // may contain more than one instance type simultaneously. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/Cluster type Cluster struct { _ struct{} `type:"structure"` @@ -2524,7 +2976,7 @@ type Cluster struct { // The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains // the arn:aws:ecs namespace, followed by the region of the cluster, the AWS // account ID of the cluster owner, the cluster namespace, and then the cluster - // name. For example, arn:aws:ecs:region:012345678910:cluster/test .. + // name. For example, arn:aws:ecs:region:012345678910:cluster/test.. ClusterArn *string `locationName:"clusterArn" type:"string"` // A user-generated string that you use to identify your cluster. @@ -2555,7 +3007,50 @@ func (s Cluster) GoString() string { return s.String() } +// SetActiveServicesCount sets the ActiveServicesCount field's value. +func (s *Cluster) SetActiveServicesCount(v int64) *Cluster { + s.ActiveServicesCount = &v + return s +} + +// SetClusterArn sets the ClusterArn field's value. +func (s *Cluster) SetClusterArn(v string) *Cluster { + s.ClusterArn = &v + return s +} + +// SetClusterName sets the ClusterName field's value. +func (s *Cluster) SetClusterName(v string) *Cluster { + s.ClusterName = &v + return s +} + +// SetPendingTasksCount sets the PendingTasksCount field's value. +func (s *Cluster) SetPendingTasksCount(v int64) *Cluster { + s.PendingTasksCount = &v + return s +} + +// SetRegisteredContainerInstancesCount sets the RegisteredContainerInstancesCount field's value. +func (s *Cluster) SetRegisteredContainerInstancesCount(v int64) *Cluster { + s.RegisteredContainerInstancesCount = &v + return s +} + +// SetRunningTasksCount sets the RunningTasksCount field's value. +func (s *Cluster) SetRunningTasksCount(v int64) *Cluster { + s.RunningTasksCount = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Cluster) SetStatus(v string) *Cluster { + s.Status = &v + return s +} + // A Docker container that is part of a task. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/Container type Container struct { _ struct{} `type:"structure"` @@ -2575,7 +3070,7 @@ type Container struct { NetworkBindings []*NetworkBinding `locationName:"networkBindings" type:"list"` // A short (255 max characters) human-readable string to provide additional - // detail about a running or stopped container. + // details about a running or stopped container. Reason *string `locationName:"reason" type:"string"` // The Amazon Resource Name (ARN) of the task. @@ -2592,17 +3087,60 @@ func (s Container) GoString() string { return s.String() } +// SetContainerArn sets the ContainerArn field's value. +func (s *Container) SetContainerArn(v string) *Container { + s.ContainerArn = &v + return s +} + +// SetExitCode sets the ExitCode field's value. +func (s *Container) SetExitCode(v int64) *Container { + s.ExitCode = &v + return s +} + +// SetLastStatus sets the LastStatus field's value. +func (s *Container) SetLastStatus(v string) *Container { + s.LastStatus = &v + return s +} + +// SetName sets the Name field's value. +func (s *Container) SetName(v string) *Container { + s.Name = &v + return s +} + +// SetNetworkBindings sets the NetworkBindings field's value. +func (s *Container) SetNetworkBindings(v []*NetworkBinding) *Container { + s.NetworkBindings = v + return s +} + +// SetReason sets the Reason field's value. +func (s *Container) SetReason(v string) *Container { + s.Reason = &v + return s +} + +// SetTaskArn sets the TaskArn field's value. +func (s *Container) SetTaskArn(v string) *Container { + s.TaskArn = &v + return s +} + // Container definitions are used in task definitions to describe the different // containers that are launched as part of a task. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ContainerDefinition type ContainerDefinition struct { _ struct{} `type:"structure"` // The command that is passed to the container. This parameter maps to Cmd in - // the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the COMMAND parameter to docker run (https://docs.docker.com/reference/commandline/run/). - // For more information, see https://docs.docker.com/reference/builder/#cmd - // (https://docs.docker.com/reference/builder/#cmd). + // the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the COMMAND parameter to docker run (https://docs.docker.com/engine/reference/run/). + // For more information, see https://docs.docker.com/engine/reference/builder/#cmd + // (https://docs.docker.com/engine/reference/builder/#cmd). Command []*string `locationName:"command" type:"list"` // The number of cpu units reserved for the container. A container instance @@ -2610,16 +3148,16 @@ type ContainerDefinition struct { // amount of CPU to reserve for a container, and containers share unallocated // CPU units with other containers on the instance with the same ratio as their // allocated amount. This parameter maps to CpuShares in the Create a container - // (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --cpu-shares option to docker run (https://docs.docker.com/reference/commandline/run/). + // (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --cpu-shares option to docker run (https://docs.docker.com/engine/reference/run/). // - // You can determine the number of CPU units that are available per EC2 instance + // You can determine the number of CPU units that are available per EC2 instance // type by multiplying the vCPUs listed for that instance type on the Amazon // EC2 Instances (http://aws.amazon.com/ec2/instance-types/) detail page by // 1,024. // - // For example, if you run a single-container task on a single-core instance + // For example, if you run a single-container task on a single-core instance // type with 512 CPU units specified for that container, and that is the only // task running on the container instance, that container could use the full // 1,024 CPU unit share at any given time. However, if you launched another @@ -2630,43 +3168,43 @@ type ContainerDefinition struct { // // The Docker daemon on the container instance uses the CPU value to calculate // the relative CPU share ratios for running containers. For more information, - // see CPU share constraint (https://docs.docker.com/reference/run/#cpu-share-constraint) + // see CPU share constraint (https://docs.docker.com/engine/reference/run/#cpu-share-constraint) // in the Docker documentation. The minimum valid CPU share value that the Linux // kernel allows is 2; however, the CPU parameter is not required, and you can // use CPU values below 2 in your container definitions. For CPU values below // 2 (including null), the behavior varies based on your Amazon ECS container // agent version: // - // Agent versions less than or equal to 1.1.0: Null and zero CPU values - // are passed to Docker as 0, which Docker then converts to 1,024 CPU shares. - // CPU values of 1 are passed to Docker as 1, which the Linux kernel converts - // to 2 CPU shares. + // * Agent versions less than or equal to 1.1.0: Null and zero CPU values + // are passed to Docker as 0, which Docker then converts to 1,024 CPU shares. + // CPU values of 1 are passed to Docker as 1, which the Linux kernel converts + // to 2 CPU shares. // - // Agent versions greater than or equal to 1.2.0: Null, zero, and CPU values - // of 1 are passed to Docker as 2. + // * Agent versions greater than or equal to 1.2.0: Null, zero, and CPU values + // of 1 are passed to Docker as 2. Cpu *int64 `locationName:"cpu" type:"integer"` // When this parameter is true, networking is disabled within the container. - // This parameter maps to NetworkDisabled in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/). + // This parameter maps to NetworkDisabled in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/). DisableNetworking *bool `locationName:"disableNetworking" type:"boolean"` // A list of DNS search domains that are presented to the container. This parameter - // maps to DnsSearch in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --dns-search option to docker run (https://docs.docker.com/reference/commandline/run/). + // maps to DnsSearch in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --dns-search option to docker run (https://docs.docker.com/engine/reference/run/). DnsSearchDomains []*string `locationName:"dnsSearchDomains" type:"list"` // A list of DNS servers that are presented to the container. This parameter - // maps to Dns in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --dns option to docker run (https://docs.docker.com/reference/commandline/run/). + // maps to Dns in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --dns option to docker run (https://docs.docker.com/engine/reference/run/). DnsServers []*string `locationName:"dnsServers" type:"list"` // A key/value map of labels to add to the container. This parameter maps to - // Labels in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --label option to docker run (https://docs.docker.com/reference/commandline/run/). + // Labels in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --label option to docker run (https://docs.docker.com/engine/reference/run/). // This parameter requires version 1.18 of the Docker Remote API or greater // on your container instance. To check the Docker Remote API version on your // container instance, log into your container instance and run the following @@ -2675,11 +3213,11 @@ type ContainerDefinition struct { // A list of strings to provide custom labels for SELinux and AppArmor multi-level // security systems. This parameter maps to SecurityOpt in the Create a container - // (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --security-opt option to docker run (https://docs.docker.com/reference/commandline/run/). + // (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --security-opt option to docker run (https://docs.docker.com/engine/reference/run/). // - // The Amazon ECS container agent running on a container instance must register + // The Amazon ECS container agent running on a container instance must register // with the ECS_SELINUX_CAPABLE=true or ECS_APPARMOR_CAPABLE=true environment // variables before containers placed on that instance can use these security // options. For more information, see Amazon ECS Container Agent Configuration @@ -2691,20 +3229,20 @@ type ContainerDefinition struct { // parameters. If you have problems using entryPoint, update your container // agent or enter your commands and arguments as command array items instead. // - // The entry point that is passed to the container. This parameter maps to - // Entrypoint in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --entrypoint option to docker run (https://docs.docker.com/reference/commandline/run/). - // For more information, see https://docs.docker.com/reference/builder/#entrypoint - // (https://docs.docker.com/reference/builder/#entrypoint). + // The entry point that is passed to the container. This parameter maps to Entrypoint + // in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --entrypoint option to docker run (https://docs.docker.com/engine/reference/run/). + // For more information, see https://docs.docker.com/engine/reference/builder/#entrypoint + // (https://docs.docker.com/engine/reference/builder/#entrypoint). EntryPoint []*string `locationName:"entryPoint" type:"list"` // The environment variables to pass to a container. This parameter maps to - // Env in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --env option to docker run (https://docs.docker.com/reference/commandline/run/). + // Env in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --env option to docker run (https://docs.docker.com/engine/reference/run/). // - // We do not recommend using plain text environment variables for sensitive + // We do not recommend using plain text environment variables for sensitive // information, such as credential data. Environment []*KeyValuePair `locationName:"environment" type:"list"` @@ -2724,34 +3262,41 @@ type ContainerDefinition struct { // A list of hostnames and IP address mappings to append to the /etc/hosts file // on the container. This parameter maps to ExtraHosts in the Create a container - // (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --add-host option to docker run (https://docs.docker.com/reference/commandline/run/). + // (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --add-host option to docker run (https://docs.docker.com/engine/reference/run/). ExtraHosts []*HostEntry `locationName:"extraHosts" type:"list"` // The hostname to use for your container. This parameter maps to Hostname in - // the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --hostname option to docker run (https://docs.docker.com/reference/commandline/run/). + // the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --hostname option to docker run (https://docs.docker.com/engine/reference/run/). Hostname *string `locationName:"hostname" type:"string"` // The image used to start a container. This string is passed directly to the // Docker daemon. Images in the Docker Hub registry are available by default. - // Other repositories are specified with repository-url/image:tag . Up to 255 + // Other repositories are specified with repository-url/image:tag. Up to 255 // letters (uppercase and lowercase), numbers, hyphens, underscores, colons, // periods, forward slashes, and number signs are allowed. This parameter maps - // to Image in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the IMAGE parameter of docker run (https://docs.docker.com/reference/commandline/run/). + // to Image in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the IMAGE parameter of docker run (https://docs.docker.com/engine/reference/run/). + // + // Amazon ECS task definitions currently only support tags as image identifiers + // within a specified repository (and not sha256 digests). + // + // * Images in Amazon ECR repositories use the full registry and repository + // URI (for example, 012345678910.dkr.ecr..amazonaws.com/). // - // Images in official repositories on Docker Hub use a single name (for example, - // ubuntu or mongo). // - // Images in other repositories on Docker Hub are qualified with an organization - // name (for example, amazon/amazon-ecs-agent). + // * Images in official repositories on Docker Hub use a single name (for + // example, ubuntu or mongo). // - // Images in other online repositories are qualified further by a domain - // name (for example, quay.io/assemblyline/ubuntu). + // * Images in other repositories on Docker Hub are qualified with an organization + // name (for example, amazon/amazon-ecs-agent). + // + // * Images in other online repositories are qualified further by a domain + // name (for example, quay.io/assemblyline/ubuntu). Image *string `locationName:"image" type:"string"` // The link parameter allows containers to communicate with each other without @@ -2759,21 +3304,22 @@ type ContainerDefinition struct { // for the link. This construct is analogous to name:alias in Docker links. // Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores // are allowed for each name and alias. For more information on linking Docker - // containers, see https://docs.docker.com/userguide/dockerlinks/ (https://docs.docker.com/userguide/dockerlinks/). - // This parameter maps to Links in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --link option to docker run (https://docs.docker.com/reference/commandline/run/). + // containers, see https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/ + // (https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/). + // This parameter maps to Links in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --link option to docker run (https://docs.docker.com/engine/reference/run/). // - // Containers that are collocated on a single container instance may be able + // Containers that are collocated on a single container instance may be able // to communicate with each other without requiring links or host port mappings. // Network isolation is achieved on the container instance using security groups // and VPC settings. Links []*string `locationName:"links" type:"list"` // The log configuration specification for the container. This parameter maps - // to LogConfig in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --log-driver option to docker run (https://docs.docker.com/reference/commandline/run/). + // to LogConfig in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --log-driver option to docker run (https://docs.docker.com/engine/reference/run/). // By default, containers use the same logging driver that the Docker daemon // uses; however the container may use a different logging driver than the Docker // daemon by specifying a log driver with this parameter in the container definition. @@ -2783,17 +3329,16 @@ type ContainerDefinition struct { // supported log drivers, see Configure logging drivers (https://docs.docker.com/engine/admin/logging/overview/) // in the Docker documentation. // - // Amazon ECS currently supports a subset of the logging drivers available - // to the Docker daemon (shown in the LogConfiguration data type). Currently - // unsupported log drivers may be available in future releases of the Amazon - // ECS container agent. + // Amazon ECS currently supports a subset of the logging drivers available to + // the Docker daemon (shown in the LogConfiguration data type). Additional log + // drivers may be available in future releases of the Amazon ECS container agent. // - // This parameter requires version 1.18 of the Docker Remote API or greater + // This parameter requires version 1.18 of the Docker Remote API or greater // on your container instance. To check the Docker Remote API version on your // container instance, log into your container instance and run the following // command: sudo docker version | grep "Server API version" // - // The Amazon ECS container agent running on a container instance must register + // The Amazon ECS container agent running on a container instance must register // the logging drivers available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS // environment variable before containers placed on that instance can use these // log configuration options. For more information, see Amazon ECS Container @@ -2803,9 +3348,9 @@ type ContainerDefinition struct { // The hard limit (in MiB) of memory to present to the container. If your container // attempts to exceed the memory specified here, the container is killed. This - // parameter maps to Memory in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --memory option to docker run (https://docs.docker.com/reference/commandline/run/). + // parameter maps to Memory in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --memory option to docker run (https://docs.docker.com/engine/reference/run/). // // You must specify a non-zero integer for one or both of memory or memoryReservation // in container definitions. If you specify both, memory must be greater than @@ -2823,9 +3368,9 @@ type ContainerDefinition struct { // it needs to, up to either the hard limit specified with the memory parameter // (if applicable), or all of the available memory on the container instance, // whichever comes first. This parameter maps to MemoryReservation in the Create - // a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --memory-reservation option to docker run (https://docs.docker.com/reference/commandline/run/). + // a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --memory-reservation option to docker run (https://docs.docker.com/engine/reference/run/). // // You must specify a non-zero integer for one or both of memory or memoryReservation // in container definitions. If you specify both, memory must be greater than @@ -2842,54 +3387,54 @@ type ContainerDefinition struct { MemoryReservation *int64 `locationName:"memoryReservation" type:"integer"` // The mount points for data volumes in your container. This parameter maps - // to Volumes in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --volume option to docker run (https://docs.docker.com/reference/commandline/run/). + // to Volumes in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --volume option to docker run (https://docs.docker.com/engine/reference/run/). MountPoints []*MountPoint `locationName:"mountPoints" type:"list"` // The name of a container. If you are linking multiple containers together // in a task definition, the name of one container can be entered in the links // of another container to connect the containers. Up to 255 letters (uppercase // and lowercase), numbers, hyphens, and underscores are allowed. This parameter - // maps to name in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --name option to docker run (https://docs.docker.com/reference/commandline/run/). + // maps to name in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --name option to docker run (https://docs.docker.com/engine/reference/run/). Name *string `locationName:"name" type:"string"` // The list of port mappings for the container. Port mappings allow containers // to access ports on the host container instance to send or receive traffic. - // This parameter maps to PortBindings in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --publish option to docker run (https://docs.docker.com/reference/commandline/run/). + // This parameter maps to PortBindings in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --publish option to docker run (https://docs.docker.com/engine/reference/run/). // If the network mode of a task definition is set to none, then you cannot // specify port mappings. If the network mode of a task definition is set to // host, then host ports must either be undefined or they must match the container // port in the port mapping. // - // After a task reaches the RUNNING status, manual and automatic host and - // container port assignments are visible in the Network Bindings section of - // a container description of a selected task in the Amazon ECS console, or - // the networkBindings section DescribeTasks responses. + // After a task reaches the RUNNING status, manual and automatic host and container + // port assignments are visible in the Network Bindings section of a container + // description of a selected task in the Amazon ECS console, or the networkBindings + // section DescribeTasks responses. PortMappings []*PortMapping `locationName:"portMappings" type:"list"` // When this parameter is true, the container is given elevated privileges on // the host container instance (similar to the root user). This parameter maps - // to Privileged in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --privileged option to docker run (https://docs.docker.com/reference/commandline/run/). + // to Privileged in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --privileged option to docker run (https://docs.docker.com/engine/reference/run/). Privileged *bool `locationName:"privileged" type:"boolean"` // When this parameter is true, the container is given read-only access to its // root file system. This parameter maps to ReadonlyRootfs in the Create a container - // (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) + // (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) // and the --read-only option to docker run. ReadonlyRootFilesystem *bool `locationName:"readonlyRootFilesystem" type:"boolean"` // A list of ulimits to set in the container. This parameter maps to Ulimits - // in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --ulimit option to docker run (https://docs.docker.com/reference/commandline/run/). + // in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --ulimit option to docker run (https://docs.docker.com/engine/reference/run/). // Valid naming values are displayed in the Ulimit data type. This parameter // requires version 1.18 of the Docker Remote API or greater on your container // instance. To check the Docker Remote API version on your container instance, @@ -2898,21 +3443,21 @@ type ContainerDefinition struct { Ulimits []*Ulimit `locationName:"ulimits" type:"list"` // The user name to use inside the container. This parameter maps to User in - // the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --user option to docker run (https://docs.docker.com/reference/commandline/run/). + // the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --user option to docker run (https://docs.docker.com/engine/reference/run/). User *string `locationName:"user" type:"string"` // Data volumes to mount from another container. This parameter maps to VolumesFrom - // in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --volumes-from option to docker run (https://docs.docker.com/reference/commandline/run/). + // in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --volumes-from option to docker run (https://docs.docker.com/engine/reference/run/). VolumesFrom []*VolumeFrom `locationName:"volumesFrom" type:"list"` // The working directory in which to run commands inside the container. This - // parameter maps to WorkingDir in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.23/) - // and the --workdir option to docker run (https://docs.docker.com/reference/commandline/run/). + // parameter maps to WorkingDir in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container) + // section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/) + // and the --workdir option to docker run (https://docs.docker.com/engine/reference/run/). WorkingDirectory *string `locationName:"workingDirectory" type:"string"` } @@ -2961,8 +3506,165 @@ func (s *ContainerDefinition) Validate() error { return nil } +// SetCommand sets the Command field's value. +func (s *ContainerDefinition) SetCommand(v []*string) *ContainerDefinition { + s.Command = v + return s +} + +// SetCpu sets the Cpu field's value. +func (s *ContainerDefinition) SetCpu(v int64) *ContainerDefinition { + s.Cpu = &v + return s +} + +// SetDisableNetworking sets the DisableNetworking field's value. +func (s *ContainerDefinition) SetDisableNetworking(v bool) *ContainerDefinition { + s.DisableNetworking = &v + return s +} + +// SetDnsSearchDomains sets the DnsSearchDomains field's value. +func (s *ContainerDefinition) SetDnsSearchDomains(v []*string) *ContainerDefinition { + s.DnsSearchDomains = v + return s +} + +// SetDnsServers sets the DnsServers field's value. +func (s *ContainerDefinition) SetDnsServers(v []*string) *ContainerDefinition { + s.DnsServers = v + return s +} + +// SetDockerLabels sets the DockerLabels field's value. +func (s *ContainerDefinition) SetDockerLabels(v map[string]*string) *ContainerDefinition { + s.DockerLabels = v + return s +} + +// SetDockerSecurityOptions sets the DockerSecurityOptions field's value. +func (s *ContainerDefinition) SetDockerSecurityOptions(v []*string) *ContainerDefinition { + s.DockerSecurityOptions = v + return s +} + +// SetEntryPoint sets the EntryPoint field's value. +func (s *ContainerDefinition) SetEntryPoint(v []*string) *ContainerDefinition { + s.EntryPoint = v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *ContainerDefinition) SetEnvironment(v []*KeyValuePair) *ContainerDefinition { + s.Environment = v + return s +} + +// SetEssential sets the Essential field's value. +func (s *ContainerDefinition) SetEssential(v bool) *ContainerDefinition { + s.Essential = &v + return s +} + +// SetExtraHosts sets the ExtraHosts field's value. +func (s *ContainerDefinition) SetExtraHosts(v []*HostEntry) *ContainerDefinition { + s.ExtraHosts = v + return s +} + +// SetHostname sets the Hostname field's value. +func (s *ContainerDefinition) SetHostname(v string) *ContainerDefinition { + s.Hostname = &v + return s +} + +// SetImage sets the Image field's value. +func (s *ContainerDefinition) SetImage(v string) *ContainerDefinition { + s.Image = &v + return s +} + +// SetLinks sets the Links field's value. +func (s *ContainerDefinition) SetLinks(v []*string) *ContainerDefinition { + s.Links = v + return s +} + +// SetLogConfiguration sets the LogConfiguration field's value. +func (s *ContainerDefinition) SetLogConfiguration(v *LogConfiguration) *ContainerDefinition { + s.LogConfiguration = v + return s +} + +// SetMemory sets the Memory field's value. +func (s *ContainerDefinition) SetMemory(v int64) *ContainerDefinition { + s.Memory = &v + return s +} + +// SetMemoryReservation sets the MemoryReservation field's value. +func (s *ContainerDefinition) SetMemoryReservation(v int64) *ContainerDefinition { + s.MemoryReservation = &v + return s +} + +// SetMountPoints sets the MountPoints field's value. +func (s *ContainerDefinition) SetMountPoints(v []*MountPoint) *ContainerDefinition { + s.MountPoints = v + return s +} + +// SetName sets the Name field's value. +func (s *ContainerDefinition) SetName(v string) *ContainerDefinition { + s.Name = &v + return s +} + +// SetPortMappings sets the PortMappings field's value. +func (s *ContainerDefinition) SetPortMappings(v []*PortMapping) *ContainerDefinition { + s.PortMappings = v + return s +} + +// SetPrivileged sets the Privileged field's value. +func (s *ContainerDefinition) SetPrivileged(v bool) *ContainerDefinition { + s.Privileged = &v + return s +} + +// SetReadonlyRootFilesystem sets the ReadonlyRootFilesystem field's value. +func (s *ContainerDefinition) SetReadonlyRootFilesystem(v bool) *ContainerDefinition { + s.ReadonlyRootFilesystem = &v + return s +} + +// SetUlimits sets the Ulimits field's value. +func (s *ContainerDefinition) SetUlimits(v []*Ulimit) *ContainerDefinition { + s.Ulimits = v + return s +} + +// SetUser sets the User field's value. +func (s *ContainerDefinition) SetUser(v string) *ContainerDefinition { + s.User = &v + return s +} + +// SetVolumesFrom sets the VolumesFrom field's value. +func (s *ContainerDefinition) SetVolumesFrom(v []*VolumeFrom) *ContainerDefinition { + s.VolumesFrom = v + return s +} + +// SetWorkingDirectory sets the WorkingDirectory field's value. +func (s *ContainerDefinition) SetWorkingDirectory(v string) *ContainerDefinition { + s.WorkingDirectory = &v + return s +} + // An EC2 instance that is running the Amazon ECS agent and has been registered // with a cluster. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ContainerInstance type ContainerInstance struct { _ struct{} `type:"structure"` @@ -2976,15 +3678,14 @@ type ContainerInstance struct { // this value is NULL. AgentUpdateStatus *string `locationName:"agentUpdateStatus" type:"string" enum:"AgentUpdateStatus"` - // The attributes set for the container instance by the Amazon ECS container - // agent at instance registration. + // The attributes set for the container instance, either by the Amazon ECS container + // agent at instance registration or manually with the PutAttributes operation. Attributes []*Attribute `locationName:"attributes" type:"list"` // The Amazon Resource Name (ARN) of the container instance. The ARN contains // the arn:aws:ecs namespace, followed by the region of the container instance, // the AWS account ID of the container instance owner, the container-instance - // namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID - // . + // namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID. ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` // The EC2 instance ID of the container instance. @@ -2993,12 +3694,18 @@ type ContainerInstance struct { // The number of tasks on the container instance that are in the PENDING status. PendingTasksCount *int64 `locationName:"pendingTasksCount" type:"integer"` - // The registered resources on the container instance that are in use by current - // tasks. + // For most resource types, this parameter describes the registered resources + // on the container instance that are in use by current tasks. For port resource + // types, this parameter describes the ports that were reserved by the Amazon + // ECS container agent when it registered the container instance with Amazon + // ECS. RegisteredResources []*Resource `locationName:"registeredResources" type:"list"` - // The remaining resources of the container instance that are available for - // new tasks. + // For most resource types, this parameter describes the remaining resources + // of the container instance that are available for new tasks. For port resource + // types, this parameter describes the ports that are reserved by the Amazon + // ECS container agent and any containers that have reserved port mappings; + // any port that is not specified here is available for new tasks. RemainingResources []*Resource `locationName:"remainingResources" type:"list"` // The number of tasks on the container instance that are in the RUNNING status. @@ -3008,6 +3715,15 @@ type ContainerInstance struct { // ACTIVE indicates that the container instance can accept tasks. Status *string `locationName:"status" type:"string"` + // The version counter for the container instance. Every time a container instance + // experiences a change that triggers a CloudWatch event, the version counter + // is incremented. If you are replicating your Amazon ECS container instance + // state with CloudWatch events, you can compare the version of a container + // instance reported by the Amazon ECS APIs with the version reported in CloudWatch + // events for the container instance (inside the detail object) to verify that + // the version in your event stream is current. + Version *int64 `locationName:"version" type:"long"` + // The version information for the Amazon ECS container agent and Docker daemon // running on the container instance. VersionInfo *VersionInfo `locationName:"versionInfo" type:"structure"` @@ -3023,7 +3739,80 @@ func (s ContainerInstance) GoString() string { return s.String() } +// SetAgentConnected sets the AgentConnected field's value. +func (s *ContainerInstance) SetAgentConnected(v bool) *ContainerInstance { + s.AgentConnected = &v + return s +} + +// SetAgentUpdateStatus sets the AgentUpdateStatus field's value. +func (s *ContainerInstance) SetAgentUpdateStatus(v string) *ContainerInstance { + s.AgentUpdateStatus = &v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *ContainerInstance) SetAttributes(v []*Attribute) *ContainerInstance { + s.Attributes = v + return s +} + +// SetContainerInstanceArn sets the ContainerInstanceArn field's value. +func (s *ContainerInstance) SetContainerInstanceArn(v string) *ContainerInstance { + s.ContainerInstanceArn = &v + return s +} + +// SetEc2InstanceId sets the Ec2InstanceId field's value. +func (s *ContainerInstance) SetEc2InstanceId(v string) *ContainerInstance { + s.Ec2InstanceId = &v + return s +} + +// SetPendingTasksCount sets the PendingTasksCount field's value. +func (s *ContainerInstance) SetPendingTasksCount(v int64) *ContainerInstance { + s.PendingTasksCount = &v + return s +} + +// SetRegisteredResources sets the RegisteredResources field's value. +func (s *ContainerInstance) SetRegisteredResources(v []*Resource) *ContainerInstance { + s.RegisteredResources = v + return s +} + +// SetRemainingResources sets the RemainingResources field's value. +func (s *ContainerInstance) SetRemainingResources(v []*Resource) *ContainerInstance { + s.RemainingResources = v + return s +} + +// SetRunningTasksCount sets the RunningTasksCount field's value. +func (s *ContainerInstance) SetRunningTasksCount(v int64) *ContainerInstance { + s.RunningTasksCount = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ContainerInstance) SetStatus(v string) *ContainerInstance { + s.Status = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *ContainerInstance) SetVersion(v int64) *ContainerInstance { + s.Version = &v + return s +} + +// SetVersionInfo sets the VersionInfo field's value. +func (s *ContainerInstance) SetVersionInfo(v *VersionInfo) *ContainerInstance { + s.VersionInfo = v + return s +} + // The overrides that should be sent to a container. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ContainerOverride type ContainerOverride struct { _ struct{} `type:"structure"` @@ -3050,6 +3839,25 @@ func (s ContainerOverride) GoString() string { return s.String() } +// SetCommand sets the Command field's value. +func (s *ContainerOverride) SetCommand(v []*string) *ContainerOverride { + s.Command = v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *ContainerOverride) SetEnvironment(v []*KeyValuePair) *ContainerOverride { + s.Environment = v + return s +} + +// SetName sets the Name field's value. +func (s *ContainerOverride) SetName(v string) *ContainerOverride { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/CreateClusterRequest type CreateClusterInput struct { _ struct{} `type:"structure"` @@ -3069,6 +3877,13 @@ func (s CreateClusterInput) GoString() string { return s.String() } +// SetClusterName sets the ClusterName field's value. +func (s *CreateClusterInput) SetClusterName(v string) *CreateClusterInput { + s.ClusterName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/CreateClusterResponse type CreateClusterOutput struct { _ struct{} `type:"structure"` @@ -3086,6 +3901,13 @@ func (s CreateClusterOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *CreateClusterOutput) SetCluster(v *Cluster) *CreateClusterOutput { + s.Cluster = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/CreateServiceRequest type CreateServiceInput struct { _ struct{} `type:"structure"` @@ -3109,9 +3931,9 @@ type CreateServiceInput struct { DesiredCount *int64 `locationName:"desiredCount" type:"integer" required:"true"` // A load balancer object representing the load balancer to use with your service. - // Currently, you are limited to one load balancer per service. After you create - // a service, the load balancer name, container name, and container port specified - // in the service definition are immutable. + // Currently, you are limited to one load balancer or target group per service. + // After you create a service, the load balancer name or target group ARN, container + // name, and container port specified in the service definition are immutable. // // For Elastic Load Balancing Classic load balancers, this object must contain // the load balancer name, the container name (as it appears in a container @@ -3119,14 +3941,23 @@ type CreateServiceInput struct { // a task from this service is placed on a container instance, the container // instance is registered with the load balancer specified here. // - // For Elastic Load Balancing Application load balancers, this object must - // contain the load balancer target group ARN, the container name (as it appears - // in a container definition), and the container port to access from the load - // balancer. When a task from this service is placed on a container instance, - // the container instance and port combination is registered as a target in - // the target group specified here. + // For Elastic Load Balancing Application load balancers, this object must contain + // the load balancer target group ARN, the container name (as it appears in + // a container definition), and the container port to access from the load balancer. + // When a task from this service is placed on a container instance, the container + // instance and port combination is registered as a target in the target group + // specified here. LoadBalancers []*LoadBalancer `locationName:"loadBalancers" type:"list"` + // An array of placement constraint objects to use for tasks in your service. + // You can specify a maximum of 10 constraints per task (this limit includes + // constraints in the task definition and those specified at run time). + PlacementConstraints []*PlacementConstraint `locationName:"placementConstraints" type:"list"` + + // The placement strategy objects to use for tasks in your service. You can + // specify a maximum of 5 strategy rules per service. + PlacementStrategy []*PlacementStrategy `locationName:"placementStrategy" type:"list"` + // The name or full Amazon Resource Name (ARN) of the IAM role that allows Amazon // ECS to make calls to your load balancer on your behalf. This parameter is // required if you are using a load balancer with your service. If you specify @@ -3176,8 +4007,143 @@ func (s *CreateServiceInput) Validate() error { if s.ServiceName == nil { invalidParams.Add(request.NewErrParamRequired("ServiceName")) } - if s.TaskDefinition == nil { - invalidParams.Add(request.NewErrParamRequired("TaskDefinition")) + if s.TaskDefinition == nil { + invalidParams.Add(request.NewErrParamRequired("TaskDefinition")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateServiceInput) SetClientToken(v string) *CreateServiceInput { + s.ClientToken = &v + return s +} + +// SetCluster sets the Cluster field's value. +func (s *CreateServiceInput) SetCluster(v string) *CreateServiceInput { + s.Cluster = &v + return s +} + +// SetDeploymentConfiguration sets the DeploymentConfiguration field's value. +func (s *CreateServiceInput) SetDeploymentConfiguration(v *DeploymentConfiguration) *CreateServiceInput { + s.DeploymentConfiguration = v + return s +} + +// SetDesiredCount sets the DesiredCount field's value. +func (s *CreateServiceInput) SetDesiredCount(v int64) *CreateServiceInput { + s.DesiredCount = &v + return s +} + +// SetLoadBalancers sets the LoadBalancers field's value. +func (s *CreateServiceInput) SetLoadBalancers(v []*LoadBalancer) *CreateServiceInput { + s.LoadBalancers = v + return s +} + +// SetPlacementConstraints sets the PlacementConstraints field's value. +func (s *CreateServiceInput) SetPlacementConstraints(v []*PlacementConstraint) *CreateServiceInput { + s.PlacementConstraints = v + return s +} + +// SetPlacementStrategy sets the PlacementStrategy field's value. +func (s *CreateServiceInput) SetPlacementStrategy(v []*PlacementStrategy) *CreateServiceInput { + s.PlacementStrategy = v + return s +} + +// SetRole sets the Role field's value. +func (s *CreateServiceInput) SetRole(v string) *CreateServiceInput { + s.Role = &v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *CreateServiceInput) SetServiceName(v string) *CreateServiceInput { + s.ServiceName = &v + return s +} + +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *CreateServiceInput) SetTaskDefinition(v string) *CreateServiceInput { + s.TaskDefinition = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/CreateServiceResponse +type CreateServiceOutput struct { + _ struct{} `type:"structure"` + + // The full description of your service following the create call. + Service *Service `locationName:"service" type:"structure"` +} + +// String returns the string representation +func (s CreateServiceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateServiceOutput) GoString() string { + return s.String() +} + +// SetService sets the Service field's value. +func (s *CreateServiceOutput) SetService(v *Service) *CreateServiceOutput { + s.Service = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteAttributesRequest +type DeleteAttributesInput struct { + _ struct{} `type:"structure"` + + // The attributes to delete from your resource. You can specify up to 10 attributes + // per request. For custom attributes, specify the attribute name and target + // ID, but do not specify the value. If you specify the target ID using the + // short form, you must also specify the target type. + // + // Attributes is a required field + Attributes []*Attribute `locationName:"attributes" type:"list" required:"true"` + + // The short name or full Amazon Resource Name (ARN) of the cluster that contains + // the resource to apply attributes. If you do not specify a cluster, the default + // cluster is assumed. + Cluster *string `locationName:"cluster" type:"string"` +} + +// String returns the string representation +func (s DeleteAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAttributesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAttributesInput"} + if s.Attributes == nil { + invalidParams.Add(request.NewErrParamRequired("Attributes")) + } + if s.Attributes != nil { + for i, v := range s.Attributes { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attributes", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -3186,23 +4152,43 @@ func (s *CreateServiceInput) Validate() error { return nil } -type CreateServiceOutput struct { +// SetAttributes sets the Attributes field's value. +func (s *DeleteAttributesInput) SetAttributes(v []*Attribute) *DeleteAttributesInput { + s.Attributes = v + return s +} + +// SetCluster sets the Cluster field's value. +func (s *DeleteAttributesInput) SetCluster(v string) *DeleteAttributesInput { + s.Cluster = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteAttributesResponse +type DeleteAttributesOutput struct { _ struct{} `type:"structure"` - // The full description of your service following the create call. - Service *Service `locationName:"service" type:"structure"` + // A list of attribute objects that were successfully deleted from your resource. + Attributes []*Attribute `locationName:"attributes" type:"list"` } // String returns the string representation -func (s CreateServiceOutput) String() string { +func (s DeleteAttributesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateServiceOutput) GoString() string { +func (s DeleteAttributesOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *DeleteAttributesOutput) SetAttributes(v []*Attribute) *DeleteAttributesOutput { + s.Attributes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteClusterRequest type DeleteClusterInput struct { _ struct{} `type:"structure"` @@ -3235,6 +4221,13 @@ func (s *DeleteClusterInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *DeleteClusterInput) SetCluster(v string) *DeleteClusterInput { + s.Cluster = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteClusterResponse type DeleteClusterOutput struct { _ struct{} `type:"structure"` @@ -3252,6 +4245,13 @@ func (s DeleteClusterOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *DeleteClusterOutput) SetCluster(v *Cluster) *DeleteClusterOutput { + s.Cluster = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteServiceRequest type DeleteServiceInput struct { _ struct{} `type:"structure"` @@ -3288,6 +4288,19 @@ func (s *DeleteServiceInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *DeleteServiceInput) SetCluster(v string) *DeleteServiceInput { + s.Cluster = &v + return s +} + +// SetService sets the Service field's value. +func (s *DeleteServiceInput) SetService(v string) *DeleteServiceInput { + s.Service = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteServiceResponse type DeleteServiceOutput struct { _ struct{} `type:"structure"` @@ -3305,7 +4318,14 @@ func (s DeleteServiceOutput) GoString() string { return s.String() } +// SetService sets the Service field's value. +func (s *DeleteServiceOutput) SetService(v *Service) *DeleteServiceOutput { + s.Service = v + return s +} + // The details of an Amazon ECS service deployment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/Deployment type Deployment struct { _ struct{} `type:"structure"` @@ -3348,21 +4368,70 @@ func (s Deployment) GoString() string { return s.String() } +// SetCreatedAt sets the CreatedAt field's value. +func (s *Deployment) SetCreatedAt(v time.Time) *Deployment { + s.CreatedAt = &v + return s +} + +// SetDesiredCount sets the DesiredCount field's value. +func (s *Deployment) SetDesiredCount(v int64) *Deployment { + s.DesiredCount = &v + return s +} + +// SetId sets the Id field's value. +func (s *Deployment) SetId(v string) *Deployment { + s.Id = &v + return s +} + +// SetPendingCount sets the PendingCount field's value. +func (s *Deployment) SetPendingCount(v int64) *Deployment { + s.PendingCount = &v + return s +} + +// SetRunningCount sets the RunningCount field's value. +func (s *Deployment) SetRunningCount(v int64) *Deployment { + s.RunningCount = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Deployment) SetStatus(v string) *Deployment { + s.Status = &v + return s +} + +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *Deployment) SetTaskDefinition(v string) *Deployment { + s.TaskDefinition = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *Deployment) SetUpdatedAt(v time.Time) *Deployment { + s.UpdatedAt = &v + return s +} + // Optional deployment parameters that control how many tasks run during the // deployment and the ordering of stopping and starting tasks. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeploymentConfiguration type DeploymentConfiguration struct { _ struct{} `type:"structure"` // The upper limit (as a percentage of the service's desiredCount) of the number - // of running tasks that can be running in a service during a deployment. The - // maximum number of tasks during a deployment is the desiredCount multiplied - // by the maximumPercent/100, rounded down to the nearest integer value. + // of tasks that are allowed in the RUNNING or PENDING state in a service during + // a deployment. The maximum number of tasks during a deployment is the desiredCount + // multiplied by maximumPercent/100, rounded down to the nearest integer value. MaximumPercent *int64 `locationName:"maximumPercent" type:"integer"` // The lower limit (as a percentage of the service's desiredCount) of the number - // of running tasks that must remain running and healthy in a service during + // of running tasks that must remain in the RUNNING state in a service during // a deployment. The minimum healthy tasks during a deployment is the desiredCount - // multiplied by the minimumHealthyPercent/100, rounded up to the nearest integer + // multiplied by minimumHealthyPercent/100, rounded up to the nearest integer // value. MinimumHealthyPercent *int64 `locationName:"minimumHealthyPercent" type:"integer"` } @@ -3377,6 +4446,19 @@ func (s DeploymentConfiguration) GoString() string { return s.String() } +// SetMaximumPercent sets the MaximumPercent field's value. +func (s *DeploymentConfiguration) SetMaximumPercent(v int64) *DeploymentConfiguration { + s.MaximumPercent = &v + return s +} + +// SetMinimumHealthyPercent sets the MinimumHealthyPercent field's value. +func (s *DeploymentConfiguration) SetMinimumHealthyPercent(v int64) *DeploymentConfiguration { + s.MinimumHealthyPercent = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeregisterContainerInstanceRequest type DeregisterContainerInstanceInput struct { _ struct{} `type:"structure"` @@ -3389,20 +4471,23 @@ type DeregisterContainerInstanceInput struct { // instance to deregister. The ARN contains the arn:aws:ecs namespace, followed // by the region of the container instance, the AWS account ID of the container // instance owner, the container-instance namespace, and then the container - // instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID - // . + // instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID. // // ContainerInstance is a required field ContainerInstance *string `locationName:"containerInstance" type:"string" required:"true"` // Forces the deregistration of the container instance. If you have tasks running // on the container instance when you deregister it with the force option, these - // tasks remain running and they continue to pass Elastic Load Balancing load - // balancer health checks until you terminate the instance or the tasks stop - // through some other means, but they are orphaned (no longer monitored or accounted + // tasks remain running until you terminate the instance or the tasks stop through + // some other means, but they are orphaned (no longer monitored or accounted // for by Amazon ECS). If an orphaned task on your container instance is part // of an Amazon ECS service, then the service scheduler starts another copy // of that task, on a different container instance if possible. + // + // Any containers in orphaned service tasks that are registered with a Classic + // load balancer or an Application load balancer target group are deregistered, + // and they will begin connection draining according to the settings on the + // load balancer or target group. Force *bool `locationName:"force" type:"boolean"` } @@ -3429,11 +4514,29 @@ func (s *DeregisterContainerInstanceInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *DeregisterContainerInstanceInput) SetCluster(v string) *DeregisterContainerInstanceInput { + s.Cluster = &v + return s +} + +// SetContainerInstance sets the ContainerInstance field's value. +func (s *DeregisterContainerInstanceInput) SetContainerInstance(v string) *DeregisterContainerInstanceInput { + s.ContainerInstance = &v + return s +} + +// SetForce sets the Force field's value. +func (s *DeregisterContainerInstanceInput) SetForce(v bool) *DeregisterContainerInstanceInput { + s.Force = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeregisterContainerInstanceResponse type DeregisterContainerInstanceOutput struct { _ struct{} `type:"structure"` - // An EC2 instance that is running the Amazon ECS agent and has been registered - // with a cluster. + // The container instance that was deregistered. ContainerInstance *ContainerInstance `locationName:"containerInstance" type:"structure"` } @@ -3447,6 +4550,13 @@ func (s DeregisterContainerInstanceOutput) GoString() string { return s.String() } +// SetContainerInstance sets the ContainerInstance field's value. +func (s *DeregisterContainerInstanceOutput) SetContainerInstance(v *ContainerInstance) *DeregisterContainerInstanceOutput { + s.ContainerInstance = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeregisterTaskDefinitionRequest type DeregisterTaskDefinitionInput struct { _ struct{} `type:"structure"` @@ -3480,6 +4590,13 @@ func (s *DeregisterTaskDefinitionInput) Validate() error { return nil } +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *DeregisterTaskDefinitionInput) SetTaskDefinition(v string) *DeregisterTaskDefinitionInput { + s.TaskDefinition = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeregisterTaskDefinitionResponse type DeregisterTaskDefinitionOutput struct { _ struct{} `type:"structure"` @@ -3497,6 +4614,13 @@ func (s DeregisterTaskDefinitionOutput) GoString() string { return s.String() } +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *DeregisterTaskDefinitionOutput) SetTaskDefinition(v *TaskDefinition) *DeregisterTaskDefinitionOutput { + s.TaskDefinition = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeClustersRequest type DescribeClustersInput struct { _ struct{} `type:"structure"` @@ -3516,6 +4640,13 @@ func (s DescribeClustersInput) GoString() string { return s.String() } +// SetClusters sets the Clusters field's value. +func (s *DescribeClustersInput) SetClusters(v []*string) *DescribeClustersInput { + s.Clusters = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeClustersResponse type DescribeClustersOutput struct { _ struct{} `type:"structure"` @@ -3536,6 +4667,19 @@ func (s DescribeClustersOutput) GoString() string { return s.String() } +// SetClusters sets the Clusters field's value. +func (s *DescribeClustersOutput) SetClusters(v []*Cluster) *DescribeClustersOutput { + s.Clusters = v + return s +} + +// SetFailures sets the Failures field's value. +func (s *DescribeClustersOutput) SetFailures(v []*Failure) *DescribeClustersOutput { + s.Failures = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeContainerInstancesRequest type DescribeContainerInstancesInput struct { _ struct{} `type:"structure"` @@ -3574,6 +4718,19 @@ func (s *DescribeContainerInstancesInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *DescribeContainerInstancesInput) SetCluster(v string) *DescribeContainerInstancesInput { + s.Cluster = &v + return s +} + +// SetContainerInstances sets the ContainerInstances field's value. +func (s *DescribeContainerInstancesInput) SetContainerInstances(v []*string) *DescribeContainerInstancesInput { + s.ContainerInstances = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeContainerInstancesResponse type DescribeContainerInstancesOutput struct { _ struct{} `type:"structure"` @@ -3594,6 +4751,19 @@ func (s DescribeContainerInstancesOutput) GoString() string { return s.String() } +// SetContainerInstances sets the ContainerInstances field's value. +func (s *DescribeContainerInstancesOutput) SetContainerInstances(v []*ContainerInstance) *DescribeContainerInstancesOutput { + s.ContainerInstances = v + return s +} + +// SetFailures sets the Failures field's value. +func (s *DescribeContainerInstancesOutput) SetFailures(v []*Failure) *DescribeContainerInstancesOutput { + s.Failures = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeServicesRequest type DescribeServicesInput struct { _ struct{} `type:"structure"` @@ -3601,7 +4771,8 @@ type DescribeServicesInput struct { // specify a cluster, the default cluster is assumed. Cluster *string `locationName:"cluster" type:"string"` - // A list of services to describe. + // A list of services to describe. You may specify up to 10 services to describe + // in a single operation. // // Services is a required field Services []*string `locationName:"services" type:"list" required:"true"` @@ -3630,6 +4801,19 @@ func (s *DescribeServicesInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *DescribeServicesInput) SetCluster(v string) *DescribeServicesInput { + s.Cluster = &v + return s +} + +// SetServices sets the Services field's value. +func (s *DescribeServicesInput) SetServices(v []*string) *DescribeServicesInput { + s.Services = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeServicesResponse type DescribeServicesOutput struct { _ struct{} `type:"structure"` @@ -3650,6 +4834,19 @@ func (s DescribeServicesOutput) GoString() string { return s.String() } +// SetFailures sets the Failures field's value. +func (s *DescribeServicesOutput) SetFailures(v []*Failure) *DescribeServicesOutput { + s.Failures = v + return s +} + +// SetServices sets the Services field's value. +func (s *DescribeServicesOutput) SetServices(v []*Service) *DescribeServicesOutput { + s.Services = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeTaskDefinitionRequest type DescribeTaskDefinitionInput struct { _ struct{} `type:"structure"` @@ -3684,6 +4881,13 @@ func (s *DescribeTaskDefinitionInput) Validate() error { return nil } +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *DescribeTaskDefinitionInput) SetTaskDefinition(v string) *DescribeTaskDefinitionInput { + s.TaskDefinition = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeTaskDefinitionResponse type DescribeTaskDefinitionOutput struct { _ struct{} `type:"structure"` @@ -3701,6 +4905,13 @@ func (s DescribeTaskDefinitionOutput) GoString() string { return s.String() } +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *DescribeTaskDefinitionOutput) SetTaskDefinition(v *TaskDefinition) *DescribeTaskDefinitionOutput { + s.TaskDefinition = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeTasksRequest type DescribeTasksInput struct { _ struct{} `type:"structure"` @@ -3738,6 +4949,19 @@ func (s *DescribeTasksInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *DescribeTasksInput) SetCluster(v string) *DescribeTasksInput { + s.Cluster = &v + return s +} + +// SetTasks sets the Tasks field's value. +func (s *DescribeTasksInput) SetTasks(v []*string) *DescribeTasksInput { + s.Tasks = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeTasksResponse type DescribeTasksOutput struct { _ struct{} `type:"structure"` @@ -3758,6 +4982,19 @@ func (s DescribeTasksOutput) GoString() string { return s.String() } +// SetFailures sets the Failures field's value. +func (s *DescribeTasksOutput) SetFailures(v []*Failure) *DescribeTasksOutput { + s.Failures = v + return s +} + +// SetTasks sets the Tasks field's value. +func (s *DescribeTasksOutput) SetTasks(v []*Task) *DescribeTasksOutput { + s.Tasks = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DiscoverPollEndpointRequest type DiscoverPollEndpointInput struct { _ struct{} `type:"structure"` @@ -3768,8 +5005,7 @@ type DiscoverPollEndpointInput struct { // instance. The ARN contains the arn:aws:ecs namespace, followed by the region // of the container instance, the AWS account ID of the container instance owner, // the container-instance namespace, and then the container instance ID. For - // example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID - // . + // example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID. ContainerInstance *string `locationName:"containerInstance" type:"string"` } @@ -3783,6 +5019,19 @@ func (s DiscoverPollEndpointInput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *DiscoverPollEndpointInput) SetCluster(v string) *DiscoverPollEndpointInput { + s.Cluster = &v + return s +} + +// SetContainerInstance sets the ContainerInstance field's value. +func (s *DiscoverPollEndpointInput) SetContainerInstance(v string) *DiscoverPollEndpointInput { + s.ContainerInstance = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DiscoverPollEndpointResponse type DiscoverPollEndpointOutput struct { _ struct{} `type:"structure"` @@ -3803,7 +5052,20 @@ func (s DiscoverPollEndpointOutput) GoString() string { return s.String() } +// SetEndpoint sets the Endpoint field's value. +func (s *DiscoverPollEndpointOutput) SetEndpoint(v string) *DiscoverPollEndpointOutput { + s.Endpoint = &v + return s +} + +// SetTelemetryEndpoint sets the TelemetryEndpoint field's value. +func (s *DiscoverPollEndpointOutput) SetTelemetryEndpoint(v string) *DiscoverPollEndpointOutput { + s.TelemetryEndpoint = &v + return s +} + // A failed resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/Failure type Failure struct { _ struct{} `type:"structure"` @@ -3824,8 +5086,21 @@ func (s Failure) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Failure) SetArn(v string) *Failure { + s.Arn = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *Failure) SetReason(v string) *Failure { + s.Reason = &v + return s +} + // Hostnames and IP address entries that are added to the /etc/hosts file of // a container via the extraHosts parameter of its ContainerDefinition. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/HostEntry type HostEntry struct { _ struct{} `type:"structure"` @@ -3866,7 +5141,20 @@ func (s *HostEntry) Validate() error { return nil } +// SetHostname sets the Hostname field's value. +func (s *HostEntry) SetHostname(v string) *HostEntry { + s.Hostname = &v + return s +} + +// SetIpAddress sets the IpAddress field's value. +func (s *HostEntry) SetIpAddress(v string) *HostEntry { + s.IpAddress = &v + return s +} + // Details on a container instance host volume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/HostVolumeProperties type HostVolumeProperties struct { _ struct{} `type:"structure"` @@ -3890,7 +5178,14 @@ func (s HostVolumeProperties) GoString() string { return s.String() } +// SetSourcePath sets the SourcePath field's value. +func (s *HostVolumeProperties) SetSourcePath(v string) *HostVolumeProperties { + s.SourcePath = &v + return s +} + // A key and value pair object. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/KeyValuePair type KeyValuePair struct { _ struct{} `type:"structure"` @@ -3913,6 +5208,153 @@ func (s KeyValuePair) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *KeyValuePair) SetName(v string) *KeyValuePair { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *KeyValuePair) SetValue(v string) *KeyValuePair { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListAttributesRequest +type ListAttributesInput struct { + _ struct{} `type:"structure"` + + // The name of the attribute with which to filter the results. + AttributeName *string `locationName:"attributeName" type:"string"` + + // The value of the attribute with which to filter results. You must also specify + // an attribute name to use this parameter. + AttributeValue *string `locationName:"attributeValue" type:"string"` + + // The short name or full Amazon Resource Name (ARN) of the cluster to list + // attributes. If you do not specify a cluster, the default cluster is assumed. + Cluster *string `locationName:"cluster" type:"string"` + + // The maximum number of cluster results returned by ListAttributes in paginated + // output. When this parameter is used, ListAttributes only returns maxResults + // results in a single page along with a nextToken response element. The remaining + // results of the initial request can be seen by sending another ListAttributes + // request with the returned nextToken value. This value can be between 1 and + // 100. If this parameter is not used, then ListAttributes returns up to 100 + // results and a nextToken value if applicable. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // The nextToken value returned from a previous paginated ListAttributes request + // where maxResults was used and the results exceeded the value of that parameter. + // Pagination continues from the end of the previous results that returned the + // nextToken value. This value is null when there are no more results to return. + // + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. + NextToken *string `locationName:"nextToken" type:"string"` + + // The type of the target with which to list attributes. + // + // TargetType is a required field + TargetType *string `locationName:"targetType" type:"string" required:"true" enum:"TargetType"` +} + +// String returns the string representation +func (s ListAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAttributesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAttributesInput"} + if s.TargetType == nil { + invalidParams.Add(request.NewErrParamRequired("TargetType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttributeName sets the AttributeName field's value. +func (s *ListAttributesInput) SetAttributeName(v string) *ListAttributesInput { + s.AttributeName = &v + return s +} + +// SetAttributeValue sets the AttributeValue field's value. +func (s *ListAttributesInput) SetAttributeValue(v string) *ListAttributesInput { + s.AttributeValue = &v + return s +} + +// SetCluster sets the Cluster field's value. +func (s *ListAttributesInput) SetCluster(v string) *ListAttributesInput { + s.Cluster = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAttributesInput) SetMaxResults(v int64) *ListAttributesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAttributesInput) SetNextToken(v string) *ListAttributesInput { + s.NextToken = &v + return s +} + +// SetTargetType sets the TargetType field's value. +func (s *ListAttributesInput) SetTargetType(v string) *ListAttributesInput { + s.TargetType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListAttributesResponse +type ListAttributesOutput struct { + _ struct{} `type:"structure"` + + // A list of attribute objects that meet the criteria of the request. + Attributes []*Attribute `locationName:"attributes" type:"list"` + + // The nextToken value to include in a future ListAttributes request. When the + // results of a ListAttributes request exceed maxResults, this value can be + // used to retrieve the next page of results. This value is null when there + // are no more results to return. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAttributesOutput) GoString() string { + return s.String() +} + +// SetAttributes sets the Attributes field's value. +func (s *ListAttributesOutput) SetAttributes(v []*Attribute) *ListAttributesOutput { + s.Attributes = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAttributesOutput) SetNextToken(v string) *ListAttributesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListClustersRequest type ListClustersInput struct { _ struct{} `type:"structure"` @@ -3930,8 +5372,8 @@ type ListClustersInput struct { // Pagination continues from the end of the previous results that returned the // nextToken value. This value is null when there are no more results to return. // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` } @@ -3945,6 +5387,19 @@ func (s ListClustersInput) GoString() string { return s.String() } +// SetMaxResults sets the MaxResults field's value. +func (s *ListClustersInput) SetMaxResults(v int64) *ListClustersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListClustersInput) SetNextToken(v string) *ListClustersInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListClustersResponse type ListClustersOutput struct { _ struct{} `type:"structure"` @@ -3969,14 +5424,33 @@ func (s ListClustersOutput) GoString() string { return s.String() } +// SetClusterArns sets the ClusterArns field's value. +func (s *ListClustersOutput) SetClusterArns(v []*string) *ListClustersOutput { + s.ClusterArns = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListClustersOutput) SetNextToken(v string) *ListClustersOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListContainerInstancesRequest type ListContainerInstancesInput struct { _ struct{} `type:"structure"` // The short name or full Amazon Resource Name (ARN) of the cluster that hosts // the container instances to list. If you do not specify a cluster, the default - // cluster is assumed.. + // cluster is assumed. Cluster *string `locationName:"cluster" type:"string"` + // You can filter the results of a ListContainerInstances operation with cluster + // query language statements. For more information, see Cluster Query Language + // (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html) + // in the Amazon EC2 Container Service Developer Guide. + Filter *string `locationName:"filter" type:"string"` + // The maximum number of container instance results returned by ListContainerInstances // in paginated output. When this parameter is used, ListContainerInstances // only returns maxResults results in a single page along with a nextToken response @@ -3993,9 +5467,15 @@ type ListContainerInstancesInput struct { // returned the nextToken value. This value is null when there are no more results // to return. // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` + + // The container instance status with which to filter the ListContainerInstances + // results. Specifying a container instance status of DRAINING limits the results + // to container instances that have been set to drain with the UpdateContainerInstancesState + // operation. + Status *string `locationName:"status" type:"string" enum:"ContainerInstanceStatus"` } // String returns the string representation @@ -4008,6 +5488,37 @@ func (s ListContainerInstancesInput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *ListContainerInstancesInput) SetCluster(v string) *ListContainerInstancesInput { + s.Cluster = &v + return s +} + +// SetFilter sets the Filter field's value. +func (s *ListContainerInstancesInput) SetFilter(v string) *ListContainerInstancesInput { + s.Filter = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListContainerInstancesInput) SetMaxResults(v int64) *ListContainerInstancesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListContainerInstancesInput) SetNextToken(v string) *ListContainerInstancesInput { + s.NextToken = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListContainerInstancesInput) SetStatus(v string) *ListContainerInstancesInput { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListContainerInstancesResponse type ListContainerInstancesOutput struct { _ struct{} `type:"structure"` @@ -4032,12 +5543,25 @@ func (s ListContainerInstancesOutput) GoString() string { return s.String() } +// SetContainerInstanceArns sets the ContainerInstanceArns field's value. +func (s *ListContainerInstancesOutput) SetContainerInstanceArns(v []*string) *ListContainerInstancesOutput { + s.ContainerInstanceArns = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListContainerInstancesOutput) SetNextToken(v string) *ListContainerInstancesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListServicesRequest type ListServicesInput struct { _ struct{} `type:"structure"` // The short name or full Amazon Resource Name (ARN) of the cluster that hosts // the services to list. If you do not specify a cluster, the default cluster - // is assumed.. + // is assumed. Cluster *string `locationName:"cluster" type:"string"` // The maximum number of container instance results returned by ListServices @@ -4054,8 +5578,8 @@ type ListServicesInput struct { // Pagination continues from the end of the previous results that returned the // nextToken value. This value is null when there are no more results to return. // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` } @@ -4069,6 +5593,25 @@ func (s ListServicesInput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *ListServicesInput) SetCluster(v string) *ListServicesInput { + s.Cluster = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListServicesInput) SetMaxResults(v int64) *ListServicesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListServicesInput) SetNextToken(v string) *ListServicesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListServicesResponse type ListServicesOutput struct { _ struct{} `type:"structure"` @@ -4093,6 +5636,19 @@ func (s ListServicesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListServicesOutput) SetNextToken(v string) *ListServicesOutput { + s.NextToken = &v + return s +} + +// SetServiceArns sets the ServiceArns field's value. +func (s *ListServicesOutput) SetServiceArns(v []*string) *ListServicesOutput { + s.ServiceArns = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListTaskDefinitionFamiliesRequest type ListTaskDefinitionFamiliesInput struct { _ struct{} `type:"structure"` @@ -4117,8 +5673,8 @@ type ListTaskDefinitionFamiliesInput struct { // returned the nextToken value. This value is null when there are no more results // to return. // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` // The task definition family status with which to filter the ListTaskDefinitionFamilies @@ -4141,6 +5697,31 @@ func (s ListTaskDefinitionFamiliesInput) GoString() string { return s.String() } +// SetFamilyPrefix sets the FamilyPrefix field's value. +func (s *ListTaskDefinitionFamiliesInput) SetFamilyPrefix(v string) *ListTaskDefinitionFamiliesInput { + s.FamilyPrefix = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListTaskDefinitionFamiliesInput) SetMaxResults(v int64) *ListTaskDefinitionFamiliesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTaskDefinitionFamiliesInput) SetNextToken(v string) *ListTaskDefinitionFamiliesInput { + s.NextToken = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListTaskDefinitionFamiliesInput) SetStatus(v string) *ListTaskDefinitionFamiliesInput { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListTaskDefinitionFamiliesResponse type ListTaskDefinitionFamiliesOutput struct { _ struct{} `type:"structure"` @@ -4165,6 +5746,19 @@ func (s ListTaskDefinitionFamiliesOutput) GoString() string { return s.String() } +// SetFamilies sets the Families field's value. +func (s *ListTaskDefinitionFamiliesOutput) SetFamilies(v []*string) *ListTaskDefinitionFamiliesOutput { + s.Families = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTaskDefinitionFamiliesOutput) SetNextToken(v string) *ListTaskDefinitionFamiliesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListTaskDefinitionsRequest type ListTaskDefinitionsInput struct { _ struct{} `type:"structure"` @@ -4188,8 +5782,8 @@ type ListTaskDefinitionsInput struct { // returned the nextToken value. This value is null when there are no more results // to return. // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` // The order in which to sort the results. Valid values are ASC and DESC. By @@ -4213,11 +5807,42 @@ func (s ListTaskDefinitionsInput) String() string { return awsutil.Prettify(s) } -// GoString returns the string representation -func (s ListTaskDefinitionsInput) GoString() string { - return s.String() +// GoString returns the string representation +func (s ListTaskDefinitionsInput) GoString() string { + return s.String() +} + +// SetFamilyPrefix sets the FamilyPrefix field's value. +func (s *ListTaskDefinitionsInput) SetFamilyPrefix(v string) *ListTaskDefinitionsInput { + s.FamilyPrefix = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListTaskDefinitionsInput) SetMaxResults(v int64) *ListTaskDefinitionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTaskDefinitionsInput) SetNextToken(v string) *ListTaskDefinitionsInput { + s.NextToken = &v + return s +} + +// SetSort sets the Sort field's value. +func (s *ListTaskDefinitionsInput) SetSort(v string) *ListTaskDefinitionsInput { + s.Sort = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListTaskDefinitionsInput) SetStatus(v string) *ListTaskDefinitionsInput { + s.Status = &v + return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListTaskDefinitionsResponse type ListTaskDefinitionsOutput struct { _ struct{} `type:"structure"` @@ -4242,12 +5867,25 @@ func (s ListTaskDefinitionsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListTaskDefinitionsOutput) SetNextToken(v string) *ListTaskDefinitionsOutput { + s.NextToken = &v + return s +} + +// SetTaskDefinitionArns sets the TaskDefinitionArns field's value. +func (s *ListTaskDefinitionsOutput) SetTaskDefinitionArns(v []*string) *ListTaskDefinitionsOutput { + s.TaskDefinitionArns = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListTasksRequest type ListTasksInput struct { _ struct{} `type:"structure"` // The short name or full Amazon Resource Name (ARN) of the cluster that hosts // the tasks to list. If you do not specify a cluster, the default cluster is - // assumed.. + // assumed. Cluster *string `locationName:"cluster" type:"string"` // The container instance ID or full Amazon Resource Name (ARN) of the container @@ -4261,7 +5899,7 @@ type ListTasksInput struct { // not starting properly or have died or finished. The default status filter // is RUNNING, which shows tasks that ECS has set the desired status to RUNNING. // - // Although you can filter results based on a desired status of PENDING, this + // Although you can filter results based on a desired status of PENDING, this // will not return any results because ECS never sets the desired status of // a task to that value (only a task's lastStatus may have a value of PENDING). DesiredStatus *string `locationName:"desiredStatus" type:"string" enum:"DesiredStatus"` @@ -4284,8 +5922,8 @@ type ListTasksInput struct { // Pagination continues from the end of the previous results that returned the // nextToken value. This value is null when there are no more results to return. // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. + // This token should be treated as an opaque identifier that is only used to + // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` // The name of the service with which to filter the ListTasks results. Specifying @@ -4307,6 +5945,55 @@ func (s ListTasksInput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *ListTasksInput) SetCluster(v string) *ListTasksInput { + s.Cluster = &v + return s +} + +// SetContainerInstance sets the ContainerInstance field's value. +func (s *ListTasksInput) SetContainerInstance(v string) *ListTasksInput { + s.ContainerInstance = &v + return s +} + +// SetDesiredStatus sets the DesiredStatus field's value. +func (s *ListTasksInput) SetDesiredStatus(v string) *ListTasksInput { + s.DesiredStatus = &v + return s +} + +// SetFamily sets the Family field's value. +func (s *ListTasksInput) SetFamily(v string) *ListTasksInput { + s.Family = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListTasksInput) SetMaxResults(v int64) *ListTasksInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTasksInput) SetNextToken(v string) *ListTasksInput { + s.NextToken = &v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *ListTasksInput) SetServiceName(v string) *ListTasksInput { + s.ServiceName = &v + return s +} + +// SetStartedBy sets the StartedBy field's value. +func (s *ListTasksInput) SetStartedBy(v string) *ListTasksInput { + s.StartedBy = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListTasksResponse type ListTasksOutput struct { _ struct{} `type:"structure"` @@ -4330,7 +6017,20 @@ func (s ListTasksOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListTasksOutput) SetNextToken(v string) *ListTasksOutput { + s.NextToken = &v + return s +} + +// SetTaskArns sets the TaskArns field's value. +func (s *ListTasksOutput) SetTaskArns(v []*string) *ListTasksOutput { + s.TaskArns = v + return s +} + // Details on a load balancer that is used with a service. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/LoadBalancer type LoadBalancer struct { _ struct{} `type:"structure"` @@ -4362,7 +6062,32 @@ func (s LoadBalancer) GoString() string { return s.String() } +// SetContainerName sets the ContainerName field's value. +func (s *LoadBalancer) SetContainerName(v string) *LoadBalancer { + s.ContainerName = &v + return s +} + +// SetContainerPort sets the ContainerPort field's value. +func (s *LoadBalancer) SetContainerPort(v int64) *LoadBalancer { + s.ContainerPort = &v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *LoadBalancer) SetLoadBalancerName(v string) *LoadBalancer { + s.LoadBalancerName = &v + return s +} + +// SetTargetGroupArn sets the TargetGroupArn field's value. +func (s *LoadBalancer) SetTargetGroupArn(v string) *LoadBalancer { + s.TargetGroupArn = &v + return s +} + // Log configuration options to send to a custom log driver for the container. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/LogConfiguration type LogConfiguration struct { _ struct{} `type:"structure"` @@ -4370,7 +6095,7 @@ type LogConfiguration struct { // parameter are log drivers that the Amazon ECS container agent can communicate // with by default. // - // If you have a custom driver that is not listed above that you would like + // If you have a custom driver that is not listed above that you would like // to work with the Amazon ECS container agent, you can fork the Amazon ECS // container agent project that is available on GitHub (https://github.com/aws/amazon-ecs-agent) // and customize it to work with that driver. We encourage you to submit pull @@ -4378,7 +6103,7 @@ type LogConfiguration struct { // Web Services does not currently provide support for running modified copies // of this software. // - // This parameter requires version 1.18 of the Docker Remote API or greater + // This parameter requires version 1.18 of the Docker Remote API or greater // on your container instance. To check the Docker Remote API version on your // container instance, log into your container instance and run the following // command: sudo docker version | grep "Server API version" @@ -4417,7 +6142,20 @@ func (s *LogConfiguration) Validate() error { return nil } +// SetLogDriver sets the LogDriver field's value. +func (s *LogConfiguration) SetLogDriver(v string) *LogConfiguration { + s.LogDriver = &v + return s +} + +// SetOptions sets the Options field's value. +func (s *LogConfiguration) SetOptions(v map[string]*string) *LogConfiguration { + s.Options = v + return s +} + // Details on a volume mount point that is used in a container definition. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/MountPoint type MountPoint struct { _ struct{} `type:"structure"` @@ -4443,10 +6181,29 @@ func (s MountPoint) GoString() string { return s.String() } +// SetContainerPath sets the ContainerPath field's value. +func (s *MountPoint) SetContainerPath(v string) *MountPoint { + s.ContainerPath = &v + return s +} + +// SetReadOnly sets the ReadOnly field's value. +func (s *MountPoint) SetReadOnly(v bool) *MountPoint { + s.ReadOnly = &v + return s +} + +// SetSourceVolume sets the SourceVolume field's value. +func (s *MountPoint) SetSourceVolume(v string) *MountPoint { + s.SourceVolume = &v + return s +} + // Details on the network bindings between a container and its host container // instance. After a task reaches the RUNNING status, manual and automatic host // and container port assignments are visible in the networkBindings section // of DescribeTasks API responses. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/NetworkBinding type NetworkBinding struct { _ struct{} `type:"structure"` @@ -4473,11 +6230,125 @@ func (s NetworkBinding) GoString() string { return s.String() } +// SetBindIP sets the BindIP field's value. +func (s *NetworkBinding) SetBindIP(v string) *NetworkBinding { + s.BindIP = &v + return s +} + +// SetContainerPort sets the ContainerPort field's value. +func (s *NetworkBinding) SetContainerPort(v int64) *NetworkBinding { + s.ContainerPort = &v + return s +} + +// SetHostPort sets the HostPort field's value. +func (s *NetworkBinding) SetHostPort(v int64) *NetworkBinding { + s.HostPort = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *NetworkBinding) SetProtocol(v string) *NetworkBinding { + s.Protocol = &v + return s +} + +// An object representing a constraint on task placement. For more information, +// see Task Placement Constraints (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html) +// in the Amazon EC2 Container Service Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/PlacementConstraint +type PlacementConstraint struct { + _ struct{} `type:"structure"` + + // A cluster query language expression to apply to the constraint. Note you + // cannot specify an expression if the constraint type is distinctInstance. + // For more information, see Cluster Query Language (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html) + // in the Amazon EC2 Container Service Developer Guide. + Expression *string `locationName:"expression" type:"string"` + + // The type of constraint. Use distinctInstance to ensure that each task in + // a particular group is running on a different container instance. Use memberOf + // to restrict selection to a group of valid candidates. Note that distinctInstance + // is not supported in task definitions. + Type *string `locationName:"type" type:"string" enum:"PlacementConstraintType"` +} + +// String returns the string representation +func (s PlacementConstraint) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlacementConstraint) GoString() string { + return s.String() +} + +// SetExpression sets the Expression field's value. +func (s *PlacementConstraint) SetExpression(v string) *PlacementConstraint { + s.Expression = &v + return s +} + +// SetType sets the Type field's value. +func (s *PlacementConstraint) SetType(v string) *PlacementConstraint { + s.Type = &v + return s +} + +// The task placement strategy for a task or service. For more information, +// see Task Placement Strategies (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-strategies.html) +// in the Amazon EC2 Container Service Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/PlacementStrategy +type PlacementStrategy struct { + _ struct{} `type:"structure"` + + // The field to apply the placement strategy against. For the spread placement + // strategy, valid values are instanceId (or host, which has the same effect), + // or any platform or custom attribute that is applied to a container instance, + // such as attribute:ecs.availability-zone. For the binpack placement strategy, + // valid values are cpu and memory. For the random placement strategy, this + // field is not used. + Field *string `locationName:"field" type:"string"` + + // The type of placement strategy. The random placement strategy randomly places + // tasks on available candidates. The spread placement strategy spreads placement + // across available candidates evenly based on the field parameter. The binpack + // strategy places tasks on available candidates that have the least available + // amount of the resource that is specified with the field parameter. For example, + // if you binpack on memory, a task is placed on the instance with the least + // amount of remaining memory (but still enough to run the task). + Type *string `locationName:"type" type:"string" enum:"PlacementStrategyType"` +} + +// String returns the string representation +func (s PlacementStrategy) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlacementStrategy) GoString() string { + return s.String() +} + +// SetField sets the Field field's value. +func (s *PlacementStrategy) SetField(v string) *PlacementStrategy { + s.Field = &v + return s +} + +// SetType sets the Type field's value. +func (s *PlacementStrategy) SetType(v string) *PlacementStrategy { + s.Type = &v + return s +} + // Port mappings allow containers to access ports on the host container instance // to send or receive traffic. Port mappings are specified as part of the container // definition. After a task reaches the RUNNING status, manual and automatic // host and container port assignments are visible in the networkBindings section // of DescribeTasks API responses. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/PortMapping type PortMapping struct { _ struct{} `type:"structure"` @@ -4504,13 +6375,13 @@ type PortMapping struct { // below 32768 are outside of the ephemeral port range. // // The default reserved ports are 22 for SSH, the Docker ports 2375 and 2376, - // and the Amazon ECS container agent port 51678. Any host port that was previously - // specified in a running task is also reserved while the task is running (after - // a task stops, the host port is released).The current reserved ports are displayed - // in the remainingResources of DescribeContainerInstances output, and a container - // instance may have up to 100 reserved ports at a time, including the default - // reserved ports (automatically assigned ports do not count toward the 100 - // reserved ports limit). + // and the Amazon ECS container agent ports 51678 and 51679. Any host port that + // was previously specified in a running task is also reserved while the task + // is running (after a task stops, the host port is released).The current reserved + // ports are displayed in the remainingResources of DescribeContainerInstances + // output, and a container instance may have up to 100 reserved ports at a time, + // including the default reserved ports (automatically assigned ports do not + // count toward the 100 reserved ports limit). HostPort *int64 `locationName:"hostPort" type:"integer"` // The protocol used for the port mapping. Valid values are tcp and udp. The @@ -4528,6 +6399,111 @@ func (s PortMapping) GoString() string { return s.String() } +// SetContainerPort sets the ContainerPort field's value. +func (s *PortMapping) SetContainerPort(v int64) *PortMapping { + s.ContainerPort = &v + return s +} + +// SetHostPort sets the HostPort field's value. +func (s *PortMapping) SetHostPort(v int64) *PortMapping { + s.HostPort = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *PortMapping) SetProtocol(v string) *PortMapping { + s.Protocol = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/PutAttributesRequest +type PutAttributesInput struct { + _ struct{} `type:"structure"` + + // The attributes to apply to your resource. You can specify up to 10 custom + // attributes per resource. You can specify up to 10 attributes in a single + // call. + // + // Attributes is a required field + Attributes []*Attribute `locationName:"attributes" type:"list" required:"true"` + + // The short name or full Amazon Resource Name (ARN) of the cluster that contains + // the resource to apply attributes. If you do not specify a cluster, the default + // cluster is assumed. + Cluster *string `locationName:"cluster" type:"string"` +} + +// String returns the string representation +func (s PutAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutAttributesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutAttributesInput"} + if s.Attributes == nil { + invalidParams.Add(request.NewErrParamRequired("Attributes")) + } + if s.Attributes != nil { + for i, v := range s.Attributes { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attributes", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttributes sets the Attributes field's value. +func (s *PutAttributesInput) SetAttributes(v []*Attribute) *PutAttributesInput { + s.Attributes = v + return s +} + +// SetCluster sets the Cluster field's value. +func (s *PutAttributesInput) SetCluster(v string) *PutAttributesInput { + s.Cluster = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/PutAttributesResponse +type PutAttributesOutput struct { + _ struct{} `type:"structure"` + + // The attributes applied to your resource. + Attributes []*Attribute `locationName:"attributes" type:"list"` +} + +// String returns the string representation +func (s PutAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutAttributesOutput) GoString() string { + return s.String() +} + +// SetAttributes sets the Attributes field's value. +func (s *PutAttributesOutput) SetAttributes(v []*Attribute) *PutAttributesOutput { + s.Attributes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/RegisterContainerInstanceRequest type RegisterContainerInstanceInput struct { _ struct{} `type:"structure"` @@ -4536,7 +6512,7 @@ type RegisterContainerInstanceInput struct { // The short name or full Amazon Resource Name (ARN) of the cluster with which // to register your container instance. If you do not specify a cluster, the - // default cluster is assumed.. + // default cluster is assumed. Cluster *string `locationName:"cluster" type:"string"` // The Amazon Resource Name (ARN) of the container instance (if it was previously @@ -4590,11 +6566,53 @@ func (s *RegisterContainerInstanceInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *RegisterContainerInstanceInput) SetAttributes(v []*Attribute) *RegisterContainerInstanceInput { + s.Attributes = v + return s +} + +// SetCluster sets the Cluster field's value. +func (s *RegisterContainerInstanceInput) SetCluster(v string) *RegisterContainerInstanceInput { + s.Cluster = &v + return s +} + +// SetContainerInstanceArn sets the ContainerInstanceArn field's value. +func (s *RegisterContainerInstanceInput) SetContainerInstanceArn(v string) *RegisterContainerInstanceInput { + s.ContainerInstanceArn = &v + return s +} + +// SetInstanceIdentityDocument sets the InstanceIdentityDocument field's value. +func (s *RegisterContainerInstanceInput) SetInstanceIdentityDocument(v string) *RegisterContainerInstanceInput { + s.InstanceIdentityDocument = &v + return s +} + +// SetInstanceIdentityDocumentSignature sets the InstanceIdentityDocumentSignature field's value. +func (s *RegisterContainerInstanceInput) SetInstanceIdentityDocumentSignature(v string) *RegisterContainerInstanceInput { + s.InstanceIdentityDocumentSignature = &v + return s +} + +// SetTotalResources sets the TotalResources field's value. +func (s *RegisterContainerInstanceInput) SetTotalResources(v []*Resource) *RegisterContainerInstanceInput { + s.TotalResources = v + return s +} + +// SetVersionInfo sets the VersionInfo field's value. +func (s *RegisterContainerInstanceInput) SetVersionInfo(v *VersionInfo) *RegisterContainerInstanceInput { + s.VersionInfo = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/RegisterContainerInstanceResponse type RegisterContainerInstanceOutput struct { _ struct{} `type:"structure"` - // An EC2 instance that is running the Amazon ECS agent and has been registered - // with a cluster. + // The container instance that was registered. ContainerInstance *ContainerInstance `locationName:"containerInstance" type:"structure"` } @@ -4608,6 +6626,13 @@ func (s RegisterContainerInstanceOutput) GoString() string { return s.String() } +// SetContainerInstance sets the ContainerInstance field's value. +func (s *RegisterContainerInstanceOutput) SetContainerInstance(v *ContainerInstance) *RegisterContainerInstanceOutput { + s.ContainerInstance = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/RegisterTaskDefinitionRequest type RegisterTaskDefinitionInput struct { _ struct{} `type:"structure"` @@ -4642,9 +6667,16 @@ type RegisterTaskDefinitionInput struct { // in the Docker run reference. NetworkMode *string `locationName:"networkMode" type:"string" enum:"NetworkMode"` - // The Amazon Resource Name (ARN) of the IAM role that containers in this task - // can assume. All containers in this task are granted the permissions that - // are specified in this role. + // An array of placement constraint objects to use for the task. You can specify + // a maximum of 10 constraints per task (this limit includes constraints in + // the task definition and those specified at run time). + PlacementConstraints []*TaskDefinitionPlacementConstraint `locationName:"placementConstraints" type:"list"` + + // The short name or full Amazon Resource Name (ARN) of the IAM role that containers + // in this task can assume. All containers in this task are granted the permissions + // that are specified in this role. For more information, see IAM Roles for + // Tasks (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) + // in the Amazon EC2 Container Service Developer Guide. TaskRoleArn *string `locationName:"taskRoleArn" type:"string"` // A list of volume definitions in JSON format that containers in your task @@ -4688,6 +6720,43 @@ func (s *RegisterTaskDefinitionInput) Validate() error { return nil } +// SetContainerDefinitions sets the ContainerDefinitions field's value. +func (s *RegisterTaskDefinitionInput) SetContainerDefinitions(v []*ContainerDefinition) *RegisterTaskDefinitionInput { + s.ContainerDefinitions = v + return s +} + +// SetFamily sets the Family field's value. +func (s *RegisterTaskDefinitionInput) SetFamily(v string) *RegisterTaskDefinitionInput { + s.Family = &v + return s +} + +// SetNetworkMode sets the NetworkMode field's value. +func (s *RegisterTaskDefinitionInput) SetNetworkMode(v string) *RegisterTaskDefinitionInput { + s.NetworkMode = &v + return s +} + +// SetPlacementConstraints sets the PlacementConstraints field's value. +func (s *RegisterTaskDefinitionInput) SetPlacementConstraints(v []*TaskDefinitionPlacementConstraint) *RegisterTaskDefinitionInput { + s.PlacementConstraints = v + return s +} + +// SetTaskRoleArn sets the TaskRoleArn field's value. +func (s *RegisterTaskDefinitionInput) SetTaskRoleArn(v string) *RegisterTaskDefinitionInput { + s.TaskRoleArn = &v + return s +} + +// SetVolumes sets the Volumes field's value. +func (s *RegisterTaskDefinitionInput) SetVolumes(v []*Volume) *RegisterTaskDefinitionInput { + s.Volumes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/RegisterTaskDefinitionResponse type RegisterTaskDefinitionOutput struct { _ struct{} `type:"structure"` @@ -4705,7 +6774,14 @@ func (s RegisterTaskDefinitionOutput) GoString() string { return s.String() } +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *RegisterTaskDefinitionOutput) SetTaskDefinition(v *TaskDefinition) *RegisterTaskDefinitionOutput { + s.TaskDefinition = v + return s +} + // Describes the resources available for a container instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/Resource type Resource struct { _ struct{} `type:"structure"` @@ -4720,7 +6796,7 @@ type Resource struct { // precision floating-point type. LongValue *int64 `locationName:"longValue" type:"long"` - // The name of the resource, such as CPU, MEMORY, PORTS, or a user-defined resource. + // The name of the resource, such as cpu, memory, ports, or a user-defined resource. Name *string `locationName:"name" type:"string"` // When the stringSetValue type is set, the value of the resource must be a @@ -4741,19 +6817,59 @@ func (s Resource) GoString() string { return s.String() } +// SetDoubleValue sets the DoubleValue field's value. +func (s *Resource) SetDoubleValue(v float64) *Resource { + s.DoubleValue = &v + return s +} + +// SetIntegerValue sets the IntegerValue field's value. +func (s *Resource) SetIntegerValue(v int64) *Resource { + s.IntegerValue = &v + return s +} + +// SetLongValue sets the LongValue field's value. +func (s *Resource) SetLongValue(v int64) *Resource { + s.LongValue = &v + return s +} + +// SetName sets the Name field's value. +func (s *Resource) SetName(v string) *Resource { + s.Name = &v + return s +} + +// SetStringSetValue sets the StringSetValue field's value. +func (s *Resource) SetStringSetValue(v []*string) *Resource { + s.StringSetValue = v + return s +} + +// SetType sets the Type field's value. +func (s *Resource) SetType(v string) *Resource { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/RunTaskRequest type RunTaskInput struct { _ struct{} `type:"structure"` // The short name or full Amazon Resource Name (ARN) of the cluster on which // to run your task. If you do not specify a cluster, the default cluster is - // assumed.. + // assumed. Cluster *string `locationName:"cluster" type:"string"` // The number of instantiations of the specified task to place on your cluster. - // - // The count parameter is limited to 10 tasks per call. + // You can specify up to 10 tasks per call. Count *int64 `locationName:"count" type:"integer"` + // The name of the task group to associate with the task. The default value + // is the family name of the task definition (for example, family:my-family-name). + Group *string `locationName:"group" type:"string"` + // A list of container overrides in JSON format that specify the name of a container // in the specified task definition and the overrides it should receive. You // can override the default command for a container (that is specified in the @@ -4762,10 +6878,19 @@ type RunTaskInput struct { // or Docker image) on a container or add new environment variables to it with // an environment override. // - // A total of 8192 characters are allowed for overrides. This limit includes + // A total of 8192 characters are allowed for overrides. This limit includes // the JSON formatting characters of the override structure. Overrides *TaskOverride `locationName:"overrides" type:"structure"` + // An array of placement constraint objects to use for the task. You can specify + // up to 10 constraints per task (including constraints in the task definition + // and those specified at run time). + PlacementConstraints []*PlacementConstraint `locationName:"placementConstraints" type:"list"` + + // The placement strategy objects to use for the task. You can specify a maximum + // of 5 strategy rules per task. + PlacementStrategy []*PlacementStrategy `locationName:"placementStrategy" type:"list"` + // An optional tag specified when a task is started. For example if you automatically // trigger a task to run a batch process job, you could apply a unique identifier // for that job to your task with the startedBy parameter. You can then identify @@ -4808,6 +6933,55 @@ func (s *RunTaskInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *RunTaskInput) SetCluster(v string) *RunTaskInput { + s.Cluster = &v + return s +} + +// SetCount sets the Count field's value. +func (s *RunTaskInput) SetCount(v int64) *RunTaskInput { + s.Count = &v + return s +} + +// SetGroup sets the Group field's value. +func (s *RunTaskInput) SetGroup(v string) *RunTaskInput { + s.Group = &v + return s +} + +// SetOverrides sets the Overrides field's value. +func (s *RunTaskInput) SetOverrides(v *TaskOverride) *RunTaskInput { + s.Overrides = v + return s +} + +// SetPlacementConstraints sets the PlacementConstraints field's value. +func (s *RunTaskInput) SetPlacementConstraints(v []*PlacementConstraint) *RunTaskInput { + s.PlacementConstraints = v + return s +} + +// SetPlacementStrategy sets the PlacementStrategy field's value. +func (s *RunTaskInput) SetPlacementStrategy(v []*PlacementStrategy) *RunTaskInput { + s.PlacementStrategy = v + return s +} + +// SetStartedBy sets the StartedBy field's value. +func (s *RunTaskInput) SetStartedBy(v string) *RunTaskInput { + s.StartedBy = &v + return s +} + +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *RunTaskInput) SetTaskDefinition(v string) *RunTaskInput { + s.TaskDefinition = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/RunTaskResponse type RunTaskOutput struct { _ struct{} `type:"structure"` @@ -4829,7 +7003,20 @@ func (s RunTaskOutput) GoString() string { return s.String() } +// SetFailures sets the Failures field's value. +func (s *RunTaskOutput) SetFailures(v []*Failure) *RunTaskOutput { + s.Failures = v + return s +} + +// SetTasks sets the Tasks field's value. +func (s *RunTaskOutput) SetTasks(v []*Task) *RunTaskOutput { + s.Tasks = v + return s +} + // Details on a service within a cluster +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/Service type Service struct { _ struct{} `type:"structure"` @@ -4863,6 +7050,12 @@ type Service struct { // The number of tasks in the cluster that are in the PENDING state. PendingCount *int64 `locationName:"pendingCount" type:"integer"` + // The placement constraints for the tasks in the service. + PlacementConstraints []*PlacementConstraint `locationName:"placementConstraints" type:"list"` + + // The placement strategy that determines how tasks for the service are placed. + PlacementStrategy []*PlacementStrategy `locationName:"placementStrategy" type:"list"` + // The Amazon Resource Name (ARN) of the IAM role associated with the service // that allows the Amazon ECS container agent to register container instances // with an Elastic Load Balancing load balancer. @@ -4874,7 +7067,7 @@ type Service struct { // The Amazon Resource Name (ARN) that identifies the service. The ARN contains // the arn:aws:ecs namespace, followed by the region of the service, the AWS // account ID of the service owner, the service namespace, and then the service - // name. For example, arn:aws:ecs:region:012345678910:service/my-service . + // name. For example, arn:aws:ecs:region:012345678910:service/my-service. ServiceArn *string `locationName:"serviceArn" type:"string"` // The name of your service. Up to 255 letters (uppercase and lowercase), numbers, @@ -4902,7 +7095,104 @@ func (s Service) GoString() string { return s.String() } +// SetClusterArn sets the ClusterArn field's value. +func (s *Service) SetClusterArn(v string) *Service { + s.ClusterArn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Service) SetCreatedAt(v time.Time) *Service { + s.CreatedAt = &v + return s +} + +// SetDeploymentConfiguration sets the DeploymentConfiguration field's value. +func (s *Service) SetDeploymentConfiguration(v *DeploymentConfiguration) *Service { + s.DeploymentConfiguration = v + return s +} + +// SetDeployments sets the Deployments field's value. +func (s *Service) SetDeployments(v []*Deployment) *Service { + s.Deployments = v + return s +} + +// SetDesiredCount sets the DesiredCount field's value. +func (s *Service) SetDesiredCount(v int64) *Service { + s.DesiredCount = &v + return s +} + +// SetEvents sets the Events field's value. +func (s *Service) SetEvents(v []*ServiceEvent) *Service { + s.Events = v + return s +} + +// SetLoadBalancers sets the LoadBalancers field's value. +func (s *Service) SetLoadBalancers(v []*LoadBalancer) *Service { + s.LoadBalancers = v + return s +} + +// SetPendingCount sets the PendingCount field's value. +func (s *Service) SetPendingCount(v int64) *Service { + s.PendingCount = &v + return s +} + +// SetPlacementConstraints sets the PlacementConstraints field's value. +func (s *Service) SetPlacementConstraints(v []*PlacementConstraint) *Service { + s.PlacementConstraints = v + return s +} + +// SetPlacementStrategy sets the PlacementStrategy field's value. +func (s *Service) SetPlacementStrategy(v []*PlacementStrategy) *Service { + s.PlacementStrategy = v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *Service) SetRoleArn(v string) *Service { + s.RoleArn = &v + return s +} + +// SetRunningCount sets the RunningCount field's value. +func (s *Service) SetRunningCount(v int64) *Service { + s.RunningCount = &v + return s +} + +// SetServiceArn sets the ServiceArn field's value. +func (s *Service) SetServiceArn(v string) *Service { + s.ServiceArn = &v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *Service) SetServiceName(v string) *Service { + s.ServiceName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Service) SetStatus(v string) *Service { + s.Status = &v + return s +} + +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *Service) SetTaskDefinition(v string) *Service { + s.TaskDefinition = &v + return s +} + // Details on an event associated with a service. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ServiceEvent type ServiceEvent struct { _ struct{} `type:"structure"` @@ -4926,22 +7216,44 @@ func (s ServiceEvent) GoString() string { return s.String() } +// SetCreatedAt sets the CreatedAt field's value. +func (s *ServiceEvent) SetCreatedAt(v time.Time) *ServiceEvent { + s.CreatedAt = &v + return s +} + +// SetId sets the Id field's value. +func (s *ServiceEvent) SetId(v string) *ServiceEvent { + s.Id = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *ServiceEvent) SetMessage(v string) *ServiceEvent { + s.Message = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/StartTaskRequest type StartTaskInput struct { _ struct{} `type:"structure"` // The short name or full Amazon Resource Name (ARN) of the cluster on which // to start your task. If you do not specify a cluster, the default cluster - // is assumed.. + // is assumed. Cluster *string `locationName:"cluster" type:"string"` // The container instance IDs or full Amazon Resource Name (ARN) entries for - // the container instances on which you would like to place your task. - // - // The list of container instances to start tasks on is limited to 10. + // the container instances on which you would like to place your task. You can + // specify up to 10 container instances. // // ContainerInstances is a required field ContainerInstances []*string `locationName:"containerInstances" type:"list" required:"true"` + // The name of the task group to associate with the task. The default value + // is the family name of the task definition (for example, family:my-family-name). + Group *string `locationName:"group" type:"string"` + // A list of container overrides in JSON format that specify the name of a container // in the specified task definition and the overrides it should receive. You // can override the default command for a container (that is specified in the @@ -4950,7 +7262,7 @@ type StartTaskInput struct { // or Docker image) on a container or add new environment variables to it with // an environment override. // - // A total of 8192 characters are allowed for overrides. This limit includes + // A total of 8192 characters are allowed for overrides. This limit includes // the JSON formatting characters of the override structure. Overrides *TaskOverride `locationName:"overrides" type:"structure"` @@ -4999,6 +7311,43 @@ func (s *StartTaskInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *StartTaskInput) SetCluster(v string) *StartTaskInput { + s.Cluster = &v + return s +} + +// SetContainerInstances sets the ContainerInstances field's value. +func (s *StartTaskInput) SetContainerInstances(v []*string) *StartTaskInput { + s.ContainerInstances = v + return s +} + +// SetGroup sets the Group field's value. +func (s *StartTaskInput) SetGroup(v string) *StartTaskInput { + s.Group = &v + return s +} + +// SetOverrides sets the Overrides field's value. +func (s *StartTaskInput) SetOverrides(v *TaskOverride) *StartTaskInput { + s.Overrides = v + return s +} + +// SetStartedBy sets the StartedBy field's value. +func (s *StartTaskInput) SetStartedBy(v string) *StartTaskInput { + s.StartedBy = &v + return s +} + +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *StartTaskInput) SetTaskDefinition(v string) *StartTaskInput { + s.TaskDefinition = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/StartTaskResponse type StartTaskOutput struct { _ struct{} `type:"structure"` @@ -5020,12 +7369,25 @@ func (s StartTaskOutput) GoString() string { return s.String() } +// SetFailures sets the Failures field's value. +func (s *StartTaskOutput) SetFailures(v []*Failure) *StartTaskOutput { + s.Failures = v + return s +} + +// SetTasks sets the Tasks field's value. +func (s *StartTaskOutput) SetTasks(v []*Task) *StartTaskOutput { + s.Tasks = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/StopTaskRequest type StopTaskInput struct { _ struct{} `type:"structure"` // The short name or full Amazon Resource Name (ARN) of the cluster that hosts // the task to stop. If you do not specify a cluster, the default cluster is - // assumed.. + // assumed. Cluster *string `locationName:"cluster" type:"string"` // An optional message specified when a task is stopped. For example, if you @@ -5063,10 +7425,29 @@ func (s *StopTaskInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *StopTaskInput) SetCluster(v string) *StopTaskInput { + s.Cluster = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *StopTaskInput) SetReason(v string) *StopTaskInput { + s.Reason = &v + return s +} + +// SetTask sets the Task field's value. +func (s *StopTaskInput) SetTask(v string) *StopTaskInput { + s.Task = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/StopTaskResponse type StopTaskOutput struct { _ struct{} `type:"structure"` - // Details on a task in a cluster. + // The task that was stopped. Task *Task `locationName:"task" type:"structure"` } @@ -5080,6 +7461,13 @@ func (s StopTaskOutput) GoString() string { return s.String() } +// SetTask sets the Task field's value. +func (s *StopTaskOutput) SetTask(v *Task) *StopTaskOutput { + s.Task = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/SubmitContainerStateChangeRequest type SubmitContainerStateChangeInput struct { _ struct{} `type:"structure"` @@ -5117,6 +7505,49 @@ func (s SubmitContainerStateChangeInput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *SubmitContainerStateChangeInput) SetCluster(v string) *SubmitContainerStateChangeInput { + s.Cluster = &v + return s +} + +// SetContainerName sets the ContainerName field's value. +func (s *SubmitContainerStateChangeInput) SetContainerName(v string) *SubmitContainerStateChangeInput { + s.ContainerName = &v + return s +} + +// SetExitCode sets the ExitCode field's value. +func (s *SubmitContainerStateChangeInput) SetExitCode(v int64) *SubmitContainerStateChangeInput { + s.ExitCode = &v + return s +} + +// SetNetworkBindings sets the NetworkBindings field's value. +func (s *SubmitContainerStateChangeInput) SetNetworkBindings(v []*NetworkBinding) *SubmitContainerStateChangeInput { + s.NetworkBindings = v + return s +} + +// SetReason sets the Reason field's value. +func (s *SubmitContainerStateChangeInput) SetReason(v string) *SubmitContainerStateChangeInput { + s.Reason = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SubmitContainerStateChangeInput) SetStatus(v string) *SubmitContainerStateChangeInput { + s.Status = &v + return s +} + +// SetTask sets the Task field's value. +func (s *SubmitContainerStateChangeInput) SetTask(v string) *SubmitContainerStateChangeInput { + s.Task = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/SubmitContainerStateChangeResponse type SubmitContainerStateChangeOutput struct { _ struct{} `type:"structure"` @@ -5134,6 +7565,13 @@ func (s SubmitContainerStateChangeOutput) GoString() string { return s.String() } +// SetAcknowledgment sets the Acknowledgment field's value. +func (s *SubmitContainerStateChangeOutput) SetAcknowledgment(v string) *SubmitContainerStateChangeOutput { + s.Acknowledgment = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/SubmitTaskStateChangeRequest type SubmitTaskStateChangeInput struct { _ struct{} `type:"structure"` @@ -5162,6 +7600,31 @@ func (s SubmitTaskStateChangeInput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *SubmitTaskStateChangeInput) SetCluster(v string) *SubmitTaskStateChangeInput { + s.Cluster = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *SubmitTaskStateChangeInput) SetReason(v string) *SubmitTaskStateChangeInput { + s.Reason = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SubmitTaskStateChangeInput) SetStatus(v string) *SubmitTaskStateChangeInput { + s.Status = &v + return s +} + +// SetTask sets the Task field's value. +func (s *SubmitTaskStateChangeInput) SetTask(v string) *SubmitTaskStateChangeInput { + s.Task = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/SubmitTaskStateChangeResponse type SubmitTaskStateChangeOutput struct { _ struct{} `type:"structure"` @@ -5179,7 +7642,14 @@ func (s SubmitTaskStateChangeOutput) GoString() string { return s.String() } +// SetAcknowledgment sets the Acknowledgment field's value. +func (s *SubmitTaskStateChangeOutput) SetAcknowledgment(v string) *SubmitTaskStateChangeOutput { + s.Acknowledgment = &v + return s +} + // Details on a task in a cluster. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/Task type Task struct { _ struct{} `type:"structure"` @@ -5199,6 +7669,9 @@ type Task struct { // The desired status of the task. DesiredStatus *string `locationName:"desiredStatus" type:"string"` + // The name of the task group associated with the task. + Group *string `locationName:"group" type:"string"` + // The last known status of the task. LastStatus *string `locationName:"lastStatus" type:"string"` @@ -5226,6 +7699,14 @@ type Task struct { // The Amazon Resource Name (ARN) of the task definition that creates the task. TaskDefinitionArn *string `locationName:"taskDefinitionArn" type:"string"` + + // The version counter for the task. Every time a task experiences a change + // that triggers a CloudWatch event, the version counter is incremented. If + // you are replicating your Amazon ECS task state with CloudWatch events, you + // can compare the version of a task reported by the Amazon ECS APIs with the + // version reported in CloudWatch events for the task (inside the detail object) + // to verify that the version in your event stream is current. + Version *int64 `locationName:"version" type:"long"` } // String returns the string representation @@ -5238,7 +7719,98 @@ func (s Task) GoString() string { return s.String() } +// SetClusterArn sets the ClusterArn field's value. +func (s *Task) SetClusterArn(v string) *Task { + s.ClusterArn = &v + return s +} + +// SetContainerInstanceArn sets the ContainerInstanceArn field's value. +func (s *Task) SetContainerInstanceArn(v string) *Task { + s.ContainerInstanceArn = &v + return s +} + +// SetContainers sets the Containers field's value. +func (s *Task) SetContainers(v []*Container) *Task { + s.Containers = v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Task) SetCreatedAt(v time.Time) *Task { + s.CreatedAt = &v + return s +} + +// SetDesiredStatus sets the DesiredStatus field's value. +func (s *Task) SetDesiredStatus(v string) *Task { + s.DesiredStatus = &v + return s +} + +// SetGroup sets the Group field's value. +func (s *Task) SetGroup(v string) *Task { + s.Group = &v + return s +} + +// SetLastStatus sets the LastStatus field's value. +func (s *Task) SetLastStatus(v string) *Task { + s.LastStatus = &v + return s +} + +// SetOverrides sets the Overrides field's value. +func (s *Task) SetOverrides(v *TaskOverride) *Task { + s.Overrides = v + return s +} + +// SetStartedAt sets the StartedAt field's value. +func (s *Task) SetStartedAt(v time.Time) *Task { + s.StartedAt = &v + return s +} + +// SetStartedBy sets the StartedBy field's value. +func (s *Task) SetStartedBy(v string) *Task { + s.StartedBy = &v + return s +} + +// SetStoppedAt sets the StoppedAt field's value. +func (s *Task) SetStoppedAt(v time.Time) *Task { + s.StoppedAt = &v + return s +} + +// SetStoppedReason sets the StoppedReason field's value. +func (s *Task) SetStoppedReason(v string) *Task { + s.StoppedReason = &v + return s +} + +// SetTaskArn sets the TaskArn field's value. +func (s *Task) SetTaskArn(v string) *Task { + s.TaskArn = &v + return s +} + +// SetTaskDefinitionArn sets the TaskDefinitionArn field's value. +func (s *Task) SetTaskDefinitionArn(v string) *Task { + s.TaskDefinitionArn = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *Task) SetVersion(v int64) *Task { + s.Version = &v + return s +} + // Details of a task definition. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/TaskDefinition type TaskDefinition struct { _ struct{} `type:"structure"` @@ -5263,6 +7835,9 @@ type TaskDefinition struct { // in the Docker run reference. NetworkMode *string `locationName:"networkMode" type:"string" enum:"NetworkMode"` + // An array of placement constraint objects to use for tasks. + PlacementConstraints []*TaskDefinitionPlacementConstraint `locationName:"placementConstraints" type:"list"` + // The container instance attributes required by your task. RequiresAttributes []*Attribute `locationName:"requiresAttributes" type:"list"` @@ -5300,7 +7875,108 @@ func (s TaskDefinition) GoString() string { return s.String() } +// SetContainerDefinitions sets the ContainerDefinitions field's value. +func (s *TaskDefinition) SetContainerDefinitions(v []*ContainerDefinition) *TaskDefinition { + s.ContainerDefinitions = v + return s +} + +// SetFamily sets the Family field's value. +func (s *TaskDefinition) SetFamily(v string) *TaskDefinition { + s.Family = &v + return s +} + +// SetNetworkMode sets the NetworkMode field's value. +func (s *TaskDefinition) SetNetworkMode(v string) *TaskDefinition { + s.NetworkMode = &v + return s +} + +// SetPlacementConstraints sets the PlacementConstraints field's value. +func (s *TaskDefinition) SetPlacementConstraints(v []*TaskDefinitionPlacementConstraint) *TaskDefinition { + s.PlacementConstraints = v + return s +} + +// SetRequiresAttributes sets the RequiresAttributes field's value. +func (s *TaskDefinition) SetRequiresAttributes(v []*Attribute) *TaskDefinition { + s.RequiresAttributes = v + return s +} + +// SetRevision sets the Revision field's value. +func (s *TaskDefinition) SetRevision(v int64) *TaskDefinition { + s.Revision = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *TaskDefinition) SetStatus(v string) *TaskDefinition { + s.Status = &v + return s +} + +// SetTaskDefinitionArn sets the TaskDefinitionArn field's value. +func (s *TaskDefinition) SetTaskDefinitionArn(v string) *TaskDefinition { + s.TaskDefinitionArn = &v + return s +} + +// SetTaskRoleArn sets the TaskRoleArn field's value. +func (s *TaskDefinition) SetTaskRoleArn(v string) *TaskDefinition { + s.TaskRoleArn = &v + return s +} + +// SetVolumes sets the Volumes field's value. +func (s *TaskDefinition) SetVolumes(v []*Volume) *TaskDefinition { + s.Volumes = v + return s +} + +// An object representing a constraint on task placement in the task definition. +// For more information, see Task Placement Constraints (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html) +// in the Amazon EC2 Container Service Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/TaskDefinitionPlacementConstraint +type TaskDefinitionPlacementConstraint struct { + _ struct{} `type:"structure"` + + // A cluster query language expression to apply to the constraint. For more + // information, see Cluster Query Language (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html) + // in the Amazon EC2 Container Service Developer Guide. + Expression *string `locationName:"expression" type:"string"` + + // The type of constraint. The DistinctInstance constraint ensures that each + // task in a particular group is running on a different container instance. + // The MemberOf constraint restricts selection to be from a group of valid candidates. + Type *string `locationName:"type" type:"string" enum:"TaskDefinitionPlacementConstraintType"` +} + +// String returns the string representation +func (s TaskDefinitionPlacementConstraint) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TaskDefinitionPlacementConstraint) GoString() string { + return s.String() +} + +// SetExpression sets the Expression field's value. +func (s *TaskDefinitionPlacementConstraint) SetExpression(v string) *TaskDefinitionPlacementConstraint { + s.Expression = &v + return s +} + +// SetType sets the Type field's value. +func (s *TaskDefinitionPlacementConstraint) SetType(v string) *TaskDefinitionPlacementConstraint { + s.Type = &v + return s +} + // The overrides associated with a task. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/TaskOverride type TaskOverride struct { _ struct{} `type:"structure"` @@ -5323,7 +7999,20 @@ func (s TaskOverride) GoString() string { return s.String() } +// SetContainerOverrides sets the ContainerOverrides field's value. +func (s *TaskOverride) SetContainerOverrides(v []*ContainerOverride) *TaskOverride { + s.ContainerOverrides = v + return s +} + +// SetTaskRoleArn sets the TaskRoleArn field's value. +func (s *TaskOverride) SetTaskRoleArn(v string) *TaskOverride { + s.TaskRoleArn = &v + return s +} + // The ulimit settings to pass to the container. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/Ulimit type Ulimit struct { _ struct{} `type:"structure"` @@ -5372,6 +8061,25 @@ func (s *Ulimit) Validate() error { return nil } +// SetHardLimit sets the HardLimit field's value. +func (s *Ulimit) SetHardLimit(v int64) *Ulimit { + s.HardLimit = &v + return s +} + +// SetName sets the Name field's value. +func (s *Ulimit) SetName(v string) *Ulimit { + s.Name = &v + return s +} + +// SetSoftLimit sets the SoftLimit field's value. +func (s *Ulimit) SetSoftLimit(v int64) *Ulimit { + s.SoftLimit = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateContainerAgentRequest type UpdateContainerAgentInput struct { _ struct{} `type:"structure"` @@ -5411,11 +8119,23 @@ func (s *UpdateContainerAgentInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *UpdateContainerAgentInput) SetCluster(v string) *UpdateContainerAgentInput { + s.Cluster = &v + return s +} + +// SetContainerInstance sets the ContainerInstance field's value. +func (s *UpdateContainerAgentInput) SetContainerInstance(v string) *UpdateContainerAgentInput { + s.ContainerInstance = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateContainerAgentResponse type UpdateContainerAgentOutput struct { _ struct{} `type:"structure"` - // An EC2 instance that is running the Amazon ECS agent and has been registered - // with a cluster. + // The container instance for which the container agent was updated. ContainerInstance *ContainerInstance `locationName:"containerInstance" type:"structure"` } @@ -5429,6 +8149,111 @@ func (s UpdateContainerAgentOutput) GoString() string { return s.String() } +// SetContainerInstance sets the ContainerInstance field's value. +func (s *UpdateContainerAgentOutput) SetContainerInstance(v *ContainerInstance) *UpdateContainerAgentOutput { + s.ContainerInstance = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateContainerInstancesStateRequest +type UpdateContainerInstancesStateInput struct { + _ struct{} `type:"structure"` + + // The short name or full Amazon Resource Name (ARN) of the cluster that hosts + // the container instance to update. If you do not specify a cluster, the default + // cluster is assumed. + Cluster *string `locationName:"cluster" type:"string"` + + // A space-separated list of container instance IDs or full Amazon Resource + // Name (ARN) entries. + // + // ContainerInstances is a required field + ContainerInstances []*string `locationName:"containerInstances" type:"list" required:"true"` + + // The container instance state with which to update the container instance. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"ContainerInstanceStatus"` +} + +// String returns the string representation +func (s UpdateContainerInstancesStateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateContainerInstancesStateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateContainerInstancesStateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateContainerInstancesStateInput"} + if s.ContainerInstances == nil { + invalidParams.Add(request.NewErrParamRequired("ContainerInstances")) + } + if s.Status == nil { + invalidParams.Add(request.NewErrParamRequired("Status")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCluster sets the Cluster field's value. +func (s *UpdateContainerInstancesStateInput) SetCluster(v string) *UpdateContainerInstancesStateInput { + s.Cluster = &v + return s +} + +// SetContainerInstances sets the ContainerInstances field's value. +func (s *UpdateContainerInstancesStateInput) SetContainerInstances(v []*string) *UpdateContainerInstancesStateInput { + s.ContainerInstances = v + return s +} + +// SetStatus sets the Status field's value. +func (s *UpdateContainerInstancesStateInput) SetStatus(v string) *UpdateContainerInstancesStateInput { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateContainerInstancesStateResponse +type UpdateContainerInstancesStateOutput struct { + _ struct{} `type:"structure"` + + // The list of container instances. + ContainerInstances []*ContainerInstance `locationName:"containerInstances" type:"list"` + + // Any failures associated with the call. + Failures []*Failure `locationName:"failures" type:"list"` +} + +// String returns the string representation +func (s UpdateContainerInstancesStateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateContainerInstancesStateOutput) GoString() string { + return s.String() +} + +// SetContainerInstances sets the ContainerInstances field's value. +func (s *UpdateContainerInstancesStateOutput) SetContainerInstances(v []*ContainerInstance) *UpdateContainerInstancesStateOutput { + s.ContainerInstances = v + return s +} + +// SetFailures sets the Failures field's value. +func (s *UpdateContainerInstancesStateOutput) SetFailures(v []*Failure) *UpdateContainerInstancesStateOutput { + s.Failures = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateServiceRequest type UpdateServiceInput struct { _ struct{} `type:"structure"` @@ -5481,6 +8306,37 @@ func (s *UpdateServiceInput) Validate() error { return nil } +// SetCluster sets the Cluster field's value. +func (s *UpdateServiceInput) SetCluster(v string) *UpdateServiceInput { + s.Cluster = &v + return s +} + +// SetDeploymentConfiguration sets the DeploymentConfiguration field's value. +func (s *UpdateServiceInput) SetDeploymentConfiguration(v *DeploymentConfiguration) *UpdateServiceInput { + s.DeploymentConfiguration = v + return s +} + +// SetDesiredCount sets the DesiredCount field's value. +func (s *UpdateServiceInput) SetDesiredCount(v int64) *UpdateServiceInput { + s.DesiredCount = &v + return s +} + +// SetService sets the Service field's value. +func (s *UpdateServiceInput) SetService(v string) *UpdateServiceInput { + s.Service = &v + return s +} + +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *UpdateServiceInput) SetTaskDefinition(v string) *UpdateServiceInput { + s.TaskDefinition = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateServiceResponse type UpdateServiceOutput struct { _ struct{} `type:"structure"` @@ -5498,8 +8354,15 @@ func (s UpdateServiceOutput) GoString() string { return s.String() } +// SetService sets the Service field's value. +func (s *UpdateServiceOutput) SetService(v *Service) *UpdateServiceOutput { + s.Service = v + return s +} + // The Docker and Amazon ECS container agent version information about a container // instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/VersionInfo type VersionInfo struct { _ struct{} `type:"structure"` @@ -5524,7 +8387,26 @@ func (s VersionInfo) GoString() string { return s.String() } +// SetAgentHash sets the AgentHash field's value. +func (s *VersionInfo) SetAgentHash(v string) *VersionInfo { + s.AgentHash = &v + return s +} + +// SetAgentVersion sets the AgentVersion field's value. +func (s *VersionInfo) SetAgentVersion(v string) *VersionInfo { + s.AgentVersion = &v + return s +} + +// SetDockerVersion sets the DockerVersion field's value. +func (s *VersionInfo) SetDockerVersion(v string) *VersionInfo { + s.DockerVersion = &v + return s +} + // A data volume used in a task definition. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/Volume type Volume struct { _ struct{} `type:"structure"` @@ -5551,7 +8433,20 @@ func (s Volume) GoString() string { return s.String() } +// SetHost sets the Host field's value. +func (s *Volume) SetHost(v *HostVolumeProperties) *Volume { + s.Host = v + return s +} + +// SetName sets the Name field's value. +func (s *Volume) SetName(v string) *Volume { + s.Name = &v + return s +} + // Details on a data volume from another container. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/VolumeFrom type VolumeFrom struct { _ struct{} `type:"structure"` @@ -5574,6 +8469,18 @@ func (s VolumeFrom) GoString() string { return s.String() } +// SetReadOnly sets the ReadOnly field's value. +func (s *VolumeFrom) SetReadOnly(v bool) *VolumeFrom { + s.ReadOnly = &v + return s +} + +// SetSourceContainer sets the SourceContainer field's value. +func (s *VolumeFrom) SetSourceContainer(v string) *VolumeFrom { + s.SourceContainer = &v + return s +} + const ( // AgentUpdateStatusPending is a AgentUpdateStatus enum value AgentUpdateStatusPending = "PENDING" @@ -5594,6 +8501,14 @@ const ( AgentUpdateStatusFailed = "FAILED" ) +const ( + // ContainerInstanceStatusActive is a ContainerInstanceStatus enum value + ContainerInstanceStatusActive = "ACTIVE" + + // ContainerInstanceStatusDraining is a ContainerInstanceStatus enum value + ContainerInstanceStatusDraining = "DRAINING" +) + const ( // DesiredStatusRunning is a DesiredStatus enum value DesiredStatusRunning = "RUNNING" @@ -5639,6 +8554,25 @@ const ( NetworkModeNone = "none" ) +const ( + // PlacementConstraintTypeDistinctInstance is a PlacementConstraintType enum value + PlacementConstraintTypeDistinctInstance = "distinctInstance" + + // PlacementConstraintTypeMemberOf is a PlacementConstraintType enum value + PlacementConstraintTypeMemberOf = "memberOf" +) + +const ( + // PlacementStrategyTypeRandom is a PlacementStrategyType enum value + PlacementStrategyTypeRandom = "random" + + // PlacementStrategyTypeSpread is a PlacementStrategyType enum value + PlacementStrategyTypeSpread = "spread" + + // PlacementStrategyTypeBinpack is a PlacementStrategyType enum value + PlacementStrategyTypeBinpack = "binpack" +) + const ( // SortOrderAsc is a SortOrder enum value SortOrderAsc = "ASC" @@ -5647,6 +8581,11 @@ const ( SortOrderDesc = "DESC" ) +const ( + // TargetTypeContainerInstance is a TargetType enum value + TargetTypeContainerInstance = "container-instance" +) + const ( // TaskDefinitionFamilyStatusActive is a TaskDefinitionFamilyStatus enum value TaskDefinitionFamilyStatusActive = "ACTIVE" @@ -5658,6 +8597,11 @@ const ( TaskDefinitionFamilyStatusAll = "ALL" ) +const ( + // TaskDefinitionPlacementConstraintTypeMemberOf is a TaskDefinitionPlacementConstraintType enum value + TaskDefinitionPlacementConstraintTypeMemberOf = "memberOf" +) + const ( // TaskDefinitionStatusActive is a TaskDefinitionStatus enum value TaskDefinitionStatusActive = "ACTIVE" diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecs/ecsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/ecs/ecsiface/interface.go index 735332a55..404e99a92 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecs/ecsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecs/ecsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockECSClient{} // @@ -67,6 +67,10 @@ type ECSAPI interface { CreateService(*ecs.CreateServiceInput) (*ecs.CreateServiceOutput, error) + DeleteAttributesRequest(*ecs.DeleteAttributesInput) (*request.Request, *ecs.DeleteAttributesOutput) + + DeleteAttributes(*ecs.DeleteAttributesInput) (*ecs.DeleteAttributesOutput, error) + DeleteClusterRequest(*ecs.DeleteClusterInput) (*request.Request, *ecs.DeleteClusterOutput) DeleteCluster(*ecs.DeleteClusterInput) (*ecs.DeleteClusterOutput, error) @@ -107,6 +111,10 @@ type ECSAPI interface { DiscoverPollEndpoint(*ecs.DiscoverPollEndpointInput) (*ecs.DiscoverPollEndpointOutput, error) + ListAttributesRequest(*ecs.ListAttributesInput) (*request.Request, *ecs.ListAttributesOutput) + + ListAttributes(*ecs.ListAttributesInput) (*ecs.ListAttributesOutput, error) + ListClustersRequest(*ecs.ListClustersInput) (*request.Request, *ecs.ListClustersOutput) ListClusters(*ecs.ListClustersInput) (*ecs.ListClustersOutput, error) @@ -143,6 +151,10 @@ type ECSAPI interface { ListTasksPages(*ecs.ListTasksInput, func(*ecs.ListTasksOutput, bool) bool) error + PutAttributesRequest(*ecs.PutAttributesInput) (*request.Request, *ecs.PutAttributesOutput) + + PutAttributes(*ecs.PutAttributesInput) (*ecs.PutAttributesOutput, error) + RegisterContainerInstanceRequest(*ecs.RegisterContainerInstanceInput) (*request.Request, *ecs.RegisterContainerInstanceOutput) RegisterContainerInstance(*ecs.RegisterContainerInstanceInput) (*ecs.RegisterContainerInstanceOutput, error) @@ -175,6 +187,10 @@ type ECSAPI interface { UpdateContainerAgent(*ecs.UpdateContainerAgentInput) (*ecs.UpdateContainerAgentOutput, error) + UpdateContainerInstancesStateRequest(*ecs.UpdateContainerInstancesStateInput) (*request.Request, *ecs.UpdateContainerInstancesStateOutput) + + UpdateContainerInstancesState(*ecs.UpdateContainerInstancesStateInput) (*ecs.UpdateContainerInstancesStateOutput, error) + UpdateServiceRequest(*ecs.UpdateServiceInput) (*request.Request, *ecs.UpdateServiceOutput) UpdateService(*ecs.UpdateServiceInput) (*ecs.UpdateServiceOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecs/errors.go b/vendor/github.com/aws/aws-sdk-go/service/ecs/errors.go new file mode 100644 index 000000000..02d4d4ab5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/ecs/errors.go @@ -0,0 +1,108 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package ecs + +const ( + + // ErrCodeAttributeLimitExceededException for service response error code + // "AttributeLimitExceededException". + // + // You can apply up to 10 custom attributes per resource. You can view the attributes + // of a resource with ListAttributes. You can remove existing attributes on + // a resource with DeleteAttributes. + ErrCodeAttributeLimitExceededException = "AttributeLimitExceededException" + + // ErrCodeClientException for service response error code + // "ClientException". + // + // These errors are usually caused by a client action, such as using an action + // or resource on behalf of a user that doesn't have permission to use the action + // or resource, or specifying an identifier that is not valid. + ErrCodeClientException = "ClientException" + + // ErrCodeClusterContainsContainerInstancesException for service response error code + // "ClusterContainsContainerInstancesException". + // + // You cannot delete a cluster that has registered container instances. You + // must first deregister the container instances before you can delete the cluster. + // For more information, see DeregisterContainerInstance. + ErrCodeClusterContainsContainerInstancesException = "ClusterContainsContainerInstancesException" + + // ErrCodeClusterContainsServicesException for service response error code + // "ClusterContainsServicesException". + // + // You cannot delete a cluster that contains services. You must first update + // the service to reduce its desired task count to 0 and then delete the service. + // For more information, see UpdateService and DeleteService. + ErrCodeClusterContainsServicesException = "ClusterContainsServicesException" + + // ErrCodeClusterNotFoundException for service response error code + // "ClusterNotFoundException". + // + // The specified cluster could not be found. You can view your available clusters + // with ListClusters. Amazon ECS clusters are region-specific. + ErrCodeClusterNotFoundException = "ClusterNotFoundException" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameterException". + // + // The specified parameter is invalid. Review the available parameters for the + // API request. + ErrCodeInvalidParameterException = "InvalidParameterException" + + // ErrCodeMissingVersionException for service response error code + // "MissingVersionException". + // + // Amazon ECS is unable to determine the current version of the Amazon ECS container + // agent on the container instance and does not have enough information to proceed + // with an update. This could be because the agent running on the container + // instance is an older or custom version that does not use our version information. + ErrCodeMissingVersionException = "MissingVersionException" + + // ErrCodeNoUpdateAvailableException for service response error code + // "NoUpdateAvailableException". + // + // There is no update available for this Amazon ECS container agent. This could + // be because the agent is already running the latest version, or it is so old + // that there is no update path to the current version. + ErrCodeNoUpdateAvailableException = "NoUpdateAvailableException" + + // ErrCodeServerException for service response error code + // "ServerException". + // + // These errors are usually caused by a server issue. + ErrCodeServerException = "ServerException" + + // ErrCodeServiceNotActiveException for service response error code + // "ServiceNotActiveException". + // + // The specified service is not active. You cannot update a service that is + // not active. If you have previously deleted a service, you can re-create it + // with CreateService. + ErrCodeServiceNotActiveException = "ServiceNotActiveException" + + // ErrCodeServiceNotFoundException for service response error code + // "ServiceNotFoundException". + // + // The specified service could not be found. You can view your available services + // with ListServices. Amazon ECS services are cluster-specific and region-specific. + ErrCodeServiceNotFoundException = "ServiceNotFoundException" + + // ErrCodeTargetNotFoundException for service response error code + // "TargetNotFoundException". + // + // The specified target could not be found. You can view your available container + // instances with ListContainerInstances. Amazon ECS container instances are + // cluster-specific and region-specific. + ErrCodeTargetNotFoundException = "TargetNotFoundException" + + // ErrCodeUpdateInProgressException for service response error code + // "UpdateInProgressException". + // + // There is already a current Amazon ECS container agent update in progress + // on the specified container instance. If the container agent becomes disconnected + // while it is in a transitional stage, such as PENDING or STAGING, the update + // process can get stuck in that state. However, when the agent reconnects, + // it resumes where it stopped previously. + ErrCodeUpdateInProgressException = "UpdateInProgressException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecs/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/ecs/examples_test.go index f98037321..5d3659cf0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecs/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecs/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleECS_CreateCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -41,11 +37,7 @@ func ExampleECS_CreateCluster() { } func ExampleECS_CreateService() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -68,6 +60,20 @@ func ExampleECS_CreateService() { }, // More values... }, + PlacementConstraints: []*ecs.PlacementConstraint{ + { // Required + Expression: aws.String("String"), + Type: aws.String("PlacementConstraintType"), + }, + // More values... + }, + PlacementStrategy: []*ecs.PlacementStrategy{ + { // Required + Field: aws.String("String"), + Type: aws.String("PlacementStrategyType"), + }, + // More values... + }, Role: aws.String("String"), } resp, err := svc.CreateService(params) @@ -83,13 +89,39 @@ func ExampleECS_CreateService() { fmt.Println(resp) } -func ExampleECS_DeleteCluster() { - sess, err := session.NewSession() +func ExampleECS_DeleteAttributes() { + sess := session.Must(session.NewSession()) + + svc := ecs.New(sess) + + params := &ecs.DeleteAttributesInput{ + Attributes: []*ecs.Attribute{ // Required + { // Required + Name: aws.String("String"), // Required + TargetId: aws.String("String"), + TargetType: aws.String("TargetType"), + Value: aws.String("String"), + }, + // More values... + }, + Cluster: aws.String("String"), + } + resp, err := svc.DeleteAttributes(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleECS_DeleteCluster() { + sess := session.Must(session.NewSession()) + svc := ecs.New(sess) params := &ecs.DeleteClusterInput{ @@ -109,11 +141,7 @@ func ExampleECS_DeleteCluster() { } func ExampleECS_DeleteService() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -135,11 +163,7 @@ func ExampleECS_DeleteService() { } func ExampleECS_DeregisterContainerInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -162,11 +186,7 @@ func ExampleECS_DeregisterContainerInstance() { } func ExampleECS_DeregisterTaskDefinition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -187,11 +207,7 @@ func ExampleECS_DeregisterTaskDefinition() { } func ExampleECS_DescribeClusters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -215,11 +231,7 @@ func ExampleECS_DescribeClusters() { } func ExampleECS_DescribeContainerInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -244,11 +256,7 @@ func ExampleECS_DescribeContainerInstances() { } func ExampleECS_DescribeServices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -273,11 +281,7 @@ func ExampleECS_DescribeServices() { } func ExampleECS_DescribeTaskDefinition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -298,11 +302,7 @@ func ExampleECS_DescribeTaskDefinition() { } func ExampleECS_DescribeTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -327,11 +327,7 @@ func ExampleECS_DescribeTasks() { } func ExampleECS_DiscoverPollEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -352,13 +348,35 @@ func ExampleECS_DiscoverPollEndpoint() { fmt.Println(resp) } -func ExampleECS_ListClusters() { - sess, err := session.NewSession() +func ExampleECS_ListAttributes() { + sess := session.Must(session.NewSession()) + + svc := ecs.New(sess) + + params := &ecs.ListAttributesInput{ + TargetType: aws.String("TargetType"), // Required + AttributeName: aws.String("String"), + AttributeValue: aws.String("String"), + Cluster: aws.String("String"), + MaxResults: aws.Int64(1), + NextToken: aws.String("String"), + } + resp, err := svc.ListAttributes(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleECS_ListClusters() { + sess := session.Must(session.NewSession()) + svc := ecs.New(sess) params := &ecs.ListClustersInput{ @@ -379,18 +397,16 @@ func ExampleECS_ListClusters() { } func ExampleECS_ListContainerInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) params := &ecs.ListContainerInstancesInput{ Cluster: aws.String("String"), + Filter: aws.String("String"), MaxResults: aws.Int64(1), NextToken: aws.String("String"), + Status: aws.String("ContainerInstanceStatus"), } resp, err := svc.ListContainerInstances(params) @@ -406,11 +422,7 @@ func ExampleECS_ListContainerInstances() { } func ExampleECS_ListServices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -433,11 +445,7 @@ func ExampleECS_ListServices() { } func ExampleECS_ListTaskDefinitionFamilies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -461,11 +469,7 @@ func ExampleECS_ListTaskDefinitionFamilies() { } func ExampleECS_ListTaskDefinitions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -490,11 +494,7 @@ func ExampleECS_ListTaskDefinitions() { } func ExampleECS_ListTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -521,20 +521,48 @@ func ExampleECS_ListTasks() { fmt.Println(resp) } -func ExampleECS_RegisterContainerInstance() { - sess, err := session.NewSession() +func ExampleECS_PutAttributes() { + sess := session.Must(session.NewSession()) + + svc := ecs.New(sess) + + params := &ecs.PutAttributesInput{ + Attributes: []*ecs.Attribute{ // Required + { // Required + Name: aws.String("String"), // Required + TargetId: aws.String("String"), + TargetType: aws.String("TargetType"), + Value: aws.String("String"), + }, + // More values... + }, + Cluster: aws.String("String"), + } + resp, err := svc.PutAttributes(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleECS_RegisterContainerInstance() { + sess := session.Must(session.NewSession()) + svc := ecs.New(sess) params := &ecs.RegisterContainerInstanceInput{ Attributes: []*ecs.Attribute{ { // Required - Name: aws.String("String"), // Required - Value: aws.String("String"), + Name: aws.String("String"), // Required + TargetId: aws.String("String"), + TargetType: aws.String("TargetType"), + Value: aws.String("String"), }, // More values... }, @@ -576,11 +604,7 @@ func ExampleECS_RegisterContainerInstance() { } func ExampleECS_RegisterTaskDefinition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -684,6 +708,13 @@ func ExampleECS_RegisterTaskDefinition() { }, Family: aws.String("String"), // Required NetworkMode: aws.String("NetworkMode"), + PlacementConstraints: []*ecs.TaskDefinitionPlacementConstraint{ + { // Required + Expression: aws.String("String"), + Type: aws.String("TaskDefinitionPlacementConstraintType"), + }, + // More values... + }, TaskRoleArn: aws.String("String"), Volumes: []*ecs.Volume{ { // Required @@ -709,11 +740,7 @@ func ExampleECS_RegisterTaskDefinition() { } func ExampleECS_RunTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -721,6 +748,7 @@ func ExampleECS_RunTask() { TaskDefinition: aws.String("String"), // Required Cluster: aws.String("String"), Count: aws.Int64(1), + Group: aws.String("String"), Overrides: &ecs.TaskOverride{ ContainerOverrides: []*ecs.ContainerOverride{ { // Required @@ -741,6 +769,20 @@ func ExampleECS_RunTask() { }, TaskRoleArn: aws.String("String"), }, + PlacementConstraints: []*ecs.PlacementConstraint{ + { // Required + Expression: aws.String("String"), + Type: aws.String("PlacementConstraintType"), + }, + // More values... + }, + PlacementStrategy: []*ecs.PlacementStrategy{ + { // Required + Field: aws.String("String"), + Type: aws.String("PlacementStrategyType"), + }, + // More values... + }, StartedBy: aws.String("String"), } resp, err := svc.RunTask(params) @@ -757,11 +799,7 @@ func ExampleECS_RunTask() { } func ExampleECS_StartTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -772,6 +810,7 @@ func ExampleECS_StartTask() { }, TaskDefinition: aws.String("String"), // Required Cluster: aws.String("String"), + Group: aws.String("String"), Overrides: &ecs.TaskOverride{ ContainerOverrides: []*ecs.ContainerOverride{ { // Required @@ -808,11 +847,7 @@ func ExampleECS_StartTask() { } func ExampleECS_StopTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -835,11 +870,7 @@ func ExampleECS_StopTask() { } func ExampleECS_SubmitContainerStateChange() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -874,11 +905,7 @@ func ExampleECS_SubmitContainerStateChange() { } func ExampleECS_SubmitTaskStateChange() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -902,11 +929,7 @@ func ExampleECS_SubmitTaskStateChange() { } func ExampleECS_UpdateContainerAgent() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ecs.New(sess) @@ -927,13 +950,35 @@ func ExampleECS_UpdateContainerAgent() { fmt.Println(resp) } -func ExampleECS_UpdateService() { - sess, err := session.NewSession() +func ExampleECS_UpdateContainerInstancesState() { + sess := session.Must(session.NewSession()) + + svc := ecs.New(sess) + + params := &ecs.UpdateContainerInstancesStateInput{ + ContainerInstances: []*string{ // Required + aws.String("String"), // Required + // More values... + }, + Status: aws.String("ContainerInstanceStatus"), // Required + Cluster: aws.String("String"), + } + resp, err := svc.UpdateContainerInstancesState(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleECS_UpdateService() { + sess := session.Must(session.NewSession()) + svc := ecs.New(sess) params := &ecs.UpdateServiceInput{ diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecs/service.go b/vendor/github.com/aws/aws-sdk-go/service/ecs/service.go index fe99d735a..4998b15fd 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecs/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecs/service.go @@ -23,8 +23,9 @@ import ( // requirements. Amazon EC2 Container Service eliminates the need for you to // operate your own cluster management and configuration management systems // or worry about scaling your management infrastructure. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13 type ECS struct { *client.Client } @@ -35,8 +36,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "ecs" +// Service information constants +const ( + ServiceName = "ecs" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the ECS client with a session. // If additional configuration is needed for the client instance use the optional @@ -49,17 +53,18 @@ const ServiceName = "ecs" // // Create a ECS client with additional configuration // svc := ecs.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ECS { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ECS { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *ECS { svc := &ECS{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-11-13", diff --git a/vendor/github.com/aws/aws-sdk-go/service/efs/api.go b/vendor/github.com/aws/aws-sdk-go/service/efs/api.go index f05c8fb2c..f4c2ac141 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/efs/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/efs/api.go @@ -39,6 +39,7 @@ const opCreateFileSystem = "CreateFileSystem" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/CreateFileSystem func (c *EFS) CreateFileSystemRequest(input *CreateFileSystemInput) (req *request.Request, output *FileSystemDescription) { op := &request.Operation{ Name: opCreateFileSystem, @@ -50,9 +51,8 @@ func (c *EFS) CreateFileSystemRequest(input *CreateFileSystemInput) (req *reques input = &CreateFileSystemInput{} } - req = c.newRequest(op, input, output) output = &FileSystemDescription{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -64,18 +64,18 @@ func (c *EFS) CreateFileSystemRequest(input *CreateFileSystemInput) (req *reques // not currently exist that is owned by the caller's AWS account with the specified // creation token, this operation does the following: // -// Creates a new, empty file system. The file system will have an Amazon -// EFS assigned ID, and an initial lifecycle state creating. +// * Creates a new, empty file system. The file system will have an Amazon +// EFS assigned ID, and an initial lifecycle state creating. // -// Returns with the description of the created file system. +// * Returns with the description of the created file system. // -// Otherwise, this operation returns a FileSystemAlreadyExists error with -// the ID of the existing file system. +// Otherwise, this operation returns a FileSystemAlreadyExists error with the +// ID of the existing file system. // -// For basic use cases, you can use a randomly generated UUID for the creation +// For basic use cases, you can use a randomly generated UUID for the creation // token. // -// The idempotent operation allows you to retry a CreateFileSystem call without +// The idempotent operation allows you to retry a CreateFileSystem call without // risk of creating an extra file system. This can happen when an initial call // fails in a way that leaves it uncertain whether or not a file system was // actually created. An example might be that a transport level timeout occurred @@ -83,12 +83,12 @@ func (c *EFS) CreateFileSystemRequest(input *CreateFileSystemInput) (req *reques // if the initial call had succeeded in creating a file system, the client can // learn of its existence from the FileSystemAlreadyExists error. // -// The CreateFileSystem call returns while the file system's lifecycle state +// The CreateFileSystem call returns while the file system's lifecycle state // is still creating. You can check the file system creation status by calling // the DescribeFileSystems operation, which among other things returns the file // system state. // -// This operation also takes an optional PerformanceMode parameter that you +// This operation also takes an optional PerformanceMode parameter that you // choose for your file system. We recommend generalPurpose performance mode // for most file systems. File systems using the maxIO performance mode can // scale to higher levels of aggregate throughput and operations per second @@ -102,7 +102,7 @@ func (c *EFS) CreateFileSystemRequest(input *CreateFileSystemInput) (req *reques // You mount your Amazon EFS file system on an EC2 instances in your VPC via // the mount target. For more information, see Amazon EFS: How it Works (http://docs.aws.amazon.com/efs/latest/ug/how-it-works.html). // -// This operation requires permissions for the elasticfilesystem:CreateFileSystem +// This operation requires permissions for the elasticfilesystem:CreateFileSystem // action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -113,21 +113,22 @@ func (c *EFS) CreateFileSystemRequest(input *CreateFileSystemInput) (req *reques // API operation CreateFileSystem for usage and error information. // // Returned Error Codes: -// * BadRequest +// * ErrCodeBadRequest "BadRequest" // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // Returned if an error occurred on the server side. // -// * FileSystemAlreadyExists +// * ErrCodeFileSystemAlreadyExists "FileSystemAlreadyExists" // Returned if the file system you are trying to create already exists, with // the creation token you provided. // -// * FileSystemLimitExceeded +// * ErrCodeFileSystemLimitExceeded "FileSystemLimitExceeded" // Returned if the AWS account has already created maximum number of file systems // allowed per account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/CreateFileSystem func (c *EFS) CreateFileSystem(input *CreateFileSystemInput) (*FileSystemDescription, error) { req, out := c.CreateFileSystemRequest(input) err := req.Send() @@ -160,6 +161,7 @@ const opCreateMountTarget = "CreateMountTarget" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/CreateMountTarget func (c *EFS) CreateMountTargetRequest(input *CreateMountTargetInput) (req *request.Request, output *MountTargetDescription) { op := &request.Operation{ Name: opCreateMountTarget, @@ -171,9 +173,8 @@ func (c *EFS) CreateMountTargetRequest(input *CreateMountTargetInput) (req *requ input = &CreateMountTargetInput{} } - req = c.newRequest(op, input, output) output = &MountTargetDescription{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -195,14 +196,14 @@ func (c *EFS) CreateMountTargetRequest(input *CreateMountTargetInput) (req *requ // // In the request, you also provide a subnet ID, which determines the following: // -// VPC in which Amazon EFS creates the mount target +// * VPC in which Amazon EFS creates the mount target // -// Availability Zone in which Amazon EFS creates the mount target +// * Availability Zone in which Amazon EFS creates the mount target // -// IP address range from which Amazon EFS selects the IP address of the mount -// target (if you don't specify an IP address in the request) +// * IP address range from which Amazon EFS selects the IP address of the +// mount target (if you don't specify an IP address in the request) // -// After creating the mount target, Amazon EFS returns a response that includes, +// After creating the mount target, Amazon EFS returns a response that includes, // a MountTargetId and an IpAddress. You use this IP address when mounting the // file system in an EC2 instance. You can also use the mount target's DNS name // when mounting the file system. The EC2 instance on which you mount the file @@ -216,44 +217,44 @@ func (c *EFS) CreateMountTargetRequest(input *CreateMountTargetInput) (req *requ // subnet specified in the request to add another mount target must meet the // following requirements: // -// Must belong to the same VPC as the subnets of the existing mount targets +// * Must belong to the same VPC as the subnets of the existing mount targets // -// Must not be in the same Availability Zone as any of the subnets of the -// existing mount targets +// * Must not be in the same Availability Zone as any of the subnets of the +// existing mount targets // -// If the request satisfies the requirements, Amazon EFS does the following: +// If the request satisfies the requirements, Amazon EFS does the following: // -// Creates a new mount target in the specified subnet. +// * Creates a new mount target in the specified subnet. // -// Also creates a new network interface in the subnet as follows: +// * Also creates a new network interface in the subnet as follows: // -// If the request provides an IpAddress, Amazon EFS assigns that IP address -// to the network interface. Otherwise, Amazon EFS assigns a free address in -// the subnet (in the same way that the Amazon EC2 CreateNetworkInterface call -// does when a request does not specify a primary private IP address). +// If the request provides an IpAddress, Amazon EFS assigns that IP address +// to the network interface. Otherwise, Amazon EFS assigns a free address +// in the subnet (in the same way that the Amazon EC2 CreateNetworkInterface +// call does when a request does not specify a primary private IP address). // -// If the request provides SecurityGroups, this network interface is associated -// with those security groups. Otherwise, it belongs to the default security -// group for the subnet's VPC. +// If the request provides SecurityGroups, this network interface is associated +// with those security groups. Otherwise, it belongs to the default security +// group for the subnet's VPC. // -// Assigns the description Mount target fsmt-id for file system fs-id where -// fsmt-id is the mount target ID, and fs-id is the FileSystemId. +// Assigns the description Mount target fsmt-id for file system fs-id where +// fsmt-id is the mount target ID, and fs-id is the FileSystemId. // -// Sets the requesterManaged property of the network interface to true, and -// the requesterId value to EFS. +// Sets the requesterManaged property of the network interface to true, and +// the requesterId value to EFS. // -// Each Amazon EFS mount target has one corresponding requestor-managed EC2 -// network interface. After the network interface is created, Amazon EFS sets -// the NetworkInterfaceId field in the mount target's description to the network -// interface ID, and the IpAddress field to its address. If network interface -// creation fails, the entire CreateMountTarget operation fails. +// Each Amazon EFS mount target has one corresponding requester-managed EC2 +// network interface. After the network interface is created, Amazon EFS +// sets the NetworkInterfaceId field in the mount target's description to +// the network interface ID, and the IpAddress field to its address. If network +// interface creation fails, the entire CreateMountTarget operation fails. // -// The CreateMountTarget call returns only after creating the network interface, -// but while the mount target state is still creating. You can check the mount -// target creation status by calling the DescribeFileSystems operation, which +// The CreateMountTarget call returns only after creating the network interface, +// but while the mount target state is still creating, you can check the mount +// target creation status by calling the DescribeMountTargets operation, which // among other things returns the mount target state. // -// We recommend you create a mount target in each of the Availability Zones. +// We recommend you create a mount target in each of the Availability Zones. // There are cost considerations for using a file system in an Availability // Zone through a mount target created in another Availability Zone. For more // information, see Amazon EFS (http://aws.amazon.com/efs/). In addition, by @@ -265,16 +266,15 @@ func (c *EFS) CreateMountTargetRequest(input *CreateMountTargetInput) (req *requ // This operation requires permissions for the following action on the file // system: // -// elasticfilesystem:CreateMountTarget +// * elasticfilesystem:CreateMountTarget // -// This operation also requires permissions for the following Amazon EC2 -// actions: +// This operation also requires permissions for the following Amazon EC2 actions: // -// ec2:DescribeSubnets +// * ec2:DescribeSubnets // -// ec2:DescribeNetworkInterfaces +// * ec2:DescribeNetworkInterfaces // -// ec2:CreateNetworkInterface +// * ec2:CreateNetworkInterface // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -284,53 +284,53 @@ func (c *EFS) CreateMountTargetRequest(input *CreateMountTargetInput) (req *requ // API operation CreateMountTarget for usage and error information. // // Returned Error Codes: -// * BadRequest +// * ErrCodeBadRequest "BadRequest" // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // Returned if an error occurred on the server side. // -// * FileSystemNotFound +// * ErrCodeFileSystemNotFound "FileSystemNotFound" // Returned if the specified FileSystemId does not exist in the requester's // AWS account. // -// * IncorrectFileSystemLifeCycleState +// * ErrCodeIncorrectFileSystemLifeCycleState "IncorrectFileSystemLifeCycleState" // Returned if the file system's life cycle state is not "created". // -// * MountTargetConflict +// * ErrCodeMountTargetConflict "MountTargetConflict" // Returned if the mount target would violate one of the specified restrictions // based on the file system's existing mount targets. // -// * SubnetNotFound +// * ErrCodeSubnetNotFound "SubnetNotFound" // Returned if there is no subnet with ID SubnetId provided in the request. // -// * NoFreeAddressesInSubnet +// * ErrCodeNoFreeAddressesInSubnet "NoFreeAddressesInSubnet" // Returned if IpAddress was not specified in the request and there are no free // IP addresses in the subnet. // -// * IpAddressInUse +// * ErrCodeIpAddressInUse "IpAddressInUse" // Returned if the request specified an IpAddress that is already in use in // the subnet. // -// * NetworkInterfaceLimitExceeded +// * ErrCodeNetworkInterfaceLimitExceeded "NetworkInterfaceLimitExceeded" // The calling account has reached the ENI limit for the specific AWS region. // Client should try to delete some ENIs or get its account limit raised. For // more information, see Amazon VPC Limits (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html) // in the Amazon Virtual Private Cloud User Guide (see the Network interfaces // per VPC entry in the table). // -// * SecurityGroupLimitExceeded +// * ErrCodeSecurityGroupLimitExceeded "SecurityGroupLimitExceeded" // Returned if the size of SecurityGroups specified in the request is greater // than five. // -// * SecurityGroupNotFound +// * ErrCodeSecurityGroupNotFound "SecurityGroupNotFound" // Returned if one of the specified security groups does not exist in the subnet's // VPC. // -// * UnsupportedAvailabilityZone - +// * ErrCodeUnsupportedAvailabilityZone "UnsupportedAvailabilityZone" // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/CreateMountTarget func (c *EFS) CreateMountTarget(input *CreateMountTargetInput) (*MountTargetDescription, error) { req, out := c.CreateMountTargetRequest(input) err := req.Send() @@ -363,6 +363,7 @@ const opCreateTags = "CreateTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/CreateTags func (c *EFS) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, output *CreateTagsOutput) { op := &request.Operation{ Name: opCreateTags, @@ -374,11 +375,10 @@ func (c *EFS) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, o input = &CreateTagsInput{} } + output = &CreateTagsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CreateTagsOutput{} - req.Data = output return } @@ -390,8 +390,7 @@ func (c *EFS) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, o // If you add the Name tag to your file system, Amazon EFS returns it in the // response to the DescribeFileSystems operation. // -// This operation requires permission for the elasticfilesystem:CreateTags -// action. +// This operation requires permission for the elasticfilesystem:CreateTags action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -401,17 +400,18 @@ func (c *EFS) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, o // API operation CreateTags for usage and error information. // // Returned Error Codes: -// * BadRequest +// * ErrCodeBadRequest "BadRequest" // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // Returned if an error occurred on the server side. // -// * FileSystemNotFound +// * ErrCodeFileSystemNotFound "FileSystemNotFound" // Returned if the specified FileSystemId does not exist in the requester's // AWS account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/CreateTags func (c *EFS) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) { req, out := c.CreateTagsRequest(input) err := req.Send() @@ -444,6 +444,7 @@ const opDeleteFileSystem = "DeleteFileSystem" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DeleteFileSystem func (c *EFS) DeleteFileSystemRequest(input *DeleteFileSystemInput) (req *request.Request, output *DeleteFileSystemOutput) { op := &request.Operation{ Name: opDeleteFileSystem, @@ -455,11 +456,10 @@ func (c *EFS) DeleteFileSystemRequest(input *DeleteFileSystemInput) (req *reques input = &DeleteFileSystemInput{} } + output = &DeleteFileSystemOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteFileSystemOutput{} - req.Data = output return } @@ -469,17 +469,17 @@ func (c *EFS) DeleteFileSystemRequest(input *DeleteFileSystemInput) (req *reques // return, the file system no longer exists and you can't access any contents // of the deleted file system. // -// You can't delete a file system that is in use. That is, if the file system +// You can't delete a file system that is in use. That is, if the file system // has any mount targets, you must first delete them. For more information, // see DescribeMountTargets and DeleteMountTarget. // -// The DeleteFileSystem call returns while the file system state is still -// deleting. You can check the file system deletion status by calling the DescribeFileSystems +// The DeleteFileSystem call returns while the file system state is still deleting. +// You can check the file system deletion status by calling the DescribeFileSystems // operation, which returns a list of file systems in your account. If you pass // file system ID or creation token for the deleted file system, the DescribeFileSystems // returns a 404 FileSystemNotFound error. // -// This operation requires permissions for the elasticfilesystem:DeleteFileSystem +// This operation requires permissions for the elasticfilesystem:DeleteFileSystem // action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -490,20 +490,21 @@ func (c *EFS) DeleteFileSystemRequest(input *DeleteFileSystemInput) (req *reques // API operation DeleteFileSystem for usage and error information. // // Returned Error Codes: -// * BadRequest +// * ErrCodeBadRequest "BadRequest" // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // Returned if an error occurred on the server side. // -// * FileSystemNotFound +// * ErrCodeFileSystemNotFound "FileSystemNotFound" // Returned if the specified FileSystemId does not exist in the requester's // AWS account. // -// * FileSystemInUse +// * ErrCodeFileSystemInUse "FileSystemInUse" // Returned if a file system has mount targets. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DeleteFileSystem func (c *EFS) DeleteFileSystem(input *DeleteFileSystemInput) (*DeleteFileSystemOutput, error) { req, out := c.DeleteFileSystemRequest(input) err := req.Send() @@ -536,6 +537,7 @@ const opDeleteMountTarget = "DeleteMountTarget" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DeleteMountTarget func (c *EFS) DeleteMountTargetRequest(input *DeleteMountTargetInput) (req *request.Request, output *DeleteMountTargetOutput) { op := &request.Operation{ Name: opDeleteMountTarget, @@ -547,11 +549,10 @@ func (c *EFS) DeleteMountTargetRequest(input *DeleteMountTargetInput) (req *requ input = &DeleteMountTargetInput{} } + output = &DeleteMountTargetOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteMountTargetOutput{} - req.Data = output return } @@ -571,17 +572,17 @@ func (c *EFS) DeleteMountTargetRequest(input *DeleteMountTargetInput) (req *requ // This operation requires permissions for the following action on the file // system: // -// elasticfilesystem:DeleteMountTarget +// * elasticfilesystem:DeleteMountTarget // -// The DeleteMountTarget call returns while the mount target state is still +// The DeleteMountTarget call returns while the mount target state is still // deleting. You can check the mount target deletion by calling the DescribeMountTargets // operation, which returns a list of mount target descriptions for the given // file system. // -// The operation also requires permissions for the following Amazon EC2 action +// The operation also requires permissions for the following Amazon EC2 action // on the mount target's network interface: // -// ec2:DeleteNetworkInterface +// * ec2:DeleteNetworkInterface // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -591,21 +592,22 @@ func (c *EFS) DeleteMountTargetRequest(input *DeleteMountTargetInput) (req *requ // API operation DeleteMountTarget for usage and error information. // // Returned Error Codes: -// * BadRequest +// * ErrCodeBadRequest "BadRequest" // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // Returned if an error occurred on the server side. // -// * DependencyTimeout +// * ErrCodeDependencyTimeout "DependencyTimeout" // The service timed out trying to fulfill the request, and the client should // try the call again. // -// * MountTargetNotFound +// * ErrCodeMountTargetNotFound "MountTargetNotFound" // Returned if there is no mount target with the specified ID found in the caller's // account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DeleteMountTarget func (c *EFS) DeleteMountTarget(input *DeleteMountTargetInput) (*DeleteMountTargetOutput, error) { req, out := c.DeleteMountTargetRequest(input) err := req.Send() @@ -638,6 +640,7 @@ const opDeleteTags = "DeleteTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DeleteTags func (c *EFS) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) { op := &request.Operation{ Name: opDeleteTags, @@ -649,11 +652,10 @@ func (c *EFS) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, o input = &DeleteTagsInput{} } + output = &DeleteTagsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteTagsOutput{} - req.Data = output return } @@ -676,17 +678,18 @@ func (c *EFS) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, o // API operation DeleteTags for usage and error information. // // Returned Error Codes: -// * BadRequest +// * ErrCodeBadRequest "BadRequest" // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // Returned if an error occurred on the server side. // -// * FileSystemNotFound +// * ErrCodeFileSystemNotFound "FileSystemNotFound" // Returned if the specified FileSystemId does not exist in the requester's // AWS account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DeleteTags func (c *EFS) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) err := req.Send() @@ -719,6 +722,7 @@ const opDescribeFileSystems = "DescribeFileSystems" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeFileSystems func (c *EFS) DescribeFileSystemsRequest(input *DescribeFileSystemsInput) (req *request.Request, output *DescribeFileSystemsOutput) { op := &request.Operation{ Name: opDescribeFileSystems, @@ -730,9 +734,8 @@ func (c *EFS) DescribeFileSystemsRequest(input *DescribeFileSystemsInput) (req * input = &DescribeFileSystemsInput{} } - req = c.newRequest(op, input, output) output = &DescribeFileSystemsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -743,7 +746,7 @@ func (c *EFS) DescribeFileSystemsRequest(input *DescribeFileSystemsInput) (req * // returns descriptions of all file systems owned by the caller's AWS account // in the AWS Region of the endpoint that you're calling. // -// When retrieving all file system descriptions, you can optionally specify +// When retrieving all file system descriptions, you can optionally specify // the MaxItems parameter to limit the number of descriptions in a response. // If more file system descriptions remain, Amazon EFS returns a NextMarker, // an opaque token, in the response. In this case, you should send a subsequent @@ -758,11 +761,11 @@ func (c *EFS) DescribeFileSystemsRequest(input *DescribeFileSystemsInput) (req * // The implementation may return fewer than MaxItems file system descriptions // while still including a NextMarker value. // -// The order of file systems returned in the response of one DescribeFileSystems +// The order of file systems returned in the response of one DescribeFileSystems // call and the order of file systems returned across the responses of a multi-call // iteration is unspecified. // -// This operation requires permissions for the elasticfilesystem:DescribeFileSystems +// This operation requires permissions for the elasticfilesystem:DescribeFileSystems // action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -773,17 +776,18 @@ func (c *EFS) DescribeFileSystemsRequest(input *DescribeFileSystemsInput) (req * // API operation DescribeFileSystems for usage and error information. // // Returned Error Codes: -// * BadRequest +// * ErrCodeBadRequest "BadRequest" // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // Returned if an error occurred on the server side. // -// * FileSystemNotFound +// * ErrCodeFileSystemNotFound "FileSystemNotFound" // Returned if the specified FileSystemId does not exist in the requester's // AWS account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeFileSystems func (c *EFS) DescribeFileSystems(input *DescribeFileSystemsInput) (*DescribeFileSystemsOutput, error) { req, out := c.DescribeFileSystemsRequest(input) err := req.Send() @@ -816,6 +820,7 @@ const opDescribeMountTargetSecurityGroups = "DescribeMountTargetSecurityGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeMountTargetSecurityGroups func (c *EFS) DescribeMountTargetSecurityGroupsRequest(input *DescribeMountTargetSecurityGroupsInput) (req *request.Request, output *DescribeMountTargetSecurityGroupsOutput) { op := &request.Operation{ Name: opDescribeMountTargetSecurityGroups, @@ -827,9 +832,8 @@ func (c *EFS) DescribeMountTargetSecurityGroupsRequest(input *DescribeMountTarge input = &DescribeMountTargetSecurityGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeMountTargetSecurityGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -841,11 +845,11 @@ func (c *EFS) DescribeMountTargetSecurityGroupsRequest(input *DescribeMountTarge // // This operation requires permissions for the following actions: // -// elasticfilesystem:DescribeMountTargetSecurityGroups action on the mount -// target's file system. +// * elasticfilesystem:DescribeMountTargetSecurityGroups action on the mount +// target's file system. // -// ec2:DescribeNetworkInterfaceAttribute action on the mount target's network -// interface. +// * ec2:DescribeNetworkInterfaceAttribute action on the mount target's network +// interface. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -855,20 +859,21 @@ func (c *EFS) DescribeMountTargetSecurityGroupsRequest(input *DescribeMountTarge // API operation DescribeMountTargetSecurityGroups for usage and error information. // // Returned Error Codes: -// * BadRequest +// * ErrCodeBadRequest "BadRequest" // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // Returned if an error occurred on the server side. // -// * MountTargetNotFound +// * ErrCodeMountTargetNotFound "MountTargetNotFound" // Returned if there is no mount target with the specified ID found in the caller's // account. // -// * IncorrectMountTargetState +// * ErrCodeIncorrectMountTargetState "IncorrectMountTargetState" // Returned if the mount target is not in the correct state for the operation. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeMountTargetSecurityGroups func (c *EFS) DescribeMountTargetSecurityGroups(input *DescribeMountTargetSecurityGroupsInput) (*DescribeMountTargetSecurityGroupsOutput, error) { req, out := c.DescribeMountTargetSecurityGroupsRequest(input) err := req.Send() @@ -901,6 +906,7 @@ const opDescribeMountTargets = "DescribeMountTargets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeMountTargets func (c *EFS) DescribeMountTargetsRequest(input *DescribeMountTargetsInput) (req *request.Request, output *DescribeMountTargetsOutput) { op := &request.Operation{ Name: opDescribeMountTargets, @@ -912,9 +918,8 @@ func (c *EFS) DescribeMountTargetsRequest(input *DescribeMountTargetsInput) (req input = &DescribeMountTargetsInput{} } - req = c.newRequest(op, input, output) output = &DescribeMountTargetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -936,21 +941,22 @@ func (c *EFS) DescribeMountTargetsRequest(input *DescribeMountTargetsInput) (req // API operation DescribeMountTargets for usage and error information. // // Returned Error Codes: -// * BadRequest +// * ErrCodeBadRequest "BadRequest" // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // Returned if an error occurred on the server side. // -// * FileSystemNotFound +// * ErrCodeFileSystemNotFound "FileSystemNotFound" // Returned if the specified FileSystemId does not exist in the requester's // AWS account. // -// * MountTargetNotFound +// * ErrCodeMountTargetNotFound "MountTargetNotFound" // Returned if there is no mount target with the specified ID found in the caller's // account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeMountTargets func (c *EFS) DescribeMountTargets(input *DescribeMountTargetsInput) (*DescribeMountTargetsOutput, error) { req, out := c.DescribeMountTargetsRequest(input) err := req.Send() @@ -983,6 +989,7 @@ const opDescribeTags = "DescribeTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeTags func (c *EFS) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) { op := &request.Operation{ Name: opDescribeTags, @@ -994,9 +1001,8 @@ func (c *EFS) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Reques input = &DescribeTagsInput{} } - req = c.newRequest(op, input, output) output = &DescribeTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1006,7 +1012,7 @@ func (c *EFS) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Reques // in the response of one DescribeTags call and the order of tags returned across // the responses of a multi-call iteration (when using pagination) is unspecified. // -// This operation requires permissions for the elasticfilesystem:DescribeTags +// This operation requires permissions for the elasticfilesystem:DescribeTags // action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1017,17 +1023,18 @@ func (c *EFS) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Reques // API operation DescribeTags for usage and error information. // // Returned Error Codes: -// * BadRequest +// * ErrCodeBadRequest "BadRequest" // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // Returned if an error occurred on the server side. // -// * FileSystemNotFound +// * ErrCodeFileSystemNotFound "FileSystemNotFound" // Returned if the specified FileSystemId does not exist in the requester's // AWS account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeTags func (c *EFS) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -1060,6 +1067,7 @@ const opModifyMountTargetSecurityGroups = "ModifyMountTargetSecurityGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/ModifyMountTargetSecurityGroups func (c *EFS) ModifyMountTargetSecurityGroupsRequest(input *ModifyMountTargetSecurityGroupsInput) (req *request.Request, output *ModifyMountTargetSecurityGroupsOutput) { op := &request.Operation{ Name: opModifyMountTargetSecurityGroups, @@ -1071,11 +1079,10 @@ func (c *EFS) ModifyMountTargetSecurityGroupsRequest(input *ModifyMountTargetSec input = &ModifyMountTargetSecurityGroupsInput{} } + output = &ModifyMountTargetSecurityGroupsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ModifyMountTargetSecurityGroupsOutput{} - req.Data = output return } @@ -1092,11 +1099,11 @@ func (c *EFS) ModifyMountTargetSecurityGroupsRequest(input *ModifyMountTargetSec // // The operation requires permissions for the following actions: // -// elasticfilesystem:ModifyMountTargetSecurityGroups action on the mount -// target's file system. +// * elasticfilesystem:ModifyMountTargetSecurityGroups action on the mount +// target's file system. // -// ec2:ModifyNetworkInterfaceAttribute action on the mount target's network -// interface. +// * ec2:ModifyNetworkInterfaceAttribute action on the mount target's network +// interface. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1106,34 +1113,36 @@ func (c *EFS) ModifyMountTargetSecurityGroupsRequest(input *ModifyMountTargetSec // API operation ModifyMountTargetSecurityGroups for usage and error information. // // Returned Error Codes: -// * BadRequest +// * ErrCodeBadRequest "BadRequest" // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // Returned if an error occurred on the server side. // -// * MountTargetNotFound +// * ErrCodeMountTargetNotFound "MountTargetNotFound" // Returned if there is no mount target with the specified ID found in the caller's // account. // -// * IncorrectMountTargetState +// * ErrCodeIncorrectMountTargetState "IncorrectMountTargetState" // Returned if the mount target is not in the correct state for the operation. // -// * SecurityGroupLimitExceeded +// * ErrCodeSecurityGroupLimitExceeded "SecurityGroupLimitExceeded" // Returned if the size of SecurityGroups specified in the request is greater // than five. // -// * SecurityGroupNotFound +// * ErrCodeSecurityGroupNotFound "SecurityGroupNotFound" // Returned if one of the specified security groups does not exist in the subnet's // VPC. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/ModifyMountTargetSecurityGroups func (c *EFS) ModifyMountTargetSecurityGroups(input *ModifyMountTargetSecurityGroupsInput) (*ModifyMountTargetSecurityGroupsOutput, error) { req, out := c.ModifyMountTargetSecurityGroupsRequest(input) err := req.Send() return out, err } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/CreateFileSystemRequest type CreateFileSystemInput struct { _ struct{} `type:"structure"` @@ -1177,6 +1186,19 @@ func (s *CreateFileSystemInput) Validate() error { return nil } +// SetCreationToken sets the CreationToken field's value. +func (s *CreateFileSystemInput) SetCreationToken(v string) *CreateFileSystemInput { + s.CreationToken = &v + return s +} + +// SetPerformanceMode sets the PerformanceMode field's value. +func (s *CreateFileSystemInput) SetPerformanceMode(v string) *CreateFileSystemInput { + s.PerformanceMode = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/CreateMountTargetRequest type CreateMountTargetInput struct { _ struct{} `type:"structure"` @@ -1224,6 +1246,31 @@ func (s *CreateMountTargetInput) Validate() error { return nil } +// SetFileSystemId sets the FileSystemId field's value. +func (s *CreateMountTargetInput) SetFileSystemId(v string) *CreateMountTargetInput { + s.FileSystemId = &v + return s +} + +// SetIpAddress sets the IpAddress field's value. +func (s *CreateMountTargetInput) SetIpAddress(v string) *CreateMountTargetInput { + s.IpAddress = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *CreateMountTargetInput) SetSecurityGroups(v []*string) *CreateMountTargetInput { + s.SecurityGroups = v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *CreateMountTargetInput) SetSubnetId(v string) *CreateMountTargetInput { + s.SubnetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/CreateTagsRequest type CreateTagsInput struct { _ struct{} `type:"structure"` @@ -1275,6 +1322,19 @@ func (s *CreateTagsInput) Validate() error { return nil } +// SetFileSystemId sets the FileSystemId field's value. +func (s *CreateTagsInput) SetFileSystemId(v string) *CreateTagsInput { + s.FileSystemId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateTagsInput) SetTags(v []*Tag) *CreateTagsInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/CreateTagsOutput type CreateTagsOutput struct { _ struct{} `type:"structure"` } @@ -1289,6 +1349,7 @@ func (s CreateTagsOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DeleteFileSystemRequest type DeleteFileSystemInput struct { _ struct{} `type:"structure"` @@ -1321,6 +1382,13 @@ func (s *DeleteFileSystemInput) Validate() error { return nil } +// SetFileSystemId sets the FileSystemId field's value. +func (s *DeleteFileSystemInput) SetFileSystemId(v string) *DeleteFileSystemInput { + s.FileSystemId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DeleteFileSystemOutput type DeleteFileSystemOutput struct { _ struct{} `type:"structure"` } @@ -1335,6 +1403,7 @@ func (s DeleteFileSystemOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DeleteMountTargetRequest type DeleteMountTargetInput struct { _ struct{} `type:"structure"` @@ -1367,6 +1436,13 @@ func (s *DeleteMountTargetInput) Validate() error { return nil } +// SetMountTargetId sets the MountTargetId field's value. +func (s *DeleteMountTargetInput) SetMountTargetId(v string) *DeleteMountTargetInput { + s.MountTargetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DeleteMountTargetOutput type DeleteMountTargetOutput struct { _ struct{} `type:"structure"` } @@ -1381,6 +1457,7 @@ func (s DeleteMountTargetOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DeleteTagsRequest type DeleteTagsInput struct { _ struct{} `type:"structure"` @@ -1421,6 +1498,19 @@ func (s *DeleteTagsInput) Validate() error { return nil } +// SetFileSystemId sets the FileSystemId field's value. +func (s *DeleteTagsInput) SetFileSystemId(v string) *DeleteTagsInput { + s.FileSystemId = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DeleteTagsInput) SetTagKeys(v []*string) *DeleteTagsInput { + s.TagKeys = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DeleteTagsOutput type DeleteTagsOutput struct { _ struct{} `type:"structure"` } @@ -1435,6 +1525,7 @@ func (s DeleteTagsOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeFileSystemsRequest type DescribeFileSystemsInput struct { _ struct{} `type:"structure"` @@ -1485,6 +1576,31 @@ func (s *DescribeFileSystemsInput) Validate() error { return nil } +// SetCreationToken sets the CreationToken field's value. +func (s *DescribeFileSystemsInput) SetCreationToken(v string) *DescribeFileSystemsInput { + s.CreationToken = &v + return s +} + +// SetFileSystemId sets the FileSystemId field's value. +func (s *DescribeFileSystemsInput) SetFileSystemId(v string) *DescribeFileSystemsInput { + s.FileSystemId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeFileSystemsInput) SetMarker(v string) *DescribeFileSystemsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *DescribeFileSystemsInput) SetMaxItems(v int64) *DescribeFileSystemsInput { + s.MaxItems = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeFileSystemsResponse type DescribeFileSystemsOutput struct { _ struct{} `type:"structure"` @@ -1509,6 +1625,25 @@ func (s DescribeFileSystemsOutput) GoString() string { return s.String() } +// SetFileSystems sets the FileSystems field's value. +func (s *DescribeFileSystemsOutput) SetFileSystems(v []*FileSystemDescription) *DescribeFileSystemsOutput { + s.FileSystems = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeFileSystemsOutput) SetMarker(v string) *DescribeFileSystemsOutput { + s.Marker = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *DescribeFileSystemsOutput) SetNextMarker(v string) *DescribeFileSystemsOutput { + s.NextMarker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeMountTargetSecurityGroupsRequest type DescribeMountTargetSecurityGroupsInput struct { _ struct{} `type:"structure"` @@ -1541,6 +1676,13 @@ func (s *DescribeMountTargetSecurityGroupsInput) Validate() error { return nil } +// SetMountTargetId sets the MountTargetId field's value. +func (s *DescribeMountTargetSecurityGroupsInput) SetMountTargetId(v string) *DescribeMountTargetSecurityGroupsInput { + s.MountTargetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeMountTargetSecurityGroupsResponse type DescribeMountTargetSecurityGroupsOutput struct { _ struct{} `type:"structure"` @@ -1560,6 +1702,13 @@ func (s DescribeMountTargetSecurityGroupsOutput) GoString() string { return s.String() } +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *DescribeMountTargetSecurityGroupsOutput) SetSecurityGroups(v []*string) *DescribeMountTargetSecurityGroupsOutput { + s.SecurityGroups = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeMountTargetsRequest type DescribeMountTargetsInput struct { _ struct{} `type:"structure"` @@ -1604,6 +1753,31 @@ func (s *DescribeMountTargetsInput) Validate() error { return nil } +// SetFileSystemId sets the FileSystemId field's value. +func (s *DescribeMountTargetsInput) SetFileSystemId(v string) *DescribeMountTargetsInput { + s.FileSystemId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeMountTargetsInput) SetMarker(v string) *DescribeMountTargetsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *DescribeMountTargetsInput) SetMaxItems(v int64) *DescribeMountTargetsInput { + s.MaxItems = &v + return s +} + +// SetMountTargetId sets the MountTargetId field's value. +func (s *DescribeMountTargetsInput) SetMountTargetId(v string) *DescribeMountTargetsInput { + s.MountTargetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeMountTargetsResponse type DescribeMountTargetsOutput struct { _ struct{} `type:"structure"` @@ -1631,6 +1805,25 @@ func (s DescribeMountTargetsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeMountTargetsOutput) SetMarker(v string) *DescribeMountTargetsOutput { + s.Marker = &v + return s +} + +// SetMountTargets sets the MountTargets field's value. +func (s *DescribeMountTargetsOutput) SetMountTargets(v []*MountTargetDescription) *DescribeMountTargetsOutput { + s.MountTargets = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *DescribeMountTargetsOutput) SetNextMarker(v string) *DescribeMountTargetsOutput { + s.NextMarker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeTagsRequest type DescribeTagsInput struct { _ struct{} `type:"structure"` @@ -1675,6 +1868,25 @@ func (s *DescribeTagsInput) Validate() error { return nil } +// SetFileSystemId sets the FileSystemId field's value. +func (s *DescribeTagsInput) SetFileSystemId(v string) *DescribeTagsInput { + s.FileSystemId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeTagsInput) SetMarker(v string) *DescribeTagsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *DescribeTagsInput) SetMaxItems(v int64) *DescribeTagsInput { + s.MaxItems = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeTagsResponse type DescribeTagsOutput struct { _ struct{} `type:"structure"` @@ -1703,7 +1915,26 @@ func (s DescribeTagsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeTagsOutput) SetMarker(v string) *DescribeTagsOutput { + s.Marker = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *DescribeTagsOutput) SetNextMarker(v string) *DescribeTagsOutput { + s.NextMarker = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *DescribeTagsOutput) SetTags(v []*Tag) *DescribeTagsOutput { + s.Tags = v + return s +} + // Description of the file system. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/FileSystemDescription type FileSystemDescription struct { _ struct{} `type:"structure"` @@ -1773,6 +2004,60 @@ func (s FileSystemDescription) GoString() string { return s.String() } +// SetCreationTime sets the CreationTime field's value. +func (s *FileSystemDescription) SetCreationTime(v time.Time) *FileSystemDescription { + s.CreationTime = &v + return s +} + +// SetCreationToken sets the CreationToken field's value. +func (s *FileSystemDescription) SetCreationToken(v string) *FileSystemDescription { + s.CreationToken = &v + return s +} + +// SetFileSystemId sets the FileSystemId field's value. +func (s *FileSystemDescription) SetFileSystemId(v string) *FileSystemDescription { + s.FileSystemId = &v + return s +} + +// SetLifeCycleState sets the LifeCycleState field's value. +func (s *FileSystemDescription) SetLifeCycleState(v string) *FileSystemDescription { + s.LifeCycleState = &v + return s +} + +// SetName sets the Name field's value. +func (s *FileSystemDescription) SetName(v string) *FileSystemDescription { + s.Name = &v + return s +} + +// SetNumberOfMountTargets sets the NumberOfMountTargets field's value. +func (s *FileSystemDescription) SetNumberOfMountTargets(v int64) *FileSystemDescription { + s.NumberOfMountTargets = &v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *FileSystemDescription) SetOwnerId(v string) *FileSystemDescription { + s.OwnerId = &v + return s +} + +// SetPerformanceMode sets the PerformanceMode field's value. +func (s *FileSystemDescription) SetPerformanceMode(v string) *FileSystemDescription { + s.PerformanceMode = &v + return s +} + +// SetSizeInBytes sets the SizeInBytes field's value. +func (s *FileSystemDescription) SetSizeInBytes(v *FileSystemSize) *FileSystemDescription { + s.SizeInBytes = v + return s +} + // Latest known metered size (in bytes) of data stored in the file system, in // its Value field, and the time at which that size was determined in its Timestamp // field. Note that the value does not represent the size of a consistent snapshot @@ -1781,6 +2066,7 @@ func (s FileSystemDescription) GoString() string { // if the file system is not modified for a period longer than a couple of hours. // Otherwise, the value is not necessarily the exact size the file system was // at any instant in time. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/FileSystemSize type FileSystemSize struct { _ struct{} `type:"structure"` @@ -1804,6 +2090,19 @@ func (s FileSystemSize) GoString() string { return s.String() } +// SetTimestamp sets the Timestamp field's value. +func (s *FileSystemSize) SetTimestamp(v time.Time) *FileSystemSize { + s.Timestamp = &v + return s +} + +// SetValue sets the Value field's value. +func (s *FileSystemSize) SetValue(v int64) *FileSystemSize { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/ModifyMountTargetSecurityGroupsRequest type ModifyMountTargetSecurityGroupsInput struct { _ struct{} `type:"structure"` @@ -1839,6 +2138,19 @@ func (s *ModifyMountTargetSecurityGroupsInput) Validate() error { return nil } +// SetMountTargetId sets the MountTargetId field's value. +func (s *ModifyMountTargetSecurityGroupsInput) SetMountTargetId(v string) *ModifyMountTargetSecurityGroupsInput { + s.MountTargetId = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *ModifyMountTargetSecurityGroupsInput) SetSecurityGroups(v []*string) *ModifyMountTargetSecurityGroupsInput { + s.SecurityGroups = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/ModifyMountTargetSecurityGroupsOutput type ModifyMountTargetSecurityGroupsOutput struct { _ struct{} `type:"structure"` } @@ -1854,6 +2166,7 @@ func (s ModifyMountTargetSecurityGroupsOutput) GoString() string { } // Provides a description of a mount target. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/MountTargetDescription type MountTargetDescription struct { _ struct{} `type:"structure"` @@ -1898,8 +2211,51 @@ func (s MountTargetDescription) GoString() string { return s.String() } +// SetFileSystemId sets the FileSystemId field's value. +func (s *MountTargetDescription) SetFileSystemId(v string) *MountTargetDescription { + s.FileSystemId = &v + return s +} + +// SetIpAddress sets the IpAddress field's value. +func (s *MountTargetDescription) SetIpAddress(v string) *MountTargetDescription { + s.IpAddress = &v + return s +} + +// SetLifeCycleState sets the LifeCycleState field's value. +func (s *MountTargetDescription) SetLifeCycleState(v string) *MountTargetDescription { + s.LifeCycleState = &v + return s +} + +// SetMountTargetId sets the MountTargetId field's value. +func (s *MountTargetDescription) SetMountTargetId(v string) *MountTargetDescription { + s.MountTargetId = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *MountTargetDescription) SetNetworkInterfaceId(v string) *MountTargetDescription { + s.NetworkInterfaceId = &v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *MountTargetDescription) SetOwnerId(v string) *MountTargetDescription { + s.OwnerId = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *MountTargetDescription) SetSubnetId(v string) *MountTargetDescription { + s.SubnetId = &v + return s +} + // A tag is a key-value pair. Allowed characters: letters, whitespace, and numbers, // representable in UTF-8, and the following characters: + - = . _ : / +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/Tag type Tag struct { _ struct{} `type:"structure"` @@ -1943,6 +2299,18 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + const ( // LifeCycleStateCreating is a LifeCycleState enum value LifeCycleStateCreating = "creating" diff --git a/vendor/github.com/aws/aws-sdk-go/service/efs/efsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/efs/efsiface/interface.go index e28fcc814..cada25849 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/efs/efsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/efs/efsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockEFSClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/efs/errors.go b/vendor/github.com/aws/aws-sdk-go/service/efs/errors.go new file mode 100644 index 000000000..326ffa4b2 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/efs/errors.go @@ -0,0 +1,127 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package efs + +const ( + + // ErrCodeBadRequest for service response error code + // "BadRequest". + // + // Returned if the request is malformed or contains an error such as an invalid + // parameter value or a missing required parameter. + ErrCodeBadRequest = "BadRequest" + + // ErrCodeDependencyTimeout for service response error code + // "DependencyTimeout". + // + // The service timed out trying to fulfill the request, and the client should + // try the call again. + ErrCodeDependencyTimeout = "DependencyTimeout" + + // ErrCodeFileSystemAlreadyExists for service response error code + // "FileSystemAlreadyExists". + // + // Returned if the file system you are trying to create already exists, with + // the creation token you provided. + ErrCodeFileSystemAlreadyExists = "FileSystemAlreadyExists" + + // ErrCodeFileSystemInUse for service response error code + // "FileSystemInUse". + // + // Returned if a file system has mount targets. + ErrCodeFileSystemInUse = "FileSystemInUse" + + // ErrCodeFileSystemLimitExceeded for service response error code + // "FileSystemLimitExceeded". + // + // Returned if the AWS account has already created maximum number of file systems + // allowed per account. + ErrCodeFileSystemLimitExceeded = "FileSystemLimitExceeded" + + // ErrCodeFileSystemNotFound for service response error code + // "FileSystemNotFound". + // + // Returned if the specified FileSystemId does not exist in the requester's + // AWS account. + ErrCodeFileSystemNotFound = "FileSystemNotFound" + + // ErrCodeIncorrectFileSystemLifeCycleState for service response error code + // "IncorrectFileSystemLifeCycleState". + // + // Returned if the file system's life cycle state is not "created". + ErrCodeIncorrectFileSystemLifeCycleState = "IncorrectFileSystemLifeCycleState" + + // ErrCodeIncorrectMountTargetState for service response error code + // "IncorrectMountTargetState". + // + // Returned if the mount target is not in the correct state for the operation. + ErrCodeIncorrectMountTargetState = "IncorrectMountTargetState" + + // ErrCodeInternalServerError for service response error code + // "InternalServerError". + // + // Returned if an error occurred on the server side. + ErrCodeInternalServerError = "InternalServerError" + + // ErrCodeIpAddressInUse for service response error code + // "IpAddressInUse". + // + // Returned if the request specified an IpAddress that is already in use in + // the subnet. + ErrCodeIpAddressInUse = "IpAddressInUse" + + // ErrCodeMountTargetConflict for service response error code + // "MountTargetConflict". + // + // Returned if the mount target would violate one of the specified restrictions + // based on the file system's existing mount targets. + ErrCodeMountTargetConflict = "MountTargetConflict" + + // ErrCodeMountTargetNotFound for service response error code + // "MountTargetNotFound". + // + // Returned if there is no mount target with the specified ID found in the caller's + // account. + ErrCodeMountTargetNotFound = "MountTargetNotFound" + + // ErrCodeNetworkInterfaceLimitExceeded for service response error code + // "NetworkInterfaceLimitExceeded". + // + // The calling account has reached the ENI limit for the specific AWS region. + // Client should try to delete some ENIs or get its account limit raised. For + // more information, see Amazon VPC Limits (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html) + // in the Amazon Virtual Private Cloud User Guide (see the Network interfaces + // per VPC entry in the table). + ErrCodeNetworkInterfaceLimitExceeded = "NetworkInterfaceLimitExceeded" + + // ErrCodeNoFreeAddressesInSubnet for service response error code + // "NoFreeAddressesInSubnet". + // + // Returned if IpAddress was not specified in the request and there are no free + // IP addresses in the subnet. + ErrCodeNoFreeAddressesInSubnet = "NoFreeAddressesInSubnet" + + // ErrCodeSecurityGroupLimitExceeded for service response error code + // "SecurityGroupLimitExceeded". + // + // Returned if the size of SecurityGroups specified in the request is greater + // than five. + ErrCodeSecurityGroupLimitExceeded = "SecurityGroupLimitExceeded" + + // ErrCodeSecurityGroupNotFound for service response error code + // "SecurityGroupNotFound". + // + // Returned if one of the specified security groups does not exist in the subnet's + // VPC. + ErrCodeSecurityGroupNotFound = "SecurityGroupNotFound" + + // ErrCodeSubnetNotFound for service response error code + // "SubnetNotFound". + // + // Returned if there is no subnet with ID SubnetId provided in the request. + ErrCodeSubnetNotFound = "SubnetNotFound" + + // ErrCodeUnsupportedAvailabilityZone for service response error code + // "UnsupportedAvailabilityZone". + ErrCodeUnsupportedAvailabilityZone = "UnsupportedAvailabilityZone" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/efs/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/efs/examples_test.go index 6fc3dddfe..28dbf6c07 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/efs/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/efs/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleEFS_CreateFileSystem() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) @@ -42,11 +38,7 @@ func ExampleEFS_CreateFileSystem() { } func ExampleEFS_CreateMountTarget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) @@ -73,11 +65,7 @@ func ExampleEFS_CreateMountTarget() { } func ExampleEFS_CreateTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) @@ -105,11 +93,7 @@ func ExampleEFS_CreateTags() { } func ExampleEFS_DeleteFileSystem() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) @@ -130,11 +114,7 @@ func ExampleEFS_DeleteFileSystem() { } func ExampleEFS_DeleteMountTarget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) @@ -155,11 +135,7 @@ func ExampleEFS_DeleteMountTarget() { } func ExampleEFS_DeleteTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) @@ -184,11 +160,7 @@ func ExampleEFS_DeleteTags() { } func ExampleEFS_DescribeFileSystems() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) @@ -212,11 +184,7 @@ func ExampleEFS_DescribeFileSystems() { } func ExampleEFS_DescribeMountTargetSecurityGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) @@ -237,11 +205,7 @@ func ExampleEFS_DescribeMountTargetSecurityGroups() { } func ExampleEFS_DescribeMountTargets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) @@ -265,11 +229,7 @@ func ExampleEFS_DescribeMountTargets() { } func ExampleEFS_DescribeTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) @@ -292,11 +252,7 @@ func ExampleEFS_DescribeTags() { } func ExampleEFS_ModifyMountTargetSecurityGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := efs.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/efs/service.go b/vendor/github.com/aws/aws-sdk-go/service/efs/service.go index e5be3ff03..583f08d39 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/efs/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/efs/service.go @@ -16,8 +16,9 @@ import ( // capacity is elastic, growing and shrinking automatically as you add and remove // files, so your applications have the storage they need, when they need it. // For more information, see the User Guide (http://docs.aws.amazon.com/efs/latest/ug/api-reference.html). -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01 type EFS struct { *client.Client } @@ -28,8 +29,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "elasticfilesystem" +// Service information constants +const ( + ServiceName = "elasticfilesystem" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the EFS client with a session. // If additional configuration is needed for the client instance use the optional @@ -42,17 +46,18 @@ const ServiceName = "elasticfilesystem" // // Create a EFS client with additional configuration // svc := efs.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *EFS { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *EFS { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *EFS { svc := &EFS{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-02-01", diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticache/api.go b/vendor/github.com/aws/aws-sdk-go/service/elasticache/api.go index 3afba309c..4eab1e4d0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticache/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticache/api.go @@ -38,6 +38,7 @@ const opAddTagsToResource = "AddTagsToResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/AddTagsToResource func (c *ElastiCache) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *TagListMessage) { op := &request.Operation{ Name: opAddTagsToResource, @@ -49,9 +50,8 @@ func (c *ElastiCache) AddTagsToResourceRequest(input *AddTagsToResourceInput) (r input = &AddTagsToResourceInput{} } - req = c.newRequest(op, input, output) output = &TagListMessage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -61,12 +61,12 @@ func (c *ElastiCache) AddTagsToResourceRequest(input *AddTagsToResourceInput) (r // tag is a key-value pair where the key and value are case-sensitive. You can // use cost allocation tags to categorize and track your AWS costs. // -// When you apply tags to your ElastiCache resources, AWS generates a cost -// allocation report as a comma-separated value (CSV) file with your usage and -// costs aggregated by your tags. You can apply tags that represent business -// categories (such as cost centers, application names, or owners) to organize -// your costs across multiple services. For more information, see Using Cost -// Allocation Tags in Amazon ElastiCache (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Tagging.html) +// When you apply tags to your ElastiCache resources, AWS generates a cost allocation +// report as a comma-separated value (CSV) file with your usage and costs aggregated +// by your tags. You can apply tags that represent business categories (such +// as cost centers, application names, or owners) to organize your costs across +// multiple services. For more information, see Using Cost Allocation Tags in +// Amazon ElastiCache (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Tagging.html) // in the ElastiCache User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -77,20 +77,21 @@ func (c *ElastiCache) AddTagsToResourceRequest(input *AddTagsToResourceInput) (r // API operation AddTagsToResource for usage and error information. // // Returned Error Codes: -// * CacheClusterNotFound +// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound" // The requested cache cluster ID does not refer to an existing cache cluster. // -// * SnapshotNotFoundFault +// * ErrCodeSnapshotNotFoundFault "SnapshotNotFoundFault" // The requested snapshot name does not refer to an existing snapshot. // -// * TagQuotaPerResourceExceeded +// * ErrCodeTagQuotaPerResourceExceeded "TagQuotaPerResourceExceeded" // The request cannot be processed because it would cause the resource to have // more than the allowed number of tags. The maximum number of tags permitted // on a resource is 10. // -// * InvalidARN +// * ErrCodeInvalidARNFault "InvalidARN" // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/AddTagsToResource func (c *ElastiCache) AddTagsToResource(input *AddTagsToResourceInput) (*TagListMessage, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -123,6 +124,7 @@ const opAuthorizeCacheSecurityGroupIngress = "AuthorizeCacheSecurityGroupIngress // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/AuthorizeCacheSecurityGroupIngress func (c *ElastiCache) AuthorizeCacheSecurityGroupIngressRequest(input *AuthorizeCacheSecurityGroupIngressInput) (req *request.Request, output *AuthorizeCacheSecurityGroupIngressOutput) { op := &request.Operation{ Name: opAuthorizeCacheSecurityGroupIngress, @@ -134,9 +136,8 @@ func (c *ElastiCache) AuthorizeCacheSecurityGroupIngressRequest(input *Authorize input = &AuthorizeCacheSecurityGroupIngressInput{} } - req = c.newRequest(op, input, output) output = &AuthorizeCacheSecurityGroupIngressOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -146,7 +147,7 @@ func (c *ElastiCache) AuthorizeCacheSecurityGroupIngressRequest(input *Authorize // must be running on Amazon EC2, and Amazon EC2 security groups are used as // the authorization mechanism. // -// You cannot authorize ingress from an Amazon EC2 security group in one region +// You cannot authorize ingress from an Amazon EC2 security group in one region // to an ElastiCache cluster in another region. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -157,23 +158,24 @@ func (c *ElastiCache) AuthorizeCacheSecurityGroupIngressRequest(input *Authorize // API operation AuthorizeCacheSecurityGroupIngress for usage and error information. // // Returned Error Codes: -// * CacheSecurityGroupNotFound +// * ErrCodeCacheSecurityGroupNotFoundFault "CacheSecurityGroupNotFound" // The requested cache security group name does not refer to an existing cache // security group. // -// * InvalidCacheSecurityGroupState +// * ErrCodeInvalidCacheSecurityGroupStateFault "InvalidCacheSecurityGroupState" // The current state of the cache security group does not allow deletion. // -// * AuthorizationAlreadyExists +// * ErrCodeAuthorizationAlreadyExistsFault "AuthorizationAlreadyExists" // The specified Amazon EC2 security group is already authorized for the specified // cache security group. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/AuthorizeCacheSecurityGroupIngress func (c *ElastiCache) AuthorizeCacheSecurityGroupIngress(input *AuthorizeCacheSecurityGroupIngressInput) (*AuthorizeCacheSecurityGroupIngressOutput, error) { req, out := c.AuthorizeCacheSecurityGroupIngressRequest(input) err := req.Send() @@ -206,6 +208,7 @@ const opCopySnapshot = "CopySnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CopySnapshot func (c *ElastiCache) CopySnapshotRequest(input *CopySnapshotInput) (req *request.Request, output *CopySnapshotOutput) { op := &request.Operation{ Name: opCopySnapshot, @@ -217,9 +220,8 @@ func (c *ElastiCache) CopySnapshotRequest(input *CopySnapshotInput) (req *reques input = &CopySnapshotInput{} } - req = c.newRequest(op, input, output) output = &CopySnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -227,66 +229,69 @@ func (c *ElastiCache) CopySnapshotRequest(input *CopySnapshotInput) (req *reques // // Makes a copy of an existing snapshot. // -// This operation is valid for Redis only. +// This operation is valid for Redis only. // -// Users or groups that have permissions to use the CopySnapshot operation -// can create their own Amazon S3 buckets and copy snapshots to it. To control -// access to your snapshots, use an IAM policy to control who has the ability -// to use the CopySnapshot operation. For more information about using IAM to -// control the use of ElastiCache operations, see Exporting Snapshots (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html) +// Users or groups that have permissions to use the CopySnapshot operation can +// create their own Amazon S3 buckets and copy snapshots to it. To control access +// to your snapshots, use an IAM policy to control who has the ability to use +// the CopySnapshot operation. For more information about using IAM to control +// the use of ElastiCache operations, see Exporting Snapshots (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html) // and Authentication & Access Control (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/IAM.html). // -// You could receive the following error messages. +// You could receive the following error messages. // -// Error Messages Error Message: The S3 bucket %s is outside of the region. +// Error Messages // -// Solution: Create an Amazon S3 bucket in the same region as your snapshot. -// For more information, see Step 1: Create an Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.CreateBucket) -// in the ElastiCache User Guide. +// * Error Message: The S3 bucket %s is outside of the region. // -// Error Message: The S3 bucket %s does not exist. +// Solution: Create an Amazon S3 bucket in the same region as your snapshot. +// For more information, see Step 1: Create an Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.CreateBucket) +// in the ElastiCache User Guide. // -// Solution: Create an Amazon S3 bucket in the same region as your snapshot. -// For more information, see Step 1: Create an Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.CreateBucket) -// in the ElastiCache User Guide. +// * Error Message: The S3 bucket %s does not exist. // -// Error Message: The S3 bucket %s is not owned by the authenticated user. +// Solution: Create an Amazon S3 bucket in the same region as your snapshot. +// For more information, see Step 1: Create an Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.CreateBucket) +// in the ElastiCache User Guide. // -// Solution: Create an Amazon S3 bucket in the same region as your snapshot. -// For more information, see Step 1: Create an Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.CreateBucket) -// in the ElastiCache User Guide. +// * Error Message: The S3 bucket %s is not owned by the authenticated user. // -// Error Message: The authenticated user does not have sufficient permissions -// to perform the desired activity. +// Solution: Create an Amazon S3 bucket in the same region as your snapshot. +// For more information, see Step 1: Create an Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.CreateBucket) +// in the ElastiCache User Guide. // -// Solution: Contact your system administrator to get the needed permissions. +// * Error Message: The authenticated user does not have sufficient permissions +// to perform the desired activity. // -// Error Message: The S3 bucket %s already contains an object with key %s. +// Solution: Contact your system administrator to get the needed permissions. // -// Solution: Give the TargetSnapshotName a new and unique value. If exporting -// a snapshot, you could alternatively create a new Amazon S3 bucket and use -// this same value for TargetSnapshotName. +// * Error Message: The S3 bucket %s already contains an object with key +// %s. // -// Error Message: ElastiCache has not been granted READ permissions %s -// on the S3 Bucket. +// Solution: Give the TargetSnapshotName a new and unique value. If exporting +// a snapshot, you could alternatively create a new Amazon S3 bucket and +// use this same value for TargetSnapshotName. // -// Solution: Add List and Read permissions on the bucket. For more information, -// see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.GrantAccess) -// in the ElastiCache User Guide. +// * Error Message: ElastiCache has not been granted READ permissions %s +// on the S3 Bucket. // -// Error Message: ElastiCache has not been granted WRITE permissions %s -// on the S3 Bucket. +// Solution: Add List and Read permissions on the bucket. For more information, +// see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.GrantAccess) +// in the ElastiCache User Guide. // -// Solution: Add Upload/Delete permissions on the bucket. For more information, -// see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.GrantAccess) -// in the ElastiCache User Guide. +// * Error Message: ElastiCache has not been granted WRITE permissions %s +// on the S3 Bucket. // -// Error Message: ElastiCache has not been granted READ_ACP permissions -// %s on the S3 Bucket. +// Solution: Add Upload/Delete permissions on the bucket. For more information, +// see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.GrantAccess) +// in the ElastiCache User Guide. // -// Solution: Add View Permissions on the bucket. For more information, see -// Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.GrantAccess) -// in the ElastiCache User Guide. +// * Error Message: ElastiCache has not been granted READ_ACP permissions +// %s on the S3 Bucket. +// +// Solution: Add View Permissions on the bucket. For more information, see Step +// 2: Grant ElastiCache Access to Your Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.GrantAccess) +// in the ElastiCache User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -296,26 +301,27 @@ func (c *ElastiCache) CopySnapshotRequest(input *CopySnapshotInput) (req *reques // API operation CopySnapshot for usage and error information. // // Returned Error Codes: -// * SnapshotAlreadyExistsFault +// * ErrCodeSnapshotAlreadyExistsFault "SnapshotAlreadyExistsFault" // You already have a snapshot with the given name. // -// * SnapshotNotFoundFault +// * ErrCodeSnapshotNotFoundFault "SnapshotNotFoundFault" // The requested snapshot name does not refer to an existing snapshot. // -// * SnapshotQuotaExceededFault +// * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceededFault" // The request cannot be processed because it would exceed the maximum number // of snapshots. // -// * InvalidSnapshotState +// * ErrCodeInvalidSnapshotStateFault "InvalidSnapshotState" // The current state of the snapshot does not allow the requested operation // to occur. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CopySnapshot func (c *ElastiCache) CopySnapshot(input *CopySnapshotInput) (*CopySnapshotOutput, error) { req, out := c.CopySnapshotRequest(input) err := req.Send() @@ -348,6 +354,7 @@ const opCreateCacheCluster = "CreateCacheCluster" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateCacheCluster func (c *ElastiCache) CreateCacheClusterRequest(input *CreateCacheClusterInput) (req *request.Request, output *CreateCacheClusterOutput) { op := &request.Operation{ Name: opCreateCacheCluster, @@ -359,9 +366,8 @@ func (c *ElastiCache) CreateCacheClusterRequest(input *CreateCacheClusterInput) input = &CreateCacheClusterInput{} } - req = c.newRequest(op, input, output) output = &CreateCacheClusterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -370,7 +376,7 @@ func (c *ElastiCache) CreateCacheClusterRequest(input *CreateCacheClusterInput) // Creates a cache cluster. All nodes in the cache cluster run the same protocol-compliant // cache engine software, either Memcached or Redis. // -// Due to current limitations on Redis (cluster mode disabled), this operation +// Due to current limitations on Redis (cluster mode disabled), this operation // or parameter is not supported on Redis (cluster mode enabled) replication // groups. // @@ -382,57 +388,58 @@ func (c *ElastiCache) CreateCacheClusterRequest(input *CreateCacheClusterInput) // API operation CreateCacheCluster for usage and error information. // // Returned Error Codes: -// * ReplicationGroupNotFoundFault +// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault" // The specified replication group does not exist. // -// * InvalidReplicationGroupState +// * ErrCodeInvalidReplicationGroupStateFault "InvalidReplicationGroupState" // The requested replication group is not in the available state. // -// * CacheClusterAlreadyExists +// * ErrCodeCacheClusterAlreadyExistsFault "CacheClusterAlreadyExists" // You already have a cache cluster with the given identifier. // -// * InsufficientCacheClusterCapacity +// * ErrCodeInsufficientCacheClusterCapacityFault "InsufficientCacheClusterCapacity" // The requested cache node type is not available in the specified Availability // Zone. // -// * CacheSecurityGroupNotFound +// * ErrCodeCacheSecurityGroupNotFoundFault "CacheSecurityGroupNotFound" // The requested cache security group name does not refer to an existing cache // security group. // -// * CacheSubnetGroupNotFoundFault +// * ErrCodeCacheSubnetGroupNotFoundFault "CacheSubnetGroupNotFoundFault" // The requested cache subnet group name does not refer to an existing cache // subnet group. // -// * ClusterQuotaForCustomerExceeded +// * ErrCodeClusterQuotaForCustomerExceededFault "ClusterQuotaForCustomerExceeded" // The request cannot be processed because it would exceed the allowed number // of cache clusters per customer. // -// * NodeQuotaForClusterExceeded +// * ErrCodeNodeQuotaForClusterExceededFault "NodeQuotaForClusterExceeded" // The request cannot be processed because it would exceed the allowed number // of cache nodes in a single cache cluster. // -// * NodeQuotaForCustomerExceeded +// * ErrCodeNodeQuotaForCustomerExceededFault "NodeQuotaForCustomerExceeded" // The request cannot be processed because it would exceed the allowed number // of cache nodes per customer. // -// * CacheParameterGroupNotFound +// * ErrCodeCacheParameterGroupNotFoundFault "CacheParameterGroupNotFound" // The requested cache parameter group name does not refer to an existing cache // parameter group. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // The VPC network is in an invalid state. // -// * TagQuotaPerResourceExceeded +// * ErrCodeTagQuotaPerResourceExceeded "TagQuotaPerResourceExceeded" // The request cannot be processed because it would cause the resource to have // more than the allowed number of tags. The maximum number of tags permitted // on a resource is 10. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateCacheCluster func (c *ElastiCache) CreateCacheCluster(input *CreateCacheClusterInput) (*CreateCacheClusterOutput, error) { req, out := c.CreateCacheClusterRequest(input) err := req.Send() @@ -465,6 +472,7 @@ const opCreateCacheParameterGroup = "CreateCacheParameterGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateCacheParameterGroup func (c *ElastiCache) CreateCacheParameterGroupRequest(input *CreateCacheParameterGroupInput) (req *request.Request, output *CreateCacheParameterGroupOutput) { op := &request.Operation{ Name: opCreateCacheParameterGroup, @@ -476,9 +484,8 @@ func (c *ElastiCache) CreateCacheParameterGroupRequest(input *CreateCacheParamet input = &CreateCacheParameterGroupInput{} } - req = c.newRequest(op, input, output) output = &CreateCacheParameterGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -495,23 +502,24 @@ func (c *ElastiCache) CreateCacheParameterGroupRequest(input *CreateCacheParamet // API operation CreateCacheParameterGroup for usage and error information. // // Returned Error Codes: -// * CacheParameterGroupQuotaExceeded +// * ErrCodeCacheParameterGroupQuotaExceededFault "CacheParameterGroupQuotaExceeded" // The request cannot be processed because it would exceed the maximum number // of cache security groups. // -// * CacheParameterGroupAlreadyExists +// * ErrCodeCacheParameterGroupAlreadyExistsFault "CacheParameterGroupAlreadyExists" // A cache parameter group with the requested name already exists. // -// * InvalidCacheParameterGroupState +// * ErrCodeInvalidCacheParameterGroupStateFault "InvalidCacheParameterGroupState" // The current state of the cache parameter group does not allow the requested // operation to occur. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateCacheParameterGroup func (c *ElastiCache) CreateCacheParameterGroup(input *CreateCacheParameterGroupInput) (*CreateCacheParameterGroupOutput, error) { req, out := c.CreateCacheParameterGroupRequest(input) err := req.Send() @@ -544,6 +552,7 @@ const opCreateCacheSecurityGroup = "CreateCacheSecurityGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateCacheSecurityGroup func (c *ElastiCache) CreateCacheSecurityGroupRequest(input *CreateCacheSecurityGroupInput) (req *request.Request, output *CreateCacheSecurityGroupOutput) { op := &request.Operation{ Name: opCreateCacheSecurityGroup, @@ -555,9 +564,8 @@ func (c *ElastiCache) CreateCacheSecurityGroupRequest(input *CreateCacheSecurity input = &CreateCacheSecurityGroupInput{} } - req = c.newRequest(op, input, output) output = &CreateCacheSecurityGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -579,19 +587,20 @@ func (c *ElastiCache) CreateCacheSecurityGroupRequest(input *CreateCacheSecurity // API operation CreateCacheSecurityGroup for usage and error information. // // Returned Error Codes: -// * CacheSecurityGroupAlreadyExists +// * ErrCodeCacheSecurityGroupAlreadyExistsFault "CacheSecurityGroupAlreadyExists" // A cache security group with the specified name already exists. // -// * QuotaExceeded.CacheSecurityGroup +// * ErrCodeCacheSecurityGroupQuotaExceededFault "QuotaExceeded.CacheSecurityGroup" // The request cannot be processed because it would exceed the allowed number // of cache security groups. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateCacheSecurityGroup func (c *ElastiCache) CreateCacheSecurityGroup(input *CreateCacheSecurityGroupInput) (*CreateCacheSecurityGroupOutput, error) { req, out := c.CreateCacheSecurityGroupRequest(input) err := req.Send() @@ -624,6 +633,7 @@ const opCreateCacheSubnetGroup = "CreateCacheSubnetGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateCacheSubnetGroup func (c *ElastiCache) CreateCacheSubnetGroupRequest(input *CreateCacheSubnetGroupInput) (req *request.Request, output *CreateCacheSubnetGroupOutput) { op := &request.Operation{ Name: opCreateCacheSubnetGroup, @@ -635,9 +645,8 @@ func (c *ElastiCache) CreateCacheSubnetGroupRequest(input *CreateCacheSubnetGrou input = &CreateCacheSubnetGroupInput{} } - req = c.newRequest(op, input, output) output = &CreateCacheSubnetGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -656,21 +665,22 @@ func (c *ElastiCache) CreateCacheSubnetGroupRequest(input *CreateCacheSubnetGrou // API operation CreateCacheSubnetGroup for usage and error information. // // Returned Error Codes: -// * CacheSubnetGroupAlreadyExists +// * ErrCodeCacheSubnetGroupAlreadyExistsFault "CacheSubnetGroupAlreadyExists" // The requested cache subnet group name is already in use by an existing cache // subnet group. // -// * CacheSubnetGroupQuotaExceeded +// * ErrCodeCacheSubnetGroupQuotaExceededFault "CacheSubnetGroupQuotaExceeded" // The request cannot be processed because it would exceed the allowed number // of cache subnet groups. // -// * CacheSubnetQuotaExceededFault +// * ErrCodeCacheSubnetQuotaExceededFault "CacheSubnetQuotaExceededFault" // The request cannot be processed because it would exceed the allowed number // of subnets in a cache subnet group. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // An invalid subnet identifier was specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateCacheSubnetGroup func (c *ElastiCache) CreateCacheSubnetGroup(input *CreateCacheSubnetGroupInput) (*CreateCacheSubnetGroupOutput, error) { req, out := c.CreateCacheSubnetGroupRequest(input) err := req.Send() @@ -703,6 +713,7 @@ const opCreateReplicationGroup = "CreateReplicationGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateReplicationGroup func (c *ElastiCache) CreateReplicationGroupRequest(input *CreateReplicationGroupInput) (req *request.Request, output *CreateReplicationGroupOutput) { op := &request.Operation{ Name: opCreateReplicationGroup, @@ -714,9 +725,8 @@ func (c *ElastiCache) CreateReplicationGroupRequest(input *CreateReplicationGrou input = &CreateReplicationGroupInput{} } - req = c.newRequest(op, input, output) output = &CreateReplicationGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -739,9 +749,9 @@ func (c *ElastiCache) CreateReplicationGroupRequest(input *CreateReplicationGrou // When a Redis (cluster mode disabled) replication group has been successfully // created, you can add one or more read replicas to it, up to a total of 5 // read replicas. You cannot alter a Redis (cluster mode enabled) replication -// group once it has been created. +// group after it has been created. // -// This operation is valid for Redis only. +// This operation is valid for Redis only. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -751,61 +761,62 @@ func (c *ElastiCache) CreateReplicationGroupRequest(input *CreateReplicationGrou // API operation CreateReplicationGroup for usage and error information. // // Returned Error Codes: -// * CacheClusterNotFound +// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound" // The requested cache cluster ID does not refer to an existing cache cluster. // -// * InvalidCacheClusterState +// * ErrCodeInvalidCacheClusterStateFault "InvalidCacheClusterState" // The requested cache cluster is not in the available state. // -// * ReplicationGroupAlreadyExists +// * ErrCodeReplicationGroupAlreadyExistsFault "ReplicationGroupAlreadyExists" // The specified replication group already exists. // -// * InsufficientCacheClusterCapacity +// * ErrCodeInsufficientCacheClusterCapacityFault "InsufficientCacheClusterCapacity" // The requested cache node type is not available in the specified Availability // Zone. // -// * CacheSecurityGroupNotFound +// * ErrCodeCacheSecurityGroupNotFoundFault "CacheSecurityGroupNotFound" // The requested cache security group name does not refer to an existing cache // security group. // -// * CacheSubnetGroupNotFoundFault +// * ErrCodeCacheSubnetGroupNotFoundFault "CacheSubnetGroupNotFoundFault" // The requested cache subnet group name does not refer to an existing cache // subnet group. // -// * ClusterQuotaForCustomerExceeded +// * ErrCodeClusterQuotaForCustomerExceededFault "ClusterQuotaForCustomerExceeded" // The request cannot be processed because it would exceed the allowed number // of cache clusters per customer. // -// * NodeQuotaForClusterExceeded +// * ErrCodeNodeQuotaForClusterExceededFault "NodeQuotaForClusterExceeded" // The request cannot be processed because it would exceed the allowed number // of cache nodes in a single cache cluster. // -// * NodeQuotaForCustomerExceeded +// * ErrCodeNodeQuotaForCustomerExceededFault "NodeQuotaForCustomerExceeded" // The request cannot be processed because it would exceed the allowed number // of cache nodes per customer. // -// * CacheParameterGroupNotFound +// * ErrCodeCacheParameterGroupNotFoundFault "CacheParameterGroupNotFound" // The requested cache parameter group name does not refer to an existing cache // parameter group. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // The VPC network is in an invalid state. // -// * TagQuotaPerResourceExceeded +// * ErrCodeTagQuotaPerResourceExceeded "TagQuotaPerResourceExceeded" // The request cannot be processed because it would cause the resource to have // more than the allowed number of tags. The maximum number of tags permitted // on a resource is 10. // -// * NodeGroupsPerReplicationGroupQuotaExceeded +// * ErrCodeNodeGroupsPerReplicationGroupQuotaExceededFault "NodeGroupsPerReplicationGroupQuotaExceeded" // The request cannot be processed because it would exceed the maximum of 15 // node groups (shards) in a single replication group. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateReplicationGroup func (c *ElastiCache) CreateReplicationGroup(input *CreateReplicationGroupInput) (*CreateReplicationGroupOutput, error) { req, out := c.CreateReplicationGroupRequest(input) err := req.Send() @@ -838,6 +849,7 @@ const opCreateSnapshot = "CreateSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateSnapshot func (c *ElastiCache) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Request, output *CreateSnapshotOutput) { op := &request.Operation{ Name: opCreateSnapshot, @@ -849,9 +861,8 @@ func (c *ElastiCache) CreateSnapshotRequest(input *CreateSnapshotInput) (req *re input = &CreateSnapshotInput{} } - req = c.newRequest(op, input, output) output = &CreateSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -860,7 +871,7 @@ func (c *ElastiCache) CreateSnapshotRequest(input *CreateSnapshotInput) (req *re // Creates a copy of an entire cache cluster or replication group at a specific // moment in time. // -// This operation is valid for Redis only. +// This operation is valid for Redis only. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -870,42 +881,43 @@ func (c *ElastiCache) CreateSnapshotRequest(input *CreateSnapshotInput) (req *re // API operation CreateSnapshot for usage and error information. // // Returned Error Codes: -// * SnapshotAlreadyExistsFault +// * ErrCodeSnapshotAlreadyExistsFault "SnapshotAlreadyExistsFault" // You already have a snapshot with the given name. // -// * CacheClusterNotFound +// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound" // The requested cache cluster ID does not refer to an existing cache cluster. // -// * ReplicationGroupNotFoundFault +// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault" // The specified replication group does not exist. // -// * InvalidCacheClusterState +// * ErrCodeInvalidCacheClusterStateFault "InvalidCacheClusterState" // The requested cache cluster is not in the available state. // -// * InvalidReplicationGroupState +// * ErrCodeInvalidReplicationGroupStateFault "InvalidReplicationGroupState" // The requested replication group is not in the available state. // -// * SnapshotQuotaExceededFault +// * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceededFault" // The request cannot be processed because it would exceed the maximum number // of snapshots. // -// * SnapshotFeatureNotSupportedFault +// * ErrCodeSnapshotFeatureNotSupportedFault "SnapshotFeatureNotSupportedFault" // You attempted one of the following operations: // -// Creating a snapshot of a Redis cache cluster running on a cache.t1.micro -// cache node. +// * Creating a snapshot of a Redis cache cluster running on a cache.t1.micro +// cache node. // -// Creating a snapshot of a cache cluster that is running Memcached rather -// than Redis. +// * Creating a snapshot of a cache cluster that is running Memcached rather +// than Redis. // -// Neither of these are supported by ElastiCache. +// Neither of these are supported by ElastiCache. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateSnapshot func (c *ElastiCache) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error) { req, out := c.CreateSnapshotRequest(input) err := req.Send() @@ -938,6 +950,7 @@ const opDeleteCacheCluster = "DeleteCacheCluster" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheCluster func (c *ElastiCache) DeleteCacheClusterRequest(input *DeleteCacheClusterInput) (req *request.Request, output *DeleteCacheClusterOutput) { op := &request.Operation{ Name: opDeleteCacheCluster, @@ -949,9 +962,8 @@ func (c *ElastiCache) DeleteCacheClusterRequest(input *DeleteCacheClusterInput) input = &DeleteCacheClusterInput{} } - req = c.newRequest(op, input, output) output = &DeleteCacheClusterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -968,7 +980,7 @@ func (c *ElastiCache) DeleteCacheClusterRequest(input *DeleteCacheClusterInput) // mode enabled or a cache cluster from a Redis (cluster mode enabled) replication // group. // -// Due to current limitations on Redis (cluster mode disabled), this operation +// Due to current limitations on Redis (cluster mode disabled), this operation // or parameter is not supported on Redis (cluster mode enabled) replication // groups. // @@ -980,36 +992,37 @@ func (c *ElastiCache) DeleteCacheClusterRequest(input *DeleteCacheClusterInput) // API operation DeleteCacheCluster for usage and error information. // // Returned Error Codes: -// * CacheClusterNotFound +// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound" // The requested cache cluster ID does not refer to an existing cache cluster. // -// * InvalidCacheClusterState +// * ErrCodeInvalidCacheClusterStateFault "InvalidCacheClusterState" // The requested cache cluster is not in the available state. // -// * SnapshotAlreadyExistsFault +// * ErrCodeSnapshotAlreadyExistsFault "SnapshotAlreadyExistsFault" // You already have a snapshot with the given name. // -// * SnapshotFeatureNotSupportedFault +// * ErrCodeSnapshotFeatureNotSupportedFault "SnapshotFeatureNotSupportedFault" // You attempted one of the following operations: // -// Creating a snapshot of a Redis cache cluster running on a cache.t1.micro -// cache node. +// * Creating a snapshot of a Redis cache cluster running on a cache.t1.micro +// cache node. // -// Creating a snapshot of a cache cluster that is running Memcached rather -// than Redis. +// * Creating a snapshot of a cache cluster that is running Memcached rather +// than Redis. // -// Neither of these are supported by ElastiCache. +// Neither of these are supported by ElastiCache. // -// * SnapshotQuotaExceededFault +// * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceededFault" // The request cannot be processed because it would exceed the maximum number // of snapshots. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheCluster func (c *ElastiCache) DeleteCacheCluster(input *DeleteCacheClusterInput) (*DeleteCacheClusterOutput, error) { req, out := c.DeleteCacheClusterRequest(input) err := req.Send() @@ -1042,6 +1055,7 @@ const opDeleteCacheParameterGroup = "DeleteCacheParameterGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheParameterGroup func (c *ElastiCache) DeleteCacheParameterGroupRequest(input *DeleteCacheParameterGroupInput) (req *request.Request, output *DeleteCacheParameterGroupOutput) { op := &request.Operation{ Name: opDeleteCacheParameterGroup, @@ -1053,11 +1067,10 @@ func (c *ElastiCache) DeleteCacheParameterGroupRequest(input *DeleteCacheParamet input = &DeleteCacheParameterGroupInput{} } + output = &DeleteCacheParameterGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteCacheParameterGroupOutput{} - req.Data = output return } @@ -1074,20 +1087,21 @@ func (c *ElastiCache) DeleteCacheParameterGroupRequest(input *DeleteCacheParamet // API operation DeleteCacheParameterGroup for usage and error information. // // Returned Error Codes: -// * InvalidCacheParameterGroupState +// * ErrCodeInvalidCacheParameterGroupStateFault "InvalidCacheParameterGroupState" // The current state of the cache parameter group does not allow the requested // operation to occur. // -// * CacheParameterGroupNotFound +// * ErrCodeCacheParameterGroupNotFoundFault "CacheParameterGroupNotFound" // The requested cache parameter group name does not refer to an existing cache // parameter group. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheParameterGroup func (c *ElastiCache) DeleteCacheParameterGroup(input *DeleteCacheParameterGroupInput) (*DeleteCacheParameterGroupOutput, error) { req, out := c.DeleteCacheParameterGroupRequest(input) err := req.Send() @@ -1120,6 +1134,7 @@ const opDeleteCacheSecurityGroup = "DeleteCacheSecurityGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheSecurityGroup func (c *ElastiCache) DeleteCacheSecurityGroupRequest(input *DeleteCacheSecurityGroupInput) (req *request.Request, output *DeleteCacheSecurityGroupOutput) { op := &request.Operation{ Name: opDeleteCacheSecurityGroup, @@ -1131,11 +1146,10 @@ func (c *ElastiCache) DeleteCacheSecurityGroupRequest(input *DeleteCacheSecurity input = &DeleteCacheSecurityGroupInput{} } + output = &DeleteCacheSecurityGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteCacheSecurityGroupOutput{} - req.Data = output return } @@ -1143,7 +1157,7 @@ func (c *ElastiCache) DeleteCacheSecurityGroupRequest(input *DeleteCacheSecurity // // Deletes a cache security group. // -// You cannot delete a cache security group if it is associated with any cache +// You cannot delete a cache security group if it is associated with any cache // clusters. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1154,19 +1168,20 @@ func (c *ElastiCache) DeleteCacheSecurityGroupRequest(input *DeleteCacheSecurity // API operation DeleteCacheSecurityGroup for usage and error information. // // Returned Error Codes: -// * InvalidCacheSecurityGroupState +// * ErrCodeInvalidCacheSecurityGroupStateFault "InvalidCacheSecurityGroupState" // The current state of the cache security group does not allow deletion. // -// * CacheSecurityGroupNotFound +// * ErrCodeCacheSecurityGroupNotFoundFault "CacheSecurityGroupNotFound" // The requested cache security group name does not refer to an existing cache // security group. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheSecurityGroup func (c *ElastiCache) DeleteCacheSecurityGroup(input *DeleteCacheSecurityGroupInput) (*DeleteCacheSecurityGroupOutput, error) { req, out := c.DeleteCacheSecurityGroupRequest(input) err := req.Send() @@ -1199,6 +1214,7 @@ const opDeleteCacheSubnetGroup = "DeleteCacheSubnetGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheSubnetGroup func (c *ElastiCache) DeleteCacheSubnetGroupRequest(input *DeleteCacheSubnetGroupInput) (req *request.Request, output *DeleteCacheSubnetGroupOutput) { op := &request.Operation{ Name: opDeleteCacheSubnetGroup, @@ -1210,11 +1226,10 @@ func (c *ElastiCache) DeleteCacheSubnetGroupRequest(input *DeleteCacheSubnetGrou input = &DeleteCacheSubnetGroupInput{} } + output = &DeleteCacheSubnetGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteCacheSubnetGroupOutput{} - req.Data = output return } @@ -1222,7 +1237,7 @@ func (c *ElastiCache) DeleteCacheSubnetGroupRequest(input *DeleteCacheSubnetGrou // // Deletes a cache subnet group. // -// You cannot delete a cache subnet group if it is associated with any cache +// You cannot delete a cache subnet group if it is associated with any cache // clusters. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1233,13 +1248,14 @@ func (c *ElastiCache) DeleteCacheSubnetGroupRequest(input *DeleteCacheSubnetGrou // API operation DeleteCacheSubnetGroup for usage and error information. // // Returned Error Codes: -// * CacheSubnetGroupInUse +// * ErrCodeCacheSubnetGroupInUse "CacheSubnetGroupInUse" // The requested cache subnet group is currently in use. // -// * CacheSubnetGroupNotFoundFault +// * ErrCodeCacheSubnetGroupNotFoundFault "CacheSubnetGroupNotFoundFault" // The requested cache subnet group name does not refer to an existing cache // subnet group. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheSubnetGroup func (c *ElastiCache) DeleteCacheSubnetGroup(input *DeleteCacheSubnetGroupInput) (*DeleteCacheSubnetGroupOutput, error) { req, out := c.DeleteCacheSubnetGroupRequest(input) err := req.Send() @@ -1272,6 +1288,7 @@ const opDeleteReplicationGroup = "DeleteReplicationGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteReplicationGroup func (c *ElastiCache) DeleteReplicationGroupRequest(input *DeleteReplicationGroupInput) (req *request.Request, output *DeleteReplicationGroupOutput) { op := &request.Operation{ Name: opDeleteReplicationGroup, @@ -1283,9 +1300,8 @@ func (c *ElastiCache) DeleteReplicationGroupRequest(input *DeleteReplicationGrou input = &DeleteReplicationGroupInput{} } - req = c.newRequest(op, input, output) output = &DeleteReplicationGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1301,7 +1317,7 @@ func (c *ElastiCache) DeleteReplicationGroupRequest(input *DeleteReplicationGrou // immediately begins deleting the selected resources; you cannot cancel or // revert this operation. // -// This operation is valid for Redis only. +// This operation is valid for Redis only. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1311,36 +1327,37 @@ func (c *ElastiCache) DeleteReplicationGroupRequest(input *DeleteReplicationGrou // API operation DeleteReplicationGroup for usage and error information. // // Returned Error Codes: -// * ReplicationGroupNotFoundFault +// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault" // The specified replication group does not exist. // -// * InvalidReplicationGroupState +// * ErrCodeInvalidReplicationGroupStateFault "InvalidReplicationGroupState" // The requested replication group is not in the available state. // -// * SnapshotAlreadyExistsFault +// * ErrCodeSnapshotAlreadyExistsFault "SnapshotAlreadyExistsFault" // You already have a snapshot with the given name. // -// * SnapshotFeatureNotSupportedFault +// * ErrCodeSnapshotFeatureNotSupportedFault "SnapshotFeatureNotSupportedFault" // You attempted one of the following operations: // -// Creating a snapshot of a Redis cache cluster running on a cache.t1.micro -// cache node. +// * Creating a snapshot of a Redis cache cluster running on a cache.t1.micro +// cache node. // -// Creating a snapshot of a cache cluster that is running Memcached rather -// than Redis. +// * Creating a snapshot of a cache cluster that is running Memcached rather +// than Redis. // -// Neither of these are supported by ElastiCache. +// Neither of these are supported by ElastiCache. // -// * SnapshotQuotaExceededFault +// * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceededFault" // The request cannot be processed because it would exceed the maximum number // of snapshots. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteReplicationGroup func (c *ElastiCache) DeleteReplicationGroup(input *DeleteReplicationGroupInput) (*DeleteReplicationGroupOutput, error) { req, out := c.DeleteReplicationGroupRequest(input) err := req.Send() @@ -1373,6 +1390,7 @@ const opDeleteSnapshot = "DeleteSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteSnapshot func (c *ElastiCache) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *request.Request, output *DeleteSnapshotOutput) { op := &request.Operation{ Name: opDeleteSnapshot, @@ -1384,9 +1402,8 @@ func (c *ElastiCache) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *re input = &DeleteSnapshotInput{} } - req = c.newRequest(op, input, output) output = &DeleteSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1396,7 +1413,7 @@ func (c *ElastiCache) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *re // this operation, ElastiCache immediately begins deleting the snapshot; you // cannot cancel or revert this operation. // -// This operation is valid for Redis only. +// This operation is valid for Redis only. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1406,19 +1423,20 @@ func (c *ElastiCache) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *re // API operation DeleteSnapshot for usage and error information. // // Returned Error Codes: -// * SnapshotNotFoundFault +// * ErrCodeSnapshotNotFoundFault "SnapshotNotFoundFault" // The requested snapshot name does not refer to an existing snapshot. // -// * InvalidSnapshotState +// * ErrCodeInvalidSnapshotStateFault "InvalidSnapshotState" // The current state of the snapshot does not allow the requested operation // to occur. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteSnapshot func (c *ElastiCache) DeleteSnapshot(input *DeleteSnapshotInput) (*DeleteSnapshotOutput, error) { req, out := c.DeleteSnapshotRequest(input) err := req.Send() @@ -1451,6 +1469,7 @@ const opDescribeCacheClusters = "DescribeCacheClusters" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheClusters func (c *ElastiCache) DescribeCacheClustersRequest(input *DescribeCacheClustersInput) (req *request.Request, output *DescribeCacheClustersOutput) { op := &request.Operation{ Name: opDescribeCacheClusters, @@ -1468,9 +1487,8 @@ func (c *ElastiCache) DescribeCacheClustersRequest(input *DescribeCacheClustersI input = &DescribeCacheClustersInput{} } - req = c.newRequest(op, input, output) output = &DescribeCacheClustersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1485,11 +1503,11 @@ func (c *ElastiCache) DescribeCacheClustersRequest(input *DescribeCacheClustersI // about the cache nodes associated with the cache clusters. These details include // the DNS address and port for the cache node endpoint. // -// If the cluster is in the CREATING state, only cluster-level information -// is displayed until all of the nodes are successfully provisioned. +// If the cluster is in the CREATING state, only cluster-level information is +// displayed until all of the nodes are successfully provisioned. // -// If the cluster is in the DELETING state, only cluster-level information -// is displayed. +// If the cluster is in the DELETING state, only cluster-level information is +// displayed. // // If cache nodes are currently being added to the cache cluster, node endpoint // information and creation time for the additional nodes are not displayed @@ -1507,15 +1525,16 @@ func (c *ElastiCache) DescribeCacheClustersRequest(input *DescribeCacheClustersI // API operation DescribeCacheClusters for usage and error information. // // Returned Error Codes: -// * CacheClusterNotFound +// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound" // The requested cache cluster ID does not refer to an existing cache cluster. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheClusters func (c *ElastiCache) DescribeCacheClusters(input *DescribeCacheClustersInput) (*DescribeCacheClustersOutput, error) { req, out := c.DescribeCacheClustersRequest(input) err := req.Send() @@ -1573,6 +1592,7 @@ const opDescribeCacheEngineVersions = "DescribeCacheEngineVersions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheEngineVersions func (c *ElastiCache) DescribeCacheEngineVersionsRequest(input *DescribeCacheEngineVersionsInput) (req *request.Request, output *DescribeCacheEngineVersionsOutput) { op := &request.Operation{ Name: opDescribeCacheEngineVersions, @@ -1590,9 +1610,8 @@ func (c *ElastiCache) DescribeCacheEngineVersionsRequest(input *DescribeCacheEng input = &DescribeCacheEngineVersionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeCacheEngineVersionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1606,6 +1625,7 @@ func (c *ElastiCache) DescribeCacheEngineVersionsRequest(input *DescribeCacheEng // // See the AWS API reference guide for Amazon ElastiCache's // API operation DescribeCacheEngineVersions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheEngineVersions func (c *ElastiCache) DescribeCacheEngineVersions(input *DescribeCacheEngineVersionsInput) (*DescribeCacheEngineVersionsOutput, error) { req, out := c.DescribeCacheEngineVersionsRequest(input) err := req.Send() @@ -1663,6 +1683,7 @@ const opDescribeCacheParameterGroups = "DescribeCacheParameterGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheParameterGroups func (c *ElastiCache) DescribeCacheParameterGroupsRequest(input *DescribeCacheParameterGroupsInput) (req *request.Request, output *DescribeCacheParameterGroupsOutput) { op := &request.Operation{ Name: opDescribeCacheParameterGroups, @@ -1680,9 +1701,8 @@ func (c *ElastiCache) DescribeCacheParameterGroupsRequest(input *DescribeCachePa input = &DescribeCacheParameterGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeCacheParameterGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1700,16 +1720,17 @@ func (c *ElastiCache) DescribeCacheParameterGroupsRequest(input *DescribeCachePa // API operation DescribeCacheParameterGroups for usage and error information. // // Returned Error Codes: -// * CacheParameterGroupNotFound +// * ErrCodeCacheParameterGroupNotFoundFault "CacheParameterGroupNotFound" // The requested cache parameter group name does not refer to an existing cache // parameter group. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheParameterGroups func (c *ElastiCache) DescribeCacheParameterGroups(input *DescribeCacheParameterGroupsInput) (*DescribeCacheParameterGroupsOutput, error) { req, out := c.DescribeCacheParameterGroupsRequest(input) err := req.Send() @@ -1767,6 +1788,7 @@ const opDescribeCacheParameters = "DescribeCacheParameters" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheParameters func (c *ElastiCache) DescribeCacheParametersRequest(input *DescribeCacheParametersInput) (req *request.Request, output *DescribeCacheParametersOutput) { op := &request.Operation{ Name: opDescribeCacheParameters, @@ -1784,9 +1806,8 @@ func (c *ElastiCache) DescribeCacheParametersRequest(input *DescribeCacheParamet input = &DescribeCacheParametersInput{} } - req = c.newRequest(op, input, output) output = &DescribeCacheParametersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1802,16 +1823,17 @@ func (c *ElastiCache) DescribeCacheParametersRequest(input *DescribeCacheParamet // API operation DescribeCacheParameters for usage and error information. // // Returned Error Codes: -// * CacheParameterGroupNotFound +// * ErrCodeCacheParameterGroupNotFoundFault "CacheParameterGroupNotFound" // The requested cache parameter group name does not refer to an existing cache // parameter group. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheParameters func (c *ElastiCache) DescribeCacheParameters(input *DescribeCacheParametersInput) (*DescribeCacheParametersOutput, error) { req, out := c.DescribeCacheParametersRequest(input) err := req.Send() @@ -1869,6 +1891,7 @@ const opDescribeCacheSecurityGroups = "DescribeCacheSecurityGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheSecurityGroups func (c *ElastiCache) DescribeCacheSecurityGroupsRequest(input *DescribeCacheSecurityGroupsInput) (req *request.Request, output *DescribeCacheSecurityGroupsOutput) { op := &request.Operation{ Name: opDescribeCacheSecurityGroups, @@ -1886,9 +1909,8 @@ func (c *ElastiCache) DescribeCacheSecurityGroupsRequest(input *DescribeCacheSec input = &DescribeCacheSecurityGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeCacheSecurityGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1905,16 +1927,17 @@ func (c *ElastiCache) DescribeCacheSecurityGroupsRequest(input *DescribeCacheSec // API operation DescribeCacheSecurityGroups for usage and error information. // // Returned Error Codes: -// * CacheSecurityGroupNotFound +// * ErrCodeCacheSecurityGroupNotFoundFault "CacheSecurityGroupNotFound" // The requested cache security group name does not refer to an existing cache // security group. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheSecurityGroups func (c *ElastiCache) DescribeCacheSecurityGroups(input *DescribeCacheSecurityGroupsInput) (*DescribeCacheSecurityGroupsOutput, error) { req, out := c.DescribeCacheSecurityGroupsRequest(input) err := req.Send() @@ -1972,6 +1995,7 @@ const opDescribeCacheSubnetGroups = "DescribeCacheSubnetGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheSubnetGroups func (c *ElastiCache) DescribeCacheSubnetGroupsRequest(input *DescribeCacheSubnetGroupsInput) (req *request.Request, output *DescribeCacheSubnetGroupsOutput) { op := &request.Operation{ Name: opDescribeCacheSubnetGroups, @@ -1989,9 +2013,8 @@ func (c *ElastiCache) DescribeCacheSubnetGroupsRequest(input *DescribeCacheSubne input = &DescribeCacheSubnetGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeCacheSubnetGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2008,10 +2031,11 @@ func (c *ElastiCache) DescribeCacheSubnetGroupsRequest(input *DescribeCacheSubne // API operation DescribeCacheSubnetGroups for usage and error information. // // Returned Error Codes: -// * CacheSubnetGroupNotFoundFault +// * ErrCodeCacheSubnetGroupNotFoundFault "CacheSubnetGroupNotFoundFault" // The requested cache subnet group name does not refer to an existing cache // subnet group. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheSubnetGroups func (c *ElastiCache) DescribeCacheSubnetGroups(input *DescribeCacheSubnetGroupsInput) (*DescribeCacheSubnetGroupsOutput, error) { req, out := c.DescribeCacheSubnetGroupsRequest(input) err := req.Send() @@ -2069,6 +2093,7 @@ const opDescribeEngineDefaultParameters = "DescribeEngineDefaultParameters" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeEngineDefaultParameters func (c *ElastiCache) DescribeEngineDefaultParametersRequest(input *DescribeEngineDefaultParametersInput) (req *request.Request, output *DescribeEngineDefaultParametersOutput) { op := &request.Operation{ Name: opDescribeEngineDefaultParameters, @@ -2086,9 +2111,8 @@ func (c *ElastiCache) DescribeEngineDefaultParametersRequest(input *DescribeEngi input = &DescribeEngineDefaultParametersInput{} } - req = c.newRequest(op, input, output) output = &DescribeEngineDefaultParametersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2105,12 +2129,13 @@ func (c *ElastiCache) DescribeEngineDefaultParametersRequest(input *DescribeEngi // API operation DescribeEngineDefaultParameters for usage and error information. // // Returned Error Codes: -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeEngineDefaultParameters func (c *ElastiCache) DescribeEngineDefaultParameters(input *DescribeEngineDefaultParametersInput) (*DescribeEngineDefaultParametersOutput, error) { req, out := c.DescribeEngineDefaultParametersRequest(input) err := req.Send() @@ -2168,6 +2193,7 @@ const opDescribeEvents = "DescribeEvents" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeEvents func (c *ElastiCache) DescribeEventsRequest(input *DescribeEventsInput) (req *request.Request, output *DescribeEventsOutput) { op := &request.Operation{ Name: opDescribeEvents, @@ -2185,9 +2211,8 @@ func (c *ElastiCache) DescribeEventsRequest(input *DescribeEventsInput) (req *re input = &DescribeEventsInput{} } - req = c.newRequest(op, input, output) output = &DescribeEventsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2209,12 +2234,13 @@ func (c *ElastiCache) DescribeEventsRequest(input *DescribeEventsInput) (req *re // API operation DescribeEvents for usage and error information. // // Returned Error Codes: -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeEvents func (c *ElastiCache) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) { req, out := c.DescribeEventsRequest(input) err := req.Send() @@ -2272,6 +2298,7 @@ const opDescribeReplicationGroups = "DescribeReplicationGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeReplicationGroups func (c *ElastiCache) DescribeReplicationGroupsRequest(input *DescribeReplicationGroupsInput) (req *request.Request, output *DescribeReplicationGroupsOutput) { op := &request.Operation{ Name: opDescribeReplicationGroups, @@ -2289,9 +2316,8 @@ func (c *ElastiCache) DescribeReplicationGroupsRequest(input *DescribeReplicatio input = &DescribeReplicationGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeReplicationGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2301,7 +2327,7 @@ func (c *ElastiCache) DescribeReplicationGroupsRequest(input *DescribeReplicatio // is specified, DescribeReplicationGroups returns information about all replication // groups. // -// This operation is valid for Redis only. +// This operation is valid for Redis only. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2311,15 +2337,16 @@ func (c *ElastiCache) DescribeReplicationGroupsRequest(input *DescribeReplicatio // API operation DescribeReplicationGroups for usage and error information. // // Returned Error Codes: -// * ReplicationGroupNotFoundFault +// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault" // The specified replication group does not exist. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeReplicationGroups func (c *ElastiCache) DescribeReplicationGroups(input *DescribeReplicationGroupsInput) (*DescribeReplicationGroupsOutput, error) { req, out := c.DescribeReplicationGroupsRequest(input) err := req.Send() @@ -2377,6 +2404,7 @@ const opDescribeReservedCacheNodes = "DescribeReservedCacheNodes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeReservedCacheNodes func (c *ElastiCache) DescribeReservedCacheNodesRequest(input *DescribeReservedCacheNodesInput) (req *request.Request, output *DescribeReservedCacheNodesOutput) { op := &request.Operation{ Name: opDescribeReservedCacheNodes, @@ -2394,9 +2422,8 @@ func (c *ElastiCache) DescribeReservedCacheNodesRequest(input *DescribeReservedC input = &DescribeReservedCacheNodesInput{} } - req = c.newRequest(op, input, output) output = &DescribeReservedCacheNodesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2413,15 +2440,16 @@ func (c *ElastiCache) DescribeReservedCacheNodesRequest(input *DescribeReservedC // API operation DescribeReservedCacheNodes for usage and error information. // // Returned Error Codes: -// * ReservedCacheNodeNotFound +// * ErrCodeReservedCacheNodeNotFoundFault "ReservedCacheNodeNotFound" // The requested reserved cache node was not found. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeReservedCacheNodes func (c *ElastiCache) DescribeReservedCacheNodes(input *DescribeReservedCacheNodesInput) (*DescribeReservedCacheNodesOutput, error) { req, out := c.DescribeReservedCacheNodesRequest(input) err := req.Send() @@ -2479,6 +2507,7 @@ const opDescribeReservedCacheNodesOfferings = "DescribeReservedCacheNodesOfferin // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeReservedCacheNodesOfferings func (c *ElastiCache) DescribeReservedCacheNodesOfferingsRequest(input *DescribeReservedCacheNodesOfferingsInput) (req *request.Request, output *DescribeReservedCacheNodesOfferingsOutput) { op := &request.Operation{ Name: opDescribeReservedCacheNodesOfferings, @@ -2496,9 +2525,8 @@ func (c *ElastiCache) DescribeReservedCacheNodesOfferingsRequest(input *Describe input = &DescribeReservedCacheNodesOfferingsInput{} } - req = c.newRequest(op, input, output) output = &DescribeReservedCacheNodesOfferingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2514,15 +2542,16 @@ func (c *ElastiCache) DescribeReservedCacheNodesOfferingsRequest(input *Describe // API operation DescribeReservedCacheNodesOfferings for usage and error information. // // Returned Error Codes: -// * ReservedCacheNodesOfferingNotFound +// * ErrCodeReservedCacheNodesOfferingNotFoundFault "ReservedCacheNodesOfferingNotFound" // The requested cache node offering does not exist. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeReservedCacheNodesOfferings func (c *ElastiCache) DescribeReservedCacheNodesOfferings(input *DescribeReservedCacheNodesOfferingsInput) (*DescribeReservedCacheNodesOfferingsOutput, error) { req, out := c.DescribeReservedCacheNodesOfferingsRequest(input) err := req.Send() @@ -2580,6 +2609,7 @@ const opDescribeSnapshots = "DescribeSnapshots" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeSnapshots func (c *ElastiCache) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *request.Request, output *DescribeSnapshotsOutput) { op := &request.Operation{ Name: opDescribeSnapshots, @@ -2597,9 +2627,8 @@ func (c *ElastiCache) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (r input = &DescribeSnapshotsInput{} } - req = c.newRequest(op, input, output) output = &DescribeSnapshotsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2610,7 +2639,7 @@ func (c *ElastiCache) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (r // describe a single snapshot, or just the snapshots associated with a particular // cache cluster. // -// This operation is valid for Redis only. +// This operation is valid for Redis only. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2620,18 +2649,19 @@ func (c *ElastiCache) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (r // API operation DescribeSnapshots for usage and error information. // // Returned Error Codes: -// * CacheClusterNotFound +// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound" // The requested cache cluster ID does not refer to an existing cache cluster. // -// * SnapshotNotFoundFault +// * ErrCodeSnapshotNotFoundFault "SnapshotNotFoundFault" // The requested snapshot name does not refer to an existing snapshot. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeSnapshots func (c *ElastiCache) DescribeSnapshots(input *DescribeSnapshotsInput) (*DescribeSnapshotsOutput, error) { req, out := c.DescribeSnapshotsRequest(input) err := req.Send() @@ -2689,6 +2719,7 @@ const opListAllowedNodeTypeModifications = "ListAllowedNodeTypeModifications" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ListAllowedNodeTypeModifications func (c *ElastiCache) ListAllowedNodeTypeModificationsRequest(input *ListAllowedNodeTypeModificationsInput) (req *request.Request, output *ListAllowedNodeTypeModificationsOutput) { op := &request.Operation{ Name: opListAllowedNodeTypeModifications, @@ -2700,9 +2731,8 @@ func (c *ElastiCache) ListAllowedNodeTypeModificationsRequest(input *ListAllowed input = &ListAllowedNodeTypeModificationsInput{} } - req = c.newRequest(op, input, output) output = &ListAllowedNodeTypeModificationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2723,18 +2753,19 @@ func (c *ElastiCache) ListAllowedNodeTypeModificationsRequest(input *ListAllowed // API operation ListAllowedNodeTypeModifications for usage and error information. // // Returned Error Codes: -// * CacheClusterNotFound +// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound" // The requested cache cluster ID does not refer to an existing cache cluster. // -// * ReplicationGroupNotFoundFault +// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault" // The specified replication group does not exist. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ListAllowedNodeTypeModifications func (c *ElastiCache) ListAllowedNodeTypeModifications(input *ListAllowedNodeTypeModificationsInput) (*ListAllowedNodeTypeModificationsOutput, error) { req, out := c.ListAllowedNodeTypeModificationsRequest(input) err := req.Send() @@ -2767,6 +2798,7 @@ const opListTagsForResource = "ListTagsForResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ListTagsForResource func (c *ElastiCache) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *TagListMessage) { op := &request.Operation{ Name: opListTagsForResource, @@ -2778,9 +2810,8 @@ func (c *ElastiCache) ListTagsForResourceRequest(input *ListTagsForResourceInput input = &ListTagsForResourceInput{} } - req = c.newRequest(op, input, output) output = &TagListMessage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2803,15 +2834,16 @@ func (c *ElastiCache) ListTagsForResourceRequest(input *ListTagsForResourceInput // API operation ListTagsForResource for usage and error information. // // Returned Error Codes: -// * CacheClusterNotFound +// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound" // The requested cache cluster ID does not refer to an existing cache cluster. // -// * SnapshotNotFoundFault +// * ErrCodeSnapshotNotFoundFault "SnapshotNotFoundFault" // The requested snapshot name does not refer to an existing snapshot. // -// * InvalidARN +// * ErrCodeInvalidARNFault "InvalidARN" // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ListTagsForResource func (c *ElastiCache) ListTagsForResource(input *ListTagsForResourceInput) (*TagListMessage, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -2844,6 +2876,7 @@ const opModifyCacheCluster = "ModifyCacheCluster" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheCluster func (c *ElastiCache) ModifyCacheClusterRequest(input *ModifyCacheClusterInput) (req *request.Request, output *ModifyCacheClusterOutput) { op := &request.Operation{ Name: opModifyCacheCluster, @@ -2855,9 +2888,8 @@ func (c *ElastiCache) ModifyCacheClusterRequest(input *ModifyCacheClusterInput) input = &ModifyCacheClusterInput{} } - req = c.newRequest(op, input, output) output = &ModifyCacheClusterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2875,44 +2907,45 @@ func (c *ElastiCache) ModifyCacheClusterRequest(input *ModifyCacheClusterInput) // API operation ModifyCacheCluster for usage and error information. // // Returned Error Codes: -// * InvalidCacheClusterState +// * ErrCodeInvalidCacheClusterStateFault "InvalidCacheClusterState" // The requested cache cluster is not in the available state. // -// * InvalidCacheSecurityGroupState +// * ErrCodeInvalidCacheSecurityGroupStateFault "InvalidCacheSecurityGroupState" // The current state of the cache security group does not allow deletion. // -// * InsufficientCacheClusterCapacity +// * ErrCodeInsufficientCacheClusterCapacityFault "InsufficientCacheClusterCapacity" // The requested cache node type is not available in the specified Availability // Zone. // -// * CacheClusterNotFound +// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound" // The requested cache cluster ID does not refer to an existing cache cluster. // -// * NodeQuotaForClusterExceeded +// * ErrCodeNodeQuotaForClusterExceededFault "NodeQuotaForClusterExceeded" // The request cannot be processed because it would exceed the allowed number // of cache nodes in a single cache cluster. // -// * NodeQuotaForCustomerExceeded +// * ErrCodeNodeQuotaForCustomerExceededFault "NodeQuotaForCustomerExceeded" // The request cannot be processed because it would exceed the allowed number // of cache nodes per customer. // -// * CacheSecurityGroupNotFound +// * ErrCodeCacheSecurityGroupNotFoundFault "CacheSecurityGroupNotFound" // The requested cache security group name does not refer to an existing cache // security group. // -// * CacheParameterGroupNotFound +// * ErrCodeCacheParameterGroupNotFoundFault "CacheParameterGroupNotFound" // The requested cache parameter group name does not refer to an existing cache // parameter group. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // The VPC network is in an invalid state. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheCluster func (c *ElastiCache) ModifyCacheCluster(input *ModifyCacheClusterInput) (*ModifyCacheClusterOutput, error) { req, out := c.ModifyCacheClusterRequest(input) err := req.Send() @@ -2945,6 +2978,7 @@ const opModifyCacheParameterGroup = "ModifyCacheParameterGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheParameterGroup func (c *ElastiCache) ModifyCacheParameterGroupRequest(input *ModifyCacheParameterGroupInput) (req *request.Request, output *CacheParameterGroupNameMessage) { op := &request.Operation{ Name: opModifyCacheParameterGroup, @@ -2956,9 +2990,8 @@ func (c *ElastiCache) ModifyCacheParameterGroupRequest(input *ModifyCacheParamet input = &ModifyCacheParameterGroupInput{} } - req = c.newRequest(op, input, output) output = &CacheParameterGroupNameMessage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2976,20 +3009,21 @@ func (c *ElastiCache) ModifyCacheParameterGroupRequest(input *ModifyCacheParamet // API operation ModifyCacheParameterGroup for usage and error information. // // Returned Error Codes: -// * CacheParameterGroupNotFound +// * ErrCodeCacheParameterGroupNotFoundFault "CacheParameterGroupNotFound" // The requested cache parameter group name does not refer to an existing cache // parameter group. // -// * InvalidCacheParameterGroupState +// * ErrCodeInvalidCacheParameterGroupStateFault "InvalidCacheParameterGroupState" // The current state of the cache parameter group does not allow the requested // operation to occur. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheParameterGroup func (c *ElastiCache) ModifyCacheParameterGroup(input *ModifyCacheParameterGroupInput) (*CacheParameterGroupNameMessage, error) { req, out := c.ModifyCacheParameterGroupRequest(input) err := req.Send() @@ -3022,6 +3056,7 @@ const opModifyCacheSubnetGroup = "ModifyCacheSubnetGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheSubnetGroup func (c *ElastiCache) ModifyCacheSubnetGroupRequest(input *ModifyCacheSubnetGroupInput) (req *request.Request, output *ModifyCacheSubnetGroupOutput) { op := &request.Operation{ Name: opModifyCacheSubnetGroup, @@ -3033,9 +3068,8 @@ func (c *ElastiCache) ModifyCacheSubnetGroupRequest(input *ModifyCacheSubnetGrou input = &ModifyCacheSubnetGroupInput{} } - req = c.newRequest(op, input, output) output = &ModifyCacheSubnetGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3051,20 +3085,21 @@ func (c *ElastiCache) ModifyCacheSubnetGroupRequest(input *ModifyCacheSubnetGrou // API operation ModifyCacheSubnetGroup for usage and error information. // // Returned Error Codes: -// * CacheSubnetGroupNotFoundFault +// * ErrCodeCacheSubnetGroupNotFoundFault "CacheSubnetGroupNotFoundFault" // The requested cache subnet group name does not refer to an existing cache // subnet group. // -// * CacheSubnetQuotaExceededFault +// * ErrCodeCacheSubnetQuotaExceededFault "CacheSubnetQuotaExceededFault" // The request cannot be processed because it would exceed the allowed number // of subnets in a cache subnet group. // -// * SubnetInUse +// * ErrCodeSubnetInUse "SubnetInUse" // The requested subnet is being used by another cache subnet group. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // An invalid subnet identifier was specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheSubnetGroup func (c *ElastiCache) ModifyCacheSubnetGroup(input *ModifyCacheSubnetGroupInput) (*ModifyCacheSubnetGroupOutput, error) { req, out := c.ModifyCacheSubnetGroupRequest(input) err := req.Send() @@ -3097,6 +3132,7 @@ const opModifyReplicationGroup = "ModifyReplicationGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyReplicationGroup func (c *ElastiCache) ModifyReplicationGroupRequest(input *ModifyReplicationGroupInput) (req *request.Request, output *ModifyReplicationGroupOutput) { op := &request.Operation{ Name: opModifyReplicationGroup, @@ -3108,9 +3144,8 @@ func (c *ElastiCache) ModifyReplicationGroupRequest(input *ModifyReplicationGrou input = &ModifyReplicationGroupInput{} } - req = c.newRequest(op, input, output) output = &ModifyReplicationGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3118,11 +3153,11 @@ func (c *ElastiCache) ModifyReplicationGroupRequest(input *ModifyReplicationGrou // // Modifies the settings for a replication group. // -// Due to current limitations on Redis (cluster mode disabled), this operation +// Due to current limitations on Redis (cluster mode disabled), this operation // or parameter is not supported on Redis (cluster mode enabled) replication // groups. // -// This operation is valid for Redis only. +// This operation is valid for Redis only. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3132,50 +3167,51 @@ func (c *ElastiCache) ModifyReplicationGroupRequest(input *ModifyReplicationGrou // API operation ModifyReplicationGroup for usage and error information. // // Returned Error Codes: -// * ReplicationGroupNotFoundFault +// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault" // The specified replication group does not exist. // -// * InvalidReplicationGroupState +// * ErrCodeInvalidReplicationGroupStateFault "InvalidReplicationGroupState" // The requested replication group is not in the available state. // -// * InvalidCacheClusterState +// * ErrCodeInvalidCacheClusterStateFault "InvalidCacheClusterState" // The requested cache cluster is not in the available state. // -// * InvalidCacheSecurityGroupState +// * ErrCodeInvalidCacheSecurityGroupStateFault "InvalidCacheSecurityGroupState" // The current state of the cache security group does not allow deletion. // -// * InsufficientCacheClusterCapacity +// * ErrCodeInsufficientCacheClusterCapacityFault "InsufficientCacheClusterCapacity" // The requested cache node type is not available in the specified Availability // Zone. // -// * CacheClusterNotFound +// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound" // The requested cache cluster ID does not refer to an existing cache cluster. // -// * NodeQuotaForClusterExceeded +// * ErrCodeNodeQuotaForClusterExceededFault "NodeQuotaForClusterExceeded" // The request cannot be processed because it would exceed the allowed number // of cache nodes in a single cache cluster. // -// * NodeQuotaForCustomerExceeded +// * ErrCodeNodeQuotaForCustomerExceededFault "NodeQuotaForCustomerExceeded" // The request cannot be processed because it would exceed the allowed number // of cache nodes per customer. // -// * CacheSecurityGroupNotFound +// * ErrCodeCacheSecurityGroupNotFoundFault "CacheSecurityGroupNotFound" // The requested cache security group name does not refer to an existing cache // security group. // -// * CacheParameterGroupNotFound +// * ErrCodeCacheParameterGroupNotFoundFault "CacheParameterGroupNotFound" // The requested cache parameter group name does not refer to an existing cache // parameter group. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // The VPC network is in an invalid state. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyReplicationGroup func (c *ElastiCache) ModifyReplicationGroup(input *ModifyReplicationGroupInput) (*ModifyReplicationGroupOutput, error) { req, out := c.ModifyReplicationGroupRequest(input) err := req.Send() @@ -3208,6 +3244,7 @@ const opPurchaseReservedCacheNodesOffering = "PurchaseReservedCacheNodesOffering // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/PurchaseReservedCacheNodesOffering func (c *ElastiCache) PurchaseReservedCacheNodesOfferingRequest(input *PurchaseReservedCacheNodesOfferingInput) (req *request.Request, output *PurchaseReservedCacheNodesOfferingOutput) { op := &request.Operation{ Name: opPurchaseReservedCacheNodesOffering, @@ -3219,9 +3256,8 @@ func (c *ElastiCache) PurchaseReservedCacheNodesOfferingRequest(input *PurchaseR input = &PurchaseReservedCacheNodesOfferingInput{} } - req = c.newRequest(op, input, output) output = &PurchaseReservedCacheNodesOfferingOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3237,22 +3273,23 @@ func (c *ElastiCache) PurchaseReservedCacheNodesOfferingRequest(input *PurchaseR // API operation PurchaseReservedCacheNodesOffering for usage and error information. // // Returned Error Codes: -// * ReservedCacheNodesOfferingNotFound +// * ErrCodeReservedCacheNodesOfferingNotFoundFault "ReservedCacheNodesOfferingNotFound" // The requested cache node offering does not exist. // -// * ReservedCacheNodeAlreadyExists +// * ErrCodeReservedCacheNodeAlreadyExistsFault "ReservedCacheNodeAlreadyExists" // You already have a reservation with the given identifier. // -// * ReservedCacheNodeQuotaExceeded +// * ErrCodeReservedCacheNodeQuotaExceededFault "ReservedCacheNodeQuotaExceeded" // The request cannot be processed because it would exceed the user's cache // node quota. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/PurchaseReservedCacheNodesOffering func (c *ElastiCache) PurchaseReservedCacheNodesOffering(input *PurchaseReservedCacheNodesOfferingInput) (*PurchaseReservedCacheNodesOfferingOutput, error) { req, out := c.PurchaseReservedCacheNodesOfferingRequest(input) err := req.Send() @@ -3285,6 +3322,7 @@ const opRebootCacheCluster = "RebootCacheCluster" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RebootCacheCluster func (c *ElastiCache) RebootCacheClusterRequest(input *RebootCacheClusterInput) (req *request.Request, output *RebootCacheClusterOutput) { op := &request.Operation{ Name: opRebootCacheCluster, @@ -3296,9 +3334,8 @@ func (c *ElastiCache) RebootCacheClusterRequest(input *RebootCacheClusterInput) input = &RebootCacheClusterInput{} } - req = c.newRequest(op, input, output) output = &RebootCacheClusterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3323,12 +3360,13 @@ func (c *ElastiCache) RebootCacheClusterRequest(input *RebootCacheClusterInput) // API operation RebootCacheCluster for usage and error information. // // Returned Error Codes: -// * InvalidCacheClusterState +// * ErrCodeInvalidCacheClusterStateFault "InvalidCacheClusterState" // The requested cache cluster is not in the available state. // -// * CacheClusterNotFound +// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound" // The requested cache cluster ID does not refer to an existing cache cluster. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RebootCacheCluster func (c *ElastiCache) RebootCacheCluster(input *RebootCacheClusterInput) (*RebootCacheClusterOutput, error) { req, out := c.RebootCacheClusterRequest(input) err := req.Send() @@ -3361,6 +3399,7 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RemoveTagsFromResource func (c *ElastiCache) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *TagListMessage) { op := &request.Operation{ Name: opRemoveTagsFromResource, @@ -3372,9 +3411,8 @@ func (c *ElastiCache) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourc input = &RemoveTagsFromResourceInput{} } - req = c.newRequest(op, input, output) output = &TagListMessage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3390,18 +3428,19 @@ func (c *ElastiCache) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourc // API operation RemoveTagsFromResource for usage and error information. // // Returned Error Codes: -// * CacheClusterNotFound +// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound" // The requested cache cluster ID does not refer to an existing cache cluster. // -// * SnapshotNotFoundFault +// * ErrCodeSnapshotNotFoundFault "SnapshotNotFoundFault" // The requested snapshot name does not refer to an existing snapshot. // -// * InvalidARN +// * ErrCodeInvalidARNFault "InvalidARN" // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * TagNotFound +// * ErrCodeTagNotFoundFault "TagNotFound" // The requested tag was not found on this resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RemoveTagsFromResource func (c *ElastiCache) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*TagListMessage, error) { req, out := c.RemoveTagsFromResourceRequest(input) err := req.Send() @@ -3434,6 +3473,7 @@ const opResetCacheParameterGroup = "ResetCacheParameterGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ResetCacheParameterGroup func (c *ElastiCache) ResetCacheParameterGroupRequest(input *ResetCacheParameterGroupInput) (req *request.Request, output *CacheParameterGroupNameMessage) { op := &request.Operation{ Name: opResetCacheParameterGroup, @@ -3445,9 +3485,8 @@ func (c *ElastiCache) ResetCacheParameterGroupRequest(input *ResetCacheParameter input = &ResetCacheParameterGroupInput{} } - req = c.newRequest(op, input, output) output = &CacheParameterGroupNameMessage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3466,20 +3505,21 @@ func (c *ElastiCache) ResetCacheParameterGroupRequest(input *ResetCacheParameter // API operation ResetCacheParameterGroup for usage and error information. // // Returned Error Codes: -// * InvalidCacheParameterGroupState +// * ErrCodeInvalidCacheParameterGroupStateFault "InvalidCacheParameterGroupState" // The current state of the cache parameter group does not allow the requested // operation to occur. // -// * CacheParameterGroupNotFound +// * ErrCodeCacheParameterGroupNotFoundFault "CacheParameterGroupNotFound" // The requested cache parameter group name does not refer to an existing cache // parameter group. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ResetCacheParameterGroup func (c *ElastiCache) ResetCacheParameterGroup(input *ResetCacheParameterGroupInput) (*CacheParameterGroupNameMessage, error) { req, out := c.ResetCacheParameterGroupRequest(input) err := req.Send() @@ -3512,6 +3552,7 @@ const opRevokeCacheSecurityGroupIngress = "RevokeCacheSecurityGroupIngress" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RevokeCacheSecurityGroupIngress func (c *ElastiCache) RevokeCacheSecurityGroupIngressRequest(input *RevokeCacheSecurityGroupIngressInput) (req *request.Request, output *RevokeCacheSecurityGroupIngressOutput) { op := &request.Operation{ Name: opRevokeCacheSecurityGroupIngress, @@ -3523,9 +3564,8 @@ func (c *ElastiCache) RevokeCacheSecurityGroupIngressRequest(input *RevokeCacheS input = &RevokeCacheSecurityGroupIngressInput{} } - req = c.newRequest(op, input, output) output = &RevokeCacheSecurityGroupIngressOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3542,23 +3582,24 @@ func (c *ElastiCache) RevokeCacheSecurityGroupIngressRequest(input *RevokeCacheS // API operation RevokeCacheSecurityGroupIngress for usage and error information. // // Returned Error Codes: -// * CacheSecurityGroupNotFound +// * ErrCodeCacheSecurityGroupNotFoundFault "CacheSecurityGroupNotFound" // The requested cache security group name does not refer to an existing cache // security group. // -// * AuthorizationNotFound +// * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound" // The specified Amazon EC2 security group is not authorized for the specified // cache security group. // -// * InvalidCacheSecurityGroupState +// * ErrCodeInvalidCacheSecurityGroupStateFault "InvalidCacheSecurityGroupState" // The current state of the cache security group does not allow deletion. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidParameterCombination +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" // Two or more incompatible parameters were specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RevokeCacheSecurityGroupIngress func (c *ElastiCache) RevokeCacheSecurityGroupIngress(input *RevokeCacheSecurityGroupIngressInput) (*RevokeCacheSecurityGroupIngressOutput, error) { req, out := c.RevokeCacheSecurityGroupIngressRequest(input) err := req.Send() @@ -3566,6 +3607,7 @@ func (c *ElastiCache) RevokeCacheSecurityGroupIngress(input *RevokeCacheSecurity } // Represents the input of an AddTagsToResource operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/AddTagsToResourceMessage type AddTagsToResourceInput struct { _ struct{} `type:"structure"` @@ -3612,7 +3654,20 @@ func (s *AddTagsToResourceInput) Validate() error { return nil } +// SetResourceName sets the ResourceName field's value. +func (s *AddTagsToResourceInput) SetResourceName(v string) *AddTagsToResourceInput { + s.ResourceName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsToResourceInput) SetTags(v []*Tag) *AddTagsToResourceInput { + s.Tags = v + return s +} + // Represents the input of an AuthorizeCacheSecurityGroupIngress operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/AuthorizeCacheSecurityGroupIngressMessage type AuthorizeCacheSecurityGroupIngressInput struct { _ struct{} `type:"structure"` @@ -3664,16 +3719,35 @@ func (s *AuthorizeCacheSecurityGroupIngressInput) Validate() error { return nil } +// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value. +func (s *AuthorizeCacheSecurityGroupIngressInput) SetCacheSecurityGroupName(v string) *AuthorizeCacheSecurityGroupIngressInput { + s.CacheSecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value. +func (s *AuthorizeCacheSecurityGroupIngressInput) SetEC2SecurityGroupName(v string) *AuthorizeCacheSecurityGroupIngressInput { + s.EC2SecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value. +func (s *AuthorizeCacheSecurityGroupIngressInput) SetEC2SecurityGroupOwnerId(v string) *AuthorizeCacheSecurityGroupIngressInput { + s.EC2SecurityGroupOwnerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/AuthorizeCacheSecurityGroupIngressResult type AuthorizeCacheSecurityGroupIngressOutput struct { _ struct{} `type:"structure"` // Represents the output of one of the following operations: // - // AuthorizeCacheSecurityGroupIngress + // * AuthorizeCacheSecurityGroupIngress // - // CreateCacheSecurityGroup + // * CreateCacheSecurityGroup // - // RevokeCacheSecurityGroupIngress + // * RevokeCacheSecurityGroupIngress CacheSecurityGroup *CacheSecurityGroup `type:"structure"` } @@ -3687,7 +3761,14 @@ func (s AuthorizeCacheSecurityGroupIngressOutput) GoString() string { return s.String() } +// SetCacheSecurityGroup sets the CacheSecurityGroup field's value. +func (s *AuthorizeCacheSecurityGroupIngressOutput) SetCacheSecurityGroup(v *CacheSecurityGroup) *AuthorizeCacheSecurityGroupIngressOutput { + s.CacheSecurityGroup = v + return s +} + // Describes an Availability Zone in which the cache cluster is launched. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/AvailabilityZone type AvailabilityZone struct { _ struct{} `type:"structure"` @@ -3705,7 +3786,14 @@ func (s AvailabilityZone) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *AvailabilityZone) SetName(v string) *AvailabilityZone { + s.Name = &v + return s +} + // Contains all of the attributes of a specific cache cluster. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CacheCluster type CacheCluster struct { _ struct{} `type:"structure"` @@ -3728,37 +3816,37 @@ type CacheCluster struct { // // Valid node types are as follows: // - // General purpose: + // * General purpose: // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge + // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge + // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge // - // Compute optimized: cache.c1.xlarge + // * Compute optimized: cache.c1.xlarge // - // Memory optimized: + // * Memory optimized: // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge + // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge + // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge // - // Notes: + // Notes: // - // All T2 instances are created in an Amazon Virtual Private Cloud (Amazon - // VPC). + // * All T2 instances are created in an Amazon Virtual Private Cloud (Amazon + // VPC). // - // Redis backup/restore is not supported for Redis (cluster mode disabled) - // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode enabled) - // T2 instances. + // * Redis backup/restore is not supported for Redis (cluster mode disabled) + // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode + // enabled) T2 instances. // - // Redis Append-only files (AOF) functionality is not supported for T1 or - // T2 instances. + // * Redis Append-only files (AOF) functionality is not supported for T1 + // or T2 instances. // - // For a complete listing of node types and specifications, see Amazon ElastiCache + // For a complete listing of node types and specifications, see Amazon ElastiCache // Product Features and Details (http://aws.amazon.com/elasticache/details) // and either Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific). @@ -3816,21 +3904,21 @@ type CacheCluster struct { // // Valid values for ddd are: // - // sun + // * sun // - // mon + // * mon // - // tue + // * tue // - // wed + // * wed // - // thu + // * thu // - // fri + // * fri // - // sat + // * sat // - // Example: sun:23:00-mon:01:30 + // Example: sun:23:00-mon:01:30 PreferredMaintenanceWindow *string `type:"string"` // The replication group to which this cache cluster belongs. If this field @@ -3845,8 +3933,8 @@ type CacheCluster struct { // to 5, a snapshot that was taken today is retained for 5 days before being // deleted. // - // If the value of SnapshotRetentionLimit is set to zero (0), backups are - // turned off. + // If the value of SnapshotRetentionLimit is set to zero (0), backups are turned + // off. SnapshotRetentionLimit *int64 `type:"integer"` // The daily time range (in UTC) during which ElastiCache begins taking a daily @@ -3866,7 +3954,140 @@ func (s CacheCluster) GoString() string { return s.String() } +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *CacheCluster) SetAutoMinorVersionUpgrade(v bool) *CacheCluster { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetCacheClusterCreateTime sets the CacheClusterCreateTime field's value. +func (s *CacheCluster) SetCacheClusterCreateTime(v time.Time) *CacheCluster { + s.CacheClusterCreateTime = &v + return s +} + +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *CacheCluster) SetCacheClusterId(v string) *CacheCluster { + s.CacheClusterId = &v + return s +} + +// SetCacheClusterStatus sets the CacheClusterStatus field's value. +func (s *CacheCluster) SetCacheClusterStatus(v string) *CacheCluster { + s.CacheClusterStatus = &v + return s +} + +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *CacheCluster) SetCacheNodeType(v string) *CacheCluster { + s.CacheNodeType = &v + return s +} + +// SetCacheNodes sets the CacheNodes field's value. +func (s *CacheCluster) SetCacheNodes(v []*CacheNode) *CacheCluster { + s.CacheNodes = v + return s +} + +// SetCacheParameterGroup sets the CacheParameterGroup field's value. +func (s *CacheCluster) SetCacheParameterGroup(v *CacheParameterGroupStatus) *CacheCluster { + s.CacheParameterGroup = v + return s +} + +// SetCacheSecurityGroups sets the CacheSecurityGroups field's value. +func (s *CacheCluster) SetCacheSecurityGroups(v []*CacheSecurityGroupMembership) *CacheCluster { + s.CacheSecurityGroups = v + return s +} + +// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value. +func (s *CacheCluster) SetCacheSubnetGroupName(v string) *CacheCluster { + s.CacheSubnetGroupName = &v + return s +} + +// SetClientDownloadLandingPage sets the ClientDownloadLandingPage field's value. +func (s *CacheCluster) SetClientDownloadLandingPage(v string) *CacheCluster { + s.ClientDownloadLandingPage = &v + return s +} + +// SetConfigurationEndpoint sets the ConfigurationEndpoint field's value. +func (s *CacheCluster) SetConfigurationEndpoint(v *Endpoint) *CacheCluster { + s.ConfigurationEndpoint = v + return s +} + +// SetEngine sets the Engine field's value. +func (s *CacheCluster) SetEngine(v string) *CacheCluster { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *CacheCluster) SetEngineVersion(v string) *CacheCluster { + s.EngineVersion = &v + return s +} + +// SetNotificationConfiguration sets the NotificationConfiguration field's value. +func (s *CacheCluster) SetNotificationConfiguration(v *NotificationConfiguration) *CacheCluster { + s.NotificationConfiguration = v + return s +} + +// SetNumCacheNodes sets the NumCacheNodes field's value. +func (s *CacheCluster) SetNumCacheNodes(v int64) *CacheCluster { + s.NumCacheNodes = &v + return s +} + +// SetPendingModifiedValues sets the PendingModifiedValues field's value. +func (s *CacheCluster) SetPendingModifiedValues(v *PendingModifiedValues) *CacheCluster { + s.PendingModifiedValues = v + return s +} + +// SetPreferredAvailabilityZone sets the PreferredAvailabilityZone field's value. +func (s *CacheCluster) SetPreferredAvailabilityZone(v string) *CacheCluster { + s.PreferredAvailabilityZone = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *CacheCluster) SetPreferredMaintenanceWindow(v string) *CacheCluster { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *CacheCluster) SetReplicationGroupId(v string) *CacheCluster { + s.ReplicationGroupId = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *CacheCluster) SetSecurityGroups(v []*SecurityGroupMembership) *CacheCluster { + s.SecurityGroups = v + return s +} + +// SetSnapshotRetentionLimit sets the SnapshotRetentionLimit field's value. +func (s *CacheCluster) SetSnapshotRetentionLimit(v int64) *CacheCluster { + s.SnapshotRetentionLimit = &v + return s +} + +// SetSnapshotWindow sets the SnapshotWindow field's value. +func (s *CacheCluster) SetSnapshotWindow(v string) *CacheCluster { + s.SnapshotWindow = &v + return s +} + // Provides all of the details about a particular cache engine version. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CacheEngineVersion type CacheEngineVersion struct { _ struct{} `type:"structure"` @@ -3898,46 +4119,77 @@ func (s CacheEngineVersion) GoString() string { return s.String() } +// SetCacheEngineDescription sets the CacheEngineDescription field's value. +func (s *CacheEngineVersion) SetCacheEngineDescription(v string) *CacheEngineVersion { + s.CacheEngineDescription = &v + return s +} + +// SetCacheEngineVersionDescription sets the CacheEngineVersionDescription field's value. +func (s *CacheEngineVersion) SetCacheEngineVersionDescription(v string) *CacheEngineVersion { + s.CacheEngineVersionDescription = &v + return s +} + +// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value. +func (s *CacheEngineVersion) SetCacheParameterGroupFamily(v string) *CacheEngineVersion { + s.CacheParameterGroupFamily = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *CacheEngineVersion) SetEngine(v string) *CacheEngineVersion { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *CacheEngineVersion) SetEngineVersion(v string) *CacheEngineVersion { + s.EngineVersion = &v + return s +} + // Represents an individual cache node within a cache cluster. Each cache node // runs its own instance of the cluster's protocol-compliant caching software // - either Memcached or Redis. // // Valid node types are as follows: // -// General purpose: +// * General purpose: // -// Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, -// cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, -// cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge +// Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, +// cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, +// cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge // -// Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, -// cache.m1.large, cache.m1.xlarge +// Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, +// cache.m1.xlarge // -// Compute optimized: cache.c1.xlarge +// * Compute optimized: cache.c1.xlarge // -// Memory optimized: +// * Memory optimized: // -// Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, -// cache.r3.4xlarge, cache.r3.8xlarge +// Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, +// cache.r3.8xlarge // -// Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge +// Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge // -// Notes: +// Notes: // -// All T2 instances are created in an Amazon Virtual Private Cloud (Amazon -// VPC). +// * All T2 instances are created in an Amazon Virtual Private Cloud (Amazon +// VPC). // -// Redis backup/restore is not supported for Redis (cluster mode disabled) -// T1 and T2 instances. Backup/restore is supported on Redis (cluster mode enabled) -// T2 instances. +// * Redis backup/restore is not supported for Redis (cluster mode disabled) +// T1 and T2 instances. Backup/restore is supported on Redis (cluster mode +// enabled) T2 instances. // -// Redis Append-only files (AOF) functionality is not supported for T1 or -// T2 instances. +// * Redis Append-only files (AOF) functionality is not supported for T1 +// or T2 instances. // -// For a complete listing of node types and specifications, see Amazon ElastiCache +// For a complete listing of node types and specifications, see Amazon ElastiCache // Product Features and Details (http://aws.amazon.com/elasticache/details) // and either Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CacheNode type CacheNode struct { _ struct{} `type:"structure"` @@ -3977,9 +4229,52 @@ func (s CacheNode) GoString() string { return s.String() } +// SetCacheNodeCreateTime sets the CacheNodeCreateTime field's value. +func (s *CacheNode) SetCacheNodeCreateTime(v time.Time) *CacheNode { + s.CacheNodeCreateTime = &v + return s +} + +// SetCacheNodeId sets the CacheNodeId field's value. +func (s *CacheNode) SetCacheNodeId(v string) *CacheNode { + s.CacheNodeId = &v + return s +} + +// SetCacheNodeStatus sets the CacheNodeStatus field's value. +func (s *CacheNode) SetCacheNodeStatus(v string) *CacheNode { + s.CacheNodeStatus = &v + return s +} + +// SetCustomerAvailabilityZone sets the CustomerAvailabilityZone field's value. +func (s *CacheNode) SetCustomerAvailabilityZone(v string) *CacheNode { + s.CustomerAvailabilityZone = &v + return s +} + +// SetEndpoint sets the Endpoint field's value. +func (s *CacheNode) SetEndpoint(v *Endpoint) *CacheNode { + s.Endpoint = v + return s +} + +// SetParameterGroupStatus sets the ParameterGroupStatus field's value. +func (s *CacheNode) SetParameterGroupStatus(v string) *CacheNode { + s.ParameterGroupStatus = &v + return s +} + +// SetSourceCacheNodeId sets the SourceCacheNodeId field's value. +func (s *CacheNode) SetSourceCacheNodeId(v string) *CacheNode { + s.SourceCacheNodeId = &v + return s +} + // A parameter that has a different value for each cache node type it is applied // to. For example, in a Redis cache cluster, a cache.m1.large cache node type // would have a larger maxmemory value than a cache.m1.small type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CacheNodeTypeSpecificParameter type CacheNodeTypeSpecificParameter struct { _ struct{} `type:"structure"` @@ -4026,7 +4321,62 @@ func (s CacheNodeTypeSpecificParameter) GoString() string { return s.String() } +// SetAllowedValues sets the AllowedValues field's value. +func (s *CacheNodeTypeSpecificParameter) SetAllowedValues(v string) *CacheNodeTypeSpecificParameter { + s.AllowedValues = &v + return s +} + +// SetCacheNodeTypeSpecificValues sets the CacheNodeTypeSpecificValues field's value. +func (s *CacheNodeTypeSpecificParameter) SetCacheNodeTypeSpecificValues(v []*CacheNodeTypeSpecificValue) *CacheNodeTypeSpecificParameter { + s.CacheNodeTypeSpecificValues = v + return s +} + +// SetChangeType sets the ChangeType field's value. +func (s *CacheNodeTypeSpecificParameter) SetChangeType(v string) *CacheNodeTypeSpecificParameter { + s.ChangeType = &v + return s +} + +// SetDataType sets the DataType field's value. +func (s *CacheNodeTypeSpecificParameter) SetDataType(v string) *CacheNodeTypeSpecificParameter { + s.DataType = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CacheNodeTypeSpecificParameter) SetDescription(v string) *CacheNodeTypeSpecificParameter { + s.Description = &v + return s +} + +// SetIsModifiable sets the IsModifiable field's value. +func (s *CacheNodeTypeSpecificParameter) SetIsModifiable(v bool) *CacheNodeTypeSpecificParameter { + s.IsModifiable = &v + return s +} + +// SetMinimumEngineVersion sets the MinimumEngineVersion field's value. +func (s *CacheNodeTypeSpecificParameter) SetMinimumEngineVersion(v string) *CacheNodeTypeSpecificParameter { + s.MinimumEngineVersion = &v + return s +} + +// SetParameterName sets the ParameterName field's value. +func (s *CacheNodeTypeSpecificParameter) SetParameterName(v string) *CacheNodeTypeSpecificParameter { + s.ParameterName = &v + return s +} + +// SetSource sets the Source field's value. +func (s *CacheNodeTypeSpecificParameter) SetSource(v string) *CacheNodeTypeSpecificParameter { + s.Source = &v + return s +} + // A value that applies only to a certain cache node type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CacheNodeTypeSpecificValue type CacheNodeTypeSpecificValue struct { _ struct{} `type:"structure"` @@ -4047,7 +4397,20 @@ func (s CacheNodeTypeSpecificValue) GoString() string { return s.String() } +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *CacheNodeTypeSpecificValue) SetCacheNodeType(v string) *CacheNodeTypeSpecificValue { + s.CacheNodeType = &v + return s +} + +// SetValue sets the Value field's value. +func (s *CacheNodeTypeSpecificValue) SetValue(v string) *CacheNodeTypeSpecificValue { + s.Value = &v + return s +} + // Represents the output of a CreateCacheParameterGroup operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CacheParameterGroup type CacheParameterGroup struct { _ struct{} `type:"structure"` @@ -4074,11 +4437,30 @@ func (s CacheParameterGroup) GoString() string { return s.String() } +// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value. +func (s *CacheParameterGroup) SetCacheParameterGroupFamily(v string) *CacheParameterGroup { + s.CacheParameterGroupFamily = &v + return s +} + +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *CacheParameterGroup) SetCacheParameterGroupName(v string) *CacheParameterGroup { + s.CacheParameterGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CacheParameterGroup) SetDescription(v string) *CacheParameterGroup { + s.Description = &v + return s +} + // Represents the output of one of the following operations: // -// ModifyCacheParameterGroup +// * ModifyCacheParameterGroup // -// ResetCacheParameterGroup +// * ResetCacheParameterGroup +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CacheParameterGroupNameMessage type CacheParameterGroupNameMessage struct { _ struct{} `type:"structure"` @@ -4096,7 +4478,14 @@ func (s CacheParameterGroupNameMessage) GoString() string { return s.String() } +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *CacheParameterGroupNameMessage) SetCacheParameterGroupName(v string) *CacheParameterGroupNameMessage { + s.CacheParameterGroupName = &v + return s +} + // Status of the cache parameter group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CacheParameterGroupStatus type CacheParameterGroupStatus struct { _ struct{} `type:"structure"` @@ -4121,13 +4510,32 @@ func (s CacheParameterGroupStatus) GoString() string { return s.String() } +// SetCacheNodeIdsToReboot sets the CacheNodeIdsToReboot field's value. +func (s *CacheParameterGroupStatus) SetCacheNodeIdsToReboot(v []*string) *CacheParameterGroupStatus { + s.CacheNodeIdsToReboot = v + return s +} + +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *CacheParameterGroupStatus) SetCacheParameterGroupName(v string) *CacheParameterGroupStatus { + s.CacheParameterGroupName = &v + return s +} + +// SetParameterApplyStatus sets the ParameterApplyStatus field's value. +func (s *CacheParameterGroupStatus) SetParameterApplyStatus(v string) *CacheParameterGroupStatus { + s.ParameterApplyStatus = &v + return s +} + // Represents the output of one of the following operations: // -// AuthorizeCacheSecurityGroupIngress +// * AuthorizeCacheSecurityGroupIngress // -// CreateCacheSecurityGroup +// * CreateCacheSecurityGroup // -// RevokeCacheSecurityGroupIngress +// * RevokeCacheSecurityGroupIngress +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CacheSecurityGroup type CacheSecurityGroup struct { _ struct{} `type:"structure"` @@ -4155,7 +4563,32 @@ func (s CacheSecurityGroup) GoString() string { return s.String() } +// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value. +func (s *CacheSecurityGroup) SetCacheSecurityGroupName(v string) *CacheSecurityGroup { + s.CacheSecurityGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CacheSecurityGroup) SetDescription(v string) *CacheSecurityGroup { + s.Description = &v + return s +} + +// SetEC2SecurityGroups sets the EC2SecurityGroups field's value. +func (s *CacheSecurityGroup) SetEC2SecurityGroups(v []*EC2SecurityGroup) *CacheSecurityGroup { + s.EC2SecurityGroups = v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *CacheSecurityGroup) SetOwnerId(v string) *CacheSecurityGroup { + s.OwnerId = &v + return s +} + // Represents a cache cluster's status within a particular cache security group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CacheSecurityGroupMembership type CacheSecurityGroupMembership struct { _ struct{} `type:"structure"` @@ -4178,11 +4611,24 @@ func (s CacheSecurityGroupMembership) GoString() string { return s.String() } +// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value. +func (s *CacheSecurityGroupMembership) SetCacheSecurityGroupName(v string) *CacheSecurityGroupMembership { + s.CacheSecurityGroupName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CacheSecurityGroupMembership) SetStatus(v string) *CacheSecurityGroupMembership { + s.Status = &v + return s +} + // Represents the output of one of the following operations: // -// CreateCacheSubnetGroup +// * CreateCacheSubnetGroup // -// ModifyCacheSubnetGroup +// * ModifyCacheSubnetGroup +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CacheSubnetGroup type CacheSubnetGroup struct { _ struct{} `type:"structure"` @@ -4210,7 +4656,32 @@ func (s CacheSubnetGroup) GoString() string { return s.String() } +// SetCacheSubnetGroupDescription sets the CacheSubnetGroupDescription field's value. +func (s *CacheSubnetGroup) SetCacheSubnetGroupDescription(v string) *CacheSubnetGroup { + s.CacheSubnetGroupDescription = &v + return s +} + +// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value. +func (s *CacheSubnetGroup) SetCacheSubnetGroupName(v string) *CacheSubnetGroup { + s.CacheSubnetGroupName = &v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *CacheSubnetGroup) SetSubnets(v []*Subnet) *CacheSubnetGroup { + s.Subnets = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CacheSubnetGroup) SetVpcId(v string) *CacheSubnetGroup { + s.VpcId = &v + return s +} + // Represents the input of a CopySnapshotMessage operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CopySnapshotMessage type CopySnapshotInput struct { _ struct{} `type:"structure"` @@ -4265,6 +4736,25 @@ func (s *CopySnapshotInput) Validate() error { return nil } +// SetSourceSnapshotName sets the SourceSnapshotName field's value. +func (s *CopySnapshotInput) SetSourceSnapshotName(v string) *CopySnapshotInput { + s.SourceSnapshotName = &v + return s +} + +// SetTargetBucket sets the TargetBucket field's value. +func (s *CopySnapshotInput) SetTargetBucket(v string) *CopySnapshotInput { + s.TargetBucket = &v + return s +} + +// SetTargetSnapshotName sets the TargetSnapshotName field's value. +func (s *CopySnapshotInput) SetTargetSnapshotName(v string) *CopySnapshotInput { + s.TargetSnapshotName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CopySnapshotResult type CopySnapshotOutput struct { _ struct{} `type:"structure"` @@ -4283,7 +4773,14 @@ func (s CopySnapshotOutput) GoString() string { return s.String() } +// SetSnapshot sets the Snapshot field's value. +func (s *CopySnapshotOutput) SetSnapshot(v *Snapshot) *CopySnapshotOutput { + s.Snapshot = v + return s +} + // Represents the input of a CreateCacheCluster operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateCacheClusterMessage type CreateCacheClusterInput struct { _ struct{} `type:"structure"` @@ -4297,19 +4794,33 @@ type CreateCacheClusterInput struct { // assumes single-az mode. AZMode *string `type:"string" enum:"AZMode"` + // Reserved parameter. The password used to access a password protected server. + // + // Password constraints: + // + // * Must be only printable ASCII characters. + // + // * Must be at least 16 characters and no more than 128 characters in length. + // + // * Cannot contain any of the following characters: '/', '"', or "@". + // + // For more information, see AUTH password (http://redis.io/commands/AUTH) at + // Redis. + AuthToken *string `type:"string"` + // This parameter is currently disabled. AutoMinorVersionUpgrade *bool `type:"boolean"` // The node group (shard) identifier. This parameter is stored as a lowercase // string. // - // Constraints: + // Constraints: // - // A name must contain from 1 to 20 alphanumeric characters or hyphens. + // * A name must contain from 1 to 20 alphanumeric characters or hyphens. // - // The first character must be a letter. + // * The first character must be a letter. // - // A name cannot end with a hyphen or contain two consecutive hyphens. + // * A name cannot end with a hyphen or contain two consecutive hyphens. // // CacheClusterId is a required field CacheClusterId *string `type:"string" required:"true"` @@ -4318,37 +4829,37 @@ type CreateCacheClusterInput struct { // // Valid node types are as follows: // - // General purpose: + // * General purpose: // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge + // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge + // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge // - // Compute optimized: cache.c1.xlarge + // * Compute optimized: cache.c1.xlarge // - // Memory optimized: + // * Memory optimized: // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge + // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge + // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge // - // Notes: + // Notes: // - // All T2 instances are created in an Amazon Virtual Private Cloud (Amazon - // VPC). + // * All T2 instances are created in an Amazon Virtual Private Cloud (Amazon + // VPC). // - // Redis backup/restore is not supported for Redis (cluster mode disabled) - // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode enabled) - // T2 instances. + // * Redis backup/restore is not supported for Redis (cluster mode disabled) + // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode + // enabled) T2 instances. // - // Redis Append-only files (AOF) functionality is not supported for T1 or - // T2 instances. + // * Redis Append-only files (AOF) functionality is not supported for T1 + // or T2 instances. // - // For a complete listing of node types and specifications, see Amazon ElastiCache + // For a complete listing of node types and specifications, see Amazon ElastiCache // Product Features and Details (http://aws.amazon.com/elasticache/details) // and either Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific). @@ -4371,7 +4882,7 @@ type CreateCacheClusterInput struct { // Use this parameter only when you are creating a cache cluster in an Amazon // Virtual Private Cloud (Amazon VPC). // - // If you're going to launch your cluster in an Amazon VPC, you need to create + // If you're going to launch your cluster in an Amazon VPC, you need to create // a subnet group before you start creating a cluster. For more information, // see Subnets and Subnet Groups (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/SubnetGroups.html). CacheSubnetGroupName *string `type:"string"` @@ -4385,7 +4896,7 @@ type CreateCacheClusterInput struct { // To view the supported cache engine versions, use the DescribeCacheEngineVersions // operation. // - // Important: You can upgrade to a newer engine version (see Selecting a Cache + // Important: You can upgrade to a newer engine version (see Selecting a Cache // Engine and Version (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/SelectEngine.html#VersionManagement)), // but you cannot downgrade to an earlier engine version. If you want to use // an earlier engine version, you must delete the existing cache cluster or @@ -4395,7 +4906,7 @@ type CreateCacheClusterInput struct { // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service // (SNS) topic to which notifications are sent. // - // The Amazon SNS topic owner must be the same as the cache cluster owner. + // The Amazon SNS topic owner must be the same as the cache cluster owner. NotificationTopicArn *string `type:"string"` // The initial number of cache nodes that the cache cluster has. @@ -4425,13 +4936,13 @@ type CreateCacheClusterInput struct { // // This option is only supported on Memcached. // - // If you are creating your cache cluster in an Amazon VPC (recommended) you + // If you are creating your cache cluster in an Amazon VPC (recommended) you // can only locate nodes in Availability Zones that are associated with the // subnets in the selected subnet group. // // The number of Availability Zones listed must equal the value of NumCacheNodes. // - // If you want all the nodes in the same Availability Zone, use PreferredAvailabilityZone + // If you want all the nodes in the same Availability Zone, use PreferredAvailabilityZone // instead, or repeat the Availability Zone multiple times in the list. // // Default: System chosen Availability Zones. @@ -4442,34 +4953,34 @@ type CreateCacheClusterInput struct { // (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid // values for ddd are: // - // Specifies the weekly time range during which maintenance on the cluster - // is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi + // Specifies the weekly time range during which maintenance on the cluster is + // performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi // (24H Clock UTC). The minimum maintenance window is a 60 minute period. // // Valid values for ddd are: // - // sun + // * sun // - // mon + // * mon // - // tue + // * tue // - // wed + // * wed // - // thu + // * thu // - // fri + // * fri // - // sat + // * sat // - // Example: sun:23:00-mon:01:30 + // Example: sun:23:00-mon:01:30 PreferredMaintenanceWindow *string `type:"string"` // Due to current limitations on Redis (cluster mode disabled), this operation // or parameter is not supported on Redis (cluster mode enabled) replication // groups. // - // The ID of the replication group to which this cache cluster should belong. + // The ID of the replication group to which this cache cluster should belong. // If this parameter is specified, the cache cluster is added to the specified // replication group as a read replica; otherwise, the cache cluster is a standalone // primary that is not part of any replication group. @@ -4478,7 +4989,7 @@ type CreateCacheClusterInput struct { // Zone is not specified, the cache cluster is created in Availability Zones // that provide the best spread of read replicas across Availability Zones. // - // This parameter is only valid if the Engine parameter is redis. + // This parameter is only valid if the Engine parameter is redis. ReplicationGroupId *string `type:"string"` // One or more VPC security groups associated with the cache cluster. @@ -4492,25 +5003,25 @@ type CreateCacheClusterInput struct { // file is used to populate the node group (shard). The Amazon S3 object name // in the ARN cannot contain any commas. // - // This parameter is only valid if the Engine parameter is redis. + // This parameter is only valid if the Engine parameter is redis. // - // Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb + // Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb SnapshotArns []*string `locationNameList:"SnapshotArn" type:"list"` // The name of a Redis snapshot from which to restore data into the new node // group (shard). The snapshot status changes to restoring while the new node // group (shard) is being created. // - // This parameter is only valid if the Engine parameter is redis. + // This parameter is only valid if the Engine parameter is redis. SnapshotName *string `type:"string"` // The number of days for which ElastiCache retains automatic snapshots before // deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot // taken today is retained for 5 days before being deleted. // - // This parameter is only valid if the Engine parameter is redis. + // This parameter is only valid if the Engine parameter is redis. // - // Default: 0 (i.e., automatic backups are disabled for this cache cluster). + // Default: 0 (i.e., automatic backups are disabled for this cache cluster). SnapshotRetentionLimit *int64 `type:"integer"` // The daily time range (in UTC) during which ElastiCache begins taking a daily @@ -4518,10 +5029,10 @@ type CreateCacheClusterInput struct { // // Example: 05:00-09:00 // - // If you do not specify this parameter, ElastiCache automatically chooses - // an appropriate time range. + // If you do not specify this parameter, ElastiCache automatically chooses an + // appropriate time range. // - // Note: This parameter is only valid if the Engine parameter is redis. + // Note: This parameter is only valid if the Engine parameter is redis. SnapshotWindow *string `type:"string"` // A list of cost allocation tags to be added to this resource. A tag is a key-value @@ -4552,29 +5063,175 @@ func (s *CreateCacheClusterInput) Validate() error { return nil } -type CreateCacheClusterOutput struct { - _ struct{} `type:"structure"` +// SetAZMode sets the AZMode field's value. +func (s *CreateCacheClusterInput) SetAZMode(v string) *CreateCacheClusterInput { + s.AZMode = &v + return s +} - // Contains all of the attributes of a specific cache cluster. - CacheCluster *CacheCluster `type:"structure"` +// SetAuthToken sets the AuthToken field's value. +func (s *CreateCacheClusterInput) SetAuthToken(v string) *CreateCacheClusterInput { + s.AuthToken = &v + return s } -// String returns the string representation -func (s CreateCacheClusterOutput) String() string { - return awsutil.Prettify(s) +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *CreateCacheClusterInput) SetAutoMinorVersionUpgrade(v bool) *CreateCacheClusterInput { + s.AutoMinorVersionUpgrade = &v + return s } -// GoString returns the string representation -func (s CreateCacheClusterOutput) GoString() string { - return s.String() +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *CreateCacheClusterInput) SetCacheClusterId(v string) *CreateCacheClusterInput { + s.CacheClusterId = &v + return s } -// Represents the input of a CreateCacheParameterGroup operation. -type CreateCacheParameterGroupInput struct { - _ struct{} `type:"structure"` +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *CreateCacheClusterInput) SetCacheNodeType(v string) *CreateCacheClusterInput { + s.CacheNodeType = &v + return s +} - // The name of the cache parameter group family that the cache parameter group - // can be used with. +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *CreateCacheClusterInput) SetCacheParameterGroupName(v string) *CreateCacheClusterInput { + s.CacheParameterGroupName = &v + return s +} + +// SetCacheSecurityGroupNames sets the CacheSecurityGroupNames field's value. +func (s *CreateCacheClusterInput) SetCacheSecurityGroupNames(v []*string) *CreateCacheClusterInput { + s.CacheSecurityGroupNames = v + return s +} + +// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value. +func (s *CreateCacheClusterInput) SetCacheSubnetGroupName(v string) *CreateCacheClusterInput { + s.CacheSubnetGroupName = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *CreateCacheClusterInput) SetEngine(v string) *CreateCacheClusterInput { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *CreateCacheClusterInput) SetEngineVersion(v string) *CreateCacheClusterInput { + s.EngineVersion = &v + return s +} + +// SetNotificationTopicArn sets the NotificationTopicArn field's value. +func (s *CreateCacheClusterInput) SetNotificationTopicArn(v string) *CreateCacheClusterInput { + s.NotificationTopicArn = &v + return s +} + +// SetNumCacheNodes sets the NumCacheNodes field's value. +func (s *CreateCacheClusterInput) SetNumCacheNodes(v int64) *CreateCacheClusterInput { + s.NumCacheNodes = &v + return s +} + +// SetPort sets the Port field's value. +func (s *CreateCacheClusterInput) SetPort(v int64) *CreateCacheClusterInput { + s.Port = &v + return s +} + +// SetPreferredAvailabilityZone sets the PreferredAvailabilityZone field's value. +func (s *CreateCacheClusterInput) SetPreferredAvailabilityZone(v string) *CreateCacheClusterInput { + s.PreferredAvailabilityZone = &v + return s +} + +// SetPreferredAvailabilityZones sets the PreferredAvailabilityZones field's value. +func (s *CreateCacheClusterInput) SetPreferredAvailabilityZones(v []*string) *CreateCacheClusterInput { + s.PreferredAvailabilityZones = v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *CreateCacheClusterInput) SetPreferredMaintenanceWindow(v string) *CreateCacheClusterInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *CreateCacheClusterInput) SetReplicationGroupId(v string) *CreateCacheClusterInput { + s.ReplicationGroupId = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *CreateCacheClusterInput) SetSecurityGroupIds(v []*string) *CreateCacheClusterInput { + s.SecurityGroupIds = v + return s +} + +// SetSnapshotArns sets the SnapshotArns field's value. +func (s *CreateCacheClusterInput) SetSnapshotArns(v []*string) *CreateCacheClusterInput { + s.SnapshotArns = v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *CreateCacheClusterInput) SetSnapshotName(v string) *CreateCacheClusterInput { + s.SnapshotName = &v + return s +} + +// SetSnapshotRetentionLimit sets the SnapshotRetentionLimit field's value. +func (s *CreateCacheClusterInput) SetSnapshotRetentionLimit(v int64) *CreateCacheClusterInput { + s.SnapshotRetentionLimit = &v + return s +} + +// SetSnapshotWindow sets the SnapshotWindow field's value. +func (s *CreateCacheClusterInput) SetSnapshotWindow(v string) *CreateCacheClusterInput { + s.SnapshotWindow = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateCacheClusterInput) SetTags(v []*Tag) *CreateCacheClusterInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateCacheClusterResult +type CreateCacheClusterOutput struct { + _ struct{} `type:"structure"` + + // Contains all of the attributes of a specific cache cluster. + CacheCluster *CacheCluster `type:"structure"` +} + +// String returns the string representation +func (s CreateCacheClusterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateCacheClusterOutput) GoString() string { + return s.String() +} + +// SetCacheCluster sets the CacheCluster field's value. +func (s *CreateCacheClusterOutput) SetCacheCluster(v *CacheCluster) *CreateCacheClusterOutput { + s.CacheCluster = v + return s +} + +// Represents the input of a CreateCacheParameterGroup operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateCacheParameterGroupMessage +type CreateCacheParameterGroupInput struct { + _ struct{} `type:"structure"` + + // The name of the cache parameter group family that the cache parameter group + // can be used with. // // Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2 // @@ -4621,6 +5278,25 @@ func (s *CreateCacheParameterGroupInput) Validate() error { return nil } +// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value. +func (s *CreateCacheParameterGroupInput) SetCacheParameterGroupFamily(v string) *CreateCacheParameterGroupInput { + s.CacheParameterGroupFamily = &v + return s +} + +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *CreateCacheParameterGroupInput) SetCacheParameterGroupName(v string) *CreateCacheParameterGroupInput { + s.CacheParameterGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateCacheParameterGroupInput) SetDescription(v string) *CreateCacheParameterGroupInput { + s.Description = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateCacheParameterGroupResult type CreateCacheParameterGroupOutput struct { _ struct{} `type:"structure"` @@ -4638,7 +5314,14 @@ func (s CreateCacheParameterGroupOutput) GoString() string { return s.String() } +// SetCacheParameterGroup sets the CacheParameterGroup field's value. +func (s *CreateCacheParameterGroupOutput) SetCacheParameterGroup(v *CacheParameterGroup) *CreateCacheParameterGroupOutput { + s.CacheParameterGroup = v + return s +} + // Represents the input of a CreateCacheSecurityGroup operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateCacheSecurityGroupMessage type CreateCacheSecurityGroupInput struct { _ struct{} `type:"structure"` @@ -4685,16 +5368,29 @@ func (s *CreateCacheSecurityGroupInput) Validate() error { return nil } +// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value. +func (s *CreateCacheSecurityGroupInput) SetCacheSecurityGroupName(v string) *CreateCacheSecurityGroupInput { + s.CacheSecurityGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateCacheSecurityGroupInput) SetDescription(v string) *CreateCacheSecurityGroupInput { + s.Description = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateCacheSecurityGroupResult type CreateCacheSecurityGroupOutput struct { _ struct{} `type:"structure"` // Represents the output of one of the following operations: // - // AuthorizeCacheSecurityGroupIngress + // * AuthorizeCacheSecurityGroupIngress // - // CreateCacheSecurityGroup + // * CreateCacheSecurityGroup // - // RevokeCacheSecurityGroupIngress + // * RevokeCacheSecurityGroupIngress CacheSecurityGroup *CacheSecurityGroup `type:"structure"` } @@ -4708,7 +5404,14 @@ func (s CreateCacheSecurityGroupOutput) GoString() string { return s.String() } +// SetCacheSecurityGroup sets the CacheSecurityGroup field's value. +func (s *CreateCacheSecurityGroupOutput) SetCacheSecurityGroup(v *CacheSecurityGroup) *CreateCacheSecurityGroupOutput { + s.CacheSecurityGroup = v + return s +} + // Represents the input of a CreateCacheSubnetGroup operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateCacheSubnetGroupMessage type CreateCacheSubnetGroupInput struct { _ struct{} `type:"structure"` @@ -4761,14 +5464,33 @@ func (s *CreateCacheSubnetGroupInput) Validate() error { return nil } +// SetCacheSubnetGroupDescription sets the CacheSubnetGroupDescription field's value. +func (s *CreateCacheSubnetGroupInput) SetCacheSubnetGroupDescription(v string) *CreateCacheSubnetGroupInput { + s.CacheSubnetGroupDescription = &v + return s +} + +// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value. +func (s *CreateCacheSubnetGroupInput) SetCacheSubnetGroupName(v string) *CreateCacheSubnetGroupInput { + s.CacheSubnetGroupName = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *CreateCacheSubnetGroupInput) SetSubnetIds(v []*string) *CreateCacheSubnetGroupInput { + s.SubnetIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateCacheSubnetGroupResult type CreateCacheSubnetGroupOutput struct { _ struct{} `type:"structure"` // Represents the output of one of the following operations: // - // CreateCacheSubnetGroup + // * CreateCacheSubnetGroup // - // ModifyCacheSubnetGroup + // * ModifyCacheSubnetGroup CacheSubnetGroup *CacheSubnetGroup `type:"structure"` } @@ -4782,10 +5504,31 @@ func (s CreateCacheSubnetGroupOutput) GoString() string { return s.String() } +// SetCacheSubnetGroup sets the CacheSubnetGroup field's value. +func (s *CreateCacheSubnetGroupOutput) SetCacheSubnetGroup(v *CacheSubnetGroup) *CreateCacheSubnetGroupOutput { + s.CacheSubnetGroup = v + return s +} + // Represents the input of a CreateReplicationGroup operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateReplicationGroupMessage type CreateReplicationGroupInput struct { _ struct{} `type:"structure"` + // Reserved parameter. The password used to access a password protected server. + // + // Password constraints: + // + // * Must be only printable ASCII characters. + // + // * Must be at least 16 characters and no more than 128 characters in length. + // + // * Cannot contain any of the following characters: '/', '"', or "@". + // + // For more information, see AUTH password (http://redis.io/commands/AUTH) at + // Redis. + AuthToken *string `type:"string"` + // This parameter is currently disabled. AutoMinorVersionUpgrade *bool `type:"boolean"` @@ -4795,16 +5538,16 @@ type CreateReplicationGroupInput struct { // If true, Multi-AZ is enabled for this replication group. If false, Multi-AZ // is disabled for this replication group. // - // AutomaticFailoverEnabled must be enabled for Redis (cluster mode enabled) + // AutomaticFailoverEnabled must be enabled for Redis (cluster mode enabled) // replication groups. // // Default: false // - // ElastiCache Multi-AZ replication groups is not supported on: + // ElastiCache Multi-AZ replication groups is not supported on: // - // Redis versions earlier than 2.8.6. + // Redis versions earlier than 2.8.6. // - // Redis (cluster mode disabled): T1 and T2 node types. + // Redis (cluster mode disabled): T1 and T2 node types. // // Redis (cluster mode enabled): T2 node types. AutomaticFailoverEnabled *bool `type:"boolean"` @@ -4813,37 +5556,37 @@ type CreateReplicationGroupInput struct { // // Valid node types are as follows: // - // General purpose: + // * General purpose: // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge + // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge + // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge // - // Compute optimized: cache.c1.xlarge + // * Compute optimized: cache.c1.xlarge // - // Memory optimized: + // * Memory optimized: // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge + // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge + // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge // - // Notes: + // Notes: // - // All T2 instances are created in an Amazon Virtual Private Cloud (Amazon - // VPC). + // * All T2 instances are created in an Amazon Virtual Private Cloud (Amazon + // VPC). // - // Redis backup/restore is not supported for Redis (cluster mode disabled) - // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode enabled) - // T2 instances. + // * Redis backup/restore is not supported for Redis (cluster mode disabled) + // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode + // enabled) T2 instances. // - // Redis Append-only files (AOF) functionality is not supported for T1 or - // T2 instances. + // * Redis Append-only files (AOF) functionality is not supported for T1 + // or T2 instances. // - // For a complete listing of node types and specifications, see Amazon ElastiCache + // For a complete listing of node types and specifications, see Amazon ElastiCache // Product Features and Details (http://aws.amazon.com/elasticache/details) // and either Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific). @@ -4857,9 +5600,9 @@ type CreateReplicationGroupInput struct { // and want to use a default parameter group, we recommend that you specify // the parameter group by name. // - // To create a Redis (cluster mode disabled) replication group, use CacheParameterGroupName=default.redis3.2. + // * To create a Redis (cluster mode disabled) replication group, use CacheParameterGroupName=default.redis3.2. // - // To create a Redis (cluster mode enabled) replication group, use CacheParameterGroupName=default.redis3.2.cluster.on. + // * To create a Redis (cluster mode enabled) replication group, use CacheParameterGroupName=default.redis3.2.cluster.on. CacheParameterGroupName *string `type:"string"` // A list of cache security group names to associate with this replication group. @@ -4867,7 +5610,7 @@ type CreateReplicationGroupInput struct { // The name of the cache subnet group to be used for the replication group. // - // If you're going to launch your cluster in an Amazon VPC, you need to create + // If you're going to launch your cluster in an Amazon VPC, you need to create // a subnet group before you start creating a cluster. For more information, // see Subnets and Subnet Groups (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/SubnetGroups.html). CacheSubnetGroupName *string `type:"string"` @@ -4880,7 +5623,7 @@ type CreateReplicationGroupInput struct { // in this replication group. To view the supported cache engine versions, use // the DescribeCacheEngineVersions operation. // - // Important: You can upgrade to a newer engine version (see Selecting a Cache + // Important: You can upgrade to a newer engine version (see Selecting a Cache // Engine and Version (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/SelectEngine.html#VersionManagement)) // in the ElastiCache User Guide, but you cannot downgrade to an earlier engine // version. If you want to use an earlier engine version, you must delete the @@ -4900,7 +5643,7 @@ type CreateReplicationGroupInput struct { // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service // (SNS) topic to which notifications are sent. // - // The Amazon SNS topic owner must be the same as the cache cluster owner. + // The Amazon SNS topic owner must be the same as the cache cluster owner. NotificationTopicArn *string `type:"string"` // The number of clusters this replication group initially has. @@ -4911,9 +5654,6 @@ type CreateReplicationGroupInput struct { // If Multi-AZ is enabled, the value of this parameter must be at least 2. // // The maximum permitted value for NumCacheClusters is 6 (primary plus 5 replicas). - // If you need to exceed this limit, fill out the ElastiCache Limit Increase - // Request form at http://aws.amazon.com/contact-us/elasticache-node-limit-request/ - // (http://aws.amazon.com/contact-us/elasticache-node-limit-request/). NumCacheClusters *int64 `type:"integer"` // An optional parameter that specifies the number of node groups (shards) for @@ -4934,13 +5674,13 @@ type CreateReplicationGroupInput struct { // This parameter is not used if there is more than one node group (shard). // You should use NodeGroupConfiguration instead. // - // If you are creating your replication group in an Amazon VPC (recommended), + // If you are creating your replication group in an Amazon VPC (recommended), // you can only locate cache clusters in Availability Zones associated with // the subnets in the selected subnet group. // // The number of Availability Zones listed must equal the value of NumCacheClusters. // - // Default: system chosen Availability Zones. + // Default: system chosen Availability Zones. PreferredCacheClusterAZs []*string `locationNameList:"AvailabilityZone" type:"list"` // Specifies the weekly time range during which maintenance on the cache cluster @@ -4948,27 +5688,27 @@ type CreateReplicationGroupInput struct { // (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid // values for ddd are: // - // Specifies the weekly time range during which maintenance on the cluster - // is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi + // Specifies the weekly time range during which maintenance on the cluster is + // performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi // (24H Clock UTC). The minimum maintenance window is a 60 minute period. // // Valid values for ddd are: // - // sun + // * sun // - // mon + // * mon // - // tue + // * tue // - // wed + // * wed // - // thu + // * thu // - // fri + // * fri // - // sat + // * sat // - // Example: sun:23:00-mon:01:30 + // Example: sun:23:00-mon:01:30 PreferredMaintenanceWindow *string `type:"string"` // The identifier of the cache cluster that serves as the primary for this replication @@ -4992,19 +5732,19 @@ type CreateReplicationGroupInput struct { // // Constraints: // - // A name must contain from 1 to 20 alphanumeric characters or hyphens. + // * A name must contain from 1 to 20 alphanumeric characters or hyphens. // - // The first character must be a letter. + // * The first character must be a letter. // - // A name cannot end with a hyphen or contain two consecutive hyphens. + // * A name cannot end with a hyphen or contain two consecutive hyphens. // // ReplicationGroupId is a required field ReplicationGroupId *string `type:"string" required:"true"` // One or more Amazon VPC security groups associated with this replication group. // - // Use this parameter only when you are creating a replication group in an - // Amazon Virtual Private Cloud (Amazon VPC). + // Use this parameter only when you are creating a replication group in an Amazon + // Virtual Private Cloud (Amazon VPC). SecurityGroupIds []*string `locationNameList:"SecurityGroupId" type:"list"` // A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB @@ -5013,25 +5753,25 @@ type CreateReplicationGroupInput struct { // any commas. The list must match the number of node groups (shards) in the // replication group, which means you cannot repartition. // - // This parameter is only valid if the Engine parameter is redis. + // This parameter is only valid if the Engine parameter is redis. // - // Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb + // Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb SnapshotArns []*string `locationNameList:"SnapshotArn" type:"list"` // The name of a snapshot from which to restore data into the new replication // group. The snapshot status changes to restoring while the new replication // group is being created. // - // This parameter is only valid if the Engine parameter is redis. + // This parameter is only valid if the Engine parameter is redis. SnapshotName *string `type:"string"` // The number of days for which ElastiCache retains automatic snapshots before // deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot // that was taken today is retained for 5 days before being deleted. // - // This parameter is only valid if the Engine parameter is redis. + // This parameter is only valid if the Engine parameter is redis. // - // Default: 0 (i.e., automatic backups are disabled for this cache cluster). + // Default: 0 (i.e., automatic backups are disabled for this cache cluster). SnapshotRetentionLimit *int64 `type:"integer"` // The daily time range (in UTC) during which ElastiCache begins taking a daily @@ -5039,10 +5779,10 @@ type CreateReplicationGroupInput struct { // // Example: 05:00-09:00 // - // If you do not specify this parameter, ElastiCache automatically chooses - // an appropriate time range. + // If you do not specify this parameter, ElastiCache automatically chooses an + // appropriate time range. // - // This parameter is only valid if the Engine parameter is redis. + // This parameter is only valid if the Engine parameter is redis. SnapshotWindow *string `type:"string"` // A list of cost allocation tags to be added to this resource. A tag is a key-value @@ -5076,6 +5816,163 @@ func (s *CreateReplicationGroupInput) Validate() error { return nil } +// SetAuthToken sets the AuthToken field's value. +func (s *CreateReplicationGroupInput) SetAuthToken(v string) *CreateReplicationGroupInput { + s.AuthToken = &v + return s +} + +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *CreateReplicationGroupInput) SetAutoMinorVersionUpgrade(v bool) *CreateReplicationGroupInput { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetAutomaticFailoverEnabled sets the AutomaticFailoverEnabled field's value. +func (s *CreateReplicationGroupInput) SetAutomaticFailoverEnabled(v bool) *CreateReplicationGroupInput { + s.AutomaticFailoverEnabled = &v + return s +} + +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *CreateReplicationGroupInput) SetCacheNodeType(v string) *CreateReplicationGroupInput { + s.CacheNodeType = &v + return s +} + +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *CreateReplicationGroupInput) SetCacheParameterGroupName(v string) *CreateReplicationGroupInput { + s.CacheParameterGroupName = &v + return s +} + +// SetCacheSecurityGroupNames sets the CacheSecurityGroupNames field's value. +func (s *CreateReplicationGroupInput) SetCacheSecurityGroupNames(v []*string) *CreateReplicationGroupInput { + s.CacheSecurityGroupNames = v + return s +} + +// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value. +func (s *CreateReplicationGroupInput) SetCacheSubnetGroupName(v string) *CreateReplicationGroupInput { + s.CacheSubnetGroupName = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *CreateReplicationGroupInput) SetEngine(v string) *CreateReplicationGroupInput { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *CreateReplicationGroupInput) SetEngineVersion(v string) *CreateReplicationGroupInput { + s.EngineVersion = &v + return s +} + +// SetNodeGroupConfiguration sets the NodeGroupConfiguration field's value. +func (s *CreateReplicationGroupInput) SetNodeGroupConfiguration(v []*NodeGroupConfiguration) *CreateReplicationGroupInput { + s.NodeGroupConfiguration = v + return s +} + +// SetNotificationTopicArn sets the NotificationTopicArn field's value. +func (s *CreateReplicationGroupInput) SetNotificationTopicArn(v string) *CreateReplicationGroupInput { + s.NotificationTopicArn = &v + return s +} + +// SetNumCacheClusters sets the NumCacheClusters field's value. +func (s *CreateReplicationGroupInput) SetNumCacheClusters(v int64) *CreateReplicationGroupInput { + s.NumCacheClusters = &v + return s +} + +// SetNumNodeGroups sets the NumNodeGroups field's value. +func (s *CreateReplicationGroupInput) SetNumNodeGroups(v int64) *CreateReplicationGroupInput { + s.NumNodeGroups = &v + return s +} + +// SetPort sets the Port field's value. +func (s *CreateReplicationGroupInput) SetPort(v int64) *CreateReplicationGroupInput { + s.Port = &v + return s +} + +// SetPreferredCacheClusterAZs sets the PreferredCacheClusterAZs field's value. +func (s *CreateReplicationGroupInput) SetPreferredCacheClusterAZs(v []*string) *CreateReplicationGroupInput { + s.PreferredCacheClusterAZs = v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *CreateReplicationGroupInput) SetPreferredMaintenanceWindow(v string) *CreateReplicationGroupInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPrimaryClusterId sets the PrimaryClusterId field's value. +func (s *CreateReplicationGroupInput) SetPrimaryClusterId(v string) *CreateReplicationGroupInput { + s.PrimaryClusterId = &v + return s +} + +// SetReplicasPerNodeGroup sets the ReplicasPerNodeGroup field's value. +func (s *CreateReplicationGroupInput) SetReplicasPerNodeGroup(v int64) *CreateReplicationGroupInput { + s.ReplicasPerNodeGroup = &v + return s +} + +// SetReplicationGroupDescription sets the ReplicationGroupDescription field's value. +func (s *CreateReplicationGroupInput) SetReplicationGroupDescription(v string) *CreateReplicationGroupInput { + s.ReplicationGroupDescription = &v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *CreateReplicationGroupInput) SetReplicationGroupId(v string) *CreateReplicationGroupInput { + s.ReplicationGroupId = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *CreateReplicationGroupInput) SetSecurityGroupIds(v []*string) *CreateReplicationGroupInput { + s.SecurityGroupIds = v + return s +} + +// SetSnapshotArns sets the SnapshotArns field's value. +func (s *CreateReplicationGroupInput) SetSnapshotArns(v []*string) *CreateReplicationGroupInput { + s.SnapshotArns = v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *CreateReplicationGroupInput) SetSnapshotName(v string) *CreateReplicationGroupInput { + s.SnapshotName = &v + return s +} + +// SetSnapshotRetentionLimit sets the SnapshotRetentionLimit field's value. +func (s *CreateReplicationGroupInput) SetSnapshotRetentionLimit(v int64) *CreateReplicationGroupInput { + s.SnapshotRetentionLimit = &v + return s +} + +// SetSnapshotWindow sets the SnapshotWindow field's value. +func (s *CreateReplicationGroupInput) SetSnapshotWindow(v string) *CreateReplicationGroupInput { + s.SnapshotWindow = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateReplicationGroupInput) SetTags(v []*Tag) *CreateReplicationGroupInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateReplicationGroupResult type CreateReplicationGroupOutput struct { _ struct{} `type:"structure"` @@ -5093,7 +5990,14 @@ func (s CreateReplicationGroupOutput) GoString() string { return s.String() } +// SetReplicationGroup sets the ReplicationGroup field's value. +func (s *CreateReplicationGroupOutput) SetReplicationGroup(v *ReplicationGroup) *CreateReplicationGroupOutput { + s.ReplicationGroup = v + return s +} + // Represents the input of a CreateSnapshot operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateSnapshotMessage type CreateSnapshotInput struct { _ struct{} `type:"structure"` @@ -5134,6 +6038,25 @@ func (s *CreateSnapshotInput) Validate() error { return nil } +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *CreateSnapshotInput) SetCacheClusterId(v string) *CreateSnapshotInput { + s.CacheClusterId = &v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *CreateSnapshotInput) SetReplicationGroupId(v string) *CreateSnapshotInput { + s.ReplicationGroupId = &v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *CreateSnapshotInput) SetSnapshotName(v string) *CreateSnapshotInput { + s.SnapshotName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateSnapshotResult type CreateSnapshotOutput struct { _ struct{} `type:"structure"` @@ -5152,7 +6075,14 @@ func (s CreateSnapshotOutput) GoString() string { return s.String() } +// SetSnapshot sets the Snapshot field's value. +func (s *CreateSnapshotOutput) SetSnapshot(v *Snapshot) *CreateSnapshotOutput { + s.Snapshot = v + return s +} + // Represents the input of a DeleteCacheCluster operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheClusterMessage type DeleteCacheClusterInput struct { _ struct{} `type:"structure"` @@ -5191,6 +6121,19 @@ func (s *DeleteCacheClusterInput) Validate() error { return nil } +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *DeleteCacheClusterInput) SetCacheClusterId(v string) *DeleteCacheClusterInput { + s.CacheClusterId = &v + return s +} + +// SetFinalSnapshotIdentifier sets the FinalSnapshotIdentifier field's value. +func (s *DeleteCacheClusterInput) SetFinalSnapshotIdentifier(v string) *DeleteCacheClusterInput { + s.FinalSnapshotIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheClusterResult type DeleteCacheClusterOutput struct { _ struct{} `type:"structure"` @@ -5208,13 +6151,20 @@ func (s DeleteCacheClusterOutput) GoString() string { return s.String() } +// SetCacheCluster sets the CacheCluster field's value. +func (s *DeleteCacheClusterOutput) SetCacheCluster(v *CacheCluster) *DeleteCacheClusterOutput { + s.CacheCluster = v + return s +} + // Represents the input of a DeleteCacheParameterGroup operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheParameterGroupMessage type DeleteCacheParameterGroupInput struct { _ struct{} `type:"structure"` // The name of the cache parameter group to delete. // - // The specified cache security group must not be associated with any cache + // The specified cache security group must not be associated with any cache // clusters. // // CacheParameterGroupName is a required field @@ -5244,6 +6194,13 @@ func (s *DeleteCacheParameterGroupInput) Validate() error { return nil } +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *DeleteCacheParameterGroupInput) SetCacheParameterGroupName(v string) *DeleteCacheParameterGroupInput { + s.CacheParameterGroupName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheParameterGroupOutput type DeleteCacheParameterGroupOutput struct { _ struct{} `type:"structure"` } @@ -5259,12 +6216,13 @@ func (s DeleteCacheParameterGroupOutput) GoString() string { } // Represents the input of a DeleteCacheSecurityGroup operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheSecurityGroupMessage type DeleteCacheSecurityGroupInput struct { _ struct{} `type:"structure"` // The name of the cache security group to delete. // - // You cannot delete the default security group. + // You cannot delete the default security group. // // CacheSecurityGroupName is a required field CacheSecurityGroupName *string `type:"string" required:"true"` @@ -5293,6 +6251,13 @@ func (s *DeleteCacheSecurityGroupInput) Validate() error { return nil } +// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value. +func (s *DeleteCacheSecurityGroupInput) SetCacheSecurityGroupName(v string) *DeleteCacheSecurityGroupInput { + s.CacheSecurityGroupName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheSecurityGroupOutput type DeleteCacheSecurityGroupOutput struct { _ struct{} `type:"structure"` } @@ -5308,6 +6273,7 @@ func (s DeleteCacheSecurityGroupOutput) GoString() string { } // Represents the input of a DeleteCacheSubnetGroup operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheSubnetGroupMessage type DeleteCacheSubnetGroupInput struct { _ struct{} `type:"structure"` @@ -5342,6 +6308,13 @@ func (s *DeleteCacheSubnetGroupInput) Validate() error { return nil } +// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value. +func (s *DeleteCacheSubnetGroupInput) SetCacheSubnetGroupName(v string) *DeleteCacheSubnetGroupInput { + s.CacheSubnetGroupName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheSubnetGroupOutput type DeleteCacheSubnetGroupOutput struct { _ struct{} `type:"structure"` } @@ -5357,6 +6330,7 @@ func (s DeleteCacheSubnetGroupOutput) GoString() string { } // Represents the input of a DeleteReplicationGroup operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteReplicationGroupMessage type DeleteReplicationGroupInput struct { _ struct{} `type:"structure"` @@ -5400,6 +6374,25 @@ func (s *DeleteReplicationGroupInput) Validate() error { return nil } +// SetFinalSnapshotIdentifier sets the FinalSnapshotIdentifier field's value. +func (s *DeleteReplicationGroupInput) SetFinalSnapshotIdentifier(v string) *DeleteReplicationGroupInput { + s.FinalSnapshotIdentifier = &v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *DeleteReplicationGroupInput) SetReplicationGroupId(v string) *DeleteReplicationGroupInput { + s.ReplicationGroupId = &v + return s +} + +// SetRetainPrimaryCluster sets the RetainPrimaryCluster field's value. +func (s *DeleteReplicationGroupInput) SetRetainPrimaryCluster(v bool) *DeleteReplicationGroupInput { + s.RetainPrimaryCluster = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteReplicationGroupResult type DeleteReplicationGroupOutput struct { _ struct{} `type:"structure"` @@ -5417,7 +6410,14 @@ func (s DeleteReplicationGroupOutput) GoString() string { return s.String() } +// SetReplicationGroup sets the ReplicationGroup field's value. +func (s *DeleteReplicationGroupOutput) SetReplicationGroup(v *ReplicationGroup) *DeleteReplicationGroupOutput { + s.ReplicationGroup = v + return s +} + // Represents the input of a DeleteSnapshot operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteSnapshotMessage type DeleteSnapshotInput struct { _ struct{} `type:"structure"` @@ -5450,6 +6450,13 @@ func (s *DeleteSnapshotInput) Validate() error { return nil } +// SetSnapshotName sets the SnapshotName field's value. +func (s *DeleteSnapshotInput) SetSnapshotName(v string) *DeleteSnapshotInput { + s.SnapshotName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteSnapshotResult type DeleteSnapshotOutput struct { _ struct{} `type:"structure"` @@ -5468,7 +6475,14 @@ func (s DeleteSnapshotOutput) GoString() string { return s.String() } +// SetSnapshot sets the Snapshot field's value. +func (s *DeleteSnapshotOutput) SetSnapshot(v *Snapshot) *DeleteSnapshotOutput { + s.Snapshot = v + return s +} + // Represents the input of a DescribeCacheClusters operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheClustersMessage type DescribeCacheClustersInput struct { _ struct{} `type:"structure"` @@ -5506,7 +6520,32 @@ func (s DescribeCacheClustersInput) GoString() string { return s.String() } +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *DescribeCacheClustersInput) SetCacheClusterId(v string) *DescribeCacheClustersInput { + s.CacheClusterId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheClustersInput) SetMarker(v string) *DescribeCacheClustersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeCacheClustersInput) SetMaxRecords(v int64) *DescribeCacheClustersInput { + s.MaxRecords = &v + return s +} + +// SetShowCacheNodeInfo sets the ShowCacheNodeInfo field's value. +func (s *DescribeCacheClustersInput) SetShowCacheNodeInfo(v bool) *DescribeCacheClustersInput { + s.ShowCacheNodeInfo = &v + return s +} + // Represents the output of a DescribeCacheClusters operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CacheClusterMessage type DescribeCacheClustersOutput struct { _ struct{} `type:"structure"` @@ -5528,7 +6567,20 @@ func (s DescribeCacheClustersOutput) GoString() string { return s.String() } +// SetCacheClusters sets the CacheClusters field's value. +func (s *DescribeCacheClustersOutput) SetCacheClusters(v []*CacheCluster) *DescribeCacheClustersOutput { + s.CacheClusters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheClustersOutput) SetMarker(v string) *DescribeCacheClustersOutput { + s.Marker = &v + return s +} + // Represents the input of a DescribeCacheEngineVersions operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheEngineVersionsMessage type DescribeCacheEngineVersionsInput struct { _ struct{} `type:"structure"` @@ -5538,11 +6590,11 @@ type DescribeCacheEngineVersionsInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens CacheParameterGroupFamily *string `type:"string"` // If true, specifies that only the default version of the specified engine @@ -5582,7 +6634,44 @@ func (s DescribeCacheEngineVersionsInput) GoString() string { return s.String() } +// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value. +func (s *DescribeCacheEngineVersionsInput) SetCacheParameterGroupFamily(v string) *DescribeCacheEngineVersionsInput { + s.CacheParameterGroupFamily = &v + return s +} + +// SetDefaultOnly sets the DefaultOnly field's value. +func (s *DescribeCacheEngineVersionsInput) SetDefaultOnly(v bool) *DescribeCacheEngineVersionsInput { + s.DefaultOnly = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *DescribeCacheEngineVersionsInput) SetEngine(v string) *DescribeCacheEngineVersionsInput { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *DescribeCacheEngineVersionsInput) SetEngineVersion(v string) *DescribeCacheEngineVersionsInput { + s.EngineVersion = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheEngineVersionsInput) SetMarker(v string) *DescribeCacheEngineVersionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeCacheEngineVersionsInput) SetMaxRecords(v int64) *DescribeCacheEngineVersionsInput { + s.MaxRecords = &v + return s +} + // Represents the output of a DescribeCacheEngineVersions operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CacheEngineVersionMessage type DescribeCacheEngineVersionsOutput struct { _ struct{} `type:"structure"` @@ -5604,7 +6693,20 @@ func (s DescribeCacheEngineVersionsOutput) GoString() string { return s.String() } +// SetCacheEngineVersions sets the CacheEngineVersions field's value. +func (s *DescribeCacheEngineVersionsOutput) SetCacheEngineVersions(v []*CacheEngineVersion) *DescribeCacheEngineVersionsOutput { + s.CacheEngineVersions = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheEngineVersionsOutput) SetMarker(v string) *DescribeCacheEngineVersionsOutput { + s.Marker = &v + return s +} + // Represents the input of a DescribeCacheParameterGroups operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheParameterGroupsMessage type DescribeCacheParameterGroupsInput struct { _ struct{} `type:"structure"` @@ -5636,7 +6738,26 @@ func (s DescribeCacheParameterGroupsInput) GoString() string { return s.String() } +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *DescribeCacheParameterGroupsInput) SetCacheParameterGroupName(v string) *DescribeCacheParameterGroupsInput { + s.CacheParameterGroupName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheParameterGroupsInput) SetMarker(v string) *DescribeCacheParameterGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeCacheParameterGroupsInput) SetMaxRecords(v int64) *DescribeCacheParameterGroupsInput { + s.MaxRecords = &v + return s +} + // Represents the output of a DescribeCacheParameterGroups operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CacheParameterGroupsMessage type DescribeCacheParameterGroupsOutput struct { _ struct{} `type:"structure"` @@ -5658,7 +6779,20 @@ func (s DescribeCacheParameterGroupsOutput) GoString() string { return s.String() } +// SetCacheParameterGroups sets the CacheParameterGroups field's value. +func (s *DescribeCacheParameterGroupsOutput) SetCacheParameterGroups(v []*CacheParameterGroup) *DescribeCacheParameterGroupsOutput { + s.CacheParameterGroups = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheParameterGroupsOutput) SetMarker(v string) *DescribeCacheParameterGroupsOutput { + s.Marker = &v + return s +} + // Represents the input of a DescribeCacheParameters operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheParametersMessage type DescribeCacheParametersInput struct { _ struct{} `type:"structure"` @@ -5710,7 +6844,32 @@ func (s *DescribeCacheParametersInput) Validate() error { return nil } +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *DescribeCacheParametersInput) SetCacheParameterGroupName(v string) *DescribeCacheParametersInput { + s.CacheParameterGroupName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheParametersInput) SetMarker(v string) *DescribeCacheParametersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeCacheParametersInput) SetMaxRecords(v int64) *DescribeCacheParametersInput { + s.MaxRecords = &v + return s +} + +// SetSource sets the Source field's value. +func (s *DescribeCacheParametersInput) SetSource(v string) *DescribeCacheParametersInput { + s.Source = &v + return s +} + // Represents the output of a DescribeCacheParameters operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CacheParameterGroupDetails type DescribeCacheParametersOutput struct { _ struct{} `type:"structure"` @@ -5735,7 +6894,26 @@ func (s DescribeCacheParametersOutput) GoString() string { return s.String() } +// SetCacheNodeTypeSpecificParameters sets the CacheNodeTypeSpecificParameters field's value. +func (s *DescribeCacheParametersOutput) SetCacheNodeTypeSpecificParameters(v []*CacheNodeTypeSpecificParameter) *DescribeCacheParametersOutput { + s.CacheNodeTypeSpecificParameters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheParametersOutput) SetMarker(v string) *DescribeCacheParametersOutput { + s.Marker = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *DescribeCacheParametersOutput) SetParameters(v []*Parameter) *DescribeCacheParametersOutput { + s.Parameters = v + return s +} + // Represents the input of a DescribeCacheSecurityGroups operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheSecurityGroupsMessage type DescribeCacheSecurityGroupsInput struct { _ struct{} `type:"structure"` @@ -5767,7 +6945,26 @@ func (s DescribeCacheSecurityGroupsInput) GoString() string { return s.String() } +// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value. +func (s *DescribeCacheSecurityGroupsInput) SetCacheSecurityGroupName(v string) *DescribeCacheSecurityGroupsInput { + s.CacheSecurityGroupName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheSecurityGroupsInput) SetMarker(v string) *DescribeCacheSecurityGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeCacheSecurityGroupsInput) SetMaxRecords(v int64) *DescribeCacheSecurityGroupsInput { + s.MaxRecords = &v + return s +} + // Represents the output of a DescribeCacheSecurityGroups operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CacheSecurityGroupMessage type DescribeCacheSecurityGroupsOutput struct { _ struct{} `type:"structure"` @@ -5789,7 +6986,20 @@ func (s DescribeCacheSecurityGroupsOutput) GoString() string { return s.String() } +// SetCacheSecurityGroups sets the CacheSecurityGroups field's value. +func (s *DescribeCacheSecurityGroupsOutput) SetCacheSecurityGroups(v []*CacheSecurityGroup) *DescribeCacheSecurityGroupsOutput { + s.CacheSecurityGroups = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheSecurityGroupsOutput) SetMarker(v string) *DescribeCacheSecurityGroupsOutput { + s.Marker = &v + return s +} + // Represents the input of a DescribeCacheSubnetGroups operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheSubnetGroupsMessage type DescribeCacheSubnetGroupsInput struct { _ struct{} `type:"structure"` @@ -5821,7 +7031,26 @@ func (s DescribeCacheSubnetGroupsInput) GoString() string { return s.String() } +// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value. +func (s *DescribeCacheSubnetGroupsInput) SetCacheSubnetGroupName(v string) *DescribeCacheSubnetGroupsInput { + s.CacheSubnetGroupName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheSubnetGroupsInput) SetMarker(v string) *DescribeCacheSubnetGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeCacheSubnetGroupsInput) SetMaxRecords(v int64) *DescribeCacheSubnetGroupsInput { + s.MaxRecords = &v + return s +} + // Represents the output of a DescribeCacheSubnetGroups operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CacheSubnetGroupMessage type DescribeCacheSubnetGroupsOutput struct { _ struct{} `type:"structure"` @@ -5843,7 +7072,20 @@ func (s DescribeCacheSubnetGroupsOutput) GoString() string { return s.String() } +// SetCacheSubnetGroups sets the CacheSubnetGroups field's value. +func (s *DescribeCacheSubnetGroupsOutput) SetCacheSubnetGroups(v []*CacheSubnetGroup) *DescribeCacheSubnetGroupsOutput { + s.CacheSubnetGroups = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCacheSubnetGroupsOutput) SetMarker(v string) *DescribeCacheSubnetGroupsOutput { + s.Marker = &v + return s +} + // Represents the input of a DescribeEngineDefaultParameters operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeEngineDefaultParametersMessage type DescribeEngineDefaultParametersInput struct { _ struct{} `type:"structure"` @@ -5892,10 +7134,29 @@ func (s *DescribeEngineDefaultParametersInput) Validate() error { return nil } -type DescribeEngineDefaultParametersOutput struct { - _ struct{} `type:"structure"` +// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value. +func (s *DescribeEngineDefaultParametersInput) SetCacheParameterGroupFamily(v string) *DescribeEngineDefaultParametersInput { + s.CacheParameterGroupFamily = &v + return s +} - // Represents the output of a DescribeEngineDefaultParameters operation. +// SetMarker sets the Marker field's value. +func (s *DescribeEngineDefaultParametersInput) SetMarker(v string) *DescribeEngineDefaultParametersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEngineDefaultParametersInput) SetMaxRecords(v int64) *DescribeEngineDefaultParametersInput { + s.MaxRecords = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeEngineDefaultParametersResult +type DescribeEngineDefaultParametersOutput struct { + _ struct{} `type:"structure"` + + // Represents the output of a DescribeEngineDefaultParameters operation. EngineDefaults *EngineDefaults `type:"structure"` } @@ -5909,7 +7170,14 @@ func (s DescribeEngineDefaultParametersOutput) GoString() string { return s.String() } +// SetEngineDefaults sets the EngineDefaults field's value. +func (s *DescribeEngineDefaultParametersOutput) SetEngineDefaults(v *EngineDefaults) *DescribeEngineDefaultParametersOutput { + s.EngineDefaults = v + return s +} + // Represents the input of a DescribeEvents operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeEventsMessage type DescribeEventsInput struct { _ struct{} `type:"structure"` @@ -5957,7 +7225,50 @@ func (s DescribeEventsInput) GoString() string { return s.String() } +// SetDuration sets the Duration field's value. +func (s *DescribeEventsInput) SetDuration(v int64) *DescribeEventsInput { + s.Duration = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *DescribeEventsInput) SetEndTime(v time.Time) *DescribeEventsInput { + s.EndTime = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEventsInput) SetMarker(v string) *DescribeEventsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEventsInput) SetMaxRecords(v int64) *DescribeEventsInput { + s.MaxRecords = &v + return s +} + +// SetSourceIdentifier sets the SourceIdentifier field's value. +func (s *DescribeEventsInput) SetSourceIdentifier(v string) *DescribeEventsInput { + s.SourceIdentifier = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *DescribeEventsInput) SetSourceType(v string) *DescribeEventsInput { + s.SourceType = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeEventsInput) SetStartTime(v time.Time) *DescribeEventsInput { + s.StartTime = &v + return s +} + // Represents the output of a DescribeEvents operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/EventsMessage type DescribeEventsOutput struct { _ struct{} `type:"structure"` @@ -5979,7 +7290,20 @@ func (s DescribeEventsOutput) GoString() string { return s.String() } +// SetEvents sets the Events field's value. +func (s *DescribeEventsOutput) SetEvents(v []*Event) *DescribeEventsOutput { + s.Events = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEventsOutput) SetMarker(v string) *DescribeEventsOutput { + s.Marker = &v + return s +} + // Represents the input of a DescribeReplicationGroups operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeReplicationGroupsMessage type DescribeReplicationGroupsInput struct { _ struct{} `type:"structure"` @@ -6000,8 +7324,8 @@ type DescribeReplicationGroupsInput struct { // The identifier for the replication group to be described. This parameter // is not case sensitive. // - // If you do not specify this parameter, information about all replication - // groups is returned. + // If you do not specify this parameter, information about all replication groups + // is returned. ReplicationGroupId *string `type:"string"` } @@ -6015,7 +7339,26 @@ func (s DescribeReplicationGroupsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReplicationGroupsInput) SetMarker(v string) *DescribeReplicationGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeReplicationGroupsInput) SetMaxRecords(v int64) *DescribeReplicationGroupsInput { + s.MaxRecords = &v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *DescribeReplicationGroupsInput) SetReplicationGroupId(v string) *DescribeReplicationGroupsInput { + s.ReplicationGroupId = &v + return s +} + // Represents the output of a DescribeReplicationGroups operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ReplicationGroupMessage type DescribeReplicationGroupsOutput struct { _ struct{} `type:"structure"` @@ -6037,7 +7380,20 @@ func (s DescribeReplicationGroupsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReplicationGroupsOutput) SetMarker(v string) *DescribeReplicationGroupsOutput { + s.Marker = &v + return s +} + +// SetReplicationGroups sets the ReplicationGroups field's value. +func (s *DescribeReplicationGroupsOutput) SetReplicationGroups(v []*ReplicationGroup) *DescribeReplicationGroupsOutput { + s.ReplicationGroups = v + return s +} + // Represents the input of a DescribeReservedCacheNodes operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeReservedCacheNodesMessage type DescribeReservedCacheNodesInput struct { _ struct{} `type:"structure"` @@ -6046,37 +7402,37 @@ type DescribeReservedCacheNodesInput struct { // // Valid node types are as follows: // - // General purpose: + // * General purpose: // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge + // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge + // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge // - // Compute optimized: cache.c1.xlarge + // * Compute optimized: cache.c1.xlarge // - // Memory optimized: + // * Memory optimized: // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge + // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge + // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge // - // Notes: + // Notes: // - // All T2 instances are created in an Amazon Virtual Private Cloud (Amazon - // VPC). + // * All T2 instances are created in an Amazon Virtual Private Cloud (Amazon + // VPC). // - // Redis backup/restore is not supported for Redis (cluster mode disabled) - // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode enabled) - // T2 instances. + // * Redis backup/restore is not supported for Redis (cluster mode disabled) + // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode + // enabled) T2 instances. // - // Redis Append-only files (AOF) functionality is not supported for T1 or - // T2 instances. + // * Redis Append-only files (AOF) functionality is not supported for T1 + // or T2 instances. // - // For a complete listing of node types and specifications, see Amazon ElastiCache + // For a complete listing of node types and specifications, see Amazon ElastiCache // Product Features and Details (http://aws.amazon.com/elasticache/details) // and either Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific). @@ -6131,7 +7487,56 @@ func (s DescribeReservedCacheNodesInput) GoString() string { return s.String() } +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *DescribeReservedCacheNodesInput) SetCacheNodeType(v string) *DescribeReservedCacheNodesInput { + s.CacheNodeType = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *DescribeReservedCacheNodesInput) SetDuration(v string) *DescribeReservedCacheNodesInput { + s.Duration = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeReservedCacheNodesInput) SetMarker(v string) *DescribeReservedCacheNodesInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeReservedCacheNodesInput) SetMaxRecords(v int64) *DescribeReservedCacheNodesInput { + s.MaxRecords = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *DescribeReservedCacheNodesInput) SetOfferingType(v string) *DescribeReservedCacheNodesInput { + s.OfferingType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *DescribeReservedCacheNodesInput) SetProductDescription(v string) *DescribeReservedCacheNodesInput { + s.ProductDescription = &v + return s +} + +// SetReservedCacheNodeId sets the ReservedCacheNodeId field's value. +func (s *DescribeReservedCacheNodesInput) SetReservedCacheNodeId(v string) *DescribeReservedCacheNodesInput { + s.ReservedCacheNodeId = &v + return s +} + +// SetReservedCacheNodesOfferingId sets the ReservedCacheNodesOfferingId field's value. +func (s *DescribeReservedCacheNodesInput) SetReservedCacheNodesOfferingId(v string) *DescribeReservedCacheNodesInput { + s.ReservedCacheNodesOfferingId = &v + return s +} + // Represents the input of a DescribeReservedCacheNodesOfferings operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeReservedCacheNodesOfferingsMessage type DescribeReservedCacheNodesOfferingsInput struct { _ struct{} `type:"structure"` @@ -6140,37 +7545,37 @@ type DescribeReservedCacheNodesOfferingsInput struct { // // Valid node types are as follows: // - // General purpose: + // * General purpose: // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge + // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge + // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge // - // Compute optimized: cache.c1.xlarge + // * Compute optimized: cache.c1.xlarge // - // Memory optimized: + // * Memory optimized: // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge + // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge + // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge // - // Notes: + // Notes: // - // All T2 instances are created in an Amazon Virtual Private Cloud (Amazon - // VPC). + // * All T2 instances are created in an Amazon Virtual Private Cloud (Amazon + // VPC). // - // Redis backup/restore is not supported for Redis (cluster mode disabled) - // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode enabled) - // T2 instances. + // * Redis backup/restore is not supported for Redis (cluster mode disabled) + // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode + // enabled) T2 instances. // - // Redis Append-only files (AOF) functionality is not supported for T1 or - // T2 instances. + // * Redis Append-only files (AOF) functionality is not supported for T1 + // or T2 instances. // - // For a complete listing of node types and specifications, see Amazon ElastiCache + // For a complete listing of node types and specifications, see Amazon ElastiCache // Product Features and Details (http://aws.amazon.com/elasticache/details) // and either Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific). @@ -6223,7 +7628,50 @@ func (s DescribeReservedCacheNodesOfferingsInput) GoString() string { return s.String() } +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *DescribeReservedCacheNodesOfferingsInput) SetCacheNodeType(v string) *DescribeReservedCacheNodesOfferingsInput { + s.CacheNodeType = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *DescribeReservedCacheNodesOfferingsInput) SetDuration(v string) *DescribeReservedCacheNodesOfferingsInput { + s.Duration = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeReservedCacheNodesOfferingsInput) SetMarker(v string) *DescribeReservedCacheNodesOfferingsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeReservedCacheNodesOfferingsInput) SetMaxRecords(v int64) *DescribeReservedCacheNodesOfferingsInput { + s.MaxRecords = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *DescribeReservedCacheNodesOfferingsInput) SetOfferingType(v string) *DescribeReservedCacheNodesOfferingsInput { + s.OfferingType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *DescribeReservedCacheNodesOfferingsInput) SetProductDescription(v string) *DescribeReservedCacheNodesOfferingsInput { + s.ProductDescription = &v + return s +} + +// SetReservedCacheNodesOfferingId sets the ReservedCacheNodesOfferingId field's value. +func (s *DescribeReservedCacheNodesOfferingsInput) SetReservedCacheNodesOfferingId(v string) *DescribeReservedCacheNodesOfferingsInput { + s.ReservedCacheNodesOfferingId = &v + return s +} + // Represents the output of a DescribeReservedCacheNodesOfferings operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ReservedCacheNodesOfferingMessage type DescribeReservedCacheNodesOfferingsOutput struct { _ struct{} `type:"structure"` @@ -6245,7 +7693,20 @@ func (s DescribeReservedCacheNodesOfferingsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReservedCacheNodesOfferingsOutput) SetMarker(v string) *DescribeReservedCacheNodesOfferingsOutput { + s.Marker = &v + return s +} + +// SetReservedCacheNodesOfferings sets the ReservedCacheNodesOfferings field's value. +func (s *DescribeReservedCacheNodesOfferingsOutput) SetReservedCacheNodesOfferings(v []*ReservedCacheNodesOffering) *DescribeReservedCacheNodesOfferingsOutput { + s.ReservedCacheNodesOfferings = v + return s +} + // Represents the output of a DescribeReservedCacheNodes operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ReservedCacheNodeMessage type DescribeReservedCacheNodesOutput struct { _ struct{} `type:"structure"` @@ -6267,7 +7728,20 @@ func (s DescribeReservedCacheNodesOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReservedCacheNodesOutput) SetMarker(v string) *DescribeReservedCacheNodesOutput { + s.Marker = &v + return s +} + +// SetReservedCacheNodes sets the ReservedCacheNodes field's value. +func (s *DescribeReservedCacheNodesOutput) SetReservedCacheNodes(v []*ReservedCacheNode) *DescribeReservedCacheNodesOutput { + s.ReservedCacheNodes = v + return s +} + // Represents the input of a DescribeSnapshotsMessage operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeSnapshotsMessage type DescribeSnapshotsInput struct { _ struct{} `type:"structure"` @@ -6293,7 +7767,7 @@ type DescribeSnapshotsInput struct { // only snapshots associated with that specific replication group are described. ReplicationGroupId *string `type:"string"` - // A boolean value which if true, the node group (shard) configuration is included + // A Boolean value which if true, the node group (shard) configuration is included // in the snapshot description. ShowNodeGroupConfig *bool `type:"boolean"` @@ -6318,7 +7792,50 @@ func (s DescribeSnapshotsInput) GoString() string { return s.String() } +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *DescribeSnapshotsInput) SetCacheClusterId(v string) *DescribeSnapshotsInput { + s.CacheClusterId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeSnapshotsInput) SetMarker(v string) *DescribeSnapshotsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeSnapshotsInput) SetMaxRecords(v int64) *DescribeSnapshotsInput { + s.MaxRecords = &v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *DescribeSnapshotsInput) SetReplicationGroupId(v string) *DescribeSnapshotsInput { + s.ReplicationGroupId = &v + return s +} + +// SetShowNodeGroupConfig sets the ShowNodeGroupConfig field's value. +func (s *DescribeSnapshotsInput) SetShowNodeGroupConfig(v bool) *DescribeSnapshotsInput { + s.ShowNodeGroupConfig = &v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *DescribeSnapshotsInput) SetSnapshotName(v string) *DescribeSnapshotsInput { + s.SnapshotName = &v + return s +} + +// SetSnapshotSource sets the SnapshotSource field's value. +func (s *DescribeSnapshotsInput) SetSnapshotSource(v string) *DescribeSnapshotsInput { + s.SnapshotSource = &v + return s +} + // Represents the output of a DescribeSnapshots operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeSnapshotsListMessage type DescribeSnapshotsOutput struct { _ struct{} `type:"structure"` @@ -6342,7 +7859,20 @@ func (s DescribeSnapshotsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeSnapshotsOutput) SetMarker(v string) *DescribeSnapshotsOutput { + s.Marker = &v + return s +} + +// SetSnapshots sets the Snapshots field's value. +func (s *DescribeSnapshotsOutput) SetSnapshots(v []*Snapshot) *DescribeSnapshotsOutput { + s.Snapshots = v + return s +} + // Provides ownership and status information for an Amazon EC2 security group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/EC2SecurityGroup type EC2SecurityGroup struct { _ struct{} `type:"structure"` @@ -6366,8 +7896,27 @@ func (s EC2SecurityGroup) GoString() string { return s.String() } +// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value. +func (s *EC2SecurityGroup) SetEC2SecurityGroupName(v string) *EC2SecurityGroup { + s.EC2SecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value. +func (s *EC2SecurityGroup) SetEC2SecurityGroupOwnerId(v string) *EC2SecurityGroup { + s.EC2SecurityGroupOwnerId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EC2SecurityGroup) SetStatus(v string) *EC2SecurityGroup { + s.Status = &v + return s +} + // Represents the information required for client programs to connect to a cache // node. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/Endpoint type Endpoint struct { _ struct{} `type:"structure"` @@ -6388,7 +7937,20 @@ func (s Endpoint) GoString() string { return s.String() } +// SetAddress sets the Address field's value. +func (s *Endpoint) SetAddress(v string) *Endpoint { + s.Address = &v + return s +} + +// SetPort sets the Port field's value. +func (s *Endpoint) SetPort(v int64) *Endpoint { + s.Port = &v + return s +} + // Represents the output of a DescribeEngineDefaultParameters operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/EngineDefaults type EngineDefaults struct { _ struct{} `type:"structure"` @@ -6419,9 +7981,34 @@ func (s EngineDefaults) GoString() string { return s.String() } +// SetCacheNodeTypeSpecificParameters sets the CacheNodeTypeSpecificParameters field's value. +func (s *EngineDefaults) SetCacheNodeTypeSpecificParameters(v []*CacheNodeTypeSpecificParameter) *EngineDefaults { + s.CacheNodeTypeSpecificParameters = v + return s +} + +// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value. +func (s *EngineDefaults) SetCacheParameterGroupFamily(v string) *EngineDefaults { + s.CacheParameterGroupFamily = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *EngineDefaults) SetMarker(v string) *EngineDefaults { + s.Marker = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *EngineDefaults) SetParameters(v []*Parameter) *EngineDefaults { + s.Parameters = v + return s +} + // Represents a single occurrence of something interesting within the system. // Some examples of events are creating a cache cluster, adding or removing // a cache node, or rebooting a node. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/Event type Event struct { _ struct{} `type:"structure"` @@ -6451,7 +8038,32 @@ func (s Event) GoString() string { return s.String() } +// SetDate sets the Date field's value. +func (s *Event) SetDate(v time.Time) *Event { + s.Date = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *Event) SetMessage(v string) *Event { + s.Message = &v + return s +} + +// SetSourceIdentifier sets the SourceIdentifier field's value. +func (s *Event) SetSourceIdentifier(v string) *Event { + s.SourceIdentifier = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *Event) SetSourceType(v string) *Event { + s.SourceType = &v + return s +} + // The input parameters for the ListAllowedNodeTypeModifications operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ListAllowedNodeTypeModificationsMessage type ListAllowedNodeTypeModificationsInput struct { _ struct{} `type:"structure"` @@ -6460,7 +8072,7 @@ type ListAllowedNodeTypeModificationsInput struct { // this cluster and from that to create a list of node types you can scale up // to. // - // You must provide a value for either the CacheClusterId or the ReplicationGroupId. + // You must provide a value for either the CacheClusterId or the ReplicationGroupId. CacheClusterId *string `type:"string"` // The name of the replication group want to scale up to a larger node type. @@ -6468,7 +8080,7 @@ type ListAllowedNodeTypeModificationsInput struct { // being used by this replication group, and from that to create a list of node // types you can scale up to. // - // You must provide a value for either the CacheClusterId or the ReplicationGroupId. + // You must provide a value for either the CacheClusterId or the ReplicationGroupId. ReplicationGroupId *string `type:"string"` } @@ -6482,6 +8094,19 @@ func (s ListAllowedNodeTypeModificationsInput) GoString() string { return s.String() } +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *ListAllowedNodeTypeModificationsInput) SetCacheClusterId(v string) *ListAllowedNodeTypeModificationsInput { + s.CacheClusterId = &v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *ListAllowedNodeTypeModificationsInput) SetReplicationGroupId(v string) *ListAllowedNodeTypeModificationsInput { + s.ReplicationGroupId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/AllowedNodeTypeModificationsMessage type ListAllowedNodeTypeModificationsOutput struct { _ struct{} `type:"structure"` @@ -6498,7 +8123,14 @@ func (s ListAllowedNodeTypeModificationsOutput) GoString() string { return s.String() } +// SetScaleUpModifications sets the ScaleUpModifications field's value. +func (s *ListAllowedNodeTypeModificationsOutput) SetScaleUpModifications(v []*string) *ListAllowedNodeTypeModificationsOutput { + s.ScaleUpModifications = v + return s +} + // The input parameters for the ListTagsForResource operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ListTagsForResourceMessage type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -6536,7 +8168,14 @@ func (s *ListTagsForResourceInput) Validate() error { return nil } +// SetResourceName sets the ResourceName field's value. +func (s *ListTagsForResourceInput) SetResourceName(v string) *ListTagsForResourceInput { + s.ResourceName = &v + return s +} + // Represents the input of a ModifyCacheCluster operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheClusterMessage type ModifyCacheClusterInput struct { _ struct{} `type:"structure"` @@ -6547,8 +8186,8 @@ type ModifyCacheClusterInput struct { // // This option is only supported for Memcached cache clusters. // - // You cannot specify single-az if the Memcached cache cluster already has - // cache nodes in different Availability Zones. If cross-az is specified, existing + // You cannot specify single-az if the Memcached cache cluster already has cache + // nodes in different Availability Zones. If cross-az is specified, existing // Memcached nodes remain in their current Availability Zone. // // Only newly created nodes are located in different Availability Zones. For @@ -6564,10 +8203,10 @@ type ModifyCacheClusterInput struct { // If false, changes to the cache cluster are applied on the next maintenance // reboot, or the next failure reboot, whichever occurs first. // - // If you perform a ModifyCacheCluster before a pending modification is applied, + // If you perform a ModifyCacheCluster before a pending modification is applied, // the pending modification is replaced by the newer modification. // - // Valid values: true | false + // Valid values: true | false // // Default: false ApplyImmediately *bool `type:"boolean"` @@ -6612,7 +8251,7 @@ type ModifyCacheClusterInput struct { // The upgraded version of the cache engine to be run on the cache nodes. // - // Important: You can upgrade to a newer engine version (see Selecting a Cache + // Important: You can upgrade to a newer engine version (see Selecting a Cache // Engine and Version (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/SelectEngine.html#VersionManagement)), // but you cannot downgrade to an earlier engine version. If you want to use // an earlier engine version, you must delete the existing cache cluster and @@ -6630,18 +8269,19 @@ type ModifyCacheClusterInput struct { // // Scenarios: // - // Scenario 1: You have 3 active nodes and wish to add 2 nodes. Specify - // NumCacheNodes=5 (3 + 2) and optionally specify two Availability Zones for - // the two new nodes. + // * Scenario 1: You have 3 active nodes and wish to add 2 nodes. Specify + // NumCacheNodes=5 (3 + 2) and optionally specify two Availability Zones + // for the two new nodes. // - // Scenario 2: You have 3 active nodes and 2 nodes pending creation (from - // the scenario 1 call) and want to add 1 more node. Specify NumCacheNodes=6 - // ((3 + 2) + 1) and optionally specify an Availability Zone for the new node. + // * Scenario 2: You have 3 active nodes and 2 nodes pending creation (from + // the scenario 1 call) and want to add 1 more node. Specify NumCacheNodes=6 + // ((3 + 2) + 1) and optionally specify an Availability Zone for the new + // node. // - // Scenario 3: You want to cancel all pending operations. Specify NumCacheNodes=3 - // to cancel all pending operations. + // * Scenario 3: You want to cancel all pending operations. Specify NumCacheNodes=3 + // to cancel all pending operations. // - // The Availability Zone placement of nodes pending creation cannot be modified. + // The Availability Zone placement of nodes pending creation cannot be modified. // If you wish to cancel any nodes pending creation, add 0 nodes by setting // NumCacheNodes to the number of current nodes. // @@ -6651,49 +8291,49 @@ type ModifyCacheClusterInput struct { // Availability Zones, see the Availability Zone Considerations section of Cache // Node Considerations for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheNode.Memcached.html). // - // Impact of new add/remove requests upon pending requests + // Impact of new add/remove requests upon pending requests // - // Scenario-1 + // * Scenario-1 // - // Pending Action: Delete + // Pending Action: Delete // - // New Request: Delete + // New Request: Delete // - // Result: The new delete, pending or immediate, replaces the pending delete. + // Result: The new delete, pending or immediate, replaces the pending delete. // - // Scenario-2 + // * Scenario-2 // - // Pending Action: Delete + // Pending Action: Delete // - // New Request: Create + // New Request: Create // - // Result: The new create, pending or immediate, replaces the pending delete. + // Result: The new create, pending or immediate, replaces the pending delete. // - // Scenario-3 + // * Scenario-3 // - // Pending Action: Create + // Pending Action: Create // - // New Request: Delete + // New Request: Delete // - // Result: The new delete, pending or immediate, replaces the pending create. + // Result: The new delete, pending or immediate, replaces the pending create. // - // Scenario-4 + // * Scenario-4 // - // Pending Action: Create + // Pending Action: Create // - // New Request: Create + // New Request: Create // - // Result: The new create is added to the pending create. + // Result: The new create is added to the pending create. // - // Important: If the new create request is Apply Immediately - Yes, all creates - // are performed immediately. If the new create request is Apply Immediately - // - No, all creates are pending. + // Important: If the new create request is Apply Immediately - Yes, all creates + // are performed immediately. If the new create request is Apply Immediately + // - No, all creates are pending. NewAvailabilityZones []*string `locationNameList:"PreferredAvailabilityZone" type:"list"` // The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications // are sent. // - // The Amazon SNS topic owner must be same as the cache cluster owner. + // The Amazon SNS topic owner must be same as the cache cluster owner. NotificationTopicArn *string `type:"string"` // The status of the Amazon SNS notification topic. Notifications are sent only @@ -6715,8 +8355,8 @@ type ModifyCacheClusterInput struct { // For clusters running Redis, this value must be 1. For clusters running Memcached, // this value must be between 1 and 20. // - // Adding or removing Memcached cache nodes can be applied immediately or - // as a pending operation (see ApplyImmediately). + // Adding or removing Memcached cache nodes can be applied immediately or as + // a pending operation (see ApplyImmediately). // // A pending operation to modify the number of cache nodes in a cluster during // its maintenance window, whether by adding or removing nodes in accordance @@ -6741,21 +8381,21 @@ type ModifyCacheClusterInput struct { // // Valid values for ddd are: // - // sun + // * sun // - // mon + // * mon // - // tue + // * tue // - // wed + // * wed // - // thu + // * thu // - // fri + // * fri // - // sat + // * sat // - // Example: sun:23:00-mon:01:30 + // Example: sun:23:00-mon:01:30 PreferredMaintenanceWindow *string `type:"string"` // Specifies the VPC Security Groups associated with the cache cluster. @@ -6769,8 +8409,8 @@ type ModifyCacheClusterInput struct { // to 5, a snapshot that was taken today is retained for 5 days before being // deleted. // - // If the value of SnapshotRetentionLimit is set to zero (0), backups are - // turned off. + // If the value of SnapshotRetentionLimit is set to zero (0), backups are turned + // off. SnapshotRetentionLimit *int64 `type:"integer"` // The daily time range (in UTC) during which ElastiCache begins taking a daily @@ -6801,6 +8441,109 @@ func (s *ModifyCacheClusterInput) Validate() error { return nil } +// SetAZMode sets the AZMode field's value. +func (s *ModifyCacheClusterInput) SetAZMode(v string) *ModifyCacheClusterInput { + s.AZMode = &v + return s +} + +// SetApplyImmediately sets the ApplyImmediately field's value. +func (s *ModifyCacheClusterInput) SetApplyImmediately(v bool) *ModifyCacheClusterInput { + s.ApplyImmediately = &v + return s +} + +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *ModifyCacheClusterInput) SetAutoMinorVersionUpgrade(v bool) *ModifyCacheClusterInput { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *ModifyCacheClusterInput) SetCacheClusterId(v string) *ModifyCacheClusterInput { + s.CacheClusterId = &v + return s +} + +// SetCacheNodeIdsToRemove sets the CacheNodeIdsToRemove field's value. +func (s *ModifyCacheClusterInput) SetCacheNodeIdsToRemove(v []*string) *ModifyCacheClusterInput { + s.CacheNodeIdsToRemove = v + return s +} + +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *ModifyCacheClusterInput) SetCacheNodeType(v string) *ModifyCacheClusterInput { + s.CacheNodeType = &v + return s +} + +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *ModifyCacheClusterInput) SetCacheParameterGroupName(v string) *ModifyCacheClusterInput { + s.CacheParameterGroupName = &v + return s +} + +// SetCacheSecurityGroupNames sets the CacheSecurityGroupNames field's value. +func (s *ModifyCacheClusterInput) SetCacheSecurityGroupNames(v []*string) *ModifyCacheClusterInput { + s.CacheSecurityGroupNames = v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *ModifyCacheClusterInput) SetEngineVersion(v string) *ModifyCacheClusterInput { + s.EngineVersion = &v + return s +} + +// SetNewAvailabilityZones sets the NewAvailabilityZones field's value. +func (s *ModifyCacheClusterInput) SetNewAvailabilityZones(v []*string) *ModifyCacheClusterInput { + s.NewAvailabilityZones = v + return s +} + +// SetNotificationTopicArn sets the NotificationTopicArn field's value. +func (s *ModifyCacheClusterInput) SetNotificationTopicArn(v string) *ModifyCacheClusterInput { + s.NotificationTopicArn = &v + return s +} + +// SetNotificationTopicStatus sets the NotificationTopicStatus field's value. +func (s *ModifyCacheClusterInput) SetNotificationTopicStatus(v string) *ModifyCacheClusterInput { + s.NotificationTopicStatus = &v + return s +} + +// SetNumCacheNodes sets the NumCacheNodes field's value. +func (s *ModifyCacheClusterInput) SetNumCacheNodes(v int64) *ModifyCacheClusterInput { + s.NumCacheNodes = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *ModifyCacheClusterInput) SetPreferredMaintenanceWindow(v string) *ModifyCacheClusterInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *ModifyCacheClusterInput) SetSecurityGroupIds(v []*string) *ModifyCacheClusterInput { + s.SecurityGroupIds = v + return s +} + +// SetSnapshotRetentionLimit sets the SnapshotRetentionLimit field's value. +func (s *ModifyCacheClusterInput) SetSnapshotRetentionLimit(v int64) *ModifyCacheClusterInput { + s.SnapshotRetentionLimit = &v + return s +} + +// SetSnapshotWindow sets the SnapshotWindow field's value. +func (s *ModifyCacheClusterInput) SetSnapshotWindow(v string) *ModifyCacheClusterInput { + s.SnapshotWindow = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheClusterResult type ModifyCacheClusterOutput struct { _ struct{} `type:"structure"` @@ -6818,7 +8561,14 @@ func (s ModifyCacheClusterOutput) GoString() string { return s.String() } +// SetCacheCluster sets the CacheCluster field's value. +func (s *ModifyCacheClusterOutput) SetCacheCluster(v *CacheCluster) *ModifyCacheClusterOutput { + s.CacheCluster = v + return s +} + // Represents the input of a ModifyCacheParameterGroup operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheParameterGroupMessage type ModifyCacheParameterGroupInput struct { _ struct{} `type:"structure"` @@ -6861,7 +8611,20 @@ func (s *ModifyCacheParameterGroupInput) Validate() error { return nil } +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *ModifyCacheParameterGroupInput) SetCacheParameterGroupName(v string) *ModifyCacheParameterGroupInput { + s.CacheParameterGroupName = &v + return s +} + +// SetParameterNameValues sets the ParameterNameValues field's value. +func (s *ModifyCacheParameterGroupInput) SetParameterNameValues(v []*ParameterNameValue) *ModifyCacheParameterGroupInput { + s.ParameterNameValues = v + return s +} + // Represents the input of a ModifyCacheSubnetGroup operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheSubnetGroupMessage type ModifyCacheSubnetGroupInput struct { _ struct{} `type:"structure"` @@ -6905,14 +8668,33 @@ func (s *ModifyCacheSubnetGroupInput) Validate() error { return nil } +// SetCacheSubnetGroupDescription sets the CacheSubnetGroupDescription field's value. +func (s *ModifyCacheSubnetGroupInput) SetCacheSubnetGroupDescription(v string) *ModifyCacheSubnetGroupInput { + s.CacheSubnetGroupDescription = &v + return s +} + +// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value. +func (s *ModifyCacheSubnetGroupInput) SetCacheSubnetGroupName(v string) *ModifyCacheSubnetGroupInput { + s.CacheSubnetGroupName = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *ModifyCacheSubnetGroupInput) SetSubnetIds(v []*string) *ModifyCacheSubnetGroupInput { + s.SubnetIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheSubnetGroupResult type ModifyCacheSubnetGroupOutput struct { _ struct{} `type:"structure"` // Represents the output of one of the following operations: // - // CreateCacheSubnetGroup + // * CreateCacheSubnetGroup // - // ModifyCacheSubnetGroup + // * ModifyCacheSubnetGroup CacheSubnetGroup *CacheSubnetGroup `type:"structure"` } @@ -6926,7 +8708,14 @@ func (s ModifyCacheSubnetGroupOutput) GoString() string { return s.String() } +// SetCacheSubnetGroup sets the CacheSubnetGroup field's value. +func (s *ModifyCacheSubnetGroupOutput) SetCacheSubnetGroup(v *CacheSubnetGroup) *ModifyCacheSubnetGroupOutput { + s.CacheSubnetGroup = v + return s +} + // Represents the input of a ModifyReplicationGroups operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyReplicationGroupMessage type ModifyReplicationGroupInput struct { _ struct{} `type:"structure"` @@ -6951,11 +8740,11 @@ type ModifyReplicationGroupInput struct { // // Valid values: true | false // - // ElastiCache Multi-AZ replication groups are not supported on: + // ElastiCache Multi-AZ replication groups are not supported on: // - // Redis versions earlier than 2.8.6. + // Redis versions earlier than 2.8.6. // - // Redis (cluster mode disabled):T1 and T2 cache node types. + // Redis (cluster mode disabled):T1 and T2 cache node types. // // Redis (cluster mode enabled): T1 node types. AutomaticFailoverEnabled *bool `type:"boolean"` @@ -6972,8 +8761,8 @@ type ModifyReplicationGroupInput struct { // A list of cache security group names to authorize for the clusters in this // replication group. This change is asynchronously applied as soon as possible. // - // This parameter can be used only with replication group containing cache - // clusters running outside of an Amazon Virtual Private Cloud (Amazon VPC). + // This parameter can be used only with replication group containing cache clusters + // running outside of an Amazon Virtual Private Cloud (Amazon VPC). // // Constraints: Must contain no more than 255 alphanumeric characters. Must // not be Default. @@ -6982,7 +8771,7 @@ type ModifyReplicationGroupInput struct { // The upgraded version of the cache engine to be run on the cache clusters // in the replication group. // - // Important: You can upgrade to a newer engine version (see Selecting a Cache + // Important: You can upgrade to a newer engine version (see Selecting a Cache // Engine and Version (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/SelectEngine.html#VersionManagement)), // but you cannot downgrade to an earlier engine version. If you want to use // an earlier engine version, you must delete the existing replication group @@ -6992,7 +8781,7 @@ type ModifyReplicationGroupInput struct { // The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications // are sent. // - // The Amazon SNS topic owner must be same as the replication group owner. + // The Amazon SNS topic owner must be same as the replication group owner. NotificationTopicArn *string `type:"string"` // The status of the Amazon SNS notification topic for the replication group. @@ -7007,21 +8796,21 @@ type ModifyReplicationGroupInput struct { // // Valid values for ddd are: // - // sun + // * sun // - // mon + // * mon // - // tue + // * tue // - // wed + // * wed // - // thu + // * thu // - // fri + // * fri // - // sat + // * sat // - // Example: sun:23:00-mon:01:30 + // Example: sun:23:00-mon:01:30 PreferredMaintenanceWindow *string `type:"string"` // For replication groups with a single primary, if this parameter is specified, @@ -7041,8 +8830,8 @@ type ModifyReplicationGroupInput struct { // Specifies the VPC Security Groups associated with the cache clusters in the // replication group. // - // This parameter can be used only with replication group containing cache - // clusters running in an Amazon Virtual Private Cloud (Amazon VPC). + // This parameter can be used only with replication group containing cache clusters + // running in an Amazon Virtual Private Cloud (Amazon VPC). SecurityGroupIds []*string `locationNameList:"SecurityGroupId" type:"list"` // The number of days for which ElastiCache retains automatic node group (shard) @@ -7050,7 +8839,7 @@ type ModifyReplicationGroupInput struct { // to 5, a snapshot that was taken today is retained for 5 days before being // deleted. // - // Important If the value of SnapshotRetentionLimit is set to zero (0), backups + // Important If the value of SnapshotRetentionLimit is set to zero (0), backups // are turned off. SnapshotRetentionLimit *int64 `type:"integer"` @@ -7059,8 +8848,8 @@ type ModifyReplicationGroupInput struct { // // Example: 05:00-09:00 // - // If you do not specify this parameter, ElastiCache automatically chooses - // an appropriate time range. + // If you do not specify this parameter, ElastiCache automatically chooses an + // appropriate time range. SnapshotWindow *string `type:"string"` // The cache cluster ID that is used as the daily snapshot source for the replication @@ -7092,6 +8881,109 @@ func (s *ModifyReplicationGroupInput) Validate() error { return nil } +// SetApplyImmediately sets the ApplyImmediately field's value. +func (s *ModifyReplicationGroupInput) SetApplyImmediately(v bool) *ModifyReplicationGroupInput { + s.ApplyImmediately = &v + return s +} + +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *ModifyReplicationGroupInput) SetAutoMinorVersionUpgrade(v bool) *ModifyReplicationGroupInput { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetAutomaticFailoverEnabled sets the AutomaticFailoverEnabled field's value. +func (s *ModifyReplicationGroupInput) SetAutomaticFailoverEnabled(v bool) *ModifyReplicationGroupInput { + s.AutomaticFailoverEnabled = &v + return s +} + +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *ModifyReplicationGroupInput) SetCacheNodeType(v string) *ModifyReplicationGroupInput { + s.CacheNodeType = &v + return s +} + +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *ModifyReplicationGroupInput) SetCacheParameterGroupName(v string) *ModifyReplicationGroupInput { + s.CacheParameterGroupName = &v + return s +} + +// SetCacheSecurityGroupNames sets the CacheSecurityGroupNames field's value. +func (s *ModifyReplicationGroupInput) SetCacheSecurityGroupNames(v []*string) *ModifyReplicationGroupInput { + s.CacheSecurityGroupNames = v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *ModifyReplicationGroupInput) SetEngineVersion(v string) *ModifyReplicationGroupInput { + s.EngineVersion = &v + return s +} + +// SetNotificationTopicArn sets the NotificationTopicArn field's value. +func (s *ModifyReplicationGroupInput) SetNotificationTopicArn(v string) *ModifyReplicationGroupInput { + s.NotificationTopicArn = &v + return s +} + +// SetNotificationTopicStatus sets the NotificationTopicStatus field's value. +func (s *ModifyReplicationGroupInput) SetNotificationTopicStatus(v string) *ModifyReplicationGroupInput { + s.NotificationTopicStatus = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *ModifyReplicationGroupInput) SetPreferredMaintenanceWindow(v string) *ModifyReplicationGroupInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPrimaryClusterId sets the PrimaryClusterId field's value. +func (s *ModifyReplicationGroupInput) SetPrimaryClusterId(v string) *ModifyReplicationGroupInput { + s.PrimaryClusterId = &v + return s +} + +// SetReplicationGroupDescription sets the ReplicationGroupDescription field's value. +func (s *ModifyReplicationGroupInput) SetReplicationGroupDescription(v string) *ModifyReplicationGroupInput { + s.ReplicationGroupDescription = &v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *ModifyReplicationGroupInput) SetReplicationGroupId(v string) *ModifyReplicationGroupInput { + s.ReplicationGroupId = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *ModifyReplicationGroupInput) SetSecurityGroupIds(v []*string) *ModifyReplicationGroupInput { + s.SecurityGroupIds = v + return s +} + +// SetSnapshotRetentionLimit sets the SnapshotRetentionLimit field's value. +func (s *ModifyReplicationGroupInput) SetSnapshotRetentionLimit(v int64) *ModifyReplicationGroupInput { + s.SnapshotRetentionLimit = &v + return s +} + +// SetSnapshotWindow sets the SnapshotWindow field's value. +func (s *ModifyReplicationGroupInput) SetSnapshotWindow(v string) *ModifyReplicationGroupInput { + s.SnapshotWindow = &v + return s +} + +// SetSnapshottingClusterId sets the SnapshottingClusterId field's value. +func (s *ModifyReplicationGroupInput) SetSnapshottingClusterId(v string) *ModifyReplicationGroupInput { + s.SnapshottingClusterId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyReplicationGroupResult type ModifyReplicationGroupOutput struct { _ struct{} `type:"structure"` @@ -7109,9 +9001,16 @@ func (s ModifyReplicationGroupOutput) GoString() string { return s.String() } +// SetReplicationGroup sets the ReplicationGroup field's value. +func (s *ModifyReplicationGroupOutput) SetReplicationGroup(v *ReplicationGroup) *ModifyReplicationGroupOutput { + s.ReplicationGroup = v + return s +} + // Represents a collection of cache nodes in a replication group. One node in -// the node group is the read/write Primary node. All the other nodes are read-only +// the node group is the read/write primary node. All the other nodes are read-only // Replica nodes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/NodeGroup type NodeGroup struct { _ struct{} `type:"structure"` @@ -7145,9 +9044,40 @@ func (s NodeGroup) GoString() string { return s.String() } +// SetNodeGroupId sets the NodeGroupId field's value. +func (s *NodeGroup) SetNodeGroupId(v string) *NodeGroup { + s.NodeGroupId = &v + return s +} + +// SetNodeGroupMembers sets the NodeGroupMembers field's value. +func (s *NodeGroup) SetNodeGroupMembers(v []*NodeGroupMember) *NodeGroup { + s.NodeGroupMembers = v + return s +} + +// SetPrimaryEndpoint sets the PrimaryEndpoint field's value. +func (s *NodeGroup) SetPrimaryEndpoint(v *Endpoint) *NodeGroup { + s.PrimaryEndpoint = v + return s +} + +// SetSlots sets the Slots field's value. +func (s *NodeGroup) SetSlots(v string) *NodeGroup { + s.Slots = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *NodeGroup) SetStatus(v string) *NodeGroup { + s.Status = &v + return s +} + // node group (shard) configuration options. Each node group (shard) configuration // has the following: Slots, PrimaryAvailabilityZone, ReplicaAvailabilityZones, // ReplicaCount. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/NodeGroupConfiguration type NodeGroupConfiguration struct { _ struct{} `type:"structure"` @@ -7180,7 +9110,32 @@ func (s NodeGroupConfiguration) GoString() string { return s.String() } +// SetPrimaryAvailabilityZone sets the PrimaryAvailabilityZone field's value. +func (s *NodeGroupConfiguration) SetPrimaryAvailabilityZone(v string) *NodeGroupConfiguration { + s.PrimaryAvailabilityZone = &v + return s +} + +// SetReplicaAvailabilityZones sets the ReplicaAvailabilityZones field's value. +func (s *NodeGroupConfiguration) SetReplicaAvailabilityZones(v []*string) *NodeGroupConfiguration { + s.ReplicaAvailabilityZones = v + return s +} + +// SetReplicaCount sets the ReplicaCount field's value. +func (s *NodeGroupConfiguration) SetReplicaCount(v int64) *NodeGroupConfiguration { + s.ReplicaCount = &v + return s +} + +// SetSlots sets the Slots field's value. +func (s *NodeGroupConfiguration) SetSlots(v string) *NodeGroupConfiguration { + s.Slots = &v + return s +} + // Represents a single node within a node group (shard). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/NodeGroupMember type NodeGroupMember struct { _ struct{} `type:"structure"` @@ -7212,7 +9167,38 @@ func (s NodeGroupMember) GoString() string { return s.String() } +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *NodeGroupMember) SetCacheClusterId(v string) *NodeGroupMember { + s.CacheClusterId = &v + return s +} + +// SetCacheNodeId sets the CacheNodeId field's value. +func (s *NodeGroupMember) SetCacheNodeId(v string) *NodeGroupMember { + s.CacheNodeId = &v + return s +} + +// SetCurrentRole sets the CurrentRole field's value. +func (s *NodeGroupMember) SetCurrentRole(v string) *NodeGroupMember { + s.CurrentRole = &v + return s +} + +// SetPreferredAvailabilityZone sets the PreferredAvailabilityZone field's value. +func (s *NodeGroupMember) SetPreferredAvailabilityZone(v string) *NodeGroupMember { + s.PreferredAvailabilityZone = &v + return s +} + +// SetReadEndpoint sets the ReadEndpoint field's value. +func (s *NodeGroupMember) SetReadEndpoint(v *Endpoint) *NodeGroupMember { + s.ReadEndpoint = v + return s +} + // Represents an individual cache node in a snapshot of a cache cluster. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/NodeSnapshot type NodeSnapshot struct { _ struct{} `type:"structure"` @@ -7249,9 +9235,52 @@ func (s NodeSnapshot) GoString() string { return s.String() } +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *NodeSnapshot) SetCacheClusterId(v string) *NodeSnapshot { + s.CacheClusterId = &v + return s +} + +// SetCacheNodeCreateTime sets the CacheNodeCreateTime field's value. +func (s *NodeSnapshot) SetCacheNodeCreateTime(v time.Time) *NodeSnapshot { + s.CacheNodeCreateTime = &v + return s +} + +// SetCacheNodeId sets the CacheNodeId field's value. +func (s *NodeSnapshot) SetCacheNodeId(v string) *NodeSnapshot { + s.CacheNodeId = &v + return s +} + +// SetCacheSize sets the CacheSize field's value. +func (s *NodeSnapshot) SetCacheSize(v string) *NodeSnapshot { + s.CacheSize = &v + return s +} + +// SetNodeGroupConfiguration sets the NodeGroupConfiguration field's value. +func (s *NodeSnapshot) SetNodeGroupConfiguration(v *NodeGroupConfiguration) *NodeSnapshot { + s.NodeGroupConfiguration = v + return s +} + +// SetNodeGroupId sets the NodeGroupId field's value. +func (s *NodeSnapshot) SetNodeGroupId(v string) *NodeSnapshot { + s.NodeGroupId = &v + return s +} + +// SetSnapshotCreateTime sets the SnapshotCreateTime field's value. +func (s *NodeSnapshot) SetSnapshotCreateTime(v time.Time) *NodeSnapshot { + s.SnapshotCreateTime = &v + return s +} + // Describes a notification topic and its status. Notification topics are used // for publishing ElastiCache events to subscribers using Amazon Simple Notification // Service (SNS). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/NotificationConfiguration type NotificationConfiguration struct { _ struct{} `type:"structure"` @@ -7272,8 +9301,21 @@ func (s NotificationConfiguration) GoString() string { return s.String() } +// SetTopicArn sets the TopicArn field's value. +func (s *NotificationConfiguration) SetTopicArn(v string) *NotificationConfiguration { + s.TopicArn = &v + return s +} + +// SetTopicStatus sets the TopicStatus field's value. +func (s *NotificationConfiguration) SetTopicStatus(v string) *NotificationConfiguration { + s.TopicStatus = &v + return s +} + // Describes an individual setting that controls some aspect of ElastiCache // behavior. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/Parameter type Parameter struct { _ struct{} `type:"structure"` @@ -7320,7 +9362,62 @@ func (s Parameter) GoString() string { return s.String() } +// SetAllowedValues sets the AllowedValues field's value. +func (s *Parameter) SetAllowedValues(v string) *Parameter { + s.AllowedValues = &v + return s +} + +// SetChangeType sets the ChangeType field's value. +func (s *Parameter) SetChangeType(v string) *Parameter { + s.ChangeType = &v + return s +} + +// SetDataType sets the DataType field's value. +func (s *Parameter) SetDataType(v string) *Parameter { + s.DataType = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Parameter) SetDescription(v string) *Parameter { + s.Description = &v + return s +} + +// SetIsModifiable sets the IsModifiable field's value. +func (s *Parameter) SetIsModifiable(v bool) *Parameter { + s.IsModifiable = &v + return s +} + +// SetMinimumEngineVersion sets the MinimumEngineVersion field's value. +func (s *Parameter) SetMinimumEngineVersion(v string) *Parameter { + s.MinimumEngineVersion = &v + return s +} + +// SetParameterName sets the ParameterName field's value. +func (s *Parameter) SetParameterName(v string) *Parameter { + s.ParameterName = &v + return s +} + +// SetParameterValue sets the ParameterValue field's value. +func (s *Parameter) SetParameterValue(v string) *Parameter { + s.ParameterValue = &v + return s +} + +// SetSource sets the Source field's value. +func (s *Parameter) SetSource(v string) *Parameter { + s.Source = &v + return s +} + // Describes a name-value pair that is used to update the value of a parameter. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ParameterNameValue type ParameterNameValue struct { _ struct{} `type:"structure"` @@ -7341,8 +9438,21 @@ func (s ParameterNameValue) GoString() string { return s.String() } +// SetParameterName sets the ParameterName field's value. +func (s *ParameterNameValue) SetParameterName(v string) *ParameterNameValue { + s.ParameterName = &v + return s +} + +// SetParameterValue sets the ParameterValue field's value. +func (s *ParameterNameValue) SetParameterValue(v string) *ParameterNameValue { + s.ParameterValue = &v + return s +} + // A group of settings that are applied to the cache cluster in the future, // or that are currently being applied. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/PendingModifiedValues type PendingModifiedValues struct { _ struct{} `type:"structure"` @@ -7374,7 +9484,32 @@ func (s PendingModifiedValues) GoString() string { return s.String() } +// SetCacheNodeIdsToRemove sets the CacheNodeIdsToRemove field's value. +func (s *PendingModifiedValues) SetCacheNodeIdsToRemove(v []*string) *PendingModifiedValues { + s.CacheNodeIdsToRemove = v + return s +} + +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *PendingModifiedValues) SetCacheNodeType(v string) *PendingModifiedValues { + s.CacheNodeType = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *PendingModifiedValues) SetEngineVersion(v string) *PendingModifiedValues { + s.EngineVersion = &v + return s +} + +// SetNumCacheNodes sets the NumCacheNodes field's value. +func (s *PendingModifiedValues) SetNumCacheNodes(v int64) *PendingModifiedValues { + s.NumCacheNodes = &v + return s +} + // Represents the input of a PurchaseReservedCacheNodesOffering operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/PurchaseReservedCacheNodesOfferingMessage type PurchaseReservedCacheNodesOfferingInput struct { _ struct{} `type:"structure"` @@ -7385,11 +9520,11 @@ type PurchaseReservedCacheNodesOfferingInput struct { // A customer-specified identifier to track this reservation. // - // The Reserved Cache Node ID is an unique customer-specified identifier to + // The Reserved Cache Node ID is an unique customer-specified identifier to // track this reservation. If this parameter is not specified, ElastiCache automatically // generates an identifier for the reservation. // - // Example: myreservationID + // Example: myreservationID ReservedCacheNodeId *string `type:"string"` // The ID of the reserved cache node offering to purchase. @@ -7423,6 +9558,25 @@ func (s *PurchaseReservedCacheNodesOfferingInput) Validate() error { return nil } +// SetCacheNodeCount sets the CacheNodeCount field's value. +func (s *PurchaseReservedCacheNodesOfferingInput) SetCacheNodeCount(v int64) *PurchaseReservedCacheNodesOfferingInput { + s.CacheNodeCount = &v + return s +} + +// SetReservedCacheNodeId sets the ReservedCacheNodeId field's value. +func (s *PurchaseReservedCacheNodesOfferingInput) SetReservedCacheNodeId(v string) *PurchaseReservedCacheNodesOfferingInput { + s.ReservedCacheNodeId = &v + return s +} + +// SetReservedCacheNodesOfferingId sets the ReservedCacheNodesOfferingId field's value. +func (s *PurchaseReservedCacheNodesOfferingInput) SetReservedCacheNodesOfferingId(v string) *PurchaseReservedCacheNodesOfferingInput { + s.ReservedCacheNodesOfferingId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/PurchaseReservedCacheNodesOfferingResult type PurchaseReservedCacheNodesOfferingOutput struct { _ struct{} `type:"structure"` @@ -7440,7 +9594,14 @@ func (s PurchaseReservedCacheNodesOfferingOutput) GoString() string { return s.String() } +// SetReservedCacheNode sets the ReservedCacheNode field's value. +func (s *PurchaseReservedCacheNodesOfferingOutput) SetReservedCacheNode(v *ReservedCacheNode) *PurchaseReservedCacheNodesOfferingOutput { + s.ReservedCacheNode = v + return s +} + // Represents the input of a RebootCacheCluster operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RebootCacheClusterMessage type RebootCacheClusterInput struct { _ struct{} `type:"structure"` @@ -7483,6 +9644,19 @@ func (s *RebootCacheClusterInput) Validate() error { return nil } +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *RebootCacheClusterInput) SetCacheClusterId(v string) *RebootCacheClusterInput { + s.CacheClusterId = &v + return s +} + +// SetCacheNodeIdsToReboot sets the CacheNodeIdsToReboot field's value. +func (s *RebootCacheClusterInput) SetCacheNodeIdsToReboot(v []*string) *RebootCacheClusterInput { + s.CacheNodeIdsToReboot = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RebootCacheClusterResult type RebootCacheClusterOutput struct { _ struct{} `type:"structure"` @@ -7500,8 +9674,15 @@ func (s RebootCacheClusterOutput) GoString() string { return s.String() } +// SetCacheCluster sets the CacheCluster field's value. +func (s *RebootCacheClusterOutput) SetCacheCluster(v *CacheCluster) *RebootCacheClusterOutput { + s.CacheCluster = v + return s +} + // Contains the specific price and frequency of a recurring charges for a reserved // cache node, or for a reserved cache node offering. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RecurringCharge type RecurringCharge struct { _ struct{} `type:"structure"` @@ -7522,7 +9703,20 @@ func (s RecurringCharge) GoString() string { return s.String() } +// SetRecurringChargeAmount sets the RecurringChargeAmount field's value. +func (s *RecurringCharge) SetRecurringChargeAmount(v float64) *RecurringCharge { + s.RecurringChargeAmount = &v + return s +} + +// SetRecurringChargeFrequency sets the RecurringChargeFrequency field's value. +func (s *RecurringCharge) SetRecurringChargeFrequency(v string) *RecurringCharge { + s.RecurringChargeFrequency = &v + return s +} + // Represents the input of a RemoveTagsFromResource operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RemoveTagsFromResourceMessage type RemoveTagsFromResourceInput struct { _ struct{} `type:"structure"` @@ -7568,17 +9762,30 @@ func (s *RemoveTagsFromResourceInput) Validate() error { return nil } +// SetResourceName sets the ResourceName field's value. +func (s *RemoveTagsFromResourceInput) SetResourceName(v string) *RemoveTagsFromResourceInput { + s.ResourceName = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsFromResourceInput) SetTagKeys(v []*string) *RemoveTagsFromResourceInput { + s.TagKeys = v + return s +} + // Contains all of the attributes of a specific Redis replication group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ReplicationGroup type ReplicationGroup struct { _ struct{} `type:"structure"` // Indicates the status of Multi-AZ for this replication group. // - // ElastiCache Multi-AZ replication groups are not supported on: + // ElastiCache Multi-AZ replication groups are not supported on: // - // Redis versions earlier than 2.8.6. + // Redis versions earlier than 2.8.6. // - // Redis (cluster mode disabled):T1 and T2 cache node types. + // Redis (cluster mode disabled):T1 and T2 cache node types. // // Redis (cluster mode enabled): T1 node types. AutomaticFailover *string `type:"string" enum:"AutomaticFailoverStatus"` @@ -7609,8 +9816,8 @@ type ReplicationGroup struct { // to 5, a snapshot that was taken today is retained for 5 days before being // deleted. // - // If the value of SnapshotRetentionLimit is set to zero (0), backups are - // turned off. + // If the value of SnapshotRetentionLimit is set to zero (0), backups are turned + // off. SnapshotRetentionLimit *int64 `type:"integer"` // The daily time range (in UTC) during which ElastiCache begins taking a daily @@ -7618,17 +9825,18 @@ type ReplicationGroup struct { // // Example: 05:00-09:00 // - // If you do not specify this parameter, ElastiCache automatically chooses - // an appropriate time range. + // If you do not specify this parameter, ElastiCache automatically chooses an + // appropriate time range. // - // Note: This parameter is only valid if the Engine parameter is redis. + // Note: This parameter is only valid if the Engine parameter is redis. SnapshotWindow *string `type:"string"` // The cache cluster ID that is used as the daily snapshot source for the replication // group. SnapshottingClusterId *string `type:"string"` - // The current state of this replication group - creating, available, etc. + // The current state of this replication group - creating, available, modifying, + // deleting, create-failed, snapshotting. Status *string `type:"string"` } @@ -7642,18 +9850,85 @@ func (s ReplicationGroup) GoString() string { return s.String() } +// SetAutomaticFailover sets the AutomaticFailover field's value. +func (s *ReplicationGroup) SetAutomaticFailover(v string) *ReplicationGroup { + s.AutomaticFailover = &v + return s +} + +// SetConfigurationEndpoint sets the ConfigurationEndpoint field's value. +func (s *ReplicationGroup) SetConfigurationEndpoint(v *Endpoint) *ReplicationGroup { + s.ConfigurationEndpoint = v + return s +} + +// SetDescription sets the Description field's value. +func (s *ReplicationGroup) SetDescription(v string) *ReplicationGroup { + s.Description = &v + return s +} + +// SetMemberClusters sets the MemberClusters field's value. +func (s *ReplicationGroup) SetMemberClusters(v []*string) *ReplicationGroup { + s.MemberClusters = v + return s +} + +// SetNodeGroups sets the NodeGroups field's value. +func (s *ReplicationGroup) SetNodeGroups(v []*NodeGroup) *ReplicationGroup { + s.NodeGroups = v + return s +} + +// SetPendingModifiedValues sets the PendingModifiedValues field's value. +func (s *ReplicationGroup) SetPendingModifiedValues(v *ReplicationGroupPendingModifiedValues) *ReplicationGroup { + s.PendingModifiedValues = v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *ReplicationGroup) SetReplicationGroupId(v string) *ReplicationGroup { + s.ReplicationGroupId = &v + return s +} + +// SetSnapshotRetentionLimit sets the SnapshotRetentionLimit field's value. +func (s *ReplicationGroup) SetSnapshotRetentionLimit(v int64) *ReplicationGroup { + s.SnapshotRetentionLimit = &v + return s +} + +// SetSnapshotWindow sets the SnapshotWindow field's value. +func (s *ReplicationGroup) SetSnapshotWindow(v string) *ReplicationGroup { + s.SnapshotWindow = &v + return s +} + +// SetSnapshottingClusterId sets the SnapshottingClusterId field's value. +func (s *ReplicationGroup) SetSnapshottingClusterId(v string) *ReplicationGroup { + s.SnapshottingClusterId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ReplicationGroup) SetStatus(v string) *ReplicationGroup { + s.Status = &v + return s +} + // The settings to be applied to the Redis replication group, either immediately // or during the next maintenance window. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ReplicationGroupPendingModifiedValues type ReplicationGroupPendingModifiedValues struct { _ struct{} `type:"structure"` // Indicates the status of Multi-AZ for this Redis replication group. // - // ElastiCache Multi-AZ replication groups are not supported on: + // ElastiCache Multi-AZ replication groups are not supported on: // - // Redis versions earlier than 2.8.6. + // Redis versions earlier than 2.8.6. // - // Redis (cluster mode disabled):T1 and T2 cache node types. + // Redis (cluster mode disabled):T1 and T2 cache node types. // // Redis (cluster mode enabled): T1 node types. AutomaticFailoverStatus *string `type:"string" enum:"PendingAutomaticFailoverStatus"` @@ -7673,7 +9948,20 @@ func (s ReplicationGroupPendingModifiedValues) GoString() string { return s.String() } +// SetAutomaticFailoverStatus sets the AutomaticFailoverStatus field's value. +func (s *ReplicationGroupPendingModifiedValues) SetAutomaticFailoverStatus(v string) *ReplicationGroupPendingModifiedValues { + s.AutomaticFailoverStatus = &v + return s +} + +// SetPrimaryClusterId sets the PrimaryClusterId field's value. +func (s *ReplicationGroupPendingModifiedValues) SetPrimaryClusterId(v string) *ReplicationGroupPendingModifiedValues { + s.PrimaryClusterId = &v + return s +} + // Represents the output of a PurchaseReservedCacheNodesOffering operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ReservedCacheNode type ReservedCacheNode struct { _ struct{} `type:"structure"` @@ -7684,37 +9972,37 @@ type ReservedCacheNode struct { // // Valid node types are as follows: // - // General purpose: + // * General purpose: // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge + // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge + // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge // - // Compute optimized: cache.c1.xlarge + // * Compute optimized: cache.c1.xlarge // - // Memory optimized: + // * Memory optimized: // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge + // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge + // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge // - // Notes: + // Notes: // - // All T2 instances are created in an Amazon Virtual Private Cloud (Amazon - // VPC). + // * All T2 instances are created in an Amazon Virtual Private Cloud (Amazon + // VPC). // - // Redis backup/restore is not supported for Redis (cluster mode disabled) - // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode enabled) - // T2 instances. + // * Redis backup/restore is not supported for Redis (cluster mode disabled) + // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode + // enabled) T2 instances. // - // Redis Append-only files (AOF) functionality is not supported for T1 or - // T2 instances. + // * Redis Append-only files (AOF) functionality is not supported for T1 + // or T2 instances. // - // For a complete listing of node types and specifications, see Amazon ElastiCache + // For a complete listing of node types and specifications, see Amazon ElastiCache // Product Features and Details (http://aws.amazon.com/elasticache/details) // and either Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific). @@ -7761,7 +10049,80 @@ func (s ReservedCacheNode) GoString() string { return s.String() } +// SetCacheNodeCount sets the CacheNodeCount field's value. +func (s *ReservedCacheNode) SetCacheNodeCount(v int64) *ReservedCacheNode { + s.CacheNodeCount = &v + return s +} + +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *ReservedCacheNode) SetCacheNodeType(v string) *ReservedCacheNode { + s.CacheNodeType = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *ReservedCacheNode) SetDuration(v int64) *ReservedCacheNode { + s.Duration = &v + return s +} + +// SetFixedPrice sets the FixedPrice field's value. +func (s *ReservedCacheNode) SetFixedPrice(v float64) *ReservedCacheNode { + s.FixedPrice = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *ReservedCacheNode) SetOfferingType(v string) *ReservedCacheNode { + s.OfferingType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *ReservedCacheNode) SetProductDescription(v string) *ReservedCacheNode { + s.ProductDescription = &v + return s +} + +// SetRecurringCharges sets the RecurringCharges field's value. +func (s *ReservedCacheNode) SetRecurringCharges(v []*RecurringCharge) *ReservedCacheNode { + s.RecurringCharges = v + return s +} + +// SetReservedCacheNodeId sets the ReservedCacheNodeId field's value. +func (s *ReservedCacheNode) SetReservedCacheNodeId(v string) *ReservedCacheNode { + s.ReservedCacheNodeId = &v + return s +} + +// SetReservedCacheNodesOfferingId sets the ReservedCacheNodesOfferingId field's value. +func (s *ReservedCacheNode) SetReservedCacheNodesOfferingId(v string) *ReservedCacheNode { + s.ReservedCacheNodesOfferingId = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *ReservedCacheNode) SetStartTime(v time.Time) *ReservedCacheNode { + s.StartTime = &v + return s +} + +// SetState sets the State field's value. +func (s *ReservedCacheNode) SetState(v string) *ReservedCacheNode { + s.State = &v + return s +} + +// SetUsagePrice sets the UsagePrice field's value. +func (s *ReservedCacheNode) SetUsagePrice(v float64) *ReservedCacheNode { + s.UsagePrice = &v + return s +} + // Describes all of the attributes of a reserved cache node offering. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ReservedCacheNodesOffering type ReservedCacheNodesOffering struct { _ struct{} `type:"structure"` @@ -7769,37 +10130,37 @@ type ReservedCacheNodesOffering struct { // // Valid node types are as follows: // - // General purpose: + // * General purpose: // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge + // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge + // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge // - // Compute optimized: cache.c1.xlarge + // * Compute optimized: cache.c1.xlarge // - // Memory optimized: + // * Memory optimized: // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge + // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge + // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge // - // Notes: + // Notes: // - // All T2 instances are created in an Amazon Virtual Private Cloud (Amazon - // VPC). + // * All T2 instances are created in an Amazon Virtual Private Cloud (Amazon + // VPC). // - // Redis backup/restore is not supported for Redis (cluster mode disabled) - // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode enabled) - // T2 instances. + // * Redis backup/restore is not supported for Redis (cluster mode disabled) + // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode + // enabled) T2 instances. // - // Redis Append-only files (AOF) functionality is not supported for T1 or - // T2 instances. + // * Redis Append-only files (AOF) functionality is not supported for T1 + // or T2 instances. // - // For a complete listing of node types and specifications, see Amazon ElastiCache + // For a complete listing of node types and specifications, see Amazon ElastiCache // Product Features and Details (http://aws.amazon.com/elasticache/details) // and either Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific). @@ -7837,7 +10198,56 @@ func (s ReservedCacheNodesOffering) GoString() string { return s.String() } +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *ReservedCacheNodesOffering) SetCacheNodeType(v string) *ReservedCacheNodesOffering { + s.CacheNodeType = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *ReservedCacheNodesOffering) SetDuration(v int64) *ReservedCacheNodesOffering { + s.Duration = &v + return s +} + +// SetFixedPrice sets the FixedPrice field's value. +func (s *ReservedCacheNodesOffering) SetFixedPrice(v float64) *ReservedCacheNodesOffering { + s.FixedPrice = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *ReservedCacheNodesOffering) SetOfferingType(v string) *ReservedCacheNodesOffering { + s.OfferingType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *ReservedCacheNodesOffering) SetProductDescription(v string) *ReservedCacheNodesOffering { + s.ProductDescription = &v + return s +} + +// SetRecurringCharges sets the RecurringCharges field's value. +func (s *ReservedCacheNodesOffering) SetRecurringCharges(v []*RecurringCharge) *ReservedCacheNodesOffering { + s.RecurringCharges = v + return s +} + +// SetReservedCacheNodesOfferingId sets the ReservedCacheNodesOfferingId field's value. +func (s *ReservedCacheNodesOffering) SetReservedCacheNodesOfferingId(v string) *ReservedCacheNodesOffering { + s.ReservedCacheNodesOfferingId = &v + return s +} + +// SetUsagePrice sets the UsagePrice field's value. +func (s *ReservedCacheNodesOffering) SetUsagePrice(v float64) *ReservedCacheNodesOffering { + s.UsagePrice = &v + return s +} + // Represents the input of a ResetCacheParameterGroup operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ResetCacheParameterGroupMessage type ResetCacheParameterGroupInput struct { _ struct{} `type:"structure"` @@ -7882,7 +10292,26 @@ func (s *ResetCacheParameterGroupInput) Validate() error { return nil } +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *ResetCacheParameterGroupInput) SetCacheParameterGroupName(v string) *ResetCacheParameterGroupInput { + s.CacheParameterGroupName = &v + return s +} + +// SetParameterNameValues sets the ParameterNameValues field's value. +func (s *ResetCacheParameterGroupInput) SetParameterNameValues(v []*ParameterNameValue) *ResetCacheParameterGroupInput { + s.ParameterNameValues = v + return s +} + +// SetResetAllParameters sets the ResetAllParameters field's value. +func (s *ResetCacheParameterGroupInput) SetResetAllParameters(v bool) *ResetCacheParameterGroupInput { + s.ResetAllParameters = &v + return s +} + // Represents the input of a RevokeCacheSecurityGroupIngress operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RevokeCacheSecurityGroupIngressMessage type RevokeCacheSecurityGroupIngressInput struct { _ struct{} `type:"structure"` @@ -7933,16 +10362,35 @@ func (s *RevokeCacheSecurityGroupIngressInput) Validate() error { return nil } +// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value. +func (s *RevokeCacheSecurityGroupIngressInput) SetCacheSecurityGroupName(v string) *RevokeCacheSecurityGroupIngressInput { + s.CacheSecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value. +func (s *RevokeCacheSecurityGroupIngressInput) SetEC2SecurityGroupName(v string) *RevokeCacheSecurityGroupIngressInput { + s.EC2SecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value. +func (s *RevokeCacheSecurityGroupIngressInput) SetEC2SecurityGroupOwnerId(v string) *RevokeCacheSecurityGroupIngressInput { + s.EC2SecurityGroupOwnerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RevokeCacheSecurityGroupIngressResult type RevokeCacheSecurityGroupIngressOutput struct { _ struct{} `type:"structure"` // Represents the output of one of the following operations: // - // AuthorizeCacheSecurityGroupIngress + // * AuthorizeCacheSecurityGroupIngress // - // CreateCacheSecurityGroup + // * CreateCacheSecurityGroup // - // RevokeCacheSecurityGroupIngress + // * RevokeCacheSecurityGroupIngress CacheSecurityGroup *CacheSecurityGroup `type:"structure"` } @@ -7956,7 +10404,14 @@ func (s RevokeCacheSecurityGroupIngressOutput) GoString() string { return s.String() } +// SetCacheSecurityGroup sets the CacheSecurityGroup field's value. +func (s *RevokeCacheSecurityGroupIngressOutput) SetCacheSecurityGroup(v *CacheSecurityGroup) *RevokeCacheSecurityGroupIngressOutput { + s.CacheSecurityGroup = v + return s +} + // Represents a single cache security group and its status. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/SecurityGroupMembership type SecurityGroupMembership struct { _ struct{} `type:"structure"` @@ -7979,8 +10434,21 @@ func (s SecurityGroupMembership) GoString() string { return s.String() } +// SetSecurityGroupId sets the SecurityGroupId field's value. +func (s *SecurityGroupMembership) SetSecurityGroupId(v string) *SecurityGroupMembership { + s.SecurityGroupId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SecurityGroupMembership) SetStatus(v string) *SecurityGroupMembership { + s.Status = &v + return s +} + // Represents a copy of an entire Redis cache cluster as of the time when the // snapshot was taken. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/Snapshot type Snapshot struct { _ struct{} `type:"structure"` @@ -7989,11 +10457,11 @@ type Snapshot struct { // Indicates the status of Multi-AZ for the source replication group. // - // ElastiCache Multi-AZ replication groups are not supported on: + // ElastiCache Multi-AZ replication groups are not supported on: // - // Redis versions earlier than 2.8.6. + // Redis versions earlier than 2.8.6. // - // Redis (cluster mode disabled):T1 and T2 cache node types. + // Redis (cluster mode disabled):T1 and T2 cache node types. // // Redis (cluster mode enabled): T1 node types. AutomaticFailover *string `type:"string" enum:"AutomaticFailoverStatus"` @@ -8009,37 +10477,37 @@ type Snapshot struct { // // Valid node types are as follows: // - // General purpose: + // * General purpose: // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge + // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge, cache.m4.large, cache.m4.xlarge, + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge + // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge // - // Compute optimized: cache.c1.xlarge + // * Compute optimized: cache.c1.xlarge // - // Memory optimized: + // * Memory optimized: // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge + // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge + // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge // - // Notes: + // Notes: // - // All T2 instances are created in an Amazon Virtual Private Cloud (Amazon - // VPC). + // * All T2 instances are created in an Amazon Virtual Private Cloud (Amazon + // VPC). // - // Redis backup/restore is not supported for Redis (cluster mode disabled) - // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode enabled) - // T2 instances. + // * Redis backup/restore is not supported for Redis (cluster mode disabled) + // T1 and T2 instances. Backup/restore is supported on Redis (cluster mode + // enabled) T2 instances. // - // Redis Append-only files (AOF) functionality is not supported for T1 or - // T2 instances. + // * Redis Append-only files (AOF) functionality is not supported for T1 + // or T2 instances. // - // For a complete listing of node types and specifications, see Amazon ElastiCache + // For a complete listing of node types and specifications, see Amazon ElastiCache // Product Features and Details (http://aws.amazon.com/elasticache/details) // and either Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific). @@ -8085,21 +10553,21 @@ type Snapshot struct { // // Valid values for ddd are: // - // sun + // * sun // - // mon + // * mon // - // tue + // * tue // - // wed + // * wed // - // thu + // * thu // - // fri + // * fri // - // sat + // * sat // - // Example: sun:23:00-mon:01:30 + // Example: sun:23:00-mon:01:30 PreferredMaintenanceWindow *string `type:"string"` // A description of the source replication group. @@ -8120,7 +10588,7 @@ type Snapshot struct { // ignored: Manual snapshots do not expire, and can only be deleted using the // DeleteSnapshot operation. // - // Important If the value of SnapshotRetentionLimit is set to zero (0), backups + // Important If the value of SnapshotRetentionLimit is set to zero (0), backups // are turned off. SnapshotRetentionLimit *int64 `type:"integer"` @@ -8155,9 +10623,154 @@ func (s Snapshot) GoString() string { return s.String() } +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *Snapshot) SetAutoMinorVersionUpgrade(v bool) *Snapshot { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetAutomaticFailover sets the AutomaticFailover field's value. +func (s *Snapshot) SetAutomaticFailover(v string) *Snapshot { + s.AutomaticFailover = &v + return s +} + +// SetCacheClusterCreateTime sets the CacheClusterCreateTime field's value. +func (s *Snapshot) SetCacheClusterCreateTime(v time.Time) *Snapshot { + s.CacheClusterCreateTime = &v + return s +} + +// SetCacheClusterId sets the CacheClusterId field's value. +func (s *Snapshot) SetCacheClusterId(v string) *Snapshot { + s.CacheClusterId = &v + return s +} + +// SetCacheNodeType sets the CacheNodeType field's value. +func (s *Snapshot) SetCacheNodeType(v string) *Snapshot { + s.CacheNodeType = &v + return s +} + +// SetCacheParameterGroupName sets the CacheParameterGroupName field's value. +func (s *Snapshot) SetCacheParameterGroupName(v string) *Snapshot { + s.CacheParameterGroupName = &v + return s +} + +// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value. +func (s *Snapshot) SetCacheSubnetGroupName(v string) *Snapshot { + s.CacheSubnetGroupName = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *Snapshot) SetEngine(v string) *Snapshot { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *Snapshot) SetEngineVersion(v string) *Snapshot { + s.EngineVersion = &v + return s +} + +// SetNodeSnapshots sets the NodeSnapshots field's value. +func (s *Snapshot) SetNodeSnapshots(v []*NodeSnapshot) *Snapshot { + s.NodeSnapshots = v + return s +} + +// SetNumCacheNodes sets the NumCacheNodes field's value. +func (s *Snapshot) SetNumCacheNodes(v int64) *Snapshot { + s.NumCacheNodes = &v + return s +} + +// SetNumNodeGroups sets the NumNodeGroups field's value. +func (s *Snapshot) SetNumNodeGroups(v int64) *Snapshot { + s.NumNodeGroups = &v + return s +} + +// SetPort sets the Port field's value. +func (s *Snapshot) SetPort(v int64) *Snapshot { + s.Port = &v + return s +} + +// SetPreferredAvailabilityZone sets the PreferredAvailabilityZone field's value. +func (s *Snapshot) SetPreferredAvailabilityZone(v string) *Snapshot { + s.PreferredAvailabilityZone = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *Snapshot) SetPreferredMaintenanceWindow(v string) *Snapshot { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetReplicationGroupDescription sets the ReplicationGroupDescription field's value. +func (s *Snapshot) SetReplicationGroupDescription(v string) *Snapshot { + s.ReplicationGroupDescription = &v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *Snapshot) SetReplicationGroupId(v string) *Snapshot { + s.ReplicationGroupId = &v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *Snapshot) SetSnapshotName(v string) *Snapshot { + s.SnapshotName = &v + return s +} + +// SetSnapshotRetentionLimit sets the SnapshotRetentionLimit field's value. +func (s *Snapshot) SetSnapshotRetentionLimit(v int64) *Snapshot { + s.SnapshotRetentionLimit = &v + return s +} + +// SetSnapshotSource sets the SnapshotSource field's value. +func (s *Snapshot) SetSnapshotSource(v string) *Snapshot { + s.SnapshotSource = &v + return s +} + +// SetSnapshotStatus sets the SnapshotStatus field's value. +func (s *Snapshot) SetSnapshotStatus(v string) *Snapshot { + s.SnapshotStatus = &v + return s +} + +// SetSnapshotWindow sets the SnapshotWindow field's value. +func (s *Snapshot) SetSnapshotWindow(v string) *Snapshot { + s.SnapshotWindow = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *Snapshot) SetTopicArn(v string) *Snapshot { + s.TopicArn = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *Snapshot) SetVpcId(v string) *Snapshot { + s.VpcId = &v + return s +} + // Represents the subnet associated with a cache cluster. This parameter refers // to subnets defined in Amazon Virtual Private Cloud (Amazon VPC) and used // with ElastiCache. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/Subnet type Subnet struct { _ struct{} `type:"structure"` @@ -8178,9 +10791,22 @@ func (s Subnet) GoString() string { return s.String() } +// SetSubnetAvailabilityZone sets the SubnetAvailabilityZone field's value. +func (s *Subnet) SetSubnetAvailabilityZone(v *AvailabilityZone) *Subnet { + s.SubnetAvailabilityZone = v + return s +} + +// SetSubnetIdentifier sets the SubnetIdentifier field's value. +func (s *Subnet) SetSubnetIdentifier(v string) *Subnet { + s.SubnetIdentifier = &v + return s +} + // A cost allocation Tag that can be added to an ElastiCache cluster or replication // group. Tags are composed of a Key/Value pair. A tag with a null Value is // permitted. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/Tag type Tag struct { _ struct{} `type:"structure"` @@ -8201,8 +10827,21 @@ func (s Tag) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Represents the output from the AddTagsToResource, ListTagsOnResource, and // RemoveTagsFromResource operations. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/TagListMessage type TagListMessage struct { _ struct{} `type:"structure"` @@ -8220,6 +10859,12 @@ func (s TagListMessage) GoString() string { return s.String() } +// SetTagList sets the TagList field's value. +func (s *TagListMessage) SetTagList(v []*Tag) *TagListMessage { + s.TagList = v + return s +} + const ( // AZModeSingleAz is a AZMode enum value AZModeSingleAz = "single-az" diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface/interface.go index 72354fb70..21bcf34e6 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockElastiCacheClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticache/errors.go b/vendor/github.com/aws/aws-sdk-go/service/elasticache/errors.go new file mode 100644 index 000000000..f5cffec0a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticache/errors.go @@ -0,0 +1,293 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package elasticache + +const ( + + // ErrCodeAuthorizationAlreadyExistsFault for service response error code + // "AuthorizationAlreadyExists". + // + // The specified Amazon EC2 security group is already authorized for the specified + // cache security group. + ErrCodeAuthorizationAlreadyExistsFault = "AuthorizationAlreadyExists" + + // ErrCodeAuthorizationNotFoundFault for service response error code + // "AuthorizationNotFound". + // + // The specified Amazon EC2 security group is not authorized for the specified + // cache security group. + ErrCodeAuthorizationNotFoundFault = "AuthorizationNotFound" + + // ErrCodeCacheClusterAlreadyExistsFault for service response error code + // "CacheClusterAlreadyExists". + // + // You already have a cache cluster with the given identifier. + ErrCodeCacheClusterAlreadyExistsFault = "CacheClusterAlreadyExists" + + // ErrCodeCacheClusterNotFoundFault for service response error code + // "CacheClusterNotFound". + // + // The requested cache cluster ID does not refer to an existing cache cluster. + ErrCodeCacheClusterNotFoundFault = "CacheClusterNotFound" + + // ErrCodeCacheParameterGroupAlreadyExistsFault for service response error code + // "CacheParameterGroupAlreadyExists". + // + // A cache parameter group with the requested name already exists. + ErrCodeCacheParameterGroupAlreadyExistsFault = "CacheParameterGroupAlreadyExists" + + // ErrCodeCacheParameterGroupNotFoundFault for service response error code + // "CacheParameterGroupNotFound". + // + // The requested cache parameter group name does not refer to an existing cache + // parameter group. + ErrCodeCacheParameterGroupNotFoundFault = "CacheParameterGroupNotFound" + + // ErrCodeCacheParameterGroupQuotaExceededFault for service response error code + // "CacheParameterGroupQuotaExceeded". + // + // The request cannot be processed because it would exceed the maximum number + // of cache security groups. + ErrCodeCacheParameterGroupQuotaExceededFault = "CacheParameterGroupQuotaExceeded" + + // ErrCodeCacheSecurityGroupAlreadyExistsFault for service response error code + // "CacheSecurityGroupAlreadyExists". + // + // A cache security group with the specified name already exists. + ErrCodeCacheSecurityGroupAlreadyExistsFault = "CacheSecurityGroupAlreadyExists" + + // ErrCodeCacheSecurityGroupNotFoundFault for service response error code + // "CacheSecurityGroupNotFound". + // + // The requested cache security group name does not refer to an existing cache + // security group. + ErrCodeCacheSecurityGroupNotFoundFault = "CacheSecurityGroupNotFound" + + // ErrCodeCacheSecurityGroupQuotaExceededFault for service response error code + // "QuotaExceeded.CacheSecurityGroup". + // + // The request cannot be processed because it would exceed the allowed number + // of cache security groups. + ErrCodeCacheSecurityGroupQuotaExceededFault = "QuotaExceeded.CacheSecurityGroup" + + // ErrCodeCacheSubnetGroupAlreadyExistsFault for service response error code + // "CacheSubnetGroupAlreadyExists". + // + // The requested cache subnet group name is already in use by an existing cache + // subnet group. + ErrCodeCacheSubnetGroupAlreadyExistsFault = "CacheSubnetGroupAlreadyExists" + + // ErrCodeCacheSubnetGroupInUse for service response error code + // "CacheSubnetGroupInUse". + // + // The requested cache subnet group is currently in use. + ErrCodeCacheSubnetGroupInUse = "CacheSubnetGroupInUse" + + // ErrCodeCacheSubnetGroupNotFoundFault for service response error code + // "CacheSubnetGroupNotFoundFault". + // + // The requested cache subnet group name does not refer to an existing cache + // subnet group. + ErrCodeCacheSubnetGroupNotFoundFault = "CacheSubnetGroupNotFoundFault" + + // ErrCodeCacheSubnetGroupQuotaExceededFault for service response error code + // "CacheSubnetGroupQuotaExceeded". + // + // The request cannot be processed because it would exceed the allowed number + // of cache subnet groups. + ErrCodeCacheSubnetGroupQuotaExceededFault = "CacheSubnetGroupQuotaExceeded" + + // ErrCodeCacheSubnetQuotaExceededFault for service response error code + // "CacheSubnetQuotaExceededFault". + // + // The request cannot be processed because it would exceed the allowed number + // of subnets in a cache subnet group. + ErrCodeCacheSubnetQuotaExceededFault = "CacheSubnetQuotaExceededFault" + + // ErrCodeClusterQuotaForCustomerExceededFault for service response error code + // "ClusterQuotaForCustomerExceeded". + // + // The request cannot be processed because it would exceed the allowed number + // of cache clusters per customer. + ErrCodeClusterQuotaForCustomerExceededFault = "ClusterQuotaForCustomerExceeded" + + // ErrCodeInsufficientCacheClusterCapacityFault for service response error code + // "InsufficientCacheClusterCapacity". + // + // The requested cache node type is not available in the specified Availability + // Zone. + ErrCodeInsufficientCacheClusterCapacityFault = "InsufficientCacheClusterCapacity" + + // ErrCodeInvalidARNFault for service response error code + // "InvalidARN". + // + // The requested Amazon Resource Name (ARN) does not refer to an existing resource. + ErrCodeInvalidARNFault = "InvalidARN" + + // ErrCodeInvalidCacheClusterStateFault for service response error code + // "InvalidCacheClusterState". + // + // The requested cache cluster is not in the available state. + ErrCodeInvalidCacheClusterStateFault = "InvalidCacheClusterState" + + // ErrCodeInvalidCacheParameterGroupStateFault for service response error code + // "InvalidCacheParameterGroupState". + // + // The current state of the cache parameter group does not allow the requested + // operation to occur. + ErrCodeInvalidCacheParameterGroupStateFault = "InvalidCacheParameterGroupState" + + // ErrCodeInvalidCacheSecurityGroupStateFault for service response error code + // "InvalidCacheSecurityGroupState". + // + // The current state of the cache security group does not allow deletion. + ErrCodeInvalidCacheSecurityGroupStateFault = "InvalidCacheSecurityGroupState" + + // ErrCodeInvalidParameterCombinationException for service response error code + // "InvalidParameterCombination". + // + // Two or more incompatible parameters were specified. + ErrCodeInvalidParameterCombinationException = "InvalidParameterCombination" + + // ErrCodeInvalidParameterValueException for service response error code + // "InvalidParameterValue". + // + // The value for a parameter is invalid. + ErrCodeInvalidParameterValueException = "InvalidParameterValue" + + // ErrCodeInvalidReplicationGroupStateFault for service response error code + // "InvalidReplicationGroupState". + // + // The requested replication group is not in the available state. + ErrCodeInvalidReplicationGroupStateFault = "InvalidReplicationGroupState" + + // ErrCodeInvalidSnapshotStateFault for service response error code + // "InvalidSnapshotState". + // + // The current state of the snapshot does not allow the requested operation + // to occur. + ErrCodeInvalidSnapshotStateFault = "InvalidSnapshotState" + + // ErrCodeInvalidSubnet for service response error code + // "InvalidSubnet". + // + // An invalid subnet identifier was specified. + ErrCodeInvalidSubnet = "InvalidSubnet" + + // ErrCodeInvalidVPCNetworkStateFault for service response error code + // "InvalidVPCNetworkStateFault". + // + // The VPC network is in an invalid state. + ErrCodeInvalidVPCNetworkStateFault = "InvalidVPCNetworkStateFault" + + // ErrCodeNodeGroupsPerReplicationGroupQuotaExceededFault for service response error code + // "NodeGroupsPerReplicationGroupQuotaExceeded". + // + // The request cannot be processed because it would exceed the maximum of 15 + // node groups (shards) in a single replication group. + ErrCodeNodeGroupsPerReplicationGroupQuotaExceededFault = "NodeGroupsPerReplicationGroupQuotaExceeded" + + // ErrCodeNodeQuotaForClusterExceededFault for service response error code + // "NodeQuotaForClusterExceeded". + // + // The request cannot be processed because it would exceed the allowed number + // of cache nodes in a single cache cluster. + ErrCodeNodeQuotaForClusterExceededFault = "NodeQuotaForClusterExceeded" + + // ErrCodeNodeQuotaForCustomerExceededFault for service response error code + // "NodeQuotaForCustomerExceeded". + // + // The request cannot be processed because it would exceed the allowed number + // of cache nodes per customer. + ErrCodeNodeQuotaForCustomerExceededFault = "NodeQuotaForCustomerExceeded" + + // ErrCodeReplicationGroupAlreadyExistsFault for service response error code + // "ReplicationGroupAlreadyExists". + // + // The specified replication group already exists. + ErrCodeReplicationGroupAlreadyExistsFault = "ReplicationGroupAlreadyExists" + + // ErrCodeReplicationGroupNotFoundFault for service response error code + // "ReplicationGroupNotFoundFault". + // + // The specified replication group does not exist. + ErrCodeReplicationGroupNotFoundFault = "ReplicationGroupNotFoundFault" + + // ErrCodeReservedCacheNodeAlreadyExistsFault for service response error code + // "ReservedCacheNodeAlreadyExists". + // + // You already have a reservation with the given identifier. + ErrCodeReservedCacheNodeAlreadyExistsFault = "ReservedCacheNodeAlreadyExists" + + // ErrCodeReservedCacheNodeNotFoundFault for service response error code + // "ReservedCacheNodeNotFound". + // + // The requested reserved cache node was not found. + ErrCodeReservedCacheNodeNotFoundFault = "ReservedCacheNodeNotFound" + + // ErrCodeReservedCacheNodeQuotaExceededFault for service response error code + // "ReservedCacheNodeQuotaExceeded". + // + // The request cannot be processed because it would exceed the user's cache + // node quota. + ErrCodeReservedCacheNodeQuotaExceededFault = "ReservedCacheNodeQuotaExceeded" + + // ErrCodeReservedCacheNodesOfferingNotFoundFault for service response error code + // "ReservedCacheNodesOfferingNotFound". + // + // The requested cache node offering does not exist. + ErrCodeReservedCacheNodesOfferingNotFoundFault = "ReservedCacheNodesOfferingNotFound" + + // ErrCodeSnapshotAlreadyExistsFault for service response error code + // "SnapshotAlreadyExistsFault". + // + // You already have a snapshot with the given name. + ErrCodeSnapshotAlreadyExistsFault = "SnapshotAlreadyExistsFault" + + // ErrCodeSnapshotFeatureNotSupportedFault for service response error code + // "SnapshotFeatureNotSupportedFault". + // + // You attempted one of the following operations: + // + // * Creating a snapshot of a Redis cache cluster running on a cache.t1.micro + // cache node. + // + // * Creating a snapshot of a cache cluster that is running Memcached rather + // than Redis. + // + // Neither of these are supported by ElastiCache. + ErrCodeSnapshotFeatureNotSupportedFault = "SnapshotFeatureNotSupportedFault" + + // ErrCodeSnapshotNotFoundFault for service response error code + // "SnapshotNotFoundFault". + // + // The requested snapshot name does not refer to an existing snapshot. + ErrCodeSnapshotNotFoundFault = "SnapshotNotFoundFault" + + // ErrCodeSnapshotQuotaExceededFault for service response error code + // "SnapshotQuotaExceededFault". + // + // The request cannot be processed because it would exceed the maximum number + // of snapshots. + ErrCodeSnapshotQuotaExceededFault = "SnapshotQuotaExceededFault" + + // ErrCodeSubnetInUse for service response error code + // "SubnetInUse". + // + // The requested subnet is being used by another cache subnet group. + ErrCodeSubnetInUse = "SubnetInUse" + + // ErrCodeTagNotFoundFault for service response error code + // "TagNotFound". + // + // The requested tag was not found on this resource. + ErrCodeTagNotFoundFault = "TagNotFound" + + // ErrCodeTagQuotaPerResourceExceeded for service response error code + // "TagQuotaPerResourceExceeded". + // + // The request cannot be processed because it would cause the resource to have + // more than the allowed number of tags. The maximum number of tags permitted + // on a resource is 10. + ErrCodeTagQuotaPerResourceExceeded = "TagQuotaPerResourceExceeded" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticache/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/elasticache/examples_test.go index b675dd92d..3d30497f6 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticache/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticache/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleElastiCache_AddTagsToResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -48,11 +44,7 @@ func ExampleElastiCache_AddTagsToResource() { } func ExampleElastiCache_AuthorizeCacheSecurityGroupIngress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -75,11 +67,7 @@ func ExampleElastiCache_AuthorizeCacheSecurityGroupIngress() { } func ExampleElastiCache_CopySnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -102,17 +90,14 @@ func ExampleElastiCache_CopySnapshot() { } func ExampleElastiCache_CreateCacheCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) params := &elasticache.CreateCacheClusterInput{ CacheClusterId: aws.String("String"), // Required AZMode: aws.String("AZMode"), + AuthToken: aws.String("String"), AutoMinorVersionUpgrade: aws.Bool(true), CacheNodeType: aws.String("String"), CacheParameterGroupName: aws.String("String"), @@ -166,11 +151,7 @@ func ExampleElastiCache_CreateCacheCluster() { } func ExampleElastiCache_CreateCacheParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -193,11 +174,7 @@ func ExampleElastiCache_CreateCacheParameterGroup() { } func ExampleElastiCache_CreateCacheSecurityGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -219,11 +196,7 @@ func ExampleElastiCache_CreateCacheSecurityGroup() { } func ExampleElastiCache_CreateCacheSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -249,17 +222,14 @@ func ExampleElastiCache_CreateCacheSubnetGroup() { } func ExampleElastiCache_CreateReplicationGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) params := &elasticache.CreateReplicationGroupInput{ ReplicationGroupDescription: aws.String("String"), // Required ReplicationGroupId: aws.String("String"), // Required + AuthToken: aws.String("String"), AutoMinorVersionUpgrade: aws.Bool(true), AutomaticFailoverEnabled: aws.Bool(true), CacheNodeType: aws.String("String"), @@ -327,11 +297,7 @@ func ExampleElastiCache_CreateReplicationGroup() { } func ExampleElastiCache_CreateSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -354,11 +320,7 @@ func ExampleElastiCache_CreateSnapshot() { } func ExampleElastiCache_DeleteCacheCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -380,11 +342,7 @@ func ExampleElastiCache_DeleteCacheCluster() { } func ExampleElastiCache_DeleteCacheParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -405,11 +363,7 @@ func ExampleElastiCache_DeleteCacheParameterGroup() { } func ExampleElastiCache_DeleteCacheSecurityGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -430,11 +384,7 @@ func ExampleElastiCache_DeleteCacheSecurityGroup() { } func ExampleElastiCache_DeleteCacheSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -455,11 +405,7 @@ func ExampleElastiCache_DeleteCacheSubnetGroup() { } func ExampleElastiCache_DeleteReplicationGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -482,11 +428,7 @@ func ExampleElastiCache_DeleteReplicationGroup() { } func ExampleElastiCache_DeleteSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -507,11 +449,7 @@ func ExampleElastiCache_DeleteSnapshot() { } func ExampleElastiCache_DescribeCacheClusters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -535,11 +473,7 @@ func ExampleElastiCache_DescribeCacheClusters() { } func ExampleElastiCache_DescribeCacheEngineVersions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -565,11 +499,7 @@ func ExampleElastiCache_DescribeCacheEngineVersions() { } func ExampleElastiCache_DescribeCacheParameterGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -592,11 +522,7 @@ func ExampleElastiCache_DescribeCacheParameterGroups() { } func ExampleElastiCache_DescribeCacheParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -620,11 +546,7 @@ func ExampleElastiCache_DescribeCacheParameters() { } func ExampleElastiCache_DescribeCacheSecurityGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -647,11 +569,7 @@ func ExampleElastiCache_DescribeCacheSecurityGroups() { } func ExampleElastiCache_DescribeCacheSubnetGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -674,11 +592,7 @@ func ExampleElastiCache_DescribeCacheSubnetGroups() { } func ExampleElastiCache_DescribeEngineDefaultParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -701,11 +615,7 @@ func ExampleElastiCache_DescribeEngineDefaultParameters() { } func ExampleElastiCache_DescribeEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -732,11 +642,7 @@ func ExampleElastiCache_DescribeEvents() { } func ExampleElastiCache_DescribeReplicationGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -759,11 +665,7 @@ func ExampleElastiCache_DescribeReplicationGroups() { } func ExampleElastiCache_DescribeReservedCacheNodes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -791,11 +693,7 @@ func ExampleElastiCache_DescribeReservedCacheNodes() { } func ExampleElastiCache_DescribeReservedCacheNodesOfferings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -822,11 +720,7 @@ func ExampleElastiCache_DescribeReservedCacheNodesOfferings() { } func ExampleElastiCache_DescribeSnapshots() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -853,11 +747,7 @@ func ExampleElastiCache_DescribeSnapshots() { } func ExampleElastiCache_ListAllowedNodeTypeModifications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -879,11 +769,7 @@ func ExampleElastiCache_ListAllowedNodeTypeModifications() { } func ExampleElastiCache_ListTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -904,11 +790,7 @@ func ExampleElastiCache_ListTagsForResource() { } func ExampleElastiCache_ModifyCacheCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -957,11 +839,7 @@ func ExampleElastiCache_ModifyCacheCluster() { } func ExampleElastiCache_ModifyCacheParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -989,11 +867,7 @@ func ExampleElastiCache_ModifyCacheParameterGroup() { } func ExampleElastiCache_ModifyCacheSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -1019,11 +893,7 @@ func ExampleElastiCache_ModifyCacheSubnetGroup() { } func ExampleElastiCache_ModifyReplicationGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -1066,11 +936,7 @@ func ExampleElastiCache_ModifyReplicationGroup() { } func ExampleElastiCache_PurchaseReservedCacheNodesOffering() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -1093,11 +959,7 @@ func ExampleElastiCache_PurchaseReservedCacheNodesOffering() { } func ExampleElastiCache_RebootCacheCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -1122,11 +984,7 @@ func ExampleElastiCache_RebootCacheCluster() { } func ExampleElastiCache_RemoveTagsFromResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -1151,11 +1009,7 @@ func ExampleElastiCache_RemoveTagsFromResource() { } func ExampleElastiCache_ResetCacheParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) @@ -1184,11 +1038,7 @@ func ExampleElastiCache_ResetCacheParameterGroup() { } func ExampleElastiCache_RevokeCacheSecurityGroupIngress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticache.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticache/service.go b/vendor/github.com/aws/aws-sdk-go/service/elasticache/service.go index cbaa8219f..7654b3bd7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticache/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticache/service.go @@ -22,8 +22,9 @@ import ( // In addition, through integration with Amazon CloudWatch, customers get enhanced // visibility into the key performance statistics associated with their cache // and can receive alarms if a part of their cache runs hot. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02 type ElastiCache struct { *client.Client } @@ -34,8 +35,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "elasticache" +// Service information constants +const ( + ServiceName = "elasticache" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the ElastiCache client with a session. // If additional configuration is needed for the client instance use the optional @@ -48,17 +52,18 @@ const ServiceName = "elasticache" // // Create a ElastiCache client with additional configuration // svc := elasticache.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ElastiCache { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ElastiCache { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *ElastiCache { svc := &ElastiCache{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-02-02", diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go index b01fda8c4..7f4e1f137 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go @@ -39,6 +39,7 @@ const opAbortEnvironmentUpdate = "AbortEnvironmentUpdate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/AbortEnvironmentUpdate func (c *ElasticBeanstalk) AbortEnvironmentUpdateRequest(input *AbortEnvironmentUpdateInput) (req *request.Request, output *AbortEnvironmentUpdateOutput) { op := &request.Operation{ Name: opAbortEnvironmentUpdate, @@ -50,11 +51,10 @@ func (c *ElasticBeanstalk) AbortEnvironmentUpdateRequest(input *AbortEnvironment input = &AbortEnvironmentUpdateInput{} } + output = &AbortEnvironmentUpdateOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AbortEnvironmentUpdateOutput{} - req.Data = output return } @@ -71,10 +71,11 @@ func (c *ElasticBeanstalk) AbortEnvironmentUpdateRequest(input *AbortEnvironment // API operation AbortEnvironmentUpdate for usage and error information. // // Returned Error Codes: -// * InsufficientPrivilegesException +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" // The specified account does not have sufficient privileges for one of more // AWS services. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/AbortEnvironmentUpdate func (c *ElasticBeanstalk) AbortEnvironmentUpdate(input *AbortEnvironmentUpdateInput) (*AbortEnvironmentUpdateOutput, error) { req, out := c.AbortEnvironmentUpdateRequest(input) err := req.Send() @@ -107,6 +108,7 @@ const opApplyEnvironmentManagedAction = "ApplyEnvironmentManagedAction" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ApplyEnvironmentManagedAction func (c *ElasticBeanstalk) ApplyEnvironmentManagedActionRequest(input *ApplyEnvironmentManagedActionInput) (req *request.Request, output *ApplyEnvironmentManagedActionOutput) { op := &request.Operation{ Name: opApplyEnvironmentManagedAction, @@ -118,9 +120,8 @@ func (c *ElasticBeanstalk) ApplyEnvironmentManagedActionRequest(input *ApplyEnvi input = &ApplyEnvironmentManagedActionInput{} } - req = c.newRequest(op, input, output) output = &ApplyEnvironmentManagedActionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -138,12 +139,13 @@ func (c *ElasticBeanstalk) ApplyEnvironmentManagedActionRequest(input *ApplyEnvi // API operation ApplyEnvironmentManagedAction for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // A generic service exception has occurred. // -// * ManagedActionInvalidStateException +// * ErrCodeManagedActionInvalidStateException "ManagedActionInvalidStateException" // Cannot modify the managed action in its current state. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ApplyEnvironmentManagedAction func (c *ElasticBeanstalk) ApplyEnvironmentManagedAction(input *ApplyEnvironmentManagedActionInput) (*ApplyEnvironmentManagedActionOutput, error) { req, out := c.ApplyEnvironmentManagedActionRequest(input) err := req.Send() @@ -176,6 +178,7 @@ const opCheckDNSAvailability = "CheckDNSAvailability" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CheckDNSAvailability func (c *ElasticBeanstalk) CheckDNSAvailabilityRequest(input *CheckDNSAvailabilityInput) (req *request.Request, output *CheckDNSAvailabilityOutput) { op := &request.Operation{ Name: opCheckDNSAvailability, @@ -187,9 +190,8 @@ func (c *ElasticBeanstalk) CheckDNSAvailabilityRequest(input *CheckDNSAvailabili input = &CheckDNSAvailabilityInput{} } - req = c.newRequest(op, input, output) output = &CheckDNSAvailabilityOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -203,6 +205,7 @@ func (c *ElasticBeanstalk) CheckDNSAvailabilityRequest(input *CheckDNSAvailabili // // See the AWS API reference guide for AWS Elastic Beanstalk's // API operation CheckDNSAvailability for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CheckDNSAvailability func (c *ElasticBeanstalk) CheckDNSAvailability(input *CheckDNSAvailabilityInput) (*CheckDNSAvailabilityOutput, error) { req, out := c.CheckDNSAvailabilityRequest(input) err := req.Send() @@ -235,6 +238,7 @@ const opComposeEnvironments = "ComposeEnvironments" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ComposeEnvironments func (c *ElasticBeanstalk) ComposeEnvironmentsRequest(input *ComposeEnvironmentsInput) (req *request.Request, output *EnvironmentDescriptionsMessage) { op := &request.Operation{ Name: opComposeEnvironments, @@ -246,9 +250,8 @@ func (c *ElasticBeanstalk) ComposeEnvironmentsRequest(input *ComposeEnvironments input = &ComposeEnvironmentsInput{} } - req = c.newRequest(op, input, output) output = &EnvironmentDescriptionsMessage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -270,13 +273,14 @@ func (c *ElasticBeanstalk) ComposeEnvironmentsRequest(input *ComposeEnvironments // API operation ComposeEnvironments for usage and error information. // // Returned Error Codes: -// * TooManyEnvironmentsException +// * ErrCodeTooManyEnvironmentsException "TooManyEnvironmentsException" // The specified account has reached its limit of environments. // -// * InsufficientPrivilegesException +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" // The specified account does not have sufficient privileges for one of more // AWS services. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ComposeEnvironments func (c *ElasticBeanstalk) ComposeEnvironments(input *ComposeEnvironmentsInput) (*EnvironmentDescriptionsMessage, error) { req, out := c.ComposeEnvironmentsRequest(input) err := req.Send() @@ -309,6 +313,7 @@ const opCreateApplication = "CreateApplication" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateApplication func (c *ElasticBeanstalk) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *ApplicationDescriptionMessage) { op := &request.Operation{ Name: opCreateApplication, @@ -320,9 +325,8 @@ func (c *ElasticBeanstalk) CreateApplicationRequest(input *CreateApplicationInpu input = &CreateApplicationInput{} } - req = c.newRequest(op, input, output) output = &ApplicationDescriptionMessage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -339,9 +343,10 @@ func (c *ElasticBeanstalk) CreateApplicationRequest(input *CreateApplicationInpu // API operation CreateApplication for usage and error information. // // Returned Error Codes: -// * TooManyApplicationsException +// * ErrCodeTooManyApplicationsException "TooManyApplicationsException" // The specified account has reached its limit of applications. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateApplication func (c *ElasticBeanstalk) CreateApplication(input *CreateApplicationInput) (*ApplicationDescriptionMessage, error) { req, out := c.CreateApplicationRequest(input) err := req.Send() @@ -374,6 +379,7 @@ const opCreateApplicationVersion = "CreateApplicationVersion" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateApplicationVersion func (c *ElasticBeanstalk) CreateApplicationVersionRequest(input *CreateApplicationVersionInput) (req *request.Request, output *ApplicationVersionDescriptionMessage) { op := &request.Operation{ Name: opCreateApplicationVersion, @@ -385,17 +391,27 @@ func (c *ElasticBeanstalk) CreateApplicationVersionRequest(input *CreateApplicat input = &CreateApplicationVersionInput{} } - req = c.newRequest(op, input, output) output = &ApplicationVersionDescriptionMessage{} - req.Data = output + req = c.newRequest(op, input, output) return } // CreateApplicationVersion API operation for AWS Elastic Beanstalk. // -// Creates an application version for the specified application. +// Creates an application version for the specified application. You can create +// an application version from a source bundle in Amazon S3, a commit in AWS +// CodeCommit, or the output of an AWS CodeBuild build as follows: +// +// Specify a commit in an AWS CodeCommit repository with SourceBuildInformation. +// +// Specify a build in an AWS CodeBuild with SourceBuildInformation and BuildConfiguration. +// +// Specify a source bundle in S3 with SourceBundle +// +// Omit both SourceBuildInformation and SourceBundle to use the default sample +// application. // -// Once you create an application version with a specified Amazon S3 bucket +// Once you create an application version with a specified Amazon S3 bucket // and key location, you cannot change that Amazon S3 location. If you change // the Amazon S3 location, you receive an exception when you attempt to launch // an environment from the application version. @@ -408,20 +424,30 @@ func (c *ElasticBeanstalk) CreateApplicationVersionRequest(input *CreateApplicat // API operation CreateApplicationVersion for usage and error information. // // Returned Error Codes: -// * TooManyApplicationsException +// * ErrCodeTooManyApplicationsException "TooManyApplicationsException" // The specified account has reached its limit of applications. // -// * TooManyApplicationVersionsException +// * ErrCodeTooManyApplicationVersionsException "TooManyApplicationVersionsException" // The specified account has reached its limit of application versions. // -// * InsufficientPrivilegesException +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" // The specified account does not have sufficient privileges for one of more // AWS services. // -// * S3LocationNotInServiceRegionException +// * ErrCodeS3LocationNotInServiceRegionException "S3LocationNotInServiceRegionException" // The specified S3 bucket does not belong to the S3 region in which the service -// is running. +// is running. The following regions are supported: // +// * IAD/us-east-1 +// +// * PDX/us-west-2 +// +// * DUB/eu-west-1 +// +// * ErrCodeCodeBuildNotInServiceRegionException "CodeBuildNotInServiceRegionException" +// AWS CodeBuild is not available in the specified region. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateApplicationVersion func (c *ElasticBeanstalk) CreateApplicationVersion(input *CreateApplicationVersionInput) (*ApplicationVersionDescriptionMessage, error) { req, out := c.CreateApplicationVersionRequest(input) err := req.Send() @@ -454,6 +480,7 @@ const opCreateConfigurationTemplate = "CreateConfigurationTemplate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateConfigurationTemplate func (c *ElasticBeanstalk) CreateConfigurationTemplateRequest(input *CreateConfigurationTemplateInput) (req *request.Request, output *ConfigurationSettingsDescription) { op := &request.Operation{ Name: opCreateConfigurationTemplate, @@ -465,9 +492,8 @@ func (c *ElasticBeanstalk) CreateConfigurationTemplateRequest(input *CreateConfi input = &CreateConfigurationTemplateInput{} } - req = c.newRequest(op, input, output) output = &ConfigurationSettingsDescription{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -479,11 +505,11 @@ func (c *ElasticBeanstalk) CreateConfigurationTemplateRequest(input *CreateConfi // // Related Topics // -// DescribeConfigurationOptions +// * DescribeConfigurationOptions // -// DescribeConfigurationSettings +// * DescribeConfigurationSettings // -// ListAvailableSolutionStacks +// * ListAvailableSolutionStacks // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -493,16 +519,17 @@ func (c *ElasticBeanstalk) CreateConfigurationTemplateRequest(input *CreateConfi // API operation CreateConfigurationTemplate for usage and error information. // // Returned Error Codes: -// * InsufficientPrivilegesException +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" // The specified account does not have sufficient privileges for one of more // AWS services. // -// * TooManyBucketsException +// * ErrCodeTooManyBucketsException "TooManyBucketsException" // The specified account has reached its limit of Amazon S3 buckets. // -// * TooManyConfigurationTemplatesException +// * ErrCodeTooManyConfigurationTemplatesException "TooManyConfigurationTemplatesException" // The specified account has reached its limit of configuration templates. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateConfigurationTemplate func (c *ElasticBeanstalk) CreateConfigurationTemplate(input *CreateConfigurationTemplateInput) (*ConfigurationSettingsDescription, error) { req, out := c.CreateConfigurationTemplateRequest(input) err := req.Send() @@ -535,6 +562,7 @@ const opCreateEnvironment = "CreateEnvironment" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateEnvironment func (c *ElasticBeanstalk) CreateEnvironmentRequest(input *CreateEnvironmentInput) (req *request.Request, output *EnvironmentDescription) { op := &request.Operation{ Name: opCreateEnvironment, @@ -546,9 +574,8 @@ func (c *ElasticBeanstalk) CreateEnvironmentRequest(input *CreateEnvironmentInpu input = &CreateEnvironmentInput{} } - req = c.newRequest(op, input, output) output = &EnvironmentDescription{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -565,19 +592,93 @@ func (c *ElasticBeanstalk) CreateEnvironmentRequest(input *CreateEnvironmentInpu // API operation CreateEnvironment for usage and error information. // // Returned Error Codes: -// * TooManyEnvironmentsException +// * ErrCodeTooManyEnvironmentsException "TooManyEnvironmentsException" // The specified account has reached its limit of environments. // -// * InsufficientPrivilegesException +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" // The specified account does not have sufficient privileges for one of more // AWS services. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateEnvironment func (c *ElasticBeanstalk) CreateEnvironment(input *CreateEnvironmentInput) (*EnvironmentDescription, error) { req, out := c.CreateEnvironmentRequest(input) err := req.Send() return out, err } +const opCreatePlatformVersion = "CreatePlatformVersion" + +// CreatePlatformVersionRequest generates a "aws/request.Request" representing the +// client's request for the CreatePlatformVersion operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreatePlatformVersion for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreatePlatformVersion method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreatePlatformVersionRequest method. +// req, resp := client.CreatePlatformVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreatePlatformVersion +func (c *ElasticBeanstalk) CreatePlatformVersionRequest(input *CreatePlatformVersionInput) (req *request.Request, output *CreatePlatformVersionOutput) { + op := &request.Operation{ + Name: opCreatePlatformVersion, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreatePlatformVersionInput{} + } + + output = &CreatePlatformVersionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreatePlatformVersion API operation for AWS Elastic Beanstalk. +// +// Create a new version of your custom platform. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation CreatePlatformVersion for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" +// The specified account does not have sufficient privileges for one of more +// AWS services. +// +// * ErrCodeServiceException "ServiceException" +// A generic service exception has occurred. +// +// * ErrCodeTooManyPlatformsException "TooManyPlatformsException" +// You have exceeded the maximum number of allowed platforms associated with +// the account. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreatePlatformVersion +func (c *ElasticBeanstalk) CreatePlatformVersion(input *CreatePlatformVersionInput) (*CreatePlatformVersionOutput, error) { + req, out := c.CreatePlatformVersionRequest(input) + err := req.Send() + return out, err +} + const opCreateStorageLocation = "CreateStorageLocation" // CreateStorageLocationRequest generates a "aws/request.Request" representing the @@ -604,6 +705,7 @@ const opCreateStorageLocation = "CreateStorageLocation" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateStorageLocation func (c *ElasticBeanstalk) CreateStorageLocationRequest(input *CreateStorageLocationInput) (req *request.Request, output *CreateStorageLocationOutput) { op := &request.Operation{ Name: opCreateStorageLocation, @@ -615,9 +717,8 @@ func (c *ElasticBeanstalk) CreateStorageLocationRequest(input *CreateStorageLoca input = &CreateStorageLocationInput{} } - req = c.newRequest(op, input, output) output = &CreateStorageLocationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -635,16 +736,17 @@ func (c *ElasticBeanstalk) CreateStorageLocationRequest(input *CreateStorageLoca // API operation CreateStorageLocation for usage and error information. // // Returned Error Codes: -// * TooManyBucketsException +// * ErrCodeTooManyBucketsException "TooManyBucketsException" // The specified account has reached its limit of Amazon S3 buckets. // -// * S3SubscriptionRequiredException +// * ErrCodeS3SubscriptionRequiredException "S3SubscriptionRequiredException" // The specified account does not have a subscription to Amazon S3. // -// * InsufficientPrivilegesException +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" // The specified account does not have sufficient privileges for one of more // AWS services. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateStorageLocation func (c *ElasticBeanstalk) CreateStorageLocation(input *CreateStorageLocationInput) (*CreateStorageLocationOutput, error) { req, out := c.CreateStorageLocationRequest(input) err := req.Send() @@ -677,6 +779,7 @@ const opDeleteApplication = "DeleteApplication" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteApplication func (c *ElasticBeanstalk) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput) { op := &request.Operation{ Name: opDeleteApplication, @@ -688,11 +791,10 @@ func (c *ElasticBeanstalk) DeleteApplicationRequest(input *DeleteApplicationInpu input = &DeleteApplicationInput{} } + output = &DeleteApplicationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteApplicationOutput{} - req.Data = output return } @@ -702,7 +804,7 @@ func (c *ElasticBeanstalk) DeleteApplicationRequest(input *DeleteApplicationInpu // configurations. The application versions will not be deleted from your Amazon // S3 bucket. // -// You cannot delete an application that has a running environment. +// You cannot delete an application that has a running environment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -712,10 +814,11 @@ func (c *ElasticBeanstalk) DeleteApplicationRequest(input *DeleteApplicationInpu // API operation DeleteApplication for usage and error information. // // Returned Error Codes: -// * OperationInProgressFailure +// * ErrCodeOperationInProgressException "OperationInProgressFailure" // Unable to perform the specified operation because another operation that // effects an element in this activity is already in progress. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteApplication func (c *ElasticBeanstalk) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) { req, out := c.DeleteApplicationRequest(input) err := req.Send() @@ -748,6 +851,7 @@ const opDeleteApplicationVersion = "DeleteApplicationVersion" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteApplicationVersion func (c *ElasticBeanstalk) DeleteApplicationVersionRequest(input *DeleteApplicationVersionInput) (req *request.Request, output *DeleteApplicationVersionOutput) { op := &request.Operation{ Name: opDeleteApplicationVersion, @@ -759,11 +863,10 @@ func (c *ElasticBeanstalk) DeleteApplicationVersionRequest(input *DeleteApplicat input = &DeleteApplicationVersionInput{} } + output = &DeleteApplicationVersionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteApplicationVersionOutput{} - req.Data = output return } @@ -771,7 +874,7 @@ func (c *ElasticBeanstalk) DeleteApplicationVersionRequest(input *DeleteApplicat // // Deletes the specified version from the specified application. // -// You cannot delete an application version that is associated with a running +// You cannot delete an application version that is associated with a running // environment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -782,22 +885,29 @@ func (c *ElasticBeanstalk) DeleteApplicationVersionRequest(input *DeleteApplicat // API operation DeleteApplicationVersion for usage and error information. // // Returned Error Codes: -// * SourceBundleDeletionFailure +// * ErrCodeSourceBundleDeletionException "SourceBundleDeletionFailure" // Unable to delete the Amazon S3 source bundle associated with the application // version. The application version was deleted successfully. // -// * InsufficientPrivilegesException +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" // The specified account does not have sufficient privileges for one of more // AWS services. // -// * OperationInProgressFailure +// * ErrCodeOperationInProgressException "OperationInProgressFailure" // Unable to perform the specified operation because another operation that // effects an element in this activity is already in progress. // -// * S3LocationNotInServiceRegionException +// * ErrCodeS3LocationNotInServiceRegionException "S3LocationNotInServiceRegionException" // The specified S3 bucket does not belong to the S3 region in which the service -// is running. +// is running. The following regions are supported: // +// * IAD/us-east-1 +// +// * PDX/us-west-2 +// +// * DUB/eu-west-1 +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteApplicationVersion func (c *ElasticBeanstalk) DeleteApplicationVersion(input *DeleteApplicationVersionInput) (*DeleteApplicationVersionOutput, error) { req, out := c.DeleteApplicationVersionRequest(input) err := req.Send() @@ -830,6 +940,7 @@ const opDeleteConfigurationTemplate = "DeleteConfigurationTemplate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteConfigurationTemplate func (c *ElasticBeanstalk) DeleteConfigurationTemplateRequest(input *DeleteConfigurationTemplateInput) (req *request.Request, output *DeleteConfigurationTemplateOutput) { op := &request.Operation{ Name: opDeleteConfigurationTemplate, @@ -841,11 +952,10 @@ func (c *ElasticBeanstalk) DeleteConfigurationTemplateRequest(input *DeleteConfi input = &DeleteConfigurationTemplateInput{} } + output = &DeleteConfigurationTemplateOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteConfigurationTemplateOutput{} - req.Data = output return } @@ -853,7 +963,7 @@ func (c *ElasticBeanstalk) DeleteConfigurationTemplateRequest(input *DeleteConfi // // Deletes the specified configuration template. // -// When you launch an environment using a configuration template, the environment +// When you launch an environment using a configuration template, the environment // gets a copy of the template. You can delete or modify the environment's copy // of the template without affecting the running environment. // @@ -865,10 +975,11 @@ func (c *ElasticBeanstalk) DeleteConfigurationTemplateRequest(input *DeleteConfi // API operation DeleteConfigurationTemplate for usage and error information. // // Returned Error Codes: -// * OperationInProgressFailure +// * ErrCodeOperationInProgressException "OperationInProgressFailure" // Unable to perform the specified operation because another operation that // effects an element in this activity is already in progress. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteConfigurationTemplate func (c *ElasticBeanstalk) DeleteConfigurationTemplate(input *DeleteConfigurationTemplateInput) (*DeleteConfigurationTemplateOutput, error) { req, out := c.DeleteConfigurationTemplateRequest(input) err := req.Send() @@ -901,6 +1012,7 @@ const opDeleteEnvironmentConfiguration = "DeleteEnvironmentConfiguration" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteEnvironmentConfiguration func (c *ElasticBeanstalk) DeleteEnvironmentConfigurationRequest(input *DeleteEnvironmentConfigurationInput) (req *request.Request, output *DeleteEnvironmentConfigurationOutput) { op := &request.Operation{ Name: opDeleteEnvironmentConfiguration, @@ -912,11 +1024,10 @@ func (c *ElasticBeanstalk) DeleteEnvironmentConfigurationRequest(input *DeleteEn input = &DeleteEnvironmentConfigurationInput{} } + output = &DeleteEnvironmentConfigurationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteEnvironmentConfigurationOutput{} - req.Data = output return } @@ -924,8 +1035,8 @@ func (c *ElasticBeanstalk) DeleteEnvironmentConfigurationRequest(input *DeleteEn // // Deletes the draft configuration associated with the running environment. // -// Updating a running environment with any configuration changes creates a -// draft configuration set. You can get the draft configuration using DescribeConfigurationSettings +// Updating a running environment with any configuration changes creates a draft +// configuration set. You can get the draft configuration using DescribeConfigurationSettings // while the update is in progress or if the update fails. The DeploymentStatus // for the draft configuration indicates whether the deployment is in process // or has failed. The draft configuration remains in existence until it is deleted @@ -937,12 +1048,90 @@ func (c *ElasticBeanstalk) DeleteEnvironmentConfigurationRequest(input *DeleteEn // // See the AWS API reference guide for AWS Elastic Beanstalk's // API operation DeleteEnvironmentConfiguration for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteEnvironmentConfiguration func (c *ElasticBeanstalk) DeleteEnvironmentConfiguration(input *DeleteEnvironmentConfigurationInput) (*DeleteEnvironmentConfigurationOutput, error) { req, out := c.DeleteEnvironmentConfigurationRequest(input) err := req.Send() return out, err } +const opDeletePlatformVersion = "DeletePlatformVersion" + +// DeletePlatformVersionRequest generates a "aws/request.Request" representing the +// client's request for the DeletePlatformVersion operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeletePlatformVersion for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeletePlatformVersion method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeletePlatformVersionRequest method. +// req, resp := client.DeletePlatformVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeletePlatformVersion +func (c *ElasticBeanstalk) DeletePlatformVersionRequest(input *DeletePlatformVersionInput) (req *request.Request, output *DeletePlatformVersionOutput) { + op := &request.Operation{ + Name: opDeletePlatformVersion, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeletePlatformVersionInput{} + } + + output = &DeletePlatformVersionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeletePlatformVersion API operation for AWS Elastic Beanstalk. +// +// Deletes the specified version of a custom platform. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation DeletePlatformVersion for usage and error information. +// +// Returned Error Codes: +// * ErrCodeOperationInProgressException "OperationInProgressFailure" +// Unable to perform the specified operation because another operation that +// effects an element in this activity is already in progress. +// +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" +// The specified account does not have sufficient privileges for one of more +// AWS services. +// +// * ErrCodeServiceException "ServiceException" +// A generic service exception has occurred. +// +// * ErrCodePlatformVersionStillReferencedException "PlatformVersionStillReferencedException" +// You cannot delete the platform version because there are still environments +// running on it. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeletePlatformVersion +func (c *ElasticBeanstalk) DeletePlatformVersion(input *DeletePlatformVersionInput) (*DeletePlatformVersionOutput, error) { + req, out := c.DeletePlatformVersionRequest(input) + err := req.Send() + return out, err +} + const opDescribeApplicationVersions = "DescribeApplicationVersions" // DescribeApplicationVersionsRequest generates a "aws/request.Request" representing the @@ -969,6 +1158,7 @@ const opDescribeApplicationVersions = "DescribeApplicationVersions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeApplicationVersions func (c *ElasticBeanstalk) DescribeApplicationVersionsRequest(input *DescribeApplicationVersionsInput) (req *request.Request, output *DescribeApplicationVersionsOutput) { op := &request.Operation{ Name: opDescribeApplicationVersions, @@ -980,16 +1170,14 @@ func (c *ElasticBeanstalk) DescribeApplicationVersionsRequest(input *DescribeApp input = &DescribeApplicationVersionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeApplicationVersionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeApplicationVersions API operation for AWS Elastic Beanstalk. // -// Retrieve a list of application versions stored in your AWS Elastic Beanstalk -// storage bucket. +// Retrieve a list of application versions. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -997,6 +1185,7 @@ func (c *ElasticBeanstalk) DescribeApplicationVersionsRequest(input *DescribeApp // // See the AWS API reference guide for AWS Elastic Beanstalk's // API operation DescribeApplicationVersions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeApplicationVersions func (c *ElasticBeanstalk) DescribeApplicationVersions(input *DescribeApplicationVersionsInput) (*DescribeApplicationVersionsOutput, error) { req, out := c.DescribeApplicationVersionsRequest(input) err := req.Send() @@ -1029,6 +1218,7 @@ const opDescribeApplications = "DescribeApplications" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeApplications func (c *ElasticBeanstalk) DescribeApplicationsRequest(input *DescribeApplicationsInput) (req *request.Request, output *DescribeApplicationsOutput) { op := &request.Operation{ Name: opDescribeApplications, @@ -1040,9 +1230,8 @@ func (c *ElasticBeanstalk) DescribeApplicationsRequest(input *DescribeApplicatio input = &DescribeApplicationsInput{} } - req = c.newRequest(op, input, output) output = &DescribeApplicationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1056,6 +1245,7 @@ func (c *ElasticBeanstalk) DescribeApplicationsRequest(input *DescribeApplicatio // // See the AWS API reference guide for AWS Elastic Beanstalk's // API operation DescribeApplications for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeApplications func (c *ElasticBeanstalk) DescribeApplications(input *DescribeApplicationsInput) (*DescribeApplicationsOutput, error) { req, out := c.DescribeApplicationsRequest(input) err := req.Send() @@ -1088,6 +1278,7 @@ const opDescribeConfigurationOptions = "DescribeConfigurationOptions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeConfigurationOptions func (c *ElasticBeanstalk) DescribeConfigurationOptionsRequest(input *DescribeConfigurationOptionsInput) (req *request.Request, output *DescribeConfigurationOptionsOutput) { op := &request.Operation{ Name: opDescribeConfigurationOptions, @@ -1099,9 +1290,8 @@ func (c *ElasticBeanstalk) DescribeConfigurationOptionsRequest(input *DescribeCo input = &DescribeConfigurationOptionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeConfigurationOptionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1121,9 +1311,10 @@ func (c *ElasticBeanstalk) DescribeConfigurationOptionsRequest(input *DescribeCo // API operation DescribeConfigurationOptions for usage and error information. // // Returned Error Codes: -// * TooManyBucketsException +// * ErrCodeTooManyBucketsException "TooManyBucketsException" // The specified account has reached its limit of Amazon S3 buckets. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeConfigurationOptions func (c *ElasticBeanstalk) DescribeConfigurationOptions(input *DescribeConfigurationOptionsInput) (*DescribeConfigurationOptionsOutput, error) { req, out := c.DescribeConfigurationOptionsRequest(input) err := req.Send() @@ -1156,6 +1347,7 @@ const opDescribeConfigurationSettings = "DescribeConfigurationSettings" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeConfigurationSettings func (c *ElasticBeanstalk) DescribeConfigurationSettingsRequest(input *DescribeConfigurationSettingsInput) (req *request.Request, output *DescribeConfigurationSettingsOutput) { op := &request.Operation{ Name: opDescribeConfigurationSettings, @@ -1167,9 +1359,8 @@ func (c *ElasticBeanstalk) DescribeConfigurationSettingsRequest(input *DescribeC input = &DescribeConfigurationSettingsInput{} } - req = c.newRequest(op, input, output) output = &DescribeConfigurationSettingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1187,7 +1378,7 @@ func (c *ElasticBeanstalk) DescribeConfigurationSettingsRequest(input *DescribeC // // Related Topics // -// DeleteEnvironmentConfiguration +// * DeleteEnvironmentConfiguration // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1197,9 +1388,10 @@ func (c *ElasticBeanstalk) DescribeConfigurationSettingsRequest(input *DescribeC // API operation DescribeConfigurationSettings for usage and error information. // // Returned Error Codes: -// * TooManyBucketsException +// * ErrCodeTooManyBucketsException "TooManyBucketsException" // The specified account has reached its limit of Amazon S3 buckets. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeConfigurationSettings func (c *ElasticBeanstalk) DescribeConfigurationSettings(input *DescribeConfigurationSettingsInput) (*DescribeConfigurationSettingsOutput, error) { req, out := c.DescribeConfigurationSettingsRequest(input) err := req.Send() @@ -1232,6 +1424,7 @@ const opDescribeEnvironmentHealth = "DescribeEnvironmentHealth" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentHealth func (c *ElasticBeanstalk) DescribeEnvironmentHealthRequest(input *DescribeEnvironmentHealthInput) (req *request.Request, output *DescribeEnvironmentHealthOutput) { op := &request.Operation{ Name: opDescribeEnvironmentHealth, @@ -1243,9 +1436,8 @@ func (c *ElasticBeanstalk) DescribeEnvironmentHealthRequest(input *DescribeEnvir input = &DescribeEnvironmentHealthInput{} } - req = c.newRequest(op, input, output) output = &DescribeEnvironmentHealthOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1263,13 +1455,14 @@ func (c *ElasticBeanstalk) DescribeEnvironmentHealthRequest(input *DescribeEnvir // API operation DescribeEnvironmentHealth for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more input parameters is not valid. Please correct the input parameters // and try the operation again. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // A generic service exception has occurred. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentHealth func (c *ElasticBeanstalk) DescribeEnvironmentHealth(input *DescribeEnvironmentHealthInput) (*DescribeEnvironmentHealthOutput, error) { req, out := c.DescribeEnvironmentHealthRequest(input) err := req.Send() @@ -1302,6 +1495,7 @@ const opDescribeEnvironmentManagedActionHistory = "DescribeEnvironmentManagedAct // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentManagedActionHistory func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionHistoryRequest(input *DescribeEnvironmentManagedActionHistoryInput) (req *request.Request, output *DescribeEnvironmentManagedActionHistoryOutput) { op := &request.Operation{ Name: opDescribeEnvironmentManagedActionHistory, @@ -1313,9 +1507,8 @@ func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionHistoryRequest(input input = &DescribeEnvironmentManagedActionHistoryInput{} } - req = c.newRequest(op, input, output) output = &DescribeEnvironmentManagedActionHistoryOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1331,9 +1524,10 @@ func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionHistoryRequest(input // API operation DescribeEnvironmentManagedActionHistory for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // A generic service exception has occurred. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentManagedActionHistory func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionHistory(input *DescribeEnvironmentManagedActionHistoryInput) (*DescribeEnvironmentManagedActionHistoryOutput, error) { req, out := c.DescribeEnvironmentManagedActionHistoryRequest(input) err := req.Send() @@ -1366,6 +1560,7 @@ const opDescribeEnvironmentManagedActions = "DescribeEnvironmentManagedActions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentManagedActions func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionsRequest(input *DescribeEnvironmentManagedActionsInput) (req *request.Request, output *DescribeEnvironmentManagedActionsOutput) { op := &request.Operation{ Name: opDescribeEnvironmentManagedActions, @@ -1377,9 +1572,8 @@ func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionsRequest(input *Descr input = &DescribeEnvironmentManagedActionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeEnvironmentManagedActionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1395,9 +1589,10 @@ func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionsRequest(input *Descr // API operation DescribeEnvironmentManagedActions for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // A generic service exception has occurred. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentManagedActions func (c *ElasticBeanstalk) DescribeEnvironmentManagedActions(input *DescribeEnvironmentManagedActionsInput) (*DescribeEnvironmentManagedActionsOutput, error) { req, out := c.DescribeEnvironmentManagedActionsRequest(input) err := req.Send() @@ -1430,6 +1625,7 @@ const opDescribeEnvironmentResources = "DescribeEnvironmentResources" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentResources func (c *ElasticBeanstalk) DescribeEnvironmentResourcesRequest(input *DescribeEnvironmentResourcesInput) (req *request.Request, output *DescribeEnvironmentResourcesOutput) { op := &request.Operation{ Name: opDescribeEnvironmentResources, @@ -1441,9 +1637,8 @@ func (c *ElasticBeanstalk) DescribeEnvironmentResourcesRequest(input *DescribeEn input = &DescribeEnvironmentResourcesInput{} } - req = c.newRequest(op, input, output) output = &DescribeEnvironmentResourcesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1459,10 +1654,11 @@ func (c *ElasticBeanstalk) DescribeEnvironmentResourcesRequest(input *DescribeEn // API operation DescribeEnvironmentResources for usage and error information. // // Returned Error Codes: -// * InsufficientPrivilegesException +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" // The specified account does not have sufficient privileges for one of more // AWS services. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentResources func (c *ElasticBeanstalk) DescribeEnvironmentResources(input *DescribeEnvironmentResourcesInput) (*DescribeEnvironmentResourcesOutput, error) { req, out := c.DescribeEnvironmentResourcesRequest(input) err := req.Send() @@ -1495,6 +1691,7 @@ const opDescribeEnvironments = "DescribeEnvironments" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironments func (c *ElasticBeanstalk) DescribeEnvironmentsRequest(input *DescribeEnvironmentsInput) (req *request.Request, output *EnvironmentDescriptionsMessage) { op := &request.Operation{ Name: opDescribeEnvironments, @@ -1506,9 +1703,8 @@ func (c *ElasticBeanstalk) DescribeEnvironmentsRequest(input *DescribeEnvironmen input = &DescribeEnvironmentsInput{} } - req = c.newRequest(op, input, output) output = &EnvironmentDescriptionsMessage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1522,6 +1718,7 @@ func (c *ElasticBeanstalk) DescribeEnvironmentsRequest(input *DescribeEnvironmen // // See the AWS API reference guide for AWS Elastic Beanstalk's // API operation DescribeEnvironments for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironments func (c *ElasticBeanstalk) DescribeEnvironments(input *DescribeEnvironmentsInput) (*EnvironmentDescriptionsMessage, error) { req, out := c.DescribeEnvironmentsRequest(input) err := req.Send() @@ -1554,6 +1751,7 @@ const opDescribeEvents = "DescribeEvents" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEvents func (c *ElasticBeanstalk) DescribeEventsRequest(input *DescribeEventsInput) (req *request.Request, output *DescribeEventsOutput) { op := &request.Operation{ Name: opDescribeEvents, @@ -1571,9 +1769,8 @@ func (c *ElasticBeanstalk) DescribeEventsRequest(input *DescribeEventsInput) (re input = &DescribeEventsInput{} } - req = c.newRequest(op, input, output) output = &DescribeEventsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1581,7 +1778,7 @@ func (c *ElasticBeanstalk) DescribeEventsRequest(input *DescribeEventsInput) (re // // Returns list of event descriptions matching criteria up to the last 6 weeks. // -// This action returns the most recent 1,000 events from the specified NextToken. +// This action returns the most recent 1,000 events from the specified NextToken. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1589,6 +1786,7 @@ func (c *ElasticBeanstalk) DescribeEventsRequest(input *DescribeEventsInput) (re // // See the AWS API reference guide for AWS Elastic Beanstalk's // API operation DescribeEvents for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEvents func (c *ElasticBeanstalk) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) { req, out := c.DescribeEventsRequest(input) err := req.Send() @@ -1646,6 +1844,7 @@ const opDescribeInstancesHealth = "DescribeInstancesHealth" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeInstancesHealth func (c *ElasticBeanstalk) DescribeInstancesHealthRequest(input *DescribeInstancesHealthInput) (req *request.Request, output *DescribeInstancesHealthOutput) { op := &request.Operation{ Name: opDescribeInstancesHealth, @@ -1657,17 +1856,15 @@ func (c *ElasticBeanstalk) DescribeInstancesHealthRequest(input *DescribeInstanc input = &DescribeInstancesHealthInput{} } - req = c.newRequest(op, input, output) output = &DescribeInstancesHealthOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeInstancesHealth API operation for AWS Elastic Beanstalk. // -// Returns more detailed information about the health of the specified instances -// (for example, CPU utilization, load average, and causes). The DescribeInstancesHealth -// operation is only available with AWS Elastic Beanstalk Enhanced Health. +// Retrives detailed information about the health of instances in your AWS Elastic +// Beanstalk. This operation requires enhanced health reporting (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1677,19 +1874,89 @@ func (c *ElasticBeanstalk) DescribeInstancesHealthRequest(input *DescribeInstanc // API operation DescribeInstancesHealth for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more input parameters is not valid. Please correct the input parameters // and try the operation again. // -// * ServiceException +// * ErrCodeServiceException "ServiceException" // A generic service exception has occurred. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeInstancesHealth func (c *ElasticBeanstalk) DescribeInstancesHealth(input *DescribeInstancesHealthInput) (*DescribeInstancesHealthOutput, error) { req, out := c.DescribeInstancesHealthRequest(input) err := req.Send() return out, err } +const opDescribePlatformVersion = "DescribePlatformVersion" + +// DescribePlatformVersionRequest generates a "aws/request.Request" representing the +// client's request for the DescribePlatformVersion operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribePlatformVersion for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribePlatformVersion method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribePlatformVersionRequest method. +// req, resp := client.DescribePlatformVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribePlatformVersion +func (c *ElasticBeanstalk) DescribePlatformVersionRequest(input *DescribePlatformVersionInput) (req *request.Request, output *DescribePlatformVersionOutput) { + op := &request.Operation{ + Name: opDescribePlatformVersion, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribePlatformVersionInput{} + } + + output = &DescribePlatformVersionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribePlatformVersion API operation for AWS Elastic Beanstalk. +// +// Describes the version of the platform. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation DescribePlatformVersion for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" +// The specified account does not have sufficient privileges for one of more +// AWS services. +// +// * ErrCodeServiceException "ServiceException" +// A generic service exception has occurred. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribePlatformVersion +func (c *ElasticBeanstalk) DescribePlatformVersion(input *DescribePlatformVersionInput) (*DescribePlatformVersionOutput, error) { + req, out := c.DescribePlatformVersionRequest(input) + err := req.Send() + return out, err +} + const opListAvailableSolutionStacks = "ListAvailableSolutionStacks" // ListAvailableSolutionStacksRequest generates a "aws/request.Request" representing the @@ -1716,6 +1983,7 @@ const opListAvailableSolutionStacks = "ListAvailableSolutionStacks" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListAvailableSolutionStacks func (c *ElasticBeanstalk) ListAvailableSolutionStacksRequest(input *ListAvailableSolutionStacksInput) (req *request.Request, output *ListAvailableSolutionStacksOutput) { op := &request.Operation{ Name: opListAvailableSolutionStacks, @@ -1727,15 +1995,15 @@ func (c *ElasticBeanstalk) ListAvailableSolutionStacksRequest(input *ListAvailab input = &ListAvailableSolutionStacksInput{} } - req = c.newRequest(op, input, output) output = &ListAvailableSolutionStacksOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // ListAvailableSolutionStacks API operation for AWS Elastic Beanstalk. // -// Returns a list of the available solution stack names. +// Returns a list of the available solution stack names, with the public version +// first and then in reverse chronological order. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1743,122 +2011,193 @@ func (c *ElasticBeanstalk) ListAvailableSolutionStacksRequest(input *ListAvailab // // See the AWS API reference guide for AWS Elastic Beanstalk's // API operation ListAvailableSolutionStacks for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListAvailableSolutionStacks func (c *ElasticBeanstalk) ListAvailableSolutionStacks(input *ListAvailableSolutionStacksInput) (*ListAvailableSolutionStacksOutput, error) { req, out := c.ListAvailableSolutionStacksRequest(input) err := req.Send() return out, err } -const opRebuildEnvironment = "RebuildEnvironment" +const opListPlatformVersions = "ListPlatformVersions" -// RebuildEnvironmentRequest generates a "aws/request.Request" representing the -// client's request for the RebuildEnvironment operation. The "output" return +// ListPlatformVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListPlatformVersions operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See RebuildEnvironment for usage and error information. +// See ListPlatformVersions for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the RebuildEnvironment method directly +// you just want the service response, call the ListPlatformVersions method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the RebuildEnvironmentRequest method. -// req, resp := client.RebuildEnvironmentRequest(params) +// // Example sending a request using the ListPlatformVersionsRequest method. +// req, resp := client.ListPlatformVersionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *ElasticBeanstalk) RebuildEnvironmentRequest(input *RebuildEnvironmentInput) (req *request.Request, output *RebuildEnvironmentOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListPlatformVersions +func (c *ElasticBeanstalk) ListPlatformVersionsRequest(input *ListPlatformVersionsInput) (req *request.Request, output *ListPlatformVersionsOutput) { op := &request.Operation{ - Name: opRebuildEnvironment, + Name: opListPlatformVersions, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &RebuildEnvironmentInput{} + input = &ListPlatformVersionsInput{} } + output = &ListPlatformVersionsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RebuildEnvironmentOutput{} - req.Data = output return } -// RebuildEnvironment API operation for AWS Elastic Beanstalk. +// ListPlatformVersions API operation for AWS Elastic Beanstalk. // -// Deletes and recreates all of the AWS resources (for example: the Auto Scaling -// group, load balancer, etc.) for a specified environment and forces a restart. +// Lists the available platforms. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Elastic Beanstalk's -// API operation RebuildEnvironment for usage and error information. +// API operation ListPlatformVersions for usage and error information. // // Returned Error Codes: -// * InsufficientPrivilegesException +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" // The specified account does not have sufficient privileges for one of more // AWS services. // -func (c *ElasticBeanstalk) RebuildEnvironment(input *RebuildEnvironmentInput) (*RebuildEnvironmentOutput, error) { - req, out := c.RebuildEnvironmentRequest(input) +// * ErrCodeServiceException "ServiceException" +// A generic service exception has occurred. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListPlatformVersions +func (c *ElasticBeanstalk) ListPlatformVersions(input *ListPlatformVersionsInput) (*ListPlatformVersionsOutput, error) { + req, out := c.ListPlatformVersionsRequest(input) err := req.Send() return out, err } -const opRequestEnvironmentInfo = "RequestEnvironmentInfo" +const opRebuildEnvironment = "RebuildEnvironment" -// RequestEnvironmentInfoRequest generates a "aws/request.Request" representing the -// client's request for the RequestEnvironmentInfo operation. The "output" return +// RebuildEnvironmentRequest generates a "aws/request.Request" representing the +// client's request for the RebuildEnvironment operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See RequestEnvironmentInfo for usage and error information. +// See RebuildEnvironment for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the RequestEnvironmentInfo method directly +// you just want the service response, call the RebuildEnvironment method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the RequestEnvironmentInfoRequest method. -// req, resp := client.RequestEnvironmentInfoRequest(params) +// // Example sending a request using the RebuildEnvironmentRequest method. +// req, resp := client.RebuildEnvironmentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *ElasticBeanstalk) RequestEnvironmentInfoRequest(input *RequestEnvironmentInfoInput) (req *request.Request, output *RequestEnvironmentInfoOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RebuildEnvironment +func (c *ElasticBeanstalk) RebuildEnvironmentRequest(input *RebuildEnvironmentInput) (req *request.Request, output *RebuildEnvironmentOutput) { op := &request.Operation{ - Name: opRequestEnvironmentInfo, + Name: opRebuildEnvironment, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &RequestEnvironmentInfoInput{} + input = &RebuildEnvironmentInput{} } + output = &RebuildEnvironmentOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// RebuildEnvironment API operation for AWS Elastic Beanstalk. +// +// Deletes and recreates all of the AWS resources (for example: the Auto Scaling +// group, load balancer, etc.) for a specified environment and forces a restart. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation RebuildEnvironment for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" +// The specified account does not have sufficient privileges for one of more +// AWS services. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RebuildEnvironment +func (c *ElasticBeanstalk) RebuildEnvironment(input *RebuildEnvironmentInput) (*RebuildEnvironmentOutput, error) { + req, out := c.RebuildEnvironmentRequest(input) + err := req.Send() + return out, err +} + +const opRequestEnvironmentInfo = "RequestEnvironmentInfo" + +// RequestEnvironmentInfoRequest generates a "aws/request.Request" representing the +// client's request for the RequestEnvironmentInfo operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See RequestEnvironmentInfo for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the RequestEnvironmentInfo method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the RequestEnvironmentInfoRequest method. +// req, resp := client.RequestEnvironmentInfoRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RequestEnvironmentInfo +func (c *ElasticBeanstalk) RequestEnvironmentInfoRequest(input *RequestEnvironmentInfoInput) (req *request.Request, output *RequestEnvironmentInfoOutput) { + op := &request.Operation{ + Name: opRequestEnvironmentInfo, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RequestEnvironmentInfoInput{} + } + + output = &RequestEnvironmentInfoOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RequestEnvironmentInfoOutput{} - req.Data = output return } @@ -1867,18 +2206,18 @@ func (c *ElasticBeanstalk) RequestEnvironmentInfoRequest(input *RequestEnvironme // Initiates a request to compile the specified type of information of the deployed // environment. // -// Setting the InfoType to tail compiles the last lines from the application +// Setting the InfoType to tail compiles the last lines from the application // server log files of every Amazon EC2 instance in your environment. // -// Setting the InfoType to bundle compresses the application server log files +// Setting the InfoType to bundle compresses the application server log files // for every Amazon EC2 instance into a .zip file. Legacy and .NET containers // do not support bundle logs. // -// Use RetrieveEnvironmentInfo to obtain the set of logs. +// Use RetrieveEnvironmentInfo to obtain the set of logs. // // Related Topics // -// RetrieveEnvironmentInfo +// * RetrieveEnvironmentInfo // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1886,6 +2225,7 @@ func (c *ElasticBeanstalk) RequestEnvironmentInfoRequest(input *RequestEnvironme // // See the AWS API reference guide for AWS Elastic Beanstalk's // API operation RequestEnvironmentInfo for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RequestEnvironmentInfo func (c *ElasticBeanstalk) RequestEnvironmentInfo(input *RequestEnvironmentInfoInput) (*RequestEnvironmentInfoOutput, error) { req, out := c.RequestEnvironmentInfoRequest(input) err := req.Send() @@ -1918,6 +2258,7 @@ const opRestartAppServer = "RestartAppServer" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RestartAppServer func (c *ElasticBeanstalk) RestartAppServerRequest(input *RestartAppServerInput) (req *request.Request, output *RestartAppServerOutput) { op := &request.Operation{ Name: opRestartAppServer, @@ -1929,11 +2270,10 @@ func (c *ElasticBeanstalk) RestartAppServerRequest(input *RestartAppServerInput) input = &RestartAppServerInput{} } + output = &RestartAppServerOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RestartAppServerOutput{} - req.Data = output return } @@ -1948,6 +2288,7 @@ func (c *ElasticBeanstalk) RestartAppServerRequest(input *RestartAppServerInput) // // See the AWS API reference guide for AWS Elastic Beanstalk's // API operation RestartAppServer for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RestartAppServer func (c *ElasticBeanstalk) RestartAppServer(input *RestartAppServerInput) (*RestartAppServerOutput, error) { req, out := c.RestartAppServerRequest(input) err := req.Send() @@ -1980,6 +2321,7 @@ const opRetrieveEnvironmentInfo = "RetrieveEnvironmentInfo" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RetrieveEnvironmentInfo func (c *ElasticBeanstalk) RetrieveEnvironmentInfoRequest(input *RetrieveEnvironmentInfoInput) (req *request.Request, output *RetrieveEnvironmentInfoOutput) { op := &request.Operation{ Name: opRetrieveEnvironmentInfo, @@ -1991,9 +2333,8 @@ func (c *ElasticBeanstalk) RetrieveEnvironmentInfoRequest(input *RetrieveEnviron input = &RetrieveEnvironmentInfoInput{} } - req = c.newRequest(op, input, output) output = &RetrieveEnvironmentInfoOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2003,7 +2344,7 @@ func (c *ElasticBeanstalk) RetrieveEnvironmentInfoRequest(input *RetrieveEnviron // // Related Topics // -// RequestEnvironmentInfo +// * RequestEnvironmentInfo // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2011,6 +2352,7 @@ func (c *ElasticBeanstalk) RetrieveEnvironmentInfoRequest(input *RetrieveEnviron // // See the AWS API reference guide for AWS Elastic Beanstalk's // API operation RetrieveEnvironmentInfo for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RetrieveEnvironmentInfo func (c *ElasticBeanstalk) RetrieveEnvironmentInfo(input *RetrieveEnvironmentInfoInput) (*RetrieveEnvironmentInfoOutput, error) { req, out := c.RetrieveEnvironmentInfoRequest(input) err := req.Send() @@ -2043,6 +2385,7 @@ const opSwapEnvironmentCNAMEs = "SwapEnvironmentCNAMEs" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/SwapEnvironmentCNAMEs func (c *ElasticBeanstalk) SwapEnvironmentCNAMEsRequest(input *SwapEnvironmentCNAMEsInput) (req *request.Request, output *SwapEnvironmentCNAMEsOutput) { op := &request.Operation{ Name: opSwapEnvironmentCNAMEs, @@ -2054,11 +2397,10 @@ func (c *ElasticBeanstalk) SwapEnvironmentCNAMEsRequest(input *SwapEnvironmentCN input = &SwapEnvironmentCNAMEsInput{} } + output = &SwapEnvironmentCNAMEsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SwapEnvironmentCNAMEsOutput{} - req.Data = output return } @@ -2072,6 +2414,7 @@ func (c *ElasticBeanstalk) SwapEnvironmentCNAMEsRequest(input *SwapEnvironmentCN // // See the AWS API reference guide for AWS Elastic Beanstalk's // API operation SwapEnvironmentCNAMEs for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/SwapEnvironmentCNAMEs func (c *ElasticBeanstalk) SwapEnvironmentCNAMEs(input *SwapEnvironmentCNAMEsInput) (*SwapEnvironmentCNAMEsOutput, error) { req, out := c.SwapEnvironmentCNAMEsRequest(input) err := req.Send() @@ -2104,6 +2447,7 @@ const opTerminateEnvironment = "TerminateEnvironment" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/TerminateEnvironment func (c *ElasticBeanstalk) TerminateEnvironmentRequest(input *TerminateEnvironmentInput) (req *request.Request, output *EnvironmentDescription) { op := &request.Operation{ Name: opTerminateEnvironment, @@ -2115,9 +2459,8 @@ func (c *ElasticBeanstalk) TerminateEnvironmentRequest(input *TerminateEnvironme input = &TerminateEnvironmentInput{} } - req = c.newRequest(op, input, output) output = &EnvironmentDescription{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2133,10 +2476,11 @@ func (c *ElasticBeanstalk) TerminateEnvironmentRequest(input *TerminateEnvironme // API operation TerminateEnvironment for usage and error information. // // Returned Error Codes: -// * InsufficientPrivilegesException +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" // The specified account does not have sufficient privileges for one of more // AWS services. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/TerminateEnvironment func (c *ElasticBeanstalk) TerminateEnvironment(input *TerminateEnvironmentInput) (*EnvironmentDescription, error) { req, out := c.TerminateEnvironmentRequest(input) err := req.Send() @@ -2169,6 +2513,7 @@ const opUpdateApplication = "UpdateApplication" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateApplication func (c *ElasticBeanstalk) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *ApplicationDescriptionMessage) { op := &request.Operation{ Name: opUpdateApplication, @@ -2180,9 +2525,8 @@ func (c *ElasticBeanstalk) UpdateApplicationRequest(input *UpdateApplicationInpu input = &UpdateApplicationInput{} } - req = c.newRequest(op, input, output) output = &ApplicationDescriptionMessage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2190,7 +2534,7 @@ func (c *ElasticBeanstalk) UpdateApplicationRequest(input *UpdateApplicationInpu // // Updates the specified application to have the specified properties. // -// If a property (for example, description) is not provided, the value remains +// If a property (for example, description) is not provided, the value remains // unchanged. To clear these properties, specify an empty string. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2199,12 +2543,79 @@ func (c *ElasticBeanstalk) UpdateApplicationRequest(input *UpdateApplicationInpu // // See the AWS API reference guide for AWS Elastic Beanstalk's // API operation UpdateApplication for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateApplication func (c *ElasticBeanstalk) UpdateApplication(input *UpdateApplicationInput) (*ApplicationDescriptionMessage, error) { req, out := c.UpdateApplicationRequest(input) err := req.Send() return out, err } +const opUpdateApplicationResourceLifecycle = "UpdateApplicationResourceLifecycle" + +// UpdateApplicationResourceLifecycleRequest generates a "aws/request.Request" representing the +// client's request for the UpdateApplicationResourceLifecycle operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateApplicationResourceLifecycle for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateApplicationResourceLifecycle method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateApplicationResourceLifecycleRequest method. +// req, resp := client.UpdateApplicationResourceLifecycleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateApplicationResourceLifecycle +func (c *ElasticBeanstalk) UpdateApplicationResourceLifecycleRequest(input *UpdateApplicationResourceLifecycleInput) (req *request.Request, output *UpdateApplicationResourceLifecycleOutput) { + op := &request.Operation{ + Name: opUpdateApplicationResourceLifecycle, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateApplicationResourceLifecycleInput{} + } + + output = &UpdateApplicationResourceLifecycleOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateApplicationResourceLifecycle API operation for AWS Elastic Beanstalk. +// +// Modifies lifecycle settings for an application. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation UpdateApplicationResourceLifecycle for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" +// The specified account does not have sufficient privileges for one of more +// AWS services. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateApplicationResourceLifecycle +func (c *ElasticBeanstalk) UpdateApplicationResourceLifecycle(input *UpdateApplicationResourceLifecycleInput) (*UpdateApplicationResourceLifecycleOutput, error) { + req, out := c.UpdateApplicationResourceLifecycleRequest(input) + err := req.Send() + return out, err +} + const opUpdateApplicationVersion = "UpdateApplicationVersion" // UpdateApplicationVersionRequest generates a "aws/request.Request" representing the @@ -2231,6 +2642,7 @@ const opUpdateApplicationVersion = "UpdateApplicationVersion" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateApplicationVersion func (c *ElasticBeanstalk) UpdateApplicationVersionRequest(input *UpdateApplicationVersionInput) (req *request.Request, output *ApplicationVersionDescriptionMessage) { op := &request.Operation{ Name: opUpdateApplicationVersion, @@ -2242,9 +2654,8 @@ func (c *ElasticBeanstalk) UpdateApplicationVersionRequest(input *UpdateApplicat input = &UpdateApplicationVersionInput{} } - req = c.newRequest(op, input, output) output = &ApplicationVersionDescriptionMessage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2252,7 +2663,7 @@ func (c *ElasticBeanstalk) UpdateApplicationVersionRequest(input *UpdateApplicat // // Updates the specified application version to have the specified properties. // -// If a property (for example, description) is not provided, the value remains +// If a property (for example, description) is not provided, the value remains // unchanged. To clear properties, specify an empty string. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2261,6 +2672,7 @@ func (c *ElasticBeanstalk) UpdateApplicationVersionRequest(input *UpdateApplicat // // See the AWS API reference guide for AWS Elastic Beanstalk's // API operation UpdateApplicationVersion for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateApplicationVersion func (c *ElasticBeanstalk) UpdateApplicationVersion(input *UpdateApplicationVersionInput) (*ApplicationVersionDescriptionMessage, error) { req, out := c.UpdateApplicationVersionRequest(input) err := req.Send() @@ -2293,6 +2705,7 @@ const opUpdateConfigurationTemplate = "UpdateConfigurationTemplate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateConfigurationTemplate func (c *ElasticBeanstalk) UpdateConfigurationTemplateRequest(input *UpdateConfigurationTemplateInput) (req *request.Request, output *ConfigurationSettingsDescription) { op := &request.Operation{ Name: opUpdateConfigurationTemplate, @@ -2304,9 +2717,8 @@ func (c *ElasticBeanstalk) UpdateConfigurationTemplateRequest(input *UpdateConfi input = &UpdateConfigurationTemplateInput{} } - req = c.newRequest(op, input, output) output = &ConfigurationSettingsDescription{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2315,12 +2727,12 @@ func (c *ElasticBeanstalk) UpdateConfigurationTemplateRequest(input *UpdateConfi // Updates the specified configuration template to have the specified properties // or configuration option values. // -// If a property (for example, ApplicationName) is not provided, its value -// remains unchanged. To clear such properties, specify an empty string. +// If a property (for example, ApplicationName) is not provided, its value remains +// unchanged. To clear such properties, specify an empty string. // -// Related Topics +// Related Topics // -// DescribeConfigurationOptions +// * DescribeConfigurationOptions // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2330,13 +2742,14 @@ func (c *ElasticBeanstalk) UpdateConfigurationTemplateRequest(input *UpdateConfi // API operation UpdateConfigurationTemplate for usage and error information. // // Returned Error Codes: -// * InsufficientPrivilegesException +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" // The specified account does not have sufficient privileges for one of more // AWS services. // -// * TooManyBucketsException +// * ErrCodeTooManyBucketsException "TooManyBucketsException" // The specified account has reached its limit of Amazon S3 buckets. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateConfigurationTemplate func (c *ElasticBeanstalk) UpdateConfigurationTemplate(input *UpdateConfigurationTemplateInput) (*ConfigurationSettingsDescription, error) { req, out := c.UpdateConfigurationTemplateRequest(input) err := req.Send() @@ -2369,6 +2782,7 @@ const opUpdateEnvironment = "UpdateEnvironment" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateEnvironment func (c *ElasticBeanstalk) UpdateEnvironmentRequest(input *UpdateEnvironmentInput) (req *request.Request, output *EnvironmentDescription) { op := &request.Operation{ Name: opUpdateEnvironment, @@ -2380,9 +2794,8 @@ func (c *ElasticBeanstalk) UpdateEnvironmentRequest(input *UpdateEnvironmentInpu input = &UpdateEnvironmentInput{} } - req = c.newRequest(op, input, output) output = &EnvironmentDescription{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2392,10 +2805,10 @@ func (c *ElasticBeanstalk) UpdateEnvironmentRequest(input *UpdateEnvironmentInpu // the configuration settings to an entirely new configuration template, or // updates select configuration option values in the running environment. // -// Attempting to update both the release and configuration is not allowed -// and AWS Elastic Beanstalk returns an InvalidParameterCombination error. +// Attempting to update both the release and configuration is not allowed and +// AWS Elastic Beanstalk returns an InvalidParameterCombination error. // -// When updating the configuration settings to a new template or individual +// When updating the configuration settings to a new template or individual // settings, a draft configuration is created and DescribeConfigurationSettings // for this environment returns two setting descriptions with different DeploymentStatus // values. @@ -2408,13 +2821,14 @@ func (c *ElasticBeanstalk) UpdateEnvironmentRequest(input *UpdateEnvironmentInpu // API operation UpdateEnvironment for usage and error information. // // Returned Error Codes: -// * InsufficientPrivilegesException +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" // The specified account does not have sufficient privileges for one of more // AWS services. // -// * TooManyBucketsException +// * ErrCodeTooManyBucketsException "TooManyBucketsException" // The specified account has reached its limit of Amazon S3 buckets. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateEnvironment func (c *ElasticBeanstalk) UpdateEnvironment(input *UpdateEnvironmentInput) (*EnvironmentDescription, error) { req, out := c.UpdateEnvironmentRequest(input) err := req.Send() @@ -2447,6 +2861,7 @@ const opValidateConfigurationSettings = "ValidateConfigurationSettings" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ValidateConfigurationSettings func (c *ElasticBeanstalk) ValidateConfigurationSettingsRequest(input *ValidateConfigurationSettingsInput) (req *request.Request, output *ValidateConfigurationSettingsOutput) { op := &request.Operation{ Name: opValidateConfigurationSettings, @@ -2458,9 +2873,8 @@ func (c *ElasticBeanstalk) ValidateConfigurationSettingsRequest(input *ValidateC input = &ValidateConfigurationSettingsInput{} } - req = c.newRequest(op, input, output) output = &ValidateConfigurationSettingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2480,19 +2894,21 @@ func (c *ElasticBeanstalk) ValidateConfigurationSettingsRequest(input *ValidateC // API operation ValidateConfigurationSettings for usage and error information. // // Returned Error Codes: -// * InsufficientPrivilegesException +// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" // The specified account does not have sufficient privileges for one of more // AWS services. // -// * TooManyBucketsException +// * ErrCodeTooManyBucketsException "TooManyBucketsException" // The specified account has reached its limit of Amazon S3 buckets. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ValidateConfigurationSettings func (c *ElasticBeanstalk) ValidateConfigurationSettings(input *ValidateConfigurationSettingsInput) (*ValidateConfigurationSettingsOutput, error) { req, out := c.ValidateConfigurationSettingsRequest(input) err := req.Send() return out, err } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/AbortEnvironmentUpdateMessage type AbortEnvironmentUpdateInput struct { _ struct{} `type:"structure"` @@ -2528,6 +2944,19 @@ func (s *AbortEnvironmentUpdateInput) Validate() error { return nil } +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *AbortEnvironmentUpdateInput) SetEnvironmentId(v string) *AbortEnvironmentUpdateInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *AbortEnvironmentUpdateInput) SetEnvironmentName(v string) *AbortEnvironmentUpdateInput { + s.EnvironmentName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/AbortEnvironmentUpdateOutput type AbortEnvironmentUpdateOutput struct { _ struct{} `type:"structure"` } @@ -2543,6 +2972,7 @@ func (s AbortEnvironmentUpdateOutput) GoString() string { } // Describes the properties of an application. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ApplicationDescription type ApplicationDescription struct { _ struct{} `type:"structure"` @@ -2561,6 +2991,9 @@ type ApplicationDescription struct { // User-defined description of the application. Description *string `type:"string"` + // The lifecycle settings for the application. + ResourceLifecycleConfig *ApplicationResourceLifecycleConfig `type:"structure"` + // The names of the versions for this application. Versions []*string `type:"list"` } @@ -2575,7 +3008,50 @@ func (s ApplicationDescription) GoString() string { return s.String() } +// SetApplicationName sets the ApplicationName field's value. +func (s *ApplicationDescription) SetApplicationName(v string) *ApplicationDescription { + s.ApplicationName = &v + return s +} + +// SetConfigurationTemplates sets the ConfigurationTemplates field's value. +func (s *ApplicationDescription) SetConfigurationTemplates(v []*string) *ApplicationDescription { + s.ConfigurationTemplates = v + return s +} + +// SetDateCreated sets the DateCreated field's value. +func (s *ApplicationDescription) SetDateCreated(v time.Time) *ApplicationDescription { + s.DateCreated = &v + return s +} + +// SetDateUpdated sets the DateUpdated field's value. +func (s *ApplicationDescription) SetDateUpdated(v time.Time) *ApplicationDescription { + s.DateUpdated = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ApplicationDescription) SetDescription(v string) *ApplicationDescription { + s.Description = &v + return s +} + +// SetResourceLifecycleConfig sets the ResourceLifecycleConfig field's value. +func (s *ApplicationDescription) SetResourceLifecycleConfig(v *ApplicationResourceLifecycleConfig) *ApplicationDescription { + s.ResourceLifecycleConfig = v + return s +} + +// SetVersions sets the Versions field's value. +func (s *ApplicationDescription) SetVersions(v []*string) *ApplicationDescription { + s.Versions = v + return s +} + // Result message containing a single description of an application. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ApplicationDescriptionMessage type ApplicationDescriptionMessage struct { _ struct{} `type:"structure"` @@ -2593,7 +3069,14 @@ func (s ApplicationDescriptionMessage) GoString() string { return s.String() } -// Represents the application metrics for a specified environment. +// SetApplication sets the Application field's value. +func (s *ApplicationDescriptionMessage) SetApplication(v *ApplicationDescription) *ApplicationDescriptionMessage { + s.Application = v + return s +} + +// Application request metrics for an AWS Elastic Beanstalk environment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ApplicationMetrics type ApplicationMetrics struct { _ struct{} `type:"structure"` @@ -2603,7 +3086,7 @@ type ApplicationMetrics struct { Duration *int64 `type:"integer"` // Represents the average latency for the slowest X percent of requests over - // the last 10 seconds. Latencies are in seconds with one milisecond resolution. + // the last 10 seconds. Latencies are in seconds with one millisecond resolution. Latency *Latency `type:"structure"` // Average number of requests handled by the web server per second over the @@ -2625,31 +3108,115 @@ func (s ApplicationMetrics) GoString() string { return s.String() } +// SetDuration sets the Duration field's value. +func (s *ApplicationMetrics) SetDuration(v int64) *ApplicationMetrics { + s.Duration = &v + return s +} + +// SetLatency sets the Latency field's value. +func (s *ApplicationMetrics) SetLatency(v *Latency) *ApplicationMetrics { + s.Latency = v + return s +} + +// SetRequestCount sets the RequestCount field's value. +func (s *ApplicationMetrics) SetRequestCount(v int64) *ApplicationMetrics { + s.RequestCount = &v + return s +} + +// SetStatusCodes sets the StatusCodes field's value. +func (s *ApplicationMetrics) SetStatusCodes(v *StatusCodes) *ApplicationMetrics { + s.StatusCodes = v + return s +} + +// The resource lifecycle configuration for an application. Defines lifecycle +// settings for resources that belong to the application, and the service role +// that Elastic Beanstalk assumes in order to apply lifecycle settings. The +// version lifecycle configuration defines lifecycle settings for application +// versions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ApplicationResourceLifecycleConfig +type ApplicationResourceLifecycleConfig struct { + _ struct{} `type:"structure"` + + // The ARN of an IAM service role that Elastic Beanstalk has permission to assume. + ServiceRole *string `type:"string"` + + // The application version lifecycle configuration. + VersionLifecycleConfig *ApplicationVersionLifecycleConfig `type:"structure"` +} + +// String returns the string representation +func (s ApplicationResourceLifecycleConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationResourceLifecycleConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ApplicationResourceLifecycleConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ApplicationResourceLifecycleConfig"} + if s.VersionLifecycleConfig != nil { + if err := s.VersionLifecycleConfig.Validate(); err != nil { + invalidParams.AddNested("VersionLifecycleConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *ApplicationResourceLifecycleConfig) SetServiceRole(v string) *ApplicationResourceLifecycleConfig { + s.ServiceRole = &v + return s +} + +// SetVersionLifecycleConfig sets the VersionLifecycleConfig field's value. +func (s *ApplicationResourceLifecycleConfig) SetVersionLifecycleConfig(v *ApplicationVersionLifecycleConfig) *ApplicationResourceLifecycleConfig { + s.VersionLifecycleConfig = v + return s +} + // Describes the properties of an application version. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ApplicationVersionDescription type ApplicationVersionDescription struct { _ struct{} `type:"structure"` - // The name of the application associated with this release. + // The name of the application to which the application version belongs. ApplicationName *string `min:"1" type:"string"` + // Reference to the artifact from the AWS CodeBuild build. + BuildArn *string `type:"string"` + // The creation date of the application version. DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The last modified date of the application version. DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // The description of this application version. + // The description of the application version. Description *string `type:"string"` + // If the version's source code was retrieved from AWS CodeCommit, the location + // of the source code for the application version. SourceBuildInformation *SourceBuildInformation `type:"structure"` - // The location where the source bundle is located for this version. + // The storage location of the application version's source bundle in Amazon + // S3. SourceBundle *S3Location `type:"structure"` // The processing status of the application version. Status *string `type:"string" enum:"ApplicationVersionStatus"` - // A label uniquely identifying the version for the associated application. + // A unique identifier for the application version. VersionLabel *string `min:"1" type:"string"` } @@ -2663,7 +3230,62 @@ func (s ApplicationVersionDescription) GoString() string { return s.String() } +// SetApplicationName sets the ApplicationName field's value. +func (s *ApplicationVersionDescription) SetApplicationName(v string) *ApplicationVersionDescription { + s.ApplicationName = &v + return s +} + +// SetBuildArn sets the BuildArn field's value. +func (s *ApplicationVersionDescription) SetBuildArn(v string) *ApplicationVersionDescription { + s.BuildArn = &v + return s +} + +// SetDateCreated sets the DateCreated field's value. +func (s *ApplicationVersionDescription) SetDateCreated(v time.Time) *ApplicationVersionDescription { + s.DateCreated = &v + return s +} + +// SetDateUpdated sets the DateUpdated field's value. +func (s *ApplicationVersionDescription) SetDateUpdated(v time.Time) *ApplicationVersionDescription { + s.DateUpdated = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ApplicationVersionDescription) SetDescription(v string) *ApplicationVersionDescription { + s.Description = &v + return s +} + +// SetSourceBuildInformation sets the SourceBuildInformation field's value. +func (s *ApplicationVersionDescription) SetSourceBuildInformation(v *SourceBuildInformation) *ApplicationVersionDescription { + s.SourceBuildInformation = v + return s +} + +// SetSourceBundle sets the SourceBundle field's value. +func (s *ApplicationVersionDescription) SetSourceBundle(v *S3Location) *ApplicationVersionDescription { + s.SourceBundle = v + return s +} + +// SetStatus sets the Status field's value. +func (s *ApplicationVersionDescription) SetStatus(v string) *ApplicationVersionDescription { + s.Status = &v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *ApplicationVersionDescription) SetVersionLabel(v string) *ApplicationVersionDescription { + s.VersionLabel = &v + return s +} + // Result message wrapping a single description of an application version. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ApplicationVersionDescriptionMessage type ApplicationVersionDescriptionMessage struct { _ struct{} `type:"structure"` @@ -2681,7 +3303,76 @@ func (s ApplicationVersionDescriptionMessage) GoString() string { return s.String() } +// SetApplicationVersion sets the ApplicationVersion field's value. +func (s *ApplicationVersionDescriptionMessage) SetApplicationVersion(v *ApplicationVersionDescription) *ApplicationVersionDescriptionMessage { + s.ApplicationVersion = v + return s +} + +// The application version lifecycle settings for an application. Defines the +// rules that Elastic Beanstalk applies to an application's versions in order +// to avoid hitting the per-region limit for application versions. +// +// When Elastic Beanstalk deletes an application version from its database, +// you can no longer deploy that version to an environment. The source bundle +// remains in S3 unless you configure the rule to delete it. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ApplicationVersionLifecycleConfig +type ApplicationVersionLifecycleConfig struct { + _ struct{} `type:"structure"` + + // Specify a max age rule to restrict the length of time that application versions + // are retained for an application. + MaxAgeRule *MaxAgeRule `type:"structure"` + + // Specify a max count rule to restrict the number of application versions that + // are retained for an application. + MaxCountRule *MaxCountRule `type:"structure"` +} + +// String returns the string representation +func (s ApplicationVersionLifecycleConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationVersionLifecycleConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ApplicationVersionLifecycleConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ApplicationVersionLifecycleConfig"} + if s.MaxAgeRule != nil { + if err := s.MaxAgeRule.Validate(); err != nil { + invalidParams.AddNested("MaxAgeRule", err.(request.ErrInvalidParams)) + } + } + if s.MaxCountRule != nil { + if err := s.MaxCountRule.Validate(); err != nil { + invalidParams.AddNested("MaxCountRule", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxAgeRule sets the MaxAgeRule field's value. +func (s *ApplicationVersionLifecycleConfig) SetMaxAgeRule(v *MaxAgeRule) *ApplicationVersionLifecycleConfig { + s.MaxAgeRule = v + return s +} + +// SetMaxCountRule sets the MaxCountRule field's value. +func (s *ApplicationVersionLifecycleConfig) SetMaxCountRule(v *MaxCountRule) *ApplicationVersionLifecycleConfig { + s.MaxCountRule = v + return s +} + // Request to execute a scheduled managed action immediately. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ApplyEnvironmentManagedActionRequest type ApplyEnvironmentManagedActionInput struct { _ struct{} `type:"structure"` @@ -2720,7 +3411,26 @@ func (s *ApplyEnvironmentManagedActionInput) Validate() error { return nil } +// SetActionId sets the ActionId field's value. +func (s *ApplyEnvironmentManagedActionInput) SetActionId(v string) *ApplyEnvironmentManagedActionInput { + s.ActionId = &v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *ApplyEnvironmentManagedActionInput) SetEnvironmentId(v string) *ApplyEnvironmentManagedActionInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *ApplyEnvironmentManagedActionInput) SetEnvironmentName(v string) *ApplyEnvironmentManagedActionInput { + s.EnvironmentName = &v + return s +} + // The result message containing information about the managed action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ApplyEnvironmentManagedActionResult type ApplyEnvironmentManagedActionOutput struct { _ struct{} `type:"structure"` @@ -2747,7 +3457,32 @@ func (s ApplyEnvironmentManagedActionOutput) GoString() string { return s.String() } +// SetActionDescription sets the ActionDescription field's value. +func (s *ApplyEnvironmentManagedActionOutput) SetActionDescription(v string) *ApplyEnvironmentManagedActionOutput { + s.ActionDescription = &v + return s +} + +// SetActionId sets the ActionId field's value. +func (s *ApplyEnvironmentManagedActionOutput) SetActionId(v string) *ApplyEnvironmentManagedActionOutput { + s.ActionId = &v + return s +} + +// SetActionType sets the ActionType field's value. +func (s *ApplyEnvironmentManagedActionOutput) SetActionType(v string) *ApplyEnvironmentManagedActionOutput { + s.ActionType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ApplyEnvironmentManagedActionOutput) SetStatus(v string) *ApplyEnvironmentManagedActionOutput { + s.Status = &v + return s +} + // Describes an Auto Scaling launch configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/AutoScalingGroup type AutoScalingGroup struct { _ struct{} `type:"structure"` @@ -2765,10 +3500,134 @@ func (s AutoScalingGroup) GoString() string { return s.String() } -// Represents CPU utilization information from the specified instance that belongs -// to the AWS Elastic Beanstalk environment. Use the instanceId property to -// specify the application instance for which you'd like to return data. -type CPUUtilization struct { +// SetName sets the Name field's value. +func (s *AutoScalingGroup) SetName(v string) *AutoScalingGroup { + s.Name = &v + return s +} + +// Settings for an AWS CodeBuild build. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/BuildConfiguration +type BuildConfiguration struct { + _ struct{} `type:"structure"` + + // The name of the artifact of the CodeBuild build. If provided, Elastic Beanstalk + // stores the build artifact in the S3 location S3-bucket/resources/application-name/codebuild/codebuild-version-label-artifact-name.zip. + // If not provided, Elastic Beanstalk stores the build artifact in the S3 location + // S3-bucket/resources/application-name/codebuild/codebuild-version-label.zip. + ArtifactName *string `type:"string"` + + // The Amazon Resource Name (ARN) of the AWS Identity and Access Management + // (IAM) role that enables AWS CodeBuild to interact with dependent AWS services + // on behalf of the AWS account. + // + // CodeBuildServiceRole is a required field + CodeBuildServiceRole *string `type:"string" required:"true"` + + // Information about the compute resources the build project will use. + // + // * BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds + // + // * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds + // + // * BUILD_GENERAL1_LARGE: Use up to 15 GB memory and 8 vCPUs for builds + ComputeType *string `type:"string" enum:"ComputeType"` + + // The ID of the Docker image to use for this build project. + // + // Image is a required field + Image *string `type:"string" required:"true"` + + // How long in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until + // timing out any related build that does not get marked as completed. The default + // is 60 minutes. + TimeoutInMinutes *int64 `type:"integer"` +} + +// String returns the string representation +func (s BuildConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BuildConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BuildConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BuildConfiguration"} + if s.CodeBuildServiceRole == nil { + invalidParams.Add(request.NewErrParamRequired("CodeBuildServiceRole")) + } + if s.Image == nil { + invalidParams.Add(request.NewErrParamRequired("Image")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArtifactName sets the ArtifactName field's value. +func (s *BuildConfiguration) SetArtifactName(v string) *BuildConfiguration { + s.ArtifactName = &v + return s +} + +// SetCodeBuildServiceRole sets the CodeBuildServiceRole field's value. +func (s *BuildConfiguration) SetCodeBuildServiceRole(v string) *BuildConfiguration { + s.CodeBuildServiceRole = &v + return s +} + +// SetComputeType sets the ComputeType field's value. +func (s *BuildConfiguration) SetComputeType(v string) *BuildConfiguration { + s.ComputeType = &v + return s +} + +// SetImage sets the Image field's value. +func (s *BuildConfiguration) SetImage(v string) *BuildConfiguration { + s.Image = &v + return s +} + +// SetTimeoutInMinutes sets the TimeoutInMinutes field's value. +func (s *BuildConfiguration) SetTimeoutInMinutes(v int64) *BuildConfiguration { + s.TimeoutInMinutes = &v + return s +} + +// The builder used to build the custom platform. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/Builder +type Builder struct { + _ struct{} `type:"structure"` + + // The ARN of the builder. + ARN *string `type:"string"` +} + +// String returns the string representation +func (s Builder) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Builder) GoString() string { + return s.String() +} + +// SetARN sets the ARN field's value. +func (s *Builder) SetARN(v string) *Builder { + s.ARN = &v + return s +} + +// CPU utilization metrics for an instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CPUUtilization +type CPUUtilization struct { _ struct{} `type:"structure"` // Percentage of time that the CPU has spent in the I/O Wait state over the @@ -2810,7 +3669,50 @@ func (s CPUUtilization) GoString() string { return s.String() } +// SetIOWait sets the IOWait field's value. +func (s *CPUUtilization) SetIOWait(v float64) *CPUUtilization { + s.IOWait = &v + return s +} + +// SetIRQ sets the IRQ field's value. +func (s *CPUUtilization) SetIRQ(v float64) *CPUUtilization { + s.IRQ = &v + return s +} + +// SetIdle sets the Idle field's value. +func (s *CPUUtilization) SetIdle(v float64) *CPUUtilization { + s.Idle = &v + return s +} + +// SetNice sets the Nice field's value. +func (s *CPUUtilization) SetNice(v float64) *CPUUtilization { + s.Nice = &v + return s +} + +// SetSoftIRQ sets the SoftIRQ field's value. +func (s *CPUUtilization) SetSoftIRQ(v float64) *CPUUtilization { + s.SoftIRQ = &v + return s +} + +// SetSystem sets the System field's value. +func (s *CPUUtilization) SetSystem(v float64) *CPUUtilization { + s.System = &v + return s +} + +// SetUser sets the User field's value. +func (s *CPUUtilization) SetUser(v float64) *CPUUtilization { + s.User = &v + return s +} + // Results message indicating whether a CNAME is available. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CheckDNSAvailabilityMessage type CheckDNSAvailabilityInput struct { _ struct{} `type:"structure"` @@ -2846,15 +3748,22 @@ func (s *CheckDNSAvailabilityInput) Validate() error { return nil } +// SetCNAMEPrefix sets the CNAMEPrefix field's value. +func (s *CheckDNSAvailabilityInput) SetCNAMEPrefix(v string) *CheckDNSAvailabilityInput { + s.CNAMEPrefix = &v + return s +} + // Indicates if the specified CNAME is available. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CheckDNSAvailabilityResultMessage type CheckDNSAvailabilityOutput struct { _ struct{} `type:"structure"` // Indicates if the specified CNAME is available: // - // true : The CNAME is available. + // * true : The CNAME is available. // - // false : The CNAME is not available. + // * false : The CNAME is not available. Available *bool `type:"boolean"` // The fully qualified CNAME to reserve when CreateEnvironment is called with @@ -2872,7 +3781,20 @@ func (s CheckDNSAvailabilityOutput) GoString() string { return s.String() } +// SetAvailable sets the Available field's value. +func (s *CheckDNSAvailabilityOutput) SetAvailable(v bool) *CheckDNSAvailabilityOutput { + s.Available = &v + return s +} + +// SetFullyQualifiedCNAME sets the FullyQualifiedCNAME field's value. +func (s *CheckDNSAvailabilityOutput) SetFullyQualifiedCNAME(v string) *CheckDNSAvailabilityOutput { + s.FullyQualifiedCNAME = &v + return s +} + // Request to create or update a group of environments. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ComposeEnvironmentsMessage type ComposeEnvironmentsInput struct { _ struct{} `type:"structure"` @@ -2920,23 +3842,42 @@ func (s *ComposeEnvironmentsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *ComposeEnvironmentsInput) SetApplicationName(v string) *ComposeEnvironmentsInput { + s.ApplicationName = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *ComposeEnvironmentsInput) SetGroupName(v string) *ComposeEnvironmentsInput { + s.GroupName = &v + return s +} + +// SetVersionLabels sets the VersionLabels field's value. +func (s *ComposeEnvironmentsInput) SetVersionLabels(v []*string) *ComposeEnvironmentsInput { + s.VersionLabels = v + return s +} + // Describes the possible values for a configuration option. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ConfigurationOptionDescription type ConfigurationOptionDescription struct { _ struct{} `type:"structure"` // An indication of which action is required if the value for this configuration // option changes: // - // NoInterruption : There is no interruption to the environment or application - // availability. + // * NoInterruption : There is no interruption to the environment or application + // availability. // - // RestartEnvironment : The environment is entirely restarted, all AWS resources - // are deleted and recreated, and the environment is unavailable during the - // process. + // * RestartEnvironment : The environment is entirely restarted, all AWS + // resources are deleted and recreated, and the environment is unavailable + // during the process. // - // RestartApplicationServer : The environment is available the entire time. - // However, a short application outage occurs when the application servers on - // the running Amazon EC2 instances are restarted. + // * RestartApplicationServer : The environment is available the entire time. + // However, a short application outage occurs when the application servers + // on the running Amazon EC2 instances are restarted. ChangeSeverity *string `type:"string"` // The default value for this configuration option. @@ -2966,15 +3907,15 @@ type ConfigurationOptionDescription struct { // An indication of whether the user defined this configuration option: // - // true : This configuration option was defined by the user. It is a valid - // choice for specifying if this as an Option to Remove when updating configuration - // settings. + // * true : This configuration option was defined by the user. It is a valid + // choice for specifying if this as an Option to Remove when updating configuration + // settings. // - // false : This configuration was not defined by the user. + // * false : This configuration was not defined by the user. // - // Constraint: You can remove only UserDefined options from a configuration. + // Constraint: You can remove only UserDefined options from a configuration. // - // Valid Values: true | false + // Valid Values: true | false UserDefined *bool `type:"boolean"` // If specified, values for the configuration option are selected from this @@ -2984,16 +3925,16 @@ type ConfigurationOptionDescription struct { // An indication of which type of values this option has and whether it is allowable // to select one or more than one of the possible values: // - // Scalar : Values for this option are a single selection from the possible - // values, or an unformatted string, or numeric value governed by the MIN/MAX/Regex - // constraints. + // * Scalar : Values for this option are a single selection from the possible + // values, or an unformatted string, or numeric value governed by the MIN/MAX/Regex + // constraints. // - // List : Values for this option are multiple selections from the possible - // values. + // * List : Values for this option are multiple selections from the possible + // values. // - // Boolean : Values for this option are either true or false . + // * Boolean : Values for this option are either true or false . // - // Json : Values for this option are a JSON representation of a ConfigDocument. + // * Json : Values for this option are a JSON representation of a ConfigDocument. ValueType *string `type:"string" enum:"ConfigurationOptionValueType"` } @@ -3007,10 +3948,77 @@ func (s ConfigurationOptionDescription) GoString() string { return s.String() } +// SetChangeSeverity sets the ChangeSeverity field's value. +func (s *ConfigurationOptionDescription) SetChangeSeverity(v string) *ConfigurationOptionDescription { + s.ChangeSeverity = &v + return s +} + +// SetDefaultValue sets the DefaultValue field's value. +func (s *ConfigurationOptionDescription) SetDefaultValue(v string) *ConfigurationOptionDescription { + s.DefaultValue = &v + return s +} + +// SetMaxLength sets the MaxLength field's value. +func (s *ConfigurationOptionDescription) SetMaxLength(v int64) *ConfigurationOptionDescription { + s.MaxLength = &v + return s +} + +// SetMaxValue sets the MaxValue field's value. +func (s *ConfigurationOptionDescription) SetMaxValue(v int64) *ConfigurationOptionDescription { + s.MaxValue = &v + return s +} + +// SetMinValue sets the MinValue field's value. +func (s *ConfigurationOptionDescription) SetMinValue(v int64) *ConfigurationOptionDescription { + s.MinValue = &v + return s +} + +// SetName sets the Name field's value. +func (s *ConfigurationOptionDescription) SetName(v string) *ConfigurationOptionDescription { + s.Name = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *ConfigurationOptionDescription) SetNamespace(v string) *ConfigurationOptionDescription { + s.Namespace = &v + return s +} + +// SetRegex sets the Regex field's value. +func (s *ConfigurationOptionDescription) SetRegex(v *OptionRestrictionRegex) *ConfigurationOptionDescription { + s.Regex = v + return s +} + +// SetUserDefined sets the UserDefined field's value. +func (s *ConfigurationOptionDescription) SetUserDefined(v bool) *ConfigurationOptionDescription { + s.UserDefined = &v + return s +} + +// SetValueOptions sets the ValueOptions field's value. +func (s *ConfigurationOptionDescription) SetValueOptions(v []*string) *ConfigurationOptionDescription { + s.ValueOptions = v + return s +} + +// SetValueType sets the ValueType field's value. +func (s *ConfigurationOptionDescription) SetValueType(v string) *ConfigurationOptionDescription { + s.ValueType = &v + return s +} + // A specification identifying an individual configuration option along with // its current value. For a list of possible option values, go to Option Values // (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html) // in the AWS Elastic Beanstalk Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ConfigurationOptionSetting type ConfigurationOptionSetting struct { _ struct{} `type:"structure"` @@ -3050,7 +4058,32 @@ func (s *ConfigurationOptionSetting) Validate() error { return nil } +// SetNamespace sets the Namespace field's value. +func (s *ConfigurationOptionSetting) SetNamespace(v string) *ConfigurationOptionSetting { + s.Namespace = &v + return s +} + +// SetOptionName sets the OptionName field's value. +func (s *ConfigurationOptionSetting) SetOptionName(v string) *ConfigurationOptionSetting { + s.OptionName = &v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *ConfigurationOptionSetting) SetResourceName(v string) *ConfigurationOptionSetting { + s.ResourceName = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ConfigurationOptionSetting) SetValue(v string) *ConfigurationOptionSetting { + s.Value = &v + return s +} + // Describes the settings for a configuration set. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ConfigurationSettingsDescription type ConfigurationSettingsDescription struct { _ struct{} `type:"structure"` @@ -3066,15 +4099,15 @@ type ConfigurationSettingsDescription struct { // If this configuration set is associated with an environment, the DeploymentStatus // parameter indicates the deployment status of this configuration set: // - // null: This configuration is not associated with a running environment. + // * null: This configuration is not associated with a running environment. // - // pending: This is a draft configuration that is not deployed to the associated - // environment but is in the process of deploying. + // * pending: This is a draft configuration that is not deployed to the associated + // environment but is in the process of deploying. // - // deployed: This is the configuration that is currently deployed to the - // associated running environment. + // * deployed: This is the configuration that is currently deployed to the + // associated running environment. // - // failed: This is a draft configuration that failed to successfully deploy. + // * failed: This is a draft configuration that failed to successfully deploy. DeploymentStatus *string `type:"string" enum:"ConfigurationDeploymentStatus"` // Describes this configuration set. @@ -3087,6 +4120,9 @@ type ConfigurationSettingsDescription struct { // set. OptionSettings []*ConfigurationOptionSetting `type:"list"` + // The ARN of the custom platform. + PlatformArn *string `type:"string"` + // The name of the solution stack this configuration set uses. SolutionStackName *string `type:"string"` @@ -3105,7 +4141,68 @@ func (s ConfigurationSettingsDescription) GoString() string { return s.String() } +// SetApplicationName sets the ApplicationName field's value. +func (s *ConfigurationSettingsDescription) SetApplicationName(v string) *ConfigurationSettingsDescription { + s.ApplicationName = &v + return s +} + +// SetDateCreated sets the DateCreated field's value. +func (s *ConfigurationSettingsDescription) SetDateCreated(v time.Time) *ConfigurationSettingsDescription { + s.DateCreated = &v + return s +} + +// SetDateUpdated sets the DateUpdated field's value. +func (s *ConfigurationSettingsDescription) SetDateUpdated(v time.Time) *ConfigurationSettingsDescription { + s.DateUpdated = &v + return s +} + +// SetDeploymentStatus sets the DeploymentStatus field's value. +func (s *ConfigurationSettingsDescription) SetDeploymentStatus(v string) *ConfigurationSettingsDescription { + s.DeploymentStatus = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ConfigurationSettingsDescription) SetDescription(v string) *ConfigurationSettingsDescription { + s.Description = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *ConfigurationSettingsDescription) SetEnvironmentName(v string) *ConfigurationSettingsDescription { + s.EnvironmentName = &v + return s +} + +// SetOptionSettings sets the OptionSettings field's value. +func (s *ConfigurationSettingsDescription) SetOptionSettings(v []*ConfigurationOptionSetting) *ConfigurationSettingsDescription { + s.OptionSettings = v + return s +} + +// SetPlatformArn sets the PlatformArn field's value. +func (s *ConfigurationSettingsDescription) SetPlatformArn(v string) *ConfigurationSettingsDescription { + s.PlatformArn = &v + return s +} + +// SetSolutionStackName sets the SolutionStackName field's value. +func (s *ConfigurationSettingsDescription) SetSolutionStackName(v string) *ConfigurationSettingsDescription { + s.SolutionStackName = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *ConfigurationSettingsDescription) SetTemplateName(v string) *ConfigurationSettingsDescription { + s.TemplateName = &v + return s +} + // Request to create an application. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateApplicationMessage type CreateApplicationInput struct { _ struct{} `type:"structure"` @@ -3119,6 +4216,10 @@ type CreateApplicationInput struct { // Describes the application. Description *string `type:"string"` + + // Specify an application resource lifecycle configuration to prevent your application + // from accumulating too many versions. + ResourceLifecycleConfig *ApplicationResourceLifecycleConfig `type:"structure"` } // String returns the string representation @@ -3140,6 +4241,11 @@ func (s *CreateApplicationInput) Validate() error { if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) } + if s.ResourceLifecycleConfig != nil { + if err := s.ResourceLifecycleConfig.Validate(); err != nil { + invalidParams.AddNested("ResourceLifecycleConfig", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -3147,6 +4253,25 @@ func (s *CreateApplicationInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *CreateApplicationInput) SetApplicationName(v string) *CreateApplicationInput { + s.ApplicationName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateApplicationInput) SetDescription(v string) *CreateApplicationInput { + s.Description = &v + return s +} + +// SetResourceLifecycleConfig sets the ResourceLifecycleConfig field's value. +func (s *CreateApplicationInput) SetResourceLifecycleConfig(v *ApplicationResourceLifecycleConfig) *CreateApplicationInput { + s.ResourceLifecycleConfig = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateApplicationVersionMessage type CreateApplicationVersionInput struct { _ struct{} `type:"structure"` @@ -3156,20 +4281,13 @@ type CreateApplicationVersionInput struct { // ApplicationName is a required field ApplicationName *string `min:"1" type:"string" required:"true"` - // Determines how the system behaves if the specified application for this version - // does not already exist: - // - // true : Automatically creates the specified application for this release - // if it does not already exist. - // - // false : Throws an InvalidParameterValue if the specified application - // for this release does not already exist. - // - // Default: false - // - // Valid Values: true | false + // Set to true to create an application with the specified name if it doesn't + // already exist. AutoCreateApplication *bool `type:"boolean"` + // Settings for an AWS CodeBuild build. + BuildConfiguration *BuildConfiguration `type:"structure"` + // Describes this version. Description *string `type:"string"` @@ -3178,19 +4296,18 @@ type CreateApplicationVersionInput struct { // prior to deploying the application version to an environment. Process *bool `type:"boolean"` + // Specify a commit in an AWS CodeCommit Git repository to use as the source + // code for the application version. SourceBuildInformation *SourceBuildInformation `type:"structure"` // The Amazon S3 bucket and key that identify the location of the source bundle // for this version. // - // If data found at the Amazon S3 location exceeds the maximum allowed source - // bundle size, AWS Elastic Beanstalk returns an InvalidParameterValue error. - // The maximum size allowed is 512 MB. + // The Amazon S3 bucket must be in the same region as the environment. // - // Default: If not specified, AWS Elastic Beanstalk uses a sample application. - // If only partially specified (for example, a bucket is provided but not the - // key) or if no data is found at the Amazon S3 location, AWS Elastic Beanstalk - // returns an InvalidParameterCombination error. + // Specify a source bundle in S3 or a commit in an AWS CodeCommit repository + // (with SourceBuildInformation), but not both. If neither SourceBundle nor + // SourceBuildInformation are provided, Elastic Beanstalk uses a sample application. SourceBundle *S3Location `type:"structure"` // A label identifying this version. @@ -3228,6 +4345,11 @@ func (s *CreateApplicationVersionInput) Validate() error { if s.VersionLabel != nil && len(*s.VersionLabel) < 1 { invalidParams.Add(request.NewErrParamMinLen("VersionLabel", 1)) } + if s.BuildConfiguration != nil { + if err := s.BuildConfiguration.Validate(); err != nil { + invalidParams.AddNested("BuildConfiguration", err.(request.ErrInvalidParams)) + } + } if s.SourceBuildInformation != nil { if err := s.SourceBuildInformation.Validate(); err != nil { invalidParams.AddNested("SourceBuildInformation", err.(request.ErrInvalidParams)) @@ -3240,7 +4362,56 @@ func (s *CreateApplicationVersionInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *CreateApplicationVersionInput) SetApplicationName(v string) *CreateApplicationVersionInput { + s.ApplicationName = &v + return s +} + +// SetAutoCreateApplication sets the AutoCreateApplication field's value. +func (s *CreateApplicationVersionInput) SetAutoCreateApplication(v bool) *CreateApplicationVersionInput { + s.AutoCreateApplication = &v + return s +} + +// SetBuildConfiguration sets the BuildConfiguration field's value. +func (s *CreateApplicationVersionInput) SetBuildConfiguration(v *BuildConfiguration) *CreateApplicationVersionInput { + s.BuildConfiguration = v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateApplicationVersionInput) SetDescription(v string) *CreateApplicationVersionInput { + s.Description = &v + return s +} + +// SetProcess sets the Process field's value. +func (s *CreateApplicationVersionInput) SetProcess(v bool) *CreateApplicationVersionInput { + s.Process = &v + return s +} + +// SetSourceBuildInformation sets the SourceBuildInformation field's value. +func (s *CreateApplicationVersionInput) SetSourceBuildInformation(v *SourceBuildInformation) *CreateApplicationVersionInput { + s.SourceBuildInformation = v + return s +} + +// SetSourceBundle sets the SourceBundle field's value. +func (s *CreateApplicationVersionInput) SetSourceBundle(v *S3Location) *CreateApplicationVersionInput { + s.SourceBundle = v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *CreateApplicationVersionInput) SetVersionLabel(v string) *CreateApplicationVersionInput { + s.VersionLabel = &v + return s +} + // Request to create a configuration template. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateConfigurationTemplateMessage type CreateConfigurationTemplateInput struct { _ struct{} `type:"structure"` @@ -3262,15 +4433,17 @@ type CreateConfigurationTemplateInput struct { // solution stack or the source configuration template. OptionSettings []*ConfigurationOptionSetting `type:"list"` + // The ARN of the custome platform. + PlatformArn *string `type:"string"` + // The name of the solution stack used by this configuration. The solution stack // specifies the operating system, architecture, and application server for // a configuration template. It determines the set of configuration options // as well as the possible and default values. // - // Use ListAvailableSolutionStacks to obtain a list of available solution - // stacks. + // Use ListAvailableSolutionStacks to obtain a list of available solution stacks. // - // A solution stack name or a source configuration parameter must be specified, + // A solution stack name or a source configuration parameter must be specified, // otherwise AWS Elastic Beanstalk returns an InvalidParameterValue error. // // If a solution stack name is not specified and the source configuration parameter @@ -3281,13 +4454,12 @@ type CreateConfigurationTemplateInput struct { // If specified, AWS Elastic Beanstalk uses the configuration values from the // specified configuration template to create a new configuration. // - // Values specified in the OptionSettings parameter of this call overrides - // any values obtained from the SourceConfiguration. + // Values specified in the OptionSettings parameter of this call overrides any + // values obtained from the SourceConfiguration. // - // If no configuration template is found, returns an InvalidParameterValue - // error. + // If no configuration template is found, returns an InvalidParameterValue error. // - // Constraint: If both the solution stack name parameter and the source configuration + // Constraint: If both the solution stack name parameter and the source configuration // parameters are specified, the solution stack of the source configuration // template must match the specified solution stack name or else AWS Elastic // Beanstalk returns an InvalidParameterCombination error. @@ -3297,8 +4469,8 @@ type CreateConfigurationTemplateInput struct { // // Constraint: This name must be unique per application. // - // Default: If a configuration template already exists with this name, AWS - // Elastic Beanstalk returns an InvalidParameterValue error. + // Default: If a configuration template already exists with this name, AWS Elastic + // Beanstalk returns an InvalidParameterValue error. // // TemplateName is a required field TemplateName *string `min:"1" type:"string" required:"true"` @@ -3351,13 +4523,62 @@ func (s *CreateConfigurationTemplateInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *CreateConfigurationTemplateInput) SetApplicationName(v string) *CreateConfigurationTemplateInput { + s.ApplicationName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateConfigurationTemplateInput) SetDescription(v string) *CreateConfigurationTemplateInput { + s.Description = &v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *CreateConfigurationTemplateInput) SetEnvironmentId(v string) *CreateConfigurationTemplateInput { + s.EnvironmentId = &v + return s +} + +// SetOptionSettings sets the OptionSettings field's value. +func (s *CreateConfigurationTemplateInput) SetOptionSettings(v []*ConfigurationOptionSetting) *CreateConfigurationTemplateInput { + s.OptionSettings = v + return s +} + +// SetPlatformArn sets the PlatformArn field's value. +func (s *CreateConfigurationTemplateInput) SetPlatformArn(v string) *CreateConfigurationTemplateInput { + s.PlatformArn = &v + return s +} + +// SetSolutionStackName sets the SolutionStackName field's value. +func (s *CreateConfigurationTemplateInput) SetSolutionStackName(v string) *CreateConfigurationTemplateInput { + s.SolutionStackName = &v + return s +} + +// SetSourceConfiguration sets the SourceConfiguration field's value. +func (s *CreateConfigurationTemplateInput) SetSourceConfiguration(v *SourceConfiguration) *CreateConfigurationTemplateInput { + s.SourceConfiguration = v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *CreateConfigurationTemplateInput) SetTemplateName(v string) *CreateConfigurationTemplateInput { + s.TemplateName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateEnvironmentMessage type CreateEnvironmentInput struct { _ struct{} `type:"structure"` // The name of the application that contains the version to be deployed. // - // If no application is found with this name, CreateEnvironment returns an - // InvalidParameterValue error. + // If no application is found with this name, CreateEnvironment returns an InvalidParameterValue + // error. // // ApplicationName is a required field ApplicationName *string `min:"1" type:"string" required:"true"` @@ -3398,14 +4619,12 @@ type CreateEnvironmentInput struct { // set for this new environment. OptionsToRemove []*OptionSpecification `type:"list"` + // The ARN of the custom platform. + PlatformArn *string `type:"string"` + // This is an alternative to specifying a template name. If specified, AWS Elastic // Beanstalk sets the configuration values to the default values associated // with the specified solution stack. - // - // Condition: You must specify either this or a TemplateName, but not both. - // If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination - // error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter - // error. SolutionStackName *string `type:"string"` // This specifies the tags applied to resources in the environment. @@ -3414,11 +4633,6 @@ type CreateEnvironmentInput struct { // The name of the configuration template to use in deployment. If no configuration // template is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue // error. - // - // Condition: You must specify either this parameter or a SolutionStackName, - // but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination - // error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter - // error. TemplateName *string `min:"1" type:"string"` // This specifies the tier to use for creating this environment. @@ -3426,11 +4640,11 @@ type CreateEnvironmentInput struct { // The name of the application version to deploy. // - // If the specified application has no associated application versions, AWS + // If the specified application has no associated application versions, AWS // Elastic Beanstalk UpdateEnvironment returns an InvalidParameterValue error. // - // Default: If not specified, AWS Elastic Beanstalk attempts to launch the - // sample application in the container. + // Default: If not specified, AWS Elastic Beanstalk attempts to launch the sample + // application in the container. VersionLabel *string `min:"1" type:"string"` } @@ -3505,78 +4719,344 @@ func (s *CreateEnvironmentInput) Validate() error { return nil } -type CreateStorageLocationInput struct { - _ struct{} `type:"structure"` +// SetApplicationName sets the ApplicationName field's value. +func (s *CreateEnvironmentInput) SetApplicationName(v string) *CreateEnvironmentInput { + s.ApplicationName = &v + return s } -// String returns the string representation -func (s CreateStorageLocationInput) String() string { - return awsutil.Prettify(s) +// SetCNAMEPrefix sets the CNAMEPrefix field's value. +func (s *CreateEnvironmentInput) SetCNAMEPrefix(v string) *CreateEnvironmentInput { + s.CNAMEPrefix = &v + return s } -// GoString returns the string representation -func (s CreateStorageLocationInput) GoString() string { - return s.String() +// SetDescription sets the Description field's value. +func (s *CreateEnvironmentInput) SetDescription(v string) *CreateEnvironmentInput { + s.Description = &v + return s } -// Results of a CreateStorageLocationResult call. -type CreateStorageLocationOutput struct { - _ struct{} `type:"structure"` +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *CreateEnvironmentInput) SetEnvironmentName(v string) *CreateEnvironmentInput { + s.EnvironmentName = &v + return s +} - // The name of the Amazon S3 bucket created. - S3Bucket *string `type:"string"` +// SetGroupName sets the GroupName field's value. +func (s *CreateEnvironmentInput) SetGroupName(v string) *CreateEnvironmentInput { + s.GroupName = &v + return s } -// String returns the string representation -func (s CreateStorageLocationOutput) String() string { - return awsutil.Prettify(s) +// SetOptionSettings sets the OptionSettings field's value. +func (s *CreateEnvironmentInput) SetOptionSettings(v []*ConfigurationOptionSetting) *CreateEnvironmentInput { + s.OptionSettings = v + return s } -// GoString returns the string representation -func (s CreateStorageLocationOutput) GoString() string { - return s.String() +// SetOptionsToRemove sets the OptionsToRemove field's value. +func (s *CreateEnvironmentInput) SetOptionsToRemove(v []*OptionSpecification) *CreateEnvironmentInput { + s.OptionsToRemove = v + return s } -// Request to delete an application. -type DeleteApplicationInput struct { +// SetPlatformArn sets the PlatformArn field's value. +func (s *CreateEnvironmentInput) SetPlatformArn(v string) *CreateEnvironmentInput { + s.PlatformArn = &v + return s +} + +// SetSolutionStackName sets the SolutionStackName field's value. +func (s *CreateEnvironmentInput) SetSolutionStackName(v string) *CreateEnvironmentInput { + s.SolutionStackName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateEnvironmentInput) SetTags(v []*Tag) *CreateEnvironmentInput { + s.Tags = v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *CreateEnvironmentInput) SetTemplateName(v string) *CreateEnvironmentInput { + s.TemplateName = &v + return s +} + +// SetTier sets the Tier field's value. +func (s *CreateEnvironmentInput) SetTier(v *EnvironmentTier) *CreateEnvironmentInput { + s.Tier = v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *CreateEnvironmentInput) SetVersionLabel(v string) *CreateEnvironmentInput { + s.VersionLabel = &v + return s +} + +// Request to create a new platform version. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreatePlatformVersionRequest +type CreatePlatformVersionInput struct { _ struct{} `type:"structure"` - // The name of the application to delete. + // The name of the builder environment. + EnvironmentName *string `min:"4" type:"string"` + + // The configuration option settings to apply to the builder environment. + OptionSettings []*ConfigurationOptionSetting `type:"list"` + + // The location of the platform definition archive in Amazon S3. // - // ApplicationName is a required field - ApplicationName *string `min:"1" type:"string" required:"true"` + // PlatformDefinitionBundle is a required field + PlatformDefinitionBundle *S3Location `type:"structure" required:"true"` - // When set to true, running environments will be terminated before deleting - // the application. - TerminateEnvByForce *bool `type:"boolean"` + // The name of your custom platform. + // + // PlatformName is a required field + PlatformName *string `type:"string" required:"true"` + + // The number, such as 1.0.2, for the new platform version. + // + // PlatformVersion is a required field + PlatformVersion *string `type:"string" required:"true"` } // String returns the string representation -func (s DeleteApplicationInput) String() string { +func (s CreatePlatformVersionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteApplicationInput) GoString() string { +func (s CreatePlatformVersionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteApplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationInput"} - if s.ApplicationName == nil { - invalidParams.Add(request.NewErrParamRequired("ApplicationName")) +func (s *CreatePlatformVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreatePlatformVersionInput"} + if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4)) } - if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) + if s.PlatformDefinitionBundle == nil { + invalidParams.Add(request.NewErrParamRequired("PlatformDefinitionBundle")) } - - if invalidParams.Len() > 0 { - return invalidParams + if s.PlatformName == nil { + invalidParams.Add(request.NewErrParamRequired("PlatformName")) } - return nil -} - + if s.PlatformVersion == nil { + invalidParams.Add(request.NewErrParamRequired("PlatformVersion")) + } + if s.OptionSettings != nil { + for i, v := range s.OptionSettings { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionSettings", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *CreatePlatformVersionInput) SetEnvironmentName(v string) *CreatePlatformVersionInput { + s.EnvironmentName = &v + return s +} + +// SetOptionSettings sets the OptionSettings field's value. +func (s *CreatePlatformVersionInput) SetOptionSettings(v []*ConfigurationOptionSetting) *CreatePlatformVersionInput { + s.OptionSettings = v + return s +} + +// SetPlatformDefinitionBundle sets the PlatformDefinitionBundle field's value. +func (s *CreatePlatformVersionInput) SetPlatformDefinitionBundle(v *S3Location) *CreatePlatformVersionInput { + s.PlatformDefinitionBundle = v + return s +} + +// SetPlatformName sets the PlatformName field's value. +func (s *CreatePlatformVersionInput) SetPlatformName(v string) *CreatePlatformVersionInput { + s.PlatformName = &v + return s +} + +// SetPlatformVersion sets the PlatformVersion field's value. +func (s *CreatePlatformVersionInput) SetPlatformVersion(v string) *CreatePlatformVersionInput { + s.PlatformVersion = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreatePlatformVersionResult +type CreatePlatformVersionOutput struct { + _ struct{} `type:"structure"` + + // The builder used to create the custom platform. + Builder *Builder `type:"structure"` + + // Detailed information about the new version of the custom platform. + PlatformSummary *PlatformSummary `type:"structure"` +} + +// String returns the string representation +func (s CreatePlatformVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePlatformVersionOutput) GoString() string { + return s.String() +} + +// SetBuilder sets the Builder field's value. +func (s *CreatePlatformVersionOutput) SetBuilder(v *Builder) *CreatePlatformVersionOutput { + s.Builder = v + return s +} + +// SetPlatformSummary sets the PlatformSummary field's value. +func (s *CreatePlatformVersionOutput) SetPlatformSummary(v *PlatformSummary) *CreatePlatformVersionOutput { + s.PlatformSummary = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateStorageLocationInput +type CreateStorageLocationInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateStorageLocationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateStorageLocationInput) GoString() string { + return s.String() +} + +// Results of a CreateStorageLocationResult call. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateStorageLocationResultMessage +type CreateStorageLocationOutput struct { + _ struct{} `type:"structure"` + + // The name of the Amazon S3 bucket created. + S3Bucket *string `type:"string"` +} + +// String returns the string representation +func (s CreateStorageLocationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateStorageLocationOutput) GoString() string { + return s.String() +} + +// SetS3Bucket sets the S3Bucket field's value. +func (s *CreateStorageLocationOutput) SetS3Bucket(v string) *CreateStorageLocationOutput { + s.S3Bucket = &v + return s +} + +// A custom AMI available to platforms. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CustomAmi +type CustomAmi struct { + _ struct{} `type:"structure"` + + // THe ID of the image used to create the custom AMI. + ImageId *string `type:"string"` + + // The type of virtualization used to create the custom AMI. + VirtualizationType *string `type:"string"` +} + +// String returns the string representation +func (s CustomAmi) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CustomAmi) GoString() string { + return s.String() +} + +// SetImageId sets the ImageId field's value. +func (s *CustomAmi) SetImageId(v string) *CustomAmi { + s.ImageId = &v + return s +} + +// SetVirtualizationType sets the VirtualizationType field's value. +func (s *CustomAmi) SetVirtualizationType(v string) *CustomAmi { + s.VirtualizationType = &v + return s +} + +// Request to delete an application. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteApplicationMessage +type DeleteApplicationInput struct { + _ struct{} `type:"structure"` + + // The name of the application to delete. + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // When set to true, running environments will be terminated before deleting + // the application. + TerminateEnvByForce *bool `type:"boolean"` +} + +// String returns the string representation +func (s DeleteApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationInput"} + if s.ApplicationName == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationName")) + } + if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *DeleteApplicationInput) SetApplicationName(v string) *DeleteApplicationInput { + s.ApplicationName = &v + return s +} + +// SetTerminateEnvByForce sets the TerminateEnvByForce field's value. +func (s *DeleteApplicationInput) SetTerminateEnvByForce(v bool) *DeleteApplicationInput { + s.TerminateEnvByForce = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteApplicationOutput type DeleteApplicationOutput struct { _ struct{} `type:"structure"` } @@ -3592,23 +5072,18 @@ func (s DeleteApplicationOutput) GoString() string { } // Request to delete an application version. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteApplicationVersionMessage type DeleteApplicationVersionInput struct { _ struct{} `type:"structure"` - // The name of the application to delete releases from. + // The name of the application to which the version belongs. // // ApplicationName is a required field ApplicationName *string `min:"1" type:"string" required:"true"` - // Indicates whether to delete the associated source bundle from Amazon S3: - // - // true: An attempt is made to delete the associated Amazon S3 source bundle - // specified at time of creation. - // - // false: No action is taken on the Amazon S3 source bundle specified at - // time of creation. - // - // Valid Values: true | false + // Set to true to delete the source bundle from your storage bucket. Otherwise, + // the application version is deleted only from Elastic Beanstalk and the source + // bundle remains in Amazon S3. DeleteSourceBundle *bool `type:"boolean"` // The label of the version to delete. @@ -3649,6 +5124,25 @@ func (s *DeleteApplicationVersionInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DeleteApplicationVersionInput) SetApplicationName(v string) *DeleteApplicationVersionInput { + s.ApplicationName = &v + return s +} + +// SetDeleteSourceBundle sets the DeleteSourceBundle field's value. +func (s *DeleteApplicationVersionInput) SetDeleteSourceBundle(v bool) *DeleteApplicationVersionInput { + s.DeleteSourceBundle = &v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *DeleteApplicationVersionInput) SetVersionLabel(v string) *DeleteApplicationVersionInput { + s.VersionLabel = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteApplicationVersionOutput type DeleteApplicationVersionOutput struct { _ struct{} `type:"structure"` } @@ -3664,6 +5158,7 @@ func (s DeleteApplicationVersionOutput) GoString() string { } // Request to delete a configuration template. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteConfigurationTemplateMessage type DeleteConfigurationTemplateInput struct { _ struct{} `type:"structure"` @@ -3710,6 +5205,19 @@ func (s *DeleteConfigurationTemplateInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DeleteConfigurationTemplateInput) SetApplicationName(v string) *DeleteConfigurationTemplateInput { + s.ApplicationName = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *DeleteConfigurationTemplateInput) SetTemplateName(v string) *DeleteConfigurationTemplateInput { + s.TemplateName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteConfigurationTemplateOutput type DeleteConfigurationTemplateOutput struct { _ struct{} `type:"structure"` } @@ -3725,6 +5233,7 @@ func (s DeleteConfigurationTemplateOutput) GoString() string { } // Request to delete a draft environment configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteEnvironmentConfigurationMessage type DeleteEnvironmentConfigurationInput struct { _ struct{} `type:"structure"` @@ -3771,6 +5280,19 @@ func (s *DeleteEnvironmentConfigurationInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DeleteEnvironmentConfigurationInput) SetApplicationName(v string) *DeleteEnvironmentConfigurationInput { + s.ApplicationName = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DeleteEnvironmentConfigurationInput) SetEnvironmentName(v string) *DeleteEnvironmentConfigurationInput { + s.EnvironmentName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteEnvironmentConfigurationOutput type DeleteEnvironmentConfigurationOutput struct { _ struct{} `type:"structure"` } @@ -3785,7 +5307,56 @@ func (s DeleteEnvironmentConfigurationOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeletePlatformVersionRequest +type DeletePlatformVersionInput struct { + _ struct{} `type:"structure"` + + // The ARN of the version of the custom platform. + PlatformArn *string `type:"string"` +} + +// String returns the string representation +func (s DeletePlatformVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeletePlatformVersionInput) GoString() string { + return s.String() +} + +// SetPlatformArn sets the PlatformArn field's value. +func (s *DeletePlatformVersionInput) SetPlatformArn(v string) *DeletePlatformVersionInput { + s.PlatformArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeletePlatformVersionResult +type DeletePlatformVersionOutput struct { + _ struct{} `type:"structure"` + + // Detailed information about the version of the custom platform. + PlatformSummary *PlatformSummary `type:"structure"` +} + +// String returns the string representation +func (s DeletePlatformVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeletePlatformVersionOutput) GoString() string { + return s.String() +} + +// SetPlatformSummary sets the PlatformSummary field's value. +func (s *DeletePlatformVersionOutput) SetPlatformSummary(v *PlatformSummary) *DeletePlatformVersionOutput { + s.PlatformSummary = v + return s +} + // Information about an application version deployment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/Deployment type Deployment struct { _ struct{} `type:"structure"` @@ -3800,11 +5371,11 @@ type Deployment struct { // The status of the deployment: // - // In Progress : The deployment is in progress. + // * In Progress : The deployment is in progress. // - // Deployed : The deployment succeeded. + // * Deployed : The deployment succeeded. // - // Failed : The deployment failed. + // * Failed : The deployment failed. Status *string `type:"string"` // The version label of the application version in the deployment. @@ -3821,12 +5392,36 @@ func (s Deployment) GoString() string { return s.String() } -// Result message containing a list of configuration descriptions. +// SetDeploymentId sets the DeploymentId field's value. +func (s *Deployment) SetDeploymentId(v int64) *Deployment { + s.DeploymentId = &v + return s +} + +// SetDeploymentTime sets the DeploymentTime field's value. +func (s *Deployment) SetDeploymentTime(v time.Time) *Deployment { + s.DeploymentTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Deployment) SetStatus(v string) *Deployment { + s.Status = &v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *Deployment) SetVersionLabel(v string) *Deployment { + s.VersionLabel = &v + return s +} + +// Request to describe application versions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeApplicationVersionsMessage type DescribeApplicationVersionsInput struct { _ struct{} `type:"structure"` - // If specified, AWS Elastic Beanstalk restricts the returned descriptions to - // only include ones that are associated with the specified application. + // Specify an application name to show only application versions for that application. ApplicationName *string `min:"1" type:"string"` // Specify a maximum number of application versions to paginate in the request. @@ -3835,8 +5430,7 @@ type DescribeApplicationVersionsInput struct { // Specify a next token to retrieve the next page in a paginated request. NextToken *string `type:"string"` - // If specified, restricts the returned descriptions to only include ones that - // have the specified version labels. + // Specify a version label to show a specific application version. VersionLabels []*string `type:"list"` } @@ -3866,11 +5460,36 @@ func (s *DescribeApplicationVersionsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DescribeApplicationVersionsInput) SetApplicationName(v string) *DescribeApplicationVersionsInput { + s.ApplicationName = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeApplicationVersionsInput) SetMaxRecords(v int64) *DescribeApplicationVersionsInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeApplicationVersionsInput) SetNextToken(v string) *DescribeApplicationVersionsInput { + s.NextToken = &v + return s +} + +// SetVersionLabels sets the VersionLabels field's value. +func (s *DescribeApplicationVersionsInput) SetVersionLabels(v []*string) *DescribeApplicationVersionsInput { + s.VersionLabels = v + return s +} + // Result message wrapping a list of application version descriptions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ApplicationVersionDescriptionsMessage type DescribeApplicationVersionsOutput struct { _ struct{} `type:"structure"` - // List of ApplicationVersionDescription objects sorted by order of creation. + // List of ApplicationVersionDescription objects sorted in order of creation. ApplicationVersions []*ApplicationVersionDescription `type:"list"` // For a paginated request, the token that you can pass in a subsequent request @@ -3888,7 +5507,20 @@ func (s DescribeApplicationVersionsOutput) GoString() string { return s.String() } +// SetApplicationVersions sets the ApplicationVersions field's value. +func (s *DescribeApplicationVersionsOutput) SetApplicationVersions(v []*ApplicationVersionDescription) *DescribeApplicationVersionsOutput { + s.ApplicationVersions = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeApplicationVersionsOutput) SetNextToken(v string) *DescribeApplicationVersionsOutput { + s.NextToken = &v + return s +} + // Request to describe one or more applications. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeApplicationsMessage type DescribeApplicationsInput struct { _ struct{} `type:"structure"` @@ -3907,7 +5539,14 @@ func (s DescribeApplicationsInput) GoString() string { return s.String() } +// SetApplicationNames sets the ApplicationNames field's value. +func (s *DescribeApplicationsInput) SetApplicationNames(v []*string) *DescribeApplicationsInput { + s.ApplicationNames = v + return s +} + // Result message containing a list of application descriptions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ApplicationDescriptionsMessage type DescribeApplicationsOutput struct { _ struct{} `type:"structure"` @@ -3925,7 +5564,14 @@ func (s DescribeApplicationsOutput) GoString() string { return s.String() } -// Result message containig a list of application version descriptions. +// SetApplications sets the Applications field's value. +func (s *DescribeApplicationsOutput) SetApplications(v []*ApplicationDescription) *DescribeApplicationsOutput { + s.Applications = v + return s +} + +// Result message containing a list of application version descriptions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeConfigurationOptionsMessage type DescribeConfigurationOptionsInput struct { _ struct{} `type:"structure"` @@ -3940,6 +5586,9 @@ type DescribeConfigurationOptionsInput struct { // If specified, restricts the descriptions to only the specified options. Options []*OptionSpecification `type:"list"` + // The ARN of the custom platform. + PlatformArn *string `type:"string"` + // The name of the solution stack whose configuration options you want to describe. SolutionStackName *string `type:"string"` @@ -3987,13 +5636,53 @@ func (s *DescribeConfigurationOptionsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DescribeConfigurationOptionsInput) SetApplicationName(v string) *DescribeConfigurationOptionsInput { + s.ApplicationName = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DescribeConfigurationOptionsInput) SetEnvironmentName(v string) *DescribeConfigurationOptionsInput { + s.EnvironmentName = &v + return s +} + +// SetOptions sets the Options field's value. +func (s *DescribeConfigurationOptionsInput) SetOptions(v []*OptionSpecification) *DescribeConfigurationOptionsInput { + s.Options = v + return s +} + +// SetPlatformArn sets the PlatformArn field's value. +func (s *DescribeConfigurationOptionsInput) SetPlatformArn(v string) *DescribeConfigurationOptionsInput { + s.PlatformArn = &v + return s +} + +// SetSolutionStackName sets the SolutionStackName field's value. +func (s *DescribeConfigurationOptionsInput) SetSolutionStackName(v string) *DescribeConfigurationOptionsInput { + s.SolutionStackName = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *DescribeConfigurationOptionsInput) SetTemplateName(v string) *DescribeConfigurationOptionsInput { + s.TemplateName = &v + return s +} + // Describes the settings for a specified configuration set. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ConfigurationOptionsDescription type DescribeConfigurationOptionsOutput struct { _ struct{} `type:"structure"` // A list of ConfigurationOptionDescription. Options []*ConfigurationOptionDescription `type:"list"` + // The ARN of the custom platform. + PlatformArn *string `type:"string"` + // The name of the solution stack these configuration options belong to. SolutionStackName *string `type:"string"` } @@ -4008,8 +5697,27 @@ func (s DescribeConfigurationOptionsOutput) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *DescribeConfigurationOptionsOutput) SetOptions(v []*ConfigurationOptionDescription) *DescribeConfigurationOptionsOutput { + s.Options = v + return s +} + +// SetPlatformArn sets the PlatformArn field's value. +func (s *DescribeConfigurationOptionsOutput) SetPlatformArn(v string) *DescribeConfigurationOptionsOutput { + s.PlatformArn = &v + return s +} + +// SetSolutionStackName sets the SolutionStackName field's value. +func (s *DescribeConfigurationOptionsOutput) SetSolutionStackName(v string) *DescribeConfigurationOptionsOutput { + s.SolutionStackName = &v + return s +} + // Result message containing all of the configuration settings for a specified // solution stack or configuration template. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeConfigurationSettingsMessage type DescribeConfigurationSettingsInput struct { _ struct{} `type:"structure"` @@ -4020,7 +5728,7 @@ type DescribeConfigurationSettingsInput struct { // The name of the environment to describe. // - // Condition: You must specify either this or a TemplateName, but not both. + // Condition: You must specify either this or a TemplateName, but not both. // If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination // error. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. @@ -4028,7 +5736,7 @@ type DescribeConfigurationSettingsInput struct { // The name of the configuration template to describe. // - // Conditional: You must specify either this parameter or an EnvironmentName, + // Conditional: You must specify either this parameter or an EnvironmentName, // but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination // error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter // error. @@ -4067,7 +5775,26 @@ func (s *DescribeConfigurationSettingsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DescribeConfigurationSettingsInput) SetApplicationName(v string) *DescribeConfigurationSettingsInput { + s.ApplicationName = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DescribeConfigurationSettingsInput) SetEnvironmentName(v string) *DescribeConfigurationSettingsInput { + s.EnvironmentName = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *DescribeConfigurationSettingsInput) SetTemplateName(v string) *DescribeConfigurationSettingsInput { + s.TemplateName = &v + return s +} + // The results from a request to change the configuration settings of an environment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ConfigurationSettingsDescriptions type DescribeConfigurationSettingsOutput struct { _ struct{} `type:"structure"` @@ -4085,26 +5812,29 @@ func (s DescribeConfigurationSettingsOutput) GoString() string { return s.String() } +// SetConfigurationSettings sets the ConfigurationSettings field's value. +func (s *DescribeConfigurationSettingsOutput) SetConfigurationSettings(v []*ConfigurationSettingsDescription) *DescribeConfigurationSettingsOutput { + s.ConfigurationSettings = v + return s +} + // See the example below to learn how to create a request body. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentHealthRequest type DescribeEnvironmentHealthInput struct { _ struct{} `type:"structure"` - // Specifies the response elements you wish to receive. If no attribute names - // are specified, AWS Elastic Beanstalk only returns the name of the environment. + // Specify the response elements to return. To retrieve all attributes, set + // to All. If no attribute names are specified, returns the name of the environment. AttributeNames []*string `type:"list"` - // Specifies the AWS Elastic Beanstalk environment ID. + // Specify the environment by ID. // - // Condition: You must specify either this or an EnvironmentName, or both. - // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter - // error. + // You must specify either this or an EnvironmentName, or both. EnvironmentId *string `type:"string"` - // Specifies the AWS Elastic Beanstalk environment name. + // Specify the environment by name. // - // Condition: You must specify either this or an EnvironmentId, or both. If - // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter - // error. + // You must specify either this or an EnvironmentName, or both. EnvironmentName *string `min:"4" type:"string"` } @@ -4131,35 +5861,55 @@ func (s *DescribeEnvironmentHealthInput) Validate() error { return nil } -// See the example below for a sample response. +// SetAttributeNames sets the AttributeNames field's value. +func (s *DescribeEnvironmentHealthInput) SetAttributeNames(v []*string) *DescribeEnvironmentHealthInput { + s.AttributeNames = v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *DescribeEnvironmentHealthInput) SetEnvironmentId(v string) *DescribeEnvironmentHealthInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DescribeEnvironmentHealthInput) SetEnvironmentName(v string) *DescribeEnvironmentHealthInput { + s.EnvironmentName = &v + return s +} + +// Health details for an AWS Elastic Beanstalk environment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentHealthResult type DescribeEnvironmentHealthOutput struct { _ struct{} `type:"structure"` - // Represents the application metrics for a specified environment. + // Application request metrics for the environment. ApplicationMetrics *ApplicationMetrics `type:"structure"` - // Returns potential causes for the reported status. + // Descriptions of the data that contributed to the environment's current health + // status. Causes []*string `type:"list"` - // Returns the color indicator that tells you information about the health of - // the environment. For more information, see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html). + // The health color (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html) + // of the environment. Color *string `type:"string"` - // The AWS Elastic Beanstalk environment name. + // The environment's name. EnvironmentName *string `min:"4" type:"string"` - // Contains the response body with information about the health of the environment. + // The health status (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html) + // of the environment. For example, Ok. HealthStatus *string `type:"string"` - // Represents summary information about the health of an instance. For more - // information, see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html). + // Summary health information for the instances in the environment. InstancesHealth *InstanceHealthSummary `type:"structure"` - // The date and time the information was last refreshed. + // The date and time that the health information was retrieved. RefreshedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // Returns the health status value of the environment. For more information, - // see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html). + // The environment's operational status. Ready, Launching, Updating, Terminating, + // or Terminated. Status *string `type:"string" enum:"EnvironmentHealth"` } @@ -4173,12 +5923,61 @@ func (s DescribeEnvironmentHealthOutput) GoString() string { return s.String() } -// Request to list completed and failed managed actions. -type DescribeEnvironmentManagedActionHistoryInput struct { - _ struct{} `type:"structure"` +// SetApplicationMetrics sets the ApplicationMetrics field's value. +func (s *DescribeEnvironmentHealthOutput) SetApplicationMetrics(v *ApplicationMetrics) *DescribeEnvironmentHealthOutput { + s.ApplicationMetrics = v + return s +} - // The environment ID of the target environment. - EnvironmentId *string `type:"string"` +// SetCauses sets the Causes field's value. +func (s *DescribeEnvironmentHealthOutput) SetCauses(v []*string) *DescribeEnvironmentHealthOutput { + s.Causes = v + return s +} + +// SetColor sets the Color field's value. +func (s *DescribeEnvironmentHealthOutput) SetColor(v string) *DescribeEnvironmentHealthOutput { + s.Color = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DescribeEnvironmentHealthOutput) SetEnvironmentName(v string) *DescribeEnvironmentHealthOutput { + s.EnvironmentName = &v + return s +} + +// SetHealthStatus sets the HealthStatus field's value. +func (s *DescribeEnvironmentHealthOutput) SetHealthStatus(v string) *DescribeEnvironmentHealthOutput { + s.HealthStatus = &v + return s +} + +// SetInstancesHealth sets the InstancesHealth field's value. +func (s *DescribeEnvironmentHealthOutput) SetInstancesHealth(v *InstanceHealthSummary) *DescribeEnvironmentHealthOutput { + s.InstancesHealth = v + return s +} + +// SetRefreshedAt sets the RefreshedAt field's value. +func (s *DescribeEnvironmentHealthOutput) SetRefreshedAt(v time.Time) *DescribeEnvironmentHealthOutput { + s.RefreshedAt = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeEnvironmentHealthOutput) SetStatus(v string) *DescribeEnvironmentHealthOutput { + s.Status = &v + return s +} + +// Request to list completed and failed managed actions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentManagedActionHistoryRequest +type DescribeEnvironmentManagedActionHistoryInput struct { + _ struct{} `type:"structure"` + + // The environment ID of the target environment. + EnvironmentId *string `type:"string"` // The name of the target environment. EnvironmentName *string `min:"4" type:"string"` @@ -4213,7 +6012,32 @@ func (s *DescribeEnvironmentManagedActionHistoryInput) Validate() error { return nil } +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *DescribeEnvironmentManagedActionHistoryInput) SetEnvironmentId(v string) *DescribeEnvironmentManagedActionHistoryInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DescribeEnvironmentManagedActionHistoryInput) SetEnvironmentName(v string) *DescribeEnvironmentManagedActionHistoryInput { + s.EnvironmentName = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *DescribeEnvironmentManagedActionHistoryInput) SetMaxItems(v int64) *DescribeEnvironmentManagedActionHistoryInput { + s.MaxItems = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEnvironmentManagedActionHistoryInput) SetNextToken(v string) *DescribeEnvironmentManagedActionHistoryInput { + s.NextToken = &v + return s +} + // A result message containing a list of completed and failed managed actions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentManagedActionHistoryResult type DescribeEnvironmentManagedActionHistoryOutput struct { _ struct{} `type:"structure"` @@ -4235,7 +6059,20 @@ func (s DescribeEnvironmentManagedActionHistoryOutput) GoString() string { return s.String() } +// SetManagedActionHistoryItems sets the ManagedActionHistoryItems field's value. +func (s *DescribeEnvironmentManagedActionHistoryOutput) SetManagedActionHistoryItems(v []*ManagedActionHistoryItem) *DescribeEnvironmentManagedActionHistoryOutput { + s.ManagedActionHistoryItems = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEnvironmentManagedActionHistoryOutput) SetNextToken(v string) *DescribeEnvironmentManagedActionHistoryOutput { + s.NextToken = &v + return s +} + // Request to list an environment's upcoming and in-progress managed actions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentManagedActionsRequest type DescribeEnvironmentManagedActionsInput struct { _ struct{} `type:"structure"` @@ -4259,7 +6096,26 @@ func (s DescribeEnvironmentManagedActionsInput) GoString() string { return s.String() } +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *DescribeEnvironmentManagedActionsInput) SetEnvironmentId(v string) *DescribeEnvironmentManagedActionsInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DescribeEnvironmentManagedActionsInput) SetEnvironmentName(v string) *DescribeEnvironmentManagedActionsInput { + s.EnvironmentName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeEnvironmentManagedActionsInput) SetStatus(v string) *DescribeEnvironmentManagedActionsInput { + s.Status = &v + return s +} + // The result message containing a list of managed actions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentManagedActionsResult type DescribeEnvironmentManagedActionsOutput struct { _ struct{} `type:"structure"` @@ -4277,20 +6133,27 @@ func (s DescribeEnvironmentManagedActionsOutput) GoString() string { return s.String() } +// SetManagedActions sets the ManagedActions field's value. +func (s *DescribeEnvironmentManagedActionsOutput) SetManagedActions(v []*ManagedAction) *DescribeEnvironmentManagedActionsOutput { + s.ManagedActions = v + return s +} + // Request to describe the resources in an environment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentResourcesMessage type DescribeEnvironmentResourcesInput struct { _ struct{} `type:"structure"` // The ID of the environment to retrieve AWS resource usage data. // - // Condition: You must specify either this or an EnvironmentName, or both. - // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter + // Condition: You must specify either this or an EnvironmentName, or both. If + // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentId *string `type:"string"` // The name of the environment to retrieve AWS resource usage data. // - // Condition: You must specify either this or an EnvironmentId, or both. If + // Condition: You must specify either this or an EnvironmentId, or both. If // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentName *string `min:"4" type:"string"` @@ -4319,7 +6182,20 @@ func (s *DescribeEnvironmentResourcesInput) Validate() error { return nil } +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *DescribeEnvironmentResourcesInput) SetEnvironmentId(v string) *DescribeEnvironmentResourcesInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DescribeEnvironmentResourcesInput) SetEnvironmentName(v string) *DescribeEnvironmentResourcesInput { + s.EnvironmentName = &v + return s +} + // Result message containing a list of environment resource descriptions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/EnvironmentResourceDescriptionsMessage type DescribeEnvironmentResourcesOutput struct { _ struct{} `type:"structure"` @@ -4337,7 +6213,14 @@ func (s DescribeEnvironmentResourcesOutput) GoString() string { return s.String() } +// SetEnvironmentResources sets the EnvironmentResources field's value. +func (s *DescribeEnvironmentResourcesOutput) SetEnvironmentResources(v *EnvironmentResourceDescription) *DescribeEnvironmentResourcesOutput { + s.EnvironmentResources = v + return s +} + // Request to describe one or more environments. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentsMessage type DescribeEnvironmentsInput struct { _ struct{} `type:"structure"` @@ -4355,10 +6238,10 @@ type DescribeEnvironmentsInput struct { // Indicates whether to include deleted environments: // - // true: Environments that have been deleted after IncludedDeletedBackTo are + // true: Environments that have been deleted after IncludedDeletedBackTo are // displayed. // - // false: Do not include deleted environments. + // false: Do not include deleted environments. IncludeDeleted *bool `type:"boolean"` // If specified when IncludeDeleted is set to true, then environments deleted @@ -4396,7 +6279,44 @@ func (s *DescribeEnvironmentsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DescribeEnvironmentsInput) SetApplicationName(v string) *DescribeEnvironmentsInput { + s.ApplicationName = &v + return s +} + +// SetEnvironmentIds sets the EnvironmentIds field's value. +func (s *DescribeEnvironmentsInput) SetEnvironmentIds(v []*string) *DescribeEnvironmentsInput { + s.EnvironmentIds = v + return s +} + +// SetEnvironmentNames sets the EnvironmentNames field's value. +func (s *DescribeEnvironmentsInput) SetEnvironmentNames(v []*string) *DescribeEnvironmentsInput { + s.EnvironmentNames = v + return s +} + +// SetIncludeDeleted sets the IncludeDeleted field's value. +func (s *DescribeEnvironmentsInput) SetIncludeDeleted(v bool) *DescribeEnvironmentsInput { + s.IncludeDeleted = &v + return s +} + +// SetIncludedDeletedBackTo sets the IncludedDeletedBackTo field's value. +func (s *DescribeEnvironmentsInput) SetIncludedDeletedBackTo(v time.Time) *DescribeEnvironmentsInput { + s.IncludedDeletedBackTo = &v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *DescribeEnvironmentsInput) SetVersionLabel(v string) *DescribeEnvironmentsInput { + s.VersionLabel = &v + return s +} + // Request to retrieve a list of events for an environment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEventsMessage type DescribeEventsInput struct { _ struct{} `type:"structure"` @@ -4423,6 +6343,9 @@ type DescribeEventsInput struct { // Pagination token. If specified, the events return the next batch of results. NextToken *string `type:"string"` + // The ARN of the version of the custom platform. + PlatformArn *string `type:"string"` + // If specified, AWS Elastic Beanstalk restricts the described events to include // only those associated with this request ID. RequestId *string `type:"string"` @@ -4479,7 +6402,80 @@ func (s *DescribeEventsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DescribeEventsInput) SetApplicationName(v string) *DescribeEventsInput { + s.ApplicationName = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *DescribeEventsInput) SetEndTime(v time.Time) *DescribeEventsInput { + s.EndTime = &v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *DescribeEventsInput) SetEnvironmentId(v string) *DescribeEventsInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DescribeEventsInput) SetEnvironmentName(v string) *DescribeEventsInput { + s.EnvironmentName = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEventsInput) SetMaxRecords(v int64) *DescribeEventsInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEventsInput) SetNextToken(v string) *DescribeEventsInput { + s.NextToken = &v + return s +} + +// SetPlatformArn sets the PlatformArn field's value. +func (s *DescribeEventsInput) SetPlatformArn(v string) *DescribeEventsInput { + s.PlatformArn = &v + return s +} + +// SetRequestId sets the RequestId field's value. +func (s *DescribeEventsInput) SetRequestId(v string) *DescribeEventsInput { + s.RequestId = &v + return s +} + +// SetSeverity sets the Severity field's value. +func (s *DescribeEventsInput) SetSeverity(v string) *DescribeEventsInput { + s.Severity = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeEventsInput) SetStartTime(v time.Time) *DescribeEventsInput { + s.StartTime = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *DescribeEventsInput) SetTemplateName(v string) *DescribeEventsInput { + s.TemplateName = &v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *DescribeEventsInput) SetVersionLabel(v string) *DescribeEventsInput { + s.VersionLabel = &v + return s +} + // Result message wrapping a list of event descriptions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/EventDescriptionsMessage type DescribeEventsOutput struct { _ struct{} `type:"structure"` @@ -4501,21 +6497,34 @@ func (s DescribeEventsOutput) GoString() string { return s.String() } -// See the example below to learn how to create a request body. +// SetEvents sets the Events field's value. +func (s *DescribeEventsOutput) SetEvents(v []*EventDescription) *DescribeEventsOutput { + s.Events = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEventsOutput) SetNextToken(v string) *DescribeEventsOutput { + s.NextToken = &v + return s +} + +// Parameters for a call to DescribeInstancesHealth. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeInstancesHealthRequest type DescribeInstancesHealthInput struct { _ struct{} `type:"structure"` - // Specifies the response elements you wish to receive. If no attribute names - // are specified, AWS Elastic Beanstalk only returns a list of instances. + // Specifies the response elements you wish to receive. To retrieve all attributes, + // set to All. If no attribute names are specified, returns a list of instances. AttributeNames []*string `type:"list"` - // Specifies the AWS Elastic Beanstalk environment ID. + // Specify the AWS Elastic Beanstalk environment by ID. EnvironmentId *string `type:"string"` - // Specifies the AWS Elastic Beanstalk environment name. + // Specify the AWS Elastic Beanstalk environment by name. EnvironmentName *string `min:"4" type:"string"` - // Specifies the next token of the request. + // Specify the pagination token returned by a previous call. NextToken *string `min:"1" type:"string"` } @@ -4545,17 +6554,43 @@ func (s *DescribeInstancesHealthInput) Validate() error { return nil } -// See the example below for a sample response. +// SetAttributeNames sets the AttributeNames field's value. +func (s *DescribeInstancesHealthInput) SetAttributeNames(v []*string) *DescribeInstancesHealthInput { + s.AttributeNames = v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *DescribeInstancesHealthInput) SetEnvironmentId(v string) *DescribeInstancesHealthInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *DescribeInstancesHealthInput) SetEnvironmentName(v string) *DescribeInstancesHealthInput { + s.EnvironmentName = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstancesHealthInput) SetNextToken(v string) *DescribeInstancesHealthInput { + s.NextToken = &v + return s +} + +// Detailed health information about the Amazon EC2 instances in an AWS Elastic +// Beanstalk environment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeInstancesHealthResult type DescribeInstancesHealthOutput struct { _ struct{} `type:"structure"` - // Contains the response body with information about the health of the instance. + // Detailed health information about each instance. InstanceHealthList []*SingleInstanceHealth `type:"list"` - // The next token. + // Pagination token for the next page of results, if available. NextToken *string `min:"1" type:"string"` - // The date and time the information was last refreshed. + // The date and time that the health information was retrieved. RefreshedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"` } @@ -4569,16 +6604,83 @@ func (s DescribeInstancesHealthOutput) GoString() string { return s.String() } +// SetInstanceHealthList sets the InstanceHealthList field's value. +func (s *DescribeInstancesHealthOutput) SetInstanceHealthList(v []*SingleInstanceHealth) *DescribeInstancesHealthOutput { + s.InstanceHealthList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstancesHealthOutput) SetNextToken(v string) *DescribeInstancesHealthOutput { + s.NextToken = &v + return s +} + +// SetRefreshedAt sets the RefreshedAt field's value. +func (s *DescribeInstancesHealthOutput) SetRefreshedAt(v time.Time) *DescribeInstancesHealthOutput { + s.RefreshedAt = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribePlatformVersionRequest +type DescribePlatformVersionInput struct { + _ struct{} `type:"structure"` + + // The ARN of the version of the platform. + PlatformArn *string `type:"string"` +} + +// String returns the string representation +func (s DescribePlatformVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePlatformVersionInput) GoString() string { + return s.String() +} + +// SetPlatformArn sets the PlatformArn field's value. +func (s *DescribePlatformVersionInput) SetPlatformArn(v string) *DescribePlatformVersionInput { + s.PlatformArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribePlatformVersionResult +type DescribePlatformVersionOutput struct { + _ struct{} `type:"structure"` + + // Detailed information about the version of the platform. + PlatformDescription *PlatformDescription `type:"structure"` +} + +// String returns the string representation +func (s DescribePlatformVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePlatformVersionOutput) GoString() string { + return s.String() +} + +// SetPlatformDescription sets the PlatformDescription field's value. +func (s *DescribePlatformVersionOutput) SetPlatformDescription(v *PlatformDescription) *DescribePlatformVersionOutput { + s.PlatformDescription = v + return s +} + // Describes the properties of an environment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/EnvironmentDescription type EnvironmentDescription struct { _ struct{} `type:"structure"` // Indicates if there is an in-progress environment configuration update or // application version deployment that you can cancel. // - // true: There is an update in progress. + // true: There is an update in progress. // - // false: There are no updates currently in progress. + // false: There are no updates currently in progress. AbortableOperationInProgress *bool `type:"boolean"` // The name of the application associated with this environment. @@ -4612,25 +6714,28 @@ type EnvironmentDescription struct { // Describes the health status of the environment. AWS Elastic Beanstalk indicates // the failure levels for a running environment: // - // Red: Indicates the environment is not responsive. Occurs when three or - // more consecutive failures occur for an environment. + // * Red: Indicates the environment is not responsive. Occurs when three + // or more consecutive failures occur for an environment. // - // Yellow: Indicates that something is wrong. Occurs when two consecutive - // failures occur for an environment. + // * Yellow: Indicates that something is wrong. Occurs when two consecutive + // failures occur for an environment. // - // Green: Indicates the environment is healthy and fully functional. + // * Green: Indicates the environment is healthy and fully functional. // - // Grey: Default health for a new environment. The environment is not fully - // launched and health checks have not started or health checks are suspended - // during an UpdateEnvironment or RestartEnvironement request. + // * Grey: Default health for a new environment. The environment is not fully + // launched and health checks have not started or health checks are suspended + // during an UpdateEnvironment or RestartEnvironement request. // - // Default: Grey + // Default: Grey Health *string `type:"string" enum:"EnvironmentHealth"` // Returns the health status of the application running in your environment. // For more information, see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html). HealthStatus *string `type:"string" enum:"EnvironmentHealthStatus"` + // The ARN of the custom platform. + PlatformArn *string `type:"string"` + // The description of the AWS resources used by this environment. Resources *EnvironmentResourcesDescription `type:"structure"` @@ -4639,17 +6744,17 @@ type EnvironmentDescription struct { // The current operational status of the environment: // - // Launching: Environment is in the process of initial deployment. + // * Launching: Environment is in the process of initial deployment. // - // Updating: Environment is in the process of updating its configuration - // settings or application version. + // * Updating: Environment is in the process of updating its configuration + // settings or application version. // - // Ready: Environment is available to have an action performed on it, such - // as update or terminate. + // * Ready: Environment is available to have an action performed on it, such + // as update or terminate. // - // Terminating: Environment is in the shut-down process. + // * Terminating: Environment is in the shut-down process. // - // Terminated: Environment is not running. + // * Terminated: Environment is not running. Status *string `type:"string" enum:"EnvironmentStatus"` // The name of the configuration template used to originally launch this environment. @@ -4672,7 +6777,122 @@ func (s EnvironmentDescription) GoString() string { return s.String() } +// SetAbortableOperationInProgress sets the AbortableOperationInProgress field's value. +func (s *EnvironmentDescription) SetAbortableOperationInProgress(v bool) *EnvironmentDescription { + s.AbortableOperationInProgress = &v + return s +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *EnvironmentDescription) SetApplicationName(v string) *EnvironmentDescription { + s.ApplicationName = &v + return s +} + +// SetCNAME sets the CNAME field's value. +func (s *EnvironmentDescription) SetCNAME(v string) *EnvironmentDescription { + s.CNAME = &v + return s +} + +// SetDateCreated sets the DateCreated field's value. +func (s *EnvironmentDescription) SetDateCreated(v time.Time) *EnvironmentDescription { + s.DateCreated = &v + return s +} + +// SetDateUpdated sets the DateUpdated field's value. +func (s *EnvironmentDescription) SetDateUpdated(v time.Time) *EnvironmentDescription { + s.DateUpdated = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *EnvironmentDescription) SetDescription(v string) *EnvironmentDescription { + s.Description = &v + return s +} + +// SetEndpointURL sets the EndpointURL field's value. +func (s *EnvironmentDescription) SetEndpointURL(v string) *EnvironmentDescription { + s.EndpointURL = &v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *EnvironmentDescription) SetEnvironmentId(v string) *EnvironmentDescription { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentLinks sets the EnvironmentLinks field's value. +func (s *EnvironmentDescription) SetEnvironmentLinks(v []*EnvironmentLink) *EnvironmentDescription { + s.EnvironmentLinks = v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *EnvironmentDescription) SetEnvironmentName(v string) *EnvironmentDescription { + s.EnvironmentName = &v + return s +} + +// SetHealth sets the Health field's value. +func (s *EnvironmentDescription) SetHealth(v string) *EnvironmentDescription { + s.Health = &v + return s +} + +// SetHealthStatus sets the HealthStatus field's value. +func (s *EnvironmentDescription) SetHealthStatus(v string) *EnvironmentDescription { + s.HealthStatus = &v + return s +} + +// SetPlatformArn sets the PlatformArn field's value. +func (s *EnvironmentDescription) SetPlatformArn(v string) *EnvironmentDescription { + s.PlatformArn = &v + return s +} + +// SetResources sets the Resources field's value. +func (s *EnvironmentDescription) SetResources(v *EnvironmentResourcesDescription) *EnvironmentDescription { + s.Resources = v + return s +} + +// SetSolutionStackName sets the SolutionStackName field's value. +func (s *EnvironmentDescription) SetSolutionStackName(v string) *EnvironmentDescription { + s.SolutionStackName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EnvironmentDescription) SetStatus(v string) *EnvironmentDescription { + s.Status = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *EnvironmentDescription) SetTemplateName(v string) *EnvironmentDescription { + s.TemplateName = &v + return s +} + +// SetTier sets the Tier field's value. +func (s *EnvironmentDescription) SetTier(v *EnvironmentTier) *EnvironmentDescription { + s.Tier = v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *EnvironmentDescription) SetVersionLabel(v string) *EnvironmentDescription { + s.VersionLabel = &v + return s +} + // Result message containing a list of environment descriptions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/EnvironmentDescriptionsMessage type EnvironmentDescriptionsMessage struct { _ struct{} `type:"structure"` @@ -4690,7 +6910,14 @@ func (s EnvironmentDescriptionsMessage) GoString() string { return s.String() } +// SetEnvironments sets the Environments field's value. +func (s *EnvironmentDescriptionsMessage) SetEnvironments(v []*EnvironmentDescription) *EnvironmentDescriptionsMessage { + s.Environments = v + return s +} + // The information retrieved from the Amazon EC2 instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/EnvironmentInfoDescription type EnvironmentInfoDescription struct { _ struct{} `type:"structure"` @@ -4717,11 +6944,36 @@ func (s EnvironmentInfoDescription) GoString() string { return s.String() } +// SetEc2InstanceId sets the Ec2InstanceId field's value. +func (s *EnvironmentInfoDescription) SetEc2InstanceId(v string) *EnvironmentInfoDescription { + s.Ec2InstanceId = &v + return s +} + +// SetInfoType sets the InfoType field's value. +func (s *EnvironmentInfoDescription) SetInfoType(v string) *EnvironmentInfoDescription { + s.InfoType = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *EnvironmentInfoDescription) SetMessage(v string) *EnvironmentInfoDescription { + s.Message = &v + return s +} + +// SetSampleTimestamp sets the SampleTimestamp field's value. +func (s *EnvironmentInfoDescription) SetSampleTimestamp(v time.Time) *EnvironmentInfoDescription { + s.SampleTimestamp = &v + return s +} + // A link to another environment, defined in the environment's manifest. Links // provide connection information in system properties that can be used to connect // to another environment in the same group. See Environment Manifest (env.yaml) // (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-cfg-manifest.html) // for details. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/EnvironmentLink type EnvironmentLink struct { _ struct{} `type:"structure"` @@ -4742,7 +6994,20 @@ func (s EnvironmentLink) GoString() string { return s.String() } +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *EnvironmentLink) SetEnvironmentName(v string) *EnvironmentLink { + s.EnvironmentName = &v + return s +} + +// SetLinkName sets the LinkName field's value. +func (s *EnvironmentLink) SetLinkName(v string) *EnvironmentLink { + s.LinkName = &v + return s +} + // Describes the AWS resources in use by this environment. This data is live. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/EnvironmentResourceDescription type EnvironmentResourceDescription struct { _ struct{} `type:"structure"` @@ -4778,8 +7043,51 @@ func (s EnvironmentResourceDescription) GoString() string { return s.String() } +// SetAutoScalingGroups sets the AutoScalingGroups field's value. +func (s *EnvironmentResourceDescription) SetAutoScalingGroups(v []*AutoScalingGroup) *EnvironmentResourceDescription { + s.AutoScalingGroups = v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *EnvironmentResourceDescription) SetEnvironmentName(v string) *EnvironmentResourceDescription { + s.EnvironmentName = &v + return s +} + +// SetInstances sets the Instances field's value. +func (s *EnvironmentResourceDescription) SetInstances(v []*Instance) *EnvironmentResourceDescription { + s.Instances = v + return s +} + +// SetLaunchConfigurations sets the LaunchConfigurations field's value. +func (s *EnvironmentResourceDescription) SetLaunchConfigurations(v []*LaunchConfiguration) *EnvironmentResourceDescription { + s.LaunchConfigurations = v + return s +} + +// SetLoadBalancers sets the LoadBalancers field's value. +func (s *EnvironmentResourceDescription) SetLoadBalancers(v []*LoadBalancer) *EnvironmentResourceDescription { + s.LoadBalancers = v + return s +} + +// SetQueues sets the Queues field's value. +func (s *EnvironmentResourceDescription) SetQueues(v []*Queue) *EnvironmentResourceDescription { + s.Queues = v + return s +} + +// SetTriggers sets the Triggers field's value. +func (s *EnvironmentResourceDescription) SetTriggers(v []*Trigger) *EnvironmentResourceDescription { + s.Triggers = v + return s +} + // Describes the AWS resources in use by this environment. This data is not // live data. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/EnvironmentResourcesDescription type EnvironmentResourcesDescription struct { _ struct{} `type:"structure"` @@ -4797,7 +7105,14 @@ func (s EnvironmentResourcesDescription) GoString() string { return s.String() } +// SetLoadBalancer sets the LoadBalancer field's value. +func (s *EnvironmentResourcesDescription) SetLoadBalancer(v *LoadBalancerDescription) *EnvironmentResourcesDescription { + s.LoadBalancer = v + return s +} + // Describes the properties of an environment tier +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/EnvironmentTier type EnvironmentTier struct { _ struct{} `type:"structure"` @@ -4821,7 +7136,26 @@ func (s EnvironmentTier) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *EnvironmentTier) SetName(v string) *EnvironmentTier { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *EnvironmentTier) SetType(v string) *EnvironmentTier { + s.Type = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *EnvironmentTier) SetVersion(v string) *EnvironmentTier { + s.Version = &v + return s +} + // Describes an event. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/EventDescription type EventDescription struct { _ struct{} `type:"structure"` @@ -4837,6 +7171,9 @@ type EventDescription struct { // The event message. Message *string `type:"string"` + // The ARN of the custom platform. + PlatformArn *string `type:"string"` + // The web service request ID for the activity of this event. RequestId *string `type:"string"` @@ -4860,7 +7197,62 @@ func (s EventDescription) GoString() string { return s.String() } +// SetApplicationName sets the ApplicationName field's value. +func (s *EventDescription) SetApplicationName(v string) *EventDescription { + s.ApplicationName = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *EventDescription) SetEnvironmentName(v string) *EventDescription { + s.EnvironmentName = &v + return s +} + +// SetEventDate sets the EventDate field's value. +func (s *EventDescription) SetEventDate(v time.Time) *EventDescription { + s.EventDate = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *EventDescription) SetMessage(v string) *EventDescription { + s.Message = &v + return s +} + +// SetPlatformArn sets the PlatformArn field's value. +func (s *EventDescription) SetPlatformArn(v string) *EventDescription { + s.PlatformArn = &v + return s +} + +// SetRequestId sets the RequestId field's value. +func (s *EventDescription) SetRequestId(v string) *EventDescription { + s.RequestId = &v + return s +} + +// SetSeverity sets the Severity field's value. +func (s *EventDescription) SetSeverity(v string) *EventDescription { + s.Severity = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *EventDescription) SetTemplateName(v string) *EventDescription { + s.TemplateName = &v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *EventDescription) SetVersionLabel(v string) *EventDescription { + s.VersionLabel = &v + return s +} + // The description of an Amazon EC2 instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/Instance type Instance struct { _ struct{} `type:"structure"` @@ -4878,8 +7270,15 @@ func (s Instance) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *Instance) SetId(v string) *Instance { + s.Id = &v + return s +} + // Represents summary information about the health of an instance. For more // information, see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/InstanceHealthSummary type InstanceHealthSummary struct { _ struct{} `type:"structure"` @@ -4924,8 +7323,57 @@ func (s InstanceHealthSummary) GoString() string { return s.String() } +// SetDegraded sets the Degraded field's value. +func (s *InstanceHealthSummary) SetDegraded(v int64) *InstanceHealthSummary { + s.Degraded = &v + return s +} + +// SetInfo sets the Info field's value. +func (s *InstanceHealthSummary) SetInfo(v int64) *InstanceHealthSummary { + s.Info = &v + return s +} + +// SetNoData sets the NoData field's value. +func (s *InstanceHealthSummary) SetNoData(v int64) *InstanceHealthSummary { + s.NoData = &v + return s +} + +// SetOk sets the Ok field's value. +func (s *InstanceHealthSummary) SetOk(v int64) *InstanceHealthSummary { + s.Ok = &v + return s +} + +// SetPending sets the Pending field's value. +func (s *InstanceHealthSummary) SetPending(v int64) *InstanceHealthSummary { + s.Pending = &v + return s +} + +// SetSevere sets the Severe field's value. +func (s *InstanceHealthSummary) SetSevere(v int64) *InstanceHealthSummary { + s.Severe = &v + return s +} + +// SetUnknown sets the Unknown field's value. +func (s *InstanceHealthSummary) SetUnknown(v int64) *InstanceHealthSummary { + s.Unknown = &v + return s +} + +// SetWarning sets the Warning field's value. +func (s *InstanceHealthSummary) SetWarning(v int64) *InstanceHealthSummary { + s.Warning = &v + return s +} + // Represents the average latency for the slowest X percent of requests over // the last 10 seconds. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/Latency type Latency struct { _ struct{} `type:"structure"` @@ -4972,24 +7420,80 @@ func (s Latency) GoString() string { return s.String() } -// Describes an Auto Scaling launch configuration. -type LaunchConfiguration struct { - _ struct{} `type:"structure"` +// SetP10 sets the P10 field's value. +func (s *Latency) SetP10(v float64) *Latency { + s.P10 = &v + return s +} - // The name of the launch configuration. - Name *string `type:"string"` +// SetP50 sets the P50 field's value. +func (s *Latency) SetP50(v float64) *Latency { + s.P50 = &v + return s } -// String returns the string representation -func (s LaunchConfiguration) String() string { - return awsutil.Prettify(s) +// SetP75 sets the P75 field's value. +func (s *Latency) SetP75(v float64) *Latency { + s.P75 = &v + return s } -// GoString returns the string representation -func (s LaunchConfiguration) GoString() string { - return s.String() +// SetP85 sets the P85 field's value. +func (s *Latency) SetP85(v float64) *Latency { + s.P85 = &v + return s } +// SetP90 sets the P90 field's value. +func (s *Latency) SetP90(v float64) *Latency { + s.P90 = &v + return s +} + +// SetP95 sets the P95 field's value. +func (s *Latency) SetP95(v float64) *Latency { + s.P95 = &v + return s +} + +// SetP99 sets the P99 field's value. +func (s *Latency) SetP99(v float64) *Latency { + s.P99 = &v + return s +} + +// SetP999 sets the P999 field's value. +func (s *Latency) SetP999(v float64) *Latency { + s.P999 = &v + return s +} + +// Describes an Auto Scaling launch configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/LaunchConfiguration +type LaunchConfiguration struct { + _ struct{} `type:"structure"` + + // The name of the launch configuration. + Name *string `type:"string"` +} + +// String returns the string representation +func (s LaunchConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchConfiguration) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *LaunchConfiguration) SetName(v string) *LaunchConfiguration { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListAvailableSolutionStacksInput type ListAvailableSolutionStacksInput struct { _ struct{} `type:"structure"` } @@ -5005,6 +7509,7 @@ func (s ListAvailableSolutionStacksInput) GoString() string { } // A list of available AWS Elastic Beanstalk solution stacks. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListAvailableSolutionStacksResultMessage type ListAvailableSolutionStacksOutput struct { _ struct{} `type:"structure"` @@ -5025,7 +7530,111 @@ func (s ListAvailableSolutionStacksOutput) GoString() string { return s.String() } +// SetSolutionStackDetails sets the SolutionStackDetails field's value. +func (s *ListAvailableSolutionStacksOutput) SetSolutionStackDetails(v []*SolutionStackDescription) *ListAvailableSolutionStacksOutput { + s.SolutionStackDetails = v + return s +} + +// SetSolutionStacks sets the SolutionStacks field's value. +func (s *ListAvailableSolutionStacksOutput) SetSolutionStacks(v []*string) *ListAvailableSolutionStacksOutput { + s.SolutionStacks = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListPlatformVersionsRequest +type ListPlatformVersionsInput struct { + _ struct{} `type:"structure"` + + // List only the platforms where the platform member value relates to one of + // the supplied values. + Filters []*PlatformFilter `type:"list"` + + // The maximum number of platform values returned in one call. + MaxRecords *int64 `min:"1" type:"integer"` + + // The starting index into the remaining list of platforms. Use the NextToken + // value from a previous ListPlatformVersion call. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListPlatformVersionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPlatformVersionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListPlatformVersionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPlatformVersionsInput"} + if s.MaxRecords != nil && *s.MaxRecords < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxRecords", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *ListPlatformVersionsInput) SetFilters(v []*PlatformFilter) *ListPlatformVersionsInput { + s.Filters = v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *ListPlatformVersionsInput) SetMaxRecords(v int64) *ListPlatformVersionsInput { + s.MaxRecords = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPlatformVersionsInput) SetNextToken(v string) *ListPlatformVersionsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListPlatformVersionsResult +type ListPlatformVersionsOutput struct { + _ struct{} `type:"structure"` + + // The starting index into the remaining list of platforms. if this value is + // not null, you can use it in a subsequent ListPlatformVersion call. + NextToken *string `type:"string"` + + // Detailed information about the platforms. + PlatformSummaryList []*PlatformSummary `type:"list"` +} + +// String returns the string representation +func (s ListPlatformVersionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPlatformVersionsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPlatformVersionsOutput) SetNextToken(v string) *ListPlatformVersionsOutput { + s.NextToken = &v + return s +} + +// SetPlatformSummaryList sets the PlatformSummaryList field's value. +func (s *ListPlatformVersionsOutput) SetPlatformSummaryList(v []*PlatformSummary) *ListPlatformVersionsOutput { + s.PlatformSummaryList = v + return s +} + // Describes the properties of a Listener for the LoadBalancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/Listener type Listener struct { _ struct{} `type:"structure"` @@ -5046,7 +7655,20 @@ func (s Listener) GoString() string { return s.String() } +// SetPort sets the Port field's value. +func (s *Listener) SetPort(v int64) *Listener { + s.Port = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *Listener) SetProtocol(v string) *Listener { + s.Protocol = &v + return s +} + // Describes a LoadBalancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/LoadBalancer type LoadBalancer struct { _ struct{} `type:"structure"` @@ -5064,7 +7686,14 @@ func (s LoadBalancer) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *LoadBalancer) SetName(v string) *LoadBalancer { + s.Name = &v + return s +} + // Describes the details of a LoadBalancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/LoadBalancerDescription type LoadBalancerDescription struct { _ struct{} `type:"structure"` @@ -5088,7 +7717,26 @@ func (s LoadBalancerDescription) GoString() string { return s.String() } +// SetDomain sets the Domain field's value. +func (s *LoadBalancerDescription) SetDomain(v string) *LoadBalancerDescription { + s.Domain = &v + return s +} + +// SetListeners sets the Listeners field's value. +func (s *LoadBalancerDescription) SetListeners(v []*Listener) *LoadBalancerDescription { + s.Listeners = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *LoadBalancerDescription) SetLoadBalancerName(v string) *LoadBalancerDescription { + s.LoadBalancerName = &v + return s +} + // The record of an upcoming or in-progress managed action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ManagedAction type ManagedAction struct { _ struct{} `type:"structure"` @@ -5120,7 +7768,38 @@ func (s ManagedAction) GoString() string { return s.String() } +// SetActionDescription sets the ActionDescription field's value. +func (s *ManagedAction) SetActionDescription(v string) *ManagedAction { + s.ActionDescription = &v + return s +} + +// SetActionId sets the ActionId field's value. +func (s *ManagedAction) SetActionId(v string) *ManagedAction { + s.ActionId = &v + return s +} + +// SetActionType sets the ActionType field's value. +func (s *ManagedAction) SetActionType(v string) *ManagedAction { + s.ActionType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ManagedAction) SetStatus(v string) *ManagedAction { + s.Status = &v + return s +} + +// SetWindowStartTime sets the WindowStartTime field's value. +func (s *ManagedAction) SetWindowStartTime(v time.Time) *ManagedAction { + s.WindowStartTime = &v + return s +} + // The record of a completed or failed managed action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ManagedActionHistoryItem type ManagedActionHistoryItem struct { _ struct{} `type:"structure"` @@ -5159,8 +7838,177 @@ func (s ManagedActionHistoryItem) GoString() string { return s.String() } +// SetActionDescription sets the ActionDescription field's value. +func (s *ManagedActionHistoryItem) SetActionDescription(v string) *ManagedActionHistoryItem { + s.ActionDescription = &v + return s +} + +// SetActionId sets the ActionId field's value. +func (s *ManagedActionHistoryItem) SetActionId(v string) *ManagedActionHistoryItem { + s.ActionId = &v + return s +} + +// SetActionType sets the ActionType field's value. +func (s *ManagedActionHistoryItem) SetActionType(v string) *ManagedActionHistoryItem { + s.ActionType = &v + return s +} + +// SetExecutedTime sets the ExecutedTime field's value. +func (s *ManagedActionHistoryItem) SetExecutedTime(v time.Time) *ManagedActionHistoryItem { + s.ExecutedTime = &v + return s +} + +// SetFailureDescription sets the FailureDescription field's value. +func (s *ManagedActionHistoryItem) SetFailureDescription(v string) *ManagedActionHistoryItem { + s.FailureDescription = &v + return s +} + +// SetFailureType sets the FailureType field's value. +func (s *ManagedActionHistoryItem) SetFailureType(v string) *ManagedActionHistoryItem { + s.FailureType = &v + return s +} + +// SetFinishedTime sets the FinishedTime field's value. +func (s *ManagedActionHistoryItem) SetFinishedTime(v time.Time) *ManagedActionHistoryItem { + s.FinishedTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ManagedActionHistoryItem) SetStatus(v string) *ManagedActionHistoryItem { + s.Status = &v + return s +} + +// A lifecycle rule that deletes application versions after the specified number +// of days. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/MaxAgeRule +type MaxAgeRule struct { + _ struct{} `type:"structure"` + + // Set to true to delete a version's source bundle from Amazon S3 when Elastic + // Beanstalk deletes the application version. + DeleteSourceFromS3 *bool `type:"boolean"` + + // Specify true to apply the rule, or false to disable it. + // + // Enabled is a required field + Enabled *bool `type:"boolean" required:"true"` + + // Specify the number of days to retain an application versions. + MaxAgeInDays *int64 `type:"integer"` +} + +// String returns the string representation +func (s MaxAgeRule) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaxAgeRule) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MaxAgeRule) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MaxAgeRule"} + if s.Enabled == nil { + invalidParams.Add(request.NewErrParamRequired("Enabled")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeleteSourceFromS3 sets the DeleteSourceFromS3 field's value. +func (s *MaxAgeRule) SetDeleteSourceFromS3(v bool) *MaxAgeRule { + s.DeleteSourceFromS3 = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *MaxAgeRule) SetEnabled(v bool) *MaxAgeRule { + s.Enabled = &v + return s +} + +// SetMaxAgeInDays sets the MaxAgeInDays field's value. +func (s *MaxAgeRule) SetMaxAgeInDays(v int64) *MaxAgeRule { + s.MaxAgeInDays = &v + return s +} + +// A lifecycle rule that deletes the oldest application version when the maximum +// count is exceeded. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/MaxCountRule +type MaxCountRule struct { + _ struct{} `type:"structure"` + + // Set to true to delete a version's source bundle from Amazon S3 when Elastic + // Beanstalk deletes the application version. + DeleteSourceFromS3 *bool `type:"boolean"` + + // Specify true to apply the rule, or false to disable it. + // + // Enabled is a required field + Enabled *bool `type:"boolean" required:"true"` + + // Specify the maximum number of application versions to retain. + MaxCount *int64 `type:"integer"` +} + +// String returns the string representation +func (s MaxCountRule) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaxCountRule) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MaxCountRule) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MaxCountRule"} + if s.Enabled == nil { + invalidParams.Add(request.NewErrParamRequired("Enabled")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeleteSourceFromS3 sets the DeleteSourceFromS3 field's value. +func (s *MaxCountRule) SetDeleteSourceFromS3(v bool) *MaxCountRule { + s.DeleteSourceFromS3 = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *MaxCountRule) SetEnabled(v bool) *MaxCountRule { + s.Enabled = &v + return s +} + +// SetMaxCount sets the MaxCount field's value. +func (s *MaxCountRule) SetMaxCount(v int64) *MaxCountRule { + s.MaxCount = &v + return s +} + // A regular expression representing a restriction on a string configuration // option value. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/OptionRestrictionRegex type OptionRestrictionRegex struct { _ struct{} `type:"structure"` @@ -5182,7 +8030,20 @@ func (s OptionRestrictionRegex) GoString() string { return s.String() } +// SetLabel sets the Label field's value. +func (s *OptionRestrictionRegex) SetLabel(v string) *OptionRestrictionRegex { + s.Label = &v + return s +} + +// SetPattern sets the Pattern field's value. +func (s *OptionRestrictionRegex) SetPattern(v string) *OptionRestrictionRegex { + s.Pattern = &v + return s +} + // A specification identifying an individual configuration option. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/OptionSpecification type OptionSpecification struct { _ struct{} `type:"structure"` @@ -5219,7 +8080,414 @@ func (s *OptionSpecification) Validate() error { return nil } +// SetNamespace sets the Namespace field's value. +func (s *OptionSpecification) SetNamespace(v string) *OptionSpecification { + s.Namespace = &v + return s +} + +// SetOptionName sets the OptionName field's value. +func (s *OptionSpecification) SetOptionName(v string) *OptionSpecification { + s.OptionName = &v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *OptionSpecification) SetResourceName(v string) *OptionSpecification { + s.ResourceName = &v + return s +} + +// Detailed information about a platform. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/PlatformDescription +type PlatformDescription struct { + _ struct{} `type:"structure"` + + // The custom AMIs supported by the platform. + CustomAmiList []*CustomAmi `type:"list"` + + // The date when the platform was created. + DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The date when the platform was last updated. + DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The description of the platform. + Description *string `type:"string"` + + // The frameworks supported by the platform. + Frameworks []*PlatformFramework `type:"list"` + + // Information about the maintainer of the platform. + Maintainer *string `type:"string"` + + // The operating system used by the platform. + OperatingSystemName *string `type:"string"` + + // The version of the operating system used by the platform. + OperatingSystemVersion *string `type:"string"` + + // The ARN of the platform. + PlatformArn *string `type:"string"` + + // The category of the platform. + PlatformCategory *string `type:"string"` + + // The name of the platform. + PlatformName *string `type:"string"` + + // The AWS account ID of the person who created the platform. + PlatformOwner *string `type:"string"` + + // The status of the platform. + PlatformStatus *string `type:"string" enum:"PlatformStatus"` + + // The version of the platform. + PlatformVersion *string `type:"string"` + + // The programming languages supported by the platform. + ProgrammingLanguages []*PlatformProgrammingLanguage `type:"list"` + + // The name of the solution stack used by the platform. + SolutionStackName *string `type:"string"` + + // The additions supported by the platform. + SupportedAddonList []*string `type:"list"` + + // The tiers supported by the platform. + SupportedTierList []*string `type:"list"` +} + +// String returns the string representation +func (s PlatformDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlatformDescription) GoString() string { + return s.String() +} + +// SetCustomAmiList sets the CustomAmiList field's value. +func (s *PlatformDescription) SetCustomAmiList(v []*CustomAmi) *PlatformDescription { + s.CustomAmiList = v + return s +} + +// SetDateCreated sets the DateCreated field's value. +func (s *PlatformDescription) SetDateCreated(v time.Time) *PlatformDescription { + s.DateCreated = &v + return s +} + +// SetDateUpdated sets the DateUpdated field's value. +func (s *PlatformDescription) SetDateUpdated(v time.Time) *PlatformDescription { + s.DateUpdated = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *PlatformDescription) SetDescription(v string) *PlatformDescription { + s.Description = &v + return s +} + +// SetFrameworks sets the Frameworks field's value. +func (s *PlatformDescription) SetFrameworks(v []*PlatformFramework) *PlatformDescription { + s.Frameworks = v + return s +} + +// SetMaintainer sets the Maintainer field's value. +func (s *PlatformDescription) SetMaintainer(v string) *PlatformDescription { + s.Maintainer = &v + return s +} + +// SetOperatingSystemName sets the OperatingSystemName field's value. +func (s *PlatformDescription) SetOperatingSystemName(v string) *PlatformDescription { + s.OperatingSystemName = &v + return s +} + +// SetOperatingSystemVersion sets the OperatingSystemVersion field's value. +func (s *PlatformDescription) SetOperatingSystemVersion(v string) *PlatformDescription { + s.OperatingSystemVersion = &v + return s +} + +// SetPlatformArn sets the PlatformArn field's value. +func (s *PlatformDescription) SetPlatformArn(v string) *PlatformDescription { + s.PlatformArn = &v + return s +} + +// SetPlatformCategory sets the PlatformCategory field's value. +func (s *PlatformDescription) SetPlatformCategory(v string) *PlatformDescription { + s.PlatformCategory = &v + return s +} + +// SetPlatformName sets the PlatformName field's value. +func (s *PlatformDescription) SetPlatformName(v string) *PlatformDescription { + s.PlatformName = &v + return s +} + +// SetPlatformOwner sets the PlatformOwner field's value. +func (s *PlatformDescription) SetPlatformOwner(v string) *PlatformDescription { + s.PlatformOwner = &v + return s +} + +// SetPlatformStatus sets the PlatformStatus field's value. +func (s *PlatformDescription) SetPlatformStatus(v string) *PlatformDescription { + s.PlatformStatus = &v + return s +} + +// SetPlatformVersion sets the PlatformVersion field's value. +func (s *PlatformDescription) SetPlatformVersion(v string) *PlatformDescription { + s.PlatformVersion = &v + return s +} + +// SetProgrammingLanguages sets the ProgrammingLanguages field's value. +func (s *PlatformDescription) SetProgrammingLanguages(v []*PlatformProgrammingLanguage) *PlatformDescription { + s.ProgrammingLanguages = v + return s +} + +// SetSolutionStackName sets the SolutionStackName field's value. +func (s *PlatformDescription) SetSolutionStackName(v string) *PlatformDescription { + s.SolutionStackName = &v + return s +} + +// SetSupportedAddonList sets the SupportedAddonList field's value. +func (s *PlatformDescription) SetSupportedAddonList(v []*string) *PlatformDescription { + s.SupportedAddonList = v + return s +} + +// SetSupportedTierList sets the SupportedTierList field's value. +func (s *PlatformDescription) SetSupportedTierList(v []*string) *PlatformDescription { + s.SupportedTierList = v + return s +} + +// Specify criteria to restrict the results when listing custom platforms. +// +// The filter is evaluated as the expression: +// +// TypeOperatorValues[i] +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/PlatformFilter +type PlatformFilter struct { + _ struct{} `type:"structure"` + + // The operator to apply to the Type with each of the Values. + // + // Valid Values: = (equal to) | != (not equal to) | < (less than) | <= (less + // than or equal to) | > (greater than) | >= (greater than or equal to) | contains + // | begins_with | ends_with + Operator *string `type:"string"` + + // The custom platform attribute to which the filter values are applied. + // + // Valid Values: PlatformName | PlatformVersion | PlatformStatus | PlatformOwner + Type *string `type:"string"` + + // The list of values applied to the custom platform attribute. + Values []*string `type:"list"` +} + +// String returns the string representation +func (s PlatformFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlatformFilter) GoString() string { + return s.String() +} + +// SetOperator sets the Operator field's value. +func (s *PlatformFilter) SetOperator(v string) *PlatformFilter { + s.Operator = &v + return s +} + +// SetType sets the Type field's value. +func (s *PlatformFilter) SetType(v string) *PlatformFilter { + s.Type = &v + return s +} + +// SetValues sets the Values field's value. +func (s *PlatformFilter) SetValues(v []*string) *PlatformFilter { + s.Values = v + return s +} + +// A framework supported by the custom platform. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/PlatformFramework +type PlatformFramework struct { + _ struct{} `type:"structure"` + + // The name of the framework. + Name *string `type:"string"` + + // The version of the framework. + Version *string `type:"string"` +} + +// String returns the string representation +func (s PlatformFramework) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlatformFramework) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *PlatformFramework) SetName(v string) *PlatformFramework { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *PlatformFramework) SetVersion(v string) *PlatformFramework { + s.Version = &v + return s +} + +// A programming language supported by the platform. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/PlatformProgrammingLanguage +type PlatformProgrammingLanguage struct { + _ struct{} `type:"structure"` + + // The name of the programming language. + Name *string `type:"string"` + + // The version of the programming language. + Version *string `type:"string"` +} + +// String returns the string representation +func (s PlatformProgrammingLanguage) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlatformProgrammingLanguage) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *PlatformProgrammingLanguage) SetName(v string) *PlatformProgrammingLanguage { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *PlatformProgrammingLanguage) SetVersion(v string) *PlatformProgrammingLanguage { + s.Version = &v + return s +} + +// Detailed information about a platform. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/PlatformSummary +type PlatformSummary struct { + _ struct{} `type:"structure"` + + // The operating system used by the platform. + OperatingSystemName *string `type:"string"` + + // The version of the operating system used by the platform. + OperatingSystemVersion *string `type:"string"` + + // The ARN of the platform. + PlatformArn *string `type:"string"` + + // The category of platform. + PlatformCategory *string `type:"string"` + + // The AWS account ID of the person who created the platform. + PlatformOwner *string `type:"string"` + + // The status of the platform. You can create an environment from the platform + // once it is ready. + PlatformStatus *string `type:"string" enum:"PlatformStatus"` + + // The additions associated with the platform. + SupportedAddonList []*string `type:"list"` + + // The tiers in which the platform runs. + SupportedTierList []*string `type:"list"` +} + +// String returns the string representation +func (s PlatformSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlatformSummary) GoString() string { + return s.String() +} + +// SetOperatingSystemName sets the OperatingSystemName field's value. +func (s *PlatformSummary) SetOperatingSystemName(v string) *PlatformSummary { + s.OperatingSystemName = &v + return s +} + +// SetOperatingSystemVersion sets the OperatingSystemVersion field's value. +func (s *PlatformSummary) SetOperatingSystemVersion(v string) *PlatformSummary { + s.OperatingSystemVersion = &v + return s +} + +// SetPlatformArn sets the PlatformArn field's value. +func (s *PlatformSummary) SetPlatformArn(v string) *PlatformSummary { + s.PlatformArn = &v + return s +} + +// SetPlatformCategory sets the PlatformCategory field's value. +func (s *PlatformSummary) SetPlatformCategory(v string) *PlatformSummary { + s.PlatformCategory = &v + return s +} + +// SetPlatformOwner sets the PlatformOwner field's value. +func (s *PlatformSummary) SetPlatformOwner(v string) *PlatformSummary { + s.PlatformOwner = &v + return s +} + +// SetPlatformStatus sets the PlatformStatus field's value. +func (s *PlatformSummary) SetPlatformStatus(v string) *PlatformSummary { + s.PlatformStatus = &v + return s +} + +// SetSupportedAddonList sets the SupportedAddonList field's value. +func (s *PlatformSummary) SetSupportedAddonList(v []*string) *PlatformSummary { + s.SupportedAddonList = v + return s +} + +// SetSupportedTierList sets the SupportedTierList field's value. +func (s *PlatformSummary) SetSupportedTierList(v []*string) *PlatformSummary { + s.SupportedTierList = v + return s +} + // Describes a queue. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/Queue type Queue struct { _ struct{} `type:"structure"` @@ -5240,19 +8508,32 @@ func (s Queue) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *Queue) SetName(v string) *Queue { + s.Name = &v + return s +} + +// SetURL sets the URL field's value. +func (s *Queue) SetURL(v string) *Queue { + s.URL = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RebuildEnvironmentMessage type RebuildEnvironmentInput struct { _ struct{} `type:"structure"` // The ID of the environment to rebuild. // - // Condition: You must specify either this or an EnvironmentName, or both. - // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter + // Condition: You must specify either this or an EnvironmentName, or both. If + // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentId *string `type:"string"` // The name of the environment to rebuild. // - // Condition: You must specify either this or an EnvironmentId, or both. If + // Condition: You must specify either this or an EnvironmentId, or both. If // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentName *string `min:"4" type:"string"` @@ -5281,6 +8562,19 @@ func (s *RebuildEnvironmentInput) Validate() error { return nil } +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *RebuildEnvironmentInput) SetEnvironmentId(v string) *RebuildEnvironmentInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *RebuildEnvironmentInput) SetEnvironmentName(v string) *RebuildEnvironmentInput { + s.EnvironmentName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RebuildEnvironmentOutput type RebuildEnvironmentOutput struct { _ struct{} `type:"structure"` } @@ -5297,6 +8591,7 @@ func (s RebuildEnvironmentOutput) GoString() string { // Request to retrieve logs from an environment and store them in your Elastic // Beanstalk storage bucket. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RequestEnvironmentInfoMessage type RequestEnvironmentInfoInput struct { _ struct{} `type:"structure"` @@ -5305,8 +8600,8 @@ type RequestEnvironmentInfoInput struct { // If no such environment is found, RequestEnvironmentInfo returns an InvalidParameterValue // error. // - // Condition: You must specify either this or an EnvironmentName, or both. - // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter + // Condition: You must specify either this or an EnvironmentName, or both. If + // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentId *string `type:"string"` @@ -5352,6 +8647,25 @@ func (s *RequestEnvironmentInfoInput) Validate() error { return nil } +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *RequestEnvironmentInfoInput) SetEnvironmentId(v string) *RequestEnvironmentInfoInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *RequestEnvironmentInfoInput) SetEnvironmentName(v string) *RequestEnvironmentInfoInput { + s.EnvironmentName = &v + return s +} + +// SetInfoType sets the InfoType field's value. +func (s *RequestEnvironmentInfoInput) SetInfoType(v string) *RequestEnvironmentInfoInput { + s.InfoType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RequestEnvironmentInfoOutput type RequestEnvironmentInfoOutput struct { _ struct{} `type:"structure"` } @@ -5366,19 +8680,20 @@ func (s RequestEnvironmentInfoOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RestartAppServerMessage type RestartAppServerInput struct { _ struct{} `type:"structure"` // The ID of the environment to restart the server for. // - // Condition: You must specify either this or an EnvironmentName, or both. - // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter + // Condition: You must specify either this or an EnvironmentName, or both. If + // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentId *string `type:"string"` // The name of the environment to restart the server for. // - // Condition: You must specify either this or an EnvironmentId, or both. If + // Condition: You must specify either this or an EnvironmentId, or both. If // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentName *string `min:"4" type:"string"` @@ -5407,6 +8722,19 @@ func (s *RestartAppServerInput) Validate() error { return nil } +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *RestartAppServerInput) SetEnvironmentId(v string) *RestartAppServerInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *RestartAppServerInput) SetEnvironmentName(v string) *RestartAppServerInput { + s.EnvironmentName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RestartAppServerOutput type RestartAppServerOutput struct { _ struct{} `type:"structure"` } @@ -5422,6 +8750,7 @@ func (s RestartAppServerOutput) GoString() string { } // Request to download logs retrieved with RequestEnvironmentInfo. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RetrieveEnvironmentInfoMessage type RetrieveEnvironmentInfoInput struct { _ struct{} `type:"structure"` @@ -5429,16 +8758,16 @@ type RetrieveEnvironmentInfoInput struct { // // If no such environment is found, returns an InvalidParameterValue error. // - // Condition: You must specify either this or an EnvironmentName, or both. - // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter + // Condition: You must specify either this or an EnvironmentName, or both. If + // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentId *string `type:"string"` // The name of the data's environment. // - // If no such environment is found, returns an InvalidParameterValue error. + // If no such environment is found, returns an InvalidParameterValue error. // - // Condition: You must specify either this or an EnvironmentId, or both. If + // Condition: You must specify either this or an EnvironmentId, or both. If // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentName *string `min:"4" type:"string"` @@ -5475,7 +8804,26 @@ func (s *RetrieveEnvironmentInfoInput) Validate() error { return nil } +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *RetrieveEnvironmentInfoInput) SetEnvironmentId(v string) *RetrieveEnvironmentInfoInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *RetrieveEnvironmentInfoInput) SetEnvironmentName(v string) *RetrieveEnvironmentInfoInput { + s.EnvironmentName = &v + return s +} + +// SetInfoType sets the InfoType field's value. +func (s *RetrieveEnvironmentInfoInput) SetInfoType(v string) *RetrieveEnvironmentInfoInput { + s.InfoType = &v + return s +} + // Result message containing a description of the requested environment info. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RetrieveEnvironmentInfoResultMessage type RetrieveEnvironmentInfoOutput struct { _ struct{} `type:"structure"` @@ -5493,7 +8841,14 @@ func (s RetrieveEnvironmentInfoOutput) GoString() string { return s.String() } -// A specification of a location in Amazon S3. +// SetEnvironmentInfo sets the EnvironmentInfo field's value. +func (s *RetrieveEnvironmentInfoOutput) SetEnvironmentInfo(v []*EnvironmentInfoDescription) *RetrieveEnvironmentInfoOutput { + s.EnvironmentInfo = v + return s +} + +// The bucket and key of an item stored in Amazon S3. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/S3Location type S3Location struct { _ struct{} `type:"structure"` @@ -5514,13 +8869,25 @@ func (s S3Location) GoString() string { return s.String() } -// Represents health information from the specified instance that belongs to -// the AWS Elastic Beanstalk environment. Use the InstanceId property to specify -// the application instance for which you'd like to return data. +// SetS3Bucket sets the S3Bucket field's value. +func (s *S3Location) SetS3Bucket(v string) *S3Location { + s.S3Bucket = &v + return s +} + +// SetS3Key sets the S3Key field's value. +func (s *S3Location) SetS3Key(v string) *S3Location { + s.S3Key = &v + return s +} + +// Detailed health information about an Amazon EC2 instance in your Elastic +// Beanstalk environment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/SingleInstanceHealth type SingleInstanceHealth struct { _ struct{} `type:"structure"` - // Represents the application metrics for a specified environment. + // Request metrics from your application. ApplicationMetrics *ApplicationMetrics `type:"structure"` // The availability zone in which the instance runs. @@ -5551,8 +8918,7 @@ type SingleInstanceHealth struct { // The time at which the EC2 instance was launched. LaunchedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // Represents CPU utilization and load average information for applications - // running in the specified environment. + // Operating system metrics from the instance. System *SystemStatus `type:"structure"` } @@ -5566,7 +8932,68 @@ func (s SingleInstanceHealth) GoString() string { return s.String() } +// SetApplicationMetrics sets the ApplicationMetrics field's value. +func (s *SingleInstanceHealth) SetApplicationMetrics(v *ApplicationMetrics) *SingleInstanceHealth { + s.ApplicationMetrics = v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *SingleInstanceHealth) SetAvailabilityZone(v string) *SingleInstanceHealth { + s.AvailabilityZone = &v + return s +} + +// SetCauses sets the Causes field's value. +func (s *SingleInstanceHealth) SetCauses(v []*string) *SingleInstanceHealth { + s.Causes = v + return s +} + +// SetColor sets the Color field's value. +func (s *SingleInstanceHealth) SetColor(v string) *SingleInstanceHealth { + s.Color = &v + return s +} + +// SetDeployment sets the Deployment field's value. +func (s *SingleInstanceHealth) SetDeployment(v *Deployment) *SingleInstanceHealth { + s.Deployment = v + return s +} + +// SetHealthStatus sets the HealthStatus field's value. +func (s *SingleInstanceHealth) SetHealthStatus(v string) *SingleInstanceHealth { + s.HealthStatus = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *SingleInstanceHealth) SetInstanceId(v string) *SingleInstanceHealth { + s.InstanceId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *SingleInstanceHealth) SetInstanceType(v string) *SingleInstanceHealth { + s.InstanceType = &v + return s +} + +// SetLaunchedAt sets the LaunchedAt field's value. +func (s *SingleInstanceHealth) SetLaunchedAt(v time.Time) *SingleInstanceHealth { + s.LaunchedAt = &v + return s +} + +// SetSystem sets the System field's value. +func (s *SingleInstanceHealth) SetSystem(v *SystemStatus) *SingleInstanceHealth { + s.System = v + return s +} + // Describes the solution stack. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/SolutionStackDescription type SolutionStackDescription struct { _ struct{} `type:"structure"` @@ -5587,15 +9014,50 @@ func (s SolutionStackDescription) GoString() string { return s.String() } +// SetPermittedFileTypes sets the PermittedFileTypes field's value. +func (s *SolutionStackDescription) SetPermittedFileTypes(v []*string) *SolutionStackDescription { + s.PermittedFileTypes = v + return s +} + +// SetSolutionStackName sets the SolutionStackName field's value. +func (s *SolutionStackDescription) SetSolutionStackName(v string) *SolutionStackDescription { + s.SolutionStackName = &v + return s +} + +// Location of the source code for an application version. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/SourceBuildInformation type SourceBuildInformation struct { _ struct{} `type:"structure"` + // The location of the source code, as a formatted string, depending on the + // value of SourceRepository + // + // * For CodeCommit, the format is the repository name and commit ID, separated + // by a forward slash. For example, my-git-repo/265cfa0cf6af46153527f55d6503ec030551f57a. + // + // * For S3, the format is the S3 bucket name and object key, separated by + // a forward slash. For example, my-s3-bucket/Folders/my-source-file. + // // SourceLocation is a required field SourceLocation *string `min:"3" type:"string" required:"true"` + // Location where the repository is stored. + // + // * CodeCommit + // + // * S3 + // // SourceRepository is a required field SourceRepository *string `type:"string" required:"true" enum:"SourceRepository"` + // The type of repository. + // + // * Git + // + // * Zip + // // SourceType is a required field SourceType *string `type:"string" required:"true" enum:"SourceType"` } @@ -5632,7 +9094,26 @@ func (s *SourceBuildInformation) Validate() error { return nil } +// SetSourceLocation sets the SourceLocation field's value. +func (s *SourceBuildInformation) SetSourceLocation(v string) *SourceBuildInformation { + s.SourceLocation = &v + return s +} + +// SetSourceRepository sets the SourceRepository field's value. +func (s *SourceBuildInformation) SetSourceRepository(v string) *SourceBuildInformation { + s.SourceRepository = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *SourceBuildInformation) SetSourceType(v string) *SourceBuildInformation { + s.SourceType = &v + return s +} + // A specification for an environment configuration +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/SourceConfiguration type SourceConfiguration struct { _ struct{} `type:"structure"` @@ -5669,9 +9150,22 @@ func (s *SourceConfiguration) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *SourceConfiguration) SetApplicationName(v string) *SourceConfiguration { + s.ApplicationName = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *SourceConfiguration) SetTemplateName(v string) *SourceConfiguration { + s.TemplateName = &v + return s +} + // Represents the percentage of requests over the last 10 seconds that resulted // in each type of status code response. For more information, see Status Code // Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/StatusCodes type StatusCodes struct { _ struct{} `type:"structure"` @@ -5702,34 +9196,59 @@ func (s StatusCodes) GoString() string { return s.String() } +// SetStatus2xx sets the Status2xx field's value. +func (s *StatusCodes) SetStatus2xx(v int64) *StatusCodes { + s.Status2xx = &v + return s +} + +// SetStatus3xx sets the Status3xx field's value. +func (s *StatusCodes) SetStatus3xx(v int64) *StatusCodes { + s.Status3xx = &v + return s +} + +// SetStatus4xx sets the Status4xx field's value. +func (s *StatusCodes) SetStatus4xx(v int64) *StatusCodes { + s.Status4xx = &v + return s +} + +// SetStatus5xx sets the Status5xx field's value. +func (s *StatusCodes) SetStatus5xx(v int64) *StatusCodes { + s.Status5xx = &v + return s +} + // Swaps the CNAMEs of two environments. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/SwapEnvironmentCNAMEsMessage type SwapEnvironmentCNAMEsInput struct { _ struct{} `type:"structure"` // The ID of the destination environment. // - // Condition: You must specify at least the DestinationEnvironmentID or the + // Condition: You must specify at least the DestinationEnvironmentID or the // DestinationEnvironmentName. You may also specify both. You must specify the // SourceEnvironmentId with the DestinationEnvironmentId. DestinationEnvironmentId *string `type:"string"` // The name of the destination environment. // - // Condition: You must specify at least the DestinationEnvironmentID or the + // Condition: You must specify at least the DestinationEnvironmentID or the // DestinationEnvironmentName. You may also specify both. You must specify the // SourceEnvironmentName with the DestinationEnvironmentName. DestinationEnvironmentName *string `min:"4" type:"string"` // The ID of the source environment. // - // Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. + // Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. // You may also specify both. If you specify the SourceEnvironmentId, you must // specify the DestinationEnvironmentId. SourceEnvironmentId *string `type:"string"` // The name of the source environment. // - // Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. + // Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. // You may also specify both. If you specify the SourceEnvironmentName, you // must specify the DestinationEnvironmentName. SourceEnvironmentName *string `min:"4" type:"string"` @@ -5761,6 +9280,31 @@ func (s *SwapEnvironmentCNAMEsInput) Validate() error { return nil } +// SetDestinationEnvironmentId sets the DestinationEnvironmentId field's value. +func (s *SwapEnvironmentCNAMEsInput) SetDestinationEnvironmentId(v string) *SwapEnvironmentCNAMEsInput { + s.DestinationEnvironmentId = &v + return s +} + +// SetDestinationEnvironmentName sets the DestinationEnvironmentName field's value. +func (s *SwapEnvironmentCNAMEsInput) SetDestinationEnvironmentName(v string) *SwapEnvironmentCNAMEsInput { + s.DestinationEnvironmentName = &v + return s +} + +// SetSourceEnvironmentId sets the SourceEnvironmentId field's value. +func (s *SwapEnvironmentCNAMEsInput) SetSourceEnvironmentId(v string) *SwapEnvironmentCNAMEsInput { + s.SourceEnvironmentId = &v + return s +} + +// SetSourceEnvironmentName sets the SourceEnvironmentName field's value. +func (s *SwapEnvironmentCNAMEsInput) SetSourceEnvironmentName(v string) *SwapEnvironmentCNAMEsInput { + s.SourceEnvironmentName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/SwapEnvironmentCNAMEsOutput type SwapEnvironmentCNAMEsOutput struct { _ struct{} `type:"structure"` } @@ -5775,18 +9319,16 @@ func (s SwapEnvironmentCNAMEsOutput) GoString() string { return s.String() } -// Represents CPU utilization and load average information for applications -// running in the specified environment. +// CPU utilization and load average metrics for an Amazon EC2 instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/SystemStatus type SystemStatus struct { _ struct{} `type:"structure"` - // Represents CPU utilization information from the specified instance that belongs - // to the AWS Elastic Beanstalk environment. Use the instanceId property to - // specify the application instance for which you'd like to return data. + // CPU utilization metrics for the instance. CPUUtilization *CPUUtilization `type:"structure"` - // Load average in the last 1-minute and 5-minute periods. For more information, - // see Operating System Metrics (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-metrics.html#health-enhanced-metrics-os). + // Load average in the last 1-minute, 5-minute, and 15-minute periods. For more + // information, see Operating System Metrics (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-metrics.html#health-enhanced-metrics-os). LoadAverage []*float64 `type:"list"` } @@ -5800,7 +9342,20 @@ func (s SystemStatus) GoString() string { return s.String() } +// SetCPUUtilization sets the CPUUtilization field's value. +func (s *SystemStatus) SetCPUUtilization(v *CPUUtilization) *SystemStatus { + s.CPUUtilization = v + return s +} + +// SetLoadAverage sets the LoadAverage field's value. +func (s *SystemStatus) SetLoadAverage(v []*float64) *SystemStatus { + s.LoadAverage = v + return s +} + // Describes a tag applied to a resource in an environment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/Tag type Tag struct { _ struct{} `type:"structure"` @@ -5837,20 +9392,33 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Request to terminate an environment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/TerminateEnvironmentMessage type TerminateEnvironmentInput struct { _ struct{} `type:"structure"` // The ID of the environment to terminate. // - // Condition: You must specify either this or an EnvironmentName, or both. - // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter + // Condition: You must specify either this or an EnvironmentName, or both. If + // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentId *string `type:"string"` // The name of the environment to terminate. // - // Condition: You must specify either this or an EnvironmentId, or both. If + // Condition: You must specify either this or an EnvironmentId, or both. If // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentName *string `min:"4" type:"string"` @@ -5862,17 +9430,17 @@ type TerminateEnvironmentInput struct { // Indicates whether the associated AWS resources should shut down when the // environment is terminated: // - // true: The specified environment as well as the associated AWS resources, - // such as Auto Scaling group and LoadBalancer, are terminated. + // * true: The specified environment as well as the associated AWS resources, + // such as Auto Scaling group and LoadBalancer, are terminated. // - // false: AWS Elastic Beanstalk resource management is removed from the - // environment, but the AWS resources continue to operate. + // * false: AWS Elastic Beanstalk resource management is removed from the + // environment, but the AWS resources continue to operate. // - // For more information, see the AWS Elastic Beanstalk User Guide. (http://docs.aws.amazon.com/elasticbeanstalk/latest/ug/) + // For more information, see the AWS Elastic Beanstalk User Guide. (http://docs.aws.amazon.com/elasticbeanstalk/latest/ug/) // - // Default: true + // Default: true // - // Valid Values: true | false + // Valid Values: true | false TerminateResources *bool `type:"boolean"` } @@ -5899,7 +9467,32 @@ func (s *TerminateEnvironmentInput) Validate() error { return nil } +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *TerminateEnvironmentInput) SetEnvironmentId(v string) *TerminateEnvironmentInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *TerminateEnvironmentInput) SetEnvironmentName(v string) *TerminateEnvironmentInput { + s.EnvironmentName = &v + return s +} + +// SetForceTerminate sets the ForceTerminate field's value. +func (s *TerminateEnvironmentInput) SetForceTerminate(v bool) *TerminateEnvironmentInput { + s.ForceTerminate = &v + return s +} + +// SetTerminateResources sets the TerminateResources field's value. +func (s *TerminateEnvironmentInput) SetTerminateResources(v bool) *TerminateEnvironmentInput { + s.TerminateResources = &v + return s +} + // Describes a trigger. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/Trigger type Trigger struct { _ struct{} `type:"structure"` @@ -5917,7 +9510,14 @@ func (s Trigger) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *Trigger) SetName(v string) *Trigger { + s.Name = &v + return s +} + // Request to update an application. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateApplicationMessage type UpdateApplicationInput struct { _ struct{} `type:"structure"` @@ -5959,23 +9559,130 @@ func (s *UpdateApplicationInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *UpdateApplicationInput) SetApplicationName(v string) *UpdateApplicationInput { + s.ApplicationName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateApplicationInput) SetDescription(v string) *UpdateApplicationInput { + s.Description = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateApplicationResourceLifecycleMessage +type UpdateApplicationResourceLifecycleInput struct { + _ struct{} `type:"structure"` + + // The name of the application. + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // The lifecycle configuration. + // + // ResourceLifecycleConfig is a required field + ResourceLifecycleConfig *ApplicationResourceLifecycleConfig `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateApplicationResourceLifecycleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateApplicationResourceLifecycleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateApplicationResourceLifecycleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationResourceLifecycleInput"} + if s.ApplicationName == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationName")) + } + if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) + } + if s.ResourceLifecycleConfig == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceLifecycleConfig")) + } + if s.ResourceLifecycleConfig != nil { + if err := s.ResourceLifecycleConfig.Validate(); err != nil { + invalidParams.AddNested("ResourceLifecycleConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *UpdateApplicationResourceLifecycleInput) SetApplicationName(v string) *UpdateApplicationResourceLifecycleInput { + s.ApplicationName = &v + return s +} + +// SetResourceLifecycleConfig sets the ResourceLifecycleConfig field's value. +func (s *UpdateApplicationResourceLifecycleInput) SetResourceLifecycleConfig(v *ApplicationResourceLifecycleConfig) *UpdateApplicationResourceLifecycleInput { + s.ResourceLifecycleConfig = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ApplicationResourceLifecycleDescriptionMessage +type UpdateApplicationResourceLifecycleOutput struct { + _ struct{} `type:"structure"` + + // The name of the application. + ApplicationName *string `min:"1" type:"string"` + + // The lifecycle configuration. + ResourceLifecycleConfig *ApplicationResourceLifecycleConfig `type:"structure"` +} + +// String returns the string representation +func (s UpdateApplicationResourceLifecycleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateApplicationResourceLifecycleOutput) GoString() string { + return s.String() +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *UpdateApplicationResourceLifecycleOutput) SetApplicationName(v string) *UpdateApplicationResourceLifecycleOutput { + s.ApplicationName = &v + return s +} + +// SetResourceLifecycleConfig sets the ResourceLifecycleConfig field's value. +func (s *UpdateApplicationResourceLifecycleOutput) SetResourceLifecycleConfig(v *ApplicationResourceLifecycleConfig) *UpdateApplicationResourceLifecycleOutput { + s.ResourceLifecycleConfig = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateApplicationVersionMessage type UpdateApplicationVersionInput struct { _ struct{} `type:"structure"` // The name of the application associated with this version. // - // If no application is found with this name, UpdateApplication returns an - // InvalidParameterValue error. + // If no application is found with this name, UpdateApplication returns an InvalidParameterValue + // error. // // ApplicationName is a required field ApplicationName *string `min:"1" type:"string" required:"true"` - // A new description for this release. + // A new description for this version. Description *string `type:"string"` // The name of the version to update. // - // If no application version is found with this label, UpdateApplication returns + // If no application version is found with this label, UpdateApplication returns // an InvalidParameterValue error. // // VersionLabel is a required field @@ -6014,15 +9721,34 @@ func (s *UpdateApplicationVersionInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *UpdateApplicationVersionInput) SetApplicationName(v string) *UpdateApplicationVersionInput { + s.ApplicationName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateApplicationVersionInput) SetDescription(v string) *UpdateApplicationVersionInput { + s.Description = &v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *UpdateApplicationVersionInput) SetVersionLabel(v string) *UpdateApplicationVersionInput { + s.VersionLabel = &v + return s +} + // The result message containing the options for the specified solution stack. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateConfigurationTemplateMessage type UpdateConfigurationTemplateInput struct { _ struct{} `type:"structure"` // The name of the application associated with the configuration template to // update. // - // If no application is found with this name, UpdateConfigurationTemplate - // returns an InvalidParameterValue error. + // If no application is found with this name, UpdateConfigurationTemplate returns + // an InvalidParameterValue error. // // ApplicationName is a required field ApplicationName *string `min:"1" type:"string" required:"true"` @@ -6036,12 +9762,12 @@ type UpdateConfigurationTemplateInput struct { // A list of configuration options to remove from the configuration set. // - // Constraint: You can remove only UserDefined configuration options. + // Constraint: You can remove only UserDefined configuration options. OptionsToRemove []*OptionSpecification `type:"list"` // The name of the configuration template to update. // - // If no configuration template is found with this name, UpdateConfigurationTemplate + // If no configuration template is found with this name, UpdateConfigurationTemplate // returns an InvalidParameterValue error. // // TemplateName is a required field @@ -6100,7 +9826,38 @@ func (s *UpdateConfigurationTemplateInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *UpdateConfigurationTemplateInput) SetApplicationName(v string) *UpdateConfigurationTemplateInput { + s.ApplicationName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateConfigurationTemplateInput) SetDescription(v string) *UpdateConfigurationTemplateInput { + s.Description = &v + return s +} + +// SetOptionSettings sets the OptionSettings field's value. +func (s *UpdateConfigurationTemplateInput) SetOptionSettings(v []*ConfigurationOptionSetting) *UpdateConfigurationTemplateInput { + s.OptionSettings = v + return s +} + +// SetOptionsToRemove sets the OptionsToRemove field's value. +func (s *UpdateConfigurationTemplateInput) SetOptionsToRemove(v []*OptionSpecification) *UpdateConfigurationTemplateInput { + s.OptionsToRemove = v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *UpdateConfigurationTemplateInput) SetTemplateName(v string) *UpdateConfigurationTemplateInput { + s.TemplateName = &v + return s +} + // Request to update an environment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateEnvironmentMessage type UpdateEnvironmentInput struct { _ struct{} `type:"structure"` @@ -6113,11 +9870,11 @@ type UpdateEnvironmentInput struct { // The ID of the environment to update. // - // If no environment with this ID exists, AWS Elastic Beanstalk returns an - // InvalidParameterValue error. + // If no environment with this ID exists, AWS Elastic Beanstalk returns an InvalidParameterValue + // error. // - // Condition: You must specify either this or an EnvironmentName, or both. - // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter + // Condition: You must specify either this or an EnvironmentName, or both. If + // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentId *string `type:"string"` @@ -6145,6 +9902,9 @@ type UpdateEnvironmentInput struct { // set for this environment. OptionsToRemove []*OptionSpecification `type:"list"` + // The ARN of the platform, if used. + PlatformArn *string `type:"string"` + // This specifies the platform version that the environment will run after the // environment is updated. SolutionStackName *string `type:"string"` @@ -6156,8 +9916,8 @@ type UpdateEnvironmentInput struct { // This specifies the tier to use to update the environment. // - // Condition: At this time, if you change the tier version, name, or type, - // AWS Elastic Beanstalk returns InvalidParameterValue error. + // Condition: At this time, if you change the tier version, name, or type, AWS + // Elastic Beanstalk returns InvalidParameterValue error. Tier *EnvironmentTier `type:"structure"` // If this parameter is specified, AWS Elastic Beanstalk deploys the named application @@ -6221,7 +9981,80 @@ func (s *UpdateEnvironmentInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *UpdateEnvironmentInput) SetApplicationName(v string) *UpdateEnvironmentInput { + s.ApplicationName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateEnvironmentInput) SetDescription(v string) *UpdateEnvironmentInput { + s.Description = &v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *UpdateEnvironmentInput) SetEnvironmentId(v string) *UpdateEnvironmentInput { + s.EnvironmentId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *UpdateEnvironmentInput) SetEnvironmentName(v string) *UpdateEnvironmentInput { + s.EnvironmentName = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *UpdateEnvironmentInput) SetGroupName(v string) *UpdateEnvironmentInput { + s.GroupName = &v + return s +} + +// SetOptionSettings sets the OptionSettings field's value. +func (s *UpdateEnvironmentInput) SetOptionSettings(v []*ConfigurationOptionSetting) *UpdateEnvironmentInput { + s.OptionSettings = v + return s +} + +// SetOptionsToRemove sets the OptionsToRemove field's value. +func (s *UpdateEnvironmentInput) SetOptionsToRemove(v []*OptionSpecification) *UpdateEnvironmentInput { + s.OptionsToRemove = v + return s +} + +// SetPlatformArn sets the PlatformArn field's value. +func (s *UpdateEnvironmentInput) SetPlatformArn(v string) *UpdateEnvironmentInput { + s.PlatformArn = &v + return s +} + +// SetSolutionStackName sets the SolutionStackName field's value. +func (s *UpdateEnvironmentInput) SetSolutionStackName(v string) *UpdateEnvironmentInput { + s.SolutionStackName = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *UpdateEnvironmentInput) SetTemplateName(v string) *UpdateEnvironmentInput { + s.TemplateName = &v + return s +} + +// SetTier sets the Tier field's value. +func (s *UpdateEnvironmentInput) SetTier(v *EnvironmentTier) *UpdateEnvironmentInput { + s.Tier = v + return s +} + +// SetVersionLabel sets the VersionLabel field's value. +func (s *UpdateEnvironmentInput) SetVersionLabel(v string) *UpdateEnvironmentInput { + s.VersionLabel = &v + return s +} + // A list of validation messages for a specified configuration template. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ValidateConfigurationSettingsMessage type ValidateConfigurationSettingsInput struct { _ struct{} `type:"structure"` @@ -6292,7 +10125,32 @@ func (s *ValidateConfigurationSettingsInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *ValidateConfigurationSettingsInput) SetApplicationName(v string) *ValidateConfigurationSettingsInput { + s.ApplicationName = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *ValidateConfigurationSettingsInput) SetEnvironmentName(v string) *ValidateConfigurationSettingsInput { + s.EnvironmentName = &v + return s +} + +// SetOptionSettings sets the OptionSettings field's value. +func (s *ValidateConfigurationSettingsInput) SetOptionSettings(v []*ConfigurationOptionSetting) *ValidateConfigurationSettingsInput { + s.OptionSettings = v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *ValidateConfigurationSettingsInput) SetTemplateName(v string) *ValidateConfigurationSettingsInput { + s.TemplateName = &v + return s +} + // Provides a list of validation messages. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ConfigurationSettingsValidationMessages type ValidateConfigurationSettingsOutput struct { _ struct{} `type:"structure"` @@ -6310,23 +10168,33 @@ func (s ValidateConfigurationSettingsOutput) GoString() string { return s.String() } +// SetMessages sets the Messages field's value. +func (s *ValidateConfigurationSettingsOutput) SetMessages(v []*ValidationMessage) *ValidateConfigurationSettingsOutput { + s.Messages = v + return s +} + // An error or warning for a desired configuration option value. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ValidationMessage type ValidationMessage struct { _ struct{} `type:"structure"` // A message describing the error or warning. Message *string `type:"string"` + // The namespace to which the option belongs. Namespace *string `type:"string"` + // The name of the option. OptionName *string `type:"string"` // An indication of the severity of this message: // - // error: This message indicates that this is not a valid setting for an - // option. + // * error: This message indicates that this is not a valid setting for an + // option. // - // warning: This message is providing information you should take into account. + // * warning: This message is providing information you should take into + // account. Severity *string `type:"string" enum:"ValidationSeverity"` } @@ -6340,6 +10208,30 @@ func (s ValidationMessage) GoString() string { return s.String() } +// SetMessage sets the Message field's value. +func (s *ValidationMessage) SetMessage(v string) *ValidationMessage { + s.Message = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *ValidationMessage) SetNamespace(v string) *ValidationMessage { + s.Namespace = &v + return s +} + +// SetOptionName sets the OptionName field's value. +func (s *ValidationMessage) SetOptionName(v string) *ValidationMessage { + s.OptionName = &v + return s +} + +// SetSeverity sets the Severity field's value. +func (s *ValidationMessage) SetSeverity(v string) *ValidationMessage { + s.Severity = &v + return s +} + const ( // ActionHistoryStatusCompleted is a ActionHistoryStatus enum value ActionHistoryStatusCompleted = "Completed" @@ -6388,6 +10280,20 @@ const ( // ApplicationVersionStatusProcessing is a ApplicationVersionStatus enum value ApplicationVersionStatusProcessing = "Processing" + + // ApplicationVersionStatusBuilding is a ApplicationVersionStatus enum value + ApplicationVersionStatusBuilding = "Building" +) + +const ( + // ComputeTypeBuildGeneral1Small is a ComputeType enum value + ComputeTypeBuildGeneral1Small = "BUILD_GENERAL1_SMALL" + + // ComputeTypeBuildGeneral1Medium is a ComputeType enum value + ComputeTypeBuildGeneral1Medium = "BUILD_GENERAL1_MEDIUM" + + // ComputeTypeBuildGeneral1Large is a ComputeType enum value + ComputeTypeBuildGeneral1Large = "BUILD_GENERAL1_LARGE" ) const ( @@ -6578,14 +10484,37 @@ const ( InstancesHealthAttributeAll = "All" ) +const ( + // PlatformStatusCreating is a PlatformStatus enum value + PlatformStatusCreating = "Creating" + + // PlatformStatusFailed is a PlatformStatus enum value + PlatformStatusFailed = "Failed" + + // PlatformStatusReady is a PlatformStatus enum value + PlatformStatusReady = "Ready" + + // PlatformStatusDeleting is a PlatformStatus enum value + PlatformStatusDeleting = "Deleting" + + // PlatformStatusDeleted is a PlatformStatus enum value + PlatformStatusDeleted = "Deleted" +) + const ( // SourceRepositoryCodeCommit is a SourceRepository enum value SourceRepositoryCodeCommit = "CodeCommit" + + // SourceRepositoryS3 is a SourceRepository enum value + SourceRepositoryS3 = "S3" ) const ( // SourceTypeGit is a SourceType enum value SourceTypeGit = "Git" + + // SourceTypeZip is a SourceType enum value + SourceTypeZip = "Zip" ) const ( diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/elasticbeanstalkiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/elasticbeanstalkiface/interface.go index 78a0e3ba0..7bcbb74fe 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/elasticbeanstalkiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/elasticbeanstalkiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockElasticBeanstalkClient{} // @@ -91,6 +91,10 @@ type ElasticBeanstalkAPI interface { CreateEnvironment(*elasticbeanstalk.CreateEnvironmentInput) (*elasticbeanstalk.EnvironmentDescription, error) + CreatePlatformVersionRequest(*elasticbeanstalk.CreatePlatformVersionInput) (*request.Request, *elasticbeanstalk.CreatePlatformVersionOutput) + + CreatePlatformVersion(*elasticbeanstalk.CreatePlatformVersionInput) (*elasticbeanstalk.CreatePlatformVersionOutput, error) + CreateStorageLocationRequest(*elasticbeanstalk.CreateStorageLocationInput) (*request.Request, *elasticbeanstalk.CreateStorageLocationOutput) CreateStorageLocation(*elasticbeanstalk.CreateStorageLocationInput) (*elasticbeanstalk.CreateStorageLocationOutput, error) @@ -111,6 +115,10 @@ type ElasticBeanstalkAPI interface { DeleteEnvironmentConfiguration(*elasticbeanstalk.DeleteEnvironmentConfigurationInput) (*elasticbeanstalk.DeleteEnvironmentConfigurationOutput, error) + DeletePlatformVersionRequest(*elasticbeanstalk.DeletePlatformVersionInput) (*request.Request, *elasticbeanstalk.DeletePlatformVersionOutput) + + DeletePlatformVersion(*elasticbeanstalk.DeletePlatformVersionInput) (*elasticbeanstalk.DeletePlatformVersionOutput, error) + DescribeApplicationVersionsRequest(*elasticbeanstalk.DescribeApplicationVersionsInput) (*request.Request, *elasticbeanstalk.DescribeApplicationVersionsOutput) DescribeApplicationVersions(*elasticbeanstalk.DescribeApplicationVersionsInput) (*elasticbeanstalk.DescribeApplicationVersionsOutput, error) @@ -157,10 +165,18 @@ type ElasticBeanstalkAPI interface { DescribeInstancesHealth(*elasticbeanstalk.DescribeInstancesHealthInput) (*elasticbeanstalk.DescribeInstancesHealthOutput, error) + DescribePlatformVersionRequest(*elasticbeanstalk.DescribePlatformVersionInput) (*request.Request, *elasticbeanstalk.DescribePlatformVersionOutput) + + DescribePlatformVersion(*elasticbeanstalk.DescribePlatformVersionInput) (*elasticbeanstalk.DescribePlatformVersionOutput, error) + ListAvailableSolutionStacksRequest(*elasticbeanstalk.ListAvailableSolutionStacksInput) (*request.Request, *elasticbeanstalk.ListAvailableSolutionStacksOutput) ListAvailableSolutionStacks(*elasticbeanstalk.ListAvailableSolutionStacksInput) (*elasticbeanstalk.ListAvailableSolutionStacksOutput, error) + ListPlatformVersionsRequest(*elasticbeanstalk.ListPlatformVersionsInput) (*request.Request, *elasticbeanstalk.ListPlatformVersionsOutput) + + ListPlatformVersions(*elasticbeanstalk.ListPlatformVersionsInput) (*elasticbeanstalk.ListPlatformVersionsOutput, error) + RebuildEnvironmentRequest(*elasticbeanstalk.RebuildEnvironmentInput) (*request.Request, *elasticbeanstalk.RebuildEnvironmentOutput) RebuildEnvironment(*elasticbeanstalk.RebuildEnvironmentInput) (*elasticbeanstalk.RebuildEnvironmentOutput, error) @@ -189,6 +205,10 @@ type ElasticBeanstalkAPI interface { UpdateApplication(*elasticbeanstalk.UpdateApplicationInput) (*elasticbeanstalk.ApplicationDescriptionMessage, error) + UpdateApplicationResourceLifecycleRequest(*elasticbeanstalk.UpdateApplicationResourceLifecycleInput) (*request.Request, *elasticbeanstalk.UpdateApplicationResourceLifecycleOutput) + + UpdateApplicationResourceLifecycle(*elasticbeanstalk.UpdateApplicationResourceLifecycleInput) (*elasticbeanstalk.UpdateApplicationResourceLifecycleOutput, error) + UpdateApplicationVersionRequest(*elasticbeanstalk.UpdateApplicationVersionInput) (*request.Request, *elasticbeanstalk.ApplicationVersionDescriptionMessage) UpdateApplicationVersion(*elasticbeanstalk.UpdateApplicationVersionInput) (*elasticbeanstalk.ApplicationVersionDescriptionMessage, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/errors.go b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/errors.go new file mode 100644 index 000000000..f185a055c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/errors.go @@ -0,0 +1,115 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package elasticbeanstalk + +const ( + + // ErrCodeCodeBuildNotInServiceRegionException for service response error code + // "CodeBuildNotInServiceRegionException". + // + // AWS CodeBuild is not available in the specified region. + ErrCodeCodeBuildNotInServiceRegionException = "CodeBuildNotInServiceRegionException" + + // ErrCodeInsufficientPrivilegesException for service response error code + // "InsufficientPrivilegesException". + // + // The specified account does not have sufficient privileges for one of more + // AWS services. + ErrCodeInsufficientPrivilegesException = "InsufficientPrivilegesException" + + // ErrCodeInvalidRequestException for service response error code + // "InvalidRequestException". + // + // One or more input parameters is not valid. Please correct the input parameters + // and try the operation again. + ErrCodeInvalidRequestException = "InvalidRequestException" + + // ErrCodeManagedActionInvalidStateException for service response error code + // "ManagedActionInvalidStateException". + // + // Cannot modify the managed action in its current state. + ErrCodeManagedActionInvalidStateException = "ManagedActionInvalidStateException" + + // ErrCodeOperationInProgressException for service response error code + // "OperationInProgressFailure". + // + // Unable to perform the specified operation because another operation that + // effects an element in this activity is already in progress. + ErrCodeOperationInProgressException = "OperationInProgressFailure" + + // ErrCodePlatformVersionStillReferencedException for service response error code + // "PlatformVersionStillReferencedException". + // + // You cannot delete the platform version because there are still environments + // running on it. + ErrCodePlatformVersionStillReferencedException = "PlatformVersionStillReferencedException" + + // ErrCodeS3LocationNotInServiceRegionException for service response error code + // "S3LocationNotInServiceRegionException". + // + // The specified S3 bucket does not belong to the S3 region in which the service + // is running. The following regions are supported: + // + // * IAD/us-east-1 + // + // * PDX/us-west-2 + // + // * DUB/eu-west-1 + ErrCodeS3LocationNotInServiceRegionException = "S3LocationNotInServiceRegionException" + + // ErrCodeS3SubscriptionRequiredException for service response error code + // "S3SubscriptionRequiredException". + // + // The specified account does not have a subscription to Amazon S3. + ErrCodeS3SubscriptionRequiredException = "S3SubscriptionRequiredException" + + // ErrCodeServiceException for service response error code + // "ServiceException". + // + // A generic service exception has occurred. + ErrCodeServiceException = "ServiceException" + + // ErrCodeSourceBundleDeletionException for service response error code + // "SourceBundleDeletionFailure". + // + // Unable to delete the Amazon S3 source bundle associated with the application + // version. The application version was deleted successfully. + ErrCodeSourceBundleDeletionException = "SourceBundleDeletionFailure" + + // ErrCodeTooManyApplicationVersionsException for service response error code + // "TooManyApplicationVersionsException". + // + // The specified account has reached its limit of application versions. + ErrCodeTooManyApplicationVersionsException = "TooManyApplicationVersionsException" + + // ErrCodeTooManyApplicationsException for service response error code + // "TooManyApplicationsException". + // + // The specified account has reached its limit of applications. + ErrCodeTooManyApplicationsException = "TooManyApplicationsException" + + // ErrCodeTooManyBucketsException for service response error code + // "TooManyBucketsException". + // + // The specified account has reached its limit of Amazon S3 buckets. + ErrCodeTooManyBucketsException = "TooManyBucketsException" + + // ErrCodeTooManyConfigurationTemplatesException for service response error code + // "TooManyConfigurationTemplatesException". + // + // The specified account has reached its limit of configuration templates. + ErrCodeTooManyConfigurationTemplatesException = "TooManyConfigurationTemplatesException" + + // ErrCodeTooManyEnvironmentsException for service response error code + // "TooManyEnvironmentsException". + // + // The specified account has reached its limit of environments. + ErrCodeTooManyEnvironmentsException = "TooManyEnvironmentsException" + + // ErrCodeTooManyPlatformsException for service response error code + // "TooManyPlatformsException". + // + // You have exceeded the maximum number of allowed platforms associated with + // the account. + ErrCodeTooManyPlatformsException = "TooManyPlatformsException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/examples_test.go index 665939867..9c9dbdefb 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleElasticBeanstalk_AbortEnvironmentUpdate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -42,11 +38,7 @@ func ExampleElasticBeanstalk_AbortEnvironmentUpdate() { } func ExampleElasticBeanstalk_ApplyEnvironmentManagedAction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -69,11 +61,7 @@ func ExampleElasticBeanstalk_ApplyEnvironmentManagedAction() { } func ExampleElasticBeanstalk_CheckDNSAvailability() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -94,11 +82,7 @@ func ExampleElasticBeanstalk_CheckDNSAvailability() { } func ExampleElasticBeanstalk_ComposeEnvironments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -124,17 +108,28 @@ func ExampleElasticBeanstalk_ComposeEnvironments() { } func ExampleElasticBeanstalk_CreateApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) params := &elasticbeanstalk.CreateApplicationInput{ ApplicationName: aws.String("ApplicationName"), // Required Description: aws.String("Description"), + ResourceLifecycleConfig: &elasticbeanstalk.ApplicationResourceLifecycleConfig{ + ServiceRole: aws.String("String"), + VersionLifecycleConfig: &elasticbeanstalk.ApplicationVersionLifecycleConfig{ + MaxAgeRule: &elasticbeanstalk.MaxAgeRule{ + Enabled: aws.Bool(true), // Required + DeleteSourceFromS3: aws.Bool(true), + MaxAgeInDays: aws.Int64(1), + }, + MaxCountRule: &elasticbeanstalk.MaxCountRule{ + Enabled: aws.Bool(true), // Required + DeleteSourceFromS3: aws.Bool(true), + MaxCount: aws.Int64(1), + }, + }, + }, } resp, err := svc.CreateApplication(params) @@ -150,11 +145,7 @@ func ExampleElasticBeanstalk_CreateApplication() { } func ExampleElasticBeanstalk_CreateApplicationVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -162,8 +153,15 @@ func ExampleElasticBeanstalk_CreateApplicationVersion() { ApplicationName: aws.String("ApplicationName"), // Required VersionLabel: aws.String("VersionLabel"), // Required AutoCreateApplication: aws.Bool(true), - Description: aws.String("Description"), - Process: aws.Bool(true), + BuildConfiguration: &elasticbeanstalk.BuildConfiguration{ + CodeBuildServiceRole: aws.String("NonEmptyString"), // Required + Image: aws.String("NonEmptyString"), // Required + ArtifactName: aws.String("String"), + ComputeType: aws.String("ComputeType"), + TimeoutInMinutes: aws.Int64(1), + }, + Description: aws.String("Description"), + Process: aws.Bool(true), SourceBuildInformation: &elasticbeanstalk.SourceBuildInformation{ SourceLocation: aws.String("SourceLocation"), // Required SourceRepository: aws.String("SourceRepository"), // Required @@ -188,11 +186,7 @@ func ExampleElasticBeanstalk_CreateApplicationVersion() { } func ExampleElasticBeanstalk_CreateConfigurationTemplate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -210,6 +204,7 @@ func ExampleElasticBeanstalk_CreateConfigurationTemplate() { }, // More values... }, + PlatformArn: aws.String("PlatformArn"), SolutionStackName: aws.String("SolutionStackName"), SourceConfiguration: &elasticbeanstalk.SourceConfiguration{ ApplicationName: aws.String("ApplicationName"), @@ -230,11 +225,7 @@ func ExampleElasticBeanstalk_CreateConfigurationTemplate() { } func ExampleElasticBeanstalk_CreateEnvironment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -261,6 +252,7 @@ func ExampleElasticBeanstalk_CreateEnvironment() { }, // More values... }, + PlatformArn: aws.String("PlatformArn"), SolutionStackName: aws.String("SolutionStackName"), Tags: []*elasticbeanstalk.Tag{ { // Required @@ -290,13 +282,45 @@ func ExampleElasticBeanstalk_CreateEnvironment() { fmt.Println(resp) } -func ExampleElasticBeanstalk_CreateStorageLocation() { - sess, err := session.NewSession() +func ExampleElasticBeanstalk_CreatePlatformVersion() { + sess := session.Must(session.NewSession()) + + svc := elasticbeanstalk.New(sess) + + params := &elasticbeanstalk.CreatePlatformVersionInput{ + PlatformDefinitionBundle: &elasticbeanstalk.S3Location{ // Required + S3Bucket: aws.String("S3Bucket"), + S3Key: aws.String("S3Key"), + }, + PlatformName: aws.String("PlatformName"), // Required + PlatformVersion: aws.String("PlatformVersion"), // Required + EnvironmentName: aws.String("EnvironmentName"), + OptionSettings: []*elasticbeanstalk.ConfigurationOptionSetting{ + { // Required + Namespace: aws.String("OptionNamespace"), + OptionName: aws.String("ConfigurationOptionName"), + ResourceName: aws.String("ResourceName"), + Value: aws.String("ConfigurationOptionValue"), + }, + // More values... + }, + } + resp, err := svc.CreatePlatformVersion(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleElasticBeanstalk_CreateStorageLocation() { + sess := session.Must(session.NewSession()) + svc := elasticbeanstalk.New(sess) var params *elasticbeanstalk.CreateStorageLocationInput @@ -314,11 +338,7 @@ func ExampleElasticBeanstalk_CreateStorageLocation() { } func ExampleElasticBeanstalk_DeleteApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -340,11 +360,7 @@ func ExampleElasticBeanstalk_DeleteApplication() { } func ExampleElasticBeanstalk_DeleteApplicationVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -367,11 +383,7 @@ func ExampleElasticBeanstalk_DeleteApplicationVersion() { } func ExampleElasticBeanstalk_DeleteConfigurationTemplate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -393,11 +405,7 @@ func ExampleElasticBeanstalk_DeleteConfigurationTemplate() { } func ExampleElasticBeanstalk_DeleteEnvironmentConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -418,13 +426,30 @@ func ExampleElasticBeanstalk_DeleteEnvironmentConfiguration() { fmt.Println(resp) } -func ExampleElasticBeanstalk_DescribeApplicationVersions() { - sess, err := session.NewSession() +func ExampleElasticBeanstalk_DeletePlatformVersion() { + sess := session.Must(session.NewSession()) + + svc := elasticbeanstalk.New(sess) + + params := &elasticbeanstalk.DeletePlatformVersionInput{ + PlatformArn: aws.String("PlatformArn"), + } + resp, err := svc.DeletePlatformVersion(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleElasticBeanstalk_DescribeApplicationVersions() { + sess := session.Must(session.NewSession()) + svc := elasticbeanstalk.New(sess) params := &elasticbeanstalk.DescribeApplicationVersionsInput{ @@ -450,11 +475,7 @@ func ExampleElasticBeanstalk_DescribeApplicationVersions() { } func ExampleElasticBeanstalk_DescribeApplications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -478,11 +499,7 @@ func ExampleElasticBeanstalk_DescribeApplications() { } func ExampleElasticBeanstalk_DescribeConfigurationOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -497,6 +514,7 @@ func ExampleElasticBeanstalk_DescribeConfigurationOptions() { }, // More values... }, + PlatformArn: aws.String("PlatformArn"), SolutionStackName: aws.String("SolutionStackName"), TemplateName: aws.String("ConfigurationTemplateName"), } @@ -514,11 +532,7 @@ func ExampleElasticBeanstalk_DescribeConfigurationOptions() { } func ExampleElasticBeanstalk_DescribeConfigurationSettings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -541,11 +555,7 @@ func ExampleElasticBeanstalk_DescribeConfigurationSettings() { } func ExampleElasticBeanstalk_DescribeEnvironmentHealth() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -571,11 +581,7 @@ func ExampleElasticBeanstalk_DescribeEnvironmentHealth() { } func ExampleElasticBeanstalk_DescribeEnvironmentManagedActionHistory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -599,11 +605,7 @@ func ExampleElasticBeanstalk_DescribeEnvironmentManagedActionHistory() { } func ExampleElasticBeanstalk_DescribeEnvironmentManagedActions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -626,11 +628,7 @@ func ExampleElasticBeanstalk_DescribeEnvironmentManagedActions() { } func ExampleElasticBeanstalk_DescribeEnvironmentResources() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -652,11 +650,7 @@ func ExampleElasticBeanstalk_DescribeEnvironmentResources() { } func ExampleElasticBeanstalk_DescribeEnvironments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -688,11 +682,7 @@ func ExampleElasticBeanstalk_DescribeEnvironments() { } func ExampleElasticBeanstalk_DescribeEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -703,6 +693,7 @@ func ExampleElasticBeanstalk_DescribeEvents() { EnvironmentName: aws.String("EnvironmentName"), MaxRecords: aws.Int64(1), NextToken: aws.String("Token"), + PlatformArn: aws.String("PlatformArn"), RequestId: aws.String("RequestId"), Severity: aws.String("EventSeverity"), StartTime: aws.Time(time.Now()), @@ -723,11 +714,7 @@ func ExampleElasticBeanstalk_DescribeEvents() { } func ExampleElasticBeanstalk_DescribeInstancesHealth() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -753,13 +740,30 @@ func ExampleElasticBeanstalk_DescribeInstancesHealth() { fmt.Println(resp) } -func ExampleElasticBeanstalk_ListAvailableSolutionStacks() { - sess, err := session.NewSession() +func ExampleElasticBeanstalk_DescribePlatformVersion() { + sess := session.Must(session.NewSession()) + + svc := elasticbeanstalk.New(sess) + + params := &elasticbeanstalk.DescribePlatformVersionInput{ + PlatformArn: aws.String("PlatformArn"), + } + resp, err := svc.DescribePlatformVersion(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleElasticBeanstalk_ListAvailableSolutionStacks() { + sess := session.Must(session.NewSession()) + svc := elasticbeanstalk.New(sess) var params *elasticbeanstalk.ListAvailableSolutionStacksInput @@ -776,13 +780,42 @@ func ExampleElasticBeanstalk_ListAvailableSolutionStacks() { fmt.Println(resp) } -func ExampleElasticBeanstalk_RebuildEnvironment() { - sess, err := session.NewSession() +func ExampleElasticBeanstalk_ListPlatformVersions() { + sess := session.Must(session.NewSession()) + + svc := elasticbeanstalk.New(sess) + + params := &elasticbeanstalk.ListPlatformVersionsInput{ + Filters: []*elasticbeanstalk.PlatformFilter{ + { // Required + Operator: aws.String("PlatformFilterOperator"), + Type: aws.String("PlatformFilterType"), + Values: []*string{ + aws.String("PlatformFilterValue"), // Required + // More values... + }, + }, + // More values... + }, + MaxRecords: aws.Int64(1), + NextToken: aws.String("Token"), + } + resp, err := svc.ListPlatformVersions(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleElasticBeanstalk_RebuildEnvironment() { + sess := session.Must(session.NewSession()) + svc := elasticbeanstalk.New(sess) params := &elasticbeanstalk.RebuildEnvironmentInput{ @@ -803,11 +836,7 @@ func ExampleElasticBeanstalk_RebuildEnvironment() { } func ExampleElasticBeanstalk_RequestEnvironmentInfo() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -830,11 +859,7 @@ func ExampleElasticBeanstalk_RequestEnvironmentInfo() { } func ExampleElasticBeanstalk_RestartAppServer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -856,11 +881,7 @@ func ExampleElasticBeanstalk_RestartAppServer() { } func ExampleElasticBeanstalk_RetrieveEnvironmentInfo() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -883,11 +904,7 @@ func ExampleElasticBeanstalk_RetrieveEnvironmentInfo() { } func ExampleElasticBeanstalk_SwapEnvironmentCNAMEs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -911,11 +928,7 @@ func ExampleElasticBeanstalk_SwapEnvironmentCNAMEs() { } func ExampleElasticBeanstalk_TerminateEnvironment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -939,11 +952,7 @@ func ExampleElasticBeanstalk_TerminateEnvironment() { } func ExampleElasticBeanstalk_UpdateApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -964,13 +973,45 @@ func ExampleElasticBeanstalk_UpdateApplication() { fmt.Println(resp) } -func ExampleElasticBeanstalk_UpdateApplicationVersion() { - sess, err := session.NewSession() +func ExampleElasticBeanstalk_UpdateApplicationResourceLifecycle() { + sess := session.Must(session.NewSession()) + + svc := elasticbeanstalk.New(sess) + + params := &elasticbeanstalk.UpdateApplicationResourceLifecycleInput{ + ApplicationName: aws.String("ApplicationName"), // Required + ResourceLifecycleConfig: &elasticbeanstalk.ApplicationResourceLifecycleConfig{ // Required + ServiceRole: aws.String("String"), + VersionLifecycleConfig: &elasticbeanstalk.ApplicationVersionLifecycleConfig{ + MaxAgeRule: &elasticbeanstalk.MaxAgeRule{ + Enabled: aws.Bool(true), // Required + DeleteSourceFromS3: aws.Bool(true), + MaxAgeInDays: aws.Int64(1), + }, + MaxCountRule: &elasticbeanstalk.MaxCountRule{ + Enabled: aws.Bool(true), // Required + DeleteSourceFromS3: aws.Bool(true), + MaxCount: aws.Int64(1), + }, + }, + }, + } + resp, err := svc.UpdateApplicationResourceLifecycle(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleElasticBeanstalk_UpdateApplicationVersion() { + sess := session.Must(session.NewSession()) + svc := elasticbeanstalk.New(sess) params := &elasticbeanstalk.UpdateApplicationVersionInput{ @@ -992,11 +1033,7 @@ func ExampleElasticBeanstalk_UpdateApplicationVersion() { } func ExampleElasticBeanstalk_UpdateConfigurationTemplate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -1036,11 +1073,7 @@ func ExampleElasticBeanstalk_UpdateConfigurationTemplate() { } func ExampleElasticBeanstalk_UpdateEnvironment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) @@ -1067,6 +1100,7 @@ func ExampleElasticBeanstalk_UpdateEnvironment() { }, // More values... }, + PlatformArn: aws.String("PlatformArn"), SolutionStackName: aws.String("SolutionStackName"), TemplateName: aws.String("ConfigurationTemplateName"), Tier: &elasticbeanstalk.EnvironmentTier{ @@ -1090,11 +1124,7 @@ func ExampleElasticBeanstalk_UpdateEnvironment() { } func ExampleElasticBeanstalk_ValidateConfigurationSettings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticbeanstalk.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/service.go b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/service.go index cbbf08e65..2134341fb 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/service.go @@ -23,13 +23,14 @@ import ( // (IDE) Toolkits, and command line tools that enable you to access the API, // go to Tools for Amazon Web Services (http://aws.amazon.com/tools/). // -// Endpoints +// Endpoints // // For a list of region-specific endpoints that AWS Elastic Beanstalk supports, // go to Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticbeanstalk_region) // in the Amazon Web Services Glossary. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01 type ElasticBeanstalk struct { *client.Client } @@ -40,8 +41,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "elasticbeanstalk" +// Service information constants +const ( + ServiceName = "elasticbeanstalk" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the ElasticBeanstalk client with a session. // If additional configuration is needed for the client instance use the optional @@ -54,17 +58,18 @@ const ServiceName = "elasticbeanstalk" // // Create a ElasticBeanstalk client with additional configuration // svc := elasticbeanstalk.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ElasticBeanstalk { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ElasticBeanstalk { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *ElasticBeanstalk { svc := &ElasticBeanstalk{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2010-12-01", diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go index 665553687..64f26f650 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go @@ -39,6 +39,7 @@ const opAddTags = "AddTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/AddTags func (c *ElasticsearchService) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) { op := &request.Operation{ Name: opAddTags, @@ -50,11 +51,10 @@ func (c *ElasticsearchService) AddTagsRequest(input *AddTagsInput) (req *request input = &AddTagsInput{} } + output = &AddTagsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AddTagsOutput{} - req.Data = output return } @@ -62,8 +62,7 @@ func (c *ElasticsearchService) AddTagsRequest(input *AddTagsInput) (req *request // // Attaches tags to an existing Elasticsearch domain. Tags are a set of case-sensitive // key value pairs. An Elasticsearch domain may have up to 10 tags. See Tagging -// Amazon Elasticsearch Service Domains for more information. (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html#es-managedomains-awsresorcetagging" -// target="_blank) +// Amazon Elasticsearch Service Domains for more information. (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html#es-managedomains-awsresorcetagging) // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -73,22 +72,23 @@ func (c *ElasticsearchService) AddTagsRequest(input *AddTagsInput) (req *request // API operation AddTags for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // An exception for trying to create more than allowed resources or sub-resources. // Gives http status code of 409. // -// * ValidationException +// * ErrCodeValidationException "ValidationException" // An exception for missing / invalid input fields. Gives http status code of // 400. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/AddTags func (c *ElasticsearchService) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) err := req.Send() @@ -121,6 +121,7 @@ const opCreateElasticsearchDomain = "CreateElasticsearchDomain" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/CreateElasticsearchDomain func (c *ElasticsearchService) CreateElasticsearchDomainRequest(input *CreateElasticsearchDomainInput) (req *request.Request, output *CreateElasticsearchDomainOutput) { op := &request.Operation{ Name: opCreateElasticsearchDomain, @@ -132,17 +133,16 @@ func (c *ElasticsearchService) CreateElasticsearchDomainRequest(input *CreateEla input = &CreateElasticsearchDomainInput{} } - req = c.newRequest(op, input, output) output = &CreateElasticsearchDomainOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // CreateElasticsearchDomain API operation for Amazon Elasticsearch Service. // // Creates a new Elasticsearch domain. For more information, see Creating Elasticsearch -// Domains (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomains" -// target="_blank) in the Amazon Elasticsearch Service Developer Guide. +// Domains (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomains) +// in the Amazon Elasticsearch Service Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -152,34 +152,35 @@ func (c *ElasticsearchService) CreateElasticsearchDomainRequest(input *CreateEla // API operation CreateElasticsearchDomain for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * DisabledOperationException +// * ErrCodeDisabledOperationException "DisabledOperationException" // An error occured because the client wanted to access a not supported operation. // Gives http status code of 409. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // -// * InvalidTypeException +// * ErrCodeInvalidTypeException "InvalidTypeException" // An exception for trying to create or access sub-resource that is either invalid // or not supported. Gives http status code of 409. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // An exception for trying to create more than allowed resources or sub-resources. // Gives http status code of 409. // -// * ResourceAlreadyExistsException +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" // An exception for creating a resource that already exists. Gives http status // code of 400. // -// * ValidationException +// * ErrCodeValidationException "ValidationException" // An exception for missing / invalid input fields. Gives http status code of // 400. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/CreateElasticsearchDomain func (c *ElasticsearchService) CreateElasticsearchDomain(input *CreateElasticsearchDomainInput) (*CreateElasticsearchDomainOutput, error) { req, out := c.CreateElasticsearchDomainRequest(input) err := req.Send() @@ -212,6 +213,7 @@ const opDeleteElasticsearchDomain = "DeleteElasticsearchDomain" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DeleteElasticsearchDomain func (c *ElasticsearchService) DeleteElasticsearchDomainRequest(input *DeleteElasticsearchDomainInput) (req *request.Request, output *DeleteElasticsearchDomainOutput) { op := &request.Operation{ Name: opDeleteElasticsearchDomain, @@ -223,9 +225,8 @@ func (c *ElasticsearchService) DeleteElasticsearchDomainRequest(input *DeleteEla input = &DeleteElasticsearchDomainInput{} } - req = c.newRequest(op, input, output) output = &DeleteElasticsearchDomainOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -242,22 +243,23 @@ func (c *ElasticsearchService) DeleteElasticsearchDomainRequest(input *DeleteEla // API operation DeleteElasticsearchDomain for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ValidationException +// * ErrCodeValidationException "ValidationException" // An exception for missing / invalid input fields. Gives http status code of // 400. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DeleteElasticsearchDomain func (c *ElasticsearchService) DeleteElasticsearchDomain(input *DeleteElasticsearchDomainInput) (*DeleteElasticsearchDomainOutput, error) { req, out := c.DeleteElasticsearchDomainRequest(input) err := req.Send() @@ -290,6 +292,7 @@ const opDescribeElasticsearchDomain = "DescribeElasticsearchDomain" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchDomain func (c *ElasticsearchService) DescribeElasticsearchDomainRequest(input *DescribeElasticsearchDomainInput) (req *request.Request, output *DescribeElasticsearchDomainOutput) { op := &request.Operation{ Name: opDescribeElasticsearchDomain, @@ -301,9 +304,8 @@ func (c *ElasticsearchService) DescribeElasticsearchDomainRequest(input *Describ input = &DescribeElasticsearchDomainInput{} } - req = c.newRequest(op, input, output) output = &DescribeElasticsearchDomainOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -320,22 +322,23 @@ func (c *ElasticsearchService) DescribeElasticsearchDomainRequest(input *Describ // API operation DescribeElasticsearchDomain for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ValidationException +// * ErrCodeValidationException "ValidationException" // An exception for missing / invalid input fields. Gives http status code of // 400. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchDomain func (c *ElasticsearchService) DescribeElasticsearchDomain(input *DescribeElasticsearchDomainInput) (*DescribeElasticsearchDomainOutput, error) { req, out := c.DescribeElasticsearchDomainRequest(input) err := req.Send() @@ -368,6 +371,7 @@ const opDescribeElasticsearchDomainConfig = "DescribeElasticsearchDomainConfig" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchDomainConfig func (c *ElasticsearchService) DescribeElasticsearchDomainConfigRequest(input *DescribeElasticsearchDomainConfigInput) (req *request.Request, output *DescribeElasticsearchDomainConfigOutput) { op := &request.Operation{ Name: opDescribeElasticsearchDomainConfig, @@ -379,9 +383,8 @@ func (c *ElasticsearchService) DescribeElasticsearchDomainConfigRequest(input *D input = &DescribeElasticsearchDomainConfigInput{} } - req = c.newRequest(op, input, output) output = &DescribeElasticsearchDomainConfigOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -399,22 +402,23 @@ func (c *ElasticsearchService) DescribeElasticsearchDomainConfigRequest(input *D // API operation DescribeElasticsearchDomainConfig for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ValidationException +// * ErrCodeValidationException "ValidationException" // An exception for missing / invalid input fields. Gives http status code of // 400. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchDomainConfig func (c *ElasticsearchService) DescribeElasticsearchDomainConfig(input *DescribeElasticsearchDomainConfigInput) (*DescribeElasticsearchDomainConfigOutput, error) { req, out := c.DescribeElasticsearchDomainConfigRequest(input) err := req.Send() @@ -447,6 +451,7 @@ const opDescribeElasticsearchDomains = "DescribeElasticsearchDomains" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchDomains func (c *ElasticsearchService) DescribeElasticsearchDomainsRequest(input *DescribeElasticsearchDomainsInput) (req *request.Request, output *DescribeElasticsearchDomainsOutput) { op := &request.Operation{ Name: opDescribeElasticsearchDomains, @@ -458,9 +463,8 @@ func (c *ElasticsearchService) DescribeElasticsearchDomainsRequest(input *Descri input = &DescribeElasticsearchDomainsInput{} } - req = c.newRequest(op, input, output) output = &DescribeElasticsearchDomainsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -477,24 +481,113 @@ func (c *ElasticsearchService) DescribeElasticsearchDomainsRequest(input *Descri // API operation DescribeElasticsearchDomains for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // -// * ValidationException +// * ErrCodeValidationException "ValidationException" // An exception for missing / invalid input fields. Gives http status code of // 400. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchDomains func (c *ElasticsearchService) DescribeElasticsearchDomains(input *DescribeElasticsearchDomainsInput) (*DescribeElasticsearchDomainsOutput, error) { req, out := c.DescribeElasticsearchDomainsRequest(input) err := req.Send() return out, err } +const opDescribeElasticsearchInstanceTypeLimits = "DescribeElasticsearchInstanceTypeLimits" + +// DescribeElasticsearchInstanceTypeLimitsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeElasticsearchInstanceTypeLimits operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeElasticsearchInstanceTypeLimits for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeElasticsearchInstanceTypeLimits method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeElasticsearchInstanceTypeLimitsRequest method. +// req, resp := client.DescribeElasticsearchInstanceTypeLimitsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchInstanceTypeLimits +func (c *ElasticsearchService) DescribeElasticsearchInstanceTypeLimitsRequest(input *DescribeElasticsearchInstanceTypeLimitsInput) (req *request.Request, output *DescribeElasticsearchInstanceTypeLimitsOutput) { + op := &request.Operation{ + Name: opDescribeElasticsearchInstanceTypeLimits, + HTTPMethod: "GET", + HTTPPath: "/2015-01-01/es/instanceTypeLimits/{ElasticsearchVersion}/{InstanceType}", + } + + if input == nil { + input = &DescribeElasticsearchInstanceTypeLimitsInput{} + } + + output = &DescribeElasticsearchInstanceTypeLimitsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeElasticsearchInstanceTypeLimits API operation for Amazon Elasticsearch Service. +// +// Describe Elasticsearch Limits for a given InstanceType and ElasticsearchVersion. +// When modifying existing Domain, specify the DomainName to know what Limits +// are supported for modifying. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation DescribeElasticsearchInstanceTypeLimits for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBaseException "BaseException" +// An error occurred while processing the request. +// +// * ErrCodeInternalException "InternalException" +// The request processing has failed because of an unknown error, exception +// or failure (the failure is internal to the service) . Gives http status code +// of 500. +// +// * ErrCodeInvalidTypeException "InvalidTypeException" +// An exception for trying to create or access sub-resource that is either invalid +// or not supported. Gives http status code of 409. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// An exception for trying to create more than allowed resources or sub-resources. +// Gives http status code of 409. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// An exception for accessing or deleting a resource that does not exist. Gives +// http status code of 400. +// +// * ErrCodeValidationException "ValidationException" +// An exception for missing / invalid input fields. Gives http status code of +// 400. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchInstanceTypeLimits +func (c *ElasticsearchService) DescribeElasticsearchInstanceTypeLimits(input *DescribeElasticsearchInstanceTypeLimitsInput) (*DescribeElasticsearchInstanceTypeLimitsOutput, error) { + req, out := c.DescribeElasticsearchInstanceTypeLimitsRequest(input) + err := req.Send() + return out, err +} + const opListDomainNames = "ListDomainNames" // ListDomainNamesRequest generates a "aws/request.Request" representing the @@ -521,6 +614,7 @@ const opListDomainNames = "ListDomainNames" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListDomainNames func (c *ElasticsearchService) ListDomainNamesRequest(input *ListDomainNamesInput) (req *request.Request, output *ListDomainNamesOutput) { op := &request.Operation{ Name: opListDomainNames, @@ -532,9 +626,8 @@ func (c *ElasticsearchService) ListDomainNamesRequest(input *ListDomainNamesInpu input = &ListDomainNamesInput{} } - req = c.newRequest(op, input, output) output = &ListDomainNamesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -551,19 +644,238 @@ func (c *ElasticsearchService) ListDomainNamesRequest(input *ListDomainNamesInpu // API operation ListDomainNames for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * ValidationException +// * ErrCodeValidationException "ValidationException" // An exception for missing / invalid input fields. Gives http status code of // 400. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListDomainNames func (c *ElasticsearchService) ListDomainNames(input *ListDomainNamesInput) (*ListDomainNamesOutput, error) { req, out := c.ListDomainNamesRequest(input) err := req.Send() return out, err } +const opListElasticsearchInstanceTypes = "ListElasticsearchInstanceTypes" + +// ListElasticsearchInstanceTypesRequest generates a "aws/request.Request" representing the +// client's request for the ListElasticsearchInstanceTypes operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListElasticsearchInstanceTypes for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListElasticsearchInstanceTypes method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListElasticsearchInstanceTypesRequest method. +// req, resp := client.ListElasticsearchInstanceTypesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListElasticsearchInstanceTypes +func (c *ElasticsearchService) ListElasticsearchInstanceTypesRequest(input *ListElasticsearchInstanceTypesInput) (req *request.Request, output *ListElasticsearchInstanceTypesOutput) { + op := &request.Operation{ + Name: opListElasticsearchInstanceTypes, + HTTPMethod: "GET", + HTTPPath: "/2015-01-01/es/instanceTypes/{ElasticsearchVersion}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListElasticsearchInstanceTypesInput{} + } + + output = &ListElasticsearchInstanceTypesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListElasticsearchInstanceTypes API operation for Amazon Elasticsearch Service. +// +// List all Elasticsearch instance types that are supported for given ElasticsearchVersion +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation ListElasticsearchInstanceTypes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBaseException "BaseException" +// An error occurred while processing the request. +// +// * ErrCodeInternalException "InternalException" +// The request processing has failed because of an unknown error, exception +// or failure (the failure is internal to the service) . Gives http status code +// of 500. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// An exception for accessing or deleting a resource that does not exist. Gives +// http status code of 400. +// +// * ErrCodeValidationException "ValidationException" +// An exception for missing / invalid input fields. Gives http status code of +// 400. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListElasticsearchInstanceTypes +func (c *ElasticsearchService) ListElasticsearchInstanceTypes(input *ListElasticsearchInstanceTypesInput) (*ListElasticsearchInstanceTypesOutput, error) { + req, out := c.ListElasticsearchInstanceTypesRequest(input) + err := req.Send() + return out, err +} + +// ListElasticsearchInstanceTypesPages iterates over the pages of a ListElasticsearchInstanceTypes operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListElasticsearchInstanceTypes method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListElasticsearchInstanceTypes operation. +// pageNum := 0 +// err := client.ListElasticsearchInstanceTypesPages(params, +// func(page *ListElasticsearchInstanceTypesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *ElasticsearchService) ListElasticsearchInstanceTypesPages(input *ListElasticsearchInstanceTypesInput, fn func(p *ListElasticsearchInstanceTypesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListElasticsearchInstanceTypesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListElasticsearchInstanceTypesOutput), lastPage) + }) +} + +const opListElasticsearchVersions = "ListElasticsearchVersions" + +// ListElasticsearchVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListElasticsearchVersions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListElasticsearchVersions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListElasticsearchVersions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListElasticsearchVersionsRequest method. +// req, resp := client.ListElasticsearchVersionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListElasticsearchVersions +func (c *ElasticsearchService) ListElasticsearchVersionsRequest(input *ListElasticsearchVersionsInput) (req *request.Request, output *ListElasticsearchVersionsOutput) { + op := &request.Operation{ + Name: opListElasticsearchVersions, + HTTPMethod: "GET", + HTTPPath: "/2015-01-01/es/versions", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListElasticsearchVersionsInput{} + } + + output = &ListElasticsearchVersionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListElasticsearchVersions API operation for Amazon Elasticsearch Service. +// +// List all supported Elasticsearch versions +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation ListElasticsearchVersions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBaseException "BaseException" +// An error occurred while processing the request. +// +// * ErrCodeInternalException "InternalException" +// The request processing has failed because of an unknown error, exception +// or failure (the failure is internal to the service) . Gives http status code +// of 500. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// An exception for accessing or deleting a resource that does not exist. Gives +// http status code of 400. +// +// * ErrCodeValidationException "ValidationException" +// An exception for missing / invalid input fields. Gives http status code of +// 400. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListElasticsearchVersions +func (c *ElasticsearchService) ListElasticsearchVersions(input *ListElasticsearchVersionsInput) (*ListElasticsearchVersionsOutput, error) { + req, out := c.ListElasticsearchVersionsRequest(input) + err := req.Send() + return out, err +} + +// ListElasticsearchVersionsPages iterates over the pages of a ListElasticsearchVersions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListElasticsearchVersions method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListElasticsearchVersions operation. +// pageNum := 0 +// err := client.ListElasticsearchVersionsPages(params, +// func(page *ListElasticsearchVersionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *ElasticsearchService) ListElasticsearchVersionsPages(input *ListElasticsearchVersionsInput, fn func(p *ListElasticsearchVersionsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListElasticsearchVersionsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListElasticsearchVersionsOutput), lastPage) + }) +} + const opListTags = "ListTags" // ListTagsRequest generates a "aws/request.Request" representing the @@ -590,6 +902,7 @@ const opListTags = "ListTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListTags func (c *ElasticsearchService) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) { op := &request.Operation{ Name: opListTags, @@ -601,9 +914,8 @@ func (c *ElasticsearchService) ListTagsRequest(input *ListTagsInput) (req *reque input = &ListTagsInput{} } - req = c.newRequest(op, input, output) output = &ListTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -619,22 +931,23 @@ func (c *ElasticsearchService) ListTagsRequest(input *ListTagsInput) (req *reque // API operation ListTags for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ValidationException +// * ErrCodeValidationException "ValidationException" // An exception for missing / invalid input fields. Gives http status code of // 400. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListTags func (c *ElasticsearchService) ListTags(input *ListTagsInput) (*ListTagsOutput, error) { req, out := c.ListTagsRequest(input) err := req.Send() @@ -667,6 +980,7 @@ const opRemoveTags = "RemoveTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/RemoveTags func (c *ElasticsearchService) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) { op := &request.Operation{ Name: opRemoveTags, @@ -678,11 +992,10 @@ func (c *ElasticsearchService) RemoveTagsRequest(input *RemoveTagsInput) (req *r input = &RemoveTagsInput{} } + output = &RemoveTagsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RemoveTagsOutput{} - req.Data = output return } @@ -698,18 +1011,19 @@ func (c *ElasticsearchService) RemoveTagsRequest(input *RemoveTagsInput) (req *r // API operation RemoveTags for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * ValidationException +// * ErrCodeValidationException "ValidationException" // An exception for missing / invalid input fields. Gives http status code of // 400. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/RemoveTags func (c *ElasticsearchService) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { req, out := c.RemoveTagsRequest(input) err := req.Send() @@ -742,6 +1056,7 @@ const opUpdateElasticsearchDomainConfig = "UpdateElasticsearchDomainConfig" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/UpdateElasticsearchDomainConfig func (c *ElasticsearchService) UpdateElasticsearchDomainConfigRequest(input *UpdateElasticsearchDomainConfigInput) (req *request.Request, output *UpdateElasticsearchDomainConfigOutput) { op := &request.Operation{ Name: opUpdateElasticsearchDomainConfig, @@ -753,9 +1068,8 @@ func (c *ElasticsearchService) UpdateElasticsearchDomainConfigRequest(input *Upd input = &UpdateElasticsearchDomainConfigInput{} } - req = c.newRequest(op, input, output) output = &UpdateElasticsearchDomainConfigOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -772,30 +1086,31 @@ func (c *ElasticsearchService) UpdateElasticsearchDomainConfigRequest(input *Upd // API operation UpdateElasticsearchDomainConfig for usage and error information. // // Returned Error Codes: -// * BaseException +// * ErrCodeBaseException "BaseException" // An error occurred while processing the request. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // -// * InvalidTypeException +// * ErrCodeInvalidTypeException "InvalidTypeException" // An exception for trying to create or access sub-resource that is either invalid // or not supported. Gives http status code of 409. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // An exception for trying to create more than allowed resources or sub-resources. // Gives http status code of 409. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ValidationException +// * ErrCodeValidationException "ValidationException" // An exception for missing / invalid input fields. Gives http status code of // 400. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/UpdateElasticsearchDomainConfig func (c *ElasticsearchService) UpdateElasticsearchDomainConfig(input *UpdateElasticsearchDomainConfigInput) (*UpdateElasticsearchDomainConfigOutput, error) { req, out := c.UpdateElasticsearchDomainConfigRequest(input) err := req.Send() @@ -804,13 +1119,14 @@ func (c *ElasticsearchService) UpdateElasticsearchDomainConfig(input *UpdateElas // The configured access rules for the domain's document and search endpoints, // and the current status of those rules. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/AccessPoliciesStatus type AccessPoliciesStatus struct { _ struct{} `type:"structure"` // The access policy configured for the Elasticsearch domain. Access policies // may be resource-based, IP-based, or IAM-based. See Configuring Access Policies - // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-access-policies" - // target="_blank)for more information. + // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-access-policies)for + // more information. // // Options is a required field Options *string `type:"string" required:"true"` @@ -832,8 +1148,21 @@ func (s AccessPoliciesStatus) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *AccessPoliciesStatus) SetOptions(v string) *AccessPoliciesStatus { + s.Options = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *AccessPoliciesStatus) SetStatus(v *OptionStatus) *AccessPoliciesStatus { + s.Status = v + return s +} + // Container for the parameters to the AddTags operation. Specify the tags that // you want to attach to the Elasticsearch domain. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/AddTagsRequest type AddTagsInput struct { _ struct{} `type:"structure"` @@ -884,6 +1213,19 @@ func (s *AddTagsInput) Validate() error { return nil } +// SetARN sets the ARN field's value. +func (s *AddTagsInput) SetARN(v string) *AddTagsInput { + s.ARN = &v + return s +} + +// SetTagList sets the TagList field's value. +func (s *AddTagsInput) SetTagList(v []*Tag) *AddTagsInput { + s.TagList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/AddTagsOutput type AddTagsOutput struct { _ struct{} `type:"structure"` } @@ -898,15 +1240,57 @@ func (s AddTagsOutput) GoString() string { return s.String() } +// List of limits that are specific to a given InstanceType and for each of +// it's InstanceRole . +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/AdditionalLimit +type AdditionalLimit struct { + _ struct{} `type:"structure"` + + // Name of Additional Limit is specific to a given InstanceType and for each + // of it's InstanceRole etc. Attributes and their details: MaximumNumberOfDataNodesSupported + // This attribute will be present in Master node only to specify how much data + // nodes upto which given ESPartitionInstanceTypecan support as master node. MaximumNumberOfDataNodesWithoutMasterNode + // This attribute will be present in Data node only to specify how much data + // nodes of given ESPartitionInstanceType + LimitName *string `type:"string"` + + // Value for given AdditionalLimit$LimitName . + LimitValues []*string `type:"list"` +} + +// String returns the string representation +func (s AdditionalLimit) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdditionalLimit) GoString() string { + return s.String() +} + +// SetLimitName sets the LimitName field's value. +func (s *AdditionalLimit) SetLimitName(v string) *AdditionalLimit { + s.LimitName = &v + return s +} + +// SetLimitValues sets the LimitValues field's value. +func (s *AdditionalLimit) SetLimitValues(v []*string) *AdditionalLimit { + s.LimitValues = v + return s +} + // Status of the advanced options for the specified Elasticsearch domain. Currently, // the following advanced options are available: // -// Option to allow references to indices in an HTTP request body. Must be -// false when configuring access to individual sub-resources. By default, the -// value is true. See Configuration Advanced Options (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options" -// target="_blank) for more information. Option to specify the percentage of -// heap space that is allocated to field data. By default, this setting is unbounded. -// For more information, see Configuring Advanced Options (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options). +// * Option to allow references to indices in an HTTP request body. Must +// be false when configuring access to individual sub-resources. By default, +// the value is true. See Configuration Advanced Options (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options) +// for more information. +// * Option to specify the percentage of heap space that is allocated to +// field data. By default, this setting is unbounded. +// For more information, see Configuring Advanced Options (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/AdvancedOptionsStatus type AdvancedOptionsStatus struct { _ struct{} `type:"structure"` @@ -933,6 +1317,19 @@ func (s AdvancedOptionsStatus) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *AdvancedOptionsStatus) SetOptions(v map[string]*string) *AdvancedOptionsStatus { + s.Options = v + return s +} + +// SetStatus sets the Status field's value. +func (s *AdvancedOptionsStatus) SetStatus(v *OptionStatus) *AdvancedOptionsStatus { + s.Status = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/CreateElasticsearchDomainRequest type CreateElasticsearchDomainInput struct { _ struct{} `type:"structure"` @@ -941,8 +1338,8 @@ type CreateElasticsearchDomainInput struct { // Option to allow references to indices in an HTTP request body. Must be false // when configuring access to individual sub-resources. By default, the value - // is true. See Configuration Advanced Options (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options" - // target="_blank) for more information. + // is true. See Configuration Advanced Options (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options) + // for more information. AdvancedOptions map[string]*string `type:"map"` // The name of the Elasticsearch domain that you are creating. Domain names @@ -962,8 +1359,8 @@ type CreateElasticsearchDomainInput struct { // String of format X.Y to specify version for the Elasticsearch domain eg. // "1.5" or "2.3". For more information, see Creating Elasticsearch Domains - // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomains" - // target="_blank) in the Amazon Elasticsearch Service Developer Guide. + // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomains) + // in the Amazon Elasticsearch Service Developer Guide. ElasticsearchVersion *string `type:"string"` // Option to set time, in UTC format, of the daily automated snapshot. Default @@ -997,8 +1394,51 @@ func (s *CreateElasticsearchDomainInput) Validate() error { return nil } +// SetAccessPolicies sets the AccessPolicies field's value. +func (s *CreateElasticsearchDomainInput) SetAccessPolicies(v string) *CreateElasticsearchDomainInput { + s.AccessPolicies = &v + return s +} + +// SetAdvancedOptions sets the AdvancedOptions field's value. +func (s *CreateElasticsearchDomainInput) SetAdvancedOptions(v map[string]*string) *CreateElasticsearchDomainInput { + s.AdvancedOptions = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *CreateElasticsearchDomainInput) SetDomainName(v string) *CreateElasticsearchDomainInput { + s.DomainName = &v + return s +} + +// SetEBSOptions sets the EBSOptions field's value. +func (s *CreateElasticsearchDomainInput) SetEBSOptions(v *EBSOptions) *CreateElasticsearchDomainInput { + s.EBSOptions = v + return s +} + +// SetElasticsearchClusterConfig sets the ElasticsearchClusterConfig field's value. +func (s *CreateElasticsearchDomainInput) SetElasticsearchClusterConfig(v *ElasticsearchClusterConfig) *CreateElasticsearchDomainInput { + s.ElasticsearchClusterConfig = v + return s +} + +// SetElasticsearchVersion sets the ElasticsearchVersion field's value. +func (s *CreateElasticsearchDomainInput) SetElasticsearchVersion(v string) *CreateElasticsearchDomainInput { + s.ElasticsearchVersion = &v + return s +} + +// SetSnapshotOptions sets the SnapshotOptions field's value. +func (s *CreateElasticsearchDomainInput) SetSnapshotOptions(v *SnapshotOptions) *CreateElasticsearchDomainInput { + s.SnapshotOptions = v + return s +} + // The result of a CreateElasticsearchDomain operation. Contains the status // of the newly created Elasticsearch domain. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/CreateElasticsearchDomainResponse type CreateElasticsearchDomainOutput struct { _ struct{} `type:"structure"` @@ -1016,8 +1456,15 @@ func (s CreateElasticsearchDomainOutput) GoString() string { return s.String() } +// SetDomainStatus sets the DomainStatus field's value. +func (s *CreateElasticsearchDomainOutput) SetDomainStatus(v *ElasticsearchDomainStatus) *CreateElasticsearchDomainOutput { + s.DomainStatus = v + return s +} + // Container for the parameters to the DeleteElasticsearchDomain operation. // Specifies the name of the Elasticsearch domain that you want to delete. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DeleteElasticsearchDomainRequest type DeleteElasticsearchDomainInput struct { _ struct{} `type:"structure"` @@ -1053,9 +1500,16 @@ func (s *DeleteElasticsearchDomainInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DeleteElasticsearchDomainInput) SetDomainName(v string) *DeleteElasticsearchDomainInput { + s.DomainName = &v + return s +} + // The result of a DeleteElasticsearchDomain request. Contains the status of // the pending deletion, or no status if the domain and all of its resources // have been deleted. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DeleteElasticsearchDomainResponse type DeleteElasticsearchDomainOutput struct { _ struct{} `type:"structure"` @@ -1073,8 +1527,15 @@ func (s DeleteElasticsearchDomainOutput) GoString() string { return s.String() } +// SetDomainStatus sets the DomainStatus field's value. +func (s *DeleteElasticsearchDomainOutput) SetDomainStatus(v *ElasticsearchDomainStatus) *DeleteElasticsearchDomainOutput { + s.DomainStatus = v + return s +} + // Container for the parameters to the DescribeElasticsearchDomainConfig operation. // Specifies the domain name for which you want configuration information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchDomainConfigRequest type DescribeElasticsearchDomainConfigInput struct { _ struct{} `type:"structure"` @@ -1110,8 +1571,15 @@ func (s *DescribeElasticsearchDomainConfigInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DescribeElasticsearchDomainConfigInput) SetDomainName(v string) *DescribeElasticsearchDomainConfigInput { + s.DomainName = &v + return s +} + // The result of a DescribeElasticsearchDomainConfig request. Contains the configuration // information of the requested domain. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchDomainConfigResponse type DescribeElasticsearchDomainConfigOutput struct { _ struct{} `type:"structure"` @@ -1132,7 +1600,14 @@ func (s DescribeElasticsearchDomainConfigOutput) GoString() string { return s.String() } +// SetDomainConfig sets the DomainConfig field's value. +func (s *DescribeElasticsearchDomainConfigOutput) SetDomainConfig(v *ElasticsearchDomainConfig) *DescribeElasticsearchDomainConfigOutput { + s.DomainConfig = v + return s +} + // Container for the parameters to the DescribeElasticsearchDomain operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchDomainRequest type DescribeElasticsearchDomainInput struct { _ struct{} `type:"structure"` @@ -1168,8 +1643,15 @@ func (s *DescribeElasticsearchDomainInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DescribeElasticsearchDomainInput) SetDomainName(v string) *DescribeElasticsearchDomainInput { + s.DomainName = &v + return s +} + // The result of a DescribeElasticsearchDomain request. Contains the status // of the domain specified in the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchDomainResponse type DescribeElasticsearchDomainOutput struct { _ struct{} `type:"structure"` @@ -1189,8 +1671,15 @@ func (s DescribeElasticsearchDomainOutput) GoString() string { return s.String() } +// SetDomainStatus sets the DomainStatus field's value. +func (s *DescribeElasticsearchDomainOutput) SetDomainStatus(v *ElasticsearchDomainStatus) *DescribeElasticsearchDomainOutput { + s.DomainStatus = v + return s +} + // Container for the parameters to the DescribeElasticsearchDomains operation. // By default, the API returns the status of all Elasticsearch domains. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchDomainsRequest type DescribeElasticsearchDomainsInput struct { _ struct{} `type:"structure"` @@ -1223,8 +1712,15 @@ func (s *DescribeElasticsearchDomainsInput) Validate() error { return nil } +// SetDomainNames sets the DomainNames field's value. +func (s *DescribeElasticsearchDomainsInput) SetDomainNames(v []*string) *DescribeElasticsearchDomainsInput { + s.DomainNames = v + return s +} + // The result of a DescribeElasticsearchDomains request. Contains the status // of the specified domains or all domains owned by the account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchDomainsResponse type DescribeElasticsearchDomainsOutput struct { _ struct{} `type:"structure"` @@ -1244,6 +1740,111 @@ func (s DescribeElasticsearchDomainsOutput) GoString() string { return s.String() } +// SetDomainStatusList sets the DomainStatusList field's value. +func (s *DescribeElasticsearchDomainsOutput) SetDomainStatusList(v []*ElasticsearchDomainStatus) *DescribeElasticsearchDomainsOutput { + s.DomainStatusList = v + return s +} + +// Container for the parameters to DescribeElasticsearchInstanceTypeLimits operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchInstanceTypeLimitsRequest +type DescribeElasticsearchInstanceTypeLimitsInput struct { + _ struct{} `type:"structure"` + + // DomainName represents the name of the Domain that we are trying to modify. + // This should be present only if we are querying for Elasticsearch Limits for + // existing domain. + DomainName *string `location:"querystring" locationName:"domainName" min:"3" type:"string"` + + // Version of Elasticsearch for which Limits are needed. + // + // ElasticsearchVersion is a required field + ElasticsearchVersion *string `location:"uri" locationName:"ElasticsearchVersion" type:"string" required:"true"` + + // The instance type for an Elasticsearch cluster for which Elasticsearch Limits + // are needed. + // + // InstanceType is a required field + InstanceType *string `location:"uri" locationName:"InstanceType" type:"string" required:"true" enum:"ESPartitionInstanceType"` +} + +// String returns the string representation +func (s DescribeElasticsearchInstanceTypeLimitsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeElasticsearchInstanceTypeLimitsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeElasticsearchInstanceTypeLimitsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeElasticsearchInstanceTypeLimitsInput"} + if s.DomainName != nil && len(*s.DomainName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) + } + if s.ElasticsearchVersion == nil { + invalidParams.Add(request.NewErrParamRequired("ElasticsearchVersion")) + } + if s.InstanceType == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *DescribeElasticsearchInstanceTypeLimitsInput) SetDomainName(v string) *DescribeElasticsearchInstanceTypeLimitsInput { + s.DomainName = &v + return s +} + +// SetElasticsearchVersion sets the ElasticsearchVersion field's value. +func (s *DescribeElasticsearchInstanceTypeLimitsInput) SetElasticsearchVersion(v string) *DescribeElasticsearchInstanceTypeLimitsInput { + s.ElasticsearchVersion = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *DescribeElasticsearchInstanceTypeLimitsInput) SetInstanceType(v string) *DescribeElasticsearchInstanceTypeLimitsInput { + s.InstanceType = &v + return s +} + +// Container for the parameters received from DescribeElasticsearchInstanceTypeLimits +// operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchInstanceTypeLimitsResponse +type DescribeElasticsearchInstanceTypeLimitsOutput struct { + _ struct{} `type:"structure"` + + // Map of Role of the Instance and Limits that are applicable. Role performed + // by given Instance in Elasticsearch can be one of the following: Data: If + // the given InstanceType is used as Data node + // Master: If the given InstanceType is used as Master node + LimitsByRole map[string]*Limits `type:"map"` +} + +// String returns the string representation +func (s DescribeElasticsearchInstanceTypeLimitsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeElasticsearchInstanceTypeLimitsOutput) GoString() string { + return s.String() +} + +// SetLimitsByRole sets the LimitsByRole field's value. +func (s *DescribeElasticsearchInstanceTypeLimitsOutput) SetLimitsByRole(v map[string]*Limits) *DescribeElasticsearchInstanceTypeLimitsOutput { + s.LimitsByRole = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DomainInfo type DomainInfo struct { _ struct{} `type:"structure"` @@ -1261,9 +1862,15 @@ func (s DomainInfo) GoString() string { return s.String() } +// SetDomainName sets the DomainName field's value. +func (s *DomainInfo) SetDomainName(v string) *DomainInfo { + s.DomainName = &v + return s +} + // Options to enable, disable, and specify the properties of EBS storage volumes. -// For more information, see Configuring EBS-based Storage (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs" -// target="_blank). +// For more information, see Configuring EBS-based Storage (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/EBSOptions type EBSOptions struct { _ struct{} `type:"structure"` @@ -1290,7 +1897,32 @@ func (s EBSOptions) GoString() string { return s.String() } +// SetEBSEnabled sets the EBSEnabled field's value. +func (s *EBSOptions) SetEBSEnabled(v bool) *EBSOptions { + s.EBSEnabled = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *EBSOptions) SetIops(v int64) *EBSOptions { + s.Iops = &v + return s +} + +// SetVolumeSize sets the VolumeSize field's value. +func (s *EBSOptions) SetVolumeSize(v int64) *EBSOptions { + s.VolumeSize = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *EBSOptions) SetVolumeType(v string) *EBSOptions { + s.VolumeType = &v + return s +} + // Status of the EBS options for the specified Elasticsearch domain. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/EBSOptionsStatus type EBSOptionsStatus struct { _ struct{} `type:"structure"` @@ -1315,8 +1947,21 @@ func (s EBSOptionsStatus) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *EBSOptionsStatus) SetOptions(v *EBSOptions) *EBSOptionsStatus { + s.Options = v + return s +} + +// SetStatus sets the Status field's value. +func (s *EBSOptionsStatus) SetStatus(v *OptionStatus) *EBSOptionsStatus { + s.Status = v + return s +} + // Specifies the configuration for the domain cluster, such as the type and // number of instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ElasticsearchClusterConfig type ElasticsearchClusterConfig struct { _ struct{} `type:"structure"` @@ -1324,8 +1969,8 @@ type ElasticsearchClusterConfig struct { DedicatedMasterCount *int64 `type:"integer"` // A boolean value to indicate whether a dedicated master node is enabled. See - // About Dedicated Master Nodes (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html#es-managedomains-dedicatedmasternodes" - // target="_blank) for more information. + // About Dedicated Master Nodes (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html#es-managedomains-dedicatedmasternodes) + // for more information. DedicatedMasterEnabled *bool `type:"boolean"` // The instance type for a dedicated master node. @@ -1338,8 +1983,8 @@ type ElasticsearchClusterConfig struct { InstanceType *string `type:"string" enum:"ESPartitionInstanceType"` // A boolean value to indicate whether zone awareness is enabled. See About - // Zone Awareness (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html#es-managedomains-zoneawareness" - // target="_blank) for more information. + // Zone Awareness (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html#es-managedomains-zoneawareness) + // for more information. ZoneAwarenessEnabled *bool `type:"boolean"` } @@ -1353,7 +1998,44 @@ func (s ElasticsearchClusterConfig) GoString() string { return s.String() } +// SetDedicatedMasterCount sets the DedicatedMasterCount field's value. +func (s *ElasticsearchClusterConfig) SetDedicatedMasterCount(v int64) *ElasticsearchClusterConfig { + s.DedicatedMasterCount = &v + return s +} + +// SetDedicatedMasterEnabled sets the DedicatedMasterEnabled field's value. +func (s *ElasticsearchClusterConfig) SetDedicatedMasterEnabled(v bool) *ElasticsearchClusterConfig { + s.DedicatedMasterEnabled = &v + return s +} + +// SetDedicatedMasterType sets the DedicatedMasterType field's value. +func (s *ElasticsearchClusterConfig) SetDedicatedMasterType(v string) *ElasticsearchClusterConfig { + s.DedicatedMasterType = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *ElasticsearchClusterConfig) SetInstanceCount(v int64) *ElasticsearchClusterConfig { + s.InstanceCount = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *ElasticsearchClusterConfig) SetInstanceType(v string) *ElasticsearchClusterConfig { + s.InstanceType = &v + return s +} + +// SetZoneAwarenessEnabled sets the ZoneAwarenessEnabled field's value. +func (s *ElasticsearchClusterConfig) SetZoneAwarenessEnabled(v bool) *ElasticsearchClusterConfig { + s.ZoneAwarenessEnabled = &v + return s +} + // Specifies the configuration status for the specified Elasticsearch domain. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ElasticsearchClusterConfigStatus type ElasticsearchClusterConfigStatus struct { _ struct{} `type:"structure"` @@ -1379,7 +2061,20 @@ func (s ElasticsearchClusterConfigStatus) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *ElasticsearchClusterConfigStatus) SetOptions(v *ElasticsearchClusterConfig) *ElasticsearchClusterConfigStatus { + s.Options = v + return s +} + +// SetStatus sets the Status field's value. +func (s *ElasticsearchClusterConfigStatus) SetStatus(v *OptionStatus) *ElasticsearchClusterConfigStatus { + s.Status = v + return s +} + // The configuration of an Elasticsearch domain. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ElasticsearchDomainConfig type ElasticsearchDomainConfig struct { _ struct{} `type:"structure"` @@ -1387,8 +2082,8 @@ type ElasticsearchDomainConfig struct { AccessPolicies *AccessPoliciesStatus `type:"structure"` // Specifies the AdvancedOptions for the domain. See Configuring Advanced Options - // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options" - // target="_blank) for more information. + // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options) + // for more information. AdvancedOptions *AdvancedOptionsStatus `type:"structure"` // Specifies the EBSOptions for the Elasticsearch domain. @@ -1414,13 +2109,50 @@ func (s ElasticsearchDomainConfig) GoString() string { return s.String() } +// SetAccessPolicies sets the AccessPolicies field's value. +func (s *ElasticsearchDomainConfig) SetAccessPolicies(v *AccessPoliciesStatus) *ElasticsearchDomainConfig { + s.AccessPolicies = v + return s +} + +// SetAdvancedOptions sets the AdvancedOptions field's value. +func (s *ElasticsearchDomainConfig) SetAdvancedOptions(v *AdvancedOptionsStatus) *ElasticsearchDomainConfig { + s.AdvancedOptions = v + return s +} + +// SetEBSOptions sets the EBSOptions field's value. +func (s *ElasticsearchDomainConfig) SetEBSOptions(v *EBSOptionsStatus) *ElasticsearchDomainConfig { + s.EBSOptions = v + return s +} + +// SetElasticsearchClusterConfig sets the ElasticsearchClusterConfig field's value. +func (s *ElasticsearchDomainConfig) SetElasticsearchClusterConfig(v *ElasticsearchClusterConfigStatus) *ElasticsearchDomainConfig { + s.ElasticsearchClusterConfig = v + return s +} + +// SetElasticsearchVersion sets the ElasticsearchVersion field's value. +func (s *ElasticsearchDomainConfig) SetElasticsearchVersion(v *ElasticsearchVersionStatus) *ElasticsearchDomainConfig { + s.ElasticsearchVersion = v + return s +} + +// SetSnapshotOptions sets the SnapshotOptions field's value. +func (s *ElasticsearchDomainConfig) SetSnapshotOptions(v *SnapshotOptionsStatus) *ElasticsearchDomainConfig { + s.SnapshotOptions = v + return s +} + // The current status of an Elasticsearch domain. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ElasticsearchDomainStatus type ElasticsearchDomainStatus struct { _ struct{} `type:"structure"` // The Amazon resource name (ARN) of an Elasticsearch domain. See Identifiers - // for IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/index.html?Using_Identifiers.html" - // target="_blank) in Using AWS Identity and Access Management for more information. + // for IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/index.html?Using_Identifiers.html) + // in Using AWS Identity and Access Management for more information. // // ARN is a required field ARN *string `type:"string" required:"true"` @@ -1455,8 +2187,8 @@ type ElasticsearchDomainStatus struct { DomainName *string `min:"3" type:"string" required:"true"` // The EBSOptions for the specified domain. See Configuring EBS-based Storage - // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs" - // target="_blank) for more information. + // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs) + // for more information. EBSOptions *EBSOptions `type:"structure"` // The type and number of instances in the domain cluster. @@ -1489,8 +2221,87 @@ func (s ElasticsearchDomainStatus) GoString() string { return s.String() } +// SetARN sets the ARN field's value. +func (s *ElasticsearchDomainStatus) SetARN(v string) *ElasticsearchDomainStatus { + s.ARN = &v + return s +} + +// SetAccessPolicies sets the AccessPolicies field's value. +func (s *ElasticsearchDomainStatus) SetAccessPolicies(v string) *ElasticsearchDomainStatus { + s.AccessPolicies = &v + return s +} + +// SetAdvancedOptions sets the AdvancedOptions field's value. +func (s *ElasticsearchDomainStatus) SetAdvancedOptions(v map[string]*string) *ElasticsearchDomainStatus { + s.AdvancedOptions = v + return s +} + +// SetCreated sets the Created field's value. +func (s *ElasticsearchDomainStatus) SetCreated(v bool) *ElasticsearchDomainStatus { + s.Created = &v + return s +} + +// SetDeleted sets the Deleted field's value. +func (s *ElasticsearchDomainStatus) SetDeleted(v bool) *ElasticsearchDomainStatus { + s.Deleted = &v + return s +} + +// SetDomainId sets the DomainId field's value. +func (s *ElasticsearchDomainStatus) SetDomainId(v string) *ElasticsearchDomainStatus { + s.DomainId = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *ElasticsearchDomainStatus) SetDomainName(v string) *ElasticsearchDomainStatus { + s.DomainName = &v + return s +} + +// SetEBSOptions sets the EBSOptions field's value. +func (s *ElasticsearchDomainStatus) SetEBSOptions(v *EBSOptions) *ElasticsearchDomainStatus { + s.EBSOptions = v + return s +} + +// SetElasticsearchClusterConfig sets the ElasticsearchClusterConfig field's value. +func (s *ElasticsearchDomainStatus) SetElasticsearchClusterConfig(v *ElasticsearchClusterConfig) *ElasticsearchDomainStatus { + s.ElasticsearchClusterConfig = v + return s +} + +// SetElasticsearchVersion sets the ElasticsearchVersion field's value. +func (s *ElasticsearchDomainStatus) SetElasticsearchVersion(v string) *ElasticsearchDomainStatus { + s.ElasticsearchVersion = &v + return s +} + +// SetEndpoint sets the Endpoint field's value. +func (s *ElasticsearchDomainStatus) SetEndpoint(v string) *ElasticsearchDomainStatus { + s.Endpoint = &v + return s +} + +// SetProcessing sets the Processing field's value. +func (s *ElasticsearchDomainStatus) SetProcessing(v bool) *ElasticsearchDomainStatus { + s.Processing = &v + return s +} + +// SetSnapshotOptions sets the SnapshotOptions field's value. +func (s *ElasticsearchDomainStatus) SetSnapshotOptions(v *SnapshotOptions) *ElasticsearchDomainStatus { + s.SnapshotOptions = v + return s +} + // Status of the Elasticsearch version options for the specified Elasticsearch // domain. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ElasticsearchVersionStatus type ElasticsearchVersionStatus struct { _ struct{} `type:"structure"` @@ -1516,6 +2327,127 @@ func (s ElasticsearchVersionStatus) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *ElasticsearchVersionStatus) SetOptions(v string) *ElasticsearchVersionStatus { + s.Options = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ElasticsearchVersionStatus) SetStatus(v *OptionStatus) *ElasticsearchVersionStatus { + s.Status = v + return s +} + +// InstanceCountLimits represents the limits on number of instances that be +// created in Amazon Elasticsearch for given InstanceType. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/InstanceCountLimits +type InstanceCountLimits struct { + _ struct{} `type:"structure"` + + // Maximum number of Instances that can be instantiated for given InstanceType. + MaximumInstanceCount *int64 `type:"integer"` + + // Minimum number of Instances that can be instantiated for given InstanceType. + MinimumInstanceCount *int64 `type:"integer"` +} + +// String returns the string representation +func (s InstanceCountLimits) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceCountLimits) GoString() string { + return s.String() +} + +// SetMaximumInstanceCount sets the MaximumInstanceCount field's value. +func (s *InstanceCountLimits) SetMaximumInstanceCount(v int64) *InstanceCountLimits { + s.MaximumInstanceCount = &v + return s +} + +// SetMinimumInstanceCount sets the MinimumInstanceCount field's value. +func (s *InstanceCountLimits) SetMinimumInstanceCount(v int64) *InstanceCountLimits { + s.MinimumInstanceCount = &v + return s +} + +// InstanceLimits represents the list of instance related attributes that are +// available for given InstanceType. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/InstanceLimits +type InstanceLimits struct { + _ struct{} `type:"structure"` + + // InstanceCountLimits represents the limits on number of instances that be + // created in Amazon Elasticsearch for given InstanceType. + InstanceCountLimits *InstanceCountLimits `type:"structure"` +} + +// String returns the string representation +func (s InstanceLimits) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceLimits) GoString() string { + return s.String() +} + +// SetInstanceCountLimits sets the InstanceCountLimits field's value. +func (s *InstanceLimits) SetInstanceCountLimits(v *InstanceCountLimits) *InstanceLimits { + s.InstanceCountLimits = v + return s +} + +// Limits for given InstanceType and for each of it's role. Limits contains following StorageTypes, InstanceLimitsand AdditionalLimits +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/Limits +type Limits struct { + _ struct{} `type:"structure"` + + // List of additional limits that are specific to a given InstanceType and for + // each of it's InstanceRole . + AdditionalLimits []*AdditionalLimit `type:"list"` + + // InstanceLimits represents the list of instance related attributes that are + // available for given InstanceType. + InstanceLimits *InstanceLimits `type:"structure"` + + // StorageType represents the list of storage related types and attributes that + // are available for given InstanceType. + StorageTypes []*StorageType `type:"list"` +} + +// String returns the string representation +func (s Limits) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Limits) GoString() string { + return s.String() +} + +// SetAdditionalLimits sets the AdditionalLimits field's value. +func (s *Limits) SetAdditionalLimits(v []*AdditionalLimit) *Limits { + s.AdditionalLimits = v + return s +} + +// SetInstanceLimits sets the InstanceLimits field's value. +func (s *Limits) SetInstanceLimits(v *InstanceLimits) *Limits { + s.InstanceLimits = v + return s +} + +// SetStorageTypes sets the StorageTypes field's value. +func (s *Limits) SetStorageTypes(v []*StorageType) *Limits { + s.StorageTypes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListDomainNamesInput type ListDomainNamesInput struct { _ struct{} `type:"structure"` } @@ -1532,6 +2464,7 @@ func (s ListDomainNamesInput) GoString() string { // The result of a ListDomainNames operation. Contains the names of all Elasticsearch // domains owned by this account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListDomainNamesResponse type ListDomainNamesOutput struct { _ struct{} `type:"structure"` @@ -1549,9 +2482,207 @@ func (s ListDomainNamesOutput) GoString() string { return s.String() } +// SetDomainNames sets the DomainNames field's value. +func (s *ListDomainNamesOutput) SetDomainNames(v []*DomainInfo) *ListDomainNamesOutput { + s.DomainNames = v + return s +} + +// Container for the parameters to the ListElasticsearchInstanceTypes operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListElasticsearchInstanceTypesRequest +type ListElasticsearchInstanceTypesInput struct { + _ struct{} `type:"structure"` + + // DomainName represents the name of the Domain that we are trying to modify. + // This should be present only if we are querying for list of available Elasticsearch + // instance types when modifying existing domain. + DomainName *string `location:"querystring" locationName:"domainName" min:"3" type:"string"` + + // Version of Elasticsearch for which list of supported elasticsearch instance + // types are needed. + // + // ElasticsearchVersion is a required field + ElasticsearchVersion *string `location:"uri" locationName:"ElasticsearchVersion" type:"string" required:"true"` + + // Set this value to limit the number of results returned. Value provided must + // be greater than 30 else it wont be honored. + MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` + + // NextToken should be sent in case if earlier API call produced result containing + // NextToken. It is used for pagination. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListElasticsearchInstanceTypesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListElasticsearchInstanceTypesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListElasticsearchInstanceTypesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListElasticsearchInstanceTypesInput"} + if s.DomainName != nil && len(*s.DomainName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) + } + if s.ElasticsearchVersion == nil { + invalidParams.Add(request.NewErrParamRequired("ElasticsearchVersion")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *ListElasticsearchInstanceTypesInput) SetDomainName(v string) *ListElasticsearchInstanceTypesInput { + s.DomainName = &v + return s +} + +// SetElasticsearchVersion sets the ElasticsearchVersion field's value. +func (s *ListElasticsearchInstanceTypesInput) SetElasticsearchVersion(v string) *ListElasticsearchInstanceTypesInput { + s.ElasticsearchVersion = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListElasticsearchInstanceTypesInput) SetMaxResults(v int64) *ListElasticsearchInstanceTypesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListElasticsearchInstanceTypesInput) SetNextToken(v string) *ListElasticsearchInstanceTypesInput { + s.NextToken = &v + return s +} + +// Container for the parameters returned by ListElasticsearchInstanceTypes operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListElasticsearchInstanceTypesResponse +type ListElasticsearchInstanceTypesOutput struct { + _ struct{} `type:"structure"` + + // List of instance types supported by Amazon Elasticsearch service for given + // ElasticsearchVersion + ElasticsearchInstanceTypes []*string `type:"list"` + + // In case if there are more results available NextToken would be present, make + // further request to the same API with received NextToken to paginate remaining + // results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListElasticsearchInstanceTypesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListElasticsearchInstanceTypesOutput) GoString() string { + return s.String() +} + +// SetElasticsearchInstanceTypes sets the ElasticsearchInstanceTypes field's value. +func (s *ListElasticsearchInstanceTypesOutput) SetElasticsearchInstanceTypes(v []*string) *ListElasticsearchInstanceTypesOutput { + s.ElasticsearchInstanceTypes = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListElasticsearchInstanceTypesOutput) SetNextToken(v string) *ListElasticsearchInstanceTypesOutput { + s.NextToken = &v + return s +} + +// Container for the parameters to the ListElasticsearchVersions operation. +// Use MaxResults to control the maximum number of results to retrieve in a +// single call. +// +// Use NextToken in response to retrieve more results. If the received response +// does not contain a NextToken, then there are no more results to retrieve. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListElasticsearchVersionsRequest +type ListElasticsearchVersionsInput struct { + _ struct{} `type:"structure"` + + // Set this value to limit the number of results returned. Value provided must + // be greater than 10 else it wont be honored. + MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` + + // Paginated APIs accepts NextToken input to returns next page results and provides + // a NextToken output in the response which can be used by the client to retrieve + // more results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListElasticsearchVersionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListElasticsearchVersionsInput) GoString() string { + return s.String() +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListElasticsearchVersionsInput) SetMaxResults(v int64) *ListElasticsearchVersionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListElasticsearchVersionsInput) SetNextToken(v string) *ListElasticsearchVersionsInput { + s.NextToken = &v + return s +} + +// Container for the parameters for response received from ListElasticsearchVersions +// operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListElasticsearchVersionsResponse +type ListElasticsearchVersionsOutput struct { + _ struct{} `type:"structure"` + + // List of supported elastic search versions. + ElasticsearchVersions []*string `type:"list"` + + // Paginated APIs accepts NextToken input to returns next page results and provides + // a NextToken output in the response which can be used by the client to retrieve + // more results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListElasticsearchVersionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListElasticsearchVersionsOutput) GoString() string { + return s.String() +} + +// SetElasticsearchVersions sets the ElasticsearchVersions field's value. +func (s *ListElasticsearchVersionsOutput) SetElasticsearchVersions(v []*string) *ListElasticsearchVersionsOutput { + s.ElasticsearchVersions = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListElasticsearchVersionsOutput) SetNextToken(v string) *ListElasticsearchVersionsOutput { + s.NextToken = &v + return s +} + // Container for the parameters to the ListTags operation. Specify the ARN for // the Elasticsearch domain to which the tags are attached that you want to // view are attached. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListTagsRequest type ListTagsInput struct { _ struct{} `type:"structure"` @@ -1585,8 +2716,15 @@ func (s *ListTagsInput) Validate() error { return nil } +// SetARN sets the ARN field's value. +func (s *ListTagsInput) SetARN(v string) *ListTagsInput { + s.ARN = &v + return s +} + // The result of a ListTags operation. Contains tags for all requested Elasticsearch // domains. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListTagsResponse type ListTagsOutput struct { _ struct{} `type:"structure"` @@ -1604,7 +2742,14 @@ func (s ListTagsOutput) GoString() string { return s.String() } +// SetTagList sets the TagList field's value. +func (s *ListTagsOutput) SetTagList(v []*Tag) *ListTagsOutput { + s.TagList = v + return s +} + // Provides the current status of the entity. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/OptionStatus type OptionStatus struct { _ struct{} `type:"structure"` @@ -1640,9 +2785,40 @@ func (s OptionStatus) GoString() string { return s.String() } +// SetCreationDate sets the CreationDate field's value. +func (s *OptionStatus) SetCreationDate(v time.Time) *OptionStatus { + s.CreationDate = &v + return s +} + +// SetPendingDeletion sets the PendingDeletion field's value. +func (s *OptionStatus) SetPendingDeletion(v bool) *OptionStatus { + s.PendingDeletion = &v + return s +} + +// SetState sets the State field's value. +func (s *OptionStatus) SetState(v string) *OptionStatus { + s.State = &v + return s +} + +// SetUpdateDate sets the UpdateDate field's value. +func (s *OptionStatus) SetUpdateDate(v time.Time) *OptionStatus { + s.UpdateDate = &v + return s +} + +// SetUpdateVersion sets the UpdateVersion field's value. +func (s *OptionStatus) SetUpdateVersion(v int64) *OptionStatus { + s.UpdateVersion = &v + return s +} + // Container for the parameters to the RemoveTags operation. Specify the ARN // for the Elasticsearch domain from which you want to remove the specified // TagKey. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/RemoveTagsRequest type RemoveTagsInput struct { _ struct{} `type:"structure"` @@ -1685,6 +2861,19 @@ func (s *RemoveTagsInput) Validate() error { return nil } +// SetARN sets the ARN field's value. +func (s *RemoveTagsInput) SetARN(v string) *RemoveTagsInput { + s.ARN = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsInput) SetTagKeys(v []*string) *RemoveTagsInput { + s.TagKeys = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/RemoveTagsOutput type RemoveTagsOutput struct { _ struct{} `type:"structure"` } @@ -1701,6 +2890,7 @@ func (s RemoveTagsOutput) GoString() string { // Specifies the time, in UTC format, when the service takes a daily automated // snapshot of the specified Elasticsearch domain. Default value is 0 hours. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/SnapshotOptions type SnapshotOptions struct { _ struct{} `type:"structure"` @@ -1719,7 +2909,14 @@ func (s SnapshotOptions) GoString() string { return s.String() } +// SetAutomatedSnapshotStartHour sets the AutomatedSnapshotStartHour field's value. +func (s *SnapshotOptions) SetAutomatedSnapshotStartHour(v int64) *SnapshotOptions { + s.AutomatedSnapshotStartHour = &v + return s +} + // Status of a daily automated snapshot. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/SnapshotOptionsStatus type SnapshotOptionsStatus struct { _ struct{} `type:"structure"` @@ -1744,7 +2941,114 @@ func (s SnapshotOptionsStatus) GoString() string { return s.String() } +// SetOptions sets the Options field's value. +func (s *SnapshotOptionsStatus) SetOptions(v *SnapshotOptions) *SnapshotOptionsStatus { + s.Options = v + return s +} + +// SetStatus sets the Status field's value. +func (s *SnapshotOptionsStatus) SetStatus(v *OptionStatus) *SnapshotOptionsStatus { + s.Status = v + return s +} + +// StorageTypes represents the list of storage related types and their attributes +// that are available for given InstanceType. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/StorageType +type StorageType struct { + _ struct{} `type:"structure"` + + // SubType of the given storage type. List of available sub-storage options: + // For "instance" storageType we wont have any storageSubType, in case of "ebs" + // storageType we will have following valid storageSubTypes standard + // gp2 + // io1 + // Refer VolumeType for more information regarding above EBS storage options. + StorageSubTypeName *string `type:"string"` + + // List of limits that are applicable for given storage type. + StorageTypeLimits []*StorageTypeLimit `type:"list"` + + // Type of the storage. List of available storage options: instance + // Inbuilt storage available for the given Instance ebs + // Elastic block storage that would be attached to the given Instance + StorageTypeName *string `type:"string"` +} + +// String returns the string representation +func (s StorageType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StorageType) GoString() string { + return s.String() +} + +// SetStorageSubTypeName sets the StorageSubTypeName field's value. +func (s *StorageType) SetStorageSubTypeName(v string) *StorageType { + s.StorageSubTypeName = &v + return s +} + +// SetStorageTypeLimits sets the StorageTypeLimits field's value. +func (s *StorageType) SetStorageTypeLimits(v []*StorageTypeLimit) *StorageType { + s.StorageTypeLimits = v + return s +} + +// SetStorageTypeName sets the StorageTypeName field's value. +func (s *StorageType) SetStorageTypeName(v string) *StorageType { + s.StorageTypeName = &v + return s +} + +// Limits that are applicable for given storage type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/StorageTypeLimit +type StorageTypeLimit struct { + _ struct{} `type:"structure"` + + // Name of storage limits that are applicable for given storage type. If StorageType + // is ebs, following storage options are applicable MinimumVolumeSize + // Minimum amount of volume size that is applicable for given storage type.It + // can be empty if it is not applicable. MaximumVolumeSize + // Maximum amount of volume size that is applicable for given storage type.It + // can be empty if it is not applicable. MaximumIops + // Maximum amount of Iops that is applicable for given storage type.It can + // be empty if it is not applicable. MinimumIops + // Minimum amount of Iops that is applicable for given storage type.It can + // be empty if it is not applicable. + LimitName *string `type:"string"` + + // Values for the StorageTypeLimit$LimitName . + LimitValues []*string `type:"list"` +} + +// String returns the string representation +func (s StorageTypeLimit) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StorageTypeLimit) GoString() string { + return s.String() +} + +// SetLimitName sets the LimitName field's value. +func (s *StorageTypeLimit) SetLimitName(v string) *StorageTypeLimit { + s.LimitName = &v + return s +} + +// SetLimitValues sets the LimitValues field's value. +func (s *StorageTypeLimit) SetLimitValues(v []*string) *StorageTypeLimit { + s.LimitValues = v + return s +} + // Specifies a key value pair for a resource tag. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/Tag type Tag struct { _ struct{} `type:"structure"` @@ -1792,8 +3096,21 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Container for the parameters to the UpdateElasticsearchDomain operation. // Specifies the type and number of instances in the domain cluster. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/UpdateElasticsearchDomainConfigRequest type UpdateElasticsearchDomainConfigInput struct { _ struct{} `type:"structure"` @@ -1802,8 +3119,8 @@ type UpdateElasticsearchDomainConfigInput struct { // Modifies the advanced option to allow references to indices in an HTTP request // body. Must be false when configuring access to individual sub-resources. - // By default, the value is true. See Configuration Advanced Options (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options" - // target="_blank) for more information. + // By default, the value is true. See Configuration Advanced Options (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options) + // for more information. AdvancedOptions map[string]*string `type:"map"` // The name of the Elasticsearch domain that you are updating. @@ -1848,8 +3165,45 @@ func (s *UpdateElasticsearchDomainConfigInput) Validate() error { return nil } +// SetAccessPolicies sets the AccessPolicies field's value. +func (s *UpdateElasticsearchDomainConfigInput) SetAccessPolicies(v string) *UpdateElasticsearchDomainConfigInput { + s.AccessPolicies = &v + return s +} + +// SetAdvancedOptions sets the AdvancedOptions field's value. +func (s *UpdateElasticsearchDomainConfigInput) SetAdvancedOptions(v map[string]*string) *UpdateElasticsearchDomainConfigInput { + s.AdvancedOptions = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *UpdateElasticsearchDomainConfigInput) SetDomainName(v string) *UpdateElasticsearchDomainConfigInput { + s.DomainName = &v + return s +} + +// SetEBSOptions sets the EBSOptions field's value. +func (s *UpdateElasticsearchDomainConfigInput) SetEBSOptions(v *EBSOptions) *UpdateElasticsearchDomainConfigInput { + s.EBSOptions = v + return s +} + +// SetElasticsearchClusterConfig sets the ElasticsearchClusterConfig field's value. +func (s *UpdateElasticsearchDomainConfigInput) SetElasticsearchClusterConfig(v *ElasticsearchClusterConfig) *UpdateElasticsearchDomainConfigInput { + s.ElasticsearchClusterConfig = v + return s +} + +// SetSnapshotOptions sets the SnapshotOptions field's value. +func (s *UpdateElasticsearchDomainConfigInput) SetSnapshotOptions(v *SnapshotOptions) *UpdateElasticsearchDomainConfigInput { + s.SnapshotOptions = v + return s +} + // The result of an UpdateElasticsearchDomain request. Contains the status of // the Elasticsearch domain being updated. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/UpdateElasticsearchDomainConfigResponse type UpdateElasticsearchDomainConfigOutput struct { _ struct{} `type:"structure"` @@ -1869,6 +3223,12 @@ func (s UpdateElasticsearchDomainConfigOutput) GoString() string { return s.String() } +// SetDomainConfig sets the DomainConfig field's value. +func (s *UpdateElasticsearchDomainConfigOutput) SetDomainConfig(v *ElasticsearchDomainConfig) *UpdateElasticsearchDomainConfigOutput { + s.DomainConfig = v + return s +} + const ( // ESPartitionInstanceTypeM3MediumElasticsearch is a ESPartitionInstanceType enum value ESPartitionInstanceTypeM3MediumElasticsearch = "m3.medium.elasticsearch" @@ -1926,12 +3286,58 @@ const ( // ESPartitionInstanceTypeI22xlargeElasticsearch is a ESPartitionInstanceType enum value ESPartitionInstanceTypeI22xlargeElasticsearch = "i2.2xlarge.elasticsearch" + + // ESPartitionInstanceTypeD2XlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeD2XlargeElasticsearch = "d2.xlarge.elasticsearch" + + // ESPartitionInstanceTypeD22xlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeD22xlargeElasticsearch = "d2.2xlarge.elasticsearch" + + // ESPartitionInstanceTypeD24xlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeD24xlargeElasticsearch = "d2.4xlarge.elasticsearch" + + // ESPartitionInstanceTypeD28xlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeD28xlargeElasticsearch = "d2.8xlarge.elasticsearch" + + // ESPartitionInstanceTypeC4LargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeC4LargeElasticsearch = "c4.large.elasticsearch" + + // ESPartitionInstanceTypeC4XlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeC4XlargeElasticsearch = "c4.xlarge.elasticsearch" + + // ESPartitionInstanceTypeC42xlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeC42xlargeElasticsearch = "c4.2xlarge.elasticsearch" + + // ESPartitionInstanceTypeC44xlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeC44xlargeElasticsearch = "c4.4xlarge.elasticsearch" + + // ESPartitionInstanceTypeC48xlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeC48xlargeElasticsearch = "c4.8xlarge.elasticsearch" + + // ESPartitionInstanceTypeR4LargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeR4LargeElasticsearch = "r4.large.elasticsearch" + + // ESPartitionInstanceTypeR4XlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeR4XlargeElasticsearch = "r4.xlarge.elasticsearch" + + // ESPartitionInstanceTypeR42xlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeR42xlargeElasticsearch = "r4.2xlarge.elasticsearch" + + // ESPartitionInstanceTypeR44xlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeR44xlargeElasticsearch = "r4.4xlarge.elasticsearch" + + // ESPartitionInstanceTypeR48xlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeR48xlargeElasticsearch = "r4.8xlarge.elasticsearch" + + // ESPartitionInstanceTypeR416xlargeElasticsearch is a ESPartitionInstanceType enum value + ESPartitionInstanceTypeR416xlargeElasticsearch = "r4.16xlarge.elasticsearch" ) // The state of a requested change. One of the following: // -// Processing: The request change is still in-process. Active: The request -// change is processed and deployed to the Elasticsearch domain. +// * Processing: The request change is still in-process. +// * Active: The request change is processed and deployed to the Elasticsearch +// domain. const ( // OptionStateRequiresIndexDocuments is a OptionState enum value OptionStateRequiresIndexDocuments = "RequiresIndexDocuments" @@ -1944,8 +3350,8 @@ const ( ) // The type of EBS volume, standard, gp2, or io1. See Configuring EBS-based -// Storage (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs" -// target="_blank)for more information. +// Storage (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs)for +// more information. const ( // VolumeTypeStandard is a VolumeType enum value VolumeTypeStandard = "standard" diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/elasticsearchserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/elasticsearchserviceiface/interface.go index b84adcdf6..29e91da40 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/elasticsearchserviceiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/elasticsearchserviceiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockElasticsearchServiceClient{} // @@ -83,10 +83,26 @@ type ElasticsearchServiceAPI interface { DescribeElasticsearchDomains(*elasticsearchservice.DescribeElasticsearchDomainsInput) (*elasticsearchservice.DescribeElasticsearchDomainsOutput, error) + DescribeElasticsearchInstanceTypeLimitsRequest(*elasticsearchservice.DescribeElasticsearchInstanceTypeLimitsInput) (*request.Request, *elasticsearchservice.DescribeElasticsearchInstanceTypeLimitsOutput) + + DescribeElasticsearchInstanceTypeLimits(*elasticsearchservice.DescribeElasticsearchInstanceTypeLimitsInput) (*elasticsearchservice.DescribeElasticsearchInstanceTypeLimitsOutput, error) + ListDomainNamesRequest(*elasticsearchservice.ListDomainNamesInput) (*request.Request, *elasticsearchservice.ListDomainNamesOutput) ListDomainNames(*elasticsearchservice.ListDomainNamesInput) (*elasticsearchservice.ListDomainNamesOutput, error) + ListElasticsearchInstanceTypesRequest(*elasticsearchservice.ListElasticsearchInstanceTypesInput) (*request.Request, *elasticsearchservice.ListElasticsearchInstanceTypesOutput) + + ListElasticsearchInstanceTypes(*elasticsearchservice.ListElasticsearchInstanceTypesInput) (*elasticsearchservice.ListElasticsearchInstanceTypesOutput, error) + + ListElasticsearchInstanceTypesPages(*elasticsearchservice.ListElasticsearchInstanceTypesInput, func(*elasticsearchservice.ListElasticsearchInstanceTypesOutput, bool) bool) error + + ListElasticsearchVersionsRequest(*elasticsearchservice.ListElasticsearchVersionsInput) (*request.Request, *elasticsearchservice.ListElasticsearchVersionsOutput) + + ListElasticsearchVersions(*elasticsearchservice.ListElasticsearchVersionsInput) (*elasticsearchservice.ListElasticsearchVersionsOutput, error) + + ListElasticsearchVersionsPages(*elasticsearchservice.ListElasticsearchVersionsInput, func(*elasticsearchservice.ListElasticsearchVersionsOutput, bool) bool) error + ListTagsRequest(*elasticsearchservice.ListTagsInput) (*request.Request, *elasticsearchservice.ListTagsOutput) ListTags(*elasticsearchservice.ListTagsInput) (*elasticsearchservice.ListTagsOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/errors.go b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/errors.go new file mode 100644 index 000000000..66c1650b0 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/errors.go @@ -0,0 +1,62 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package elasticsearchservice + +const ( + + // ErrCodeBaseException for service response error code + // "BaseException". + // + // An error occurred while processing the request. + ErrCodeBaseException = "BaseException" + + // ErrCodeDisabledOperationException for service response error code + // "DisabledOperationException". + // + // An error occured because the client wanted to access a not supported operation. + // Gives http status code of 409. + ErrCodeDisabledOperationException = "DisabledOperationException" + + // ErrCodeInternalException for service response error code + // "InternalException". + // + // The request processing has failed because of an unknown error, exception + // or failure (the failure is internal to the service) . Gives http status code + // of 500. + ErrCodeInternalException = "InternalException" + + // ErrCodeInvalidTypeException for service response error code + // "InvalidTypeException". + // + // An exception for trying to create or access sub-resource that is either invalid + // or not supported. Gives http status code of 409. + ErrCodeInvalidTypeException = "InvalidTypeException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // An exception for trying to create more than allowed resources or sub-resources. + // Gives http status code of 409. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeResourceAlreadyExistsException for service response error code + // "ResourceAlreadyExistsException". + // + // An exception for creating a resource that already exists. Gives http status + // code of 400. + ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // An exception for accessing or deleting a resource that does not exist. Gives + // http status code of 400. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeValidationException for service response error code + // "ValidationException". + // + // An exception for missing / invalid input fields. Gives http status code of + // 400. + ErrCodeValidationException = "ValidationException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/examples_test.go index d321ae874..eb50cda9d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleElasticsearchService_AddTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticsearchservice.New(sess) @@ -48,11 +44,7 @@ func ExampleElasticsearchService_AddTags() { } func ExampleElasticsearchService_CreateElasticsearchDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticsearchservice.New(sess) @@ -96,11 +88,7 @@ func ExampleElasticsearchService_CreateElasticsearchDomain() { } func ExampleElasticsearchService_DeleteElasticsearchDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticsearchservice.New(sess) @@ -121,11 +109,7 @@ func ExampleElasticsearchService_DeleteElasticsearchDomain() { } func ExampleElasticsearchService_DescribeElasticsearchDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticsearchservice.New(sess) @@ -146,11 +130,7 @@ func ExampleElasticsearchService_DescribeElasticsearchDomain() { } func ExampleElasticsearchService_DescribeElasticsearchDomainConfig() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticsearchservice.New(sess) @@ -171,11 +151,7 @@ func ExampleElasticsearchService_DescribeElasticsearchDomainConfig() { } func ExampleElasticsearchService_DescribeElasticsearchDomains() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticsearchservice.New(sess) @@ -198,13 +174,32 @@ func ExampleElasticsearchService_DescribeElasticsearchDomains() { fmt.Println(resp) } -func ExampleElasticsearchService_ListDomainNames() { - sess, err := session.NewSession() +func ExampleElasticsearchService_DescribeElasticsearchInstanceTypeLimits() { + sess := session.Must(session.NewSession()) + + svc := elasticsearchservice.New(sess) + + params := &elasticsearchservice.DescribeElasticsearchInstanceTypeLimitsInput{ + ElasticsearchVersion: aws.String("ElasticsearchVersionString"), // Required + InstanceType: aws.String("ESPartitionInstanceType"), // Required + DomainName: aws.String("DomainName"), + } + resp, err := svc.DescribeElasticsearchInstanceTypeLimits(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleElasticsearchService_ListDomainNames() { + sess := session.Must(session.NewSession()) + svc := elasticsearchservice.New(sess) var params *elasticsearchservice.ListDomainNamesInput @@ -221,13 +216,55 @@ func ExampleElasticsearchService_ListDomainNames() { fmt.Println(resp) } -func ExampleElasticsearchService_ListTags() { - sess, err := session.NewSession() +func ExampleElasticsearchService_ListElasticsearchInstanceTypes() { + sess := session.Must(session.NewSession()) + + svc := elasticsearchservice.New(sess) + + params := &elasticsearchservice.ListElasticsearchInstanceTypesInput{ + ElasticsearchVersion: aws.String("ElasticsearchVersionString"), // Required + DomainName: aws.String("DomainName"), + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListElasticsearchInstanceTypes(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleElasticsearchService_ListElasticsearchVersions() { + sess := session.Must(session.NewSession()) + + svc := elasticsearchservice.New(sess) + + params := &elasticsearchservice.ListElasticsearchVersionsInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListElasticsearchVersions(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleElasticsearchService_ListTags() { + sess := session.Must(session.NewSession()) + svc := elasticsearchservice.New(sess) params := &elasticsearchservice.ListTagsInput{ @@ -247,11 +284,7 @@ func ExampleElasticsearchService_ListTags() { } func ExampleElasticsearchService_RemoveTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticsearchservice.New(sess) @@ -276,11 +309,7 @@ func ExampleElasticsearchService_RemoveTags() { } func ExampleElasticsearchService_UpdateElasticsearchDomainConfig() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elasticsearchservice.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/service.go b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/service.go index 701ba5b45..8ba1f8bf5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/service.go @@ -16,10 +16,10 @@ import ( // // The endpoint for configuration service requests is region-specific: es.region.amazonaws.com. // For example, es.us-east-1.amazonaws.com. For a current list of supported -// regions and endpoints, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticsearch-service-regions" -// target="_blank). -//The service client's operations are safe to be used concurrently. +// regions and endpoints, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticsearch-service-regions). +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01 type ElasticsearchService struct { *client.Client } @@ -30,8 +30,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "es" +// Service information constants +const ( + ServiceName = "es" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the ElasticsearchService client with a session. // If additional configuration is needed for the client instance use the optional @@ -44,17 +47,18 @@ const ServiceName = "es" // // Create a ElasticsearchService client with additional configuration // svc := elasticsearchservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ElasticsearchService { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ElasticsearchService { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *ElasticsearchService { svc := &ElasticsearchService{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-01-01", diff --git a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/api.go b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/api.go index 5d60f2c00..df4a29947 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/api.go @@ -35,7 +35,6 @@ const opCancelJob = "CancelJob" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *ElasticTranscoder) CancelJobRequest(input *CancelJobInput) (req *request.Request, output *CancelJobOutput) { op := &request.Operation{ Name: opCancelJob, @@ -47,9 +46,8 @@ func (c *ElasticTranscoder) CancelJobRequest(input *CancelJobInput) (req *reques input = &CancelJobInput{} } - req = c.newRequest(op, input, output) output = &CancelJobOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -69,25 +67,24 @@ func (c *ElasticTranscoder) CancelJobRequest(input *CancelJobInput) (req *reques // API operation CancelJob for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // One or more required parameter values were not provided in the request. // -// * IncompatibleVersionException - +// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource you are attempting to change is in use. For example, you are // attempting to delete a pipeline that is currently in use. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // General authentication failure. The request was not signed correctly. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -122,7 +119,6 @@ const opCreateJob = "CreateJob" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *ElasticTranscoder) CreateJobRequest(input *CreateJobInput) (req *request.Request, output *CreateJobResponse) { op := &request.Operation{ Name: opCreateJob, @@ -134,9 +130,8 @@ func (c *ElasticTranscoder) CreateJobRequest(input *CreateJobInput) (req *reques input = &CreateJobInput{} } - req = c.newRequest(op, input, output) output = &CreateJobResponse{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -158,25 +153,24 @@ func (c *ElasticTranscoder) CreateJobRequest(input *CreateJobInput) (req *reques // API operation CreateJob for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // One or more required parameter values were not provided in the request. // -// * IncompatibleVersionException - +// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // General authentication failure. The request was not signed correctly. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // Too many operations for a given AWS account. For example, the number of pipelines // exceeds the maximum allowed. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -211,7 +205,6 @@ const opCreatePipeline = "CreatePipeline" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *ElasticTranscoder) CreatePipelineRequest(input *CreatePipelineInput) (req *request.Request, output *CreatePipelineOutput) { op := &request.Operation{ Name: opCreatePipeline, @@ -223,9 +216,8 @@ func (c *ElasticTranscoder) CreatePipelineRequest(input *CreatePipelineInput) (r input = &CreatePipelineInput{} } - req = c.newRequest(op, input, output) output = &CreatePipelineOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -241,25 +233,24 @@ func (c *ElasticTranscoder) CreatePipelineRequest(input *CreatePipelineInput) (r // API operation CreatePipeline for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // One or more required parameter values were not provided in the request. // -// * IncompatibleVersionException - +// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // General authentication failure. The request was not signed correctly. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // Too many operations for a given AWS account. For example, the number of pipelines // exceeds the maximum allowed. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -294,7 +285,6 @@ const opCreatePreset = "CreatePreset" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *ElasticTranscoder) CreatePresetRequest(input *CreatePresetInput) (req *request.Request, output *CreatePresetOutput) { op := &request.Operation{ Name: opCreatePreset, @@ -306,9 +296,8 @@ func (c *ElasticTranscoder) CreatePresetRequest(input *CreatePresetInput) (req * input = &CreatePresetInput{} } - req = c.newRequest(op, input, output) output = &CreatePresetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -316,19 +305,19 @@ func (c *ElasticTranscoder) CreatePresetRequest(input *CreatePresetInput) (req * // // The CreatePreset operation creates a preset with settings that you specify. // -// Elastic Transcoder checks the CreatePreset settings to ensure that they -// meet Elastic Transcoder requirements and to determine whether they comply -// with H.264 standards. If your settings are not valid for Elastic Transcoder, -// Elastic Transcoder returns an HTTP 400 response (ValidationException) and -// does not create the preset. If the settings are valid for Elastic Transcoder -// but aren't strictly compliant with the H.264 standard, Elastic Transcoder -// creates the preset and returns a warning message in the response. This helps -// you determine whether your settings comply with the H.264 standard while -// giving you greater flexibility with respect to the video that Elastic Transcoder -// produces. Elastic Transcoder uses the H.264 video-compression format. For -// more information, see the International Telecommunication Union publication -// Recommendation ITU-T H.264: Advanced video coding for generic audiovisual -// services. +// Elastic Transcoder checks the CreatePreset settings to ensure that they meet +// Elastic Transcoder requirements and to determine whether they comply with +// H.264 standards. If your settings are not valid for Elastic Transcoder, Elastic +// Transcoder returns an HTTP 400 response (ValidationException) and does not +// create the preset. If the settings are valid for Elastic Transcoder but aren't +// strictly compliant with the H.264 standard, Elastic Transcoder creates the +// preset and returns a warning message in the response. This helps you determine +// whether your settings comply with the H.264 standard while giving you greater +// flexibility with respect to the video that Elastic Transcoder produces. +// +// Elastic Transcoder uses the H.264 video-compression format. For more information, +// see the International Telecommunication Union publication Recommendation +// ITU-T H.264: Advanced video coding for generic audiovisual services. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -338,20 +327,19 @@ func (c *ElasticTranscoder) CreatePresetRequest(input *CreatePresetInput) (req * // API operation CreatePreset for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // One or more required parameter values were not provided in the request. // -// * IncompatibleVersionException - +// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // General authentication failure. The request was not signed correctly. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // Too many operations for a given AWS account. For example, the number of pipelines // exceeds the maximum allowed. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -386,7 +374,6 @@ const opDeletePipeline = "DeletePipeline" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *ElasticTranscoder) DeletePipelineRequest(input *DeletePipelineInput) (req *request.Request, output *DeletePipelineOutput) { op := &request.Operation{ Name: opDeletePipeline, @@ -398,9 +385,8 @@ func (c *ElasticTranscoder) DeletePipelineRequest(input *DeletePipelineInput) (r input = &DeletePipelineInput{} } - req = c.newRequest(op, input, output) output = &DeletePipelineOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -408,9 +394,9 @@ func (c *ElasticTranscoder) DeletePipelineRequest(input *DeletePipelineInput) (r // // The DeletePipeline operation removes a pipeline. // -// You can only delete a pipeline that has never been used or that is not -// currently in use (doesn't contain any active jobs). If the pipeline is currently -// in use, DeletePipeline returns an error. +// You can only delete a pipeline that has never been used or that is not currently +// in use (doesn't contain any active jobs). If the pipeline is currently in +// use, DeletePipeline returns an error. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -420,25 +406,24 @@ func (c *ElasticTranscoder) DeletePipelineRequest(input *DeletePipelineInput) (r // API operation DeletePipeline for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // One or more required parameter values were not provided in the request. // -// * IncompatibleVersionException - +// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource you are attempting to change is in use. For example, you are // attempting to delete a pipeline that is currently in use. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // General authentication failure. The request was not signed correctly. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -473,7 +458,6 @@ const opDeletePreset = "DeletePreset" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *ElasticTranscoder) DeletePresetRequest(input *DeletePresetInput) (req *request.Request, output *DeletePresetOutput) { op := &request.Operation{ Name: opDeletePreset, @@ -485,9 +469,8 @@ func (c *ElasticTranscoder) DeletePresetRequest(input *DeletePresetInput) (req * input = &DeletePresetInput{} } - req = c.newRequest(op, input, output) output = &DeletePresetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -495,7 +478,7 @@ func (c *ElasticTranscoder) DeletePresetRequest(input *DeletePresetInput) (req * // // The DeletePreset operation removes a preset that you've added in an AWS region. // -// You can't delete the default presets that are included with Elastic Transcoder. +// You can't delete the default presets that are included with Elastic Transcoder. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -505,21 +488,20 @@ func (c *ElasticTranscoder) DeletePresetRequest(input *DeletePresetInput) (req * // API operation DeletePreset for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // One or more required parameter values were not provided in the request. // -// * IncompatibleVersionException - +// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // General authentication failure. The request was not signed correctly. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -554,7 +536,6 @@ const opListJobsByPipeline = "ListJobsByPipeline" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *ElasticTranscoder) ListJobsByPipelineRequest(input *ListJobsByPipelineInput) (req *request.Request, output *ListJobsByPipelineOutput) { op := &request.Operation{ Name: opListJobsByPipeline, @@ -572,9 +553,8 @@ func (c *ElasticTranscoder) ListJobsByPipelineRequest(input *ListJobsByPipelineI input = &ListJobsByPipelineInput{} } - req = c.newRequest(op, input, output) output = &ListJobsByPipelineOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -594,21 +574,20 @@ func (c *ElasticTranscoder) ListJobsByPipelineRequest(input *ListJobsByPipelineI // API operation ListJobsByPipeline for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // One or more required parameter values were not provided in the request. // -// * IncompatibleVersionException - +// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // General authentication failure. The request was not signed correctly. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -668,7 +647,6 @@ const opListJobsByStatus = "ListJobsByStatus" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *ElasticTranscoder) ListJobsByStatusRequest(input *ListJobsByStatusInput) (req *request.Request, output *ListJobsByStatusOutput) { op := &request.Operation{ Name: opListJobsByStatus, @@ -686,9 +664,8 @@ func (c *ElasticTranscoder) ListJobsByStatusRequest(input *ListJobsByStatusInput input = &ListJobsByStatusInput{} } - req = c.newRequest(op, input, output) output = &ListJobsByStatusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -706,21 +683,20 @@ func (c *ElasticTranscoder) ListJobsByStatusRequest(input *ListJobsByStatusInput // API operation ListJobsByStatus for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // One or more required parameter values were not provided in the request. // -// * IncompatibleVersionException - +// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // General authentication failure. The request was not signed correctly. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -780,7 +756,6 @@ const opListPipelines = "ListPipelines" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *ElasticTranscoder) ListPipelinesRequest(input *ListPipelinesInput) (req *request.Request, output *ListPipelinesOutput) { op := &request.Operation{ Name: opListPipelines, @@ -798,9 +773,8 @@ func (c *ElasticTranscoder) ListPipelinesRequest(input *ListPipelinesInput) (req input = &ListPipelinesInput{} } - req = c.newRequest(op, input, output) output = &ListPipelinesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -817,16 +791,15 @@ func (c *ElasticTranscoder) ListPipelinesRequest(input *ListPipelinesInput) (req // API operation ListPipelines for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // One or more required parameter values were not provided in the request. // -// * IncompatibleVersionException - +// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // General authentication failure. The request was not signed correctly. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -886,7 +859,6 @@ const opListPresets = "ListPresets" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *ElasticTranscoder) ListPresetsRequest(input *ListPresetsInput) (req *request.Request, output *ListPresetsOutput) { op := &request.Operation{ Name: opListPresets, @@ -904,9 +876,8 @@ func (c *ElasticTranscoder) ListPresetsRequest(input *ListPresetsInput) (req *re input = &ListPresetsInput{} } - req = c.newRequest(op, input, output) output = &ListPresetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -923,16 +894,15 @@ func (c *ElasticTranscoder) ListPresetsRequest(input *ListPresetsInput) (req *re // API operation ListPresets for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // One or more required parameter values were not provided in the request. // -// * IncompatibleVersionException - +// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // General authentication failure. The request was not signed correctly. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -992,7 +962,6 @@ const opReadJob = "ReadJob" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *ElasticTranscoder) ReadJobRequest(input *ReadJobInput) (req *request.Request, output *ReadJobOutput) { op := &request.Operation{ Name: opReadJob, @@ -1004,9 +973,8 @@ func (c *ElasticTranscoder) ReadJobRequest(input *ReadJobInput) (req *request.Re input = &ReadJobInput{} } - req = c.newRequest(op, input, output) output = &ReadJobOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1022,21 +990,20 @@ func (c *ElasticTranscoder) ReadJobRequest(input *ReadJobInput) (req *request.Re // API operation ReadJob for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // One or more required parameter values were not provided in the request. // -// * IncompatibleVersionException - +// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // General authentication failure. The request was not signed correctly. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -1071,7 +1038,6 @@ const opReadPipeline = "ReadPipeline" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *ElasticTranscoder) ReadPipelineRequest(input *ReadPipelineInput) (req *request.Request, output *ReadPipelineOutput) { op := &request.Operation{ Name: opReadPipeline, @@ -1083,9 +1049,8 @@ func (c *ElasticTranscoder) ReadPipelineRequest(input *ReadPipelineInput) (req * input = &ReadPipelineInput{} } - req = c.newRequest(op, input, output) output = &ReadPipelineOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1101,21 +1066,20 @@ func (c *ElasticTranscoder) ReadPipelineRequest(input *ReadPipelineInput) (req * // API operation ReadPipeline for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // One or more required parameter values were not provided in the request. // -// * IncompatibleVersionException - +// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // General authentication failure. The request was not signed correctly. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -1150,7 +1114,6 @@ const opReadPreset = "ReadPreset" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *ElasticTranscoder) ReadPresetRequest(input *ReadPresetInput) (req *request.Request, output *ReadPresetOutput) { op := &request.Operation{ Name: opReadPreset, @@ -1162,9 +1125,8 @@ func (c *ElasticTranscoder) ReadPresetRequest(input *ReadPresetInput) (req *requ input = &ReadPresetInput{} } - req = c.newRequest(op, input, output) output = &ReadPresetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1180,21 +1142,20 @@ func (c *ElasticTranscoder) ReadPresetRequest(input *ReadPresetInput) (req *requ // API operation ReadPreset for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // One or more required parameter values were not provided in the request. // -// * IncompatibleVersionException - +// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // General authentication failure. The request was not signed correctly. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -1229,8 +1190,10 @@ const opTestRole = "TestRole" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *ElasticTranscoder) TestRoleRequest(input *TestRoleInput) (req *request.Request, output *TestRoleOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, TestRole, has been deprecated") + } op := &request.Operation{ Name: opTestRole, HTTPMethod: "POST", @@ -1241,9 +1204,8 @@ func (c *ElasticTranscoder) TestRoleRequest(input *TestRoleInput) (req *request. input = &TestRoleInput{} } - req = c.newRequest(op, input, output) output = &TestRoleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1265,21 +1227,20 @@ func (c *ElasticTranscoder) TestRoleRequest(input *TestRoleInput) (req *request. // API operation TestRole for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // One or more required parameter values were not provided in the request. // -// * IncompatibleVersionException - +// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // General authentication failure. The request was not signed correctly. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -1314,7 +1275,6 @@ const opUpdatePipeline = "UpdatePipeline" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *ElasticTranscoder) UpdatePipelineRequest(input *UpdatePipelineInput) (req *request.Request, output *UpdatePipelineOutput) { op := &request.Operation{ Name: opUpdatePipeline, @@ -1326,19 +1286,19 @@ func (c *ElasticTranscoder) UpdatePipelineRequest(input *UpdatePipelineInput) (r input = &UpdatePipelineInput{} } - req = c.newRequest(op, input, output) output = &UpdatePipelineOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // UpdatePipeline API operation for Amazon Elastic Transcoder. // -// Use the UpdatePipeline operation to update settings for a pipeline. When -// you change pipeline settings, your changes take effect immediately. Jobs -// that you have already submitted and that Elastic Transcoder has not started -// to process are affected in addition to jobs that you submit after you change -// settings. +// Use the UpdatePipeline operation to update settings for a pipeline. +// +// When you change pipeline settings, your changes take effect immediately. +// Jobs that you have already submitted and that Elastic Transcoder has not +// started to process are affected in addition to jobs that you submit after +// you change settings. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1348,25 +1308,24 @@ func (c *ElasticTranscoder) UpdatePipelineRequest(input *UpdatePipelineInput) (r // API operation UpdatePipeline for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // One or more required parameter values were not provided in the request. // -// * IncompatibleVersionException - +// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // General authentication failure. The request was not signed correctly. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource you are attempting to change is in use. For example, you are // attempting to delete a pipeline that is currently in use. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -1401,7 +1360,6 @@ const opUpdatePipelineNotifications = "UpdatePipelineNotifications" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *ElasticTranscoder) UpdatePipelineNotificationsRequest(input *UpdatePipelineNotificationsInput) (req *request.Request, output *UpdatePipelineNotificationsOutput) { op := &request.Operation{ Name: opUpdatePipelineNotifications, @@ -1413,9 +1371,8 @@ func (c *ElasticTranscoder) UpdatePipelineNotificationsRequest(input *UpdatePipe input = &UpdatePipelineNotificationsInput{} } - req = c.newRequest(op, input, output) output = &UpdatePipelineNotificationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1435,25 +1392,24 @@ func (c *ElasticTranscoder) UpdatePipelineNotificationsRequest(input *UpdatePipe // API operation UpdatePipelineNotifications for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // One or more required parameter values were not provided in the request. // -// * IncompatibleVersionException - +// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource you are attempting to change is in use. For example, you are // attempting to delete a pipeline that is currently in use. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // General authentication failure. The request was not signed correctly. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -1488,7 +1444,6 @@ const opUpdatePipelineStatus = "UpdatePipelineStatus" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *ElasticTranscoder) UpdatePipelineStatusRequest(input *UpdatePipelineStatusInput) (req *request.Request, output *UpdatePipelineStatusOutput) { op := &request.Operation{ Name: opUpdatePipelineStatus, @@ -1500,9 +1455,8 @@ func (c *ElasticTranscoder) UpdatePipelineStatusRequest(input *UpdatePipelineSta input = &UpdatePipelineStatusInput{} } - req = c.newRequest(op, input, output) output = &UpdatePipelineStatusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1525,25 +1479,24 @@ func (c *ElasticTranscoder) UpdatePipelineStatusRequest(input *UpdatePipelineSta // API operation UpdatePipelineStatus for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // One or more required parameter values were not provided in the request. // -// * IncompatibleVersionException - +// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource you are attempting to change is in use. For example, you are // attempting to delete a pipeline that is currently in use. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // General authentication failure. The request was not signed correctly. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -1600,25 +1553,33 @@ type Artwork struct { // Specify one of the following values to control scaling of the output album // art: // - // Fit: Elastic Transcoder scales the output art so it matches the value - // that you specified in either MaxWidth or MaxHeight without exceeding the - // other value. Fill: Elastic Transcoder scales the output art so it matches - // the value that you specified in either MaxWidth or MaxHeight and matches - // or exceeds the other value. Elastic Transcoder centers the output art and - // then crops it in the dimension (if any) that exceeds the maximum value. - // Stretch: Elastic Transcoder stretches the output art to match the values - // that you specified for MaxWidth and MaxHeight. If the relative proportions - // of the input art and the output art are different, the output art will be - // distorted. Keep: Elastic Transcoder does not scale the output art. If either - // dimension of the input art exceeds the values that you specified for MaxWidth - // and MaxHeight, Elastic Transcoder crops the output art. ShrinkToFit: Elastic - // Transcoder scales the output art down so that its dimensions match the values - // that you specified for at least one of MaxWidth and MaxHeight without exceeding - // either value. If you specify this option, Elastic Transcoder does not scale - // the art up. ShrinkToFill Elastic Transcoder scales the output art down so - // that its dimensions match the values that you specified for at least one - // of MaxWidth and MaxHeight without dropping below either value. If you specify - // this option, Elastic Transcoder does not scale the art up. + // * Fit: Elastic Transcoder scales the output art so it matches the value + // that you specified in either MaxWidth or MaxHeight without exceeding the + // other value. + // + // * Fill: Elastic Transcoder scales the output art so it matches the value + // that you specified in either MaxWidth or MaxHeight and matches or exceeds + // the other value. Elastic Transcoder centers the output art and then crops + // it in the dimension (if any) that exceeds the maximum value. + // + // * Stretch: Elastic Transcoder stretches the output art to match the values + // that you specified for MaxWidth and MaxHeight. If the relative proportions + // of the input art and the output art are different, the output art will + // be distorted. + // + // * Keep: Elastic Transcoder does not scale the output art. If either dimension + // of the input art exceeds the values that you specified for MaxWidth and + // MaxHeight, Elastic Transcoder crops the output art. + // + // * ShrinkToFit: Elastic Transcoder scales the output art down so that its + // dimensions match the values that you specified for at least one of MaxWidth + // and MaxHeight without exceeding either value. If you specify this option, + // Elastic Transcoder does not scale the art up. + // + // * ShrinkToFill Elastic Transcoder scales the output art down so that its + // dimensions match the values that you specified for at least one of MaxWidth + // and MaxHeight without dropping below either value. If you specify this + // option, Elastic Transcoder does not scale the art up. SizingPolicy *string `type:"string"` } @@ -1645,6 +1606,48 @@ func (s *Artwork) Validate() error { return nil } +// SetAlbumArtFormat sets the AlbumArtFormat field's value. +func (s *Artwork) SetAlbumArtFormat(v string) *Artwork { + s.AlbumArtFormat = &v + return s +} + +// SetEncryption sets the Encryption field's value. +func (s *Artwork) SetEncryption(v *Encryption) *Artwork { + s.Encryption = v + return s +} + +// SetInputKey sets the InputKey field's value. +func (s *Artwork) SetInputKey(v string) *Artwork { + s.InputKey = &v + return s +} + +// SetMaxHeight sets the MaxHeight field's value. +func (s *Artwork) SetMaxHeight(v string) *Artwork { + s.MaxHeight = &v + return s +} + +// SetMaxWidth sets the MaxWidth field's value. +func (s *Artwork) SetMaxWidth(v string) *Artwork { + s.MaxWidth = &v + return s +} + +// SetPaddingPolicy sets the PaddingPolicy field's value. +func (s *Artwork) SetPaddingPolicy(v string) *Artwork { + s.PaddingPolicy = &v + return s +} + +// SetSizingPolicy sets the SizingPolicy field's value. +func (s *Artwork) SetSizingPolicy(v string) *Artwork { + s.SizingPolicy = &v + return s +} + // Options associated with your audio codec. type AudioCodecOptions struct { _ struct{} `type:"structure"` @@ -1675,13 +1678,19 @@ type AudioCodecOptions struct { // Specify the AAC profile for the output file. Elastic Transcoder supports // the following profiles: // - // auto: If you specify auto, Elastic Transcoder will select the profile based - // on the bit rate selected for the output file. AAC-LC: The most common AAC - // profile. Use for bit rates larger than 64 kbps. HE-AAC: Not supported on - // some older players and devices. Use for bit rates between 40 and 80 kbps. - // HE-AACv2: Not supported on some players and devices. Use for bit rates less - // than 48 kbps. All outputs in a Smooth playlist must have the same value - // for Profile. + // * auto: If you specify auto, Elastic Transcoder selects the profile based + // on the bit rate selected for the output file. + // + // * AAC-LC: The most common AAC profile. Use for bit rates larger than 64 + // kbps. + // + // * HE-AAC: Not supported on some older players and devices. Use for bit + // rates between 40 and 80 kbps. + // + // * HE-AACv2: Not supported on some players and devices. Use for bit rates + // less than 48 kbps. + // + // All outputs in a Smooth playlist must have the same value for Profile. // // If you created any presets before AAC profiles were added, Elastic Transcoder // automatically updated your presets to use AAC-LC. You can change the value @@ -1708,6 +1717,30 @@ func (s AudioCodecOptions) GoString() string { return s.String() } +// SetBitDepth sets the BitDepth field's value. +func (s *AudioCodecOptions) SetBitDepth(v string) *AudioCodecOptions { + s.BitDepth = &v + return s +} + +// SetBitOrder sets the BitOrder field's value. +func (s *AudioCodecOptions) SetBitOrder(v string) *AudioCodecOptions { + s.BitOrder = &v + return s +} + +// SetProfile sets the Profile field's value. +func (s *AudioCodecOptions) SetProfile(v string) *AudioCodecOptions { + s.Profile = &v + return s +} + +// SetSigned sets the Signed field's value. +func (s *AudioCodecOptions) SetSigned(v string) *AudioCodecOptions { + s.Signed = &v + return s +} + // Parameters required for transcoding audio. type AudioParameters struct { _ struct{} `type:"structure"` @@ -1721,59 +1754,100 @@ type AudioParameters struct { // // SingleTrack, OneChannelPerTrack, and OneChannelPerTrackWithMosTo8Tracks // - // When you specify SingleTrack, Elastic Transcoder creates a single track - // for your output. The track can have up to eight channels. Use SingleTrack - // for all non-mxf containers. + // When you specify SingleTrack, Elastic Transcoder creates a single track for + // your output. The track can have up to eight channels. Use SingleTrack for + // all non-mxf containers. // // The outputs of SingleTrack for a specific channel value and inputs are as // follows: // - // 0 channels with any input: Audio omitted from the output 1, 2, or auto - // channels with no audio input: Audio omitted from the output 1 channel with - // any input with audio: One track with one channel, downmixed if necessary - // 2 channels with one track with one channel: One track with two identical - // channels 2 or auto channels with two tracks with one channel each: One track - // with two channels 2 or auto channels with one track with two channels: One - // track with two channels 2 channels with one track with multiple channels: - // One track with two channels auto channels with one track with one channel: - // One track with one channel auto channels with one track with multiple channels: - // One track with multiple channels When you specify OneChannelPerTrack, Elastic - // Transcoder creates a new track for every channel in your output. Your output - // can have up to eight single-channel tracks. + // * 0 channels with any input: Audio omitted from the output + // + // * 1, 2, or auto channels with no audio input: Audio omitted from the output + // + // * 1 channel with any input with audio: One track with one channel, downmixed + // if necessary + // + // * 2 channels with one track with one channel: One track with two identical + // channels + // + // * 2 or auto channels with two tracks with one channel each: One track + // with two channels + // + // * 2 or auto channels with one track with two channels: One track with + // two channels + // + // * 2 channels with one track with multiple channels: One track with two + // channels + // + // * auto channels with one track with one channel: One track with one channel + // + // * auto channels with one track with multiple channels: One track with + // multiple channels + // + // When you specify OneChannelPerTrack, Elastic Transcoder creates a new track + // for every channel in your output. Your output can have up to eight single-channel + // tracks. // // The outputs of OneChannelPerTrack for a specific channel value and inputs // are as follows: // - // 0 channels with any input: Audio omitted from the output 1, 2, or auto - // channels with no audio input: Audio omitted from the output 1 channel with - // any input with audio: One track with one channel, downmixed if necessary - // 2 channels with one track with one channel: Two tracks with one identical - // channel each 2 or auto channels with two tracks with one channel each: Two - // tracks with one channel each 2 or auto channels with one track with two - // channels: Two tracks with one channel each 2 channels with one track with - // multiple channels: Two tracks with one channel each auto channels with one - // track with one channel: One track with one channel auto channels with one - // track with multiple channels: Up to eight tracks with one channel each When - // you specify OneChannelPerTrackWithMosTo8Tracks, Elastic Transcoder creates + // * 0 channels with any input: Audio omitted from the output + // + // * 1, 2, or auto channels with no audio input: Audio omitted from the output + // + // * 1 channel with any input with audio: One track with one channel, downmixed + // if necessary + // + // * 2 channels with one track with one channel: Two tracks with one identical + // channel each + // + // * 2 or auto channels with two tracks with one channel each: Two tracks + // with one channel each + // + // * 2 or auto channels with one track with two channels: Two tracks with + // one channel each + // + // * 2 channels with one track with multiple channels: Two tracks with one + // channel each + // + // * auto channels with one track with one channel: One track with one channel + // + // * auto channels with one track with multiple channels: Up to eight tracks + // with one channel each + // + // When you specify OneChannelPerTrackWithMosTo8Tracks, Elastic Transcoder creates // eight single-channel tracks for your output. All tracks that do not contain // audio data from an input channel are MOS, or Mit Out Sound, tracks. // // The outputs of OneChannelPerTrackWithMosTo8Tracks for a specific channel // value and inputs are as follows: // - // 0 channels with any input: Audio omitted from the output 1, 2, or auto - // channels with no audio input: Audio omitted from the output 1 channel with - // any input with audio: One track with one channel, downmixed if necessary, - // plus six MOS tracks 2 channels with one track with one channel: Two tracks - // with one identical channel each, plus six MOS tracks 2 or auto channels - // with two tracks with one channel each: Two tracks with one channel each, - // plus six MOS tracks 2 or auto channels with one track with two channels: - // Two tracks with one channel each, plus six MOS tracks 2 channels with one - // track with multiple channels: Two tracks with one channel each, plus six - // MOS tracks auto channels with one track with one channel: One track with - // one channel, plus seven MOS tracks auto channels with one track with multiple - // channels: Up to eight tracks with one channel each, plus MOS tracks until - // there are eight tracks in all + // * 0 channels with any input: Audio omitted from the output + // + // * 1, 2, or auto channels with no audio input: Audio omitted from the output + // + // * 1 channel with any input with audio: One track with one channel, downmixed + // if necessary, plus six MOS tracks + // + // * 2 channels with one track with one channel: Two tracks with one identical + // channel each, plus six MOS tracks + // + // * 2 or auto channels with two tracks with one channel each: Two tracks + // with one channel each, plus six MOS tracks + // + // * 2 or auto channels with one track with two channels: Two tracks with + // one channel each, plus six MOS tracks + // + // * 2 channels with one track with multiple channels: Two tracks with one + // channel each, plus six MOS tracks + // + // * auto channels with one track with one channel: One track with one channel, + // plus seven MOS tracks + // + // * auto channels with one track with multiple channels: Up to eight tracks + // with one channel each, plus MOS tracks until there are eight tracks in + // all AudioPackingMode *string `type:"string"` // The bit rate of the audio stream in the output file, in kilobits/second. @@ -1794,12 +1868,18 @@ type AudioParameters struct { // // The output of a specific channel value and inputs are as follows: // - // auto channel specified, with any input: Pass through up to eight input - // channels. 0 channels specified, with any input: Audio omitted from the output. - // 1 channel specified, with at least one input channel: Mono sound. 2 channels - // specified, with any input: Two identical mono channels or stereo. For more - // information about tracks, see Audio:AudioPackingMode. For more information - // about how Elastic Transcoder organizes channels and tracks, see Audio:AudioPackingMode. + // * auto channel specified, with any input: Pass through up to eight input + // channels. + // + // * 0 channels specified, with any input: Audio omitted from the output. + // + // * 1 channel specified, with at least one input channel: Mono sound. + // + // * 2 channels specified, with any input: Two identical mono channels or + // stereo. For more information about tracks, see Audio:AudioPackingMode. + // + // For more information about how Elastic Transcoder organizes channels and + // tracks, see Audio:AudioPackingMode. Channels *string `type:"string"` // The audio codec for the output file. Valid values include aac, flac, mp2, @@ -1835,14 +1915,50 @@ func (s AudioParameters) GoString() string { return s.String() } +// SetAudioPackingMode sets the AudioPackingMode field's value. +func (s *AudioParameters) SetAudioPackingMode(v string) *AudioParameters { + s.AudioPackingMode = &v + return s +} + +// SetBitRate sets the BitRate field's value. +func (s *AudioParameters) SetBitRate(v string) *AudioParameters { + s.BitRate = &v + return s +} + +// SetChannels sets the Channels field's value. +func (s *AudioParameters) SetChannels(v string) *AudioParameters { + s.Channels = &v + return s +} + +// SetCodec sets the Codec field's value. +func (s *AudioParameters) SetCodec(v string) *AudioParameters { + s.Codec = &v + return s +} + +// SetCodecOptions sets the CodecOptions field's value. +func (s *AudioParameters) SetCodecOptions(v *AudioCodecOptions) *AudioParameters { + s.CodecOptions = v + return s +} + +// SetSampleRate sets the SampleRate field's value. +func (s *AudioParameters) SetSampleRate(v string) *AudioParameters { + s.SampleRate = &v + return s +} + // The CancelJobRequest structure. type CancelJobInput struct { _ struct{} `type:"structure"` // The identifier of the job that you want to cancel. // - // To get a list of the jobs (including their jobId) that have a status of - // Submitted, use the ListJobsByStatus API action. + // To get a list of the jobs (including their jobId) that have a status of Submitted, + // use the ListJobsByStatus API action. // // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` @@ -1871,6 +1987,12 @@ func (s *CancelJobInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *CancelJobInput) SetId(v string) *CancelJobInput { + s.Id = &v + return s +} + // The response body contains a JSON object. If the job is successfully canceled, // the value of Success is true. type CancelJobOutput struct { @@ -1899,9 +2021,9 @@ type CaptionFormat struct { // The format you specify determines whether Elastic Transcoder generates an // embedded or sidecar caption for this output. // - // Valid Embedded Caption Formats: + // * Valid Embedded Caption Formats: // - // for FLAC: None + // for FLAC: None // // For MP3: None // @@ -1913,29 +2035,33 @@ type CaptionFormat struct { // // For webm: None // - // Valid Sidecar Caption Formats: Elastic Transcoder supports dfxp (first - // div element only), scc, srt, and webvtt. If you want ttml or smpte-tt compatible - // captions, specify dfxp as your output format. + // * Valid Sidecar Caption Formats: Elastic Transcoder supports dfxp (first + // div element only), scc, srt, and webvtt. If you want ttml or smpte-tt + // compatible captions, specify dfxp as your output format. // - // For FMP4: dfxp + // For FMP4: dfxp // // Non-FMP4 outputs: All sidecar types // - // fmp4 captions have an extension of .ismt + // fmp4 captions have an extension of .ismt Format *string `type:"string"` // The prefix for caption filenames, in the form description-{language}, where: // - // description is a description of the video. {language} is a literal value - // that Elastic Transcoder replaces with the two- or three-letter code for the - // language of the caption in the output file names. If you don't include {language} - // in the file name pattern, Elastic Transcoder automatically appends "{language}" - // to the value that you specify for the description. In addition, Elastic Transcoder - // automatically appends the count to the end of the segment files. + // * description is a description of the video. + // + // * {language} is a literal value that Elastic Transcoder replaces with + // the two- or three-letter code for the language of the caption in the output + // file names. // - // For example, suppose you're transcoding into srt format. When you enter - // "Sydney-{language}-sunrise", and the language of the captions is English - // (en), the name of the first caption file will be Sydney-en-sunrise00000.srt. + // If you don't include {language} in the file name pattern, Elastic Transcoder + // automatically appends "{language}" to the value that you specify for the + // description. In addition, Elastic Transcoder automatically appends the count + // to the end of the segment files. + // + // For example, suppose you're transcoding into srt format. When you enter "Sydney-{language}-sunrise", + // and the language of the captions is English (en), the name of the first caption + // file is be Sydney-en-sunrise00000.srt. Pattern *string `type:"string"` } @@ -1949,13 +2075,32 @@ func (s CaptionFormat) GoString() string { return s.String() } +// SetEncryption sets the Encryption field's value. +func (s *CaptionFormat) SetEncryption(v *Encryption) *CaptionFormat { + s.Encryption = v + return s +} + +// SetFormat sets the Format field's value. +func (s *CaptionFormat) SetFormat(v string) *CaptionFormat { + s.Format = &v + return s +} + +// SetPattern sets the Pattern field's value. +func (s *CaptionFormat) SetPattern(v string) *CaptionFormat { + s.Pattern = &v + return s +} + // A source file for the input sidecar captions used during the transcoding // process. type CaptionSource struct { _ struct{} `type:"structure"` - // The encryption settings, if any, that you want Elastic Transcoder to apply - // to your caption sources. + // The encryption settings, if any, that Elastic Transcoder needs to decyrpt + // your caption sources, or that you want Elastic Transcoder to apply to your + // caption sources. Encryption *Encryption `type:"structure"` // The name of the sidecar caption file that you want Elastic Transcoder to @@ -1967,15 +2112,16 @@ type CaptionSource struct { // the captions. Label *string `min:"1" type:"string"` - // A string that specifies the language of the caption. Specify this as one - // of: + // A string that specifies the language of the caption. If you specified multiple + // inputs with captions, the caption language must match in order to be included + // in the output. Specify this as one of: // - // 2-character ISO 639-1 code + // * 2-character ISO 639-1 code // - // 3-character ISO 639-2 code + // * 3-character ISO 639-2 code // - // For more information on ISO language codes and language names, see the - // List of ISO 639-1 codes. + // For more information on ISO language codes and language names, see the List + // of ISO 639-1 codes. Language *string `min:"1" type:"string"` // For clip generation or captions that do not start at the same time as the @@ -2015,6 +2161,36 @@ func (s *CaptionSource) Validate() error { return nil } +// SetEncryption sets the Encryption field's value. +func (s *CaptionSource) SetEncryption(v *Encryption) *CaptionSource { + s.Encryption = v + return s +} + +// SetKey sets the Key field's value. +func (s *CaptionSource) SetKey(v string) *CaptionSource { + s.Key = &v + return s +} + +// SetLabel sets the Label field's value. +func (s *CaptionSource) SetLabel(v string) *CaptionSource { + s.Label = &v + return s +} + +// SetLanguage sets the Language field's value. +func (s *CaptionSource) SetLanguage(v string) *CaptionSource { + s.Language = &v + return s +} + +// SetTimeOffset sets the TimeOffset field's value. +func (s *CaptionSource) SetTimeOffset(v string) *CaptionSource { + s.TimeOffset = &v + return s +} + // The captions to be created, if any. type Captions struct { _ struct{} `type:"structure"` @@ -2025,27 +2201,28 @@ type Captions struct { // Source files for the input sidecar captions used during the transcoding process. // To omit all sidecar captions, leave CaptionSources blank. - CaptionSources []*CaptionSource `type:"list"` + CaptionSources []*CaptionSource `deprecated:"true" type:"list"` // A policy that determines how Elastic Transcoder handles the existence of // multiple captions. // - // MergeOverride: Elastic Transcoder transcodes both embedded and sidecar - // captions into outputs. If captions for a language are embedded in the input - // file and also appear in a sidecar file, Elastic Transcoder uses the sidecar - // captions and ignores the embedded captions for that language. + // * MergeOverride: Elastic Transcoder transcodes both embedded and sidecar + // captions into outputs. If captions for a language are embedded in the + // input file and also appear in a sidecar file, Elastic Transcoder uses + // the sidecar captions and ignores the embedded captions for that language. // - // MergeRetain: Elastic Transcoder transcodes both embedded and sidecar captions - // into outputs. If captions for a language are embedded in the input file and - // also appear in a sidecar file, Elastic Transcoder uses the embedded captions - // and ignores the sidecar captions for that language. If CaptionSources is - // empty, Elastic Transcoder omits all sidecar captions from the output files. + // * MergeRetain: Elastic Transcoder transcodes both embedded and sidecar + // captions into outputs. If captions for a language are embedded in the + // input file and also appear in a sidecar file, Elastic Transcoder uses + // the embedded captions and ignores the sidecar captions for that language. + // If CaptionSources is empty, Elastic Transcoder omits all sidecar captions + // from the output files. // - // Override: Elastic Transcoder transcodes only the sidecar captions that you - // specify in CaptionSources. + // * Override: Elastic Transcoder transcodes only the sidecar captions that + // you specify in CaptionSources. // - // MergePolicy cannot be null. - MergePolicy *string `type:"string"` + // MergePolicy cannot be null. + MergePolicy *string `deprecated:"true" type:"string"` } // String returns the string representation @@ -2078,10 +2255,28 @@ func (s *Captions) Validate() error { return nil } +// SetCaptionFormats sets the CaptionFormats field's value. +func (s *Captions) SetCaptionFormats(v []*CaptionFormat) *Captions { + s.CaptionFormats = v + return s +} + +// SetCaptionSources sets the CaptionSources field's value. +func (s *Captions) SetCaptionSources(v []*CaptionSource) *Captions { + s.CaptionSources = v + return s +} + +// SetMergePolicy sets the MergePolicy field's value. +func (s *Captions) SetMergePolicy(v string) *Captions { + s.MergePolicy = &v + return s +} + // Settings for one clip in a composition. All jobs in a playlist must have // the same clip settings. type Clip struct { - _ struct{} `type:"structure"` + _ struct{} `deprecated:"true" type:"structure"` // Settings that determine when a clip begins and how long it lasts. TimeSpan *TimeSpan `type:"structure"` @@ -2097,17 +2292,27 @@ func (s Clip) GoString() string { return s.String() } +// SetTimeSpan sets the TimeSpan field's value. +func (s *Clip) SetTimeSpan(v *TimeSpan) *Clip { + s.TimeSpan = v + return s +} + // The CreateJobRequest structure. type CreateJobInput struct { _ struct{} `type:"structure"` // A section of the request body that provides information about the file that // is being transcoded. - // - // Input is a required field - Input *JobInput `type:"structure" required:"true"` + Input *JobInput `type:"structure"` + + // A section of the request body that provides information about the files that + // are being transcoded. + Inputs []*JobInput `type:"list"` - // The CreateJobOutput structure. + // A section of the request body that provides information about the transcoded + // (target) file. We strongly recommend that you use the Outputs syntax instead + // of the Output syntax. Output *CreateJobOutput `type:"structure"` // The value, if any, that you want Elastic Transcoder to prepend to the names @@ -2138,7 +2343,7 @@ type CreateJobInput struct { // User-defined metadata that you want to associate with an Elastic Transcoder // job. You specify metadata in key/value pairs, and you can add up to 10 key/value // pairs per job. Elastic Transcoder does not guarantee that key/value pairs - // will be returned in the same order in which you specify them. + // are returned in the same order in which you specify them. UserMetadata map[string]*string `type:"map"` } @@ -2155,9 +2360,6 @@ func (s CreateJobInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *CreateJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateJobInput"} - if s.Input == nil { - invalidParams.Add(request.NewErrParamRequired("Input")) - } if s.OutputKeyPrefix != nil && len(*s.OutputKeyPrefix) < 1 { invalidParams.Add(request.NewErrParamMinLen("OutputKeyPrefix", 1)) } @@ -2169,6 +2371,16 @@ func (s *CreateJobInput) Validate() error { invalidParams.AddNested("Input", err.(request.ErrInvalidParams)) } } + if s.Inputs != nil { + for i, v := range s.Inputs { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Inputs", i), err.(request.ErrInvalidParams)) + } + } + } if s.Output != nil { if err := s.Output.Validate(); err != nil { invalidParams.AddNested("Output", err.(request.ErrInvalidParams)) @@ -2201,6 +2413,54 @@ func (s *CreateJobInput) Validate() error { return nil } +// SetInput sets the Input field's value. +func (s *CreateJobInput) SetInput(v *JobInput) *CreateJobInput { + s.Input = v + return s +} + +// SetInputs sets the Inputs field's value. +func (s *CreateJobInput) SetInputs(v []*JobInput) *CreateJobInput { + s.Inputs = v + return s +} + +// SetOutput sets the Output field's value. +func (s *CreateJobInput) SetOutput(v *CreateJobOutput) *CreateJobInput { + s.Output = v + return s +} + +// SetOutputKeyPrefix sets the OutputKeyPrefix field's value. +func (s *CreateJobInput) SetOutputKeyPrefix(v string) *CreateJobInput { + s.OutputKeyPrefix = &v + return s +} + +// SetOutputs sets the Outputs field's value. +func (s *CreateJobInput) SetOutputs(v []*CreateJobOutput) *CreateJobInput { + s.Outputs = v + return s +} + +// SetPipelineId sets the PipelineId field's value. +func (s *CreateJobInput) SetPipelineId(v string) *CreateJobInput { + s.PipelineId = &v + return s +} + +// SetPlaylists sets the Playlists field's value. +func (s *CreateJobInput) SetPlaylists(v []*CreateJobPlaylist) *CreateJobInput { + s.Playlists = v + return s +} + +// SetUserMetadata sets the UserMetadata field's value. +func (s *CreateJobInput) SetUserMetadata(v map[string]*string) *CreateJobInput { + s.UserMetadata = v + return s +} + // The CreateJobOutput structure. type CreateJobOutput struct { _ struct{} `type:"structure"` @@ -2215,30 +2475,30 @@ type CreateJobOutput struct { // from one format to another. All captions must be in UTF-8. Elastic Transcoder // supports two types of captions: // - // Embedded: Embedded captions are included in the same file as the audio - // and video. Elastic Transcoder supports only one embedded caption per language, - // to a maximum of 300 embedded captions per file. + // * Embedded: Embedded captions are included in the same file as the audio + // and video. Elastic Transcoder supports only one embedded caption per language, + // to a maximum of 300 embedded captions per file. // // Valid input values include: CEA-608 (EIA-608, first non-empty channel only), - // CEA-708 (EIA-708, first non-empty channel only), and mov-text + // CEA-708 (EIA-708, first non-empty channel only), and mov-text // // Valid outputs include: mov-text // // Elastic Transcoder supports a maximum of one embedded format per output. // - // Sidecar: Sidecar captions are kept in a separate metadata file from the - // audio and video data. Sidecar captions require a player that is capable of - // understanding the relationship between the video file and the sidecar file. - // Elastic Transcoder supports only one sidecar caption per language, to a maximum - // of 20 sidecar captions per file. + // * Sidecar: Sidecar captions are kept in a separate metadata file from + // the audio and video data. Sidecar captions require a player that is capable + // of understanding the relationship between the video file and the sidecar + // file. Elastic Transcoder supports only one sidecar caption per language, + // to a maximum of 20 sidecar captions per file. // - // Valid input values include: dfxp (first div element only), ebu-tt, scc, - // smpt, srt, ttml (first div element only), and webvtt + // Valid input values include: dfxp (first div element only), ebu-tt, scc, smpt, + // srt, ttml (first div element only), and webvtt // // Valid outputs include: dfxp (first div element only), scc, srt, and webvtt. // - // If you want ttml or smpte-tt compatible captions, specify dfxp as your - // output format. + // If you want ttml or smpte-tt compatible captions, specify dfxp as your output + // format. // // Elastic Transcoder does not support OCR (Optical Character Recognition), // does not accept pictures as a valid input for captions, and is not available @@ -2260,7 +2520,7 @@ type CreateJobOutput struct { // of the file. The Composition object contains settings for the clips that // make up an output file. For the current release, you can only specify settings // for a single clip per output file. The Composition object cannot be null. - Composition []*Clip `type:"list"` + Composition []*Clip `deprecated:"true" type:"list"` // You can specify encryption settings for any output files that you want to // use for a transcoding job. This includes the output file and any watermarks, @@ -2284,13 +2544,14 @@ type CreateJobOutput struct { // transcoding contains rotation metadata. Rotate *string `type:"string"` - // (Outputs in Fragmented MP4 or MPEG-TS format only.If you specify a preset - // in PresetId for which the value of Container is fmp4 (Fragmented MP4) or - // ts (MPEG-TS), SegmentDuration is the target maximum duration of each segment - // in seconds. For HLSv3 format playlists, each media segment is stored in a - // separate .ts file. For HLSv4 and Smooth playlists, all media segments for - // an output are stored in a single file. Each segment is approximately the - // length of the SegmentDuration, though individual segments might be shorter + // (Outputs in Fragmented MP4 or MPEG-TS format only. + // + // If you specify a preset in PresetId for which the value of Container is fmp4 + // (Fragmented MP4) or ts (MPEG-TS), SegmentDuration is the target maximum duration + // of each segment in seconds. For HLSv3 format playlists, each media segment + // is stored in a separate .ts file. For HLSv4 and Smooth playlists, all media + // segments for an output are stored in a single file. Each segment is approximately + // the length of the SegmentDuration, though individual segments might be shorter // or longer. // // The range of valid values is 1 to 60 seconds. If the duration of the video @@ -2311,27 +2572,29 @@ type CreateJobOutput struct { // // If you don't want Elastic Transcoder to create thumbnails, specify "". // - // If you do want Elastic Transcoder to create thumbnails, specify the information + // If you do want Elastic Transcoder to create thumbnails, specify the information // that you want to include in the file name for each thumbnail. You can specify // the following values in any sequence: // - // {count} (Required): If you want to create thumbnails, you must include - // {count} in the ThumbnailPattern object. Wherever you specify {count}, Elastic - // Transcoder adds a five-digit sequence number (beginning with 00001) to thumbnail - // file names. The number indicates where a given thumbnail appears in the sequence - // of thumbnails for a transcoded file. + // * {count} (Required): If you want to create thumbnails, you must include + // {count} in the ThumbnailPattern object. Wherever you specify {count}, + // Elastic Transcoder adds a five-digit sequence number (beginning with 00001) + // to thumbnail file names. The number indicates where a given thumbnail + // appears in the sequence of thumbnails for a transcoded file. // // If you specify a literal value and/or {resolution} but you omit {count}, - // Elastic Transcoder returns a validation error and does not create the job. - // Literal values (Optional): You can specify literal values anywhere in - // the ThumbnailPattern object. For example, you can include them as a file - // name prefix or as a delimiter between {resolution} and {count}. + // Elastic Transcoder returns a validation error and does not create the + // job. // - // {resolution} (Optional): If you want Elastic Transcoder to include the - // resolution in the file name, include {resolution} in the ThumbnailPattern - // object. + // * Literal values (Optional): You can specify literal values anywhere in + // the ThumbnailPattern object. For example, you can include them as a file + // name prefix or as a delimiter between {resolution} and {count}. // - // When creating thumbnails, Elastic Transcoder automatically saves the files + // * {resolution} (Optional): If you want Elastic Transcoder to include the + // resolution in the file name, include {resolution} in the ThumbnailPattern + // object. + // + // When creating thumbnails, Elastic Transcoder automatically saves the files // in the format (.jpg or .png) that appears in the preset that you specified // in the PresetID value of CreateJobOutput. Elastic Transcoder also appends // the applicable file name extension. @@ -2387,6 +2650,72 @@ func (s *CreateJobOutput) Validate() error { return nil } +// SetAlbumArt sets the AlbumArt field's value. +func (s *CreateJobOutput) SetAlbumArt(v *JobAlbumArt) *CreateJobOutput { + s.AlbumArt = v + return s +} + +// SetCaptions sets the Captions field's value. +func (s *CreateJobOutput) SetCaptions(v *Captions) *CreateJobOutput { + s.Captions = v + return s +} + +// SetComposition sets the Composition field's value. +func (s *CreateJobOutput) SetComposition(v []*Clip) *CreateJobOutput { + s.Composition = v + return s +} + +// SetEncryption sets the Encryption field's value. +func (s *CreateJobOutput) SetEncryption(v *Encryption) *CreateJobOutput { + s.Encryption = v + return s +} + +// SetKey sets the Key field's value. +func (s *CreateJobOutput) SetKey(v string) *CreateJobOutput { + s.Key = &v + return s +} + +// SetPresetId sets the PresetId field's value. +func (s *CreateJobOutput) SetPresetId(v string) *CreateJobOutput { + s.PresetId = &v + return s +} + +// SetRotate sets the Rotate field's value. +func (s *CreateJobOutput) SetRotate(v string) *CreateJobOutput { + s.Rotate = &v + return s +} + +// SetSegmentDuration sets the SegmentDuration field's value. +func (s *CreateJobOutput) SetSegmentDuration(v string) *CreateJobOutput { + s.SegmentDuration = &v + return s +} + +// SetThumbnailEncryption sets the ThumbnailEncryption field's value. +func (s *CreateJobOutput) SetThumbnailEncryption(v *Encryption) *CreateJobOutput { + s.ThumbnailEncryption = v + return s +} + +// SetThumbnailPattern sets the ThumbnailPattern field's value. +func (s *CreateJobOutput) SetThumbnailPattern(v string) *CreateJobOutput { + s.ThumbnailPattern = &v + return s +} + +// SetWatermarks sets the Watermarks field's value. +func (s *CreateJobOutput) SetWatermarks(v []*JobWatermark) *CreateJobOutput { + s.Watermarks = v + return s +} + // Information about the master playlist. type CreateJobPlaylist struct { _ struct{} `type:"structure"` @@ -2405,33 +2734,33 @@ type CreateJobPlaylist struct { // you create more than one master playlist, the values of all Name objects // must be unique. // - // Note: Elastic Transcoder automatically appends the relevant file extension - // to the file name (.m3u8 for HLSv3 and HLSv4 playlists, and .ism and .ismc - // for Smooth playlists). If you include a file extension in Name, the file - // name will have two extensions. + // Elastic Transcoder automatically appends the relevant file extension to the + // file name (.m3u8 for HLSv3 and HLSv4 playlists, and .ism and .ismc for Smooth + // playlists). If you include a file extension in Name, the file name will have + // two extensions. Name *string `min:"1" type:"string"` // For each output in this job that you want to include in a master playlist, // the value of the Outputs:Key object. // - // If your output is not HLS or does not have a segment duration set, the - // name of the output file is a concatenation of OutputKeyPrefix and Outputs:Key: + // * If your output is not HLS or does not have a segment duration set, the + // name of the output file is a concatenation of OutputKeyPrefix and Outputs:Key: // // OutputKeyPrefixOutputs:Key // - // If your output is HLSv3 and has a segment duration set, or is not included - // in a playlist, Elastic Transcoder creates an output playlist file with a - // file extension of .m3u8, and a series of .ts files that include a five-digit - // sequential counter beginning with 00000: + // * If your output is HLSv3 and has a segment duration set, or is not included + // in a playlist, Elastic Transcoder creates an output playlist file with + // a file extension of .m3u8, and a series of .ts files that include a five-digit + // sequential counter beginning with 00000: // // OutputKeyPrefixOutputs:Key.m3u8 // // OutputKeyPrefixOutputs:Key00000.ts // - // If your output is HLSv4, has a segment duration set, and is included in - // an HLSv4 playlist, Elastic Transcoder creates an output playlist file with - // a file extension of _v4.m3u8. If the output is video, Elastic Transcoder - // also creates an output file with an extension of _iframe.m3u8: + // * If your output is HLSv4, has a segment duration set, and is included + // in an HLSv4 playlist, Elastic Transcoder creates an output playlist file + // with a file extension of _v4.m3u8. If the output is video, Elastic Transcoder + // also creates an output file with an extension of _iframe.m3u8: // // OutputKeyPrefixOutputs:Key_v4.m3u8 // @@ -2439,15 +2768,14 @@ type CreateJobPlaylist struct { // // OutputKeyPrefixOutputs:Key.ts // - // Elastic Transcoder automatically appends the relevant file extension to - // the file name. If you include a file extension in Output Key, the file name - // will have two extensions. + // Elastic Transcoder automatically appends the relevant file extension to the + // file name. If you include a file extension in Output Key, the file name will + // have two extensions. // - // If you include more than one output in a playlist, any segment duration - // settings, clip settings, or caption settings must be the same for all outputs - // in the playlist. For Smooth playlists, the Audio:Profile, Video:Profile, - // and Video:FrameRate to Video:KeyframesMaxDist ratio must be the same for - // all outputs. + // If you include more than one output in a playlist, any segment duration settings, + // clip settings, or caption settings must be the same for all outputs in the + // playlist. For Smooth playlists, the Audio:Profile, Video:Profile, and Video:FrameRate + // to Video:KeyframesMaxDist ratio must be the same for all outputs. OutputKeys []*string `type:"list"` // The DRM settings, if any, that you want Elastic Transcoder to apply to the @@ -2483,6 +2811,36 @@ func (s *CreateJobPlaylist) Validate() error { return nil } +// SetFormat sets the Format field's value. +func (s *CreateJobPlaylist) SetFormat(v string) *CreateJobPlaylist { + s.Format = &v + return s +} + +// SetHlsContentProtection sets the HlsContentProtection field's value. +func (s *CreateJobPlaylist) SetHlsContentProtection(v *HlsContentProtection) *CreateJobPlaylist { + s.HlsContentProtection = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateJobPlaylist) SetName(v string) *CreateJobPlaylist { + s.Name = &v + return s +} + +// SetOutputKeys sets the OutputKeys field's value. +func (s *CreateJobPlaylist) SetOutputKeys(v []*string) *CreateJobPlaylist { + s.OutputKeys = v + return s +} + +// SetPlayReadyDrm sets the PlayReadyDrm field's value. +func (s *CreateJobPlaylist) SetPlayReadyDrm(v *PlayReadyDrm) *CreateJobPlaylist { + s.PlayReadyDrm = v + return s +} + // The CreateJobResponse structure. type CreateJobResponse struct { _ struct{} `type:"structure"` @@ -2502,6 +2860,12 @@ func (s CreateJobResponse) GoString() string { return s.String() } +// SetJob sets the Job field's value. +func (s *CreateJobResponse) SetJob(v *Job) *CreateJobResponse { + s.Job = v + return s +} + // The CreatePipelineRequest structure. type CreatePipelineInput struct { _ struct{} `type:"structure"` @@ -2528,39 +2892,59 @@ type CreatePipelineInput struct { // If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket // object. // - // Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save - // transcoded files and playlists. Permissions (Optional): The Permissions object - // specifies which users you want to have access to transcoded files and the - // type of access you want them to have. You can grant permissions to a maximum - // of 30 users and/or predefined Amazon S3 groups. Grantee Type: Specify the - // type of value that appears in the Grantee object: Canonical: The value in - // the Grantee object is either the canonical user ID for an AWS account or - // an origin access identity for an Amazon CloudFront distribution. For more - // information about canonical user IDs, see Access Control List (ACL) Overview - // in the Amazon Simple Storage Service Developer Guide. For more information - // about using CloudFront origin access identities to require that users use - // CloudFront URLs instead of Amazon S3 URLs, see Using an Origin Access Identity - // to Restrict Access to Your Amazon S3 Content. A canonical user ID is not - // the same as an AWS account number. Email: The value in the Grantee object - // is the registered email address of an AWS account. Group: The value in the - // Grantee object is one of the following predefined Amazon S3 groups: AllUsers, - // AuthenticatedUsers, or LogDelivery. Grantee: The AWS user or group that - // you want to have access to transcoded files and playlists. To identify the - // user or group, you can specify the canonical user ID for an AWS account, - // an origin access identity for a CloudFront distribution, the registered email - // address of an AWS account, or a predefined Amazon S3 group Access: The - // permission that you want to give to the AWS user that you specified in Grantee. - // Permissions are granted on the files that Elastic Transcoder adds to the - // bucket, including playlists and video files. Valid values include: READ: - // The grantee can read the objects and metadata for objects that Elastic Transcoder - // adds to the Amazon S3 bucket. READ_ACP: The grantee can read the object ACL - // for objects that Elastic Transcoder adds to the Amazon S3 bucket. WRITE_ACP: - // The grantee can write the ACL for the objects that Elastic Transcoder adds - // to the Amazon S3 bucket. FULL_CONTROL: The grantee has READ, READ_ACP, and - // WRITE_ACP permissions for the objects that Elastic Transcoder adds to the - // Amazon S3 bucket. StorageClass: The Amazon S3 storage class, Standard - // or ReducedRedundancy, that you want Elastic Transcoder to assign to the video - // files and playlists that it stores in your Amazon S3 bucket. + // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to + // save transcoded files and playlists. + // + // * Permissions (Optional): The Permissions object specifies which users + // you want to have access to transcoded files and the type of access you + // want them to have. You can grant permissions to a maximum of 30 users + // and/or predefined Amazon S3 groups. + // + // * Grantee Type: Specify the type of value that appears in the Grantee + // object: + // + // Canonical: The value in the Grantee object is either the canonical user ID + // for an AWS account or an origin access identity for an Amazon CloudFront + // distribution. For more information about canonical user IDs, see Access + // Control List (ACL) Overview in the Amazon Simple Storage Service Developer + // Guide. For more information about using CloudFront origin access identities + // to require that users use CloudFront URLs instead of Amazon S3 URLs, see + // Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content. + // + // A canonical user ID is not the same as an AWS account number. + // + // Email: The value in the Grantee object is the registered email address of + // an AWS account. + // + // Group: The value in the Grantee object is one of the following predefined + // Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery. + // + // * Grantee: The AWS user or group that you want to have access to transcoded + // files and playlists. To identify the user or group, you can specify the + // canonical user ID for an AWS account, an origin access identity for a + // CloudFront distribution, the registered email address of an AWS account, + // or a predefined Amazon S3 group + // + // * Access: The permission that you want to give to the AWS user that you + // specified in Grantee. Permissions are granted on the files that Elastic + // Transcoder adds to the bucket, including playlists and video files. Valid + // values include: + // + // READ: The grantee can read the objects and metadata for objects that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // READ_ACP: The grantee can read the object ACL for objects that Elastic Transcoder + // adds to the Amazon S3 bucket. + // + // WRITE_ACP: The grantee can write the ACL for the objects that Elastic Transcoder + // adds to the Amazon S3 bucket. + // + // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for + // the objects that Elastic Transcoder adds to the Amazon S3 bucket. + // + // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, + // that you want Elastic Transcoder to assign to the video files and playlists + // that it stores in your Amazon S3 bucket. ContentConfig *PipelineOutputConfig `type:"structure"` // The Amazon S3 bucket in which you saved the media files that you want to @@ -2581,38 +2965,53 @@ type CreatePipelineInput struct { // notify to report job status. // // To receive notifications, you must also subscribe to the new topic in the - // Amazon SNS console. Progressing: The topic ARN for the Amazon Simple Notification - // Service (Amazon SNS) topic that you want to notify when Elastic Transcoder - // has started to process a job in this pipeline. This is the ARN that Amazon - // SNS returned when you created the topic. For more information, see Create - // a Topic in the Amazon Simple Notification Service Developer Guide. Completed: - // The topic ARN for the Amazon SNS topic that you want to notify when Elastic - // Transcoder has finished processing a job in this pipeline. This is the ARN - // that Amazon SNS returned when you created the topic. Warning: The topic ARN - // for the Amazon SNS topic that you want to notify when Elastic Transcoder - // encounters a warning condition while processing a job in this pipeline. This - // is the ARN that Amazon SNS returned when you created the topic. Error: The - // topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder - // encounters an error condition while processing a job in this pipeline. This - // is the ARN that Amazon SNS returned when you created the topic. + // Amazon SNS console. + // + // * Progressing: The topic ARN for the Amazon Simple Notification Service + // (Amazon SNS) topic that you want to notify when Elastic Transcoder has + // started to process a job in this pipeline. This is the ARN that Amazon + // SNS returned when you created the topic. For more information, see Create + // a Topic in the Amazon Simple Notification Service Developer Guide. + // + // * Completed: The topic ARN for the Amazon SNS topic that you want to notify + // when Elastic Transcoder has finished processing a job in this pipeline. + // This is the ARN that Amazon SNS returned when you created the topic. + // + // * Warning: The topic ARN for the Amazon SNS topic that you want to notify + // when Elastic Transcoder encounters a warning condition while processing + // a job in this pipeline. This is the ARN that Amazon SNS returned when + // you created the topic. + // + // * Error: The topic ARN for the Amazon SNS topic that you want to notify + // when Elastic Transcoder encounters an error condition while processing + // a job in this pipeline. This is the ARN that Amazon SNS returned when + // you created the topic. Notifications *Notifications `type:"structure"` // The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded // files. (Use this, or use ContentConfig:Bucket plus ThumbnailConfig:Bucket.) // - // Specify this value when all of the following are true: You want to save - // transcoded files, thumbnails (if any), and playlists (if any) together in - // one bucket. You do not want to specify the users or groups who have access - // to the transcoded files, thumbnails, and playlists. You do not want to specify - // the permissions that Elastic Transcoder grants to the files. When Elastic - // Transcoder saves files in OutputBucket, it grants full control over the files - // only to the AWS account that owns the role that is specified by Role. You - // want to associate the transcoded files and thumbnails with the Amazon S3 - // Standard storage class. + // Specify this value when all of the following are true: // - // If you want to save transcoded files and playlists in one bucket and thumbnails - // in another bucket, specify which users can access the transcoded files or - // the permissions the users have, or change the Amazon S3 storage class, omit + // * You want to save transcoded files, thumbnails (if any), and playlists + // (if any) together in one bucket. + // + // * You do not want to specify the users or groups who have access to the + // transcoded files, thumbnails, and playlists. + // + // * You do not want to specify the permissions that Elastic Transcoder grants + // to the files. + // + // When Elastic Transcoder saves files in OutputBucket, it grants full control + // over the files only to the AWS account that owns the role that is specified + // by Role. + // + // * You want to associate the transcoded files and thumbnails with the Amazon + // S3 Standard storage class. + // + // If you want to save transcoded files and playlists in one bucket and thumbnails + // in another bucket, specify which users can access the transcoded files or + // the permissions the users have, or change the Amazon S3 storage class, omit // OutputBucket and specify values for ContentConfig and ThumbnailConfig instead. OutputBucket *string `type:"string"` @@ -2633,34 +3032,54 @@ type CreatePipelineInput struct { // If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket // object. // - // Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save - // thumbnail files. Permissions (Optional): The Permissions object specifies - // which users and/or predefined Amazon S3 groups you want to have access to - // thumbnail files, and the type of access you want them to have. You can grant - // permissions to a maximum of 30 users and/or predefined Amazon S3 groups. - // GranteeType: Specify the type of value that appears in the Grantee object: - // Canonical: The value in the Grantee object is either the canonical user - // ID for an AWS account or an origin access identity for an Amazon CloudFront - // distribution. A canonical user ID is not the same as an AWS account number. + // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to + // save thumbnail files. + // + // * Permissions (Optional): The Permissions object specifies which users + // and/or predefined Amazon S3 groups you want to have access to thumbnail + // files, and the type of access you want them to have. You can grant permissions + // to a maximum of 30 users and/or predefined Amazon S3 groups. + // + // * GranteeType: Specify the type of value that appears in the Grantee object: + // + // + // Canonical: The value in the Grantee object is either the canonical user ID + // for an AWS account or an origin access identity for an Amazon CloudFront + // distribution. + // + // A canonical user ID is not the same as an AWS account number. + // // Email: The value in the Grantee object is the registered email address of - // an AWS account. Group: The value in the Grantee object is one of the following - // predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery. - // Grantee: The AWS user or group that you want to have access to thumbnail - // files. To identify the user or group, you can specify the canonical user - // ID for an AWS account, an origin access identity for a CloudFront distribution, - // the registered email address of an AWS account, or a predefined Amazon S3 - // group. Access: The permission that you want to give to the AWS user that - // you specified in Grantee. Permissions are granted on the thumbnail files - // that Elastic Transcoder adds to the bucket. Valid values include: READ: - // The grantee can read the thumbnails and metadata for objects that Elastic - // Transcoder adds to the Amazon S3 bucket. READ_ACP: The grantee can read the - // object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. - // WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic - // Transcoder adds to the Amazon S3 bucket. FULL_CONTROL: The grantee has READ, - // READ_ACP, and WRITE_ACP permissions for the thumbnails that Elastic Transcoder - // adds to the Amazon S3 bucket. StorageClass: The Amazon S3 storage class, - // Standard or ReducedRedundancy, that you want Elastic Transcoder to assign - // to the thumbnails that it stores in your Amazon S3 bucket. + // an AWS account. + // + // Group: The value in the Grantee object is one of the following predefined + // Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery. + // + // * Grantee: The AWS user or group that you want to have access to thumbnail + // files. To identify the user or group, you can specify the canonical user + // ID for an AWS account, an origin access identity for a CloudFront distribution, + // the registered email address of an AWS account, or a predefined Amazon + // S3 group. + // + // * Access: The permission that you want to give to the AWS user that you + // specified in Grantee. Permissions are granted on the thumbnail files that + // Elastic Transcoder adds to the bucket. Valid values include: + // + // READ: The grantee can read the thumbnails and metadata for objects that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // READ_ACP: The grantee can read the object ACL for thumbnails that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for + // the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. + // + // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, + // that you want Elastic Transcoder to assign to the thumbnails that it stores + // in your Amazon S3 bucket. ThumbnailConfig *PipelineOutputConfig `type:"structure"` } @@ -2706,6 +3125,54 @@ func (s *CreatePipelineInput) Validate() error { return nil } +// SetAwsKmsKeyArn sets the AwsKmsKeyArn field's value. +func (s *CreatePipelineInput) SetAwsKmsKeyArn(v string) *CreatePipelineInput { + s.AwsKmsKeyArn = &v + return s +} + +// SetContentConfig sets the ContentConfig field's value. +func (s *CreatePipelineInput) SetContentConfig(v *PipelineOutputConfig) *CreatePipelineInput { + s.ContentConfig = v + return s +} + +// SetInputBucket sets the InputBucket field's value. +func (s *CreatePipelineInput) SetInputBucket(v string) *CreatePipelineInput { + s.InputBucket = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreatePipelineInput) SetName(v string) *CreatePipelineInput { + s.Name = &v + return s +} + +// SetNotifications sets the Notifications field's value. +func (s *CreatePipelineInput) SetNotifications(v *Notifications) *CreatePipelineInput { + s.Notifications = v + return s +} + +// SetOutputBucket sets the OutputBucket field's value. +func (s *CreatePipelineInput) SetOutputBucket(v string) *CreatePipelineInput { + s.OutputBucket = &v + return s +} + +// SetRole sets the Role field's value. +func (s *CreatePipelineInput) SetRole(v string) *CreatePipelineInput { + s.Role = &v + return s +} + +// SetThumbnailConfig sets the ThumbnailConfig field's value. +func (s *CreatePipelineInput) SetThumbnailConfig(v *PipelineOutputConfig) *CreatePipelineInput { + s.ThumbnailConfig = v + return s +} + // When you create a pipeline, Elastic Transcoder returns the values that you // specified in the request. type CreatePipelineOutput struct { @@ -2734,6 +3201,18 @@ func (s CreatePipelineOutput) GoString() string { return s.String() } +// SetPipeline sets the Pipeline field's value. +func (s *CreatePipelineOutput) SetPipeline(v *Pipeline) *CreatePipelineOutput { + s.Pipeline = v + return s +} + +// SetWarnings sets the Warnings field's value. +func (s *CreatePipelineOutput) SetWarnings(v []*Warning) *CreatePipelineOutput { + s.Warnings = v + return s +} + // The CreatePresetRequest structure. type CreatePresetInput struct { _ struct{} `type:"structure"` @@ -2798,6 +3277,42 @@ func (s *CreatePresetInput) Validate() error { return nil } +// SetAudio sets the Audio field's value. +func (s *CreatePresetInput) SetAudio(v *AudioParameters) *CreatePresetInput { + s.Audio = v + return s +} + +// SetContainer sets the Container field's value. +func (s *CreatePresetInput) SetContainer(v string) *CreatePresetInput { + s.Container = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreatePresetInput) SetDescription(v string) *CreatePresetInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreatePresetInput) SetName(v string) *CreatePresetInput { + s.Name = &v + return s +} + +// SetThumbnails sets the Thumbnails field's value. +func (s *CreatePresetInput) SetThumbnails(v *Thumbnails) *CreatePresetInput { + s.Thumbnails = v + return s +} + +// SetVideo sets the Video field's value. +func (s *CreatePresetInput) SetVideo(v *VideoParameters) *CreatePresetInput { + s.Video = v + return s +} + // The CreatePresetResponse structure. type CreatePresetOutput struct { _ struct{} `type:"structure"` @@ -2823,6 +3338,18 @@ func (s CreatePresetOutput) GoString() string { return s.String() } +// SetPreset sets the Preset field's value. +func (s *CreatePresetOutput) SetPreset(v *Preset) *CreatePresetOutput { + s.Preset = v + return s +} + +// SetWarning sets the Warning field's value. +func (s *CreatePresetOutput) SetWarning(v string) *CreatePresetOutput { + s.Warning = &v + return s +} + // The DeletePipelineRequest structure. type DeletePipelineInput struct { _ struct{} `type:"structure"` @@ -2856,6 +3383,12 @@ func (s *DeletePipelineInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *DeletePipelineInput) SetId(v string) *DeletePipelineInput { + s.Id = &v + return s +} + // The DeletePipelineResponse structure. type DeletePipelineOutput struct { _ struct{} `type:"structure"` @@ -2904,6 +3437,12 @@ func (s *DeletePresetInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *DeletePresetInput) SetId(v string) *DeletePresetInput { + s.Id = &v + return s +} + // The DeletePresetResponse structure. type DeletePresetOutput struct { _ struct{} `type:"structure"` @@ -2950,9 +3489,39 @@ func (s DetectedProperties) GoString() string { return s.String() } +// SetDurationMillis sets the DurationMillis field's value. +func (s *DetectedProperties) SetDurationMillis(v int64) *DetectedProperties { + s.DurationMillis = &v + return s +} + +// SetFileSize sets the FileSize field's value. +func (s *DetectedProperties) SetFileSize(v int64) *DetectedProperties { + s.FileSize = &v + return s +} + +// SetFrameRate sets the FrameRate field's value. +func (s *DetectedProperties) SetFrameRate(v string) *DetectedProperties { + s.FrameRate = &v + return s +} + +// SetHeight sets the Height field's value. +func (s *DetectedProperties) SetHeight(v int64) *DetectedProperties { + s.Height = &v + return s +} + +// SetWidth sets the Width field's value. +func (s *DetectedProperties) SetWidth(v int64) *DetectedProperties { + s.Width = &v + return s +} + // The encryption settings, if any, that are used for decrypting your input // files or encrypting your output files. If your input file is encrypted, you -// must specify the mode that Elastic Transcoder will use to decrypt your file, +// must specify the mode that Elastic Transcoder uses to decrypt your file, // otherwise you must specify the mode you want Elastic Transcoder to use to // encrypt your output files. type Encryption struct { @@ -2986,32 +3555,33 @@ type Encryption struct { // to use when decrypting your input files or encrypting your output files. // Elastic Transcoder supports the following options: // - // S3: Amazon S3 creates and manages the keys used for encrypting your files. + // * S3: Amazon S3 creates and manages the keys used for encrypting your + // files. // - // S3-AWS-KMS: Amazon S3 calls the Amazon Key Management Service, which creates - // and manages the keys that are used for encrypting your files. If you specify - // S3-AWS-KMS and you don't want to use the default key, you must add the AWS-KMS - // key that you want to use to your pipeline. + // * S3-AWS-KMS: Amazon S3 calls the Amazon Key Management Service, which + // creates and manages the keys that are used for encrypting your files. + // If you specify S3-AWS-KMS and you don't want to use the default key, you + // must add the AWS-KMS key that you want to use to your pipeline. // - // AES-CBC-PKCS7: A padded cipher-block mode of operation originally used for - // HLS files. + // * AES-CBC-PKCS7: A padded cipher-block mode of operation originally used + // for HLS files. // - // AES-CTR: AES Counter Mode. + // * AES-CTR: AES Counter Mode. // - // AES-GCM: AES Galois Counter Mode, a mode of operation that is an authenticated - // encryption format, meaning that a file, key, or initialization vector that - // has been tampered with will fail the decryption process. + // * AES-GCM: AES Galois Counter Mode, a mode of operation that is an authenticated + // encryption format, meaning that a file, key, or initialization vector + // that has been tampered with fails the decryption process. // - // For all three AES options, you must provide the following settings, which + // For all three AES options, you must provide the following settings, which // must be base64-encoded: // - // Key + // * Key // - // Key MD5 + // * Key MD5 // - // Initialization Vector + // * Initialization Vector // - // For the AES modes, your private encryption keys and your unencrypted data + // For the AES modes, your private encryption keys and your unencrypted data // are never stored by AWS; therefore, it is important that you safely manage // your encryption keys. If you lose them, you won't be able to unencrypt your // data. @@ -3028,6 +3598,30 @@ func (s Encryption) GoString() string { return s.String() } +// SetInitializationVector sets the InitializationVector field's value. +func (s *Encryption) SetInitializationVector(v string) *Encryption { + s.InitializationVector = &v + return s +} + +// SetKey sets the Key field's value. +func (s *Encryption) SetKey(v string) *Encryption { + s.Key = &v + return s +} + +// SetKeyMd5 sets the KeyMd5 field's value. +func (s *Encryption) SetKeyMd5(v string) *Encryption { + s.KeyMd5 = &v + return s +} + +// SetMode sets the Mode field's value. +func (s *Encryption) SetMode(v string) *Encryption { + s.Mode = &v + return s +} + // The HLS content protection settings, if any, that you want Elastic Transcoder // to apply to your output files. type HlsContentProtection struct { @@ -3036,8 +3630,8 @@ type HlsContentProtection struct { // If Elastic Transcoder is generating your key for you, you must leave this // field blank. // - // The series of random bits created by a random bit generator, unique for - // every encryption operation, that you want Elastic Transcoder to use to encrypt + // The series of random bits created by a random bit generator, unique for every + // encryption operation, that you want Elastic Transcoder to use to encrypt // your output files. The initialization vector must be base64-encoded, and // it must be exactly 16 bytes before being base64-encoded. InitializationVector *string `type:"string"` @@ -3045,8 +3639,8 @@ type HlsContentProtection struct { // If you want Elastic Transcoder to generate a key for you, leave this field // blank. // - // If you choose to supply your own key, you must encrypt the key by using - // AWS KMS. The key must be base64-encoded, and it must be one of the following + // If you choose to supply your own key, you must encrypt the key by using AWS + // KMS. The key must be base64-encoded, and it must be one of the following // bit lengths before being base64-encoded: // // 128, 192, or 256. @@ -3074,7 +3668,7 @@ type HlsContentProtection struct { // The content protection method for your output. The only valid value is: aes-128. // - // This value will be written into the method attribute of the EXT-X-KEY metadata + // This value is written into the method attribute of the EXT-X-KEY metadata // tag in the output playlist. Method *string `type:"string"` } @@ -3089,6 +3683,114 @@ func (s HlsContentProtection) GoString() string { return s.String() } +// SetInitializationVector sets the InitializationVector field's value. +func (s *HlsContentProtection) SetInitializationVector(v string) *HlsContentProtection { + s.InitializationVector = &v + return s +} + +// SetKey sets the Key field's value. +func (s *HlsContentProtection) SetKey(v string) *HlsContentProtection { + s.Key = &v + return s +} + +// SetKeyMd5 sets the KeyMd5 field's value. +func (s *HlsContentProtection) SetKeyMd5(v string) *HlsContentProtection { + s.KeyMd5 = &v + return s +} + +// SetKeyStoragePolicy sets the KeyStoragePolicy field's value. +func (s *HlsContentProtection) SetKeyStoragePolicy(v string) *HlsContentProtection { + s.KeyStoragePolicy = &v + return s +} + +// SetLicenseAcquisitionUrl sets the LicenseAcquisitionUrl field's value. +func (s *HlsContentProtection) SetLicenseAcquisitionUrl(v string) *HlsContentProtection { + s.LicenseAcquisitionUrl = &v + return s +} + +// SetMethod sets the Method field's value. +func (s *HlsContentProtection) SetMethod(v string) *HlsContentProtection { + s.Method = &v + return s +} + +// The captions to be created, if any. +type InputCaptions struct { + _ struct{} `type:"structure"` + + // Source files for the input sidecar captions used during the transcoding process. + // To omit all sidecar captions, leave CaptionSources blank. + CaptionSources []*CaptionSource `type:"list"` + + // A policy that determines how Elastic Transcoder handles the existence of + // multiple captions. + // + // * MergeOverride: Elastic Transcoder transcodes both embedded and sidecar + // captions into outputs. If captions for a language are embedded in the + // input file and also appear in a sidecar file, Elastic Transcoder uses + // the sidecar captions and ignores the embedded captions for that language. + // + // * MergeRetain: Elastic Transcoder transcodes both embedded and sidecar + // captions into outputs. If captions for a language are embedded in the + // input file and also appear in a sidecar file, Elastic Transcoder uses + // the embedded captions and ignores the sidecar captions for that language. + // If CaptionSources is empty, Elastic Transcoder omits all sidecar captions + // from the output files. + // + // * Override: Elastic Transcoder transcodes only the sidecar captions that + // you specify in CaptionSources. + // + // MergePolicy cannot be null. + MergePolicy *string `type:"string"` +} + +// String returns the string representation +func (s InputCaptions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InputCaptions) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputCaptions) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputCaptions"} + if s.CaptionSources != nil { + for i, v := range s.CaptionSources { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CaptionSources", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCaptionSources sets the CaptionSources field's value. +func (s *InputCaptions) SetCaptionSources(v []*CaptionSource) *InputCaptions { + s.CaptionSources = v + return s +} + +// SetMergePolicy sets the MergePolicy field's value. +func (s *InputCaptions) SetMergePolicy(v string) *InputCaptions { + s.MergePolicy = &v + return s +} + // A section of the response body that provides information about the job that // is created. type Job struct { @@ -3105,13 +3807,20 @@ type Job struct { // the file that is being transcoded. Input *JobInput `type:"structure"` + // Information about the files that you're transcoding. If you specified multiple + // files for this job, Elastic Transcoder stitches the files together to make + // one output. + Inputs []*JobInput `type:"list"` + // If you specified one output for a job, information about that output. If // you specified multiple outputs for a job, the Output object lists information // about the first output. This duplicates the information that is listed for // the first output in the Outputs object. // - // Outputs recommended instead. A section of the request or response body that - // provides information about the transcoded (target) file. + // Outputs recommended instead. + // + // A section of the request or response body that provides information about + // the transcoded (target) file. Output *JobOutput `type:"structure"` // The value, if any, that you want Elastic Transcoder to prepend to the names @@ -3125,7 +3834,7 @@ type Job struct { // file into only one format. Do not use both the Outputs and Output syntaxes // in the same request. You can create a maximum of 30 outputs per job. // - // If you specify more than one output for a job, Elastic Transcoder creates + // If you specify more than one output for a job, Elastic Transcoder creates // the files for each output in the order in which you specify them in the job. Outputs []*JobOutput `type:"list"` @@ -3135,10 +3844,11 @@ type Job struct { // into which Elastic Transcoder puts the transcoded files. PipelineId *string `type:"string"` - // Outputs in Fragmented MP4 or MPEG-TS format only.If you specify a preset - // in PresetId for which the value of Container is fmp4 (Fragmented MP4) or - // ts (MPEG-TS), Playlists contains information about the master playlists that - // you want Elastic Transcoder to create. + // Outputs in Fragmented MP4 or MPEG-TS format only. + // + // If you specify a preset in PresetId for which the value of Container is fmp4 + // (Fragmented MP4) or ts (MPEG-TS), Playlists contains information about the + // master playlists that you want Elastic Transcoder to create. // // The maximum number of master playlists in a job is 30. Playlists []*Playlist `type:"list"` @@ -3152,17 +3862,17 @@ type Job struct { // User-defined metadata that you want to associate with an Elastic Transcoder // job. You specify metadata in key/value pairs, and you can add up to 10 key/value // pairs per job. Elastic Transcoder does not guarantee that key/value pairs - // will be returned in the same order in which you specify them. + // are returned in the same order in which you specify them. // // Metadata keys and values must use characters from the following list: // - // 0-9 + // * 0-9 // - // A-Z and a-z + // * A-Z and a-z // - // Space + // * Space // - // The following symbols: _.:/=+-%@ + // * The following symbols: _.:/=+-%@ UserMetadata map[string]*string `type:"map"` } @@ -3176,6 +3886,78 @@ func (s Job) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Job) SetArn(v string) *Job { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *Job) SetId(v string) *Job { + s.Id = &v + return s +} + +// SetInput sets the Input field's value. +func (s *Job) SetInput(v *JobInput) *Job { + s.Input = v + return s +} + +// SetInputs sets the Inputs field's value. +func (s *Job) SetInputs(v []*JobInput) *Job { + s.Inputs = v + return s +} + +// SetOutput sets the Output field's value. +func (s *Job) SetOutput(v *JobOutput) *Job { + s.Output = v + return s +} + +// SetOutputKeyPrefix sets the OutputKeyPrefix field's value. +func (s *Job) SetOutputKeyPrefix(v string) *Job { + s.OutputKeyPrefix = &v + return s +} + +// SetOutputs sets the Outputs field's value. +func (s *Job) SetOutputs(v []*JobOutput) *Job { + s.Outputs = v + return s +} + +// SetPipelineId sets the PipelineId field's value. +func (s *Job) SetPipelineId(v string) *Job { + s.PipelineId = &v + return s +} + +// SetPlaylists sets the Playlists field's value. +func (s *Job) SetPlaylists(v []*Playlist) *Job { + s.Playlists = v + return s +} + +// SetStatus sets the Status field's value. +func (s *Job) SetStatus(v string) *Job { + s.Status = &v + return s +} + +// SetTiming sets the Timing field's value. +func (s *Job) SetTiming(v *Timing) *Job { + s.Timing = v + return s +} + +// SetUserMetadata sets the UserMetadata field's value. +func (s *Job) SetUserMetadata(v map[string]*string) *Job { + s.UserMetadata = v + return s +} + // The .jpg or .png file associated with an audio file. type JobAlbumArt struct { _ struct{} `type:"structure"` @@ -3184,16 +3966,19 @@ type JobAlbumArt struct { // with an audio file, to a maximum of 20. Valid formats are .jpg and .png Artwork []*Artwork `type:"list"` - // A policy that determines how Elastic Transcoder will handle the existence - // of multiple album artwork files. + // A policy that determines how Elastic Transcoder handles the existence of + // multiple album artwork files. + // + // * Replace: The specified album art replaces any existing album art. + // + // * Prepend: The specified album art is placed in front of any existing + // album art. + // + // * Append: The specified album art is placed after any existing album art. // - // Replace: The specified album art will replace any existing album art. - // Prepend: The specified album art will be placed in front of any existing - // album art. Append: The specified album art will be placed after any existing - // album art. Fallback: If the original input file contains artwork, Elastic - // Transcoder will use that artwork for the output. If the original input does - // not contain artwork, Elastic Transcoder will use the specified album art - // file. + // * Fallback: If the original input file contains artwork, Elastic Transcoder + // uses that artwork for the output. If the original input does not contain + // artwork, Elastic Transcoder uses the specified album art file. MergePolicy *string `type:"string"` } @@ -3227,6 +4012,18 @@ func (s *JobAlbumArt) Validate() error { return nil } +// SetArtwork sets the Artwork field's value. +func (s *JobAlbumArt) SetArtwork(v []*Artwork) *JobAlbumArt { + s.Artwork = v + return s +} + +// SetMergePolicy sets the MergePolicy field's value. +func (s *JobAlbumArt) SetMergePolicy(v string) *JobAlbumArt { + s.MergePolicy = &v + return s +} + // Information about the file that you're transcoding. type JobInput struct { _ struct{} `type:"structure"` @@ -3235,9 +4032,9 @@ type JobInput struct { // detect the aspect ratio of the input file, specify auto. If you want to specify // the aspect ratio for the output file, enter one of the following values: // - // 1:1, 4:3, 3:2, 16:9 + // 1:1, 4:3, 3:2, 16:9 // - // If you specify a value other than auto, Elastic Transcoder disables automatic + // If you specify a value other than auto, Elastic Transcoder disables automatic // detection of the aspect ratio. AspectRatio *string `type:"string"` @@ -3246,8 +4043,8 @@ type JobInput struct { // If you want to specify the container type for the input file, enter one of // the following values: // - // 3gp, aac, asf, avi, divx, flv, m4a, mkv, mov, mp3, mp4, mpeg, mpeg-ps, - // mpeg-ts, mxf, ogg, vob, wav, webm + // 3gp, aac, asf, avi, divx, flv, m4a, mkv, mov, mp3, mp4, mpeg, mpeg-ps, mpeg-ts, + // mxf, ogg, vob, wav, webm Container *string `type:"string"` // The detected properties of the input file. @@ -3255,19 +4052,63 @@ type JobInput struct { // The encryption settings, if any, that are used for decrypting your input // files. If your input file is encrypted, you must specify the mode that Elastic - // Transcoder will use to decrypt your file. + // Transcoder uses to decrypt your file. Encryption *Encryption `type:"structure"` // The frame rate of the input file. If you want Elastic Transcoder to automatically // detect the frame rate of the input file, specify auto. If you want to specify // the frame rate for the input file, enter one of the following values: // - // 10, 15, 23.97, 24, 25, 29.97, 30, 60 + // 10, 15, 23.97, 24, 25, 29.97, 30, 60 // // If you specify a value other than auto, Elastic Transcoder disables automatic // detection of the frame rate. FrameRate *string `type:"string"` + // You can configure Elastic Transcoder to transcode captions, or subtitles, + // from one format to another. All captions must be in UTF-8. Elastic Transcoder + // supports two types of captions: + // + // * Embedded: Embedded captions are included in the same file as the audio + // and video. Elastic Transcoder supports only one embedded caption per language, + // to a maximum of 300 embedded captions per file. + // + // Valid input values include: CEA-608 (EIA-608, first non-empty channel only), + // CEA-708 (EIA-708, first non-empty channel only), and mov-text + // + // Valid outputs include: mov-text + // + // Elastic Transcoder supports a maximum of one embedded format per output. + // + // * Sidecar: Sidecar captions are kept in a separate metadata file from + // the audio and video data. Sidecar captions require a player that is capable + // of understanding the relationship between the video file and the sidecar + // file. Elastic Transcoder supports only one sidecar caption per language, + // to a maximum of 20 sidecar captions per file. + // + // Valid input values include: dfxp (first div element only), ebu-tt, scc, smpt, + // srt, ttml (first div element only), and webvtt + // + // Valid outputs include: dfxp (first div element only), scc, srt, and webvtt. + // + // If you want ttml or smpte-tt compatible captions, specify dfxp as your output + // format. + // + // Elastic Transcoder does not support OCR (Optical Character Recognition), + // does not accept pictures as a valid input for captions, and is not available + // for audio-only transcoding. Elastic Transcoder does not preserve text formatting + // (for example, italics) during the transcoding process. + // + // To remove captions or leave the captions empty, set Captions to null. To + // pass through existing captions unchanged, set the MergePolicy to MergeRetain, + // and pass in a null CaptionSources array. + // + // For more information on embedded files, see the Subtitles Wikipedia page. + // + // For more information on sidecar files, see the Extensible Metadata Platform + // and Sidecar file Wikipedia pages. + InputCaptions *InputCaptions `type:"structure"` + // Whether the input file is interlaced. If you want Elastic Transcoder to automatically // detect whether the input file is interlaced, specify auto. If you want to // specify whether the input file is interlaced, enter one of the following @@ -3292,6 +4133,9 @@ type JobInput struct { // This value must be auto, which causes Elastic Transcoder to automatically // detect the resolution of the input file. Resolution *string `type:"string"` + + // Settings for clipping an input. Each input can have different clip settings. + TimeSpan *TimeSpan `type:"structure"` } // String returns the string representation @@ -3310,6 +4154,11 @@ func (s *JobInput) Validate() error { if s.Key != nil && len(*s.Key) < 1 { invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } + if s.InputCaptions != nil { + if err := s.InputCaptions.Validate(); err != nil { + invalidParams.AddNested("InputCaptions", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -3317,10 +4166,72 @@ func (s *JobInput) Validate() error { return nil } -// Outputs recommended instead.If you specified one output for a job, information -// about that output. If you specified multiple outputs for a job, the Output -// object lists information about the first output. This duplicates the information -// that is listed for the first output in the Outputs object. +// SetAspectRatio sets the AspectRatio field's value. +func (s *JobInput) SetAspectRatio(v string) *JobInput { + s.AspectRatio = &v + return s +} + +// SetContainer sets the Container field's value. +func (s *JobInput) SetContainer(v string) *JobInput { + s.Container = &v + return s +} + +// SetDetectedProperties sets the DetectedProperties field's value. +func (s *JobInput) SetDetectedProperties(v *DetectedProperties) *JobInput { + s.DetectedProperties = v + return s +} + +// SetEncryption sets the Encryption field's value. +func (s *JobInput) SetEncryption(v *Encryption) *JobInput { + s.Encryption = v + return s +} + +// SetFrameRate sets the FrameRate field's value. +func (s *JobInput) SetFrameRate(v string) *JobInput { + s.FrameRate = &v + return s +} + +// SetInputCaptions sets the InputCaptions field's value. +func (s *JobInput) SetInputCaptions(v *InputCaptions) *JobInput { + s.InputCaptions = v + return s +} + +// SetInterlaced sets the Interlaced field's value. +func (s *JobInput) SetInterlaced(v string) *JobInput { + s.Interlaced = &v + return s +} + +// SetKey sets the Key field's value. +func (s *JobInput) SetKey(v string) *JobInput { + s.Key = &v + return s +} + +// SetResolution sets the Resolution field's value. +func (s *JobInput) SetResolution(v string) *JobInput { + s.Resolution = &v + return s +} + +// SetTimeSpan sets the TimeSpan field's value. +func (s *JobInput) SetTimeSpan(v *TimeSpan) *JobInput { + s.TimeSpan = v + return s +} + +// Outputs recommended instead. +// +// If you specified one output for a job, information about that output. If +// you specified multiple outputs for a job, the Output object lists information +// about the first output. This duplicates the information that is listed for +// the first output in the Outputs object. type JobOutput struct { _ struct{} `type:"structure"` @@ -3330,37 +4241,37 @@ type JobOutput struct { // If Elastic Transcoder used a preset with a ColorSpaceConversionMode to transcode // the output file, the AppliedColorSpaceConversion parameter shows the conversion // used. If no ColorSpaceConversionMode was defined in the preset, this parameter - // will not be included in the job response. + // is not be included in the job response. AppliedColorSpaceConversion *string `type:"string"` // You can configure Elastic Transcoder to transcode captions, or subtitles, // from one format to another. All captions must be in UTF-8. Elastic Transcoder // supports two types of captions: // - // Embedded: Embedded captions are included in the same file as the audio - // and video. Elastic Transcoder supports only one embedded caption per language, - // to a maximum of 300 embedded captions per file. + // * Embedded: Embedded captions are included in the same file as the audio + // and video. Elastic Transcoder supports only one embedded caption per language, + // to a maximum of 300 embedded captions per file. // // Valid input values include: CEA-608 (EIA-608, first non-empty channel only), - // CEA-708 (EIA-708, first non-empty channel only), and mov-text + // CEA-708 (EIA-708, first non-empty channel only), and mov-text // // Valid outputs include: mov-text // // Elastic Transcoder supports a maximum of one embedded format per output. // - // Sidecar: Sidecar captions are kept in a separate metadata file from the - // audio and video data. Sidecar captions require a player that is capable of - // understanding the relationship between the video file and the sidecar file. - // Elastic Transcoder supports only one sidecar caption per language, to a maximum - // of 20 sidecar captions per file. + // * Sidecar: Sidecar captions are kept in a separate metadata file from + // the audio and video data. Sidecar captions require a player that is capable + // of understanding the relationship between the video file and the sidecar + // file. Elastic Transcoder supports only one sidecar caption per language, + // to a maximum of 20 sidecar captions per file. // - // Valid input values include: dfxp (first div element only), ebu-tt, scc, - // smpt, srt, ttml (first div element only), and webvtt + // Valid input values include: dfxp (first div element only), ebu-tt, scc, smpt, + // srt, ttml (first div element only), and webvtt // // Valid outputs include: dfxp (first div element only), scc, srt, and webvtt. // - // If you want ttml or smpte-tt compatible captions, specify dfxp as your - // output format. + // If you want ttml or smpte-tt compatible captions, specify dfxp as your output + // format. // // Elastic Transcoder does not support OCR (Optical Character Recognition), // does not accept pictures as a valid input for captions, and is not available @@ -3382,7 +4293,7 @@ type JobOutput struct { // of the file. The Composition object contains settings for the clips that // make up an output file. For the current release, you can only specify settings // for a single clip per output file. The Composition object cannot be null. - Composition []*Clip `type:"list"` + Composition []*Clip `deprecated:"true" type:"list"` // Duration of the output file, in seconds. Duration *int64 `type:"long"` @@ -3392,8 +4303,8 @@ type JobOutput struct { // The encryption settings, if any, that you want Elastic Transcoder to apply // to your output files. If you choose to use encryption, you must specify a - // mode to use. If you choose not to use encryption, Elastic Transcoder will - // write an unencrypted file to your Amazon S3 bucket. + // mode to use. If you choose not to use encryption, Elastic Transcoder writes + // an unencrypted file to your Amazon S3 bucket. Encryption *Encryption `type:"structure"` // File size of the output file, in bytes. @@ -3428,18 +4339,19 @@ type JobOutput struct { // // auto, 0, 90, 180, 270 // - // The value auto generally works only if the file that you're transcoding - // contains rotation metadata. + // The value auto generally works only if the file that you're transcoding contains + // rotation metadata. Rotate *string `type:"string"` - // (Outputs in Fragmented MP4 or MPEG-TS format only.If you specify a preset - // in PresetId for which the value of Container is fmp4 (Fragmented MP4) or - // ts (MPEG-TS), SegmentDuration is the target maximum duration of each segment - // in seconds. For HLSv3 format playlists, each media segment is stored in a - // separate .ts file. For HLSv4 and Smooth playlists, all media segments for - // an output are stored in a single file. Each segment is approximately the - // length of the SegmentDuration, though individual segments might be shorter - // or longer. + // (Outputs in Fragmented MP4 or MPEG-TS format only. + // + // If you specify a preset in PresetId for which the value of Container is fmp4 + // (Fragmented MP4) or ts (MPEG-TS), SegmentDuration is the target maximum duration + // of each segment in seconds. For HLSv3 format playlists, each media segment + // is stored in a separate .ts file. For HLSv4, MPEG-DASH, and Smooth playlists, + // all media segments for an output are stored in a single file. Each segment + // is approximately the length of the SegmentDuration, though individual segments + // might be shorter or longer. // // The range of valid values is 1 to 60 seconds. If the duration of the video // is not evenly divisible by SegmentDuration, the duration of the last segment @@ -3452,18 +4364,26 @@ type JobOutput struct { // The status of one output in a job. If you specified only one output for the // job, Outputs:Status is always the same as Job:Status. If you specified more - // than one output: Job:Status and Outputs:Status for all of the outputs is - // Submitted until Elastic Transcoder starts to process the first output. When - // Elastic Transcoder starts to process the first output, Outputs:Status for - // that output and Job:Status both change to Progressing. For each output, the - // value of Outputs:Status remains Submitted until Elastic Transcoder starts - // to process the output. Job:Status remains Progressing until all of the outputs - // reach a terminal status, either Complete or Error. When all of the outputs - // reach a terminal status, Job:Status changes to Complete only if Outputs:Status - // for all of the outputs is Complete. If Outputs:Status for one or more outputs - // is Error, the terminal status for Job:Status is also Error. The value of - // Status is one of the following: Submitted, Progressing, Complete, Canceled, - // or Error. + // than one output: + // + // * Job:Status and Outputs:Status for all of the outputs is Submitted until + // Elastic Transcoder starts to process the first output. + // + // * When Elastic Transcoder starts to process the first output, Outputs:Status + // for that output and Job:Status both change to Progressing. For each output, + // the value of Outputs:Status remains Submitted until Elastic Transcoder + // starts to process the output. + // + // * Job:Status remains Progressing until all of the outputs reach a terminal + // status, either Complete or Error. + // + // * When all of the outputs reach a terminal status, Job:Status changes + // to Complete only if Outputs:Status for all of the outputs is Complete. + // If Outputs:Status for one or more outputs is Error, the terminal status + // for Job:Status is also Error. + // + // The value of Status is one of the following: Submitted, Progressing, Complete, + // Canceled, or Error. Status *string `type:"string"` // Information that further explains Status. @@ -3478,27 +4398,29 @@ type JobOutput struct { // // If you don't want Elastic Transcoder to create thumbnails, specify "". // - // If you do want Elastic Transcoder to create thumbnails, specify the information + // If you do want Elastic Transcoder to create thumbnails, specify the information // that you want to include in the file name for each thumbnail. You can specify // the following values in any sequence: // - // {count} (Required): If you want to create thumbnails, you must include - // {count} in the ThumbnailPattern object. Wherever you specify {count}, Elastic - // Transcoder adds a five-digit sequence number (beginning with 00001) to thumbnail - // file names. The number indicates where a given thumbnail appears in the sequence - // of thumbnails for a transcoded file. + // * {count} (Required): If you want to create thumbnails, you must include + // {count} in the ThumbnailPattern object. Wherever you specify {count}, + // Elastic Transcoder adds a five-digit sequence number (beginning with 00001) + // to thumbnail file names. The number indicates where a given thumbnail + // appears in the sequence of thumbnails for a transcoded file. // // If you specify a literal value and/or {resolution} but you omit {count}, - // Elastic Transcoder returns a validation error and does not create the job. - // Literal values (Optional): You can specify literal values anywhere in - // the ThumbnailPattern object. For example, you can include them as a file - // name prefix or as a delimiter between {resolution} and {count}. + // Elastic Transcoder returns a validation error and does not create the + // job. // - // {resolution} (Optional): If you want Elastic Transcoder to include the - // resolution in the file name, include {resolution} in the ThumbnailPattern - // object. + // * Literal values (Optional): You can specify literal values anywhere in + // the ThumbnailPattern object. For example, you can include them as a file + // name prefix or as a delimiter between {resolution} and {count}. + // + // * {resolution} (Optional): If you want Elastic Transcoder to include the + // resolution in the file name, include {resolution} in the ThumbnailPattern + // object. // - // When creating thumbnails, Elastic Transcoder automatically saves the files + // When creating thumbnails, Elastic Transcoder automatically saves the files // in the format (.jpg or .png) that appears in the preset that you specified // in the PresetID value of CreateJobOutput. Elastic Transcoder also appends // the applicable file name extension. @@ -3513,9 +4435,9 @@ type JobOutput struct { // them in the job output—the first watermark in the list is added to the output // video first, the second watermark in the list is added next, and so on. As // a result, if the settings in a preset cause Elastic Transcoder to place all - // watermarks in the same location, the second watermark that you add will cover - // the first one, the third one will cover the second, and the fourth one will - // cover the third. + // watermarks in the same location, the second watermark that you add covers + // the first one, the third one covers the second, and the fourth one covers + // the third. Watermarks []*JobWatermark `type:"list"` // Specifies the width of the output file in pixels. @@ -3532,6 +4454,132 @@ func (s JobOutput) GoString() string { return s.String() } +// SetAlbumArt sets the AlbumArt field's value. +func (s *JobOutput) SetAlbumArt(v *JobAlbumArt) *JobOutput { + s.AlbumArt = v + return s +} + +// SetAppliedColorSpaceConversion sets the AppliedColorSpaceConversion field's value. +func (s *JobOutput) SetAppliedColorSpaceConversion(v string) *JobOutput { + s.AppliedColorSpaceConversion = &v + return s +} + +// SetCaptions sets the Captions field's value. +func (s *JobOutput) SetCaptions(v *Captions) *JobOutput { + s.Captions = v + return s +} + +// SetComposition sets the Composition field's value. +func (s *JobOutput) SetComposition(v []*Clip) *JobOutput { + s.Composition = v + return s +} + +// SetDuration sets the Duration field's value. +func (s *JobOutput) SetDuration(v int64) *JobOutput { + s.Duration = &v + return s +} + +// SetDurationMillis sets the DurationMillis field's value. +func (s *JobOutput) SetDurationMillis(v int64) *JobOutput { + s.DurationMillis = &v + return s +} + +// SetEncryption sets the Encryption field's value. +func (s *JobOutput) SetEncryption(v *Encryption) *JobOutput { + s.Encryption = v + return s +} + +// SetFileSize sets the FileSize field's value. +func (s *JobOutput) SetFileSize(v int64) *JobOutput { + s.FileSize = &v + return s +} + +// SetFrameRate sets the FrameRate field's value. +func (s *JobOutput) SetFrameRate(v string) *JobOutput { + s.FrameRate = &v + return s +} + +// SetHeight sets the Height field's value. +func (s *JobOutput) SetHeight(v int64) *JobOutput { + s.Height = &v + return s +} + +// SetId sets the Id field's value. +func (s *JobOutput) SetId(v string) *JobOutput { + s.Id = &v + return s +} + +// SetKey sets the Key field's value. +func (s *JobOutput) SetKey(v string) *JobOutput { + s.Key = &v + return s +} + +// SetPresetId sets the PresetId field's value. +func (s *JobOutput) SetPresetId(v string) *JobOutput { + s.PresetId = &v + return s +} + +// SetRotate sets the Rotate field's value. +func (s *JobOutput) SetRotate(v string) *JobOutput { + s.Rotate = &v + return s +} + +// SetSegmentDuration sets the SegmentDuration field's value. +func (s *JobOutput) SetSegmentDuration(v string) *JobOutput { + s.SegmentDuration = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *JobOutput) SetStatus(v string) *JobOutput { + s.Status = &v + return s +} + +// SetStatusDetail sets the StatusDetail field's value. +func (s *JobOutput) SetStatusDetail(v string) *JobOutput { + s.StatusDetail = &v + return s +} + +// SetThumbnailEncryption sets the ThumbnailEncryption field's value. +func (s *JobOutput) SetThumbnailEncryption(v *Encryption) *JobOutput { + s.ThumbnailEncryption = v + return s +} + +// SetThumbnailPattern sets the ThumbnailPattern field's value. +func (s *JobOutput) SetThumbnailPattern(v string) *JobOutput { + s.ThumbnailPattern = &v + return s +} + +// SetWatermarks sets the Watermarks field's value. +func (s *JobOutput) SetWatermarks(v []*JobWatermark) *JobOutput { + s.Watermarks = v + return s +} + +// SetWidth sets the Width field's value. +func (s *JobOutput) SetWidth(v int64) *JobOutput { + s.Width = &v + return s +} + // Watermarks can be in .png or .jpg format. If you want to display a watermark // that is not rectangular, use the .png format, which supports transparency. type JobWatermark struct { @@ -3546,7 +4594,7 @@ type JobWatermark struct { // Transcoder checks the pipeline specified by Pipeline; the Input Bucket object // in that pipeline identifies the bucket. // - // If the file name includes a prefix, for example, logos/128x64.png, include + // If the file name includes a prefix, for example, logos/128x64.png, include // the prefix in the key. If the file isn't in the specified bucket, Elastic // Transcoder returns an error. InputKey *string `min:"1" type:"string"` @@ -3584,6 +4632,24 @@ func (s *JobWatermark) Validate() error { return nil } +// SetEncryption sets the Encryption field's value. +func (s *JobWatermark) SetEncryption(v *Encryption) *JobWatermark { + s.Encryption = v + return s +} + +// SetInputKey sets the InputKey field's value. +func (s *JobWatermark) SetInputKey(v string) *JobWatermark { + s.InputKey = &v + return s +} + +// SetPresetWatermarkId sets the PresetWatermarkId field's value. +func (s *JobWatermark) SetPresetWatermarkId(v string) *JobWatermark { + s.PresetWatermarkId = &v + return s +} + // The ListJobsByPipelineRequest structure. type ListJobsByPipelineInput struct { _ struct{} `type:"structure"` @@ -3625,6 +4691,24 @@ func (s *ListJobsByPipelineInput) Validate() error { return nil } +// SetAscending sets the Ascending field's value. +func (s *ListJobsByPipelineInput) SetAscending(v string) *ListJobsByPipelineInput { + s.Ascending = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *ListJobsByPipelineInput) SetPageToken(v string) *ListJobsByPipelineInput { + s.PageToken = &v + return s +} + +// SetPipelineId sets the PipelineId field's value. +func (s *ListJobsByPipelineInput) SetPipelineId(v string) *ListJobsByPipelineInput { + s.PipelineId = &v + return s +} + // The ListJobsByPipelineResponse structure. type ListJobsByPipelineOutput struct { _ struct{} `type:"structure"` @@ -3648,6 +4732,18 @@ func (s ListJobsByPipelineOutput) GoString() string { return s.String() } +// SetJobs sets the Jobs field's value. +func (s *ListJobsByPipelineOutput) SetJobs(v []*Job) *ListJobsByPipelineOutput { + s.Jobs = v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListJobsByPipelineOutput) SetNextPageToken(v string) *ListJobsByPipelineOutput { + s.NextPageToken = &v + return s +} + // The ListJobsByStatusRequest structure. type ListJobsByStatusInput struct { _ struct{} `type:"structure"` @@ -3691,6 +4787,24 @@ func (s *ListJobsByStatusInput) Validate() error { return nil } +// SetAscending sets the Ascending field's value. +func (s *ListJobsByStatusInput) SetAscending(v string) *ListJobsByStatusInput { + s.Ascending = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *ListJobsByStatusInput) SetPageToken(v string) *ListJobsByStatusInput { + s.PageToken = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListJobsByStatusInput) SetStatus(v string) *ListJobsByStatusInput { + s.Status = &v + return s +} + // The ListJobsByStatusResponse structure. type ListJobsByStatusOutput struct { _ struct{} `type:"structure"` @@ -3714,6 +4828,18 @@ func (s ListJobsByStatusOutput) GoString() string { return s.String() } +// SetJobs sets the Jobs field's value. +func (s *ListJobsByStatusOutput) SetJobs(v []*Job) *ListJobsByStatusOutput { + s.Jobs = v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListJobsByStatusOutput) SetNextPageToken(v string) *ListJobsByStatusOutput { + s.NextPageToken = &v + return s +} + // The ListPipelineRequest structure. type ListPipelinesInput struct { _ struct{} `type:"structure"` @@ -3738,6 +4864,18 @@ func (s ListPipelinesInput) GoString() string { return s.String() } +// SetAscending sets the Ascending field's value. +func (s *ListPipelinesInput) SetAscending(v string) *ListPipelinesInput { + s.Ascending = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *ListPipelinesInput) SetPageToken(v string) *ListPipelinesInput { + s.PageToken = &v + return s +} + // A list of the pipelines associated with the current AWS account. type ListPipelinesOutput struct { _ struct{} `type:"structure"` @@ -3761,6 +4899,18 @@ func (s ListPipelinesOutput) GoString() string { return s.String() } +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListPipelinesOutput) SetNextPageToken(v string) *ListPipelinesOutput { + s.NextPageToken = &v + return s +} + +// SetPipelines sets the Pipelines field's value. +func (s *ListPipelinesOutput) SetPipelines(v []*Pipeline) *ListPipelinesOutput { + s.Pipelines = v + return s +} + // The ListPresetsRequest structure. type ListPresetsInput struct { _ struct{} `type:"structure"` @@ -3785,6 +4935,18 @@ func (s ListPresetsInput) GoString() string { return s.String() } +// SetAscending sets the Ascending field's value. +func (s *ListPresetsInput) SetAscending(v string) *ListPresetsInput { + s.Ascending = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *ListPresetsInput) SetPageToken(v string) *ListPresetsInput { + s.PageToken = &v + return s +} + // The ListPresetsResponse structure. type ListPresetsOutput struct { _ struct{} `type:"structure"` @@ -3808,6 +4970,18 @@ func (s ListPresetsOutput) GoString() string { return s.String() } +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListPresetsOutput) SetNextPageToken(v string) *ListPresetsOutput { + s.NextPageToken = &v + return s +} + +// SetPresets sets the Presets field's value. +func (s *ListPresetsOutput) SetPresets(v []*Preset) *ListPresetsOutput { + s.Presets = v + return s +} + // The Amazon Simple Notification Service (Amazon SNS) topic or topics to notify // in order to report job status. // @@ -3843,18 +5017,48 @@ func (s Notifications) GoString() string { return s.String() } +// SetCompleted sets the Completed field's value. +func (s *Notifications) SetCompleted(v string) *Notifications { + s.Completed = &v + return s +} + +// SetError sets the Error field's value. +func (s *Notifications) SetError(v string) *Notifications { + s.Error = &v + return s +} + +// SetProgressing sets the Progressing field's value. +func (s *Notifications) SetProgressing(v string) *Notifications { + s.Progressing = &v + return s +} + +// SetWarning sets the Warning field's value. +func (s *Notifications) SetWarning(v string) *Notifications { + s.Warning = &v + return s +} + // The Permission structure. type Permission struct { _ struct{} `type:"structure"` // The permission that you want to give to the AWS user that is listed in Grantee. - // Valid values include: READ: The grantee can read the thumbnails and metadata - // for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. READ_ACP: - // The grantee can read the object ACL for thumbnails that Elastic Transcoder - // adds to the Amazon S3 bucket. WRITE_ACP: The grantee can write the ACL for - // the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. FULL_CONTROL: - // The grantee has READ, READ_ACP, and WRITE_ACP permissions for the thumbnails - // that Elastic Transcoder adds to the Amazon S3 bucket. + // Valid values include: + // + // * READ: The grantee can read the thumbnails and metadata for thumbnails + // that Elastic Transcoder adds to the Amazon S3 bucket. + // + // * READ_ACP: The grantee can read the object ACL for thumbnails that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // * WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // * FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions + // for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. Access []*string `type:"list"` // The AWS user or group that you want to have access to transcoded files and @@ -3864,12 +5068,17 @@ type Permission struct { // group. Grantee *string `min:"1" type:"string"` - // The type of value that appears in the Grantee object: Canonical: Either - // the canonical user ID for an AWS account or an origin access identity for - // an Amazon CloudFront distribution. A canonical user ID is not the same as - // an AWS account number. Email: The registered email address of an AWS account. - // Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, - // or LogDelivery. + // The type of value that appears in the Grantee object: + // + // * Canonical: Either the canonical user ID for an AWS account or an origin + // access identity for an Amazon CloudFront distribution. + // + // A canonical user ID is not the same as an AWS account number. + // + // * Email: The registered email address of an AWS account. + // + // * Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, + // or LogDelivery. GranteeType *string `type:"string"` } @@ -3896,6 +5105,24 @@ func (s *Permission) Validate() error { return nil } +// SetAccess sets the Access field's value. +func (s *Permission) SetAccess(v []*string) *Permission { + s.Access = v + return s +} + +// SetGrantee sets the Grantee field's value. +func (s *Permission) SetGrantee(v string) *Permission { + s.Grantee = &v + return s +} + +// SetGranteeType sets the GranteeType field's value. +func (s *Permission) SetGranteeType(v string) *Permission { + s.GranteeType = &v + return s +} + // The pipeline (queue) that is used to manage jobs. type Pipeline struct { _ struct{} `type:"structure"` @@ -3917,26 +5144,44 @@ type Pipeline struct { // to save transcoded files and playlists. Either you specify both ContentConfig // and ThumbnailConfig, or you specify OutputBucket. // - // Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save - // transcoded files and playlists. Permissions: A list of the users and/or predefined - // Amazon S3 groups you want to have access to transcoded files and playlists, - // and the type of access that you want them to have. GranteeType: The type - // of value that appears in the Grantee object: Canonical: Either the canonical - // user ID for an AWS account or an origin access identity for an Amazon CloudFront - // distribution. Email: The registered email address of an AWS account. Group: - // One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, - // or LogDelivery. Grantee: The AWS user or group that you want to have access - // to transcoded files and playlists. Access: The permission that you want to - // give to the AWS user that is listed in Grantee. Valid values include: READ: - // The grantee can read the objects and metadata for objects that Elastic Transcoder - // adds to the Amazon S3 bucket. READ_ACP: The grantee can read the object ACL - // for objects that Elastic Transcoder adds to the Amazon S3 bucket. WRITE_ACP: - // The grantee can write the ACL for the objects that Elastic Transcoder adds - // to the Amazon S3 bucket. FULL_CONTROL: The grantee has READ, READ_ACP, and - // WRITE_ACP permissions for the objects that Elastic Transcoder adds to the - // Amazon S3 bucket. StorageClass: The Amazon S3 storage class, Standard - // or ReducedRedundancy, that you want Elastic Transcoder to assign to the video - // files and playlists that it stores in your Amazon S3 bucket. + // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to + // save transcoded files and playlists. + // + // * Permissions: A list of the users and/or predefined Amazon S3 groups + // you want to have access to transcoded files and playlists, and the type + // of access that you want them to have. + // + // GranteeType: The type of value that appears in the Grantee object: + // + // Canonical: Either the canonical user ID for an AWS account or an origin access + // identity for an Amazon CloudFront distribution. + // + // Email: The registered email address of an AWS account. + // + // Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, + // or LogDelivery. + // + // Grantee: The AWS user or group that you want to have access to transcoded + // files and playlists. + // + // Access: The permission that you want to give to the AWS user that is listed + // in Grantee. Valid values include: + // + // READ: The grantee can read the objects and metadata for objects that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // READ_ACP: The grantee can read the object ACL for objects that Elastic Transcoder + // adds to the Amazon S3 bucket. + // + // WRITE_ACP: The grantee can write the ACL for the objects that Elastic Transcoder + // adds to the Amazon S3 bucket. + // + // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for + // the objects that Elastic Transcoder adds to the Amazon S3 bucket. + // + // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, + // that you want Elastic Transcoder to assign to the video files and playlists + // that it stores in your Amazon S3 bucket. ContentConfig *PipelineOutputConfig `type:"structure"` // The identifier for the pipeline. You use this value to identify the pipeline @@ -3958,14 +5203,20 @@ type Pipeline struct { // notify to report job status. // // To receive notifications, you must also subscribe to the new topic in the - // Amazon SNS console. Progressing (optional): The Amazon Simple Notification - // Service (Amazon SNS) topic that you want to notify when Elastic Transcoder - // has started to process the job. Completed (optional): The Amazon SNS topic - // that you want to notify when Elastic Transcoder has finished processing the - // job. Warning (optional): The Amazon SNS topic that you want to notify when - // Elastic Transcoder encounters a warning condition. Error (optional): The - // Amazon SNS topic that you want to notify when Elastic Transcoder encounters - // an error condition. + // Amazon SNS console. + // + // * Progressing (optional): The Amazon Simple Notification Service (Amazon + // SNS) topic that you want to notify when Elastic Transcoder has started + // to process the job. + // + // * Completed (optional): The Amazon SNS topic that you want to notify when + // Elastic Transcoder has finished processing the job. + // + // * Warning (optional): The Amazon SNS topic that you want to notify when + // Elastic Transcoder encounters a warning condition. + // + // * Error (optional): The Amazon SNS topic that you want to notify when + // Elastic Transcoder encounters an error condition. Notifications *Notifications `type:"structure"` // The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded @@ -3979,34 +5230,55 @@ type Pipeline struct { // The current status of the pipeline: // - // Active: The pipeline is processing jobs. Paused: The pipeline is not currently - // processing jobs. + // * Active: The pipeline is processing jobs. + // + // * Paused: The pipeline is not currently processing jobs. Status *string `type:"string"` // Information about the Amazon S3 bucket in which you want Elastic Transcoder // to save thumbnail files. Either you specify both ContentConfig and ThumbnailConfig, // or you specify OutputBucket. // - // Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save - // thumbnail files. Permissions: A list of the users and/or predefined Amazon - // S3 groups you want to have access to thumbnail files, and the type of access - // that you want them to have. GranteeType: The type of value that appears - // in the Grantee object: Canonical: Either the canonical user ID for an AWS - // account or an origin access identity for an Amazon CloudFront distribution. - // A canonical user ID is not the same as an AWS account number. Email: The - // registered email address of an AWS account. Group: One of the following predefined - // Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery. Grantee: - // The AWS user or group that you want to have access to thumbnail files. Access: - // The permission that you want to give to the AWS user that is listed in Grantee. - // Valid values include: READ: The grantee can read the thumbnails and metadata - // for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. READ_ACP: - // The grantee can read the object ACL for thumbnails that Elastic Transcoder - // adds to the Amazon S3 bucket. WRITE_ACP: The grantee can write the ACL for - // the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. FULL_CONTROL: - // The grantee has READ, READ_ACP, and WRITE_ACP permissions for the thumbnails - // that Elastic Transcoder adds to the Amazon S3 bucket. StorageClass: The - // Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic - // Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket. + // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to + // save thumbnail files. + // + // * Permissions: A list of the users and/or predefined Amazon S3 groups + // you want to have access to thumbnail files, and the type of access that + // you want them to have. + // + // GranteeType: The type of value that appears in the Grantee object: + // + // Canonical: Either the canonical user ID for an AWS account or an origin access + // identity for an Amazon CloudFront distribution. + // + // A canonical user ID is not the same as an AWS account number. + // + // Email: The registered email address of an AWS account. + // + // Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, + // or LogDelivery. + // + // Grantee: The AWS user or group that you want to have access to thumbnail + // files. + // + // Access: The permission that you want to give to the AWS user that is listed + // in Grantee. Valid values include: + // + // READ: The grantee can read the thumbnails and metadata for thumbnails that + // Elastic Transcoder adds to the Amazon S3 bucket. + // + // READ_ACP: The grantee can read the object ACL for thumbnails that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for + // the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. + // + // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, + // that you want Elastic Transcoder to assign to the thumbnails that it stores + // in your Amazon S3 bucket. ThumbnailConfig *PipelineOutputConfig `type:"structure"` } @@ -4020,22 +5292,95 @@ func (s Pipeline) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Pipeline) SetArn(v string) *Pipeline { + s.Arn = &v + return s +} + +// SetAwsKmsKeyArn sets the AwsKmsKeyArn field's value. +func (s *Pipeline) SetAwsKmsKeyArn(v string) *Pipeline { + s.AwsKmsKeyArn = &v + return s +} + +// SetContentConfig sets the ContentConfig field's value. +func (s *Pipeline) SetContentConfig(v *PipelineOutputConfig) *Pipeline { + s.ContentConfig = v + return s +} + +// SetId sets the Id field's value. +func (s *Pipeline) SetId(v string) *Pipeline { + s.Id = &v + return s +} + +// SetInputBucket sets the InputBucket field's value. +func (s *Pipeline) SetInputBucket(v string) *Pipeline { + s.InputBucket = &v + return s +} + +// SetName sets the Name field's value. +func (s *Pipeline) SetName(v string) *Pipeline { + s.Name = &v + return s +} + +// SetNotifications sets the Notifications field's value. +func (s *Pipeline) SetNotifications(v *Notifications) *Pipeline { + s.Notifications = v + return s +} + +// SetOutputBucket sets the OutputBucket field's value. +func (s *Pipeline) SetOutputBucket(v string) *Pipeline { + s.OutputBucket = &v + return s +} + +// SetRole sets the Role field's value. +func (s *Pipeline) SetRole(v string) *Pipeline { + s.Role = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Pipeline) SetStatus(v string) *Pipeline { + s.Status = &v + return s +} + +// SetThumbnailConfig sets the ThumbnailConfig field's value. +func (s *Pipeline) SetThumbnailConfig(v *PipelineOutputConfig) *Pipeline { + s.ThumbnailConfig = v + return s +} + // The PipelineOutputConfig structure. type PipelineOutputConfig struct { _ struct{} `type:"structure"` // The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded - // files. Specify this value when all of the following are true: You want to - // save transcoded files, thumbnails (if any), and playlists (if any) together - // in one bucket. You do not want to specify the users or groups who have access - // to the transcoded files, thumbnails, and playlists. You do not want to specify - // the permissions that Elastic Transcoder grants to the files. You want to - // associate the transcoded files and thumbnails with the Amazon S3 Standard - // storage class. If you want to save transcoded files and playlists in one - // bucket and thumbnails in another bucket, specify which users can access the - // transcoded files or the permissions the users have, or change the Amazon - // S3 storage class, omit OutputBucket and specify values for ContentConfig - // and ThumbnailConfig instead. + // files. Specify this value when all of the following are true: + // + // * You want to save transcoded files, thumbnails (if any), and playlists + // (if any) together in one bucket. + // + // * You do not want to specify the users or groups who have access to the + // transcoded files, thumbnails, and playlists. + // + // * You do not want to specify the permissions that Elastic Transcoder grants + // to the files. + // + // * You want to associate the transcoded files and thumbnails with the Amazon + // S3 Standard storage class. + // + // If you want to save transcoded files and playlists in one bucket and thumbnails + // in another bucket, specify which users can access the transcoded files or + // the permissions the users have, or change the Amazon S3 storage class, omit + // OutputBucket and specify values for ContentConfig and ThumbnailConfig instead. Bucket *string `type:"string"` // Optional. The Permissions object specifies which users and/or predefined @@ -4048,7 +5393,7 @@ type PipelineOutputConfig struct { // role specified by Role. If you want that user to have full control, you must // explicitly grant full control to the user. // - // If you omit Permissions, Elastic Transcoder grants full control over the + // If you omit Permissions, Elastic Transcoder grants full control over the // transcoded files and playlists to the owner of the role specified by Role, // and grants no other permissions to any other user or group. Permissions []*Permission `type:"list"` @@ -4089,6 +5434,24 @@ func (s *PipelineOutputConfig) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PipelineOutputConfig) SetBucket(v string) *PipelineOutputConfig { + s.Bucket = &v + return s +} + +// SetPermissions sets the Permissions field's value. +func (s *PipelineOutputConfig) SetPermissions(v []*Permission) *PipelineOutputConfig { + s.Permissions = v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *PipelineOutputConfig) SetStorageClass(v string) *PipelineOutputConfig { + s.StorageClass = &v + return s +} + // The PlayReady DRM settings, if any, that you want Elastic Transcoder to apply // to the output files associated with this playlist. // @@ -4121,7 +5484,7 @@ type PlayReadyDrm struct { // The ID for your DRM key, so that your DRM license provider knows which key // to provide. // - // The key ID must be provided in big endian, and Elastic Transcoder will convert + // The key ID must be provided in big endian, and Elastic Transcoder converts // it to little endian before inserting it into the PlayReady DRM headers. If // you are unsure whether your license server provides your key ID in big or // little endian, check with your DRM provider. @@ -4164,6 +5527,42 @@ func (s *PlayReadyDrm) Validate() error { return nil } +// SetFormat sets the Format field's value. +func (s *PlayReadyDrm) SetFormat(v string) *PlayReadyDrm { + s.Format = &v + return s +} + +// SetInitializationVector sets the InitializationVector field's value. +func (s *PlayReadyDrm) SetInitializationVector(v string) *PlayReadyDrm { + s.InitializationVector = &v + return s +} + +// SetKey sets the Key field's value. +func (s *PlayReadyDrm) SetKey(v string) *PlayReadyDrm { + s.Key = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *PlayReadyDrm) SetKeyId(v string) *PlayReadyDrm { + s.KeyId = &v + return s +} + +// SetKeyMd5 sets the KeyMd5 field's value. +func (s *PlayReadyDrm) SetKeyMd5(v string) *PlayReadyDrm { + s.KeyMd5 = &v + return s +} + +// SetLicenseAcquisitionUrl sets the LicenseAcquisitionUrl field's value. +func (s *PlayReadyDrm) SetLicenseAcquisitionUrl(v string) *PlayReadyDrm { + s.LicenseAcquisitionUrl = &v + return s +} + // Use Only for Fragmented MP4 or MPEG-TS Outputs. If you specify a preset for // which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), Playlists // contains information about the master playlists that you want Elastic Transcoder @@ -4186,33 +5585,33 @@ type Playlist struct { // you create more than one master playlist, the values of all Name objects // must be unique. // - // Note: Elastic Transcoder automatically appends the relevant file extension - // to the file name (.m3u8 for HLSv3 and HLSv4 playlists, and .ism and .ismc - // for Smooth playlists). If you include a file extension in Name, the file - // name will have two extensions. + // Elastic Transcoder automatically appends the relevant file extension to the + // file name (.m3u8 for HLSv3 and HLSv4 playlists, and .ism and .ismc for Smooth + // playlists). If you include a file extension in Name, the file name will have + // two extensions. Name *string `min:"1" type:"string"` // For each output in this job that you want to include in a master playlist, // the value of the Outputs:Key object. // - // If your output is not HLS or does not have a segment duration set, the - // name of the output file is a concatenation of OutputKeyPrefix and Outputs:Key: + // * If your output is not HLS or does not have a segment duration set, the + // name of the output file is a concatenation of OutputKeyPrefix and Outputs:Key: // // OutputKeyPrefixOutputs:Key // - // If your output is HLSv3 and has a segment duration set, or is not included - // in a playlist, Elastic Transcoder creates an output playlist file with a - // file extension of .m3u8, and a series of .ts files that include a five-digit - // sequential counter beginning with 00000: + // * If your output is HLSv3 and has a segment duration set, or is not included + // in a playlist, Elastic Transcoder creates an output playlist file with + // a file extension of .m3u8, and a series of .ts files that include a five-digit + // sequential counter beginning with 00000: // // OutputKeyPrefixOutputs:Key.m3u8 // // OutputKeyPrefixOutputs:Key00000.ts // - // If your output is HLSv4, has a segment duration set, and is included in - // an HLSv4 playlist, Elastic Transcoder creates an output playlist file with - // a file extension of _v4.m3u8. If the output is video, Elastic Transcoder - // also creates an output file with an extension of _iframe.m3u8: + // * If your output is HLSv4, has a segment duration set, and is included + // in an HLSv4 playlist, Elastic Transcoder creates an output playlist file + // with a file extension of _v4.m3u8. If the output is video, Elastic Transcoder + // also creates an output file with an extension of _iframe.m3u8: // // OutputKeyPrefixOutputs:Key_v4.m3u8 // @@ -4220,15 +5619,14 @@ type Playlist struct { // // OutputKeyPrefixOutputs:Key.ts // - // Elastic Transcoder automatically appends the relevant file extension to - // the file name. If you include a file extension in Output Key, the file name - // will have two extensions. + // Elastic Transcoder automatically appends the relevant file extension to the + // file name. If you include a file extension in Output Key, the file name will + // have two extensions. // - // If you include more than one output in a playlist, any segment duration - // settings, clip settings, or caption settings must be the same for all outputs - // in the playlist. For Smooth playlists, the Audio:Profile, Video:Profile, - // and Video:FrameRate to Video:KeyframesMaxDist ratio must be the same for - // all outputs. + // If you include more than one output in a playlist, any segment duration settings, + // clip settings, or caption settings must be the same for all outputs in the + // playlist. For Smooth playlists, the Audio:Profile, Video:Profile, and Video:FrameRate + // to Video:KeyframesMaxDist ratio must be the same for all outputs. OutputKeys []*string `type:"list"` // The DRM settings, if any, that you want Elastic Transcoder to apply to the @@ -4252,6 +5650,48 @@ func (s Playlist) GoString() string { return s.String() } +// SetFormat sets the Format field's value. +func (s *Playlist) SetFormat(v string) *Playlist { + s.Format = &v + return s +} + +// SetHlsContentProtection sets the HlsContentProtection field's value. +func (s *Playlist) SetHlsContentProtection(v *HlsContentProtection) *Playlist { + s.HlsContentProtection = v + return s +} + +// SetName sets the Name field's value. +func (s *Playlist) SetName(v string) *Playlist { + s.Name = &v + return s +} + +// SetOutputKeys sets the OutputKeys field's value. +func (s *Playlist) SetOutputKeys(v []*string) *Playlist { + s.OutputKeys = v + return s +} + +// SetPlayReadyDrm sets the PlayReadyDrm field's value. +func (s *Playlist) SetPlayReadyDrm(v *PlayReadyDrm) *Playlist { + s.PlayReadyDrm = v + return s +} + +// SetStatus sets the Status field's value. +func (s *Playlist) SetStatus(v string) *Playlist { + s.Status = &v + return s +} + +// SetStatusDetail sets the StatusDetail field's value. +func (s *Playlist) SetStatusDetail(v string) *Playlist { + s.StatusDetail = &v + return s +} + // Presets are templates that contain most of the settings for transcoding media // files from one format to another. Elastic Transcoder includes some default // presets for common formats, for example, several iPod and iPhone versions. @@ -4305,6 +5745,60 @@ func (s Preset) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Preset) SetArn(v string) *Preset { + s.Arn = &v + return s +} + +// SetAudio sets the Audio field's value. +func (s *Preset) SetAudio(v *AudioParameters) *Preset { + s.Audio = v + return s +} + +// SetContainer sets the Container field's value. +func (s *Preset) SetContainer(v string) *Preset { + s.Container = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Preset) SetDescription(v string) *Preset { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *Preset) SetId(v string) *Preset { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *Preset) SetName(v string) *Preset { + s.Name = &v + return s +} + +// SetThumbnails sets the Thumbnails field's value. +func (s *Preset) SetThumbnails(v *Thumbnails) *Preset { + s.Thumbnails = v + return s +} + +// SetType sets the Type field's value. +func (s *Preset) SetType(v string) *Preset { + s.Type = &v + return s +} + +// SetVideo sets the Video field's value. +func (s *Preset) SetVideo(v *VideoParameters) *Preset { + s.Video = v + return s +} + // Settings for the size, location, and opacity of graphics that you want Elastic // Transcoder to overlay over videos that are transcoded using this preset. // You can specify settings for up to four watermarks. Watermarks appear in @@ -4323,16 +5817,25 @@ type PresetWatermark struct { _ struct{} `type:"structure"` // The horizontal position of the watermark unless you specify a non-zero value - // for HorizontalOffset: Left: The left edge of the watermark is aligned with - // the left border of the video. Right: The right edge of the watermark is aligned - // with the right border of the video. Center: The watermark is centered between - // the left and right borders. + // for HorizontalOffset: + // + // * Left: The left edge of the watermark is aligned with the left border + // of the video. + // + // * Right: The right edge of the watermark is aligned with the right border + // of the video. + // + // * Center: The watermark is centered between the left and right borders. HorizontalAlign *string `type:"string"` // The amount by which you want the horizontal position of the watermark to - // be offset from the position specified by HorizontalAlign: number of pixels - // (px): The minimum value is 0 pixels, and the maximum value is the value of - // MaxWidth. integer percentage (%): The range of valid values is 0 to 100. + // be offset from the position specified by HorizontalAlign: + // + // * number of pixels (px): The minimum value is 0 pixels, and the maximum + // value is the value of MaxWidth. + // + // * integer percentage (%): The range of valid values is 0 to 100. + // // For example, if you specify Left for HorizontalAlign and 5px for HorizontalOffset, // the left side of the watermark appears 5 pixels from the left border of the // output video. @@ -4352,22 +5855,30 @@ type PresetWatermark struct { // be up to 40 characters long. Id *string `min:"1" type:"string"` - // The maximum height of the watermark in one of the following formats: number - // of pixels (px): The minimum value is 16 pixels, and the maximum value is - // the value of MaxHeight. integer percentage (%): The range of valid values - // is 0 to 100. Use the value of Target to specify whether you want Elastic - // Transcoder to include the black bars that are added by Elastic Transcoder, - // if any, in the calculation. If you specify the value in pixels, it must - // be less than or equal to the value of MaxHeight. + // The maximum height of the watermark in one of the following formats: + // + // * number of pixels (px): The minimum value is 16 pixels, and the maximum + // value is the value of MaxHeight. + // + // * integer percentage (%): The range of valid values is 0 to 100. Use the + // value of Target to specify whether you want Elastic Transcoder to include + // the black bars that are added by Elastic Transcoder, if any, in the calculation. + // + // If you specify the value in pixels, it must be less than or equal to the + // value of MaxHeight. MaxHeight *string `type:"string"` - // The maximum width of the watermark in one of the following formats: number - // of pixels (px): The minimum value is 16 pixels, and the maximum value is - // the value of MaxWidth. integer percentage (%): The range of valid values - // is 0 to 100. Use the value of Target to specify whether you want Elastic - // Transcoder to include the black bars that are added by Elastic Transcoder, - // if any, in the calculation. If you specify the value in pixels, it must be - // less than or equal to the value of MaxWidth. + // The maximum width of the watermark in one of the following formats: + // + // * number of pixels (px): The minimum value is 16 pixels, and the maximum + // value is the value of MaxWidth. + // + // * integer percentage (%): The range of valid values is 0 to 100. Use the + // value of Target to specify whether you want Elastic Transcoder to include + // the black bars that are added by Elastic Transcoder, if any, in the calculation. + // + // If you specify the value in pixels, it must be less than or equal to the + // value of MaxWidth. MaxWidth *string `type:"string"` // A percentage that indicates how much you want a watermark to obscure the @@ -4380,53 +5891,72 @@ type PresetWatermark struct { // a value of 0 for Opacity. The .jpg file format doesn't support transparency. Opacity *string `type:"string"` - // A value that controls scaling of the watermark: Fit: Elastic Transcoder - // scales the watermark so it matches the value that you specified in either - // MaxWidth or MaxHeight without exceeding the other value. Stretch: Elastic - // Transcoder stretches the watermark to match the values that you specified - // for MaxWidth and MaxHeight. If the relative proportions of the watermark - // and the values of MaxWidth and MaxHeight are different, the watermark will - // be distorted. ShrinkToFit: Elastic Transcoder scales the watermark down so - // that its dimensions match the values that you specified for at least one - // of MaxWidth and MaxHeight without exceeding either value. If you specify - // this option, Elastic Transcoder does not scale the watermark up. + // A value that controls scaling of the watermark: + // + // * Fit: Elastic Transcoder scales the watermark so it matches the value + // that you specified in either MaxWidth or MaxHeight without exceeding the + // other value. + // + // * Stretch: Elastic Transcoder stretches the watermark to match the values + // that you specified for MaxWidth and MaxHeight. If the relative proportions + // of the watermark and the values of MaxWidth and MaxHeight are different, + // the watermark will be distorted. + // + // * ShrinkToFit: Elastic Transcoder scales the watermark down so that its + // dimensions match the values that you specified for at least one of MaxWidth + // and MaxHeight without exceeding either value. If you specify this option, + // Elastic Transcoder does not scale the watermark up. SizingPolicy *string `type:"string"` // A value that determines how Elastic Transcoder interprets values that you // specified for HorizontalOffset, VerticalOffset, MaxWidth, and MaxHeight: - // Content: HorizontalOffset and VerticalOffset values are calculated based - // on the borders of the video excluding black bars added by Elastic Transcoder, - // if any. In addition, MaxWidth and MaxHeight, if specified as a percentage, - // are calculated based on the borders of the video excluding black bars added - // by Elastic Transcoder, if any. Frame: HorizontalOffset and VerticalOffset - // values are calculated based on the borders of the video including black bars - // added by Elastic Transcoder, if any. In addition, MaxWidth and MaxHeight, - // if specified as a percentage, are calculated based on the borders of the - // video including black bars added by Elastic Transcoder, if any. + // + // * Content: HorizontalOffset and VerticalOffset values are calculated based + // on the borders of the video excluding black bars added by Elastic Transcoder, + // if any. In addition, MaxWidth and MaxHeight, if specified as a percentage, + // are calculated based on the borders of the video excluding black bars + // added by Elastic Transcoder, if any. + // + // * Frame: HorizontalOffset and VerticalOffset values are calculated based + // on the borders of the video including black bars added by Elastic Transcoder, + // if any. In addition, MaxWidth and MaxHeight, if specified as a percentage, + // are calculated based on the borders of the video including black bars + // added by Elastic Transcoder, if any. Target *string `type:"string"` // The vertical position of the watermark unless you specify a non-zero value - // for VerticalOffset: Top: The top edge of the watermark is aligned with the - // top border of the video. Bottom: The bottom edge of the watermark is aligned - // with the bottom border of the video. Center: The watermark is centered between - // the top and bottom borders. + // for VerticalOffset: + // + // * Top: The top edge of the watermark is aligned with the top border of + // the video. + // + // * Bottom: The bottom edge of the watermark is aligned with the bottom + // border of the video. + // + // * Center: The watermark is centered between the top and bottom borders. VerticalAlign *string `type:"string"` - // VerticalOffset The amount by which you want the vertical position of the - // watermark to be offset from the position specified by VerticalAlign: number - // of pixels (px): The minimum value is 0 pixels, and the maximum value is the - // value of MaxHeight. integer percentage (%): The range of valid values is - // 0 to 100. For example, if you specify Top for VerticalAlign and 5px for - // VerticalOffset, the top of the watermark appears 5 pixels from the top border - // of the output video. + // VerticalOffset + // + // The amount by which you want the vertical position of the watermark to be + // offset from the position specified by VerticalAlign: + // + // * number of pixels (px): The minimum value is 0 pixels, and the maximum + // value is the value of MaxHeight. + // + // * integer percentage (%): The range of valid values is 0 to 100. + // + // For example, if you specify Top for VerticalAlign and 5px for VerticalOffset, + // the top of the watermark appears 5 pixels from the top border of the output + // video. // // VerticalOffset is only valid when the value of VerticalAlign is Top or Bottom. // - // If you specify an offset that causes the watermark to extend beyond the - // top or bottom border and Elastic Transcoder has not added black bars, the - // watermark is cropped. If Elastic Transcoder has added black bars, the watermark - // extends into the black bars. If the watermark extends beyond the black bars, - // it is cropped. + // If you specify an offset that causes the watermark to extend beyond the top + // or bottom border and Elastic Transcoder has not added black bars, the watermark + // is cropped. If Elastic Transcoder has added black bars, the watermark extends + // into the black bars. If the watermark extends beyond the black bars, it is + // cropped. // // Use the value of Target to specify whether you want Elastic Transcoder to // include the black bars that are added by Elastic Transcoder, if any, in the @@ -4457,6 +5987,66 @@ func (s *PresetWatermark) Validate() error { return nil } +// SetHorizontalAlign sets the HorizontalAlign field's value. +func (s *PresetWatermark) SetHorizontalAlign(v string) *PresetWatermark { + s.HorizontalAlign = &v + return s +} + +// SetHorizontalOffset sets the HorizontalOffset field's value. +func (s *PresetWatermark) SetHorizontalOffset(v string) *PresetWatermark { + s.HorizontalOffset = &v + return s +} + +// SetId sets the Id field's value. +func (s *PresetWatermark) SetId(v string) *PresetWatermark { + s.Id = &v + return s +} + +// SetMaxHeight sets the MaxHeight field's value. +func (s *PresetWatermark) SetMaxHeight(v string) *PresetWatermark { + s.MaxHeight = &v + return s +} + +// SetMaxWidth sets the MaxWidth field's value. +func (s *PresetWatermark) SetMaxWidth(v string) *PresetWatermark { + s.MaxWidth = &v + return s +} + +// SetOpacity sets the Opacity field's value. +func (s *PresetWatermark) SetOpacity(v string) *PresetWatermark { + s.Opacity = &v + return s +} + +// SetSizingPolicy sets the SizingPolicy field's value. +func (s *PresetWatermark) SetSizingPolicy(v string) *PresetWatermark { + s.SizingPolicy = &v + return s +} + +// SetTarget sets the Target field's value. +func (s *PresetWatermark) SetTarget(v string) *PresetWatermark { + s.Target = &v + return s +} + +// SetVerticalAlign sets the VerticalAlign field's value. +func (s *PresetWatermark) SetVerticalAlign(v string) *PresetWatermark { + s.VerticalAlign = &v + return s +} + +// SetVerticalOffset sets the VerticalOffset field's value. +func (s *PresetWatermark) SetVerticalOffset(v string) *PresetWatermark { + s.VerticalOffset = &v + return s +} + // The ReadJobRequest structure. type ReadJobInput struct { _ struct{} `type:"structure"` @@ -4490,6 +6080,12 @@ func (s *ReadJobInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *ReadJobInput) SetId(v string) *ReadJobInput { + s.Id = &v + return s +} + // The ReadJobResponse structure. type ReadJobOutput struct { _ struct{} `type:"structure"` @@ -4508,6 +6104,12 @@ func (s ReadJobOutput) GoString() string { return s.String() } +// SetJob sets the Job field's value. +func (s *ReadJobOutput) SetJob(v *Job) *ReadJobOutput { + s.Job = v + return s +} + // The ReadPipelineRequest structure. type ReadPipelineInput struct { _ struct{} `type:"structure"` @@ -4541,6 +6143,12 @@ func (s *ReadPipelineInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *ReadPipelineInput) SetId(v string) *ReadPipelineInput { + s.Id = &v + return s +} + // The ReadPipelineResponse structure. type ReadPipelineOutput struct { _ struct{} `type:"structure"` @@ -4567,6 +6175,18 @@ func (s ReadPipelineOutput) GoString() string { return s.String() } +// SetPipeline sets the Pipeline field's value. +func (s *ReadPipelineOutput) SetPipeline(v *Pipeline) *ReadPipelineOutput { + s.Pipeline = v + return s +} + +// SetWarnings sets the Warnings field's value. +func (s *ReadPipelineOutput) SetWarnings(v []*Warning) *ReadPipelineOutput { + s.Warnings = v + return s +} + // The ReadPresetRequest structure. type ReadPresetInput struct { _ struct{} `type:"structure"` @@ -4600,6 +6220,12 @@ func (s *ReadPresetInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *ReadPresetInput) SetId(v string) *ReadPresetInput { + s.Id = &v + return s +} + // The ReadPresetResponse structure. type ReadPresetOutput struct { _ struct{} `type:"structure"` @@ -4618,9 +6244,15 @@ func (s ReadPresetOutput) GoString() string { return s.String() } +// SetPreset sets the Preset field's value. +func (s *ReadPresetOutput) SetPreset(v *Preset) *ReadPresetOutput { + s.Preset = v + return s +} + // The TestRoleRequest structure. type TestRoleInput struct { - _ struct{} `type:"structure"` + _ struct{} `deprecated:"true" type:"structure"` // The Amazon S3 bucket that contains media files to be transcoded. The action // attempts to read from this bucket. @@ -4628,8 +6260,8 @@ type TestRoleInput struct { // InputBucket is a required field InputBucket *string `type:"string" required:"true"` - // The Amazon S3 bucket that Elastic Transcoder will write transcoded media - // files to. The action attempts to read from this bucket. + // The Amazon S3 bucket that Elastic Transcoder writes transcoded media files + // to. The action attempts to read from this bucket. // // OutputBucket is a required field OutputBucket *string `type:"string" required:"true"` @@ -4679,9 +6311,33 @@ func (s *TestRoleInput) Validate() error { return nil } +// SetInputBucket sets the InputBucket field's value. +func (s *TestRoleInput) SetInputBucket(v string) *TestRoleInput { + s.InputBucket = &v + return s +} + +// SetOutputBucket sets the OutputBucket field's value. +func (s *TestRoleInput) SetOutputBucket(v string) *TestRoleInput { + s.OutputBucket = &v + return s +} + +// SetRole sets the Role field's value. +func (s *TestRoleInput) SetRole(v string) *TestRoleInput { + s.Role = &v + return s +} + +// SetTopics sets the Topics field's value. +func (s *TestRoleInput) SetTopics(v []*string) *TestRoleInput { + s.Topics = v + return s +} + // The TestRoleResponse structure. type TestRoleOutput struct { - _ struct{} `type:"structure"` + _ struct{} `deprecated:"true" type:"structure"` // If the Success element contains false, this value is an array of one or more // error messages that were generated during the test process. @@ -4702,6 +6358,18 @@ func (s TestRoleOutput) GoString() string { return s.String() } +// SetMessages sets the Messages field's value. +func (s *TestRoleOutput) SetMessages(v []*string) *TestRoleOutput { + s.Messages = v + return s +} + +// SetSuccess sets the Success field's value. +func (s *TestRoleOutput) SetSuccess(v string) *TestRoleOutput { + s.Success = &v + return s +} + // Thumbnails for videos. type Thumbnails struct { _ struct{} `type:"structure"` @@ -4711,7 +6379,7 @@ type Thumbnails struct { // instead of Resolution and AspectRatio. The two groups of settings are mutually // exclusive. Do not use them together. // - // The aspect ratio of thumbnails. Valid values include: + // The aspect ratio of thumbnails. Valid values include: // // auto, 1:1, 4:3, 3:2, 16:9 // @@ -4750,33 +6418,40 @@ type Thumbnails struct { // instead of Resolution and AspectRatio. The two groups of settings are mutually // exclusive. Do not use them together. // - // The width and height of thumbnail files in pixels. Specify a value in the + // The width and height of thumbnail files in pixels. Specify a value in the // format width x height where both values are even integers. The values cannot // exceed the width and height that you specified in the Video:Resolution object. Resolution *string `type:"string"` // Specify one of the following values to control scaling of thumbnails: // - // Fit: Elastic Transcoder scales thumbnails so they match the value that - // you specified in thumbnail MaxWidth or MaxHeight settings without exceeding - // the other value. Fill: Elastic Transcoder scales thumbnails so they match - // the value that you specified in thumbnail MaxWidth or MaxHeight settings - // and matches or exceeds the other value. Elastic Transcoder centers the image - // in thumbnails and then crops in the dimension (if any) that exceeds the maximum - // value. Stretch: Elastic Transcoder stretches thumbnails to match the values - // that you specified for thumbnail MaxWidth and MaxHeight settings. If the - // relative proportions of the input video and thumbnails are different, the - // thumbnails will be distorted. Keep: Elastic Transcoder does not scale thumbnails. - // If either dimension of the input video exceeds the values that you specified - // for thumbnail MaxWidth and MaxHeight settings, Elastic Transcoder crops the - // thumbnails. ShrinkToFit: Elastic Transcoder scales thumbnails down so that - // their dimensions match the values that you specified for at least one of - // thumbnail MaxWidth and MaxHeight without exceeding either value. If you specify - // this option, Elastic Transcoder does not scale thumbnails up. ShrinkToFill: - // Elastic Transcoder scales thumbnails down so that their dimensions match - // the values that you specified for at least one of MaxWidth and MaxHeight - // without dropping below either value. If you specify this option, Elastic - // Transcoder does not scale thumbnails up. + // * Fit: Elastic Transcoder scales thumbnails so they match the value that + // you specified in thumbnail MaxWidth or MaxHeight settings without exceeding + // the other value. + // + // * Fill: Elastic Transcoder scales thumbnails so they match the value that + // you specified in thumbnail MaxWidth or MaxHeight settings and matches + // or exceeds the other value. Elastic Transcoder centers the image in thumbnails + // and then crops in the dimension (if any) that exceeds the maximum value. + // + // * Stretch: Elastic Transcoder stretches thumbnails to match the values + // that you specified for thumbnail MaxWidth and MaxHeight settings. If the + // relative proportions of the input video and thumbnails are different, + // the thumbnails will be distorted. + // + // * Keep: Elastic Transcoder does not scale thumbnails. If either dimension + // of the input video exceeds the values that you specified for thumbnail + // MaxWidth and MaxHeight settings, Elastic Transcoder crops the thumbnails. + // + // * ShrinkToFit: Elastic Transcoder scales thumbnails down so that their + // dimensions match the values that you specified for at least one of thumbnail + // MaxWidth and MaxHeight without exceeding either value. If you specify + // this option, Elastic Transcoder does not scale thumbnails up. + // + // * ShrinkToFill: Elastic Transcoder scales thumbnails down so that their + // dimensions match the values that you specified for at least one of MaxWidth + // and MaxHeight without dropping below either value. If you specify this + // option, Elastic Transcoder does not scale thumbnails up. SizingPolicy *string `type:"string"` } @@ -4790,6 +6465,54 @@ func (s Thumbnails) GoString() string { return s.String() } +// SetAspectRatio sets the AspectRatio field's value. +func (s *Thumbnails) SetAspectRatio(v string) *Thumbnails { + s.AspectRatio = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *Thumbnails) SetFormat(v string) *Thumbnails { + s.Format = &v + return s +} + +// SetInterval sets the Interval field's value. +func (s *Thumbnails) SetInterval(v string) *Thumbnails { + s.Interval = &v + return s +} + +// SetMaxHeight sets the MaxHeight field's value. +func (s *Thumbnails) SetMaxHeight(v string) *Thumbnails { + s.MaxHeight = &v + return s +} + +// SetMaxWidth sets the MaxWidth field's value. +func (s *Thumbnails) SetMaxWidth(v string) *Thumbnails { + s.MaxWidth = &v + return s +} + +// SetPaddingPolicy sets the PaddingPolicy field's value. +func (s *Thumbnails) SetPaddingPolicy(v string) *Thumbnails { + s.PaddingPolicy = &v + return s +} + +// SetResolution sets the Resolution field's value. +func (s *Thumbnails) SetResolution(v string) *Thumbnails { + s.Resolution = &v + return s +} + +// SetSizingPolicy sets the SizingPolicy field's value. +func (s *Thumbnails) SetSizingPolicy(v string) *Thumbnails { + s.SizingPolicy = &v + return s +} + // Settings that determine when a clip begins and how long it lasts. type TimeSpan struct { _ struct{} `type:"structure"` @@ -4820,6 +6543,18 @@ func (s TimeSpan) GoString() string { return s.String() } +// SetDuration sets the Duration field's value. +func (s *TimeSpan) SetDuration(v string) *TimeSpan { + s.Duration = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *TimeSpan) SetStartTime(v string) *TimeSpan { + s.StartTime = &v + return s +} + // Details about the timing of a job. type Timing struct { _ struct{} `type:"structure"` @@ -4844,6 +6579,24 @@ func (s Timing) GoString() string { return s.String() } +// SetFinishTimeMillis sets the FinishTimeMillis field's value. +func (s *Timing) SetFinishTimeMillis(v int64) *Timing { + s.FinishTimeMillis = &v + return s +} + +// SetStartTimeMillis sets the StartTimeMillis field's value. +func (s *Timing) SetStartTimeMillis(v int64) *Timing { + s.StartTimeMillis = &v + return s +} + +// SetSubmitTimeMillis sets the SubmitTimeMillis field's value. +func (s *Timing) SetSubmitTimeMillis(v int64) *Timing { + s.SubmitTimeMillis = &v + return s +} + // The UpdatePipelineRequest structure. type UpdatePipelineInput struct { _ struct{} `type:"structure"` @@ -4870,39 +6623,59 @@ type UpdatePipelineInput struct { // If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket // object. // - // Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save - // transcoded files and playlists. Permissions (Optional): The Permissions object - // specifies which users you want to have access to transcoded files and the - // type of access you want them to have. You can grant permissions to a maximum - // of 30 users and/or predefined Amazon S3 groups. Grantee Type: Specify the - // type of value that appears in the Grantee object: Canonical: The value in - // the Grantee object is either the canonical user ID for an AWS account or - // an origin access identity for an Amazon CloudFront distribution. For more - // information about canonical user IDs, see Access Control List (ACL) Overview - // in the Amazon Simple Storage Service Developer Guide. For more information - // about using CloudFront origin access identities to require that users use - // CloudFront URLs instead of Amazon S3 URLs, see Using an Origin Access Identity - // to Restrict Access to Your Amazon S3 Content. A canonical user ID is not - // the same as an AWS account number. Email: The value in the Grantee object - // is the registered email address of an AWS account. Group: The value in the - // Grantee object is one of the following predefined Amazon S3 groups: AllUsers, - // AuthenticatedUsers, or LogDelivery. Grantee: The AWS user or group that - // you want to have access to transcoded files and playlists. To identify the - // user or group, you can specify the canonical user ID for an AWS account, - // an origin access identity for a CloudFront distribution, the registered email - // address of an AWS account, or a predefined Amazon S3 group Access: The - // permission that you want to give to the AWS user that you specified in Grantee. - // Permissions are granted on the files that Elastic Transcoder adds to the - // bucket, including playlists and video files. Valid values include: READ: - // The grantee can read the objects and metadata for objects that Elastic Transcoder - // adds to the Amazon S3 bucket. READ_ACP: The grantee can read the object ACL - // for objects that Elastic Transcoder adds to the Amazon S3 bucket. WRITE_ACP: - // The grantee can write the ACL for the objects that Elastic Transcoder adds - // to the Amazon S3 bucket. FULL_CONTROL: The grantee has READ, READ_ACP, and - // WRITE_ACP permissions for the objects that Elastic Transcoder adds to the - // Amazon S3 bucket. StorageClass: The Amazon S3 storage class, Standard - // or ReducedRedundancy, that you want Elastic Transcoder to assign to the video - // files and playlists that it stores in your Amazon S3 bucket. + // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to + // save transcoded files and playlists. + // + // * Permissions (Optional): The Permissions object specifies which users + // you want to have access to transcoded files and the type of access you + // want them to have. You can grant permissions to a maximum of 30 users + // and/or predefined Amazon S3 groups. + // + // * Grantee Type: Specify the type of value that appears in the Grantee + // object: + // + // Canonical: The value in the Grantee object is either the canonical user ID + // for an AWS account or an origin access identity for an Amazon CloudFront + // distribution. For more information about canonical user IDs, see Access + // Control List (ACL) Overview in the Amazon Simple Storage Service Developer + // Guide. For more information about using CloudFront origin access identities + // to require that users use CloudFront URLs instead of Amazon S3 URLs, see + // Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content. + // + // A canonical user ID is not the same as an AWS account number. + // + // Email: The value in the Grantee object is the registered email address of + // an AWS account. + // + // Group: The value in the Grantee object is one of the following predefined + // Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery. + // + // * Grantee: The AWS user or group that you want to have access to transcoded + // files and playlists. To identify the user or group, you can specify the + // canonical user ID for an AWS account, an origin access identity for a + // CloudFront distribution, the registered email address of an AWS account, + // or a predefined Amazon S3 group + // + // * Access: The permission that you want to give to the AWS user that you + // specified in Grantee. Permissions are granted on the files that Elastic + // Transcoder adds to the bucket, including playlists and video files. Valid + // values include: + // + // READ: The grantee can read the objects and metadata for objects that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // READ_ACP: The grantee can read the object ACL for objects that Elastic Transcoder + // adds to the Amazon S3 bucket. + // + // WRITE_ACP: The grantee can write the ACL for the objects that Elastic Transcoder + // adds to the Amazon S3 bucket. + // + // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for + // the objects that Elastic Transcoder adds to the Amazon S3 bucket. + // + // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, + // that you want Elastic Transcoder to assign to the video files and playlists + // that it stores in your Amazon S3 bucket. ContentConfig *PipelineOutputConfig `type:"structure"` // The ID of the pipeline that you want to update. @@ -4920,11 +6693,28 @@ type UpdatePipelineInput struct { // Constraints: Maximum 40 characters Name *string `min:"1" type:"string"` - // The Amazon Simple Notification Service (Amazon SNS) topic or topics to notify - // in order to report job status. + // The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic + // that you want to notify to report job status. // // To receive notifications, you must also subscribe to the new topic in the // Amazon SNS console. + // + // * Progressing: The topic ARN for the Amazon Simple Notification Service + // (Amazon SNS) topic that you want to notify when Elastic Transcoder has + // started to process jobs that are added to this pipeline. This is the ARN + // that Amazon SNS returned when you created the topic. + // + // * Completed: The topic ARN for the Amazon SNS topic that you want to notify + // when Elastic Transcoder has finished processing a job. This is the ARN + // that Amazon SNS returned when you created the topic. + // + // * Warning: The topic ARN for the Amazon SNS topic that you want to notify + // when Elastic Transcoder encounters a warning condition. This is the ARN + // that Amazon SNS returned when you created the topic. + // + // * Error: The topic ARN for the Amazon SNS topic that you want to notify + // when Elastic Transcoder encounters an error condition. This is the ARN + // that Amazon SNS returned when you created the topic. Notifications *Notifications `type:"structure"` // The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder @@ -4942,34 +6732,53 @@ type UpdatePipelineInput struct { // If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket // object. // - // Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to save - // thumbnail files. Permissions (Optional): The Permissions object specifies - // which users and/or predefined Amazon S3 groups you want to have access to - // thumbnail files, and the type of access you want them to have. You can grant - // permissions to a maximum of 30 users and/or predefined Amazon S3 groups. - // GranteeType: Specify the type of value that appears in the Grantee object: - // Canonical: The value in the Grantee object is either the canonical user - // ID for an AWS account or an origin access identity for an Amazon CloudFront - // distribution. A canonical user ID is not the same as an AWS account number. + // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to + // save thumbnail files. + // + // * Permissions (Optional): The Permissions object specifies which users + // and/or predefined Amazon S3 groups you want to have access to thumbnail + // files, and the type of access you want them to have. You can grant permissions + // to a maximum of 30 users and/or predefined Amazon S3 groups. + // + // * GranteeType: Specify the type of value that appears in the Grantee object: + // + // Canonical: The value in the Grantee object is either the canonical user ID + // for an AWS account or an origin access identity for an Amazon CloudFront + // distribution. + // + // A canonical user ID is not the same as an AWS account number. + // // Email: The value in the Grantee object is the registered email address of - // an AWS account. Group: The value in the Grantee object is one of the following - // predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery. - // Grantee: The AWS user or group that you want to have access to thumbnail - // files. To identify the user or group, you can specify the canonical user - // ID for an AWS account, an origin access identity for a CloudFront distribution, - // the registered email address of an AWS account, or a predefined Amazon S3 - // group. Access: The permission that you want to give to the AWS user that - // you specified in Grantee. Permissions are granted on the thumbnail files - // that Elastic Transcoder adds to the bucket. Valid values include: READ: - // The grantee can read the thumbnails and metadata for objects that Elastic - // Transcoder adds to the Amazon S3 bucket. READ_ACP: The grantee can read the - // object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. - // WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic - // Transcoder adds to the Amazon S3 bucket. FULL_CONTROL: The grantee has READ, - // READ_ACP, and WRITE_ACP permissions for the thumbnails that Elastic Transcoder - // adds to the Amazon S3 bucket. StorageClass: The Amazon S3 storage class, - // Standard or ReducedRedundancy, that you want Elastic Transcoder to assign - // to the thumbnails that it stores in your Amazon S3 bucket. + // an AWS account. + // + // Group: The value in the Grantee object is one of the following predefined + // Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery. + // + // * Grantee: The AWS user or group that you want to have access to thumbnail + // files. To identify the user or group, you can specify the canonical user + // ID for an AWS account, an origin access identity for a CloudFront distribution, + // the registered email address of an AWS account, or a predefined Amazon + // S3 group. + // + // * Access: The permission that you want to give to the AWS user that you + // specified in Grantee. Permissions are granted on the thumbnail files that + // Elastic Transcoder adds to the bucket. Valid values include: + // + // READ: The grantee can read the thumbnails and metadata for objects that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // READ_ACP: The grantee can read the object ACL for thumbnails that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic + // Transcoder adds to the Amazon S3 bucket. + // + // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for + // the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. + // + // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy, + // that you want Elastic Transcoder to assign to the thumbnails that it stores + // in your Amazon S3 bucket. ThumbnailConfig *PipelineOutputConfig `type:"structure"` } @@ -5009,6 +6818,54 @@ func (s *UpdatePipelineInput) Validate() error { return nil } +// SetAwsKmsKeyArn sets the AwsKmsKeyArn field's value. +func (s *UpdatePipelineInput) SetAwsKmsKeyArn(v string) *UpdatePipelineInput { + s.AwsKmsKeyArn = &v + return s +} + +// SetContentConfig sets the ContentConfig field's value. +func (s *UpdatePipelineInput) SetContentConfig(v *PipelineOutputConfig) *UpdatePipelineInput { + s.ContentConfig = v + return s +} + +// SetId sets the Id field's value. +func (s *UpdatePipelineInput) SetId(v string) *UpdatePipelineInput { + s.Id = &v + return s +} + +// SetInputBucket sets the InputBucket field's value. +func (s *UpdatePipelineInput) SetInputBucket(v string) *UpdatePipelineInput { + s.InputBucket = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdatePipelineInput) SetName(v string) *UpdatePipelineInput { + s.Name = &v + return s +} + +// SetNotifications sets the Notifications field's value. +func (s *UpdatePipelineInput) SetNotifications(v *Notifications) *UpdatePipelineInput { + s.Notifications = v + return s +} + +// SetRole sets the Role field's value. +func (s *UpdatePipelineInput) SetRole(v string) *UpdatePipelineInput { + s.Role = &v + return s +} + +// SetThumbnailConfig sets the ThumbnailConfig field's value. +func (s *UpdatePipelineInput) SetThumbnailConfig(v *PipelineOutputConfig) *UpdatePipelineInput { + s.ThumbnailConfig = v + return s +} + // The UpdatePipelineNotificationsRequest structure. type UpdatePipelineNotificationsInput struct { _ struct{} `type:"structure"` @@ -5023,18 +6880,24 @@ type UpdatePipelineNotificationsInput struct { // that you want to notify to report job status. // // To receive notifications, you must also subscribe to the new topic in the - // Amazon SNS console. Progressing: The topic ARN for the Amazon Simple Notification - // Service (Amazon SNS) topic that you want to notify when Elastic Transcoder - // has started to process jobs that are added to this pipeline. This is the - // ARN that Amazon SNS returned when you created the topic. Completed: The topic - // ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder - // has finished processing a job. This is the ARN that Amazon SNS returned when - // you created the topic. Warning: The topic ARN for the Amazon SNS topic that - // you want to notify when Elastic Transcoder encounters a warning condition. - // This is the ARN that Amazon SNS returned when you created the topic. Error: - // The topic ARN for the Amazon SNS topic that you want to notify when Elastic - // Transcoder encounters an error condition. This is the ARN that Amazon SNS - // returned when you created the topic. + // Amazon SNS console. + // + // * Progressing: The topic ARN for the Amazon Simple Notification Service + // (Amazon SNS) topic that you want to notify when Elastic Transcoder has + // started to process jobs that are added to this pipeline. This is the ARN + // that Amazon SNS returned when you created the topic. + // + // * Completed: The topic ARN for the Amazon SNS topic that you want to notify + // when Elastic Transcoder has finished processing a job. This is the ARN + // that Amazon SNS returned when you created the topic. + // + // * Warning: The topic ARN for the Amazon SNS topic that you want to notify + // when Elastic Transcoder encounters a warning condition. This is the ARN + // that Amazon SNS returned when you created the topic. + // + // * Error: The topic ARN for the Amazon SNS topic that you want to notify + // when Elastic Transcoder encounters an error condition. This is the ARN + // that Amazon SNS returned when you created the topic. // // Notifications is a required field Notifications *Notifications `type:"structure" required:"true"` @@ -5066,11 +6929,24 @@ func (s *UpdatePipelineNotificationsInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *UpdatePipelineNotificationsInput) SetId(v string) *UpdatePipelineNotificationsInput { + s.Id = &v + return s +} + +// SetNotifications sets the Notifications field's value. +func (s *UpdatePipelineNotificationsInput) SetNotifications(v *Notifications) *UpdatePipelineNotificationsInput { + s.Notifications = v + return s +} + // The UpdatePipelineNotificationsResponse structure. type UpdatePipelineNotificationsOutput struct { _ struct{} `type:"structure"` - // A section of the response body that provides information about the pipeline. + // A section of the response body that provides information about the pipeline + // associated with this notification. Pipeline *Pipeline `type:"structure"` } @@ -5084,12 +6960,18 @@ func (s UpdatePipelineNotificationsOutput) GoString() string { return s.String() } +// SetPipeline sets the Pipeline field's value. +func (s *UpdatePipelineNotificationsOutput) SetPipeline(v *Pipeline) *UpdatePipelineNotificationsOutput { + s.Pipeline = v + return s +} + // When you update a pipeline, Elastic Transcoder returns the values that you // specified in the request. type UpdatePipelineOutput struct { _ struct{} `type:"structure"` - // The pipeline (queue) that is used to manage jobs. + // The pipeline updated by this UpdatePipelineResponse call. Pipeline *Pipeline `type:"structure"` // Elastic Transcoder returns a warning if the resources used by your pipeline @@ -5111,6 +6993,18 @@ func (s UpdatePipelineOutput) GoString() string { return s.String() } +// SetPipeline sets the Pipeline field's value. +func (s *UpdatePipelineOutput) SetPipeline(v *Pipeline) *UpdatePipelineOutput { + s.Pipeline = v + return s +} + +// SetWarnings sets the Warnings field's value. +func (s *UpdatePipelineOutput) SetWarnings(v []*Warning) *UpdatePipelineOutput { + s.Warnings = v + return s +} + // The UpdatePipelineStatusRequest structure. type UpdatePipelineStatusInput struct { _ struct{} `type:"structure"` @@ -5122,8 +7016,9 @@ type UpdatePipelineStatusInput struct { // The desired status of the pipeline: // - // Active: The pipeline is processing jobs. Paused: The pipeline is not - // currently processing jobs. + // * Active: The pipeline is processing jobs. + // + // * Paused: The pipeline is not currently processing jobs. // // Status is a required field Status *string `type:"string" required:"true"` @@ -5155,6 +7050,18 @@ func (s *UpdatePipelineStatusInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *UpdatePipelineStatusInput) SetId(v string) *UpdatePipelineStatusInput { + s.Id = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *UpdatePipelineStatusInput) SetStatus(v string) *UpdatePipelineStatusInput { + s.Status = &v + return s +} + // When you update status for a pipeline, Elastic Transcoder returns the values // that you specified in the request. type UpdatePipelineStatusOutput struct { @@ -5174,6 +7081,12 @@ func (s UpdatePipelineStatusOutput) GoString() string { return s.String() } +// SetPipeline sets the Pipeline field's value. +func (s *UpdatePipelineStatusOutput) SetPipeline(v *Pipeline) *UpdatePipelineStatusOutput { + s.Pipeline = v + return s +} + // The VideoParameters structure. type VideoParameters struct { _ struct{} `type:"structure"` @@ -5183,8 +7096,7 @@ type VideoParameters struct { // and DisplayAspectRatio instead of Resolution and AspectRatio. The two groups // of settings are mutually exclusive. Do not use them together. // - // The display aspect ratio of the video in the output file. Valid values - // include: + // The display aspect ratio of the video in the output file. Valid values include: // // auto, 1:1, 4:3, 3:2, 16:9 // @@ -5204,59 +7116,107 @@ type VideoParameters struct { // than or equal to the maximum H.264-compliant value listed for your level // and profile: // - // Level - Maximum video bit rate in kilobits/second (baseline and main Profile) + // Level - Maximum video bit rate in kilobits/second (baseline and main Profile) // : maximum video bit rate in kilobits/second (high Profile) // - // 1 - 64 : 80 1b - 128 : 160 1.1 - 192 : 240 1.2 - 384 : 480 1.3 - 768 : - // 960 2 - 2000 : 2500 3 - 10000 : 12500 3.1 - 14000 : 17500 3.2 - 20000 : 25000 - // 4 - 20000 : 25000 4.1 - 50000 : 62500 + // * 1 - 64 : 80 + // + // * 1b - 128 : 160 + // + // * 1.1 - 192 : 240 + // + // * 1.2 - 384 : 480 + // + // * 1.3 - 768 : 960 + // + // * 2 - 2000 : 2500 + // + // * 3 - 10000 : 12500 + // + // * 3.1 - 14000 : 17500 + // + // * 3.2 - 20000 : 25000 + // + // * 4 - 20000 : 25000 + // + // * 4.1 - 50000 : 62500 BitRate *string `type:"string"` // The video codec for the output file. Valid values include gif, H.264, mpeg2, - // and vp8. You can only specify vp8 when the container type is webm, gif when - // the container type is gif, and mpeg2 when the container type is mpg. + // vp8, and vp9. You can only specify vp8 and vp9 when the container type is + // webm, gif when the container type is gif, and mpeg2 when the container type + // is mpg. Codec *string `type:"string"` - // Profile (H.264/VP8 Only) + // Profile (H.264/VP8/VP9 Only) // // The H.264 profile that you want to use for the output file. Elastic Transcoder // supports the following profiles: // - // baseline: The profile most commonly used for videoconferencing and for - // mobile applications. main: The profile used for standard-definition digital - // TV broadcasts. high: The profile used for high-definition digital TV broadcasts - // and for Blu-ray discs. Level (H.264 Only) + // * baseline: The profile most commonly used for videoconferencing and for + // mobile applications. + // + // * main: The profile used for standard-definition digital TV broadcasts. + // + // * high: The profile used for high-definition digital TV broadcasts and + // for Blu-ray discs. + // + // Level (H.264 Only) // // The H.264 level that you want to use for the output file. Elastic Transcoder // supports the following levels: // // 1, 1b, 1.1, 1.2, 1.3, 2, 2.1, 2.2, 3, 3.1, 3.2, 4, 4.1 // - // MaxReferenceFrames (H.264 Only) + // MaxReferenceFrames (H.264 Only) // // Applicable only when the value of Video:Codec is H.264. The maximum number // of previously decoded frames to use as a reference for decoding future frames. // Valid values are integers 0 through 16, but we recommend that you not use // a value greater than the following: // - // Min(Floor(Maximum decoded picture buffer in macroblocks * 256 / (Width - // in pixels * Height in pixels)), 16) + // Min(Floor(Maximum decoded picture buffer in macroblocks * 256 / (Width in + // pixels * Height in pixels)), 16) // // where Width in pixels and Height in pixels represent either MaxWidth and // MaxHeight, or Resolution. Maximum decoded picture buffer in macroblocks depends // on the value of the Level object. See the list below. (A macroblock is a // block of pixels measuring 16x16.) // - // 1 - 396 1b - 396 1.1 - 900 1.2 - 2376 1.3 - 2376 2 - 2376 2.1 - 4752 2.2 - // - 8100 3 - 8100 3.1 - 18000 3.2 - 20480 4 - 32768 4.1 - 32768 MaxBitRate - // (Optional, H.264/MPEG2/VP8 only) + // * 1 - 396 + // + // * 1b - 396 + // + // * 1.1 - 900 + // + // * 1.2 - 2376 + // + // * 1.3 - 2376 + // + // * 2 - 2376 + // + // * 2.1 - 4752 + // + // * 2.2 - 8100 + // + // * 3 - 8100 + // + // * 3.1 - 18000 + // + // * 3.2 - 20480 + // + // * 4 - 32768 + // + // * 4.1 - 32768 + // + // MaxBitRate (Optional, H.264/MPEG2/VP8/VP9 only) // // The maximum number of bits per second in a video buffer; the size of the // buffer is specified by BufferSize. Specify a value between 16 and 62,500. // You can reduce the bandwidth required to stream a video by reducing the maximum // bit rate, but this also reduces the quality of the video. // - // BufferSize (Optional, H.264/MPEG2/VP8 only) + // BufferSize (Optional, H.264/MPEG2/VP8/VP9 only) // // The maximum number of bits in any x seconds of the output video. This window // is commonly 10 seconds, the standard segment duration when you're using FMP4 @@ -5264,15 +7224,15 @@ type VideoParameters struct { // greater than 0. If you specify MaxBitRate and omit BufferSize, Elastic Transcoder // sets BufferSize to 10 times the value of MaxBitRate. // - // InterlacedMode (Optional, H.264/MPEG2 Only) + // InterlacedMode (Optional, H.264/MPEG2 Only) // // The interlace mode for the output video. // - // Interlaced video is used to double the perceived frame rate for a video - // by interlacing two fields (one field on every other line, the other field - // on the other lines) so that the human eye registers multiple pictures per - // frame. Interlacing reduces the bandwidth required for transmitting a video, - // but can result in blurred images and flickering. + // Interlaced video is used to double the perceived frame rate for a video by + // interlacing two fields (one field on every other line, the other field on + // the other lines) so that the human eye registers multiple pictures per frame. + // Interlacing reduces the bandwidth required for transmitting a video, but + // can result in blurred images and flickering. // // Valid values include Progressive (no interlacing, top to bottom), TopFirst // (top field first), BottomFirst (bottom field first), and Auto. @@ -5280,7 +7240,7 @@ type VideoParameters struct { // If InterlaceMode is not specified, Elastic Transcoder uses Progressive for // the output. If Auto is specified, Elastic Transcoder interlaces the output. // - // ColorSpaceConversionMode (Optional, H.264/MPEG2 Only) + // ColorSpaceConversionMode (Optional, H.264/MPEG2 Only) // // The color space conversion Elastic Transcoder applies to the output video. // Color spaces are the algorithms used by the computer to store information @@ -5294,19 +7254,24 @@ type VideoParameters struct { // is null, and you are using one of the resolution changes from the list below, // Elastic Transcoder applies the following color space conversions: // - // Standard to HD, 720x480 to 1920x1080 - Elastic Transcoder applies Bt601ToBt709 - // Standard to HD, 720x576 to 1920x1080 - Elastic Transcoder applies Bt601ToBt709 - // HD to Standard, 1920x1080 to 720x480 - Elastic Transcoder applies Bt709ToBt601 - // HD to Standard, 1920x1080 to 720x576 - Elastic Transcoder applies Bt709ToBt601 - // Elastic Transcoder may change the behavior of the ColorspaceConversionMode - // Auto mode in the future. All outputs in a playlist must use the same ColorSpaceConversionMode. + // * Standard to HD, 720x480 to 1920x1080 - Elastic Transcoder applies Bt601ToBt709 + // + // * Standard to HD, 720x576 to 1920x1080 - Elastic Transcoder applies Bt601ToBt709 + // + // * HD to Standard, 1920x1080 to 720x480 - Elastic Transcoder applies Bt709ToBt601 + // + // * HD to Standard, 1920x1080 to 720x576 - Elastic Transcoder applies Bt709ToBt601 + // + // Elastic Transcoder may change the behavior of the ColorspaceConversionModeAuto + // mode in the future. All outputs in a playlist must use the same ColorSpaceConversionMode. + // // If you do not specify a ColorSpaceConversionMode, Elastic Transcoder does // not change the color space of a file. If you are unsure what ColorSpaceConversionMode // was applied to your output file, you can check the AppliedColorSpaceConversion // parameter included in your job response. If your job does not have an AppliedColorSpaceConversion // in its response, no ColorSpaceConversionMode was applied. // - // ChromaSubsampling + // ChromaSubsampling // // The sampling pattern for the chroma (color) channels of the output video. // Valid values include yuv420p and yuv422p. @@ -5315,7 +7280,7 @@ type VideoParameters struct { // other vertical line, yuv422p samples the color information of every horizontal // line and every other vertical line. // - // LoopCount (Gif Only) + // LoopCount (Gif Only) // // The number of times you want the output gif to loop. Valid values include // Infinite and integers between 0 and 100, inclusive. @@ -5329,10 +7294,13 @@ type VideoParameters struct { // // Whether to use a fixed value for FixedGOP. Valid values are true and false: // - // true: Elastic Transcoder uses the value of KeyframesMaxDist for the distance - // between key frames (the number of frames in a group of pictures, or GOP). - // false: The distance between key frames can vary. FixedGOP must be set to - // true for fmp4 containers. + // * true: Elastic Transcoder uses the value of KeyframesMaxDist for the + // distance between key frames (the number of frames in a group of pictures, + // or GOP). + // + // * false: The distance between key frames can vary. + // + // FixedGOP must be set to true for fmp4 containers. FixedGOP *string `type:"string"` // The frames per second for the video stream in the output file. Valid values @@ -5340,25 +7308,50 @@ type VideoParameters struct { // // auto, 10, 15, 23.97, 24, 25, 29.97, 30, 60 // - // If you specify auto, Elastic Transcoder uses the detected frame rate of - // the input source. If you specify a frame rate, we recommend that you perform + // If you specify auto, Elastic Transcoder uses the detected frame rate of the + // input source. If you specify a frame rate, we recommend that you perform // the following calculation: // - // Frame rate = maximum recommended decoding speed in luma samples/second - // / (width in pixels * height in pixels) + // Frame rate = maximum recommended decoding speed in luma samples/second / + // (width in pixels * height in pixels) // // where: // - // width in pixels and height in pixels represent the Resolution of the output - // video. maximum recommended decoding speed in Luma samples/second is less - // than or equal to the maximum value listed in the following table, based on - // the value that you specified for Level. The maximum recommended decoding - // speed in Luma samples/second for each level is described in the following - // list (Level - Decoding speed): + // * width in pixels and height in pixels represent the Resolution of the + // output video. + // + // * maximum recommended decoding speed in Luma samples/second is less than + // or equal to the maximum value listed in the following table, based on + // the value that you specified for Level. + // + // The maximum recommended decoding speed in Luma samples/second for each level + // is described in the following list (Level - Decoding speed): + // + // * 1 - 380160 + // + // * 1b - 380160 + // + // * 1.1 - 76800 // - // 1 - 380160 1b - 380160 1.1 - 76800 1.2 - 1536000 1.3 - 3041280 2 - 3041280 - // 2.1 - 5068800 2.2 - 5184000 3 - 10368000 3.1 - 27648000 3.2 - 55296000 4 - // - 62914560 4.1 - 62914560 + // * 1.2 - 1536000 + // + // * 1.3 - 3041280 + // + // * 2 - 3041280 + // + // * 2.1 - 5068800 + // + // * 2.2 - 5184000 + // + // * 3 - 10368000 + // + // * 3.1 - 27648000 + // + // * 3.2 - 55296000 + // + // * 4 - 62914560 + // + // * 4.1 - 62914560 FrameRate *string `type:"string"` // Applicable only when the value of Video:Codec is one of H.264, MPEG2, or @@ -5412,48 +7405,86 @@ type VideoParameters struct { // and DisplayAspectRatio instead of Resolution and AspectRatio. The two groups // of settings are mutually exclusive. Do not use them together. // - // The width and height of the video in the output file, in pixels. Valid - // values are auto and width x height: - // - // auto: Elastic Transcoder attempts to preserve the width and height of the - // input file, subject to the following rules. width x height: The width and - // height of the output video in pixels. Note the following about specifying - // the width and height: - // - // The width must be an even integer between 128 and 4096, inclusive. The - // height must be an even integer between 96 and 3072, inclusive. If you specify - // a resolution that is less than the resolution of the input file, Elastic - // Transcoder rescales the output file to the lower resolution. If you specify - // a resolution that is greater than the resolution of the input file, Elastic - // Transcoder rescales the output to the higher resolution. We recommend that - // you specify a resolution for which the product of width and height is less - // than or equal to the applicable value in the following list (List - Max width - // x height value): 1 - 25344 1b - 25344 1.1 - 101376 1.2 - 101376 1.3 - 101376 - // 2 - 101376 2.1 - 202752 2.2 - 404720 3 - 404720 3.1 - 921600 3.2 - 1310720 - // 4 - 2097152 4.1 - 2097152 + // The width and height of the video in the output file, in pixels. Valid values + // are auto and width x height: + // + // * auto: Elastic Transcoder attempts to preserve the width and height of + // the input file, subject to the following rules. + // + // * width x height: The width and height of the output video in pixels. + // + // Note the following about specifying the width and height: + // + // * The width must be an even integer between 128 and 4096, inclusive. + // + // * The height must be an even integer between 96 and 3072, inclusive. + // + // * If you specify a resolution that is less than the resolution of the + // input file, Elastic Transcoder rescales the output file to the lower resolution. + // + // * If you specify a resolution that is greater than the resolution of the + // input file, Elastic Transcoder rescales the output to the higher resolution. + // + // * We recommend that you specify a resolution for which the product of + // width and height is less than or equal to the applicable value in the + // following list (List - Max width x height value): + // + // 1 - 25344 + // + // 1b - 25344 + // + // 1.1 - 101376 + // + // 1.2 - 101376 + // + // 1.3 - 101376 + // + // 2 - 101376 + // + // 2.1 - 202752 + // + // 2.2 - 404720 + // + // 3 - 404720 + // + // 3.1 - 921600 + // + // 3.2 - 1310720 + // + // 4 - 2097152 + // + // 4.1 - 2097152 Resolution *string `type:"string"` // Specify one of the following values to control scaling of the output video: // - // Fit: Elastic Transcoder scales the output video so it matches the value - // that you specified in either MaxWidth or MaxHeight without exceeding the - // other value. Fill: Elastic Transcoder scales the output video so it matches - // the value that you specified in either MaxWidth or MaxHeight and matches - // or exceeds the other value. Elastic Transcoder centers the output video and - // then crops it in the dimension (if any) that exceeds the maximum value. Stretch: - // Elastic Transcoder stretches the output video to match the values that you - // specified for MaxWidth and MaxHeight. If the relative proportions of the - // input video and the output video are different, the output video will be - // distorted. Keep: Elastic Transcoder does not scale the output video. If either - // dimension of the input video exceeds the values that you specified for MaxWidth - // and MaxHeight, Elastic Transcoder crops the output video. ShrinkToFit: Elastic - // Transcoder scales the output video down so that its dimensions match the - // values that you specified for at least one of MaxWidth and MaxHeight without - // exceeding either value. If you specify this option, Elastic Transcoder does - // not scale the video up. ShrinkToFill: Elastic Transcoder scales the output - // video down so that its dimensions match the values that you specified for - // at least one of MaxWidth and MaxHeight without dropping below either value. - // If you specify this option, Elastic Transcoder does not scale the video up. + // * Fit: Elastic Transcoder scales the output video so it matches the value + // that you specified in either MaxWidth or MaxHeight without exceeding the + // other value. + // + // * Fill: Elastic Transcoder scales the output video so it matches the value + // that you specified in either MaxWidth or MaxHeight and matches or exceeds + // the other value. Elastic Transcoder centers the output video and then + // crops it in the dimension (if any) that exceeds the maximum value. + // + // * Stretch: Elastic Transcoder stretches the output video to match the + // values that you specified for MaxWidth and MaxHeight. If the relative + // proportions of the input video and the output video are different, the + // output video will be distorted. + // + // * Keep: Elastic Transcoder does not scale the output video. If either + // dimension of the input video exceeds the values that you specified for + // MaxWidth and MaxHeight, Elastic Transcoder crops the output video. + // + // * ShrinkToFit: Elastic Transcoder scales the output video down so that + // its dimensions match the values that you specified for at least one of + // MaxWidth and MaxHeight without exceeding either value. If you specify + // this option, Elastic Transcoder does not scale the video up. + // + // * ShrinkToFill: Elastic Transcoder scales the output video down so that + // its dimensions match the values that you specified for at least one of + // MaxWidth and MaxHeight without dropping below either value. If you specify + // this option, Elastic Transcoder does not scale the video up. SizingPolicy *string `type:"string"` // Settings for the size, location, and opacity of graphics that you want Elastic @@ -5503,6 +7534,96 @@ func (s *VideoParameters) Validate() error { return nil } +// SetAspectRatio sets the AspectRatio field's value. +func (s *VideoParameters) SetAspectRatio(v string) *VideoParameters { + s.AspectRatio = &v + return s +} + +// SetBitRate sets the BitRate field's value. +func (s *VideoParameters) SetBitRate(v string) *VideoParameters { + s.BitRate = &v + return s +} + +// SetCodec sets the Codec field's value. +func (s *VideoParameters) SetCodec(v string) *VideoParameters { + s.Codec = &v + return s +} + +// SetCodecOptions sets the CodecOptions field's value. +func (s *VideoParameters) SetCodecOptions(v map[string]*string) *VideoParameters { + s.CodecOptions = v + return s +} + +// SetDisplayAspectRatio sets the DisplayAspectRatio field's value. +func (s *VideoParameters) SetDisplayAspectRatio(v string) *VideoParameters { + s.DisplayAspectRatio = &v + return s +} + +// SetFixedGOP sets the FixedGOP field's value. +func (s *VideoParameters) SetFixedGOP(v string) *VideoParameters { + s.FixedGOP = &v + return s +} + +// SetFrameRate sets the FrameRate field's value. +func (s *VideoParameters) SetFrameRate(v string) *VideoParameters { + s.FrameRate = &v + return s +} + +// SetKeyframesMaxDist sets the KeyframesMaxDist field's value. +func (s *VideoParameters) SetKeyframesMaxDist(v string) *VideoParameters { + s.KeyframesMaxDist = &v + return s +} + +// SetMaxFrameRate sets the MaxFrameRate field's value. +func (s *VideoParameters) SetMaxFrameRate(v string) *VideoParameters { + s.MaxFrameRate = &v + return s +} + +// SetMaxHeight sets the MaxHeight field's value. +func (s *VideoParameters) SetMaxHeight(v string) *VideoParameters { + s.MaxHeight = &v + return s +} + +// SetMaxWidth sets the MaxWidth field's value. +func (s *VideoParameters) SetMaxWidth(v string) *VideoParameters { + s.MaxWidth = &v + return s +} + +// SetPaddingPolicy sets the PaddingPolicy field's value. +func (s *VideoParameters) SetPaddingPolicy(v string) *VideoParameters { + s.PaddingPolicy = &v + return s +} + +// SetResolution sets the Resolution field's value. +func (s *VideoParameters) SetResolution(v string) *VideoParameters { + s.Resolution = &v + return s +} + +// SetSizingPolicy sets the SizingPolicy field's value. +func (s *VideoParameters) SetSizingPolicy(v string) *VideoParameters { + s.SizingPolicy = &v + return s +} + +// SetWatermarks sets the Watermarks field's value. +func (s *VideoParameters) SetWatermarks(v []*PresetWatermark) *VideoParameters { + s.Watermarks = v + return s +} + // Elastic Transcoder returns a warning if the resources used by your pipeline // are not in the same region as the pipeline. // @@ -5518,7 +7639,7 @@ type Warning struct { // The message explaining what resources are in a different region from the // pipeline. // - // Note: AWS KMS keys must be in the same region as the pipeline. + // AWS KMS keys must be in the same region as the pipeline. Message *string `type:"string"` } @@ -5531,3 +7652,15 @@ func (s Warning) String() string { func (s Warning) GoString() string { return s.String() } + +// SetCode sets the Code field's value. +func (s *Warning) SetCode(v string) *Warning { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *Warning) SetMessage(v string) *Warning { + s.Message = &v + return s +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface/interface.go index 60b6d06e3..ededf3fb0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockElasticTranscoderClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/errors.go b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/errors.go new file mode 100644 index 000000000..18374bc24 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/errors.go @@ -0,0 +1,51 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package elastictranscoder + +const ( + + // ErrCodeAccessDeniedException for service response error code + // "AccessDeniedException". + // + // General authentication failure. The request was not signed correctly. + ErrCodeAccessDeniedException = "AccessDeniedException" + + // ErrCodeIncompatibleVersionException for service response error code + // "IncompatibleVersionException". + ErrCodeIncompatibleVersionException = "IncompatibleVersionException" + + // ErrCodeInternalServiceException for service response error code + // "InternalServiceException". + // + // Elastic Transcoder encountered an unexpected exception while trying to fulfill + // the request. + ErrCodeInternalServiceException = "InternalServiceException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // Too many operations for a given AWS account. For example, the number of pipelines + // exceeds the maximum allowed. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeResourceInUseException for service response error code + // "ResourceInUseException". + // + // The resource you are attempting to change is in use. For example, you are + // attempting to delete a pipeline that is currently in use. + ErrCodeResourceInUseException = "ResourceInUseException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The requested resource does not exist or is not available. For example, the + // pipeline to which you're trying to add a job doesn't exist or is still being + // created. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeValidationException for service response error code + // "ValidationException". + // + // One or more required parameter values were not provided in the request. + ErrCodeValidationException = "ValidationException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/examples_test.go index 2b076930d..0b5dad877 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleElasticTranscoder_CancelJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -41,16 +37,13 @@ func ExampleElasticTranscoder_CancelJob() { } func ExampleElasticTranscoder_CreateJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) params := &elastictranscoder.CreateJobInput{ - Input: &elastictranscoder.JobInput{ // Required + PipelineId: aws.String("Id"), // Required + Input: &elastictranscoder.JobInput{ AspectRatio: aws.String("AspectRatio"), Container: aws.String("JobContainer"), DetectedProperties: &elastictranscoder.DetectedProperties{ @@ -66,12 +59,79 @@ func ExampleElasticTranscoder_CreateJob() { KeyMd5: aws.String("Base64EncodedString"), Mode: aws.String("EncryptionMode"), }, - FrameRate: aws.String("FrameRate"), + FrameRate: aws.String("FrameRate"), + InputCaptions: &elastictranscoder.InputCaptions{ + CaptionSources: []*elastictranscoder.CaptionSource{ + { // Required + Encryption: &elastictranscoder.Encryption{ + InitializationVector: aws.String("ZeroTo255String"), + Key: aws.String("Base64EncodedString"), + KeyMd5: aws.String("Base64EncodedString"), + Mode: aws.String("EncryptionMode"), + }, + Key: aws.String("LongKey"), + Label: aws.String("Name"), + Language: aws.String("Key"), + TimeOffset: aws.String("TimeOffset"), + }, + // More values... + }, + MergePolicy: aws.String("CaptionMergePolicy"), + }, Interlaced: aws.String("Interlaced"), Key: aws.String("LongKey"), Resolution: aws.String("Resolution"), + TimeSpan: &elastictranscoder.TimeSpan{ + Duration: aws.String("Time"), + StartTime: aws.String("Time"), + }, + }, + Inputs: []*elastictranscoder.JobInput{ + { // Required + AspectRatio: aws.String("AspectRatio"), + Container: aws.String("JobContainer"), + DetectedProperties: &elastictranscoder.DetectedProperties{ + DurationMillis: aws.Int64(1), + FileSize: aws.Int64(1), + FrameRate: aws.String("FloatString"), + Height: aws.Int64(1), + Width: aws.Int64(1), + }, + Encryption: &elastictranscoder.Encryption{ + InitializationVector: aws.String("ZeroTo255String"), + Key: aws.String("Base64EncodedString"), + KeyMd5: aws.String("Base64EncodedString"), + Mode: aws.String("EncryptionMode"), + }, + FrameRate: aws.String("FrameRate"), + InputCaptions: &elastictranscoder.InputCaptions{ + CaptionSources: []*elastictranscoder.CaptionSource{ + { // Required + Encryption: &elastictranscoder.Encryption{ + InitializationVector: aws.String("ZeroTo255String"), + Key: aws.String("Base64EncodedString"), + KeyMd5: aws.String("Base64EncodedString"), + Mode: aws.String("EncryptionMode"), + }, + Key: aws.String("LongKey"), + Label: aws.String("Name"), + Language: aws.String("Key"), + TimeOffset: aws.String("TimeOffset"), + }, + // More values... + }, + MergePolicy: aws.String("CaptionMergePolicy"), + }, + Interlaced: aws.String("Interlaced"), + Key: aws.String("LongKey"), + Resolution: aws.String("Resolution"), + TimeSpan: &elastictranscoder.TimeSpan{ + Duration: aws.String("Time"), + StartTime: aws.String("Time"), + }, + }, + // More values... }, - PipelineId: aws.String("Id"), // Required Output: &elastictranscoder.CreateJobOutput{ AlbumArt: &elastictranscoder.JobAlbumArt{ Artwork: []*elastictranscoder.Artwork{ @@ -306,11 +366,7 @@ func ExampleElasticTranscoder_CreateJob() { } func ExampleElasticTranscoder_CreatePipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -371,11 +427,7 @@ func ExampleElasticTranscoder_CreatePipeline() { } func ExampleElasticTranscoder_CreatePreset() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -455,11 +507,7 @@ func ExampleElasticTranscoder_CreatePreset() { } func ExampleElasticTranscoder_DeletePipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -480,11 +528,7 @@ func ExampleElasticTranscoder_DeletePipeline() { } func ExampleElasticTranscoder_DeletePreset() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -505,11 +549,7 @@ func ExampleElasticTranscoder_DeletePreset() { } func ExampleElasticTranscoder_ListJobsByPipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -532,11 +572,7 @@ func ExampleElasticTranscoder_ListJobsByPipeline() { } func ExampleElasticTranscoder_ListJobsByStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -559,11 +595,7 @@ func ExampleElasticTranscoder_ListJobsByStatus() { } func ExampleElasticTranscoder_ListPipelines() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -585,11 +617,7 @@ func ExampleElasticTranscoder_ListPipelines() { } func ExampleElasticTranscoder_ListPresets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -611,11 +639,7 @@ func ExampleElasticTranscoder_ListPresets() { } func ExampleElasticTranscoder_ReadJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -636,11 +660,7 @@ func ExampleElasticTranscoder_ReadJob() { } func ExampleElasticTranscoder_ReadPipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -661,11 +681,7 @@ func ExampleElasticTranscoder_ReadPipeline() { } func ExampleElasticTranscoder_ReadPreset() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -686,11 +702,7 @@ func ExampleElasticTranscoder_ReadPreset() { } func ExampleElasticTranscoder_TestRole() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -717,11 +729,7 @@ func ExampleElasticTranscoder_TestRole() { } func ExampleElasticTranscoder_UpdatePipeline() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -782,11 +790,7 @@ func ExampleElasticTranscoder_UpdatePipeline() { } func ExampleElasticTranscoder_UpdatePipelineNotifications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) @@ -813,11 +817,7 @@ func ExampleElasticTranscoder_UpdatePipelineNotifications() { } func ExampleElasticTranscoder_UpdatePipelineStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elastictranscoder.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/service.go b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/service.go index c23818a23..bbd6e2479 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/service.go @@ -12,7 +12,7 @@ import ( ) // The AWS Elastic Transcoder Service. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type ElasticTranscoder struct { *client.Client @@ -24,8 +24,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "elastictranscoder" +// Service information constants +const ( + ServiceName = "elastictranscoder" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the ElasticTranscoder client with a session. // If additional configuration is needed for the client instance use the optional @@ -38,17 +41,18 @@ const ServiceName = "elastictranscoder" // // Create a ElasticTranscoder client with additional configuration // svc := elastictranscoder.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ElasticTranscoder { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ElasticTranscoder { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *ElasticTranscoder { svc := &ElasticTranscoder{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2012-09-25", diff --git a/vendor/github.com/aws/aws-sdk-go/service/elb/api.go b/vendor/github.com/aws/aws-sdk-go/service/elb/api.go index 025f5e53e..b8c6d428e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elb/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elb/api.go @@ -37,6 +37,7 @@ const opAddTags = "AddTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AddTags func (c *ELB) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) { op := &request.Operation{ Name: opAddTags, @@ -48,9 +49,8 @@ func (c *ELB) AddTagsRequest(input *AddTagsInput) (req *request.Request, output input = &AddTagsInput{} } - req = c.newRequest(op, input, output) output = &AddTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -73,16 +73,17 @@ func (c *ELB) AddTagsRequest(input *AddTagsInput) (req *request.Request, output // API operation AddTags for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * TooManyTags +// * ErrCodeTooManyTagsException "TooManyTags" // The quota for the number of tags that can be assigned to a load balancer // has been reached. // -// * DuplicateTagKeys +// * ErrCodeDuplicateTagKeysException "DuplicateTagKeys" // A tag key was specified more than once. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AddTags func (c *ELB) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) err := req.Send() @@ -115,6 +116,7 @@ const opApplySecurityGroupsToLoadBalancer = "ApplySecurityGroupsToLoadBalancer" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ApplySecurityGroupsToLoadBalancer func (c *ELB) ApplySecurityGroupsToLoadBalancerRequest(input *ApplySecurityGroupsToLoadBalancerInput) (req *request.Request, output *ApplySecurityGroupsToLoadBalancerOutput) { op := &request.Operation{ Name: opApplySecurityGroupsToLoadBalancer, @@ -126,9 +128,8 @@ func (c *ELB) ApplySecurityGroupsToLoadBalancerRequest(input *ApplySecurityGroup input = &ApplySecurityGroupsToLoadBalancerInput{} } - req = c.newRequest(op, input, output) output = &ApplySecurityGroupsToLoadBalancerOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -149,15 +150,16 @@ func (c *ELB) ApplySecurityGroupsToLoadBalancerRequest(input *ApplySecurityGroup // API operation ApplySecurityGroupsToLoadBalancer for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // -// * InvalidSecurityGroup +// * ErrCodeInvalidSecurityGroupException "InvalidSecurityGroup" // One or more of the specified security groups do not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ApplySecurityGroupsToLoadBalancer func (c *ELB) ApplySecurityGroupsToLoadBalancer(input *ApplySecurityGroupsToLoadBalancerInput) (*ApplySecurityGroupsToLoadBalancerOutput, error) { req, out := c.ApplySecurityGroupsToLoadBalancerRequest(input) err := req.Send() @@ -190,6 +192,7 @@ const opAttachLoadBalancerToSubnets = "AttachLoadBalancerToSubnets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AttachLoadBalancerToSubnets func (c *ELB) AttachLoadBalancerToSubnetsRequest(input *AttachLoadBalancerToSubnetsInput) (req *request.Request, output *AttachLoadBalancerToSubnetsOutput) { op := &request.Operation{ Name: opAttachLoadBalancerToSubnets, @@ -201,9 +204,8 @@ func (c *ELB) AttachLoadBalancerToSubnetsRequest(input *AttachLoadBalancerToSubn input = &AttachLoadBalancerToSubnetsInput{} } - req = c.newRequest(op, input, output) output = &AttachLoadBalancerToSubnetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -225,18 +227,19 @@ func (c *ELB) AttachLoadBalancerToSubnetsRequest(input *AttachLoadBalancerToSubn // API operation AttachLoadBalancerToSubnets for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // -// * SubnetNotFound +// * ErrCodeSubnetNotFoundException "SubnetNotFound" // One or more of the specified subnets do not exist. // -// * InvalidSubnet +// * ErrCodeInvalidSubnetException "InvalidSubnet" // The specified VPC has no associated Internet gateway. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AttachLoadBalancerToSubnets func (c *ELB) AttachLoadBalancerToSubnets(input *AttachLoadBalancerToSubnetsInput) (*AttachLoadBalancerToSubnetsOutput, error) { req, out := c.AttachLoadBalancerToSubnetsRequest(input) err := req.Send() @@ -269,6 +272,7 @@ const opConfigureHealthCheck = "ConfigureHealthCheck" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ConfigureHealthCheck func (c *ELB) ConfigureHealthCheckRequest(input *ConfigureHealthCheckInput) (req *request.Request, output *ConfigureHealthCheckOutput) { op := &request.Operation{ Name: opConfigureHealthCheck, @@ -280,9 +284,8 @@ func (c *ELB) ConfigureHealthCheckRequest(input *ConfigureHealthCheckInput) (req input = &ConfigureHealthCheckInput{} } - req = c.newRequest(op, input, output) output = &ConfigureHealthCheckOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -303,9 +306,10 @@ func (c *ELB) ConfigureHealthCheckRequest(input *ConfigureHealthCheckInput) (req // API operation ConfigureHealthCheck for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ConfigureHealthCheck func (c *ELB) ConfigureHealthCheck(input *ConfigureHealthCheckInput) (*ConfigureHealthCheckOutput, error) { req, out := c.ConfigureHealthCheckRequest(input) err := req.Send() @@ -338,6 +342,7 @@ const opCreateAppCookieStickinessPolicy = "CreateAppCookieStickinessPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateAppCookieStickinessPolicy func (c *ELB) CreateAppCookieStickinessPolicyRequest(input *CreateAppCookieStickinessPolicyInput) (req *request.Request, output *CreateAppCookieStickinessPolicyOutput) { op := &request.Operation{ Name: opCreateAppCookieStickinessPolicy, @@ -349,9 +354,8 @@ func (c *ELB) CreateAppCookieStickinessPolicyRequest(input *CreateAppCookieStick input = &CreateAppCookieStickinessPolicyInput{} } - req = c.newRequest(op, input, output) output = &CreateAppCookieStickinessPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -367,8 +371,8 @@ func (c *ELB) CreateAppCookieStickinessPolicyRequest(input *CreateAppCookieStick // policy configuration. The load balancer only inserts a new stickiness cookie // when the application response includes a new application cookie. // -// If the application cookie is explicitly removed or expires, the session -// stops being sticky until a new application cookie is issued. +// If the application cookie is explicitly removed or expires, the session stops +// being sticky until a new application cookie is issued. // // For more information, see Application-Controlled Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-application) // in the Classic Load Balancers Guide. @@ -381,18 +385,19 @@ func (c *ELB) CreateAppCookieStickinessPolicyRequest(input *CreateAppCookieStick // API operation CreateAppCookieStickinessPolicy for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * DuplicatePolicyName +// * ErrCodeDuplicatePolicyNameException "DuplicatePolicyName" // A policy with the specified name already exists for this load balancer. // -// * TooManyPolicies +// * ErrCodeTooManyPoliciesException "TooManyPolicies" // The quota for the number of policies for this load balancer has been reached. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateAppCookieStickinessPolicy func (c *ELB) CreateAppCookieStickinessPolicy(input *CreateAppCookieStickinessPolicyInput) (*CreateAppCookieStickinessPolicyOutput, error) { req, out := c.CreateAppCookieStickinessPolicyRequest(input) err := req.Send() @@ -425,6 +430,7 @@ const opCreateLBCookieStickinessPolicy = "CreateLBCookieStickinessPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLBCookieStickinessPolicy func (c *ELB) CreateLBCookieStickinessPolicyRequest(input *CreateLBCookieStickinessPolicyInput) (req *request.Request, output *CreateLBCookieStickinessPolicyOutput) { op := &request.Operation{ Name: opCreateLBCookieStickinessPolicy, @@ -436,9 +442,8 @@ func (c *ELB) CreateLBCookieStickinessPolicyRequest(input *CreateLBCookieStickin input = &CreateLBCookieStickinessPolicyInput{} } - req = c.newRequest(op, input, output) output = &CreateLBCookieStickinessPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -470,18 +475,19 @@ func (c *ELB) CreateLBCookieStickinessPolicyRequest(input *CreateLBCookieStickin // API operation CreateLBCookieStickinessPolicy for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * DuplicatePolicyName +// * ErrCodeDuplicatePolicyNameException "DuplicatePolicyName" // A policy with the specified name already exists for this load balancer. // -// * TooManyPolicies +// * ErrCodeTooManyPoliciesException "TooManyPolicies" // The quota for the number of policies for this load balancer has been reached. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLBCookieStickinessPolicy func (c *ELB) CreateLBCookieStickinessPolicy(input *CreateLBCookieStickinessPolicyInput) (*CreateLBCookieStickinessPolicyOutput, error) { req, out := c.CreateLBCookieStickinessPolicyRequest(input) err := req.Send() @@ -514,6 +520,7 @@ const opCreateLoadBalancer = "CreateLoadBalancer" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancer func (c *ELB) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *request.Request, output *CreateLoadBalancerOutput) { op := &request.Operation{ Name: opCreateLoadBalancer, @@ -525,9 +532,8 @@ func (c *ELB) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *re input = &CreateLoadBalancerInput{} } - req = c.newRequest(op, input, output) output = &CreateLoadBalancerOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -555,44 +561,44 @@ func (c *ELB) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *re // API operation CreateLoadBalancer for usage and error information. // // Returned Error Codes: -// * DuplicateLoadBalancerName +// * ErrCodeDuplicateAccessPointNameException "DuplicateLoadBalancerName" // The specified load balancer name already exists for this account. // -// * TooManyLoadBalancers +// * ErrCodeTooManyAccessPointsException "TooManyLoadBalancers" // The quota for the number of load balancers has been reached. // -// * CertificateNotFound +// * ErrCodeCertificateNotFoundException "CertificateNotFound" // The specified ARN does not refer to a valid SSL certificate in AWS Identity // and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if // you recently uploaded the certificate to IAM, this error might indicate that // the certificate is not fully available yet. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // -// * SubnetNotFound +// * ErrCodeSubnetNotFoundException "SubnetNotFound" // One or more of the specified subnets do not exist. // -// * InvalidSubnet +// * ErrCodeInvalidSubnetException "InvalidSubnet" // The specified VPC has no associated Internet gateway. // -// * InvalidSecurityGroup +// * ErrCodeInvalidSecurityGroupException "InvalidSecurityGroup" // One or more of the specified security groups do not exist. // -// * InvalidScheme +// * ErrCodeInvalidSchemeException "InvalidScheme" // The specified value for the schema is not valid. You can only specify a scheme // for load balancers in a VPC. // -// * TooManyTags +// * ErrCodeTooManyTagsException "TooManyTags" // The quota for the number of tags that can be assigned to a load balancer // has been reached. // -// * DuplicateTagKeys +// * ErrCodeDuplicateTagKeysException "DuplicateTagKeys" // A tag key was specified more than once. // -// * UnsupportedProtocol - +// * ErrCodeUnsupportedProtocolException "UnsupportedProtocol" // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancer func (c *ELB) CreateLoadBalancer(input *CreateLoadBalancerInput) (*CreateLoadBalancerOutput, error) { req, out := c.CreateLoadBalancerRequest(input) err := req.Send() @@ -625,6 +631,7 @@ const opCreateLoadBalancerListeners = "CreateLoadBalancerListeners" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerListeners func (c *ELB) CreateLoadBalancerListenersRequest(input *CreateLoadBalancerListenersInput) (req *request.Request, output *CreateLoadBalancerListenersOutput) { op := &request.Operation{ Name: opCreateLoadBalancerListeners, @@ -636,9 +643,8 @@ func (c *ELB) CreateLoadBalancerListenersRequest(input *CreateLoadBalancerListen input = &CreateLoadBalancerListenersInput{} } - req = c.newRequest(op, input, output) output = &CreateLoadBalancerListenersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -660,25 +666,25 @@ func (c *ELB) CreateLoadBalancerListenersRequest(input *CreateLoadBalancerListen // API operation CreateLoadBalancerListeners for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * DuplicateListener +// * ErrCodeDuplicateListenerException "DuplicateListener" // A listener already exists for the specified load balancer name and port, // but with a different instance port, protocol, or SSL certificate. // -// * CertificateNotFound +// * ErrCodeCertificateNotFoundException "CertificateNotFound" // The specified ARN does not refer to a valid SSL certificate in AWS Identity // and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if // you recently uploaded the certificate to IAM, this error might indicate that // the certificate is not fully available yet. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // -// * UnsupportedProtocol - +// * ErrCodeUnsupportedProtocolException "UnsupportedProtocol" // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerListeners func (c *ELB) CreateLoadBalancerListeners(input *CreateLoadBalancerListenersInput) (*CreateLoadBalancerListenersOutput, error) { req, out := c.CreateLoadBalancerListenersRequest(input) err := req.Send() @@ -711,6 +717,7 @@ const opCreateLoadBalancerPolicy = "CreateLoadBalancerPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerPolicy func (c *ELB) CreateLoadBalancerPolicyRequest(input *CreateLoadBalancerPolicyInput) (req *request.Request, output *CreateLoadBalancerPolicyOutput) { op := &request.Operation{ Name: opCreateLoadBalancerPolicy, @@ -722,9 +729,8 @@ func (c *ELB) CreateLoadBalancerPolicyRequest(input *CreateLoadBalancerPolicyInp input = &CreateLoadBalancerPolicyInput{} } - req = c.newRequest(op, input, output) output = &CreateLoadBalancerPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -744,21 +750,22 @@ func (c *ELB) CreateLoadBalancerPolicyRequest(input *CreateLoadBalancerPolicyInp // API operation CreateLoadBalancerPolicy for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * PolicyTypeNotFound +// * ErrCodePolicyTypeNotFoundException "PolicyTypeNotFound" // One or more of the specified policy types do not exist. // -// * DuplicatePolicyName +// * ErrCodeDuplicatePolicyNameException "DuplicatePolicyName" // A policy with the specified name already exists for this load balancer. // -// * TooManyPolicies +// * ErrCodeTooManyPoliciesException "TooManyPolicies" // The quota for the number of policies for this load balancer has been reached. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerPolicy func (c *ELB) CreateLoadBalancerPolicy(input *CreateLoadBalancerPolicyInput) (*CreateLoadBalancerPolicyOutput, error) { req, out := c.CreateLoadBalancerPolicyRequest(input) err := req.Send() @@ -791,6 +798,7 @@ const opDeleteLoadBalancer = "DeleteLoadBalancer" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancer func (c *ELB) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *request.Request, output *DeleteLoadBalancerOutput) { op := &request.Operation{ Name: opDeleteLoadBalancer, @@ -802,9 +810,8 @@ func (c *ELB) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *re input = &DeleteLoadBalancerInput{} } - req = c.newRequest(op, input, output) output = &DeleteLoadBalancerOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -812,11 +819,11 @@ func (c *ELB) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *re // // Deletes the specified load balancer. // -// If you are attempting to recreate a load balancer, you must reconfigure -// all settings. The DNS name associated with a deleted load balancer are no -// longer usable. The name and associated DNS record of the deleted load balancer -// no longer exist and traffic sent to any of its IP addresses is no longer -// delivered to your instances. +// If you are attempting to recreate a load balancer, you must reconfigure all +// settings. The DNS name associated with a deleted load balancer are no longer +// usable. The name and associated DNS record of the deleted load balancer no +// longer exist and traffic sent to any of its IP addresses is no longer delivered +// to your instances. // // If the load balancer does not exist or has already been deleted, the call // to DeleteLoadBalancer still succeeds. @@ -827,6 +834,7 @@ func (c *ELB) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *re // // See the AWS API reference guide for Elastic Load Balancing's // API operation DeleteLoadBalancer for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancer func (c *ELB) DeleteLoadBalancer(input *DeleteLoadBalancerInput) (*DeleteLoadBalancerOutput, error) { req, out := c.DeleteLoadBalancerRequest(input) err := req.Send() @@ -859,6 +867,7 @@ const opDeleteLoadBalancerListeners = "DeleteLoadBalancerListeners" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerListeners func (c *ELB) DeleteLoadBalancerListenersRequest(input *DeleteLoadBalancerListenersInput) (req *request.Request, output *DeleteLoadBalancerListenersOutput) { op := &request.Operation{ Name: opDeleteLoadBalancerListeners, @@ -870,9 +879,8 @@ func (c *ELB) DeleteLoadBalancerListenersRequest(input *DeleteLoadBalancerListen input = &DeleteLoadBalancerListenersInput{} } - req = c.newRequest(op, input, output) output = &DeleteLoadBalancerListenersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -888,9 +896,10 @@ func (c *ELB) DeleteLoadBalancerListenersRequest(input *DeleteLoadBalancerListen // API operation DeleteLoadBalancerListeners for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerListeners func (c *ELB) DeleteLoadBalancerListeners(input *DeleteLoadBalancerListenersInput) (*DeleteLoadBalancerListenersOutput, error) { req, out := c.DeleteLoadBalancerListenersRequest(input) err := req.Send() @@ -923,6 +932,7 @@ const opDeleteLoadBalancerPolicy = "DeleteLoadBalancerPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerPolicy func (c *ELB) DeleteLoadBalancerPolicyRequest(input *DeleteLoadBalancerPolicyInput) (req *request.Request, output *DeleteLoadBalancerPolicyOutput) { op := &request.Operation{ Name: opDeleteLoadBalancerPolicy, @@ -934,9 +944,8 @@ func (c *ELB) DeleteLoadBalancerPolicyRequest(input *DeleteLoadBalancerPolicyInp input = &DeleteLoadBalancerPolicyInput{} } - req = c.newRequest(op, input, output) output = &DeleteLoadBalancerPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -953,12 +962,13 @@ func (c *ELB) DeleteLoadBalancerPolicyRequest(input *DeleteLoadBalancerPolicyInp // API operation DeleteLoadBalancerPolicy for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerPolicy func (c *ELB) DeleteLoadBalancerPolicy(input *DeleteLoadBalancerPolicyInput) (*DeleteLoadBalancerPolicyOutput, error) { req, out := c.DeleteLoadBalancerPolicyRequest(input) err := req.Send() @@ -991,6 +1001,7 @@ const opDeregisterInstancesFromLoadBalancer = "DeregisterInstancesFromLoadBalanc // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeregisterInstancesFromLoadBalancer func (c *ELB) DeregisterInstancesFromLoadBalancerRequest(input *DeregisterInstancesFromLoadBalancerInput) (req *request.Request, output *DeregisterInstancesFromLoadBalancerOutput) { op := &request.Operation{ Name: opDeregisterInstancesFromLoadBalancer, @@ -1002,9 +1013,8 @@ func (c *ELB) DeregisterInstancesFromLoadBalancerRequest(input *DeregisterInstan input = &DeregisterInstancesFromLoadBalancerInput{} } - req = c.newRequest(op, input, output) output = &DeregisterInstancesFromLoadBalancerOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1028,12 +1038,13 @@ func (c *ELB) DeregisterInstancesFromLoadBalancerRequest(input *DeregisterInstan // API operation DeregisterInstancesFromLoadBalancer for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * InvalidInstance +// * ErrCodeInvalidEndPointException "InvalidInstance" // The specified endpoint is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeregisterInstancesFromLoadBalancer func (c *ELB) DeregisterInstancesFromLoadBalancer(input *DeregisterInstancesFromLoadBalancerInput) (*DeregisterInstancesFromLoadBalancerOutput, error) { req, out := c.DeregisterInstancesFromLoadBalancerRequest(input) err := req.Send() @@ -1066,6 +1077,7 @@ const opDescribeInstanceHealth = "DescribeInstanceHealth" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeInstanceHealth func (c *ELB) DescribeInstanceHealthRequest(input *DescribeInstanceHealthInput) (req *request.Request, output *DescribeInstanceHealthOutput) { op := &request.Operation{ Name: opDescribeInstanceHealth, @@ -1077,9 +1089,8 @@ func (c *ELB) DescribeInstanceHealthRequest(input *DescribeInstanceHealthInput) input = &DescribeInstanceHealthInput{} } - req = c.newRequest(op, input, output) output = &DescribeInstanceHealthOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1100,12 +1111,13 @@ func (c *ELB) DescribeInstanceHealthRequest(input *DescribeInstanceHealthInput) // API operation DescribeInstanceHealth for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * InvalidInstance +// * ErrCodeInvalidEndPointException "InvalidInstance" // The specified endpoint is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeInstanceHealth func (c *ELB) DescribeInstanceHealth(input *DescribeInstanceHealthInput) (*DescribeInstanceHealthOutput, error) { req, out := c.DescribeInstanceHealthRequest(input) err := req.Send() @@ -1138,6 +1150,7 @@ const opDescribeLoadBalancerAttributes = "DescribeLoadBalancerAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerAttributes func (c *ELB) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalancerAttributesInput) (req *request.Request, output *DescribeLoadBalancerAttributesOutput) { op := &request.Operation{ Name: opDescribeLoadBalancerAttributes, @@ -1149,9 +1162,8 @@ func (c *ELB) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalancerA input = &DescribeLoadBalancerAttributesInput{} } - req = c.newRequest(op, input, output) output = &DescribeLoadBalancerAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1167,12 +1179,13 @@ func (c *ELB) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalancerA // API operation DescribeLoadBalancerAttributes for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * LoadBalancerAttributeNotFound +// * ErrCodeLoadBalancerAttributeNotFoundException "LoadBalancerAttributeNotFound" // The specified load balancer attribute does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerAttributes func (c *ELB) DescribeLoadBalancerAttributes(input *DescribeLoadBalancerAttributesInput) (*DescribeLoadBalancerAttributesOutput, error) { req, out := c.DescribeLoadBalancerAttributesRequest(input) err := req.Send() @@ -1205,6 +1218,7 @@ const opDescribeLoadBalancerPolicies = "DescribeLoadBalancerPolicies" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPolicies func (c *ELB) DescribeLoadBalancerPoliciesRequest(input *DescribeLoadBalancerPoliciesInput) (req *request.Request, output *DescribeLoadBalancerPoliciesOutput) { op := &request.Operation{ Name: opDescribeLoadBalancerPolicies, @@ -1216,9 +1230,8 @@ func (c *ELB) DescribeLoadBalancerPoliciesRequest(input *DescribeLoadBalancerPol input = &DescribeLoadBalancerPoliciesInput{} } - req = c.newRequest(op, input, output) output = &DescribeLoadBalancerPoliciesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1241,12 +1254,13 @@ func (c *ELB) DescribeLoadBalancerPoliciesRequest(input *DescribeLoadBalancerPol // API operation DescribeLoadBalancerPolicies for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * PolicyNotFound +// * ErrCodePolicyNotFoundException "PolicyNotFound" // One or more of the specified policies do not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPolicies func (c *ELB) DescribeLoadBalancerPolicies(input *DescribeLoadBalancerPoliciesInput) (*DescribeLoadBalancerPoliciesOutput, error) { req, out := c.DescribeLoadBalancerPoliciesRequest(input) err := req.Send() @@ -1279,6 +1293,7 @@ const opDescribeLoadBalancerPolicyTypes = "DescribeLoadBalancerPolicyTypes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPolicyTypes func (c *ELB) DescribeLoadBalancerPolicyTypesRequest(input *DescribeLoadBalancerPolicyTypesInput) (req *request.Request, output *DescribeLoadBalancerPolicyTypesOutput) { op := &request.Operation{ Name: opDescribeLoadBalancerPolicyTypes, @@ -1290,9 +1305,8 @@ func (c *ELB) DescribeLoadBalancerPolicyTypesRequest(input *DescribeLoadBalancer input = &DescribeLoadBalancerPolicyTypesInput{} } - req = c.newRequest(op, input, output) output = &DescribeLoadBalancerPolicyTypesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1301,10 +1315,10 @@ func (c *ELB) DescribeLoadBalancerPolicyTypesRequest(input *DescribeLoadBalancer // Describes the specified load balancer policy types or all load balancer policy // types. // -// The description of each type indicates how it can be used. For example, -// some policies can be used only with layer 7 listeners, some policies can -// be used only with layer 4 listeners, and some policies can be used only with -// your EC2 instances. +// The description of each type indicates how it can be used. For example, some +// policies can be used only with layer 7 listeners, some policies can be used +// only with layer 4 listeners, and some policies can be used only with your +// EC2 instances. // // You can use CreateLoadBalancerPolicy to create a policy configuration for // any of these policy types. Then, depending on the policy type, use either @@ -1319,9 +1333,10 @@ func (c *ELB) DescribeLoadBalancerPolicyTypesRequest(input *DescribeLoadBalancer // API operation DescribeLoadBalancerPolicyTypes for usage and error information. // // Returned Error Codes: -// * PolicyTypeNotFound +// * ErrCodePolicyTypeNotFoundException "PolicyTypeNotFound" // One or more of the specified policy types do not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPolicyTypes func (c *ELB) DescribeLoadBalancerPolicyTypes(input *DescribeLoadBalancerPolicyTypesInput) (*DescribeLoadBalancerPolicyTypesOutput, error) { req, out := c.DescribeLoadBalancerPolicyTypesRequest(input) err := req.Send() @@ -1354,6 +1369,7 @@ const opDescribeLoadBalancers = "DescribeLoadBalancers" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancers func (c *ELB) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) (req *request.Request, output *DescribeLoadBalancersOutput) { op := &request.Operation{ Name: opDescribeLoadBalancers, @@ -1371,9 +1387,8 @@ func (c *ELB) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) (r input = &DescribeLoadBalancersInput{} } - req = c.newRequest(op, input, output) output = &DescribeLoadBalancersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1390,12 +1405,12 @@ func (c *ELB) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) (r // API operation DescribeLoadBalancers for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * DependencyThrottle - +// * ErrCodeDependencyThrottleException "DependencyThrottle" // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancers func (c *ELB) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error) { req, out := c.DescribeLoadBalancersRequest(input) err := req.Send() @@ -1453,6 +1468,7 @@ const opDescribeTags = "DescribeTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeTags func (c *ELB) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) { op := &request.Operation{ Name: opDescribeTags, @@ -1464,9 +1480,8 @@ func (c *ELB) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Reques input = &DescribeTagsInput{} } - req = c.newRequest(op, input, output) output = &DescribeTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1482,9 +1497,10 @@ func (c *ELB) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Reques // API operation DescribeTags for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeTags func (c *ELB) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -1517,6 +1533,7 @@ const opDetachLoadBalancerFromSubnets = "DetachLoadBalancerFromSubnets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DetachLoadBalancerFromSubnets func (c *ELB) DetachLoadBalancerFromSubnetsRequest(input *DetachLoadBalancerFromSubnetsInput) (req *request.Request, output *DetachLoadBalancerFromSubnetsOutput) { op := &request.Operation{ Name: opDetachLoadBalancerFromSubnets, @@ -1528,9 +1545,8 @@ func (c *ELB) DetachLoadBalancerFromSubnetsRequest(input *DetachLoadBalancerFrom input = &DetachLoadBalancerFromSubnetsInput{} } - req = c.newRequest(op, input, output) output = &DetachLoadBalancerFromSubnetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1551,12 +1567,13 @@ func (c *ELB) DetachLoadBalancerFromSubnetsRequest(input *DetachLoadBalancerFrom // API operation DetachLoadBalancerFromSubnets for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DetachLoadBalancerFromSubnets func (c *ELB) DetachLoadBalancerFromSubnets(input *DetachLoadBalancerFromSubnetsInput) (*DetachLoadBalancerFromSubnetsOutput, error) { req, out := c.DetachLoadBalancerFromSubnetsRequest(input) err := req.Send() @@ -1589,6 +1606,7 @@ const opDisableAvailabilityZonesForLoadBalancer = "DisableAvailabilityZonesForLo // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DisableAvailabilityZonesForLoadBalancer func (c *ELB) DisableAvailabilityZonesForLoadBalancerRequest(input *DisableAvailabilityZonesForLoadBalancerInput) (req *request.Request, output *DisableAvailabilityZonesForLoadBalancerOutput) { op := &request.Operation{ Name: opDisableAvailabilityZonesForLoadBalancer, @@ -1600,9 +1618,8 @@ func (c *ELB) DisableAvailabilityZonesForLoadBalancerRequest(input *DisableAvail input = &DisableAvailabilityZonesForLoadBalancerInput{} } - req = c.newRequest(op, input, output) output = &DisableAvailabilityZonesForLoadBalancerOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1628,12 +1645,13 @@ func (c *ELB) DisableAvailabilityZonesForLoadBalancerRequest(input *DisableAvail // API operation DisableAvailabilityZonesForLoadBalancer for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DisableAvailabilityZonesForLoadBalancer func (c *ELB) DisableAvailabilityZonesForLoadBalancer(input *DisableAvailabilityZonesForLoadBalancerInput) (*DisableAvailabilityZonesForLoadBalancerOutput, error) { req, out := c.DisableAvailabilityZonesForLoadBalancerRequest(input) err := req.Send() @@ -1666,6 +1684,7 @@ const opEnableAvailabilityZonesForLoadBalancer = "EnableAvailabilityZonesForLoad // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/EnableAvailabilityZonesForLoadBalancer func (c *ELB) EnableAvailabilityZonesForLoadBalancerRequest(input *EnableAvailabilityZonesForLoadBalancerInput) (req *request.Request, output *EnableAvailabilityZonesForLoadBalancerOutput) { op := &request.Operation{ Name: opEnableAvailabilityZonesForLoadBalancer, @@ -1677,9 +1696,8 @@ func (c *ELB) EnableAvailabilityZonesForLoadBalancerRequest(input *EnableAvailab input = &EnableAvailabilityZonesForLoadBalancerInput{} } - req = c.newRequest(op, input, output) output = &EnableAvailabilityZonesForLoadBalancerOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1688,8 +1706,8 @@ func (c *ELB) EnableAvailabilityZonesForLoadBalancerRequest(input *EnableAvailab // Adds the specified Availability Zones to the set of Availability Zones for // the specified load balancer. // -// The load balancer evenly distributes requests across all its registered -// Availability Zones that contain instances. +// The load balancer evenly distributes requests across all its registered Availability +// Zones that contain instances. // // For more information, see Add or Remove Availability Zones (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-az.html) // in the Classic Load Balancers Guide. @@ -1702,9 +1720,10 @@ func (c *ELB) EnableAvailabilityZonesForLoadBalancerRequest(input *EnableAvailab // API operation EnableAvailabilityZonesForLoadBalancer for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/EnableAvailabilityZonesForLoadBalancer func (c *ELB) EnableAvailabilityZonesForLoadBalancer(input *EnableAvailabilityZonesForLoadBalancerInput) (*EnableAvailabilityZonesForLoadBalancerOutput, error) { req, out := c.EnableAvailabilityZonesForLoadBalancerRequest(input) err := req.Send() @@ -1737,6 +1756,7 @@ const opModifyLoadBalancerAttributes = "ModifyLoadBalancerAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ModifyLoadBalancerAttributes func (c *ELB) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttributesInput) (req *request.Request, output *ModifyLoadBalancerAttributesOutput) { op := &request.Operation{ Name: opModifyLoadBalancerAttributes, @@ -1748,9 +1768,8 @@ func (c *ELB) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttri input = &ModifyLoadBalancerAttributesInput{} } - req = c.newRequest(op, input, output) output = &ModifyLoadBalancerAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1765,13 +1784,13 @@ func (c *ELB) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttri // // For more information, see the following in the Classic Load Balancers Guide: // -// Cross-Zone Load Balancing (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html) +// * Cross-Zone Load Balancing (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html) // -// Connection Draining (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-conn-drain.html) +// * Connection Draining (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-conn-drain.html) // -// Access Logs (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/access-log-collection.html) +// * Access Logs (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/access-log-collection.html) // -// Idle Connection Timeout (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html) +// * Idle Connection Timeout (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html) // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1781,15 +1800,16 @@ func (c *ELB) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttri // API operation ModifyLoadBalancerAttributes for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * LoadBalancerAttributeNotFound +// * ErrCodeLoadBalancerAttributeNotFoundException "LoadBalancerAttributeNotFound" // The specified load balancer attribute does not exist. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ModifyLoadBalancerAttributes func (c *ELB) ModifyLoadBalancerAttributes(input *ModifyLoadBalancerAttributesInput) (*ModifyLoadBalancerAttributesOutput, error) { req, out := c.ModifyLoadBalancerAttributesRequest(input) err := req.Send() @@ -1822,6 +1842,7 @@ const opRegisterInstancesWithLoadBalancer = "RegisterInstancesWithLoadBalancer" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RegisterInstancesWithLoadBalancer func (c *ELB) RegisterInstancesWithLoadBalancerRequest(input *RegisterInstancesWithLoadBalancerInput) (req *request.Request, output *RegisterInstancesWithLoadBalancerOutput) { op := &request.Operation{ Name: opRegisterInstancesWithLoadBalancer, @@ -1833,9 +1854,8 @@ func (c *ELB) RegisterInstancesWithLoadBalancerRequest(input *RegisterInstancesW input = &RegisterInstancesWithLoadBalancerInput{} } - req = c.newRequest(op, input, output) output = &RegisterInstancesWithLoadBalancerOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1843,9 +1863,9 @@ func (c *ELB) RegisterInstancesWithLoadBalancerRequest(input *RegisterInstancesW // // Adds the specified instances to the specified load balancer. // -// The instance must be a running instance in the same network as the load -// balancer (EC2-Classic or the same VPC). If you have EC2-Classic instances -// and a load balancer in a VPC with ClassicLink enabled, you can link the EC2-Classic +// The instance must be a running instance in the same network as the load balancer +// (EC2-Classic or the same VPC). If you have EC2-Classic instances and a load +// balancer in a VPC with ClassicLink enabled, you can link the EC2-Classic // instances to that VPC and then register the linked EC2-Classic instances // with the load balancer in the VPC. // @@ -1873,12 +1893,13 @@ func (c *ELB) RegisterInstancesWithLoadBalancerRequest(input *RegisterInstancesW // API operation RegisterInstancesWithLoadBalancer for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * InvalidInstance +// * ErrCodeInvalidEndPointException "InvalidInstance" // The specified endpoint is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RegisterInstancesWithLoadBalancer func (c *ELB) RegisterInstancesWithLoadBalancer(input *RegisterInstancesWithLoadBalancerInput) (*RegisterInstancesWithLoadBalancerOutput, error) { req, out := c.RegisterInstancesWithLoadBalancerRequest(input) err := req.Send() @@ -1911,6 +1932,7 @@ const opRemoveTags = "RemoveTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RemoveTags func (c *ELB) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) { op := &request.Operation{ Name: opRemoveTags, @@ -1922,9 +1944,8 @@ func (c *ELB) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, o input = &RemoveTagsInput{} } - req = c.newRequest(op, input, output) output = &RemoveTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1940,9 +1961,10 @@ func (c *ELB) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, o // API operation RemoveTags for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RemoveTags func (c *ELB) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { req, out := c.RemoveTagsRequest(input) err := req.Send() @@ -1975,6 +1997,7 @@ const opSetLoadBalancerListenerSSLCertificate = "SetLoadBalancerListenerSSLCerti // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerListenerSSLCertificate func (c *ELB) SetLoadBalancerListenerSSLCertificateRequest(input *SetLoadBalancerListenerSSLCertificateInput) (req *request.Request, output *SetLoadBalancerListenerSSLCertificateOutput) { op := &request.Operation{ Name: opSetLoadBalancerListenerSSLCertificate, @@ -1986,9 +2009,8 @@ func (c *ELB) SetLoadBalancerListenerSSLCertificateRequest(input *SetLoadBalance input = &SetLoadBalancerListenerSSLCertificateInput{} } - req = c.newRequest(op, input, output) output = &SetLoadBalancerListenerSSLCertificateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2010,24 +2032,24 @@ func (c *ELB) SetLoadBalancerListenerSSLCertificateRequest(input *SetLoadBalance // API operation SetLoadBalancerListenerSSLCertificate for usage and error information. // // Returned Error Codes: -// * CertificateNotFound +// * ErrCodeCertificateNotFoundException "CertificateNotFound" // The specified ARN does not refer to a valid SSL certificate in AWS Identity // and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if // you recently uploaded the certificate to IAM, this error might indicate that // the certificate is not fully available yet. // -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * ListenerNotFound +// * ErrCodeListenerNotFoundException "ListenerNotFound" // The load balancer does not have a listener configured at the specified port. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // -// * UnsupportedProtocol - +// * ErrCodeUnsupportedProtocolException "UnsupportedProtocol" // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerListenerSSLCertificate func (c *ELB) SetLoadBalancerListenerSSLCertificate(input *SetLoadBalancerListenerSSLCertificateInput) (*SetLoadBalancerListenerSSLCertificateOutput, error) { req, out := c.SetLoadBalancerListenerSSLCertificateRequest(input) err := req.Send() @@ -2060,6 +2082,7 @@ const opSetLoadBalancerPoliciesForBackendServer = "SetLoadBalancerPoliciesForBac // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesForBackendServer func (c *ELB) SetLoadBalancerPoliciesForBackendServerRequest(input *SetLoadBalancerPoliciesForBackendServerInput) (req *request.Request, output *SetLoadBalancerPoliciesForBackendServerOutput) { op := &request.Operation{ Name: opSetLoadBalancerPoliciesForBackendServer, @@ -2071,9 +2094,8 @@ func (c *ELB) SetLoadBalancerPoliciesForBackendServerRequest(input *SetLoadBalan input = &SetLoadBalancerPoliciesForBackendServerInput{} } - req = c.newRequest(op, input, output) output = &SetLoadBalancerPoliciesForBackendServerOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2084,9 +2106,8 @@ func (c *ELB) SetLoadBalancerPoliciesForBackendServerRequest(input *SetLoadBalan // the back-end server authentication policy type can be applied to the instance // ports; this policy type is composed of multiple public key policies. // -// Each time you use SetLoadBalancerPoliciesForBackendServer to enable the -// policies, use the PolicyNames parameter to list the policies that you want -// to enable. +// Each time you use SetLoadBalancerPoliciesForBackendServer to enable the policies, +// use the PolicyNames parameter to list the policies that you want to enable. // // You can use DescribeLoadBalancers or DescribeLoadBalancerPolicies to verify // that the policy is associated with the EC2 instance. @@ -2105,15 +2126,16 @@ func (c *ELB) SetLoadBalancerPoliciesForBackendServerRequest(input *SetLoadBalan // API operation SetLoadBalancerPoliciesForBackendServer for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * PolicyNotFound +// * ErrCodePolicyNotFoundException "PolicyNotFound" // One or more of the specified policies do not exist. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesForBackendServer func (c *ELB) SetLoadBalancerPoliciesForBackendServer(input *SetLoadBalancerPoliciesForBackendServerInput) (*SetLoadBalancerPoliciesForBackendServerOutput, error) { req, out := c.SetLoadBalancerPoliciesForBackendServerRequest(input) err := req.Send() @@ -2146,6 +2168,7 @@ const opSetLoadBalancerPoliciesOfListener = "SetLoadBalancerPoliciesOfListener" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesOfListener func (c *ELB) SetLoadBalancerPoliciesOfListenerRequest(input *SetLoadBalancerPoliciesOfListenerInput) (req *request.Request, output *SetLoadBalancerPoliciesOfListenerOutput) { op := &request.Operation{ Name: opSetLoadBalancerPoliciesOfListener, @@ -2157,9 +2180,8 @@ func (c *ELB) SetLoadBalancerPoliciesOfListenerRequest(input *SetLoadBalancerPol input = &SetLoadBalancerPoliciesOfListenerInput{} } - req = c.newRequest(op, input, output) output = &SetLoadBalancerPoliciesOfListenerOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2184,18 +2206,19 @@ func (c *ELB) SetLoadBalancerPoliciesOfListenerRequest(input *SetLoadBalancerPol // API operation SetLoadBalancerPoliciesOfListener for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * PolicyNotFound +// * ErrCodePolicyNotFoundException "PolicyNotFound" // One or more of the specified policies do not exist. // -// * ListenerNotFound +// * ErrCodeListenerNotFoundException "ListenerNotFound" // The load balancer does not have a listener configured at the specified port. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration change is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesOfListener func (c *ELB) SetLoadBalancerPoliciesOfListener(input *SetLoadBalancerPoliciesOfListenerInput) (*SetLoadBalancerPoliciesOfListenerOutput, error) { req, out := c.SetLoadBalancerPoliciesOfListenerRequest(input) err := req.Send() @@ -2203,6 +2226,7 @@ func (c *ELB) SetLoadBalancerPoliciesOfListener(input *SetLoadBalancerPoliciesOf } // Information about the AccessLog attribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AccessLog type AccessLog struct { _ struct{} `type:"structure"` @@ -2249,7 +2273,32 @@ func (s *AccessLog) Validate() error { return nil } +// SetEmitInterval sets the EmitInterval field's value. +func (s *AccessLog) SetEmitInterval(v int64) *AccessLog { + s.EmitInterval = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *AccessLog) SetEnabled(v bool) *AccessLog { + s.Enabled = &v + return s +} + +// SetS3BucketName sets the S3BucketName field's value. +func (s *AccessLog) SetS3BucketName(v string) *AccessLog { + s.S3BucketName = &v + return s +} + +// SetS3BucketPrefix sets the S3BucketPrefix field's value. +func (s *AccessLog) SetS3BucketPrefix(v string) *AccessLog { + s.S3BucketPrefix = &v + return s +} + // Contains the parameters for AddTags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AddTagsInput type AddTagsInput struct { _ struct{} `type:"structure"` @@ -2303,7 +2352,20 @@ func (s *AddTagsInput) Validate() error { return nil } +// SetLoadBalancerNames sets the LoadBalancerNames field's value. +func (s *AddTagsInput) SetLoadBalancerNames(v []*string) *AddTagsInput { + s.LoadBalancerNames = v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput { + s.Tags = v + return s +} + // Contains the output of AddTags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AddTagsOutput type AddTagsOutput struct { _ struct{} `type:"structure"` } @@ -2319,6 +2381,7 @@ func (s AddTagsOutput) GoString() string { } // This data type is reserved. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AdditionalAttribute type AdditionalAttribute struct { _ struct{} `type:"structure"` @@ -2339,7 +2402,20 @@ func (s AdditionalAttribute) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *AdditionalAttribute) SetKey(v string) *AdditionalAttribute { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *AdditionalAttribute) SetValue(v string) *AdditionalAttribute { + s.Value = &v + return s +} + // Information about a policy for application-controlled session stickiness. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AppCookieStickinessPolicy type AppCookieStickinessPolicy struct { _ struct{} `type:"structure"` @@ -2361,7 +2437,20 @@ func (s AppCookieStickinessPolicy) GoString() string { return s.String() } +// SetCookieName sets the CookieName field's value. +func (s *AppCookieStickinessPolicy) SetCookieName(v string) *AppCookieStickinessPolicy { + s.CookieName = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *AppCookieStickinessPolicy) SetPolicyName(v string) *AppCookieStickinessPolicy { + s.PolicyName = &v + return s +} + // Contains the parameters for ApplySecurityGroupsToLoadBalancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ApplySecurityGroupsToLoadBalancerInput type ApplySecurityGroupsToLoadBalancerInput struct { _ struct{} `type:"structure"` @@ -2403,7 +2492,20 @@ func (s *ApplySecurityGroupsToLoadBalancerInput) Validate() error { return nil } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *ApplySecurityGroupsToLoadBalancerInput) SetLoadBalancerName(v string) *ApplySecurityGroupsToLoadBalancerInput { + s.LoadBalancerName = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *ApplySecurityGroupsToLoadBalancerInput) SetSecurityGroups(v []*string) *ApplySecurityGroupsToLoadBalancerInput { + s.SecurityGroups = v + return s +} + // Contains the output of ApplySecurityGroupsToLoadBalancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ApplySecurityGroupsToLoadBalancerOutput type ApplySecurityGroupsToLoadBalancerOutput struct { _ struct{} `type:"structure"` @@ -2421,7 +2523,14 @@ func (s ApplySecurityGroupsToLoadBalancerOutput) GoString() string { return s.String() } +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *ApplySecurityGroupsToLoadBalancerOutput) SetSecurityGroups(v []*string) *ApplySecurityGroupsToLoadBalancerOutput { + s.SecurityGroups = v + return s +} + // Contains the parameters for AttachLoaBalancerToSubnets. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AttachLoadBalancerToSubnetsInput type AttachLoadBalancerToSubnetsInput struct { _ struct{} `type:"structure"` @@ -2463,7 +2572,20 @@ func (s *AttachLoadBalancerToSubnetsInput) Validate() error { return nil } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *AttachLoadBalancerToSubnetsInput) SetLoadBalancerName(v string) *AttachLoadBalancerToSubnetsInput { + s.LoadBalancerName = &v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *AttachLoadBalancerToSubnetsInput) SetSubnets(v []*string) *AttachLoadBalancerToSubnetsInput { + s.Subnets = v + return s +} + // Contains the output of AttachLoadBalancerToSubnets. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AttachLoadBalancerToSubnetsOutput type AttachLoadBalancerToSubnetsOutput struct { _ struct{} `type:"structure"` @@ -2481,7 +2603,14 @@ func (s AttachLoadBalancerToSubnetsOutput) GoString() string { return s.String() } +// SetSubnets sets the Subnets field's value. +func (s *AttachLoadBalancerToSubnetsOutput) SetSubnets(v []*string) *AttachLoadBalancerToSubnetsOutput { + s.Subnets = v + return s +} + // Information about the configuration of an EC2 instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/BackendServerDescription type BackendServerDescription struct { _ struct{} `type:"structure"` @@ -2502,7 +2631,20 @@ func (s BackendServerDescription) GoString() string { return s.String() } +// SetInstancePort sets the InstancePort field's value. +func (s *BackendServerDescription) SetInstancePort(v int64) *BackendServerDescription { + s.InstancePort = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *BackendServerDescription) SetPolicyNames(v []*string) *BackendServerDescription { + s.PolicyNames = v + return s +} + // Contains the parameters for ConfigureHealthCheck. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ConfigureHealthCheckInput type ConfigureHealthCheckInput struct { _ struct{} `type:"structure"` @@ -2548,7 +2690,20 @@ func (s *ConfigureHealthCheckInput) Validate() error { return nil } +// SetHealthCheck sets the HealthCheck field's value. +func (s *ConfigureHealthCheckInput) SetHealthCheck(v *HealthCheck) *ConfigureHealthCheckInput { + s.HealthCheck = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *ConfigureHealthCheckInput) SetLoadBalancerName(v string) *ConfigureHealthCheckInput { + s.LoadBalancerName = &v + return s +} + // Contains the output of ConfigureHealthCheck. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ConfigureHealthCheckOutput type ConfigureHealthCheckOutput struct { _ struct{} `type:"structure"` @@ -2566,7 +2721,14 @@ func (s ConfigureHealthCheckOutput) GoString() string { return s.String() } +// SetHealthCheck sets the HealthCheck field's value. +func (s *ConfigureHealthCheckOutput) SetHealthCheck(v *HealthCheck) *ConfigureHealthCheckOutput { + s.HealthCheck = v + return s +} + // Information about the ConnectionDraining attribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ConnectionDraining type ConnectionDraining struct { _ struct{} `type:"structure"` @@ -2603,7 +2765,20 @@ func (s *ConnectionDraining) Validate() error { return nil } +// SetEnabled sets the Enabled field's value. +func (s *ConnectionDraining) SetEnabled(v bool) *ConnectionDraining { + s.Enabled = &v + return s +} + +// SetTimeout sets the Timeout field's value. +func (s *ConnectionDraining) SetTimeout(v int64) *ConnectionDraining { + s.Timeout = &v + return s +} + // Information about the ConnectionSettings attribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ConnectionSettings type ConnectionSettings struct { _ struct{} `type:"structure"` @@ -2640,7 +2815,14 @@ func (s *ConnectionSettings) Validate() error { return nil } +// SetIdleTimeout sets the IdleTimeout field's value. +func (s *ConnectionSettings) SetIdleTimeout(v int64) *ConnectionSettings { + s.IdleTimeout = &v + return s +} + // Contains the parameters for CreateAppCookieStickinessPolicy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateAppCookieStickinessPolicyInput type CreateAppCookieStickinessPolicyInput struct { _ struct{} `type:"structure"` @@ -2691,7 +2873,26 @@ func (s *CreateAppCookieStickinessPolicyInput) Validate() error { return nil } +// SetCookieName sets the CookieName field's value. +func (s *CreateAppCookieStickinessPolicyInput) SetCookieName(v string) *CreateAppCookieStickinessPolicyInput { + s.CookieName = &v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *CreateAppCookieStickinessPolicyInput) SetLoadBalancerName(v string) *CreateAppCookieStickinessPolicyInput { + s.LoadBalancerName = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *CreateAppCookieStickinessPolicyInput) SetPolicyName(v string) *CreateAppCookieStickinessPolicyInput { + s.PolicyName = &v + return s +} + // Contains the output for CreateAppCookieStickinessPolicy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateAppCookieStickinessPolicyOutput type CreateAppCookieStickinessPolicyOutput struct { _ struct{} `type:"structure"` } @@ -2707,6 +2908,7 @@ func (s CreateAppCookieStickinessPolicyOutput) GoString() string { } // Contains the parameters for CreateLBCookieStickinessPolicy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLBCookieStickinessPolicyInput type CreateLBCookieStickinessPolicyInput struct { _ struct{} `type:"structure"` @@ -2755,7 +2957,26 @@ func (s *CreateLBCookieStickinessPolicyInput) Validate() error { return nil } +// SetCookieExpirationPeriod sets the CookieExpirationPeriod field's value. +func (s *CreateLBCookieStickinessPolicyInput) SetCookieExpirationPeriod(v int64) *CreateLBCookieStickinessPolicyInput { + s.CookieExpirationPeriod = &v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *CreateLBCookieStickinessPolicyInput) SetLoadBalancerName(v string) *CreateLBCookieStickinessPolicyInput { + s.LoadBalancerName = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *CreateLBCookieStickinessPolicyInput) SetPolicyName(v string) *CreateLBCookieStickinessPolicyInput { + s.PolicyName = &v + return s +} + // Contains the output for CreateLBCookieStickinessPolicy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLBCookieStickinessPolicyOutput type CreateLBCookieStickinessPolicyOutput struct { _ struct{} `type:"structure"` } @@ -2771,6 +2992,7 @@ func (s CreateLBCookieStickinessPolicyOutput) GoString() string { } // Contains the parameters for CreateLoadBalancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateAccessPointInput type CreateLoadBalancerInput struct { _ struct{} `type:"structure"` @@ -2875,7 +3097,50 @@ func (s *CreateLoadBalancerInput) Validate() error { return nil } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *CreateLoadBalancerInput) SetAvailabilityZones(v []*string) *CreateLoadBalancerInput { + s.AvailabilityZones = v + return s +} + +// SetListeners sets the Listeners field's value. +func (s *CreateLoadBalancerInput) SetListeners(v []*Listener) *CreateLoadBalancerInput { + s.Listeners = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *CreateLoadBalancerInput) SetLoadBalancerName(v string) *CreateLoadBalancerInput { + s.LoadBalancerName = &v + return s +} + +// SetScheme sets the Scheme field's value. +func (s *CreateLoadBalancerInput) SetScheme(v string) *CreateLoadBalancerInput { + s.Scheme = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *CreateLoadBalancerInput) SetSecurityGroups(v []*string) *CreateLoadBalancerInput { + s.SecurityGroups = v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *CreateLoadBalancerInput) SetSubnets(v []*string) *CreateLoadBalancerInput { + s.Subnets = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateLoadBalancerInput) SetTags(v []*Tag) *CreateLoadBalancerInput { + s.Tags = v + return s +} + // Contains the parameters for CreateLoadBalancerListeners. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerListenerInput type CreateLoadBalancerListenersInput struct { _ struct{} `type:"structure"` @@ -2926,7 +3191,20 @@ func (s *CreateLoadBalancerListenersInput) Validate() error { return nil } +// SetListeners sets the Listeners field's value. +func (s *CreateLoadBalancerListenersInput) SetListeners(v []*Listener) *CreateLoadBalancerListenersInput { + s.Listeners = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *CreateLoadBalancerListenersInput) SetLoadBalancerName(v string) *CreateLoadBalancerListenersInput { + s.LoadBalancerName = &v + return s +} + // Contains the parameters for CreateLoadBalancerListener. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerListenerOutput type CreateLoadBalancerListenersOutput struct { _ struct{} `type:"structure"` } @@ -2942,6 +3220,7 @@ func (s CreateLoadBalancerListenersOutput) GoString() string { } // Contains the output for CreateLoadBalancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateAccessPointOutput type CreateLoadBalancerOutput struct { _ struct{} `type:"structure"` @@ -2959,7 +3238,14 @@ func (s CreateLoadBalancerOutput) GoString() string { return s.String() } +// SetDNSName sets the DNSName field's value. +func (s *CreateLoadBalancerOutput) SetDNSName(v string) *CreateLoadBalancerOutput { + s.DNSName = &v + return s +} + // Contains the parameters for CreateLoadBalancerPolicy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerPolicyInput type CreateLoadBalancerPolicyInput struct { _ struct{} `type:"structure"` @@ -3012,7 +3298,32 @@ func (s *CreateLoadBalancerPolicyInput) Validate() error { return nil } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *CreateLoadBalancerPolicyInput) SetLoadBalancerName(v string) *CreateLoadBalancerPolicyInput { + s.LoadBalancerName = &v + return s +} + +// SetPolicyAttributes sets the PolicyAttributes field's value. +func (s *CreateLoadBalancerPolicyInput) SetPolicyAttributes(v []*PolicyAttribute) *CreateLoadBalancerPolicyInput { + s.PolicyAttributes = v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *CreateLoadBalancerPolicyInput) SetPolicyName(v string) *CreateLoadBalancerPolicyInput { + s.PolicyName = &v + return s +} + +// SetPolicyTypeName sets the PolicyTypeName field's value. +func (s *CreateLoadBalancerPolicyInput) SetPolicyTypeName(v string) *CreateLoadBalancerPolicyInput { + s.PolicyTypeName = &v + return s +} + // Contains the output of CreateLoadBalancerPolicy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerPolicyOutput type CreateLoadBalancerPolicyOutput struct { _ struct{} `type:"structure"` } @@ -3028,6 +3339,7 @@ func (s CreateLoadBalancerPolicyOutput) GoString() string { } // Information about the CrossZoneLoadBalancing attribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CrossZoneLoadBalancing type CrossZoneLoadBalancing struct { _ struct{} `type:"structure"` @@ -3060,7 +3372,14 @@ func (s *CrossZoneLoadBalancing) Validate() error { return nil } +// SetEnabled sets the Enabled field's value. +func (s *CrossZoneLoadBalancing) SetEnabled(v bool) *CrossZoneLoadBalancing { + s.Enabled = &v + return s +} + // Contains the parameters for DeleteLoadBalancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteAccessPointInput type DeleteLoadBalancerInput struct { _ struct{} `type:"structure"` @@ -3093,7 +3412,14 @@ func (s *DeleteLoadBalancerInput) Validate() error { return nil } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DeleteLoadBalancerInput) SetLoadBalancerName(v string) *DeleteLoadBalancerInput { + s.LoadBalancerName = &v + return s +} + // Contains the parameters for DeleteLoadBalancerListeners. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerListenerInput type DeleteLoadBalancerListenersInput struct { _ struct{} `type:"structure"` @@ -3134,7 +3460,20 @@ func (s *DeleteLoadBalancerListenersInput) Validate() error { return nil } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DeleteLoadBalancerListenersInput) SetLoadBalancerName(v string) *DeleteLoadBalancerListenersInput { + s.LoadBalancerName = &v + return s +} + +// SetLoadBalancerPorts sets the LoadBalancerPorts field's value. +func (s *DeleteLoadBalancerListenersInput) SetLoadBalancerPorts(v []*int64) *DeleteLoadBalancerListenersInput { + s.LoadBalancerPorts = v + return s +} + // Contains the output of DeleteLoadBalancerListeners. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerListenerOutput type DeleteLoadBalancerListenersOutput struct { _ struct{} `type:"structure"` } @@ -3150,6 +3489,7 @@ func (s DeleteLoadBalancerListenersOutput) GoString() string { } // Contains the output of DeleteLoadBalancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteAccessPointOutput type DeleteLoadBalancerOutput struct { _ struct{} `type:"structure"` } @@ -3165,6 +3505,7 @@ func (s DeleteLoadBalancerOutput) GoString() string { } // Contains the parameters for DeleteLoadBalancerPolicy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerPolicyInput type DeleteLoadBalancerPolicyInput struct { _ struct{} `type:"structure"` @@ -3205,7 +3546,20 @@ func (s *DeleteLoadBalancerPolicyInput) Validate() error { return nil } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DeleteLoadBalancerPolicyInput) SetLoadBalancerName(v string) *DeleteLoadBalancerPolicyInput { + s.LoadBalancerName = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *DeleteLoadBalancerPolicyInput) SetPolicyName(v string) *DeleteLoadBalancerPolicyInput { + s.PolicyName = &v + return s +} + // Contains the output of DeleteLoadBalancerPolicy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerPolicyOutput type DeleteLoadBalancerPolicyOutput struct { _ struct{} `type:"structure"` } @@ -3221,6 +3575,7 @@ func (s DeleteLoadBalancerPolicyOutput) GoString() string { } // Contains the parameters for DeregisterInstancesFromLoadBalancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeregisterEndPointsInput type DeregisterInstancesFromLoadBalancerInput struct { _ struct{} `type:"structure"` @@ -3261,7 +3616,20 @@ func (s *DeregisterInstancesFromLoadBalancerInput) Validate() error { return nil } +// SetInstances sets the Instances field's value. +func (s *DeregisterInstancesFromLoadBalancerInput) SetInstances(v []*Instance) *DeregisterInstancesFromLoadBalancerInput { + s.Instances = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DeregisterInstancesFromLoadBalancerInput) SetLoadBalancerName(v string) *DeregisterInstancesFromLoadBalancerInput { + s.LoadBalancerName = &v + return s +} + // Contains the output of DeregisterInstancesFromLoadBalancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeregisterEndPointsOutput type DeregisterInstancesFromLoadBalancerOutput struct { _ struct{} `type:"structure"` @@ -3279,7 +3647,14 @@ func (s DeregisterInstancesFromLoadBalancerOutput) GoString() string { return s.String() } +// SetInstances sets the Instances field's value. +func (s *DeregisterInstancesFromLoadBalancerOutput) SetInstances(v []*Instance) *DeregisterInstancesFromLoadBalancerOutput { + s.Instances = v + return s +} + // Contains the parameters for DescribeInstanceHealth. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeEndPointStateInput type DescribeInstanceHealthInput struct { _ struct{} `type:"structure"` @@ -3315,7 +3690,20 @@ func (s *DescribeInstanceHealthInput) Validate() error { return nil } +// SetInstances sets the Instances field's value. +func (s *DescribeInstanceHealthInput) SetInstances(v []*Instance) *DescribeInstanceHealthInput { + s.Instances = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DescribeInstanceHealthInput) SetLoadBalancerName(v string) *DescribeInstanceHealthInput { + s.LoadBalancerName = &v + return s +} + // Contains the output for DescribeInstanceHealth. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeEndPointStateOutput type DescribeInstanceHealthOutput struct { _ struct{} `type:"structure"` @@ -3333,7 +3721,14 @@ func (s DescribeInstanceHealthOutput) GoString() string { return s.String() } +// SetInstanceStates sets the InstanceStates field's value. +func (s *DescribeInstanceHealthOutput) SetInstanceStates(v []*InstanceState) *DescribeInstanceHealthOutput { + s.InstanceStates = v + return s +} + // Contains the parameters for DescribeLoadBalancerAttributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerAttributesInput type DescribeLoadBalancerAttributesInput struct { _ struct{} `type:"structure"` @@ -3366,7 +3761,14 @@ func (s *DescribeLoadBalancerAttributesInput) Validate() error { return nil } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DescribeLoadBalancerAttributesInput) SetLoadBalancerName(v string) *DescribeLoadBalancerAttributesInput { + s.LoadBalancerName = &v + return s +} + // Contains the output of DescribeLoadBalancerAttributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerAttributesOutput type DescribeLoadBalancerAttributesOutput struct { _ struct{} `type:"structure"` @@ -3384,7 +3786,14 @@ func (s DescribeLoadBalancerAttributesOutput) GoString() string { return s.String() } +// SetLoadBalancerAttributes sets the LoadBalancerAttributes field's value. +func (s *DescribeLoadBalancerAttributesOutput) SetLoadBalancerAttributes(v *LoadBalancerAttributes) *DescribeLoadBalancerAttributesOutput { + s.LoadBalancerAttributes = v + return s +} + // Contains the parameters for DescribeLoadBalancerPolicies. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPoliciesInput type DescribeLoadBalancerPoliciesInput struct { _ struct{} `type:"structure"` @@ -3405,7 +3814,20 @@ func (s DescribeLoadBalancerPoliciesInput) GoString() string { return s.String() } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DescribeLoadBalancerPoliciesInput) SetLoadBalancerName(v string) *DescribeLoadBalancerPoliciesInput { + s.LoadBalancerName = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *DescribeLoadBalancerPoliciesInput) SetPolicyNames(v []*string) *DescribeLoadBalancerPoliciesInput { + s.PolicyNames = v + return s +} + // Contains the output of DescribeLoadBalancerPolicies. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPoliciesOutput type DescribeLoadBalancerPoliciesOutput struct { _ struct{} `type:"structure"` @@ -3423,7 +3845,14 @@ func (s DescribeLoadBalancerPoliciesOutput) GoString() string { return s.String() } +// SetPolicyDescriptions sets the PolicyDescriptions field's value. +func (s *DescribeLoadBalancerPoliciesOutput) SetPolicyDescriptions(v []*PolicyDescription) *DescribeLoadBalancerPoliciesOutput { + s.PolicyDescriptions = v + return s +} + // Contains the parameters for DescribeLoadBalancerPolicyTypes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPolicyTypesInput type DescribeLoadBalancerPolicyTypesInput struct { _ struct{} `type:"structure"` @@ -3442,7 +3871,14 @@ func (s DescribeLoadBalancerPolicyTypesInput) GoString() string { return s.String() } +// SetPolicyTypeNames sets the PolicyTypeNames field's value. +func (s *DescribeLoadBalancerPolicyTypesInput) SetPolicyTypeNames(v []*string) *DescribeLoadBalancerPolicyTypesInput { + s.PolicyTypeNames = v + return s +} + // Contains the output of DescribeLoadBalancerPolicyTypes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPolicyTypesOutput type DescribeLoadBalancerPolicyTypesOutput struct { _ struct{} `type:"structure"` @@ -3460,7 +3896,14 @@ func (s DescribeLoadBalancerPolicyTypesOutput) GoString() string { return s.String() } +// SetPolicyTypeDescriptions sets the PolicyTypeDescriptions field's value. +func (s *DescribeLoadBalancerPolicyTypesOutput) SetPolicyTypeDescriptions(v []*PolicyTypeDescription) *DescribeLoadBalancerPolicyTypesOutput { + s.PolicyTypeDescriptions = v + return s +} + // Contains the parameters for DescribeLoadBalancers. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeAccessPointsInput type DescribeLoadBalancersInput struct { _ struct{} `type:"structure"` @@ -3499,7 +3942,26 @@ func (s *DescribeLoadBalancersInput) Validate() error { return nil } +// SetLoadBalancerNames sets the LoadBalancerNames field's value. +func (s *DescribeLoadBalancersInput) SetLoadBalancerNames(v []*string) *DescribeLoadBalancersInput { + s.LoadBalancerNames = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeLoadBalancersInput) SetMarker(v string) *DescribeLoadBalancersInput { + s.Marker = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *DescribeLoadBalancersInput) SetPageSize(v int64) *DescribeLoadBalancersInput { + s.PageSize = &v + return s +} + // Contains the parameters for DescribeLoadBalancers. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeAccessPointsOutput type DescribeLoadBalancersOutput struct { _ struct{} `type:"structure"` @@ -3521,7 +3983,20 @@ func (s DescribeLoadBalancersOutput) GoString() string { return s.String() } +// SetLoadBalancerDescriptions sets the LoadBalancerDescriptions field's value. +func (s *DescribeLoadBalancersOutput) SetLoadBalancerDescriptions(v []*LoadBalancerDescription) *DescribeLoadBalancersOutput { + s.LoadBalancerDescriptions = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *DescribeLoadBalancersOutput) SetNextMarker(v string) *DescribeLoadBalancersOutput { + s.NextMarker = &v + return s +} + // Contains the parameters for DescribeTags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeTagsInput type DescribeTagsInput struct { _ struct{} `type:"structure"` @@ -3557,7 +4032,14 @@ func (s *DescribeTagsInput) Validate() error { return nil } +// SetLoadBalancerNames sets the LoadBalancerNames field's value. +func (s *DescribeTagsInput) SetLoadBalancerNames(v []*string) *DescribeTagsInput { + s.LoadBalancerNames = v + return s +} + // Contains the output for DescribeTags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeTagsOutput type DescribeTagsOutput struct { _ struct{} `type:"structure"` @@ -3575,7 +4057,14 @@ func (s DescribeTagsOutput) GoString() string { return s.String() } +// SetTagDescriptions sets the TagDescriptions field's value. +func (s *DescribeTagsOutput) SetTagDescriptions(v []*TagDescription) *DescribeTagsOutput { + s.TagDescriptions = v + return s +} + // Contains the parameters for DetachLoadBalancerFromSubnets. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DetachLoadBalancerFromSubnetsInput type DetachLoadBalancerFromSubnetsInput struct { _ struct{} `type:"structure"` @@ -3616,7 +4105,20 @@ func (s *DetachLoadBalancerFromSubnetsInput) Validate() error { return nil } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DetachLoadBalancerFromSubnetsInput) SetLoadBalancerName(v string) *DetachLoadBalancerFromSubnetsInput { + s.LoadBalancerName = &v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *DetachLoadBalancerFromSubnetsInput) SetSubnets(v []*string) *DetachLoadBalancerFromSubnetsInput { + s.Subnets = v + return s +} + // Contains the output of DetachLoadBalancerFromSubnets. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DetachLoadBalancerFromSubnetsOutput type DetachLoadBalancerFromSubnetsOutput struct { _ struct{} `type:"structure"` @@ -3634,7 +4136,14 @@ func (s DetachLoadBalancerFromSubnetsOutput) GoString() string { return s.String() } +// SetSubnets sets the Subnets field's value. +func (s *DetachLoadBalancerFromSubnetsOutput) SetSubnets(v []*string) *DetachLoadBalancerFromSubnetsOutput { + s.Subnets = v + return s +} + // Contains the parameters for DisableAvailabilityZonesForLoadBalancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RemoveAvailabilityZonesInput type DisableAvailabilityZonesForLoadBalancerInput struct { _ struct{} `type:"structure"` @@ -3675,7 +4184,20 @@ func (s *DisableAvailabilityZonesForLoadBalancerInput) Validate() error { return nil } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *DisableAvailabilityZonesForLoadBalancerInput) SetAvailabilityZones(v []*string) *DisableAvailabilityZonesForLoadBalancerInput { + s.AvailabilityZones = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DisableAvailabilityZonesForLoadBalancerInput) SetLoadBalancerName(v string) *DisableAvailabilityZonesForLoadBalancerInput { + s.LoadBalancerName = &v + return s +} + // Contains the output for DisableAvailabilityZonesForLoadBalancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RemoveAvailabilityZonesOutput type DisableAvailabilityZonesForLoadBalancerOutput struct { _ struct{} `type:"structure"` @@ -3693,7 +4215,14 @@ func (s DisableAvailabilityZonesForLoadBalancerOutput) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *DisableAvailabilityZonesForLoadBalancerOutput) SetAvailabilityZones(v []*string) *DisableAvailabilityZonesForLoadBalancerOutput { + s.AvailabilityZones = v + return s +} + // Contains the parameters for EnableAvailabilityZonesForLoadBalancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AddAvailabilityZonesInput type EnableAvailabilityZonesForLoadBalancerInput struct { _ struct{} `type:"structure"` @@ -3734,7 +4263,20 @@ func (s *EnableAvailabilityZonesForLoadBalancerInput) Validate() error { return nil } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *EnableAvailabilityZonesForLoadBalancerInput) SetAvailabilityZones(v []*string) *EnableAvailabilityZonesForLoadBalancerInput { + s.AvailabilityZones = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *EnableAvailabilityZonesForLoadBalancerInput) SetLoadBalancerName(v string) *EnableAvailabilityZonesForLoadBalancerInput { + s.LoadBalancerName = &v + return s +} + // Contains the output of EnableAvailabilityZonesForLoadBalancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AddAvailabilityZonesOutput type EnableAvailabilityZonesForLoadBalancerOutput struct { _ struct{} `type:"structure"` @@ -3752,7 +4294,14 @@ func (s EnableAvailabilityZonesForLoadBalancerOutput) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *EnableAvailabilityZonesForLoadBalancerOutput) SetAvailabilityZones(v []*string) *EnableAvailabilityZonesForLoadBalancerOutput { + s.AvailabilityZones = v + return s +} + // Information about a health check. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/HealthCheck type HealthCheck struct { _ struct{} `type:"structure"` @@ -3852,7 +4401,38 @@ func (s *HealthCheck) Validate() error { return nil } +// SetHealthyThreshold sets the HealthyThreshold field's value. +func (s *HealthCheck) SetHealthyThreshold(v int64) *HealthCheck { + s.HealthyThreshold = &v + return s +} + +// SetInterval sets the Interval field's value. +func (s *HealthCheck) SetInterval(v int64) *HealthCheck { + s.Interval = &v + return s +} + +// SetTarget sets the Target field's value. +func (s *HealthCheck) SetTarget(v string) *HealthCheck { + s.Target = &v + return s +} + +// SetTimeout sets the Timeout field's value. +func (s *HealthCheck) SetTimeout(v int64) *HealthCheck { + s.Timeout = &v + return s +} + +// SetUnhealthyThreshold sets the UnhealthyThreshold field's value. +func (s *HealthCheck) SetUnhealthyThreshold(v int64) *HealthCheck { + s.UnhealthyThreshold = &v + return s +} + // The ID of an EC2 instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/Instance type Instance struct { _ struct{} `type:"structure"` @@ -3870,39 +4450,46 @@ func (s Instance) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *Instance) SetInstanceId(v string) *Instance { + s.InstanceId = &v + return s +} + // Information about the state of an EC2 instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/InstanceState type InstanceState struct { _ struct{} `type:"structure"` // A description of the instance state. This string can contain one or more // of the following messages. // - // N/A + // * N/A // - // A transient error occurred. Please try again later. + // * A transient error occurred. Please try again later. // - // Instance has failed at least the UnhealthyThreshold number of health - // checks consecutively. + // * Instance has failed at least the UnhealthyThreshold number of health + // checks consecutively. // - // Instance has not passed the configured HealthyThreshold number of health - // checks consecutively. + // * Instance has not passed the configured HealthyThreshold number of health + // checks consecutively. // - // Instance registration is still in progress. + // * Instance registration is still in progress. // - // Instance is in the EC2 Availability Zone for which LoadBalancer is not - // configured to route traffic to. + // * Instance is in the EC2 Availability Zone for which LoadBalancer is not + // configured to route traffic to. // - // Instance is not currently registered with the LoadBalancer. + // * Instance is not currently registered with the LoadBalancer. // - // Instance deregistration currently in progress. + // * Instance deregistration currently in progress. // - // Disable Availability Zone is currently in progress. + // * Disable Availability Zone is currently in progress. // - // Instance is in pending state. + // * Instance is in pending state. // - // Instance is in stopped state. + // * Instance is in stopped state. // - // Instance is in terminated state. + // * Instance is in terminated state. Description *string `type:"string"` // The ID of the instance. @@ -3930,7 +4517,32 @@ func (s InstanceState) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *InstanceState) SetDescription(v string) *InstanceState { + s.Description = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *InstanceState) SetInstanceId(v string) *InstanceState { + s.InstanceId = &v + return s +} + +// SetReasonCode sets the ReasonCode field's value. +func (s *InstanceState) SetReasonCode(v string) *InstanceState { + s.ReasonCode = &v + return s +} + +// SetState sets the State field's value. +func (s *InstanceState) SetState(v string) *InstanceState { + s.State = &v + return s +} + // Information about a policy for duration-based session stickiness. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/LBCookieStickinessPolicy type LBCookieStickinessPolicy struct { _ struct{} `type:"structure"` @@ -3954,11 +4566,24 @@ func (s LBCookieStickinessPolicy) GoString() string { return s.String() } +// SetCookieExpirationPeriod sets the CookieExpirationPeriod field's value. +func (s *LBCookieStickinessPolicy) SetCookieExpirationPeriod(v int64) *LBCookieStickinessPolicy { + s.CookieExpirationPeriod = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *LBCookieStickinessPolicy) SetPolicyName(v string) *LBCookieStickinessPolicy { + s.PolicyName = &v + return s +} + // Information about a listener. // // For information about the protocols and the ports supported by Elastic Load // Balancing, see Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html) // in the Classic Load Balancers Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/Listener type Listener struct { _ struct{} `type:"structure"` @@ -3970,8 +4595,8 @@ type Listener struct { // The protocol to use for routing traffic to instances: HTTP, HTTPS, TCP, or // SSL. // - // If the front-end protocol is HTTP, HTTPS, TCP, or SSL, InstanceProtocol - // must be at the same protocol. + // If the front-end protocol is HTTP, HTTPS, TCP, or SSL, InstanceProtocol must + // be at the same protocol. // // If there is another listener with the same InstancePort whose InstanceProtocol // is secure, (HTTPS or SSL), the listener's InstanceProtocol must also be secure. @@ -4029,7 +4654,38 @@ func (s *Listener) Validate() error { return nil } +// SetInstancePort sets the InstancePort field's value. +func (s *Listener) SetInstancePort(v int64) *Listener { + s.InstancePort = &v + return s +} + +// SetInstanceProtocol sets the InstanceProtocol field's value. +func (s *Listener) SetInstanceProtocol(v string) *Listener { + s.InstanceProtocol = &v + return s +} + +// SetLoadBalancerPort sets the LoadBalancerPort field's value. +func (s *Listener) SetLoadBalancerPort(v int64) *Listener { + s.LoadBalancerPort = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *Listener) SetProtocol(v string) *Listener { + s.Protocol = &v + return s +} + +// SetSSLCertificateId sets the SSLCertificateId field's value. +func (s *Listener) SetSSLCertificateId(v string) *Listener { + s.SSLCertificateId = &v + return s +} + // The policies enabled for a listener. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ListenerDescription type ListenerDescription struct { _ struct{} `type:"structure"` @@ -4054,7 +4710,20 @@ func (s ListenerDescription) GoString() string { return s.String() } +// SetListener sets the Listener field's value. +func (s *ListenerDescription) SetListener(v *Listener) *ListenerDescription { + s.Listener = v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *ListenerDescription) SetPolicyNames(v []*string) *ListenerDescription { + s.PolicyNames = v + return s +} + // The attributes for a load balancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/LoadBalancerAttributes type LoadBalancerAttributes struct { _ struct{} `type:"structure"` @@ -4132,7 +4801,38 @@ func (s *LoadBalancerAttributes) Validate() error { return nil } +// SetAccessLog sets the AccessLog field's value. +func (s *LoadBalancerAttributes) SetAccessLog(v *AccessLog) *LoadBalancerAttributes { + s.AccessLog = v + return s +} + +// SetAdditionalAttributes sets the AdditionalAttributes field's value. +func (s *LoadBalancerAttributes) SetAdditionalAttributes(v []*AdditionalAttribute) *LoadBalancerAttributes { + s.AdditionalAttributes = v + return s +} + +// SetConnectionDraining sets the ConnectionDraining field's value. +func (s *LoadBalancerAttributes) SetConnectionDraining(v *ConnectionDraining) *LoadBalancerAttributes { + s.ConnectionDraining = v + return s +} + +// SetConnectionSettings sets the ConnectionSettings field's value. +func (s *LoadBalancerAttributes) SetConnectionSettings(v *ConnectionSettings) *LoadBalancerAttributes { + s.ConnectionSettings = v + return s +} + +// SetCrossZoneLoadBalancing sets the CrossZoneLoadBalancing field's value. +func (s *LoadBalancerAttributes) SetCrossZoneLoadBalancing(v *CrossZoneLoadBalancing) *LoadBalancerAttributes { + s.CrossZoneLoadBalancing = v + return s +} + // Information about a load balancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/LoadBalancerDescription type LoadBalancerDescription struct { _ struct{} `type:"structure"` @@ -4208,7 +4908,104 @@ func (s LoadBalancerDescription) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *LoadBalancerDescription) SetAvailabilityZones(v []*string) *LoadBalancerDescription { + s.AvailabilityZones = v + return s +} + +// SetBackendServerDescriptions sets the BackendServerDescriptions field's value. +func (s *LoadBalancerDescription) SetBackendServerDescriptions(v []*BackendServerDescription) *LoadBalancerDescription { + s.BackendServerDescriptions = v + return s +} + +// SetCanonicalHostedZoneName sets the CanonicalHostedZoneName field's value. +func (s *LoadBalancerDescription) SetCanonicalHostedZoneName(v string) *LoadBalancerDescription { + s.CanonicalHostedZoneName = &v + return s +} + +// SetCanonicalHostedZoneNameID sets the CanonicalHostedZoneNameID field's value. +func (s *LoadBalancerDescription) SetCanonicalHostedZoneNameID(v string) *LoadBalancerDescription { + s.CanonicalHostedZoneNameID = &v + return s +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *LoadBalancerDescription) SetCreatedTime(v time.Time) *LoadBalancerDescription { + s.CreatedTime = &v + return s +} + +// SetDNSName sets the DNSName field's value. +func (s *LoadBalancerDescription) SetDNSName(v string) *LoadBalancerDescription { + s.DNSName = &v + return s +} + +// SetHealthCheck sets the HealthCheck field's value. +func (s *LoadBalancerDescription) SetHealthCheck(v *HealthCheck) *LoadBalancerDescription { + s.HealthCheck = v + return s +} + +// SetInstances sets the Instances field's value. +func (s *LoadBalancerDescription) SetInstances(v []*Instance) *LoadBalancerDescription { + s.Instances = v + return s +} + +// SetListenerDescriptions sets the ListenerDescriptions field's value. +func (s *LoadBalancerDescription) SetListenerDescriptions(v []*ListenerDescription) *LoadBalancerDescription { + s.ListenerDescriptions = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *LoadBalancerDescription) SetLoadBalancerName(v string) *LoadBalancerDescription { + s.LoadBalancerName = &v + return s +} + +// SetPolicies sets the Policies field's value. +func (s *LoadBalancerDescription) SetPolicies(v *Policies) *LoadBalancerDescription { + s.Policies = v + return s +} + +// SetScheme sets the Scheme field's value. +func (s *LoadBalancerDescription) SetScheme(v string) *LoadBalancerDescription { + s.Scheme = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *LoadBalancerDescription) SetSecurityGroups(v []*string) *LoadBalancerDescription { + s.SecurityGroups = v + return s +} + +// SetSourceSecurityGroup sets the SourceSecurityGroup field's value. +func (s *LoadBalancerDescription) SetSourceSecurityGroup(v *SourceSecurityGroup) *LoadBalancerDescription { + s.SourceSecurityGroup = v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *LoadBalancerDescription) SetSubnets(v []*string) *LoadBalancerDescription { + s.Subnets = v + return s +} + +// SetVPCId sets the VPCId field's value. +func (s *LoadBalancerDescription) SetVPCId(v string) *LoadBalancerDescription { + s.VPCId = &v + return s +} + // Contains the parameters for ModifyLoadBalancerAttributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ModifyLoadBalancerAttributesInput type ModifyLoadBalancerAttributesInput struct { _ struct{} `type:"structure"` @@ -4254,7 +5051,20 @@ func (s *ModifyLoadBalancerAttributesInput) Validate() error { return nil } +// SetLoadBalancerAttributes sets the LoadBalancerAttributes field's value. +func (s *ModifyLoadBalancerAttributesInput) SetLoadBalancerAttributes(v *LoadBalancerAttributes) *ModifyLoadBalancerAttributesInput { + s.LoadBalancerAttributes = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *ModifyLoadBalancerAttributesInput) SetLoadBalancerName(v string) *ModifyLoadBalancerAttributesInput { + s.LoadBalancerName = &v + return s +} + // Contains the output of ModifyLoadBalancerAttributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ModifyLoadBalancerAttributesOutput type ModifyLoadBalancerAttributesOutput struct { _ struct{} `type:"structure"` @@ -4275,7 +5085,20 @@ func (s ModifyLoadBalancerAttributesOutput) GoString() string { return s.String() } +// SetLoadBalancerAttributes sets the LoadBalancerAttributes field's value. +func (s *ModifyLoadBalancerAttributesOutput) SetLoadBalancerAttributes(v *LoadBalancerAttributes) *ModifyLoadBalancerAttributesOutput { + s.LoadBalancerAttributes = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *ModifyLoadBalancerAttributesOutput) SetLoadBalancerName(v string) *ModifyLoadBalancerAttributesOutput { + s.LoadBalancerName = &v + return s +} + // The policies for a load balancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/Policies type Policies struct { _ struct{} `type:"structure"` @@ -4299,7 +5122,26 @@ func (s Policies) GoString() string { return s.String() } +// SetAppCookieStickinessPolicies sets the AppCookieStickinessPolicies field's value. +func (s *Policies) SetAppCookieStickinessPolicies(v []*AppCookieStickinessPolicy) *Policies { + s.AppCookieStickinessPolicies = v + return s +} + +// SetLBCookieStickinessPolicies sets the LBCookieStickinessPolicies field's value. +func (s *Policies) SetLBCookieStickinessPolicies(v []*LBCookieStickinessPolicy) *Policies { + s.LBCookieStickinessPolicies = v + return s +} + +// SetOtherPolicies sets the OtherPolicies field's value. +func (s *Policies) SetOtherPolicies(v []*string) *Policies { + s.OtherPolicies = v + return s +} + // Information about a policy attribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/PolicyAttribute type PolicyAttribute struct { _ struct{} `type:"structure"` @@ -4320,7 +5162,20 @@ func (s PolicyAttribute) GoString() string { return s.String() } +// SetAttributeName sets the AttributeName field's value. +func (s *PolicyAttribute) SetAttributeName(v string) *PolicyAttribute { + s.AttributeName = &v + return s +} + +// SetAttributeValue sets the AttributeValue field's value. +func (s *PolicyAttribute) SetAttributeValue(v string) *PolicyAttribute { + s.AttributeValue = &v + return s +} + // Information about a policy attribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/PolicyAttributeDescription type PolicyAttributeDescription struct { _ struct{} `type:"structure"` @@ -4341,7 +5196,20 @@ func (s PolicyAttributeDescription) GoString() string { return s.String() } +// SetAttributeName sets the AttributeName field's value. +func (s *PolicyAttributeDescription) SetAttributeName(v string) *PolicyAttributeDescription { + s.AttributeName = &v + return s +} + +// SetAttributeValue sets the AttributeValue field's value. +func (s *PolicyAttributeDescription) SetAttributeValue(v string) *PolicyAttributeDescription { + s.AttributeValue = &v + return s +} + // Information about a policy attribute type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/PolicyAttributeTypeDescription type PolicyAttributeTypeDescription struct { _ struct{} `type:"structure"` @@ -4355,13 +5223,13 @@ type PolicyAttributeTypeDescription struct { // // Valid values: // - // ONE(1) : Single value required + // * ONE(1) : Single value required // - // ZERO_OR_ONE(0..1) : Up to one value is allowed + // * ZERO_OR_ONE(0..1) : Up to one value is allowed // - // ZERO_OR_MORE(0..*) : Optional. Multiple values are allowed + // * ZERO_OR_MORE(0..*) : Optional. Multiple values are allowed // - // ONE_OR_MORE(1..*0) : Required. Multiple values are allowed + // * ONE_OR_MORE(1..*0) : Required. Multiple values are allowed Cardinality *string `type:"string"` // The default value of the attribute, if applicable. @@ -4381,7 +5249,38 @@ func (s PolicyAttributeTypeDescription) GoString() string { return s.String() } +// SetAttributeName sets the AttributeName field's value. +func (s *PolicyAttributeTypeDescription) SetAttributeName(v string) *PolicyAttributeTypeDescription { + s.AttributeName = &v + return s +} + +// SetAttributeType sets the AttributeType field's value. +func (s *PolicyAttributeTypeDescription) SetAttributeType(v string) *PolicyAttributeTypeDescription { + s.AttributeType = &v + return s +} + +// SetCardinality sets the Cardinality field's value. +func (s *PolicyAttributeTypeDescription) SetCardinality(v string) *PolicyAttributeTypeDescription { + s.Cardinality = &v + return s +} + +// SetDefaultValue sets the DefaultValue field's value. +func (s *PolicyAttributeTypeDescription) SetDefaultValue(v string) *PolicyAttributeTypeDescription { + s.DefaultValue = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *PolicyAttributeTypeDescription) SetDescription(v string) *PolicyAttributeTypeDescription { + s.Description = &v + return s +} + // Information about a policy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/PolicyDescription type PolicyDescription struct { _ struct{} `type:"structure"` @@ -4405,7 +5304,26 @@ func (s PolicyDescription) GoString() string { return s.String() } +// SetPolicyAttributeDescriptions sets the PolicyAttributeDescriptions field's value. +func (s *PolicyDescription) SetPolicyAttributeDescriptions(v []*PolicyAttributeDescription) *PolicyDescription { + s.PolicyAttributeDescriptions = v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *PolicyDescription) SetPolicyName(v string) *PolicyDescription { + s.PolicyName = &v + return s +} + +// SetPolicyTypeName sets the PolicyTypeName field's value. +func (s *PolicyDescription) SetPolicyTypeName(v string) *PolicyDescription { + s.PolicyTypeName = &v + return s +} + // Information about a policy type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/PolicyTypeDescription type PolicyTypeDescription struct { _ struct{} `type:"structure"` @@ -4430,7 +5348,26 @@ func (s PolicyTypeDescription) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *PolicyTypeDescription) SetDescription(v string) *PolicyTypeDescription { + s.Description = &v + return s +} + +// SetPolicyAttributeTypeDescriptions sets the PolicyAttributeTypeDescriptions field's value. +func (s *PolicyTypeDescription) SetPolicyAttributeTypeDescriptions(v []*PolicyAttributeTypeDescription) *PolicyTypeDescription { + s.PolicyAttributeTypeDescriptions = v + return s +} + +// SetPolicyTypeName sets the PolicyTypeName field's value. +func (s *PolicyTypeDescription) SetPolicyTypeName(v string) *PolicyTypeDescription { + s.PolicyTypeName = &v + return s +} + // Contains the parameters for RegisterInstancesWithLoadBalancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RegisterEndPointsInput type RegisterInstancesWithLoadBalancerInput struct { _ struct{} `type:"structure"` @@ -4471,7 +5408,20 @@ func (s *RegisterInstancesWithLoadBalancerInput) Validate() error { return nil } +// SetInstances sets the Instances field's value. +func (s *RegisterInstancesWithLoadBalancerInput) SetInstances(v []*Instance) *RegisterInstancesWithLoadBalancerInput { + s.Instances = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *RegisterInstancesWithLoadBalancerInput) SetLoadBalancerName(v string) *RegisterInstancesWithLoadBalancerInput { + s.LoadBalancerName = &v + return s +} + // Contains the output of RegisterInstancesWithLoadBalancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RegisterEndPointsOutput type RegisterInstancesWithLoadBalancerOutput struct { _ struct{} `type:"structure"` @@ -4489,7 +5439,14 @@ func (s RegisterInstancesWithLoadBalancerOutput) GoString() string { return s.String() } +// SetInstances sets the Instances field's value. +func (s *RegisterInstancesWithLoadBalancerOutput) SetInstances(v []*Instance) *RegisterInstancesWithLoadBalancerOutput { + s.Instances = v + return s +} + // Contains the parameters for RemoveTags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RemoveTagsInput type RemoveTagsInput struct { _ struct{} `type:"structure"` @@ -4544,7 +5501,20 @@ func (s *RemoveTagsInput) Validate() error { return nil } +// SetLoadBalancerNames sets the LoadBalancerNames field's value. +func (s *RemoveTagsInput) SetLoadBalancerNames(v []*string) *RemoveTagsInput { + s.LoadBalancerNames = v + return s +} + +// SetTags sets the Tags field's value. +func (s *RemoveTagsInput) SetTags(v []*TagKeyOnly) *RemoveTagsInput { + s.Tags = v + return s +} + // Contains the output of RemoveTags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RemoveTagsOutput type RemoveTagsOutput struct { _ struct{} `type:"structure"` } @@ -4560,6 +5530,7 @@ func (s RemoveTagsOutput) GoString() string { } // Contains the parameters for SetLoadBalancerListenerSSLCertificate. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerListenerSSLCertificateInput type SetLoadBalancerListenerSSLCertificateInput struct { _ struct{} `type:"structure"` @@ -4608,7 +5579,26 @@ func (s *SetLoadBalancerListenerSSLCertificateInput) Validate() error { return nil } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *SetLoadBalancerListenerSSLCertificateInput) SetLoadBalancerName(v string) *SetLoadBalancerListenerSSLCertificateInput { + s.LoadBalancerName = &v + return s +} + +// SetLoadBalancerPort sets the LoadBalancerPort field's value. +func (s *SetLoadBalancerListenerSSLCertificateInput) SetLoadBalancerPort(v int64) *SetLoadBalancerListenerSSLCertificateInput { + s.LoadBalancerPort = &v + return s +} + +// SetSSLCertificateId sets the SSLCertificateId field's value. +func (s *SetLoadBalancerListenerSSLCertificateInput) SetSSLCertificateId(v string) *SetLoadBalancerListenerSSLCertificateInput { + s.SSLCertificateId = &v + return s +} + // Contains the output of SetLoadBalancerListenerSSLCertificate. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerListenerSSLCertificateOutput type SetLoadBalancerListenerSSLCertificateOutput struct { _ struct{} `type:"structure"` } @@ -4624,6 +5614,7 @@ func (s SetLoadBalancerListenerSSLCertificateOutput) GoString() string { } // Contains the parameters for SetLoadBalancerPoliciesForBackendServer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesForBackendServerInput type SetLoadBalancerPoliciesForBackendServerInput struct { _ struct{} `type:"structure"` @@ -4673,7 +5664,26 @@ func (s *SetLoadBalancerPoliciesForBackendServerInput) Validate() error { return nil } +// SetInstancePort sets the InstancePort field's value. +func (s *SetLoadBalancerPoliciesForBackendServerInput) SetInstancePort(v int64) *SetLoadBalancerPoliciesForBackendServerInput { + s.InstancePort = &v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *SetLoadBalancerPoliciesForBackendServerInput) SetLoadBalancerName(v string) *SetLoadBalancerPoliciesForBackendServerInput { + s.LoadBalancerName = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *SetLoadBalancerPoliciesForBackendServerInput) SetPolicyNames(v []*string) *SetLoadBalancerPoliciesForBackendServerInput { + s.PolicyNames = v + return s +} + // Contains the output of SetLoadBalancerPoliciesForBackendServer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesForBackendServerOutput type SetLoadBalancerPoliciesForBackendServerOutput struct { _ struct{} `type:"structure"` } @@ -4689,6 +5699,7 @@ func (s SetLoadBalancerPoliciesForBackendServerOutput) GoString() string { } // Contains the parameters for SetLoadBalancePoliciesOfListener. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesOfListenerInput type SetLoadBalancerPoliciesOfListenerInput struct { _ struct{} `type:"structure"` @@ -4739,7 +5750,26 @@ func (s *SetLoadBalancerPoliciesOfListenerInput) Validate() error { return nil } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *SetLoadBalancerPoliciesOfListenerInput) SetLoadBalancerName(v string) *SetLoadBalancerPoliciesOfListenerInput { + s.LoadBalancerName = &v + return s +} + +// SetLoadBalancerPort sets the LoadBalancerPort field's value. +func (s *SetLoadBalancerPoliciesOfListenerInput) SetLoadBalancerPort(v int64) *SetLoadBalancerPoliciesOfListenerInput { + s.LoadBalancerPort = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *SetLoadBalancerPoliciesOfListenerInput) SetPolicyNames(v []*string) *SetLoadBalancerPoliciesOfListenerInput { + s.PolicyNames = v + return s +} + // Contains the output of SetLoadBalancePoliciesOfListener. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesOfListenerOutput type SetLoadBalancerPoliciesOfListenerOutput struct { _ struct{} `type:"structure"` } @@ -4755,6 +5785,7 @@ func (s SetLoadBalancerPoliciesOfListenerOutput) GoString() string { } // Information about a source security group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SourceSecurityGroup type SourceSecurityGroup struct { _ struct{} `type:"structure"` @@ -4775,7 +5806,20 @@ func (s SourceSecurityGroup) GoString() string { return s.String() } +// SetGroupName sets the GroupName field's value. +func (s *SourceSecurityGroup) SetGroupName(v string) *SourceSecurityGroup { + s.GroupName = &v + return s +} + +// SetOwnerAlias sets the OwnerAlias field's value. +func (s *SourceSecurityGroup) SetOwnerAlias(v string) *SourceSecurityGroup { + s.OwnerAlias = &v + return s +} + // Information about a tag. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/Tag type Tag struct { _ struct{} `type:"structure"` @@ -4814,7 +5858,20 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // The tags associated with a load balancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/TagDescription type TagDescription struct { _ struct{} `type:"structure"` @@ -4835,7 +5892,20 @@ func (s TagDescription) GoString() string { return s.String() } +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *TagDescription) SetLoadBalancerName(v string) *TagDescription { + s.LoadBalancerName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagDescription) SetTags(v []*Tag) *TagDescription { + s.Tags = v + return s +} + // The key of a tag. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/TagKeyOnly type TagKeyOnly struct { _ struct{} `type:"structure"` @@ -4865,3 +5935,9 @@ func (s *TagKeyOnly) Validate() error { } return nil } + +// SetKey sets the Key field's value. +func (s *TagKeyOnly) SetKey(v string) *TagKeyOnly { + s.Key = &v + return s +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/elb/elbiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/elb/elbiface/interface.go index 90d123502..f6946827e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elb/elbiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elb/elbiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockELBClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/elb/errors.go b/vendor/github.com/aws/aws-sdk-go/service/elb/errors.go new file mode 100644 index 000000000..aab539987 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/elb/errors.go @@ -0,0 +1,134 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package elb + +const ( + + // ErrCodeAccessPointNotFoundException for service response error code + // "LoadBalancerNotFound". + // + // The specified load balancer does not exist. + ErrCodeAccessPointNotFoundException = "LoadBalancerNotFound" + + // ErrCodeCertificateNotFoundException for service response error code + // "CertificateNotFound". + // + // The specified ARN does not refer to a valid SSL certificate in AWS Identity + // and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if + // you recently uploaded the certificate to IAM, this error might indicate that + // the certificate is not fully available yet. + ErrCodeCertificateNotFoundException = "CertificateNotFound" + + // ErrCodeDependencyThrottleException for service response error code + // "DependencyThrottle". + ErrCodeDependencyThrottleException = "DependencyThrottle" + + // ErrCodeDuplicateAccessPointNameException for service response error code + // "DuplicateLoadBalancerName". + // + // The specified load balancer name already exists for this account. + ErrCodeDuplicateAccessPointNameException = "DuplicateLoadBalancerName" + + // ErrCodeDuplicateListenerException for service response error code + // "DuplicateListener". + // + // A listener already exists for the specified load balancer name and port, + // but with a different instance port, protocol, or SSL certificate. + ErrCodeDuplicateListenerException = "DuplicateListener" + + // ErrCodeDuplicatePolicyNameException for service response error code + // "DuplicatePolicyName". + // + // A policy with the specified name already exists for this load balancer. + ErrCodeDuplicatePolicyNameException = "DuplicatePolicyName" + + // ErrCodeDuplicateTagKeysException for service response error code + // "DuplicateTagKeys". + // + // A tag key was specified more than once. + ErrCodeDuplicateTagKeysException = "DuplicateTagKeys" + + // ErrCodeInvalidConfigurationRequestException for service response error code + // "InvalidConfigurationRequest". + // + // The requested configuration change is not valid. + ErrCodeInvalidConfigurationRequestException = "InvalidConfigurationRequest" + + // ErrCodeInvalidEndPointException for service response error code + // "InvalidInstance". + // + // The specified endpoint is not valid. + ErrCodeInvalidEndPointException = "InvalidInstance" + + // ErrCodeInvalidSchemeException for service response error code + // "InvalidScheme". + // + // The specified value for the schema is not valid. You can only specify a scheme + // for load balancers in a VPC. + ErrCodeInvalidSchemeException = "InvalidScheme" + + // ErrCodeInvalidSecurityGroupException for service response error code + // "InvalidSecurityGroup". + // + // One or more of the specified security groups do not exist. + ErrCodeInvalidSecurityGroupException = "InvalidSecurityGroup" + + // ErrCodeInvalidSubnetException for service response error code + // "InvalidSubnet". + // + // The specified VPC has no associated Internet gateway. + ErrCodeInvalidSubnetException = "InvalidSubnet" + + // ErrCodeListenerNotFoundException for service response error code + // "ListenerNotFound". + // + // The load balancer does not have a listener configured at the specified port. + ErrCodeListenerNotFoundException = "ListenerNotFound" + + // ErrCodeLoadBalancerAttributeNotFoundException for service response error code + // "LoadBalancerAttributeNotFound". + // + // The specified load balancer attribute does not exist. + ErrCodeLoadBalancerAttributeNotFoundException = "LoadBalancerAttributeNotFound" + + // ErrCodePolicyNotFoundException for service response error code + // "PolicyNotFound". + // + // One or more of the specified policies do not exist. + ErrCodePolicyNotFoundException = "PolicyNotFound" + + // ErrCodePolicyTypeNotFoundException for service response error code + // "PolicyTypeNotFound". + // + // One or more of the specified policy types do not exist. + ErrCodePolicyTypeNotFoundException = "PolicyTypeNotFound" + + // ErrCodeSubnetNotFoundException for service response error code + // "SubnetNotFound". + // + // One or more of the specified subnets do not exist. + ErrCodeSubnetNotFoundException = "SubnetNotFound" + + // ErrCodeTooManyAccessPointsException for service response error code + // "TooManyLoadBalancers". + // + // The quota for the number of load balancers has been reached. + ErrCodeTooManyAccessPointsException = "TooManyLoadBalancers" + + // ErrCodeTooManyPoliciesException for service response error code + // "TooManyPolicies". + // + // The quota for the number of policies for this load balancer has been reached. + ErrCodeTooManyPoliciesException = "TooManyPolicies" + + // ErrCodeTooManyTagsException for service response error code + // "TooManyTags". + // + // The quota for the number of tags that can be assigned to a load balancer + // has been reached. + ErrCodeTooManyTagsException = "TooManyTags" + + // ErrCodeUnsupportedProtocolException for service response error code + // "UnsupportedProtocol". + ErrCodeUnsupportedProtocolException = "UnsupportedProtocol" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elb/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/elb/examples_test.go index a1c1421fd..8d3409ed2 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elb/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elb/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleELB_AddTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -51,11 +47,7 @@ func ExampleELB_AddTags() { } func ExampleELB_ApplySecurityGroupsToLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -80,11 +72,7 @@ func ExampleELB_ApplySecurityGroupsToLoadBalancer() { } func ExampleELB_AttachLoadBalancerToSubnets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -109,11 +97,7 @@ func ExampleELB_AttachLoadBalancerToSubnets() { } func ExampleELB_ConfigureHealthCheck() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -141,11 +125,7 @@ func ExampleELB_ConfigureHealthCheck() { } func ExampleELB_CreateAppCookieStickinessPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -168,11 +148,7 @@ func ExampleELB_CreateAppCookieStickinessPolicy() { } func ExampleELB_CreateLBCookieStickinessPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -195,11 +171,7 @@ func ExampleELB_CreateLBCookieStickinessPolicy() { } func ExampleELB_CreateLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -250,11 +222,7 @@ func ExampleELB_CreateLoadBalancer() { } func ExampleELB_CreateLoadBalancerListeners() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -285,11 +253,7 @@ func ExampleELB_CreateLoadBalancerListeners() { } func ExampleELB_CreateLoadBalancerPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -319,11 +283,7 @@ func ExampleELB_CreateLoadBalancerPolicy() { } func ExampleELB_DeleteLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -344,11 +304,7 @@ func ExampleELB_DeleteLoadBalancer() { } func ExampleELB_DeleteLoadBalancerListeners() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -373,11 +329,7 @@ func ExampleELB_DeleteLoadBalancerListeners() { } func ExampleELB_DeleteLoadBalancerPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -399,11 +351,7 @@ func ExampleELB_DeleteLoadBalancerPolicy() { } func ExampleELB_DeregisterInstancesFromLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -430,11 +378,7 @@ func ExampleELB_DeregisterInstancesFromLoadBalancer() { } func ExampleELB_DescribeInstanceHealth() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -461,11 +405,7 @@ func ExampleELB_DescribeInstanceHealth() { } func ExampleELB_DescribeLoadBalancerAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -486,11 +426,7 @@ func ExampleELB_DescribeLoadBalancerAttributes() { } func ExampleELB_DescribeLoadBalancerPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -515,11 +451,7 @@ func ExampleELB_DescribeLoadBalancerPolicies() { } func ExampleELB_DescribeLoadBalancerPolicyTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -543,11 +475,7 @@ func ExampleELB_DescribeLoadBalancerPolicyTypes() { } func ExampleELB_DescribeLoadBalancers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -573,11 +501,7 @@ func ExampleELB_DescribeLoadBalancers() { } func ExampleELB_DescribeTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -601,11 +525,7 @@ func ExampleELB_DescribeTags() { } func ExampleELB_DetachLoadBalancerFromSubnets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -630,11 +550,7 @@ func ExampleELB_DetachLoadBalancerFromSubnets() { } func ExampleELB_DisableAvailabilityZonesForLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -659,11 +575,7 @@ func ExampleELB_DisableAvailabilityZonesForLoadBalancer() { } func ExampleELB_EnableAvailabilityZonesForLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -688,11 +600,7 @@ func ExampleELB_EnableAvailabilityZonesForLoadBalancer() { } func ExampleELB_ModifyLoadBalancerAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -738,11 +646,7 @@ func ExampleELB_ModifyLoadBalancerAttributes() { } func ExampleELB_RegisterInstancesWithLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -769,11 +673,7 @@ func ExampleELB_RegisterInstancesWithLoadBalancer() { } func ExampleELB_RemoveTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -803,11 +703,7 @@ func ExampleELB_RemoveTags() { } func ExampleELB_SetLoadBalancerListenerSSLCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -830,11 +726,7 @@ func ExampleELB_SetLoadBalancerListenerSSLCertificate() { } func ExampleELB_SetLoadBalancerPoliciesForBackendServer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) @@ -860,11 +752,7 @@ func ExampleELB_SetLoadBalancerPoliciesForBackendServer() { } func ExampleELB_SetLoadBalancerPoliciesOfListener() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elb.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elb/service.go b/vendor/github.com/aws/aws-sdk-go/service/elb/service.go index 57f3e1943..68d7e2ac0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elb/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elb/service.go @@ -32,15 +32,15 @@ import ( // This reference covers the 2012-06-01 API, which supports Classic load balancers. // The 2015-12-01 API supports Application load balancers. // -// To get started, create a load balancer with one or more listeners using -// CreateLoadBalancer. Register your instances with the load balancer using -// RegisterInstancesWithLoadBalancer. +// To get started, create a load balancer with one or more listeners using CreateLoadBalancer. +// Register your instances with the load balancer using RegisterInstancesWithLoadBalancer. // // All Elastic Load Balancing operations are idempotent, which means that they // complete at most one time. If you repeat an operation, it succeeds with a // 200 OK response code. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01 type ELB struct { *client.Client } @@ -51,8 +51,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "elasticloadbalancing" +// Service information constants +const ( + ServiceName = "elasticloadbalancing" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the ELB client with a session. // If additional configuration is needed for the client instance use the optional @@ -65,17 +68,18 @@ const ServiceName = "elasticloadbalancing" // // Create a ELB client with additional configuration // svc := elb.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ELB { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ELB { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *ELB { svc := &ELB{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2012-06-01", diff --git a/vendor/github.com/aws/aws-sdk-go/service/elbv2/api.go b/vendor/github.com/aws/aws-sdk-go/service/elbv2/api.go index b1b7acb94..2098550c6 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elbv2/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elbv2/api.go @@ -37,6 +37,7 @@ const opAddTags = "AddTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddTags func (c *ELBV2) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) { op := &request.Operation{ Name: opAddTags, @@ -48,19 +49,18 @@ func (c *ELBV2) AddTagsRequest(input *AddTagsInput) (req *request.Request, outpu input = &AddTagsInput{} } - req = c.newRequest(op, input, output) output = &AddTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // AddTags API operation for Elastic Load Balancing. // // Adds the specified tags to the specified resource. You can tag your Application -// load balancers and your target groups. +// Load Balancers and your target groups. // -// Each tag consists of a key and an optional value. If a resource already -// has a tag with the same key, AddTags updates its value. +// Each tag consists of a key and an optional value. If a resource already has +// a tag with the same key, AddTags updates its value. // // To list the current tags for your resources, use DescribeTags. To remove // tags from your resources, use RemoveTags. @@ -73,18 +73,19 @@ func (c *ELBV2) AddTagsRequest(input *AddTagsInput) (req *request.Request, outpu // API operation AddTags for usage and error information. // // Returned Error Codes: -// * DuplicateTagKeys +// * ErrCodeDuplicateTagKeysException "DuplicateTagKeys" // A tag key was specified more than once. // -// * TooManyTags +// * ErrCodeTooManyTagsException "TooManyTags" // You've reached the limit on the number of tags per load balancer. // -// * LoadBalancerNotFound +// * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * TargetGroupNotFound +// * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound" // The specified target group does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddTags func (c *ELBV2) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) err := req.Send() @@ -117,6 +118,7 @@ const opCreateListener = "CreateListener" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateListener func (c *ELBV2) CreateListenerRequest(input *CreateListenerInput) (req *request.Request, output *CreateListenerOutput) { op := &request.Operation{ Name: opCreateListener, @@ -128,22 +130,22 @@ func (c *ELBV2) CreateListenerRequest(input *CreateListenerInput) (req *request. input = &CreateListenerInput{} } - req = c.newRequest(op, input, output) output = &CreateListenerOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // CreateListener API operation for Elastic Load Balancing. // -// Creates a listener for the specified Application load balancer. +// Creates a listener for the specified Application Load Balancer. +// +// You can create up to 10 listeners per load balancer. // // To update a listener, use ModifyListener. When you are finished with a listener, // you can delete it using DeleteListener. If you are finished with both the // listener and the load balancer, you can delete them both using DeleteLoadBalancer. // -// For more information, see Listeners for Your Application Load Balancers -// (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html) +// For more information, see Listeners for Your Application Load Balancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html) // in the Application Load Balancers Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -154,43 +156,44 @@ func (c *ELBV2) CreateListenerRequest(input *CreateListenerInput) (req *request. // API operation CreateListener for usage and error information. // // Returned Error Codes: -// * DuplicateListener +// * ErrCodeDuplicateListenerException "DuplicateListener" // A listener with the specified port already exists. // -// * TooManyListeners +// * ErrCodeTooManyListenersException "TooManyListeners" // You've reached the limit on the number of listeners per load balancer. // -// * TooManyCertificates +// * ErrCodeTooManyCertificatesException "TooManyCertificates" // You've reached the limit on the number of certificates per listener. // -// * LoadBalancerNotFound +// * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * TargetGroupNotFound +// * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound" // The specified target group does not exist. // -// * TargetGroupAssociationLimit +// * ErrCodeTargetGroupAssociationLimitException "TargetGroupAssociationLimit" // You've reached the limit on the number of load balancers per target group. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration is not valid. // -// * IncompatibleProtocols +// * ErrCodeIncompatibleProtocolsException "IncompatibleProtocols" // The specified configuration is not valid with this protocol. // -// * SSLPolicyNotFound +// * ErrCodeSSLPolicyNotFoundException "SSLPolicyNotFound" // The specified SSL policy does not exist. // -// * CertificateNotFound +// * ErrCodeCertificateNotFoundException "CertificateNotFound" // The specified certificate does not exist. // -// * UnsupportedProtocol +// * ErrCodeUnsupportedProtocolException "UnsupportedProtocol" // The specified protocol is not supported. // -// * TooManyRegistrationsForTargetId +// * ErrCodeTooManyRegistrationsForTargetIdException "TooManyRegistrationsForTargetId" // You've reached the limit on the number of times a target can be registered // with a load balancer. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateListener func (c *ELBV2) CreateListener(input *CreateListenerInput) (*CreateListenerOutput, error) { req, out := c.CreateListenerRequest(input) err := req.Send() @@ -223,6 +226,7 @@ const opCreateLoadBalancer = "CreateLoadBalancer" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateLoadBalancer func (c *ELBV2) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *request.Request, output *CreateLoadBalancerOutput) { op := &request.Operation{ Name: opCreateLoadBalancer, @@ -234,28 +238,31 @@ func (c *ELBV2) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req * input = &CreateLoadBalancerInput{} } - req = c.newRequest(op, input, output) output = &CreateLoadBalancerOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // CreateLoadBalancer API operation for Elastic Load Balancing. // -// Creates an Application load balancer. +// Creates an Application Load Balancer. // -// To create listeners for your load balancer, use CreateListener. You can -// add security groups, subnets, and tags when you create your load balancer, -// or you can add them later using SetSecurityGroups, SetSubnets, and AddTags. +// When you create a load balancer, you can specify security groups, subnets, +// IP address type, and tags. Otherwise, you could do so later using SetSecurityGroups, +// SetSubnets, SetIpAddressType, and AddTags. // -// To describe your current load balancers, see DescribeLoadBalancers. When -// you are finished with a load balancer, you can delete it using DeleteLoadBalancer. +// To create listeners for your load balancer, use CreateListener. To describe +// your current load balancers, see DescribeLoadBalancers. When you are finished +// with a load balancer, you can delete it using DeleteLoadBalancer. // // You can create up to 20 load balancers per region per account. You can request // an increase for the number of load balancers for your account. For more information, // see Limits for Your Application Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-limits.html) // in the Application Load Balancers Guide. // +// For more information, see Application Load Balancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/application-load-balancers.html) +// in the Application Load Balancers Guide. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -264,33 +271,34 @@ func (c *ELBV2) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req * // API operation CreateLoadBalancer for usage and error information. // // Returned Error Codes: -// * DuplicateLoadBalancerName +// * ErrCodeDuplicateLoadBalancerNameException "DuplicateLoadBalancerName" // A load balancer with the specified name already exists for this account. // -// * TooManyLoadBalancers +// * ErrCodeTooManyLoadBalancersException "TooManyLoadBalancers" // You've reached the limit on the number of load balancers for your AWS account. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration is not valid. // -// * SubnetNotFound +// * ErrCodeSubnetNotFoundException "SubnetNotFound" // The specified subnet does not exist. // -// * InvalidSubnet +// * ErrCodeInvalidSubnetException "InvalidSubnet" // The specified subnet is out of available addresses. // -// * InvalidSecurityGroup +// * ErrCodeInvalidSecurityGroupException "InvalidSecurityGroup" // The specified security group does not exist. // -// * InvalidScheme +// * ErrCodeInvalidSchemeException "InvalidScheme" // The requested scheme is not valid. // -// * TooManyTags +// * ErrCodeTooManyTagsException "TooManyTags" // You've reached the limit on the number of tags per load balancer. // -// * DuplicateTagKeys +// * ErrCodeDuplicateTagKeysException "DuplicateTagKeys" // A tag key was specified more than once. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateLoadBalancer func (c *ELBV2) CreateLoadBalancer(input *CreateLoadBalancerInput) (*CreateLoadBalancerOutput, error) { req, out := c.CreateLoadBalancerRequest(input) err := req.Send() @@ -323,6 +331,7 @@ const opCreateRule = "CreateRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateRule func (c *ELBV2) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, output *CreateRuleOutput) { op := &request.Operation{ Name: opCreateRule, @@ -334,9 +343,8 @@ func (c *ELBV2) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, input = &CreateRuleInput{} } - req = c.newRequest(op, input, output) output = &CreateRuleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -344,10 +352,12 @@ func (c *ELBV2) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, // // Creates a rule for the specified listener. // -// A rule consists conditions and actions. Rules are evaluated in priority -// order, from the lowest value to the highest value. When the conditions for -// a rule are met, the specified actions are taken. If no rule's conditions -// are met, the default actions for the listener are taken. +// Each rule can have one action and one condition. Rules are evaluated in priority +// order, from the lowest value to the highest value. When the condition for +// a rule is met, the specified action is taken. If no conditions are met, the +// default action for the default rule is taken. For more information, see Listener +// Rules (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#listener-rules) +// in the Application Load Balancers Guide. // // To view your current rules, use DescribeRules. To update a rule, use ModifyRule. // To set the priorities of your rules, use SetRulePriorities. To delete a rule, @@ -361,31 +371,32 @@ func (c *ELBV2) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, // API operation CreateRule for usage and error information. // // Returned Error Codes: -// * PriorityInUse +// * ErrCodePriorityInUseException "PriorityInUse" // The specified priority is in use. // -// * TooManyTargetGroups +// * ErrCodeTooManyTargetGroupsException "TooManyTargetGroups" // You've reached the limit on the number of target groups for your AWS account. // -// * TooManyRules +// * ErrCodeTooManyRulesException "TooManyRules" // You've reached the limit on the number of rules per load balancer. // -// * TargetGroupAssociationLimit +// * ErrCodeTargetGroupAssociationLimitException "TargetGroupAssociationLimit" // You've reached the limit on the number of load balancers per target group. // -// * ListenerNotFound +// * ErrCodeListenerNotFoundException "ListenerNotFound" // The specified listener does not exist. // -// * TargetGroupNotFound +// * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound" // The specified target group does not exist. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration is not valid. // -// * TooManyRegistrationsForTargetId +// * ErrCodeTooManyRegistrationsForTargetIdException "TooManyRegistrationsForTargetId" // You've reached the limit on the number of times a target can be registered // with a load balancer. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateRule func (c *ELBV2) CreateRule(input *CreateRuleInput) (*CreateRuleOutput, error) { req, out := c.CreateRuleRequest(input) err := req.Send() @@ -418,6 +429,7 @@ const opCreateTargetGroup = "CreateTargetGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateTargetGroup func (c *ELBV2) CreateTargetGroupRequest(input *CreateTargetGroupInput) (req *request.Request, output *CreateTargetGroupOutput) { op := &request.Operation{ Name: opCreateTargetGroup, @@ -429,9 +441,8 @@ func (c *ELBV2) CreateTargetGroupRequest(input *CreateTargetGroupInput) (req *re input = &CreateTargetGroupInput{} } - req = c.newRequest(op, input, output) output = &CreateTargetGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -460,12 +471,13 @@ func (c *ELBV2) CreateTargetGroupRequest(input *CreateTargetGroupInput) (req *re // API operation CreateTargetGroup for usage and error information. // // Returned Error Codes: -// * DuplicateTargetGroupName +// * ErrCodeDuplicateTargetGroupNameException "DuplicateTargetGroupName" // A target group with the specified name already exists. // -// * TooManyTargetGroups +// * ErrCodeTooManyTargetGroupsException "TooManyTargetGroups" // You've reached the limit on the number of target groups for your AWS account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateTargetGroup func (c *ELBV2) CreateTargetGroup(input *CreateTargetGroupInput) (*CreateTargetGroupOutput, error) { req, out := c.CreateTargetGroupRequest(input) err := req.Send() @@ -498,6 +510,7 @@ const opDeleteListener = "DeleteListener" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteListener func (c *ELBV2) DeleteListenerRequest(input *DeleteListenerInput) (req *request.Request, output *DeleteListenerOutput) { op := &request.Operation{ Name: opDeleteListener, @@ -509,9 +522,8 @@ func (c *ELBV2) DeleteListenerRequest(input *DeleteListenerInput) (req *request. input = &DeleteListenerInput{} } - req = c.newRequest(op, input, output) output = &DeleteListenerOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -530,9 +542,10 @@ func (c *ELBV2) DeleteListenerRequest(input *DeleteListenerInput) (req *request. // API operation DeleteListener for usage and error information. // // Returned Error Codes: -// * ListenerNotFound +// * ErrCodeListenerNotFoundException "ListenerNotFound" // The specified listener does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteListener func (c *ELBV2) DeleteListener(input *DeleteListenerInput) (*DeleteListenerOutput, error) { req, out := c.DeleteListenerRequest(input) err := req.Send() @@ -565,6 +578,7 @@ const opDeleteLoadBalancer = "DeleteLoadBalancer" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteLoadBalancer func (c *ELBV2) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *request.Request, output *DeleteLoadBalancerOutput) { op := &request.Operation{ Name: opDeleteLoadBalancer, @@ -576,15 +590,14 @@ func (c *ELBV2) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req * input = &DeleteLoadBalancerInput{} } - req = c.newRequest(op, input, output) output = &DeleteLoadBalancerOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DeleteLoadBalancer API operation for Elastic Load Balancing. // -// Deletes the specified load balancer and its attached listeners. +// Deletes the specified Application Load Balancer and its attached listeners. // // You can't delete a load balancer if deletion protection is enabled. If the // load balancer does not exist or has already been deleted, the call succeeds. @@ -602,12 +615,13 @@ func (c *ELBV2) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req * // API operation DeleteLoadBalancer for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * OperationNotPermitted +// * ErrCodeOperationNotPermittedException "OperationNotPermitted" // This operation is not allowed. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteLoadBalancer func (c *ELBV2) DeleteLoadBalancer(input *DeleteLoadBalancerInput) (*DeleteLoadBalancerOutput, error) { req, out := c.DeleteLoadBalancerRequest(input) err := req.Send() @@ -640,6 +654,7 @@ const opDeleteRule = "DeleteRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteRule func (c *ELBV2) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, output *DeleteRuleOutput) { op := &request.Operation{ Name: opDeleteRule, @@ -651,9 +666,8 @@ func (c *ELBV2) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, input = &DeleteRuleInput{} } - req = c.newRequest(op, input, output) output = &DeleteRuleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -669,12 +683,13 @@ func (c *ELBV2) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, // API operation DeleteRule for usage and error information. // // Returned Error Codes: -// * RuleNotFound +// * ErrCodeRuleNotFoundException "RuleNotFound" // The specified rule does not exist. // -// * OperationNotPermitted +// * ErrCodeOperationNotPermittedException "OperationNotPermitted" // This operation is not allowed. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteRule func (c *ELBV2) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error) { req, out := c.DeleteRuleRequest(input) err := req.Send() @@ -707,6 +722,7 @@ const opDeleteTargetGroup = "DeleteTargetGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteTargetGroup func (c *ELBV2) DeleteTargetGroupRequest(input *DeleteTargetGroupInput) (req *request.Request, output *DeleteTargetGroupOutput) { op := &request.Operation{ Name: opDeleteTargetGroup, @@ -718,9 +734,8 @@ func (c *ELBV2) DeleteTargetGroupRequest(input *DeleteTargetGroupInput) (req *re input = &DeleteTargetGroupInput{} } - req = c.newRequest(op, input, output) output = &DeleteTargetGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -739,9 +754,10 @@ func (c *ELBV2) DeleteTargetGroupRequest(input *DeleteTargetGroupInput) (req *re // API operation DeleteTargetGroup for usage and error information. // // Returned Error Codes: -// * ResourceInUse +// * ErrCodeResourceInUseException "ResourceInUse" // A specified resource is in use. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteTargetGroup func (c *ELBV2) DeleteTargetGroup(input *DeleteTargetGroupInput) (*DeleteTargetGroupOutput, error) { req, out := c.DeleteTargetGroupRequest(input) err := req.Send() @@ -774,6 +790,7 @@ const opDeregisterTargets = "DeregisterTargets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeregisterTargets func (c *ELBV2) DeregisterTargetsRequest(input *DeregisterTargetsInput) (req *request.Request, output *DeregisterTargetsOutput) { op := &request.Operation{ Name: opDeregisterTargets, @@ -785,9 +802,8 @@ func (c *ELBV2) DeregisterTargetsRequest(input *DeregisterTargetsInput) (req *re input = &DeregisterTargetsInput{} } - req = c.newRequest(op, input, output) output = &DeregisterTargetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -805,13 +821,14 @@ func (c *ELBV2) DeregisterTargetsRequest(input *DeregisterTargetsInput) (req *re // API operation DeregisterTargets for usage and error information. // // Returned Error Codes: -// * TargetGroupNotFound +// * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound" // The specified target group does not exist. // -// * InvalidTarget +// * ErrCodeInvalidTargetException "InvalidTarget" // The specified target does not exist or is not in the same VPC as the target // group. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeregisterTargets func (c *ELBV2) DeregisterTargets(input *DeregisterTargetsInput) (*DeregisterTargetsOutput, error) { req, out := c.DeregisterTargetsRequest(input) err := req.Send() @@ -844,6 +861,7 @@ const opDescribeListeners = "DescribeListeners" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListeners func (c *ELBV2) DescribeListenersRequest(input *DescribeListenersInput) (req *request.Request, output *DescribeListenersOutput) { op := &request.Operation{ Name: opDescribeListeners, @@ -861,16 +879,15 @@ func (c *ELBV2) DescribeListenersRequest(input *DescribeListenersInput) (req *re input = &DescribeListenersInput{} } - req = c.newRequest(op, input, output) output = &DescribeListenersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeListeners API operation for Elastic Load Balancing. // -// Describes the specified listeners or the listeners for the specified load -// balancer. You must specify either a load balancer or one or more listeners. +// Describes the specified listeners or the listeners for the specified Application +// Load Balancer. You must specify either a load balancer or one or more listeners. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -880,12 +897,13 @@ func (c *ELBV2) DescribeListenersRequest(input *DescribeListenersInput) (req *re // API operation DescribeListeners for usage and error information. // // Returned Error Codes: -// * ListenerNotFound +// * ErrCodeListenerNotFoundException "ListenerNotFound" // The specified listener does not exist. // -// * LoadBalancerNotFound +// * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListeners func (c *ELBV2) DescribeListeners(input *DescribeListenersInput) (*DescribeListenersOutput, error) { req, out := c.DescribeListenersRequest(input) err := req.Send() @@ -943,6 +961,7 @@ const opDescribeLoadBalancerAttributes = "DescribeLoadBalancerAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancerAttributes func (c *ELBV2) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalancerAttributesInput) (req *request.Request, output *DescribeLoadBalancerAttributesOutput) { op := &request.Operation{ Name: opDescribeLoadBalancerAttributes, @@ -954,15 +973,14 @@ func (c *ELBV2) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalance input = &DescribeLoadBalancerAttributesInput{} } - req = c.newRequest(op, input, output) output = &DescribeLoadBalancerAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeLoadBalancerAttributes API operation for Elastic Load Balancing. // -// Describes the attributes for the specified load balancer. +// Describes the attributes for the specified Application Load Balancer. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -972,9 +990,10 @@ func (c *ELBV2) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalance // API operation DescribeLoadBalancerAttributes for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancerAttributes func (c *ELBV2) DescribeLoadBalancerAttributes(input *DescribeLoadBalancerAttributesInput) (*DescribeLoadBalancerAttributesOutput, error) { req, out := c.DescribeLoadBalancerAttributesRequest(input) err := req.Send() @@ -1007,6 +1026,7 @@ const opDescribeLoadBalancers = "DescribeLoadBalancers" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancers func (c *ELBV2) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) (req *request.Request, output *DescribeLoadBalancersOutput) { op := &request.Operation{ Name: opDescribeLoadBalancers, @@ -1024,16 +1044,15 @@ func (c *ELBV2) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) input = &DescribeLoadBalancersInput{} } - req = c.newRequest(op, input, output) output = &DescribeLoadBalancersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeLoadBalancers API operation for Elastic Load Balancing. // -// Describes the specified Application load balancers or all of your Application -// load balancers. +// Describes the specified Application Load Balancers or all of your Application +// Load Balancers. // // To describe the listeners for a load balancer, use DescribeListeners. To // describe the attributes for a load balancer, use DescribeLoadBalancerAttributes. @@ -1046,9 +1065,10 @@ func (c *ELBV2) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) // API operation DescribeLoadBalancers for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancers func (c *ELBV2) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error) { req, out := c.DescribeLoadBalancersRequest(input) err := req.Send() @@ -1106,6 +1126,7 @@ const opDescribeRules = "DescribeRules" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeRules func (c *ELBV2) DescribeRulesRequest(input *DescribeRulesInput) (req *request.Request, output *DescribeRulesOutput) { op := &request.Operation{ Name: opDescribeRules, @@ -1117,9 +1138,8 @@ func (c *ELBV2) DescribeRulesRequest(input *DescribeRulesInput) (req *request.Re input = &DescribeRulesInput{} } - req = c.newRequest(op, input, output) output = &DescribeRulesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1136,12 +1156,13 @@ func (c *ELBV2) DescribeRulesRequest(input *DescribeRulesInput) (req *request.Re // API operation DescribeRules for usage and error information. // // Returned Error Codes: -// * ListenerNotFound +// * ErrCodeListenerNotFoundException "ListenerNotFound" // The specified listener does not exist. // -// * RuleNotFound +// * ErrCodeRuleNotFoundException "RuleNotFound" // The specified rule does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeRules func (c *ELBV2) DescribeRules(input *DescribeRulesInput) (*DescribeRulesOutput, error) { req, out := c.DescribeRulesRequest(input) err := req.Send() @@ -1174,6 +1195,7 @@ const opDescribeSSLPolicies = "DescribeSSLPolicies" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeSSLPolicies func (c *ELBV2) DescribeSSLPoliciesRequest(input *DescribeSSLPoliciesInput) (req *request.Request, output *DescribeSSLPoliciesOutput) { op := &request.Operation{ Name: opDescribeSSLPolicies, @@ -1185,9 +1207,8 @@ func (c *ELBV2) DescribeSSLPoliciesRequest(input *DescribeSSLPoliciesInput) (req input = &DescribeSSLPoliciesInput{} } - req = c.newRequest(op, input, output) output = &DescribeSSLPoliciesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1205,9 +1226,10 @@ func (c *ELBV2) DescribeSSLPoliciesRequest(input *DescribeSSLPoliciesInput) (req // API operation DescribeSSLPolicies for usage and error information. // // Returned Error Codes: -// * SSLPolicyNotFound +// * ErrCodeSSLPolicyNotFoundException "SSLPolicyNotFound" // The specified SSL policy does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeSSLPolicies func (c *ELBV2) DescribeSSLPolicies(input *DescribeSSLPoliciesInput) (*DescribeSSLPoliciesOutput, error) { req, out := c.DescribeSSLPoliciesRequest(input) err := req.Send() @@ -1240,6 +1262,7 @@ const opDescribeTags = "DescribeTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTags func (c *ELBV2) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) { op := &request.Operation{ Name: opDescribeTags, @@ -1251,9 +1274,8 @@ func (c *ELBV2) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Requ input = &DescribeTagsInput{} } - req = c.newRequest(op, input, output) output = &DescribeTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1269,18 +1291,19 @@ func (c *ELBV2) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Requ // API operation DescribeTags for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * TargetGroupNotFound +// * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound" // The specified target group does not exist. // -// * ListenerNotFound +// * ErrCodeListenerNotFoundException "ListenerNotFound" // The specified listener does not exist. // -// * RuleNotFound +// * ErrCodeRuleNotFoundException "RuleNotFound" // The specified rule does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTags func (c *ELBV2) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -1313,6 +1336,7 @@ const opDescribeTargetGroupAttributes = "DescribeTargetGroupAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroupAttributes func (c *ELBV2) DescribeTargetGroupAttributesRequest(input *DescribeTargetGroupAttributesInput) (req *request.Request, output *DescribeTargetGroupAttributesOutput) { op := &request.Operation{ Name: opDescribeTargetGroupAttributes, @@ -1324,9 +1348,8 @@ func (c *ELBV2) DescribeTargetGroupAttributesRequest(input *DescribeTargetGroupA input = &DescribeTargetGroupAttributesInput{} } - req = c.newRequest(op, input, output) output = &DescribeTargetGroupAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1342,9 +1365,10 @@ func (c *ELBV2) DescribeTargetGroupAttributesRequest(input *DescribeTargetGroupA // API operation DescribeTargetGroupAttributes for usage and error information. // // Returned Error Codes: -// * TargetGroupNotFound +// * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound" // The specified target group does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroupAttributes func (c *ELBV2) DescribeTargetGroupAttributes(input *DescribeTargetGroupAttributesInput) (*DescribeTargetGroupAttributesOutput, error) { req, out := c.DescribeTargetGroupAttributesRequest(input) err := req.Send() @@ -1377,6 +1401,7 @@ const opDescribeTargetGroups = "DescribeTargetGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroups func (c *ELBV2) DescribeTargetGroupsRequest(input *DescribeTargetGroupsInput) (req *request.Request, output *DescribeTargetGroupsOutput) { op := &request.Operation{ Name: opDescribeTargetGroups, @@ -1394,9 +1419,8 @@ func (c *ELBV2) DescribeTargetGroupsRequest(input *DescribeTargetGroupsInput) (r input = &DescribeTargetGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeTargetGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1418,12 +1442,13 @@ func (c *ELBV2) DescribeTargetGroupsRequest(input *DescribeTargetGroupsInput) (r // API operation DescribeTargetGroups for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * TargetGroupNotFound +// * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound" // The specified target group does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroups func (c *ELBV2) DescribeTargetGroups(input *DescribeTargetGroupsInput) (*DescribeTargetGroupsOutput, error) { req, out := c.DescribeTargetGroupsRequest(input) err := req.Send() @@ -1481,6 +1506,7 @@ const opDescribeTargetHealth = "DescribeTargetHealth" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetHealth func (c *ELBV2) DescribeTargetHealthRequest(input *DescribeTargetHealthInput) (req *request.Request, output *DescribeTargetHealthOutput) { op := &request.Operation{ Name: opDescribeTargetHealth, @@ -1492,9 +1518,8 @@ func (c *ELBV2) DescribeTargetHealthRequest(input *DescribeTargetHealthInput) (r input = &DescribeTargetHealthInput{} } - req = c.newRequest(op, input, output) output = &DescribeTargetHealthOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1510,17 +1535,18 @@ func (c *ELBV2) DescribeTargetHealthRequest(input *DescribeTargetHealthInput) (r // API operation DescribeTargetHealth for usage and error information. // // Returned Error Codes: -// * InvalidTarget +// * ErrCodeInvalidTargetException "InvalidTarget" // The specified target does not exist or is not in the same VPC as the target // group. // -// * TargetGroupNotFound +// * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound" // The specified target group does not exist. // -// * HealthUnavailable +// * ErrCodeHealthUnavailableException "HealthUnavailable" // The health of the specified targets could not be retrieved due to an internal // error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetHealth func (c *ELBV2) DescribeTargetHealth(input *DescribeTargetHealthInput) (*DescribeTargetHealthOutput, error) { req, out := c.DescribeTargetHealthRequest(input) err := req.Send() @@ -1553,6 +1579,7 @@ const opModifyListener = "ModifyListener" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyListener func (c *ELBV2) ModifyListenerRequest(input *ModifyListenerInput) (req *request.Request, output *ModifyListenerOutput) { op := &request.Operation{ Name: opModifyListener, @@ -1564,9 +1591,8 @@ func (c *ELBV2) ModifyListenerRequest(input *ModifyListenerInput) (req *request. input = &ModifyListenerInput{} } - req = c.newRequest(op, input, output) output = &ModifyListenerOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1587,43 +1613,44 @@ func (c *ELBV2) ModifyListenerRequest(input *ModifyListenerInput) (req *request. // API operation ModifyListener for usage and error information. // // Returned Error Codes: -// * DuplicateListener +// * ErrCodeDuplicateListenerException "DuplicateListener" // A listener with the specified port already exists. // -// * TooManyListeners +// * ErrCodeTooManyListenersException "TooManyListeners" // You've reached the limit on the number of listeners per load balancer. // -// * TooManyCertificates +// * ErrCodeTooManyCertificatesException "TooManyCertificates" // You've reached the limit on the number of certificates per listener. // -// * ListenerNotFound +// * ErrCodeListenerNotFoundException "ListenerNotFound" // The specified listener does not exist. // -// * TargetGroupNotFound +// * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound" // The specified target group does not exist. // -// * TargetGroupAssociationLimit +// * ErrCodeTargetGroupAssociationLimitException "TargetGroupAssociationLimit" // You've reached the limit on the number of load balancers per target group. // -// * IncompatibleProtocols +// * ErrCodeIncompatibleProtocolsException "IncompatibleProtocols" // The specified configuration is not valid with this protocol. // -// * SSLPolicyNotFound +// * ErrCodeSSLPolicyNotFoundException "SSLPolicyNotFound" // The specified SSL policy does not exist. // -// * CertificateNotFound +// * ErrCodeCertificateNotFoundException "CertificateNotFound" // The specified certificate does not exist. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration is not valid. // -// * UnsupportedProtocol +// * ErrCodeUnsupportedProtocolException "UnsupportedProtocol" // The specified protocol is not supported. // -// * TooManyRegistrationsForTargetId +// * ErrCodeTooManyRegistrationsForTargetIdException "TooManyRegistrationsForTargetId" // You've reached the limit on the number of times a target can be registered // with a load balancer. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyListener func (c *ELBV2) ModifyListener(input *ModifyListenerInput) (*ModifyListenerOutput, error) { req, out := c.ModifyListenerRequest(input) err := req.Send() @@ -1656,6 +1683,7 @@ const opModifyLoadBalancerAttributes = "ModifyLoadBalancerAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyLoadBalancerAttributes func (c *ELBV2) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttributesInput) (req *request.Request, output *ModifyLoadBalancerAttributesOutput) { op := &request.Operation{ Name: opModifyLoadBalancerAttributes, @@ -1667,15 +1695,14 @@ func (c *ELBV2) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAtt input = &ModifyLoadBalancerAttributesInput{} } - req = c.newRequest(op, input, output) output = &ModifyLoadBalancerAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // ModifyLoadBalancerAttributes API operation for Elastic Load Balancing. // -// Modifies the specified attributes of the specified load balancer. +// Modifies the specified attributes of the specified Application Load Balancer. // // If any of the specified attributes can't be modified as requested, the call // fails. Any existing attributes that you do not modify retain their current @@ -1689,12 +1716,13 @@ func (c *ELBV2) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAtt // API operation ModifyLoadBalancerAttributes for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyLoadBalancerAttributes func (c *ELBV2) ModifyLoadBalancerAttributes(input *ModifyLoadBalancerAttributesInput) (*ModifyLoadBalancerAttributesOutput, error) { req, out := c.ModifyLoadBalancerAttributesRequest(input) err := req.Send() @@ -1727,6 +1755,7 @@ const opModifyRule = "ModifyRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyRule func (c *ELBV2) ModifyRuleRequest(input *ModifyRuleInput) (req *request.Request, output *ModifyRuleOutput) { op := &request.Operation{ Name: opModifyRule, @@ -1738,9 +1767,8 @@ func (c *ELBV2) ModifyRuleRequest(input *ModifyRuleInput) (req *request.Request, input = &ModifyRuleInput{} } - req = c.newRequest(op, input, output) output = &ModifyRuleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1760,19 +1788,20 @@ func (c *ELBV2) ModifyRuleRequest(input *ModifyRuleInput) (req *request.Request, // API operation ModifyRule for usage and error information. // // Returned Error Codes: -// * TargetGroupAssociationLimit +// * ErrCodeTargetGroupAssociationLimitException "TargetGroupAssociationLimit" // You've reached the limit on the number of load balancers per target group. // -// * RuleNotFound +// * ErrCodeRuleNotFoundException "RuleNotFound" // The specified rule does not exist. // -// * OperationNotPermitted +// * ErrCodeOperationNotPermittedException "OperationNotPermitted" // This operation is not allowed. // -// * TooManyRegistrationsForTargetId +// * ErrCodeTooManyRegistrationsForTargetIdException "TooManyRegistrationsForTargetId" // You've reached the limit on the number of times a target can be registered // with a load balancer. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyRule func (c *ELBV2) ModifyRule(input *ModifyRuleInput) (*ModifyRuleOutput, error) { req, out := c.ModifyRuleRequest(input) err := req.Send() @@ -1805,6 +1834,7 @@ const opModifyTargetGroup = "ModifyTargetGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroup func (c *ELBV2) ModifyTargetGroupRequest(input *ModifyTargetGroupInput) (req *request.Request, output *ModifyTargetGroupOutput) { op := &request.Operation{ Name: opModifyTargetGroup, @@ -1816,9 +1846,8 @@ func (c *ELBV2) ModifyTargetGroupRequest(input *ModifyTargetGroupInput) (req *re input = &ModifyTargetGroupInput{} } - req = c.newRequest(op, input, output) output = &ModifyTargetGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1837,9 +1866,10 @@ func (c *ELBV2) ModifyTargetGroupRequest(input *ModifyTargetGroupInput) (req *re // API operation ModifyTargetGroup for usage and error information. // // Returned Error Codes: -// * TargetGroupNotFound +// * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound" // The specified target group does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroup func (c *ELBV2) ModifyTargetGroup(input *ModifyTargetGroupInput) (*ModifyTargetGroupOutput, error) { req, out := c.ModifyTargetGroupRequest(input) err := req.Send() @@ -1872,6 +1902,7 @@ const opModifyTargetGroupAttributes = "ModifyTargetGroupAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroupAttributes func (c *ELBV2) ModifyTargetGroupAttributesRequest(input *ModifyTargetGroupAttributesInput) (req *request.Request, output *ModifyTargetGroupAttributesOutput) { op := &request.Operation{ Name: opModifyTargetGroupAttributes, @@ -1883,9 +1914,8 @@ func (c *ELBV2) ModifyTargetGroupAttributesRequest(input *ModifyTargetGroupAttri input = &ModifyTargetGroupAttributesInput{} } - req = c.newRequest(op, input, output) output = &ModifyTargetGroupAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1901,9 +1931,10 @@ func (c *ELBV2) ModifyTargetGroupAttributesRequest(input *ModifyTargetGroupAttri // API operation ModifyTargetGroupAttributes for usage and error information. // // Returned Error Codes: -// * TargetGroupNotFound +// * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound" // The specified target group does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroupAttributes func (c *ELBV2) ModifyTargetGroupAttributes(input *ModifyTargetGroupAttributesInput) (*ModifyTargetGroupAttributesOutput, error) { req, out := c.ModifyTargetGroupAttributesRequest(input) err := req.Send() @@ -1936,6 +1967,7 @@ const opRegisterTargets = "RegisterTargets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RegisterTargets func (c *ELBV2) RegisterTargetsRequest(input *RegisterTargetsInput) (req *request.Request, output *RegisterTargetsOutput) { op := &request.Operation{ Name: opRegisterTargets, @@ -1947,9 +1979,8 @@ func (c *ELBV2) RegisterTargetsRequest(input *RegisterTargetsInput) (req *reques input = &RegisterTargetsInput{} } - req = c.newRequest(op, input, output) output = &RegisterTargetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1957,8 +1988,13 @@ func (c *ELBV2) RegisterTargetsRequest(input *RegisterTargetsInput) (req *reques // // Registers the specified targets with the specified target group. // +// By default, the load balancer routes requests to registered targets using +// the protocol and port number for the target group. Alternatively, you can +// override the port for a target when you register it. +// // The target must be in the virtual private cloud (VPC) that you specified -// for the target group. +// for the target group. If the target is an EC2 instance, it must be in the +// running state when you register it. // // To remove a target from a target group, use DeregisterTargets. // @@ -1970,20 +2006,21 @@ func (c *ELBV2) RegisterTargetsRequest(input *RegisterTargetsInput) (req *reques // API operation RegisterTargets for usage and error information. // // Returned Error Codes: -// * TargetGroupNotFound +// * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound" // The specified target group does not exist. // -// * TooManyTargets +// * ErrCodeTooManyTargetsException "TooManyTargets" // You've reached the limit on the number of targets. // -// * InvalidTarget +// * ErrCodeInvalidTargetException "InvalidTarget" // The specified target does not exist or is not in the same VPC as the target // group. // -// * TooManyRegistrationsForTargetId +// * ErrCodeTooManyRegistrationsForTargetIdException "TooManyRegistrationsForTargetId" // You've reached the limit on the number of times a target can be registered // with a load balancer. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RegisterTargets func (c *ELBV2) RegisterTargets(input *RegisterTargetsInput) (*RegisterTargetsOutput, error) { req, out := c.RegisterTargetsRequest(input) err := req.Send() @@ -2016,6 +2053,7 @@ const opRemoveTags = "RemoveTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RemoveTags func (c *ELBV2) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) { op := &request.Operation{ Name: opRemoveTags, @@ -2027,9 +2065,8 @@ func (c *ELBV2) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, input = &RemoveTagsInput{} } - req = c.newRequest(op, input, output) output = &RemoveTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2047,27 +2084,100 @@ func (c *ELBV2) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, // API operation RemoveTags for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * TargetGroupNotFound +// * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound" // The specified target group does not exist. // -// * ListenerNotFound +// * ErrCodeListenerNotFoundException "ListenerNotFound" // The specified listener does not exist. // -// * RuleNotFound +// * ErrCodeRuleNotFoundException "RuleNotFound" // The specified rule does not exist. // -// * TooManyTags +// * ErrCodeTooManyTagsException "TooManyTags" // You've reached the limit on the number of tags per load balancer. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RemoveTags func (c *ELBV2) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { req, out := c.RemoveTagsRequest(input) err := req.Send() return out, err } +const opSetIpAddressType = "SetIpAddressType" + +// SetIpAddressTypeRequest generates a "aws/request.Request" representing the +// client's request for the SetIpAddressType operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See SetIpAddressType for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the SetIpAddressType method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the SetIpAddressTypeRequest method. +// req, resp := client.SetIpAddressTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetIpAddressType +func (c *ELBV2) SetIpAddressTypeRequest(input *SetIpAddressTypeInput) (req *request.Request, output *SetIpAddressTypeOutput) { + op := &request.Operation{ + Name: opSetIpAddressType, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &SetIpAddressTypeInput{} + } + + output = &SetIpAddressTypeOutput{} + req = c.newRequest(op, input, output) + return +} + +// SetIpAddressType API operation for Elastic Load Balancing. +// +// Sets the type of IP addresses used by the subnets of the specified Application +// Load Balancer. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation SetIpAddressType for usage and error information. +// +// Returned Error Codes: +// * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound" +// The specified load balancer does not exist. +// +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" +// The requested configuration is not valid. +// +// * ErrCodeInvalidSubnetException "InvalidSubnet" +// The specified subnet is out of available addresses. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetIpAddressType +func (c *ELBV2) SetIpAddressType(input *SetIpAddressTypeInput) (*SetIpAddressTypeOutput, error) { + req, out := c.SetIpAddressTypeRequest(input) + err := req.Send() + return out, err +} + const opSetRulePriorities = "SetRulePriorities" // SetRulePrioritiesRequest generates a "aws/request.Request" representing the @@ -2094,6 +2204,7 @@ const opSetRulePriorities = "SetRulePriorities" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetRulePriorities func (c *ELBV2) SetRulePrioritiesRequest(input *SetRulePrioritiesInput) (req *request.Request, output *SetRulePrioritiesOutput) { op := &request.Operation{ Name: opSetRulePriorities, @@ -2105,9 +2216,8 @@ func (c *ELBV2) SetRulePrioritiesRequest(input *SetRulePrioritiesInput) (req *re input = &SetRulePrioritiesInput{} } - req = c.newRequest(op, input, output) output = &SetRulePrioritiesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2115,8 +2225,8 @@ func (c *ELBV2) SetRulePrioritiesRequest(input *SetRulePrioritiesInput) (req *re // // Sets the priorities of the specified rules. // -// You can reorder the rules as long as there are no priority conflicts in -// the new order. Any existing rules that you do not specify retain their current +// You can reorder the rules as long as there are no priority conflicts in the +// new order. Any existing rules that you do not specify retain their current // priority. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2127,15 +2237,16 @@ func (c *ELBV2) SetRulePrioritiesRequest(input *SetRulePrioritiesInput) (req *re // API operation SetRulePriorities for usage and error information. // // Returned Error Codes: -// * RuleNotFound +// * ErrCodeRuleNotFoundException "RuleNotFound" // The specified rule does not exist. // -// * PriorityInUse +// * ErrCodePriorityInUseException "PriorityInUse" // The specified priority is in use. // -// * OperationNotPermitted +// * ErrCodeOperationNotPermittedException "OperationNotPermitted" // This operation is not allowed. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetRulePriorities func (c *ELBV2) SetRulePriorities(input *SetRulePrioritiesInput) (*SetRulePrioritiesOutput, error) { req, out := c.SetRulePrioritiesRequest(input) err := req.Send() @@ -2168,6 +2279,7 @@ const opSetSecurityGroups = "SetSecurityGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSecurityGroups func (c *ELBV2) SetSecurityGroupsRequest(input *SetSecurityGroupsInput) (req *request.Request, output *SetSecurityGroupsOutput) { op := &request.Operation{ Name: opSetSecurityGroups, @@ -2179,9 +2291,8 @@ func (c *ELBV2) SetSecurityGroupsRequest(input *SetSecurityGroupsInput) (req *re input = &SetSecurityGroupsInput{} } - req = c.newRequest(op, input, output) output = &SetSecurityGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2199,15 +2310,16 @@ func (c *ELBV2) SetSecurityGroupsRequest(input *SetSecurityGroupsInput) (req *re // API operation SetSecurityGroups for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration is not valid. // -// * InvalidSecurityGroup +// * ErrCodeInvalidSecurityGroupException "InvalidSecurityGroup" // The specified security group does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSecurityGroups func (c *ELBV2) SetSecurityGroups(input *SetSecurityGroupsInput) (*SetSecurityGroupsOutput, error) { req, out := c.SetSecurityGroupsRequest(input) err := req.Send() @@ -2240,6 +2352,7 @@ const opSetSubnets = "SetSubnets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSubnets func (c *ELBV2) SetSubnetsRequest(input *SetSubnetsInput) (req *request.Request, output *SetSubnetsOutput) { op := &request.Operation{ Name: opSetSubnets, @@ -2251,9 +2364,8 @@ func (c *ELBV2) SetSubnetsRequest(input *SetSubnetsInput) (req *request.Request, input = &SetSubnetsInput{} } - req = c.newRequest(op, input, output) output = &SetSubnetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2270,18 +2382,19 @@ func (c *ELBV2) SetSubnetsRequest(input *SetSubnetsInput) (req *request.Request, // API operation SetSubnets for usage and error information. // // Returned Error Codes: -// * LoadBalancerNotFound +// * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound" // The specified load balancer does not exist. // -// * InvalidConfigurationRequest +// * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest" // The requested configuration is not valid. // -// * SubnetNotFound +// * ErrCodeSubnetNotFoundException "SubnetNotFound" // The specified subnet does not exist. // -// * InvalidSubnet +// * ErrCodeInvalidSubnetException "InvalidSubnet" // The specified subnet is out of available addresses. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSubnets func (c *ELBV2) SetSubnets(input *SetSubnetsInput) (*SetSubnetsOutput, error) { req, out := c.SetSubnetsRequest(input) err := req.Send() @@ -2289,6 +2402,7 @@ func (c *ELBV2) SetSubnets(input *SetSubnetsInput) (*SetSubnetsOutput, error) { } // Information about an action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Action type Action struct { _ struct{} `type:"structure"` @@ -2329,7 +2443,19 @@ func (s *Action) Validate() error { return nil } -// Contains the parameters for AddTags. +// SetTargetGroupArn sets the TargetGroupArn field's value. +func (s *Action) SetTargetGroupArn(v string) *Action { + s.TargetGroupArn = &v + return s +} + +// SetType sets the Type field's value. +func (s *Action) SetType(v string) *Action { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddTagsInput type AddTagsInput struct { _ struct{} `type:"structure"` @@ -2383,7 +2509,19 @@ func (s *AddTagsInput) Validate() error { return nil } -// Contains the output of AddTags. +// SetResourceArns sets the ResourceArns field's value. +func (s *AddTagsInput) SetResourceArns(v []*string) *AddTagsInput { + s.ResourceArns = v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddTagsOutput type AddTagsOutput struct { _ struct{} `type:"structure"` } @@ -2399,6 +2537,7 @@ func (s AddTagsOutput) GoString() string { } // Information about an Availability Zone. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AvailabilityZone type AvailabilityZone struct { _ struct{} `type:"structure"` @@ -2419,7 +2558,20 @@ func (s AvailabilityZone) GoString() string { return s.String() } +// SetSubnetId sets the SubnetId field's value. +func (s *AvailabilityZone) SetSubnetId(v string) *AvailabilityZone { + s.SubnetId = &v + return s +} + +// SetZoneName sets the ZoneName field's value. +func (s *AvailabilityZone) SetZoneName(v string) *AvailabilityZone { + s.ZoneName = &v + return s +} + // Information about an SSL server certificate deployed on a load balancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Certificate type Certificate struct { _ struct{} `type:"structure"` @@ -2437,7 +2589,14 @@ func (s Certificate) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *Certificate) SetCertificateArn(v string) *Certificate { + s.CertificateArn = &v + return s +} + // Information about a cipher used in a policy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Cipher type Cipher struct { _ struct{} `type:"structure"` @@ -2458,7 +2617,19 @@ func (s Cipher) GoString() string { return s.String() } -// Contains the parameters for CreateListener. +// SetName sets the Name field's value. +func (s *Cipher) SetName(v string) *Cipher { + s.Name = &v + return s +} + +// SetPriority sets the Priority field's value. +func (s *Cipher) SetPriority(v int64) *Cipher { + s.Priority = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateListenerInput type CreateListenerInput struct { _ struct{} `type:"structure"` @@ -2466,7 +2637,7 @@ type CreateListenerInput struct { // protocol is HTTPS. Certificates []*Certificate `type:"list"` - // The default actions for the listener. + // The default action for the listener. // // DefaultActions is a required field DefaultActions []*Action `type:"list" required:"true"` @@ -2536,7 +2707,43 @@ func (s *CreateListenerInput) Validate() error { return nil } -// Contains the output of CreateListener. +// SetCertificates sets the Certificates field's value. +func (s *CreateListenerInput) SetCertificates(v []*Certificate) *CreateListenerInput { + s.Certificates = v + return s +} + +// SetDefaultActions sets the DefaultActions field's value. +func (s *CreateListenerInput) SetDefaultActions(v []*Action) *CreateListenerInput { + s.DefaultActions = v + return s +} + +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *CreateListenerInput) SetLoadBalancerArn(v string) *CreateListenerInput { + s.LoadBalancerArn = &v + return s +} + +// SetPort sets the Port field's value. +func (s *CreateListenerInput) SetPort(v int64) *CreateListenerInput { + s.Port = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *CreateListenerInput) SetProtocol(v string) *CreateListenerInput { + s.Protocol = &v + return s +} + +// SetSslPolicy sets the SslPolicy field's value. +func (s *CreateListenerInput) SetSslPolicy(v string) *CreateListenerInput { + s.SslPolicy = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateListenerOutput type CreateListenerOutput struct { _ struct{} `type:"structure"` @@ -2554,15 +2761,26 @@ func (s CreateListenerOutput) GoString() string { return s.String() } -// Contains the parameters for CreateLoadBalancer. +// SetListeners sets the Listeners field's value. +func (s *CreateListenerOutput) SetListeners(v []*Listener) *CreateListenerOutput { + s.Listeners = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateLoadBalancerInput type CreateLoadBalancerInput struct { _ struct{} `type:"structure"` + // The type of IP addresses used by the subnets for your load balancer. The + // possible values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and + // IPv6 addresses). Internal load balancers must use ipv4. + IpAddressType *string `type:"string" enum:"IpAddressType"` + // The name of the load balancer. // - // This name must be unique within your AWS account, can have a maximum of - // 32 characters, must contain only alphanumeric characters or hyphens, and - // must not begin or end with a hyphen. + // This name must be unique within your AWS account, can have a maximum of 32 + // characters, must contain only alphanumeric characters or hyphens, and must + // not begin or end with a hyphen. // // Name is a required field Name *string `type:"string" required:"true"` @@ -2633,7 +2851,43 @@ func (s *CreateLoadBalancerInput) Validate() error { return nil } -// Contains the output of CreateLoadBalancer. +// SetIpAddressType sets the IpAddressType field's value. +func (s *CreateLoadBalancerInput) SetIpAddressType(v string) *CreateLoadBalancerInput { + s.IpAddressType = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateLoadBalancerInput) SetName(v string) *CreateLoadBalancerInput { + s.Name = &v + return s +} + +// SetScheme sets the Scheme field's value. +func (s *CreateLoadBalancerInput) SetScheme(v string) *CreateLoadBalancerInput { + s.Scheme = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *CreateLoadBalancerInput) SetSecurityGroups(v []*string) *CreateLoadBalancerInput { + s.SecurityGroups = v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *CreateLoadBalancerInput) SetSubnets(v []*string) *CreateLoadBalancerInput { + s.Subnets = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateLoadBalancerInput) SetTags(v []*Tag) *CreateLoadBalancerInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateLoadBalancerOutput type CreateLoadBalancerOutput struct { _ struct{} `type:"structure"` @@ -2651,16 +2905,35 @@ func (s CreateLoadBalancerOutput) GoString() string { return s.String() } -// Contains the parameters for CreateRule. +// SetLoadBalancers sets the LoadBalancers field's value. +func (s *CreateLoadBalancerOutput) SetLoadBalancers(v []*LoadBalancer) *CreateLoadBalancerOutput { + s.LoadBalancers = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateRuleInput type CreateRuleInput struct { _ struct{} `type:"structure"` - // The actions for the rule. + // An action. Each action has the type forward and specifies a target group. // // Actions is a required field Actions []*Action `type:"list" required:"true"` - // The conditions. + // A condition. Each condition has the field path-pattern and specifies one + // path pattern. A path pattern is case sensitive, can be up to 128 characters + // in length, and can contain any of the following characters. Note that you + // can include up to three wildcard characters in a path pattern. + // + // * A-Z, a-z, 0-9 + // + // * _ - . $ / ~ " ' @ : + + // + // * & (using &) + // + // * * (matches 0 or more characters) + // + // * ? (matches exactly 1 character) // // Conditions is a required field Conditions []*RuleCondition `type:"list" required:"true"` @@ -2722,7 +2995,31 @@ func (s *CreateRuleInput) Validate() error { return nil } -// Contains the output of CreateRule. +// SetActions sets the Actions field's value. +func (s *CreateRuleInput) SetActions(v []*Action) *CreateRuleInput { + s.Actions = v + return s +} + +// SetConditions sets the Conditions field's value. +func (s *CreateRuleInput) SetConditions(v []*RuleCondition) *CreateRuleInput { + s.Conditions = v + return s +} + +// SetListenerArn sets the ListenerArn field's value. +func (s *CreateRuleInput) SetListenerArn(v string) *CreateRuleInput { + s.ListenerArn = &v + return s +} + +// SetPriority sets the Priority field's value. +func (s *CreateRuleInput) SetPriority(v int64) *CreateRuleInput { + s.Priority = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateRuleOutput type CreateRuleOutput struct { _ struct{} `type:"structure"` @@ -2740,7 +3037,13 @@ func (s CreateRuleOutput) GoString() string { return s.String() } -// Contains the parameters for CreateTargetGroup. +// SetRules sets the Rules field's value. +func (s *CreateRuleOutput) SetRules(v []*Rule) *CreateRuleOutput { + s.Rules = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateTargetGroupInput type CreateTargetGroupInput struct { _ struct{} `type:"structure"` @@ -2854,7 +3157,79 @@ func (s *CreateTargetGroupInput) Validate() error { return nil } -// Contains the output of CreateTargetGroup. +// SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value. +func (s *CreateTargetGroupInput) SetHealthCheckIntervalSeconds(v int64) *CreateTargetGroupInput { + s.HealthCheckIntervalSeconds = &v + return s +} + +// SetHealthCheckPath sets the HealthCheckPath field's value. +func (s *CreateTargetGroupInput) SetHealthCheckPath(v string) *CreateTargetGroupInput { + s.HealthCheckPath = &v + return s +} + +// SetHealthCheckPort sets the HealthCheckPort field's value. +func (s *CreateTargetGroupInput) SetHealthCheckPort(v string) *CreateTargetGroupInput { + s.HealthCheckPort = &v + return s +} + +// SetHealthCheckProtocol sets the HealthCheckProtocol field's value. +func (s *CreateTargetGroupInput) SetHealthCheckProtocol(v string) *CreateTargetGroupInput { + s.HealthCheckProtocol = &v + return s +} + +// SetHealthCheckTimeoutSeconds sets the HealthCheckTimeoutSeconds field's value. +func (s *CreateTargetGroupInput) SetHealthCheckTimeoutSeconds(v int64) *CreateTargetGroupInput { + s.HealthCheckTimeoutSeconds = &v + return s +} + +// SetHealthyThresholdCount sets the HealthyThresholdCount field's value. +func (s *CreateTargetGroupInput) SetHealthyThresholdCount(v int64) *CreateTargetGroupInput { + s.HealthyThresholdCount = &v + return s +} + +// SetMatcher sets the Matcher field's value. +func (s *CreateTargetGroupInput) SetMatcher(v *Matcher) *CreateTargetGroupInput { + s.Matcher = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateTargetGroupInput) SetName(v string) *CreateTargetGroupInput { + s.Name = &v + return s +} + +// SetPort sets the Port field's value. +func (s *CreateTargetGroupInput) SetPort(v int64) *CreateTargetGroupInput { + s.Port = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *CreateTargetGroupInput) SetProtocol(v string) *CreateTargetGroupInput { + s.Protocol = &v + return s +} + +// SetUnhealthyThresholdCount sets the UnhealthyThresholdCount field's value. +func (s *CreateTargetGroupInput) SetUnhealthyThresholdCount(v int64) *CreateTargetGroupInput { + s.UnhealthyThresholdCount = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CreateTargetGroupInput) SetVpcId(v string) *CreateTargetGroupInput { + s.VpcId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateTargetGroupOutput type CreateTargetGroupOutput struct { _ struct{} `type:"structure"` @@ -2872,7 +3247,13 @@ func (s CreateTargetGroupOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteListener. +// SetTargetGroups sets the TargetGroups field's value. +func (s *CreateTargetGroupOutput) SetTargetGroups(v []*TargetGroup) *CreateTargetGroupOutput { + s.TargetGroups = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteListenerInput type DeleteListenerInput struct { _ struct{} `type:"structure"` @@ -2905,7 +3286,13 @@ func (s *DeleteListenerInput) Validate() error { return nil } -// Contains the output of DeleteListener. +// SetListenerArn sets the ListenerArn field's value. +func (s *DeleteListenerInput) SetListenerArn(v string) *DeleteListenerInput { + s.ListenerArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteListenerOutput type DeleteListenerOutput struct { _ struct{} `type:"structure"` } @@ -2920,7 +3307,7 @@ func (s DeleteListenerOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteLoadBalancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteLoadBalancerInput type DeleteLoadBalancerInput struct { _ struct{} `type:"structure"` @@ -2953,7 +3340,13 @@ func (s *DeleteLoadBalancerInput) Validate() error { return nil } -// Contains the output of DeleteLoadBalancer. +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *DeleteLoadBalancerInput) SetLoadBalancerArn(v string) *DeleteLoadBalancerInput { + s.LoadBalancerArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteLoadBalancerOutput type DeleteLoadBalancerOutput struct { _ struct{} `type:"structure"` } @@ -2968,7 +3361,7 @@ func (s DeleteLoadBalancerOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteRule. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteRuleInput type DeleteRuleInput struct { _ struct{} `type:"structure"` @@ -3001,7 +3394,13 @@ func (s *DeleteRuleInput) Validate() error { return nil } -// Contains the output of DeleteRule. +// SetRuleArn sets the RuleArn field's value. +func (s *DeleteRuleInput) SetRuleArn(v string) *DeleteRuleInput { + s.RuleArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteRuleOutput type DeleteRuleOutput struct { _ struct{} `type:"structure"` } @@ -3016,7 +3415,7 @@ func (s DeleteRuleOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteTargetGroup. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteTargetGroupInput type DeleteTargetGroupInput struct { _ struct{} `type:"structure"` @@ -3049,7 +3448,13 @@ func (s *DeleteTargetGroupInput) Validate() error { return nil } -// Contains the output of DeleteTargetGroup. +// SetTargetGroupArn sets the TargetGroupArn field's value. +func (s *DeleteTargetGroupInput) SetTargetGroupArn(v string) *DeleteTargetGroupInput { + s.TargetGroupArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteTargetGroupOutput type DeleteTargetGroupOutput struct { _ struct{} `type:"structure"` } @@ -3064,7 +3469,7 @@ func (s DeleteTargetGroupOutput) GoString() string { return s.String() } -// Contains the parameters for DeregisterTargets. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeregisterTargetsInput type DeregisterTargetsInput struct { _ struct{} `type:"structure"` @@ -3073,7 +3478,8 @@ type DeregisterTargetsInput struct { // TargetGroupArn is a required field TargetGroupArn *string `type:"string" required:"true"` - // The targets. + // The targets. If you specified a port override when you registered a target, + // you must specify both the target ID and the port when you deregister it. // // Targets is a required field Targets []*TargetDescription `type:"list" required:"true"` @@ -3115,7 +3521,19 @@ func (s *DeregisterTargetsInput) Validate() error { return nil } -// Contains the output of DeregisterTargets. +// SetTargetGroupArn sets the TargetGroupArn field's value. +func (s *DeregisterTargetsInput) SetTargetGroupArn(v string) *DeregisterTargetsInput { + s.TargetGroupArn = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *DeregisterTargetsInput) SetTargets(v []*TargetDescription) *DeregisterTargetsInput { + s.Targets = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeregisterTargetsOutput type DeregisterTargetsOutput struct { _ struct{} `type:"structure"` } @@ -3130,7 +3548,7 @@ func (s DeregisterTargetsOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeListeners. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListenersInput type DescribeListenersInput struct { _ struct{} `type:"structure"` @@ -3171,7 +3589,31 @@ func (s *DescribeListenersInput) Validate() error { return nil } -// Contains the output of DescribeListeners. +// SetListenerArns sets the ListenerArns field's value. +func (s *DescribeListenersInput) SetListenerArns(v []*string) *DescribeListenersInput { + s.ListenerArns = v + return s +} + +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *DescribeListenersInput) SetLoadBalancerArn(v string) *DescribeListenersInput { + s.LoadBalancerArn = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeListenersInput) SetMarker(v string) *DescribeListenersInput { + s.Marker = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *DescribeListenersInput) SetPageSize(v int64) *DescribeListenersInput { + s.PageSize = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListenersOutput type DescribeListenersOutput struct { _ struct{} `type:"structure"` @@ -3193,7 +3635,19 @@ func (s DescribeListenersOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeLoadBalancerAttributes. +// SetListeners sets the Listeners field's value. +func (s *DescribeListenersOutput) SetListeners(v []*Listener) *DescribeListenersOutput { + s.Listeners = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *DescribeListenersOutput) SetNextMarker(v string) *DescribeListenersOutput { + s.NextMarker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancerAttributesInput type DescribeLoadBalancerAttributesInput struct { _ struct{} `type:"structure"` @@ -3226,7 +3680,13 @@ func (s *DescribeLoadBalancerAttributesInput) Validate() error { return nil } -// Contains the output of DescribeLoadBalancerAttributes. +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *DescribeLoadBalancerAttributesInput) SetLoadBalancerArn(v string) *DescribeLoadBalancerAttributesInput { + s.LoadBalancerArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancerAttributesOutput type DescribeLoadBalancerAttributesOutput struct { _ struct{} `type:"structure"` @@ -3244,7 +3704,13 @@ func (s DescribeLoadBalancerAttributesOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeLoadBalancers. +// SetAttributes sets the Attributes field's value. +func (s *DescribeLoadBalancerAttributesOutput) SetAttributes(v []*LoadBalancerAttribute) *DescribeLoadBalancerAttributesOutput { + s.Attributes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancersInput type DescribeLoadBalancersInput struct { _ struct{} `type:"structure"` @@ -3285,7 +3751,31 @@ func (s *DescribeLoadBalancersInput) Validate() error { return nil } -// Contains the output of DescribeLoadBalancers. +// SetLoadBalancerArns sets the LoadBalancerArns field's value. +func (s *DescribeLoadBalancersInput) SetLoadBalancerArns(v []*string) *DescribeLoadBalancersInput { + s.LoadBalancerArns = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeLoadBalancersInput) SetMarker(v string) *DescribeLoadBalancersInput { + s.Marker = &v + return s +} + +// SetNames sets the Names field's value. +func (s *DescribeLoadBalancersInput) SetNames(v []*string) *DescribeLoadBalancersInput { + s.Names = v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *DescribeLoadBalancersInput) SetPageSize(v int64) *DescribeLoadBalancersInput { + s.PageSize = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancersOutput type DescribeLoadBalancersOutput struct { _ struct{} `type:"structure"` @@ -3307,7 +3797,19 @@ func (s DescribeLoadBalancersOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeRules. +// SetLoadBalancers sets the LoadBalancers field's value. +func (s *DescribeLoadBalancersOutput) SetLoadBalancers(v []*LoadBalancer) *DescribeLoadBalancersOutput { + s.LoadBalancers = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *DescribeLoadBalancersOutput) SetNextMarker(v string) *DescribeLoadBalancersOutput { + s.NextMarker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeRulesInput type DescribeRulesInput struct { _ struct{} `type:"structure"` @@ -3328,7 +3830,19 @@ func (s DescribeRulesInput) GoString() string { return s.String() } -// Contains the output of DescribeRules. +// SetListenerArn sets the ListenerArn field's value. +func (s *DescribeRulesInput) SetListenerArn(v string) *DescribeRulesInput { + s.ListenerArn = &v + return s +} + +// SetRuleArns sets the RuleArns field's value. +func (s *DescribeRulesInput) SetRuleArns(v []*string) *DescribeRulesInput { + s.RuleArns = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeRulesOutput type DescribeRulesOutput struct { _ struct{} `type:"structure"` @@ -3346,7 +3860,13 @@ func (s DescribeRulesOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeSSLPolicies. +// SetRules sets the Rules field's value. +func (s *DescribeRulesOutput) SetRules(v []*Rule) *DescribeRulesOutput { + s.Rules = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeSSLPoliciesInput type DescribeSSLPoliciesInput struct { _ struct{} `type:"structure"` @@ -3384,7 +3904,25 @@ func (s *DescribeSSLPoliciesInput) Validate() error { return nil } -// Contains the output of DescribeSSLPolicies. +// SetMarker sets the Marker field's value. +func (s *DescribeSSLPoliciesInput) SetMarker(v string) *DescribeSSLPoliciesInput { + s.Marker = &v + return s +} + +// SetNames sets the Names field's value. +func (s *DescribeSSLPoliciesInput) SetNames(v []*string) *DescribeSSLPoliciesInput { + s.Names = v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *DescribeSSLPoliciesInput) SetPageSize(v int64) *DescribeSSLPoliciesInput { + s.PageSize = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeSSLPoliciesOutput type DescribeSSLPoliciesOutput struct { _ struct{} `type:"structure"` @@ -3406,7 +3944,19 @@ func (s DescribeSSLPoliciesOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeTags. +// SetNextMarker sets the NextMarker field's value. +func (s *DescribeSSLPoliciesOutput) SetNextMarker(v string) *DescribeSSLPoliciesOutput { + s.NextMarker = &v + return s +} + +// SetSslPolicies sets the SslPolicies field's value. +func (s *DescribeSSLPoliciesOutput) SetSslPolicies(v []*SslPolicy) *DescribeSSLPoliciesOutput { + s.SslPolicies = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTagsInput type DescribeTagsInput struct { _ struct{} `type:"structure"` @@ -3439,7 +3989,13 @@ func (s *DescribeTagsInput) Validate() error { return nil } -// Contains the output of DescribeTags. +// SetResourceArns sets the ResourceArns field's value. +func (s *DescribeTagsInput) SetResourceArns(v []*string) *DescribeTagsInput { + s.ResourceArns = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTagsOutput type DescribeTagsOutput struct { _ struct{} `type:"structure"` @@ -3457,7 +4013,13 @@ func (s DescribeTagsOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeTargetGroupAttributes. +// SetTagDescriptions sets the TagDescriptions field's value. +func (s *DescribeTagsOutput) SetTagDescriptions(v []*TagDescription) *DescribeTagsOutput { + s.TagDescriptions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroupAttributesInput type DescribeTargetGroupAttributesInput struct { _ struct{} `type:"structure"` @@ -3490,7 +4052,13 @@ func (s *DescribeTargetGroupAttributesInput) Validate() error { return nil } -// Contains the output of DescribeTargetGroupAttributes. +// SetTargetGroupArn sets the TargetGroupArn field's value. +func (s *DescribeTargetGroupAttributesInput) SetTargetGroupArn(v string) *DescribeTargetGroupAttributesInput { + s.TargetGroupArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroupAttributesOutput type DescribeTargetGroupAttributesOutput struct { _ struct{} `type:"structure"` @@ -3508,7 +4076,13 @@ func (s DescribeTargetGroupAttributesOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeTargetGroups. +// SetAttributes sets the Attributes field's value. +func (s *DescribeTargetGroupAttributesOutput) SetAttributes(v []*TargetGroupAttribute) *DescribeTargetGroupAttributesOutput { + s.Attributes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroupsInput type DescribeTargetGroupsInput struct { _ struct{} `type:"structure"` @@ -3552,7 +4126,37 @@ func (s *DescribeTargetGroupsInput) Validate() error { return nil } -// Contains the output of DescribeTargetGroups. +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *DescribeTargetGroupsInput) SetLoadBalancerArn(v string) *DescribeTargetGroupsInput { + s.LoadBalancerArn = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeTargetGroupsInput) SetMarker(v string) *DescribeTargetGroupsInput { + s.Marker = &v + return s +} + +// SetNames sets the Names field's value. +func (s *DescribeTargetGroupsInput) SetNames(v []*string) *DescribeTargetGroupsInput { + s.Names = v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *DescribeTargetGroupsInput) SetPageSize(v int64) *DescribeTargetGroupsInput { + s.PageSize = &v + return s +} + +// SetTargetGroupArns sets the TargetGroupArns field's value. +func (s *DescribeTargetGroupsInput) SetTargetGroupArns(v []*string) *DescribeTargetGroupsInput { + s.TargetGroupArns = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroupsOutput type DescribeTargetGroupsOutput struct { _ struct{} `type:"structure"` @@ -3574,7 +4178,19 @@ func (s DescribeTargetGroupsOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeTargetHealth. +// SetNextMarker sets the NextMarker field's value. +func (s *DescribeTargetGroupsOutput) SetNextMarker(v string) *DescribeTargetGroupsOutput { + s.NextMarker = &v + return s +} + +// SetTargetGroups sets the TargetGroups field's value. +func (s *DescribeTargetGroupsOutput) SetTargetGroups(v []*TargetGroup) *DescribeTargetGroupsOutput { + s.TargetGroups = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetHealthInput type DescribeTargetHealthInput struct { _ struct{} `type:"structure"` @@ -3620,7 +4236,19 @@ func (s *DescribeTargetHealthInput) Validate() error { return nil } -// Contains the output of DescribeTargetHealth. +// SetTargetGroupArn sets the TargetGroupArn field's value. +func (s *DescribeTargetHealthInput) SetTargetGroupArn(v string) *DescribeTargetHealthInput { + s.TargetGroupArn = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *DescribeTargetHealthInput) SetTargets(v []*TargetDescription) *DescribeTargetHealthInput { + s.Targets = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetHealthOutput type DescribeTargetHealthOutput struct { _ struct{} `type:"structure"` @@ -3638,7 +4266,14 @@ func (s DescribeTargetHealthOutput) GoString() string { return s.String() } +// SetTargetHealthDescriptions sets the TargetHealthDescriptions field's value. +func (s *DescribeTargetHealthOutput) SetTargetHealthDescriptions(v []*TargetHealthDescription) *DescribeTargetHealthOutput { + s.TargetHealthDescriptions = v + return s +} + // Information about a listener. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Listener type Listener struct { _ struct{} `type:"structure"` @@ -3676,7 +4311,50 @@ func (s Listener) GoString() string { return s.String() } +// SetCertificates sets the Certificates field's value. +func (s *Listener) SetCertificates(v []*Certificate) *Listener { + s.Certificates = v + return s +} + +// SetDefaultActions sets the DefaultActions field's value. +func (s *Listener) SetDefaultActions(v []*Action) *Listener { + s.DefaultActions = v + return s +} + +// SetListenerArn sets the ListenerArn field's value. +func (s *Listener) SetListenerArn(v string) *Listener { + s.ListenerArn = &v + return s +} + +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *Listener) SetLoadBalancerArn(v string) *Listener { + s.LoadBalancerArn = &v + return s +} + +// SetPort sets the Port field's value. +func (s *Listener) SetPort(v int64) *Listener { + s.Port = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *Listener) SetProtocol(v string) *Listener { + s.Protocol = &v + return s +} + +// SetSslPolicy sets the SslPolicy field's value. +func (s *Listener) SetSslPolicy(v string) *Listener { + s.SslPolicy = &v + return s +} + // Information about a load balancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/LoadBalancer type LoadBalancer struct { _ struct{} `type:"structure"` @@ -3692,6 +4370,11 @@ type LoadBalancer struct { // The public DNS name of the load balancer. DNSName *string `type:"string"` + // The type of IP addresses used by the subnets for your load balancer. The + // possible values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and + // IPv6 addresses). + IpAddressType *string `type:"string" enum:"IpAddressType"` + // The Amazon Resource Name (ARN) of the load balancer. LoadBalancerArn *string `type:"string"` @@ -3732,29 +4415,102 @@ func (s LoadBalancer) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *LoadBalancer) SetAvailabilityZones(v []*AvailabilityZone) *LoadBalancer { + s.AvailabilityZones = v + return s +} + +// SetCanonicalHostedZoneId sets the CanonicalHostedZoneId field's value. +func (s *LoadBalancer) SetCanonicalHostedZoneId(v string) *LoadBalancer { + s.CanonicalHostedZoneId = &v + return s +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *LoadBalancer) SetCreatedTime(v time.Time) *LoadBalancer { + s.CreatedTime = &v + return s +} + +// SetDNSName sets the DNSName field's value. +func (s *LoadBalancer) SetDNSName(v string) *LoadBalancer { + s.DNSName = &v + return s +} + +// SetIpAddressType sets the IpAddressType field's value. +func (s *LoadBalancer) SetIpAddressType(v string) *LoadBalancer { + s.IpAddressType = &v + return s +} + +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *LoadBalancer) SetLoadBalancerArn(v string) *LoadBalancer { + s.LoadBalancerArn = &v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *LoadBalancer) SetLoadBalancerName(v string) *LoadBalancer { + s.LoadBalancerName = &v + return s +} + +// SetScheme sets the Scheme field's value. +func (s *LoadBalancer) SetScheme(v string) *LoadBalancer { + s.Scheme = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *LoadBalancer) SetSecurityGroups(v []*string) *LoadBalancer { + s.SecurityGroups = v + return s +} + +// SetState sets the State field's value. +func (s *LoadBalancer) SetState(v *LoadBalancerState) *LoadBalancer { + s.State = v + return s +} + +// SetType sets the Type field's value. +func (s *LoadBalancer) SetType(v string) *LoadBalancer { + s.Type = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *LoadBalancer) SetVpcId(v string) *LoadBalancer { + s.VpcId = &v + return s +} + // Information about a load balancer attribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/LoadBalancerAttribute type LoadBalancerAttribute struct { _ struct{} `type:"structure"` // The name of the attribute. // - // access_logs.s3.enabled - Indicates whether access logs stored in Amazon - // S3 are enabled. + // * access_logs.s3.enabled - Indicates whether access logs stored in Amazon + // S3 are enabled. The value is true or false. // - // access_logs.s3.bucket - The name of the S3 bucket for the access logs. - // This attribute is required if access logs in Amazon S3 are enabled. The bucket - // must exist in the same region as the load balancer and have a bucket policy - // that grants Elastic Load Balancing permission to write to the bucket. + // * access_logs.s3.bucket - The name of the S3 bucket for the access logs. + // This attribute is required if access logs in Amazon S3 are enabled. The + // bucket must exist in the same region as the load balancer and have a bucket + // policy that grants Elastic Load Balancing permission to write to the bucket. // - // access_logs.s3.prefix - The prefix for the location in the S3 bucket. - // If you don't specify a prefix, the access logs are stored in the root of - // the bucket. + // * access_logs.s3.prefix - The prefix for the location in the S3 bucket. + // If you don't specify a prefix, the access logs are stored in the root + // of the bucket. // - // deletion_protection.enabled - Indicates whether deletion protection is - // enabled. + // * deletion_protection.enabled - Indicates whether deletion protection + // is enabled. The value is true or false. // - // idle_timeout.timeout_seconds - The idle timeout value, in seconds. The - // valid range is 1-3600. The default is 60 seconds. + // * idle_timeout.timeout_seconds - The idle timeout value, in seconds. The + // valid range is 1-3600. The default is 60 seconds. Key *string `type:"string"` // The value of the attribute. @@ -3771,7 +4527,20 @@ func (s LoadBalancerAttribute) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *LoadBalancerAttribute) SetKey(v string) *LoadBalancerAttribute { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *LoadBalancerAttribute) SetValue(v string) *LoadBalancerAttribute { + s.Value = &v + return s +} + // Information about the state of the load balancer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/LoadBalancerState type LoadBalancerState struct { _ struct{} `type:"structure"` @@ -3794,7 +4563,20 @@ func (s LoadBalancerState) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *LoadBalancerState) SetCode(v string) *LoadBalancerState { + s.Code = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *LoadBalancerState) SetReason(v string) *LoadBalancerState { + s.Reason = &v + return s +} + // Information to use when checking for a successful response from a target. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Matcher type Matcher struct { _ struct{} `type:"structure"` @@ -3828,7 +4610,13 @@ func (s *Matcher) Validate() error { return nil } -// Contains the parameters for ModifyListener. +// SetHttpCode sets the HttpCode field's value. +func (s *Matcher) SetHttpCode(v string) *Matcher { + s.HttpCode = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyListenerInput type ModifyListenerInput struct { _ struct{} `type:"structure"` @@ -3889,7 +4677,43 @@ func (s *ModifyListenerInput) Validate() error { return nil } -// Contains the output of ModifyListener. +// SetCertificates sets the Certificates field's value. +func (s *ModifyListenerInput) SetCertificates(v []*Certificate) *ModifyListenerInput { + s.Certificates = v + return s +} + +// SetDefaultActions sets the DefaultActions field's value. +func (s *ModifyListenerInput) SetDefaultActions(v []*Action) *ModifyListenerInput { + s.DefaultActions = v + return s +} + +// SetListenerArn sets the ListenerArn field's value. +func (s *ModifyListenerInput) SetListenerArn(v string) *ModifyListenerInput { + s.ListenerArn = &v + return s +} + +// SetPort sets the Port field's value. +func (s *ModifyListenerInput) SetPort(v int64) *ModifyListenerInput { + s.Port = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *ModifyListenerInput) SetProtocol(v string) *ModifyListenerInput { + s.Protocol = &v + return s +} + +// SetSslPolicy sets the SslPolicy field's value. +func (s *ModifyListenerInput) SetSslPolicy(v string) *ModifyListenerInput { + s.SslPolicy = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyListenerOutput type ModifyListenerOutput struct { _ struct{} `type:"structure"` @@ -3907,7 +4731,13 @@ func (s ModifyListenerOutput) GoString() string { return s.String() } -// Contains the parameters for ModifyLoadBalancerAttributes. +// SetListeners sets the Listeners field's value. +func (s *ModifyListenerOutput) SetListeners(v []*Listener) *ModifyListenerOutput { + s.Listeners = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyLoadBalancerAttributesInput type ModifyLoadBalancerAttributesInput struct { _ struct{} `type:"structure"` @@ -3948,7 +4778,19 @@ func (s *ModifyLoadBalancerAttributesInput) Validate() error { return nil } -// Contains the output of ModifyLoadBalancerAttributes. +// SetAttributes sets the Attributes field's value. +func (s *ModifyLoadBalancerAttributesInput) SetAttributes(v []*LoadBalancerAttribute) *ModifyLoadBalancerAttributesInput { + s.Attributes = v + return s +} + +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *ModifyLoadBalancerAttributesInput) SetLoadBalancerArn(v string) *ModifyLoadBalancerAttributesInput { + s.LoadBalancerArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyLoadBalancerAttributesOutput type ModifyLoadBalancerAttributesOutput struct { _ struct{} `type:"structure"` @@ -3966,7 +4808,13 @@ func (s ModifyLoadBalancerAttributesOutput) GoString() string { return s.String() } -// Contains the parameters for ModifyRules. +// SetAttributes sets the Attributes field's value. +func (s *ModifyLoadBalancerAttributesOutput) SetAttributes(v []*LoadBalancerAttribute) *ModifyLoadBalancerAttributesOutput { + s.Attributes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyRuleInput type ModifyRuleInput struct { _ struct{} `type:"structure"` @@ -4015,7 +4863,25 @@ func (s *ModifyRuleInput) Validate() error { return nil } -// Contains the output of ModifyRules. +// SetActions sets the Actions field's value. +func (s *ModifyRuleInput) SetActions(v []*Action) *ModifyRuleInput { + s.Actions = v + return s +} + +// SetConditions sets the Conditions field's value. +func (s *ModifyRuleInput) SetConditions(v []*RuleCondition) *ModifyRuleInput { + s.Conditions = v + return s +} + +// SetRuleArn sets the RuleArn field's value. +func (s *ModifyRuleInput) SetRuleArn(v string) *ModifyRuleInput { + s.RuleArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyRuleOutput type ModifyRuleOutput struct { _ struct{} `type:"structure"` @@ -4033,7 +4899,13 @@ func (s ModifyRuleOutput) GoString() string { return s.String() } -// Contains the parameters for ModifyTargetGroupAttributes. +// SetRules sets the Rules field's value. +func (s *ModifyRuleOutput) SetRules(v []*Rule) *ModifyRuleOutput { + s.Rules = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroupAttributesInput type ModifyTargetGroupAttributesInput struct { _ struct{} `type:"structure"` @@ -4074,7 +4946,19 @@ func (s *ModifyTargetGroupAttributesInput) Validate() error { return nil } -// Contains the output of ModifyTargetGroupAttributes. +// SetAttributes sets the Attributes field's value. +func (s *ModifyTargetGroupAttributesInput) SetAttributes(v []*TargetGroupAttribute) *ModifyTargetGroupAttributesInput { + s.Attributes = v + return s +} + +// SetTargetGroupArn sets the TargetGroupArn field's value. +func (s *ModifyTargetGroupAttributesInput) SetTargetGroupArn(v string) *ModifyTargetGroupAttributesInput { + s.TargetGroupArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroupAttributesOutput type ModifyTargetGroupAttributesOutput struct { _ struct{} `type:"structure"` @@ -4092,7 +4976,13 @@ func (s ModifyTargetGroupAttributesOutput) GoString() string { return s.String() } -// Contains the parameters for ModifyTargetGroup. +// SetAttributes sets the Attributes field's value. +func (s *ModifyTargetGroupAttributesOutput) SetAttributes(v []*TargetGroupAttribute) *ModifyTargetGroupAttributesOutput { + s.Attributes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroupInput type ModifyTargetGroupInput struct { _ struct{} `type:"structure"` @@ -4173,7 +5063,61 @@ func (s *ModifyTargetGroupInput) Validate() error { return nil } -// Contains the output of ModifyTargetGroup. +// SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value. +func (s *ModifyTargetGroupInput) SetHealthCheckIntervalSeconds(v int64) *ModifyTargetGroupInput { + s.HealthCheckIntervalSeconds = &v + return s +} + +// SetHealthCheckPath sets the HealthCheckPath field's value. +func (s *ModifyTargetGroupInput) SetHealthCheckPath(v string) *ModifyTargetGroupInput { + s.HealthCheckPath = &v + return s +} + +// SetHealthCheckPort sets the HealthCheckPort field's value. +func (s *ModifyTargetGroupInput) SetHealthCheckPort(v string) *ModifyTargetGroupInput { + s.HealthCheckPort = &v + return s +} + +// SetHealthCheckProtocol sets the HealthCheckProtocol field's value. +func (s *ModifyTargetGroupInput) SetHealthCheckProtocol(v string) *ModifyTargetGroupInput { + s.HealthCheckProtocol = &v + return s +} + +// SetHealthCheckTimeoutSeconds sets the HealthCheckTimeoutSeconds field's value. +func (s *ModifyTargetGroupInput) SetHealthCheckTimeoutSeconds(v int64) *ModifyTargetGroupInput { + s.HealthCheckTimeoutSeconds = &v + return s +} + +// SetHealthyThresholdCount sets the HealthyThresholdCount field's value. +func (s *ModifyTargetGroupInput) SetHealthyThresholdCount(v int64) *ModifyTargetGroupInput { + s.HealthyThresholdCount = &v + return s +} + +// SetMatcher sets the Matcher field's value. +func (s *ModifyTargetGroupInput) SetMatcher(v *Matcher) *ModifyTargetGroupInput { + s.Matcher = v + return s +} + +// SetTargetGroupArn sets the TargetGroupArn field's value. +func (s *ModifyTargetGroupInput) SetTargetGroupArn(v string) *ModifyTargetGroupInput { + s.TargetGroupArn = &v + return s +} + +// SetUnhealthyThresholdCount sets the UnhealthyThresholdCount field's value. +func (s *ModifyTargetGroupInput) SetUnhealthyThresholdCount(v int64) *ModifyTargetGroupInput { + s.UnhealthyThresholdCount = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroupOutput type ModifyTargetGroupOutput struct { _ struct{} `type:"structure"` @@ -4191,7 +5135,13 @@ func (s ModifyTargetGroupOutput) GoString() string { return s.String() } -// Contains the parameters for RegisterTargets. +// SetTargetGroups sets the TargetGroups field's value. +func (s *ModifyTargetGroupOutput) SetTargetGroups(v []*TargetGroup) *ModifyTargetGroupOutput { + s.TargetGroups = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RegisterTargetsInput type RegisterTargetsInput struct { _ struct{} `type:"structure"` @@ -4200,7 +5150,9 @@ type RegisterTargetsInput struct { // TargetGroupArn is a required field TargetGroupArn *string `type:"string" required:"true"` - // The targets. + // The targets. The default port for a target is the port for the target group. + // You can specify a port override. If a target is already registered, you can + // register it again using a different port. // // Targets is a required field Targets []*TargetDescription `type:"list" required:"true"` @@ -4242,7 +5194,19 @@ func (s *RegisterTargetsInput) Validate() error { return nil } -// Contains the output of RegisterTargets. +// SetTargetGroupArn sets the TargetGroupArn field's value. +func (s *RegisterTargetsInput) SetTargetGroupArn(v string) *RegisterTargetsInput { + s.TargetGroupArn = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *RegisterTargetsInput) SetTargets(v []*TargetDescription) *RegisterTargetsInput { + s.Targets = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RegisterTargetsOutput type RegisterTargetsOutput struct { _ struct{} `type:"structure"` } @@ -4257,7 +5221,7 @@ func (s RegisterTargetsOutput) GoString() string { return s.String() } -// Contains the parameters for RemoveTags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RemoveTagsInput type RemoveTagsInput struct { _ struct{} `type:"structure"` @@ -4298,7 +5262,19 @@ func (s *RemoveTagsInput) Validate() error { return nil } -// Contains the output of RemoveTags. +// SetResourceArns sets the ResourceArns field's value. +func (s *RemoveTagsInput) SetResourceArns(v []*string) *RemoveTagsInput { + s.ResourceArns = v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsInput) SetTagKeys(v []*string) *RemoveTagsInput { + s.TagKeys = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RemoveTagsOutput type RemoveTagsOutput struct { _ struct{} `type:"structure"` } @@ -4314,6 +5290,7 @@ func (s RemoveTagsOutput) GoString() string { } // Information about a rule. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Rule type Rule struct { _ struct{} `type:"structure"` @@ -4343,27 +5320,59 @@ func (s Rule) GoString() string { return s.String() } +// SetActions sets the Actions field's value. +func (s *Rule) SetActions(v []*Action) *Rule { + s.Actions = v + return s +} + +// SetConditions sets the Conditions field's value. +func (s *Rule) SetConditions(v []*RuleCondition) *Rule { + s.Conditions = v + return s +} + +// SetIsDefault sets the IsDefault field's value. +func (s *Rule) SetIsDefault(v bool) *Rule { + s.IsDefault = &v + return s +} + +// SetPriority sets the Priority field's value. +func (s *Rule) SetPriority(v string) *Rule { + s.Priority = &v + return s +} + +// SetRuleArn sets the RuleArn field's value. +func (s *Rule) SetRuleArn(v string) *Rule { + s.RuleArn = &v + return s +} + // Information about a condition for a rule. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RuleCondition type RuleCondition struct { _ struct{} `type:"structure"` - // The name of the field. The possible value is path-pattern. + // The only possible value is path-pattern. Field *string `type:"string"` - // The values for the field. + // The path pattern. You can specify a single path pattern. // - // A path pattern is case sensitive, can be up to 255 characters in length, - // and can contain any of the following characters: + // A path pattern is case sensitive, can be up to 128 characters in length, + // and can contain any of the following characters. Note that you can include + // up to three wildcard characters in a path pattern. // - // A-Z, a-z, 0-9 + // * A-Z, a-z, 0-9 // - // _ - . $ / ~ " ' @ : + + // * _ - . $ / ~ " ' @ : + // - // & (using &amp;) + // * & (using &) // - // * (matches 0 or more characters) + // * * (matches 0 or more characters) // - // ? (matches exactly 1 character) + // * ? (matches exactly 1 character) Values []*string `type:"list"` } @@ -4377,7 +5386,20 @@ func (s RuleCondition) GoString() string { return s.String() } +// SetField sets the Field field's value. +func (s *RuleCondition) SetField(v string) *RuleCondition { + s.Field = &v + return s +} + +// SetValues sets the Values field's value. +func (s *RuleCondition) SetValues(v []*string) *RuleCondition { + s.Values = v + return s +} + // Information about the priorities for the rules for a listener. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RulePriorityPair type RulePriorityPair struct { _ struct{} `type:"structure"` @@ -4411,7 +5433,98 @@ func (s *RulePriorityPair) Validate() error { return nil } -// Contains the parameters for SetRulePriorities. +// SetPriority sets the Priority field's value. +func (s *RulePriorityPair) SetPriority(v int64) *RulePriorityPair { + s.Priority = &v + return s +} + +// SetRuleArn sets the RuleArn field's value. +func (s *RulePriorityPair) SetRuleArn(v string) *RulePriorityPair { + s.RuleArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetIpAddressTypeInput +type SetIpAddressTypeInput struct { + _ struct{} `type:"structure"` + + // The IP address type. The possible values are ipv4 (for IPv4 addresses) and + // dualstack (for IPv4 and IPv6 addresses). Internal load balancers must use + // ipv4. + // + // IpAddressType is a required field + IpAddressType *string `type:"string" required:"true" enum:"IpAddressType"` + + // The Amazon Resource Name (ARN) of the load balancer. + // + // LoadBalancerArn is a required field + LoadBalancerArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s SetIpAddressTypeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SetIpAddressTypeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SetIpAddressTypeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SetIpAddressTypeInput"} + if s.IpAddressType == nil { + invalidParams.Add(request.NewErrParamRequired("IpAddressType")) + } + if s.LoadBalancerArn == nil { + invalidParams.Add(request.NewErrParamRequired("LoadBalancerArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIpAddressType sets the IpAddressType field's value. +func (s *SetIpAddressTypeInput) SetIpAddressType(v string) *SetIpAddressTypeInput { + s.IpAddressType = &v + return s +} + +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *SetIpAddressTypeInput) SetLoadBalancerArn(v string) *SetIpAddressTypeInput { + s.LoadBalancerArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetIpAddressTypeOutput +type SetIpAddressTypeOutput struct { + _ struct{} `type:"structure"` + + // The IP address type. + IpAddressType *string `type:"string" enum:"IpAddressType"` +} + +// String returns the string representation +func (s SetIpAddressTypeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SetIpAddressTypeOutput) GoString() string { + return s.String() +} + +// SetIpAddressType sets the IpAddressType field's value. +func (s *SetIpAddressTypeOutput) SetIpAddressType(v string) *SetIpAddressTypeOutput { + s.IpAddressType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetRulePrioritiesInput type SetRulePrioritiesInput struct { _ struct{} `type:"structure"` @@ -4454,7 +5567,13 @@ func (s *SetRulePrioritiesInput) Validate() error { return nil } -// Contains the output of SetRulePriorities. +// SetRulePriorities sets the RulePriorities field's value. +func (s *SetRulePrioritiesInput) SetRulePriorities(v []*RulePriorityPair) *SetRulePrioritiesInput { + s.RulePriorities = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetRulePrioritiesOutput type SetRulePrioritiesOutput struct { _ struct{} `type:"structure"` @@ -4472,7 +5591,13 @@ func (s SetRulePrioritiesOutput) GoString() string { return s.String() } -// Contains the parameters for SetSecurityGroups. +// SetRules sets the Rules field's value. +func (s *SetRulePrioritiesOutput) SetRules(v []*Rule) *SetRulePrioritiesOutput { + s.Rules = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSecurityGroupsInput type SetSecurityGroupsInput struct { _ struct{} `type:"structure"` @@ -4513,7 +5638,19 @@ func (s *SetSecurityGroupsInput) Validate() error { return nil } -// Contains the output of SetSecurityGroups. +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *SetSecurityGroupsInput) SetLoadBalancerArn(v string) *SetSecurityGroupsInput { + s.LoadBalancerArn = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *SetSecurityGroupsInput) SetSecurityGroups(v []*string) *SetSecurityGroupsInput { + s.SecurityGroups = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSecurityGroupsOutput type SetSecurityGroupsOutput struct { _ struct{} `type:"structure"` @@ -4531,7 +5668,13 @@ func (s SetSecurityGroupsOutput) GoString() string { return s.String() } -// Contains the parameters for SetSubnets. +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *SetSecurityGroupsOutput) SetSecurityGroupIds(v []*string) *SetSecurityGroupsOutput { + s.SecurityGroupIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSubnetsInput type SetSubnetsInput struct { _ struct{} `type:"structure"` @@ -4573,7 +5716,19 @@ func (s *SetSubnetsInput) Validate() error { return nil } -// Contains the output of SetSubnets. +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *SetSubnetsInput) SetLoadBalancerArn(v string) *SetSubnetsInput { + s.LoadBalancerArn = &v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *SetSubnetsInput) SetSubnets(v []*string) *SetSubnetsInput { + s.Subnets = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSubnetsOutput type SetSubnetsOutput struct { _ struct{} `type:"structure"` @@ -4591,7 +5746,14 @@ func (s SetSubnetsOutput) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *SetSubnetsOutput) SetAvailabilityZones(v []*AvailabilityZone) *SetSubnetsOutput { + s.AvailabilityZones = v + return s +} + // Information about a policy used for SSL negotiation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SslPolicy type SslPolicy struct { _ struct{} `type:"structure"` @@ -4615,7 +5777,26 @@ func (s SslPolicy) GoString() string { return s.String() } +// SetCiphers sets the Ciphers field's value. +func (s *SslPolicy) SetCiphers(v []*Cipher) *SslPolicy { + s.Ciphers = v + return s +} + +// SetName sets the Name field's value. +func (s *SslPolicy) SetName(v string) *SslPolicy { + s.Name = &v + return s +} + +// SetSslProtocols sets the SslProtocols field's value. +func (s *SslPolicy) SetSslProtocols(v []*string) *SslPolicy { + s.SslProtocols = v + return s +} + // Information about a tag. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Tag type Tag struct { _ struct{} `type:"structure"` @@ -4654,7 +5835,20 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // The tags associated with a resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/TagDescription type TagDescription struct { _ struct{} `type:"structure"` @@ -4675,7 +5869,20 @@ func (s TagDescription) GoString() string { return s.String() } +// SetResourceArn sets the ResourceArn field's value. +func (s *TagDescription) SetResourceArn(v string) *TagDescription { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagDescription) SetTags(v []*Tag) *TagDescription { + s.Tags = v + return s +} + // Information about a target. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/TargetDescription type TargetDescription struct { _ struct{} `type:"structure"` @@ -4714,7 +5921,20 @@ func (s *TargetDescription) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *TargetDescription) SetId(v string) *TargetDescription { + s.Id = &v + return s +} + +// SetPort sets the Port field's value. +func (s *TargetDescription) SetPort(v int64) *TargetDescription { + s.Port = &v + return s +} + // Information about a target group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/TargetGroup type TargetGroup struct { _ struct{} `type:"structure"` @@ -4776,27 +5996,113 @@ func (s TargetGroup) GoString() string { return s.String() } +// SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value. +func (s *TargetGroup) SetHealthCheckIntervalSeconds(v int64) *TargetGroup { + s.HealthCheckIntervalSeconds = &v + return s +} + +// SetHealthCheckPath sets the HealthCheckPath field's value. +func (s *TargetGroup) SetHealthCheckPath(v string) *TargetGroup { + s.HealthCheckPath = &v + return s +} + +// SetHealthCheckPort sets the HealthCheckPort field's value. +func (s *TargetGroup) SetHealthCheckPort(v string) *TargetGroup { + s.HealthCheckPort = &v + return s +} + +// SetHealthCheckProtocol sets the HealthCheckProtocol field's value. +func (s *TargetGroup) SetHealthCheckProtocol(v string) *TargetGroup { + s.HealthCheckProtocol = &v + return s +} + +// SetHealthCheckTimeoutSeconds sets the HealthCheckTimeoutSeconds field's value. +func (s *TargetGroup) SetHealthCheckTimeoutSeconds(v int64) *TargetGroup { + s.HealthCheckTimeoutSeconds = &v + return s +} + +// SetHealthyThresholdCount sets the HealthyThresholdCount field's value. +func (s *TargetGroup) SetHealthyThresholdCount(v int64) *TargetGroup { + s.HealthyThresholdCount = &v + return s +} + +// SetLoadBalancerArns sets the LoadBalancerArns field's value. +func (s *TargetGroup) SetLoadBalancerArns(v []*string) *TargetGroup { + s.LoadBalancerArns = v + return s +} + +// SetMatcher sets the Matcher field's value. +func (s *TargetGroup) SetMatcher(v *Matcher) *TargetGroup { + s.Matcher = v + return s +} + +// SetPort sets the Port field's value. +func (s *TargetGroup) SetPort(v int64) *TargetGroup { + s.Port = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *TargetGroup) SetProtocol(v string) *TargetGroup { + s.Protocol = &v + return s +} + +// SetTargetGroupArn sets the TargetGroupArn field's value. +func (s *TargetGroup) SetTargetGroupArn(v string) *TargetGroup { + s.TargetGroupArn = &v + return s +} + +// SetTargetGroupName sets the TargetGroupName field's value. +func (s *TargetGroup) SetTargetGroupName(v string) *TargetGroup { + s.TargetGroupName = &v + return s +} + +// SetUnhealthyThresholdCount sets the UnhealthyThresholdCount field's value. +func (s *TargetGroup) SetUnhealthyThresholdCount(v int64) *TargetGroup { + s.UnhealthyThresholdCount = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *TargetGroup) SetVpcId(v string) *TargetGroup { + s.VpcId = &v + return s +} + // Information about a target group attribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/TargetGroupAttribute type TargetGroupAttribute struct { _ struct{} `type:"structure"` // The name of the attribute. // - // deregistration_delay.timeout_seconds - The amount time for Elastic Load - // Balancing to wait before changing the state of a deregistering target from - // draining to unused. The range is 0-3600 seconds. The default value is 300 - // seconds. + // * deregistration_delay.timeout_seconds - The amount time for Elastic Load + // Balancing to wait before changing the state of a deregistering target + // from draining to unused. The range is 0-3600 seconds. The default value + // is 300 seconds. // - // stickiness.enabled - Indicates whether sticky sessions are enabled. + // * stickiness.enabled - Indicates whether sticky sessions are enabled. + // The value is true or false. // - // stickiness.type - The type of sticky sessions. The possible value is - // lb_cookie. + // * stickiness.type - The type of sticky sessions. The possible value is + // lb_cookie. // - // stickiness.lb_cookie.duration_seconds - The time period, in seconds, - // during which requests from a client should be routed to the same target. - // After this time period expires, the load balancer-generated cookie is considered - // stale. The range is 1 second to 1 week (604800 seconds). The default value - // is 1 day (86400 seconds). + // * stickiness.lb_cookie.duration_seconds - The time period, in seconds, + // during which requests from a client should be routed to the same target. + // After this time period expires, the load balancer-generated cookie is + // considered stale. The range is 1 second to 1 week (604800 seconds). The + // default value is 1 day (86400 seconds). Key *string `type:"string"` // The value of the attribute. @@ -4813,7 +6119,20 @@ func (s TargetGroupAttribute) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *TargetGroupAttribute) SetKey(v string) *TargetGroupAttribute { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *TargetGroupAttribute) SetValue(v string) *TargetGroupAttribute { + s.Value = &v + return s +} + // Information about the current health of a target. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/TargetHealth type TargetHealth struct { _ struct{} `type:"structure"` @@ -4826,41 +6145,42 @@ type TargetHealth struct { // If the target state is initial, the reason code can be one of the following // values: // - // Elb.RegistrationInProgress - The target is in the process of being registered - // with the load balancer. + // * Elb.RegistrationInProgress - The target is in the process of being registered + // with the load balancer. // - // Elb.InitialHealthChecking - The load balancer is still sending the target - // the minimum number of health checks required to determine its health status. + // * Elb.InitialHealthChecking - The load balancer is still sending the target + // the minimum number of health checks required to determine its health status. // - // If the target state is unhealthy, the reason code can be one of the following + // If the target state is unhealthy, the reason code can be one of the following // values: // - // Target.ResponseCodeMismatch - The health checks did not return an expected - // HTTP code. + // * Target.ResponseCodeMismatch - The health checks did not return an expected + // HTTP code. // - // Target.Timeout - The health check requests timed out. + // * Target.Timeout - The health check requests timed out. // - // Target.FailedHealthChecks - The health checks failed because the connection - // to the target timed out, the target response was malformed, or the target - // failed the health check for an unknown reason. + // * Target.FailedHealthChecks - The health checks failed because the connection + // to the target timed out, the target response was malformed, or the target + // failed the health check for an unknown reason. // - // Elb.InternalError - The health checks failed due to an internal error. + // * Elb.InternalError - The health checks failed due to an internal error. // - // If the target state is unused, the reason code can be one of the following + // If the target state is unused, the reason code can be one of the following // values: // - // Target.NotRegistered - The target is not registered with the target group. + // * Target.NotRegistered - The target is not registered with the target + // group. // - // Target.NotInUse - The target group is not used by any load balancer or - // the target is in an Availability Zone that is not enabled for its load balancer. + // * Target.NotInUse - The target group is not used by any load balancer + // or the target is in an Availability Zone that is not enabled for its load + // balancer. // - // Target.InvalidState - The target is in the stopped or terminated state. + // * Target.InvalidState - The target is in the stopped or terminated state. // - // If the target state is draining, the reason code can be the following - // value: + // If the target state is draining, the reason code can be the following value: // - // Target.DeregistrationInProgress - The target is in the process of being - // deregistered and the deregistration delay period has not expired. + // * Target.DeregistrationInProgress - The target is in the process of being + // deregistered and the deregistration delay period has not expired. Reason *string `type:"string" enum:"TargetHealthReasonEnum"` // The state of the target. @@ -4877,7 +6197,26 @@ func (s TargetHealth) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *TargetHealth) SetDescription(v string) *TargetHealth { + s.Description = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *TargetHealth) SetReason(v string) *TargetHealth { + s.Reason = &v + return s +} + +// SetState sets the State field's value. +func (s *TargetHealth) SetState(v string) *TargetHealth { + s.State = &v + return s +} + // Information about the health of a target. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/TargetHealthDescription type TargetHealthDescription struct { _ struct{} `type:"structure"` @@ -4901,11 +6240,37 @@ func (s TargetHealthDescription) GoString() string { return s.String() } +// SetHealthCheckPort sets the HealthCheckPort field's value. +func (s *TargetHealthDescription) SetHealthCheckPort(v string) *TargetHealthDescription { + s.HealthCheckPort = &v + return s +} + +// SetTarget sets the Target field's value. +func (s *TargetHealthDescription) SetTarget(v *TargetDescription) *TargetHealthDescription { + s.Target = v + return s +} + +// SetTargetHealth sets the TargetHealth field's value. +func (s *TargetHealthDescription) SetTargetHealth(v *TargetHealth) *TargetHealthDescription { + s.TargetHealth = v + return s +} + const ( // ActionTypeEnumForward is a ActionTypeEnum enum value ActionTypeEnumForward = "forward" ) +const ( + // IpAddressTypeIpv4 is a IpAddressType enum value + IpAddressTypeIpv4 = "ipv4" + + // IpAddressTypeDualstack is a IpAddressType enum value + IpAddressTypeDualstack = "dualstack" +) + const ( // LoadBalancerSchemeEnumInternetFacing is a LoadBalancerSchemeEnum enum value LoadBalancerSchemeEnumInternetFacing = "internet-facing" diff --git a/vendor/github.com/aws/aws-sdk-go/service/elbv2/elbv2iface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/elbv2/elbv2iface/interface.go index cafde017f..6b37a652e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elbv2/elbv2iface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elbv2/elbv2iface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockELBV2Client{} // @@ -169,6 +169,10 @@ type ELBV2API interface { RemoveTags(*elbv2.RemoveTagsInput) (*elbv2.RemoveTagsOutput, error) + SetIpAddressTypeRequest(*elbv2.SetIpAddressTypeInput) (*request.Request, *elbv2.SetIpAddressTypeOutput) + + SetIpAddressType(*elbv2.SetIpAddressTypeInput) (*elbv2.SetIpAddressTypeOutput, error) + SetRulePrioritiesRequest(*elbv2.SetRulePrioritiesInput) (*request.Request, *elbv2.SetRulePrioritiesOutput) SetRulePriorities(*elbv2.SetRulePrioritiesInput) (*elbv2.SetRulePrioritiesOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elbv2/errors.go b/vendor/github.com/aws/aws-sdk-go/service/elbv2/errors.go new file mode 100644 index 000000000..4f49c2f22 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/elbv2/errors.go @@ -0,0 +1,195 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package elbv2 + +const ( + + // ErrCodeCertificateNotFoundException for service response error code + // "CertificateNotFound". + // + // The specified certificate does not exist. + ErrCodeCertificateNotFoundException = "CertificateNotFound" + + // ErrCodeDuplicateListenerException for service response error code + // "DuplicateListener". + // + // A listener with the specified port already exists. + ErrCodeDuplicateListenerException = "DuplicateListener" + + // ErrCodeDuplicateLoadBalancerNameException for service response error code + // "DuplicateLoadBalancerName". + // + // A load balancer with the specified name already exists for this account. + ErrCodeDuplicateLoadBalancerNameException = "DuplicateLoadBalancerName" + + // ErrCodeDuplicateTagKeysException for service response error code + // "DuplicateTagKeys". + // + // A tag key was specified more than once. + ErrCodeDuplicateTagKeysException = "DuplicateTagKeys" + + // ErrCodeDuplicateTargetGroupNameException for service response error code + // "DuplicateTargetGroupName". + // + // A target group with the specified name already exists. + ErrCodeDuplicateTargetGroupNameException = "DuplicateTargetGroupName" + + // ErrCodeHealthUnavailableException for service response error code + // "HealthUnavailable". + // + // The health of the specified targets could not be retrieved due to an internal + // error. + ErrCodeHealthUnavailableException = "HealthUnavailable" + + // ErrCodeIncompatibleProtocolsException for service response error code + // "IncompatibleProtocols". + // + // The specified configuration is not valid with this protocol. + ErrCodeIncompatibleProtocolsException = "IncompatibleProtocols" + + // ErrCodeInvalidConfigurationRequestException for service response error code + // "InvalidConfigurationRequest". + // + // The requested configuration is not valid. + ErrCodeInvalidConfigurationRequestException = "InvalidConfigurationRequest" + + // ErrCodeInvalidSchemeException for service response error code + // "InvalidScheme". + // + // The requested scheme is not valid. + ErrCodeInvalidSchemeException = "InvalidScheme" + + // ErrCodeInvalidSecurityGroupException for service response error code + // "InvalidSecurityGroup". + // + // The specified security group does not exist. + ErrCodeInvalidSecurityGroupException = "InvalidSecurityGroup" + + // ErrCodeInvalidSubnetException for service response error code + // "InvalidSubnet". + // + // The specified subnet is out of available addresses. + ErrCodeInvalidSubnetException = "InvalidSubnet" + + // ErrCodeInvalidTargetException for service response error code + // "InvalidTarget". + // + // The specified target does not exist or is not in the same VPC as the target + // group. + ErrCodeInvalidTargetException = "InvalidTarget" + + // ErrCodeListenerNotFoundException for service response error code + // "ListenerNotFound". + // + // The specified listener does not exist. + ErrCodeListenerNotFoundException = "ListenerNotFound" + + // ErrCodeLoadBalancerNotFoundException for service response error code + // "LoadBalancerNotFound". + // + // The specified load balancer does not exist. + ErrCodeLoadBalancerNotFoundException = "LoadBalancerNotFound" + + // ErrCodeOperationNotPermittedException for service response error code + // "OperationNotPermitted". + // + // This operation is not allowed. + ErrCodeOperationNotPermittedException = "OperationNotPermitted" + + // ErrCodePriorityInUseException for service response error code + // "PriorityInUse". + // + // The specified priority is in use. + ErrCodePriorityInUseException = "PriorityInUse" + + // ErrCodeResourceInUseException for service response error code + // "ResourceInUse". + // + // A specified resource is in use. + ErrCodeResourceInUseException = "ResourceInUse" + + // ErrCodeRuleNotFoundException for service response error code + // "RuleNotFound". + // + // The specified rule does not exist. + ErrCodeRuleNotFoundException = "RuleNotFound" + + // ErrCodeSSLPolicyNotFoundException for service response error code + // "SSLPolicyNotFound". + // + // The specified SSL policy does not exist. + ErrCodeSSLPolicyNotFoundException = "SSLPolicyNotFound" + + // ErrCodeSubnetNotFoundException for service response error code + // "SubnetNotFound". + // + // The specified subnet does not exist. + ErrCodeSubnetNotFoundException = "SubnetNotFound" + + // ErrCodeTargetGroupAssociationLimitException for service response error code + // "TargetGroupAssociationLimit". + // + // You've reached the limit on the number of load balancers per target group. + ErrCodeTargetGroupAssociationLimitException = "TargetGroupAssociationLimit" + + // ErrCodeTargetGroupNotFoundException for service response error code + // "TargetGroupNotFound". + // + // The specified target group does not exist. + ErrCodeTargetGroupNotFoundException = "TargetGroupNotFound" + + // ErrCodeTooManyCertificatesException for service response error code + // "TooManyCertificates". + // + // You've reached the limit on the number of certificates per listener. + ErrCodeTooManyCertificatesException = "TooManyCertificates" + + // ErrCodeTooManyListenersException for service response error code + // "TooManyListeners". + // + // You've reached the limit on the number of listeners per load balancer. + ErrCodeTooManyListenersException = "TooManyListeners" + + // ErrCodeTooManyLoadBalancersException for service response error code + // "TooManyLoadBalancers". + // + // You've reached the limit on the number of load balancers for your AWS account. + ErrCodeTooManyLoadBalancersException = "TooManyLoadBalancers" + + // ErrCodeTooManyRegistrationsForTargetIdException for service response error code + // "TooManyRegistrationsForTargetId". + // + // You've reached the limit on the number of times a target can be registered + // with a load balancer. + ErrCodeTooManyRegistrationsForTargetIdException = "TooManyRegistrationsForTargetId" + + // ErrCodeTooManyRulesException for service response error code + // "TooManyRules". + // + // You've reached the limit on the number of rules per load balancer. + ErrCodeTooManyRulesException = "TooManyRules" + + // ErrCodeTooManyTagsException for service response error code + // "TooManyTags". + // + // You've reached the limit on the number of tags per load balancer. + ErrCodeTooManyTagsException = "TooManyTags" + + // ErrCodeTooManyTargetGroupsException for service response error code + // "TooManyTargetGroups". + // + // You've reached the limit on the number of target groups for your AWS account. + ErrCodeTooManyTargetGroupsException = "TooManyTargetGroups" + + // ErrCodeTooManyTargetsException for service response error code + // "TooManyTargets". + // + // You've reached the limit on the number of targets. + ErrCodeTooManyTargetsException = "TooManyTargets" + + // ErrCodeUnsupportedProtocolException for service response error code + // "UnsupportedProtocol". + // + // The specified protocol is not supported. + ErrCodeUnsupportedProtocolException = "UnsupportedProtocol" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elbv2/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/elbv2/examples_test.go index 6150cd1a8..11fda9ce7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elbv2/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elbv2/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleELBV2_AddTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -51,11 +47,7 @@ func ExampleELBV2_AddTags() { } func ExampleELBV2_CreateListener() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -92,11 +84,7 @@ func ExampleELBV2_CreateListener() { } func ExampleELBV2_CreateLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -106,7 +94,8 @@ func ExampleELBV2_CreateLoadBalancer() { aws.String("SubnetId"), // Required // More values... }, - Scheme: aws.String("LoadBalancerSchemeEnum"), + IpAddressType: aws.String("IpAddressType"), + Scheme: aws.String("LoadBalancerSchemeEnum"), SecurityGroups: []*string{ aws.String("SecurityGroupId"), // Required // More values... @@ -133,11 +122,7 @@ func ExampleELBV2_CreateLoadBalancer() { } func ExampleELBV2_CreateRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -176,11 +161,7 @@ func ExampleELBV2_CreateRule() { } func ExampleELBV2_CreateTargetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -214,11 +195,7 @@ func ExampleELBV2_CreateTargetGroup() { } func ExampleELBV2_DeleteListener() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -239,11 +216,7 @@ func ExampleELBV2_DeleteListener() { } func ExampleELBV2_DeleteLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -264,11 +237,7 @@ func ExampleELBV2_DeleteLoadBalancer() { } func ExampleELBV2_DeleteRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -289,11 +258,7 @@ func ExampleELBV2_DeleteRule() { } func ExampleELBV2_DeleteTargetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -314,11 +279,7 @@ func ExampleELBV2_DeleteTargetGroup() { } func ExampleELBV2_DeregisterTargets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -346,11 +307,7 @@ func ExampleELBV2_DeregisterTargets() { } func ExampleELBV2_DescribeListeners() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -377,11 +334,7 @@ func ExampleELBV2_DescribeListeners() { } func ExampleELBV2_DescribeLoadBalancerAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -402,11 +355,7 @@ func ExampleELBV2_DescribeLoadBalancerAttributes() { } func ExampleELBV2_DescribeLoadBalancers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -436,11 +385,7 @@ func ExampleELBV2_DescribeLoadBalancers() { } func ExampleELBV2_DescribeRules() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -465,11 +410,7 @@ func ExampleELBV2_DescribeRules() { } func ExampleELBV2_DescribeSSLPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -495,11 +436,7 @@ func ExampleELBV2_DescribeSSLPolicies() { } func ExampleELBV2_DescribeTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -523,11 +460,7 @@ func ExampleELBV2_DescribeTags() { } func ExampleELBV2_DescribeTargetGroupAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -548,11 +481,7 @@ func ExampleELBV2_DescribeTargetGroupAttributes() { } func ExampleELBV2_DescribeTargetGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -583,11 +512,7 @@ func ExampleELBV2_DescribeTargetGroups() { } func ExampleELBV2_DescribeTargetHealth() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -615,11 +540,7 @@ func ExampleELBV2_DescribeTargetHealth() { } func ExampleELBV2_ModifyListener() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -656,11 +577,7 @@ func ExampleELBV2_ModifyListener() { } func ExampleELBV2_ModifyLoadBalancerAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -688,11 +605,7 @@ func ExampleELBV2_ModifyLoadBalancerAttributes() { } func ExampleELBV2_ModifyRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -730,11 +643,7 @@ func ExampleELBV2_ModifyRule() { } func ExampleELBV2_ModifyTargetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -765,11 +674,7 @@ func ExampleELBV2_ModifyTargetGroup() { } func ExampleELBV2_ModifyTargetGroupAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -797,11 +702,7 @@ func ExampleELBV2_ModifyTargetGroupAttributes() { } func ExampleELBV2_RegisterTargets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -829,11 +730,7 @@ func ExampleELBV2_RegisterTargets() { } func ExampleELBV2_RemoveTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -860,13 +757,31 @@ func ExampleELBV2_RemoveTags() { fmt.Println(resp) } -func ExampleELBV2_SetRulePriorities() { - sess, err := session.NewSession() +func ExampleELBV2_SetIpAddressType() { + sess := session.Must(session.NewSession()) + + svc := elbv2.New(sess) + + params := &elbv2.SetIpAddressTypeInput{ + IpAddressType: aws.String("IpAddressType"), // Required + LoadBalancerArn: aws.String("LoadBalancerArn"), // Required + } + resp, err := svc.SetIpAddressType(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleELBV2_SetRulePriorities() { + sess := session.Must(session.NewSession()) + svc := elbv2.New(sess) params := &elbv2.SetRulePrioritiesInput{ @@ -892,11 +807,7 @@ func ExampleELBV2_SetRulePriorities() { } func ExampleELBV2_SetSecurityGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) @@ -921,11 +832,7 @@ func ExampleELBV2_SetSecurityGroups() { } func ExampleELBV2_SetSubnets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := elbv2.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elbv2/service.go b/vendor/github.com/aws/aws-sdk-go/service/elbv2/service.go index 4dae4e79b..3e2e79a89 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elbv2/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elbv2/service.go @@ -22,44 +22,44 @@ import ( // with health check settings to be used when checking the health status of // the targets. // -// Elastic Load Balancing supports two types of load balancers: Classic load -// balancers and Application load balancers (new). A Classic load balancer makes -// routing and load balancing decisions either at the transport layer (TCP/SSL) -// or the application layer (HTTP/HTTPS), and supports either EC2-Classic or -// a VPC. An Application load balancer makes routing and load balancing decisions -// at the application layer (HTTP/HTTPS), supports path-based routing, and can +// Elastic Load Balancing supports two types of load balancers: Classic Load +// Balancers and Application Load Balancers. A Classic Load Balancer makes routing +// and load balancing decisions either at the transport layer (TCP/SSL) or the +// application layer (HTTP/HTTPS), and supports either EC2-Classic or a VPC. +// An Application Load Balancer makes routing and load balancing decisions at +// the application layer (HTTP/HTTPS), supports path-based routing, and can // route requests to one or more ports on each EC2 instance or container instance // in your virtual private cloud (VPC). For more information, see the Elastic // Load Balancing User Guide (http://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/). // -// This reference covers the 2015-12-01 API, which supports Application load -// balancers. The 2012-06-01 API supports Classic load balancers. +// This reference covers the 2015-12-01 API, which supports Application Load +// Balancers. The 2012-06-01 API supports Classic Load Balancers. // -// To get started with an Application load balancer, complete the following -// tasks: +// To get started, complete the following tasks: // -// Create a load balancer using CreateLoadBalancer. +// Create an Application Load Balancer using CreateLoadBalancer. // -// Create a target group using CreateTargetGroup. +// Create a target group using CreateTargetGroup. // -// Register targets for the target group using RegisterTargets. +// Register targets for the target group using RegisterTargets. // -// Create one or more listeners for your load balancer using CreateListener. +// Create one or more listeners for your load balancer using CreateListener. // -// (Optional) Create one or more rules for content routing based on URL using +// (Optional) Create one or more rules for content routing based on URL using // CreateRule. // -// To delete an Application load balancer and its related resources, complete +// To delete an Application Load Balancer and its related resources, complete // the following tasks: // -// Delete the load balancer using DeleteLoadBalancer. +// Delete the load balancer using DeleteLoadBalancer. // -// Delete the target group using DeleteTargetGroup. +// Delete the target group using DeleteTargetGroup. // -// All Elastic Load Balancing operations are idempotent, which means that -// they complete at most one time. If you repeat an operation, it succeeds. -//The service client's operations are safe to be used concurrently. +// All Elastic Load Balancing operations are idempotent, which means that they +// complete at most one time. If you repeat an operation, it succeeds. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01 type ELBV2 struct { *client.Client } @@ -70,8 +70,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "elasticloadbalancing" +// Service information constants +const ( + ServiceName = "elasticloadbalancing" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the ELBV2 client with a session. // If additional configuration is needed for the client instance use the optional @@ -84,17 +87,18 @@ const ServiceName = "elasticloadbalancing" // // Create a ELBV2 client with additional configuration // svc := elbv2.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ELBV2 { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ELBV2 { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *ELBV2 { svc := &ELBV2{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-12-01", diff --git a/vendor/github.com/aws/aws-sdk-go/service/emr/api.go b/vendor/github.com/aws/aws-sdk-go/service/emr/api.go index 70a874f9f..169ba4e3a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/emr/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/emr/api.go @@ -13,6 +13,77 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) +const opAddInstanceFleet = "AddInstanceFleet" + +// AddInstanceFleetRequest generates a "aws/request.Request" representing the +// client's request for the AddInstanceFleet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AddInstanceFleet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AddInstanceFleet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AddInstanceFleetRequest method. +// req, resp := client.AddInstanceFleetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddInstanceFleet +func (c *EMR) AddInstanceFleetRequest(input *AddInstanceFleetInput) (req *request.Request, output *AddInstanceFleetOutput) { + op := &request.Operation{ + Name: opAddInstanceFleet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AddInstanceFleetInput{} + } + + output = &AddInstanceFleetOutput{} + req = c.newRequest(op, input, output) + return +} + +// AddInstanceFleet API operation for Amazon Elastic MapReduce. +// +// Adds an instance fleet to a running cluster. +// +// The instance fleet configuration is available only in Amazon EMR versions +// 4.8.0 and later, excluding 5.0.x. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation AddInstanceFleet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerException "InternalServerException" +// This exception occurs when there is an internal failure in the EMR service. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception occurs when there is something wrong with user input. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddInstanceFleet +func (c *EMR) AddInstanceFleet(input *AddInstanceFleetInput) (*AddInstanceFleetOutput, error) { + req, out := c.AddInstanceFleetRequest(input) + err := req.Send() + return out, err +} + const opAddInstanceGroups = "AddInstanceGroups" // AddInstanceGroupsRequest generates a "aws/request.Request" representing the @@ -39,6 +110,7 @@ const opAddInstanceGroups = "AddInstanceGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddInstanceGroups func (c *EMR) AddInstanceGroupsRequest(input *AddInstanceGroupsInput) (req *request.Request, output *AddInstanceGroupsOutput) { op := &request.Operation{ Name: opAddInstanceGroups, @@ -50,15 +122,14 @@ func (c *EMR) AddInstanceGroupsRequest(input *AddInstanceGroupsInput) (req *requ input = &AddInstanceGroupsInput{} } - req = c.newRequest(op, input, output) output = &AddInstanceGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // AddInstanceGroups API operation for Amazon Elastic MapReduce. // -// AddInstanceGroups adds an instance group to a running cluster. +// Adds one or more instance groups to a running cluster. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -68,10 +139,11 @@ func (c *EMR) AddInstanceGroupsRequest(input *AddInstanceGroupsInput) (req *requ // API operation AddInstanceGroups for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // Indicates that an error occurred while processing the request and that the // request was not completed. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddInstanceGroups func (c *EMR) AddInstanceGroups(input *AddInstanceGroupsInput) (*AddInstanceGroupsOutput, error) { req, out := c.AddInstanceGroupsRequest(input) err := req.Send() @@ -104,6 +176,7 @@ const opAddJobFlowSteps = "AddJobFlowSteps" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddJobFlowSteps func (c *EMR) AddJobFlowStepsRequest(input *AddJobFlowStepsInput) (req *request.Request, output *AddJobFlowStepsOutput) { op := &request.Operation{ Name: opAddJobFlowSteps, @@ -115,37 +188,35 @@ func (c *EMR) AddJobFlowStepsRequest(input *AddJobFlowStepsInput) (req *request. input = &AddJobFlowStepsInput{} } - req = c.newRequest(op, input, output) output = &AddJobFlowStepsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // AddJobFlowSteps API operation for Amazon Elastic MapReduce. // -// AddJobFlowSteps adds new steps to a running job flow. A maximum of 256 steps +// AddJobFlowSteps adds new steps to a running cluster. A maximum of 256 steps // are allowed in each job flow. // -// If your job flow is long-running (such as a Hive data warehouse) or complex, +// If your cluster is long-running (such as a Hive data warehouse) or complex, // you may require more than 256 steps to process your data. You can bypass -// the 256-step limitation in various ways, including using the SSH shell to -// connect to the master node and submitting queries directly to the software -// running on the master node, such as Hive and Hadoop. For more information -// on how to do this, go to Add More than 256 Steps to a Job Flow (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/AddMoreThan256Steps.html) -// in the Amazon Elastic MapReduce Developer's Guide. -// -// A step specifies the location of a JAR file stored either on the master -// node of the job flow or in Amazon S3. Each step is performed by the main -// function of the main class of the JAR file. The main class can be specified -// either in the manifest of the JAR or by using the MainFunction parameter -// of the step. -// -// Elastic MapReduce executes each step in the order listed. For a step to -// be considered complete, the main function must exit with a zero exit code -// and all Hadoop jobs started while the step was running must have completed -// and run successfully. -// -// You can only add steps to a job flow that is in one of the following states: +// the 256-step limitation in various ways, including using SSH to connect to +// the master node and submitting queries directly to the software running on +// the master node, such as Hive and Hadoop. For more information on how to +// do this, see Add More than 256 Steps to a Cluster (http://docs.aws.amazon.com/ElasticMapReduce/latest/ManagementGuide/AddMoreThan256Steps.html) +// in the Amazon EMR Management Guide. +// +// A step specifies the location of a JAR file stored either on the master node +// of the cluster or in Amazon S3. Each step is performed by the main function +// of the main class of the JAR file. The main class can be specified either +// in the manifest of the JAR or by using the MainFunction parameter of the +// step. +// +// Amazon EMR executes each step in the order listed. For a step to be considered +// complete, the main function must exit with a zero exit code and all Hadoop +// jobs started while the step was running must have completed and run successfully. +// +// You can only add steps to a cluster that is in one of the following states: // STARTING, BOOTSTRAPPING, RUNNING, or WAITING. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -156,10 +227,11 @@ func (c *EMR) AddJobFlowStepsRequest(input *AddJobFlowStepsInput) (req *request. // API operation AddJobFlowSteps for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // Indicates that an error occurred while processing the request and that the // request was not completed. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddJobFlowSteps func (c *EMR) AddJobFlowSteps(input *AddJobFlowStepsInput) (*AddJobFlowStepsOutput, error) { req, out := c.AddJobFlowStepsRequest(input) err := req.Send() @@ -192,6 +264,7 @@ const opAddTags = "AddTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddTags func (c *EMR) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) { op := &request.Operation{ Name: opAddTags, @@ -203,9 +276,8 @@ func (c *EMR) AddTagsRequest(input *AddTagsInput) (req *request.Request, output input = &AddTagsInput{} } - req = c.newRequest(op, input, output) output = &AddTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -224,18 +296,92 @@ func (c *EMR) AddTagsRequest(input *AddTagsInput) (req *request.Request, output // API operation AddTags for usage and error information. // // Returned Error Codes: -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // This exception occurs when there is an internal failure in the EMR service. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // This exception occurs when there is something wrong with user input. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddTags func (c *EMR) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) err := req.Send() return out, err } +const opCancelSteps = "CancelSteps" + +// CancelStepsRequest generates a "aws/request.Request" representing the +// client's request for the CancelSteps operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CancelSteps for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CancelSteps method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CancelStepsRequest method. +// req, resp := client.CancelStepsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CancelSteps +func (c *EMR) CancelStepsRequest(input *CancelStepsInput) (req *request.Request, output *CancelStepsOutput) { + op := &request.Operation{ + Name: opCancelSteps, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CancelStepsInput{} + } + + output = &CancelStepsOutput{} + req = c.newRequest(op, input, output) + return +} + +// CancelSteps API operation for Amazon Elastic MapReduce. +// +// Cancels a pending step or steps in a running cluster. Available only in Amazon +// EMR versions 4.8.0 and later, excluding version 5.0.0. A maximum of 256 steps +// are allowed in each CancelSteps request. CancelSteps is idempotent but asynchronous; +// it does not guarantee a step will be canceled, even if the request is successfully +// submitted. You can only cancel steps that are in a PENDING state. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation CancelSteps for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// Indicates that an error occurred while processing the request and that the +// request was not completed. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception occurs when there is something wrong with user input. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CancelSteps +func (c *EMR) CancelSteps(input *CancelStepsInput) (*CancelStepsOutput, error) { + req, out := c.CancelStepsRequest(input) + err := req.Send() + return out, err +} + const opCreateSecurityConfiguration = "CreateSecurityConfiguration" // CreateSecurityConfigurationRequest generates a "aws/request.Request" representing the @@ -262,6 +408,7 @@ const opCreateSecurityConfiguration = "CreateSecurityConfiguration" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CreateSecurityConfiguration func (c *EMR) CreateSecurityConfigurationRequest(input *CreateSecurityConfigurationInput) (req *request.Request, output *CreateSecurityConfigurationOutput) { op := &request.Operation{ Name: opCreateSecurityConfiguration, @@ -273,17 +420,15 @@ func (c *EMR) CreateSecurityConfigurationRequest(input *CreateSecurityConfigurat input = &CreateSecurityConfigurationInput{} } - req = c.newRequest(op, input, output) output = &CreateSecurityConfigurationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // CreateSecurityConfiguration API operation for Amazon Elastic MapReduce. // -// Creates a security configuration using EMR Security Configurations, which -// are stored in the service. Security Configurations enable you to more easily -// create a configuration, reuse it, and apply it whenever a cluster is created. +// Creates a security configuration, which is stored in the service and can +// be specified when a cluster is created. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -293,12 +438,13 @@ func (c *EMR) CreateSecurityConfigurationRequest(input *CreateSecurityConfigurat // API operation CreateSecurityConfiguration for usage and error information. // // Returned Error Codes: -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // This exception occurs when there is an internal failure in the EMR service. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // This exception occurs when there is something wrong with user input. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CreateSecurityConfiguration func (c *EMR) CreateSecurityConfiguration(input *CreateSecurityConfigurationInput) (*CreateSecurityConfigurationOutput, error) { req, out := c.CreateSecurityConfigurationRequest(input) err := req.Send() @@ -331,6 +477,7 @@ const opDeleteSecurityConfiguration = "DeleteSecurityConfiguration" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DeleteSecurityConfiguration func (c *EMR) DeleteSecurityConfigurationRequest(input *DeleteSecurityConfigurationInput) (req *request.Request, output *DeleteSecurityConfigurationOutput) { op := &request.Operation{ Name: opDeleteSecurityConfiguration, @@ -342,9 +489,8 @@ func (c *EMR) DeleteSecurityConfigurationRequest(input *DeleteSecurityConfigurat input = &DeleteSecurityConfigurationInput{} } - req = c.newRequest(op, input, output) output = &DeleteSecurityConfigurationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -360,12 +506,13 @@ func (c *EMR) DeleteSecurityConfigurationRequest(input *DeleteSecurityConfigurat // API operation DeleteSecurityConfiguration for usage and error information. // // Returned Error Codes: -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // This exception occurs when there is an internal failure in the EMR service. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // This exception occurs when there is something wrong with user input. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DeleteSecurityConfiguration func (c *EMR) DeleteSecurityConfiguration(input *DeleteSecurityConfigurationInput) (*DeleteSecurityConfigurationOutput, error) { req, out := c.DeleteSecurityConfigurationRequest(input) err := req.Send() @@ -398,6 +545,7 @@ const opDescribeCluster = "DescribeCluster" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeCluster func (c *EMR) DescribeClusterRequest(input *DescribeClusterInput) (req *request.Request, output *DescribeClusterOutput) { op := &request.Operation{ Name: opDescribeCluster, @@ -409,9 +557,8 @@ func (c *EMR) DescribeClusterRequest(input *DescribeClusterInput) (req *request. input = &DescribeClusterInput{} } - req = c.newRequest(op, input, output) output = &DescribeClusterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -428,12 +575,13 @@ func (c *EMR) DescribeClusterRequest(input *DescribeClusterInput) (req *request. // API operation DescribeCluster for usage and error information. // // Returned Error Codes: -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // This exception occurs when there is an internal failure in the EMR service. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // This exception occurs when there is something wrong with user input. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeCluster func (c *EMR) DescribeCluster(input *DescribeClusterInput) (*DescribeClusterOutput, error) { req, out := c.DescribeClusterRequest(input) err := req.Send() @@ -466,6 +614,7 @@ const opDescribeJobFlows = "DescribeJobFlows" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeJobFlows func (c *EMR) DescribeJobFlowsRequest(input *DescribeJobFlowsInput) (req *request.Request, output *DescribeJobFlowsOutput) { if c.Client.Config.Logger != nil { c.Client.Config.Logger.Log("This operation, DescribeJobFlows, has been deprecated") @@ -480,9 +629,8 @@ func (c *EMR) DescribeJobFlowsRequest(input *DescribeJobFlowsInput) (req *reques input = &DescribeJobFlowsInput{} } - req = c.newRequest(op, input, output) output = &DescribeJobFlowsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -502,12 +650,12 @@ func (c *EMR) DescribeJobFlowsRequest(input *DescribeJobFlowsInput) (req *reques // If no parameters are supplied, then job flows matching either of the following // criteria are returned: // -// Job flows created and completed in the last two weeks +// * Job flows created and completed in the last two weeks // -// Job flows created within the last two months that are in one of the following -// states: RUNNING, WAITING, SHUTTING_DOWN, STARTING +// * Job flows created within the last two months that are in one of the +// following states: RUNNING, WAITING, SHUTTING_DOWN, STARTING // -// Amazon Elastic MapReduce can return a maximum of 512 job flow descriptions. +// Amazon EMR can return a maximum of 512 job flow descriptions. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -517,10 +665,11 @@ func (c *EMR) DescribeJobFlowsRequest(input *DescribeJobFlowsInput) (req *reques // API operation DescribeJobFlows for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // Indicates that an error occurred while processing the request and that the // request was not completed. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeJobFlows func (c *EMR) DescribeJobFlows(input *DescribeJobFlowsInput) (*DescribeJobFlowsOutput, error) { req, out := c.DescribeJobFlowsRequest(input) err := req.Send() @@ -553,6 +702,7 @@ const opDescribeSecurityConfiguration = "DescribeSecurityConfiguration" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeSecurityConfiguration func (c *EMR) DescribeSecurityConfigurationRequest(input *DescribeSecurityConfigurationInput) (req *request.Request, output *DescribeSecurityConfigurationOutput) { op := &request.Operation{ Name: opDescribeSecurityConfiguration, @@ -564,9 +714,8 @@ func (c *EMR) DescribeSecurityConfigurationRequest(input *DescribeSecurityConfig input = &DescribeSecurityConfigurationInput{} } - req = c.newRequest(op, input, output) output = &DescribeSecurityConfigurationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -583,12 +732,13 @@ func (c *EMR) DescribeSecurityConfigurationRequest(input *DescribeSecurityConfig // API operation DescribeSecurityConfiguration for usage and error information. // // Returned Error Codes: -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // This exception occurs when there is an internal failure in the EMR service. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // This exception occurs when there is something wrong with user input. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeSecurityConfiguration func (c *EMR) DescribeSecurityConfiguration(input *DescribeSecurityConfigurationInput) (*DescribeSecurityConfigurationOutput, error) { req, out := c.DescribeSecurityConfigurationRequest(input) err := req.Send() @@ -621,6 +771,7 @@ const opDescribeStep = "DescribeStep" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeStep func (c *EMR) DescribeStepRequest(input *DescribeStepInput) (req *request.Request, output *DescribeStepOutput) { op := &request.Operation{ Name: opDescribeStep, @@ -632,9 +783,8 @@ func (c *EMR) DescribeStepRequest(input *DescribeStepInput) (req *request.Reques input = &DescribeStepInput{} } - req = c.newRequest(op, input, output) output = &DescribeStepOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -650,12 +800,13 @@ func (c *EMR) DescribeStepRequest(input *DescribeStepInput) (req *request.Reques // API operation DescribeStep for usage and error information. // // Returned Error Codes: -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // This exception occurs when there is an internal failure in the EMR service. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // This exception occurs when there is something wrong with user input. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeStep func (c *EMR) DescribeStep(input *DescribeStepInput) (*DescribeStepOutput, error) { req, out := c.DescribeStepRequest(input) err := req.Send() @@ -688,6 +839,7 @@ const opListBootstrapActions = "ListBootstrapActions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListBootstrapActions func (c *EMR) ListBootstrapActionsRequest(input *ListBootstrapActionsInput) (req *request.Request, output *ListBootstrapActionsOutput) { op := &request.Operation{ Name: opListBootstrapActions, @@ -705,9 +857,8 @@ func (c *EMR) ListBootstrapActionsRequest(input *ListBootstrapActionsInput) (req input = &ListBootstrapActionsInput{} } - req = c.newRequest(op, input, output) output = &ListBootstrapActionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -723,12 +874,13 @@ func (c *EMR) ListBootstrapActionsRequest(input *ListBootstrapActionsInput) (req // API operation ListBootstrapActions for usage and error information. // // Returned Error Codes: -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // This exception occurs when there is an internal failure in the EMR service. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // This exception occurs when there is something wrong with user input. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListBootstrapActions func (c *EMR) ListBootstrapActions(input *ListBootstrapActionsInput) (*ListBootstrapActionsOutput, error) { req, out := c.ListBootstrapActionsRequest(input) err := req.Send() @@ -786,6 +938,7 @@ const opListClusters = "ListClusters" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListClusters func (c *EMR) ListClustersRequest(input *ListClustersInput) (req *request.Request, output *ListClustersOutput) { op := &request.Operation{ Name: opListClusters, @@ -803,9 +956,8 @@ func (c *EMR) ListClustersRequest(input *ListClustersInput) (req *request.Reques input = &ListClustersInput{} } - req = c.newRequest(op, input, output) output = &ListClustersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -825,12 +977,13 @@ func (c *EMR) ListClustersRequest(input *ListClustersInput) (req *request.Reques // API operation ListClusters for usage and error information. // // Returned Error Codes: -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // This exception occurs when there is an internal failure in the EMR service. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // This exception occurs when there is something wrong with user input. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListClusters func (c *EMR) ListClusters(input *ListClustersInput) (*ListClustersOutput, error) { req, out := c.ListClustersRequest(input) err := req.Send() @@ -862,6 +1015,108 @@ func (c *EMR) ListClustersPages(input *ListClustersInput, fn func(p *ListCluster }) } +const opListInstanceFleets = "ListInstanceFleets" + +// ListInstanceFleetsRequest generates a "aws/request.Request" representing the +// client's request for the ListInstanceFleets operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListInstanceFleets for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListInstanceFleets method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListInstanceFleetsRequest method. +// req, resp := client.ListInstanceFleetsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstanceFleets +func (c *EMR) ListInstanceFleetsRequest(input *ListInstanceFleetsInput) (req *request.Request, output *ListInstanceFleetsOutput) { + op := &request.Operation{ + Name: opListInstanceFleets, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"Marker"}, + LimitToken: "", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListInstanceFleetsInput{} + } + + output = &ListInstanceFleetsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListInstanceFleets API operation for Amazon Elastic MapReduce. +// +// Lists all available details about the instance fleets in a cluster. +// +// The instance fleet configuration is available only in Amazon EMR versions +// 4.8.0 and later, excluding 5.0.x versions. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation ListInstanceFleets for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerException "InternalServerException" +// This exception occurs when there is an internal failure in the EMR service. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception occurs when there is something wrong with user input. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstanceFleets +func (c *EMR) ListInstanceFleets(input *ListInstanceFleetsInput) (*ListInstanceFleetsOutput, error) { + req, out := c.ListInstanceFleetsRequest(input) + err := req.Send() + return out, err +} + +// ListInstanceFleetsPages iterates over the pages of a ListInstanceFleets operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListInstanceFleets method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListInstanceFleets operation. +// pageNum := 0 +// err := client.ListInstanceFleetsPages(params, +// func(page *ListInstanceFleetsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *EMR) ListInstanceFleetsPages(input *ListInstanceFleetsInput, fn func(p *ListInstanceFleetsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListInstanceFleetsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListInstanceFleetsOutput), lastPage) + }) +} + const opListInstanceGroups = "ListInstanceGroups" // ListInstanceGroupsRequest generates a "aws/request.Request" representing the @@ -888,6 +1143,7 @@ const opListInstanceGroups = "ListInstanceGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstanceGroups func (c *EMR) ListInstanceGroupsRequest(input *ListInstanceGroupsInput) (req *request.Request, output *ListInstanceGroupsOutput) { op := &request.Operation{ Name: opListInstanceGroups, @@ -905,9 +1161,8 @@ func (c *EMR) ListInstanceGroupsRequest(input *ListInstanceGroupsInput) (req *re input = &ListInstanceGroupsInput{} } - req = c.newRequest(op, input, output) output = &ListInstanceGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -923,12 +1178,13 @@ func (c *EMR) ListInstanceGroupsRequest(input *ListInstanceGroupsInput) (req *re // API operation ListInstanceGroups for usage and error information. // // Returned Error Codes: -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // This exception occurs when there is an internal failure in the EMR service. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // This exception occurs when there is something wrong with user input. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstanceGroups func (c *EMR) ListInstanceGroups(input *ListInstanceGroupsInput) (*ListInstanceGroupsOutput, error) { req, out := c.ListInstanceGroupsRequest(input) err := req.Send() @@ -986,6 +1242,7 @@ const opListInstances = "ListInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstances func (c *EMR) ListInstancesRequest(input *ListInstancesInput) (req *request.Request, output *ListInstancesOutput) { op := &request.Operation{ Name: opListInstances, @@ -1003,9 +1260,8 @@ func (c *EMR) ListInstancesRequest(input *ListInstancesInput) (req *request.Requ input = &ListInstancesInput{} } - req = c.newRequest(op, input, output) output = &ListInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1025,12 +1281,13 @@ func (c *EMR) ListInstancesRequest(input *ListInstancesInput) (req *request.Requ // API operation ListInstances for usage and error information. // // Returned Error Codes: -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // This exception occurs when there is an internal failure in the EMR service. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // This exception occurs when there is something wrong with user input. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstances func (c *EMR) ListInstances(input *ListInstancesInput) (*ListInstancesOutput, error) { req, out := c.ListInstancesRequest(input) err := req.Send() @@ -1088,6 +1345,7 @@ const opListSecurityConfigurations = "ListSecurityConfigurations" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListSecurityConfigurations func (c *EMR) ListSecurityConfigurationsRequest(input *ListSecurityConfigurationsInput) (req *request.Request, output *ListSecurityConfigurationsOutput) { op := &request.Operation{ Name: opListSecurityConfigurations, @@ -1099,9 +1357,8 @@ func (c *EMR) ListSecurityConfigurationsRequest(input *ListSecurityConfiguration input = &ListSecurityConfigurationsInput{} } - req = c.newRequest(op, input, output) output = &ListSecurityConfigurationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1120,12 +1377,13 @@ func (c *EMR) ListSecurityConfigurationsRequest(input *ListSecurityConfiguration // API operation ListSecurityConfigurations for usage and error information. // // Returned Error Codes: -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // This exception occurs when there is an internal failure in the EMR service. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // This exception occurs when there is something wrong with user input. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListSecurityConfigurations func (c *EMR) ListSecurityConfigurations(input *ListSecurityConfigurationsInput) (*ListSecurityConfigurationsOutput, error) { req, out := c.ListSecurityConfigurationsRequest(input) err := req.Send() @@ -1158,6 +1416,7 @@ const opListSteps = "ListSteps" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListSteps func (c *EMR) ListStepsRequest(input *ListStepsInput) (req *request.Request, output *ListStepsOutput) { op := &request.Operation{ Name: opListSteps, @@ -1175,15 +1434,15 @@ func (c *EMR) ListStepsRequest(input *ListStepsInput) (req *request.Request, out input = &ListStepsInput{} } - req = c.newRequest(op, input, output) output = &ListStepsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // ListSteps API operation for Amazon Elastic MapReduce. // -// Provides a list of steps for the cluster. +// Provides a list of steps for the cluster in reverse order unless you specify +// stepIds with the request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1193,12 +1452,13 @@ func (c *EMR) ListStepsRequest(input *ListStepsInput) (req *request.Request, out // API operation ListSteps for usage and error information. // // Returned Error Codes: -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // This exception occurs when there is an internal failure in the EMR service. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // This exception occurs when there is something wrong with user input. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListSteps func (c *EMR) ListSteps(input *ListStepsInput) (*ListStepsOutput, error) { req, out := c.ListStepsRequest(input) err := req.Send() @@ -1230,120 +1490,320 @@ func (c *EMR) ListStepsPages(input *ListStepsInput, fn func(p *ListStepsOutput, }) } -const opModifyInstanceGroups = "ModifyInstanceGroups" +const opModifyInstanceFleet = "ModifyInstanceFleet" -// ModifyInstanceGroupsRequest generates a "aws/request.Request" representing the -// client's request for the ModifyInstanceGroups operation. The "output" return +// ModifyInstanceFleetRequest generates a "aws/request.Request" representing the +// client's request for the ModifyInstanceFleet operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ModifyInstanceGroups for usage and error information. +// See ModifyInstanceFleet for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ModifyInstanceGroups method directly +// you just want the service response, call the ModifyInstanceFleet method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ModifyInstanceGroupsRequest method. -// req, resp := client.ModifyInstanceGroupsRequest(params) +// // Example sending a request using the ModifyInstanceFleetRequest method. +// req, resp := client.ModifyInstanceFleetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *EMR) ModifyInstanceGroupsRequest(input *ModifyInstanceGroupsInput) (req *request.Request, output *ModifyInstanceGroupsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ModifyInstanceFleet +func (c *EMR) ModifyInstanceFleetRequest(input *ModifyInstanceFleetInput) (req *request.Request, output *ModifyInstanceFleetOutput) { op := &request.Operation{ - Name: opModifyInstanceGroups, + Name: opModifyInstanceFleet, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ModifyInstanceGroupsInput{} + input = &ModifyInstanceFleetInput{} } + output = &ModifyInstanceFleetOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ModifyInstanceGroupsOutput{} - req.Data = output return } -// ModifyInstanceGroups API operation for Amazon Elastic MapReduce. +// ModifyInstanceFleet API operation for Amazon Elastic MapReduce. // -// ModifyInstanceGroups modifies the number of nodes and configuration settings -// of an instance group. The input parameters include the new target instance -// count for the group and the instance group ID. The call will either succeed -// or fail atomically. +// Modifies the target On-Demand and target Spot capacities for the instance +// fleet with the specified InstanceFleetID within the cluster specified using +// ClusterID. The call either succeeds or fails atomically. +// +// The instance fleet configuration is available only in Amazon EMR versions +// 4.8.0 and later, excluding 5.0.x versions. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Elastic MapReduce's -// API operation ModifyInstanceGroups for usage and error information. +// API operation ModifyInstanceFleet for usage and error information. // // Returned Error Codes: -// * InternalServerError -// Indicates that an error occurred while processing the request and that the -// request was not completed. +// * ErrCodeInternalServerException "InternalServerException" +// This exception occurs when there is an internal failure in the EMR service. // -func (c *EMR) ModifyInstanceGroups(input *ModifyInstanceGroupsInput) (*ModifyInstanceGroupsOutput, error) { - req, out := c.ModifyInstanceGroupsRequest(input) +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception occurs when there is something wrong with user input. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ModifyInstanceFleet +func (c *EMR) ModifyInstanceFleet(input *ModifyInstanceFleetInput) (*ModifyInstanceFleetOutput, error) { + req, out := c.ModifyInstanceFleetRequest(input) err := req.Send() return out, err } -const opRemoveTags = "RemoveTags" +const opModifyInstanceGroups = "ModifyInstanceGroups" -// RemoveTagsRequest generates a "aws/request.Request" representing the -// client's request for the RemoveTags operation. The "output" return +// ModifyInstanceGroupsRequest generates a "aws/request.Request" representing the +// client's request for the ModifyInstanceGroups operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See RemoveTags for usage and error information. +// See ModifyInstanceGroups for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the RemoveTags method directly +// you just want the service response, call the ModifyInstanceGroups method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the RemoveTagsRequest method. -// req, resp := client.RemoveTagsRequest(params) +// // Example sending a request using the ModifyInstanceGroupsRequest method. +// req, resp := client.ModifyInstanceGroupsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *EMR) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ModifyInstanceGroups +func (c *EMR) ModifyInstanceGroupsRequest(input *ModifyInstanceGroupsInput) (req *request.Request, output *ModifyInstanceGroupsOutput) { op := &request.Operation{ - Name: opRemoveTags, + Name: opModifyInstanceGroups, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &RemoveTagsInput{} + input = &ModifyInstanceGroupsInput{} } + output = &ModifyInstanceGroupsOutput{} req = c.newRequest(op, input, output) - output = &RemoveTagsOutput{} - req.Data = output + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// RemoveTags API operation for Amazon Elastic MapReduce. +// ModifyInstanceGroups API operation for Amazon Elastic MapReduce. +// +// ModifyInstanceGroups modifies the number of nodes and configuration settings +// of an instance group. The input parameters include the new target instance +// count for the group and the instance group ID. The call will either succeed +// or fail atomically. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation ModifyInstanceGroups for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// Indicates that an error occurred while processing the request and that the +// request was not completed. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ModifyInstanceGroups +func (c *EMR) ModifyInstanceGroups(input *ModifyInstanceGroupsInput) (*ModifyInstanceGroupsOutput, error) { + req, out := c.ModifyInstanceGroupsRequest(input) + err := req.Send() + return out, err +} + +const opPutAutoScalingPolicy = "PutAutoScalingPolicy" + +// PutAutoScalingPolicyRequest generates a "aws/request.Request" representing the +// client's request for the PutAutoScalingPolicy operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See PutAutoScalingPolicy for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the PutAutoScalingPolicy method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the PutAutoScalingPolicyRequest method. +// req, resp := client.PutAutoScalingPolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/PutAutoScalingPolicy +func (c *EMR) PutAutoScalingPolicyRequest(input *PutAutoScalingPolicyInput) (req *request.Request, output *PutAutoScalingPolicyOutput) { + op := &request.Operation{ + Name: opPutAutoScalingPolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PutAutoScalingPolicyInput{} + } + + output = &PutAutoScalingPolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutAutoScalingPolicy API operation for Amazon Elastic MapReduce. +// +// Creates or updates an automatic scaling policy for a core instance group +// or task instance group in an Amazon EMR cluster. The automatic scaling policy +// defines how an instance group dynamically adds and terminates EC2 instances +// in response to the value of a CloudWatch metric. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation PutAutoScalingPolicy for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/PutAutoScalingPolicy +func (c *EMR) PutAutoScalingPolicy(input *PutAutoScalingPolicyInput) (*PutAutoScalingPolicyOutput, error) { + req, out := c.PutAutoScalingPolicyRequest(input) + err := req.Send() + return out, err +} + +const opRemoveAutoScalingPolicy = "RemoveAutoScalingPolicy" + +// RemoveAutoScalingPolicyRequest generates a "aws/request.Request" representing the +// client's request for the RemoveAutoScalingPolicy operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See RemoveAutoScalingPolicy for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the RemoveAutoScalingPolicy method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the RemoveAutoScalingPolicyRequest method. +// req, resp := client.RemoveAutoScalingPolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RemoveAutoScalingPolicy +func (c *EMR) RemoveAutoScalingPolicyRequest(input *RemoveAutoScalingPolicyInput) (req *request.Request, output *RemoveAutoScalingPolicyOutput) { + op := &request.Operation{ + Name: opRemoveAutoScalingPolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RemoveAutoScalingPolicyInput{} + } + + output = &RemoveAutoScalingPolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// RemoveAutoScalingPolicy API operation for Amazon Elastic MapReduce. +// +// Removes an automatic scaling policy from a specified instance group within +// an EMR cluster. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation RemoveAutoScalingPolicy for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RemoveAutoScalingPolicy +func (c *EMR) RemoveAutoScalingPolicy(input *RemoveAutoScalingPolicyInput) (*RemoveAutoScalingPolicyOutput, error) { + req, out := c.RemoveAutoScalingPolicyRequest(input) + err := req.Send() + return out, err +} + +const opRemoveTags = "RemoveTags" + +// RemoveTagsRequest generates a "aws/request.Request" representing the +// client's request for the RemoveTags operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See RemoveTags for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the RemoveTags method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the RemoveTagsRequest method. +// req, resp := client.RemoveTagsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RemoveTags +func (c *EMR) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) { + op := &request.Operation{ + Name: opRemoveTags, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RemoveTagsInput{} + } + + output = &RemoveTagsOutput{} + req = c.newRequest(op, input, output) + return +} + +// RemoveTags API operation for Amazon Elastic MapReduce. // // Removes tags from an Amazon EMR resource. Tags make it easier to associate // clusters in various ways, such as grouping clusters to track your Amazon @@ -1360,12 +1820,13 @@ func (c *EMR) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, o // API operation RemoveTags for usage and error information. // // Returned Error Codes: -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // This exception occurs when there is an internal failure in the EMR service. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // This exception occurs when there is something wrong with user input. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RemoveTags func (c *EMR) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { req, out := c.RemoveTagsRequest(input) err := req.Send() @@ -1398,6 +1859,7 @@ const opRunJobFlow = "RunJobFlow" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RunJobFlow func (c *EMR) RunJobFlowRequest(input *RunJobFlowInput) (req *request.Request, output *RunJobFlowOutput) { op := &request.Operation{ Name: opRunJobFlow, @@ -1409,38 +1871,41 @@ func (c *EMR) RunJobFlowRequest(input *RunJobFlowInput) (req *request.Request, o input = &RunJobFlowInput{} } - req = c.newRequest(op, input, output) output = &RunJobFlowOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // RunJobFlow API operation for Amazon Elastic MapReduce. // -// RunJobFlow creates and starts running a new job flow. The job flow will run -// the steps specified. Once the job flow completes, the cluster is stopped -// and the HDFS partition is lost. To prevent loss of data, configure the last -// step of the job flow to store results in Amazon S3. If the JobFlowInstancesConfig -// KeepJobFlowAliveWhenNoSteps parameter is set to TRUE, the job flow will transition -// to the WAITING state rather than shutting down once the steps have completed. +// RunJobFlow creates and starts running a new cluster (job flow). The cluster +// runs the steps specified. After the steps complete, the cluster stops and +// the HDFS partition is lost. To prevent loss of data, configure the last step +// of the job flow to store results in Amazon S3. If the JobFlowInstancesConfigKeepJobFlowAliveWhenNoSteps +// parameter is set to TRUE, the cluster transitions to the WAITING state rather +// than shutting down after the steps have completed. // -// For additional protection, you can set the JobFlowInstancesConfig TerminationProtected -// parameter to TRUE to lock the job flow and prevent it from being terminated +// For additional protection, you can set the JobFlowInstancesConfigTerminationProtected +// parameter to TRUE to lock the cluster and prevent it from being terminated // by API call, user intervention, or in the event of a job flow error. // // A maximum of 256 steps are allowed in each job flow. // -// If your job flow is long-running (such as a Hive data warehouse) or complex, +// If your cluster is long-running (such as a Hive data warehouse) or complex, // you may require more than 256 steps to process your data. You can bypass // the 256-step limitation in various ways, including using the SSH shell to // connect to the master node and submitting queries directly to the software // running on the master node, such as Hive and Hadoop. For more information -// on how to do this, go to Add More than 256 Steps to a Job Flow (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/AddMoreThan256Steps.html) -// in the Amazon Elastic MapReduce Developer's Guide. +// on how to do this, see Add More than 256 Steps to a Cluster (http://docs.aws.amazon.com/ElasticMapReduce/latest/Management/Guide/AddMoreThan256Steps.html) +// in the Amazon EMR Management Guide. // -// For long running job flows, we recommend that you periodically store your +// For long running clusters, we recommend that you periodically store your // results. // +// The instance fleets configuration is available only in Amazon EMR versions +// 4.8.0 and later, excluding 5.0.x versions. The RunJobFlow request can contain +// InstanceFleets parameters or InstanceGroups parameters, but not both. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1449,10 +1914,11 @@ func (c *EMR) RunJobFlowRequest(input *RunJobFlowInput) (req *request.Request, o // API operation RunJobFlow for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // Indicates that an error occurred while processing the request and that the // request was not completed. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RunJobFlow func (c *EMR) RunJobFlow(input *RunJobFlowInput) (*RunJobFlowOutput, error) { req, out := c.RunJobFlowRequest(input) err := req.Send() @@ -1485,6 +1951,7 @@ const opSetTerminationProtection = "SetTerminationProtection" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SetTerminationProtection func (c *EMR) SetTerminationProtectionRequest(input *SetTerminationProtectionInput) (req *request.Request, output *SetTerminationProtectionOutput) { op := &request.Operation{ Name: opSetTerminationProtection, @@ -1496,33 +1963,32 @@ func (c *EMR) SetTerminationProtectionRequest(input *SetTerminationProtectionInp input = &SetTerminationProtectionInput{} } + output = &SetTerminationProtectionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetTerminationProtectionOutput{} - req.Data = output return } // SetTerminationProtection API operation for Amazon Elastic MapReduce. // -// SetTerminationProtection locks a job flow so the Amazon EC2 instances in -// the cluster cannot be terminated by user intervention, an API call, or in -// the event of a job-flow error. The cluster still terminates upon successful -// completion of the job flow. Calling SetTerminationProtection on a job flow -// is analogous to calling the Amazon EC2 DisableAPITermination API on all of -// the EC2 instances in a cluster. +// SetTerminationProtection locks a cluster (job flow) so the EC2 instances +// in the cluster cannot be terminated by user intervention, an API call, or +// in the event of a job-flow error. The cluster still terminates upon successful +// completion of the job flow. Calling SetTerminationProtection on a cluster +// is similar to calling the Amazon EC2 DisableAPITermination API on all EC2 +// instances in a cluster. // -// SetTerminationProtection is used to prevent accidental termination of a -// job flow and to ensure that in the event of an error, the instances will -// persist so you can recover any data stored in their ephemeral instance storage. +// SetTerminationProtection is used to prevent accidental termination of a cluster +// and to ensure that in the event of an error, the instances persist so that +// you can recover any data stored in their ephemeral instance storage. // -// To terminate a job flow that has been locked by setting SetTerminationProtection +// To terminate a cluster that has been locked by setting SetTerminationProtection // to true, you must first unlock the job flow by a subsequent call to SetTerminationProtection // in which you set the value to false. // -// For more information, go to Protecting a Job Flow from Termination (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/UsingEMR_TerminationProtection.html) -// in the Amazon Elastic MapReduce Developer's Guide. +// For more information, seeManaging Cluster Termination (http://docs.aws.amazon.com/emr/latest/ManagementGuide/UsingEMR_TerminationProtection.html) +// in the Amazon EMR Management Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1532,10 +1998,11 @@ func (c *EMR) SetTerminationProtectionRequest(input *SetTerminationProtectionInp // API operation SetTerminationProtection for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // Indicates that an error occurred while processing the request and that the // request was not completed. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SetTerminationProtection func (c *EMR) SetTerminationProtection(input *SetTerminationProtectionInput) (*SetTerminationProtectionOutput, error) { req, out := c.SetTerminationProtectionRequest(input) err := req.Send() @@ -1568,6 +2035,7 @@ const opSetVisibleToAllUsers = "SetVisibleToAllUsers" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SetVisibleToAllUsers func (c *EMR) SetVisibleToAllUsersRequest(input *SetVisibleToAllUsersInput) (req *request.Request, output *SetVisibleToAllUsersOutput) { op := &request.Operation{ Name: opSetVisibleToAllUsers, @@ -1579,22 +2047,21 @@ func (c *EMR) SetVisibleToAllUsersRequest(input *SetVisibleToAllUsersInput) (req input = &SetVisibleToAllUsersInput{} } + output = &SetVisibleToAllUsersOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetVisibleToAllUsersOutput{} - req.Data = output return } // SetVisibleToAllUsers API operation for Amazon Elastic MapReduce. // // Sets whether all AWS Identity and Access Management (IAM) users under your -// account can access the specified job flows. This action works on running -// job flows. You can also set the visibility of a job flow when you launch -// it using the VisibleToAllUsers parameter of RunJobFlow. The SetVisibleToAllUsers -// action can be called only by an IAM user who created the job flow or the -// AWS account that owns the job flow. +// account can access the specified clusters (job flows). This action works +// on running clusters. You can also set the visibility of a cluster when you +// launch it using the VisibleToAllUsers parameter of RunJobFlow. The SetVisibleToAllUsers +// action can be called only by an IAM user who created the cluster or the AWS +// account that owns the cluster. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1604,10 +2071,11 @@ func (c *EMR) SetVisibleToAllUsersRequest(input *SetVisibleToAllUsersInput) (req // API operation SetVisibleToAllUsers for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // Indicates that an error occurred while processing the request and that the // request was not completed. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SetVisibleToAllUsers func (c *EMR) SetVisibleToAllUsers(input *SetVisibleToAllUsersInput) (*SetVisibleToAllUsersOutput, error) { req, out := c.SetVisibleToAllUsersRequest(input) err := req.Send() @@ -1640,6 +2108,7 @@ const opTerminateJobFlows = "TerminateJobFlows" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/TerminateJobFlows func (c *EMR) TerminateJobFlowsRequest(input *TerminateJobFlowsInput) (req *request.Request, output *TerminateJobFlowsOutput) { op := &request.Operation{ Name: opTerminateJobFlows, @@ -1651,24 +2120,24 @@ func (c *EMR) TerminateJobFlowsRequest(input *TerminateJobFlowsInput) (req *requ input = &TerminateJobFlowsInput{} } + output = &TerminateJobFlowsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &TerminateJobFlowsOutput{} - req.Data = output return } // TerminateJobFlows API operation for Amazon Elastic MapReduce. // -// TerminateJobFlows shuts a list of job flows down. When a job flow is shut -// down, any step not yet completed is canceled and the EC2 instances on which -// the job flow is running are stopped. Any log files not already saved are -// uploaded to Amazon S3 if a LogUri was specified when the job flow was created. +// TerminateJobFlows shuts a list of clusters (job flows) down. When a job flow +// is shut down, any step not yet completed is canceled and the EC2 instances +// on which the cluster is running are stopped. Any log files not already saved +// are uploaded to Amazon S3 if a LogUri was specified when the cluster was +// created. // -// The maximum number of JobFlows allowed is 10. The call to TerminateJobFlows -// is asynchronous. Depending on the configuration of the job flow, it may take -// up to 5-20 minutes for the job flow to completely terminate and release allocated +// The maximum number of clusters allowed is 10. The call to TerminateJobFlows +// is asynchronous. Depending on the configuration of the cluster, it may take +// up to 1-5 minutes for the cluster to completely terminate and release allocated // resources, such as Amazon EC2 instances. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1679,21 +2148,114 @@ func (c *EMR) TerminateJobFlowsRequest(input *TerminateJobFlowsInput) (req *requ // API operation TerminateJobFlows for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // Indicates that an error occurred while processing the request and that the // request was not completed. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/TerminateJobFlows func (c *EMR) TerminateJobFlows(input *TerminateJobFlowsInput) (*TerminateJobFlowsOutput, error) { req, out := c.TerminateJobFlowsRequest(input) err := req.Send() return out, err } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddInstanceFleetInput +type AddInstanceFleetInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the cluster. + // + // ClusterId is a required field + ClusterId *string `type:"string" required:"true"` + + // Specifies the configuration of the instance fleet. + // + // InstanceFleet is a required field + InstanceFleet *InstanceFleetConfig `type:"structure" required:"true"` +} + +// String returns the string representation +func (s AddInstanceFleetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddInstanceFleetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AddInstanceFleetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AddInstanceFleetInput"} + if s.ClusterId == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterId")) + } + if s.InstanceFleet == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceFleet")) + } + if s.InstanceFleet != nil { + if err := s.InstanceFleet.Validate(); err != nil { + invalidParams.AddNested("InstanceFleet", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClusterId sets the ClusterId field's value. +func (s *AddInstanceFleetInput) SetClusterId(v string) *AddInstanceFleetInput { + s.ClusterId = &v + return s +} + +// SetInstanceFleet sets the InstanceFleet field's value. +func (s *AddInstanceFleetInput) SetInstanceFleet(v *InstanceFleetConfig) *AddInstanceFleetInput { + s.InstanceFleet = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddInstanceFleetOutput +type AddInstanceFleetOutput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the cluster. + ClusterId *string `type:"string"` + + // The unique identifier of the instance fleet. + InstanceFleetId *string `type:"string"` +} + +// String returns the string representation +func (s AddInstanceFleetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddInstanceFleetOutput) GoString() string { + return s.String() +} + +// SetClusterId sets the ClusterId field's value. +func (s *AddInstanceFleetOutput) SetClusterId(v string) *AddInstanceFleetOutput { + s.ClusterId = &v + return s +} + +// SetInstanceFleetId sets the InstanceFleetId field's value. +func (s *AddInstanceFleetOutput) SetInstanceFleetId(v string) *AddInstanceFleetOutput { + s.InstanceFleetId = &v + return s +} + // Input to an AddInstanceGroups call. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddInstanceGroupsInput type AddInstanceGroupsInput struct { _ struct{} `type:"structure"` - // Instance Groups to add. + // Instance groups to add. // // InstanceGroups is a required field InstanceGroups []*InstanceGroupConfig `type:"list" required:"true"` @@ -1740,7 +2302,20 @@ func (s *AddInstanceGroupsInput) Validate() error { return nil } +// SetInstanceGroups sets the InstanceGroups field's value. +func (s *AddInstanceGroupsInput) SetInstanceGroups(v []*InstanceGroupConfig) *AddInstanceGroupsInput { + s.InstanceGroups = v + return s +} + +// SetJobFlowId sets the JobFlowId field's value. +func (s *AddInstanceGroupsInput) SetJobFlowId(v string) *AddInstanceGroupsInput { + s.JobFlowId = &v + return s +} + // Output from an AddInstanceGroups call. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddInstanceGroupsOutput type AddInstanceGroupsOutput struct { _ struct{} `type:"structure"` @@ -1761,7 +2336,20 @@ func (s AddInstanceGroupsOutput) GoString() string { return s.String() } +// SetInstanceGroupIds sets the InstanceGroupIds field's value. +func (s *AddInstanceGroupsOutput) SetInstanceGroupIds(v []*string) *AddInstanceGroupsOutput { + s.InstanceGroupIds = v + return s +} + +// SetJobFlowId sets the JobFlowId field's value. +func (s *AddInstanceGroupsOutput) SetJobFlowId(v string) *AddInstanceGroupsOutput { + s.JobFlowId = &v + return s +} + // The input argument to the AddJobFlowSteps operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddJobFlowStepsInput type AddJobFlowStepsInput struct { _ struct{} `type:"structure"` @@ -1813,7 +2401,20 @@ func (s *AddJobFlowStepsInput) Validate() error { return nil } +// SetJobFlowId sets the JobFlowId field's value. +func (s *AddJobFlowStepsInput) SetJobFlowId(v string) *AddJobFlowStepsInput { + s.JobFlowId = &v + return s +} + +// SetSteps sets the Steps field's value. +func (s *AddJobFlowStepsInput) SetSteps(v []*StepConfig) *AddJobFlowStepsInput { + s.Steps = v + return s +} + // The output for the AddJobFlowSteps operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddJobFlowStepsOutput type AddJobFlowStepsOutput struct { _ struct{} `type:"structure"` @@ -1831,7 +2432,14 @@ func (s AddJobFlowStepsOutput) GoString() string { return s.String() } +// SetStepIds sets the StepIds field's value. +func (s *AddJobFlowStepsOutput) SetStepIds(v []*string) *AddJobFlowStepsOutput { + s.StepIds = v + return s +} + // This input identifies a cluster and a list of tags to attach. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddTagsInput type AddTagsInput struct { _ struct{} `type:"structure"` @@ -1841,7 +2449,7 @@ type AddTagsInput struct { // ResourceId is a required field ResourceId *string `type:"string" required:"true"` - // A list of tags to associate with a cluster and propagate to Amazon EC2 instances. + // A list of tags to associate with a cluster and propagate to EC2 instances. // Tags are user-defined key/value pairs that consist of a required key string // with a maximum of 128 characters, and an optional value string with a maximum // of 256 characters. @@ -1876,7 +2484,20 @@ func (s *AddTagsInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *AddTagsInput) SetResourceId(v string) *AddTagsInput { + s.ResourceId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput { + s.Tags = v + return s +} + // This output indicates the result of adding tags to a resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddTagsOutput type AddTagsOutput struct { _ struct{} `type:"structure"` } @@ -1895,20 +2516,21 @@ func (s AddTagsOutput) GoString() string { // the cluster. This structure contains a list of strings that indicates the // software to use with the cluster and accepts a user argument list. Amazon // EMR accepts and forwards the argument list to the corresponding installation -// script as bootstrap action argument. For more information, see Launch a Job -// Flow on the MapR Distribution for Hadoop (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-mapr.html). +// script as bootstrap action argument. For more information, see Using the +// MapR Distribution for Hadoop (http://docs.aws.amazon.com/ElasticMapReduce/latest/ManagementGuide/emr-mapr.html). // Currently supported values are: // -// "mapr-m3" - launch the job flow using MapR M3 Edition. +// * "mapr-m3" - launch the cluster using MapR M3 Edition. // -// "mapr-m5" - launch the job flow using MapR M5 Edition. +// * "mapr-m5" - launch the cluster using MapR M5 Edition. // -// "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" -// - launch the job flow using MapR M3 or M5 Edition, respectively. +// * "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" +// - launch the cluster using MapR M3 or M5 Edition, respectively. // -// In Amazon EMR releases 4.0 and greater, the only accepted parameter is -// the application name. To pass arguments to applications, you supply a configuration +// In Amazon EMR releases 4.0 and greater, the only accepted parameter is the +// application name. To pass arguments to applications, you supply a configuration // for each application. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/Application type Application struct { _ struct{} `type:"structure"` @@ -1936,38 +2558,83 @@ func (s Application) GoString() string { return s.String() } -type BootstrapActionConfig struct { +// SetAdditionalInfo sets the AdditionalInfo field's value. +func (s *Application) SetAdditionalInfo(v map[string]*string) *Application { + s.AdditionalInfo = v + return s +} + +// SetArgs sets the Args field's value. +func (s *Application) SetArgs(v []*string) *Application { + s.Args = v + return s +} + +// SetName sets the Name field's value. +func (s *Application) SetName(v string) *Application { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *Application) SetVersion(v string) *Application { + s.Version = &v + return s +} + +// An automatic scaling policy for a core instance group or task instance group +// in an Amazon EMR cluster. An automatic scaling policy defines how an instance +// group dynamically adds and terminates EC2 instances in response to the value +// of a CloudWatch metric. See PutAutoScalingPolicy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AutoScalingPolicy +type AutoScalingPolicy struct { _ struct{} `type:"structure"` - // Name is a required field - Name *string `type:"string" required:"true"` + // The upper and lower EC2 instance limits for an automatic scaling policy. + // Automatic scaling activity will not cause an instance group to grow above + // or below these limits. + // + // Constraints is a required field + Constraints *ScalingConstraints `type:"structure" required:"true"` - // ScriptBootstrapAction is a required field - ScriptBootstrapAction *ScriptBootstrapActionConfig `type:"structure" required:"true"` + // The scale-in and scale-out rules that comprise the automatic scaling policy. + // + // Rules is a required field + Rules []*ScalingRule `type:"list" required:"true"` } // String returns the string representation -func (s BootstrapActionConfig) String() string { +func (s AutoScalingPolicy) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BootstrapActionConfig) GoString() string { +func (s AutoScalingPolicy) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *BootstrapActionConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BootstrapActionConfig"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) +func (s *AutoScalingPolicy) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AutoScalingPolicy"} + if s.Constraints == nil { + invalidParams.Add(request.NewErrParamRequired("Constraints")) } - if s.ScriptBootstrapAction == nil { - invalidParams.Add(request.NewErrParamRequired("ScriptBootstrapAction")) + if s.Rules == nil { + invalidParams.Add(request.NewErrParamRequired("Rules")) } - if s.ScriptBootstrapAction != nil { - if err := s.ScriptBootstrapAction.Validate(); err != nil { - invalidParams.AddNested("ScriptBootstrapAction", err.(request.ErrInvalidParams)) + if s.Constraints != nil { + if err := s.Constraints.Validate(); err != nil { + invalidParams.AddNested("Constraints", err.(request.ErrInvalidParams)) + } + } + if s.Rules != nil { + for i, v := range s.Rules { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams)) + } } } @@ -1977,299 +2644,403 @@ func (s *BootstrapActionConfig) Validate() error { return nil } -// Reports the configuration of a bootstrap action in a job flow. -type BootstrapActionDetail struct { +// SetConstraints sets the Constraints field's value. +func (s *AutoScalingPolicy) SetConstraints(v *ScalingConstraints) *AutoScalingPolicy { + s.Constraints = v + return s +} + +// SetRules sets the Rules field's value. +func (s *AutoScalingPolicy) SetRules(v []*ScalingRule) *AutoScalingPolicy { + s.Rules = v + return s +} + +// An automatic scaling policy for a core instance group or task instance group +// in an Amazon EMR cluster. The automatic scaling policy defines how an instance +// group dynamically adds and terminates EC2 instances in response to the value +// of a CloudWatch metric. See PutAutoScalingPolicy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AutoScalingPolicyDescription +type AutoScalingPolicyDescription struct { _ struct{} `type:"structure"` - // A description of the bootstrap action. - BootstrapActionConfig *BootstrapActionConfig `type:"structure"` + // The upper and lower EC2 instance limits for an automatic scaling policy. + // Automatic scaling activity will not cause an instance group to grow above + // or below these limits. + Constraints *ScalingConstraints `type:"structure"` + + // The scale-in and scale-out rules that comprise the automatic scaling policy. + Rules []*ScalingRule `type:"list"` + + // The status of an automatic scaling policy. + Status *AutoScalingPolicyStatus `type:"structure"` } // String returns the string representation -func (s BootstrapActionDetail) String() string { +func (s AutoScalingPolicyDescription) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BootstrapActionDetail) GoString() string { +func (s AutoScalingPolicyDescription) GoString() string { return s.String() } -// The detailed description of the cluster. -type Cluster struct { - _ struct{} `type:"structure"` - - // The applications installed on this cluster. - Applications []*Application `type:"list"` - - // Specifies whether the cluster should terminate after completing all steps. - AutoTerminate *bool `type:"boolean"` - - // Amazon EMR releases 4.x or later. - // - // The list of Configurations supplied to the EMR cluster. - Configurations []*Configuration `type:"list"` - - // Provides information about the EC2 instances in a cluster grouped by category. - // For example, key name, subnet ID, IAM instance profile, and so on. - Ec2InstanceAttributes *Ec2InstanceAttributes `type:"structure"` - - // The unique identifier for the cluster. - Id *string `type:"string"` - - // The path to the Amazon S3 location where logs for this cluster are stored. - LogUri *string `type:"string"` - - // The public DNS name of the master EC2 instance. - MasterPublicDnsName *string `type:"string"` - - // The name of the cluster. - Name *string `type:"string"` - - // An approximation of the cost of the job flow, represented in m1.small/hours. - // This value is incremented one time for every hour an m1.small instance runs. - // Larger instances are weighted more, so an EC2 instance that is roughly four - // times more expensive would result in the normalized instance hours being - // incremented by four. This result is only an approximation and does not reflect - // the actual billing rate. - NormalizedInstanceHours *int64 `type:"integer"` - - // The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x - // AMIs, use amiVersion instead instead of ReleaseLabel. - ReleaseLabel *string `type:"string"` - - // The AMI version requested for this cluster. - RequestedAmiVersion *string `type:"string"` - - // The AMI version running on this cluster. - RunningAmiVersion *string `type:"string"` - - // The name of the security configuration applied to the cluster. - SecurityConfiguration *string `type:"string"` +// SetConstraints sets the Constraints field's value. +func (s *AutoScalingPolicyDescription) SetConstraints(v *ScalingConstraints) *AutoScalingPolicyDescription { + s.Constraints = v + return s +} - // The IAM role that will be assumed by the Amazon EMR service to access AWS - // resources on your behalf. - ServiceRole *string `type:"string"` +// SetRules sets the Rules field's value. +func (s *AutoScalingPolicyDescription) SetRules(v []*ScalingRule) *AutoScalingPolicyDescription { + s.Rules = v + return s +} - // The current status details about the cluster. - Status *ClusterStatus `type:"structure"` +// SetStatus sets the Status field's value. +func (s *AutoScalingPolicyDescription) SetStatus(v *AutoScalingPolicyStatus) *AutoScalingPolicyDescription { + s.Status = v + return s +} - // A list of tags associated with a cluster. - Tags []*Tag `type:"list"` +// The reason for an AutoScalingPolicyStatus change. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AutoScalingPolicyStateChangeReason +type AutoScalingPolicyStateChangeReason struct { + _ struct{} `type:"structure"` - // Indicates whether Amazon EMR will lock the cluster to prevent the EC2 instances - // from being terminated by an API call or user intervention, or in the event - // of a cluster error. - TerminationProtected *bool `type:"boolean"` + // The code indicating the reason for the change in status.USER_REQUEST indicates + // that the scaling policy status was changed by a user. PROVISION_FAILURE indicates + // that the status change was because the policy failed to provision. CLEANUP_FAILURE + // indicates an error. + Code *string `type:"string" enum:"AutoScalingPolicyStateChangeReasonCode"` - // Indicates whether the job flow is visible to all IAM users of the AWS account - // associated with the job flow. If this value is set to true, all IAM users - // of that AWS account can view and manage the job flow if they have the proper - // policy permissions set. If this value is false, only the IAM user that created - // the cluster can view and manage it. This value can be changed using the SetVisibleToAllUsers - // action. - VisibleToAllUsers *bool `type:"boolean"` + // A friendly, more verbose message that accompanies an automatic scaling policy + // state change. + Message *string `type:"string"` } // String returns the string representation -func (s Cluster) String() string { +func (s AutoScalingPolicyStateChangeReason) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Cluster) GoString() string { +func (s AutoScalingPolicyStateChangeReason) GoString() string { return s.String() } -// The reason that the cluster changed to its current state. -type ClusterStateChangeReason struct { +// SetCode sets the Code field's value. +func (s *AutoScalingPolicyStateChangeReason) SetCode(v string) *AutoScalingPolicyStateChangeReason { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *AutoScalingPolicyStateChangeReason) SetMessage(v string) *AutoScalingPolicyStateChangeReason { + s.Message = &v + return s +} + +// The status of an automatic scaling policy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AutoScalingPolicyStatus +type AutoScalingPolicyStatus struct { _ struct{} `type:"structure"` - // The programmatic code for the state change reason. - Code *string `type:"string" enum:"ClusterStateChangeReasonCode"` + // Indicates the status of the automatic scaling policy. + State *string `type:"string" enum:"AutoScalingPolicyState"` - // The descriptive message for the state change reason. - Message *string `type:"string"` + // The reason for a change in status. + StateChangeReason *AutoScalingPolicyStateChangeReason `type:"structure"` } // String returns the string representation -func (s ClusterStateChangeReason) String() string { +func (s AutoScalingPolicyStatus) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ClusterStateChangeReason) GoString() string { +func (s AutoScalingPolicyStatus) GoString() string { return s.String() } -// The detailed status of the cluster. -type ClusterStatus struct { - _ struct{} `type:"structure"` +// SetState sets the State field's value. +func (s *AutoScalingPolicyStatus) SetState(v string) *AutoScalingPolicyStatus { + s.State = &v + return s +} - // The current state of the cluster. - State *string `type:"string" enum:"ClusterState"` +// SetStateChangeReason sets the StateChangeReason field's value. +func (s *AutoScalingPolicyStatus) SetStateChangeReason(v *AutoScalingPolicyStateChangeReason) *AutoScalingPolicyStatus { + s.StateChangeReason = v + return s +} - // The reason for the cluster status change. - StateChangeReason *ClusterStateChangeReason `type:"structure"` +// Configuration of a bootstrap action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/BootstrapActionConfig +type BootstrapActionConfig struct { + _ struct{} `type:"structure"` - // A timeline that represents the status of a cluster over the lifetime of the - // cluster. - Timeline *ClusterTimeline `type:"structure"` + // The name of the bootstrap action. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The script run by the bootstrap action. + // + // ScriptBootstrapAction is a required field + ScriptBootstrapAction *ScriptBootstrapActionConfig `type:"structure" required:"true"` } // String returns the string representation -func (s ClusterStatus) String() string { +func (s BootstrapActionConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ClusterStatus) GoString() string { +func (s BootstrapActionConfig) GoString() string { return s.String() } -// The summary description of the cluster. -type ClusterSummary struct { - _ struct{} `type:"structure"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *BootstrapActionConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BootstrapActionConfig"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.ScriptBootstrapAction == nil { + invalidParams.Add(request.NewErrParamRequired("ScriptBootstrapAction")) + } + if s.ScriptBootstrapAction != nil { + if err := s.ScriptBootstrapAction.Validate(); err != nil { + invalidParams.AddNested("ScriptBootstrapAction", err.(request.ErrInvalidParams)) + } + } - // The unique identifier for the cluster. - Id *string `type:"string"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The name of the cluster. - Name *string `type:"string"` +// SetName sets the Name field's value. +func (s *BootstrapActionConfig) SetName(v string) *BootstrapActionConfig { + s.Name = &v + return s +} - // An approximation of the cost of the job flow, represented in m1.small/hours. - // This value is incremented one time for every hour an m1.small instance runs. - // Larger instances are weighted more, so an EC2 instance that is roughly four - // times more expensive would result in the normalized instance hours being - // incremented by four. This result is only an approximation and does not reflect - // the actual billing rate. - NormalizedInstanceHours *int64 `type:"integer"` +// SetScriptBootstrapAction sets the ScriptBootstrapAction field's value. +func (s *BootstrapActionConfig) SetScriptBootstrapAction(v *ScriptBootstrapActionConfig) *BootstrapActionConfig { + s.ScriptBootstrapAction = v + return s +} - // The details about the current status of the cluster. - Status *ClusterStatus `type:"structure"` +// Reports the configuration of a bootstrap action in a cluster (job flow). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/BootstrapActionDetail +type BootstrapActionDetail struct { + _ struct{} `type:"structure"` + + // A description of the bootstrap action. + BootstrapActionConfig *BootstrapActionConfig `type:"structure"` } // String returns the string representation -func (s ClusterSummary) String() string { +func (s BootstrapActionDetail) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ClusterSummary) GoString() string { +func (s BootstrapActionDetail) GoString() string { return s.String() } -// Represents the timeline of the cluster's lifecycle. -type ClusterTimeline struct { +// SetBootstrapActionConfig sets the BootstrapActionConfig field's value. +func (s *BootstrapActionDetail) SetBootstrapActionConfig(v *BootstrapActionConfig) *BootstrapActionDetail { + s.BootstrapActionConfig = v + return s +} + +// Specification of the status of a CancelSteps request. Available only in Amazon +// EMR version 4.8.0 and later, excluding version 5.0.0. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CancelStepsInfo +type CancelStepsInfo struct { _ struct{} `type:"structure"` - // The creation date and time of the cluster. - CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + // The reason for the failure if the CancelSteps request fails. + Reason *string `type:"string"` - // The date and time when the cluster was terminated. - EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + // The status of a CancelSteps Request. The value may be SUBMITTED or FAILED. + Status *string `type:"string" enum:"CancelStepsRequestStatus"` - // The date and time when the cluster was ready to execute steps. - ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + // The encrypted StepId of a step. + StepId *string `type:"string"` } // String returns the string representation -func (s ClusterTimeline) String() string { +func (s CancelStepsInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ClusterTimeline) GoString() string { +func (s CancelStepsInfo) GoString() string { return s.String() } -// An entity describing an executable that runs on a cluster. -type Command struct { - _ struct{} `type:"structure"` +// SetReason sets the Reason field's value. +func (s *CancelStepsInfo) SetReason(v string) *CancelStepsInfo { + s.Reason = &v + return s +} - // Arguments for Amazon EMR to pass to the command for execution. - Args []*string `type:"list"` +// SetStatus sets the Status field's value. +func (s *CancelStepsInfo) SetStatus(v string) *CancelStepsInfo { + s.Status = &v + return s +} - // The name of the command. - Name *string `type:"string"` +// SetStepId sets the StepId field's value. +func (s *CancelStepsInfo) SetStepId(v string) *CancelStepsInfo { + s.StepId = &v + return s +} - // The Amazon S3 location of the command script. - ScriptPath *string `type:"string"` +// The input argument to the CancelSteps operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CancelStepsInput +type CancelStepsInput struct { + _ struct{} `type:"structure"` + + // The ClusterID for which specified steps will be canceled. Use RunJobFlow + // and ListClusters to get ClusterIDs. + ClusterId *string `type:"string"` + + // The list of StepIDs to cancel. Use ListSteps to get steps and their states + // for the specified cluster. + StepIds []*string `type:"list"` } // String returns the string representation -func (s Command) String() string { +func (s CancelStepsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Command) GoString() string { +func (s CancelStepsInput) GoString() string { return s.String() } -// Amazon EMR releases 4.x or later. -// -// Specifies a hardware and software configuration of the EMR cluster. This -// includes configurations for applications and software bundled with Amazon -// EMR. The Configuration object is a JSON object which is defined by a classification -// and a set of properties. Configurations can be nested, so a configuration -// may have its own Configuration objects listed. -type Configuration struct { - _ struct{} `type:"structure"` +// SetClusterId sets the ClusterId field's value. +func (s *CancelStepsInput) SetClusterId(v string) *CancelStepsInput { + s.ClusterId = &v + return s +} - // The classification of a configuration. For more information see, Amazon EMR - // Configurations (http://docs.aws.amazon.com/ElasticMapReduce/latest/API/EmrConfigurations.html). - Classification *string `type:"string"` +// SetStepIds sets the StepIds field's value. +func (s *CancelStepsInput) SetStepIds(v []*string) *CancelStepsInput { + s.StepIds = v + return s +} - // A list of configurations you apply to this configuration object. - Configurations []*Configuration `type:"list"` +// The output for the CancelSteps operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CancelStepsOutput +type CancelStepsOutput struct { + _ struct{} `type:"structure"` - // A set of properties supplied to the Configuration object. - Properties map[string]*string `type:"map"` + // A list of CancelStepsInfo, which shows the status of specified cancel requests + // for each StepID specified. + CancelStepsInfoList []*CancelStepsInfo `type:"list"` } // String returns the string representation -func (s Configuration) String() string { +func (s CancelStepsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Configuration) GoString() string { +func (s CancelStepsOutput) GoString() string { return s.String() } -type CreateSecurityConfigurationInput struct { +// SetCancelStepsInfoList sets the CancelStepsInfoList field's value. +func (s *CancelStepsOutput) SetCancelStepsInfoList(v []*CancelStepsInfo) *CancelStepsOutput { + s.CancelStepsInfoList = v + return s +} + +// The definition of a CloudWatch metric alarm, which determines when an automatic +// scaling activity is triggered. When the defined alarm conditions are satisfied, +// scaling activity begins. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CloudWatchAlarmDefinition +type CloudWatchAlarmDefinition struct { _ struct{} `type:"structure"` - // The name of the security configuration. + // Determines how the metric specified by MetricName is compared to the value + // specified by Threshold. // - // Name is a required field - Name *string `type:"string" required:"true"` + // ComparisonOperator is a required field + ComparisonOperator *string `type:"string" required:"true" enum:"ComparisonOperator"` - // The security configuration details in JSON format. + // A CloudWatch metric dimension. + Dimensions []*MetricDimension `type:"list"` + + // The number of periods, expressed in seconds using Period, during which the + // alarm condition must exist before the alarm triggers automatic scaling activity. + // The default value is 1. + EvaluationPeriods *int64 `type:"integer"` + + // The name of the CloudWatch metric that is watched to determine an alarm condition. // - // SecurityConfiguration is a required field - SecurityConfiguration *string `type:"string" required:"true"` + // MetricName is a required field + MetricName *string `type:"string" required:"true"` + + // The namespace for the CloudWatch metric. The default is AWS/ElasticMapReduce. + Namespace *string `type:"string"` + + // The period, in seconds, over which the statistic is applied. EMR CloudWatch + // metrics are emitted every five minutes (300 seconds), so if an EMR CloudWatch + // metric is specified, specify 300. + // + // Period is a required field + Period *int64 `type:"integer" required:"true"` + + // The statistic to apply to the metric associated with the alarm. The default + // is AVERAGE. + Statistic *string `type:"string" enum:"Statistic"` + + // The value against which the specified statistic is compared. + // + // Threshold is a required field + Threshold *float64 `type:"double" required:"true"` + + // The unit of measure associated with the CloudWatch metric being watched. + // The value specified for Unit must correspond to the units specified in the + // CloudWatch metric. + Unit *string `type:"string" enum:"Unit"` } // String returns the string representation -func (s CreateSecurityConfigurationInput) String() string { +func (s CloudWatchAlarmDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateSecurityConfigurationInput) GoString() string { +func (s CloudWatchAlarmDefinition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSecurityConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSecurityConfigurationInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) +func (s *CloudWatchAlarmDefinition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CloudWatchAlarmDefinition"} + if s.ComparisonOperator == nil { + invalidParams.Add(request.NewErrParamRequired("ComparisonOperator")) } - if s.SecurityConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("SecurityConfiguration")) + if s.MetricName == nil { + invalidParams.Add(request.NewErrParamRequired("MetricName")) + } + if s.Period == nil { + invalidParams.Add(request.NewErrParamRequired("Period")) + } + if s.Threshold == nil { + invalidParams.Add(request.NewErrParamRequired("Threshold")) } if invalidParams.Len() > 0 { @@ -2278,101 +3049,1423 @@ func (s *CreateSecurityConfigurationInput) Validate() error { return nil } -type CreateSecurityConfigurationOutput struct { - _ struct{} `type:"structure"` +// SetComparisonOperator sets the ComparisonOperator field's value. +func (s *CloudWatchAlarmDefinition) SetComparisonOperator(v string) *CloudWatchAlarmDefinition { + s.ComparisonOperator = &v + return s +} - // The date and time the security configuration was created. - // - // CreationDateTime is a required field - CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` +// SetDimensions sets the Dimensions field's value. +func (s *CloudWatchAlarmDefinition) SetDimensions(v []*MetricDimension) *CloudWatchAlarmDefinition { + s.Dimensions = v + return s +} - // The name of the security configuration. - // - // Name is a required field - Name *string `type:"string" required:"true"` +// SetEvaluationPeriods sets the EvaluationPeriods field's value. +func (s *CloudWatchAlarmDefinition) SetEvaluationPeriods(v int64) *CloudWatchAlarmDefinition { + s.EvaluationPeriods = &v + return s } -// String returns the string representation +// SetMetricName sets the MetricName field's value. +func (s *CloudWatchAlarmDefinition) SetMetricName(v string) *CloudWatchAlarmDefinition { + s.MetricName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *CloudWatchAlarmDefinition) SetNamespace(v string) *CloudWatchAlarmDefinition { + s.Namespace = &v + return s +} + +// SetPeriod sets the Period field's value. +func (s *CloudWatchAlarmDefinition) SetPeriod(v int64) *CloudWatchAlarmDefinition { + s.Period = &v + return s +} + +// SetStatistic sets the Statistic field's value. +func (s *CloudWatchAlarmDefinition) SetStatistic(v string) *CloudWatchAlarmDefinition { + s.Statistic = &v + return s +} + +// SetThreshold sets the Threshold field's value. +func (s *CloudWatchAlarmDefinition) SetThreshold(v float64) *CloudWatchAlarmDefinition { + s.Threshold = &v + return s +} + +// SetUnit sets the Unit field's value. +func (s *CloudWatchAlarmDefinition) SetUnit(v string) *CloudWatchAlarmDefinition { + s.Unit = &v + return s +} + +// The detailed description of the cluster. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/Cluster +type Cluster struct { + _ struct{} `type:"structure"` + + // The applications installed on this cluster. + Applications []*Application `type:"list"` + + // An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole. + // The IAM role provides permissions that the automatic scaling feature requires + // to launch and terminate EC2 instances in an instance group. + AutoScalingRole *string `type:"string"` + + // Specifies whether the cluster should terminate after completing all steps. + AutoTerminate *bool `type:"boolean"` + + // Amazon EMR releases 4.x or later. + // + // The list of Configurations supplied to the EMR cluster. + Configurations []*Configuration `type:"list"` + + // Provides information about the EC2 instances in a cluster grouped by category. + // For example, key name, subnet ID, IAM instance profile, and so on. + Ec2InstanceAttributes *Ec2InstanceAttributes `type:"structure"` + + // The unique identifier for the cluster. + Id *string `type:"string"` + + // The instance fleet configuration is available only in Amazon EMR versions + // 4.8.0 and later, excluding 5.0.x versions. + // + // The instance group configuration of the cluster. A value of INSTANCE_GROUP + // indicates a uniform instance group configuration. A value of INSTANCE_FLEET + // indicates an instance fleets configuration. + InstanceCollectionType *string `type:"string" enum:"InstanceCollectionType"` + + // The path to the Amazon S3 location where logs for this cluster are stored. + LogUri *string `type:"string"` + + // The public DNS name of the master EC2 instance. + MasterPublicDnsName *string `type:"string"` + + // The name of the cluster. + Name *string `type:"string"` + + // An approximation of the cost of the cluster, represented in m1.small/hours. + // This value is incremented one time for every hour an m1.small instance runs. + // Larger instances are weighted more, so an EC2 instance that is roughly four + // times more expensive would result in the normalized instance hours being + // incremented by four. This result is only an approximation and does not reflect + // the actual billing rate. + NormalizedInstanceHours *int64 `type:"integer"` + + // The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x + // AMIs, use amiVersion instead instead of ReleaseLabel. + ReleaseLabel *string `type:"string"` + + // The AMI version requested for this cluster. + RequestedAmiVersion *string `type:"string"` + + // The AMI version running on this cluster. + RunningAmiVersion *string `type:"string"` + + // The way that individual Amazon EC2 instances terminate when an automatic + // scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR + // indicates that Amazon EMR terminates nodes at the instance-hour boundary, + // regardless of when the request to terminate the instance was submitted. This + // option is only available with Amazon EMR 5.1.0 and later and is the default + // for clusters created using that version. TERMINATE_AT_TASK_COMPLETION indicates + // that Amazon EMR blacklists and drains tasks from nodes before terminating + // the Amazon EC2 instances, regardless of the instance-hour boundary. With + // either behavior, Amazon EMR removes the least active nodes first and blocks + // instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION + // is available only in Amazon EMR version 4.1.0 and later, and is the default + // for versions of Amazon EMR earlier than 5.1.0. + ScaleDownBehavior *string `type:"string" enum:"ScaleDownBehavior"` + + // The name of the security configuration applied to the cluster. + SecurityConfiguration *string `type:"string"` + + // The IAM role that will be assumed by the Amazon EMR service to access AWS + // resources on your behalf. + ServiceRole *string `type:"string"` + + // The current status details about the cluster. + Status *ClusterStatus `type:"structure"` + + // A list of tags associated with a cluster. + Tags []*Tag `type:"list"` + + // Indicates whether Amazon EMR will lock the cluster to prevent the EC2 instances + // from being terminated by an API call or user intervention, or in the event + // of a cluster error. + TerminationProtected *bool `type:"boolean"` + + // Indicates whether the cluster is visible to all IAM users of the AWS account + // associated with the cluster. If this value is set to true, all IAM users + // of that AWS account can view and manage the cluster if they have the proper + // policy permissions set. If this value is false, only the IAM user that created + // the cluster can view and manage it. This value can be changed using the SetVisibleToAllUsers + // action. + VisibleToAllUsers *bool `type:"boolean"` +} + +// String returns the string representation +func (s Cluster) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Cluster) GoString() string { + return s.String() +} + +// SetApplications sets the Applications field's value. +func (s *Cluster) SetApplications(v []*Application) *Cluster { + s.Applications = v + return s +} + +// SetAutoScalingRole sets the AutoScalingRole field's value. +func (s *Cluster) SetAutoScalingRole(v string) *Cluster { + s.AutoScalingRole = &v + return s +} + +// SetAutoTerminate sets the AutoTerminate field's value. +func (s *Cluster) SetAutoTerminate(v bool) *Cluster { + s.AutoTerminate = &v + return s +} + +// SetConfigurations sets the Configurations field's value. +func (s *Cluster) SetConfigurations(v []*Configuration) *Cluster { + s.Configurations = v + return s +} + +// SetEc2InstanceAttributes sets the Ec2InstanceAttributes field's value. +func (s *Cluster) SetEc2InstanceAttributes(v *Ec2InstanceAttributes) *Cluster { + s.Ec2InstanceAttributes = v + return s +} + +// SetId sets the Id field's value. +func (s *Cluster) SetId(v string) *Cluster { + s.Id = &v + return s +} + +// SetInstanceCollectionType sets the InstanceCollectionType field's value. +func (s *Cluster) SetInstanceCollectionType(v string) *Cluster { + s.InstanceCollectionType = &v + return s +} + +// SetLogUri sets the LogUri field's value. +func (s *Cluster) SetLogUri(v string) *Cluster { + s.LogUri = &v + return s +} + +// SetMasterPublicDnsName sets the MasterPublicDnsName field's value. +func (s *Cluster) SetMasterPublicDnsName(v string) *Cluster { + s.MasterPublicDnsName = &v + return s +} + +// SetName sets the Name field's value. +func (s *Cluster) SetName(v string) *Cluster { + s.Name = &v + return s +} + +// SetNormalizedInstanceHours sets the NormalizedInstanceHours field's value. +func (s *Cluster) SetNormalizedInstanceHours(v int64) *Cluster { + s.NormalizedInstanceHours = &v + return s +} + +// SetReleaseLabel sets the ReleaseLabel field's value. +func (s *Cluster) SetReleaseLabel(v string) *Cluster { + s.ReleaseLabel = &v + return s +} + +// SetRequestedAmiVersion sets the RequestedAmiVersion field's value. +func (s *Cluster) SetRequestedAmiVersion(v string) *Cluster { + s.RequestedAmiVersion = &v + return s +} + +// SetRunningAmiVersion sets the RunningAmiVersion field's value. +func (s *Cluster) SetRunningAmiVersion(v string) *Cluster { + s.RunningAmiVersion = &v + return s +} + +// SetScaleDownBehavior sets the ScaleDownBehavior field's value. +func (s *Cluster) SetScaleDownBehavior(v string) *Cluster { + s.ScaleDownBehavior = &v + return s +} + +// SetSecurityConfiguration sets the SecurityConfiguration field's value. +func (s *Cluster) SetSecurityConfiguration(v string) *Cluster { + s.SecurityConfiguration = &v + return s +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *Cluster) SetServiceRole(v string) *Cluster { + s.ServiceRole = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Cluster) SetStatus(v *ClusterStatus) *Cluster { + s.Status = v + return s +} + +// SetTags sets the Tags field's value. +func (s *Cluster) SetTags(v []*Tag) *Cluster { + s.Tags = v + return s +} + +// SetTerminationProtected sets the TerminationProtected field's value. +func (s *Cluster) SetTerminationProtected(v bool) *Cluster { + s.TerminationProtected = &v + return s +} + +// SetVisibleToAllUsers sets the VisibleToAllUsers field's value. +func (s *Cluster) SetVisibleToAllUsers(v bool) *Cluster { + s.VisibleToAllUsers = &v + return s +} + +// The reason that the cluster changed to its current state. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ClusterStateChangeReason +type ClusterStateChangeReason struct { + _ struct{} `type:"structure"` + + // The programmatic code for the state change reason. + Code *string `type:"string" enum:"ClusterStateChangeReasonCode"` + + // The descriptive message for the state change reason. + Message *string `type:"string"` +} + +// String returns the string representation +func (s ClusterStateChangeReason) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClusterStateChangeReason) GoString() string { + return s.String() +} + +// SetCode sets the Code field's value. +func (s *ClusterStateChangeReason) SetCode(v string) *ClusterStateChangeReason { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *ClusterStateChangeReason) SetMessage(v string) *ClusterStateChangeReason { + s.Message = &v + return s +} + +// The detailed status of the cluster. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ClusterStatus +type ClusterStatus struct { + _ struct{} `type:"structure"` + + // The current state of the cluster. + State *string `type:"string" enum:"ClusterState"` + + // The reason for the cluster status change. + StateChangeReason *ClusterStateChangeReason `type:"structure"` + + // A timeline that represents the status of a cluster over the lifetime of the + // cluster. + Timeline *ClusterTimeline `type:"structure"` +} + +// String returns the string representation +func (s ClusterStatus) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClusterStatus) GoString() string { + return s.String() +} + +// SetState sets the State field's value. +func (s *ClusterStatus) SetState(v string) *ClusterStatus { + s.State = &v + return s +} + +// SetStateChangeReason sets the StateChangeReason field's value. +func (s *ClusterStatus) SetStateChangeReason(v *ClusterStateChangeReason) *ClusterStatus { + s.StateChangeReason = v + return s +} + +// SetTimeline sets the Timeline field's value. +func (s *ClusterStatus) SetTimeline(v *ClusterTimeline) *ClusterStatus { + s.Timeline = v + return s +} + +// The summary description of the cluster. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ClusterSummary +type ClusterSummary struct { + _ struct{} `type:"structure"` + + // The unique identifier for the cluster. + Id *string `type:"string"` + + // The name of the cluster. + Name *string `type:"string"` + + // An approximation of the cost of the cluster, represented in m1.small/hours. + // This value is incremented one time for every hour an m1.small instance runs. + // Larger instances are weighted more, so an EC2 instance that is roughly four + // times more expensive would result in the normalized instance hours being + // incremented by four. This result is only an approximation and does not reflect + // the actual billing rate. + NormalizedInstanceHours *int64 `type:"integer"` + + // The details about the current status of the cluster. + Status *ClusterStatus `type:"structure"` +} + +// String returns the string representation +func (s ClusterSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClusterSummary) GoString() string { + return s.String() +} + +// SetId sets the Id field's value. +func (s *ClusterSummary) SetId(v string) *ClusterSummary { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *ClusterSummary) SetName(v string) *ClusterSummary { + s.Name = &v + return s +} + +// SetNormalizedInstanceHours sets the NormalizedInstanceHours field's value. +func (s *ClusterSummary) SetNormalizedInstanceHours(v int64) *ClusterSummary { + s.NormalizedInstanceHours = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ClusterSummary) SetStatus(v *ClusterStatus) *ClusterSummary { + s.Status = v + return s +} + +// Represents the timeline of the cluster's lifecycle. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ClusterTimeline +type ClusterTimeline struct { + _ struct{} `type:"structure"` + + // The creation date and time of the cluster. + CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The date and time when the cluster was terminated. + EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The date and time when the cluster was ready to execute steps. + ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` +} + +// String returns the string representation +func (s ClusterTimeline) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClusterTimeline) GoString() string { + return s.String() +} + +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *ClusterTimeline) SetCreationDateTime(v time.Time) *ClusterTimeline { + s.CreationDateTime = &v + return s +} + +// SetEndDateTime sets the EndDateTime field's value. +func (s *ClusterTimeline) SetEndDateTime(v time.Time) *ClusterTimeline { + s.EndDateTime = &v + return s +} + +// SetReadyDateTime sets the ReadyDateTime field's value. +func (s *ClusterTimeline) SetReadyDateTime(v time.Time) *ClusterTimeline { + s.ReadyDateTime = &v + return s +} + +// An entity describing an executable that runs on a cluster. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/Command +type Command struct { + _ struct{} `type:"structure"` + + // Arguments for Amazon EMR to pass to the command for execution. + Args []*string `type:"list"` + + // The name of the command. + Name *string `type:"string"` + + // The Amazon S3 location of the command script. + ScriptPath *string `type:"string"` +} + +// String returns the string representation +func (s Command) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Command) GoString() string { + return s.String() +} + +// SetArgs sets the Args field's value. +func (s *Command) SetArgs(v []*string) *Command { + s.Args = v + return s +} + +// SetName sets the Name field's value. +func (s *Command) SetName(v string) *Command { + s.Name = &v + return s +} + +// SetScriptPath sets the ScriptPath field's value. +func (s *Command) SetScriptPath(v string) *Command { + s.ScriptPath = &v + return s +} + +// Amazon EMR releases 4.x or later. +// +// An optional configuration specification to be used when provisioning cluster +// instances, which can include configurations for applications and software +// bundled with Amazon EMR. A configuration consists of a classification, properties, +// and optional nested configurations. A classification refers to an application-specific +// configuration file. Properties are the settings you want to change in that +// file. For more information, see Configuring Applications (http://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-configure-apps.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/Configuration +type Configuration struct { + _ struct{} `type:"structure"` + + // The classification within a configuration. + Classification *string `type:"string"` + + // A list of additional configurations to apply within a configuration object. + Configurations []*Configuration `type:"list"` + + // A set of properties specified within a configuration classification. + Properties map[string]*string `type:"map"` +} + +// String returns the string representation +func (s Configuration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Configuration) GoString() string { + return s.String() +} + +// SetClassification sets the Classification field's value. +func (s *Configuration) SetClassification(v string) *Configuration { + s.Classification = &v + return s +} + +// SetConfigurations sets the Configurations field's value. +func (s *Configuration) SetConfigurations(v []*Configuration) *Configuration { + s.Configurations = v + return s +} + +// SetProperties sets the Properties field's value. +func (s *Configuration) SetProperties(v map[string]*string) *Configuration { + s.Properties = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CreateSecurityConfigurationInput +type CreateSecurityConfigurationInput struct { + _ struct{} `type:"structure"` + + // The name of the security configuration. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The security configuration details in JSON format. + // + // SecurityConfiguration is a required field + SecurityConfiguration *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateSecurityConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSecurityConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSecurityConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSecurityConfigurationInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.SecurityConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("SecurityConfiguration")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *CreateSecurityConfigurationInput) SetName(v string) *CreateSecurityConfigurationInput { + s.Name = &v + return s +} + +// SetSecurityConfiguration sets the SecurityConfiguration field's value. +func (s *CreateSecurityConfigurationInput) SetSecurityConfiguration(v string) *CreateSecurityConfigurationInput { + s.SecurityConfiguration = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CreateSecurityConfigurationOutput +type CreateSecurityConfigurationOutput struct { + _ struct{} `type:"structure"` + + // The date and time the security configuration was created. + // + // CreationDateTime is a required field + CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` + + // The name of the security configuration. + // + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// String returns the string representation func (s CreateSecurityConfigurationOutput) String() string { return awsutil.Prettify(s) } -// GoString returns the string representation -func (s CreateSecurityConfigurationOutput) GoString() string { - return s.String() +// GoString returns the string representation +func (s CreateSecurityConfigurationOutput) GoString() string { + return s.String() +} + +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *CreateSecurityConfigurationOutput) SetCreationDateTime(v time.Time) *CreateSecurityConfigurationOutput { + s.CreationDateTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateSecurityConfigurationOutput) SetName(v string) *CreateSecurityConfigurationOutput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DeleteSecurityConfigurationInput +type DeleteSecurityConfigurationInput struct { + _ struct{} `type:"structure"` + + // The name of the security configuration. + // + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteSecurityConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteSecurityConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteSecurityConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSecurityConfigurationInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *DeleteSecurityConfigurationInput) SetName(v string) *DeleteSecurityConfigurationInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DeleteSecurityConfigurationOutput +type DeleteSecurityConfigurationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteSecurityConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteSecurityConfigurationOutput) GoString() string { + return s.String() +} + +// This input determines which cluster to describe. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeClusterInput +type DescribeClusterInput struct { + _ struct{} `type:"structure"` + + // The identifier of the cluster to describe. + // + // ClusterId is a required field + ClusterId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeClusterInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeClusterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeClusterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeClusterInput"} + if s.ClusterId == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClusterId sets the ClusterId field's value. +func (s *DescribeClusterInput) SetClusterId(v string) *DescribeClusterInput { + s.ClusterId = &v + return s +} + +// This output contains the description of the cluster. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeClusterOutput +type DescribeClusterOutput struct { + _ struct{} `type:"structure"` + + // This output contains the details for the requested cluster. + Cluster *Cluster `type:"structure"` +} + +// String returns the string representation +func (s DescribeClusterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeClusterOutput) GoString() string { + return s.String() +} + +// SetCluster sets the Cluster field's value. +func (s *DescribeClusterOutput) SetCluster(v *Cluster) *DescribeClusterOutput { + s.Cluster = v + return s +} + +// The input for the DescribeJobFlows operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeJobFlowsInput +type DescribeJobFlowsInput struct { + _ struct{} `type:"structure"` + + // Return only job flows created after this date and time. + CreatedAfter *time.Time `type:"timestamp" timestampFormat:"unix"` + + // Return only job flows created before this date and time. + CreatedBefore *time.Time `type:"timestamp" timestampFormat:"unix"` + + // Return only job flows whose job flow ID is contained in this list. + JobFlowIds []*string `type:"list"` + + // Return only job flows whose state is contained in this list. + JobFlowStates []*string `type:"list"` +} + +// String returns the string representation +func (s DescribeJobFlowsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeJobFlowsInput) GoString() string { + return s.String() +} + +// SetCreatedAfter sets the CreatedAfter field's value. +func (s *DescribeJobFlowsInput) SetCreatedAfter(v time.Time) *DescribeJobFlowsInput { + s.CreatedAfter = &v + return s +} + +// SetCreatedBefore sets the CreatedBefore field's value. +func (s *DescribeJobFlowsInput) SetCreatedBefore(v time.Time) *DescribeJobFlowsInput { + s.CreatedBefore = &v + return s +} + +// SetJobFlowIds sets the JobFlowIds field's value. +func (s *DescribeJobFlowsInput) SetJobFlowIds(v []*string) *DescribeJobFlowsInput { + s.JobFlowIds = v + return s +} + +// SetJobFlowStates sets the JobFlowStates field's value. +func (s *DescribeJobFlowsInput) SetJobFlowStates(v []*string) *DescribeJobFlowsInput { + s.JobFlowStates = v + return s +} + +// The output for the DescribeJobFlows operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeJobFlowsOutput +type DescribeJobFlowsOutput struct { + _ struct{} `type:"structure"` + + // A list of job flows matching the parameters supplied. + JobFlows []*JobFlowDetail `type:"list"` +} + +// String returns the string representation +func (s DescribeJobFlowsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeJobFlowsOutput) GoString() string { + return s.String() +} + +// SetJobFlows sets the JobFlows field's value. +func (s *DescribeJobFlowsOutput) SetJobFlows(v []*JobFlowDetail) *DescribeJobFlowsOutput { + s.JobFlows = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeSecurityConfigurationInput +type DescribeSecurityConfigurationInput struct { + _ struct{} `type:"structure"` + + // The name of the security configuration. + // + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeSecurityConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeSecurityConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeSecurityConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeSecurityConfigurationInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *DescribeSecurityConfigurationInput) SetName(v string) *DescribeSecurityConfigurationInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeSecurityConfigurationOutput +type DescribeSecurityConfigurationOutput struct { + _ struct{} `type:"structure"` + + // The date and time the security configuration was created + CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The name of the security configuration. + Name *string `type:"string"` + + // The security configuration details in JSON format. + SecurityConfiguration *string `type:"string"` +} + +// String returns the string representation +func (s DescribeSecurityConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeSecurityConfigurationOutput) GoString() string { + return s.String() +} + +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *DescribeSecurityConfigurationOutput) SetCreationDateTime(v time.Time) *DescribeSecurityConfigurationOutput { + s.CreationDateTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *DescribeSecurityConfigurationOutput) SetName(v string) *DescribeSecurityConfigurationOutput { + s.Name = &v + return s +} + +// SetSecurityConfiguration sets the SecurityConfiguration field's value. +func (s *DescribeSecurityConfigurationOutput) SetSecurityConfiguration(v string) *DescribeSecurityConfigurationOutput { + s.SecurityConfiguration = &v + return s +} + +// This input determines which step to describe. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeStepInput +type DescribeStepInput struct { + _ struct{} `type:"structure"` + + // The identifier of the cluster with steps to describe. + // + // ClusterId is a required field + ClusterId *string `type:"string" required:"true"` + + // The identifier of the step to describe. + // + // StepId is a required field + StepId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeStepInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeStepInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeStepInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeStepInput"} + if s.ClusterId == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterId")) + } + if s.StepId == nil { + invalidParams.Add(request.NewErrParamRequired("StepId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClusterId sets the ClusterId field's value. +func (s *DescribeStepInput) SetClusterId(v string) *DescribeStepInput { + s.ClusterId = &v + return s +} + +// SetStepId sets the StepId field's value. +func (s *DescribeStepInput) SetStepId(v string) *DescribeStepInput { + s.StepId = &v + return s +} + +// This output contains the description of the cluster step. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeStepOutput +type DescribeStepOutput struct { + _ struct{} `type:"structure"` + + // The step details for the requested step identifier. + Step *Step `type:"structure"` +} + +// String returns the string representation +func (s DescribeStepOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeStepOutput) GoString() string { + return s.String() +} + +// SetStep sets the Step field's value. +func (s *DescribeStepOutput) SetStep(v *Step) *DescribeStepOutput { + s.Step = v + return s +} + +// Configuration of requested EBS block device associated with the instance +// group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/EbsBlockDevice +type EbsBlockDevice struct { + _ struct{} `type:"structure"` + + // The device name that is exposed to the instance, such as /dev/sdh. + Device *string `type:"string"` + + // EBS volume specifications such as volume type, IOPS, and size (GiB) that + // will be requested for the EBS volume attached to an EC2 instance in the cluster. + VolumeSpecification *VolumeSpecification `type:"structure"` +} + +// String returns the string representation +func (s EbsBlockDevice) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EbsBlockDevice) GoString() string { + return s.String() +} + +// SetDevice sets the Device field's value. +func (s *EbsBlockDevice) SetDevice(v string) *EbsBlockDevice { + s.Device = &v + return s +} + +// SetVolumeSpecification sets the VolumeSpecification field's value. +func (s *EbsBlockDevice) SetVolumeSpecification(v *VolumeSpecification) *EbsBlockDevice { + s.VolumeSpecification = v + return s +} + +// Configuration of requested EBS block device associated with the instance +// group with count of volumes that will be associated to every instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/EbsBlockDeviceConfig +type EbsBlockDeviceConfig struct { + _ struct{} `type:"structure"` + + // EBS volume specifications such as volume type, IOPS, and size (GiB) that + // will be requested for the EBS volume attached to an EC2 instance in the cluster. + // + // VolumeSpecification is a required field + VolumeSpecification *VolumeSpecification `type:"structure" required:"true"` + + // Number of EBS volumes with a specific volume configuration that will be associated + // with every instance in the instance group + VolumesPerInstance *int64 `type:"integer"` +} + +// String returns the string representation +func (s EbsBlockDeviceConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EbsBlockDeviceConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EbsBlockDeviceConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EbsBlockDeviceConfig"} + if s.VolumeSpecification == nil { + invalidParams.Add(request.NewErrParamRequired("VolumeSpecification")) + } + if s.VolumeSpecification != nil { + if err := s.VolumeSpecification.Validate(); err != nil { + invalidParams.AddNested("VolumeSpecification", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVolumeSpecification sets the VolumeSpecification field's value. +func (s *EbsBlockDeviceConfig) SetVolumeSpecification(v *VolumeSpecification) *EbsBlockDeviceConfig { + s.VolumeSpecification = v + return s +} + +// SetVolumesPerInstance sets the VolumesPerInstance field's value. +func (s *EbsBlockDeviceConfig) SetVolumesPerInstance(v int64) *EbsBlockDeviceConfig { + s.VolumesPerInstance = &v + return s +} + +// The Amazon EBS configuration of a cluster instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/EbsConfiguration +type EbsConfiguration struct { + _ struct{} `type:"structure"` + + // An array of Amazon EBS volume specifications attached to a cluster instance. + EbsBlockDeviceConfigs []*EbsBlockDeviceConfig `type:"list"` + + // Indicates whether an Amazon EBS volume is EBS-optimized. + EbsOptimized *bool `type:"boolean"` +} + +// String returns the string representation +func (s EbsConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EbsConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EbsConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EbsConfiguration"} + if s.EbsBlockDeviceConfigs != nil { + for i, v := range s.EbsBlockDeviceConfigs { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "EbsBlockDeviceConfigs", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEbsBlockDeviceConfigs sets the EbsBlockDeviceConfigs field's value. +func (s *EbsConfiguration) SetEbsBlockDeviceConfigs(v []*EbsBlockDeviceConfig) *EbsConfiguration { + s.EbsBlockDeviceConfigs = v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *EbsConfiguration) SetEbsOptimized(v bool) *EbsConfiguration { + s.EbsOptimized = &v + return s +} + +// EBS block device that's attached to an EC2 instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/EbsVolume +type EbsVolume struct { + _ struct{} `type:"structure"` + + // The device name that is exposed to the instance, such as /dev/sdh. + Device *string `type:"string"` + + // The volume identifier of the EBS volume. + VolumeId *string `type:"string"` +} + +// String returns the string representation +func (s EbsVolume) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EbsVolume) GoString() string { + return s.String() +} + +// SetDevice sets the Device field's value. +func (s *EbsVolume) SetDevice(v string) *EbsVolume { + s.Device = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *EbsVolume) SetVolumeId(v string) *EbsVolume { + s.VolumeId = &v + return s +} + +// Provides information about the EC2 instances in a cluster grouped by category. +// For example, key name, subnet ID, IAM instance profile, and so on. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/Ec2InstanceAttributes +type Ec2InstanceAttributes struct { + _ struct{} `type:"structure"` + + // A list of additional Amazon EC2 security group IDs for the master node. + AdditionalMasterSecurityGroups []*string `type:"list"` + + // A list of additional Amazon EC2 security group IDs for the slave nodes. + AdditionalSlaveSecurityGroups []*string `type:"list"` + + // The Availability Zone in which the cluster will run. + Ec2AvailabilityZone *string `type:"string"` + + // The name of the Amazon EC2 key pair to use when connecting with SSH into + // the master node as a user named "hadoop". + Ec2KeyName *string `type:"string"` + + // To launch the cluster in Amazon VPC, set this parameter to the identifier + // of the Amazon VPC subnet where you want the cluster to launch. If you do + // not specify this value, the cluster is launched in the normal AWS cloud, + // outside of a VPC. + // + // Amazon VPC currently does not support cluster compute quadruple extra large + // (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance + // type for nodes of a cluster launched in a VPC. + Ec2SubnetId *string `type:"string"` + + // The identifier of the Amazon EC2 security group for the master node. + EmrManagedMasterSecurityGroup *string `type:"string"` + + // The identifier of the Amazon EC2 security group for the slave nodes. + EmrManagedSlaveSecurityGroup *string `type:"string"` + + // The IAM role that was specified when the cluster was launched. The EC2 instances + // of the cluster assume this role. + IamInstanceProfile *string `type:"string"` + + // Applies to clusters configured with the The list of availability zones to + // choose from. The service will choose the availability zone with the best + // mix of available capacity and lowest cost to launch the cluster. If you do + // not specify this value, the cluster is launched in any availability zone + // that the customer account has access to. + RequestedEc2AvailabilityZones []*string `type:"list"` + + // Applies to clusters configured with the instance fleets option. Specifies + // the unique identifier of one or more Amazon EC2 subnets in which to launch + // EC2 cluster instances. Amazon EMR chooses the EC2 subnet with the best performance + // and cost characteristics from among the list of RequestedEc2SubnetIds and + // launches all cluster instances within that subnet. If this value is not specified, + // and the account supports EC2-Classic networks, the cluster launches instances + // in the EC2-Classic network and uses Requested + RequestedEc2SubnetIds []*string `type:"list"` + + // The identifier of the Amazon EC2 security group for the Amazon EMR service + // to access clusters in VPC private subnets. + ServiceAccessSecurityGroup *string `type:"string"` +} + +// String returns the string representation +func (s Ec2InstanceAttributes) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Ec2InstanceAttributes) GoString() string { + return s.String() +} + +// SetAdditionalMasterSecurityGroups sets the AdditionalMasterSecurityGroups field's value. +func (s *Ec2InstanceAttributes) SetAdditionalMasterSecurityGroups(v []*string) *Ec2InstanceAttributes { + s.AdditionalMasterSecurityGroups = v + return s +} + +// SetAdditionalSlaveSecurityGroups sets the AdditionalSlaveSecurityGroups field's value. +func (s *Ec2InstanceAttributes) SetAdditionalSlaveSecurityGroups(v []*string) *Ec2InstanceAttributes { + s.AdditionalSlaveSecurityGroups = v + return s +} + +// SetEc2AvailabilityZone sets the Ec2AvailabilityZone field's value. +func (s *Ec2InstanceAttributes) SetEc2AvailabilityZone(v string) *Ec2InstanceAttributes { + s.Ec2AvailabilityZone = &v + return s } -type DeleteSecurityConfigurationInput struct { - _ struct{} `type:"structure"` +// SetEc2KeyName sets the Ec2KeyName field's value. +func (s *Ec2InstanceAttributes) SetEc2KeyName(v string) *Ec2InstanceAttributes { + s.Ec2KeyName = &v + return s +} - // The name of the security configuration. - // - // Name is a required field - Name *string `type:"string" required:"true"` +// SetEc2SubnetId sets the Ec2SubnetId field's value. +func (s *Ec2InstanceAttributes) SetEc2SubnetId(v string) *Ec2InstanceAttributes { + s.Ec2SubnetId = &v + return s } -// String returns the string representation -func (s DeleteSecurityConfigurationInput) String() string { - return awsutil.Prettify(s) +// SetEmrManagedMasterSecurityGroup sets the EmrManagedMasterSecurityGroup field's value. +func (s *Ec2InstanceAttributes) SetEmrManagedMasterSecurityGroup(v string) *Ec2InstanceAttributes { + s.EmrManagedMasterSecurityGroup = &v + return s } -// GoString returns the string representation -func (s DeleteSecurityConfigurationInput) GoString() string { - return s.String() +// SetEmrManagedSlaveSecurityGroup sets the EmrManagedSlaveSecurityGroup field's value. +func (s *Ec2InstanceAttributes) SetEmrManagedSlaveSecurityGroup(v string) *Ec2InstanceAttributes { + s.EmrManagedSlaveSecurityGroup = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSecurityConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSecurityConfigurationInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } +// SetIamInstanceProfile sets the IamInstanceProfile field's value. +func (s *Ec2InstanceAttributes) SetIamInstanceProfile(v string) *Ec2InstanceAttributes { + s.IamInstanceProfile = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetRequestedEc2AvailabilityZones sets the RequestedEc2AvailabilityZones field's value. +func (s *Ec2InstanceAttributes) SetRequestedEc2AvailabilityZones(v []*string) *Ec2InstanceAttributes { + s.RequestedEc2AvailabilityZones = v + return s } -type DeleteSecurityConfigurationOutput struct { +// SetRequestedEc2SubnetIds sets the RequestedEc2SubnetIds field's value. +func (s *Ec2InstanceAttributes) SetRequestedEc2SubnetIds(v []*string) *Ec2InstanceAttributes { + s.RequestedEc2SubnetIds = v + return s +} + +// SetServiceAccessSecurityGroup sets the ServiceAccessSecurityGroup field's value. +func (s *Ec2InstanceAttributes) SetServiceAccessSecurityGroup(v string) *Ec2InstanceAttributes { + s.ServiceAccessSecurityGroup = &v + return s +} + +// The details of the step failure. The service attempts to detect the root +// cause for many common failures. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/FailureDetails +type FailureDetails struct { _ struct{} `type:"structure"` + + // The path to the log file where the step failure root cause was originally + // recorded. + LogFile *string `type:"string"` + + // The descriptive message including the error the EMR service has identified + // as the cause of step failure. This is text from an error log that describes + // the root cause of the failure. + Message *string `type:"string"` + + // The reason for the step failure. In the case where the service cannot successfully + // determine the root cause of the failure, it returns "Unknown Error" as a + // reason. + Reason *string `type:"string"` } // String returns the string representation -func (s DeleteSecurityConfigurationOutput) String() string { +func (s FailureDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteSecurityConfigurationOutput) GoString() string { +func (s FailureDetails) GoString() string { return s.String() } -// This input determines which cluster to describe. -type DescribeClusterInput struct { +// SetLogFile sets the LogFile field's value. +func (s *FailureDetails) SetLogFile(v string) *FailureDetails { + s.LogFile = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *FailureDetails) SetMessage(v string) *FailureDetails { + s.Message = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *FailureDetails) SetReason(v string) *FailureDetails { + s.Reason = &v + return s +} + +// A job flow step consisting of a JAR file whose main function will be executed. +// The main function submits a job for Hadoop to execute and waits for the job +// to finish or fail. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/HadoopJarStepConfig +type HadoopJarStepConfig struct { _ struct{} `type:"structure"` - // The identifier of the cluster to describe. + // A list of command line arguments passed to the JAR file's main function when + // executed. + Args []*string `type:"list"` + + // A path to a JAR file run during the step. // - // ClusterId is a required field - ClusterId *string `type:"string" required:"true"` + // Jar is a required field + Jar *string `type:"string" required:"true"` + + // The name of the main class in the specified Java file. If not specified, + // the JAR file should specify a Main-Class in its manifest file. + MainClass *string `type:"string"` + + // A list of Java properties that are set when the step runs. You can use these + // properties to pass key value pairs to your main function. + Properties []*KeyValue `type:"list"` } // String returns the string representation -func (s DescribeClusterInput) String() string { +func (s HadoopJarStepConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeClusterInput) GoString() string { +func (s HadoopJarStepConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeClusterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeClusterInput"} - if s.ClusterId == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterId")) +func (s *HadoopJarStepConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "HadoopJarStepConfig"} + if s.Jar == nil { + invalidParams.Add(request.NewErrParamRequired("Jar")) } if invalidParams.Len() > 0 { @@ -2381,281 +4474,454 @@ func (s *DescribeClusterInput) Validate() error { return nil } -// This output contains the description of the cluster. -type DescribeClusterOutput struct { - _ struct{} `type:"structure"` +// SetArgs sets the Args field's value. +func (s *HadoopJarStepConfig) SetArgs(v []*string) *HadoopJarStepConfig { + s.Args = v + return s +} - // This output contains the details for the requested cluster. - Cluster *Cluster `type:"structure"` +// SetJar sets the Jar field's value. +func (s *HadoopJarStepConfig) SetJar(v string) *HadoopJarStepConfig { + s.Jar = &v + return s } -// String returns the string representation -func (s DescribeClusterOutput) String() string { - return awsutil.Prettify(s) +// SetMainClass sets the MainClass field's value. +func (s *HadoopJarStepConfig) SetMainClass(v string) *HadoopJarStepConfig { + s.MainClass = &v + return s } -// GoString returns the string representation -func (s DescribeClusterOutput) GoString() string { - return s.String() +// SetProperties sets the Properties field's value. +func (s *HadoopJarStepConfig) SetProperties(v []*KeyValue) *HadoopJarStepConfig { + s.Properties = v + return s } -// The input for the DescribeJobFlows operation. -type DescribeJobFlowsInput struct { +// A cluster step consisting of a JAR file whose main function will be executed. +// The main function submits a job for Hadoop to execute and waits for the job +// to finish or fail. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/HadoopStepConfig +type HadoopStepConfig struct { _ struct{} `type:"structure"` - // Return only job flows created after this date and time. - CreatedAfter *time.Time `type:"timestamp" timestampFormat:"unix"` + // The list of command line arguments to pass to the JAR file's main function + // for execution. + Args []*string `type:"list"` - // Return only job flows created before this date and time. - CreatedBefore *time.Time `type:"timestamp" timestampFormat:"unix"` + // The path to the JAR file that runs during the step. + Jar *string `type:"string"` - // Return only job flows whose job flow ID is contained in this list. - JobFlowIds []*string `type:"list"` + // The name of the main class in the specified Java file. If not specified, + // the JAR file should specify a main class in its manifest file. + MainClass *string `type:"string"` - // Return only job flows whose state is contained in this list. - JobFlowStates []*string `type:"list"` + // The list of Java properties that are set when the step runs. You can use + // these properties to pass key value pairs to your main function. + Properties map[string]*string `type:"map"` } // String returns the string representation -func (s DescribeJobFlowsInput) String() string { +func (s HadoopStepConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeJobFlowsInput) GoString() string { +func (s HadoopStepConfig) GoString() string { return s.String() } -// The output for the DescribeJobFlows operation. -type DescribeJobFlowsOutput struct { - _ struct{} `type:"structure"` +// SetArgs sets the Args field's value. +func (s *HadoopStepConfig) SetArgs(v []*string) *HadoopStepConfig { + s.Args = v + return s +} - // A list of job flows matching the parameters supplied. - JobFlows []*JobFlowDetail `type:"list"` +// SetJar sets the Jar field's value. +func (s *HadoopStepConfig) SetJar(v string) *HadoopStepConfig { + s.Jar = &v + return s } -// String returns the string representation -func (s DescribeJobFlowsOutput) String() string { - return awsutil.Prettify(s) +// SetMainClass sets the MainClass field's value. +func (s *HadoopStepConfig) SetMainClass(v string) *HadoopStepConfig { + s.MainClass = &v + return s } -// GoString returns the string representation -func (s DescribeJobFlowsOutput) GoString() string { - return s.String() +// SetProperties sets the Properties field's value. +func (s *HadoopStepConfig) SetProperties(v map[string]*string) *HadoopStepConfig { + s.Properties = v + return s } -type DescribeSecurityConfigurationInput struct { +// Represents an EC2 instance provisioned as part of cluster. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/Instance +type Instance struct { _ struct{} `type:"structure"` - // The name of the security configuration. - // - // Name is a required field - Name *string `type:"string" required:"true"` + // The list of EBS volumes that are attached to this instance. + EbsVolumes []*EbsVolume `type:"list"` + + // The unique identifier of the instance in Amazon EC2. + Ec2InstanceId *string `type:"string"` + + // The unique identifier for the instance in Amazon EMR. + Id *string `type:"string"` + + // The unique identifier of the instance fleet to which an EC2 instance belongs. + InstanceFleetId *string `type:"string"` + + // The identifier of the instance group to which this instance belongs. + InstanceGroupId *string `type:"string"` + + // The EC2 instance type, for example m3.xlarge. + InstanceType *string `min:"1" type:"string"` + + // The instance purchasing option. Valid values are ON_DEMAND or SPOT. + Market *string `type:"string" enum:"MarketType"` + + // The private DNS name of the instance. + PrivateDnsName *string `type:"string"` + + // The private IP address of the instance. + PrivateIpAddress *string `type:"string"` + + // The public DNS name of the instance. + PublicDnsName *string `type:"string"` + + // The public IP address of the instance. + PublicIpAddress *string `type:"string"` + + // The current status of the instance. + Status *InstanceStatus `type:"structure"` } // String returns the string representation -func (s DescribeSecurityConfigurationInput) String() string { +func (s Instance) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeSecurityConfigurationInput) GoString() string { +func (s Instance) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeSecurityConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeSecurityConfigurationInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetEbsVolumes sets the EbsVolumes field's value. +func (s *Instance) SetEbsVolumes(v []*EbsVolume) *Instance { + s.EbsVolumes = v + return s } -type DescribeSecurityConfigurationOutput struct { - _ struct{} `type:"structure"` +// SetEc2InstanceId sets the Ec2InstanceId field's value. +func (s *Instance) SetEc2InstanceId(v string) *Instance { + s.Ec2InstanceId = &v + return s +} - // The date and time the security configuration was created - CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` +// SetId sets the Id field's value. +func (s *Instance) SetId(v string) *Instance { + s.Id = &v + return s +} - // The name of the security configuration. - Name *string `type:"string"` +// SetInstanceFleetId sets the InstanceFleetId field's value. +func (s *Instance) SetInstanceFleetId(v string) *Instance { + s.InstanceFleetId = &v + return s +} - // The security configuration details in JSON format. - SecurityConfiguration *string `type:"string"` +// SetInstanceGroupId sets the InstanceGroupId field's value. +func (s *Instance) SetInstanceGroupId(v string) *Instance { + s.InstanceGroupId = &v + return s } -// String returns the string representation -func (s DescribeSecurityConfigurationOutput) String() string { - return awsutil.Prettify(s) +// SetInstanceType sets the InstanceType field's value. +func (s *Instance) SetInstanceType(v string) *Instance { + s.InstanceType = &v + return s } -// GoString returns the string representation -func (s DescribeSecurityConfigurationOutput) GoString() string { - return s.String() +// SetMarket sets the Market field's value. +func (s *Instance) SetMarket(v string) *Instance { + s.Market = &v + return s } -// This input determines which step to describe. -type DescribeStepInput struct { - _ struct{} `type:"structure"` +// SetPrivateDnsName sets the PrivateDnsName field's value. +func (s *Instance) SetPrivateDnsName(v string) *Instance { + s.PrivateDnsName = &v + return s +} - // The identifier of the cluster with steps to describe. - // - // ClusterId is a required field - ClusterId *string `type:"string" required:"true"` +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *Instance) SetPrivateIpAddress(v string) *Instance { + s.PrivateIpAddress = &v + return s +} - // The identifier of the step to describe. - // - // StepId is a required field - StepId *string `type:"string" required:"true"` +// SetPublicDnsName sets the PublicDnsName field's value. +func (s *Instance) SetPublicDnsName(v string) *Instance { + s.PublicDnsName = &v + return s } -// String returns the string representation -func (s DescribeStepInput) String() string { - return awsutil.Prettify(s) +// SetPublicIpAddress sets the PublicIpAddress field's value. +func (s *Instance) SetPublicIpAddress(v string) *Instance { + s.PublicIpAddress = &v + return s } -// GoString returns the string representation -func (s DescribeStepInput) GoString() string { - return s.String() +// SetStatus sets the Status field's value. +func (s *Instance) SetStatus(v *InstanceStatus) *Instance { + s.Status = v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeStepInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeStepInput"} - if s.ClusterId == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterId")) - } - if s.StepId == nil { - invalidParams.Add(request.NewErrParamRequired("StepId")) - } +// Describes an instance fleet, which is a group of EC2 instances that host +// a particular node type (master, core, or task) in an Amazon EMR cluster. +// Instance fleets can consist of a mix of instance types and On-Demand and +// Spot instances, which are provisioned to meet a defined target capacity. +// +// The instance fleet configuration is available only in Amazon EMR versions +// 4.8.0 and later, excluding 5.0.x versions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceFleet +type InstanceFleet struct { + _ struct{} `type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} + // The unique identifier of the instance fleet. + Id *string `type:"string"` + + // The node type that the instance fleet hosts. Valid values are MASTER, CORE, + // or TASK. + InstanceFleetType *string `type:"string" enum:"InstanceFleetType"` -// This output contains the description of the cluster step. -type DescribeStepOutput struct { - _ struct{} `type:"structure"` + // The specification for the instance types that comprise an instance fleet. + // Up to five unique instance specifications may be defined for each instance + // fleet. + InstanceTypeSpecifications []*InstanceTypeSpecification `type:"list"` - // The step details for the requested step identifier. - Step *Step `type:"structure"` + // Describes the launch specification for an instance fleet. + LaunchSpecifications *InstanceFleetProvisioningSpecifications `type:"structure"` + + // A friendly name for the instance fleet. + Name *string `type:"string"` + + // The number of On-Demand units that have been provisioned for the instance + // fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might + // be less than or greater than TargetOnDemandCapacity. + ProvisionedOnDemandCapacity *int64 `type:"integer"` + + // The number of Spot units that have been provisioned for this instance fleet + // to fulfill TargetSpotCapacity. This provisioned capacity might be less than + // or greater than TargetSpotCapacity. + ProvisionedSpotCapacity *int64 `type:"integer"` + + // The current status of the instance fleet. + Status *InstanceFleetStatus `type:"structure"` + + // The target capacity of On-Demand units for the instance fleet, which determines + // how many On-Demand instances to provision. When the instance fleet launches, + // Amazon EMR tries to provision On-Demand instances as specified by InstanceTypeConfig. + // Each instance configuration has a specified WeightedCapacity. When an On-Demand + // instance is provisioned, the WeightedCapacity units count toward the target + // capacity. Amazon EMR provisions instances until the target capacity is totally + // fulfilled, even if this results in an overage. For example, if there are + // 2 units remaining to fulfill capacity, and Amazon EMR can only provision + // an instance with a WeightedCapacity of 5 units, the instance is provisioned, + // and the target capacity is exceeded by 3 units. You can use InstanceFleet$ProvisionedOnDemandCapacity + // to determine the Spot capacity units that have been provisioned for the instance + // fleet. + // + // If not specified or set to 0, only Spot instances are provisioned for the + // instance fleet using TargetSpotCapacity. At least one of TargetSpotCapacity + // and TargetOnDemandCapacity should be greater than 0. For a master instance + // fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, + // and its value must be 1. + TargetOnDemandCapacity *int64 `type:"integer"` + + // The target capacity of Spot units for the instance fleet, which determines + // how many Spot instances to provision. When the instance fleet launches, Amazon + // EMR tries to provision Spot instances as specified by InstanceTypeConfig. + // Each instance configuration has a specified WeightedCapacity. When a Spot + // instance is provisioned, the WeightedCapacity units count toward the target + // capacity. Amazon EMR provisions instances until the target capacity is totally + // fulfilled, even if this results in an overage. For example, if there are + // 2 units remaining to fulfill capacity, and Amazon EMR can only provision + // an instance with a WeightedCapacity of 5 units, the instance is provisioned, + // and the target capacity is exceeded by 3 units. You can use InstanceFleet$ProvisionedSpotCapacity + // to determine the Spot capacity units that have been provisioned for the instance + // fleet. + // + // If not specified or set to 0, only On-Demand instances are provisioned for + // the instance fleet. At least one of TargetSpotCapacity and TargetOnDemandCapacity + // should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity + // and TargetOnDemandCapacity can be specified, and its value must be 1. + TargetSpotCapacity *int64 `type:"integer"` } // String returns the string representation -func (s DescribeStepOutput) String() string { +func (s InstanceFleet) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeStepOutput) GoString() string { +func (s InstanceFleet) GoString() string { return s.String() } -// Configuration of requested EBS block device associated with the instance -// group. -type EbsBlockDevice struct { - _ struct{} `type:"structure"` - - // The device name that is exposed to the instance, such as /dev/sdh. - Device *string `type:"string"` - - // EBS volume specifications such as volume type, IOPS, and size(GiB) that will - // be requested for the EBS volume attached to an EC2 instance in the cluster. - VolumeSpecification *VolumeSpecification `type:"structure"` +// SetId sets the Id field's value. +func (s *InstanceFleet) SetId(v string) *InstanceFleet { + s.Id = &v + return s } -// String returns the string representation -func (s EbsBlockDevice) String() string { - return awsutil.Prettify(s) +// SetInstanceFleetType sets the InstanceFleetType field's value. +func (s *InstanceFleet) SetInstanceFleetType(v string) *InstanceFleet { + s.InstanceFleetType = &v + return s } -// GoString returns the string representation -func (s EbsBlockDevice) GoString() string { - return s.String() +// SetInstanceTypeSpecifications sets the InstanceTypeSpecifications field's value. +func (s *InstanceFleet) SetInstanceTypeSpecifications(v []*InstanceTypeSpecification) *InstanceFleet { + s.InstanceTypeSpecifications = v + return s } -// Configuration of requested EBS block device associated with the instance -// group with count of volumes that will be associated to every instance. -type EbsBlockDeviceConfig struct { - _ struct{} `type:"structure"` +// SetLaunchSpecifications sets the LaunchSpecifications field's value. +func (s *InstanceFleet) SetLaunchSpecifications(v *InstanceFleetProvisioningSpecifications) *InstanceFleet { + s.LaunchSpecifications = v + return s +} - // EBS volume specifications such as volume type, IOPS, and size(GiB) that will - // be requested for the EBS volume attached to an EC2 instance in the cluster. - // - // VolumeSpecification is a required field - VolumeSpecification *VolumeSpecification `type:"structure" required:"true"` +// SetName sets the Name field's value. +func (s *InstanceFleet) SetName(v string) *InstanceFleet { + s.Name = &v + return s +} - // Number of EBS volumes with specific volume configuration, that will be associated - // with every instance in the instance group - VolumesPerInstance *int64 `type:"integer"` +// SetProvisionedOnDemandCapacity sets the ProvisionedOnDemandCapacity field's value. +func (s *InstanceFleet) SetProvisionedOnDemandCapacity(v int64) *InstanceFleet { + s.ProvisionedOnDemandCapacity = &v + return s } -// String returns the string representation -func (s EbsBlockDeviceConfig) String() string { - return awsutil.Prettify(s) +// SetProvisionedSpotCapacity sets the ProvisionedSpotCapacity field's value. +func (s *InstanceFleet) SetProvisionedSpotCapacity(v int64) *InstanceFleet { + s.ProvisionedSpotCapacity = &v + return s } -// GoString returns the string representation -func (s EbsBlockDeviceConfig) GoString() string { - return s.String() +// SetStatus sets the Status field's value. +func (s *InstanceFleet) SetStatus(v *InstanceFleetStatus) *InstanceFleet { + s.Status = v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EbsBlockDeviceConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EbsBlockDeviceConfig"} - if s.VolumeSpecification == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeSpecification")) - } - if s.VolumeSpecification != nil { - if err := s.VolumeSpecification.Validate(); err != nil { - invalidParams.AddNested("VolumeSpecification", err.(request.ErrInvalidParams)) - } - } +// SetTargetOnDemandCapacity sets the TargetOnDemandCapacity field's value. +func (s *InstanceFleet) SetTargetOnDemandCapacity(v int64) *InstanceFleet { + s.TargetOnDemandCapacity = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetTargetSpotCapacity sets the TargetSpotCapacity field's value. +func (s *InstanceFleet) SetTargetSpotCapacity(v int64) *InstanceFleet { + s.TargetSpotCapacity = &v + return s } -type EbsConfiguration struct { +// The configuration that defines an instance fleet. +// +// The instance fleet configuration is available only in Amazon EMR versions +// 4.8.0 and later, excluding 5.0.x versions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceFleetConfig +type InstanceFleetConfig struct { _ struct{} `type:"structure"` - EbsBlockDeviceConfigs []*EbsBlockDeviceConfig `type:"list"` + // The node type that the instance fleet hosts. Valid values are MASTER,CORE,and + // TASK. + // + // InstanceFleetType is a required field + InstanceFleetType *string `type:"string" required:"true" enum:"InstanceFleetType"` - EbsOptimized *bool `type:"boolean"` + // The instance type configurations that define the EC2 instances in the instance + // fleet. + InstanceTypeConfigs []*InstanceTypeConfig `type:"list"` + + // The launch specification for the instance fleet. + LaunchSpecifications *InstanceFleetProvisioningSpecifications `type:"structure"` + + // The friendly name of the instance fleet. + Name *string `type:"string"` + + // The target capacity of On-Demand units for the instance fleet, which determines + // how many On-Demand instances to provision. When the instance fleet launches, + // Amazon EMR tries to provision On-Demand instances as specified by InstanceTypeConfig. + // Each instance configuration has a specified WeightedCapacity. When an On-Demand + // instance is provisioned, the WeightedCapacity units count toward the target + // capacity. Amazon EMR provisions instances until the target capacity is totally + // fulfilled, even if this results in an overage. For example, if there are + // 2 units remaining to fulfill capacity, and Amazon EMR can only provision + // an instance with a WeightedCapacity of 5 units, the instance is provisioned, + // and the target capacity is exceeded by 3 units. + // + // If not specified or set to 0, only Spot instances are provisioned for the + // instance fleet using TargetSpotCapacity. At least one of TargetSpotCapacity + // and TargetOnDemandCapacity should be greater than 0. For a master instance + // fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, + // and its value must be 1. + TargetOnDemandCapacity *int64 `type:"integer"` + + // The target capacity of Spot units for the instance fleet, which determines + // how many Spot instances to provision. When the instance fleet launches, Amazon + // EMR tries to provision Spot instances as specified by InstanceTypeConfig. + // Each instance configuration has a specified WeightedCapacity. When a Spot + // instance is provisioned, the WeightedCapacity units count toward the target + // capacity. Amazon EMR provisions instances until the target capacity is totally + // fulfilled, even if this results in an overage. For example, if there are + // 2 units remaining to fulfill capacity, and Amazon EMR can only provision + // an instance with a WeightedCapacity of 5 units, the instance is provisioned, + // and the target capacity is exceeded by 3 units. + // + // If not specified or set to 0, only On-Demand instances are provisioned for + // the instance fleet. At least one of TargetSpotCapacity and TargetOnDemandCapacity + // should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity + // and TargetOnDemandCapacity can be specified, and its value must be 1. + TargetSpotCapacity *int64 `type:"integer"` } // String returns the string representation -func (s EbsConfiguration) String() string { +func (s InstanceFleetConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s EbsConfiguration) GoString() string { +func (s InstanceFleetConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *EbsConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EbsConfiguration"} - if s.EbsBlockDeviceConfigs != nil { - for i, v := range s.EbsBlockDeviceConfigs { +func (s *InstanceFleetConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InstanceFleetConfig"} + if s.InstanceFleetType == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceFleetType")) + } + if s.InstanceTypeConfigs != nil { + for i, v := range s.InstanceTypeConfigs { if v == nil { continue } if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "EbsBlockDeviceConfigs", i), err.(request.ErrInvalidParams)) + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InstanceTypeConfigs", i), err.(request.ErrInvalidParams)) } } } + if s.LaunchSpecifications != nil { + if err := s.LaunchSpecifications.Validate(); err != nil { + invalidParams.AddNested("LaunchSpecifications", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -2663,149 +4929,141 @@ func (s *EbsConfiguration) Validate() error { return nil } -// EBS block device that's attached to an EC2 instance. -type EbsVolume struct { - _ struct{} `type:"structure"` - - // The device name that is exposed to the instance, such as /dev/sdh. - Device *string `type:"string"` - - // The volume identifier of the EBS volume. - VolumeId *string `type:"string"` +// SetInstanceFleetType sets the InstanceFleetType field's value. +func (s *InstanceFleetConfig) SetInstanceFleetType(v string) *InstanceFleetConfig { + s.InstanceFleetType = &v + return s } -// String returns the string representation -func (s EbsVolume) String() string { - return awsutil.Prettify(s) +// SetInstanceTypeConfigs sets the InstanceTypeConfigs field's value. +func (s *InstanceFleetConfig) SetInstanceTypeConfigs(v []*InstanceTypeConfig) *InstanceFleetConfig { + s.InstanceTypeConfigs = v + return s } -// GoString returns the string representation -func (s EbsVolume) GoString() string { - return s.String() +// SetLaunchSpecifications sets the LaunchSpecifications field's value. +func (s *InstanceFleetConfig) SetLaunchSpecifications(v *InstanceFleetProvisioningSpecifications) *InstanceFleetConfig { + s.LaunchSpecifications = v + return s } -// Provides information about the EC2 instances in a cluster grouped by category. -// For example, key name, subnet ID, IAM instance profile, and so on. -type Ec2InstanceAttributes struct { - _ struct{} `type:"structure"` - - // A list of additional Amazon EC2 security group IDs for the master node. - AdditionalMasterSecurityGroups []*string `type:"list"` +// SetName sets the Name field's value. +func (s *InstanceFleetConfig) SetName(v string) *InstanceFleetConfig { + s.Name = &v + return s +} - // A list of additional Amazon EC2 security group IDs for the slave nodes. - AdditionalSlaveSecurityGroups []*string `type:"list"` +// SetTargetOnDemandCapacity sets the TargetOnDemandCapacity field's value. +func (s *InstanceFleetConfig) SetTargetOnDemandCapacity(v int64) *InstanceFleetConfig { + s.TargetOnDemandCapacity = &v + return s +} - // The Availability Zone in which the cluster will run. - Ec2AvailabilityZone *string `type:"string"` +// SetTargetSpotCapacity sets the TargetSpotCapacity field's value. +func (s *InstanceFleetConfig) SetTargetSpotCapacity(v int64) *InstanceFleetConfig { + s.TargetSpotCapacity = &v + return s +} - // The name of the Amazon EC2 key pair to use when connecting with SSH into - // the master node as a user named "hadoop". - Ec2KeyName *string `type:"string"` +// Configuration parameters for an instance fleet modification request. +// +// The instance fleet configuration is available only in Amazon EMR versions +// 4.8.0 and later, excluding 5.0.x versions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceFleetModifyConfig +type InstanceFleetModifyConfig struct { + _ struct{} `type:"structure"` - // To launch the job flow in Amazon VPC, set this parameter to the identifier - // of the Amazon VPC subnet where you want the job flow to launch. If you do - // not specify this value, the job flow is launched in the normal AWS cloud, - // outside of a VPC. + // A unique identifier for the instance fleet. // - // Amazon VPC currently does not support cluster compute quadruple extra large - // (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance - // type for nodes of a job flow launched in a VPC. - Ec2SubnetId *string `type:"string"` - - // The identifier of the Amazon EC2 security group for the master node. - EmrManagedMasterSecurityGroup *string `type:"string"` - - // The identifier of the Amazon EC2 security group for the slave nodes. - EmrManagedSlaveSecurityGroup *string `type:"string"` + // InstanceFleetId is a required field + InstanceFleetId *string `type:"string" required:"true"` - // The IAM role that was specified when the job flow was launched. The EC2 instances - // of the job flow assume this role. - IamInstanceProfile *string `type:"string"` + // The target capacity of On-Demand units for the instance fleet. For more information + // see InstanceFleetConfig$TargetOnDemandCapacity. + TargetOnDemandCapacity *int64 `type:"integer"` - // The identifier of the Amazon EC2 security group for the Amazon EMR service - // to access clusters in VPC private subnets. - ServiceAccessSecurityGroup *string `type:"string"` + // The target capacity of Spot units for the instance fleet. For more information, + // see InstanceFleetConfig$TargetSpotCapacity. + TargetSpotCapacity *int64 `type:"integer"` } // String returns the string representation -func (s Ec2InstanceAttributes) String() string { +func (s InstanceFleetModifyConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Ec2InstanceAttributes) GoString() string { +func (s InstanceFleetModifyConfig) GoString() string { return s.String() } -// The details of the step failure. The service attempts to detect the root -// cause for many common failures. -type FailureDetails struct { - _ struct{} `type:"structure"` - - // The path to the log file where the step failure root cause was originally - // recorded. - LogFile *string `type:"string"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *InstanceFleetModifyConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InstanceFleetModifyConfig"} + if s.InstanceFleetId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceFleetId")) + } - // The descriptive message including the error the EMR service has identified - // as the cause of step failure. This is text from an error log that describes - // the root cause of the failure. - Message *string `type:"string"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The reason for the step failure. In the case where the service cannot successfully - // determine the root cause of the failure, it returns "Unknown Error" as a - // reason. - Reason *string `type:"string"` +// SetInstanceFleetId sets the InstanceFleetId field's value. +func (s *InstanceFleetModifyConfig) SetInstanceFleetId(v string) *InstanceFleetModifyConfig { + s.InstanceFleetId = &v + return s } -// String returns the string representation -func (s FailureDetails) String() string { - return awsutil.Prettify(s) +// SetTargetOnDemandCapacity sets the TargetOnDemandCapacity field's value. +func (s *InstanceFleetModifyConfig) SetTargetOnDemandCapacity(v int64) *InstanceFleetModifyConfig { + s.TargetOnDemandCapacity = &v + return s } -// GoString returns the string representation -func (s FailureDetails) GoString() string { - return s.String() +// SetTargetSpotCapacity sets the TargetSpotCapacity field's value. +func (s *InstanceFleetModifyConfig) SetTargetSpotCapacity(v int64) *InstanceFleetModifyConfig { + s.TargetSpotCapacity = &v + return s } -// A job flow step consisting of a JAR file whose main function will be executed. -// The main function submits a job for Hadoop to execute and waits for the job -// to finish or fail. -type HadoopJarStepConfig struct { +// The launch specification for Spot instances in the fleet, which determines +// the defined duration and provisioning timeout behavior. +// +// The instance fleet configuration is available only in Amazon EMR versions +// 4.8.0 and later, excluding 5.0.x versions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceFleetProvisioningSpecifications +type InstanceFleetProvisioningSpecifications struct { _ struct{} `type:"structure"` - // A list of command line arguments passed to the JAR file's main function when - // executed. - Args []*string `type:"list"` - - // A path to a JAR file run during the step. + // The launch specification for Spot instances in the fleet, which determines + // the defined duration and provisioning timeout behavior. // - // Jar is a required field - Jar *string `type:"string" required:"true"` - - // The name of the main class in the specified Java file. If not specified, - // the JAR file should specify a Main-Class in its manifest file. - MainClass *string `type:"string"` - - // A list of Java properties that are set when the step runs. You can use these - // properties to pass key value pairs to your main function. - Properties []*KeyValue `type:"list"` + // SpotSpecification is a required field + SpotSpecification *SpotProvisioningSpecification `type:"structure" required:"true"` } // String returns the string representation -func (s HadoopJarStepConfig) String() string { +func (s InstanceFleetProvisioningSpecifications) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HadoopJarStepConfig) GoString() string { +func (s InstanceFleetProvisioningSpecifications) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *HadoopJarStepConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "HadoopJarStepConfig"} - if s.Jar == nil { - invalidParams.Add(request.NewErrParamRequired("Jar")) +func (s *InstanceFleetProvisioningSpecifications) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InstanceFleetProvisioningSpecifications"} + if s.SpotSpecification == nil { + invalidParams.Add(request.NewErrParamRequired("SpotSpecification")) + } + if s.SpotSpecification != nil { + if err := s.SpotSpecification.Validate(); err != nil { + invalidParams.AddNested("SpotSpecification", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -2814,94 +5072,164 @@ func (s *HadoopJarStepConfig) Validate() error { return nil } -// A cluster step consisting of a JAR file whose main function will be executed. -// The main function submits a job for Hadoop to execute and waits for the job -// to finish or fail. -type HadoopStepConfig struct { - _ struct{} `type:"structure"` - - // The list of command line arguments to pass to the JAR file's main function - // for execution. - Args []*string `type:"list"` +// SetSpotSpecification sets the SpotSpecification field's value. +func (s *InstanceFleetProvisioningSpecifications) SetSpotSpecification(v *SpotProvisioningSpecification) *InstanceFleetProvisioningSpecifications { + s.SpotSpecification = v + return s +} - // The path to the JAR file that runs during the step. - Jar *string `type:"string"` +// Provides status change reason details for the instance fleet. +// +// The instance fleet configuration is available only in Amazon EMR versions +// 4.8.0 and later, excluding 5.0.x versions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceFleetStateChangeReason +type InstanceFleetStateChangeReason struct { + _ struct{} `type:"structure"` - // The name of the main class in the specified Java file. If not specified, - // the JAR file should specify a main class in its manifest file. - MainClass *string `type:"string"` + // A code corresponding to the reason the state change occurred. + Code *string `type:"string" enum:"InstanceFleetStateChangeReasonCode"` - // The list of Java properties that are set when the step runs. You can use - // these properties to pass key value pairs to your main function. - Properties map[string]*string `type:"map"` + // An explanatory message. + Message *string `type:"string"` } // String returns the string representation -func (s HadoopStepConfig) String() string { +func (s InstanceFleetStateChangeReason) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HadoopStepConfig) GoString() string { +func (s InstanceFleetStateChangeReason) GoString() string { return s.String() } -// Represents an EC2 instance provisioned as part of cluster. -type Instance struct { +// SetCode sets the Code field's value. +func (s *InstanceFleetStateChangeReason) SetCode(v string) *InstanceFleetStateChangeReason { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *InstanceFleetStateChangeReason) SetMessage(v string) *InstanceFleetStateChangeReason { + s.Message = &v + return s +} + +// The status of the instance fleet. +// +// The instance fleet configuration is available only in Amazon EMR versions +// 4.8.0 and later, excluding 5.0.x versions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceFleetStatus +type InstanceFleetStatus struct { _ struct{} `type:"structure"` - // The list of EBS volumes that are attached to this instance. - EbsVolumes []*EbsVolume `type:"list"` + // A code representing the instance fleet status. + State *string `type:"string" enum:"InstanceFleetState"` - // The unique identifier of the instance in Amazon EC2. - Ec2InstanceId *string `type:"string"` + // Provides status change reason details for the instance fleet. + StateChangeReason *InstanceFleetStateChangeReason `type:"structure"` - // The unique identifier for the instance in Amazon EMR. - Id *string `type:"string"` + // Provides historical timestamps for the instance fleet, including the time + // of creation, the time it became ready to run jobs, and the time of termination. + Timeline *InstanceFleetTimeline `type:"structure"` +} - // The identifier of the instance group to which this instance belongs. - InstanceGroupId *string `type:"string"` +// String returns the string representation +func (s InstanceFleetStatus) String() string { + return awsutil.Prettify(s) +} - // The private DNS name of the instance. - PrivateDnsName *string `type:"string"` +// GoString returns the string representation +func (s InstanceFleetStatus) GoString() string { + return s.String() +} - // The private IP address of the instance. - PrivateIpAddress *string `type:"string"` +// SetState sets the State field's value. +func (s *InstanceFleetStatus) SetState(v string) *InstanceFleetStatus { + s.State = &v + return s +} - // The public DNS name of the instance. - PublicDnsName *string `type:"string"` +// SetStateChangeReason sets the StateChangeReason field's value. +func (s *InstanceFleetStatus) SetStateChangeReason(v *InstanceFleetStateChangeReason) *InstanceFleetStatus { + s.StateChangeReason = v + return s +} - // The public IP address of the instance. - PublicIpAddress *string `type:"string"` +// SetTimeline sets the Timeline field's value. +func (s *InstanceFleetStatus) SetTimeline(v *InstanceFleetTimeline) *InstanceFleetStatus { + s.Timeline = v + return s +} - // The current status of the instance. - Status *InstanceStatus `type:"structure"` +// Provides historical timestamps for the instance fleet, including the time +// of creation, the time it became ready to run jobs, and the time of termination. +// +// The instance fleet configuration is available only in Amazon EMR versions +// 4.8.0 and later, excluding 5.0.x versions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceFleetTimeline +type InstanceFleetTimeline struct { + _ struct{} `type:"structure"` + + // The time and date the instance fleet was created. + CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The time and date the instance fleet terminated. + EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The time and date the instance fleet was ready to run jobs. + ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` } // String returns the string representation -func (s Instance) String() string { +func (s InstanceFleetTimeline) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Instance) GoString() string { +func (s InstanceFleetTimeline) GoString() string { return s.String() } +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *InstanceFleetTimeline) SetCreationDateTime(v time.Time) *InstanceFleetTimeline { + s.CreationDateTime = &v + return s +} + +// SetEndDateTime sets the EndDateTime field's value. +func (s *InstanceFleetTimeline) SetEndDateTime(v time.Time) *InstanceFleetTimeline { + s.EndDateTime = &v + return s +} + +// SetReadyDateTime sets the ReadyDateTime field's value. +func (s *InstanceFleetTimeline) SetReadyDateTime(v time.Time) *InstanceFleetTimeline { + s.ReadyDateTime = &v + return s +} + // This entity represents an instance group, which is a group of instances that // have common purpose. For example, CORE instance group is used for HDFS. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceGroup type InstanceGroup struct { _ struct{} `type:"structure"` + // An automatic scaling policy for a core instance group or task instance group + // in an Amazon EMR cluster. The automatic scaling policy defines how an instance + // group dynamically adds and terminates EC2 instances in response to the value + // of a CloudWatch metric. See PutAutoScalingPolicy. + AutoScalingPolicy *AutoScalingPolicyDescription `type:"structure"` + // The bid price for each EC2 instance in the instance group when launching // nodes as Spot Instances, expressed in USD. BidPrice *string `type:"string"` // Amazon EMR releases 4.x or later. // - // The list of configurations supplied for an EMR cluster instance group. - // You can specify a separate configuration for each instance group (master, - // core, and task). + // The list of configurations supplied for an EMR cluster instance group. You + // can specify a separate configuration for each instance group (master, core, + // and task). Configurations []*Configuration `type:"list"` // The EBS block devices that are mapped to this instance group. @@ -2951,23 +5279,114 @@ func (s InstanceGroup) GoString() string { return s.String() } +// SetAutoScalingPolicy sets the AutoScalingPolicy field's value. +func (s *InstanceGroup) SetAutoScalingPolicy(v *AutoScalingPolicyDescription) *InstanceGroup { + s.AutoScalingPolicy = v + return s +} + +// SetBidPrice sets the BidPrice field's value. +func (s *InstanceGroup) SetBidPrice(v string) *InstanceGroup { + s.BidPrice = &v + return s +} + +// SetConfigurations sets the Configurations field's value. +func (s *InstanceGroup) SetConfigurations(v []*Configuration) *InstanceGroup { + s.Configurations = v + return s +} + +// SetEbsBlockDevices sets the EbsBlockDevices field's value. +func (s *InstanceGroup) SetEbsBlockDevices(v []*EbsBlockDevice) *InstanceGroup { + s.EbsBlockDevices = v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *InstanceGroup) SetEbsOptimized(v bool) *InstanceGroup { + s.EbsOptimized = &v + return s +} + +// SetId sets the Id field's value. +func (s *InstanceGroup) SetId(v string) *InstanceGroup { + s.Id = &v + return s +} + +// SetInstanceGroupType sets the InstanceGroupType field's value. +func (s *InstanceGroup) SetInstanceGroupType(v string) *InstanceGroup { + s.InstanceGroupType = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *InstanceGroup) SetInstanceType(v string) *InstanceGroup { + s.InstanceType = &v + return s +} + +// SetMarket sets the Market field's value. +func (s *InstanceGroup) SetMarket(v string) *InstanceGroup { + s.Market = &v + return s +} + +// SetName sets the Name field's value. +func (s *InstanceGroup) SetName(v string) *InstanceGroup { + s.Name = &v + return s +} + +// SetRequestedInstanceCount sets the RequestedInstanceCount field's value. +func (s *InstanceGroup) SetRequestedInstanceCount(v int64) *InstanceGroup { + s.RequestedInstanceCount = &v + return s +} + +// SetRunningInstanceCount sets the RunningInstanceCount field's value. +func (s *InstanceGroup) SetRunningInstanceCount(v int64) *InstanceGroup { + s.RunningInstanceCount = &v + return s +} + +// SetShrinkPolicy sets the ShrinkPolicy field's value. +func (s *InstanceGroup) SetShrinkPolicy(v *ShrinkPolicy) *InstanceGroup { + s.ShrinkPolicy = v + return s +} + +// SetStatus sets the Status field's value. +func (s *InstanceGroup) SetStatus(v *InstanceGroupStatus) *InstanceGroup { + s.Status = v + return s +} + // Configuration defining a new instance group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceGroupConfig type InstanceGroupConfig struct { _ struct{} `type:"structure"` - // Bid price for each Amazon EC2 instance in the instance group when launching - // nodes as Spot Instances, expressed in USD. + // An automatic scaling policy for a core instance group or task instance group + // in an Amazon EMR cluster. The automatic scaling policy defines how an instance + // group dynamically adds and terminates EC2 instances in response to the value + // of a CloudWatch metric. See PutAutoScalingPolicy. + AutoScalingPolicy *AutoScalingPolicy `type:"structure"` + + // Bid price for each EC2 instance in the instance group when launching nodes + // as Spot Instances, expressed in USD. BidPrice *string `type:"string"` // Amazon EMR releases 4.x or later. // - // The list of configurations supplied for an EMR cluster instance group. - // You can specify a separate configuration for each instance group (master, - // core, and task). + // The list of configurations supplied for an EMR cluster instance group. You + // can specify a separate configuration for each instance group (master, core, + // and task). Configurations []*Configuration `type:"list"` - // EBS configurations that will be attached to each Amazon EC2 instance in the - // instance group. + // EBS configurations that will be attached to each EC2 instance in the instance + // group. EbsConfiguration *EbsConfiguration `type:"structure"` // Target number of instances for the instance group. @@ -2980,12 +5399,12 @@ type InstanceGroupConfig struct { // InstanceRole is a required field InstanceRole *string `type:"string" required:"true" enum:"InstanceRoleType"` - // The Amazon EC2 instance type for all instances in the instance group. + // The EC2 instance type for all instances in the instance group. // // InstanceType is a required field InstanceType *string `min:"1" type:"string" required:"true"` - // Market type of the Amazon EC2 instances used to create a cluster node. + // Market type of the EC2 instances used to create a cluster node. Market *string `type:"string" enum:"MarketType"` // Friendly name given to the instance group. @@ -3017,6 +5436,11 @@ func (s *InstanceGroupConfig) Validate() error { if s.InstanceType != nil && len(*s.InstanceType) < 1 { invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1)) } + if s.AutoScalingPolicy != nil { + if err := s.AutoScalingPolicy.Validate(); err != nil { + invalidParams.AddNested("AutoScalingPolicy", err.(request.ErrInvalidParams)) + } + } if s.EbsConfiguration != nil { if err := s.EbsConfiguration.Validate(); err != nil { invalidParams.AddNested("EbsConfiguration", err.(request.ErrInvalidParams)) @@ -3029,7 +5453,62 @@ func (s *InstanceGroupConfig) Validate() error { return nil } +// SetAutoScalingPolicy sets the AutoScalingPolicy field's value. +func (s *InstanceGroupConfig) SetAutoScalingPolicy(v *AutoScalingPolicy) *InstanceGroupConfig { + s.AutoScalingPolicy = v + return s +} + +// SetBidPrice sets the BidPrice field's value. +func (s *InstanceGroupConfig) SetBidPrice(v string) *InstanceGroupConfig { + s.BidPrice = &v + return s +} + +// SetConfigurations sets the Configurations field's value. +func (s *InstanceGroupConfig) SetConfigurations(v []*Configuration) *InstanceGroupConfig { + s.Configurations = v + return s +} + +// SetEbsConfiguration sets the EbsConfiguration field's value. +func (s *InstanceGroupConfig) SetEbsConfiguration(v *EbsConfiguration) *InstanceGroupConfig { + s.EbsConfiguration = v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *InstanceGroupConfig) SetInstanceCount(v int64) *InstanceGroupConfig { + s.InstanceCount = &v + return s +} + +// SetInstanceRole sets the InstanceRole field's value. +func (s *InstanceGroupConfig) SetInstanceRole(v string) *InstanceGroupConfig { + s.InstanceRole = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *InstanceGroupConfig) SetInstanceType(v string) *InstanceGroupConfig { + s.InstanceType = &v + return s +} + +// SetMarket sets the Market field's value. +func (s *InstanceGroupConfig) SetMarket(v string) *InstanceGroupConfig { + s.Market = &v + return s +} + +// SetName sets the Name field's value. +func (s *InstanceGroupConfig) SetName(v string) *InstanceGroupConfig { + s.Name = &v + return s +} + // Detailed information about an instance group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceGroupDetail type InstanceGroupDetail struct { _ struct{} `type:"structure"` @@ -3063,7 +5542,7 @@ type InstanceGroupDetail struct { // InstanceRunningCount is a required field InstanceRunningCount *int64 `type:"integer" required:"true"` - // Amazon EC2 Instance type. + // EC2 instance type. // // InstanceType is a required field InstanceType *string `min:"1" type:"string" required:"true"` @@ -3071,7 +5550,7 @@ type InstanceGroupDetail struct { // Details regarding the state of the instance group. LastStateChangeReason *string `type:"string"` - // Market type of the Amazon EC2 instances used to create a cluster node. + // Market type of the EC2 instances used to create a cluster node. // // Market is a required field Market *string `type:"string" required:"true" enum:"MarketType"` @@ -3102,12 +5581,97 @@ func (s InstanceGroupDetail) GoString() string { return s.String() } +// SetBidPrice sets the BidPrice field's value. +func (s *InstanceGroupDetail) SetBidPrice(v string) *InstanceGroupDetail { + s.BidPrice = &v + return s +} + +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *InstanceGroupDetail) SetCreationDateTime(v time.Time) *InstanceGroupDetail { + s.CreationDateTime = &v + return s +} + +// SetEndDateTime sets the EndDateTime field's value. +func (s *InstanceGroupDetail) SetEndDateTime(v time.Time) *InstanceGroupDetail { + s.EndDateTime = &v + return s +} + +// SetInstanceGroupId sets the InstanceGroupId field's value. +func (s *InstanceGroupDetail) SetInstanceGroupId(v string) *InstanceGroupDetail { + s.InstanceGroupId = &v + return s +} + +// SetInstanceRequestCount sets the InstanceRequestCount field's value. +func (s *InstanceGroupDetail) SetInstanceRequestCount(v int64) *InstanceGroupDetail { + s.InstanceRequestCount = &v + return s +} + +// SetInstanceRole sets the InstanceRole field's value. +func (s *InstanceGroupDetail) SetInstanceRole(v string) *InstanceGroupDetail { + s.InstanceRole = &v + return s +} + +// SetInstanceRunningCount sets the InstanceRunningCount field's value. +func (s *InstanceGroupDetail) SetInstanceRunningCount(v int64) *InstanceGroupDetail { + s.InstanceRunningCount = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *InstanceGroupDetail) SetInstanceType(v string) *InstanceGroupDetail { + s.InstanceType = &v + return s +} + +// SetLastStateChangeReason sets the LastStateChangeReason field's value. +func (s *InstanceGroupDetail) SetLastStateChangeReason(v string) *InstanceGroupDetail { + s.LastStateChangeReason = &v + return s +} + +// SetMarket sets the Market field's value. +func (s *InstanceGroupDetail) SetMarket(v string) *InstanceGroupDetail { + s.Market = &v + return s +} + +// SetName sets the Name field's value. +func (s *InstanceGroupDetail) SetName(v string) *InstanceGroupDetail { + s.Name = &v + return s +} + +// SetReadyDateTime sets the ReadyDateTime field's value. +func (s *InstanceGroupDetail) SetReadyDateTime(v time.Time) *InstanceGroupDetail { + s.ReadyDateTime = &v + return s +} + +// SetStartDateTime sets the StartDateTime field's value. +func (s *InstanceGroupDetail) SetStartDateTime(v time.Time) *InstanceGroupDetail { + s.StartDateTime = &v + return s +} + +// SetState sets the State field's value. +func (s *InstanceGroupDetail) SetState(v string) *InstanceGroupDetail { + s.State = &v + return s +} + // Modify an instance group size. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceGroupModifyConfig type InstanceGroupModifyConfig struct { _ struct{} `type:"structure"` - // The EC2 InstanceIds to terminate. Once you terminate the instances, the instance - // group will not return to its original requested size. + // The EC2 InstanceIds to terminate. After you terminate the instances, the + // instance group will not return to its original requested size. EC2InstanceIdsToTerminate []*string `type:"list"` // Target size for the instance group. @@ -3145,7 +5709,32 @@ func (s *InstanceGroupModifyConfig) Validate() error { return nil } +// SetEC2InstanceIdsToTerminate sets the EC2InstanceIdsToTerminate field's value. +func (s *InstanceGroupModifyConfig) SetEC2InstanceIdsToTerminate(v []*string) *InstanceGroupModifyConfig { + s.EC2InstanceIdsToTerminate = v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *InstanceGroupModifyConfig) SetInstanceCount(v int64) *InstanceGroupModifyConfig { + s.InstanceCount = &v + return s +} + +// SetInstanceGroupId sets the InstanceGroupId field's value. +func (s *InstanceGroupModifyConfig) SetInstanceGroupId(v string) *InstanceGroupModifyConfig { + s.InstanceGroupId = &v + return s +} + +// SetShrinkPolicy sets the ShrinkPolicy field's value. +func (s *InstanceGroupModifyConfig) SetShrinkPolicy(v *ShrinkPolicy) *InstanceGroupModifyConfig { + s.ShrinkPolicy = v + return s +} + // The status change reason details for the instance group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceGroupStateChangeReason type InstanceGroupStateChangeReason struct { _ struct{} `type:"structure"` @@ -3166,7 +5755,20 @@ func (s InstanceGroupStateChangeReason) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *InstanceGroupStateChangeReason) SetCode(v string) *InstanceGroupStateChangeReason { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *InstanceGroupStateChangeReason) SetMessage(v string) *InstanceGroupStateChangeReason { + s.Message = &v + return s +} + // The details of the instance group status. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceGroupStatus type InstanceGroupStatus struct { _ struct{} `type:"structure"` @@ -3190,7 +5792,26 @@ func (s InstanceGroupStatus) GoString() string { return s.String() } +// SetState sets the State field's value. +func (s *InstanceGroupStatus) SetState(v string) *InstanceGroupStatus { + s.State = &v + return s +} + +// SetStateChangeReason sets the StateChangeReason field's value. +func (s *InstanceGroupStatus) SetStateChangeReason(v *InstanceGroupStateChangeReason) *InstanceGroupStatus { + s.StateChangeReason = v + return s +} + +// SetTimeline sets the Timeline field's value. +func (s *InstanceGroupStatus) SetTimeline(v *InstanceGroupTimeline) *InstanceGroupStatus { + s.Timeline = v + return s +} + // The timeline of the instance group lifecycle. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceGroupTimeline type InstanceGroupTimeline struct { _ struct{} `type:"structure"` @@ -3214,8 +5835,27 @@ func (s InstanceGroupTimeline) GoString() string { return s.String() } +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *InstanceGroupTimeline) SetCreationDateTime(v time.Time) *InstanceGroupTimeline { + s.CreationDateTime = &v + return s +} + +// SetEndDateTime sets the EndDateTime field's value. +func (s *InstanceGroupTimeline) SetEndDateTime(v time.Time) *InstanceGroupTimeline { + s.EndDateTime = &v + return s +} + +// SetReadyDateTime sets the ReadyDateTime field's value. +func (s *InstanceGroupTimeline) SetReadyDateTime(v time.Time) *InstanceGroupTimeline { + s.ReadyDateTime = &v + return s +} + // Custom policy for requesting termination protection or termination of specific // instances when shrinking an instance group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceResizePolicy type InstanceResizePolicy struct { _ struct{} `type:"structure"` @@ -3230,95 +5870,372 @@ type InstanceResizePolicy struct { InstancesToTerminate []*string `type:"list"` } -// String returns the string representation -func (s InstanceResizePolicy) String() string { - return awsutil.Prettify(s) +// String returns the string representation +func (s InstanceResizePolicy) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceResizePolicy) GoString() string { + return s.String() +} + +// SetInstanceTerminationTimeout sets the InstanceTerminationTimeout field's value. +func (s *InstanceResizePolicy) SetInstanceTerminationTimeout(v int64) *InstanceResizePolicy { + s.InstanceTerminationTimeout = &v + return s +} + +// SetInstancesToProtect sets the InstancesToProtect field's value. +func (s *InstanceResizePolicy) SetInstancesToProtect(v []*string) *InstanceResizePolicy { + s.InstancesToProtect = v + return s +} + +// SetInstancesToTerminate sets the InstancesToTerminate field's value. +func (s *InstanceResizePolicy) SetInstancesToTerminate(v []*string) *InstanceResizePolicy { + s.InstancesToTerminate = v + return s +} + +// The details of the status change reason for the instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceStateChangeReason +type InstanceStateChangeReason struct { + _ struct{} `type:"structure"` + + // The programmable code for the state change reason. + Code *string `type:"string" enum:"InstanceStateChangeReasonCode"` + + // The status change reason description. + Message *string `type:"string"` +} + +// String returns the string representation +func (s InstanceStateChangeReason) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceStateChangeReason) GoString() string { + return s.String() +} + +// SetCode sets the Code field's value. +func (s *InstanceStateChangeReason) SetCode(v string) *InstanceStateChangeReason { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *InstanceStateChangeReason) SetMessage(v string) *InstanceStateChangeReason { + s.Message = &v + return s +} + +// The instance status details. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceStatus +type InstanceStatus struct { + _ struct{} `type:"structure"` + + // The current state of the instance. + State *string `type:"string" enum:"InstanceState"` + + // The details of the status change reason for the instance. + StateChangeReason *InstanceStateChangeReason `type:"structure"` + + // The timeline of the instance status over time. + Timeline *InstanceTimeline `type:"structure"` +} + +// String returns the string representation +func (s InstanceStatus) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceStatus) GoString() string { + return s.String() +} + +// SetState sets the State field's value. +func (s *InstanceStatus) SetState(v string) *InstanceStatus { + s.State = &v + return s +} + +// SetStateChangeReason sets the StateChangeReason field's value. +func (s *InstanceStatus) SetStateChangeReason(v *InstanceStateChangeReason) *InstanceStatus { + s.StateChangeReason = v + return s +} + +// SetTimeline sets the Timeline field's value. +func (s *InstanceStatus) SetTimeline(v *InstanceTimeline) *InstanceStatus { + s.Timeline = v + return s +} + +// The timeline of the instance lifecycle. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceTimeline +type InstanceTimeline struct { + _ struct{} `type:"structure"` + + // The creation date and time of the instance. + CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The date and time when the instance was terminated. + EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The date and time when the instance was ready to perform tasks. + ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` +} + +// String returns the string representation +func (s InstanceTimeline) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceTimeline) GoString() string { + return s.String() +} + +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *InstanceTimeline) SetCreationDateTime(v time.Time) *InstanceTimeline { + s.CreationDateTime = &v + return s +} + +// SetEndDateTime sets the EndDateTime field's value. +func (s *InstanceTimeline) SetEndDateTime(v time.Time) *InstanceTimeline { + s.EndDateTime = &v + return s +} + +// SetReadyDateTime sets the ReadyDateTime field's value. +func (s *InstanceTimeline) SetReadyDateTime(v time.Time) *InstanceTimeline { + s.ReadyDateTime = &v + return s +} + +// An instance type configuration for each instance type in an instance fleet, +// which determines the EC2 instances Amazon EMR attempts to provision to fulfill +// On-Demand and Spot target capacities. There can be a maximum of 5 instance +// type configurations in a fleet. +// +// The instance fleet configuration is available only in Amazon EMR versions +// 4.8.0 and later, excluding 5.0.x versions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceTypeConfig +type InstanceTypeConfig struct { + _ struct{} `type:"structure"` + + // The bid price for each EC2 Spot instance type as defined by InstanceType. + // Expressed in USD. If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice + // is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%. + BidPrice *string `type:"string"` + + // The bid price, as a percentage of On-Demand price, for each EC2 Spot instance + // as defined by InstanceType. Expressed as a number between 0 and 1000 (for + // example, 20 specifies 20%). If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice + // is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%. + BidPriceAsPercentageOfOnDemandPrice *float64 `type:"double"` + + // A configuration classification that applies when provisioning cluster instances, + // which can include configurations for applications and software that run on + // the cluster. + Configurations []*Configuration `type:"list"` + + // The configuration of Amazon Elastic Block Storage (EBS) attached to each + // instance as defined by InstanceType. + EbsConfiguration *EbsConfiguration `type:"structure"` + + // An EC2 instance type, such as m3.xlarge. + // + // InstanceType is a required field + InstanceType *string `min:"1" type:"string" required:"true"` + + // The number of units that a provisioned instance of this type provides toward + // fulfilling the target capacities defined in InstanceFleetConfig. This value + // is 1 for a master instance fleet, and must be greater than 0 for core and + // task instance fleets. + WeightedCapacity *int64 `type:"integer"` +} + +// String returns the string representation +func (s InstanceTypeConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceTypeConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InstanceTypeConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InstanceTypeConfig"} + if s.InstanceType == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceType")) + } + if s.InstanceType != nil && len(*s.InstanceType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1)) + } + if s.EbsConfiguration != nil { + if err := s.EbsConfiguration.Validate(); err != nil { + invalidParams.AddNested("EbsConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBidPrice sets the BidPrice field's value. +func (s *InstanceTypeConfig) SetBidPrice(v string) *InstanceTypeConfig { + s.BidPrice = &v + return s } -// GoString returns the string representation -func (s InstanceResizePolicy) GoString() string { - return s.String() +// SetBidPriceAsPercentageOfOnDemandPrice sets the BidPriceAsPercentageOfOnDemandPrice field's value. +func (s *InstanceTypeConfig) SetBidPriceAsPercentageOfOnDemandPrice(v float64) *InstanceTypeConfig { + s.BidPriceAsPercentageOfOnDemandPrice = &v + return s } -// The details of the status change reason for the instance. -type InstanceStateChangeReason struct { - _ struct{} `type:"structure"` - - // The programmable code for the state change reason. - Code *string `type:"string" enum:"InstanceStateChangeReasonCode"` +// SetConfigurations sets the Configurations field's value. +func (s *InstanceTypeConfig) SetConfigurations(v []*Configuration) *InstanceTypeConfig { + s.Configurations = v + return s +} - // The status change reason description. - Message *string `type:"string"` +// SetEbsConfiguration sets the EbsConfiguration field's value. +func (s *InstanceTypeConfig) SetEbsConfiguration(v *EbsConfiguration) *InstanceTypeConfig { + s.EbsConfiguration = v + return s } -// String returns the string representation -func (s InstanceStateChangeReason) String() string { - return awsutil.Prettify(s) +// SetInstanceType sets the InstanceType field's value. +func (s *InstanceTypeConfig) SetInstanceType(v string) *InstanceTypeConfig { + s.InstanceType = &v + return s } -// GoString returns the string representation -func (s InstanceStateChangeReason) GoString() string { - return s.String() +// SetWeightedCapacity sets the WeightedCapacity field's value. +func (s *InstanceTypeConfig) SetWeightedCapacity(v int64) *InstanceTypeConfig { + s.WeightedCapacity = &v + return s } -// The instance status details. -type InstanceStatus struct { +// The configuration specification for each instance type in an instance fleet. +// +// The instance fleet configuration is available only in Amazon EMR versions +// 4.8.0 and later, excluding 5.0.x versions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceTypeSpecification +type InstanceTypeSpecification struct { _ struct{} `type:"structure"` - // The current state of the instance. - State *string `type:"string" enum:"InstanceState"` + // The bid price for each EC2 Spot instance type as defined by InstanceType. + // Expressed in USD. + BidPrice *string `type:"string"` - // The details of the status change reason for the instance. - StateChangeReason *InstanceStateChangeReason `type:"structure"` + // The bid price, as a percentage of On-Demand price, for each EC2 Spot instance + // as defined by InstanceType. Expressed as a number (for example, 20 specifies + // 20%). + BidPriceAsPercentageOfOnDemandPrice *float64 `type:"double"` - // The timeline of the instance status over time. - Timeline *InstanceTimeline `type:"structure"` + // A configuration classification that applies when provisioning cluster instances, + // which can include configurations for applications and software bundled with + // Amazon EMR. + Configurations []*Configuration `type:"list"` + + // The configuration of Amazon Elastic Block Storage (EBS) attached to each + // instance as defined by InstanceType. + EbsBlockDevices []*EbsBlockDevice `type:"list"` + + // Evaluates to TRUE when the specified InstanceType is EBS-optimized. + EbsOptimized *bool `type:"boolean"` + + // The EC2 instance type, for example m3.xlarge. + InstanceType *string `min:"1" type:"string"` + + // The number of units that a provisioned instance of this type provides toward + // fulfilling the target capacities defined in InstanceFleetConfig. Capacity + // values represent performance characteristics such as vCPUs, memory, or I/O. + // If not specified, the default value is 1. + WeightedCapacity *int64 `type:"integer"` } // String returns the string representation -func (s InstanceStatus) String() string { +func (s InstanceTypeSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InstanceStatus) GoString() string { +func (s InstanceTypeSpecification) GoString() string { return s.String() } -// The timeline of the instance lifecycle. -type InstanceTimeline struct { - _ struct{} `type:"structure"` +// SetBidPrice sets the BidPrice field's value. +func (s *InstanceTypeSpecification) SetBidPrice(v string) *InstanceTypeSpecification { + s.BidPrice = &v + return s +} - // The creation date and time of the instance. - CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` +// SetBidPriceAsPercentageOfOnDemandPrice sets the BidPriceAsPercentageOfOnDemandPrice field's value. +func (s *InstanceTypeSpecification) SetBidPriceAsPercentageOfOnDemandPrice(v float64) *InstanceTypeSpecification { + s.BidPriceAsPercentageOfOnDemandPrice = &v + return s +} - // The date and time when the instance was terminated. - EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` +// SetConfigurations sets the Configurations field's value. +func (s *InstanceTypeSpecification) SetConfigurations(v []*Configuration) *InstanceTypeSpecification { + s.Configurations = v + return s +} - // The date and time when the instance was ready to perform tasks. - ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` +// SetEbsBlockDevices sets the EbsBlockDevices field's value. +func (s *InstanceTypeSpecification) SetEbsBlockDevices(v []*EbsBlockDevice) *InstanceTypeSpecification { + s.EbsBlockDevices = v + return s } -// String returns the string representation -func (s InstanceTimeline) String() string { - return awsutil.Prettify(s) +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *InstanceTypeSpecification) SetEbsOptimized(v bool) *InstanceTypeSpecification { + s.EbsOptimized = &v + return s } -// GoString returns the string representation -func (s InstanceTimeline) GoString() string { - return s.String() +// SetInstanceType sets the InstanceType field's value. +func (s *InstanceTypeSpecification) SetInstanceType(v string) *InstanceTypeSpecification { + s.InstanceType = &v + return s +} + +// SetWeightedCapacity sets the WeightedCapacity field's value. +func (s *InstanceTypeSpecification) SetWeightedCapacity(v int64) *InstanceTypeSpecification { + s.WeightedCapacity = &v + return s } -// A description of a job flow. +// A description of a cluster (job flow). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/JobFlowDetail type JobFlowDetail struct { _ struct{} `type:"structure"` // The version of the AMI used to initialize Amazon EC2 instances in the job - // flow. For a list of AMI versions currently supported by Amazon ElasticMapReduce, - // go to AMI Versions Supported in Elastic MapReduce (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/EnvironmentConfig_AMIVersion.html#ami-versions-supported) - // in the Amazon Elastic MapReduce Developer Guide. + // flow. For a list of AMI versions currently supported by Amazon EMR, see AMI + // Versions Supported in EMR (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/EnvironmentConfig_AMIVersion.html#ami-versions-supported) + // in the Amazon EMR Developer Guide. AmiVersion *string `type:"string"` + // An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole. + // The IAM role provides a way for the automatic scaling feature to get the + // required permissions it needs to launch and terminate EC2 instances in an + // instance group. + AutoScalingRole *string `type:"string"` + // A list of the bootstrap actions run by the job flow. BootstrapActions []*BootstrapActionDetail `type:"list"` @@ -3349,6 +6266,20 @@ type JobFlowDetail struct { // Name is a required field Name *string `type:"string" required:"true"` + // The way that individual Amazon EC2 instances terminate when an automatic + // scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR + // indicates that Amazon EMR terminates nodes at the instance-hour boundary, + // regardless of when the request to terminate the instance was submitted. This + // option is only available with Amazon EMR 5.1.0 and later and is the default + // for clusters created using that version. TERMINATE_AT_TASK_COMPLETION indicates + // that Amazon EMR blacklists and drains tasks from nodes before terminating + // the Amazon EC2 instances, regardless of the instance-hour boundary. With + // either behavior, Amazon EMR removes the least active nodes first and blocks + // instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION + // available only in Amazon EMR version 4.1.0 and later, and is the default + // for versions of Amazon EMR earlier than 5.1.0. + ScaleDownBehavior *string `type:"string" enum:"ScaleDownBehavior"` + // The IAM role that will be assumed by the Amazon EMR service to access AWS // resources on your behalf. ServiceRole *string `type:"string"` @@ -3361,12 +6292,12 @@ type JobFlowDetail struct { // is empty. SupportedProducts []*string `type:"list"` - // Specifies whether the job flow is visible to all IAM users of the AWS account - // associated with the job flow. If this value is set to true, all IAM users + // Specifies whether the cluster is visible to all IAM users of the AWS account + // associated with the cluster. If this value is set to true, all IAM users // of that AWS account can view and (if they have the proper policy permissions - // set) manage the job flow. If it is set to false, only the IAM user that created - // the job flow can view and manage it. This value can be changed using the - // SetVisibleToAllUsers action. + // set) manage the cluster. If it is set to false, only the IAM user that created + // the cluster can view and manage it. This value can be changed using the SetVisibleToAllUsers + // action. VisibleToAllUsers *bool `type:"boolean"` } @@ -3380,7 +6311,92 @@ func (s JobFlowDetail) GoString() string { return s.String() } -// Describes the status of the job flow. +// SetAmiVersion sets the AmiVersion field's value. +func (s *JobFlowDetail) SetAmiVersion(v string) *JobFlowDetail { + s.AmiVersion = &v + return s +} + +// SetAutoScalingRole sets the AutoScalingRole field's value. +func (s *JobFlowDetail) SetAutoScalingRole(v string) *JobFlowDetail { + s.AutoScalingRole = &v + return s +} + +// SetBootstrapActions sets the BootstrapActions field's value. +func (s *JobFlowDetail) SetBootstrapActions(v []*BootstrapActionDetail) *JobFlowDetail { + s.BootstrapActions = v + return s +} + +// SetExecutionStatusDetail sets the ExecutionStatusDetail field's value. +func (s *JobFlowDetail) SetExecutionStatusDetail(v *JobFlowExecutionStatusDetail) *JobFlowDetail { + s.ExecutionStatusDetail = v + return s +} + +// SetInstances sets the Instances field's value. +func (s *JobFlowDetail) SetInstances(v *JobFlowInstancesDetail) *JobFlowDetail { + s.Instances = v + return s +} + +// SetJobFlowId sets the JobFlowId field's value. +func (s *JobFlowDetail) SetJobFlowId(v string) *JobFlowDetail { + s.JobFlowId = &v + return s +} + +// SetJobFlowRole sets the JobFlowRole field's value. +func (s *JobFlowDetail) SetJobFlowRole(v string) *JobFlowDetail { + s.JobFlowRole = &v + return s +} + +// SetLogUri sets the LogUri field's value. +func (s *JobFlowDetail) SetLogUri(v string) *JobFlowDetail { + s.LogUri = &v + return s +} + +// SetName sets the Name field's value. +func (s *JobFlowDetail) SetName(v string) *JobFlowDetail { + s.Name = &v + return s +} + +// SetScaleDownBehavior sets the ScaleDownBehavior field's value. +func (s *JobFlowDetail) SetScaleDownBehavior(v string) *JobFlowDetail { + s.ScaleDownBehavior = &v + return s +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *JobFlowDetail) SetServiceRole(v string) *JobFlowDetail { + s.ServiceRole = &v + return s +} + +// SetSteps sets the Steps field's value. +func (s *JobFlowDetail) SetSteps(v []*StepDetail) *JobFlowDetail { + s.Steps = v + return s +} + +// SetSupportedProducts sets the SupportedProducts field's value. +func (s *JobFlowDetail) SetSupportedProducts(v []*string) *JobFlowDetail { + s.SupportedProducts = v + return s +} + +// SetVisibleToAllUsers sets the VisibleToAllUsers field's value. +func (s *JobFlowDetail) SetVisibleToAllUsers(v bool) *JobFlowDetail { + s.VisibleToAllUsers = &v + return s +} + +// Describes the status of the cluster (job flow). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/JobFlowExecutionStatusDetail type JobFlowExecutionStatusDetail struct { _ struct{} `type:"structure"` @@ -3418,10 +6434,48 @@ func (s JobFlowExecutionStatusDetail) GoString() string { return s.String() } -// A description of the Amazon EC2 instance running the job flow. A valid JobFlowInstancesConfig -// must contain at least InstanceGroups, which is the recommended configuration. -// However, a valid alternative is to have MasterInstanceType, SlaveInstanceType, -// and InstanceCount (all three must be present). +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *JobFlowExecutionStatusDetail) SetCreationDateTime(v time.Time) *JobFlowExecutionStatusDetail { + s.CreationDateTime = &v + return s +} + +// SetEndDateTime sets the EndDateTime field's value. +func (s *JobFlowExecutionStatusDetail) SetEndDateTime(v time.Time) *JobFlowExecutionStatusDetail { + s.EndDateTime = &v + return s +} + +// SetLastStateChangeReason sets the LastStateChangeReason field's value. +func (s *JobFlowExecutionStatusDetail) SetLastStateChangeReason(v string) *JobFlowExecutionStatusDetail { + s.LastStateChangeReason = &v + return s +} + +// SetReadyDateTime sets the ReadyDateTime field's value. +func (s *JobFlowExecutionStatusDetail) SetReadyDateTime(v time.Time) *JobFlowExecutionStatusDetail { + s.ReadyDateTime = &v + return s +} + +// SetStartDateTime sets the StartDateTime field's value. +func (s *JobFlowExecutionStatusDetail) SetStartDateTime(v time.Time) *JobFlowExecutionStatusDetail { + s.StartDateTime = &v + return s +} + +// SetState sets the State field's value. +func (s *JobFlowExecutionStatusDetail) SetState(v string) *JobFlowExecutionStatusDetail { + s.State = &v + return s +} + +// A description of the Amazon EC2 instance on which the cluster (job flow) +// runs. A valid JobFlowInstancesConfig must contain either InstanceGroups or +// InstanceFleets, which is the recommended configuration. They cannot be used +// together. You may also have MasterInstanceType, SlaveInstanceType, and InstanceCount +// (all three must be present), but we don't recommend this configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/JobFlowInstancesConfig type JobFlowInstancesConfig struct { _ struct{} `type:"structure"` @@ -3431,47 +6485,65 @@ type JobFlowInstancesConfig struct { // A list of additional Amazon EC2 security group IDs for the slave nodes. AdditionalSlaveSecurityGroups []*string `type:"list"` - // The name of the Amazon EC2 key pair that can be used to ssh to the master - // node as the user called "hadoop." + // The name of the EC2 key pair that can be used to ssh to the master node as + // the user called "hadoop." Ec2KeyName *string `type:"string"` - // To launch the job flow in Amazon Virtual Private Cloud (Amazon VPC), set - // this parameter to the identifier of the Amazon VPC subnet where you want - // the job flow to launch. If you do not specify this value, the job flow is - // launched in the normal Amazon Web Services cloud, outside of an Amazon VPC. + // Applies to clusters that use the uniform instance group configuration. To + // launch the cluster in Amazon Virtual Private Cloud (Amazon VPC), set this + // parameter to the identifier of the Amazon VPC subnet where you want the cluster + // to launch. If you do not specify this value, the cluster launches in the + // normal Amazon Web Services cloud, outside of an Amazon VPC, if the account + // launching the cluster supports EC2 Classic networks in the region where the + // cluster launches. // // Amazon VPC currently does not support cluster compute quadruple extra large // (cc1.4xlarge) instances. Thus you cannot specify the cc1.4xlarge instance - // type for nodes of a job flow launched in a Amazon VPC. + // type for clusters launched in an Amazon VPC. Ec2SubnetId *string `type:"string"` + // Applies to clusters that use the instance fleet configuration. When multiple + // EC2 subnet IDs are specified, Amazon EMR evaluates them and launches instances + // in the optimal subnet. + // + // The instance fleet configuration is available only in Amazon EMR versions + // 4.8.0 and later, excluding 5.0.x versions. + Ec2SubnetIds []*string `type:"list"` + // The identifier of the Amazon EC2 security group for the master node. EmrManagedMasterSecurityGroup *string `type:"string"` // The identifier of the Amazon EC2 security group for the slave nodes. EmrManagedSlaveSecurityGroup *string `type:"string"` - // The Hadoop version for the job flow. Valid inputs are "0.18" (deprecated), + // The Hadoop version for the cluster. Valid inputs are "0.18" (deprecated), // "0.20" (deprecated), "0.20.205" (deprecated), "1.0.3", "2.2.0", or "2.4.0". // If you do not set this value, the default of 0.18 is used, unless the AmiVersion // parameter is set in the RunJobFlow call, in which case the default version // of Hadoop for that AMI version is used. HadoopVersion *string `type:"string"` - // The number of Amazon EC2 instances used to execute the job flow. + // The number of EC2 instances in the cluster. InstanceCount *int64 `type:"integer"` - // Configuration for the job flow's instance groups. + // The instance fleet configuration is available only in Amazon EMR versions + // 4.8.0 and later, excluding 5.0.x versions. + // + // Describes the EC2 instances and instance configurations for clusters that + // use the instance fleet configuration. + InstanceFleets []*InstanceFleetConfig `type:"list"` + + // Configuration for the instance groups in a cluster. InstanceGroups []*InstanceGroupConfig `type:"list"` - // Specifies whether the job flow should be kept alive after completing all + // Specifies whether the cluster should remain available after completing all // steps. KeepJobFlowAliveWhenNoSteps *bool `type:"boolean"` // The EC2 instance type of the master node. MasterInstanceType *string `min:"1" type:"string"` - // The Availability Zone the job flow will run in. + // The Availability Zone in which the cluster runs. Placement *PlacementType `type:"structure"` // The identifier of the Amazon EC2 security group for the Amazon EMR service @@ -3481,9 +6553,9 @@ type JobFlowInstancesConfig struct { // The EC2 instance type of the slave nodes. SlaveInstanceType *string `min:"1" type:"string"` - // Specifies whether to lock the job flow to prevent the Amazon EC2 instances + // Specifies whether to lock the cluster to prevent the Amazon EC2 instances // from being terminated by API call, user intervention, or in the event of - // a job flow error. + // a job-flow error. TerminationProtected *bool `type:"boolean"` } @@ -3506,6 +6578,16 @@ func (s *JobFlowInstancesConfig) Validate() error { if s.SlaveInstanceType != nil && len(*s.SlaveInstanceType) < 1 { invalidParams.Add(request.NewErrParamMinLen("SlaveInstanceType", 1)) } + if s.InstanceFleets != nil { + for i, v := range s.InstanceFleets { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InstanceFleets", i), err.(request.ErrInvalidParams)) + } + } + } if s.InstanceGroups != nil { for i, v := range s.InstanceGroups { if v == nil { @@ -3516,11 +6598,6 @@ func (s *JobFlowInstancesConfig) Validate() error { } } } - if s.Placement != nil { - if err := s.Placement.Validate(); err != nil { - invalidParams.AddNested("Placement", err.(request.ErrInvalidParams)) - } - } if invalidParams.Len() > 0 { return invalidParams @@ -3528,19 +6605,123 @@ func (s *JobFlowInstancesConfig) Validate() error { return nil } -// Specify the type of Amazon EC2 instances to run the job flow on. +// SetAdditionalMasterSecurityGroups sets the AdditionalMasterSecurityGroups field's value. +func (s *JobFlowInstancesConfig) SetAdditionalMasterSecurityGroups(v []*string) *JobFlowInstancesConfig { + s.AdditionalMasterSecurityGroups = v + return s +} + +// SetAdditionalSlaveSecurityGroups sets the AdditionalSlaveSecurityGroups field's value. +func (s *JobFlowInstancesConfig) SetAdditionalSlaveSecurityGroups(v []*string) *JobFlowInstancesConfig { + s.AdditionalSlaveSecurityGroups = v + return s +} + +// SetEc2KeyName sets the Ec2KeyName field's value. +func (s *JobFlowInstancesConfig) SetEc2KeyName(v string) *JobFlowInstancesConfig { + s.Ec2KeyName = &v + return s +} + +// SetEc2SubnetId sets the Ec2SubnetId field's value. +func (s *JobFlowInstancesConfig) SetEc2SubnetId(v string) *JobFlowInstancesConfig { + s.Ec2SubnetId = &v + return s +} + +// SetEc2SubnetIds sets the Ec2SubnetIds field's value. +func (s *JobFlowInstancesConfig) SetEc2SubnetIds(v []*string) *JobFlowInstancesConfig { + s.Ec2SubnetIds = v + return s +} + +// SetEmrManagedMasterSecurityGroup sets the EmrManagedMasterSecurityGroup field's value. +func (s *JobFlowInstancesConfig) SetEmrManagedMasterSecurityGroup(v string) *JobFlowInstancesConfig { + s.EmrManagedMasterSecurityGroup = &v + return s +} + +// SetEmrManagedSlaveSecurityGroup sets the EmrManagedSlaveSecurityGroup field's value. +func (s *JobFlowInstancesConfig) SetEmrManagedSlaveSecurityGroup(v string) *JobFlowInstancesConfig { + s.EmrManagedSlaveSecurityGroup = &v + return s +} + +// SetHadoopVersion sets the HadoopVersion field's value. +func (s *JobFlowInstancesConfig) SetHadoopVersion(v string) *JobFlowInstancesConfig { + s.HadoopVersion = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *JobFlowInstancesConfig) SetInstanceCount(v int64) *JobFlowInstancesConfig { + s.InstanceCount = &v + return s +} + +// SetInstanceFleets sets the InstanceFleets field's value. +func (s *JobFlowInstancesConfig) SetInstanceFleets(v []*InstanceFleetConfig) *JobFlowInstancesConfig { + s.InstanceFleets = v + return s +} + +// SetInstanceGroups sets the InstanceGroups field's value. +func (s *JobFlowInstancesConfig) SetInstanceGroups(v []*InstanceGroupConfig) *JobFlowInstancesConfig { + s.InstanceGroups = v + return s +} + +// SetKeepJobFlowAliveWhenNoSteps sets the KeepJobFlowAliveWhenNoSteps field's value. +func (s *JobFlowInstancesConfig) SetKeepJobFlowAliveWhenNoSteps(v bool) *JobFlowInstancesConfig { + s.KeepJobFlowAliveWhenNoSteps = &v + return s +} + +// SetMasterInstanceType sets the MasterInstanceType field's value. +func (s *JobFlowInstancesConfig) SetMasterInstanceType(v string) *JobFlowInstancesConfig { + s.MasterInstanceType = &v + return s +} + +// SetPlacement sets the Placement field's value. +func (s *JobFlowInstancesConfig) SetPlacement(v *PlacementType) *JobFlowInstancesConfig { + s.Placement = v + return s +} + +// SetServiceAccessSecurityGroup sets the ServiceAccessSecurityGroup field's value. +func (s *JobFlowInstancesConfig) SetServiceAccessSecurityGroup(v string) *JobFlowInstancesConfig { + s.ServiceAccessSecurityGroup = &v + return s +} + +// SetSlaveInstanceType sets the SlaveInstanceType field's value. +func (s *JobFlowInstancesConfig) SetSlaveInstanceType(v string) *JobFlowInstancesConfig { + s.SlaveInstanceType = &v + return s +} + +// SetTerminationProtected sets the TerminationProtected field's value. +func (s *JobFlowInstancesConfig) SetTerminationProtected(v bool) *JobFlowInstancesConfig { + s.TerminationProtected = &v + return s +} + +// Specify the type of Amazon EC2 instances that the cluster (job flow) runs +// on. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/JobFlowInstancesDetail type JobFlowInstancesDetail struct { _ struct{} `type:"structure"` // The name of an Amazon EC2 key pair that can be used to ssh to the master - // node of job flow. + // node. Ec2KeyName *string `type:"string"` - // For job flows launched within Amazon Virtual Private Cloud, this value specifies - // the identifier of the subnet where the job flow was launched. + // For clusters launched within Amazon Virtual Private Cloud, this is the identifier + // of the subnet where the cluster was launched. Ec2SubnetId *string `type:"string"` - // The Hadoop version for the job flow. + // The Hadoop version for the cluster. HadoopVersion *string `type:"string"` // The number of Amazon EC2 instances in the cluster. If the value is 1, the @@ -3550,10 +6731,11 @@ type JobFlowInstancesDetail struct { // InstanceCount is a required field InstanceCount *int64 `type:"integer" required:"true"` - // Details about the job flow's instance groups. + // Details about the instance groups in a cluster. InstanceGroups []*InstanceGroupDetail `type:"list"` - // Specifies whether the job flow should terminate after completing all steps. + // Specifies whether the cluster should remain available after completing all + // steps. KeepJobFlowAliveWhenNoSteps *bool `type:"boolean"` // The Amazon EC2 instance identifier of the master node. @@ -3567,15 +6749,15 @@ type JobFlowInstancesDetail struct { // The DNS name of the master node. MasterPublicDnsName *string `type:"string"` - // An approximation of the cost of the job flow, represented in m1.small/hours. - // This value is incremented once for every hour an m1.small runs. Larger instances - // are weighted more, so an Amazon EC2 instance that is roughly four times more - // expensive would result in the normalized instance hours being incremented - // by four. This result is only an approximation and does not reflect the actual - // billing rate. + // An approximation of the cost of the cluster, represented in m1.small/hours. + // This value is incremented one time for every hour that an m1.small runs. + // Larger instances are weighted more, so an Amazon EC2 instance that is roughly + // four times more expensive would result in the normalized instance hours being + // incremented by four. This result is only an approximation and does not reflect + // the actual billing rate. NormalizedInstanceHours *int64 `type:"integer"` - // The Amazon EC2 Availability Zone for the job flow. + // The Amazon EC2 Availability Zone for the cluster. Placement *PlacementType `type:"structure"` // The Amazon EC2 slave node instance type. @@ -3584,7 +6766,7 @@ type JobFlowInstancesDetail struct { SlaveInstanceType *string `min:"1" type:"string" required:"true"` // Specifies whether the Amazon EC2 instances in the cluster are protected from - // termination by API calls, user intervention, or in the event of a job flow + // termination by API calls, user intervention, or in the event of a job-flow // error. TerminationProtected *bool `type:"boolean"` } @@ -3599,7 +6781,86 @@ func (s JobFlowInstancesDetail) GoString() string { return s.String() } +// SetEc2KeyName sets the Ec2KeyName field's value. +func (s *JobFlowInstancesDetail) SetEc2KeyName(v string) *JobFlowInstancesDetail { + s.Ec2KeyName = &v + return s +} + +// SetEc2SubnetId sets the Ec2SubnetId field's value. +func (s *JobFlowInstancesDetail) SetEc2SubnetId(v string) *JobFlowInstancesDetail { + s.Ec2SubnetId = &v + return s +} + +// SetHadoopVersion sets the HadoopVersion field's value. +func (s *JobFlowInstancesDetail) SetHadoopVersion(v string) *JobFlowInstancesDetail { + s.HadoopVersion = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *JobFlowInstancesDetail) SetInstanceCount(v int64) *JobFlowInstancesDetail { + s.InstanceCount = &v + return s +} + +// SetInstanceGroups sets the InstanceGroups field's value. +func (s *JobFlowInstancesDetail) SetInstanceGroups(v []*InstanceGroupDetail) *JobFlowInstancesDetail { + s.InstanceGroups = v + return s +} + +// SetKeepJobFlowAliveWhenNoSteps sets the KeepJobFlowAliveWhenNoSteps field's value. +func (s *JobFlowInstancesDetail) SetKeepJobFlowAliveWhenNoSteps(v bool) *JobFlowInstancesDetail { + s.KeepJobFlowAliveWhenNoSteps = &v + return s +} + +// SetMasterInstanceId sets the MasterInstanceId field's value. +func (s *JobFlowInstancesDetail) SetMasterInstanceId(v string) *JobFlowInstancesDetail { + s.MasterInstanceId = &v + return s +} + +// SetMasterInstanceType sets the MasterInstanceType field's value. +func (s *JobFlowInstancesDetail) SetMasterInstanceType(v string) *JobFlowInstancesDetail { + s.MasterInstanceType = &v + return s +} + +// SetMasterPublicDnsName sets the MasterPublicDnsName field's value. +func (s *JobFlowInstancesDetail) SetMasterPublicDnsName(v string) *JobFlowInstancesDetail { + s.MasterPublicDnsName = &v + return s +} + +// SetNormalizedInstanceHours sets the NormalizedInstanceHours field's value. +func (s *JobFlowInstancesDetail) SetNormalizedInstanceHours(v int64) *JobFlowInstancesDetail { + s.NormalizedInstanceHours = &v + return s +} + +// SetPlacement sets the Placement field's value. +func (s *JobFlowInstancesDetail) SetPlacement(v *PlacementType) *JobFlowInstancesDetail { + s.Placement = v + return s +} + +// SetSlaveInstanceType sets the SlaveInstanceType field's value. +func (s *JobFlowInstancesDetail) SetSlaveInstanceType(v string) *JobFlowInstancesDetail { + s.SlaveInstanceType = &v + return s +} + +// SetTerminationProtected sets the TerminationProtected field's value. +func (s *JobFlowInstancesDetail) SetTerminationProtected(v bool) *JobFlowInstancesDetail { + s.TerminationProtected = &v + return s +} + // A key value pair. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/KeyValue type KeyValue struct { _ struct{} `type:"structure"` @@ -3620,11 +6881,24 @@ func (s KeyValue) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *KeyValue) SetKey(v string) *KeyValue { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *KeyValue) SetValue(v string) *KeyValue { + s.Value = &v + return s +} + // This input determines which bootstrap actions to retrieve. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListBootstrapActionsInput type ListBootstrapActionsInput struct { _ struct{} `type:"structure"` - // The cluster identifier for the bootstrap actions to list . + // The cluster identifier for the bootstrap actions to list. // // ClusterId is a required field ClusterId *string `type:"string" required:"true"` @@ -3656,11 +6930,24 @@ func (s *ListBootstrapActionsInput) Validate() error { return nil } -// This output contains the boostrap actions detail . +// SetClusterId sets the ClusterId field's value. +func (s *ListBootstrapActionsInput) SetClusterId(v string) *ListBootstrapActionsInput { + s.ClusterId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListBootstrapActionsInput) SetMarker(v string) *ListBootstrapActionsInput { + s.Marker = &v + return s +} + +// This output contains the bootstrap actions detail. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListBootstrapActionsOutput type ListBootstrapActionsOutput struct { _ struct{} `type:"structure"` - // The bootstrap actions associated with the cluster . + // The bootstrap actions associated with the cluster. BootstrapActions []*Command `type:"list"` // The pagination token that indicates the next set of results to retrieve. @@ -3677,18 +6964,31 @@ func (s ListBootstrapActionsOutput) GoString() string { return s.String() } +// SetBootstrapActions sets the BootstrapActions field's value. +func (s *ListBootstrapActionsOutput) SetBootstrapActions(v []*Command) *ListBootstrapActionsOutput { + s.BootstrapActions = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListBootstrapActionsOutput) SetMarker(v string) *ListBootstrapActionsOutput { + s.Marker = &v + return s +} + // This input determines how the ListClusters action filters the list of clusters // that it returns. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListClustersInput type ListClustersInput struct { _ struct{} `type:"structure"` // The cluster state filters to apply when listing clusters. ClusterStates []*string `type:"list"` - // The creation date and time beginning value filter for listing clusters . + // The creation date and time beginning value filter for listing clusters. CreatedAfter *time.Time `type:"timestamp" timestampFormat:"unix"` - // The creation date and time end value filter for listing clusters . + // The creation date and time end value filter for listing clusters. CreatedBefore *time.Time `type:"timestamp" timestampFormat:"unix"` // The pagination token that indicates the next set of results to retrieve. @@ -3705,8 +7005,33 @@ func (s ListClustersInput) GoString() string { return s.String() } +// SetClusterStates sets the ClusterStates field's value. +func (s *ListClustersInput) SetClusterStates(v []*string) *ListClustersInput { + s.ClusterStates = v + return s +} + +// SetCreatedAfter sets the CreatedAfter field's value. +func (s *ListClustersInput) SetCreatedAfter(v time.Time) *ListClustersInput { + s.CreatedAfter = &v + return s +} + +// SetCreatedBefore sets the CreatedBefore field's value. +func (s *ListClustersInput) SetCreatedBefore(v time.Time) *ListClustersInput { + s.CreatedBefore = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListClustersInput) SetMarker(v string) *ListClustersInput { + s.Marker = &v + return s +} + // This contains a ClusterSummaryList with the cluster details; for example, // the cluster IDs, names, and status. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListClustersOutput type ListClustersOutput struct { _ struct{} `type:"structure"` @@ -3718,16 +7043,110 @@ type ListClustersOutput struct { } // String returns the string representation -func (s ListClustersOutput) String() string { +func (s ListClustersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListClustersOutput) GoString() string { + return s.String() +} + +// SetClusters sets the Clusters field's value. +func (s *ListClustersOutput) SetClusters(v []*ClusterSummary) *ListClustersOutput { + s.Clusters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListClustersOutput) SetMarker(v string) *ListClustersOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstanceFleetsInput +type ListInstanceFleetsInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the cluster. + // + // ClusterId is a required field + ClusterId *string `type:"string" required:"true"` + + // The pagination token that indicates the next set of results to retrieve. + Marker *string `type:"string"` +} + +// String returns the string representation +func (s ListInstanceFleetsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListInstanceFleetsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListInstanceFleetsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListInstanceFleetsInput"} + if s.ClusterId == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClusterId sets the ClusterId field's value. +func (s *ListInstanceFleetsInput) SetClusterId(v string) *ListInstanceFleetsInput { + s.ClusterId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListInstanceFleetsInput) SetMarker(v string) *ListInstanceFleetsInput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstanceFleetsOutput +type ListInstanceFleetsOutput struct { + _ struct{} `type:"structure"` + + // The list of instance fleets for the cluster and given filters. + InstanceFleets []*InstanceFleet `type:"list"` + + // The pagination token that indicates the next set of results to retrieve. + Marker *string `type:"string"` +} + +// String returns the string representation +func (s ListInstanceFleetsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListClustersOutput) GoString() string { +func (s ListInstanceFleetsOutput) GoString() string { return s.String() } +// SetInstanceFleets sets the InstanceFleets field's value. +func (s *ListInstanceFleetsOutput) SetInstanceFleets(v []*InstanceFleet) *ListInstanceFleetsOutput { + s.InstanceFleets = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListInstanceFleetsOutput) SetMarker(v string) *ListInstanceFleetsOutput { + s.Marker = &v + return s +} + // This input determines which instance groups to retrieve. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstanceGroupsInput type ListInstanceGroupsInput struct { _ struct{} `type:"structure"` @@ -3763,7 +7182,20 @@ func (s *ListInstanceGroupsInput) Validate() error { return nil } +// SetClusterId sets the ClusterId field's value. +func (s *ListInstanceGroupsInput) SetClusterId(v string) *ListInstanceGroupsInput { + s.ClusterId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListInstanceGroupsInput) SetMarker(v string) *ListInstanceGroupsInput { + s.Marker = &v + return s +} + // This input determines which instance groups to retrieve. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstanceGroupsOutput type ListInstanceGroupsOutput struct { _ struct{} `type:"structure"` @@ -3784,7 +7216,20 @@ func (s ListInstanceGroupsOutput) GoString() string { return s.String() } +// SetInstanceGroups sets the InstanceGroups field's value. +func (s *ListInstanceGroupsOutput) SetInstanceGroups(v []*InstanceGroup) *ListInstanceGroupsOutput { + s.InstanceGroups = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListInstanceGroupsOutput) SetMarker(v string) *ListInstanceGroupsOutput { + s.Marker = &v + return s +} + // This input determines which instances to list. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstancesInput type ListInstancesInput struct { _ struct{} `type:"structure"` @@ -3793,6 +7238,12 @@ type ListInstancesInput struct { // ClusterId is a required field ClusterId *string `type:"string" required:"true"` + // The unique identifier of the instance fleet. + InstanceFleetId *string `type:"string"` + + // The node type of the instance fleet. For example MASTER, CORE, or TASK. + InstanceFleetType *string `type:"string" enum:"InstanceFleetType"` + // The identifier of the instance group for which to list the instances. InstanceGroupId *string `type:"string"` @@ -3830,7 +7281,50 @@ func (s *ListInstancesInput) Validate() error { return nil } +// SetClusterId sets the ClusterId field's value. +func (s *ListInstancesInput) SetClusterId(v string) *ListInstancesInput { + s.ClusterId = &v + return s +} + +// SetInstanceFleetId sets the InstanceFleetId field's value. +func (s *ListInstancesInput) SetInstanceFleetId(v string) *ListInstancesInput { + s.InstanceFleetId = &v + return s +} + +// SetInstanceFleetType sets the InstanceFleetType field's value. +func (s *ListInstancesInput) SetInstanceFleetType(v string) *ListInstancesInput { + s.InstanceFleetType = &v + return s +} + +// SetInstanceGroupId sets the InstanceGroupId field's value. +func (s *ListInstancesInput) SetInstanceGroupId(v string) *ListInstancesInput { + s.InstanceGroupId = &v + return s +} + +// SetInstanceGroupTypes sets the InstanceGroupTypes field's value. +func (s *ListInstancesInput) SetInstanceGroupTypes(v []*string) *ListInstancesInput { + s.InstanceGroupTypes = v + return s +} + +// SetInstanceStates sets the InstanceStates field's value. +func (s *ListInstancesInput) SetInstanceStates(v []*string) *ListInstancesInput { + s.InstanceStates = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListInstancesInput) SetMarker(v string) *ListInstancesInput { + s.Marker = &v + return s +} + // This output contains the list of instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstancesOutput type ListInstancesOutput struct { _ struct{} `type:"structure"` @@ -3851,6 +7345,19 @@ func (s ListInstancesOutput) GoString() string { return s.String() } +// SetInstances sets the Instances field's value. +func (s *ListInstancesOutput) SetInstances(v []*Instance) *ListInstancesOutput { + s.Instances = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListInstancesOutput) SetMarker(v string) *ListInstancesOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListSecurityConfigurationsInput type ListSecurityConfigurationsInput struct { _ struct{} `type:"structure"` @@ -3868,6 +7375,13 @@ func (s ListSecurityConfigurationsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListSecurityConfigurationsInput) SetMarker(v string) *ListSecurityConfigurationsInput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListSecurityConfigurationsOutput type ListSecurityConfigurationsOutput struct { _ struct{} `type:"structure"` @@ -3890,7 +7404,20 @@ func (s ListSecurityConfigurationsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListSecurityConfigurationsOutput) SetMarker(v string) *ListSecurityConfigurationsOutput { + s.Marker = &v + return s +} + +// SetSecurityConfigurations sets the SecurityConfigurations field's value. +func (s *ListSecurityConfigurationsOutput) SetSecurityConfigurations(v []*SecurityConfigurationSummary) *ListSecurityConfigurationsOutput { + s.SecurityConfigurations = v + return s +} + // This input determines which steps to list. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListStepsInput type ListStepsInput struct { _ struct{} `type:"structure"` @@ -3932,58 +7459,438 @@ func (s *ListStepsInput) Validate() error { return nil } -// This output contains the list of steps returned in reverse order. This means -// that the last step is the first element in the list. -type ListStepsOutput struct { +// SetClusterId sets the ClusterId field's value. +func (s *ListStepsInput) SetClusterId(v string) *ListStepsInput { + s.ClusterId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListStepsInput) SetMarker(v string) *ListStepsInput { + s.Marker = &v + return s +} + +// SetStepIds sets the StepIds field's value. +func (s *ListStepsInput) SetStepIds(v []*string) *ListStepsInput { + s.StepIds = v + return s +} + +// SetStepStates sets the StepStates field's value. +func (s *ListStepsInput) SetStepStates(v []*string) *ListStepsInput { + s.StepStates = v + return s +} + +// This output contains the list of steps returned in reverse order. This means +// that the last step is the first element in the list. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListStepsOutput +type ListStepsOutput struct { + _ struct{} `type:"structure"` + + // The pagination token that indicates the next set of results to retrieve. + Marker *string `type:"string"` + + // The filtered list of steps for the cluster. + Steps []*StepSummary `type:"list"` +} + +// String returns the string representation +func (s ListStepsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListStepsOutput) GoString() string { + return s.String() +} + +// SetMarker sets the Marker field's value. +func (s *ListStepsOutput) SetMarker(v string) *ListStepsOutput { + s.Marker = &v + return s +} + +// SetSteps sets the Steps field's value. +func (s *ListStepsOutput) SetSteps(v []*StepSummary) *ListStepsOutput { + s.Steps = v + return s +} + +// A CloudWatch dimension, which is specified using a Key (known as a Name in +// CloudWatch), Value pair. By default, Amazon EMR uses one dimension whose +// Key is JobFlowID and Value is a variable representing the cluster ID, which +// is ${emr.clusterId}. This enables the rule to bootstrap when the cluster +// ID becomes available. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/MetricDimension +type MetricDimension struct { + _ struct{} `type:"structure"` + + // The dimension name. + Key *string `type:"string"` + + // The dimension value. + Value *string `type:"string"` +} + +// String returns the string representation +func (s MetricDimension) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MetricDimension) GoString() string { + return s.String() +} + +// SetKey sets the Key field's value. +func (s *MetricDimension) SetKey(v string) *MetricDimension { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *MetricDimension) SetValue(v string) *MetricDimension { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ModifyInstanceFleetInput +type ModifyInstanceFleetInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the cluster. + // + // ClusterId is a required field + ClusterId *string `type:"string" required:"true"` + + // The unique identifier of the instance fleet. + // + // InstanceFleet is a required field + InstanceFleet *InstanceFleetModifyConfig `type:"structure" required:"true"` +} + +// String returns the string representation +func (s ModifyInstanceFleetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyInstanceFleetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyInstanceFleetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyInstanceFleetInput"} + if s.ClusterId == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterId")) + } + if s.InstanceFleet == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceFleet")) + } + if s.InstanceFleet != nil { + if err := s.InstanceFleet.Validate(); err != nil { + invalidParams.AddNested("InstanceFleet", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClusterId sets the ClusterId field's value. +func (s *ModifyInstanceFleetInput) SetClusterId(v string) *ModifyInstanceFleetInput { + s.ClusterId = &v + return s +} + +// SetInstanceFleet sets the InstanceFleet field's value. +func (s *ModifyInstanceFleetInput) SetInstanceFleet(v *InstanceFleetModifyConfig) *ModifyInstanceFleetInput { + s.InstanceFleet = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ModifyInstanceFleetOutput +type ModifyInstanceFleetOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s ModifyInstanceFleetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyInstanceFleetOutput) GoString() string { + return s.String() +} + +// Change the size of some instance groups. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ModifyInstanceGroupsInput +type ModifyInstanceGroupsInput struct { + _ struct{} `type:"structure"` + + // The ID of the cluster to which the instance group belongs. + ClusterId *string `type:"string"` + + // Instance groups to change. + InstanceGroups []*InstanceGroupModifyConfig `type:"list"` +} + +// String returns the string representation +func (s ModifyInstanceGroupsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyInstanceGroupsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyInstanceGroupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyInstanceGroupsInput"} + if s.InstanceGroups != nil { + for i, v := range s.InstanceGroups { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InstanceGroups", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClusterId sets the ClusterId field's value. +func (s *ModifyInstanceGroupsInput) SetClusterId(v string) *ModifyInstanceGroupsInput { + s.ClusterId = &v + return s +} + +// SetInstanceGroups sets the InstanceGroups field's value. +func (s *ModifyInstanceGroupsInput) SetInstanceGroups(v []*InstanceGroupModifyConfig) *ModifyInstanceGroupsInput { + s.InstanceGroups = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ModifyInstanceGroupsOutput +type ModifyInstanceGroupsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s ModifyInstanceGroupsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyInstanceGroupsOutput) GoString() string { + return s.String() +} + +// The Amazon EC2 Availability Zone configuration of the cluster (job flow). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/PlacementType +type PlacementType struct { + _ struct{} `type:"structure"` + + // The Amazon EC2 Availability Zone for the cluster. AvailabilityZone is used + // for uniform instance groups, while AvailabilityZones (plural) is used for + // instance fleets. + AvailabilityZone *string `type:"string"` + + // When multiple Availability Zones are specified, Amazon EMR evaluates them + // and launches instances in the optimal Availability Zone. AvailabilityZones + // is used for instance fleets, while AvailabilityZone (singular) is used for + // uniform instance groups. + // + // The instance fleet configuration is available only in Amazon EMR versions + // 4.8.0 and later, excluding 5.0.x versions. + AvailabilityZones []*string `type:"list"` +} + +// String returns the string representation +func (s PlacementType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlacementType) GoString() string { + return s.String() +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *PlacementType) SetAvailabilityZone(v string) *PlacementType { + s.AvailabilityZone = &v + return s +} + +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *PlacementType) SetAvailabilityZones(v []*string) *PlacementType { + s.AvailabilityZones = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/PutAutoScalingPolicyInput +type PutAutoScalingPolicyInput struct { + _ struct{} `type:"structure"` + + // Specifies the definition of the automatic scaling policy. + // + // AutoScalingPolicy is a required field + AutoScalingPolicy *AutoScalingPolicy `type:"structure" required:"true"` + + // Specifies the ID of a cluster. The instance group to which the automatic + // scaling policy is applied is within this cluster. + // + // ClusterId is a required field + ClusterId *string `type:"string" required:"true"` + + // Specifies the ID of the instance group to which the automatic scaling policy + // is applied. + // + // InstanceGroupId is a required field + InstanceGroupId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s PutAutoScalingPolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutAutoScalingPolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutAutoScalingPolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutAutoScalingPolicyInput"} + if s.AutoScalingPolicy == nil { + invalidParams.Add(request.NewErrParamRequired("AutoScalingPolicy")) + } + if s.ClusterId == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterId")) + } + if s.InstanceGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceGroupId")) + } + if s.AutoScalingPolicy != nil { + if err := s.AutoScalingPolicy.Validate(); err != nil { + invalidParams.AddNested("AutoScalingPolicy", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAutoScalingPolicy sets the AutoScalingPolicy field's value. +func (s *PutAutoScalingPolicyInput) SetAutoScalingPolicy(v *AutoScalingPolicy) *PutAutoScalingPolicyInput { + s.AutoScalingPolicy = v + return s +} + +// SetClusterId sets the ClusterId field's value. +func (s *PutAutoScalingPolicyInput) SetClusterId(v string) *PutAutoScalingPolicyInput { + s.ClusterId = &v + return s +} + +// SetInstanceGroupId sets the InstanceGroupId field's value. +func (s *PutAutoScalingPolicyInput) SetInstanceGroupId(v string) *PutAutoScalingPolicyInput { + s.InstanceGroupId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/PutAutoScalingPolicyOutput +type PutAutoScalingPolicyOutput struct { _ struct{} `type:"structure"` - // The pagination token that indicates the next set of results to retrieve. - Marker *string `type:"string"` + // The automatic scaling policy definition. + AutoScalingPolicy *AutoScalingPolicyDescription `type:"structure"` - // The filtered list of steps for the cluster. - Steps []*StepSummary `type:"list"` + // Specifies the ID of a cluster. The instance group to which the automatic + // scaling policy is applied is within this cluster. + ClusterId *string `type:"string"` + + // Specifies the ID of the instance group to which the scaling policy is applied. + InstanceGroupId *string `type:"string"` } // String returns the string representation -func (s ListStepsOutput) String() string { +func (s PutAutoScalingPolicyOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListStepsOutput) GoString() string { +func (s PutAutoScalingPolicyOutput) GoString() string { return s.String() } -// Change the size of some instance groups. -type ModifyInstanceGroupsInput struct { +// SetAutoScalingPolicy sets the AutoScalingPolicy field's value. +func (s *PutAutoScalingPolicyOutput) SetAutoScalingPolicy(v *AutoScalingPolicyDescription) *PutAutoScalingPolicyOutput { + s.AutoScalingPolicy = v + return s +} + +// SetClusterId sets the ClusterId field's value. +func (s *PutAutoScalingPolicyOutput) SetClusterId(v string) *PutAutoScalingPolicyOutput { + s.ClusterId = &v + return s +} + +// SetInstanceGroupId sets the InstanceGroupId field's value. +func (s *PutAutoScalingPolicyOutput) SetInstanceGroupId(v string) *PutAutoScalingPolicyOutput { + s.InstanceGroupId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RemoveAutoScalingPolicyInput +type RemoveAutoScalingPolicyInput struct { _ struct{} `type:"structure"` - // Instance groups to change. - InstanceGroups []*InstanceGroupModifyConfig `type:"list"` + // Specifies the ID of a cluster. The instance group to which the automatic + // scaling policy is applied is within this cluster. + // + // ClusterId is a required field + ClusterId *string `type:"string" required:"true"` + + // Specifies the ID of the instance group to which the scaling policy is applied. + // + // InstanceGroupId is a required field + InstanceGroupId *string `type:"string" required:"true"` } // String returns the string representation -func (s ModifyInstanceGroupsInput) String() string { +func (s RemoveAutoScalingPolicyInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ModifyInstanceGroupsInput) GoString() string { +func (s RemoveAutoScalingPolicyInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyInstanceGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyInstanceGroupsInput"} - if s.InstanceGroups != nil { - for i, v := range s.InstanceGroups { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InstanceGroups", i), err.(request.ErrInvalidParams)) - } - } +func (s *RemoveAutoScalingPolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RemoveAutoScalingPolicyInput"} + if s.ClusterId == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterId")) + } + if s.InstanceGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceGroupId")) } if invalidParams.Len() > 0 { @@ -3992,54 +7899,35 @@ func (s *ModifyInstanceGroupsInput) Validate() error { return nil } -type ModifyInstanceGroupsOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s ModifyInstanceGroupsOutput) String() string { - return awsutil.Prettify(s) +// SetClusterId sets the ClusterId field's value. +func (s *RemoveAutoScalingPolicyInput) SetClusterId(v string) *RemoveAutoScalingPolicyInput { + s.ClusterId = &v + return s } -// GoString returns the string representation -func (s ModifyInstanceGroupsOutput) GoString() string { - return s.String() +// SetInstanceGroupId sets the InstanceGroupId field's value. +func (s *RemoveAutoScalingPolicyInput) SetInstanceGroupId(v string) *RemoveAutoScalingPolicyInput { + s.InstanceGroupId = &v + return s } -// The Amazon EC2 location for the job flow. -type PlacementType struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RemoveAutoScalingPolicyOutput +type RemoveAutoScalingPolicyOutput struct { _ struct{} `type:"structure"` - - // The Amazon EC2 Availability Zone for the job flow. - // - // AvailabilityZone is a required field - AvailabilityZone *string `type:"string" required:"true"` } // String returns the string representation -func (s PlacementType) String() string { +func (s RemoveAutoScalingPolicyOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PlacementType) GoString() string { +func (s RemoveAutoScalingPolicyOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PlacementType) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PlacementType"} - if s.AvailabilityZone == nil { - invalidParams.Add(request.NewErrParamRequired("AvailabilityZone")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // This input identifies a cluster and a list of tags to remove. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RemoveTagsInput type RemoveTagsInput struct { _ struct{} `type:"structure"` @@ -4081,7 +7969,20 @@ func (s *RemoveTagsInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *RemoveTagsInput) SetResourceId(v string) *RemoveTagsInput { + s.ResourceId = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsInput) SetTagKeys(v []*string) *RemoveTagsInput { + s.TagKeys = v + return s +} + // This output indicates the result of removing tags from a resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RemoveTagsOutput type RemoveTagsOutput struct { _ struct{} `type:"structure"` } @@ -4097,6 +7998,7 @@ func (s RemoveTagsOutput) GoString() string { } // Input to the RunJobFlow operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RunJobFlowInput type RunJobFlowInput struct { _ struct{} `type:"structure"` @@ -4106,38 +8008,46 @@ type RunJobFlowInput struct { // For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, // use ReleaseLabel. // - // The version of the Amazon Machine Image (AMI) to use when launching Amazon + // The version of the Amazon Machine Image (AMI) to use when launching Amazon // EC2 instances in the job flow. The following values are valid: // - // The version number of the AMI to use, for example, "2.0." + // * The version number of the AMI to use, for example, "2.0." // - // If the AMI supports multiple versions of Hadoop (for example, AMI 1.0 - // supports both Hadoop 0.18 and 0.20) you can use the JobFlowInstancesConfig - // HadoopVersion parameter to modify the version of Hadoop from the defaults - // shown above. + // If the AMI supports multiple versions of Hadoop (for example, AMI 1.0 supports + // both Hadoop 0.18 and 0.20) you can use the JobFlowInstancesConfigHadoopVersion + // parameter to modify the version of Hadoop from the defaults shown above. // // For details about the AMI versions currently supported by Amazon Elastic - // MapReduce, go to AMI Versions Supported in Elastic MapReduce (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/EnvironmentConfig_AMIVersion.html#ami-versions-supported) - // in the Amazon Elastic MapReduce Developer's Guide. + // MapReduce, see AMI Versions Supported in Elastic MapReduce (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/EnvironmentConfig_AMIVersion.html#ami-versions-supported) + // in the Amazon Elastic MapReduce Developer Guide. + // + // Previously, the EMR AMI version API parameter options allowed you to use + // latest for the latest AMI version rather than specify a numerical value. + // Some regions no longer support this deprecated option as they only have a + // newer release label version of EMR, which requires you to specify an EMR + // release label release (EMR 4.x or later). AmiVersion *string `type:"string"` // Amazon EMR releases 4.x or later. // - // A list of applications for the cluster. Valid values are: "Hadoop", "Hive", + // A list of applications for the cluster. Valid values are: "Hadoop", "Hive", // "Mahout", "Pig", and "Spark." They are case insensitive. Applications []*Application `type:"list"` - // A list of bootstrap actions that will be run before Hadoop is started on - // the cluster nodes. + // An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole. + // The IAM role provides permissions that the automatic scaling feature requires + // to launch and terminate EC2 instances in an instance group. + AutoScalingRole *string `type:"string"` + + // A list of bootstrap actions to run before Hadoop starts on the cluster nodes. BootstrapActions []*BootstrapActionConfig `type:"list"` // Amazon EMR releases 4.x or later. // - // The list of configurations supplied for the EMR cluster you are creating. + // The list of configurations supplied for the EMR cluster you are creating. Configurations []*Configuration `type:"list"` - // A specification of the number and type of Amazon EC2 instances on which to - // run the job flow. + // A specification of the number and type of Amazon EC2 instances. // // Instances is a required field Instances *JobFlowInstancesConfig `type:"structure" required:"true"` @@ -4160,37 +8070,51 @@ type RunJobFlowInput struct { // For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, // use Applications. // - // A list of strings that indicates third-party software to use with the job + // A list of strings that indicates third-party software to use with the job // flow that accepts a user argument list. EMR accepts and forwards the argument // list to the corresponding installation script as bootstrap action arguments. - // For more information, see Launch a Job Flow on the MapR Distribution for - // Hadoop (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-mapr.html). - // Currently supported values are: + // For more information, see "Launch a Job Flow on the MapR Distribution for + // Hadoop" in the Amazon EMR Developer Guide (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/emr/latest/DeveloperGuide/emr-dg.pdf). + // Supported values are: // - // "mapr-m3" - launch the cluster using MapR M3 Edition. + // * "mapr-m3" - launch the cluster using MapR M3 Edition. // - // "mapr-m5" - launch the cluster using MapR M5 Edition. + // * "mapr-m5" - launch the cluster using MapR M5 Edition. // - // "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - // - launch the job flow using MapR M3 or M5 Edition respectively. + // * "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" + // - launch the job flow using MapR M3 or M5 Edition respectively. // - // "mapr-m7" - launch the cluster using MapR M7 Edition. + // * "mapr-m7" - launch the cluster using MapR M7 Edition. // - // "hunk" - launch the cluster with the Hunk Big Data Analtics Platform. + // * "hunk" - launch the cluster with the Hunk Big Data Analtics Platform. // - // "hue"- launch the cluster with Hue installed. + // * "hue"- launch the cluster with Hue installed. // - // "spark" - launch the cluster with Apache Spark installed. + // * "spark" - launch the cluster with Apache Spark installed. // - // "ganglia" - launch the cluster with the Ganglia Monitoring System installed. + // * "ganglia" - launch the cluster with the Ganglia Monitoring System installed. NewSupportedProducts []*SupportedProductConfig `type:"list"` // Amazon EMR releases 4.x or later. // - // The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x + // The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x // AMIs, use amiVersion instead instead of ReleaseLabel. ReleaseLabel *string `type:"string"` + // Specifies the way that individual Amazon EC2 instances terminate when an + // automatic scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR + // indicates that Amazon EMR terminates nodes at the instance-hour boundary, + // regardless of when the request to terminate the instance was submitted. This + // option is only available with Amazon EMR 5.1.0 and later and is the default + // for clusters created using that version. TERMINATE_AT_TASK_COMPLETION indicates + // that Amazon EMR blacklists and drains tasks from nodes before terminating + // the Amazon EC2 instances, regardless of the instance-hour boundary. With + // either behavior, Amazon EMR removes the least active nodes first and blocks + // instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION + // available only in Amazon EMR version 4.1.0 and later, and is the default + // for versions of Amazon EMR earlier than 5.1.0. + ScaleDownBehavior *string `type:"string" enum:"ScaleDownBehavior"` + // The name of a security configuration to apply to the cluster. SecurityConfiguration *string `type:"string"` @@ -4198,30 +8122,29 @@ type RunJobFlowInput struct { // resources on your behalf. ServiceRole *string `type:"string"` - // A list of steps to be executed by the job flow. + // A list of steps to run. Steps []*StepConfig `type:"list"` // For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, // use Applications. // - // A list of strings that indicates third-party software to use with the job - // flow. For more information, go to Use Third Party Applications with Amazon - // EMR (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-supported-products.html). + // A list of strings that indicates third-party software to use. For more information, + // see Use Third Party Applications with Amazon EMR (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-supported-products.html). // Currently supported values are: // - // "mapr-m3" - launch the job flow using MapR M3 Edition. + // * "mapr-m3" - launch the job flow using MapR M3 Edition. // - // "mapr-m5" - launch the job flow using MapR M5 Edition. + // * "mapr-m5" - launch the job flow using MapR M5 Edition. SupportedProducts []*string `type:"list"` // A list of tags to associate with a cluster and propagate to Amazon EC2 instances. Tags []*Tag `type:"list"` - // Whether the job flow is visible to all IAM users of the AWS account associated - // with the job flow. If this value is set to true, all IAM users of that AWS + // Whether the cluster is visible to all IAM users of the AWS account associated + // with the cluster. If this value is set to true, all IAM users of that AWS // account can view and (if they have the proper policy permissions set) manage - // the job flow. If it is set to false, only the IAM user that created the job - // flow can view and manage it. + // the cluster. If it is set to false, only the IAM user that created the cluster + // can view and manage it. VisibleToAllUsers *bool `type:"boolean"` } @@ -4276,7 +8199,122 @@ func (s *RunJobFlowInput) Validate() error { return nil } +// SetAdditionalInfo sets the AdditionalInfo field's value. +func (s *RunJobFlowInput) SetAdditionalInfo(v string) *RunJobFlowInput { + s.AdditionalInfo = &v + return s +} + +// SetAmiVersion sets the AmiVersion field's value. +func (s *RunJobFlowInput) SetAmiVersion(v string) *RunJobFlowInput { + s.AmiVersion = &v + return s +} + +// SetApplications sets the Applications field's value. +func (s *RunJobFlowInput) SetApplications(v []*Application) *RunJobFlowInput { + s.Applications = v + return s +} + +// SetAutoScalingRole sets the AutoScalingRole field's value. +func (s *RunJobFlowInput) SetAutoScalingRole(v string) *RunJobFlowInput { + s.AutoScalingRole = &v + return s +} + +// SetBootstrapActions sets the BootstrapActions field's value. +func (s *RunJobFlowInput) SetBootstrapActions(v []*BootstrapActionConfig) *RunJobFlowInput { + s.BootstrapActions = v + return s +} + +// SetConfigurations sets the Configurations field's value. +func (s *RunJobFlowInput) SetConfigurations(v []*Configuration) *RunJobFlowInput { + s.Configurations = v + return s +} + +// SetInstances sets the Instances field's value. +func (s *RunJobFlowInput) SetInstances(v *JobFlowInstancesConfig) *RunJobFlowInput { + s.Instances = v + return s +} + +// SetJobFlowRole sets the JobFlowRole field's value. +func (s *RunJobFlowInput) SetJobFlowRole(v string) *RunJobFlowInput { + s.JobFlowRole = &v + return s +} + +// SetLogUri sets the LogUri field's value. +func (s *RunJobFlowInput) SetLogUri(v string) *RunJobFlowInput { + s.LogUri = &v + return s +} + +// SetName sets the Name field's value. +func (s *RunJobFlowInput) SetName(v string) *RunJobFlowInput { + s.Name = &v + return s +} + +// SetNewSupportedProducts sets the NewSupportedProducts field's value. +func (s *RunJobFlowInput) SetNewSupportedProducts(v []*SupportedProductConfig) *RunJobFlowInput { + s.NewSupportedProducts = v + return s +} + +// SetReleaseLabel sets the ReleaseLabel field's value. +func (s *RunJobFlowInput) SetReleaseLabel(v string) *RunJobFlowInput { + s.ReleaseLabel = &v + return s +} + +// SetScaleDownBehavior sets the ScaleDownBehavior field's value. +func (s *RunJobFlowInput) SetScaleDownBehavior(v string) *RunJobFlowInput { + s.ScaleDownBehavior = &v + return s +} + +// SetSecurityConfiguration sets the SecurityConfiguration field's value. +func (s *RunJobFlowInput) SetSecurityConfiguration(v string) *RunJobFlowInput { + s.SecurityConfiguration = &v + return s +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *RunJobFlowInput) SetServiceRole(v string) *RunJobFlowInput { + s.ServiceRole = &v + return s +} + +// SetSteps sets the Steps field's value. +func (s *RunJobFlowInput) SetSteps(v []*StepConfig) *RunJobFlowInput { + s.Steps = v + return s +} + +// SetSupportedProducts sets the SupportedProducts field's value. +func (s *RunJobFlowInput) SetSupportedProducts(v []*string) *RunJobFlowInput { + s.SupportedProducts = v + return s +} + +// SetTags sets the Tags field's value. +func (s *RunJobFlowInput) SetTags(v []*Tag) *RunJobFlowInput { + s.Tags = v + return s +} + +// SetVisibleToAllUsers sets the VisibleToAllUsers field's value. +func (s *RunJobFlowInput) SetVisibleToAllUsers(v bool) *RunJobFlowInput { + s.VisibleToAllUsers = &v + return s +} + // The result of the RunJobFlow operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RunJobFlowOutput type RunJobFlowOutput struct { _ struct{} `type:"structure"` @@ -4289,16 +8327,283 @@ func (s RunJobFlowOutput) String() string { return awsutil.Prettify(s) } -// GoString returns the string representation -func (s RunJobFlowOutput) GoString() string { - return s.String() +// GoString returns the string representation +func (s RunJobFlowOutput) GoString() string { + return s.String() +} + +// SetJobFlowId sets the JobFlowId field's value. +func (s *RunJobFlowOutput) SetJobFlowId(v string) *RunJobFlowOutput { + s.JobFlowId = &v + return s +} + +// The type of adjustment the automatic scaling activity makes when triggered, +// and the periodicity of the adjustment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ScalingAction +type ScalingAction struct { + _ struct{} `type:"structure"` + + // Not available for instance groups. Instance groups use the market type specified + // for the group. + Market *string `type:"string" enum:"MarketType"` + + // The type of adjustment the automatic scaling activity makes when triggered, + // and the periodicity of the adjustment. + // + // SimpleScalingPolicyConfiguration is a required field + SimpleScalingPolicyConfiguration *SimpleScalingPolicyConfiguration `type:"structure" required:"true"` +} + +// String returns the string representation +func (s ScalingAction) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ScalingAction) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ScalingAction) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ScalingAction"} + if s.SimpleScalingPolicyConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("SimpleScalingPolicyConfiguration")) + } + if s.SimpleScalingPolicyConfiguration != nil { + if err := s.SimpleScalingPolicyConfiguration.Validate(); err != nil { + invalidParams.AddNested("SimpleScalingPolicyConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMarket sets the Market field's value. +func (s *ScalingAction) SetMarket(v string) *ScalingAction { + s.Market = &v + return s +} + +// SetSimpleScalingPolicyConfiguration sets the SimpleScalingPolicyConfiguration field's value. +func (s *ScalingAction) SetSimpleScalingPolicyConfiguration(v *SimpleScalingPolicyConfiguration) *ScalingAction { + s.SimpleScalingPolicyConfiguration = v + return s +} + +// The upper and lower EC2 instance limits for an automatic scaling policy. +// Automatic scaling activities triggered by automatic scaling rules will not +// cause an instance group to grow above or below these limits. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ScalingConstraints +type ScalingConstraints struct { + _ struct{} `type:"structure"` + + // The upper boundary of EC2 instances in an instance group beyond which scaling + // activities are not allowed to grow. Scale-out activities will not add instances + // beyond this boundary. + // + // MaxCapacity is a required field + MaxCapacity *int64 `type:"integer" required:"true"` + + // The lower boundary of EC2 instances in an instance group below which scaling + // activities are not allowed to shrink. Scale-in activities will not terminate + // instances below this boundary. + // + // MinCapacity is a required field + MinCapacity *int64 `type:"integer" required:"true"` +} + +// String returns the string representation +func (s ScalingConstraints) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ScalingConstraints) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ScalingConstraints) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ScalingConstraints"} + if s.MaxCapacity == nil { + invalidParams.Add(request.NewErrParamRequired("MaxCapacity")) + } + if s.MinCapacity == nil { + invalidParams.Add(request.NewErrParamRequired("MinCapacity")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxCapacity sets the MaxCapacity field's value. +func (s *ScalingConstraints) SetMaxCapacity(v int64) *ScalingConstraints { + s.MaxCapacity = &v + return s +} + +// SetMinCapacity sets the MinCapacity field's value. +func (s *ScalingConstraints) SetMinCapacity(v int64) *ScalingConstraints { + s.MinCapacity = &v + return s +} + +// A scale-in or scale-out rule that defines scaling activity, including the +// CloudWatch metric alarm that triggers activity, how EC2 instances are added +// or removed, and the periodicity of adjustments. The automatic scaling policy +// for an instance group can comprise one or more automatic scaling rules. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ScalingRule +type ScalingRule struct { + _ struct{} `type:"structure"` + + // The conditions that trigger an automatic scaling activity. + // + // Action is a required field + Action *ScalingAction `type:"structure" required:"true"` + + // A friendly, more verbose description of the automatic scaling rule. + Description *string `type:"string"` + + // The name used to identify an automatic scaling rule. Rule names must be unique + // within a scaling policy. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The CloudWatch alarm definition that determines when automatic scaling activity + // is triggered. + // + // Trigger is a required field + Trigger *ScalingTrigger `type:"structure" required:"true"` +} + +// String returns the string representation +func (s ScalingRule) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ScalingRule) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ScalingRule) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ScalingRule"} + if s.Action == nil { + invalidParams.Add(request.NewErrParamRequired("Action")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Trigger == nil { + invalidParams.Add(request.NewErrParamRequired("Trigger")) + } + if s.Action != nil { + if err := s.Action.Validate(); err != nil { + invalidParams.AddNested("Action", err.(request.ErrInvalidParams)) + } + } + if s.Trigger != nil { + if err := s.Trigger.Validate(); err != nil { + invalidParams.AddNested("Trigger", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAction sets the Action field's value. +func (s *ScalingRule) SetAction(v *ScalingAction) *ScalingRule { + s.Action = v + return s +} + +// SetDescription sets the Description field's value. +func (s *ScalingRule) SetDescription(v string) *ScalingRule { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *ScalingRule) SetName(v string) *ScalingRule { + s.Name = &v + return s +} + +// SetTrigger sets the Trigger field's value. +func (s *ScalingRule) SetTrigger(v *ScalingTrigger) *ScalingRule { + s.Trigger = v + return s +} + +// The conditions that trigger an automatic scaling activity. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ScalingTrigger +type ScalingTrigger struct { + _ struct{} `type:"structure"` + + // The definition of a CloudWatch metric alarm. When the defined alarm conditions + // are met along with other trigger parameters, scaling activity begins. + // + // CloudWatchAlarmDefinition is a required field + CloudWatchAlarmDefinition *CloudWatchAlarmDefinition `type:"structure" required:"true"` +} + +// String returns the string representation +func (s ScalingTrigger) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ScalingTrigger) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ScalingTrigger) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ScalingTrigger"} + if s.CloudWatchAlarmDefinition == nil { + invalidParams.Add(request.NewErrParamRequired("CloudWatchAlarmDefinition")) + } + if s.CloudWatchAlarmDefinition != nil { + if err := s.CloudWatchAlarmDefinition.Validate(); err != nil { + invalidParams.AddNested("CloudWatchAlarmDefinition", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCloudWatchAlarmDefinition sets the CloudWatchAlarmDefinition field's value. +func (s *ScalingTrigger) SetCloudWatchAlarmDefinition(v *CloudWatchAlarmDefinition) *ScalingTrigger { + s.CloudWatchAlarmDefinition = v + return s } +// Configuration of the script to run during a bootstrap action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ScriptBootstrapActionConfig type ScriptBootstrapActionConfig struct { _ struct{} `type:"structure"` + // A list of command line arguments to pass to the bootstrap action script. Args []*string `type:"list"` + // Location of the script to run during a bootstrap action. Can be either a + // location in Amazon S3 or on a local file system. + // // Path is a required field Path *string `type:"string" required:"true"` } @@ -4326,7 +8631,20 @@ func (s *ScriptBootstrapActionConfig) Validate() error { return nil } +// SetArgs sets the Args field's value. +func (s *ScriptBootstrapActionConfig) SetArgs(v []*string) *ScriptBootstrapActionConfig { + s.Args = v + return s +} + +// SetPath sets the Path field's value. +func (s *ScriptBootstrapActionConfig) SetPath(v string) *ScriptBootstrapActionConfig { + s.Path = &v + return s +} + // The creation date and time, and name, of a security configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SecurityConfigurationSummary type SecurityConfigurationSummary struct { _ struct{} `type:"structure"` @@ -4347,20 +8665,33 @@ func (s SecurityConfigurationSummary) GoString() string { return s.String() } +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *SecurityConfigurationSummary) SetCreationDateTime(v time.Time) *SecurityConfigurationSummary { + s.CreationDateTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *SecurityConfigurationSummary) SetName(v string) *SecurityConfigurationSummary { + s.Name = &v + return s +} + // The input argument to the TerminationProtection operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SetTerminationProtectionInput type SetTerminationProtectionInput struct { _ struct{} `type:"structure"` - // A list of strings that uniquely identify the job flows to protect. This identifier + // A list of strings that uniquely identify the clusters to protect. This identifier // is returned by RunJobFlow and can also be obtained from DescribeJobFlows // . // // JobFlowIds is a required field JobFlowIds []*string `type:"list" required:"true"` - // A Boolean that indicates whether to protect the job flow and prevent the - // Amazon EC2 instances in the cluster from shutting down due to API calls, - // user intervention, or job-flow error. + // A Boolean that indicates whether to protect the cluster and prevent the Amazon + // EC2 instances in the cluster from shutting down due to API calls, user intervention, + // or job-flow error. // // TerminationProtected is a required field TerminationProtected *bool `type:"boolean" required:"true"` @@ -4392,6 +8723,19 @@ func (s *SetTerminationProtectionInput) Validate() error { return nil } +// SetJobFlowIds sets the JobFlowIds field's value. +func (s *SetTerminationProtectionInput) SetJobFlowIds(v []*string) *SetTerminationProtectionInput { + s.JobFlowIds = v + return s +} + +// SetTerminationProtected sets the TerminationProtected field's value. +func (s *SetTerminationProtectionInput) SetTerminationProtected(v bool) *SetTerminationProtectionInput { + s.TerminationProtected = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SetTerminationProtectionOutput type SetTerminationProtectionOutput struct { _ struct{} `type:"structure"` } @@ -4407,6 +8751,7 @@ func (s SetTerminationProtectionOutput) GoString() string { } // The input to the SetVisibleToAllUsers action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SetVisibleToAllUsersInput type SetVisibleToAllUsersInput struct { _ struct{} `type:"structure"` @@ -4415,11 +8760,11 @@ type SetVisibleToAllUsersInput struct { // JobFlowIds is a required field JobFlowIds []*string `type:"list" required:"true"` - // Whether the specified job flows are visible to all IAM users of the AWS account - // associated with the job flow. If this value is set to True, all IAM users + // Whether the specified clusters are visible to all IAM users of the AWS account + // associated with the cluster. If this value is set to True, all IAM users // of that AWS account can view and, if they have the proper IAM policy permissions - // set, manage the job flows. If it is set to False, only the IAM user that - // created a job flow can view and manage it. + // set, manage the clusters. If it is set to False, only the IAM user that created + // a cluster can view and manage it. // // VisibleToAllUsers is a required field VisibleToAllUsers *bool `type:"boolean" required:"true"` @@ -4451,6 +8796,19 @@ func (s *SetVisibleToAllUsersInput) Validate() error { return nil } +// SetJobFlowIds sets the JobFlowIds field's value. +func (s *SetVisibleToAllUsersInput) SetJobFlowIds(v []*string) *SetVisibleToAllUsersInput { + s.JobFlowIds = v + return s +} + +// SetVisibleToAllUsers sets the VisibleToAllUsers field's value. +func (s *SetVisibleToAllUsersInput) SetVisibleToAllUsers(v bool) *SetVisibleToAllUsersInput { + s.VisibleToAllUsers = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SetVisibleToAllUsersOutput type SetVisibleToAllUsersOutput struct { _ struct{} `type:"structure"` } @@ -4467,6 +8825,7 @@ func (s SetVisibleToAllUsersOutput) GoString() string { // Policy for customizing shrink operations. Allows configuration of decommissioning // timeout and targeted instance shrinking. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ShrinkPolicy type ShrinkPolicy struct { _ struct{} `type:"structure"` @@ -4489,7 +8848,178 @@ func (s ShrinkPolicy) GoString() string { return s.String() } +// SetDecommissionTimeout sets the DecommissionTimeout field's value. +func (s *ShrinkPolicy) SetDecommissionTimeout(v int64) *ShrinkPolicy { + s.DecommissionTimeout = &v + return s +} + +// SetInstanceResizePolicy sets the InstanceResizePolicy field's value. +func (s *ShrinkPolicy) SetInstanceResizePolicy(v *InstanceResizePolicy) *ShrinkPolicy { + s.InstanceResizePolicy = v + return s +} + +// An automatic scaling configuration, which describes how the policy adds or +// removes instances, the cooldown period, and the number of EC2 instances that +// will be added each time the CloudWatch metric alarm condition is satisfied. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SimpleScalingPolicyConfiguration +type SimpleScalingPolicyConfiguration struct { + _ struct{} `type:"structure"` + + // The way in which EC2 instances are added (if ScalingAdjustment is a positive + // number) or terminated (if ScalingAdjustment is a negative number) each time + // the scaling activity is triggered. CHANGE_IN_CAPACITY is the default. CHANGE_IN_CAPACITY + // indicates that the EC2 instance count increments or decrements by ScalingAdjustment, + // which should be expressed as an integer. PERCENT_CHANGE_IN_CAPACITY indicates + // the instance count increments or decrements by the percentage specified by + // ScalingAdjustment, which should be expressed as a decimal. For example, 0.20 + // indicates an increase in 20% increments of cluster capacity. EXACT_CAPACITY + // indicates the scaling activity results in an instance group with the number + // of EC2 instances specified by ScalingAdjustment, which should be expressed + // as a positive integer. + AdjustmentType *string `type:"string" enum:"AdjustmentType"` + + // The amount of time, in seconds, after a scaling activity completes before + // any further trigger-related scaling activities can start. The default value + // is 0. + CoolDown *int64 `type:"integer"` + + // The amount by which to scale in or scale out, based on the specified AdjustmentType. + // A positive value adds to the instance group's EC2 instance count while a + // negative number removes instances. If AdjustmentType is set to EXACT_CAPACITY, + // the number should only be a positive integer. If AdjustmentType is set to + // PERCENT_CHANGE_IN_CAPACITY, the value should express the percentage as a + // decimal. For example, -0.20 indicates a decrease in 20% increments of cluster + // capacity. + // + // ScalingAdjustment is a required field + ScalingAdjustment *int64 `type:"integer" required:"true"` +} + +// String returns the string representation +func (s SimpleScalingPolicyConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SimpleScalingPolicyConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SimpleScalingPolicyConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SimpleScalingPolicyConfiguration"} + if s.ScalingAdjustment == nil { + invalidParams.Add(request.NewErrParamRequired("ScalingAdjustment")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAdjustmentType sets the AdjustmentType field's value. +func (s *SimpleScalingPolicyConfiguration) SetAdjustmentType(v string) *SimpleScalingPolicyConfiguration { + s.AdjustmentType = &v + return s +} + +// SetCoolDown sets the CoolDown field's value. +func (s *SimpleScalingPolicyConfiguration) SetCoolDown(v int64) *SimpleScalingPolicyConfiguration { + s.CoolDown = &v + return s +} + +// SetScalingAdjustment sets the ScalingAdjustment field's value. +func (s *SimpleScalingPolicyConfiguration) SetScalingAdjustment(v int64) *SimpleScalingPolicyConfiguration { + s.ScalingAdjustment = &v + return s +} + +// The launch specification for Spot instances in the instance fleet, which +// determines the defined duration and provisioning timeout behavior. +// +// The instance fleet configuration is available only in Amazon EMR versions +// 4.8.0 and later, excluding 5.0.x versions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SpotProvisioningSpecification +type SpotProvisioningSpecification struct { + _ struct{} `type:"structure"` + + // The defined duration for Spot instances (also known as Spot blocks) in minutes. + // When specified, the Spot instance does not terminate before the defined duration + // expires, and defined duration pricing for Spot instances applies. Valid values + // are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as + // a Spot instance receives its instance ID. At the end of the duration, Amazon + // EC2 marks the Spot instance for termination and provides a Spot instance + // termination notice, which gives the instance a two-minute warning before + // it terminates. + BlockDurationMinutes *int64 `type:"integer"` + + // The action to take when TargetSpotCapacity has not been fulfilled when the + // TimeoutDurationMinutes has expired. Spot instances are not uprovisioned within + // the Spot provisioining timeout. Valid values are TERMINATE_CLUSTER and SWITCH_TO_ON_DEMAND + // to fulfill the remaining capacity. + // + // TimeoutAction is a required field + TimeoutAction *string `type:"string" required:"true" enum:"SpotProvisioningTimeoutAction"` + + // The spot provisioning timeout period in minutes. If Spot instances are not + // provisioned within this time period, the TimeOutAction is taken. Minimum + // value is 5 and maximum value is 1440. The timeout applies only during initial + // provisioning, when the cluster is first created. + // + // TimeoutDurationMinutes is a required field + TimeoutDurationMinutes *int64 `type:"integer" required:"true"` +} + +// String returns the string representation +func (s SpotProvisioningSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SpotProvisioningSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SpotProvisioningSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SpotProvisioningSpecification"} + if s.TimeoutAction == nil { + invalidParams.Add(request.NewErrParamRequired("TimeoutAction")) + } + if s.TimeoutDurationMinutes == nil { + invalidParams.Add(request.NewErrParamRequired("TimeoutDurationMinutes")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBlockDurationMinutes sets the BlockDurationMinutes field's value. +func (s *SpotProvisioningSpecification) SetBlockDurationMinutes(v int64) *SpotProvisioningSpecification { + s.BlockDurationMinutes = &v + return s +} + +// SetTimeoutAction sets the TimeoutAction field's value. +func (s *SpotProvisioningSpecification) SetTimeoutAction(v string) *SpotProvisioningSpecification { + s.TimeoutAction = &v + return s +} + +// SetTimeoutDurationMinutes sets the TimeoutDurationMinutes field's value. +func (s *SpotProvisioningSpecification) SetTimeoutDurationMinutes(v int64) *SpotProvisioningSpecification { + s.TimeoutDurationMinutes = &v + return s +} + // This represents a step in a cluster. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/Step type Step struct { _ struct{} `type:"structure"` @@ -4520,19 +9050,50 @@ func (s Step) GoString() string { return s.String() } -// Specification of a job flow step. +// SetActionOnFailure sets the ActionOnFailure field's value. +func (s *Step) SetActionOnFailure(v string) *Step { + s.ActionOnFailure = &v + return s +} + +// SetConfig sets the Config field's value. +func (s *Step) SetConfig(v *HadoopStepConfig) *Step { + s.Config = v + return s +} + +// SetId sets the Id field's value. +func (s *Step) SetId(v string) *Step { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *Step) SetName(v string) *Step { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Step) SetStatus(v *StepStatus) *Step { + s.Status = v + return s +} + +// Specification of a cluster (job flow) step. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/StepConfig type StepConfig struct { _ struct{} `type:"structure"` - // The action to take if the job flow step fails. + // The action to take if the step fails. ActionOnFailure *string `type:"string" enum:"ActionOnFailure"` - // The JAR file used for the job flow step. + // The JAR file used for the step. // // HadoopJarStep is a required field HadoopJarStep *HadoopJarStepConfig `type:"structure" required:"true"` - // The name of the job flow step. + // The name of the step. // // Name is a required field Name *string `type:"string" required:"true"` @@ -4569,7 +9130,26 @@ func (s *StepConfig) Validate() error { return nil } +// SetActionOnFailure sets the ActionOnFailure field's value. +func (s *StepConfig) SetActionOnFailure(v string) *StepConfig { + s.ActionOnFailure = &v + return s +} + +// SetHadoopJarStep sets the HadoopJarStep field's value. +func (s *StepConfig) SetHadoopJarStep(v *HadoopJarStepConfig) *StepConfig { + s.HadoopJarStep = v + return s +} + +// SetName sets the Name field's value. +func (s *StepConfig) SetName(v string) *StepConfig { + s.Name = &v + return s +} + // Combines the execution state and configuration of a step. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/StepDetail type StepDetail struct { _ struct{} `type:"structure"` @@ -4594,7 +9174,20 @@ func (s StepDetail) GoString() string { return s.String() } +// SetExecutionStatusDetail sets the ExecutionStatusDetail field's value. +func (s *StepDetail) SetExecutionStatusDetail(v *StepExecutionStatusDetail) *StepDetail { + s.ExecutionStatusDetail = v + return s +} + +// SetStepConfig sets the StepConfig field's value. +func (s *StepDetail) SetStepConfig(v *StepConfig) *StepDetail { + s.StepConfig = v + return s +} + // The execution state of a step. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/StepExecutionStatusDetail type StepExecutionStatusDetail struct { _ struct{} `type:"structure"` @@ -4612,7 +9205,7 @@ type StepExecutionStatusDetail struct { // The start date and time of the step. StartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` - // The state of the job flow step. + // The state of the step. // // State is a required field State *string `type:"string" required:"true" enum:"StepExecutionState"` @@ -4628,7 +9221,38 @@ func (s StepExecutionStatusDetail) GoString() string { return s.String() } +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *StepExecutionStatusDetail) SetCreationDateTime(v time.Time) *StepExecutionStatusDetail { + s.CreationDateTime = &v + return s +} + +// SetEndDateTime sets the EndDateTime field's value. +func (s *StepExecutionStatusDetail) SetEndDateTime(v time.Time) *StepExecutionStatusDetail { + s.EndDateTime = &v + return s +} + +// SetLastStateChangeReason sets the LastStateChangeReason field's value. +func (s *StepExecutionStatusDetail) SetLastStateChangeReason(v string) *StepExecutionStatusDetail { + s.LastStateChangeReason = &v + return s +} + +// SetStartDateTime sets the StartDateTime field's value. +func (s *StepExecutionStatusDetail) SetStartDateTime(v time.Time) *StepExecutionStatusDetail { + s.StartDateTime = &v + return s +} + +// SetState sets the State field's value. +func (s *StepExecutionStatusDetail) SetState(v string) *StepExecutionStatusDetail { + s.State = &v + return s +} + // The details of the step state change reason. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/StepStateChangeReason type StepStateChangeReason struct { _ struct{} `type:"structure"` @@ -4650,7 +9274,20 @@ func (s StepStateChangeReason) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *StepStateChangeReason) SetCode(v string) *StepStateChangeReason { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *StepStateChangeReason) SetMessage(v string) *StepStateChangeReason { + s.Message = &v + return s +} + // The execution status details of the cluster step. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/StepStatus type StepStatus struct { _ struct{} `type:"structure"` @@ -4678,7 +9315,32 @@ func (s StepStatus) GoString() string { return s.String() } +// SetFailureDetails sets the FailureDetails field's value. +func (s *StepStatus) SetFailureDetails(v *FailureDetails) *StepStatus { + s.FailureDetails = v + return s +} + +// SetState sets the State field's value. +func (s *StepStatus) SetState(v string) *StepStatus { + s.State = &v + return s +} + +// SetStateChangeReason sets the StateChangeReason field's value. +func (s *StepStatus) SetStateChangeReason(v *StepStateChangeReason) *StepStatus { + s.StateChangeReason = v + return s +} + +// SetTimeline sets the Timeline field's value. +func (s *StepStatus) SetTimeline(v *StepTimeline) *StepStatus { + s.Timeline = v + return s +} + // The summary of the cluster step. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/StepSummary type StepSummary struct { _ struct{} `type:"structure"` @@ -4709,7 +9371,38 @@ func (s StepSummary) GoString() string { return s.String() } +// SetActionOnFailure sets the ActionOnFailure field's value. +func (s *StepSummary) SetActionOnFailure(v string) *StepSummary { + s.ActionOnFailure = &v + return s +} + +// SetConfig sets the Config field's value. +func (s *StepSummary) SetConfig(v *HadoopStepConfig) *StepSummary { + s.Config = v + return s +} + +// SetId sets the Id field's value. +func (s *StepSummary) SetId(v string) *StepSummary { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *StepSummary) SetName(v string) *StepSummary { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *StepSummary) SetStatus(v *StepStatus) *StepSummary { + s.Status = v + return s +} + // The timeline of the cluster step lifecycle. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/StepTimeline type StepTimeline struct { _ struct{} `type:"structure"` @@ -4733,9 +9426,28 @@ func (s StepTimeline) GoString() string { return s.String() } +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *StepTimeline) SetCreationDateTime(v time.Time) *StepTimeline { + s.CreationDateTime = &v + return s +} + +// SetEndDateTime sets the EndDateTime field's value. +func (s *StepTimeline) SetEndDateTime(v time.Time) *StepTimeline { + s.EndDateTime = &v + return s +} + +// SetStartDateTime sets the StartDateTime field's value. +func (s *StepTimeline) SetStartDateTime(v time.Time) *StepTimeline { + s.StartDateTime = &v + return s +} + // The list of supported product configurations which allow user-supplied arguments. // EMR accepts these arguments and forwards them to the corresponding installation // script as bootstrap action arguments. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SupportedProductConfig type SupportedProductConfig struct { _ struct{} `type:"structure"` @@ -4756,11 +9468,24 @@ func (s SupportedProductConfig) GoString() string { return s.String() } +// SetArgs sets the Args field's value. +func (s *SupportedProductConfig) SetArgs(v []*string) *SupportedProductConfig { + s.Args = v + return s +} + +// SetName sets the Name field's value. +func (s *SupportedProductConfig) SetName(v string) *SupportedProductConfig { + s.Name = &v + return s +} + // A key/value pair containing user-defined metadata that you can associate // with an Amazon EMR resource. Tags make it easier to associate clusters in -// various ways, such as grouping clu\ sters to track your Amazon EMR resource +// various ways, such as grouping clusters to track your Amazon EMR resource // allocation costs. For more information, see Tagging Amazon EMR Resources // (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-plan-tags.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/Tag type Tag struct { _ struct{} `type:"structure"` @@ -4783,7 +9508,20 @@ func (s Tag) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Input to the TerminateJobFlows operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/TerminateJobFlowsInput type TerminateJobFlowsInput struct { _ struct{} `type:"structure"` @@ -4816,6 +9554,13 @@ func (s *TerminateJobFlowsInput) Validate() error { return nil } +// SetJobFlowIds sets the JobFlowIds field's value. +func (s *TerminateJobFlowsInput) SetJobFlowIds(v []*string) *TerminateJobFlowsInput { + s.JobFlowIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/TerminateJobFlowsOutput type TerminateJobFlowsOutput struct { _ struct{} `type:"structure"` } @@ -4830,8 +9575,9 @@ func (s TerminateJobFlowsOutput) GoString() string { return s.String() } -// EBS volume specifications such as volume type, IOPS, and size(GiB) that will -// be requested for the EBS volume attached to an EC2 instance in the cluster. +// EBS volume specifications such as volume type, IOPS, and size (GiB) that +// will be requested for the EBS volume attached to an EC2 instance in the cluster. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/VolumeSpecification type VolumeSpecification struct { _ struct{} `type:"structure"` @@ -4876,6 +9622,24 @@ func (s *VolumeSpecification) Validate() error { return nil } +// SetIops sets the Iops field's value. +func (s *VolumeSpecification) SetIops(v int64) *VolumeSpecification { + s.Iops = &v + return s +} + +// SetSizeInGB sets the SizeInGB field's value. +func (s *VolumeSpecification) SetSizeInGB(v int64) *VolumeSpecification { + s.SizeInGB = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *VolumeSpecification) SetVolumeType(v string) *VolumeSpecification { + s.VolumeType = &v + return s +} + const ( // ActionOnFailureTerminateJobFlow is a ActionOnFailure enum value ActionOnFailureTerminateJobFlow = "TERMINATE_JOB_FLOW" @@ -4890,6 +9654,56 @@ const ( ActionOnFailureContinue = "CONTINUE" ) +const ( + // AdjustmentTypeChangeInCapacity is a AdjustmentType enum value + AdjustmentTypeChangeInCapacity = "CHANGE_IN_CAPACITY" + + // AdjustmentTypePercentChangeInCapacity is a AdjustmentType enum value + AdjustmentTypePercentChangeInCapacity = "PERCENT_CHANGE_IN_CAPACITY" + + // AdjustmentTypeExactCapacity is a AdjustmentType enum value + AdjustmentTypeExactCapacity = "EXACT_CAPACITY" +) + +const ( + // AutoScalingPolicyStatePending is a AutoScalingPolicyState enum value + AutoScalingPolicyStatePending = "PENDING" + + // AutoScalingPolicyStateAttaching is a AutoScalingPolicyState enum value + AutoScalingPolicyStateAttaching = "ATTACHING" + + // AutoScalingPolicyStateAttached is a AutoScalingPolicyState enum value + AutoScalingPolicyStateAttached = "ATTACHED" + + // AutoScalingPolicyStateDetaching is a AutoScalingPolicyState enum value + AutoScalingPolicyStateDetaching = "DETACHING" + + // AutoScalingPolicyStateDetached is a AutoScalingPolicyState enum value + AutoScalingPolicyStateDetached = "DETACHED" + + // AutoScalingPolicyStateFailed is a AutoScalingPolicyState enum value + AutoScalingPolicyStateFailed = "FAILED" +) + +const ( + // AutoScalingPolicyStateChangeReasonCodeUserRequest is a AutoScalingPolicyStateChangeReasonCode enum value + AutoScalingPolicyStateChangeReasonCodeUserRequest = "USER_REQUEST" + + // AutoScalingPolicyStateChangeReasonCodeProvisionFailure is a AutoScalingPolicyStateChangeReasonCode enum value + AutoScalingPolicyStateChangeReasonCodeProvisionFailure = "PROVISION_FAILURE" + + // AutoScalingPolicyStateChangeReasonCodeCleanupFailure is a AutoScalingPolicyStateChangeReasonCode enum value + AutoScalingPolicyStateChangeReasonCodeCleanupFailure = "CLEANUP_FAILURE" +) + +const ( + // CancelStepsRequestStatusSubmitted is a CancelStepsRequestStatus enum value + CancelStepsRequestStatusSubmitted = "SUBMITTED" + + // CancelStepsRequestStatusFailed is a CancelStepsRequestStatus enum value + CancelStepsRequestStatusFailed = "FAILED" +) + const ( // ClusterStateStarting is a ClusterState enum value ClusterStateStarting = "STARTING" @@ -4936,6 +9750,76 @@ const ( ClusterStateChangeReasonCodeAllStepsCompleted = "ALL_STEPS_COMPLETED" ) +const ( + // ComparisonOperatorGreaterThanOrEqual is a ComparisonOperator enum value + ComparisonOperatorGreaterThanOrEqual = "GREATER_THAN_OR_EQUAL" + + // ComparisonOperatorGreaterThan is a ComparisonOperator enum value + ComparisonOperatorGreaterThan = "GREATER_THAN" + + // ComparisonOperatorLessThan is a ComparisonOperator enum value + ComparisonOperatorLessThan = "LESS_THAN" + + // ComparisonOperatorLessThanOrEqual is a ComparisonOperator enum value + ComparisonOperatorLessThanOrEqual = "LESS_THAN_OR_EQUAL" +) + +const ( + // InstanceCollectionTypeInstanceFleet is a InstanceCollectionType enum value + InstanceCollectionTypeInstanceFleet = "INSTANCE_FLEET" + + // InstanceCollectionTypeInstanceGroup is a InstanceCollectionType enum value + InstanceCollectionTypeInstanceGroup = "INSTANCE_GROUP" +) + +const ( + // InstanceFleetStateProvisioning is a InstanceFleetState enum value + InstanceFleetStateProvisioning = "PROVISIONING" + + // InstanceFleetStateBootstrapping is a InstanceFleetState enum value + InstanceFleetStateBootstrapping = "BOOTSTRAPPING" + + // InstanceFleetStateRunning is a InstanceFleetState enum value + InstanceFleetStateRunning = "RUNNING" + + // InstanceFleetStateResizing is a InstanceFleetState enum value + InstanceFleetStateResizing = "RESIZING" + + // InstanceFleetStateSuspended is a InstanceFleetState enum value + InstanceFleetStateSuspended = "SUSPENDED" + + // InstanceFleetStateTerminating is a InstanceFleetState enum value + InstanceFleetStateTerminating = "TERMINATING" + + // InstanceFleetStateTerminated is a InstanceFleetState enum value + InstanceFleetStateTerminated = "TERMINATED" +) + +const ( + // InstanceFleetStateChangeReasonCodeInternalError is a InstanceFleetStateChangeReasonCode enum value + InstanceFleetStateChangeReasonCodeInternalError = "INTERNAL_ERROR" + + // InstanceFleetStateChangeReasonCodeValidationError is a InstanceFleetStateChangeReasonCode enum value + InstanceFleetStateChangeReasonCodeValidationError = "VALIDATION_ERROR" + + // InstanceFleetStateChangeReasonCodeInstanceFailure is a InstanceFleetStateChangeReasonCode enum value + InstanceFleetStateChangeReasonCodeInstanceFailure = "INSTANCE_FAILURE" + + // InstanceFleetStateChangeReasonCodeClusterTerminated is a InstanceFleetStateChangeReasonCode enum value + InstanceFleetStateChangeReasonCodeClusterTerminated = "CLUSTER_TERMINATED" +) + +const ( + // InstanceFleetTypeMaster is a InstanceFleetType enum value + InstanceFleetTypeMaster = "MASTER" + + // InstanceFleetTypeCore is a InstanceFleetType enum value + InstanceFleetTypeCore = "CORE" + + // InstanceFleetTypeTask is a InstanceFleetType enum value + InstanceFleetTypeTask = "TASK" +) + const ( // InstanceGroupStateProvisioning is a InstanceGroupState enum value InstanceGroupStateProvisioning = "PROVISIONING" @@ -5073,6 +9957,39 @@ const ( MarketTypeSpot = "SPOT" ) +const ( + // ScaleDownBehaviorTerminateAtInstanceHour is a ScaleDownBehavior enum value + ScaleDownBehaviorTerminateAtInstanceHour = "TERMINATE_AT_INSTANCE_HOUR" + + // ScaleDownBehaviorTerminateAtTaskCompletion is a ScaleDownBehavior enum value + ScaleDownBehaviorTerminateAtTaskCompletion = "TERMINATE_AT_TASK_COMPLETION" +) + +const ( + // SpotProvisioningTimeoutActionSwitchToOnDemand is a SpotProvisioningTimeoutAction enum value + SpotProvisioningTimeoutActionSwitchToOnDemand = "SWITCH_TO_ON_DEMAND" + + // SpotProvisioningTimeoutActionTerminateCluster is a SpotProvisioningTimeoutAction enum value + SpotProvisioningTimeoutActionTerminateCluster = "TERMINATE_CLUSTER" +) + +const ( + // StatisticSampleCount is a Statistic enum value + StatisticSampleCount = "SAMPLE_COUNT" + + // StatisticAverage is a Statistic enum value + StatisticAverage = "AVERAGE" + + // StatisticSum is a Statistic enum value + StatisticSum = "SUM" + + // StatisticMinimum is a Statistic enum value + StatisticMinimum = "MINIMUM" + + // StatisticMaximum is a Statistic enum value + StatisticMaximum = "MAXIMUM" +) + const ( // StepExecutionStatePending is a StepExecutionState enum value StepExecutionStatePending = "PENDING" @@ -5100,6 +10017,9 @@ const ( // StepStatePending is a StepState enum value StepStatePending = "PENDING" + // StepStateCancelPending is a StepState enum value + StepStateCancelPending = "CANCEL_PENDING" + // StepStateRunning is a StepState enum value StepStateRunning = "RUNNING" @@ -5120,3 +10040,86 @@ const ( // StepStateChangeReasonCodeNone is a StepStateChangeReasonCode enum value StepStateChangeReasonCodeNone = "NONE" ) + +const ( + // UnitNone is a Unit enum value + UnitNone = "NONE" + + // UnitSeconds is a Unit enum value + UnitSeconds = "SECONDS" + + // UnitMicroSeconds is a Unit enum value + UnitMicroSeconds = "MICRO_SECONDS" + + // UnitMilliSeconds is a Unit enum value + UnitMilliSeconds = "MILLI_SECONDS" + + // UnitBytes is a Unit enum value + UnitBytes = "BYTES" + + // UnitKiloBytes is a Unit enum value + UnitKiloBytes = "KILO_BYTES" + + // UnitMegaBytes is a Unit enum value + UnitMegaBytes = "MEGA_BYTES" + + // UnitGigaBytes is a Unit enum value + UnitGigaBytes = "GIGA_BYTES" + + // UnitTeraBytes is a Unit enum value + UnitTeraBytes = "TERA_BYTES" + + // UnitBits is a Unit enum value + UnitBits = "BITS" + + // UnitKiloBits is a Unit enum value + UnitKiloBits = "KILO_BITS" + + // UnitMegaBits is a Unit enum value + UnitMegaBits = "MEGA_BITS" + + // UnitGigaBits is a Unit enum value + UnitGigaBits = "GIGA_BITS" + + // UnitTeraBits is a Unit enum value + UnitTeraBits = "TERA_BITS" + + // UnitPercent is a Unit enum value + UnitPercent = "PERCENT" + + // UnitCount is a Unit enum value + UnitCount = "COUNT" + + // UnitBytesPerSecond is a Unit enum value + UnitBytesPerSecond = "BYTES_PER_SECOND" + + // UnitKiloBytesPerSecond is a Unit enum value + UnitKiloBytesPerSecond = "KILO_BYTES_PER_SECOND" + + // UnitMegaBytesPerSecond is a Unit enum value + UnitMegaBytesPerSecond = "MEGA_BYTES_PER_SECOND" + + // UnitGigaBytesPerSecond is a Unit enum value + UnitGigaBytesPerSecond = "GIGA_BYTES_PER_SECOND" + + // UnitTeraBytesPerSecond is a Unit enum value + UnitTeraBytesPerSecond = "TERA_BYTES_PER_SECOND" + + // UnitBitsPerSecond is a Unit enum value + UnitBitsPerSecond = "BITS_PER_SECOND" + + // UnitKiloBitsPerSecond is a Unit enum value + UnitKiloBitsPerSecond = "KILO_BITS_PER_SECOND" + + // UnitMegaBitsPerSecond is a Unit enum value + UnitMegaBitsPerSecond = "MEGA_BITS_PER_SECOND" + + // UnitGigaBitsPerSecond is a Unit enum value + UnitGigaBitsPerSecond = "GIGA_BITS_PER_SECOND" + + // UnitTeraBitsPerSecond is a Unit enum value + UnitTeraBitsPerSecond = "TERA_BITS_PER_SECOND" + + // UnitCountPerSecond is a Unit enum value + UnitCountPerSecond = "COUNT_PER_SECOND" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/emr/emriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/emr/emriface/interface.go index 504108cce..ea9fa8e92 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/emr/emriface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/emr/emriface/interface.go @@ -25,7 +25,7 @@ import ( // // myFunc uses an SDK service client to make a request to // // Amazon Elastic MapReduce. // func myFunc(svc emriface.EMRAPI) bool { -// // Make svc.AddInstanceGroups request +// // Make svc.AddInstanceFleet request // } // // func main() { @@ -41,11 +41,11 @@ import ( // type mockEMRClient struct { // emriface.EMRAPI // } -// func (m *mockEMRClient) AddInstanceGroups(input *emr.AddInstanceGroupsInput) (*emr.AddInstanceGroupsOutput, error) { +// func (m *mockEMRClient) AddInstanceFleet(input *emr.AddInstanceFleetInput) (*emr.AddInstanceFleetOutput, error) { // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockEMRClient{} // @@ -59,6 +59,10 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type EMRAPI interface { + AddInstanceFleetRequest(*emr.AddInstanceFleetInput) (*request.Request, *emr.AddInstanceFleetOutput) + + AddInstanceFleet(*emr.AddInstanceFleetInput) (*emr.AddInstanceFleetOutput, error) + AddInstanceGroupsRequest(*emr.AddInstanceGroupsInput) (*request.Request, *emr.AddInstanceGroupsOutput) AddInstanceGroups(*emr.AddInstanceGroupsInput) (*emr.AddInstanceGroupsOutput, error) @@ -71,6 +75,10 @@ type EMRAPI interface { AddTags(*emr.AddTagsInput) (*emr.AddTagsOutput, error) + CancelStepsRequest(*emr.CancelStepsInput) (*request.Request, *emr.CancelStepsOutput) + + CancelSteps(*emr.CancelStepsInput) (*emr.CancelStepsOutput, error) + CreateSecurityConfigurationRequest(*emr.CreateSecurityConfigurationInput) (*request.Request, *emr.CreateSecurityConfigurationOutput) CreateSecurityConfiguration(*emr.CreateSecurityConfigurationInput) (*emr.CreateSecurityConfigurationOutput, error) @@ -107,6 +115,12 @@ type EMRAPI interface { ListClustersPages(*emr.ListClustersInput, func(*emr.ListClustersOutput, bool) bool) error + ListInstanceFleetsRequest(*emr.ListInstanceFleetsInput) (*request.Request, *emr.ListInstanceFleetsOutput) + + ListInstanceFleets(*emr.ListInstanceFleetsInput) (*emr.ListInstanceFleetsOutput, error) + + ListInstanceFleetsPages(*emr.ListInstanceFleetsInput, func(*emr.ListInstanceFleetsOutput, bool) bool) error + ListInstanceGroupsRequest(*emr.ListInstanceGroupsInput) (*request.Request, *emr.ListInstanceGroupsOutput) ListInstanceGroups(*emr.ListInstanceGroupsInput) (*emr.ListInstanceGroupsOutput, error) @@ -129,10 +143,22 @@ type EMRAPI interface { ListStepsPages(*emr.ListStepsInput, func(*emr.ListStepsOutput, bool) bool) error + ModifyInstanceFleetRequest(*emr.ModifyInstanceFleetInput) (*request.Request, *emr.ModifyInstanceFleetOutput) + + ModifyInstanceFleet(*emr.ModifyInstanceFleetInput) (*emr.ModifyInstanceFleetOutput, error) + ModifyInstanceGroupsRequest(*emr.ModifyInstanceGroupsInput) (*request.Request, *emr.ModifyInstanceGroupsOutput) ModifyInstanceGroups(*emr.ModifyInstanceGroupsInput) (*emr.ModifyInstanceGroupsOutput, error) + PutAutoScalingPolicyRequest(*emr.PutAutoScalingPolicyInput) (*request.Request, *emr.PutAutoScalingPolicyOutput) + + PutAutoScalingPolicy(*emr.PutAutoScalingPolicyInput) (*emr.PutAutoScalingPolicyOutput, error) + + RemoveAutoScalingPolicyRequest(*emr.RemoveAutoScalingPolicyInput) (*request.Request, *emr.RemoveAutoScalingPolicyOutput) + + RemoveAutoScalingPolicy(*emr.RemoveAutoScalingPolicyInput) (*emr.RemoveAutoScalingPolicyOutput, error) + RemoveTagsRequest(*emr.RemoveTagsInput) (*request.Request, *emr.RemoveTagsOutput) RemoveTags(*emr.RemoveTagsInput) (*emr.RemoveTagsOutput, error) @@ -155,6 +181,8 @@ type EMRAPI interface { WaitUntilClusterRunning(*emr.DescribeClusterInput) error + WaitUntilClusterTerminated(*emr.DescribeClusterInput) error + WaitUntilStepComplete(*emr.DescribeStepInput) error } diff --git a/vendor/github.com/aws/aws-sdk-go/service/emr/errors.go b/vendor/github.com/aws/aws-sdk-go/service/emr/errors.go new file mode 100644 index 000000000..7621ae662 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/emr/errors.go @@ -0,0 +1,25 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package emr + +const ( + + // ErrCodeInternalServerError for service response error code + // "InternalServerError". + // + // Indicates that an error occurred while processing the request and that the + // request was not completed. + ErrCodeInternalServerError = "InternalServerError" + + // ErrCodeInternalServerException for service response error code + // "InternalServerException". + // + // This exception occurs when there is an internal failure in the EMR service. + ErrCodeInternalServerException = "InternalServerException" + + // ErrCodeInvalidRequestException for service response error code + // "InvalidRequestException". + // + // This exception occurs when there is something wrong with user input. + ErrCodeInvalidRequestException = "InvalidRequestException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/emr/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/emr/examples_test.go index 1fb9b24ce..953e0d953 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/emr/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/emr/examples_test.go @@ -15,13 +15,79 @@ import ( var _ time.Duration var _ bytes.Buffer -func ExampleEMR_AddInstanceGroups() { - sess, err := session.NewSession() +func ExampleEMR_AddInstanceFleet() { + sess := session.Must(session.NewSession()) + + svc := emr.New(sess) + + params := &emr.AddInstanceFleetInput{ + ClusterId: aws.String("XmlStringMaxLen256"), // Required + InstanceFleet: &emr.InstanceFleetConfig{ // Required + InstanceFleetType: aws.String("InstanceFleetType"), // Required + InstanceTypeConfigs: []*emr.InstanceTypeConfig{ + { // Required + InstanceType: aws.String("InstanceType"), // Required + BidPrice: aws.String("XmlStringMaxLen256"), + BidPriceAsPercentageOfOnDemandPrice: aws.Float64(1.0), + Configurations: []*emr.Configuration{ + { // Required + Classification: aws.String("String"), + Configurations: []*emr.Configuration{ + // Recursive values... + }, + Properties: map[string]*string{ + "Key": aws.String("String"), // Required + // More values... + }, + }, + // More values... + }, + EbsConfiguration: &emr.EbsConfiguration{ + EbsBlockDeviceConfigs: []*emr.EbsBlockDeviceConfig{ + { // Required + VolumeSpecification: &emr.VolumeSpecification{ // Required + SizeInGB: aws.Int64(1), // Required + VolumeType: aws.String("String"), // Required + Iops: aws.Int64(1), + }, + VolumesPerInstance: aws.Int64(1), + }, + // More values... + }, + EbsOptimized: aws.Bool(true), + }, + WeightedCapacity: aws.Int64(1), + }, + // More values... + }, + LaunchSpecifications: &emr.InstanceFleetProvisioningSpecifications{ + SpotSpecification: &emr.SpotProvisioningSpecification{ // Required + TimeoutAction: aws.String("SpotProvisioningTimeoutAction"), // Required + TimeoutDurationMinutes: aws.Int64(1), // Required + BlockDurationMinutes: aws.Int64(1), + }, + }, + Name: aws.String("XmlStringMaxLen256"), + TargetOnDemandCapacity: aws.Int64(1), + TargetSpotCapacity: aws.Int64(1), + }, + } + resp, err := svc.AddInstanceFleet(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEMR_AddInstanceGroups() { + sess := session.Must(session.NewSession()) + svc := emr.New(sess) params := &emr.AddInstanceGroupsInput{ @@ -30,7 +96,47 @@ func ExampleEMR_AddInstanceGroups() { InstanceCount: aws.Int64(1), // Required InstanceRole: aws.String("InstanceRoleType"), // Required InstanceType: aws.String("InstanceType"), // Required - BidPrice: aws.String("XmlStringMaxLen256"), + AutoScalingPolicy: &emr.AutoScalingPolicy{ + Constraints: &emr.ScalingConstraints{ // Required + MaxCapacity: aws.Int64(1), // Required + MinCapacity: aws.Int64(1), // Required + }, + Rules: []*emr.ScalingRule{ // Required + { // Required + Action: &emr.ScalingAction{ // Required + SimpleScalingPolicyConfiguration: &emr.SimpleScalingPolicyConfiguration{ // Required + ScalingAdjustment: aws.Int64(1), // Required + AdjustmentType: aws.String("AdjustmentType"), + CoolDown: aws.Int64(1), + }, + Market: aws.String("MarketType"), + }, + Name: aws.String("String"), // Required + Trigger: &emr.ScalingTrigger{ // Required + CloudWatchAlarmDefinition: &emr.CloudWatchAlarmDefinition{ // Required + ComparisonOperator: aws.String("ComparisonOperator"), // Required + MetricName: aws.String("String"), // Required + Period: aws.Int64(1), // Required + Threshold: aws.Float64(1.0), // Required + Dimensions: []*emr.MetricDimension{ + { // Required + Key: aws.String("String"), + Value: aws.String("String"), + }, + // More values... + }, + EvaluationPeriods: aws.Int64(1), + Namespace: aws.String("String"), + Statistic: aws.String("Statistic"), + Unit: aws.String("Unit"), + }, + }, + Description: aws.String("String"), + }, + // More values... + }, + }, + BidPrice: aws.String("XmlStringMaxLen256"), Configurations: []*emr.Configuration{ { // Required Classification: aws.String("String"), @@ -79,11 +185,7 @@ func ExampleEMR_AddInstanceGroups() { } func ExampleEMR_AddJobFlowSteps() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -126,11 +228,7 @@ func ExampleEMR_AddJobFlowSteps() { } func ExampleEMR_AddTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -157,13 +255,34 @@ func ExampleEMR_AddTags() { fmt.Println(resp) } -func ExampleEMR_CreateSecurityConfiguration() { - sess, err := session.NewSession() +func ExampleEMR_CancelSteps() { + sess := session.Must(session.NewSession()) + + svc := emr.New(sess) + + params := &emr.CancelStepsInput{ + ClusterId: aws.String("XmlStringMaxLen256"), + StepIds: []*string{ + aws.String("XmlStringMaxLen256"), // Required + // More values... + }, + } + resp, err := svc.CancelSteps(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEMR_CreateSecurityConfiguration() { + sess := session.Must(session.NewSession()) + svc := emr.New(sess) params := &emr.CreateSecurityConfigurationInput{ @@ -184,11 +303,7 @@ func ExampleEMR_CreateSecurityConfiguration() { } func ExampleEMR_DeleteSecurityConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -209,11 +324,7 @@ func ExampleEMR_DeleteSecurityConfiguration() { } func ExampleEMR_DescribeCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -234,11 +345,7 @@ func ExampleEMR_DescribeCluster() { } func ExampleEMR_DescribeJobFlows() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -268,11 +375,7 @@ func ExampleEMR_DescribeJobFlows() { } func ExampleEMR_DescribeSecurityConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -293,11 +396,7 @@ func ExampleEMR_DescribeSecurityConfiguration() { } func ExampleEMR_DescribeStep() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -319,11 +418,7 @@ func ExampleEMR_DescribeStep() { } func ExampleEMR_ListBootstrapActions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -345,11 +440,7 @@ func ExampleEMR_ListBootstrapActions() { } func ExampleEMR_ListClusters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -375,13 +466,31 @@ func ExampleEMR_ListClusters() { fmt.Println(resp) } -func ExampleEMR_ListInstanceGroups() { - sess, err := session.NewSession() +func ExampleEMR_ListInstanceFleets() { + sess := session.Must(session.NewSession()) + + svc := emr.New(sess) + + params := &emr.ListInstanceFleetsInput{ + ClusterId: aws.String("ClusterId"), // Required + Marker: aws.String("Marker"), + } + resp, err := svc.ListInstanceFleets(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEMR_ListInstanceGroups() { + sess := session.Must(session.NewSession()) + svc := emr.New(sess) params := &emr.ListInstanceGroupsInput{ @@ -402,17 +511,15 @@ func ExampleEMR_ListInstanceGroups() { } func ExampleEMR_ListInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) params := &emr.ListInstancesInput{ - ClusterId: aws.String("ClusterId"), // Required - InstanceGroupId: aws.String("InstanceGroupId"), + ClusterId: aws.String("ClusterId"), // Required + InstanceFleetId: aws.String("InstanceFleetId"), + InstanceFleetType: aws.String("InstanceFleetType"), + InstanceGroupId: aws.String("InstanceGroupId"), InstanceGroupTypes: []*string{ aws.String("InstanceGroupType"), // Required // More values... @@ -437,11 +544,7 @@ func ExampleEMR_ListInstances() { } func ExampleEMR_ListSecurityConfigurations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -462,11 +565,7 @@ func ExampleEMR_ListSecurityConfigurations() { } func ExampleEMR_ListSteps() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -495,16 +594,39 @@ func ExampleEMR_ListSteps() { fmt.Println(resp) } -func ExampleEMR_ModifyInstanceGroups() { - sess, err := session.NewSession() +func ExampleEMR_ModifyInstanceFleet() { + sess := session.Must(session.NewSession()) + + svc := emr.New(sess) + + params := &emr.ModifyInstanceFleetInput{ + ClusterId: aws.String("ClusterId"), // Required + InstanceFleet: &emr.InstanceFleetModifyConfig{ // Required + InstanceFleetId: aws.String("InstanceFleetId"), // Required + TargetOnDemandCapacity: aws.Int64(1), + TargetSpotCapacity: aws.Int64(1), + }, + } + resp, err := svc.ModifyInstanceFleet(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEMR_ModifyInstanceGroups() { + sess := session.Must(session.NewSession()) + svc := emr.New(sess) params := &emr.ModifyInstanceGroupsInput{ + ClusterId: aws.String("ClusterId"), InstanceGroups: []*emr.InstanceGroupModifyConfig{ { // Required InstanceGroupId: aws.String("XmlStringMaxLen256"), // Required @@ -544,13 +666,93 @@ func ExampleEMR_ModifyInstanceGroups() { fmt.Println(resp) } -func ExampleEMR_RemoveTags() { - sess, err := session.NewSession() +func ExampleEMR_PutAutoScalingPolicy() { + sess := session.Must(session.NewSession()) + + svc := emr.New(sess) + + params := &emr.PutAutoScalingPolicyInput{ + AutoScalingPolicy: &emr.AutoScalingPolicy{ // Required + Constraints: &emr.ScalingConstraints{ // Required + MaxCapacity: aws.Int64(1), // Required + MinCapacity: aws.Int64(1), // Required + }, + Rules: []*emr.ScalingRule{ // Required + { // Required + Action: &emr.ScalingAction{ // Required + SimpleScalingPolicyConfiguration: &emr.SimpleScalingPolicyConfiguration{ // Required + ScalingAdjustment: aws.Int64(1), // Required + AdjustmentType: aws.String("AdjustmentType"), + CoolDown: aws.Int64(1), + }, + Market: aws.String("MarketType"), + }, + Name: aws.String("String"), // Required + Trigger: &emr.ScalingTrigger{ // Required + CloudWatchAlarmDefinition: &emr.CloudWatchAlarmDefinition{ // Required + ComparisonOperator: aws.String("ComparisonOperator"), // Required + MetricName: aws.String("String"), // Required + Period: aws.Int64(1), // Required + Threshold: aws.Float64(1.0), // Required + Dimensions: []*emr.MetricDimension{ + { // Required + Key: aws.String("String"), + Value: aws.String("String"), + }, + // More values... + }, + EvaluationPeriods: aws.Int64(1), + Namespace: aws.String("String"), + Statistic: aws.String("Statistic"), + Unit: aws.String("Unit"), + }, + }, + Description: aws.String("String"), + }, + // More values... + }, + }, + ClusterId: aws.String("ClusterId"), // Required + InstanceGroupId: aws.String("InstanceGroupId"), // Required + } + resp, err := svc.PutAutoScalingPolicy(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEMR_RemoveAutoScalingPolicy() { + sess := session.Must(session.NewSession()) + + svc := emr.New(sess) + + params := &emr.RemoveAutoScalingPolicyInput{ + ClusterId: aws.String("ClusterId"), // Required + InstanceGroupId: aws.String("InstanceGroupId"), // Required + } + resp, err := svc.RemoveAutoScalingPolicy(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleEMR_RemoveTags() { + sess := session.Must(session.NewSession()) + svc := emr.New(sess) params := &emr.RemoveTagsInput{ @@ -574,11 +776,7 @@ func ExampleEMR_RemoveTags() { } func ExampleEMR_RunJobFlow() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -592,18 +790,114 @@ func ExampleEMR_RunJobFlow() { aws.String("XmlStringMaxLen256"), // Required // More values... }, - Ec2KeyName: aws.String("XmlStringMaxLen256"), - Ec2SubnetId: aws.String("XmlStringMaxLen256"), + Ec2KeyName: aws.String("XmlStringMaxLen256"), + Ec2SubnetId: aws.String("XmlStringMaxLen256"), + Ec2SubnetIds: []*string{ + aws.String("XmlStringMaxLen256"), // Required + // More values... + }, EmrManagedMasterSecurityGroup: aws.String("XmlStringMaxLen256"), EmrManagedSlaveSecurityGroup: aws.String("XmlStringMaxLen256"), HadoopVersion: aws.String("XmlStringMaxLen256"), InstanceCount: aws.Int64(1), + InstanceFleets: []*emr.InstanceFleetConfig{ + { // Required + InstanceFleetType: aws.String("InstanceFleetType"), // Required + InstanceTypeConfigs: []*emr.InstanceTypeConfig{ + { // Required + InstanceType: aws.String("InstanceType"), // Required + BidPrice: aws.String("XmlStringMaxLen256"), + BidPriceAsPercentageOfOnDemandPrice: aws.Float64(1.0), + Configurations: []*emr.Configuration{ + { // Required + Classification: aws.String("String"), + Configurations: []*emr.Configuration{ + // Recursive values... + }, + Properties: map[string]*string{ + "Key": aws.String("String"), // Required + // More values... + }, + }, + // More values... + }, + EbsConfiguration: &emr.EbsConfiguration{ + EbsBlockDeviceConfigs: []*emr.EbsBlockDeviceConfig{ + { // Required + VolumeSpecification: &emr.VolumeSpecification{ // Required + SizeInGB: aws.Int64(1), // Required + VolumeType: aws.String("String"), // Required + Iops: aws.Int64(1), + }, + VolumesPerInstance: aws.Int64(1), + }, + // More values... + }, + EbsOptimized: aws.Bool(true), + }, + WeightedCapacity: aws.Int64(1), + }, + // More values... + }, + LaunchSpecifications: &emr.InstanceFleetProvisioningSpecifications{ + SpotSpecification: &emr.SpotProvisioningSpecification{ // Required + TimeoutAction: aws.String("SpotProvisioningTimeoutAction"), // Required + TimeoutDurationMinutes: aws.Int64(1), // Required + BlockDurationMinutes: aws.Int64(1), + }, + }, + Name: aws.String("XmlStringMaxLen256"), + TargetOnDemandCapacity: aws.Int64(1), + TargetSpotCapacity: aws.Int64(1), + }, + // More values... + }, InstanceGroups: []*emr.InstanceGroupConfig{ { // Required InstanceCount: aws.Int64(1), // Required InstanceRole: aws.String("InstanceRoleType"), // Required InstanceType: aws.String("InstanceType"), // Required - BidPrice: aws.String("XmlStringMaxLen256"), + AutoScalingPolicy: &emr.AutoScalingPolicy{ + Constraints: &emr.ScalingConstraints{ // Required + MaxCapacity: aws.Int64(1), // Required + MinCapacity: aws.Int64(1), // Required + }, + Rules: []*emr.ScalingRule{ // Required + { // Required + Action: &emr.ScalingAction{ // Required + SimpleScalingPolicyConfiguration: &emr.SimpleScalingPolicyConfiguration{ // Required + ScalingAdjustment: aws.Int64(1), // Required + AdjustmentType: aws.String("AdjustmentType"), + CoolDown: aws.Int64(1), + }, + Market: aws.String("MarketType"), + }, + Name: aws.String("String"), // Required + Trigger: &emr.ScalingTrigger{ // Required + CloudWatchAlarmDefinition: &emr.CloudWatchAlarmDefinition{ // Required + ComparisonOperator: aws.String("ComparisonOperator"), // Required + MetricName: aws.String("String"), // Required + Period: aws.Int64(1), // Required + Threshold: aws.Float64(1.0), // Required + Dimensions: []*emr.MetricDimension{ + { // Required + Key: aws.String("String"), + Value: aws.String("String"), + }, + // More values... + }, + EvaluationPeriods: aws.Int64(1), + Namespace: aws.String("String"), + Statistic: aws.String("Statistic"), + Unit: aws.String("Unit"), + }, + }, + Description: aws.String("String"), + }, + // More values... + }, + }, + BidPrice: aws.String("XmlStringMaxLen256"), Configurations: []*emr.Configuration{ { // Required Classification: aws.String("String"), @@ -639,7 +933,11 @@ func ExampleEMR_RunJobFlow() { KeepJobFlowAliveWhenNoSteps: aws.Bool(true), MasterInstanceType: aws.String("InstanceType"), Placement: &emr.PlacementType{ - AvailabilityZone: aws.String("XmlString"), // Required + AvailabilityZone: aws.String("XmlString"), + AvailabilityZones: []*string{ + aws.String("XmlStringMaxLen256"), // Required + // More values... + }, }, ServiceAccessSecurityGroup: aws.String("XmlStringMaxLen256"), SlaveInstanceType: aws.String("InstanceType"), @@ -663,6 +961,7 @@ func ExampleEMR_RunJobFlow() { }, // More values... }, + AutoScalingRole: aws.String("XmlString"), BootstrapActions: []*emr.BootstrapActionConfig{ { // Required Name: aws.String("XmlStringMaxLen256"), // Required @@ -702,6 +1001,7 @@ func ExampleEMR_RunJobFlow() { // More values... }, ReleaseLabel: aws.String("XmlStringMaxLen256"), + ScaleDownBehavior: aws.String("ScaleDownBehavior"), SecurityConfiguration: aws.String("XmlString"), ServiceRole: aws.String("XmlString"), Steps: []*emr.StepConfig{ @@ -753,11 +1053,7 @@ func ExampleEMR_RunJobFlow() { } func ExampleEMR_SetTerminationProtection() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -782,11 +1078,7 @@ func ExampleEMR_SetTerminationProtection() { } func ExampleEMR_SetVisibleToAllUsers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) @@ -811,11 +1103,7 @@ func ExampleEMR_SetVisibleToAllUsers() { } func ExampleEMR_TerminateJobFlows() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := emr.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/emr/service.go b/vendor/github.com/aws/aws-sdk-go/service/emr/service.go index 755e1699a..610c46580 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/emr/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/emr/service.go @@ -11,13 +11,13 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) -// Amazon Elastic MapReduce (Amazon EMR) is a web service that makes it easy -// to process large amounts of data efficiently. Amazon EMR uses Hadoop processing -// combined with several AWS products to do tasks such as web indexing, data -// mining, log file analysis, machine learning, scientific simulation, and data -// warehousing. -//The service client's operations are safe to be used concurrently. +// Amazon EMR is a web service that makes it easy to process large amounts of +// data efficiently. Amazon EMR uses Hadoop processing combined with several +// AWS products to do tasks such as web indexing, data mining, log file analysis, +// machine learning, scientific simulation, and data warehousing. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31 type EMR struct { *client.Client } @@ -28,8 +28,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "elasticmapreduce" +// Service information constants +const ( + ServiceName = "elasticmapreduce" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the EMR client with a session. // If additional configuration is needed for the client instance use the optional @@ -42,17 +45,18 @@ const ServiceName = "elasticmapreduce" // // Create a EMR client with additional configuration // svc := emr.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *EMR { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *EMR { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *EMR { svc := &EMR{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2009-03-31", diff --git a/vendor/github.com/aws/aws-sdk-go/service/emr/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/emr/waiters.go index ccf17eb96..443240d3d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/emr/waiters.go +++ b/vendor/github.com/aws/aws-sdk-go/service/emr/waiters.go @@ -57,6 +57,39 @@ func (c *EMR) WaitUntilClusterRunning(input *DescribeClusterInput) error { return w.Wait() } +// WaitUntilClusterTerminated uses the Amazon EMR API operation +// DescribeCluster to wait for a condition to be met before returning. +// If the condition is not meet within the max attempt window an error will +// be returned. +func (c *EMR) WaitUntilClusterTerminated(input *DescribeClusterInput) error { + waiterCfg := waiter.Config{ + Operation: "DescribeCluster", + Delay: 30, + MaxAttempts: 60, + Acceptors: []waiter.WaitAcceptor{ + { + State: "success", + Matcher: "path", + Argument: "Cluster.Status.State", + Expected: "TERMINATED", + }, + { + State: "failure", + Matcher: "path", + Argument: "Cluster.Status.State", + Expected: "TERMINATED_WITH_ERRORS", + }, + }, + } + + w := waiter.Waiter{ + Client: c, + Input: input, + Config: waiterCfg, + } + return w.Wait() +} + // WaitUntilStepComplete uses the Amazon EMR API operation // DescribeStep to wait for a condition to be met before returning. // If the condition is not meet within the max attempt window an error will diff --git a/vendor/github.com/aws/aws-sdk-go/service/firehose/api.go b/vendor/github.com/aws/aws-sdk-go/service/firehose/api.go index 614793373..b22bb85d6 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/firehose/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/firehose/api.go @@ -37,6 +37,7 @@ const opCreateDeliveryStream = "CreateDeliveryStream" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/CreateDeliveryStream func (c *Firehose) CreateDeliveryStreamRequest(input *CreateDeliveryStreamInput) (req *request.Request, output *CreateDeliveryStreamOutput) { op := &request.Operation{ Name: opCreateDeliveryStream, @@ -48,9 +49,8 @@ func (c *Firehose) CreateDeliveryStreamRequest(input *CreateDeliveryStreamInput) input = &CreateDeliveryStreamInput{} } - req = c.newRequest(op, input, output) output = &CreateDeliveryStreamOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -58,52 +58,47 @@ func (c *Firehose) CreateDeliveryStreamRequest(input *CreateDeliveryStreamInput) // // Creates a delivery stream. // -// CreateDeliveryStream is an asynchronous operation that immediately returns. -// The initial status of the delivery stream is CREATING. After the delivery -// stream is created, its status is ACTIVE and it now accepts data. Attempts -// to send data to a delivery stream that is not in the ACTIVE state cause an -// exception. To check the state of a delivery stream, use DescribeDeliveryStream. -// -// The name of a delivery stream identifies it. You can't have two delivery -// streams with the same name in the same region. Two delivery streams in different -// AWS accounts or different regions in the same AWS account can have the same -// name. -// // By default, you can create up to 20 delivery streams per region. // -// A delivery stream can only be configured with a single destination, Amazon -// S3, Amazon Elasticsearch Service, or Amazon Redshift. For correct CreateDeliveryStream -// request syntax, specify only one destination configuration parameter: either +// This is an asynchronous operation that immediately returns. The initial status +// of the delivery stream is CREATING. After the delivery stream is created, +// its status is ACTIVE and it now accepts data. Attempts to send data to a +// delivery stream that is not in the ACTIVE state cause an exception. To check +// the state of a delivery stream, use DescribeDeliveryStream. +// +// A delivery stream is configured with a single destination: Amazon S3, Amazon +// Elasticsearch Service, or Amazon Redshift. You must specify only one of the +// following destination configuration parameters: ExtendedS3DestinationConfiguration, // S3DestinationConfiguration, ElasticsearchDestinationConfiguration, or RedshiftDestinationConfiguration. // -// As part of S3DestinationConfiguration, optional values BufferingHints, EncryptionConfiguration, -// and CompressionFormat can be provided. By default, if no BufferingHints value -// is provided, Firehose buffers data up to 5 MB or for 5 minutes, whichever -// condition is satisfied first. Note that BufferingHints is a hint, so there -// are some cases where the service cannot adhere to these conditions strictly; -// for example, record boundaries are such that the size is a little over or -// under the configured buffering size. By default, no encryption is performed. -// We strongly recommend that you enable encryption to ensure secure data storage -// in Amazon S3. -// -// A few notes about RedshiftDestinationConfiguration: -// -// An Amazon Redshift destination requires an S3 bucket as intermediate location, -// as Firehose first delivers data to S3 and then uses COPY syntax to load data -// into an Amazon Redshift table. This is specified in the RedshiftDestinationConfiguration.S3Configuration -// parameter element. -// -// The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationConfiguration.S3Configuration -// because the Amazon Redshift COPY operation that reads from the S3 bucket -// doesn't support these compression formats. -// -// We strongly recommend that the username and password provided is used -// exclusively for Firehose purposes, and that the permissions for the account -// are restricted for Amazon Redshift INSERT permissions. -// -// Firehose assumes the IAM role that is configured as part of destinations. -// The IAM role should allow the Firehose principal to assume the role, and -// the role should have permissions that allows the service to deliver the data. +// When you specify S3DestinationConfiguration, you can also provide the following +// optional values: BufferingHints, EncryptionConfiguration, and CompressionFormat. +// By default, if no BufferingHints value is provided, Firehose buffers data +// up to 5 MB or for 5 minutes, whichever condition is satisfied first. Note +// that BufferingHints is a hint, so there are some cases where the service +// cannot adhere to these conditions strictly; for example, record boundaries +// are such that the size is a little over or under the configured buffering +// size. By default, no encryption is performed. We strongly recommend that +// you enable encryption to ensure secure data storage in Amazon S3. +// +// A few notes about Amazon Redshift as a destination: +// +// * An Amazon Redshift destination requires an S3 bucket as intermediate +// location, as Firehose first delivers data to S3 and then uses COPY syntax +// to load data into an Amazon Redshift table. This is specified in the RedshiftDestinationConfiguration.S3Configuration +// parameter. +// +// * The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationConfiguration.S3Configuration +// because the Amazon Redshift COPY operation that reads from the S3 bucket +// doesn't support these compression formats. +// +// * We strongly recommend that you use the user name and password you provide +// exclusively with Firehose, and that the permissions for the account are +// restricted for Amazon Redshift INSERT permissions. +// +// Firehose assumes the IAM role that is configured as part of the destination. +// The role should allow the Firehose principal to assume the role, and the +// role should have permissions that allows the service to deliver the data. // For more information, see Amazon S3 Bucket Access (http://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-s3) // in the Amazon Kinesis Firehose Developer Guide. // @@ -115,15 +110,16 @@ func (c *Firehose) CreateDeliveryStreamRequest(input *CreateDeliveryStreamInput) // API operation CreateDeliveryStream for usage and error information. // // Returned Error Codes: -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // The specified input parameter has an value that is not valid. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // You have already reached the limit for a requested resource. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is already in use and not available for this operation. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/CreateDeliveryStream func (c *Firehose) CreateDeliveryStream(input *CreateDeliveryStreamInput) (*CreateDeliveryStreamOutput, error) { req, out := c.CreateDeliveryStreamRequest(input) err := req.Send() @@ -156,6 +152,7 @@ const opDeleteDeliveryStream = "DeleteDeliveryStream" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/DeleteDeliveryStream func (c *Firehose) DeleteDeliveryStreamRequest(input *DeleteDeliveryStreamInput) (req *request.Request, output *DeleteDeliveryStreamOutput) { op := &request.Operation{ Name: opDeleteDeliveryStream, @@ -167,9 +164,8 @@ func (c *Firehose) DeleteDeliveryStreamRequest(input *DeleteDeliveryStreamInput) input = &DeleteDeliveryStreamInput{} } - req = c.newRequest(op, input, output) output = &DeleteDeliveryStreamOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -196,12 +192,13 @@ func (c *Firehose) DeleteDeliveryStreamRequest(input *DeleteDeliveryStreamInput) // API operation DeleteDeliveryStream for usage and error information. // // Returned Error Codes: -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is already in use and not available for this operation. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/DeleteDeliveryStream func (c *Firehose) DeleteDeliveryStream(input *DeleteDeliveryStreamInput) (*DeleteDeliveryStreamOutput, error) { req, out := c.DeleteDeliveryStreamRequest(input) err := req.Send() @@ -234,6 +231,7 @@ const opDescribeDeliveryStream = "DescribeDeliveryStream" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/DescribeDeliveryStream func (c *Firehose) DescribeDeliveryStreamRequest(input *DescribeDeliveryStreamInput) (req *request.Request, output *DescribeDeliveryStreamOutput) { op := &request.Operation{ Name: opDescribeDeliveryStream, @@ -245,9 +243,8 @@ func (c *Firehose) DescribeDeliveryStreamRequest(input *DescribeDeliveryStreamIn input = &DescribeDeliveryStreamInput{} } - req = c.newRequest(op, input, output) output = &DescribeDeliveryStreamOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -266,9 +263,10 @@ func (c *Firehose) DescribeDeliveryStreamRequest(input *DescribeDeliveryStreamIn // API operation DescribeDeliveryStream for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/DescribeDeliveryStream func (c *Firehose) DescribeDeliveryStream(input *DescribeDeliveryStreamInput) (*DescribeDeliveryStreamOutput, error) { req, out := c.DescribeDeliveryStreamRequest(input) err := req.Send() @@ -301,6 +299,7 @@ const opListDeliveryStreams = "ListDeliveryStreams" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/ListDeliveryStreams func (c *Firehose) ListDeliveryStreamsRequest(input *ListDeliveryStreamsInput) (req *request.Request, output *ListDeliveryStreamsOutput) { op := &request.Operation{ Name: opListDeliveryStreams, @@ -312,9 +311,8 @@ func (c *Firehose) ListDeliveryStreamsRequest(input *ListDeliveryStreamsInput) ( input = &ListDeliveryStreamsInput{} } - req = c.newRequest(op, input, output) output = &ListDeliveryStreamsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -336,6 +334,7 @@ func (c *Firehose) ListDeliveryStreamsRequest(input *ListDeliveryStreamsInput) ( // // See the AWS API reference guide for Amazon Kinesis Firehose's // API operation ListDeliveryStreams for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/ListDeliveryStreams func (c *Firehose) ListDeliveryStreams(input *ListDeliveryStreamsInput) (*ListDeliveryStreamsOutput, error) { req, out := c.ListDeliveryStreamsRequest(input) err := req.Send() @@ -368,6 +367,7 @@ const opPutRecord = "PutRecord" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/PutRecord func (c *Firehose) PutRecordRequest(input *PutRecordInput) (req *request.Request, output *PutRecordOutput) { op := &request.Operation{ Name: opPutRecord, @@ -379,9 +379,8 @@ func (c *Firehose) PutRecordRequest(input *PutRecordInput) (req *request.Request input = &PutRecordInput{} } - req = c.newRequest(op, input, output) output = &PutRecordOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -429,18 +428,19 @@ func (c *Firehose) PutRecordRequest(input *PutRecordInput) (req *request.Request // API operation PutRecord for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource could not be found. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // The specified input parameter has an value that is not valid. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is unavailable, back off and retry the operation. If you continue // to see the exception, throughput limits for the delivery stream may have // been exceeded. For more information about limits and how to request an increase, // see Amazon Kinesis Firehose Limits (http://docs.aws.amazon.com/firehose/latest/dev/limits.html). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/PutRecord func (c *Firehose) PutRecord(input *PutRecordInput) (*PutRecordOutput, error) { req, out := c.PutRecordRequest(input) err := req.Send() @@ -473,6 +473,7 @@ const opPutRecordBatch = "PutRecordBatch" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/PutRecordBatch func (c *Firehose) PutRecordBatchRequest(input *PutRecordBatchInput) (req *request.Request, output *PutRecordBatchOutput) { op := &request.Operation{ Name: opPutRecordBatch, @@ -484,9 +485,8 @@ func (c *Firehose) PutRecordBatchRequest(input *PutRecordBatchInput) (req *reque input = &PutRecordBatchInput{} } - req = c.newRequest(op, input, output) output = &PutRecordBatchOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -497,14 +497,15 @@ func (c *Firehose) PutRecordBatchRequest(input *PutRecordBatchInput) (req *reque // To write single data records into a delivery stream, use PutRecord. Applications // using these operations are referred to as producers. // +// By default, each delivery stream can take in up to 2,000 transactions per +// second, 5,000 records per second, or 5 MB per second. Note that if you use +// PutRecord and PutRecordBatch, the limits are an aggregate across these two +// operations for each delivery stream. For more information about limits, see +// Amazon Kinesis Firehose Limits (http://docs.aws.amazon.com/firehose/latest/dev/limits.html). +// // Each PutRecordBatch request supports up to 500 records. Each record in the // request can be as large as 1,000 KB (before 64-bit encoding), up to a limit -// of 4 MB for the entire request. By default, each delivery stream can take -// in up to 2,000 transactions per second, 5,000 records per second, or 5 MB -// per second. Note that if you use PutRecord and PutRecordBatch, the limits -// are an aggregate across these two operations for each delivery stream. For -// more information about limits and how to request an increase, see Amazon -// Kinesis Firehose Limits (http://docs.aws.amazon.com/firehose/latest/dev/limits.html). +// of 4 MB for the entire request. These limits cannot be changed. // // You must specify the name of the delivery stream and the data record when // using PutRecord. The data record consists of a data blob that can be up to @@ -517,32 +518,32 @@ func (c *Firehose) PutRecordBatchRequest(input *PutRecordBatchInput) (req *reque // the data. This allows the consumer application(s) to parse individual data // items when reading the data from the destination. // -// The PutRecordBatch response includes a count of any failed records, FailedPutCount, -// and an array of responses, RequestResponses. The FailedPutCount value is -// a count of records that failed. Each entry in the RequestResponses array -// gives additional information of the processed record. Each entry in RequestResponses -// directly correlates with a record in the request array using the same ordering, -// from the top to the bottom of the request and response. RequestResponses -// always includes the same number of records as the request array. RequestResponses -// both successfully and unsuccessfully processed records. Firehose attempts -// to process all records in each PutRecordBatch request. A single record failure -// does not stop the processing of subsequent records. -// -// A successfully processed record includes a RecordId value, which is a unique -// value identified for the record. An unsuccessfully processed record includes -// ErrorCode and ErrorMessage values. ErrorCode reflects the type of error and -// is one of the following values: ServiceUnavailable or InternalFailure. ErrorMessage +// The PutRecordBatch response includes a count of failed records, FailedPutCount, +// and an array of responses, RequestResponses. Each entry in the RequestResponses +// array provides additional information about the processed record, and directly +// correlates with a record in the request array using the same ordering, from +// the top to the bottom. The response array always includes the same number +// of records as the request array. RequestResponses includes both successfully +// and unsuccessfully processed records. Firehose attempts to process all records +// in each PutRecordBatch request. A single record failure does not stop the +// processing of subsequent records. +// +// A successfully processed record includes a RecordId value, which is unique +// for the record. An unsuccessfully processed record includes ErrorCode and +// ErrorMessage values. ErrorCode reflects the type of error, and is one of +// the following values: ServiceUnavailable or InternalFailure. ErrorMessage // provides more detailed information about the error. // -// If FailedPutCount is greater than 0 (zero), retry the request. A retry of -// the entire batch of records is possible; however, we strongly recommend that -// you inspect the entire response and resend only those records that failed -// processing. This minimizes duplicate records and also reduces the total bytes -// sent (and corresponding charges). +// If there is an internal server error or a timeout, the write might have completed +// or it might have failed. If FailedPutCount is greater than 0, retry the request, +// resending only those records that might have failed processing. This minimizes +// the possible duplicate records and also reduces the total bytes sent (and +// corresponding charges). We recommend that you handle any duplicates at the +// destination. // -// If the PutRecordBatch operation throws a ServiceUnavailableException, back -// off and retry. If the exception persists, it is possible that the throughput -// limits have been exceeded for the delivery stream. +// If PutRecordBatch throws ServiceUnavailableException, back off and retry. +// If the exception persists, it is possible that the throughput limits have +// been exceeded for the delivery stream. // // Data records sent to Firehose are stored for 24 hours from the time they // are added to a delivery stream as it attempts to send the records to the @@ -557,18 +558,19 @@ func (c *Firehose) PutRecordBatchRequest(input *PutRecordBatchInput) (req *reque // API operation PutRecordBatch for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource could not be found. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // The specified input parameter has an value that is not valid. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is unavailable, back off and retry the operation. If you continue // to see the exception, throughput limits for the delivery stream may have // been exceeded. For more information about limits and how to request an increase, // see Amazon Kinesis Firehose Limits (http://docs.aws.amazon.com/firehose/latest/dev/limits.html). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/PutRecordBatch func (c *Firehose) PutRecordBatch(input *PutRecordBatchInput) (*PutRecordBatchOutput, error) { req, out := c.PutRecordBatchRequest(input) err := req.Send() @@ -601,6 +603,7 @@ const opUpdateDestination = "UpdateDestination" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/UpdateDestination func (c *Firehose) UpdateDestinationRequest(input *UpdateDestinationInput) (req *request.Request, output *UpdateDestinationOutput) { op := &request.Operation{ Name: opUpdateDestination, @@ -612,32 +615,30 @@ func (c *Firehose) UpdateDestinationRequest(input *UpdateDestinationInput) (req input = &UpdateDestinationInput{} } - req = c.newRequest(op, input, output) output = &UpdateDestinationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // UpdateDestination API operation for Amazon Kinesis Firehose. // -// Updates the specified destination of the specified delivery stream. Note: -// Switching between Elasticsearch and other services is not supported. For -// Elasticsearch destination, you can only update an existing Elasticsearch -// destination with this operation. +// Updates the specified destination of the specified delivery stream. +// +// You can use this operation to change the destination type (for example, to +// replace the Amazon S3 destination with Amazon Redshift) or change the parameters +// associated with a destination (for example, to change the bucket name of +// the Amazon S3 destination). The update might not occur immediately. The target +// delivery stream remains active while the configurations are updated, so data +// writes to the delivery stream can continue during this process. The updated +// configurations are usually effective within a few minutes. // -// This operation can be used to change the destination type (for example, -// to replace the Amazon S3 destination with Amazon Redshift) or change the -// parameters associated with a given destination (for example, to change the -// bucket name of the Amazon S3 destination). The update may not occur immediately. -// The target delivery stream remains active while the configurations are updated, -// so data writes to the delivery stream can continue during this process. The -// updated configurations are normally effective within a few minutes. +// Note that switching between Amazon ES and other services is not supported. +// For an Amazon ES destination, you can only update to another Amazon ES destination. // // If the destination type is the same, Firehose merges the configuration parameters -// specified in the UpdateDestination request with the destination configuration -// that already exists on the delivery stream. If any of the parameters are -// not specified in the update request, then the existing configuration parameters -// are retained. For example, in the Amazon S3 destination, if EncryptionConfiguration +// specified with the destination configuration that already exists on the delivery +// stream. If any of the parameters are not specified in the call, the existing +// values are retained. For example, in the Amazon S3 destination, if EncryptionConfiguration // is not specified then the existing EncryptionConfiguration is maintained // on the destination. // @@ -645,13 +646,12 @@ func (c *Firehose) UpdateDestinationRequest(input *UpdateDestinationInput) (req // from Amazon S3 to Amazon Redshift, Firehose does not merge any parameters. // In this case, all parameters must be specified. // -// Firehose uses the CurrentDeliveryStreamVersionId to avoid race conditions -// and conflicting merges. This is a required field in every request and the -// service only updates the configuration if the existing configuration matches -// the VersionId. After the update is applied successfully, the VersionId is -// updated, which can be retrieved with the DescribeDeliveryStream operation. -// The new VersionId should be uses to set CurrentDeliveryStreamVersionId in -// the next UpdateDestination operation. +// Firehose uses CurrentDeliveryStreamVersionId to avoid race conditions and +// conflicting merges. This is a required field, and the service updates the +// configuration only if the existing configuration has a version ID that matches. +// After the update is applied successfully, the version ID is updated, and +// can be retrieved using DescribeDeliveryStream. You should use the new version +// ID to set CurrentDeliveryStreamVersionId in the next call. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -661,19 +661,20 @@ func (c *Firehose) UpdateDestinationRequest(input *UpdateDestinationInput) (req // API operation UpdateDestination for usage and error information. // // Returned Error Codes: -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // The specified input parameter has an value that is not valid. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is already in use and not available for this operation. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource could not be found. // -// * ConcurrentModificationException +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" // Another modification has already happened. Fetch VersionId again and use // it to update the destination. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/UpdateDestination func (c *Firehose) UpdateDestination(input *UpdateDestinationInput) (*UpdateDestinationOutput, error) { req, out := c.UpdateDestinationRequest(input) err := req.Send() @@ -683,6 +684,7 @@ func (c *Firehose) UpdateDestination(input *UpdateDestinationInput) (*UpdateDest // Describes hints for the buffering to perform before delivering data to the // destination. Please note that these options are treated as hints, and therefore // Firehose may choose to use different values when it is optimal. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/BufferingHints type BufferingHints struct { _ struct{} `type:"structure"` @@ -693,9 +695,9 @@ type BufferingHints struct { // Buffer incoming data to the specified size, in MBs, before delivering it // to the destination. The default value is 5. // - // We recommend setting SizeInMBs to a value greater than the amount of data - // you typically ingest into the delivery stream in 10 seconds. For example, - // if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher. + // We recommend setting this parameter to a value greater than the amount of + // data you typically ingest into the delivery stream in 10 seconds. For example, + // if you typically ingest data at 1 MB/sec, the value should be 10 MB or higher. SizeInMBs *int64 `min:"1" type:"integer"` } @@ -725,19 +727,32 @@ func (s *BufferingHints) Validate() error { return nil } -// Describes CloudWatch logging options for your delivery stream. +// SetIntervalInSeconds sets the IntervalInSeconds field's value. +func (s *BufferingHints) SetIntervalInSeconds(v int64) *BufferingHints { + s.IntervalInSeconds = &v + return s +} + +// SetSizeInMBs sets the SizeInMBs field's value. +func (s *BufferingHints) SetSizeInMBs(v int64) *BufferingHints { + s.SizeInMBs = &v + return s +} + +// Describes the CloudWatch logging options for your delivery stream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/CloudWatchLoggingOptions type CloudWatchLoggingOptions struct { _ struct{} `type:"structure"` // Enables or disables CloudWatch logging. Enabled *bool `type:"boolean"` - // The CloudWatch group name for logging. This value is required if Enabled - // is true. + // The CloudWatch group name for logging. This value is required if CloudWatch + // logging is enabled. LogGroupName *string `type:"string"` - // The CloudWatch log stream name for logging. This value is required if Enabled - // is true. + // The CloudWatch log stream name for logging. This value is required if CloudWatch + // logging is enabled. LogStreamName *string `type:"string"` } @@ -751,27 +766,46 @@ func (s CloudWatchLoggingOptions) GoString() string { return s.String() } +// SetEnabled sets the Enabled field's value. +func (s *CloudWatchLoggingOptions) SetEnabled(v bool) *CloudWatchLoggingOptions { + s.Enabled = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *CloudWatchLoggingOptions) SetLogGroupName(v string) *CloudWatchLoggingOptions { + s.LogGroupName = &v + return s +} + +// SetLogStreamName sets the LogStreamName field's value. +func (s *CloudWatchLoggingOptions) SetLogStreamName(v string) *CloudWatchLoggingOptions { + s.LogStreamName = &v + return s +} + // Describes a COPY command for Amazon Redshift. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/CopyCommand type CopyCommand struct { _ struct{} `type:"structure"` // Optional parameters to use with the Amazon Redshift COPY command. For more // information, see the "Optional Parameters" section of Amazon Redshift COPY // command (http://docs.aws.amazon.com/redshift/latest/dg/r_COPY.html). Some - // possible examples that would apply to Firehose are as follows. + // possible examples that would apply to Firehose are as follows: // - // delimiter '\t' lzop; - fields are delimited with "\t" (TAB character) and + // delimiter '\t' lzop; - fields are delimited with "\t" (TAB character) and // compressed using lzop. // - // delimiter '| - fields are delimited with "|" (this is the default delimiter). + // delimiter '| - fields are delimited with "|" (this is the default delimiter). // - // delimiter '|' escape - the delimiter should be escaped. + // delimiter '|' escape - the delimiter should be escaped. // - // fixedwidth 'venueid:3,venuename:25,venuecity:12,venuestate:2,venueseats:6' + // fixedwidth 'venueid:3,venuename:25,venuecity:12,venuestate:2,venueseats:6' // - fields are fixed width in the source, with each width specified after every // column in the table. // - // JSON 's3://mybucket/jsonpaths.txt' - data is in JSON format, and the path + // JSON 's3://mybucket/jsonpaths.txt' - data is in JSON format, and the path // specified is the format of the data. // // For more examples, see Amazon Redshift COPY command examples (http://docs.aws.amazon.com/redshift/latest/dg/r_COPY_command_examples.html). @@ -812,28 +846,46 @@ func (s *CopyCommand) Validate() error { return nil } -// Contains the parameters for CreateDeliveryStream. +// SetCopyOptions sets the CopyOptions field's value. +func (s *CopyCommand) SetCopyOptions(v string) *CopyCommand { + s.CopyOptions = &v + return s +} + +// SetDataTableColumns sets the DataTableColumns field's value. +func (s *CopyCommand) SetDataTableColumns(v string) *CopyCommand { + s.DataTableColumns = &v + return s +} + +// SetDataTableName sets the DataTableName field's value. +func (s *CopyCommand) SetDataTableName(v string) *CopyCommand { + s.DataTableName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/CreateDeliveryStreamInput type CreateDeliveryStreamInput struct { _ struct{} `type:"structure"` - // The name of the delivery stream. + // The name of the delivery stream. This name must be unique per AWS account + // in the same region. You can have multiple delivery streams with the same + // name if they are in different accounts or different regions. // // DeliveryStreamName is a required field DeliveryStreamName *string `min:"1" type:"string" required:"true"` - // The destination in Amazon ES. This value cannot be specified if Amazon S3 - // or Amazon Redshift is the desired destination (see restrictions listed above). + // The destination in Amazon ES. You can specify only one destination. ElasticsearchDestinationConfiguration *ElasticsearchDestinationConfiguration `type:"structure"` - // The destination in Amazon Redshift. This value cannot be specified if Amazon - // S3 or Amazon Elasticsearch is the desired destination (see restrictions listed - // above). + // The destination in Amazon S3. You can specify only one destination. + ExtendedS3DestinationConfiguration *ExtendedS3DestinationConfiguration `type:"structure"` + + // The destination in Amazon Redshift. You can specify only one destination. RedshiftDestinationConfiguration *RedshiftDestinationConfiguration `type:"structure"` - // The destination in Amazon S3. This value must be specified if ElasticsearchDestinationConfiguration - // or RedshiftDestinationConfiguration is specified (see restrictions listed - // above). - S3DestinationConfiguration *S3DestinationConfiguration `type:"structure"` + // [Deprecated] The destination in Amazon S3. You can specify only one destination. + S3DestinationConfiguration *S3DestinationConfiguration `deprecated:"true" type:"structure"` } // String returns the string representation @@ -860,6 +912,11 @@ func (s *CreateDeliveryStreamInput) Validate() error { invalidParams.AddNested("ElasticsearchDestinationConfiguration", err.(request.ErrInvalidParams)) } } + if s.ExtendedS3DestinationConfiguration != nil { + if err := s.ExtendedS3DestinationConfiguration.Validate(); err != nil { + invalidParams.AddNested("ExtendedS3DestinationConfiguration", err.(request.ErrInvalidParams)) + } + } if s.RedshiftDestinationConfiguration != nil { if err := s.RedshiftDestinationConfiguration.Validate(); err != nil { invalidParams.AddNested("RedshiftDestinationConfiguration", err.(request.ErrInvalidParams)) @@ -877,12 +934,42 @@ func (s *CreateDeliveryStreamInput) Validate() error { return nil } -// Contains the output of CreateDeliveryStream. +// SetDeliveryStreamName sets the DeliveryStreamName field's value. +func (s *CreateDeliveryStreamInput) SetDeliveryStreamName(v string) *CreateDeliveryStreamInput { + s.DeliveryStreamName = &v + return s +} + +// SetElasticsearchDestinationConfiguration sets the ElasticsearchDestinationConfiguration field's value. +func (s *CreateDeliveryStreamInput) SetElasticsearchDestinationConfiguration(v *ElasticsearchDestinationConfiguration) *CreateDeliveryStreamInput { + s.ElasticsearchDestinationConfiguration = v + return s +} + +// SetExtendedS3DestinationConfiguration sets the ExtendedS3DestinationConfiguration field's value. +func (s *CreateDeliveryStreamInput) SetExtendedS3DestinationConfiguration(v *ExtendedS3DestinationConfiguration) *CreateDeliveryStreamInput { + s.ExtendedS3DestinationConfiguration = v + return s +} + +// SetRedshiftDestinationConfiguration sets the RedshiftDestinationConfiguration field's value. +func (s *CreateDeliveryStreamInput) SetRedshiftDestinationConfiguration(v *RedshiftDestinationConfiguration) *CreateDeliveryStreamInput { + s.RedshiftDestinationConfiguration = v + return s +} + +// SetS3DestinationConfiguration sets the S3DestinationConfiguration field's value. +func (s *CreateDeliveryStreamInput) SetS3DestinationConfiguration(v *S3DestinationConfiguration) *CreateDeliveryStreamInput { + s.S3DestinationConfiguration = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/CreateDeliveryStreamOutput type CreateDeliveryStreamOutput struct { _ struct{} `type:"structure"` // The ARN of the delivery stream. - DeliveryStreamARN *string `type:"string"` + DeliveryStreamARN *string `min:"1" type:"string"` } // String returns the string representation @@ -895,7 +982,13 @@ func (s CreateDeliveryStreamOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteDeliveryStream. +// SetDeliveryStreamARN sets the DeliveryStreamARN field's value. +func (s *CreateDeliveryStreamOutput) SetDeliveryStreamARN(v string) *CreateDeliveryStreamOutput { + s.DeliveryStreamARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/DeleteDeliveryStreamInput type DeleteDeliveryStreamInput struct { _ struct{} `type:"structure"` @@ -931,7 +1024,13 @@ func (s *DeleteDeliveryStreamInput) Validate() error { return nil } -// Contains the output of DeleteDeliveryStream. +// SetDeliveryStreamName sets the DeliveryStreamName field's value. +func (s *DeleteDeliveryStreamInput) SetDeliveryStreamName(v string) *DeleteDeliveryStreamInput { + s.DeliveryStreamName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/DeleteDeliveryStreamOutput type DeleteDeliveryStreamOutput struct { _ struct{} `type:"structure"` } @@ -947,6 +1046,7 @@ func (s DeleteDeliveryStreamOutput) GoString() string { } // Contains information about a delivery stream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/DeliveryStreamDescription type DeliveryStreamDescription struct { _ struct{} `type:"structure"` @@ -956,7 +1056,7 @@ type DeliveryStreamDescription struct { // The Amazon Resource Name (ARN) of the delivery stream. // // DeliveryStreamARN is a required field - DeliveryStreamARN *string `type:"string" required:"true"` + DeliveryStreamARN *string `min:"1" type:"string" required:"true"` // The name of the delivery stream. // @@ -981,11 +1081,10 @@ type DeliveryStreamDescription struct { // The date and time that the delivery stream was last updated. LastUpdateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` - // Used when calling the UpdateDestination operation. Each time the destination - // is updated for the delivery stream, the VersionId is changed, and the current - // VersionId is required when updating the destination. This is so that the - // service knows it is applying the changes to the correct version of the delivery - // stream. + // Each time the destination is updated for a delivery stream, the version ID + // is changed, and the current version ID is required when updating the destination. + // This is so that the service knows it is applying the changes to the correct + // version of the delivery stream. // // VersionId is a required field VersionId *string `min:"1" type:"string" required:"true"` @@ -1001,7 +1100,55 @@ func (s DeliveryStreamDescription) GoString() string { return s.String() } -// Contains the parameters for DescribeDeliveryStream. +// SetCreateTimestamp sets the CreateTimestamp field's value. +func (s *DeliveryStreamDescription) SetCreateTimestamp(v time.Time) *DeliveryStreamDescription { + s.CreateTimestamp = &v + return s +} + +// SetDeliveryStreamARN sets the DeliveryStreamARN field's value. +func (s *DeliveryStreamDescription) SetDeliveryStreamARN(v string) *DeliveryStreamDescription { + s.DeliveryStreamARN = &v + return s +} + +// SetDeliveryStreamName sets the DeliveryStreamName field's value. +func (s *DeliveryStreamDescription) SetDeliveryStreamName(v string) *DeliveryStreamDescription { + s.DeliveryStreamName = &v + return s +} + +// SetDeliveryStreamStatus sets the DeliveryStreamStatus field's value. +func (s *DeliveryStreamDescription) SetDeliveryStreamStatus(v string) *DeliveryStreamDescription { + s.DeliveryStreamStatus = &v + return s +} + +// SetDestinations sets the Destinations field's value. +func (s *DeliveryStreamDescription) SetDestinations(v []*DestinationDescription) *DeliveryStreamDescription { + s.Destinations = v + return s +} + +// SetHasMoreDestinations sets the HasMoreDestinations field's value. +func (s *DeliveryStreamDescription) SetHasMoreDestinations(v bool) *DeliveryStreamDescription { + s.HasMoreDestinations = &v + return s +} + +// SetLastUpdateTimestamp sets the LastUpdateTimestamp field's value. +func (s *DeliveryStreamDescription) SetLastUpdateTimestamp(v time.Time) *DeliveryStreamDescription { + s.LastUpdateTimestamp = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *DeliveryStreamDescription) SetVersionId(v string) *DeliveryStreamDescription { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/DescribeDeliveryStreamInput type DescribeDeliveryStreamInput struct { _ struct{} `type:"structure"` @@ -1010,7 +1157,7 @@ type DescribeDeliveryStreamInput struct { // DeliveryStreamName is a required field DeliveryStreamName *string `min:"1" type:"string" required:"true"` - // Specifies the destination ID to start returning the destination information. + // The ID of the destination to start returning the destination information. // Currently Firehose supports one destination per delivery stream. ExclusiveStartDestinationId *string `min:"1" type:"string"` @@ -1051,7 +1198,25 @@ func (s *DescribeDeliveryStreamInput) Validate() error { return nil } -// Contains the output of DescribeDeliveryStream. +// SetDeliveryStreamName sets the DeliveryStreamName field's value. +func (s *DescribeDeliveryStreamInput) SetDeliveryStreamName(v string) *DescribeDeliveryStreamInput { + s.DeliveryStreamName = &v + return s +} + +// SetExclusiveStartDestinationId sets the ExclusiveStartDestinationId field's value. +func (s *DescribeDeliveryStreamInput) SetExclusiveStartDestinationId(v string) *DescribeDeliveryStreamInput { + s.ExclusiveStartDestinationId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeDeliveryStreamInput) SetLimit(v int64) *DescribeDeliveryStreamInput { + s.Limit = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/DescribeDeliveryStreamOutput type DescribeDeliveryStreamOutput struct { _ struct{} `type:"structure"` @@ -1071,7 +1236,14 @@ func (s DescribeDeliveryStreamOutput) GoString() string { return s.String() } +// SetDeliveryStreamDescription sets the DeliveryStreamDescription field's value. +func (s *DescribeDeliveryStreamOutput) SetDeliveryStreamDescription(v *DeliveryStreamDescription) *DescribeDeliveryStreamOutput { + s.DeliveryStreamDescription = v + return s +} + // Describes the destination for a delivery stream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/DestinationDescription type DestinationDescription struct { _ struct{} `type:"structure"` @@ -1083,10 +1255,13 @@ type DestinationDescription struct { // The destination in Amazon ES. ElasticsearchDestinationDescription *ElasticsearchDestinationDescription `type:"structure"` + // The destination in Amazon S3. + ExtendedS3DestinationDescription *ExtendedS3DestinationDescription `type:"structure"` + // The destination in Amazon Redshift. RedshiftDestinationDescription *RedshiftDestinationDescription `type:"structure"` - // The Amazon S3 destination. + // [Deprecated] The destination in Amazon S3. S3DestinationDescription *S3DestinationDescription `type:"structure"` } @@ -1100,8 +1275,39 @@ func (s DestinationDescription) GoString() string { return s.String() } +// SetDestinationId sets the DestinationId field's value. +func (s *DestinationDescription) SetDestinationId(v string) *DestinationDescription { + s.DestinationId = &v + return s +} + +// SetElasticsearchDestinationDescription sets the ElasticsearchDestinationDescription field's value. +func (s *DestinationDescription) SetElasticsearchDestinationDescription(v *ElasticsearchDestinationDescription) *DestinationDescription { + s.ElasticsearchDestinationDescription = v + return s +} + +// SetExtendedS3DestinationDescription sets the ExtendedS3DestinationDescription field's value. +func (s *DestinationDescription) SetExtendedS3DestinationDescription(v *ExtendedS3DestinationDescription) *DestinationDescription { + s.ExtendedS3DestinationDescription = v + return s +} + +// SetRedshiftDestinationDescription sets the RedshiftDestinationDescription field's value. +func (s *DestinationDescription) SetRedshiftDestinationDescription(v *RedshiftDestinationDescription) *DestinationDescription { + s.RedshiftDestinationDescription = v + return s +} + +// SetS3DestinationDescription sets the S3DestinationDescription field's value. +func (s *DestinationDescription) SetS3DestinationDescription(v *S3DestinationDescription) *DestinationDescription { + s.S3DestinationDescription = v + return s +} + // Describes the buffering to perform before delivering data to the Amazon ES // destination. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/ElasticsearchBufferingHints type ElasticsearchBufferingHints struct { _ struct{} `type:"structure"` @@ -1112,9 +1318,9 @@ type ElasticsearchBufferingHints struct { // Buffer incoming data to the specified size, in MBs, before delivering it // to the destination. The default value is 5. // - // We recommend setting SizeInMBs to a value greater than the amount of data - // you typically ingest into the delivery stream in 10 seconds. For example, - // if you typically ingest data at 1 MB/sec, set SizeInMBs to be 10 MB or higher. + // We recommend setting this parameter to a value greater than the amount of + // data you typically ingest into the delivery stream in 10 seconds. For example, + // if you typically ingest data at 1 MB/sec, the value should be 10 MB or higher. SizeInMBs *int64 `min:"1" type:"integer"` } @@ -1144,20 +1350,33 @@ func (s *ElasticsearchBufferingHints) Validate() error { return nil } +// SetIntervalInSeconds sets the IntervalInSeconds field's value. +func (s *ElasticsearchBufferingHints) SetIntervalInSeconds(v int64) *ElasticsearchBufferingHints { + s.IntervalInSeconds = &v + return s +} + +// SetSizeInMBs sets the SizeInMBs field's value. +func (s *ElasticsearchBufferingHints) SetSizeInMBs(v int64) *ElasticsearchBufferingHints { + s.SizeInMBs = &v + return s +} + // Describes the configuration of a destination in Amazon ES. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/ElasticsearchDestinationConfiguration type ElasticsearchDestinationConfiguration struct { _ struct{} `type:"structure"` - // Buffering options. If no value is specified, ElasticsearchBufferingHints - // object default values are used. + // The buffering options. If no value is specified, the default values for ElasticsearchBufferingHints + // are used. BufferingHints *ElasticsearchBufferingHints `type:"structure"` - // Describes CloudWatch logging options for your delivery stream. + // The CloudWatch logging options for your delivery stream. CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` - // The ARN of the Amazon ES domain. The IAM role must have permission for DescribeElasticsearchDomain, - // DescribeElasticsearchDomains , and DescribeElasticsearchDomainConfig after - // assuming RoleARN. + // The ARN of the Amazon ES domain. The IAM role must have permissions for DescribeElasticsearchDomain, + // DescribeElasticsearchDomains, and DescribeElasticsearchDomainConfig after + // assuming the role specified in RoleARN. // // DomainARN is a required field DomainARN *string `min:"1" type:"string" required:"true"` @@ -1170,11 +1389,14 @@ type ElasticsearchDestinationConfiguration struct { // The Elasticsearch index rotation period. Index rotation appends a timestamp // to the IndexName to facilitate expiration of old data. For more information, // see Index Rotation for Amazon Elasticsearch Service Destination (http://docs.aws.amazon.com/firehose/latest/dev/basic-deliver.html#es-index-rotation). - // Default value is OneDay. + // The default value is OneDay. IndexRotationPeriod *string `type:"string" enum:"ElasticsearchIndexRotationPeriod"` - // Configures retry behavior in the event that Firehose is unable to deliver - // documents to Amazon ES. Default value is 300 (5 minutes). + // The data processing configuration. + ProcessingConfiguration *ProcessingConfiguration `type:"structure"` + + // The retry behavior in the event that Firehose is unable to deliver documents + // to Amazon ES. The default value is 300 (5 minutes). RetryOptions *ElasticsearchRetryOptions `type:"structure"` // The ARN of the IAM role to be assumed by Firehose for calling the Amazon @@ -1194,7 +1416,8 @@ type ElasticsearchDestinationConfiguration struct { // Default value is FailedDocumentsOnly. S3BackupMode *string `type:"string" enum:"ElasticsearchS3BackupMode"` - // Describes the configuration of a destination in Amazon S3. + // The configuration for the intermediate Amazon S3 location from which Amazon + // ES obtains data. // // S3Configuration is a required field S3Configuration *S3DestinationConfiguration `type:"structure" required:"true"` @@ -1250,6 +1473,11 @@ func (s *ElasticsearchDestinationConfiguration) Validate() error { invalidParams.AddNested("BufferingHints", err.(request.ErrInvalidParams)) } } + if s.ProcessingConfiguration != nil { + if err := s.ProcessingConfiguration.Validate(); err != nil { + invalidParams.AddNested("ProcessingConfiguration", err.(request.ErrInvalidParams)) + } + } if s.S3Configuration != nil { if err := s.S3Configuration.Validate(); err != nil { invalidParams.AddNested("S3Configuration", err.(request.ErrInvalidParams)) @@ -1262,14 +1490,81 @@ func (s *ElasticsearchDestinationConfiguration) Validate() error { return nil } +// SetBufferingHints sets the BufferingHints field's value. +func (s *ElasticsearchDestinationConfiguration) SetBufferingHints(v *ElasticsearchBufferingHints) *ElasticsearchDestinationConfiguration { + s.BufferingHints = v + return s +} + +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *ElasticsearchDestinationConfiguration) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *ElasticsearchDestinationConfiguration { + s.CloudWatchLoggingOptions = v + return s +} + +// SetDomainARN sets the DomainARN field's value. +func (s *ElasticsearchDestinationConfiguration) SetDomainARN(v string) *ElasticsearchDestinationConfiguration { + s.DomainARN = &v + return s +} + +// SetIndexName sets the IndexName field's value. +func (s *ElasticsearchDestinationConfiguration) SetIndexName(v string) *ElasticsearchDestinationConfiguration { + s.IndexName = &v + return s +} + +// SetIndexRotationPeriod sets the IndexRotationPeriod field's value. +func (s *ElasticsearchDestinationConfiguration) SetIndexRotationPeriod(v string) *ElasticsearchDestinationConfiguration { + s.IndexRotationPeriod = &v + return s +} + +// SetProcessingConfiguration sets the ProcessingConfiguration field's value. +func (s *ElasticsearchDestinationConfiguration) SetProcessingConfiguration(v *ProcessingConfiguration) *ElasticsearchDestinationConfiguration { + s.ProcessingConfiguration = v + return s +} + +// SetRetryOptions sets the RetryOptions field's value. +func (s *ElasticsearchDestinationConfiguration) SetRetryOptions(v *ElasticsearchRetryOptions) *ElasticsearchDestinationConfiguration { + s.RetryOptions = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *ElasticsearchDestinationConfiguration) SetRoleARN(v string) *ElasticsearchDestinationConfiguration { + s.RoleARN = &v + return s +} + +// SetS3BackupMode sets the S3BackupMode field's value. +func (s *ElasticsearchDestinationConfiguration) SetS3BackupMode(v string) *ElasticsearchDestinationConfiguration { + s.S3BackupMode = &v + return s +} + +// SetS3Configuration sets the S3Configuration field's value. +func (s *ElasticsearchDestinationConfiguration) SetS3Configuration(v *S3DestinationConfiguration) *ElasticsearchDestinationConfiguration { + s.S3Configuration = v + return s +} + +// SetTypeName sets the TypeName field's value. +func (s *ElasticsearchDestinationConfiguration) SetTypeName(v string) *ElasticsearchDestinationConfiguration { + s.TypeName = &v + return s +} + // The destination description in Amazon ES. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/ElasticsearchDestinationDescription type ElasticsearchDestinationDescription struct { _ struct{} `type:"structure"` - // Buffering options. + // The buffering options. BufferingHints *ElasticsearchBufferingHints `type:"structure"` - // CloudWatch logging options. + // The CloudWatch logging options. CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` // The ARN of the Amazon ES domain. @@ -1281,16 +1576,19 @@ type ElasticsearchDestinationDescription struct { // The Elasticsearch index rotation period IndexRotationPeriod *string `type:"string" enum:"ElasticsearchIndexRotationPeriod"` - // Elasticsearch retry options. + // The data processing configuration. + ProcessingConfiguration *ProcessingConfiguration `type:"structure"` + + // The Amazon ES retry options. RetryOptions *ElasticsearchRetryOptions `type:"structure"` // The ARN of the AWS credentials. RoleARN *string `min:"1" type:"string"` - // Amazon S3 backup mode. + // The Amazon S3 backup mode. S3BackupMode *string `type:"string" enum:"ElasticsearchS3BackupMode"` - // Describes a destination in Amazon S3. + // The Amazon S3 destination. S3DestinationDescription *S3DestinationDescription `type:"structure"` // The Elasticsearch type name. @@ -1307,33 +1605,103 @@ func (s ElasticsearchDestinationDescription) GoString() string { return s.String() } +// SetBufferingHints sets the BufferingHints field's value. +func (s *ElasticsearchDestinationDescription) SetBufferingHints(v *ElasticsearchBufferingHints) *ElasticsearchDestinationDescription { + s.BufferingHints = v + return s +} + +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *ElasticsearchDestinationDescription) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *ElasticsearchDestinationDescription { + s.CloudWatchLoggingOptions = v + return s +} + +// SetDomainARN sets the DomainARN field's value. +func (s *ElasticsearchDestinationDescription) SetDomainARN(v string) *ElasticsearchDestinationDescription { + s.DomainARN = &v + return s +} + +// SetIndexName sets the IndexName field's value. +func (s *ElasticsearchDestinationDescription) SetIndexName(v string) *ElasticsearchDestinationDescription { + s.IndexName = &v + return s +} + +// SetIndexRotationPeriod sets the IndexRotationPeriod field's value. +func (s *ElasticsearchDestinationDescription) SetIndexRotationPeriod(v string) *ElasticsearchDestinationDescription { + s.IndexRotationPeriod = &v + return s +} + +// SetProcessingConfiguration sets the ProcessingConfiguration field's value. +func (s *ElasticsearchDestinationDescription) SetProcessingConfiguration(v *ProcessingConfiguration) *ElasticsearchDestinationDescription { + s.ProcessingConfiguration = v + return s +} + +// SetRetryOptions sets the RetryOptions field's value. +func (s *ElasticsearchDestinationDescription) SetRetryOptions(v *ElasticsearchRetryOptions) *ElasticsearchDestinationDescription { + s.RetryOptions = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *ElasticsearchDestinationDescription) SetRoleARN(v string) *ElasticsearchDestinationDescription { + s.RoleARN = &v + return s +} + +// SetS3BackupMode sets the S3BackupMode field's value. +func (s *ElasticsearchDestinationDescription) SetS3BackupMode(v string) *ElasticsearchDestinationDescription { + s.S3BackupMode = &v + return s +} + +// SetS3DestinationDescription sets the S3DestinationDescription field's value. +func (s *ElasticsearchDestinationDescription) SetS3DestinationDescription(v *S3DestinationDescription) *ElasticsearchDestinationDescription { + s.S3DestinationDescription = v + return s +} + +// SetTypeName sets the TypeName field's value. +func (s *ElasticsearchDestinationDescription) SetTypeName(v string) *ElasticsearchDestinationDescription { + s.TypeName = &v + return s +} + // Describes an update for a destination in Amazon ES. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/ElasticsearchDestinationUpdate type ElasticsearchDestinationUpdate struct { _ struct{} `type:"structure"` - // Buffering options. If no value is specified, ElasticsearchBufferingHints + // The buffering options. If no value is specified, ElasticsearchBufferingHints // object default values are used. BufferingHints *ElasticsearchBufferingHints `type:"structure"` - // Describes CloudWatch logging options for your delivery stream. + // The CloudWatch logging options for your delivery stream. CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` - // The ARN of the Amazon ES domain. The IAM role must have permission for DescribeElasticsearchDomain, - // DescribeElasticsearchDomains , and DescribeElasticsearchDomainConfig after - // assuming RoleARN. + // The ARN of the Amazon ES domain. The IAM role must have permissions for DescribeElasticsearchDomain, + // DescribeElasticsearchDomains, and DescribeElasticsearchDomainConfig after + // assuming the IAM role specified in RoleARN. DomainARN *string `min:"1" type:"string"` // The Elasticsearch index name. IndexName *string `min:"1" type:"string"` // The Elasticsearch index rotation period. Index rotation appends a timestamp - // to the IndexName to facilitate the expiration of old data. For more information, + // to IndexName to facilitate the expiration of old data. For more information, // see Index Rotation for Amazon Elasticsearch Service Destination (http://docs.aws.amazon.com/firehose/latest/dev/basic-deliver.html#es-index-rotation). // Default value is OneDay. IndexRotationPeriod *string `type:"string" enum:"ElasticsearchIndexRotationPeriod"` - // Configures retry behavior in the event that Firehose is unable to deliver - // documents to Amazon ES. Default value is 300 (5 minutes). + // The data processing configuration. + ProcessingConfiguration *ProcessingConfiguration `type:"structure"` + + // The retry behavior in the event that Firehose is unable to deliver documents + // to Amazon ES. Default value is 300 (5 minutes). RetryOptions *ElasticsearchRetryOptions `type:"structure"` // The ARN of the IAM role to be assumed by Firehose for calling the Amazon @@ -1341,7 +1709,7 @@ type ElasticsearchDestinationUpdate struct { // Amazon S3 Bucket Access (http://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-s3). RoleARN *string `min:"1" type:"string"` - // Describes an update for a destination in Amazon S3. + // The Amazon S3 destination. S3Update *S3DestinationUpdate `type:"structure"` // The Elasticsearch type name. @@ -1378,6 +1746,11 @@ func (s *ElasticsearchDestinationUpdate) Validate() error { invalidParams.AddNested("BufferingHints", err.(request.ErrInvalidParams)) } } + if s.ProcessingConfiguration != nil { + if err := s.ProcessingConfiguration.Validate(); err != nil { + invalidParams.AddNested("ProcessingConfiguration", err.(request.ErrInvalidParams)) + } + } if s.S3Update != nil { if err := s.S3Update.Validate(); err != nil { invalidParams.AddNested("S3Update", err.(request.ErrInvalidParams)) @@ -1390,8 +1763,69 @@ func (s *ElasticsearchDestinationUpdate) Validate() error { return nil } +// SetBufferingHints sets the BufferingHints field's value. +func (s *ElasticsearchDestinationUpdate) SetBufferingHints(v *ElasticsearchBufferingHints) *ElasticsearchDestinationUpdate { + s.BufferingHints = v + return s +} + +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *ElasticsearchDestinationUpdate) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *ElasticsearchDestinationUpdate { + s.CloudWatchLoggingOptions = v + return s +} + +// SetDomainARN sets the DomainARN field's value. +func (s *ElasticsearchDestinationUpdate) SetDomainARN(v string) *ElasticsearchDestinationUpdate { + s.DomainARN = &v + return s +} + +// SetIndexName sets the IndexName field's value. +func (s *ElasticsearchDestinationUpdate) SetIndexName(v string) *ElasticsearchDestinationUpdate { + s.IndexName = &v + return s +} + +// SetIndexRotationPeriod sets the IndexRotationPeriod field's value. +func (s *ElasticsearchDestinationUpdate) SetIndexRotationPeriod(v string) *ElasticsearchDestinationUpdate { + s.IndexRotationPeriod = &v + return s +} + +// SetProcessingConfiguration sets the ProcessingConfiguration field's value. +func (s *ElasticsearchDestinationUpdate) SetProcessingConfiguration(v *ProcessingConfiguration) *ElasticsearchDestinationUpdate { + s.ProcessingConfiguration = v + return s +} + +// SetRetryOptions sets the RetryOptions field's value. +func (s *ElasticsearchDestinationUpdate) SetRetryOptions(v *ElasticsearchRetryOptions) *ElasticsearchDestinationUpdate { + s.RetryOptions = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *ElasticsearchDestinationUpdate) SetRoleARN(v string) *ElasticsearchDestinationUpdate { + s.RoleARN = &v + return s +} + +// SetS3Update sets the S3Update field's value. +func (s *ElasticsearchDestinationUpdate) SetS3Update(v *S3DestinationUpdate) *ElasticsearchDestinationUpdate { + s.S3Update = v + return s +} + +// SetTypeName sets the TypeName field's value. +func (s *ElasticsearchDestinationUpdate) SetTypeName(v string) *ElasticsearchDestinationUpdate { + s.TypeName = &v + return s +} + // Configures retry behavior in the event that Firehose is unable to deliver // documents to Amazon ES. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/ElasticsearchRetryOptions type ElasticsearchRetryOptions struct { _ struct{} `type:"structure"` @@ -1413,7 +1847,14 @@ func (s ElasticsearchRetryOptions) GoString() string { return s.String() } +// SetDurationInSeconds sets the DurationInSeconds field's value. +func (s *ElasticsearchRetryOptions) SetDurationInSeconds(v int64) *ElasticsearchRetryOptions { + s.DurationInSeconds = &v + return s +} + // Describes the encryption for a destination in Amazon S3. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/EncryptionConfiguration type EncryptionConfiguration struct { _ struct{} `type:"structure"` @@ -1450,35 +1891,108 @@ func (s *EncryptionConfiguration) Validate() error { return nil } -// Describes an encryption key for a destination in Amazon S3. -type KMSEncryptionConfig struct { +// SetKMSEncryptionConfig sets the KMSEncryptionConfig field's value. +func (s *EncryptionConfiguration) SetKMSEncryptionConfig(v *KMSEncryptionConfig) *EncryptionConfiguration { + s.KMSEncryptionConfig = v + return s +} + +// SetNoEncryptionConfig sets the NoEncryptionConfig field's value. +func (s *EncryptionConfiguration) SetNoEncryptionConfig(v string) *EncryptionConfiguration { + s.NoEncryptionConfig = &v + return s +} + +// Describes the configuration of a destination in Amazon S3. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/ExtendedS3DestinationConfiguration +type ExtendedS3DestinationConfiguration struct { _ struct{} `type:"structure"` - // The ARN of the encryption key. Must belong to the same region as the destination - // Amazon S3 bucket. + // The ARN of the S3 bucket. // - // AWSKMSKeyARN is a required field - AWSKMSKeyARN *string `min:"1" type:"string" required:"true"` + // BucketARN is a required field + BucketARN *string `min:"1" type:"string" required:"true"` + + // The buffering option. + BufferingHints *BufferingHints `type:"structure"` + + // The CloudWatch logging options for your delivery stream. + CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` + + // The compression format. If no value is specified, the default is UNCOMPRESSED. + CompressionFormat *string `type:"string" enum:"CompressionFormat"` + + // The encryption configuration. If no value is specified, the default is no + // encryption. + EncryptionConfiguration *EncryptionConfiguration `type:"structure"` + + // The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered + // S3 files. You can specify an extra prefix to be added in front of the time + // format prefix. Note that if the prefix ends with a slash, it appears as a + // folder in the S3 bucket. For more information, see Amazon S3 Object Name + // Format (http://docs.aws.amazon.com/firehose/latest/dev/basic-deliver.html) + // in the Amazon Kinesis Firehose Developer Guide. + Prefix *string `type:"string"` + + // The data processing configuration. + ProcessingConfiguration *ProcessingConfiguration `type:"structure"` + + // The ARN of the AWS credentials. + // + // RoleARN is a required field + RoleARN *string `min:"1" type:"string" required:"true"` + + // The configuration for backup in Amazon S3. + S3BackupConfiguration *S3DestinationConfiguration `type:"structure"` + + // The Amazon S3 backup mode. + S3BackupMode *string `type:"string" enum:"S3BackupMode"` } // String returns the string representation -func (s KMSEncryptionConfig) String() string { +func (s ExtendedS3DestinationConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s KMSEncryptionConfig) GoString() string { +func (s ExtendedS3DestinationConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *KMSEncryptionConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "KMSEncryptionConfig"} - if s.AWSKMSKeyARN == nil { - invalidParams.Add(request.NewErrParamRequired("AWSKMSKeyARN")) +func (s *ExtendedS3DestinationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExtendedS3DestinationConfiguration"} + if s.BucketARN == nil { + invalidParams.Add(request.NewErrParamRequired("BucketARN")) } - if s.AWSKMSKeyARN != nil && len(*s.AWSKMSKeyARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AWSKMSKeyARN", 1)) + if s.BucketARN != nil && len(*s.BucketARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BucketARN", 1)) + } + if s.RoleARN == nil { + invalidParams.Add(request.NewErrParamRequired("RoleARN")) + } + if s.RoleARN != nil && len(*s.RoleARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1)) + } + if s.BufferingHints != nil { + if err := s.BufferingHints.Validate(); err != nil { + invalidParams.AddNested("BufferingHints", err.(request.ErrInvalidParams)) + } + } + if s.EncryptionConfiguration != nil { + if err := s.EncryptionConfiguration.Validate(); err != nil { + invalidParams.AddNested("EncryptionConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.ProcessingConfiguration != nil { + if err := s.ProcessingConfiguration.Validate(); err != nil { + invalidParams.AddNested("ProcessingConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.S3BackupConfiguration != nil { + if err := s.S3BackupConfiguration.Validate(); err != nil { + invalidParams.AddNested("S3BackupConfiguration", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -1487,15 +2001,389 @@ func (s *KMSEncryptionConfig) Validate() error { return nil } -// Contains the parameters for ListDeliveryStreams. -type ListDeliveryStreamsInput struct { - _ struct{} `type:"structure"` +// SetBucketARN sets the BucketARN field's value. +func (s *ExtendedS3DestinationConfiguration) SetBucketARN(v string) *ExtendedS3DestinationConfiguration { + s.BucketARN = &v + return s +} - // The name of the delivery stream to start the list with. - ExclusiveStartDeliveryStreamName *string `min:"1" type:"string"` +// SetBufferingHints sets the BufferingHints field's value. +func (s *ExtendedS3DestinationConfiguration) SetBufferingHints(v *BufferingHints) *ExtendedS3DestinationConfiguration { + s.BufferingHints = v + return s +} - // The maximum number of delivery streams to list. - Limit *int64 `min:"1" type:"integer"` +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *ExtendedS3DestinationConfiguration) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *ExtendedS3DestinationConfiguration { + s.CloudWatchLoggingOptions = v + return s +} + +// SetCompressionFormat sets the CompressionFormat field's value. +func (s *ExtendedS3DestinationConfiguration) SetCompressionFormat(v string) *ExtendedS3DestinationConfiguration { + s.CompressionFormat = &v + return s +} + +// SetEncryptionConfiguration sets the EncryptionConfiguration field's value. +func (s *ExtendedS3DestinationConfiguration) SetEncryptionConfiguration(v *EncryptionConfiguration) *ExtendedS3DestinationConfiguration { + s.EncryptionConfiguration = v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ExtendedS3DestinationConfiguration) SetPrefix(v string) *ExtendedS3DestinationConfiguration { + s.Prefix = &v + return s +} + +// SetProcessingConfiguration sets the ProcessingConfiguration field's value. +func (s *ExtendedS3DestinationConfiguration) SetProcessingConfiguration(v *ProcessingConfiguration) *ExtendedS3DestinationConfiguration { + s.ProcessingConfiguration = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *ExtendedS3DestinationConfiguration) SetRoleARN(v string) *ExtendedS3DestinationConfiguration { + s.RoleARN = &v + return s +} + +// SetS3BackupConfiguration sets the S3BackupConfiguration field's value. +func (s *ExtendedS3DestinationConfiguration) SetS3BackupConfiguration(v *S3DestinationConfiguration) *ExtendedS3DestinationConfiguration { + s.S3BackupConfiguration = v + return s +} + +// SetS3BackupMode sets the S3BackupMode field's value. +func (s *ExtendedS3DestinationConfiguration) SetS3BackupMode(v string) *ExtendedS3DestinationConfiguration { + s.S3BackupMode = &v + return s +} + +// Describes a destination in Amazon S3. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/ExtendedS3DestinationDescription +type ExtendedS3DestinationDescription struct { + _ struct{} `type:"structure"` + + // The ARN of the S3 bucket. + // + // BucketARN is a required field + BucketARN *string `min:"1" type:"string" required:"true"` + + // The buffering option. + // + // BufferingHints is a required field + BufferingHints *BufferingHints `type:"structure" required:"true"` + + // The CloudWatch logging options for your delivery stream. + CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` + + // The compression format. If no value is specified, the default is UNCOMPRESSED. + // + // CompressionFormat is a required field + CompressionFormat *string `type:"string" required:"true" enum:"CompressionFormat"` + + // The encryption configuration. If no value is specified, the default is no + // encryption. + // + // EncryptionConfiguration is a required field + EncryptionConfiguration *EncryptionConfiguration `type:"structure" required:"true"` + + // The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered + // S3 files. You can specify an extra prefix to be added in front of the time + // format prefix. Note that if the prefix ends with a slash, it appears as a + // folder in the S3 bucket. For more information, see Amazon S3 Object Name + // Format (http://docs.aws.amazon.com/firehose/latest/dev/basic-deliver.html) + // in the Amazon Kinesis Firehose Developer Guide. + Prefix *string `type:"string"` + + // The data processing configuration. + ProcessingConfiguration *ProcessingConfiguration `type:"structure"` + + // The ARN of the AWS credentials. + // + // RoleARN is a required field + RoleARN *string `min:"1" type:"string" required:"true"` + + // The configuration for backup in Amazon S3. + S3BackupDescription *S3DestinationDescription `type:"structure"` + + // The Amazon S3 backup mode. + S3BackupMode *string `type:"string" enum:"S3BackupMode"` +} + +// String returns the string representation +func (s ExtendedS3DestinationDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExtendedS3DestinationDescription) GoString() string { + return s.String() +} + +// SetBucketARN sets the BucketARN field's value. +func (s *ExtendedS3DestinationDescription) SetBucketARN(v string) *ExtendedS3DestinationDescription { + s.BucketARN = &v + return s +} + +// SetBufferingHints sets the BufferingHints field's value. +func (s *ExtendedS3DestinationDescription) SetBufferingHints(v *BufferingHints) *ExtendedS3DestinationDescription { + s.BufferingHints = v + return s +} + +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *ExtendedS3DestinationDescription) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *ExtendedS3DestinationDescription { + s.CloudWatchLoggingOptions = v + return s +} + +// SetCompressionFormat sets the CompressionFormat field's value. +func (s *ExtendedS3DestinationDescription) SetCompressionFormat(v string) *ExtendedS3DestinationDescription { + s.CompressionFormat = &v + return s +} + +// SetEncryptionConfiguration sets the EncryptionConfiguration field's value. +func (s *ExtendedS3DestinationDescription) SetEncryptionConfiguration(v *EncryptionConfiguration) *ExtendedS3DestinationDescription { + s.EncryptionConfiguration = v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ExtendedS3DestinationDescription) SetPrefix(v string) *ExtendedS3DestinationDescription { + s.Prefix = &v + return s +} + +// SetProcessingConfiguration sets the ProcessingConfiguration field's value. +func (s *ExtendedS3DestinationDescription) SetProcessingConfiguration(v *ProcessingConfiguration) *ExtendedS3DestinationDescription { + s.ProcessingConfiguration = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *ExtendedS3DestinationDescription) SetRoleARN(v string) *ExtendedS3DestinationDescription { + s.RoleARN = &v + return s +} + +// SetS3BackupDescription sets the S3BackupDescription field's value. +func (s *ExtendedS3DestinationDescription) SetS3BackupDescription(v *S3DestinationDescription) *ExtendedS3DestinationDescription { + s.S3BackupDescription = v + return s +} + +// SetS3BackupMode sets the S3BackupMode field's value. +func (s *ExtendedS3DestinationDescription) SetS3BackupMode(v string) *ExtendedS3DestinationDescription { + s.S3BackupMode = &v + return s +} + +// Describes an update for a destination in Amazon S3. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/ExtendedS3DestinationUpdate +type ExtendedS3DestinationUpdate struct { + _ struct{} `type:"structure"` + + // The ARN of the S3 bucket. + BucketARN *string `min:"1" type:"string"` + + // The buffering option. + BufferingHints *BufferingHints `type:"structure"` + + // The CloudWatch logging options for your delivery stream. + CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` + + // The compression format. If no value is specified, the default is UNCOMPRESSED. + CompressionFormat *string `type:"string" enum:"CompressionFormat"` + + // The encryption configuration. If no value is specified, the default is no + // encryption. + EncryptionConfiguration *EncryptionConfiguration `type:"structure"` + + // The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered + // S3 files. You can specify an extra prefix to be added in front of the time + // format prefix. Note that if the prefix ends with a slash, it appears as a + // folder in the S3 bucket. For more information, see Amazon S3 Object Name + // Format (http://docs.aws.amazon.com/firehose/latest/dev/basic-deliver.html) + // in the Amazon Kinesis Firehose Developer Guide. + Prefix *string `type:"string"` + + // The data processing configuration. + ProcessingConfiguration *ProcessingConfiguration `type:"structure"` + + // The ARN of the AWS credentials. + RoleARN *string `min:"1" type:"string"` + + // Enables or disables Amazon S3 backup mode. + S3BackupMode *string `type:"string" enum:"S3BackupMode"` + + // The Amazon S3 destination for backup. + S3BackupUpdate *S3DestinationUpdate `type:"structure"` +} + +// String returns the string representation +func (s ExtendedS3DestinationUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExtendedS3DestinationUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ExtendedS3DestinationUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExtendedS3DestinationUpdate"} + if s.BucketARN != nil && len(*s.BucketARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BucketARN", 1)) + } + if s.RoleARN != nil && len(*s.RoleARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1)) + } + if s.BufferingHints != nil { + if err := s.BufferingHints.Validate(); err != nil { + invalidParams.AddNested("BufferingHints", err.(request.ErrInvalidParams)) + } + } + if s.EncryptionConfiguration != nil { + if err := s.EncryptionConfiguration.Validate(); err != nil { + invalidParams.AddNested("EncryptionConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.ProcessingConfiguration != nil { + if err := s.ProcessingConfiguration.Validate(); err != nil { + invalidParams.AddNested("ProcessingConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.S3BackupUpdate != nil { + if err := s.S3BackupUpdate.Validate(); err != nil { + invalidParams.AddNested("S3BackupUpdate", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucketARN sets the BucketARN field's value. +func (s *ExtendedS3DestinationUpdate) SetBucketARN(v string) *ExtendedS3DestinationUpdate { + s.BucketARN = &v + return s +} + +// SetBufferingHints sets the BufferingHints field's value. +func (s *ExtendedS3DestinationUpdate) SetBufferingHints(v *BufferingHints) *ExtendedS3DestinationUpdate { + s.BufferingHints = v + return s +} + +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *ExtendedS3DestinationUpdate) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *ExtendedS3DestinationUpdate { + s.CloudWatchLoggingOptions = v + return s +} + +// SetCompressionFormat sets the CompressionFormat field's value. +func (s *ExtendedS3DestinationUpdate) SetCompressionFormat(v string) *ExtendedS3DestinationUpdate { + s.CompressionFormat = &v + return s +} + +// SetEncryptionConfiguration sets the EncryptionConfiguration field's value. +func (s *ExtendedS3DestinationUpdate) SetEncryptionConfiguration(v *EncryptionConfiguration) *ExtendedS3DestinationUpdate { + s.EncryptionConfiguration = v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ExtendedS3DestinationUpdate) SetPrefix(v string) *ExtendedS3DestinationUpdate { + s.Prefix = &v + return s +} + +// SetProcessingConfiguration sets the ProcessingConfiguration field's value. +func (s *ExtendedS3DestinationUpdate) SetProcessingConfiguration(v *ProcessingConfiguration) *ExtendedS3DestinationUpdate { + s.ProcessingConfiguration = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *ExtendedS3DestinationUpdate) SetRoleARN(v string) *ExtendedS3DestinationUpdate { + s.RoleARN = &v + return s +} + +// SetS3BackupMode sets the S3BackupMode field's value. +func (s *ExtendedS3DestinationUpdate) SetS3BackupMode(v string) *ExtendedS3DestinationUpdate { + s.S3BackupMode = &v + return s +} + +// SetS3BackupUpdate sets the S3BackupUpdate field's value. +func (s *ExtendedS3DestinationUpdate) SetS3BackupUpdate(v *S3DestinationUpdate) *ExtendedS3DestinationUpdate { + s.S3BackupUpdate = v + return s +} + +// Describes an encryption key for a destination in Amazon S3. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/KMSEncryptionConfig +type KMSEncryptionConfig struct { + _ struct{} `type:"structure"` + + // The ARN of the encryption key. Must belong to the same region as the destination + // Amazon S3 bucket. + // + // AWSKMSKeyARN is a required field + AWSKMSKeyARN *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s KMSEncryptionConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KMSEncryptionConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *KMSEncryptionConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KMSEncryptionConfig"} + if s.AWSKMSKeyARN == nil { + invalidParams.Add(request.NewErrParamRequired("AWSKMSKeyARN")) + } + if s.AWSKMSKeyARN != nil && len(*s.AWSKMSKeyARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AWSKMSKeyARN", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAWSKMSKeyARN sets the AWSKMSKeyARN field's value. +func (s *KMSEncryptionConfig) SetAWSKMSKeyARN(v string) *KMSEncryptionConfig { + s.AWSKMSKeyARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/ListDeliveryStreamsInput +type ListDeliveryStreamsInput struct { + _ struct{} `type:"structure"` + + // The name of the delivery stream to start the list with. + ExclusiveStartDeliveryStreamName *string `min:"1" type:"string"` + + // The maximum number of delivery streams to list. + Limit *int64 `min:"1" type:"integer"` } // String returns the string representation @@ -1524,7 +2412,19 @@ func (s *ListDeliveryStreamsInput) Validate() error { return nil } -// Contains the output of ListDeliveryStreams. +// SetExclusiveStartDeliveryStreamName sets the ExclusiveStartDeliveryStreamName field's value. +func (s *ListDeliveryStreamsInput) SetExclusiveStartDeliveryStreamName(v string) *ListDeliveryStreamsInput { + s.ExclusiveStartDeliveryStreamName = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListDeliveryStreamsInput) SetLimit(v int64) *ListDeliveryStreamsInput { + s.Limit = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/ListDeliveryStreamsOutput type ListDeliveryStreamsOutput struct { _ struct{} `type:"structure"` @@ -1549,7 +2449,189 @@ func (s ListDeliveryStreamsOutput) GoString() string { return s.String() } -// Contains the parameters for PutRecordBatch. +// SetDeliveryStreamNames sets the DeliveryStreamNames field's value. +func (s *ListDeliveryStreamsOutput) SetDeliveryStreamNames(v []*string) *ListDeliveryStreamsOutput { + s.DeliveryStreamNames = v + return s +} + +// SetHasMoreDeliveryStreams sets the HasMoreDeliveryStreams field's value. +func (s *ListDeliveryStreamsOutput) SetHasMoreDeliveryStreams(v bool) *ListDeliveryStreamsOutput { + s.HasMoreDeliveryStreams = &v + return s +} + +// Describes a data processing configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/ProcessingConfiguration +type ProcessingConfiguration struct { + _ struct{} `type:"structure"` + + // Enables or disables data processing. + Enabled *bool `type:"boolean"` + + // The data processors. + Processors []*Processor `type:"list"` +} + +// String returns the string representation +func (s ProcessingConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProcessingConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ProcessingConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ProcessingConfiguration"} + if s.Processors != nil { + for i, v := range s.Processors { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Processors", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEnabled sets the Enabled field's value. +func (s *ProcessingConfiguration) SetEnabled(v bool) *ProcessingConfiguration { + s.Enabled = &v + return s +} + +// SetProcessors sets the Processors field's value. +func (s *ProcessingConfiguration) SetProcessors(v []*Processor) *ProcessingConfiguration { + s.Processors = v + return s +} + +// Describes a data processor. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/Processor +type Processor struct { + _ struct{} `type:"structure"` + + // The processor parameters. + Parameters []*ProcessorParameter `type:"list"` + + // The type of processor. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"ProcessorType"` +} + +// String returns the string representation +func (s Processor) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Processor) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Processor) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Processor"} + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.Parameters != nil { + for i, v := range s.Parameters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Parameters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetParameters sets the Parameters field's value. +func (s *Processor) SetParameters(v []*ProcessorParameter) *Processor { + s.Parameters = v + return s +} + +// SetType sets the Type field's value. +func (s *Processor) SetType(v string) *Processor { + s.Type = &v + return s +} + +// Describes the processor parameter. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/ProcessorParameter +type ProcessorParameter struct { + _ struct{} `type:"structure"` + + // The name of the parameter. + // + // ParameterName is a required field + ParameterName *string `type:"string" required:"true" enum:"ProcessorParameterName"` + + // The parameter value. + // + // ParameterValue is a required field + ParameterValue *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ProcessorParameter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProcessorParameter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ProcessorParameter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ProcessorParameter"} + if s.ParameterName == nil { + invalidParams.Add(request.NewErrParamRequired("ParameterName")) + } + if s.ParameterValue == nil { + invalidParams.Add(request.NewErrParamRequired("ParameterValue")) + } + if s.ParameterValue != nil && len(*s.ParameterValue) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ParameterValue", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetParameterName sets the ParameterName field's value. +func (s *ProcessorParameter) SetParameterName(v string) *ProcessorParameter { + s.ParameterName = &v + return s +} + +// SetParameterValue sets the ParameterValue field's value. +func (s *ProcessorParameter) SetParameterValue(v string) *ProcessorParameter { + s.ParameterValue = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/PutRecordBatchInput type PutRecordBatchInput struct { _ struct{} `type:"structure"` @@ -1606,17 +2688,29 @@ func (s *PutRecordBatchInput) Validate() error { return nil } -// Contains the output of PutRecordBatch. +// SetDeliveryStreamName sets the DeliveryStreamName field's value. +func (s *PutRecordBatchInput) SetDeliveryStreamName(v string) *PutRecordBatchInput { + s.DeliveryStreamName = &v + return s +} + +// SetRecords sets the Records field's value. +func (s *PutRecordBatchInput) SetRecords(v []*Record) *PutRecordBatchInput { + s.Records = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/PutRecordBatchOutput type PutRecordBatchOutput struct { _ struct{} `type:"structure"` - // The number of unsuccessfully written records. + // The number of records that might have failed processing. // // FailedPutCount is a required field FailedPutCount *int64 `type:"integer" required:"true"` - // The results for the individual records. The index of each element matches - // the same index in which records were sent. + // The results array. For each record, the index of the response element is + // the same as the index used in the request array. // // RequestResponses is a required field RequestResponses []*PutRecordBatchResponseEntry `min:"1" type:"list" required:"true"` @@ -1632,10 +2726,23 @@ func (s PutRecordBatchOutput) GoString() string { return s.String() } +// SetFailedPutCount sets the FailedPutCount field's value. +func (s *PutRecordBatchOutput) SetFailedPutCount(v int64) *PutRecordBatchOutput { + s.FailedPutCount = &v + return s +} + +// SetRequestResponses sets the RequestResponses field's value. +func (s *PutRecordBatchOutput) SetRequestResponses(v []*PutRecordBatchResponseEntry) *PutRecordBatchOutput { + s.RequestResponses = v + return s +} + // Contains the result for an individual record from a PutRecordBatch request. // If the record is successfully added to your delivery stream, it receives // a record ID. If the record fails to be added to your delivery stream, the // result includes an error code and an error message. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/PutRecordBatchResponseEntry type PutRecordBatchResponseEntry struct { _ struct{} `type:"structure"` @@ -1659,7 +2766,25 @@ func (s PutRecordBatchResponseEntry) GoString() string { return s.String() } -// Contains the parameters for PutRecord. +// SetErrorCode sets the ErrorCode field's value. +func (s *PutRecordBatchResponseEntry) SetErrorCode(v string) *PutRecordBatchResponseEntry { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *PutRecordBatchResponseEntry) SetErrorMessage(v string) *PutRecordBatchResponseEntry { + s.ErrorMessage = &v + return s +} + +// SetRecordId sets the RecordId field's value. +func (s *PutRecordBatchResponseEntry) SetRecordId(v string) *PutRecordBatchResponseEntry { + s.RecordId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/PutRecordInput type PutRecordInput struct { _ struct{} `type:"structure"` @@ -1708,7 +2833,19 @@ func (s *PutRecordInput) Validate() error { return nil } -// Contains the output of PutRecord. +// SetDeliveryStreamName sets the DeliveryStreamName field's value. +func (s *PutRecordInput) SetDeliveryStreamName(v string) *PutRecordInput { + s.DeliveryStreamName = &v + return s +} + +// SetRecord sets the Record field's value. +func (s *PutRecordInput) SetRecord(v *Record) *PutRecordInput { + s.Record = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/PutRecordOutput type PutRecordOutput struct { _ struct{} `type:"structure"` @@ -1728,7 +2865,14 @@ func (s PutRecordOutput) GoString() string { return s.String() } +// SetRecordId sets the RecordId field's value. +func (s *PutRecordOutput) SetRecordId(v string) *PutRecordOutput { + s.RecordId = &v + return s +} + // The unit of data in a delivery stream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/Record type Record struct { _ struct{} `type:"structure"` @@ -1764,11 +2908,18 @@ func (s *Record) Validate() error { return nil } +// SetData sets the Data field's value. +func (s *Record) SetData(v []byte) *Record { + s.Data = v + return s +} + // Describes the configuration of a destination in Amazon Redshift. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/RedshiftDestinationConfiguration type RedshiftDestinationConfiguration struct { _ struct{} `type:"structure"` - // Describes CloudWatch logging options for your delivery stream. + // The CloudWatch logging options for your delivery stream. CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` // The database connection string. @@ -1786,8 +2937,11 @@ type RedshiftDestinationConfiguration struct { // Password is a required field Password *string `min:"6" type:"string" required:"true"` - // Configures retry behavior in the event that Firehose is unable to deliver - // documents to Amazon Redshift. Default value is 3600 (60 minutes). + // The data processing configuration. + ProcessingConfiguration *ProcessingConfiguration `type:"structure"` + + // The retry behavior in the event that Firehose is unable to deliver documents + // to Amazon Redshift. Default value is 3600 (60 minutes). RetryOptions *RedshiftRetryOptions `type:"structure"` // The ARN of the AWS credentials. @@ -1795,8 +2949,14 @@ type RedshiftDestinationConfiguration struct { // RoleARN is a required field RoleARN *string `min:"1" type:"string" required:"true"` - // The S3 configuration for the intermediate location from which Amazon Redshift - // obtains data. Restrictions are described in the topic for CreateDeliveryStream. + // The configuration for backup in Amazon S3. + S3BackupConfiguration *S3DestinationConfiguration `type:"structure"` + + // The Amazon S3 backup mode. + S3BackupMode *string `type:"string" enum:"RedshiftS3BackupMode"` + + // The configuration for the intermediate Amazon S3 location from which Amazon + // Redshift obtains data. Restrictions are described in the topic for CreateDeliveryStream. // // The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationConfiguration.S3Configuration // because the Amazon Redshift COPY operation that reads from the S3 bucket @@ -1859,6 +3019,16 @@ func (s *RedshiftDestinationConfiguration) Validate() error { invalidParams.AddNested("CopyCommand", err.(request.ErrInvalidParams)) } } + if s.ProcessingConfiguration != nil { + if err := s.ProcessingConfiguration.Validate(); err != nil { + invalidParams.AddNested("ProcessingConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.S3BackupConfiguration != nil { + if err := s.S3BackupConfiguration.Validate(); err != nil { + invalidParams.AddNested("S3BackupConfiguration", err.(request.ErrInvalidParams)) + } + } if s.S3Configuration != nil { if err := s.S3Configuration.Validate(); err != nil { invalidParams.AddNested("S3Configuration", err.(request.ErrInvalidParams)) @@ -1871,11 +3041,78 @@ func (s *RedshiftDestinationConfiguration) Validate() error { return nil } +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *RedshiftDestinationConfiguration) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *RedshiftDestinationConfiguration { + s.CloudWatchLoggingOptions = v + return s +} + +// SetClusterJDBCURL sets the ClusterJDBCURL field's value. +func (s *RedshiftDestinationConfiguration) SetClusterJDBCURL(v string) *RedshiftDestinationConfiguration { + s.ClusterJDBCURL = &v + return s +} + +// SetCopyCommand sets the CopyCommand field's value. +func (s *RedshiftDestinationConfiguration) SetCopyCommand(v *CopyCommand) *RedshiftDestinationConfiguration { + s.CopyCommand = v + return s +} + +// SetPassword sets the Password field's value. +func (s *RedshiftDestinationConfiguration) SetPassword(v string) *RedshiftDestinationConfiguration { + s.Password = &v + return s +} + +// SetProcessingConfiguration sets the ProcessingConfiguration field's value. +func (s *RedshiftDestinationConfiguration) SetProcessingConfiguration(v *ProcessingConfiguration) *RedshiftDestinationConfiguration { + s.ProcessingConfiguration = v + return s +} + +// SetRetryOptions sets the RetryOptions field's value. +func (s *RedshiftDestinationConfiguration) SetRetryOptions(v *RedshiftRetryOptions) *RedshiftDestinationConfiguration { + s.RetryOptions = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *RedshiftDestinationConfiguration) SetRoleARN(v string) *RedshiftDestinationConfiguration { + s.RoleARN = &v + return s +} + +// SetS3BackupConfiguration sets the S3BackupConfiguration field's value. +func (s *RedshiftDestinationConfiguration) SetS3BackupConfiguration(v *S3DestinationConfiguration) *RedshiftDestinationConfiguration { + s.S3BackupConfiguration = v + return s +} + +// SetS3BackupMode sets the S3BackupMode field's value. +func (s *RedshiftDestinationConfiguration) SetS3BackupMode(v string) *RedshiftDestinationConfiguration { + s.S3BackupMode = &v + return s +} + +// SetS3Configuration sets the S3Configuration field's value. +func (s *RedshiftDestinationConfiguration) SetS3Configuration(v *S3DestinationConfiguration) *RedshiftDestinationConfiguration { + s.S3Configuration = v + return s +} + +// SetUsername sets the Username field's value. +func (s *RedshiftDestinationConfiguration) SetUsername(v string) *RedshiftDestinationConfiguration { + s.Username = &v + return s +} + // Describes a destination in Amazon Redshift. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/RedshiftDestinationDescription type RedshiftDestinationDescription struct { _ struct{} `type:"structure"` - // Describes CloudWatch logging options for your delivery stream. + // The CloudWatch logging options for your delivery stream. CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` // The database connection string. @@ -1888,8 +3125,11 @@ type RedshiftDestinationDescription struct { // CopyCommand is a required field CopyCommand *CopyCommand `type:"structure" required:"true"` - // Configures retry behavior in the event that Firehose is unable to deliver - // documents to Amazon Redshift. Default value is 3600 (60 minutes). + // The data processing configuration. + ProcessingConfiguration *ProcessingConfiguration `type:"structure"` + + // The retry behavior in the event that Firehose is unable to deliver documents + // to Amazon Redshift. Default value is 3600 (60 minutes). RetryOptions *RedshiftRetryOptions `type:"structure"` // The ARN of the AWS credentials. @@ -1897,6 +3137,12 @@ type RedshiftDestinationDescription struct { // RoleARN is a required field RoleARN *string `min:"1" type:"string" required:"true"` + // The configuration for backup in Amazon S3. + S3BackupDescription *S3DestinationDescription `type:"structure"` + + // The Amazon S3 backup mode. + S3BackupMode *string `type:"string" enum:"RedshiftS3BackupMode"` + // The Amazon S3 destination. // // S3DestinationDescription is a required field @@ -1918,11 +3164,72 @@ func (s RedshiftDestinationDescription) GoString() string { return s.String() } +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *RedshiftDestinationDescription) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *RedshiftDestinationDescription { + s.CloudWatchLoggingOptions = v + return s +} + +// SetClusterJDBCURL sets the ClusterJDBCURL field's value. +func (s *RedshiftDestinationDescription) SetClusterJDBCURL(v string) *RedshiftDestinationDescription { + s.ClusterJDBCURL = &v + return s +} + +// SetCopyCommand sets the CopyCommand field's value. +func (s *RedshiftDestinationDescription) SetCopyCommand(v *CopyCommand) *RedshiftDestinationDescription { + s.CopyCommand = v + return s +} + +// SetProcessingConfiguration sets the ProcessingConfiguration field's value. +func (s *RedshiftDestinationDescription) SetProcessingConfiguration(v *ProcessingConfiguration) *RedshiftDestinationDescription { + s.ProcessingConfiguration = v + return s +} + +// SetRetryOptions sets the RetryOptions field's value. +func (s *RedshiftDestinationDescription) SetRetryOptions(v *RedshiftRetryOptions) *RedshiftDestinationDescription { + s.RetryOptions = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *RedshiftDestinationDescription) SetRoleARN(v string) *RedshiftDestinationDescription { + s.RoleARN = &v + return s +} + +// SetS3BackupDescription sets the S3BackupDescription field's value. +func (s *RedshiftDestinationDescription) SetS3BackupDescription(v *S3DestinationDescription) *RedshiftDestinationDescription { + s.S3BackupDescription = v + return s +} + +// SetS3BackupMode sets the S3BackupMode field's value. +func (s *RedshiftDestinationDescription) SetS3BackupMode(v string) *RedshiftDestinationDescription { + s.S3BackupMode = &v + return s +} + +// SetS3DestinationDescription sets the S3DestinationDescription field's value. +func (s *RedshiftDestinationDescription) SetS3DestinationDescription(v *S3DestinationDescription) *RedshiftDestinationDescription { + s.S3DestinationDescription = v + return s +} + +// SetUsername sets the Username field's value. +func (s *RedshiftDestinationDescription) SetUsername(v string) *RedshiftDestinationDescription { + s.Username = &v + return s +} + // Describes an update for a destination in Amazon Redshift. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/RedshiftDestinationUpdate type RedshiftDestinationUpdate struct { _ struct{} `type:"structure"` - // Describes CloudWatch logging options for your delivery stream. + // The CloudWatch logging options for your delivery stream. CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` // The database connection string. @@ -1934,13 +3241,22 @@ type RedshiftDestinationUpdate struct { // The user password. Password *string `min:"6" type:"string"` - // Configures retry behavior in the event that Firehose is unable to deliver - // documents to Amazon Redshift. Default value is 3600 (60 minutes). + // The data processing configuration. + ProcessingConfiguration *ProcessingConfiguration `type:"structure"` + + // The retry behavior in the event that Firehose is unable to deliver documents + // to Amazon Redshift. Default value is 3600 (60 minutes). RetryOptions *RedshiftRetryOptions `type:"structure"` // The ARN of the AWS credentials. RoleARN *string `min:"1" type:"string"` + // The Amazon S3 backup mode. + S3BackupMode *string `type:"string" enum:"RedshiftS3BackupMode"` + + // The Amazon S3 destination for backup. + S3BackupUpdate *S3DestinationUpdate `type:"structure"` + // The Amazon S3 destination. // // The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationUpdate.S3Update @@ -1982,6 +3298,16 @@ func (s *RedshiftDestinationUpdate) Validate() error { invalidParams.AddNested("CopyCommand", err.(request.ErrInvalidParams)) } } + if s.ProcessingConfiguration != nil { + if err := s.ProcessingConfiguration.Validate(); err != nil { + invalidParams.AddNested("ProcessingConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.S3BackupUpdate != nil { + if err := s.S3BackupUpdate.Validate(); err != nil { + invalidParams.AddNested("S3BackupUpdate", err.(request.ErrInvalidParams)) + } + } if s.S3Update != nil { if err := s.S3Update.Validate(); err != nil { invalidParams.AddNested("S3Update", err.(request.ErrInvalidParams)) @@ -1994,8 +3320,75 @@ func (s *RedshiftDestinationUpdate) Validate() error { return nil } +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *RedshiftDestinationUpdate) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *RedshiftDestinationUpdate { + s.CloudWatchLoggingOptions = v + return s +} + +// SetClusterJDBCURL sets the ClusterJDBCURL field's value. +func (s *RedshiftDestinationUpdate) SetClusterJDBCURL(v string) *RedshiftDestinationUpdate { + s.ClusterJDBCURL = &v + return s +} + +// SetCopyCommand sets the CopyCommand field's value. +func (s *RedshiftDestinationUpdate) SetCopyCommand(v *CopyCommand) *RedshiftDestinationUpdate { + s.CopyCommand = v + return s +} + +// SetPassword sets the Password field's value. +func (s *RedshiftDestinationUpdate) SetPassword(v string) *RedshiftDestinationUpdate { + s.Password = &v + return s +} + +// SetProcessingConfiguration sets the ProcessingConfiguration field's value. +func (s *RedshiftDestinationUpdate) SetProcessingConfiguration(v *ProcessingConfiguration) *RedshiftDestinationUpdate { + s.ProcessingConfiguration = v + return s +} + +// SetRetryOptions sets the RetryOptions field's value. +func (s *RedshiftDestinationUpdate) SetRetryOptions(v *RedshiftRetryOptions) *RedshiftDestinationUpdate { + s.RetryOptions = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *RedshiftDestinationUpdate) SetRoleARN(v string) *RedshiftDestinationUpdate { + s.RoleARN = &v + return s +} + +// SetS3BackupMode sets the S3BackupMode field's value. +func (s *RedshiftDestinationUpdate) SetS3BackupMode(v string) *RedshiftDestinationUpdate { + s.S3BackupMode = &v + return s +} + +// SetS3BackupUpdate sets the S3BackupUpdate field's value. +func (s *RedshiftDestinationUpdate) SetS3BackupUpdate(v *S3DestinationUpdate) *RedshiftDestinationUpdate { + s.S3BackupUpdate = v + return s +} + +// SetS3Update sets the S3Update field's value. +func (s *RedshiftDestinationUpdate) SetS3Update(v *S3DestinationUpdate) *RedshiftDestinationUpdate { + s.S3Update = v + return s +} + +// SetUsername sets the Username field's value. +func (s *RedshiftDestinationUpdate) SetUsername(v string) *RedshiftDestinationUpdate { + s.Username = &v + return s +} + // Configures retry behavior in the event that Firehose is unable to deliver // documents to Amazon Redshift. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/RedshiftRetryOptions type RedshiftRetryOptions struct { _ struct{} `type:"structure"` @@ -2017,7 +3410,14 @@ func (s RedshiftRetryOptions) GoString() string { return s.String() } +// SetDurationInSeconds sets the DurationInSeconds field's value. +func (s *RedshiftRetryOptions) SetDurationInSeconds(v int64) *RedshiftRetryOptions { + s.DurationInSeconds = &v + return s +} + // Describes the configuration of a destination in Amazon S3. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/S3DestinationConfiguration type S3DestinationConfiguration struct { _ struct{} `type:"structure"` @@ -2030,7 +3430,7 @@ type S3DestinationConfiguration struct { // values are used. BufferingHints *BufferingHints `type:"structure"` - // Describes CloudWatch logging options for your delivery stream. + // The CloudWatch logging options for your delivery stream. CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` // The compression format. If no value is specified, the default is UNCOMPRESSED. @@ -2049,7 +3449,7 @@ type S3DestinationConfiguration struct { // format prefix. Note that if the prefix ends with a slash, it appears as a // folder in the S3 bucket. For more information, see Amazon S3 Object Name // Format (http://docs.aws.amazon.com/firehose/latest/dev/basic-deliver.html) - // in the Amazon Kinesis Firehose Developer Guide (http://docs.aws.amazon.com/firehose/latest/dev/). + // in the Amazon Kinesis Firehose Developer Guide. Prefix *string `type:"string"` // The ARN of the AWS credentials. @@ -2100,7 +3500,50 @@ func (s *S3DestinationConfiguration) Validate() error { return nil } +// SetBucketARN sets the BucketARN field's value. +func (s *S3DestinationConfiguration) SetBucketARN(v string) *S3DestinationConfiguration { + s.BucketARN = &v + return s +} + +// SetBufferingHints sets the BufferingHints field's value. +func (s *S3DestinationConfiguration) SetBufferingHints(v *BufferingHints) *S3DestinationConfiguration { + s.BufferingHints = v + return s +} + +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *S3DestinationConfiguration) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *S3DestinationConfiguration { + s.CloudWatchLoggingOptions = v + return s +} + +// SetCompressionFormat sets the CompressionFormat field's value. +func (s *S3DestinationConfiguration) SetCompressionFormat(v string) *S3DestinationConfiguration { + s.CompressionFormat = &v + return s +} + +// SetEncryptionConfiguration sets the EncryptionConfiguration field's value. +func (s *S3DestinationConfiguration) SetEncryptionConfiguration(v *EncryptionConfiguration) *S3DestinationConfiguration { + s.EncryptionConfiguration = v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *S3DestinationConfiguration) SetPrefix(v string) *S3DestinationConfiguration { + s.Prefix = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *S3DestinationConfiguration) SetRoleARN(v string) *S3DestinationConfiguration { + s.RoleARN = &v + return s +} + // Describes a destination in Amazon S3. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/S3DestinationDescription type S3DestinationDescription struct { _ struct{} `type:"structure"` @@ -2115,10 +3558,10 @@ type S3DestinationDescription struct { // BufferingHints is a required field BufferingHints *BufferingHints `type:"structure" required:"true"` - // Describes CloudWatch logging options for your delivery stream. + // The CloudWatch logging options for your delivery stream. CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` - // The compression format. If no value is specified, the default is NOCOMPRESSION. + // The compression format. If no value is specified, the default is UNCOMPRESSED. // // CompressionFormat is a required field CompressionFormat *string `type:"string" required:"true" enum:"CompressionFormat"` @@ -2134,7 +3577,7 @@ type S3DestinationDescription struct { // format prefix. Note that if the prefix ends with a slash, it appears as a // folder in the S3 bucket. For more information, see Amazon S3 Object Name // Format (http://docs.aws.amazon.com/firehose/latest/dev/basic-deliver.html) - // in the Amazon Kinesis Firehose Developer Guide (http://docs.aws.amazon.com/firehose/latest/dev/). + // in the Amazon Kinesis Firehose Developer Guide. Prefix *string `type:"string"` // The ARN of the AWS credentials. @@ -2153,7 +3596,50 @@ func (s S3DestinationDescription) GoString() string { return s.String() } +// SetBucketARN sets the BucketARN field's value. +func (s *S3DestinationDescription) SetBucketARN(v string) *S3DestinationDescription { + s.BucketARN = &v + return s +} + +// SetBufferingHints sets the BufferingHints field's value. +func (s *S3DestinationDescription) SetBufferingHints(v *BufferingHints) *S3DestinationDescription { + s.BufferingHints = v + return s +} + +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *S3DestinationDescription) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *S3DestinationDescription { + s.CloudWatchLoggingOptions = v + return s +} + +// SetCompressionFormat sets the CompressionFormat field's value. +func (s *S3DestinationDescription) SetCompressionFormat(v string) *S3DestinationDescription { + s.CompressionFormat = &v + return s +} + +// SetEncryptionConfiguration sets the EncryptionConfiguration field's value. +func (s *S3DestinationDescription) SetEncryptionConfiguration(v *EncryptionConfiguration) *S3DestinationDescription { + s.EncryptionConfiguration = v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *S3DestinationDescription) SetPrefix(v string) *S3DestinationDescription { + s.Prefix = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *S3DestinationDescription) SetRoleARN(v string) *S3DestinationDescription { + s.RoleARN = &v + return s +} + // Describes an update for a destination in Amazon S3. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/S3DestinationUpdate type S3DestinationUpdate struct { _ struct{} `type:"structure"` @@ -2164,10 +3650,10 @@ type S3DestinationUpdate struct { // values are used. BufferingHints *BufferingHints `type:"structure"` - // Describes CloudWatch logging options for your delivery stream. + // The CloudWatch logging options for your delivery stream. CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` - // The compression format. If no value is specified, the default is NOCOMPRESSION. + // The compression format. If no value is specified, the default is UNCOMPRESSED. // // The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift // destinations because they are not supported by the Amazon Redshift COPY operation @@ -2183,7 +3669,7 @@ type S3DestinationUpdate struct { // format prefix. Note that if the prefix ends with a slash, it appears as a // folder in the S3 bucket. For more information, see Amazon S3 Object Name // Format (http://docs.aws.amazon.com/firehose/latest/dev/basic-deliver.html) - // in the Amazon Kinesis Firehose Developer Guide (http://docs.aws.amazon.com/firehose/latest/dev/). + // in the Amazon Kinesis Firehose Developer Guide. Prefix *string `type:"string"` // The ARN of the AWS credentials. @@ -2226,16 +3712,58 @@ func (s *S3DestinationUpdate) Validate() error { return nil } -// Contains the parameters for UpdateDestination. +// SetBucketARN sets the BucketARN field's value. +func (s *S3DestinationUpdate) SetBucketARN(v string) *S3DestinationUpdate { + s.BucketARN = &v + return s +} + +// SetBufferingHints sets the BufferingHints field's value. +func (s *S3DestinationUpdate) SetBufferingHints(v *BufferingHints) *S3DestinationUpdate { + s.BufferingHints = v + return s +} + +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *S3DestinationUpdate) SetCloudWatchLoggingOptions(v *CloudWatchLoggingOptions) *S3DestinationUpdate { + s.CloudWatchLoggingOptions = v + return s +} + +// SetCompressionFormat sets the CompressionFormat field's value. +func (s *S3DestinationUpdate) SetCompressionFormat(v string) *S3DestinationUpdate { + s.CompressionFormat = &v + return s +} + +// SetEncryptionConfiguration sets the EncryptionConfiguration field's value. +func (s *S3DestinationUpdate) SetEncryptionConfiguration(v *EncryptionConfiguration) *S3DestinationUpdate { + s.EncryptionConfiguration = v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *S3DestinationUpdate) SetPrefix(v string) *S3DestinationUpdate { + s.Prefix = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *S3DestinationUpdate) SetRoleARN(v string) *S3DestinationUpdate { + s.RoleARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/UpdateDestinationInput type UpdateDestinationInput struct { _ struct{} `type:"structure"` - // Obtain this value from the VersionId result of the DeliveryStreamDescription - // operation. This value is required, and helps the service to perform conditional - // operations. For example, if there is a interleaving update and this value - // is null, then the update destination fails. After the update is successful, - // the VersionId value is updated. The service then performs a merge of the - // old configuration with the new configuration. + // Obtain this value from the VersionId result of DeliveryStreamDescription. + // This value is required, and helps the service to perform conditional operations. + // For example, if there is a interleaving update and this value is null, then + // the update destination fails. After the update is successful, the VersionId + // value is updated. The service then performs a merge of the old configuration + // with the new configuration. // // CurrentDeliveryStreamVersionId is a required field CurrentDeliveryStreamVersionId *string `min:"1" type:"string" required:"true"` @@ -2253,11 +3781,14 @@ type UpdateDestinationInput struct { // Describes an update for a destination in Amazon ES. ElasticsearchDestinationUpdate *ElasticsearchDestinationUpdate `type:"structure"` + // Describes an update for a destination in Amazon S3. + ExtendedS3DestinationUpdate *ExtendedS3DestinationUpdate `type:"structure"` + // Describes an update for a destination in Amazon Redshift. RedshiftDestinationUpdate *RedshiftDestinationUpdate `type:"structure"` - // Describes an update for a destination in Amazon S3. - S3DestinationUpdate *S3DestinationUpdate `type:"structure"` + // [Deprecated] Describes an update for a destination in Amazon S3. + S3DestinationUpdate *S3DestinationUpdate `deprecated:"true" type:"structure"` } // String returns the string representation @@ -2296,6 +3827,11 @@ func (s *UpdateDestinationInput) Validate() error { invalidParams.AddNested("ElasticsearchDestinationUpdate", err.(request.ErrInvalidParams)) } } + if s.ExtendedS3DestinationUpdate != nil { + if err := s.ExtendedS3DestinationUpdate.Validate(); err != nil { + invalidParams.AddNested("ExtendedS3DestinationUpdate", err.(request.ErrInvalidParams)) + } + } if s.RedshiftDestinationUpdate != nil { if err := s.RedshiftDestinationUpdate.Validate(); err != nil { invalidParams.AddNested("RedshiftDestinationUpdate", err.(request.ErrInvalidParams)) @@ -2313,7 +3849,49 @@ func (s *UpdateDestinationInput) Validate() error { return nil } -// Contains the output of UpdateDestination. +// SetCurrentDeliveryStreamVersionId sets the CurrentDeliveryStreamVersionId field's value. +func (s *UpdateDestinationInput) SetCurrentDeliveryStreamVersionId(v string) *UpdateDestinationInput { + s.CurrentDeliveryStreamVersionId = &v + return s +} + +// SetDeliveryStreamName sets the DeliveryStreamName field's value. +func (s *UpdateDestinationInput) SetDeliveryStreamName(v string) *UpdateDestinationInput { + s.DeliveryStreamName = &v + return s +} + +// SetDestinationId sets the DestinationId field's value. +func (s *UpdateDestinationInput) SetDestinationId(v string) *UpdateDestinationInput { + s.DestinationId = &v + return s +} + +// SetElasticsearchDestinationUpdate sets the ElasticsearchDestinationUpdate field's value. +func (s *UpdateDestinationInput) SetElasticsearchDestinationUpdate(v *ElasticsearchDestinationUpdate) *UpdateDestinationInput { + s.ElasticsearchDestinationUpdate = v + return s +} + +// SetExtendedS3DestinationUpdate sets the ExtendedS3DestinationUpdate field's value. +func (s *UpdateDestinationInput) SetExtendedS3DestinationUpdate(v *ExtendedS3DestinationUpdate) *UpdateDestinationInput { + s.ExtendedS3DestinationUpdate = v + return s +} + +// SetRedshiftDestinationUpdate sets the RedshiftDestinationUpdate field's value. +func (s *UpdateDestinationInput) SetRedshiftDestinationUpdate(v *RedshiftDestinationUpdate) *UpdateDestinationInput { + s.RedshiftDestinationUpdate = v + return s +} + +// SetS3DestinationUpdate sets the S3DestinationUpdate field's value. +func (s *UpdateDestinationInput) SetS3DestinationUpdate(v *S3DestinationUpdate) *UpdateDestinationInput { + s.S3DestinationUpdate = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/UpdateDestinationOutput type UpdateDestinationOutput struct { _ struct{} `type:"structure"` } @@ -2382,3 +3960,32 @@ const ( // NoEncryptionConfigNoEncryption is a NoEncryptionConfig enum value NoEncryptionConfigNoEncryption = "NoEncryption" ) + +const ( + // ProcessorParameterNameLambdaArn is a ProcessorParameterName enum value + ProcessorParameterNameLambdaArn = "LambdaArn" + + // ProcessorParameterNameNumberOfRetries is a ProcessorParameterName enum value + ProcessorParameterNameNumberOfRetries = "NumberOfRetries" +) + +const ( + // ProcessorTypeLambda is a ProcessorType enum value + ProcessorTypeLambda = "Lambda" +) + +const ( + // RedshiftS3BackupModeDisabled is a RedshiftS3BackupMode enum value + RedshiftS3BackupModeDisabled = "Disabled" + + // RedshiftS3BackupModeEnabled is a RedshiftS3BackupMode enum value + RedshiftS3BackupModeEnabled = "Enabled" +) + +const ( + // S3BackupModeDisabled is a S3BackupMode enum value + S3BackupModeDisabled = "Disabled" + + // S3BackupModeEnabled is a S3BackupMode enum value + S3BackupModeEnabled = "Enabled" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/firehose/errors.go b/vendor/github.com/aws/aws-sdk-go/service/firehose/errors.go new file mode 100644 index 000000000..f541053f0 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/firehose/errors.go @@ -0,0 +1,46 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package firehose + +const ( + + // ErrCodeConcurrentModificationException for service response error code + // "ConcurrentModificationException". + // + // Another modification has already happened. Fetch VersionId again and use + // it to update the destination. + ErrCodeConcurrentModificationException = "ConcurrentModificationException" + + // ErrCodeInvalidArgumentException for service response error code + // "InvalidArgumentException". + // + // The specified input parameter has an value that is not valid. + ErrCodeInvalidArgumentException = "InvalidArgumentException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // You have already reached the limit for a requested resource. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeResourceInUseException for service response error code + // "ResourceInUseException". + // + // The resource is already in use and not available for this operation. + ErrCodeResourceInUseException = "ResourceInUseException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The specified resource could not be found. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeServiceUnavailableException for service response error code + // "ServiceUnavailableException". + // + // The service is unavailable, back off and retry the operation. If you continue + // to see the exception, throughput limits for the delivery stream may have + // been exceeded. For more information about limits and how to request an increase, + // see Amazon Kinesis Firehose Limits (http://docs.aws.amazon.com/firehose/latest/dev/limits.html). + ErrCodeServiceUnavailableException = "ServiceUnavailableException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/firehose/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/firehose/examples_test.go index 74892d0e3..a8cda3f14 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/firehose/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/firehose/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleFirehose_CreateDeliveryStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := firehose.New(sess) @@ -62,11 +58,86 @@ func ExampleFirehose_CreateDeliveryStream() { LogStreamName: aws.String("LogStreamName"), }, IndexRotationPeriod: aws.String("ElasticsearchIndexRotationPeriod"), + ProcessingConfiguration: &firehose.ProcessingConfiguration{ + Enabled: aws.Bool(true), + Processors: []*firehose.Processor{ + { // Required + Type: aws.String("ProcessorType"), // Required + Parameters: []*firehose.ProcessorParameter{ + { // Required + ParameterName: aws.String("ProcessorParameterName"), // Required + ParameterValue: aws.String("ProcessorParameterValue"), // Required + }, + // More values... + }, + }, + // More values... + }, + }, RetryOptions: &firehose.ElasticsearchRetryOptions{ DurationInSeconds: aws.Int64(1), }, S3BackupMode: aws.String("ElasticsearchS3BackupMode"), }, + ExtendedS3DestinationConfiguration: &firehose.ExtendedS3DestinationConfiguration{ + BucketARN: aws.String("BucketARN"), // Required + RoleARN: aws.String("RoleARN"), // Required + BufferingHints: &firehose.BufferingHints{ + IntervalInSeconds: aws.Int64(1), + SizeInMBs: aws.Int64(1), + }, + CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{ + Enabled: aws.Bool(true), + LogGroupName: aws.String("LogGroupName"), + LogStreamName: aws.String("LogStreamName"), + }, + CompressionFormat: aws.String("CompressionFormat"), + EncryptionConfiguration: &firehose.EncryptionConfiguration{ + KMSEncryptionConfig: &firehose.KMSEncryptionConfig{ + AWSKMSKeyARN: aws.String("AWSKMSKeyARN"), // Required + }, + NoEncryptionConfig: aws.String("NoEncryptionConfig"), + }, + Prefix: aws.String("Prefix"), + ProcessingConfiguration: &firehose.ProcessingConfiguration{ + Enabled: aws.Bool(true), + Processors: []*firehose.Processor{ + { // Required + Type: aws.String("ProcessorType"), // Required + Parameters: []*firehose.ProcessorParameter{ + { // Required + ParameterName: aws.String("ProcessorParameterName"), // Required + ParameterValue: aws.String("ProcessorParameterValue"), // Required + }, + // More values... + }, + }, + // More values... + }, + }, + S3BackupConfiguration: &firehose.S3DestinationConfiguration{ + BucketARN: aws.String("BucketARN"), // Required + RoleARN: aws.String("RoleARN"), // Required + BufferingHints: &firehose.BufferingHints{ + IntervalInSeconds: aws.Int64(1), + SizeInMBs: aws.Int64(1), + }, + CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{ + Enabled: aws.Bool(true), + LogGroupName: aws.String("LogGroupName"), + LogStreamName: aws.String("LogStreamName"), + }, + CompressionFormat: aws.String("CompressionFormat"), + EncryptionConfiguration: &firehose.EncryptionConfiguration{ + KMSEncryptionConfig: &firehose.KMSEncryptionConfig{ + AWSKMSKeyARN: aws.String("AWSKMSKeyARN"), // Required + }, + NoEncryptionConfig: aws.String("NoEncryptionConfig"), + }, + Prefix: aws.String("Prefix"), + }, + S3BackupMode: aws.String("S3BackupMode"), + }, RedshiftDestinationConfiguration: &firehose.RedshiftDestinationConfiguration{ ClusterJDBCURL: aws.String("ClusterJDBCURL"), // Required CopyCommand: &firehose.CopyCommand{ // Required @@ -103,9 +174,47 @@ func ExampleFirehose_CreateDeliveryStream() { LogGroupName: aws.String("LogGroupName"), LogStreamName: aws.String("LogStreamName"), }, + ProcessingConfiguration: &firehose.ProcessingConfiguration{ + Enabled: aws.Bool(true), + Processors: []*firehose.Processor{ + { // Required + Type: aws.String("ProcessorType"), // Required + Parameters: []*firehose.ProcessorParameter{ + { // Required + ParameterName: aws.String("ProcessorParameterName"), // Required + ParameterValue: aws.String("ProcessorParameterValue"), // Required + }, + // More values... + }, + }, + // More values... + }, + }, RetryOptions: &firehose.RedshiftRetryOptions{ DurationInSeconds: aws.Int64(1), }, + S3BackupConfiguration: &firehose.S3DestinationConfiguration{ + BucketARN: aws.String("BucketARN"), // Required + RoleARN: aws.String("RoleARN"), // Required + BufferingHints: &firehose.BufferingHints{ + IntervalInSeconds: aws.Int64(1), + SizeInMBs: aws.Int64(1), + }, + CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{ + Enabled: aws.Bool(true), + LogGroupName: aws.String("LogGroupName"), + LogStreamName: aws.String("LogStreamName"), + }, + CompressionFormat: aws.String("CompressionFormat"), + EncryptionConfiguration: &firehose.EncryptionConfiguration{ + KMSEncryptionConfig: &firehose.KMSEncryptionConfig{ + AWSKMSKeyARN: aws.String("AWSKMSKeyARN"), // Required + }, + NoEncryptionConfig: aws.String("NoEncryptionConfig"), + }, + Prefix: aws.String("Prefix"), + }, + S3BackupMode: aws.String("RedshiftS3BackupMode"), }, S3DestinationConfiguration: &firehose.S3DestinationConfiguration{ BucketARN: aws.String("BucketARN"), // Required @@ -143,11 +252,7 @@ func ExampleFirehose_CreateDeliveryStream() { } func ExampleFirehose_DeleteDeliveryStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := firehose.New(sess) @@ -168,11 +273,7 @@ func ExampleFirehose_DeleteDeliveryStream() { } func ExampleFirehose_DescribeDeliveryStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := firehose.New(sess) @@ -195,11 +296,7 @@ func ExampleFirehose_DescribeDeliveryStream() { } func ExampleFirehose_ListDeliveryStreams() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := firehose.New(sess) @@ -221,11 +318,7 @@ func ExampleFirehose_ListDeliveryStreams() { } func ExampleFirehose_PutRecord() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := firehose.New(sess) @@ -249,11 +342,7 @@ func ExampleFirehose_PutRecord() { } func ExampleFirehose_PutRecordBatch() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := firehose.New(sess) @@ -280,11 +369,7 @@ func ExampleFirehose_PutRecordBatch() { } func ExampleFirehose_UpdateDestination() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := firehose.New(sess) @@ -305,6 +390,22 @@ func ExampleFirehose_UpdateDestination() { DomainARN: aws.String("ElasticsearchDomainARN"), IndexName: aws.String("ElasticsearchIndexName"), IndexRotationPeriod: aws.String("ElasticsearchIndexRotationPeriod"), + ProcessingConfiguration: &firehose.ProcessingConfiguration{ + Enabled: aws.Bool(true), + Processors: []*firehose.Processor{ + { // Required + Type: aws.String("ProcessorType"), // Required + Parameters: []*firehose.ProcessorParameter{ + { // Required + ParameterName: aws.String("ProcessorParameterName"), // Required + ParameterValue: aws.String("ProcessorParameterValue"), // Required + }, + // More values... + }, + }, + // More values... + }, + }, RetryOptions: &firehose.ElasticsearchRetryOptions{ DurationInSeconds: aws.Int64(1), }, @@ -332,6 +433,65 @@ func ExampleFirehose_UpdateDestination() { }, TypeName: aws.String("ElasticsearchTypeName"), }, + ExtendedS3DestinationUpdate: &firehose.ExtendedS3DestinationUpdate{ + BucketARN: aws.String("BucketARN"), + BufferingHints: &firehose.BufferingHints{ + IntervalInSeconds: aws.Int64(1), + SizeInMBs: aws.Int64(1), + }, + CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{ + Enabled: aws.Bool(true), + LogGroupName: aws.String("LogGroupName"), + LogStreamName: aws.String("LogStreamName"), + }, + CompressionFormat: aws.String("CompressionFormat"), + EncryptionConfiguration: &firehose.EncryptionConfiguration{ + KMSEncryptionConfig: &firehose.KMSEncryptionConfig{ + AWSKMSKeyARN: aws.String("AWSKMSKeyARN"), // Required + }, + NoEncryptionConfig: aws.String("NoEncryptionConfig"), + }, + Prefix: aws.String("Prefix"), + ProcessingConfiguration: &firehose.ProcessingConfiguration{ + Enabled: aws.Bool(true), + Processors: []*firehose.Processor{ + { // Required + Type: aws.String("ProcessorType"), // Required + Parameters: []*firehose.ProcessorParameter{ + { // Required + ParameterName: aws.String("ProcessorParameterName"), // Required + ParameterValue: aws.String("ProcessorParameterValue"), // Required + }, + // More values... + }, + }, + // More values... + }, + }, + RoleARN: aws.String("RoleARN"), + S3BackupMode: aws.String("S3BackupMode"), + S3BackupUpdate: &firehose.S3DestinationUpdate{ + BucketARN: aws.String("BucketARN"), + BufferingHints: &firehose.BufferingHints{ + IntervalInSeconds: aws.Int64(1), + SizeInMBs: aws.Int64(1), + }, + CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{ + Enabled: aws.Bool(true), + LogGroupName: aws.String("LogGroupName"), + LogStreamName: aws.String("LogStreamName"), + }, + CompressionFormat: aws.String("CompressionFormat"), + EncryptionConfiguration: &firehose.EncryptionConfiguration{ + KMSEncryptionConfig: &firehose.KMSEncryptionConfig{ + AWSKMSKeyARN: aws.String("AWSKMSKeyARN"), // Required + }, + NoEncryptionConfig: aws.String("NoEncryptionConfig"), + }, + Prefix: aws.String("Prefix"), + RoleARN: aws.String("RoleARN"), + }, + }, RedshiftDestinationUpdate: &firehose.RedshiftDestinationUpdate{ CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{ Enabled: aws.Bool(true), @@ -345,10 +505,48 @@ func ExampleFirehose_UpdateDestination() { DataTableColumns: aws.String("DataTableColumns"), }, Password: aws.String("Password"), + ProcessingConfiguration: &firehose.ProcessingConfiguration{ + Enabled: aws.Bool(true), + Processors: []*firehose.Processor{ + { // Required + Type: aws.String("ProcessorType"), // Required + Parameters: []*firehose.ProcessorParameter{ + { // Required + ParameterName: aws.String("ProcessorParameterName"), // Required + ParameterValue: aws.String("ProcessorParameterValue"), // Required + }, + // More values... + }, + }, + // More values... + }, + }, RetryOptions: &firehose.RedshiftRetryOptions{ DurationInSeconds: aws.Int64(1), }, - RoleARN: aws.String("RoleARN"), + RoleARN: aws.String("RoleARN"), + S3BackupMode: aws.String("RedshiftS3BackupMode"), + S3BackupUpdate: &firehose.S3DestinationUpdate{ + BucketARN: aws.String("BucketARN"), + BufferingHints: &firehose.BufferingHints{ + IntervalInSeconds: aws.Int64(1), + SizeInMBs: aws.Int64(1), + }, + CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{ + Enabled: aws.Bool(true), + LogGroupName: aws.String("LogGroupName"), + LogStreamName: aws.String("LogStreamName"), + }, + CompressionFormat: aws.String("CompressionFormat"), + EncryptionConfiguration: &firehose.EncryptionConfiguration{ + KMSEncryptionConfig: &firehose.KMSEncryptionConfig{ + AWSKMSKeyARN: aws.String("AWSKMSKeyARN"), // Required + }, + NoEncryptionConfig: aws.String("NoEncryptionConfig"), + }, + Prefix: aws.String("Prefix"), + RoleARN: aws.String("RoleARN"), + }, S3Update: &firehose.S3DestinationUpdate{ BucketARN: aws.String("BucketARN"), BufferingHints: &firehose.BufferingHints{ diff --git a/vendor/github.com/aws/aws-sdk-go/service/firehose/firehoseiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/firehose/firehoseiface/interface.go index 1e7c0d73f..31f13b076 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/firehose/firehoseiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/firehose/firehoseiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockFirehoseClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/firehose/service.go b/vendor/github.com/aws/aws-sdk-go/service/firehose/service.go index 7fd7f37ad..930a4d428 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/firehose/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/firehose/service.go @@ -14,8 +14,9 @@ import ( // Amazon Kinesis Firehose is a fully-managed service that delivers real-time // streaming data to destinations such as Amazon Simple Storage Service (Amazon // S3), Amazon Elasticsearch Service (Amazon ES), and Amazon Redshift. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04 type Firehose struct { *client.Client } @@ -26,8 +27,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "firehose" +// Service information constants +const ( + ServiceName = "firehose" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the Firehose client with a session. // If additional configuration is needed for the client instance use the optional @@ -40,17 +44,18 @@ const ServiceName = "firehose" // // Create a Firehose client with additional configuration // svc := firehose.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Firehose { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *Firehose { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Firehose { svc := &Firehose{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-08-04", diff --git a/vendor/github.com/aws/aws-sdk-go/service/gamelift/api.go b/vendor/github.com/aws/aws-sdk-go/service/gamelift/api.go index 320c86910..ef7152961 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/gamelift/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/gamelift/api.go @@ -39,6 +39,7 @@ const opCreateAlias = "CreateAlias" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateAlias func (c *GameLift) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, output *CreateAliasOutput) { op := &request.Operation{ Name: opCreateAlias, @@ -50,22 +51,26 @@ func (c *GameLift) CreateAliasRequest(input *CreateAliasInput) (req *request.Req input = &CreateAliasInput{} } - req = c.newRequest(op, input, output) output = &CreateAliasOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // CreateAlias API operation for Amazon GameLift. // -// Creates an alias for a fleet. You can use an alias to anonymize your fleet -// by referencing an alias instead of a specific fleet when you create game -// sessions. Amazon GameLift supports two types of routing strategies for aliases: -// simple and terminal. Use a simple alias to point to an active fleet. Use -// a terminal alias to display a message to incoming traffic instead of routing -// players to an active fleet. This option is useful when a game server is no -// longer supported but you want to provide better messaging than a standard -// 404 error. +// Creates an alias and sets a target fleet. A fleet alias can be used in place +// of a fleet ID, such as when calling CreateGameSession from a game client +// or game service or adding destinations to a game session queue. By changing +// an alias's target fleet, you can switch your players to the new fleet without +// changing any other component. In production, this feature is particularly +// useful to redirect your player base seamlessly to the latest game server +// update. +// +// Amazon GameLift supports two types of routing strategies for aliases: simple +// and terminal. Use a simple alias to point to an active fleet. Use a terminal +// alias to display a message to incoming traffic instead of routing players +// to an active fleet. This option is useful when a game server is no longer +// supported but you want to provide better messaging than a standard 404 error. // // To create a fleet alias, specify an alias name, routing strategy, and optional // description. If successful, a new alias record is returned, including an @@ -80,27 +85,28 @@ func (c *GameLift) CreateAliasRequest(input *CreateAliasInput) (req *request.Req // API operation CreateAlias for usage and error information. // // Returned Error Codes: -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ConflictException +// * ErrCodeConflictException "ConflictException" // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested operation would cause the resource to exceed the allowed service // limit. Resolve the issue before retrying. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateAlias func (c *GameLift) CreateAlias(input *CreateAliasInput) (*CreateAliasOutput, error) { req, out := c.CreateAliasRequest(input) err := req.Send() @@ -133,6 +139,7 @@ const opCreateBuild = "CreateBuild" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateBuild func (c *GameLift) CreateBuildRequest(input *CreateBuildInput) (req *request.Request, output *CreateBuildOutput) { op := &request.Operation{ Name: opCreateBuild, @@ -144,32 +151,32 @@ func (c *GameLift) CreateBuildRequest(input *CreateBuildInput) (req *request.Req input = &CreateBuildInput{} } - req = c.newRequest(op, input, output) output = &CreateBuildOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // CreateBuild API operation for Amazon GameLift. // -// Initializes a new build record and generates information required to upload -// a game build to Amazon GameLift. Once the build record has been created and -// its status is INITIALIZED, you can upload your game build. -// -// Do not use this API action unless you are using your own Amazon Simple -// Storage Service (Amazon S3) client and need to manually upload your build -// files. Instead, to create a build, use the CLI command upload-build, which -// creates a new build record and uploads the build files in one step. (See -// the Amazon GameLift Developer Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-intro.html) -// help on packaging and uploading your build.) -// -// To create a new build, identify the operating system of the game server -// binaries. All game servers in a build must use the same operating system. -// Optionally, specify a build name and version; this metadata is stored with -// other properties in the build record and is displayed in the GameLift console -// (it is not visible to players). If successful, this action returns the newly -// created build record along with the Amazon S3 storage location and AWS account -// credentials. Use the location and credentials to upload your game build. +// Creates a new Amazon GameLift build from a set of game server binary files +// stored in an Amazon Simple Storage Service (Amazon S3) location. When using +// this API call, you must create a .zip file containing all of the build files +// and store it in an Amazon S3 bucket under your AWS account. For help on packaging +// your build files and creating a build, see Uploading Your Game to Amazon +// GameLift (http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-intro.html). +// +// Use this API action ONLY if you are storing your game build files in an Amazon +// S3 bucket in your AWS account. To create a build using files stored in a +// directory, use the CLI command upload-build (http://docs.aws.amazon.com/cli/latest/reference/gamelift/upload-build.html), +// which uploads the build files from a file location you specify and creates +// a build. +// +// To create a new build using CreateBuild, identify the storage location and +// operating system of your game build. You also have the option of specifying +// a build name and version. If successful, this action creates a new build +// record with an unique build ID and in INITIALIZED status. Use the API call +// DescribeBuild to check the status of your build. A build must be in READY +// status before it can be used to create fleets to host your game. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -179,23 +186,24 @@ func (c *GameLift) CreateBuildRequest(input *CreateBuildInput) (req *request.Req // API operation CreateBuild for usage and error information. // // Returned Error Codes: -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ConflictException +// * ErrCodeConflictException "ConflictException" // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateBuild func (c *GameLift) CreateBuild(input *CreateBuildInput) (*CreateBuildOutput, error) { req, out := c.CreateBuildRequest(input) err := req.Send() @@ -228,6 +236,7 @@ const opCreateFleet = "CreateFleet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateFleet func (c *GameLift) CreateFleetRequest(input *CreateFleetInput) (req *request.Request, output *CreateFleetOutput) { op := &request.Operation{ Name: opCreateFleet, @@ -239,9 +248,8 @@ func (c *GameLift) CreateFleetRequest(input *CreateFleetInput) (req *request.Req input = &CreateFleetInput{} } - req = c.newRequest(op, input, output) output = &CreateFleetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -260,42 +268,45 @@ func (c *GameLift) CreateFleetRequest(input *CreateFleetInput) (req *request.Req // with the following settings: (1) a runtime configuration describing what // server processes to run on each instance in the fleet (required to create // fleet), (2) access permissions for inbound traffic, (3) fleet-wide game session -// protection, and (4) the location of default log files for GameLift to upload -// and store. +// protection, and (4) the location of default log files for Amazon GameLift +// to upload and store. // // If the CreateFleet call is successful, Amazon GameLift performs the following // tasks: // -// Creates a fleet record and sets the status to NEW (followed by other statuses -// as the fleet is activated). +// * Creates a fleet record and sets the status to NEW (followed by other +// statuses as the fleet is activated). // -// Sets the fleet's capacity to 1 "desired", which causes GameLift to start -// one new EC2 instance. +// * Sets the fleet's capacity to 1 "desired", which causes Amazon GameLift +// to start one new EC2 instance. // -// Starts launching server processes on the instance. If the fleet is configured -// to run multiple server processes per instance, GameLift staggers each launch -// by a few seconds. +// * Starts launching server processes on the instance. If the fleet is configured +// to run multiple server processes per instance, Amazon GameLift staggers +// each launch by a few seconds. // -// Begins writing events to the fleet event log, which can be accessed in -// the GameLift console. +// * Begins writing events to the fleet event log, which can be accessed +// in the Amazon GameLift console. // -// Sets the fleet's status to ACTIVE once one server process in the fleet -// is ready to host a game session. +// * Sets the fleet's status to ACTIVE once one server process in the fleet +// is ready to host a game session. // -// After a fleet is created, use the following actions to change fleet properties +// After a fleet is created, use the following actions to change fleet properties // and configuration: // -// UpdateFleetAttributes -- Update fleet metadata, including name and description. +// * UpdateFleetAttributes -- Update fleet metadata, including name and description. +// +// * UpdateFleetCapacity -- Increase or decrease the number of instances +// you want the fleet to maintain. // -// UpdateFleetCapacity -- Increase or decrease the number of instances you -// want the fleet to maintain. +// * UpdateFleetPortSettings -- Change the IP address and port ranges that +// allow access to incoming traffic. // -// UpdateFleetPortSettings -- Change the IP address and port ranges that -// allow access to incoming traffic. +// * UpdateRuntimeConfiguration -- Change how server processes are launched +// in the fleet, including launch path, launch parameters, and the number +// of concurrent processes. // -// UpdateRuntimeConfiguration -- Change how server processes are launched -// in the fleet, including launch path, launch parameters, and the number of -// concurrent processes. +// * PutScalingPolicy -- Create or update rules that are used to set the +// fleet's capacity (autoscaling). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -305,31 +316,32 @@ func (c *GameLift) CreateFleetRequest(input *CreateFleetInput) (req *request.Req // API operation CreateFleet for usage and error information. // // Returned Error Codes: -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ConflictException +// * ErrCodeConflictException "ConflictException" // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested operation would cause the resource to exceed the allowed service // limit. Resolve the issue before retrying. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateFleet func (c *GameLift) CreateFleet(input *CreateFleetInput) (*CreateFleetOutput, error) { req, out := c.CreateFleetRequest(input) err := req.Send() @@ -362,6 +374,7 @@ const opCreateGameSession = "CreateGameSession" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateGameSession func (c *GameLift) CreateGameSessionRequest(input *CreateGameSessionInput) (req *request.Request, output *CreateGameSessionOutput) { op := &request.Operation{ Name: opCreateGameSession, @@ -373,28 +386,30 @@ func (c *GameLift) CreateGameSessionRequest(input *CreateGameSessionInput) (req input = &CreateGameSessionInput{} } - req = c.newRequest(op, input, output) output = &CreateGameSessionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // CreateGameSession API operation for Amazon GameLift. // // Creates a multiplayer game session for players. This action creates a game -// session record and assigns the new session to an instance in the specified -// fleet, which initializes a new server process to host the game session. A -// fleet must be in an ACTIVE status before a game session can be created in -// it. -// -// To create a game session, specify either a fleet ID or an alias ID and indicate -// the maximum number of players the game session allows. You can also provide -// a name and a set of properties for your game (optional). If successful, a -// GameSession object is returned containing session properties, including an -// IP address. By default, newly created game sessions are set to accept adding -// any new players to the game session. Use UpdateGameSession to change the +// session record and assigns an available server process in the specified fleet +// to host the game session. A fleet must have an ACTIVE status before a game +// session can be created in it. +// +// To create a game session, specify either fleet ID or alias ID, and indicate +// a maximum number of players to allow in the game session. You can also provide +// a name and game-specific properties for this game session. If successful, +// a GameSession object is returned containing session properties, including +// an IP address. By default, newly created game sessions allow new players +// to join. Use UpdateGameSession to change the game session's player session // creation policy. // +// When creating a game session on a fleet with a resource limit creation policy, +// the request should include a creator ID. If none is provided, Amazon GameLift +// does not evaluate the fleet's resource limit creation policy. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -403,57 +418,146 @@ func (c *GameLift) CreateGameSessionRequest(input *CreateGameSessionInput) (req // API operation CreateGameSession for usage and error information. // // Returned Error Codes: -// * ConflictException +// * ErrCodeConflictException "ConflictException" // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * InvalidFleetStatusException +// * ErrCodeInvalidFleetStatusException "InvalidFleetStatusException" // The requested operation would cause a conflict with the current state of // a resource associated with the request and/or the fleet. Resolve the conflict // before retrying. // -// * TerminalRoutingStrategyException +// * ErrCodeTerminalRoutingStrategyException "TerminalRoutingStrategyException" // The service is unable to resolve the routing for a particular alias because // it has a terminal RoutingStrategy associated with it. The message returned // in this exception is the message defined in the routing strategy itself. // Such requests should only be retried if the routing strategy for the specified // alias is modified. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * FleetCapacityExceededException +// * ErrCodeFleetCapacityExceededException "FleetCapacityExceededException" // The specified fleet has no available instances to fulfill a CreateGameSession // request. Clients can retry such requests immediately or after a waiting period. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested operation would cause the resource to exceed the allowed service // limit. Resolve the issue before retrying. // -// * IdempotentParameterMismatchException +// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" // A game session with this custom ID string already exists in this fleet. Resolve // this conflict before retrying this request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateGameSession func (c *GameLift) CreateGameSession(input *CreateGameSessionInput) (*CreateGameSessionOutput, error) { req, out := c.CreateGameSessionRequest(input) err := req.Send() return out, err } +const opCreateGameSessionQueue = "CreateGameSessionQueue" + +// CreateGameSessionQueueRequest generates a "aws/request.Request" representing the +// client's request for the CreateGameSessionQueue operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateGameSessionQueue for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateGameSessionQueue method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateGameSessionQueueRequest method. +// req, resp := client.CreateGameSessionQueueRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateGameSessionQueue +func (c *GameLift) CreateGameSessionQueueRequest(input *CreateGameSessionQueueInput) (req *request.Request, output *CreateGameSessionQueueOutput) { + op := &request.Operation{ + Name: opCreateGameSessionQueue, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateGameSessionQueueInput{} + } + + output = &CreateGameSessionQueueOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateGameSessionQueue API operation for Amazon GameLift. +// +// Establishes a new queue for processing requests for new game sessions. A +// queue identifies where new game sessions can be hosted--by specifying a list +// of fleet destinations--and how long a request can remain in the queue waiting +// to be placed before timing out. Requests for new game sessions are added +// to a queue by calling StartGameSessionPlacement and referencing the queue +// name. +// +// When processing a request for a game session, Amazon GameLift tries each +// destination in order until it finds one with available resources to host +// the new game session. A queue's default order is determined by how destinations +// are listed. This default order can be overridden in a game session placement +// request. +// +// To create a new queue, provide a name, timeout value, and a list of destinations. +// If successful, a new queue object is returned. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation CreateGameSessionQueue for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests immediately or after a waiting +// period. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// One or more parameter values in the request are invalid. Correct the invalid +// parameter values before retrying. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// The client failed authentication. Clients should not retry such requests. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateGameSessionQueue +func (c *GameLift) CreateGameSessionQueue(input *CreateGameSessionQueueInput) (*CreateGameSessionQueueOutput, error) { + req, out := c.CreateGameSessionQueueRequest(input) + err := req.Send() + return out, err +} + const opCreatePlayerSession = "CreatePlayerSession" // CreatePlayerSessionRequest generates a "aws/request.Request" representing the @@ -480,6 +584,7 @@ const opCreatePlayerSession = "CreatePlayerSession" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreatePlayerSession func (c *GameLift) CreatePlayerSessionRequest(input *CreatePlayerSessionInput) (req *request.Request, output *CreatePlayerSessionOutput) { op := &request.Operation{ Name: opCreatePlayerSession, @@ -491,21 +596,21 @@ func (c *GameLift) CreatePlayerSessionRequest(input *CreatePlayerSessionInput) ( input = &CreatePlayerSessionInput{} } - req = c.newRequest(op, input, output) output = &CreatePlayerSessionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // CreatePlayerSession API operation for Amazon GameLift. // -// Adds a player to a game session and creates a player session record. A game -// session must be in an ACTIVE status, have a creation policy of ALLOW_ALL, -// and have an open player slot before players can be added to the session. +// Adds a player to a game session and creates a player session record. Before +// a player can be added, a game session must have an ACTIVE status, have a +// creation policy of ALLOW_ALL, and have an open player slot. To add a group +// of players to a game session, use CreatePlayerSessions. // -// To create a player session, specify a game session ID and player ID. If -// successful, the player is added to the game session and a new PlayerSession -// object is returned. +// To create a player session, specify a game session ID, player ID, and optionally +// a string of player data. If successful, the player is added to the game session +// and a new PlayerSession object is returned. Player sessions cannot be updated. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -515,38 +620,39 @@ func (c *GameLift) CreatePlayerSessionRequest(input *CreatePlayerSessionInput) ( // API operation CreatePlayerSession for usage and error information. // // Returned Error Codes: -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * InvalidGameSessionStatusException +// * ErrCodeInvalidGameSessionStatusException "InvalidGameSessionStatusException" // The requested operation would cause a conflict with the current state of // a resource associated with the request and/or the game instance. Resolve // the conflict before retrying. // -// * GameSessionFullException +// * ErrCodeGameSessionFullException "GameSessionFullException" // The game instance is currently full and cannot allow the requested player(s) // to join. Clients can retry such requests immediately or after a waiting period. // -// * TerminalRoutingStrategyException +// * ErrCodeTerminalRoutingStrategyException "TerminalRoutingStrategyException" // The service is unable to resolve the routing for a particular alias because // it has a terminal RoutingStrategy associated with it. The message returned // in this exception is the message defined in the routing strategy itself. // Such requests should only be retried if the routing strategy for the specified // alias is modified. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreatePlayerSession func (c *GameLift) CreatePlayerSession(input *CreatePlayerSessionInput) (*CreatePlayerSessionOutput, error) { req, out := c.CreatePlayerSessionRequest(input) err := req.Send() @@ -579,6 +685,7 @@ const opCreatePlayerSessions = "CreatePlayerSessions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreatePlayerSessions func (c *GameLift) CreatePlayerSessionsRequest(input *CreatePlayerSessionsInput) (req *request.Request, output *CreatePlayerSessionsOutput) { op := &request.Operation{ Name: opCreatePlayerSessions, @@ -590,23 +697,22 @@ func (c *GameLift) CreatePlayerSessionsRequest(input *CreatePlayerSessionsInput) input = &CreatePlayerSessionsInput{} } - req = c.newRequest(op, input, output) output = &CreatePlayerSessionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // CreatePlayerSessions API operation for Amazon GameLift. // -// Adds a group of players to a game session. Similar to CreatePlayerSession, -// this action allows you to add multiple players in a single call, which is -// useful for games that provide party and/or matchmaking features. A game session -// must be in an ACTIVE status, have a creation policy of ALLOW_ALL, and have -// an open player slot before players can be added to the session. +// Adds a group of players to a game session. This action is useful with a team +// matching feature. Before players can be added, a game session must have an +// ACTIVE status, have a creation policy of ALLOW_ALL, and have an open player +// slot. To add a single player to a game session, use CreatePlayerSession. // -// To create player sessions, specify a game session ID and a list of player -// IDs. If successful, the players are added to the game session and a set of -// new PlayerSession objects is returned. +// To create player sessions, specify a game session ID, a list of player IDs, +// and optionally a set of player data strings. If successful, the players are +// added to the game session and a set of new PlayerSession objects is returned. +// Player sessions cannot be updated. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -616,38 +722,39 @@ func (c *GameLift) CreatePlayerSessionsRequest(input *CreatePlayerSessionsInput) // API operation CreatePlayerSessions for usage and error information. // // Returned Error Codes: -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * InvalidGameSessionStatusException +// * ErrCodeInvalidGameSessionStatusException "InvalidGameSessionStatusException" // The requested operation would cause a conflict with the current state of // a resource associated with the request and/or the game instance. Resolve // the conflict before retrying. // -// * GameSessionFullException +// * ErrCodeGameSessionFullException "GameSessionFullException" // The game instance is currently full and cannot allow the requested player(s) // to join. Clients can retry such requests immediately or after a waiting period. // -// * TerminalRoutingStrategyException +// * ErrCodeTerminalRoutingStrategyException "TerminalRoutingStrategyException" // The service is unable to resolve the routing for a particular alias because // it has a terminal RoutingStrategy associated with it. The message returned // in this exception is the message defined in the routing strategy itself. // Such requests should only be retried if the routing strategy for the specified // alias is modified. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreatePlayerSessions func (c *GameLift) CreatePlayerSessions(input *CreatePlayerSessionsInput) (*CreatePlayerSessionsOutput, error) { req, out := c.CreatePlayerSessionsRequest(input) err := req.Send() @@ -680,6 +787,7 @@ const opDeleteAlias = "DeleteAlias" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteAlias func (c *GameLift) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, output *DeleteAliasOutput) { op := &request.Operation{ Name: opDeleteAlias, @@ -691,19 +799,18 @@ func (c *GameLift) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Req input = &DeleteAliasInput{} } + output = &DeleteAliasOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAliasOutput{} - req.Data = output return } // DeleteAlias API operation for Amazon GameLift. // -// Deletes an alias. This action removes all record of the alias; game clients -// attempting to access a server process using the deleted alias receive an -// error. To delete an alias, specify the alias ID to be deleted. +// Deletes a fleet alias. This action removes all record of the alias. Game +// clients attempting to access a server process using the deleted alias receive +// an error. To delete an alias, specify the alias ID to be deleted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -713,22 +820,23 @@ func (c *GameLift) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Req // API operation DeleteAlias for usage and error information. // // Returned Error Codes: -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteAlias func (c *GameLift) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error) { req, out := c.DeleteAliasRequest(input) err := req.Send() @@ -761,6 +869,7 @@ const opDeleteBuild = "DeleteBuild" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteBuild func (c *GameLift) DeleteBuildRequest(input *DeleteBuildInput) (req *request.Request, output *DeleteBuildOutput) { op := &request.Operation{ Name: opDeleteBuild, @@ -772,11 +881,10 @@ func (c *GameLift) DeleteBuildRequest(input *DeleteBuildInput) (req *request.Req input = &DeleteBuildInput{} } + output = &DeleteBuildOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteBuildOutput{} - req.Data = output return } @@ -785,9 +893,9 @@ func (c *GameLift) DeleteBuildRequest(input *DeleteBuildInput) (req *request.Req // Deletes a build. This action permanently deletes the build record and any // uploaded build files. // -// To delete a build, specify its ID. Deleting a build does not affect the -// status of any active fleets using the build, but you can no longer create -// new fleets with the deleted build. +// To delete a build, specify its ID. Deleting a build does not affect the status +// of any active fleets using the build, but you can no longer create new fleets +// with the deleted build. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -797,22 +905,23 @@ func (c *GameLift) DeleteBuildRequest(input *DeleteBuildInput) (req *request.Req // API operation DeleteBuild for usage and error information. // // Returned Error Codes: -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteBuild func (c *GameLift) DeleteBuild(input *DeleteBuildInput) (*DeleteBuildOutput, error) { req, out := c.DeleteBuildRequest(input) err := req.Send() @@ -845,6 +954,7 @@ const opDeleteFleet = "DeleteFleet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteFleet func (c *GameLift) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Request, output *DeleteFleetOutput) { op := &request.Operation{ Name: opDeleteFleet, @@ -856,11 +966,10 @@ func (c *GameLift) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Req input = &DeleteFleetInput{} } + output = &DeleteFleetOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteFleetOutput{} - req.Data = output return } @@ -880,33 +989,114 @@ func (c *GameLift) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Req // API operation DeleteFleet for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * InvalidFleetStatusException +// * ErrCodeInvalidFleetStatusException "InvalidFleetStatusException" // The requested operation would cause a conflict with the current state of // a resource associated with the request and/or the fleet. Resolve the conflict // before retrying. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteFleet func (c *GameLift) DeleteFleet(input *DeleteFleetInput) (*DeleteFleetOutput, error) { req, out := c.DeleteFleetRequest(input) err := req.Send() return out, err } +const opDeleteGameSessionQueue = "DeleteGameSessionQueue" + +// DeleteGameSessionQueueRequest generates a "aws/request.Request" representing the +// client's request for the DeleteGameSessionQueue operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteGameSessionQueue for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteGameSessionQueue method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteGameSessionQueueRequest method. +// req, resp := client.DeleteGameSessionQueueRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteGameSessionQueue +func (c *GameLift) DeleteGameSessionQueueRequest(input *DeleteGameSessionQueueInput) (req *request.Request, output *DeleteGameSessionQueueOutput) { + op := &request.Operation{ + Name: opDeleteGameSessionQueue, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteGameSessionQueueInput{} + } + + output = &DeleteGameSessionQueueOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteGameSessionQueue API operation for Amazon GameLift. +// +// Deletes a game session queue. This action means that any StartGameSessionPlacement +// requests that reference this queue will fail. To delete a queue, specify +// the queue name. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DeleteGameSessionQueue for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests immediately or after a waiting +// period. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// One or more parameter values in the request are invalid. Correct the invalid +// parameter values before retrying. +// +// * ErrCodeNotFoundException "NotFoundException" +// A service resource associated with the request could not be found. Clients +// should not retry such requests. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// The client failed authentication. Clients should not retry such requests. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteGameSessionQueue +func (c *GameLift) DeleteGameSessionQueue(input *DeleteGameSessionQueueInput) (*DeleteGameSessionQueueOutput, error) { + req, out := c.DeleteGameSessionQueueRequest(input) + err := req.Send() + return out, err +} + const opDeleteScalingPolicy = "DeleteScalingPolicy" // DeleteScalingPolicyRequest generates a "aws/request.Request" representing the @@ -933,6 +1123,7 @@ const opDeleteScalingPolicy = "DeleteScalingPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteScalingPolicy func (c *GameLift) DeleteScalingPolicyRequest(input *DeleteScalingPolicyInput) (req *request.Request, output *DeleteScalingPolicyOutput) { op := &request.Operation{ Name: opDeleteScalingPolicy, @@ -944,11 +1135,10 @@ func (c *GameLift) DeleteScalingPolicyRequest(input *DeleteScalingPolicyInput) ( input = &DeleteScalingPolicyInput{} } + output = &DeleteScalingPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteScalingPolicyOutput{} - req.Data = output return } @@ -966,22 +1156,23 @@ func (c *GameLift) DeleteScalingPolicyRequest(input *DeleteScalingPolicyInput) ( // API operation DeleteScalingPolicy for usage and error information. // // Returned Error Codes: -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteScalingPolicy func (c *GameLift) DeleteScalingPolicy(input *DeleteScalingPolicyInput) (*DeleteScalingPolicyOutput, error) { req, out := c.DeleteScalingPolicyRequest(input) err := req.Send() @@ -1014,6 +1205,7 @@ const opDescribeAlias = "DescribeAlias" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeAlias func (c *GameLift) DescribeAliasRequest(input *DescribeAliasInput) (req *request.Request, output *DescribeAliasOutput) { op := &request.Operation{ Name: opDescribeAlias, @@ -1025,16 +1217,19 @@ func (c *GameLift) DescribeAliasRequest(input *DescribeAliasInput) (req *request input = &DescribeAliasInput{} } - req = c.newRequest(op, input, output) output = &DescribeAliasOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeAlias API operation for Amazon GameLift. // -// Retrieves properties for a specified alias. To get the alias, specify an -// alias ID. If successful, an Alias object is returned. +// Retrieves properties for a fleet alias. This operation returns all alias +// metadata and settings. To get just the fleet ID an alias is currently pointing +// to, use ResolveAlias. +// +// To get alias properties, specify the alias ID. If successful, an Alias object +// is returned. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1044,22 +1239,23 @@ func (c *GameLift) DescribeAliasRequest(input *DescribeAliasInput) (req *request // API operation DescribeAlias for usage and error information. // // Returned Error Codes: -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeAlias func (c *GameLift) DescribeAlias(input *DescribeAliasInput) (*DescribeAliasOutput, error) { req, out := c.DescribeAliasRequest(input) err := req.Send() @@ -1092,6 +1288,7 @@ const opDescribeBuild = "DescribeBuild" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeBuild func (c *GameLift) DescribeBuildRequest(input *DescribeBuildInput) (req *request.Request, output *DescribeBuildOutput) { op := &request.Operation{ Name: opDescribeBuild, @@ -1103,9 +1300,8 @@ func (c *GameLift) DescribeBuildRequest(input *DescribeBuildInput) (req *request input = &DescribeBuildInput{} } - req = c.newRequest(op, input, output) output = &DescribeBuildOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1122,22 +1318,23 @@ func (c *GameLift) DescribeBuildRequest(input *DescribeBuildInput) (req *request // API operation DescribeBuild for usage and error information. // // Returned Error Codes: -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeBuild func (c *GameLift) DescribeBuild(input *DescribeBuildInput) (*DescribeBuildOutput, error) { req, out := c.DescribeBuildRequest(input) err := req.Send() @@ -1170,6 +1367,7 @@ const opDescribeEC2InstanceLimits = "DescribeEC2InstanceLimits" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeEC2InstanceLimits func (c *GameLift) DescribeEC2InstanceLimitsRequest(input *DescribeEC2InstanceLimitsInput) (req *request.Request, output *DescribeEC2InstanceLimitsOutput) { op := &request.Operation{ Name: opDescribeEC2InstanceLimits, @@ -1181,9 +1379,8 @@ func (c *GameLift) DescribeEC2InstanceLimitsRequest(input *DescribeEC2InstanceLi input = &DescribeEC2InstanceLimitsInput{} } - req = c.newRequest(op, input, output) output = &DescribeEC2InstanceLimitsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1191,12 +1388,12 @@ func (c *GameLift) DescribeEC2InstanceLimitsRequest(input *DescribeEC2InstanceLi // // Retrieves the following information for the specified EC2 instance type: // -// maximum number of instances allowed per AWS account (service limit) +// * maximum number of instances allowed per AWS account (service limit) // -// current usage level for the AWS account +// * current usage level for the AWS account // -// Service limits vary depending on region. Available regions for GameLift -// can be found in the AWS Management Console for GameLift (see the drop-down +// Service limits vary depending on region. Available regions for Amazon GameLift +// can be found in the AWS Management Console for Amazon GameLift (see the drop-down // list in the upper right corner). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1207,18 +1404,19 @@ func (c *GameLift) DescribeEC2InstanceLimitsRequest(input *DescribeEC2InstanceLi // API operation DescribeEC2InstanceLimits for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeEC2InstanceLimits func (c *GameLift) DescribeEC2InstanceLimits(input *DescribeEC2InstanceLimitsInput) (*DescribeEC2InstanceLimitsOutput, error) { req, out := c.DescribeEC2InstanceLimitsRequest(input) err := req.Send() @@ -1251,6 +1449,7 @@ const opDescribeFleetAttributes = "DescribeFleetAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetAttributes func (c *GameLift) DescribeFleetAttributesRequest(input *DescribeFleetAttributesInput) (req *request.Request, output *DescribeFleetAttributesOutput) { op := &request.Operation{ Name: opDescribeFleetAttributes, @@ -1262,9 +1461,8 @@ func (c *GameLift) DescribeFleetAttributesRequest(input *DescribeFleetAttributes input = &DescribeFleetAttributesInput{} } - req = c.newRequest(op, input, output) output = &DescribeFleetAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1278,7 +1476,7 @@ func (c *GameLift) DescribeFleetAttributesRequest(input *DescribeFleetAttributes // ID. When specifying a list of fleet IDs, attribute objects are returned only // for fleets that currently exist. // -// Some API actions may limit the number of fleet IDs allowed in one request. +// Some API actions may limit the number of fleet IDs allowed in one request. // If a request exceeds this limit, the request fails and the error message // includes the maximum allowed. // @@ -1290,22 +1488,23 @@ func (c *GameLift) DescribeFleetAttributesRequest(input *DescribeFleetAttributes // API operation DescribeFleetAttributes for usage and error information. // // Returned Error Codes: -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetAttributes func (c *GameLift) DescribeFleetAttributes(input *DescribeFleetAttributesInput) (*DescribeFleetAttributesOutput, error) { req, out := c.DescribeFleetAttributesRequest(input) err := req.Send() @@ -1338,6 +1537,7 @@ const opDescribeFleetCapacity = "DescribeFleetCapacity" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetCapacity func (c *GameLift) DescribeFleetCapacityRequest(input *DescribeFleetCapacityInput) (req *request.Request, output *DescribeFleetCapacityOutput) { op := &request.Operation{ Name: opDescribeFleetCapacity, @@ -1349,9 +1549,8 @@ func (c *GameLift) DescribeFleetCapacityRequest(input *DescribeFleetCapacityInpu input = &DescribeFleetCapacityInput{} } - req = c.newRequest(op, input, output) output = &DescribeFleetCapacityOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1366,7 +1565,7 @@ func (c *GameLift) DescribeFleetCapacityRequest(input *DescribeFleetCapacityInpu // fleet ID. When specifying a list of fleet IDs, attribute objects are returned // only for fleets that currently exist. // -// Some API actions may limit the number of fleet IDs allowed in one request. +// Some API actions may limit the number of fleet IDs allowed in one request. // If a request exceeds this limit, the request fails and the error message // includes the maximum allowed. // @@ -1378,22 +1577,23 @@ func (c *GameLift) DescribeFleetCapacityRequest(input *DescribeFleetCapacityInpu // API operation DescribeFleetCapacity for usage and error information. // // Returned Error Codes: -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetCapacity func (c *GameLift) DescribeFleetCapacity(input *DescribeFleetCapacityInput) (*DescribeFleetCapacityOutput, error) { req, out := c.DescribeFleetCapacityRequest(input) err := req.Send() @@ -1426,6 +1626,7 @@ const opDescribeFleetEvents = "DescribeFleetEvents" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetEvents func (c *GameLift) DescribeFleetEventsRequest(input *DescribeFleetEventsInput) (req *request.Request, output *DescribeFleetEventsOutput) { op := &request.Operation{ Name: opDescribeFleetEvents, @@ -1437,9 +1638,8 @@ func (c *GameLift) DescribeFleetEventsRequest(input *DescribeFleetEventsInput) ( input = &DescribeFleetEventsInput{} } - req = c.newRequest(op, input, output) output = &DescribeFleetEventsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1458,22 +1658,23 @@ func (c *GameLift) DescribeFleetEventsRequest(input *DescribeFleetEventsInput) ( // API operation DescribeFleetEvents for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetEvents func (c *GameLift) DescribeFleetEvents(input *DescribeFleetEventsInput) (*DescribeFleetEventsOutput, error) { req, out := c.DescribeFleetEventsRequest(input) err := req.Send() @@ -1506,6 +1707,7 @@ const opDescribeFleetPortSettings = "DescribeFleetPortSettings" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetPortSettings func (c *GameLift) DescribeFleetPortSettingsRequest(input *DescribeFleetPortSettingsInput) (req *request.Request, output *DescribeFleetPortSettingsOutput) { op := &request.Operation{ Name: opDescribeFleetPortSettings, @@ -1517,9 +1719,8 @@ func (c *GameLift) DescribeFleetPortSettingsRequest(input *DescribeFleetPortSett input = &DescribeFleetPortSettingsInput{} } - req = c.newRequest(op, input, output) output = &DescribeFleetPortSettingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1540,22 +1741,23 @@ func (c *GameLift) DescribeFleetPortSettingsRequest(input *DescribeFleetPortSett // API operation DescribeFleetPortSettings for usage and error information. // // Returned Error Codes: -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetPortSettings func (c *GameLift) DescribeFleetPortSettings(input *DescribeFleetPortSettingsInput) (*DescribeFleetPortSettingsOutput, error) { req, out := c.DescribeFleetPortSettingsRequest(input) err := req.Send() @@ -1588,6 +1790,7 @@ const opDescribeFleetUtilization = "DescribeFleetUtilization" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetUtilization func (c *GameLift) DescribeFleetUtilizationRequest(input *DescribeFleetUtilizationInput) (req *request.Request, output *DescribeFleetUtilizationOutput) { op := &request.Operation{ Name: opDescribeFleetUtilization, @@ -1599,9 +1802,8 @@ func (c *GameLift) DescribeFleetUtilizationRequest(input *DescribeFleetUtilizati input = &DescribeFleetUtilizationInput{} } - req = c.newRequest(op, input, output) output = &DescribeFleetUtilizationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1614,7 +1816,7 @@ func (c *GameLift) DescribeFleetUtilizationRequest(input *DescribeFleetUtilizati // is returned for each requested fleet ID. When specifying a list of fleet // IDs, utilization objects are returned only for fleets that currently exist. // -// Some API actions may limit the number of fleet IDs allowed in one request. +// Some API actions may limit the number of fleet IDs allowed in one request. // If a request exceeds this limit, the request fails and the error message // includes the maximum allowed. // @@ -1626,22 +1828,23 @@ func (c *GameLift) DescribeFleetUtilizationRequest(input *DescribeFleetUtilizati // API operation DescribeFleetUtilization for usage and error information. // // Returned Error Codes: -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetUtilization func (c *GameLift) DescribeFleetUtilization(input *DescribeFleetUtilizationInput) (*DescribeFleetUtilizationOutput, error) { req, out := c.DescribeFleetUtilizationRequest(input) err := req.Send() @@ -1674,6 +1877,7 @@ const opDescribeGameSessionDetails = "DescribeGameSessionDetails" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionDetails func (c *GameLift) DescribeGameSessionDetailsRequest(input *DescribeGameSessionDetailsInput) (req *request.Request, output *DescribeGameSessionDetailsOutput) { op := &request.Operation{ Name: opDescribeGameSessionDetails, @@ -1685,9 +1889,8 @@ func (c *GameLift) DescribeGameSessionDetailsRequest(input *DescribeGameSessionD input = &DescribeGameSessionDetailsInput{} } - req = c.newRequest(op, input, output) output = &DescribeGameSessionDetailsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1713,303 +1916,468 @@ func (c *GameLift) DescribeGameSessionDetailsRequest(input *DescribeGameSessionD // API operation DescribeGameSessionDetails for usage and error information. // // Returned Error Codes: -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * TerminalRoutingStrategyException +// * ErrCodeTerminalRoutingStrategyException "TerminalRoutingStrategyException" // The service is unable to resolve the routing for a particular alias because // it has a terminal RoutingStrategy associated with it. The message returned // in this exception is the message defined in the routing strategy itself. // Such requests should only be retried if the routing strategy for the specified // alias is modified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionDetails func (c *GameLift) DescribeGameSessionDetails(input *DescribeGameSessionDetailsInput) (*DescribeGameSessionDetailsOutput, error) { req, out := c.DescribeGameSessionDetailsRequest(input) err := req.Send() return out, err } -const opDescribeGameSessions = "DescribeGameSessions" +const opDescribeGameSessionPlacement = "DescribeGameSessionPlacement" -// DescribeGameSessionsRequest generates a "aws/request.Request" representing the -// client's request for the DescribeGameSessions operation. The "output" return +// DescribeGameSessionPlacementRequest generates a "aws/request.Request" representing the +// client's request for the DescribeGameSessionPlacement operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeGameSessions for usage and error information. +// See DescribeGameSessionPlacement for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeGameSessions method directly +// you just want the service response, call the DescribeGameSessionPlacement method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeGameSessionsRequest method. -// req, resp := client.DescribeGameSessionsRequest(params) +// // Example sending a request using the DescribeGameSessionPlacementRequest method. +// req, resp := client.DescribeGameSessionPlacementRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *GameLift) DescribeGameSessionsRequest(input *DescribeGameSessionsInput) (req *request.Request, output *DescribeGameSessionsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionPlacement +func (c *GameLift) DescribeGameSessionPlacementRequest(input *DescribeGameSessionPlacementInput) (req *request.Request, output *DescribeGameSessionPlacementOutput) { op := &request.Operation{ - Name: opDescribeGameSessions, + Name: opDescribeGameSessionPlacement, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeGameSessionsInput{} + input = &DescribeGameSessionPlacementInput{} } + output = &DescribeGameSessionPlacementOutput{} req = c.newRequest(op, input, output) - output = &DescribeGameSessionsOutput{} - req.Data = output return } -// DescribeGameSessions API operation for Amazon GameLift. -// -// Retrieves a set of one or more game sessions and properties. This action -// can be used in several ways: (1) provide a GameSessionId to request properties -// for a specific game session; (2) provide a FleetId or an AliasId to request -// properties for all game sessions running on a fleet. You can also use SearchGameSessions, -// which allows you to retrieve all game sessions or filter on certain criteria, -// but only returns game sessions with a status of ACTIVE. If you need to retrieve -// the protection policy for each game session, use DescribeGameSessionDetails. +// DescribeGameSessionPlacement API operation for Amazon GameLift. // -// To get game session record(s), specify just one of the following: game session -// ID, fleet ID, or alias ID. You can filter this request by game session status. -// Use the pagination parameters to retrieve results as a set of sequential -// pages. If successful, a GameSession object is returned for each session matching -// the request. +// Retrieves properties and current status of a game session placement request. +// To get game session placement details, specify the placement ID. If successful, +// a GameSessionPlacement object is returned. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon GameLift's -// API operation DescribeGameSessions for usage and error information. +// API operation DescribeGameSessionPlacement for usage and error information. // // Returned Error Codes: -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * NotFoundException -// A service resource associated with the request could not be found. Clients -// should not retry such requests. -// -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * UnauthorizedException -// The client failed authentication. Clients should not retry such requests. +// * ErrCodeNotFoundException "NotFoundException" +// A service resource associated with the request could not be found. Clients +// should not retry such requests. // -// * TerminalRoutingStrategyException -// The service is unable to resolve the routing for a particular alias because -// it has a terminal RoutingStrategy associated with it. The message returned -// in this exception is the message defined in the routing strategy itself. -// Such requests should only be retried if the routing strategy for the specified -// alias is modified. +// * ErrCodeUnauthorizedException "UnauthorizedException" +// The client failed authentication. Clients should not retry such requests. // -func (c *GameLift) DescribeGameSessions(input *DescribeGameSessionsInput) (*DescribeGameSessionsOutput, error) { - req, out := c.DescribeGameSessionsRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionPlacement +func (c *GameLift) DescribeGameSessionPlacement(input *DescribeGameSessionPlacementInput) (*DescribeGameSessionPlacementOutput, error) { + req, out := c.DescribeGameSessionPlacementRequest(input) err := req.Send() return out, err } -const opDescribeInstances = "DescribeInstances" +const opDescribeGameSessionQueues = "DescribeGameSessionQueues" -// DescribeInstancesRequest generates a "aws/request.Request" representing the -// client's request for the DescribeInstances operation. The "output" return +// DescribeGameSessionQueuesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeGameSessionQueues operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeInstances for usage and error information. +// See DescribeGameSessionQueues for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeInstances method directly +// you just want the service response, call the DescribeGameSessionQueues method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeInstancesRequest method. -// req, resp := client.DescribeInstancesRequest(params) +// // Example sending a request using the DescribeGameSessionQueuesRequest method. +// req, resp := client.DescribeGameSessionQueuesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *GameLift) DescribeInstancesRequest(input *DescribeInstancesInput) (req *request.Request, output *DescribeInstancesOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionQueues +func (c *GameLift) DescribeGameSessionQueuesRequest(input *DescribeGameSessionQueuesInput) (req *request.Request, output *DescribeGameSessionQueuesOutput) { op := &request.Operation{ - Name: opDescribeInstances, + Name: opDescribeGameSessionQueues, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeInstancesInput{} + input = &DescribeGameSessionQueuesInput{} } + output = &DescribeGameSessionQueuesOutput{} req = c.newRequest(op, input, output) - output = &DescribeInstancesOutput{} - req.Data = output return } -// DescribeInstances API operation for Amazon GameLift. -// -// Retrieves information about instances in a fleet. +// DescribeGameSessionQueues API operation for Amazon GameLift. // -// To get information on a specific instance, specify both a fleet ID and instance -// ID. To get information for all instances in a fleet, specify a fleet ID only. -// Use the pagination parameters to retrieve results as a set of sequential -// pages. If successful, an Instance object is returned for each result. +// Retrieves the properties for one or more game session queues. When requesting +// multiple queues, use the pagination parameters to retrieve results as a set +// of sequential pages. If successful, a GameSessionQueue object is returned +// for each requested queue. When specifying a list of queues, objects are returned +// only for queues that currently exist in the region. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon GameLift's -// API operation DescribeInstances for usage and error information. +// API operation DescribeGameSessionQueues for usage and error information. // // Returned Error Codes: -// * UnauthorizedException -// The client failed authentication. Clients should not retry such requests. +// * ErrCodeInternalServiceException "InternalServiceException" +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests immediately or after a waiting +// period. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * InternalServiceException -// The service encountered an unrecoverable internal failure while processing -// the request. Clients can retry such requests immediately or after a waiting -// period. +// * ErrCodeUnauthorizedException "UnauthorizedException" +// The client failed authentication. Clients should not retry such requests. // -func (c *GameLift) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error) { - req, out := c.DescribeInstancesRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionQueues +func (c *GameLift) DescribeGameSessionQueues(input *DescribeGameSessionQueuesInput) (*DescribeGameSessionQueuesOutput, error) { + req, out := c.DescribeGameSessionQueuesRequest(input) err := req.Send() return out, err } -const opDescribePlayerSessions = "DescribePlayerSessions" +const opDescribeGameSessions = "DescribeGameSessions" -// DescribePlayerSessionsRequest generates a "aws/request.Request" representing the -// client's request for the DescribePlayerSessions operation. The "output" return +// DescribeGameSessionsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeGameSessions operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribePlayerSessions for usage and error information. +// See DescribeGameSessions for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribePlayerSessions method directly +// you just want the service response, call the DescribeGameSessions method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribePlayerSessionsRequest method. -// req, resp := client.DescribePlayerSessionsRequest(params) +// // Example sending a request using the DescribeGameSessionsRequest method. +// req, resp := client.DescribeGameSessionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *GameLift) DescribePlayerSessionsRequest(input *DescribePlayerSessionsInput) (req *request.Request, output *DescribePlayerSessionsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessions +func (c *GameLift) DescribeGameSessionsRequest(input *DescribeGameSessionsInput) (req *request.Request, output *DescribeGameSessionsOutput) { op := &request.Operation{ - Name: opDescribePlayerSessions, + Name: opDescribeGameSessions, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribePlayerSessionsInput{} + input = &DescribeGameSessionsInput{} } + output = &DescribeGameSessionsOutput{} req = c.newRequest(op, input, output) - output = &DescribePlayerSessionsOutput{} - req.Data = output return } -// DescribePlayerSessions API operation for Amazon GameLift. +// DescribeGameSessions API operation for Amazon GameLift. // -// Retrieves properties for one or more player sessions. This action can be -// used in several ways: (1) provide a PlayerSessionId parameter to request -// properties for a specific player session; (2) provide a GameSessionId parameter -// to request properties for all player sessions in the specified game session; -// (3) provide a PlayerId parameter to request properties for all player sessions -// of a specified player. +// Retrieves a set of one or more game sessions. Request a specific game session +// or request all game sessions on a fleet. Alternatively, use SearchGameSessions +// to request a set of active game sessions that are filtered by certain criteria. +// To retrieve protection policy settings for game sessions, use DescribeGameSessionDetails. // -// To get game session record(s), specify only one of the following: a player -// session ID, a game session ID, or a player ID. You can filter this request -// by player session status. Use the pagination parameters to retrieve results -// as a set of sequential pages. If successful, a PlayerSession object is returned -// for each session matching the request. +// To get game sessions, specify one of the following: game session ID, fleet +// ID, or alias ID. You can filter this request by game session status. Use +// the pagination parameters to retrieve results as a set of sequential pages. +// If successful, a GameSession object is returned for each game session matching +// the request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon GameLift's -// API operation DescribePlayerSessions for usage and error information. +// API operation DescribeGameSessions for usage and error information. // // Returned Error Codes: -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -func (c *GameLift) DescribePlayerSessions(input *DescribePlayerSessionsInput) (*DescribePlayerSessionsOutput, error) { - req, out := c.DescribePlayerSessionsRequest(input) - err := req.Send() - return out, err -} - -const opDescribeRuntimeConfiguration = "DescribeRuntimeConfiguration" - +// * ErrCodeTerminalRoutingStrategyException "TerminalRoutingStrategyException" +// The service is unable to resolve the routing for a particular alias because +// it has a terminal RoutingStrategy associated with it. The message returned +// in this exception is the message defined in the routing strategy itself. +// Such requests should only be retried if the routing strategy for the specified +// alias is modified. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessions +func (c *GameLift) DescribeGameSessions(input *DescribeGameSessionsInput) (*DescribeGameSessionsOutput, error) { + req, out := c.DescribeGameSessionsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeInstances = "DescribeInstances" + +// DescribeInstancesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeInstances operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeInstances for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeInstances method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeInstancesRequest method. +// req, resp := client.DescribeInstancesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeInstances +func (c *GameLift) DescribeInstancesRequest(input *DescribeInstancesInput) (req *request.Request, output *DescribeInstancesOutput) { + op := &request.Operation{ + Name: opDescribeInstances, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeInstancesInput{} + } + + output = &DescribeInstancesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeInstances API operation for Amazon GameLift. +// +// Retrieves information about a fleet's instances, including instance IDs. +// Use this action to get details on all instances in the fleet or get details +// on one specific instance. +// +// To get a specific instance, specify fleet ID and instance ID. To get all +// instances in a fleet, specify a fleet ID only. Use the pagination parameters +// to retrieve results as a set of sequential pages. If successful, an Instance +// object is returned for each result. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DescribeInstances for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedException "UnauthorizedException" +// The client failed authentication. Clients should not retry such requests. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// One or more parameter values in the request are invalid. Correct the invalid +// parameter values before retrying. +// +// * ErrCodeNotFoundException "NotFoundException" +// A service resource associated with the request could not be found. Clients +// should not retry such requests. +// +// * ErrCodeInternalServiceException "InternalServiceException" +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests immediately or after a waiting +// period. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeInstances +func (c *GameLift) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error) { + req, out := c.DescribeInstancesRequest(input) + err := req.Send() + return out, err +} + +const opDescribePlayerSessions = "DescribePlayerSessions" + +// DescribePlayerSessionsRequest generates a "aws/request.Request" representing the +// client's request for the DescribePlayerSessions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribePlayerSessions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribePlayerSessions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribePlayerSessionsRequest method. +// req, resp := client.DescribePlayerSessionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribePlayerSessions +func (c *GameLift) DescribePlayerSessionsRequest(input *DescribePlayerSessionsInput) (req *request.Request, output *DescribePlayerSessionsOutput) { + op := &request.Operation{ + Name: opDescribePlayerSessions, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribePlayerSessionsInput{} + } + + output = &DescribePlayerSessionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribePlayerSessions API operation for Amazon GameLift. +// +// Retrieves properties for one or more player sessions. This action can be +// used in several ways: (1) provide a PlayerSessionId parameter to request +// properties for a specific player session; (2) provide a GameSessionId parameter +// to request properties for all player sessions in the specified game session; +// (3) provide a PlayerId parameter to request properties for all player sessions +// of a specified player. +// +// To get game session record(s), specify only one of the following: a player +// session ID, a game session ID, or a player ID. You can filter this request +// by player session status. Use the pagination parameters to retrieve results +// as a set of sequential pages. If successful, a PlayerSession object is returned +// for each session matching the request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DescribePlayerSessions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests immediately or after a waiting +// period. +// +// * ErrCodeNotFoundException "NotFoundException" +// A service resource associated with the request could not be found. Clients +// should not retry such requests. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// One or more parameter values in the request are invalid. Correct the invalid +// parameter values before retrying. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// The client failed authentication. Clients should not retry such requests. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribePlayerSessions +func (c *GameLift) DescribePlayerSessions(input *DescribePlayerSessionsInput) (*DescribePlayerSessionsOutput, error) { + req, out := c.DescribePlayerSessionsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeRuntimeConfiguration = "DescribeRuntimeConfiguration" + // DescribeRuntimeConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DescribeRuntimeConfiguration operation. The "output" return // value can be used to capture response data after the request's "Send" method @@ -2034,6 +2402,7 @@ const opDescribeRuntimeConfiguration = "DescribeRuntimeConfiguration" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeRuntimeConfiguration func (c *GameLift) DescribeRuntimeConfigurationRequest(input *DescribeRuntimeConfigurationInput) (req *request.Request, output *DescribeRuntimeConfigurationOutput) { op := &request.Operation{ Name: opDescribeRuntimeConfiguration, @@ -2045,17 +2414,16 @@ func (c *GameLift) DescribeRuntimeConfigurationRequest(input *DescribeRuntimeCon input = &DescribeRuntimeConfigurationInput{} } - req = c.newRequest(op, input, output) output = &DescribeRuntimeConfigurationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeRuntimeConfiguration API operation for Amazon GameLift. // // Retrieves the current runtime configuration for the specified fleet. The -// runtime configuration tells GameLift how to launch server processes on instances -// in the fleet. +// runtime configuration tells Amazon GameLift how to launch server processes +// on instances in the fleet. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2065,22 +2433,23 @@ func (c *GameLift) DescribeRuntimeConfigurationRequest(input *DescribeRuntimeCon // API operation DescribeRuntimeConfiguration for usage and error information. // // Returned Error Codes: -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeRuntimeConfiguration func (c *GameLift) DescribeRuntimeConfiguration(input *DescribeRuntimeConfigurationInput) (*DescribeRuntimeConfigurationOutput, error) { req, out := c.DescribeRuntimeConfigurationRequest(input) err := req.Send() @@ -2113,6 +2482,7 @@ const opDescribeScalingPolicies = "DescribeScalingPolicies" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeScalingPolicies func (c *GameLift) DescribeScalingPoliciesRequest(input *DescribeScalingPoliciesInput) (req *request.Request, output *DescribeScalingPoliciesOutput) { op := &request.Operation{ Name: opDescribeScalingPolicies, @@ -2124,9 +2494,8 @@ func (c *GameLift) DescribeScalingPoliciesRequest(input *DescribeScalingPolicies input = &DescribeScalingPoliciesInput{} } - req = c.newRequest(op, input, output) output = &DescribeScalingPoliciesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2134,8 +2503,8 @@ func (c *GameLift) DescribeScalingPoliciesRequest(input *DescribeScalingPolicies // // Retrieves all scaling policies applied to a fleet. // -// To get a fleet's scaling policies, specify the fleet ID. You can filter -// this request by policy status, such as to retrieve only active scaling policies. +// To get a fleet's scaling policies, specify the fleet ID. You can filter this +// request by policy status, such as to retrieve only active scaling policies. // Use the pagination parameters to retrieve results as a set of sequential // pages. If successful, set of ScalingPolicy objects is returned for the fleet. // @@ -2147,22 +2516,23 @@ func (c *GameLift) DescribeScalingPoliciesRequest(input *DescribeScalingPolicies // API operation DescribeScalingPolicies for usage and error information. // // Returned Error Codes: -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeScalingPolicies func (c *GameLift) DescribeScalingPolicies(input *DescribeScalingPoliciesInput) (*DescribeScalingPoliciesOutput, error) { req, out := c.DescribeScalingPoliciesRequest(input) err := req.Send() @@ -2195,6 +2565,7 @@ const opGetGameSessionLogUrl = "GetGameSessionLogUrl" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GetGameSessionLogUrl func (c *GameLift) GetGameSessionLogUrlRequest(input *GetGameSessionLogUrlInput) (req *request.Request, output *GetGameSessionLogUrlOutput) { op := &request.Operation{ Name: opGetGameSessionLogUrl, @@ -2206,9 +2577,8 @@ func (c *GameLift) GetGameSessionLogUrlRequest(input *GetGameSessionLogUrlInput) input = &GetGameSessionLogUrlInput{} } - req = c.newRequest(op, input, output) output = &GetGameSessionLogUrlOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2218,7 +2588,7 @@ func (c *GameLift) GetGameSessionLogUrlRequest(input *GetGameSessionLogUrlInput) // When a game session is terminated, Amazon GameLift automatically stores the // logs in Amazon S3. Use this URL to download the logs. // -// See the AWS Service Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_gamelift) +// See the AWS Service Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_gamelift) // page for maximum log file sizes. Log files that exceed this limit are not // saved. // @@ -2230,28 +2600,122 @@ func (c *GameLift) GetGameSessionLogUrlRequest(input *GetGameSessionLogUrlInput) // API operation GetGameSessionLogUrl for usage and error information. // // Returned Error Codes: -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GetGameSessionLogUrl func (c *GameLift) GetGameSessionLogUrl(input *GetGameSessionLogUrlInput) (*GetGameSessionLogUrlOutput, error) { req, out := c.GetGameSessionLogUrlRequest(input) err := req.Send() return out, err } +const opGetInstanceAccess = "GetInstanceAccess" + +// GetInstanceAccessRequest generates a "aws/request.Request" representing the +// client's request for the GetInstanceAccess operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetInstanceAccess for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetInstanceAccess method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetInstanceAccessRequest method. +// req, resp := client.GetInstanceAccessRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GetInstanceAccess +func (c *GameLift) GetInstanceAccessRequest(input *GetInstanceAccessInput) (req *request.Request, output *GetInstanceAccessOutput) { + op := &request.Operation{ + Name: opGetInstanceAccess, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetInstanceAccessInput{} + } + + output = &GetInstanceAccessOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetInstanceAccess API operation for Amazon GameLift. +// +// Requests remote access to a fleet instance. Remote access is useful for debugging, +// gathering benchmarking data, or watching activity in real time. +// +// Access requires credentials that match the operating system of the instance. +// For a Windows instance, Amazon GameLift returns a user name and password +// as strings for use with a Windows Remote Desktop client. For a Linux instance, +// Amazon GameLift returns a user name and RSA private key, also as strings, +// for use with an SSH client. The private key must be saved in the proper format +// to a .pem file before using. If you're making this request using the AWS +// CLI, saving the secret can be handled as part of the GetInstanceAccess request. +// (See the example later in this topic). For more information on remote access, +// see Remotely Accessing an Instance (http://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-remote-access.html). +// +// To request access to a specific instance, specify the IDs of the instance +// and the fleet it belongs to. If successful, an InstanceAccess object is returned +// containing the instance's IP address and a set of credentials. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation GetInstanceAccess for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedException "UnauthorizedException" +// The client failed authentication. Clients should not retry such requests. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// One or more parameter values in the request are invalid. Correct the invalid +// parameter values before retrying. +// +// * ErrCodeNotFoundException "NotFoundException" +// A service resource associated with the request could not be found. Clients +// should not retry such requests. +// +// * ErrCodeInternalServiceException "InternalServiceException" +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests immediately or after a waiting +// period. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GetInstanceAccess +func (c *GameLift) GetInstanceAccess(input *GetInstanceAccessInput) (*GetInstanceAccessOutput, error) { + req, out := c.GetInstanceAccessRequest(input) + err := req.Send() + return out, err +} + const opListAliases = "ListAliases" // ListAliasesRequest generates a "aws/request.Request" representing the @@ -2278,6 +2742,7 @@ const opListAliases = "ListAliases" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListAliases func (c *GameLift) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, output *ListAliasesOutput) { op := &request.Operation{ Name: opListAliases, @@ -2289,9 +2754,8 @@ func (c *GameLift) ListAliasesRequest(input *ListAliasesInput) (req *request.Req input = &ListAliasesInput{} } - req = c.newRequest(op, input, output) output = &ListAliasesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2301,7 +2765,7 @@ func (c *GameLift) ListAliasesRequest(input *ListAliasesInput) (req *request.Req // the result set by alias name and/or routing strategy type. Use the pagination // parameters to retrieve results in sequential pages. // -// Aliases are not listed in any particular order. +// Aliases are not listed in any particular order. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2311,18 +2775,19 @@ func (c *GameLift) ListAliasesRequest(input *ListAliasesInput) (req *request.Req // API operation ListAliases for usage and error information. // // Returned Error Codes: -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListAliases func (c *GameLift) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error) { req, out := c.ListAliasesRequest(input) err := req.Send() @@ -2355,6 +2820,7 @@ const opListBuilds = "ListBuilds" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListBuilds func (c *GameLift) ListBuildsRequest(input *ListBuildsInput) (req *request.Request, output *ListBuildsOutput) { op := &request.Operation{ Name: opListBuilds, @@ -2366,9 +2832,8 @@ func (c *GameLift) ListBuildsRequest(input *ListBuildsInput) (req *request.Reque input = &ListBuildsInput{} } - req = c.newRequest(op, input, output) output = &ListBuildsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2379,7 +2844,7 @@ func (c *GameLift) ListBuildsRequest(input *ListBuildsInput) (req *request.Reque // the Status parameter. Use the pagination parameters to retrieve results in // a set of sequential pages. // -// Build records are not listed in any particular order. +// Build records are not listed in any particular order. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2389,18 +2854,19 @@ func (c *GameLift) ListBuildsRequest(input *ListBuildsInput) (req *request.Reque // API operation ListBuilds for usage and error information. // // Returned Error Codes: -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListBuilds func (c *GameLift) ListBuilds(input *ListBuildsInput) (*ListBuildsOutput, error) { req, out := c.ListBuildsRequest(input) err := req.Send() @@ -2433,6 +2899,7 @@ const opListFleets = "ListFleets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListFleets func (c *GameLift) ListFleetsRequest(input *ListFleetsInput) (req *request.Request, output *ListFleetsOutput) { op := &request.Operation{ Name: opListFleets, @@ -2444,9 +2911,8 @@ func (c *GameLift) ListFleetsRequest(input *ListFleetsInput) (req *request.Reque input = &ListFleetsInput{} } - req = c.newRequest(op, input, output) output = &ListFleetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2456,7 +2922,7 @@ func (c *GameLift) ListFleetsRequest(input *ListFleetsInput) (req *request.Reque // the result set by build ID. Use the pagination parameters to retrieve results // in sequential pages. // -// Fleet records are not listed in any particular order. +// Fleet records are not listed in any particular order. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2466,22 +2932,23 @@ func (c *GameLift) ListFleetsRequest(input *ListFleetsInput) (req *request.Reque // API operation ListFleets for usage and error information. // // Returned Error Codes: -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListFleets func (c *GameLift) ListFleets(input *ListFleetsInput) (*ListFleetsOutput, error) { req, out := c.ListFleetsRequest(input) err := req.Send() @@ -2514,6 +2981,7 @@ const opPutScalingPolicy = "PutScalingPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/PutScalingPolicy func (c *GameLift) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req *request.Request, output *PutScalingPolicyOutput) { op := &request.Operation{ Name: opPutScalingPolicy, @@ -2525,9 +2993,8 @@ func (c *GameLift) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req *r input = &PutScalingPolicyInput{} } - req = c.newRequest(op, input, output) output = &PutScalingPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2541,7 +3008,7 @@ func (c *GameLift) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req *r // // A scaling policy rule statement has the following structure: // -// If [MetricName] is [ComparisonOperator] [Threshold] for [EvaluationPeriods] +// If [MetricName] is [ComparisonOperator][Threshold] for [EvaluationPeriods] // minutes, then [ScalingAdjustmentType] to/by [ScalingAdjustment]. // // For example, this policy: "If the number of idle instances exceeds 20 for @@ -2564,22 +3031,23 @@ func (c *GameLift) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req *r // API operation PutScalingPolicy for usage and error information. // // Returned Error Codes: -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/PutScalingPolicy func (c *GameLift) PutScalingPolicy(input *PutScalingPolicyInput) (*PutScalingPolicyOutput, error) { req, out := c.PutScalingPolicyRequest(input) err := req.Send() @@ -2612,6 +3080,7 @@ const opRequestUploadCredentials = "RequestUploadCredentials" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/RequestUploadCredentials func (c *GameLift) RequestUploadCredentialsRequest(input *RequestUploadCredentialsInput) (req *request.Request, output *RequestUploadCredentialsOutput) { op := &request.Operation{ Name: opRequestUploadCredentials, @@ -2623,27 +3092,16 @@ func (c *GameLift) RequestUploadCredentialsRequest(input *RequestUploadCredentia input = &RequestUploadCredentialsInput{} } - req = c.newRequest(op, input, output) output = &RequestUploadCredentialsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // RequestUploadCredentials API operation for Amazon GameLift. // -// Retrieves a fresh set of upload credentials and the assigned Amazon S3 storage -// location for a specific build. Valid credentials are required to upload your -// game build files to Amazon S3. -// -// Call this action only if you need credentials for a build created with -// CreateBuild . This is a rare situation; in most cases, builds are created -// using the CLI command upload-build, which creates a build record and also -// uploads build files. -// -// Upload credentials are returned when you create the build, but they have -// a limited lifespan. You can get fresh credentials and use them to re-upload -// game files until the status of that build changes to READY. Once this happens, -// you must create a brand new build. +// This API call is not currently in use. Retrieves a fresh set of upload credentials +// and the assigned Amazon S3 storage location for a specific build. Valid credentials +// are required to upload your game build files to Amazon S3. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2653,22 +3111,23 @@ func (c *GameLift) RequestUploadCredentialsRequest(input *RequestUploadCredentia // API operation RequestUploadCredentials for usage and error information. // // Returned Error Codes: -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/RequestUploadCredentials func (c *GameLift) RequestUploadCredentials(input *RequestUploadCredentialsInput) (*RequestUploadCredentialsOutput, error) { req, out := c.RequestUploadCredentialsRequest(input) err := req.Send() @@ -2701,6 +3160,7 @@ const opResolveAlias = "ResolveAlias" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ResolveAlias func (c *GameLift) ResolveAliasRequest(input *ResolveAliasInput) (req *request.Request, output *ResolveAliasOutput) { op := &request.Operation{ Name: opResolveAlias, @@ -2712,9 +3172,8 @@ func (c *GameLift) ResolveAliasRequest(input *ResolveAliasInput) (req *request.R input = &ResolveAliasInput{} } - req = c.newRequest(op, input, output) output = &ResolveAliasOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2730,29 +3189,30 @@ func (c *GameLift) ResolveAliasRequest(input *ResolveAliasInput) (req *request.R // API operation ResolveAlias for usage and error information. // // Returned Error Codes: -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * TerminalRoutingStrategyException +// * ErrCodeTerminalRoutingStrategyException "TerminalRoutingStrategyException" // The service is unable to resolve the routing for a particular alias because // it has a terminal RoutingStrategy associated with it. The message returned // in this exception is the message defined in the routing strategy itself. // Such requests should only be retried if the routing strategy for the specified // alias is modified. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ResolveAlias func (c *GameLift) ResolveAlias(input *ResolveAliasInput) (*ResolveAliasOutput, error) { req, out := c.ResolveAliasRequest(input) err := req.Send() @@ -2785,6 +3245,7 @@ const opSearchGameSessions = "SearchGameSessions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/SearchGameSessions func (c *GameLift) SearchGameSessionsRequest(input *SearchGameSessionsInput) (req *request.Request, output *SearchGameSessionsOutput) { op := &request.Operation{ Name: opSearchGameSessions, @@ -2796,9 +3257,8 @@ func (c *GameLift) SearchGameSessionsRequest(input *SearchGameSessionsInput) (re input = &SearchGameSessionsInput{} } - req = c.newRequest(op, input, output) output = &SearchGameSessionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2813,36 +3273,39 @@ func (c *GameLift) SearchGameSessionsRequest(input *SearchGameSessionsInput) (re // // You can search or sort by the following game session attributes: // -// gameSessionId -- ID value assigned to a game session. This unique value -// is returned in a GameSession object when a new game session is created. +// * gameSessionId -- ID value assigned to a game session. This unique value +// is returned in a GameSession object when a new game session is created. +// // -// gameSessionName -- Name assigned to a game session. This value is set -// when requesting a new game session with CreateGameSession or updating with -// UpdateGameSession. Game session names do not need to be unique to a game -// session. +// * gameSessionName -- Name assigned to a game session. This value is set +// when requesting a new game session with CreateGameSession or updating +// with UpdateGameSession. Game session names do not need to be unique to +// a game session. // -// creationTimeMillis -- Value indicating when a game session was created. -// It is expressed in Unix time as milliseconds. +// * creationTimeMillis -- Value indicating when a game session was created. +// It is expressed in Unix time as milliseconds. // -// playerSessionCount -- Number of players currently connected to a game -// session. This value changes rapidly as players join the session or drop out. +// * playerSessionCount -- Number of players currently connected to a game +// session. This value changes rapidly as players join the session or drop +// out. // -// maximumSessions -- Maximum number of player sessions allowed for a game -// session. This value is set when requesting a new game session with CreateGameSession -// or updating with UpdateGameSession. +// * maximumSessions -- Maximum number of player sessions allowed for a game +// session. This value is set when requesting a new game session with CreateGameSession +// or updating with UpdateGameSession. // -// hasAvailablePlayerSessions -- Boolean value indicating whether or not -// a game session has reached its maximum number of players. When searching -// with this attribute, the search value must be true or false. It is highly -// recommended that all search requests include this filter attribute to optimize -// search performance and return only sessions that players can join. +// * hasAvailablePlayerSessions -- Boolean value indicating whether or not +// a game session has reached its maximum number of players. When searching +// with this attribute, the search value must be true or false. It is highly +// recommended that all search requests include this filter attribute to +// optimize search performance and return only sessions that players can +// join. // -// To search or sort, specify either a fleet ID or an alias ID, and provide +// To search or sort, specify either a fleet ID or an alias ID, and provide // a search filter expression, a sort expression, or both. Use the pagination // parameters to retrieve results as a set of sequential pages. If successful, // a collection of GameSession objects matching the request is returned. // -// Returned values for playerSessionCount and hasAvailablePlayerSessions change +// Returned values for playerSessionCount and hasAvailablePlayerSessions change // quickly as players join sessions and others drop out. Results should be considered // a snapshot in time. Be sure to refresh search results often, and handle sessions // that fill up before a player can join. @@ -2855,54 +3318,243 @@ func (c *GameLift) SearchGameSessionsRequest(input *SearchGameSessionsInput) (re // API operation SearchGameSessions for usage and error information. // // Returned Error Codes: -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * TerminalRoutingStrategyException +// * ErrCodeTerminalRoutingStrategyException "TerminalRoutingStrategyException" // The service is unable to resolve the routing for a particular alias because // it has a terminal RoutingStrategy associated with it. The message returned // in this exception is the message defined in the routing strategy itself. // Such requests should only be retried if the routing strategy for the specified // alias is modified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/SearchGameSessions func (c *GameLift) SearchGameSessions(input *SearchGameSessionsInput) (*SearchGameSessionsOutput, error) { req, out := c.SearchGameSessionsRequest(input) err := req.Send() return out, err } -const opUpdateAlias = "UpdateAlias" +const opStartGameSessionPlacement = "StartGameSessionPlacement" -// UpdateAliasRequest generates a "aws/request.Request" representing the -// client's request for the UpdateAlias operation. The "output" return +// StartGameSessionPlacementRequest generates a "aws/request.Request" representing the +// client's request for the StartGameSessionPlacement operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See UpdateAlias for usage and error information. +// See StartGameSessionPlacement for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the UpdateAlias method directly +// you just want the service response, call the StartGameSessionPlacement method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the UpdateAliasRequest method. +// // Example sending a request using the StartGameSessionPlacementRequest method. +// req, resp := client.StartGameSessionPlacementRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StartGameSessionPlacement +func (c *GameLift) StartGameSessionPlacementRequest(input *StartGameSessionPlacementInput) (req *request.Request, output *StartGameSessionPlacementOutput) { + op := &request.Operation{ + Name: opStartGameSessionPlacement, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartGameSessionPlacementInput{} + } + + output = &StartGameSessionPlacementOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartGameSessionPlacement API operation for Amazon GameLift. +// +// Places a request for a new game session in a queue (see CreateGameSessionQueue). +// When processing a placement request, Amazon GameLift attempts to create a +// new game session on one of the fleets associated with the queue. If no resources +// are available, Amazon GameLift tries again with another and so on until resources +// are found or the placement request times out. A game session placement request +// can also request player sessions. When a new game session is successfully +// created, Amazon GameLift creates a player session for each player included +// in the request. +// +// When placing a game session, by default Amazon GameLift tries each fleet +// in the order they are listed in the queue configuration. Ideally, a queue's +// destinations are listed in preference order. Alternatively, when requesting +// a game session with players, you can also provide latency data for each player +// in relevant regions. Latency data indicates the performance lag a player +// experiences when connected to a fleet in the region. Amazon GameLift uses +// latency data to reorder the list of destinations to place the game session +// in a region with minimal lag. If latency data is provided for multiple players, +// Amazon GameLift calculates each region's average lag for all players and +// reorders to get the best game play across all players. +// +// To place a new game session request, specify the queue name and a set of +// game session properties and settings. Also provide a unique ID (such as a +// UUID) for the placement. You'll use this ID to track the status of the placement +// request. Optionally, provide a set of IDs and player data for each player +// you want to join to the new game session. To optimize game play for the players, +// also provide latency data for all players. If successful, a new game session +// placement is created. To track the status of a placement request, call DescribeGameSessionPlacement +// and check the request's status. If the status is Fulfilled, a new game session +// has been created and a game session ARN and region are referenced. If the +// placement request times out, you have the option of resubmitting the request +// or retrying it with a different queue. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation StartGameSessionPlacement for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests immediately or after a waiting +// period. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// One or more parameter values in the request are invalid. Correct the invalid +// parameter values before retrying. +// +// * ErrCodeNotFoundException "NotFoundException" +// A service resource associated with the request could not be found. Clients +// should not retry such requests. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// The client failed authentication. Clients should not retry such requests. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StartGameSessionPlacement +func (c *GameLift) StartGameSessionPlacement(input *StartGameSessionPlacementInput) (*StartGameSessionPlacementOutput, error) { + req, out := c.StartGameSessionPlacementRequest(input) + err := req.Send() + return out, err +} + +const opStopGameSessionPlacement = "StopGameSessionPlacement" + +// StopGameSessionPlacementRequest generates a "aws/request.Request" representing the +// client's request for the StopGameSessionPlacement operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See StopGameSessionPlacement for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the StopGameSessionPlacement method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the StopGameSessionPlacementRequest method. +// req, resp := client.StopGameSessionPlacementRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StopGameSessionPlacement +func (c *GameLift) StopGameSessionPlacementRequest(input *StopGameSessionPlacementInput) (req *request.Request, output *StopGameSessionPlacementOutput) { + op := &request.Operation{ + Name: opStopGameSessionPlacement, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopGameSessionPlacementInput{} + } + + output = &StopGameSessionPlacementOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopGameSessionPlacement API operation for Amazon GameLift. +// +// Cancels a game session placement that is in Pending status. To stop a placement, +// provide the placement ID values. If successful, the placement is moved to +// Cancelled status. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation StopGameSessionPlacement for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests immediately or after a waiting +// period. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// One or more parameter values in the request are invalid. Correct the invalid +// parameter values before retrying. +// +// * ErrCodeNotFoundException "NotFoundException" +// A service resource associated with the request could not be found. Clients +// should not retry such requests. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// The client failed authentication. Clients should not retry such requests. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StopGameSessionPlacement +func (c *GameLift) StopGameSessionPlacement(input *StopGameSessionPlacementInput) (*StopGameSessionPlacementOutput, error) { + req, out := c.StopGameSessionPlacementRequest(input) + err := req.Send() + return out, err +} + +const opUpdateAlias = "UpdateAlias" + +// UpdateAliasRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAlias operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateAlias for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateAlias method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateAliasRequest method. // req, resp := client.UpdateAliasRequest(params) // // err := req.Send() @@ -2910,6 +3562,7 @@ const opUpdateAlias = "UpdateAlias" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateAlias func (c *GameLift) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, output *UpdateAliasOutput) { op := &request.Operation{ Name: opUpdateAlias, @@ -2921,15 +3574,14 @@ func (c *GameLift) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Req input = &UpdateAliasInput{} } - req = c.newRequest(op, input, output) output = &UpdateAliasOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // UpdateAlias API operation for Amazon GameLift. // -// Updates properties for an alias. To update properties, specify the alias +// Updates properties for a fleet alias. To update properties, specify the alias // ID to be updated and provide the information to be changed. To reassign an // alias to another fleet, provide an updated routing strategy. If successful, // the updated alias record is returned. @@ -2942,22 +3594,23 @@ func (c *GameLift) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Req // API operation UpdateAlias for usage and error information. // // Returned Error Codes: -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateAlias func (c *GameLift) UpdateAlias(input *UpdateAliasInput) (*UpdateAliasOutput, error) { req, out := c.UpdateAliasRequest(input) err := req.Send() @@ -2990,6 +3643,7 @@ const opUpdateBuild = "UpdateBuild" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateBuild func (c *GameLift) UpdateBuildRequest(input *UpdateBuildInput) (req *request.Request, output *UpdateBuildOutput) { op := &request.Operation{ Name: opUpdateBuild, @@ -3001,9 +3655,8 @@ func (c *GameLift) UpdateBuildRequest(input *UpdateBuildInput) (req *request.Req input = &UpdateBuildInput{} } - req = c.newRequest(op, input, output) output = &UpdateBuildOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3022,22 +3675,23 @@ func (c *GameLift) UpdateBuildRequest(input *UpdateBuildInput) (req *request.Req // API operation UpdateBuild for usage and error information. // // Returned Error Codes: -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateBuild func (c *GameLift) UpdateBuild(input *UpdateBuildInput) (*UpdateBuildOutput, error) { req, out := c.UpdateBuildRequest(input) err := req.Send() @@ -3070,6 +3724,7 @@ const opUpdateFleetAttributes = "UpdateFleetAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateFleetAttributes func (c *GameLift) UpdateFleetAttributesRequest(input *UpdateFleetAttributesInput) (req *request.Request, output *UpdateFleetAttributesOutput) { op := &request.Operation{ Name: opUpdateFleetAttributes, @@ -3081,9 +3736,8 @@ func (c *GameLift) UpdateFleetAttributesRequest(input *UpdateFleetAttributesInpu input = &UpdateFleetAttributesInput{} } - req = c.newRequest(op, input, output) output = &UpdateFleetAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3101,36 +3755,37 @@ func (c *GameLift) UpdateFleetAttributesRequest(input *UpdateFleetAttributesInpu // API operation UpdateFleetAttributes for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ConflictException +// * ErrCodeConflictException "ConflictException" // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. // -// * InvalidFleetStatusException +// * ErrCodeInvalidFleetStatusException "InvalidFleetStatusException" // The requested operation would cause a conflict with the current state of // a resource associated with the request and/or the fleet. Resolve the conflict // before retrying. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested operation would cause the resource to exceed the allowed service // limit. Resolve the issue before retrying. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateFleetAttributes func (c *GameLift) UpdateFleetAttributes(input *UpdateFleetAttributesInput) (*UpdateFleetAttributesOutput, error) { req, out := c.UpdateFleetAttributesRequest(input) err := req.Send() @@ -3163,6 +3818,7 @@ const opUpdateFleetCapacity = "UpdateFleetCapacity" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateFleetCapacity func (c *GameLift) UpdateFleetCapacityRequest(input *UpdateFleetCapacityInput) (req *request.Request, output *UpdateFleetCapacityOutput) { op := &request.Operation{ Name: opUpdateFleetCapacity, @@ -3174,9 +3830,8 @@ func (c *GameLift) UpdateFleetCapacityRequest(input *UpdateFleetCapacityInput) ( input = &UpdateFleetCapacityInput{} } - req = c.newRequest(op, input, output) output = &UpdateFleetCapacityOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3206,36 +3861,37 @@ func (c *GameLift) UpdateFleetCapacityRequest(input *UpdateFleetCapacityInput) ( // API operation UpdateFleetCapacity for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ConflictException +// * ErrCodeConflictException "ConflictException" // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested operation would cause the resource to exceed the allowed service // limit. Resolve the issue before retrying. // -// * InvalidFleetStatusException +// * ErrCodeInvalidFleetStatusException "InvalidFleetStatusException" // The requested operation would cause a conflict with the current state of // a resource associated with the request and/or the fleet. Resolve the conflict // before retrying. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateFleetCapacity func (c *GameLift) UpdateFleetCapacity(input *UpdateFleetCapacityInput) (*UpdateFleetCapacityOutput, error) { req, out := c.UpdateFleetCapacityRequest(input) err := req.Send() @@ -3268,6 +3924,7 @@ const opUpdateFleetPortSettings = "UpdateFleetPortSettings" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateFleetPortSettings func (c *GameLift) UpdateFleetPortSettingsRequest(input *UpdateFleetPortSettingsInput) (req *request.Request, output *UpdateFleetPortSettingsOutput) { op := &request.Operation{ Name: opUpdateFleetPortSettings, @@ -3279,9 +3936,8 @@ func (c *GameLift) UpdateFleetPortSettingsRequest(input *UpdateFleetPortSettings input = &UpdateFleetPortSettingsInput{} } - req = c.newRequest(op, input, output) output = &UpdateFleetPortSettingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3302,36 +3958,37 @@ func (c *GameLift) UpdateFleetPortSettingsRequest(input *UpdateFleetPortSettings // API operation UpdateFleetPortSettings for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ConflictException +// * ErrCodeConflictException "ConflictException" // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. // -// * InvalidFleetStatusException +// * ErrCodeInvalidFleetStatusException "InvalidFleetStatusException" // The requested operation would cause a conflict with the current state of // a resource associated with the request and/or the fleet. Resolve the conflict // before retrying. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested operation would cause the resource to exceed the allowed service // limit. Resolve the issue before retrying. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateFleetPortSettings func (c *GameLift) UpdateFleetPortSettings(input *UpdateFleetPortSettingsInput) (*UpdateFleetPortSettingsOutput, error) { req, out := c.UpdateFleetPortSettingsRequest(input) err := req.Send() @@ -3364,6 +4021,7 @@ const opUpdateGameSession = "UpdateGameSession" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateGameSession func (c *GameLift) UpdateGameSessionRequest(input *UpdateGameSessionInput) (req *request.Request, output *UpdateGameSessionOutput) { op := &request.Operation{ Name: opUpdateGameSession, @@ -3375,9 +4033,8 @@ func (c *GameLift) UpdateGameSessionRequest(input *UpdateGameSessionInput) (req input = &UpdateGameSessionInput{} } - req = c.newRequest(op, input, output) output = &UpdateGameSessionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3399,38 +4056,120 @@ func (c *GameLift) UpdateGameSessionRequest(input *UpdateGameSessionInput) (req // API operation UpdateGameSession for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ConflictException +// * ErrCodeConflictException "ConflictException" // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * InvalidGameSessionStatusException +// * ErrCodeInvalidGameSessionStatusException "InvalidGameSessionStatusException" // The requested operation would cause a conflict with the current state of // a resource associated with the request and/or the game instance. Resolve // the conflict before retrying. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateGameSession func (c *GameLift) UpdateGameSession(input *UpdateGameSessionInput) (*UpdateGameSessionOutput, error) { req, out := c.UpdateGameSessionRequest(input) err := req.Send() return out, err } +const opUpdateGameSessionQueue = "UpdateGameSessionQueue" + +// UpdateGameSessionQueueRequest generates a "aws/request.Request" representing the +// client's request for the UpdateGameSessionQueue operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateGameSessionQueue for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateGameSessionQueue method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateGameSessionQueueRequest method. +// req, resp := client.UpdateGameSessionQueueRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateGameSessionQueue +func (c *GameLift) UpdateGameSessionQueueRequest(input *UpdateGameSessionQueueInput) (req *request.Request, output *UpdateGameSessionQueueOutput) { + op := &request.Operation{ + Name: opUpdateGameSessionQueue, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateGameSessionQueueInput{} + } + + output = &UpdateGameSessionQueueOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateGameSessionQueue API operation for Amazon GameLift. +// +// Updates settings for a game session queue, which determines how new game +// session requests in the queue are processed. To update settings, specify +// the queue name to be updated and provide the new settings. When updating +// destinations, provide a complete list of destinations. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation UpdateGameSessionQueue for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests immediately or after a waiting +// period. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// One or more parameter values in the request are invalid. Correct the invalid +// parameter values before retrying. +// +// * ErrCodeNotFoundException "NotFoundException" +// A service resource associated with the request could not be found. Clients +// should not retry such requests. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// The client failed authentication. Clients should not retry such requests. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateGameSessionQueue +func (c *GameLift) UpdateGameSessionQueue(input *UpdateGameSessionQueueInput) (*UpdateGameSessionQueueOutput, error) { + req, out := c.UpdateGameSessionQueueRequest(input) + err := req.Send() + return out, err +} + const opUpdateRuntimeConfiguration = "UpdateRuntimeConfiguration" // UpdateRuntimeConfigurationRequest generates a "aws/request.Request" representing the @@ -3457,6 +4196,7 @@ const opUpdateRuntimeConfiguration = "UpdateRuntimeConfiguration" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateRuntimeConfiguration func (c *GameLift) UpdateRuntimeConfigurationRequest(input *UpdateRuntimeConfigurationInput) (req *request.Request, output *UpdateRuntimeConfigurationOutput) { op := &request.Operation{ Name: opUpdateRuntimeConfiguration, @@ -3468,29 +4208,29 @@ func (c *GameLift) UpdateRuntimeConfigurationRequest(input *UpdateRuntimeConfigu input = &UpdateRuntimeConfigurationInput{} } - req = c.newRequest(op, input, output) output = &UpdateRuntimeConfigurationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // UpdateRuntimeConfiguration API operation for Amazon GameLift. // // Updates the current runtime configuration for the specified fleet, which -// tells GameLift how to launch server processes on instances in the fleet. -// You can update a fleet's runtime configuration at any time after the fleet -// is created; it does not need to be in an ACTIVE status. +// tells Amazon GameLift how to launch server processes on instances in the +// fleet. You can update a fleet's runtime configuration at any time after the +// fleet is created; it does not need to be in an ACTIVE status. // // To update runtime configuration, specify the fleet ID and provide a RuntimeConfiguration // object with the updated collection of server process configurations. // -// Each instance in a GameLift fleet checks regularly for an updated runtime -// configuration and changes how it launches server processes to comply with -// the latest version. Existing server processes are not affected by the update; -// they continue to run until they end, while GameLift simply adds new server -// processes to fit the current runtime configuration. As a result, the runtime -// configuration changes are applied gradually as existing processes shut down -// and new processes are launched in GameLift's normal process recycling activity. +// Each instance in a Amazon GameLift fleet checks regularly for an updated +// runtime configuration and changes how it launches server processes to comply +// with the latest version. Existing server processes are not affected by the +// update; they continue to run until they end, while Amazon GameLift simply +// adds new server processes to fit the current runtime configuration. As a +// result, the runtime configuration changes are applied gradually as existing +// processes shut down and new processes are launched in Amazon GameLift's normal +// process recycling activity. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3500,27 +4240,28 @@ func (c *GameLift) UpdateRuntimeConfigurationRequest(input *UpdateRuntimeConfigu // API operation UpdateRuntimeConfiguration for usage and error information. // // Returned Error Codes: -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // The client failed authentication. Clients should not retry such requests. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * InternalServiceException +// * ErrCodeInternalServiceException "InternalServiceException" // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * InvalidFleetStatusException +// * ErrCodeInvalidFleetStatusException "InvalidFleetStatusException" // The requested operation would cause a conflict with the current state of // a resource associated with the request and/or the fleet. Resolve the conflict // before retrying. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateRuntimeConfiguration func (c *GameLift) UpdateRuntimeConfiguration(input *UpdateRuntimeConfigurationInput) (*UpdateRuntimeConfigurationOutput, error) { req, out := c.UpdateRuntimeConfigurationRequest(input) err := req.Send() @@ -3528,28 +4269,44 @@ func (c *GameLift) UpdateRuntimeConfiguration(input *UpdateRuntimeConfigurationI } // Properties describing a fleet alias. +// +// Alias-related operations include: +// +// * CreateAlias +// +// * ListAliases +// +// * DescribeAlias +// +// * UpdateAlias +// +// * DeleteAlias +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/Alias type Alias struct { _ struct{} `type:"structure"` - // Unique identifier for a fleet alias. + // Unique identifier for an alias; alias ARNs are unique across all regions. + AliasArn *string `min:"1" type:"string"` + + // Unique identifier for an alias; alias IDs are unique within a region. AliasId *string `type:"string"` // Time stamp indicating when this data object was created. Format is a number - // expressed in Unix time as milliseconds (ex: "1469498468.057". + // expressed in Unix time as milliseconds (for example "1469498468.057"). CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` // Human-readable description of an alias. Description *string `type:"string"` // Time stamp indicating when this data object was last modified. Format is - // a number expressed in Unix time as milliseconds (ex: "1469498468.057". + // a number expressed in Unix time as milliseconds (for example "1469498468.057"). LastUpdatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` - // Descriptive label associated with an alias. Alias names do not need to be - // unique. + // Descriptive label that is associated with an alias. Alias names do not need + // to be unique. Name *string `min:"1" type:"string"` - // Routing configuration for a fleet alias. + // Alias configuration for the alias, including routing type and settings. RoutingStrategy *RoutingStrategy `type:"structure"` } @@ -3563,10 +4320,52 @@ func (s Alias) GoString() string { return s.String() } -// AWS access credentials required to upload game build files to Amazon GameLift. -// These credentials are generated with CreateBuild, and are valid for a limited -// time. If they expire before you upload your game build, get a new set by -// calling RequestUploadCredentials. +// SetAliasArn sets the AliasArn field's value. +func (s *Alias) SetAliasArn(v string) *Alias { + s.AliasArn = &v + return s +} + +// SetAliasId sets the AliasId field's value. +func (s *Alias) SetAliasId(v string) *Alias { + s.AliasId = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *Alias) SetCreationTime(v time.Time) *Alias { + s.CreationTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Alias) SetDescription(v string) *Alias { + s.Description = &v + return s +} + +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *Alias) SetLastUpdatedTime(v time.Time) *Alias { + s.LastUpdatedTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *Alias) SetName(v string) *Alias { + s.Name = &v + return s +} + +// SetRoutingStrategy sets the RoutingStrategy field's value. +func (s *Alias) SetRoutingStrategy(v *RoutingStrategy) *Alias { + s.RoutingStrategy = v + return s +} + +// AWS access credentials sometimes used for uploading game build files to Amazon +// GameLift. They are valid for a limited time. If they expire before you upload +// your game build, get a new set by calling RequestUploadCredentials. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/AwsCredentials type AwsCredentials struct { _ struct{} `type:"structure"` @@ -3590,7 +4389,38 @@ func (s AwsCredentials) GoString() string { return s.String() } +// SetAccessKeyId sets the AccessKeyId field's value. +func (s *AwsCredentials) SetAccessKeyId(v string) *AwsCredentials { + s.AccessKeyId = &v + return s +} + +// SetSecretAccessKey sets the SecretAccessKey field's value. +func (s *AwsCredentials) SetSecretAccessKey(v string) *AwsCredentials { + s.SecretAccessKey = &v + return s +} + +// SetSessionToken sets the SessionToken field's value. +func (s *AwsCredentials) SetSessionToken(v string) *AwsCredentials { + s.SessionToken = &v + return s +} + // Properties describing a game build. +// +// Build-related operations include: +// +// * CreateBuild +// +// * ListBuilds +// +// * DescribeBuild +// +// * UpdateBuild +// +// * DeleteBuild +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/Build type Build struct { _ struct{} `type:"structure"` @@ -3598,11 +4428,11 @@ type Build struct { BuildId *string `type:"string"` // Time stamp indicating when this data object was created. Format is a number - // expressed in Unix time as milliseconds (ex: "1469498468.057". + // expressed in Unix time as milliseconds (for example "1469498468.057"). CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` - // Descriptive label associated with a build. Build names do not need to be - // unique. It can be set using CreateBuild or UpdateBuild. + // Descriptive label that is associated with a build. Build names do not need + // to be unique. It can be set using CreateBuild or UpdateBuild. Name *string `type:"string"` // Operating system that the game server binaries are built to run on. This @@ -3617,19 +4447,19 @@ type Build struct { // // Possible build statuses include the following: // - // INITIALIZED – A new build has been defined, but no files have been uploaded. - // You cannot create fleets for builds that are in this status. When a build - // is successfully created, the build status is set to this value. + // * INITIALIZED – A new build has been defined, but no files have been uploaded. + // You cannot create fleets for builds that are in this status. When a build + // is successfully created, the build status is set to this value. // - // READY – The game build has been successfully uploaded. You can now create - // new fleets for this build. + // * READY – The game build has been successfully uploaded. You can now create + // new fleets for this build. // - // FAILED – The game build upload failed. You cannot create new fleets for - // this build. + // * FAILED – The game build upload failed. You cannot create new fleets + // for this build. Status *string `type:"string" enum:"BuildStatus"` - // Version associated with this build. Version strings do not need to be unique - // to a build. This value can be set using CreateBuild or UpdateBuild. + // Version that is associated with this build. Version strings do not need to + // be unique. This value can be set using CreateBuild or UpdateBuild. Version *string `type:"string"` } @@ -3643,20 +4473,63 @@ func (s Build) GoString() string { return s.String() } +// SetBuildId sets the BuildId field's value. +func (s *Build) SetBuildId(v string) *Build { + s.BuildId = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *Build) SetCreationTime(v time.Time) *Build { + s.CreationTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *Build) SetName(v string) *Build { + s.Name = &v + return s +} + +// SetOperatingSystem sets the OperatingSystem field's value. +func (s *Build) SetOperatingSystem(v string) *Build { + s.OperatingSystem = &v + return s +} + +// SetSizeOnDisk sets the SizeOnDisk field's value. +func (s *Build) SetSizeOnDisk(v int64) *Build { + s.SizeOnDisk = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Build) SetStatus(v string) *Build { + s.Status = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *Build) SetVersion(v string) *Build { + s.Version = &v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateAliasInput type CreateAliasInput struct { _ struct{} `type:"structure"` // Human-readable description of an alias. Description *string `min:"1" type:"string"` - // Descriptive label associated with an alias. Alias names do not need to be - // unique. + // Descriptive label that is associated with an alias. Alias names do not need + // to be unique. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` - // Object specifying the fleet and routing type to use for the alias. + // Object that specifies the fleet and routing type to use for the alias. // // RoutingStrategy is a required field RoutingStrategy *RoutingStrategy `type:"structure" required:"true"` @@ -3694,11 +4567,30 @@ func (s *CreateAliasInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateAliasInput) SetDescription(v string) *CreateAliasInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateAliasInput) SetName(v string) *CreateAliasInput { + s.Name = &v + return s +} + +// SetRoutingStrategy sets the RoutingStrategy field's value. +func (s *CreateAliasInput) SetRoutingStrategy(v *RoutingStrategy) *CreateAliasInput { + s.RoutingStrategy = v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateAliasOutput type CreateAliasOutput struct { _ struct{} `type:"structure"` - // Object containing the newly created alias record. + // Object that describes the newly created alias record. Alias *Alias `type:"structure"` } @@ -3712,26 +4604,37 @@ func (s CreateAliasOutput) GoString() string { return s.String() } +// SetAlias sets the Alias field's value. +func (s *CreateAliasOutput) SetAlias(v *Alias) *CreateAliasOutput { + s.Alias = v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateBuildInput type CreateBuildInput struct { _ struct{} `type:"structure"` - // Descriptive label associated with a build. Build names do not need to be - // unique. A build name can be changed later using UpdateBuild . + // Descriptive label that is associated with a build. Build names do not need + // to be unique. You can use UpdateBuild to change this value later. Name *string `min:"1" type:"string"` // Operating system that the game server binaries are built to run on. This // value determines the type of fleet resources that you can use for this build. + // If your game build contains multiple executables, they all must run on the + // same operating system. OperatingSystem *string `type:"string" enum:"OperatingSystem"` - // Location in Amazon Simple Storage Service (Amazon S3) where a build's files - // are stored. This location is assigned in response to a CreateBuild call, - // and is always in the same region as the service used to create the build. - // For more details see the Amazon S3 documentation (http://aws.amazon.com/documentation/s3/). + // Amazon S3 location of the game build files to be uploaded. The S3 bucket + // must be owned by the same AWS account that you're using to manage Amazon + // GameLift. It also must in the same region that you want to create a new build + // in. Before calling CreateBuild with this location, you must allow Amazon + // GameLift to access your Amazon S3 bucket (see Create a Build with Files in + // Amazon S3 (http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-cli-uploading.html#gamelift-build-cli-uploading-create-build)). StorageLocation *S3Location `type:"structure"` - // Version associated with this build. Version strings do not need to be unique - // to a build. A build version can be changed later using UpdateBuild . + // Version that is associated with this build. Version strings do not need to + // be unique. You can use UpdateBuild to change this value later. Version *string `min:"1" type:"string"` } @@ -3766,20 +4669,42 @@ func (s *CreateBuildInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *CreateBuildInput) SetName(v string) *CreateBuildInput { + s.Name = &v + return s +} + +// SetOperatingSystem sets the OperatingSystem field's value. +func (s *CreateBuildInput) SetOperatingSystem(v string) *CreateBuildInput { + s.OperatingSystem = &v + return s +} + +// SetStorageLocation sets the StorageLocation field's value. +func (s *CreateBuildInput) SetStorageLocation(v *S3Location) *CreateBuildInput { + s.StorageLocation = v + return s +} + +// SetVersion sets the Version field's value. +func (s *CreateBuildInput) SetVersion(v string) *CreateBuildInput { + s.Version = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateBuildOutput type CreateBuildOutput struct { _ struct{} `type:"structure"` - // Set of properties for the newly created build. + // The newly created build record, including a unique build ID and status. Build *Build `type:"structure"` - // Amazon S3 path and key, identifying where the game build files are stored. + // Amazon S3 location specified in the request. StorageLocation *S3Location `type:"structure"` - // AWS credentials required when uploading a game build to the storage location. - // These credentials have a limited lifespan and are valid only for the build - // they were issued for. If you need to get fresh credentials, call RequestUploadCredentials - // . + // This element is not currently in use. UploadCredentials *AwsCredentials `type:"structure"` } @@ -3793,13 +4718,32 @@ func (s CreateBuildOutput) GoString() string { return s.String() } -// Represents the input for a request action. +// SetBuild sets the Build field's value. +func (s *CreateBuildOutput) SetBuild(v *Build) *CreateBuildOutput { + s.Build = v + return s +} + +// SetStorageLocation sets the StorageLocation field's value. +func (s *CreateBuildOutput) SetStorageLocation(v *S3Location) *CreateBuildOutput { + s.StorageLocation = v + return s +} + +// SetUploadCredentials sets the UploadCredentials field's value. +func (s *CreateBuildOutput) SetUploadCredentials(v *AwsCredentials) *CreateBuildOutput { + s.UploadCredentials = v + return s +} + +// Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateFleetInput type CreateFleetInput struct { _ struct{} `type:"structure"` - // Unique identifier of the build to be deployed on the new fleet. The build - // must have been successfully uploaded to GameLift and be in a READY status. - // This fleet setting cannot be changed once the fleet is created. + // Unique identifier for a build to be deployed on the new fleet. The build + // must have been successfully uploaded to Amazon GameLift and be in a READY + // status. This fleet setting cannot be changed once the fleet is created. // // BuildId is a required field BuildId *string `type:"string" required:"true"` @@ -3816,24 +4760,21 @@ type CreateFleetInput struct { // Name of an EC2 instance type that is supported in Amazon GameLift. A fleet // instance type determines the computing resources of each instance in the - // fleet, including CPU, memory, storage, and networking capacity. GameLift + // fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift // supports the following EC2 instance types. See Amazon EC2 Instance Types // (http://aws.amazon.com/ec2/instance-types/) for detailed descriptions. // // EC2InstanceType is a required field EC2InstanceType *string `type:"string" required:"true" enum:"EC2InstanceType"` - // Location of default log files. When a server process is shut down, Amazon - // GameLift captures and stores any log files in this location. These logs are - // in addition to game session logs; see more on game session logs in the Amazon - // GameLift Developer Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-api-server-code). - // If no default log path for a fleet is specified, GameLift will automatically - // upload logs stored on each instance at C:\game\logs. Use the GameLift console - // to access stored logs. + // This parameter is no longer used. Instead, to specify where Amazon GameLift + // should store log files once a server process shuts down, use the Amazon GameLift + // server API ProcessReady() and specify one or more directory paths in logParameters. + // See more information in the Server API Reference (http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api-ref.html#gamelift-sdk-server-api-ref-dataypes-process). LogPaths []*string `type:"list"` - // Descriptive label associated with a fleet. Fleet names do not need to be - // unique. + // Descriptive label that is associated with a fleet. Fleet names do not need + // to be unique. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` @@ -3844,11 +4785,11 @@ type CreateFleetInput struct { // this change will only affect sessions created after the policy change. You // can also set protection for individual instances using UpdateGameSession. // - // NoProtection – The game session can be terminated during a scale-down - // event. + // * NoProtection – The game session can be terminated during a scale-down + // event. // - // FullProtection – If the game session is in an ACTIVE status, it cannot - // be terminated during a scale-down event. + // * FullProtection – If the game session is in an ACTIVE status, it cannot + // be terminated during a scale-down event. NewGameSessionProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"` // Policy that limits the number of game sessions an individual player can create @@ -3937,7 +4878,74 @@ func (s *CreateFleetInput) Validate() error { return nil } +// SetBuildId sets the BuildId field's value. +func (s *CreateFleetInput) SetBuildId(v string) *CreateFleetInput { + s.BuildId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateFleetInput) SetDescription(v string) *CreateFleetInput { + s.Description = &v + return s +} + +// SetEC2InboundPermissions sets the EC2InboundPermissions field's value. +func (s *CreateFleetInput) SetEC2InboundPermissions(v []*IpPermission) *CreateFleetInput { + s.EC2InboundPermissions = v + return s +} + +// SetEC2InstanceType sets the EC2InstanceType field's value. +func (s *CreateFleetInput) SetEC2InstanceType(v string) *CreateFleetInput { + s.EC2InstanceType = &v + return s +} + +// SetLogPaths sets the LogPaths field's value. +func (s *CreateFleetInput) SetLogPaths(v []*string) *CreateFleetInput { + s.LogPaths = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateFleetInput) SetName(v string) *CreateFleetInput { + s.Name = &v + return s +} + +// SetNewGameSessionProtectionPolicy sets the NewGameSessionProtectionPolicy field's value. +func (s *CreateFleetInput) SetNewGameSessionProtectionPolicy(v string) *CreateFleetInput { + s.NewGameSessionProtectionPolicy = &v + return s +} + +// SetResourceCreationLimitPolicy sets the ResourceCreationLimitPolicy field's value. +func (s *CreateFleetInput) SetResourceCreationLimitPolicy(v *ResourceCreationLimitPolicy) *CreateFleetInput { + s.ResourceCreationLimitPolicy = v + return s +} + +// SetRuntimeConfiguration sets the RuntimeConfiguration field's value. +func (s *CreateFleetInput) SetRuntimeConfiguration(v *RuntimeConfiguration) *CreateFleetInput { + s.RuntimeConfiguration = v + return s +} + +// SetServerLaunchParameters sets the ServerLaunchParameters field's value. +func (s *CreateFleetInput) SetServerLaunchParameters(v string) *CreateFleetInput { + s.ServerLaunchParameters = &v + return s +} + +// SetServerLaunchPath sets the ServerLaunchPath field's value. +func (s *CreateFleetInput) SetServerLaunchPath(v string) *CreateFleetInput { + s.ServerLaunchPath = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateFleetOutput type CreateFleetOutput struct { _ struct{} `type:"structure"` @@ -3955,34 +4963,39 @@ func (s CreateFleetOutput) GoString() string { return s.String() } +// SetFleetAttributes sets the FleetAttributes field's value. +func (s *CreateFleetOutput) SetFleetAttributes(v *FleetAttributes) *CreateFleetOutput { + s.FleetAttributes = v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateGameSessionInput type CreateGameSessionInput struct { _ struct{} `type:"structure"` - // Unique identifier for a fleet alias. Each request must reference either a - // fleet ID or alias ID, but not both. + // Unique identifier for an alias associated with the fleet to create a game + // session in. Each request must reference either a fleet ID or alias ID, but + // not both. AliasId *string `type:"string"` - // Player ID identifying the person or entity creating the game session. This - // ID is used to enforce a resource protection policy (if one exists) that limits - // the number of concurrent active game sessions one player can have. + // $player-id; or entity creating the game session. This ID is used to enforce + // a resource protection policy (if one exists) that limits the number of concurrent + // active game sessions one player can have. CreatorId *string `min:"1" type:"string"` - // Unique identifier for a fleet. Each request must reference either a fleet - // ID or alias ID, but not both. + // Unique identifier for a fleet to create a game session in. Each request must + // reference either a fleet ID or alias ID, but not both. FleetId *string `type:"string"` - // Set of properties used to administer a game session. These properties are - // passed to the server process hosting it. + // Set of developer-defined properties for a game session. These properties + // are passed to the server process hosting the game session. GameProperties []*GameProperty `type:"list"` // Custom string to include in the game session ID, with a maximum length of - // 48 characters. If this parameter is set, GameLift creates a game session - // ID in the following format: "arn:aws:gamelift:::gamesession/fleet-/". For example, this full game session ID: "arn:aws:gamelift:us-west-2::gamesession/fleet-2ec2aae5-c2c7-43ca-b19d-8249fe5fddf2/my-game-session" - // includes the custom ID string "my-game-session". If this parameter is not - // set, GameLift creates a game session ID in the same format with an auto-generated - // ID string. + // 48 characters. A game session ID has the following format: "arn:aws:gamelift:::gamesession//". If provided, the custom string is used for the game + // session ID string. This value cannot be updated once a game session is created. GameSessionId *string `min:"1" type:"string"` // Maximum number of players that can be connected simultaneously to the game @@ -3991,8 +5004,8 @@ type CreateGameSessionInput struct { // MaximumPlayerSessionCount is a required field MaximumPlayerSessionCount *int64 `type:"integer" required:"true"` - // Descriptive label associated with a game session. Session names do not need - // to be unique. + // Descriptive label that is associated with a game session. Session names do + // not need to be unique. Name *string `min:"1" type:"string"` } @@ -4038,11 +5051,54 @@ func (s *CreateGameSessionInput) Validate() error { return nil } +// SetAliasId sets the AliasId field's value. +func (s *CreateGameSessionInput) SetAliasId(v string) *CreateGameSessionInput { + s.AliasId = &v + return s +} + +// SetCreatorId sets the CreatorId field's value. +func (s *CreateGameSessionInput) SetCreatorId(v string) *CreateGameSessionInput { + s.CreatorId = &v + return s +} + +// SetFleetId sets the FleetId field's value. +func (s *CreateGameSessionInput) SetFleetId(v string) *CreateGameSessionInput { + s.FleetId = &v + return s +} + +// SetGameProperties sets the GameProperties field's value. +func (s *CreateGameSessionInput) SetGameProperties(v []*GameProperty) *CreateGameSessionInput { + s.GameProperties = v + return s +} + +// SetGameSessionId sets the GameSessionId field's value. +func (s *CreateGameSessionInput) SetGameSessionId(v string) *CreateGameSessionInput { + s.GameSessionId = &v + return s +} + +// SetMaximumPlayerSessionCount sets the MaximumPlayerSessionCount field's value. +func (s *CreateGameSessionInput) SetMaximumPlayerSessionCount(v int64) *CreateGameSessionInput { + s.MaximumPlayerSessionCount = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateGameSessionInput) SetName(v string) *CreateGameSessionInput { + s.Name = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateGameSessionOutput type CreateGameSessionOutput struct { _ struct{} `type:"structure"` - // Object containing the newly created game session record. + // Object that describes the newly created game session record. GameSession *GameSession `type:"structure"` } @@ -4056,19 +5112,126 @@ func (s CreateGameSessionOutput) GoString() string { return s.String() } +// SetGameSession sets the GameSession field's value. +func (s *CreateGameSessionOutput) SetGameSession(v *GameSession) *CreateGameSessionOutput { + s.GameSession = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateGameSessionQueueInput +type CreateGameSessionQueueInput struct { + _ struct{} `type:"structure"` + + // List of fleets that can be used to fulfill game session placement requests + // in the queue. Fleets are identified by either a fleet ARN or a fleet alias + // ARN. Destinations are listed in default preference order. + Destinations []*GameSessionQueueDestination `type:"list"` + + // Descriptive label that is associated with queue. Queue names must be unique + // within each region. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // Maximum time, in seconds, that a new game session placement request remains + // in the queue. When a request exceeds this time, the game session placement + // changes to a TIMED_OUT status. + TimeoutInSeconds *int64 `type:"integer"` +} + +// String returns the string representation +func (s CreateGameSessionQueueInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateGameSessionQueueInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateGameSessionQueueInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateGameSessionQueueInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Destinations != nil { + for i, v := range s.Destinations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Destinations", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDestinations sets the Destinations field's value. +func (s *CreateGameSessionQueueInput) SetDestinations(v []*GameSessionQueueDestination) *CreateGameSessionQueueInput { + s.Destinations = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateGameSessionQueueInput) SetName(v string) *CreateGameSessionQueueInput { + s.Name = &v + return s +} + +// SetTimeoutInSeconds sets the TimeoutInSeconds field's value. +func (s *CreateGameSessionQueueInput) SetTimeoutInSeconds(v int64) *CreateGameSessionQueueInput { + s.TimeoutInSeconds = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateGameSessionQueueOutput +type CreateGameSessionQueueOutput struct { + _ struct{} `type:"structure"` + + // Object that describes the newly created game session queue. + GameSessionQueue *GameSessionQueue `type:"structure"` +} + +// String returns the string representation +func (s CreateGameSessionQueueOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateGameSessionQueueOutput) GoString() string { + return s.String() +} + +// SetGameSessionQueue sets the GameSessionQueue field's value. +func (s *CreateGameSessionQueueOutput) SetGameSessionQueue(v *GameSessionQueue) *CreateGameSessionQueueOutput { + s.GameSessionQueue = v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreatePlayerSessionInput type CreatePlayerSessionInput struct { _ struct{} `type:"structure"` - // Unique identifier for the game session to add a player to. Game session ID - // format is as follows: "arn:aws:gamelift:::gamesession/fleet-/". The value of is either a custom ID string (if - // one was specified when the game session was created) an auto-generated string. + // Unique identifier for the game session to add a player to. // // GameSessionId is a required field GameSessionId *string `min:"1" type:"string" required:"true"` - // Unique identifier for the player to be added. + // Developer-defined information related to a player. Amazon GameLift does not + // use this data, so it can be formatted as needed for use in the game. + PlayerData *string `min:"1" type:"string"` + + // Unique identifier for a player. Player IDs are developer-defined. // // PlayerId is a required field PlayerId *string `min:"1" type:"string" required:"true"` @@ -4093,6 +5256,9 @@ func (s *CreatePlayerSessionInput) Validate() error { if s.GameSessionId != nil && len(*s.GameSessionId) < 1 { invalidParams.Add(request.NewErrParamMinLen("GameSessionId", 1)) } + if s.PlayerData != nil && len(*s.PlayerData) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PlayerData", 1)) + } if s.PlayerId == nil { invalidParams.Add(request.NewErrParamRequired("PlayerId")) } @@ -4106,11 +5272,30 @@ func (s *CreatePlayerSessionInput) Validate() error { return nil } +// SetGameSessionId sets the GameSessionId field's value. +func (s *CreatePlayerSessionInput) SetGameSessionId(v string) *CreatePlayerSessionInput { + s.GameSessionId = &v + return s +} + +// SetPlayerData sets the PlayerData field's value. +func (s *CreatePlayerSessionInput) SetPlayerData(v string) *CreatePlayerSessionInput { + s.PlayerData = &v + return s +} + +// SetPlayerId sets the PlayerId field's value. +func (s *CreatePlayerSessionInput) SetPlayerId(v string) *CreatePlayerSessionInput { + s.PlayerId = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreatePlayerSessionOutput type CreatePlayerSessionOutput struct { _ struct{} `type:"structure"` - // Object containing the newly created player session record. + // Object that describes the newly created player session record. PlayerSession *PlayerSession `type:"structure"` } @@ -4124,18 +5309,28 @@ func (s CreatePlayerSessionOutput) GoString() string { return s.String() } +// SetPlayerSession sets the PlayerSession field's value. +func (s *CreatePlayerSessionOutput) SetPlayerSession(v *PlayerSession) *CreatePlayerSessionOutput { + s.PlayerSession = v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreatePlayerSessionsInput type CreatePlayerSessionsInput struct { _ struct{} `type:"structure"` - // Unique identifier for the game session to add players to. Game session ID - // format is as follows: "arn:aws:gamelift:::gamesession/fleet-/". The value of is either a custom ID string (if - // one was specified when the game session was created) an auto-generated string. + // Unique identifier for the game session to add players to. // // GameSessionId is a required field GameSessionId *string `min:"1" type:"string" required:"true"` + // Map of string pairs, each specifying a player ID and a set of developer-defined + // information related to the player. Amazon GameLift does not use this data, + // so it can be formatted as needed for use in the game. Player data strings + // for player IDs not included in the PlayerIds parameter are ignored. + PlayerDataMap map[string]*string `type:"map"` + // List of unique identifiers for the players to be added. // // PlayerIds is a required field @@ -4174,7 +5369,26 @@ func (s *CreatePlayerSessionsInput) Validate() error { return nil } +// SetGameSessionId sets the GameSessionId field's value. +func (s *CreatePlayerSessionsInput) SetGameSessionId(v string) *CreatePlayerSessionsInput { + s.GameSessionId = &v + return s +} + +// SetPlayerDataMap sets the PlayerDataMap field's value. +func (s *CreatePlayerSessionsInput) SetPlayerDataMap(v map[string]*string) *CreatePlayerSessionsInput { + s.PlayerDataMap = v + return s +} + +// SetPlayerIds sets the PlayerIds field's value. +func (s *CreatePlayerSessionsInput) SetPlayerIds(v []*string) *CreatePlayerSessionsInput { + s.PlayerIds = v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreatePlayerSessionsOutput type CreatePlayerSessionsOutput struct { _ struct{} `type:"structure"` @@ -4192,7 +5406,14 @@ func (s CreatePlayerSessionsOutput) GoString() string { return s.String() } +// SetPlayerSessions sets the PlayerSessions field's value. +func (s *CreatePlayerSessionsOutput) SetPlayerSessions(v []*PlayerSession) *CreatePlayerSessionsOutput { + s.PlayerSessions = v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteAliasInput type DeleteAliasInput struct { _ struct{} `type:"structure"` @@ -4225,6 +5446,13 @@ func (s *DeleteAliasInput) Validate() error { return nil } +// SetAliasId sets the AliasId field's value. +func (s *DeleteAliasInput) SetAliasId(v string) *DeleteAliasInput { + s.AliasId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteAliasOutput type DeleteAliasOutput struct { _ struct{} `type:"structure"` } @@ -4240,10 +5468,11 @@ func (s DeleteAliasOutput) GoString() string { } // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteBuildInput type DeleteBuildInput struct { _ struct{} `type:"structure"` - // Unique identifier for the build you want to delete. + // Unique identifier for a build to delete. // // BuildId is a required field BuildId *string `type:"string" required:"true"` @@ -4272,6 +5501,13 @@ func (s *DeleteBuildInput) Validate() error { return nil } +// SetBuildId sets the BuildId field's value. +func (s *DeleteBuildInput) SetBuildId(v string) *DeleteBuildInput { + s.BuildId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteBuildOutput type DeleteBuildOutput struct { _ struct{} `type:"structure"` } @@ -4287,10 +5523,11 @@ func (s DeleteBuildOutput) GoString() string { } // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteFleetInput type DeleteFleetInput struct { _ struct{} `type:"structure"` - // Unique identifier for the fleet you want to delete. + // Unique identifier for a fleet to be deleted. // // FleetId is a required field FleetId *string `type:"string" required:"true"` @@ -4319,6 +5556,13 @@ func (s *DeleteFleetInput) Validate() error { return nil } +// SetFleetId sets the FleetId field's value. +func (s *DeleteFleetInput) SetFleetId(v string) *DeleteFleetInput { + s.FleetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteFleetOutput type DeleteFleetOutput struct { _ struct{} `type:"structure"` } @@ -4333,17 +5577,76 @@ func (s DeleteFleetOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteGameSessionQueueInput +type DeleteGameSessionQueueInput struct { + _ struct{} `type:"structure"` + + // Descriptive label that is associated with queue. Queue names must be unique + // within each region. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteGameSessionQueueInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteGameSessionQueueInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteGameSessionQueueInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteGameSessionQueueInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *DeleteGameSessionQueueInput) SetName(v string) *DeleteGameSessionQueueInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteGameSessionQueueOutput +type DeleteGameSessionQueueOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteGameSessionQueueOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteGameSessionQueueOutput) GoString() string { + return s.String() +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteScalingPolicyInput type DeleteScalingPolicyInput struct { _ struct{} `type:"structure"` - // Unique identifier for a fleet. + // Unique identifier for a fleet to be deleted. // // FleetId is a required field FleetId *string `type:"string" required:"true"` - // Descriptive label associated with a scaling policy. Policy names do not need - // to be unique. + // Descriptive label that is associated with a scaling policy. Policy names + // do not need to be unique. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` @@ -4378,6 +5681,19 @@ func (s *DeleteScalingPolicyInput) Validate() error { return nil } +// SetFleetId sets the FleetId field's value. +func (s *DeleteScalingPolicyInput) SetFleetId(v string) *DeleteScalingPolicyInput { + s.FleetId = &v + return s +} + +// SetName sets the Name field's value. +func (s *DeleteScalingPolicyInput) SetName(v string) *DeleteScalingPolicyInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteScalingPolicyOutput type DeleteScalingPolicyOutput struct { _ struct{} `type:"structure"` } @@ -4393,6 +5709,7 @@ func (s DeleteScalingPolicyOutput) GoString() string { } // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeAliasInput type DescribeAliasInput struct { _ struct{} `type:"structure"` @@ -4425,11 +5742,18 @@ func (s *DescribeAliasInput) Validate() error { return nil } +// SetAliasId sets the AliasId field's value. +func (s *DescribeAliasInput) SetAliasId(v string) *DescribeAliasInput { + s.AliasId = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeAliasOutput type DescribeAliasOutput struct { _ struct{} `type:"structure"` - // Object containing the requested alias. + // Object that contains the requested alias. Alias *Alias `type:"structure"` } @@ -4443,11 +5767,18 @@ func (s DescribeAliasOutput) GoString() string { return s.String() } +// SetAlias sets the Alias field's value. +func (s *DescribeAliasOutput) SetAlias(v *Alias) *DescribeAliasOutput { + s.Alias = v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeBuildInput type DescribeBuildInput struct { _ struct{} `type:"structure"` - // Unique identifier of the build that you want to retrieve properties for. + // Unique identifier for a build to retrieve properties for. // // BuildId is a required field BuildId *string `type:"string" required:"true"` @@ -4476,7 +5807,14 @@ func (s *DescribeBuildInput) Validate() error { return nil } +// SetBuildId sets the BuildId field's value. +func (s *DescribeBuildInput) SetBuildId(v string) *DescribeBuildInput { + s.BuildId = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeBuildOutput type DescribeBuildOutput struct { _ struct{} `type:"structure"` @@ -4494,13 +5832,20 @@ func (s DescribeBuildOutput) GoString() string { return s.String() } +// SetBuild sets the Build field's value. +func (s *DescribeBuildOutput) SetBuild(v *Build) *DescribeBuildOutput { + s.Build = v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeEC2InstanceLimitsInput type DescribeEC2InstanceLimitsInput struct { _ struct{} `type:"structure"` // Name of an EC2 instance type that is supported in Amazon GameLift. A fleet // instance type determines the computing resources of each instance in the - // fleet, including CPU, memory, storage, and networking capacity. GameLift + // fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift // supports the following EC2 instance types. See Amazon EC2 Instance Types // (http://aws.amazon.com/ec2/instance-types/) for detailed descriptions. Leave // this parameter blank to retrieve limits for all types. @@ -4517,11 +5862,18 @@ func (s DescribeEC2InstanceLimitsInput) GoString() string { return s.String() } +// SetEC2InstanceType sets the EC2InstanceType field's value. +func (s *DescribeEC2InstanceLimitsInput) SetEC2InstanceType(v string) *DescribeEC2InstanceLimitsInput { + s.EC2InstanceType = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeEC2InstanceLimitsOutput type DescribeEC2InstanceLimitsOutput struct { _ struct{} `type:"structure"` - // Object containing the maximum number of instances for the specified instance + // Object that contains the maximum number of instances for the specified instance // type. EC2InstanceLimits []*EC2InstanceLimit `type:"list"` } @@ -4536,12 +5888,19 @@ func (s DescribeEC2InstanceLimitsOutput) GoString() string { return s.String() } +// SetEC2InstanceLimits sets the EC2InstanceLimits field's value. +func (s *DescribeEC2InstanceLimitsOutput) SetEC2InstanceLimits(v []*EC2InstanceLimit) *DescribeEC2InstanceLimitsOutput { + s.EC2InstanceLimits = v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetAttributesInput type DescribeFleetAttributesInput struct { _ struct{} `type:"structure"` - // Unique identifiers for the fleet(s) that you want to retrieve attributes - // for. To request attributes for all fleets, leave this parameter empty. + // Unique identifier for a fleet(s) to retrieve attributes for. To request attributes + // for all fleets, leave this parameter empty. FleetIds []*string `min:"1" type:"list"` // Maximum number of results to return. Use this parameter with NextToken to @@ -4549,9 +5908,9 @@ type DescribeFleetAttributesInput struct { // the request specifies one or a list of fleet IDs. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. This parameter is ignored + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. This parameter is ignored // when the request specifies one or a list of fleet IDs. NextToken *string `min:"1" type:"string"` } @@ -4585,7 +5944,26 @@ func (s *DescribeFleetAttributesInput) Validate() error { return nil } +// SetFleetIds sets the FleetIds field's value. +func (s *DescribeFleetAttributesInput) SetFleetIds(v []*string) *DescribeFleetAttributesInput { + s.FleetIds = v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeFleetAttributesInput) SetLimit(v int64) *DescribeFleetAttributesInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeFleetAttributesInput) SetNextToken(v string) *DescribeFleetAttributesInput { + s.NextToken = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetAttributesOutput type DescribeFleetAttributesOutput struct { _ struct{} `type:"structure"` @@ -4593,8 +5971,9 @@ type DescribeFleetAttributesOutput struct { // ID. FleetAttributes []*FleetAttributes `type:"list"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` } @@ -4608,13 +5987,25 @@ func (s DescribeFleetAttributesOutput) GoString() string { return s.String() } +// SetFleetAttributes sets the FleetAttributes field's value. +func (s *DescribeFleetAttributesOutput) SetFleetAttributes(v []*FleetAttributes) *DescribeFleetAttributesOutput { + s.FleetAttributes = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeFleetAttributesOutput) SetNextToken(v string) *DescribeFleetAttributesOutput { + s.NextToken = &v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetCapacityInput type DescribeFleetCapacityInput struct { _ struct{} `type:"structure"` - // Unique identifier for the fleet(s) you want to retrieve capacity information - // for. To request capacity information for all fleets, leave this parameter - // empty. + // Unique identifier for a fleet(s) to retrieve capacity information for. To + // request capacity information for all fleets, leave this parameter empty. FleetIds []*string `min:"1" type:"list"` // Maximum number of results to return. Use this parameter with NextToken to @@ -4622,9 +6013,9 @@ type DescribeFleetCapacityInput struct { // the request specifies one or a list of fleet IDs. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. This parameter is ignored + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. This parameter is ignored // when the request specifies one or a list of fleet IDs. NextToken *string `min:"1" type:"string"` } @@ -4658,7 +6049,26 @@ func (s *DescribeFleetCapacityInput) Validate() error { return nil } +// SetFleetIds sets the FleetIds field's value. +func (s *DescribeFleetCapacityInput) SetFleetIds(v []*string) *DescribeFleetCapacityInput { + s.FleetIds = v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeFleetCapacityInput) SetLimit(v int64) *DescribeFleetCapacityInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeFleetCapacityInput) SetNextToken(v string) *DescribeFleetCapacityInput { + s.NextToken = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetCapacityOutput type DescribeFleetCapacityOutput struct { _ struct{} `type:"structure"` @@ -4667,8 +6077,9 @@ type DescribeFleetCapacityOutput struct { // all fleets. FleetCapacity []*FleetCapacity `type:"list"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` } @@ -4682,16 +6093,29 @@ func (s DescribeFleetCapacityOutput) GoString() string { return s.String() } +// SetFleetCapacity sets the FleetCapacity field's value. +func (s *DescribeFleetCapacityOutput) SetFleetCapacity(v []*FleetCapacity) *DescribeFleetCapacityOutput { + s.FleetCapacity = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeFleetCapacityOutput) SetNextToken(v string) *DescribeFleetCapacityOutput { + s.NextToken = &v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetEventsInput type DescribeFleetEventsInput struct { _ struct{} `type:"structure"` // Most recent date to retrieve event logs for. If no end time is specified, // this call returns entries from the specified start time up to the present. - // Format is a number expressed in Unix time as milliseconds (ex: "1469498468.057". + // Format is a number expressed in Unix time as milliseconds (ex: "1469498468.057"). EndTime *time.Time `type:"timestamp" timestampFormat:"unix"` - // Unique identifier for the fleet to get event logs for. + // Unique identifier for a fleet to get event logs for. // // FleetId is a required field FleetId *string `type:"string" required:"true"` @@ -4700,15 +6124,15 @@ type DescribeFleetEventsInput struct { // get results as a set of sequential pages. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. NextToken *string `min:"1" type:"string"` // Earliest date to retrieve event logs for. If no start time is specified, // this call returns entries starting from when the fleet was created to the // specified end time. Format is a number expressed in Unix time as milliseconds - // (ex: "1469498468.057". + // (ex: "1469498468.057"). StartTime *time.Time `type:"timestamp" timestampFormat:"unix"` } @@ -4741,15 +6165,47 @@ func (s *DescribeFleetEventsInput) Validate() error { return nil } +// SetEndTime sets the EndTime field's value. +func (s *DescribeFleetEventsInput) SetEndTime(v time.Time) *DescribeFleetEventsInput { + s.EndTime = &v + return s +} + +// SetFleetId sets the FleetId field's value. +func (s *DescribeFleetEventsInput) SetFleetId(v string) *DescribeFleetEventsInput { + s.FleetId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeFleetEventsInput) SetLimit(v int64) *DescribeFleetEventsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeFleetEventsInput) SetNextToken(v string) *DescribeFleetEventsInput { + s.NextToken = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeFleetEventsInput) SetStartTime(v time.Time) *DescribeFleetEventsInput { + s.StartTime = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetEventsOutput type DescribeFleetEventsOutput struct { _ struct{} `type:"structure"` // Collection of objects containing event log entries for the specified fleet. Events []*Event `type:"list"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` } @@ -4763,11 +6219,24 @@ func (s DescribeFleetEventsOutput) GoString() string { return s.String() } +// SetEvents sets the Events field's value. +func (s *DescribeFleetEventsOutput) SetEvents(v []*Event) *DescribeFleetEventsOutput { + s.Events = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeFleetEventsOutput) SetNextToken(v string) *DescribeFleetEventsOutput { + s.NextToken = &v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetPortSettingsInput type DescribeFleetPortSettingsInput struct { _ struct{} `type:"structure"` - // Unique identifier for the fleet you want to retrieve port settings for. + // Unique identifier for a fleet to retrieve port settings for. // // FleetId is a required field FleetId *string `type:"string" required:"true"` @@ -4796,11 +6265,18 @@ func (s *DescribeFleetPortSettingsInput) Validate() error { return nil } +// SetFleetId sets the FleetId field's value. +func (s *DescribeFleetPortSettingsInput) SetFleetId(v string) *DescribeFleetPortSettingsInput { + s.FleetId = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetPortSettingsOutput type DescribeFleetPortSettingsOutput struct { _ struct{} `type:"structure"` - // Object containing port settings for the requested fleet ID. + // Object that contains port settings for the requested fleet ID. InboundPermissions []*IpPermission `type:"list"` } @@ -4814,12 +6290,19 @@ func (s DescribeFleetPortSettingsOutput) GoString() string { return s.String() } +// SetInboundPermissions sets the InboundPermissions field's value. +func (s *DescribeFleetPortSettingsOutput) SetInboundPermissions(v []*IpPermission) *DescribeFleetPortSettingsOutput { + s.InboundPermissions = v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetUtilizationInput type DescribeFleetUtilizationInput struct { _ struct{} `type:"structure"` - // Unique identifier for the fleet(s) you want to retrieve utilization data - // for. To request utilization data for all fleets, leave this parameter empty. + // Unique identifier for a fleet(s) to retrieve utilization data for. To request + // utilization data for all fleets, leave this parameter empty. FleetIds []*string `min:"1" type:"list"` // Maximum number of results to return. Use this parameter with NextToken to @@ -4827,9 +6310,9 @@ type DescribeFleetUtilizationInput struct { // the request specifies one or a list of fleet IDs. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. This parameter is ignored + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. This parameter is ignored // when the request specifies one or a list of fleet IDs. NextToken *string `min:"1" type:"string"` } @@ -4863,7 +6346,26 @@ func (s *DescribeFleetUtilizationInput) Validate() error { return nil } +// SetFleetIds sets the FleetIds field's value. +func (s *DescribeFleetUtilizationInput) SetFleetIds(v []*string) *DescribeFleetUtilizationInput { + s.FleetIds = v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeFleetUtilizationInput) SetLimit(v int64) *DescribeFleetUtilizationInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeFleetUtilizationInput) SetNextToken(v string) *DescribeFleetUtilizationInput { + s.NextToken = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetUtilizationOutput type DescribeFleetUtilizationOutput struct { _ struct{} `type:"structure"` @@ -4871,8 +6373,9 @@ type DescribeFleetUtilizationOutput struct { // fleet ID. FleetUtilization []*FleetUtilization `type:"list"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` } @@ -4886,31 +6389,41 @@ func (s DescribeFleetUtilizationOutput) GoString() string { return s.String() } +// SetFleetUtilization sets the FleetUtilization field's value. +func (s *DescribeFleetUtilizationOutput) SetFleetUtilization(v []*FleetUtilization) *DescribeFleetUtilizationOutput { + s.FleetUtilization = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeFleetUtilizationOutput) SetNextToken(v string) *DescribeFleetUtilizationOutput { + s.NextToken = &v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionDetailsInput type DescribeGameSessionDetailsInput struct { _ struct{} `type:"structure"` - // Unique identifier for a fleet alias. Specify an alias to retrieve information - // on all game sessions active on the fleet. + // Unique identifier for an alias associated with the fleet to retrieve all + // game sessions for. AliasId *string `type:"string"` - // Unique identifier for a fleet. Specify a fleet to retrieve information on - // all game sessions active on the fleet. + // Unique identifier for a fleet to retrieve all game sessions active on the + // fleet. FleetId *string `type:"string"` - // Unique identifier for the game session to retrieve information on. Game session - // ID format is as follows: "arn:aws:gamelift:::gamesession/fleet-/". The value of is either a custom ID string (if - // one was specified when the game session was created) an auto-generated string. + // Unique identifier for the game session to retrieve. GameSessionId *string `min:"1" type:"string"` // Maximum number of results to return. Use this parameter with NextToken to // get results as a set of sequential pages. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. NextToken *string `min:"1" type:"string"` // Game session status to filter results on. Possible game session statuses @@ -4951,20 +6464,58 @@ func (s *DescribeGameSessionDetailsInput) Validate() error { return nil } -// Represents the returned data in response to a request action. -type DescribeGameSessionDetailsOutput struct { - _ struct{} `type:"structure"` +// SetAliasId sets the AliasId field's value. +func (s *DescribeGameSessionDetailsInput) SetAliasId(v string) *DescribeGameSessionDetailsInput { + s.AliasId = &v + return s +} - // Collection of objects containing game session properties and the protection - // policy currently in force for each session matching the request. - GameSessionDetails []*GameSessionDetail `type:"list"` +// SetFleetId sets the FleetId field's value. +func (s *DescribeGameSessionDetailsInput) SetFleetId(v string) *DescribeGameSessionDetailsInput { + s.FleetId = &v + return s +} - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. - NextToken *string `min:"1" type:"string"` +// SetGameSessionId sets the GameSessionId field's value. +func (s *DescribeGameSessionDetailsInput) SetGameSessionId(v string) *DescribeGameSessionDetailsInput { + s.GameSessionId = &v + return s } -// String returns the string representation +// SetLimit sets the Limit field's value. +func (s *DescribeGameSessionDetailsInput) SetLimit(v int64) *DescribeGameSessionDetailsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeGameSessionDetailsInput) SetNextToken(v string) *DescribeGameSessionDetailsInput { + s.NextToken = &v + return s +} + +// SetStatusFilter sets the StatusFilter field's value. +func (s *DescribeGameSessionDetailsInput) SetStatusFilter(v string) *DescribeGameSessionDetailsInput { + s.StatusFilter = &v + return s +} + +// Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionDetailsOutput +type DescribeGameSessionDetailsOutput struct { + _ struct{} `type:"structure"` + + // Collection of objects containing game session properties and the protection + // policy currently in force for each session matching the request. + GameSessionDetails []*GameSessionDetail `type:"list"` + + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation func (s DescribeGameSessionDetailsOutput) String() string { return awsutil.Prettify(s) } @@ -4974,31 +6525,203 @@ func (s DescribeGameSessionDetailsOutput) GoString() string { return s.String() } +// SetGameSessionDetails sets the GameSessionDetails field's value. +func (s *DescribeGameSessionDetailsOutput) SetGameSessionDetails(v []*GameSessionDetail) *DescribeGameSessionDetailsOutput { + s.GameSessionDetails = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeGameSessionDetailsOutput) SetNextToken(v string) *DescribeGameSessionDetailsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionPlacementInput +type DescribeGameSessionPlacementInput struct { + _ struct{} `type:"structure"` + + // Unique identifier for a game session placement to retrieve. + // + // PlacementId is a required field + PlacementId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeGameSessionPlacementInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeGameSessionPlacementInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeGameSessionPlacementInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeGameSessionPlacementInput"} + if s.PlacementId == nil { + invalidParams.Add(request.NewErrParamRequired("PlacementId")) + } + if s.PlacementId != nil && len(*s.PlacementId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PlacementId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPlacementId sets the PlacementId field's value. +func (s *DescribeGameSessionPlacementInput) SetPlacementId(v string) *DescribeGameSessionPlacementInput { + s.PlacementId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionPlacementOutput +type DescribeGameSessionPlacementOutput struct { + _ struct{} `type:"structure"` + + // Object that describes the requested game session placement. + GameSessionPlacement *GameSessionPlacement `type:"structure"` +} + +// String returns the string representation +func (s DescribeGameSessionPlacementOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeGameSessionPlacementOutput) GoString() string { + return s.String() +} + +// SetGameSessionPlacement sets the GameSessionPlacement field's value. +func (s *DescribeGameSessionPlacementOutput) SetGameSessionPlacement(v *GameSessionPlacement) *DescribeGameSessionPlacementOutput { + s.GameSessionPlacement = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionQueuesInput +type DescribeGameSessionQueuesInput struct { + _ struct{} `type:"structure"` + + // Maximum number of results to return. Use this parameter with NextToken to + // get results as a set of sequential pages. + Limit *int64 `min:"1" type:"integer"` + + // List of queue names to retrieve information for. To request settings for + // all queues, leave this parameter empty. + Names []*string `type:"list"` + + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeGameSessionQueuesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeGameSessionQueuesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeGameSessionQueuesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeGameSessionQueuesInput"} + if s.Limit != nil && *s.Limit < 1 { + invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLimit sets the Limit field's value. +func (s *DescribeGameSessionQueuesInput) SetLimit(v int64) *DescribeGameSessionQueuesInput { + s.Limit = &v + return s +} + +// SetNames sets the Names field's value. +func (s *DescribeGameSessionQueuesInput) SetNames(v []*string) *DescribeGameSessionQueuesInput { + s.Names = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeGameSessionQueuesInput) SetNextToken(v string) *DescribeGameSessionQueuesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionQueuesOutput +type DescribeGameSessionQueuesOutput struct { + _ struct{} `type:"structure"` + + // Collection of objects that describes the requested game session queues. + GameSessionQueues []*GameSessionQueue `type:"list"` + + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeGameSessionQueuesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeGameSessionQueuesOutput) GoString() string { + return s.String() +} + +// SetGameSessionQueues sets the GameSessionQueues field's value. +func (s *DescribeGameSessionQueuesOutput) SetGameSessionQueues(v []*GameSessionQueue) *DescribeGameSessionQueuesOutput { + s.GameSessionQueues = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeGameSessionQueuesOutput) SetNextToken(v string) *DescribeGameSessionQueuesOutput { + s.NextToken = &v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionsInput type DescribeGameSessionsInput struct { _ struct{} `type:"structure"` - // Unique identifier for a fleet alias. Specify an alias to retrieve information - // on all game sessions active on the fleet. + // Unique identifier for an alias associated with the fleet to retrieve all + // game sessions for. AliasId *string `type:"string"` - // Unique identifier for a fleet. Specify a fleet to retrieve information on - // all game sessions active on the fleet. + // Unique identifier for a fleet to retrieve all game sessions for. FleetId *string `type:"string"` - // Unique identifier for the game session to retrieve information on. Game session - // ID format is as follows: "arn:aws:gamelift:::gamesession/fleet-/". The value of is either a custom ID string (if - // one was specified when the game session was created) an auto-generated string. + // Unique identifier for the game session to retrieve. GameSessionId *string `min:"1" type:"string"` // Maximum number of results to return. Use this parameter with NextToken to // get results as a set of sequential pages. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. NextToken *string `min:"1" type:"string"` // Game session status to filter results on. Possible game session statuses @@ -5039,7 +6762,44 @@ func (s *DescribeGameSessionsInput) Validate() error { return nil } +// SetAliasId sets the AliasId field's value. +func (s *DescribeGameSessionsInput) SetAliasId(v string) *DescribeGameSessionsInput { + s.AliasId = &v + return s +} + +// SetFleetId sets the FleetId field's value. +func (s *DescribeGameSessionsInput) SetFleetId(v string) *DescribeGameSessionsInput { + s.FleetId = &v + return s +} + +// SetGameSessionId sets the GameSessionId field's value. +func (s *DescribeGameSessionsInput) SetGameSessionId(v string) *DescribeGameSessionsInput { + s.GameSessionId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeGameSessionsInput) SetLimit(v int64) *DescribeGameSessionsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeGameSessionsInput) SetNextToken(v string) *DescribeGameSessionsInput { + s.NextToken = &v + return s +} + +// SetStatusFilter sets the StatusFilter field's value. +func (s *DescribeGameSessionsInput) SetStatusFilter(v string) *DescribeGameSessionsInput { + s.StatusFilter = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionsOutput type DescribeGameSessionsOutput struct { _ struct{} `type:"structure"` @@ -5047,8 +6807,9 @@ type DescribeGameSessionsOutput struct { // matching the request. GameSessions []*GameSession `type:"list"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` } @@ -5062,27 +6823,39 @@ func (s DescribeGameSessionsOutput) GoString() string { return s.String() } +// SetGameSessions sets the GameSessions field's value. +func (s *DescribeGameSessionsOutput) SetGameSessions(v []*GameSession) *DescribeGameSessionsOutput { + s.GameSessions = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeGameSessionsOutput) SetNextToken(v string) *DescribeGameSessionsOutput { + s.NextToken = &v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeInstancesInput type DescribeInstancesInput struct { _ struct{} `type:"structure"` - // Unique identifier for a fleet. Specify the fleet to retrieve instance information - // for. + // Unique identifier for a fleet to retrieve instance information for. // // FleetId is a required field FleetId *string `type:"string" required:"true"` - // Unique identifier for an instance. Specify an instance to retrieve information - // for or leave blank to get information on all instances in the fleet. + // Unique identifier for an instance to retrieve. Specify an instance ID or + // leave blank to retrieve all instances in the fleet. InstanceId *string `type:"string"` // Maximum number of results to return. Use this parameter with NextToken to // get results as a set of sequential pages. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. NextToken *string `min:"1" type:"string"` } @@ -5115,15 +6888,41 @@ func (s *DescribeInstancesInput) Validate() error { return nil } +// SetFleetId sets the FleetId field's value. +func (s *DescribeInstancesInput) SetFleetId(v string) *DescribeInstancesInput { + s.FleetId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeInstancesInput) SetInstanceId(v string) *DescribeInstancesInput { + s.InstanceId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeInstancesInput) SetLimit(v int64) *DescribeInstancesInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstancesInput) SetNextToken(v string) *DescribeInstancesInput { + s.NextToken = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeInstancesOutput type DescribeInstancesOutput struct { _ struct{} `type:"structure"` // Collection of objects containing properties for each instance returned. Instances []*Instance `type:"list"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` } @@ -5137,14 +6936,24 @@ func (s DescribeInstancesOutput) GoString() string { return s.String() } +// SetInstances sets the Instances field's value. +func (s *DescribeInstancesOutput) SetInstances(v []*Instance) *DescribeInstancesOutput { + s.Instances = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstancesOutput) SetNextToken(v string) *DescribeInstancesOutput { + s.NextToken = &v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribePlayerSessionsInput type DescribePlayerSessionsInput struct { _ struct{} `type:"structure"` - // Unique identifier for the game session to get player sessions for.Game session - // ID format is as follows: "arn:aws:gamelift:::gamesession/fleet-/". The value of is either a custom ID string (if - // one was specified when the game session was created) an auto-generated string. + // Unique identifier for the game session to retrieve player sessions for. GameSessionId *string `min:"1" type:"string"` // Maximum number of results to return. Use this parameter with NextToken to @@ -5152,32 +6961,32 @@ type DescribePlayerSessionsInput struct { // this parameter is ignored. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. If a player session ID is - // specified, this parameter is ignored. + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. If a player session + // ID is specified, this parameter is ignored. NextToken *string `min:"1" type:"string"` - // Unique identifier for a player. + // Unique identifier for a player to retrieve player sessions for. PlayerId *string `min:"1" type:"string"` - // Unique identifier for a player session. + // Unique identifier for a player session to retrieve. PlayerSessionId *string `type:"string"` // Player session status to filter results on. // // Possible player session statuses include the following: // - // RESERVED – The player session request has been received, but the player - // has not yet connected to the server process and/or been validated. + // * RESERVED – The player session request has been received, but the player + // has not yet connected to the server process and/or been validated. // - // ACTIVE – The player has been validated by the server process and is currently - // connected. + // * ACTIVE – The player has been validated by the server process and is + // currently connected. // - // COMPLETED – The player connection has been dropped. + // * COMPLETED – The player connection has been dropped. // - // TIMEDOUT – A player session request was received, but the player did - // not connect and/or was not validated within the time-out limit (60 seconds). + // * TIMEDOUT – A player session request was received, but the player did + // not connect and/or was not validated within the time-out limit (60 seconds). PlayerSessionStatusFilter *string `min:"1" type:"string"` } @@ -5216,12 +7025,50 @@ func (s *DescribePlayerSessionsInput) Validate() error { return nil } +// SetGameSessionId sets the GameSessionId field's value. +func (s *DescribePlayerSessionsInput) SetGameSessionId(v string) *DescribePlayerSessionsInput { + s.GameSessionId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribePlayerSessionsInput) SetLimit(v int64) *DescribePlayerSessionsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribePlayerSessionsInput) SetNextToken(v string) *DescribePlayerSessionsInput { + s.NextToken = &v + return s +} + +// SetPlayerId sets the PlayerId field's value. +func (s *DescribePlayerSessionsInput) SetPlayerId(v string) *DescribePlayerSessionsInput { + s.PlayerId = &v + return s +} + +// SetPlayerSessionId sets the PlayerSessionId field's value. +func (s *DescribePlayerSessionsInput) SetPlayerSessionId(v string) *DescribePlayerSessionsInput { + s.PlayerSessionId = &v + return s +} + +// SetPlayerSessionStatusFilter sets the PlayerSessionStatusFilter field's value. +func (s *DescribePlayerSessionsInput) SetPlayerSessionStatusFilter(v string) *DescribePlayerSessionsInput { + s.PlayerSessionStatusFilter = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribePlayerSessionsOutput type DescribePlayerSessionsOutput struct { _ struct{} `type:"structure"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` // Collection of objects containing properties for each player session that @@ -5239,11 +7086,24 @@ func (s DescribePlayerSessionsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribePlayerSessionsOutput) SetNextToken(v string) *DescribePlayerSessionsOutput { + s.NextToken = &v + return s +} + +// SetPlayerSessions sets the PlayerSessions field's value. +func (s *DescribePlayerSessionsOutput) SetPlayerSessions(v []*PlayerSession) *DescribePlayerSessionsOutput { + s.PlayerSessions = v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeRuntimeConfigurationInput type DescribeRuntimeConfigurationInput struct { _ struct{} `type:"structure"` - // Unique identifier of the fleet to get the runtime configuration for. + // Unique identifier for a fleet to get the runtime configuration for. // // FleetId is a required field FleetId *string `type:"string" required:"true"` @@ -5272,7 +7132,14 @@ func (s *DescribeRuntimeConfigurationInput) Validate() error { return nil } +// SetFleetId sets the FleetId field's value. +func (s *DescribeRuntimeConfigurationInput) SetFleetId(v string) *DescribeRuntimeConfigurationInput { + s.FleetId = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeRuntimeConfigurationOutput type DescribeRuntimeConfigurationOutput struct { _ struct{} `type:"structure"` @@ -5291,12 +7158,18 @@ func (s DescribeRuntimeConfigurationOutput) GoString() string { return s.String() } +// SetRuntimeConfiguration sets the RuntimeConfiguration field's value. +func (s *DescribeRuntimeConfigurationOutput) SetRuntimeConfiguration(v *RuntimeConfiguration) *DescribeRuntimeConfigurationOutput { + s.RuntimeConfiguration = v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeScalingPoliciesInput type DescribeScalingPoliciesInput struct { _ struct{} `type:"structure"` - // Unique identifier for a fleet. Specify the fleet to retrieve scaling policies - // for. + // Unique identifier for a fleet to retrieve scaling policies for. // // FleetId is a required field FleetId *string `type:"string" required:"true"` @@ -5305,28 +7178,28 @@ type DescribeScalingPoliciesInput struct { // get results as a set of sequential pages. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. NextToken *string `min:"1" type:"string"` // Scaling policy status to filter results on. A scaling policy is only in force // when in an ACTIVE status. // - // ACTIVE – The scaling policy is currently in force. + // * ACTIVE – The scaling policy is currently in force. // - // UPDATEREQUESTED – A request to update the scaling policy has been received. + // * UPDATEREQUESTED – A request to update the scaling policy has been received. // - // UPDATING – A change is being made to the scaling policy. + // * UPDATING – A change is being made to the scaling policy. // - // DELETEREQUESTED – A request to delete the scaling policy has been received. + // * DELETEREQUESTED – A request to delete the scaling policy has been received. // - // DELETING – The scaling policy is being deleted. + // * DELETING – The scaling policy is being deleted. // - // DELETED – The scaling policy has been deleted. + // * DELETED – The scaling policy has been deleted. // - // ERROR – An error occurred in creating the policy. It should be removed - // and recreated. + // * ERROR – An error occurred in creating the policy. It should be removed + // and recreated. StatusFilter *string `type:"string" enum:"ScalingStatusType"` } @@ -5359,12 +7232,38 @@ func (s *DescribeScalingPoliciesInput) Validate() error { return nil } +// SetFleetId sets the FleetId field's value. +func (s *DescribeScalingPoliciesInput) SetFleetId(v string) *DescribeScalingPoliciesInput { + s.FleetId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeScalingPoliciesInput) SetLimit(v int64) *DescribeScalingPoliciesInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeScalingPoliciesInput) SetNextToken(v string) *DescribeScalingPoliciesInput { + s.NextToken = &v + return s +} + +// SetStatusFilter sets the StatusFilter field's value. +func (s *DescribeScalingPoliciesInput) SetStatusFilter(v string) *DescribeScalingPoliciesInput { + s.StatusFilter = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeScalingPoliciesOutput type DescribeScalingPoliciesOutput struct { _ struct{} `type:"structure"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` // Collection of objects containing the scaling policies matching the request. @@ -5381,11 +7280,76 @@ func (s DescribeScalingPoliciesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeScalingPoliciesOutput) SetNextToken(v string) *DescribeScalingPoliciesOutput { + s.NextToken = &v + return s +} + +// SetScalingPolicies sets the ScalingPolicies field's value. +func (s *DescribeScalingPoliciesOutput) SetScalingPolicies(v []*ScalingPolicy) *DescribeScalingPoliciesOutput { + s.ScalingPolicies = v + return s +} + +// Player information for use when creating player sessions using a game session +// placement request with StartGameSessionPlacement. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DesiredPlayerSession +type DesiredPlayerSession struct { + _ struct{} `type:"structure"` + + // Developer-defined information related to a player. Amazon GameLift does not + // use this data, so it can be formatted as needed for use in the game. + PlayerData *string `min:"1" type:"string"` + + // Unique identifier for a player to associate with the player session. + PlayerId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DesiredPlayerSession) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DesiredPlayerSession) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DesiredPlayerSession) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DesiredPlayerSession"} + if s.PlayerData != nil && len(*s.PlayerData) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PlayerData", 1)) + } + if s.PlayerId != nil && len(*s.PlayerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PlayerId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPlayerData sets the PlayerData field's value. +func (s *DesiredPlayerSession) SetPlayerData(v string) *DesiredPlayerSession { + s.PlayerData = &v + return s +} + +// SetPlayerId sets the PlayerId field's value. +func (s *DesiredPlayerSession) SetPlayerId(v string) *DesiredPlayerSession { + s.PlayerId = &v + return s +} + // Current status of fleet capacity. The number of active instances should match // or be in the process of matching the number of desired instances. Pending // and terminating counts are non-zero only if fleet capacity is adjusting to // an UpdateFleetCapacity request, or if access to resources is temporarily // affected. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/EC2InstanceCounts type EC2InstanceCounts struct { _ struct{} `type:"structure"` @@ -5423,8 +7387,51 @@ func (s EC2InstanceCounts) GoString() string { return s.String() } +// SetACTIVE sets the ACTIVE field's value. +func (s *EC2InstanceCounts) SetACTIVE(v int64) *EC2InstanceCounts { + s.ACTIVE = &v + return s +} + +// SetDESIRED sets the DESIRED field's value. +func (s *EC2InstanceCounts) SetDESIRED(v int64) *EC2InstanceCounts { + s.DESIRED = &v + return s +} + +// SetIDLE sets the IDLE field's value. +func (s *EC2InstanceCounts) SetIDLE(v int64) *EC2InstanceCounts { + s.IDLE = &v + return s +} + +// SetMAXIMUM sets the MAXIMUM field's value. +func (s *EC2InstanceCounts) SetMAXIMUM(v int64) *EC2InstanceCounts { + s.MAXIMUM = &v + return s +} + +// SetMINIMUM sets the MINIMUM field's value. +func (s *EC2InstanceCounts) SetMINIMUM(v int64) *EC2InstanceCounts { + s.MINIMUM = &v + return s +} + +// SetPENDING sets the PENDING field's value. +func (s *EC2InstanceCounts) SetPENDING(v int64) *EC2InstanceCounts { + s.PENDING = &v + return s +} + +// SetTERMINATING sets the TERMINATING field's value. +func (s *EC2InstanceCounts) SetTERMINATING(v int64) *EC2InstanceCounts { + s.TERMINATING = &v + return s +} + // Maximum number of instances allowed based on the Amazon Elastic Compute Cloud // (Amazon EC2) instance type. Instance limits can be retrieved by calling DescribeEC2InstanceLimits. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/EC2InstanceLimit type EC2InstanceLimit struct { _ struct{} `type:"structure"` @@ -5434,7 +7441,7 @@ type EC2InstanceLimit struct { // Name of an EC2 instance type that is supported in Amazon GameLift. A fleet // instance type determines the computing resources of each instance in the - // fleet, including CPU, memory, storage, and networking capacity. GameLift + // fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift // supports the following EC2 instance types. See Amazon EC2 Instance Types // (http://aws.amazon.com/ec2/instance-types/) for detailed descriptions. EC2InstanceType *string `type:"string" enum:"EC2InstanceType"` @@ -5453,8 +7460,28 @@ func (s EC2InstanceLimit) GoString() string { return s.String() } -// Log entry describing an event involving an Amazon GameLift resource (such -// as a fleet). +// SetCurrentInstances sets the CurrentInstances field's value. +func (s *EC2InstanceLimit) SetCurrentInstances(v int64) *EC2InstanceLimit { + s.CurrentInstances = &v + return s +} + +// SetEC2InstanceType sets the EC2InstanceType field's value. +func (s *EC2InstanceLimit) SetEC2InstanceType(v string) *EC2InstanceLimit { + s.EC2InstanceType = &v + return s +} + +// SetInstanceLimit sets the InstanceLimit field's value. +func (s *EC2InstanceLimit) SetInstanceLimit(v int64) *EC2InstanceLimit { + s.InstanceLimit = &v + return s +} + +// Log entry describing an event involving Amazon GameLift resources (such as +// a fleet). In addition to tracking activity, event codes and messages can +// provide additional information for troubleshooting and debugging problems. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/Event type Event struct { _ struct{} `type:"structure"` @@ -5465,13 +7492,13 @@ type Event struct { EventId *string `min:"1" type:"string"` // Time stamp indicating when this event occurred. Format is a number expressed - // in Unix time as milliseconds (ex: "1469498468.057". + // in Unix time as milliseconds (for example "1469498468.057"). EventTime *time.Time `type:"timestamp" timestampFormat:"unix"` // Additional information related to the event. Message *string `min:"1" type:"string"` - // Unique identifier for the resource, such as a fleet ID. + // Unique identifier for an event resource, such as a fleet ID. ResourceId *string `min:"1" type:"string"` } @@ -5485,7 +7512,38 @@ func (s Event) GoString() string { return s.String() } +// SetEventCode sets the EventCode field's value. +func (s *Event) SetEventCode(v string) *Event { + s.EventCode = &v + return s +} + +// SetEventId sets the EventId field's value. +func (s *Event) SetEventId(v string) *Event { + s.EventId = &v + return s +} + +// SetEventTime sets the EventTime field's value. +func (s *Event) SetEventTime(v time.Time) *Event { + s.EventTime = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *Event) SetMessage(v string) *Event { + s.Message = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *Event) SetResourceId(v string) *Event { + s.ResourceId = &v + return s +} + // General properties describing a fleet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/FleetAttributes type FleetAttributes struct { _ struct{} `type:"structure"` @@ -5493,12 +7551,15 @@ type FleetAttributes struct { BuildId *string `type:"string"` // Time stamp indicating when this data object was created. Format is a number - // expressed in Unix time as milliseconds (ex: "1469498468.057". + // expressed in Unix time as milliseconds (for example "1469498468.057"). CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` // Human-readable description of the fleet. Description *string `min:"1" type:"string"` + // Identifier for a fleet that is unique across all regions. + FleetArn *string `min:"1" type:"string"` + // Unique identifier for a fleet. FleetId *string `type:"string"` @@ -5506,23 +7567,24 @@ type FleetAttributes struct { // GameLift captures and stores any log files in this location. These logs are // in addition to game session logs; see more on game session logs in the Amazon // GameLift Developer Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-api-server-code). - // If no default log path for a fleet is specified, GameLift will automatically - // upload logs stored on each instance at C:\game\logs. Use the GameLift console - // to access stored logs. + // If no default log path for a fleet is specified, Amazon GameLift will automatically + // upload logs that are stored on each instance at C:\game\logs (for Windows) + // or /local/game/logs (for Linux). Use the Amazon GameLift console to access + // stored logs. LogPaths []*string `type:"list"` - // Descriptive label associated with a fleet. Fleet names do not need to be - // unique. + // Descriptive label that is associated with a fleet. Fleet names do not need + // to be unique. Name *string `min:"1" type:"string"` // Type of game session protection to set for all new instances started in the // fleet. // - // NoProtection – The game session can be terminated during a scale-down - // event. + // * NoProtection – The game session can be terminated during a scale-down + // event. // - // FullProtection – If the game session is in an ACTIVE status, it cannot - // be terminated during a scale-down event. + // * FullProtection – If the game session is in an ACTIVE status, it cannot + // be terminated during a scale-down event. NewGameSessionProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"` // Operating system of the fleet's computing resources. A fleet's operating @@ -5536,37 +7598,37 @@ type FleetAttributes struct { // Game server launch parameters specified for fleets created prior to 2016-08-04 // (or AWS SDK v. 0.12.16). Server launch parameters for fleets created after - // this date are specified in the fleet's RuntimeConfiguration . + // this date are specified in the fleet's RuntimeConfiguration. ServerLaunchParameters *string `min:"1" type:"string"` // Path to a game server executable in the fleet's build, specified for fleets // created prior to 2016-08-04 (or AWS SDK v. 0.12.16). Server launch paths - // for fleets created after this date are specified in the fleet's RuntimeConfiguration - // . + // for fleets created after this date are specified in the fleet's RuntimeConfiguration. ServerLaunchPath *string `min:"1" type:"string"` // Current status of the fleet. // // Possible fleet statuses include the following: // - // NEW – A new fleet has been defined and desired instances is set to 1. + // * NEW – A new fleet has been defined and desired instances is set to 1. // - // DOWNLOADING/VALIDATING/BUILDING/ACTIVATING – GameLift is setting up the - // new fleet, creating new instances with the game build and starting server - // processes. // - // ACTIVE – Hosts can now accept game sessions. + // * DOWNLOADING/VALIDATING/BUILDING/ACTIVATING – Amazon GameLift is setting + // up the new fleet, creating new instances with the game build and starting + // server processes. // - // ERROR – An error occurred when downloading, validating, building, or - // activating the fleet. + // * ACTIVE – Hosts can now accept game sessions. // - // DELETING – Hosts are responding to a delete fleet request. + // * ERROR – An error occurred when downloading, validating, building, or + // activating the fleet. // - // TERMINATED – The fleet no longer exists. + // * DELETING – Hosts are responding to a delete fleet request. + // + // * TERMINATED – The fleet no longer exists. Status *string `type:"string" enum:"FleetStatus"` // Time stamp indicating when this data object was terminated. Format is a number - // expressed in Unix time as milliseconds (ex: "1469498468.057". + // expressed in Unix time as milliseconds (for example "1469498468.057"). TerminationTime *time.Time `type:"timestamp" timestampFormat:"unix"` } @@ -5580,22 +7642,107 @@ func (s FleetAttributes) GoString() string { return s.String() } -// Information about the fleet's capacity. Fleet capacity is measured in EC2 -// instances. By default, new fleets have a capacity of one instance, but can -// be updated as needed. The maximum number of instances for a fleet is determined -// by the fleet's instance type. -type FleetCapacity struct { - _ struct{} `type:"structure"` +// SetBuildId sets the BuildId field's value. +func (s *FleetAttributes) SetBuildId(v string) *FleetAttributes { + s.BuildId = &v + return s +} - // Unique identifier for a fleet. - FleetId *string `type:"string"` +// SetCreationTime sets the CreationTime field's value. +func (s *FleetAttributes) SetCreationTime(v time.Time) *FleetAttributes { + s.CreationTime = &v + return s +} - // Current status of fleet capacity. - InstanceCounts *EC2InstanceCounts `type:"structure"` +// SetDescription sets the Description field's value. +func (s *FleetAttributes) SetDescription(v string) *FleetAttributes { + s.Description = &v + return s +} - // Name of an EC2 instance type that is supported in Amazon GameLift. A fleet - // instance type determines the computing resources of each instance in the - // fleet, including CPU, memory, storage, and networking capacity. GameLift +// SetFleetArn sets the FleetArn field's value. +func (s *FleetAttributes) SetFleetArn(v string) *FleetAttributes { + s.FleetArn = &v + return s +} + +// SetFleetId sets the FleetId field's value. +func (s *FleetAttributes) SetFleetId(v string) *FleetAttributes { + s.FleetId = &v + return s +} + +// SetLogPaths sets the LogPaths field's value. +func (s *FleetAttributes) SetLogPaths(v []*string) *FleetAttributes { + s.LogPaths = v + return s +} + +// SetName sets the Name field's value. +func (s *FleetAttributes) SetName(v string) *FleetAttributes { + s.Name = &v + return s +} + +// SetNewGameSessionProtectionPolicy sets the NewGameSessionProtectionPolicy field's value. +func (s *FleetAttributes) SetNewGameSessionProtectionPolicy(v string) *FleetAttributes { + s.NewGameSessionProtectionPolicy = &v + return s +} + +// SetOperatingSystem sets the OperatingSystem field's value. +func (s *FleetAttributes) SetOperatingSystem(v string) *FleetAttributes { + s.OperatingSystem = &v + return s +} + +// SetResourceCreationLimitPolicy sets the ResourceCreationLimitPolicy field's value. +func (s *FleetAttributes) SetResourceCreationLimitPolicy(v *ResourceCreationLimitPolicy) *FleetAttributes { + s.ResourceCreationLimitPolicy = v + return s +} + +// SetServerLaunchParameters sets the ServerLaunchParameters field's value. +func (s *FleetAttributes) SetServerLaunchParameters(v string) *FleetAttributes { + s.ServerLaunchParameters = &v + return s +} + +// SetServerLaunchPath sets the ServerLaunchPath field's value. +func (s *FleetAttributes) SetServerLaunchPath(v string) *FleetAttributes { + s.ServerLaunchPath = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *FleetAttributes) SetStatus(v string) *FleetAttributes { + s.Status = &v + return s +} + +// SetTerminationTime sets the TerminationTime field's value. +func (s *FleetAttributes) SetTerminationTime(v time.Time) *FleetAttributes { + s.TerminationTime = &v + return s +} + +// Information about the fleet's capacity. Fleet capacity is measured in EC2 +// instances. By default, new fleets have a capacity of one instance, but can +// be updated as needed. The maximum number of instances for a fleet is determined +// by the fleet's instance type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/FleetCapacity +type FleetCapacity struct { + _ struct{} `type:"structure"` + + // Unique identifier for a fleet. + FleetId *string `type:"string"` + + // Current status of fleet capacity. + InstanceCounts *EC2InstanceCounts `type:"structure"` + + // Name of an EC2 instance type that is supported in Amazon GameLift. A fleet + // instance type determines the computing resources of each instance in the + // fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift // supports the following EC2 instance types. See Amazon EC2 Instance Types // (http://aws.amazon.com/ec2/instance-types/) for detailed descriptions. InstanceType *string `type:"string" enum:"EC2InstanceType"` @@ -5611,8 +7758,27 @@ func (s FleetCapacity) GoString() string { return s.String() } +// SetFleetId sets the FleetId field's value. +func (s *FleetCapacity) SetFleetId(v string) *FleetCapacity { + s.FleetId = &v + return s +} + +// SetInstanceCounts sets the InstanceCounts field's value. +func (s *FleetCapacity) SetInstanceCounts(v *EC2InstanceCounts) *FleetCapacity { + s.InstanceCounts = v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *FleetCapacity) SetInstanceType(v string) *FleetCapacity { + s.InstanceType = &v + return s +} + // Current status of fleet utilization, including the number of game and player // sessions being hosted. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/FleetUtilization type FleetUtilization struct { _ struct{} `type:"structure"` @@ -5646,10 +7812,41 @@ func (s FleetUtilization) GoString() string { return s.String() } +// SetActiveGameSessionCount sets the ActiveGameSessionCount field's value. +func (s *FleetUtilization) SetActiveGameSessionCount(v int64) *FleetUtilization { + s.ActiveGameSessionCount = &v + return s +} + +// SetActiveServerProcessCount sets the ActiveServerProcessCount field's value. +func (s *FleetUtilization) SetActiveServerProcessCount(v int64) *FleetUtilization { + s.ActiveServerProcessCount = &v + return s +} + +// SetCurrentPlayerSessionCount sets the CurrentPlayerSessionCount field's value. +func (s *FleetUtilization) SetCurrentPlayerSessionCount(v int64) *FleetUtilization { + s.CurrentPlayerSessionCount = &v + return s +} + +// SetFleetId sets the FleetId field's value. +func (s *FleetUtilization) SetFleetId(v string) *FleetUtilization { + s.FleetId = &v + return s +} + +// SetMaximumPlayerSessionCount sets the MaximumPlayerSessionCount field's value. +func (s *FleetUtilization) SetMaximumPlayerSessionCount(v int64) *FleetUtilization { + s.MaximumPlayerSessionCount = &v + return s +} + // Set of key-value pairs containing information a server process requires to // set up a game session. This object allows you to pass in any set of data // needed for your game. For more information, see the Amazon GameLift Developer // Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GameProperty type GameProperty struct { _ struct{} `type:"structure"` @@ -5690,58 +7887,72 @@ func (s *GameProperty) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *GameProperty) SetKey(v string) *GameProperty { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *GameProperty) SetValue(v string) *GameProperty { + s.Value = &v + return s +} + // Properties describing a game session. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GameSession type GameSession struct { _ struct{} `type:"structure"` // Time stamp indicating when this data object was created. Format is a number - // expressed in Unix time as milliseconds (ex: "1469498468.057". + // expressed in Unix time as milliseconds (for example "1469498468.057"). CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` - // Player ID of the person or entity that created the game session. This ID - // is used to enforce a resource protection policy (if one exists) that limits - // the number of concurrent active game sessions one player can have. + // Unique identifier for a player. This ID is used to enforce a resource protection + // policy (if one exists), that limits the number of game sessions a player + // can create. CreatorId *string `min:"1" type:"string"` // Number of players currently in the game session. CurrentPlayerSessionCount *int64 `type:"integer"` - // Unique identifier for a fleet. + // Unique identifier for a fleet the game session is running on. FleetId *string `type:"string"` - // Set of custom properties for the game session. + // Set of developer-defined properties for a game session. These properties + // are passed to the server process hosting the game session. GameProperties []*GameProperty `type:"list"` - // Unique identifier for a game session. Game session ID format is as follows: - // "arn:aws:gamelift:::gamesession/fleet-/". The - // value of is either a custom ID string (if one was specified when - // the game session was created) an auto-generated string. + // Unique identifier for the game session. A game session ID has the following + // format: "arn:aws:gamelift:::gamesession//". GameSessionId *string `min:"1" type:"string"` - // IP address of the game session. To connect to a GameLift server process, + // IP address of the game session. To connect to a Amazon GameLift server process, // an app needs both the IP address and port number. IpAddress *string `type:"string"` - // Maximum number of players allowed in the game session. + // Maximum number of players that can be connected simultaneously to the game + // session. MaximumPlayerSessionCount *int64 `type:"integer"` - // Descriptive label associated with a game session. Session names do not need - // to be unique. + // Descriptive label that is associated with a game session. Session names do + // not need to be unique. Name *string `min:"1" type:"string"` // Indicates whether or not the game session is accepting new players. PlayerSessionCreationPolicy *string `type:"string" enum:"PlayerSessionCreationPolicy"` - // Port number for the game session. To connect to a GameLift server process, - // an app needs both the IP address and port number. + // Port number for the game session. To connect to a Amazon GameLift server + // process, an app needs both the IP address and port number. Port *int64 `min:"1" type:"integer"` - // Current status of the game session. A game session must be in an ACTIVE status + // Current status of the game session. A game session must have an ACTIVE status // to have player sessions. Status *string `type:"string" enum:"GameSessionStatus"` // Time stamp indicating when this data object was terminated. Format is a number - // expressed in Unix time as milliseconds (ex: "1469498468.057". + // expressed in Unix time as milliseconds (for example "1469498468.057"). TerminationTime *time.Time `type:"timestamp" timestampFormat:"unix"` } @@ -5755,20 +7966,99 @@ func (s GameSession) GoString() string { return s.String() } -// A game session's properties and the protection policy currently in force. +// SetCreationTime sets the CreationTime field's value. +func (s *GameSession) SetCreationTime(v time.Time) *GameSession { + s.CreationTime = &v + return s +} + +// SetCreatorId sets the CreatorId field's value. +func (s *GameSession) SetCreatorId(v string) *GameSession { + s.CreatorId = &v + return s +} + +// SetCurrentPlayerSessionCount sets the CurrentPlayerSessionCount field's value. +func (s *GameSession) SetCurrentPlayerSessionCount(v int64) *GameSession { + s.CurrentPlayerSessionCount = &v + return s +} + +// SetFleetId sets the FleetId field's value. +func (s *GameSession) SetFleetId(v string) *GameSession { + s.FleetId = &v + return s +} + +// SetGameProperties sets the GameProperties field's value. +func (s *GameSession) SetGameProperties(v []*GameProperty) *GameSession { + s.GameProperties = v + return s +} + +// SetGameSessionId sets the GameSessionId field's value. +func (s *GameSession) SetGameSessionId(v string) *GameSession { + s.GameSessionId = &v + return s +} + +// SetIpAddress sets the IpAddress field's value. +func (s *GameSession) SetIpAddress(v string) *GameSession { + s.IpAddress = &v + return s +} + +// SetMaximumPlayerSessionCount sets the MaximumPlayerSessionCount field's value. +func (s *GameSession) SetMaximumPlayerSessionCount(v int64) *GameSession { + s.MaximumPlayerSessionCount = &v + return s +} + +// SetName sets the Name field's value. +func (s *GameSession) SetName(v string) *GameSession { + s.Name = &v + return s +} + +// SetPlayerSessionCreationPolicy sets the PlayerSessionCreationPolicy field's value. +func (s *GameSession) SetPlayerSessionCreationPolicy(v string) *GameSession { + s.PlayerSessionCreationPolicy = &v + return s +} + +// SetPort sets the Port field's value. +func (s *GameSession) SetPort(v int64) *GameSession { + s.Port = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GameSession) SetStatus(v string) *GameSession { + s.Status = &v + return s +} + +// SetTerminationTime sets the TerminationTime field's value. +func (s *GameSession) SetTerminationTime(v time.Time) *GameSession { + s.TerminationTime = &v + return s +} + +// A game session's properties plus the protection policy currently in force. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GameSessionDetail type GameSessionDetail struct { _ struct{} `type:"structure"` - // Properties describing a game session. + // Object that describes a game session. GameSession *GameSession `type:"structure"` // Current status of protection for the game session. // - // NoProtection – The game session can be terminated during a scale-down - // event. + // * NoProtection – The game session can be terminated during a scale-down + // event. // - // FullProtection – If the game session is in an ACTIVE status, it cannot - // be terminated during a scale-down event. + // * FullProtection – If the game session is in an ACTIVE status, it cannot + // be terminated during a scale-down event. ProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"` } @@ -5782,14 +8072,275 @@ func (s GameSessionDetail) GoString() string { return s.String() } +// SetGameSession sets the GameSession field's value. +func (s *GameSessionDetail) SetGameSession(v *GameSession) *GameSessionDetail { + s.GameSession = v + return s +} + +// SetProtectionPolicy sets the ProtectionPolicy field's value. +func (s *GameSessionDetail) SetProtectionPolicy(v string) *GameSessionDetail { + s.ProtectionPolicy = &v + return s +} + +// Object that describes a StartGameSessionPlacement request. This object includes +// the full details of the original request plus the current status and start/end +// time stamps. +// +// Game session placement-related operations include: +// +// * StartGameSessionPlacement +// +// * DescribeGameSessionPlacement +// +// * StopGameSessionPlacement +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GameSessionPlacement +type GameSessionPlacement struct { + _ struct{} `type:"structure"` + + // Time stamp indicating when this request was completed, cancelled, or timed + // out. + EndTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // Set of developer-defined properties for a game session. These properties + // are passed to the server process hosting the game session. + GameProperties []*GameProperty `type:"list"` + + // Identifier for the game session created by this placement request. This value + // exists only if the game session placement status is Completed. This identifier + // is unique across all regions. + GameSessionArn *string `min:"1" type:"string"` + + // Descriptive label that is associated with a game session. Session names do + // not need to be unique. + GameSessionName *string `min:"1" type:"string"` + + // Descriptive label that is associated with queue. Queue names must be unique + // within each region. + GameSessionQueueName *string `min:"1" type:"string"` + + // Name of the region where the game session created by this placement request + // is running. This value exists only if the game session placement status is + // Completed. + GameSessionRegion *string `min:"1" type:"string"` + + // Maximum number of players that can be connected simultaneously to the game + // session. + MaximumPlayerSessionCount *int64 `type:"integer"` + + // Unique identifier for a game session placement. + PlacementId *string `min:"1" type:"string"` + + // Set of values, expressed in milliseconds, indicating the amount of latency + // that players experience when connected to AWS regions. + PlayerLatencies []*PlayerLatency `type:"list"` + + // Time stamp indicating when this request was placed in the queue. Format is + // a number expressed in Unix time as milliseconds (for example "1469498468.057"). + StartTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // Current status of the game session placement request. + // + // * PENDING – The placement request is currently in the queue waiting to + // be processed. + // + // * FULFILLED – A new game session and player sessions (if requested) have + // been successfully created. Values for GameSessionArn and GameSessionRegion + // are available. + // + // * CANCELLED – The placement request was cancelled with a call to StopGameSessionPlacement. + // + // * TIMED_OUT – A new game session was not successfully created before the + // time limit expired. You can resubmit the placement request as needed. + Status *string `type:"string" enum:"GameSessionPlacementState"` +} + +// String returns the string representation +func (s GameSessionPlacement) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GameSessionPlacement) GoString() string { + return s.String() +} + +// SetEndTime sets the EndTime field's value. +func (s *GameSessionPlacement) SetEndTime(v time.Time) *GameSessionPlacement { + s.EndTime = &v + return s +} + +// SetGameProperties sets the GameProperties field's value. +func (s *GameSessionPlacement) SetGameProperties(v []*GameProperty) *GameSessionPlacement { + s.GameProperties = v + return s +} + +// SetGameSessionArn sets the GameSessionArn field's value. +func (s *GameSessionPlacement) SetGameSessionArn(v string) *GameSessionPlacement { + s.GameSessionArn = &v + return s +} + +// SetGameSessionName sets the GameSessionName field's value. +func (s *GameSessionPlacement) SetGameSessionName(v string) *GameSessionPlacement { + s.GameSessionName = &v + return s +} + +// SetGameSessionQueueName sets the GameSessionQueueName field's value. +func (s *GameSessionPlacement) SetGameSessionQueueName(v string) *GameSessionPlacement { + s.GameSessionQueueName = &v + return s +} + +// SetGameSessionRegion sets the GameSessionRegion field's value. +func (s *GameSessionPlacement) SetGameSessionRegion(v string) *GameSessionPlacement { + s.GameSessionRegion = &v + return s +} + +// SetMaximumPlayerSessionCount sets the MaximumPlayerSessionCount field's value. +func (s *GameSessionPlacement) SetMaximumPlayerSessionCount(v int64) *GameSessionPlacement { + s.MaximumPlayerSessionCount = &v + return s +} + +// SetPlacementId sets the PlacementId field's value. +func (s *GameSessionPlacement) SetPlacementId(v string) *GameSessionPlacement { + s.PlacementId = &v + return s +} + +// SetPlayerLatencies sets the PlayerLatencies field's value. +func (s *GameSessionPlacement) SetPlayerLatencies(v []*PlayerLatency) *GameSessionPlacement { + s.PlayerLatencies = v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *GameSessionPlacement) SetStartTime(v time.Time) *GameSessionPlacement { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GameSessionPlacement) SetStatus(v string) *GameSessionPlacement { + s.Status = &v + return s +} + +// Configuration of a queue used to process game session placement requests. +// The queue configuration identifies the fleets that new game session can be +// placed on, given available resources, and the length of time a request can +// remain in the queue waiting for placement. +// +// Queue-related operations include: +// +// * CreateGameSessionQueue +// +// * DescribeGameSessionQueues +// +// * UpdateGameSessionQueue +// +// * DeleteGameSessionQueue +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GameSessionQueue +type GameSessionQueue struct { + _ struct{} `type:"structure"` + + // List of fleets that can be used to fulfill game session placement requests + // in the queue. Fleets are identified by either a fleet ARN or a fleet alias + // ARN. Destinations are listed in default preference order. + Destinations []*GameSessionQueueDestination `type:"list"` + + // Descriptive label that is associated with queue. Queue names must be unique + // within each region. + Name *string `min:"1" type:"string"` + + // Maximum time, in seconds, that a new game session placement request remains + // in the queue. When a request exceeds this time, the game session placement + // changes to a TIMED_OUT status. + TimeoutInSeconds *int64 `type:"integer"` +} + +// String returns the string representation +func (s GameSessionQueue) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GameSessionQueue) GoString() string { + return s.String() +} + +// SetDestinations sets the Destinations field's value. +func (s *GameSessionQueue) SetDestinations(v []*GameSessionQueueDestination) *GameSessionQueue { + s.Destinations = v + return s +} + +// SetName sets the Name field's value. +func (s *GameSessionQueue) SetName(v string) *GameSessionQueue { + s.Name = &v + return s +} + +// SetTimeoutInSeconds sets the TimeoutInSeconds field's value. +func (s *GameSessionQueue) SetTimeoutInSeconds(v int64) *GameSessionQueue { + s.TimeoutInSeconds = &v + return s +} + +// Fleet designated in a game session queue. Requests for new game sessions +// in the queue are fulfilled by starting a new game session on any destination +// listed for a queue. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GameSessionQueueDestination +type GameSessionQueueDestination struct { + _ struct{} `type:"structure"` + + // Amazon Resource Name (ARN) assigned to fleet or fleet alias. ARNs, which + // include a fleet ID or alias ID and a region name, provide a unique identifier + // across all regions. + DestinationArn *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s GameSessionQueueDestination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GameSessionQueueDestination) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GameSessionQueueDestination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GameSessionQueueDestination"} + if s.DestinationArn != nil && len(*s.DestinationArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DestinationArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDestinationArn sets the DestinationArn field's value. +func (s *GameSessionQueueDestination) SetDestinationArn(v string) *GameSessionQueueDestination { + s.DestinationArn = &v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GetGameSessionLogUrlInput type GetGameSessionLogUrlInput struct { _ struct{} `type:"structure"` - // Unique identifier for the game session to get logs for. Game session ID format - // is as follows: "arn:aws:gamelift:::gamesession/fleet-/". The value of is either a custom ID string (if one was - // specified when the game session was created) an auto-generated string. + // Unique identifier for the game session to get logs for. // // GameSessionId is a required field GameSessionId *string `min:"1" type:"string" required:"true"` @@ -5821,7 +8372,14 @@ func (s *GetGameSessionLogUrlInput) Validate() error { return nil } +// SetGameSessionId sets the GameSessionId field's value. +func (s *GetGameSessionLogUrlInput) SetGameSessionId(v string) *GetGameSessionLogUrlInput { + s.GameSessionId = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GetGameSessionLogUrlOutput type GetGameSessionLogUrlOutput struct { _ struct{} `type:"structure"` @@ -5839,40 +8397,129 @@ func (s GetGameSessionLogUrlOutput) GoString() string { return s.String() } -// Properties describing an instance of a virtual computing resource that is -// hosting game servers. Fleets contain zero or more instances. +// SetPreSignedUrl sets the PreSignedUrl field's value. +func (s *GetGameSessionLogUrlOutput) SetPreSignedUrl(v string) *GetGameSessionLogUrlOutput { + s.PreSignedUrl = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GetInstanceAccessInput +type GetInstanceAccessInput struct { + _ struct{} `type:"structure"` + + // Unique identifier for a fleet that contains the instance you want access + // to. The fleet can be in any of the following statuses: ACTIVATING, ACTIVE, + // or ERROR. Fleets with an ERROR status may be accessible for a short time + // before they are deleted. + // + // FleetId is a required field + FleetId *string `type:"string" required:"true"` + + // Unique identifier for an instance you want to get access to. You can access + // an instance in any status. + // + // InstanceId is a required field + InstanceId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s GetInstanceAccessInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInstanceAccessInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetInstanceAccessInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetInstanceAccessInput"} + if s.FleetId == nil { + invalidParams.Add(request.NewErrParamRequired("FleetId")) + } + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFleetId sets the FleetId field's value. +func (s *GetInstanceAccessInput) SetFleetId(v string) *GetInstanceAccessInput { + s.FleetId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *GetInstanceAccessInput) SetInstanceId(v string) *GetInstanceAccessInput { + s.InstanceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GetInstanceAccessOutput +type GetInstanceAccessOutput struct { + _ struct{} `type:"structure"` + + // Object that contains connection information for a fleet instance, including + // IP address and access credentials. + InstanceAccess *InstanceAccess `type:"structure"` +} + +// String returns the string representation +func (s GetInstanceAccessOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInstanceAccessOutput) GoString() string { + return s.String() +} + +// SetInstanceAccess sets the InstanceAccess field's value. +func (s *GetInstanceAccessOutput) SetInstanceAccess(v *InstanceAccess) *GetInstanceAccessOutput { + s.InstanceAccess = v + return s +} + +// Properties that describe an instance of a virtual computing resource that +// hosts one or more game servers. A fleet contains zero or more instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/Instance type Instance struct { _ struct{} `type:"structure"` // Time stamp indicating when this data object was created. Format is a number - // expressed in Unix time as milliseconds (ex: "1469498468.057"). + // expressed in Unix time as milliseconds (for example "1469498468.057"). CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` - // Unique identifier for the fleet that the instance belongs to. + // Unique identifier for a fleet that the instance is in. FleetId *string `type:"string"` - // Unique identifier for the instance. + // Unique identifier for an instance. InstanceId *string `type:"string"` // IP address assigned to the instance. IpAddress *string `type:"string"` - // Operating system being used on this instance. + // Operating system that is running on this instance. OperatingSystem *string `type:"string" enum:"OperatingSystem"` // Current status of the instance. Possible statuses include the following: // - // PENDING – The instance is in the process of being created and launching - // server processes as defined in the fleet's runtime configuration. + // * PENDING – The instance is in the process of being created and launching + // server processes as defined in the fleet's runtime configuration. // - // ACTIVE – The instance has been successfully created and at least one - // server process has successfully launched and reported back to GameLift that - // it is ready to host a game session. The instance is now considered ready - // to host game sessions. + // * ACTIVE – The instance has been successfully created and at least one + // server process has successfully launched and reported back to Amazon GameLift + // that it is ready to host a game session. The instance is now considered + // ready to host game sessions. // - // TERMINATING – The instance is in the process of shutting down. This may - // happen to reduce capacity during a scaling down event or to recycle resources - // in the event of a problem. + // * TERMINATING – The instance is in the process of shutting down. This + // may happen to reduce capacity during a scaling down event or to recycle + // resources in the event of a problem. Status *string `type:"string" enum:"InstanceStatus"` // EC2 instance type that defines the computing resources of this instance. @@ -5889,11 +8536,154 @@ func (s Instance) GoString() string { return s.String() } -// A range of IP addresses and port settings that allow inbound traffic to connect -// to server processes on GameLift. Each game session hosted on a fleet is assigned -// a unique combination of IP address and port number, which must fall into -// the fleet's allowed ranges. This combination is included in the GameSession +// SetCreationTime sets the CreationTime field's value. +func (s *Instance) SetCreationTime(v time.Time) *Instance { + s.CreationTime = &v + return s +} + +// SetFleetId sets the FleetId field's value. +func (s *Instance) SetFleetId(v string) *Instance { + s.FleetId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *Instance) SetInstanceId(v string) *Instance { + s.InstanceId = &v + return s +} + +// SetIpAddress sets the IpAddress field's value. +func (s *Instance) SetIpAddress(v string) *Instance { + s.IpAddress = &v + return s +} + +// SetOperatingSystem sets the OperatingSystem field's value. +func (s *Instance) SetOperatingSystem(v string) *Instance { + s.OperatingSystem = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Instance) SetStatus(v string) *Instance { + s.Status = &v + return s +} + +// SetType sets the Type field's value. +func (s *Instance) SetType(v string) *Instance { + s.Type = &v + return s +} + +// Information required to remotely connect to a fleet instance. Access is requested +// by calling GetInstanceAccess. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/InstanceAccess +type InstanceAccess struct { + _ struct{} `type:"structure"` + + // Credentials required to access the instance. + Credentials *InstanceCredentials `type:"structure"` + + // Unique identifier for a fleet containing the instance being accessed. + FleetId *string `type:"string"` + + // Unique identifier for an instance being accessed. + InstanceId *string `type:"string"` + + // IP address assigned to the instance. + IpAddress *string `type:"string"` + + // Operating system that is running on the instance. + OperatingSystem *string `type:"string" enum:"OperatingSystem"` +} + +// String returns the string representation +func (s InstanceAccess) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceAccess) GoString() string { + return s.String() +} + +// SetCredentials sets the Credentials field's value. +func (s *InstanceAccess) SetCredentials(v *InstanceCredentials) *InstanceAccess { + s.Credentials = v + return s +} + +// SetFleetId sets the FleetId field's value. +func (s *InstanceAccess) SetFleetId(v string) *InstanceAccess { + s.FleetId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *InstanceAccess) SetInstanceId(v string) *InstanceAccess { + s.InstanceId = &v + return s +} + +// SetIpAddress sets the IpAddress field's value. +func (s *InstanceAccess) SetIpAddress(v string) *InstanceAccess { + s.IpAddress = &v + return s +} + +// SetOperatingSystem sets the OperatingSystem field's value. +func (s *InstanceAccess) SetOperatingSystem(v string) *InstanceAccess { + s.OperatingSystem = &v + return s +} + +// Set of credentials required to remotely access a fleet instance. Access credentials +// are requested by calling GetInstanceAccess and returned in an InstanceAccess // object. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/InstanceCredentials +type InstanceCredentials struct { + _ struct{} `type:"structure"` + + // Secret string. For Windows instances, the secret is a password for use with + // Windows Remote Desktop. For Linux instances, it is a private key (which must + // be saved as a .pem file) for use with SSH. + Secret *string `min:"1" type:"string"` + + // User login string. + UserName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s InstanceCredentials) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceCredentials) GoString() string { + return s.String() +} + +// SetSecret sets the Secret field's value. +func (s *InstanceCredentials) SetSecret(v string) *InstanceCredentials { + s.Secret = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *InstanceCredentials) SetUserName(v string) *InstanceCredentials { + s.UserName = &v + return s +} + +// A range of IP addresses and port settings that allow inbound traffic to connect +// to server processes on Amazon GameLift. Each game session hosted on a fleet +// is assigned a unique combination of IP address and port number, which must +// fall into the fleet's allowed ranges. This combination is included in the +// GameSession object. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/IpPermission type IpPermission struct { _ struct{} `type:"structure"` @@ -5902,9 +8692,9 @@ type IpPermission struct { // FromPort is a required field FromPort *int64 `min:"1" type:"integer" required:"true"` - // Range of allowed IP addresses. This value must be expressed in CIDR notation - // (https://tools.ietf.org/id/cidr). Example: "000.000.000.000/[subnet mask]" - // or optionally the shortened version "0.0.0.0/[subnet mask]". + // Range of allowed IP addresses. This value must be expressed in CIDR notation. + // Example: "000.000.000.000/[subnet mask]" or optionally the shortened version + // "0.0.0.0/[subnet mask]". // // IpRange is a required field IpRange *string `type:"string" required:"true"` @@ -5959,7 +8749,32 @@ func (s *IpPermission) Validate() error { return nil } +// SetFromPort sets the FromPort field's value. +func (s *IpPermission) SetFromPort(v int64) *IpPermission { + s.FromPort = &v + return s +} + +// SetIpRange sets the IpRange field's value. +func (s *IpPermission) SetIpRange(v string) *IpPermission { + s.IpRange = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *IpPermission) SetProtocol(v string) *IpPermission { + s.Protocol = &v + return s +} + +// SetToPort sets the ToPort field's value. +func (s *IpPermission) SetToPort(v int64) *IpPermission { + s.ToPort = &v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListAliasesInput type ListAliasesInput struct { _ struct{} `type:"structure"` @@ -5967,13 +8782,13 @@ type ListAliasesInput struct { // get results as a set of sequential pages. Limit *int64 `min:"1" type:"integer"` - // Descriptive label associated with an alias. Alias names do not need to be - // unique. + // Descriptive label that is associated with an alias. Alias names do not need + // to be unique. Name *string `min:"1" type:"string"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. NextToken *string `min:"1" type:"string"` // Type of routing to filter results on. Use this parameter to retrieve only @@ -5982,12 +8797,12 @@ type ListAliasesInput struct { // // Possible routing types include the following: // - // SIMPLE – The alias resolves to one specific fleet. Use this type when - // routing to active fleets. + // * SIMPLE – The alias resolves to one specific fleet. Use this type when + // routing to active fleets. // - // TERMINAL – The alias does not resolve to a fleet but instead can be used - // to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException - // with the RoutingStrategy message embedded. + // * TERMINAL – The alias does not resolve to a fleet but instead can be + // used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException + // with the RoutingStrategy message embedded. RoutingStrategyType *string `type:"string" enum:"RoutingStrategyType"` } @@ -6020,15 +8835,41 @@ func (s *ListAliasesInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListAliasesInput) SetLimit(v int64) *ListAliasesInput { + s.Limit = &v + return s +} + +// SetName sets the Name field's value. +func (s *ListAliasesInput) SetName(v string) *ListAliasesInput { + s.Name = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAliasesInput) SetNextToken(v string) *ListAliasesInput { + s.NextToken = &v + return s +} + +// SetRoutingStrategyType sets the RoutingStrategyType field's value. +func (s *ListAliasesInput) SetRoutingStrategyType(v string) *ListAliasesInput { + s.RoutingStrategyType = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListAliasesOutput type ListAliasesOutput struct { _ struct{} `type:"structure"` // Collection of alias records that match the list request. Aliases []*Alias `type:"list"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` } @@ -6042,7 +8883,20 @@ func (s ListAliasesOutput) GoString() string { return s.String() } +// SetAliases sets the Aliases field's value. +func (s *ListAliasesOutput) SetAliases(v []*Alias) *ListAliasesOutput { + s.Aliases = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAliasesOutput) SetNextToken(v string) *ListAliasesOutput { + s.NextToken = &v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListBuildsInput type ListBuildsInput struct { _ struct{} `type:"structure"` @@ -6050,9 +8904,9 @@ type ListBuildsInput struct { // get results as a set of sequential pages. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. NextToken *string `min:"1" type:"string"` // Build status to filter results by. To retrieve all builds, leave this parameter @@ -6060,15 +8914,15 @@ type ListBuildsInput struct { // // Possible build statuses include the following: // - // INITIALIZED – A new build has been defined, but no files have been uploaded. - // You cannot create fleets for builds that are in this status. When a build - // is successfully created, the build status is set to this value. + // * INITIALIZED – A new build has been defined, but no files have been uploaded. + // You cannot create fleets for builds that are in this status. When a build + // is successfully created, the build status is set to this value. // - // READY – The game build has been successfully uploaded. You can now create - // new fleets for this build. + // * READY – The game build has been successfully uploaded. You can now create + // new fleets for this build. // - // FAILED – The game build upload failed. You cannot create new fleets for - // this build. + // * FAILED – The game build upload failed. You cannot create new fleets + // for this build. Status *string `type:"string" enum:"BuildStatus"` } @@ -6098,15 +8952,35 @@ func (s *ListBuildsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListBuildsInput) SetLimit(v int64) *ListBuildsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBuildsInput) SetNextToken(v string) *ListBuildsInput { + s.NextToken = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListBuildsInput) SetStatus(v string) *ListBuildsInput { + s.Status = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListBuildsOutput type ListBuildsOutput struct { _ struct{} `type:"structure"` // Collection of build records that match the request. Builds []*Build `type:"list"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` } @@ -6120,11 +8994,24 @@ func (s ListBuildsOutput) GoString() string { return s.String() } +// SetBuilds sets the Builds field's value. +func (s *ListBuildsOutput) SetBuilds(v []*Build) *ListBuildsOutput { + s.Builds = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBuildsOutput) SetNextToken(v string) *ListBuildsOutput { + s.NextToken = &v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListFleetsInput type ListFleetsInput struct { _ struct{} `type:"structure"` - // Unique identifier of the build to return fleets for. Use this parameter to + // Unique identifier for a build to return fleets for. Use this parameter to // return only fleets using the specified build. To retrieve all fleets, leave // this parameter empty. BuildId *string `type:"string"` @@ -6133,9 +9020,9 @@ type ListFleetsInput struct { // get results as a set of sequential pages. Limit *int64 `min:"1" type:"integer"` - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. NextToken *string `min:"1" type:"string"` } @@ -6165,17 +9052,37 @@ func (s *ListFleetsInput) Validate() error { return nil } +// SetBuildId sets the BuildId field's value. +func (s *ListFleetsInput) SetBuildId(v string) *ListFleetsInput { + s.BuildId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListFleetsInput) SetLimit(v int64) *ListFleetsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFleetsInput) SetNextToken(v string) *ListFleetsInput { + s.NextToken = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListFleetsOutput type ListFleetsOutput struct { _ struct{} `type:"structure"` // Set of fleet IDs matching the list request. You can retrieve additional information // about all returned fleets by passing this result set to a call to DescribeFleetAttributes, - // DescribeFleetCapacity, and DescribeFleetUtilization. + // DescribeFleetCapacity, or DescribeFleetUtilization. FleetIds []*string `min:"1" type:"list"` - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. NextToken *string `min:"1" type:"string"` } @@ -6189,15 +9096,105 @@ func (s ListFleetsOutput) GoString() string { return s.String() } -// Properties describing a player session. +// SetFleetIds sets the FleetIds field's value. +func (s *ListFleetsOutput) SetFleetIds(v []*string) *ListFleetsOutput { + s.FleetIds = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFleetsOutput) SetNextToken(v string) *ListFleetsOutput { + s.NextToken = &v + return s +} + +// Regional latency information for a player, used when requesting a new game +// session with StartGameSessionPlacement. This value indicates the amount of +// time lag that exists when the player is connected to a fleet in the specified +// region. The relative difference between a player's latency values for multiple +// regions are used to determine which fleets are best suited to place a new +// game session for the player. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/PlayerLatency +type PlayerLatency struct { + _ struct{} `type:"structure"` + + // Amount of time that represents the time lag experienced by the player when + // connected to the specified region. + LatencyInMilliseconds *float64 `type:"float"` + + // Unique identifier for a player associated with the latency data. + PlayerId *string `min:"1" type:"string"` + + // Name of the region that is associated with the latency value. + RegionIdentifier *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s PlayerLatency) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlayerLatency) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PlayerLatency) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PlayerLatency"} + if s.PlayerId != nil && len(*s.PlayerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PlayerId", 1)) + } + if s.RegionIdentifier != nil && len(*s.RegionIdentifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RegionIdentifier", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLatencyInMilliseconds sets the LatencyInMilliseconds field's value. +func (s *PlayerLatency) SetLatencyInMilliseconds(v float64) *PlayerLatency { + s.LatencyInMilliseconds = &v + return s +} + +// SetPlayerId sets the PlayerId field's value. +func (s *PlayerLatency) SetPlayerId(v string) *PlayerLatency { + s.PlayerId = &v + return s +} + +// SetRegionIdentifier sets the RegionIdentifier field's value. +func (s *PlayerLatency) SetRegionIdentifier(v string) *PlayerLatency { + s.RegionIdentifier = &v + return s +} + +// Properties describing a player session. A player session represents either +// a player reservation for a game session or actual player activity in a game +// session. A player session object (including player data) is automatically +// passed to a game session when the player connects to the game session and +// is validated. +// +// Player session-related operations include: +// +// * CreatePlayerSession +// +// * CreatePlayerSessions +// +// * DescribePlayerSessions +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/PlayerSession type PlayerSession struct { _ struct{} `type:"structure"` // Time stamp indicating when this data object was created. Format is a number - // expressed in Unix time as milliseconds (ex: "1469498468.057". + // expressed in Unix time as milliseconds (for example "1469498468.057"). CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` - // Unique identifier for a fleet. + // Unique identifier for a fleet that the player's game session is running on. FleetId *string `type:"string"` // Unique identifier for the game session that the player session is connected @@ -6207,34 +9204,38 @@ type PlayerSession struct { // Game session IP address. All player sessions reference the game session location. IpAddress *string `type:"string"` - // Unique identifier for a player. + // Developer-defined information related to a player. Amazon GameLift does not + // use this data, so it can be formatted as needed for use in the game. + PlayerData *string `min:"1" type:"string"` + + // Unique identifier for a player that is associated with this player session. PlayerId *string `min:"1" type:"string"` // Unique identifier for a player session. PlayerSessionId *string `type:"string"` - // Port number for the game session. To connect to a GameLift server process, - // an app needs both the IP address and port number. + // Port number for the game session. To connect to a Amazon GameLift server + // process, an app needs both the IP address and port number. Port *int64 `min:"1" type:"integer"` // Current status of the player session. // // Possible player session statuses include the following: // - // RESERVED – The player session request has been received, but the player - // has not yet connected to the server process and/or been validated. + // * RESERVED – The player session request has been received, but the player + // has not yet connected to the server process and/or been validated. // - // ACTIVE – The player has been validated by the server process and is currently - // connected. + // * ACTIVE – The player has been validated by the server process and is + // currently connected. // - // COMPLETED – The player connection has been dropped. + // * COMPLETED – The player connection has been dropped. // - // TIMEDOUT – A player session request was received, but the player did - // not connect and/or was not validated within the time-out limit (60 seconds). + // * TIMEDOUT – A player session request was received, but the player did + // not connect and/or was not validated within the time-out limit (60 seconds). Status *string `type:"string" enum:"PlayerSessionStatus"` // Time stamp indicating when this data object was terminated. Format is a number - // expressed in Unix time as milliseconds (ex: "1469498468.057". + // expressed in Unix time as milliseconds (for example "1469498468.057"). TerminationTime *time.Time `type:"timestamp" timestampFormat:"unix"` } @@ -6248,7 +9249,68 @@ func (s PlayerSession) GoString() string { return s.String() } +// SetCreationTime sets the CreationTime field's value. +func (s *PlayerSession) SetCreationTime(v time.Time) *PlayerSession { + s.CreationTime = &v + return s +} + +// SetFleetId sets the FleetId field's value. +func (s *PlayerSession) SetFleetId(v string) *PlayerSession { + s.FleetId = &v + return s +} + +// SetGameSessionId sets the GameSessionId field's value. +func (s *PlayerSession) SetGameSessionId(v string) *PlayerSession { + s.GameSessionId = &v + return s +} + +// SetIpAddress sets the IpAddress field's value. +func (s *PlayerSession) SetIpAddress(v string) *PlayerSession { + s.IpAddress = &v + return s +} + +// SetPlayerData sets the PlayerData field's value. +func (s *PlayerSession) SetPlayerData(v string) *PlayerSession { + s.PlayerData = &v + return s +} + +// SetPlayerId sets the PlayerId field's value. +func (s *PlayerSession) SetPlayerId(v string) *PlayerSession { + s.PlayerId = &v + return s +} + +// SetPlayerSessionId sets the PlayerSessionId field's value. +func (s *PlayerSession) SetPlayerSessionId(v string) *PlayerSession { + s.PlayerSessionId = &v + return s +} + +// SetPort sets the Port field's value. +func (s *PlayerSession) SetPort(v int64) *PlayerSession { + s.Port = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *PlayerSession) SetStatus(v string) *PlayerSession { + s.Status = &v + return s +} + +// SetTerminationTime sets the TerminationTime field's value. +func (s *PlayerSession) SetTerminationTime(v time.Time) *PlayerSession { + s.TerminationTime = &v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/PutScalingPolicyInput type PutScalingPolicyInput struct { _ struct{} `type:"structure"` @@ -6264,37 +9326,38 @@ type PutScalingPolicyInput struct { // EvaluationPeriods is a required field EvaluationPeriods *int64 `min:"1" type:"integer" required:"true"` - // Unique identity for the fleet to scale with this policy. + // Unique identifier for a fleet to apply this policy to. // // FleetId is a required field FleetId *string `type:"string" required:"true"` // Name of the Amazon GameLift-defined metric that is used to trigger an adjustment. // - // ActivatingGameSessions – number of game sessions in the process of being - // created (game session status = ACTIVATING). + // * ActivatingGameSessions – number of game sessions in the process of being + // created (game session status = ACTIVATING). // - // ActiveGameSessions – number of game sessions currently running (game - // session status = ACTIVE). + // * ActiveGameSessions – number of game sessions currently running (game + // session status = ACTIVE). // - // CurrentPlayerSessions – number of active or reserved player sessions - // (player session status = ACTIVE or RESERVED). + // * CurrentPlayerSessions – number of active or reserved player sessions + // (player session status = ACTIVE or RESERVED). // - // AvailablePlayerSessions – number of player session slots currently available - // in active game sessions across the fleet, calculated by subtracting a game - // session's current player session count from its maximum player session count. - // This number includes game sessions that are not currently accepting players - // (game session PlayerSessionCreationPolicy = DENY_ALL). + // * AvailablePlayerSessions – number of player session slots currently available + // in active game sessions across the fleet, calculated by subtracting a + // game session's current player session count from its maximum player session + // count. This number includes game sessions that are not currently accepting + // players (game session PlayerSessionCreationPolicy = DENY_ALL). // - // ActiveInstances – number of instances currently running a game session. + // * ActiveInstances – number of instances currently running a game session. // - // IdleInstances – number of instances not currently running a game session. + // * IdleInstances – number of instances not currently running a game session. // // MetricName is a required field MetricName *string `type:"string" required:"true" enum:"MetricName"` - // Descriptive label associated with a scaling policy. Policy names do not need - // to be unique. A fleet can have only one scaling policy with the same name. + // Descriptive label that is associated with a scaling policy. Policy names + // do not need to be unique. A fleet can have only one scaling policy with the + // same name. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` @@ -6306,16 +9369,16 @@ type PutScalingPolicyInput struct { // Type of adjustment to make to a fleet's instance count (see FleetCapacity): // - // ChangeInCapacity – add (or subtract) the scaling adjustment value from - // the current instance count. Positive values scale up while negative values - // scale down. + // * ChangeInCapacity – add (or subtract) the scaling adjustment value from + // the current instance count. Positive values scale up while negative values + // scale down. // - // ExactCapacity – set the instance count to the scaling adjustment value. + // * ExactCapacity – set the instance count to the scaling adjustment value. // - // PercentChangeInCapacity – increase or reduce the current instance count - // by the scaling adjustment, read as a percentage. Positive values scale up - // while negative values scale down; for example, a value of "-10" scales the - // fleet down by 10%. + // * PercentChangeInCapacity – increase or reduce the current instance count + // by the scaling adjustment, read as a percentage. Positive values scale + // up while negative values scale down; for example, a value of "-10" scales + // the fleet down by 10%. // // ScalingAdjustmentType is a required field ScalingAdjustmentType *string `type:"string" required:"true" enum:"ScalingAdjustmentType"` @@ -6376,12 +9439,61 @@ func (s *PutScalingPolicyInput) Validate() error { return nil } +// SetComparisonOperator sets the ComparisonOperator field's value. +func (s *PutScalingPolicyInput) SetComparisonOperator(v string) *PutScalingPolicyInput { + s.ComparisonOperator = &v + return s +} + +// SetEvaluationPeriods sets the EvaluationPeriods field's value. +func (s *PutScalingPolicyInput) SetEvaluationPeriods(v int64) *PutScalingPolicyInput { + s.EvaluationPeriods = &v + return s +} + +// SetFleetId sets the FleetId field's value. +func (s *PutScalingPolicyInput) SetFleetId(v string) *PutScalingPolicyInput { + s.FleetId = &v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *PutScalingPolicyInput) SetMetricName(v string) *PutScalingPolicyInput { + s.MetricName = &v + return s +} + +// SetName sets the Name field's value. +func (s *PutScalingPolicyInput) SetName(v string) *PutScalingPolicyInput { + s.Name = &v + return s +} + +// SetScalingAdjustment sets the ScalingAdjustment field's value. +func (s *PutScalingPolicyInput) SetScalingAdjustment(v int64) *PutScalingPolicyInput { + s.ScalingAdjustment = &v + return s +} + +// SetScalingAdjustmentType sets the ScalingAdjustmentType field's value. +func (s *PutScalingPolicyInput) SetScalingAdjustmentType(v string) *PutScalingPolicyInput { + s.ScalingAdjustmentType = &v + return s +} + +// SetThreshold sets the Threshold field's value. +func (s *PutScalingPolicyInput) SetThreshold(v float64) *PutScalingPolicyInput { + s.Threshold = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/PutScalingPolicyOutput type PutScalingPolicyOutput struct { _ struct{} `type:"structure"` - // Descriptive label associated with a scaling policy. Policy names do not need - // to be unique. + // Descriptive label that is associated with a scaling policy. Policy names + // do not need to be unique. Name *string `min:"1" type:"string"` } @@ -6395,11 +9507,18 @@ func (s PutScalingPolicyOutput) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *PutScalingPolicyOutput) SetName(v string) *PutScalingPolicyOutput { + s.Name = &v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/RequestUploadCredentialsInput type RequestUploadCredentialsInput struct { _ struct{} `type:"structure"` - // Unique identifier for the build you want to get credentials for. + // Unique identifier for a build to get credentials for. // // BuildId is a required field BuildId *string `type:"string" required:"true"` @@ -6428,7 +9547,14 @@ func (s *RequestUploadCredentialsInput) Validate() error { return nil } +// SetBuildId sets the BuildId field's value. +func (s *RequestUploadCredentialsInput) SetBuildId(v string) *RequestUploadCredentialsInput { + s.BuildId = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/RequestUploadCredentialsOutput type RequestUploadCredentialsOutput struct { _ struct{} `type:"structure"` @@ -6451,7 +9577,20 @@ func (s RequestUploadCredentialsOutput) GoString() string { return s.String() } +// SetStorageLocation sets the StorageLocation field's value. +func (s *RequestUploadCredentialsOutput) SetStorageLocation(v *S3Location) *RequestUploadCredentialsOutput { + s.StorageLocation = v + return s +} + +// SetUploadCredentials sets the UploadCredentials field's value. +func (s *RequestUploadCredentialsOutput) SetUploadCredentials(v *AwsCredentials) *RequestUploadCredentialsOutput { + s.UploadCredentials = v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ResolveAliasInput type ResolveAliasInput struct { _ struct{} `type:"structure"` @@ -6484,11 +9623,18 @@ func (s *ResolveAliasInput) Validate() error { return nil } +// SetAliasId sets the AliasId field's value. +func (s *ResolveAliasInput) SetAliasId(v string) *ResolveAliasInput { + s.AliasId = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ResolveAliasOutput type ResolveAliasOutput struct { _ struct{} `type:"structure"` - // Fleet ID associated with the requested alias. + // Fleet identifier that is associated with the requested alias. FleetId *string `type:"string"` } @@ -6502,6 +9648,12 @@ func (s ResolveAliasOutput) GoString() string { return s.String() } +// SetFleetId sets the FleetId field's value. +func (s *ResolveAliasOutput) SetFleetId(v string) *ResolveAliasOutput { + s.FleetId = &v + return s +} + // Policy that limits the number of game sessions a player can create on the // same fleet. This optional policy gives game owners control over how players // can consume available game server resources. A resource creation policy makes @@ -6510,17 +9662,18 @@ func (s ResolveAliasOutput) GoString() string { // // The policy is evaluated when a player tries to create a new game session. // For example, with a policy of 10 new game sessions and a time period of 60 -// minutes, on receiving a CreateGameSession request, GameLift checks that the -// player (identified by CreatorId) has created fewer than 10 game sessions -// in the past 60 minutes. +// minutes, on receiving a CreateGameSession request, Amazon GameLift checks +// that the player (identified by CreatorId) has created fewer than 10 game +// sessions in the past 60 minutes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ResourceCreationLimitPolicy type ResourceCreationLimitPolicy struct { _ struct{} `type:"structure"` - // Maximum number of game sessions an individual can create during the policy - // period. + // Maximum number of game sessions that an individual can create during the + // policy period. NewGameSessionsPerCreator *int64 `type:"integer"` - // Time span used to evaluate the resource creation limit policy. + // Time span used in evaluating the resource creation limit policy. PolicyPeriodInMinutes *int64 `type:"integer"` } @@ -6534,11 +9687,24 @@ func (s ResourceCreationLimitPolicy) GoString() string { return s.String() } +// SetNewGameSessionsPerCreator sets the NewGameSessionsPerCreator field's value. +func (s *ResourceCreationLimitPolicy) SetNewGameSessionsPerCreator(v int64) *ResourceCreationLimitPolicy { + s.NewGameSessionsPerCreator = &v + return s +} + +// SetPolicyPeriodInMinutes sets the PolicyPeriodInMinutes field's value. +func (s *ResourceCreationLimitPolicy) SetPolicyPeriodInMinutes(v int64) *ResourceCreationLimitPolicy { + s.PolicyPeriodInMinutes = &v + return s +} + // Routing configuration for a fleet alias. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/RoutingStrategy type RoutingStrategy struct { _ struct{} `type:"structure"` - // Unique identifier for a fleet. + // Unique identifier for a fleet that the alias points to. FleetId *string `type:"string"` // Message text to be used with a terminal routing strategy. @@ -6548,12 +9714,12 @@ type RoutingStrategy struct { // // Possible routing types include the following: // - // SIMPLE – The alias resolves to one specific fleet. Use this type when - // routing to active fleets. + // * SIMPLE – The alias resolves to one specific fleet. Use this type when + // routing to active fleets. // - // TERMINAL – The alias does not resolve to a fleet but instead can be used - // to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException - // with the RoutingStrategy message embedded. + // * TERMINAL – The alias does not resolve to a fleet but instead can be + // used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException + // with the RoutingStrategy message embedded. Type *string `type:"string" enum:"RoutingStrategyType"` } @@ -6567,24 +9733,43 @@ func (s RoutingStrategy) GoString() string { return s.String() } +// SetFleetId sets the FleetId field's value. +func (s *RoutingStrategy) SetFleetId(v string) *RoutingStrategy { + s.FleetId = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *RoutingStrategy) SetMessage(v string) *RoutingStrategy { + s.Message = &v + return s +} + +// SetType sets the Type field's value. +func (s *RoutingStrategy) SetType(v string) *RoutingStrategy { + s.Type = &v + return s +} + // Collection of server process configurations that describe what processes // should be run on each instance in a fleet. An instance can launch and maintain // multiple server processes based on the runtime configuration; it regularly // checks for an updated runtime configuration and starts new server processes // to match the latest version. // -// The key purpose of a runtime configuration with multiple server process -// configurations is to be able to run more than one kind of game server in -// a single fleet. You can include configurations for more than one server executable -// in order to run two or more different programs to run on the same instance. -// This option might be useful, for example, to run more than one version of -// your game server on the same fleet. Another option is to specify configurations -// for the same server executable but with different launch parameters. -// -// A GameLift instance is limited to 50 processes running simultaneously. To -// calculate the total number of processes specified in a runtime configuration, -// add the values of the ConcurrentExecutions parameter for each ServerProcess -// object in the runtime configuration. +// The key purpose of a runtime configuration with multiple server process configurations +// is to be able to run more than one kind of game server in a single fleet. +// You can include configurations for more than one server executable in order +// to run two or more different programs to run on the same instance. This option +// might be useful, for example, to run more than one version of your game server +// on the same fleet. Another option is to specify configurations for the same +// server executable but with different launch parameters. +// +// A Amazon GameLift instance is limited to 50 processes running simultaneously. +// To calculate the total number of processes specified in a runtime configuration, +// add the values of the ConcurrentExecutions parameter for each ServerProcess +// object in the runtime configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/RuntimeConfiguration type RuntimeConfiguration struct { _ struct{} `type:"structure"` @@ -6626,21 +9811,28 @@ func (s *RuntimeConfiguration) Validate() error { return nil } -// Location in Amazon Simple Storage Service (Amazon S3) where a build's files -// are stored. This location is assigned in response to a CreateBuild call, -// and is always in the same region as the service used to create the build. -// For more details see the Amazon S3 documentation (http://aws.amazon.com/documentation/s3/). +// SetServerProcesses sets the ServerProcesses field's value. +func (s *RuntimeConfiguration) SetServerProcesses(v []*ServerProcess) *RuntimeConfiguration { + s.ServerProcesses = v + return s +} + +// Location in Amazon Simple Storage Service (Amazon S3) where build files can +// be stored for access by Amazon GameLift. This location is specified in a +// CreateBuild request. For more details, see the Create a Build with Files +// in Amazon S3 (http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-cli-uploading.html#gamelift-build-cli-uploading-create-build). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/S3Location type S3Location struct { _ struct{} `type:"structure"` - // Amazon S3 bucket identifier. + // Amazon S3 bucket identifier. This is the name of your S3 bucket. Bucket *string `min:"1" type:"string"` - // Amazon S3 bucket key. + // Name of the zip file containing your build files. Key *string `min:"1" type:"string"` - // Amazon resource number for the cross-account access role that allows GameLift - // access to the S3 bucket. + // Amazon Resource Name (ARN (http://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html)) + // for the access role that allows Amazon GameLift to access your S3 bucket. RoleArn *string `min:"1" type:"string"` } @@ -6673,8 +9865,27 @@ func (s *S3Location) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *S3Location) SetBucket(v string) *S3Location { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *S3Location) SetKey(v string) *S3Location { + s.Key = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *S3Location) SetRoleArn(v string) *S3Location { + s.RoleArn = &v + return s +} + // Rule that controls how a fleet is scaled. Scaling policies are uniquely identified // by the combination of name and fleet ID. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ScalingPolicy type ScalingPolicy struct { _ struct{} `type:"structure"` @@ -6686,33 +9897,33 @@ type ScalingPolicy struct { // before a scaling event is triggered. EvaluationPeriods *int64 `min:"1" type:"integer"` - // Unique identity for the fleet associated with this scaling policy. + // Unique identifier for a fleet that is associated with this scaling policy. FleetId *string `type:"string"` - // Name of the GameLift-defined metric that is used to trigger an adjustment. + // Name of the Amazon GameLift-defined metric that is used to trigger an adjustment. // - // ActivatingGameSessions – number of game sessions in the process of being - // created (game session status = ACTIVATING). + // * ActivatingGameSessions – number of game sessions in the process of being + // created (game session status = ACTIVATING). // - // ActiveGameSessions – number of game sessions currently running (game - // session status = ACTIVE). + // * ActiveGameSessions – number of game sessions currently running (game + // session status = ACTIVE). // - // CurrentPlayerSessions – number of active or reserved player sessions - // (player session status = ACTIVE or RESERVED). + // * CurrentPlayerSessions – number of active or reserved player sessions + // (player session status = ACTIVE or RESERVED). // - // AvailablePlayerSessions – number of player session slots currently available - // in active game sessions across the fleet, calculated by subtracting a game - // session's current player session count from its maximum player session count. - // This number does include game sessions that are not currently accepting players - // (game session PlayerSessionCreationPolicy = DENY_ALL). + // * AvailablePlayerSessions – number of player session slots currently available + // in active game sessions across the fleet, calculated by subtracting a + // game session's current player session count from its maximum player session + // count. This number does include game sessions that are not currently accepting + // players (game session PlayerSessionCreationPolicy = DENY_ALL). // - // ActiveInstances – number of instances currently running a game session. + // * ActiveInstances – number of instances currently running a game session. // - // IdleInstances – number of instances not currently running a game session. + // * IdleInstances – number of instances not currently running a game session. MetricName *string `type:"string" enum:"MetricName"` - // Descriptive label associated with a scaling policy. Policy names do not need - // to be unique. + // Descriptive label that is associated with a scaling policy. Policy names + // do not need to be unique. Name *string `min:"1" type:"string"` // Amount of adjustment to make, based on the scaling adjustment type. @@ -6720,34 +9931,34 @@ type ScalingPolicy struct { // Type of adjustment to make to a fleet's instance count (see FleetCapacity): // - // ChangeInCapacity – add (or subtract) the scaling adjustment value from - // the current instance count. Positive values scale up while negative values - // scale down. + // * ChangeInCapacity – add (or subtract) the scaling adjustment value from + // the current instance count. Positive values scale up while negative values + // scale down. // - // ExactCapacity – set the instance count to the scaling adjustment value. + // * ExactCapacity – set the instance count to the scaling adjustment value. // - // PercentChangeInCapacity – increase or reduce the current instance count - // by the scaling adjustment, read as a percentage. Positive values scale up - // while negative values scale down. + // * PercentChangeInCapacity – increase or reduce the current instance count + // by the scaling adjustment, read as a percentage. Positive values scale + // up while negative values scale down. ScalingAdjustmentType *string `type:"string" enum:"ScalingAdjustmentType"` // Current status of the scaling policy. The scaling policy is only in force // when in an ACTIVE status. // - // ACTIVE – The scaling policy is currently in force. + // * ACTIVE – The scaling policy is currently in force. // - // UPDATE_REQUESTED – A request to update the scaling policy has been received. + // * UPDATE_REQUESTED – A request to update the scaling policy has been received. // - // UPDATING – A change is being made to the scaling policy. + // * UPDATING – A change is being made to the scaling policy. // - // DELETE_REQUESTED – A request to delete the scaling policy has been received. + // * DELETE_REQUESTED – A request to delete the scaling policy has been received. // - // DELETING – The scaling policy is being deleted. + // * DELETING – The scaling policy is being deleted. // - // DELETED – The scaling policy has been deleted. + // * DELETED – The scaling policy has been deleted. // - // ERROR – An error occurred in creating the policy. It should be removed - // and recreated. + // * ERROR – An error occurred in creating the policy. It should be removed + // and recreated. Status *string `type:"string" enum:"ScalingStatusType"` // Metric value used to trigger a scaling event. @@ -6764,12 +9975,68 @@ func (s ScalingPolicy) GoString() string { return s.String() } +// SetComparisonOperator sets the ComparisonOperator field's value. +func (s *ScalingPolicy) SetComparisonOperator(v string) *ScalingPolicy { + s.ComparisonOperator = &v + return s +} + +// SetEvaluationPeriods sets the EvaluationPeriods field's value. +func (s *ScalingPolicy) SetEvaluationPeriods(v int64) *ScalingPolicy { + s.EvaluationPeriods = &v + return s +} + +// SetFleetId sets the FleetId field's value. +func (s *ScalingPolicy) SetFleetId(v string) *ScalingPolicy { + s.FleetId = &v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *ScalingPolicy) SetMetricName(v string) *ScalingPolicy { + s.MetricName = &v + return s +} + +// SetName sets the Name field's value. +func (s *ScalingPolicy) SetName(v string) *ScalingPolicy { + s.Name = &v + return s +} + +// SetScalingAdjustment sets the ScalingAdjustment field's value. +func (s *ScalingPolicy) SetScalingAdjustment(v int64) *ScalingPolicy { + s.ScalingAdjustment = &v + return s +} + +// SetScalingAdjustmentType sets the ScalingAdjustmentType field's value. +func (s *ScalingPolicy) SetScalingAdjustmentType(v string) *ScalingPolicy { + s.ScalingAdjustmentType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ScalingPolicy) SetStatus(v string) *ScalingPolicy { + s.Status = &v + return s +} + +// SetThreshold sets the Threshold field's value. +func (s *ScalingPolicy) SetThreshold(v float64) *ScalingPolicy { + s.Threshold = &v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/SearchGameSessionsInput type SearchGameSessionsInput struct { _ struct{} `type:"structure"` - // Unique identifier for a fleet alias. Each request must reference either a - // fleet ID or alias ID, but not both. + // Unique identifier for an alias associated with the fleet to search for active + // game sessions. Each request must reference either a fleet ID or alias ID, + // but not both. AliasId *string `type:"string"` // String containing the search criteria for the session search. If no filter @@ -6779,176 +10046,462 @@ type SearchGameSessionsInput struct { // A filter expression can contain one or multiple conditions. Each condition // consists of the following: // - // Operand -- Name of a game session attribute. Valid values are gameSessionName, - // gameSessionId, creationTimeMillis, playerSessionCount, maximumSessions, hasAvailablePlayerSessions. + // * Operand -- Name of a game session attribute. Valid values are gameSessionName, + // gameSessionId, creationTimeMillis, playerSessionCount, maximumSessions, + // hasAvailablePlayerSessions. // - // Comparator -- Valid comparators are: =, <>, <, >, <=, >=. + // * Comparator -- Valid comparators are: =, <>, <, >, <=, >=. // - // Value -- Value to be searched for. Values can be numbers, boolean values - // (true/false) or strings. String values are case sensitive, enclosed in single - // quotes. Special characters must be escaped. Boolean and string values can - // only be used with the comparators = and <>. For example, the following filter - // expression searches on gameSessionName: "FilterExpression": "gameSessionName - // = 'Matt\\'s Awesome Game 1'". + // * Value -- Value to be searched for. Values can be numbers, boolean values + // (true/false) or strings. String values are case sensitive, enclosed in + // single quotes. Special characters must be escaped. Boolean and string + // values can only be used with the comparators = and <>. For example, the + // following filter expression searches on gameSessionName: "FilterExpression": + // "gameSessionName = 'Matt\\'s Awesome Game 1'". // - // To chain multiple conditions in a single expression, use the logical keywords + // To chain multiple conditions in a single expression, use the logical keywords // AND, OR, and NOT and parentheses as needed. For example: x AND y AND NOT // z, NOT (x OR y). // // Session search evaluates conditions from left to right using the following // precedence rules: // - // =, <>, <, >, <=, >= + // =, <>, <, >, <=, >= // - // Parentheses + // Parentheses // - // NOT + // NOT // - // AND + // AND // - // OR + // OR // - // For example, this filter expression retrieves game sessions hosting at - // least ten players that have an open player slot: "maximumSessions>=10 AND - // hasAvailablePlayerSessions=true". + // For example, this filter expression retrieves game sessions hosting at least + // ten players that have an open player slot: "maximumSessions>=10 AND hasAvailablePlayerSessions=true". FilterExpression *string `min:"1" type:"string"` - // Unique identifier for a fleet. Each request must reference either a fleet - // ID or alias ID, but not both. - FleetId *string `type:"string"` + // Unique identifier for a fleet to search for active game sessions. Each request + // must reference either a fleet ID or alias ID, but not both. + FleetId *string `type:"string"` + + // Maximum number of results to return. Use this parameter with NextToken to + // get results as a set of sequential pages. The maximum number of results returned + // is 20, even if this value is not set or is set higher than 20. + Limit *int64 `min:"1" type:"integer"` + + // Token that indicates the start of the next sequential page of results. Use + // the token that is returned with a previous call to this action. To specify + // the start of the result set, do not specify a value. + NextToken *string `min:"1" type:"string"` + + // Instructions on how to sort the search results. If no sort expression is + // included, the request returns results in random order. A sort expression + // consists of the following elements: + // + // * Operand -- Name of a game session attribute. Valid values are gameSessionName, + // gameSessionId, creationTimeMillis, playerSessionCount, maximumSessions, + // hasAvailablePlayerSessions. + // + // * Order -- Valid sort orders are ASC (ascending) and DESC (descending). + // + // For example, this sort expression returns the oldest active sessions first: + // "SortExpression": "creationTimeMillis ASC". Results with a null value for + // the sort operand are returned at the end of the list. + SortExpression *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s SearchGameSessionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SearchGameSessionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SearchGameSessionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SearchGameSessionsInput"} + if s.FilterExpression != nil && len(*s.FilterExpression) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FilterExpression", 1)) + } + if s.Limit != nil && *s.Limit < 1 { + invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.SortExpression != nil && len(*s.SortExpression) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SortExpression", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAliasId sets the AliasId field's value. +func (s *SearchGameSessionsInput) SetAliasId(v string) *SearchGameSessionsInput { + s.AliasId = &v + return s +} + +// SetFilterExpression sets the FilterExpression field's value. +func (s *SearchGameSessionsInput) SetFilterExpression(v string) *SearchGameSessionsInput { + s.FilterExpression = &v + return s +} + +// SetFleetId sets the FleetId field's value. +func (s *SearchGameSessionsInput) SetFleetId(v string) *SearchGameSessionsInput { + s.FleetId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *SearchGameSessionsInput) SetLimit(v int64) *SearchGameSessionsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *SearchGameSessionsInput) SetNextToken(v string) *SearchGameSessionsInput { + s.NextToken = &v + return s +} + +// SetSortExpression sets the SortExpression field's value. +func (s *SearchGameSessionsInput) SetSortExpression(v string) *SearchGameSessionsInput { + s.SortExpression = &v + return s +} + +// Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/SearchGameSessionsOutput +type SearchGameSessionsOutput struct { + _ struct{} `type:"structure"` + + // Collection of objects containing game session properties for each session + // matching the request. + GameSessions []*GameSession `type:"list"` + + // Token that indicates where to resume retrieving results on the next call + // to this action. If no token is returned, these results represent the end + // of the list. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s SearchGameSessionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SearchGameSessionsOutput) GoString() string { + return s.String() +} + +// SetGameSessions sets the GameSessions field's value. +func (s *SearchGameSessionsOutput) SetGameSessions(v []*GameSession) *SearchGameSessionsOutput { + s.GameSessions = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *SearchGameSessionsOutput) SetNextToken(v string) *SearchGameSessionsOutput { + s.NextToken = &v + return s +} + +// A set of instructions for launching server processes on each instance in +// a fleet. Each instruction set identifies the location of the server executable, +// optional launch parameters, and the number of server processes with this +// configuration to maintain concurrently on the instance. Server process configurations +// make up a fleet's RuntimeConfiguration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ServerProcess +type ServerProcess struct { + _ struct{} `type:"structure"` + + // Number of server processes using this configuration to run concurrently on + // an instance. + // + // ConcurrentExecutions is a required field + ConcurrentExecutions *int64 `min:"1" type:"integer" required:"true"` + + // Location of the server executable in a game build. All game builds are installed + // on instances at the root : for Windows instances C:\game, and for Linux instances + // /local/game. A Windows game build with an executable file located at MyGame\latest\server.exe + // must have a launch path of "C:\game\MyGame\latest\server.exe". A Linux game + // build with an executable file located at MyGame/latest/server.exe must have + // a launch path of "/local/game/MyGame/latest/server.exe". + // + // LaunchPath is a required field + LaunchPath *string `min:"1" type:"string" required:"true"` + + // Optional list of parameters to pass to the server executable on launch. + Parameters *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ServerProcess) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServerProcess) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ServerProcess) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ServerProcess"} + if s.ConcurrentExecutions == nil { + invalidParams.Add(request.NewErrParamRequired("ConcurrentExecutions")) + } + if s.ConcurrentExecutions != nil && *s.ConcurrentExecutions < 1 { + invalidParams.Add(request.NewErrParamMinValue("ConcurrentExecutions", 1)) + } + if s.LaunchPath == nil { + invalidParams.Add(request.NewErrParamRequired("LaunchPath")) + } + if s.LaunchPath != nil && len(*s.LaunchPath) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LaunchPath", 1)) + } + if s.Parameters != nil && len(*s.Parameters) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Parameters", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConcurrentExecutions sets the ConcurrentExecutions field's value. +func (s *ServerProcess) SetConcurrentExecutions(v int64) *ServerProcess { + s.ConcurrentExecutions = &v + return s +} + +// SetLaunchPath sets the LaunchPath field's value. +func (s *ServerProcess) SetLaunchPath(v string) *ServerProcess { + s.LaunchPath = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *ServerProcess) SetParameters(v string) *ServerProcess { + s.Parameters = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StartGameSessionPlacementInput +type StartGameSessionPlacementInput struct { + _ struct{} `type:"structure"` + + // Set of information on each player to create a player session for. + DesiredPlayerSessions []*DesiredPlayerSession `type:"list"` + + // Set of developer-defined properties for a game session. These properties + // are passed to the server process hosting the game session. + GameProperties []*GameProperty `type:"list"` + + // Descriptive label that is associated with a game session. Session names do + // not need to be unique. + GameSessionName *string `min:"1" type:"string"` + + // Name of the queue to use to place the new game session. + // + // GameSessionQueueName is a required field + GameSessionQueueName *string `min:"1" type:"string" required:"true"` + + // Maximum number of players that can be connected simultaneously to the game + // session. + // + // MaximumPlayerSessionCount is a required field + MaximumPlayerSessionCount *int64 `type:"integer" required:"true"` + + // Unique identifier to assign to the new game session placement. This value + // is developer-defined. The value must be unique across all regions and cannot + // be reused unless you are resubmitting a cancelled or timed-out placement + // request. + // + // PlacementId is a required field + PlacementId *string `min:"1" type:"string" required:"true"` + + // Set of values, expressed in milliseconds, indicating the amount of latency + // that players experience when connected to AWS regions. This information is + // relevant when requesting player sessions. Latency information provided for + // player IDs not included in DesiredPlayerSessions are ignored. + PlayerLatencies []*PlayerLatency `type:"list"` +} + +// String returns the string representation +func (s StartGameSessionPlacementInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartGameSessionPlacementInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartGameSessionPlacementInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartGameSessionPlacementInput"} + if s.GameSessionName != nil && len(*s.GameSessionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GameSessionName", 1)) + } + if s.GameSessionQueueName == nil { + invalidParams.Add(request.NewErrParamRequired("GameSessionQueueName")) + } + if s.GameSessionQueueName != nil && len(*s.GameSessionQueueName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GameSessionQueueName", 1)) + } + if s.MaximumPlayerSessionCount == nil { + invalidParams.Add(request.NewErrParamRequired("MaximumPlayerSessionCount")) + } + if s.PlacementId == nil { + invalidParams.Add(request.NewErrParamRequired("PlacementId")) + } + if s.PlacementId != nil && len(*s.PlacementId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PlacementId", 1)) + } + if s.DesiredPlayerSessions != nil { + for i, v := range s.DesiredPlayerSessions { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DesiredPlayerSessions", i), err.(request.ErrInvalidParams)) + } + } + } + if s.GameProperties != nil { + for i, v := range s.GameProperties { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "GameProperties", i), err.(request.ErrInvalidParams)) + } + } + } + if s.PlayerLatencies != nil { + for i, v := range s.PlayerLatencies { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PlayerLatencies", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // Maximum number of results to return. Use this parameter with NextToken to - // get results as a set of sequential pages. The maximum number of results returned - // is 20, even if this value is not set or is set higher than 20. - Limit *int64 `min:"1" type:"integer"` +// SetDesiredPlayerSessions sets the DesiredPlayerSessions field's value. +func (s *StartGameSessionPlacementInput) SetDesiredPlayerSessions(v []*DesiredPlayerSession) *StartGameSessionPlacementInput { + s.DesiredPlayerSessions = v + return s +} - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. - NextToken *string `min:"1" type:"string"` +// SetGameProperties sets the GameProperties field's value. +func (s *StartGameSessionPlacementInput) SetGameProperties(v []*GameProperty) *StartGameSessionPlacementInput { + s.GameProperties = v + return s +} - // Instructions on how to sort the search results. If no sort expression is - // included, the request returns results in random order. A sort expression - // consists of the following elements: - // - // Operand -- Name of a game session attribute. Valid values are gameSessionName, - // gameSessionId, creationTimeMillis, playerSessionCount, maximumSessions, hasAvailablePlayerSessions. - // - // Order -- Valid sort orders are ASC (ascending) and DESC (descending). - // - // For example, this sort expression returns the oldest active sessions first: - // "SortExpression": "creationTimeMillis ASC". Results with a null value for - // the sort operand are returned at the end of the list. - SortExpression *string `min:"1" type:"string"` +// SetGameSessionName sets the GameSessionName field's value. +func (s *StartGameSessionPlacementInput) SetGameSessionName(v string) *StartGameSessionPlacementInput { + s.GameSessionName = &v + return s } -// String returns the string representation -func (s SearchGameSessionsInput) String() string { - return awsutil.Prettify(s) +// SetGameSessionQueueName sets the GameSessionQueueName field's value. +func (s *StartGameSessionPlacementInput) SetGameSessionQueueName(v string) *StartGameSessionPlacementInput { + s.GameSessionQueueName = &v + return s } -// GoString returns the string representation -func (s SearchGameSessionsInput) GoString() string { - return s.String() +// SetMaximumPlayerSessionCount sets the MaximumPlayerSessionCount field's value. +func (s *StartGameSessionPlacementInput) SetMaximumPlayerSessionCount(v int64) *StartGameSessionPlacementInput { + s.MaximumPlayerSessionCount = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SearchGameSessionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SearchGameSessionsInput"} - if s.FilterExpression != nil && len(*s.FilterExpression) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FilterExpression", 1)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.SortExpression != nil && len(*s.SortExpression) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SortExpression", 1)) - } +// SetPlacementId sets the PlacementId field's value. +func (s *StartGameSessionPlacementInput) SetPlacementId(v string) *StartGameSessionPlacementInput { + s.PlacementId = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetPlayerLatencies sets the PlayerLatencies field's value. +func (s *StartGameSessionPlacementInput) SetPlayerLatencies(v []*PlayerLatency) *StartGameSessionPlacementInput { + s.PlayerLatencies = v + return s } -// Represents the returned data in response to a request action. -type SearchGameSessionsOutput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StartGameSessionPlacementOutput +type StartGameSessionPlacementOutput struct { _ struct{} `type:"structure"` - // Collection of objects containing game session properties for each session - // matching the request. - GameSessions []*GameSession `type:"list"` - - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. - NextToken *string `min:"1" type:"string"` + // Object that describes the newly created game session placement. This object + // includes all the information provided in the request, as well as start/end + // time stamps and placement status. + GameSessionPlacement *GameSessionPlacement `type:"structure"` } // String returns the string representation -func (s SearchGameSessionsOutput) String() string { +func (s StartGameSessionPlacementOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SearchGameSessionsOutput) GoString() string { +func (s StartGameSessionPlacementOutput) GoString() string { return s.String() } -// A set of instructions for launching server processes on each instance in -// a fleet. Each instruction set identifies the location of the server executable, -// optional launch parameters, and the number of server processes with this -// configuration to maintain concurrently on the instance. Server process configurations -// make up a fleet's RuntimeConfiguration . -type ServerProcess struct { - _ struct{} `type:"structure"` +// SetGameSessionPlacement sets the GameSessionPlacement field's value. +func (s *StartGameSessionPlacementOutput) SetGameSessionPlacement(v *GameSessionPlacement) *StartGameSessionPlacementOutput { + s.GameSessionPlacement = v + return s +} - // Number of server processes using this configuration to run concurrently on - // an instance. - // - // ConcurrentExecutions is a required field - ConcurrentExecutions *int64 `min:"1" type:"integer" required:"true"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StopGameSessionPlacementInput +type StopGameSessionPlacementInput struct { + _ struct{} `type:"structure"` - // Location in the game build of the server executable. All game builds are - // installed on instances at the root C:\game\..., so an executable file located - // at MyGame\latest\server.exe has a launch path of "C:\game\MyGame\latest\server.exe". + // Unique identifier for a game session placement to cancel. // - // LaunchPath is a required field - LaunchPath *string `min:"1" type:"string" required:"true"` - - // Optional list of parameters to pass to the server executable on launch. - Parameters *string `min:"1" type:"string"` + // PlacementId is a required field + PlacementId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ServerProcess) String() string { +func (s StopGameSessionPlacementInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ServerProcess) GoString() string { +func (s StopGameSessionPlacementInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ServerProcess) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ServerProcess"} - if s.ConcurrentExecutions == nil { - invalidParams.Add(request.NewErrParamRequired("ConcurrentExecutions")) - } - if s.ConcurrentExecutions != nil && *s.ConcurrentExecutions < 1 { - invalidParams.Add(request.NewErrParamMinValue("ConcurrentExecutions", 1)) - } - if s.LaunchPath == nil { - invalidParams.Add(request.NewErrParamRequired("LaunchPath")) - } - if s.LaunchPath != nil && len(*s.LaunchPath) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LaunchPath", 1)) +func (s *StopGameSessionPlacementInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopGameSessionPlacementInput"} + if s.PlacementId == nil { + invalidParams.Add(request.NewErrParamRequired("PlacementId")) } - if s.Parameters != nil && len(*s.Parameters) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Parameters", 1)) + if s.PlacementId != nil && len(*s.PlacementId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PlacementId", 1)) } if invalidParams.Len() > 0 { @@ -6957,7 +10510,39 @@ func (s *ServerProcess) Validate() error { return nil } +// SetPlacementId sets the PlacementId field's value. +func (s *StopGameSessionPlacementInput) SetPlacementId(v string) *StopGameSessionPlacementInput { + s.PlacementId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StopGameSessionPlacementOutput +type StopGameSessionPlacementOutput struct { + _ struct{} `type:"structure"` + + // Object that describes the cancelled game session placement, with cancelled + // status and an end time stamp. + GameSessionPlacement *GameSessionPlacement `type:"structure"` +} + +// String returns the string representation +func (s StopGameSessionPlacementOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopGameSessionPlacementOutput) GoString() string { + return s.String() +} + +// SetGameSessionPlacement sets the GameSessionPlacement field's value. +func (s *StopGameSessionPlacementOutput) SetGameSessionPlacement(v *GameSessionPlacement) *StopGameSessionPlacementOutput { + s.GameSessionPlacement = v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateAliasInput type UpdateAliasInput struct { _ struct{} `type:"structure"` @@ -6969,11 +10554,11 @@ type UpdateAliasInput struct { // Human-readable description of an alias. Description *string `min:"1" type:"string"` - // Descriptive label associated with an alias. Alias names do not need to be - // unique. + // Descriptive label that is associated with an alias. Alias names do not need + // to be unique. Name *string `min:"1" type:"string"` - // Object specifying the fleet and routing type to use for the alias. + // Object that specifies the fleet and routing type to use for the alias. RoutingStrategy *RoutingStrategy `type:"structure"` } @@ -7006,11 +10591,36 @@ func (s *UpdateAliasInput) Validate() error { return nil } +// SetAliasId sets the AliasId field's value. +func (s *UpdateAliasInput) SetAliasId(v string) *UpdateAliasInput { + s.AliasId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateAliasInput) SetDescription(v string) *UpdateAliasInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateAliasInput) SetName(v string) *UpdateAliasInput { + s.Name = &v + return s +} + +// SetRoutingStrategy sets the RoutingStrategy field's value. +func (s *UpdateAliasInput) SetRoutingStrategy(v *RoutingStrategy) *UpdateAliasInput { + s.RoutingStrategy = v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateAliasOutput type UpdateAliasOutput struct { _ struct{} `type:"structure"` - // Object containing the updated alias configuration. + // Object that contains the updated alias configuration. Alias *Alias `type:"structure"` } @@ -7024,21 +10634,28 @@ func (s UpdateAliasOutput) GoString() string { return s.String() } +// SetAlias sets the Alias field's value. +func (s *UpdateAliasOutput) SetAlias(v *Alias) *UpdateAliasOutput { + s.Alias = v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateBuildInput type UpdateBuildInput struct { _ struct{} `type:"structure"` - // Unique identifier of the build you want to update. + // Unique identifier for a build to update. // // BuildId is a required field BuildId *string `type:"string" required:"true"` - // Descriptive label associated with a build. Build names do not need to be - // unique. + // Descriptive label that is associated with a build. Build names do not need + // to be unique. Name *string `min:"1" type:"string"` - // Version associated with this build. Version strings do not need to be unique - // to a build. + // Version that is associated with this build. Version strings do not need to + // be unique. Version *string `min:"1" type:"string"` } @@ -7071,11 +10688,30 @@ func (s *UpdateBuildInput) Validate() error { return nil } +// SetBuildId sets the BuildId field's value. +func (s *UpdateBuildInput) SetBuildId(v string) *UpdateBuildInput { + s.BuildId = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateBuildInput) SetName(v string) *UpdateBuildInput { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *UpdateBuildInput) SetVersion(v string) *UpdateBuildInput { + s.Version = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateBuildOutput type UpdateBuildOutput struct { _ struct{} `type:"structure"` - // Object containing the updated build record. + // Object that contains the updated build record. Build *Build `type:"structure"` } @@ -7089,31 +10725,38 @@ func (s UpdateBuildOutput) GoString() string { return s.String() } +// SetBuild sets the Build field's value. +func (s *UpdateBuildOutput) SetBuild(v *Build) *UpdateBuildOutput { + s.Build = v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateFleetAttributesInput type UpdateFleetAttributesInput struct { _ struct{} `type:"structure"` // Human-readable description of a fleet. Description *string `min:"1" type:"string"` - // Unique identifier for the fleet you want to update attribute metadata for. + // Unique identifier for a fleet to update attribute metadata for. // // FleetId is a required field FleetId *string `type:"string" required:"true"` - // Descriptive label associated with a fleet. Fleet names do not need to be - // unique. + // Descriptive label that is associated with a fleet. Fleet names do not need + // to be unique. Name *string `min:"1" type:"string"` // Game session protection policy to apply to all new instances created in this // fleet. Instances that already exist are not affected. You can set protection // for individual instances using UpdateGameSession. // - // NoProtection – The game session can be terminated during a scale-down - // event. + // * NoProtection – The game session can be terminated during a scale-down + // event. // - // FullProtection – If the game session is in an ACTIVE status, it cannot - // be terminated during a scale-down event. + // * FullProtection – If the game session is in an ACTIVE status, it cannot + // be terminated during a scale-down event. NewGameSessionProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"` // Policy that limits the number of game sessions an individual player can create @@ -7150,11 +10793,42 @@ func (s *UpdateFleetAttributesInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *UpdateFleetAttributesInput) SetDescription(v string) *UpdateFleetAttributesInput { + s.Description = &v + return s +} + +// SetFleetId sets the FleetId field's value. +func (s *UpdateFleetAttributesInput) SetFleetId(v string) *UpdateFleetAttributesInput { + s.FleetId = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateFleetAttributesInput) SetName(v string) *UpdateFleetAttributesInput { + s.Name = &v + return s +} + +// SetNewGameSessionProtectionPolicy sets the NewGameSessionProtectionPolicy field's value. +func (s *UpdateFleetAttributesInput) SetNewGameSessionProtectionPolicy(v string) *UpdateFleetAttributesInput { + s.NewGameSessionProtectionPolicy = &v + return s +} + +// SetResourceCreationLimitPolicy sets the ResourceCreationLimitPolicy field's value. +func (s *UpdateFleetAttributesInput) SetResourceCreationLimitPolicy(v *ResourceCreationLimitPolicy) *UpdateFleetAttributesInput { + s.ResourceCreationLimitPolicy = v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateFleetAttributesOutput type UpdateFleetAttributesOutput struct { _ struct{} `type:"structure"` - // Unique identifier for the updated fleet. + // Unique identifier for a fleet that was updated. FleetId *string `type:"string"` } @@ -7168,14 +10842,21 @@ func (s UpdateFleetAttributesOutput) GoString() string { return s.String() } +// SetFleetId sets the FleetId field's value. +func (s *UpdateFleetAttributesOutput) SetFleetId(v string) *UpdateFleetAttributesOutput { + s.FleetId = &v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateFleetCapacityInput type UpdateFleetCapacityInput struct { _ struct{} `type:"structure"` // Number of EC2 instances you want this fleet to host. DesiredInstances *int64 `type:"integer"` - // Unique identifier for the fleet you want to update capacity for. + // Unique identifier for a fleet to update capacity for. // // FleetId is a required field FleetId *string `type:"string" required:"true"` @@ -7212,11 +10893,36 @@ func (s *UpdateFleetCapacityInput) Validate() error { return nil } +// SetDesiredInstances sets the DesiredInstances field's value. +func (s *UpdateFleetCapacityInput) SetDesiredInstances(v int64) *UpdateFleetCapacityInput { + s.DesiredInstances = &v + return s +} + +// SetFleetId sets the FleetId field's value. +func (s *UpdateFleetCapacityInput) SetFleetId(v string) *UpdateFleetCapacityInput { + s.FleetId = &v + return s +} + +// SetMaxSize sets the MaxSize field's value. +func (s *UpdateFleetCapacityInput) SetMaxSize(v int64) *UpdateFleetCapacityInput { + s.MaxSize = &v + return s +} + +// SetMinSize sets the MinSize field's value. +func (s *UpdateFleetCapacityInput) SetMinSize(v int64) *UpdateFleetCapacityInput { + s.MinSize = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateFleetCapacityOutput type UpdateFleetCapacityOutput struct { _ struct{} `type:"structure"` - // Unique identifier for the updated fleet. + // Unique identifier for a fleet that was updated. FleetId *string `type:"string"` } @@ -7230,11 +10936,18 @@ func (s UpdateFleetCapacityOutput) GoString() string { return s.String() } +// SetFleetId sets the FleetId field's value. +func (s *UpdateFleetCapacityOutput) SetFleetId(v string) *UpdateFleetCapacityOutput { + s.FleetId = &v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateFleetPortSettingsInput type UpdateFleetPortSettingsInput struct { _ struct{} `type:"structure"` - // Unique identifier for the fleet you want to update port settings for. + // Unique identifier for a fleet to update port settings for. // // FleetId is a required field FleetId *string `type:"string" required:"true"` @@ -7289,11 +11002,30 @@ func (s *UpdateFleetPortSettingsInput) Validate() error { return nil } +// SetFleetId sets the FleetId field's value. +func (s *UpdateFleetPortSettingsInput) SetFleetId(v string) *UpdateFleetPortSettingsInput { + s.FleetId = &v + return s +} + +// SetInboundPermissionAuthorizations sets the InboundPermissionAuthorizations field's value. +func (s *UpdateFleetPortSettingsInput) SetInboundPermissionAuthorizations(v []*IpPermission) *UpdateFleetPortSettingsInput { + s.InboundPermissionAuthorizations = v + return s +} + +// SetInboundPermissionRevocations sets the InboundPermissionRevocations field's value. +func (s *UpdateFleetPortSettingsInput) SetInboundPermissionRevocations(v []*IpPermission) *UpdateFleetPortSettingsInput { + s.InboundPermissionRevocations = v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateFleetPortSettingsOutput type UpdateFleetPortSettingsOutput struct { _ struct{} `type:"structure"` - // Unique identifier for the updated fleet. + // Unique identifier for a fleet that was updated. FleetId *string `type:"string"` } @@ -7307,24 +11039,28 @@ func (s UpdateFleetPortSettingsOutput) GoString() string { return s.String() } +// SetFleetId sets the FleetId field's value. +func (s *UpdateFleetPortSettingsOutput) SetFleetId(v string) *UpdateFleetPortSettingsOutput { + s.FleetId = &v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateGameSessionInput type UpdateGameSessionInput struct { _ struct{} `type:"structure"` - // Unique identifier for the game session to update. Game session ID format - // is as follows: "arn:aws:gamelift:::gamesession/fleet-/". The value of is either a custom ID string (if one was - // specified when the game session was created) an auto-generated string. + // Unique identifier for the game session to update. // // GameSessionId is a required field GameSessionId *string `min:"1" type:"string" required:"true"` - // Maximum number of players that can be simultaneously connected to the game + // Maximum number of players that can be connected simultaneously to the game // session. MaximumPlayerSessionCount *int64 `type:"integer"` - // Descriptive label associated with a game session. Session names do not need - // to be unique. + // Descriptive label that is associated with a game session. Session names do + // not need to be unique. Name *string `min:"1" type:"string"` // Policy determining whether or not the game session accepts new players. @@ -7332,11 +11068,11 @@ type UpdateGameSessionInput struct { // Game session protection policy to apply to this game session only. // - // NoProtection – The game session can be terminated during a scale-down - // event. + // * NoProtection – The game session can be terminated during a scale-down + // event. // - // FullProtection – If the game session is in an ACTIVE status, it cannot - // be terminated during a scale-down event. + // * FullProtection – If the game session is in an ACTIVE status, it cannot + // be terminated during a scale-down event. ProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"` } @@ -7369,11 +11105,42 @@ func (s *UpdateGameSessionInput) Validate() error { return nil } +// SetGameSessionId sets the GameSessionId field's value. +func (s *UpdateGameSessionInput) SetGameSessionId(v string) *UpdateGameSessionInput { + s.GameSessionId = &v + return s +} + +// SetMaximumPlayerSessionCount sets the MaximumPlayerSessionCount field's value. +func (s *UpdateGameSessionInput) SetMaximumPlayerSessionCount(v int64) *UpdateGameSessionInput { + s.MaximumPlayerSessionCount = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateGameSessionInput) SetName(v string) *UpdateGameSessionInput { + s.Name = &v + return s +} + +// SetPlayerSessionCreationPolicy sets the PlayerSessionCreationPolicy field's value. +func (s *UpdateGameSessionInput) SetPlayerSessionCreationPolicy(v string) *UpdateGameSessionInput { + s.PlayerSessionCreationPolicy = &v + return s +} + +// SetProtectionPolicy sets the ProtectionPolicy field's value. +func (s *UpdateGameSessionInput) SetProtectionPolicy(v string) *UpdateGameSessionInput { + s.ProtectionPolicy = &v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateGameSessionOutput type UpdateGameSessionOutput struct { _ struct{} `type:"structure"` - // Object containing the updated game session metadata. + // Object that contains the updated game session metadata. GameSession *GameSession `type:"structure"` } @@ -7387,11 +11154,117 @@ func (s UpdateGameSessionOutput) GoString() string { return s.String() } +// SetGameSession sets the GameSession field's value. +func (s *UpdateGameSessionOutput) SetGameSession(v *GameSession) *UpdateGameSessionOutput { + s.GameSession = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateGameSessionQueueInput +type UpdateGameSessionQueueInput struct { + _ struct{} `type:"structure"` + + // List of fleets that can be used to fulfill game session placement requests + // in the queue. Fleets are identified by either a fleet ARN or a fleet alias + // ARN. Destinations are listed in default preference order. + Destinations []*GameSessionQueueDestination `type:"list"` + + // Descriptive label that is associated with queue. Queue names must be unique + // within each region. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // Maximum time, in seconds, that a new game session placement request remains + // in the queue. When a request exceeds this time, the game session placement + // changes to a TIMED_OUT status. + TimeoutInSeconds *int64 `type:"integer"` +} + +// String returns the string representation +func (s UpdateGameSessionQueueInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateGameSessionQueueInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateGameSessionQueueInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateGameSessionQueueInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Destinations != nil { + for i, v := range s.Destinations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Destinations", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDestinations sets the Destinations field's value. +func (s *UpdateGameSessionQueueInput) SetDestinations(v []*GameSessionQueueDestination) *UpdateGameSessionQueueInput { + s.Destinations = v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateGameSessionQueueInput) SetName(v string) *UpdateGameSessionQueueInput { + s.Name = &v + return s +} + +// SetTimeoutInSeconds sets the TimeoutInSeconds field's value. +func (s *UpdateGameSessionQueueInput) SetTimeoutInSeconds(v int64) *UpdateGameSessionQueueInput { + s.TimeoutInSeconds = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateGameSessionQueueOutput +type UpdateGameSessionQueueOutput struct { + _ struct{} `type:"structure"` + + // Object that describes the newly updated game session queue. + GameSessionQueue *GameSessionQueue `type:"structure"` +} + +// String returns the string representation +func (s UpdateGameSessionQueueOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateGameSessionQueueOutput) GoString() string { + return s.String() +} + +// SetGameSessionQueue sets the GameSessionQueue field's value. +func (s *UpdateGameSessionQueueOutput) SetGameSessionQueue(v *GameSessionQueue) *UpdateGameSessionQueueOutput { + s.GameSessionQueue = v + return s +} + // Represents the input for a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateRuntimeConfigurationInput type UpdateRuntimeConfigurationInput struct { _ struct{} `type:"structure"` - // Unique identifier of the fleet to update runtime configuration for. + // Unique identifier for a fleet to update runtime configuration for. // // FleetId is a required field FleetId *string `type:"string" required:"true"` @@ -7438,7 +11311,20 @@ func (s *UpdateRuntimeConfigurationInput) Validate() error { return nil } +// SetFleetId sets the FleetId field's value. +func (s *UpdateRuntimeConfigurationInput) SetFleetId(v string) *UpdateRuntimeConfigurationInput { + s.FleetId = &v + return s +} + +// SetRuntimeConfiguration sets the RuntimeConfiguration field's value. +func (s *UpdateRuntimeConfigurationInput) SetRuntimeConfiguration(v *RuntimeConfiguration) *UpdateRuntimeConfigurationInput { + s.RuntimeConfiguration = v + return s +} + // Represents the returned data in response to a request action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateRuntimeConfigurationOutput type UpdateRuntimeConfigurationOutput struct { _ struct{} `type:"structure"` @@ -7457,6 +11343,12 @@ func (s UpdateRuntimeConfigurationOutput) GoString() string { return s.String() } +// SetRuntimeConfiguration sets the RuntimeConfiguration field's value. +func (s *UpdateRuntimeConfigurationOutput) SetRuntimeConfiguration(v *RuntimeConfiguration) *UpdateRuntimeConfigurationOutput { + s.RuntimeConfiguration = v + return s +} + const ( // BuildStatusInitialized is a BuildStatus enum value BuildStatusInitialized = "INITIALIZED" @@ -7622,6 +11514,30 @@ const ( // EventCodeFleetNewGameSessionProtectionPolicyUpdated is a EventCode enum value EventCodeFleetNewGameSessionProtectionPolicyUpdated = "FLEET_NEW_GAME_SESSION_PROTECTION_POLICY_UPDATED" + + // EventCodeServerProcessInvalidPath is a EventCode enum value + EventCodeServerProcessInvalidPath = "SERVER_PROCESS_INVALID_PATH" + + // EventCodeServerProcessSdkInitializationTimeout is a EventCode enum value + EventCodeServerProcessSdkInitializationTimeout = "SERVER_PROCESS_SDK_INITIALIZATION_TIMEOUT" + + // EventCodeServerProcessProcessReadyTimeout is a EventCode enum value + EventCodeServerProcessProcessReadyTimeout = "SERVER_PROCESS_PROCESS_READY_TIMEOUT" + + // EventCodeServerProcessCrashed is a EventCode enum value + EventCodeServerProcessCrashed = "SERVER_PROCESS_CRASHED" + + // EventCodeServerProcessTerminatedUnhealthy is a EventCode enum value + EventCodeServerProcessTerminatedUnhealthy = "SERVER_PROCESS_TERMINATED_UNHEALTHY" + + // EventCodeServerProcessForceTerminated is a EventCode enum value + EventCodeServerProcessForceTerminated = "SERVER_PROCESS_FORCE_TERMINATED" + + // EventCodeServerProcessProcessExitTimeout is a EventCode enum value + EventCodeServerProcessProcessExitTimeout = "SERVER_PROCESS_PROCESS_EXIT_TIMEOUT" + + // EventCodeGameSessionActivationTimeout is a EventCode enum value + EventCodeGameSessionActivationTimeout = "GAME_SESSION_ACTIVATION_TIMEOUT" ) const ( @@ -7653,6 +11569,20 @@ const ( FleetStatusTerminated = "TERMINATED" ) +const ( + // GameSessionPlacementStatePending is a GameSessionPlacementState enum value + GameSessionPlacementStatePending = "PENDING" + + // GameSessionPlacementStateFulfilled is a GameSessionPlacementState enum value + GameSessionPlacementStateFulfilled = "FULFILLED" + + // GameSessionPlacementStateCancelled is a GameSessionPlacementState enum value + GameSessionPlacementStateCancelled = "CANCELLED" + + // GameSessionPlacementStateTimedOut is a GameSessionPlacementState enum value + GameSessionPlacementStateTimedOut = "TIMED_OUT" +) + const ( // GameSessionStatusActive is a GameSessionStatus enum value GameSessionStatusActive = "ACTIVE" @@ -7707,6 +11637,12 @@ const ( // MetricNameIdleInstances is a MetricName enum value MetricNameIdleInstances = "IdleInstances" + + // MetricNameQueueDepth is a MetricName enum value + MetricNameQueueDepth = "QueueDepth" + + // MetricNameWaitTime is a MetricName enum value + MetricNameWaitTime = "WaitTime" ) const ( diff --git a/vendor/github.com/aws/aws-sdk-go/service/gamelift/errors.go b/vendor/github.com/aws/aws-sdk-go/service/gamelift/errors.go new file mode 100644 index 000000000..2613df2ae --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/gamelift/errors.go @@ -0,0 +1,96 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package gamelift + +const ( + + // ErrCodeConflictException for service response error code + // "ConflictException". + // + // The requested operation would cause a conflict with the current state of + // a service resource associated with the request. Resolve the conflict before + // retrying this request. + ErrCodeConflictException = "ConflictException" + + // ErrCodeFleetCapacityExceededException for service response error code + // "FleetCapacityExceededException". + // + // The specified fleet has no available instances to fulfill a CreateGameSession + // request. Clients can retry such requests immediately or after a waiting period. + ErrCodeFleetCapacityExceededException = "FleetCapacityExceededException" + + // ErrCodeGameSessionFullException for service response error code + // "GameSessionFullException". + // + // The game instance is currently full and cannot allow the requested player(s) + // to join. Clients can retry such requests immediately or after a waiting period. + ErrCodeGameSessionFullException = "GameSessionFullException" + + // ErrCodeIdempotentParameterMismatchException for service response error code + // "IdempotentParameterMismatchException". + // + // A game session with this custom ID string already exists in this fleet. Resolve + // this conflict before retrying this request. + ErrCodeIdempotentParameterMismatchException = "IdempotentParameterMismatchException" + + // ErrCodeInternalServiceException for service response error code + // "InternalServiceException". + // + // The service encountered an unrecoverable internal failure while processing + // the request. Clients can retry such requests immediately or after a waiting + // period. + ErrCodeInternalServiceException = "InternalServiceException" + + // ErrCodeInvalidFleetStatusException for service response error code + // "InvalidFleetStatusException". + // + // The requested operation would cause a conflict with the current state of + // a resource associated with the request and/or the fleet. Resolve the conflict + // before retrying. + ErrCodeInvalidFleetStatusException = "InvalidFleetStatusException" + + // ErrCodeInvalidGameSessionStatusException for service response error code + // "InvalidGameSessionStatusException". + // + // The requested operation would cause a conflict with the current state of + // a resource associated with the request and/or the game instance. Resolve + // the conflict before retrying. + ErrCodeInvalidGameSessionStatusException = "InvalidGameSessionStatusException" + + // ErrCodeInvalidRequestException for service response error code + // "InvalidRequestException". + // + // One or more parameter values in the request are invalid. Correct the invalid + // parameter values before retrying. + ErrCodeInvalidRequestException = "InvalidRequestException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // The requested operation would cause the resource to exceed the allowed service + // limit. Resolve the issue before retrying. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeNotFoundException for service response error code + // "NotFoundException". + // + // A service resource associated with the request could not be found. Clients + // should not retry such requests. + ErrCodeNotFoundException = "NotFoundException" + + // ErrCodeTerminalRoutingStrategyException for service response error code + // "TerminalRoutingStrategyException". + // + // The service is unable to resolve the routing for a particular alias because + // it has a terminal RoutingStrategy associated with it. The message returned + // in this exception is the message defined in the routing strategy itself. + // Such requests should only be retried if the routing strategy for the specified + // alias is modified. + ErrCodeTerminalRoutingStrategyException = "TerminalRoutingStrategyException" + + // ErrCodeUnauthorizedException for service response error code + // "UnauthorizedException". + // + // The client failed authentication. Clients should not retry such requests. + ErrCodeUnauthorizedException = "UnauthorizedException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/gamelift/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/gamelift/examples_test.go index 927b871f4..fb6c8d94c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/gamelift/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/gamelift/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleGameLift_CreateAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -47,11 +43,7 @@ func ExampleGameLift_CreateAlias() { } func ExampleGameLift_CreateBuild() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -79,11 +71,7 @@ func ExampleGameLift_CreateBuild() { } func ExampleGameLift_CreateFleet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -137,11 +125,7 @@ func ExampleGameLift_CreateFleet() { } func ExampleGameLift_CreateGameSession() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -173,18 +157,43 @@ func ExampleGameLift_CreateGameSession() { fmt.Println(resp) } -func ExampleGameLift_CreatePlayerSession() { - sess, err := session.NewSession() +func ExampleGameLift_CreateGameSessionQueue() { + sess := session.Must(session.NewSession()) + + svc := gamelift.New(sess) + + params := &gamelift.CreateGameSessionQueueInput{ + Name: aws.String("GameSessionQueueName"), // Required + Destinations: []*gamelift.GameSessionQueueDestination{ + { // Required + DestinationArn: aws.String("ArnStringModel"), + }, + // More values... + }, + TimeoutInSeconds: aws.Int64(1), + } + resp, err := svc.CreateGameSessionQueue(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleGameLift_CreatePlayerSession() { + sess := session.Must(session.NewSession()) + svc := gamelift.New(sess) params := &gamelift.CreatePlayerSessionInput{ GameSessionId: aws.String("ArnStringModel"), // Required PlayerId: aws.String("NonZeroAndMaxString"), // Required + PlayerData: aws.String("PlayerData"), } resp, err := svc.CreatePlayerSession(params) @@ -200,11 +209,7 @@ func ExampleGameLift_CreatePlayerSession() { } func ExampleGameLift_CreatePlayerSessions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -214,6 +219,10 @@ func ExampleGameLift_CreatePlayerSessions() { aws.String("NonZeroAndMaxString"), // Required // More values... }, + PlayerDataMap: map[string]*string{ + "Key": aws.String("PlayerData"), // Required + // More values... + }, } resp, err := svc.CreatePlayerSessions(params) @@ -229,11 +238,7 @@ func ExampleGameLift_CreatePlayerSessions() { } func ExampleGameLift_DeleteAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -254,11 +259,7 @@ func ExampleGameLift_DeleteAlias() { } func ExampleGameLift_DeleteBuild() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -279,11 +280,7 @@ func ExampleGameLift_DeleteBuild() { } func ExampleGameLift_DeleteFleet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -303,13 +300,30 @@ func ExampleGameLift_DeleteFleet() { fmt.Println(resp) } -func ExampleGameLift_DeleteScalingPolicy() { - sess, err := session.NewSession() +func ExampleGameLift_DeleteGameSessionQueue() { + sess := session.Must(session.NewSession()) + + svc := gamelift.New(sess) + + params := &gamelift.DeleteGameSessionQueueInput{ + Name: aws.String("GameSessionQueueName"), // Required + } + resp, err := svc.DeleteGameSessionQueue(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleGameLift_DeleteScalingPolicy() { + sess := session.Must(session.NewSession()) + svc := gamelift.New(sess) params := &gamelift.DeleteScalingPolicyInput{ @@ -330,11 +344,7 @@ func ExampleGameLift_DeleteScalingPolicy() { } func ExampleGameLift_DescribeAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -355,11 +365,7 @@ func ExampleGameLift_DescribeAlias() { } func ExampleGameLift_DescribeBuild() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -380,11 +386,7 @@ func ExampleGameLift_DescribeBuild() { } func ExampleGameLift_DescribeEC2InstanceLimits() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -405,11 +407,7 @@ func ExampleGameLift_DescribeEC2InstanceLimits() { } func ExampleGameLift_DescribeFleetAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -435,11 +433,7 @@ func ExampleGameLift_DescribeFleetAttributes() { } func ExampleGameLift_DescribeFleetCapacity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -465,11 +459,7 @@ func ExampleGameLift_DescribeFleetCapacity() { } func ExampleGameLift_DescribeFleetEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -494,11 +484,7 @@ func ExampleGameLift_DescribeFleetEvents() { } func ExampleGameLift_DescribeFleetPortSettings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -519,11 +505,7 @@ func ExampleGameLift_DescribeFleetPortSettings() { } func ExampleGameLift_DescribeFleetUtilization() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -549,11 +531,7 @@ func ExampleGameLift_DescribeFleetUtilization() { } func ExampleGameLift_DescribeGameSessionDetails() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -578,13 +556,56 @@ func ExampleGameLift_DescribeGameSessionDetails() { fmt.Println(resp) } -func ExampleGameLift_DescribeGameSessions() { - sess, err := session.NewSession() +func ExampleGameLift_DescribeGameSessionPlacement() { + sess := session.Must(session.NewSession()) + + svc := gamelift.New(sess) + + params := &gamelift.DescribeGameSessionPlacementInput{ + PlacementId: aws.String("IdStringModel"), // Required + } + resp, err := svc.DescribeGameSessionPlacement(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleGameLift_DescribeGameSessionQueues() { + sess := session.Must(session.NewSession()) + + svc := gamelift.New(sess) + + params := &gamelift.DescribeGameSessionQueuesInput{ + Limit: aws.Int64(1), + Names: []*string{ + aws.String("GameSessionQueueName"), // Required + // More values... + }, + NextToken: aws.String("NonZeroAndMaxString"), + } + resp, err := svc.DescribeGameSessionQueues(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleGameLift_DescribeGameSessions() { + sess := session.Must(session.NewSession()) + svc := gamelift.New(sess) params := &gamelift.DescribeGameSessionsInput{ @@ -609,11 +630,7 @@ func ExampleGameLift_DescribeGameSessions() { } func ExampleGameLift_DescribeInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -637,11 +654,7 @@ func ExampleGameLift_DescribeInstances() { } func ExampleGameLift_DescribePlayerSessions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -667,11 +680,7 @@ func ExampleGameLift_DescribePlayerSessions() { } func ExampleGameLift_DescribeRuntimeConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -692,11 +701,7 @@ func ExampleGameLift_DescribeRuntimeConfiguration() { } func ExampleGameLift_DescribeScalingPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -720,11 +725,7 @@ func ExampleGameLift_DescribeScalingPolicies() { } func ExampleGameLift_GetGameSessionLogUrl() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -744,13 +745,31 @@ func ExampleGameLift_GetGameSessionLogUrl() { fmt.Println(resp) } -func ExampleGameLift_ListAliases() { - sess, err := session.NewSession() +func ExampleGameLift_GetInstanceAccess() { + sess := session.Must(session.NewSession()) + + svc := gamelift.New(sess) + + params := &gamelift.GetInstanceAccessInput{ + FleetId: aws.String("FleetId"), // Required + InstanceId: aws.String("InstanceId"), // Required + } + resp, err := svc.GetInstanceAccess(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleGameLift_ListAliases() { + sess := session.Must(session.NewSession()) + svc := gamelift.New(sess) params := &gamelift.ListAliasesInput{ @@ -773,11 +792,7 @@ func ExampleGameLift_ListAliases() { } func ExampleGameLift_ListBuilds() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -800,11 +815,7 @@ func ExampleGameLift_ListBuilds() { } func ExampleGameLift_ListFleets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -827,11 +838,7 @@ func ExampleGameLift_ListFleets() { } func ExampleGameLift_PutScalingPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -859,11 +866,7 @@ func ExampleGameLift_PutScalingPolicy() { } func ExampleGameLift_RequestUploadCredentials() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -884,11 +887,7 @@ func ExampleGameLift_RequestUploadCredentials() { } func ExampleGameLift_ResolveAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -909,11 +908,7 @@ func ExampleGameLift_ResolveAlias() { } func ExampleGameLift_SearchGameSessions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -938,13 +933,76 @@ func ExampleGameLift_SearchGameSessions() { fmt.Println(resp) } -func ExampleGameLift_UpdateAlias() { - sess, err := session.NewSession() +func ExampleGameLift_StartGameSessionPlacement() { + sess := session.Must(session.NewSession()) + + svc := gamelift.New(sess) + + params := &gamelift.StartGameSessionPlacementInput{ + GameSessionQueueName: aws.String("GameSessionQueueName"), // Required + MaximumPlayerSessionCount: aws.Int64(1), // Required + PlacementId: aws.String("IdStringModel"), // Required + DesiredPlayerSessions: []*gamelift.DesiredPlayerSession{ + { // Required + PlayerData: aws.String("PlayerData"), + PlayerId: aws.String("NonZeroAndMaxString"), + }, + // More values... + }, + GameProperties: []*gamelift.GameProperty{ + { // Required + Key: aws.String("GamePropertyKey"), // Required + Value: aws.String("GamePropertyValue"), // Required + }, + // More values... + }, + GameSessionName: aws.String("NonZeroAndMaxString"), + PlayerLatencies: []*gamelift.PlayerLatency{ + { // Required + LatencyInMilliseconds: aws.Float64(1.0), + PlayerId: aws.String("NonZeroAndMaxString"), + RegionIdentifier: aws.String("NonZeroAndMaxString"), + }, + // More values... + }, + } + resp, err := svc.StartGameSessionPlacement(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleGameLift_StopGameSessionPlacement() { + sess := session.Must(session.NewSession()) + + svc := gamelift.New(sess) + + params := &gamelift.StopGameSessionPlacementInput{ + PlacementId: aws.String("IdStringModel"), // Required + } + resp, err := svc.StopGameSessionPlacement(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleGameLift_UpdateAlias() { + sess := session.Must(session.NewSession()) + svc := gamelift.New(sess) params := &gamelift.UpdateAliasInput{ @@ -971,11 +1029,7 @@ func ExampleGameLift_UpdateAlias() { } func ExampleGameLift_UpdateBuild() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -998,11 +1052,7 @@ func ExampleGameLift_UpdateBuild() { } func ExampleGameLift_UpdateFleetAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -1030,11 +1080,7 @@ func ExampleGameLift_UpdateFleetAttributes() { } func ExampleGameLift_UpdateFleetCapacity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -1058,11 +1104,7 @@ func ExampleGameLift_UpdateFleetCapacity() { } func ExampleGameLift_UpdateFleetPortSettings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -1101,11 +1143,7 @@ func ExampleGameLift_UpdateFleetPortSettings() { } func ExampleGameLift_UpdateGameSession() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := gamelift.New(sess) @@ -1129,13 +1167,37 @@ func ExampleGameLift_UpdateGameSession() { fmt.Println(resp) } -func ExampleGameLift_UpdateRuntimeConfiguration() { - sess, err := session.NewSession() +func ExampleGameLift_UpdateGameSessionQueue() { + sess := session.Must(session.NewSession()) + + svc := gamelift.New(sess) + + params := &gamelift.UpdateGameSessionQueueInput{ + Name: aws.String("GameSessionQueueName"), // Required + Destinations: []*gamelift.GameSessionQueueDestination{ + { // Required + DestinationArn: aws.String("ArnStringModel"), + }, + // More values... + }, + TimeoutInSeconds: aws.Int64(1), + } + resp, err := svc.UpdateGameSessionQueue(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleGameLift_UpdateRuntimeConfiguration() { + sess := session.Must(session.NewSession()) + svc := gamelift.New(sess) params := &gamelift.UpdateRuntimeConfigurationInput{ diff --git a/vendor/github.com/aws/aws-sdk-go/service/gamelift/gameliftiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/gamelift/gameliftiface/interface.go index 3bf6d223e..0a9319ea0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/gamelift/gameliftiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/gamelift/gameliftiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockGameLiftClient{} // @@ -75,6 +75,10 @@ type GameLiftAPI interface { CreateGameSession(*gamelift.CreateGameSessionInput) (*gamelift.CreateGameSessionOutput, error) + CreateGameSessionQueueRequest(*gamelift.CreateGameSessionQueueInput) (*request.Request, *gamelift.CreateGameSessionQueueOutput) + + CreateGameSessionQueue(*gamelift.CreateGameSessionQueueInput) (*gamelift.CreateGameSessionQueueOutput, error) + CreatePlayerSessionRequest(*gamelift.CreatePlayerSessionInput) (*request.Request, *gamelift.CreatePlayerSessionOutput) CreatePlayerSession(*gamelift.CreatePlayerSessionInput) (*gamelift.CreatePlayerSessionOutput, error) @@ -95,6 +99,10 @@ type GameLiftAPI interface { DeleteFleet(*gamelift.DeleteFleetInput) (*gamelift.DeleteFleetOutput, error) + DeleteGameSessionQueueRequest(*gamelift.DeleteGameSessionQueueInput) (*request.Request, *gamelift.DeleteGameSessionQueueOutput) + + DeleteGameSessionQueue(*gamelift.DeleteGameSessionQueueInput) (*gamelift.DeleteGameSessionQueueOutput, error) + DeleteScalingPolicyRequest(*gamelift.DeleteScalingPolicyInput) (*request.Request, *gamelift.DeleteScalingPolicyOutput) DeleteScalingPolicy(*gamelift.DeleteScalingPolicyInput) (*gamelift.DeleteScalingPolicyOutput, error) @@ -135,6 +143,14 @@ type GameLiftAPI interface { DescribeGameSessionDetails(*gamelift.DescribeGameSessionDetailsInput) (*gamelift.DescribeGameSessionDetailsOutput, error) + DescribeGameSessionPlacementRequest(*gamelift.DescribeGameSessionPlacementInput) (*request.Request, *gamelift.DescribeGameSessionPlacementOutput) + + DescribeGameSessionPlacement(*gamelift.DescribeGameSessionPlacementInput) (*gamelift.DescribeGameSessionPlacementOutput, error) + + DescribeGameSessionQueuesRequest(*gamelift.DescribeGameSessionQueuesInput) (*request.Request, *gamelift.DescribeGameSessionQueuesOutput) + + DescribeGameSessionQueues(*gamelift.DescribeGameSessionQueuesInput) (*gamelift.DescribeGameSessionQueuesOutput, error) + DescribeGameSessionsRequest(*gamelift.DescribeGameSessionsInput) (*request.Request, *gamelift.DescribeGameSessionsOutput) DescribeGameSessions(*gamelift.DescribeGameSessionsInput) (*gamelift.DescribeGameSessionsOutput, error) @@ -159,6 +175,10 @@ type GameLiftAPI interface { GetGameSessionLogUrl(*gamelift.GetGameSessionLogUrlInput) (*gamelift.GetGameSessionLogUrlOutput, error) + GetInstanceAccessRequest(*gamelift.GetInstanceAccessInput) (*request.Request, *gamelift.GetInstanceAccessOutput) + + GetInstanceAccess(*gamelift.GetInstanceAccessInput) (*gamelift.GetInstanceAccessOutput, error) + ListAliasesRequest(*gamelift.ListAliasesInput) (*request.Request, *gamelift.ListAliasesOutput) ListAliases(*gamelift.ListAliasesInput) (*gamelift.ListAliasesOutput, error) @@ -187,6 +207,14 @@ type GameLiftAPI interface { SearchGameSessions(*gamelift.SearchGameSessionsInput) (*gamelift.SearchGameSessionsOutput, error) + StartGameSessionPlacementRequest(*gamelift.StartGameSessionPlacementInput) (*request.Request, *gamelift.StartGameSessionPlacementOutput) + + StartGameSessionPlacement(*gamelift.StartGameSessionPlacementInput) (*gamelift.StartGameSessionPlacementOutput, error) + + StopGameSessionPlacementRequest(*gamelift.StopGameSessionPlacementInput) (*request.Request, *gamelift.StopGameSessionPlacementOutput) + + StopGameSessionPlacement(*gamelift.StopGameSessionPlacementInput) (*gamelift.StopGameSessionPlacementOutput, error) + UpdateAliasRequest(*gamelift.UpdateAliasInput) (*request.Request, *gamelift.UpdateAliasOutput) UpdateAlias(*gamelift.UpdateAliasInput) (*gamelift.UpdateAliasOutput, error) @@ -211,6 +239,10 @@ type GameLiftAPI interface { UpdateGameSession(*gamelift.UpdateGameSessionInput) (*gamelift.UpdateGameSessionOutput, error) + UpdateGameSessionQueueRequest(*gamelift.UpdateGameSessionQueueInput) (*request.Request, *gamelift.UpdateGameSessionQueueOutput) + + UpdateGameSessionQueue(*gamelift.UpdateGameSessionQueueInput) (*gamelift.UpdateGameSessionQueueOutput, error) + UpdateRuntimeConfigurationRequest(*gamelift.UpdateRuntimeConfigurationInput) (*request.Request, *gamelift.UpdateRuntimeConfigurationOutput) UpdateRuntimeConfiguration(*gamelift.UpdateRuntimeConfigurationInput) (*gamelift.UpdateRuntimeConfigurationOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/gamelift/service.go b/vendor/github.com/aws/aws-sdk-go/service/gamelift/service.go index cf6fa0a07..4d12beed4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/gamelift/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/gamelift/service.go @@ -11,144 +11,209 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) -// Welcome to the Amazon GameLift API Reference. Amazon GameLift is a managed -// Amazon Web Services (AWS) service for developers who need a scalable, server-based -// solution for multiplayer games. Amazon GameLift provides setup and deployment -// of game servers, and handles infrastructure scaling and session management. +// Amazon GameLift is a managed service for developers who need a scalable, +// dedicated server solution for their multiplayer games. Amazon GameLift provides +// tools to acquire computing resources and deploy game servers, scale game +// server capacity to meed player demand, and track in-depth metrics on player +// usage and server performance. // -// This reference describes the low-level service API for GameLift. You can -// call this API directly or use the AWS SDK (http://aws.amazon.com/tools/#sdk) -// for your preferred language. The AWS SDK includes a set of high-level GameLift -// actions multiplayer game sessions. Alternatively, you can use the AWS command-line -// interface (http://aws.amazon.com/cli/) (CLI) tool, which includes commands -// for GameLift. For administrative actions, you can also use the Amazon GameLift -// console. +// The Amazon GameLift service API includes important functionality to: // -// More Resources +// * Find game sessions and match players to games – Retrieve information +// on available game sessions; create new game sessions; send player requests +// to join a game session. // -// Amazon GameLift Developer Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/): -// Learn more about GameLift features and how to use them +// * Configure and manage game server resources – Manage builds, fleets, +// queues, and aliases; set autoscaling policies; retrieve logs and metrics. // -// Lumberyard and GameLift Tutorials (https://gamedev.amazon.com/forums/tutorials): -// Get started fast with walkthroughs and sample projects +// This reference guide describes the low-level service API for Amazon GameLift. +// We recommend using either the Amazon Web Services software development kit +// (AWS SDK (http://aws.amazon.com/tools/#sdk)), available in multiple languages, +// or the AWS command-line interface (http://aws.amazon.com/cli/) (CLI) tool. +// Both of these align with the low-level service API. In addition, you can +// use the AWS Management Console (https://console.aws.amazon.com/gamelift/home) +// for Amazon GameLift for many administrative actions. // -// GameDev Blog (http://aws.amazon.com/blogs/gamedev/): Stay up to date -// with new features and techniques +// MORE RESOURCES // -// GameDev Forums (https://gamedev.amazon.com/forums/spaces/123/gamelift-discussion.html): -// Connect with the GameDev community +// * Amazon GameLift Developer Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/) +// – Learn more about Amazon GameLift features and how to use them. // -// Manage Games and Players Through GameLift +// * Lumberyard and Amazon GameLift Tutorials (https://gamedev.amazon.com/forums/tutorials) +// – Get started fast with walkthroughs and sample projects. // -// Call these actions from your game clients and/or services to create and -// manage multiplayer game sessions and player sessions. +// * GameDev Blog (http://aws.amazon.com/blogs/gamedev/) – Stay up to date +// with new features and techniques. // -// Game sessions: +// * GameDev Forums (https://gamedev.amazon.com/forums/spaces/123/gamelift-discussion.html) +// – Connect with the GameDev community. // -// CreateGameSession +// * Amazon GameLift Document History (http://docs.aws.amazon.com/gamelift/latest/developerguide/doc-history.html) +// – See changes to the Amazon GameLift service, SDKs, and documentation, +// as well as links to release notes. // -// DescribeGameSessions +// API SUMMARY // -// DescribeGameSessionDetails +// This list offers a functional overview of the Amazon GameLift service API. // -// UpdateGameSession +// Finding Games and Joining Players // -// SearchGameSessions +// You can enable players to connect to game servers on Amazon GameLift from +// a game client or through a game service (such as a matchmaking service). +// You can use these operations to discover actively running game or start new +// games. You can also match players to games, either singly or as a group. // -// Player sessions: +// * Discover existing game sessions // -// CreatePlayerSession +// SearchGameSessions – Get all available game sessions or search for game sessions +// that match a set of criteria. // -// CreatePlayerSessions +// * Start a new game session // -// DescribePlayerSessions +// Game session placement – Use a queue to process new game session requests +// and create game sessions on fleets designated for the queue. // -// Other actions: +// StartGameSessionPlacement – Request a new game session placement and add +// one or more players to it. // -// GetGameSessionLogUrl +// DescribeGameSessionPlacement – Get details on a placement request, including +// status. // -// Set Up and Manage Game Servers +// StopGameSessionPlacement – Cancel a placement request. // -// Use these administrative actions to configure GameLift to host your game -// servers. When setting up GameLift, you will need to (1) configure a build -// for your game and upload build files, and (2) set up one or more fleets to -// host game sessions. Once you've created and activated a fleet, you can assign -// aliases to it, scale capacity, track performance and utilization, etc. +// CreateGameSession – Start a new game session on a specific fleet. // -// Game builds: +// * Manage game session objects // -// ListBuilds +// DescribeGameSessionDetails – Retrieve metadata and protection policies associated +// with one or more game sessions, including length of time active and current +// player count. // -// CreateBuild +// UpdateGameSession – Change game session settings, such as maximum player +// count and join policy. // -// DescribeBuild +// GetGameSessionLogUrl – Get the location of saved logs for a game session. // -// UpdateBuild +// * Manage player sessions objects // -// DeleteBuild +// CreatePlayerSession – Send a request for a player to join a game session. // -// RequestUploadCredentials +// CreatePlayerSessions – Send a request for multiple players to join a game +// session. // -// Fleets: +// DescribePlayerSessions – Get details on player activity, including status, +// playing time, and player data. // -// ListFleets +// Setting Up and Managing Game Servers // -// CreateFleet +// When setting up Amazon GameLift, first create a game build and upload the +// files to Amazon GameLift. Then use these operations to set up a fleet of +// resources to run your game servers. Manage games to scale capacity, adjust +// configuration settings, access raw utilization data, and more. // -// Describe fleets: +// * Manage game builds // -// DescribeFleetAttributes +// CreateBuild – Create a new build by uploading files stored in an Amazon S3 +// bucket. (To create a build stored at a local file location, use the AWS +// CLI command upload-build.) // -// DescribeFleetCapacity +// ListBuilds – Get a list of all builds uploaded to a Amazon GameLift region. // -// DescribeFleetPortSettings +// DescribeBuild – Retrieve information associated with a build. // -// DescribeFleetUtilization +// UpdateBuild – Change build metadata, including build name and version. // -// DescribeEC2InstanceLimits +// DeleteBuild – Remove a build from Amazon GameLift. // -// DescribeFleetEvents +// * Manage fleets // -// DescribeRuntimeConfiguration +// CreateFleet – Configure and activate a new fleet to run a build's game servers. // -// Update fleets: +// DeleteFleet – Terminate a fleet that is no longer running game servers or +// hosting players. // -// UpdateFleetAttributes +// View / update fleet configurations. // -// UpdateFleetCapacity +// ListFleets – Get a list of all fleet IDs in a Amazon GameLift region (all +// statuses). // -// UpdateFleetPortSettings +// DescribeFleetAttributes / UpdateFleetAttributes – View or change a fleet's +// metadata and settings for game session protection and resource creation +// limits. // -// UpdateRuntimeConfiguration +// DescribeFleetPortSettings / UpdateFleetPortSettings – View or change the +// inbound permissions (IP address and port setting ranges) allowed for a +// fleet. // -// DeleteFleet +// DescribeRuntimeConfiguration / UpdateRuntimeConfiguration – View or change +// what server processes (and how many) to run on each instance in a fleet. // -// Manage fleet aliases: +// DescribeInstances – Get information on each instance in a fleet, including +// instance ID, IP address, and status. // -// ListAliases +// * Control fleet capacity // -// CreateAlias +// DescribeEC2InstanceLimits – Retrieve maximum number of instances allowed +// for the current AWS account and the current usage level. // -// DescribeAlias +// DescribeFleetCapacity / UpdateFleetCapacity – Retrieve the capacity settings +// and the current number of instances in a fleet; adjust fleet capacity +// settings to scale up or down. // -// UpdateAlias +// Autoscale – Manage autoscaling rules and apply them to a fleet. // -// DeleteAlias +// PutScalingPolicy – Create a new autoscaling policy, or update an existing +// one. // -// ResolveAlias +// DescribeScalingPolicies – Retrieve an existing autoscaling policy. // -// Manage autoscaling: +// DeleteScalingPolicy – Delete an autoscaling policy and stop it from affecting +// a fleet's capacity. // -// PutScalingPolicy +// * Access fleet activity statistics // -// DescribeScalingPolicies +// DescribeFleetUtilization – Get current data on the number of server processes, +// game sessions, and players currently active on a fleet. // -// DeleteScalingPolicy +// DescribeFleetEvents – Get a fleet's logged events for a specified time span. // -// To view changes to the API, see the GameLift Document History (http://docs.aws.amazon.com/gamelift/latest/developerguide/doc-history.html) -// page. -//The service client's operations are safe to be used concurrently. +// DescribeGameSessions – Retrieve metadata associated with one or more game +// sessions, including length of time active and current player count. +// +// * Remotely access an instance +// +// GetInstanceAccess – Request access credentials needed to remotely connect +// to a specified instance on a fleet. +// +// * Manage fleet aliases +// +// CreateAlias – Define a new alias and optionally assign it to a fleet. +// +// ListAliases – Get all fleet aliases defined in a Amazon GameLift region. +// +// DescribeAlias – Retrieve information on an existing alias. +// +// UpdateAlias – Change settings for a alias, such as redirecting it from one +// fleet to another. +// +// DeleteAlias – Remove an alias from the region. +// +// ResolveAlias – Get the fleet ID that a specified alias points to. +// +// * Manage game session queues +// +// CreateGameSessionQueue – Create a queue for processing requests for new game +// sessions. +// +// DescribeGameSessionQueues – Get data on all game session queues defined in +// a Amazon GameLift region. +// +// UpdateGameSessionQueue – Change the configuration of a game session queue. +// +// DeleteGameSessionQueue – Remove a game session queue from the region. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01 type GameLift struct { *client.Client } @@ -159,8 +224,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "gamelift" +// Service information constants +const ( + ServiceName = "gamelift" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the GameLift client with a session. // If additional configuration is needed for the client instance use the optional @@ -173,17 +241,18 @@ const ServiceName = "gamelift" // // Create a GameLift client with additional configuration // svc := gamelift.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *GameLift { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *GameLift { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *GameLift { svc := &GameLift{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-10-01", diff --git a/vendor/github.com/aws/aws-sdk-go/service/glacier/api.go b/vendor/github.com/aws/aws-sdk-go/service/glacier/api.go index fd3d333ec..e48809ed0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/glacier/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/glacier/api.go @@ -37,7 +37,6 @@ const opAbortMultipartUpload = "AbortMultipartUpload" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) (req *request.Request, output *AbortMultipartUploadOutput) { op := &request.Operation{ Name: opAbortMultipartUpload, @@ -49,11 +48,10 @@ func (c *Glacier) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) input = &AbortMultipartUploadInput{} } + output = &AbortMultipartUploadOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AbortMultipartUploadOutput{} - req.Data = output return } @@ -69,14 +67,14 @@ func (c *Glacier) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) // // This operation is idempotent. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and underlying REST API, go to Working with -// Archives in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html) +// For conceptual information and underlying REST API, see Working with Archives +// in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html) // and Abort Multipart Upload (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-abort-upload.html) // in the Amazon Glacier Developer Guide. // @@ -88,17 +86,17 @@ func (c *Glacier) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) // API operation AbortMultipartUpload for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) AbortMultipartUpload(input *AbortMultipartUploadInput) (*AbortMultipartUploadOutput, error) { @@ -132,7 +130,6 @@ const opAbortVaultLock = "AbortVaultLock" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) AbortVaultLockRequest(input *AbortVaultLockInput) (req *request.Request, output *AbortVaultLockOutput) { op := &request.Operation{ Name: opAbortVaultLock, @@ -144,11 +141,10 @@ func (c *Glacier) AbortVaultLockRequest(input *AbortVaultLockInput) (req *reques input = &AbortVaultLockInput{} } + output = &AbortVaultLockOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AbortVaultLockOutput{} - req.Data = output return } @@ -179,17 +175,17 @@ func (c *Glacier) AbortVaultLockRequest(input *AbortVaultLockInput) (req *reques // API operation AbortVaultLock for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) AbortVaultLock(input *AbortVaultLockInput) (*AbortVaultLockOutput, error) { @@ -223,7 +219,6 @@ const opAddTagsToVault = "AddTagsToVault" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) AddTagsToVaultRequest(input *AddTagsToVaultInput) (req *request.Request, output *AddTagsToVaultOutput) { op := &request.Operation{ Name: opAddTagsToVault, @@ -235,11 +230,10 @@ func (c *Glacier) AddTagsToVaultRequest(input *AddTagsToVaultInput) (req *reques input = &AddTagsToVaultInput{} } + output = &AddTagsToVaultOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AddTagsToVaultOutput{} - req.Data = output return } @@ -260,20 +254,20 @@ func (c *Glacier) AddTagsToVaultRequest(input *AddTagsToVaultInput) (req *reques // API operation AddTagsToVault for usage and error information. // // Returned Error Codes: -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // Returned if the request results in a vault or account limit being exceeded. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) AddTagsToVault(input *AddTagsToVaultInput) (*AddTagsToVaultOutput, error) { @@ -307,7 +301,6 @@ const opCompleteMultipartUpload = "CompleteMultipartUpload" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) CompleteMultipartUploadRequest(input *CompleteMultipartUploadInput) (req *request.Request, output *ArchiveCreationOutput) { op := &request.Operation{ Name: opCompleteMultipartUpload, @@ -319,9 +312,8 @@ func (c *Glacier) CompleteMultipartUploadRequest(input *CompleteMultipartUploadI input = &CompleteMultipartUploadInput{} } - req = c.newRequest(op, input, output) output = &ArchiveCreationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -346,9 +338,9 @@ func (c *Glacier) CompleteMultipartUploadRequest(input *CompleteMultipartUploadI // upload. It includes checksum information for each uploaded part that can // be used to debug a bad checksum issue. // -// Additionally, Amazon Glacier also checks for any missing content ranges -// when assembling the archive, if missing content ranges are found, Amazon -// Glacier returns an error and the operation fails. +// Additionally, Amazon Glacier also checks for any missing content ranges when +// assembling the archive, if missing content ranges are found, Amazon Glacier +// returns an error and the operation fails. // // Complete Multipart Upload is an idempotent operation. After your first successful // complete multipart upload, if you call the operation again within a short @@ -361,14 +353,14 @@ func (c *Glacier) CompleteMultipartUploadRequest(input *CompleteMultipartUploadI // appear in List Multipart Uploads response, even if idempotent complete is // possible. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and underlying REST API, go to Uploading Large -// Archives in Parts (Multipart Upload) (http://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-archive-mpu.html) +// For conceptual information and underlying REST API, see Uploading Large Archives +// in Parts (Multipart Upload) (http://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-archive-mpu.html) // and Complete Multipart Upload (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-complete-upload.html) // in the Amazon Glacier Developer Guide. // @@ -380,17 +372,17 @@ func (c *Glacier) CompleteMultipartUploadRequest(input *CompleteMultipartUploadI // API operation CompleteMultipartUpload for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) CompleteMultipartUpload(input *CompleteMultipartUploadInput) (*ArchiveCreationOutput, error) { @@ -424,7 +416,6 @@ const opCompleteVaultLock = "CompleteVaultLock" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) CompleteVaultLockRequest(input *CompleteVaultLockInput) (req *request.Request, output *CompleteVaultLockOutput) { op := &request.Operation{ Name: opCompleteVaultLock, @@ -436,11 +427,10 @@ func (c *Glacier) CompleteVaultLockRequest(input *CompleteVaultLockInput) (req * input = &CompleteVaultLockInput{} } + output = &CompleteVaultLockOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CompleteVaultLockOutput{} - req.Data = output return } @@ -470,17 +460,17 @@ func (c *Glacier) CompleteVaultLockRequest(input *CompleteVaultLockInput) (req * // API operation CompleteVaultLock for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) CompleteVaultLock(input *CompleteVaultLockInput) (*CompleteVaultLockOutput, error) { @@ -514,7 +504,6 @@ const opCreateVault = "CreateVault" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) CreateVaultRequest(input *CreateVaultInput) (req *request.Request, output *CreateVaultOutput) { op := &request.Operation{ Name: opCreateVault, @@ -526,9 +515,8 @@ func (c *Glacier) CreateVaultRequest(input *CreateVaultInput) (req *request.Requ input = &CreateVaultInput{} } - req = c.newRequest(op, input, output) output = &CreateVaultOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -541,20 +529,20 @@ func (c *Glacier) CreateVaultRequest(input *CreateVaultInput) (req *request.Requ // // You must use the following guidelines when naming a vault. // -// Names can be between 1 and 255 characters long. +// * Names can be between 1 and 255 characters long. // -// Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), -// and '.' (period). +// * Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), +// and '.' (period). // -// This operation is idempotent. +// This operation is idempotent. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and underlying REST API, go to Creating a Vault +// For conceptual information and underlying REST API, see Creating a Vault // in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/creating-vaults.html) // and Create Vault (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-put.html) // in the Amazon Glacier Developer Guide. @@ -567,16 +555,16 @@ func (c *Glacier) CreateVaultRequest(input *CreateVaultInput) (req *request.Requ // API operation CreateVault for usage and error information. // // Returned Error Codes: -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // Returned if the request results in a vault or account limit being exceeded. // func (c *Glacier) CreateVault(input *CreateVaultInput) (*CreateVaultOutput, error) { @@ -610,7 +598,6 @@ const opDeleteArchive = "DeleteArchive" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) DeleteArchiveRequest(input *DeleteArchiveInput) (req *request.Request, output *DeleteArchiveOutput) { op := &request.Operation{ Name: opDeleteArchive, @@ -622,11 +609,10 @@ func (c *Glacier) DeleteArchiveRequest(input *DeleteArchiveInput) (req *request. input = &DeleteArchiveInput{} } + output = &DeleteArchiveOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteArchiveOutput{} - req.Data = output return } @@ -636,20 +622,24 @@ func (c *Glacier) DeleteArchiveRequest(input *DeleteArchiveInput) (req *request. // a retrieval of this archive will fail. Archive retrievals that are in progress // for this archive ID may or may not succeed according to the following scenarios: // -// If the archive retrieval job is actively preparing the data for download -// when Amazon Glacier receives the delete archive request, the archival retrieval -// operation might fail. If the archive retrieval job has successfully prepared -// the archive for download when Amazon Glacier receives the delete archive -// request, you will be able to download the output. This operation is idempotent. -// Attempting to delete an already-deleted archive does not result in an error. +// * If the archive retrieval job is actively preparing the data for download +// when Amazon Glacier receives the delete archive request, the archival +// retrieval operation might fail. +// +// * If the archive retrieval job has successfully prepared the archive for +// download when Amazon Glacier receives the delete archive request, you +// will be able to download the output. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// This operation is idempotent. Attempting to delete an already-deleted archive +// does not result in an error. +// +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and underlying REST API, go to Deleting an Archive +// For conceptual information and underlying REST API, see Deleting an Archive // in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/deleting-an-archive.html) // and Delete Archive (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-archive-delete.html) // in the Amazon Glacier Developer Guide. @@ -662,17 +652,17 @@ func (c *Glacier) DeleteArchiveRequest(input *DeleteArchiveInput) (req *request. // API operation DeleteArchive for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) DeleteArchive(input *DeleteArchiveInput) (*DeleteArchiveOutput, error) { @@ -706,7 +696,6 @@ const opDeleteVault = "DeleteVault" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) DeleteVaultRequest(input *DeleteVaultInput) (req *request.Request, output *DeleteVaultOutput) { op := &request.Operation{ Name: opDeleteVault, @@ -718,11 +707,10 @@ func (c *Glacier) DeleteVaultRequest(input *DeleteVaultInput) (req *request.Requ input = &DeleteVaultInput{} } + output = &DeleteVaultOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteVaultOutput{} - req.Data = output return } @@ -741,13 +729,13 @@ func (c *Glacier) DeleteVaultRequest(input *DeleteVaultInput) (req *request.Requ // // This operation is idempotent. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and underlying REST API, go to Deleting a Vault +// For conceptual information and underlying REST API, see Deleting a Vault // in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/deleting-vaults.html) // and Delete Vault (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-delete.html) // in the Amazon Glacier Developer Guide. @@ -760,17 +748,17 @@ func (c *Glacier) DeleteVaultRequest(input *DeleteVaultInput) (req *request.Requ // API operation DeleteVault for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) DeleteVault(input *DeleteVaultInput) (*DeleteVaultOutput, error) { @@ -804,7 +792,6 @@ const opDeleteVaultAccessPolicy = "DeleteVaultAccessPolicy" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) DeleteVaultAccessPolicyRequest(input *DeleteVaultAccessPolicyInput) (req *request.Request, output *DeleteVaultAccessPolicyOutput) { op := &request.Operation{ Name: opDeleteVaultAccessPolicy, @@ -816,11 +803,10 @@ func (c *Glacier) DeleteVaultAccessPolicyRequest(input *DeleteVaultAccessPolicyI input = &DeleteVaultAccessPolicyInput{} } + output = &DeleteVaultAccessPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteVaultAccessPolicyOutput{} - req.Data = output return } @@ -845,17 +831,17 @@ func (c *Glacier) DeleteVaultAccessPolicyRequest(input *DeleteVaultAccessPolicyI // API operation DeleteVaultAccessPolicy for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) DeleteVaultAccessPolicy(input *DeleteVaultAccessPolicyInput) (*DeleteVaultAccessPolicyOutput, error) { @@ -889,7 +875,6 @@ const opDeleteVaultNotifications = "DeleteVaultNotifications" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) DeleteVaultNotificationsRequest(input *DeleteVaultNotificationsInput) (req *request.Request, output *DeleteVaultNotificationsOutput) { op := &request.Operation{ Name: opDeleteVaultNotifications, @@ -901,11 +886,10 @@ func (c *Glacier) DeleteVaultNotificationsRequest(input *DeleteVaultNotification input = &DeleteVaultNotificationsInput{} } + output = &DeleteVaultNotificationsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteVaultNotificationsOutput{} - req.Data = output return } @@ -916,13 +900,13 @@ func (c *Glacier) DeleteVaultNotificationsRequest(input *DeleteVaultNotification // Amazon Glacier to completely disable the notifications and you might still // receive some notifications for a short time after you send the delete request. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and underlying REST API, go to Configuring Vault +// For conceptual information and underlying REST API, see Configuring Vault // Notifications in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/configuring-notifications.html) // and Delete Vault Notification Configuration (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-notifications-delete.html) // in the Amazon Glacier Developer Guide. @@ -935,17 +919,17 @@ func (c *Glacier) DeleteVaultNotificationsRequest(input *DeleteVaultNotification // API operation DeleteVaultNotifications for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) DeleteVaultNotifications(input *DeleteVaultNotificationsInput) (*DeleteVaultNotificationsOutput, error) { @@ -979,7 +963,6 @@ const opDescribeJob = "DescribeJob" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) DescribeJobRequest(input *DescribeJobInput) (req *request.Request, output *JobDescription) { op := &request.Operation{ Name: opDescribeJob, @@ -991,9 +974,8 @@ func (c *Glacier) DescribeJobRequest(input *DescribeJobInput) (req *request.Requ input = &DescribeJobInput{} } - req = c.newRequest(op, input, output) output = &JobDescription{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1004,21 +986,21 @@ func (c *Glacier) DescribeJobRequest(input *DescribeJobInput) (req *request.Requ // status code/message and the Amazon SNS topic to notify after Amazon Glacier // completes the job. For more information about initiating a job, see InitiateJob. // -// This operation enables you to check the status of your job. However, it -// is strongly recommended that you set up an Amazon SNS topic and specify it -// in your initiate job request so that Amazon Glacier can notify the topic -// after it completes the job. +// This operation enables you to check the status of your job. However, it is +// strongly recommended that you set up an Amazon SNS topic and specify it in +// your initiate job request so that Amazon Glacier can notify the topic after +// it completes the job. // // A job ID will not expire for at least 24 hours after Amazon Glacier completes // the job. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For information about the underlying REST API, go to Working with Archives +// For information about the underlying REST API, see Working with Archives // in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-describe-job-get.html) // in the Amazon Glacier Developer Guide. // @@ -1030,17 +1012,17 @@ func (c *Glacier) DescribeJobRequest(input *DescribeJobInput) (req *request.Requ // API operation DescribeJob for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) DescribeJob(input *DescribeJobInput) (*JobDescription, error) { @@ -1074,7 +1056,6 @@ const opDescribeVault = "DescribeVault" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) DescribeVaultRequest(input *DescribeVaultInput) (req *request.Request, output *DescribeVaultOutput) { op := &request.Operation{ Name: opDescribeVault, @@ -1086,9 +1067,8 @@ func (c *Glacier) DescribeVaultRequest(input *DescribeVaultInput) (req *request. input = &DescribeVaultInput{} } - req = c.newRequest(op, input, output) output = &DescribeVaultOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1104,13 +1084,13 @@ func (c *Glacier) DescribeVaultRequest(input *DescribeVaultInput) (req *request. // Amazon Glacier generates vault inventories approximately daily. For more // information, see Downloading a Vault Inventory in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/vault-inventory.html). // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and underlying REST API, go to Retrieving Vault +// For conceptual information and underlying REST API, see Retrieving Vault // Metadata in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/retrieving-vault-info.html) // and Describe Vault (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-get.html) // in the Amazon Glacier Developer Guide. @@ -1123,17 +1103,17 @@ func (c *Glacier) DescribeVaultRequest(input *DescribeVaultInput) (req *request. // API operation DescribeVault for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) DescribeVault(input *DescribeVaultInput) (*DescribeVaultOutput, error) { @@ -1167,7 +1147,6 @@ const opGetDataRetrievalPolicy = "GetDataRetrievalPolicy" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) GetDataRetrievalPolicyRequest(input *GetDataRetrievalPolicyInput) (req *request.Request, output *GetDataRetrievalPolicyOutput) { op := &request.Operation{ Name: opGetDataRetrievalPolicy, @@ -1179,9 +1158,8 @@ func (c *Glacier) GetDataRetrievalPolicyRequest(input *GetDataRetrievalPolicyInp input = &GetDataRetrievalPolicyInput{} } - req = c.newRequest(op, input, output) output = &GetDataRetrievalPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1199,13 +1177,13 @@ func (c *Glacier) GetDataRetrievalPolicyRequest(input *GetDataRetrievalPolicyInp // API operation GetDataRetrievalPolicy for usage and error information. // // Returned Error Codes: -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) GetDataRetrievalPolicy(input *GetDataRetrievalPolicyInput) (*GetDataRetrievalPolicyOutput, error) { @@ -1239,7 +1217,6 @@ const opGetJobOutput = "GetJobOutput" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) GetJobOutputRequest(input *GetJobOutputInput) (req *request.Request, output *GetJobOutputOutput) { op := &request.Operation{ Name: opGetJobOutput, @@ -1251,9 +1228,8 @@ func (c *Glacier) GetJobOutputRequest(input *GetJobOutputInput) (req *request.Re input = &GetJobOutputInput{} } - req = c.newRequest(op, input, output) output = &GetJobOutputOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1263,44 +1239,44 @@ func (c *Glacier) GetJobOutputRequest(input *GetJobOutputInput) (req *request.Re // Depending on the job type you specified when you initiated the job, the output // will be either the content of an archive or a vault inventory. // +// You can download all the job output or download a portion of the output by +// specifying a byte range. In the case of an archive retrieval job, depending +// on the byte range you specify, Amazon Glacier returns the checksum for the +// portion of the data. You can compute the checksum on the client and verify +// that the values match to ensure the portion you downloaded is the correct +// data. +// // A job ID will not expire for at least 24 hours after Amazon Glacier completes +// the job. That a byte range. For both archive and inventory retrieval jobs, +// you should verify the downloaded size against the size returned in the headers +// from the Get Job Output response. +// +// For archive retrieval jobs, you should also verify that the size is what +// you expected. If you download a portion of the output, the expected size +// is based on the range of bytes you specified. For example, if you specify +// a range of bytes=0-1048575, you should verify your download size is 1,048,576 +// bytes. If you download an entire archive, the expected size is the size of +// the archive when you uploaded it to Amazon Glacier The expected size is also +// returned in the headers from the Get Job Output response. +// +// In the case of an archive retrieval job, depending on the byte range you +// specify, Amazon Glacier returns the checksum for the portion of the data. +// To ensure the portion you downloaded is the correct data, compute the checksum +// on the client, verify that the values match, and verify that the size is +// what you expected. +// +// A job ID does not expire for at least 24 hours after Amazon Glacier completes // the job. That is, you can download the job output within the 24 hours period // after Amazon Glacier completes the job. // -// If the job output is large, then you can use the Range request header to -// retrieve a portion of the output. This allows you to download the entire -// output in smaller chunks of bytes. For example, suppose you have 1 GB of -// job output you want to download and you decide to download 128 MB chunks -// of data at a time, which is a total of eight Get Job Output requests. You -// use the following process to download the job output: -// -// Download a 128 MB chunk of output by specifying the appropriate byte range -// using the Range header. -// -// Along with the data, the response includes a SHA256 tree hash of the payload. -// You compute the checksum of the payload on the client and compare it with -// the checksum you received in the response to ensure you received all the -// expected data. -// -// Repeat steps 1 and 2 for all the eight 128 MB chunks of output data, each -// time specifying the appropriate byte range. -// -// After downloading all the parts of the job output, you have a list of -// eight checksum values. Compute the tree hash of these values to find the -// checksum of the entire output. Using the DescribeJob API, obtain job information -// of the job that provided you the output. The response includes the checksum -// of the entire archive stored in Amazon Glacier. You compare this value with -// the checksum you computed to ensure you have downloaded the entire archive -// content with no errors. -// -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and the underlying REST API, go to Downloading -// a Vault Inventory (http://docs.aws.amazon.com/amazonglacier/latest/dev/vault-inventory.html), +// For conceptual information and the underlying REST API, see Downloading a +// Vault Inventory (http://docs.aws.amazon.com/amazonglacier/latest/dev/vault-inventory.html), // Downloading an Archive (http://docs.aws.amazon.com/amazonglacier/latest/dev/downloading-an-archive.html), // and Get Job Output (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-job-output-get.html) // @@ -1312,17 +1288,17 @@ func (c *Glacier) GetJobOutputRequest(input *GetJobOutputInput) (req *request.Re // API operation GetJobOutput for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) GetJobOutput(input *GetJobOutputInput) (*GetJobOutputOutput, error) { @@ -1356,7 +1332,6 @@ const opGetVaultAccessPolicy = "GetVaultAccessPolicy" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) GetVaultAccessPolicyRequest(input *GetVaultAccessPolicyInput) (req *request.Request, output *GetVaultAccessPolicyOutput) { op := &request.Operation{ Name: opGetVaultAccessPolicy, @@ -1368,9 +1343,8 @@ func (c *Glacier) GetVaultAccessPolicyRequest(input *GetVaultAccessPolicyInput) input = &GetVaultAccessPolicyInput{} } - req = c.newRequest(op, input, output) output = &GetVaultAccessPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1391,17 +1365,17 @@ func (c *Glacier) GetVaultAccessPolicyRequest(input *GetVaultAccessPolicyInput) // API operation GetVaultAccessPolicy for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) GetVaultAccessPolicy(input *GetVaultAccessPolicyInput) (*GetVaultAccessPolicyOutput, error) { @@ -1435,7 +1409,6 @@ const opGetVaultLock = "GetVaultLock" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) GetVaultLockRequest(input *GetVaultLockInput) (req *request.Request, output *GetVaultLockOutput) { op := &request.Operation{ Name: opGetVaultLock, @@ -1447,25 +1420,26 @@ func (c *Glacier) GetVaultLockRequest(input *GetVaultLockInput) (req *request.Re input = &GetVaultLockInput{} } - req = c.newRequest(op, input, output) output = &GetVaultLockOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // GetVaultLock API operation for Amazon Glacier. // // This operation retrieves the following attributes from the lock-policy subresource -// set on the specified vault: The vault lock policy set on the vault. +// set on the specified vault: +// +// * The vault lock policy set on the vault. // -// The state of the vault lock, which is either InProgess or Locked. +// * The state of the vault lock, which is either InProgess or Locked. // -// When the lock ID expires. The lock ID is used to complete the vault locking -// process. +// * When the lock ID expires. The lock ID is used to complete the vault +// locking process. // -// When the vault lock was initiated and put into the InProgress state. +// * When the vault lock was initiated and put into the InProgress state. // -// A vault lock is put into the InProgress state by calling InitiateVaultLock. +// A vault lock is put into the InProgress state by calling InitiateVaultLock. // A vault lock is put into the Locked state by calling CompleteVaultLock. You // can abort the vault locking process by calling AbortVaultLock. For more information // about the vault locking process, Amazon Glacier Vault Lock (http://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock.html). @@ -1482,17 +1456,17 @@ func (c *Glacier) GetVaultLockRequest(input *GetVaultLockInput) (req *request.Re // API operation GetVaultLock for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) GetVaultLock(input *GetVaultLockInput) (*GetVaultLockOutput, error) { @@ -1526,7 +1500,6 @@ const opGetVaultNotifications = "GetVaultNotifications" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) GetVaultNotificationsRequest(input *GetVaultNotificationsInput) (req *request.Request, output *GetVaultNotificationsOutput) { op := &request.Operation{ Name: opGetVaultNotifications, @@ -1538,9 +1511,8 @@ func (c *Glacier) GetVaultNotificationsRequest(input *GetVaultNotificationsInput input = &GetVaultNotificationsInput{} } - req = c.newRequest(op, input, output) output = &GetVaultNotificationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1555,13 +1527,13 @@ func (c *Glacier) GetVaultNotificationsRequest(input *GetVaultNotificationsInput // vault notifications, see Configuring Vault Notifications in Amazon Glacier // (http://docs.aws.amazon.com/amazonglacier/latest/dev/configuring-notifications.html). // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and underlying REST API, go to Configuring Vault +// For conceptual information and underlying REST API, see Configuring Vault // Notifications in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/configuring-notifications.html) // and Get Vault Notification Configuration (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-notifications-get.html) // in the Amazon Glacier Developer Guide. @@ -1574,17 +1546,17 @@ func (c *Glacier) GetVaultNotificationsRequest(input *GetVaultNotificationsInput // API operation GetVaultNotifications for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) GetVaultNotifications(input *GetVaultNotificationsInput) (*GetVaultNotificationsOutput, error) { @@ -1618,7 +1590,6 @@ const opInitiateJob = "InitiateJob" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) InitiateJobRequest(input *InitiateJobInput) (req *request.Request, output *InitiateJobOutput) { op := &request.Operation{ Name: opInitiateJob, @@ -1630,9 +1601,8 @@ func (c *Glacier) InitiateJobRequest(input *InitiateJobInput) (req *request.Requ input = &InitiateJobInput{} } - req = c.newRequest(op, input, output) output = &InitiateJobOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1644,7 +1614,7 @@ func (c *Glacier) InitiateJobRequest(input *InitiateJobInput) (req *request.Requ // // Retrieving data from Amazon Glacier is a two-step process: // -// Initiate a retrieval job. +// Initiate a retrieval job. // // A data retrieval policy can cause your initiate retrieval job request to // fail with a PolicyEnforcedException exception. For more information about @@ -1652,9 +1622,9 @@ func (c *Glacier) InitiateJobRequest(input *InitiateJobInput) (req *request.Requ // For more information about the PolicyEnforcedException exception, see Error // Responses (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-error-responses.html). // -// After the job completes, download the bytes. +// After the job completes, download the bytes. // -// The retrieval request is executed asynchronously. When you initiate a retrieval +// The retrieval request is executed asynchronously. When you initiate a retrieval // job, Amazon Glacier creates a job and returns a job ID in the response. When // Amazon Glacier completes the job, you can get the job output (archive or // inventory data). For information about getting job output, see GetJobOutput @@ -1663,35 +1633,35 @@ func (c *Glacier) InitiateJobRequest(input *InitiateJobInput) (req *request.Requ // The job must complete before you can get its output. To determine when a // job is complete, you have the following options: // -// Use Amazon SNS Notification You can specify an Amazon Simple Notification -// Service (Amazon SNS) topic to which Amazon Glacier can post a notification -// after the job is completed. You can specify an SNS topic per job request. -// The notification is sent only after Amazon Glacier completes the job. In -// addition to specifying an SNS topic per job request, you can configure vault -// notifications for a vault so that job notifications are always sent. For -// more information, see SetVaultNotifications. +// * Use Amazon SNS Notification You can specify an Amazon Simple Notification +// Service (Amazon SNS) topic to which Amazon Glacier can post a notification +// after the job is completed. You can specify an SNS topic per job request. +// The notification is sent only after Amazon Glacier completes the job. +// In addition to specifying an SNS topic per job request, you can configure +// vault notifications for a vault so that job notifications are always sent. +// For more information, see SetVaultNotifications. // -// Get job details You can make a DescribeJob request to obtain job status -// information while a job is in progress. However, it is more efficient to -// use an Amazon SNS notification to determine when a job is complete. +// * Get job details You can make a DescribeJob request to obtain job status +// information while a job is in progress. However, it is more efficient +// to use an Amazon SNS notification to determine when a job is complete. // -// The information you get via notification is same that you get by calling +// The information you get via notification is same that you get by calling // DescribeJob. // -// If for a specific event, you add both the notification configuration on -// the vault and also specify an SNS topic in your initiate job request, Amazon +// If for a specific event, you add both the notification configuration on the +// vault and also specify an SNS topic in your initiate job request, Amazon // Glacier sends both notifications. For more information, see SetVaultNotifications. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // // About the Vault Inventory // -// Amazon Glacier prepares an inventory for each vault periodically, every -// 24 hours. When you initiate a job for a vault inventory, Amazon Glacier returns +// Amazon Glacier prepares an inventory for each vault periodically, every 24 +// hours. When you initiate a job for a vault inventory, Amazon Glacier returns // the last inventory for the vault. The inventory data you get might be up // to a day or two days old. Also, the initiate inventory job might take some // time to complete before you can download the vault inventory. So you do not @@ -1711,13 +1681,13 @@ func (c *Glacier) InitiateJobRequest(input *InitiateJobInput) (req *request.Requ // // Filtering by Archive Creation Date // -// You can retrieve inventory items for archives created between StartDate -// and EndDate by specifying values for these parameters in the InitiateJob -// request. Archives created on or after the StartDate and before the EndDate -// will be returned. If you only provide the StartDate without the EndDate, -// you will retrieve the inventory for all archives created on or after the -// StartDate. If you only provide the EndDate without the StartDate, you will -// get back the inventory for all archives created before the EndDate. +// You can retrieve inventory items for archives created between StartDate and +// EndDate by specifying values for these parameters in the InitiateJob request. +// Archives created on or after the StartDate and before the EndDate will be +// returned. If you only provide the StartDate without the EndDate, you will +// retrieve the inventory for all archives created on or after the StartDate. +// If you only provide the EndDate without the StartDate, you will get back +// the inventory for all archives created before the EndDate. // // Limiting Inventory Items per Retrieval // @@ -1736,8 +1706,8 @@ func (c *Glacier) InitiateJobRequest(input *InitiateJobInput) (req *request.Requ // // About Ranged Archive Retrieval // -// You can initiate an archive retrieval for the whole archive or a range -// of the archive. In the case of ranged archive retrieval, you specify a byte +// You can initiate an archive retrieval for the whole archive or a range of +// the archive. In the case of ranged archive retrieval, you specify a byte // range to return or the whole archive. The range specified must be megabyte // (MB) aligned, that is the range start value must be divisible by 1 MB and // range end value plus 1 must be divisible by 1 MB or equal the end of the @@ -1745,16 +1715,36 @@ func (c *Glacier) InitiateJobRequest(input *InitiateJobInput) (req *request.Requ // returns a 400 response. Furthermore, to ensure you get checksum values for // data you download using Get Job Output API, the range must be tree hash aligned. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and the underlying REST API, go to Initiate a -// Job (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-initiate-job-post.html) +// For conceptual information and the underlying REST API, see Initiate a Job +// (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-initiate-job-post.html) // and Downloading a Vault Inventory (http://docs.aws.amazon.com/amazonglacier/latest/dev/vault-inventory.html) // +// Expedited and Bulk Archive Retrievals +// +// When retrieving an archive, you can specify one of the following options +// in the Tier field of the request body: +// +// * Standard The default type of retrieval, which allows access to any of +// your archives within several hours. Standard retrievals typically complete +// within 3–5 hours. +// +// * Bulk Amazon Glacier’s lowest-cost retrieval option, which enables you +// to retrieve large amounts of data inexpensively in a day. Bulk retrieval +// requests typically complete within 5–12 hours. +// +// * Expedited Amazon Glacier’s option for the fastest retrievals. Archives +// requested using the expedited retrievals typically become accessible within +// 1–5 minutes. +// +// For more information about expedited and bulk retrievals, see Retrieving +// Amazon Glacier Archives (http://docs.aws.amazon.com/amazonglacier/latest/dev/downloading-an-archive-two-steps.html). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1763,21 +1753,26 @@ func (c *Glacier) InitiateJobRequest(input *InitiateJobInput) (req *request.Requ // API operation InitiateJob for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * PolicyEnforcedException +// * ErrCodePolicyEnforcedException "PolicyEnforcedException" // Returned if a retrieval job would exceed the current data policy's retrieval // rate limit. For more information about data retrieval policies, // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeInsufficientCapacityException "InsufficientCapacityException" +// Returned if there is insufficient capacity to process this expedited request. +// This error only applies to expedited retrievals and not to standard or bulk +// retrievals. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) InitiateJob(input *InitiateJobInput) (*InitiateJobOutput, error) { @@ -1811,7 +1806,6 @@ const opInitiateMultipartUpload = "InitiateMultipartUpload" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) InitiateMultipartUploadRequest(input *InitiateMultipartUploadInput) (req *request.Request, output *InitiateMultipartUploadOutput) { op := &request.Operation{ Name: opInitiateMultipartUpload, @@ -1823,9 +1817,8 @@ func (c *Glacier) InitiateMultipartUploadRequest(input *InitiateMultipartUploadI input = &InitiateMultipartUploadInput{} } - req = c.newRequest(op, input, output) output = &InitiateMultipartUploadOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1856,14 +1849,14 @@ func (c *Glacier) InitiateMultipartUploadRequest(input *InitiateMultipartUploadI // upload resource if you cancel the multipart upload or it may be removed if // there is no activity for a period of 24 hours. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and underlying REST API, go to Uploading Large -// Archives in Parts (Multipart Upload) (http://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-archive-mpu.html) +// For conceptual information and underlying REST API, see Uploading Large Archives +// in Parts (Multipart Upload) (http://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-archive-mpu.html) // and Initiate Multipart Upload (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-initiate-upload.html) // in the Amazon Glacier Developer Guide. // @@ -1875,17 +1868,17 @@ func (c *Glacier) InitiateMultipartUploadRequest(input *InitiateMultipartUploadI // API operation InitiateMultipartUpload for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) InitiateMultipartUpload(input *InitiateMultipartUploadInput) (*InitiateMultipartUploadOutput, error) { @@ -1919,7 +1912,6 @@ const opInitiateVaultLock = "InitiateVaultLock" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) InitiateVaultLockRequest(input *InitiateVaultLockInput) (req *request.Request, output *InitiateVaultLockOutput) { op := &request.Operation{ Name: opInitiateVaultLock, @@ -1931,24 +1923,24 @@ func (c *Glacier) InitiateVaultLockRequest(input *InitiateVaultLockInput) (req * input = &InitiateVaultLockInput{} } - req = c.newRequest(op, input, output) output = &InitiateVaultLockOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // InitiateVaultLock API operation for Amazon Glacier. // // This operation initiates the vault locking process by doing the following: -// Installing a vault lock policy on the specified vault. // -// Setting the lock state of vault lock to InProgress. +// * Installing a vault lock policy on the specified vault. // -// Returning a lock ID, which is used to complete the vault locking process. +// * Setting the lock state of vault lock to InProgress. // -// You can set one vault lock policy for each vault and this policy can -// be up to 20 KB in size. For more information about vault lock policies, see -// Amazon Glacier Access Control with Vault Lock Policies (http://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock-policy.html). +// * Returning a lock ID, which is used to complete the vault locking process. +// +// You can set one vault lock policy for each vault and this policy can be up +// to 20 KB in size. For more information about vault lock policies, see Amazon +// Glacier Access Control with Vault Lock Policies (http://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock-policy.html). // // You must complete the vault locking process within 24 hours after the vault // lock enters the InProgress state. After the 24 hour window ends, the lock @@ -1976,17 +1968,17 @@ func (c *Glacier) InitiateVaultLockRequest(input *InitiateVaultLockInput) (req * // API operation InitiateVaultLock for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) InitiateVaultLock(input *InitiateVaultLockInput) (*InitiateVaultLockOutput, error) { @@ -2020,7 +2012,6 @@ const opListJobs = "ListJobs" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) ListJobsRequest(input *ListJobsInput) (req *request.Request, output *ListJobsOutput) { op := &request.Operation{ Name: opListJobs, @@ -2038,9 +2029,8 @@ func (c *Glacier) ListJobsRequest(input *ListJobsInput) (req *request.Request, o input = &ListJobsInput{} } - req = c.newRequest(op, input, output) output = &ListJobsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2061,31 +2051,31 @@ func (c *Glacier) ListJobsRequest(input *ListJobsInput) (req *request.Request, o // // To retrieve an archive or retrieve a vault inventory from Amazon Glacier, // you first initiate a job, and after the job completes, you download the data. -// For an archive retrieval, the output is the archive data, and for an inventory +// For an archive retrieval, the output is the archive data. For an inventory // retrieval, it is the inventory list. The List Job operation returns a list // of these jobs sorted by job initiation time. // -// This List Jobs operation supports pagination. By default, this operation -// returns up to 1,000 jobs in the response. You should always check the response -// for a marker at which to continue the list; if there are no more items the -// marker is null. To return a list of jobs that begins at a specific job, set -// the marker request parameter to the value you obtained from a previous List -// Jobs request. You can also limit the number of jobs returned in the response -// by specifying the limit parameter in the request. -// -// Additionally, you can filter the jobs list returned by specifying an optional -// statuscode (InProgress, Succeeded, or Failed) and completed (true, false) -// parameter. The statuscode allows you to specify that only jobs that match -// a specified status are returned. The completed parameter allows you to specify -// that only jobs in a specific completion state are returned. -// -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions -// by default. You must grant them explicit permission to perform specific actions. -// For more information, see Access Control Using AWS Identity and Access Management -// (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). +// The List Jobs operation supports pagination. You should always check the +// response Marker field. If there are no more jobs to list, the Marker field +// is set to null. If there are more jobs to list, the Marker field is set to +// a non-null value, which you can use to continue the pagination of the list. +// To return a list of jobs that begins at a specific job, set the marker request +// parameter to the Marker value for that job that you obtained from a previous +// List Jobs request. +// +// You can set a maximum limit for the number of jobs returned in the response +// by specifying the limit parameter in the request. The default limit is 1000. +// The number of jobs returned might be fewer than the limit, but the number +// of returned jobs never exceeds the limit. +// +// Additionally, you can filter the jobs list returned by specifying the optional +// statuscode parameter or completed parameter, or both. Using the statuscode +// parameter, you can specify to return only jobs that match either the InProgress, +// Succeeded, or Failed status. Using the completed parameter, you can specify +// to return only jobs that were completed (true) or jobs that were not completed +// (false). // -// For the underlying REST API, go to List Jobs (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-jobs-get.html) +// For the underlying REST API, see List Jobs (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-jobs-get.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2095,17 +2085,17 @@ func (c *Glacier) ListJobsRequest(input *ListJobsInput) (req *request.Request, o // API operation ListJobs for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) { @@ -2164,7 +2154,6 @@ const opListMultipartUploads = "ListMultipartUploads" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) (req *request.Request, output *ListMultipartUploadsOutput) { op := &request.Operation{ Name: opListMultipartUploads, @@ -2182,9 +2171,8 @@ func (c *Glacier) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) input = &ListMultipartUploadsInput{} } - req = c.newRequest(op, input, output) output = &ListMultipartUploadsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2210,13 +2198,13 @@ func (c *Glacier) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) // and does not require a multipart upload ID. The List Parts operation requires // a multipart upload ID since parts are associated with a single upload. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and the underlying REST API, go to Working with +// For conceptual information and the underlying REST API, see Working with // Archives in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html) // and List Multipart Uploads (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-list-uploads.html) // in the Amazon Glacier Developer Guide. @@ -2229,17 +2217,17 @@ func (c *Glacier) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) // API operation ListMultipartUploads for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) ListMultipartUploads(input *ListMultipartUploadsInput) (*ListMultipartUploadsOutput, error) { @@ -2298,7 +2286,6 @@ const opListParts = "ListParts" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) ListPartsRequest(input *ListPartsInput) (req *request.Request, output *ListPartsOutput) { op := &request.Operation{ Name: opListParts, @@ -2316,9 +2303,8 @@ func (c *Glacier) ListPartsRequest(input *ListPartsInput) (req *request.Request, input = &ListPartsInput{} } - req = c.newRequest(op, input, output) output = &ListPartsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2338,13 +2324,13 @@ func (c *Glacier) ListPartsRequest(input *ListPartsInput) (req *request.Request, // from a previous List Parts request. You can also limit the number of parts // returned in the response by specifying the limit parameter in the request. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and the underlying REST API, go to Working with +// For conceptual information and the underlying REST API, see Working with // Archives in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html) // and List Parts (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-list-parts.html) // in the Amazon Glacier Developer Guide. @@ -2357,17 +2343,17 @@ func (c *Glacier) ListPartsRequest(input *ListPartsInput) (req *request.Request, // API operation ListParts for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) ListParts(input *ListPartsInput) (*ListPartsOutput, error) { @@ -2401,6 +2387,74 @@ func (c *Glacier) ListPartsPages(input *ListPartsInput, fn func(p *ListPartsOutp }) } +const opListProvisionedCapacity = "ListProvisionedCapacity" + +// ListProvisionedCapacityRequest generates a "aws/request.Request" representing the +// client's request for the ListProvisionedCapacity operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListProvisionedCapacity for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListProvisionedCapacity method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListProvisionedCapacityRequest method. +// req, resp := client.ListProvisionedCapacityRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Glacier) ListProvisionedCapacityRequest(input *ListProvisionedCapacityInput) (req *request.Request, output *ListProvisionedCapacityOutput) { + op := &request.Operation{ + Name: opListProvisionedCapacity, + HTTPMethod: "GET", + HTTPPath: "/{accountId}/provisioned-capacity", + } + + if input == nil { + input = &ListProvisionedCapacityInput{} + } + + output = &ListProvisionedCapacityOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListProvisionedCapacity API operation for Amazon Glacier. +// +// This operation lists the provisioned capacity for the specified AWS account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation ListProvisionedCapacity for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned if a parameter of the request is incorrectly specified. +// +// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// Returned if a required header or parameter is missing from the request. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned if the service cannot complete the request. +// +func (c *Glacier) ListProvisionedCapacity(input *ListProvisionedCapacityInput) (*ListProvisionedCapacityOutput, error) { + req, out := c.ListProvisionedCapacityRequest(input) + err := req.Send() + return out, err +} + const opListTagsForVault = "ListTagsForVault" // ListTagsForVaultRequest generates a "aws/request.Request" representing the @@ -2426,7 +2480,6 @@ const opListTagsForVault = "ListTagsForVault" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) ListTagsForVaultRequest(input *ListTagsForVaultInput) (req *request.Request, output *ListTagsForVaultOutput) { op := &request.Operation{ Name: opListTagsForVault, @@ -2438,9 +2491,8 @@ func (c *Glacier) ListTagsForVaultRequest(input *ListTagsForVaultInput) (req *re input = &ListTagsForVaultInput{} } - req = c.newRequest(op, input, output) output = &ListTagsForVaultOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2458,17 +2510,17 @@ func (c *Glacier) ListTagsForVaultRequest(input *ListTagsForVaultInput) (req *re // API operation ListTagsForVault for usage and error information. // // Returned Error Codes: -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) ListTagsForVault(input *ListTagsForVaultInput) (*ListTagsForVaultOutput, error) { @@ -2502,7 +2554,6 @@ const opListVaults = "ListVaults" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) ListVaultsRequest(input *ListVaultsInput) (req *request.Request, output *ListVaultsOutput) { op := &request.Operation{ Name: opListVaults, @@ -2520,9 +2571,8 @@ func (c *Glacier) ListVaultsRequest(input *ListVaultsInput) (req *request.Reques input = &ListVaultsInput{} } - req = c.newRequest(op, input, output) output = &ListVaultsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2531,22 +2581,21 @@ func (c *Glacier) ListVaultsRequest(input *ListVaultsInput) (req *request.Reques // This operation lists all vaults owned by the calling user's account. The // list returned in the response is ASCII-sorted by vault name. // -// By default, this operation returns up to 1,000 items. If there are more -// vaults to list, the response marker field contains the vault Amazon Resource -// Name (ARN) at which to continue the list with a new List Vaults request; -// otherwise, the marker field is null. To return a list of vaults that begins -// at a specific vault, set the marker request parameter to the vault ARN you -// obtained from a previous List Vaults request. You can also limit the number -// of vaults returned in the response by specifying the limit parameter in the -// request. +// By default, this operation returns up to 1,000 items. If there are more vaults +// to list, the response marker field contains the vault Amazon Resource Name +// (ARN) at which to continue the list with a new List Vaults request; otherwise, +// the marker field is null. To return a list of vaults that begins at a specific +// vault, set the marker request parameter to the vault ARN you obtained from +// a previous List Vaults request. You can also limit the number of vaults returned +// in the response by specifying the limit parameter in the request. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and underlying REST API, go to Retrieving Vault +// For conceptual information and underlying REST API, see Retrieving Vault // Metadata in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/retrieving-vault-info.html) // and List Vaults (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-vaults-get.html) // in the Amazon Glacier Developer Guide. @@ -2559,17 +2608,17 @@ func (c *Glacier) ListVaultsRequest(input *ListVaultsInput) (req *request.Reques // API operation ListVaults for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) ListVaults(input *ListVaultsInput) (*ListVaultsOutput, error) { @@ -2603,6 +2652,77 @@ func (c *Glacier) ListVaultsPages(input *ListVaultsInput, fn func(p *ListVaultsO }) } +const opPurchaseProvisionedCapacity = "PurchaseProvisionedCapacity" + +// PurchaseProvisionedCapacityRequest generates a "aws/request.Request" representing the +// client's request for the PurchaseProvisionedCapacity operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See PurchaseProvisionedCapacity for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the PurchaseProvisionedCapacity method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the PurchaseProvisionedCapacityRequest method. +// req, resp := client.PurchaseProvisionedCapacityRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Glacier) PurchaseProvisionedCapacityRequest(input *PurchaseProvisionedCapacityInput) (req *request.Request, output *PurchaseProvisionedCapacityOutput) { + op := &request.Operation{ + Name: opPurchaseProvisionedCapacity, + HTTPMethod: "POST", + HTTPPath: "/{accountId}/provisioned-capacity", + } + + if input == nil { + input = &PurchaseProvisionedCapacityInput{} + } + + output = &PurchaseProvisionedCapacityOutput{} + req = c.newRequest(op, input, output) + return +} + +// PurchaseProvisionedCapacity API operation for Amazon Glacier. +// +// This operation purchases a provisioned capacity unit for an AWS account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation PurchaseProvisionedCapacity for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned if a parameter of the request is incorrectly specified. +// +// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// Returned if a required header or parameter is missing from the request. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Returned if the request results in a vault or account limit being exceeded. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned if the service cannot complete the request. +// +func (c *Glacier) PurchaseProvisionedCapacity(input *PurchaseProvisionedCapacityInput) (*PurchaseProvisionedCapacityOutput, error) { + req, out := c.PurchaseProvisionedCapacityRequest(input) + err := req.Send() + return out, err +} + const opRemoveTagsFromVault = "RemoveTagsFromVault" // RemoveTagsFromVaultRequest generates a "aws/request.Request" representing the @@ -2628,7 +2748,6 @@ const opRemoveTagsFromVault = "RemoveTagsFromVault" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) RemoveTagsFromVaultRequest(input *RemoveTagsFromVaultInput) (req *request.Request, output *RemoveTagsFromVaultOutput) { op := &request.Operation{ Name: opRemoveTagsFromVault, @@ -2640,11 +2759,10 @@ func (c *Glacier) RemoveTagsFromVaultRequest(input *RemoveTagsFromVaultInput) (r input = &RemoveTagsFromVaultInput{} } + output = &RemoveTagsFromVaultOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RemoveTagsFromVaultOutput{} - req.Data = output return } @@ -2664,17 +2782,17 @@ func (c *Glacier) RemoveTagsFromVaultRequest(input *RemoveTagsFromVaultInput) (r // API operation RemoveTagsFromVault for usage and error information. // // Returned Error Codes: -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) RemoveTagsFromVault(input *RemoveTagsFromVaultInput) (*RemoveTagsFromVaultOutput, error) { @@ -2708,7 +2826,6 @@ const opSetDataRetrievalPolicy = "SetDataRetrievalPolicy" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) SetDataRetrievalPolicyRequest(input *SetDataRetrievalPolicyInput) (req *request.Request, output *SetDataRetrievalPolicyOutput) { op := &request.Operation{ Name: opSetDataRetrievalPolicy, @@ -2720,11 +2837,10 @@ func (c *Glacier) SetDataRetrievalPolicyRequest(input *SetDataRetrievalPolicyInp input = &SetDataRetrievalPolicyInput{} } + output = &SetDataRetrievalPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetDataRetrievalPolicyOutput{} - req.Data = output return } @@ -2746,13 +2862,13 @@ func (c *Glacier) SetDataRetrievalPolicyRequest(input *SetDataRetrievalPolicyInp // API operation SetDataRetrievalPolicy for usage and error information. // // Returned Error Codes: -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) SetDataRetrievalPolicy(input *SetDataRetrievalPolicyInput) (*SetDataRetrievalPolicyOutput, error) { @@ -2786,7 +2902,6 @@ const opSetVaultAccessPolicy = "SetVaultAccessPolicy" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) SetVaultAccessPolicyRequest(input *SetVaultAccessPolicyInput) (req *request.Request, output *SetVaultAccessPolicyOutput) { op := &request.Operation{ Name: opSetVaultAccessPolicy, @@ -2798,11 +2913,10 @@ func (c *Glacier) SetVaultAccessPolicyRequest(input *SetVaultAccessPolicyInput) input = &SetVaultAccessPolicyInput{} } + output = &SetVaultAccessPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetVaultAccessPolicyOutput{} - req.Data = output return } @@ -2824,17 +2938,17 @@ func (c *Glacier) SetVaultAccessPolicyRequest(input *SetVaultAccessPolicyInput) // API operation SetVaultAccessPolicy for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) SetVaultAccessPolicy(input *SetVaultAccessPolicyInput) (*SetVaultAccessPolicyOutput, error) { @@ -2868,7 +2982,6 @@ const opSetVaultNotifications = "SetVaultNotifications" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) SetVaultNotificationsRequest(input *SetVaultNotificationsInput) (req *request.Request, output *SetVaultNotificationsOutput) { op := &request.Operation{ Name: opSetVaultNotifications, @@ -2880,11 +2993,10 @@ func (c *Glacier) SetVaultNotificationsRequest(input *SetVaultNotificationsInput input = &SetVaultNotificationsInput{} } + output = &SetVaultNotificationsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetVaultNotificationsOutput{} - req.Data = output return } @@ -2902,20 +3014,23 @@ func (c *Glacier) SetVaultNotificationsRequest(input *SetVaultNotificationsInput // notifications to the topic. You can configure a vault to publish a notification // for the following vault events: // -// ArchiveRetrievalCompleted This event occurs when a job that was initiated -// for an archive retrieval is completed (InitiateJob). The status of the completed -// job can be "Succeeded" or "Failed". The notification sent to the SNS topic -// is the same output as returned from DescribeJob. InventoryRetrievalCompleted -// This event occurs when a job that was initiated for an inventory retrieval -// is completed (InitiateJob). The status of the completed job can be "Succeeded" -// or "Failed". The notification sent to the SNS topic is the same output as -// returned from DescribeJob. An AWS account has full permission to perform -// all operations (actions). However, AWS Identity and Access Management (IAM) -// users don't have any permissions by default. You must grant them explicit -// permission to perform specific actions. For more information, see Access -// Control Using AWS Identity and Access Management (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). -// -// For conceptual information and underlying REST API, go to Configuring Vault +// * ArchiveRetrievalCompleted This event occurs when a job that was initiated +// for an archive retrieval is completed (InitiateJob). The status of the +// completed job can be "Succeeded" or "Failed". The notification sent to +// the SNS topic is the same output as returned from DescribeJob. +// +// * InventoryRetrievalCompleted This event occurs when a job that was initiated +// for an inventory retrieval is completed (InitiateJob). The status of the +// completed job can be "Succeeded" or "Failed". The notification sent to +// the SNS topic is the same output as returned from DescribeJob. +// +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions +// by default. You must grant them explicit permission to perform specific actions. +// For more information, see Access Control Using AWS Identity and Access Management +// (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). +// +// For conceptual information and underlying REST API, see Configuring Vault // Notifications in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/configuring-notifications.html) // and Set Vault Notification Configuration (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-notifications-put.html) // in the Amazon Glacier Developer Guide. @@ -2928,17 +3043,17 @@ func (c *Glacier) SetVaultNotificationsRequest(input *SetVaultNotificationsInput // API operation SetVaultNotifications for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) SetVaultNotifications(input *SetVaultNotificationsInput) (*SetVaultNotificationsOutput, error) { @@ -2972,7 +3087,6 @@ const opUploadArchive = "UploadArchive" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) UploadArchiveRequest(input *UploadArchiveInput) (req *request.Request, output *ArchiveCreationOutput) { op := &request.Operation{ Name: opUploadArchive, @@ -2984,9 +3098,8 @@ func (c *Glacier) UploadArchiveRequest(input *UploadArchiveInput) (req *request. input = &UploadArchiveInput{} } - req = c.newRequest(op, input, output) output = &ArchiveCreationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3018,14 +3131,14 @@ func (c *Glacier) UploadArchiveRequest(input *UploadArchiveInput) (req *request. // Archives are immutable. After you upload an archive, you cannot edit the // archive or its description. // -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and underlying REST API, go to Uploading an -// Archive in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-an-archive.html) +// For conceptual information and underlying REST API, see Uploading an Archive +// in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-an-archive.html) // and Upload Archive (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-archive-post.html) // in the Amazon Glacier Developer Guide. // @@ -3037,21 +3150,21 @@ func (c *Glacier) UploadArchiveRequest(input *UploadArchiveInput) (req *request. // API operation UploadArchive for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * RequestTimeoutException +// * ErrCodeRequestTimeoutException "RequestTimeoutException" // Returned if, when uploading an archive, Amazon Glacier times out while receiving // the upload. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) UploadArchive(input *UploadArchiveInput) (*ArchiveCreationOutput, error) { @@ -3085,7 +3198,6 @@ const opUploadMultipartPart = "UploadMultipartPart" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Glacier) UploadMultipartPartRequest(input *UploadMultipartPartInput) (req *request.Request, output *UploadMultipartPartOutput) { op := &request.Operation{ Name: opUploadMultipartPart, @@ -3097,9 +3209,8 @@ func (c *Glacier) UploadMultipartPartRequest(input *UploadMultipartPartInput) (r input = &UploadMultipartPartInput{} } - req = c.newRequest(op, input, output) output = &UploadMultipartPartOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3109,43 +3220,46 @@ func (c *Glacier) UploadMultipartPartRequest(input *UploadMultipartPartInput) (r // in any order. You can also upload them in parallel. You can upload up to // 10,000 parts for a multipart upload. // -// Amazon Glacier rejects your upload part request if any of the following -// conditions is true: +// Amazon Glacier rejects your upload part request if any of the following conditions +// is true: // -// SHA256 tree hash does not matchTo ensure that part data is not corrupted -// in transmission, you compute a SHA256 tree hash of the part and include it -// in your request. Upon receiving the part data, Amazon Glacier also computes -// a SHA256 tree hash. If these hash values don't match, the operation fails. -// For information about computing a SHA256 tree hash, see Computing Checksums -// (http://docs.aws.amazon.com/amazonglacier/latest/dev/checksum-calculations.html). +// * SHA256 tree hash does not matchTo ensure that part data is not corrupted +// in transmission, you compute a SHA256 tree hash of the part and include +// it in your request. Upon receiving the part data, Amazon Glacier also +// computes a SHA256 tree hash. If these hash values don't match, the operation +// fails. For information about computing a SHA256 tree hash, see Computing +// Checksums (http://docs.aws.amazon.com/amazonglacier/latest/dev/checksum-calculations.html). // -// Part size does not matchThe size of each part except the last must match -// the size specified in the corresponding InitiateMultipartUpload request. -// The size of the last part must be the same size as, or smaller than, the -// specified size. +// * Part size does not matchThe size of each part except the last must match +// the size specified in the corresponding InitiateMultipartUpload request. +// The size of the last part must be the same size as, or smaller than, the +// specified size. // // If you upload a part whose size is smaller than the part size you specified -// in your initiate multipart upload request and that part is not the last part, -// then the upload part request will succeed. However, the subsequent Complete -// Multipart Upload request will fail. -// -// Range does not alignThe byte range value in the request does not align -// with the part size specified in the corresponding initiate request. For example, -// if you specify a part size of 4194304 bytes (4 MB), then 0 to 4194303 bytes -// (4 MB - 1) and 4194304 (4 MB) to 8388607 (8 MB - 1) are valid part ranges. -// However, if you set a range value of 2 MB to 6 MB, the range does not align -// with the part size and the upload will fail. This operation is idempotent. -// If you upload the same part multiple times, the data included in the most -// recent request overwrites the previously uploaded data. -// -// An AWS account has full permission to perform all operations (actions). -// However, AWS Identity and Access Management (IAM) users don't have any permissions +// in your initiate multipart upload request and that part is not the last +// part, then the upload part request will succeed. However, the subsequent +// Complete Multipart Upload request will fail. +// +// * Range does not alignThe byte range value in the request does not align +// with the part size specified in the corresponding initiate request. For +// example, if you specify a part size of 4194304 bytes (4 MB), then 0 to +// 4194303 bytes (4 MB - 1) and 4194304 (4 MB) to 8388607 (8 MB - 1) are +// valid part ranges. However, if you set a range value of 2 MB to 6 MB, +// the range does not align with the part size and the upload will fail. +// +// +// This operation is idempotent. If you upload the same part multiple times, +// the data included in the most recent request overwrites the previously uploaded +// data. +// +// An AWS account has full permission to perform all operations (actions). However, +// AWS Identity and Access Management (IAM) users don't have any permissions // by default. You must grant them explicit permission to perform specific actions. // For more information, see Access Control Using AWS Identity and Access Management // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // -// For conceptual information and underlying REST API, go to Uploading Large -// Archives in Parts (Multipart Upload) (http://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-archive-mpu.html) +// For conceptual information and underlying REST API, see Uploading Large Archives +// in Parts (Multipart Upload) (http://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-archive-mpu.html) // and Upload Part (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-upload-part.html) // in the Amazon Glacier Developer Guide. // @@ -3157,21 +3271,21 @@ func (c *Glacier) UploadMultipartPartRequest(input *UploadMultipartPartInput) (r // API operation UploadMultipartPart for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException -// Returned if the specified resource, such as a vault, upload ID, or job ID, -// does not exist. +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // Returned if a parameter of the request is incorrectly specified. // -// * MissingParameterValueException +// * ErrCodeMissingParameterValueException "MissingParameterValueException" // Returned if a required header or parameter is missing from the request. // -// * RequestTimeoutException +// * ErrCodeRequestTimeoutException "RequestTimeoutException" // Returned if, when uploading an archive, Amazon Glacier times out while receiving // the upload. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // Returned if the service cannot complete the request. // func (c *Glacier) UploadMultipartPart(input *UploadMultipartPartInput) (*UploadMultipartPartOutput, error) { @@ -3182,18 +3296,17 @@ func (c *Glacier) UploadMultipartPart(input *UploadMultipartPartInput) (*UploadM // Provides options to abort a multipart upload identified by the upload ID. // -// For information about the underlying REST API, go to Abort Multipart Upload +// For information about the underlying REST API, see Abort Multipart Upload // (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-abort-upload.html). -// For conceptual information, go to Working with Archives in Amazon Glacier -// (http://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html). +// For conceptual information, see Working with Archives in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html). type AbortMultipartUploadInput struct { _ struct{} `type:"structure"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -3238,6 +3351,24 @@ func (s *AbortMultipartUploadInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *AbortMultipartUploadInput) SetAccountId(v string) *AbortMultipartUploadInput { + s.AccountId = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *AbortMultipartUploadInput) SetUploadId(v string) *AbortMultipartUploadInput { + s.UploadId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *AbortMultipartUploadInput) SetVaultName(v string) *AbortMultipartUploadInput { + s.VaultName = &v + return s +} + type AbortMultipartUploadOutput struct { _ struct{} `type:"structure"` } @@ -3258,10 +3389,10 @@ type AbortVaultLockInput struct { // The AccountId value is the AWS account ID. This value must match the AWS // account ID associated with the credentials used to sign the request. You - // can either specify an AWS account ID or optionally a single apos-apos (hyphen), + // can either specify an AWS account ID or optionally a single '-' (hyphen), // in which case Amazon Glacier uses the AWS account ID associated with the // credentials used to sign the request. If you specify your account ID, do - // not include any hyphens (apos-apos) in the ID. + // not include any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -3298,6 +3429,18 @@ func (s *AbortVaultLockInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *AbortVaultLockInput) SetAccountId(v string) *AbortVaultLockInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *AbortVaultLockInput) SetVaultName(v string) *AbortVaultLockInput { + s.VaultName = &v + return s +} + type AbortVaultLockOutput struct { _ struct{} `type:"structure"` } @@ -3317,10 +3460,10 @@ type AddTagsToVaultInput struct { _ struct{} `type:"structure"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -3361,6 +3504,24 @@ func (s *AddTagsToVaultInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *AddTagsToVaultInput) SetAccountId(v string) *AddTagsToVaultInput { + s.AccountId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsToVaultInput) SetTags(v map[string]*string) *AddTagsToVaultInput { + s.Tags = v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *AddTagsToVaultInput) SetVaultName(v string) *AddTagsToVaultInput { + s.VaultName = &v + return s +} + type AddTagsToVaultOutput struct { _ struct{} `type:"structure"` } @@ -3377,9 +3538,8 @@ func (s AddTagsToVaultOutput) GoString() string { // Contains the Amazon Glacier response to your request. // -// For information about the underlying REST API, go to Upload Archive (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-archive-post.html). -// For conceptual information, go to Working with Archives in Amazon Glacier -// (http://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html). +// For information about the underlying REST API, see Upload Archive (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-archive-post.html). +// For conceptual information, see Working with Archives in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html). type ArchiveCreationOutput struct { _ struct{} `type:"structure"` @@ -3403,6 +3563,24 @@ func (s ArchiveCreationOutput) GoString() string { return s.String() } +// SetArchiveId sets the ArchiveId field's value. +func (s *ArchiveCreationOutput) SetArchiveId(v string) *ArchiveCreationOutput { + s.ArchiveId = &v + return s +} + +// SetChecksum sets the Checksum field's value. +func (s *ArchiveCreationOutput) SetChecksum(v string) *ArchiveCreationOutput { + s.Checksum = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *ArchiveCreationOutput) SetLocation(v string) *ArchiveCreationOutput { + s.Location = &v + return s +} + // Provides options to complete a multipart upload operation. This informs Amazon // Glacier that all the archive parts have been uploaded and Amazon Glacier // can now assemble the archive from the uploaded parts. After assembling and @@ -3412,10 +3590,10 @@ type CompleteMultipartUploadInput struct { _ struct{} `type:"structure"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -3470,16 +3648,46 @@ func (s *CompleteMultipartUploadInput) Validate() error { return nil } -// The input values for CompleteVaultLock. -type CompleteVaultLockInput struct { - _ struct{} `type:"structure"` +// SetAccountId sets the AccountId field's value. +func (s *CompleteMultipartUploadInput) SetAccountId(v string) *CompleteMultipartUploadInput { + s.AccountId = &v + return s +} - // The AccountId value is the AWS account ID. This value must match the AWS - // account ID associated with the credentials used to sign the request. You - // can either specify an AWS account ID or optionally a single apos-apos (hyphen), - // in which case Amazon Glacier uses the AWS account ID associated with the - // credentials used to sign the request. If you specify your account ID, do - // not include any hyphens (apos-apos) in the ID. +// SetArchiveSize sets the ArchiveSize field's value. +func (s *CompleteMultipartUploadInput) SetArchiveSize(v string) *CompleteMultipartUploadInput { + s.ArchiveSize = &v + return s +} + +// SetChecksum sets the Checksum field's value. +func (s *CompleteMultipartUploadInput) SetChecksum(v string) *CompleteMultipartUploadInput { + s.Checksum = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *CompleteMultipartUploadInput) SetUploadId(v string) *CompleteMultipartUploadInput { + s.UploadId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *CompleteMultipartUploadInput) SetVaultName(v string) *CompleteMultipartUploadInput { + s.VaultName = &v + return s +} + +// The input values for CompleteVaultLock. +type CompleteVaultLockInput struct { + _ struct{} `type:"structure"` + + // The AccountId value is the AWS account ID. This value must match the AWS + // account ID associated with the credentials used to sign the request. You + // can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you specify your account ID, do + // not include any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -3524,6 +3732,24 @@ func (s *CompleteVaultLockInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *CompleteVaultLockInput) SetAccountId(v string) *CompleteVaultLockInput { + s.AccountId = &v + return s +} + +// SetLockId sets the LockId field's value. +func (s *CompleteVaultLockInput) SetLockId(v string) *CompleteVaultLockInput { + s.LockId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *CompleteVaultLockInput) SetVaultName(v string) *CompleteVaultLockInput { + s.VaultName = &v + return s +} + type CompleteVaultLockOutput struct { _ struct{} `type:"structure"` } @@ -3544,10 +3770,10 @@ type CreateVaultInput struct { // The AccountId value is the AWS account ID. This value must match the AWS // account ID associated with the credentials used to sign the request. You - // can either specify an AWS account ID or optionally a single apos-apos (hyphen), + // can either specify an AWS account ID or optionally a single '-' (hyphen), // in which case Amazon Glacier uses the AWS account ID associated with the // credentials used to sign the request. If you specify your account ID, do - // not include any hyphens (apos-apos) in the ID. + // not include any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -3584,6 +3810,18 @@ func (s *CreateVaultInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *CreateVaultInput) SetAccountId(v string) *CreateVaultInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *CreateVaultInput) SetVaultName(v string) *CreateVaultInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type CreateVaultOutput struct { _ struct{} `type:"structure"` @@ -3602,6 +3840,12 @@ func (s CreateVaultOutput) GoString() string { return s.String() } +// SetLocation sets the Location field's value. +func (s *CreateVaultOutput) SetLocation(v string) *CreateVaultOutput { + s.Location = &v + return s +} + // Data retrieval policy. type DataRetrievalPolicy struct { _ struct{} `type:"structure"` @@ -3621,6 +3865,12 @@ func (s DataRetrievalPolicy) GoString() string { return s.String() } +// SetRules sets the Rules field's value. +func (s *DataRetrievalPolicy) SetRules(v []*DataRetrievalRule) *DataRetrievalPolicy { + s.Rules = v + return s +} + // Data retrieval policy rule. type DataRetrievalRule struct { _ struct{} `type:"structure"` @@ -3648,15 +3898,27 @@ func (s DataRetrievalRule) GoString() string { return s.String() } +// SetBytesPerHour sets the BytesPerHour field's value. +func (s *DataRetrievalRule) SetBytesPerHour(v int64) *DataRetrievalRule { + s.BytesPerHour = &v + return s +} + +// SetStrategy sets the Strategy field's value. +func (s *DataRetrievalRule) SetStrategy(v string) *DataRetrievalRule { + s.Strategy = &v + return s +} + // Provides options for deleting an archive from an Amazon Glacier vault. type DeleteArchiveInput struct { _ struct{} `type:"structure"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -3701,6 +3963,24 @@ func (s *DeleteArchiveInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *DeleteArchiveInput) SetAccountId(v string) *DeleteArchiveInput { + s.AccountId = &v + return s +} + +// SetArchiveId sets the ArchiveId field's value. +func (s *DeleteArchiveInput) SetArchiveId(v string) *DeleteArchiveInput { + s.ArchiveId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *DeleteArchiveInput) SetVaultName(v string) *DeleteArchiveInput { + s.VaultName = &v + return s +} + type DeleteArchiveOutput struct { _ struct{} `type:"structure"` } @@ -3720,10 +4000,10 @@ type DeleteVaultAccessPolicyInput struct { _ struct{} `type:"structure"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -3760,6 +4040,18 @@ func (s *DeleteVaultAccessPolicyInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *DeleteVaultAccessPolicyInput) SetAccountId(v string) *DeleteVaultAccessPolicyInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *DeleteVaultAccessPolicyInput) SetVaultName(v string) *DeleteVaultAccessPolicyInput { + s.VaultName = &v + return s +} + type DeleteVaultAccessPolicyOutput struct { _ struct{} `type:"structure"` } @@ -3779,10 +4071,10 @@ type DeleteVaultInput struct { _ struct{} `type:"structure"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -3819,16 +4111,28 @@ func (s *DeleteVaultInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *DeleteVaultInput) SetAccountId(v string) *DeleteVaultInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *DeleteVaultInput) SetVaultName(v string) *DeleteVaultInput { + s.VaultName = &v + return s +} + // Provides options for deleting a vault notification configuration from an // Amazon Glacier vault. type DeleteVaultNotificationsInput struct { _ struct{} `type:"structure"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -3865,6 +4169,18 @@ func (s *DeleteVaultNotificationsInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *DeleteVaultNotificationsInput) SetAccountId(v string) *DeleteVaultNotificationsInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *DeleteVaultNotificationsInput) SetVaultName(v string) *DeleteVaultNotificationsInput { + s.VaultName = &v + return s +} + type DeleteVaultNotificationsOutput struct { _ struct{} `type:"structure"` } @@ -3898,10 +4214,10 @@ type DescribeJobInput struct { _ struct{} `type:"structure"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -3946,15 +4262,33 @@ func (s *DescribeJobInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *DescribeJobInput) SetAccountId(v string) *DescribeJobInput { + s.AccountId = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *DescribeJobInput) SetJobId(v string) *DescribeJobInput { + s.JobId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *DescribeJobInput) SetVaultName(v string) *DescribeJobInput { + s.VaultName = &v + return s +} + // Provides options for retrieving metadata for a specific vault in Amazon Glacier. type DescribeVaultInput struct { _ struct{} `type:"structure"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -3991,26 +4325,39 @@ func (s *DescribeVaultInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *DescribeVaultInput) SetAccountId(v string) *DescribeVaultInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *DescribeVaultInput) SetVaultName(v string) *DescribeVaultInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type DescribeVaultOutput struct { _ struct{} `type:"structure"` - // The UTC date when the vault was created. A string representation of ISO 8601 - // date format, for example, "2012-03-20T17:03:43.221Z". + // The Universal Coordinated Time (UTC) date when the vault was created. This + // value should be a string in the ISO 8601 date format, for example 2012-03-20T17:03:43.221Z. CreationDate *string `type:"string"` - // The UTC date when Amazon Glacier completed the last vault inventory. A string - // representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z". + // The Universal Coordinated Time (UTC) date when Amazon Glacier completed the + // last vault inventory. This value should be a string in the ISO 8601 date + // format, for example 2012-03-20T17:03:43.221Z. LastInventoryDate *string `type:"string"` // The number of archives in the vault as of the last inventory date. This field - // will return null if an inventory has not yet run on the vault, for example, + // will return null if an inventory has not yet run on the vault, for example // if you just created the vault. NumberOfArchives *int64 `type:"long"` // Total size, in bytes, of the archives in the vault as of the last inventory // date. This field will return null if an inventory has not yet run on the - // vault, for example, if you just created the vault. + // vault, for example if you just created the vault. SizeInBytes *int64 `type:"long"` // The Amazon Resource Name (ARN) of the vault. @@ -4030,16 +4377,52 @@ func (s DescribeVaultOutput) GoString() string { return s.String() } +// SetCreationDate sets the CreationDate field's value. +func (s *DescribeVaultOutput) SetCreationDate(v string) *DescribeVaultOutput { + s.CreationDate = &v + return s +} + +// SetLastInventoryDate sets the LastInventoryDate field's value. +func (s *DescribeVaultOutput) SetLastInventoryDate(v string) *DescribeVaultOutput { + s.LastInventoryDate = &v + return s +} + +// SetNumberOfArchives sets the NumberOfArchives field's value. +func (s *DescribeVaultOutput) SetNumberOfArchives(v int64) *DescribeVaultOutput { + s.NumberOfArchives = &v + return s +} + +// SetSizeInBytes sets the SizeInBytes field's value. +func (s *DescribeVaultOutput) SetSizeInBytes(v int64) *DescribeVaultOutput { + s.SizeInBytes = &v + return s +} + +// SetVaultARN sets the VaultARN field's value. +func (s *DescribeVaultOutput) SetVaultARN(v string) *DescribeVaultOutput { + s.VaultARN = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *DescribeVaultOutput) SetVaultName(v string) *DescribeVaultOutput { + s.VaultName = &v + return s +} + // Input for GetDataRetrievalPolicy. type GetDataRetrievalPolicyInput struct { _ struct{} `type:"structure"` // The AccountId value is the AWS account ID. This value must match the AWS // account ID associated with the credentials used to sign the request. You - // can either specify an AWS account ID or optionally a single apos-apos (hyphen), + // can either specify an AWS account ID or optionally a single '-' (hyphen), // in which case Amazon Glacier uses the AWS account ID associated with the // credentials used to sign the request. If you specify your account ID, do - // not include any hyphens (apos-apos) in the ID. + // not include any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -4068,6 +4451,12 @@ func (s *GetDataRetrievalPolicyInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *GetDataRetrievalPolicyInput) SetAccountId(v string) *GetDataRetrievalPolicyInput { + s.AccountId = &v + return s +} + // Contains the Amazon Glacier response to the GetDataRetrievalPolicy request. type GetDataRetrievalPolicyOutput struct { _ struct{} `type:"structure"` @@ -4086,15 +4475,21 @@ func (s GetDataRetrievalPolicyOutput) GoString() string { return s.String() } +// SetPolicy sets the Policy field's value. +func (s *GetDataRetrievalPolicyOutput) SetPolicy(v *DataRetrievalPolicy) *GetDataRetrievalPolicyOutput { + s.Policy = v + return s +} + // Provides options for downloading output of an Amazon Glacier job. type GetJobOutputInput struct { _ struct{} `type:"structure"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -4105,8 +4500,34 @@ type GetJobOutputInput struct { JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"` // The range of bytes to retrieve from the output. For example, if you want - // to download the first 1,048,576 bytes, specify "Range: bytes=0-1048575". + // to download the first 1,048,576 bytes, specify the range as bytes=0-1048575. // By default, this operation downloads the entire output. + // + // If the job output is large, then you can use a range to retrieve a portion + // of the output. This allows you to download the entire output in smaller chunks + // of bytes. For example, suppose you have 1 GB of job output you want to download + // and you decide to download 128 MB chunks of data at a time, which is a total + // of eight Get Job Output requests. You use the following process to download + // the job output: + // + // Download a 128 MB chunk of output by specifying the appropriate byte range. + // Verify that all 128 MB of data was received. + // + // Along with the data, the response includes a SHA256 tree hash of the payload. + // You compute the checksum of the payload on the client and compare it with + // the checksum you received in the response to ensure you received all the + // expected data. + // + // Repeat steps 1 and 2 for all the eight 128 MB chunks of output data, each + // time specifying the appropriate byte range. + // + // After downloading all the parts of the job output, you have a list of eight + // checksum values. Compute the tree hash of these values to find the checksum + // of the entire output. Using the DescribeJob API, obtain job information of + // the job that provided you the output. The response includes the checksum + // of the entire archive stored in Amazon Glacier. You compare this value with + // the checksum you computed to ensure you have downloaded the entire archive + // content with no errors. Range *string `location:"header" locationName:"Range" type:"string"` // The name of the vault. @@ -4144,11 +4565,35 @@ func (s *GetJobOutputInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *GetJobOutputInput) SetAccountId(v string) *GetJobOutputInput { + s.AccountId = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *GetJobOutputInput) SetJobId(v string) *GetJobOutputInput { + s.JobId = &v + return s +} + +// SetRange sets the Range field's value. +func (s *GetJobOutputInput) SetRange(v string) *GetJobOutputInput { + s.Range = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *GetJobOutputInput) SetVaultName(v string) *GetJobOutputInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type GetJobOutputOutput struct { _ struct{} `type:"structure" payload:"Body"` - // Indicates the range units accepted. For more information, go to RFC2616 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). + // Indicates the range units accepted. For more information, see RFC2616 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). AcceptRanges *string `location:"header" locationName:"Accept-Ranges" type:"string"` // The description of an archive. @@ -4159,15 +4604,20 @@ type GetJobOutputOutput struct { // The checksum of the data in the response. This header is returned only when // retrieving the output for an archive retrieval job. Furthermore, this header - // appears only under the following conditions: You get the entire range of - // the archive. You request a range to return of the archive that starts and - // ends on a multiple of 1 MB. For example, if you have an 3.1 MB archive and - // you specify a range to return that starts at 1 MB and ends at 2 MB, then - // the x-amz-sha256-tree-hash is returned as a response header. You request - // a range of the archive to return that starts on a multiple of 1 MB and goes - // to the end of the archive. For example, if you have a 3.1 MB archive and - // you specify a range that starts at 2 MB and ends at 3.1 MB (the end of the - // archive), then the x-amz-sha256-tree-hash is returned as a response header. + // appears only under the following conditions: + // + // * You get the entire range of the archive. + // + // * You request a range to return of the archive that starts and ends on + // a multiple of 1 MB. For example, if you have an 3.1 MB archive and you + // specify a range to return that starts at 1 MB and ends at 2 MB, then the + // x-amz-sha256-tree-hash is returned as a response header. + // + // * You request a range of the archive to return that starts on a multiple + // of 1 MB and goes to the end of the archive. For example, if you have a + // 3.1 MB archive and you specify a range that starts at 2 MB and ends at + // 3.1 MB (the end of the archive), then the x-amz-sha256-tree-hash is returned + // as a response header. Checksum *string `location:"header" locationName:"x-amz-sha256-tree-hash" type:"string"` // The range of bytes returned by Amazon Glacier. If only partial output is @@ -4197,15 +4647,57 @@ func (s GetJobOutputOutput) GoString() string { return s.String() } +// SetAcceptRanges sets the AcceptRanges field's value. +func (s *GetJobOutputOutput) SetAcceptRanges(v string) *GetJobOutputOutput { + s.AcceptRanges = &v + return s +} + +// SetArchiveDescription sets the ArchiveDescription field's value. +func (s *GetJobOutputOutput) SetArchiveDescription(v string) *GetJobOutputOutput { + s.ArchiveDescription = &v + return s +} + +// SetBody sets the Body field's value. +func (s *GetJobOutputOutput) SetBody(v io.ReadCloser) *GetJobOutputOutput { + s.Body = v + return s +} + +// SetChecksum sets the Checksum field's value. +func (s *GetJobOutputOutput) SetChecksum(v string) *GetJobOutputOutput { + s.Checksum = &v + return s +} + +// SetContentRange sets the ContentRange field's value. +func (s *GetJobOutputOutput) SetContentRange(v string) *GetJobOutputOutput { + s.ContentRange = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *GetJobOutputOutput) SetContentType(v string) *GetJobOutputOutput { + s.ContentType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetJobOutputOutput) SetStatus(v int64) *GetJobOutputOutput { + s.Status = &v + return s +} + // Input for GetVaultAccessPolicy. type GetVaultAccessPolicyInput struct { _ struct{} `type:"structure"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -4242,6 +4734,18 @@ func (s *GetVaultAccessPolicyInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *GetVaultAccessPolicyInput) SetAccountId(v string) *GetVaultAccessPolicyInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *GetVaultAccessPolicyInput) SetVaultName(v string) *GetVaultAccessPolicyInput { + s.VaultName = &v + return s +} + // Output for GetVaultAccessPolicy. type GetVaultAccessPolicyOutput struct { _ struct{} `type:"structure" payload:"Policy"` @@ -4260,15 +4764,21 @@ func (s GetVaultAccessPolicyOutput) GoString() string { return s.String() } +// SetPolicy sets the Policy field's value. +func (s *GetVaultAccessPolicyOutput) SetPolicy(v *VaultAccessPolicy) *GetVaultAccessPolicyOutput { + s.Policy = v + return s +} + // The input values for GetVaultLock. type GetVaultLockInput struct { _ struct{} `type:"structure"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -4305,6 +4815,18 @@ func (s *GetVaultLockInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *GetVaultLockInput) SetAccountId(v string) *GetVaultLockInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *GetVaultLockInput) SetVaultName(v string) *GetVaultLockInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type GetVaultLockOutput struct { _ struct{} `type:"structure"` @@ -4334,16 +4856,40 @@ func (s GetVaultLockOutput) GoString() string { return s.String() } +// SetCreationDate sets the CreationDate field's value. +func (s *GetVaultLockOutput) SetCreationDate(v string) *GetVaultLockOutput { + s.CreationDate = &v + return s +} + +// SetExpirationDate sets the ExpirationDate field's value. +func (s *GetVaultLockOutput) SetExpirationDate(v string) *GetVaultLockOutput { + s.ExpirationDate = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *GetVaultLockOutput) SetPolicy(v string) *GetVaultLockOutput { + s.Policy = &v + return s +} + +// SetState sets the State field's value. +func (s *GetVaultLockOutput) SetState(v string) *GetVaultLockOutput { + s.State = &v + return s +} + // Provides options for retrieving the notification configuration set on an // Amazon Glacier vault. type GetVaultNotificationsInput struct { _ struct{} `type:"structure"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -4380,6 +4926,18 @@ func (s *GetVaultNotificationsInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *GetVaultNotificationsInput) SetAccountId(v string) *GetVaultNotificationsInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *GetVaultNotificationsInput) SetVaultName(v string) *GetVaultNotificationsInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type GetVaultNotificationsOutput struct { _ struct{} `type:"structure" payload:"VaultNotificationConfig"` @@ -4398,15 +4956,21 @@ func (s GetVaultNotificationsOutput) GoString() string { return s.String() } +// SetVaultNotificationConfig sets the VaultNotificationConfig field's value. +func (s *GetVaultNotificationsOutput) SetVaultNotificationConfig(v *VaultNotificationConfig) *GetVaultNotificationsOutput { + s.VaultNotificationConfig = v + return s +} + // Provides options for initiating an Amazon Glacier job. type InitiateJobInput struct { _ struct{} `type:"structure" payload:"JobParameters"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -4446,6 +5010,24 @@ func (s *InitiateJobInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *InitiateJobInput) SetAccountId(v string) *InitiateJobInput { + s.AccountId = &v + return s +} + +// SetJobParameters sets the JobParameters field's value. +func (s *InitiateJobInput) SetJobParameters(v *JobParameters) *InitiateJobInput { + s.JobParameters = v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *InitiateJobInput) SetVaultName(v string) *InitiateJobInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type InitiateJobOutput struct { _ struct{} `type:"structure"` @@ -4467,15 +5049,27 @@ func (s InitiateJobOutput) GoString() string { return s.String() } +// SetJobId sets the JobId field's value. +func (s *InitiateJobOutput) SetJobId(v string) *InitiateJobOutput { + s.JobId = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *InitiateJobOutput) SetLocation(v string) *InitiateJobOutput { + s.Location = &v + return s +} + // Provides options for initiating a multipart upload to an Amazon Glacier vault. type InitiateMultipartUploadInput struct { _ struct{} `type:"structure"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -4524,6 +5118,30 @@ func (s *InitiateMultipartUploadInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *InitiateMultipartUploadInput) SetAccountId(v string) *InitiateMultipartUploadInput { + s.AccountId = &v + return s +} + +// SetArchiveDescription sets the ArchiveDescription field's value. +func (s *InitiateMultipartUploadInput) SetArchiveDescription(v string) *InitiateMultipartUploadInput { + s.ArchiveDescription = &v + return s +} + +// SetPartSize sets the PartSize field's value. +func (s *InitiateMultipartUploadInput) SetPartSize(v string) *InitiateMultipartUploadInput { + s.PartSize = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *InitiateMultipartUploadInput) SetVaultName(v string) *InitiateMultipartUploadInput { + s.VaultName = &v + return s +} + // The Amazon Glacier response to your request. type InitiateMultipartUploadOutput struct { _ struct{} `type:"structure"` @@ -4546,16 +5164,28 @@ func (s InitiateMultipartUploadOutput) GoString() string { return s.String() } +// SetLocation sets the Location field's value. +func (s *InitiateMultipartUploadOutput) SetLocation(v string) *InitiateMultipartUploadOutput { + s.Location = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *InitiateMultipartUploadOutput) SetUploadId(v string) *InitiateMultipartUploadOutput { + s.UploadId = &v + return s +} + // The input values for InitiateVaultLock. type InitiateVaultLockInput struct { _ struct{} `type:"structure" payload:"Policy"` // The AccountId value is the AWS account ID. This value must match the AWS // account ID associated with the credentials used to sign the request. You - // can either specify an AWS account ID or optionally a single apos-apos (hyphen), + // can either specify an AWS account ID or optionally a single '-' (hyphen), // in which case Amazon Glacier uses the AWS account ID associated with the // credentials used to sign the request. If you specify your account ID, do - // not include any hyphens (apos-apos) in the ID. + // not include any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -4595,6 +5225,24 @@ func (s *InitiateVaultLockInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *InitiateVaultLockInput) SetAccountId(v string) *InitiateVaultLockInput { + s.AccountId = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *InitiateVaultLockInput) SetPolicy(v *VaultLockPolicy) *InitiateVaultLockInput { + s.Policy = v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *InitiateVaultLockInput) SetVaultName(v string) *InitiateVaultLockInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type InitiateVaultLockOutput struct { _ struct{} `type:"structure"` @@ -4613,22 +5261,28 @@ func (s InitiateVaultLockOutput) GoString() string { return s.String() } +// SetLockId sets the LockId field's value. +func (s *InitiateVaultLockOutput) SetLockId(v string) *InitiateVaultLockOutput { + s.LockId = &v + return s +} + // Describes the options for a range inventory retrieval job. type InventoryRetrievalJobDescription struct { _ struct{} `type:"structure"` // The end of the date range in UTC for vault inventory retrieval that includes - // archives created before this date. A string representation of ISO 8601 date - // format, for example, 2013-03-20T17:03:43Z. + // archives created before this date. This value should be a string in the ISO + // 8601 date format, for example 2013-03-20T17:03:43Z. EndDate *string `type:"string"` // The output format for the vault inventory list, which is set by the InitiateJob // request when initiating a job to retrieve a vault inventory. Valid values - // are "CSV" and "JSON". + // are CSV and JSON. Format *string `type:"string"` - // Specifies the maximum number of inventory items returned per vault inventory - // retrieval request. This limit is set when initiating the job with the a InitiateJob + // The maximum number of inventory items returned per vault inventory retrieval + // request. This limit is set when initiating the job with the a InitiateJob // request. Limit *string `type:"string"` @@ -4639,9 +5293,9 @@ type InventoryRetrievalJobDescription struct { // (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-initiate-job-post.html#api-initiate-job-post-vault-inventory-list-filtering). Marker *string `type:"string"` - // The start of the date range in UTC for vault inventory retrieval that includes - // archives created on or after this date. A string representation of ISO 8601 - // date format, for example, 2013-03-20T17:03:43Z. + // The start of the date range in Universal Coordinated Time (UTC) for vault + // inventory retrieval that includes archives created on or after this date. + // This value should be a string in the ISO 8601 date format, for example 2013-03-20T17:03:43Z. StartDate *string `type:"string"` } @@ -4655,13 +5309,43 @@ func (s InventoryRetrievalJobDescription) GoString() string { return s.String() } +// SetEndDate sets the EndDate field's value. +func (s *InventoryRetrievalJobDescription) SetEndDate(v string) *InventoryRetrievalJobDescription { + s.EndDate = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *InventoryRetrievalJobDescription) SetFormat(v string) *InventoryRetrievalJobDescription { + s.Format = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *InventoryRetrievalJobDescription) SetLimit(v string) *InventoryRetrievalJobDescription { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *InventoryRetrievalJobDescription) SetMarker(v string) *InventoryRetrievalJobDescription { + s.Marker = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *InventoryRetrievalJobDescription) SetStartDate(v string) *InventoryRetrievalJobDescription { + s.StartDate = &v + return s +} + // Provides options for specifying a range inventory retrieval job. type InventoryRetrievalJobInput struct { _ struct{} `type:"structure"` // The end of the date range in UTC for vault inventory retrieval that includes - // archives created before this date. A string representation of ISO 8601 date - // format, for example, 2013-03-20T17:03:43Z. + // archives created before this date. This value should be a string in the ISO + // 8601 date format, for example 2013-03-20T17:03:43Z. EndDate *string `type:"string"` // Specifies the maximum number of inventory items returned per vault inventory @@ -4675,8 +5359,8 @@ type InventoryRetrievalJobInput struct { Marker *string `type:"string"` // The start of the date range in UTC for vault inventory retrieval that includes - // archives created on or after this date. A string representation of ISO 8601 - // date format, for example, 2013-03-20T17:03:43Z. + // archives created on or after this date. This value should be a string in + // the ISO 8601 date format, for example 2013-03-20T17:03:43Z. StartDate *string `type:"string"` } @@ -4690,6 +5374,30 @@ func (s InventoryRetrievalJobInput) GoString() string { return s.String() } +// SetEndDate sets the EndDate field's value. +func (s *InventoryRetrievalJobInput) SetEndDate(v string) *InventoryRetrievalJobInput { + s.EndDate = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *InventoryRetrievalJobInput) SetLimit(v string) *InventoryRetrievalJobInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *InventoryRetrievalJobInput) SetMarker(v string) *InventoryRetrievalJobInput { + s.Marker = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *InventoryRetrievalJobInput) SetStartDate(v string) *InventoryRetrievalJobInput { + s.StartDate = &v + return s +} + // Describes an Amazon Glacier job. type JobDescription struct { _ struct{} `type:"structure"` @@ -4742,20 +5450,21 @@ type JobDescription struct { // For an ArchiveRetrieval job, it is the checksum of the archive. Otherwise, // the value is null. // - // The SHA256 tree hash value for the requested range of an archive. If the + // The SHA256 tree hash value for the requested range of an archive. If the // Initiate a Job request for an archive specified a tree-hash aligned range, // then this field returns a value. // - // For the specific case when the whole archive is retrieved, this value is + // For the specific case when the whole archive is retrieved, this value is // the same as the ArchiveSHA256TreeHash value. // - // This field is null in the following situations: Archive retrieval jobs - // that specify a range that is not tree-hash aligned. + // This field is null in the following situations: // - // Archival jobs that specify a range that is equal to the whole archive - // and the job status is InProgress. + // * Archive retrieval jobs that specify a range that is not tree-hash aligned. // - // Inventory jobs. + // * Archival jobs that specify a range that is equal to the whole archive + // and the job status is InProgress. + // + // * Inventory jobs. SHA256TreeHash *string `type:"string"` // An Amazon Simple Notification Service (Amazon SNS) topic that receives notification. @@ -4768,6 +5477,10 @@ type JobDescription struct { // A friendly message that describes the job status. StatusMessage *string `type:"string"` + // The retrieval option to use for the archive retrieval. Valid values are Expedited, + // Standard, or Bulk. Standard is the default. + Tier *string `type:"string"` + // The Amazon Resource Name (ARN) of the vault from which the archive retrieval // was requested. VaultARN *string `type:"string"` @@ -4783,6 +5496,114 @@ func (s JobDescription) GoString() string { return s.String() } +// SetAction sets the Action field's value. +func (s *JobDescription) SetAction(v string) *JobDescription { + s.Action = &v + return s +} + +// SetArchiveId sets the ArchiveId field's value. +func (s *JobDescription) SetArchiveId(v string) *JobDescription { + s.ArchiveId = &v + return s +} + +// SetArchiveSHA256TreeHash sets the ArchiveSHA256TreeHash field's value. +func (s *JobDescription) SetArchiveSHA256TreeHash(v string) *JobDescription { + s.ArchiveSHA256TreeHash = &v + return s +} + +// SetArchiveSizeInBytes sets the ArchiveSizeInBytes field's value. +func (s *JobDescription) SetArchiveSizeInBytes(v int64) *JobDescription { + s.ArchiveSizeInBytes = &v + return s +} + +// SetCompleted sets the Completed field's value. +func (s *JobDescription) SetCompleted(v bool) *JobDescription { + s.Completed = &v + return s +} + +// SetCompletionDate sets the CompletionDate field's value. +func (s *JobDescription) SetCompletionDate(v string) *JobDescription { + s.CompletionDate = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *JobDescription) SetCreationDate(v string) *JobDescription { + s.CreationDate = &v + return s +} + +// SetInventoryRetrievalParameters sets the InventoryRetrievalParameters field's value. +func (s *JobDescription) SetInventoryRetrievalParameters(v *InventoryRetrievalJobDescription) *JobDescription { + s.InventoryRetrievalParameters = v + return s +} + +// SetInventorySizeInBytes sets the InventorySizeInBytes field's value. +func (s *JobDescription) SetInventorySizeInBytes(v int64) *JobDescription { + s.InventorySizeInBytes = &v + return s +} + +// SetJobDescription sets the JobDescription field's value. +func (s *JobDescription) SetJobDescription(v string) *JobDescription { + s.JobDescription = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *JobDescription) SetJobId(v string) *JobDescription { + s.JobId = &v + return s +} + +// SetRetrievalByteRange sets the RetrievalByteRange field's value. +func (s *JobDescription) SetRetrievalByteRange(v string) *JobDescription { + s.RetrievalByteRange = &v + return s +} + +// SetSHA256TreeHash sets the SHA256TreeHash field's value. +func (s *JobDescription) SetSHA256TreeHash(v string) *JobDescription { + s.SHA256TreeHash = &v + return s +} + +// SetSNSTopic sets the SNSTopic field's value. +func (s *JobDescription) SetSNSTopic(v string) *JobDescription { + s.SNSTopic = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *JobDescription) SetStatusCode(v string) *JobDescription { + s.StatusCode = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *JobDescription) SetStatusMessage(v string) *JobDescription { + s.StatusMessage = &v + return s +} + +// SetTier sets the Tier field's value. +func (s *JobDescription) SetTier(v string) *JobDescription { + s.Tier = &v + return s +} + +// SetVaultARN sets the VaultARN field's value. +func (s *JobDescription) SetVaultARN(v string) *JobDescription { + s.VaultARN = &v + return s +} + // Provides options for defining a job. type JobParameters struct { _ struct{} `type:"structure"` @@ -4823,6 +5644,10 @@ type JobParameters struct { // topic publishes the notification to its subscribers. The SNS topic must exist. SNSTopic *string `type:"string"` + // The retrieval option to use for the archive retrieval. Valid values are Expedited, + // Standard, or Bulk. Standard is the default. + Tier *string `type:"string"` + // The job type. You can initiate a job to retrieve an archive or get an inventory // of a vault. Valid values are "archive-retrieval" and "inventory-retrieval". Type *string `type:"string"` @@ -4838,34 +5663,83 @@ func (s JobParameters) GoString() string { return s.String() } +// SetArchiveId sets the ArchiveId field's value. +func (s *JobParameters) SetArchiveId(v string) *JobParameters { + s.ArchiveId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *JobParameters) SetDescription(v string) *JobParameters { + s.Description = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *JobParameters) SetFormat(v string) *JobParameters { + s.Format = &v + return s +} + +// SetInventoryRetrievalParameters sets the InventoryRetrievalParameters field's value. +func (s *JobParameters) SetInventoryRetrievalParameters(v *InventoryRetrievalJobInput) *JobParameters { + s.InventoryRetrievalParameters = v + return s +} + +// SetRetrievalByteRange sets the RetrievalByteRange field's value. +func (s *JobParameters) SetRetrievalByteRange(v string) *JobParameters { + s.RetrievalByteRange = &v + return s +} + +// SetSNSTopic sets the SNSTopic field's value. +func (s *JobParameters) SetSNSTopic(v string) *JobParameters { + s.SNSTopic = &v + return s +} + +// SetTier sets the Tier field's value. +func (s *JobParameters) SetTier(v string) *JobParameters { + s.Tier = &v + return s +} + +// SetType sets the Type field's value. +func (s *JobParameters) SetType(v string) *JobParameters { + s.Type = &v + return s +} + // Provides options for retrieving a job list for an Amazon Glacier vault. type ListJobsInput struct { _ struct{} `type:"structure"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - // Specifies the state of the jobs to return. You can specify true or false. + // The state of the jobs to return. You can specify true or false. Completed *string `location:"querystring" locationName:"completed" type:"string"` - // Specifies that the response be limited to the specified number of items or - // fewer. If not specified, the List Jobs operation returns up to 1,000 jobs. + // The maximum number of jobs to be returned. The default limit is 1000. The + // number of jobs returned might be fewer than the specified limit, but the + // number of returned jobs never exceeds the limit. Limit *string `location:"querystring" locationName:"limit" type:"string"` // An opaque string used for pagination. This value specifies the job at which // the listing of jobs should begin. Get the marker value from a previous List - // Jobs response. You need only include the marker if you are continuing the - // pagination of results started in a previous List Jobs request. + // Jobs response. You only need to include the marker if you are continuing + // the pagination of results started in a previous List Jobs request. Marker *string `location:"querystring" locationName:"marker" type:"string"` - // Specifies the type of job status to return. You can specify the following - // values: "InProgress", "Succeeded", or "Failed". + // The type of job status to return. You can specify the following values: InProgress, + // Succeeded, or Failed. Statuscode *string `location:"querystring" locationName:"statuscode" type:"string"` // The name of the vault. @@ -4900,6 +5774,42 @@ func (s *ListJobsInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *ListJobsInput) SetAccountId(v string) *ListJobsInput { + s.AccountId = &v + return s +} + +// SetCompleted sets the Completed field's value. +func (s *ListJobsInput) SetCompleted(v string) *ListJobsInput { + s.Completed = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListJobsInput) SetLimit(v string) *ListJobsInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListJobsInput) SetMarker(v string) *ListJobsInput { + s.Marker = &v + return s +} + +// SetStatuscode sets the Statuscode field's value. +func (s *ListJobsInput) SetStatuscode(v string) *ListJobsInput { + s.Statuscode = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *ListJobsInput) SetVaultName(v string) *ListJobsInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type ListJobsOutput struct { _ struct{} `type:"structure"` @@ -4907,9 +5817,10 @@ type ListJobsOutput struct { // A list of job objects. Each job object contains metadata describing the job. JobList []*JobDescription `type:"list"` - // An opaque string that represents where to continue pagination of the results. - // You use this value in a new List Jobs request to obtain more jobs in the - // list. If there are no more jobs, this value is null. + // An opaque string used for pagination that specifies the job at which the + // listing of jobs should begin. You get the marker value from a previous List + // Jobs response. You only need to include the marker if you are continuing + // the pagination of the results started in a previous List Jobs request. Marker *string `type:"string"` } @@ -4923,16 +5834,28 @@ func (s ListJobsOutput) GoString() string { return s.String() } +// SetJobList sets the JobList field's value. +func (s *ListJobsOutput) SetJobList(v []*JobDescription) *ListJobsOutput { + s.JobList = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListJobsOutput) SetMarker(v string) *ListJobsOutput { + s.Marker = &v + return s +} + // Provides options for retrieving list of in-progress multipart uploads for // an Amazon Glacier vault. type ListMultipartUploadsInput struct { _ struct{} `type:"structure"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -4980,6 +5903,30 @@ func (s *ListMultipartUploadsInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *ListMultipartUploadsInput) SetAccountId(v string) *ListMultipartUploadsInput { + s.AccountId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListMultipartUploadsInput) SetLimit(v string) *ListMultipartUploadsInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListMultipartUploadsInput) SetMarker(v string) *ListMultipartUploadsInput { + s.Marker = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *ListMultipartUploadsInput) SetVaultName(v string) *ListMultipartUploadsInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type ListMultipartUploadsOutput struct { _ struct{} `type:"structure"` @@ -5003,22 +5950,35 @@ func (s ListMultipartUploadsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListMultipartUploadsOutput) SetMarker(v string) *ListMultipartUploadsOutput { + s.Marker = &v + return s +} + +// SetUploadsList sets the UploadsList field's value. +func (s *ListMultipartUploadsOutput) SetUploadsList(v []*UploadListElement) *ListMultipartUploadsOutput { + s.UploadsList = v + return s +} + // Provides options for retrieving a list of parts of an archive that have been // uploaded in a specific multipart upload. type ListPartsInput struct { _ struct{} `type:"structure"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - // Specifies the maximum number of parts returned in the response body. If this - // value is not specified, the List Parts operation returns up to 1,000 uploads. + // The maximum number of parts to be returned. The default limit is 1000. The + // number of parts returned might be fewer than the specified limit, but the + // number of returned parts never exceeds the limit. Limit *string `location:"querystring" locationName:"limit" type:"string"` // An opaque string used for pagination. This value specifies the part at which @@ -5068,6 +6028,36 @@ func (s *ListPartsInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *ListPartsInput) SetAccountId(v string) *ListPartsInput { + s.AccountId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListPartsInput) SetLimit(v string) *ListPartsInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListPartsInput) SetMarker(v string) *ListPartsInput { + s.Marker = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *ListPartsInput) SetUploadId(v string) *ListPartsInput { + s.UploadId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *ListPartsInput) SetVaultName(v string) *ListPartsInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type ListPartsOutput struct { _ struct{} `type:"structure"` @@ -5087,10 +6077,12 @@ type ListPartsOutput struct { // The ID of the upload to which the parts are associated. MultipartUploadId *string `type:"string"` - // The part size in bytes. + // The part size in bytes. This is the same value that you specified in the + // Initiate Multipart Upload request. PartSizeInBytes *int64 `type:"long"` - // A list of the part sizes of the multipart upload. + // A list of the part sizes of the multipart upload. Each object in the array + // contains a RangeBytes and sha256-tree-hash name/value pair. Parts []*PartListElement `type:"list"` // The Amazon Resource Name (ARN) of the vault to which the multipart upload @@ -5108,15 +6100,122 @@ func (s ListPartsOutput) GoString() string { return s.String() } +// SetArchiveDescription sets the ArchiveDescription field's value. +func (s *ListPartsOutput) SetArchiveDescription(v string) *ListPartsOutput { + s.ArchiveDescription = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *ListPartsOutput) SetCreationDate(v string) *ListPartsOutput { + s.CreationDate = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListPartsOutput) SetMarker(v string) *ListPartsOutput { + s.Marker = &v + return s +} + +// SetMultipartUploadId sets the MultipartUploadId field's value. +func (s *ListPartsOutput) SetMultipartUploadId(v string) *ListPartsOutput { + s.MultipartUploadId = &v + return s +} + +// SetPartSizeInBytes sets the PartSizeInBytes field's value. +func (s *ListPartsOutput) SetPartSizeInBytes(v int64) *ListPartsOutput { + s.PartSizeInBytes = &v + return s +} + +// SetParts sets the Parts field's value. +func (s *ListPartsOutput) SetParts(v []*PartListElement) *ListPartsOutput { + s.Parts = v + return s +} + +// SetVaultARN sets the VaultARN field's value. +func (s *ListPartsOutput) SetVaultARN(v string) *ListPartsOutput { + s.VaultARN = &v + return s +} + +type ListProvisionedCapacityInput struct { + _ struct{} `type:"structure"` + + // The AccountId value is the AWS account ID of the account that owns the vault. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, don't include + // any hyphens ('-') in the ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListProvisionedCapacityInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListProvisionedCapacityInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListProvisionedCapacityInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListProvisionedCapacityInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *ListProvisionedCapacityInput) SetAccountId(v string) *ListProvisionedCapacityInput { + s.AccountId = &v + return s +} + +type ListProvisionedCapacityOutput struct { + _ struct{} `type:"structure"` + + // The response body contains the following JSON fields. + ProvisionedCapacityList []*ProvisionedCapacityDescription `type:"list"` +} + +// String returns the string representation +func (s ListProvisionedCapacityOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListProvisionedCapacityOutput) GoString() string { + return s.String() +} + +// SetProvisionedCapacityList sets the ProvisionedCapacityList field's value. +func (s *ListProvisionedCapacityOutput) SetProvisionedCapacityList(v []*ProvisionedCapacityDescription) *ListProvisionedCapacityOutput { + s.ProvisionedCapacityList = v + return s +} + // The input value for ListTagsForVaultInput. type ListTagsForVaultInput struct { _ struct{} `type:"structure"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -5153,6 +6252,18 @@ func (s *ListTagsForVaultInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *ListTagsForVaultInput) SetAccountId(v string) *ListTagsForVaultInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *ListTagsForVaultInput) SetVaultName(v string) *ListTagsForVaultInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type ListTagsForVaultOutput struct { _ struct{} `type:"structure"` @@ -5171,6 +6282,12 @@ func (s ListTagsForVaultOutput) GoString() string { return s.String() } +// SetTags sets the Tags field's value. +func (s *ListTagsForVaultOutput) SetTags(v map[string]*string) *ListTagsForVaultOutput { + s.Tags = v + return s +} + // Provides options to retrieve the vault list owned by the calling user's account. // The list provides metadata information for each vault. type ListVaultsInput struct { @@ -5178,16 +6295,17 @@ type ListVaultsInput struct { // The AccountId value is the AWS account ID. This value must match the AWS // account ID associated with the credentials used to sign the request. You - // can either specify an AWS account ID or optionally a single apos-apos (hyphen), + // can either specify an AWS account ID or optionally a single '-' (hyphen), // in which case Amazon Glacier uses the AWS account ID associated with the // credentials used to sign the request. If you specify your account ID, do - // not include any hyphens (apos-apos) in the ID. + // not include any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - // The maximum number of items returned in the response. If you don't specify - // a value, the List Vaults operation returns up to 1,000 items. + // The maximum number of vaults to be returned. The default limit is 1000. The + // number of vaults returned might be fewer than the specified limit, but the + // number of returned vaults never exceeds the limit. Limit *string `location:"querystring" locationName:"limit" type:"string"` // A string used for pagination. The marker specifies the vault ARN after which @@ -5218,6 +6336,24 @@ func (s *ListVaultsInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *ListVaultsInput) SetAccountId(v string) *ListVaultsInput { + s.AccountId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListVaultsInput) SetLimit(v string) *ListVaultsInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListVaultsInput) SetMarker(v string) *ListVaultsInput { + s.Marker = &v + return s +} + // Contains the Amazon Glacier response to your request. type ListVaultsOutput struct { _ struct{} `type:"structure"` @@ -5240,6 +6376,18 @@ func (s ListVaultsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListVaultsOutput) SetMarker(v string) *ListVaultsOutput { + s.Marker = &v + return s +} + +// SetVaultList sets the VaultList field's value. +func (s *ListVaultsOutput) SetVaultList(v []*DescribeVaultOutput) *ListVaultsOutput { + s.VaultList = v + return s +} + // A list of the part sizes of the multipart upload. type PartListElement struct { _ struct{} `type:"structure"` @@ -5262,15 +6410,136 @@ func (s PartListElement) GoString() string { return s.String() } +// SetRangeInBytes sets the RangeInBytes field's value. +func (s *PartListElement) SetRangeInBytes(v string) *PartListElement { + s.RangeInBytes = &v + return s +} + +// SetSHA256TreeHash sets the SHA256TreeHash field's value. +func (s *PartListElement) SetSHA256TreeHash(v string) *PartListElement { + s.SHA256TreeHash = &v + return s +} + +// The definition for a provisioned capacity unit. +type ProvisionedCapacityDescription struct { + _ struct{} `type:"structure"` + + // The ID that identifies the provisioned capacity unit. + CapacityId *string `type:"string"` + + // The date that the provisioned capacity unit expires, in Universal Coordinated + // Time (UTC). + ExpirationDate *string `type:"string"` + + // The date that the provisioned capacity unit was purchased, in Universal Coordinated + // Time (UTC). + StartDate *string `type:"string"` +} + +// String returns the string representation +func (s ProvisionedCapacityDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProvisionedCapacityDescription) GoString() string { + return s.String() +} + +// SetCapacityId sets the CapacityId field's value. +func (s *ProvisionedCapacityDescription) SetCapacityId(v string) *ProvisionedCapacityDescription { + s.CapacityId = &v + return s +} + +// SetExpirationDate sets the ExpirationDate field's value. +func (s *ProvisionedCapacityDescription) SetExpirationDate(v string) *ProvisionedCapacityDescription { + s.ExpirationDate = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *ProvisionedCapacityDescription) SetStartDate(v string) *ProvisionedCapacityDescription { + s.StartDate = &v + return s +} + +type PurchaseProvisionedCapacityInput struct { + _ struct{} `type:"structure"` + + // The AWS account ID of the account that owns the vault. You can either specify + // an AWS account ID or optionally a single '-' (hyphen), in which case Amazon + // Glacier uses the AWS account ID associated with the credentials used to sign + // the request. If you use an account ID, don't include any hyphens ('-') in + // the ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` +} + +// String returns the string representation +func (s PurchaseProvisionedCapacityInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PurchaseProvisionedCapacityInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PurchaseProvisionedCapacityInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PurchaseProvisionedCapacityInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *PurchaseProvisionedCapacityInput) SetAccountId(v string) *PurchaseProvisionedCapacityInput { + s.AccountId = &v + return s +} + +type PurchaseProvisionedCapacityOutput struct { + _ struct{} `type:"structure"` + + // The ID that identifies the provisioned capacity unit. + CapacityId *string `location:"header" locationName:"x-amz-capacity-id" type:"string"` +} + +// String returns the string representation +func (s PurchaseProvisionedCapacityOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PurchaseProvisionedCapacityOutput) GoString() string { + return s.String() +} + +// SetCapacityId sets the CapacityId field's value. +func (s *PurchaseProvisionedCapacityOutput) SetCapacityId(v string) *PurchaseProvisionedCapacityOutput { + s.CapacityId = &v + return s +} + // The input value for RemoveTagsFromVaultInput. type RemoveTagsFromVaultInput struct { _ struct{} `type:"structure"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -5310,6 +6579,24 @@ func (s *RemoveTagsFromVaultInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *RemoveTagsFromVaultInput) SetAccountId(v string) *RemoveTagsFromVaultInput { + s.AccountId = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsFromVaultInput) SetTagKeys(v []*string) *RemoveTagsFromVaultInput { + s.TagKeys = v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *RemoveTagsFromVaultInput) SetVaultName(v string) *RemoveTagsFromVaultInput { + s.VaultName = &v + return s +} + type RemoveTagsFromVaultOutput struct { _ struct{} `type:"structure"` } @@ -5330,10 +6617,10 @@ type SetDataRetrievalPolicyInput struct { // The AccountId value is the AWS account ID. This value must match the AWS // account ID associated with the credentials used to sign the request. You - // can either specify an AWS account ID or optionally a single apos-apos (hyphen), + // can either specify an AWS account ID or optionally a single '-' (hyphen), // in which case Amazon Glacier uses the AWS account ID associated with the // credentials used to sign the request. If you specify your account ID, do - // not include any hyphens (apos-apos) in the ID. + // not include any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -5365,6 +6652,18 @@ func (s *SetDataRetrievalPolicyInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *SetDataRetrievalPolicyInput) SetAccountId(v string) *SetDataRetrievalPolicyInput { + s.AccountId = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *SetDataRetrievalPolicyInput) SetPolicy(v *DataRetrievalPolicy) *SetDataRetrievalPolicyInput { + s.Policy = v + return s +} + type SetDataRetrievalPolicyOutput struct { _ struct{} `type:"structure"` } @@ -5384,10 +6683,10 @@ type SetVaultAccessPolicyInput struct { _ struct{} `type:"structure" payload:"Policy"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -5427,6 +6726,24 @@ func (s *SetVaultAccessPolicyInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *SetVaultAccessPolicyInput) SetAccountId(v string) *SetVaultAccessPolicyInput { + s.AccountId = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *SetVaultAccessPolicyInput) SetPolicy(v *VaultAccessPolicy) *SetVaultAccessPolicyInput { + s.Policy = v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *SetVaultAccessPolicyInput) SetVaultName(v string) *SetVaultAccessPolicyInput { + s.VaultName = &v + return s +} + type SetVaultAccessPolicyOutput struct { _ struct{} `type:"structure"` } @@ -5447,10 +6764,10 @@ type SetVaultNotificationsInput struct { _ struct{} `type:"structure" payload:"VaultNotificationConfig"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -5490,6 +6807,24 @@ func (s *SetVaultNotificationsInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *SetVaultNotificationsInput) SetAccountId(v string) *SetVaultNotificationsInput { + s.AccountId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *SetVaultNotificationsInput) SetVaultName(v string) *SetVaultNotificationsInput { + s.VaultName = &v + return s +} + +// SetVaultNotificationConfig sets the VaultNotificationConfig field's value. +func (s *SetVaultNotificationsInput) SetVaultNotificationConfig(v *VaultNotificationConfig) *SetVaultNotificationsInput { + s.VaultNotificationConfig = v + return s +} + type SetVaultNotificationsOutput struct { _ struct{} `type:"structure"` } @@ -5509,10 +6844,10 @@ type UploadArchiveInput struct { _ struct{} `type:"structure" payload:"Body"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -5558,6 +6893,36 @@ func (s *UploadArchiveInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *UploadArchiveInput) SetAccountId(v string) *UploadArchiveInput { + s.AccountId = &v + return s +} + +// SetArchiveDescription sets the ArchiveDescription field's value. +func (s *UploadArchiveInput) SetArchiveDescription(v string) *UploadArchiveInput { + s.ArchiveDescription = &v + return s +} + +// SetBody sets the Body field's value. +func (s *UploadArchiveInput) SetBody(v io.ReadSeeker) *UploadArchiveInput { + s.Body = v + return s +} + +// SetChecksum sets the Checksum field's value. +func (s *UploadArchiveInput) SetChecksum(v string) *UploadArchiveInput { + s.Checksum = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *UploadArchiveInput) SetVaultName(v string) *UploadArchiveInput { + s.VaultName = &v + return s +} + // A list of in-progress multipart uploads for a vault. type UploadListElement struct { _ struct{} `type:"structure"` @@ -5591,15 +6956,45 @@ func (s UploadListElement) GoString() string { return s.String() } +// SetArchiveDescription sets the ArchiveDescription field's value. +func (s *UploadListElement) SetArchiveDescription(v string) *UploadListElement { + s.ArchiveDescription = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *UploadListElement) SetCreationDate(v string) *UploadListElement { + s.CreationDate = &v + return s +} + +// SetMultipartUploadId sets the MultipartUploadId field's value. +func (s *UploadListElement) SetMultipartUploadId(v string) *UploadListElement { + s.MultipartUploadId = &v + return s +} + +// SetPartSizeInBytes sets the PartSizeInBytes field's value. +func (s *UploadListElement) SetPartSizeInBytes(v int64) *UploadListElement { + s.PartSizeInBytes = &v + return s +} + +// SetVaultARN sets the VaultARN field's value. +func (s *UploadListElement) SetVaultARN(v string) *UploadListElement { + s.VaultARN = &v + return s +} + // Provides options to upload a part of an archive in a multipart upload operation. type UploadMultipartPartInput struct { _ struct{} `type:"structure" payload:"Body"` // The AccountId value is the AWS account ID of the account that owns the vault. - // You can either specify an AWS account ID or optionally a single apos-apos - // (hyphen), in which case Amazon Glacier uses the AWS account ID associated - // with the credentials used to sign the request. If you use an account ID, - // do not include any hyphens (apos-apos) in the ID. + // You can either specify an AWS account ID or optionally a single '-' (hyphen), + // in which case Amazon Glacier uses the AWS account ID associated with the + // credentials used to sign the request. If you use an account ID, do not include + // any hyphens ('-') in the ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` @@ -5656,6 +7051,42 @@ func (s *UploadMultipartPartInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *UploadMultipartPartInput) SetAccountId(v string) *UploadMultipartPartInput { + s.AccountId = &v + return s +} + +// SetBody sets the Body field's value. +func (s *UploadMultipartPartInput) SetBody(v io.ReadSeeker) *UploadMultipartPartInput { + s.Body = v + return s +} + +// SetChecksum sets the Checksum field's value. +func (s *UploadMultipartPartInput) SetChecksum(v string) *UploadMultipartPartInput { + s.Checksum = &v + return s +} + +// SetRange sets the Range field's value. +func (s *UploadMultipartPartInput) SetRange(v string) *UploadMultipartPartInput { + s.Range = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *UploadMultipartPartInput) SetUploadId(v string) *UploadMultipartPartInput { + s.UploadId = &v + return s +} + +// SetVaultName sets the VaultName field's value. +func (s *UploadMultipartPartInput) SetVaultName(v string) *UploadMultipartPartInput { + s.VaultName = &v + return s +} + // Contains the Amazon Glacier response to your request. type UploadMultipartPartOutput struct { _ struct{} `type:"structure"` @@ -5674,6 +7105,12 @@ func (s UploadMultipartPartOutput) GoString() string { return s.String() } +// SetChecksum sets the Checksum field's value. +func (s *UploadMultipartPartOutput) SetChecksum(v string) *UploadMultipartPartOutput { + s.Checksum = &v + return s +} + // Contains the vault access policy. type VaultAccessPolicy struct { _ struct{} `type:"structure"` @@ -5692,6 +7129,12 @@ func (s VaultAccessPolicy) GoString() string { return s.String() } +// SetPolicy sets the Policy field's value. +func (s *VaultAccessPolicy) SetPolicy(v string) *VaultAccessPolicy { + s.Policy = &v + return s +} + // Contains the vault lock policy. type VaultLockPolicy struct { _ struct{} `type:"structure"` @@ -5710,6 +7153,12 @@ func (s VaultLockPolicy) GoString() string { return s.String() } +// SetPolicy sets the Policy field's value. +func (s *VaultLockPolicy) SetPolicy(v string) *VaultLockPolicy { + s.Policy = &v + return s +} + // Represents a vault's notification configuration. type VaultNotificationConfig struct { _ struct{} `type:"structure"` @@ -5733,6 +7182,18 @@ func (s VaultNotificationConfig) GoString() string { return s.String() } +// SetEvents sets the Events field's value. +func (s *VaultNotificationConfig) SetEvents(v []*string) *VaultNotificationConfig { + s.Events = v + return s +} + +// SetSNSTopic sets the SNSTopic field's value. +func (s *VaultNotificationConfig) SetSNSTopic(v string) *VaultNotificationConfig { + s.SNSTopic = &v + return s +} + const ( // ActionCodeArchiveRetrieval is a ActionCode enum value ActionCodeArchiveRetrieval = "ArchiveRetrieval" diff --git a/vendor/github.com/aws/aws-sdk-go/service/glacier/errors.go b/vendor/github.com/aws/aws-sdk-go/service/glacier/errors.go new file mode 100644 index 000000000..9ce95315a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/glacier/errors.go @@ -0,0 +1,59 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package glacier + +const ( + + // ErrCodeInsufficientCapacityException for service response error code + // "InsufficientCapacityException". + // + // Returned if there is insufficient capacity to process this expedited request. + // This error only applies to expedited retrievals and not to standard or bulk + // retrievals. + ErrCodeInsufficientCapacityException = "InsufficientCapacityException" + + // ErrCodeInvalidParameterValueException for service response error code + // "InvalidParameterValueException". + // + // Returned if a parameter of the request is incorrectly specified. + ErrCodeInvalidParameterValueException = "InvalidParameterValueException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // Returned if the request results in a vault or account limit being exceeded. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeMissingParameterValueException for service response error code + // "MissingParameterValueException". + // + // Returned if a required header or parameter is missing from the request. + ErrCodeMissingParameterValueException = "MissingParameterValueException" + + // ErrCodePolicyEnforcedException for service response error code + // "PolicyEnforcedException". + // + // Returned if a retrieval job would exceed the current data policy's retrieval + // rate limit. For more information about data retrieval policies, + ErrCodePolicyEnforcedException = "PolicyEnforcedException" + + // ErrCodeRequestTimeoutException for service response error code + // "RequestTimeoutException". + // + // Returned if, when uploading an archive, Amazon Glacier times out while receiving + // the upload. + ErrCodeRequestTimeoutException = "RequestTimeoutException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // Returned if the specified resource (such as a vault, upload ID, or job ID) + // doesn't exist. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeServiceUnavailableException for service response error code + // "ServiceUnavailableException". + // + // Returned if the service cannot complete the request. + ErrCodeServiceUnavailableException = "ServiceUnavailableException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/glacier/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/glacier/examples_test.go index 4127f95e1..bdb1cb69d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/glacier/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/glacier/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleGlacier_AbortMultipartUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -43,11 +39,7 @@ func ExampleGlacier_AbortMultipartUpload() { } func ExampleGlacier_AbortVaultLock() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -69,11 +61,7 @@ func ExampleGlacier_AbortVaultLock() { } func ExampleGlacier_AddTagsToVault() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -99,11 +87,7 @@ func ExampleGlacier_AddTagsToVault() { } func ExampleGlacier_CompleteMultipartUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -128,11 +112,7 @@ func ExampleGlacier_CompleteMultipartUpload() { } func ExampleGlacier_CompleteVaultLock() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -155,11 +135,7 @@ func ExampleGlacier_CompleteVaultLock() { } func ExampleGlacier_CreateVault() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -181,11 +157,7 @@ func ExampleGlacier_CreateVault() { } func ExampleGlacier_DeleteArchive() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -208,11 +180,7 @@ func ExampleGlacier_DeleteArchive() { } func ExampleGlacier_DeleteVault() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -234,11 +202,7 @@ func ExampleGlacier_DeleteVault() { } func ExampleGlacier_DeleteVaultAccessPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -260,11 +224,7 @@ func ExampleGlacier_DeleteVaultAccessPolicy() { } func ExampleGlacier_DeleteVaultNotifications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -286,11 +246,7 @@ func ExampleGlacier_DeleteVaultNotifications() { } func ExampleGlacier_DescribeJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -313,11 +269,7 @@ func ExampleGlacier_DescribeJob() { } func ExampleGlacier_DescribeVault() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -339,11 +291,7 @@ func ExampleGlacier_DescribeVault() { } func ExampleGlacier_GetDataRetrievalPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -364,11 +312,7 @@ func ExampleGlacier_GetDataRetrievalPolicy() { } func ExampleGlacier_GetJobOutput() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -392,11 +336,7 @@ func ExampleGlacier_GetJobOutput() { } func ExampleGlacier_GetVaultAccessPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -418,11 +358,7 @@ func ExampleGlacier_GetVaultAccessPolicy() { } func ExampleGlacier_GetVaultLock() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -444,11 +380,7 @@ func ExampleGlacier_GetVaultLock() { } func ExampleGlacier_GetVaultNotifications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -470,11 +402,7 @@ func ExampleGlacier_GetVaultNotifications() { } func ExampleGlacier_InitiateJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -493,6 +421,7 @@ func ExampleGlacier_InitiateJob() { }, RetrievalByteRange: aws.String("string"), SNSTopic: aws.String("string"), + Tier: aws.String("string"), Type: aws.String("string"), }, } @@ -510,11 +439,7 @@ func ExampleGlacier_InitiateJob() { } func ExampleGlacier_InitiateMultipartUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -538,11 +463,7 @@ func ExampleGlacier_InitiateMultipartUpload() { } func ExampleGlacier_InitiateVaultLock() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -567,11 +488,7 @@ func ExampleGlacier_InitiateVaultLock() { } func ExampleGlacier_ListJobs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -597,11 +514,7 @@ func ExampleGlacier_ListJobs() { } func ExampleGlacier_ListMultipartUploads() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -625,11 +538,7 @@ func ExampleGlacier_ListMultipartUploads() { } func ExampleGlacier_ListParts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -653,13 +562,30 @@ func ExampleGlacier_ListParts() { fmt.Println(resp) } -func ExampleGlacier_ListTagsForVault() { - sess, err := session.NewSession() +func ExampleGlacier_ListProvisionedCapacity() { + sess := session.Must(session.NewSession()) + + svc := glacier.New(sess) + + params := &glacier.ListProvisionedCapacityInput{ + AccountId: aws.String("string"), // Required + } + resp, err := svc.ListProvisionedCapacity(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleGlacier_ListTagsForVault() { + sess := session.Must(session.NewSession()) + svc := glacier.New(sess) params := &glacier.ListTagsForVaultInput{ @@ -680,11 +606,7 @@ func ExampleGlacier_ListTagsForVault() { } func ExampleGlacier_ListVaults() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -706,13 +628,30 @@ func ExampleGlacier_ListVaults() { fmt.Println(resp) } -func ExampleGlacier_RemoveTagsFromVault() { - sess, err := session.NewSession() +func ExampleGlacier_PurchaseProvisionedCapacity() { + sess := session.Must(session.NewSession()) + + svc := glacier.New(sess) + + params := &glacier.PurchaseProvisionedCapacityInput{ + AccountId: aws.String("string"), // Required + } + resp, err := svc.PurchaseProvisionedCapacity(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleGlacier_RemoveTagsFromVault() { + sess := session.Must(session.NewSession()) + svc := glacier.New(sess) params := &glacier.RemoveTagsFromVaultInput{ @@ -737,11 +676,7 @@ func ExampleGlacier_RemoveTagsFromVault() { } func ExampleGlacier_SetDataRetrievalPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -771,11 +706,7 @@ func ExampleGlacier_SetDataRetrievalPolicy() { } func ExampleGlacier_SetVaultAccessPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -800,11 +731,7 @@ func ExampleGlacier_SetVaultAccessPolicy() { } func ExampleGlacier_SetVaultNotifications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -833,11 +760,7 @@ func ExampleGlacier_SetVaultNotifications() { } func ExampleGlacier_UploadArchive() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) @@ -862,11 +785,7 @@ func ExampleGlacier_UploadArchive() { } func ExampleGlacier_UploadMultipartPart() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := glacier.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/glacier/glacieriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/glacier/glacieriface/interface.go index 7e74b31bb..8021ea445 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/glacier/glacieriface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/glacier/glacieriface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockGlacierClient{} // @@ -157,6 +157,10 @@ type GlacierAPI interface { ListPartsPages(*glacier.ListPartsInput, func(*glacier.ListPartsOutput, bool) bool) error + ListProvisionedCapacityRequest(*glacier.ListProvisionedCapacityInput) (*request.Request, *glacier.ListProvisionedCapacityOutput) + + ListProvisionedCapacity(*glacier.ListProvisionedCapacityInput) (*glacier.ListProvisionedCapacityOutput, error) + ListTagsForVaultRequest(*glacier.ListTagsForVaultInput) (*request.Request, *glacier.ListTagsForVaultOutput) ListTagsForVault(*glacier.ListTagsForVaultInput) (*glacier.ListTagsForVaultOutput, error) @@ -167,6 +171,10 @@ type GlacierAPI interface { ListVaultsPages(*glacier.ListVaultsInput, func(*glacier.ListVaultsOutput, bool) bool) error + PurchaseProvisionedCapacityRequest(*glacier.PurchaseProvisionedCapacityInput) (*request.Request, *glacier.PurchaseProvisionedCapacityOutput) + + PurchaseProvisionedCapacity(*glacier.PurchaseProvisionedCapacityInput) (*glacier.PurchaseProvisionedCapacityOutput, error) + RemoveTagsFromVaultRequest(*glacier.RemoveTagsFromVaultInput) (*request.Request, *glacier.RemoveTagsFromVaultOutput) RemoveTagsFromVault(*glacier.RemoveTagsFromVaultInput) (*glacier.RemoveTagsFromVaultOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/glacier/service.go b/vendor/github.com/aws/aws-sdk-go/service/glacier/service.go index a318653d0..d668dde26 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/glacier/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/glacier/service.go @@ -24,25 +24,25 @@ import ( // Amazon Glacier is a great storage choice when low storage cost is paramount, // your data is rarely retrieved, and retrieval latency of several hours is // acceptable. If your application requires fast or frequent access to your -// data, consider using Amazon S3. For more information, go to Amazon Simple -// Storage Service (Amazon S3) (http://aws.amazon.com/s3/). +// data, consider using Amazon S3. For more information, see Amazon Simple Storage +// Service (Amazon S3) (http://aws.amazon.com/s3/). // -// You can store any kind of data in any format. There is no maximum limit -// on the total amount of data you can store in Amazon Glacier. +// You can store any kind of data in any format. There is no maximum limit on +// the total amount of data you can store in Amazon Glacier. // // If you are a first-time user of Amazon Glacier, we recommend that you begin // by reading the following sections in the Amazon Glacier Developer Guide: // -// What is Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/introduction.html) -// - This section of the Developer Guide describes the underlying data model, -// the operations it supports, and the AWS SDKs that you can use to interact -// with the service. +// * What is Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/introduction.html) +// - This section of the Developer Guide describes the underlying data model, +// the operations it supports, and the AWS SDKs that you can use to interact +// with the service. // -// Getting Started with Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/amazon-glacier-getting-started.html) -// - The Getting Started section walks you through the process of creating a -// vault, uploading archives, creating jobs to download archives, retrieving -// the job output, and deleting archives. -//The service client's operations are safe to be used concurrently. +// * Getting Started with Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/amazon-glacier-getting-started.html) +// - The Getting Started section walks you through the process of creating +// a vault, uploading archives, creating jobs to download archives, retrieving +// the job output, and deleting archives. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type Glacier struct { *client.Client @@ -54,8 +54,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "glacier" +// Service information constants +const ( + ServiceName = "glacier" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the Glacier client with a session. // If additional configuration is needed for the client instance use the optional @@ -68,17 +71,18 @@ const ServiceName = "glacier" // // Create a Glacier client with additional configuration // svc := glacier.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Glacier { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *Glacier { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Glacier { svc := &Glacier{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2012-06-01", diff --git a/vendor/github.com/aws/aws-sdk-go/service/health/api.go b/vendor/github.com/aws/aws-sdk-go/service/health/api.go new file mode 100644 index 000000000..00331fc1d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/health/api.go @@ -0,0 +1,2017 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package health provides a client for AWS Health APIs and Notifications. +package health + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opDescribeAffectedEntities = "DescribeAffectedEntities" + +// DescribeAffectedEntitiesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAffectedEntities operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeAffectedEntities for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeAffectedEntities method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeAffectedEntitiesRequest method. +// req, resp := client.DescribeAffectedEntitiesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntities +func (c *Health) DescribeAffectedEntitiesRequest(input *DescribeAffectedEntitiesInput) (req *request.Request, output *DescribeAffectedEntitiesOutput) { + op := &request.Operation{ + Name: opDescribeAffectedEntities, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeAffectedEntitiesInput{} + } + + output = &DescribeAffectedEntitiesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeAffectedEntities API operation for AWS Health APIs and Notifications. +// +// Returns a list of entities that have been affected by the specified events, +// based on the specified filter criteria. Entities can refer to individual +// customer resources, groups of customer resources, or any other construct, +// depending on the AWS service. Events that have impact beyond that of the +// affected entities, or where the extent of impact is unknown, include at least +// one entity indicating this. +// +// At least one event ARN is required. Results are sorted by the lastUpdatedTime +// of the entity, starting with the most recent. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Health APIs and Notifications's +// API operation DescribeAffectedEntities for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidPaginationToken "InvalidPaginationToken" +// The specified pagination token (nextToken) is not valid. +// +// * ErrCodeUnsupportedLocale "UnsupportedLocale" +// The specified locale is not supported. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntities +func (c *Health) DescribeAffectedEntities(input *DescribeAffectedEntitiesInput) (*DescribeAffectedEntitiesOutput, error) { + req, out := c.DescribeAffectedEntitiesRequest(input) + err := req.Send() + return out, err +} + +// DescribeAffectedEntitiesPages iterates over the pages of a DescribeAffectedEntities operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeAffectedEntities method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a DescribeAffectedEntities operation. +// pageNum := 0 +// err := client.DescribeAffectedEntitiesPages(params, +// func(page *DescribeAffectedEntitiesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Health) DescribeAffectedEntitiesPages(input *DescribeAffectedEntitiesInput, fn func(p *DescribeAffectedEntitiesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.DescribeAffectedEntitiesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*DescribeAffectedEntitiesOutput), lastPage) + }) +} + +const opDescribeEntityAggregates = "DescribeEntityAggregates" + +// DescribeEntityAggregatesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeEntityAggregates operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeEntityAggregates for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeEntityAggregates method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeEntityAggregatesRequest method. +// req, resp := client.DescribeEntityAggregatesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregates +func (c *Health) DescribeEntityAggregatesRequest(input *DescribeEntityAggregatesInput) (req *request.Request, output *DescribeEntityAggregatesOutput) { + op := &request.Operation{ + Name: opDescribeEntityAggregates, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeEntityAggregatesInput{} + } + + output = &DescribeEntityAggregatesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeEntityAggregates API operation for AWS Health APIs and Notifications. +// +// Returns the number of entities that are affected by each of the specified +// events. If no events are specified, the counts of all affected entities are +// returned. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Health APIs and Notifications's +// API operation DescribeEntityAggregates for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregates +func (c *Health) DescribeEntityAggregates(input *DescribeEntityAggregatesInput) (*DescribeEntityAggregatesOutput, error) { + req, out := c.DescribeEntityAggregatesRequest(input) + err := req.Send() + return out, err +} + +const opDescribeEventAggregates = "DescribeEventAggregates" + +// DescribeEventAggregatesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeEventAggregates operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeEventAggregates for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeEventAggregates method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeEventAggregatesRequest method. +// req, resp := client.DescribeEventAggregatesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventAggregates +func (c *Health) DescribeEventAggregatesRequest(input *DescribeEventAggregatesInput) (req *request.Request, output *DescribeEventAggregatesOutput) { + op := &request.Operation{ + Name: opDescribeEventAggregates, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeEventAggregatesInput{} + } + + output = &DescribeEventAggregatesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeEventAggregates API operation for AWS Health APIs and Notifications. +// +// Returns the number of events of each event type (issue, scheduled change, +// and account notification). If no filter is specified, the counts of all events +// in each category are returned. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Health APIs and Notifications's +// API operation DescribeEventAggregates for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidPaginationToken "InvalidPaginationToken" +// The specified pagination token (nextToken) is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventAggregates +func (c *Health) DescribeEventAggregates(input *DescribeEventAggregatesInput) (*DescribeEventAggregatesOutput, error) { + req, out := c.DescribeEventAggregatesRequest(input) + err := req.Send() + return out, err +} + +// DescribeEventAggregatesPages iterates over the pages of a DescribeEventAggregates operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeEventAggregates method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a DescribeEventAggregates operation. +// pageNum := 0 +// err := client.DescribeEventAggregatesPages(params, +// func(page *DescribeEventAggregatesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Health) DescribeEventAggregatesPages(input *DescribeEventAggregatesInput, fn func(p *DescribeEventAggregatesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.DescribeEventAggregatesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*DescribeEventAggregatesOutput), lastPage) + }) +} + +const opDescribeEventDetails = "DescribeEventDetails" + +// DescribeEventDetailsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeEventDetails operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeEventDetails for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeEventDetails method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeEventDetailsRequest method. +// req, resp := client.DescribeEventDetailsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetails +func (c *Health) DescribeEventDetailsRequest(input *DescribeEventDetailsInput) (req *request.Request, output *DescribeEventDetailsOutput) { + op := &request.Operation{ + Name: opDescribeEventDetails, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeEventDetailsInput{} + } + + output = &DescribeEventDetailsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeEventDetails API operation for AWS Health APIs and Notifications. +// +// Returns detailed information about one or more specified events. Information +// includes standard event data (region, service, etc., as returned by DescribeEvents), +// a detailed event description, and possible additional metadata that depends +// upon the nature of the event. Affected entities are not included; to retrieve +// those, use the DescribeAffectedEntities operation. +// +// If a specified event cannot be retrieved, an error message is returned for +// that event. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Health APIs and Notifications's +// API operation DescribeEventDetails for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnsupportedLocale "UnsupportedLocale" +// The specified locale is not supported. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetails +func (c *Health) DescribeEventDetails(input *DescribeEventDetailsInput) (*DescribeEventDetailsOutput, error) { + req, out := c.DescribeEventDetailsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeEventTypes = "DescribeEventTypes" + +// DescribeEventTypesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeEventTypes operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeEventTypes for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeEventTypes method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeEventTypesRequest method. +// req, resp := client.DescribeEventTypesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypes +func (c *Health) DescribeEventTypesRequest(input *DescribeEventTypesInput) (req *request.Request, output *DescribeEventTypesOutput) { + op := &request.Operation{ + Name: opDescribeEventTypes, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeEventTypesInput{} + } + + output = &DescribeEventTypesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeEventTypes API operation for AWS Health APIs and Notifications. +// +// Returns the event types that meet the specified filter criteria. If no filter +// criteria are specified, all event types are returned, in no particular order. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Health APIs and Notifications's +// API operation DescribeEventTypes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidPaginationToken "InvalidPaginationToken" +// The specified pagination token (nextToken) is not valid. +// +// * ErrCodeUnsupportedLocale "UnsupportedLocale" +// The specified locale is not supported. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypes +func (c *Health) DescribeEventTypes(input *DescribeEventTypesInput) (*DescribeEventTypesOutput, error) { + req, out := c.DescribeEventTypesRequest(input) + err := req.Send() + return out, err +} + +// DescribeEventTypesPages iterates over the pages of a DescribeEventTypes operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeEventTypes method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a DescribeEventTypes operation. +// pageNum := 0 +// err := client.DescribeEventTypesPages(params, +// func(page *DescribeEventTypesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Health) DescribeEventTypesPages(input *DescribeEventTypesInput, fn func(p *DescribeEventTypesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.DescribeEventTypesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*DescribeEventTypesOutput), lastPage) + }) +} + +const opDescribeEvents = "DescribeEvents" + +// DescribeEventsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeEvents operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeEvents for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeEvents method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeEventsRequest method. +// req, resp := client.DescribeEventsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEvents +func (c *Health) DescribeEventsRequest(input *DescribeEventsInput) (req *request.Request, output *DescribeEventsOutput) { + op := &request.Operation{ + Name: opDescribeEvents, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeEventsInput{} + } + + output = &DescribeEventsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeEvents API operation for AWS Health APIs and Notifications. +// +// Returns information about events that meet the specified filter criteria. +// Events are returned in a summary form and do not include the detailed description, +// any additional metadata that depends on the event type, or any affected resources. +// To retrieve that information, use the DescribeEventDetails and DescribeAffectedEntities +// operations. +// +// If no filter criteria are specified, all events are returned. Results are +// sorted by lastModifiedTime, starting with the most recent. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Health APIs and Notifications's +// API operation DescribeEvents for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidPaginationToken "InvalidPaginationToken" +// The specified pagination token (nextToken) is not valid. +// +// * ErrCodeUnsupportedLocale "UnsupportedLocale" +// The specified locale is not supported. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEvents +func (c *Health) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) { + req, out := c.DescribeEventsRequest(input) + err := req.Send() + return out, err +} + +// DescribeEventsPages iterates over the pages of a DescribeEvents operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeEvents method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a DescribeEvents operation. +// pageNum := 0 +// err := client.DescribeEventsPages(params, +// func(page *DescribeEventsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Health) DescribeEventsPages(input *DescribeEventsInput, fn func(p *DescribeEventsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.DescribeEventsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*DescribeEventsOutput), lastPage) + }) +} + +// Information about an entity that is affected by a Health event. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/AffectedEntity +type AffectedEntity struct { + _ struct{} `type:"structure"` + + // The 12-digit AWS account number that contains the affected entity. + AwsAccountId *string `locationName:"awsAccountId" type:"string"` + + // The unique identifier for the entity. Format: arn:aws:health:entity-region:aws-account:entity/entity-id. + // Example: arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K + EntityArn *string `locationName:"entityArn" type:"string"` + + // The ID of the affected entity. + EntityValue *string `locationName:"entityValue" type:"string"` + + // The unique identifier for the event. Format: arn:aws:health:event-region::event/EVENT_TYPE_PLUS_ID. + // Example: arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331 + EventArn *string `locationName:"eventArn" type:"string"` + + // The most recent time that the entity was updated. + LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp" timestampFormat:"unix"` + + // The most recent status of the entity affected by the event. The possible + // values are IMPAIRED, UNIMPAIRED, and UNKNOWN. + StatusCode *string `locationName:"statusCode" type:"string" enum:"entityStatusCode"` + + // A map of entity tags attached to the affected entity. + Tags map[string]*string `locationName:"tags" type:"map"` +} + +// String returns the string representation +func (s AffectedEntity) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AffectedEntity) GoString() string { + return s.String() +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *AffectedEntity) SetAwsAccountId(v string) *AffectedEntity { + s.AwsAccountId = &v + return s +} + +// SetEntityArn sets the EntityArn field's value. +func (s *AffectedEntity) SetEntityArn(v string) *AffectedEntity { + s.EntityArn = &v + return s +} + +// SetEntityValue sets the EntityValue field's value. +func (s *AffectedEntity) SetEntityValue(v string) *AffectedEntity { + s.EntityValue = &v + return s +} + +// SetEventArn sets the EventArn field's value. +func (s *AffectedEntity) SetEventArn(v string) *AffectedEntity { + s.EventArn = &v + return s +} + +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *AffectedEntity) SetLastUpdatedTime(v time.Time) *AffectedEntity { + s.LastUpdatedTime = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *AffectedEntity) SetStatusCode(v string) *AffectedEntity { + s.StatusCode = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AffectedEntity) SetTags(v map[string]*string) *AffectedEntity { + s.Tags = v + return s +} + +// A range of dates and times that is used by the EventFilter and EntityFilter +// objects. If from is set and to is set: match items where the timestamp (startTime, +// endTime, or lastUpdatedTime) is between from and to inclusive. If from is +// set and to is not set: match items where the timestamp value is equal to +// or after from. If from is not set and to is set: match items where the timestamp +// value is equal to or before to. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DateTimeRange +type DateTimeRange struct { + _ struct{} `type:"structure"` + + // The starting date and time of a time range. + From *time.Time `locationName:"from" type:"timestamp" timestampFormat:"unix"` + + // The ending date and time of a time range. + To *time.Time `locationName:"to" type:"timestamp" timestampFormat:"unix"` +} + +// String returns the string representation +func (s DateTimeRange) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DateTimeRange) GoString() string { + return s.String() +} + +// SetFrom sets the From field's value. +func (s *DateTimeRange) SetFrom(v time.Time) *DateTimeRange { + s.From = &v + return s +} + +// SetTo sets the To field's value. +func (s *DateTimeRange) SetTo(v time.Time) *DateTimeRange { + s.To = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesRequest +type DescribeAffectedEntitiesInput struct { + _ struct{} `type:"structure"` + + // Values to narrow the results returned. At least one event ARN is required. + // + // Filter is a required field + Filter *EntityFilter `locationName:"filter" type:"structure" required:"true"` + + // The locale (language) to return information in. English (en) is the default + // and the only supported value at this time. + Locale *string `locationName:"locale" min:"2" type:"string"` + + // The maximum number of items to return in one batch, between 10 and 100, inclusive. + MaxResults *int64 `locationName:"maxResults" min:"10" type:"integer"` + + // If the results of a search are large, only a portion of the results are returned, + // and a nextToken pagination token is returned in the response. To retrieve + // the next batch of results, reissue the search request and include the returned + // token. When all results have been returned, the response does not contain + // a pagination token value. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s DescribeAffectedEntitiesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAffectedEntitiesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeAffectedEntitiesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeAffectedEntitiesInput"} + if s.Filter == nil { + invalidParams.Add(request.NewErrParamRequired("Filter")) + } + if s.Locale != nil && len(*s.Locale) < 2 { + invalidParams.Add(request.NewErrParamMinLen("Locale", 2)) + } + if s.MaxResults != nil && *s.MaxResults < 10 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10)) + } + if s.Filter != nil { + if err := s.Filter.Validate(); err != nil { + invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilter sets the Filter field's value. +func (s *DescribeAffectedEntitiesInput) SetFilter(v *EntityFilter) *DescribeAffectedEntitiesInput { + s.Filter = v + return s +} + +// SetLocale sets the Locale field's value. +func (s *DescribeAffectedEntitiesInput) SetLocale(v string) *DescribeAffectedEntitiesInput { + s.Locale = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeAffectedEntitiesInput) SetMaxResults(v int64) *DescribeAffectedEntitiesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAffectedEntitiesInput) SetNextToken(v string) *DescribeAffectedEntitiesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesResponse +type DescribeAffectedEntitiesOutput struct { + _ struct{} `type:"structure"` + + // The entities that match the filter criteria. + Entities []*AffectedEntity `locationName:"entities" type:"list"` + + // If the results of a search are large, only a portion of the results are returned, + // and a nextToken pagination token is returned in the response. To retrieve + // the next batch of results, reissue the search request and include the returned + // token. When all results have been returned, the response does not contain + // a pagination token value. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s DescribeAffectedEntitiesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAffectedEntitiesOutput) GoString() string { + return s.String() +} + +// SetEntities sets the Entities field's value. +func (s *DescribeAffectedEntitiesOutput) SetEntities(v []*AffectedEntity) *DescribeAffectedEntitiesOutput { + s.Entities = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAffectedEntitiesOutput) SetNextToken(v string) *DescribeAffectedEntitiesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregatesRequest +type DescribeEntityAggregatesInput struct { + _ struct{} `type:"structure"` + + // A list of event ARNs (unique identifiers). For example: "arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331", + // "arn:aws:health:us-west-1::event/AWS_EBS_LOST_VOLUME_xyz" + EventArns []*string `locationName:"eventArns" min:"1" type:"list"` +} + +// String returns the string representation +func (s DescribeEntityAggregatesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEntityAggregatesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeEntityAggregatesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeEntityAggregatesInput"} + if s.EventArns != nil && len(s.EventArns) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EventArns", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEventArns sets the EventArns field's value. +func (s *DescribeEntityAggregatesInput) SetEventArns(v []*string) *DescribeEntityAggregatesInput { + s.EventArns = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregatesResponse +type DescribeEntityAggregatesOutput struct { + _ struct{} `type:"structure"` + + // The number of entities that are affected by each of the specified events. + EntityAggregates []*EntityAggregate `locationName:"entityAggregates" type:"list"` +} + +// String returns the string representation +func (s DescribeEntityAggregatesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEntityAggregatesOutput) GoString() string { + return s.String() +} + +// SetEntityAggregates sets the EntityAggregates field's value. +func (s *DescribeEntityAggregatesOutput) SetEntityAggregates(v []*EntityAggregate) *DescribeEntityAggregatesOutput { + s.EntityAggregates = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventAggregatesRequest +type DescribeEventAggregatesInput struct { + _ struct{} `type:"structure"` + + // The only currently supported value is eventTypeCategory. + // + // AggregateField is a required field + AggregateField *string `locationName:"aggregateField" type:"string" required:"true" enum:"eventAggregateField"` + + // Values to narrow the results returned. + Filter *EventFilter `locationName:"filter" type:"structure"` + + // The maximum number of items to return in one batch, between 10 and 100, inclusive. + MaxResults *int64 `locationName:"maxResults" min:"10" type:"integer"` + + // If the results of a search are large, only a portion of the results are returned, + // and a nextToken pagination token is returned in the response. To retrieve + // the next batch of results, reissue the search request and include the returned + // token. When all results have been returned, the response does not contain + // a pagination token value. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s DescribeEventAggregatesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEventAggregatesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeEventAggregatesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeEventAggregatesInput"} + if s.AggregateField == nil { + invalidParams.Add(request.NewErrParamRequired("AggregateField")) + } + if s.MaxResults != nil && *s.MaxResults < 10 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10)) + } + if s.Filter != nil { + if err := s.Filter.Validate(); err != nil { + invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAggregateField sets the AggregateField field's value. +func (s *DescribeEventAggregatesInput) SetAggregateField(v string) *DescribeEventAggregatesInput { + s.AggregateField = &v + return s +} + +// SetFilter sets the Filter field's value. +func (s *DescribeEventAggregatesInput) SetFilter(v *EventFilter) *DescribeEventAggregatesInput { + s.Filter = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeEventAggregatesInput) SetMaxResults(v int64) *DescribeEventAggregatesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEventAggregatesInput) SetNextToken(v string) *DescribeEventAggregatesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventAggregatesResponse +type DescribeEventAggregatesOutput struct { + _ struct{} `type:"structure"` + + // The number of events in each category that meet the optional filter criteria. + EventAggregates []*EventAggregate `locationName:"eventAggregates" type:"list"` + + // If the results of a search are large, only a portion of the results are returned, + // and a nextToken pagination token is returned in the response. To retrieve + // the next batch of results, reissue the search request and include the returned + // token. When all results have been returned, the response does not contain + // a pagination token value. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s DescribeEventAggregatesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEventAggregatesOutput) GoString() string { + return s.String() +} + +// SetEventAggregates sets the EventAggregates field's value. +func (s *DescribeEventAggregatesOutput) SetEventAggregates(v []*EventAggregate) *DescribeEventAggregatesOutput { + s.EventAggregates = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEventAggregatesOutput) SetNextToken(v string) *DescribeEventAggregatesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetailsRequest +type DescribeEventDetailsInput struct { + _ struct{} `type:"structure"` + + // A list of event ARNs (unique identifiers). For example: "arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331", + // "arn:aws:health:us-west-1::event/AWS_EBS_LOST_VOLUME_xyz" + // + // EventArns is a required field + EventArns []*string `locationName:"eventArns" min:"1" type:"list" required:"true"` + + // The locale (language) to return information in. English (en) is the default + // and the only supported value at this time. + Locale *string `locationName:"locale" min:"2" type:"string"` +} + +// String returns the string representation +func (s DescribeEventDetailsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEventDetailsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeEventDetailsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeEventDetailsInput"} + if s.EventArns == nil { + invalidParams.Add(request.NewErrParamRequired("EventArns")) + } + if s.EventArns != nil && len(s.EventArns) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EventArns", 1)) + } + if s.Locale != nil && len(*s.Locale) < 2 { + invalidParams.Add(request.NewErrParamMinLen("Locale", 2)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEventArns sets the EventArns field's value. +func (s *DescribeEventDetailsInput) SetEventArns(v []*string) *DescribeEventDetailsInput { + s.EventArns = v + return s +} + +// SetLocale sets the Locale field's value. +func (s *DescribeEventDetailsInput) SetLocale(v string) *DescribeEventDetailsInput { + s.Locale = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetailsResponse +type DescribeEventDetailsOutput struct { + _ struct{} `type:"structure"` + + // Error messages for any events that could not be retrieved. + FailedSet []*EventDetailsErrorItem `locationName:"failedSet" type:"list"` + + // Information about the events that could be retrieved. + SuccessfulSet []*EventDetails `locationName:"successfulSet" type:"list"` +} + +// String returns the string representation +func (s DescribeEventDetailsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEventDetailsOutput) GoString() string { + return s.String() +} + +// SetFailedSet sets the FailedSet field's value. +func (s *DescribeEventDetailsOutput) SetFailedSet(v []*EventDetailsErrorItem) *DescribeEventDetailsOutput { + s.FailedSet = v + return s +} + +// SetSuccessfulSet sets the SuccessfulSet field's value. +func (s *DescribeEventDetailsOutput) SetSuccessfulSet(v []*EventDetails) *DescribeEventDetailsOutput { + s.SuccessfulSet = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypesRequest +type DescribeEventTypesInput struct { + _ struct{} `type:"structure"` + + // Values to narrow the results returned. + Filter *EventTypeFilter `locationName:"filter" type:"structure"` + + // The locale (language) to return information in. English (en) is the default + // and the only supported value at this time. + Locale *string `locationName:"locale" min:"2" type:"string"` + + // The maximum number of items to return in one batch, between 10 and 100, inclusive. + MaxResults *int64 `locationName:"maxResults" min:"10" type:"integer"` + + // If the results of a search are large, only a portion of the results are returned, + // and a nextToken pagination token is returned in the response. To retrieve + // the next batch of results, reissue the search request and include the returned + // token. When all results have been returned, the response does not contain + // a pagination token value. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s DescribeEventTypesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEventTypesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeEventTypesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeEventTypesInput"} + if s.Locale != nil && len(*s.Locale) < 2 { + invalidParams.Add(request.NewErrParamMinLen("Locale", 2)) + } + if s.MaxResults != nil && *s.MaxResults < 10 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10)) + } + if s.Filter != nil { + if err := s.Filter.Validate(); err != nil { + invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilter sets the Filter field's value. +func (s *DescribeEventTypesInput) SetFilter(v *EventTypeFilter) *DescribeEventTypesInput { + s.Filter = v + return s +} + +// SetLocale sets the Locale field's value. +func (s *DescribeEventTypesInput) SetLocale(v string) *DescribeEventTypesInput { + s.Locale = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeEventTypesInput) SetMaxResults(v int64) *DescribeEventTypesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEventTypesInput) SetNextToken(v string) *DescribeEventTypesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypesResponse +type DescribeEventTypesOutput struct { + _ struct{} `type:"structure"` + + // A list of event types that match the filter criteria. Event types have a + // category (issue, accountNotification, or scheduledChange), a service (for + // example, EC2, RDS, DATAPIPELINE, BILLING), and a code (in the format AWS_SERVICE_DESCRIPTION; + // for example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT). + EventTypes []*EventType `locationName:"eventTypes" type:"list"` + + // If the results of a search are large, only a portion of the results are returned, + // and a nextToken pagination token is returned in the response. To retrieve + // the next batch of results, reissue the search request and include the returned + // token. When all results have been returned, the response does not contain + // a pagination token value. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s DescribeEventTypesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEventTypesOutput) GoString() string { + return s.String() +} + +// SetEventTypes sets the EventTypes field's value. +func (s *DescribeEventTypesOutput) SetEventTypes(v []*EventType) *DescribeEventTypesOutput { + s.EventTypes = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEventTypesOutput) SetNextToken(v string) *DescribeEventTypesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventsRequest +type DescribeEventsInput struct { + _ struct{} `type:"structure"` + + // Values to narrow the results returned. + Filter *EventFilter `locationName:"filter" type:"structure"` + + // The locale (language) to return information in. English (en) is the default + // and the only supported value at this time. + Locale *string `locationName:"locale" min:"2" type:"string"` + + // The maximum number of items to return in one batch, between 10 and 100, inclusive. + MaxResults *int64 `locationName:"maxResults" min:"10" type:"integer"` + + // If the results of a search are large, only a portion of the results are returned, + // and a nextToken pagination token is returned in the response. To retrieve + // the next batch of results, reissue the search request and include the returned + // token. When all results have been returned, the response does not contain + // a pagination token value. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s DescribeEventsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEventsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeEventsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeEventsInput"} + if s.Locale != nil && len(*s.Locale) < 2 { + invalidParams.Add(request.NewErrParamMinLen("Locale", 2)) + } + if s.MaxResults != nil && *s.MaxResults < 10 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10)) + } + if s.Filter != nil { + if err := s.Filter.Validate(); err != nil { + invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilter sets the Filter field's value. +func (s *DescribeEventsInput) SetFilter(v *EventFilter) *DescribeEventsInput { + s.Filter = v + return s +} + +// SetLocale sets the Locale field's value. +func (s *DescribeEventsInput) SetLocale(v string) *DescribeEventsInput { + s.Locale = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeEventsInput) SetMaxResults(v int64) *DescribeEventsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEventsInput) SetNextToken(v string) *DescribeEventsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventsResponse +type DescribeEventsOutput struct { + _ struct{} `type:"structure"` + + // The events that match the specified filter criteria. + Events []*Event `locationName:"events" type:"list"` + + // If the results of a search are large, only a portion of the results are returned, + // and a nextToken pagination token is returned in the response. To retrieve + // the next batch of results, reissue the search request and include the returned + // token. When all results have been returned, the response does not contain + // a pagination token value. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s DescribeEventsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEventsOutput) GoString() string { + return s.String() +} + +// SetEvents sets the Events field's value. +func (s *DescribeEventsOutput) SetEvents(v []*Event) *DescribeEventsOutput { + s.Events = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEventsOutput) SetNextToken(v string) *DescribeEventsOutput { + s.NextToken = &v + return s +} + +// The number of entities that are affected by one or more events. Returned +// by the DescribeEntityAggregates operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EntityAggregate +type EntityAggregate struct { + _ struct{} `type:"structure"` + + // The number entities that match the criteria for the specified events. + Count *int64 `locationName:"count" type:"integer"` + + // The unique identifier for the event. Format: arn:aws:health:event-region::event/EVENT_TYPE_PLUS_ID. + // Example: arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331 + EventArn *string `locationName:"eventArn" type:"string"` +} + +// String returns the string representation +func (s EntityAggregate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EntityAggregate) GoString() string { + return s.String() +} + +// SetCount sets the Count field's value. +func (s *EntityAggregate) SetCount(v int64) *EntityAggregate { + s.Count = &v + return s +} + +// SetEventArn sets the EventArn field's value. +func (s *EntityAggregate) SetEventArn(v string) *EntityAggregate { + s.EventArn = &v + return s +} + +// The values to use to filter results from the DescribeAffectedEntities operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EntityFilter +type EntityFilter struct { + _ struct{} `type:"structure"` + + // A list of entity ARNs (unique identifiers). + EntityArns []*string `locationName:"entityArns" min:"1" type:"list"` + + // A list of IDs for affected entities. + EntityValues []*string `locationName:"entityValues" min:"1" type:"list"` + + // A list of event ARNs (unique identifiers). For example: "arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331", + // "arn:aws:health:us-west-1::event/AWS_EBS_LOST_VOLUME_xyz" + // + // EventArns is a required field + EventArns []*string `locationName:"eventArns" min:"1" type:"list" required:"true"` + + // A list of the most recent dates and times that the entity was updated. + LastUpdatedTimes []*DateTimeRange `locationName:"lastUpdatedTimes" min:"1" type:"list"` + + // A list of entity status codes (IMPAIRED, UNIMPAIRED, or UNKNOWN). + StatusCodes []*string `locationName:"statusCodes" min:"1" type:"list"` + + // A map of entity tags attached to the affected entity. + Tags []map[string]*string `locationName:"tags" type:"list"` +} + +// String returns the string representation +func (s EntityFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EntityFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EntityFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EntityFilter"} + if s.EntityArns != nil && len(s.EntityArns) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EntityArns", 1)) + } + if s.EntityValues != nil && len(s.EntityValues) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EntityValues", 1)) + } + if s.EventArns == nil { + invalidParams.Add(request.NewErrParamRequired("EventArns")) + } + if s.EventArns != nil && len(s.EventArns) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EventArns", 1)) + } + if s.LastUpdatedTimes != nil && len(s.LastUpdatedTimes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LastUpdatedTimes", 1)) + } + if s.StatusCodes != nil && len(s.StatusCodes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatusCodes", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEntityArns sets the EntityArns field's value. +func (s *EntityFilter) SetEntityArns(v []*string) *EntityFilter { + s.EntityArns = v + return s +} + +// SetEntityValues sets the EntityValues field's value. +func (s *EntityFilter) SetEntityValues(v []*string) *EntityFilter { + s.EntityValues = v + return s +} + +// SetEventArns sets the EventArns field's value. +func (s *EntityFilter) SetEventArns(v []*string) *EntityFilter { + s.EventArns = v + return s +} + +// SetLastUpdatedTimes sets the LastUpdatedTimes field's value. +func (s *EntityFilter) SetLastUpdatedTimes(v []*DateTimeRange) *EntityFilter { + s.LastUpdatedTimes = v + return s +} + +// SetStatusCodes sets the StatusCodes field's value. +func (s *EntityFilter) SetStatusCodes(v []*string) *EntityFilter { + s.StatusCodes = v + return s +} + +// SetTags sets the Tags field's value. +func (s *EntityFilter) SetTags(v []map[string]*string) *EntityFilter { + s.Tags = v + return s +} + +// Summary information about an event, returned by the DescribeEvents operation. +// The DescribeEventDetails operation also returns this information, as well +// as the EventDescription and additional event metadata. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/Event +type Event struct { + _ struct{} `type:"structure"` + + // The unique identifier for the event. Format: arn:aws:health:event-region::event/EVENT_TYPE_PLUS_ID. + // Example: arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331 + Arn *string `locationName:"arn" type:"string"` + + // The AWS Availability Zone of the event. For example, us-east-1a. + AvailabilityZone *string `locationName:"availabilityZone" type:"string"` + + // The date and time that the event ended. + EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"` + + // The + EventTypeCategory *string `locationName:"eventTypeCategory" min:"3" type:"string" enum:"eventTypeCategory"` + + // The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION; + // for example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT. + EventTypeCode *string `locationName:"eventTypeCode" min:"3" type:"string"` + + // The most recent date and time that the event was updated. + LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp" timestampFormat:"unix"` + + // The AWS region name of the event. + Region *string `locationName:"region" type:"string"` + + // The AWS service that is affected by the event. For example, EC2, RDS. + Service *string `locationName:"service" min:"2" type:"string"` + + // The date and time that the event began. + StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"` + + // The most recent status of the event. Possible values are open, closed, and + // upcoming. + StatusCode *string `locationName:"statusCode" type:"string" enum:"eventStatusCode"` +} + +// String returns the string representation +func (s Event) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Event) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *Event) SetArn(v string) *Event { + s.Arn = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Event) SetAvailabilityZone(v string) *Event { + s.AvailabilityZone = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *Event) SetEndTime(v time.Time) *Event { + s.EndTime = &v + return s +} + +// SetEventTypeCategory sets the EventTypeCategory field's value. +func (s *Event) SetEventTypeCategory(v string) *Event { + s.EventTypeCategory = &v + return s +} + +// SetEventTypeCode sets the EventTypeCode field's value. +func (s *Event) SetEventTypeCode(v string) *Event { + s.EventTypeCode = &v + return s +} + +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *Event) SetLastUpdatedTime(v time.Time) *Event { + s.LastUpdatedTime = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *Event) SetRegion(v string) *Event { + s.Region = &v + return s +} + +// SetService sets the Service field's value. +func (s *Event) SetService(v string) *Event { + s.Service = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *Event) SetStartTime(v time.Time) *Event { + s.StartTime = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *Event) SetStatusCode(v string) *Event { + s.StatusCode = &v + return s +} + +// The number of events of each issue type. Returned by the DescribeEventAggregates +// operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EventAggregate +type EventAggregate struct { + _ struct{} `type:"structure"` + + // The issue type for the associated count. + AggregateValue *string `locationName:"aggregateValue" type:"string"` + + // The number of events of the associated issue type. + Count *int64 `locationName:"count" type:"integer"` +} + +// String returns the string representation +func (s EventAggregate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EventAggregate) GoString() string { + return s.String() +} + +// SetAggregateValue sets the AggregateValue field's value. +func (s *EventAggregate) SetAggregateValue(v string) *EventAggregate { + s.AggregateValue = &v + return s +} + +// SetCount sets the Count field's value. +func (s *EventAggregate) SetCount(v int64) *EventAggregate { + s.Count = &v + return s +} + +// The detailed description of the event. Included in the information returned +// by the DescribeEventDetails operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EventDescription +type EventDescription struct { + _ struct{} `type:"structure"` + + // The most recent description of the event. + LatestDescription *string `locationName:"latestDescription" type:"string"` +} + +// String returns the string representation +func (s EventDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EventDescription) GoString() string { + return s.String() +} + +// SetLatestDescription sets the LatestDescription field's value. +func (s *EventDescription) SetLatestDescription(v string) *EventDescription { + s.LatestDescription = &v + return s +} + +// Detailed information about an event. A combination of an Event object, an +// EventDescription object, and additional metadata about the event. Returned +// by the DescribeEventDetails operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EventDetails +type EventDetails struct { + _ struct{} `type:"structure"` + + // Summary information about the event. + Event *Event `locationName:"event" type:"structure"` + + // The most recent description of the event. + EventDescription *EventDescription `locationName:"eventDescription" type:"structure"` + + // Additional metadata about the event. + EventMetadata map[string]*string `locationName:"eventMetadata" type:"map"` +} + +// String returns the string representation +func (s EventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EventDetails) GoString() string { + return s.String() +} + +// SetEvent sets the Event field's value. +func (s *EventDetails) SetEvent(v *Event) *EventDetails { + s.Event = v + return s +} + +// SetEventDescription sets the EventDescription field's value. +func (s *EventDetails) SetEventDescription(v *EventDescription) *EventDetails { + s.EventDescription = v + return s +} + +// SetEventMetadata sets the EventMetadata field's value. +func (s *EventDetails) SetEventMetadata(v map[string]*string) *EventDetails { + s.EventMetadata = v + return s +} + +// Error information returned when a DescribeEventDetails operation cannot find +// a specified event. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EventDetailsErrorItem +type EventDetailsErrorItem struct { + _ struct{} `type:"structure"` + + // A message that describes the error. + ErrorMessage *string `locationName:"errorMessage" type:"string"` + + // The name of the error. + ErrorName *string `locationName:"errorName" type:"string"` + + // The unique identifier for the event. Format: arn:aws:health:event-region::event/EVENT_TYPE_PLUS_ID. + // Example: arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331 + EventArn *string `locationName:"eventArn" type:"string"` +} + +// String returns the string representation +func (s EventDetailsErrorItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EventDetailsErrorItem) GoString() string { + return s.String() +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *EventDetailsErrorItem) SetErrorMessage(v string) *EventDetailsErrorItem { + s.ErrorMessage = &v + return s +} + +// SetErrorName sets the ErrorName field's value. +func (s *EventDetailsErrorItem) SetErrorName(v string) *EventDetailsErrorItem { + s.ErrorName = &v + return s +} + +// SetEventArn sets the EventArn field's value. +func (s *EventDetailsErrorItem) SetEventArn(v string) *EventDetailsErrorItem { + s.EventArn = &v + return s +} + +// The values to use to filter results from the DescribeEvents and DescribeEventAggregates +// operations. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EventFilter +type EventFilter struct { + _ struct{} `type:"structure"` + + // A list of AWS availability zones. + AvailabilityZones []*string `locationName:"availabilityZones" type:"list"` + + // A list of dates and times that the event ended. + EndTimes []*DateTimeRange `locationName:"endTimes" min:"1" type:"list"` + + // A list of entity ARNs (unique identifiers). + EntityArns []*string `locationName:"entityArns" min:"1" type:"list"` + + // A list of entity identifiers, such as EC2 instance IDs (i-34ab692e) or EBS + // volumes (vol-426ab23e). + EntityValues []*string `locationName:"entityValues" min:"1" type:"list"` + + // A list of event ARNs (unique identifiers). For example: "arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331", + // "arn:aws:health:us-west-1::event/AWS_EBS_LOST_VOLUME_xyz" + EventArns []*string `locationName:"eventArns" min:"1" type:"list"` + + // A list of event status codes. + EventStatusCodes []*string `locationName:"eventStatusCodes" min:"1" type:"list"` + + // A list of event type category codes (issue, scheduledChange, or accountNotification). + EventTypeCategories []*string `locationName:"eventTypeCategories" min:"1" type:"list"` + + // A list of unique identifiers for event types. For example, "AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED" + EventTypeCodes []*string `locationName:"eventTypeCodes" min:"1" type:"list"` + + // A list of dates and times that the event was last updated. + LastUpdatedTimes []*DateTimeRange `locationName:"lastUpdatedTimes" min:"1" type:"list"` + + // A list of AWS regions. + Regions []*string `locationName:"regions" min:"1" type:"list"` + + // The AWS services associated with the event. For example, EC2, RDS. + Services []*string `locationName:"services" min:"1" type:"list"` + + // A list of dates and times that the event began. + StartTimes []*DateTimeRange `locationName:"startTimes" min:"1" type:"list"` + + // A map of entity tags attached to the affected entity. + Tags []map[string]*string `locationName:"tags" type:"list"` +} + +// String returns the string representation +func (s EventFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EventFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EventFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EventFilter"} + if s.EndTimes != nil && len(s.EndTimes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EndTimes", 1)) + } + if s.EntityArns != nil && len(s.EntityArns) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EntityArns", 1)) + } + if s.EntityValues != nil && len(s.EntityValues) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EntityValues", 1)) + } + if s.EventArns != nil && len(s.EventArns) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EventArns", 1)) + } + if s.EventStatusCodes != nil && len(s.EventStatusCodes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EventStatusCodes", 1)) + } + if s.EventTypeCategories != nil && len(s.EventTypeCategories) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EventTypeCategories", 1)) + } + if s.EventTypeCodes != nil && len(s.EventTypeCodes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EventTypeCodes", 1)) + } + if s.LastUpdatedTimes != nil && len(s.LastUpdatedTimes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LastUpdatedTimes", 1)) + } + if s.Regions != nil && len(s.Regions) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Regions", 1)) + } + if s.Services != nil && len(s.Services) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Services", 1)) + } + if s.StartTimes != nil && len(s.StartTimes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StartTimes", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *EventFilter) SetAvailabilityZones(v []*string) *EventFilter { + s.AvailabilityZones = v + return s +} + +// SetEndTimes sets the EndTimes field's value. +func (s *EventFilter) SetEndTimes(v []*DateTimeRange) *EventFilter { + s.EndTimes = v + return s +} + +// SetEntityArns sets the EntityArns field's value. +func (s *EventFilter) SetEntityArns(v []*string) *EventFilter { + s.EntityArns = v + return s +} + +// SetEntityValues sets the EntityValues field's value. +func (s *EventFilter) SetEntityValues(v []*string) *EventFilter { + s.EntityValues = v + return s +} + +// SetEventArns sets the EventArns field's value. +func (s *EventFilter) SetEventArns(v []*string) *EventFilter { + s.EventArns = v + return s +} + +// SetEventStatusCodes sets the EventStatusCodes field's value. +func (s *EventFilter) SetEventStatusCodes(v []*string) *EventFilter { + s.EventStatusCodes = v + return s +} + +// SetEventTypeCategories sets the EventTypeCategories field's value. +func (s *EventFilter) SetEventTypeCategories(v []*string) *EventFilter { + s.EventTypeCategories = v + return s +} + +// SetEventTypeCodes sets the EventTypeCodes field's value. +func (s *EventFilter) SetEventTypeCodes(v []*string) *EventFilter { + s.EventTypeCodes = v + return s +} + +// SetLastUpdatedTimes sets the LastUpdatedTimes field's value. +func (s *EventFilter) SetLastUpdatedTimes(v []*DateTimeRange) *EventFilter { + s.LastUpdatedTimes = v + return s +} + +// SetRegions sets the Regions field's value. +func (s *EventFilter) SetRegions(v []*string) *EventFilter { + s.Regions = v + return s +} + +// SetServices sets the Services field's value. +func (s *EventFilter) SetServices(v []*string) *EventFilter { + s.Services = v + return s +} + +// SetStartTimes sets the StartTimes field's value. +func (s *EventFilter) SetStartTimes(v []*DateTimeRange) *EventFilter { + s.StartTimes = v + return s +} + +// SetTags sets the Tags field's value. +func (s *EventFilter) SetTags(v []map[string]*string) *EventFilter { + s.Tags = v + return s +} + +// Metadata about a type of event that is reported by AWS Health. Data consists +// of the category (for example, issue), the service (for example, EC2), and +// the event type code (for example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EventType +type EventType struct { + _ struct{} `type:"structure"` + + // A list of event type category codes (issue, scheduledChange, or accountNotification). + Category *string `locationName:"category" min:"3" type:"string" enum:"eventTypeCategory"` + + // The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION; + // for example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT. + Code *string `locationName:"code" min:"3" type:"string"` + + // The AWS service that is affected by the event. For example, EC2, RDS. + Service *string `locationName:"service" min:"2" type:"string"` +} + +// String returns the string representation +func (s EventType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EventType) GoString() string { + return s.String() +} + +// SetCategory sets the Category field's value. +func (s *EventType) SetCategory(v string) *EventType { + s.Category = &v + return s +} + +// SetCode sets the Code field's value. +func (s *EventType) SetCode(v string) *EventType { + s.Code = &v + return s +} + +// SetService sets the Service field's value. +func (s *EventType) SetService(v string) *EventType { + s.Service = &v + return s +} + +// The values to use to filter results from the DescribeEventTypes operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EventTypeFilter +type EventTypeFilter struct { + _ struct{} `type:"structure"` + + // A list of event type category codes (issue, scheduledChange, or accountNotification). + EventTypeCategories []*string `locationName:"eventTypeCategories" min:"1" type:"list"` + + // A list of event type codes. + EventTypeCodes []*string `locationName:"eventTypeCodes" min:"1" type:"list"` + + // The AWS services associated with the event. For example, EC2, RDS. + Services []*string `locationName:"services" min:"1" type:"list"` +} + +// String returns the string representation +func (s EventTypeFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EventTypeFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EventTypeFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EventTypeFilter"} + if s.EventTypeCategories != nil && len(s.EventTypeCategories) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EventTypeCategories", 1)) + } + if s.EventTypeCodes != nil && len(s.EventTypeCodes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EventTypeCodes", 1)) + } + if s.Services != nil && len(s.Services) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Services", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEventTypeCategories sets the EventTypeCategories field's value. +func (s *EventTypeFilter) SetEventTypeCategories(v []*string) *EventTypeFilter { + s.EventTypeCategories = v + return s +} + +// SetEventTypeCodes sets the EventTypeCodes field's value. +func (s *EventTypeFilter) SetEventTypeCodes(v []*string) *EventTypeFilter { + s.EventTypeCodes = v + return s +} + +// SetServices sets the Services field's value. +func (s *EventTypeFilter) SetServices(v []*string) *EventTypeFilter { + s.Services = v + return s +} + +const ( + // EntityStatusCodeImpaired is a entityStatusCode enum value + EntityStatusCodeImpaired = "IMPAIRED" + + // EntityStatusCodeUnimpaired is a entityStatusCode enum value + EntityStatusCodeUnimpaired = "UNIMPAIRED" + + // EntityStatusCodeUnknown is a entityStatusCode enum value + EntityStatusCodeUnknown = "UNKNOWN" +) + +const ( + // EventAggregateFieldEventTypeCategory is a eventAggregateField enum value + EventAggregateFieldEventTypeCategory = "eventTypeCategory" +) + +const ( + // EventStatusCodeOpen is a eventStatusCode enum value + EventStatusCodeOpen = "open" + + // EventStatusCodeClosed is a eventStatusCode enum value + EventStatusCodeClosed = "closed" + + // EventStatusCodeUpcoming is a eventStatusCode enum value + EventStatusCodeUpcoming = "upcoming" +) + +const ( + // EventTypeCategoryIssue is a eventTypeCategory enum value + EventTypeCategoryIssue = "issue" + + // EventTypeCategoryAccountNotification is a eventTypeCategory enum value + EventTypeCategoryAccountNotification = "accountNotification" + + // EventTypeCategoryScheduledChange is a eventTypeCategory enum value + EventTypeCategoryScheduledChange = "scheduledChange" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/health/errors.go b/vendor/github.com/aws/aws-sdk-go/service/health/errors.go new file mode 100644 index 000000000..89b68c677 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/health/errors.go @@ -0,0 +1,18 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package health + +const ( + + // ErrCodeInvalidPaginationToken for service response error code + // "InvalidPaginationToken". + // + // The specified pagination token (nextToken) is not valid. + ErrCodeInvalidPaginationToken = "InvalidPaginationToken" + + // ErrCodeUnsupportedLocale for service response error code + // "UnsupportedLocale". + // + // The specified locale is not supported. + ErrCodeUnsupportedLocale = "UnsupportedLocale" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/health/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/health/examples_test.go new file mode 100644 index 000000000..4c32b8080 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/health/examples_test.go @@ -0,0 +1,335 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package health_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/health" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExampleHealth_DescribeAffectedEntities() { + sess := session.Must(session.NewSession()) + + svc := health.New(sess) + + params := &health.DescribeAffectedEntitiesInput{ + Filter: &health.EntityFilter{ // Required + EventArns: []*string{ // Required + aws.String("eventArn"), // Required + // More values... + }, + EntityArns: []*string{ + aws.String("entityArn"), // Required + // More values... + }, + EntityValues: []*string{ + aws.String("entityValue"), // Required + // More values... + }, + LastUpdatedTimes: []*health.DateTimeRange{ + { // Required + From: aws.Time(time.Now()), + To: aws.Time(time.Now()), + }, + // More values... + }, + StatusCodes: []*string{ + aws.String("entityStatusCode"), // Required + // More values... + }, + Tags: []map[string]*string{ + { // Required + "Key": aws.String("tagValue"), // Required + // More values... + }, + // More values... + }, + }, + Locale: aws.String("locale"), + MaxResults: aws.Int64(1), + NextToken: aws.String("nextToken"), + } + resp, err := svc.DescribeAffectedEntities(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleHealth_DescribeEntityAggregates() { + sess := session.Must(session.NewSession()) + + svc := health.New(sess) + + params := &health.DescribeEntityAggregatesInput{ + EventArns: []*string{ + aws.String("eventArn"), // Required + // More values... + }, + } + resp, err := svc.DescribeEntityAggregates(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleHealth_DescribeEventAggregates() { + sess := session.Must(session.NewSession()) + + svc := health.New(sess) + + params := &health.DescribeEventAggregatesInput{ + AggregateField: aws.String("eventAggregateField"), // Required + Filter: &health.EventFilter{ + AvailabilityZones: []*string{ + aws.String("availabilityZone"), // Required + // More values... + }, + EndTimes: []*health.DateTimeRange{ + { // Required + From: aws.Time(time.Now()), + To: aws.Time(time.Now()), + }, + // More values... + }, + EntityArns: []*string{ + aws.String("entityArn"), // Required + // More values... + }, + EntityValues: []*string{ + aws.String("entityValue"), // Required + // More values... + }, + EventArns: []*string{ + aws.String("eventArn"), // Required + // More values... + }, + EventStatusCodes: []*string{ + aws.String("eventStatusCode"), // Required + // More values... + }, + EventTypeCategories: []*string{ + aws.String("eventTypeCategory"), // Required + // More values... + }, + EventTypeCodes: []*string{ + aws.String("eventType"), // Required + // More values... + }, + LastUpdatedTimes: []*health.DateTimeRange{ + { // Required + From: aws.Time(time.Now()), + To: aws.Time(time.Now()), + }, + // More values... + }, + Regions: []*string{ + aws.String("region"), // Required + // More values... + }, + Services: []*string{ + aws.String("service"), // Required + // More values... + }, + StartTimes: []*health.DateTimeRange{ + { // Required + From: aws.Time(time.Now()), + To: aws.Time(time.Now()), + }, + // More values... + }, + Tags: []map[string]*string{ + { // Required + "Key": aws.String("tagValue"), // Required + // More values... + }, + // More values... + }, + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("nextToken"), + } + resp, err := svc.DescribeEventAggregates(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleHealth_DescribeEventDetails() { + sess := session.Must(session.NewSession()) + + svc := health.New(sess) + + params := &health.DescribeEventDetailsInput{ + EventArns: []*string{ // Required + aws.String("eventArn"), // Required + // More values... + }, + Locale: aws.String("locale"), + } + resp, err := svc.DescribeEventDetails(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleHealth_DescribeEventTypes() { + sess := session.Must(session.NewSession()) + + svc := health.New(sess) + + params := &health.DescribeEventTypesInput{ + Filter: &health.EventTypeFilter{ + EventTypeCategories: []*string{ + aws.String("eventTypeCategory"), // Required + // More values... + }, + EventTypeCodes: []*string{ + aws.String("eventTypeCode"), // Required + // More values... + }, + Services: []*string{ + aws.String("service"), // Required + // More values... + }, + }, + Locale: aws.String("locale"), + MaxResults: aws.Int64(1), + NextToken: aws.String("nextToken"), + } + resp, err := svc.DescribeEventTypes(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleHealth_DescribeEvents() { + sess := session.Must(session.NewSession()) + + svc := health.New(sess) + + params := &health.DescribeEventsInput{ + Filter: &health.EventFilter{ + AvailabilityZones: []*string{ + aws.String("availabilityZone"), // Required + // More values... + }, + EndTimes: []*health.DateTimeRange{ + { // Required + From: aws.Time(time.Now()), + To: aws.Time(time.Now()), + }, + // More values... + }, + EntityArns: []*string{ + aws.String("entityArn"), // Required + // More values... + }, + EntityValues: []*string{ + aws.String("entityValue"), // Required + // More values... + }, + EventArns: []*string{ + aws.String("eventArn"), // Required + // More values... + }, + EventStatusCodes: []*string{ + aws.String("eventStatusCode"), // Required + // More values... + }, + EventTypeCategories: []*string{ + aws.String("eventTypeCategory"), // Required + // More values... + }, + EventTypeCodes: []*string{ + aws.String("eventType"), // Required + // More values... + }, + LastUpdatedTimes: []*health.DateTimeRange{ + { // Required + From: aws.Time(time.Now()), + To: aws.Time(time.Now()), + }, + // More values... + }, + Regions: []*string{ + aws.String("region"), // Required + // More values... + }, + Services: []*string{ + aws.String("service"), // Required + // More values... + }, + StartTimes: []*health.DateTimeRange{ + { // Required + From: aws.Time(time.Now()), + To: aws.Time(time.Now()), + }, + // More values... + }, + Tags: []map[string]*string{ + { // Required + "Key": aws.String("tagValue"), // Required + // More values... + }, + // More values... + }, + }, + Locale: aws.String("locale"), + MaxResults: aws.Int64(1), + NextToken: aws.String("nextToken"), + } + resp, err := svc.DescribeEvents(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/health/healthiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/health/healthiface/interface.go new file mode 100644 index 000000000..23db90f30 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/health/healthiface/interface.go @@ -0,0 +1,95 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package healthiface provides an interface to enable mocking the AWS Health APIs and Notifications service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package healthiface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/health" +) + +// HealthAPI provides an interface to enable mocking the +// health.Health service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS Health APIs and Notifications. +// func myFunc(svc healthiface.HealthAPI) bool { +// // Make svc.DescribeAffectedEntities request +// } +// +// func main() { +// sess := session.New() +// svc := health.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockHealthClient struct { +// healthiface.HealthAPI +// } +// func (m *mockHealthClient) DescribeAffectedEntities(input *health.DescribeAffectedEntitiesInput) (*health.DescribeAffectedEntitiesOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockHealthClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type HealthAPI interface { + DescribeAffectedEntitiesRequest(*health.DescribeAffectedEntitiesInput) (*request.Request, *health.DescribeAffectedEntitiesOutput) + + DescribeAffectedEntities(*health.DescribeAffectedEntitiesInput) (*health.DescribeAffectedEntitiesOutput, error) + + DescribeAffectedEntitiesPages(*health.DescribeAffectedEntitiesInput, func(*health.DescribeAffectedEntitiesOutput, bool) bool) error + + DescribeEntityAggregatesRequest(*health.DescribeEntityAggregatesInput) (*request.Request, *health.DescribeEntityAggregatesOutput) + + DescribeEntityAggregates(*health.DescribeEntityAggregatesInput) (*health.DescribeEntityAggregatesOutput, error) + + DescribeEventAggregatesRequest(*health.DescribeEventAggregatesInput) (*request.Request, *health.DescribeEventAggregatesOutput) + + DescribeEventAggregates(*health.DescribeEventAggregatesInput) (*health.DescribeEventAggregatesOutput, error) + + DescribeEventAggregatesPages(*health.DescribeEventAggregatesInput, func(*health.DescribeEventAggregatesOutput, bool) bool) error + + DescribeEventDetailsRequest(*health.DescribeEventDetailsInput) (*request.Request, *health.DescribeEventDetailsOutput) + + DescribeEventDetails(*health.DescribeEventDetailsInput) (*health.DescribeEventDetailsOutput, error) + + DescribeEventTypesRequest(*health.DescribeEventTypesInput) (*request.Request, *health.DescribeEventTypesOutput) + + DescribeEventTypes(*health.DescribeEventTypesInput) (*health.DescribeEventTypesOutput, error) + + DescribeEventTypesPages(*health.DescribeEventTypesInput, func(*health.DescribeEventTypesOutput, bool) bool) error + + DescribeEventsRequest(*health.DescribeEventsInput) (*request.Request, *health.DescribeEventsOutput) + + DescribeEvents(*health.DescribeEventsInput) (*health.DescribeEventsOutput, error) + + DescribeEventsPages(*health.DescribeEventsInput, func(*health.DescribeEventsOutput, bool) bool) error +} + +var _ HealthAPI = (*health.Health)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/health/service.go b/vendor/github.com/aws/aws-sdk-go/service/health/service.go new file mode 100644 index 000000000..ae7f1b4a3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/health/service.go @@ -0,0 +1,130 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package health + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" +) + +// The AWS Health API provides programmatic access to the AWS Health information +// that is presented in the AWS Personal Health Dashboard (https://phd.aws.amazon.com/phd/home#/). +// You can get information about events that affect your AWS resources: +// +// * DescribeEvents: Summary information about events. +// +// * DescribeEventDetails: Detailed information about one or more events. +// +// * DescribeAffectedEntities: Information about AWS resources that are affected +// by one or more events. +// +// In addition, these operations provide information about event types and summary +// counts of events or affected entities: +// +// * DescribeEventTypes: Information about the kinds of events that AWS Health +// tracks. +// +// * DescribeEventAggregates: A count of the number of events that meet specified +// criteria. +// +// * DescribeEntityAggregates: A count of the number of affected entities +// that meet specified criteria. +// +// The Health API requires a Business or Enterprise support plan from AWS Support +// (http://aws.amazon.com/premiumsupport/). Calling the Health API from an account +// that does not have a Business or Enterprise support plan causes a SubscriptionRequiredException. +// +// For authentication of requests, AWS Health uses the Signature Version 4 Signing +// Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// +// See the AWS Health User Guide (http://docs.aws.amazon.com/health/latest/ug/what-is-aws-health.html) +// for information about how to use the API. +// +// Service Endpoint +// +// The HTTP endpoint for the AWS Health API is: +// +// * https://health.us-east-1.amazonaws.com +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04 +type Health struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "health" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the Health client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a Health client from just a session. +// svc := health.New(mySession) +// +// // Create a Health client with additional configuration +// svc := health.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *Health { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Health { + svc := &Health{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2016-08-04", + JSONVersion: "1.1", + TargetPrefix: "AWSHealth_20160804", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a Health operation and runs any +// custom request initialization. +func (c *Health) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/iam/api.go b/vendor/github.com/aws/aws-sdk-go/service/iam/api.go index 0e506cbdc..e41818673 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iam/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iam/api.go @@ -39,6 +39,7 @@ const opAddClientIDToOpenIDConnectProvider = "AddClientIDToOpenIDConnectProvider // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddClientIDToOpenIDConnectProvider func (c *IAM) AddClientIDToOpenIDConnectProviderRequest(input *AddClientIDToOpenIDConnectProviderInput) (req *request.Request, output *AddClientIDToOpenIDConnectProviderOutput) { op := &request.Operation{ Name: opAddClientIDToOpenIDConnectProvider, @@ -50,11 +51,10 @@ func (c *IAM) AddClientIDToOpenIDConnectProviderRequest(input *AddClientIDToOpen input = &AddClientIDToOpenIDConnectProviderInput{} } + output = &AddClientIDToOpenIDConnectProviderOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AddClientIDToOpenIDConnectProviderOutput{} - req.Data = output return } @@ -74,22 +74,23 @@ func (c *IAM) AddClientIDToOpenIDConnectProviderRequest(input *AddClientIDToOpen // API operation AddClientIDToOpenIDConnectProvider for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddClientIDToOpenIDConnectProvider func (c *IAM) AddClientIDToOpenIDConnectProvider(input *AddClientIDToOpenIDConnectProviderInput) (*AddClientIDToOpenIDConnectProviderOutput, error) { req, out := c.AddClientIDToOpenIDConnectProviderRequest(input) err := req.Send() @@ -122,6 +123,7 @@ const opAddRoleToInstanceProfile = "AddRoleToInstanceProfile" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddRoleToInstanceProfile func (c *IAM) AddRoleToInstanceProfileRequest(input *AddRoleToInstanceProfileInput) (req *request.Request, output *AddRoleToInstanceProfileOutput) { op := &request.Operation{ Name: opAddRoleToInstanceProfile, @@ -133,11 +135,10 @@ func (c *IAM) AddRoleToInstanceProfileRequest(input *AddRoleToInstanceProfileInp input = &AddRoleToInstanceProfileInput{} } + output = &AddRoleToInstanceProfileOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AddRoleToInstanceProfileOutput{} - req.Data = output return } @@ -145,10 +146,10 @@ func (c *IAM) AddRoleToInstanceProfileRequest(input *AddRoleToInstanceProfileInp // // Adds the specified IAM role to the specified instance profile. // -// The caller of this API must be granted the PassRole permission on the IAM +// The caller of this API must be granted the PassRole permission on the IAM // role by a permission policy. // -// For more information about roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). +// For more information about roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). // For more information about instance profiles, go to About Instance Profiles // (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). // @@ -160,22 +161,23 @@ func (c *IAM) AddRoleToInstanceProfileRequest(input *AddRoleToInstanceProfileInp // API operation AddRoleToInstanceProfile for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddRoleToInstanceProfile func (c *IAM) AddRoleToInstanceProfile(input *AddRoleToInstanceProfileInput) (*AddRoleToInstanceProfileOutput, error) { req, out := c.AddRoleToInstanceProfileRequest(input) err := req.Send() @@ -208,6 +210,7 @@ const opAddUserToGroup = "AddUserToGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddUserToGroup func (c *IAM) AddUserToGroupRequest(input *AddUserToGroupInput) (req *request.Request, output *AddUserToGroupOutput) { op := &request.Operation{ Name: opAddUserToGroup, @@ -219,11 +222,10 @@ func (c *IAM) AddUserToGroupRequest(input *AddUserToGroupInput) (req *request.Re input = &AddUserToGroupInput{} } + output = &AddUserToGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AddUserToGroupOutput{} - req.Data = output return } @@ -239,18 +241,19 @@ func (c *IAM) AddUserToGroupRequest(input *AddUserToGroupInput) (req *request.Re // API operation AddUserToGroup for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddUserToGroup func (c *IAM) AddUserToGroup(input *AddUserToGroupInput) (*AddUserToGroupOutput, error) { req, out := c.AddUserToGroupRequest(input) err := req.Send() @@ -283,6 +286,7 @@ const opAttachGroupPolicy = "AttachGroupPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachGroupPolicy func (c *IAM) AttachGroupPolicyRequest(input *AttachGroupPolicyInput) (req *request.Request, output *AttachGroupPolicyOutput) { op := &request.Operation{ Name: opAttachGroupPolicy, @@ -294,11 +298,10 @@ func (c *IAM) AttachGroupPolicyRequest(input *AttachGroupPolicyInput) (req *requ input = &AttachGroupPolicyInput{} } + output = &AttachGroupPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AttachGroupPolicyOutput{} - req.Data = output return } @@ -321,22 +324,23 @@ func (c *IAM) AttachGroupPolicyRequest(input *AttachGroupPolicyInput) (req *requ // API operation AttachGroupPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachGroupPolicy func (c *IAM) AttachGroupPolicy(input *AttachGroupPolicyInput) (*AttachGroupPolicyOutput, error) { req, out := c.AttachGroupPolicyRequest(input) err := req.Send() @@ -369,6 +373,7 @@ const opAttachRolePolicy = "AttachRolePolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachRolePolicy func (c *IAM) AttachRolePolicyRequest(input *AttachRolePolicyInput) (req *request.Request, output *AttachRolePolicyOutput) { op := &request.Operation{ Name: opAttachRolePolicy, @@ -380,11 +385,10 @@ func (c *IAM) AttachRolePolicyRequest(input *AttachRolePolicyInput) (req *reques input = &AttachRolePolicyInput{} } + output = &AttachRolePolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AttachRolePolicyOutput{} - req.Data = output return } @@ -411,22 +415,23 @@ func (c *IAM) AttachRolePolicyRequest(input *AttachRolePolicyInput) (req *reques // API operation AttachRolePolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachRolePolicy func (c *IAM) AttachRolePolicy(input *AttachRolePolicyInput) (*AttachRolePolicyOutput, error) { req, out := c.AttachRolePolicyRequest(input) err := req.Send() @@ -459,6 +464,7 @@ const opAttachUserPolicy = "AttachUserPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachUserPolicy func (c *IAM) AttachUserPolicyRequest(input *AttachUserPolicyInput) (req *request.Request, output *AttachUserPolicyOutput) { op := &request.Operation{ Name: opAttachUserPolicy, @@ -470,11 +476,10 @@ func (c *IAM) AttachUserPolicyRequest(input *AttachUserPolicyInput) (req *reques input = &AttachUserPolicyInput{} } + output = &AttachUserPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AttachUserPolicyOutput{} - req.Data = output return } @@ -497,22 +502,23 @@ func (c *IAM) AttachUserPolicyRequest(input *AttachUserPolicyInput) (req *reques // API operation AttachUserPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachUserPolicy func (c *IAM) AttachUserPolicy(input *AttachUserPolicyInput) (*AttachUserPolicyOutput, error) { req, out := c.AttachUserPolicyRequest(input) err := req.Send() @@ -545,6 +551,7 @@ const opChangePassword = "ChangePassword" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ChangePassword func (c *IAM) ChangePasswordRequest(input *ChangePasswordInput) (req *request.Request, output *ChangePasswordOutput) { op := &request.Operation{ Name: opChangePassword, @@ -556,11 +563,10 @@ func (c *IAM) ChangePasswordRequest(input *ChangePasswordInput) (req *request.Re input = &ChangePasswordInput{} } + output = &ChangePasswordOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ChangePasswordOutput{} - req.Data = output return } @@ -581,32 +587,33 @@ func (c *IAM) ChangePasswordRequest(input *ChangePasswordInput) (req *request.Re // API operation ChangePassword for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidUserType +// * ErrCodeInvalidUserTypeException "InvalidUserType" // The request was rejected because the type of user for the transaction was // incorrect. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * EntityTemporarilyUnmodifiable +// * ErrCodeEntityTemporarilyUnmodifiableException "EntityTemporarilyUnmodifiable" // The request was rejected because it referenced an entity that is temporarily // unmodifiable, such as a user name that was deleted and then recreated. The // error indicates that the request is likely to succeed if you try again after // waiting several minutes. The error message describes the entity. // -// * PasswordPolicyViolation +// * ErrCodePasswordPolicyViolationException "PasswordPolicyViolation" // The request was rejected because the provided password did not meet the requirements // imposed by the account password policy. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ChangePassword func (c *IAM) ChangePassword(input *ChangePasswordInput) (*ChangePasswordOutput, error) { req, out := c.ChangePasswordRequest(input) err := req.Send() @@ -639,6 +646,7 @@ const opCreateAccessKey = "CreateAccessKey" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateAccessKey func (c *IAM) CreateAccessKeyRequest(input *CreateAccessKeyInput) (req *request.Request, output *CreateAccessKeyOutput) { op := &request.Operation{ Name: opCreateAccessKey, @@ -650,9 +658,8 @@ func (c *IAM) CreateAccessKeyRequest(input *CreateAccessKeyInput) (req *request. input = &CreateAccessKeyInput{} } - req = c.newRequest(op, input, output) output = &CreateAccessKeyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -666,11 +673,11 @@ func (c *IAM) CreateAccessKeyRequest(input *CreateAccessKeyInput) (req *request. // for access keys under the AWS account, you can use this action to manage // root credentials even if the AWS account has no associated users. // -// For information about limits on the number of keys you can create, see -// Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) +// For information about limits on the number of keys you can create, see Limitations +// on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. // -// To ensure the security of your AWS account, the secret access key is accessible +// To ensure the security of your AWS account, the secret access key is accessible // only during key and user creation. You must save the key (for example, in // a text file) if you want to be able to access it again. If a secret key is // lost, you can delete the access keys for the associated user and then create @@ -684,18 +691,19 @@ func (c *IAM) CreateAccessKeyRequest(input *CreateAccessKeyInput) (req *request. // API operation CreateAccessKey for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateAccessKey func (c *IAM) CreateAccessKey(input *CreateAccessKeyInput) (*CreateAccessKeyOutput, error) { req, out := c.CreateAccessKeyRequest(input) err := req.Send() @@ -728,6 +736,7 @@ const opCreateAccountAlias = "CreateAccountAlias" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateAccountAlias func (c *IAM) CreateAccountAliasRequest(input *CreateAccountAliasInput) (req *request.Request, output *CreateAccountAliasOutput) { op := &request.Operation{ Name: opCreateAccountAlias, @@ -739,11 +748,10 @@ func (c *IAM) CreateAccountAliasRequest(input *CreateAccountAliasInput) (req *re input = &CreateAccountAliasInput{} } + output = &CreateAccountAliasOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CreateAccountAliasOutput{} - req.Data = output return } @@ -761,18 +769,19 @@ func (c *IAM) CreateAccountAliasRequest(input *CreateAccountAliasInput) (req *re // API operation CreateAccountAlias for usage and error information. // // Returned Error Codes: -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateAccountAlias func (c *IAM) CreateAccountAlias(input *CreateAccountAliasInput) (*CreateAccountAliasOutput, error) { req, out := c.CreateAccountAliasRequest(input) err := req.Send() @@ -805,6 +814,7 @@ const opCreateGroup = "CreateGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateGroup func (c *IAM) CreateGroupRequest(input *CreateGroupInput) (req *request.Request, output *CreateGroupOutput) { op := &request.Operation{ Name: opCreateGroup, @@ -816,9 +826,8 @@ func (c *IAM) CreateGroupRequest(input *CreateGroupInput) (req *request.Request, input = &CreateGroupInput{} } - req = c.newRequest(op, input, output) output = &CreateGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -826,7 +835,7 @@ func (c *IAM) CreateGroupRequest(input *CreateGroupInput) (req *request.Request, // // Creates a new group. // -// For information about the number of groups you can create, see Limitations +// For information about the number of groups you can create, see Limitations // on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. // @@ -838,22 +847,23 @@ func (c *IAM) CreateGroupRequest(input *CreateGroupInput) (req *request.Request, // API operation CreateGroup for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateGroup func (c *IAM) CreateGroup(input *CreateGroupInput) (*CreateGroupOutput, error) { req, out := c.CreateGroupRequest(input) err := req.Send() @@ -886,6 +896,7 @@ const opCreateInstanceProfile = "CreateInstanceProfile" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateInstanceProfile func (c *IAM) CreateInstanceProfileRequest(input *CreateInstanceProfileInput) (req *request.Request, output *CreateInstanceProfileOutput) { op := &request.Operation{ Name: opCreateInstanceProfile, @@ -897,9 +908,8 @@ func (c *IAM) CreateInstanceProfileRequest(input *CreateInstanceProfileInput) (r input = &CreateInstanceProfileInput{} } - req = c.newRequest(op, input, output) output = &CreateInstanceProfileOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -908,7 +918,7 @@ func (c *IAM) CreateInstanceProfileRequest(input *CreateInstanceProfileInput) (r // Creates a new instance profile. For information about instance profiles, // go to About Instance Profiles (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). // -// For information about the number of instance profiles you can create, see +// For information about the number of instance profiles you can create, see // Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. // @@ -920,18 +930,19 @@ func (c *IAM) CreateInstanceProfileRequest(input *CreateInstanceProfileInput) (r // API operation CreateInstanceProfile for usage and error information. // // Returned Error Codes: -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateInstanceProfile func (c *IAM) CreateInstanceProfile(input *CreateInstanceProfileInput) (*CreateInstanceProfileOutput, error) { req, out := c.CreateInstanceProfileRequest(input) err := req.Send() @@ -964,6 +975,7 @@ const opCreateLoginProfile = "CreateLoginProfile" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateLoginProfile func (c *IAM) CreateLoginProfileRequest(input *CreateLoginProfileInput) (req *request.Request, output *CreateLoginProfileOutput) { op := &request.Operation{ Name: opCreateLoginProfile, @@ -975,9 +987,8 @@ func (c *IAM) CreateLoginProfileRequest(input *CreateLoginProfileInput) (req *re input = &CreateLoginProfileInput{} } - req = c.newRequest(op, input, output) output = &CreateLoginProfileOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -996,26 +1007,27 @@ func (c *IAM) CreateLoginProfileRequest(input *CreateLoginProfileInput) (req *re // API operation CreateLoginProfile for usage and error information. // // Returned Error Codes: -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * PasswordPolicyViolation +// * ErrCodePasswordPolicyViolationException "PasswordPolicyViolation" // The request was rejected because the provided password did not meet the requirements // imposed by the account password policy. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateLoginProfile func (c *IAM) CreateLoginProfile(input *CreateLoginProfileInput) (*CreateLoginProfileOutput, error) { req, out := c.CreateLoginProfileRequest(input) err := req.Send() @@ -1048,6 +1060,7 @@ const opCreateOpenIDConnectProvider = "CreateOpenIDConnectProvider" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateOpenIDConnectProvider func (c *IAM) CreateOpenIDConnectProviderRequest(input *CreateOpenIDConnectProviderInput) (req *request.Request, output *CreateOpenIDConnectProviderOutput) { op := &request.Operation{ Name: opCreateOpenIDConnectProvider, @@ -1059,9 +1072,8 @@ func (c *IAM) CreateOpenIDConnectProviderRequest(input *CreateOpenIDConnectProvi input = &CreateOpenIDConnectProviderInput{} } - req = c.newRequest(op, input, output) output = &CreateOpenIDConnectProviderOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1081,9 +1093,9 @@ func (c *IAM) CreateOpenIDConnectProviderRequest(input *CreateOpenIDConnectProvi // that the IdP uses. You get all of this information from the OIDC IdP that // you want to use for access to AWS. // -// Because trust for the OIDC provider is ultimately derived from the IAM -// provider that this action creates, it is a best practice to limit access -// to the CreateOpenIDConnectProvider action to highly-privileged users. +// Because trust for the OIDC provider is ultimately derived from the IAM provider +// that this action creates, it is a best practice to limit access to the CreateOpenIDConnectProvider +// action to highly-privileged users. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1093,22 +1105,23 @@ func (c *IAM) CreateOpenIDConnectProviderRequest(input *CreateOpenIDConnectProvi // API operation CreateOpenIDConnectProvider for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateOpenIDConnectProvider func (c *IAM) CreateOpenIDConnectProvider(input *CreateOpenIDConnectProviderInput) (*CreateOpenIDConnectProviderOutput, error) { req, out := c.CreateOpenIDConnectProviderRequest(input) err := req.Send() @@ -1141,6 +1154,7 @@ const opCreatePolicy = "CreatePolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreatePolicy func (c *IAM) CreatePolicyRequest(input *CreatePolicyInput) (req *request.Request, output *CreatePolicyOutput) { op := &request.Operation{ Name: opCreatePolicy, @@ -1152,9 +1166,8 @@ func (c *IAM) CreatePolicyRequest(input *CreatePolicyInput) (req *request.Reques input = &CreatePolicyInput{} } - req = c.newRequest(op, input, output) output = &CreatePolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1162,8 +1175,8 @@ func (c *IAM) CreatePolicyRequest(input *CreatePolicyInput) (req *request.Reques // // Creates a new managed policy for your AWS account. // -// This operation creates a policy version with a version identifier of v1 -// and sets v1 as the policy's default version. For more information about policy +// This operation creates a policy version with a version identifier of v1 and +// sets v1 as the policy's default version. For more information about policy // versions, see Versioning for Managed Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) // in the IAM User Guide. // @@ -1179,26 +1192,27 @@ func (c *IAM) CreatePolicyRequest(input *CreatePolicyInput) (req *request.Reques // API operation CreatePolicy for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreatePolicy func (c *IAM) CreatePolicy(input *CreatePolicyInput) (*CreatePolicyOutput, error) { req, out := c.CreatePolicyRequest(input) err := req.Send() @@ -1231,6 +1245,7 @@ const opCreatePolicyVersion = "CreatePolicyVersion" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreatePolicyVersion func (c *IAM) CreatePolicyVersionRequest(input *CreatePolicyVersionInput) (req *request.Request, output *CreatePolicyVersionOutput) { op := &request.Operation{ Name: opCreatePolicyVersion, @@ -1242,9 +1257,8 @@ func (c *IAM) CreatePolicyVersionRequest(input *CreatePolicyVersionInput) (req * input = &CreatePolicyVersionInput{} } - req = c.newRequest(op, input, output) output = &CreatePolicyVersionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1271,26 +1285,27 @@ func (c *IAM) CreatePolicyVersionRequest(input *CreatePolicyVersionInput) (req * // API operation CreatePolicyVersion for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreatePolicyVersion func (c *IAM) CreatePolicyVersion(input *CreatePolicyVersionInput) (*CreatePolicyVersionOutput, error) { req, out := c.CreatePolicyVersionRequest(input) err := req.Send() @@ -1323,6 +1338,7 @@ const opCreateRole = "CreateRole" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateRole func (c *IAM) CreateRoleRequest(input *CreateRoleInput) (req *request.Request, output *CreateRoleOutput) { op := &request.Operation{ Name: opCreateRole, @@ -1334,9 +1350,8 @@ func (c *IAM) CreateRoleRequest(input *CreateRoleInput) (req *request.Request, o input = &CreateRoleInput{} } - req = c.newRequest(op, input, output) output = &CreateRoleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1356,22 +1371,23 @@ func (c *IAM) CreateRoleRequest(input *CreateRoleInput) (req *request.Request, o // API operation CreateRole for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateRole func (c *IAM) CreateRole(input *CreateRoleInput) (*CreateRoleOutput, error) { req, out := c.CreateRoleRequest(input) err := req.Send() @@ -1404,6 +1420,7 @@ const opCreateSAMLProvider = "CreateSAMLProvider" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateSAMLProvider func (c *IAM) CreateSAMLProviderRequest(input *CreateSAMLProviderInput) (req *request.Request, output *CreateSAMLProviderOutput) { op := &request.Operation{ Name: opCreateSAMLProvider, @@ -1415,9 +1432,8 @@ func (c *IAM) CreateSAMLProviderRequest(input *CreateSAMLProviderInput) (req *re input = &CreateSAMLProviderInput{} } - req = c.newRequest(op, input, output) output = &CreateSAMLProviderOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1439,10 +1455,10 @@ func (c *IAM) CreateSAMLProviderRequest(input *CreateSAMLProviderInput) (req *re // document using the identity management software that is used as your organization's // IdP. // -// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). // -// For more information, see Enabling SAML 2.0 Federated Users to Access -// the AWS Management Console (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-saml.html) +// For more information, see Enabling SAML 2.0 Federated Users to Access the +// AWS Management Console (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-saml.html) // and About SAML 2.0-based Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html) // in the IAM User Guide. // @@ -1454,28 +1470,115 @@ func (c *IAM) CreateSAMLProviderRequest(input *CreateSAMLProviderInput) (req *re // API operation CreateSAMLProvider for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateSAMLProvider func (c *IAM) CreateSAMLProvider(input *CreateSAMLProviderInput) (*CreateSAMLProviderOutput, error) { req, out := c.CreateSAMLProviderRequest(input) err := req.Send() return out, err } +const opCreateServiceSpecificCredential = "CreateServiceSpecificCredential" + +// CreateServiceSpecificCredentialRequest generates a "aws/request.Request" representing the +// client's request for the CreateServiceSpecificCredential operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateServiceSpecificCredential for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateServiceSpecificCredential method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateServiceSpecificCredentialRequest method. +// req, resp := client.CreateServiceSpecificCredentialRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateServiceSpecificCredential +func (c *IAM) CreateServiceSpecificCredentialRequest(input *CreateServiceSpecificCredentialInput) (req *request.Request, output *CreateServiceSpecificCredentialOutput) { + op := &request.Operation{ + Name: opCreateServiceSpecificCredential, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateServiceSpecificCredentialInput{} + } + + output = &CreateServiceSpecificCredentialOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateServiceSpecificCredential API operation for AWS Identity and Access Management. +// +// Generates a set of credentials consisting of a user name and password that +// can be used to access the service specified in the request. These credentials +// are generated by IAM, and can be used only for the specified service. +// +// You can have a maximum of two sets of service-specific credentials for each +// supported service per user. +// +// The only supported service at this time is AWS CodeCommit. +// +// You can reset the password to a new service-generated value by calling ResetServiceSpecificCredential. +// +// For more information about service-specific credentials, see Using IAM with +// AWS CodeCommit: Git Credentials, SSH Keys, and AWS Access Keys (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_ssh-keys.html) +// in the IAM User Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation CreateServiceSpecificCredential for usage and error information. +// +// Returned Error Codes: +// * ErrCodeLimitExceededException "LimitExceeded" +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ErrCodeNoSuchEntityException "NoSuchEntity" +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ErrCodeServiceNotSupportedException "NotSupportedService" +// The specified service does not support service-specific credentials. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateServiceSpecificCredential +func (c *IAM) CreateServiceSpecificCredential(input *CreateServiceSpecificCredentialInput) (*CreateServiceSpecificCredentialOutput, error) { + req, out := c.CreateServiceSpecificCredentialRequest(input) + err := req.Send() + return out, err +} + const opCreateUser = "CreateUser" // CreateUserRequest generates a "aws/request.Request" representing the @@ -1502,6 +1605,7 @@ const opCreateUser = "CreateUser" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateUser func (c *IAM) CreateUserRequest(input *CreateUserInput) (req *request.Request, output *CreateUserOutput) { op := &request.Operation{ Name: opCreateUser, @@ -1513,9 +1617,8 @@ func (c *IAM) CreateUserRequest(input *CreateUserInput) (req *request.Request, o input = &CreateUserInput{} } - req = c.newRequest(op, input, output) output = &CreateUserOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1523,7 +1626,7 @@ func (c *IAM) CreateUserRequest(input *CreateUserInput) (req *request.Request, o // // Creates a new IAM user for your AWS account. // -// For information about limitations on the number of IAM users you can create, +// For information about limitations on the number of IAM users you can create, // see Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. // @@ -1535,22 +1638,23 @@ func (c *IAM) CreateUserRequest(input *CreateUserInput) (req *request.Request, o // API operation CreateUser for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateUser func (c *IAM) CreateUser(input *CreateUserInput) (*CreateUserOutput, error) { req, out := c.CreateUserRequest(input) err := req.Send() @@ -1583,6 +1687,7 @@ const opCreateVirtualMFADevice = "CreateVirtualMFADevice" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateVirtualMFADevice func (c *IAM) CreateVirtualMFADeviceRequest(input *CreateVirtualMFADeviceInput) (req *request.Request, output *CreateVirtualMFADeviceOutput) { op := &request.Operation{ Name: opCreateVirtualMFADevice, @@ -1594,9 +1699,8 @@ func (c *IAM) CreateVirtualMFADeviceRequest(input *CreateVirtualMFADeviceInput) input = &CreateVirtualMFADeviceInput{} } - req = c.newRequest(op, input, output) output = &CreateVirtualMFADeviceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1612,7 +1716,7 @@ func (c *IAM) CreateVirtualMFADeviceRequest(input *CreateVirtualMFADeviceInput) // see Limitations on Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. // -// The seed information contained in the QR code and the Base32 string should +// The seed information contained in the QR code and the Base32 string should // be treated like any other secret access information, such as your AWS access // keys or your passwords. After you provision your virtual device, you should // ensure that the information is destroyed following secure procedures. @@ -1625,18 +1729,19 @@ func (c *IAM) CreateVirtualMFADeviceRequest(input *CreateVirtualMFADeviceInput) // API operation CreateVirtualMFADevice for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateVirtualMFADevice func (c *IAM) CreateVirtualMFADevice(input *CreateVirtualMFADeviceInput) (*CreateVirtualMFADeviceOutput, error) { req, out := c.CreateVirtualMFADeviceRequest(input) err := req.Send() @@ -1669,6 +1774,7 @@ const opDeactivateMFADevice = "DeactivateMFADevice" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeactivateMFADevice func (c *IAM) DeactivateMFADeviceRequest(input *DeactivateMFADeviceInput) (req *request.Request, output *DeactivateMFADeviceOutput) { op := &request.Operation{ Name: opDeactivateMFADevice, @@ -1680,11 +1786,10 @@ func (c *IAM) DeactivateMFADeviceRequest(input *DeactivateMFADeviceInput) (req * input = &DeactivateMFADeviceInput{} } + output = &DeactivateMFADeviceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeactivateMFADeviceOutput{} - req.Data = output return } @@ -1705,24 +1810,25 @@ func (c *IAM) DeactivateMFADeviceRequest(input *DeactivateMFADeviceInput) (req * // API operation DeactivateMFADevice for usage and error information. // // Returned Error Codes: -// * EntityTemporarilyUnmodifiable +// * ErrCodeEntityTemporarilyUnmodifiableException "EntityTemporarilyUnmodifiable" // The request was rejected because it referenced an entity that is temporarily // unmodifiable, such as a user name that was deleted and then recreated. The // error indicates that the request is likely to succeed if you try again after // waiting several minutes. The error message describes the entity. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeactivateMFADevice func (c *IAM) DeactivateMFADevice(input *DeactivateMFADeviceInput) (*DeactivateMFADeviceOutput, error) { req, out := c.DeactivateMFADeviceRequest(input) err := req.Send() @@ -1755,6 +1861,7 @@ const opDeleteAccessKey = "DeleteAccessKey" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccessKey func (c *IAM) DeleteAccessKeyRequest(input *DeleteAccessKeyInput) (req *request.Request, output *DeleteAccessKeyOutput) { op := &request.Operation{ Name: opDeleteAccessKey, @@ -1766,11 +1873,10 @@ func (c *IAM) DeleteAccessKeyRequest(input *DeleteAccessKeyInput) (req *request. input = &DeleteAccessKeyInput{} } + output = &DeleteAccessKeyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAccessKeyOutput{} - req.Data = output return } @@ -1791,18 +1897,19 @@ func (c *IAM) DeleteAccessKeyRequest(input *DeleteAccessKeyInput) (req *request. // API operation DeleteAccessKey for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccessKey func (c *IAM) DeleteAccessKey(input *DeleteAccessKeyInput) (*DeleteAccessKeyOutput, error) { req, out := c.DeleteAccessKeyRequest(input) err := req.Send() @@ -1835,6 +1942,7 @@ const opDeleteAccountAlias = "DeleteAccountAlias" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccountAlias func (c *IAM) DeleteAccountAliasRequest(input *DeleteAccountAliasInput) (req *request.Request, output *DeleteAccountAliasOutput) { op := &request.Operation{ Name: opDeleteAccountAlias, @@ -1846,11 +1954,10 @@ func (c *IAM) DeleteAccountAliasRequest(input *DeleteAccountAliasInput) (req *re input = &DeleteAccountAliasInput{} } + output = &DeleteAccountAliasOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAccountAliasOutput{} - req.Data = output return } @@ -1868,18 +1975,19 @@ func (c *IAM) DeleteAccountAliasRequest(input *DeleteAccountAliasInput) (req *re // API operation DeleteAccountAlias for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccountAlias func (c *IAM) DeleteAccountAlias(input *DeleteAccountAliasInput) (*DeleteAccountAliasOutput, error) { req, out := c.DeleteAccountAliasRequest(input) err := req.Send() @@ -1912,6 +2020,7 @@ const opDeleteAccountPasswordPolicy = "DeleteAccountPasswordPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccountPasswordPolicy func (c *IAM) DeleteAccountPasswordPolicyRequest(input *DeleteAccountPasswordPolicyInput) (req *request.Request, output *DeleteAccountPasswordPolicyOutput) { op := &request.Operation{ Name: opDeleteAccountPasswordPolicy, @@ -1923,11 +2032,10 @@ func (c *IAM) DeleteAccountPasswordPolicyRequest(input *DeleteAccountPasswordPol input = &DeleteAccountPasswordPolicyInput{} } + output = &DeleteAccountPasswordPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAccountPasswordPolicyOutput{} - req.Data = output return } @@ -1943,18 +2051,19 @@ func (c *IAM) DeleteAccountPasswordPolicyRequest(input *DeleteAccountPasswordPol // API operation DeleteAccountPasswordPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccountPasswordPolicy func (c *IAM) DeleteAccountPasswordPolicy(input *DeleteAccountPasswordPolicyInput) (*DeleteAccountPasswordPolicyOutput, error) { req, out := c.DeleteAccountPasswordPolicyRequest(input) err := req.Send() @@ -1987,6 +2096,7 @@ const opDeleteGroup = "DeleteGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteGroup func (c *IAM) DeleteGroupRequest(input *DeleteGroupInput) (req *request.Request, output *DeleteGroupOutput) { op := &request.Operation{ Name: opDeleteGroup, @@ -1998,11 +2108,10 @@ func (c *IAM) DeleteGroupRequest(input *DeleteGroupInput) (req *request.Request, input = &DeleteGroupInput{} } + output = &DeleteGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteGroupOutput{} - req.Data = output return } @@ -2019,22 +2128,23 @@ func (c *IAM) DeleteGroupRequest(input *DeleteGroupInput) (req *request.Request, // API operation DeleteGroup for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * DeleteConflict +// * ErrCodeDeleteConflictException "DeleteConflict" // The request was rejected because it attempted to delete a resource that has // attached subordinate entities. The error message describes these entities. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteGroup func (c *IAM) DeleteGroup(input *DeleteGroupInput) (*DeleteGroupOutput, error) { req, out := c.DeleteGroupRequest(input) err := req.Send() @@ -2067,6 +2177,7 @@ const opDeleteGroupPolicy = "DeleteGroupPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteGroupPolicy func (c *IAM) DeleteGroupPolicyRequest(input *DeleteGroupPolicyInput) (req *request.Request, output *DeleteGroupPolicyOutput) { op := &request.Operation{ Name: opDeleteGroupPolicy, @@ -2078,11 +2189,10 @@ func (c *IAM) DeleteGroupPolicyRequest(input *DeleteGroupPolicyInput) (req *requ input = &DeleteGroupPolicyInput{} } + output = &DeleteGroupPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteGroupPolicyOutput{} - req.Data = output return } @@ -2104,18 +2214,19 @@ func (c *IAM) DeleteGroupPolicyRequest(input *DeleteGroupPolicyInput) (req *requ // API operation DeleteGroupPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteGroupPolicy func (c *IAM) DeleteGroupPolicy(input *DeleteGroupPolicyInput) (*DeleteGroupPolicyOutput, error) { req, out := c.DeleteGroupPolicyRequest(input) err := req.Send() @@ -2148,6 +2259,7 @@ const opDeleteInstanceProfile = "DeleteInstanceProfile" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteInstanceProfile func (c *IAM) DeleteInstanceProfileRequest(input *DeleteInstanceProfileInput) (req *request.Request, output *DeleteInstanceProfileOutput) { op := &request.Operation{ Name: opDeleteInstanceProfile, @@ -2159,11 +2271,10 @@ func (c *IAM) DeleteInstanceProfileRequest(input *DeleteInstanceProfileInput) (r input = &DeleteInstanceProfileInput{} } + output = &DeleteInstanceProfileOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteInstanceProfileOutput{} - req.Data = output return } @@ -2172,12 +2283,12 @@ func (c *IAM) DeleteInstanceProfileRequest(input *DeleteInstanceProfileInput) (r // Deletes the specified instance profile. The instance profile must not have // an associated role. // -// Make sure you do not have any Amazon EC2 instances running with the instance +// Make sure you do not have any Amazon EC2 instances running with the instance // profile you are about to delete. Deleting a role or instance profile that // is associated with a running instance will break any applications running // on the instance. // -// For more information about instance profiles, go to About Instance Profiles +// For more information about instance profiles, go to About Instance Profiles // (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2188,22 +2299,23 @@ func (c *IAM) DeleteInstanceProfileRequest(input *DeleteInstanceProfileInput) (r // API operation DeleteInstanceProfile for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * DeleteConflict +// * ErrCodeDeleteConflictException "DeleteConflict" // The request was rejected because it attempted to delete a resource that has // attached subordinate entities. The error message describes these entities. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteInstanceProfile func (c *IAM) DeleteInstanceProfile(input *DeleteInstanceProfileInput) (*DeleteInstanceProfileOutput, error) { req, out := c.DeleteInstanceProfileRequest(input) err := req.Send() @@ -2236,6 +2348,7 @@ const opDeleteLoginProfile = "DeleteLoginProfile" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteLoginProfile func (c *IAM) DeleteLoginProfileRequest(input *DeleteLoginProfileInput) (req *request.Request, output *DeleteLoginProfileOutput) { op := &request.Operation{ Name: opDeleteLoginProfile, @@ -2247,11 +2360,10 @@ func (c *IAM) DeleteLoginProfileRequest(input *DeleteLoginProfileInput) (req *re input = &DeleteLoginProfileInput{} } + output = &DeleteLoginProfileOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteLoginProfileOutput{} - req.Data = output return } @@ -2260,11 +2372,10 @@ func (c *IAM) DeleteLoginProfileRequest(input *DeleteLoginProfileInput) (req *re // Deletes the password for the specified IAM user, which terminates the user's // ability to access AWS services through the AWS Management Console. // -// Deleting a user's password does not prevent a user from accessing AWS -// through the command line interface or the API. To prevent all user access -// you must also either make any access keys inactive or delete them. For more -// information about making keys inactive or deleting them, see UpdateAccessKey -// and DeleteAccessKey. +// Deleting a user's password does not prevent a user from accessing AWS through +// the command line interface or the API. To prevent all user access you must +// also either make any access keys inactive or delete them. For more information +// about making keys inactive or deleting them, see UpdateAccessKey and DeleteAccessKey. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2274,24 +2385,25 @@ func (c *IAM) DeleteLoginProfileRequest(input *DeleteLoginProfileInput) (req *re // API operation DeleteLoginProfile for usage and error information. // // Returned Error Codes: -// * EntityTemporarilyUnmodifiable +// * ErrCodeEntityTemporarilyUnmodifiableException "EntityTemporarilyUnmodifiable" // The request was rejected because it referenced an entity that is temporarily // unmodifiable, such as a user name that was deleted and then recreated. The // error indicates that the request is likely to succeed if you try again after // waiting several minutes. The error message describes the entity. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteLoginProfile func (c *IAM) DeleteLoginProfile(input *DeleteLoginProfileInput) (*DeleteLoginProfileOutput, error) { req, out := c.DeleteLoginProfileRequest(input) err := req.Send() @@ -2324,6 +2436,7 @@ const opDeleteOpenIDConnectProvider = "DeleteOpenIDConnectProvider" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteOpenIDConnectProvider func (c *IAM) DeleteOpenIDConnectProviderRequest(input *DeleteOpenIDConnectProviderInput) (req *request.Request, output *DeleteOpenIDConnectProviderOutput) { op := &request.Operation{ Name: opDeleteOpenIDConnectProvider, @@ -2335,11 +2448,10 @@ func (c *IAM) DeleteOpenIDConnectProviderRequest(input *DeleteOpenIDConnectProvi input = &DeleteOpenIDConnectProviderInput{} } + output = &DeleteOpenIDConnectProviderOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteOpenIDConnectProviderOutput{} - req.Data = output return } @@ -2362,18 +2474,19 @@ func (c *IAM) DeleteOpenIDConnectProviderRequest(input *DeleteOpenIDConnectProvi // API operation DeleteOpenIDConnectProvider for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteOpenIDConnectProvider func (c *IAM) DeleteOpenIDConnectProvider(input *DeleteOpenIDConnectProviderInput) (*DeleteOpenIDConnectProviderOutput, error) { req, out := c.DeleteOpenIDConnectProviderRequest(input) err := req.Send() @@ -2406,6 +2519,7 @@ const opDeletePolicy = "DeletePolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeletePolicy func (c *IAM) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Request, output *DeletePolicyOutput) { op := &request.Operation{ Name: opDeletePolicy, @@ -2417,11 +2531,10 @@ func (c *IAM) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Reques input = &DeletePolicyInput{} } + output = &DeletePolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeletePolicyOutput{} - req.Data = output return } @@ -2434,21 +2547,21 @@ func (c *IAM) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Reques // all of the policy's versions. The following steps describe the process for // deleting a managed policy: // -// Detach the policy from all users, groups, and roles that the policy is -// attached to, using the DetachUserPolicy, DetachGroupPolicy, or DetachRolePolicy -// APIs. To list all the users, groups, and roles that a policy is attached -// to, use ListEntitiesForPolicy. +// * Detach the policy from all users, groups, and roles that the policy +// is attached to, using the DetachUserPolicy, DetachGroupPolicy, or DetachRolePolicy +// APIs. To list all the users, groups, and roles that a policy is attached +// to, use ListEntitiesForPolicy. // -// Delete all versions of the policy using DeletePolicyVersion. To list the -// policy's versions, use ListPolicyVersions. You cannot use DeletePolicyVersion -// to delete the version that is marked as the default version. You delete the -// policy's default version in the next step of the process. +// * Delete all versions of the policy using DeletePolicyVersion. To list +// the policy's versions, use ListPolicyVersions. You cannot use DeletePolicyVersion +// to delete the version that is marked as the default version. You delete +// the policy's default version in the next step of the process. // -// Delete the policy (this automatically deletes the policy's default version) -// using this API. +// * Delete the policy (this automatically deletes the policy's default version) +// using this API. // -// For information about managed policies, see Managed Policies and Inline -// Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// For information about managed policies, see Managed Policies and Inline Policies +// (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2459,26 +2572,27 @@ func (c *IAM) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Reques // API operation DeletePolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * DeleteConflict +// * ErrCodeDeleteConflictException "DeleteConflict" // The request was rejected because it attempted to delete a resource that has // attached subordinate entities. The error message describes these entities. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeletePolicy func (c *IAM) DeletePolicy(input *DeletePolicyInput) (*DeletePolicyOutput, error) { req, out := c.DeletePolicyRequest(input) err := req.Send() @@ -2511,6 +2625,7 @@ const opDeletePolicyVersion = "DeletePolicyVersion" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeletePolicyVersion func (c *IAM) DeletePolicyVersionRequest(input *DeletePolicyVersionInput) (req *request.Request, output *DeletePolicyVersionOutput) { op := &request.Operation{ Name: opDeletePolicyVersion, @@ -2522,11 +2637,10 @@ func (c *IAM) DeletePolicyVersionRequest(input *DeletePolicyVersionInput) (req * input = &DeletePolicyVersionInput{} } + output = &DeletePolicyVersionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeletePolicyVersionOutput{} - req.Data = output return } @@ -2538,8 +2652,8 @@ func (c *IAM) DeletePolicyVersionRequest(input *DeletePolicyVersionInput) (req * // the default version from a policy, use DeletePolicy. To find out which version // of a policy is marked as the default version, use ListPolicyVersions. // -// For information about versions for managed policies, see Versioning for -// Managed Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) +// For information about versions for managed policies, see Versioning for Managed +// Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) // in the IAM User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2550,26 +2664,27 @@ func (c *IAM) DeletePolicyVersionRequest(input *DeletePolicyVersionInput) (req * // API operation DeletePolicyVersion for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * DeleteConflict +// * ErrCodeDeleteConflictException "DeleteConflict" // The request was rejected because it attempted to delete a resource that has // attached subordinate entities. The error message describes these entities. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeletePolicyVersion func (c *IAM) DeletePolicyVersion(input *DeletePolicyVersionInput) (*DeletePolicyVersionOutput, error) { req, out := c.DeletePolicyVersionRequest(input) err := req.Send() @@ -2602,6 +2717,7 @@ const opDeleteRole = "DeleteRole" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteRole func (c *IAM) DeleteRoleRequest(input *DeleteRoleInput) (req *request.Request, output *DeleteRoleOutput) { op := &request.Operation{ Name: opDeleteRole, @@ -2613,11 +2729,10 @@ func (c *IAM) DeleteRoleRequest(input *DeleteRoleInput) (req *request.Request, o input = &DeleteRoleInput{} } + output = &DeleteRoleOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteRoleOutput{} - req.Data = output return } @@ -2626,7 +2741,7 @@ func (c *IAM) DeleteRoleRequest(input *DeleteRoleInput) (req *request.Request, o // Deletes the specified role. The role must not have any policies attached. // For more information about roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). // -// Make sure you do not have any Amazon EC2 instances running with the role +// Make sure you do not have any Amazon EC2 instances running with the role // you are about to delete. Deleting a role or instance profile that is associated // with a running instance will break any applications running on the instance. // @@ -2638,22 +2753,23 @@ func (c *IAM) DeleteRoleRequest(input *DeleteRoleInput) (req *request.Request, o // API operation DeleteRole for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * DeleteConflict +// * ErrCodeDeleteConflictException "DeleteConflict" // The request was rejected because it attempted to delete a resource that has // attached subordinate entities. The error message describes these entities. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteRole func (c *IAM) DeleteRole(input *DeleteRoleInput) (*DeleteRoleOutput, error) { req, out := c.DeleteRoleRequest(input) err := req.Send() @@ -2686,6 +2802,7 @@ const opDeleteRolePolicy = "DeleteRolePolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteRolePolicy func (c *IAM) DeleteRolePolicyRequest(input *DeleteRolePolicyInput) (req *request.Request, output *DeleteRolePolicyOutput) { op := &request.Operation{ Name: opDeleteRolePolicy, @@ -2697,11 +2814,10 @@ func (c *IAM) DeleteRolePolicyRequest(input *DeleteRolePolicyInput) (req *reques input = &DeleteRolePolicyInput{} } + output = &DeleteRolePolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteRolePolicyOutput{} - req.Data = output return } @@ -2723,18 +2839,19 @@ func (c *IAM) DeleteRolePolicyRequest(input *DeleteRolePolicyInput) (req *reques // API operation DeleteRolePolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteRolePolicy func (c *IAM) DeleteRolePolicy(input *DeleteRolePolicyInput) (*DeleteRolePolicyOutput, error) { req, out := c.DeleteRolePolicyRequest(input) err := req.Send() @@ -2767,6 +2884,7 @@ const opDeleteSAMLProvider = "DeleteSAMLProvider" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSAMLProvider func (c *IAM) DeleteSAMLProviderRequest(input *DeleteSAMLProviderInput) (req *request.Request, output *DeleteSAMLProviderOutput) { op := &request.Operation{ Name: opDeleteSAMLProvider, @@ -2778,11 +2896,10 @@ func (c *IAM) DeleteSAMLProviderRequest(input *DeleteSAMLProviderInput) (req *re input = &DeleteSAMLProviderInput{} } + output = &DeleteSAMLProviderOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteSAMLProviderOutput{} - req.Data = output return } @@ -2795,7 +2912,7 @@ func (c *IAM) DeleteSAMLProviderRequest(input *DeleteSAMLProviderInput) (req *re // Any attempt to assume a role that references a non-existent provider resource // ARN fails. // -// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2805,22 +2922,23 @@ func (c *IAM) DeleteSAMLProviderRequest(input *DeleteSAMLProviderInput) (req *re // API operation DeleteSAMLProvider for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSAMLProvider func (c *IAM) DeleteSAMLProvider(input *DeleteSAMLProviderInput) (*DeleteSAMLProviderOutput, error) { req, out := c.DeleteSAMLProviderRequest(input) err := req.Send() @@ -2853,6 +2971,7 @@ const opDeleteSSHPublicKey = "DeleteSSHPublicKey" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSSHPublicKey func (c *IAM) DeleteSSHPublicKeyRequest(input *DeleteSSHPublicKeyInput) (req *request.Request, output *DeleteSSHPublicKeyOutput) { op := &request.Operation{ Name: opDeleteSSHPublicKey, @@ -2864,11 +2983,10 @@ func (c *IAM) DeleteSSHPublicKeyRequest(input *DeleteSSHPublicKeyInput) (req *re input = &DeleteSSHPublicKeyInput{} } + output = &DeleteSSHPublicKeyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteSSHPublicKeyOutput{} - req.Data = output return } @@ -2890,10 +3008,11 @@ func (c *IAM) DeleteSSHPublicKeyRequest(input *DeleteSSHPublicKeyInput) (req *re // API operation DeleteSSHPublicKey for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSSHPublicKey func (c *IAM) DeleteSSHPublicKey(input *DeleteSSHPublicKeyInput) (*DeleteSSHPublicKeyOutput, error) { req, out := c.DeleteSSHPublicKeyRequest(input) err := req.Send() @@ -2926,6 +3045,7 @@ const opDeleteServerCertificate = "DeleteServerCertificate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServerCertificate func (c *IAM) DeleteServerCertificateRequest(input *DeleteServerCertificateInput) (req *request.Request, output *DeleteServerCertificateOutput) { op := &request.Operation{ Name: opDeleteServerCertificate, @@ -2937,11 +3057,10 @@ func (c *IAM) DeleteServerCertificateRequest(input *DeleteServerCertificateInput input = &DeleteServerCertificateInput{} } + output = &DeleteServerCertificateOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteServerCertificateOutput{} - req.Data = output return } @@ -2954,7 +3073,7 @@ func (c *IAM) DeleteServerCertificateRequest(input *DeleteServerCertificateInput // with IAM, go to Working with Server Certificates (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) // in the IAM User Guide. // -// If you are using a server certificate with Elastic Load Balancing, deleting +// If you are using a server certificate with Elastic Load Balancing, deleting // the certificate could have implications for your application. If Elastic // Load Balancing doesn't detect the deletion of bound certificates, it may // continue to use the certificates. This could cause Elastic Load Balancing @@ -2972,28 +3091,97 @@ func (c *IAM) DeleteServerCertificateRequest(input *DeleteServerCertificateInput // API operation DeleteServerCertificate for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * DeleteConflict +// * ErrCodeDeleteConflictException "DeleteConflict" // The request was rejected because it attempted to delete a resource that has // attached subordinate entities. The error message describes these entities. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServerCertificate func (c *IAM) DeleteServerCertificate(input *DeleteServerCertificateInput) (*DeleteServerCertificateOutput, error) { req, out := c.DeleteServerCertificateRequest(input) err := req.Send() return out, err } +const opDeleteServiceSpecificCredential = "DeleteServiceSpecificCredential" + +// DeleteServiceSpecificCredentialRequest generates a "aws/request.Request" representing the +// client's request for the DeleteServiceSpecificCredential operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteServiceSpecificCredential for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteServiceSpecificCredential method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteServiceSpecificCredentialRequest method. +// req, resp := client.DeleteServiceSpecificCredentialRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServiceSpecificCredential +func (c *IAM) DeleteServiceSpecificCredentialRequest(input *DeleteServiceSpecificCredentialInput) (req *request.Request, output *DeleteServiceSpecificCredentialOutput) { + op := &request.Operation{ + Name: opDeleteServiceSpecificCredential, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteServiceSpecificCredentialInput{} + } + + output = &DeleteServiceSpecificCredentialOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteServiceSpecificCredential API operation for AWS Identity and Access Management. +// +// Deletes the specified service-specific credential. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeleteServiceSpecificCredential for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNoSuchEntityException "NoSuchEntity" +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServiceSpecificCredential +func (c *IAM) DeleteServiceSpecificCredential(input *DeleteServiceSpecificCredentialInput) (*DeleteServiceSpecificCredentialOutput, error) { + req, out := c.DeleteServiceSpecificCredentialRequest(input) + err := req.Send() + return out, err +} + const opDeleteSigningCertificate = "DeleteSigningCertificate" // DeleteSigningCertificateRequest generates a "aws/request.Request" representing the @@ -3020,6 +3208,7 @@ const opDeleteSigningCertificate = "DeleteSigningCertificate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSigningCertificate func (c *IAM) DeleteSigningCertificateRequest(input *DeleteSigningCertificateInput) (req *request.Request, output *DeleteSigningCertificateOutput) { op := &request.Operation{ Name: opDeleteSigningCertificate, @@ -3031,11 +3220,10 @@ func (c *IAM) DeleteSigningCertificateRequest(input *DeleteSigningCertificateInp input = &DeleteSigningCertificateInput{} } + output = &DeleteSigningCertificateOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteSigningCertificateOutput{} - req.Data = output return } @@ -3056,18 +3244,19 @@ func (c *IAM) DeleteSigningCertificateRequest(input *DeleteSigningCertificateInp // API operation DeleteSigningCertificate for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSigningCertificate func (c *IAM) DeleteSigningCertificate(input *DeleteSigningCertificateInput) (*DeleteSigningCertificateOutput, error) { req, out := c.DeleteSigningCertificateRequest(input) err := req.Send() @@ -3100,6 +3289,7 @@ const opDeleteUser = "DeleteUser" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteUser func (c *IAM) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) { op := &request.Operation{ Name: opDeleteUser, @@ -3111,11 +3301,10 @@ func (c *IAM) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, o input = &DeleteUserInput{} } + output = &DeleteUserOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteUserOutput{} - req.Data = output return } @@ -3132,22 +3321,23 @@ func (c *IAM) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, o // API operation DeleteUser for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * DeleteConflict +// * ErrCodeDeleteConflictException "DeleteConflict" // The request was rejected because it attempted to delete a resource that has // attached subordinate entities. The error message describes these entities. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteUser func (c *IAM) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) { req, out := c.DeleteUserRequest(input) err := req.Send() @@ -3180,6 +3370,7 @@ const opDeleteUserPolicy = "DeleteUserPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteUserPolicy func (c *IAM) DeleteUserPolicyRequest(input *DeleteUserPolicyInput) (req *request.Request, output *DeleteUserPolicyOutput) { op := &request.Operation{ Name: opDeleteUserPolicy, @@ -3191,11 +3382,10 @@ func (c *IAM) DeleteUserPolicyRequest(input *DeleteUserPolicyInput) (req *reques input = &DeleteUserPolicyInput{} } + output = &DeleteUserPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteUserPolicyOutput{} - req.Data = output return } @@ -3217,18 +3407,19 @@ func (c *IAM) DeleteUserPolicyRequest(input *DeleteUserPolicyInput) (req *reques // API operation DeleteUserPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteUserPolicy func (c *IAM) DeleteUserPolicy(input *DeleteUserPolicyInput) (*DeleteUserPolicyOutput, error) { req, out := c.DeleteUserPolicyRequest(input) err := req.Send() @@ -3261,6 +3452,7 @@ const opDeleteVirtualMFADevice = "DeleteVirtualMFADevice" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteVirtualMFADevice func (c *IAM) DeleteVirtualMFADeviceRequest(input *DeleteVirtualMFADeviceInput) (req *request.Request, output *DeleteVirtualMFADeviceOutput) { op := &request.Operation{ Name: opDeleteVirtualMFADevice, @@ -3272,11 +3464,10 @@ func (c *IAM) DeleteVirtualMFADeviceRequest(input *DeleteVirtualMFADeviceInput) input = &DeleteVirtualMFADeviceInput{} } + output = &DeleteVirtualMFADeviceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteVirtualMFADeviceOutput{} - req.Data = output return } @@ -3284,8 +3475,8 @@ func (c *IAM) DeleteVirtualMFADeviceRequest(input *DeleteVirtualMFADeviceInput) // // Deletes a virtual MFA device. // -// You must deactivate a user's virtual MFA device before you can delete -// it. For information about deactivating MFA devices, see DeactivateMFADevice. +// You must deactivate a user's virtual MFA device before you can delete it. +// For information about deactivating MFA devices, see DeactivateMFADevice. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3295,22 +3486,23 @@ func (c *IAM) DeleteVirtualMFADeviceRequest(input *DeleteVirtualMFADeviceInput) // API operation DeleteVirtualMFADevice for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * DeleteConflict +// * ErrCodeDeleteConflictException "DeleteConflict" // The request was rejected because it attempted to delete a resource that has // attached subordinate entities. The error message describes these entities. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteVirtualMFADevice func (c *IAM) DeleteVirtualMFADevice(input *DeleteVirtualMFADeviceInput) (*DeleteVirtualMFADeviceOutput, error) { req, out := c.DeleteVirtualMFADeviceRequest(input) err := req.Send() @@ -3343,6 +3535,7 @@ const opDetachGroupPolicy = "DetachGroupPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachGroupPolicy func (c *IAM) DetachGroupPolicyRequest(input *DetachGroupPolicyInput) (req *request.Request, output *DetachGroupPolicyOutput) { op := &request.Operation{ Name: opDetachGroupPolicy, @@ -3354,11 +3547,10 @@ func (c *IAM) DetachGroupPolicyRequest(input *DetachGroupPolicyInput) (req *requ input = &DetachGroupPolicyInput{} } + output = &DetachGroupPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DetachGroupPolicyOutput{} - req.Data = output return } @@ -3379,22 +3571,23 @@ func (c *IAM) DetachGroupPolicyRequest(input *DetachGroupPolicyInput) (req *requ // API operation DetachGroupPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachGroupPolicy func (c *IAM) DetachGroupPolicy(input *DetachGroupPolicyInput) (*DetachGroupPolicyOutput, error) { req, out := c.DetachGroupPolicyRequest(input) err := req.Send() @@ -3427,6 +3620,7 @@ const opDetachRolePolicy = "DetachRolePolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachRolePolicy func (c *IAM) DetachRolePolicyRequest(input *DetachRolePolicyInput) (req *request.Request, output *DetachRolePolicyOutput) { op := &request.Operation{ Name: opDetachRolePolicy, @@ -3438,11 +3632,10 @@ func (c *IAM) DetachRolePolicyRequest(input *DetachRolePolicyInput) (req *reques input = &DetachRolePolicyInput{} } + output = &DetachRolePolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DetachRolePolicyOutput{} - req.Data = output return } @@ -3463,22 +3656,23 @@ func (c *IAM) DetachRolePolicyRequest(input *DetachRolePolicyInput) (req *reques // API operation DetachRolePolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachRolePolicy func (c *IAM) DetachRolePolicy(input *DetachRolePolicyInput) (*DetachRolePolicyOutput, error) { req, out := c.DetachRolePolicyRequest(input) err := req.Send() @@ -3511,6 +3705,7 @@ const opDetachUserPolicy = "DetachUserPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachUserPolicy func (c *IAM) DetachUserPolicyRequest(input *DetachUserPolicyInput) (req *request.Request, output *DetachUserPolicyOutput) { op := &request.Operation{ Name: opDetachUserPolicy, @@ -3522,11 +3717,10 @@ func (c *IAM) DetachUserPolicyRequest(input *DetachUserPolicyInput) (req *reques input = &DetachUserPolicyInput{} } + output = &DetachUserPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DetachUserPolicyOutput{} - req.Data = output return } @@ -3547,22 +3741,23 @@ func (c *IAM) DetachUserPolicyRequest(input *DetachUserPolicyInput) (req *reques // API operation DetachUserPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachUserPolicy func (c *IAM) DetachUserPolicy(input *DetachUserPolicyInput) (*DetachUserPolicyOutput, error) { req, out := c.DetachUserPolicyRequest(input) err := req.Send() @@ -3595,6 +3790,7 @@ const opEnableMFADevice = "EnableMFADevice" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/EnableMFADevice func (c *IAM) EnableMFADeviceRequest(input *EnableMFADeviceInput) (req *request.Request, output *EnableMFADeviceOutput) { op := &request.Operation{ Name: opEnableMFADevice, @@ -3606,11 +3802,10 @@ func (c *IAM) EnableMFADeviceRequest(input *EnableMFADeviceInput) (req *request. input = &EnableMFADeviceInput{} } + output = &EnableMFADeviceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &EnableMFADeviceOutput{} - req.Data = output return } @@ -3628,32 +3823,33 @@ func (c *IAM) EnableMFADeviceRequest(input *EnableMFADeviceInput) (req *request. // API operation EnableMFADevice for usage and error information. // // Returned Error Codes: -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * EntityTemporarilyUnmodifiable +// * ErrCodeEntityTemporarilyUnmodifiableException "EntityTemporarilyUnmodifiable" // The request was rejected because it referenced an entity that is temporarily // unmodifiable, such as a user name that was deleted and then recreated. The // error indicates that the request is likely to succeed if you try again after // waiting several minutes. The error message describes the entity. // -// * InvalidAuthenticationCode +// * ErrCodeInvalidAuthenticationCodeException "InvalidAuthenticationCode" // The request was rejected because the authentication code was not recognized. // The error message describes the specific error. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/EnableMFADevice func (c *IAM) EnableMFADevice(input *EnableMFADeviceInput) (*EnableMFADeviceOutput, error) { req, out := c.EnableMFADeviceRequest(input) err := req.Send() @@ -3686,6 +3882,7 @@ const opGenerateCredentialReport = "GenerateCredentialReport" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GenerateCredentialReport func (c *IAM) GenerateCredentialReportRequest(input *GenerateCredentialReportInput) (req *request.Request, output *GenerateCredentialReportOutput) { op := &request.Operation{ Name: opGenerateCredentialReport, @@ -3697,9 +3894,8 @@ func (c *IAM) GenerateCredentialReportRequest(input *GenerateCredentialReportInp input = &GenerateCredentialReportInput{} } - req = c.newRequest(op, input, output) output = &GenerateCredentialReportOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3717,14 +3913,15 @@ func (c *IAM) GenerateCredentialReportRequest(input *GenerateCredentialReportInp // API operation GenerateCredentialReport for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GenerateCredentialReport func (c *IAM) GenerateCredentialReport(input *GenerateCredentialReportInput) (*GenerateCredentialReportOutput, error) { req, out := c.GenerateCredentialReportRequest(input) err := req.Send() @@ -3757,6 +3954,7 @@ const opGetAccessKeyLastUsed = "GetAccessKeyLastUsed" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccessKeyLastUsed func (c *IAM) GetAccessKeyLastUsedRequest(input *GetAccessKeyLastUsedInput) (req *request.Request, output *GetAccessKeyLastUsedOutput) { op := &request.Operation{ Name: opGetAccessKeyLastUsed, @@ -3768,9 +3966,8 @@ func (c *IAM) GetAccessKeyLastUsedRequest(input *GetAccessKeyLastUsedInput) (req input = &GetAccessKeyLastUsedInput{} } - req = c.newRequest(op, input, output) output = &GetAccessKeyLastUsedOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3789,10 +3986,11 @@ func (c *IAM) GetAccessKeyLastUsedRequest(input *GetAccessKeyLastUsedInput) (req // API operation GetAccessKeyLastUsed for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccessKeyLastUsed func (c *IAM) GetAccessKeyLastUsed(input *GetAccessKeyLastUsedInput) (*GetAccessKeyLastUsedOutput, error) { req, out := c.GetAccessKeyLastUsedRequest(input) err := req.Send() @@ -3825,6 +4023,7 @@ const opGetAccountAuthorizationDetails = "GetAccountAuthorizationDetails" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountAuthorizationDetails func (c *IAM) GetAccountAuthorizationDetailsRequest(input *GetAccountAuthorizationDetailsInput) (req *request.Request, output *GetAccountAuthorizationDetailsOutput) { op := &request.Operation{ Name: opGetAccountAuthorizationDetails, @@ -3842,9 +4041,8 @@ func (c *IAM) GetAccountAuthorizationDetailsRequest(input *GetAccountAuthorizati input = &GetAccountAuthorizationDetailsInput{} } - req = c.newRequest(op, input, output) output = &GetAccountAuthorizationDetailsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3866,10 +4064,11 @@ func (c *IAM) GetAccountAuthorizationDetailsRequest(input *GetAccountAuthorizati // API operation GetAccountAuthorizationDetails for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountAuthorizationDetails func (c *IAM) GetAccountAuthorizationDetails(input *GetAccountAuthorizationDetailsInput) (*GetAccountAuthorizationDetailsOutput, error) { req, out := c.GetAccountAuthorizationDetailsRequest(input) err := req.Send() @@ -3927,6 +4126,7 @@ const opGetAccountPasswordPolicy = "GetAccountPasswordPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountPasswordPolicy func (c *IAM) GetAccountPasswordPolicyRequest(input *GetAccountPasswordPolicyInput) (req *request.Request, output *GetAccountPasswordPolicyOutput) { op := &request.Operation{ Name: opGetAccountPasswordPolicy, @@ -3938,9 +4138,8 @@ func (c *IAM) GetAccountPasswordPolicyRequest(input *GetAccountPasswordPolicyInp input = &GetAccountPasswordPolicyInput{} } - req = c.newRequest(op, input, output) output = &GetAccountPasswordPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3957,14 +4156,15 @@ func (c *IAM) GetAccountPasswordPolicyRequest(input *GetAccountPasswordPolicyInp // API operation GetAccountPasswordPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountPasswordPolicy func (c *IAM) GetAccountPasswordPolicy(input *GetAccountPasswordPolicyInput) (*GetAccountPasswordPolicyOutput, error) { req, out := c.GetAccountPasswordPolicyRequest(input) err := req.Send() @@ -3997,6 +4197,7 @@ const opGetAccountSummary = "GetAccountSummary" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountSummary func (c *IAM) GetAccountSummaryRequest(input *GetAccountSummaryInput) (req *request.Request, output *GetAccountSummaryOutput) { op := &request.Operation{ Name: opGetAccountSummary, @@ -4008,9 +4209,8 @@ func (c *IAM) GetAccountSummaryRequest(input *GetAccountSummaryInput) (req *requ input = &GetAccountSummaryInput{} } - req = c.newRequest(op, input, output) output = &GetAccountSummaryOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4018,7 +4218,7 @@ func (c *IAM) GetAccountSummaryRequest(input *GetAccountSummaryInput) (req *requ // // Retrieves information about IAM entity usage and IAM quotas in the AWS account. // -// For information about limitations on IAM entities, see Limitations on IAM +// For information about limitations on IAM entities, see Limitations on IAM // Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. // @@ -4030,10 +4230,11 @@ func (c *IAM) GetAccountSummaryRequest(input *GetAccountSummaryInput) (req *requ // API operation GetAccountSummary for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountSummary func (c *IAM) GetAccountSummary(input *GetAccountSummaryInput) (*GetAccountSummaryOutput, error) { req, out := c.GetAccountSummaryRequest(input) err := req.Send() @@ -4066,6 +4267,7 @@ const opGetContextKeysForCustomPolicy = "GetContextKeysForCustomPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetContextKeysForCustomPolicy func (c *IAM) GetContextKeysForCustomPolicyRequest(input *GetContextKeysForCustomPolicyInput) (req *request.Request, output *GetContextKeysForPolicyResponse) { op := &request.Operation{ Name: opGetContextKeysForCustomPolicy, @@ -4077,9 +4279,8 @@ func (c *IAM) GetContextKeysForCustomPolicyRequest(input *GetContextKeysForCusto input = &GetContextKeysForCustomPolicyInput{} } - req = c.newRequest(op, input, output) output = &GetContextKeysForPolicyResponse{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4104,10 +4305,11 @@ func (c *IAM) GetContextKeysForCustomPolicyRequest(input *GetContextKeysForCusto // API operation GetContextKeysForCustomPolicy for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetContextKeysForCustomPolicy func (c *IAM) GetContextKeysForCustomPolicy(input *GetContextKeysForCustomPolicyInput) (*GetContextKeysForPolicyResponse, error) { req, out := c.GetContextKeysForCustomPolicyRequest(input) err := req.Send() @@ -4140,6 +4342,7 @@ const opGetContextKeysForPrincipalPolicy = "GetContextKeysForPrincipalPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetContextKeysForPrincipalPolicy func (c *IAM) GetContextKeysForPrincipalPolicyRequest(input *GetContextKeysForPrincipalPolicyInput) (req *request.Request, output *GetContextKeysForPolicyResponse) { op := &request.Operation{ Name: opGetContextKeysForPrincipalPolicy, @@ -4151,9 +4354,8 @@ func (c *IAM) GetContextKeysForPrincipalPolicyRequest(input *GetContextKeysForPr input = &GetContextKeysForPrincipalPolicyInput{} } - req = c.newRequest(op, input, output) output = &GetContextKeysForPolicyResponse{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4168,7 +4370,7 @@ func (c *IAM) GetContextKeysForPrincipalPolicyRequest(input *GetContextKeysForPr // as strings. If you want to include only a list of policies by string, use // GetContextKeysForCustomPolicy instead. // -// Note: This API discloses information about the permissions granted to other +// Note: This API discloses information about the permissions granted to other // users. If you do not want users to see other user's permissions, then consider // allowing them to use GetContextKeysForCustomPolicy instead. // @@ -4185,14 +4387,15 @@ func (c *IAM) GetContextKeysForPrincipalPolicyRequest(input *GetContextKeysForPr // API operation GetContextKeysForPrincipalPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetContextKeysForPrincipalPolicy func (c *IAM) GetContextKeysForPrincipalPolicy(input *GetContextKeysForPrincipalPolicyInput) (*GetContextKeysForPolicyResponse, error) { req, out := c.GetContextKeysForPrincipalPolicyRequest(input) err := req.Send() @@ -4225,6 +4428,7 @@ const opGetCredentialReport = "GetCredentialReport" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetCredentialReport func (c *IAM) GetCredentialReportRequest(input *GetCredentialReportInput) (req *request.Request, output *GetCredentialReportOutput) { op := &request.Operation{ Name: opGetCredentialReport, @@ -4236,9 +4440,8 @@ func (c *IAM) GetCredentialReportRequest(input *GetCredentialReportInput) (req * input = &GetCredentialReportInput{} } - req = c.newRequest(op, input, output) output = &GetCredentialReportOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4256,24 +4459,25 @@ func (c *IAM) GetCredentialReportRequest(input *GetCredentialReportInput) (req * // API operation GetCredentialReport for usage and error information. // // Returned Error Codes: -// * ReportNotPresent +// * ErrCodeCredentialReportNotPresentException "ReportNotPresent" // The request was rejected because the credential report does not exist. To // generate a credential report, use GenerateCredentialReport. // -// * ReportExpired +// * ErrCodeCredentialReportExpiredException "ReportExpired" // The request was rejected because the most recent credential report has expired. // To generate a new credential report, use GenerateCredentialReport. For more // information about credential report expiration, see Getting Credential Reports // (http://docs.aws.amazon.com/IAM/latest/UserGuide/credential-reports.html) // in the IAM User Guide. // -// * ReportInProgress +// * ErrCodeCredentialReportNotReadyException "ReportInProgress" // The request was rejected because the credential report is still being generated. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetCredentialReport func (c *IAM) GetCredentialReport(input *GetCredentialReportInput) (*GetCredentialReportOutput, error) { req, out := c.GetCredentialReportRequest(input) err := req.Send() @@ -4306,6 +4510,7 @@ const opGetGroup = "GetGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetGroup func (c *IAM) GetGroupRequest(input *GetGroupInput) (req *request.Request, output *GetGroupOutput) { op := &request.Operation{ Name: opGetGroup, @@ -4323,9 +4528,8 @@ func (c *IAM) GetGroupRequest(input *GetGroupInput) (req *request.Request, outpu input = &GetGroupInput{} } - req = c.newRequest(op, input, output) output = &GetGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4342,14 +4546,15 @@ func (c *IAM) GetGroupRequest(input *GetGroupInput) (req *request.Request, outpu // API operation GetGroup for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetGroup func (c *IAM) GetGroup(input *GetGroupInput) (*GetGroupOutput, error) { req, out := c.GetGroupRequest(input) err := req.Send() @@ -4407,6 +4612,7 @@ const opGetGroupPolicy = "GetGroupPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetGroupPolicy func (c *IAM) GetGroupPolicyRequest(input *GetGroupPolicyInput) (req *request.Request, output *GetGroupPolicyOutput) { op := &request.Operation{ Name: opGetGroupPolicy, @@ -4418,9 +4624,8 @@ func (c *IAM) GetGroupPolicyRequest(input *GetGroupPolicyInput) (req *request.Re input = &GetGroupPolicyInput{} } - req = c.newRequest(op, input, output) output = &GetGroupPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4429,14 +4634,14 @@ func (c *IAM) GetGroupPolicyRequest(input *GetGroupPolicyInput) (req *request.Re // Retrieves the specified inline policy document that is embedded in the specified // IAM group. // -// Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). +// Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). // You can use a URL decoding method to convert the policy back to plain JSON // text. For example, if you use Java, you can use the decode method of the // java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs // provide similar functionality. // -// An IAM group can also have managed policies attached to it. To retrieve -// a managed policy document that is attached to a group, use GetPolicy to determine +// An IAM group can also have managed policies attached to it. To retrieve a +// managed policy document that is attached to a group, use GetPolicy to determine // the policy's default version, then use GetPolicyVersion to retrieve the policy // document. // @@ -4452,14 +4657,15 @@ func (c *IAM) GetGroupPolicyRequest(input *GetGroupPolicyInput) (req *request.Re // API operation GetGroupPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetGroupPolicy func (c *IAM) GetGroupPolicy(input *GetGroupPolicyInput) (*GetGroupPolicyOutput, error) { req, out := c.GetGroupPolicyRequest(input) err := req.Send() @@ -4492,6 +4698,7 @@ const opGetInstanceProfile = "GetInstanceProfile" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetInstanceProfile func (c *IAM) GetInstanceProfileRequest(input *GetInstanceProfileInput) (req *request.Request, output *GetInstanceProfileOutput) { op := &request.Operation{ Name: opGetInstanceProfile, @@ -4503,9 +4710,8 @@ func (c *IAM) GetInstanceProfileRequest(input *GetInstanceProfileInput) (req *re input = &GetInstanceProfileInput{} } - req = c.newRequest(op, input, output) output = &GetInstanceProfileOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4524,14 +4730,15 @@ func (c *IAM) GetInstanceProfileRequest(input *GetInstanceProfileInput) (req *re // API operation GetInstanceProfile for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetInstanceProfile func (c *IAM) GetInstanceProfile(input *GetInstanceProfileInput) (*GetInstanceProfileOutput, error) { req, out := c.GetInstanceProfileRequest(input) err := req.Send() @@ -4564,6 +4771,7 @@ const opGetLoginProfile = "GetLoginProfile" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetLoginProfile func (c *IAM) GetLoginProfileRequest(input *GetLoginProfileInput) (req *request.Request, output *GetLoginProfileOutput) { op := &request.Operation{ Name: opGetLoginProfile, @@ -4575,9 +4783,8 @@ func (c *IAM) GetLoginProfileRequest(input *GetLoginProfileInput) (req *request. input = &GetLoginProfileInput{} } - req = c.newRequest(op, input, output) output = &GetLoginProfileOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4595,14 +4802,15 @@ func (c *IAM) GetLoginProfileRequest(input *GetLoginProfileInput) (req *request. // API operation GetLoginProfile for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetLoginProfile func (c *IAM) GetLoginProfile(input *GetLoginProfileInput) (*GetLoginProfileOutput, error) { req, out := c.GetLoginProfileRequest(input) err := req.Send() @@ -4635,6 +4843,7 @@ const opGetOpenIDConnectProvider = "GetOpenIDConnectProvider" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetOpenIDConnectProvider func (c *IAM) GetOpenIDConnectProviderRequest(input *GetOpenIDConnectProviderInput) (req *request.Request, output *GetOpenIDConnectProviderOutput) { op := &request.Operation{ Name: opGetOpenIDConnectProvider, @@ -4646,9 +4855,8 @@ func (c *IAM) GetOpenIDConnectProviderRequest(input *GetOpenIDConnectProviderInp input = &GetOpenIDConnectProviderInput{} } - req = c.newRequest(op, input, output) output = &GetOpenIDConnectProviderOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4665,18 +4873,19 @@ func (c *IAM) GetOpenIDConnectProviderRequest(input *GetOpenIDConnectProviderInp // API operation GetOpenIDConnectProvider for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetOpenIDConnectProvider func (c *IAM) GetOpenIDConnectProvider(input *GetOpenIDConnectProviderInput) (*GetOpenIDConnectProviderOutput, error) { req, out := c.GetOpenIDConnectProviderRequest(input) err := req.Send() @@ -4709,6 +4918,7 @@ const opGetPolicy = "GetPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetPolicy func (c *IAM) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, output *GetPolicyOutput) { op := &request.Operation{ Name: opGetPolicy, @@ -4720,9 +4930,8 @@ func (c *IAM) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, out input = &GetPolicyInput{} } - req = c.newRequest(op, input, output) output = &GetPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4751,18 +4960,19 @@ func (c *IAM) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, out // API operation GetPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetPolicy func (c *IAM) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error) { req, out := c.GetPolicyRequest(input) err := req.Send() @@ -4795,6 +5005,7 @@ const opGetPolicyVersion = "GetPolicyVersion" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetPolicyVersion func (c *IAM) GetPolicyVersionRequest(input *GetPolicyVersionInput) (req *request.Request, output *GetPolicyVersionOutput) { op := &request.Operation{ Name: opGetPolicyVersion, @@ -4806,9 +5017,8 @@ func (c *IAM) GetPolicyVersionRequest(input *GetPolicyVersionInput) (req *reques input = &GetPolicyVersionInput{} } - req = c.newRequest(op, input, output) output = &GetPolicyVersionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4817,13 +5027,13 @@ func (c *IAM) GetPolicyVersionRequest(input *GetPolicyVersionInput) (req *reques // Retrieves information about the specified version of the specified managed // policy, including the policy document. // -// Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). +// Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). // You can use a URL decoding method to convert the policy back to plain JSON // text. For example, if you use Java, you can use the decode method of the // java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs // provide similar functionality. // -// To list the available versions for a policy, use ListPolicyVersions. +// To list the available versions for a policy, use ListPolicyVersions. // // This API retrieves information about managed policies. To retrieve information // about an inline policy that is embedded in a user, group, or role, use the @@ -4845,18 +5055,19 @@ func (c *IAM) GetPolicyVersionRequest(input *GetPolicyVersionInput) (req *reques // API operation GetPolicyVersion for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetPolicyVersion func (c *IAM) GetPolicyVersion(input *GetPolicyVersionInput) (*GetPolicyVersionOutput, error) { req, out := c.GetPolicyVersionRequest(input) err := req.Send() @@ -4889,6 +5100,7 @@ const opGetRole = "GetRole" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetRole func (c *IAM) GetRoleRequest(input *GetRoleInput) (req *request.Request, output *GetRoleOutput) { op := &request.Operation{ Name: opGetRole, @@ -4900,9 +5112,8 @@ func (c *IAM) GetRoleRequest(input *GetRoleInput) (req *request.Request, output input = &GetRoleInput{} } - req = c.newRequest(op, input, output) output = &GetRoleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4912,7 +5123,7 @@ func (c *IAM) GetRoleRequest(input *GetRoleInput) (req *request.Request, output // GUID, ARN, and the role's trust policy that grants permission to assume the // role. For more information about roles, see Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). // -// Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). +// Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). // You can use a URL decoding method to convert the policy back to plain JSON // text. For example, if you use Java, you can use the decode method of the // java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs @@ -4926,14 +5137,15 @@ func (c *IAM) GetRoleRequest(input *GetRoleInput) (req *request.Request, output // API operation GetRole for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetRole func (c *IAM) GetRole(input *GetRoleInput) (*GetRoleOutput, error) { req, out := c.GetRoleRequest(input) err := req.Send() @@ -4966,6 +5178,7 @@ const opGetRolePolicy = "GetRolePolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetRolePolicy func (c *IAM) GetRolePolicyRequest(input *GetRolePolicyInput) (req *request.Request, output *GetRolePolicyOutput) { op := &request.Operation{ Name: opGetRolePolicy, @@ -4977,9 +5190,8 @@ func (c *IAM) GetRolePolicyRequest(input *GetRolePolicyInput) (req *request.Requ input = &GetRolePolicyInput{} } - req = c.newRequest(op, input, output) output = &GetRolePolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4988,14 +5200,14 @@ func (c *IAM) GetRolePolicyRequest(input *GetRolePolicyInput) (req *request.Requ // Retrieves the specified inline policy document that is embedded with the // specified IAM role. // -// Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). +// Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). // You can use a URL decoding method to convert the policy back to plain JSON // text. For example, if you use Java, you can use the decode method of the // java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs // provide similar functionality. // -// An IAM role can also have managed policies attached to it. To retrieve -// a managed policy document that is attached to a role, use GetPolicy to determine +// An IAM role can also have managed policies attached to it. To retrieve a +// managed policy document that is attached to a role, use GetPolicy to determine // the policy's default version, then use GetPolicyVersion to retrieve the policy // document. // @@ -5014,14 +5226,15 @@ func (c *IAM) GetRolePolicyRequest(input *GetRolePolicyInput) (req *request.Requ // API operation GetRolePolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetRolePolicy func (c *IAM) GetRolePolicy(input *GetRolePolicyInput) (*GetRolePolicyOutput, error) { req, out := c.GetRolePolicyRequest(input) err := req.Send() @@ -5054,6 +5267,7 @@ const opGetSAMLProvider = "GetSAMLProvider" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetSAMLProvider func (c *IAM) GetSAMLProviderRequest(input *GetSAMLProviderInput) (req *request.Request, output *GetSAMLProviderOutput) { op := &request.Operation{ Name: opGetSAMLProvider, @@ -5065,9 +5279,8 @@ func (c *IAM) GetSAMLProviderRequest(input *GetSAMLProviderInput) (req *request. input = &GetSAMLProviderInput{} } - req = c.newRequest(op, input, output) output = &GetSAMLProviderOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5076,7 +5289,7 @@ func (c *IAM) GetSAMLProviderRequest(input *GetSAMLProviderInput) (req *request. // Returns the SAML provider metadocument that was uploaded when the IAM SAML // provider resource object was created or updated. // -// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -5086,18 +5299,19 @@ func (c *IAM) GetSAMLProviderRequest(input *GetSAMLProviderInput) (req *request. // API operation GetSAMLProvider for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetSAMLProvider func (c *IAM) GetSAMLProvider(input *GetSAMLProviderInput) (*GetSAMLProviderOutput, error) { req, out := c.GetSAMLProviderRequest(input) err := req.Send() @@ -5130,6 +5344,7 @@ const opGetSSHPublicKey = "GetSSHPublicKey" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetSSHPublicKey func (c *IAM) GetSSHPublicKeyRequest(input *GetSSHPublicKeyInput) (req *request.Request, output *GetSSHPublicKeyOutput) { op := &request.Operation{ Name: opGetSSHPublicKey, @@ -5141,9 +5356,8 @@ func (c *IAM) GetSSHPublicKeyRequest(input *GetSSHPublicKeyInput) (req *request. input = &GetSSHPublicKeyInput{} } - req = c.newRequest(op, input, output) output = &GetSSHPublicKeyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5165,14 +5379,15 @@ func (c *IAM) GetSSHPublicKeyRequest(input *GetSSHPublicKeyInput) (req *request. // API operation GetSSHPublicKey for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * UnrecognizedPublicKeyEncoding +// * ErrCodeUnrecognizedPublicKeyEncodingException "UnrecognizedPublicKeyEncoding" // The request was rejected because the public key encoding format is unsupported // or unrecognized. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetSSHPublicKey func (c *IAM) GetSSHPublicKey(input *GetSSHPublicKeyInput) (*GetSSHPublicKeyOutput, error) { req, out := c.GetSSHPublicKeyRequest(input) err := req.Send() @@ -5205,6 +5420,7 @@ const opGetServerCertificate = "GetServerCertificate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetServerCertificate func (c *IAM) GetServerCertificateRequest(input *GetServerCertificateInput) (req *request.Request, output *GetServerCertificateOutput) { op := &request.Operation{ Name: opGetServerCertificate, @@ -5216,9 +5432,8 @@ func (c *IAM) GetServerCertificateRequest(input *GetServerCertificateInput) (req input = &GetServerCertificateInput{} } - req = c.newRequest(op, input, output) output = &GetServerCertificateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5239,14 +5454,15 @@ func (c *IAM) GetServerCertificateRequest(input *GetServerCertificateInput) (req // API operation GetServerCertificate for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetServerCertificate func (c *IAM) GetServerCertificate(input *GetServerCertificateInput) (*GetServerCertificateOutput, error) { req, out := c.GetServerCertificateRequest(input) err := req.Send() @@ -5279,6 +5495,7 @@ const opGetUser = "GetUser" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetUser func (c *IAM) GetUserRequest(input *GetUserInput) (req *request.Request, output *GetUserOutput) { op := &request.Operation{ Name: opGetUser, @@ -5290,9 +5507,8 @@ func (c *IAM) GetUserRequest(input *GetUserInput) (req *request.Request, output input = &GetUserInput{} } - req = c.newRequest(op, input, output) output = &GetUserOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5312,14 +5528,15 @@ func (c *IAM) GetUserRequest(input *GetUserInput) (req *request.Request, output // API operation GetUser for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetUser func (c *IAM) GetUser(input *GetUserInput) (*GetUserOutput, error) { req, out := c.GetUserRequest(input) err := req.Send() @@ -5352,6 +5569,7 @@ const opGetUserPolicy = "GetUserPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetUserPolicy func (c *IAM) GetUserPolicyRequest(input *GetUserPolicyInput) (req *request.Request, output *GetUserPolicyOutput) { op := &request.Operation{ Name: opGetUserPolicy, @@ -5363,9 +5581,8 @@ func (c *IAM) GetUserPolicyRequest(input *GetUserPolicyInput) (req *request.Requ input = &GetUserPolicyInput{} } - req = c.newRequest(op, input, output) output = &GetUserPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5374,14 +5591,14 @@ func (c *IAM) GetUserPolicyRequest(input *GetUserPolicyInput) (req *request.Requ // Retrieves the specified inline policy document that is embedded in the specified // IAM user. // -// Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). +// Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). // You can use a URL decoding method to convert the policy back to plain JSON // text. For example, if you use Java, you can use the decode method of the // java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs // provide similar functionality. // -// An IAM user can also have managed policies attached to it. To retrieve -// a managed policy document that is attached to a user, use GetPolicy to determine +// An IAM user can also have managed policies attached to it. To retrieve a +// managed policy document that is attached to a user, use GetPolicy to determine // the policy's default version, then use GetPolicyVersion to retrieve the policy // document. // @@ -5397,14 +5614,15 @@ func (c *IAM) GetUserPolicyRequest(input *GetUserPolicyInput) (req *request.Requ // API operation GetUserPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetUserPolicy func (c *IAM) GetUserPolicy(input *GetUserPolicyInput) (*GetUserPolicyOutput, error) { req, out := c.GetUserPolicyRequest(input) err := req.Send() @@ -5437,6 +5655,7 @@ const opListAccessKeys = "ListAccessKeys" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListAccessKeys func (c *IAM) ListAccessKeysRequest(input *ListAccessKeysInput) (req *request.Request, output *ListAccessKeysOutput) { op := &request.Operation{ Name: opListAccessKeys, @@ -5454,9 +5673,8 @@ func (c *IAM) ListAccessKeysRequest(input *ListAccessKeysInput) (req *request.Re input = &ListAccessKeysInput{} } - req = c.newRequest(op, input, output) output = &ListAccessKeysOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5473,7 +5691,7 @@ func (c *IAM) ListAccessKeysRequest(input *ListAccessKeysInput) (req *request.Re // works for access keys under the AWS account, you can use this action to manage // root credentials even if the AWS account has no associated users. // -// To ensure the security of your AWS account, the secret access key is accessible +// To ensure the security of your AWS account, the secret access key is accessible // only during key and user creation. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -5484,14 +5702,15 @@ func (c *IAM) ListAccessKeysRequest(input *ListAccessKeysInput) (req *request.Re // API operation ListAccessKeys for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListAccessKeys func (c *IAM) ListAccessKeys(input *ListAccessKeysInput) (*ListAccessKeysOutput, error) { req, out := c.ListAccessKeysRequest(input) err := req.Send() @@ -5549,6 +5768,7 @@ const opListAccountAliases = "ListAccountAliases" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListAccountAliases func (c *IAM) ListAccountAliasesRequest(input *ListAccountAliasesInput) (req *request.Request, output *ListAccountAliasesOutput) { op := &request.Operation{ Name: opListAccountAliases, @@ -5566,9 +5786,8 @@ func (c *IAM) ListAccountAliasesRequest(input *ListAccountAliasesInput) (req *re input = &ListAccountAliasesInput{} } - req = c.newRequest(op, input, output) output = &ListAccountAliasesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5587,10 +5806,11 @@ func (c *IAM) ListAccountAliasesRequest(input *ListAccountAliasesInput) (req *re // API operation ListAccountAliases for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListAccountAliases func (c *IAM) ListAccountAliases(input *ListAccountAliasesInput) (*ListAccountAliasesOutput, error) { req, out := c.ListAccountAliasesRequest(input) err := req.Send() @@ -5648,6 +5868,7 @@ const opListAttachedGroupPolicies = "ListAttachedGroupPolicies" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListAttachedGroupPolicies func (c *IAM) ListAttachedGroupPoliciesRequest(input *ListAttachedGroupPoliciesInput) (req *request.Request, output *ListAttachedGroupPoliciesOutput) { op := &request.Operation{ Name: opListAttachedGroupPolicies, @@ -5665,9 +5886,8 @@ func (c *IAM) ListAttachedGroupPoliciesRequest(input *ListAttachedGroupPoliciesI input = &ListAttachedGroupPoliciesInput{} } - req = c.newRequest(op, input, output) output = &ListAttachedGroupPoliciesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5694,18 +5914,19 @@ func (c *IAM) ListAttachedGroupPoliciesRequest(input *ListAttachedGroupPoliciesI // API operation ListAttachedGroupPolicies for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListAttachedGroupPolicies func (c *IAM) ListAttachedGroupPolicies(input *ListAttachedGroupPoliciesInput) (*ListAttachedGroupPoliciesOutput, error) { req, out := c.ListAttachedGroupPoliciesRequest(input) err := req.Send() @@ -5763,6 +5984,7 @@ const opListAttachedRolePolicies = "ListAttachedRolePolicies" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListAttachedRolePolicies func (c *IAM) ListAttachedRolePoliciesRequest(input *ListAttachedRolePoliciesInput) (req *request.Request, output *ListAttachedRolePoliciesOutput) { op := &request.Operation{ Name: opListAttachedRolePolicies, @@ -5780,9 +6002,8 @@ func (c *IAM) ListAttachedRolePoliciesRequest(input *ListAttachedRolePoliciesInp input = &ListAttachedRolePoliciesInput{} } - req = c.newRequest(op, input, output) output = &ListAttachedRolePoliciesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5790,9 +6011,9 @@ func (c *IAM) ListAttachedRolePoliciesRequest(input *ListAttachedRolePoliciesInp // // Lists all managed policies that are attached to the specified IAM role. // -// An IAM role can also have inline policies embedded with it. To list the -// inline policies for a role, use the ListRolePolicies API. For information -// about policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// An IAM role can also have inline policies embedded with it. To list the inline +// policies for a role, use the ListRolePolicies API. For information about +// policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. // // You can paginate the results using the MaxItems and Marker parameters. You @@ -5809,18 +6030,19 @@ func (c *IAM) ListAttachedRolePoliciesRequest(input *ListAttachedRolePoliciesInp // API operation ListAttachedRolePolicies for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListAttachedRolePolicies func (c *IAM) ListAttachedRolePolicies(input *ListAttachedRolePoliciesInput) (*ListAttachedRolePoliciesOutput, error) { req, out := c.ListAttachedRolePoliciesRequest(input) err := req.Send() @@ -5878,6 +6100,7 @@ const opListAttachedUserPolicies = "ListAttachedUserPolicies" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListAttachedUserPolicies func (c *IAM) ListAttachedUserPoliciesRequest(input *ListAttachedUserPoliciesInput) (req *request.Request, output *ListAttachedUserPoliciesOutput) { op := &request.Operation{ Name: opListAttachedUserPolicies, @@ -5895,9 +6118,8 @@ func (c *IAM) ListAttachedUserPoliciesRequest(input *ListAttachedUserPoliciesInp input = &ListAttachedUserPoliciesInput{} } - req = c.newRequest(op, input, output) output = &ListAttachedUserPoliciesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5905,9 +6127,9 @@ func (c *IAM) ListAttachedUserPoliciesRequest(input *ListAttachedUserPoliciesInp // // Lists all managed policies that are attached to the specified IAM user. // -// An IAM user can also have inline policies embedded with it. To list the -// inline policies for a user, use the ListUserPolicies API. For information -// about policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// An IAM user can also have inline policies embedded with it. To list the inline +// policies for a user, use the ListUserPolicies API. For information about +// policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. // // You can paginate the results using the MaxItems and Marker parameters. You @@ -5924,18 +6146,19 @@ func (c *IAM) ListAttachedUserPoliciesRequest(input *ListAttachedUserPoliciesInp // API operation ListAttachedUserPolicies for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListAttachedUserPolicies func (c *IAM) ListAttachedUserPolicies(input *ListAttachedUserPoliciesInput) (*ListAttachedUserPoliciesOutput, error) { req, out := c.ListAttachedUserPoliciesRequest(input) err := req.Send() @@ -5993,6 +6216,7 @@ const opListEntitiesForPolicy = "ListEntitiesForPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListEntitiesForPolicy func (c *IAM) ListEntitiesForPolicyRequest(input *ListEntitiesForPolicyInput) (req *request.Request, output *ListEntitiesForPolicyOutput) { op := &request.Operation{ Name: opListEntitiesForPolicy, @@ -6010,9 +6234,8 @@ func (c *IAM) ListEntitiesForPolicyRequest(input *ListEntitiesForPolicyInput) (r input = &ListEntitiesForPolicyInput{} } - req = c.newRequest(op, input, output) output = &ListEntitiesForPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6021,8 +6244,8 @@ func (c *IAM) ListEntitiesForPolicyRequest(input *ListEntitiesForPolicyInput) (r // Lists all IAM users, groups, and roles that the specified managed policy // is attached to. // -// You can use the optional EntityFilter parameter to limit the results to -// a particular type of entity (users, groups, or roles). For example, to list +// You can use the optional EntityFilter parameter to limit the results to a +// particular type of entity (users, groups, or roles). For example, to list // only the roles that are attached to the specified policy, set EntityFilter // to Role. // @@ -6036,18 +6259,19 @@ func (c *IAM) ListEntitiesForPolicyRequest(input *ListEntitiesForPolicyInput) (r // API operation ListEntitiesForPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListEntitiesForPolicy func (c *IAM) ListEntitiesForPolicy(input *ListEntitiesForPolicyInput) (*ListEntitiesForPolicyOutput, error) { req, out := c.ListEntitiesForPolicyRequest(input) err := req.Send() @@ -6105,6 +6329,7 @@ const opListGroupPolicies = "ListGroupPolicies" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListGroupPolicies func (c *IAM) ListGroupPoliciesRequest(input *ListGroupPoliciesInput) (req *request.Request, output *ListGroupPoliciesOutput) { op := &request.Operation{ Name: opListGroupPolicies, @@ -6122,9 +6347,8 @@ func (c *IAM) ListGroupPoliciesRequest(input *ListGroupPoliciesInput) (req *requ input = &ListGroupPoliciesInput{} } - req = c.newRequest(op, input, output) output = &ListGroupPoliciesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6133,9 +6357,9 @@ func (c *IAM) ListGroupPoliciesRequest(input *ListGroupPoliciesInput) (req *requ // Lists the names of the inline policies that are embedded in the specified // IAM group. // -// An IAM group can also have managed policies attached to it. To list the -// managed policies that are attached to a group, use ListAttachedGroupPolicies. -// For more information about policies, see Managed Policies and Inline Policies +// An IAM group can also have managed policies attached to it. To list the managed +// policies that are attached to a group, use ListAttachedGroupPolicies. For +// more information about policies, see Managed Policies and Inline Policies // (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. // @@ -6151,14 +6375,15 @@ func (c *IAM) ListGroupPoliciesRequest(input *ListGroupPoliciesInput) (req *requ // API operation ListGroupPolicies for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListGroupPolicies func (c *IAM) ListGroupPolicies(input *ListGroupPoliciesInput) (*ListGroupPoliciesOutput, error) { req, out := c.ListGroupPoliciesRequest(input) err := req.Send() @@ -6216,6 +6441,7 @@ const opListGroups = "ListGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListGroups func (c *IAM) ListGroupsRequest(input *ListGroupsInput) (req *request.Request, output *ListGroupsOutput) { op := &request.Operation{ Name: opListGroups, @@ -6233,9 +6459,8 @@ func (c *IAM) ListGroupsRequest(input *ListGroupsInput) (req *request.Request, o input = &ListGroupsInput{} } - req = c.newRequest(op, input, output) output = &ListGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6243,7 +6468,7 @@ func (c *IAM) ListGroupsRequest(input *ListGroupsInput) (req *request.Request, o // // Lists the IAM groups that have the specified path prefix. // -// You can paginate the results using the MaxItems and Marker parameters. +// You can paginate the results using the MaxItems and Marker parameters. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -6253,10 +6478,11 @@ func (c *IAM) ListGroupsRequest(input *ListGroupsInput) (req *request.Request, o // API operation ListGroups for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListGroups func (c *IAM) ListGroups(input *ListGroupsInput) (*ListGroupsOutput, error) { req, out := c.ListGroupsRequest(input) err := req.Send() @@ -6314,6 +6540,7 @@ const opListGroupsForUser = "ListGroupsForUser" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListGroupsForUser func (c *IAM) ListGroupsForUserRequest(input *ListGroupsForUserInput) (req *request.Request, output *ListGroupsForUserOutput) { op := &request.Operation{ Name: opListGroupsForUser, @@ -6331,9 +6558,8 @@ func (c *IAM) ListGroupsForUserRequest(input *ListGroupsForUserInput) (req *requ input = &ListGroupsForUserInput{} } - req = c.newRequest(op, input, output) output = &ListGroupsForUserOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6351,14 +6577,15 @@ func (c *IAM) ListGroupsForUserRequest(input *ListGroupsForUserInput) (req *requ // API operation ListGroupsForUser for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListGroupsForUser func (c *IAM) ListGroupsForUser(input *ListGroupsForUserInput) (*ListGroupsForUserOutput, error) { req, out := c.ListGroupsForUserRequest(input) err := req.Send() @@ -6416,6 +6643,7 @@ const opListInstanceProfiles = "ListInstanceProfiles" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListInstanceProfiles func (c *IAM) ListInstanceProfilesRequest(input *ListInstanceProfilesInput) (req *request.Request, output *ListInstanceProfilesOutput) { op := &request.Operation{ Name: opListInstanceProfiles, @@ -6433,9 +6661,8 @@ func (c *IAM) ListInstanceProfilesRequest(input *ListInstanceProfilesInput) (req input = &ListInstanceProfilesInput{} } - req = c.newRequest(op, input, output) output = &ListInstanceProfilesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6455,10 +6682,11 @@ func (c *IAM) ListInstanceProfilesRequest(input *ListInstanceProfilesInput) (req // API operation ListInstanceProfiles for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListInstanceProfiles func (c *IAM) ListInstanceProfiles(input *ListInstanceProfilesInput) (*ListInstanceProfilesOutput, error) { req, out := c.ListInstanceProfilesRequest(input) err := req.Send() @@ -6516,6 +6744,7 @@ const opListInstanceProfilesForRole = "ListInstanceProfilesForRole" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListInstanceProfilesForRole func (c *IAM) ListInstanceProfilesForRoleRequest(input *ListInstanceProfilesForRoleInput) (req *request.Request, output *ListInstanceProfilesForRoleOutput) { op := &request.Operation{ Name: opListInstanceProfilesForRole, @@ -6533,9 +6762,8 @@ func (c *IAM) ListInstanceProfilesForRoleRequest(input *ListInstanceProfilesForR input = &ListInstanceProfilesForRoleInput{} } - req = c.newRequest(op, input, output) output = &ListInstanceProfilesForRoleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6555,14 +6783,15 @@ func (c *IAM) ListInstanceProfilesForRoleRequest(input *ListInstanceProfilesForR // API operation ListInstanceProfilesForRole for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListInstanceProfilesForRole func (c *IAM) ListInstanceProfilesForRole(input *ListInstanceProfilesForRoleInput) (*ListInstanceProfilesForRoleOutput, error) { req, out := c.ListInstanceProfilesForRoleRequest(input) err := req.Send() @@ -6620,6 +6849,7 @@ const opListMFADevices = "ListMFADevices" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListMFADevices func (c *IAM) ListMFADevicesRequest(input *ListMFADevicesInput) (req *request.Request, output *ListMFADevicesOutput) { op := &request.Operation{ Name: opListMFADevices, @@ -6637,9 +6867,8 @@ func (c *IAM) ListMFADevicesRequest(input *ListMFADevicesInput) (req *request.Re input = &ListMFADevicesInput{} } - req = c.newRequest(op, input, output) output = &ListMFADevicesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6660,14 +6889,15 @@ func (c *IAM) ListMFADevicesRequest(input *ListMFADevicesInput) (req *request.Re // API operation ListMFADevices for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListMFADevices func (c *IAM) ListMFADevices(input *ListMFADevicesInput) (*ListMFADevicesOutput, error) { req, out := c.ListMFADevicesRequest(input) err := req.Send() @@ -6725,6 +6955,7 @@ const opListOpenIDConnectProviders = "ListOpenIDConnectProviders" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListOpenIDConnectProviders func (c *IAM) ListOpenIDConnectProvidersRequest(input *ListOpenIDConnectProvidersInput) (req *request.Request, output *ListOpenIDConnectProvidersOutput) { op := &request.Operation{ Name: opListOpenIDConnectProviders, @@ -6736,9 +6967,8 @@ func (c *IAM) ListOpenIDConnectProvidersRequest(input *ListOpenIDConnectProvider input = &ListOpenIDConnectProvidersInput{} } - req = c.newRequest(op, input, output) output = &ListOpenIDConnectProvidersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6755,10 +6985,11 @@ func (c *IAM) ListOpenIDConnectProvidersRequest(input *ListOpenIDConnectProvider // API operation ListOpenIDConnectProviders for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListOpenIDConnectProviders func (c *IAM) ListOpenIDConnectProviders(input *ListOpenIDConnectProvidersInput) (*ListOpenIDConnectProvidersOutput, error) { req, out := c.ListOpenIDConnectProvidersRequest(input) err := req.Send() @@ -6791,6 +7022,7 @@ const opListPolicies = "ListPolicies" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListPolicies func (c *IAM) ListPoliciesRequest(input *ListPoliciesInput) (req *request.Request, output *ListPoliciesOutput) { op := &request.Operation{ Name: opListPolicies, @@ -6808,9 +7040,8 @@ func (c *IAM) ListPoliciesRequest(input *ListPoliciesInput) (req *request.Reques input = &ListPoliciesInput{} } - req = c.newRequest(op, input, output) output = &ListPoliciesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6819,10 +7050,10 @@ func (c *IAM) ListPoliciesRequest(input *ListPoliciesInput) (req *request.Reques // Lists all the managed policies that are available in your AWS account, including // your own customer-defined managed policies and all AWS managed policies. // -// You can filter the list of policies that is returned using the optional -// OnlyAttached, Scope, and PathPrefix parameters. For example, to list only -// the customer managed policies in your AWS account, set Scope to Local. To -// list only AWS managed policies, set Scope to AWS. +// You can filter the list of policies that is returned using the optional OnlyAttached, +// Scope, and PathPrefix parameters. For example, to list only the customer +// managed policies in your AWS account, set Scope to Local. To list only AWS +// managed policies, set Scope to AWS. // // You can paginate the results using the MaxItems and Marker parameters. // @@ -6838,10 +7069,11 @@ func (c *IAM) ListPoliciesRequest(input *ListPoliciesInput) (req *request.Reques // API operation ListPolicies for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListPolicies func (c *IAM) ListPolicies(input *ListPoliciesInput) (*ListPoliciesOutput, error) { req, out := c.ListPoliciesRequest(input) err := req.Send() @@ -6899,6 +7131,7 @@ const opListPolicyVersions = "ListPolicyVersions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListPolicyVersions func (c *IAM) ListPolicyVersionsRequest(input *ListPolicyVersionsInput) (req *request.Request, output *ListPolicyVersionsOutput) { op := &request.Operation{ Name: opListPolicyVersions, @@ -6916,9 +7149,8 @@ func (c *IAM) ListPolicyVersionsRequest(input *ListPolicyVersionsInput) (req *re input = &ListPolicyVersionsInput{} } - req = c.newRequest(op, input, output) output = &ListPolicyVersionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6939,18 +7171,19 @@ func (c *IAM) ListPolicyVersionsRequest(input *ListPolicyVersionsInput) (req *re // API operation ListPolicyVersions for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListPolicyVersions func (c *IAM) ListPolicyVersions(input *ListPolicyVersionsInput) (*ListPolicyVersionsOutput, error) { req, out := c.ListPolicyVersionsRequest(input) err := req.Send() @@ -7008,6 +7241,7 @@ const opListRolePolicies = "ListRolePolicies" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListRolePolicies func (c *IAM) ListRolePoliciesRequest(input *ListRolePoliciesInput) (req *request.Request, output *ListRolePoliciesOutput) { op := &request.Operation{ Name: opListRolePolicies, @@ -7025,9 +7259,8 @@ func (c *IAM) ListRolePoliciesRequest(input *ListRolePoliciesInput) (req *reques input = &ListRolePoliciesInput{} } - req = c.newRequest(op, input, output) output = &ListRolePoliciesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7053,14 +7286,15 @@ func (c *IAM) ListRolePoliciesRequest(input *ListRolePoliciesInput) (req *reques // API operation ListRolePolicies for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListRolePolicies func (c *IAM) ListRolePolicies(input *ListRolePoliciesInput) (*ListRolePoliciesOutput, error) { req, out := c.ListRolePoliciesRequest(input) err := req.Send() @@ -7118,6 +7352,7 @@ const opListRoles = "ListRoles" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListRoles func (c *IAM) ListRolesRequest(input *ListRolesInput) (req *request.Request, output *ListRolesOutput) { op := &request.Operation{ Name: opListRoles, @@ -7135,9 +7370,8 @@ func (c *IAM) ListRolesRequest(input *ListRolesInput) (req *request.Request, out input = &ListRolesInput{} } - req = c.newRequest(op, input, output) output = &ListRolesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7157,10 +7391,11 @@ func (c *IAM) ListRolesRequest(input *ListRolesInput) (req *request.Request, out // API operation ListRoles for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListRoles func (c *IAM) ListRoles(input *ListRolesInput) (*ListRolesOutput, error) { req, out := c.ListRolesRequest(input) err := req.Send() @@ -7218,6 +7453,7 @@ const opListSAMLProviders = "ListSAMLProviders" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListSAMLProviders func (c *IAM) ListSAMLProvidersRequest(input *ListSAMLProvidersInput) (req *request.Request, output *ListSAMLProvidersOutput) { op := &request.Operation{ Name: opListSAMLProviders, @@ -7229,9 +7465,8 @@ func (c *IAM) ListSAMLProvidersRequest(input *ListSAMLProvidersInput) (req *requ input = &ListSAMLProvidersInput{} } - req = c.newRequest(op, input, output) output = &ListSAMLProvidersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7239,7 +7474,7 @@ func (c *IAM) ListSAMLProvidersRequest(input *ListSAMLProvidersInput) (req *requ // // Lists the SAML provider resource objects defined in IAM in the account. // -// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -7249,10 +7484,11 @@ func (c *IAM) ListSAMLProvidersRequest(input *ListSAMLProvidersInput) (req *requ // API operation ListSAMLProviders for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListSAMLProviders func (c *IAM) ListSAMLProviders(input *ListSAMLProvidersInput) (*ListSAMLProvidersOutput, error) { req, out := c.ListSAMLProvidersRequest(input) err := req.Send() @@ -7285,6 +7521,7 @@ const opListSSHPublicKeys = "ListSSHPublicKeys" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListSSHPublicKeys func (c *IAM) ListSSHPublicKeysRequest(input *ListSSHPublicKeysInput) (req *request.Request, output *ListSSHPublicKeysOutput) { op := &request.Operation{ Name: opListSSHPublicKeys, @@ -7302,9 +7539,8 @@ func (c *IAM) ListSSHPublicKeysRequest(input *ListSSHPublicKeysInput) (req *requ input = &ListSSHPublicKeysInput{} } - req = c.newRequest(op, input, output) output = &ListSSHPublicKeysOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7330,10 +7566,11 @@ func (c *IAM) ListSSHPublicKeysRequest(input *ListSSHPublicKeysInput) (req *requ // API operation ListSSHPublicKeys for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListSSHPublicKeys func (c *IAM) ListSSHPublicKeys(input *ListSSHPublicKeysInput) (*ListSSHPublicKeysOutput, error) { req, out := c.ListSSHPublicKeysRequest(input) err := req.Send() @@ -7391,6 +7628,7 @@ const opListServerCertificates = "ListServerCertificates" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListServerCertificates func (c *IAM) ListServerCertificatesRequest(input *ListServerCertificatesInput) (req *request.Request, output *ListServerCertificatesOutput) { op := &request.Operation{ Name: opListServerCertificates, @@ -7408,9 +7646,8 @@ func (c *IAM) ListServerCertificatesRequest(input *ListServerCertificatesInput) input = &ListServerCertificatesInput{} } - req = c.newRequest(op, input, output) output = &ListServerCertificatesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7419,7 +7656,7 @@ func (c *IAM) ListServerCertificatesRequest(input *ListServerCertificatesInput) // Lists the server certificates stored in IAM that have the specified path // prefix. If none exist, the action returns an empty list. // -// You can paginate the results using the MaxItems and Marker parameters. +// You can paginate the results using the MaxItems and Marker parameters. // // For more information about working with server certificates, including a // list of AWS services that can use the server certificates that you manage @@ -7434,10 +7671,11 @@ func (c *IAM) ListServerCertificatesRequest(input *ListServerCertificatesInput) // API operation ListServerCertificates for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListServerCertificates func (c *IAM) ListServerCertificates(input *ListServerCertificatesInput) (*ListServerCertificatesOutput, error) { req, out := c.ListServerCertificatesRequest(input) err := req.Send() @@ -7469,6 +7707,81 @@ func (c *IAM) ListServerCertificatesPages(input *ListServerCertificatesInput, fn }) } +const opListServiceSpecificCredentials = "ListServiceSpecificCredentials" + +// ListServiceSpecificCredentialsRequest generates a "aws/request.Request" representing the +// client's request for the ListServiceSpecificCredentials operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListServiceSpecificCredentials for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListServiceSpecificCredentials method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListServiceSpecificCredentialsRequest method. +// req, resp := client.ListServiceSpecificCredentialsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListServiceSpecificCredentials +func (c *IAM) ListServiceSpecificCredentialsRequest(input *ListServiceSpecificCredentialsInput) (req *request.Request, output *ListServiceSpecificCredentialsOutput) { + op := &request.Operation{ + Name: opListServiceSpecificCredentials, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListServiceSpecificCredentialsInput{} + } + + output = &ListServiceSpecificCredentialsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListServiceSpecificCredentials API operation for AWS Identity and Access Management. +// +// Returns information about the service-specific credentials associated with +// the specified IAM user. If there are none, the action returns an empty list. +// The service-specific credentials returned by this action are used only for +// authenticating the IAM user to a specific service. For more information about +// using service-specific credentials to authenticate to an AWS service, see +// Set Up service-specific credentials (http://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-gc.html) +// in the AWS CodeCommit User Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListServiceSpecificCredentials for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNoSuchEntityException "NoSuchEntity" +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ErrCodeServiceNotSupportedException "NotSupportedService" +// The specified service does not support service-specific credentials. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListServiceSpecificCredentials +func (c *IAM) ListServiceSpecificCredentials(input *ListServiceSpecificCredentialsInput) (*ListServiceSpecificCredentialsOutput, error) { + req, out := c.ListServiceSpecificCredentialsRequest(input) + err := req.Send() + return out, err +} + const opListSigningCertificates = "ListSigningCertificates" // ListSigningCertificatesRequest generates a "aws/request.Request" representing the @@ -7495,6 +7808,7 @@ const opListSigningCertificates = "ListSigningCertificates" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListSigningCertificates func (c *IAM) ListSigningCertificatesRequest(input *ListSigningCertificatesInput) (req *request.Request, output *ListSigningCertificatesOutput) { op := &request.Operation{ Name: opListSigningCertificates, @@ -7512,9 +7826,8 @@ func (c *IAM) ListSigningCertificatesRequest(input *ListSigningCertificatesInput input = &ListSigningCertificatesInput{} } - req = c.newRequest(op, input, output) output = &ListSigningCertificatesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7540,14 +7853,15 @@ func (c *IAM) ListSigningCertificatesRequest(input *ListSigningCertificatesInput // API operation ListSigningCertificates for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListSigningCertificates func (c *IAM) ListSigningCertificates(input *ListSigningCertificatesInput) (*ListSigningCertificatesOutput, error) { req, out := c.ListSigningCertificatesRequest(input) err := req.Send() @@ -7605,6 +7919,7 @@ const opListUserPolicies = "ListUserPolicies" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListUserPolicies func (c *IAM) ListUserPoliciesRequest(input *ListUserPoliciesInput) (req *request.Request, output *ListUserPoliciesOutput) { op := &request.Operation{ Name: opListUserPolicies, @@ -7622,9 +7937,8 @@ func (c *IAM) ListUserPoliciesRequest(input *ListUserPoliciesInput) (req *reques input = &ListUserPoliciesInput{} } - req = c.newRequest(op, input, output) output = &ListUserPoliciesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7649,14 +7963,15 @@ func (c *IAM) ListUserPoliciesRequest(input *ListUserPoliciesInput) (req *reques // API operation ListUserPolicies for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListUserPolicies func (c *IAM) ListUserPolicies(input *ListUserPoliciesInput) (*ListUserPoliciesOutput, error) { req, out := c.ListUserPoliciesRequest(input) err := req.Send() @@ -7714,6 +8029,7 @@ const opListUsers = "ListUsers" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListUsers func (c *IAM) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput) { op := &request.Operation{ Name: opListUsers, @@ -7731,9 +8047,8 @@ func (c *IAM) ListUsersRequest(input *ListUsersInput) (req *request.Request, out input = &ListUsersInput{} } - req = c.newRequest(op, input, output) output = &ListUsersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7753,10 +8068,11 @@ func (c *IAM) ListUsersRequest(input *ListUsersInput) (req *request.Request, out // API operation ListUsers for usage and error information. // // Returned Error Codes: -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListUsers func (c *IAM) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { req, out := c.ListUsersRequest(input) err := req.Send() @@ -7814,6 +8130,7 @@ const opListVirtualMFADevices = "ListVirtualMFADevices" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListVirtualMFADevices func (c *IAM) ListVirtualMFADevicesRequest(input *ListVirtualMFADevicesInput) (req *request.Request, output *ListVirtualMFADevicesOutput) { op := &request.Operation{ Name: opListVirtualMFADevices, @@ -7831,9 +8148,8 @@ func (c *IAM) ListVirtualMFADevicesRequest(input *ListVirtualMFADevicesInput) (r input = &ListVirtualMFADevicesInput{} } - req = c.newRequest(op, input, output) output = &ListVirtualMFADevicesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7852,6 +8168,7 @@ func (c *IAM) ListVirtualMFADevicesRequest(input *ListVirtualMFADevicesInput) (r // // See the AWS API reference guide for AWS Identity and Access Management's // API operation ListVirtualMFADevices for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListVirtualMFADevices func (c *IAM) ListVirtualMFADevices(input *ListVirtualMFADevicesInput) (*ListVirtualMFADevicesOutput, error) { req, out := c.ListVirtualMFADevicesRequest(input) err := req.Send() @@ -7909,6 +8226,7 @@ const opPutGroupPolicy = "PutGroupPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/PutGroupPolicy func (c *IAM) PutGroupPolicyRequest(input *PutGroupPolicyInput) (req *request.Request, output *PutGroupPolicyOutput) { op := &request.Operation{ Name: opPutGroupPolicy, @@ -7920,11 +8238,10 @@ func (c *IAM) PutGroupPolicyRequest(input *PutGroupPolicyInput) (req *request.Re input = &PutGroupPolicyInput{} } + output = &PutGroupPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutGroupPolicyOutput{} - req.Data = output return } @@ -7943,9 +8260,9 @@ func (c *IAM) PutGroupPolicyRequest(input *PutGroupPolicyInput) (req *request.Re // embed in a group, see Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. // -// Because policy documents can be large, you should use POST rather than -// GET when calling PutGroupPolicy. For general information about using the -// Query API with IAM, go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) +// Because policy documents can be large, you should use POST rather than GET +// when calling PutGroupPolicy. For general information about using the Query +// API with IAM, go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) // in the IAM User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -7956,22 +8273,23 @@ func (c *IAM) PutGroupPolicyRequest(input *PutGroupPolicyInput) (req *request.Re // API operation PutGroupPolicy for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/PutGroupPolicy func (c *IAM) PutGroupPolicy(input *PutGroupPolicyInput) (*PutGroupPolicyOutput, error) { req, out := c.PutGroupPolicyRequest(input) err := req.Send() @@ -8004,6 +8322,7 @@ const opPutRolePolicy = "PutRolePolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/PutRolePolicy func (c *IAM) PutRolePolicyRequest(input *PutRolePolicyInput) (req *request.Request, output *PutRolePolicyOutput) { op := &request.Operation{ Name: opPutRolePolicy, @@ -8015,11 +8334,10 @@ func (c *IAM) PutRolePolicyRequest(input *PutRolePolicyInput) (req *request.Requ input = &PutRolePolicyInput{} } + output = &PutRolePolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutRolePolicyOutput{} - req.Data = output return } @@ -8028,12 +8346,11 @@ func (c *IAM) PutRolePolicyRequest(input *PutRolePolicyInput) (req *request.Requ // Adds or updates an inline policy document that is embedded in the specified // IAM role. // -// When you embed an inline policy in a role, the inline policy is used as -// part of the role's access (permissions) policy. The role's trust policy is -// created at the same time as the role, using CreateRole. You can update a -// role's trust policy using UpdateAssumeRolePolicy. For more information about -// IAM roles, go to Using Roles to Delegate Permissions and Federate Identities -// (http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). +// When you embed an inline policy in a role, the inline policy is used as part +// of the role's access (permissions) policy. The role's trust policy is created +// at the same time as the role, using CreateRole. You can update a role's trust +// policy using UpdateAssumeRolePolicy. For more information about IAM roles, +// go to Using Roles to Delegate Permissions and Federate Identities (http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). // // A role can also have a managed policy attached to it. To attach a managed // policy to a role, use AttachRolePolicy. To create a new managed policy, use @@ -8045,8 +8362,8 @@ func (c *IAM) PutRolePolicyRequest(input *PutRolePolicyInput) (req *request.Requ // embed with a role, see Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. // -// Because policy documents can be large, you should use POST rather than -// GET when calling PutRolePolicy. For general information about using the Query +// Because policy documents can be large, you should use POST rather than GET +// when calling PutRolePolicy. For general information about using the Query // API with IAM, go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) // in the IAM User Guide. // @@ -8058,22 +8375,23 @@ func (c *IAM) PutRolePolicyRequest(input *PutRolePolicyInput) (req *request.Requ // API operation PutRolePolicy for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/PutRolePolicy func (c *IAM) PutRolePolicy(input *PutRolePolicyInput) (*PutRolePolicyOutput, error) { req, out := c.PutRolePolicyRequest(input) err := req.Send() @@ -8106,6 +8424,7 @@ const opPutUserPolicy = "PutUserPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/PutUserPolicy func (c *IAM) PutUserPolicyRequest(input *PutUserPolicyInput) (req *request.Request, output *PutUserPolicyOutput) { op := &request.Operation{ Name: opPutUserPolicy, @@ -8117,11 +8436,10 @@ func (c *IAM) PutUserPolicyRequest(input *PutUserPolicyInput) (req *request.Requ input = &PutUserPolicyInput{} } + output = &PutUserPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutUserPolicyOutput{} - req.Data = output return } @@ -8140,8 +8458,8 @@ func (c *IAM) PutUserPolicyRequest(input *PutUserPolicyInput) (req *request.Requ // embed in a user, see Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. // -// Because policy documents can be large, you should use POST rather than -// GET when calling PutUserPolicy. For general information about using the Query +// Because policy documents can be large, you should use POST rather than GET +// when calling PutUserPolicy. For general information about using the Query // API with IAM, go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) // in the IAM User Guide. // @@ -8153,22 +8471,23 @@ func (c *IAM) PutUserPolicyRequest(input *PutUserPolicyInput) (req *request.Requ // API operation PutUserPolicy for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/PutUserPolicy func (c *IAM) PutUserPolicy(input *PutUserPolicyInput) (*PutUserPolicyOutput, error) { req, out := c.PutUserPolicyRequest(input) err := req.Send() @@ -8201,6 +8520,7 @@ const opRemoveClientIDFromOpenIDConnectProvider = "RemoveClientIDFromOpenIDConne // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/RemoveClientIDFromOpenIDConnectProvider func (c *IAM) RemoveClientIDFromOpenIDConnectProviderRequest(input *RemoveClientIDFromOpenIDConnectProviderInput) (req *request.Request, output *RemoveClientIDFromOpenIDConnectProviderOutput) { op := &request.Operation{ Name: opRemoveClientIDFromOpenIDConnectProvider, @@ -8212,11 +8532,10 @@ func (c *IAM) RemoveClientIDFromOpenIDConnectProviderRequest(input *RemoveClient input = &RemoveClientIDFromOpenIDConnectProviderInput{} } + output = &RemoveClientIDFromOpenIDConnectProviderOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RemoveClientIDFromOpenIDConnectProviderOutput{} - req.Data = output return } @@ -8237,18 +8556,19 @@ func (c *IAM) RemoveClientIDFromOpenIDConnectProviderRequest(input *RemoveClient // API operation RemoveClientIDFromOpenIDConnectProvider for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/RemoveClientIDFromOpenIDConnectProvider func (c *IAM) RemoveClientIDFromOpenIDConnectProvider(input *RemoveClientIDFromOpenIDConnectProviderInput) (*RemoveClientIDFromOpenIDConnectProviderOutput, error) { req, out := c.RemoveClientIDFromOpenIDConnectProviderRequest(input) err := req.Send() @@ -8281,6 +8601,7 @@ const opRemoveRoleFromInstanceProfile = "RemoveRoleFromInstanceProfile" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/RemoveRoleFromInstanceProfile func (c *IAM) RemoveRoleFromInstanceProfileRequest(input *RemoveRoleFromInstanceProfileInput) (req *request.Request, output *RemoveRoleFromInstanceProfileOutput) { op := &request.Operation{ Name: opRemoveRoleFromInstanceProfile, @@ -8292,11 +8613,10 @@ func (c *IAM) RemoveRoleFromInstanceProfileRequest(input *RemoveRoleFromInstance input = &RemoveRoleFromInstanceProfileInput{} } + output = &RemoveRoleFromInstanceProfileOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RemoveRoleFromInstanceProfileOutput{} - req.Data = output return } @@ -8304,12 +8624,12 @@ func (c *IAM) RemoveRoleFromInstanceProfileRequest(input *RemoveRoleFromInstance // // Removes the specified IAM role from the specified EC2 instance profile. // -// Make sure you do not have any Amazon EC2 instances running with the role +// Make sure you do not have any Amazon EC2 instances running with the role // you are about to remove from the instance profile. Removing a role from an // instance profile that is associated with a running instance break any applications // running on the instance. // -// For more information about IAM roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). +// For more information about IAM roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). // For more information about instance profiles, go to About Instance Profiles // (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). // @@ -8321,18 +8641,19 @@ func (c *IAM) RemoveRoleFromInstanceProfileRequest(input *RemoveRoleFromInstance // API operation RemoveRoleFromInstanceProfile for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/RemoveRoleFromInstanceProfile func (c *IAM) RemoveRoleFromInstanceProfile(input *RemoveRoleFromInstanceProfileInput) (*RemoveRoleFromInstanceProfileOutput, error) { req, out := c.RemoveRoleFromInstanceProfileRequest(input) err := req.Send() @@ -8365,6 +8686,7 @@ const opRemoveUserFromGroup = "RemoveUserFromGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/RemoveUserFromGroup func (c *IAM) RemoveUserFromGroupRequest(input *RemoveUserFromGroupInput) (req *request.Request, output *RemoveUserFromGroupOutput) { op := &request.Operation{ Name: opRemoveUserFromGroup, @@ -8376,11 +8698,10 @@ func (c *IAM) RemoveUserFromGroupRequest(input *RemoveUserFromGroupInput) (req * input = &RemoveUserFromGroupInput{} } + output = &RemoveUserFromGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RemoveUserFromGroupOutput{} - req.Data = output return } @@ -8396,24 +8717,94 @@ func (c *IAM) RemoveUserFromGroupRequest(input *RemoveUserFromGroupInput) (req * // API operation RemoveUserFromGroup for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/RemoveUserFromGroup func (c *IAM) RemoveUserFromGroup(input *RemoveUserFromGroupInput) (*RemoveUserFromGroupOutput, error) { req, out := c.RemoveUserFromGroupRequest(input) err := req.Send() return out, err } +const opResetServiceSpecificCredential = "ResetServiceSpecificCredential" + +// ResetServiceSpecificCredentialRequest generates a "aws/request.Request" representing the +// client's request for the ResetServiceSpecificCredential operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ResetServiceSpecificCredential for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ResetServiceSpecificCredential method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ResetServiceSpecificCredentialRequest method. +// req, resp := client.ResetServiceSpecificCredentialRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ResetServiceSpecificCredential +func (c *IAM) ResetServiceSpecificCredentialRequest(input *ResetServiceSpecificCredentialInput) (req *request.Request, output *ResetServiceSpecificCredentialOutput) { + op := &request.Operation{ + Name: opResetServiceSpecificCredential, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ResetServiceSpecificCredentialInput{} + } + + output = &ResetServiceSpecificCredentialOutput{} + req = c.newRequest(op, input, output) + return +} + +// ResetServiceSpecificCredential API operation for AWS Identity and Access Management. +// +// Resets the password for a service-specific credential. The new password is +// AWS generated and cryptographically strong. It cannot be configured by the +// user. Resetting the password immediately invalidates the previous password +// associated with this user. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ResetServiceSpecificCredential for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNoSuchEntityException "NoSuchEntity" +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ResetServiceSpecificCredential +func (c *IAM) ResetServiceSpecificCredential(input *ResetServiceSpecificCredentialInput) (*ResetServiceSpecificCredentialOutput, error) { + req, out := c.ResetServiceSpecificCredentialRequest(input) + err := req.Send() + return out, err +} + const opResyncMFADevice = "ResyncMFADevice" // ResyncMFADeviceRequest generates a "aws/request.Request" representing the @@ -8440,6 +8831,7 @@ const opResyncMFADevice = "ResyncMFADevice" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ResyncMFADevice func (c *IAM) ResyncMFADeviceRequest(input *ResyncMFADeviceInput) (req *request.Request, output *ResyncMFADeviceOutput) { op := &request.Operation{ Name: opResyncMFADevice, @@ -8451,11 +8843,10 @@ func (c *IAM) ResyncMFADeviceRequest(input *ResyncMFADeviceInput) (req *request. input = &ResyncMFADeviceInput{} } + output = &ResyncMFADeviceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ResyncMFADeviceOutput{} - req.Data = output return } @@ -8476,22 +8867,23 @@ func (c *IAM) ResyncMFADeviceRequest(input *ResyncMFADeviceInput) (req *request. // API operation ResyncMFADevice for usage and error information. // // Returned Error Codes: -// * InvalidAuthenticationCode +// * ErrCodeInvalidAuthenticationCodeException "InvalidAuthenticationCode" // The request was rejected because the authentication code was not recognized. // The error message describes the specific error. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ResyncMFADevice func (c *IAM) ResyncMFADevice(input *ResyncMFADeviceInput) (*ResyncMFADeviceOutput, error) { req, out := c.ResyncMFADeviceRequest(input) err := req.Send() @@ -8524,6 +8916,7 @@ const opSetDefaultPolicyVersion = "SetDefaultPolicyVersion" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SetDefaultPolicyVersion func (c *IAM) SetDefaultPolicyVersionRequest(input *SetDefaultPolicyVersionInput) (req *request.Request, output *SetDefaultPolicyVersionOutput) { op := &request.Operation{ Name: opSetDefaultPolicyVersion, @@ -8535,11 +8928,10 @@ func (c *IAM) SetDefaultPolicyVersionRequest(input *SetDefaultPolicyVersionInput input = &SetDefaultPolicyVersionInput{} } + output = &SetDefaultPolicyVersionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetDefaultPolicyVersionOutput{} - req.Data = output return } @@ -8552,8 +8944,8 @@ func (c *IAM) SetDefaultPolicyVersionRequest(input *SetDefaultPolicyVersionInput // to. To list the users, groups, and roles that the policy is attached to, // use the ListEntitiesForPolicy API. // -// For information about managed policies, see Managed Policies and Inline -// Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// For information about managed policies, see Managed Policies and Inline Policies +// (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -8564,22 +8956,23 @@ func (c *IAM) SetDefaultPolicyVersionRequest(input *SetDefaultPolicyVersionInput // API operation SetDefaultPolicyVersion for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SetDefaultPolicyVersion func (c *IAM) SetDefaultPolicyVersion(input *SetDefaultPolicyVersionInput) (*SetDefaultPolicyVersionOutput, error) { req, out := c.SetDefaultPolicyVersionRequest(input) err := req.Send() @@ -8612,6 +9005,7 @@ const opSimulateCustomPolicy = "SimulateCustomPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SimulateCustomPolicy func (c *IAM) SimulateCustomPolicyRequest(input *SimulateCustomPolicyInput) (req *request.Request, output *SimulatePolicyResponse) { op := &request.Operation{ Name: opSimulateCustomPolicy, @@ -8629,9 +9023,8 @@ func (c *IAM) SimulateCustomPolicyRequest(input *SimulateCustomPolicyInput) (req input = &SimulateCustomPolicyInput{} } - req = c.newRequest(op, input, output) output = &SimulatePolicyResponse{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -8663,14 +9056,15 @@ func (c *IAM) SimulateCustomPolicyRequest(input *SimulateCustomPolicyInput) (req // API operation SimulateCustomPolicy for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * PolicyEvaluation +// * ErrCodePolicyEvaluationException "PolicyEvaluation" // The request failed because a provided policy could not be successfully evaluated. // An additional detail message indicates the source of the failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SimulateCustomPolicy func (c *IAM) SimulateCustomPolicy(input *SimulateCustomPolicyInput) (*SimulatePolicyResponse, error) { req, out := c.SimulateCustomPolicyRequest(input) err := req.Send() @@ -8728,6 +9122,7 @@ const opSimulatePrincipalPolicy = "SimulatePrincipalPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SimulatePrincipalPolicy func (c *IAM) SimulatePrincipalPolicyRequest(input *SimulatePrincipalPolicyInput) (req *request.Request, output *SimulatePolicyResponse) { op := &request.Operation{ Name: opSimulatePrincipalPolicy, @@ -8745,9 +9140,8 @@ func (c *IAM) SimulatePrincipalPolicyRequest(input *SimulatePrincipalPolicyInput input = &SimulatePrincipalPolicyInput{} } - req = c.newRequest(op, input, output) output = &SimulatePolicyResponse{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -8769,7 +9163,7 @@ func (c *IAM) SimulatePrincipalPolicyRequest(input *SimulatePrincipalPolicyInput // The simulation does not perform the API actions, it only checks the authorization // to determine if the simulated policies allow or deny the actions. // -// Note: This API discloses information about the permissions granted to other +// Note: This API discloses information about the permissions granted to other // users. If you do not want users to see other user's permissions, then consider // allowing them to use SimulateCustomPolicy instead. // @@ -8789,18 +9183,19 @@ func (c *IAM) SimulatePrincipalPolicyRequest(input *SimulatePrincipalPolicyInput // API operation SimulatePrincipalPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * PolicyEvaluation +// * ErrCodePolicyEvaluationException "PolicyEvaluation" // The request failed because a provided policy could not be successfully evaluated. // An additional detail message indicates the source of the failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SimulatePrincipalPolicy func (c *IAM) SimulatePrincipalPolicy(input *SimulatePrincipalPolicyInput) (*SimulatePolicyResponse, error) { req, out := c.SimulatePrincipalPolicyRequest(input) err := req.Send() @@ -8858,6 +9253,7 @@ const opUpdateAccessKey = "UpdateAccessKey" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateAccessKey func (c *IAM) UpdateAccessKeyRequest(input *UpdateAccessKeyInput) (req *request.Request, output *UpdateAccessKeyOutput) { op := &request.Operation{ Name: opUpdateAccessKey, @@ -8869,11 +9265,10 @@ func (c *IAM) UpdateAccessKeyRequest(input *UpdateAccessKeyInput) (req *request. input = &UpdateAccessKeyInput{} } + output = &UpdateAccessKeyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateAccessKeyOutput{} - req.Data = output return } @@ -8888,8 +9283,7 @@ func (c *IAM) UpdateAccessKeyRequest(input *UpdateAccessKeyInput) (req *request. // works for access keys under the AWS account, you can use this action to manage // root credentials even if the AWS account has no associated users. // -// For information about rotating keys, see Managing Keys and Certificates -// (http://docs.aws.amazon.com/IAM/latest/UserGuide/ManagingCredentials.html) +// For information about rotating keys, see Managing Keys and Certificates (http://docs.aws.amazon.com/IAM/latest/UserGuide/ManagingCredentials.html) // in the IAM User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -8900,18 +9294,19 @@ func (c *IAM) UpdateAccessKeyRequest(input *UpdateAccessKeyInput) (req *request. // API operation UpdateAccessKey for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateAccessKey func (c *IAM) UpdateAccessKey(input *UpdateAccessKeyInput) (*UpdateAccessKeyOutput, error) { req, out := c.UpdateAccessKeyRequest(input) err := req.Send() @@ -8944,6 +9339,7 @@ const opUpdateAccountPasswordPolicy = "UpdateAccountPasswordPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateAccountPasswordPolicy func (c *IAM) UpdateAccountPasswordPolicyRequest(input *UpdateAccountPasswordPolicyInput) (req *request.Request, output *UpdateAccountPasswordPolicyOutput) { op := &request.Operation{ Name: opUpdateAccountPasswordPolicy, @@ -8955,11 +9351,10 @@ func (c *IAM) UpdateAccountPasswordPolicyRequest(input *UpdateAccountPasswordPol input = &UpdateAccountPasswordPolicyInput{} } + output = &UpdateAccountPasswordPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateAccountPasswordPolicyOutput{} - req.Data = output return } @@ -8967,13 +9362,13 @@ func (c *IAM) UpdateAccountPasswordPolicyRequest(input *UpdateAccountPasswordPol // // Updates the password policy settings for the AWS account. // -// This action does not support partial updates. No parameters are required, +// This action does not support partial updates. No parameters are required, // but if you do not specify a parameter, that parameter's value reverts to // its default value. See the Request Parameters section for each parameter's // default value. // -// For more information about using a password policy, see Managing an IAM -// Password Policy (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingPasswordPolicies.html) +// For more information about using a password policy, see Managing an IAM Password +// Policy (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingPasswordPolicies.html) // in the IAM User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -8984,22 +9379,23 @@ func (c *IAM) UpdateAccountPasswordPolicyRequest(input *UpdateAccountPasswordPol // API operation UpdateAccountPasswordPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateAccountPasswordPolicy func (c *IAM) UpdateAccountPasswordPolicy(input *UpdateAccountPasswordPolicyInput) (*UpdateAccountPasswordPolicyOutput, error) { req, out := c.UpdateAccountPasswordPolicyRequest(input) err := req.Send() @@ -9032,6 +9428,7 @@ const opUpdateAssumeRolePolicy = "UpdateAssumeRolePolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateAssumeRolePolicy func (c *IAM) UpdateAssumeRolePolicyRequest(input *UpdateAssumeRolePolicyInput) (req *request.Request, output *UpdateAssumeRolePolicyOutput) { op := &request.Operation{ Name: opUpdateAssumeRolePolicy, @@ -9043,11 +9440,10 @@ func (c *IAM) UpdateAssumeRolePolicyRequest(input *UpdateAssumeRolePolicyInput) input = &UpdateAssumeRolePolicyInput{} } + output = &UpdateAssumeRolePolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateAssumeRolePolicyOutput{} - req.Data = output return } @@ -9066,22 +9462,23 @@ func (c *IAM) UpdateAssumeRolePolicyRequest(input *UpdateAssumeRolePolicyInput) // API operation UpdateAssumeRolePolicy for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateAssumeRolePolicy func (c *IAM) UpdateAssumeRolePolicy(input *UpdateAssumeRolePolicyInput) (*UpdateAssumeRolePolicyOutput, error) { req, out := c.UpdateAssumeRolePolicyRequest(input) err := req.Send() @@ -9114,6 +9511,7 @@ const opUpdateGroup = "UpdateGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateGroup func (c *IAM) UpdateGroupRequest(input *UpdateGroupInput) (req *request.Request, output *UpdateGroupOutput) { op := &request.Operation{ Name: opUpdateGroup, @@ -9125,11 +9523,10 @@ func (c *IAM) UpdateGroupRequest(input *UpdateGroupInput) (req *request.Request, input = &UpdateGroupInput{} } + output = &UpdateGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateGroupOutput{} - req.Data = output return } @@ -9137,11 +9534,11 @@ func (c *IAM) UpdateGroupRequest(input *UpdateGroupInput) (req *request.Request, // // Updates the name and/or the path of the specified IAM group. // -// You should understand the implications of changing a group's path or name. +// You should understand the implications of changing a group's path or name. // For more information, see Renaming Users and Groups (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_WorkingWithGroupsAndUsers.html) // in the IAM User Guide. // -// To change an IAM group name the requester must have appropriate permissions +// To change an IAM group name the requester must have appropriate permissions // on both the source object and the target object. For example, to change "Managers" // to "MGRs", the entity making the request must have permission on both "Managers" // and "MGRs", or must have permission on all (*). For more information about @@ -9155,22 +9552,23 @@ func (c *IAM) UpdateGroupRequest(input *UpdateGroupInput) (req *request.Request, // API operation UpdateGroup for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateGroup func (c *IAM) UpdateGroup(input *UpdateGroupInput) (*UpdateGroupOutput, error) { req, out := c.UpdateGroupRequest(input) err := req.Send() @@ -9203,6 +9601,7 @@ const opUpdateLoginProfile = "UpdateLoginProfile" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateLoginProfile func (c *IAM) UpdateLoginProfileRequest(input *UpdateLoginProfileInput) (req *request.Request, output *UpdateLoginProfileOutput) { op := &request.Operation{ Name: opUpdateLoginProfile, @@ -9214,11 +9613,10 @@ func (c *IAM) UpdateLoginProfileRequest(input *UpdateLoginProfileInput) (req *re input = &UpdateLoginProfileInput{} } + output = &UpdateLoginProfileOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateLoginProfileOutput{} - req.Data = output return } @@ -9226,8 +9624,8 @@ func (c *IAM) UpdateLoginProfileRequest(input *UpdateLoginProfileInput) (req *re // // Changes the password for the specified IAM user. // -// IAM users can change their own passwords by calling ChangePassword. For -// more information about modifying passwords, see Managing Passwords (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingLogins.html) +// IAM users can change their own passwords by calling ChangePassword. For more +// information about modifying passwords, see Managing Passwords (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingLogins.html) // in the IAM User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -9238,28 +9636,29 @@ func (c *IAM) UpdateLoginProfileRequest(input *UpdateLoginProfileInput) (req *re // API operation UpdateLoginProfile for usage and error information. // // Returned Error Codes: -// * EntityTemporarilyUnmodifiable +// * ErrCodeEntityTemporarilyUnmodifiableException "EntityTemporarilyUnmodifiable" // The request was rejected because it referenced an entity that is temporarily // unmodifiable, such as a user name that was deleted and then recreated. The // error indicates that the request is likely to succeed if you try again after // waiting several minutes. The error message describes the entity. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * PasswordPolicyViolation +// * ErrCodePasswordPolicyViolationException "PasswordPolicyViolation" // The request was rejected because the provided password did not meet the requirements // imposed by the account password policy. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateLoginProfile func (c *IAM) UpdateLoginProfile(input *UpdateLoginProfileInput) (*UpdateLoginProfileOutput, error) { req, out := c.UpdateLoginProfileRequest(input) err := req.Send() @@ -9292,6 +9691,7 @@ const opUpdateOpenIDConnectProviderThumbprint = "UpdateOpenIDConnectProviderThum // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateOpenIDConnectProviderThumbprint func (c *IAM) UpdateOpenIDConnectProviderThumbprintRequest(input *UpdateOpenIDConnectProviderThumbprintInput) (req *request.Request, output *UpdateOpenIDConnectProviderThumbprintOutput) { op := &request.Operation{ Name: opUpdateOpenIDConnectProviderThumbprint, @@ -9303,11 +9703,10 @@ func (c *IAM) UpdateOpenIDConnectProviderThumbprintRequest(input *UpdateOpenIDCo input = &UpdateOpenIDConnectProviderThumbprintInput{} } + output = &UpdateOpenIDConnectProviderThumbprintOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateOpenIDConnectProviderThumbprintOutput{} - req.Data = output return } @@ -9324,7 +9723,7 @@ func (c *IAM) UpdateOpenIDConnectProviderThumbprintRequest(input *UpdateOpenIDCo // does change, any attempt to assume an IAM role that specifies the OIDC provider // as a principal fails until the certificate thumbprint is updated. // -// Because trust for the OIDC provider is ultimately derived from the provider's +// Because trust for the OIDC provider is ultimately derived from the provider's // certificate and is validated by the thumbprint, it is a best practice to // limit access to the UpdateOpenIDConnectProviderThumbprint action to highly-privileged // users. @@ -9337,18 +9736,19 @@ func (c *IAM) UpdateOpenIDConnectProviderThumbprintRequest(input *UpdateOpenIDCo // API operation UpdateOpenIDConnectProviderThumbprint for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateOpenIDConnectProviderThumbprint func (c *IAM) UpdateOpenIDConnectProviderThumbprint(input *UpdateOpenIDConnectProviderThumbprintInput) (*UpdateOpenIDConnectProviderThumbprintOutput, error) { req, out := c.UpdateOpenIDConnectProviderThumbprintRequest(input) err := req.Send() @@ -9381,6 +9781,7 @@ const opUpdateSAMLProvider = "UpdateSAMLProvider" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateSAMLProvider func (c *IAM) UpdateSAMLProviderRequest(input *UpdateSAMLProviderInput) (req *request.Request, output *UpdateSAMLProviderOutput) { op := &request.Operation{ Name: opUpdateSAMLProvider, @@ -9392,9 +9793,8 @@ func (c *IAM) UpdateSAMLProviderRequest(input *UpdateSAMLProviderInput) (req *re input = &UpdateSAMLProviderInput{} } - req = c.newRequest(op, input, output) output = &UpdateSAMLProviderOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -9402,7 +9802,7 @@ func (c *IAM) UpdateSAMLProviderRequest(input *UpdateSAMLProviderInput) (req *re // // Updates the metadata document for an existing SAML provider resource object. // -// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -9412,22 +9812,23 @@ func (c *IAM) UpdateSAMLProviderRequest(input *UpdateSAMLProviderInput) (req *re // API operation UpdateSAMLProvider for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidInput +// * ErrCodeInvalidInputException "InvalidInput" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateSAMLProvider func (c *IAM) UpdateSAMLProvider(input *UpdateSAMLProviderInput) (*UpdateSAMLProviderOutput, error) { req, out := c.UpdateSAMLProviderRequest(input) err := req.Send() @@ -9460,6 +9861,7 @@ const opUpdateSSHPublicKey = "UpdateSSHPublicKey" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateSSHPublicKey func (c *IAM) UpdateSSHPublicKeyRequest(input *UpdateSSHPublicKeyInput) (req *request.Request, output *UpdateSSHPublicKeyOutput) { op := &request.Operation{ Name: opUpdateSSHPublicKey, @@ -9471,11 +9873,10 @@ func (c *IAM) UpdateSSHPublicKeyRequest(input *UpdateSSHPublicKeyInput) (req *re input = &UpdateSSHPublicKeyInput{} } + output = &UpdateSSHPublicKeyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateSSHPublicKeyOutput{} - req.Data = output return } @@ -9500,10 +9901,11 @@ func (c *IAM) UpdateSSHPublicKeyRequest(input *UpdateSSHPublicKeyInput) (req *re // API operation UpdateSSHPublicKey for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateSSHPublicKey func (c *IAM) UpdateSSHPublicKey(input *UpdateSSHPublicKeyInput) (*UpdateSSHPublicKeyOutput, error) { req, out := c.UpdateSSHPublicKeyRequest(input) err := req.Send() @@ -9536,6 +9938,7 @@ const opUpdateServerCertificate = "UpdateServerCertificate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateServerCertificate func (c *IAM) UpdateServerCertificateRequest(input *UpdateServerCertificateInput) (req *request.Request, output *UpdateServerCertificateOutput) { op := &request.Operation{ Name: opUpdateServerCertificate, @@ -9547,11 +9950,10 @@ func (c *IAM) UpdateServerCertificateRequest(input *UpdateServerCertificateInput input = &UpdateServerCertificateInput{} } + output = &UpdateServerCertificateOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateServerCertificateOutput{} - req.Data = output return } @@ -9565,17 +9967,17 @@ func (c *IAM) UpdateServerCertificateRequest(input *UpdateServerCertificateInput // with IAM, go to Working with Server Certificates (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) // in the IAM User Guide. // -// You should understand the implications of changing a server certificate's +// You should understand the implications of changing a server certificate's // path or name. For more information, see Renaming a Server Certificate (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs_manage.html#RenamingServerCerts) // in the IAM User Guide. // -// To change a server certificate name the requester must have appropriate -// permissions on both the source object and the target object. For example, -// to change the name from "ProductionCert" to "ProdCert", the entity making -// the request must have permission on "ProductionCert" and "ProdCert", or must -// have permission on all (*). For more information about permissions, see Access -// Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) -// in the IAM User Guide. +// To change a server certificate name the requester must have appropriate permissions +// on both the source object and the target object. For example, to change the +// name from "ProductionCert" to "ProdCert", the entity making the request must +// have permission on "ProductionCert" and "ProdCert", or must have permission +// on all (*). For more information about permissions, see Access Management +// (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) in the IAM +// User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -9585,28 +9987,100 @@ func (c *IAM) UpdateServerCertificateRequest(input *UpdateServerCertificateInput // API operation UpdateServerCertificate for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateServerCertificate func (c *IAM) UpdateServerCertificate(input *UpdateServerCertificateInput) (*UpdateServerCertificateOutput, error) { req, out := c.UpdateServerCertificateRequest(input) err := req.Send() return out, err } +const opUpdateServiceSpecificCredential = "UpdateServiceSpecificCredential" + +// UpdateServiceSpecificCredentialRequest generates a "aws/request.Request" representing the +// client's request for the UpdateServiceSpecificCredential operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateServiceSpecificCredential for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateServiceSpecificCredential method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateServiceSpecificCredentialRequest method. +// req, resp := client.UpdateServiceSpecificCredentialRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateServiceSpecificCredential +func (c *IAM) UpdateServiceSpecificCredentialRequest(input *UpdateServiceSpecificCredentialInput) (req *request.Request, output *UpdateServiceSpecificCredentialOutput) { + op := &request.Operation{ + Name: opUpdateServiceSpecificCredential, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateServiceSpecificCredentialInput{} + } + + output = &UpdateServiceSpecificCredentialOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateServiceSpecificCredential API operation for AWS Identity and Access Management. +// +// Sets the status of a service-specific credential to Active or Inactive. Service-specific +// credentials that are inactive cannot be used for authentication to the service. +// This action can be used to disable a user’s service-specific credential as +// part of a credential rotation work flow. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation UpdateServiceSpecificCredential for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNoSuchEntityException "NoSuchEntity" +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateServiceSpecificCredential +func (c *IAM) UpdateServiceSpecificCredential(input *UpdateServiceSpecificCredentialInput) (*UpdateServiceSpecificCredentialOutput, error) { + req, out := c.UpdateServiceSpecificCredentialRequest(input) + err := req.Send() + return out, err +} + const opUpdateSigningCertificate = "UpdateSigningCertificate" // UpdateSigningCertificateRequest generates a "aws/request.Request" representing the @@ -9633,6 +10107,7 @@ const opUpdateSigningCertificate = "UpdateSigningCertificate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateSigningCertificate func (c *IAM) UpdateSigningCertificateRequest(input *UpdateSigningCertificateInput) (req *request.Request, output *UpdateSigningCertificateOutput) { op := &request.Operation{ Name: opUpdateSigningCertificate, @@ -9644,11 +10119,10 @@ func (c *IAM) UpdateSigningCertificateRequest(input *UpdateSigningCertificateInp input = &UpdateSigningCertificateInput{} } + output = &UpdateSigningCertificateOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateSigningCertificateOutput{} - req.Data = output return } @@ -9671,18 +10145,19 @@ func (c *IAM) UpdateSigningCertificateRequest(input *UpdateSigningCertificateInp // API operation UpdateSigningCertificate for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateSigningCertificate func (c *IAM) UpdateSigningCertificate(input *UpdateSigningCertificateInput) (*UpdateSigningCertificateOutput, error) { req, out := c.UpdateSigningCertificateRequest(input) err := req.Send() @@ -9715,6 +10190,7 @@ const opUpdateUser = "UpdateUser" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateUser func (c *IAM) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, output *UpdateUserOutput) { op := &request.Operation{ Name: opUpdateUser, @@ -9726,11 +10202,10 @@ func (c *IAM) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, o input = &UpdateUserInput{} } + output = &UpdateUserOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateUserOutput{} - req.Data = output return } @@ -9738,13 +10213,13 @@ func (c *IAM) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, o // // Updates the name and/or the path of the specified IAM user. // -// You should understand the implications of changing an IAM user's path -// or name. For more information, see Renaming an IAM User (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_manage.html#id_users_renaming) +// You should understand the implications of changing an IAM user's path or +// name. For more information, see Renaming an IAM User (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_manage.html#id_users_renaming) // and Renaming an IAM Group (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_groups_manage_rename.html) // in the IAM User Guide. // -// To change a user name the requester must have appropriate permissions -// on both the source object and the target object. For example, to change Bob +// To change a user name the requester must have appropriate permissions on +// both the source object and the target object. For example, to change Bob // to Robert, the entity making the request must have permission on Bob and // Robert, or must have permission on all (*). For more information about permissions, // see Permissions and Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PermissionsAndPolicies.html). @@ -9757,28 +10232,29 @@ func (c *IAM) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, o // API operation UpdateUser for usage and error information. // // Returned Error Codes: -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * EntityTemporarilyUnmodifiable +// * ErrCodeEntityTemporarilyUnmodifiableException "EntityTemporarilyUnmodifiable" // The request was rejected because it referenced an entity that is temporarily // unmodifiable, such as a user name that was deleted and then recreated. The // error indicates that the request is likely to succeed if you try again after // waiting several minutes. The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateUser func (c *IAM) UpdateUser(input *UpdateUserInput) (*UpdateUserOutput, error) { req, out := c.UpdateUserRequest(input) err := req.Send() @@ -9811,6 +10287,7 @@ const opUploadSSHPublicKey = "UploadSSHPublicKey" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UploadSSHPublicKey func (c *IAM) UploadSSHPublicKeyRequest(input *UploadSSHPublicKeyInput) (req *request.Request, output *UploadSSHPublicKeyOutput) { op := &request.Operation{ Name: opUploadSSHPublicKey, @@ -9822,9 +10299,8 @@ func (c *IAM) UploadSSHPublicKeyRequest(input *UploadSSHPublicKeyInput) (req *re input = &UploadSSHPublicKeyInput{} } - req = c.newRequest(op, input, output) output = &UploadSSHPublicKeyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -9846,26 +10322,27 @@ func (c *IAM) UploadSSHPublicKeyRequest(input *UploadSSHPublicKeyInput) (req *re // API operation UploadSSHPublicKey for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * InvalidPublicKey +// * ErrCodeInvalidPublicKeyException "InvalidPublicKey" // The request was rejected because the public key is malformed or otherwise // invalid. // -// * DuplicateSSHPublicKey +// * ErrCodeDuplicateSSHPublicKeyException "DuplicateSSHPublicKey" // The request was rejected because the SSH public key is already associated // with the specified IAM user. // -// * UnrecognizedPublicKeyEncoding +// * ErrCodeUnrecognizedPublicKeyEncodingException "UnrecognizedPublicKeyEncoding" // The request was rejected because the public key encoding format is unsupported // or unrecognized. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UploadSSHPublicKey func (c *IAM) UploadSSHPublicKey(input *UploadSSHPublicKeyInput) (*UploadSSHPublicKeyOutput, error) { req, out := c.UploadSSHPublicKeyRequest(input) err := req.Send() @@ -9898,6 +10375,7 @@ const opUploadServerCertificate = "UploadServerCertificate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UploadServerCertificate func (c *IAM) UploadServerCertificateRequest(input *UploadServerCertificateInput) (req *request.Request, output *UploadServerCertificateOutput) { op := &request.Operation{ Name: opUploadServerCertificate, @@ -9909,9 +10387,8 @@ func (c *IAM) UploadServerCertificateRequest(input *UploadServerCertificateInput input = &UploadServerCertificateInput{} } - req = c.newRequest(op, input, output) output = &UploadServerCertificateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -9921,16 +10398,22 @@ func (c *IAM) UploadServerCertificateRequest(input *UploadServerCertificateInput // entity includes a public key certificate, a private key, and an optional // certificate chain, which should all be PEM-encoded. // +// We recommend that you use AWS Certificate Manager (https://aws.amazon.com/certificate-manager/) +// to provision, manage, and deploy your server certificates. With ACM you can +// request a certificate, deploy it to AWS resources, and let ACM handle certificate +// renewals for you. Certificates provided by ACM are free. For more information +// about using ACM, see the AWS Certificate Manager User Guide (http://docs.aws.amazon.com/acm/latest/userguide/). +// // For more information about working with server certificates, including a // list of AWS services that can use the server certificates that you manage // with IAM, go to Working with Server Certificates (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) // in the IAM User Guide. // -// For information about the number of server certificates you can upload, -// see Limitations on IAM Entities and Objects (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html) +// For information about the number of server certificates you can upload, see +// Limitations on IAM Entities and Objects (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html) // in the IAM User Guide. // -// Because the body of the public key certificate, private key, and the certificate +// Because the body of the public key certificate, private key, and the certificate // chain can be large, you should use POST rather than GET when calling UploadServerCertificate. // For information about setting up signatures and authorization through the // API, go to Signing AWS API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) @@ -9946,26 +10429,27 @@ func (c *IAM) UploadServerCertificateRequest(input *UploadServerCertificateInput // API operation UploadServerCertificate for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * MalformedCertificate +// * ErrCodeMalformedCertificateException "MalformedCertificate" // The request was rejected because the certificate was malformed or expired. // The error message describes the specific error. // -// * KeyPairMismatch +// * ErrCodeKeyPairMismatchException "KeyPairMismatch" // The request was rejected because the public key certificate and the private // key do not match. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UploadServerCertificate func (c *IAM) UploadServerCertificate(input *UploadServerCertificateInput) (*UploadServerCertificateOutput, error) { req, out := c.UploadServerCertificateRequest(input) err := req.Send() @@ -9998,6 +10482,7 @@ const opUploadSigningCertificate = "UploadSigningCertificate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UploadSigningCertificate func (c *IAM) UploadSigningCertificateRequest(input *UploadSigningCertificateInput) (req *request.Request, output *UploadSigningCertificateOutput) { op := &request.Operation{ Name: opUploadSigningCertificate, @@ -10009,9 +10494,8 @@ func (c *IAM) UploadSigningCertificateRequest(input *UploadSigningCertificateInp input = &UploadSigningCertificateInput{} } - req = c.newRequest(op, input, output) output = &UploadSigningCertificateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -10022,13 +10506,12 @@ func (c *IAM) UploadSigningCertificateRequest(input *UploadSigningCertificateInp // that are signed with a corresponding private key. When you upload the certificate, // its default status is Active. // -// If the UserName field is not specified, the IAM user name is determined -// implicitly based on the AWS access key ID used to sign the request. Because -// this action works for access keys under the AWS account, you can use this -// action to manage root credentials even if the AWS account has no associated -// users. +// If the UserName field is not specified, the IAM user name is determined implicitly +// based on the AWS access key ID used to sign the request. Because this action +// works for access keys under the AWS account, you can use this action to manage +// root credentials even if the AWS account has no associated users. // -// Because the body of a X.509 certificate can be large, you should use POST +// Because the body of a X.509 certificate can be large, you should use POST // rather than GET when calling UploadSigningCertificate. For information about // setting up signatures and authorization through the API, go to Signing AWS // API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) @@ -10044,33 +10527,34 @@ func (c *IAM) UploadSigningCertificateRequest(input *UploadSigningCertificateInp // API operation UploadSigningCertificate for usage and error information. // // Returned Error Codes: -// * LimitExceeded +// * ErrCodeLimitExceededException "LimitExceeded" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // -// * EntityAlreadyExists +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExists" // The request was rejected because it attempted to create a resource that already // exists. // -// * MalformedCertificate +// * ErrCodeMalformedCertificateException "MalformedCertificate" // The request was rejected because the certificate was malformed or expired. // The error message describes the specific error. // -// * InvalidCertificate +// * ErrCodeInvalidCertificateException "InvalidCertificate" // The request was rejected because the certificate is invalid. // -// * DuplicateCertificate +// * ErrCodeDuplicateCertificateException "DuplicateCertificate" // The request was rejected because the same certificate is associated with // an IAM user in the account. // -// * NoSuchEntity +// * ErrCodeNoSuchEntityException "NoSuchEntity" // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // -// * ServiceFailure +// * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UploadSigningCertificate func (c *IAM) UploadSigningCertificate(input *UploadSigningCertificateInput) (*UploadSigningCertificateOutput, error) { req, out := c.UploadSigningCertificateRequest(input) err := req.Send() @@ -10079,13 +10563,14 @@ func (c *IAM) UploadSigningCertificate(input *UploadSigningCertificateInput) (*U // Contains information about an AWS access key. // -// This data type is used as a response element in the CreateAccessKey and -// ListAccessKeys actions. +// This data type is used as a response element in the CreateAccessKey and ListAccessKeys +// actions. // -// The SecretAccessKey value is returned only in response to CreateAccessKey. +// The SecretAccessKey value is returned only in response to CreateAccessKey. // You can get a secret access key only when you first create an access key; // you cannot recover the secret access key later. If you lose a secret access // key, you must create a new access key. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AccessKey type AccessKey struct { _ struct{} `type:"structure"` @@ -10124,22 +10609,53 @@ func (s AccessKey) GoString() string { return s.String() } +// SetAccessKeyId sets the AccessKeyId field's value. +func (s *AccessKey) SetAccessKeyId(v string) *AccessKey { + s.AccessKeyId = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *AccessKey) SetCreateDate(v time.Time) *AccessKey { + s.CreateDate = &v + return s +} + +// SetSecretAccessKey sets the SecretAccessKey field's value. +func (s *AccessKey) SetSecretAccessKey(v string) *AccessKey { + s.SecretAccessKey = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *AccessKey) SetStatus(v string) *AccessKey { + s.Status = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *AccessKey) SetUserName(v string) *AccessKey { + s.UserName = &v + return s +} + // Contains information about the last time an AWS access key was used. // // This data type is used as a response element in the GetAccessKeyLastUsed // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AccessKeyLastUsed type AccessKeyLastUsed struct { _ struct{} `type:"structure"` // The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601), // when the access key was most recently used. This field is null when: // - // The user does not have an access key. + // * The user does not have an access key. // - // An access key exists but has never been used, at least not since IAM started - // tracking this information on April 22nd, 2015. + // * An access key exists but has never been used, at least not since IAM + // started tracking this information on April 22nd, 2015. // - // There is no sign-in data associated with the user + // * There is no sign-in data associated with the user // // LastUsedDate is a required field LastUsedDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` @@ -10147,14 +10663,14 @@ type AccessKeyLastUsed struct { // The AWS region where this access key was most recently used. This field is // null when: // - // The user does not have an access key. + // * The user does not have an access key. // - // An access key exists but has never been used, at least not since IAM started - // tracking this information on April 22nd, 2015. + // * An access key exists but has never been used, at least not since IAM + // started tracking this information on April 22nd, 2015. // - // There is no sign-in data associated with the user + // * There is no sign-in data associated with the user // - // For more information about AWS regions, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html) + // For more information about AWS regions, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html) // in the Amazon Web Services General Reference. // // Region is a required field @@ -10163,12 +10679,12 @@ type AccessKeyLastUsed struct { // The name of the AWS service with which this access key was most recently // used. This field is null when: // - // The user does not have an access key. + // * The user does not have an access key. // - // An access key exists but has never been used, at least not since IAM started - // tracking this information on April 22nd, 2015. + // * An access key exists but has never been used, at least not since IAM + // started tracking this information on April 22nd, 2015. // - // There is no sign-in data associated with the user + // * There is no sign-in data associated with the user // // ServiceName is a required field ServiceName *string `type:"string" required:"true"` @@ -10184,9 +10700,28 @@ func (s AccessKeyLastUsed) GoString() string { return s.String() } +// SetLastUsedDate sets the LastUsedDate field's value. +func (s *AccessKeyLastUsed) SetLastUsedDate(v time.Time) *AccessKeyLastUsed { + s.LastUsedDate = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *AccessKeyLastUsed) SetRegion(v string) *AccessKeyLastUsed { + s.Region = &v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *AccessKeyLastUsed) SetServiceName(v string) *AccessKeyLastUsed { + s.ServiceName = &v + return s +} + // Contains information about an AWS access key, without its secret key. // // This data type is used as a response element in the ListAccessKeys action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AccessKeyMetadata type AccessKeyMetadata struct { _ struct{} `type:"structure"` @@ -10214,6 +10749,31 @@ func (s AccessKeyMetadata) GoString() string { return s.String() } +// SetAccessKeyId sets the AccessKeyId field's value. +func (s *AccessKeyMetadata) SetAccessKeyId(v string) *AccessKeyMetadata { + s.AccessKeyId = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *AccessKeyMetadata) SetCreateDate(v time.Time) *AccessKeyMetadata { + s.CreateDate = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *AccessKeyMetadata) SetStatus(v string) *AccessKeyMetadata { + s.Status = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *AccessKeyMetadata) SetUserName(v string) *AccessKeyMetadata { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddClientIDToOpenIDConnectProviderRequest type AddClientIDToOpenIDConnectProviderInput struct { _ struct{} `type:"structure"` @@ -10263,6 +10823,19 @@ func (s *AddClientIDToOpenIDConnectProviderInput) Validate() error { return nil } +// SetClientID sets the ClientID field's value. +func (s *AddClientIDToOpenIDConnectProviderInput) SetClientID(v string) *AddClientIDToOpenIDConnectProviderInput { + s.ClientID = &v + return s +} + +// SetOpenIDConnectProviderArn sets the OpenIDConnectProviderArn field's value. +func (s *AddClientIDToOpenIDConnectProviderInput) SetOpenIDConnectProviderArn(v string) *AddClientIDToOpenIDConnectProviderInput { + s.OpenIDConnectProviderArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddClientIDToOpenIDConnectProviderOutput type AddClientIDToOpenIDConnectProviderOutput struct { _ struct{} `type:"structure"` } @@ -10277,12 +10850,13 @@ func (s AddClientIDToOpenIDConnectProviderOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddRoleToInstanceProfileRequest type AddRoleToInstanceProfileInput struct { _ struct{} `type:"structure"` // The name of the instance profile to update. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -10291,7 +10865,7 @@ type AddRoleToInstanceProfileInput struct { // The name of the role to add. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -10331,6 +10905,19 @@ func (s *AddRoleToInstanceProfileInput) Validate() error { return nil } +// SetInstanceProfileName sets the InstanceProfileName field's value. +func (s *AddRoleToInstanceProfileInput) SetInstanceProfileName(v string) *AddRoleToInstanceProfileInput { + s.InstanceProfileName = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *AddRoleToInstanceProfileInput) SetRoleName(v string) *AddRoleToInstanceProfileInput { + s.RoleName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddRoleToInstanceProfileOutput type AddRoleToInstanceProfileOutput struct { _ struct{} `type:"structure"` } @@ -10345,12 +10932,13 @@ func (s AddRoleToInstanceProfileOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddUserToGroupRequest type AddUserToGroupInput struct { _ struct{} `type:"structure"` // The name of the group to update. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -10359,7 +10947,7 @@ type AddUserToGroupInput struct { // The name of the user to add. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -10399,6 +10987,19 @@ func (s *AddUserToGroupInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *AddUserToGroupInput) SetGroupName(v string) *AddUserToGroupInput { + s.GroupName = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *AddUserToGroupInput) SetUserName(v string) *AddUserToGroupInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddUserToGroupOutput type AddUserToGroupOutput struct { _ struct{} `type:"structure"` } @@ -10413,12 +11014,13 @@ func (s AddUserToGroupOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachGroupPolicyRequest type AttachGroupPolicyInput struct { _ struct{} `type:"structure"` // The name (friendly name, not ARN) of the group to attach the policy to. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -10467,6 +11069,19 @@ func (s *AttachGroupPolicyInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *AttachGroupPolicyInput) SetGroupName(v string) *AttachGroupPolicyInput { + s.GroupName = &v + return s +} + +// SetPolicyArn sets the PolicyArn field's value. +func (s *AttachGroupPolicyInput) SetPolicyArn(v string) *AttachGroupPolicyInput { + s.PolicyArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachGroupPolicyOutput type AttachGroupPolicyOutput struct { _ struct{} `type:"structure"` } @@ -10481,6 +11096,7 @@ func (s AttachGroupPolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachRolePolicyRequest type AttachRolePolicyInput struct { _ struct{} `type:"structure"` @@ -10495,7 +11111,7 @@ type AttachRolePolicyInput struct { // The name (friendly name, not ARN) of the role to attach the policy to. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -10535,6 +11151,19 @@ func (s *AttachRolePolicyInput) Validate() error { return nil } +// SetPolicyArn sets the PolicyArn field's value. +func (s *AttachRolePolicyInput) SetPolicyArn(v string) *AttachRolePolicyInput { + s.PolicyArn = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *AttachRolePolicyInput) SetRoleName(v string) *AttachRolePolicyInput { + s.RoleName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachRolePolicyOutput type AttachRolePolicyOutput struct { _ struct{} `type:"structure"` } @@ -10549,6 +11178,7 @@ func (s AttachRolePolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachUserPolicyRequest type AttachUserPolicyInput struct { _ struct{} `type:"structure"` @@ -10563,7 +11193,7 @@ type AttachUserPolicyInput struct { // The name (friendly name, not ARN) of the IAM user to attach the policy to. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -10603,6 +11233,19 @@ func (s *AttachUserPolicyInput) Validate() error { return nil } +// SetPolicyArn sets the PolicyArn field's value. +func (s *AttachUserPolicyInput) SetPolicyArn(v string) *AttachUserPolicyInput { + s.PolicyArn = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *AttachUserPolicyInput) SetUserName(v string) *AttachUserPolicyInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachUserPolicyOutput type AttachUserPolicyOutput struct { _ struct{} `type:"structure"` } @@ -10627,13 +11270,14 @@ func (s AttachUserPolicyOutput) GoString() string { // For more information about managed policies, refer to Managed Policies and // Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the Using IAM guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachedPolicy type AttachedPolicy struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, go to Amazon Resource Names (ARNs) and - // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS + // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. PolicyArn *string `min:"20" type:"string"` @@ -10651,20 +11295,33 @@ func (s AttachedPolicy) GoString() string { return s.String() } +// SetPolicyArn sets the PolicyArn field's value. +func (s *AttachedPolicy) SetPolicyArn(v string) *AttachedPolicy { + s.PolicyArn = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *AttachedPolicy) SetPolicyName(v string) *AttachedPolicy { + s.PolicyName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ChangePasswordRequest type ChangePasswordInput struct { _ struct{} `type:"structure"` // The new password. The new password must conform to the AWS account's password // policy, if one exists. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of almost any printable ASCII character - // from the space (\u0020) through the end of the ASCII character range (\u00FF). - // You can also include the tab (\u0009), line feed (\u000A), and carriage return - // (\u000D) characters. Although any of these characters are valid in a password, - // note that many tools, such as the AWS Management Console, might restrict - // the ability to enter certain characters because they have special meaning - // within that tool. + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of almost any printable ASCII + // character from the space (\u0020) through the end of the ASCII character + // range (\u00FF). You can also include the tab (\u0009), line feed (\u000A), + // and carriage return (\u000D) characters. Although any of these characters + // are valid in a password, note that many tools, such as the AWS Management + // Console, might restrict the ability to enter certain characters because they + // have special meaning within that tool. // // NewPassword is a required field NewPassword *string `min:"1" type:"string" required:"true"` @@ -10707,6 +11364,19 @@ func (s *ChangePasswordInput) Validate() error { return nil } +// SetNewPassword sets the NewPassword field's value. +func (s *ChangePasswordInput) SetNewPassword(v string) *ChangePasswordInput { + s.NewPassword = &v + return s +} + +// SetOldPassword sets the OldPassword field's value. +func (s *ChangePasswordInput) SetOldPassword(v string) *ChangePasswordInput { + s.OldPassword = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ChangePasswordOutput type ChangePasswordOutput struct { _ struct{} `type:"structure"` } @@ -10726,8 +11396,9 @@ func (s ChangePasswordOutput) GoString() string { // multiple values) to use in the simulation. This information is used when // evaluating the Condition elements of the input policies. // -// This data type is used as an input parameter to SimulateCustomPolicy and -// SimulateCustomPolicy . +// This data type is used as an input parameter to SimulateCustomPolicy and +// SimulateCustomPolicy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ContextEntry type ContextEntry struct { _ struct{} `type:"structure"` @@ -10768,12 +11439,31 @@ func (s *ContextEntry) Validate() error { return nil } +// SetContextKeyName sets the ContextKeyName field's value. +func (s *ContextEntry) SetContextKeyName(v string) *ContextEntry { + s.ContextKeyName = &v + return s +} + +// SetContextKeyType sets the ContextKeyType field's value. +func (s *ContextEntry) SetContextKeyType(v string) *ContextEntry { + s.ContextKeyType = &v + return s +} + +// SetContextKeyValues sets the ContextKeyValues field's value. +func (s *ContextEntry) SetContextKeyValues(v []*string) *ContextEntry { + s.ContextKeyValues = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateAccessKeyRequest type CreateAccessKeyInput struct { _ struct{} `type:"structure"` // The name of the IAM user that the new key will belong to. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- UserName *string `min:"1" type:"string"` @@ -10802,7 +11492,14 @@ func (s *CreateAccessKeyInput) Validate() error { return nil } +// SetUserName sets the UserName field's value. +func (s *CreateAccessKeyInput) SetUserName(v string) *CreateAccessKeyInput { + s.UserName = &v + return s +} + // Contains the response to a successful CreateAccessKey request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateAccessKeyResponse type CreateAccessKeyOutput struct { _ struct{} `type:"structure"` @@ -10822,12 +11519,19 @@ func (s CreateAccessKeyOutput) GoString() string { return s.String() } +// SetAccessKey sets the AccessKey field's value. +func (s *CreateAccessKeyOutput) SetAccessKey(v *AccessKey) *CreateAccessKeyOutput { + s.AccessKey = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateAccountAliasRequest type CreateAccountAliasInput struct { _ struct{} `type:"structure"` // The account alias to create. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of lowercase letters, digits, and dashes. // You cannot start or finish with a dash, nor can you have two dashes in a // row. @@ -10862,6 +11566,13 @@ func (s *CreateAccountAliasInput) Validate() error { return nil } +// SetAccountAlias sets the AccountAlias field's value. +func (s *CreateAccountAliasInput) SetAccountAlias(v string) *CreateAccountAliasInput { + s.AccountAlias = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateAccountAliasOutput type CreateAccountAliasOutput struct { _ struct{} `type:"structure"` } @@ -10876,12 +11587,13 @@ func (s CreateAccountAliasOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateGroupRequest type CreateGroupInput struct { _ struct{} `type:"structure"` // The name of the group to create. Do not include the path in this value. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@-. // The group name must be unique within the account. Group names are not distinguished @@ -10897,7 +11609,7 @@ type CreateGroupInput struct { // This parameter is optional. If it is not included, it defaults to a slash // (/). // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of either a forward slash (/) by itself // or a string that must begin and end with forward slashes, containing any // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including @@ -10934,7 +11646,20 @@ func (s *CreateGroupInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *CreateGroupInput) SetGroupName(v string) *CreateGroupInput { + s.GroupName = &v + return s +} + +// SetPath sets the Path field's value. +func (s *CreateGroupInput) SetPath(v string) *CreateGroupInput { + s.Path = &v + return s +} + // Contains the response to a successful CreateGroup request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateGroupResponse type CreateGroupOutput struct { _ struct{} `type:"structure"` @@ -10954,12 +11679,19 @@ func (s CreateGroupOutput) GoString() string { return s.String() } +// SetGroup sets the Group field's value. +func (s *CreateGroupOutput) SetGroup(v *Group) *CreateGroupOutput { + s.Group = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateInstanceProfileRequest type CreateInstanceProfileInput struct { _ struct{} `type:"structure"` // The name of the instance profile to create. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -10973,7 +11705,7 @@ type CreateInstanceProfileInput struct { // This parameter is optional. If it is not included, it defaults to a slash // (/). // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of either a forward slash (/) by itself // or a string that must begin and end with forward slashes, containing any // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including @@ -11010,7 +11742,20 @@ func (s *CreateInstanceProfileInput) Validate() error { return nil } +// SetInstanceProfileName sets the InstanceProfileName field's value. +func (s *CreateInstanceProfileInput) SetInstanceProfileName(v string) *CreateInstanceProfileInput { + s.InstanceProfileName = &v + return s +} + +// SetPath sets the Path field's value. +func (s *CreateInstanceProfileInput) SetPath(v string) *CreateInstanceProfileInput { + s.Path = &v + return s +} + // Contains the response to a successful CreateInstanceProfile request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateInstanceProfileResponse type CreateInstanceProfileOutput struct { _ struct{} `type:"structure"` @@ -11030,19 +11775,26 @@ func (s CreateInstanceProfileOutput) GoString() string { return s.String() } +// SetInstanceProfile sets the InstanceProfile field's value. +func (s *CreateInstanceProfileOutput) SetInstanceProfile(v *InstanceProfile) *CreateInstanceProfileOutput { + s.InstanceProfile = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateLoginProfileRequest type CreateLoginProfileInput struct { _ struct{} `type:"structure"` // The new password for the user. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of almost any printable ASCII character - // from the space (\u0020) through the end of the ASCII character range (\u00FF). - // You can also include the tab (\u0009), line feed (\u000A), and carriage return - // (\u000D) characters. Although any of these characters are valid in a password, - // note that many tools, such as the AWS Management Console, might restrict - // the ability to enter certain characters because they have special meaning - // within that tool. + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of almost any printable ASCII + // character from the space (\u0020) through the end of the ASCII character + // range (\u00FF). You can also include the tab (\u0009), line feed (\u000A), + // and carriage return (\u000D) characters. Although any of these characters + // are valid in a password, note that many tools, such as the AWS Management + // Console, might restrict the ability to enter certain characters because they + // have special meaning within that tool. // // Password is a required field Password *string `min:"1" type:"string" required:"true"` @@ -11053,7 +11805,7 @@ type CreateLoginProfileInput struct { // The name of the IAM user to create a password for. The user must already // exist. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -11093,7 +11845,26 @@ func (s *CreateLoginProfileInput) Validate() error { return nil } +// SetPassword sets the Password field's value. +func (s *CreateLoginProfileInput) SetPassword(v string) *CreateLoginProfileInput { + s.Password = &v + return s +} + +// SetPasswordResetRequired sets the PasswordResetRequired field's value. +func (s *CreateLoginProfileInput) SetPasswordResetRequired(v bool) *CreateLoginProfileInput { + s.PasswordResetRequired = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *CreateLoginProfileInput) SetUserName(v string) *CreateLoginProfileInput { + s.UserName = &v + return s +} + // Contains the response to a successful CreateLoginProfile request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateLoginProfileResponse type CreateLoginProfileOutput struct { _ struct{} `type:"structure"` @@ -11113,6 +11884,13 @@ func (s CreateLoginProfileOutput) GoString() string { return s.String() } +// SetLoginProfile sets the LoginProfile field's value. +func (s *CreateLoginProfileOutput) SetLoginProfile(v *LoginProfile) *CreateLoginProfileOutput { + s.LoginProfile = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateOpenIDConnectProviderRequest type CreateOpenIDConnectProviderInput struct { _ struct{} `type:"structure"` @@ -11195,7 +11973,26 @@ func (s *CreateOpenIDConnectProviderInput) Validate() error { return nil } +// SetClientIDList sets the ClientIDList field's value. +func (s *CreateOpenIDConnectProviderInput) SetClientIDList(v []*string) *CreateOpenIDConnectProviderInput { + s.ClientIDList = v + return s +} + +// SetThumbprintList sets the ThumbprintList field's value. +func (s *CreateOpenIDConnectProviderInput) SetThumbprintList(v []*string) *CreateOpenIDConnectProviderInput { + s.ThumbprintList = v + return s +} + +// SetUrl sets the Url field's value. +func (s *CreateOpenIDConnectProviderInput) SetUrl(v string) *CreateOpenIDConnectProviderInput { + s.Url = &v + return s +} + // Contains the response to a successful CreateOpenIDConnectProvider request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateOpenIDConnectProviderResponse type CreateOpenIDConnectProviderOutput struct { _ struct{} `type:"structure"` @@ -11214,6 +12011,13 @@ func (s CreateOpenIDConnectProviderOutput) GoString() string { return s.String() } +// SetOpenIDConnectProviderArn sets the OpenIDConnectProviderArn field's value. +func (s *CreateOpenIDConnectProviderOutput) SetOpenIDConnectProviderArn(v string) *CreateOpenIDConnectProviderOutput { + s.OpenIDConnectProviderArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreatePolicyRequest type CreatePolicyInput struct { _ struct{} `type:"structure"` @@ -11234,7 +12038,7 @@ type CreatePolicyInput struct { // This parameter is optional. If it is not included, it defaults to a slash // (/). // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of either a forward slash (/) by itself // or a string that must begin and end with forward slashes, containing any // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including @@ -11244,18 +12048,19 @@ type CreatePolicyInput struct { // The JSON policy document that you want to use as the content for the new // policy. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // PolicyDocument is a required field PolicyDocument *string `min:"1" type:"string" required:"true"` // The friendly name of the policy. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -11295,7 +12100,32 @@ func (s *CreatePolicyInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreatePolicyInput) SetDescription(v string) *CreatePolicyInput { + s.Description = &v + return s +} + +// SetPath sets the Path field's value. +func (s *CreatePolicyInput) SetPath(v string) *CreatePolicyInput { + s.Path = &v + return s +} + +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *CreatePolicyInput) SetPolicyDocument(v string) *CreatePolicyInput { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *CreatePolicyInput) SetPolicyName(v string) *CreatePolicyInput { + s.PolicyName = &v + return s +} + // Contains the response to a successful CreatePolicy request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreatePolicyResponse type CreatePolicyOutput struct { _ struct{} `type:"structure"` @@ -11313,6 +12143,13 @@ func (s CreatePolicyOutput) GoString() string { return s.String() } +// SetPolicy sets the Policy field's value. +func (s *CreatePolicyOutput) SetPolicy(v *Policy) *CreatePolicyOutput { + s.Policy = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreatePolicyVersionRequest type CreatePolicyVersionInput struct { _ struct{} `type:"structure"` @@ -11329,11 +12166,12 @@ type CreatePolicyVersionInput struct { // The JSON policy document that you want to use as the content for this new // version of the policy. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // PolicyDocument is a required field PolicyDocument *string `min:"1" type:"string" required:"true"` @@ -11382,7 +12220,26 @@ func (s *CreatePolicyVersionInput) Validate() error { return nil } +// SetPolicyArn sets the PolicyArn field's value. +func (s *CreatePolicyVersionInput) SetPolicyArn(v string) *CreatePolicyVersionInput { + s.PolicyArn = &v + return s +} + +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *CreatePolicyVersionInput) SetPolicyDocument(v string) *CreatePolicyVersionInput { + s.PolicyDocument = &v + return s +} + +// SetSetAsDefault sets the SetAsDefault field's value. +func (s *CreatePolicyVersionInput) SetSetAsDefault(v bool) *CreatePolicyVersionInput { + s.SetAsDefault = &v + return s +} + // Contains the response to a successful CreatePolicyVersion request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreatePolicyVersionResponse type CreatePolicyVersionOutput struct { _ struct{} `type:"structure"` @@ -11400,17 +12257,25 @@ func (s CreatePolicyVersionOutput) GoString() string { return s.String() } +// SetPolicyVersion sets the PolicyVersion field's value. +func (s *CreatePolicyVersionOutput) SetPolicyVersion(v *PolicyVersion) *CreatePolicyVersionOutput { + s.PolicyVersion = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateRoleRequest type CreateRoleInput struct { _ struct{} `type:"structure"` // The trust relationship policy document that grants an entity permission to // assume the role. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // AssumeRolePolicyDocument is a required field AssumeRolePolicyDocument *string `min:"1" type:"string" required:"true"` @@ -11422,7 +12287,7 @@ type CreateRoleInput struct { // This parameter is optional. If it is not included, it defaults to a slash // (/). // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of either a forward slash (/) by itself // or a string that must begin and end with forward slashes, containing any // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including @@ -11431,7 +12296,7 @@ type CreateRoleInput struct { // The name of the role to create. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@-. // Role names are not distinguished by case. For example, you cannot create @@ -11476,7 +12341,26 @@ func (s *CreateRoleInput) Validate() error { return nil } +// SetAssumeRolePolicyDocument sets the AssumeRolePolicyDocument field's value. +func (s *CreateRoleInput) SetAssumeRolePolicyDocument(v string) *CreateRoleInput { + s.AssumeRolePolicyDocument = &v + return s +} + +// SetPath sets the Path field's value. +func (s *CreateRoleInput) SetPath(v string) *CreateRoleInput { + s.Path = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *CreateRoleInput) SetRoleName(v string) *CreateRoleInput { + s.RoleName = &v + return s +} + // Contains the response to a successful CreateRole request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateRoleResponse type CreateRoleOutput struct { _ struct{} `type:"structure"` @@ -11496,12 +12380,19 @@ func (s CreateRoleOutput) GoString() string { return s.String() } +// SetRole sets the Role field's value. +func (s *CreateRoleOutput) SetRole(v *Role) *CreateRoleOutput { + s.Role = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateSAMLProviderRequest type CreateSAMLProviderInput struct { _ struct{} `type:"structure"` // The name of the provider to create. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -11553,7 +12444,20 @@ func (s *CreateSAMLProviderInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *CreateSAMLProviderInput) SetName(v string) *CreateSAMLProviderInput { + s.Name = &v + return s +} + +// SetSAMLMetadataDocument sets the SAMLMetadataDocument field's value. +func (s *CreateSAMLProviderInput) SetSAMLMetadataDocument(v string) *CreateSAMLProviderInput { + s.SAMLMetadataDocument = &v + return s +} + // Contains the response to a successful CreateSAMLProvider request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateSAMLProviderResponse type CreateSAMLProviderOutput struct { _ struct{} `type:"structure"` @@ -11571,6 +12475,106 @@ func (s CreateSAMLProviderOutput) GoString() string { return s.String() } +// SetSAMLProviderArn sets the SAMLProviderArn field's value. +func (s *CreateSAMLProviderOutput) SetSAMLProviderArn(v string) *CreateSAMLProviderOutput { + s.SAMLProviderArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateServiceSpecificCredentialRequest +type CreateServiceSpecificCredentialInput struct { + _ struct{} `type:"structure"` + + // The name of the AWS service that is to be associated with the credentials. + // The service you specify here is the only service that can be accessed using + // these credentials. + // + // ServiceName is a required field + ServiceName *string `type:"string" required:"true"` + + // The name of the IAM user that is to be associated with the credentials. The + // new service-specific credentials have the same permissions as the associated + // user except that they can be used only to access the specified service. + // + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) + // a string of characters consisting of upper and lowercase alphanumeric characters + // with no spaces. You can also include any of the following characters: =,.@- + // + // UserName is a required field + UserName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateServiceSpecificCredentialInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateServiceSpecificCredentialInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateServiceSpecificCredentialInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateServiceSpecificCredentialInput"} + if s.ServiceName == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceName")) + } + if s.UserName == nil { + invalidParams.Add(request.NewErrParamRequired("UserName")) + } + if s.UserName != nil && len(*s.UserName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServiceName sets the ServiceName field's value. +func (s *CreateServiceSpecificCredentialInput) SetServiceName(v string) *CreateServiceSpecificCredentialInput { + s.ServiceName = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *CreateServiceSpecificCredentialInput) SetUserName(v string) *CreateServiceSpecificCredentialInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateServiceSpecificCredentialResponse +type CreateServiceSpecificCredentialOutput struct { + _ struct{} `type:"structure"` + + // A structure that contains information about the newly created service-specific + // credential. + // + // This is the only time that the password for this credential set is available. + // It cannot be recovered later. Instead, you will have to reset the password + // with ResetServiceSpecificCredential. + ServiceSpecificCredential *ServiceSpecificCredential `type:"structure"` +} + +// String returns the string representation +func (s CreateServiceSpecificCredentialOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateServiceSpecificCredentialOutput) GoString() string { + return s.String() +} + +// SetServiceSpecificCredential sets the ServiceSpecificCredential field's value. +func (s *CreateServiceSpecificCredentialOutput) SetServiceSpecificCredential(v *ServiceSpecificCredential) *CreateServiceSpecificCredentialOutput { + s.ServiceSpecificCredential = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateUserRequest type CreateUserInput struct { _ struct{} `type:"structure"` @@ -11581,7 +12585,7 @@ type CreateUserInput struct { // This parameter is optional. If it is not included, it defaults to a slash // (/). // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of either a forward slash (/) by itself // or a string that must begin and end with forward slashes, containing any // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including @@ -11590,7 +12594,7 @@ type CreateUserInput struct { // The name of the user to create. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@-. // User names are not distinguished by case. For example, you cannot create @@ -11629,7 +12633,20 @@ func (s *CreateUserInput) Validate() error { return nil } +// SetPath sets the Path field's value. +func (s *CreateUserInput) SetPath(v string) *CreateUserInput { + s.Path = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *CreateUserInput) SetUserName(v string) *CreateUserInput { + s.UserName = &v + return s +} + // Contains the response to a successful CreateUser request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateUserResponse type CreateUserOutput struct { _ struct{} `type:"structure"` @@ -11647,6 +12664,13 @@ func (s CreateUserOutput) GoString() string { return s.String() } +// SetUser sets the User field's value. +func (s *CreateUserOutput) SetUser(v *User) *CreateUserOutput { + s.User = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateVirtualMFADeviceRequest type CreateVirtualMFADeviceInput struct { _ struct{} `type:"structure"` @@ -11657,7 +12681,7 @@ type CreateVirtualMFADeviceInput struct { // This parameter is optional. If it is not included, it defaults to a slash // (/). // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of either a forward slash (/) by itself // or a string that must begin and end with forward slashes, containing any // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including @@ -11667,7 +12691,7 @@ type CreateVirtualMFADeviceInput struct { // The name of the virtual MFA device. Use with path to uniquely identify a // virtual MFA device. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -11704,7 +12728,20 @@ func (s *CreateVirtualMFADeviceInput) Validate() error { return nil } +// SetPath sets the Path field's value. +func (s *CreateVirtualMFADeviceInput) SetPath(v string) *CreateVirtualMFADeviceInput { + s.Path = &v + return s +} + +// SetVirtualMFADeviceName sets the VirtualMFADeviceName field's value. +func (s *CreateVirtualMFADeviceInput) SetVirtualMFADeviceName(v string) *CreateVirtualMFADeviceInput { + s.VirtualMFADeviceName = &v + return s +} + // Contains the response to a successful CreateVirtualMFADevice request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateVirtualMFADeviceResponse type CreateVirtualMFADeviceOutput struct { _ struct{} `type:"structure"` @@ -11724,13 +12761,20 @@ func (s CreateVirtualMFADeviceOutput) GoString() string { return s.String() } +// SetVirtualMFADevice sets the VirtualMFADevice field's value. +func (s *CreateVirtualMFADeviceOutput) SetVirtualMFADevice(v *VirtualMFADevice) *CreateVirtualMFADeviceOutput { + s.VirtualMFADevice = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeactivateMFADeviceRequest type DeactivateMFADeviceInput struct { _ struct{} `type:"structure"` // The serial number that uniquely identifies the MFA device. For virtual MFA // devices, the serial number is the device ARN. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =/:,.@- // @@ -11739,7 +12783,7 @@ type DeactivateMFADeviceInput struct { // The name of the user whose MFA device you want to deactivate. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -11779,6 +12823,19 @@ func (s *DeactivateMFADeviceInput) Validate() error { return nil } +// SetSerialNumber sets the SerialNumber field's value. +func (s *DeactivateMFADeviceInput) SetSerialNumber(v string) *DeactivateMFADeviceInput { + s.SerialNumber = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DeactivateMFADeviceInput) SetUserName(v string) *DeactivateMFADeviceInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeactivateMFADeviceOutput type DeactivateMFADeviceOutput struct { _ struct{} `type:"structure"` } @@ -11793,13 +12850,14 @@ func (s DeactivateMFADeviceOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccessKeyRequest type DeleteAccessKeyInput struct { _ struct{} `type:"structure"` // The access key ID for the access key ID and secret access key you want to // delete. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters that can consist of any upper or lowercased letter // or digit. // @@ -11808,7 +12866,7 @@ type DeleteAccessKeyInput struct { // The name of the user whose access key pair you want to delete. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- UserName *string `min:"1" type:"string"` @@ -11843,6 +12901,19 @@ func (s *DeleteAccessKeyInput) Validate() error { return nil } +// SetAccessKeyId sets the AccessKeyId field's value. +func (s *DeleteAccessKeyInput) SetAccessKeyId(v string) *DeleteAccessKeyInput { + s.AccessKeyId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DeleteAccessKeyInput) SetUserName(v string) *DeleteAccessKeyInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccessKeyOutput type DeleteAccessKeyOutput struct { _ struct{} `type:"structure"` } @@ -11857,12 +12928,13 @@ func (s DeleteAccessKeyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccountAliasRequest type DeleteAccountAliasInput struct { _ struct{} `type:"structure"` // The name of the account alias to delete. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of lowercase letters, digits, and dashes. // You cannot start or finish with a dash, nor can you have two dashes in a // row. @@ -11897,6 +12969,13 @@ func (s *DeleteAccountAliasInput) Validate() error { return nil } +// SetAccountAlias sets the AccountAlias field's value. +func (s *DeleteAccountAliasInput) SetAccountAlias(v string) *DeleteAccountAliasInput { + s.AccountAlias = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccountAliasOutput type DeleteAccountAliasOutput struct { _ struct{} `type:"structure"` } @@ -11911,6 +12990,7 @@ func (s DeleteAccountAliasOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccountPasswordPolicyInput type DeleteAccountPasswordPolicyInput struct { _ struct{} `type:"structure"` } @@ -11925,6 +13005,7 @@ func (s DeleteAccountPasswordPolicyInput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccountPasswordPolicyOutput type DeleteAccountPasswordPolicyOutput struct { _ struct{} `type:"structure"` } @@ -11939,12 +13020,13 @@ func (s DeleteAccountPasswordPolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteGroupRequest type DeleteGroupInput struct { _ struct{} `type:"structure"` // The name of the IAM group to delete. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -11978,6 +13060,13 @@ func (s *DeleteGroupInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *DeleteGroupInput) SetGroupName(v string) *DeleteGroupInput { + s.GroupName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteGroupOutput type DeleteGroupOutput struct { _ struct{} `type:"structure"` } @@ -11992,13 +13081,14 @@ func (s DeleteGroupOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteGroupPolicyRequest type DeleteGroupPolicyInput struct { _ struct{} `type:"structure"` // The name (friendly name, not ARN) identifying the group that the policy is // embedded in. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -12007,7 +13097,7 @@ type DeleteGroupPolicyInput struct { // The name identifying the policy document to delete. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -12047,6 +13137,19 @@ func (s *DeleteGroupPolicyInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *DeleteGroupPolicyInput) SetGroupName(v string) *DeleteGroupPolicyInput { + s.GroupName = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *DeleteGroupPolicyInput) SetPolicyName(v string) *DeleteGroupPolicyInput { + s.PolicyName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteGroupPolicyOutput type DeleteGroupPolicyOutput struct { _ struct{} `type:"structure"` } @@ -12061,12 +13164,13 @@ func (s DeleteGroupPolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteInstanceProfileRequest type DeleteInstanceProfileInput struct { _ struct{} `type:"structure"` // The name of the instance profile to delete. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -12100,6 +13204,13 @@ func (s *DeleteInstanceProfileInput) Validate() error { return nil } +// SetInstanceProfileName sets the InstanceProfileName field's value. +func (s *DeleteInstanceProfileInput) SetInstanceProfileName(v string) *DeleteInstanceProfileInput { + s.InstanceProfileName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteInstanceProfileOutput type DeleteInstanceProfileOutput struct { _ struct{} `type:"structure"` } @@ -12114,12 +13225,13 @@ func (s DeleteInstanceProfileOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteLoginProfileRequest type DeleteLoginProfileInput struct { _ struct{} `type:"structure"` // The name of the user whose password you want to delete. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -12153,6 +13265,13 @@ func (s *DeleteLoginProfileInput) Validate() error { return nil } +// SetUserName sets the UserName field's value. +func (s *DeleteLoginProfileInput) SetUserName(v string) *DeleteLoginProfileInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteLoginProfileOutput type DeleteLoginProfileOutput struct { _ struct{} `type:"structure"` } @@ -12167,6 +13286,7 @@ func (s DeleteLoginProfileOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteOpenIDConnectProviderRequest type DeleteOpenIDConnectProviderInput struct { _ struct{} `type:"structure"` @@ -12204,6 +13324,13 @@ func (s *DeleteOpenIDConnectProviderInput) Validate() error { return nil } +// SetOpenIDConnectProviderArn sets the OpenIDConnectProviderArn field's value. +func (s *DeleteOpenIDConnectProviderInput) SetOpenIDConnectProviderArn(v string) *DeleteOpenIDConnectProviderInput { + s.OpenIDConnectProviderArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteOpenIDConnectProviderOutput type DeleteOpenIDConnectProviderOutput struct { _ struct{} `type:"structure"` } @@ -12218,6 +13345,7 @@ func (s DeleteOpenIDConnectProviderOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeletePolicyRequest type DeletePolicyInput struct { _ struct{} `type:"structure"` @@ -12257,6 +13385,13 @@ func (s *DeletePolicyInput) Validate() error { return nil } +// SetPolicyArn sets the PolicyArn field's value. +func (s *DeletePolicyInput) SetPolicyArn(v string) *DeletePolicyInput { + s.PolicyArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeletePolicyOutput type DeletePolicyOutput struct { _ struct{} `type:"structure"` } @@ -12271,6 +13406,7 @@ func (s DeletePolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeletePolicyVersionRequest type DeletePolicyVersionInput struct { _ struct{} `type:"structure"` @@ -12286,7 +13422,7 @@ type DeletePolicyVersionInput struct { // The policy version to delete. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters that consists of the lowercase letter 'v' followed // by one or two digits, and optionally followed by a period '.' and a string // of letters and digits. @@ -12328,6 +13464,19 @@ func (s *DeletePolicyVersionInput) Validate() error { return nil } +// SetPolicyArn sets the PolicyArn field's value. +func (s *DeletePolicyVersionInput) SetPolicyArn(v string) *DeletePolicyVersionInput { + s.PolicyArn = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *DeletePolicyVersionInput) SetVersionId(v string) *DeletePolicyVersionInput { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeletePolicyVersionOutput type DeletePolicyVersionOutput struct { _ struct{} `type:"structure"` } @@ -12342,12 +13491,13 @@ func (s DeletePolicyVersionOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteRoleRequest type DeleteRoleInput struct { _ struct{} `type:"structure"` // The name of the role to delete. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -12381,6 +13531,13 @@ func (s *DeleteRoleInput) Validate() error { return nil } +// SetRoleName sets the RoleName field's value. +func (s *DeleteRoleInput) SetRoleName(v string) *DeleteRoleInput { + s.RoleName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteRoleOutput type DeleteRoleOutput struct { _ struct{} `type:"structure"` } @@ -12395,12 +13552,13 @@ func (s DeleteRoleOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteRolePolicyRequest type DeleteRolePolicyInput struct { _ struct{} `type:"structure"` // The name of the inline policy to delete from the specified IAM role. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -12410,7 +13568,7 @@ type DeleteRolePolicyInput struct { // The name (friendly name, not ARN) identifying the role that the policy is // embedded in. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -12450,6 +13608,19 @@ func (s *DeleteRolePolicyInput) Validate() error { return nil } +// SetPolicyName sets the PolicyName field's value. +func (s *DeleteRolePolicyInput) SetPolicyName(v string) *DeleteRolePolicyInput { + s.PolicyName = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *DeleteRolePolicyInput) SetRoleName(v string) *DeleteRolePolicyInput { + s.RoleName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteRolePolicyOutput type DeleteRolePolicyOutput struct { _ struct{} `type:"structure"` } @@ -12464,6 +13635,7 @@ func (s DeleteRolePolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSAMLProviderRequest type DeleteSAMLProviderInput struct { _ struct{} `type:"structure"` @@ -12499,6 +13671,13 @@ func (s *DeleteSAMLProviderInput) Validate() error { return nil } +// SetSAMLProviderArn sets the SAMLProviderArn field's value. +func (s *DeleteSAMLProviderInput) SetSAMLProviderArn(v string) *DeleteSAMLProviderInput { + s.SAMLProviderArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSAMLProviderOutput type DeleteSAMLProviderOutput struct { _ struct{} `type:"structure"` } @@ -12513,12 +13692,13 @@ func (s DeleteSAMLProviderOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSSHPublicKeyRequest type DeleteSSHPublicKeyInput struct { _ struct{} `type:"structure"` // The unique identifier for the SSH public key. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters that can consist of any upper or lowercased letter // or digit. // @@ -12527,7 +13707,7 @@ type DeleteSSHPublicKeyInput struct { // The name of the IAM user associated with the SSH public key. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -12567,6 +13747,19 @@ func (s *DeleteSSHPublicKeyInput) Validate() error { return nil } +// SetSSHPublicKeyId sets the SSHPublicKeyId field's value. +func (s *DeleteSSHPublicKeyInput) SetSSHPublicKeyId(v string) *DeleteSSHPublicKeyInput { + s.SSHPublicKeyId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DeleteSSHPublicKeyInput) SetUserName(v string) *DeleteSSHPublicKeyInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSSHPublicKeyOutput type DeleteSSHPublicKeyOutput struct { _ struct{} `type:"structure"` } @@ -12581,12 +13774,13 @@ func (s DeleteSSHPublicKeyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServerCertificateRequest type DeleteServerCertificateInput struct { _ struct{} `type:"structure"` // The name of the server certificate you want to delete. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -12620,6 +13814,13 @@ func (s *DeleteServerCertificateInput) Validate() error { return nil } +// SetServerCertificateName sets the ServerCertificateName field's value. +func (s *DeleteServerCertificateInput) SetServerCertificateName(v string) *DeleteServerCertificateInput { + s.ServerCertificateName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServerCertificateOutput type DeleteServerCertificateOutput struct { _ struct{} `type:"structure"` } @@ -12634,44 +13835,48 @@ func (s DeleteServerCertificateOutput) GoString() string { return s.String() } -type DeleteSigningCertificateInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServiceSpecificCredentialRequest +type DeleteServiceSpecificCredentialInput struct { _ struct{} `type:"structure"` - // The ID of the signing certificate to delete. + // The unique identifier of the service-specific credential. You can get this + // value by calling ListServiceSpecificCredentials. // - // The format of this parameter, as described by its regex (http://wikipedia.org/wiki/regex) - // pattern, is a string of characters that can be upper- or lower-cased letters - // or digits. + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) + // a string of characters that can consist of any upper or lowercased letter + // or digit. // - // CertificateId is a required field - CertificateId *string `min:"24" type:"string" required:"true"` + // ServiceSpecificCredentialId is a required field + ServiceSpecificCredentialId *string `min:"20" type:"string" required:"true"` - // The name of the user the signing certificate belongs to. + // The name of the IAM user associated with the service-specific credential. + // If this value is not specified, then the operation assumes the user whose + // credentials are used to call the operation. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- UserName *string `min:"1" type:"string"` } // String returns the string representation -func (s DeleteSigningCertificateInput) String() string { +func (s DeleteServiceSpecificCredentialInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteSigningCertificateInput) GoString() string { +func (s DeleteServiceSpecificCredentialInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSigningCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSigningCertificateInput"} - if s.CertificateId == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateId")) +func (s *DeleteServiceSpecificCredentialInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteServiceSpecificCredentialInput"} + if s.ServiceSpecificCredentialId == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceSpecificCredentialId")) } - if s.CertificateId != nil && len(*s.CertificateId) < 24 { - invalidParams.Add(request.NewErrParamMinLen("CertificateId", 24)) + if s.ServiceSpecificCredentialId != nil && len(*s.ServiceSpecificCredentialId) < 20 { + invalidParams.Add(request.NewErrParamMinLen("ServiceSpecificCredentialId", 20)) } if s.UserName != nil && len(*s.UserName) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) @@ -12683,26 +13888,117 @@ func (s *DeleteSigningCertificateInput) Validate() error { return nil } -type DeleteSigningCertificateOutput struct { +// SetServiceSpecificCredentialId sets the ServiceSpecificCredentialId field's value. +func (s *DeleteServiceSpecificCredentialInput) SetServiceSpecificCredentialId(v string) *DeleteServiceSpecificCredentialInput { + s.ServiceSpecificCredentialId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DeleteServiceSpecificCredentialInput) SetUserName(v string) *DeleteServiceSpecificCredentialInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServiceSpecificCredentialOutput +type DeleteServiceSpecificCredentialOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s DeleteSigningCertificateOutput) String() string { +func (s DeleteServiceSpecificCredentialOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteSigningCertificateOutput) GoString() string { +func (s DeleteServiceSpecificCredentialOutput) GoString() string { return s.String() } -type DeleteUserInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSigningCertificateRequest +type DeleteSigningCertificateInput struct { + _ struct{} `type:"structure"` + + // The ID of the signing certificate to delete. + // + // The format of this parameter, as described by its regex (http://wikipedia.org/wiki/regex) + // pattern, is a string of characters that can be upper- or lower-cased letters + // or digits. + // + // CertificateId is a required field + CertificateId *string `min:"24" type:"string" required:"true"` + + // The name of the user the signing certificate belongs to. + // + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) + // a string of characters consisting of upper and lowercase alphanumeric characters + // with no spaces. You can also include any of the following characters: =,.@- + UserName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DeleteSigningCertificateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteSigningCertificateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteSigningCertificateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSigningCertificateInput"} + if s.CertificateId == nil { + invalidParams.Add(request.NewErrParamRequired("CertificateId")) + } + if s.CertificateId != nil && len(*s.CertificateId) < 24 { + invalidParams.Add(request.NewErrParamMinLen("CertificateId", 24)) + } + if s.UserName != nil && len(*s.UserName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCertificateId sets the CertificateId field's value. +func (s *DeleteSigningCertificateInput) SetCertificateId(v string) *DeleteSigningCertificateInput { + s.CertificateId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DeleteSigningCertificateInput) SetUserName(v string) *DeleteSigningCertificateInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSigningCertificateOutput +type DeleteSigningCertificateOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteSigningCertificateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteSigningCertificateOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteUserRequest +type DeleteUserInput struct { _ struct{} `type:"structure"` // The name of the user to delete. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -12736,6 +14032,13 @@ func (s *DeleteUserInput) Validate() error { return nil } +// SetUserName sets the UserName field's value. +func (s *DeleteUserInput) SetUserName(v string) *DeleteUserInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteUserOutput type DeleteUserOutput struct { _ struct{} `type:"structure"` } @@ -12750,12 +14053,13 @@ func (s DeleteUserOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteUserPolicyRequest type DeleteUserPolicyInput struct { _ struct{} `type:"structure"` // The name identifying the policy document to delete. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -12765,7 +14069,7 @@ type DeleteUserPolicyInput struct { // The name (friendly name, not ARN) identifying the user that the policy is // embedded in. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -12805,6 +14109,19 @@ func (s *DeleteUserPolicyInput) Validate() error { return nil } +// SetPolicyName sets the PolicyName field's value. +func (s *DeleteUserPolicyInput) SetPolicyName(v string) *DeleteUserPolicyInput { + s.PolicyName = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DeleteUserPolicyInput) SetUserName(v string) *DeleteUserPolicyInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteUserPolicyOutput type DeleteUserPolicyOutput struct { _ struct{} `type:"structure"` } @@ -12819,13 +14136,14 @@ func (s DeleteUserPolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteVirtualMFADeviceRequest type DeleteVirtualMFADeviceInput struct { _ struct{} `type:"structure"` // The serial number that uniquely identifies the MFA device. For virtual MFA // devices, the serial number is the same as the ARN. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =/:,.@- // @@ -12859,6 +14177,13 @@ func (s *DeleteVirtualMFADeviceInput) Validate() error { return nil } +// SetSerialNumber sets the SerialNumber field's value. +func (s *DeleteVirtualMFADeviceInput) SetSerialNumber(v string) *DeleteVirtualMFADeviceInput { + s.SerialNumber = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteVirtualMFADeviceOutput type DeleteVirtualMFADeviceOutput struct { _ struct{} `type:"structure"` } @@ -12873,12 +14198,13 @@ func (s DeleteVirtualMFADeviceOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachGroupPolicyRequest type DetachGroupPolicyInput struct { _ struct{} `type:"structure"` // The name (friendly name, not ARN) of the IAM group to detach the policy from. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -12927,6 +14253,19 @@ func (s *DetachGroupPolicyInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *DetachGroupPolicyInput) SetGroupName(v string) *DetachGroupPolicyInput { + s.GroupName = &v + return s +} + +// SetPolicyArn sets the PolicyArn field's value. +func (s *DetachGroupPolicyInput) SetPolicyArn(v string) *DetachGroupPolicyInput { + s.PolicyArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachGroupPolicyOutput type DetachGroupPolicyOutput struct { _ struct{} `type:"structure"` } @@ -12941,6 +14280,7 @@ func (s DetachGroupPolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachRolePolicyRequest type DetachRolePolicyInput struct { _ struct{} `type:"structure"` @@ -12955,7 +14295,7 @@ type DetachRolePolicyInput struct { // The name (friendly name, not ARN) of the IAM role to detach the policy from. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -12995,6 +14335,19 @@ func (s *DetachRolePolicyInput) Validate() error { return nil } +// SetPolicyArn sets the PolicyArn field's value. +func (s *DetachRolePolicyInput) SetPolicyArn(v string) *DetachRolePolicyInput { + s.PolicyArn = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *DetachRolePolicyInput) SetRoleName(v string) *DetachRolePolicyInput { + s.RoleName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachRolePolicyOutput type DetachRolePolicyOutput struct { _ struct{} `type:"structure"` } @@ -13009,6 +14362,7 @@ func (s DetachRolePolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachUserPolicyRequest type DetachUserPolicyInput struct { _ struct{} `type:"structure"` @@ -13023,7 +14377,7 @@ type DetachUserPolicyInput struct { // The name (friendly name, not ARN) of the IAM user to detach the policy from. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -13063,6 +14417,19 @@ func (s *DetachUserPolicyInput) Validate() error { return nil } +// SetPolicyArn sets the PolicyArn field's value. +func (s *DetachUserPolicyInput) SetPolicyArn(v string) *DetachUserPolicyInput { + s.PolicyArn = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DetachUserPolicyInput) SetUserName(v string) *DetachUserPolicyInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachUserPolicyOutput type DetachUserPolicyOutput struct { _ struct{} `type:"structure"` } @@ -13077,6 +14444,7 @@ func (s DetachUserPolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/EnableMFADeviceRequest type EnableMFADeviceInput struct { _ struct{} `type:"structure"` @@ -13097,7 +14465,7 @@ type EnableMFADeviceInput struct { // The serial number that uniquely identifies the MFA device. For virtual MFA // devices, the serial number is the device ARN. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =/:,.@- // @@ -13106,7 +14474,7 @@ type EnableMFADeviceInput struct { // The name of the IAM user for whom you want to enable the MFA device. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -13158,6 +14526,31 @@ func (s *EnableMFADeviceInput) Validate() error { return nil } +// SetAuthenticationCode1 sets the AuthenticationCode1 field's value. +func (s *EnableMFADeviceInput) SetAuthenticationCode1(v string) *EnableMFADeviceInput { + s.AuthenticationCode1 = &v + return s +} + +// SetAuthenticationCode2 sets the AuthenticationCode2 field's value. +func (s *EnableMFADeviceInput) SetAuthenticationCode2(v string) *EnableMFADeviceInput { + s.AuthenticationCode2 = &v + return s +} + +// SetSerialNumber sets the SerialNumber field's value. +func (s *EnableMFADeviceInput) SetSerialNumber(v string) *EnableMFADeviceInput { + s.SerialNumber = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *EnableMFADeviceInput) SetUserName(v string) *EnableMFADeviceInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/EnableMFADeviceOutput type EnableMFADeviceOutput struct { _ struct{} `type:"structure"` } @@ -13174,8 +14567,9 @@ func (s EnableMFADeviceOutput) GoString() string { // Contains the results of a simulation. // -// This data type is used by the return parameter of SimulateCustomPolicy -// and SimulatePrincipalPolicy . +// This data type is used by the return parameter of SimulateCustomPolicy and +// SimulatePrincipalPolicy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/EvaluationResult type EvaluationResult struct { _ struct{} `type:"structure"` @@ -13216,6 +14610,11 @@ type EvaluationResult struct { // call GetContextKeysForCustomPolicy or GetContextKeysForPrincipalPolicy. MissingContextValues []*string `type:"list"` + // A structure that details how AWS Organizations and its service control policies + // affect the results of the simulation. Only applies if the simulated user's + // account is part of an organization. + OrganizationsDecisionDetail *OrganizationsDecisionDetail `type:"structure"` + // The individual results of the simulation of the API action specified in EvalActionName // on each resource. ResourceSpecificResults []*ResourceSpecificResult `type:"list"` @@ -13231,6 +14630,55 @@ func (s EvaluationResult) GoString() string { return s.String() } +// SetEvalActionName sets the EvalActionName field's value. +func (s *EvaluationResult) SetEvalActionName(v string) *EvaluationResult { + s.EvalActionName = &v + return s +} + +// SetEvalDecision sets the EvalDecision field's value. +func (s *EvaluationResult) SetEvalDecision(v string) *EvaluationResult { + s.EvalDecision = &v + return s +} + +// SetEvalDecisionDetails sets the EvalDecisionDetails field's value. +func (s *EvaluationResult) SetEvalDecisionDetails(v map[string]*string) *EvaluationResult { + s.EvalDecisionDetails = v + return s +} + +// SetEvalResourceName sets the EvalResourceName field's value. +func (s *EvaluationResult) SetEvalResourceName(v string) *EvaluationResult { + s.EvalResourceName = &v + return s +} + +// SetMatchedStatements sets the MatchedStatements field's value. +func (s *EvaluationResult) SetMatchedStatements(v []*Statement) *EvaluationResult { + s.MatchedStatements = v + return s +} + +// SetMissingContextValues sets the MissingContextValues field's value. +func (s *EvaluationResult) SetMissingContextValues(v []*string) *EvaluationResult { + s.MissingContextValues = v + return s +} + +// SetOrganizationsDecisionDetail sets the OrganizationsDecisionDetail field's value. +func (s *EvaluationResult) SetOrganizationsDecisionDetail(v *OrganizationsDecisionDetail) *EvaluationResult { + s.OrganizationsDecisionDetail = v + return s +} + +// SetResourceSpecificResults sets the ResourceSpecificResults field's value. +func (s *EvaluationResult) SetResourceSpecificResults(v []*ResourceSpecificResult) *EvaluationResult { + s.ResourceSpecificResults = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GenerateCredentialReportInput type GenerateCredentialReportInput struct { _ struct{} `type:"structure"` } @@ -13246,6 +14694,7 @@ func (s GenerateCredentialReportInput) GoString() string { } // Contains the response to a successful GenerateCredentialReport request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GenerateCredentialReportResponse type GenerateCredentialReportOutput struct { _ struct{} `type:"structure"` @@ -13266,12 +14715,25 @@ func (s GenerateCredentialReportOutput) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *GenerateCredentialReportOutput) SetDescription(v string) *GenerateCredentialReportOutput { + s.Description = &v + return s +} + +// SetState sets the State field's value. +func (s *GenerateCredentialReportOutput) SetState(v string) *GenerateCredentialReportOutput { + s.State = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccessKeyLastUsedRequest type GetAccessKeyLastUsedInput struct { _ struct{} `type:"structure"` // The identifier of an access key. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters that can consist of any upper or lowercased letter // or digit. // @@ -13305,9 +14767,16 @@ func (s *GetAccessKeyLastUsedInput) Validate() error { return nil } +// SetAccessKeyId sets the AccessKeyId field's value. +func (s *GetAccessKeyLastUsedInput) SetAccessKeyId(v string) *GetAccessKeyLastUsedInput { + s.AccessKeyId = &v + return s +} + // Contains the response to a successful GetAccessKeyLastUsed request. It is // also returned as a member of the AccessKeyMetaData structure returned by // the ListAccessKeys action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccessKeyLastUsedResponse type GetAccessKeyLastUsedOutput struct { _ struct{} `type:"structure"` @@ -13328,6 +14797,19 @@ func (s GetAccessKeyLastUsedOutput) GoString() string { return s.String() } +// SetAccessKeyLastUsed sets the AccessKeyLastUsed field's value. +func (s *GetAccessKeyLastUsedOutput) SetAccessKeyLastUsed(v *AccessKeyLastUsed) *GetAccessKeyLastUsedOutput { + s.AccessKeyLastUsed = v + return s +} + +// SetUserName sets the UserName field's value. +func (s *GetAccessKeyLastUsedOutput) SetUserName(v string) *GetAccessKeyLastUsedOutput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountAuthorizationDetailsRequest type GetAccountAuthorizationDetailsInput struct { _ struct{} `type:"structure"` @@ -13346,15 +14828,15 @@ type GetAccountAuthorizationDetailsInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` } @@ -13384,7 +14866,26 @@ func (s *GetAccountAuthorizationDetailsInput) Validate() error { return nil } +// SetFilter sets the Filter field's value. +func (s *GetAccountAuthorizationDetailsInput) SetFilter(v []*string) *GetAccountAuthorizationDetailsInput { + s.Filter = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *GetAccountAuthorizationDetailsInput) SetMarker(v string) *GetAccountAuthorizationDetailsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *GetAccountAuthorizationDetailsInput) SetMaxItems(v int64) *GetAccountAuthorizationDetailsInput { + s.MaxItems = &v + return s +} + // Contains the response to a successful GetAccountAuthorizationDetails request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountAuthorizationDetailsResponse type GetAccountAuthorizationDetailsOutput struct { _ struct{} `type:"structure"` @@ -13423,6 +14924,43 @@ func (s GetAccountAuthorizationDetailsOutput) GoString() string { return s.String() } +// SetGroupDetailList sets the GroupDetailList field's value. +func (s *GetAccountAuthorizationDetailsOutput) SetGroupDetailList(v []*GroupDetail) *GetAccountAuthorizationDetailsOutput { + s.GroupDetailList = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *GetAccountAuthorizationDetailsOutput) SetIsTruncated(v bool) *GetAccountAuthorizationDetailsOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *GetAccountAuthorizationDetailsOutput) SetMarker(v string) *GetAccountAuthorizationDetailsOutput { + s.Marker = &v + return s +} + +// SetPolicies sets the Policies field's value. +func (s *GetAccountAuthorizationDetailsOutput) SetPolicies(v []*ManagedPolicyDetail) *GetAccountAuthorizationDetailsOutput { + s.Policies = v + return s +} + +// SetRoleDetailList sets the RoleDetailList field's value. +func (s *GetAccountAuthorizationDetailsOutput) SetRoleDetailList(v []*RoleDetail) *GetAccountAuthorizationDetailsOutput { + s.RoleDetailList = v + return s +} + +// SetUserDetailList sets the UserDetailList field's value. +func (s *GetAccountAuthorizationDetailsOutput) SetUserDetailList(v []*UserDetail) *GetAccountAuthorizationDetailsOutput { + s.UserDetailList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountPasswordPolicyInput type GetAccountPasswordPolicyInput struct { _ struct{} `type:"structure"` } @@ -13438,14 +14976,12 @@ func (s GetAccountPasswordPolicyInput) GoString() string { } // Contains the response to a successful GetAccountPasswordPolicy request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountPasswordPolicyResponse type GetAccountPasswordPolicyOutput struct { _ struct{} `type:"structure"` // Contains information about the account password policy. // - // This data type is used as a response element in the GetAccountPasswordPolicy - // action. - // // PasswordPolicy is a required field PasswordPolicy *PasswordPolicy `type:"structure" required:"true"` } @@ -13460,6 +14996,13 @@ func (s GetAccountPasswordPolicyOutput) GoString() string { return s.String() } +// SetPasswordPolicy sets the PasswordPolicy field's value. +func (s *GetAccountPasswordPolicyOutput) SetPasswordPolicy(v *PasswordPolicy) *GetAccountPasswordPolicyOutput { + s.PasswordPolicy = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountSummaryInput type GetAccountSummaryInput struct { _ struct{} `type:"structure"` } @@ -13475,6 +15018,7 @@ func (s GetAccountSummaryInput) GoString() string { } // Contains the response to a successful GetAccountSummary request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountSummaryResponse type GetAccountSummaryOutput struct { _ struct{} `type:"structure"` @@ -13493,6 +15037,13 @@ func (s GetAccountSummaryOutput) GoString() string { return s.String() } +// SetSummaryMap sets the SummaryMap field's value. +func (s *GetAccountSummaryOutput) SetSummaryMap(v map[string]*int64) *GetAccountSummaryOutput { + s.SummaryMap = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetContextKeysForCustomPolicyRequest type GetContextKeysForCustomPolicyInput struct { _ struct{} `type:"structure"` @@ -13500,11 +15051,12 @@ type GetContextKeysForCustomPolicyInput struct { // in those policies. Each document is specified as a string containing the // complete, valid JSON text of an IAM policy. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // PolicyInputList is a required field PolicyInputList []*string `type:"list" required:"true"` @@ -13533,8 +15085,15 @@ func (s *GetContextKeysForCustomPolicyInput) Validate() error { return nil } +// SetPolicyInputList sets the PolicyInputList field's value. +func (s *GetContextKeysForCustomPolicyInput) SetPolicyInputList(v []*string) *GetContextKeysForCustomPolicyInput { + s.PolicyInputList = v + return s +} + // Contains the response to a successful GetContextKeysForPrincipalPolicy or // GetContextKeysForCustomPolicy request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetContextKeysForPolicyResponse type GetContextKeysForPolicyResponse struct { _ struct{} `type:"structure"` @@ -13552,17 +15111,25 @@ func (s GetContextKeysForPolicyResponse) GoString() string { return s.String() } +// SetContextKeyNames sets the ContextKeyNames field's value. +func (s *GetContextKeysForPolicyResponse) SetContextKeyNames(v []*string) *GetContextKeysForPolicyResponse { + s.ContextKeyNames = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetContextKeysForPrincipalPolicyRequest type GetContextKeysForPrincipalPolicyInput struct { _ struct{} `type:"structure"` // An optional list of additional policies for which you want the list of context // keys that are referenced. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). PolicyInputList []*string `type:"list"` // The ARN of a user, group, or role whose policies contain the context keys @@ -13607,6 +15174,19 @@ func (s *GetContextKeysForPrincipalPolicyInput) Validate() error { return nil } +// SetPolicyInputList sets the PolicyInputList field's value. +func (s *GetContextKeysForPrincipalPolicyInput) SetPolicyInputList(v []*string) *GetContextKeysForPrincipalPolicyInput { + s.PolicyInputList = v + return s +} + +// SetPolicySourceArn sets the PolicySourceArn field's value. +func (s *GetContextKeysForPrincipalPolicyInput) SetPolicySourceArn(v string) *GetContextKeysForPrincipalPolicyInput { + s.PolicySourceArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetCredentialReportInput type GetCredentialReportInput struct { _ struct{} `type:"structure"` } @@ -13622,6 +15202,7 @@ func (s GetCredentialReportInput) GoString() string { } // Contains the response to a successful GetCredentialReport request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetCredentialReportResponse type GetCredentialReportOutput struct { _ struct{} `type:"structure"` @@ -13648,12 +15229,31 @@ func (s GetCredentialReportOutput) GoString() string { return s.String() } +// SetContent sets the Content field's value. +func (s *GetCredentialReportOutput) SetContent(v []byte) *GetCredentialReportOutput { + s.Content = v + return s +} + +// SetGeneratedTime sets the GeneratedTime field's value. +func (s *GetCredentialReportOutput) SetGeneratedTime(v time.Time) *GetCredentialReportOutput { + s.GeneratedTime = &v + return s +} + +// SetReportFormat sets the ReportFormat field's value. +func (s *GetCredentialReportOutput) SetReportFormat(v string) *GetCredentialReportOutput { + s.ReportFormat = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetGroupRequest type GetGroupInput struct { _ struct{} `type:"structure"` // The name of the group. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -13666,15 +15266,15 @@ type GetGroupInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` } @@ -13710,7 +15310,26 @@ func (s *GetGroupInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *GetGroupInput) SetGroupName(v string) *GetGroupInput { + s.GroupName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *GetGroupInput) SetMarker(v string) *GetGroupInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *GetGroupInput) SetMaxItems(v int64) *GetGroupInput { + s.MaxItems = &v + return s +} + // Contains the response to a successful GetGroup request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetGroupResponse type GetGroupOutput struct { _ struct{} `type:"structure"` @@ -13747,12 +15366,37 @@ func (s GetGroupOutput) GoString() string { return s.String() } +// SetGroup sets the Group field's value. +func (s *GetGroupOutput) SetGroup(v *Group) *GetGroupOutput { + s.Group = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *GetGroupOutput) SetIsTruncated(v bool) *GetGroupOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *GetGroupOutput) SetMarker(v string) *GetGroupOutput { + s.Marker = &v + return s +} + +// SetUsers sets the Users field's value. +func (s *GetGroupOutput) SetUsers(v []*User) *GetGroupOutput { + s.Users = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetGroupPolicyRequest type GetGroupPolicyInput struct { _ struct{} `type:"structure"` // The name of the group the policy is associated with. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -13761,7 +15405,7 @@ type GetGroupPolicyInput struct { // The name of the policy document to get. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -13801,7 +15445,20 @@ func (s *GetGroupPolicyInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *GetGroupPolicyInput) SetGroupName(v string) *GetGroupPolicyInput { + s.GroupName = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *GetGroupPolicyInput) SetPolicyName(v string) *GetGroupPolicyInput { + s.PolicyName = &v + return s +} + // Contains the response to a successful GetGroupPolicy request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetGroupPolicyResponse type GetGroupPolicyOutput struct { _ struct{} `type:"structure"` @@ -13831,12 +15488,31 @@ func (s GetGroupPolicyOutput) GoString() string { return s.String() } +// SetGroupName sets the GroupName field's value. +func (s *GetGroupPolicyOutput) SetGroupName(v string) *GetGroupPolicyOutput { + s.GroupName = &v + return s +} + +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *GetGroupPolicyOutput) SetPolicyDocument(v string) *GetGroupPolicyOutput { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *GetGroupPolicyOutput) SetPolicyName(v string) *GetGroupPolicyOutput { + s.PolicyName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetInstanceProfileRequest type GetInstanceProfileInput struct { _ struct{} `type:"structure"` // The name of the instance profile to get information about. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -13870,7 +15546,14 @@ func (s *GetInstanceProfileInput) Validate() error { return nil } +// SetInstanceProfileName sets the InstanceProfileName field's value. +func (s *GetInstanceProfileInput) SetInstanceProfileName(v string) *GetInstanceProfileInput { + s.InstanceProfileName = &v + return s +} + // Contains the response to a successful GetInstanceProfile request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetInstanceProfileResponse type GetInstanceProfileOutput struct { _ struct{} `type:"structure"` @@ -13890,12 +15573,19 @@ func (s GetInstanceProfileOutput) GoString() string { return s.String() } +// SetInstanceProfile sets the InstanceProfile field's value. +func (s *GetInstanceProfileOutput) SetInstanceProfile(v *InstanceProfile) *GetInstanceProfileOutput { + s.InstanceProfile = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetLoginProfileRequest type GetLoginProfileInput struct { _ struct{} `type:"structure"` // The name of the user whose login profile you want to retrieve. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -13929,7 +15619,14 @@ func (s *GetLoginProfileInput) Validate() error { return nil } +// SetUserName sets the UserName field's value. +func (s *GetLoginProfileInput) SetUserName(v string) *GetLoginProfileInput { + s.UserName = &v + return s +} + // Contains the response to a successful GetLoginProfile request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetLoginProfileResponse type GetLoginProfileOutput struct { _ struct{} `type:"structure"` @@ -13949,6 +15646,13 @@ func (s GetLoginProfileOutput) GoString() string { return s.String() } +// SetLoginProfile sets the LoginProfile field's value. +func (s *GetLoginProfileOutput) SetLoginProfile(v *LoginProfile) *GetLoginProfileOutput { + s.LoginProfile = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetOpenIDConnectProviderRequest type GetOpenIDConnectProviderInput struct { _ struct{} `type:"structure"` @@ -13990,7 +15694,14 @@ func (s *GetOpenIDConnectProviderInput) Validate() error { return nil } +// SetOpenIDConnectProviderArn sets the OpenIDConnectProviderArn field's value. +func (s *GetOpenIDConnectProviderInput) SetOpenIDConnectProviderArn(v string) *GetOpenIDConnectProviderInput { + s.OpenIDConnectProviderArn = &v + return s +} + // Contains the response to a successful GetOpenIDConnectProvider request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetOpenIDConnectProviderResponse type GetOpenIDConnectProviderOutput struct { _ struct{} `type:"structure"` @@ -14021,6 +15732,31 @@ func (s GetOpenIDConnectProviderOutput) GoString() string { return s.String() } +// SetClientIDList sets the ClientIDList field's value. +func (s *GetOpenIDConnectProviderOutput) SetClientIDList(v []*string) *GetOpenIDConnectProviderOutput { + s.ClientIDList = v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *GetOpenIDConnectProviderOutput) SetCreateDate(v time.Time) *GetOpenIDConnectProviderOutput { + s.CreateDate = &v + return s +} + +// SetThumbprintList sets the ThumbprintList field's value. +func (s *GetOpenIDConnectProviderOutput) SetThumbprintList(v []*string) *GetOpenIDConnectProviderOutput { + s.ThumbprintList = v + return s +} + +// SetUrl sets the Url field's value. +func (s *GetOpenIDConnectProviderOutput) SetUrl(v string) *GetOpenIDConnectProviderOutput { + s.Url = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetPolicyRequest type GetPolicyInput struct { _ struct{} `type:"structure"` @@ -14061,7 +15797,14 @@ func (s *GetPolicyInput) Validate() error { return nil } +// SetPolicyArn sets the PolicyArn field's value. +func (s *GetPolicyInput) SetPolicyArn(v string) *GetPolicyInput { + s.PolicyArn = &v + return s +} + // Contains the response to a successful GetPolicy request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetPolicyResponse type GetPolicyOutput struct { _ struct{} `type:"structure"` @@ -14079,6 +15822,13 @@ func (s GetPolicyOutput) GoString() string { return s.String() } +// SetPolicy sets the Policy field's value. +func (s *GetPolicyOutput) SetPolicy(v *Policy) *GetPolicyOutput { + s.Policy = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetPolicyVersionRequest type GetPolicyVersionInput struct { _ struct{} `type:"structure"` @@ -14094,7 +15844,7 @@ type GetPolicyVersionInput struct { // Identifies the policy version to retrieve. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters that consists of the lowercase letter 'v' followed // by one or two digits, and optionally followed by a period '.' and a string // of letters and digits. @@ -14132,7 +15882,20 @@ func (s *GetPolicyVersionInput) Validate() error { return nil } +// SetPolicyArn sets the PolicyArn field's value. +func (s *GetPolicyVersionInput) SetPolicyArn(v string) *GetPolicyVersionInput { + s.PolicyArn = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *GetPolicyVersionInput) SetVersionId(v string) *GetPolicyVersionInput { + s.VersionId = &v + return s +} + // Contains the response to a successful GetPolicyVersion request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetPolicyVersionResponse type GetPolicyVersionOutput struct { _ struct{} `type:"structure"` @@ -14150,12 +15913,19 @@ func (s GetPolicyVersionOutput) GoString() string { return s.String() } +// SetPolicyVersion sets the PolicyVersion field's value. +func (s *GetPolicyVersionOutput) SetPolicyVersion(v *PolicyVersion) *GetPolicyVersionOutput { + s.PolicyVersion = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetRoleRequest type GetRoleInput struct { _ struct{} `type:"structure"` // The name of the IAM role to get information about. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -14189,7 +15959,14 @@ func (s *GetRoleInput) Validate() error { return nil } +// SetRoleName sets the RoleName field's value. +func (s *GetRoleInput) SetRoleName(v string) *GetRoleInput { + s.RoleName = &v + return s +} + // Contains the response to a successful GetRole request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetRoleResponse type GetRoleOutput struct { _ struct{} `type:"structure"` @@ -14209,12 +15986,19 @@ func (s GetRoleOutput) GoString() string { return s.String() } +// SetRole sets the Role field's value. +func (s *GetRoleOutput) SetRole(v *Role) *GetRoleOutput { + s.Role = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetRolePolicyRequest type GetRolePolicyInput struct { _ struct{} `type:"structure"` // The name of the policy document to get. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -14223,7 +16007,7 @@ type GetRolePolicyInput struct { // The name of the role associated with the policy. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -14263,7 +16047,20 @@ func (s *GetRolePolicyInput) Validate() error { return nil } +// SetPolicyName sets the PolicyName field's value. +func (s *GetRolePolicyInput) SetPolicyName(v string) *GetRolePolicyInput { + s.PolicyName = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *GetRolePolicyInput) SetRoleName(v string) *GetRolePolicyInput { + s.RoleName = &v + return s +} + // Contains the response to a successful GetRolePolicy request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetRolePolicyResponse type GetRolePolicyOutput struct { _ struct{} `type:"structure"` @@ -14293,6 +16090,25 @@ func (s GetRolePolicyOutput) GoString() string { return s.String() } +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *GetRolePolicyOutput) SetPolicyDocument(v string) *GetRolePolicyOutput { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *GetRolePolicyOutput) SetPolicyName(v string) *GetRolePolicyOutput { + s.PolicyName = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *GetRolePolicyOutput) SetRoleName(v string) *GetRolePolicyOutput { + s.RoleName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetSAMLProviderRequest type GetSAMLProviderInput struct { _ struct{} `type:"structure"` @@ -14333,7 +16149,14 @@ func (s *GetSAMLProviderInput) Validate() error { return nil } +// SetSAMLProviderArn sets the SAMLProviderArn field's value. +func (s *GetSAMLProviderInput) SetSAMLProviderArn(v string) *GetSAMLProviderInput { + s.SAMLProviderArn = &v + return s +} + // Contains the response to a successful GetSAMLProvider request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetSAMLProviderResponse type GetSAMLProviderOutput struct { _ struct{} `type:"structure"` @@ -14357,6 +16180,25 @@ func (s GetSAMLProviderOutput) GoString() string { return s.String() } +// SetCreateDate sets the CreateDate field's value. +func (s *GetSAMLProviderOutput) SetCreateDate(v time.Time) *GetSAMLProviderOutput { + s.CreateDate = &v + return s +} + +// SetSAMLMetadataDocument sets the SAMLMetadataDocument field's value. +func (s *GetSAMLProviderOutput) SetSAMLMetadataDocument(v string) *GetSAMLProviderOutput { + s.SAMLMetadataDocument = &v + return s +} + +// SetValidUntil sets the ValidUntil field's value. +func (s *GetSAMLProviderOutput) SetValidUntil(v time.Time) *GetSAMLProviderOutput { + s.ValidUntil = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetSSHPublicKeyRequest type GetSSHPublicKeyInput struct { _ struct{} `type:"structure"` @@ -14369,7 +16211,7 @@ type GetSSHPublicKeyInput struct { // The unique identifier for the SSH public key. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters that can consist of any upper or lowercased letter // or digit. // @@ -14378,7 +16220,7 @@ type GetSSHPublicKeyInput struct { // The name of the IAM user associated with the SSH public key. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -14421,7 +16263,26 @@ func (s *GetSSHPublicKeyInput) Validate() error { return nil } +// SetEncoding sets the Encoding field's value. +func (s *GetSSHPublicKeyInput) SetEncoding(v string) *GetSSHPublicKeyInput { + s.Encoding = &v + return s +} + +// SetSSHPublicKeyId sets the SSHPublicKeyId field's value. +func (s *GetSSHPublicKeyInput) SetSSHPublicKeyId(v string) *GetSSHPublicKeyInput { + s.SSHPublicKeyId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *GetSSHPublicKeyInput) SetUserName(v string) *GetSSHPublicKeyInput { + s.UserName = &v + return s +} + // Contains the response to a successful GetSSHPublicKey request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetSSHPublicKeyResponse type GetSSHPublicKeyOutput struct { _ struct{} `type:"structure"` @@ -14439,12 +16300,19 @@ func (s GetSSHPublicKeyOutput) GoString() string { return s.String() } +// SetSSHPublicKey sets the SSHPublicKey field's value. +func (s *GetSSHPublicKeyOutput) SetSSHPublicKey(v *SSHPublicKey) *GetSSHPublicKeyOutput { + s.SSHPublicKey = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetServerCertificateRequest type GetServerCertificateInput struct { _ struct{} `type:"structure"` // The name of the server certificate you want to retrieve information about. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -14478,7 +16346,14 @@ func (s *GetServerCertificateInput) Validate() error { return nil } +// SetServerCertificateName sets the ServerCertificateName field's value. +func (s *GetServerCertificateInput) SetServerCertificateName(v string) *GetServerCertificateInput { + s.ServerCertificateName = &v + return s +} + // Contains the response to a successful GetServerCertificate request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetServerCertificateResponse type GetServerCertificateOutput struct { _ struct{} `type:"structure"` @@ -14498,16 +16373,22 @@ func (s GetServerCertificateOutput) GoString() string { return s.String() } +// SetServerCertificate sets the ServerCertificate field's value. +func (s *GetServerCertificateOutput) SetServerCertificate(v *ServerCertificate) *GetServerCertificateOutput { + s.ServerCertificate = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetUserRequest type GetUserInput struct { _ struct{} `type:"structure"` // The name of the user to get information about. // // This parameter is optional. If it is not included, it defaults to the user - // making the request. The regex pattern (http://wikipedia.org/wiki/regex) for - // this parameter is a string of characters consisting of upper and lowercase - // alphanumeric characters with no spaces. You can also include any of the following - // characters: =,.@- + // making the request. This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) + // a string of characters consisting of upper and lowercase alphanumeric characters + // with no spaces. You can also include any of the following characters: =,.@- UserName *string `min:"1" type:"string"` } @@ -14534,7 +16415,14 @@ func (s *GetUserInput) Validate() error { return nil } +// SetUserName sets the UserName field's value. +func (s *GetUserInput) SetUserName(v string) *GetUserInput { + s.UserName = &v + return s +} + // Contains the response to a successful GetUser request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetUserResponse type GetUserOutput struct { _ struct{} `type:"structure"` @@ -14554,12 +16442,19 @@ func (s GetUserOutput) GoString() string { return s.String() } +// SetUser sets the User field's value. +func (s *GetUserOutput) SetUser(v *User) *GetUserOutput { + s.User = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetUserPolicyRequest type GetUserPolicyInput struct { _ struct{} `type:"structure"` // The name of the policy document to get. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -14568,7 +16463,7 @@ type GetUserPolicyInput struct { // The name of the user who the policy is associated with. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -14608,7 +16503,20 @@ func (s *GetUserPolicyInput) Validate() error { return nil } +// SetPolicyName sets the PolicyName field's value. +func (s *GetUserPolicyInput) SetPolicyName(v string) *GetUserPolicyInput { + s.PolicyName = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *GetUserPolicyInput) SetUserName(v string) *GetUserPolicyInput { + s.UserName = &v + return s +} + // Contains the response to a successful GetUserPolicy request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetUserPolicyResponse type GetUserPolicyOutput struct { _ struct{} `type:"structure"` @@ -14638,15 +16546,34 @@ func (s GetUserPolicyOutput) GoString() string { return s.String() } -// Contains information about an IAM group entity. -// +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *GetUserPolicyOutput) SetPolicyDocument(v string) *GetUserPolicyOutput { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *GetUserPolicyOutput) SetPolicyName(v string) *GetUserPolicyOutput { + s.PolicyName = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *GetUserPolicyOutput) SetUserName(v string) *GetUserPolicyOutput { + s.UserName = &v + return s +} + +// Contains information about an IAM group entity. +// // This data type is used as a response element in the following actions: // -// CreateGroup +// * CreateGroup // -// GetGroup +// * GetGroup // -// ListGroups +// * ListGroups +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/Group type Group struct { _ struct{} `type:"structure"` @@ -14693,17 +16620,48 @@ func (s Group) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Group) SetArn(v string) *Group { + s.Arn = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *Group) SetCreateDate(v time.Time) *Group { + s.CreateDate = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *Group) SetGroupId(v string) *Group { + s.GroupId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *Group) SetGroupName(v string) *Group { + s.GroupName = &v + return s +} + +// SetPath sets the Path field's value. +func (s *Group) SetPath(v string) *Group { + s.Path = &v + return s +} + // Contains information about an IAM group, including all of the group's policies. // // This data type is used as a response element in the GetAccountAuthorizationDetails // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GroupDetail type GroupDetail struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, go to Amazon Resource Names (ARNs) and - // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS + // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. Arn *string `min:"20" type:"string"` @@ -14741,17 +16699,60 @@ func (s GroupDetail) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *GroupDetail) SetArn(v string) *GroupDetail { + s.Arn = &v + return s +} + +// SetAttachedManagedPolicies sets the AttachedManagedPolicies field's value. +func (s *GroupDetail) SetAttachedManagedPolicies(v []*AttachedPolicy) *GroupDetail { + s.AttachedManagedPolicies = v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *GroupDetail) SetCreateDate(v time.Time) *GroupDetail { + s.CreateDate = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *GroupDetail) SetGroupId(v string) *GroupDetail { + s.GroupId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *GroupDetail) SetGroupName(v string) *GroupDetail { + s.GroupName = &v + return s +} + +// SetGroupPolicyList sets the GroupPolicyList field's value. +func (s *GroupDetail) SetGroupPolicyList(v []*PolicyDetail) *GroupDetail { + s.GroupPolicyList = v + return s +} + +// SetPath sets the Path field's value. +func (s *GroupDetail) SetPath(v string) *GroupDetail { + s.Path = &v + return s +} + // Contains information about an instance profile. // // This data type is used as a response element in the following actions: // -// CreateInstanceProfile +// * CreateInstanceProfile // -// GetInstanceProfile +// * GetInstanceProfile // -// ListInstanceProfiles +// * ListInstanceProfiles // -// ListInstanceProfilesForRole +// * ListInstanceProfilesForRole +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/InstanceProfile type InstanceProfile struct { _ struct{} `type:"structure"` @@ -14803,6 +16804,43 @@ func (s InstanceProfile) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *InstanceProfile) SetArn(v string) *InstanceProfile { + s.Arn = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *InstanceProfile) SetCreateDate(v time.Time) *InstanceProfile { + s.CreateDate = &v + return s +} + +// SetInstanceProfileId sets the InstanceProfileId field's value. +func (s *InstanceProfile) SetInstanceProfileId(v string) *InstanceProfile { + s.InstanceProfileId = &v + return s +} + +// SetInstanceProfileName sets the InstanceProfileName field's value. +func (s *InstanceProfile) SetInstanceProfileName(v string) *InstanceProfile { + s.InstanceProfileName = &v + return s +} + +// SetPath sets the Path field's value. +func (s *InstanceProfile) SetPath(v string) *InstanceProfile { + s.Path = &v + return s +} + +// SetRoles sets the Roles field's value. +func (s *InstanceProfile) SetRoles(v []*Role) *InstanceProfile { + s.Roles = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListAccessKeysRequest type ListAccessKeysInput struct { _ struct{} `type:"structure"` @@ -14812,20 +16850,20 @@ type ListAccessKeysInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // The name of the user. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- UserName *string `min:"1" type:"string"` @@ -14860,7 +16898,26 @@ func (s *ListAccessKeysInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListAccessKeysInput) SetMarker(v string) *ListAccessKeysInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListAccessKeysInput) SetMaxItems(v int64) *ListAccessKeysInput { + s.MaxItems = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ListAccessKeysInput) SetUserName(v string) *ListAccessKeysInput { + s.UserName = &v + return s +} + // Contains the response to a successful ListAccessKeys request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListAccessKeysResponse type ListAccessKeysOutput struct { _ struct{} `type:"structure"` @@ -14892,6 +16949,25 @@ func (s ListAccessKeysOutput) GoString() string { return s.String() } +// SetAccessKeyMetadata sets the AccessKeyMetadata field's value. +func (s *ListAccessKeysOutput) SetAccessKeyMetadata(v []*AccessKeyMetadata) *ListAccessKeysOutput { + s.AccessKeyMetadata = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListAccessKeysOutput) SetIsTruncated(v bool) *ListAccessKeysOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListAccessKeysOutput) SetMarker(v string) *ListAccessKeysOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListAccountAliasesRequest type ListAccountAliasesInput struct { _ struct{} `type:"structure"` @@ -14901,15 +16977,15 @@ type ListAccountAliasesInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` } @@ -14939,7 +17015,20 @@ func (s *ListAccountAliasesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListAccountAliasesInput) SetMarker(v string) *ListAccountAliasesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListAccountAliasesInput) SetMaxItems(v int64) *ListAccountAliasesInput { + s.MaxItems = &v + return s +} + // Contains the response to a successful ListAccountAliases request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListAccountAliasesResponse type ListAccountAliasesOutput struct { _ struct{} `type:"structure"` @@ -14972,13 +17061,32 @@ func (s ListAccountAliasesOutput) GoString() string { return s.String() } +// SetAccountAliases sets the AccountAliases field's value. +func (s *ListAccountAliasesOutput) SetAccountAliases(v []*string) *ListAccountAliasesOutput { + s.AccountAliases = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListAccountAliasesOutput) SetIsTruncated(v bool) *ListAccountAliasesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListAccountAliasesOutput) SetMarker(v string) *ListAccountAliasesOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListAttachedGroupPoliciesRequest type ListAttachedGroupPoliciesInput struct { _ struct{} `type:"structure"` // The name (friendly name, not ARN) of the group to list attached policies // for. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -14991,21 +17099,21 @@ type ListAttachedGroupPoliciesInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // The path prefix for filtering the results. This parameter is optional. If // it is not included, it defaults to a slash (/), listing all policies. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of either a forward slash (/) by itself // or a string that must begin and end with forward slashes, containing any // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including @@ -15045,7 +17153,32 @@ func (s *ListAttachedGroupPoliciesInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *ListAttachedGroupPoliciesInput) SetGroupName(v string) *ListAttachedGroupPoliciesInput { + s.GroupName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListAttachedGroupPoliciesInput) SetMarker(v string) *ListAttachedGroupPoliciesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListAttachedGroupPoliciesInput) SetMaxItems(v int64) *ListAttachedGroupPoliciesInput { + s.MaxItems = &v + return s +} + +// SetPathPrefix sets the PathPrefix field's value. +func (s *ListAttachedGroupPoliciesInput) SetPathPrefix(v string) *ListAttachedGroupPoliciesInput { + s.PathPrefix = &v + return s +} + // Contains the response to a successful ListAttachedGroupPolicies request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListAttachedGroupPoliciesResponse type ListAttachedGroupPoliciesOutput struct { _ struct{} `type:"structure"` @@ -15075,6 +17208,25 @@ func (s ListAttachedGroupPoliciesOutput) GoString() string { return s.String() } +// SetAttachedPolicies sets the AttachedPolicies field's value. +func (s *ListAttachedGroupPoliciesOutput) SetAttachedPolicies(v []*AttachedPolicy) *ListAttachedGroupPoliciesOutput { + s.AttachedPolicies = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListAttachedGroupPoliciesOutput) SetIsTruncated(v bool) *ListAttachedGroupPoliciesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListAttachedGroupPoliciesOutput) SetMarker(v string) *ListAttachedGroupPoliciesOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListAttachedRolePoliciesRequest type ListAttachedRolePoliciesInput struct { _ struct{} `type:"structure"` @@ -15084,21 +17236,21 @@ type ListAttachedRolePoliciesInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // The path prefix for filtering the results. This parameter is optional. If // it is not included, it defaults to a slash (/), listing all policies. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of either a forward slash (/) by itself // or a string that must begin and end with forward slashes, containing any // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including @@ -15107,7 +17259,7 @@ type ListAttachedRolePoliciesInput struct { // The name (friendly name, not ARN) of the role to list attached policies for. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -15147,7 +17299,32 @@ func (s *ListAttachedRolePoliciesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListAttachedRolePoliciesInput) SetMarker(v string) *ListAttachedRolePoliciesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListAttachedRolePoliciesInput) SetMaxItems(v int64) *ListAttachedRolePoliciesInput { + s.MaxItems = &v + return s +} + +// SetPathPrefix sets the PathPrefix field's value. +func (s *ListAttachedRolePoliciesInput) SetPathPrefix(v string) *ListAttachedRolePoliciesInput { + s.PathPrefix = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *ListAttachedRolePoliciesInput) SetRoleName(v string) *ListAttachedRolePoliciesInput { + s.RoleName = &v + return s +} + // Contains the response to a successful ListAttachedRolePolicies request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListAttachedRolePoliciesResponse type ListAttachedRolePoliciesOutput struct { _ struct{} `type:"structure"` @@ -15177,6 +17354,25 @@ func (s ListAttachedRolePoliciesOutput) GoString() string { return s.String() } +// SetAttachedPolicies sets the AttachedPolicies field's value. +func (s *ListAttachedRolePoliciesOutput) SetAttachedPolicies(v []*AttachedPolicy) *ListAttachedRolePoliciesOutput { + s.AttachedPolicies = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListAttachedRolePoliciesOutput) SetIsTruncated(v bool) *ListAttachedRolePoliciesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListAttachedRolePoliciesOutput) SetMarker(v string) *ListAttachedRolePoliciesOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListAttachedUserPoliciesRequest type ListAttachedUserPoliciesInput struct { _ struct{} `type:"structure"` @@ -15186,21 +17382,21 @@ type ListAttachedUserPoliciesInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // The path prefix for filtering the results. This parameter is optional. If // it is not included, it defaults to a slash (/), listing all policies. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of either a forward slash (/) by itself // or a string that must begin and end with forward slashes, containing any // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including @@ -15209,7 +17405,7 @@ type ListAttachedUserPoliciesInput struct { // The name (friendly name, not ARN) of the user to list attached policies for. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -15249,7 +17445,32 @@ func (s *ListAttachedUserPoliciesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListAttachedUserPoliciesInput) SetMarker(v string) *ListAttachedUserPoliciesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListAttachedUserPoliciesInput) SetMaxItems(v int64) *ListAttachedUserPoliciesInput { + s.MaxItems = &v + return s +} + +// SetPathPrefix sets the PathPrefix field's value. +func (s *ListAttachedUserPoliciesInput) SetPathPrefix(v string) *ListAttachedUserPoliciesInput { + s.PathPrefix = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ListAttachedUserPoliciesInput) SetUserName(v string) *ListAttachedUserPoliciesInput { + s.UserName = &v + return s +} + // Contains the response to a successful ListAttachedUserPolicies request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListAttachedUserPoliciesResponse type ListAttachedUserPoliciesOutput struct { _ struct{} `type:"structure"` @@ -15279,6 +17500,25 @@ func (s ListAttachedUserPoliciesOutput) GoString() string { return s.String() } +// SetAttachedPolicies sets the AttachedPolicies field's value. +func (s *ListAttachedUserPoliciesOutput) SetAttachedPolicies(v []*AttachedPolicy) *ListAttachedUserPoliciesOutput { + s.AttachedPolicies = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListAttachedUserPoliciesOutput) SetIsTruncated(v bool) *ListAttachedUserPoliciesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListAttachedUserPoliciesOutput) SetMarker(v string) *ListAttachedUserPoliciesOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListEntitiesForPolicyRequest type ListEntitiesForPolicyInput struct { _ struct{} `type:"structure"` @@ -15296,21 +17536,21 @@ type ListEntitiesForPolicyInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // The path prefix for filtering the results. This parameter is optional. If // it is not included, it defaults to a slash (/), listing all entities. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of either a forward slash (/) by itself // or a string that must begin and end with forward slashes, containing any // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including @@ -15362,7 +17602,38 @@ func (s *ListEntitiesForPolicyInput) Validate() error { return nil } +// SetEntityFilter sets the EntityFilter field's value. +func (s *ListEntitiesForPolicyInput) SetEntityFilter(v string) *ListEntitiesForPolicyInput { + s.EntityFilter = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListEntitiesForPolicyInput) SetMarker(v string) *ListEntitiesForPolicyInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListEntitiesForPolicyInput) SetMaxItems(v int64) *ListEntitiesForPolicyInput { + s.MaxItems = &v + return s +} + +// SetPathPrefix sets the PathPrefix field's value. +func (s *ListEntitiesForPolicyInput) SetPathPrefix(v string) *ListEntitiesForPolicyInput { + s.PathPrefix = &v + return s +} + +// SetPolicyArn sets the PolicyArn field's value. +func (s *ListEntitiesForPolicyInput) SetPolicyArn(v string) *ListEntitiesForPolicyInput { + s.PolicyArn = &v + return s +} + // Contains the response to a successful ListEntitiesForPolicy request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListEntitiesForPolicyResponse type ListEntitiesForPolicyOutput struct { _ struct{} `type:"structure"` @@ -15398,12 +17669,43 @@ func (s ListEntitiesForPolicyOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListEntitiesForPolicyOutput) SetIsTruncated(v bool) *ListEntitiesForPolicyOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListEntitiesForPolicyOutput) SetMarker(v string) *ListEntitiesForPolicyOutput { + s.Marker = &v + return s +} + +// SetPolicyGroups sets the PolicyGroups field's value. +func (s *ListEntitiesForPolicyOutput) SetPolicyGroups(v []*PolicyGroup) *ListEntitiesForPolicyOutput { + s.PolicyGroups = v + return s +} + +// SetPolicyRoles sets the PolicyRoles field's value. +func (s *ListEntitiesForPolicyOutput) SetPolicyRoles(v []*PolicyRole) *ListEntitiesForPolicyOutput { + s.PolicyRoles = v + return s +} + +// SetPolicyUsers sets the PolicyUsers field's value. +func (s *ListEntitiesForPolicyOutput) SetPolicyUsers(v []*PolicyUser) *ListEntitiesForPolicyOutput { + s.PolicyUsers = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListGroupPoliciesRequest type ListGroupPoliciesInput struct { _ struct{} `type:"structure"` // The name of the group to list policies for. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -15416,15 +17718,15 @@ type ListGroupPoliciesInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` } @@ -15460,7 +17762,26 @@ func (s *ListGroupPoliciesInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *ListGroupPoliciesInput) SetGroupName(v string) *ListGroupPoliciesInput { + s.GroupName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListGroupPoliciesInput) SetMarker(v string) *ListGroupPoliciesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListGroupPoliciesInput) SetMaxItems(v int64) *ListGroupPoliciesInput { + s.MaxItems = &v + return s +} + // Contains the response to a successful ListGroupPolicies request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListGroupPoliciesResponse type ListGroupPoliciesOutput struct { _ struct{} `type:"structure"` @@ -15492,6 +17813,25 @@ func (s ListGroupPoliciesOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListGroupPoliciesOutput) SetIsTruncated(v bool) *ListGroupPoliciesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListGroupPoliciesOutput) SetMarker(v string) *ListGroupPoliciesOutput { + s.Marker = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *ListGroupPoliciesOutput) SetPolicyNames(v []*string) *ListGroupPoliciesOutput { + s.PolicyNames = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListGroupsForUserRequest type ListGroupsForUserInput struct { _ struct{} `type:"structure"` @@ -15501,20 +17841,20 @@ type ListGroupsForUserInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // The name of the user to list groups for. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -15554,7 +17894,26 @@ func (s *ListGroupsForUserInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListGroupsForUserInput) SetMarker(v string) *ListGroupsForUserInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListGroupsForUserInput) SetMaxItems(v int64) *ListGroupsForUserInput { + s.MaxItems = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ListGroupsForUserInput) SetUserName(v string) *ListGroupsForUserInput { + s.UserName = &v + return s +} + // Contains the response to a successful ListGroupsForUser request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListGroupsForUserResponse type ListGroupsForUserOutput struct { _ struct{} `type:"structure"` @@ -15586,6 +17945,25 @@ func (s ListGroupsForUserOutput) GoString() string { return s.String() } +// SetGroups sets the Groups field's value. +func (s *ListGroupsForUserOutput) SetGroups(v []*Group) *ListGroupsForUserOutput { + s.Groups = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListGroupsForUserOutput) SetIsTruncated(v bool) *ListGroupsForUserOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListGroupsForUserOutput) SetMarker(v string) *ListGroupsForUserOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListGroupsRequest type ListGroupsInput struct { _ struct{} `type:"structure"` @@ -15595,27 +17973,26 @@ type ListGroupsInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // The path prefix for filtering the results. For example, the prefix /division_abc/subdivision_xyz/ // gets all groups whose path starts with /division_abc/subdivision_xyz/. // // This parameter is optional. If it is not included, it defaults to a slash - // (/), listing all groups. The regex pattern (http://wikipedia.org/wiki/regex) - // for this parameter is a string of characters consisting of either a forward - // slash (/) by itself or a string that must begin and end with forward slashes, - // containing any ASCII character from the ! (\u0021) thru the DEL character - // (\u007F), including most punctuation characters, digits, and upper and lowercased - // letters. + // (/), listing all groups. This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex)) + // a string of characters consisting of either a forward slash (/) by itself + // or a string that must begin and end with forward slashes, containing any + // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including + // most punctuation characters, digits, and upper and lowercased letters. PathPrefix *string `min:"1" type:"string"` } @@ -15648,7 +18025,26 @@ func (s *ListGroupsInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListGroupsInput) SetMarker(v string) *ListGroupsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListGroupsInput) SetMaxItems(v int64) *ListGroupsInput { + s.MaxItems = &v + return s +} + +// SetPathPrefix sets the PathPrefix field's value. +func (s *ListGroupsInput) SetPathPrefix(v string) *ListGroupsInput { + s.PathPrefix = &v + return s +} + // Contains the response to a successful ListGroups request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListGroupsResponse type ListGroupsOutput struct { _ struct{} `type:"structure"` @@ -15680,6 +18076,25 @@ func (s ListGroupsOutput) GoString() string { return s.String() } +// SetGroups sets the Groups field's value. +func (s *ListGroupsOutput) SetGroups(v []*Group) *ListGroupsOutput { + s.Groups = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListGroupsOutput) SetIsTruncated(v bool) *ListGroupsOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListGroupsOutput) SetMarker(v string) *ListGroupsOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListInstanceProfilesForRoleRequest type ListInstanceProfilesForRoleInput struct { _ struct{} `type:"structure"` @@ -15689,20 +18104,20 @@ type ListInstanceProfilesForRoleInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // The name of the role to list instance profiles for. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -15742,7 +18157,26 @@ func (s *ListInstanceProfilesForRoleInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListInstanceProfilesForRoleInput) SetMarker(v string) *ListInstanceProfilesForRoleInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListInstanceProfilesForRoleInput) SetMaxItems(v int64) *ListInstanceProfilesForRoleInput { + s.MaxItems = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *ListInstanceProfilesForRoleInput) SetRoleName(v string) *ListInstanceProfilesForRoleInput { + s.RoleName = &v + return s +} + // Contains the response to a successful ListInstanceProfilesForRole request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListInstanceProfilesForRoleResponse type ListInstanceProfilesForRoleOutput struct { _ struct{} `type:"structure"` @@ -15774,6 +18208,25 @@ func (s ListInstanceProfilesForRoleOutput) GoString() string { return s.String() } +// SetInstanceProfiles sets the InstanceProfiles field's value. +func (s *ListInstanceProfilesForRoleOutput) SetInstanceProfiles(v []*InstanceProfile) *ListInstanceProfilesForRoleOutput { + s.InstanceProfiles = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListInstanceProfilesForRoleOutput) SetIsTruncated(v bool) *ListInstanceProfilesForRoleOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListInstanceProfilesForRoleOutput) SetMarker(v string) *ListInstanceProfilesForRoleOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListInstanceProfilesRequest type ListInstanceProfilesInput struct { _ struct{} `type:"structure"` @@ -15783,27 +18236,27 @@ type ListInstanceProfilesInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // The path prefix for filtering the results. For example, the prefix /application_abc/component_xyz/ // gets all instance profiles whose path starts with /application_abc/component_xyz/. // // This parameter is optional. If it is not included, it defaults to a slash - // (/), listing all instance profiles. The regex pattern (http://wikipedia.org/wiki/regex) - // for this parameter is a string of characters consisting of either a forward - // slash (/) by itself or a string that must begin and end with forward slashes, - // containing any ASCII character from the ! (\u0021) thru the DEL character - // (\u007F), including most punctuation characters, digits, and upper and lowercased - // letters. + // (/), listing all instance profiles. This paramater allows (per its regex + // pattern (http://wikipedia.org/wiki/regex)) a string of characters consisting + // of either a forward slash (/) by itself or a string that must begin and end + // with forward slashes, containing any ASCII character from the ! (\u0021) + // thru the DEL character (\u007F), including most punctuation characters, digits, + // and upper and lowercased letters. PathPrefix *string `min:"1" type:"string"` } @@ -15836,7 +18289,26 @@ func (s *ListInstanceProfilesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListInstanceProfilesInput) SetMarker(v string) *ListInstanceProfilesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListInstanceProfilesInput) SetMaxItems(v int64) *ListInstanceProfilesInput { + s.MaxItems = &v + return s +} + +// SetPathPrefix sets the PathPrefix field's value. +func (s *ListInstanceProfilesInput) SetPathPrefix(v string) *ListInstanceProfilesInput { + s.PathPrefix = &v + return s +} + // Contains the response to a successful ListInstanceProfiles request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListInstanceProfilesResponse type ListInstanceProfilesOutput struct { _ struct{} `type:"structure"` @@ -15868,6 +18340,25 @@ func (s ListInstanceProfilesOutput) GoString() string { return s.String() } +// SetInstanceProfiles sets the InstanceProfiles field's value. +func (s *ListInstanceProfilesOutput) SetInstanceProfiles(v []*InstanceProfile) *ListInstanceProfilesOutput { + s.InstanceProfiles = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListInstanceProfilesOutput) SetIsTruncated(v bool) *ListInstanceProfilesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListInstanceProfilesOutput) SetMarker(v string) *ListInstanceProfilesOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListMFADevicesRequest type ListMFADevicesInput struct { _ struct{} `type:"structure"` @@ -15877,20 +18368,20 @@ type ListMFADevicesInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // The name of the user whose MFA devices you want to list. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- UserName *string `min:"1" type:"string"` @@ -15925,7 +18416,26 @@ func (s *ListMFADevicesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListMFADevicesInput) SetMarker(v string) *ListMFADevicesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListMFADevicesInput) SetMaxItems(v int64) *ListMFADevicesInput { + s.MaxItems = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ListMFADevicesInput) SetUserName(v string) *ListMFADevicesInput { + s.UserName = &v + return s +} + // Contains the response to a successful ListMFADevices request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListMFADevicesResponse type ListMFADevicesOutput struct { _ struct{} `type:"structure"` @@ -15957,6 +18467,25 @@ func (s ListMFADevicesOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListMFADevicesOutput) SetIsTruncated(v bool) *ListMFADevicesOutput { + s.IsTruncated = &v + return s +} + +// SetMFADevices sets the MFADevices field's value. +func (s *ListMFADevicesOutput) SetMFADevices(v []*MFADevice) *ListMFADevicesOutput { + s.MFADevices = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListMFADevicesOutput) SetMarker(v string) *ListMFADevicesOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListOpenIDConnectProvidersRequest type ListOpenIDConnectProvidersInput struct { _ struct{} `type:"structure"` } @@ -15972,6 +18501,7 @@ func (s ListOpenIDConnectProvidersInput) GoString() string { } // Contains the response to a successful ListOpenIDConnectProviders request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListOpenIDConnectProvidersResponse type ListOpenIDConnectProvidersOutput struct { _ struct{} `type:"structure"` @@ -15989,6 +18519,13 @@ func (s ListOpenIDConnectProvidersOutput) GoString() string { return s.String() } +// SetOpenIDConnectProviderList sets the OpenIDConnectProviderList field's value. +func (s *ListOpenIDConnectProvidersOutput) SetOpenIDConnectProviderList(v []*OpenIDConnectProviderListEntry) *ListOpenIDConnectProvidersOutput { + s.OpenIDConnectProviderList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListPoliciesRequest type ListPoliciesInput struct { _ struct{} `type:"structure"` @@ -15998,31 +18535,31 @@ type ListPoliciesInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // A flag to filter the results to only the attached policies. // - // When OnlyAttached is true, the returned list contains only the policies - // that are attached to an IAM user, group, or role. When OnlyAttached is false, + // When OnlyAttached is true, the returned list contains only the policies that + // are attached to an IAM user, group, or role. When OnlyAttached is false, // or when the parameter is not included, all policies are returned. OnlyAttached *bool `type:"boolean"` // The path prefix for filtering the results. This parameter is optional. If - // it is not included, it defaults to a slash (/), listing all policies. The - // regex pattern (http://wikipedia.org/wiki/regex) for this parameter is a string - // of characters consisting of either a forward slash (/) by itself or a string - // that must begin and end with forward slashes, containing any ASCII character - // from the ! (\u0021) thru the DEL character (\u007F), including most punctuation - // characters, digits, and upper and lowercased letters. + // it is not included, it defaults to a slash (/), listing all policies. This + // paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex)) + // a string of characters consisting of either a forward slash (/) by itself + // or a string that must begin and end with forward slashes, containing any + // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including + // most punctuation characters, digits, and upper and lowercased letters. PathPrefix *string `type:"string"` // The scope to use for filtering the results. @@ -16061,7 +18598,38 @@ func (s *ListPoliciesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListPoliciesInput) SetMarker(v string) *ListPoliciesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListPoliciesInput) SetMaxItems(v int64) *ListPoliciesInput { + s.MaxItems = &v + return s +} + +// SetOnlyAttached sets the OnlyAttached field's value. +func (s *ListPoliciesInput) SetOnlyAttached(v bool) *ListPoliciesInput { + s.OnlyAttached = &v + return s +} + +// SetPathPrefix sets the PathPrefix field's value. +func (s *ListPoliciesInput) SetPathPrefix(v string) *ListPoliciesInput { + s.PathPrefix = &v + return s +} + +// SetScope sets the Scope field's value. +func (s *ListPoliciesInput) SetScope(v string) *ListPoliciesInput { + s.Scope = &v + return s +} + // Contains the response to a successful ListPolicies request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListPoliciesResponse type ListPoliciesOutput struct { _ struct{} `type:"structure"` @@ -16091,6 +18659,25 @@ func (s ListPoliciesOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListPoliciesOutput) SetIsTruncated(v bool) *ListPoliciesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListPoliciesOutput) SetMarker(v string) *ListPoliciesOutput { + s.Marker = &v + return s +} + +// SetPolicies sets the Policies field's value. +func (s *ListPoliciesOutput) SetPolicies(v []*Policy) *ListPoliciesOutput { + s.Policies = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListPolicyVersionsRequest type ListPolicyVersionsInput struct { _ struct{} `type:"structure"` @@ -16100,15 +18687,15 @@ type ListPolicyVersionsInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // The Amazon Resource Name (ARN) of the IAM policy for which you want the versions. @@ -16153,7 +18740,26 @@ func (s *ListPolicyVersionsInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListPolicyVersionsInput) SetMarker(v string) *ListPolicyVersionsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListPolicyVersionsInput) SetMaxItems(v int64) *ListPolicyVersionsInput { + s.MaxItems = &v + return s +} + +// SetPolicyArn sets the PolicyArn field's value. +func (s *ListPolicyVersionsInput) SetPolicyArn(v string) *ListPolicyVersionsInput { + s.PolicyArn = &v + return s +} + // Contains the response to a successful ListPolicyVersions request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListPolicyVersionsResponse type ListPolicyVersionsOutput struct { _ struct{} `type:"structure"` @@ -16187,6 +18793,25 @@ func (s ListPolicyVersionsOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListPolicyVersionsOutput) SetIsTruncated(v bool) *ListPolicyVersionsOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListPolicyVersionsOutput) SetMarker(v string) *ListPolicyVersionsOutput { + s.Marker = &v + return s +} + +// SetVersions sets the Versions field's value. +func (s *ListPolicyVersionsOutput) SetVersions(v []*PolicyVersion) *ListPolicyVersionsOutput { + s.Versions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListRolePoliciesRequest type ListRolePoliciesInput struct { _ struct{} `type:"structure"` @@ -16196,20 +18821,20 @@ type ListRolePoliciesInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // The name of the role to list policies for. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -16249,7 +18874,26 @@ func (s *ListRolePoliciesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListRolePoliciesInput) SetMarker(v string) *ListRolePoliciesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListRolePoliciesInput) SetMaxItems(v int64) *ListRolePoliciesInput { + s.MaxItems = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *ListRolePoliciesInput) SetRoleName(v string) *ListRolePoliciesInput { + s.RoleName = &v + return s +} + // Contains the response to a successful ListRolePolicies request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListRolePoliciesResponse type ListRolePoliciesOutput struct { _ struct{} `type:"structure"` @@ -16281,6 +18925,25 @@ func (s ListRolePoliciesOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListRolePoliciesOutput) SetIsTruncated(v bool) *ListRolePoliciesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListRolePoliciesOutput) SetMarker(v string) *ListRolePoliciesOutput { + s.Marker = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *ListRolePoliciesOutput) SetPolicyNames(v []*string) *ListRolePoliciesOutput { + s.PolicyNames = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListRolesRequest type ListRolesInput struct { _ struct{} `type:"structure"` @@ -16290,27 +18953,26 @@ type ListRolesInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // The path prefix for filtering the results. For example, the prefix /application_abc/component_xyz/ // gets all roles whose path starts with /application_abc/component_xyz/. // // This parameter is optional. If it is not included, it defaults to a slash - // (/), listing all roles. The regex pattern (http://wikipedia.org/wiki/regex) - // for this parameter is a string of characters consisting of either a forward - // slash (/) by itself or a string that must begin and end with forward slashes, - // containing any ASCII character from the ! (\u0021) thru the DEL character - // (\u007F), including most punctuation characters, digits, and upper and lowercased - // letters. + // (/), listing all roles. This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex)) + // a string of characters consisting of either a forward slash (/) by itself + // or a string that must begin and end with forward slashes, containing any + // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including + // most punctuation characters, digits, and upper and lowercased letters. PathPrefix *string `min:"1" type:"string"` } @@ -16343,7 +19005,26 @@ func (s *ListRolesInput) Validate() error { return nil } -// Contains the response to a successful ListRoles request. +// SetMarker sets the Marker field's value. +func (s *ListRolesInput) SetMarker(v string) *ListRolesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListRolesInput) SetMaxItems(v int64) *ListRolesInput { + s.MaxItems = &v + return s +} + +// SetPathPrefix sets the PathPrefix field's value. +func (s *ListRolesInput) SetPathPrefix(v string) *ListRolesInput { + s.PathPrefix = &v + return s +} + +// Contains the response to a successful ListRoles request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListRolesResponse type ListRolesOutput struct { _ struct{} `type:"structure"` @@ -16375,6 +19056,25 @@ func (s ListRolesOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListRolesOutput) SetIsTruncated(v bool) *ListRolesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListRolesOutput) SetMarker(v string) *ListRolesOutput { + s.Marker = &v + return s +} + +// SetRoles sets the Roles field's value. +func (s *ListRolesOutput) SetRoles(v []*Role) *ListRolesOutput { + s.Roles = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListSAMLProvidersRequest type ListSAMLProvidersInput struct { _ struct{} `type:"structure"` } @@ -16390,6 +19090,7 @@ func (s ListSAMLProvidersInput) GoString() string { } // Contains the response to a successful ListSAMLProviders request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListSAMLProvidersResponse type ListSAMLProvidersOutput struct { _ struct{} `type:"structure"` @@ -16407,6 +19108,13 @@ func (s ListSAMLProvidersOutput) GoString() string { return s.String() } +// SetSAMLProviderList sets the SAMLProviderList field's value. +func (s *ListSAMLProvidersOutput) SetSAMLProviderList(v []*SAMLProviderListEntry) *ListSAMLProvidersOutput { + s.SAMLProviderList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListSSHPublicKeysRequest type ListSSHPublicKeysInput struct { _ struct{} `type:"structure"` @@ -16416,22 +19124,22 @@ type ListSSHPublicKeysInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // The name of the IAM user to list SSH public keys for. If none is specified, // the UserName field is determined implicitly based on the AWS access key used // to sign the request. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- UserName *string `min:"1" type:"string"` @@ -16466,7 +19174,26 @@ func (s *ListSSHPublicKeysInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListSSHPublicKeysInput) SetMarker(v string) *ListSSHPublicKeysInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListSSHPublicKeysInput) SetMaxItems(v int64) *ListSSHPublicKeysInput { + s.MaxItems = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ListSSHPublicKeysInput) SetUserName(v string) *ListSSHPublicKeysInput { + s.UserName = &v + return s +} + // Contains the response to a successful ListSSHPublicKeys request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListSSHPublicKeysResponse type ListSSHPublicKeysOutput struct { _ struct{} `type:"structure"` @@ -16496,6 +19223,25 @@ func (s ListSSHPublicKeysOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListSSHPublicKeysOutput) SetIsTruncated(v bool) *ListSSHPublicKeysOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListSSHPublicKeysOutput) SetMarker(v string) *ListSSHPublicKeysOutput { + s.Marker = &v + return s +} + +// SetSSHPublicKeys sets the SSHPublicKeys field's value. +func (s *ListSSHPublicKeysOutput) SetSSHPublicKeys(v []*SSHPublicKeyMetadata) *ListSSHPublicKeysOutput { + s.SSHPublicKeys = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListServerCertificatesRequest type ListServerCertificatesInput struct { _ struct{} `type:"structure"` @@ -16505,27 +19251,27 @@ type ListServerCertificatesInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // The path prefix for filtering the results. For example: /company/servercerts // would get all server certificates for which the path starts with /company/servercerts. // // This parameter is optional. If it is not included, it defaults to a slash - // (/), listing all server certificates. The regex pattern (http://wikipedia.org/wiki/regex) - // for this parameter is a string of characters consisting of either a forward - // slash (/) by itself or a string that must begin and end with forward slashes, - // containing any ASCII character from the ! (\u0021) thru the DEL character - // (\u007F), including most punctuation characters, digits, and upper and lowercased - // letters. + // (/), listing all server certificates. This paramater allows (per its regex + // pattern (http://wikipedia.org/wiki/regex)) a string of characters consisting + // of either a forward slash (/) by itself or a string that must begin and end + // with forward slashes, containing any ASCII character from the ! (\u0021) + // thru the DEL character (\u007F), including most punctuation characters, digits, + // and upper and lowercased letters. PathPrefix *string `min:"1" type:"string"` } @@ -16558,7 +19304,26 @@ func (s *ListServerCertificatesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListServerCertificatesInput) SetMarker(v string) *ListServerCertificatesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListServerCertificatesInput) SetMaxItems(v int64) *ListServerCertificatesInput { + s.MaxItems = &v + return s +} + +// SetPathPrefix sets the PathPrefix field's value. +func (s *ListServerCertificatesInput) SetPathPrefix(v string) *ListServerCertificatesInput { + s.PathPrefix = &v + return s +} + // Contains the response to a successful ListServerCertificates request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListServerCertificatesResponse type ListServerCertificatesOutput struct { _ struct{} `type:"structure"` @@ -16590,6 +19355,102 @@ func (s ListServerCertificatesOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListServerCertificatesOutput) SetIsTruncated(v bool) *ListServerCertificatesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListServerCertificatesOutput) SetMarker(v string) *ListServerCertificatesOutput { + s.Marker = &v + return s +} + +// SetServerCertificateMetadataList sets the ServerCertificateMetadataList field's value. +func (s *ListServerCertificatesOutput) SetServerCertificateMetadataList(v []*ServerCertificateMetadata) *ListServerCertificatesOutput { + s.ServerCertificateMetadataList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListServiceSpecificCredentialsRequest +type ListServiceSpecificCredentialsInput struct { + _ struct{} `type:"structure"` + + // Filters the returned results to only those for the specified AWS service. + // If not specified, then AWS returns service-specific credentials for all services. + ServiceName *string `type:"string"` + + // The name of the user whose service-specific credentials you want information + // about. If this value is not specified then the operation assumes the user + // whose credentials are used to call the operation. + // + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) + // a string of characters consisting of upper and lowercase alphanumeric characters + // with no spaces. You can also include any of the following characters: =,.@- + UserName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListServiceSpecificCredentialsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListServiceSpecificCredentialsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListServiceSpecificCredentialsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListServiceSpecificCredentialsInput"} + if s.UserName != nil && len(*s.UserName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServiceName sets the ServiceName field's value. +func (s *ListServiceSpecificCredentialsInput) SetServiceName(v string) *ListServiceSpecificCredentialsInput { + s.ServiceName = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ListServiceSpecificCredentialsInput) SetUserName(v string) *ListServiceSpecificCredentialsInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListServiceSpecificCredentialsResponse +type ListServiceSpecificCredentialsOutput struct { + _ struct{} `type:"structure"` + + // A list of structures that each contain details about a service-specific credential. + ServiceSpecificCredentials []*ServiceSpecificCredentialMetadata `type:"list"` +} + +// String returns the string representation +func (s ListServiceSpecificCredentialsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListServiceSpecificCredentialsOutput) GoString() string { + return s.String() +} + +// SetServiceSpecificCredentials sets the ServiceSpecificCredentials field's value. +func (s *ListServiceSpecificCredentialsOutput) SetServiceSpecificCredentials(v []*ServiceSpecificCredentialMetadata) *ListServiceSpecificCredentialsOutput { + s.ServiceSpecificCredentials = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListSigningCertificatesRequest type ListSigningCertificatesInput struct { _ struct{} `type:"structure"` @@ -16599,20 +19460,20 @@ type ListSigningCertificatesInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // The name of the IAM user whose signing certificates you want to examine. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- UserName *string `min:"1" type:"string"` @@ -16647,7 +19508,26 @@ func (s *ListSigningCertificatesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListSigningCertificatesInput) SetMarker(v string) *ListSigningCertificatesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListSigningCertificatesInput) SetMaxItems(v int64) *ListSigningCertificatesInput { + s.MaxItems = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ListSigningCertificatesInput) SetUserName(v string) *ListSigningCertificatesInput { + s.UserName = &v + return s +} + // Contains the response to a successful ListSigningCertificates request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListSigningCertificatesResponse type ListSigningCertificatesOutput struct { _ struct{} `type:"structure"` @@ -16679,6 +19559,25 @@ func (s ListSigningCertificatesOutput) GoString() string { return s.String() } +// SetCertificates sets the Certificates field's value. +func (s *ListSigningCertificatesOutput) SetCertificates(v []*SigningCertificate) *ListSigningCertificatesOutput { + s.Certificates = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListSigningCertificatesOutput) SetIsTruncated(v bool) *ListSigningCertificatesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListSigningCertificatesOutput) SetMarker(v string) *ListSigningCertificatesOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListUserPoliciesRequest type ListUserPoliciesInput struct { _ struct{} `type:"structure"` @@ -16688,20 +19587,20 @@ type ListUserPoliciesInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // The name of the user to list policies for. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -16741,7 +19640,26 @@ func (s *ListUserPoliciesInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListUserPoliciesInput) SetMarker(v string) *ListUserPoliciesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListUserPoliciesInput) SetMaxItems(v int64) *ListUserPoliciesInput { + s.MaxItems = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ListUserPoliciesInput) SetUserName(v string) *ListUserPoliciesInput { + s.UserName = &v + return s +} + // Contains the response to a successful ListUserPolicies request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListUserPoliciesResponse type ListUserPoliciesOutput struct { _ struct{} `type:"structure"` @@ -16773,6 +19691,25 @@ func (s ListUserPoliciesOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListUserPoliciesOutput) SetIsTruncated(v bool) *ListUserPoliciesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListUserPoliciesOutput) SetMarker(v string) *ListUserPoliciesOutput { + s.Marker = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *ListUserPoliciesOutput) SetPolicyNames(v []*string) *ListUserPoliciesOutput { + s.PolicyNames = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListUsersRequest type ListUsersInput struct { _ struct{} `type:"structure"` @@ -16782,27 +19719,27 @@ type ListUsersInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // The path prefix for filtering the results. For example: /division_abc/subdivision_xyz/, // which would get all user names whose path starts with /division_abc/subdivision_xyz/. // // This parameter is optional. If it is not included, it defaults to a slash - // (/), listing all user names. The regex pattern (http://wikipedia.org/wiki/regex) - // for this parameter is a string of characters consisting of either a forward - // slash (/) by itself or a string that must begin and end with forward slashes, - // containing any ASCII character from the ! (\u0021) thru the DEL character - // (\u007F), including most punctuation characters, digits, and upper and lowercased - // letters. + // (/), listing all user names. This paramater allows (per its regex pattern + // (http://wikipedia.org/wiki/regex)) a string of characters consisting of either + // a forward slash (/) by itself or a string that must begin and end with forward + // slashes, containing any ASCII character from the ! (\u0021) thru the DEL + // character (\u007F), including most punctuation characters, digits, and upper + // and lowercased letters. PathPrefix *string `min:"1" type:"string"` } @@ -16835,7 +19772,26 @@ func (s *ListUsersInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListUsersInput) SetMarker(v string) *ListUsersInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListUsersInput) SetMaxItems(v int64) *ListUsersInput { + s.MaxItems = &v + return s +} + +// SetPathPrefix sets the PathPrefix field's value. +func (s *ListUsersInput) SetPathPrefix(v string) *ListUsersInput { + s.PathPrefix = &v + return s +} + // Contains the response to a successful ListUsers request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListUsersResponse type ListUsersOutput struct { _ struct{} `type:"structure"` @@ -16867,6 +19823,25 @@ func (s ListUsersOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListUsersOutput) SetIsTruncated(v bool) *ListUsersOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListUsersOutput) SetMarker(v string) *ListUsersOutput { + s.Marker = &v + return s +} + +// SetUsers sets the Users field's value. +func (s *ListUsersOutput) SetUsers(v []*User) *ListUsersOutput { + s.Users = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListVirtualMFADevicesRequest type ListVirtualMFADevicesInput struct { _ struct{} `type:"structure"` @@ -16881,15 +19856,15 @@ type ListVirtualMFADevicesInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` } @@ -16919,7 +19894,26 @@ func (s *ListVirtualMFADevicesInput) Validate() error { return nil } +// SetAssignmentStatus sets the AssignmentStatus field's value. +func (s *ListVirtualMFADevicesInput) SetAssignmentStatus(v string) *ListVirtualMFADevicesInput { + s.AssignmentStatus = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListVirtualMFADevicesInput) SetMarker(v string) *ListVirtualMFADevicesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListVirtualMFADevicesInput) SetMaxItems(v int64) *ListVirtualMFADevicesInput { + s.MaxItems = &v + return s +} + // Contains the response to a successful ListVirtualMFADevices request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListVirtualMFADevicesResponse type ListVirtualMFADevicesOutput struct { _ struct{} `type:"structure"` @@ -16952,10 +19946,29 @@ func (s ListVirtualMFADevicesOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListVirtualMFADevicesOutput) SetIsTruncated(v bool) *ListVirtualMFADevicesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListVirtualMFADevicesOutput) SetMarker(v string) *ListVirtualMFADevicesOutput { + s.Marker = &v + return s +} + +// SetVirtualMFADevices sets the VirtualMFADevices field's value. +func (s *ListVirtualMFADevicesOutput) SetVirtualMFADevices(v []*VirtualMFADevice) *ListVirtualMFADevicesOutput { + s.VirtualMFADevices = v + return s +} + // Contains the user name and password create date for a user. // -// This data type is used as a response element in the CreateLoginProfile -// and GetLoginProfile actions. +// This data type is used as a response element in the CreateLoginProfile and +// GetLoginProfile actions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/LoginProfile type LoginProfile struct { _ struct{} `type:"structure"` @@ -16984,9 +19997,28 @@ func (s LoginProfile) GoString() string { return s.String() } +// SetCreateDate sets the CreateDate field's value. +func (s *LoginProfile) SetCreateDate(v time.Time) *LoginProfile { + s.CreateDate = &v + return s +} + +// SetPasswordResetRequired sets the PasswordResetRequired field's value. +func (s *LoginProfile) SetPasswordResetRequired(v bool) *LoginProfile { + s.PasswordResetRequired = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *LoginProfile) SetUserName(v string) *LoginProfile { + s.UserName = &v + return s +} + // Contains information about an MFA device. // // This data type is used as a response element in the ListMFADevices action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/MFADevice type MFADevice struct { _ struct{} `type:"structure"` @@ -17017,6 +20049,24 @@ func (s MFADevice) GoString() string { return s.String() } +// SetEnableDate sets the EnableDate field's value. +func (s *MFADevice) SetEnableDate(v time.Time) *MFADevice { + s.EnableDate = &v + return s +} + +// SetSerialNumber sets the SerialNumber field's value. +func (s *MFADevice) SetSerialNumber(v string) *MFADevice { + s.SerialNumber = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *MFADevice) SetUserName(v string) *MFADevice { + s.UserName = &v + return s +} + // Contains information about a managed policy, including the policy's ARN, // versions, and the number of principal entities (users, groups, and roles) // that the policy is attached to. @@ -17027,13 +20077,14 @@ func (s MFADevice) GoString() string { // For more information about managed policies, see Managed Policies and Inline // Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the Using IAM guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ManagedPolicyDetail type ManagedPolicyDetail struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, go to Amazon Resource Names (ARNs) and - // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS + // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. Arn *string `min:"20" type:"string"` @@ -17097,14 +20148,81 @@ func (s ManagedPolicyDetail) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *ManagedPolicyDetail) SetArn(v string) *ManagedPolicyDetail { + s.Arn = &v + return s +} + +// SetAttachmentCount sets the AttachmentCount field's value. +func (s *ManagedPolicyDetail) SetAttachmentCount(v int64) *ManagedPolicyDetail { + s.AttachmentCount = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *ManagedPolicyDetail) SetCreateDate(v time.Time) *ManagedPolicyDetail { + s.CreateDate = &v + return s +} + +// SetDefaultVersionId sets the DefaultVersionId field's value. +func (s *ManagedPolicyDetail) SetDefaultVersionId(v string) *ManagedPolicyDetail { + s.DefaultVersionId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ManagedPolicyDetail) SetDescription(v string) *ManagedPolicyDetail { + s.Description = &v + return s +} + +// SetIsAttachable sets the IsAttachable field's value. +func (s *ManagedPolicyDetail) SetIsAttachable(v bool) *ManagedPolicyDetail { + s.IsAttachable = &v + return s +} + +// SetPath sets the Path field's value. +func (s *ManagedPolicyDetail) SetPath(v string) *ManagedPolicyDetail { + s.Path = &v + return s +} + +// SetPolicyId sets the PolicyId field's value. +func (s *ManagedPolicyDetail) SetPolicyId(v string) *ManagedPolicyDetail { + s.PolicyId = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *ManagedPolicyDetail) SetPolicyName(v string) *ManagedPolicyDetail { + s.PolicyName = &v + return s +} + +// SetPolicyVersionList sets the PolicyVersionList field's value. +func (s *ManagedPolicyDetail) SetPolicyVersionList(v []*PolicyVersion) *ManagedPolicyDetail { + s.PolicyVersionList = v + return s +} + +// SetUpdateDate sets the UpdateDate field's value. +func (s *ManagedPolicyDetail) SetUpdateDate(v time.Time) *ManagedPolicyDetail { + s.UpdateDate = &v + return s +} + // Contains the Amazon Resource Name (ARN) for an IAM OpenID Connect provider. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/OpenIDConnectProviderListEntry type OpenIDConnectProviderListEntry struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, go to Amazon Resource Names (ARNs) and - // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS + // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. Arn *string `min:"20" type:"string"` } @@ -17119,10 +20237,43 @@ func (s OpenIDConnectProviderListEntry) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *OpenIDConnectProviderListEntry) SetArn(v string) *OpenIDConnectProviderListEntry { + s.Arn = &v + return s +} + +// Contains information about AWS Organizations's affect on a policy simulation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/OrganizationsDecisionDetail +type OrganizationsDecisionDetail struct { + _ struct{} `type:"structure"` + + // Specifies whether the simulated action is allowed by the AWS Organizations + // service control policies that impact the simulated user's account. + AllowedByOrganizations *bool `type:"boolean"` +} + +// String returns the string representation +func (s OrganizationsDecisionDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OrganizationsDecisionDetail) GoString() string { + return s.String() +} + +// SetAllowedByOrganizations sets the AllowedByOrganizations field's value. +func (s *OrganizationsDecisionDetail) SetAllowedByOrganizations(v bool) *OrganizationsDecisionDetail { + s.AllowedByOrganizations = &v + return s +} + // Contains information about the account password policy. // -// This data type is used as a response element in the GetAccountPasswordPolicy +// This data type is used as a response element in the GetAccountPasswordPolicy // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/PasswordPolicy type PasswordPolicy struct { _ struct{} `type:"structure"` @@ -17171,6 +20322,66 @@ func (s PasswordPolicy) GoString() string { return s.String() } +// SetAllowUsersToChangePassword sets the AllowUsersToChangePassword field's value. +func (s *PasswordPolicy) SetAllowUsersToChangePassword(v bool) *PasswordPolicy { + s.AllowUsersToChangePassword = &v + return s +} + +// SetExpirePasswords sets the ExpirePasswords field's value. +func (s *PasswordPolicy) SetExpirePasswords(v bool) *PasswordPolicy { + s.ExpirePasswords = &v + return s +} + +// SetHardExpiry sets the HardExpiry field's value. +func (s *PasswordPolicy) SetHardExpiry(v bool) *PasswordPolicy { + s.HardExpiry = &v + return s +} + +// SetMaxPasswordAge sets the MaxPasswordAge field's value. +func (s *PasswordPolicy) SetMaxPasswordAge(v int64) *PasswordPolicy { + s.MaxPasswordAge = &v + return s +} + +// SetMinimumPasswordLength sets the MinimumPasswordLength field's value. +func (s *PasswordPolicy) SetMinimumPasswordLength(v int64) *PasswordPolicy { + s.MinimumPasswordLength = &v + return s +} + +// SetPasswordReusePrevention sets the PasswordReusePrevention field's value. +func (s *PasswordPolicy) SetPasswordReusePrevention(v int64) *PasswordPolicy { + s.PasswordReusePrevention = &v + return s +} + +// SetRequireLowercaseCharacters sets the RequireLowercaseCharacters field's value. +func (s *PasswordPolicy) SetRequireLowercaseCharacters(v bool) *PasswordPolicy { + s.RequireLowercaseCharacters = &v + return s +} + +// SetRequireNumbers sets the RequireNumbers field's value. +func (s *PasswordPolicy) SetRequireNumbers(v bool) *PasswordPolicy { + s.RequireNumbers = &v + return s +} + +// SetRequireSymbols sets the RequireSymbols field's value. +func (s *PasswordPolicy) SetRequireSymbols(v bool) *PasswordPolicy { + s.RequireSymbols = &v + return s +} + +// SetRequireUppercaseCharacters sets the RequireUppercaseCharacters field's value. +func (s *PasswordPolicy) SetRequireUppercaseCharacters(v bool) *PasswordPolicy { + s.RequireUppercaseCharacters = &v + return s +} + // Contains information about a managed policy. // // This data type is used as a response element in the CreatePolicy, GetPolicy, @@ -17179,13 +20390,14 @@ func (s PasswordPolicy) GoString() string { // For more information about managed policies, refer to Managed Policies and // Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the Using IAM guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/Policy type Policy struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, go to Amazon Resource Names (ARNs) and - // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS + // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. Arn *string `min:"20" type:"string"` @@ -17202,8 +20414,8 @@ type Policy struct { // A friendly description of the policy. // - // This element is included in the response to the GetPolicy operation. It - // is not included in the response to the ListPolicies operation. + // This element is included in the response to the GetPolicy operation. It is + // not included in the response to the ListPolicies operation. Description *string `type:"string"` // Specifies whether the policy can be attached to an IAM user, group, or role. @@ -17244,10 +20456,71 @@ func (s Policy) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Policy) SetArn(v string) *Policy { + s.Arn = &v + return s +} + +// SetAttachmentCount sets the AttachmentCount field's value. +func (s *Policy) SetAttachmentCount(v int64) *Policy { + s.AttachmentCount = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *Policy) SetCreateDate(v time.Time) *Policy { + s.CreateDate = &v + return s +} + +// SetDefaultVersionId sets the DefaultVersionId field's value. +func (s *Policy) SetDefaultVersionId(v string) *Policy { + s.DefaultVersionId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Policy) SetDescription(v string) *Policy { + s.Description = &v + return s +} + +// SetIsAttachable sets the IsAttachable field's value. +func (s *Policy) SetIsAttachable(v bool) *Policy { + s.IsAttachable = &v + return s +} + +// SetPath sets the Path field's value. +func (s *Policy) SetPath(v string) *Policy { + s.Path = &v + return s +} + +// SetPolicyId sets the PolicyId field's value. +func (s *Policy) SetPolicyId(v string) *Policy { + s.PolicyId = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *Policy) SetPolicyName(v string) *Policy { + s.PolicyName = &v + return s +} + +// SetUpdateDate sets the UpdateDate field's value. +func (s *Policy) SetUpdateDate(v time.Time) *Policy { + s.UpdateDate = &v + return s +} + // Contains information about an IAM policy, including the policy document. // // This data type is used as a response element in the GetAccountAuthorizationDetails // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/PolicyDetail type PolicyDetail struct { _ struct{} `type:"structure"` @@ -17268,6 +20541,18 @@ func (s PolicyDetail) GoString() string { return s.String() } +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *PolicyDetail) SetPolicyDocument(v string) *PolicyDetail { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *PolicyDetail) SetPolicyName(v string) *PolicyDetail { + s.PolicyName = &v + return s +} + // Contains information about a group that a managed policy is attached to. // // This data type is used as a response element in the ListEntitiesForPolicy @@ -17276,6 +20561,7 @@ func (s PolicyDetail) GoString() string { // For more information about managed policies, refer to Managed Policies and // Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the Using IAM guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/PolicyGroup type PolicyGroup struct { _ struct{} `type:"structure"` @@ -17298,6 +20584,18 @@ func (s PolicyGroup) GoString() string { return s.String() } +// SetGroupId sets the GroupId field's value. +func (s *PolicyGroup) SetGroupId(v string) *PolicyGroup { + s.GroupId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *PolicyGroup) SetGroupName(v string) *PolicyGroup { + s.GroupName = &v + return s +} + // Contains information about a role that a managed policy is attached to. // // This data type is used as a response element in the ListEntitiesForPolicy @@ -17306,6 +20604,7 @@ func (s PolicyGroup) GoString() string { // For more information about managed policies, refer to Managed Policies and // Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the Using IAM guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/PolicyRole type PolicyRole struct { _ struct{} `type:"structure"` @@ -17328,6 +20627,18 @@ func (s PolicyRole) GoString() string { return s.String() } +// SetRoleId sets the RoleId field's value. +func (s *PolicyRole) SetRoleId(v string) *PolicyRole { + s.RoleId = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *PolicyRole) SetRoleName(v string) *PolicyRole { + s.RoleName = &v + return s +} + // Contains information about a user that a managed policy is attached to. // // This data type is used as a response element in the ListEntitiesForPolicy @@ -17336,6 +20647,7 @@ func (s PolicyRole) GoString() string { // For more information about managed policies, refer to Managed Policies and // Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the Using IAM guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/PolicyUser type PolicyUser struct { _ struct{} `type:"structure"` @@ -17358,6 +20670,18 @@ func (s PolicyUser) GoString() string { return s.String() } +// SetUserId sets the UserId field's value. +func (s *PolicyUser) SetUserId(v string) *PolicyUser { + s.UserId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *PolicyUser) SetUserName(v string) *PolicyUser { + s.UserName = &v + return s +} + // Contains information about a version of a managed policy. // // This data type is used as a response element in the CreatePolicyVersion, @@ -17367,6 +20691,7 @@ func (s PolicyUser) GoString() string { // For more information about managed policies, refer to Managed Policies and // Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the Using IAM guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/PolicyVersion type PolicyVersion struct { _ struct{} `type:"structure"` @@ -17376,9 +20701,9 @@ type PolicyVersion struct { // The policy document. // - // The policy document is returned in the response to the GetPolicyVersion - // and GetAccountAuthorizationDetails operations. It is not returned in the - // response to the CreatePolicyVersion or ListPolicyVersions operations. + // The policy document is returned in the response to the GetPolicyVersion and + // GetAccountAuthorizationDetails operations. It is not returned in the response + // to the CreatePolicyVersion or ListPolicyVersions operations. Document *string `min:"1" type:"string"` // Specifies whether the policy version is set as the policy's default version. @@ -17386,8 +20711,8 @@ type PolicyVersion struct { // The identifier for the policy version. // - // Policy version identifiers always begin with v (always lowercase). When - // a policy is created, the first policy version is v1. + // Policy version identifiers always begin with v (always lowercase). When a + // policy is created, the first policy version is v1. VersionId *string `type:"string"` } @@ -17401,10 +20726,35 @@ func (s PolicyVersion) GoString() string { return s.String() } +// SetCreateDate sets the CreateDate field's value. +func (s *PolicyVersion) SetCreateDate(v time.Time) *PolicyVersion { + s.CreateDate = &v + return s +} + +// SetDocument sets the Document field's value. +func (s *PolicyVersion) SetDocument(v string) *PolicyVersion { + s.Document = &v + return s +} + +// SetIsDefaultVersion sets the IsDefaultVersion field's value. +func (s *PolicyVersion) SetIsDefaultVersion(v bool) *PolicyVersion { + s.IsDefaultVersion = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *PolicyVersion) SetVersionId(v string) *PolicyVersion { + s.VersionId = &v + return s +} + // Contains the row and column of a location of a Statement element in a policy // document. // -// This data type is used as a member of the Statement type. +// This data type is used as a member of the Statement type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/Position type Position struct { _ struct{} `type:"structure"` @@ -17425,12 +20775,25 @@ func (s Position) GoString() string { return s.String() } +// SetColumn sets the Column field's value. +func (s *Position) SetColumn(v int64) *Position { + s.Column = &v + return s +} + +// SetLine sets the Line field's value. +func (s *Position) SetLine(v int64) *Position { + s.Line = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/PutGroupPolicyRequest type PutGroupPolicyInput struct { _ struct{} `type:"structure"` // The name of the group to associate the policy with. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -17439,18 +20802,19 @@ type PutGroupPolicyInput struct { // The policy document. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // PolicyDocument is a required field PolicyDocument *string `min:"1" type:"string" required:"true"` // The name of the policy document. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -17496,8 +20860,27 @@ func (s *PutGroupPolicyInput) Validate() error { return nil } -type PutGroupPolicyOutput struct { - _ struct{} `type:"structure"` +// SetGroupName sets the GroupName field's value. +func (s *PutGroupPolicyInput) SetGroupName(v string) *PutGroupPolicyInput { + s.GroupName = &v + return s +} + +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *PutGroupPolicyInput) SetPolicyDocument(v string) *PutGroupPolicyInput { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *PutGroupPolicyInput) SetPolicyName(v string) *PutGroupPolicyInput { + s.PolicyName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/PutGroupPolicyOutput +type PutGroupPolicyOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation @@ -17510,23 +20893,25 @@ func (s PutGroupPolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/PutRolePolicyRequest type PutRolePolicyInput struct { _ struct{} `type:"structure"` // The policy document. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // PolicyDocument is a required field PolicyDocument *string `min:"1" type:"string" required:"true"` // The name of the policy document. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -17535,7 +20920,7 @@ type PutRolePolicyInput struct { // The name of the role to associate the policy with. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -17581,6 +20966,25 @@ func (s *PutRolePolicyInput) Validate() error { return nil } +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *PutRolePolicyInput) SetPolicyDocument(v string) *PutRolePolicyInput { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *PutRolePolicyInput) SetPolicyName(v string) *PutRolePolicyInput { + s.PolicyName = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *PutRolePolicyInput) SetRoleName(v string) *PutRolePolicyInput { + s.RoleName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/PutRolePolicyOutput type PutRolePolicyOutput struct { _ struct{} `type:"structure"` } @@ -17595,23 +20999,25 @@ func (s PutRolePolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/PutUserPolicyRequest type PutUserPolicyInput struct { _ struct{} `type:"structure"` // The policy document. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // PolicyDocument is a required field PolicyDocument *string `min:"1" type:"string" required:"true"` // The name of the policy document. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -17620,7 +21026,7 @@ type PutUserPolicyInput struct { // The name of the user to associate the policy with. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -17666,6 +21072,25 @@ func (s *PutUserPolicyInput) Validate() error { return nil } +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *PutUserPolicyInput) SetPolicyDocument(v string) *PutUserPolicyInput { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *PutUserPolicyInput) SetPolicyName(v string) *PutUserPolicyInput { + s.PolicyName = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *PutUserPolicyInput) SetUserName(v string) *PutUserPolicyInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/PutUserPolicyOutput type PutUserPolicyOutput struct { _ struct{} `type:"structure"` } @@ -17680,6 +21105,7 @@ func (s PutUserPolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/RemoveClientIDFromOpenIDConnectProviderRequest type RemoveClientIDFromOpenIDConnectProviderInput struct { _ struct{} `type:"structure"` @@ -17733,6 +21159,19 @@ func (s *RemoveClientIDFromOpenIDConnectProviderInput) Validate() error { return nil } +// SetClientID sets the ClientID field's value. +func (s *RemoveClientIDFromOpenIDConnectProviderInput) SetClientID(v string) *RemoveClientIDFromOpenIDConnectProviderInput { + s.ClientID = &v + return s +} + +// SetOpenIDConnectProviderArn sets the OpenIDConnectProviderArn field's value. +func (s *RemoveClientIDFromOpenIDConnectProviderInput) SetOpenIDConnectProviderArn(v string) *RemoveClientIDFromOpenIDConnectProviderInput { + s.OpenIDConnectProviderArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/RemoveClientIDFromOpenIDConnectProviderOutput type RemoveClientIDFromOpenIDConnectProviderOutput struct { _ struct{} `type:"structure"` } @@ -17747,12 +21186,13 @@ func (s RemoveClientIDFromOpenIDConnectProviderOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/RemoveRoleFromInstanceProfileRequest type RemoveRoleFromInstanceProfileInput struct { _ struct{} `type:"structure"` // The name of the instance profile to update. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -17761,7 +21201,7 @@ type RemoveRoleFromInstanceProfileInput struct { // The name of the role to remove. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -17801,6 +21241,19 @@ func (s *RemoveRoleFromInstanceProfileInput) Validate() error { return nil } +// SetInstanceProfileName sets the InstanceProfileName field's value. +func (s *RemoveRoleFromInstanceProfileInput) SetInstanceProfileName(v string) *RemoveRoleFromInstanceProfileInput { + s.InstanceProfileName = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *RemoveRoleFromInstanceProfileInput) SetRoleName(v string) *RemoveRoleFromInstanceProfileInput { + s.RoleName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/RemoveRoleFromInstanceProfileOutput type RemoveRoleFromInstanceProfileOutput struct { _ struct{} `type:"structure"` } @@ -17815,12 +21268,13 @@ func (s RemoveRoleFromInstanceProfileOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/RemoveUserFromGroupRequest type RemoveUserFromGroupInput struct { _ struct{} `type:"structure"` // The name of the group to update. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -17829,7 +21283,7 @@ type RemoveUserFromGroupInput struct { // The name of the user to remove. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -17869,6 +21323,19 @@ func (s *RemoveUserFromGroupInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *RemoveUserFromGroupInput) SetGroupName(v string) *RemoveUserFromGroupInput { + s.GroupName = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *RemoveUserFromGroupInput) SetUserName(v string) *RemoveUserFromGroupInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/RemoveUserFromGroupOutput type RemoveUserFromGroupOutput struct { _ struct{} `type:"structure"` } @@ -17883,10 +21350,103 @@ func (s RemoveUserFromGroupOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ResetServiceSpecificCredentialRequest +type ResetServiceSpecificCredentialInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the service-specific credential. + // + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) + // a string of characters that can consist of any upper or lowercased letter + // or digit. + // + // ServiceSpecificCredentialId is a required field + ServiceSpecificCredentialId *string `min:"20" type:"string" required:"true"` + + // The name of the IAM user associated with the service-specific credential. + // If this value is not specified, then the operation assumes the user whose + // credentials are used to call the operation. + // + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) + // a string of characters consisting of upper and lowercase alphanumeric characters + // with no spaces. You can also include any of the following characters: =,.@- + UserName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ResetServiceSpecificCredentialInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResetServiceSpecificCredentialInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ResetServiceSpecificCredentialInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ResetServiceSpecificCredentialInput"} + if s.ServiceSpecificCredentialId == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceSpecificCredentialId")) + } + if s.ServiceSpecificCredentialId != nil && len(*s.ServiceSpecificCredentialId) < 20 { + invalidParams.Add(request.NewErrParamMinLen("ServiceSpecificCredentialId", 20)) + } + if s.UserName != nil && len(*s.UserName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServiceSpecificCredentialId sets the ServiceSpecificCredentialId field's value. +func (s *ResetServiceSpecificCredentialInput) SetServiceSpecificCredentialId(v string) *ResetServiceSpecificCredentialInput { + s.ServiceSpecificCredentialId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ResetServiceSpecificCredentialInput) SetUserName(v string) *ResetServiceSpecificCredentialInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ResetServiceSpecificCredentialResponse +type ResetServiceSpecificCredentialOutput struct { + _ struct{} `type:"structure"` + + // A structure with details about the updated service-specific credential, including + // the new password. + // + // This is the only time that you can access the password. You cannot recover + // the password later, but you can reset it again. + ServiceSpecificCredential *ServiceSpecificCredential `type:"structure"` +} + +// String returns the string representation +func (s ResetServiceSpecificCredentialOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResetServiceSpecificCredentialOutput) GoString() string { + return s.String() +} + +// SetServiceSpecificCredential sets the ServiceSpecificCredential field's value. +func (s *ResetServiceSpecificCredentialOutput) SetServiceSpecificCredential(v *ServiceSpecificCredential) *ResetServiceSpecificCredentialOutput { + s.ServiceSpecificCredential = v + return s +} + // Contains the result of the simulation of a single API action call on a single // resource. // // This data type is used by a member of the EvaluationResult data type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ResourceSpecificResult type ResourceSpecificResult struct { _ struct{} `type:"structure"` @@ -17936,6 +21496,37 @@ func (s ResourceSpecificResult) GoString() string { return s.String() } +// SetEvalDecisionDetails sets the EvalDecisionDetails field's value. +func (s *ResourceSpecificResult) SetEvalDecisionDetails(v map[string]*string) *ResourceSpecificResult { + s.EvalDecisionDetails = v + return s +} + +// SetEvalResourceDecision sets the EvalResourceDecision field's value. +func (s *ResourceSpecificResult) SetEvalResourceDecision(v string) *ResourceSpecificResult { + s.EvalResourceDecision = &v + return s +} + +// SetEvalResourceName sets the EvalResourceName field's value. +func (s *ResourceSpecificResult) SetEvalResourceName(v string) *ResourceSpecificResult { + s.EvalResourceName = &v + return s +} + +// SetMatchedStatements sets the MatchedStatements field's value. +func (s *ResourceSpecificResult) SetMatchedStatements(v []*Statement) *ResourceSpecificResult { + s.MatchedStatements = v + return s +} + +// SetMissingContextValues sets the MissingContextValues field's value. +func (s *ResourceSpecificResult) SetMissingContextValues(v []*string) *ResourceSpecificResult { + s.MissingContextValues = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ResyncMFADeviceRequest type ResyncMFADeviceInput struct { _ struct{} `type:"structure"` @@ -17955,7 +21546,7 @@ type ResyncMFADeviceInput struct { // Serial number that uniquely identifies the MFA device. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -17964,7 +21555,7 @@ type ResyncMFADeviceInput struct { // The name of the user whose MFA device you want to resynchronize. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -18016,6 +21607,31 @@ func (s *ResyncMFADeviceInput) Validate() error { return nil } +// SetAuthenticationCode1 sets the AuthenticationCode1 field's value. +func (s *ResyncMFADeviceInput) SetAuthenticationCode1(v string) *ResyncMFADeviceInput { + s.AuthenticationCode1 = &v + return s +} + +// SetAuthenticationCode2 sets the AuthenticationCode2 field's value. +func (s *ResyncMFADeviceInput) SetAuthenticationCode2(v string) *ResyncMFADeviceInput { + s.AuthenticationCode2 = &v + return s +} + +// SetSerialNumber sets the SerialNumber field's value. +func (s *ResyncMFADeviceInput) SetSerialNumber(v string) *ResyncMFADeviceInput { + s.SerialNumber = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ResyncMFADeviceInput) SetUserName(v string) *ResyncMFADeviceInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ResyncMFADeviceOutput type ResyncMFADeviceOutput struct { _ struct{} `type:"structure"` } @@ -18034,11 +21650,12 @@ func (s ResyncMFADeviceOutput) GoString() string { // // This data type is used as a response element in the following actions: // -// CreateRole +// * CreateRole // -// GetRole +// * GetRole // -// ListRoles +// * ListRoles +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/Role type Role struct { _ struct{} `type:"structure"` @@ -18088,17 +21705,54 @@ func (s Role) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Role) SetArn(v string) *Role { + s.Arn = &v + return s +} + +// SetAssumeRolePolicyDocument sets the AssumeRolePolicyDocument field's value. +func (s *Role) SetAssumeRolePolicyDocument(v string) *Role { + s.AssumeRolePolicyDocument = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *Role) SetCreateDate(v time.Time) *Role { + s.CreateDate = &v + return s +} + +// SetPath sets the Path field's value. +func (s *Role) SetPath(v string) *Role { + s.Path = &v + return s +} + +// SetRoleId sets the RoleId field's value. +func (s *Role) SetRoleId(v string) *Role { + s.RoleId = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *Role) SetRoleName(v string) *Role { + s.RoleName = &v + return s +} + // Contains information about an IAM role, including all of the role's policies. // // This data type is used as a response element in the GetAccountAuthorizationDetails // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/RoleDetail type RoleDetail struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, go to Amazon Resource Names (ARNs) and - // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS + // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. Arn *string `min:"20" type:"string"` @@ -18113,7 +21767,7 @@ type RoleDetail struct { // when the role was created. CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // Contains a list of instance profiles. + // A list of instance profiles that contain this role. InstanceProfileList []*InstanceProfile `type:"list"` // The path to the role. For more information about paths, see IAM Identifiers @@ -18144,7 +21798,62 @@ func (s RoleDetail) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *RoleDetail) SetArn(v string) *RoleDetail { + s.Arn = &v + return s +} + +// SetAssumeRolePolicyDocument sets the AssumeRolePolicyDocument field's value. +func (s *RoleDetail) SetAssumeRolePolicyDocument(v string) *RoleDetail { + s.AssumeRolePolicyDocument = &v + return s +} + +// SetAttachedManagedPolicies sets the AttachedManagedPolicies field's value. +func (s *RoleDetail) SetAttachedManagedPolicies(v []*AttachedPolicy) *RoleDetail { + s.AttachedManagedPolicies = v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *RoleDetail) SetCreateDate(v time.Time) *RoleDetail { + s.CreateDate = &v + return s +} + +// SetInstanceProfileList sets the InstanceProfileList field's value. +func (s *RoleDetail) SetInstanceProfileList(v []*InstanceProfile) *RoleDetail { + s.InstanceProfileList = v + return s +} + +// SetPath sets the Path field's value. +func (s *RoleDetail) SetPath(v string) *RoleDetail { + s.Path = &v + return s +} + +// SetRoleId sets the RoleId field's value. +func (s *RoleDetail) SetRoleId(v string) *RoleDetail { + s.RoleId = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *RoleDetail) SetRoleName(v string) *RoleDetail { + s.RoleName = &v + return s +} + +// SetRolePolicyList sets the RolePolicyList field's value. +func (s *RoleDetail) SetRolePolicyList(v []*PolicyDetail) *RoleDetail { + s.RolePolicyList = v + return s +} + // Contains the list of SAML providers for this account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SAMLProviderListEntry type SAMLProviderListEntry struct { _ struct{} `type:"structure"` @@ -18168,10 +21877,29 @@ func (s SAMLProviderListEntry) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *SAMLProviderListEntry) SetArn(v string) *SAMLProviderListEntry { + s.Arn = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *SAMLProviderListEntry) SetCreateDate(v time.Time) *SAMLProviderListEntry { + s.CreateDate = &v + return s +} + +// SetValidUntil sets the ValidUntil field's value. +func (s *SAMLProviderListEntry) SetValidUntil(v time.Time) *SAMLProviderListEntry { + s.ValidUntil = &v + return s +} + // Contains information about an SSH public key. // -// This data type is used as a response element in the GetSSHPublicKey and -// UploadSSHPublicKey actions. +// This data type is used as a response element in the GetSSHPublicKey and UploadSSHPublicKey +// actions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SSHPublicKey type SSHPublicKey struct { _ struct{} `type:"structure"` @@ -18216,9 +21944,46 @@ func (s SSHPublicKey) GoString() string { return s.String() } +// SetFingerprint sets the Fingerprint field's value. +func (s *SSHPublicKey) SetFingerprint(v string) *SSHPublicKey { + s.Fingerprint = &v + return s +} + +// SetSSHPublicKeyBody sets the SSHPublicKeyBody field's value. +func (s *SSHPublicKey) SetSSHPublicKeyBody(v string) *SSHPublicKey { + s.SSHPublicKeyBody = &v + return s +} + +// SetSSHPublicKeyId sets the SSHPublicKeyId field's value. +func (s *SSHPublicKey) SetSSHPublicKeyId(v string) *SSHPublicKey { + s.SSHPublicKeyId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SSHPublicKey) SetStatus(v string) *SSHPublicKey { + s.Status = &v + return s +} + +// SetUploadDate sets the UploadDate field's value. +func (s *SSHPublicKey) SetUploadDate(v time.Time) *SSHPublicKey { + s.UploadDate = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *SSHPublicKey) SetUserName(v string) *SSHPublicKey { + s.UserName = &v + return s +} + // Contains information about an SSH public key, without the key's body or fingerprint. // // This data type is used as a response element in the ListSSHPublicKeys action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SSHPublicKeyMetadata type SSHPublicKeyMetadata struct { _ struct{} `type:"structure"` @@ -18255,10 +22020,35 @@ func (s SSHPublicKeyMetadata) GoString() string { return s.String() } +// SetSSHPublicKeyId sets the SSHPublicKeyId field's value. +func (s *SSHPublicKeyMetadata) SetSSHPublicKeyId(v string) *SSHPublicKeyMetadata { + s.SSHPublicKeyId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SSHPublicKeyMetadata) SetStatus(v string) *SSHPublicKeyMetadata { + s.Status = &v + return s +} + +// SetUploadDate sets the UploadDate field's value. +func (s *SSHPublicKeyMetadata) SetUploadDate(v time.Time) *SSHPublicKeyMetadata { + s.UploadDate = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *SSHPublicKeyMetadata) SetUserName(v string) *SSHPublicKeyMetadata { + s.UserName = &v + return s +} + // Contains information about a server certificate. // -// This data type is used as a response element in the GetServerCertificate +// This data type is used as a response element in the GetServerCertificate // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ServerCertificate type ServerCertificate struct { _ struct{} `type:"structure"` @@ -18287,11 +22077,30 @@ func (s ServerCertificate) GoString() string { return s.String() } +// SetCertificateBody sets the CertificateBody field's value. +func (s *ServerCertificate) SetCertificateBody(v string) *ServerCertificate { + s.CertificateBody = &v + return s +} + +// SetCertificateChain sets the CertificateChain field's value. +func (s *ServerCertificate) SetCertificateChain(v string) *ServerCertificate { + s.CertificateChain = &v + return s +} + +// SetServerCertificateMetadata sets the ServerCertificateMetadata field's value. +func (s *ServerCertificate) SetServerCertificateMetadata(v *ServerCertificateMetadata) *ServerCertificate { + s.ServerCertificateMetadata = v + return s +} + // Contains information about a server certificate without its certificate body, // certificate chain, and private key. // -// This data type is used as a response element in the UploadServerCertificate +// This data type is used as a response element in the UploadServerCertificate // and ListServerCertificates actions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ServerCertificateMetadata type ServerCertificateMetadata struct { _ struct{} `type:"structure"` @@ -18339,6 +22148,225 @@ func (s ServerCertificateMetadata) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *ServerCertificateMetadata) SetArn(v string) *ServerCertificateMetadata { + s.Arn = &v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *ServerCertificateMetadata) SetExpiration(v time.Time) *ServerCertificateMetadata { + s.Expiration = &v + return s +} + +// SetPath sets the Path field's value. +func (s *ServerCertificateMetadata) SetPath(v string) *ServerCertificateMetadata { + s.Path = &v + return s +} + +// SetServerCertificateId sets the ServerCertificateId field's value. +func (s *ServerCertificateMetadata) SetServerCertificateId(v string) *ServerCertificateMetadata { + s.ServerCertificateId = &v + return s +} + +// SetServerCertificateName sets the ServerCertificateName field's value. +func (s *ServerCertificateMetadata) SetServerCertificateName(v string) *ServerCertificateMetadata { + s.ServerCertificateName = &v + return s +} + +// SetUploadDate sets the UploadDate field's value. +func (s *ServerCertificateMetadata) SetUploadDate(v time.Time) *ServerCertificateMetadata { + s.UploadDate = &v + return s +} + +// Contains the details of a service specific credential. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ServiceSpecificCredential +type ServiceSpecificCredential struct { + _ struct{} `type:"structure"` + + // The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601), + // when the service-specific credential were created. + // + // CreateDate is a required field + CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + // The name of the service associated with the service-specific credential. + // + // ServiceName is a required field + ServiceName *string `type:"string" required:"true"` + + // The generated password for the service-specific credential. + // + // ServicePassword is a required field + ServicePassword *string `type:"string" required:"true"` + + // The unique identifier for the service-specific credential. + // + // ServiceSpecificCredentialId is a required field + ServiceSpecificCredentialId *string `min:"20" type:"string" required:"true"` + + // The generated user name for the service-specific credential. This value is + // generated by combining the IAM user's name combined with the ID number of + // the AWS account, as in jane-at-123456789012, for example. This value cannot + // be configured by the user. + // + // ServiceUserName is a required field + ServiceUserName *string `min:"17" type:"string" required:"true"` + + // The status of the service-specific credential. Active means the key is valid + // for API calls, while Inactive means it is not. + // + // Status is a required field + Status *string `type:"string" required:"true" enum:"statusType"` + + // The name of the IAM user associated with the service-specific credential. + // + // UserName is a required field + UserName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ServiceSpecificCredential) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceSpecificCredential) GoString() string { + return s.String() +} + +// SetCreateDate sets the CreateDate field's value. +func (s *ServiceSpecificCredential) SetCreateDate(v time.Time) *ServiceSpecificCredential { + s.CreateDate = &v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *ServiceSpecificCredential) SetServiceName(v string) *ServiceSpecificCredential { + s.ServiceName = &v + return s +} + +// SetServicePassword sets the ServicePassword field's value. +func (s *ServiceSpecificCredential) SetServicePassword(v string) *ServiceSpecificCredential { + s.ServicePassword = &v + return s +} + +// SetServiceSpecificCredentialId sets the ServiceSpecificCredentialId field's value. +func (s *ServiceSpecificCredential) SetServiceSpecificCredentialId(v string) *ServiceSpecificCredential { + s.ServiceSpecificCredentialId = &v + return s +} + +// SetServiceUserName sets the ServiceUserName field's value. +func (s *ServiceSpecificCredential) SetServiceUserName(v string) *ServiceSpecificCredential { + s.ServiceUserName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ServiceSpecificCredential) SetStatus(v string) *ServiceSpecificCredential { + s.Status = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ServiceSpecificCredential) SetUserName(v string) *ServiceSpecificCredential { + s.UserName = &v + return s +} + +// Contains additional details about a service-specific credential. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ServiceSpecificCredentialMetadata +type ServiceSpecificCredentialMetadata struct { + _ struct{} `type:"structure"` + + // The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601), + // when the service-specific credential were created. + // + // CreateDate is a required field + CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + // The name of the service associated with the service-specific credential. + // + // ServiceName is a required field + ServiceName *string `type:"string" required:"true"` + + // The unique identifier for the service-specific credential. + // + // ServiceSpecificCredentialId is a required field + ServiceSpecificCredentialId *string `min:"20" type:"string" required:"true"` + + // The generated user name for the service-specific credential. + // + // ServiceUserName is a required field + ServiceUserName *string `min:"17" type:"string" required:"true"` + + // The status of the service-specific credential. Active means the key is valid + // for API calls, while Inactive means it is not. + // + // Status is a required field + Status *string `type:"string" required:"true" enum:"statusType"` + + // The name of the IAM user associated with the service-specific credential. + // + // UserName is a required field + UserName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ServiceSpecificCredentialMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceSpecificCredentialMetadata) GoString() string { + return s.String() +} + +// SetCreateDate sets the CreateDate field's value. +func (s *ServiceSpecificCredentialMetadata) SetCreateDate(v time.Time) *ServiceSpecificCredentialMetadata { + s.CreateDate = &v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *ServiceSpecificCredentialMetadata) SetServiceName(v string) *ServiceSpecificCredentialMetadata { + s.ServiceName = &v + return s +} + +// SetServiceSpecificCredentialId sets the ServiceSpecificCredentialId field's value. +func (s *ServiceSpecificCredentialMetadata) SetServiceSpecificCredentialId(v string) *ServiceSpecificCredentialMetadata { + s.ServiceSpecificCredentialId = &v + return s +} + +// SetServiceUserName sets the ServiceUserName field's value. +func (s *ServiceSpecificCredentialMetadata) SetServiceUserName(v string) *ServiceSpecificCredentialMetadata { + s.ServiceUserName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ServiceSpecificCredentialMetadata) SetStatus(v string) *ServiceSpecificCredentialMetadata { + s.Status = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ServiceSpecificCredentialMetadata) SetUserName(v string) *ServiceSpecificCredentialMetadata { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SetDefaultPolicyVersionRequest type SetDefaultPolicyVersionInput struct { _ struct{} `type:"structure"` @@ -18391,6 +22419,19 @@ func (s *SetDefaultPolicyVersionInput) Validate() error { return nil } +// SetPolicyArn sets the PolicyArn field's value. +func (s *SetDefaultPolicyVersionInput) SetPolicyArn(v string) *SetDefaultPolicyVersionInput { + s.PolicyArn = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *SetDefaultPolicyVersionInput) SetVersionId(v string) *SetDefaultPolicyVersionInput { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SetDefaultPolicyVersionOutput type SetDefaultPolicyVersionOutput struct { _ struct{} `type:"structure"` } @@ -18409,6 +22450,7 @@ func (s SetDefaultPolicyVersionOutput) GoString() string { // // This data type is used as a response element in the UploadSigningCertificate // and ListSigningCertificates actions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SigningCertificate type SigningCertificate struct { _ struct{} `type:"structure"` @@ -18447,6 +22489,37 @@ func (s SigningCertificate) GoString() string { return s.String() } +// SetCertificateBody sets the CertificateBody field's value. +func (s *SigningCertificate) SetCertificateBody(v string) *SigningCertificate { + s.CertificateBody = &v + return s +} + +// SetCertificateId sets the CertificateId field's value. +func (s *SigningCertificate) SetCertificateId(v string) *SigningCertificate { + s.CertificateId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SigningCertificate) SetStatus(v string) *SigningCertificate { + s.Status = &v + return s +} + +// SetUploadDate sets the UploadDate field's value. +func (s *SigningCertificate) SetUploadDate(v time.Time) *SigningCertificate { + s.UploadDate = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *SigningCertificate) SetUserName(v string) *SigningCertificate { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SimulateCustomPolicyRequest type SimulateCustomPolicyInput struct { _ struct{} `type:"structure"` @@ -18461,8 +22534,8 @@ type SimulateCustomPolicyInput struct { // APIs. CallerArn is required if you include a ResourcePolicy so that the policy's // Principal element has a value to use in evaluating the policy. // - // You can specify only the ARN of an IAM user. You cannot specify the ARN - // of an assumed role, federated user, or a service principal. + // You can specify only the ARN of an IAM user. You cannot specify the ARN of + // an assumed role, federated user, or a service principal. CallerArn *string `min:"1" type:"string"` // A list of context keys and corresponding values for the simulation to use. @@ -18476,15 +22549,15 @@ type SimulateCustomPolicyInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // A list of policy documents to include in the simulation. Each document is @@ -18496,11 +22569,12 @@ type SimulateCustomPolicyInput struct { // or one of the AssumeRole (http://docs.aws.amazon.com/IAM/latest/APIReference/API_AssumeRole.html) // APIs to restrict what a user can do while using the temporary credentials. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // PolicyInputList is a required field PolicyInputList []*string `type:"list" required:"true"` @@ -18539,27 +22613,27 @@ type SimulateCustomPolicyInput struct { // the EC2 scenario options, see Supported Platforms (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html) // in the AWS EC2 User Guide. // - // EC2-Classic-InstanceStore + // * EC2-Classic-InstanceStore // // instance, image, security-group // - // EC2-Classic-EBS + // * EC2-Classic-EBS // // instance, image, security-group, volume // - // EC2-VPC-InstanceStore + // * EC2-VPC-InstanceStore // // instance, image, security-group, network-interface // - // EC2-VPC-InstanceStore-Subnet + // * EC2-VPC-InstanceStore-Subnet // // instance, image, security-group, network-interface, subnet // - // EC2-VPC-EBS + // * EC2-VPC-EBS // // instance, image, security-group, network-interface, volume // - // EC2-VPC-EBS-Subnet + // * EC2-VPC-EBS-Subnet // // instance, image, security-group, network-interface, subnet, volume ResourceHandlingOption *string `min:"1" type:"string"` @@ -18579,11 +22653,12 @@ type SimulateCustomPolicyInput struct { // Each resource in the simulation is treated as if it had this policy attached. // You can include only one resource-based policy in a simulation. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). ResourcePolicy *string `min:"1" type:"string"` } @@ -18641,8 +22716,69 @@ func (s *SimulateCustomPolicyInput) Validate() error { return nil } +// SetActionNames sets the ActionNames field's value. +func (s *SimulateCustomPolicyInput) SetActionNames(v []*string) *SimulateCustomPolicyInput { + s.ActionNames = v + return s +} + +// SetCallerArn sets the CallerArn field's value. +func (s *SimulateCustomPolicyInput) SetCallerArn(v string) *SimulateCustomPolicyInput { + s.CallerArn = &v + return s +} + +// SetContextEntries sets the ContextEntries field's value. +func (s *SimulateCustomPolicyInput) SetContextEntries(v []*ContextEntry) *SimulateCustomPolicyInput { + s.ContextEntries = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *SimulateCustomPolicyInput) SetMarker(v string) *SimulateCustomPolicyInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *SimulateCustomPolicyInput) SetMaxItems(v int64) *SimulateCustomPolicyInput { + s.MaxItems = &v + return s +} + +// SetPolicyInputList sets the PolicyInputList field's value. +func (s *SimulateCustomPolicyInput) SetPolicyInputList(v []*string) *SimulateCustomPolicyInput { + s.PolicyInputList = v + return s +} + +// SetResourceArns sets the ResourceArns field's value. +func (s *SimulateCustomPolicyInput) SetResourceArns(v []*string) *SimulateCustomPolicyInput { + s.ResourceArns = v + return s +} + +// SetResourceHandlingOption sets the ResourceHandlingOption field's value. +func (s *SimulateCustomPolicyInput) SetResourceHandlingOption(v string) *SimulateCustomPolicyInput { + s.ResourceHandlingOption = &v + return s +} + +// SetResourceOwner sets the ResourceOwner field's value. +func (s *SimulateCustomPolicyInput) SetResourceOwner(v string) *SimulateCustomPolicyInput { + s.ResourceOwner = &v + return s +} + +// SetResourcePolicy sets the ResourcePolicy field's value. +func (s *SimulateCustomPolicyInput) SetResourcePolicy(v string) *SimulateCustomPolicyInput { + s.ResourcePolicy = &v + return s +} + // Contains the response to a successful SimulatePrincipalPolicy or SimulateCustomPolicy // request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SimulatePolicyResponse type SimulatePolicyResponse struct { _ struct{} `type:"structure"` @@ -18672,6 +22808,25 @@ func (s SimulatePolicyResponse) GoString() string { return s.String() } +// SetEvaluationResults sets the EvaluationResults field's value. +func (s *SimulatePolicyResponse) SetEvaluationResults(v []*EvaluationResult) *SimulatePolicyResponse { + s.EvaluationResults = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *SimulatePolicyResponse) SetIsTruncated(v bool) *SimulatePolicyResponse { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *SimulatePolicyResponse) SetMarker(v string) *SimulatePolicyResponse { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SimulatePrincipalPolicyRequest type SimulatePrincipalPolicyInput struct { _ struct{} `type:"structure"` @@ -18689,10 +22844,10 @@ type SimulatePrincipalPolicyInput struct { // and a CallerArn (for example, arn:aws:iam::123456789012:user/Bob), the result // is that you simulate calling the APIs as Bob, as if Bob had David's policies. // - // You can specify only the ARN of an IAM user. You cannot specify the ARN - // of an assumed role, federated user, or a service principal. + // You can specify only the ARN of an IAM user. You cannot specify the ARN of + // an assumed role, federated user, or a service principal. // - // CallerArn is required if you include a ResourcePolicy and the PolicySourceArn + // CallerArn is required if you include a ResourcePolicy and the PolicySourceArn // is not the ARN for an IAM user. This is required so that the resource-based // policy's Principal element has a value to use in evaluating the policy. // @@ -18712,26 +22867,27 @@ type SimulatePrincipalPolicyInput struct { // the next call should start. Marker *string `min:"1" type:"string"` - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // (Optional) Use this only when paginating results to indicate the maximum + // number of items you want in the response. If additional items exist beyond + // the maximum you specify, the IsTruncated response element is true. // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. + // If you do not include this parameter, it defaults to 100. Note that IAM might + // return fewer results, even when there are more results available. In that + // case, the IsTruncated response element returns true and Marker contains a + // value to include in the subsequent call that tells the service where to continue + // from. MaxItems *int64 `min:"1" type:"integer"` // An optional list of additional policy documents to include in the simulation. // Each document is specified as a string containing the complete, valid JSON // text of an IAM policy. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). PolicyInputList []*string `type:"list"` // The Amazon Resource Name (ARN) of a user, group, or role whose policies you @@ -18778,27 +22934,27 @@ type SimulatePrincipalPolicyInput struct { // the EC2 scenario options, see Supported Platforms (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html) // in the AWS EC2 User Guide. // - // EC2-Classic-InstanceStore + // * EC2-Classic-InstanceStore // // instance, image, security-group // - // EC2-Classic-EBS + // * EC2-Classic-EBS // // instance, image, security-group, volume // - // EC2-VPC-InstanceStore + // * EC2-VPC-InstanceStore // // instance, image, security-group, network-interface // - // EC2-VPC-InstanceStore-Subnet + // * EC2-VPC-InstanceStore-Subnet // // instance, image, security-group, network-interface, subnet // - // EC2-VPC-EBS + // * EC2-VPC-EBS // // instance, image, security-group, network-interface, volume // - // EC2-VPC-EBS-Subnet + // * EC2-VPC-EBS-Subnet // // instance, image, security-group, network-interface, subnet, volume ResourceHandlingOption *string `min:"1" type:"string"` @@ -18818,11 +22974,12 @@ type SimulatePrincipalPolicyInput struct { // Each resource in the simulation is treated as if it had this policy attached. // You can include only one resource-based policy in a simulation. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). ResourcePolicy *string `min:"1" type:"string"` } @@ -18883,11 +23040,78 @@ func (s *SimulatePrincipalPolicyInput) Validate() error { return nil } +// SetActionNames sets the ActionNames field's value. +func (s *SimulatePrincipalPolicyInput) SetActionNames(v []*string) *SimulatePrincipalPolicyInput { + s.ActionNames = v + return s +} + +// SetCallerArn sets the CallerArn field's value. +func (s *SimulatePrincipalPolicyInput) SetCallerArn(v string) *SimulatePrincipalPolicyInput { + s.CallerArn = &v + return s +} + +// SetContextEntries sets the ContextEntries field's value. +func (s *SimulatePrincipalPolicyInput) SetContextEntries(v []*ContextEntry) *SimulatePrincipalPolicyInput { + s.ContextEntries = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *SimulatePrincipalPolicyInput) SetMarker(v string) *SimulatePrincipalPolicyInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *SimulatePrincipalPolicyInput) SetMaxItems(v int64) *SimulatePrincipalPolicyInput { + s.MaxItems = &v + return s +} + +// SetPolicyInputList sets the PolicyInputList field's value. +func (s *SimulatePrincipalPolicyInput) SetPolicyInputList(v []*string) *SimulatePrincipalPolicyInput { + s.PolicyInputList = v + return s +} + +// SetPolicySourceArn sets the PolicySourceArn field's value. +func (s *SimulatePrincipalPolicyInput) SetPolicySourceArn(v string) *SimulatePrincipalPolicyInput { + s.PolicySourceArn = &v + return s +} + +// SetResourceArns sets the ResourceArns field's value. +func (s *SimulatePrincipalPolicyInput) SetResourceArns(v []*string) *SimulatePrincipalPolicyInput { + s.ResourceArns = v + return s +} + +// SetResourceHandlingOption sets the ResourceHandlingOption field's value. +func (s *SimulatePrincipalPolicyInput) SetResourceHandlingOption(v string) *SimulatePrincipalPolicyInput { + s.ResourceHandlingOption = &v + return s +} + +// SetResourceOwner sets the ResourceOwner field's value. +func (s *SimulatePrincipalPolicyInput) SetResourceOwner(v string) *SimulatePrincipalPolicyInput { + s.ResourceOwner = &v + return s +} + +// SetResourcePolicy sets the ResourcePolicy field's value. +func (s *SimulatePrincipalPolicyInput) SetResourcePolicy(v string) *SimulatePrincipalPolicyInput { + s.ResourcePolicy = &v + return s +} + // Contains a reference to a Statement element in a policy document that determines // the result of the simulation. // -// This data type is used by the MatchedStatements member of the EvaluationResult -// type. +// This data type is used by the MatchedStatements member of the EvaluationResult +// type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/Statement type Statement struct { _ struct{} `type:"structure"` @@ -18914,12 +23138,37 @@ func (s Statement) GoString() string { return s.String() } +// SetEndPosition sets the EndPosition field's value. +func (s *Statement) SetEndPosition(v *Position) *Statement { + s.EndPosition = v + return s +} + +// SetSourcePolicyId sets the SourcePolicyId field's value. +func (s *Statement) SetSourcePolicyId(v string) *Statement { + s.SourcePolicyId = &v + return s +} + +// SetSourcePolicyType sets the SourcePolicyType field's value. +func (s *Statement) SetSourcePolicyType(v string) *Statement { + s.SourcePolicyType = &v + return s +} + +// SetStartPosition sets the StartPosition field's value. +func (s *Statement) SetStartPosition(v *Position) *Statement { + s.StartPosition = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateAccessKeyRequest type UpdateAccessKeyInput struct { _ struct{} `type:"structure"` // The access key ID of the secret access key you want to update. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters that can consist of any upper or lowercased letter // or digit. // @@ -18935,7 +23184,7 @@ type UpdateAccessKeyInput struct { // The name of the user whose key you want to update. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- UserName *string `min:"1" type:"string"` @@ -18973,6 +23222,25 @@ func (s *UpdateAccessKeyInput) Validate() error { return nil } +// SetAccessKeyId sets the AccessKeyId field's value. +func (s *UpdateAccessKeyInput) SetAccessKeyId(v string) *UpdateAccessKeyInput { + s.AccessKeyId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *UpdateAccessKeyInput) SetStatus(v string) *UpdateAccessKeyInput { + s.Status = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UpdateAccessKeyInput) SetUserName(v string) *UpdateAccessKeyInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateAccessKeyOutput type UpdateAccessKeyOutput struct { _ struct{} `type:"structure"` } @@ -18987,6 +23255,7 @@ func (s UpdateAccessKeyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateAccountPasswordPolicyRequest type UpdateAccountPasswordPolicyInput struct { _ struct{} `type:"structure"` @@ -19036,7 +23305,7 @@ type UpdateAccountPasswordPolicyInput struct { // Specifies whether IAM user passwords must contain at least one of the following // non-alphanumeric characters: // - // ! @ # $ % ^ & * ( ) _ + - = [ ] { } | ' + // ! @ # $ % ^ & * ( ) _ + - = [ ] { } | ' // // Default value: false RequireSymbols *bool `type:"boolean"` @@ -19077,6 +23346,61 @@ func (s *UpdateAccountPasswordPolicyInput) Validate() error { return nil } +// SetAllowUsersToChangePassword sets the AllowUsersToChangePassword field's value. +func (s *UpdateAccountPasswordPolicyInput) SetAllowUsersToChangePassword(v bool) *UpdateAccountPasswordPolicyInput { + s.AllowUsersToChangePassword = &v + return s +} + +// SetHardExpiry sets the HardExpiry field's value. +func (s *UpdateAccountPasswordPolicyInput) SetHardExpiry(v bool) *UpdateAccountPasswordPolicyInput { + s.HardExpiry = &v + return s +} + +// SetMaxPasswordAge sets the MaxPasswordAge field's value. +func (s *UpdateAccountPasswordPolicyInput) SetMaxPasswordAge(v int64) *UpdateAccountPasswordPolicyInput { + s.MaxPasswordAge = &v + return s +} + +// SetMinimumPasswordLength sets the MinimumPasswordLength field's value. +func (s *UpdateAccountPasswordPolicyInput) SetMinimumPasswordLength(v int64) *UpdateAccountPasswordPolicyInput { + s.MinimumPasswordLength = &v + return s +} + +// SetPasswordReusePrevention sets the PasswordReusePrevention field's value. +func (s *UpdateAccountPasswordPolicyInput) SetPasswordReusePrevention(v int64) *UpdateAccountPasswordPolicyInput { + s.PasswordReusePrevention = &v + return s +} + +// SetRequireLowercaseCharacters sets the RequireLowercaseCharacters field's value. +func (s *UpdateAccountPasswordPolicyInput) SetRequireLowercaseCharacters(v bool) *UpdateAccountPasswordPolicyInput { + s.RequireLowercaseCharacters = &v + return s +} + +// SetRequireNumbers sets the RequireNumbers field's value. +func (s *UpdateAccountPasswordPolicyInput) SetRequireNumbers(v bool) *UpdateAccountPasswordPolicyInput { + s.RequireNumbers = &v + return s +} + +// SetRequireSymbols sets the RequireSymbols field's value. +func (s *UpdateAccountPasswordPolicyInput) SetRequireSymbols(v bool) *UpdateAccountPasswordPolicyInput { + s.RequireSymbols = &v + return s +} + +// SetRequireUppercaseCharacters sets the RequireUppercaseCharacters field's value. +func (s *UpdateAccountPasswordPolicyInput) SetRequireUppercaseCharacters(v bool) *UpdateAccountPasswordPolicyInput { + s.RequireUppercaseCharacters = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateAccountPasswordPolicyOutput type UpdateAccountPasswordPolicyOutput struct { _ struct{} `type:"structure"` } @@ -19091,23 +23415,25 @@ func (s UpdateAccountPasswordPolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateAssumeRolePolicyRequest type UpdateAssumeRolePolicyInput struct { _ struct{} `type:"structure"` // The policy that grants an entity permission to assume the role. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // PolicyDocument is a required field PolicyDocument *string `min:"1" type:"string" required:"true"` // The name of the role to update with the new policy. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -19147,6 +23473,19 @@ func (s *UpdateAssumeRolePolicyInput) Validate() error { return nil } +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *UpdateAssumeRolePolicyInput) SetPolicyDocument(v string) *UpdateAssumeRolePolicyInput { + s.PolicyDocument = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *UpdateAssumeRolePolicyInput) SetRoleName(v string) *UpdateAssumeRolePolicyInput { + s.RoleName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateAssumeRolePolicyOutput type UpdateAssumeRolePolicyOutput struct { _ struct{} `type:"structure"` } @@ -19161,13 +23500,14 @@ func (s UpdateAssumeRolePolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateGroupRequest type UpdateGroupInput struct { _ struct{} `type:"structure"` // Name of the IAM group to update. If you're changing the name of the group, // this is the original name. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -19176,14 +23516,14 @@ type UpdateGroupInput struct { // New name for the IAM group. Only include this if changing the group's name. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- NewGroupName *string `min:"1" type:"string"` // New path for the IAM group. Only include this if changing the group's path. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of either a forward slash (/) by itself // or a string that must begin and end with forward slashes, containing any // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including @@ -19223,6 +23563,25 @@ func (s *UpdateGroupInput) Validate() error { return nil } +// SetGroupName sets the GroupName field's value. +func (s *UpdateGroupInput) SetGroupName(v string) *UpdateGroupInput { + s.GroupName = &v + return s +} + +// SetNewGroupName sets the NewGroupName field's value. +func (s *UpdateGroupInput) SetNewGroupName(v string) *UpdateGroupInput { + s.NewGroupName = &v + return s +} + +// SetNewPath sets the NewPath field's value. +func (s *UpdateGroupInput) SetNewPath(v string) *UpdateGroupInput { + s.NewPath = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateGroupOutput type UpdateGroupOutput struct { _ struct{} `type:"structure"` } @@ -19237,18 +23596,20 @@ func (s UpdateGroupOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateLoginProfileRequest type UpdateLoginProfileInput struct { _ struct{} `type:"structure"` // The new password for the specified IAM user. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). However, the format can be further - // restricted by the account administrator by setting a password policy on the - // AWS account. For more information, see UpdateAccountPasswordPolicy. + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). However, + // the format can be further restricted by the account administrator by setting + // a password policy on the AWS account. For more information, see UpdateAccountPasswordPolicy. Password *string `min:"1" type:"string"` // Allows this new password to be used only once by requiring the specified @@ -19257,7 +23618,7 @@ type UpdateLoginProfileInput struct { // The name of the user whose password you want to update. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -19294,6 +23655,25 @@ func (s *UpdateLoginProfileInput) Validate() error { return nil } +// SetPassword sets the Password field's value. +func (s *UpdateLoginProfileInput) SetPassword(v string) *UpdateLoginProfileInput { + s.Password = &v + return s +} + +// SetPasswordResetRequired sets the PasswordResetRequired field's value. +func (s *UpdateLoginProfileInput) SetPasswordResetRequired(v bool) *UpdateLoginProfileInput { + s.PasswordResetRequired = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UpdateLoginProfileInput) SetUserName(v string) *UpdateLoginProfileInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateLoginProfileOutput type UpdateLoginProfileOutput struct { _ struct{} `type:"structure"` } @@ -19308,6 +23688,7 @@ func (s UpdateLoginProfileOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateOpenIDConnectProviderThumbprintRequest type UpdateOpenIDConnectProviderThumbprintInput struct { _ struct{} `type:"structure"` @@ -19358,6 +23739,19 @@ func (s *UpdateOpenIDConnectProviderThumbprintInput) Validate() error { return nil } +// SetOpenIDConnectProviderArn sets the OpenIDConnectProviderArn field's value. +func (s *UpdateOpenIDConnectProviderThumbprintInput) SetOpenIDConnectProviderArn(v string) *UpdateOpenIDConnectProviderThumbprintInput { + s.OpenIDConnectProviderArn = &v + return s +} + +// SetThumbprintList sets the ThumbprintList field's value. +func (s *UpdateOpenIDConnectProviderThumbprintInput) SetThumbprintList(v []*string) *UpdateOpenIDConnectProviderThumbprintInput { + s.ThumbprintList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateOpenIDConnectProviderThumbprintOutput type UpdateOpenIDConnectProviderThumbprintOutput struct { _ struct{} `type:"structure"` } @@ -19372,6 +23766,7 @@ func (s UpdateOpenIDConnectProviderThumbprintOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateSAMLProviderRequest type UpdateSAMLProviderInput struct { _ struct{} `type:"structure"` @@ -19426,7 +23821,20 @@ func (s *UpdateSAMLProviderInput) Validate() error { return nil } +// SetSAMLMetadataDocument sets the SAMLMetadataDocument field's value. +func (s *UpdateSAMLProviderInput) SetSAMLMetadataDocument(v string) *UpdateSAMLProviderInput { + s.SAMLMetadataDocument = &v + return s +} + +// SetSAMLProviderArn sets the SAMLProviderArn field's value. +func (s *UpdateSAMLProviderInput) SetSAMLProviderArn(v string) *UpdateSAMLProviderInput { + s.SAMLProviderArn = &v + return s +} + // Contains the response to a successful UpdateSAMLProvider request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateSAMLProviderResponse type UpdateSAMLProviderOutput struct { _ struct{} `type:"structure"` @@ -19444,12 +23852,19 @@ func (s UpdateSAMLProviderOutput) GoString() string { return s.String() } +// SetSAMLProviderArn sets the SAMLProviderArn field's value. +func (s *UpdateSAMLProviderOutput) SetSAMLProviderArn(v string) *UpdateSAMLProviderOutput { + s.SAMLProviderArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateSSHPublicKeyRequest type UpdateSSHPublicKeyInput struct { _ struct{} `type:"structure"` // The unique identifier for the SSH public key. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters that can consist of any upper or lowercased letter // or digit. // @@ -19465,7 +23880,7 @@ type UpdateSSHPublicKeyInput struct { // The name of the IAM user associated with the SSH public key. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -19508,6 +23923,25 @@ func (s *UpdateSSHPublicKeyInput) Validate() error { return nil } +// SetSSHPublicKeyId sets the SSHPublicKeyId field's value. +func (s *UpdateSSHPublicKeyInput) SetSSHPublicKeyId(v string) *UpdateSSHPublicKeyInput { + s.SSHPublicKeyId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *UpdateSSHPublicKeyInput) SetStatus(v string) *UpdateSSHPublicKeyInput { + s.Status = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UpdateSSHPublicKeyInput) SetUserName(v string) *UpdateSSHPublicKeyInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateSSHPublicKeyOutput type UpdateSSHPublicKeyOutput struct { _ struct{} `type:"structure"` } @@ -19522,13 +23956,14 @@ func (s UpdateSSHPublicKeyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateServerCertificateRequest type UpdateServerCertificateInput struct { _ struct{} `type:"structure"` // The new path for the server certificate. Include this only if you are updating // the server certificate's path. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of either a forward slash (/) by itself // or a string that must begin and end with forward slashes, containing any // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including @@ -19539,14 +23974,14 @@ type UpdateServerCertificateInput struct { // the server certificate's name. The name of the certificate cannot contain // any spaces. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- NewServerCertificateName *string `min:"1" type:"string"` // The name of the server certificate that you want to update. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -19586,6 +24021,25 @@ func (s *UpdateServerCertificateInput) Validate() error { return nil } +// SetNewPath sets the NewPath field's value. +func (s *UpdateServerCertificateInput) SetNewPath(v string) *UpdateServerCertificateInput { + s.NewPath = &v + return s +} + +// SetNewServerCertificateName sets the NewServerCertificateName field's value. +func (s *UpdateServerCertificateInput) SetNewServerCertificateName(v string) *UpdateServerCertificateInput { + s.NewServerCertificateName = &v + return s +} + +// SetServerCertificateName sets the ServerCertificateName field's value. +func (s *UpdateServerCertificateInput) SetServerCertificateName(v string) *UpdateServerCertificateInput { + s.ServerCertificateName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateServerCertificateOutput type UpdateServerCertificateOutput struct { _ struct{} `type:"structure"` } @@ -19600,12 +24054,106 @@ func (s UpdateServerCertificateOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateServiceSpecificCredentialRequest +type UpdateServiceSpecificCredentialInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the service-specific credential. + // + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) + // a string of characters that can consist of any upper or lowercased letter + // or digit. + // + // ServiceSpecificCredentialId is a required field + ServiceSpecificCredentialId *string `min:"20" type:"string" required:"true"` + + // The status to be assigned to the service-specific credential. + // + // Status is a required field + Status *string `type:"string" required:"true" enum:"statusType"` + + // The name of the IAM user associated with the service-specific credential. + // If you do not specify this value, then the operation assumes the user whose + // credentials are used to call the operation. + // + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) + // a string of characters consisting of upper and lowercase alphanumeric characters + // with no spaces. You can also include any of the following characters: =,.@- + UserName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s UpdateServiceSpecificCredentialInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateServiceSpecificCredentialInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateServiceSpecificCredentialInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateServiceSpecificCredentialInput"} + if s.ServiceSpecificCredentialId == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceSpecificCredentialId")) + } + if s.ServiceSpecificCredentialId != nil && len(*s.ServiceSpecificCredentialId) < 20 { + invalidParams.Add(request.NewErrParamMinLen("ServiceSpecificCredentialId", 20)) + } + if s.Status == nil { + invalidParams.Add(request.NewErrParamRequired("Status")) + } + if s.UserName != nil && len(*s.UserName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServiceSpecificCredentialId sets the ServiceSpecificCredentialId field's value. +func (s *UpdateServiceSpecificCredentialInput) SetServiceSpecificCredentialId(v string) *UpdateServiceSpecificCredentialInput { + s.ServiceSpecificCredentialId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *UpdateServiceSpecificCredentialInput) SetStatus(v string) *UpdateServiceSpecificCredentialInput { + s.Status = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UpdateServiceSpecificCredentialInput) SetUserName(v string) *UpdateServiceSpecificCredentialInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateServiceSpecificCredentialOutput +type UpdateServiceSpecificCredentialOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateServiceSpecificCredentialOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateServiceSpecificCredentialOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateSigningCertificateRequest type UpdateSigningCertificateInput struct { _ struct{} `type:"structure"` // The ID of the signing certificate you want to update. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters that can consist of any upper or lowercased letter // or digit. // @@ -19621,7 +24169,7 @@ type UpdateSigningCertificateInput struct { // The name of the IAM user the signing certificate belongs to. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- UserName *string `min:"1" type:"string"` @@ -19659,6 +24207,25 @@ func (s *UpdateSigningCertificateInput) Validate() error { return nil } +// SetCertificateId sets the CertificateId field's value. +func (s *UpdateSigningCertificateInput) SetCertificateId(v string) *UpdateSigningCertificateInput { + s.CertificateId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *UpdateSigningCertificateInput) SetStatus(v string) *UpdateSigningCertificateInput { + s.Status = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UpdateSigningCertificateInput) SetUserName(v string) *UpdateSigningCertificateInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateSigningCertificateOutput type UpdateSigningCertificateOutput struct { _ struct{} `type:"structure"` } @@ -19673,13 +24240,14 @@ func (s UpdateSigningCertificateOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateUserRequest type UpdateUserInput struct { _ struct{} `type:"structure"` // New path for the IAM user. Include this parameter only if you're changing // the user's path. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of either a forward slash (/) by itself // or a string that must begin and end with forward slashes, containing any // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including @@ -19689,7 +24257,7 @@ type UpdateUserInput struct { // New name for the user. Include this parameter only if you're changing the // user's name. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- NewUserName *string `min:"1" type:"string"` @@ -19697,7 +24265,7 @@ type UpdateUserInput struct { // Name of the user to update. If you're changing the name of the user, this // is the original user name. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -19737,6 +24305,25 @@ func (s *UpdateUserInput) Validate() error { return nil } +// SetNewPath sets the NewPath field's value. +func (s *UpdateUserInput) SetNewPath(v string) *UpdateUserInput { + s.NewPath = &v + return s +} + +// SetNewUserName sets the NewUserName field's value. +func (s *UpdateUserInput) SetNewUserName(v string) *UpdateUserInput { + s.NewUserName = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UpdateUserInput) SetUserName(v string) *UpdateUserInput { + s.UserName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateUserOutput type UpdateUserOutput struct { _ struct{} `type:"structure"` } @@ -19751,24 +24338,26 @@ func (s UpdateUserOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UploadSSHPublicKeyRequest type UploadSSHPublicKeyInput struct { _ struct{} `type:"structure"` // The SSH public key. The public key must be encoded in ssh-rsa format or PEM // format. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // SSHPublicKeyBody is a required field SSHPublicKeyBody *string `min:"1" type:"string" required:"true"` // The name of the IAM user to associate the SSH public key with. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -19808,7 +24397,20 @@ func (s *UploadSSHPublicKeyInput) Validate() error { return nil } +// SetSSHPublicKeyBody sets the SSHPublicKeyBody field's value. +func (s *UploadSSHPublicKeyInput) SetSSHPublicKeyBody(v string) *UploadSSHPublicKeyInput { + s.SSHPublicKeyBody = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UploadSSHPublicKeyInput) SetUserName(v string) *UploadSSHPublicKeyInput { + s.UserName = &v + return s +} + // Contains the response to a successful UploadSSHPublicKey request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UploadSSHPublicKeyResponse type UploadSSHPublicKeyOutput struct { _ struct{} `type:"structure"` @@ -19826,16 +24428,24 @@ func (s UploadSSHPublicKeyOutput) GoString() string { return s.String() } +// SetSSHPublicKey sets the SSHPublicKey field's value. +func (s *UploadSSHPublicKeyOutput) SetSSHPublicKey(v *SSHPublicKey) *UploadSSHPublicKeyOutput { + s.SSHPublicKey = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UploadServerCertificateRequest type UploadServerCertificateInput struct { _ struct{} `type:"structure"` // The contents of the public key certificate in PEM-encoded format. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // CertificateBody is a required field CertificateBody *string `min:"1" type:"string" required:"true"` @@ -19843,11 +24453,12 @@ type UploadServerCertificateInput struct { // The contents of the certificate chain. This is typically a concatenation // of the PEM-encoded public key certificates of the chain. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). CertificateChain *string `min:"1" type:"string"` // The path for the server certificate. For more information about paths, see @@ -19855,13 +24466,13 @@ type UploadServerCertificateInput struct { // in the IAM User Guide. // // This parameter is optional. If it is not included, it defaults to a slash - // (/). The regex pattern (http://wikipedia.org/wiki/regex) for this parameter - // is a string of characters consisting of either a forward slash (/) by itself + // (/). This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex)) + // a string of characters consisting of either a forward slash (/) by itself // or a string that must begin and end with forward slashes, containing any // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including // most punctuation characters, digits, and upper and lowercased letters. // - // If you are uploading a server certificate specifically for use with Amazon + // If you are uploading a server certificate specifically for use with Amazon // CloudFront distributions, you must specify a path using the --path option. // The path must begin with /cloudfront and must include a trailing slash (for // example, /cloudfront/test/). @@ -19869,11 +24480,12 @@ type UploadServerCertificateInput struct { // The contents of the private key in PEM-encoded format. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // PrivateKey is a required field PrivateKey *string `min:"1" type:"string" required:"true"` @@ -19881,7 +24493,7 @@ type UploadServerCertificateInput struct { // The name for the server certificate. Do not include the path in this value. // The name of the certificate cannot contain any spaces. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- // @@ -19933,7 +24545,38 @@ func (s *UploadServerCertificateInput) Validate() error { return nil } +// SetCertificateBody sets the CertificateBody field's value. +func (s *UploadServerCertificateInput) SetCertificateBody(v string) *UploadServerCertificateInput { + s.CertificateBody = &v + return s +} + +// SetCertificateChain sets the CertificateChain field's value. +func (s *UploadServerCertificateInput) SetCertificateChain(v string) *UploadServerCertificateInput { + s.CertificateChain = &v + return s +} + +// SetPath sets the Path field's value. +func (s *UploadServerCertificateInput) SetPath(v string) *UploadServerCertificateInput { + s.Path = &v + return s +} + +// SetPrivateKey sets the PrivateKey field's value. +func (s *UploadServerCertificateInput) SetPrivateKey(v string) *UploadServerCertificateInput { + s.PrivateKey = &v + return s +} + +// SetServerCertificateName sets the ServerCertificateName field's value. +func (s *UploadServerCertificateInput) SetServerCertificateName(v string) *UploadServerCertificateInput { + s.ServerCertificateName = &v + return s +} + // Contains the response to a successful UploadServerCertificate request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UploadServerCertificateResponse type UploadServerCertificateOutput struct { _ struct{} `type:"structure"` @@ -19952,23 +24595,31 @@ func (s UploadServerCertificateOutput) GoString() string { return s.String() } +// SetServerCertificateMetadata sets the ServerCertificateMetadata field's value. +func (s *UploadServerCertificateOutput) SetServerCertificateMetadata(v *ServerCertificateMetadata) *UploadServerCertificateOutput { + s.ServerCertificateMetadata = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UploadSigningCertificateRequest type UploadSigningCertificateInput struct { _ struct{} `type:"structure"` // The contents of the signing certificate. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). + // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of any printable ASCII character + // ranging from the space character (\u0020) through end of the ASCII character + // range as well as the printable characters in the Basic Latin and Latin-1 + // Supplement character set (through \u00FF). It also includes the special characters + // tab (\u0009), line feed (\u000A), and carriage return (\u000D). // // CertificateBody is a required field CertificateBody *string `min:"1" type:"string" required:"true"` // The name of the user the signing certificate is for. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is + // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: =,.@- UserName *string `min:"1" type:"string"` @@ -20003,7 +24654,20 @@ func (s *UploadSigningCertificateInput) Validate() error { return nil } +// SetCertificateBody sets the CertificateBody field's value. +func (s *UploadSigningCertificateInput) SetCertificateBody(v string) *UploadSigningCertificateInput { + s.CertificateBody = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UploadSigningCertificateInput) SetUserName(v string) *UploadSigningCertificateInput { + s.UserName = &v + return s +} + // Contains the response to a successful UploadSigningCertificate request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UploadSigningCertificateResponse type UploadSigningCertificateOutput struct { _ struct{} `type:"structure"` @@ -20023,15 +24687,22 @@ func (s UploadSigningCertificateOutput) GoString() string { return s.String() } +// SetCertificate sets the Certificate field's value. +func (s *UploadSigningCertificateOutput) SetCertificate(v *SigningCertificate) *UploadSigningCertificateOutput { + s.Certificate = v + return s +} + // Contains information about an IAM user entity. // // This data type is used as a response element in the following actions: // -// CreateUser +// * CreateUser // -// GetUser +// * GetUser // -// ListUsers +// * ListUsers +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/User type User struct { _ struct{} `type:"structure"` @@ -20056,14 +24727,14 @@ type User struct { // span, only the first use is returned in this field. This field is null (not // present) when: // - // The user does not have a password + // * The user does not have a password // - // The password exists but has never been used (at least not since IAM started - // tracking this information on October 20th, 2014 + // * The password exists but has never been used (at least not since IAM + // started tracking this information on October 20th, 2014 // - // there is no sign-in data associated with the user + // * there is no sign-in data associated with the user // - // This value is returned only in the GetUser and ListUsers actions. + // This value is returned only in the GetUser and ListUsers actions. PasswordLastUsed *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The path to the user. For more information about paths, see IAM Identifiers @@ -20096,18 +24767,55 @@ func (s User) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *User) SetArn(v string) *User { + s.Arn = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *User) SetCreateDate(v time.Time) *User { + s.CreateDate = &v + return s +} + +// SetPasswordLastUsed sets the PasswordLastUsed field's value. +func (s *User) SetPasswordLastUsed(v time.Time) *User { + s.PasswordLastUsed = &v + return s +} + +// SetPath sets the Path field's value. +func (s *User) SetPath(v string) *User { + s.Path = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *User) SetUserId(v string) *User { + s.UserId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *User) SetUserName(v string) *User { + s.UserName = &v + return s +} + // Contains information about an IAM user, including all the user's policies // and all the IAM groups the user is in. // // This data type is used as a response element in the GetAccountAuthorizationDetails // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UserDetail type UserDetail struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, go to Amazon Resource Names (ARNs) and - // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS + // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. Arn *string `min:"20" type:"string"` @@ -20148,11 +24856,60 @@ func (s UserDetail) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *UserDetail) SetArn(v string) *UserDetail { + s.Arn = &v + return s +} + +// SetAttachedManagedPolicies sets the AttachedManagedPolicies field's value. +func (s *UserDetail) SetAttachedManagedPolicies(v []*AttachedPolicy) *UserDetail { + s.AttachedManagedPolicies = v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *UserDetail) SetCreateDate(v time.Time) *UserDetail { + s.CreateDate = &v + return s +} + +// SetGroupList sets the GroupList field's value. +func (s *UserDetail) SetGroupList(v []*string) *UserDetail { + s.GroupList = v + return s +} + +// SetPath sets the Path field's value. +func (s *UserDetail) SetPath(v string) *UserDetail { + s.Path = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *UserDetail) SetUserId(v string) *UserDetail { + s.UserId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UserDetail) SetUserName(v string) *UserDetail { + s.UserName = &v + return s +} + +// SetUserPolicyList sets the UserPolicyList field's value. +func (s *UserDetail) SetUserPolicyList(v []*PolicyDetail) *UserDetail { + s.UserPolicyList = v + return s +} + // Contains information about a virtual MFA device. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/VirtualMFADevice type VirtualMFADevice struct { _ struct{} `type:"structure"` - // The Base32 seed defined as specified in RFC3548 (http://www.ietf.org/rfc/rfc3548.txt). + // The Base32 seed defined as specified in RFC3548 (https://tools.ietf.org/html/rfc3548.txt). // The Base32StringSeed is Base64-encoded. // // Base32StringSeed is automatically base64 encoded/decoded by the SDK. @@ -20174,15 +24931,7 @@ type VirtualMFADevice struct { // SerialNumber is a required field SerialNumber *string `min:"9" type:"string" required:"true"` - // Contains information about an IAM user entity. - // - // This data type is used as a response element in the following actions: - // - // CreateUser - // - // GetUser - // - // ListUsers + // The user to whom the MFA device is assigned. User *User `type:"structure"` } @@ -20196,6 +24945,36 @@ func (s VirtualMFADevice) GoString() string { return s.String() } +// SetBase32StringSeed sets the Base32StringSeed field's value. +func (s *VirtualMFADevice) SetBase32StringSeed(v []byte) *VirtualMFADevice { + s.Base32StringSeed = v + return s +} + +// SetEnableDate sets the EnableDate field's value. +func (s *VirtualMFADevice) SetEnableDate(v time.Time) *VirtualMFADevice { + s.EnableDate = &v + return s +} + +// SetQRCodePNG sets the QRCodePNG field's value. +func (s *VirtualMFADevice) SetQRCodePNG(v []byte) *VirtualMFADevice { + s.QRCodePNG = v + return s +} + +// SetSerialNumber sets the SerialNumber field's value. +func (s *VirtualMFADevice) SetSerialNumber(v string) *VirtualMFADevice { + s.SerialNumber = &v + return s +} + +// SetUser sets the User field's value. +func (s *VirtualMFADevice) SetUser(v *User) *VirtualMFADevice { + s.User = v + return s +} + const ( // ContextKeyTypeEnumString is a ContextKeyTypeEnum enum value ContextKeyTypeEnumString = "string" diff --git a/vendor/github.com/aws/aws-sdk-go/service/iam/errors.go b/vendor/github.com/aws/aws-sdk-go/service/iam/errors.go new file mode 100644 index 000000000..26c2534bf --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/iam/errors.go @@ -0,0 +1,169 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package iam + +const ( + + // ErrCodeCredentialReportExpiredException for service response error code + // "ReportExpired". + // + // The request was rejected because the most recent credential report has expired. + // To generate a new credential report, use GenerateCredentialReport. For more + // information about credential report expiration, see Getting Credential Reports + // (http://docs.aws.amazon.com/IAM/latest/UserGuide/credential-reports.html) + // in the IAM User Guide. + ErrCodeCredentialReportExpiredException = "ReportExpired" + + // ErrCodeCredentialReportNotPresentException for service response error code + // "ReportNotPresent". + // + // The request was rejected because the credential report does not exist. To + // generate a credential report, use GenerateCredentialReport. + ErrCodeCredentialReportNotPresentException = "ReportNotPresent" + + // ErrCodeCredentialReportNotReadyException for service response error code + // "ReportInProgress". + // + // The request was rejected because the credential report is still being generated. + ErrCodeCredentialReportNotReadyException = "ReportInProgress" + + // ErrCodeDeleteConflictException for service response error code + // "DeleteConflict". + // + // The request was rejected because it attempted to delete a resource that has + // attached subordinate entities. The error message describes these entities. + ErrCodeDeleteConflictException = "DeleteConflict" + + // ErrCodeDuplicateCertificateException for service response error code + // "DuplicateCertificate". + // + // The request was rejected because the same certificate is associated with + // an IAM user in the account. + ErrCodeDuplicateCertificateException = "DuplicateCertificate" + + // ErrCodeDuplicateSSHPublicKeyException for service response error code + // "DuplicateSSHPublicKey". + // + // The request was rejected because the SSH public key is already associated + // with the specified IAM user. + ErrCodeDuplicateSSHPublicKeyException = "DuplicateSSHPublicKey" + + // ErrCodeEntityAlreadyExistsException for service response error code + // "EntityAlreadyExists". + // + // The request was rejected because it attempted to create a resource that already + // exists. + ErrCodeEntityAlreadyExistsException = "EntityAlreadyExists" + + // ErrCodeEntityTemporarilyUnmodifiableException for service response error code + // "EntityTemporarilyUnmodifiable". + // + // The request was rejected because it referenced an entity that is temporarily + // unmodifiable, such as a user name that was deleted and then recreated. The + // error indicates that the request is likely to succeed if you try again after + // waiting several minutes. The error message describes the entity. + ErrCodeEntityTemporarilyUnmodifiableException = "EntityTemporarilyUnmodifiable" + + // ErrCodeInvalidAuthenticationCodeException for service response error code + // "InvalidAuthenticationCode". + // + // The request was rejected because the authentication code was not recognized. + // The error message describes the specific error. + ErrCodeInvalidAuthenticationCodeException = "InvalidAuthenticationCode" + + // ErrCodeInvalidCertificateException for service response error code + // "InvalidCertificate". + // + // The request was rejected because the certificate is invalid. + ErrCodeInvalidCertificateException = "InvalidCertificate" + + // ErrCodeInvalidInputException for service response error code + // "InvalidInput". + // + // The request was rejected because an invalid or out-of-range value was supplied + // for an input parameter. + ErrCodeInvalidInputException = "InvalidInput" + + // ErrCodeInvalidPublicKeyException for service response error code + // "InvalidPublicKey". + // + // The request was rejected because the public key is malformed or otherwise + // invalid. + ErrCodeInvalidPublicKeyException = "InvalidPublicKey" + + // ErrCodeInvalidUserTypeException for service response error code + // "InvalidUserType". + // + // The request was rejected because the type of user for the transaction was + // incorrect. + ErrCodeInvalidUserTypeException = "InvalidUserType" + + // ErrCodeKeyPairMismatchException for service response error code + // "KeyPairMismatch". + // + // The request was rejected because the public key certificate and the private + // key do not match. + ErrCodeKeyPairMismatchException = "KeyPairMismatch" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceeded". + // + // The request was rejected because it attempted to create resources beyond + // the current AWS account limits. The error message describes the limit exceeded. + ErrCodeLimitExceededException = "LimitExceeded" + + // ErrCodeMalformedCertificateException for service response error code + // "MalformedCertificate". + // + // The request was rejected because the certificate was malformed or expired. + // The error message describes the specific error. + ErrCodeMalformedCertificateException = "MalformedCertificate" + + // ErrCodeMalformedPolicyDocumentException for service response error code + // "MalformedPolicyDocument". + // + // The request was rejected because the policy document was malformed. The error + // message describes the specific error. + ErrCodeMalformedPolicyDocumentException = "MalformedPolicyDocument" + + // ErrCodeNoSuchEntityException for service response error code + // "NoSuchEntity". + // + // The request was rejected because it referenced an entity that does not exist. + // The error message describes the entity. + ErrCodeNoSuchEntityException = "NoSuchEntity" + + // ErrCodePasswordPolicyViolationException for service response error code + // "PasswordPolicyViolation". + // + // The request was rejected because the provided password did not meet the requirements + // imposed by the account password policy. + ErrCodePasswordPolicyViolationException = "PasswordPolicyViolation" + + // ErrCodePolicyEvaluationException for service response error code + // "PolicyEvaluation". + // + // The request failed because a provided policy could not be successfully evaluated. + // An additional detail message indicates the source of the failure. + ErrCodePolicyEvaluationException = "PolicyEvaluation" + + // ErrCodeServiceFailureException for service response error code + // "ServiceFailure". + // + // The request processing has failed because of an unknown error, exception + // or failure. + ErrCodeServiceFailureException = "ServiceFailure" + + // ErrCodeServiceNotSupportedException for service response error code + // "NotSupportedService". + // + // The specified service does not support service-specific credentials. + ErrCodeServiceNotSupportedException = "NotSupportedService" + + // ErrCodeUnrecognizedPublicKeyEncodingException for service response error code + // "UnrecognizedPublicKeyEncoding". + // + // The request was rejected because the public key encoding format is unsupported + // or unrecognized. + ErrCodeUnrecognizedPublicKeyEncodingException = "UnrecognizedPublicKeyEncoding" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/iam/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/iam/examples_test.go index 9671599bc..c8b05ca7b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iam/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iam/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleIAM_AddClientIDToOpenIDConnectProvider() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -42,11 +38,7 @@ func ExampleIAM_AddClientIDToOpenIDConnectProvider() { } func ExampleIAM_AddRoleToInstanceProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -68,11 +60,7 @@ func ExampleIAM_AddRoleToInstanceProfile() { } func ExampleIAM_AddUserToGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -94,11 +82,7 @@ func ExampleIAM_AddUserToGroup() { } func ExampleIAM_AttachGroupPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -120,11 +104,7 @@ func ExampleIAM_AttachGroupPolicy() { } func ExampleIAM_AttachRolePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -146,11 +126,7 @@ func ExampleIAM_AttachRolePolicy() { } func ExampleIAM_AttachUserPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -172,11 +148,7 @@ func ExampleIAM_AttachUserPolicy() { } func ExampleIAM_ChangePassword() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -198,11 +170,7 @@ func ExampleIAM_ChangePassword() { } func ExampleIAM_CreateAccessKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -223,11 +191,7 @@ func ExampleIAM_CreateAccessKey() { } func ExampleIAM_CreateAccountAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -248,11 +212,7 @@ func ExampleIAM_CreateAccountAlias() { } func ExampleIAM_CreateGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -274,11 +234,7 @@ func ExampleIAM_CreateGroup() { } func ExampleIAM_CreateInstanceProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -300,11 +256,7 @@ func ExampleIAM_CreateInstanceProfile() { } func ExampleIAM_CreateLoginProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -327,11 +279,7 @@ func ExampleIAM_CreateLoginProfile() { } func ExampleIAM_CreateOpenIDConnectProvider() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -360,11 +308,7 @@ func ExampleIAM_CreateOpenIDConnectProvider() { } func ExampleIAM_CreatePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -388,11 +332,7 @@ func ExampleIAM_CreatePolicy() { } func ExampleIAM_CreatePolicyVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -415,11 +355,7 @@ func ExampleIAM_CreatePolicyVersion() { } func ExampleIAM_CreateRole() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -442,11 +378,7 @@ func ExampleIAM_CreateRole() { } func ExampleIAM_CreateSAMLProvider() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -467,13 +399,31 @@ func ExampleIAM_CreateSAMLProvider() { fmt.Println(resp) } -func ExampleIAM_CreateUser() { - sess, err := session.NewSession() +func ExampleIAM_CreateServiceSpecificCredential() { + sess := session.Must(session.NewSession()) + + svc := iam.New(sess) + + params := &iam.CreateServiceSpecificCredentialInput{ + ServiceName: aws.String("serviceName"), // Required + UserName: aws.String("userNameType"), // Required + } + resp, err := svc.CreateServiceSpecificCredential(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleIAM_CreateUser() { + sess := session.Must(session.NewSession()) + svc := iam.New(sess) params := &iam.CreateUserInput{ @@ -494,11 +444,7 @@ func ExampleIAM_CreateUser() { } func ExampleIAM_CreateVirtualMFADevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -520,11 +466,7 @@ func ExampleIAM_CreateVirtualMFADevice() { } func ExampleIAM_DeactivateMFADevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -546,11 +488,7 @@ func ExampleIAM_DeactivateMFADevice() { } func ExampleIAM_DeleteAccessKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -572,11 +510,7 @@ func ExampleIAM_DeleteAccessKey() { } func ExampleIAM_DeleteAccountAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -597,11 +531,7 @@ func ExampleIAM_DeleteAccountAlias() { } func ExampleIAM_DeleteAccountPasswordPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -620,11 +550,7 @@ func ExampleIAM_DeleteAccountPasswordPolicy() { } func ExampleIAM_DeleteGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -645,11 +571,7 @@ func ExampleIAM_DeleteGroup() { } func ExampleIAM_DeleteGroupPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -671,11 +593,7 @@ func ExampleIAM_DeleteGroupPolicy() { } func ExampleIAM_DeleteInstanceProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -696,11 +614,7 @@ func ExampleIAM_DeleteInstanceProfile() { } func ExampleIAM_DeleteLoginProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -721,11 +635,7 @@ func ExampleIAM_DeleteLoginProfile() { } func ExampleIAM_DeleteOpenIDConnectProvider() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -746,11 +656,7 @@ func ExampleIAM_DeleteOpenIDConnectProvider() { } func ExampleIAM_DeletePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -771,11 +677,7 @@ func ExampleIAM_DeletePolicy() { } func ExampleIAM_DeletePolicyVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -797,11 +699,7 @@ func ExampleIAM_DeletePolicyVersion() { } func ExampleIAM_DeleteRole() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -822,11 +720,7 @@ func ExampleIAM_DeleteRole() { } func ExampleIAM_DeleteRolePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -848,11 +742,7 @@ func ExampleIAM_DeleteRolePolicy() { } func ExampleIAM_DeleteSAMLProvider() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -873,11 +763,7 @@ func ExampleIAM_DeleteSAMLProvider() { } func ExampleIAM_DeleteSSHPublicKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -899,11 +785,7 @@ func ExampleIAM_DeleteSSHPublicKey() { } func ExampleIAM_DeleteServerCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -923,13 +805,31 @@ func ExampleIAM_DeleteServerCertificate() { fmt.Println(resp) } -func ExampleIAM_DeleteSigningCertificate() { - sess, err := session.NewSession() +func ExampleIAM_DeleteServiceSpecificCredential() { + sess := session.Must(session.NewSession()) + + svc := iam.New(sess) + + params := &iam.DeleteServiceSpecificCredentialInput{ + ServiceSpecificCredentialId: aws.String("serviceSpecificCredentialId"), // Required + UserName: aws.String("userNameType"), + } + resp, err := svc.DeleteServiceSpecificCredential(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleIAM_DeleteSigningCertificate() { + sess := session.Must(session.NewSession()) + svc := iam.New(sess) params := &iam.DeleteSigningCertificateInput{ @@ -950,11 +850,7 @@ func ExampleIAM_DeleteSigningCertificate() { } func ExampleIAM_DeleteUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -975,11 +871,7 @@ func ExampleIAM_DeleteUser() { } func ExampleIAM_DeleteUserPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1001,11 +893,7 @@ func ExampleIAM_DeleteUserPolicy() { } func ExampleIAM_DeleteVirtualMFADevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1026,11 +914,7 @@ func ExampleIAM_DeleteVirtualMFADevice() { } func ExampleIAM_DetachGroupPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1052,11 +936,7 @@ func ExampleIAM_DetachGroupPolicy() { } func ExampleIAM_DetachRolePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1078,11 +958,7 @@ func ExampleIAM_DetachRolePolicy() { } func ExampleIAM_DetachUserPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1104,11 +980,7 @@ func ExampleIAM_DetachUserPolicy() { } func ExampleIAM_EnableMFADevice() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1132,11 +1004,7 @@ func ExampleIAM_EnableMFADevice() { } func ExampleIAM_GenerateCredentialReport() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1155,11 +1023,7 @@ func ExampleIAM_GenerateCredentialReport() { } func ExampleIAM_GetAccessKeyLastUsed() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1180,11 +1044,7 @@ func ExampleIAM_GetAccessKeyLastUsed() { } func ExampleIAM_GetAccountAuthorizationDetails() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1210,11 +1070,7 @@ func ExampleIAM_GetAccountAuthorizationDetails() { } func ExampleIAM_GetAccountPasswordPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1233,11 +1089,7 @@ func ExampleIAM_GetAccountPasswordPolicy() { } func ExampleIAM_GetAccountSummary() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1256,11 +1108,7 @@ func ExampleIAM_GetAccountSummary() { } func ExampleIAM_GetContextKeysForCustomPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1284,11 +1132,7 @@ func ExampleIAM_GetContextKeysForCustomPolicy() { } func ExampleIAM_GetContextKeysForPrincipalPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1313,11 +1157,7 @@ func ExampleIAM_GetContextKeysForPrincipalPolicy() { } func ExampleIAM_GetCredentialReport() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1336,11 +1176,7 @@ func ExampleIAM_GetCredentialReport() { } func ExampleIAM_GetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1363,11 +1199,7 @@ func ExampleIAM_GetGroup() { } func ExampleIAM_GetGroupPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1389,11 +1221,7 @@ func ExampleIAM_GetGroupPolicy() { } func ExampleIAM_GetInstanceProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1414,11 +1242,7 @@ func ExampleIAM_GetInstanceProfile() { } func ExampleIAM_GetLoginProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1439,11 +1263,7 @@ func ExampleIAM_GetLoginProfile() { } func ExampleIAM_GetOpenIDConnectProvider() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1464,11 +1284,7 @@ func ExampleIAM_GetOpenIDConnectProvider() { } func ExampleIAM_GetPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1489,11 +1305,7 @@ func ExampleIAM_GetPolicy() { } func ExampleIAM_GetPolicyVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1515,11 +1327,7 @@ func ExampleIAM_GetPolicyVersion() { } func ExampleIAM_GetRole() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1540,11 +1348,7 @@ func ExampleIAM_GetRole() { } func ExampleIAM_GetRolePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1566,11 +1370,7 @@ func ExampleIAM_GetRolePolicy() { } func ExampleIAM_GetSAMLProvider() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1591,11 +1391,7 @@ func ExampleIAM_GetSAMLProvider() { } func ExampleIAM_GetSSHPublicKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1618,11 +1414,7 @@ func ExampleIAM_GetSSHPublicKey() { } func ExampleIAM_GetServerCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1643,11 +1435,7 @@ func ExampleIAM_GetServerCertificate() { } func ExampleIAM_GetUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1668,11 +1456,7 @@ func ExampleIAM_GetUser() { } func ExampleIAM_GetUserPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1694,11 +1478,7 @@ func ExampleIAM_GetUserPolicy() { } func ExampleIAM_ListAccessKeys() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1721,11 +1501,7 @@ func ExampleIAM_ListAccessKeys() { } func ExampleIAM_ListAccountAliases() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1747,11 +1523,7 @@ func ExampleIAM_ListAccountAliases() { } func ExampleIAM_ListAttachedGroupPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1775,11 +1547,7 @@ func ExampleIAM_ListAttachedGroupPolicies() { } func ExampleIAM_ListAttachedRolePolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1803,11 +1571,7 @@ func ExampleIAM_ListAttachedRolePolicies() { } func ExampleIAM_ListAttachedUserPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1831,11 +1595,7 @@ func ExampleIAM_ListAttachedUserPolicies() { } func ExampleIAM_ListEntitiesForPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1860,11 +1620,7 @@ func ExampleIAM_ListEntitiesForPolicy() { } func ExampleIAM_ListGroupPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1887,11 +1643,7 @@ func ExampleIAM_ListGroupPolicies() { } func ExampleIAM_ListGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1914,11 +1666,7 @@ func ExampleIAM_ListGroups() { } func ExampleIAM_ListGroupsForUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1941,11 +1689,7 @@ func ExampleIAM_ListGroupsForUser() { } func ExampleIAM_ListInstanceProfiles() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1968,11 +1712,7 @@ func ExampleIAM_ListInstanceProfiles() { } func ExampleIAM_ListInstanceProfilesForRole() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -1995,11 +1735,7 @@ func ExampleIAM_ListInstanceProfilesForRole() { } func ExampleIAM_ListMFADevices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2022,11 +1758,7 @@ func ExampleIAM_ListMFADevices() { } func ExampleIAM_ListOpenIDConnectProviders() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2045,11 +1777,7 @@ func ExampleIAM_ListOpenIDConnectProviders() { } func ExampleIAM_ListPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2074,11 +1802,7 @@ func ExampleIAM_ListPolicies() { } func ExampleIAM_ListPolicyVersions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2101,11 +1825,7 @@ func ExampleIAM_ListPolicyVersions() { } func ExampleIAM_ListRolePolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2128,11 +1848,7 @@ func ExampleIAM_ListRolePolicies() { } func ExampleIAM_ListRoles() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2155,11 +1871,7 @@ func ExampleIAM_ListRoles() { } func ExampleIAM_ListSAMLProviders() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2178,11 +1890,7 @@ func ExampleIAM_ListSAMLProviders() { } func ExampleIAM_ListSSHPublicKeys() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2205,11 +1913,7 @@ func ExampleIAM_ListSSHPublicKeys() { } func ExampleIAM_ListServerCertificates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2231,13 +1935,31 @@ func ExampleIAM_ListServerCertificates() { fmt.Println(resp) } -func ExampleIAM_ListSigningCertificates() { - sess, err := session.NewSession() +func ExampleIAM_ListServiceSpecificCredentials() { + sess := session.Must(session.NewSession()) + + svc := iam.New(sess) + + params := &iam.ListServiceSpecificCredentialsInput{ + ServiceName: aws.String("serviceName"), + UserName: aws.String("userNameType"), + } + resp, err := svc.ListServiceSpecificCredentials(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleIAM_ListSigningCertificates() { + sess := session.Must(session.NewSession()) + svc := iam.New(sess) params := &iam.ListSigningCertificatesInput{ @@ -2259,11 +1981,7 @@ func ExampleIAM_ListSigningCertificates() { } func ExampleIAM_ListUserPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2286,11 +2004,7 @@ func ExampleIAM_ListUserPolicies() { } func ExampleIAM_ListUsers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2313,11 +2027,7 @@ func ExampleIAM_ListUsers() { } func ExampleIAM_ListVirtualMFADevices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2340,11 +2050,7 @@ func ExampleIAM_ListVirtualMFADevices() { } func ExampleIAM_PutGroupPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2367,11 +2073,7 @@ func ExampleIAM_PutGroupPolicy() { } func ExampleIAM_PutRolePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2394,11 +2096,7 @@ func ExampleIAM_PutRolePolicy() { } func ExampleIAM_PutUserPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2421,11 +2119,7 @@ func ExampleIAM_PutUserPolicy() { } func ExampleIAM_RemoveClientIDFromOpenIDConnectProvider() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2447,11 +2141,7 @@ func ExampleIAM_RemoveClientIDFromOpenIDConnectProvider() { } func ExampleIAM_RemoveRoleFromInstanceProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2473,11 +2163,7 @@ func ExampleIAM_RemoveRoleFromInstanceProfile() { } func ExampleIAM_RemoveUserFromGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2498,13 +2184,31 @@ func ExampleIAM_RemoveUserFromGroup() { fmt.Println(resp) } -func ExampleIAM_ResyncMFADevice() { - sess, err := session.NewSession() +func ExampleIAM_ResetServiceSpecificCredential() { + sess := session.Must(session.NewSession()) + + svc := iam.New(sess) + + params := &iam.ResetServiceSpecificCredentialInput{ + ServiceSpecificCredentialId: aws.String("serviceSpecificCredentialId"), // Required + UserName: aws.String("userNameType"), + } + resp, err := svc.ResetServiceSpecificCredential(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleIAM_ResyncMFADevice() { + sess := session.Must(session.NewSession()) + svc := iam.New(sess) params := &iam.ResyncMFADeviceInput{ @@ -2527,11 +2231,7 @@ func ExampleIAM_ResyncMFADevice() { } func ExampleIAM_SetDefaultPolicyVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2553,11 +2253,7 @@ func ExampleIAM_SetDefaultPolicyVersion() { } func ExampleIAM_SimulateCustomPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2606,11 +2302,7 @@ func ExampleIAM_SimulateCustomPolicy() { } func ExampleIAM_SimulatePrincipalPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2660,11 +2352,7 @@ func ExampleIAM_SimulatePrincipalPolicy() { } func ExampleIAM_UpdateAccessKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2687,11 +2375,7 @@ func ExampleIAM_UpdateAccessKey() { } func ExampleIAM_UpdateAccountPasswordPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2720,11 +2404,7 @@ func ExampleIAM_UpdateAccountPasswordPolicy() { } func ExampleIAM_UpdateAssumeRolePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2746,11 +2426,7 @@ func ExampleIAM_UpdateAssumeRolePolicy() { } func ExampleIAM_UpdateGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2773,11 +2449,7 @@ func ExampleIAM_UpdateGroup() { } func ExampleIAM_UpdateLoginProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2800,11 +2472,7 @@ func ExampleIAM_UpdateLoginProfile() { } func ExampleIAM_UpdateOpenIDConnectProviderThumbprint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2829,11 +2497,7 @@ func ExampleIAM_UpdateOpenIDConnectProviderThumbprint() { } func ExampleIAM_UpdateSAMLProvider() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2855,11 +2519,7 @@ func ExampleIAM_UpdateSAMLProvider() { } func ExampleIAM_UpdateSSHPublicKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2882,11 +2542,7 @@ func ExampleIAM_UpdateSSHPublicKey() { } func ExampleIAM_UpdateServerCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2908,13 +2564,32 @@ func ExampleIAM_UpdateServerCertificate() { fmt.Println(resp) } -func ExampleIAM_UpdateSigningCertificate() { - sess, err := session.NewSession() +func ExampleIAM_UpdateServiceSpecificCredential() { + sess := session.Must(session.NewSession()) + + svc := iam.New(sess) + + params := &iam.UpdateServiceSpecificCredentialInput{ + ServiceSpecificCredentialId: aws.String("serviceSpecificCredentialId"), // Required + Status: aws.String("statusType"), // Required + UserName: aws.String("userNameType"), + } + resp, err := svc.UpdateServiceSpecificCredential(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleIAM_UpdateSigningCertificate() { + sess := session.Must(session.NewSession()) + svc := iam.New(sess) params := &iam.UpdateSigningCertificateInput{ @@ -2936,11 +2611,7 @@ func ExampleIAM_UpdateSigningCertificate() { } func ExampleIAM_UpdateUser() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2963,11 +2634,7 @@ func ExampleIAM_UpdateUser() { } func ExampleIAM_UploadSSHPublicKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -2989,11 +2656,7 @@ func ExampleIAM_UploadSSHPublicKey() { } func ExampleIAM_UploadServerCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) @@ -3018,11 +2681,7 @@ func ExampleIAM_UploadServerCertificate() { } func ExampleIAM_UploadSigningCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iam.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/iam/iamiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/iam/iamiface/interface.go index d977f4afe..62c612c3e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iam/iamiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iam/iamiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockIAMClient{} // @@ -127,6 +127,10 @@ type IAMAPI interface { CreateSAMLProvider(*iam.CreateSAMLProviderInput) (*iam.CreateSAMLProviderOutput, error) + CreateServiceSpecificCredentialRequest(*iam.CreateServiceSpecificCredentialInput) (*request.Request, *iam.CreateServiceSpecificCredentialOutput) + + CreateServiceSpecificCredential(*iam.CreateServiceSpecificCredentialInput) (*iam.CreateServiceSpecificCredentialOutput, error) + CreateUserRequest(*iam.CreateUserInput) (*request.Request, *iam.CreateUserOutput) CreateUser(*iam.CreateUserInput) (*iam.CreateUserOutput, error) @@ -199,6 +203,10 @@ type IAMAPI interface { DeleteServerCertificate(*iam.DeleteServerCertificateInput) (*iam.DeleteServerCertificateOutput, error) + DeleteServiceSpecificCredentialRequest(*iam.DeleteServiceSpecificCredentialInput) (*request.Request, *iam.DeleteServiceSpecificCredentialOutput) + + DeleteServiceSpecificCredential(*iam.DeleteServiceSpecificCredentialInput) (*iam.DeleteServiceSpecificCredentialOutput, error) + DeleteSigningCertificateRequest(*iam.DeleteSigningCertificateInput) (*request.Request, *iam.DeleteSigningCertificateOutput) DeleteSigningCertificate(*iam.DeleteSigningCertificateInput) (*iam.DeleteSigningCertificateOutput, error) @@ -439,6 +447,10 @@ type IAMAPI interface { ListServerCertificatesPages(*iam.ListServerCertificatesInput, func(*iam.ListServerCertificatesOutput, bool) bool) error + ListServiceSpecificCredentialsRequest(*iam.ListServiceSpecificCredentialsInput) (*request.Request, *iam.ListServiceSpecificCredentialsOutput) + + ListServiceSpecificCredentials(*iam.ListServiceSpecificCredentialsInput) (*iam.ListServiceSpecificCredentialsOutput, error) + ListSigningCertificatesRequest(*iam.ListSigningCertificatesInput) (*request.Request, *iam.ListSigningCertificatesOutput) ListSigningCertificates(*iam.ListSigningCertificatesInput) (*iam.ListSigningCertificatesOutput, error) @@ -487,6 +499,10 @@ type IAMAPI interface { RemoveUserFromGroup(*iam.RemoveUserFromGroupInput) (*iam.RemoveUserFromGroupOutput, error) + ResetServiceSpecificCredentialRequest(*iam.ResetServiceSpecificCredentialInput) (*request.Request, *iam.ResetServiceSpecificCredentialOutput) + + ResetServiceSpecificCredential(*iam.ResetServiceSpecificCredentialInput) (*iam.ResetServiceSpecificCredentialOutput, error) + ResyncMFADeviceRequest(*iam.ResyncMFADeviceInput) (*request.Request, *iam.ResyncMFADeviceOutput) ResyncMFADevice(*iam.ResyncMFADeviceInput) (*iam.ResyncMFADeviceOutput, error) @@ -543,6 +559,10 @@ type IAMAPI interface { UpdateServerCertificate(*iam.UpdateServerCertificateInput) (*iam.UpdateServerCertificateOutput, error) + UpdateServiceSpecificCredentialRequest(*iam.UpdateServiceSpecificCredentialInput) (*request.Request, *iam.UpdateServiceSpecificCredentialOutput) + + UpdateServiceSpecificCredential(*iam.UpdateServiceSpecificCredentialInput) (*iam.UpdateServiceSpecificCredentialOutput, error) + UpdateSigningCertificateRequest(*iam.UpdateSigningCertificateInput) (*request.Request, *iam.UpdateSigningCertificateOutput) UpdateSigningCertificate(*iam.UpdateSigningCertificateInput) (*iam.UpdateSigningCertificateOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/iam/service.go b/vendor/github.com/aws/aws-sdk-go/service/iam/service.go index 362916f98..1942ec03e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iam/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iam/service.go @@ -17,16 +17,15 @@ import ( // information about IAM, see AWS Identity and Access Management (IAM) (http://aws.amazon.com/iam/). // For the user guide for IAM, see Using IAM (http://docs.aws.amazon.com/IAM/latest/UserGuide/). // -// AWS provides SDKs that consist of libraries and sample code for various -// programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). -// The SDKs provide a convenient way to create programmatic access to IAM and -// AWS. For example, the SDKs take care of tasks such as cryptographically signing -// requests (see below), managing errors, and retrying requests automatically. -// For information about the AWS SDKs, including how to download and install -// them, see the Tools for Amazon Web Services (http://aws.amazon.com/tools/) -// page. +// AWS provides SDKs that consist of libraries and sample code for various programming +// languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs +// provide a convenient way to create programmatic access to IAM and AWS. For +// example, the SDKs take care of tasks such as cryptographically signing requests +// (see below), managing errors, and retrying requests automatically. For information +// about the AWS SDKs, including how to download and install them, see the Tools +// for Amazon Web Services (http://aws.amazon.com/tools/) page. // -// We recommend that you use the AWS SDKs to make programmatic API calls to +// We recommend that you use the AWS SDKs to make programmatic API calls to // IAM. However, you can also use the IAM Query API to make direct calls to // the IAM web service. To learn more about the IAM Query API, see Making Query // Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) @@ -35,12 +34,12 @@ import ( // for others. However, GET requests are subject to the limitation size of a // URL. Therefore, for operations that require larger sizes, use a POST request. // -// Signing Requests +// Signing Requests // -// Requests must be signed using an access key ID and a secret access key. -// We strongly recommend that you do not use your AWS account access key ID -// and secret access key for everyday work with IAM. You can use the access -// key ID and secret access key for an IAM user or you can use the AWS Security +// Requests must be signed using an access key ID and a secret access key. We +// strongly recommend that you do not use your AWS account access key ID and +// secret access key for everyday work with IAM. You can use the access key +// ID and secret access key for an IAM user or you can use the AWS Security // Token Service to generate temporary security credentials and use those to // sign requests. // @@ -50,23 +49,24 @@ import ( // now require Signature Version 4. The documentation for operations that require // version 4 indicate this requirement. // -// Additional Resources +// Additional Resources // // For more information, see the following: // -// AWS Security Credentials (http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html). -// This topic provides general information about the types of credentials used -// for accessing AWS. +// * AWS Security Credentials (http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html). +// This topic provides general information about the types of credentials +// used for accessing AWS. // -// IAM Best Practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAMBestPractices.html). -// This topic presents a list of suggestions for using the IAM service to help -// secure your AWS resources. +// * IAM Best Practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAMBestPractices.html). +// This topic presents a list of suggestions for using the IAM service to +// help secure your AWS resources. // -// Signing AWS API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html). -// This set of topics walk you through the process of signing a request using -// an access key ID and secret access key. -//The service client's operations are safe to be used concurrently. +// * Signing AWS API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html). +// This set of topics walk you through the process of signing a request using +// an access key ID and secret access key. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08 type IAM struct { *client.Client } @@ -77,8 +77,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "iam" +// Service information constants +const ( + ServiceName = "iam" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the IAM client with a session. // If additional configuration is needed for the client instance use the optional @@ -91,17 +94,18 @@ const ServiceName = "iam" // // Create a IAM client with additional configuration // svc := iam.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *IAM { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *IAM { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *IAM { svc := &IAM{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2010-05-08", diff --git a/vendor/github.com/aws/aws-sdk-go/service/inspector/api.go b/vendor/github.com/aws/aws-sdk-go/service/inspector/api.go index 7700a39a2..a81c6b062 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/inspector/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/inspector/api.go @@ -39,6 +39,7 @@ const opAddAttributesToFindings = "AddAttributesToFindings" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/AddAttributesToFindings func (c *Inspector) AddAttributesToFindingsRequest(input *AddAttributesToFindingsInput) (req *request.Request, output *AddAttributesToFindingsOutput) { op := &request.Operation{ Name: opAddAttributesToFindings, @@ -50,9 +51,8 @@ func (c *Inspector) AddAttributesToFindingsRequest(input *AddAttributesToFinding input = &AddAttributesToFindingsInput{} } - req = c.newRequest(op, input, output) output = &AddAttributesToFindingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -69,20 +69,21 @@ func (c *Inspector) AddAttributesToFindingsRequest(input *AddAttributesToFinding // API operation AddAttributesToFindings for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/AddAttributesToFindings func (c *Inspector) AddAttributesToFindings(input *AddAttributesToFindingsInput) (*AddAttributesToFindingsOutput, error) { req, out := c.AddAttributesToFindingsRequest(input) err := req.Send() @@ -115,6 +116,7 @@ const opCreateAssessmentTarget = "CreateAssessmentTarget" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/CreateAssessmentTarget func (c *Inspector) CreateAssessmentTargetRequest(input *CreateAssessmentTargetInput) (req *request.Request, output *CreateAssessmentTargetOutput) { op := &request.Operation{ Name: opCreateAssessmentTarget, @@ -126,9 +128,8 @@ func (c *Inspector) CreateAssessmentTargetRequest(input *CreateAssessmentTargetI input = &CreateAssessmentTargetInput{} } - req = c.newRequest(op, input, output) output = &CreateAssessmentTargetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -147,24 +148,25 @@ func (c *Inspector) CreateAssessmentTargetRequest(input *CreateAssessmentTargetI // API operation CreateAssessmentTarget for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/CreateAssessmentTarget func (c *Inspector) CreateAssessmentTarget(input *CreateAssessmentTargetInput) (*CreateAssessmentTargetOutput, error) { req, out := c.CreateAssessmentTargetRequest(input) err := req.Send() @@ -197,6 +199,7 @@ const opCreateAssessmentTemplate = "CreateAssessmentTemplate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/CreateAssessmentTemplate func (c *Inspector) CreateAssessmentTemplateRequest(input *CreateAssessmentTemplateInput) (req *request.Request, output *CreateAssessmentTemplateOutput) { op := &request.Operation{ Name: opCreateAssessmentTemplate, @@ -208,9 +211,8 @@ func (c *Inspector) CreateAssessmentTemplateRequest(input *CreateAssessmentTempl input = &CreateAssessmentTemplateInput{} } - req = c.newRequest(op, input, output) output = &CreateAssessmentTemplateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -227,24 +229,25 @@ func (c *Inspector) CreateAssessmentTemplateRequest(input *CreateAssessmentTempl // API operation CreateAssessmentTemplate for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/CreateAssessmentTemplate func (c *Inspector) CreateAssessmentTemplate(input *CreateAssessmentTemplateInput) (*CreateAssessmentTemplateOutput, error) { req, out := c.CreateAssessmentTemplateRequest(input) err := req.Send() @@ -277,6 +280,7 @@ const opCreateResourceGroup = "CreateResourceGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/CreateResourceGroup func (c *Inspector) CreateResourceGroupRequest(input *CreateResourceGroupInput) (req *request.Request, output *CreateResourceGroupOutput) { op := &request.Operation{ Name: opCreateResourceGroup, @@ -288,9 +292,8 @@ func (c *Inspector) CreateResourceGroupRequest(input *CreateResourceGroupInput) input = &CreateResourceGroupInput{} } - req = c.newRequest(op, input, output) output = &CreateResourceGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -309,20 +312,21 @@ func (c *Inspector) CreateResourceGroupRequest(input *CreateResourceGroupInput) // API operation CreateResourceGroup for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/CreateResourceGroup func (c *Inspector) CreateResourceGroup(input *CreateResourceGroupInput) (*CreateResourceGroupOutput, error) { req, out := c.CreateResourceGroupRequest(input) err := req.Send() @@ -355,6 +359,7 @@ const opDeleteAssessmentRun = "DeleteAssessmentRun" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DeleteAssessmentRun func (c *Inspector) DeleteAssessmentRunRequest(input *DeleteAssessmentRunInput) (req *request.Request, output *DeleteAssessmentRunOutput) { op := &request.Operation{ Name: opDeleteAssessmentRun, @@ -366,11 +371,10 @@ func (c *Inspector) DeleteAssessmentRunRequest(input *DeleteAssessmentRunInput) input = &DeleteAssessmentRunInput{} } + output = &DeleteAssessmentRunOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAssessmentRunOutput{} - req.Data = output return } @@ -387,24 +391,25 @@ func (c *Inspector) DeleteAssessmentRunRequest(input *DeleteAssessmentRunInput) // API operation DeleteAssessmentRun for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * AssessmentRunInProgressException +// * ErrCodeAssessmentRunInProgressException "AssessmentRunInProgressException" // You cannot perform a specified action if an assessment run is currently in // progress. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DeleteAssessmentRun func (c *Inspector) DeleteAssessmentRun(input *DeleteAssessmentRunInput) (*DeleteAssessmentRunOutput, error) { req, out := c.DeleteAssessmentRunRequest(input) err := req.Send() @@ -437,6 +442,7 @@ const opDeleteAssessmentTarget = "DeleteAssessmentTarget" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DeleteAssessmentTarget func (c *Inspector) DeleteAssessmentTargetRequest(input *DeleteAssessmentTargetInput) (req *request.Request, output *DeleteAssessmentTargetOutput) { op := &request.Operation{ Name: opDeleteAssessmentTarget, @@ -448,11 +454,10 @@ func (c *Inspector) DeleteAssessmentTargetRequest(input *DeleteAssessmentTargetI input = &DeleteAssessmentTargetInput{} } + output = &DeleteAssessmentTargetOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAssessmentTargetOutput{} - req.Data = output return } @@ -469,24 +474,25 @@ func (c *Inspector) DeleteAssessmentTargetRequest(input *DeleteAssessmentTargetI // API operation DeleteAssessmentTarget for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * AssessmentRunInProgressException +// * ErrCodeAssessmentRunInProgressException "AssessmentRunInProgressException" // You cannot perform a specified action if an assessment run is currently in // progress. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DeleteAssessmentTarget func (c *Inspector) DeleteAssessmentTarget(input *DeleteAssessmentTargetInput) (*DeleteAssessmentTargetOutput, error) { req, out := c.DeleteAssessmentTargetRequest(input) err := req.Send() @@ -519,6 +525,7 @@ const opDeleteAssessmentTemplate = "DeleteAssessmentTemplate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DeleteAssessmentTemplate func (c *Inspector) DeleteAssessmentTemplateRequest(input *DeleteAssessmentTemplateInput) (req *request.Request, output *DeleteAssessmentTemplateOutput) { op := &request.Operation{ Name: opDeleteAssessmentTemplate, @@ -530,11 +537,10 @@ func (c *Inspector) DeleteAssessmentTemplateRequest(input *DeleteAssessmentTempl input = &DeleteAssessmentTemplateInput{} } + output = &DeleteAssessmentTemplateOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAssessmentTemplateOutput{} - req.Data = output return } @@ -551,24 +557,25 @@ func (c *Inspector) DeleteAssessmentTemplateRequest(input *DeleteAssessmentTempl // API operation DeleteAssessmentTemplate for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * AssessmentRunInProgressException +// * ErrCodeAssessmentRunInProgressException "AssessmentRunInProgressException" // You cannot perform a specified action if an assessment run is currently in // progress. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DeleteAssessmentTemplate func (c *Inspector) DeleteAssessmentTemplate(input *DeleteAssessmentTemplateInput) (*DeleteAssessmentTemplateOutput, error) { req, out := c.DeleteAssessmentTemplateRequest(input) err := req.Send() @@ -601,6 +608,7 @@ const opDescribeAssessmentRuns = "DescribeAssessmentRuns" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeAssessmentRuns func (c *Inspector) DescribeAssessmentRunsRequest(input *DescribeAssessmentRunsInput) (req *request.Request, output *DescribeAssessmentRunsOutput) { op := &request.Operation{ Name: opDescribeAssessmentRuns, @@ -612,9 +620,8 @@ func (c *Inspector) DescribeAssessmentRunsRequest(input *DescribeAssessmentRunsI input = &DescribeAssessmentRunsInput{} } - req = c.newRequest(op, input, output) output = &DescribeAssessmentRunsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -631,13 +638,14 @@ func (c *Inspector) DescribeAssessmentRunsRequest(input *DescribeAssessmentRunsI // API operation DescribeAssessmentRuns for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeAssessmentRuns func (c *Inspector) DescribeAssessmentRuns(input *DescribeAssessmentRunsInput) (*DescribeAssessmentRunsOutput, error) { req, out := c.DescribeAssessmentRunsRequest(input) err := req.Send() @@ -670,6 +678,7 @@ const opDescribeAssessmentTargets = "DescribeAssessmentTargets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeAssessmentTargets func (c *Inspector) DescribeAssessmentTargetsRequest(input *DescribeAssessmentTargetsInput) (req *request.Request, output *DescribeAssessmentTargetsOutput) { op := &request.Operation{ Name: opDescribeAssessmentTargets, @@ -681,9 +690,8 @@ func (c *Inspector) DescribeAssessmentTargetsRequest(input *DescribeAssessmentTa input = &DescribeAssessmentTargetsInput{} } - req = c.newRequest(op, input, output) output = &DescribeAssessmentTargetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -700,13 +708,14 @@ func (c *Inspector) DescribeAssessmentTargetsRequest(input *DescribeAssessmentTa // API operation DescribeAssessmentTargets for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeAssessmentTargets func (c *Inspector) DescribeAssessmentTargets(input *DescribeAssessmentTargetsInput) (*DescribeAssessmentTargetsOutput, error) { req, out := c.DescribeAssessmentTargetsRequest(input) err := req.Send() @@ -739,6 +748,7 @@ const opDescribeAssessmentTemplates = "DescribeAssessmentTemplates" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeAssessmentTemplates func (c *Inspector) DescribeAssessmentTemplatesRequest(input *DescribeAssessmentTemplatesInput) (req *request.Request, output *DescribeAssessmentTemplatesOutput) { op := &request.Operation{ Name: opDescribeAssessmentTemplates, @@ -750,9 +760,8 @@ func (c *Inspector) DescribeAssessmentTemplatesRequest(input *DescribeAssessment input = &DescribeAssessmentTemplatesInput{} } - req = c.newRequest(op, input, output) output = &DescribeAssessmentTemplatesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -769,13 +778,14 @@ func (c *Inspector) DescribeAssessmentTemplatesRequest(input *DescribeAssessment // API operation DescribeAssessmentTemplates for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeAssessmentTemplates func (c *Inspector) DescribeAssessmentTemplates(input *DescribeAssessmentTemplatesInput) (*DescribeAssessmentTemplatesOutput, error) { req, out := c.DescribeAssessmentTemplatesRequest(input) err := req.Send() @@ -808,6 +818,7 @@ const opDescribeCrossAccountAccessRole = "DescribeCrossAccountAccessRole" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeCrossAccountAccessRole func (c *Inspector) DescribeCrossAccountAccessRoleRequest(input *DescribeCrossAccountAccessRoleInput) (req *request.Request, output *DescribeCrossAccountAccessRoleOutput) { op := &request.Operation{ Name: opDescribeCrossAccountAccessRole, @@ -819,9 +830,8 @@ func (c *Inspector) DescribeCrossAccountAccessRoleRequest(input *DescribeCrossAc input = &DescribeCrossAccountAccessRoleInput{} } - req = c.newRequest(op, input, output) output = &DescribeCrossAccountAccessRoleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -837,9 +847,10 @@ func (c *Inspector) DescribeCrossAccountAccessRoleRequest(input *DescribeCrossAc // API operation DescribeCrossAccountAccessRole for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeCrossAccountAccessRole func (c *Inspector) DescribeCrossAccountAccessRole(input *DescribeCrossAccountAccessRoleInput) (*DescribeCrossAccountAccessRoleOutput, error) { req, out := c.DescribeCrossAccountAccessRoleRequest(input) err := req.Send() @@ -872,6 +883,7 @@ const opDescribeFindings = "DescribeFindings" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeFindings func (c *Inspector) DescribeFindingsRequest(input *DescribeFindingsInput) (req *request.Request, output *DescribeFindingsOutput) { op := &request.Operation{ Name: opDescribeFindings, @@ -883,9 +895,8 @@ func (c *Inspector) DescribeFindingsRequest(input *DescribeFindingsInput) (req * input = &DescribeFindingsInput{} } - req = c.newRequest(op, input, output) output = &DescribeFindingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -901,13 +912,14 @@ func (c *Inspector) DescribeFindingsRequest(input *DescribeFindingsInput) (req * // API operation DescribeFindings for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeFindings func (c *Inspector) DescribeFindings(input *DescribeFindingsInput) (*DescribeFindingsOutput, error) { req, out := c.DescribeFindingsRequest(input) err := req.Send() @@ -940,6 +952,7 @@ const opDescribeResourceGroups = "DescribeResourceGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeResourceGroups func (c *Inspector) DescribeResourceGroupsRequest(input *DescribeResourceGroupsInput) (req *request.Request, output *DescribeResourceGroupsOutput) { op := &request.Operation{ Name: opDescribeResourceGroups, @@ -951,9 +964,8 @@ func (c *Inspector) DescribeResourceGroupsRequest(input *DescribeResourceGroupsI input = &DescribeResourceGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeResourceGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -970,13 +982,14 @@ func (c *Inspector) DescribeResourceGroupsRequest(input *DescribeResourceGroupsI // API operation DescribeResourceGroups for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeResourceGroups func (c *Inspector) DescribeResourceGroups(input *DescribeResourceGroupsInput) (*DescribeResourceGroupsOutput, error) { req, out := c.DescribeResourceGroupsRequest(input) err := req.Send() @@ -1009,6 +1022,7 @@ const opDescribeRulesPackages = "DescribeRulesPackages" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeRulesPackages func (c *Inspector) DescribeRulesPackagesRequest(input *DescribeRulesPackagesInput) (req *request.Request, output *DescribeRulesPackagesOutput) { op := &request.Operation{ Name: opDescribeRulesPackages, @@ -1020,9 +1034,8 @@ func (c *Inspector) DescribeRulesPackagesRequest(input *DescribeRulesPackagesInp input = &DescribeRulesPackagesInput{} } - req = c.newRequest(op, input, output) output = &DescribeRulesPackagesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1039,13 +1052,14 @@ func (c *Inspector) DescribeRulesPackagesRequest(input *DescribeRulesPackagesInp // API operation DescribeRulesPackages for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeRulesPackages func (c *Inspector) DescribeRulesPackages(input *DescribeRulesPackagesInput) (*DescribeRulesPackagesOutput, error) { req, out := c.DescribeRulesPackagesRequest(input) err := req.Send() @@ -1078,6 +1092,7 @@ const opGetTelemetryMetadata = "GetTelemetryMetadata" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/GetTelemetryMetadata func (c *Inspector) GetTelemetryMetadataRequest(input *GetTelemetryMetadataInput) (req *request.Request, output *GetTelemetryMetadataOutput) { op := &request.Operation{ Name: opGetTelemetryMetadata, @@ -1089,9 +1104,8 @@ func (c *Inspector) GetTelemetryMetadataRequest(input *GetTelemetryMetadataInput input = &GetTelemetryMetadataInput{} } - req = c.newRequest(op, input, output) output = &GetTelemetryMetadataOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1108,20 +1122,21 @@ func (c *Inspector) GetTelemetryMetadataRequest(input *GetTelemetryMetadataInput // API operation GetTelemetryMetadata for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/GetTelemetryMetadata func (c *Inspector) GetTelemetryMetadata(input *GetTelemetryMetadataInput) (*GetTelemetryMetadataOutput, error) { req, out := c.GetTelemetryMetadataRequest(input) err := req.Send() @@ -1154,6 +1169,7 @@ const opListAssessmentRunAgents = "ListAssessmentRunAgents" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListAssessmentRunAgents func (c *Inspector) ListAssessmentRunAgentsRequest(input *ListAssessmentRunAgentsInput) (req *request.Request, output *ListAssessmentRunAgentsOutput) { op := &request.Operation{ Name: opListAssessmentRunAgents, @@ -1165,9 +1181,8 @@ func (c *Inspector) ListAssessmentRunAgentsRequest(input *ListAssessmentRunAgent input = &ListAssessmentRunAgentsInput{} } - req = c.newRequest(op, input, output) output = &ListAssessmentRunAgentsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1184,20 +1199,21 @@ func (c *Inspector) ListAssessmentRunAgentsRequest(input *ListAssessmentRunAgent // API operation ListAssessmentRunAgents for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListAssessmentRunAgents func (c *Inspector) ListAssessmentRunAgents(input *ListAssessmentRunAgentsInput) (*ListAssessmentRunAgentsOutput, error) { req, out := c.ListAssessmentRunAgentsRequest(input) err := req.Send() @@ -1230,6 +1246,7 @@ const opListAssessmentRuns = "ListAssessmentRuns" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListAssessmentRuns func (c *Inspector) ListAssessmentRunsRequest(input *ListAssessmentRunsInput) (req *request.Request, output *ListAssessmentRunsOutput) { op := &request.Operation{ Name: opListAssessmentRuns, @@ -1241,9 +1258,8 @@ func (c *Inspector) ListAssessmentRunsRequest(input *ListAssessmentRunsInput) (r input = &ListAssessmentRunsInput{} } - req = c.newRequest(op, input, output) output = &ListAssessmentRunsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1260,20 +1276,21 @@ func (c *Inspector) ListAssessmentRunsRequest(input *ListAssessmentRunsInput) (r // API operation ListAssessmentRuns for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListAssessmentRuns func (c *Inspector) ListAssessmentRuns(input *ListAssessmentRunsInput) (*ListAssessmentRunsOutput, error) { req, out := c.ListAssessmentRunsRequest(input) err := req.Send() @@ -1306,6 +1323,7 @@ const opListAssessmentTargets = "ListAssessmentTargets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListAssessmentTargets func (c *Inspector) ListAssessmentTargetsRequest(input *ListAssessmentTargetsInput) (req *request.Request, output *ListAssessmentTargetsOutput) { op := &request.Operation{ Name: opListAssessmentTargets, @@ -1317,9 +1335,8 @@ func (c *Inspector) ListAssessmentTargetsRequest(input *ListAssessmentTargetsInp input = &ListAssessmentTargetsInput{} } - req = c.newRequest(op, input, output) output = &ListAssessmentTargetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1337,16 +1354,17 @@ func (c *Inspector) ListAssessmentTargetsRequest(input *ListAssessmentTargetsInp // API operation ListAssessmentTargets for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListAssessmentTargets func (c *Inspector) ListAssessmentTargets(input *ListAssessmentTargetsInput) (*ListAssessmentTargetsOutput, error) { req, out := c.ListAssessmentTargetsRequest(input) err := req.Send() @@ -1379,6 +1397,7 @@ const opListAssessmentTemplates = "ListAssessmentTemplates" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListAssessmentTemplates func (c *Inspector) ListAssessmentTemplatesRequest(input *ListAssessmentTemplatesInput) (req *request.Request, output *ListAssessmentTemplatesOutput) { op := &request.Operation{ Name: opListAssessmentTemplates, @@ -1390,9 +1409,8 @@ func (c *Inspector) ListAssessmentTemplatesRequest(input *ListAssessmentTemplate input = &ListAssessmentTemplatesInput{} } - req = c.newRequest(op, input, output) output = &ListAssessmentTemplatesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1409,20 +1427,21 @@ func (c *Inspector) ListAssessmentTemplatesRequest(input *ListAssessmentTemplate // API operation ListAssessmentTemplates for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListAssessmentTemplates func (c *Inspector) ListAssessmentTemplates(input *ListAssessmentTemplatesInput) (*ListAssessmentTemplatesOutput, error) { req, out := c.ListAssessmentTemplatesRequest(input) err := req.Send() @@ -1455,6 +1474,7 @@ const opListEventSubscriptions = "ListEventSubscriptions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListEventSubscriptions func (c *Inspector) ListEventSubscriptionsRequest(input *ListEventSubscriptionsInput) (req *request.Request, output *ListEventSubscriptionsOutput) { op := &request.Operation{ Name: opListEventSubscriptions, @@ -1466,9 +1486,8 @@ func (c *Inspector) ListEventSubscriptionsRequest(input *ListEventSubscriptionsI input = &ListEventSubscriptionsInput{} } - req = c.newRequest(op, input, output) output = &ListEventSubscriptionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1486,20 +1505,21 @@ func (c *Inspector) ListEventSubscriptionsRequest(input *ListEventSubscriptionsI // API operation ListEventSubscriptions for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListEventSubscriptions func (c *Inspector) ListEventSubscriptions(input *ListEventSubscriptionsInput) (*ListEventSubscriptionsOutput, error) { req, out := c.ListEventSubscriptionsRequest(input) err := req.Send() @@ -1532,6 +1552,7 @@ const opListFindings = "ListFindings" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListFindings func (c *Inspector) ListFindingsRequest(input *ListFindingsInput) (req *request.Request, output *ListFindingsOutput) { op := &request.Operation{ Name: opListFindings, @@ -1543,9 +1564,8 @@ func (c *Inspector) ListFindingsRequest(input *ListFindingsInput) (req *request. input = &ListFindingsInput{} } - req = c.newRequest(op, input, output) output = &ListFindingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1562,20 +1582,21 @@ func (c *Inspector) ListFindingsRequest(input *ListFindingsInput) (req *request. // API operation ListFindings for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListFindings func (c *Inspector) ListFindings(input *ListFindingsInput) (*ListFindingsOutput, error) { req, out := c.ListFindingsRequest(input) err := req.Send() @@ -1608,6 +1629,7 @@ const opListRulesPackages = "ListRulesPackages" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListRulesPackages func (c *Inspector) ListRulesPackagesRequest(input *ListRulesPackagesInput) (req *request.Request, output *ListRulesPackagesOutput) { op := &request.Operation{ Name: opListRulesPackages, @@ -1619,9 +1641,8 @@ func (c *Inspector) ListRulesPackagesRequest(input *ListRulesPackagesInput) (req input = &ListRulesPackagesInput{} } - req = c.newRequest(op, input, output) output = &ListRulesPackagesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1637,16 +1658,17 @@ func (c *Inspector) ListRulesPackagesRequest(input *ListRulesPackagesInput) (req // API operation ListRulesPackages for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListRulesPackages func (c *Inspector) ListRulesPackages(input *ListRulesPackagesInput) (*ListRulesPackagesOutput, error) { req, out := c.ListRulesPackagesRequest(input) err := req.Send() @@ -1679,6 +1701,7 @@ const opListTagsForResource = "ListTagsForResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListTagsForResource func (c *Inspector) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ Name: opListTagsForResource, @@ -1690,9 +1713,8 @@ func (c *Inspector) ListTagsForResourceRequest(input *ListTagsForResourceInput) input = &ListTagsForResourceInput{} } - req = c.newRequest(op, input, output) output = &ListTagsForResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1708,20 +1730,21 @@ func (c *Inspector) ListTagsForResourceRequest(input *ListTagsForResourceInput) // API operation ListTagsForResource for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListTagsForResource func (c *Inspector) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -1754,6 +1777,7 @@ const opPreviewAgents = "PreviewAgents" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/PreviewAgents func (c *Inspector) PreviewAgentsRequest(input *PreviewAgentsInput) (req *request.Request, output *PreviewAgentsOutput) { op := &request.Operation{ Name: opPreviewAgents, @@ -1765,9 +1789,8 @@ func (c *Inspector) PreviewAgentsRequest(input *PreviewAgentsInput) (req *reques input = &PreviewAgentsInput{} } - req = c.newRequest(op, input, output) output = &PreviewAgentsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1784,24 +1807,25 @@ func (c *Inspector) PreviewAgentsRequest(input *PreviewAgentsInput) (req *reques // API operation PreviewAgents for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // -// * InvalidCrossAccountRoleException +// * ErrCodeInvalidCrossAccountRoleException "InvalidCrossAccountRoleException" // Amazon Inspector cannot assume the cross-account role that it needs to list // your EC2 instances during the assessment run. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/PreviewAgents func (c *Inspector) PreviewAgents(input *PreviewAgentsInput) (*PreviewAgentsOutput, error) { req, out := c.PreviewAgentsRequest(input) err := req.Send() @@ -1834,6 +1858,7 @@ const opRegisterCrossAccountAccessRole = "RegisterCrossAccountAccessRole" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/RegisterCrossAccountAccessRole func (c *Inspector) RegisterCrossAccountAccessRoleRequest(input *RegisterCrossAccountAccessRoleInput) (req *request.Request, output *RegisterCrossAccountAccessRoleOutput) { op := &request.Operation{ Name: opRegisterCrossAccountAccessRole, @@ -1845,11 +1870,10 @@ func (c *Inspector) RegisterCrossAccountAccessRoleRequest(input *RegisterCrossAc input = &RegisterCrossAccountAccessRoleInput{} } + output = &RegisterCrossAccountAccessRoleOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RegisterCrossAccountAccessRoleOutput{} - req.Data = output return } @@ -1866,20 +1890,21 @@ func (c *Inspector) RegisterCrossAccountAccessRoleRequest(input *RegisterCrossAc // API operation RegisterCrossAccountAccessRole for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * InvalidCrossAccountRoleException +// * ErrCodeInvalidCrossAccountRoleException "InvalidCrossAccountRoleException" // Amazon Inspector cannot assume the cross-account role that it needs to list // your EC2 instances during the assessment run. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/RegisterCrossAccountAccessRole func (c *Inspector) RegisterCrossAccountAccessRole(input *RegisterCrossAccountAccessRoleInput) (*RegisterCrossAccountAccessRoleOutput, error) { req, out := c.RegisterCrossAccountAccessRoleRequest(input) err := req.Send() @@ -1912,6 +1937,7 @@ const opRemoveAttributesFromFindings = "RemoveAttributesFromFindings" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/RemoveAttributesFromFindings func (c *Inspector) RemoveAttributesFromFindingsRequest(input *RemoveAttributesFromFindingsInput) (req *request.Request, output *RemoveAttributesFromFindingsOutput) { op := &request.Operation{ Name: opRemoveAttributesFromFindings, @@ -1923,9 +1949,8 @@ func (c *Inspector) RemoveAttributesFromFindingsRequest(input *RemoveAttributesF input = &RemoveAttributesFromFindingsInput{} } - req = c.newRequest(op, input, output) output = &RemoveAttributesFromFindingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1943,20 +1968,21 @@ func (c *Inspector) RemoveAttributesFromFindingsRequest(input *RemoveAttributesF // API operation RemoveAttributesFromFindings for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/RemoveAttributesFromFindings func (c *Inspector) RemoveAttributesFromFindings(input *RemoveAttributesFromFindingsInput) (*RemoveAttributesFromFindingsOutput, error) { req, out := c.RemoveAttributesFromFindingsRequest(input) err := req.Send() @@ -1989,6 +2015,7 @@ const opSetTagsForResource = "SetTagsForResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/SetTagsForResource func (c *Inspector) SetTagsForResourceRequest(input *SetTagsForResourceInput) (req *request.Request, output *SetTagsForResourceOutput) { op := &request.Operation{ Name: opSetTagsForResource, @@ -2000,11 +2027,10 @@ func (c *Inspector) SetTagsForResourceRequest(input *SetTagsForResourceInput) (r input = &SetTagsForResourceInput{} } + output = &SetTagsForResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetTagsForResourceOutput{} - req.Data = output return } @@ -2021,20 +2047,21 @@ func (c *Inspector) SetTagsForResourceRequest(input *SetTagsForResourceInput) (r // API operation SetTagsForResource for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/SetTagsForResource func (c *Inspector) SetTagsForResource(input *SetTagsForResourceInput) (*SetTagsForResourceOutput, error) { req, out := c.SetTagsForResourceRequest(input) err := req.Send() @@ -2067,6 +2094,7 @@ const opStartAssessmentRun = "StartAssessmentRun" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/StartAssessmentRun func (c *Inspector) StartAssessmentRunRequest(input *StartAssessmentRunInput) (req *request.Request, output *StartAssessmentRunOutput) { op := &request.Operation{ Name: opStartAssessmentRun, @@ -2078,9 +2106,8 @@ func (c *Inspector) StartAssessmentRunRequest(input *StartAssessmentRunInput) (r input = &StartAssessmentRunInput{} } - req = c.newRequest(op, input, output) output = &StartAssessmentRunOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2098,32 +2125,33 @@ func (c *Inspector) StartAssessmentRunRequest(input *StartAssessmentRunInput) (r // API operation StartAssessmentRun for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // -// * InvalidCrossAccountRoleException +// * ErrCodeInvalidCrossAccountRoleException "InvalidCrossAccountRoleException" // Amazon Inspector cannot assume the cross-account role that it needs to list // your EC2 instances during the assessment run. // -// * AgentsAlreadyRunningAssessmentException +// * ErrCodeAgentsAlreadyRunningAssessmentException "AgentsAlreadyRunningAssessmentException" // You started an assessment run, but one of the instances is already participating // in another assessment run. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/StartAssessmentRun func (c *Inspector) StartAssessmentRun(input *StartAssessmentRunInput) (*StartAssessmentRunOutput, error) { req, out := c.StartAssessmentRunRequest(input) err := req.Send() @@ -2156,6 +2184,7 @@ const opStopAssessmentRun = "StopAssessmentRun" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/StopAssessmentRun func (c *Inspector) StopAssessmentRunRequest(input *StopAssessmentRunInput) (req *request.Request, output *StopAssessmentRunOutput) { op := &request.Operation{ Name: opStopAssessmentRun, @@ -2167,11 +2196,10 @@ func (c *Inspector) StopAssessmentRunRequest(input *StopAssessmentRunInput) (req input = &StopAssessmentRunInput{} } + output = &StopAssessmentRunOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &StopAssessmentRunOutput{} - req.Data = output return } @@ -2187,20 +2215,21 @@ func (c *Inspector) StopAssessmentRunRequest(input *StopAssessmentRunInput) (req // API operation StopAssessmentRun for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/StopAssessmentRun func (c *Inspector) StopAssessmentRun(input *StopAssessmentRunInput) (*StopAssessmentRunOutput, error) { req, out := c.StopAssessmentRunRequest(input) err := req.Send() @@ -2233,6 +2262,7 @@ const opSubscribeToEvent = "SubscribeToEvent" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/SubscribeToEvent func (c *Inspector) SubscribeToEventRequest(input *SubscribeToEventInput) (req *request.Request, output *SubscribeToEventOutput) { op := &request.Operation{ Name: opSubscribeToEvent, @@ -2244,11 +2274,10 @@ func (c *Inspector) SubscribeToEventRequest(input *SubscribeToEventInput) (req * input = &SubscribeToEventInput{} } + output = &SubscribeToEventOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SubscribeToEventOutput{} - req.Data = output return } @@ -2265,24 +2294,25 @@ func (c *Inspector) SubscribeToEventRequest(input *SubscribeToEventInput) (req * // API operation SubscribeToEvent for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/SubscribeToEvent func (c *Inspector) SubscribeToEvent(input *SubscribeToEventInput) (*SubscribeToEventOutput, error) { req, out := c.SubscribeToEventRequest(input) err := req.Send() @@ -2315,6 +2345,7 @@ const opUnsubscribeFromEvent = "UnsubscribeFromEvent" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/UnsubscribeFromEvent func (c *Inspector) UnsubscribeFromEventRequest(input *UnsubscribeFromEventInput) (req *request.Request, output *UnsubscribeFromEventOutput) { op := &request.Operation{ Name: opUnsubscribeFromEvent, @@ -2326,11 +2357,10 @@ func (c *Inspector) UnsubscribeFromEventRequest(input *UnsubscribeFromEventInput input = &UnsubscribeFromEventInput{} } + output = &UnsubscribeFromEventOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UnsubscribeFromEventOutput{} - req.Data = output return } @@ -2347,20 +2377,21 @@ func (c *Inspector) UnsubscribeFromEventRequest(input *UnsubscribeFromEventInput // API operation UnsubscribeFromEvent for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/UnsubscribeFromEvent func (c *Inspector) UnsubscribeFromEvent(input *UnsubscribeFromEventInput) (*UnsubscribeFromEventOutput, error) { req, out := c.UnsubscribeFromEventRequest(input) err := req.Send() @@ -2393,6 +2424,7 @@ const opUpdateAssessmentTarget = "UpdateAssessmentTarget" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/UpdateAssessmentTarget func (c *Inspector) UpdateAssessmentTargetRequest(input *UpdateAssessmentTargetInput) (req *request.Request, output *UpdateAssessmentTargetOutput) { op := &request.Operation{ Name: opUpdateAssessmentTarget, @@ -2404,11 +2436,10 @@ func (c *Inspector) UpdateAssessmentTargetRequest(input *UpdateAssessmentTargetI input = &UpdateAssessmentTargetInput{} } + output = &UpdateAssessmentTargetOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateAssessmentTargetOutput{} - req.Data = output return } @@ -2425,26 +2456,28 @@ func (c *Inspector) UpdateAssessmentTargetRequest(input *UpdateAssessmentTargetI // API operation UpdateAssessmentTarget for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // Internal server error. // -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * AccessDeniedException +// * ErrCodeAccessDeniedException "AccessDeniedException" // You do not have required permissions to access the requested resource. // -// * NoSuchEntityException +// * ErrCodeNoSuchEntityException "NoSuchEntityException" // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/UpdateAssessmentTarget func (c *Inspector) UpdateAssessmentTarget(input *UpdateAssessmentTargetInput) (*UpdateAssessmentTargetOutput, error) { req, out := c.UpdateAssessmentTargetRequest(input) err := req.Send() return out, err } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/AddAttributesToFindingsRequest type AddAttributesToFindingsInput struct { _ struct{} `type:"structure"` @@ -2498,6 +2531,19 @@ func (s *AddAttributesToFindingsInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *AddAttributesToFindingsInput) SetAttributes(v []*Attribute) *AddAttributesToFindingsInput { + s.Attributes = v + return s +} + +// SetFindingArns sets the FindingArns field's value. +func (s *AddAttributesToFindingsInput) SetFindingArns(v []*string) *AddAttributesToFindingsInput { + s.FindingArns = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/AddAttributesToFindingsResponse type AddAttributesToFindingsOutput struct { _ struct{} `type:"structure"` @@ -2518,9 +2564,16 @@ func (s AddAttributesToFindingsOutput) GoString() string { return s.String() } +// SetFailedItems sets the FailedItems field's value. +func (s *AddAttributesToFindingsOutput) SetFailedItems(v map[string]*FailedItemDetails) *AddAttributesToFindingsOutput { + s.FailedItems = v + return s +} + // Used in the exception error that is thrown if you start an assessment run // for an assessment target that includes an EC2 instance that is already participating // in another started assessment run. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/AgentAlreadyRunningAssessment type AgentAlreadyRunningAssessment struct { _ struct{} `type:"structure"` @@ -2546,8 +2599,21 @@ func (s AgentAlreadyRunningAssessment) GoString() string { return s.String() } +// SetAgentId sets the AgentId field's value. +func (s *AgentAlreadyRunningAssessment) SetAgentId(v string) *AgentAlreadyRunningAssessment { + s.AgentId = &v + return s +} + +// SetAssessmentRunArn sets the AssessmentRunArn field's value. +func (s *AgentAlreadyRunningAssessment) SetAssessmentRunArn(v string) *AgentAlreadyRunningAssessment { + s.AssessmentRunArn = &v + return s +} + // Contains information about an Amazon Inspector agent. This data type is used // as a request parameter in the ListAssessmentRunAgents action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/AgentFilter type AgentFilter struct { _ struct{} `type:"structure"` @@ -2589,7 +2655,20 @@ func (s *AgentFilter) Validate() error { return nil } +// SetAgentHealthCodes sets the AgentHealthCodes field's value. +func (s *AgentFilter) SetAgentHealthCodes(v []*string) *AgentFilter { + s.AgentHealthCodes = v + return s +} + +// SetAgentHealths sets the AgentHealths field's value. +func (s *AgentFilter) SetAgentHealths(v []*string) *AgentFilter { + s.AgentHealths = v + return s +} + // Used as a response element in the PreviewAgents action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/AgentPreview type AgentPreview struct { _ struct{} `type:"structure"` @@ -2612,10 +2691,23 @@ func (s AgentPreview) GoString() string { return s.String() } +// SetAgentId sets the AgentId field's value. +func (s *AgentPreview) SetAgentId(v string) *AgentPreview { + s.AgentId = &v + return s +} + +// SetAutoScalingGroup sets the AutoScalingGroup field's value. +func (s *AgentPreview) SetAutoScalingGroup(v string) *AgentPreview { + s.AutoScalingGroup = &v + return s +} + // A snapshot of an Amazon Inspector assessment run that contains the findings // of the assessment run . // // Used as the response element in the DescribeAssessmentRuns action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/AssessmentRun type AssessmentRun struct { _ struct{} `type:"structure"` @@ -2700,8 +2792,93 @@ func (s AssessmentRun) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *AssessmentRun) SetArn(v string) *AssessmentRun { + s.Arn = &v + return s +} + +// SetAssessmentTemplateArn sets the AssessmentTemplateArn field's value. +func (s *AssessmentRun) SetAssessmentTemplateArn(v string) *AssessmentRun { + s.AssessmentTemplateArn = &v + return s +} + +// SetCompletedAt sets the CompletedAt field's value. +func (s *AssessmentRun) SetCompletedAt(v time.Time) *AssessmentRun { + s.CompletedAt = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *AssessmentRun) SetCreatedAt(v time.Time) *AssessmentRun { + s.CreatedAt = &v + return s +} + +// SetDataCollected sets the DataCollected field's value. +func (s *AssessmentRun) SetDataCollected(v bool) *AssessmentRun { + s.DataCollected = &v + return s +} + +// SetDurationInSeconds sets the DurationInSeconds field's value. +func (s *AssessmentRun) SetDurationInSeconds(v int64) *AssessmentRun { + s.DurationInSeconds = &v + return s +} + +// SetName sets the Name field's value. +func (s *AssessmentRun) SetName(v string) *AssessmentRun { + s.Name = &v + return s +} + +// SetNotifications sets the Notifications field's value. +func (s *AssessmentRun) SetNotifications(v []*AssessmentRunNotification) *AssessmentRun { + s.Notifications = v + return s +} + +// SetRulesPackageArns sets the RulesPackageArns field's value. +func (s *AssessmentRun) SetRulesPackageArns(v []*string) *AssessmentRun { + s.RulesPackageArns = v + return s +} + +// SetStartedAt sets the StartedAt field's value. +func (s *AssessmentRun) SetStartedAt(v time.Time) *AssessmentRun { + s.StartedAt = &v + return s +} + +// SetState sets the State field's value. +func (s *AssessmentRun) SetState(v string) *AssessmentRun { + s.State = &v + return s +} + +// SetStateChangedAt sets the StateChangedAt field's value. +func (s *AssessmentRun) SetStateChangedAt(v time.Time) *AssessmentRun { + s.StateChangedAt = &v + return s +} + +// SetStateChanges sets the StateChanges field's value. +func (s *AssessmentRun) SetStateChanges(v []*AssessmentRunStateChange) *AssessmentRun { + s.StateChanges = v + return s +} + +// SetUserAttributesForFindings sets the UserAttributesForFindings field's value. +func (s *AssessmentRun) SetUserAttributesForFindings(v []*Attribute) *AssessmentRun { + s.UserAttributesForFindings = v + return s +} + // Contains information about an Amazon Inspector agent. This data type is used // as a response element in the ListAssessmentRunAgents action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/AssessmentRunAgent type AssessmentRunAgent struct { _ struct{} `type:"structure"` @@ -2748,7 +2925,50 @@ func (s AssessmentRunAgent) GoString() string { return s.String() } +// SetAgentHealth sets the AgentHealth field's value. +func (s *AssessmentRunAgent) SetAgentHealth(v string) *AssessmentRunAgent { + s.AgentHealth = &v + return s +} + +// SetAgentHealthCode sets the AgentHealthCode field's value. +func (s *AssessmentRunAgent) SetAgentHealthCode(v string) *AssessmentRunAgent { + s.AgentHealthCode = &v + return s +} + +// SetAgentHealthDetails sets the AgentHealthDetails field's value. +func (s *AssessmentRunAgent) SetAgentHealthDetails(v string) *AssessmentRunAgent { + s.AgentHealthDetails = &v + return s +} + +// SetAgentId sets the AgentId field's value. +func (s *AssessmentRunAgent) SetAgentId(v string) *AssessmentRunAgent { + s.AgentId = &v + return s +} + +// SetAssessmentRunArn sets the AssessmentRunArn field's value. +func (s *AssessmentRunAgent) SetAssessmentRunArn(v string) *AssessmentRunAgent { + s.AssessmentRunArn = &v + return s +} + +// SetAutoScalingGroup sets the AutoScalingGroup field's value. +func (s *AssessmentRunAgent) SetAutoScalingGroup(v string) *AssessmentRunAgent { + s.AutoScalingGroup = &v + return s +} + +// SetTelemetryMetadata sets the TelemetryMetadata field's value. +func (s *AssessmentRunAgent) SetTelemetryMetadata(v []*TelemetryMetadata) *AssessmentRunAgent { + s.TelemetryMetadata = v + return s +} + // Used as the request parameter in the ListAssessmentRuns action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/AssessmentRunFilter type AssessmentRunFilter struct { _ struct{} `type:"structure"` @@ -2818,7 +3038,50 @@ func (s *AssessmentRunFilter) Validate() error { return nil } +// SetCompletionTimeRange sets the CompletionTimeRange field's value. +func (s *AssessmentRunFilter) SetCompletionTimeRange(v *TimestampRange) *AssessmentRunFilter { + s.CompletionTimeRange = v + return s +} + +// SetDurationRange sets the DurationRange field's value. +func (s *AssessmentRunFilter) SetDurationRange(v *DurationRange) *AssessmentRunFilter { + s.DurationRange = v + return s +} + +// SetNamePattern sets the NamePattern field's value. +func (s *AssessmentRunFilter) SetNamePattern(v string) *AssessmentRunFilter { + s.NamePattern = &v + return s +} + +// SetRulesPackageArns sets the RulesPackageArns field's value. +func (s *AssessmentRunFilter) SetRulesPackageArns(v []*string) *AssessmentRunFilter { + s.RulesPackageArns = v + return s +} + +// SetStartTimeRange sets the StartTimeRange field's value. +func (s *AssessmentRunFilter) SetStartTimeRange(v *TimestampRange) *AssessmentRunFilter { + s.StartTimeRange = v + return s +} + +// SetStateChangeTimeRange sets the StateChangeTimeRange field's value. +func (s *AssessmentRunFilter) SetStateChangeTimeRange(v *TimestampRange) *AssessmentRunFilter { + s.StateChangeTimeRange = v + return s +} + +// SetStates sets the States field's value. +func (s *AssessmentRunFilter) SetStates(v []*string) *AssessmentRunFilter { + s.States = v + return s +} + // Used as one of the elements of the AssessmentRun data type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/AssessmentRunNotification type AssessmentRunNotification struct { _ struct{} `type:"structure"` @@ -2856,7 +3119,44 @@ func (s AssessmentRunNotification) GoString() string { return s.String() } +// SetDate sets the Date field's value. +func (s *AssessmentRunNotification) SetDate(v time.Time) *AssessmentRunNotification { + s.Date = &v + return s +} + +// SetError sets the Error field's value. +func (s *AssessmentRunNotification) SetError(v bool) *AssessmentRunNotification { + s.Error = &v + return s +} + +// SetEvent sets the Event field's value. +func (s *AssessmentRunNotification) SetEvent(v string) *AssessmentRunNotification { + s.Event = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *AssessmentRunNotification) SetMessage(v string) *AssessmentRunNotification { + s.Message = &v + return s +} + +// SetSnsPublishStatusCode sets the SnsPublishStatusCode field's value. +func (s *AssessmentRunNotification) SetSnsPublishStatusCode(v string) *AssessmentRunNotification { + s.SnsPublishStatusCode = &v + return s +} + +// SetSnsTopicArn sets the SnsTopicArn field's value. +func (s *AssessmentRunNotification) SetSnsTopicArn(v string) *AssessmentRunNotification { + s.SnsTopicArn = &v + return s +} + // Used as one of the elements of the AssessmentRun data type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/AssessmentRunStateChange type AssessmentRunStateChange struct { _ struct{} `type:"structure"` @@ -2881,8 +3181,21 @@ func (s AssessmentRunStateChange) GoString() string { return s.String() } +// SetState sets the State field's value. +func (s *AssessmentRunStateChange) SetState(v string) *AssessmentRunStateChange { + s.State = &v + return s +} + +// SetStateChangedAt sets the StateChangedAt field's value. +func (s *AssessmentRunStateChange) SetStateChangedAt(v time.Time) *AssessmentRunStateChange { + s.StateChangedAt = &v + return s +} + // Contains information about an Amazon Inspector application. This data type // is used as the response element in the DescribeAssessmentTargets action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/AssessmentTarget type AssessmentTarget struct { _ struct{} `type:"structure"` @@ -2923,7 +3236,38 @@ func (s AssessmentTarget) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *AssessmentTarget) SetArn(v string) *AssessmentTarget { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *AssessmentTarget) SetCreatedAt(v time.Time) *AssessmentTarget { + s.CreatedAt = &v + return s +} + +// SetName sets the Name field's value. +func (s *AssessmentTarget) SetName(v string) *AssessmentTarget { + s.Name = &v + return s +} + +// SetResourceGroupArn sets the ResourceGroupArn field's value. +func (s *AssessmentTarget) SetResourceGroupArn(v string) *AssessmentTarget { + s.ResourceGroupArn = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *AssessmentTarget) SetUpdatedAt(v time.Time) *AssessmentTarget { + s.UpdatedAt = &v + return s +} + // Used as the request parameter in the ListAssessmentTargets action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/AssessmentTargetFilter type AssessmentTargetFilter struct { _ struct{} `type:"structure"` @@ -2956,9 +3300,16 @@ func (s *AssessmentTargetFilter) Validate() error { return nil } +// SetAssessmentTargetNamePattern sets the AssessmentTargetNamePattern field's value. +func (s *AssessmentTargetFilter) SetAssessmentTargetNamePattern(v string) *AssessmentTargetFilter { + s.AssessmentTargetNamePattern = &v + return s +} + // Contains information about an Amazon Inspector assessment template. This // data type is used as the response element in the DescribeAssessmentTemplates // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/AssessmentTemplate type AssessmentTemplate struct { _ struct{} `type:"structure"` @@ -3011,7 +3362,50 @@ func (s AssessmentTemplate) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *AssessmentTemplate) SetArn(v string) *AssessmentTemplate { + s.Arn = &v + return s +} + +// SetAssessmentTargetArn sets the AssessmentTargetArn field's value. +func (s *AssessmentTemplate) SetAssessmentTargetArn(v string) *AssessmentTemplate { + s.AssessmentTargetArn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *AssessmentTemplate) SetCreatedAt(v time.Time) *AssessmentTemplate { + s.CreatedAt = &v + return s +} + +// SetDurationInSeconds sets the DurationInSeconds field's value. +func (s *AssessmentTemplate) SetDurationInSeconds(v int64) *AssessmentTemplate { + s.DurationInSeconds = &v + return s +} + +// SetName sets the Name field's value. +func (s *AssessmentTemplate) SetName(v string) *AssessmentTemplate { + s.Name = &v + return s +} + +// SetRulesPackageArns sets the RulesPackageArns field's value. +func (s *AssessmentTemplate) SetRulesPackageArns(v []*string) *AssessmentTemplate { + s.RulesPackageArns = v + return s +} + +// SetUserAttributesForFindings sets the UserAttributesForFindings field's value. +func (s *AssessmentTemplate) SetUserAttributesForFindings(v []*Attribute) *AssessmentTemplate { + s.UserAttributesForFindings = v + return s +} + // Used as the request parameter in the ListAssessmentTemplates action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/AssessmentTemplateFilter type AssessmentTemplateFilter struct { _ struct{} `type:"structure"` @@ -3059,7 +3453,26 @@ func (s *AssessmentTemplateFilter) Validate() error { return nil } +// SetDurationRange sets the DurationRange field's value. +func (s *AssessmentTemplateFilter) SetDurationRange(v *DurationRange) *AssessmentTemplateFilter { + s.DurationRange = v + return s +} + +// SetNamePattern sets the NamePattern field's value. +func (s *AssessmentTemplateFilter) SetNamePattern(v string) *AssessmentTemplateFilter { + s.NamePattern = &v + return s +} + +// SetRulesPackageArns sets the RulesPackageArns field's value. +func (s *AssessmentTemplateFilter) SetRulesPackageArns(v []*string) *AssessmentTemplateFilter { + s.RulesPackageArns = v + return s +} + // A collection of attributes of the host from which the finding is generated. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/AssetAttributes type AssetAttributes struct { _ struct{} `type:"structure"` @@ -3096,8 +3509,45 @@ func (s AssetAttributes) GoString() string { return s.String() } +// SetAgentId sets the AgentId field's value. +func (s *AssetAttributes) SetAgentId(v string) *AssetAttributes { + s.AgentId = &v + return s +} + +// SetAmiId sets the AmiId field's value. +func (s *AssetAttributes) SetAmiId(v string) *AssetAttributes { + s.AmiId = &v + return s +} + +// SetAutoScalingGroup sets the AutoScalingGroup field's value. +func (s *AssetAttributes) SetAutoScalingGroup(v string) *AssetAttributes { + s.AutoScalingGroup = &v + return s +} + +// SetHostname sets the Hostname field's value. +func (s *AssetAttributes) SetHostname(v string) *AssetAttributes { + s.Hostname = &v + return s +} + +// SetIpv4Addresses sets the Ipv4Addresses field's value. +func (s *AssetAttributes) SetIpv4Addresses(v []*string) *AssetAttributes { + s.Ipv4Addresses = v + return s +} + +// SetSchemaVersion sets the SchemaVersion field's value. +func (s *AssetAttributes) SetSchemaVersion(v int64) *AssetAttributes { + s.SchemaVersion = &v + return s +} + // This data type is used as a request parameter in the AddAttributesToFindings // and CreateAssessmentTemplate actions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/Attribute type Attribute struct { _ struct{} `type:"structure"` @@ -3139,6 +3589,19 @@ func (s *Attribute) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Attribute) SetKey(v string) *Attribute { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Attribute) SetValue(v string) *Attribute { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/CreateAssessmentTargetRequest type CreateAssessmentTargetInput struct { _ struct{} `type:"structure"` @@ -3187,6 +3650,19 @@ func (s *CreateAssessmentTargetInput) Validate() error { return nil } +// SetAssessmentTargetName sets the AssessmentTargetName field's value. +func (s *CreateAssessmentTargetInput) SetAssessmentTargetName(v string) *CreateAssessmentTargetInput { + s.AssessmentTargetName = &v + return s +} + +// SetResourceGroupArn sets the ResourceGroupArn field's value. +func (s *CreateAssessmentTargetInput) SetResourceGroupArn(v string) *CreateAssessmentTargetInput { + s.ResourceGroupArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/CreateAssessmentTargetResponse type CreateAssessmentTargetOutput struct { _ struct{} `type:"structure"` @@ -3206,6 +3682,13 @@ func (s CreateAssessmentTargetOutput) GoString() string { return s.String() } +// SetAssessmentTargetArn sets the AssessmentTargetArn field's value. +func (s *CreateAssessmentTargetOutput) SetAssessmentTargetArn(v string) *CreateAssessmentTargetOutput { + s.AssessmentTargetArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/CreateAssessmentTemplateRequest type CreateAssessmentTemplateInput struct { _ struct{} `type:"structure"` @@ -3291,6 +3774,37 @@ func (s *CreateAssessmentTemplateInput) Validate() error { return nil } +// SetAssessmentTargetArn sets the AssessmentTargetArn field's value. +func (s *CreateAssessmentTemplateInput) SetAssessmentTargetArn(v string) *CreateAssessmentTemplateInput { + s.AssessmentTargetArn = &v + return s +} + +// SetAssessmentTemplateName sets the AssessmentTemplateName field's value. +func (s *CreateAssessmentTemplateInput) SetAssessmentTemplateName(v string) *CreateAssessmentTemplateInput { + s.AssessmentTemplateName = &v + return s +} + +// SetDurationInSeconds sets the DurationInSeconds field's value. +func (s *CreateAssessmentTemplateInput) SetDurationInSeconds(v int64) *CreateAssessmentTemplateInput { + s.DurationInSeconds = &v + return s +} + +// SetRulesPackageArns sets the RulesPackageArns field's value. +func (s *CreateAssessmentTemplateInput) SetRulesPackageArns(v []*string) *CreateAssessmentTemplateInput { + s.RulesPackageArns = v + return s +} + +// SetUserAttributesForFindings sets the UserAttributesForFindings field's value. +func (s *CreateAssessmentTemplateInput) SetUserAttributesForFindings(v []*Attribute) *CreateAssessmentTemplateInput { + s.UserAttributesForFindings = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/CreateAssessmentTemplateResponse type CreateAssessmentTemplateOutput struct { _ struct{} `type:"structure"` @@ -3310,6 +3824,13 @@ func (s CreateAssessmentTemplateOutput) GoString() string { return s.String() } +// SetAssessmentTemplateArn sets the AssessmentTemplateArn field's value. +func (s *CreateAssessmentTemplateOutput) SetAssessmentTemplateArn(v string) *CreateAssessmentTemplateOutput { + s.AssessmentTemplateArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/CreateResourceGroupRequest type CreateResourceGroupInput struct { _ struct{} `type:"structure"` @@ -3357,6 +3878,13 @@ func (s *CreateResourceGroupInput) Validate() error { return nil } +// SetResourceGroupTags sets the ResourceGroupTags field's value. +func (s *CreateResourceGroupInput) SetResourceGroupTags(v []*ResourceGroupTag) *CreateResourceGroupInput { + s.ResourceGroupTags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/CreateResourceGroupResponse type CreateResourceGroupOutput struct { _ struct{} `type:"structure"` @@ -3376,6 +3904,13 @@ func (s CreateResourceGroupOutput) GoString() string { return s.String() } +// SetResourceGroupArn sets the ResourceGroupArn field's value. +func (s *CreateResourceGroupOutput) SetResourceGroupArn(v string) *CreateResourceGroupOutput { + s.ResourceGroupArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DeleteAssessmentRunRequest type DeleteAssessmentRunInput struct { _ struct{} `type:"structure"` @@ -3411,6 +3946,13 @@ func (s *DeleteAssessmentRunInput) Validate() error { return nil } +// SetAssessmentRunArn sets the AssessmentRunArn field's value. +func (s *DeleteAssessmentRunInput) SetAssessmentRunArn(v string) *DeleteAssessmentRunInput { + s.AssessmentRunArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DeleteAssessmentRunOutput type DeleteAssessmentRunOutput struct { _ struct{} `type:"structure"` } @@ -3425,6 +3967,7 @@ func (s DeleteAssessmentRunOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DeleteAssessmentTargetRequest type DeleteAssessmentTargetInput struct { _ struct{} `type:"structure"` @@ -3460,6 +4003,13 @@ func (s *DeleteAssessmentTargetInput) Validate() error { return nil } +// SetAssessmentTargetArn sets the AssessmentTargetArn field's value. +func (s *DeleteAssessmentTargetInput) SetAssessmentTargetArn(v string) *DeleteAssessmentTargetInput { + s.AssessmentTargetArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DeleteAssessmentTargetOutput type DeleteAssessmentTargetOutput struct { _ struct{} `type:"structure"` } @@ -3474,6 +4024,7 @@ func (s DeleteAssessmentTargetOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DeleteAssessmentTemplateRequest type DeleteAssessmentTemplateInput struct { _ struct{} `type:"structure"` @@ -3509,6 +4060,13 @@ func (s *DeleteAssessmentTemplateInput) Validate() error { return nil } +// SetAssessmentTemplateArn sets the AssessmentTemplateArn field's value. +func (s *DeleteAssessmentTemplateInput) SetAssessmentTemplateArn(v string) *DeleteAssessmentTemplateInput { + s.AssessmentTemplateArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DeleteAssessmentTemplateOutput type DeleteAssessmentTemplateOutput struct { _ struct{} `type:"structure"` } @@ -3523,6 +4081,7 @@ func (s DeleteAssessmentTemplateOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeAssessmentRunsRequest type DescribeAssessmentRunsInput struct { _ struct{} `type:"structure"` @@ -3558,6 +4117,13 @@ func (s *DescribeAssessmentRunsInput) Validate() error { return nil } +// SetAssessmentRunArns sets the AssessmentRunArns field's value. +func (s *DescribeAssessmentRunsInput) SetAssessmentRunArns(v []*string) *DescribeAssessmentRunsInput { + s.AssessmentRunArns = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeAssessmentRunsResponse type DescribeAssessmentRunsOutput struct { _ struct{} `type:"structure"` @@ -3583,6 +4149,19 @@ func (s DescribeAssessmentRunsOutput) GoString() string { return s.String() } +// SetAssessmentRuns sets the AssessmentRuns field's value. +func (s *DescribeAssessmentRunsOutput) SetAssessmentRuns(v []*AssessmentRun) *DescribeAssessmentRunsOutput { + s.AssessmentRuns = v + return s +} + +// SetFailedItems sets the FailedItems field's value. +func (s *DescribeAssessmentRunsOutput) SetFailedItems(v map[string]*FailedItemDetails) *DescribeAssessmentRunsOutput { + s.FailedItems = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeAssessmentTargetsRequest type DescribeAssessmentTargetsInput struct { _ struct{} `type:"structure"` @@ -3618,6 +4197,13 @@ func (s *DescribeAssessmentTargetsInput) Validate() error { return nil } +// SetAssessmentTargetArns sets the AssessmentTargetArns field's value. +func (s *DescribeAssessmentTargetsInput) SetAssessmentTargetArns(v []*string) *DescribeAssessmentTargetsInput { + s.AssessmentTargetArns = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeAssessmentTargetsResponse type DescribeAssessmentTargetsOutput struct { _ struct{} `type:"structure"` @@ -3643,11 +4229,22 @@ func (s DescribeAssessmentTargetsOutput) GoString() string { return s.String() } +// SetAssessmentTargets sets the AssessmentTargets field's value. +func (s *DescribeAssessmentTargetsOutput) SetAssessmentTargets(v []*AssessmentTarget) *DescribeAssessmentTargetsOutput { + s.AssessmentTargets = v + return s +} + +// SetFailedItems sets the FailedItems field's value. +func (s *DescribeAssessmentTargetsOutput) SetFailedItems(v map[string]*FailedItemDetails) *DescribeAssessmentTargetsOutput { + s.FailedItems = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeAssessmentTemplatesRequest type DescribeAssessmentTemplatesInput struct { _ struct{} `type:"structure"` - // The ARN that specifiesthe assessment templates that you want to describe. - // // AssessmentTemplateArns is a required field AssessmentTemplateArns []*string `locationName:"assessmentTemplateArns" min:"1" type:"list" required:"true"` } @@ -3678,6 +4275,13 @@ func (s *DescribeAssessmentTemplatesInput) Validate() error { return nil } +// SetAssessmentTemplateArns sets the AssessmentTemplateArns field's value. +func (s *DescribeAssessmentTemplatesInput) SetAssessmentTemplateArns(v []*string) *DescribeAssessmentTemplatesInput { + s.AssessmentTemplateArns = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeAssessmentTemplatesResponse type DescribeAssessmentTemplatesOutput struct { _ struct{} `type:"structure"` @@ -3703,6 +4307,19 @@ func (s DescribeAssessmentTemplatesOutput) GoString() string { return s.String() } +// SetAssessmentTemplates sets the AssessmentTemplates field's value. +func (s *DescribeAssessmentTemplatesOutput) SetAssessmentTemplates(v []*AssessmentTemplate) *DescribeAssessmentTemplatesOutput { + s.AssessmentTemplates = v + return s +} + +// SetFailedItems sets the FailedItems field's value. +func (s *DescribeAssessmentTemplatesOutput) SetFailedItems(v map[string]*FailedItemDetails) *DescribeAssessmentTemplatesOutput { + s.FailedItems = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeCrossAccountAccessRoleInput type DescribeCrossAccountAccessRoleInput struct { _ struct{} `type:"structure"` } @@ -3717,6 +4334,7 @@ func (s DescribeCrossAccountAccessRoleInput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeCrossAccountAccessRoleResponse type DescribeCrossAccountAccessRoleOutput struct { _ struct{} `type:"structure"` @@ -3748,6 +4366,25 @@ func (s DescribeCrossAccountAccessRoleOutput) GoString() string { return s.String() } +// SetRegisteredAt sets the RegisteredAt field's value. +func (s *DescribeCrossAccountAccessRoleOutput) SetRegisteredAt(v time.Time) *DescribeCrossAccountAccessRoleOutput { + s.RegisteredAt = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *DescribeCrossAccountAccessRoleOutput) SetRoleArn(v string) *DescribeCrossAccountAccessRoleOutput { + s.RoleArn = &v + return s +} + +// SetValid sets the Valid field's value. +func (s *DescribeCrossAccountAccessRoleOutput) SetValid(v bool) *DescribeCrossAccountAccessRoleOutput { + s.Valid = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeFindingsRequest type DescribeFindingsInput struct { _ struct{} `type:"structure"` @@ -3787,7 +4424,20 @@ func (s *DescribeFindingsInput) Validate() error { return nil } -type DescribeFindingsOutput struct { +// SetFindingArns sets the FindingArns field's value. +func (s *DescribeFindingsInput) SetFindingArns(v []*string) *DescribeFindingsInput { + s.FindingArns = v + return s +} + +// SetLocale sets the Locale field's value. +func (s *DescribeFindingsInput) SetLocale(v string) *DescribeFindingsInput { + s.Locale = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeFindingsResponse +type DescribeFindingsOutput struct { _ struct{} `type:"structure"` // Finding details that cannot be described. An error code is provided for each @@ -3812,6 +4462,19 @@ func (s DescribeFindingsOutput) GoString() string { return s.String() } +// SetFailedItems sets the FailedItems field's value. +func (s *DescribeFindingsOutput) SetFailedItems(v map[string]*FailedItemDetails) *DescribeFindingsOutput { + s.FailedItems = v + return s +} + +// SetFindings sets the Findings field's value. +func (s *DescribeFindingsOutput) SetFindings(v []*Finding) *DescribeFindingsOutput { + s.Findings = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeResourceGroupsRequest type DescribeResourceGroupsInput struct { _ struct{} `type:"structure"` @@ -3847,6 +4510,13 @@ func (s *DescribeResourceGroupsInput) Validate() error { return nil } +// SetResourceGroupArns sets the ResourceGroupArns field's value. +func (s *DescribeResourceGroupsInput) SetResourceGroupArns(v []*string) *DescribeResourceGroupsInput { + s.ResourceGroupArns = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeResourceGroupsResponse type DescribeResourceGroupsOutput struct { _ struct{} `type:"structure"` @@ -3872,6 +4542,19 @@ func (s DescribeResourceGroupsOutput) GoString() string { return s.String() } +// SetFailedItems sets the FailedItems field's value. +func (s *DescribeResourceGroupsOutput) SetFailedItems(v map[string]*FailedItemDetails) *DescribeResourceGroupsOutput { + s.FailedItems = v + return s +} + +// SetResourceGroups sets the ResourceGroups field's value. +func (s *DescribeResourceGroupsOutput) SetResourceGroups(v []*ResourceGroup) *DescribeResourceGroupsOutput { + s.ResourceGroups = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeRulesPackagesRequest type DescribeRulesPackagesInput struct { _ struct{} `type:"structure"` @@ -3910,6 +4593,19 @@ func (s *DescribeRulesPackagesInput) Validate() error { return nil } +// SetLocale sets the Locale field's value. +func (s *DescribeRulesPackagesInput) SetLocale(v string) *DescribeRulesPackagesInput { + s.Locale = &v + return s +} + +// SetRulesPackageArns sets the RulesPackageArns field's value. +func (s *DescribeRulesPackagesInput) SetRulesPackageArns(v []*string) *DescribeRulesPackagesInput { + s.RulesPackageArns = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeRulesPackagesResponse type DescribeRulesPackagesOutput struct { _ struct{} `type:"structure"` @@ -3935,7 +4631,20 @@ func (s DescribeRulesPackagesOutput) GoString() string { return s.String() } +// SetFailedItems sets the FailedItems field's value. +func (s *DescribeRulesPackagesOutput) SetFailedItems(v map[string]*FailedItemDetails) *DescribeRulesPackagesOutput { + s.FailedItems = v + return s +} + +// SetRulesPackages sets the RulesPackages field's value. +func (s *DescribeRulesPackagesOutput) SetRulesPackages(v []*RulesPackage) *DescribeRulesPackagesOutput { + s.RulesPackages = v + return s +} + // This data type is used in the AssessmentTemplateFilter data type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DurationRange type DurationRange struct { _ struct{} `type:"structure"` @@ -3973,7 +4682,20 @@ func (s *DurationRange) Validate() error { return nil } +// SetMaxSeconds sets the MaxSeconds field's value. +func (s *DurationRange) SetMaxSeconds(v int64) *DurationRange { + s.MaxSeconds = &v + return s +} + +// SetMinSeconds sets the MinSeconds field's value. +func (s *DurationRange) SetMinSeconds(v int64) *DurationRange { + s.MinSeconds = &v + return s +} + // This data type is used in the Subscription data type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/EventSubscription type EventSubscription struct { _ struct{} `type:"structure"` @@ -3999,7 +4721,20 @@ func (s EventSubscription) GoString() string { return s.String() } +// SetEvent sets the Event field's value. +func (s *EventSubscription) SetEvent(v string) *EventSubscription { + s.Event = &v + return s +} + +// SetSubscribedAt sets the SubscribedAt field's value. +func (s *EventSubscription) SetSubscribedAt(v time.Time) *EventSubscription { + s.SubscribedAt = &v + return s +} + // Includes details about the failed items. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/FailedItemDetails type FailedItemDetails struct { _ struct{} `type:"structure"` @@ -4025,8 +4760,21 @@ func (s FailedItemDetails) GoString() string { return s.String() } +// SetFailureCode sets the FailureCode field's value. +func (s *FailedItemDetails) SetFailureCode(v string) *FailedItemDetails { + s.FailureCode = &v + return s +} + +// SetRetryable sets the Retryable field's value. +func (s *FailedItemDetails) SetRetryable(v bool) *FailedItemDetails { + s.Retryable = &v + return s +} + // Contains information about an Amazon Inspector finding. This data type is // used as the response element in the DescribeFindings action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/Finding type Finding struct { _ struct{} `type:"structure"` @@ -4105,7 +4853,116 @@ func (s Finding) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *Finding) SetArn(v string) *Finding { + s.Arn = &v + return s +} + +// SetAssetAttributes sets the AssetAttributes field's value. +func (s *Finding) SetAssetAttributes(v *AssetAttributes) *Finding { + s.AssetAttributes = v + return s +} + +// SetAssetType sets the AssetType field's value. +func (s *Finding) SetAssetType(v string) *Finding { + s.AssetType = &v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *Finding) SetAttributes(v []*Attribute) *Finding { + s.Attributes = v + return s +} + +// SetConfidence sets the Confidence field's value. +func (s *Finding) SetConfidence(v int64) *Finding { + s.Confidence = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Finding) SetCreatedAt(v time.Time) *Finding { + s.CreatedAt = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Finding) SetDescription(v string) *Finding { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *Finding) SetId(v string) *Finding { + s.Id = &v + return s +} + +// SetIndicatorOfCompromise sets the IndicatorOfCompromise field's value. +func (s *Finding) SetIndicatorOfCompromise(v bool) *Finding { + s.IndicatorOfCompromise = &v + return s +} + +// SetNumericSeverity sets the NumericSeverity field's value. +func (s *Finding) SetNumericSeverity(v float64) *Finding { + s.NumericSeverity = &v + return s +} + +// SetRecommendation sets the Recommendation field's value. +func (s *Finding) SetRecommendation(v string) *Finding { + s.Recommendation = &v + return s +} + +// SetSchemaVersion sets the SchemaVersion field's value. +func (s *Finding) SetSchemaVersion(v int64) *Finding { + s.SchemaVersion = &v + return s +} + +// SetService sets the Service field's value. +func (s *Finding) SetService(v string) *Finding { + s.Service = &v + return s +} + +// SetServiceAttributes sets the ServiceAttributes field's value. +func (s *Finding) SetServiceAttributes(v *ServiceAttributes) *Finding { + s.ServiceAttributes = v + return s +} + +// SetSeverity sets the Severity field's value. +func (s *Finding) SetSeverity(v string) *Finding { + s.Severity = &v + return s +} + +// SetTitle sets the Title field's value. +func (s *Finding) SetTitle(v string) *Finding { + s.Title = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *Finding) SetUpdatedAt(v time.Time) *Finding { + s.UpdatedAt = &v + return s +} + +// SetUserAttributes sets the UserAttributes field's value. +func (s *Finding) SetUserAttributes(v []*Attribute) *Finding { + s.UserAttributes = v + return s +} + // This data type is used as a request parameter in the ListFindings action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/FindingFilter type FindingFilter struct { _ struct{} `type:"structure"` @@ -4188,6 +5045,55 @@ func (s *FindingFilter) Validate() error { return nil } +// SetAgentIds sets the AgentIds field's value. +func (s *FindingFilter) SetAgentIds(v []*string) *FindingFilter { + s.AgentIds = v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *FindingFilter) SetAttributes(v []*Attribute) *FindingFilter { + s.Attributes = v + return s +} + +// SetAutoScalingGroups sets the AutoScalingGroups field's value. +func (s *FindingFilter) SetAutoScalingGroups(v []*string) *FindingFilter { + s.AutoScalingGroups = v + return s +} + +// SetCreationTimeRange sets the CreationTimeRange field's value. +func (s *FindingFilter) SetCreationTimeRange(v *TimestampRange) *FindingFilter { + s.CreationTimeRange = v + return s +} + +// SetRuleNames sets the RuleNames field's value. +func (s *FindingFilter) SetRuleNames(v []*string) *FindingFilter { + s.RuleNames = v + return s +} + +// SetRulesPackageArns sets the RulesPackageArns field's value. +func (s *FindingFilter) SetRulesPackageArns(v []*string) *FindingFilter { + s.RulesPackageArns = v + return s +} + +// SetSeverities sets the Severities field's value. +func (s *FindingFilter) SetSeverities(v []*string) *FindingFilter { + s.Severities = v + return s +} + +// SetUserAttributes sets the UserAttributes field's value. +func (s *FindingFilter) SetUserAttributes(v []*Attribute) *FindingFilter { + s.UserAttributes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/GetTelemetryMetadataRequest type GetTelemetryMetadataInput struct { _ struct{} `type:"structure"` @@ -4224,6 +5130,13 @@ func (s *GetTelemetryMetadataInput) Validate() error { return nil } +// SetAssessmentRunArn sets the AssessmentRunArn field's value. +func (s *GetTelemetryMetadataInput) SetAssessmentRunArn(v string) *GetTelemetryMetadataInput { + s.AssessmentRunArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/GetTelemetryMetadataResponse type GetTelemetryMetadataOutput struct { _ struct{} `type:"structure"` @@ -4243,6 +5156,13 @@ func (s GetTelemetryMetadataOutput) GoString() string { return s.String() } +// SetTelemetryMetadata sets the TelemetryMetadata field's value. +func (s *GetTelemetryMetadataOutput) SetTelemetryMetadata(v []*TelemetryMetadata) *GetTelemetryMetadataOutput { + s.TelemetryMetadata = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListAssessmentRunAgentsRequest type ListAssessmentRunAgentsInput struct { _ struct{} `type:"structure"` @@ -4304,6 +5224,31 @@ func (s *ListAssessmentRunAgentsInput) Validate() error { return nil } +// SetAssessmentRunArn sets the AssessmentRunArn field's value. +func (s *ListAssessmentRunAgentsInput) SetAssessmentRunArn(v string) *ListAssessmentRunAgentsInput { + s.AssessmentRunArn = &v + return s +} + +// SetFilter sets the Filter field's value. +func (s *ListAssessmentRunAgentsInput) SetFilter(v *AgentFilter) *ListAssessmentRunAgentsInput { + s.Filter = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAssessmentRunAgentsInput) SetMaxResults(v int64) *ListAssessmentRunAgentsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssessmentRunAgentsInput) SetNextToken(v string) *ListAssessmentRunAgentsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListAssessmentRunAgentsResponse type ListAssessmentRunAgentsOutput struct { _ struct{} `type:"structure"` @@ -4329,6 +5274,19 @@ func (s ListAssessmentRunAgentsOutput) GoString() string { return s.String() } +// SetAssessmentRunAgents sets the AssessmentRunAgents field's value. +func (s *ListAssessmentRunAgentsOutput) SetAssessmentRunAgents(v []*AssessmentRunAgent) *ListAssessmentRunAgentsOutput { + s.AssessmentRunAgents = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssessmentRunAgentsOutput) SetNextToken(v string) *ListAssessmentRunAgentsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListAssessmentRunsRequest type ListAssessmentRunsInput struct { _ struct{} `type:"structure"` @@ -4383,6 +5341,31 @@ func (s *ListAssessmentRunsInput) Validate() error { return nil } +// SetAssessmentTemplateArns sets the AssessmentTemplateArns field's value. +func (s *ListAssessmentRunsInput) SetAssessmentTemplateArns(v []*string) *ListAssessmentRunsInput { + s.AssessmentTemplateArns = v + return s +} + +// SetFilter sets the Filter field's value. +func (s *ListAssessmentRunsInput) SetFilter(v *AssessmentRunFilter) *ListAssessmentRunsInput { + s.Filter = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAssessmentRunsInput) SetMaxResults(v int64) *ListAssessmentRunsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssessmentRunsInput) SetNextToken(v string) *ListAssessmentRunsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListAssessmentRunsResponse type ListAssessmentRunsOutput struct { _ struct{} `type:"structure"` @@ -4409,6 +5392,19 @@ func (s ListAssessmentRunsOutput) GoString() string { return s.String() } +// SetAssessmentRunArns sets the AssessmentRunArns field's value. +func (s *ListAssessmentRunsOutput) SetAssessmentRunArns(v []*string) *ListAssessmentRunsOutput { + s.AssessmentRunArns = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssessmentRunsOutput) SetNextToken(v string) *ListAssessmentRunsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListAssessmentTargetsRequest type ListAssessmentTargetsInput struct { _ struct{} `type:"structure"` @@ -4459,6 +5455,25 @@ func (s *ListAssessmentTargetsInput) Validate() error { return nil } +// SetFilter sets the Filter field's value. +func (s *ListAssessmentTargetsInput) SetFilter(v *AssessmentTargetFilter) *ListAssessmentTargetsInput { + s.Filter = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAssessmentTargetsInput) SetMaxResults(v int64) *ListAssessmentTargetsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssessmentTargetsInput) SetNextToken(v string) *ListAssessmentTargetsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListAssessmentTargetsResponse type ListAssessmentTargetsOutput struct { _ struct{} `type:"structure"` @@ -4485,6 +5500,19 @@ func (s ListAssessmentTargetsOutput) GoString() string { return s.String() } +// SetAssessmentTargetArns sets the AssessmentTargetArns field's value. +func (s *ListAssessmentTargetsOutput) SetAssessmentTargetArns(v []*string) *ListAssessmentTargetsOutput { + s.AssessmentTargetArns = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssessmentTargetsOutput) SetNextToken(v string) *ListAssessmentTargetsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListAssessmentTemplatesRequest type ListAssessmentTemplatesInput struct { _ struct{} `type:"structure"` @@ -4539,6 +5567,31 @@ func (s *ListAssessmentTemplatesInput) Validate() error { return nil } +// SetAssessmentTargetArns sets the AssessmentTargetArns field's value. +func (s *ListAssessmentTemplatesInput) SetAssessmentTargetArns(v []*string) *ListAssessmentTemplatesInput { + s.AssessmentTargetArns = v + return s +} + +// SetFilter sets the Filter field's value. +func (s *ListAssessmentTemplatesInput) SetFilter(v *AssessmentTemplateFilter) *ListAssessmentTemplatesInput { + s.Filter = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAssessmentTemplatesInput) SetMaxResults(v int64) *ListAssessmentTemplatesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssessmentTemplatesInput) SetNextToken(v string) *ListAssessmentTemplatesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListAssessmentTemplatesResponse type ListAssessmentTemplatesOutput struct { _ struct{} `type:"structure"` @@ -4564,6 +5617,19 @@ func (s ListAssessmentTemplatesOutput) GoString() string { return s.String() } +// SetAssessmentTemplateArns sets the AssessmentTemplateArns field's value. +func (s *ListAssessmentTemplatesOutput) SetAssessmentTemplateArns(v []*string) *ListAssessmentTemplatesOutput { + s.AssessmentTemplateArns = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssessmentTemplatesOutput) SetNextToken(v string) *ListAssessmentTemplatesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListEventSubscriptionsRequest type ListEventSubscriptionsInput struct { _ struct{} `type:"structure"` @@ -4608,6 +5674,25 @@ func (s *ListEventSubscriptionsInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *ListEventSubscriptionsInput) SetMaxResults(v int64) *ListEventSubscriptionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListEventSubscriptionsInput) SetNextToken(v string) *ListEventSubscriptionsInput { + s.NextToken = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ListEventSubscriptionsInput) SetResourceArn(v string) *ListEventSubscriptionsInput { + s.ResourceArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListEventSubscriptionsResponse type ListEventSubscriptionsOutput struct { _ struct{} `type:"structure"` @@ -4633,6 +5718,19 @@ func (s ListEventSubscriptionsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListEventSubscriptionsOutput) SetNextToken(v string) *ListEventSubscriptionsOutput { + s.NextToken = &v + return s +} + +// SetSubscriptions sets the Subscriptions field's value. +func (s *ListEventSubscriptionsOutput) SetSubscriptions(v []*Subscription) *ListEventSubscriptionsOutput { + s.Subscriptions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListFindingsRequest type ListFindingsInput struct { _ struct{} `type:"structure"` @@ -4687,6 +5785,31 @@ func (s *ListFindingsInput) Validate() error { return nil } +// SetAssessmentRunArns sets the AssessmentRunArns field's value. +func (s *ListFindingsInput) SetAssessmentRunArns(v []*string) *ListFindingsInput { + s.AssessmentRunArns = v + return s +} + +// SetFilter sets the Filter field's value. +func (s *ListFindingsInput) SetFilter(v *FindingFilter) *ListFindingsInput { + s.Filter = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListFindingsInput) SetMaxResults(v int64) *ListFindingsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFindingsInput) SetNextToken(v string) *ListFindingsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListFindingsResponse type ListFindingsOutput struct { _ struct{} `type:"structure"` @@ -4712,6 +5835,19 @@ func (s ListFindingsOutput) GoString() string { return s.String() } +// SetFindingArns sets the FindingArns field's value. +func (s *ListFindingsOutput) SetFindingArns(v []*string) *ListFindingsOutput { + s.FindingArns = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFindingsOutput) SetNextToken(v string) *ListFindingsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListRulesPackagesRequest type ListRulesPackagesInput struct { _ struct{} `type:"structure"` @@ -4749,6 +5885,19 @@ func (s *ListRulesPackagesInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *ListRulesPackagesInput) SetMaxResults(v int64) *ListRulesPackagesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListRulesPackagesInput) SetNextToken(v string) *ListRulesPackagesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListRulesPackagesResponse type ListRulesPackagesOutput struct { _ struct{} `type:"structure"` @@ -4774,6 +5923,19 @@ func (s ListRulesPackagesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListRulesPackagesOutput) SetNextToken(v string) *ListRulesPackagesOutput { + s.NextToken = &v + return s +} + +// SetRulesPackageArns sets the RulesPackageArns field's value. +func (s *ListRulesPackagesOutput) SetRulesPackageArns(v []*string) *ListRulesPackagesOutput { + s.RulesPackageArns = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListTagsForResourceRequest type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -4809,6 +5971,13 @@ func (s *ListTagsForResourceInput) Validate() error { return nil } +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListTagsForResourceResponse type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` @@ -4828,6 +5997,13 @@ func (s ListTagsForResourceOutput) GoString() string { return s.String() } +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/PreviewAgentsRequest type PreviewAgentsInput struct { _ struct{} `type:"structure"` @@ -4876,6 +6052,25 @@ func (s *PreviewAgentsInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *PreviewAgentsInput) SetMaxResults(v int64) *PreviewAgentsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *PreviewAgentsInput) SetNextToken(v string) *PreviewAgentsInput { + s.NextToken = &v + return s +} + +// SetPreviewAgentsArn sets the PreviewAgentsArn field's value. +func (s *PreviewAgentsInput) SetPreviewAgentsArn(v string) *PreviewAgentsInput { + s.PreviewAgentsArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/PreviewAgentsResponse type PreviewAgentsOutput struct { _ struct{} `type:"structure"` @@ -4901,6 +6096,19 @@ func (s PreviewAgentsOutput) GoString() string { return s.String() } +// SetAgentPreviews sets the AgentPreviews field's value. +func (s *PreviewAgentsOutput) SetAgentPreviews(v []*AgentPreview) *PreviewAgentsOutput { + s.AgentPreviews = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *PreviewAgentsOutput) SetNextToken(v string) *PreviewAgentsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/RegisterCrossAccountAccessRoleRequest type RegisterCrossAccountAccessRoleInput struct { _ struct{} `type:"structure"` @@ -4937,6 +6145,13 @@ func (s *RegisterCrossAccountAccessRoleInput) Validate() error { return nil } +// SetRoleArn sets the RoleArn field's value. +func (s *RegisterCrossAccountAccessRoleInput) SetRoleArn(v string) *RegisterCrossAccountAccessRoleInput { + s.RoleArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/RegisterCrossAccountAccessRoleOutput type RegisterCrossAccountAccessRoleOutput struct { _ struct{} `type:"structure"` } @@ -4951,6 +6166,7 @@ func (s RegisterCrossAccountAccessRoleOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/RemoveAttributesFromFindingsRequest type RemoveAttributesFromFindingsInput struct { _ struct{} `type:"structure"` @@ -4994,6 +6210,19 @@ func (s *RemoveAttributesFromFindingsInput) Validate() error { return nil } +// SetAttributeKeys sets the AttributeKeys field's value. +func (s *RemoveAttributesFromFindingsInput) SetAttributeKeys(v []*string) *RemoveAttributesFromFindingsInput { + s.AttributeKeys = v + return s +} + +// SetFindingArns sets the FindingArns field's value. +func (s *RemoveAttributesFromFindingsInput) SetFindingArns(v []*string) *RemoveAttributesFromFindingsInput { + s.FindingArns = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/RemoveAttributesFromFindingsResponse type RemoveAttributesFromFindingsOutput struct { _ struct{} `type:"structure"` @@ -5014,10 +6243,17 @@ func (s RemoveAttributesFromFindingsOutput) GoString() string { return s.String() } +// SetFailedItems sets the FailedItems field's value. +func (s *RemoveAttributesFromFindingsOutput) SetFailedItems(v map[string]*FailedItemDetails) *RemoveAttributesFromFindingsOutput { + s.FailedItems = v + return s +} + // Contains information about a resource group. The resource group defines a // set of tags that, when queried, identify the AWS resources that make up the // assessment target. This data type is used as the response element in the // DescribeResourceGroups action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ResourceGroup type ResourceGroup struct { _ struct{} `type:"structure"` @@ -5048,7 +6284,26 @@ func (s ResourceGroup) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *ResourceGroup) SetArn(v string) *ResourceGroup { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *ResourceGroup) SetCreatedAt(v time.Time) *ResourceGroup { + s.CreatedAt = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ResourceGroup) SetTags(v []*ResourceGroupTag) *ResourceGroup { + s.Tags = v + return s +} + // This data type is used as one of the elements of the ResourceGroup data type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ResourceGroupTag type ResourceGroupTag struct { _ struct{} `type:"structure"` @@ -5090,8 +6345,21 @@ func (s *ResourceGroupTag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *ResourceGroupTag) SetKey(v string) *ResourceGroupTag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ResourceGroupTag) SetValue(v string) *ResourceGroupTag { + s.Value = &v + return s +} + // Contains information about an Amazon Inspector rules package. This data type // is used as the response element in the DescribeRulesPackages action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/RulesPackage type RulesPackage struct { _ struct{} `type:"structure"` @@ -5129,7 +6397,38 @@ func (s RulesPackage) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *RulesPackage) SetArn(v string) *RulesPackage { + s.Arn = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *RulesPackage) SetDescription(v string) *RulesPackage { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *RulesPackage) SetName(v string) *RulesPackage { + s.Name = &v + return s +} + +// SetProvider sets the Provider field's value. +func (s *RulesPackage) SetProvider(v string) *RulesPackage { + s.Provider = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *RulesPackage) SetVersion(v string) *RulesPackage { + s.Version = &v + return s +} + // This data type is used in the Finding data type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/InspectorServiceAttributes type ServiceAttributes struct { _ struct{} `type:"structure"` @@ -5155,6 +6454,25 @@ func (s ServiceAttributes) GoString() string { return s.String() } +// SetAssessmentRunArn sets the AssessmentRunArn field's value. +func (s *ServiceAttributes) SetAssessmentRunArn(v string) *ServiceAttributes { + s.AssessmentRunArn = &v + return s +} + +// SetRulesPackageArn sets the RulesPackageArn field's value. +func (s *ServiceAttributes) SetRulesPackageArn(v string) *ServiceAttributes { + s.RulesPackageArn = &v + return s +} + +// SetSchemaVersion sets the SchemaVersion field's value. +func (s *ServiceAttributes) SetSchemaVersion(v int64) *ServiceAttributes { + s.SchemaVersion = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/SetTagsForResourceRequest type SetTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -5204,6 +6522,19 @@ func (s *SetTagsForResourceInput) Validate() error { return nil } +// SetResourceArn sets the ResourceArn field's value. +func (s *SetTagsForResourceInput) SetResourceArn(v string) *SetTagsForResourceInput { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *SetTagsForResourceInput) SetTags(v []*Tag) *SetTagsForResourceInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/SetTagsForResourceOutput type SetTagsForResourceOutput struct { _ struct{} `type:"structure"` } @@ -5218,12 +6549,12 @@ func (s SetTagsForResourceOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/StartAssessmentRunRequest type StartAssessmentRunInput struct { _ struct{} `type:"structure"` - // You can specify the name for the assessment run, or you can use the auto-generated - // name that is based on the assessment template name. The name must be unique - // for the assessment template. + // You can specify the name for the assessment run. The name must be unique + // for the assessment template whose ARN is used to start the assessment run. AssessmentRunName *string `locationName:"assessmentRunName" min:"1" type:"string"` // The ARN of the assessment template of the assessment run that you want to @@ -5262,6 +6593,19 @@ func (s *StartAssessmentRunInput) Validate() error { return nil } +// SetAssessmentRunName sets the AssessmentRunName field's value. +func (s *StartAssessmentRunInput) SetAssessmentRunName(v string) *StartAssessmentRunInput { + s.AssessmentRunName = &v + return s +} + +// SetAssessmentTemplateArn sets the AssessmentTemplateArn field's value. +func (s *StartAssessmentRunInput) SetAssessmentTemplateArn(v string) *StartAssessmentRunInput { + s.AssessmentTemplateArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/StartAssessmentRunResponse type StartAssessmentRunOutput struct { _ struct{} `type:"structure"` @@ -5281,6 +6625,13 @@ func (s StartAssessmentRunOutput) GoString() string { return s.String() } +// SetAssessmentRunArn sets the AssessmentRunArn field's value. +func (s *StartAssessmentRunOutput) SetAssessmentRunArn(v string) *StartAssessmentRunOutput { + s.AssessmentRunArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/StopAssessmentRunRequest type StopAssessmentRunInput struct { _ struct{} `type:"structure"` @@ -5316,6 +6667,13 @@ func (s *StopAssessmentRunInput) Validate() error { return nil } +// SetAssessmentRunArn sets the AssessmentRunArn field's value. +func (s *StopAssessmentRunInput) SetAssessmentRunArn(v string) *StopAssessmentRunInput { + s.AssessmentRunArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/StopAssessmentRunOutput type StopAssessmentRunOutput struct { _ struct{} `type:"structure"` } @@ -5330,6 +6688,7 @@ func (s StopAssessmentRunOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/SubscribeToEventRequest type SubscribeToEventInput struct { _ struct{} `type:"structure"` @@ -5385,6 +6744,25 @@ func (s *SubscribeToEventInput) Validate() error { return nil } +// SetEvent sets the Event field's value. +func (s *SubscribeToEventInput) SetEvent(v string) *SubscribeToEventInput { + s.Event = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *SubscribeToEventInput) SetResourceArn(v string) *SubscribeToEventInput { + s.ResourceArn = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *SubscribeToEventInput) SetTopicArn(v string) *SubscribeToEventInput { + s.TopicArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/SubscribeToEventOutput type SubscribeToEventOutput struct { _ struct{} `type:"structure"` } @@ -5401,6 +6779,7 @@ func (s SubscribeToEventOutput) GoString() string { // This data type is used as a response element in the ListEventSubscriptions // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/Subscription type Subscription struct { _ struct{} `type:"structure"` @@ -5432,9 +6811,28 @@ func (s Subscription) GoString() string { return s.String() } +// SetEventSubscriptions sets the EventSubscriptions field's value. +func (s *Subscription) SetEventSubscriptions(v []*EventSubscription) *Subscription { + s.EventSubscriptions = v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *Subscription) SetResourceArn(v string) *Subscription { + s.ResourceArn = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *Subscription) SetTopicArn(v string) *Subscription { + s.TopicArn = &v + return s +} + // A key and value pair. This data type is used as a request parameter in the // SetTagsForResource action and a response element in the ListTagsForResource // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/Tag type Tag struct { _ struct{} `type:"structure"` @@ -5476,9 +6874,22 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // The metadata about the Amazon Inspector application data metrics collected // by the agent. This data type is used as the response element in the GetTelemetryMetadata // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/TelemetryMetadata type TelemetryMetadata struct { _ struct{} `type:"structure"` @@ -5506,7 +6917,26 @@ func (s TelemetryMetadata) GoString() string { return s.String() } +// SetCount sets the Count field's value. +func (s *TelemetryMetadata) SetCount(v int64) *TelemetryMetadata { + s.Count = &v + return s +} + +// SetDataSize sets the DataSize field's value. +func (s *TelemetryMetadata) SetDataSize(v int64) *TelemetryMetadata { + s.DataSize = &v + return s +} + +// SetMessageType sets the MessageType field's value. +func (s *TelemetryMetadata) SetMessageType(v string) *TelemetryMetadata { + s.MessageType = &v + return s +} + // This data type is used in the AssessmentRunFilter data type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/TimestampRange type TimestampRange struct { _ struct{} `type:"structure"` @@ -5527,6 +6957,19 @@ func (s TimestampRange) GoString() string { return s.String() } +// SetBeginDate sets the BeginDate field's value. +func (s *TimestampRange) SetBeginDate(v time.Time) *TimestampRange { + s.BeginDate = &v + return s +} + +// SetEndDate sets the EndDate field's value. +func (s *TimestampRange) SetEndDate(v time.Time) *TimestampRange { + s.EndDate = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/UnsubscribeFromEventRequest type UnsubscribeFromEventInput struct { _ struct{} `type:"structure"` @@ -5582,6 +7025,25 @@ func (s *UnsubscribeFromEventInput) Validate() error { return nil } +// SetEvent sets the Event field's value. +func (s *UnsubscribeFromEventInput) SetEvent(v string) *UnsubscribeFromEventInput { + s.Event = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *UnsubscribeFromEventInput) SetResourceArn(v string) *UnsubscribeFromEventInput { + s.ResourceArn = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *UnsubscribeFromEventInput) SetTopicArn(v string) *UnsubscribeFromEventInput { + s.TopicArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/UnsubscribeFromEventOutput type UnsubscribeFromEventOutput struct { _ struct{} `type:"structure"` } @@ -5596,6 +7058,7 @@ func (s UnsubscribeFromEventOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/UpdateAssessmentTargetRequest type UpdateAssessmentTargetInput struct { _ struct{} `type:"structure"` @@ -5654,6 +7117,25 @@ func (s *UpdateAssessmentTargetInput) Validate() error { return nil } +// SetAssessmentTargetArn sets the AssessmentTargetArn field's value. +func (s *UpdateAssessmentTargetInput) SetAssessmentTargetArn(v string) *UpdateAssessmentTargetInput { + s.AssessmentTargetArn = &v + return s +} + +// SetAssessmentTargetName sets the AssessmentTargetName field's value. +func (s *UpdateAssessmentTargetInput) SetAssessmentTargetName(v string) *UpdateAssessmentTargetInput { + s.AssessmentTargetName = &v + return s +} + +// SetResourceGroupArn sets the ResourceGroupArn field's value. +func (s *UpdateAssessmentTargetInput) SetResourceGroupArn(v string) *UpdateAssessmentTargetInput { + s.ResourceGroupArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/UpdateAssessmentTargetOutput type UpdateAssessmentTargetOutput struct { _ struct{} `type:"structure"` } diff --git a/vendor/github.com/aws/aws-sdk-go/service/inspector/errors.go b/vendor/github.com/aws/aws-sdk-go/service/inspector/errors.go new file mode 100644 index 000000000..e39853022 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/inspector/errors.go @@ -0,0 +1,60 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package inspector + +const ( + + // ErrCodeAccessDeniedException for service response error code + // "AccessDeniedException". + // + // You do not have required permissions to access the requested resource. + ErrCodeAccessDeniedException = "AccessDeniedException" + + // ErrCodeAgentsAlreadyRunningAssessmentException for service response error code + // "AgentsAlreadyRunningAssessmentException". + // + // You started an assessment run, but one of the instances is already participating + // in another assessment run. + ErrCodeAgentsAlreadyRunningAssessmentException = "AgentsAlreadyRunningAssessmentException" + + // ErrCodeAssessmentRunInProgressException for service response error code + // "AssessmentRunInProgressException". + // + // You cannot perform a specified action if an assessment run is currently in + // progress. + ErrCodeAssessmentRunInProgressException = "AssessmentRunInProgressException" + + // ErrCodeInternalException for service response error code + // "InternalException". + // + // Internal server error. + ErrCodeInternalException = "InternalException" + + // ErrCodeInvalidCrossAccountRoleException for service response error code + // "InvalidCrossAccountRoleException". + // + // Amazon Inspector cannot assume the cross-account role that it needs to list + // your EC2 instances during the assessment run. + ErrCodeInvalidCrossAccountRoleException = "InvalidCrossAccountRoleException" + + // ErrCodeInvalidInputException for service response error code + // "InvalidInputException". + // + // The request was rejected because an invalid or out-of-range value was supplied + // for an input parameter. + ErrCodeInvalidInputException = "InvalidInputException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // The request was rejected because it attempted to create resources beyond + // the current AWS account limits. The error code describes the limit exceeded. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeNoSuchEntityException for service response error code + // "NoSuchEntityException". + // + // The request was rejected because it referenced an entity that does not exist. + // The error code describes the entity. + ErrCodeNoSuchEntityException = "NoSuchEntityException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/inspector/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/inspector/examples_test.go index 164fad534..0008e66a7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/inspector/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/inspector/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleInspector_AddAttributesToFindings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -51,11 +47,7 @@ func ExampleInspector_AddAttributesToFindings() { } func ExampleInspector_CreateAssessmentTarget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -77,11 +69,7 @@ func ExampleInspector_CreateAssessmentTarget() { } func ExampleInspector_CreateAssessmentTemplate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -115,11 +103,7 @@ func ExampleInspector_CreateAssessmentTemplate() { } func ExampleInspector_CreateResourceGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -146,11 +130,7 @@ func ExampleInspector_CreateResourceGroup() { } func ExampleInspector_DeleteAssessmentRun() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -171,11 +151,7 @@ func ExampleInspector_DeleteAssessmentRun() { } func ExampleInspector_DeleteAssessmentTarget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -196,11 +172,7 @@ func ExampleInspector_DeleteAssessmentTarget() { } func ExampleInspector_DeleteAssessmentTemplate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -221,11 +193,7 @@ func ExampleInspector_DeleteAssessmentTemplate() { } func ExampleInspector_DescribeAssessmentRuns() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -249,11 +217,7 @@ func ExampleInspector_DescribeAssessmentRuns() { } func ExampleInspector_DescribeAssessmentTargets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -277,11 +241,7 @@ func ExampleInspector_DescribeAssessmentTargets() { } func ExampleInspector_DescribeAssessmentTemplates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -305,11 +265,7 @@ func ExampleInspector_DescribeAssessmentTemplates() { } func ExampleInspector_DescribeCrossAccountAccessRole() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -328,11 +284,7 @@ func ExampleInspector_DescribeCrossAccountAccessRole() { } func ExampleInspector_DescribeFindings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -357,11 +309,7 @@ func ExampleInspector_DescribeFindings() { } func ExampleInspector_DescribeResourceGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -385,11 +333,7 @@ func ExampleInspector_DescribeResourceGroups() { } func ExampleInspector_DescribeRulesPackages() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -414,11 +358,7 @@ func ExampleInspector_DescribeRulesPackages() { } func ExampleInspector_GetTelemetryMetadata() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -439,11 +379,7 @@ func ExampleInspector_GetTelemetryMetadata() { } func ExampleInspector_ListAssessmentRunAgents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -476,11 +412,7 @@ func ExampleInspector_ListAssessmentRunAgents() { } func ExampleInspector_ListAssessmentRuns() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -533,11 +465,7 @@ func ExampleInspector_ListAssessmentRuns() { } func ExampleInspector_ListAssessmentTargets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -562,11 +490,7 @@ func ExampleInspector_ListAssessmentTargets() { } func ExampleInspector_ListAssessmentTemplates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -603,11 +527,7 @@ func ExampleInspector_ListAssessmentTemplates() { } func ExampleInspector_ListEventSubscriptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -630,11 +550,7 @@ func ExampleInspector_ListEventSubscriptions() { } func ExampleInspector_ListFindings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -700,11 +616,7 @@ func ExampleInspector_ListFindings() { } func ExampleInspector_ListRulesPackages() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -726,11 +638,7 @@ func ExampleInspector_ListRulesPackages() { } func ExampleInspector_ListTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -751,11 +659,7 @@ func ExampleInspector_ListTagsForResource() { } func ExampleInspector_PreviewAgents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -778,11 +682,7 @@ func ExampleInspector_PreviewAgents() { } func ExampleInspector_RegisterCrossAccountAccessRole() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -803,11 +703,7 @@ func ExampleInspector_RegisterCrossAccountAccessRole() { } func ExampleInspector_RemoveAttributesFromFindings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -835,11 +731,7 @@ func ExampleInspector_RemoveAttributesFromFindings() { } func ExampleInspector_SetTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -867,11 +759,7 @@ func ExampleInspector_SetTagsForResource() { } func ExampleInspector_StartAssessmentRun() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -893,11 +781,7 @@ func ExampleInspector_StartAssessmentRun() { } func ExampleInspector_StopAssessmentRun() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -918,11 +802,7 @@ func ExampleInspector_StopAssessmentRun() { } func ExampleInspector_SubscribeToEvent() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -945,11 +825,7 @@ func ExampleInspector_SubscribeToEvent() { } func ExampleInspector_UnsubscribeFromEvent() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) @@ -972,11 +848,7 @@ func ExampleInspector_UnsubscribeFromEvent() { } func ExampleInspector_UpdateAssessmentTarget() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := inspector.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/inspector/inspectoriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/inspector/inspectoriface/interface.go index 45bf5cedc..e3fe3561b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/inspector/inspectoriface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/inspector/inspectoriface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockInspectorClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/inspector/service.go b/vendor/github.com/aws/aws-sdk-go/service/inspector/service.go index 4d099420b..3401a9c40 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/inspector/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/inspector/service.go @@ -14,8 +14,9 @@ import ( // Amazon Inspector enables you to analyze the behavior of your AWS resources // and to identify potential security issues. For more information, see Amazon // Inspector User Guide (http://docs.aws.amazon.com/inspector/latest/userguide/inspector_introduction.html). -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16 type Inspector struct { *client.Client } @@ -26,8 +27,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "inspector" +// Service information constants +const ( + ServiceName = "inspector" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the Inspector client with a session. // If additional configuration is needed for the client instance use the optional @@ -40,17 +44,18 @@ const ServiceName = "inspector" // // Create a Inspector client with additional configuration // svc := inspector.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Inspector { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *Inspector { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Inspector { svc := &Inspector{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2016-02-16", diff --git a/vendor/github.com/aws/aws-sdk-go/service/iot/api.go b/vendor/github.com/aws/aws-sdk-go/service/iot/api.go index da73a07f6..c3fee9d4d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iot/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iot/api.go @@ -38,7 +38,6 @@ const opAcceptCertificateTransfer = "AcceptCertificateTransfer" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) AcceptCertificateTransferRequest(input *AcceptCertificateTransferInput) (req *request.Request, output *AcceptCertificateTransferOutput) { op := &request.Operation{ Name: opAcceptCertificateTransfer, @@ -50,11 +49,10 @@ func (c *IoT) AcceptCertificateTransferRequest(input *AcceptCertificateTransferI input = &AcceptCertificateTransferInput{} } + output = &AcceptCertificateTransferOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AcceptCertificateTransferOutput{} - req.Data = output return } @@ -74,26 +72,26 @@ func (c *IoT) AcceptCertificateTransferRequest(input *AcceptCertificateTransferI // API operation AcceptCertificateTransfer for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * TransferAlreadyCompletedException +// * ErrCodeTransferAlreadyCompletedException "TransferAlreadyCompletedException" // You can't revert the certificate transfer because the transfer is already // complete. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) AcceptCertificateTransfer(input *AcceptCertificateTransferInput) (*AcceptCertificateTransferOutput, error) { @@ -127,7 +125,6 @@ const opAttachPrincipalPolicy = "AttachPrincipalPolicy" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) AttachPrincipalPolicyRequest(input *AttachPrincipalPolicyInput) (req *request.Request, output *AttachPrincipalPolicyOutput) { op := &request.Operation{ Name: opAttachPrincipalPolicy, @@ -139,11 +136,10 @@ func (c *IoT) AttachPrincipalPolicyRequest(input *AttachPrincipalPolicyInput) (r input = &AttachPrincipalPolicyInput{} } + output = &AttachPrincipalPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AttachPrincipalPolicyOutput{} - req.Data = output return } @@ -160,25 +156,25 @@ func (c *IoT) AttachPrincipalPolicyRequest(input *AttachPrincipalPolicyInput) (r // API operation AttachPrincipalPolicy for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The number of attached entities exceeds the limit. // func (c *IoT) AttachPrincipalPolicy(input *AttachPrincipalPolicyInput) (*AttachPrincipalPolicyOutput, error) { @@ -212,7 +208,6 @@ const opAttachThingPrincipal = "AttachThingPrincipal" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) AttachThingPrincipalRequest(input *AttachThingPrincipalInput) (req *request.Request, output *AttachThingPrincipalOutput) { op := &request.Operation{ Name: opAttachThingPrincipal, @@ -224,9 +219,8 @@ func (c *IoT) AttachThingPrincipalRequest(input *AttachThingPrincipalInput) (req input = &AttachThingPrincipalInput{} } - req = c.newRequest(op, input, output) output = &AttachThingPrincipalOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -242,22 +236,22 @@ func (c *IoT) AttachThingPrincipalRequest(input *AttachThingPrincipalInput) (req // API operation AttachThingPrincipal for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) AttachThingPrincipal(input *AttachThingPrincipalInput) (*AttachThingPrincipalOutput, error) { @@ -291,7 +285,6 @@ const opCancelCertificateTransfer = "CancelCertificateTransfer" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) CancelCertificateTransferRequest(input *CancelCertificateTransferInput) (req *request.Request, output *CancelCertificateTransferOutput) { op := &request.Operation{ Name: opCancelCertificateTransfer, @@ -303,11 +296,10 @@ func (c *IoT) CancelCertificateTransferRequest(input *CancelCertificateTransferI input = &CancelCertificateTransferInput{} } + output = &CancelCertificateTransferOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CancelCertificateTransferOutput{} - req.Data = output return } @@ -332,26 +324,26 @@ func (c *IoT) CancelCertificateTransferRequest(input *CancelCertificateTransferI // API operation CancelCertificateTransfer for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * TransferAlreadyCompletedException +// * ErrCodeTransferAlreadyCompletedException "TransferAlreadyCompletedException" // You can't revert the certificate transfer because the transfer is already // complete. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) CancelCertificateTransfer(input *CancelCertificateTransferInput) (*CancelCertificateTransferOutput, error) { @@ -385,7 +377,6 @@ const opCreateCertificateFromCsr = "CreateCertificateFromCsr" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) CreateCertificateFromCsrRequest(input *CreateCertificateFromCsrInput) (req *request.Request, output *CreateCertificateFromCsrOutput) { op := &request.Operation{ Name: opCreateCertificateFromCsr, @@ -397,9 +388,8 @@ func (c *IoT) CreateCertificateFromCsrRequest(input *CreateCertificateFromCsrInp input = &CreateCertificateFromCsrInput{} } - req = c.newRequest(op, input, output) output = &CreateCertificateFromCsrOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -422,26 +412,26 @@ func (c *IoT) CreateCertificateFromCsrRequest(input *CreateCertificateFromCsrInp // $ ls my-csr-directory/ | xargs -I {} aws iot create-certificate-from-csr // --certificate-signing-request file://my-csr-directory/{} // -// This command lists all of the CSRs in my-csr-directory and pipes each CSR +// This command lists all of the CSRs in my-csr-directory and pipes each CSR // file name to the aws iot create-certificate-from-csr AWS CLI command to create // a certificate for the corresponding CSR. // -// The aws iot create-certificate-from-csr part of the command can also be -// run in parallel to speed up the certificate creation process: +// The aws iot create-certificate-from-csr part of the command can also be run +// in parallel to speed up the certificate creation process: // -// $ ls my-csr-directory/ | xargs -P 10 -I {} aws iot create-certificate-from-csr +// $ ls my-csr-directory/ | xargs -P 10 -I {} aws iot create-certificate-from-csr // --certificate-signing-request file://my-csr-directory/{} // -// On Windows PowerShell, the command to create certificates for all CSRs -// in my-csr-directory is: +// On Windows PowerShell, the command to create certificates for all CSRs in +// my-csr-directory is: // -// > ls -Name my-csr-directory | %{aws iot create-certificate-from-csr --certificate-signing-request +// > ls -Name my-csr-directory | %{aws iot create-certificate-from-csr --certificate-signing-request // file://my-csr-directory/$_} // -// On a Windows command prompt, the command to create certificates for all -// CSRs in my-csr-directory is: +// On a Windows command prompt, the command to create certificates for all CSRs +// in my-csr-directory is: // -// > forfiles /p my-csr-directory /c "cmd /c aws iot create-certificate-from-csr +// > forfiles /p my-csr-directory /c "cmd /c aws iot create-certificate-from-csr // --certificate-signing-request file://@path" // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -452,19 +442,19 @@ func (c *IoT) CreateCertificateFromCsrRequest(input *CreateCertificateFromCsrInp // API operation CreateCertificateFromCsr for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) CreateCertificateFromCsr(input *CreateCertificateFromCsrInput) (*CreateCertificateFromCsrOutput, error) { @@ -498,7 +488,6 @@ const opCreateKeysAndCertificate = "CreateKeysAndCertificate" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) CreateKeysAndCertificateRequest(input *CreateKeysAndCertificateInput) (req *request.Request, output *CreateKeysAndCertificateOutput) { op := &request.Operation{ Name: opCreateKeysAndCertificate, @@ -510,9 +499,8 @@ func (c *IoT) CreateKeysAndCertificateRequest(input *CreateKeysAndCertificateInp input = &CreateKeysAndCertificateInput{} } - req = c.newRequest(op, input, output) output = &CreateKeysAndCertificateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -532,19 +520,19 @@ func (c *IoT) CreateKeysAndCertificateRequest(input *CreateKeysAndCertificateInp // API operation CreateKeysAndCertificate for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) CreateKeysAndCertificate(input *CreateKeysAndCertificateInput) (*CreateKeysAndCertificateOutput, error) { @@ -578,7 +566,6 @@ const opCreatePolicy = "CreatePolicy" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) CreatePolicyRequest(input *CreatePolicyInput) (req *request.Request, output *CreatePolicyOutput) { op := &request.Operation{ Name: opCreatePolicy, @@ -590,9 +577,8 @@ func (c *IoT) CreatePolicyRequest(input *CreatePolicyInput) (req *request.Reques input = &CreatePolicyInput{} } - req = c.newRequest(op, input, output) output = &CreatePolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -612,25 +598,25 @@ func (c *IoT) CreatePolicyRequest(input *CreatePolicyInput) (req *request.Reques // API operation CreatePolicy for usage and error information. // // Returned Error Codes: -// * ResourceAlreadyExistsException +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" // The resource already exists. // -// * MalformedPolicyException +// * ErrCodeMalformedPolicyException "MalformedPolicyException" // The policy documentation is not valid. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) CreatePolicy(input *CreatePolicyInput) (*CreatePolicyOutput, error) { @@ -664,7 +650,6 @@ const opCreatePolicyVersion = "CreatePolicyVersion" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) CreatePolicyVersionRequest(input *CreatePolicyVersionInput) (req *request.Request, output *CreatePolicyVersionOutput) { op := &request.Operation{ Name: opCreatePolicyVersion, @@ -676,9 +661,8 @@ func (c *IoT) CreatePolicyVersionRequest(input *CreatePolicyVersionInput) (req * input = &CreatePolicyVersionInput{} } - req = c.newRequest(op, input, output) output = &CreatePolicyVersionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -701,28 +685,28 @@ func (c *IoT) CreatePolicyVersionRequest(input *CreatePolicyVersionInput) (req * // API operation CreatePolicyVersion for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * MalformedPolicyException +// * ErrCodeMalformedPolicyException "MalformedPolicyException" // The policy documentation is not valid. // -// * VersionsLimitExceededException +// * ErrCodeVersionsLimitExceededException "VersionsLimitExceededException" // The number of policy versions exceeds the limit. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) CreatePolicyVersion(input *CreatePolicyVersionInput) (*CreatePolicyVersionOutput, error) { @@ -756,7 +740,6 @@ const opCreateThing = "CreateThing" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) CreateThingRequest(input *CreateThingInput) (req *request.Request, output *CreateThingOutput) { op := &request.Operation{ Name: opCreateThing, @@ -768,9 +751,8 @@ func (c *IoT) CreateThingRequest(input *CreateThingInput) (req *request.Request, input = &CreateThingInput{} } - req = c.newRequest(op, input, output) output = &CreateThingOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -786,25 +768,25 @@ func (c *IoT) CreateThingRequest(input *CreateThingInput) (req *request.Request, // API operation CreateThing for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // -// * ResourceAlreadyExistsException +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" // The resource already exists. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // func (c *IoT) CreateThing(input *CreateThingInput) (*CreateThingOutput, error) { @@ -838,7 +820,6 @@ const opCreateThingType = "CreateThingType" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) CreateThingTypeRequest(input *CreateThingTypeInput) (req *request.Request, output *CreateThingTypeOutput) { op := &request.Operation{ Name: opCreateThingType, @@ -850,9 +831,8 @@ func (c *IoT) CreateThingTypeRequest(input *CreateThingTypeInput) (req *request. input = &CreateThingTypeInput{} } - req = c.newRequest(op, input, output) output = &CreateThingTypeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -868,22 +848,22 @@ func (c *IoT) CreateThingTypeRequest(input *CreateThingTypeInput) (req *request. // API operation CreateThingType for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // -// * ResourceAlreadyExistsException +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" // The resource already exists. // func (c *IoT) CreateThingType(input *CreateThingTypeInput) (*CreateThingTypeOutput, error) { @@ -917,7 +897,6 @@ const opCreateTopicRule = "CreateTopicRule" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) CreateTopicRuleRequest(input *CreateTopicRuleInput) (req *request.Request, output *CreateTopicRuleOutput) { op := &request.Operation{ Name: opCreateTopicRule, @@ -929,11 +908,10 @@ func (c *IoT) CreateTopicRuleRequest(input *CreateTopicRuleInput) (req *request. input = &CreateTopicRuleInput{} } + output = &CreateTopicRuleOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CreateTopicRuleOutput{} - req.Data = output return } @@ -951,19 +929,19 @@ func (c *IoT) CreateTopicRuleRequest(input *CreateTopicRuleInput) (req *request. // API operation CreateTopicRule for usage and error information. // // Returned Error Codes: -// * SqlParseException +// * ErrCodeSqlParseException "SqlParseException" // The Rule-SQL expression can't be parsed correctly. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An unexpected error has occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ResourceAlreadyExistsException +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" // The resource already exists. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // func (c *IoT) CreateTopicRule(input *CreateTopicRuleInput) (*CreateTopicRuleOutput, error) { @@ -997,7 +975,6 @@ const opDeleteCACertificate = "DeleteCACertificate" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) DeleteCACertificateRequest(input *DeleteCACertificateInput) (req *request.Request, output *DeleteCACertificateOutput) { op := &request.Operation{ Name: opDeleteCACertificate, @@ -1009,9 +986,8 @@ func (c *IoT) DeleteCACertificateRequest(input *DeleteCACertificateInput) (req * input = &DeleteCACertificateInput{} } - req = c.newRequest(op, input, output) output = &DeleteCACertificateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1027,25 +1003,25 @@ func (c *IoT) DeleteCACertificateRequest(input *DeleteCACertificateInput) (req * // API operation DeleteCACertificate for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * CertificateStateException +// * ErrCodeCertificateStateException "CertificateStateException" // The certificate operation is not allowed. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // func (c *IoT) DeleteCACertificate(input *DeleteCACertificateInput) (*DeleteCACertificateOutput, error) { @@ -1079,7 +1055,6 @@ const opDeleteCertificate = "DeleteCertificate" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) DeleteCertificateRequest(input *DeleteCertificateInput) (req *request.Request, output *DeleteCertificateOutput) { op := &request.Operation{ Name: opDeleteCertificate, @@ -1091,11 +1066,10 @@ func (c *IoT) DeleteCertificateRequest(input *DeleteCertificateInput) (req *requ input = &DeleteCertificateInput{} } + output = &DeleteCertificateOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteCertificateOutput{} - req.Data = output return } @@ -1103,8 +1077,8 @@ func (c *IoT) DeleteCertificateRequest(input *DeleteCertificateInput) (req *requ // // Deletes the specified certificate. // -// A certificate cannot be deleted if it has a policy attached to it or if -// its status is set to ACTIVE. To delete a certificate, first use the DetachPrincipalPolicy +// A certificate cannot be deleted if it has a policy attached to it or if its +// status is set to ACTIVE. To delete a certificate, first use the DetachPrincipalPolicy // API to detach all policies. Next, use the UpdateCertificate API to set the // certificate to the INACTIVE status. // @@ -1116,28 +1090,28 @@ func (c *IoT) DeleteCertificateRequest(input *DeleteCertificateInput) (req *requ // API operation DeleteCertificate for usage and error information. // // Returned Error Codes: -// * CertificateStateException +// * ErrCodeCertificateStateException "CertificateStateException" // The certificate operation is not allowed. // -// * DeleteConflictException +// * ErrCodeDeleteConflictException "DeleteConflictException" // You can't delete the resource because it is attached to one or more resources. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // func (c *IoT) DeleteCertificate(input *DeleteCertificateInput) (*DeleteCertificateOutput, error) { @@ -1171,7 +1145,6 @@ const opDeletePolicy = "DeletePolicy" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Request, output *DeletePolicyOutput) { op := &request.Operation{ Name: opDeletePolicy, @@ -1183,11 +1156,10 @@ func (c *IoT) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Reques input = &DeletePolicyInput{} } + output = &DeletePolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeletePolicyOutput{} - req.Data = output return } @@ -1213,25 +1185,25 @@ func (c *IoT) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Reques // API operation DeletePolicy for usage and error information. // // Returned Error Codes: -// * DeleteConflictException +// * ErrCodeDeleteConflictException "DeleteConflictException" // You can't delete the resource because it is attached to one or more resources. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) DeletePolicy(input *DeletePolicyInput) (*DeletePolicyOutput, error) { @@ -1265,7 +1237,6 @@ const opDeletePolicyVersion = "DeletePolicyVersion" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) DeletePolicyVersionRequest(input *DeletePolicyVersionInput) (req *request.Request, output *DeletePolicyVersionOutput) { op := &request.Operation{ Name: opDeletePolicyVersion, @@ -1277,11 +1248,10 @@ func (c *IoT) DeletePolicyVersionRequest(input *DeletePolicyVersionInput) (req * input = &DeletePolicyVersionInput{} } + output = &DeletePolicyVersionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeletePolicyVersionOutput{} - req.Data = output return } @@ -1300,25 +1270,25 @@ func (c *IoT) DeletePolicyVersionRequest(input *DeletePolicyVersionInput) (req * // API operation DeletePolicyVersion for usage and error information. // // Returned Error Codes: -// * DeleteConflictException +// * ErrCodeDeleteConflictException "DeleteConflictException" // You can't delete the resource because it is attached to one or more resources. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) DeletePolicyVersion(input *DeletePolicyVersionInput) (*DeletePolicyVersionOutput, error) { @@ -1352,7 +1322,6 @@ const opDeleteRegistrationCode = "DeleteRegistrationCode" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) DeleteRegistrationCodeRequest(input *DeleteRegistrationCodeInput) (req *request.Request, output *DeleteRegistrationCodeOutput) { op := &request.Operation{ Name: opDeleteRegistrationCode, @@ -1364,9 +1333,8 @@ func (c *IoT) DeleteRegistrationCodeRequest(input *DeleteRegistrationCodeInput) input = &DeleteRegistrationCodeInput{} } - req = c.newRequest(op, input, output) output = &DeleteRegistrationCodeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1382,19 +1350,19 @@ func (c *IoT) DeleteRegistrationCodeRequest(input *DeleteRegistrationCodeInput) // API operation DeleteRegistrationCode for usage and error information. // // Returned Error Codes: -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) DeleteRegistrationCode(input *DeleteRegistrationCodeInput) (*DeleteRegistrationCodeOutput, error) { @@ -1428,7 +1396,6 @@ const opDeleteThing = "DeleteThing" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) DeleteThingRequest(input *DeleteThingInput) (req *request.Request, output *DeleteThingOutput) { op := &request.Operation{ Name: opDeleteThing, @@ -1440,9 +1407,8 @@ func (c *IoT) DeleteThingRequest(input *DeleteThingInput) (req *request.Request, input = &DeleteThingInput{} } - req = c.newRequest(op, input, output) output = &DeleteThingOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1458,26 +1424,26 @@ func (c *IoT) DeleteThingRequest(input *DeleteThingInput) (req *request.Request, // API operation DeleteThing for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * VersionConflictException +// * ErrCodeVersionConflictException "VersionConflictException" // An exception thrown when the version of a thing passed to a command is different // than the version specified with the --version parameter. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) DeleteThing(input *DeleteThingInput) (*DeleteThingOutput, error) { @@ -1511,7 +1477,6 @@ const opDeleteThingType = "DeleteThingType" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) DeleteThingTypeRequest(input *DeleteThingTypeInput) (req *request.Request, output *DeleteThingTypeOutput) { op := &request.Operation{ Name: opDeleteThingType, @@ -1523,9 +1488,8 @@ func (c *IoT) DeleteThingTypeRequest(input *DeleteThingTypeInput) (req *request. input = &DeleteThingTypeInput{} } - req = c.newRequest(op, input, output) output = &DeleteThingTypeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1545,22 +1509,22 @@ func (c *IoT) DeleteThingTypeRequest(input *DeleteThingTypeInput) (req *request. // API operation DeleteThingType for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) DeleteThingType(input *DeleteThingTypeInput) (*DeleteThingTypeOutput, error) { @@ -1594,7 +1558,6 @@ const opDeleteTopicRule = "DeleteTopicRule" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) DeleteTopicRuleRequest(input *DeleteTopicRuleInput) (req *request.Request, output *DeleteTopicRuleOutput) { op := &request.Operation{ Name: opDeleteTopicRule, @@ -1606,11 +1569,10 @@ func (c *IoT) DeleteTopicRuleRequest(input *DeleteTopicRuleInput) (req *request. input = &DeleteTopicRuleInput{} } + output = &DeleteTopicRuleOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteTopicRuleOutput{} - req.Data = output return } @@ -1626,16 +1588,16 @@ func (c *IoT) DeleteTopicRuleRequest(input *DeleteTopicRuleInput) (req *request. // API operation DeleteTopicRule for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // An unexpected error has occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // func (c *IoT) DeleteTopicRule(input *DeleteTopicRuleInput) (*DeleteTopicRuleOutput, error) { @@ -1669,7 +1631,6 @@ const opDeprecateThingType = "DeprecateThingType" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) DeprecateThingTypeRequest(input *DeprecateThingTypeInput) (req *request.Request, output *DeprecateThingTypeOutput) { op := &request.Operation{ Name: opDeprecateThingType, @@ -1681,9 +1642,8 @@ func (c *IoT) DeprecateThingTypeRequest(input *DeprecateThingTypeInput) (req *re input = &DeprecateThingTypeInput{} } - req = c.newRequest(op, input, output) output = &DeprecateThingTypeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1700,22 +1660,22 @@ func (c *IoT) DeprecateThingTypeRequest(input *DeprecateThingTypeInput) (req *re // API operation DeprecateThingType for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) DeprecateThingType(input *DeprecateThingTypeInput) (*DeprecateThingTypeOutput, error) { @@ -1749,7 +1709,6 @@ const opDescribeCACertificate = "DescribeCACertificate" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) DescribeCACertificateRequest(input *DescribeCACertificateInput) (req *request.Request, output *DescribeCACertificateOutput) { op := &request.Operation{ Name: opDescribeCACertificate, @@ -1761,9 +1720,8 @@ func (c *IoT) DescribeCACertificateRequest(input *DescribeCACertificateInput) (r input = &DescribeCACertificateInput{} } - req = c.newRequest(op, input, output) output = &DescribeCACertificateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1779,22 +1737,22 @@ func (c *IoT) DescribeCACertificateRequest(input *DescribeCACertificateInput) (r // API operation DescribeCACertificate for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // func (c *IoT) DescribeCACertificate(input *DescribeCACertificateInput) (*DescribeCACertificateOutput, error) { @@ -1828,7 +1786,6 @@ const opDescribeCertificate = "DescribeCertificate" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) DescribeCertificateRequest(input *DescribeCertificateInput) (req *request.Request, output *DescribeCertificateOutput) { op := &request.Operation{ Name: opDescribeCertificate, @@ -1840,9 +1797,8 @@ func (c *IoT) DescribeCertificateRequest(input *DescribeCertificateInput) (req * input = &DescribeCertificateInput{} } - req = c.newRequest(op, input, output) output = &DescribeCertificateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1858,22 +1814,22 @@ func (c *IoT) DescribeCertificateRequest(input *DescribeCertificateInput) (req * // API operation DescribeCertificate for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // func (c *IoT) DescribeCertificate(input *DescribeCertificateInput) (*DescribeCertificateOutput, error) { @@ -1907,7 +1863,6 @@ const opDescribeEndpoint = "DescribeEndpoint" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) DescribeEndpointRequest(input *DescribeEndpointInput) (req *request.Request, output *DescribeEndpointOutput) { op := &request.Operation{ Name: opDescribeEndpoint, @@ -1919,9 +1874,8 @@ func (c *IoT) DescribeEndpointRequest(input *DescribeEndpointInput) (req *reques input = &DescribeEndpointInput{} } - req = c.newRequest(op, input, output) output = &DescribeEndpointOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1937,13 +1891,13 @@ func (c *IoT) DescribeEndpointRequest(input *DescribeEndpointInput) (req *reques // API operation DescribeEndpoint for usage and error information. // // Returned Error Codes: -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // func (c *IoT) DescribeEndpoint(input *DescribeEndpointInput) (*DescribeEndpointOutput, error) { @@ -1977,7 +1931,6 @@ const opDescribeThing = "DescribeThing" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) DescribeThingRequest(input *DescribeThingInput) (req *request.Request, output *DescribeThingOutput) { op := &request.Operation{ Name: opDescribeThing, @@ -1989,9 +1942,8 @@ func (c *IoT) DescribeThingRequest(input *DescribeThingInput) (req *request.Requ input = &DescribeThingInput{} } - req = c.newRequest(op, input, output) output = &DescribeThingOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2007,22 +1959,22 @@ func (c *IoT) DescribeThingRequest(input *DescribeThingInput) (req *request.Requ // API operation DescribeThing for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) DescribeThing(input *DescribeThingInput) (*DescribeThingOutput, error) { @@ -2056,7 +2008,6 @@ const opDescribeThingType = "DescribeThingType" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) DescribeThingTypeRequest(input *DescribeThingTypeInput) (req *request.Request, output *DescribeThingTypeOutput) { op := &request.Operation{ Name: opDescribeThingType, @@ -2068,9 +2019,8 @@ func (c *IoT) DescribeThingTypeRequest(input *DescribeThingTypeInput) (req *requ input = &DescribeThingTypeInput{} } - req = c.newRequest(op, input, output) output = &DescribeThingTypeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2086,22 +2036,22 @@ func (c *IoT) DescribeThingTypeRequest(input *DescribeThingTypeInput) (req *requ // API operation DescribeThingType for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) DescribeThingType(input *DescribeThingTypeInput) (*DescribeThingTypeOutput, error) { @@ -2135,7 +2085,6 @@ const opDetachPrincipalPolicy = "DetachPrincipalPolicy" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) DetachPrincipalPolicyRequest(input *DetachPrincipalPolicyInput) (req *request.Request, output *DetachPrincipalPolicyOutput) { op := &request.Operation{ Name: opDetachPrincipalPolicy, @@ -2147,11 +2096,10 @@ func (c *IoT) DetachPrincipalPolicyRequest(input *DetachPrincipalPolicyInput) (r input = &DetachPrincipalPolicyInput{} } + output = &DetachPrincipalPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DetachPrincipalPolicyOutput{} - req.Data = output return } @@ -2167,22 +2115,22 @@ func (c *IoT) DetachPrincipalPolicyRequest(input *DetachPrincipalPolicyInput) (r // API operation DetachPrincipalPolicy for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) DetachPrincipalPolicy(input *DetachPrincipalPolicyInput) (*DetachPrincipalPolicyOutput, error) { @@ -2216,7 +2164,6 @@ const opDetachThingPrincipal = "DetachThingPrincipal" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) DetachThingPrincipalRequest(input *DetachThingPrincipalInput) (req *request.Request, output *DetachThingPrincipalOutput) { op := &request.Operation{ Name: opDetachThingPrincipal, @@ -2228,9 +2175,8 @@ func (c *IoT) DetachThingPrincipalRequest(input *DetachThingPrincipalInput) (req input = &DetachThingPrincipalInput{} } - req = c.newRequest(op, input, output) output = &DetachThingPrincipalOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2246,22 +2192,22 @@ func (c *IoT) DetachThingPrincipalRequest(input *DetachThingPrincipalInput) (req // API operation DetachThingPrincipal for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) DetachThingPrincipal(input *DetachThingPrincipalInput) (*DetachThingPrincipalOutput, error) { @@ -2295,7 +2241,6 @@ const opDisableTopicRule = "DisableTopicRule" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) DisableTopicRuleRequest(input *DisableTopicRuleInput) (req *request.Request, output *DisableTopicRuleOutput) { op := &request.Operation{ Name: opDisableTopicRule, @@ -2307,11 +2252,10 @@ func (c *IoT) DisableTopicRuleRequest(input *DisableTopicRuleInput) (req *reques input = &DisableTopicRuleInput{} } + output = &DisableTopicRuleOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DisableTopicRuleOutput{} - req.Data = output return } @@ -2327,16 +2271,16 @@ func (c *IoT) DisableTopicRuleRequest(input *DisableTopicRuleInput) (req *reques // API operation DisableTopicRule for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // An unexpected error has occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // func (c *IoT) DisableTopicRule(input *DisableTopicRuleInput) (*DisableTopicRuleOutput, error) { @@ -2370,7 +2314,6 @@ const opEnableTopicRule = "EnableTopicRule" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) EnableTopicRuleRequest(input *EnableTopicRuleInput) (req *request.Request, output *EnableTopicRuleOutput) { op := &request.Operation{ Name: opEnableTopicRule, @@ -2382,11 +2325,10 @@ func (c *IoT) EnableTopicRuleRequest(input *EnableTopicRuleInput) (req *request. input = &EnableTopicRuleInput{} } + output = &EnableTopicRuleOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &EnableTopicRuleOutput{} - req.Data = output return } @@ -2402,16 +2344,16 @@ func (c *IoT) EnableTopicRuleRequest(input *EnableTopicRuleInput) (req *request. // API operation EnableTopicRule for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // An unexpected error has occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // func (c *IoT) EnableTopicRule(input *EnableTopicRuleInput) (*EnableTopicRuleOutput, error) { @@ -2445,7 +2387,6 @@ const opGetLoggingOptions = "GetLoggingOptions" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) GetLoggingOptionsRequest(input *GetLoggingOptionsInput) (req *request.Request, output *GetLoggingOptionsOutput) { op := &request.Operation{ Name: opGetLoggingOptions, @@ -2457,9 +2398,8 @@ func (c *IoT) GetLoggingOptionsRequest(input *GetLoggingOptionsInput) (req *requ input = &GetLoggingOptionsInput{} } - req = c.newRequest(op, input, output) output = &GetLoggingOptionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2475,13 +2415,13 @@ func (c *IoT) GetLoggingOptionsRequest(input *GetLoggingOptionsInput) (req *requ // API operation GetLoggingOptions for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // An unexpected error has occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // func (c *IoT) GetLoggingOptions(input *GetLoggingOptionsInput) (*GetLoggingOptionsOutput, error) { @@ -2515,7 +2455,6 @@ const opGetPolicy = "GetPolicy" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, output *GetPolicyOutput) { op := &request.Operation{ Name: opGetPolicy, @@ -2527,9 +2466,8 @@ func (c *IoT) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, out input = &GetPolicyInput{} } - req = c.newRequest(op, input, output) output = &GetPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2546,22 +2484,22 @@ func (c *IoT) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, out // API operation GetPolicy for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error) { @@ -2595,7 +2533,6 @@ const opGetPolicyVersion = "GetPolicyVersion" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) GetPolicyVersionRequest(input *GetPolicyVersionInput) (req *request.Request, output *GetPolicyVersionOutput) { op := &request.Operation{ Name: opGetPolicyVersion, @@ -2607,9 +2544,8 @@ func (c *IoT) GetPolicyVersionRequest(input *GetPolicyVersionInput) (req *reques input = &GetPolicyVersionInput{} } - req = c.newRequest(op, input, output) output = &GetPolicyVersionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2625,22 +2561,22 @@ func (c *IoT) GetPolicyVersionRequest(input *GetPolicyVersionInput) (req *reques // API operation GetPolicyVersion for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) GetPolicyVersion(input *GetPolicyVersionInput) (*GetPolicyVersionOutput, error) { @@ -2674,7 +2610,6 @@ const opGetRegistrationCode = "GetRegistrationCode" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) GetRegistrationCodeRequest(input *GetRegistrationCodeInput) (req *request.Request, output *GetRegistrationCodeOutput) { op := &request.Operation{ Name: opGetRegistrationCode, @@ -2686,9 +2621,8 @@ func (c *IoT) GetRegistrationCodeRequest(input *GetRegistrationCodeInput) (req * input = &GetRegistrationCodeInput{} } - req = c.newRequest(op, input, output) output = &GetRegistrationCodeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2704,19 +2638,19 @@ func (c *IoT) GetRegistrationCodeRequest(input *GetRegistrationCodeInput) (req * // API operation GetRegistrationCode for usage and error information. // // Returned Error Codes: -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // func (c *IoT) GetRegistrationCode(input *GetRegistrationCodeInput) (*GetRegistrationCodeOutput, error) { @@ -2750,7 +2684,6 @@ const opGetTopicRule = "GetTopicRule" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) GetTopicRuleRequest(input *GetTopicRuleInput) (req *request.Request, output *GetTopicRuleOutput) { op := &request.Operation{ Name: opGetTopicRule, @@ -2762,9 +2695,8 @@ func (c *IoT) GetTopicRuleRequest(input *GetTopicRuleInput) (req *request.Reques input = &GetTopicRuleInput{} } - req = c.newRequest(op, input, output) output = &GetTopicRuleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2780,16 +2712,16 @@ func (c *IoT) GetTopicRuleRequest(input *GetTopicRuleInput) (req *request.Reques // API operation GetTopicRule for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // An unexpected error has occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // func (c *IoT) GetTopicRule(input *GetTopicRuleInput) (*GetTopicRuleOutput, error) { @@ -2823,7 +2755,6 @@ const opListCACertificates = "ListCACertificates" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) ListCACertificatesRequest(input *ListCACertificatesInput) (req *request.Request, output *ListCACertificatesOutput) { op := &request.Operation{ Name: opListCACertificates, @@ -2835,9 +2766,8 @@ func (c *IoT) ListCACertificatesRequest(input *ListCACertificatesInput) (req *re input = &ListCACertificatesInput{} } - req = c.newRequest(op, input, output) output = &ListCACertificatesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2856,19 +2786,19 @@ func (c *IoT) ListCACertificatesRequest(input *ListCACertificatesInput) (req *re // API operation ListCACertificates for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) ListCACertificates(input *ListCACertificatesInput) (*ListCACertificatesOutput, error) { @@ -2902,7 +2832,6 @@ const opListCertificates = "ListCertificates" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) ListCertificatesRequest(input *ListCertificatesInput) (req *request.Request, output *ListCertificatesOutput) { op := &request.Operation{ Name: opListCertificates, @@ -2914,9 +2843,8 @@ func (c *IoT) ListCertificatesRequest(input *ListCertificatesInput) (req *reques input = &ListCertificatesInput{} } - req = c.newRequest(op, input, output) output = &ListCertificatesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2935,19 +2863,19 @@ func (c *IoT) ListCertificatesRequest(input *ListCertificatesInput) (req *reques // API operation ListCertificates for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) ListCertificates(input *ListCertificatesInput) (*ListCertificatesOutput, error) { @@ -2981,7 +2909,6 @@ const opListCertificatesByCA = "ListCertificatesByCA" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) ListCertificatesByCARequest(input *ListCertificatesByCAInput) (req *request.Request, output *ListCertificatesByCAOutput) { op := &request.Operation{ Name: opListCertificatesByCA, @@ -2993,9 +2920,8 @@ func (c *IoT) ListCertificatesByCARequest(input *ListCertificatesByCAInput) (req input = &ListCertificatesByCAInput{} } - req = c.newRequest(op, input, output) output = &ListCertificatesByCAOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3011,19 +2937,19 @@ func (c *IoT) ListCertificatesByCARequest(input *ListCertificatesByCAInput) (req // API operation ListCertificatesByCA for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) ListCertificatesByCA(input *ListCertificatesByCAInput) (*ListCertificatesByCAOutput, error) { @@ -3057,7 +2983,6 @@ const opListOutgoingCertificates = "ListOutgoingCertificates" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) ListOutgoingCertificatesRequest(input *ListOutgoingCertificatesInput) (req *request.Request, output *ListOutgoingCertificatesOutput) { op := &request.Operation{ Name: opListOutgoingCertificates, @@ -3069,9 +2994,8 @@ func (c *IoT) ListOutgoingCertificatesRequest(input *ListOutgoingCertificatesInp input = &ListOutgoingCertificatesInput{} } - req = c.newRequest(op, input, output) output = &ListOutgoingCertificatesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3087,19 +3011,19 @@ func (c *IoT) ListOutgoingCertificatesRequest(input *ListOutgoingCertificatesInp // API operation ListOutgoingCertificates for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) ListOutgoingCertificates(input *ListOutgoingCertificatesInput) (*ListOutgoingCertificatesOutput, error) { @@ -3133,7 +3057,6 @@ const opListPolicies = "ListPolicies" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) ListPoliciesRequest(input *ListPoliciesInput) (req *request.Request, output *ListPoliciesOutput) { op := &request.Operation{ Name: opListPolicies, @@ -3145,9 +3068,8 @@ func (c *IoT) ListPoliciesRequest(input *ListPoliciesInput) (req *request.Reques input = &ListPoliciesInput{} } - req = c.newRequest(op, input, output) output = &ListPoliciesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3163,19 +3085,19 @@ func (c *IoT) ListPoliciesRequest(input *ListPoliciesInput) (req *request.Reques // API operation ListPolicies for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) ListPolicies(input *ListPoliciesInput) (*ListPoliciesOutput, error) { @@ -3209,7 +3131,6 @@ const opListPolicyPrincipals = "ListPolicyPrincipals" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) ListPolicyPrincipalsRequest(input *ListPolicyPrincipalsInput) (req *request.Request, output *ListPolicyPrincipalsOutput) { op := &request.Operation{ Name: opListPolicyPrincipals, @@ -3221,9 +3142,8 @@ func (c *IoT) ListPolicyPrincipalsRequest(input *ListPolicyPrincipalsInput) (req input = &ListPolicyPrincipalsInput{} } - req = c.newRequest(op, input, output) output = &ListPolicyPrincipalsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3239,22 +3159,22 @@ func (c *IoT) ListPolicyPrincipalsRequest(input *ListPolicyPrincipalsInput) (req // API operation ListPolicyPrincipals for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) ListPolicyPrincipals(input *ListPolicyPrincipalsInput) (*ListPolicyPrincipalsOutput, error) { @@ -3288,7 +3208,6 @@ const opListPolicyVersions = "ListPolicyVersions" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) ListPolicyVersionsRequest(input *ListPolicyVersionsInput) (req *request.Request, output *ListPolicyVersionsOutput) { op := &request.Operation{ Name: opListPolicyVersions, @@ -3300,9 +3219,8 @@ func (c *IoT) ListPolicyVersionsRequest(input *ListPolicyVersionsInput) (req *re input = &ListPolicyVersionsInput{} } - req = c.newRequest(op, input, output) output = &ListPolicyVersionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3318,22 +3236,22 @@ func (c *IoT) ListPolicyVersionsRequest(input *ListPolicyVersionsInput) (req *re // API operation ListPolicyVersions for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) ListPolicyVersions(input *ListPolicyVersionsInput) (*ListPolicyVersionsOutput, error) { @@ -3367,7 +3285,6 @@ const opListPrincipalPolicies = "ListPrincipalPolicies" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) ListPrincipalPoliciesRequest(input *ListPrincipalPoliciesInput) (req *request.Request, output *ListPrincipalPoliciesOutput) { op := &request.Operation{ Name: opListPrincipalPolicies, @@ -3379,9 +3296,8 @@ func (c *IoT) ListPrincipalPoliciesRequest(input *ListPrincipalPoliciesInput) (r input = &ListPrincipalPoliciesInput{} } - req = c.newRequest(op, input, output) output = &ListPrincipalPoliciesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3398,22 +3314,22 @@ func (c *IoT) ListPrincipalPoliciesRequest(input *ListPrincipalPoliciesInput) (r // API operation ListPrincipalPolicies for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) ListPrincipalPolicies(input *ListPrincipalPoliciesInput) (*ListPrincipalPoliciesOutput, error) { @@ -3447,7 +3363,6 @@ const opListPrincipalThings = "ListPrincipalThings" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) ListPrincipalThingsRequest(input *ListPrincipalThingsInput) (req *request.Request, output *ListPrincipalThingsOutput) { op := &request.Operation{ Name: opListPrincipalThings, @@ -3459,9 +3374,8 @@ func (c *IoT) ListPrincipalThingsRequest(input *ListPrincipalThingsInput) (req * input = &ListPrincipalThingsInput{} } - req = c.newRequest(op, input, output) output = &ListPrincipalThingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3477,22 +3391,22 @@ func (c *IoT) ListPrincipalThingsRequest(input *ListPrincipalThingsInput) (req * // API operation ListPrincipalThings for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // func (c *IoT) ListPrincipalThings(input *ListPrincipalThingsInput) (*ListPrincipalThingsOutput, error) { @@ -3526,7 +3440,6 @@ const opListThingPrincipals = "ListThingPrincipals" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) ListThingPrincipalsRequest(input *ListThingPrincipalsInput) (req *request.Request, output *ListThingPrincipalsOutput) { op := &request.Operation{ Name: opListThingPrincipals, @@ -3538,9 +3451,8 @@ func (c *IoT) ListThingPrincipalsRequest(input *ListThingPrincipalsInput) (req * input = &ListThingPrincipalsInput{} } - req = c.newRequest(op, input, output) output = &ListThingPrincipalsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3556,22 +3468,22 @@ func (c *IoT) ListThingPrincipalsRequest(input *ListThingPrincipalsInput) (req * // API operation ListThingPrincipals for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // func (c *IoT) ListThingPrincipals(input *ListThingPrincipalsInput) (*ListThingPrincipalsOutput, error) { @@ -3605,7 +3517,6 @@ const opListThingTypes = "ListThingTypes" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) ListThingTypesRequest(input *ListThingTypesInput) (req *request.Request, output *ListThingTypesOutput) { op := &request.Operation{ Name: opListThingTypes, @@ -3617,9 +3528,8 @@ func (c *IoT) ListThingTypesRequest(input *ListThingTypesInput) (req *request.Re input = &ListThingTypesInput{} } - req = c.newRequest(op, input, output) output = &ListThingTypesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3635,19 +3545,19 @@ func (c *IoT) ListThingTypesRequest(input *ListThingTypesInput) (req *request.Re // API operation ListThingTypes for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) ListThingTypes(input *ListThingTypesInput) (*ListThingTypesOutput, error) { @@ -3681,7 +3591,6 @@ const opListThings = "ListThings" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) ListThingsRequest(input *ListThingsInput) (req *request.Request, output *ListThingsOutput) { op := &request.Operation{ Name: opListThings, @@ -3693,9 +3602,8 @@ func (c *IoT) ListThingsRequest(input *ListThingsInput) (req *request.Request, o input = &ListThingsInput{} } - req = c.newRequest(op, input, output) output = &ListThingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3714,19 +3622,19 @@ func (c *IoT) ListThingsRequest(input *ListThingsInput) (req *request.Request, o // API operation ListThings for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) ListThings(input *ListThingsInput) (*ListThingsOutput, error) { @@ -3760,7 +3668,6 @@ const opListTopicRules = "ListTopicRules" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) ListTopicRulesRequest(input *ListTopicRulesInput) (req *request.Request, output *ListTopicRulesOutput) { op := &request.Operation{ Name: opListTopicRules, @@ -3772,9 +3679,8 @@ func (c *IoT) ListTopicRulesRequest(input *ListTopicRulesInput) (req *request.Re input = &ListTopicRulesInput{} } - req = c.newRequest(op, input, output) output = &ListTopicRulesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3790,13 +3696,13 @@ func (c *IoT) ListTopicRulesRequest(input *ListTopicRulesInput) (req *request.Re // API operation ListTopicRules for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // An unexpected error has occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // func (c *IoT) ListTopicRules(input *ListTopicRulesInput) (*ListTopicRulesOutput, error) { @@ -3830,7 +3736,6 @@ const opRegisterCACertificate = "RegisterCACertificate" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) RegisterCACertificateRequest(input *RegisterCACertificateInput) (req *request.Request, output *RegisterCACertificateOutput) { op := &request.Operation{ Name: opRegisterCACertificate, @@ -3842,9 +3747,8 @@ func (c *IoT) RegisterCACertificateRequest(input *RegisterCACertificateInput) (r input = &RegisterCACertificateInput{} } - req = c.newRequest(op, input, output) output = &RegisterCACertificateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3866,31 +3770,31 @@ func (c *IoT) RegisterCACertificateRequest(input *RegisterCACertificateInput) (r // API operation RegisterCACertificate for usage and error information. // // Returned Error Codes: -// * ResourceAlreadyExistsException +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" // The resource already exists. // -// * RegistrationCodeValidationException +// * ErrCodeRegistrationCodeValidationException "RegistrationCodeValidationException" // The registration code is invalid. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * CertificateValidationException +// * ErrCodeCertificateValidationException "CertificateValidationException" // The certificate is invalid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The number of attached entities exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) RegisterCACertificate(input *RegisterCACertificateInput) (*RegisterCACertificateOutput, error) { @@ -3924,7 +3828,6 @@ const opRegisterCertificate = "RegisterCertificate" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) RegisterCertificateRequest(input *RegisterCertificateInput) (req *request.Request, output *RegisterCertificateOutput) { op := &request.Operation{ Name: opRegisterCertificate, @@ -3936,9 +3839,8 @@ func (c *IoT) RegisterCertificateRequest(input *RegisterCertificateInput) (req * input = &RegisterCertificateInput{} } - req = c.newRequest(op, input, output) output = &RegisterCertificateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3956,33 +3858,33 @@ func (c *IoT) RegisterCertificateRequest(input *RegisterCertificateInput) (req * // API operation RegisterCertificate for usage and error information. // // Returned Error Codes: -// * ResourceAlreadyExistsException +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" // The resource already exists. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * CertificateValidationException +// * ErrCodeCertificateValidationException "CertificateValidationException" // The certificate is invalid. // -// * CertificateStateException +// * ErrCodeCertificateStateException "CertificateStateException" // The certificate operation is not allowed. // -// * CertificateConflictException +// * ErrCodeCertificateConflictException "CertificateConflictException" // Unable to verify the CA certificate used to sign the device certificate you // are attempting to register. This is happens when you have registered more // than one CA certificate that has the same subject field and public key. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) RegisterCertificate(input *RegisterCertificateInput) (*RegisterCertificateOutput, error) { @@ -4016,7 +3918,6 @@ const opRejectCertificateTransfer = "RejectCertificateTransfer" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) RejectCertificateTransferRequest(input *RejectCertificateTransferInput) (req *request.Request, output *RejectCertificateTransferOutput) { op := &request.Operation{ Name: opRejectCertificateTransfer, @@ -4028,11 +3929,10 @@ func (c *IoT) RejectCertificateTransferRequest(input *RejectCertificateTransferI input = &RejectCertificateTransferInput{} } + output = &RejectCertificateTransferOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RejectCertificateTransferOutput{} - req.Data = output return } @@ -4044,9 +3944,9 @@ func (c *IoT) RejectCertificateTransferRequest(input *RejectCertificateTransferI // To check for pending certificate transfers, call ListCertificates to enumerate // your certificates. // -// This operation can only be called by the transfer destination. After it -// is called, the certificate will be returned to the source's account in the -// INACTIVE state. +// This operation can only be called by the transfer destination. After it is +// called, the certificate will be returned to the source's account in the INACTIVE +// state. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4056,26 +3956,26 @@ func (c *IoT) RejectCertificateTransferRequest(input *RejectCertificateTransferI // API operation RejectCertificateTransfer for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * TransferAlreadyCompletedException +// * ErrCodeTransferAlreadyCompletedException "TransferAlreadyCompletedException" // You can't revert the certificate transfer because the transfer is already // complete. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) RejectCertificateTransfer(input *RejectCertificateTransferInput) (*RejectCertificateTransferOutput, error) { @@ -4109,7 +4009,6 @@ const opReplaceTopicRule = "ReplaceTopicRule" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) ReplaceTopicRuleRequest(input *ReplaceTopicRuleInput) (req *request.Request, output *ReplaceTopicRuleOutput) { op := &request.Operation{ Name: opReplaceTopicRule, @@ -4121,11 +4020,10 @@ func (c *IoT) ReplaceTopicRuleRequest(input *ReplaceTopicRuleInput) (req *reques input = &ReplaceTopicRuleInput{} } + output = &ReplaceTopicRuleOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ReplaceTopicRuleOutput{} - req.Data = output return } @@ -4143,19 +4041,19 @@ func (c *IoT) ReplaceTopicRuleRequest(input *ReplaceTopicRuleInput) (req *reques // API operation ReplaceTopicRule for usage and error information. // // Returned Error Codes: -// * SqlParseException +// * ErrCodeSqlParseException "SqlParseException" // The Rule-SQL expression can't be parsed correctly. // -// * InternalException +// * ErrCodeInternalException "InternalException" // An unexpected error has occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // func (c *IoT) ReplaceTopicRule(input *ReplaceTopicRuleInput) (*ReplaceTopicRuleOutput, error) { @@ -4189,7 +4087,6 @@ const opSetDefaultPolicyVersion = "SetDefaultPolicyVersion" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) SetDefaultPolicyVersionRequest(input *SetDefaultPolicyVersionInput) (req *request.Request, output *SetDefaultPolicyVersionOutput) { op := &request.Operation{ Name: opSetDefaultPolicyVersion, @@ -4201,11 +4098,10 @@ func (c *IoT) SetDefaultPolicyVersionRequest(input *SetDefaultPolicyVersionInput input = &SetDefaultPolicyVersionInput{} } + output = &SetDefaultPolicyVersionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetDefaultPolicyVersionOutput{} - req.Data = output return } @@ -4224,22 +4120,22 @@ func (c *IoT) SetDefaultPolicyVersionRequest(input *SetDefaultPolicyVersionInput // API operation SetDefaultPolicyVersion for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) SetDefaultPolicyVersion(input *SetDefaultPolicyVersionInput) (*SetDefaultPolicyVersionOutput, error) { @@ -4273,7 +4169,6 @@ const opSetLoggingOptions = "SetLoggingOptions" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) SetLoggingOptionsRequest(input *SetLoggingOptionsInput) (req *request.Request, output *SetLoggingOptionsOutput) { op := &request.Operation{ Name: opSetLoggingOptions, @@ -4285,11 +4180,10 @@ func (c *IoT) SetLoggingOptionsRequest(input *SetLoggingOptionsInput) (req *requ input = &SetLoggingOptionsInput{} } + output = &SetLoggingOptionsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetLoggingOptionsOutput{} - req.Data = output return } @@ -4305,13 +4199,13 @@ func (c *IoT) SetLoggingOptionsRequest(input *SetLoggingOptionsInput) (req *requ // API operation SetLoggingOptions for usage and error information. // // Returned Error Codes: -// * InternalException +// * ErrCodeInternalException "InternalException" // An unexpected error has occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // func (c *IoT) SetLoggingOptions(input *SetLoggingOptionsInput) (*SetLoggingOptionsOutput, error) { @@ -4345,7 +4239,6 @@ const opTransferCertificate = "TransferCertificate" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) TransferCertificateRequest(input *TransferCertificateInput) (req *request.Request, output *TransferCertificateOutput) { op := &request.Operation{ Name: opTransferCertificate, @@ -4357,9 +4250,8 @@ func (c *IoT) TransferCertificateRequest(input *TransferCertificateInput) (req * input = &TransferCertificateInput{} } - req = c.newRequest(op, input, output) output = &TransferCertificateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4369,8 +4261,8 @@ func (c *IoT) TransferCertificateRequest(input *TransferCertificateInput) (req * // // You can cancel the transfer until it is acknowledged by the recipient. // -// No notification is sent to the transfer destination's account. It is up -// to the caller to notify the transfer target. +// No notification is sent to the transfer destination's account. It is up to +// the caller to notify the transfer target. // // The certificate being transferred must not be in the ACTIVE state. You can // use the UpdateCertificate API to deactivate it. @@ -4386,29 +4278,29 @@ func (c *IoT) TransferCertificateRequest(input *TransferCertificateInput) (req * // API operation TransferCertificate for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * CertificateStateException +// * ErrCodeCertificateStateException "CertificateStateException" // The certificate operation is not allowed. // -// * TransferConflictException +// * ErrCodeTransferConflictException "TransferConflictException" // You can't transfer the certificate because authorization policies are still // attached. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) TransferCertificate(input *TransferCertificateInput) (*TransferCertificateOutput, error) { @@ -4442,7 +4334,6 @@ const opUpdateCACertificate = "UpdateCACertificate" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) UpdateCACertificateRequest(input *UpdateCACertificateInput) (req *request.Request, output *UpdateCACertificateOutput) { op := &request.Operation{ Name: opUpdateCACertificate, @@ -4454,11 +4345,10 @@ func (c *IoT) UpdateCACertificateRequest(input *UpdateCACertificateInput) (req * input = &UpdateCACertificateInput{} } + output = &UpdateCACertificateOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateCACertificateOutput{} - req.Data = output return } @@ -4474,22 +4364,22 @@ func (c *IoT) UpdateCACertificateRequest(input *UpdateCACertificateInput) (req * // API operation UpdateCACertificate for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) UpdateCACertificate(input *UpdateCACertificateInput) (*UpdateCACertificateOutput, error) { @@ -4523,7 +4413,6 @@ const opUpdateCertificate = "UpdateCertificate" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) UpdateCertificateRequest(input *UpdateCertificateInput) (req *request.Request, output *UpdateCertificateOutput) { op := &request.Operation{ Name: opUpdateCertificate, @@ -4535,11 +4424,10 @@ func (c *IoT) UpdateCertificateRequest(input *UpdateCertificateInput) (req *requ input = &UpdateCertificateInput{} } + output = &UpdateCertificateOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateCertificateOutput{} - req.Data = output return } @@ -4547,9 +4435,8 @@ func (c *IoT) UpdateCertificateRequest(input *UpdateCertificateInput) (req *requ // // Updates the status of the specified certificate. This operation is idempotent. // -// Moving a certificate from the ACTIVE state (including REVOKED) will not -// disconnect currently connected devices, but these devices will be unable -// to reconnect. +// Moving a certificate from the ACTIVE state (including REVOKED) will not disconnect +// currently connected devices, but these devices will be unable to reconnect. // // The ACTIVE state is required to authenticate devices connecting to AWS IoT // using a certificate. @@ -4562,25 +4449,25 @@ func (c *IoT) UpdateCertificateRequest(input *UpdateCertificateInput) (req *requ // API operation UpdateCertificate for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * CertificateStateException +// * ErrCodeCertificateStateException "CertificateStateException" // The certificate operation is not allowed. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // func (c *IoT) UpdateCertificate(input *UpdateCertificateInput) (*UpdateCertificateOutput, error) { @@ -4614,7 +4501,6 @@ const opUpdateThing = "UpdateThing" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *IoT) UpdateThingRequest(input *UpdateThingInput) (req *request.Request, output *UpdateThingOutput) { op := &request.Operation{ Name: opUpdateThing, @@ -4626,9 +4512,8 @@ func (c *IoT) UpdateThingRequest(input *UpdateThingInput) (req *request.Request, input = &UpdateThingInput{} } - req = c.newRequest(op, input, output) output = &UpdateThingOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4644,26 +4529,26 @@ func (c *IoT) UpdateThingRequest(input *UpdateThingInput) (req *request.Request, // API operation UpdateThing for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * VersionConflictException +// * ErrCodeVersionConflictException "VersionConflictException" // An exception thrown when the version of a thing passed to a command is different // than the version specified with the --version parameter. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // func (c *IoT) UpdateThing(input *UpdateThingInput) (*UpdateThingOutput, error) { @@ -4711,6 +4596,18 @@ func (s *AcceptCertificateTransferInput) Validate() error { return nil } +// SetCertificateId sets the CertificateId field's value. +func (s *AcceptCertificateTransferInput) SetCertificateId(v string) *AcceptCertificateTransferInput { + s.CertificateId = &v + return s +} + +// SetSetAsActive sets the SetAsActive field's value. +func (s *AcceptCertificateTransferInput) SetSetAsActive(v bool) *AcceptCertificateTransferInput { + s.SetAsActive = &v + return s +} + type AcceptCertificateTransferOutput struct { _ struct{} `type:"structure"` } @@ -4848,6 +4745,78 @@ func (s *Action) Validate() error { return nil } +// SetCloudwatchAlarm sets the CloudwatchAlarm field's value. +func (s *Action) SetCloudwatchAlarm(v *CloudwatchAlarmAction) *Action { + s.CloudwatchAlarm = v + return s +} + +// SetCloudwatchMetric sets the CloudwatchMetric field's value. +func (s *Action) SetCloudwatchMetric(v *CloudwatchMetricAction) *Action { + s.CloudwatchMetric = v + return s +} + +// SetDynamoDB sets the DynamoDB field's value. +func (s *Action) SetDynamoDB(v *DynamoDBAction) *Action { + s.DynamoDB = v + return s +} + +// SetDynamoDBv2 sets the DynamoDBv2 field's value. +func (s *Action) SetDynamoDBv2(v *DynamoDBv2Action) *Action { + s.DynamoDBv2 = v + return s +} + +// SetElasticsearch sets the Elasticsearch field's value. +func (s *Action) SetElasticsearch(v *ElasticsearchAction) *Action { + s.Elasticsearch = v + return s +} + +// SetFirehose sets the Firehose field's value. +func (s *Action) SetFirehose(v *FirehoseAction) *Action { + s.Firehose = v + return s +} + +// SetKinesis sets the Kinesis field's value. +func (s *Action) SetKinesis(v *KinesisAction) *Action { + s.Kinesis = v + return s +} + +// SetLambda sets the Lambda field's value. +func (s *Action) SetLambda(v *LambdaAction) *Action { + s.Lambda = v + return s +} + +// SetRepublish sets the Republish field's value. +func (s *Action) SetRepublish(v *RepublishAction) *Action { + s.Republish = v + return s +} + +// SetS3 sets the S3 field's value. +func (s *Action) SetS3(v *S3Action) *Action { + s.S3 = v + return s +} + +// SetSns sets the Sns field's value. +func (s *Action) SetSns(v *SnsAction) *Action { + s.Sns = v + return s +} + +// SetSqs sets the Sqs field's value. +func (s *Action) SetSqs(v *SqsAction) *Action { + s.Sqs = v + return s +} + // The input for the AttachPrincipalPolicy operation. type AttachPrincipalPolicyInput struct { _ struct{} `type:"structure"` @@ -4893,6 +4862,18 @@ func (s *AttachPrincipalPolicyInput) Validate() error { return nil } +// SetPolicyName sets the PolicyName field's value. +func (s *AttachPrincipalPolicyInput) SetPolicyName(v string) *AttachPrincipalPolicyInput { + s.PolicyName = &v + return s +} + +// SetPrincipal sets the Principal field's value. +func (s *AttachPrincipalPolicyInput) SetPrincipal(v string) *AttachPrincipalPolicyInput { + s.Principal = &v + return s +} + type AttachPrincipalPolicyOutput struct { _ struct{} `type:"structure"` } @@ -4951,6 +4932,18 @@ func (s *AttachThingPrincipalInput) Validate() error { return nil } +// SetPrincipal sets the Principal field's value. +func (s *AttachThingPrincipalInput) SetPrincipal(v string) *AttachThingPrincipalInput { + s.Principal = &v + return s +} + +// SetThingName sets the ThingName field's value. +func (s *AttachThingPrincipalInput) SetThingName(v string) *AttachThingPrincipalInput { + s.ThingName = &v + return s +} + // The output from the AttachThingPrincipal operation. type AttachThingPrincipalOutput struct { _ struct{} `type:"structure"` @@ -4981,7 +4974,7 @@ type AttributePayload struct { // // To remove an attribute, call UpdateThing with an empty attribute value. // - // The merge attribute is only valid when calling UpdateThing. + // The merge attribute is only valid when calling UpdateThing. Merge *bool `locationName:"merge" type:"boolean"` } @@ -4995,6 +4988,18 @@ func (s AttributePayload) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *AttributePayload) SetAttributes(v map[string]*string) *AttributePayload { + s.Attributes = v + return s +} + +// SetMerge sets the Merge field's value. +func (s *AttributePayload) SetMerge(v bool) *AttributePayload { + s.Merge = &v + return s +} + // A CA certificate. type CACertificate struct { _ struct{} `type:"structure"` @@ -5024,6 +5029,30 @@ func (s CACertificate) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *CACertificate) SetCertificateArn(v string) *CACertificate { + s.CertificateArn = &v + return s +} + +// SetCertificateId sets the CertificateId field's value. +func (s *CACertificate) SetCertificateId(v string) *CACertificate { + s.CertificateId = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *CACertificate) SetCreationDate(v time.Time) *CACertificate { + s.CreationDate = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CACertificate) SetStatus(v string) *CACertificate { + s.Status = &v + return s +} + // Describes a CA certificate. type CACertificateDescription struct { _ struct{} `type:"structure"` @@ -5061,6 +5090,48 @@ func (s CACertificateDescription) GoString() string { return s.String() } +// SetAutoRegistrationStatus sets the AutoRegistrationStatus field's value. +func (s *CACertificateDescription) SetAutoRegistrationStatus(v string) *CACertificateDescription { + s.AutoRegistrationStatus = &v + return s +} + +// SetCertificateArn sets the CertificateArn field's value. +func (s *CACertificateDescription) SetCertificateArn(v string) *CACertificateDescription { + s.CertificateArn = &v + return s +} + +// SetCertificateId sets the CertificateId field's value. +func (s *CACertificateDescription) SetCertificateId(v string) *CACertificateDescription { + s.CertificateId = &v + return s +} + +// SetCertificatePem sets the CertificatePem field's value. +func (s *CACertificateDescription) SetCertificatePem(v string) *CACertificateDescription { + s.CertificatePem = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *CACertificateDescription) SetCreationDate(v time.Time) *CACertificateDescription { + s.CreationDate = &v + return s +} + +// SetOwnedBy sets the OwnedBy field's value. +func (s *CACertificateDescription) SetOwnedBy(v string) *CACertificateDescription { + s.OwnedBy = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CACertificateDescription) SetStatus(v string) *CACertificateDescription { + s.Status = &v + return s +} + // The input for the CancelCertificateTransfer operation. type CancelCertificateTransferInput struct { _ struct{} `type:"structure"` @@ -5097,6 +5168,12 @@ func (s *CancelCertificateTransferInput) Validate() error { return nil } +// SetCertificateId sets the CertificateId field's value. +func (s *CancelCertificateTransferInput) SetCertificateId(v string) *CancelCertificateTransferInput { + s.CertificateId = &v + return s +} + type CancelCertificateTransferOutput struct { _ struct{} `type:"structure"` } @@ -5140,6 +5217,30 @@ func (s Certificate) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *Certificate) SetCertificateArn(v string) *Certificate { + s.CertificateArn = &v + return s +} + +// SetCertificateId sets the CertificateId field's value. +func (s *Certificate) SetCertificateId(v string) *Certificate { + s.CertificateId = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *Certificate) SetCreationDate(v time.Time) *Certificate { + s.CreationDate = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Certificate) SetStatus(v string) *Certificate { + s.Status = &v + return s +} + // Describes a certificate. type CertificateDescription struct { _ struct{} `type:"structure"` @@ -5185,17 +5286,77 @@ func (s CertificateDescription) GoString() string { return s.String() } -// Describes an action that updates a CloudWatch alarm. -type CloudwatchAlarmAction struct { - _ struct{} `type:"structure"` +// SetCaCertificateId sets the CaCertificateId field's value. +func (s *CertificateDescription) SetCaCertificateId(v string) *CertificateDescription { + s.CaCertificateId = &v + return s +} - // The CloudWatch alarm name. - // - // AlarmName is a required field - AlarmName *string `locationName:"alarmName" type:"string" required:"true"` +// SetCertificateArn sets the CertificateArn field's value. +func (s *CertificateDescription) SetCertificateArn(v string) *CertificateDescription { + s.CertificateArn = &v + return s +} - // The IAM role that allows access to the CloudWatch alarm. - // +// SetCertificateId sets the CertificateId field's value. +func (s *CertificateDescription) SetCertificateId(v string) *CertificateDescription { + s.CertificateId = &v + return s +} + +// SetCertificatePem sets the CertificatePem field's value. +func (s *CertificateDescription) SetCertificatePem(v string) *CertificateDescription { + s.CertificatePem = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *CertificateDescription) SetCreationDate(v time.Time) *CertificateDescription { + s.CreationDate = &v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *CertificateDescription) SetLastModifiedDate(v time.Time) *CertificateDescription { + s.LastModifiedDate = &v + return s +} + +// SetOwnedBy sets the OwnedBy field's value. +func (s *CertificateDescription) SetOwnedBy(v string) *CertificateDescription { + s.OwnedBy = &v + return s +} + +// SetPreviousOwnedBy sets the PreviousOwnedBy field's value. +func (s *CertificateDescription) SetPreviousOwnedBy(v string) *CertificateDescription { + s.PreviousOwnedBy = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CertificateDescription) SetStatus(v string) *CertificateDescription { + s.Status = &v + return s +} + +// SetTransferData sets the TransferData field's value. +func (s *CertificateDescription) SetTransferData(v *TransferData) *CertificateDescription { + s.TransferData = v + return s +} + +// Describes an action that updates a CloudWatch alarm. +type CloudwatchAlarmAction struct { + _ struct{} `type:"structure"` + + // The CloudWatch alarm name. + // + // AlarmName is a required field + AlarmName *string `locationName:"alarmName" type:"string" required:"true"` + + // The IAM role that allows access to the CloudWatch alarm. + // // RoleArn is a required field RoleArn *string `locationName:"roleArn" type:"string" required:"true"` @@ -5242,6 +5403,30 @@ func (s *CloudwatchAlarmAction) Validate() error { return nil } +// SetAlarmName sets the AlarmName field's value. +func (s *CloudwatchAlarmAction) SetAlarmName(v string) *CloudwatchAlarmAction { + s.AlarmName = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *CloudwatchAlarmAction) SetRoleArn(v string) *CloudwatchAlarmAction { + s.RoleArn = &v + return s +} + +// SetStateReason sets the StateReason field's value. +func (s *CloudwatchAlarmAction) SetStateReason(v string) *CloudwatchAlarmAction { + s.StateReason = &v + return s +} + +// SetStateValue sets the StateValue field's value. +func (s *CloudwatchAlarmAction) SetStateValue(v string) *CloudwatchAlarmAction { + s.StateValue = &v + return s +} + // Describes an action that captures a CloudWatch metric. type CloudwatchMetricAction struct { _ struct{} `type:"structure"` @@ -5311,6 +5496,42 @@ func (s *CloudwatchMetricAction) Validate() error { return nil } +// SetMetricName sets the MetricName field's value. +func (s *CloudwatchMetricAction) SetMetricName(v string) *CloudwatchMetricAction { + s.MetricName = &v + return s +} + +// SetMetricNamespace sets the MetricNamespace field's value. +func (s *CloudwatchMetricAction) SetMetricNamespace(v string) *CloudwatchMetricAction { + s.MetricNamespace = &v + return s +} + +// SetMetricTimestamp sets the MetricTimestamp field's value. +func (s *CloudwatchMetricAction) SetMetricTimestamp(v string) *CloudwatchMetricAction { + s.MetricTimestamp = &v + return s +} + +// SetMetricUnit sets the MetricUnit field's value. +func (s *CloudwatchMetricAction) SetMetricUnit(v string) *CloudwatchMetricAction { + s.MetricUnit = &v + return s +} + +// SetMetricValue sets the MetricValue field's value. +func (s *CloudwatchMetricAction) SetMetricValue(v string) *CloudwatchMetricAction { + s.MetricValue = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *CloudwatchMetricAction) SetRoleArn(v string) *CloudwatchMetricAction { + s.RoleArn = &v + return s +} + // The input for the CreateCertificateFromCsr operation. type CreateCertificateFromCsrInput struct { _ struct{} `type:"structure"` @@ -5350,6 +5571,18 @@ func (s *CreateCertificateFromCsrInput) Validate() error { return nil } +// SetCertificateSigningRequest sets the CertificateSigningRequest field's value. +func (s *CreateCertificateFromCsrInput) SetCertificateSigningRequest(v string) *CreateCertificateFromCsrInput { + s.CertificateSigningRequest = &v + return s +} + +// SetSetAsActive sets the SetAsActive field's value. +func (s *CreateCertificateFromCsrInput) SetSetAsActive(v bool) *CreateCertificateFromCsrInput { + s.SetAsActive = &v + return s +} + // The output from the CreateCertificateFromCsr operation. type CreateCertificateFromCsrOutput struct { _ struct{} `type:"structure"` @@ -5376,6 +5609,24 @@ func (s CreateCertificateFromCsrOutput) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *CreateCertificateFromCsrOutput) SetCertificateArn(v string) *CreateCertificateFromCsrOutput { + s.CertificateArn = &v + return s +} + +// SetCertificateId sets the CertificateId field's value. +func (s *CreateCertificateFromCsrOutput) SetCertificateId(v string) *CreateCertificateFromCsrOutput { + s.CertificateId = &v + return s +} + +// SetCertificatePem sets the CertificatePem field's value. +func (s *CreateCertificateFromCsrOutput) SetCertificatePem(v string) *CreateCertificateFromCsrOutput { + s.CertificatePem = &v + return s +} + // The input for the CreateKeysAndCertificate operation. type CreateKeysAndCertificateInput struct { _ struct{} `type:"structure"` @@ -5394,6 +5645,12 @@ func (s CreateKeysAndCertificateInput) GoString() string { return s.String() } +// SetSetAsActive sets the SetAsActive field's value. +func (s *CreateKeysAndCertificateInput) SetSetAsActive(v bool) *CreateKeysAndCertificateInput { + s.SetAsActive = &v + return s +} + // The output of the CreateKeysAndCertificate operation. type CreateKeysAndCertificateOutput struct { _ struct{} `type:"structure"` @@ -5422,6 +5679,30 @@ func (s CreateKeysAndCertificateOutput) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *CreateKeysAndCertificateOutput) SetCertificateArn(v string) *CreateKeysAndCertificateOutput { + s.CertificateArn = &v + return s +} + +// SetCertificateId sets the CertificateId field's value. +func (s *CreateKeysAndCertificateOutput) SetCertificateId(v string) *CreateKeysAndCertificateOutput { + s.CertificateId = &v + return s +} + +// SetCertificatePem sets the CertificatePem field's value. +func (s *CreateKeysAndCertificateOutput) SetCertificatePem(v string) *CreateKeysAndCertificateOutput { + s.CertificatePem = &v + return s +} + +// SetKeyPair sets the KeyPair field's value. +func (s *CreateKeysAndCertificateOutput) SetKeyPair(v *KeyPair) *CreateKeysAndCertificateOutput { + s.KeyPair = v + return s +} + // The input for the CreatePolicy operation. type CreatePolicyInput struct { _ struct{} `type:"structure"` @@ -5467,6 +5748,18 @@ func (s *CreatePolicyInput) Validate() error { return nil } +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *CreatePolicyInput) SetPolicyDocument(v string) *CreatePolicyInput { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *CreatePolicyInput) SetPolicyName(v string) *CreatePolicyInput { + s.PolicyName = &v + return s +} + // The output from the CreatePolicy operation. type CreatePolicyOutput struct { _ struct{} `type:"structure"` @@ -5494,6 +5787,30 @@ func (s CreatePolicyOutput) GoString() string { return s.String() } +// SetPolicyArn sets the PolicyArn field's value. +func (s *CreatePolicyOutput) SetPolicyArn(v string) *CreatePolicyOutput { + s.PolicyArn = &v + return s +} + +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *CreatePolicyOutput) SetPolicyDocument(v string) *CreatePolicyOutput { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *CreatePolicyOutput) SetPolicyName(v string) *CreatePolicyOutput { + s.PolicyName = &v + return s +} + +// SetPolicyVersionId sets the PolicyVersionId field's value. +func (s *CreatePolicyOutput) SetPolicyVersionId(v string) *CreatePolicyOutput { + s.PolicyVersionId = &v + return s +} + // The input for the CreatePolicyVersion operation. type CreatePolicyVersionInput struct { _ struct{} `type:"structure"` @@ -5544,6 +5861,24 @@ func (s *CreatePolicyVersionInput) Validate() error { return nil } +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *CreatePolicyVersionInput) SetPolicyDocument(v string) *CreatePolicyVersionInput { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *CreatePolicyVersionInput) SetPolicyName(v string) *CreatePolicyVersionInput { + s.PolicyName = &v + return s +} + +// SetSetAsDefault sets the SetAsDefault field's value. +func (s *CreatePolicyVersionInput) SetSetAsDefault(v bool) *CreatePolicyVersionInput { + s.SetAsDefault = &v + return s +} + // The output of the CreatePolicyVersion operation. type CreatePolicyVersionOutput struct { _ struct{} `type:"structure"` @@ -5571,6 +5906,30 @@ func (s CreatePolicyVersionOutput) GoString() string { return s.String() } +// SetIsDefaultVersion sets the IsDefaultVersion field's value. +func (s *CreatePolicyVersionOutput) SetIsDefaultVersion(v bool) *CreatePolicyVersionOutput { + s.IsDefaultVersion = &v + return s +} + +// SetPolicyArn sets the PolicyArn field's value. +func (s *CreatePolicyVersionOutput) SetPolicyArn(v string) *CreatePolicyVersionOutput { + s.PolicyArn = &v + return s +} + +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *CreatePolicyVersionOutput) SetPolicyDocument(v string) *CreatePolicyVersionOutput { + s.PolicyDocument = &v + return s +} + +// SetPolicyVersionId sets the PolicyVersionId field's value. +func (s *CreatePolicyVersionOutput) SetPolicyVersionId(v string) *CreatePolicyVersionOutput { + s.PolicyVersionId = &v + return s +} + // The input for the CreateThing operation. type CreateThingInput struct { _ struct{} `type:"structure"` @@ -5619,6 +5978,24 @@ func (s *CreateThingInput) Validate() error { return nil } +// SetAttributePayload sets the AttributePayload field's value. +func (s *CreateThingInput) SetAttributePayload(v *AttributePayload) *CreateThingInput { + s.AttributePayload = v + return s +} + +// SetThingName sets the ThingName field's value. +func (s *CreateThingInput) SetThingName(v string) *CreateThingInput { + s.ThingName = &v + return s +} + +// SetThingTypeName sets the ThingTypeName field's value. +func (s *CreateThingInput) SetThingTypeName(v string) *CreateThingInput { + s.ThingTypeName = &v + return s +} + // The output of the CreateThing operation. type CreateThingOutput struct { _ struct{} `type:"structure"` @@ -5640,6 +6017,18 @@ func (s CreateThingOutput) GoString() string { return s.String() } +// SetThingArn sets the ThingArn field's value. +func (s *CreateThingOutput) SetThingArn(v string) *CreateThingOutput { + s.ThingArn = &v + return s +} + +// SetThingName sets the ThingName field's value. +func (s *CreateThingOutput) SetThingName(v string) *CreateThingOutput { + s.ThingName = &v + return s +} + // The input for the CreateThingType operation. type CreateThingTypeInput struct { _ struct{} `type:"structure"` @@ -5681,6 +6070,18 @@ func (s *CreateThingTypeInput) Validate() error { return nil } +// SetThingTypeName sets the ThingTypeName field's value. +func (s *CreateThingTypeInput) SetThingTypeName(v string) *CreateThingTypeInput { + s.ThingTypeName = &v + return s +} + +// SetThingTypeProperties sets the ThingTypeProperties field's value. +func (s *CreateThingTypeInput) SetThingTypeProperties(v *ThingTypeProperties) *CreateThingTypeInput { + s.ThingTypeProperties = v + return s +} + // The output of the CreateThingType operation. type CreateThingTypeOutput struct { _ struct{} `type:"structure"` @@ -5702,6 +6103,18 @@ func (s CreateThingTypeOutput) GoString() string { return s.String() } +// SetThingTypeArn sets the ThingTypeArn field's value. +func (s *CreateThingTypeOutput) SetThingTypeArn(v string) *CreateThingTypeOutput { + s.ThingTypeArn = &v + return s +} + +// SetThingTypeName sets the ThingTypeName field's value. +func (s *CreateThingTypeOutput) SetThingTypeName(v string) *CreateThingTypeOutput { + s.ThingTypeName = &v + return s +} + // The input for the CreateTopicRule operation. type CreateTopicRuleInput struct { _ struct{} `type:"structure" payload:"TopicRulePayload"` @@ -5751,6 +6164,18 @@ func (s *CreateTopicRuleInput) Validate() error { return nil } +// SetRuleName sets the RuleName field's value. +func (s *CreateTopicRuleInput) SetRuleName(v string) *CreateTopicRuleInput { + s.RuleName = &v + return s +} + +// SetTopicRulePayload sets the TopicRulePayload field's value. +func (s *CreateTopicRuleInput) SetTopicRulePayload(v *TopicRulePayload) *CreateTopicRuleInput { + s.TopicRulePayload = v + return s +} + type CreateTopicRuleOutput struct { _ struct{} `type:"structure"` } @@ -5801,6 +6226,12 @@ func (s *DeleteCACertificateInput) Validate() error { return nil } +// SetCertificateId sets the CertificateId field's value. +func (s *DeleteCACertificateInput) SetCertificateId(v string) *DeleteCACertificateInput { + s.CertificateId = &v + return s +} + // The output for the DeleteCACertificate operation. type DeleteCACertificateOutput struct { _ struct{} `type:"structure"` @@ -5852,6 +6283,12 @@ func (s *DeleteCertificateInput) Validate() error { return nil } +// SetCertificateId sets the CertificateId field's value. +func (s *DeleteCertificateInput) SetCertificateId(v string) *DeleteCertificateInput { + s.CertificateId = &v + return s +} + type DeleteCertificateOutput struct { _ struct{} `type:"structure"` } @@ -5902,6 +6339,12 @@ func (s *DeletePolicyInput) Validate() error { return nil } +// SetPolicyName sets the PolicyName field's value. +func (s *DeletePolicyInput) SetPolicyName(v string) *DeletePolicyInput { + s.PolicyName = &v + return s +} + type DeletePolicyOutput struct { _ struct{} `type:"structure"` } @@ -5960,6 +6403,18 @@ func (s *DeletePolicyVersionInput) Validate() error { return nil } +// SetPolicyName sets the PolicyName field's value. +func (s *DeletePolicyVersionInput) SetPolicyName(v string) *DeletePolicyVersionInput { + s.PolicyName = &v + return s +} + +// SetPolicyVersionId sets the PolicyVersionId field's value. +func (s *DeletePolicyVersionInput) SetPolicyVersionId(v string) *DeletePolicyVersionInput { + s.PolicyVersionId = &v + return s +} + type DeletePolicyVersionOutput struct { _ struct{} `type:"structure"` } @@ -6045,6 +6500,18 @@ func (s *DeleteThingInput) Validate() error { return nil } +// SetExpectedVersion sets the ExpectedVersion field's value. +func (s *DeleteThingInput) SetExpectedVersion(v int64) *DeleteThingInput { + s.ExpectedVersion = &v + return s +} + +// SetThingName sets the ThingName field's value. +func (s *DeleteThingInput) SetThingName(v string) *DeleteThingInput { + s.ThingName = &v + return s +} + // The output of the DeleteThing operation. type DeleteThingOutput struct { _ struct{} `type:"structure"` @@ -6096,6 +6563,12 @@ func (s *DeleteThingTypeInput) Validate() error { return nil } +// SetThingTypeName sets the ThingTypeName field's value. +func (s *DeleteThingTypeInput) SetThingTypeName(v string) *DeleteThingTypeInput { + s.ThingTypeName = &v + return s +} + // The output for the DeleteThingType operation. type DeleteThingTypeOutput struct { _ struct{} `type:"structure"` @@ -6147,6 +6620,12 @@ func (s *DeleteTopicRuleInput) Validate() error { return nil } +// SetRuleName sets the RuleName field's value. +func (s *DeleteTopicRuleInput) SetRuleName(v string) *DeleteTopicRuleInput { + s.RuleName = &v + return s +} + type DeleteTopicRuleOutput struct { _ struct{} `type:"structure"` } @@ -6201,6 +6680,18 @@ func (s *DeprecateThingTypeInput) Validate() error { return nil } +// SetThingTypeName sets the ThingTypeName field's value. +func (s *DeprecateThingTypeInput) SetThingTypeName(v string) *DeprecateThingTypeInput { + s.ThingTypeName = &v + return s +} + +// SetUndoDeprecate sets the UndoDeprecate field's value. +func (s *DeprecateThingTypeInput) SetUndoDeprecate(v bool) *DeprecateThingTypeInput { + s.UndoDeprecate = &v + return s +} + // The output for the DeprecateThingType operation. type DeprecateThingTypeOutput struct { _ struct{} `type:"structure"` @@ -6252,6 +6743,12 @@ func (s *DescribeCACertificateInput) Validate() error { return nil } +// SetCertificateId sets the CertificateId field's value. +func (s *DescribeCACertificateInput) SetCertificateId(v string) *DescribeCACertificateInput { + s.CertificateId = &v + return s +} + // The output from the DescribeCACertificate operation. type DescribeCACertificateOutput struct { _ struct{} `type:"structure"` @@ -6270,6 +6767,12 @@ func (s DescribeCACertificateOutput) GoString() string { return s.String() } +// SetCertificateDescription sets the CertificateDescription field's value. +func (s *DescribeCACertificateOutput) SetCertificateDescription(v *CACertificateDescription) *DescribeCACertificateOutput { + s.CertificateDescription = v + return s +} + // The input for the DescribeCertificate operation. type DescribeCertificateInput struct { _ struct{} `type:"structure"` @@ -6306,6 +6809,12 @@ func (s *DescribeCertificateInput) Validate() error { return nil } +// SetCertificateId sets the CertificateId field's value. +func (s *DescribeCertificateInput) SetCertificateId(v string) *DescribeCertificateInput { + s.CertificateId = &v + return s +} + // The output of the DescribeCertificate operation. type DescribeCertificateOutput struct { _ struct{} `type:"structure"` @@ -6324,6 +6833,12 @@ func (s DescribeCertificateOutput) GoString() string { return s.String() } +// SetCertificateDescription sets the CertificateDescription field's value. +func (s *DescribeCertificateOutput) SetCertificateDescription(v *CertificateDescription) *DescribeCertificateOutput { + s.CertificateDescription = v + return s +} + // The input for the DescribeEndpoint operation. type DescribeEndpointInput struct { _ struct{} `type:"structure"` @@ -6357,6 +6872,12 @@ func (s DescribeEndpointOutput) GoString() string { return s.String() } +// SetEndpointAddress sets the EndpointAddress field's value. +func (s *DescribeEndpointOutput) SetEndpointAddress(v string) *DescribeEndpointOutput { + s.EndpointAddress = &v + return s +} + // The input for the DescribeThing operation. type DescribeThingInput struct { _ struct{} `type:"structure"` @@ -6393,6 +6914,12 @@ func (s *DescribeThingInput) Validate() error { return nil } +// SetThingName sets the ThingName field's value. +func (s *DescribeThingInput) SetThingName(v string) *DescribeThingInput { + s.ThingName = &v + return s +} + // The output from the DescribeThing operation. type DescribeThingOutput struct { _ struct{} `type:"structure"` @@ -6411,9 +6938,9 @@ type DescribeThingOutput struct { // The current version of the thing record in the registry. // - // To avoid unintentional changes to the information in the registry, you - // can pass the version information in the expectedVersion parameter of the - // UpdateThing and DeleteThing calls. + // To avoid unintentional changes to the information in the registry, you can + // pass the version information in the expectedVersion parameter of the UpdateThing + // and DeleteThing calls. Version *int64 `locationName:"version" type:"long"` } @@ -6427,6 +6954,36 @@ func (s DescribeThingOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *DescribeThingOutput) SetAttributes(v map[string]*string) *DescribeThingOutput { + s.Attributes = v + return s +} + +// SetDefaultClientId sets the DefaultClientId field's value. +func (s *DescribeThingOutput) SetDefaultClientId(v string) *DescribeThingOutput { + s.DefaultClientId = &v + return s +} + +// SetThingName sets the ThingName field's value. +func (s *DescribeThingOutput) SetThingName(v string) *DescribeThingOutput { + s.ThingName = &v + return s +} + +// SetThingTypeName sets the ThingTypeName field's value. +func (s *DescribeThingOutput) SetThingTypeName(v string) *DescribeThingOutput { + s.ThingTypeName = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *DescribeThingOutput) SetVersion(v int64) *DescribeThingOutput { + s.Version = &v + return s +} + // The input for the DescribeThingType operation. type DescribeThingTypeInput struct { _ struct{} `type:"structure"` @@ -6463,6 +7020,12 @@ func (s *DescribeThingTypeInput) Validate() error { return nil } +// SetThingTypeName sets the ThingTypeName field's value. +func (s *DescribeThingTypeInput) SetThingTypeName(v string) *DescribeThingTypeInput { + s.ThingTypeName = &v + return s +} + // The output for the DescribeThingType operation. type DescribeThingTypeOutput struct { _ struct{} `type:"structure"` @@ -6490,6 +7053,24 @@ func (s DescribeThingTypeOutput) GoString() string { return s.String() } +// SetThingTypeMetadata sets the ThingTypeMetadata field's value. +func (s *DescribeThingTypeOutput) SetThingTypeMetadata(v *ThingTypeMetadata) *DescribeThingTypeOutput { + s.ThingTypeMetadata = v + return s +} + +// SetThingTypeName sets the ThingTypeName field's value. +func (s *DescribeThingTypeOutput) SetThingTypeName(v string) *DescribeThingTypeOutput { + s.ThingTypeName = &v + return s +} + +// SetThingTypeProperties sets the ThingTypeProperties field's value. +func (s *DescribeThingTypeOutput) SetThingTypeProperties(v *ThingTypeProperties) *DescribeThingTypeOutput { + s.ThingTypeProperties = v + return s +} + // The input for the DetachPrincipalPolicy operation. type DetachPrincipalPolicyInput struct { _ struct{} `type:"structure"` @@ -6537,6 +7118,18 @@ func (s *DetachPrincipalPolicyInput) Validate() error { return nil } +// SetPolicyName sets the PolicyName field's value. +func (s *DetachPrincipalPolicyInput) SetPolicyName(v string) *DetachPrincipalPolicyInput { + s.PolicyName = &v + return s +} + +// SetPrincipal sets the Principal field's value. +func (s *DetachPrincipalPolicyInput) SetPrincipal(v string) *DetachPrincipalPolicyInput { + s.Principal = &v + return s +} + type DetachPrincipalPolicyOutput struct { _ struct{} `type:"structure"` } @@ -6597,6 +7190,18 @@ func (s *DetachThingPrincipalInput) Validate() error { return nil } +// SetPrincipal sets the Principal field's value. +func (s *DetachThingPrincipalInput) SetPrincipal(v string) *DetachThingPrincipalInput { + s.Principal = &v + return s +} + +// SetThingName sets the ThingName field's value. +func (s *DetachThingPrincipalInput) SetThingName(v string) *DetachThingPrincipalInput { + s.ThingName = &v + return s +} + // The output from the DetachThingPrincipal operation. type DetachThingPrincipalOutput struct { _ struct{} `type:"structure"` @@ -6648,6 +7253,12 @@ func (s *DisableTopicRuleInput) Validate() error { return nil } +// SetRuleName sets the RuleName field's value. +func (s *DisableTopicRuleInput) SetRuleName(v string) *DisableTopicRuleInput { + s.RuleName = &v + return s +} + type DisableTopicRuleOutput struct { _ struct{} `type:"structure"` } @@ -6755,6 +7366,66 @@ func (s *DynamoDBAction) Validate() error { return nil } +// SetHashKeyField sets the HashKeyField field's value. +func (s *DynamoDBAction) SetHashKeyField(v string) *DynamoDBAction { + s.HashKeyField = &v + return s +} + +// SetHashKeyType sets the HashKeyType field's value. +func (s *DynamoDBAction) SetHashKeyType(v string) *DynamoDBAction { + s.HashKeyType = &v + return s +} + +// SetHashKeyValue sets the HashKeyValue field's value. +func (s *DynamoDBAction) SetHashKeyValue(v string) *DynamoDBAction { + s.HashKeyValue = &v + return s +} + +// SetOperation sets the Operation field's value. +func (s *DynamoDBAction) SetOperation(v string) *DynamoDBAction { + s.Operation = &v + return s +} + +// SetPayloadField sets the PayloadField field's value. +func (s *DynamoDBAction) SetPayloadField(v string) *DynamoDBAction { + s.PayloadField = &v + return s +} + +// SetRangeKeyField sets the RangeKeyField field's value. +func (s *DynamoDBAction) SetRangeKeyField(v string) *DynamoDBAction { + s.RangeKeyField = &v + return s +} + +// SetRangeKeyType sets the RangeKeyType field's value. +func (s *DynamoDBAction) SetRangeKeyType(v string) *DynamoDBAction { + s.RangeKeyType = &v + return s +} + +// SetRangeKeyValue sets the RangeKeyValue field's value. +func (s *DynamoDBAction) SetRangeKeyValue(v string) *DynamoDBAction { + s.RangeKeyValue = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *DynamoDBAction) SetRoleArn(v string) *DynamoDBAction { + s.RoleArn = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *DynamoDBAction) SetTableName(v string) *DynamoDBAction { + s.TableName = &v + return s +} + // Describes an action to write to a DynamoDB table. // // This DynamoDB action writes each attribute in the message payload into it's @@ -6801,6 +7472,18 @@ func (s *DynamoDBv2Action) Validate() error { return nil } +// SetPutItem sets the PutItem field's value. +func (s *DynamoDBv2Action) SetPutItem(v *PutItemInput) *DynamoDBv2Action { + s.PutItem = v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *DynamoDBv2Action) SetRoleArn(v string) *DynamoDBv2Action { + s.RoleArn = &v + return s +} + // Describes an action that writes data to an Amazon Elasticsearch Service domain. type ElasticsearchAction struct { _ struct{} `type:"structure"` @@ -6866,6 +7549,36 @@ func (s *ElasticsearchAction) Validate() error { return nil } +// SetEndpoint sets the Endpoint field's value. +func (s *ElasticsearchAction) SetEndpoint(v string) *ElasticsearchAction { + s.Endpoint = &v + return s +} + +// SetId sets the Id field's value. +func (s *ElasticsearchAction) SetId(v string) *ElasticsearchAction { + s.Id = &v + return s +} + +// SetIndex sets the Index field's value. +func (s *ElasticsearchAction) SetIndex(v string) *ElasticsearchAction { + s.Index = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *ElasticsearchAction) SetRoleArn(v string) *ElasticsearchAction { + s.RoleArn = &v + return s +} + +// SetType sets the Type field's value. +func (s *ElasticsearchAction) SetType(v string) *ElasticsearchAction { + s.Type = &v + return s +} + // The input for the EnableTopicRuleRequest operation. type EnableTopicRuleInput struct { _ struct{} `type:"structure"` @@ -6902,6 +7615,12 @@ func (s *EnableTopicRuleInput) Validate() error { return nil } +// SetRuleName sets the RuleName field's value. +func (s *EnableTopicRuleInput) SetRuleName(v string) *EnableTopicRuleInput { + s.RuleName = &v + return s +} + type EnableTopicRuleOutput struct { _ struct{} `type:"structure"` } @@ -6962,6 +7681,24 @@ func (s *FirehoseAction) Validate() error { return nil } +// SetDeliveryStreamName sets the DeliveryStreamName field's value. +func (s *FirehoseAction) SetDeliveryStreamName(v string) *FirehoseAction { + s.DeliveryStreamName = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *FirehoseAction) SetRoleArn(v string) *FirehoseAction { + s.RoleArn = &v + return s +} + +// SetSeparator sets the Separator field's value. +func (s *FirehoseAction) SetSeparator(v string) *FirehoseAction { + s.Separator = &v + return s +} + // The input for the GetLoggingOptions operation. type GetLoggingOptionsInput struct { _ struct{} `type:"structure"` @@ -6998,6 +7735,18 @@ func (s GetLoggingOptionsOutput) GoString() string { return s.String() } +// SetLogLevel sets the LogLevel field's value. +func (s *GetLoggingOptionsOutput) SetLogLevel(v string) *GetLoggingOptionsOutput { + s.LogLevel = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *GetLoggingOptionsOutput) SetRoleArn(v string) *GetLoggingOptionsOutput { + s.RoleArn = &v + return s +} + // The input for the GetPolicy operation. type GetPolicyInput struct { _ struct{} `type:"structure"` @@ -7034,6 +7783,12 @@ func (s *GetPolicyInput) Validate() error { return nil } +// SetPolicyName sets the PolicyName field's value. +func (s *GetPolicyInput) SetPolicyName(v string) *GetPolicyInput { + s.PolicyName = &v + return s +} + // The output from the GetPolicy operation. type GetPolicyOutput struct { _ struct{} `type:"structure"` @@ -7061,6 +7816,30 @@ func (s GetPolicyOutput) GoString() string { return s.String() } +// SetDefaultVersionId sets the DefaultVersionId field's value. +func (s *GetPolicyOutput) SetDefaultVersionId(v string) *GetPolicyOutput { + s.DefaultVersionId = &v + return s +} + +// SetPolicyArn sets the PolicyArn field's value. +func (s *GetPolicyOutput) SetPolicyArn(v string) *GetPolicyOutput { + s.PolicyArn = &v + return s +} + +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *GetPolicyOutput) SetPolicyDocument(v string) *GetPolicyOutput { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *GetPolicyOutput) SetPolicyName(v string) *GetPolicyOutput { + s.PolicyName = &v + return s +} + // The input for the GetPolicyVersion operation. type GetPolicyVersionInput struct { _ struct{} `type:"structure"` @@ -7105,6 +7884,18 @@ func (s *GetPolicyVersionInput) Validate() error { return nil } +// SetPolicyName sets the PolicyName field's value. +func (s *GetPolicyVersionInput) SetPolicyName(v string) *GetPolicyVersionInput { + s.PolicyName = &v + return s +} + +// SetPolicyVersionId sets the PolicyVersionId field's value. +func (s *GetPolicyVersionInput) SetPolicyVersionId(v string) *GetPolicyVersionInput { + s.PolicyVersionId = &v + return s +} + // The output from the GetPolicyVersion operation. type GetPolicyVersionOutput struct { _ struct{} `type:"structure"` @@ -7135,6 +7926,36 @@ func (s GetPolicyVersionOutput) GoString() string { return s.String() } +// SetIsDefaultVersion sets the IsDefaultVersion field's value. +func (s *GetPolicyVersionOutput) SetIsDefaultVersion(v bool) *GetPolicyVersionOutput { + s.IsDefaultVersion = &v + return s +} + +// SetPolicyArn sets the PolicyArn field's value. +func (s *GetPolicyVersionOutput) SetPolicyArn(v string) *GetPolicyVersionOutput { + s.PolicyArn = &v + return s +} + +// SetPolicyDocument sets the PolicyDocument field's value. +func (s *GetPolicyVersionOutput) SetPolicyDocument(v string) *GetPolicyVersionOutput { + s.PolicyDocument = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *GetPolicyVersionOutput) SetPolicyName(v string) *GetPolicyVersionOutput { + s.PolicyName = &v + return s +} + +// SetPolicyVersionId sets the PolicyVersionId field's value. +func (s *GetPolicyVersionOutput) SetPolicyVersionId(v string) *GetPolicyVersionOutput { + s.PolicyVersionId = &v + return s +} + // The input to the GetRegistrationCode operation. type GetRegistrationCodeInput struct { _ struct{} `type:"structure"` @@ -7168,6 +7989,12 @@ func (s GetRegistrationCodeOutput) GoString() string { return s.String() } +// SetRegistrationCode sets the RegistrationCode field's value. +func (s *GetRegistrationCodeOutput) SetRegistrationCode(v string) *GetRegistrationCodeOutput { + s.RegistrationCode = &v + return s +} + // The input for the GetTopicRule operation. type GetTopicRuleInput struct { _ struct{} `type:"structure"` @@ -7204,6 +8031,12 @@ func (s *GetTopicRuleInput) Validate() error { return nil } +// SetRuleName sets the RuleName field's value. +func (s *GetTopicRuleInput) SetRuleName(v string) *GetTopicRuleInput { + s.RuleName = &v + return s +} + // The output from the GetTopicRule operation. type GetTopicRuleOutput struct { _ struct{} `type:"structure"` @@ -7225,6 +8058,18 @@ func (s GetTopicRuleOutput) GoString() string { return s.String() } +// SetRule sets the Rule field's value. +func (s *GetTopicRuleOutput) SetRule(v *TopicRule) *GetTopicRuleOutput { + s.Rule = v + return s +} + +// SetRuleArn sets the RuleArn field's value. +func (s *GetTopicRuleOutput) SetRuleArn(v string) *GetTopicRuleOutput { + s.RuleArn = &v + return s +} + // Describes a key pair. type KeyPair struct { _ struct{} `type:"structure"` @@ -7246,7 +8091,19 @@ func (s KeyPair) GoString() string { return s.String() } -// Describes an action to write data to an Amazon Kinesis stream. +// SetPrivateKey sets the PrivateKey field's value. +func (s *KeyPair) SetPrivateKey(v string) *KeyPair { + s.PrivateKey = &v + return s +} + +// SetPublicKey sets the PublicKey field's value. +func (s *KeyPair) SetPublicKey(v string) *KeyPair { + s.PublicKey = &v + return s +} + +// Describes an action to write data to an Amazon Kinesis stream. type KinesisAction struct { _ struct{} `type:"structure"` @@ -7290,6 +8147,24 @@ func (s *KinesisAction) Validate() error { return nil } +// SetPartitionKey sets the PartitionKey field's value. +func (s *KinesisAction) SetPartitionKey(v string) *KinesisAction { + s.PartitionKey = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *KinesisAction) SetRoleArn(v string) *KinesisAction { + s.RoleArn = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *KinesisAction) SetStreamName(v string) *KinesisAction { + s.StreamName = &v + return s +} + // Describes an action to invoke a Lambda function. type LambdaAction struct { _ struct{} `type:"structure"` @@ -7323,6 +8198,12 @@ func (s *LambdaAction) Validate() error { return nil } +// SetFunctionArn sets the FunctionArn field's value. +func (s *LambdaAction) SetFunctionArn(v string) *LambdaAction { + s.FunctionArn = &v + return s +} + // Input for the ListCACertificates operation. type ListCACertificatesInput struct { _ struct{} `type:"structure"` @@ -7360,6 +8241,24 @@ func (s *ListCACertificatesInput) Validate() error { return nil } +// SetAscendingOrder sets the AscendingOrder field's value. +func (s *ListCACertificatesInput) SetAscendingOrder(v bool) *ListCACertificatesInput { + s.AscendingOrder = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListCACertificatesInput) SetMarker(v string) *ListCACertificatesInput { + s.Marker = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *ListCACertificatesInput) SetPageSize(v int64) *ListCACertificatesInput { + s.PageSize = &v + return s +} + // The output from the ListCACertificates operation. type ListCACertificatesOutput struct { _ struct{} `type:"structure"` @@ -7381,6 +8280,18 @@ func (s ListCACertificatesOutput) GoString() string { return s.String() } +// SetCertificates sets the Certificates field's value. +func (s *ListCACertificatesOutput) SetCertificates(v []*CACertificate) *ListCACertificatesOutput { + s.Certificates = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListCACertificatesOutput) SetNextMarker(v string) *ListCACertificatesOutput { + s.NextMarker = &v + return s +} + // The input to the ListCertificatesByCA operation. type ListCertificatesByCAInput struct { _ struct{} `type:"structure"` @@ -7431,6 +8342,30 @@ func (s *ListCertificatesByCAInput) Validate() error { return nil } +// SetAscendingOrder sets the AscendingOrder field's value. +func (s *ListCertificatesByCAInput) SetAscendingOrder(v bool) *ListCertificatesByCAInput { + s.AscendingOrder = &v + return s +} + +// SetCaCertificateId sets the CaCertificateId field's value. +func (s *ListCertificatesByCAInput) SetCaCertificateId(v string) *ListCertificatesByCAInput { + s.CaCertificateId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListCertificatesByCAInput) SetMarker(v string) *ListCertificatesByCAInput { + s.Marker = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *ListCertificatesByCAInput) SetPageSize(v int64) *ListCertificatesByCAInput { + s.PageSize = &v + return s +} + // The output of the ListCertificatesByCA operation. type ListCertificatesByCAOutput struct { _ struct{} `type:"structure"` @@ -7453,6 +8388,18 @@ func (s ListCertificatesByCAOutput) GoString() string { return s.String() } +// SetCertificates sets the Certificates field's value. +func (s *ListCertificatesByCAOutput) SetCertificates(v []*Certificate) *ListCertificatesByCAOutput { + s.Certificates = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListCertificatesByCAOutput) SetNextMarker(v string) *ListCertificatesByCAOutput { + s.NextMarker = &v + return s +} + // The input for the ListCertificates operation. type ListCertificatesInput struct { _ struct{} `type:"structure"` @@ -7491,6 +8438,24 @@ func (s *ListCertificatesInput) Validate() error { return nil } +// SetAscendingOrder sets the AscendingOrder field's value. +func (s *ListCertificatesInput) SetAscendingOrder(v bool) *ListCertificatesInput { + s.AscendingOrder = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListCertificatesInput) SetMarker(v string) *ListCertificatesInput { + s.Marker = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *ListCertificatesInput) SetPageSize(v int64) *ListCertificatesInput { + s.PageSize = &v + return s +} + // The output of the ListCertificates operation. type ListCertificatesOutput struct { _ struct{} `type:"structure"` @@ -7513,6 +8478,18 @@ func (s ListCertificatesOutput) GoString() string { return s.String() } +// SetCertificates sets the Certificates field's value. +func (s *ListCertificatesOutput) SetCertificates(v []*Certificate) *ListCertificatesOutput { + s.Certificates = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListCertificatesOutput) SetNextMarker(v string) *ListCertificatesOutput { + s.NextMarker = &v + return s +} + // The input to the ListOutgoingCertificates operation. type ListOutgoingCertificatesInput struct { _ struct{} `type:"structure"` @@ -7551,6 +8528,24 @@ func (s *ListOutgoingCertificatesInput) Validate() error { return nil } +// SetAscendingOrder sets the AscendingOrder field's value. +func (s *ListOutgoingCertificatesInput) SetAscendingOrder(v bool) *ListOutgoingCertificatesInput { + s.AscendingOrder = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListOutgoingCertificatesInput) SetMarker(v string) *ListOutgoingCertificatesInput { + s.Marker = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *ListOutgoingCertificatesInput) SetPageSize(v int64) *ListOutgoingCertificatesInput { + s.PageSize = &v + return s +} + // The output from the ListOutgoingCertificates operation. type ListOutgoingCertificatesOutput struct { _ struct{} `type:"structure"` @@ -7572,6 +8567,18 @@ func (s ListOutgoingCertificatesOutput) GoString() string { return s.String() } +// SetNextMarker sets the NextMarker field's value. +func (s *ListOutgoingCertificatesOutput) SetNextMarker(v string) *ListOutgoingCertificatesOutput { + s.NextMarker = &v + return s +} + +// SetOutgoingCertificates sets the OutgoingCertificates field's value. +func (s *ListOutgoingCertificatesOutput) SetOutgoingCertificates(v []*OutgoingCertificate) *ListOutgoingCertificatesOutput { + s.OutgoingCertificates = v + return s +} + // The input for the ListPolicies operation. type ListPoliciesInput struct { _ struct{} `type:"structure"` @@ -7610,6 +8617,24 @@ func (s *ListPoliciesInput) Validate() error { return nil } +// SetAscendingOrder sets the AscendingOrder field's value. +func (s *ListPoliciesInput) SetAscendingOrder(v bool) *ListPoliciesInput { + s.AscendingOrder = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListPoliciesInput) SetMarker(v string) *ListPoliciesInput { + s.Marker = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *ListPoliciesInput) SetPageSize(v int64) *ListPoliciesInput { + s.PageSize = &v + return s +} + // The output from the ListPolicies operation. type ListPoliciesOutput struct { _ struct{} `type:"structure"` @@ -7632,6 +8657,18 @@ func (s ListPoliciesOutput) GoString() string { return s.String() } +// SetNextMarker sets the NextMarker field's value. +func (s *ListPoliciesOutput) SetNextMarker(v string) *ListPoliciesOutput { + s.NextMarker = &v + return s +} + +// SetPolicies sets the Policies field's value. +func (s *ListPoliciesOutput) SetPolicies(v []*Policy) *ListPoliciesOutput { + s.Policies = v + return s +} + // The input for the ListPolicyPrincipals operation. type ListPolicyPrincipalsInput struct { _ struct{} `type:"structure"` @@ -7681,6 +8718,30 @@ func (s *ListPolicyPrincipalsInput) Validate() error { return nil } +// SetAscendingOrder sets the AscendingOrder field's value. +func (s *ListPolicyPrincipalsInput) SetAscendingOrder(v bool) *ListPolicyPrincipalsInput { + s.AscendingOrder = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListPolicyPrincipalsInput) SetMarker(v string) *ListPolicyPrincipalsInput { + s.Marker = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *ListPolicyPrincipalsInput) SetPageSize(v int64) *ListPolicyPrincipalsInput { + s.PageSize = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *ListPolicyPrincipalsInput) SetPolicyName(v string) *ListPolicyPrincipalsInput { + s.PolicyName = &v + return s +} + // The output from the ListPolicyPrincipals operation. type ListPolicyPrincipalsOutput struct { _ struct{} `type:"structure"` @@ -7703,6 +8764,18 @@ func (s ListPolicyPrincipalsOutput) GoString() string { return s.String() } +// SetNextMarker sets the NextMarker field's value. +func (s *ListPolicyPrincipalsOutput) SetNextMarker(v string) *ListPolicyPrincipalsOutput { + s.NextMarker = &v + return s +} + +// SetPrincipals sets the Principals field's value. +func (s *ListPolicyPrincipalsOutput) SetPrincipals(v []*string) *ListPolicyPrincipalsOutput { + s.Principals = v + return s +} + // The input for the ListPolicyVersions operation. type ListPolicyVersionsInput struct { _ struct{} `type:"structure"` @@ -7739,6 +8812,12 @@ func (s *ListPolicyVersionsInput) Validate() error { return nil } +// SetPolicyName sets the PolicyName field's value. +func (s *ListPolicyVersionsInput) SetPolicyName(v string) *ListPolicyVersionsInput { + s.PolicyName = &v + return s +} + // The output from the ListPolicyVersions operation. type ListPolicyVersionsOutput struct { _ struct{} `type:"structure"` @@ -7757,6 +8836,12 @@ func (s ListPolicyVersionsOutput) GoString() string { return s.String() } +// SetPolicyVersions sets the PolicyVersions field's value. +func (s *ListPolicyVersionsOutput) SetPolicyVersions(v []*PolicyVersion) *ListPolicyVersionsOutput { + s.PolicyVersions = v + return s +} + // The input for the ListPrincipalPolicies operation. type ListPrincipalPoliciesInput struct { _ struct{} `type:"structure"` @@ -7803,6 +8888,30 @@ func (s *ListPrincipalPoliciesInput) Validate() error { return nil } +// SetAscendingOrder sets the AscendingOrder field's value. +func (s *ListPrincipalPoliciesInput) SetAscendingOrder(v bool) *ListPrincipalPoliciesInput { + s.AscendingOrder = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListPrincipalPoliciesInput) SetMarker(v string) *ListPrincipalPoliciesInput { + s.Marker = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *ListPrincipalPoliciesInput) SetPageSize(v int64) *ListPrincipalPoliciesInput { + s.PageSize = &v + return s +} + +// SetPrincipal sets the Principal field's value. +func (s *ListPrincipalPoliciesInput) SetPrincipal(v string) *ListPrincipalPoliciesInput { + s.Principal = &v + return s +} + // The output from the ListPrincipalPolicies operation. type ListPrincipalPoliciesOutput struct { _ struct{} `type:"structure"` @@ -7825,6 +8934,18 @@ func (s ListPrincipalPoliciesOutput) GoString() string { return s.String() } +// SetNextMarker sets the NextMarker field's value. +func (s *ListPrincipalPoliciesOutput) SetNextMarker(v string) *ListPrincipalPoliciesOutput { + s.NextMarker = &v + return s +} + +// SetPolicies sets the Policies field's value. +func (s *ListPrincipalPoliciesOutput) SetPolicies(v []*Policy) *ListPrincipalPoliciesOutput { + s.Policies = v + return s +} + // The input for the ListPrincipalThings operation. type ListPrincipalThingsInput struct { _ struct{} `type:"structure"` @@ -7868,6 +8989,24 @@ func (s *ListPrincipalThingsInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *ListPrincipalThingsInput) SetMaxResults(v int64) *ListPrincipalThingsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPrincipalThingsInput) SetNextToken(v string) *ListPrincipalThingsInput { + s.NextToken = &v + return s +} + +// SetPrincipal sets the Principal field's value. +func (s *ListPrincipalThingsInput) SetPrincipal(v string) *ListPrincipalThingsInput { + s.Principal = &v + return s +} + // The output from the ListPrincipalThings operation. type ListPrincipalThingsOutput struct { _ struct{} `type:"structure"` @@ -7890,6 +9029,18 @@ func (s ListPrincipalThingsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListPrincipalThingsOutput) SetNextToken(v string) *ListPrincipalThingsOutput { + s.NextToken = &v + return s +} + +// SetThings sets the Things field's value. +func (s *ListPrincipalThingsOutput) SetThings(v []*string) *ListPrincipalThingsOutput { + s.Things = v + return s +} + // The input for the ListThingPrincipal operation. type ListThingPrincipalsInput struct { _ struct{} `type:"structure"` @@ -7926,6 +9077,12 @@ func (s *ListThingPrincipalsInput) Validate() error { return nil } +// SetThingName sets the ThingName field's value. +func (s *ListThingPrincipalsInput) SetThingName(v string) *ListThingPrincipalsInput { + s.ThingName = &v + return s +} + // The output from the ListThingPrincipals operation. type ListThingPrincipalsOutput struct { _ struct{} `type:"structure"` @@ -7944,6 +9101,12 @@ func (s ListThingPrincipalsOutput) GoString() string { return s.String() } +// SetPrincipals sets the Principals field's value. +func (s *ListThingPrincipalsOutput) SetPrincipals(v []*string) *ListThingPrincipalsOutput { + s.Principals = v + return s +} + // The input for the ListThingTypes operation. type ListThingTypesInput struct { _ struct{} `type:"structure"` @@ -7985,6 +9148,24 @@ func (s *ListThingTypesInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *ListThingTypesInput) SetMaxResults(v int64) *ListThingTypesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListThingTypesInput) SetNextToken(v string) *ListThingTypesInput { + s.NextToken = &v + return s +} + +// SetThingTypeName sets the ThingTypeName field's value. +func (s *ListThingTypesInput) SetThingTypeName(v string) *ListThingTypesInput { + s.ThingTypeName = &v + return s +} + // The output for the ListThingTypes operation. type ListThingTypesOutput struct { _ struct{} `type:"structure"` @@ -8007,6 +9188,18 @@ func (s ListThingTypesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListThingTypesOutput) SetNextToken(v string) *ListThingTypesOutput { + s.NextToken = &v + return s +} + +// SetThingTypes sets the ThingTypes field's value. +func (s *ListThingTypesOutput) SetThingTypes(v []*ThingTypeDefinition) *ListThingTypesOutput { + s.ThingTypes = v + return s +} + // The input for the ListThings operation. type ListThingsInput struct { _ struct{} `type:"structure"` @@ -8054,6 +9247,36 @@ func (s *ListThingsInput) Validate() error { return nil } +// SetAttributeName sets the AttributeName field's value. +func (s *ListThingsInput) SetAttributeName(v string) *ListThingsInput { + s.AttributeName = &v + return s +} + +// SetAttributeValue sets the AttributeValue field's value. +func (s *ListThingsInput) SetAttributeValue(v string) *ListThingsInput { + s.AttributeValue = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListThingsInput) SetMaxResults(v int64) *ListThingsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListThingsInput) SetNextToken(v string) *ListThingsInput { + s.NextToken = &v + return s +} + +// SetThingTypeName sets the ThingTypeName field's value. +func (s *ListThingsInput) SetThingTypeName(v string) *ListThingsInput { + s.ThingTypeName = &v + return s +} + // The output from the ListThings operation. type ListThingsOutput struct { _ struct{} `type:"structure"` @@ -8076,6 +9299,18 @@ func (s ListThingsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListThingsOutput) SetNextToken(v string) *ListThingsOutput { + s.NextToken = &v + return s +} + +// SetThings sets the Things field's value. +func (s *ListThingsOutput) SetThings(v []*ThingAttribute) *ListThingsOutput { + s.Things = v + return s +} + // The input for the ListTopicRules operation. type ListTopicRulesInput struct { _ struct{} `type:"structure"` @@ -8116,6 +9351,30 @@ func (s *ListTopicRulesInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *ListTopicRulesInput) SetMaxResults(v int64) *ListTopicRulesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTopicRulesInput) SetNextToken(v string) *ListTopicRulesInput { + s.NextToken = &v + return s +} + +// SetRuleDisabled sets the RuleDisabled field's value. +func (s *ListTopicRulesInput) SetRuleDisabled(v bool) *ListTopicRulesInput { + s.RuleDisabled = &v + return s +} + +// SetTopic sets the Topic field's value. +func (s *ListTopicRulesInput) SetTopic(v string) *ListTopicRulesInput { + s.Topic = &v + return s +} + // The output from the ListTopicRules operation. type ListTopicRulesOutput struct { _ struct{} `type:"structure"` @@ -8137,6 +9396,18 @@ func (s ListTopicRulesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListTopicRulesOutput) SetNextToken(v string) *ListTopicRulesOutput { + s.NextToken = &v + return s +} + +// SetRules sets the Rules field's value. +func (s *ListTopicRulesOutput) SetRules(v []*TopicRuleListItem) *ListTopicRulesOutput { + s.Rules = v + return s +} + // Describes the logging options payload. type LoggingOptionsPayload struct { _ struct{} `type:"structure"` @@ -8173,6 +9444,18 @@ func (s *LoggingOptionsPayload) Validate() error { return nil } +// SetLogLevel sets the LogLevel field's value. +func (s *LoggingOptionsPayload) SetLogLevel(v string) *LoggingOptionsPayload { + s.LogLevel = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *LoggingOptionsPayload) SetRoleArn(v string) *LoggingOptionsPayload { + s.RoleArn = &v + return s +} + // A certificate that has been transfered but not yet accepted. type OutgoingCertificate struct { _ struct{} `type:"structure"` @@ -8206,6 +9489,42 @@ func (s OutgoingCertificate) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *OutgoingCertificate) SetCertificateArn(v string) *OutgoingCertificate { + s.CertificateArn = &v + return s +} + +// SetCertificateId sets the CertificateId field's value. +func (s *OutgoingCertificate) SetCertificateId(v string) *OutgoingCertificate { + s.CertificateId = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *OutgoingCertificate) SetCreationDate(v time.Time) *OutgoingCertificate { + s.CreationDate = &v + return s +} + +// SetTransferDate sets the TransferDate field's value. +func (s *OutgoingCertificate) SetTransferDate(v time.Time) *OutgoingCertificate { + s.TransferDate = &v + return s +} + +// SetTransferMessage sets the TransferMessage field's value. +func (s *OutgoingCertificate) SetTransferMessage(v string) *OutgoingCertificate { + s.TransferMessage = &v + return s +} + +// SetTransferredTo sets the TransferredTo field's value. +func (s *OutgoingCertificate) SetTransferredTo(v string) *OutgoingCertificate { + s.TransferredTo = &v + return s +} + // Describes an AWS IoT policy. type Policy struct { _ struct{} `type:"structure"` @@ -8227,6 +9546,18 @@ func (s Policy) GoString() string { return s.String() } +// SetPolicyArn sets the PolicyArn field's value. +func (s *Policy) SetPolicyArn(v string) *Policy { + s.PolicyArn = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *Policy) SetPolicyName(v string) *Policy { + s.PolicyName = &v + return s +} + // Describes a policy version. type PolicyVersion struct { _ struct{} `type:"structure"` @@ -8251,6 +9582,24 @@ func (s PolicyVersion) GoString() string { return s.String() } +// SetCreateDate sets the CreateDate field's value. +func (s *PolicyVersion) SetCreateDate(v time.Time) *PolicyVersion { + s.CreateDate = &v + return s +} + +// SetIsDefaultVersion sets the IsDefaultVersion field's value. +func (s *PolicyVersion) SetIsDefaultVersion(v bool) *PolicyVersion { + s.IsDefaultVersion = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *PolicyVersion) SetVersionId(v string) *PolicyVersion { + s.VersionId = &v + return s +} + // The input for the DynamoActionVS action that specifies the DynamoDB table // to which the message data will be written. type PutItemInput struct { @@ -8285,6 +9634,12 @@ func (s *PutItemInput) Validate() error { return nil } +// SetTableName sets the TableName field's value. +func (s *PutItemInput) SetTableName(v string) *PutItemInput { + s.TableName = &v + return s +} + // The input to the RegisterCACertificate operation. type RegisterCACertificateInput struct { _ struct{} `type:"structure"` @@ -8338,6 +9693,30 @@ func (s *RegisterCACertificateInput) Validate() error { return nil } +// SetAllowAutoRegistration sets the AllowAutoRegistration field's value. +func (s *RegisterCACertificateInput) SetAllowAutoRegistration(v bool) *RegisterCACertificateInput { + s.AllowAutoRegistration = &v + return s +} + +// SetCaCertificate sets the CaCertificate field's value. +func (s *RegisterCACertificateInput) SetCaCertificate(v string) *RegisterCACertificateInput { + s.CaCertificate = &v + return s +} + +// SetSetAsActive sets the SetAsActive field's value. +func (s *RegisterCACertificateInput) SetSetAsActive(v bool) *RegisterCACertificateInput { + s.SetAsActive = &v + return s +} + +// SetVerificationCertificate sets the VerificationCertificate field's value. +func (s *RegisterCACertificateInput) SetVerificationCertificate(v string) *RegisterCACertificateInput { + s.VerificationCertificate = &v + return s +} + // The output from the RegisterCACertificateResponse operation. type RegisterCACertificateOutput struct { _ struct{} `type:"structure"` @@ -8359,6 +9738,18 @@ func (s RegisterCACertificateOutput) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *RegisterCACertificateOutput) SetCertificateArn(v string) *RegisterCACertificateOutput { + s.CertificateArn = &v + return s +} + +// SetCertificateId sets the CertificateId field's value. +func (s *RegisterCACertificateOutput) SetCertificateId(v string) *RegisterCACertificateOutput { + s.CertificateId = &v + return s +} + // The input to the RegisterCertificate operation. type RegisterCertificateInput struct { _ struct{} `type:"structure"` @@ -8406,6 +9797,30 @@ func (s *RegisterCertificateInput) Validate() error { return nil } +// SetCaCertificatePem sets the CaCertificatePem field's value. +func (s *RegisterCertificateInput) SetCaCertificatePem(v string) *RegisterCertificateInput { + s.CaCertificatePem = &v + return s +} + +// SetCertificatePem sets the CertificatePem field's value. +func (s *RegisterCertificateInput) SetCertificatePem(v string) *RegisterCertificateInput { + s.CertificatePem = &v + return s +} + +// SetSetAsActive sets the SetAsActive field's value. +func (s *RegisterCertificateInput) SetSetAsActive(v bool) *RegisterCertificateInput { + s.SetAsActive = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *RegisterCertificateInput) SetStatus(v string) *RegisterCertificateInput { + s.Status = &v + return s +} + // The output from the RegisterCertificate operation. type RegisterCertificateOutput struct { _ struct{} `type:"structure"` @@ -8427,6 +9842,18 @@ func (s RegisterCertificateOutput) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *RegisterCertificateOutput) SetCertificateArn(v string) *RegisterCertificateOutput { + s.CertificateArn = &v + return s +} + +// SetCertificateId sets the CertificateId field's value. +func (s *RegisterCertificateOutput) SetCertificateId(v string) *RegisterCertificateOutput { + s.CertificateId = &v + return s +} + // The input for the RejectCertificateTransfer operation. type RejectCertificateTransferInput struct { _ struct{} `type:"structure"` @@ -8466,6 +9893,18 @@ func (s *RejectCertificateTransferInput) Validate() error { return nil } +// SetCertificateId sets the CertificateId field's value. +func (s *RejectCertificateTransferInput) SetCertificateId(v string) *RejectCertificateTransferInput { + s.CertificateId = &v + return s +} + +// SetRejectReason sets the RejectReason field's value. +func (s *RejectCertificateTransferInput) SetRejectReason(v string) *RejectCertificateTransferInput { + s.RejectReason = &v + return s +} + type RejectCertificateTransferOutput struct { _ struct{} `type:"structure"` } @@ -8529,6 +9968,18 @@ func (s *ReplaceTopicRuleInput) Validate() error { return nil } +// SetRuleName sets the RuleName field's value. +func (s *ReplaceTopicRuleInput) SetRuleName(v string) *ReplaceTopicRuleInput { + s.RuleName = &v + return s +} + +// SetTopicRulePayload sets the TopicRulePayload field's value. +func (s *ReplaceTopicRuleInput) SetTopicRulePayload(v *TopicRulePayload) *ReplaceTopicRuleInput { + s.TopicRulePayload = v + return s +} + type ReplaceTopicRuleOutput struct { _ struct{} `type:"structure"` } @@ -8584,6 +10035,18 @@ func (s *RepublishAction) Validate() error { return nil } +// SetRoleArn sets the RoleArn field's value. +func (s *RepublishAction) SetRoleArn(v string) *RepublishAction { + s.RoleArn = &v + return s +} + +// SetTopic sets the Topic field's value. +func (s *RepublishAction) SetTopic(v string) *RepublishAction { + s.Topic = &v + return s +} + // Describes an action to write data to an Amazon S3 bucket. type S3Action struct { _ struct{} `type:"structure"` @@ -8637,6 +10100,30 @@ func (s *S3Action) Validate() error { return nil } +// SetBucketName sets the BucketName field's value. +func (s *S3Action) SetBucketName(v string) *S3Action { + s.BucketName = &v + return s +} + +// SetCannedAcl sets the CannedAcl field's value. +func (s *S3Action) SetCannedAcl(v string) *S3Action { + s.CannedAcl = &v + return s +} + +// SetKey sets the Key field's value. +func (s *S3Action) SetKey(v string) *S3Action { + s.Key = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *S3Action) SetRoleArn(v string) *S3Action { + s.RoleArn = &v + return s +} + // The input for the SetDefaultPolicyVersion operation. type SetDefaultPolicyVersionInput struct { _ struct{} `type:"structure"` @@ -8681,6 +10168,18 @@ func (s *SetDefaultPolicyVersionInput) Validate() error { return nil } +// SetPolicyName sets the PolicyName field's value. +func (s *SetDefaultPolicyVersionInput) SetPolicyName(v string) *SetDefaultPolicyVersionInput { + s.PolicyName = &v + return s +} + +// SetPolicyVersionId sets the PolicyVersionId field's value. +func (s *SetDefaultPolicyVersionInput) SetPolicyVersionId(v string) *SetDefaultPolicyVersionInput { + s.PolicyVersionId = &v + return s +} + type SetDefaultPolicyVersionOutput struct { _ struct{} `type:"structure"` } @@ -8733,6 +10232,12 @@ func (s *SetLoggingOptionsInput) Validate() error { return nil } +// SetLoggingOptionsPayload sets the LoggingOptionsPayload field's value. +func (s *SetLoggingOptionsInput) SetLoggingOptionsPayload(v *LoggingOptionsPayload) *SetLoggingOptionsInput { + s.LoggingOptionsPayload = v + return s +} + type SetLoggingOptionsOutput struct { _ struct{} `type:"structure"` } @@ -8755,7 +10260,7 @@ type SnsAction struct { // "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this // setting to determine if the payload should be parsed and relevant platform-specific // bits of the payload should be extracted. To read more about SNS message formats, - // see refer to their official documentation. + // see refer to their official documentation. (http://docs.aws.amazon.com/sns/latest/dg/json-formats.html) MessageFormat *string `locationName:"messageFormat" type:"string" enum:"MessageFormat"` // The ARN of the IAM role that grants access. @@ -8795,6 +10300,24 @@ func (s *SnsAction) Validate() error { return nil } +// SetMessageFormat sets the MessageFormat field's value. +func (s *SnsAction) SetMessageFormat(v string) *SnsAction { + s.MessageFormat = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *SnsAction) SetRoleArn(v string) *SnsAction { + s.RoleArn = &v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *SnsAction) SetTargetArn(v string) *SnsAction { + s.TargetArn = &v + return s +} + // Describes an action to publish data to an Amazon SQS queue. type SqsAction struct { _ struct{} `type:"structure"` @@ -8839,6 +10362,24 @@ func (s *SqsAction) Validate() error { return nil } +// SetQueueUrl sets the QueueUrl field's value. +func (s *SqsAction) SetQueueUrl(v string) *SqsAction { + s.QueueUrl = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *SqsAction) SetRoleArn(v string) *SqsAction { + s.RoleArn = &v + return s +} + +// SetUseBase64 sets the UseBase64 field's value. +func (s *SqsAction) SetUseBase64(v bool) *SqsAction { + s.UseBase64 = &v + return s +} + // The properties of the thing, including thing name, thing type name, and a // list of thing attributes. type ThingAttribute struct { @@ -8867,6 +10408,30 @@ func (s ThingAttribute) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *ThingAttribute) SetAttributes(v map[string]*string) *ThingAttribute { + s.Attributes = v + return s +} + +// SetThingName sets the ThingName field's value. +func (s *ThingAttribute) SetThingName(v string) *ThingAttribute { + s.ThingName = &v + return s +} + +// SetThingTypeName sets the ThingTypeName field's value. +func (s *ThingAttribute) SetThingTypeName(v string) *ThingAttribute { + s.ThingTypeName = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *ThingAttribute) SetVersion(v int64) *ThingAttribute { + s.Version = &v + return s +} + // The definition of the thing type, including thing type name and description. type ThingTypeDefinition struct { _ struct{} `type:"structure"` @@ -8893,6 +10458,24 @@ func (s ThingTypeDefinition) GoString() string { return s.String() } +// SetThingTypeMetadata sets the ThingTypeMetadata field's value. +func (s *ThingTypeDefinition) SetThingTypeMetadata(v *ThingTypeMetadata) *ThingTypeDefinition { + s.ThingTypeMetadata = v + return s +} + +// SetThingTypeName sets the ThingTypeName field's value. +func (s *ThingTypeDefinition) SetThingTypeName(v string) *ThingTypeDefinition { + s.ThingTypeName = &v + return s +} + +// SetThingTypeProperties sets the ThingTypeProperties field's value. +func (s *ThingTypeDefinition) SetThingTypeProperties(v *ThingTypeProperties) *ThingTypeDefinition { + s.ThingTypeProperties = v + return s +} + // The ThingTypeMetadata contains additional information about the thing type // including: creation date and time, a value indicating whether the thing type // is deprecated, and a date and time when time was deprecated. @@ -8920,6 +10503,24 @@ func (s ThingTypeMetadata) GoString() string { return s.String() } +// SetCreationDate sets the CreationDate field's value. +func (s *ThingTypeMetadata) SetCreationDate(v time.Time) *ThingTypeMetadata { + s.CreationDate = &v + return s +} + +// SetDeprecated sets the Deprecated field's value. +func (s *ThingTypeMetadata) SetDeprecated(v bool) *ThingTypeMetadata { + s.Deprecated = &v + return s +} + +// SetDeprecationDate sets the DeprecationDate field's value. +func (s *ThingTypeMetadata) SetDeprecationDate(v time.Time) *ThingTypeMetadata { + s.DeprecationDate = &v + return s +} + // The ThingTypeProperties contains information about the thing type including: // a thing type description, and a list of searchable thing attribute names. type ThingTypeProperties struct { @@ -8942,6 +10543,18 @@ func (s ThingTypeProperties) GoString() string { return s.String() } +// SetSearchableAttributes sets the SearchableAttributes field's value. +func (s *ThingTypeProperties) SetSearchableAttributes(v []*string) *ThingTypeProperties { + s.SearchableAttributes = v + return s +} + +// SetThingTypeDescription sets the ThingTypeDescription field's value. +func (s *ThingTypeProperties) SetThingTypeDescription(v string) *ThingTypeProperties { + s.ThingTypeDescription = &v + return s +} + // Describes a rule. type TopicRule struct { _ struct{} `type:"structure"` @@ -8979,6 +10592,48 @@ func (s TopicRule) GoString() string { return s.String() } +// SetActions sets the Actions field's value. +func (s *TopicRule) SetActions(v []*Action) *TopicRule { + s.Actions = v + return s +} + +// SetAwsIotSqlVersion sets the AwsIotSqlVersion field's value. +func (s *TopicRule) SetAwsIotSqlVersion(v string) *TopicRule { + s.AwsIotSqlVersion = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *TopicRule) SetCreatedAt(v time.Time) *TopicRule { + s.CreatedAt = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *TopicRule) SetDescription(v string) *TopicRule { + s.Description = &v + return s +} + +// SetRuleDisabled sets the RuleDisabled field's value. +func (s *TopicRule) SetRuleDisabled(v bool) *TopicRule { + s.RuleDisabled = &v + return s +} + +// SetRuleName sets the RuleName field's value. +func (s *TopicRule) SetRuleName(v string) *TopicRule { + s.RuleName = &v + return s +} + +// SetSql sets the Sql field's value. +func (s *TopicRule) SetSql(v string) *TopicRule { + s.Sql = &v + return s +} + // Describes a rule. type TopicRuleListItem struct { _ struct{} `type:"structure"` @@ -9009,6 +10664,36 @@ func (s TopicRuleListItem) GoString() string { return s.String() } +// SetCreatedAt sets the CreatedAt field's value. +func (s *TopicRuleListItem) SetCreatedAt(v time.Time) *TopicRuleListItem { + s.CreatedAt = &v + return s +} + +// SetRuleArn sets the RuleArn field's value. +func (s *TopicRuleListItem) SetRuleArn(v string) *TopicRuleListItem { + s.RuleArn = &v + return s +} + +// SetRuleDisabled sets the RuleDisabled field's value. +func (s *TopicRuleListItem) SetRuleDisabled(v bool) *TopicRuleListItem { + s.RuleDisabled = &v + return s +} + +// SetRuleName sets the RuleName field's value. +func (s *TopicRuleListItem) SetRuleName(v string) *TopicRuleListItem { + s.RuleName = &v + return s +} + +// SetTopicPattern sets the TopicPattern field's value. +func (s *TopicRuleListItem) SetTopicPattern(v string) *TopicRuleListItem { + s.TopicPattern = &v + return s +} + // Describes a rule. type TopicRulePayload struct { _ struct{} `type:"structure"` @@ -9071,6 +10756,36 @@ func (s *TopicRulePayload) Validate() error { return nil } +// SetActions sets the Actions field's value. +func (s *TopicRulePayload) SetActions(v []*Action) *TopicRulePayload { + s.Actions = v + return s +} + +// SetAwsIotSqlVersion sets the AwsIotSqlVersion field's value. +func (s *TopicRulePayload) SetAwsIotSqlVersion(v string) *TopicRulePayload { + s.AwsIotSqlVersion = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *TopicRulePayload) SetDescription(v string) *TopicRulePayload { + s.Description = &v + return s +} + +// SetRuleDisabled sets the RuleDisabled field's value. +func (s *TopicRulePayload) SetRuleDisabled(v bool) *TopicRulePayload { + s.RuleDisabled = &v + return s +} + +// SetSql sets the Sql field's value. +func (s *TopicRulePayload) SetSql(v string) *TopicRulePayload { + s.Sql = &v + return s +} + // The input for the TransferCertificate operation. type TransferCertificateInput struct { _ struct{} `type:"structure"` @@ -9118,6 +10833,24 @@ func (s *TransferCertificateInput) Validate() error { return nil } +// SetCertificateId sets the CertificateId field's value. +func (s *TransferCertificateInput) SetCertificateId(v string) *TransferCertificateInput { + s.CertificateId = &v + return s +} + +// SetTargetAwsAccount sets the TargetAwsAccount field's value. +func (s *TransferCertificateInput) SetTargetAwsAccount(v string) *TransferCertificateInput { + s.TargetAwsAccount = &v + return s +} + +// SetTransferMessage sets the TransferMessage field's value. +func (s *TransferCertificateInput) SetTransferMessage(v string) *TransferCertificateInput { + s.TransferMessage = &v + return s +} + // The output from the TransferCertificate operation. type TransferCertificateOutput struct { _ struct{} `type:"structure"` @@ -9136,6 +10869,12 @@ func (s TransferCertificateOutput) GoString() string { return s.String() } +// SetTransferredCertificateArn sets the TransferredCertificateArn field's value. +func (s *TransferCertificateOutput) SetTransferredCertificateArn(v string) *TransferCertificateOutput { + s.TransferredCertificateArn = &v + return s +} + // Data used to transfer a certificate to an AWS account. type TransferData struct { _ struct{} `type:"structure"` @@ -9166,6 +10905,36 @@ func (s TransferData) GoString() string { return s.String() } +// SetAcceptDate sets the AcceptDate field's value. +func (s *TransferData) SetAcceptDate(v time.Time) *TransferData { + s.AcceptDate = &v + return s +} + +// SetRejectDate sets the RejectDate field's value. +func (s *TransferData) SetRejectDate(v time.Time) *TransferData { + s.RejectDate = &v + return s +} + +// SetRejectReason sets the RejectReason field's value. +func (s *TransferData) SetRejectReason(v string) *TransferData { + s.RejectReason = &v + return s +} + +// SetTransferDate sets the TransferDate field's value. +func (s *TransferData) SetTransferDate(v time.Time) *TransferData { + s.TransferDate = &v + return s +} + +// SetTransferMessage sets the TransferMessage field's value. +func (s *TransferData) SetTransferMessage(v string) *TransferData { + s.TransferMessage = &v + return s +} + // The input to the UpdateCACertificate operation. type UpdateCACertificateInput struct { _ struct{} `type:"structure"` @@ -9212,6 +10981,24 @@ func (s *UpdateCACertificateInput) Validate() error { return nil } +// SetCertificateId sets the CertificateId field's value. +func (s *UpdateCACertificateInput) SetCertificateId(v string) *UpdateCACertificateInput { + s.CertificateId = &v + return s +} + +// SetNewAutoRegistrationStatus sets the NewAutoRegistrationStatus field's value. +func (s *UpdateCACertificateInput) SetNewAutoRegistrationStatus(v string) *UpdateCACertificateInput { + s.NewAutoRegistrationStatus = &v + return s +} + +// SetNewStatus sets the NewStatus field's value. +func (s *UpdateCACertificateInput) SetNewStatus(v string) *UpdateCACertificateInput { + s.NewStatus = &v + return s +} + type UpdateCACertificateOutput struct { _ struct{} `type:"structure"` } @@ -9277,6 +11064,18 @@ func (s *UpdateCertificateInput) Validate() error { return nil } +// SetCertificateId sets the CertificateId field's value. +func (s *UpdateCertificateInput) SetCertificateId(v string) *UpdateCertificateInput { + s.CertificateId = &v + return s +} + +// SetNewStatus sets the NewStatus field's value. +func (s *UpdateCertificateInput) SetNewStatus(v string) *UpdateCertificateInput { + s.NewStatus = &v + return s +} + type UpdateCertificateOutput struct { _ struct{} `type:"structure"` } @@ -9349,6 +11148,36 @@ func (s *UpdateThingInput) Validate() error { return nil } +// SetAttributePayload sets the AttributePayload field's value. +func (s *UpdateThingInput) SetAttributePayload(v *AttributePayload) *UpdateThingInput { + s.AttributePayload = v + return s +} + +// SetExpectedVersion sets the ExpectedVersion field's value. +func (s *UpdateThingInput) SetExpectedVersion(v int64) *UpdateThingInput { + s.ExpectedVersion = &v + return s +} + +// SetRemoveThingType sets the RemoveThingType field's value. +func (s *UpdateThingInput) SetRemoveThingType(v bool) *UpdateThingInput { + s.RemoveThingType = &v + return s +} + +// SetThingName sets the ThingName field's value. +func (s *UpdateThingInput) SetThingName(v string) *UpdateThingInput { + s.ThingName = &v + return s +} + +// SetThingTypeName sets the ThingTypeName field's value. +func (s *UpdateThingInput) SetThingTypeName(v string) *UpdateThingInput { + s.ThingTypeName = &v + return s +} + // The output from the UpdateThing operation. type UpdateThingOutput struct { _ struct{} `type:"structure"` diff --git a/vendor/github.com/aws/aws-sdk-go/service/iot/errors.go b/vendor/github.com/aws/aws-sdk-go/service/iot/errors.go new file mode 100644 index 000000000..7377dd985 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/iot/errors.go @@ -0,0 +1,131 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package iot + +const ( + + // ErrCodeCertificateConflictException for service response error code + // "CertificateConflictException". + // + // Unable to verify the CA certificate used to sign the device certificate you + // are attempting to register. This is happens when you have registered more + // than one CA certificate that has the same subject field and public key. + ErrCodeCertificateConflictException = "CertificateConflictException" + + // ErrCodeCertificateStateException for service response error code + // "CertificateStateException". + // + // The certificate operation is not allowed. + ErrCodeCertificateStateException = "CertificateStateException" + + // ErrCodeCertificateValidationException for service response error code + // "CertificateValidationException". + // + // The certificate is invalid. + ErrCodeCertificateValidationException = "CertificateValidationException" + + // ErrCodeDeleteConflictException for service response error code + // "DeleteConflictException". + // + // You can't delete the resource because it is attached to one or more resources. + ErrCodeDeleteConflictException = "DeleteConflictException" + + // ErrCodeInternalException for service response error code + // "InternalException". + // + // An unexpected error has occurred. + ErrCodeInternalException = "InternalException" + + // ErrCodeInternalFailureException for service response error code + // "InternalFailureException". + // + // An unexpected error has occurred. + ErrCodeInternalFailureException = "InternalFailureException" + + // ErrCodeInvalidRequestException for service response error code + // "InvalidRequestException". + // + // The request is not valid. + ErrCodeInvalidRequestException = "InvalidRequestException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // The number of attached entities exceeds the limit. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeMalformedPolicyException for service response error code + // "MalformedPolicyException". + // + // The policy documentation is not valid. + ErrCodeMalformedPolicyException = "MalformedPolicyException" + + // ErrCodeRegistrationCodeValidationException for service response error code + // "RegistrationCodeValidationException". + // + // The registration code is invalid. + ErrCodeRegistrationCodeValidationException = "RegistrationCodeValidationException" + + // ErrCodeResourceAlreadyExistsException for service response error code + // "ResourceAlreadyExistsException". + // + // The resource already exists. + ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The specified resource does not exist. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeServiceUnavailableException for service response error code + // "ServiceUnavailableException". + // + // The service is temporarily unavailable. + ErrCodeServiceUnavailableException = "ServiceUnavailableException" + + // ErrCodeSqlParseException for service response error code + // "SqlParseException". + // + // The Rule-SQL expression can't be parsed correctly. + ErrCodeSqlParseException = "SqlParseException" + + // ErrCodeThrottlingException for service response error code + // "ThrottlingException". + // + // The rate exceeds the limit. + ErrCodeThrottlingException = "ThrottlingException" + + // ErrCodeTransferAlreadyCompletedException for service response error code + // "TransferAlreadyCompletedException". + // + // You can't revert the certificate transfer because the transfer is already + // complete. + ErrCodeTransferAlreadyCompletedException = "TransferAlreadyCompletedException" + + // ErrCodeTransferConflictException for service response error code + // "TransferConflictException". + // + // You can't transfer the certificate because authorization policies are still + // attached. + ErrCodeTransferConflictException = "TransferConflictException" + + // ErrCodeUnauthorizedException for service response error code + // "UnauthorizedException". + // + // You are not authorized to perform this operation. + ErrCodeUnauthorizedException = "UnauthorizedException" + + // ErrCodeVersionConflictException for service response error code + // "VersionConflictException". + // + // An exception thrown when the version of a thing passed to a command is different + // than the version specified with the --version parameter. + ErrCodeVersionConflictException = "VersionConflictException" + + // ErrCodeVersionsLimitExceededException for service response error code + // "VersionsLimitExceededException". + // + // The number of policy versions exceeds the limit. + ErrCodeVersionsLimitExceededException = "VersionsLimitExceededException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/iot/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/iot/examples_test.go index b96d91bff..e127a9846 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iot/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iot/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleIoT_AcceptCertificateTransfer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -42,11 +38,7 @@ func ExampleIoT_AcceptCertificateTransfer() { } func ExampleIoT_AttachPrincipalPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -68,11 +60,7 @@ func ExampleIoT_AttachPrincipalPolicy() { } func ExampleIoT_AttachThingPrincipal() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -94,11 +82,7 @@ func ExampleIoT_AttachThingPrincipal() { } func ExampleIoT_CancelCertificateTransfer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -119,11 +103,7 @@ func ExampleIoT_CancelCertificateTransfer() { } func ExampleIoT_CreateCertificateFromCsr() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -145,11 +125,7 @@ func ExampleIoT_CreateCertificateFromCsr() { } func ExampleIoT_CreateKeysAndCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -170,11 +146,7 @@ func ExampleIoT_CreateKeysAndCertificate() { } func ExampleIoT_CreatePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -196,11 +168,7 @@ func ExampleIoT_CreatePolicy() { } func ExampleIoT_CreatePolicyVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -223,11 +191,7 @@ func ExampleIoT_CreatePolicyVersion() { } func ExampleIoT_CreateThing() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -256,11 +220,7 @@ func ExampleIoT_CreateThing() { } func ExampleIoT_CreateThingType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -288,11 +248,7 @@ func ExampleIoT_CreateThingType() { } func ExampleIoT_CreateTopicRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -396,11 +352,7 @@ func ExampleIoT_CreateTopicRule() { } func ExampleIoT_DeleteCACertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -421,11 +373,7 @@ func ExampleIoT_DeleteCACertificate() { } func ExampleIoT_DeleteCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -446,11 +394,7 @@ func ExampleIoT_DeleteCertificate() { } func ExampleIoT_DeletePolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -471,11 +415,7 @@ func ExampleIoT_DeletePolicy() { } func ExampleIoT_DeletePolicyVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -497,11 +437,7 @@ func ExampleIoT_DeletePolicyVersion() { } func ExampleIoT_DeleteRegistrationCode() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -520,11 +456,7 @@ func ExampleIoT_DeleteRegistrationCode() { } func ExampleIoT_DeleteThing() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -546,11 +478,7 @@ func ExampleIoT_DeleteThing() { } func ExampleIoT_DeleteThingType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -571,11 +499,7 @@ func ExampleIoT_DeleteThingType() { } func ExampleIoT_DeleteTopicRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -596,11 +520,7 @@ func ExampleIoT_DeleteTopicRule() { } func ExampleIoT_DeprecateThingType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -622,11 +542,7 @@ func ExampleIoT_DeprecateThingType() { } func ExampleIoT_DescribeCACertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -647,11 +563,7 @@ func ExampleIoT_DescribeCACertificate() { } func ExampleIoT_DescribeCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -672,11 +584,7 @@ func ExampleIoT_DescribeCertificate() { } func ExampleIoT_DescribeEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -695,11 +603,7 @@ func ExampleIoT_DescribeEndpoint() { } func ExampleIoT_DescribeThing() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -720,11 +624,7 @@ func ExampleIoT_DescribeThing() { } func ExampleIoT_DescribeThingType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -745,11 +645,7 @@ func ExampleIoT_DescribeThingType() { } func ExampleIoT_DetachPrincipalPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -771,11 +667,7 @@ func ExampleIoT_DetachPrincipalPolicy() { } func ExampleIoT_DetachThingPrincipal() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -797,11 +689,7 @@ func ExampleIoT_DetachThingPrincipal() { } func ExampleIoT_DisableTopicRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -822,11 +710,7 @@ func ExampleIoT_DisableTopicRule() { } func ExampleIoT_EnableTopicRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -847,11 +731,7 @@ func ExampleIoT_EnableTopicRule() { } func ExampleIoT_GetLoggingOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -870,11 +750,7 @@ func ExampleIoT_GetLoggingOptions() { } func ExampleIoT_GetPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -895,11 +771,7 @@ func ExampleIoT_GetPolicy() { } func ExampleIoT_GetPolicyVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -921,11 +793,7 @@ func ExampleIoT_GetPolicyVersion() { } func ExampleIoT_GetRegistrationCode() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -944,11 +812,7 @@ func ExampleIoT_GetRegistrationCode() { } func ExampleIoT_GetTopicRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -969,11 +833,7 @@ func ExampleIoT_GetTopicRule() { } func ExampleIoT_ListCACertificates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -996,11 +856,7 @@ func ExampleIoT_ListCACertificates() { } func ExampleIoT_ListCertificates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1023,11 +879,7 @@ func ExampleIoT_ListCertificates() { } func ExampleIoT_ListCertificatesByCA() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1051,11 +903,7 @@ func ExampleIoT_ListCertificatesByCA() { } func ExampleIoT_ListOutgoingCertificates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1078,11 +926,7 @@ func ExampleIoT_ListOutgoingCertificates() { } func ExampleIoT_ListPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1105,11 +949,7 @@ func ExampleIoT_ListPolicies() { } func ExampleIoT_ListPolicyPrincipals() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1133,11 +973,7 @@ func ExampleIoT_ListPolicyPrincipals() { } func ExampleIoT_ListPolicyVersions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1158,11 +994,7 @@ func ExampleIoT_ListPolicyVersions() { } func ExampleIoT_ListPrincipalPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1186,11 +1018,7 @@ func ExampleIoT_ListPrincipalPolicies() { } func ExampleIoT_ListPrincipalThings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1213,11 +1041,7 @@ func ExampleIoT_ListPrincipalThings() { } func ExampleIoT_ListThingPrincipals() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1238,11 +1062,7 @@ func ExampleIoT_ListThingPrincipals() { } func ExampleIoT_ListThingTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1265,11 +1085,7 @@ func ExampleIoT_ListThingTypes() { } func ExampleIoT_ListThings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1294,11 +1110,7 @@ func ExampleIoT_ListThings() { } func ExampleIoT_ListTopicRules() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1322,11 +1134,7 @@ func ExampleIoT_ListTopicRules() { } func ExampleIoT_RegisterCACertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1350,11 +1158,7 @@ func ExampleIoT_RegisterCACertificate() { } func ExampleIoT_RegisterCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1378,11 +1182,7 @@ func ExampleIoT_RegisterCertificate() { } func ExampleIoT_RejectCertificateTransfer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1404,11 +1204,7 @@ func ExampleIoT_RejectCertificateTransfer() { } func ExampleIoT_ReplaceTopicRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1512,11 +1308,7 @@ func ExampleIoT_ReplaceTopicRule() { } func ExampleIoT_SetDefaultPolicyVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1538,11 +1330,7 @@ func ExampleIoT_SetDefaultPolicyVersion() { } func ExampleIoT_SetLoggingOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1566,11 +1354,7 @@ func ExampleIoT_SetLoggingOptions() { } func ExampleIoT_TransferCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1593,11 +1377,7 @@ func ExampleIoT_TransferCertificate() { } func ExampleIoT_UpdateCACertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1620,11 +1400,7 @@ func ExampleIoT_UpdateCACertificate() { } func ExampleIoT_UpdateCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) @@ -1646,11 +1422,7 @@ func ExampleIoT_UpdateCertificate() { } func ExampleIoT_UpdateThing() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iot.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/iot/iotiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/iot/iotiface/interface.go index 6d08b2b47..049c9c14b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iot/iotiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iot/iotiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockIoTClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/iot/service.go b/vendor/github.com/aws/aws-sdk-go/service/iot/service.go index 38869db5f..3644389a4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iot/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iot/service.go @@ -19,7 +19,7 @@ import ( // logging, and create and manage policies and credentials to authenticate things. // // For more information about how AWS IoT works, see the Developer Guide (http://docs.aws.amazon.com/iot/latest/developerguide/aws-iot-how-it-works.html). -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type IoT struct { *client.Client @@ -31,8 +31,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "iot" +// Service information constants +const ( + ServiceName = "iot" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the IoT client with a session. // If additional configuration is needed for the client instance use the optional @@ -45,18 +48,21 @@ const ServiceName = "iot" // // Create a IoT client with additional configuration // svc := iot.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *IoT { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *IoT { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *IoT { + if len(signingName) == 0 { + signingName = "execute-api" + } svc := &IoT{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, - SigningName: "execute-api", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-05-28", diff --git a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/api.go b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/api.go index ac38fd305..f5897cd36 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/api.go @@ -36,6 +36,7 @@ const opDeleteThingShadow = "DeleteThingShadow" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iot-data-2015-05-28/DeleteThingShadow func (c *IoTDataPlane) DeleteThingShadowRequest(input *DeleteThingShadowInput) (req *request.Request, output *DeleteThingShadowOutput) { op := &request.Operation{ Name: opDeleteThingShadow, @@ -47,9 +48,8 @@ func (c *IoTDataPlane) DeleteThingShadowRequest(input *DeleteThingShadowInput) ( input = &DeleteThingShadowInput{} } - req = c.newRequest(op, input, output) output = &DeleteThingShadowOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -68,30 +68,31 @@ func (c *IoTDataPlane) DeleteThingShadowRequest(input *DeleteThingShadowInput) ( // API operation DeleteThingShadow for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // -// * MethodNotAllowedException +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" // The specified combination of HTTP verb and URI is not supported. // -// * UnsupportedDocumentEncodingException +// * ErrCodeUnsupportedDocumentEncodingException "UnsupportedDocumentEncodingException" // The document encoding is not supported. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iot-data-2015-05-28/DeleteThingShadow func (c *IoTDataPlane) DeleteThingShadow(input *DeleteThingShadowInput) (*DeleteThingShadowOutput, error) { req, out := c.DeleteThingShadowRequest(input) err := req.Send() @@ -124,6 +125,7 @@ const opGetThingShadow = "GetThingShadow" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iot-data-2015-05-28/GetThingShadow func (c *IoTDataPlane) GetThingShadowRequest(input *GetThingShadowInput) (req *request.Request, output *GetThingShadowOutput) { op := &request.Operation{ Name: opGetThingShadow, @@ -135,9 +137,8 @@ func (c *IoTDataPlane) GetThingShadowRequest(input *GetThingShadowInput) (req *r input = &GetThingShadowInput{} } - req = c.newRequest(op, input, output) output = &GetThingShadowOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -156,30 +157,31 @@ func (c *IoTDataPlane) GetThingShadowRequest(input *GetThingShadowInput) (req *r // API operation GetThingShadow for usage and error information. // // Returned Error Codes: -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource does not exist. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // -// * MethodNotAllowedException +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" // The specified combination of HTTP verb and URI is not supported. // -// * UnsupportedDocumentEncodingException +// * ErrCodeUnsupportedDocumentEncodingException "UnsupportedDocumentEncodingException" // The document encoding is not supported. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iot-data-2015-05-28/GetThingShadow func (c *IoTDataPlane) GetThingShadow(input *GetThingShadowInput) (*GetThingShadowOutput, error) { req, out := c.GetThingShadowRequest(input) err := req.Send() @@ -212,6 +214,7 @@ const opPublish = "Publish" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iot-data-2015-05-28/Publish func (c *IoTDataPlane) PublishRequest(input *PublishInput) (req *request.Request, output *PublishOutput) { op := &request.Operation{ Name: opPublish, @@ -223,11 +226,10 @@ func (c *IoTDataPlane) PublishRequest(input *PublishInput) (req *request.Request input = &PublishInput{} } + output = &PublishOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PublishOutput{} - req.Data = output return } @@ -246,18 +248,19 @@ func (c *IoTDataPlane) PublishRequest(input *PublishInput) (req *request.Request // API operation Publish for usage and error information. // // Returned Error Codes: -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * MethodNotAllowedException +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" // The specified combination of HTTP verb and URI is not supported. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iot-data-2015-05-28/Publish func (c *IoTDataPlane) Publish(input *PublishInput) (*PublishOutput, error) { req, out := c.PublishRequest(input) err := req.Send() @@ -290,6 +293,7 @@ const opUpdateThingShadow = "UpdateThingShadow" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iot-data-2015-05-28/UpdateThingShadow func (c *IoTDataPlane) UpdateThingShadowRequest(input *UpdateThingShadowInput) (req *request.Request, output *UpdateThingShadowOutput) { op := &request.Operation{ Name: opUpdateThingShadow, @@ -301,9 +305,8 @@ func (c *IoTDataPlane) UpdateThingShadowRequest(input *UpdateThingShadowInput) ( input = &UpdateThingShadowInput{} } - req = c.newRequest(op, input, output) output = &UpdateThingShadowOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -322,33 +325,34 @@ func (c *IoTDataPlane) UpdateThingShadowRequest(input *UpdateThingShadowInput) ( // API operation UpdateThingShadow for usage and error information. // // Returned Error Codes: -// * ConflictException +// * ErrCodeConflictException "ConflictException" // The specified version does not match the version of the document. // -// * RequestEntityTooLargeException +// * ErrCodeRequestEntityTooLargeException "RequestEntityTooLargeException" // The payload exceeds the maximum size allowed. // -// * InvalidRequestException +// * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The rate exceeds the limit. // -// * UnauthorizedException +// * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // -// * ServiceUnavailableException +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // -// * InternalFailureException +// * ErrCodeInternalFailureException "InternalFailureException" // An unexpected error has occurred. // -// * MethodNotAllowedException +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" // The specified combination of HTTP verb and URI is not supported. // -// * UnsupportedDocumentEncodingException +// * ErrCodeUnsupportedDocumentEncodingException "UnsupportedDocumentEncodingException" // The document encoding is not supported. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iot-data-2015-05-28/UpdateThingShadow func (c *IoTDataPlane) UpdateThingShadow(input *UpdateThingShadowInput) (*UpdateThingShadowOutput, error) { req, out := c.UpdateThingShadowRequest(input) err := req.Send() @@ -356,6 +360,7 @@ func (c *IoTDataPlane) UpdateThingShadow(input *UpdateThingShadowInput) (*Update } // The input for the DeleteThingShadow operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iot-data-2015-05-28/DeleteThingShadowRequest type DeleteThingShadowInput struct { _ struct{} `type:"structure"` @@ -391,7 +396,14 @@ func (s *DeleteThingShadowInput) Validate() error { return nil } +// SetThingName sets the ThingName field's value. +func (s *DeleteThingShadowInput) SetThingName(v string) *DeleteThingShadowInput { + s.ThingName = &v + return s +} + // The output from the DeleteThingShadow operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iot-data-2015-05-28/DeleteThingShadowResponse type DeleteThingShadowOutput struct { _ struct{} `type:"structure" payload:"Payload"` @@ -411,7 +423,14 @@ func (s DeleteThingShadowOutput) GoString() string { return s.String() } +// SetPayload sets the Payload field's value. +func (s *DeleteThingShadowOutput) SetPayload(v []byte) *DeleteThingShadowOutput { + s.Payload = v + return s +} + // The input for the GetThingShadow operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iot-data-2015-05-28/GetThingShadowRequest type GetThingShadowInput struct { _ struct{} `type:"structure"` @@ -447,7 +466,14 @@ func (s *GetThingShadowInput) Validate() error { return nil } +// SetThingName sets the ThingName field's value. +func (s *GetThingShadowInput) SetThingName(v string) *GetThingShadowInput { + s.ThingName = &v + return s +} + // The output from the GetThingShadow operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iot-data-2015-05-28/GetThingShadowResponse type GetThingShadowOutput struct { _ struct{} `type:"structure" payload:"Payload"` @@ -465,7 +491,14 @@ func (s GetThingShadowOutput) GoString() string { return s.String() } +// SetPayload sets the Payload field's value. +func (s *GetThingShadowOutput) SetPayload(v []byte) *GetThingShadowOutput { + s.Payload = v + return s +} + // The input for the Publish operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iot-data-2015-05-28/PublishRequest type PublishInput struct { _ struct{} `type:"structure" payload:"Payload"` @@ -504,6 +537,25 @@ func (s *PublishInput) Validate() error { return nil } +// SetPayload sets the Payload field's value. +func (s *PublishInput) SetPayload(v []byte) *PublishInput { + s.Payload = v + return s +} + +// SetQos sets the Qos field's value. +func (s *PublishInput) SetQos(v int64) *PublishInput { + s.Qos = &v + return s +} + +// SetTopic sets the Topic field's value. +func (s *PublishInput) SetTopic(v string) *PublishInput { + s.Topic = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iot-data-2015-05-28/PublishOutput type PublishOutput struct { _ struct{} `type:"structure"` } @@ -519,6 +571,7 @@ func (s PublishOutput) GoString() string { } // The input for the UpdateThingShadow operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iot-data-2015-05-28/UpdateThingShadowRequest type UpdateThingShadowInput struct { _ struct{} `type:"structure" payload:"Payload"` @@ -562,7 +615,20 @@ func (s *UpdateThingShadowInput) Validate() error { return nil } +// SetPayload sets the Payload field's value. +func (s *UpdateThingShadowInput) SetPayload(v []byte) *UpdateThingShadowInput { + s.Payload = v + return s +} + +// SetThingName sets the ThingName field's value. +func (s *UpdateThingShadowInput) SetThingName(v string) *UpdateThingShadowInput { + s.ThingName = &v + return s +} + // The output from the UpdateThingShadow operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iot-data-2015-05-28/UpdateThingShadowResponse type UpdateThingShadowOutput struct { _ struct{} `type:"structure" payload:"Payload"` @@ -579,3 +645,9 @@ func (s UpdateThingShadowOutput) String() string { func (s UpdateThingShadowOutput) GoString() string { return s.String() } + +// SetPayload sets the Payload field's value. +func (s *UpdateThingShadowOutput) SetPayload(v []byte) *UpdateThingShadowOutput { + s.Payload = v + return s +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/customizations_test.go b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/customizations_test.go index 4bb81a044..edc9ac440 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/customizations_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/customizations_test.go @@ -2,9 +2,10 @@ package iotdataplane_test import ( "fmt" - "github.com/stretchr/testify/assert" "testing" + "github.com/stretchr/testify/assert" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/awstesting/unit" "github.com/aws/aws-sdk-go/service/iotdataplane" @@ -25,7 +26,6 @@ func TestRequireEndpointIfRegionProvided(t *testing.T) { func TestRequireEndpointIfNoRegionProvided(t *testing.T) { svc := iotdataplane.New(unit.Session, &aws.Config{ - Region: aws.String(""), DisableParamValidation: aws.Bool(true), }) fmt.Println(svc.ClientInfo.SigningRegion) diff --git a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/errors.go b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/errors.go new file mode 100644 index 000000000..8aa041fcd --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/errors.go @@ -0,0 +1,66 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package iotdataplane + +const ( + + // ErrCodeConflictException for service response error code + // "ConflictException". + // + // The specified version does not match the version of the document. + ErrCodeConflictException = "ConflictException" + + // ErrCodeInternalFailureException for service response error code + // "InternalFailureException". + // + // An unexpected error has occurred. + ErrCodeInternalFailureException = "InternalFailureException" + + // ErrCodeInvalidRequestException for service response error code + // "InvalidRequestException". + // + // The request is not valid. + ErrCodeInvalidRequestException = "InvalidRequestException" + + // ErrCodeMethodNotAllowedException for service response error code + // "MethodNotAllowedException". + // + // The specified combination of HTTP verb and URI is not supported. + ErrCodeMethodNotAllowedException = "MethodNotAllowedException" + + // ErrCodeRequestEntityTooLargeException for service response error code + // "RequestEntityTooLargeException". + // + // The payload exceeds the maximum size allowed. + ErrCodeRequestEntityTooLargeException = "RequestEntityTooLargeException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The specified resource does not exist. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeServiceUnavailableException for service response error code + // "ServiceUnavailableException". + // + // The service is temporarily unavailable. + ErrCodeServiceUnavailableException = "ServiceUnavailableException" + + // ErrCodeThrottlingException for service response error code + // "ThrottlingException". + // + // The rate exceeds the limit. + ErrCodeThrottlingException = "ThrottlingException" + + // ErrCodeUnauthorizedException for service response error code + // "UnauthorizedException". + // + // You are not authorized to perform this operation. + ErrCodeUnauthorizedException = "UnauthorizedException" + + // ErrCodeUnsupportedDocumentEncodingException for service response error code + // "UnsupportedDocumentEncodingException". + // + // The document encoding is not supported. + ErrCodeUnsupportedDocumentEncodingException = "UnsupportedDocumentEncodingException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/examples_test.go index ca08392ad..5fbece52d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleIoTDataPlane_DeleteThingShadow() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iotdataplane.New(sess) @@ -41,11 +37,7 @@ func ExampleIoTDataPlane_DeleteThingShadow() { } func ExampleIoTDataPlane_GetThingShadow() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iotdataplane.New(sess) @@ -66,11 +58,7 @@ func ExampleIoTDataPlane_GetThingShadow() { } func ExampleIoTDataPlane_Publish() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iotdataplane.New(sess) @@ -93,11 +81,7 @@ func ExampleIoTDataPlane_Publish() { } func ExampleIoTDataPlane_UpdateThingShadow() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := iotdataplane.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/iotdataplaneiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/iotdataplaneiface/interface.go index 22028f6f6..382c6bee2 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/iotdataplaneiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/iotdataplaneiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockIoTDataPlaneClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/service.go b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/service.go index 888b329d0..5bbe06a9b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/service.go @@ -17,8 +17,9 @@ import ( // publish messages over HTTP (Publish) and retrieve, update, and delete thing // shadows. A thing shadow is a persistent representation of your things and // their state in the AWS cloud. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/iot-data-2015-05-28 type IoTDataPlane struct { *client.Client } @@ -29,8 +30,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "data.iot" +// Service information constants +const ( + ServiceName = "data.iot" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the IoTDataPlane client with a session. // If additional configuration is needed for the client instance use the optional @@ -43,18 +47,26 @@ const ServiceName = "data.iot" // // Create a IoTDataPlane client with additional configuration // svc := iotdataplane.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *IoTDataPlane { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + var c client.Config + if v, ok := p.(client.ConfigNoResolveEndpointProvider); ok { + c = v.ClientConfigNoResolveEndpoint(cfgs...) + } else { + c = p.ClientConfig(EndpointsID, cfgs...) + } + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *IoTDataPlane { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *IoTDataPlane { + if len(signingName) == 0 { + signingName = "iotdata" + } svc := &IoTDataPlane{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, - SigningName: "iotdata", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-05-28", diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go b/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go index 1d5749fa2..e36f23d22 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go @@ -39,6 +39,7 @@ const opAddTagsToStream = "AddTagsToStream" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/AddTagsToStream func (c *Kinesis) AddTagsToStreamRequest(input *AddTagsToStreamInput) (req *request.Request, output *AddTagsToStreamOutput) { op := &request.Operation{ Name: opAddTagsToStream, @@ -50,11 +51,10 @@ func (c *Kinesis) AddTagsToStreamRequest(input *AddTagsToStreamInput) (req *requ input = &AddTagsToStreamInput{} } + output = &AddTagsToStreamOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AddTagsToStreamOutput{} - req.Data = output return } @@ -74,23 +74,23 @@ func (c *Kinesis) AddTagsToStreamRequest(input *AddTagsToStreamInput) (req *requ // API operation AddTagsToStream for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is not available for this operation. For successful operation, // the resource needs to be in the ACTIVE state. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/AddTagsToStream func (c *Kinesis) AddTagsToStream(input *AddTagsToStreamInput) (*AddTagsToStreamOutput, error) { req, out := c.AddTagsToStreamRequest(input) err := req.Send() @@ -123,6 +123,7 @@ const opCreateStream = "CreateStream" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/CreateStream func (c *Kinesis) CreateStreamRequest(input *CreateStreamInput) (req *request.Request, output *CreateStreamOutput) { op := &request.Operation{ Name: opCreateStream, @@ -134,11 +135,10 @@ func (c *Kinesis) CreateStreamRequest(input *CreateStreamInput) (req *request.Re input = &CreateStreamInput{} } + output = &CreateStreamOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CreateStreamOutput{} - req.Data = output return } @@ -167,12 +167,14 @@ func (c *Kinesis) CreateStreamRequest(input *CreateStreamInput) (req *request.Re // to ACTIVE. You should perform read and write operations only on an ACTIVE // stream. // -// You receive a LimitExceededException when making a CreateStream request -// if you try to do one of the following: +// You receive a LimitExceededException when making a CreateStream request if +// you try to do one of the following: // -// Have more than five streams in the CREATING state at any point in time. -// Create more shards than are authorized for your account. For the default -// shard limit for an AWS account, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) +// * Have more than five streams in the CREATING state at any point in time. +// +// * Create more shards than are authorized for your account. +// +// For the default shard limit for an AWS account, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) // in the Amazon Kinesis Streams Developer Guide. If you need to increase this // limit, contact AWS Support (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html). // @@ -189,18 +191,19 @@ func (c *Kinesis) CreateStreamRequest(input *CreateStreamInput) (req *request.Re // API operation CreateStream for usage and error information. // // Returned Error Codes: -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is not available for this operation. For successful operation, // the resource needs to be in the ACTIVE state. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/CreateStream func (c *Kinesis) CreateStream(input *CreateStreamInput) (*CreateStreamOutput, error) { req, out := c.CreateStreamRequest(input) err := req.Send() @@ -233,6 +236,7 @@ const opDecreaseStreamRetentionPeriod = "DecreaseStreamRetentionPeriod" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DecreaseStreamRetentionPeriod func (c *Kinesis) DecreaseStreamRetentionPeriodRequest(input *DecreaseStreamRetentionPeriodInput) (req *request.Request, output *DecreaseStreamRetentionPeriodOutput) { op := &request.Operation{ Name: opDecreaseStreamRetentionPeriod, @@ -244,11 +248,10 @@ func (c *Kinesis) DecreaseStreamRetentionPeriodRequest(input *DecreaseStreamRete input = &DecreaseStreamRetentionPeriodInput{} } + output = &DecreaseStreamRetentionPeriodOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DecreaseStreamRetentionPeriodOutput{} - req.Data = output return } @@ -270,23 +273,19 @@ func (c *Kinesis) DecreaseStreamRetentionPeriodRequest(input *DecreaseStreamRete // API operation DecreaseStreamRetentionPeriod for usage and error information. // // Returned Error Codes: -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is not available for this operation. For successful operation, // the resource needs to be in the ACTIVE state. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. -// -// * LimitExceededException -// The requested resource exceeds the maximum number allowed, or the number -// of concurrent stream requests exceeds the maximum number allowed (5). +// correctly. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DecreaseStreamRetentionPeriod func (c *Kinesis) DecreaseStreamRetentionPeriod(input *DecreaseStreamRetentionPeriodInput) (*DecreaseStreamRetentionPeriodOutput, error) { req, out := c.DecreaseStreamRetentionPeriodRequest(input) err := req.Send() @@ -319,6 +318,7 @@ const opDeleteStream = "DeleteStream" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DeleteStream func (c *Kinesis) DeleteStreamRequest(input *DeleteStreamInput) (req *request.Request, output *DeleteStreamOutput) { op := &request.Operation{ Name: opDeleteStream, @@ -330,11 +330,10 @@ func (c *Kinesis) DeleteStreamRequest(input *DeleteStreamInput) (req *request.Re input = &DeleteStreamInput{} } + output = &DeleteStreamOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteStreamOutput{} - req.Data = output return } @@ -369,21 +368,92 @@ func (c *Kinesis) DeleteStreamRequest(input *DeleteStreamInput) (req *request.Re // API operation DeleteStream for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DeleteStream func (c *Kinesis) DeleteStream(input *DeleteStreamInput) (*DeleteStreamOutput, error) { req, out := c.DeleteStreamRequest(input) err := req.Send() return out, err } +const opDescribeLimits = "DescribeLimits" + +// DescribeLimitsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeLimits operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeLimits for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeLimits method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeLimitsRequest method. +// req, resp := client.DescribeLimitsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DescribeLimits +func (c *Kinesis) DescribeLimitsRequest(input *DescribeLimitsInput) (req *request.Request, output *DescribeLimitsOutput) { + op := &request.Operation{ + Name: opDescribeLimits, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeLimitsInput{} + } + + output = &DescribeLimitsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeLimits API operation for Amazon Kinesis. +// +// Describes the shard limits and usage for the account. +// +// If you update your account limits, the old limits might be returned for a +// few minutes. +// +// This operation has a limit of 1 transaction per second per account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation DescribeLimits for usage and error information. +// +// Returned Error Codes: +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed (5). +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DescribeLimits +func (c *Kinesis) DescribeLimits(input *DescribeLimitsInput) (*DescribeLimitsOutput, error) { + req, out := c.DescribeLimitsRequest(input) + err := req.Send() + return out, err +} + const opDescribeStream = "DescribeStream" // DescribeStreamRequest generates a "aws/request.Request" representing the @@ -410,6 +480,7 @@ const opDescribeStream = "DescribeStream" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DescribeStream func (c *Kinesis) DescribeStreamRequest(input *DescribeStreamInput) (req *request.Request, output *DescribeStreamOutput) { op := &request.Operation{ Name: opDescribeStream, @@ -427,9 +498,8 @@ func (c *Kinesis) DescribeStreamRequest(input *DescribeStreamInput) (req *reques input = &DescribeStreamInput{} } - req = c.newRequest(op, input, output) output = &DescribeStreamOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -437,30 +507,23 @@ func (c *Kinesis) DescribeStreamRequest(input *DescribeStreamInput) (req *reques // // Describes the specified Amazon Kinesis stream. // -// The information about the stream includes its current status, its Amazon -// Resource Name (ARN), and an array of shard objects. For each shard object, -// there is information about the hash key and sequence number ranges that the -// shard spans, and the IDs of any earlier shards that played in a role in creating -// the shard. A sequence number is the identifier associated with every record -// ingested in the stream. The sequence number is assigned when a record is -// put into the stream. +// The information returned includes the stream name, Amazon Resource Name (ARN), +// creation time, enhanced metric configuration, and shard map. The shard map +// is an array of shard objects. For each shard object, there is the hash key +// and sequence number ranges that the shard spans, and the IDs of any earlier +// shards that played in a role in creating the shard. Every record ingested +// in the stream is identified by a sequence number, which is assigned when +// the record is put into the stream. // -// You can limit the number of returned shards using the Limit parameter. The -// number of shards in a stream may be too large to return from a single call -// to DescribeStream. You can detect this by using the HasMoreShards flag in -// the returned output. HasMoreShards is set to true when there is more data -// available. -// -// DescribeStream is a paginated operation. If there are more shards available, -// you can request them using the shard ID of the last shard returned. Specify -// this ID in the ExclusiveStartShardId parameter in a subsequent request to -// DescribeStream. +// You can limit the number of shards returned by each call. For more information, +// see Retrieving Shards from a Stream (http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-retrieve-shards.html) +// in the Amazon Kinesis Streams Developer Guide. // -// There are no guarantees about the chronological order shards returned in -// DescribeStream results. If you want to process shards in chronological order, -// use ParentShardId to track lineage to the oldest shard. +// There are no guarantees about the chronological order shards returned. To +// process shards in chronological order, use the ID of the parent shard to +// track the lineage to the oldest shard. // -// DescribeStream has a limit of 10 transactions per second per account. +// This operation has a limit of 10 transactions per second per account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -470,15 +533,15 @@ func (c *Kinesis) DescribeStreamRequest(input *DescribeStreamInput) (req *reques // API operation DescribeStream for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DescribeStream func (c *Kinesis) DescribeStream(input *DescribeStreamInput) (*DescribeStreamOutput, error) { req, out := c.DescribeStreamRequest(input) err := req.Send() @@ -536,6 +599,7 @@ const opDisableEnhancedMonitoring = "DisableEnhancedMonitoring" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DisableEnhancedMonitoring func (c *Kinesis) DisableEnhancedMonitoringRequest(input *DisableEnhancedMonitoringInput) (req *request.Request, output *EnhancedMonitoringOutput) { op := &request.Operation{ Name: opDisableEnhancedMonitoring, @@ -547,9 +611,8 @@ func (c *Kinesis) DisableEnhancedMonitoringRequest(input *DisableEnhancedMonitor input = &DisableEnhancedMonitoringInput{} } - req = c.newRequest(op, input, output) output = &EnhancedMonitoringOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -565,23 +628,23 @@ func (c *Kinesis) DisableEnhancedMonitoringRequest(input *DisableEnhancedMonitor // API operation DisableEnhancedMonitoring for usage and error information. // // Returned Error Codes: -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is not available for this operation. For successful operation, // the resource needs to be in the ACTIVE state. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DisableEnhancedMonitoring func (c *Kinesis) DisableEnhancedMonitoring(input *DisableEnhancedMonitoringInput) (*EnhancedMonitoringOutput, error) { req, out := c.DisableEnhancedMonitoringRequest(input) err := req.Send() @@ -614,6 +677,7 @@ const opEnableEnhancedMonitoring = "EnableEnhancedMonitoring" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/EnableEnhancedMonitoring func (c *Kinesis) EnableEnhancedMonitoringRequest(input *EnableEnhancedMonitoringInput) (req *request.Request, output *EnhancedMonitoringOutput) { op := &request.Operation{ Name: opEnableEnhancedMonitoring, @@ -625,9 +689,8 @@ func (c *Kinesis) EnableEnhancedMonitoringRequest(input *EnableEnhancedMonitorin input = &EnableEnhancedMonitoringInput{} } - req = c.newRequest(op, input, output) output = &EnhancedMonitoringOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -643,23 +706,23 @@ func (c *Kinesis) EnableEnhancedMonitoringRequest(input *EnableEnhancedMonitorin // API operation EnableEnhancedMonitoring for usage and error information. // // Returned Error Codes: -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is not available for this operation. For successful operation, // the resource needs to be in the ACTIVE state. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/EnableEnhancedMonitoring func (c *Kinesis) EnableEnhancedMonitoring(input *EnableEnhancedMonitoringInput) (*EnhancedMonitoringOutput, error) { req, out := c.EnableEnhancedMonitoringRequest(input) err := req.Send() @@ -692,6 +755,7 @@ const opGetRecords = "GetRecords" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/GetRecords func (c *Kinesis) GetRecordsRequest(input *GetRecordsInput) (req *request.Request, output *GetRecordsOutput) { op := &request.Operation{ Name: opGetRecords, @@ -703,9 +767,8 @@ func (c *Kinesis) GetRecordsRequest(input *GetRecordsInput) (req *request.Reques input = &GetRecordsInput{} } - req = c.newRequest(op, input, output) output = &GetRecordsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -773,16 +836,15 @@ func (c *Kinesis) GetRecordsRequest(input *GetRecordsInput) (req *request.Reques // API operation GetRecords for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // The request rate for the stream is too high, or the requested data is too // large for the available throughput. Reduce the frequency or size of your // requests. For more information, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) @@ -790,9 +852,10 @@ func (c *Kinesis) GetRecordsRequest(input *GetRecordsInput) (req *request.Reques // Backoff in AWS (http://docs.aws.amazon.com/general/latest/gr/api-retries.html) // in the AWS General Reference. // -// * ExpiredIteratorException +// * ErrCodeExpiredIteratorException "ExpiredIteratorException" // The provided iterator exceeds the maximum age allowed. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/GetRecords func (c *Kinesis) GetRecords(input *GetRecordsInput) (*GetRecordsOutput, error) { req, out := c.GetRecordsRequest(input) err := req.Send() @@ -825,6 +888,7 @@ const opGetShardIterator = "GetShardIterator" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/GetShardIterator func (c *Kinesis) GetShardIteratorRequest(input *GetShardIteratorInput) (req *request.Request, output *GetShardIteratorOutput) { op := &request.Operation{ Name: opGetShardIterator, @@ -836,9 +900,8 @@ func (c *Kinesis) GetShardIteratorRequest(input *GetShardIteratorInput) (req *re input = &GetShardIteratorInput{} } - req = c.newRequest(op, input, output) output = &GetShardIteratorOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -891,16 +954,15 @@ func (c *Kinesis) GetShardIteratorRequest(input *GetShardIteratorInput) (req *re // API operation GetShardIterator for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // The request rate for the stream is too high, or the requested data is too // large for the available throughput. Reduce the frequency or size of your // requests. For more information, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) @@ -908,6 +970,7 @@ func (c *Kinesis) GetShardIteratorRequest(input *GetShardIteratorInput) (req *re // Backoff in AWS (http://docs.aws.amazon.com/general/latest/gr/api-retries.html) // in the AWS General Reference. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/GetShardIterator func (c *Kinesis) GetShardIterator(input *GetShardIteratorInput) (*GetShardIteratorOutput, error) { req, out := c.GetShardIteratorRequest(input) err := req.Send() @@ -940,6 +1003,7 @@ const opIncreaseStreamRetentionPeriod = "IncreaseStreamRetentionPeriod" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/IncreaseStreamRetentionPeriod func (c *Kinesis) IncreaseStreamRetentionPeriodRequest(input *IncreaseStreamRetentionPeriodInput) (req *request.Request, output *IncreaseStreamRetentionPeriodOutput) { op := &request.Operation{ Name: opIncreaseStreamRetentionPeriod, @@ -951,11 +1015,10 @@ func (c *Kinesis) IncreaseStreamRetentionPeriodRequest(input *IncreaseStreamRete input = &IncreaseStreamRetentionPeriodInput{} } + output = &IncreaseStreamRetentionPeriodOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &IncreaseStreamRetentionPeriodOutput{} - req.Data = output return } @@ -981,23 +1044,19 @@ func (c *Kinesis) IncreaseStreamRetentionPeriodRequest(input *IncreaseStreamRete // API operation IncreaseStreamRetentionPeriod for usage and error information. // // Returned Error Codes: -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is not available for this operation. For successful operation, // the resource needs to be in the ACTIVE state. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // -// * LimitExceededException -// The requested resource exceeds the maximum number allowed, or the number -// of concurrent stream requests exceeds the maximum number allowed (5). -// -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/IncreaseStreamRetentionPeriod func (c *Kinesis) IncreaseStreamRetentionPeriod(input *IncreaseStreamRetentionPeriodInput) (*IncreaseStreamRetentionPeriodOutput, error) { req, out := c.IncreaseStreamRetentionPeriodRequest(input) err := req.Send() @@ -1030,6 +1089,7 @@ const opListStreams = "ListStreams" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/ListStreams func (c *Kinesis) ListStreamsRequest(input *ListStreamsInput) (req *request.Request, output *ListStreamsOutput) { op := &request.Operation{ Name: opListStreams, @@ -1047,9 +1107,8 @@ func (c *Kinesis) ListStreamsRequest(input *ListStreamsInput) (req *request.Requ input = &ListStreamsInput{} } - req = c.newRequest(op, input, output) output = &ListStreamsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1062,13 +1121,13 @@ func (c *Kinesis) ListStreamsRequest(input *ListStreamsInput) (req *request.Requ // you do not specify a value for the Limit parameter, Amazon Kinesis uses the // default limit, which is currently 10. // -// You can detect if there are more streams available to list by using the -// HasMoreStreams flag from the returned output. If there are more streams available, -// you can request more streams by using the name of the last stream returned -// by the ListStreams request in the ExclusiveStartStreamName parameter in a -// subsequent request to ListStreams. The group of stream names returned by -// the subsequent request is then added to the list. You can continue this process -// until all the stream names have been collected in the list. +// You can detect if there are more streams available to list by using the HasMoreStreams +// flag from the returned output. If there are more streams available, you can +// request more streams by using the name of the last stream returned by the +// ListStreams request in the ExclusiveStartStreamName parameter in a subsequent +// request to ListStreams. The group of stream names returned by the subsequent +// request is then added to the list. You can continue this process until all +// the stream names have been collected in the list. // // ListStreams has a limit of 5 transactions per second per account. // @@ -1080,10 +1139,11 @@ func (c *Kinesis) ListStreamsRequest(input *ListStreamsInput) (req *request.Requ // API operation ListStreams for usage and error information. // // Returned Error Codes: -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/ListStreams func (c *Kinesis) ListStreams(input *ListStreamsInput) (*ListStreamsOutput, error) { req, out := c.ListStreamsRequest(input) err := req.Send() @@ -1141,6 +1201,7 @@ const opListTagsForStream = "ListTagsForStream" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/ListTagsForStream func (c *Kinesis) ListTagsForStreamRequest(input *ListTagsForStreamInput) (req *request.Request, output *ListTagsForStreamOutput) { op := &request.Operation{ Name: opListTagsForStream, @@ -1152,9 +1213,8 @@ func (c *Kinesis) ListTagsForStreamRequest(input *ListTagsForStreamInput) (req * input = &ListTagsForStreamInput{} } - req = c.newRequest(op, input, output) output = &ListTagsForStreamOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1170,19 +1230,19 @@ func (c *Kinesis) ListTagsForStreamRequest(input *ListTagsForStreamInput) (req * // API operation ListTagsForStream for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/ListTagsForStream func (c *Kinesis) ListTagsForStream(input *ListTagsForStreamInput) (*ListTagsForStreamOutput, error) { req, out := c.ListTagsForStreamRequest(input) err := req.Send() @@ -1215,6 +1275,7 @@ const opMergeShards = "MergeShards" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/MergeShards func (c *Kinesis) MergeShardsRequest(input *MergeShardsInput) (req *request.Request, output *MergeShardsOutput) { op := &request.Operation{ Name: opMergeShards, @@ -1226,11 +1287,10 @@ func (c *Kinesis) MergeShardsRequest(input *MergeShardsInput) (req *request.Requ input = &MergeShardsInput{} } + output = &MergeShardsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &MergeShardsOutput{} - req.Data = output return } @@ -1265,8 +1325,8 @@ func (c *Kinesis) MergeShardsRequest(input *MergeShardsInput) (req *request.Requ // to ACTIVE. Read and write operations continue to work while the stream is // in the UPDATING state. // -// You use DescribeStream to determine the shard IDs that are specified in -// the MergeShards request. +// You use DescribeStream to determine the shard IDs that are specified in the +// MergeShards request. // // If you try to operate on too many streams in parallel using CreateStream, // DeleteStream, MergeShards or SplitShard, you will receive a LimitExceededException. @@ -1281,23 +1341,23 @@ func (c *Kinesis) MergeShardsRequest(input *MergeShardsInput) (req *request.Requ // API operation MergeShards for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is not available for this operation. For successful operation, // the resource needs to be in the ACTIVE state. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/MergeShards func (c *Kinesis) MergeShards(input *MergeShardsInput) (*MergeShardsOutput, error) { req, out := c.MergeShardsRequest(input) err := req.Send() @@ -1330,6 +1390,7 @@ const opPutRecord = "PutRecord" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/PutRecord func (c *Kinesis) PutRecordRequest(input *PutRecordInput) (req *request.Request, output *PutRecordOutput) { op := &request.Operation{ Name: opPutRecord, @@ -1341,9 +1402,8 @@ func (c *Kinesis) PutRecordRequest(input *PutRecordInput) (req *request.Request, input = &PutRecordInput{} } - req = c.newRequest(op, input, output) output = &PutRecordOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1396,16 +1456,15 @@ func (c *Kinesis) PutRecordRequest(input *PutRecordInput) (req *request.Request, // API operation PutRecord for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // The request rate for the stream is too high, or the requested data is too // large for the available throughput. Reduce the frequency or size of your // requests. For more information, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) @@ -1413,6 +1472,7 @@ func (c *Kinesis) PutRecordRequest(input *PutRecordInput) (req *request.Request, // Backoff in AWS (http://docs.aws.amazon.com/general/latest/gr/api-retries.html) // in the AWS General Reference. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/PutRecord func (c *Kinesis) PutRecord(input *PutRecordInput) (*PutRecordOutput, error) { req, out := c.PutRecordRequest(input) err := req.Send() @@ -1445,6 +1505,7 @@ const opPutRecords = "PutRecords" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/PutRecords func (c *Kinesis) PutRecordsRequest(input *PutRecordsInput) (req *request.Request, output *PutRecordsOutput) { op := &request.Operation{ Name: opPutRecords, @@ -1456,9 +1517,8 @@ func (c *Kinesis) PutRecordsRequest(input *PutRecordsInput) (req *request.Reques input = &PutRecordsInput{} } - req = c.newRequest(op, input, output) output = &PutRecordsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1481,10 +1541,10 @@ func (c *Kinesis) PutRecordsRequest(input *PutRecordsInput) (req *request.Reques // The data blob can be any type of data; for example, a segment from a log // file, geographic/location data, website clickstream data, and so on. // -// The partition key is used by Amazon Kinesis as input to a hash function -// that maps the partition key and associated data to a specific shard. An MD5 -// hash function is used to map partition keys to 128-bit integer values and -// to map associated data records to shards. As a result of this hashing mechanism, +// The partition key is used by Amazon Kinesis as input to a hash function that +// maps the partition key and associated data to a specific shard. An MD5 hash +// function is used to map partition keys to 128-bit integer values and to map +// associated data records to shards. As a result of this hashing mechanism, // all data records with the same partition key map to the same shard within // the stream. For more information, see Adding Data to a Stream (http://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-add-data-to-stream) // in the Amazon Kinesis Streams Developer Guide. @@ -1520,9 +1580,9 @@ func (c *Kinesis) PutRecordsRequest(input *PutRecordsInput) (req *request.Reques // see Adding Multiple Records with PutRecords (http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-add-data-to-stream.html#kinesis-using-sdk-java-putrecords) // in the Amazon Kinesis Streams Developer Guide. // -// By default, data records are accessible for only 24 hours from the time -// that they are added to an Amazon Kinesis stream. This retention period can -// be modified using the DecreaseStreamRetentionPeriod and IncreaseStreamRetentionPeriod +// By default, data records are accessible for only 24 hours from the time that +// they are added to an Amazon Kinesis stream. This retention period can be +// modified using the DecreaseStreamRetentionPeriod and IncreaseStreamRetentionPeriod // operations. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1533,16 +1593,15 @@ func (c *Kinesis) PutRecordsRequest(input *PutRecordsInput) (req *request.Reques // API operation PutRecords for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ProvisionedThroughputExceededException +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" // The request rate for the stream is too high, or the requested data is too // large for the available throughput. Reduce the frequency or size of your // requests. For more information, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) @@ -1550,6 +1609,7 @@ func (c *Kinesis) PutRecordsRequest(input *PutRecordsInput) (req *request.Reques // Backoff in AWS (http://docs.aws.amazon.com/general/latest/gr/api-retries.html) // in the AWS General Reference. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/PutRecords func (c *Kinesis) PutRecords(input *PutRecordsInput) (*PutRecordsOutput, error) { req, out := c.PutRecordsRequest(input) err := req.Send() @@ -1582,6 +1642,7 @@ const opRemoveTagsFromStream = "RemoveTagsFromStream" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/RemoveTagsFromStream func (c *Kinesis) RemoveTagsFromStreamRequest(input *RemoveTagsFromStreamInput) (req *request.Request, output *RemoveTagsFromStreamOutput) { op := &request.Operation{ Name: opRemoveTagsFromStream, @@ -1593,11 +1654,10 @@ func (c *Kinesis) RemoveTagsFromStreamRequest(input *RemoveTagsFromStreamInput) input = &RemoveTagsFromStreamInput{} } + output = &RemoveTagsFromStreamOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RemoveTagsFromStreamOutput{} - req.Data = output return } @@ -1616,23 +1676,23 @@ func (c *Kinesis) RemoveTagsFromStreamRequest(input *RemoveTagsFromStreamInput) // API operation RemoveTagsFromStream for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is not available for this operation. For successful operation, // the resource needs to be in the ACTIVE state. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/RemoveTagsFromStream func (c *Kinesis) RemoveTagsFromStream(input *RemoveTagsFromStreamInput) (*RemoveTagsFromStreamOutput, error) { req, out := c.RemoveTagsFromStreamRequest(input) err := req.Send() @@ -1665,6 +1725,7 @@ const opSplitShard = "SplitShard" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/SplitShard func (c *Kinesis) SplitShardRequest(input *SplitShardInput) (req *request.Request, output *SplitShardOutput) { op := &request.Operation{ Name: opSplitShard, @@ -1676,11 +1737,10 @@ func (c *Kinesis) SplitShardRequest(input *SplitShardInput) (req *request.Reques input = &SplitShardInput{} } + output = &SplitShardOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SplitShardOutput{} - req.Data = output return } @@ -1740,30 +1800,130 @@ func (c *Kinesis) SplitShardRequest(input *SplitShardInput) (req *request.Reques // API operation SplitShard for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The requested resource could not be found. The stream might not be specified -// correctly, or it might not be in the ACTIVE state if the operation requires -// it. +// correctly. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // The resource is not available for this operation. For successful operation, // the resource needs to be in the ACTIVE state. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed (5). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/SplitShard func (c *Kinesis) SplitShard(input *SplitShardInput) (*SplitShardOutput, error) { req, out := c.SplitShardRequest(input) err := req.Send() return out, err } +const opUpdateShardCount = "UpdateShardCount" + +// UpdateShardCountRequest generates a "aws/request.Request" representing the +// client's request for the UpdateShardCount operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateShardCount for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateShardCount method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateShardCountRequest method. +// req, resp := client.UpdateShardCountRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/UpdateShardCount +func (c *Kinesis) UpdateShardCountRequest(input *UpdateShardCountInput) (req *request.Request, output *UpdateShardCountOutput) { + op := &request.Operation{ + Name: opUpdateShardCount, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateShardCountInput{} + } + + output = &UpdateShardCountOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateShardCount API operation for Amazon Kinesis. +// +// Updates the shard count of the specified stream to the specified number of +// shards. +// +// Updating the shard count is an asynchronous operation. Upon receiving the +// request, Amazon Kinesis returns immediately and sets the status of the stream +// to UPDATING. After the update is complete, Amazon Kinesis sets the status +// of the stream back to ACTIVE. Depending on the size of the stream, the scaling +// action could take a few minutes to complete. You can continue to read and +// write data to your stream while its status is UPDATING. +// +// To update the shard count, Amazon Kinesis performs splits and merges and +// individual shards. This can cause short-lived shards to be created, in addition +// to the final shards. We recommend that you double or halve the shard count, +// as this results in the fewest number of splits or merges. +// +// This operation has a rate limit of twice per rolling 24 hour period. You +// cannot scale above double your current shard count, scale below half your +// current shard count, or exceed the shard limits for your account. +// +// For the default limits for an AWS account, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) +// in the Amazon Kinesis Streams Developer Guide. If you need to increase a +// limit, contact AWS Support (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation UpdateShardCount for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// A specified parameter exceeds its restrictions, is not supported, or can't +// be used. For more information, see the returned message. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed (5). +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The resource is not available for this operation. For successful operation, +// the resource needs to be in the ACTIVE state. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource could not be found. The stream might not be specified +// correctly. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/UpdateShardCount +func (c *Kinesis) UpdateShardCount(input *UpdateShardCountInput) (*UpdateShardCountOutput, error) { + req, out := c.UpdateShardCountRequest(input) + err := req.Send() + return out, err +} + // Represents the input for AddTagsToStream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/AddTagsToStreamInput type AddTagsToStreamInput struct { _ struct{} `type:"structure"` @@ -1810,6 +1970,19 @@ func (s *AddTagsToStreamInput) Validate() error { return nil } +// SetStreamName sets the StreamName field's value. +func (s *AddTagsToStreamInput) SetStreamName(v string) *AddTagsToStreamInput { + s.StreamName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsToStreamInput) SetTags(v map[string]*string) *AddTagsToStreamInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/AddTagsToStreamOutput type AddTagsToStreamOutput struct { _ struct{} `type:"structure"` } @@ -1825,6 +1998,7 @@ func (s AddTagsToStreamOutput) GoString() string { } // Represents the input for CreateStream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/CreateStreamInput type CreateStreamInput struct { _ struct{} `type:"structure"` @@ -1879,6 +2053,19 @@ func (s *CreateStreamInput) Validate() error { return nil } +// SetShardCount sets the ShardCount field's value. +func (s *CreateStreamInput) SetShardCount(v int64) *CreateStreamInput { + s.ShardCount = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *CreateStreamInput) SetStreamName(v string) *CreateStreamInput { + s.StreamName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/CreateStreamOutput type CreateStreamOutput struct { _ struct{} `type:"structure"` } @@ -1894,6 +2081,7 @@ func (s CreateStreamOutput) GoString() string { } // Represents the input for DecreaseStreamRetentionPeriod. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DecreaseStreamRetentionPeriodInput type DecreaseStreamRetentionPeriodInput struct { _ struct{} `type:"structure"` @@ -1901,7 +2089,7 @@ type DecreaseStreamRetentionPeriodInput struct { // retention period. // // RetentionPeriodHours is a required field - RetentionPeriodHours *int64 `min:"24" type:"integer" required:"true"` + RetentionPeriodHours *int64 `min:"1" type:"integer" required:"true"` // The name of the stream to modify. // @@ -1925,8 +2113,8 @@ func (s *DecreaseStreamRetentionPeriodInput) Validate() error { if s.RetentionPeriodHours == nil { invalidParams.Add(request.NewErrParamRequired("RetentionPeriodHours")) } - if s.RetentionPeriodHours != nil && *s.RetentionPeriodHours < 24 { - invalidParams.Add(request.NewErrParamMinValue("RetentionPeriodHours", 24)) + if s.RetentionPeriodHours != nil && *s.RetentionPeriodHours < 1 { + invalidParams.Add(request.NewErrParamMinValue("RetentionPeriodHours", 1)) } if s.StreamName == nil { invalidParams.Add(request.NewErrParamRequired("StreamName")) @@ -1941,6 +2129,19 @@ func (s *DecreaseStreamRetentionPeriodInput) Validate() error { return nil } +// SetRetentionPeriodHours sets the RetentionPeriodHours field's value. +func (s *DecreaseStreamRetentionPeriodInput) SetRetentionPeriodHours(v int64) *DecreaseStreamRetentionPeriodInput { + s.RetentionPeriodHours = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *DecreaseStreamRetentionPeriodInput) SetStreamName(v string) *DecreaseStreamRetentionPeriodInput { + s.StreamName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DecreaseStreamRetentionPeriodOutput type DecreaseStreamRetentionPeriodOutput struct { _ struct{} `type:"structure"` } @@ -1956,6 +2157,7 @@ func (s DecreaseStreamRetentionPeriodOutput) GoString() string { } // Represents the input for DeleteStream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DeleteStreamInput type DeleteStreamInput struct { _ struct{} `type:"structure"` @@ -1991,6 +2193,13 @@ func (s *DeleteStreamInput) Validate() error { return nil } +// SetStreamName sets the StreamName field's value. +func (s *DeleteStreamInput) SetStreamName(v string) *DeleteStreamInput { + s.StreamName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DeleteStreamOutput type DeleteStreamOutput struct { _ struct{} `type:"structure"` } @@ -2005,14 +2214,68 @@ func (s DeleteStreamOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DescribeLimitsInput +type DescribeLimitsInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DescribeLimitsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeLimitsInput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DescribeLimitsOutput +type DescribeLimitsOutput struct { + _ struct{} `type:"structure"` + + // The number of open shards. + // + // OpenShardCount is a required field + OpenShardCount *int64 `type:"integer" required:"true"` + + // The maximum number of shards. + // + // ShardLimit is a required field + ShardLimit *int64 `type:"integer" required:"true"` +} + +// String returns the string representation +func (s DescribeLimitsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeLimitsOutput) GoString() string { + return s.String() +} + +// SetOpenShardCount sets the OpenShardCount field's value. +func (s *DescribeLimitsOutput) SetOpenShardCount(v int64) *DescribeLimitsOutput { + s.OpenShardCount = &v + return s +} + +// SetShardLimit sets the ShardLimit field's value. +func (s *DescribeLimitsOutput) SetShardLimit(v int64) *DescribeLimitsOutput { + s.ShardLimit = &v + return s +} + // Represents the input for DescribeStream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DescribeStreamInput type DescribeStreamInput struct { _ struct{} `type:"structure"` // The shard ID of the shard to start with. ExclusiveStartShardId *string `min:"1" type:"string"` - // The maximum number of shards to return. + // The maximum number of shards to return in a single call. The default value + // is 100. If you specify a value greater than 100, at most 100 shards are returned. Limit *int64 `min:"1" type:"integer"` // The name of the stream to describe. @@ -2053,12 +2316,31 @@ func (s *DescribeStreamInput) Validate() error { return nil } +// SetExclusiveStartShardId sets the ExclusiveStartShardId field's value. +func (s *DescribeStreamInput) SetExclusiveStartShardId(v string) *DescribeStreamInput { + s.ExclusiveStartShardId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeStreamInput) SetLimit(v int64) *DescribeStreamInput { + s.Limit = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *DescribeStreamInput) SetStreamName(v string) *DescribeStreamInput { + s.StreamName = &v + return s +} + // Represents the output for DescribeStream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DescribeStreamOutput type DescribeStreamOutput struct { _ struct{} `type:"structure"` // The current status of the stream, the stream ARN, an array of shard objects - // that comprise the stream, and states whether there are more shards available. + // that comprise the stream, and whether there are more shards available. // // StreamDescription is a required field StreamDescription *StreamDescription `type:"structure" required:"true"` @@ -2074,7 +2356,14 @@ func (s DescribeStreamOutput) GoString() string { return s.String() } +// SetStreamDescription sets the StreamDescription field's value. +func (s *DescribeStreamOutput) SetStreamDescription(v *StreamDescription) *DescribeStreamOutput { + s.StreamDescription = v + return s +} + // Represents the input for DisableEnhancedMonitoring. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DisableEnhancedMonitoringInput type DisableEnhancedMonitoringInput struct { _ struct{} `type:"structure"` @@ -2083,9 +2372,23 @@ type DisableEnhancedMonitoringInput struct { // The following are the valid shard-level metrics. The value "ALL" disables // every metric. // - // IncomingBytes IncomingRecords OutgoingBytes OutgoingRecords WriteProvisionedThroughputExceeded - // ReadProvisionedThroughputExceeded IteratorAgeMilliseconds ALL For - // more information, see Monitoring the Amazon Kinesis Streams Service with + // * IncomingBytes + // + // * IncomingRecords + // + // * OutgoingBytes + // + // * OutgoingRecords + // + // * WriteProvisionedThroughputExceeded + // + // * ReadProvisionedThroughputExceeded + // + // * IteratorAgeMilliseconds + // + // * ALL + // + // For more information, see Monitoring the Amazon Kinesis Streams Service with // Amazon CloudWatch (http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html) // in the Amazon Kinesis Streams Developer Guide. // @@ -2130,7 +2433,20 @@ func (s *DisableEnhancedMonitoringInput) Validate() error { return nil } +// SetShardLevelMetrics sets the ShardLevelMetrics field's value. +func (s *DisableEnhancedMonitoringInput) SetShardLevelMetrics(v []*string) *DisableEnhancedMonitoringInput { + s.ShardLevelMetrics = v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *DisableEnhancedMonitoringInput) SetStreamName(v string) *DisableEnhancedMonitoringInput { + s.StreamName = &v + return s +} + // Represents the input for EnableEnhancedMonitoring. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/EnableEnhancedMonitoringInput type EnableEnhancedMonitoringInput struct { _ struct{} `type:"structure"` @@ -2139,9 +2455,23 @@ type EnableEnhancedMonitoringInput struct { // The following are the valid shard-level metrics. The value "ALL" enables // every metric. // - // IncomingBytes IncomingRecords OutgoingBytes OutgoingRecords WriteProvisionedThroughputExceeded - // ReadProvisionedThroughputExceeded IteratorAgeMilliseconds ALL For - // more information, see Monitoring the Amazon Kinesis Streams Service with + // * IncomingBytes + // + // * IncomingRecords + // + // * OutgoingBytes + // + // * OutgoingRecords + // + // * WriteProvisionedThroughputExceeded + // + // * ReadProvisionedThroughputExceeded + // + // * IteratorAgeMilliseconds + // + // * ALL + // + // For more information, see Monitoring the Amazon Kinesis Streams Service with // Amazon CloudWatch (http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html) // in the Amazon Kinesis Streams Developer Guide. // @@ -2186,7 +2516,20 @@ func (s *EnableEnhancedMonitoringInput) Validate() error { return nil } +// SetShardLevelMetrics sets the ShardLevelMetrics field's value. +func (s *EnableEnhancedMonitoringInput) SetShardLevelMetrics(v []*string) *EnableEnhancedMonitoringInput { + s.ShardLevelMetrics = v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *EnableEnhancedMonitoringInput) SetStreamName(v string) *EnableEnhancedMonitoringInput { + s.StreamName = &v + return s +} + // Represents enhanced metrics types. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/EnhancedMetrics type EnhancedMetrics struct { _ struct{} `type:"structure"` @@ -2195,9 +2538,23 @@ type EnhancedMetrics struct { // The following are the valid shard-level metrics. The value "ALL" enhances // every metric. // - // IncomingBytes IncomingRecords OutgoingBytes OutgoingRecords WriteProvisionedThroughputExceeded - // ReadProvisionedThroughputExceeded IteratorAgeMilliseconds ALL For - // more information, see Monitoring the Amazon Kinesis Streams Service with + // * IncomingBytes + // + // * IncomingRecords + // + // * OutgoingBytes + // + // * OutgoingRecords + // + // * WriteProvisionedThroughputExceeded + // + // * ReadProvisionedThroughputExceeded + // + // * IteratorAgeMilliseconds + // + // * ALL + // + // For more information, see Monitoring the Amazon Kinesis Streams Service with // Amazon CloudWatch (http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html) // in the Amazon Kinesis Streams Developer Guide. ShardLevelMetrics []*string `min:"1" type:"list"` @@ -2213,7 +2570,14 @@ func (s EnhancedMetrics) GoString() string { return s.String() } +// SetShardLevelMetrics sets the ShardLevelMetrics field's value. +func (s *EnhancedMetrics) SetShardLevelMetrics(v []*string) *EnhancedMetrics { + s.ShardLevelMetrics = v + return s +} + // Represents the output for EnableEnhancedMonitoring and DisableEnhancedMonitoring. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/EnhancedMonitoringOutput type EnhancedMonitoringOutput struct { _ struct{} `type:"structure"` @@ -2239,7 +2603,26 @@ func (s EnhancedMonitoringOutput) GoString() string { return s.String() } +// SetCurrentShardLevelMetrics sets the CurrentShardLevelMetrics field's value. +func (s *EnhancedMonitoringOutput) SetCurrentShardLevelMetrics(v []*string) *EnhancedMonitoringOutput { + s.CurrentShardLevelMetrics = v + return s +} + +// SetDesiredShardLevelMetrics sets the DesiredShardLevelMetrics field's value. +func (s *EnhancedMonitoringOutput) SetDesiredShardLevelMetrics(v []*string) *EnhancedMonitoringOutput { + s.DesiredShardLevelMetrics = v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *EnhancedMonitoringOutput) SetStreamName(v string) *EnhancedMonitoringOutput { + s.StreamName = &v + return s +} + // Represents the input for GetRecords. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/GetRecordsInput type GetRecordsInput struct { _ struct{} `type:"structure"` @@ -2284,7 +2667,20 @@ func (s *GetRecordsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *GetRecordsInput) SetLimit(v int64) *GetRecordsInput { + s.Limit = &v + return s +} + +// SetShardIterator sets the ShardIterator field's value. +func (s *GetRecordsInput) SetShardIterator(v string) *GetRecordsInput { + s.ShardIterator = &v + return s +} + // Represents the output for GetRecords. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/GetRecordsOutput type GetRecordsOutput struct { _ struct{} `type:"structure"` @@ -2315,7 +2711,26 @@ func (s GetRecordsOutput) GoString() string { return s.String() } +// SetMillisBehindLatest sets the MillisBehindLatest field's value. +func (s *GetRecordsOutput) SetMillisBehindLatest(v int64) *GetRecordsOutput { + s.MillisBehindLatest = &v + return s +} + +// SetNextShardIterator sets the NextShardIterator field's value. +func (s *GetRecordsOutput) SetNextShardIterator(v string) *GetRecordsOutput { + s.NextShardIterator = &v + return s +} + +// SetRecords sets the Records field's value. +func (s *GetRecordsOutput) SetRecords(v []*Record) *GetRecordsOutput { + s.Records = v + return s +} + // Represents the input for GetShardIterator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/GetShardIteratorInput type GetShardIteratorInput struct { _ struct{} `type:"structure"` @@ -2329,15 +2744,20 @@ type GetShardIteratorInput struct { // // The following are the valid Amazon Kinesis shard iterator types: // - // AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific - // sequence number, provided in the value StartingSequenceNumber. AFTER_SEQUENCE_NUMBER - // - Start reading right after the position denoted by a specific sequence number, - // provided in the value StartingSequenceNumber. AT_TIMESTAMP - Start reading - // from the position denoted by a specific timestamp, provided in the value - // Timestamp. TRIM_HORIZON - Start reading at the last untrimmed record in the - // shard in the system, which is the oldest data record in the shard. LATEST - // - Start reading just after the most recent record in the shard, so that you - // always read the most recent data in the shard. + // * AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific + // sequence number, provided in the value StartingSequenceNumber. + // + // * AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted + // by a specific sequence number, provided in the value StartingSequenceNumber. + // + // * AT_TIMESTAMP - Start reading from the position denoted by a specific + // timestamp, provided in the value Timestamp. + // + // * TRIM_HORIZON - Start reading at the last untrimmed record in the shard + // in the system, which is the oldest data record in the shard. + // + // * LATEST - Start reading just after the most recent record in the shard, + // so that you always read the most recent data in the shard. // // ShardIteratorType is a required field ShardIteratorType *string `type:"string" required:"true" enum:"ShardIteratorType"` @@ -2396,7 +2816,38 @@ func (s *GetShardIteratorInput) Validate() error { return nil } +// SetShardId sets the ShardId field's value. +func (s *GetShardIteratorInput) SetShardId(v string) *GetShardIteratorInput { + s.ShardId = &v + return s +} + +// SetShardIteratorType sets the ShardIteratorType field's value. +func (s *GetShardIteratorInput) SetShardIteratorType(v string) *GetShardIteratorInput { + s.ShardIteratorType = &v + return s +} + +// SetStartingSequenceNumber sets the StartingSequenceNumber field's value. +func (s *GetShardIteratorInput) SetStartingSequenceNumber(v string) *GetShardIteratorInput { + s.StartingSequenceNumber = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *GetShardIteratorInput) SetStreamName(v string) *GetShardIteratorInput { + s.StreamName = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *GetShardIteratorInput) SetTimestamp(v time.Time) *GetShardIteratorInput { + s.Timestamp = &v + return s +} + // Represents the output for GetShardIterator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/GetShardIteratorOutput type GetShardIteratorOutput struct { _ struct{} `type:"structure"` @@ -2416,8 +2867,15 @@ func (s GetShardIteratorOutput) GoString() string { return s.String() } +// SetShardIterator sets the ShardIterator field's value. +func (s *GetShardIteratorOutput) SetShardIterator(v string) *GetShardIteratorOutput { + s.ShardIterator = &v + return s +} + // The range of possible hash key values for the shard, which is a set of ordered // contiguous positive integers. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/HashKeyRange type HashKeyRange struct { _ struct{} `type:"structure"` @@ -2442,7 +2900,20 @@ func (s HashKeyRange) GoString() string { return s.String() } +// SetEndingHashKey sets the EndingHashKey field's value. +func (s *HashKeyRange) SetEndingHashKey(v string) *HashKeyRange { + s.EndingHashKey = &v + return s +} + +// SetStartingHashKey sets the StartingHashKey field's value. +func (s *HashKeyRange) SetStartingHashKey(v string) *HashKeyRange { + s.StartingHashKey = &v + return s +} + // Represents the input for IncreaseStreamRetentionPeriod. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/IncreaseStreamRetentionPeriodInput type IncreaseStreamRetentionPeriodInput struct { _ struct{} `type:"structure"` @@ -2450,7 +2921,7 @@ type IncreaseStreamRetentionPeriodInput struct { // retention period. // // RetentionPeriodHours is a required field - RetentionPeriodHours *int64 `min:"24" type:"integer" required:"true"` + RetentionPeriodHours *int64 `min:"1" type:"integer" required:"true"` // The name of the stream to modify. // @@ -2474,8 +2945,8 @@ func (s *IncreaseStreamRetentionPeriodInput) Validate() error { if s.RetentionPeriodHours == nil { invalidParams.Add(request.NewErrParamRequired("RetentionPeriodHours")) } - if s.RetentionPeriodHours != nil && *s.RetentionPeriodHours < 24 { - invalidParams.Add(request.NewErrParamMinValue("RetentionPeriodHours", 24)) + if s.RetentionPeriodHours != nil && *s.RetentionPeriodHours < 1 { + invalidParams.Add(request.NewErrParamMinValue("RetentionPeriodHours", 1)) } if s.StreamName == nil { invalidParams.Add(request.NewErrParamRequired("StreamName")) @@ -2490,6 +2961,19 @@ func (s *IncreaseStreamRetentionPeriodInput) Validate() error { return nil } +// SetRetentionPeriodHours sets the RetentionPeriodHours field's value. +func (s *IncreaseStreamRetentionPeriodInput) SetRetentionPeriodHours(v int64) *IncreaseStreamRetentionPeriodInput { + s.RetentionPeriodHours = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *IncreaseStreamRetentionPeriodInput) SetStreamName(v string) *IncreaseStreamRetentionPeriodInput { + s.StreamName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/IncreaseStreamRetentionPeriodOutput type IncreaseStreamRetentionPeriodOutput struct { _ struct{} `type:"structure"` } @@ -2505,6 +2989,7 @@ func (s IncreaseStreamRetentionPeriodOutput) GoString() string { } // Represents the input for ListStreams. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/ListStreamsInput type ListStreamsInput struct { _ struct{} `type:"structure"` @@ -2541,7 +3026,20 @@ func (s *ListStreamsInput) Validate() error { return nil } +// SetExclusiveStartStreamName sets the ExclusiveStartStreamName field's value. +func (s *ListStreamsInput) SetExclusiveStartStreamName(v string) *ListStreamsInput { + s.ExclusiveStartStreamName = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListStreamsInput) SetLimit(v int64) *ListStreamsInput { + s.Limit = &v + return s +} + // Represents the output for ListStreams. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/ListStreamsOutput type ListStreamsOutput struct { _ struct{} `type:"structure"` @@ -2567,7 +3065,20 @@ func (s ListStreamsOutput) GoString() string { return s.String() } +// SetHasMoreStreams sets the HasMoreStreams field's value. +func (s *ListStreamsOutput) SetHasMoreStreams(v bool) *ListStreamsOutput { + s.HasMoreStreams = &v + return s +} + +// SetStreamNames sets the StreamNames field's value. +func (s *ListStreamsOutput) SetStreamNames(v []*string) *ListStreamsOutput { + s.StreamNames = v + return s +} + // Represents the input for ListTagsForStream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/ListTagsForStreamInput type ListTagsForStreamInput struct { _ struct{} `type:"structure"` @@ -2618,7 +3129,26 @@ func (s *ListTagsForStreamInput) Validate() error { return nil } +// SetExclusiveStartTagKey sets the ExclusiveStartTagKey field's value. +func (s *ListTagsForStreamInput) SetExclusiveStartTagKey(v string) *ListTagsForStreamInput { + s.ExclusiveStartTagKey = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListTagsForStreamInput) SetLimit(v int64) *ListTagsForStreamInput { + s.Limit = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *ListTagsForStreamInput) SetStreamName(v string) *ListTagsForStreamInput { + s.StreamName = &v + return s +} + // Represents the output for ListTagsForStream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/ListTagsForStreamOutput type ListTagsForStreamOutput struct { _ struct{} `type:"structure"` @@ -2645,7 +3175,20 @@ func (s ListTagsForStreamOutput) GoString() string { return s.String() } +// SetHasMoreTags sets the HasMoreTags field's value. +func (s *ListTagsForStreamOutput) SetHasMoreTags(v bool) *ListTagsForStreamOutput { + s.HasMoreTags = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForStreamOutput) SetTags(v []*Tag) *ListTagsForStreamOutput { + s.Tags = v + return s +} + // Represents the input for MergeShards. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/MergeShardsInput type MergeShardsInput struct { _ struct{} `type:"structure"` @@ -2703,6 +3246,25 @@ func (s *MergeShardsInput) Validate() error { return nil } +// SetAdjacentShardToMerge sets the AdjacentShardToMerge field's value. +func (s *MergeShardsInput) SetAdjacentShardToMerge(v string) *MergeShardsInput { + s.AdjacentShardToMerge = &v + return s +} + +// SetShardToMerge sets the ShardToMerge field's value. +func (s *MergeShardsInput) SetShardToMerge(v string) *MergeShardsInput { + s.ShardToMerge = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *MergeShardsInput) SetStreamName(v string) *MergeShardsInput { + s.StreamName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/MergeShardsOutput type MergeShardsOutput struct { _ struct{} `type:"structure"` } @@ -2718,6 +3280,7 @@ func (s MergeShardsOutput) GoString() string { } // Represents the input for PutRecord. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/PutRecordInput type PutRecordInput struct { _ struct{} `type:"structure"` @@ -2795,7 +3358,38 @@ func (s *PutRecordInput) Validate() error { return nil } +// SetData sets the Data field's value. +func (s *PutRecordInput) SetData(v []byte) *PutRecordInput { + s.Data = v + return s +} + +// SetExplicitHashKey sets the ExplicitHashKey field's value. +func (s *PutRecordInput) SetExplicitHashKey(v string) *PutRecordInput { + s.ExplicitHashKey = &v + return s +} + +// SetPartitionKey sets the PartitionKey field's value. +func (s *PutRecordInput) SetPartitionKey(v string) *PutRecordInput { + s.PartitionKey = &v + return s +} + +// SetSequenceNumberForOrdering sets the SequenceNumberForOrdering field's value. +func (s *PutRecordInput) SetSequenceNumberForOrdering(v string) *PutRecordInput { + s.SequenceNumberForOrdering = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *PutRecordInput) SetStreamName(v string) *PutRecordInput { + s.StreamName = &v + return s +} + // Represents the output for PutRecord. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/PutRecordOutput type PutRecordOutput struct { _ struct{} `type:"structure"` @@ -2823,7 +3417,20 @@ func (s PutRecordOutput) GoString() string { return s.String() } +// SetSequenceNumber sets the SequenceNumber field's value. +func (s *PutRecordOutput) SetSequenceNumber(v string) *PutRecordOutput { + s.SequenceNumber = &v + return s +} + +// SetShardId sets the ShardId field's value. +func (s *PutRecordOutput) SetShardId(v string) *PutRecordOutput { + s.ShardId = &v + return s +} + // A PutRecords request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/PutRecordsInput type PutRecordsInput struct { _ struct{} `type:"structure"` @@ -2880,7 +3487,20 @@ func (s *PutRecordsInput) Validate() error { return nil } +// SetRecords sets the Records field's value. +func (s *PutRecordsInput) SetRecords(v []*PutRecordsRequestEntry) *PutRecordsInput { + s.Records = v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *PutRecordsInput) SetStreamName(v string) *PutRecordsInput { + s.StreamName = &v + return s +} + // PutRecords results. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/PutRecordsOutput type PutRecordsOutput struct { _ struct{} `type:"structure"` @@ -2907,7 +3527,20 @@ func (s PutRecordsOutput) GoString() string { return s.String() } +// SetFailedRecordCount sets the FailedRecordCount field's value. +func (s *PutRecordsOutput) SetFailedRecordCount(v int64) *PutRecordsOutput { + s.FailedRecordCount = &v + return s +} + +// SetRecords sets the Records field's value. +func (s *PutRecordsOutput) SetRecords(v []*PutRecordsResultEntry) *PutRecordsOutput { + s.Records = v + return s +} + // Represents the output for PutRecords. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/PutRecordsRequestEntry type PutRecordsRequestEntry struct { _ struct{} `type:"structure"` @@ -2967,10 +3600,29 @@ func (s *PutRecordsRequestEntry) Validate() error { return nil } +// SetData sets the Data field's value. +func (s *PutRecordsRequestEntry) SetData(v []byte) *PutRecordsRequestEntry { + s.Data = v + return s +} + +// SetExplicitHashKey sets the ExplicitHashKey field's value. +func (s *PutRecordsRequestEntry) SetExplicitHashKey(v string) *PutRecordsRequestEntry { + s.ExplicitHashKey = &v + return s +} + +// SetPartitionKey sets the PartitionKey field's value. +func (s *PutRecordsRequestEntry) SetPartitionKey(v string) *PutRecordsRequestEntry { + s.PartitionKey = &v + return s +} + // Represents the result of an individual record from a PutRecords request. // A record that is successfully added to a stream includes SequenceNumber and // ShardId in the result. A record that fails to be added to the stream includes // ErrorCode and ErrorMessage in the result. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/PutRecordsResultEntry type PutRecordsResultEntry struct { _ struct{} `type:"structure"` @@ -3001,8 +3653,33 @@ func (s PutRecordsResultEntry) GoString() string { return s.String() } +// SetErrorCode sets the ErrorCode field's value. +func (s *PutRecordsResultEntry) SetErrorCode(v string) *PutRecordsResultEntry { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *PutRecordsResultEntry) SetErrorMessage(v string) *PutRecordsResultEntry { + s.ErrorMessage = &v + return s +} + +// SetSequenceNumber sets the SequenceNumber field's value. +func (s *PutRecordsResultEntry) SetSequenceNumber(v string) *PutRecordsResultEntry { + s.SequenceNumber = &v + return s +} + +// SetShardId sets the ShardId field's value. +func (s *PutRecordsResultEntry) SetShardId(v string) *PutRecordsResultEntry { + s.ShardId = &v + return s +} + // The unit of data of the Amazon Kinesis stream, which is composed of a sequence // number, a partition key, and a data blob. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/Record type Record struct { _ struct{} `type:"structure"` @@ -3041,7 +3718,32 @@ func (s Record) GoString() string { return s.String() } +// SetApproximateArrivalTimestamp sets the ApproximateArrivalTimestamp field's value. +func (s *Record) SetApproximateArrivalTimestamp(v time.Time) *Record { + s.ApproximateArrivalTimestamp = &v + return s +} + +// SetData sets the Data field's value. +func (s *Record) SetData(v []byte) *Record { + s.Data = v + return s +} + +// SetPartitionKey sets the PartitionKey field's value. +func (s *Record) SetPartitionKey(v string) *Record { + s.PartitionKey = &v + return s +} + +// SetSequenceNumber sets the SequenceNumber field's value. +func (s *Record) SetSequenceNumber(v string) *Record { + s.SequenceNumber = &v + return s +} + // Represents the input for RemoveTagsFromStream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/RemoveTagsFromStreamInput type RemoveTagsFromStreamInput struct { _ struct{} `type:"structure"` @@ -3088,6 +3790,19 @@ func (s *RemoveTagsFromStreamInput) Validate() error { return nil } +// SetStreamName sets the StreamName field's value. +func (s *RemoveTagsFromStreamInput) SetStreamName(v string) *RemoveTagsFromStreamInput { + s.StreamName = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsFromStreamInput) SetTagKeys(v []*string) *RemoveTagsFromStreamInput { + s.TagKeys = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/RemoveTagsFromStreamOutput type RemoveTagsFromStreamOutput struct { _ struct{} `type:"structure"` } @@ -3103,6 +3818,7 @@ func (s RemoveTagsFromStreamOutput) GoString() string { } // The range of possible sequence numbers for the shard. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/SequenceNumberRange type SequenceNumberRange struct { _ struct{} `type:"structure"` @@ -3126,7 +3842,20 @@ func (s SequenceNumberRange) GoString() string { return s.String() } +// SetEndingSequenceNumber sets the EndingSequenceNumber field's value. +func (s *SequenceNumberRange) SetEndingSequenceNumber(v string) *SequenceNumberRange { + s.EndingSequenceNumber = &v + return s +} + +// SetStartingSequenceNumber sets the StartingSequenceNumber field's value. +func (s *SequenceNumberRange) SetStartingSequenceNumber(v string) *SequenceNumberRange { + s.StartingSequenceNumber = &v + return s +} + // A uniquely identified group of data records in an Amazon Kinesis stream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/Shard type Shard struct { _ struct{} `type:"structure"` @@ -3163,7 +3892,38 @@ func (s Shard) GoString() string { return s.String() } +// SetAdjacentParentShardId sets the AdjacentParentShardId field's value. +func (s *Shard) SetAdjacentParentShardId(v string) *Shard { + s.AdjacentParentShardId = &v + return s +} + +// SetHashKeyRange sets the HashKeyRange field's value. +func (s *Shard) SetHashKeyRange(v *HashKeyRange) *Shard { + s.HashKeyRange = v + return s +} + +// SetParentShardId sets the ParentShardId field's value. +func (s *Shard) SetParentShardId(v string) *Shard { + s.ParentShardId = &v + return s +} + +// SetSequenceNumberRange sets the SequenceNumberRange field's value. +func (s *Shard) SetSequenceNumberRange(v *SequenceNumberRange) *Shard { + s.SequenceNumberRange = v + return s +} + +// SetShardId sets the ShardId field's value. +func (s *Shard) SetShardId(v string) *Shard { + s.ShardId = &v + return s +} + // Represents the input for SplitShard. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/SplitShardInput type SplitShardInput struct { _ struct{} `type:"structure"` @@ -3224,6 +3984,25 @@ func (s *SplitShardInput) Validate() error { return nil } +// SetNewStartingHashKey sets the NewStartingHashKey field's value. +func (s *SplitShardInput) SetNewStartingHashKey(v string) *SplitShardInput { + s.NewStartingHashKey = &v + return s +} + +// SetShardToSplit sets the ShardToSplit field's value. +func (s *SplitShardInput) SetShardToSplit(v string) *SplitShardInput { + s.ShardToSplit = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *SplitShardInput) SetStreamName(v string) *SplitShardInput { + s.StreamName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/SplitShardOutput type SplitShardOutput struct { _ struct{} `type:"structure"` } @@ -3239,6 +4018,7 @@ func (s SplitShardOutput) GoString() string { } // Represents the output for DescribeStream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/StreamDescription type StreamDescription struct { _ struct{} `type:"structure"` @@ -3255,7 +4035,7 @@ type StreamDescription struct { // The current retention period, in hours. // // RetentionPeriodHours is a required field - RetentionPeriodHours *int64 `min:"24" type:"integer" required:"true"` + RetentionPeriodHours *int64 `min:"1" type:"integer" required:"true"` // The shards that comprise the stream. // @@ -3267,6 +4047,11 @@ type StreamDescription struct { // StreamARN is a required field StreamARN *string `type:"string" required:"true"` + // The approximate time that the stream was created. + // + // StreamCreationTimestamp is a required field + StreamCreationTimestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` + // The name of the stream being described. // // StreamName is a required field @@ -3275,14 +4060,19 @@ type StreamDescription struct { // The current status of the stream being described. The stream status is one // of the following states: // - // CREATING - The stream is being created. Amazon Kinesis immediately returns - // and sets StreamStatus to CREATING. DELETING - The stream is being deleted. - // The specified stream is in the DELETING state until Amazon Kinesis completes - // the deletion. ACTIVE - The stream exists and is ready for read and write - // operations or deletion. You should perform read and write operations only - // on an ACTIVE stream. UPDATING - Shards in the stream are being merged or - // split. Read and write operations continue to work while the stream is in - // the UPDATING state. + // * CREATING - The stream is being created. Amazon Kinesis immediately returns + // and sets StreamStatus to CREATING. + // + // * DELETING - The stream is being deleted. The specified stream is in the + // DELETING state until Amazon Kinesis completes the deletion. + // + // * ACTIVE - The stream exists and is ready for read and write operations + // or deletion. You should perform read and write operations only on an ACTIVE + // stream. + // + // * UPDATING - Shards in the stream are being merged or split. Read and + // write operations continue to work while the stream is in the UPDATING + // state. // // StreamStatus is a required field StreamStatus *string `type:"string" required:"true" enum:"StreamStatus"` @@ -3298,7 +4088,56 @@ func (s StreamDescription) GoString() string { return s.String() } +// SetEnhancedMonitoring sets the EnhancedMonitoring field's value. +func (s *StreamDescription) SetEnhancedMonitoring(v []*EnhancedMetrics) *StreamDescription { + s.EnhancedMonitoring = v + return s +} + +// SetHasMoreShards sets the HasMoreShards field's value. +func (s *StreamDescription) SetHasMoreShards(v bool) *StreamDescription { + s.HasMoreShards = &v + return s +} + +// SetRetentionPeriodHours sets the RetentionPeriodHours field's value. +func (s *StreamDescription) SetRetentionPeriodHours(v int64) *StreamDescription { + s.RetentionPeriodHours = &v + return s +} + +// SetShards sets the Shards field's value. +func (s *StreamDescription) SetShards(v []*Shard) *StreamDescription { + s.Shards = v + return s +} + +// SetStreamARN sets the StreamARN field's value. +func (s *StreamDescription) SetStreamARN(v string) *StreamDescription { + s.StreamARN = &v + return s +} + +// SetStreamCreationTimestamp sets the StreamCreationTimestamp field's value. +func (s *StreamDescription) SetStreamCreationTimestamp(v time.Time) *StreamDescription { + s.StreamCreationTimestamp = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *StreamDescription) SetStreamName(v string) *StreamDescription { + s.StreamName = &v + return s +} + +// SetStreamStatus sets the StreamStatus field's value. +func (s *StreamDescription) SetStreamStatus(v string) *StreamDescription { + s.StreamStatus = &v + return s +} + // Metadata assigned to the stream, consisting of a key-value pair. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/Tag type Tag struct { _ struct{} `type:"structure"` @@ -3324,6 +4163,133 @@ func (s Tag) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/UpdateShardCountInput +type UpdateShardCountInput struct { + _ struct{} `type:"structure"` + + // The scaling type. Uniform scaling creates shards of equal size. + // + // ScalingType is a required field + ScalingType *string `type:"string" required:"true" enum:"ScalingType"` + + // The name of the stream. + // + // StreamName is a required field + StreamName *string `min:"1" type:"string" required:"true"` + + // The new number of shards. + // + // TargetShardCount is a required field + TargetShardCount *int64 `min:"1" type:"integer" required:"true"` +} + +// String returns the string representation +func (s UpdateShardCountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateShardCountInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateShardCountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateShardCountInput"} + if s.ScalingType == nil { + invalidParams.Add(request.NewErrParamRequired("ScalingType")) + } + if s.StreamName == nil { + invalidParams.Add(request.NewErrParamRequired("StreamName")) + } + if s.StreamName != nil && len(*s.StreamName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StreamName", 1)) + } + if s.TargetShardCount == nil { + invalidParams.Add(request.NewErrParamRequired("TargetShardCount")) + } + if s.TargetShardCount != nil && *s.TargetShardCount < 1 { + invalidParams.Add(request.NewErrParamMinValue("TargetShardCount", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetScalingType sets the ScalingType field's value. +func (s *UpdateShardCountInput) SetScalingType(v string) *UpdateShardCountInput { + s.ScalingType = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *UpdateShardCountInput) SetStreamName(v string) *UpdateShardCountInput { + s.StreamName = &v + return s +} + +// SetTargetShardCount sets the TargetShardCount field's value. +func (s *UpdateShardCountInput) SetTargetShardCount(v int64) *UpdateShardCountInput { + s.TargetShardCount = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/UpdateShardCountOutput +type UpdateShardCountOutput struct { + _ struct{} `type:"structure"` + + // The current number of shards. + CurrentShardCount *int64 `min:"1" type:"integer"` + + // The name of the stream. + StreamName *string `min:"1" type:"string"` + + // The updated number of shards. + TargetShardCount *int64 `min:"1" type:"integer"` +} + +// String returns the string representation +func (s UpdateShardCountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateShardCountOutput) GoString() string { + return s.String() +} + +// SetCurrentShardCount sets the CurrentShardCount field's value. +func (s *UpdateShardCountOutput) SetCurrentShardCount(v int64) *UpdateShardCountOutput { + s.CurrentShardCount = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *UpdateShardCountOutput) SetStreamName(v string) *UpdateShardCountOutput { + s.StreamName = &v + return s +} + +// SetTargetShardCount sets the TargetShardCount field's value. +func (s *UpdateShardCountOutput) SetTargetShardCount(v int64) *UpdateShardCountOutput { + s.TargetShardCount = &v + return s +} + const ( // MetricsNameIncomingBytes is a MetricsName enum value MetricsNameIncomingBytes = "IncomingBytes" @@ -3350,6 +4316,11 @@ const ( MetricsNameAll = "ALL" ) +const ( + // ScalingTypeUniformScaling is a ScalingType enum value + ScalingTypeUniformScaling = "UNIFORM_SCALING" +) + const ( // ShardIteratorTypeAtSequenceNumber is a ShardIteratorType enum value ShardIteratorTypeAtSequenceNumber = "AT_SEQUENCE_NUMBER" diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesis/errors.go b/vendor/github.com/aws/aws-sdk-go/service/kinesis/errors.go new file mode 100644 index 000000000..083aa5e0f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesis/errors.go @@ -0,0 +1,51 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package kinesis + +const ( + + // ErrCodeExpiredIteratorException for service response error code + // "ExpiredIteratorException". + // + // The provided iterator exceeds the maximum age allowed. + ErrCodeExpiredIteratorException = "ExpiredIteratorException" + + // ErrCodeInvalidArgumentException for service response error code + // "InvalidArgumentException". + // + // A specified parameter exceeds its restrictions, is not supported, or can't + // be used. For more information, see the returned message. + ErrCodeInvalidArgumentException = "InvalidArgumentException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // The requested resource exceeds the maximum number allowed, or the number + // of concurrent stream requests exceeds the maximum number allowed (5). + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeProvisionedThroughputExceededException for service response error code + // "ProvisionedThroughputExceededException". + // + // The request rate for the stream is too high, or the requested data is too + // large for the available throughput. Reduce the frequency or size of your + // requests. For more information, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) + // in the Amazon Kinesis Streams Developer Guide, and Error Retries and Exponential + // Backoff in AWS (http://docs.aws.amazon.com/general/latest/gr/api-retries.html) + // in the AWS General Reference. + ErrCodeProvisionedThroughputExceededException = "ProvisionedThroughputExceededException" + + // ErrCodeResourceInUseException for service response error code + // "ResourceInUseException". + // + // The resource is not available for this operation. For successful operation, + // the resource needs to be in the ACTIVE state. + ErrCodeResourceInUseException = "ResourceInUseException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The requested resource could not be found. The stream might not be specified + // correctly. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesis/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/kinesis/examples_test.go index 50923928b..f0827714c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesis/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesis/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleKinesis_AddTagsToStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -45,11 +41,7 @@ func ExampleKinesis_AddTagsToStream() { } func ExampleKinesis_CreateStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -71,11 +63,7 @@ func ExampleKinesis_CreateStream() { } func ExampleKinesis_DecreaseStreamRetentionPeriod() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -97,11 +85,7 @@ func ExampleKinesis_DecreaseStreamRetentionPeriod() { } func ExampleKinesis_DeleteStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -121,13 +105,28 @@ func ExampleKinesis_DeleteStream() { fmt.Println(resp) } -func ExampleKinesis_DescribeStream() { - sess, err := session.NewSession() +func ExampleKinesis_DescribeLimits() { + sess := session.Must(session.NewSession()) + + svc := kinesis.New(sess) + + var params *kinesis.DescribeLimitsInput + resp, err := svc.DescribeLimits(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleKinesis_DescribeStream() { + sess := session.Must(session.NewSession()) + svc := kinesis.New(sess) params := &kinesis.DescribeStreamInput{ @@ -149,11 +148,7 @@ func ExampleKinesis_DescribeStream() { } func ExampleKinesis_DisableEnhancedMonitoring() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -178,11 +173,7 @@ func ExampleKinesis_DisableEnhancedMonitoring() { } func ExampleKinesis_EnableEnhancedMonitoring() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -207,11 +198,7 @@ func ExampleKinesis_EnableEnhancedMonitoring() { } func ExampleKinesis_GetRecords() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -233,11 +220,7 @@ func ExampleKinesis_GetRecords() { } func ExampleKinesis_GetShardIterator() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -262,11 +245,7 @@ func ExampleKinesis_GetShardIterator() { } func ExampleKinesis_IncreaseStreamRetentionPeriod() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -288,11 +267,7 @@ func ExampleKinesis_IncreaseStreamRetentionPeriod() { } func ExampleKinesis_ListStreams() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -314,11 +289,7 @@ func ExampleKinesis_ListStreams() { } func ExampleKinesis_ListTagsForStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -341,11 +312,7 @@ func ExampleKinesis_ListTagsForStream() { } func ExampleKinesis_MergeShards() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -368,11 +335,7 @@ func ExampleKinesis_MergeShards() { } func ExampleKinesis_PutRecord() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -397,11 +360,7 @@ func ExampleKinesis_PutRecord() { } func ExampleKinesis_PutRecords() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -430,11 +389,7 @@ func ExampleKinesis_PutRecords() { } func ExampleKinesis_RemoveTagsFromStream() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -459,11 +414,7 @@ func ExampleKinesis_RemoveTagsFromStream() { } func ExampleKinesis_SplitShard() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesis.New(sess) @@ -484,3 +435,26 @@ func ExampleKinesis_SplitShard() { // Pretty-print the response data. fmt.Println(resp) } + +func ExampleKinesis_UpdateShardCount() { + sess := session.Must(session.NewSession()) + + svc := kinesis.New(sess) + + params := &kinesis.UpdateShardCountInput{ + ScalingType: aws.String("ScalingType"), // Required + StreamName: aws.String("StreamName"), // Required + TargetShardCount: aws.Int64(1), // Required + } + resp, err := svc.UpdateShardCount(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesis/kinesisiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/kinesis/kinesisiface/interface.go index 1c6e2b74e..027189ac7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesis/kinesisiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesis/kinesisiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockKinesisClient{} // @@ -75,6 +75,10 @@ type KinesisAPI interface { DeleteStream(*kinesis.DeleteStreamInput) (*kinesis.DeleteStreamOutput, error) + DescribeLimitsRequest(*kinesis.DescribeLimitsInput) (*request.Request, *kinesis.DescribeLimitsOutput) + + DescribeLimits(*kinesis.DescribeLimitsInput) (*kinesis.DescribeLimitsOutput, error) + DescribeStreamRequest(*kinesis.DescribeStreamInput) (*request.Request, *kinesis.DescribeStreamOutput) DescribeStream(*kinesis.DescribeStreamInput) (*kinesis.DescribeStreamOutput, error) @@ -131,6 +135,10 @@ type KinesisAPI interface { SplitShard(*kinesis.SplitShardInput) (*kinesis.SplitShardOutput, error) + UpdateShardCountRequest(*kinesis.UpdateShardCountInput) (*request.Request, *kinesis.UpdateShardCountOutput) + + UpdateShardCount(*kinesis.UpdateShardCountInput) (*kinesis.UpdateShardCountOutput, error) + WaitUntilStreamExists(*kinesis.DescribeStreamInput) error } diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesis/service.go b/vendor/github.com/aws/aws-sdk-go/service/kinesis/service.go index e2fe21e77..ed037fe6e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesis/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesis/service.go @@ -13,8 +13,9 @@ import ( // Amazon Kinesis Streams is a managed service that scales elastically for real // time processing of streaming big data. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02 type Kinesis struct { *client.Client } @@ -25,8 +26,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "kinesis" +// Service information constants +const ( + ServiceName = "kinesis" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the Kinesis client with a session. // If additional configuration is needed for the client instance use the optional @@ -39,17 +43,18 @@ const ServiceName = "kinesis" // // Create a Kinesis client with additional configuration // svc := kinesis.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Kinesis { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *Kinesis { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Kinesis { svc := &Kinesis{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2013-12-02", diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/api.go b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/api.go index b6e60ae41..3fa1da149 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/api.go @@ -37,6 +37,7 @@ const opAddApplicationInput = "AddApplicationInput" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/AddApplicationInput func (c *KinesisAnalytics) AddApplicationInputRequest(input *AddApplicationInputInput) (req *request.Request, output *AddApplicationInputOutput) { op := &request.Operation{ Name: opAddApplicationInput, @@ -48,9 +49,8 @@ func (c *KinesisAnalytics) AddApplicationInputRequest(input *AddApplicationInput input = &AddApplicationInputInput{} } - req = c.newRequest(op, input, output) output = &AddApplicationInputOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -59,9 +59,9 @@ func (c *KinesisAnalytics) AddApplicationInputRequest(input *AddApplicationInput // Adds a streaming source to your Amazon Kinesis application. For conceptual // information, see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html). // -// You can add a streaming source either when you create an application or -// you can use this operation to add a streaming source after you create an -// application. For more information, see CreateApplication. +// You can add a streaming source either when you create an application or you +// can use this operation to add a streaming source after you create an application. +// For more information, see CreateApplication. // // Any configuration update, including adding a streaming source using this // operation, results in a new version of the application. You can use the DescribeApplication @@ -78,20 +78,21 @@ func (c *KinesisAnalytics) AddApplicationInputRequest(input *AddApplicationInput // API operation AddApplicationInput for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Specified application can't be found. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // Application is not available for this operation. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // Specified input parameter value is invalid. // -// * ConcurrentModificationException +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/AddApplicationInput func (c *KinesisAnalytics) AddApplicationInput(input *AddApplicationInputInput) (*AddApplicationInputOutput, error) { req, out := c.AddApplicationInputRequest(input) err := req.Send() @@ -124,6 +125,7 @@ const opAddApplicationOutput = "AddApplicationOutput" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/AddApplicationOutput func (c *KinesisAnalytics) AddApplicationOutputRequest(input *AddApplicationOutputInput) (req *request.Request, output *AddApplicationOutputOutput) { op := &request.Operation{ Name: opAddApplicationOutput, @@ -135,9 +137,8 @@ func (c *KinesisAnalytics) AddApplicationOutputRequest(input *AddApplicationOutp input = &AddApplicationOutputInput{} } - req = c.newRequest(op, input, output) output = &AddApplicationOutputOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -152,14 +153,14 @@ func (c *KinesisAnalytics) AddApplicationOutputRequest(input *AddApplicationOutp // for your application. Each output configuration maps an in-application stream // and an external destination. // -// You can use one of the output configurations to deliver data from your -// in-application error stream to an external destination so that you can analyze -// the errors. For conceptual information, see Understanding Application Output -// (Destination) (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html). +// You can use one of the output configurations to deliver data from your in-application +// error stream to an external destination so that you can analyze the errors. +// For conceptual information, see Understanding Application Output (Destination) +// (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html). // -// Note that any configuration update, including adding a streaming source -// using this operation, results in a new version of the application. You can -// use the DescribeApplication operation to find the current application version. +// Note that any configuration update, including adding a streaming source using +// this operation, results in a new version of the application. You can use +// the DescribeApplication operation to find the current application version. // // For the limits on the number of application inputs and outputs you can configure, // see Limits (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/limits.html). @@ -175,20 +176,21 @@ func (c *KinesisAnalytics) AddApplicationOutputRequest(input *AddApplicationOutp // API operation AddApplicationOutput for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Specified application can't be found. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // Application is not available for this operation. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // Specified input parameter value is invalid. // -// * ConcurrentModificationException +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/AddApplicationOutput func (c *KinesisAnalytics) AddApplicationOutput(input *AddApplicationOutputInput) (*AddApplicationOutputOutput, error) { req, out := c.AddApplicationOutputRequest(input) err := req.Send() @@ -221,6 +223,7 @@ const opAddApplicationReferenceDataSource = "AddApplicationReferenceDataSource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/AddApplicationReferenceDataSource func (c *KinesisAnalytics) AddApplicationReferenceDataSourceRequest(input *AddApplicationReferenceDataSourceInput) (req *request.Request, output *AddApplicationReferenceDataSourceOutput) { op := &request.Operation{ Name: opAddApplicationReferenceDataSource, @@ -232,9 +235,8 @@ func (c *KinesisAnalytics) AddApplicationReferenceDataSourceRequest(input *AddAp input = &AddApplicationReferenceDataSourceInput{} } - req = c.newRequest(op, input, output) output = &AddApplicationReferenceDataSourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -249,11 +251,11 @@ func (c *KinesisAnalytics) AddApplicationReferenceDataSourceRequest(input *AddAp // describes how data in Amazon S3 object maps to columns in the resulting in-application // table. // -// For conceptual information, see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html). +// For conceptual information, see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html). // For the limits on data sources you can add to your application, see Limits // (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/limits.html). // -// This operation requires permissions to perform the kinesisanalytics:AddApplicationOutput +// This operation requires permissions to perform the kinesisanalytics:AddApplicationOutput // action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -264,20 +266,21 @@ func (c *KinesisAnalytics) AddApplicationReferenceDataSourceRequest(input *AddAp // API operation AddApplicationReferenceDataSource for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Specified application can't be found. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // Application is not available for this operation. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // Specified input parameter value is invalid. // -// * ConcurrentModificationException +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/AddApplicationReferenceDataSource func (c *KinesisAnalytics) AddApplicationReferenceDataSource(input *AddApplicationReferenceDataSourceInput) (*AddApplicationReferenceDataSourceOutput, error) { req, out := c.AddApplicationReferenceDataSourceRequest(input) err := req.Send() @@ -310,6 +313,7 @@ const opCreateApplication = "CreateApplication" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/CreateApplication func (c *KinesisAnalytics) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput) { op := &request.Operation{ Name: opCreateApplication, @@ -321,9 +325,8 @@ func (c *KinesisAnalytics) CreateApplicationRequest(input *CreateApplicationInpu input = &CreateApplicationInput{} } - req = c.newRequest(op, input, output) output = &CreateApplicationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -345,16 +348,16 @@ func (c *KinesisAnalytics) CreateApplicationRequest(input *CreateApplicationInpu // transform it, and generate output. Your application code can create one or // more SQL artifacts like SQL streams or pumps. // -// In the output configuration, you can configure the application to write -// data from in-application streams created in your applications to up to five -// streaming destinations. +// In the output configuration, you can configure the application to write data +// from in-application streams created in your applications to up to five streaming +// destinations. // -// To read data from your source stream or write data to destination streams, +// To read data from your source stream or write data to destination streams, // Amazon Kinesis Analytics needs your permissions. You grant these permissions // by creating IAM roles. This operation requires permissions to perform the // kinesisanalytics:CreateApplication action. // -// For introductory exercises to create an Amazon Kinesis Analytics application, +// For introductory exercises to create an Amazon Kinesis Analytics application, // see Getting Started (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/getting-started.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -365,19 +368,20 @@ func (c *KinesisAnalytics) CreateApplicationRequest(input *CreateApplicationInpu // API operation CreateApplication for usage and error information. // // Returned Error Codes: -// * CodeValidationException +// * ErrCodeCodeValidationException "CodeValidationException" // User-provided application code (query) is invalid. This can be a simple syntax // error. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // Application is not available for this operation. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // Exceeded the number of applications allowed. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // Specified input parameter value is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/CreateApplication func (c *KinesisAnalytics) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) { req, out := c.CreateApplicationRequest(input) err := req.Send() @@ -410,6 +414,7 @@ const opDeleteApplication = "DeleteApplication" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DeleteApplication func (c *KinesisAnalytics) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput) { op := &request.Operation{ Name: opDeleteApplication, @@ -421,9 +426,8 @@ func (c *KinesisAnalytics) DeleteApplicationRequest(input *DeleteApplicationInpu input = &DeleteApplicationInput{} } - req = c.newRequest(op, input, output) output = &DeleteApplicationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -444,17 +448,18 @@ func (c *KinesisAnalytics) DeleteApplicationRequest(input *DeleteApplicationInpu // API operation DeleteApplication for usage and error information. // // Returned Error Codes: -// * ConcurrentModificationException +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Specified application can't be found. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // Application is not available for this operation. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DeleteApplication func (c *KinesisAnalytics) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) { req, out := c.DeleteApplicationRequest(input) err := req.Send() @@ -487,6 +492,7 @@ const opDeleteApplicationOutput = "DeleteApplicationOutput" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DeleteApplicationOutput func (c *KinesisAnalytics) DeleteApplicationOutputRequest(input *DeleteApplicationOutputInput) (req *request.Request, output *DeleteApplicationOutputOutput) { op := &request.Operation{ Name: opDeleteApplicationOutput, @@ -498,9 +504,8 @@ func (c *KinesisAnalytics) DeleteApplicationOutputRequest(input *DeleteApplicati input = &DeleteApplicationOutputInput{} } - req = c.newRequest(op, input, output) output = &DeleteApplicationOutputOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -521,17 +526,18 @@ func (c *KinesisAnalytics) DeleteApplicationOutputRequest(input *DeleteApplicati // API operation DeleteApplicationOutput for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Specified application can't be found. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // Application is not available for this operation. // -// * ConcurrentModificationException +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DeleteApplicationOutput func (c *KinesisAnalytics) DeleteApplicationOutput(input *DeleteApplicationOutputInput) (*DeleteApplicationOutputOutput, error) { req, out := c.DeleteApplicationOutputRequest(input) err := req.Send() @@ -564,6 +570,7 @@ const opDeleteApplicationReferenceDataSource = "DeleteApplicationReferenceDataSo // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DeleteApplicationReferenceDataSource func (c *KinesisAnalytics) DeleteApplicationReferenceDataSourceRequest(input *DeleteApplicationReferenceDataSourceInput) (req *request.Request, output *DeleteApplicationReferenceDataSourceOutput) { op := &request.Operation{ Name: opDeleteApplicationReferenceDataSource, @@ -575,9 +582,8 @@ func (c *KinesisAnalytics) DeleteApplicationReferenceDataSourceRequest(input *De input = &DeleteApplicationReferenceDataSourceInput{} } - req = c.newRequest(op, input, output) output = &DeleteApplicationReferenceDataSourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -601,20 +607,21 @@ func (c *KinesisAnalytics) DeleteApplicationReferenceDataSourceRequest(input *De // API operation DeleteApplicationReferenceDataSource for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Specified application can't be found. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // Application is not available for this operation. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // Specified input parameter value is invalid. // -// * ConcurrentModificationException +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DeleteApplicationReferenceDataSource func (c *KinesisAnalytics) DeleteApplicationReferenceDataSource(input *DeleteApplicationReferenceDataSourceInput) (*DeleteApplicationReferenceDataSourceOutput, error) { req, out := c.DeleteApplicationReferenceDataSourceRequest(input) err := req.Send() @@ -647,6 +654,7 @@ const opDescribeApplication = "DescribeApplication" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DescribeApplication func (c *KinesisAnalytics) DescribeApplicationRequest(input *DescribeApplicationInput) (req *request.Request, output *DescribeApplicationOutput) { op := &request.Operation{ Name: opDescribeApplication, @@ -658,9 +666,8 @@ func (c *KinesisAnalytics) DescribeApplicationRequest(input *DescribeApplication input = &DescribeApplicationInput{} } - req = c.newRequest(op, input, output) output = &DescribeApplicationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -668,8 +675,8 @@ func (c *KinesisAnalytics) DescribeApplicationRequest(input *DescribeApplication // // Returns information about a specific Amazon Kinesis Analytics application. // -// If you want to retrieve a list of all applications in your account, use -// the ListApplications operation. +// If you want to retrieve a list of all applications in your account, use the +// ListApplications operation. // // This operation requires permissions to perform the kinesisanalytics:DescribeApplication // action. You can use DescribeApplication to get the current application versionId, @@ -683,9 +690,10 @@ func (c *KinesisAnalytics) DescribeApplicationRequest(input *DescribeApplication // API operation DescribeApplication for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Specified application can't be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DescribeApplication func (c *KinesisAnalytics) DescribeApplication(input *DescribeApplicationInput) (*DescribeApplicationOutput, error) { req, out := c.DescribeApplicationRequest(input) err := req.Send() @@ -718,6 +726,7 @@ const opDiscoverInputSchema = "DiscoverInputSchema" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DiscoverInputSchema func (c *KinesisAnalytics) DiscoverInputSchemaRequest(input *DiscoverInputSchemaInput) (req *request.Request, output *DiscoverInputSchemaOutput) { op := &request.Operation{ Name: opDiscoverInputSchema, @@ -729,9 +738,8 @@ func (c *KinesisAnalytics) DiscoverInputSchemaRequest(input *DiscoverInputSchema input = &DiscoverInputSchemaInput{} } - req = c.newRequest(op, input, output) output = &DiscoverInputSchemaOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -742,14 +750,14 @@ func (c *KinesisAnalytics) DiscoverInputSchemaRequest(input *DiscoverInputSchema // response, the operation returns the inferred schema and also the sample records // that the operation used to infer the schema. // -// You can use the inferred schema when configuring a streaming source for -// your application. For conceptual information, see Configuring Application -// Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html). +// You can use the inferred schema when configuring a streaming source for your +// application. For conceptual information, see Configuring Application Input +// (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html). // Note that when you create an application using the Amazon Kinesis Analytics // console, the console uses this operation to infer a schema and show it in // the console user interface. // -// This operation requires permissions to perform the kinesisanalytics:DiscoverInputSchema +// This operation requires permissions to perform the kinesisanalytics:DiscoverInputSchema // action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -760,17 +768,18 @@ func (c *KinesisAnalytics) DiscoverInputSchemaRequest(input *DiscoverInputSchema // API operation DiscoverInputSchema for usage and error information. // // Returned Error Codes: -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // Specified input parameter value is invalid. // -// * UnableToDetectSchemaException +// * ErrCodeUnableToDetectSchemaException "UnableToDetectSchemaException" // Data format is not valid, Kinesis Analytics is not able to detect schema // for the given streaming source. // -// * ResourceProvisionedThroughputExceededException +// * ErrCodeResourceProvisionedThroughputExceededException "ResourceProvisionedThroughputExceededException" // Discovery failed to get a record from the streaming source because of the // Kinesis Streams ProvisionedThroughputExceededException. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DiscoverInputSchema func (c *KinesisAnalytics) DiscoverInputSchema(input *DiscoverInputSchemaInput) (*DiscoverInputSchemaOutput, error) { req, out := c.DiscoverInputSchemaRequest(input) err := req.Send() @@ -803,6 +812,7 @@ const opListApplications = "ListApplications" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/ListApplications func (c *KinesisAnalytics) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput) { op := &request.Operation{ Name: opListApplications, @@ -814,9 +824,8 @@ func (c *KinesisAnalytics) ListApplicationsRequest(input *ListApplicationsInput) input = &ListApplicationsInput{} } - req = c.newRequest(op, input, output) output = &ListApplicationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -840,6 +849,7 @@ func (c *KinesisAnalytics) ListApplicationsRequest(input *ListApplicationsInput) // // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation ListApplications for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/ListApplications func (c *KinesisAnalytics) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) { req, out := c.ListApplicationsRequest(input) err := req.Send() @@ -872,6 +882,7 @@ const opStartApplication = "StartApplication" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/StartApplication func (c *KinesisAnalytics) StartApplicationRequest(input *StartApplicationInput) (req *request.Request, output *StartApplicationOutput) { op := &request.Operation{ Name: opStartApplication, @@ -883,9 +894,8 @@ func (c *KinesisAnalytics) StartApplicationRequest(input *StartApplicationInput) input = &StartApplicationInput{} } - req = c.newRequest(op, input, output) output = &StartApplicationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -897,7 +907,7 @@ func (c *KinesisAnalytics) StartApplicationRequest(input *StartApplicationInput) // After the application starts, it begins consuming the input data, processes // it, and writes the output to the configured destination. // -// The application status must be READY for you to start an application. You +// The application status must be READY for you to start an application. You // can get the application status in the console or using the DescribeApplication // operation. // @@ -915,18 +925,19 @@ func (c *KinesisAnalytics) StartApplicationRequest(input *StartApplicationInput) // API operation StartApplication for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Specified application can't be found. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // Application is not available for this operation. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // Specified input parameter value is invalid. // -// * InvalidApplicationConfigurationException +// * ErrCodeInvalidApplicationConfigurationException "InvalidApplicationConfigurationException" // User-provided application configuration is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/StartApplication func (c *KinesisAnalytics) StartApplication(input *StartApplicationInput) (*StartApplicationOutput, error) { req, out := c.StartApplicationRequest(input) err := req.Send() @@ -959,6 +970,7 @@ const opStopApplication = "StopApplication" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/StopApplication func (c *KinesisAnalytics) StopApplicationRequest(input *StopApplicationInput) (req *request.Request, output *StopApplicationOutput) { op := &request.Operation{ Name: opStopApplication, @@ -970,9 +982,8 @@ func (c *KinesisAnalytics) StopApplicationRequest(input *StopApplicationInput) ( input = &StopApplicationInput{} } - req = c.newRequest(op, input, output) output = &StopApplicationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -995,12 +1006,13 @@ func (c *KinesisAnalytics) StopApplicationRequest(input *StopApplicationInput) ( // API operation StopApplication for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Specified application can't be found. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // Application is not available for this operation. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/StopApplication func (c *KinesisAnalytics) StopApplication(input *StopApplicationInput) (*StopApplicationOutput, error) { req, out := c.StopApplicationRequest(input) err := req.Send() @@ -1033,6 +1045,7 @@ const opUpdateApplication = "UpdateApplication" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/UpdateApplication func (c *KinesisAnalytics) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput) { op := &request.Operation{ Name: opUpdateApplication, @@ -1044,9 +1057,8 @@ func (c *KinesisAnalytics) UpdateApplicationRequest(input *UpdateApplicationInpu input = &UpdateApplicationInput{} } - req = c.newRequest(op, input, output) output = &UpdateApplicationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1069,30 +1081,32 @@ func (c *KinesisAnalytics) UpdateApplicationRequest(input *UpdateApplicationInpu // API operation UpdateApplication for usage and error information. // // Returned Error Codes: -// * CodeValidationException +// * ErrCodeCodeValidationException "CodeValidationException" // User-provided application code (query) is invalid. This can be a simple syntax // error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Specified application can't be found. // -// * ResourceInUseException +// * ErrCodeResourceInUseException "ResourceInUseException" // Application is not available for this operation. // -// * InvalidArgumentException +// * ErrCodeInvalidArgumentException "InvalidArgumentException" // Specified input parameter value is invalid. // -// * ConcurrentModificationException +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/UpdateApplication func (c *KinesisAnalytics) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) { req, out := c.UpdateApplicationRequest(input) err := req.Send() return out, err } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/AddApplicationInputRequest type AddApplicationInputInput struct { _ struct{} `type:"structure"` @@ -1156,6 +1170,25 @@ func (s *AddApplicationInputInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *AddApplicationInputInput) SetApplicationName(v string) *AddApplicationInputInput { + s.ApplicationName = &v + return s +} + +// SetCurrentApplicationVersionId sets the CurrentApplicationVersionId field's value. +func (s *AddApplicationInputInput) SetCurrentApplicationVersionId(v int64) *AddApplicationInputInput { + s.CurrentApplicationVersionId = &v + return s +} + +// SetInput sets the Input field's value. +func (s *AddApplicationInputInput) SetInput(v *Input) *AddApplicationInputInput { + s.Input = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/AddApplicationInputResponse type AddApplicationInputOutput struct { _ struct{} `type:"structure"` } @@ -1170,6 +1203,7 @@ func (s AddApplicationInputOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/AddApplicationOutputRequest type AddApplicationOutputInput struct { _ struct{} `type:"structure"` @@ -1235,6 +1269,25 @@ func (s *AddApplicationOutputInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *AddApplicationOutputInput) SetApplicationName(v string) *AddApplicationOutputInput { + s.ApplicationName = &v + return s +} + +// SetCurrentApplicationVersionId sets the CurrentApplicationVersionId field's value. +func (s *AddApplicationOutputInput) SetCurrentApplicationVersionId(v int64) *AddApplicationOutputInput { + s.CurrentApplicationVersionId = &v + return s +} + +// SetOutput sets the Output field's value. +func (s *AddApplicationOutputInput) SetOutput(v *Output) *AddApplicationOutputInput { + s.Output = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/AddApplicationOutputResponse type AddApplicationOutputOutput struct { _ struct{} `type:"structure"` } @@ -1249,6 +1302,7 @@ func (s AddApplicationOutputOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/AddApplicationReferenceDataSourceRequest type AddApplicationReferenceDataSourceInput struct { _ struct{} `type:"structure"` @@ -1316,6 +1370,25 @@ func (s *AddApplicationReferenceDataSourceInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *AddApplicationReferenceDataSourceInput) SetApplicationName(v string) *AddApplicationReferenceDataSourceInput { + s.ApplicationName = &v + return s +} + +// SetCurrentApplicationVersionId sets the CurrentApplicationVersionId field's value. +func (s *AddApplicationReferenceDataSourceInput) SetCurrentApplicationVersionId(v int64) *AddApplicationReferenceDataSourceInput { + s.CurrentApplicationVersionId = &v + return s +} + +// SetReferenceDataSource sets the ReferenceDataSource field's value. +func (s *AddApplicationReferenceDataSourceInput) SetReferenceDataSource(v *ReferenceDataSource) *AddApplicationReferenceDataSourceInput { + s.ReferenceDataSource = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/AddApplicationReferenceDataSourceResponse type AddApplicationReferenceDataSourceOutput struct { _ struct{} `type:"structure"` } @@ -1332,6 +1405,7 @@ func (s AddApplicationReferenceDataSourceOutput) GoString() string { // Provides a description of the application, including the application Amazon // Resource Name (ARN), status, latest version, and input and output configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/ApplicationDetail type ApplicationDetail struct { _ struct{} `type:"structure"` @@ -1391,8 +1465,75 @@ func (s ApplicationDetail) GoString() string { return s.String() } +// SetApplicationARN sets the ApplicationARN field's value. +func (s *ApplicationDetail) SetApplicationARN(v string) *ApplicationDetail { + s.ApplicationARN = &v + return s +} + +// SetApplicationCode sets the ApplicationCode field's value. +func (s *ApplicationDetail) SetApplicationCode(v string) *ApplicationDetail { + s.ApplicationCode = &v + return s +} + +// SetApplicationDescription sets the ApplicationDescription field's value. +func (s *ApplicationDetail) SetApplicationDescription(v string) *ApplicationDetail { + s.ApplicationDescription = &v + return s +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *ApplicationDetail) SetApplicationName(v string) *ApplicationDetail { + s.ApplicationName = &v + return s +} + +// SetApplicationStatus sets the ApplicationStatus field's value. +func (s *ApplicationDetail) SetApplicationStatus(v string) *ApplicationDetail { + s.ApplicationStatus = &v + return s +} + +// SetApplicationVersionId sets the ApplicationVersionId field's value. +func (s *ApplicationDetail) SetApplicationVersionId(v int64) *ApplicationDetail { + s.ApplicationVersionId = &v + return s +} + +// SetCreateTimestamp sets the CreateTimestamp field's value. +func (s *ApplicationDetail) SetCreateTimestamp(v time.Time) *ApplicationDetail { + s.CreateTimestamp = &v + return s +} + +// SetInputDescriptions sets the InputDescriptions field's value. +func (s *ApplicationDetail) SetInputDescriptions(v []*InputDescription) *ApplicationDetail { + s.InputDescriptions = v + return s +} + +// SetLastUpdateTimestamp sets the LastUpdateTimestamp field's value. +func (s *ApplicationDetail) SetLastUpdateTimestamp(v time.Time) *ApplicationDetail { + s.LastUpdateTimestamp = &v + return s +} + +// SetOutputDescriptions sets the OutputDescriptions field's value. +func (s *ApplicationDetail) SetOutputDescriptions(v []*OutputDescription) *ApplicationDetail { + s.OutputDescriptions = v + return s +} + +// SetReferenceDataSourceDescriptions sets the ReferenceDataSourceDescriptions field's value. +func (s *ApplicationDetail) SetReferenceDataSourceDescriptions(v []*ReferenceDataSourceDescription) *ApplicationDetail { + s.ReferenceDataSourceDescriptions = v + return s +} + // Provides application summary information, including the application Amazon // Resource Name (ARN), name, and status. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/ApplicationSummary type ApplicationSummary struct { _ struct{} `type:"structure"` @@ -1422,7 +1563,26 @@ func (s ApplicationSummary) GoString() string { return s.String() } +// SetApplicationARN sets the ApplicationARN field's value. +func (s *ApplicationSummary) SetApplicationARN(v string) *ApplicationSummary { + s.ApplicationARN = &v + return s +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *ApplicationSummary) SetApplicationName(v string) *ApplicationSummary { + s.ApplicationName = &v + return s +} + +// SetApplicationStatus sets the ApplicationStatus field's value. +func (s *ApplicationSummary) SetApplicationStatus(v string) *ApplicationSummary { + s.ApplicationStatus = &v + return s +} + // Describes updates to apply to an existing Kinesis Analytics application. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/ApplicationUpdate type ApplicationUpdate struct { _ struct{} `type:"structure"` @@ -1489,14 +1649,39 @@ func (s *ApplicationUpdate) Validate() error { return nil } +// SetApplicationCodeUpdate sets the ApplicationCodeUpdate field's value. +func (s *ApplicationUpdate) SetApplicationCodeUpdate(v string) *ApplicationUpdate { + s.ApplicationCodeUpdate = &v + return s +} + +// SetInputUpdates sets the InputUpdates field's value. +func (s *ApplicationUpdate) SetInputUpdates(v []*InputUpdate) *ApplicationUpdate { + s.InputUpdates = v + return s +} + +// SetOutputUpdates sets the OutputUpdates field's value. +func (s *ApplicationUpdate) SetOutputUpdates(v []*OutputUpdate) *ApplicationUpdate { + s.OutputUpdates = v + return s +} + +// SetReferenceDataSourceUpdates sets the ReferenceDataSourceUpdates field's value. +func (s *ApplicationUpdate) SetReferenceDataSourceUpdates(v []*ReferenceDataSourceUpdate) *ApplicationUpdate { + s.ReferenceDataSourceUpdates = v + return s +} + // Provides additional mapping information when the record format uses delimiters, // such as CSV. For example, the following sample records use CSV format, where // the records use the '\n' as the row delimiter and a comma (",") as the column // delimiter: // -// "name1", "address1" +// "name1", "address1" // -// "name2, "address2" +// "name2, "address2" +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/CSVMappingParameters type CSVMappingParameters struct { _ struct{} `type:"structure"` @@ -1538,7 +1723,20 @@ func (s *CSVMappingParameters) Validate() error { return nil } +// SetRecordColumnDelimiter sets the RecordColumnDelimiter field's value. +func (s *CSVMappingParameters) SetRecordColumnDelimiter(v string) *CSVMappingParameters { + s.RecordColumnDelimiter = &v + return s +} + +// SetRecordRowDelimiter sets the RecordRowDelimiter field's value. +func (s *CSVMappingParameters) SetRecordRowDelimiter(v string) *CSVMappingParameters { + s.RecordRowDelimiter = &v + return s +} + // TBD +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/CreateApplicationRequest type CreateApplicationInput struct { _ struct{} `type:"structure"` @@ -1646,7 +1844,38 @@ func (s *CreateApplicationInput) Validate() error { return nil } +// SetApplicationCode sets the ApplicationCode field's value. +func (s *CreateApplicationInput) SetApplicationCode(v string) *CreateApplicationInput { + s.ApplicationCode = &v + return s +} + +// SetApplicationDescription sets the ApplicationDescription field's value. +func (s *CreateApplicationInput) SetApplicationDescription(v string) *CreateApplicationInput { + s.ApplicationDescription = &v + return s +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *CreateApplicationInput) SetApplicationName(v string) *CreateApplicationInput { + s.ApplicationName = &v + return s +} + +// SetInputs sets the Inputs field's value. +func (s *CreateApplicationInput) SetInputs(v []*Input) *CreateApplicationInput { + s.Inputs = v + return s +} + +// SetOutputs sets the Outputs field's value. +func (s *CreateApplicationInput) SetOutputs(v []*Output) *CreateApplicationInput { + s.Outputs = v + return s +} + // TBD +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/CreateApplicationResponse type CreateApplicationOutput struct { _ struct{} `type:"structure"` @@ -1668,6 +1897,13 @@ func (s CreateApplicationOutput) GoString() string { return s.String() } +// SetApplicationSummary sets the ApplicationSummary field's value. +func (s *CreateApplicationOutput) SetApplicationSummary(v *ApplicationSummary) *CreateApplicationOutput { + s.ApplicationSummary = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DeleteApplicationRequest type DeleteApplicationInput struct { _ struct{} `type:"structure"` @@ -1711,6 +1947,19 @@ func (s *DeleteApplicationInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DeleteApplicationInput) SetApplicationName(v string) *DeleteApplicationInput { + s.ApplicationName = &v + return s +} + +// SetCreateTimestamp sets the CreateTimestamp field's value. +func (s *DeleteApplicationInput) SetCreateTimestamp(v time.Time) *DeleteApplicationInput { + s.CreateTimestamp = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DeleteApplicationResponse type DeleteApplicationOutput struct { _ struct{} `type:"structure"` } @@ -1725,6 +1974,7 @@ func (s DeleteApplicationOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DeleteApplicationOutputRequest type DeleteApplicationOutputInput struct { _ struct{} `type:"structure"` @@ -1789,6 +2039,25 @@ func (s *DeleteApplicationOutputInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DeleteApplicationOutputInput) SetApplicationName(v string) *DeleteApplicationOutputInput { + s.ApplicationName = &v + return s +} + +// SetCurrentApplicationVersionId sets the CurrentApplicationVersionId field's value. +func (s *DeleteApplicationOutputInput) SetCurrentApplicationVersionId(v int64) *DeleteApplicationOutputInput { + s.CurrentApplicationVersionId = &v + return s +} + +// SetOutputId sets the OutputId field's value. +func (s *DeleteApplicationOutputInput) SetOutputId(v string) *DeleteApplicationOutputInput { + s.OutputId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DeleteApplicationOutputResponse type DeleteApplicationOutputOutput struct { _ struct{} `type:"structure"` } @@ -1803,6 +2072,7 @@ func (s DeleteApplicationOutputOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DeleteApplicationReferenceDataSourceRequest type DeleteApplicationReferenceDataSourceInput struct { _ struct{} `type:"structure"` @@ -1865,6 +2135,25 @@ func (s *DeleteApplicationReferenceDataSourceInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DeleteApplicationReferenceDataSourceInput) SetApplicationName(v string) *DeleteApplicationReferenceDataSourceInput { + s.ApplicationName = &v + return s +} + +// SetCurrentApplicationVersionId sets the CurrentApplicationVersionId field's value. +func (s *DeleteApplicationReferenceDataSourceInput) SetCurrentApplicationVersionId(v int64) *DeleteApplicationReferenceDataSourceInput { + s.CurrentApplicationVersionId = &v + return s +} + +// SetReferenceId sets the ReferenceId field's value. +func (s *DeleteApplicationReferenceDataSourceInput) SetReferenceId(v string) *DeleteApplicationReferenceDataSourceInput { + s.ReferenceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DeleteApplicationReferenceDataSourceResponse type DeleteApplicationReferenceDataSourceOutput struct { _ struct{} `type:"structure"` } @@ -1879,6 +2168,7 @@ func (s DeleteApplicationReferenceDataSourceOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DescribeApplicationRequest type DescribeApplicationInput struct { _ struct{} `type:"structure"` @@ -1914,6 +2204,13 @@ func (s *DescribeApplicationInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *DescribeApplicationInput) SetApplicationName(v string) *DescribeApplicationInput { + s.ApplicationName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DescribeApplicationResponse type DescribeApplicationOutput struct { _ struct{} `type:"structure"` @@ -1935,8 +2232,15 @@ func (s DescribeApplicationOutput) GoString() string { return s.String() } +// SetApplicationDetail sets the ApplicationDetail field's value. +func (s *DescribeApplicationOutput) SetApplicationDetail(v *ApplicationDetail) *DescribeApplicationOutput { + s.ApplicationDetail = v + return s +} + // Describes the data format when records are written to the destination. For // more information, see Configuring Application Output (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DestinationSchema type DestinationSchema struct { _ struct{} `type:"structure"` @@ -1954,6 +2258,13 @@ func (s DestinationSchema) GoString() string { return s.String() } +// SetRecordFormatType sets the RecordFormatType field's value. +func (s *DestinationSchema) SetRecordFormatType(v string) *DestinationSchema { + s.RecordFormatType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DiscoverInputSchemaRequest type DiscoverInputSchemaInput struct { _ struct{} `type:"structure"` @@ -2010,6 +2321,25 @@ func (s *DiscoverInputSchemaInput) Validate() error { return nil } +// SetInputStartingPositionConfiguration sets the InputStartingPositionConfiguration field's value. +func (s *DiscoverInputSchemaInput) SetInputStartingPositionConfiguration(v *InputStartingPositionConfiguration) *DiscoverInputSchemaInput { + s.InputStartingPositionConfiguration = v + return s +} + +// SetResourceARN sets the ResourceARN field's value. +func (s *DiscoverInputSchemaInput) SetResourceARN(v string) *DiscoverInputSchemaInput { + s.ResourceARN = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *DiscoverInputSchemaInput) SetRoleARN(v string) *DiscoverInputSchemaInput { + s.RoleARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DiscoverInputSchemaResponse type DiscoverInputSchemaOutput struct { _ struct{} `type:"structure"` @@ -2036,9 +2366,28 @@ func (s DiscoverInputSchemaOutput) GoString() string { return s.String() } +// SetInputSchema sets the InputSchema field's value. +func (s *DiscoverInputSchemaOutput) SetInputSchema(v *SourceSchema) *DiscoverInputSchemaOutput { + s.InputSchema = v + return s +} + +// SetParsedInputRecords sets the ParsedInputRecords field's value. +func (s *DiscoverInputSchemaOutput) SetParsedInputRecords(v [][]*string) *DiscoverInputSchemaOutput { + s.ParsedInputRecords = v + return s +} + +// SetRawInputRecords sets the RawInputRecords field's value. +func (s *DiscoverInputSchemaOutput) SetRawInputRecords(v []*string) *DiscoverInputSchemaOutput { + s.RawInputRecords = v + return s +} + // When you configure the application input, you specify the streaming source, // the in-application stream name that is created, and the mapping between the // two. For more information, see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/Input type Input struct { _ struct{} `type:"structure"` @@ -2046,7 +2395,7 @@ type Input struct { // // Data from your source will be routed to these in-application input streams. // - // (see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html). + // (see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html). InputParallelism *InputParallelism `type:"structure"` // Describes the format of the data in the streaming source, and how each data @@ -2127,9 +2476,40 @@ func (s *Input) Validate() error { return nil } +// SetInputParallelism sets the InputParallelism field's value. +func (s *Input) SetInputParallelism(v *InputParallelism) *Input { + s.InputParallelism = v + return s +} + +// SetInputSchema sets the InputSchema field's value. +func (s *Input) SetInputSchema(v *SourceSchema) *Input { + s.InputSchema = v + return s +} + +// SetKinesisFirehoseInput sets the KinesisFirehoseInput field's value. +func (s *Input) SetKinesisFirehoseInput(v *KinesisFirehoseInput) *Input { + s.KinesisFirehoseInput = v + return s +} + +// SetKinesisStreamsInput sets the KinesisStreamsInput field's value. +func (s *Input) SetKinesisStreamsInput(v *KinesisStreamsInput) *Input { + s.KinesisStreamsInput = v + return s +} + +// SetNamePrefix sets the NamePrefix field's value. +func (s *Input) SetNamePrefix(v string) *Input { + s.NamePrefix = &v + return s +} + // When you start your application, you provide this configuration, which identifies // the input source and the point in the input source at which you want the // application to start processing records. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/InputConfiguration type InputConfiguration struct { _ struct{} `type:"structure"` @@ -2174,8 +2554,21 @@ func (s *InputConfiguration) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *InputConfiguration) SetId(v string) *InputConfiguration { + s.Id = &v + return s +} + +// SetInputStartingPositionConfiguration sets the InputStartingPositionConfiguration field's value. +func (s *InputConfiguration) SetInputStartingPositionConfiguration(v *InputStartingPositionConfiguration) *InputConfiguration { + s.InputStartingPositionConfiguration = v + return s +} + // Describes the application input configuration. For more information, see // Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/InputDescription type InputDescription struct { _ struct{} `type:"structure"` @@ -2222,9 +2615,58 @@ func (s InputDescription) GoString() string { return s.String() } +// SetInAppStreamNames sets the InAppStreamNames field's value. +func (s *InputDescription) SetInAppStreamNames(v []*string) *InputDescription { + s.InAppStreamNames = v + return s +} + +// SetInputId sets the InputId field's value. +func (s *InputDescription) SetInputId(v string) *InputDescription { + s.InputId = &v + return s +} + +// SetInputParallelism sets the InputParallelism field's value. +func (s *InputDescription) SetInputParallelism(v *InputParallelism) *InputDescription { + s.InputParallelism = v + return s +} + +// SetInputSchema sets the InputSchema field's value. +func (s *InputDescription) SetInputSchema(v *SourceSchema) *InputDescription { + s.InputSchema = v + return s +} + +// SetInputStartingPositionConfiguration sets the InputStartingPositionConfiguration field's value. +func (s *InputDescription) SetInputStartingPositionConfiguration(v *InputStartingPositionConfiguration) *InputDescription { + s.InputStartingPositionConfiguration = v + return s +} + +// SetKinesisFirehoseInputDescription sets the KinesisFirehoseInputDescription field's value. +func (s *InputDescription) SetKinesisFirehoseInputDescription(v *KinesisFirehoseInputDescription) *InputDescription { + s.KinesisFirehoseInputDescription = v + return s +} + +// SetKinesisStreamsInputDescription sets the KinesisStreamsInputDescription field's value. +func (s *InputDescription) SetKinesisStreamsInputDescription(v *KinesisStreamsInputDescription) *InputDescription { + s.KinesisStreamsInputDescription = v + return s +} + +// SetNamePrefix sets the NamePrefix field's value. +func (s *InputDescription) SetNamePrefix(v string) *InputDescription { + s.NamePrefix = &v + return s +} + // Describes the number of in-application streams to create for a given streaming // source. For information about parallellism, see Configuring Application Input // (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/InputParallelism type InputParallelism struct { _ struct{} `type:"structure"` @@ -2256,7 +2698,14 @@ func (s *InputParallelism) Validate() error { return nil } +// SetCount sets the Count field's value. +func (s *InputParallelism) SetCount(v int64) *InputParallelism { + s.Count = &v + return s +} + // Provides updates to the parallelism count. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/InputParallelismUpdate type InputParallelismUpdate struct { _ struct{} `type:"structure"` @@ -2287,7 +2736,14 @@ func (s *InputParallelismUpdate) Validate() error { return nil } +// SetCountUpdate sets the CountUpdate field's value. +func (s *InputParallelismUpdate) SetCountUpdate(v int64) *InputParallelismUpdate { + s.CountUpdate = &v + return s +} + // Describes updates for the application's input schema. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/InputSchemaUpdate type InputSchemaUpdate struct { _ struct{} `type:"structure"` @@ -2342,20 +2798,39 @@ func (s *InputSchemaUpdate) Validate() error { return nil } +// SetRecordColumnUpdates sets the RecordColumnUpdates field's value. +func (s *InputSchemaUpdate) SetRecordColumnUpdates(v []*RecordColumn) *InputSchemaUpdate { + s.RecordColumnUpdates = v + return s +} + +// SetRecordEncodingUpdate sets the RecordEncodingUpdate field's value. +func (s *InputSchemaUpdate) SetRecordEncodingUpdate(v string) *InputSchemaUpdate { + s.RecordEncodingUpdate = &v + return s +} + +// SetRecordFormatUpdate sets the RecordFormatUpdate field's value. +func (s *InputSchemaUpdate) SetRecordFormatUpdate(v *RecordFormat) *InputSchemaUpdate { + s.RecordFormatUpdate = v + return s +} + // Describes the point at which the application reads from the streaming source. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/InputStartingPositionConfiguration type InputStartingPositionConfiguration struct { _ struct{} `type:"structure"` // The starting position on the stream. // - // LATEST - Start reading just after the most recent record in the stream. + // * LATEST - Start reading just after the most recent record in the stream. // - // TRIM_HORIZON - Start reading at the last untrimmed record in the stream, - // which is the oldest record available in the stream. This option is not available - // for an Amazon Kinesis Firehose delivery stream. + // * TRIM_HORIZON - Start reading at the last untrimmed record in the stream, + // which is the oldest record available in the stream. This option is not + // available for an Amazon Kinesis Firehose delivery stream. // - // LAST_STOPPED_POINT - Resume reading from where the application last stopped - // reading. + // * LAST_STOPPED_POINT - Resume reading from where the application last + // stopped reading. InputStartingPosition *string `type:"string" enum:"InputStartingPosition"` } @@ -2369,8 +2844,15 @@ func (s InputStartingPositionConfiguration) GoString() string { return s.String() } +// SetInputStartingPosition sets the InputStartingPosition field's value. +func (s *InputStartingPositionConfiguration) SetInputStartingPosition(v string) *InputStartingPositionConfiguration { + s.InputStartingPosition = &v + return s +} + // Describes updates to a specific input configuration (identified by the InputId // of an application). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/InputUpdate type InputUpdate struct { _ struct{} `type:"structure"` @@ -2451,8 +2933,45 @@ func (s *InputUpdate) Validate() error { return nil } +// SetInputId sets the InputId field's value. +func (s *InputUpdate) SetInputId(v string) *InputUpdate { + s.InputId = &v + return s +} + +// SetInputParallelismUpdate sets the InputParallelismUpdate field's value. +func (s *InputUpdate) SetInputParallelismUpdate(v *InputParallelismUpdate) *InputUpdate { + s.InputParallelismUpdate = v + return s +} + +// SetInputSchemaUpdate sets the InputSchemaUpdate field's value. +func (s *InputUpdate) SetInputSchemaUpdate(v *InputSchemaUpdate) *InputUpdate { + s.InputSchemaUpdate = v + return s +} + +// SetKinesisFirehoseInputUpdate sets the KinesisFirehoseInputUpdate field's value. +func (s *InputUpdate) SetKinesisFirehoseInputUpdate(v *KinesisFirehoseInputUpdate) *InputUpdate { + s.KinesisFirehoseInputUpdate = v + return s +} + +// SetKinesisStreamsInputUpdate sets the KinesisStreamsInputUpdate field's value. +func (s *InputUpdate) SetKinesisStreamsInputUpdate(v *KinesisStreamsInputUpdate) *InputUpdate { + s.KinesisStreamsInputUpdate = v + return s +} + +// SetNamePrefixUpdate sets the NamePrefixUpdate field's value. +func (s *InputUpdate) SetNamePrefixUpdate(v string) *InputUpdate { + s.NamePrefixUpdate = &v + return s +} + // Provides additional mapping information when JSON is the record format on // the streaming source. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/JSONMappingParameters type JSONMappingParameters struct { _ struct{} `type:"structure"` @@ -2460,8 +2979,8 @@ type JSONMappingParameters struct { // // For example, consider the following JSON record: // - // In the RecordRowPath, "$" refers to the root and path "$.vehicle.Model" - // refers to the specific "Model" key in the JSON. + // In the RecordRowPath, "$" refers to the root and path "$.vehicle.Model" refers + // to the specific "Model" key in the JSON. // // RecordRowPath is a required field RecordRowPath *string `type:"string" required:"true"` @@ -2490,10 +3009,17 @@ func (s *JSONMappingParameters) Validate() error { return nil } +// SetRecordRowPath sets the RecordRowPath field's value. +func (s *JSONMappingParameters) SetRecordRowPath(v string) *JSONMappingParameters { + s.RecordRowPath = &v + return s +} + // Identifies an Amazon Kinesis Firehose delivery stream as the streaming source. // You provide the Firehose delivery stream's Amazon Resource Name (ARN) and // an IAM role ARN that enables Amazon Kinesis Analytics to access the stream // on your behalf. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/KinesisFirehoseInput type KinesisFirehoseInput struct { _ struct{} `type:"structure"` @@ -2542,8 +3068,21 @@ func (s *KinesisFirehoseInput) Validate() error { return nil } +// SetResourceARN sets the ResourceARN field's value. +func (s *KinesisFirehoseInput) SetResourceARN(v string) *KinesisFirehoseInput { + s.ResourceARN = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *KinesisFirehoseInput) SetRoleARN(v string) *KinesisFirehoseInput { + s.RoleARN = &v + return s +} + // Describes the Amazon Kinesis Firehose delivery stream that is configured // as the streaming source in the application input configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/KinesisFirehoseInputDescription type KinesisFirehoseInputDescription struct { _ struct{} `type:"structure"` @@ -2564,8 +3103,21 @@ func (s KinesisFirehoseInputDescription) GoString() string { return s.String() } +// SetResourceARN sets the ResourceARN field's value. +func (s *KinesisFirehoseInputDescription) SetResourceARN(v string) *KinesisFirehoseInputDescription { + s.ResourceARN = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *KinesisFirehoseInputDescription) SetRoleARN(v string) *KinesisFirehoseInputDescription { + s.RoleARN = &v + return s +} + // When updating application input configuration, provides information about // an Amazon Kinesis Firehose delivery stream as the streaming source. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/KinesisFirehoseInputUpdate type KinesisFirehoseInputUpdate struct { _ struct{} `type:"structure"` @@ -2604,10 +3156,23 @@ func (s *KinesisFirehoseInputUpdate) Validate() error { return nil } +// SetResourceARNUpdate sets the ResourceARNUpdate field's value. +func (s *KinesisFirehoseInputUpdate) SetResourceARNUpdate(v string) *KinesisFirehoseInputUpdate { + s.ResourceARNUpdate = &v + return s +} + +// SetRoleARNUpdate sets the RoleARNUpdate field's value. +func (s *KinesisFirehoseInputUpdate) SetRoleARNUpdate(v string) *KinesisFirehoseInputUpdate { + s.RoleARNUpdate = &v + return s +} + // When configuring application output, identifies an Amazon Kinesis Firehose // delivery stream as the destination. You provide the stream Amazon Resource // Name (ARN) and an IAM role that enables Amazon Kinesis Analytics to write // to the stream on your behalf. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/KinesisFirehoseOutput type KinesisFirehoseOutput struct { _ struct{} `type:"structure"` @@ -2656,8 +3221,21 @@ func (s *KinesisFirehoseOutput) Validate() error { return nil } +// SetResourceARN sets the ResourceARN field's value. +func (s *KinesisFirehoseOutput) SetResourceARN(v string) *KinesisFirehoseOutput { + s.ResourceARN = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *KinesisFirehoseOutput) SetRoleARN(v string) *KinesisFirehoseOutput { + s.RoleARN = &v + return s +} + // For an application output, describes the Amazon Kinesis Firehose delivery // stream configured as its destination. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/KinesisFirehoseOutputDescription type KinesisFirehoseOutputDescription struct { _ struct{} `type:"structure"` @@ -2679,9 +3257,22 @@ func (s KinesisFirehoseOutputDescription) GoString() string { return s.String() } +// SetResourceARN sets the ResourceARN field's value. +func (s *KinesisFirehoseOutputDescription) SetResourceARN(v string) *KinesisFirehoseOutputDescription { + s.ResourceARN = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *KinesisFirehoseOutputDescription) SetRoleARN(v string) *KinesisFirehoseOutputDescription { + s.RoleARN = &v + return s +} + // When updating an output configuration using the UpdateApplication operation, // provides information about an Amazon Kinesis Firehose delivery stream configured // as the destination. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/KinesisFirehoseOutputUpdate type KinesisFirehoseOutputUpdate struct { _ struct{} `type:"structure"` @@ -2720,9 +3311,22 @@ func (s *KinesisFirehoseOutputUpdate) Validate() error { return nil } +// SetResourceARNUpdate sets the ResourceARNUpdate field's value. +func (s *KinesisFirehoseOutputUpdate) SetResourceARNUpdate(v string) *KinesisFirehoseOutputUpdate { + s.ResourceARNUpdate = &v + return s +} + +// SetRoleARNUpdate sets the RoleARNUpdate field's value. +func (s *KinesisFirehoseOutputUpdate) SetRoleARNUpdate(v string) *KinesisFirehoseOutputUpdate { + s.RoleARNUpdate = &v + return s +} + // Identifies an Amazon Kinesis stream as the streaming source. You provide // the stream's ARN and an IAM role ARN that enables Amazon Kinesis Analytics // to access the stream on your behalf. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/KinesisStreamsInput type KinesisStreamsInput struct { _ struct{} `type:"structure"` @@ -2771,8 +3375,21 @@ func (s *KinesisStreamsInput) Validate() error { return nil } +// SetResourceARN sets the ResourceARN field's value. +func (s *KinesisStreamsInput) SetResourceARN(v string) *KinesisStreamsInput { + s.ResourceARN = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *KinesisStreamsInput) SetRoleARN(v string) *KinesisStreamsInput { + s.RoleARN = &v + return s +} + // Describes the Amazon Kinesis stream that is configured as the streaming source // in the application input configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/KinesisStreamsInputDescription type KinesisStreamsInputDescription struct { _ struct{} `type:"structure"` @@ -2794,8 +3411,21 @@ func (s KinesisStreamsInputDescription) GoString() string { return s.String() } +// SetResourceARN sets the ResourceARN field's value. +func (s *KinesisStreamsInputDescription) SetResourceARN(v string) *KinesisStreamsInputDescription { + s.ResourceARN = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *KinesisStreamsInputDescription) SetRoleARN(v string) *KinesisStreamsInputDescription { + s.RoleARN = &v + return s +} + // When updating application input configuration, provides information about // an Amazon Kinesis stream as the streaming source. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/KinesisStreamsInputUpdate type KinesisStreamsInputUpdate struct { _ struct{} `type:"structure"` @@ -2834,10 +3464,23 @@ func (s *KinesisStreamsInputUpdate) Validate() error { return nil } +// SetResourceARNUpdate sets the ResourceARNUpdate field's value. +func (s *KinesisStreamsInputUpdate) SetResourceARNUpdate(v string) *KinesisStreamsInputUpdate { + s.ResourceARNUpdate = &v + return s +} + +// SetRoleARNUpdate sets the RoleARNUpdate field's value. +func (s *KinesisStreamsInputUpdate) SetRoleARNUpdate(v string) *KinesisStreamsInputUpdate { + s.RoleARNUpdate = &v + return s +} + // When configuring application output, identifies a Amazon Kinesis stream as // the destination. You provide the stream Amazon Resource Name (ARN) and also // an IAM role ARN that Amazon Kinesis Analytics can use to write to the stream // on your behalf. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/KinesisStreamsOutput type KinesisStreamsOutput struct { _ struct{} `type:"structure"` @@ -2886,8 +3529,21 @@ func (s *KinesisStreamsOutput) Validate() error { return nil } +// SetResourceARN sets the ResourceARN field's value. +func (s *KinesisStreamsOutput) SetResourceARN(v string) *KinesisStreamsOutput { + s.ResourceARN = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *KinesisStreamsOutput) SetRoleARN(v string) *KinesisStreamsOutput { + s.RoleARN = &v + return s +} + // For an application output, describes the Amazon Kinesis stream configured // as its destination. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/KinesisStreamsOutputDescription type KinesisStreamsOutputDescription struct { _ struct{} `type:"structure"` @@ -2909,8 +3565,21 @@ func (s KinesisStreamsOutputDescription) GoString() string { return s.String() } +// SetResourceARN sets the ResourceARN field's value. +func (s *KinesisStreamsOutputDescription) SetResourceARN(v string) *KinesisStreamsOutputDescription { + s.ResourceARN = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *KinesisStreamsOutputDescription) SetRoleARN(v string) *KinesisStreamsOutputDescription { + s.RoleARN = &v + return s +} + // When updating an output configuration using the UpdateApplication operation, // provides information about an Amazon Kinesis stream configured as the destination. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/KinesisStreamsOutputUpdate type KinesisStreamsOutputUpdate struct { _ struct{} `type:"structure"` @@ -2950,6 +3619,19 @@ func (s *KinesisStreamsOutputUpdate) Validate() error { return nil } +// SetResourceARNUpdate sets the ResourceARNUpdate field's value. +func (s *KinesisStreamsOutputUpdate) SetResourceARNUpdate(v string) *KinesisStreamsOutputUpdate { + s.ResourceARNUpdate = &v + return s +} + +// SetRoleARNUpdate sets the RoleARNUpdate field's value. +func (s *KinesisStreamsOutputUpdate) SetRoleARNUpdate(v string) *KinesisStreamsOutputUpdate { + s.RoleARNUpdate = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/ListApplicationsRequest type ListApplicationsInput struct { _ struct{} `type:"structure"` @@ -2989,6 +3671,19 @@ func (s *ListApplicationsInput) Validate() error { return nil } +// SetExclusiveStartApplicationName sets the ExclusiveStartApplicationName field's value. +func (s *ListApplicationsInput) SetExclusiveStartApplicationName(v string) *ListApplicationsInput { + s.ExclusiveStartApplicationName = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListApplicationsInput) SetLimit(v int64) *ListApplicationsInput { + s.Limit = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/ListApplicationsResponse type ListApplicationsOutput struct { _ struct{} `type:"structure"` @@ -3013,10 +3708,23 @@ func (s ListApplicationsOutput) GoString() string { return s.String() } +// SetApplicationSummaries sets the ApplicationSummaries field's value. +func (s *ListApplicationsOutput) SetApplicationSummaries(v []*ApplicationSummary) *ListApplicationsOutput { + s.ApplicationSummaries = v + return s +} + +// SetHasMoreApplications sets the HasMoreApplications field's value. +func (s *ListApplicationsOutput) SetHasMoreApplications(v bool) *ListApplicationsOutput { + s.HasMoreApplications = &v + return s +} + // When configuring application input at the time of creating or updating an // application, provides additional mapping information specific to the record // format (such as JSON, CSV, or record fields delimited by some delimiter) // on the streaming source. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/MappingParameters type MappingParameters struct { _ struct{} `type:"structure"` @@ -3059,12 +3767,23 @@ func (s *MappingParameters) Validate() error { return nil } +// SetCSVMappingParameters sets the CSVMappingParameters field's value. +func (s *MappingParameters) SetCSVMappingParameters(v *CSVMappingParameters) *MappingParameters { + s.CSVMappingParameters = v + return s +} + +// SetJSONMappingParameters sets the JSONMappingParameters field's value. +func (s *MappingParameters) SetJSONMappingParameters(v *JSONMappingParameters) *MappingParameters { + s.JSONMappingParameters = v + return s +} + // Describes application output configuration in which you identify an in-application // stream and a destination where you want the in-application stream data to // be written. The destination can be an Amazon Kinesis stream or an Amazon // Kinesis Firehose delivery stream. -// -// You can configure your application to write output to up to five destinations. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/Output type Output struct { _ struct{} `type:"structure"` @@ -3125,9 +3844,34 @@ func (s *Output) Validate() error { return nil } +// SetDestinationSchema sets the DestinationSchema field's value. +func (s *Output) SetDestinationSchema(v *DestinationSchema) *Output { + s.DestinationSchema = v + return s +} + +// SetKinesisFirehoseOutput sets the KinesisFirehoseOutput field's value. +func (s *Output) SetKinesisFirehoseOutput(v *KinesisFirehoseOutput) *Output { + s.KinesisFirehoseOutput = v + return s +} + +// SetKinesisStreamsOutput sets the KinesisStreamsOutput field's value. +func (s *Output) SetKinesisStreamsOutput(v *KinesisStreamsOutput) *Output { + s.KinesisStreamsOutput = v + return s +} + +// SetName sets the Name field's value. +func (s *Output) SetName(v string) *Output { + s.Name = &v + return s +} + // Describes the application output configuration, which includes the in-application // stream name and the destination where the stream data is written. The destination // can be an Amazon Kinesis stream or an Amazon Kinesis Firehose delivery stream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/OutputDescription type OutputDescription struct { _ struct{} `type:"structure"` @@ -3159,7 +3903,38 @@ func (s OutputDescription) GoString() string { return s.String() } +// SetDestinationSchema sets the DestinationSchema field's value. +func (s *OutputDescription) SetDestinationSchema(v *DestinationSchema) *OutputDescription { + s.DestinationSchema = v + return s +} + +// SetKinesisFirehoseOutputDescription sets the KinesisFirehoseOutputDescription field's value. +func (s *OutputDescription) SetKinesisFirehoseOutputDescription(v *KinesisFirehoseOutputDescription) *OutputDescription { + s.KinesisFirehoseOutputDescription = v + return s +} + +// SetKinesisStreamsOutputDescription sets the KinesisStreamsOutputDescription field's value. +func (s *OutputDescription) SetKinesisStreamsOutputDescription(v *KinesisStreamsOutputDescription) *OutputDescription { + s.KinesisStreamsOutputDescription = v + return s +} + +// SetName sets the Name field's value. +func (s *OutputDescription) SetName(v string) *OutputDescription { + s.Name = &v + return s +} + +// SetOutputId sets the OutputId field's value. +func (s *OutputDescription) SetOutputId(v string) *OutputDescription { + s.OutputId = &v + return s +} + // Describes updates to the output configuration identified by the OutputId. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/OutputUpdate type OutputUpdate struct { _ struct{} `type:"structure"` @@ -3223,10 +3998,41 @@ func (s *OutputUpdate) Validate() error { return nil } +// SetDestinationSchemaUpdate sets the DestinationSchemaUpdate field's value. +func (s *OutputUpdate) SetDestinationSchemaUpdate(v *DestinationSchema) *OutputUpdate { + s.DestinationSchemaUpdate = v + return s +} + +// SetKinesisFirehoseOutputUpdate sets the KinesisFirehoseOutputUpdate field's value. +func (s *OutputUpdate) SetKinesisFirehoseOutputUpdate(v *KinesisFirehoseOutputUpdate) *OutputUpdate { + s.KinesisFirehoseOutputUpdate = v + return s +} + +// SetKinesisStreamsOutputUpdate sets the KinesisStreamsOutputUpdate field's value. +func (s *OutputUpdate) SetKinesisStreamsOutputUpdate(v *KinesisStreamsOutputUpdate) *OutputUpdate { + s.KinesisStreamsOutputUpdate = v + return s +} + +// SetNameUpdate sets the NameUpdate field's value. +func (s *OutputUpdate) SetNameUpdate(v string) *OutputUpdate { + s.NameUpdate = &v + return s +} + +// SetOutputId sets the OutputId field's value. +func (s *OutputUpdate) SetOutputId(v string) *OutputUpdate { + s.OutputId = &v + return s +} + // Describes the mapping of each data element in the streaming source to the // corresponding column in the in-application stream. // // Also used to describe the format of the reference data source. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/RecordColumn type RecordColumn struct { _ struct{} `type:"structure"` @@ -3272,8 +4078,27 @@ func (s *RecordColumn) Validate() error { return nil } +// SetMapping sets the Mapping field's value. +func (s *RecordColumn) SetMapping(v string) *RecordColumn { + s.Mapping = &v + return s +} + +// SetName sets the Name field's value. +func (s *RecordColumn) SetName(v string) *RecordColumn { + s.Name = &v + return s +} + +// SetSqlType sets the SqlType field's value. +func (s *RecordColumn) SetSqlType(v string) *RecordColumn { + s.SqlType = &v + return s +} + // Describes the record format and relevant mapping information that should // be applied to schematize the records on the stream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/RecordFormat type RecordFormat struct { _ struct{} `type:"structure"` @@ -3317,10 +4142,23 @@ func (s *RecordFormat) Validate() error { return nil } +// SetMappingParameters sets the MappingParameters field's value. +func (s *RecordFormat) SetMappingParameters(v *MappingParameters) *RecordFormat { + s.MappingParameters = v + return s +} + +// SetRecordFormatType sets the RecordFormatType field's value. +func (s *RecordFormat) SetRecordFormatType(v string) *RecordFormat { + s.RecordFormatType = &v + return s +} + // Describes the reference data source by providing the source information (S3 // bucket name and object key name), the resulting in-application table name // that is created, and the necessary schema to map the data elements in the // Amazon S3 object to the in-application table. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/ReferenceDataSource type ReferenceDataSource struct { _ struct{} `type:"structure"` @@ -3334,9 +4172,9 @@ type ReferenceDataSource struct { // identifies the IAM role Amazon Kinesis Analytics can assume to read this // object on your behalf. // - // An Amazon Kinesis Analytics application loads reference data only once. - // If the data changes, you call the UpdateApplication operation to trigger - // reloading of data into your application. + // An Amazon Kinesis Analytics application loads reference data only once. If + // the data changes, you call the UpdateApplication operation to trigger reloading + // of data into your application. S3ReferenceDataSource *S3ReferenceDataSource `type:"structure"` // Name of the in-application table to create. @@ -3384,7 +4222,26 @@ func (s *ReferenceDataSource) Validate() error { return nil } +// SetReferenceSchema sets the ReferenceSchema field's value. +func (s *ReferenceDataSource) SetReferenceSchema(v *SourceSchema) *ReferenceDataSource { + s.ReferenceSchema = v + return s +} + +// SetS3ReferenceDataSource sets the S3ReferenceDataSource field's value. +func (s *ReferenceDataSource) SetS3ReferenceDataSource(v *S3ReferenceDataSource) *ReferenceDataSource { + s.S3ReferenceDataSource = v + return s +} + +// SetTableName sets the TableName field's value. +func (s *ReferenceDataSource) SetTableName(v string) *ReferenceDataSource { + s.TableName = &v + return s +} + // Describes the reference data source configured for an application. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/ReferenceDataSourceDescription type ReferenceDataSourceDescription struct { _ struct{} `type:"structure"` @@ -3424,11 +4281,36 @@ func (s ReferenceDataSourceDescription) GoString() string { return s.String() } +// SetReferenceId sets the ReferenceId field's value. +func (s *ReferenceDataSourceDescription) SetReferenceId(v string) *ReferenceDataSourceDescription { + s.ReferenceId = &v + return s +} + +// SetReferenceSchema sets the ReferenceSchema field's value. +func (s *ReferenceDataSourceDescription) SetReferenceSchema(v *SourceSchema) *ReferenceDataSourceDescription { + s.ReferenceSchema = v + return s +} + +// SetS3ReferenceDataSourceDescription sets the S3ReferenceDataSourceDescription field's value. +func (s *ReferenceDataSourceDescription) SetS3ReferenceDataSourceDescription(v *S3ReferenceDataSourceDescription) *ReferenceDataSourceDescription { + s.S3ReferenceDataSourceDescription = v + return s +} + +// SetTableName sets the TableName field's value. +func (s *ReferenceDataSourceDescription) SetTableName(v string) *ReferenceDataSourceDescription { + s.TableName = &v + return s +} + // When you update a reference data source configuration for an application, // this object provides all the updated values (such as the source bucket name // and object key name), the in-application table name that is created, and // updated mapping information that maps the data in the Amazon S3 object to // the in-application reference table that is created. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/ReferenceDataSourceUpdate type ReferenceDataSourceUpdate struct { _ struct{} `type:"structure"` @@ -3490,13 +4372,38 @@ func (s *ReferenceDataSourceUpdate) Validate() error { return nil } +// SetReferenceId sets the ReferenceId field's value. +func (s *ReferenceDataSourceUpdate) SetReferenceId(v string) *ReferenceDataSourceUpdate { + s.ReferenceId = &v + return s +} + +// SetReferenceSchemaUpdate sets the ReferenceSchemaUpdate field's value. +func (s *ReferenceDataSourceUpdate) SetReferenceSchemaUpdate(v *SourceSchema) *ReferenceDataSourceUpdate { + s.ReferenceSchemaUpdate = v + return s +} + +// SetS3ReferenceDataSourceUpdate sets the S3ReferenceDataSourceUpdate field's value. +func (s *ReferenceDataSourceUpdate) SetS3ReferenceDataSourceUpdate(v *S3ReferenceDataSourceUpdate) *ReferenceDataSourceUpdate { + s.S3ReferenceDataSourceUpdate = v + return s +} + +// SetTableNameUpdate sets the TableNameUpdate field's value. +func (s *ReferenceDataSourceUpdate) SetTableNameUpdate(v string) *ReferenceDataSourceUpdate { + s.TableNameUpdate = &v + return s +} + // Identifies the S3 bucket and object that contains the reference data. Also // identifies the IAM role Amazon Kinesis Analytics can assume to read this // object on your behalf. // -// An Amazon Kinesis Analytics application loads reference data only once. -// If the data changes, you call the UpdateApplication operation to trigger -// reloading of data into your application. +// An Amazon Kinesis Analytics application loads reference data only once. If +// the data changes, you call the UpdateApplication operation to trigger reloading +// of data into your application. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/S3ReferenceDataSource type S3ReferenceDataSource struct { _ struct{} `type:"structure"` @@ -3554,7 +4461,26 @@ func (s *S3ReferenceDataSource) Validate() error { return nil } +// SetBucketARN sets the BucketARN field's value. +func (s *S3ReferenceDataSource) SetBucketARN(v string) *S3ReferenceDataSource { + s.BucketARN = &v + return s +} + +// SetFileKey sets the FileKey field's value. +func (s *S3ReferenceDataSource) SetFileKey(v string) *S3ReferenceDataSource { + s.FileKey = &v + return s +} + +// SetReferenceRoleARN sets the ReferenceRoleARN field's value. +func (s *S3ReferenceDataSource) SetReferenceRoleARN(v string) *S3ReferenceDataSource { + s.ReferenceRoleARN = &v + return s +} + // Provides the bucket name and object key name that stores the reference data. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/S3ReferenceDataSourceDescription type S3ReferenceDataSourceDescription struct { _ struct{} `type:"structure"` @@ -3586,9 +4512,28 @@ func (s S3ReferenceDataSourceDescription) GoString() string { return s.String() } +// SetBucketARN sets the BucketARN field's value. +func (s *S3ReferenceDataSourceDescription) SetBucketARN(v string) *S3ReferenceDataSourceDescription { + s.BucketARN = &v + return s +} + +// SetFileKey sets the FileKey field's value. +func (s *S3ReferenceDataSourceDescription) SetFileKey(v string) *S3ReferenceDataSourceDescription { + s.FileKey = &v + return s +} + +// SetReferenceRoleARN sets the ReferenceRoleARN field's value. +func (s *S3ReferenceDataSourceDescription) SetReferenceRoleARN(v string) *S3ReferenceDataSourceDescription { + s.ReferenceRoleARN = &v + return s +} + // Describes the S3 bucket name, object key name, and IAM role that Amazon Kinesis // Analytics can assume to read the Amazon S3 object on your behalf and populate // the in-application reference table. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/S3ReferenceDataSourceUpdate type S3ReferenceDataSourceUpdate struct { _ struct{} `type:"structure"` @@ -3629,8 +4574,27 @@ func (s *S3ReferenceDataSourceUpdate) Validate() error { return nil } +// SetBucketARNUpdate sets the BucketARNUpdate field's value. +func (s *S3ReferenceDataSourceUpdate) SetBucketARNUpdate(v string) *S3ReferenceDataSourceUpdate { + s.BucketARNUpdate = &v + return s +} + +// SetFileKeyUpdate sets the FileKeyUpdate field's value. +func (s *S3ReferenceDataSourceUpdate) SetFileKeyUpdate(v string) *S3ReferenceDataSourceUpdate { + s.FileKeyUpdate = &v + return s +} + +// SetReferenceRoleARNUpdate sets the ReferenceRoleARNUpdate field's value. +func (s *S3ReferenceDataSourceUpdate) SetReferenceRoleARNUpdate(v string) *S3ReferenceDataSourceUpdate { + s.ReferenceRoleARNUpdate = &v + return s +} + // Describes the format of the data in the streaming source, and how each data // element maps to corresponding columns created in the in-application stream. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/SourceSchema type SourceSchema struct { _ struct{} `type:"structure"` @@ -3693,6 +4657,25 @@ func (s *SourceSchema) Validate() error { return nil } +// SetRecordColumns sets the RecordColumns field's value. +func (s *SourceSchema) SetRecordColumns(v []*RecordColumn) *SourceSchema { + s.RecordColumns = v + return s +} + +// SetRecordEncoding sets the RecordEncoding field's value. +func (s *SourceSchema) SetRecordEncoding(v string) *SourceSchema { + s.RecordEncoding = &v + return s +} + +// SetRecordFormat sets the RecordFormat field's value. +func (s *SourceSchema) SetRecordFormat(v *RecordFormat) *SourceSchema { + s.RecordFormat = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/StartApplicationRequest type StartApplicationInput struct { _ struct{} `type:"structure"` @@ -3749,6 +4732,19 @@ func (s *StartApplicationInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *StartApplicationInput) SetApplicationName(v string) *StartApplicationInput { + s.ApplicationName = &v + return s +} + +// SetInputConfigurations sets the InputConfigurations field's value. +func (s *StartApplicationInput) SetInputConfigurations(v []*InputConfiguration) *StartApplicationInput { + s.InputConfigurations = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/StartApplicationResponse type StartApplicationOutput struct { _ struct{} `type:"structure"` } @@ -3763,6 +4759,7 @@ func (s StartApplicationOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/StopApplicationRequest type StopApplicationInput struct { _ struct{} `type:"structure"` @@ -3798,6 +4795,13 @@ func (s *StopApplicationInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *StopApplicationInput) SetApplicationName(v string) *StopApplicationInput { + s.ApplicationName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/StopApplicationResponse type StopApplicationOutput struct { _ struct{} `type:"structure"` } @@ -3812,6 +4816,7 @@ func (s StopApplicationOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/UpdateApplicationRequest type UpdateApplicationInput struct { _ struct{} `type:"structure"` @@ -3872,6 +4877,25 @@ func (s *UpdateApplicationInput) Validate() error { return nil } +// SetApplicationName sets the ApplicationName field's value. +func (s *UpdateApplicationInput) SetApplicationName(v string) *UpdateApplicationInput { + s.ApplicationName = &v + return s +} + +// SetApplicationUpdate sets the ApplicationUpdate field's value. +func (s *UpdateApplicationInput) SetApplicationUpdate(v *ApplicationUpdate) *UpdateApplicationInput { + s.ApplicationUpdate = v + return s +} + +// SetCurrentApplicationVersionId sets the CurrentApplicationVersionId field's value. +func (s *UpdateApplicationInput) SetCurrentApplicationVersionId(v int64) *UpdateApplicationInput { + s.CurrentApplicationVersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/UpdateApplicationResponse type UpdateApplicationOutput struct { _ struct{} `type:"structure"` } diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/errors.go b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/errors.go new file mode 100644 index 000000000..ef68f088c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/errors.go @@ -0,0 +1,65 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package kinesisanalytics + +const ( + + // ErrCodeCodeValidationException for service response error code + // "CodeValidationException". + // + // User-provided application code (query) is invalid. This can be a simple syntax + // error. + ErrCodeCodeValidationException = "CodeValidationException" + + // ErrCodeConcurrentModificationException for service response error code + // "ConcurrentModificationException". + // + // Exception thrown as a result of concurrent modification to an application. + // For example, two individuals attempting to edit the same application at the + // same time. + ErrCodeConcurrentModificationException = "ConcurrentModificationException" + + // ErrCodeInvalidApplicationConfigurationException for service response error code + // "InvalidApplicationConfigurationException". + // + // User-provided application configuration is not valid. + ErrCodeInvalidApplicationConfigurationException = "InvalidApplicationConfigurationException" + + // ErrCodeInvalidArgumentException for service response error code + // "InvalidArgumentException". + // + // Specified input parameter value is invalid. + ErrCodeInvalidArgumentException = "InvalidArgumentException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // Exceeded the number of applications allowed. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeResourceInUseException for service response error code + // "ResourceInUseException". + // + // Application is not available for this operation. + ErrCodeResourceInUseException = "ResourceInUseException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // Specified application can't be found. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeResourceProvisionedThroughputExceededException for service response error code + // "ResourceProvisionedThroughputExceededException". + // + // Discovery failed to get a record from the streaming source because of the + // Kinesis Streams ProvisionedThroughputExceededException. + ErrCodeResourceProvisionedThroughputExceededException = "ResourceProvisionedThroughputExceededException" + + // ErrCodeUnableToDetectSchemaException for service response error code + // "UnableToDetectSchemaException". + // + // Data format is not valid, Kinesis Analytics is not able to detect schema + // for the given streaming source. + ErrCodeUnableToDetectSchemaException = "UnableToDetectSchemaException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/examples_test.go index 4f9b568ea..efacb8753 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleKinesisAnalytics_AddApplicationInput() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -79,11 +75,7 @@ func ExampleKinesisAnalytics_AddApplicationInput() { } func ExampleKinesisAnalytics_AddApplicationOutput() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -119,11 +111,7 @@ func ExampleKinesisAnalytics_AddApplicationOutput() { } func ExampleKinesisAnalytics_AddApplicationReferenceDataSource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -176,11 +164,7 @@ func ExampleKinesisAnalytics_AddApplicationReferenceDataSource() { } func ExampleKinesisAnalytics_CreateApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -260,11 +244,7 @@ func ExampleKinesisAnalytics_CreateApplication() { } func ExampleKinesisAnalytics_DeleteApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -286,11 +266,7 @@ func ExampleKinesisAnalytics_DeleteApplication() { } func ExampleKinesisAnalytics_DeleteApplicationOutput() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -313,11 +289,7 @@ func ExampleKinesisAnalytics_DeleteApplicationOutput() { } func ExampleKinesisAnalytics_DeleteApplicationReferenceDataSource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -340,11 +312,7 @@ func ExampleKinesisAnalytics_DeleteApplicationReferenceDataSource() { } func ExampleKinesisAnalytics_DescribeApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -365,11 +333,7 @@ func ExampleKinesisAnalytics_DescribeApplication() { } func ExampleKinesisAnalytics_DiscoverInputSchema() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -394,11 +358,7 @@ func ExampleKinesisAnalytics_DiscoverInputSchema() { } func ExampleKinesisAnalytics_ListApplications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -420,11 +380,7 @@ func ExampleKinesisAnalytics_ListApplications() { } func ExampleKinesisAnalytics_StartApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -454,11 +410,7 @@ func ExampleKinesisAnalytics_StartApplication() { } func ExampleKinesisAnalytics_StopApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) @@ -479,11 +431,7 @@ func ExampleKinesisAnalytics_StopApplication() { } func ExampleKinesisAnalytics_UpdateApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kinesisanalytics.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/kinesisanalyticsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/kinesisanalyticsiface/interface.go index f7263a839..f988845dd 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/kinesisanalyticsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/kinesisanalyticsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockKinesisAnalyticsClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/service.go b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/service.go index a8408aad0..9c2d5fa3e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/service.go @@ -12,8 +12,9 @@ import ( ) // KinesisAnalytics is a client for Kinesis Analytics. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14 type KinesisAnalytics struct { *client.Client } @@ -24,8 +25,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "kinesisanalytics" +// Service information constants +const ( + ServiceName = "kinesisanalytics" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the KinesisAnalytics client with a session. // If additional configuration is needed for the client instance use the optional @@ -38,17 +42,18 @@ const ServiceName = "kinesisanalytics" // // Create a KinesisAnalytics client with additional configuration // svc := kinesisanalytics.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *KinesisAnalytics { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *KinesisAnalytics { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *KinesisAnalytics { svc := &KinesisAnalytics{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-08-14", diff --git a/vendor/github.com/aws/aws-sdk-go/service/kms/api.go b/vendor/github.com/aws/aws-sdk-go/service/kms/api.go index a11bddc41..afd375b1c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kms/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kms/api.go @@ -4,6 +4,7 @@ package kms import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws/awsutil" @@ -38,6 +39,7 @@ const opCancelKeyDeletion = "CancelKeyDeletion" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CancelKeyDeletion func (c *KMS) CancelKeyDeletionRequest(input *CancelKeyDeletionInput) (req *request.Request, output *CancelKeyDeletionOutput) { op := &request.Operation{ Name: opCancelKeyDeletion, @@ -49,9 +51,8 @@ func (c *KMS) CancelKeyDeletionRequest(input *CancelKeyDeletionInput) (req *requ input = &CancelKeyDeletionInput{} } - req = c.newRequest(op, input, output) output = &CancelKeyDeletionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -73,22 +74,22 @@ func (c *KMS) CancelKeyDeletionRequest(input *CancelKeyDeletionInput) (req *requ // API operation CancelKeyDeletion for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -96,6 +97,7 @@ func (c *KMS) CancelKeyDeletionRequest(input *CancelKeyDeletionInput) (req *requ // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CancelKeyDeletion func (c *KMS) CancelKeyDeletion(input *CancelKeyDeletionInput) (*CancelKeyDeletionOutput, error) { req, out := c.CancelKeyDeletionRequest(input) err := req.Send() @@ -128,6 +130,7 @@ const opCreateAlias = "CreateAlias" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateAlias func (c *KMS) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, output *CreateAliasOutput) { op := &request.Operation{ Name: opCreateAlias, @@ -139,11 +142,10 @@ func (c *KMS) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, input = &CreateAliasInput{} } + output = &CreateAliasOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CreateAliasOutput{} - req.Data = output return } @@ -170,31 +172,31 @@ func (c *KMS) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, // API operation CreateAlias for usage and error information. // // Returned Error Codes: -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * AlreadyExistsException +// * ErrCodeAlreadyExistsException "AlreadyExistsException" // The request was rejected because it attempted to create a resource that already // exists. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidAliasNameException +// * ErrCodeInvalidAliasNameException "InvalidAliasNameException" // The request was rejected because the specified alias name is not valid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The request was rejected because a limit was exceeded. For more information, // see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html) // in the AWS Key Management Service Developer Guide. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -202,6 +204,7 @@ func (c *KMS) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateAlias func (c *KMS) CreateAlias(input *CreateAliasInput) (*CreateAliasOutput, error) { req, out := c.CreateAliasRequest(input) err := req.Send() @@ -234,6 +237,7 @@ const opCreateGrant = "CreateGrant" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateGrant func (c *KMS) CreateGrantRequest(input *CreateGrantInput) (req *request.Request, output *CreateGrantOutput) { op := &request.Operation{ Name: opCreateGrant, @@ -245,9 +249,8 @@ func (c *KMS) CreateGrantRequest(input *CreateGrantInput) (req *request.Request, input = &CreateGrantInput{} } - req = c.newRequest(op, input, output) output = &CreateGrantOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -267,33 +270,33 @@ func (c *KMS) CreateGrantRequest(input *CreateGrantInput) (req *request.Request, // API operation CreateGrant for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DisabledException +// * ErrCodeDisabledException "DisabledException" // The request was rejected because the specified CMK is not enabled. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidGrantTokenException +// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" // The request was rejected because the specified grant token is not valid. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The request was rejected because a limit was exceeded. For more information, // see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html) // in the AWS Key Management Service Developer Guide. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -301,6 +304,7 @@ func (c *KMS) CreateGrantRequest(input *CreateGrantInput) (req *request.Request, // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateGrant func (c *KMS) CreateGrant(input *CreateGrantInput) (*CreateGrantOutput, error) { req, out := c.CreateGrantRequest(input) err := req.Send() @@ -333,6 +337,7 @@ const opCreateKey = "CreateKey" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateKey func (c *KMS) CreateKeyRequest(input *CreateKeyInput) (req *request.Request, output *CreateKeyOutput) { op := &request.Operation{ Name: opCreateKey, @@ -344,9 +349,8 @@ func (c *KMS) CreateKeyRequest(input *CreateKeyInput) (req *request.Request, out input = &CreateKeyInput{} } - req = c.newRequest(op, input, output) output = &CreateKeyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -359,10 +363,10 @@ func (c *KMS) CreateKeyRequest(input *CreateKeyInput) (req *request.Request, out // are used to encrypt raw data. For more information about DEKs and the difference // between CMKs and DEKs, see the following: // -// The GenerateDataKey operation +// * The GenerateDataKey operation // -// AWS Key Management Service Concepts (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html) -// in the AWS Key Management Service Developer Guide +// * AWS Key Management Service Concepts (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html) +// in the AWS Key Management Service Developer Guide // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -372,30 +376,34 @@ func (c *KMS) CreateKeyRequest(input *CreateKeyInput) (req *request.Request, out // API operation CreateKey for usage and error information. // // Returned Error Codes: -// * MalformedPolicyDocumentException +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocumentException" // The request was rejected because the specified policy is not syntactically // or semantically correct. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The request was rejected because a limit was exceeded. For more information, // see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html) // in the AWS Key Management Service Developer Guide. // +// * ErrCodeTagException "TagException" +// The request was rejected because one or more tags are not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateKey func (c *KMS) CreateKey(input *CreateKeyInput) (*CreateKeyOutput, error) { req, out := c.CreateKeyRequest(input) err := req.Send() @@ -428,6 +436,7 @@ const opDecrypt = "Decrypt" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Decrypt func (c *KMS) DecryptRequest(input *DecryptInput) (req *request.Request, output *DecryptOutput) { op := &request.Operation{ Name: opDecrypt, @@ -439,9 +448,8 @@ func (c *KMS) DecryptRequest(input *DecryptInput) (req *request.Request, output input = &DecryptInput{} } - req = c.newRequest(op, input, output) output = &DecryptOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -450,20 +458,20 @@ func (c *KMS) DecryptRequest(input *DecryptInput) (req *request.Request, output // Decrypts ciphertext. Ciphertext is plaintext that has been previously encrypted // by using any of the following functions: // -// GenerateDataKey +// * GenerateDataKey // -// GenerateDataKeyWithoutPlaintext +// * GenerateDataKeyWithoutPlaintext // -// Encrypt +// * Encrypt // -// Note that if a caller has been granted access permissions to all keys -// (through, for example, IAM user policies that grant Decrypt permission on -// all resources), then ciphertext encrypted by using keys in other accounts -// where the key grants access to the caller can be decrypted. To remedy this, -// we recommend that you do not grant Decrypt access in an IAM user policy. -// Instead grant Decrypt access only in key policies. If you must grant Decrypt -// access in an IAM user policy, you should scope the resource to specific keys -// or to specific trusted accounts. +// Note that if a caller has been granted access permissions to all keys (through, +// for example, IAM user policies that grant Decrypt permission on all resources), +// then ciphertext encrypted by using keys in other accounts where the key grants +// access to the caller can be decrypted. To remedy this, we recommend that +// you do not grant Decrypt access in an IAM user policy. Instead grant Decrypt +// access only in key policies. If you must grant Decrypt access in an IAM user +// policy, you should scope the resource to specific keys or to specific trusted +// accounts. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -473,33 +481,33 @@ func (c *KMS) DecryptRequest(input *DecryptInput) (req *request.Request, output // API operation Decrypt for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DisabledException +// * ErrCodeDisabledException "DisabledException" // The request was rejected because the specified CMK is not enabled. // -// * InvalidCiphertextException +// * ErrCodeInvalidCiphertextException "InvalidCiphertextException" // The request was rejected because the specified ciphertext has been corrupted // or is otherwise invalid. // -// * KeyUnavailableException +// * ErrCodeKeyUnavailableException "KeyUnavailableException" // The request was rejected because the specified CMK was not available. The // request can be retried. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidGrantTokenException +// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" // The request was rejected because the specified grant token is not valid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -507,6 +515,7 @@ func (c *KMS) DecryptRequest(input *DecryptInput) (req *request.Request, output // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Decrypt func (c *KMS) Decrypt(input *DecryptInput) (*DecryptOutput, error) { req, out := c.DecryptRequest(input) err := req.Send() @@ -539,6 +548,7 @@ const opDeleteAlias = "DeleteAlias" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteAlias func (c *KMS) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, output *DeleteAliasOutput) { op := &request.Operation{ Name: opDeleteAlias, @@ -550,11 +560,10 @@ func (c *KMS) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, input = &DeleteAliasInput{} } + output = &DeleteAliasOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAliasOutput{} - req.Data = output return } @@ -570,19 +579,19 @@ func (c *KMS) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, // API operation DeleteAlias for usage and error information. // // Returned Error Codes: -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -590,6 +599,7 @@ func (c *KMS) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteAlias func (c *KMS) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error) { req, out := c.DeleteAliasRequest(input) err := req.Send() @@ -622,6 +632,7 @@ const opDeleteImportedKeyMaterial = "DeleteImportedKeyMaterial" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteImportedKeyMaterial func (c *KMS) DeleteImportedKeyMaterialRequest(input *DeleteImportedKeyMaterialInput) (req *request.Request, output *DeleteImportedKeyMaterialOutput) { op := &request.Operation{ Name: opDeleteImportedKeyMaterial, @@ -633,11 +644,10 @@ func (c *KMS) DeleteImportedKeyMaterialRequest(input *DeleteImportedKeyMaterialI input = &DeleteImportedKeyMaterialInput{} } + output = &DeleteImportedKeyMaterialOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteImportedKeyMaterialOutput{} - req.Data = output return } @@ -662,26 +672,26 @@ func (c *KMS) DeleteImportedKeyMaterialRequest(input *DeleteImportedKeyMaterialI // API operation DeleteImportedKeyMaterial for usage and error information. // // Returned Error Codes: -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -689,6 +699,7 @@ func (c *KMS) DeleteImportedKeyMaterialRequest(input *DeleteImportedKeyMaterialI // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteImportedKeyMaterial func (c *KMS) DeleteImportedKeyMaterial(input *DeleteImportedKeyMaterialInput) (*DeleteImportedKeyMaterialOutput, error) { req, out := c.DeleteImportedKeyMaterialRequest(input) err := req.Send() @@ -721,6 +732,7 @@ const opDescribeKey = "DescribeKey" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeKey func (c *KMS) DescribeKeyRequest(input *DescribeKeyInput) (req *request.Request, output *DescribeKeyOutput) { op := &request.Operation{ Name: opDescribeKey, @@ -732,9 +744,8 @@ func (c *KMS) DescribeKeyRequest(input *DescribeKeyInput) (req *request.Request, input = &DescribeKeyInput{} } - req = c.newRequest(op, input, output) output = &DescribeKeyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -750,21 +761,22 @@ func (c *KMS) DescribeKeyRequest(input *DescribeKeyInput) (req *request.Request, // API operation DescribeKey for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeKey func (c *KMS) DescribeKey(input *DescribeKeyInput) (*DescribeKeyOutput, error) { req, out := c.DescribeKeyRequest(input) err := req.Send() @@ -797,6 +809,7 @@ const opDisableKey = "DisableKey" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKey func (c *KMS) DisableKeyRequest(input *DisableKeyInput) (req *request.Request, output *DisableKeyOutput) { op := &request.Operation{ Name: opDisableKey, @@ -808,11 +821,10 @@ func (c *KMS) DisableKeyRequest(input *DisableKeyInput) (req *request.Request, o input = &DisableKeyInput{} } + output = &DisableKeyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DisableKeyOutput{} - req.Data = output return } @@ -832,22 +844,22 @@ func (c *KMS) DisableKeyRequest(input *DisableKeyInput) (req *request.Request, o // API operation DisableKey for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -855,6 +867,7 @@ func (c *KMS) DisableKeyRequest(input *DisableKeyInput) (req *request.Request, o // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKey func (c *KMS) DisableKey(input *DisableKeyInput) (*DisableKeyOutput, error) { req, out := c.DisableKeyRequest(input) err := req.Send() @@ -887,6 +900,7 @@ const opDisableKeyRotation = "DisableKeyRotation" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKeyRotation func (c *KMS) DisableKeyRotationRequest(input *DisableKeyRotationInput) (req *request.Request, output *DisableKeyRotationOutput) { op := &request.Operation{ Name: opDisableKeyRotation, @@ -898,11 +912,10 @@ func (c *KMS) DisableKeyRotationRequest(input *DisableKeyRotationInput) (req *re input = &DisableKeyRotationInput{} } + output = &DisableKeyRotationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DisableKeyRotationOutput{} - req.Data = output return } @@ -918,25 +931,25 @@ func (c *KMS) DisableKeyRotationRequest(input *DisableKeyRotationInput) (req *re // API operation DisableKeyRotation for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DisabledException +// * ErrCodeDisabledException "DisabledException" // The request was rejected because the specified CMK is not enabled. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -944,10 +957,11 @@ func (c *KMS) DisableKeyRotationRequest(input *DisableKeyRotationInput) (req *re // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKeyRotation func (c *KMS) DisableKeyRotation(input *DisableKeyRotationInput) (*DisableKeyRotationOutput, error) { req, out := c.DisableKeyRotationRequest(input) err := req.Send() @@ -980,6 +994,7 @@ const opEnableKey = "EnableKey" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKey func (c *KMS) EnableKeyRequest(input *EnableKeyInput) (req *request.Request, output *EnableKeyOutput) { op := &request.Operation{ Name: opEnableKey, @@ -991,11 +1006,10 @@ func (c *KMS) EnableKeyRequest(input *EnableKeyInput) (req *request.Request, out input = &EnableKeyInput{} } + output = &EnableKeyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &EnableKeyOutput{} - req.Data = output return } @@ -1011,27 +1025,27 @@ func (c *KMS) EnableKeyRequest(input *EnableKeyInput) (req *request.Request, out // API operation EnableKey for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The request was rejected because a limit was exceeded. For more information, // see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html) // in the AWS Key Management Service Developer Guide. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1039,6 +1053,7 @@ func (c *KMS) EnableKeyRequest(input *EnableKeyInput) (req *request.Request, out // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKey func (c *KMS) EnableKey(input *EnableKeyInput) (*EnableKeyOutput, error) { req, out := c.EnableKeyRequest(input) err := req.Send() @@ -1071,6 +1086,7 @@ const opEnableKeyRotation = "EnableKeyRotation" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKeyRotation func (c *KMS) EnableKeyRotationRequest(input *EnableKeyRotationInput) (req *request.Request, output *EnableKeyRotationOutput) { op := &request.Operation{ Name: opEnableKeyRotation, @@ -1082,11 +1098,10 @@ func (c *KMS) EnableKeyRotationRequest(input *EnableKeyRotationInput) (req *requ input = &EnableKeyRotationInput{} } + output = &EnableKeyRotationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &EnableKeyRotationOutput{} - req.Data = output return } @@ -1102,25 +1117,25 @@ func (c *KMS) EnableKeyRotationRequest(input *EnableKeyRotationInput) (req *requ // API operation EnableKeyRotation for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DisabledException +// * ErrCodeDisabledException "DisabledException" // The request was rejected because the specified CMK is not enabled. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1128,10 +1143,11 @@ func (c *KMS) EnableKeyRotationRequest(input *EnableKeyRotationInput) (req *requ // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKeyRotation func (c *KMS) EnableKeyRotation(input *EnableKeyRotationInput) (*EnableKeyRotationOutput, error) { req, out := c.EnableKeyRotationRequest(input) err := req.Send() @@ -1164,6 +1180,7 @@ const opEncrypt = "Encrypt" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Encrypt func (c *KMS) EncryptRequest(input *EncryptInput) (req *request.Request, output *EncryptOutput) { op := &request.Operation{ Name: opEncrypt, @@ -1175,9 +1192,8 @@ func (c *KMS) EncryptRequest(input *EncryptInput) (req *request.Request, output input = &EncryptInput{} } - req = c.newRequest(op, input, output) output = &EncryptOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1186,16 +1202,16 @@ func (c *KMS) EncryptRequest(input *EncryptInput) (req *request.Request, output // Encrypts plaintext into ciphertext by using a customer master key. The Encrypt // function has two primary use cases: // -// You can encrypt up to 4 KB of arbitrary data such as an RSA key, a database -// password, or other sensitive customer information. +// * You can encrypt up to 4 KB of arbitrary data such as an RSA key, a database +// password, or other sensitive customer information. // -// If you are moving encrypted data from one region to another, you can use -// this API to encrypt in the new region the plaintext data key that was used -// to encrypt the data in the original region. This provides you with an encrypted -// copy of the data key that can be decrypted in the new region and used there -// to decrypt the encrypted data. +// * If you are moving encrypted data from one region to another, you can +// use this API to encrypt in the new region the plaintext data key that +// was used to encrypt the data in the original region. This provides you +// with an encrypted copy of the data key that can be decrypted in the new +// region and used there to decrypt the encrypted data. // -// Unless you are moving encrypted data from one region to another, you don't +// Unless you are moving encrypted data from one region to another, you don't // use this function to encrypt a generated data key within a region. You retrieve // data keys already encrypted by calling the GenerateDataKey or GenerateDataKeyWithoutPlaintext // function. Data keys don't need to be encrypted again by calling Encrypt. @@ -1212,32 +1228,32 @@ func (c *KMS) EncryptRequest(input *EncryptInput) (req *request.Request, output // API operation Encrypt for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DisabledException +// * ErrCodeDisabledException "DisabledException" // The request was rejected because the specified CMK is not enabled. // -// * KeyUnavailableException +// * ErrCodeKeyUnavailableException "KeyUnavailableException" // The request was rejected because the specified CMK was not available. The // request can be retried. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidKeyUsageException +// * ErrCodeInvalidKeyUsageException "InvalidKeyUsageException" // The request was rejected because the specified KeySpec value is not valid. // -// * InvalidGrantTokenException +// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" // The request was rejected because the specified grant token is not valid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1245,6 +1261,7 @@ func (c *KMS) EncryptRequest(input *EncryptInput) (req *request.Request, output // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Encrypt func (c *KMS) Encrypt(input *EncryptInput) (*EncryptOutput, error) { req, out := c.EncryptRequest(input) err := req.Send() @@ -1277,6 +1294,7 @@ const opGenerateDataKey = "GenerateDataKey" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKey func (c *KMS) GenerateDataKeyRequest(input *GenerateDataKeyInput) (req *request.Request, output *GenerateDataKeyOutput) { op := &request.Operation{ Name: opGenerateDataKey, @@ -1288,9 +1306,8 @@ func (c *KMS) GenerateDataKeyRequest(input *GenerateDataKeyInput) (req *request. input = &GenerateDataKeyInput{} } - req = c.newRequest(op, input, output) output = &GenerateDataKeyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1310,27 +1327,27 @@ func (c *KMS) GenerateDataKeyRequest(input *GenerateDataKeyInput) (req *request. // field. The data key is encrypted under the CMK specified in the KeyId field // of the request. // -// We recommend that you use the following pattern to encrypt data locally -// in your application: +// We recommend that you use the following pattern to encrypt data locally in +// your application: // -// Use this operation (GenerateDataKey) to retrieve a data encryption key. +// Use this operation (GenerateDataKey) to retrieve a data encryption key. // -// Use the plaintext data encryption key (returned in the Plaintext field -// of the response) to encrypt data locally, then erase the plaintext data key +// Use the plaintext data encryption key (returned in the Plaintext field of +// the response) to encrypt data locally, then erase the plaintext data key // from memory. // -// Store the encrypted data key (returned in the CiphertextBlob field of -// the response) alongside the locally encrypted data. +// Store the encrypted data key (returned in the CiphertextBlob field of the +// response) alongside the locally encrypted data. // -// To decrypt data locally: +// To decrypt data locally: // -// Use the Decrypt operation to decrypt the encrypted data key into a plaintext +// Use the Decrypt operation to decrypt the encrypted data key into a plaintext // copy of the data key. // -// Use the plaintext data key to decrypt data locally, then erase the plaintext +// Use the plaintext data key to decrypt data locally, then erase the plaintext // data key from memory. // -// To return only an encrypted copy of the data key, use GenerateDataKeyWithoutPlaintext. +// To return only an encrypted copy of the data key, use GenerateDataKeyWithoutPlaintext. // To return an arbitrary unpredictable byte string, use GenerateRandom. // // If you use the optional EncryptionContext field, you must store at least @@ -1349,32 +1366,32 @@ func (c *KMS) GenerateDataKeyRequest(input *GenerateDataKeyInput) (req *request. // API operation GenerateDataKey for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DisabledException +// * ErrCodeDisabledException "DisabledException" // The request was rejected because the specified CMK is not enabled. // -// * KeyUnavailableException +// * ErrCodeKeyUnavailableException "KeyUnavailableException" // The request was rejected because the specified CMK was not available. The // request can be retried. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidKeyUsageException +// * ErrCodeInvalidKeyUsageException "InvalidKeyUsageException" // The request was rejected because the specified KeySpec value is not valid. // -// * InvalidGrantTokenException +// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" // The request was rejected because the specified grant token is not valid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1382,6 +1399,7 @@ func (c *KMS) GenerateDataKeyRequest(input *GenerateDataKeyInput) (req *request. // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKey func (c *KMS) GenerateDataKey(input *GenerateDataKeyInput) (*GenerateDataKeyOutput, error) { req, out := c.GenerateDataKeyRequest(input) err := req.Send() @@ -1414,6 +1432,7 @@ const opGenerateDataKeyWithoutPlaintext = "GenerateDataKeyWithoutPlaintext" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyWithoutPlaintext func (c *KMS) GenerateDataKeyWithoutPlaintextRequest(input *GenerateDataKeyWithoutPlaintextInput) (req *request.Request, output *GenerateDataKeyWithoutPlaintextOutput) { op := &request.Operation{ Name: opGenerateDataKeyWithoutPlaintext, @@ -1425,9 +1444,8 @@ func (c *KMS) GenerateDataKeyWithoutPlaintextRequest(input *GenerateDataKeyWitho input = &GenerateDataKeyWithoutPlaintextInput{} } - req = c.newRequest(op, input, output) output = &GenerateDataKeyWithoutPlaintextOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1457,32 +1475,32 @@ func (c *KMS) GenerateDataKeyWithoutPlaintextRequest(input *GenerateDataKeyWitho // API operation GenerateDataKeyWithoutPlaintext for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DisabledException +// * ErrCodeDisabledException "DisabledException" // The request was rejected because the specified CMK is not enabled. // -// * KeyUnavailableException +// * ErrCodeKeyUnavailableException "KeyUnavailableException" // The request was rejected because the specified CMK was not available. The // request can be retried. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidKeyUsageException +// * ErrCodeInvalidKeyUsageException "InvalidKeyUsageException" // The request was rejected because the specified KeySpec value is not valid. // -// * InvalidGrantTokenException +// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" // The request was rejected because the specified grant token is not valid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1490,6 +1508,7 @@ func (c *KMS) GenerateDataKeyWithoutPlaintextRequest(input *GenerateDataKeyWitho // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyWithoutPlaintext func (c *KMS) GenerateDataKeyWithoutPlaintext(input *GenerateDataKeyWithoutPlaintextInput) (*GenerateDataKeyWithoutPlaintextOutput, error) { req, out := c.GenerateDataKeyWithoutPlaintextRequest(input) err := req.Send() @@ -1522,6 +1541,7 @@ const opGenerateRandom = "GenerateRandom" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateRandom func (c *KMS) GenerateRandomRequest(input *GenerateRandomInput) (req *request.Request, output *GenerateRandomOutput) { op := &request.Operation{ Name: opGenerateRandom, @@ -1533,9 +1553,8 @@ func (c *KMS) GenerateRandomRequest(input *GenerateRandomInput) (req *request.Re input = &GenerateRandomInput{} } - req = c.newRequest(op, input, output) output = &GenerateRandomOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1551,14 +1570,15 @@ func (c *KMS) GenerateRandomRequest(input *GenerateRandomInput) (req *request.Re // API operation GenerateRandom for usage and error information. // // Returned Error Codes: -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateRandom func (c *KMS) GenerateRandom(input *GenerateRandomInput) (*GenerateRandomOutput, error) { req, out := c.GenerateRandomRequest(input) err := req.Send() @@ -1591,6 +1611,7 @@ const opGetKeyPolicy = "GetKeyPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyPolicy func (c *KMS) GetKeyPolicyRequest(input *GetKeyPolicyInput) (req *request.Request, output *GetKeyPolicyOutput) { op := &request.Operation{ Name: opGetKeyPolicy, @@ -1602,9 +1623,8 @@ func (c *KMS) GetKeyPolicyRequest(input *GetKeyPolicyInput) (req *request.Reques input = &GetKeyPolicyInput{} } - req = c.newRequest(op, input, output) output = &GetKeyPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1620,22 +1640,22 @@ func (c *KMS) GetKeyPolicyRequest(input *GetKeyPolicyInput) (req *request.Reques // API operation GetKeyPolicy for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1643,6 +1663,7 @@ func (c *KMS) GetKeyPolicyRequest(input *GetKeyPolicyInput) (req *request.Reques // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyPolicy func (c *KMS) GetKeyPolicy(input *GetKeyPolicyInput) (*GetKeyPolicyOutput, error) { req, out := c.GetKeyPolicyRequest(input) err := req.Send() @@ -1675,6 +1696,7 @@ const opGetKeyRotationStatus = "GetKeyRotationStatus" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyRotationStatus func (c *KMS) GetKeyRotationStatusRequest(input *GetKeyRotationStatusInput) (req *request.Request, output *GetKeyRotationStatusOutput) { op := &request.Operation{ Name: opGetKeyRotationStatus, @@ -1686,9 +1708,8 @@ func (c *KMS) GetKeyRotationStatusRequest(input *GetKeyRotationStatusInput) (req input = &GetKeyRotationStatusInput{} } - req = c.newRequest(op, input, output) output = &GetKeyRotationStatusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1705,22 +1726,22 @@ func (c *KMS) GetKeyRotationStatusRequest(input *GetKeyRotationStatusInput) (req // API operation GetKeyRotationStatus for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1728,10 +1749,11 @@ func (c *KMS) GetKeyRotationStatusRequest(input *GetKeyRotationStatusInput) (req // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyRotationStatus func (c *KMS) GetKeyRotationStatus(input *GetKeyRotationStatusInput) (*GetKeyRotationStatusOutput, error) { req, out := c.GetKeyRotationStatusRequest(input) err := req.Send() @@ -1764,6 +1786,7 @@ const opGetParametersForImport = "GetParametersForImport" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetParametersForImport func (c *KMS) GetParametersForImportRequest(input *GetParametersForImportInput) (req *request.Request, output *GetParametersForImportOutput) { op := &request.Operation{ Name: opGetParametersForImport, @@ -1775,9 +1798,8 @@ func (c *KMS) GetParametersForImportRequest(input *GetParametersForImportInput) input = &GetParametersForImportInput{} } - req = c.newRequest(op, input, output) output = &GetParametersForImportOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1788,13 +1810,13 @@ func (c *KMS) GetParametersForImportRequest(input *GetParametersForImportInput) // key material into AWS KMS, see Importing Key Material (http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html) // in the AWS Key Management Service Developer Guide. // -// You must specify the key ID of the customer master key (CMK) into which -// you will import key material. This CMK's Origin must be EXTERNAL. You must -// also specify the wrapping algorithm and type of wrapping key (public key) -// that you will use to encrypt the key material. +// You must specify the key ID of the customer master key (CMK) into which you +// will import key material. This CMK's Origin must be EXTERNAL. You must also +// specify the wrapping algorithm and type of wrapping key (public key) that +// you will use to encrypt the key material. // -// This operation returns a public key and an import token. Use the public -// key to encrypt the key material. Store the import token to send with a subsequent +// This operation returns a public key and an import token. Use the public key +// to encrypt the key material. Store the import token to send with a subsequent // ImportKeyMaterial request. The public key and import token from the same // response must be used together. These items are valid for 24 hours, after // which they cannot be used for a subsequent ImportKeyMaterial request. To @@ -1808,26 +1830,26 @@ func (c *KMS) GetParametersForImportRequest(input *GetParametersForImportInput) // API operation GetParametersForImport for usage and error information. // // Returned Error Codes: -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1835,6 +1857,7 @@ func (c *KMS) GetParametersForImportRequest(input *GetParametersForImportInput) // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetParametersForImport func (c *KMS) GetParametersForImport(input *GetParametersForImportInput) (*GetParametersForImportOutput, error) { req, out := c.GetParametersForImportRequest(input) err := req.Send() @@ -1867,6 +1890,7 @@ const opImportKeyMaterial = "ImportKeyMaterial" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ImportKeyMaterial func (c *KMS) ImportKeyMaterialRequest(input *ImportKeyMaterialInput) (req *request.Request, output *ImportKeyMaterialOutput) { op := &request.Operation{ Name: opImportKeyMaterial, @@ -1878,9 +1902,8 @@ func (c *KMS) ImportKeyMaterialRequest(input *ImportKeyMaterialInput) (req *requ input = &ImportKeyMaterialInput{} } - req = c.newRequest(op, input, output) output = &ImportKeyMaterialOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1891,11 +1914,11 @@ func (c *KMS) ImportKeyMaterialRequest(input *ImportKeyMaterialInput) (req *requ // key material into AWS KMS, see Importing Key Material (http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html) // in the AWS Key Management Service Developer Guide. // -// You must specify the key ID of the CMK to import the key material into. -// This CMK's Origin must be EXTERNAL. You must also send an import token and -// the encrypted key material. Send the import token that you received in the -// same GetParametersForImport response that contained the public key that you -// used to encrypt the key material. You must also specify whether the key material +// You must specify the key ID of the CMK to import the key material into. This +// CMK's Origin must be EXTERNAL. You must also send an import token and the +// encrypted key material. Send the import token that you received in the same +// GetParametersForImport response that contained the public key that you used +// to encrypt the key material. You must also specify whether the key material // expires and if so, when. When the key material expires, AWS KMS deletes the // key material and the CMK becomes unusable. To use the CMK again, you can // reimport the same key material. If you set an expiration date, you can change @@ -1905,9 +1928,8 @@ func (c *KMS) ImportKeyMaterialRequest(input *ImportKeyMaterialInput) (req *requ // When this operation is successful, the specified CMK's key state changes // to Enabled, and you can use the CMK. // -// After you successfully import key material into a CMK, you can reimport -// the same key material into that CMK, but you cannot import different key -// material. +// After you successfully import key material into a CMK, you can reimport the +// same key material into that CMK, but you cannot import different key material. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1917,26 +1939,26 @@ func (c *KMS) ImportKeyMaterialRequest(input *ImportKeyMaterialInput) (req *requ // API operation ImportKeyMaterial for usage and error information. // // Returned Error Codes: -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1944,25 +1966,26 @@ func (c *KMS) ImportKeyMaterialRequest(input *ImportKeyMaterialInput) (req *requ // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // -// * InvalidCiphertextException +// * ErrCodeInvalidCiphertextException "InvalidCiphertextException" // The request was rejected because the specified ciphertext has been corrupted // or is otherwise invalid. // -// * IncorrectKeyMaterialException +// * ErrCodeIncorrectKeyMaterialException "IncorrectKeyMaterialException" // The request was rejected because the provided key material is invalid or // is not the same key material that was previously imported into this customer // master key (CMK). // -// * ExpiredImportTokenException +// * ErrCodeExpiredImportTokenException "ExpiredImportTokenException" // The request was rejected because the provided import token is expired. Use // GetParametersForImport to retrieve a new import token and public key, use // the new public key to encrypt the key material, and then try the request // again. // -// * InvalidImportTokenException +// * ErrCodeInvalidImportTokenException "InvalidImportTokenException" // The request was rejected because the provided import token is invalid or // is associated with a different customer master key (CMK). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ImportKeyMaterial func (c *KMS) ImportKeyMaterial(input *ImportKeyMaterialInput) (*ImportKeyMaterialOutput, error) { req, out := c.ImportKeyMaterialRequest(input) err := req.Send() @@ -1995,6 +2018,7 @@ const opListAliases = "ListAliases" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliases func (c *KMS) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, output *ListAliasesOutput) { op := &request.Operation{ Name: opListAliases, @@ -2012,9 +2036,8 @@ func (c *KMS) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, input = &ListAliasesInput{} } - req = c.newRequest(op, input, output) output = &ListAliasesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2030,18 +2053,19 @@ func (c *KMS) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, // API operation ListAliases for usage and error information. // // Returned Error Codes: -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidMarkerException +// * ErrCodeInvalidMarkerException "InvalidMarkerException" // The request was rejected because the marker that specifies where pagination // should next begin is not valid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliases func (c *KMS) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error) { req, out := c.ListAliasesRequest(input) err := req.Send() @@ -2099,6 +2123,7 @@ const opListGrants = "ListGrants" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListGrants func (c *KMS) ListGrantsRequest(input *ListGrantsInput) (req *request.Request, output *ListGrantsResponse) { op := &request.Operation{ Name: opListGrants, @@ -2116,9 +2141,8 @@ func (c *KMS) ListGrantsRequest(input *ListGrantsInput) (req *request.Request, o input = &ListGrantsInput{} } - req = c.newRequest(op, input, output) output = &ListGrantsResponse{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2134,26 +2158,26 @@ func (c *KMS) ListGrantsRequest(input *ListGrantsInput) (req *request.Request, o // API operation ListGrants for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidMarkerException +// * ErrCodeInvalidMarkerException "InvalidMarkerException" // The request was rejected because the marker that specifies where pagination // should next begin is not valid. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -2161,6 +2185,7 @@ func (c *KMS) ListGrantsRequest(input *ListGrantsInput) (req *request.Request, o // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListGrants func (c *KMS) ListGrants(input *ListGrantsInput) (*ListGrantsResponse, error) { req, out := c.ListGrantsRequest(input) err := req.Send() @@ -2218,6 +2243,7 @@ const opListKeyPolicies = "ListKeyPolicies" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeyPolicies func (c *KMS) ListKeyPoliciesRequest(input *ListKeyPoliciesInput) (req *request.Request, output *ListKeyPoliciesOutput) { op := &request.Operation{ Name: opListKeyPolicies, @@ -2235,9 +2261,8 @@ func (c *KMS) ListKeyPoliciesRequest(input *ListKeyPoliciesInput) (req *request. input = &ListKeyPoliciesInput{} } - req = c.newRequest(op, input, output) output = &ListKeyPoliciesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2253,22 +2278,22 @@ func (c *KMS) ListKeyPoliciesRequest(input *ListKeyPoliciesInput) (req *request. // API operation ListKeyPolicies for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -2276,6 +2301,7 @@ func (c *KMS) ListKeyPoliciesRequest(input *ListKeyPoliciesInput) (req *request. // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeyPolicies func (c *KMS) ListKeyPolicies(input *ListKeyPoliciesInput) (*ListKeyPoliciesOutput, error) { req, out := c.ListKeyPoliciesRequest(input) err := req.Send() @@ -2333,6 +2359,7 @@ const opListKeys = "ListKeys" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeys func (c *KMS) ListKeysRequest(input *ListKeysInput) (req *request.Request, output *ListKeysOutput) { op := &request.Operation{ Name: opListKeys, @@ -2350,9 +2377,8 @@ func (c *KMS) ListKeysRequest(input *ListKeysInput) (req *request.Request, outpu input = &ListKeysInput{} } - req = c.newRequest(op, input, output) output = &ListKeysOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2368,18 +2394,19 @@ func (c *KMS) ListKeysRequest(input *ListKeysInput) (req *request.Request, outpu // API operation ListKeys for usage and error information. // // Returned Error Codes: -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidMarkerException +// * ErrCodeInvalidMarkerException "InvalidMarkerException" // The request was rejected because the marker that specifies where pagination // should next begin is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeys func (c *KMS) ListKeys(input *ListKeysInput) (*ListKeysOutput, error) { req, out := c.ListKeysRequest(input) err := req.Send() @@ -2411,6 +2438,83 @@ func (c *KMS) ListKeysPages(input *ListKeysInput, fn func(p *ListKeysOutput, las }) } +const opListResourceTags = "ListResourceTags" + +// ListResourceTagsRequest generates a "aws/request.Request" representing the +// client's request for the ListResourceTags operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListResourceTags for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListResourceTags method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListResourceTagsRequest method. +// req, resp := client.ListResourceTagsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListResourceTags +func (c *KMS) ListResourceTagsRequest(input *ListResourceTagsInput) (req *request.Request, output *ListResourceTagsOutput) { + op := &request.Operation{ + Name: opListResourceTags, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListResourceTagsInput{} + } + + output = &ListResourceTagsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListResourceTags API operation for AWS Key Management Service. +// +// Returns a list of all tags for the specified customer master key (CMK). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation ListResourceTags for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * ErrCodeNotFoundException "NotFoundException" +// The request was rejected because the specified entity or resource could not +// be found. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// The request was rejected because a specified ARN was not valid. +// +// * ErrCodeInvalidMarkerException "InvalidMarkerException" +// The request was rejected because the marker that specifies where pagination +// should next begin is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListResourceTags +func (c *KMS) ListResourceTags(input *ListResourceTagsInput) (*ListResourceTagsOutput, error) { + req, out := c.ListResourceTagsRequest(input) + err := req.Send() + return out, err +} + const opListRetirableGrants = "ListRetirableGrants" // ListRetirableGrantsRequest generates a "aws/request.Request" representing the @@ -2437,6 +2541,7 @@ const opListRetirableGrants = "ListRetirableGrants" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListRetirableGrants func (c *KMS) ListRetirableGrantsRequest(input *ListRetirableGrantsInput) (req *request.Request, output *ListGrantsResponse) { op := &request.Operation{ Name: opListRetirableGrants, @@ -2448,9 +2553,8 @@ func (c *KMS) ListRetirableGrantsRequest(input *ListRetirableGrantsInput) (req * input = &ListRetirableGrantsInput{} } - req = c.newRequest(op, input, output) output = &ListGrantsResponse{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2470,25 +2574,26 @@ func (c *KMS) ListRetirableGrantsRequest(input *ListRetirableGrantsInput) (req * // API operation ListRetirableGrants for usage and error information. // // Returned Error Codes: -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidMarkerException +// * ErrCodeInvalidMarkerException "InvalidMarkerException" // The request was rejected because the marker that specifies where pagination // should next begin is not valid. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListRetirableGrants func (c *KMS) ListRetirableGrants(input *ListRetirableGrantsInput) (*ListGrantsResponse, error) { req, out := c.ListRetirableGrantsRequest(input) err := req.Send() @@ -2521,6 +2626,7 @@ const opPutKeyPolicy = "PutKeyPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/PutKeyPolicy func (c *KMS) PutKeyPolicyRequest(input *PutKeyPolicyInput) (req *request.Request, output *PutKeyPolicyOutput) { op := &request.Operation{ Name: opPutKeyPolicy, @@ -2532,11 +2638,10 @@ func (c *KMS) PutKeyPolicyRequest(input *PutKeyPolicyInput) (req *request.Reques input = &PutKeyPolicyInput{} } + output = &PutKeyPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutKeyPolicyOutput{} - req.Data = output return } @@ -2555,35 +2660,35 @@ func (c *KMS) PutKeyPolicyRequest(input *PutKeyPolicyInput) (req *request.Reques // API operation PutKeyPolicy for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * MalformedPolicyDocumentException +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocumentException" // The request was rejected because the specified policy is not syntactically // or semantically correct. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * UnsupportedOperationException +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The request was rejected because a limit was exceeded. For more information, // see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html) // in the AWS Key Management Service Developer Guide. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -2591,6 +2696,7 @@ func (c *KMS) PutKeyPolicyRequest(input *PutKeyPolicyInput) (req *request.Reques // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/PutKeyPolicy func (c *KMS) PutKeyPolicy(input *PutKeyPolicyInput) (*PutKeyPolicyOutput, error) { req, out := c.PutKeyPolicyRequest(input) err := req.Send() @@ -2623,6 +2729,7 @@ const opReEncrypt = "ReEncrypt" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ReEncrypt func (c *KMS) ReEncryptRequest(input *ReEncryptInput) (req *request.Request, output *ReEncryptOutput) { op := &request.Operation{ Name: opReEncrypt, @@ -2634,26 +2741,25 @@ func (c *KMS) ReEncryptRequest(input *ReEncryptInput) (req *request.Request, out input = &ReEncryptInput{} } - req = c.newRequest(op, input, output) output = &ReEncryptOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // ReEncrypt API operation for AWS Key Management Service. // -// Encrypts data on the server side with a new customer master key without exposing -// the plaintext of the data on the client side. The data is first decrypted -// and then encrypted. This operation can also be used to change the encryption -// context of a ciphertext. +// Encrypts data on the server side with a new customer master key (CMK) without +// exposing the plaintext of the data on the client side. The data is first +// decrypted and then reencrypted. You can also use this operation to change +// the encryption context of a ciphertext. // -// Unlike other actions, ReEncrypt is authorized twice - once as ReEncryptFrom -// on the source key and once as ReEncryptTo on the destination key. We therefore -// recommend that you include the "action":"kms:ReEncrypt*" statement in your -// key policies to permit re-encryption from or to the key. The statement is -// included automatically when you authorize use of the key through the console -// but must be included manually when you set a policy by using the PutKeyPolicy -// function. +// Unlike other operations, ReEncrypt is authorized twice, once as ReEncryptFrom +// on the source CMK and once as ReEncryptTo on the destination CMK. We recommend +// that you include the "kms:ReEncrypt*" permission in your key policies (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html) +// to permit reencryption from or to the CMK. This permission is automatically +// included in the key policy when you create a CMK through the console, but +// you must include it manually when you create a CMK programmatically or when +// you set a key policy with the PutKeyPolicy operation. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2663,36 +2769,36 @@ func (c *KMS) ReEncryptRequest(input *ReEncryptInput) (req *request.Request, out // API operation ReEncrypt for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DisabledException +// * ErrCodeDisabledException "DisabledException" // The request was rejected because the specified CMK is not enabled. // -// * InvalidCiphertextException +// * ErrCodeInvalidCiphertextException "InvalidCiphertextException" // The request was rejected because the specified ciphertext has been corrupted // or is otherwise invalid. // -// * KeyUnavailableException +// * ErrCodeKeyUnavailableException "KeyUnavailableException" // The request was rejected because the specified CMK was not available. The // request can be retried. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidKeyUsageException +// * ErrCodeInvalidKeyUsageException "InvalidKeyUsageException" // The request was rejected because the specified KeySpec value is not valid. // -// * InvalidGrantTokenException +// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" // The request was rejected because the specified grant token is not valid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -2700,6 +2806,7 @@ func (c *KMS) ReEncryptRequest(input *ReEncryptInput) (req *request.Request, out // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ReEncrypt func (c *KMS) ReEncrypt(input *ReEncryptInput) (*ReEncryptOutput, error) { req, out := c.ReEncryptRequest(input) err := req.Send() @@ -2732,6 +2839,7 @@ const opRetireGrant = "RetireGrant" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RetireGrant func (c *KMS) RetireGrantRequest(input *RetireGrantInput) (req *request.Request, output *RetireGrantOutput) { op := &request.Operation{ Name: opRetireGrant, @@ -2743,30 +2851,31 @@ func (c *KMS) RetireGrantRequest(input *RetireGrantInput) (req *request.Request, input = &RetireGrantInput{} } + output = &RetireGrantOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RetireGrantOutput{} - req.Data = output return } // RetireGrant API operation for AWS Key Management Service. // -// Retires a grant. You can retire a grant when you're done using it to clean -// up. You should revoke a grant when you intend to actively deny operations +// Retires a grant. To clean up, you can retire a grant when you're done using +// it. You should revoke a grant when you intend to actively deny operations // that depend on it. The following are permitted to call this API: // -// The account that created the grant +// * The AWS account (root user) under which the grant was created // -// The RetiringPrincipal, if present +// * The RetiringPrincipal, if present in the grant // -// The GranteePrincipal, if RetireGrant is a grantee operation +// * The GranteePrincipal, if RetireGrant is an operation specified in the +// grant // -// The grant to retire must be identified by its grant token or by a combination -// of the key ARN and the grant ID. A grant token is a unique variable-length -// base64-encoded string. A grant ID is a 64 character unique identifier of -// a grant. Both are returned by the CreateGrant function. +// You must identify the grant to retire by its grant token or by a combination +// of the grant ID and the Amazon Resource Name (ARN) of the customer master +// key (CMK). A grant token is a unique variable-length base64-encoded string. +// A grant ID is a 64 character unique identifier of a grant. The CreateGrant +// operation returns both. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2776,25 +2885,25 @@ func (c *KMS) RetireGrantRequest(input *RetireGrantInput) (req *request.Request, // API operation RetireGrant for usage and error information. // // Returned Error Codes: -// * InvalidGrantTokenException +// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" // The request was rejected because the specified grant token is not valid. // -// * InvalidGrantIdException +// * ErrCodeInvalidGrantIdException "InvalidGrantIdException" // The request was rejected because the specified GrantId is not valid. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -2802,6 +2911,7 @@ func (c *KMS) RetireGrantRequest(input *RetireGrantInput) (req *request.Request, // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RetireGrant func (c *KMS) RetireGrant(input *RetireGrantInput) (*RetireGrantOutput, error) { req, out := c.RetireGrantRequest(input) err := req.Send() @@ -2834,6 +2944,7 @@ const opRevokeGrant = "RevokeGrant" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RevokeGrant func (c *KMS) RevokeGrantRequest(input *RevokeGrantInput) (req *request.Request, output *RevokeGrantOutput) { op := &request.Operation{ Name: opRevokeGrant, @@ -2845,11 +2956,10 @@ func (c *KMS) RevokeGrantRequest(input *RevokeGrantInput) (req *request.Request, input = &RevokeGrantInput{} } + output = &RevokeGrantOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RevokeGrantOutput{} - req.Data = output return } @@ -2866,25 +2976,25 @@ func (c *KMS) RevokeGrantRequest(input *RevokeGrantInput) (req *request.Request, // API operation RevokeGrant for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * InvalidGrantIdException +// * ErrCodeInvalidGrantIdException "InvalidGrantIdException" // The request was rejected because the specified GrantId is not valid. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -2892,6 +3002,7 @@ func (c *KMS) RevokeGrantRequest(input *RevokeGrantInput) (req *request.Request, // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RevokeGrant func (c *KMS) RevokeGrant(input *RevokeGrantInput) (*RevokeGrantOutput, error) { req, out := c.RevokeGrantRequest(input) err := req.Send() @@ -2924,6 +3035,7 @@ const opScheduleKeyDeletion = "ScheduleKeyDeletion" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ScheduleKeyDeletion func (c *KMS) ScheduleKeyDeletionRequest(input *ScheduleKeyDeletionInput) (req *request.Request, output *ScheduleKeyDeletionOutput) { op := &request.Operation{ Name: opScheduleKeyDeletion, @@ -2935,9 +3047,8 @@ func (c *KMS) ScheduleKeyDeletionRequest(input *ScheduleKeyDeletionInput) (req * input = &ScheduleKeyDeletionInput{} } - req = c.newRequest(op, input, output) output = &ScheduleKeyDeletionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2949,15 +3060,15 @@ func (c *KMS) ScheduleKeyDeletionRequest(input *ScheduleKeyDeletionInput) (req * // operation is successful, the state of the CMK changes to PendingDeletion. // Before the waiting period ends, you can use CancelKeyDeletion to cancel the // deletion of the CMK. After the waiting period ends, AWS KMS deletes the CMK -// and all AWS KMS data associated with it, including all aliases that point +// and all AWS KMS data associated with it, including all aliases that refer // to it. // -// Deleting a CMK is a destructive and potentially dangerous operation. When +// Deleting a CMK is a destructive and potentially dangerous operation. When // a CMK is deleted, all data that was encrypted under the CMK is rendered unrecoverable. // To restrict the use of a CMK without deleting it, use DisableKey. // -// For more information about scheduling a CMK for deletion, see Deleting -// Customer Master Keys (http://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html) +// For more information about scheduling a CMK for deletion, see Deleting Customer +// Master Keys (http://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html) // in the AWS Key Management Service Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2968,22 +3079,22 @@ func (c *KMS) ScheduleKeyDeletionRequest(input *ScheduleKeyDeletionInput) (req * // API operation ScheduleKeyDeletion for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -2991,12 +3102,205 @@ func (c *KMS) ScheduleKeyDeletionRequest(input *ScheduleKeyDeletionInput) (req * // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ScheduleKeyDeletion func (c *KMS) ScheduleKeyDeletion(input *ScheduleKeyDeletionInput) (*ScheduleKeyDeletionOutput, error) { req, out := c.ScheduleKeyDeletionRequest(input) err := req.Send() return out, err } +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See TagResource for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the TagResource method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/TagResource +func (c *KMS) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagResource API operation for AWS Key Management Service. +// +// Adds or overwrites one or more tags for the specified customer master key +// (CMK). +// +// Each tag consists of a tag key and a tag value. Tag keys and tag values are +// both required, but tag values can be empty (null) strings. +// +// You cannot use the same tag key more than once per CMK. For example, consider +// a CMK with one tag whose tag key is Purpose and tag value is Test. If you +// send a TagResource request for this CMK with a tag key of Purpose and a tag +// value of Prod, it does not create a second tag. Instead, the original tag +// is overwritten with the new tag value. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation TagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * ErrCodeNotFoundException "NotFoundException" +// The request was rejected because the specified entity or resource could not +// be found. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// The request was rejected because a specified ARN was not valid. +// +// * ErrCodeInvalidStateException "InvalidStateException" +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The request was rejected because a limit was exceeded. For more information, +// see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html) +// in the AWS Key Management Service Developer Guide. +// +// * ErrCodeTagException "TagException" +// The request was rejected because one or more tags are not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/TagResource +func (c *KMS) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + err := req.Send() + return out, err +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UntagResource for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UntagResource method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UntagResource +func (c *KMS) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagResource API operation for AWS Key Management Service. +// +// Removes the specified tag or tags from the specified customer master key +// (CMK). +// +// To remove a tag, you specify the tag key for each tag to remove. You do not +// specify the tag value. To overwrite the tag value for an existing tag, use +// TagResource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation UntagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * ErrCodeNotFoundException "NotFoundException" +// The request was rejected because the specified entity or resource could not +// be found. +// +// * ErrCodeInvalidArnException "InvalidArnException" +// The request was rejected because a specified ARN was not valid. +// +// * ErrCodeInvalidStateException "InvalidStateException" +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// +// * ErrCodeTagException "TagException" +// The request was rejected because one or more tags are not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UntagResource +func (c *KMS) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + err := req.Send() + return out, err +} + const opUpdateAlias = "UpdateAlias" // UpdateAliasRequest generates a "aws/request.Request" representing the @@ -3023,6 +3327,7 @@ const opUpdateAlias = "UpdateAlias" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateAlias func (c *KMS) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, output *UpdateAliasOutput) { op := &request.Operation{ Name: opUpdateAlias, @@ -3034,11 +3339,10 @@ func (c *KMS) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, input = &UpdateAliasInput{} } + output = &UpdateAliasOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateAliasOutput{} - req.Data = output return } @@ -3050,8 +3354,8 @@ func (c *KMS) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, // and unmapped from an existing key without changing the properties of the // key. // -// An alias name can contain only alphanumeric characters, forward slashes -// (/), underscores (_), and dashes (-). An alias must start with the word "alias" +// An alias name can contain only alphanumeric characters, forward slashes (/), +// underscores (_), and dashes (-). An alias must start with the word "alias" // followed by a forward slash (alias/). An alias that begins with "aws" after // the forward slash (alias/aws...) is reserved by Amazon Web Services (AWS). // @@ -3066,19 +3370,19 @@ func (c *KMS) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, // API operation UpdateAlias for usage and error information. // // Returned Error Codes: -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -3086,6 +3390,7 @@ func (c *KMS) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateAlias func (c *KMS) UpdateAlias(input *UpdateAliasInput) (*UpdateAliasOutput, error) { req, out := c.UpdateAliasRequest(input) err := req.Send() @@ -3118,6 +3423,7 @@ const opUpdateKeyDescription = "UpdateKeyDescription" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateKeyDescription func (c *KMS) UpdateKeyDescriptionRequest(input *UpdateKeyDescriptionInput) (req *request.Request, output *UpdateKeyDescriptionOutput) { op := &request.Operation{ Name: opUpdateKeyDescription, @@ -3129,17 +3435,16 @@ func (c *KMS) UpdateKeyDescriptionRequest(input *UpdateKeyDescriptionInput) (req input = &UpdateKeyDescriptionInput{} } + output = &UpdateKeyDescriptionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateKeyDescriptionOutput{} - req.Data = output return } // UpdateKeyDescription API operation for AWS Key Management Service. // -// Updates the description of a key. +// Updates the description of a customer master key (CMK). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3149,22 +3454,22 @@ func (c *KMS) UpdateKeyDescriptionRequest(input *UpdateKeyDescriptionInput) (req // API operation UpdateKeyDescription for usage and error information. // // Returned Error Codes: -// * NotFoundException +// * ErrCodeNotFoundException "NotFoundException" // The request was rejected because the specified entity or resource could not // be found. // -// * InvalidArnException +// * ErrCodeInvalidArnException "InvalidArnException" // The request was rejected because a specified ARN was not valid. // -// * DependencyTimeoutException +// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" // The system timed out while trying to fulfill the request. The request can // be retried. // -// * InternalException +// * ErrCodeInternalException "InternalException" // The request was rejected because an internal exception occurred. The request // can be retried. // -// * InvalidStateException +// * ErrCodeInvalidStateException "InvalidStateException" // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -3172,6 +3477,7 @@ func (c *KMS) UpdateKeyDescriptionRequest(input *UpdateKeyDescriptionInput) (req // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateKeyDescription func (c *KMS) UpdateKeyDescription(input *UpdateKeyDescriptionInput) (*UpdateKeyDescriptionOutput, error) { req, out := c.UpdateKeyDescriptionRequest(input) err := req.Send() @@ -3179,6 +3485,7 @@ func (c *KMS) UpdateKeyDescription(input *UpdateKeyDescriptionInput) (*UpdateKey } // Contains information about an alias. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/AliasListEntry type AliasListEntry struct { _ struct{} `type:"structure"` @@ -3188,7 +3495,7 @@ type AliasListEntry struct { // String that contains the alias. AliasName *string `min:"1" type:"string"` - // String that contains the key identifier pointed to by the alias. + // String that contains the key identifier referred to by the alias. TargetKeyId *string `min:"1" type:"string"` } @@ -3202,21 +3509,40 @@ func (s AliasListEntry) GoString() string { return s.String() } -type CancelKeyDeletionInput struct { - _ struct{} `type:"structure"` +// SetAliasArn sets the AliasArn field's value. +func (s *AliasListEntry) SetAliasArn(v string) *AliasListEntry { + s.AliasArn = &v + return s +} - // The unique identifier for the customer master key (CMK) for which to cancel - // deletion. +// SetAliasName sets the AliasName field's value. +func (s *AliasListEntry) SetAliasName(v string) *AliasListEntry { + s.AliasName = &v + return s +} + +// SetTargetKeyId sets the TargetKeyId field's value. +func (s *AliasListEntry) SetTargetKeyId(v string) *AliasListEntry { + s.TargetKeyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CancelKeyDeletionRequest +type CancelKeyDeletionInput struct { + _ struct{} `type:"structure"` + + // The unique identifier for the customer master key (CMK) for which to cancel + // deletion. // // To specify this value, use the unique key ID or the Amazon Resource Name // (ARN) of the CMK. Examples: // - // Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // * Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab // - // Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // * Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // - // To obtain the unique key ID and key ARN for a given CMK, use ListKeys - // or DescribeKey. + // To obtain the unique key ID and key ARN for a given CMK, use ListKeys or + // DescribeKey. // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -3248,6 +3574,13 @@ func (s *CancelKeyDeletionInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *CancelKeyDeletionInput) SetKeyId(v string) *CancelKeyDeletionInput { + s.KeyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CancelKeyDeletionResponse type CancelKeyDeletionOutput struct { _ struct{} `type:"structure"` @@ -3265,6 +3598,13 @@ func (s CancelKeyDeletionOutput) GoString() string { return s.String() } +// SetKeyId sets the KeyId field's value. +func (s *CancelKeyDeletionOutput) SetKeyId(v string) *CancelKeyDeletionOutput { + s.KeyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateAliasRequest type CreateAliasInput struct { _ struct{} `type:"structure"` @@ -3279,9 +3619,9 @@ type CreateAliasInput struct { // cannot be another alias but can be a globally unique identifier or a fully // specified ARN to a key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // // TargetKeyId is a required field TargetKeyId *string `min:"1" type:"string" required:"true"` @@ -3319,6 +3659,19 @@ func (s *CreateAliasInput) Validate() error { return nil } +// SetAliasName sets the AliasName field's value. +func (s *CreateAliasInput) SetAliasName(v string) *CreateAliasInput { + s.AliasName = &v + return s +} + +// SetTargetKeyId sets the TargetKeyId field's value. +func (s *CreateAliasInput) SetTargetKeyId(v string) *CreateAliasInput { + s.TargetKeyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateAliasOutput type CreateAliasOutput struct { _ struct{} `type:"structure"` } @@ -3333,6 +3686,7 @@ func (s CreateAliasOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateGrantRequest type CreateGrantInput struct { _ struct{} `type:"structure"` @@ -3369,9 +3723,9 @@ type CreateGrantInput struct { // To specify this value, use the globally unique key ID or the Amazon Resource // Name (ARN) of the key. Examples: // - // Globally unique key ID: 12345678-1234-1234-1234-123456789012 + // * Globally unique key ID: 12345678-1234-1234-1234-123456789012 // - // Key ARN: arn:aws:kms:us-west-2:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN: arn:aws:kms:us-west-2:123456789012:key/12345678-1234-1234-1234-123456789012 // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -3390,26 +3744,7 @@ type CreateGrantInput struct { // All grant tokens obtained in this way can be used interchangeably. Name *string `min:"1" type:"string"` - // A list of operations that the grant permits. The list can contain any combination - // of one or more of the following values: - // - // Decrypt - // - // Encrypt - // - // GenerateDataKey - // - // GenerateDataKeyWithoutPlaintext - // - // ReEncryptFrom (http://docs.aws.amazon.com/kms/latest/APIReference/API_ReEncrypt.html) - // - // ReEncryptTo (http://docs.aws.amazon.com/kms/latest/APIReference/API_ReEncrypt.html) - // - // CreateGrant - // - // RetireGrant - // - // DescribeKey + // A list of operations that the grant permits. Operations []*string `type:"list"` // The principal that is given permission to retire the grant by using RetireGrant @@ -3462,6 +3797,49 @@ func (s *CreateGrantInput) Validate() error { return nil } +// SetConstraints sets the Constraints field's value. +func (s *CreateGrantInput) SetConstraints(v *GrantConstraints) *CreateGrantInput { + s.Constraints = v + return s +} + +// SetGrantTokens sets the GrantTokens field's value. +func (s *CreateGrantInput) SetGrantTokens(v []*string) *CreateGrantInput { + s.GrantTokens = v + return s +} + +// SetGranteePrincipal sets the GranteePrincipal field's value. +func (s *CreateGrantInput) SetGranteePrincipal(v string) *CreateGrantInput { + s.GranteePrincipal = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *CreateGrantInput) SetKeyId(v string) *CreateGrantInput { + s.KeyId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateGrantInput) SetName(v string) *CreateGrantInput { + s.Name = &v + return s +} + +// SetOperations sets the Operations field's value. +func (s *CreateGrantInput) SetOperations(v []*string) *CreateGrantInput { + s.Operations = v + return s +} + +// SetRetiringPrincipal sets the RetiringPrincipal field's value. +func (s *CreateGrantInput) SetRetiringPrincipal(v string) *CreateGrantInput { + s.RetiringPrincipal = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateGrantResponse type CreateGrantOutput struct { _ struct{} `type:"structure"` @@ -3487,20 +3865,33 @@ func (s CreateGrantOutput) GoString() string { return s.String() } +// SetGrantId sets the GrantId field's value. +func (s *CreateGrantOutput) SetGrantId(v string) *CreateGrantOutput { + s.GrantId = &v + return s +} + +// SetGrantToken sets the GrantToken field's value. +func (s *CreateGrantOutput) SetGrantToken(v string) *CreateGrantOutput { + s.GrantToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateKeyRequest type CreateKeyInput struct { _ struct{} `type:"structure"` // A flag to indicate whether to bypass the key policy lockout safety check. // - // Setting this value to true increases the likelihood that the CMK becomes + // Setting this value to true increases the likelihood that the CMK becomes // unmanageable. Do not set this value to true indiscriminately. // // For more information, refer to the scenario in the Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) // section in the AWS Key Management Service Developer Guide. // - // Use this parameter only when you include a policy in the request and you - // intend to prevent the principal making the request from making a subsequent - // PutKeyPolicy request on the CMK. + // Use this parameter only when you include a policy in the request and you + // intend to prevent the principal that is making the request from making a + // subsequent PutKeyPolicy request on the CMK. // // The default value is false. BypassPolicyLockoutSafetyCheck *bool `type:"boolean"` @@ -3533,26 +3924,33 @@ type CreateKeyInput struct { // If you specify a policy and do not set BypassPolicyLockoutSafetyCheck to // true, the policy must meet the following criteria: // - // It must allow the principal making the CreateKey request to make a subsequent - // PutKeyPolicy request on the CMK. This reduces the likelihood that the CMK - // becomes unmanageable. For more information, refer to the scenario in the - // Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) - // section in the AWS Key Management Service Developer Guide. - // - // The principal(s) specified in the key policy must exist and be visible - // to AWS KMS. When you create a new AWS principal (for example, an IAM user - // or role), you might need to enforce a delay before specifying the new principal - // in a key policy because the new principal might not immediately be visible - // to AWS KMS. For more information, see Changes that I make are not always - // immediately visible (http://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency) - // in the IAM User Guide. - // - // If you do not specify a policy, AWS KMS attaches a default key policy - // to the CMK. For more information, see Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default) + // * It must allow the principal that is making the CreateKey request to + // make a subsequent PutKeyPolicy request on the CMK. This reduces the likelihood + // that the CMK becomes unmanageable. For more information, refer to the + // scenario in the Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) + // section in the AWS Key Management Service Developer Guide. + // + // * The principals that are specified in the key policy must exist and be + // visible to AWS KMS. When you create a new AWS principal (for example, + // an IAM user or role), you might need to enforce a delay before specifying + // the new principal in a key policy because the new principal might not + // immediately be visible to AWS KMS. For more information, see Changes that + // I make are not always immediately visible (http://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency) + // in the IAM User Guide. + // + // If you do not specify a policy, AWS KMS attaches a default key policy to + // the CMK. For more information, see Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default) // in the AWS Key Management Service Developer Guide. // // The policy size limit is 32 KiB (32768 bytes). Policy *string `min:"1" type:"string"` + + // One or more tags. Each tag consists of a tag key and a tag value. Tag keys + // and tag values are both required, but tag values can be empty (null) strings. + // + // Use this parameter to tag the CMK when it is created. Alternately, you can + // omit this parameter and instead tag the CMK after it is created using TagResource. + Tags []*Tag `type:"list"` } // String returns the string representation @@ -3571,6 +3969,16 @@ func (s *CreateKeyInput) Validate() error { if s.Policy != nil && len(*s.Policy) < 1 { invalidParams.Add(request.NewErrParamMinLen("Policy", 1)) } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -3578,6 +3986,43 @@ func (s *CreateKeyInput) Validate() error { return nil } +// SetBypassPolicyLockoutSafetyCheck sets the BypassPolicyLockoutSafetyCheck field's value. +func (s *CreateKeyInput) SetBypassPolicyLockoutSafetyCheck(v bool) *CreateKeyInput { + s.BypassPolicyLockoutSafetyCheck = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateKeyInput) SetDescription(v string) *CreateKeyInput { + s.Description = &v + return s +} + +// SetKeyUsage sets the KeyUsage field's value. +func (s *CreateKeyInput) SetKeyUsage(v string) *CreateKeyInput { + s.KeyUsage = &v + return s +} + +// SetOrigin sets the Origin field's value. +func (s *CreateKeyInput) SetOrigin(v string) *CreateKeyInput { + s.Origin = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *CreateKeyInput) SetPolicy(v string) *CreateKeyInput { + s.Policy = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateKeyInput) SetTags(v []*Tag) *CreateKeyInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateKeyResponse type CreateKeyOutput struct { _ struct{} `type:"structure"` @@ -3595,6 +4040,13 @@ func (s CreateKeyOutput) GoString() string { return s.String() } +// SetKeyMetadata sets the KeyMetadata field's value. +func (s *CreateKeyOutput) SetKeyMetadata(v *KeyMetadata) *CreateKeyOutput { + s.KeyMetadata = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DecryptRequest type DecryptInput struct { _ struct{} `type:"structure"` @@ -3643,6 +4095,25 @@ func (s *DecryptInput) Validate() error { return nil } +// SetCiphertextBlob sets the CiphertextBlob field's value. +func (s *DecryptInput) SetCiphertextBlob(v []byte) *DecryptInput { + s.CiphertextBlob = v + return s +} + +// SetEncryptionContext sets the EncryptionContext field's value. +func (s *DecryptInput) SetEncryptionContext(v map[string]*string) *DecryptInput { + s.EncryptionContext = v + return s +} + +// SetGrantTokens sets the GrantTokens field's value. +func (s *DecryptInput) SetGrantTokens(v []*string) *DecryptInput { + s.GrantTokens = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DecryptResponse type DecryptOutput struct { _ struct{} `type:"structure"` @@ -3667,6 +4138,19 @@ func (s DecryptOutput) GoString() string { return s.String() } +// SetKeyId sets the KeyId field's value. +func (s *DecryptOutput) SetKeyId(v string) *DecryptOutput { + s.KeyId = &v + return s +} + +// SetPlaintext sets the Plaintext field's value. +func (s *DecryptOutput) SetPlaintext(v []byte) *DecryptOutput { + s.Plaintext = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteAliasRequest type DeleteAliasInput struct { _ struct{} `type:"structure"` @@ -3703,6 +4187,13 @@ func (s *DeleteAliasInput) Validate() error { return nil } +// SetAliasName sets the AliasName field's value. +func (s *DeleteAliasInput) SetAliasName(v string) *DeleteAliasInput { + s.AliasName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteAliasOutput type DeleteAliasOutput struct { _ struct{} `type:"structure"` } @@ -3717,6 +4208,7 @@ func (s DeleteAliasOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteImportedKeyMaterialRequest type DeleteImportedKeyMaterialInput struct { _ struct{} `type:"structure"` @@ -3726,9 +4218,9 @@ type DeleteImportedKeyMaterialInput struct { // A valid identifier is the unique key ID or the Amazon Resource Name (ARN) // of the CMK. Examples: // - // Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // * Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab // - // Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // * Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -3760,6 +4252,13 @@ func (s *DeleteImportedKeyMaterialInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *DeleteImportedKeyMaterialInput) SetKeyId(v string) *DeleteImportedKeyMaterialInput { + s.KeyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteImportedKeyMaterialOutput type DeleteImportedKeyMaterialOutput struct { _ struct{} `type:"structure"` } @@ -3774,6 +4273,7 @@ func (s DeleteImportedKeyMaterialOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeKeyRequest type DescribeKeyInput struct { _ struct{} `type:"structure"` @@ -3787,13 +4287,13 @@ type DescribeKeyInput struct { // unique identifier, a fully specified ARN to either an alias or a key, or // an alias name prefixed by "alias/". // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName + // * Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // - // Alias Name Example - alias/MyAliasName + // * Alias Name Example - alias/MyAliasName // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -3825,6 +4325,19 @@ func (s *DescribeKeyInput) Validate() error { return nil } +// SetGrantTokens sets the GrantTokens field's value. +func (s *DescribeKeyInput) SetGrantTokens(v []*string) *DescribeKeyInput { + s.GrantTokens = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *DescribeKeyInput) SetKeyId(v string) *DescribeKeyInput { + s.KeyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeKeyResponse type DescribeKeyOutput struct { _ struct{} `type:"structure"` @@ -3842,6 +4355,13 @@ func (s DescribeKeyOutput) GoString() string { return s.String() } +// SetKeyMetadata sets the KeyMetadata field's value. +func (s *DescribeKeyOutput) SetKeyMetadata(v *KeyMetadata) *DescribeKeyOutput { + s.KeyMetadata = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKeyRequest type DisableKeyInput struct { _ struct{} `type:"structure"` @@ -3849,9 +4369,9 @@ type DisableKeyInput struct { // // Use the CMK's unique identifier or its Amazon Resource Name (ARN). For example: // - // Unique ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // * Unique ID: 1234abcd-12ab-34cd-56ef-1234567890ab // - // ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // * ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -3883,6 +4403,13 @@ func (s *DisableKeyInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *DisableKeyInput) SetKeyId(v string) *DisableKeyInput { + s.KeyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKeyOutput type DisableKeyOutput struct { _ struct{} `type:"structure"` } @@ -3897,15 +4424,16 @@ func (s DisableKeyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKeyRotationRequest type DisableKeyRotationInput struct { _ struct{} `type:"structure"` // A unique identifier for the customer master key. This value can be a globally // unique identifier or the fully specified ARN to a key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -3937,6 +4465,13 @@ func (s *DisableKeyRotationInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *DisableKeyRotationInput) SetKeyId(v string) *DisableKeyRotationInput { + s.KeyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKeyRotationOutput type DisableKeyRotationOutput struct { _ struct{} `type:"structure"` } @@ -3951,15 +4486,16 @@ func (s DisableKeyRotationOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKeyRequest type EnableKeyInput struct { _ struct{} `type:"structure"` // A unique identifier for the customer master key. This value can be a globally // unique identifier or the fully specified ARN to a key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -3991,6 +4527,13 @@ func (s *EnableKeyInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *EnableKeyInput) SetKeyId(v string) *EnableKeyInput { + s.KeyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKeyOutput type EnableKeyOutput struct { _ struct{} `type:"structure"` } @@ -4005,15 +4548,16 @@ func (s EnableKeyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKeyRotationRequest type EnableKeyRotationInput struct { _ struct{} `type:"structure"` // A unique identifier for the customer master key. This value can be a globally // unique identifier or the fully specified ARN to a key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -4045,6 +4589,13 @@ func (s *EnableKeyRotationInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *EnableKeyRotationInput) SetKeyId(v string) *EnableKeyRotationInput { + s.KeyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKeyRotationOutput type EnableKeyRotationOutput struct { _ struct{} `type:"structure"` } @@ -4059,6 +4610,7 @@ func (s EnableKeyRotationOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EncryptRequest type EncryptInput struct { _ struct{} `type:"structure"` @@ -4078,13 +4630,13 @@ type EncryptInput struct { // unique identifier, a fully specified ARN to either an alias or a key, or // an alias name prefixed by "alias/". // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName + // * Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // - // Alias Name Example - alias/MyAliasName + // * Alias Name Example - alias/MyAliasName // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -4129,6 +4681,31 @@ func (s *EncryptInput) Validate() error { return nil } +// SetEncryptionContext sets the EncryptionContext field's value. +func (s *EncryptInput) SetEncryptionContext(v map[string]*string) *EncryptInput { + s.EncryptionContext = v + return s +} + +// SetGrantTokens sets the GrantTokens field's value. +func (s *EncryptInput) SetGrantTokens(v []*string) *EncryptInput { + s.GrantTokens = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *EncryptInput) SetKeyId(v string) *EncryptInput { + s.KeyId = &v + return s +} + +// SetPlaintext sets the Plaintext field's value. +func (s *EncryptInput) SetPlaintext(v []byte) *EncryptInput { + s.Plaintext = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EncryptResponse type EncryptOutput struct { _ struct{} `type:"structure"` @@ -4152,6 +4729,19 @@ func (s EncryptOutput) GoString() string { return s.String() } +// SetCiphertextBlob sets the CiphertextBlob field's value. +func (s *EncryptOutput) SetCiphertextBlob(v []byte) *EncryptOutput { + s.CiphertextBlob = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *EncryptOutput) SetKeyId(v string) *EncryptOutput { + s.KeyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyRequest type GenerateDataKeyInput struct { _ struct{} `type:"structure"` @@ -4171,16 +4761,16 @@ type GenerateDataKeyInput struct { // key. // // A valid identifier is the unique key ID or the Amazon Resource Name (ARN) - // of the CMK, or the alias name or ARN of an alias that points to the CMK. + // of the CMK, or the alias name or ARN of an alias that refers to the CMK. // Examples: // - // Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // * Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab // - // CMK ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // * CMK ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // - // Alias name: alias/ExampleAlias + // * Alias name: alias/ExampleAlias // - // Alias ARN: arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias + // * Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -4225,6 +4815,37 @@ func (s *GenerateDataKeyInput) Validate() error { return nil } +// SetEncryptionContext sets the EncryptionContext field's value. +func (s *GenerateDataKeyInput) SetEncryptionContext(v map[string]*string) *GenerateDataKeyInput { + s.EncryptionContext = v + return s +} + +// SetGrantTokens sets the GrantTokens field's value. +func (s *GenerateDataKeyInput) SetGrantTokens(v []*string) *GenerateDataKeyInput { + s.GrantTokens = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *GenerateDataKeyInput) SetKeyId(v string) *GenerateDataKeyInput { + s.KeyId = &v + return s +} + +// SetKeySpec sets the KeySpec field's value. +func (s *GenerateDataKeyInput) SetKeySpec(v string) *GenerateDataKeyInput { + s.KeySpec = &v + return s +} + +// SetNumberOfBytes sets the NumberOfBytes field's value. +func (s *GenerateDataKeyInput) SetNumberOfBytes(v int64) *GenerateDataKeyInput { + s.NumberOfBytes = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyResponse type GenerateDataKeyOutput struct { _ struct{} `type:"structure"` @@ -4254,6 +4875,25 @@ func (s GenerateDataKeyOutput) GoString() string { return s.String() } +// SetCiphertextBlob sets the CiphertextBlob field's value. +func (s *GenerateDataKeyOutput) SetCiphertextBlob(v []byte) *GenerateDataKeyOutput { + s.CiphertextBlob = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *GenerateDataKeyOutput) SetKeyId(v string) *GenerateDataKeyOutput { + s.KeyId = &v + return s +} + +// SetPlaintext sets the Plaintext field's value. +func (s *GenerateDataKeyOutput) SetPlaintext(v []byte) *GenerateDataKeyOutput { + s.Plaintext = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyWithoutPlaintextRequest type GenerateDataKeyWithoutPlaintextInput struct { _ struct{} `type:"structure"` @@ -4273,16 +4913,16 @@ type GenerateDataKeyWithoutPlaintextInput struct { // key. // // A valid identifier is the unique key ID or the Amazon Resource Name (ARN) - // of the CMK, or the alias name or ARN of an alias that points to the CMK. + // of the CMK, or the alias name or ARN of an alias that refers to the CMK. // Examples: // - // Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // * Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab // - // CMK ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // * CMK ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // - // Alias name: alias/ExampleAlias + // * Alias name: alias/ExampleAlias // - // Alias ARN: arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias + // * Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -4327,6 +4967,37 @@ func (s *GenerateDataKeyWithoutPlaintextInput) Validate() error { return nil } +// SetEncryptionContext sets the EncryptionContext field's value. +func (s *GenerateDataKeyWithoutPlaintextInput) SetEncryptionContext(v map[string]*string) *GenerateDataKeyWithoutPlaintextInput { + s.EncryptionContext = v + return s +} + +// SetGrantTokens sets the GrantTokens field's value. +func (s *GenerateDataKeyWithoutPlaintextInput) SetGrantTokens(v []*string) *GenerateDataKeyWithoutPlaintextInput { + s.GrantTokens = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *GenerateDataKeyWithoutPlaintextInput) SetKeyId(v string) *GenerateDataKeyWithoutPlaintextInput { + s.KeyId = &v + return s +} + +// SetKeySpec sets the KeySpec field's value. +func (s *GenerateDataKeyWithoutPlaintextInput) SetKeySpec(v string) *GenerateDataKeyWithoutPlaintextInput { + s.KeySpec = &v + return s +} + +// SetNumberOfBytes sets the NumberOfBytes field's value. +func (s *GenerateDataKeyWithoutPlaintextInput) SetNumberOfBytes(v int64) *GenerateDataKeyWithoutPlaintextInput { + s.NumberOfBytes = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateDataKeyWithoutPlaintextResponse type GenerateDataKeyWithoutPlaintextOutput struct { _ struct{} `type:"structure"` @@ -4350,6 +5021,19 @@ func (s GenerateDataKeyWithoutPlaintextOutput) GoString() string { return s.String() } +// SetCiphertextBlob sets the CiphertextBlob field's value. +func (s *GenerateDataKeyWithoutPlaintextOutput) SetCiphertextBlob(v []byte) *GenerateDataKeyWithoutPlaintextOutput { + s.CiphertextBlob = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *GenerateDataKeyWithoutPlaintextOutput) SetKeyId(v string) *GenerateDataKeyWithoutPlaintextOutput { + s.KeyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateRandomRequest type GenerateRandomInput struct { _ struct{} `type:"structure"` @@ -4380,6 +5064,13 @@ func (s *GenerateRandomInput) Validate() error { return nil } +// SetNumberOfBytes sets the NumberOfBytes field's value. +func (s *GenerateRandomInput) SetNumberOfBytes(v int64) *GenerateRandomInput { + s.NumberOfBytes = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateRandomResponse type GenerateRandomOutput struct { _ struct{} `type:"structure"` @@ -4399,15 +5090,22 @@ func (s GenerateRandomOutput) GoString() string { return s.String() } +// SetPlaintext sets the Plaintext field's value. +func (s *GenerateRandomOutput) SetPlaintext(v []byte) *GenerateRandomOutput { + s.Plaintext = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyPolicyRequest type GetKeyPolicyInput struct { _ struct{} `type:"structure"` // A unique identifier for the customer master key. This value can be a globally // unique identifier or the fully specified ARN to a key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -4451,6 +5149,19 @@ func (s *GetKeyPolicyInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *GetKeyPolicyInput) SetKeyId(v string) *GetKeyPolicyInput { + s.KeyId = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *GetKeyPolicyInput) SetPolicyName(v string) *GetKeyPolicyInput { + s.PolicyName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyPolicyResponse type GetKeyPolicyOutput struct { _ struct{} `type:"structure"` @@ -4468,15 +5179,22 @@ func (s GetKeyPolicyOutput) GoString() string { return s.String() } +// SetPolicy sets the Policy field's value. +func (s *GetKeyPolicyOutput) SetPolicy(v string) *GetKeyPolicyOutput { + s.Policy = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyRotationStatusRequest type GetKeyRotationStatusInput struct { _ struct{} `type:"structure"` // A unique identifier for the customer master key. This value can be a globally // unique identifier or the fully specified ARN to a key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -4508,6 +5226,13 @@ func (s *GetKeyRotationStatusInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *GetKeyRotationStatusInput) SetKeyId(v string) *GetKeyRotationStatusInput { + s.KeyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetKeyRotationStatusResponse type GetKeyRotationStatusOutput struct { _ struct{} `type:"structure"` @@ -4525,6 +5250,13 @@ func (s GetKeyRotationStatusOutput) GoString() string { return s.String() } +// SetKeyRotationEnabled sets the KeyRotationEnabled field's value. +func (s *GetKeyRotationStatusOutput) SetKeyRotationEnabled(v bool) *GetKeyRotationStatusOutput { + s.KeyRotationEnabled = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetParametersForImportRequest type GetParametersForImportInput struct { _ struct{} `type:"structure"` @@ -4534,9 +5266,9 @@ type GetParametersForImportInput struct { // A valid identifier is the unique key ID or the Amazon Resource Name (ARN) // of the CMK. Examples: // - // Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // * Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab // - // Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // * Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -4588,6 +5320,25 @@ func (s *GetParametersForImportInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *GetParametersForImportInput) SetKeyId(v string) *GetParametersForImportInput { + s.KeyId = &v + return s +} + +// SetWrappingAlgorithm sets the WrappingAlgorithm field's value. +func (s *GetParametersForImportInput) SetWrappingAlgorithm(v string) *GetParametersForImportInput { + s.WrappingAlgorithm = &v + return s +} + +// SetWrappingKeySpec sets the WrappingKeySpec field's value. +func (s *GetParametersForImportInput) SetWrappingKeySpec(v string) *GetParametersForImportInput { + s.WrappingKeySpec = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GetParametersForImportResponse type GetParametersForImportOutput struct { _ struct{} `type:"structure"` @@ -4622,6 +5373,30 @@ func (s GetParametersForImportOutput) GoString() string { return s.String() } +// SetImportToken sets the ImportToken field's value. +func (s *GetParametersForImportOutput) SetImportToken(v []byte) *GetParametersForImportOutput { + s.ImportToken = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *GetParametersForImportOutput) SetKeyId(v string) *GetParametersForImportOutput { + s.KeyId = &v + return s +} + +// SetParametersValidTo sets the ParametersValidTo field's value. +func (s *GetParametersForImportOutput) SetParametersValidTo(v time.Time) *GetParametersForImportOutput { + s.ParametersValidTo = &v + return s +} + +// SetPublicKey sets the PublicKey field's value. +func (s *GetParametersForImportOutput) SetPublicKey(v []byte) *GetParametersForImportOutput { + s.PublicKey = v + return s +} + // A structure for specifying the conditions under which the operations permitted // by the grant are allowed. // @@ -4629,6 +5404,7 @@ func (s GetParametersForImportOutput) GoString() string { // only when a specified encryption context is present. For more information // about encryption context, see Encryption Context (http://docs.aws.amazon.com/kms/latest/developerguide/encryption-context.html) // in the AWS Key Management Service Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GrantConstraints type GrantConstraints struct { _ struct{} `type:"structure"` @@ -4657,7 +5433,20 @@ func (s GrantConstraints) GoString() string { return s.String() } +// SetEncryptionContextEquals sets the EncryptionContextEquals field's value. +func (s *GrantConstraints) SetEncryptionContextEquals(v map[string]*string) *GrantConstraints { + s.EncryptionContextEquals = v + return s +} + +// SetEncryptionContextSubset sets the EncryptionContextSubset field's value. +func (s *GrantConstraints) SetEncryptionContextSubset(v map[string]*string) *GrantConstraints { + s.EncryptionContextSubset = v + return s +} + // Contains information about an entry in a list of grants. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GrantListEntry type GrantListEntry struct { _ struct{} `type:"structure"` @@ -4701,6 +5490,61 @@ func (s GrantListEntry) GoString() string { return s.String() } +// SetConstraints sets the Constraints field's value. +func (s *GrantListEntry) SetConstraints(v *GrantConstraints) *GrantListEntry { + s.Constraints = v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *GrantListEntry) SetCreationDate(v time.Time) *GrantListEntry { + s.CreationDate = &v + return s +} + +// SetGrantId sets the GrantId field's value. +func (s *GrantListEntry) SetGrantId(v string) *GrantListEntry { + s.GrantId = &v + return s +} + +// SetGranteePrincipal sets the GranteePrincipal field's value. +func (s *GrantListEntry) SetGranteePrincipal(v string) *GrantListEntry { + s.GranteePrincipal = &v + return s +} + +// SetIssuingAccount sets the IssuingAccount field's value. +func (s *GrantListEntry) SetIssuingAccount(v string) *GrantListEntry { + s.IssuingAccount = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *GrantListEntry) SetKeyId(v string) *GrantListEntry { + s.KeyId = &v + return s +} + +// SetName sets the Name field's value. +func (s *GrantListEntry) SetName(v string) *GrantListEntry { + s.Name = &v + return s +} + +// SetOperations sets the Operations field's value. +func (s *GrantListEntry) SetOperations(v []*string) *GrantListEntry { + s.Operations = v + return s +} + +// SetRetiringPrincipal sets the RetiringPrincipal field's value. +func (s *GrantListEntry) SetRetiringPrincipal(v string) *GrantListEntry { + s.RetiringPrincipal = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ImportKeyMaterialRequest type ImportKeyMaterialInput struct { _ struct{} `type:"structure"` @@ -4733,9 +5577,9 @@ type ImportKeyMaterialInput struct { // A valid identifier is the unique key ID or the Amazon Resource Name (ARN) // of the CMK. Examples: // - // Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // * Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab // - // Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // * Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -4785,6 +5629,37 @@ func (s *ImportKeyMaterialInput) Validate() error { return nil } +// SetEncryptedKeyMaterial sets the EncryptedKeyMaterial field's value. +func (s *ImportKeyMaterialInput) SetEncryptedKeyMaterial(v []byte) *ImportKeyMaterialInput { + s.EncryptedKeyMaterial = v + return s +} + +// SetExpirationModel sets the ExpirationModel field's value. +func (s *ImportKeyMaterialInput) SetExpirationModel(v string) *ImportKeyMaterialInput { + s.ExpirationModel = &v + return s +} + +// SetImportToken sets the ImportToken field's value. +func (s *ImportKeyMaterialInput) SetImportToken(v []byte) *ImportKeyMaterialInput { + s.ImportToken = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *ImportKeyMaterialInput) SetKeyId(v string) *ImportKeyMaterialInput { + s.KeyId = &v + return s +} + +// SetValidTo sets the ValidTo field's value. +func (s *ImportKeyMaterialInput) SetValidTo(v time.Time) *ImportKeyMaterialInput { + s.ValidTo = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ImportKeyMaterialResponse type ImportKeyMaterialOutput struct { _ struct{} `type:"structure"` } @@ -4800,6 +5675,7 @@ func (s ImportKeyMaterialOutput) GoString() string { } // Contains information about each entry in the key list. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/KeyListEntry type KeyListEntry struct { _ struct{} `type:"structure"` @@ -4820,10 +5696,23 @@ func (s KeyListEntry) GoString() string { return s.String() } +// SetKeyArn sets the KeyArn field's value. +func (s *KeyListEntry) SetKeyArn(v string) *KeyListEntry { + s.KeyArn = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *KeyListEntry) SetKeyId(v string) *KeyListEntry { + s.KeyId = &v + return s +} + // Contains metadata about a customer master key (CMK). // // This data type is used as a response element for the CreateKey and DescribeKey // operations. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/KeyMetadata type KeyMetadata struct { _ struct{} `type:"structure"` @@ -4893,20 +5782,93 @@ func (s KeyMetadata) GoString() string { return s.String() } +// SetAWSAccountId sets the AWSAccountId field's value. +func (s *KeyMetadata) SetAWSAccountId(v string) *KeyMetadata { + s.AWSAccountId = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *KeyMetadata) SetArn(v string) *KeyMetadata { + s.Arn = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *KeyMetadata) SetCreationDate(v time.Time) *KeyMetadata { + s.CreationDate = &v + return s +} + +// SetDeletionDate sets the DeletionDate field's value. +func (s *KeyMetadata) SetDeletionDate(v time.Time) *KeyMetadata { + s.DeletionDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *KeyMetadata) SetDescription(v string) *KeyMetadata { + s.Description = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *KeyMetadata) SetEnabled(v bool) *KeyMetadata { + s.Enabled = &v + return s +} + +// SetExpirationModel sets the ExpirationModel field's value. +func (s *KeyMetadata) SetExpirationModel(v string) *KeyMetadata { + s.ExpirationModel = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *KeyMetadata) SetKeyId(v string) *KeyMetadata { + s.KeyId = &v + return s +} + +// SetKeyState sets the KeyState field's value. +func (s *KeyMetadata) SetKeyState(v string) *KeyMetadata { + s.KeyState = &v + return s +} + +// SetKeyUsage sets the KeyUsage field's value. +func (s *KeyMetadata) SetKeyUsage(v string) *KeyMetadata { + s.KeyUsage = &v + return s +} + +// SetOrigin sets the Origin field's value. +func (s *KeyMetadata) SetOrigin(v string) *KeyMetadata { + s.Origin = &v + return s +} + +// SetValidTo sets the ValidTo field's value. +func (s *KeyMetadata) SetValidTo(v time.Time) *KeyMetadata { + s.ValidTo = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliasesRequest type ListAliasesInput struct { _ struct{} `type:"structure"` - // When paginating results, specify the maximum number of items to return in - // the response. If additional items exist beyond the number you specify, the - // Truncated element in the response is set to true. + // Use this parameter to specify the maximum number of items to return. When + // this value is present, AWS KMS does not return more than the specified number + // of items, but it might return fewer. // // This value is optional. If you include a value, it must be between 1 and // 100, inclusive. If you do not include a value, it defaults to 50. Limit *int64 `min:"1" type:"integer"` - // Use this parameter only when paginating results and only in a subsequent - // request after you receive a response with truncated results. Set it to the - // value of NextMarker from the response you just received. + // Use this parameter in a subsequent request after you receive a response with + // truncated results. Set it to the value of NextMarker from the truncated response + // you just received. Marker *string `min:"1" type:"string"` } @@ -4936,19 +5898,33 @@ func (s *ListAliasesInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListAliasesInput) SetLimit(v int64) *ListAliasesInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListAliasesInput) SetMarker(v string) *ListAliasesInput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListAliasesResponse type ListAliasesOutput struct { _ struct{} `type:"structure"` // A list of key aliases in the user's account. Aliases []*AliasListEntry `type:"list"` - // When Truncated is true, this value is present and contains the value to use - // for the Marker parameter in a subsequent pagination request. + // When Truncated is true, this element is present and contains the value to + // use for the Marker parameter in a subsequent request. NextMarker *string `min:"1" type:"string"` - // A flag that indicates whether there are more items in the list. If your results - // were truncated, you can use the Marker parameter to make a subsequent pagination - // request to retrieve more items in the list. + // A flag that indicates whether there are more items in the list. When this + // value is true, the list in this response is truncated. To retrieve more items, + // pass the value of the NextMarker element in this response to the Marker parameter + // in a subsequent request. Truncated *bool `type:"boolean"` } @@ -4962,30 +5938,49 @@ func (s ListAliasesOutput) GoString() string { return s.String() } +// SetAliases sets the Aliases field's value. +func (s *ListAliasesOutput) SetAliases(v []*AliasListEntry) *ListAliasesOutput { + s.Aliases = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListAliasesOutput) SetNextMarker(v string) *ListAliasesOutput { + s.NextMarker = &v + return s +} + +// SetTruncated sets the Truncated field's value. +func (s *ListAliasesOutput) SetTruncated(v bool) *ListAliasesOutput { + s.Truncated = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListGrantsRequest type ListGrantsInput struct { _ struct{} `type:"structure"` // A unique identifier for the customer master key. This value can be a globally // unique identifier or the fully specified ARN to a key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` - // When paginating results, specify the maximum number of items to return in - // the response. If additional items exist beyond the number you specify, the - // Truncated element in the response is set to true. + // Use this parameter to specify the maximum number of items to return. When + // this value is present, AWS KMS does not return more than the specified number + // of items, but it might return fewer. // // This value is optional. If you include a value, it must be between 1 and // 100, inclusive. If you do not include a value, it defaults to 50. Limit *int64 `min:"1" type:"integer"` - // Use this parameter only when paginating results and only in a subsequent - // request after you receive a response with truncated results. Set it to the - // value of NextMarker from the response you just received. + // Use this parameter in a subsequent request after you receive a response with + // truncated results. Set it to the value of NextMarker from the truncated response + // you just received. Marker *string `min:"1" type:"string"` } @@ -5021,19 +6016,39 @@ func (s *ListGrantsInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *ListGrantsInput) SetKeyId(v string) *ListGrantsInput { + s.KeyId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListGrantsInput) SetLimit(v int64) *ListGrantsInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListGrantsInput) SetMarker(v string) *ListGrantsInput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListGrantsResponse type ListGrantsResponse struct { _ struct{} `type:"structure"` // A list of grants. Grants []*GrantListEntry `type:"list"` - // When Truncated is true, this value is present and contains the value to use - // for the Marker parameter in a subsequent pagination request. + // When Truncated is true, this element is present and contains the value to + // use for the Marker parameter in a subsequent request. NextMarker *string `min:"1" type:"string"` - // A flag that indicates whether there are more items in the list. If your results - // were truncated, you can use the Marker parameter to make a subsequent pagination - // request to retrieve more items in the list. + // A flag that indicates whether there are more items in the list. When this + // value is true, the list in this response is truncated. To retrieve more items, + // pass the value of the NextMarker element in this response to the Marker parameter + // in a subsequent request. Truncated *bool `type:"boolean"` } @@ -5047,27 +6062,41 @@ func (s ListGrantsResponse) GoString() string { return s.String() } +// SetGrants sets the Grants field's value. +func (s *ListGrantsResponse) SetGrants(v []*GrantListEntry) *ListGrantsResponse { + s.Grants = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListGrantsResponse) SetNextMarker(v string) *ListGrantsResponse { + s.NextMarker = &v + return s +} + +// SetTruncated sets the Truncated field's value. +func (s *ListGrantsResponse) SetTruncated(v bool) *ListGrantsResponse { + s.Truncated = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeyPoliciesRequest type ListKeyPoliciesInput struct { _ struct{} `type:"structure"` - // A unique identifier for the customer master key. This value can be a globally - // unique identifier, a fully specified ARN to either an alias or a key, or - // an alias name prefixed by "alias/". - // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // A unique identifier for the customer master key (CMK). You can use the unique + // key ID or the Amazon Resource Name (ARN) of the CMK. Examples: // - // Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName + // * Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 - // - // Alias Name Example - alias/MyAliasName + // * Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` - // When paginating results, specify the maximum number of items to return in - // the response. If additional items exist beyond the number you specify, the - // Truncated element in the response is set to true. + // Use this parameter to specify the maximum number of items to return. When + // this value is present, AWS KMS does not return more than the specified number + // of items, but it might return fewer. // // This value is optional. If you include a value, it must be between 1 and // 1000, inclusive. If you do not include a value, it defaults to 100. @@ -5075,9 +6104,9 @@ type ListKeyPoliciesInput struct { // Currently only 1 policy can be attached to a key. Limit *int64 `min:"1" type:"integer"` - // Use this parameter only when paginating results and only in a subsequent - // request after you receive a response with truncated results. Set it to the - // value of NextMarker from the response you just received. + // Use this parameter in a subsequent request after you receive a response with + // truncated results. Set it to the value of NextMarker from the truncated response + // you just received. Marker *string `min:"1" type:"string"` } @@ -5113,20 +6142,40 @@ func (s *ListKeyPoliciesInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *ListKeyPoliciesInput) SetKeyId(v string) *ListKeyPoliciesInput { + s.KeyId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListKeyPoliciesInput) SetLimit(v int64) *ListKeyPoliciesInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListKeyPoliciesInput) SetMarker(v string) *ListKeyPoliciesInput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeyPoliciesResponse type ListKeyPoliciesOutput struct { _ struct{} `type:"structure"` - // When Truncated is true, this value is present and contains the value to use - // for the Marker parameter in a subsequent pagination request. + // When Truncated is true, this element is present and contains the value to + // use for the Marker parameter in a subsequent request. NextMarker *string `min:"1" type:"string"` // A list of policy names. Currently, there is only one policy and it is named // "Default". PolicyNames []*string `type:"list"` - // A flag that indicates whether there are more items in the list. If your results - // were truncated, you can use the Marker parameter to make a subsequent pagination - // request to retrieve more items in the list. + // A flag that indicates whether there are more items in the list. When this + // value is true, the list in this response is truncated. To retrieve more items, + // pass the value of the NextMarker element in this response to the Marker parameter + // in a subsequent request. Truncated *bool `type:"boolean"` } @@ -5140,20 +6189,39 @@ func (s ListKeyPoliciesOutput) GoString() string { return s.String() } -type ListKeysInput struct { +// SetNextMarker sets the NextMarker field's value. +func (s *ListKeyPoliciesOutput) SetNextMarker(v string) *ListKeyPoliciesOutput { + s.NextMarker = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *ListKeyPoliciesOutput) SetPolicyNames(v []*string) *ListKeyPoliciesOutput { + s.PolicyNames = v + return s +} + +// SetTruncated sets the Truncated field's value. +func (s *ListKeyPoliciesOutput) SetTruncated(v bool) *ListKeyPoliciesOutput { + s.Truncated = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeysRequest +type ListKeysInput struct { _ struct{} `type:"structure"` - // When paginating results, specify the maximum number of items to return in - // the response. If additional items exist beyond the number you specify, the - // Truncated element in the response is set to true. + // Use this parameter to specify the maximum number of items to return. When + // this value is present, AWS KMS does not return more than the specified number + // of items, but it might return fewer. // // This value is optional. If you include a value, it must be between 1 and // 1000, inclusive. If you do not include a value, it defaults to 100. Limit *int64 `min:"1" type:"integer"` - // Use this parameter only when paginating results and only in a subsequent - // request after you receive a response with truncated results. Set it to the - // value of NextMarker from the response you just received. + // Use this parameter in a subsequent request after you receive a response with + // truncated results. Set it to the value of NextMarker from the truncated response + // you just received. Marker *string `min:"1" type:"string"` } @@ -5183,19 +6251,33 @@ func (s *ListKeysInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListKeysInput) SetLimit(v int64) *ListKeysInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListKeysInput) SetMarker(v string) *ListKeysInput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListKeysResponse type ListKeysOutput struct { _ struct{} `type:"structure"` // A list of keys. Keys []*KeyListEntry `type:"list"` - // When Truncated is true, this value is present and contains the value to use - // for the Marker parameter in a subsequent pagination request. + // When Truncated is true, this element is present and contains the value to + // use for the Marker parameter in a subsequent request. NextMarker *string `min:"1" type:"string"` - // A flag that indicates whether there are more items in the list. If your results - // were truncated, you can use the Marker parameter to make a subsequent pagination - // request to retrieve more items in the list. + // A flag that indicates whether there are more items in the list. When this + // value is true, the list in this response is truncated. To retrieve more items, + // pass the value of the NextMarker element in this response to the Marker parameter + // in a subsequent request. Truncated *bool `type:"boolean"` } @@ -5209,20 +6291,168 @@ func (s ListKeysOutput) GoString() string { return s.String() } +// SetKeys sets the Keys field's value. +func (s *ListKeysOutput) SetKeys(v []*KeyListEntry) *ListKeysOutput { + s.Keys = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListKeysOutput) SetNextMarker(v string) *ListKeysOutput { + s.NextMarker = &v + return s +} + +// SetTruncated sets the Truncated field's value. +func (s *ListKeysOutput) SetTruncated(v bool) *ListKeysOutput { + s.Truncated = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListResourceTagsRequest +type ListResourceTagsInput struct { + _ struct{} `type:"structure"` + + // A unique identifier for the CMK whose tags you are listing. You can use the + // unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples: + // + // * Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // + // * Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // + // KeyId is a required field + KeyId *string `min:"1" type:"string" required:"true"` + + // Use this parameter to specify the maximum number of items to return. When + // this value is present, AWS KMS does not return more than the specified number + // of items, but it might return fewer. + // + // This value is optional. If you include a value, it must be between 1 and + // 50, inclusive. If you do not include a value, it defaults to 50. + Limit *int64 `min:"1" type:"integer"` + + // Use this parameter in a subsequent request after you receive a response with + // truncated results. Set it to the value of NextMarker from the truncated response + // you just received. + // + // Do not attempt to construct this value. Use only the value of NextMarker + // from the truncated response you just received. + Marker *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListResourceTagsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListResourceTagsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListResourceTagsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListResourceTagsInput"} + if s.KeyId == nil { + invalidParams.Add(request.NewErrParamRequired("KeyId")) + } + if s.KeyId != nil && len(*s.KeyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) + } + if s.Limit != nil && *s.Limit < 1 { + invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) + } + if s.Marker != nil && len(*s.Marker) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKeyId sets the KeyId field's value. +func (s *ListResourceTagsInput) SetKeyId(v string) *ListResourceTagsInput { + s.KeyId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListResourceTagsInput) SetLimit(v int64) *ListResourceTagsInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListResourceTagsInput) SetMarker(v string) *ListResourceTagsInput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListResourceTagsResponse +type ListResourceTagsOutput struct { + _ struct{} `type:"structure"` + + // When Truncated is true, this element is present and contains the value to + // use for the Marker parameter in a subsequent request. + // + // Do not assume or infer any information from this value. + NextMarker *string `min:"1" type:"string"` + + // A list of tags. Each tag consists of a tag key and a tag value. + Tags []*Tag `type:"list"` + + // A flag that indicates whether there are more items in the list. When this + // value is true, the list in this response is truncated. To retrieve more items, + // pass the value of the NextMarker element in this response to the Marker parameter + // in a subsequent request. + Truncated *bool `type:"boolean"` +} + +// String returns the string representation +func (s ListResourceTagsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListResourceTagsOutput) GoString() string { + return s.String() +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListResourceTagsOutput) SetNextMarker(v string) *ListResourceTagsOutput { + s.NextMarker = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ListResourceTagsOutput) SetTags(v []*Tag) *ListResourceTagsOutput { + s.Tags = v + return s +} + +// SetTruncated sets the Truncated field's value. +func (s *ListResourceTagsOutput) SetTruncated(v bool) *ListResourceTagsOutput { + s.Truncated = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ListRetirableGrantsRequest type ListRetirableGrantsInput struct { _ struct{} `type:"structure"` - // When paginating results, specify the maximum number of items to return in - // the response. If additional items exist beyond the number you specify, the - // Truncated element in the response is set to true. + // Use this parameter to specify the maximum number of items to return. When + // this value is present, AWS KMS does not return more than the specified number + // of items, but it might return fewer. // // This value is optional. If you include a value, it must be between 1 and // 100, inclusive. If you do not include a value, it defaults to 50. Limit *int64 `min:"1" type:"integer"` - // Use this parameter only when paginating results and only in a subsequent - // request after you receive a response with truncated results. Set it to the - // value of NextMarker from the response you just received. + // Use this parameter in a subsequent request after you receive a response with + // truncated results. Set it to the value of NextMarker from the truncated response + // you just received. Marker *string `min:"1" type:"string"` // The retiring principal for which to list grants. @@ -5270,19 +6500,38 @@ func (s *ListRetirableGrantsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListRetirableGrantsInput) SetLimit(v int64) *ListRetirableGrantsInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListRetirableGrantsInput) SetMarker(v string) *ListRetirableGrantsInput { + s.Marker = &v + return s +} + +// SetRetiringPrincipal sets the RetiringPrincipal field's value. +func (s *ListRetirableGrantsInput) SetRetiringPrincipal(v string) *ListRetirableGrantsInput { + s.RetiringPrincipal = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/PutKeyPolicyRequest type PutKeyPolicyInput struct { _ struct{} `type:"structure"` // A flag to indicate whether to bypass the key policy lockout safety check. // - // Setting this value to true increases the likelihood that the CMK becomes + // Setting this value to true increases the likelihood that the CMK becomes // unmanageable. Do not set this value to true indiscriminately. // // For more information, refer to the scenario in the Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) // section in the AWS Key Management Service Developer Guide. // - // Use this parameter only when you intend to prevent the principal making - // the request from making a subsequent PutKeyPolicy request on the CMK. + // Use this parameter only when you intend to prevent the principal that is + // making the request from making a subsequent PutKeyPolicy request on the CMK. // // The default value is false. BypassPolicyLockoutSafetyCheck *bool `type:"boolean"` @@ -5291,9 +6540,9 @@ type PutKeyPolicyInput struct { // // Use the CMK's unique identifier or its Amazon Resource Name (ARN). For example: // - // Unique ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // * Unique ID: 1234abcd-12ab-34cd-56ef-1234567890ab // - // ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // * ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -5303,21 +6552,21 @@ type PutKeyPolicyInput struct { // If you do not set BypassPolicyLockoutSafetyCheck to true, the policy must // meet the following criteria: // - // It must allow the principal making the PutKeyPolicy request to make a - // subsequent PutKeyPolicy request on the CMK. This reduces the likelihood that - // the CMK becomes unmanageable. For more information, refer to the scenario - // in the Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) - // section in the AWS Key Management Service Developer Guide. + // * It must allow the principal that is making the PutKeyPolicy request + // to make a subsequent PutKeyPolicy request on the CMK. This reduces the + // likelihood that the CMK becomes unmanageable. For more information, refer + // to the scenario in the Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) + // section in the AWS Key Management Service Developer Guide. // - // The principal(s) specified in the key policy must exist and be visible - // to AWS KMS. When you create a new AWS principal (for example, an IAM user - // or role), you might need to enforce a delay before specifying the new principal - // in a key policy because the new principal might not immediately be visible - // to AWS KMS. For more information, see Changes that I make are not always - // immediately visible (http://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency) - // in the IAM User Guide. + // * The principals that are specified in the key policy must exist and be + // visible to AWS KMS. When you create a new AWS principal (for example, + // an IAM user or role), you might need to enforce a delay before specifying + // the new principal in a key policy because the new principal might not + // immediately be visible to AWS KMS. For more information, see Changes that + // I make are not always immediately visible (http://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency) + // in the IAM User Guide. // - // The policy size limit is 32 KiB (32768 bytes). + // The policy size limit is 32 KiB (32768 bytes). // // Policy is a required field Policy *string `min:"1" type:"string" required:"true"` @@ -5368,6 +6617,31 @@ func (s *PutKeyPolicyInput) Validate() error { return nil } +// SetBypassPolicyLockoutSafetyCheck sets the BypassPolicyLockoutSafetyCheck field's value. +func (s *PutKeyPolicyInput) SetBypassPolicyLockoutSafetyCheck(v bool) *PutKeyPolicyInput { + s.BypassPolicyLockoutSafetyCheck = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *PutKeyPolicyInput) SetKeyId(v string) *PutKeyPolicyInput { + s.KeyId = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *PutKeyPolicyInput) SetPolicy(v string) *PutKeyPolicyInput { + s.Policy = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *PutKeyPolicyInput) SetPolicyName(v string) *PutKeyPolicyInput { + s.PolicyName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/PutKeyPolicyOutput type PutKeyPolicyOutput struct { _ struct{} `type:"structure"` } @@ -5382,30 +6656,31 @@ func (s PutKeyPolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ReEncryptRequest type ReEncryptInput struct { _ struct{} `type:"structure"` - // Ciphertext of the data to re-encrypt. + // Ciphertext of the data to reencrypt. // // CiphertextBlob is automatically base64 encoded/decoded by the SDK. // // CiphertextBlob is a required field CiphertextBlob []byte `min:"1" type:"blob" required:"true"` - // Encryption context to be used when the data is re-encrypted. + // Encryption context to use when the data is reencrypted. DestinationEncryptionContext map[string]*string `type:"map"` - // A unique identifier for the customer master key used to re-encrypt the data. - // This value can be a globally unique identifier, a fully specified ARN to - // either an alias or a key, or an alias name prefixed by "alias/". + // A unique identifier for the CMK to use to reencrypt the data. This value + // can be a globally unique identifier, a fully specified ARN to either an alias + // or a key, or an alias name prefixed by "alias/". // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName + // * Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // - // Alias Name Example - alias/MyAliasName + // * Alias Name Example - alias/MyAliasName // // DestinationKeyId is a required field DestinationKeyId *string `min:"1" type:"string" required:"true"` @@ -5453,19 +6728,49 @@ func (s *ReEncryptInput) Validate() error { return nil } +// SetCiphertextBlob sets the CiphertextBlob field's value. +func (s *ReEncryptInput) SetCiphertextBlob(v []byte) *ReEncryptInput { + s.CiphertextBlob = v + return s +} + +// SetDestinationEncryptionContext sets the DestinationEncryptionContext field's value. +func (s *ReEncryptInput) SetDestinationEncryptionContext(v map[string]*string) *ReEncryptInput { + s.DestinationEncryptionContext = v + return s +} + +// SetDestinationKeyId sets the DestinationKeyId field's value. +func (s *ReEncryptInput) SetDestinationKeyId(v string) *ReEncryptInput { + s.DestinationKeyId = &v + return s +} + +// SetGrantTokens sets the GrantTokens field's value. +func (s *ReEncryptInput) SetGrantTokens(v []*string) *ReEncryptInput { + s.GrantTokens = v + return s +} + +// SetSourceEncryptionContext sets the SourceEncryptionContext field's value. +func (s *ReEncryptInput) SetSourceEncryptionContext(v map[string]*string) *ReEncryptInput { + s.SourceEncryptionContext = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ReEncryptResponse type ReEncryptOutput struct { _ struct{} `type:"structure"` - // The re-encrypted data. If you are using the CLI, the value is Base64 encoded. - // Otherwise, it is not encoded. + // The reencrypted data. // // CiphertextBlob is automatically base64 encoded/decoded by the SDK. CiphertextBlob []byte `min:"1" type:"blob"` - // Unique identifier of the key used to re-encrypt the data. + // Unique identifier of the CMK used to reencrypt the data. KeyId *string `min:"1" type:"string"` - // Unique identifier of the key used to originally encrypt the data. + // Unique identifier of the CMK used to originally encrypt the data. SourceKeyId *string `min:"1" type:"string"` } @@ -5479,25 +6784,40 @@ func (s ReEncryptOutput) GoString() string { return s.String() } +// SetCiphertextBlob sets the CiphertextBlob field's value. +func (s *ReEncryptOutput) SetCiphertextBlob(v []byte) *ReEncryptOutput { + s.CiphertextBlob = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *ReEncryptOutput) SetKeyId(v string) *ReEncryptOutput { + s.KeyId = &v + return s +} + +// SetSourceKeyId sets the SourceKeyId field's value. +func (s *ReEncryptOutput) SetSourceKeyId(v string) *ReEncryptOutput { + s.SourceKeyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RetireGrantRequest type RetireGrantInput struct { _ struct{} `type:"structure"` - // Unique identifier of the grant to be retired. The grant ID is returned by - // the CreateGrant function. + // Unique identifier of the grant to retire. The grant ID is returned in the + // response to a CreateGrant operation. // - // Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123 + // * Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123 GrantId *string `min:"1" type:"string"` // Token that identifies the grant to be retired. GrantToken *string `min:"1" type:"string"` - // A unique identifier for the customer master key associated with the grant. - // This value can be a globally unique identifier or a fully specified ARN of - // the key. + // The Amazon Resource Name of the CMK associated with the grant. Example: // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab KeyId *string `min:"1" type:"string"` } @@ -5530,6 +6850,25 @@ func (s *RetireGrantInput) Validate() error { return nil } +// SetGrantId sets the GrantId field's value. +func (s *RetireGrantInput) SetGrantId(v string) *RetireGrantInput { + s.GrantId = &v + return s +} + +// SetGrantToken sets the GrantToken field's value. +func (s *RetireGrantInput) SetGrantToken(v string) *RetireGrantInput { + s.GrantToken = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *RetireGrantInput) SetKeyId(v string) *RetireGrantInput { + s.KeyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RetireGrantOutput type RetireGrantOutput struct { _ struct{} `type:"structure"` } @@ -5544,6 +6883,7 @@ func (s RetireGrantOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RevokeGrantRequest type RevokeGrantInput struct { _ struct{} `type:"structure"` @@ -5556,9 +6896,9 @@ type RevokeGrantInput struct { // This value can be a globally unique identifier or the fully specified ARN // to a key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -5596,6 +6936,19 @@ func (s *RevokeGrantInput) Validate() error { return nil } +// SetGrantId sets the GrantId field's value. +func (s *RevokeGrantInput) SetGrantId(v string) *RevokeGrantInput { + s.GrantId = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *RevokeGrantInput) SetKeyId(v string) *RevokeGrantInput { + s.KeyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/RevokeGrantOutput type RevokeGrantOutput struct { _ struct{} `type:"structure"` } @@ -5610,6 +6963,7 @@ func (s RevokeGrantOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ScheduleKeyDeletionRequest type ScheduleKeyDeletionInput struct { _ struct{} `type:"structure"` @@ -5618,12 +6972,12 @@ type ScheduleKeyDeletionInput struct { // To specify this value, use the unique key ID or the Amazon Resource Name // (ARN) of the CMK. Examples: // - // Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // * Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab // - // Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // * Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // - // To obtain the unique key ID and key ARN for a given CMK, use ListKeys - // or DescribeKey. + // To obtain the unique key ID and key ARN for a given CMK, use ListKeys or + // DescribeKey. // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -5665,6 +7019,19 @@ func (s *ScheduleKeyDeletionInput) Validate() error { return nil } +// SetKeyId sets the KeyId field's value. +func (s *ScheduleKeyDeletionInput) SetKeyId(v string) *ScheduleKeyDeletionInput { + s.KeyId = &v + return s +} + +// SetPendingWindowInDays sets the PendingWindowInDays field's value. +func (s *ScheduleKeyDeletionInput) SetPendingWindowInDays(v int64) *ScheduleKeyDeletionInput { + s.PendingWindowInDays = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ScheduleKeyDeletionResponse type ScheduleKeyDeletionOutput struct { _ struct{} `type:"structure"` @@ -5686,6 +7053,239 @@ func (s ScheduleKeyDeletionOutput) GoString() string { return s.String() } +// SetDeletionDate sets the DeletionDate field's value. +func (s *ScheduleKeyDeletionOutput) SetDeletionDate(v time.Time) *ScheduleKeyDeletionOutput { + s.DeletionDate = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *ScheduleKeyDeletionOutput) SetKeyId(v string) *ScheduleKeyDeletionOutput { + s.KeyId = &v + return s +} + +// A key-value pair. A tag consists of a tag key and a tag value. Tag keys and +// tag values are both required, but tag values can be empty (null) strings. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/Tag +type Tag struct { + _ struct{} `type:"structure"` + + // The key of the tag. + // + // TagKey is a required field + TagKey *string `min:"1" type:"string" required:"true"` + + // The value of the tag. + // + // TagValue is a required field + TagValue *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s Tag) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Tag) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Tag) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Tag"} + if s.TagKey == nil { + invalidParams.Add(request.NewErrParamRequired("TagKey")) + } + if s.TagKey != nil && len(*s.TagKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TagKey", 1)) + } + if s.TagValue == nil { + invalidParams.Add(request.NewErrParamRequired("TagValue")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTagKey sets the TagKey field's value. +func (s *Tag) SetTagKey(v string) *Tag { + s.TagKey = &v + return s +} + +// SetTagValue sets the TagValue field's value. +func (s *Tag) SetTagValue(v string) *Tag { + s.TagValue = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/TagResourceRequest +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // A unique identifier for the CMK you are tagging. You can use the unique key + // ID or the Amazon Resource Name (ARN) of the CMK. Examples: + // + // * Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // + // * Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // + // KeyId is a required field + KeyId *string `min:"1" type:"string" required:"true"` + + // One or more tags. Each tag consists of a tag key and a tag value. + // + // Tags is a required field + Tags []*Tag `type:"list" required:"true"` +} + +// String returns the string representation +func (s TagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.KeyId == nil { + invalidParams.Add(request.NewErrParamRequired("KeyId")) + } + if s.KeyId != nil && len(*s.KeyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKeyId sets the KeyId field's value. +func (s *TagResourceInput) SetKeyId(v string) *TagResourceInput { + s.KeyId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/TagResourceOutput +type TagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s TagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagResourceOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UntagResourceRequest +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // A unique identifier for the CMK from which you are removing tags. You can + // use the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples: + // + // * Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // + // * Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // + // KeyId is a required field + KeyId *string `min:"1" type:"string" required:"true"` + + // One or more tag keys. Specify only the tag keys, not the tag values. + // + // TagKeys is a required field + TagKeys []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s UntagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UntagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.KeyId == nil { + invalidParams.Add(request.NewErrParamRequired("KeyId")) + } + if s.KeyId != nil && len(*s.KeyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKeyId sets the KeyId field's value. +func (s *UntagResourceInput) SetKeyId(v string) *UntagResourceInput { + s.KeyId = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UntagResourceOutput +type UntagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UntagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UntagResourceOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateAliasRequest type UpdateAliasInput struct { _ struct{} `type:"structure"` @@ -5700,11 +7300,11 @@ type UpdateAliasInput struct { // value can be a globally unique identifier or the fully specified ARN of a // key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // - // You can call ListAliases to verify that the alias is mapped to the correct + // You can call ListAliases to verify that the alias is mapped to the correct // TargetKeyId. // // TargetKeyId is a required field @@ -5743,6 +7343,19 @@ func (s *UpdateAliasInput) Validate() error { return nil } +// SetAliasName sets the AliasName field's value. +func (s *UpdateAliasInput) SetAliasName(v string) *UpdateAliasInput { + s.AliasName = &v + return s +} + +// SetTargetKeyId sets the TargetKeyId field's value. +func (s *UpdateAliasInput) SetTargetKeyId(v string) *UpdateAliasInput { + s.TargetKeyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateAliasOutput type UpdateAliasOutput struct { _ struct{} `type:"structure"` } @@ -5757,20 +7370,21 @@ func (s UpdateAliasOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateKeyDescriptionRequest type UpdateKeyDescriptionInput struct { _ struct{} `type:"structure"` - // New description for the key. + // New description for the CMK. // // Description is a required field Description *string `type:"string" required:"true"` - // A unique identifier for the customer master key. This value can be a globally - // unique identifier or the fully specified ARN to a key. + // A unique identifier for the CMK. This value can be a globally unique identifier + // or the fully specified ARN to a key. // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + // * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 // // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` @@ -5805,6 +7419,19 @@ func (s *UpdateKeyDescriptionInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *UpdateKeyDescriptionInput) SetDescription(v string) *UpdateKeyDescriptionInput { + s.Description = &v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *UpdateKeyDescriptionInput) SetKeyId(v string) *UpdateKeyDescriptionInput { + s.KeyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateKeyDescriptionOutput type UpdateKeyDescriptionOutput struct { _ struct{} `type:"structure"` } diff --git a/vendor/github.com/aws/aws-sdk-go/service/kms/errors.go b/vendor/github.com/aws/aws-sdk-go/service/kms/errors.go new file mode 100644 index 000000000..474ae6baf --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/kms/errors.go @@ -0,0 +1,154 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package kms + +const ( + + // ErrCodeAlreadyExistsException for service response error code + // "AlreadyExistsException". + // + // The request was rejected because it attempted to create a resource that already + // exists. + ErrCodeAlreadyExistsException = "AlreadyExistsException" + + // ErrCodeDependencyTimeoutException for service response error code + // "DependencyTimeoutException". + // + // The system timed out while trying to fulfill the request. The request can + // be retried. + ErrCodeDependencyTimeoutException = "DependencyTimeoutException" + + // ErrCodeDisabledException for service response error code + // "DisabledException". + // + // The request was rejected because the specified CMK is not enabled. + ErrCodeDisabledException = "DisabledException" + + // ErrCodeExpiredImportTokenException for service response error code + // "ExpiredImportTokenException". + // + // The request was rejected because the provided import token is expired. Use + // GetParametersForImport to retrieve a new import token and public key, use + // the new public key to encrypt the key material, and then try the request + // again. + ErrCodeExpiredImportTokenException = "ExpiredImportTokenException" + + // ErrCodeIncorrectKeyMaterialException for service response error code + // "IncorrectKeyMaterialException". + // + // The request was rejected because the provided key material is invalid or + // is not the same key material that was previously imported into this customer + // master key (CMK). + ErrCodeIncorrectKeyMaterialException = "IncorrectKeyMaterialException" + + // ErrCodeInternalException for service response error code + // "InternalException". + // + // The request was rejected because an internal exception occurred. The request + // can be retried. + ErrCodeInternalException = "InternalException" + + // ErrCodeInvalidAliasNameException for service response error code + // "InvalidAliasNameException". + // + // The request was rejected because the specified alias name is not valid. + ErrCodeInvalidAliasNameException = "InvalidAliasNameException" + + // ErrCodeInvalidArnException for service response error code + // "InvalidArnException". + // + // The request was rejected because a specified ARN was not valid. + ErrCodeInvalidArnException = "InvalidArnException" + + // ErrCodeInvalidCiphertextException for service response error code + // "InvalidCiphertextException". + // + // The request was rejected because the specified ciphertext has been corrupted + // or is otherwise invalid. + ErrCodeInvalidCiphertextException = "InvalidCiphertextException" + + // ErrCodeInvalidGrantIdException for service response error code + // "InvalidGrantIdException". + // + // The request was rejected because the specified GrantId is not valid. + ErrCodeInvalidGrantIdException = "InvalidGrantIdException" + + // ErrCodeInvalidGrantTokenException for service response error code + // "InvalidGrantTokenException". + // + // The request was rejected because the specified grant token is not valid. + ErrCodeInvalidGrantTokenException = "InvalidGrantTokenException" + + // ErrCodeInvalidImportTokenException for service response error code + // "InvalidImportTokenException". + // + // The request was rejected because the provided import token is invalid or + // is associated with a different customer master key (CMK). + ErrCodeInvalidImportTokenException = "InvalidImportTokenException" + + // ErrCodeInvalidKeyUsageException for service response error code + // "InvalidKeyUsageException". + // + // The request was rejected because the specified KeySpec value is not valid. + ErrCodeInvalidKeyUsageException = "InvalidKeyUsageException" + + // ErrCodeInvalidMarkerException for service response error code + // "InvalidMarkerException". + // + // The request was rejected because the marker that specifies where pagination + // should next begin is not valid. + ErrCodeInvalidMarkerException = "InvalidMarkerException" + + // ErrCodeInvalidStateException for service response error code + // "InvalidStateException". + // + // The request was rejected because the state of the specified resource is not + // valid for this request. + // + // For more information about how key state affects the use of a CMK, see How + // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) + // in the AWS Key Management Service Developer Guide. + ErrCodeInvalidStateException = "InvalidStateException" + + // ErrCodeKeyUnavailableException for service response error code + // "KeyUnavailableException". + // + // The request was rejected because the specified CMK was not available. The + // request can be retried. + ErrCodeKeyUnavailableException = "KeyUnavailableException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // The request was rejected because a limit was exceeded. For more information, + // see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html) + // in the AWS Key Management Service Developer Guide. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeMalformedPolicyDocumentException for service response error code + // "MalformedPolicyDocumentException". + // + // The request was rejected because the specified policy is not syntactically + // or semantically correct. + ErrCodeMalformedPolicyDocumentException = "MalformedPolicyDocumentException" + + // ErrCodeNotFoundException for service response error code + // "NotFoundException". + // + // The request was rejected because the specified entity or resource could not + // be found. + ErrCodeNotFoundException = "NotFoundException" + + // ErrCodeTagException for service response error code + // "TagException". + // + // The request was rejected because one or more tags are not valid. + ErrCodeTagException = "TagException" + + // ErrCodeUnsupportedOperationException for service response error code + // "UnsupportedOperationException". + // + // The request was rejected because a specified parameter is not supported or + // a specified resource is not valid for this operation. + ErrCodeUnsupportedOperationException = "UnsupportedOperationException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/kms/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/kms/examples_test.go index 4135bfda1..50fc0ef33 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kms/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kms/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleKMS_CancelKeyDeletion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -41,11 +37,7 @@ func ExampleKMS_CancelKeyDeletion() { } func ExampleKMS_CreateAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -67,11 +59,7 @@ func ExampleKMS_CreateAlias() { } func ExampleKMS_CreateGrant() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -113,11 +101,7 @@ func ExampleKMS_CreateGrant() { } func ExampleKMS_CreateKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -127,6 +111,13 @@ func ExampleKMS_CreateKey() { KeyUsage: aws.String("KeyUsageType"), Origin: aws.String("OriginType"), Policy: aws.String("PolicyType"), + Tags: []*kms.Tag{ + { // Required + TagKey: aws.String("TagKeyType"), // Required + TagValue: aws.String("TagValueType"), // Required + }, + // More values... + }, } resp, err := svc.CreateKey(params) @@ -142,11 +133,7 @@ func ExampleKMS_CreateKey() { } func ExampleKMS_Decrypt() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -175,11 +162,7 @@ func ExampleKMS_Decrypt() { } func ExampleKMS_DeleteAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -200,11 +183,7 @@ func ExampleKMS_DeleteAlias() { } func ExampleKMS_DeleteImportedKeyMaterial() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -225,11 +204,7 @@ func ExampleKMS_DeleteImportedKeyMaterial() { } func ExampleKMS_DescribeKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -254,11 +229,7 @@ func ExampleKMS_DescribeKey() { } func ExampleKMS_DisableKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -279,11 +250,7 @@ func ExampleKMS_DisableKey() { } func ExampleKMS_DisableKeyRotation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -304,11 +271,7 @@ func ExampleKMS_DisableKeyRotation() { } func ExampleKMS_EnableKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -329,11 +292,7 @@ func ExampleKMS_EnableKey() { } func ExampleKMS_EnableKeyRotation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -354,11 +313,7 @@ func ExampleKMS_EnableKeyRotation() { } func ExampleKMS_Encrypt() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -388,11 +343,7 @@ func ExampleKMS_Encrypt() { } func ExampleKMS_GenerateDataKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -423,11 +374,7 @@ func ExampleKMS_GenerateDataKey() { } func ExampleKMS_GenerateDataKeyWithoutPlaintext() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -458,11 +405,7 @@ func ExampleKMS_GenerateDataKeyWithoutPlaintext() { } func ExampleKMS_GenerateRandom() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -483,11 +426,7 @@ func ExampleKMS_GenerateRandom() { } func ExampleKMS_GetKeyPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -509,11 +448,7 @@ func ExampleKMS_GetKeyPolicy() { } func ExampleKMS_GetKeyRotationStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -534,11 +469,7 @@ func ExampleKMS_GetKeyRotationStatus() { } func ExampleKMS_GetParametersForImport() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -561,11 +492,7 @@ func ExampleKMS_GetParametersForImport() { } func ExampleKMS_ImportKeyMaterial() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -590,11 +517,7 @@ func ExampleKMS_ImportKeyMaterial() { } func ExampleKMS_ListAliases() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -616,11 +539,7 @@ func ExampleKMS_ListAliases() { } func ExampleKMS_ListGrants() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -643,11 +562,7 @@ func ExampleKMS_ListGrants() { } func ExampleKMS_ListKeyPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -670,11 +585,7 @@ func ExampleKMS_ListKeyPolicies() { } func ExampleKMS_ListKeys() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -695,13 +606,32 @@ func ExampleKMS_ListKeys() { fmt.Println(resp) } -func ExampleKMS_ListRetirableGrants() { - sess, err := session.NewSession() +func ExampleKMS_ListResourceTags() { + sess := session.Must(session.NewSession()) + + svc := kms.New(sess) + + params := &kms.ListResourceTagsInput{ + KeyId: aws.String("KeyIdType"), // Required + Limit: aws.Int64(1), + Marker: aws.String("MarkerType"), + } + resp, err := svc.ListResourceTags(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleKMS_ListRetirableGrants() { + sess := session.Must(session.NewSession()) + svc := kms.New(sess) params := &kms.ListRetirableGrantsInput{ @@ -723,11 +653,7 @@ func ExampleKMS_ListRetirableGrants() { } func ExampleKMS_PutKeyPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -751,11 +677,7 @@ func ExampleKMS_PutKeyPolicy() { } func ExampleKMS_ReEncrypt() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -789,11 +711,7 @@ func ExampleKMS_ReEncrypt() { } func ExampleKMS_RetireGrant() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -816,11 +734,7 @@ func ExampleKMS_RetireGrant() { } func ExampleKMS_RevokeGrant() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -842,11 +756,7 @@ func ExampleKMS_RevokeGrant() { } func ExampleKMS_ScheduleKeyDeletion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) @@ -867,13 +777,62 @@ func ExampleKMS_ScheduleKeyDeletion() { fmt.Println(resp) } -func ExampleKMS_UpdateAlias() { - sess, err := session.NewSession() +func ExampleKMS_TagResource() { + sess := session.Must(session.NewSession()) + + svc := kms.New(sess) + + params := &kms.TagResourceInput{ + KeyId: aws.String("KeyIdType"), // Required + Tags: []*kms.Tag{ // Required + { // Required + TagKey: aws.String("TagKeyType"), // Required + TagValue: aws.String("TagValueType"), // Required + }, + // More values... + }, + } + resp, err := svc.TagResource(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleKMS_UntagResource() { + sess := session.Must(session.NewSession()) + + svc := kms.New(sess) + + params := &kms.UntagResourceInput{ + KeyId: aws.String("KeyIdType"), // Required + TagKeys: []*string{ // Required + aws.String("TagKeyType"), // Required + // More values... + }, + } + resp, err := svc.UntagResource(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleKMS_UpdateAlias() { + sess := session.Must(session.NewSession()) + svc := kms.New(sess) params := &kms.UpdateAliasInput{ @@ -894,11 +853,7 @@ func ExampleKMS_UpdateAlias() { } func ExampleKMS_UpdateKeyDescription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := kms.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/kms/kmsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/kms/kmsiface/interface.go index 1b8585c75..e261befd8 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kms/kmsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kms/kmsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockKMSClient{} // @@ -163,6 +163,10 @@ type KMSAPI interface { ListKeysPages(*kms.ListKeysInput, func(*kms.ListKeysOutput, bool) bool) error + ListResourceTagsRequest(*kms.ListResourceTagsInput) (*request.Request, *kms.ListResourceTagsOutput) + + ListResourceTags(*kms.ListResourceTagsInput) (*kms.ListResourceTagsOutput, error) + ListRetirableGrantsRequest(*kms.ListRetirableGrantsInput) (*request.Request, *kms.ListGrantsResponse) ListRetirableGrants(*kms.ListRetirableGrantsInput) (*kms.ListGrantsResponse, error) @@ -187,6 +191,14 @@ type KMSAPI interface { ScheduleKeyDeletion(*kms.ScheduleKeyDeletionInput) (*kms.ScheduleKeyDeletionOutput, error) + TagResourceRequest(*kms.TagResourceInput) (*request.Request, *kms.TagResourceOutput) + + TagResource(*kms.TagResourceInput) (*kms.TagResourceOutput, error) + + UntagResourceRequest(*kms.UntagResourceInput) (*request.Request, *kms.UntagResourceOutput) + + UntagResource(*kms.UntagResourceInput) (*kms.UntagResourceOutput, error) + UpdateAliasRequest(*kms.UpdateAliasInput) (*request.Request, *kms.UpdateAliasOutput) UpdateAlias(*kms.UpdateAliasInput) (*kms.UpdateAliasOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/kms/service.go b/vendor/github.com/aws/aws-sdk-go/service/kms/service.go index 4afd3a8e2..b4688cad3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kms/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kms/service.go @@ -16,15 +16,15 @@ import ( // programmatically. For general information about AWS KMS, see the AWS Key // Management Service Developer Guide (http://docs.aws.amazon.com/kms/latest/developerguide/). // -// AWS provides SDKs that consist of libraries and sample code for various -// programming languages and platforms (Java, Ruby, .Net, iOS, Android, etc.). -// The SDKs provide a convenient way to create programmatic access to AWS KMS -// and other AWS services. For example, the SDKs take care of tasks such as -// signing requests (see below), managing errors, and retrying requests automatically. -// For more information about the AWS SDKs, including how to download and install -// them, see Tools for Amazon Web Services (http://aws.amazon.com/tools/). -// -// We recommend that you use the AWS SDKs to make programmatic API calls to +// AWS provides SDKs that consist of libraries and sample code for various programming +// languages and platforms (Java, Ruby, .Net, iOS, Android, etc.). The SDKs +// provide a convenient way to create programmatic access to AWS KMS and other +// AWS services. For example, the SDKs take care of tasks such as signing requests +// (see below), managing errors, and retrying requests automatically. For more +// information about the AWS SDKs, including how to download and install them, +// see Tools for Amazon Web Services (http://aws.amazon.com/tools/). +// +// We recommend that you use the AWS SDKs to make programmatic API calls to // AWS KMS. // // Clients must support TLS (Transport Layer Security) 1.0. We recommend TLS @@ -33,7 +33,7 @@ import ( // Diffie-Hellman (ECDHE). Most modern systems such as Java 7 and later support // these modes. // -// Signing Requests +// Signing Requests // // Requests must be signed by using an access key ID and a secret access key. // We strongly recommend that you do not use your AWS account (root) access @@ -44,7 +44,7 @@ import ( // // All AWS KMS operations require Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). // -// Logging API Requests +// Logging API Requests // // AWS KMS supports AWS CloudTrail, a service that logs AWS API calls and related // events for your AWS account and delivers them to an Amazon S3 bucket that @@ -53,37 +53,38 @@ import ( // and so on. To learn more about CloudTrail, including how to turn it on and // find your log files, see the AWS CloudTrail User Guide (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/). // -// Additional Resources +// Additional Resources // // For more information about credentials and request signing, see the following: // -// AWS Security Credentials (http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html) -// - This topic provides general information about the types of credentials -// used for accessing AWS. +// * AWS Security Credentials (http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html) +// - This topic provides general information about the types of credentials +// used for accessing AWS. // -// Temporary Security Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html) -// - This section of the IAM User Guide describes how to create and use temporary -// security credentials. +// * Temporary Security Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html) +// - This section of the IAM User Guide describes how to create and use temporary +// security credentials. // -// Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html) -// - This set of topics walks you through the process of signing a request using -// an access key ID and a secret access key. +// * Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html) +// - This set of topics walks you through the process of signing a request +// using an access key ID and a secret access key. // -// Commonly Used APIs +// Commonly Used APIs // // Of the APIs discussed in this guide, the following will prove the most useful // for most applications. You will likely perform actions other than these, // such as creating keys and assigning policies, by using the console. // -// Encrypt +// * Encrypt // -// Decrypt +// * Decrypt // -// GenerateDataKey +// * GenerateDataKey // -// GenerateDataKeyWithoutPlaintext -//The service client's operations are safe to be used concurrently. +// * GenerateDataKeyWithoutPlaintext +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01 type KMS struct { *client.Client } @@ -94,8 +95,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "kms" +// Service information constants +const ( + ServiceName = "kms" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the KMS client with a session. // If additional configuration is needed for the client instance use the optional @@ -108,17 +112,18 @@ const ServiceName = "kms" // // Create a KMS client with additional configuration // svc := kms.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *KMS { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *KMS { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *KMS { svc := &KMS{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-11-01", diff --git a/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go b/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go index 9713b5013..4a215f4eb 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go @@ -38,7 +38,6 @@ const opAddPermission = "AddPermission" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.Request, output *AddPermissionOutput) { op := &request.Operation{ Name: opAddPermission, @@ -50,9 +49,8 @@ func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.R input = &AddPermissionInput{} } - req = c.newRequest(op, input, output) output = &AddPermissionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -82,26 +80,25 @@ func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.R // API operation AddPermission for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // The resource already exists. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * PolicyLengthExceededException +// * ErrCodePolicyLengthExceededException "PolicyLengthExceededException" // Lambda function access policy is limited to 20 KB. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, error) { req, out := c.AddPermissionRequest(input) @@ -134,7 +131,6 @@ const opCreateAlias = "CreateAlias" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, output *AliasConfiguration) { op := &request.Operation{ Name: opCreateAlias, @@ -146,9 +142,8 @@ func (c *Lambda) CreateAliasRequest(input *CreateAliasInput) (req *request.Reque input = &CreateAliasInput{} } - req = c.newRequest(op, input, output) output = &AliasConfiguration{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -168,23 +163,22 @@ func (c *Lambda) CreateAliasRequest(input *CreateAliasInput) (req *request.Reque // API operation CreateAlias for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // The resource already exists. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) CreateAlias(input *CreateAliasInput) (*AliasConfiguration, error) { req, out := c.CreateAliasRequest(input) @@ -217,7 +211,6 @@ const opCreateEventSourceMapping = "CreateEventSourceMapping" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration) { op := &request.Operation{ Name: opCreateEventSourceMapping, @@ -229,9 +222,8 @@ func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMapping input = &CreateEventSourceMappingInput{} } - req = c.newRequest(op, input, output) output = &EventSourceMappingConfiguration{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -245,12 +237,12 @@ func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMapping // the event source mapping. // // This event source mapping is relevant only in the AWS Lambda pull model, -// where AWS Lambda invokes the function. For more information, go to AWS Lambda: +// where AWS Lambda invokes the function. For more information, see AWS Lambda: // How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html) // in the AWS Lambda Developer Guide. // -// You provide mapping information (for example, which stream to read from -// and which Lambda function to invoke) in the request body. +// You provide mapping information (for example, which stream to read from and +// which Lambda function to invoke) in the request body. // // Each event source, such as an Amazon Kinesis or a DynamoDB stream, can be // associated with multiple AWS Lambda function. A given Lambda function can @@ -271,21 +263,20 @@ func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMapping // API operation CreateEventSourceMapping for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // The resource already exists. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // @@ -320,7 +311,6 @@ const opCreateFunction = "CreateFunction" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request.Request, output *FunctionConfiguration) { op := &request.Operation{ Name: opCreateFunction, @@ -332,9 +322,8 @@ func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request input = &CreateFunctionInput{} } - req = c.newRequest(op, input, output) output = &FunctionConfiguration{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -345,7 +334,7 @@ func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request // in the request body. If the function name already exists, the operation will // fail. Note that the function name is case-sensitive. // -// If you are using versioning, you can also publish a version of the Lambda +// If you are using versioning, you can also publish a version of the Lambda // function you are creating using the Publish parameter. For more information // about versioning, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). // @@ -359,25 +348,24 @@ func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request // API operation CreateFunction for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // The resource already exists. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * CodeStorageExceededException +// * ErrCodeCodeStorageExceededException "CodeStorageExceededException" // You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) // func (c *Lambda) CreateFunction(input *CreateFunctionInput) (*FunctionConfiguration, error) { @@ -411,7 +399,6 @@ const opDeleteAlias = "DeleteAlias" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, output *DeleteAliasOutput) { op := &request.Operation{ Name: opDeleteAlias, @@ -423,11 +410,10 @@ func (c *Lambda) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Reque input = &DeleteAliasInput{} } + output = &DeleteAliasOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAliasOutput{} - req.Data = output return } @@ -446,16 +432,15 @@ func (c *Lambda) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Reque // API operation DeleteAlias for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error) { req, out := c.DeleteAliasRequest(input) @@ -488,7 +473,6 @@ const opDeleteEventSourceMapping = "DeleteEventSourceMapping" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) DeleteEventSourceMappingRequest(input *DeleteEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration) { op := &request.Operation{ Name: opDeleteEventSourceMapping, @@ -500,9 +484,8 @@ func (c *Lambda) DeleteEventSourceMappingRequest(input *DeleteEventSourceMapping input = &DeleteEventSourceMappingInput{} } - req = c.newRequest(op, input, output) output = &EventSourceMappingConfiguration{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -522,20 +505,19 @@ func (c *Lambda) DeleteEventSourceMappingRequest(input *DeleteEventSourceMapping // API operation DeleteEventSourceMapping for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) DeleteEventSourceMapping(input *DeleteEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { req, out := c.DeleteEventSourceMappingRequest(input) @@ -568,7 +550,6 @@ const opDeleteFunction = "DeleteFunction" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request.Request, output *DeleteFunctionOutput) { op := &request.Operation{ Name: opDeleteFunction, @@ -580,11 +561,10 @@ func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request input = &DeleteFunctionInput{} } + output = &DeleteFunctionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteFunctionOutput{} - req.Data = output return } @@ -612,22 +592,21 @@ func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request // API operation DeleteFunction for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // The resource already exists. // func (c *Lambda) DeleteFunction(input *DeleteFunctionInput) (*DeleteFunctionOutput, error) { @@ -636,6 +615,76 @@ func (c *Lambda) DeleteFunction(input *DeleteFunctionInput) (*DeleteFunctionOutp return out, err } +const opGetAccountSettings = "GetAccountSettings" + +// GetAccountSettingsRequest generates a "aws/request.Request" representing the +// client's request for the GetAccountSettings operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetAccountSettings for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetAccountSettings method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetAccountSettingsRequest method. +// req, resp := client.GetAccountSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Lambda) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req *request.Request, output *GetAccountSettingsOutput) { + op := &request.Operation{ + Name: opGetAccountSettings, + HTTPMethod: "GET", + HTTPPath: "/2016-08-19/account-settings/", + } + + if input == nil { + input = &GetAccountSettingsInput{} + } + + output = &GetAccountSettingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetAccountSettings API operation for AWS Lambda. +// +// Returns a customer's account settings. +// +// You can use this operation to retrieve Lambda limits information, such as +// code size and concurrency limits. For more information about limits, see +// AWS Lambda Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html). +// You can also retrieve resource usage statistics, such as code storage usage +// and function count. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation GetAccountSettings for usage and error information. +// +// Returned Error Codes: +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +// * ErrCodeServiceException "ServiceException" +// The AWS Lambda service encountered an internal error. +// +func (c *Lambda) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error) { + req, out := c.GetAccountSettingsRequest(input) + err := req.Send() + return out, err +} + const opGetAlias = "GetAlias" // GetAliasRequest generates a "aws/request.Request" representing the @@ -661,7 +710,6 @@ const opGetAlias = "GetAlias" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) GetAliasRequest(input *GetAliasInput) (req *request.Request, output *AliasConfiguration) { op := &request.Operation{ Name: opGetAlias, @@ -673,9 +721,8 @@ func (c *Lambda) GetAliasRequest(input *GetAliasInput) (req *request.Request, ou input = &GetAliasInput{} } - req = c.newRequest(op, input, output) output = &AliasConfiguration{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -695,20 +742,19 @@ func (c *Lambda) GetAliasRequest(input *GetAliasInput) (req *request.Request, ou // API operation GetAlias for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) GetAlias(input *GetAliasInput) (*AliasConfiguration, error) { req, out := c.GetAliasRequest(input) @@ -741,7 +787,6 @@ const opGetEventSourceMapping = "GetEventSourceMapping" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration) { op := &request.Operation{ Name: opGetEventSourceMapping, @@ -753,9 +798,8 @@ func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput) input = &GetEventSourceMappingInput{} } - req = c.newRequest(op, input, output) output = &EventSourceMappingConfiguration{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -764,8 +808,7 @@ func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput) // Returns configuration information for the specified event source mapping // (see CreateEventSourceMapping). // -// This operation requires permission for the lambda:GetEventSourceMapping -// action. +// This operation requires permission for the lambda:GetEventSourceMapping action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -775,20 +818,19 @@ func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput) // API operation GetEventSourceMapping for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) GetEventSourceMapping(input *GetEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { req, out := c.GetEventSourceMappingRequest(input) @@ -821,7 +863,6 @@ const opGetFunction = "GetFunction" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) (req *request.Request, output *GetFunctionOutput) { op := &request.Operation{ Name: opGetFunction, @@ -833,9 +874,8 @@ func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) (req *request.Reque input = &GetFunctionInput{} } - req = c.newRequest(op, input, output) output = &GetFunctionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -863,17 +903,16 @@ func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) (req *request.Reque // API operation GetFunction for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. @@ -909,7 +948,6 @@ const opGetFunctionConfiguration = "GetFunctionConfiguration" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfigurationInput) (req *request.Request, output *FunctionConfiguration) { op := &request.Operation{ Name: opGetFunctionConfiguration, @@ -921,9 +959,8 @@ func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfiguration input = &GetFunctionConfigurationInput{} } - req = c.newRequest(op, input, output) output = &FunctionConfiguration{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -951,17 +988,16 @@ func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfiguration // API operation GetFunctionConfiguration for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. @@ -997,7 +1033,6 @@ const opGetPolicy = "GetPolicy" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, output *GetPolicyOutput) { op := &request.Operation{ Name: opGetPolicy, @@ -1009,9 +1044,8 @@ func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, input = &GetPolicyInput{} } - req = c.newRequest(op, input, output) output = &GetPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1019,7 +1053,7 @@ func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, // // Returns the resource policy associated with the specified Lambda function. // -// If you are using the versioning feature, you can get the resource policy +// If you are using the versioning feature, you can get the resource policy // associated with the specific Lambda function version or alias by specifying // the version or alias name using the Qualifier parameter. For more information // about versioning, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). @@ -1036,17 +1070,16 @@ func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, // API operation GetPolicy for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. @@ -1082,7 +1115,6 @@ const opInvoke = "Invoke" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output *InvokeOutput) { op := &request.Operation{ Name: opInvoke, @@ -1094,15 +1126,15 @@ func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output input = &InvokeInput{} } - req = c.newRequest(op, input, output) output = &InvokeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // Invoke API operation for AWS Lambda. // -// Invokes a specific Lambda function. +// Invokes a specific Lambda function. For an example, see Create the Lambda +// Function and Test It Manually (http://docs.aws.amazon.com/lambda/latest/dg/with-dynamodb-create-function.html#with-dbb-invoke-manually). // // If you are using the versioning feature, you can invoke the specific function // version by providing function version or alias name that is pointing to the @@ -1122,61 +1154,75 @@ func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output // API operation Invoke for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidRequestContentException +// * ErrCodeInvalidRequestContentException "InvalidRequestContentException" // The request body could not be parsed as JSON. // -// * RequestTooLargeException +// * ErrCodeRequestTooLargeException "RequestTooLargeException" // The request payload exceeded the Invoke request body JSON input limit. For // more information, see Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html). // -// * UnsupportedMediaTypeException +// * ErrCodeUnsupportedMediaTypeException "UnsupportedMediaTypeException" // The content type of the Invoke request body is not JSON. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * EC2UnexpectedException +// * ErrCodeEC2UnexpectedException "EC2UnexpectedException" // AWS Lambda received an unexpected EC2 client exception while setting up for // the Lambda function. // -// * SubnetIPAddressLimitReachedException +// * ErrCodeSubnetIPAddressLimitReachedException "SubnetIPAddressLimitReachedException" // AWS Lambda was not able to set up VPC access for the Lambda function because // one or more configured subnets has no available IP addresses. // -// * ENILimitReachedException +// * ErrCodeENILimitReachedException "ENILimitReachedException" // AWS Lambda was not able to create an Elastic Network Interface (ENI) in the // VPC, specified as part of Lambda function configuration, because the limit // for network interfaces has been reached. // -// * EC2ThrottledException +// * ErrCodeEC2ThrottledException "EC2ThrottledException" // AWS Lambda was throttled by Amazon EC2 during Lambda function initialization // using the execution role provided for the Lambda function. // -// * EC2AccessDeniedException - +// * ErrCodeEC2AccessDeniedException "EC2AccessDeniedException" // -// * InvalidSubnetIDException +// * ErrCodeInvalidSubnetIDException "InvalidSubnetIDException" // The Subnet ID provided in the Lambda function VPC configuration is invalid. // -// * InvalidSecurityGroupIDException +// * ErrCodeInvalidSecurityGroupIDException "InvalidSecurityGroupIDException" // The Security Group ID provided in the Lambda function VPC configuration is // invalid. // -// * InvalidZipFileException +// * ErrCodeInvalidZipFileException "InvalidZipFileException" // AWS Lambda could not unzip the function zip file. // +// * ErrCodeKMSDisabledException "KMSDisabledException" +// Lambda was unable to decrypt the environment variables because the KMS key +// used is disabled. Check the Lambda function's KMS key settings. +// +// * ErrCodeKMSInvalidStateException "KMSInvalidStateException" +// Lambda was unable to decrypt the environment variables because the KMS key +// used is in an invalid state for Decrypt. Check the function's KMS key settings. +// +// * ErrCodeKMSAccessDeniedException "KMSAccessDeniedException" +// Lambda was unable to decrypt the environment variables because KMS access +// was denied. Check the Lambda function's KMS permissions. +// +// * ErrCodeKMSNotFoundException "KMSNotFoundException" +// Lambda was unable to decrypt the environment variables because the KMS key +// was not found. Check the function's KMS key settings. +// func (c *Lambda) Invoke(input *InvokeInput) (*InvokeOutput, error) { req, out := c.InvokeRequest(input) err := req.Send() @@ -1208,7 +1254,6 @@ const opInvokeAsync = "InvokeAsync" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) (req *request.Request, output *InvokeAsyncOutput) { if c.Client.Config.Logger != nil { c.Client.Config.Logger.Log("This operation, InvokeAsync, has been deprecated") @@ -1223,9 +1268,8 @@ func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) (req *request.Reque input = &InvokeAsyncInput{} } - req = c.newRequest(op, input, output) output = &InvokeAsyncOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1233,7 +1277,7 @@ func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) (req *request.Reque // // This API is deprecated. We recommend you use Invoke API (see Invoke). // -// Submits an invocation request to AWS Lambda. Upon receiving the request, +// Submits an invocation request to AWS Lambda. Upon receiving the request, // Lambda executes the specified function asynchronously. To see the logs generated // by the Lambda function execution, see the CloudWatch Logs console. // @@ -1247,14 +1291,14 @@ func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) (req *request.Reque // API operation InvokeAsync for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidRequestContentException +// * ErrCodeInvalidRequestContentException "InvalidRequestContentException" // The request body could not be parsed as JSON. // func (c *Lambda) InvokeAsync(input *InvokeAsyncInput) (*InvokeAsyncOutput, error) { @@ -1288,7 +1332,6 @@ const opListAliases = "ListAliases" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, output *ListAliasesOutput) { op := &request.Operation{ Name: opListAliases, @@ -1300,9 +1343,8 @@ func (c *Lambda) ListAliasesRequest(input *ListAliasesInput) (req *request.Reque input = &ListAliasesInput{} } - req = c.newRequest(op, input, output) output = &ListAliasesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1323,20 +1365,19 @@ func (c *Lambda) ListAliasesRequest(input *ListAliasesInput) (req *request.Reque // API operation ListAliases for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error) { req, out := c.ListAliasesRequest(input) @@ -1369,7 +1410,6 @@ const opListEventSourceMappings = "ListEventSourceMappings" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsInput) (req *request.Request, output *ListEventSourceMappingsOutput) { op := &request.Operation{ Name: opListEventSourceMappings, @@ -1387,9 +1427,8 @@ func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsIn input = &ListEventSourceMappingsInput{} } - req = c.newRequest(op, input, output) output = &ListEventSourceMappingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1417,20 +1456,19 @@ func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsIn // API operation ListEventSourceMappings for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) ListEventSourceMappings(input *ListEventSourceMappingsInput) (*ListEventSourceMappingsOutput, error) { req, out := c.ListEventSourceMappingsRequest(input) @@ -1488,7 +1526,6 @@ const opListFunctions = "ListFunctions" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) ListFunctionsRequest(input *ListFunctionsInput) (req *request.Request, output *ListFunctionsOutput) { op := &request.Operation{ Name: opListFunctions, @@ -1506,9 +1543,8 @@ func (c *Lambda) ListFunctionsRequest(input *ListFunctionsInput) (req *request.R input = &ListFunctionsInput{} } - req = c.newRequest(op, input, output) output = &ListFunctionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1532,11 +1568,10 @@ func (c *Lambda) ListFunctionsRequest(input *ListFunctionsInput) (req *request.R // API operation ListFunctions for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) ListFunctions(input *ListFunctionsInput) (*ListFunctionsOutput, error) { req, out := c.ListFunctionsRequest(input) @@ -1594,7 +1629,6 @@ const opListVersionsByFunction = "ListVersionsByFunction" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) ListVersionsByFunctionRequest(input *ListVersionsByFunctionInput) (req *request.Request, output *ListVersionsByFunctionOutput) { op := &request.Operation{ Name: opListVersionsByFunction, @@ -1606,9 +1640,8 @@ func (c *Lambda) ListVersionsByFunctionRequest(input *ListVersionsByFunctionInpu input = &ListVersionsByFunctionInput{} } - req = c.newRequest(op, input, output) output = &ListVersionsByFunctionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1625,20 +1658,19 @@ func (c *Lambda) ListVersionsByFunctionRequest(input *ListVersionsByFunctionInpu // API operation ListVersionsByFunction for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) ListVersionsByFunction(input *ListVersionsByFunctionInput) (*ListVersionsByFunctionOutput, error) { req, out := c.ListVersionsByFunctionRequest(input) @@ -1671,7 +1703,6 @@ const opPublishVersion = "PublishVersion" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) PublishVersionRequest(input *PublishVersionInput) (req *request.Request, output *FunctionConfiguration) { op := &request.Operation{ Name: opPublishVersion, @@ -1683,9 +1714,8 @@ func (c *Lambda) PublishVersionRequest(input *PublishVersionInput) (req *request input = &PublishVersionInput{} } - req = c.newRequest(op, input, output) output = &FunctionConfiguration{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1705,22 +1735,21 @@ func (c *Lambda) PublishVersionRequest(input *PublishVersionInput) (req *request // API operation PublishVersion for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * CodeStorageExceededException +// * ErrCodeCodeStorageExceededException "CodeStorageExceededException" // You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) // func (c *Lambda) PublishVersion(input *PublishVersionInput) (*FunctionConfiguration, error) { @@ -1754,7 +1783,6 @@ const opRemovePermission = "RemovePermission" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *request.Request, output *RemovePermissionOutput) { op := &request.Operation{ Name: opRemovePermission, @@ -1766,11 +1794,10 @@ func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *req input = &RemovePermissionInput{} } + output = &RemovePermissionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RemovePermissionOutput{} - req.Data = output return } @@ -1780,8 +1807,8 @@ func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *req // with a Lambda function by providing a statement ID that you provided when // you added the permission. // -// If you are using versioning, the permissions you remove are specific to -// the Lambda function version or alias you specify in the AddPermission request +// If you are using versioning, the permissions you remove are specific to the +// Lambda function version or alias you specify in the AddPermission request // via the Qualifier parameter. For more information about versioning, see AWS // Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). // @@ -1798,20 +1825,19 @@ func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *req // API operation RemovePermission for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error) { req, out := c.RemovePermissionRequest(input) @@ -1844,7 +1870,6 @@ const opUpdateAlias = "UpdateAlias" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, output *AliasConfiguration) { op := &request.Operation{ Name: opUpdateAlias, @@ -1856,9 +1881,8 @@ func (c *Lambda) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Reque input = &UpdateAliasInput{} } - req = c.newRequest(op, input, output) output = &AliasConfiguration{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1878,20 +1902,19 @@ func (c *Lambda) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Reque // API operation UpdateAlias for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) UpdateAlias(input *UpdateAliasInput) (*AliasConfiguration, error) { req, out := c.UpdateAliasRequest(input) @@ -1924,7 +1947,6 @@ const opUpdateEventSourceMapping = "UpdateEventSourceMapping" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration) { op := &request.Operation{ Name: opUpdateEventSourceMapping, @@ -1936,9 +1958,8 @@ func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMapping input = &UpdateEventSourceMappingInput{} } - req = c.newRequest(op, input, output) output = &EventSourceMappingConfiguration{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1970,22 +1991,21 @@ func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMapping // API operation UpdateEventSourceMapping for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * ResourceConflictException +// * ErrCodeResourceConflictException "ResourceConflictException" // The resource already exists. // func (c *Lambda) UpdateEventSourceMapping(input *UpdateEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { @@ -2019,7 +2039,6 @@ const opUpdateFunctionCode = "UpdateFunctionCode" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) (req *request.Request, output *FunctionConfiguration) { op := &request.Operation{ Name: opUpdateFunctionCode, @@ -2031,9 +2050,8 @@ func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) (req input = &UpdateFunctionCodeInput{} } - req = c.newRequest(op, input, output) output = &FunctionConfiguration{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2057,22 +2075,21 @@ func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) (req // API operation UpdateFunctionCode for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // -// * CodeStorageExceededException +// * ErrCodeCodeStorageExceededException "CodeStorageExceededException" // You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) // func (c *Lambda) UpdateFunctionCode(input *UpdateFunctionCodeInput) (*FunctionConfiguration, error) { @@ -2106,7 +2123,6 @@ const opUpdateFunctionConfiguration = "UpdateFunctionConfiguration" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigurationInput) (req *request.Request, output *FunctionConfiguration) { op := &request.Operation{ Name: opUpdateFunctionConfiguration, @@ -2118,9 +2134,8 @@ func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigu input = &UpdateFunctionConfigurationInput{} } - req = c.newRequest(op, input, output) output = &FunctionConfiguration{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2146,20 +2161,19 @@ func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigu // API operation UpdateFunctionConfiguration for usage and error information. // // Returned Error Codes: -// * ServiceException +// * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * InvalidParameterValueException +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. // -// * TooManyRequestsException - +// * ErrCodeTooManyRequestsException "TooManyRequestsException" // func (c *Lambda) UpdateFunctionConfiguration(input *UpdateFunctionConfigurationInput) (*FunctionConfiguration, error) { req, out := c.UpdateFunctionConfigurationRequest(input) @@ -2167,6 +2181,99 @@ func (c *Lambda) UpdateFunctionConfiguration(input *UpdateFunctionConfigurationI return out, err } +// Provides limits of code size and concurrency associated with the current +// account and region. +type AccountLimit struct { + _ struct{} `type:"structure"` + + // Size, in bytes, of code/dependencies that you can zip into a deployment package + // (uncompressed zip/jar size) for uploading. The default limit is 250 MB. + CodeSizeUnzipped *int64 `type:"long"` + + // Size, in bytes, of a single zipped code/dependencies package you can upload + // for your Lambda function(.zip/.jar file). Try using Amazon S3 for uploading + // larger files. Default limit is 50 MB. + CodeSizeZipped *int64 `type:"long"` + + // Number of simultaneous executions of your function per region. For more information + // or to request a limit increase for concurrent executions, see Lambda Function + // Concurrent Executions (http://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html). + // The default limit is 100. + ConcurrentExecutions *int64 `type:"integer"` + + // Maximum size, in megabytes, of a code package you can upload per region. + // The default size is 75 GB. + TotalCodeSize *int64 `type:"long"` +} + +// String returns the string representation +func (s AccountLimit) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccountLimit) GoString() string { + return s.String() +} + +// SetCodeSizeUnzipped sets the CodeSizeUnzipped field's value. +func (s *AccountLimit) SetCodeSizeUnzipped(v int64) *AccountLimit { + s.CodeSizeUnzipped = &v + return s +} + +// SetCodeSizeZipped sets the CodeSizeZipped field's value. +func (s *AccountLimit) SetCodeSizeZipped(v int64) *AccountLimit { + s.CodeSizeZipped = &v + return s +} + +// SetConcurrentExecutions sets the ConcurrentExecutions field's value. +func (s *AccountLimit) SetConcurrentExecutions(v int64) *AccountLimit { + s.ConcurrentExecutions = &v + return s +} + +// SetTotalCodeSize sets the TotalCodeSize field's value. +func (s *AccountLimit) SetTotalCodeSize(v int64) *AccountLimit { + s.TotalCodeSize = &v + return s +} + +// Provides code size usage and function count associated with the current account +// and region. +type AccountUsage struct { + _ struct{} `type:"structure"` + + // The number of your account's existing functions per region. + FunctionCount *int64 `type:"long"` + + // Total size, in bytes, of the account's deployment packages per region. + TotalCodeSize *int64 `type:"long"` +} + +// String returns the string representation +func (s AccountUsage) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccountUsage) GoString() string { + return s.String() +} + +// SetFunctionCount sets the FunctionCount field's value. +func (s *AccountUsage) SetFunctionCount(v int64) *AccountUsage { + s.FunctionCount = &v + return s +} + +// SetTotalCodeSize sets the TotalCodeSize field's value. +func (s *AccountUsage) SetTotalCodeSize(v int64) *AccountUsage { + s.TotalCodeSize = &v + return s +} + type AddPermissionInput struct { _ struct{} `type:"structure"` @@ -2185,7 +2292,7 @@ type AddPermissionInput struct { // Name of the Lambda function whose resource policy you are updating by adding // a new permission. // - // You can specify a function name (for example, Thumbnail) or you can specify + // You can specify a function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // AWS Lambda also allows you to specify partial ARN (for example, account-id:Thumbnail). // Note that the length constraint applies only to the ARN. If you specify only @@ -2210,26 +2317,27 @@ type AddPermissionInput struct { // the qualifier, then permission applies only when request is made using qualified // function ARN: // - // arn:aws:lambda:aws-region:acct-id:function:function-name:2 + // arn:aws:lambda:aws-region:acct-id:function:function-name:2 // // If you specify an alias name, for example PROD, then the permission is valid // only for requests made using the alias ARN: // - // arn:aws:lambda:aws-region:acct-id:function:function-name:PROD + // arn:aws:lambda:aws-region:acct-id:function:function-name:PROD // // If the qualifier is not specified, the permission is valid only when requests // is made using unqualified function ARN. // - // arn:aws:lambda:aws-region:acct-id:function:function-name + // arn:aws:lambda:aws-region:acct-id:function:function-name Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` - // This parameter is used for S3 and SES only. The AWS account ID (without a - // hyphen) of the source owner. For example, if the SourceArn identifies a bucket, - // then this is the bucket owner's account ID. You can use this additional condition - // to ensure the bucket you specify is owned by a specific account (it is possible - // the bucket owner deleted the bucket and some other AWS account created the - // bucket). You can also use this condition to specify all sources (that is, - // you don't specify the SourceArn) owned by a specific account. + // This parameter is used for S3, SES, CloudWatch Logs and CloudWatch Rules + // only. The AWS account ID (without a hyphen) of the source owner. For example, + // if the SourceArn identifies a bucket, then this is the bucket owner's account + // ID. You can use this additional condition to ensure the bucket you specify + // is owned by a specific account (it is possible the bucket owner deleted the + // bucket and some other AWS account created the bucket). You can also use this + // condition to specify all sources (that is, you don't specify the SourceArn) + // owned by a specific account. SourceAccount *string `type:"string"` // This is optional; however, when granting Amazon S3 permission to invoke your @@ -2289,6 +2397,54 @@ func (s *AddPermissionInput) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *AddPermissionInput) SetAction(v string) *AddPermissionInput { + s.Action = &v + return s +} + +// SetEventSourceToken sets the EventSourceToken field's value. +func (s *AddPermissionInput) SetEventSourceToken(v string) *AddPermissionInput { + s.EventSourceToken = &v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *AddPermissionInput) SetFunctionName(v string) *AddPermissionInput { + s.FunctionName = &v + return s +} + +// SetPrincipal sets the Principal field's value. +func (s *AddPermissionInput) SetPrincipal(v string) *AddPermissionInput { + s.Principal = &v + return s +} + +// SetQualifier sets the Qualifier field's value. +func (s *AddPermissionInput) SetQualifier(v string) *AddPermissionInput { + s.Qualifier = &v + return s +} + +// SetSourceAccount sets the SourceAccount field's value. +func (s *AddPermissionInput) SetSourceAccount(v string) *AddPermissionInput { + s.SourceAccount = &v + return s +} + +// SetSourceArn sets the SourceArn field's value. +func (s *AddPermissionInput) SetSourceArn(v string) *AddPermissionInput { + s.SourceArn = &v + return s +} + +// SetStatementId sets the StatementId field's value. +func (s *AddPermissionInput) SetStatementId(v string) *AddPermissionInput { + s.StatementId = &v + return s +} + type AddPermissionOutput struct { _ struct{} `type:"structure"` @@ -2308,6 +2464,12 @@ func (s AddPermissionOutput) GoString() string { return s.String() } +// SetStatement sets the Statement field's value. +func (s *AddPermissionOutput) SetStatement(v string) *AddPermissionOutput { + s.Statement = &v + return s +} + // Provides configuration information about a Lambda function version alias. type AliasConfiguration struct { _ struct{} `type:"structure"` @@ -2337,6 +2499,30 @@ func (s AliasConfiguration) GoString() string { return s.String() } +// SetAliasArn sets the AliasArn field's value. +func (s *AliasConfiguration) SetAliasArn(v string) *AliasConfiguration { + s.AliasArn = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *AliasConfiguration) SetDescription(v string) *AliasConfiguration { + s.Description = &v + return s +} + +// SetFunctionVersion sets the FunctionVersion field's value. +func (s *AliasConfiguration) SetFunctionVersion(v string) *AliasConfiguration { + s.FunctionVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *AliasConfiguration) SetName(v string) *AliasConfiguration { + s.Name = &v + return s +} + type CreateAliasInput struct { _ struct{} `type:"structure"` @@ -2397,6 +2583,30 @@ func (s *CreateAliasInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateAliasInput) SetDescription(v string) *CreateAliasInput { + s.Description = &v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *CreateAliasInput) SetFunctionName(v string) *CreateAliasInput { + s.FunctionName = &v + return s +} + +// SetFunctionVersion sets the FunctionVersion field's value. +func (s *CreateAliasInput) SetFunctionVersion(v string) *CreateAliasInput { + s.FunctionVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateAliasInput) SetName(v string) *CreateAliasInput { + s.Name = &v + return s +} + type CreateEventSourceMappingInput struct { _ struct{} `type:"structure"` @@ -2420,29 +2630,37 @@ type CreateEventSourceMappingInput struct { // The Lambda function to invoke when AWS Lambda detects an event on the stream. // - // You can specify the function name (for example, Thumbnail) or you can specify + // You can specify the function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // - // If you are using versioning, you can also provide a qualified function - // ARN (ARN that is qualified with function version or alias name as suffix). - // For more information about versioning, see AWS Lambda Function Versioning - // and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html) + // If you are using versioning, you can also provide a qualified function ARN + // (ARN that is qualified with function version or alias name as suffix). For + // more information about versioning, see AWS Lambda Function Versioning and + // Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html) // // AWS Lambda also allows you to specify only the function name with the account // ID qualifier (for example, account-id:Thumbnail). // - // Note that the length constraint applies only to the ARN. If you specify - // only the function name, it is limited to 64 character in length. + // Note that the length constraint applies only to the ARN. If you specify only + // the function name, it is limited to 64 character in length. // // FunctionName is a required field FunctionName *string `min:"1" type:"string" required:"true"` - // The position in the stream where AWS Lambda should start reading. For more - // information, go to ShardIteratorType (http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType) + // The position in the stream where AWS Lambda should start reading. Valid only + // for Kinesis streams. For more information, see ShardIteratorType (http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType) // in the Amazon Kinesis API Reference. // // StartingPosition is a required field StartingPosition *string `type:"string" required:"true" enum:"EventSourcePosition"` + + // The timestamp of the data record from which to start reading. Used with shard + // iterator type (http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType) + // AT_TIMESTAMP. If a record with this exact timestamp does not exist, the iterator + // returned is for the next (later) record. If the timestamp is older than the + // current trim horizon, the iterator returned is for the oldest untrimmed data + // record (TRIM_HORIZON). Valid only for Kinesis streams. + StartingPositionTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` } // String returns the string representation @@ -2480,6 +2698,42 @@ func (s *CreateEventSourceMappingInput) Validate() error { return nil } +// SetBatchSize sets the BatchSize field's value. +func (s *CreateEventSourceMappingInput) SetBatchSize(v int64) *CreateEventSourceMappingInput { + s.BatchSize = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *CreateEventSourceMappingInput) SetEnabled(v bool) *CreateEventSourceMappingInput { + s.Enabled = &v + return s +} + +// SetEventSourceArn sets the EventSourceArn field's value. +func (s *CreateEventSourceMappingInput) SetEventSourceArn(v string) *CreateEventSourceMappingInput { + s.EventSourceArn = &v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *CreateEventSourceMappingInput) SetFunctionName(v string) *CreateEventSourceMappingInput { + s.FunctionName = &v + return s +} + +// SetStartingPosition sets the StartingPosition field's value. +func (s *CreateEventSourceMappingInput) SetStartingPosition(v string) *CreateEventSourceMappingInput { + s.StartingPosition = &v + return s +} + +// SetStartingPositionTimestamp sets the StartingPositionTimestamp field's value. +func (s *CreateEventSourceMappingInput) SetStartingPositionTimestamp(v time.Time) *CreateEventSourceMappingInput { + s.StartingPositionTimestamp = &v + return s +} + type CreateFunctionInput struct { _ struct{} `type:"structure"` @@ -2488,13 +2742,21 @@ type CreateFunctionInput struct { // Code is a required field Code *FunctionCode `type:"structure" required:"true"` + // The parent object that contains the target Amazon Resource Name (ARN) of + // an Amazon SQS queue or Amazon SNS topic. + DeadLetterConfig *DeadLetterConfig `type:"structure"` + // A short, user-defined function description. Lambda does not use this value. // Assign a meaningful description as you see fit. Description *string `type:"string"` + // The parent object that contains your environment's configuration settings. + Environment *Environment `type:"structure"` + // The name you want to assign to the function you are uploading. The function // names appear in the console and are returned in the ListFunctions API. Function - // names are used to specify functions to other AWS Lambda APIs, such as Invoke. + // names are used to specify functions to other AWS Lambda API operations, such + // as Invoke. // // FunctionName is a required field FunctionName *string `min:"1" type:"string" required:"true"` @@ -2507,6 +2769,11 @@ type CreateFunctionInput struct { // Handler is a required field Handler *string `type:"string" required:"true"` + // The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's + // environment variables. If not provided, AWS Lambda will use a default service + // key. + KMSKeyArn *string `type:"string"` + // The amount of memory, in MB, your Lambda function is given. Lambda uses this // memory size to infer the amount of CPU and memory allocated to your function. // Your function use-case determines your CPU and memory requirements. For example, @@ -2531,6 +2798,11 @@ type CreateFunctionInput struct { // To use the Node.js runtime v4.3, set the value to "nodejs4.3". To use earlier // runtime (v0.10.42), set the value to "nodejs". // + // You can no longer create functions using the v0.10.42 runtime version as + // of November, 2016. Existing functions will be supported until early 2017, + // but we recommend you migrate them to nodejs4.3 runtime version as soon as + // possible. + // // Runtime is a required field Runtime *string `type:"string" required:"true" enum:"Runtime"` @@ -2595,17 +2867,121 @@ func (s *CreateFunctionInput) Validate() error { return nil } -type DeleteAliasInput struct { - _ struct{} `type:"structure"` +// SetCode sets the Code field's value. +func (s *CreateFunctionInput) SetCode(v *FunctionCode) *CreateFunctionInput { + s.Code = v + return s +} - // The Lambda function name for which the alias is created. Deleting an alias - // does not delete the function version to which it is pointing. - // - // FunctionName is a required field - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` +// SetDeadLetterConfig sets the DeadLetterConfig field's value. +func (s *CreateFunctionInput) SetDeadLetterConfig(v *DeadLetterConfig) *CreateFunctionInput { + s.DeadLetterConfig = v + return s +} - // Name of the alias to delete. - // +// SetDescription sets the Description field's value. +func (s *CreateFunctionInput) SetDescription(v string) *CreateFunctionInput { + s.Description = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *CreateFunctionInput) SetEnvironment(v *Environment) *CreateFunctionInput { + s.Environment = v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *CreateFunctionInput) SetFunctionName(v string) *CreateFunctionInput { + s.FunctionName = &v + return s +} + +// SetHandler sets the Handler field's value. +func (s *CreateFunctionInput) SetHandler(v string) *CreateFunctionInput { + s.Handler = &v + return s +} + +// SetKMSKeyArn sets the KMSKeyArn field's value. +func (s *CreateFunctionInput) SetKMSKeyArn(v string) *CreateFunctionInput { + s.KMSKeyArn = &v + return s +} + +// SetMemorySize sets the MemorySize field's value. +func (s *CreateFunctionInput) SetMemorySize(v int64) *CreateFunctionInput { + s.MemorySize = &v + return s +} + +// SetPublish sets the Publish field's value. +func (s *CreateFunctionInput) SetPublish(v bool) *CreateFunctionInput { + s.Publish = &v + return s +} + +// SetRole sets the Role field's value. +func (s *CreateFunctionInput) SetRole(v string) *CreateFunctionInput { + s.Role = &v + return s +} + +// SetRuntime sets the Runtime field's value. +func (s *CreateFunctionInput) SetRuntime(v string) *CreateFunctionInput { + s.Runtime = &v + return s +} + +// SetTimeout sets the Timeout field's value. +func (s *CreateFunctionInput) SetTimeout(v int64) *CreateFunctionInput { + s.Timeout = &v + return s +} + +// SetVpcConfig sets the VpcConfig field's value. +func (s *CreateFunctionInput) SetVpcConfig(v *VpcConfig) *CreateFunctionInput { + s.VpcConfig = v + return s +} + +// The parent object that contains the target Amazon Resource Name (ARN) of +// an Amazon SQS queue or Amazon SNS topic. +type DeadLetterConfig struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic + // you specify as your Dead Letter Queue (DLQ). + TargetArn *string `type:"string"` +} + +// String returns the string representation +func (s DeadLetterConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeadLetterConfig) GoString() string { + return s.String() +} + +// SetTargetArn sets the TargetArn field's value. +func (s *DeadLetterConfig) SetTargetArn(v string) *DeadLetterConfig { + s.TargetArn = &v + return s +} + +type DeleteAliasInput struct { + _ struct{} `type:"structure"` + + // The Lambda function name for which the alias is created. Deleting an alias + // does not delete the function version to which it is pointing. + // + // FunctionName is a required field + FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` + + // Name of the alias to delete. + // // Name is a required field Name *string `location:"uri" locationName:"Name" min:"1" type:"string" required:"true"` } @@ -2642,6 +3018,18 @@ func (s *DeleteAliasInput) Validate() error { return nil } +// SetFunctionName sets the FunctionName field's value. +func (s *DeleteAliasInput) SetFunctionName(v string) *DeleteAliasInput { + s.FunctionName = &v + return s +} + +// SetName sets the Name field's value. +func (s *DeleteAliasInput) SetName(v string) *DeleteAliasInput { + s.Name = &v + return s +} + type DeleteAliasOutput struct { _ struct{} `type:"structure"` } @@ -2688,12 +3076,18 @@ func (s *DeleteEventSourceMappingInput) Validate() error { return nil } +// SetUUID sets the UUID field's value. +func (s *DeleteEventSourceMappingInput) SetUUID(v string) *DeleteEventSourceMappingInput { + s.UUID = &v + return s +} + type DeleteFunctionInput struct { _ struct{} `type:"structure"` // The Lambda function to delete. // - // You can specify the function name (for example, Thumbnail) or you can specify + // You can specify the function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // If you are using versioning, you can also provide a qualified function ARN // (ARN that is qualified with function version or alias name as suffix). AWS @@ -2750,6 +3144,18 @@ func (s *DeleteFunctionInput) Validate() error { return nil } +// SetFunctionName sets the FunctionName field's value. +func (s *DeleteFunctionInput) SetFunctionName(v string) *DeleteFunctionInput { + s.FunctionName = &v + return s +} + +// SetQualifier sets the Qualifier field's value. +func (s *DeleteFunctionInput) SetQualifier(v string) *DeleteFunctionInput { + s.Qualifier = &v + return s +} + type DeleteFunctionOutput struct { _ struct{} `type:"structure"` } @@ -2764,6 +3170,101 @@ func (s DeleteFunctionOutput) GoString() string { return s.String() } +// The parent object that contains your environment's configuration settings. +type Environment struct { + _ struct{} `type:"structure"` + + // The key-value pairs that represent your environment's configuration settings. + // The value you specify cannot contain a ",". + Variables map[string]*string `type:"map"` +} + +// String returns the string representation +func (s Environment) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Environment) GoString() string { + return s.String() +} + +// SetVariables sets the Variables field's value. +func (s *Environment) SetVariables(v map[string]*string) *Environment { + s.Variables = v + return s +} + +// The parent object that contains error information associated with your configuration +// settings. +type EnvironmentError struct { + _ struct{} `type:"structure"` + + // The error code returned by the environment error object. + ErrorCode *string `type:"string"` + + // The message returned by the environment error object. + Message *string `type:"string"` +} + +// String returns the string representation +func (s EnvironmentError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnvironmentError) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *EnvironmentError) SetErrorCode(v string) *EnvironmentError { + s.ErrorCode = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *EnvironmentError) SetMessage(v string) *EnvironmentError { + s.Message = &v + return s +} + +// The parent object returned that contains your environment's configuration +// settings or any error information associated with your configuration settings. +type EnvironmentResponse struct { + _ struct{} `type:"structure"` + + // The parent object that contains error information associated with your configuration + // settings. + Error *EnvironmentError `type:"structure"` + + // The key-value pairs returned that represent your environment's configuration + // settings or error information. + Variables map[string]*string `type:"map"` +} + +// String returns the string representation +func (s EnvironmentResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnvironmentResponse) GoString() string { + return s.String() +} + +// SetError sets the Error field's value. +func (s *EnvironmentResponse) SetError(v *EnvironmentError) *EnvironmentResponse { + s.Error = v + return s +} + +// SetVariables sets the Variables field's value. +func (s *EnvironmentResponse) SetVariables(v map[string]*string) *EnvironmentResponse { + s.Variables = v + return s +} + // Describes mapping between an Amazon Kinesis stream and a Lambda function. type EventSourceMappingConfiguration struct { _ struct{} `type:"structure"` @@ -2808,6 +3309,54 @@ func (s EventSourceMappingConfiguration) GoString() string { return s.String() } +// SetBatchSize sets the BatchSize field's value. +func (s *EventSourceMappingConfiguration) SetBatchSize(v int64) *EventSourceMappingConfiguration { + s.BatchSize = &v + return s +} + +// SetEventSourceArn sets the EventSourceArn field's value. +func (s *EventSourceMappingConfiguration) SetEventSourceArn(v string) *EventSourceMappingConfiguration { + s.EventSourceArn = &v + return s +} + +// SetFunctionArn sets the FunctionArn field's value. +func (s *EventSourceMappingConfiguration) SetFunctionArn(v string) *EventSourceMappingConfiguration { + s.FunctionArn = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *EventSourceMappingConfiguration) SetLastModified(v time.Time) *EventSourceMappingConfiguration { + s.LastModified = &v + return s +} + +// SetLastProcessingResult sets the LastProcessingResult field's value. +func (s *EventSourceMappingConfiguration) SetLastProcessingResult(v string) *EventSourceMappingConfiguration { + s.LastProcessingResult = &v + return s +} + +// SetState sets the State field's value. +func (s *EventSourceMappingConfiguration) SetState(v string) *EventSourceMappingConfiguration { + s.State = &v + return s +} + +// SetStateTransitionReason sets the StateTransitionReason field's value. +func (s *EventSourceMappingConfiguration) SetStateTransitionReason(v string) *EventSourceMappingConfiguration { + s.StateTransitionReason = &v + return s +} + +// SetUUID sets the UUID field's value. +func (s *EventSourceMappingConfiguration) SetUUID(v string) *EventSourceMappingConfiguration { + s.UUID = &v + return s +} + // The code for the Lambda function. type FunctionCode struct { _ struct{} `type:"structure"` @@ -2826,8 +3375,8 @@ type FunctionCode struct { // The contents of your zip file containing your deployment package. If you // are using the web API directly, the contents of the zip file must be base64-encoded. // If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the - // encoding for you. For more information about creating a .zip file, go to - // Execution Permissions (http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html) + // encoding for you. For more information about creating a .zip file, see Execution + // Permissions (http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html) // in the AWS Lambda Developer Guide. // // ZipFile is automatically base64 encoded/decoded by the SDK. @@ -2863,6 +3412,30 @@ func (s *FunctionCode) Validate() error { return nil } +// SetS3Bucket sets the S3Bucket field's value. +func (s *FunctionCode) SetS3Bucket(v string) *FunctionCode { + s.S3Bucket = &v + return s +} + +// SetS3Key sets the S3Key field's value. +func (s *FunctionCode) SetS3Key(v string) *FunctionCode { + s.S3Key = &v + return s +} + +// SetS3ObjectVersion sets the S3ObjectVersion field's value. +func (s *FunctionCode) SetS3ObjectVersion(v string) *FunctionCode { + s.S3ObjectVersion = &v + return s +} + +// SetZipFile sets the ZipFile field's value. +func (s *FunctionCode) SetZipFile(v []byte) *FunctionCode { + s.ZipFile = v + return s +} + // The object for the Lambda function location. type FunctionCodeLocation struct { _ struct{} `type:"structure"` @@ -2885,6 +3458,18 @@ func (s FunctionCodeLocation) GoString() string { return s.String() } +// SetLocation sets the Location field's value. +func (s *FunctionCodeLocation) SetLocation(v string) *FunctionCodeLocation { + s.Location = &v + return s +} + +// SetRepositoryType sets the RepositoryType field's value. +func (s *FunctionCodeLocation) SetRepositoryType(v string) *FunctionCodeLocation { + s.RepositoryType = &v + return s +} + // A complex type that describes function metadata. type FunctionConfiguration struct { _ struct{} `type:"structure"` @@ -2895,9 +3480,16 @@ type FunctionConfiguration struct { // The size, in bytes, of the function .zip file you uploaded. CodeSize *int64 `type:"long"` + // The parent object that contains the target Amazon Resource Name (ARN) of + // an Amazon SQS queue or Amazon SNS topic. + DeadLetterConfig *DeadLetterConfig `type:"structure"` + // The user-provided description. Description *string `type:"string"` + // The parent object that contains your environment's configuration settings. + Environment *EnvironmentResponse `type:"structure"` + // The Amazon Resource Name (ARN) assigned to the function. FunctionArn *string `type:"string"` @@ -2907,6 +3499,11 @@ type FunctionConfiguration struct { // The function Lambda calls to begin executing your function. Handler *string `type:"string"` + // The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's + // environment variables. If empty, it means you are using the AWS Lambda default + // service key. + KMSKeyArn *string `type:"string"` + // The time stamp of the last time you updated the function. LastModified *string `type:"string"` @@ -2946,6 +3543,150 @@ func (s FunctionConfiguration) GoString() string { return s.String() } +// SetCodeSha256 sets the CodeSha256 field's value. +func (s *FunctionConfiguration) SetCodeSha256(v string) *FunctionConfiguration { + s.CodeSha256 = &v + return s +} + +// SetCodeSize sets the CodeSize field's value. +func (s *FunctionConfiguration) SetCodeSize(v int64) *FunctionConfiguration { + s.CodeSize = &v + return s +} + +// SetDeadLetterConfig sets the DeadLetterConfig field's value. +func (s *FunctionConfiguration) SetDeadLetterConfig(v *DeadLetterConfig) *FunctionConfiguration { + s.DeadLetterConfig = v + return s +} + +// SetDescription sets the Description field's value. +func (s *FunctionConfiguration) SetDescription(v string) *FunctionConfiguration { + s.Description = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *FunctionConfiguration) SetEnvironment(v *EnvironmentResponse) *FunctionConfiguration { + s.Environment = v + return s +} + +// SetFunctionArn sets the FunctionArn field's value. +func (s *FunctionConfiguration) SetFunctionArn(v string) *FunctionConfiguration { + s.FunctionArn = &v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *FunctionConfiguration) SetFunctionName(v string) *FunctionConfiguration { + s.FunctionName = &v + return s +} + +// SetHandler sets the Handler field's value. +func (s *FunctionConfiguration) SetHandler(v string) *FunctionConfiguration { + s.Handler = &v + return s +} + +// SetKMSKeyArn sets the KMSKeyArn field's value. +func (s *FunctionConfiguration) SetKMSKeyArn(v string) *FunctionConfiguration { + s.KMSKeyArn = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *FunctionConfiguration) SetLastModified(v string) *FunctionConfiguration { + s.LastModified = &v + return s +} + +// SetMemorySize sets the MemorySize field's value. +func (s *FunctionConfiguration) SetMemorySize(v int64) *FunctionConfiguration { + s.MemorySize = &v + return s +} + +// SetRole sets the Role field's value. +func (s *FunctionConfiguration) SetRole(v string) *FunctionConfiguration { + s.Role = &v + return s +} + +// SetRuntime sets the Runtime field's value. +func (s *FunctionConfiguration) SetRuntime(v string) *FunctionConfiguration { + s.Runtime = &v + return s +} + +// SetTimeout sets the Timeout field's value. +func (s *FunctionConfiguration) SetTimeout(v int64) *FunctionConfiguration { + s.Timeout = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *FunctionConfiguration) SetVersion(v string) *FunctionConfiguration { + s.Version = &v + return s +} + +// SetVpcConfig sets the VpcConfig field's value. +func (s *FunctionConfiguration) SetVpcConfig(v *VpcConfigResponse) *FunctionConfiguration { + s.VpcConfig = v + return s +} + +type GetAccountSettingsInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s GetAccountSettingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAccountSettingsInput) GoString() string { + return s.String() +} + +type GetAccountSettingsOutput struct { + _ struct{} `type:"structure"` + + // Provides limits of code size and concurrency associated with the current + // account and region. + AccountLimit *AccountLimit `type:"structure"` + + // Provides code size usage and function count associated with the current account + // and region. + AccountUsage *AccountUsage `type:"structure"` +} + +// String returns the string representation +func (s GetAccountSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAccountSettingsOutput) GoString() string { + return s.String() +} + +// SetAccountLimit sets the AccountLimit field's value. +func (s *GetAccountSettingsOutput) SetAccountLimit(v *AccountLimit) *GetAccountSettingsOutput { + s.AccountLimit = v + return s +} + +// SetAccountUsage sets the AccountUsage field's value. +func (s *GetAccountSettingsOutput) SetAccountUsage(v *AccountUsage) *GetAccountSettingsOutput { + s.AccountUsage = v + return s +} + type GetAliasInput struct { _ struct{} `type:"structure"` @@ -2994,6 +3735,18 @@ func (s *GetAliasInput) Validate() error { return nil } +// SetFunctionName sets the FunctionName field's value. +func (s *GetAliasInput) SetFunctionName(v string) *GetAliasInput { + s.FunctionName = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetAliasInput) SetName(v string) *GetAliasInput { + s.Name = &v + return s +} + type GetEventSourceMappingInput struct { _ struct{} `type:"structure"` @@ -3026,13 +3779,19 @@ func (s *GetEventSourceMappingInput) Validate() error { return nil } +// SetUUID sets the UUID field's value. +func (s *GetEventSourceMappingInput) SetUUID(v string) *GetEventSourceMappingInput { + s.UUID = &v + return s +} + type GetFunctionConfigurationInput struct { _ struct{} `type:"structure"` // The name of the Lambda function for which you want to retrieve the configuration // information. // - // You can specify a function name (for example, Thumbnail) or you can specify + // You can specify a function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). // Note that the length constraint applies only to the ARN. If you specify only @@ -3081,12 +3840,24 @@ func (s *GetFunctionConfigurationInput) Validate() error { return nil } +// SetFunctionName sets the FunctionName field's value. +func (s *GetFunctionConfigurationInput) SetFunctionName(v string) *GetFunctionConfigurationInput { + s.FunctionName = &v + return s +} + +// SetQualifier sets the Qualifier field's value. +func (s *GetFunctionConfigurationInput) SetQualifier(v string) *GetFunctionConfigurationInput { + s.Qualifier = &v + return s +} + type GetFunctionInput struct { _ struct{} `type:"structure"` // The Lambda function name. // - // You can specify a function name (for example, Thumbnail) or you can specify + // You can specify a function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). // Note that the length constraint applies only to the ARN. If you specify only @@ -3134,7 +3905,19 @@ func (s *GetFunctionInput) Validate() error { return nil } -// This response contains the object for the Lambda function location (see . +// SetFunctionName sets the FunctionName field's value. +func (s *GetFunctionInput) SetFunctionName(v string) *GetFunctionInput { + s.FunctionName = &v + return s +} + +// SetQualifier sets the Qualifier field's value. +func (s *GetFunctionInput) SetQualifier(v string) *GetFunctionInput { + s.Qualifier = &v + return s +} + +// This response contains the object for the Lambda function location (see FunctionCodeLocation. type GetFunctionOutput struct { _ struct{} `type:"structure"` @@ -3155,12 +3938,24 @@ func (s GetFunctionOutput) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *GetFunctionOutput) SetCode(v *FunctionCodeLocation) *GetFunctionOutput { + s.Code = v + return s +} + +// SetConfiguration sets the Configuration field's value. +func (s *GetFunctionOutput) SetConfiguration(v *FunctionConfiguration) *GetFunctionOutput { + s.Configuration = v + return s +} + type GetPolicyInput struct { _ struct{} `type:"structure"` // Function name whose resource policy you want to retrieve. // - // You can specify the function name (for example, Thumbnail) or you can specify + // You can specify the function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // If you are using versioning, you can also provide a qualified function ARN // (ARN that is qualified with function version or alias name as suffix). AWS @@ -3208,6 +4003,18 @@ func (s *GetPolicyInput) Validate() error { return nil } +// SetFunctionName sets the FunctionName field's value. +func (s *GetPolicyInput) SetFunctionName(v string) *GetPolicyInput { + s.FunctionName = &v + return s +} + +// SetQualifier sets the Qualifier field's value. +func (s *GetPolicyInput) SetQualifier(v string) *GetPolicyInput { + s.Qualifier = &v + return s +} + type GetPolicyOutput struct { _ struct{} `type:"structure"` @@ -3227,6 +4034,12 @@ func (s GetPolicyOutput) GoString() string { return s.String() } +// SetPolicy sets the Policy field's value. +func (s *GetPolicyOutput) SetPolicy(v string) *GetPolicyOutput { + s.Policy = &v + return s +} + type InvokeAsyncInput struct { _ struct{} `deprecated:"true" type:"structure" payload:"InvokeArgs"` @@ -3270,6 +4083,18 @@ func (s *InvokeAsyncInput) Validate() error { return nil } +// SetFunctionName sets the FunctionName field's value. +func (s *InvokeAsyncInput) SetFunctionName(v string) *InvokeAsyncInput { + s.FunctionName = &v + return s +} + +// SetInvokeArgs sets the InvokeArgs field's value. +func (s *InvokeAsyncInput) SetInvokeArgs(v io.ReadSeeker) *InvokeAsyncInput { + s.InvokeArgs = v + return s +} + // Upon success, it returns empty response. Otherwise, throws an exception. type InvokeAsyncOutput struct { _ struct{} `deprecated:"true" type:"structure"` @@ -3288,6 +4113,12 @@ func (s InvokeAsyncOutput) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *InvokeAsyncOutput) SetStatus(v int64) *InvokeAsyncOutput { + s.Status = &v + return s +} + type InvokeInput struct { _ struct{} `type:"structure" payload:"Payload"` @@ -3302,7 +4133,7 @@ type InvokeInput struct { // The Lambda function name. // - // You can specify a function name (for example, Thumbnail) or you can specify + // You can specify a function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). // Note that the length constraint applies only to the ARN. If you specify only @@ -3369,6 +4200,42 @@ func (s *InvokeInput) Validate() error { return nil } +// SetClientContext sets the ClientContext field's value. +func (s *InvokeInput) SetClientContext(v string) *InvokeInput { + s.ClientContext = &v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *InvokeInput) SetFunctionName(v string) *InvokeInput { + s.FunctionName = &v + return s +} + +// SetInvocationType sets the InvocationType field's value. +func (s *InvokeInput) SetInvocationType(v string) *InvokeInput { + s.InvocationType = &v + return s +} + +// SetLogType sets the LogType field's value. +func (s *InvokeInput) SetLogType(v string) *InvokeInput { + s.LogType = &v + return s +} + +// SetPayload sets the Payload field's value. +func (s *InvokeInput) SetPayload(v []byte) *InvokeInput { + s.Payload = v + return s +} + +// SetQualifier sets the Qualifier field's value. +func (s *InvokeInput) SetQualifier(v string) *InvokeInput { + s.Qualifier = &v + return s +} + // Upon success, returns an empty response. Otherwise, throws an exception. type InvokeOutput struct { _ struct{} `type:"structure" payload:"Payload"` @@ -3387,7 +4254,7 @@ type InvokeOutput struct { LogResult *string `location:"header" locationName:"X-Amz-Log-Result" type:"string"` // It is the JSON representation of the object returned by the Lambda function. - // In This is present only if the invocation type is RequestResponse. + // This is present only if the invocation type is RequestResponse. // // In the event of a function error this field contains a message describing // the error. For the Handled errors the Lambda function will report this message. @@ -3411,6 +4278,30 @@ func (s InvokeOutput) GoString() string { return s.String() } +// SetFunctionError sets the FunctionError field's value. +func (s *InvokeOutput) SetFunctionError(v string) *InvokeOutput { + s.FunctionError = &v + return s +} + +// SetLogResult sets the LogResult field's value. +func (s *InvokeOutput) SetLogResult(v string) *InvokeOutput { + s.LogResult = &v + return s +} + +// SetPayload sets the Payload field's value. +func (s *InvokeOutput) SetPayload(v []byte) *InvokeOutput { + s.Payload = v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *InvokeOutput) SetStatusCode(v int64) *InvokeOutput { + s.StatusCode = &v + return s +} + type ListAliasesInput struct { _ struct{} `type:"structure"` @@ -3465,6 +4356,30 @@ func (s *ListAliasesInput) Validate() error { return nil } +// SetFunctionName sets the FunctionName field's value. +func (s *ListAliasesInput) SetFunctionName(v string) *ListAliasesInput { + s.FunctionName = &v + return s +} + +// SetFunctionVersion sets the FunctionVersion field's value. +func (s *ListAliasesInput) SetFunctionVersion(v string) *ListAliasesInput { + s.FunctionVersion = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListAliasesInput) SetMarker(v string) *ListAliasesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListAliasesInput) SetMaxItems(v int64) *ListAliasesInput { + s.MaxItems = &v + return s +} + type ListAliasesOutput struct { _ struct{} `type:"structure"` @@ -3485,6 +4400,18 @@ func (s ListAliasesOutput) GoString() string { return s.String() } +// SetAliases sets the Aliases field's value. +func (s *ListAliasesOutput) SetAliases(v []*AliasConfiguration) *ListAliasesOutput { + s.Aliases = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListAliasesOutput) SetNextMarker(v string) *ListAliasesOutput { + s.NextMarker = &v + return s +} + type ListEventSourceMappingsInput struct { _ struct{} `type:"structure"` @@ -3494,7 +4421,7 @@ type ListEventSourceMappingsInput struct { // The name of the Lambda function. // - // You can specify the function name (for example, Thumbnail) or you can specify + // You can specify the function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // If you are using versioning, you can also provide a qualified function ARN // (ARN that is qualified with function version or alias name as suffix). AWS @@ -3540,7 +4467,31 @@ func (s *ListEventSourceMappingsInput) Validate() error { return nil } -// Contains a list of event sources (see ) +// SetEventSourceArn sets the EventSourceArn field's value. +func (s *ListEventSourceMappingsInput) SetEventSourceArn(v string) *ListEventSourceMappingsInput { + s.EventSourceArn = &v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *ListEventSourceMappingsInput) SetFunctionName(v string) *ListEventSourceMappingsInput { + s.FunctionName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListEventSourceMappingsInput) SetMarker(v string) *ListEventSourceMappingsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListEventSourceMappingsInput) SetMaxItems(v int64) *ListEventSourceMappingsInput { + s.MaxItems = &v + return s +} + +// Contains a list of event sources (see EventSourceMappingConfiguration) type ListEventSourceMappingsOutput struct { _ struct{} `type:"structure"` @@ -3561,6 +4512,18 @@ func (s ListEventSourceMappingsOutput) GoString() string { return s.String() } +// SetEventSourceMappings sets the EventSourceMappings field's value. +func (s *ListEventSourceMappingsOutput) SetEventSourceMappings(v []*EventSourceMappingConfiguration) *ListEventSourceMappingsOutput { + s.EventSourceMappings = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListEventSourceMappingsOutput) SetNextMarker(v string) *ListEventSourceMappingsOutput { + s.NextMarker = &v + return s +} + type ListFunctionsInput struct { _ struct{} `type:"structure"` @@ -3596,6 +4559,18 @@ func (s *ListFunctionsInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *ListFunctionsInput) SetMarker(v string) *ListFunctionsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListFunctionsInput) SetMaxItems(v int64) *ListFunctionsInput { + s.MaxItems = &v + return s +} + // Contains a list of AWS Lambda function configurations (see FunctionConfiguration. type ListFunctionsOutput struct { _ struct{} `type:"structure"` @@ -3617,6 +4592,18 @@ func (s ListFunctionsOutput) GoString() string { return s.String() } +// SetFunctions sets the Functions field's value. +func (s *ListFunctionsOutput) SetFunctions(v []*FunctionConfiguration) *ListFunctionsOutput { + s.Functions = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListFunctionsOutput) SetNextMarker(v string) *ListFunctionsOutput { + s.NextMarker = &v + return s +} + type ListVersionsByFunctionInput struct { _ struct{} `type:"structure"` @@ -3668,6 +4655,24 @@ func (s *ListVersionsByFunctionInput) Validate() error { return nil } +// SetFunctionName sets the FunctionName field's value. +func (s *ListVersionsByFunctionInput) SetFunctionName(v string) *ListVersionsByFunctionInput { + s.FunctionName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListVersionsByFunctionInput) SetMarker(v string) *ListVersionsByFunctionInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListVersionsByFunctionInput) SetMaxItems(v int64) *ListVersionsByFunctionInput { + s.MaxItems = &v + return s +} + type ListVersionsByFunctionOutput struct { _ struct{} `type:"structure"` @@ -3688,6 +4693,18 @@ func (s ListVersionsByFunctionOutput) GoString() string { return s.String() } +// SetNextMarker sets the NextMarker field's value. +func (s *ListVersionsByFunctionOutput) SetNextMarker(v string) *ListVersionsByFunctionOutput { + s.NextMarker = &v + return s +} + +// SetVersions sets the Versions field's value. +func (s *ListVersionsByFunctionOutput) SetVersions(v []*FunctionConfiguration) *ListVersionsByFunctionOutput { + s.Versions = v + return s +} + type PublishVersionInput struct { _ struct{} `type:"structure"` @@ -3738,12 +4755,30 @@ func (s *PublishVersionInput) Validate() error { return nil } +// SetCodeSha256 sets the CodeSha256 field's value. +func (s *PublishVersionInput) SetCodeSha256(v string) *PublishVersionInput { + s.CodeSha256 = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *PublishVersionInput) SetDescription(v string) *PublishVersionInput { + s.Description = &v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *PublishVersionInput) SetFunctionName(v string) *PublishVersionInput { + s.FunctionName = &v + return s +} + type RemovePermissionInput struct { _ struct{} `type:"structure"` // Lambda function whose resource policy you want to remove a permission from. // - // You can specify a function name (for example, Thumbnail) or you can specify + // You can specify a function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). // Note that the length constraint applies only to the ARN. If you specify only @@ -3799,6 +4834,24 @@ func (s *RemovePermissionInput) Validate() error { return nil } +// SetFunctionName sets the FunctionName field's value. +func (s *RemovePermissionInput) SetFunctionName(v string) *RemovePermissionInput { + s.FunctionName = &v + return s +} + +// SetQualifier sets the Qualifier field's value. +func (s *RemovePermissionInput) SetQualifier(v string) *RemovePermissionInput { + s.Qualifier = &v + return s +} + +// SetStatementId sets the StatementId field's value. +func (s *RemovePermissionInput) SetStatementId(v string) *RemovePermissionInput { + s.StatementId = &v + return s +} + type RemovePermissionOutput struct { _ struct{} `type:"structure"` } @@ -3869,6 +4922,30 @@ func (s *UpdateAliasInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *UpdateAliasInput) SetDescription(v string) *UpdateAliasInput { + s.Description = &v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *UpdateAliasInput) SetFunctionName(v string) *UpdateAliasInput { + s.FunctionName = &v + return s +} + +// SetFunctionVersion sets the FunctionVersion field's value. +func (s *UpdateAliasInput) SetFunctionVersion(v string) *UpdateAliasInput { + s.FunctionVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateAliasInput) SetName(v string) *UpdateAliasInput { + s.Name = &v + return s +} + type UpdateEventSourceMappingInput struct { _ struct{} `type:"structure"` @@ -3882,7 +4959,7 @@ type UpdateEventSourceMappingInput struct { // The Lambda function to which you want the stream records sent. // - // You can specify a function name (for example, Thumbnail) or you can specify + // You can specify a function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). // @@ -3891,8 +4968,8 @@ type UpdateEventSourceMappingInput struct { // more information about versioning, see AWS Lambda Function Versioning and // Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html) // - // Note that the length constraint applies only to the ARN. If you specify - // only the function name, it is limited to 64 character in length. + // Note that the length constraint applies only to the ARN. If you specify only + // the function name, it is limited to 64 character in length. FunctionName *string `min:"1" type:"string"` // The event source mapping identifier. @@ -3930,12 +5007,36 @@ func (s *UpdateEventSourceMappingInput) Validate() error { return nil } +// SetBatchSize sets the BatchSize field's value. +func (s *UpdateEventSourceMappingInput) SetBatchSize(v int64) *UpdateEventSourceMappingInput { + s.BatchSize = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *UpdateEventSourceMappingInput) SetEnabled(v bool) *UpdateEventSourceMappingInput { + s.Enabled = &v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *UpdateEventSourceMappingInput) SetFunctionName(v string) *UpdateEventSourceMappingInput { + s.FunctionName = &v + return s +} + +// SetUUID sets the UUID field's value. +func (s *UpdateEventSourceMappingInput) SetUUID(v string) *UpdateEventSourceMappingInput { + s.UUID = &v + return s +} + type UpdateFunctionCodeInput struct { _ struct{} `type:"structure"` // The existing Lambda function name whose code you want to replace. // - // You can specify a function name (for example, Thumbnail) or you can specify + // You can specify a function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). // Note that the length constraint applies only to the ARN. If you specify only @@ -3949,7 +5050,7 @@ type UpdateFunctionCodeInput struct { Publish *bool `type:"boolean"` // Amazon S3 bucket name where the .zip file containing your deployment package - // is stored. This bucket must reside in the same AWS region where you are creating + // is stored. This bucket must reside in the same AWS Region where you are creating // the Lambda function. S3Bucket *string `min:"3" type:"string"` @@ -3962,8 +5063,8 @@ type UpdateFunctionCodeInput struct { // The contents of your zip file containing your deployment package. If you // are using the web API directly, the contents of the zip file must be base64-encoded. // If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the - // encoding for you. For more information about creating a .zip file, go to - // Execution Permissions (http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html) + // encoding for you. For more information about creating a .zip file, see Execution + // Permissions (http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html) // in the AWS Lambda Developer Guide. // // ZipFile is automatically base64 encoded/decoded by the SDK. @@ -4005,16 +5106,59 @@ func (s *UpdateFunctionCodeInput) Validate() error { return nil } +// SetFunctionName sets the FunctionName field's value. +func (s *UpdateFunctionCodeInput) SetFunctionName(v string) *UpdateFunctionCodeInput { + s.FunctionName = &v + return s +} + +// SetPublish sets the Publish field's value. +func (s *UpdateFunctionCodeInput) SetPublish(v bool) *UpdateFunctionCodeInput { + s.Publish = &v + return s +} + +// SetS3Bucket sets the S3Bucket field's value. +func (s *UpdateFunctionCodeInput) SetS3Bucket(v string) *UpdateFunctionCodeInput { + s.S3Bucket = &v + return s +} + +// SetS3Key sets the S3Key field's value. +func (s *UpdateFunctionCodeInput) SetS3Key(v string) *UpdateFunctionCodeInput { + s.S3Key = &v + return s +} + +// SetS3ObjectVersion sets the S3ObjectVersion field's value. +func (s *UpdateFunctionCodeInput) SetS3ObjectVersion(v string) *UpdateFunctionCodeInput { + s.S3ObjectVersion = &v + return s +} + +// SetZipFile sets the ZipFile field's value. +func (s *UpdateFunctionCodeInput) SetZipFile(v []byte) *UpdateFunctionCodeInput { + s.ZipFile = v + return s +} + type UpdateFunctionConfigurationInput struct { _ struct{} `type:"structure"` + // The parent object that contains the target Amazon Resource Name (ARN) of + // an Amazon SQS queue or Amazon SNS topic. + DeadLetterConfig *DeadLetterConfig `type:"structure"` + // A short user-defined function description. AWS Lambda does not use this value. // Assign a meaningful description as you see fit. Description *string `type:"string"` + // The parent object that contains your environment's configuration settings. + Environment *Environment `type:"structure"` + // The name of the Lambda function. // - // You can specify a function name (for example, Thumbnail) or you can specify + // You can specify a function name (for example, Thumbnail) or you can specify // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). // Note that the length constraint applies only to the ARN. If you specify only @@ -4027,6 +5171,11 @@ type UpdateFunctionConfigurationInput struct { // it is the module-name.export value in your function. Handler *string `type:"string"` + // The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's + // environment variables. If you elect to use the AWS Lambda default service + // key, pass in an empty string ("") for this parameter. + KMSKeyArn *string `type:"string"` + // The amount of memory, in MB, your Lambda function is given. AWS Lambda uses // this memory size to infer the amount of CPU allocated to your function. Your // function use-case determines your CPU and memory requirements. For example, @@ -4043,6 +5192,9 @@ type UpdateFunctionConfigurationInput struct { // // To use the Node.js runtime v4.3, set the value to "nodejs4.3". To use earlier // runtime (v0.10.42), set the value to "nodejs". + // + // You can no longer downgrade to the v0.10.42 runtime version. This version + // will no longer be supported as of early 2017. Runtime *string `type:"string" enum:"Runtime"` // The function execution time at which AWS Lambda should terminate the function. @@ -4089,6 +5241,72 @@ func (s *UpdateFunctionConfigurationInput) Validate() error { return nil } +// SetDeadLetterConfig sets the DeadLetterConfig field's value. +func (s *UpdateFunctionConfigurationInput) SetDeadLetterConfig(v *DeadLetterConfig) *UpdateFunctionConfigurationInput { + s.DeadLetterConfig = v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateFunctionConfigurationInput) SetDescription(v string) *UpdateFunctionConfigurationInput { + s.Description = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *UpdateFunctionConfigurationInput) SetEnvironment(v *Environment) *UpdateFunctionConfigurationInput { + s.Environment = v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *UpdateFunctionConfigurationInput) SetFunctionName(v string) *UpdateFunctionConfigurationInput { + s.FunctionName = &v + return s +} + +// SetHandler sets the Handler field's value. +func (s *UpdateFunctionConfigurationInput) SetHandler(v string) *UpdateFunctionConfigurationInput { + s.Handler = &v + return s +} + +// SetKMSKeyArn sets the KMSKeyArn field's value. +func (s *UpdateFunctionConfigurationInput) SetKMSKeyArn(v string) *UpdateFunctionConfigurationInput { + s.KMSKeyArn = &v + return s +} + +// SetMemorySize sets the MemorySize field's value. +func (s *UpdateFunctionConfigurationInput) SetMemorySize(v int64) *UpdateFunctionConfigurationInput { + s.MemorySize = &v + return s +} + +// SetRole sets the Role field's value. +func (s *UpdateFunctionConfigurationInput) SetRole(v string) *UpdateFunctionConfigurationInput { + s.Role = &v + return s +} + +// SetRuntime sets the Runtime field's value. +func (s *UpdateFunctionConfigurationInput) SetRuntime(v string) *UpdateFunctionConfigurationInput { + s.Runtime = &v + return s +} + +// SetTimeout sets the Timeout field's value. +func (s *UpdateFunctionConfigurationInput) SetTimeout(v int64) *UpdateFunctionConfigurationInput { + s.Timeout = &v + return s +} + +// SetVpcConfig sets the VpcConfig field's value. +func (s *UpdateFunctionConfigurationInput) SetVpcConfig(v *VpcConfig) *UpdateFunctionConfigurationInput { + s.VpcConfig = v + return s +} + // If your Lambda function accesses resources in a VPC, you provide this parameter // identifying the list of security group IDs and subnet IDs. These must belong // to the same VPC. You must provide at least one security group and one subnet @@ -4113,6 +5331,18 @@ func (s VpcConfig) GoString() string { return s.String() } +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *VpcConfig) SetSecurityGroupIds(v []*string) *VpcConfig { + s.SecurityGroupIds = v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *VpcConfig) SetSubnetIds(v []*string) *VpcConfig { + s.SubnetIds = v + return s +} + // VPC configuration associated with your Lambda function. type VpcConfigResponse struct { _ struct{} `type:"structure"` @@ -4137,12 +5367,33 @@ func (s VpcConfigResponse) GoString() string { return s.String() } +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *VpcConfigResponse) SetSecurityGroupIds(v []*string) *VpcConfigResponse { + s.SecurityGroupIds = v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *VpcConfigResponse) SetSubnetIds(v []*string) *VpcConfigResponse { + s.SubnetIds = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *VpcConfigResponse) SetVpcId(v string) *VpcConfigResponse { + s.VpcId = &v + return s +} + const ( // EventSourcePositionTrimHorizon is a EventSourcePosition enum value EventSourcePositionTrimHorizon = "TRIM_HORIZON" // EventSourcePositionLatest is a EventSourcePosition enum value EventSourcePositionLatest = "LATEST" + + // EventSourcePositionAtTimestamp is a EventSourcePosition enum value + EventSourcePositionAtTimestamp = "AT_TIMESTAMP" ) const ( @@ -4176,6 +5427,12 @@ const ( // RuntimePython27 is a Runtime enum value RuntimePython27 = "python2.7" + + // RuntimeDotnetcore10 is a Runtime enum value + RuntimeDotnetcore10 = "dotnetcore1.0" + + // RuntimeNodejs43Edge is a Runtime enum value + RuntimeNodejs43Edge = "nodejs4.3-edge" ) const ( diff --git a/vendor/github.com/aws/aws-sdk-go/service/lambda/errors.go b/vendor/github.com/aws/aws-sdk-go/service/lambda/errors.go new file mode 100644 index 000000000..1f9a11b6b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/errors.go @@ -0,0 +1,148 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package lambda + +const ( + + // ErrCodeCodeStorageExceededException for service response error code + // "CodeStorageExceededException". + // + // You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) + ErrCodeCodeStorageExceededException = "CodeStorageExceededException" + + // ErrCodeEC2AccessDeniedException for service response error code + // "EC2AccessDeniedException". + ErrCodeEC2AccessDeniedException = "EC2AccessDeniedException" + + // ErrCodeEC2ThrottledException for service response error code + // "EC2ThrottledException". + // + // AWS Lambda was throttled by Amazon EC2 during Lambda function initialization + // using the execution role provided for the Lambda function. + ErrCodeEC2ThrottledException = "EC2ThrottledException" + + // ErrCodeEC2UnexpectedException for service response error code + // "EC2UnexpectedException". + // + // AWS Lambda received an unexpected EC2 client exception while setting up for + // the Lambda function. + ErrCodeEC2UnexpectedException = "EC2UnexpectedException" + + // ErrCodeENILimitReachedException for service response error code + // "ENILimitReachedException". + // + // AWS Lambda was not able to create an Elastic Network Interface (ENI) in the + // VPC, specified as part of Lambda function configuration, because the limit + // for network interfaces has been reached. + ErrCodeENILimitReachedException = "ENILimitReachedException" + + // ErrCodeInvalidParameterValueException for service response error code + // "InvalidParameterValueException". + // + // One of the parameters in the request is invalid. For example, if you provided + // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration + // API, that AWS Lambda is unable to assume you will get this exception. + ErrCodeInvalidParameterValueException = "InvalidParameterValueException" + + // ErrCodeInvalidRequestContentException for service response error code + // "InvalidRequestContentException". + // + // The request body could not be parsed as JSON. + ErrCodeInvalidRequestContentException = "InvalidRequestContentException" + + // ErrCodeInvalidSecurityGroupIDException for service response error code + // "InvalidSecurityGroupIDException". + // + // The Security Group ID provided in the Lambda function VPC configuration is + // invalid. + ErrCodeInvalidSecurityGroupIDException = "InvalidSecurityGroupIDException" + + // ErrCodeInvalidSubnetIDException for service response error code + // "InvalidSubnetIDException". + // + // The Subnet ID provided in the Lambda function VPC configuration is invalid. + ErrCodeInvalidSubnetIDException = "InvalidSubnetIDException" + + // ErrCodeInvalidZipFileException for service response error code + // "InvalidZipFileException". + // + // AWS Lambda could not unzip the function zip file. + ErrCodeInvalidZipFileException = "InvalidZipFileException" + + // ErrCodeKMSAccessDeniedException for service response error code + // "KMSAccessDeniedException". + // + // Lambda was unable to decrypt the environment variables because KMS access + // was denied. Check the Lambda function's KMS permissions. + ErrCodeKMSAccessDeniedException = "KMSAccessDeniedException" + + // ErrCodeKMSDisabledException for service response error code + // "KMSDisabledException". + // + // Lambda was unable to decrypt the environment variables because the KMS key + // used is disabled. Check the Lambda function's KMS key settings. + ErrCodeKMSDisabledException = "KMSDisabledException" + + // ErrCodeKMSInvalidStateException for service response error code + // "KMSInvalidStateException". + // + // Lambda was unable to decrypt the environment variables because the KMS key + // used is in an invalid state for Decrypt. Check the function's KMS key settings. + ErrCodeKMSInvalidStateException = "KMSInvalidStateException" + + // ErrCodeKMSNotFoundException for service response error code + // "KMSNotFoundException". + // + // Lambda was unable to decrypt the environment variables because the KMS key + // was not found. Check the function's KMS key settings. + ErrCodeKMSNotFoundException = "KMSNotFoundException" + + // ErrCodePolicyLengthExceededException for service response error code + // "PolicyLengthExceededException". + // + // Lambda function access policy is limited to 20 KB. + ErrCodePolicyLengthExceededException = "PolicyLengthExceededException" + + // ErrCodeRequestTooLargeException for service response error code + // "RequestTooLargeException". + // + // The request payload exceeded the Invoke request body JSON input limit. For + // more information, see Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html). + ErrCodeRequestTooLargeException = "RequestTooLargeException" + + // ErrCodeResourceConflictException for service response error code + // "ResourceConflictException". + // + // The resource already exists. + ErrCodeResourceConflictException = "ResourceConflictException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The resource (for example, a Lambda function or access policy statement) + // specified in the request does not exist. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeServiceException for service response error code + // "ServiceException". + // + // The AWS Lambda service encountered an internal error. + ErrCodeServiceException = "ServiceException" + + // ErrCodeSubnetIPAddressLimitReachedException for service response error code + // "SubnetIPAddressLimitReachedException". + // + // AWS Lambda was not able to set up VPC access for the Lambda function because + // one or more configured subnets has no available IP addresses. + ErrCodeSubnetIPAddressLimitReachedException = "SubnetIPAddressLimitReachedException" + + // ErrCodeTooManyRequestsException for service response error code + // "TooManyRequestsException". + ErrCodeTooManyRequestsException = "TooManyRequestsException" + + // ErrCodeUnsupportedMediaTypeException for service response error code + // "UnsupportedMediaTypeException". + // + // The content type of the Invoke request body is not JSON. + ErrCodeUnsupportedMediaTypeException = "UnsupportedMediaTypeException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/lambda/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/lambda/examples_test.go index a4af108ef..a6ba79188 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lambda/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleLambda_AddPermission() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -48,11 +44,7 @@ func ExampleLambda_AddPermission() { } func ExampleLambda_CreateAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -76,20 +68,17 @@ func ExampleLambda_CreateAlias() { } func ExampleLambda_CreateEventSourceMapping() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) params := &lambda.CreateEventSourceMappingInput{ - EventSourceArn: aws.String("Arn"), // Required - FunctionName: aws.String("FunctionName"), // Required - StartingPosition: aws.String("EventSourcePosition"), // Required - BatchSize: aws.Int64(1), - Enabled: aws.Bool(true), + EventSourceArn: aws.String("Arn"), // Required + FunctionName: aws.String("FunctionName"), // Required + StartingPosition: aws.String("EventSourcePosition"), // Required + BatchSize: aws.Int64(1), + Enabled: aws.Bool(true), + StartingPositionTimestamp: aws.Time(time.Now()), } resp, err := svc.CreateEventSourceMapping(params) @@ -105,11 +94,7 @@ func ExampleLambda_CreateEventSourceMapping() { } func ExampleLambda_CreateFunction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -124,10 +109,20 @@ func ExampleLambda_CreateFunction() { Handler: aws.String("Handler"), // Required Role: aws.String("RoleArn"), // Required Runtime: aws.String("Runtime"), // Required - Description: aws.String("Description"), - MemorySize: aws.Int64(1), - Publish: aws.Bool(true), - Timeout: aws.Int64(1), + DeadLetterConfig: &lambda.DeadLetterConfig{ + TargetArn: aws.String("ResourceArn"), + }, + Description: aws.String("Description"), + Environment: &lambda.Environment{ + Variables: map[string]*string{ + "Key": aws.String("EnvironmentVariableValue"), // Required + // More values... + }, + }, + KMSKeyArn: aws.String("KMSKeyArn"), + MemorySize: aws.Int64(1), + Publish: aws.Bool(true), + Timeout: aws.Int64(1), VpcConfig: &lambda.VpcConfig{ SecurityGroupIds: []*string{ aws.String("SecurityGroupId"), // Required @@ -153,11 +148,7 @@ func ExampleLambda_CreateFunction() { } func ExampleLambda_DeleteAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -179,11 +170,7 @@ func ExampleLambda_DeleteAlias() { } func ExampleLambda_DeleteEventSourceMapping() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -204,11 +191,7 @@ func ExampleLambda_DeleteEventSourceMapping() { } func ExampleLambda_DeleteFunction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -229,13 +212,28 @@ func ExampleLambda_DeleteFunction() { fmt.Println(resp) } -func ExampleLambda_GetAlias() { - sess, err := session.NewSession() +func ExampleLambda_GetAccountSettings() { + sess := session.Must(session.NewSession()) + + svc := lambda.New(sess) + + var params *lambda.GetAccountSettingsInput + resp, err := svc.GetAccountSettings(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLambda_GetAlias() { + sess := session.Must(session.NewSession()) + svc := lambda.New(sess) params := &lambda.GetAliasInput{ @@ -256,11 +254,7 @@ func ExampleLambda_GetAlias() { } func ExampleLambda_GetEventSourceMapping() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -281,11 +275,7 @@ func ExampleLambda_GetEventSourceMapping() { } func ExampleLambda_GetFunction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -307,11 +297,7 @@ func ExampleLambda_GetFunction() { } func ExampleLambda_GetFunctionConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -333,11 +319,7 @@ func ExampleLambda_GetFunctionConfiguration() { } func ExampleLambda_GetPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -359,11 +341,7 @@ func ExampleLambda_GetPolicy() { } func ExampleLambda_Invoke() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -389,11 +367,7 @@ func ExampleLambda_Invoke() { } func ExampleLambda_InvokeAsync() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -415,11 +389,7 @@ func ExampleLambda_InvokeAsync() { } func ExampleLambda_ListAliases() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -443,11 +413,7 @@ func ExampleLambda_ListAliases() { } func ExampleLambda_ListEventSourceMappings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -471,11 +437,7 @@ func ExampleLambda_ListEventSourceMappings() { } func ExampleLambda_ListFunctions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -497,11 +459,7 @@ func ExampleLambda_ListFunctions() { } func ExampleLambda_ListVersionsByFunction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -524,11 +482,7 @@ func ExampleLambda_ListVersionsByFunction() { } func ExampleLambda_PublishVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -551,11 +505,7 @@ func ExampleLambda_PublishVersion() { } func ExampleLambda_RemovePermission() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -578,11 +528,7 @@ func ExampleLambda_RemovePermission() { } func ExampleLambda_UpdateAlias() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -606,11 +552,7 @@ func ExampleLambda_UpdateAlias() { } func ExampleLambda_UpdateEventSourceMapping() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -634,11 +576,7 @@ func ExampleLambda_UpdateEventSourceMapping() { } func ExampleLambda_UpdateFunctionCode() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) @@ -664,22 +602,28 @@ func ExampleLambda_UpdateFunctionCode() { } func ExampleLambda_UpdateFunctionConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := lambda.New(sess) params := &lambda.UpdateFunctionConfigurationInput{ FunctionName: aws.String("FunctionName"), // Required - Description: aws.String("Description"), - Handler: aws.String("Handler"), - MemorySize: aws.Int64(1), - Role: aws.String("RoleArn"), - Runtime: aws.String("Runtime"), - Timeout: aws.Int64(1), + DeadLetterConfig: &lambda.DeadLetterConfig{ + TargetArn: aws.String("ResourceArn"), + }, + Description: aws.String("Description"), + Environment: &lambda.Environment{ + Variables: map[string]*string{ + "Key": aws.String("EnvironmentVariableValue"), // Required + // More values... + }, + }, + Handler: aws.String("Handler"), + KMSKeyArn: aws.String("KMSKeyArn"), + MemorySize: aws.Int64(1), + Role: aws.String("RoleArn"), + Runtime: aws.String("Runtime"), + Timeout: aws.Int64(1), VpcConfig: &lambda.VpcConfig{ SecurityGroupIds: []*string{ aws.String("SecurityGroupId"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/lambda/lambdaiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/lambda/lambdaiface/interface.go index 963469a1e..33067521d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lambda/lambdaiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/lambdaiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockLambdaClient{} // @@ -87,6 +87,10 @@ type LambdaAPI interface { DeleteFunction(*lambda.DeleteFunctionInput) (*lambda.DeleteFunctionOutput, error) + GetAccountSettingsRequest(*lambda.GetAccountSettingsInput) (*request.Request, *lambda.GetAccountSettingsOutput) + + GetAccountSettings(*lambda.GetAccountSettingsInput) (*lambda.GetAccountSettingsOutput, error) + GetAliasRequest(*lambda.GetAliasInput) (*request.Request, *lambda.AliasConfiguration) GetAlias(*lambda.GetAliasInput) (*lambda.AliasConfiguration, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/lambda/service.go b/vendor/github.com/aws/aws-sdk-go/service/lambda/service.go index 8b155cf84..abb46faa3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lambda/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/service.go @@ -14,11 +14,11 @@ import ( // Overview // // This is the AWS Lambda API Reference. The AWS Lambda Developer Guide provides -// additional information. For the service overview, go to What is AWS Lambda +// additional information. For the service overview, see What is AWS Lambda // (http://docs.aws.amazon.com/lambda/latest/dg/welcome.html), and for information -// about how the service works, go to AWS Lambda: How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html) +// about how the service works, see AWS Lambda: How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html) // in the AWS Lambda Developer Guide. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type Lambda struct { *client.Client @@ -30,8 +30,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "lambda" +// Service information constants +const ( + ServiceName = "lambda" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the Lambda client with a session. // If additional configuration is needed for the client instance use the optional @@ -44,17 +47,18 @@ const ServiceName = "lambda" // // Create a Lambda client with additional configuration // svc := lambda.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Lambda { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *Lambda { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Lambda { svc := &Lambda{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-03-31", diff --git a/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/api.go new file mode 100644 index 000000000..c0062551b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/api.go @@ -0,0 +1,562 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package lexruntimeservice provides a client for Amazon Lex Runtime Service. +package lexruntimeservice + +import ( + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opPostText = "PostText" + +// PostTextRequest generates a "aws/request.Request" representing the +// client's request for the PostText operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See PostText for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the PostText method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the PostTextRequest method. +// req, resp := client.PostTextRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PostText +func (c *LexRuntimeService) PostTextRequest(input *PostTextInput) (req *request.Request, output *PostTextOutput) { + op := &request.Operation{ + Name: opPostText, + HTTPMethod: "POST", + HTTPPath: "/bot/{botName}/alias/{botAlias}/user/{userId}/text", + } + + if input == nil { + input = &PostTextInput{} + } + + output = &PostTextOutput{} + req = c.newRequest(op, input, output) + return +} + +// PostText API operation for Amazon Lex Runtime Service. +// +// Sends user input text to Amazon Lex at runtime. Amazon Lex uses the machine +// learning model that the service built for the application to interpret user +// input. +// +// In response, Amazon Lex returns the next message to convey to the user (based +// on the context of the user interaction) and whether to expect a user response +// to the message (dialogState). For example, consider the following response +// messages: +// +// * "What pizza toppings would you like?" – In this case, the dialogState +// would be ElicitSlot (that is, a user response is expected). +// +// * "Your order has been placed." – In this case, Amazon Lex returns one +// of the following dialogState values depending on how the intent fulfillment +// is configured (see fulfillmentActivity in CreateIntent): +// +// FulFilled – The intent fulfillment is configured through a Lambda function. +// +// +// ReadyForFulfilment – The intent's fulfillmentActivity is to simply return +// the intent data back to the client application. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lex Runtime Service's +// API operation PostText for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// Resource (such as the Amazon Lex bot or an alias) referred is not found. +// +// * ErrCodeBadRequestException "BadRequestException" +// Request validation failed, there is no usable message in the context, or +// the bot build failed. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Internal service error. Retry the call. +// +// * ErrCodeConflictException "ConflictException" +// Two clients are using the same AWS account, Amazon Lex bot, and user ID. +// +// * ErrCodeDependencyFailedException "DependencyFailedException" +// One of the downstream dependencies, such as AWS Lambda or Amazon Polly, threw +// an exception. For example, if Amazon Lex does not have sufficient permissions +// to call a Lambda function which results in AWS Lambda throwing an exception. +// +// * ErrCodeBadGatewayException "BadGatewayException" +// Either the Amazon Lex bot is still building, or one of the dependent services +// (Amazon Polly, AWS Lambda) failed with an internal service error. +// +// * ErrCodeLoopDetectedException "LoopDetectedException" +// Lambda fulfilment function returned DelegateDialogAction to Amazon Lex without +// changing any slot values. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PostText +func (c *LexRuntimeService) PostText(input *PostTextInput) (*PostTextOutput, error) { + req, out := c.PostTextRequest(input) + err := req.Send() + return out, err +} + +// Represents an option to be shown on the client platform (Facebook, Slack, +// etc.) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/Button +type Button struct { + _ struct{} `type:"structure"` + + // Text visible to the user on the button. + // + // Text is a required field + Text *string `locationName:"text" min:"1" type:"string" required:"true"` + + // Value sent to Amazon Lex when user clicks the button. For example, consider + // button text "NYC". When the user clicks the button, the value sent can be + // "New York City". + // + // Value is a required field + Value *string `locationName:"value" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s Button) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Button) GoString() string { + return s.String() +} + +// SetText sets the Text field's value. +func (s *Button) SetText(v string) *Button { + s.Text = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Button) SetValue(v string) *Button { + s.Value = &v + return s +} + +// Represents an option rendered to the user when a prompt is shown. It could +// be an image, a button, a link, or text. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/GenericAttachment +type GenericAttachment struct { + _ struct{} `type:"structure"` + + AttachmentLinkUrl *string `locationName:"attachmentLinkUrl" min:"1" type:"string"` + + // List of options to show to the user. + Buttons []*Button `locationName:"buttons" type:"list"` + + // URL of an image that is displayed to the user. + ImageUrl *string `locationName:"imageUrl" min:"1" type:"string"` + + // Subtitle shown below the title. + SubTitle *string `locationName:"subTitle" min:"1" type:"string"` + + // Title of the option. + Title *string `locationName:"title" min:"1" type:"string"` +} + +// String returns the string representation +func (s GenericAttachment) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GenericAttachment) GoString() string { + return s.String() +} + +// SetAttachmentLinkUrl sets the AttachmentLinkUrl field's value. +func (s *GenericAttachment) SetAttachmentLinkUrl(v string) *GenericAttachment { + s.AttachmentLinkUrl = &v + return s +} + +// SetButtons sets the Buttons field's value. +func (s *GenericAttachment) SetButtons(v []*Button) *GenericAttachment { + s.Buttons = v + return s +} + +// SetImageUrl sets the ImageUrl field's value. +func (s *GenericAttachment) SetImageUrl(v string) *GenericAttachment { + s.ImageUrl = &v + return s +} + +// SetSubTitle sets the SubTitle field's value. +func (s *GenericAttachment) SetSubTitle(v string) *GenericAttachment { + s.SubTitle = &v + return s +} + +// SetTitle sets the Title field's value. +func (s *GenericAttachment) SetTitle(v string) *GenericAttachment { + s.Title = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PostTextRequest +type PostTextInput struct { + _ struct{} `type:"structure"` + + // Alias of the Amazon Lex bot. + // + // BotAlias is a required field + BotAlias *string `location:"uri" locationName:"botAlias" type:"string" required:"true"` + + // Name of the Amazon Lex bot. + // + // BotName is a required field + BotName *string `location:"uri" locationName:"botName" type:"string" required:"true"` + + // Text user entered (Amazon Lex interprets this text). + // + // InputText is a required field + InputText *string `locationName:"inputText" min:"1" type:"string" required:"true"` + + // A session represents the dialog between a user and Amazon Lex. At runtime, + // a client application can pass contextual information (session attributes) + // in the request. For example, "FirstName" : "Joe". Amazon Lex passes these + // session attributes to the AWS Lambda functions configured for the intent + // (see dialogCodeHook and fulfillmentActivity.codeHook in CreateIntent). + // + // In your Lambda function, you can use the session attributes for customization. + // Some examples are: + // + // * In a pizza ordering application, if you can pass user location as a + // session attribute (for example, "Location" : "111 Maple street"), your + // Lambda function might use this information to determine the closest pizzeria + // to place the order. + // + // * Use session attributes to personalize prompts. For example, you pass + // in user name as a session attribute ("FirstName" : "Joe"), you might configure + // subsequent prompts to refer to this attribute, as $session.FirstName". + // At runtime, Amazon Lex substitutes a real value when it generates a prompt, + // such as "Hello Joe, what would you like to order?" + // + // Amazon Lex does not persist session attributes. + // + // If the intent is configured without a Lambda function to process the intent + // (that is, the client application to process the intent), Amazon Lex simply + // returns the session attributes back to the client application. + // + // If the intent is configured with a Lambda function to process the intent, + // Amazon Lex passes the incoming session attributes to the Lambda function. + // The Lambda function must return these session attributes if you want Amazon + // Lex to return them back to the client. + SessionAttributes map[string]*string `locationName:"sessionAttributes" type:"map"` + + // User ID of your client application. Typically, each of your application users + // should have a unique ID. Note the following considerations: + // + // * If you want a user to start a conversation on one mobile device and + // continue the conversation on another device, you might choose a user-specific + // identifier, such as a login or Amazon Cognito user ID (assuming your application + // is using Amazon Cognito). + // + // * If you want the same user to be able to have two independent conversations + // on two different devices, you might choose a device-specific identifier, + // such as device ID, or some globally unique identifier. + // + // UserId is a required field + UserId *string `location:"uri" locationName:"userId" min:"2" type:"string" required:"true"` +} + +// String returns the string representation +func (s PostTextInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PostTextInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PostTextInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PostTextInput"} + if s.BotAlias == nil { + invalidParams.Add(request.NewErrParamRequired("BotAlias")) + } + if s.BotName == nil { + invalidParams.Add(request.NewErrParamRequired("BotName")) + } + if s.InputText == nil { + invalidParams.Add(request.NewErrParamRequired("InputText")) + } + if s.InputText != nil && len(*s.InputText) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputText", 1)) + } + if s.UserId == nil { + invalidParams.Add(request.NewErrParamRequired("UserId")) + } + if s.UserId != nil && len(*s.UserId) < 2 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 2)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBotAlias sets the BotAlias field's value. +func (s *PostTextInput) SetBotAlias(v string) *PostTextInput { + s.BotAlias = &v + return s +} + +// SetBotName sets the BotName field's value. +func (s *PostTextInput) SetBotName(v string) *PostTextInput { + s.BotName = &v + return s +} + +// SetInputText sets the InputText field's value. +func (s *PostTextInput) SetInputText(v string) *PostTextInput { + s.InputText = &v + return s +} + +// SetSessionAttributes sets the SessionAttributes field's value. +func (s *PostTextInput) SetSessionAttributes(v map[string]*string) *PostTextInput { + s.SessionAttributes = v + return s +} + +// SetUserId sets the UserId field's value. +func (s *PostTextInput) SetUserId(v string) *PostTextInput { + s.UserId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PostTextResponse +type PostTextOutput struct { + _ struct{} `type:"structure"` + + // Represents the message type to be conveyed to the user. For example: + // + // * ElicitIntent – Amazon Lex wants to elicit user intent. For example, + // Amazon Lex did not understand the first utterances such as "I want to + // order pizza", which indicates the OrderPizza intent. If Amazon Lex doesn't + // understand the intent, it returns this dialogState. Another example is + // when your intent is configured with a follow up prompt. For example, after + // OrderPizza intent is fulfilled, the intent might have a follow up prompt + // such as " Do you want to order a drink or desert?" In this case, Amazon + // Lex returns this dialogState. + // + // * ConfirmIntent – Amazon Lex is expecting a yes/no response from the user + // indicating whether to go ahead and fulfill the intent (for example, OK + // to go ahead and order the pizza). In addition to a yes/no reply, the user + // might provide a response with additional slot information (either new + // slot information or changes to the existing slot values). For example, + // "Yes, but change to thick crust." Amazon Lex understands the additional + // information and updates the intent slots accordingly. + // + // Consider another example. Before fulfilling an order, your application might + // prompt for confirmation such as "Do you want to place this pizza order?" + // A user might reply with "No, I want to order a drink." Amazon Lex recognizes + // the new OrderDrink intent. + // + // * ElicitSlot – Amazon Lex is expecting a value of a slot for the current + // intent. For example, suppose Amazon Lex asks, "What size pizza would you + // like?" A user might reply with "Medium pepperoni pizza." Amazon Lex recognizes + // the size and the topping as the two separate slot values. + // + // * Fulfilled – Conveys that the Lambda function has successfully fulfilled + // the intent. If Lambda function returns a statement/message to convey the + // fulfillment result, Amazon Lex passes this string to the client. If not, + // Amazon Lex looks for conclusionStatement that you configured for the intent. + // + // + // If both the Lambda function statement and the conclusionStatement are missing, + // Amazon Lex throws a bad request exception. + // + // * ReadyForFulfillment – conveys that the client has to do the fulfillment + // work for the intent. This is the case when the current intent is configured + // with ReturnIntent as the fulfillmentActivity , where Amazon Lex returns + // this state to client. + // + // * Failed – Conversation with the user failed. Some of the reasons for + // this dialogState are: after the configured number of attempts the user + // didn't provide an appropriate response, or the Lambda function failed + // to fulfill an intent. + DialogState *string `locationName:"dialogState" type:"string" enum:"DialogState"` + + // Intent Amazon Lex inferred from the user input text. This is one of the intents + // configured for the bot. + IntentName *string `locationName:"intentName" type:"string"` + + // Prompt (or statement) to convey to the user. This is based on the application + // configuration and context. For example, if Amazon Lex did not understand + // the user intent, it sends the clarificationPrompt configured for the application. + // In another example, if the intent requires confirmation before taking the + // fulfillment action, it sends the confirmationPrompt. Suppose the Lambda function + // successfully fulfilled the intent, and sent a message to convey to the user. + // In that situation, Amazon Lex sends that message in the response. + Message *string `locationName:"message" min:"1" type:"string"` + + // Represents the options that the user has to respond to the current prompt. + // Amazon Lex sends this in the response only if the dialogState value indicates + // that a user response is expected. + ResponseCard *ResponseCard `locationName:"responseCard" type:"structure"` + + // Map of key value pairs representing the session specific context information. + SessionAttributes map[string]*string `locationName:"sessionAttributes" type:"map"` + + // If dialogState value is ElicitSlot, returns the name of the slot for which + // Amazon Lex is eliciting a value. + SlotToElicit *string `locationName:"slotToElicit" type:"string"` + + // Intent slots (name/value pairs) Amazon Lex detected so far from the user + // input in the conversation. + Slots map[string]*string `locationName:"slots" type:"map"` +} + +// String returns the string representation +func (s PostTextOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PostTextOutput) GoString() string { + return s.String() +} + +// SetDialogState sets the DialogState field's value. +func (s *PostTextOutput) SetDialogState(v string) *PostTextOutput { + s.DialogState = &v + return s +} + +// SetIntentName sets the IntentName field's value. +func (s *PostTextOutput) SetIntentName(v string) *PostTextOutput { + s.IntentName = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *PostTextOutput) SetMessage(v string) *PostTextOutput { + s.Message = &v + return s +} + +// SetResponseCard sets the ResponseCard field's value. +func (s *PostTextOutput) SetResponseCard(v *ResponseCard) *PostTextOutput { + s.ResponseCard = v + return s +} + +// SetSessionAttributes sets the SessionAttributes field's value. +func (s *PostTextOutput) SetSessionAttributes(v map[string]*string) *PostTextOutput { + s.SessionAttributes = v + return s +} + +// SetSlotToElicit sets the SlotToElicit field's value. +func (s *PostTextOutput) SetSlotToElicit(v string) *PostTextOutput { + s.SlotToElicit = &v + return s +} + +// SetSlots sets the Slots field's value. +func (s *PostTextOutput) SetSlots(v map[string]*string) *PostTextOutput { + s.Slots = v + return s +} + +// If you configure a response card when creating your bots, Amazon Lex substitutes +// the session attributes and slot values available, and then returns it. The +// response card can also come from a Lambda function ( dialogCodeHook and fulfillmentActivity +// on an intent). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/ResponseCard +type ResponseCard struct { + _ struct{} `type:"structure"` + + // Content type of the response. + ContentType *string `locationName:"contentType" type:"string" enum:"ContentType"` + + // An array of attachment objects representing options. + GenericAttachments []*GenericAttachment `locationName:"genericAttachments" type:"list"` + + // Version of response card format. + Version *string `locationName:"version" type:"string"` +} + +// String returns the string representation +func (s ResponseCard) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResponseCard) GoString() string { + return s.String() +} + +// SetContentType sets the ContentType field's value. +func (s *ResponseCard) SetContentType(v string) *ResponseCard { + s.ContentType = &v + return s +} + +// SetGenericAttachments sets the GenericAttachments field's value. +func (s *ResponseCard) SetGenericAttachments(v []*GenericAttachment) *ResponseCard { + s.GenericAttachments = v + return s +} + +// SetVersion sets the Version field's value. +func (s *ResponseCard) SetVersion(v string) *ResponseCard { + s.Version = &v + return s +} + +const ( + // ContentTypeApplicationVndAmazonawsCardGeneric is a ContentType enum value + ContentTypeApplicationVndAmazonawsCardGeneric = "application/vnd.amazonaws.card.generic" +) + +const ( + // DialogStateElicitIntent is a DialogState enum value + DialogStateElicitIntent = "ElicitIntent" + + // DialogStateConfirmIntent is a DialogState enum value + DialogStateConfirmIntent = "ConfirmIntent" + + // DialogStateElicitSlot is a DialogState enum value + DialogStateElicitSlot = "ElicitSlot" + + // DialogStateFulfilled is a DialogState enum value + DialogStateFulfilled = "Fulfilled" + + // DialogStateReadyForFulfillment is a DialogState enum value + DialogStateReadyForFulfillment = "ReadyForFulfillment" + + // DialogStateFailed is a DialogState enum value + DialogStateFailed = "Failed" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/errors.go b/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/errors.go new file mode 100644 index 000000000..ace6947a4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/errors.go @@ -0,0 +1,57 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package lexruntimeservice + +const ( + + // ErrCodeBadGatewayException for service response error code + // "BadGatewayException". + // + // Either the Amazon Lex bot is still building, or one of the dependent services + // (Amazon Polly, AWS Lambda) failed with an internal service error. + ErrCodeBadGatewayException = "BadGatewayException" + + // ErrCodeBadRequestException for service response error code + // "BadRequestException". + // + // Request validation failed, there is no usable message in the context, or + // the bot build failed. + ErrCodeBadRequestException = "BadRequestException" + + // ErrCodeConflictException for service response error code + // "ConflictException". + // + // Two clients are using the same AWS account, Amazon Lex bot, and user ID. + ErrCodeConflictException = "ConflictException" + + // ErrCodeDependencyFailedException for service response error code + // "DependencyFailedException". + // + // One of the downstream dependencies, such as AWS Lambda or Amazon Polly, threw + // an exception. For example, if Amazon Lex does not have sufficient permissions + // to call a Lambda function which results in AWS Lambda throwing an exception. + ErrCodeDependencyFailedException = "DependencyFailedException" + + // ErrCodeInternalFailureException for service response error code + // "InternalFailureException". + // + // Internal service error. Retry the call. + ErrCodeInternalFailureException = "InternalFailureException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeLoopDetectedException for service response error code + // "LoopDetectedException". + // + // Lambda fulfilment function returned DelegateDialogAction to Amazon Lex without + // changing any slot values. + ErrCodeLoopDetectedException = "LoopDetectedException" + + // ErrCodeNotFoundException for service response error code + // "NotFoundException". + // + // Resource (such as the Amazon Lex bot or an alias) referred is not found. + ErrCodeNotFoundException = "NotFoundException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/examples_test.go new file mode 100644 index 000000000..2542b7caa --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/examples_test.go @@ -0,0 +1,44 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package lexruntimeservice_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/lexruntimeservice" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExampleLexRuntimeService_PostText() { + sess := session.Must(session.NewSession()) + + svc := lexruntimeservice.New(sess) + + params := &lexruntimeservice.PostTextInput{ + BotAlias: aws.String("BotAlias"), // Required + BotName: aws.String("BotName"), // Required + InputText: aws.String("Text"), // Required + UserId: aws.String("UserId"), // Required + SessionAttributes: map[string]*string{ + "Key": aws.String("String"), // Required + // More values... + }, + } + resp, err := svc.PostText(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/lexruntimeserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/lexruntimeserviceiface/interface.go new file mode 100644 index 000000000..d52288b5a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/lexruntimeserviceiface/interface.go @@ -0,0 +1,67 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package lexruntimeserviceiface provides an interface to enable mocking the Amazon Lex Runtime Service service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package lexruntimeserviceiface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/lexruntimeservice" +) + +// LexRuntimeServiceAPI provides an interface to enable mocking the +// lexruntimeservice.LexRuntimeService service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Amazon Lex Runtime Service. +// func myFunc(svc lexruntimeserviceiface.LexRuntimeServiceAPI) bool { +// // Make svc.PostText request +// } +// +// func main() { +// sess := session.New() +// svc := lexruntimeservice.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockLexRuntimeServiceClient struct { +// lexruntimeserviceiface.LexRuntimeServiceAPI +// } +// func (m *mockLexRuntimeServiceClient) PostText(input *lexruntimeservice.PostTextInput) (*lexruntimeservice.PostTextOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockLexRuntimeServiceClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type LexRuntimeServiceAPI interface { + PostTextRequest(*lexruntimeservice.PostTextInput) (*request.Request, *lexruntimeservice.PostTextOutput) + + PostText(*lexruntimeservice.PostTextInput) (*lexruntimeservice.PostTextOutput, error) +} + +var _ LexRuntimeServiceAPI = (*lexruntimeservice.LexRuntimeService)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/service.go b/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/service.go new file mode 100644 index 000000000..b553de11e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/service.go @@ -0,0 +1,105 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package lexruntimeservice + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +// Amazon Lex provides both build and runtime endpoints. Each endpoint provides +// a set of operations (API). Your application uses the runtime API to understand +// user utterances (user input text or voice). For example, suppose user says +// "I want pizza", your application sends this input to Amazon Lex using the +// runtime API. Amazon Lex recognizes that the user request is for the OrderPizza +// intent (one of the intents defined in the application). Then Amazon Lex engages +// in user conversation on behalf of the application to elicit required information +// (slot values, such as pizza size and crust type), and then performs fulfillment +// activity (that you configured when you created the application). You use +// the build-time API to create and manage your Amazon Lex applications. For +// a list of build-time operations, see the build-time API. . +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28 +type LexRuntimeService struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "runtime.lex" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the LexRuntimeService client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a LexRuntimeService client from just a session. +// svc := lexruntimeservice.New(mySession) +// +// // Create a LexRuntimeService client with additional configuration +// svc := lexruntimeservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *LexRuntimeService { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *LexRuntimeService { + if len(signingName) == 0 { + signingName = "lex" + } + svc := &LexRuntimeService{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2016-11-28", + JSONVersion: "1.1", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a LexRuntimeService operation and runs any +// custom request initialization. +func (c *LexRuntimeService) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/lightsail/api.go b/vendor/github.com/aws/aws-sdk-go/service/lightsail/api.go new file mode 100644 index 000000000..06a44736e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/lightsail/api.go @@ -0,0 +1,9366 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package lightsail provides a client for Amazon Lightsail. +package lightsail + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opAllocateStaticIp = "AllocateStaticIp" + +// AllocateStaticIpRequest generates a "aws/request.Request" representing the +// client's request for the AllocateStaticIp operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AllocateStaticIp for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AllocateStaticIp method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AllocateStaticIpRequest method. +// req, resp := client.AllocateStaticIpRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AllocateStaticIp +func (c *Lightsail) AllocateStaticIpRequest(input *AllocateStaticIpInput) (req *request.Request, output *AllocateStaticIpOutput) { + op := &request.Operation{ + Name: opAllocateStaticIp, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AllocateStaticIpInput{} + } + + output = &AllocateStaticIpOutput{} + req = c.newRequest(op, input, output) + return +} + +// AllocateStaticIp API operation for Amazon Lightsail. +// +// Allocates a static IP address. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation AllocateStaticIp for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AllocateStaticIp +func (c *Lightsail) AllocateStaticIp(input *AllocateStaticIpInput) (*AllocateStaticIpOutput, error) { + req, out := c.AllocateStaticIpRequest(input) + err := req.Send() + return out, err +} + +const opAttachStaticIp = "AttachStaticIp" + +// AttachStaticIpRequest generates a "aws/request.Request" representing the +// client's request for the AttachStaticIp operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AttachStaticIp for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AttachStaticIp method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AttachStaticIpRequest method. +// req, resp := client.AttachStaticIpRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AttachStaticIp +func (c *Lightsail) AttachStaticIpRequest(input *AttachStaticIpInput) (req *request.Request, output *AttachStaticIpOutput) { + op := &request.Operation{ + Name: opAttachStaticIp, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AttachStaticIpInput{} + } + + output = &AttachStaticIpOutput{} + req = c.newRequest(op, input, output) + return +} + +// AttachStaticIp API operation for Amazon Lightsail. +// +// Attaches a static IP address to a specific Amazon Lightsail instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation AttachStaticIp for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AttachStaticIp +func (c *Lightsail) AttachStaticIp(input *AttachStaticIpInput) (*AttachStaticIpOutput, error) { + req, out := c.AttachStaticIpRequest(input) + err := req.Send() + return out, err +} + +const opCloseInstancePublicPorts = "CloseInstancePublicPorts" + +// CloseInstancePublicPortsRequest generates a "aws/request.Request" representing the +// client's request for the CloseInstancePublicPorts operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CloseInstancePublicPorts for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CloseInstancePublicPorts method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CloseInstancePublicPortsRequest method. +// req, resp := client.CloseInstancePublicPortsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CloseInstancePublicPorts +func (c *Lightsail) CloseInstancePublicPortsRequest(input *CloseInstancePublicPortsInput) (req *request.Request, output *CloseInstancePublicPortsOutput) { + op := &request.Operation{ + Name: opCloseInstancePublicPorts, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CloseInstancePublicPortsInput{} + } + + output = &CloseInstancePublicPortsOutput{} + req = c.newRequest(op, input, output) + return +} + +// CloseInstancePublicPorts API operation for Amazon Lightsail. +// +// Closes the public ports on a specific Amazon Lightsail instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation CloseInstancePublicPorts for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CloseInstancePublicPorts +func (c *Lightsail) CloseInstancePublicPorts(input *CloseInstancePublicPortsInput) (*CloseInstancePublicPortsOutput, error) { + req, out := c.CloseInstancePublicPortsRequest(input) + err := req.Send() + return out, err +} + +const opCreateDomain = "CreateDomain" + +// CreateDomainRequest generates a "aws/request.Request" representing the +// client's request for the CreateDomain operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateDomain for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateDomain method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateDomainRequest method. +// req, resp := client.CreateDomainRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDomain +func (c *Lightsail) CreateDomainRequest(input *CreateDomainInput) (req *request.Request, output *CreateDomainOutput) { + op := &request.Operation{ + Name: opCreateDomain, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateDomainInput{} + } + + output = &CreateDomainOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateDomain API operation for Amazon Lightsail. +// +// Creates a domain resource for the specified domain (e.g., example.com). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation CreateDomain for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDomain +func (c *Lightsail) CreateDomain(input *CreateDomainInput) (*CreateDomainOutput, error) { + req, out := c.CreateDomainRequest(input) + err := req.Send() + return out, err +} + +const opCreateDomainEntry = "CreateDomainEntry" + +// CreateDomainEntryRequest generates a "aws/request.Request" representing the +// client's request for the CreateDomainEntry operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateDomainEntry for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateDomainEntry method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateDomainEntryRequest method. +// req, resp := client.CreateDomainEntryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDomainEntry +func (c *Lightsail) CreateDomainEntryRequest(input *CreateDomainEntryInput) (req *request.Request, output *CreateDomainEntryOutput) { + op := &request.Operation{ + Name: opCreateDomainEntry, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateDomainEntryInput{} + } + + output = &CreateDomainEntryOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateDomainEntry API operation for Amazon Lightsail. +// +// Creates one of the following entry records associated with the domain: A +// record, CNAME record, TXT record, or MX record. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation CreateDomainEntry for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDomainEntry +func (c *Lightsail) CreateDomainEntry(input *CreateDomainEntryInput) (*CreateDomainEntryOutput, error) { + req, out := c.CreateDomainEntryRequest(input) + err := req.Send() + return out, err +} + +const opCreateInstanceSnapshot = "CreateInstanceSnapshot" + +// CreateInstanceSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the CreateInstanceSnapshot operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateInstanceSnapshot for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateInstanceSnapshot method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateInstanceSnapshotRequest method. +// req, resp := client.CreateInstanceSnapshotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstanceSnapshot +func (c *Lightsail) CreateInstanceSnapshotRequest(input *CreateInstanceSnapshotInput) (req *request.Request, output *CreateInstanceSnapshotOutput) { + op := &request.Operation{ + Name: opCreateInstanceSnapshot, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateInstanceSnapshotInput{} + } + + output = &CreateInstanceSnapshotOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateInstanceSnapshot API operation for Amazon Lightsail. +// +// Creates a snapshot of a specific virtual private server, or instance. You +// can use a snapshot to create a new instance that is based on that snapshot. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation CreateInstanceSnapshot for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstanceSnapshot +func (c *Lightsail) CreateInstanceSnapshot(input *CreateInstanceSnapshotInput) (*CreateInstanceSnapshotOutput, error) { + req, out := c.CreateInstanceSnapshotRequest(input) + err := req.Send() + return out, err +} + +const opCreateInstances = "CreateInstances" + +// CreateInstancesRequest generates a "aws/request.Request" representing the +// client's request for the CreateInstances operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateInstances for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateInstances method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateInstancesRequest method. +// req, resp := client.CreateInstancesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstances +func (c *Lightsail) CreateInstancesRequest(input *CreateInstancesInput) (req *request.Request, output *CreateInstancesOutput) { + op := &request.Operation{ + Name: opCreateInstances, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateInstancesInput{} + } + + output = &CreateInstancesOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateInstances API operation for Amazon Lightsail. +// +// Creates one or more Amazon Lightsail virtual private servers, or instances. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation CreateInstances for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstances +func (c *Lightsail) CreateInstances(input *CreateInstancesInput) (*CreateInstancesOutput, error) { + req, out := c.CreateInstancesRequest(input) + err := req.Send() + return out, err +} + +const opCreateInstancesFromSnapshot = "CreateInstancesFromSnapshot" + +// CreateInstancesFromSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the CreateInstancesFromSnapshot operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateInstancesFromSnapshot for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateInstancesFromSnapshot method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateInstancesFromSnapshotRequest method. +// req, resp := client.CreateInstancesFromSnapshotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstancesFromSnapshot +func (c *Lightsail) CreateInstancesFromSnapshotRequest(input *CreateInstancesFromSnapshotInput) (req *request.Request, output *CreateInstancesFromSnapshotOutput) { + op := &request.Operation{ + Name: opCreateInstancesFromSnapshot, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateInstancesFromSnapshotInput{} + } + + output = &CreateInstancesFromSnapshotOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateInstancesFromSnapshot API operation for Amazon Lightsail. +// +// Uses a specific snapshot as a blueprint for creating one or more new instances +// that are based on that identical configuration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation CreateInstancesFromSnapshot for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstancesFromSnapshot +func (c *Lightsail) CreateInstancesFromSnapshot(input *CreateInstancesFromSnapshotInput) (*CreateInstancesFromSnapshotOutput, error) { + req, out := c.CreateInstancesFromSnapshotRequest(input) + err := req.Send() + return out, err +} + +const opCreateKeyPair = "CreateKeyPair" + +// CreateKeyPairRequest generates a "aws/request.Request" representing the +// client's request for the CreateKeyPair operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateKeyPair for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateKeyPair method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateKeyPairRequest method. +// req, resp := client.CreateKeyPairRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateKeyPair +func (c *Lightsail) CreateKeyPairRequest(input *CreateKeyPairInput) (req *request.Request, output *CreateKeyPairOutput) { + op := &request.Operation{ + Name: opCreateKeyPair, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateKeyPairInput{} + } + + output = &CreateKeyPairOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateKeyPair API operation for Amazon Lightsail. +// +// Creates sn SSH key pair. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation CreateKeyPair for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateKeyPair +func (c *Lightsail) CreateKeyPair(input *CreateKeyPairInput) (*CreateKeyPairOutput, error) { + req, out := c.CreateKeyPairRequest(input) + err := req.Send() + return out, err +} + +const opDeleteDomain = "DeleteDomain" + +// DeleteDomainRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDomain operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteDomain for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteDomain method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteDomainRequest method. +// req, resp := client.DeleteDomainRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomain +func (c *Lightsail) DeleteDomainRequest(input *DeleteDomainInput) (req *request.Request, output *DeleteDomainOutput) { + op := &request.Operation{ + Name: opDeleteDomain, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteDomainInput{} + } + + output = &DeleteDomainOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteDomain API operation for Amazon Lightsail. +// +// Deletes the specified domain recordset and all of its domain records. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation DeleteDomain for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomain +func (c *Lightsail) DeleteDomain(input *DeleteDomainInput) (*DeleteDomainOutput, error) { + req, out := c.DeleteDomainRequest(input) + err := req.Send() + return out, err +} + +const opDeleteDomainEntry = "DeleteDomainEntry" + +// DeleteDomainEntryRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDomainEntry operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteDomainEntry for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteDomainEntry method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteDomainEntryRequest method. +// req, resp := client.DeleteDomainEntryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomainEntry +func (c *Lightsail) DeleteDomainEntryRequest(input *DeleteDomainEntryInput) (req *request.Request, output *DeleteDomainEntryOutput) { + op := &request.Operation{ + Name: opDeleteDomainEntry, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteDomainEntryInput{} + } + + output = &DeleteDomainEntryOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteDomainEntry API operation for Amazon Lightsail. +// +// Deletes a specific domain entry. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation DeleteDomainEntry for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomainEntry +func (c *Lightsail) DeleteDomainEntry(input *DeleteDomainEntryInput) (*DeleteDomainEntryOutput, error) { + req, out := c.DeleteDomainEntryRequest(input) + err := req.Send() + return out, err +} + +const opDeleteInstance = "DeleteInstance" + +// DeleteInstanceRequest generates a "aws/request.Request" representing the +// client's request for the DeleteInstance operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteInstance for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteInstance method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteInstanceRequest method. +// req, resp := client.DeleteInstanceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstance +func (c *Lightsail) DeleteInstanceRequest(input *DeleteInstanceInput) (req *request.Request, output *DeleteInstanceOutput) { + op := &request.Operation{ + Name: opDeleteInstance, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteInstanceInput{} + } + + output = &DeleteInstanceOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteInstance API operation for Amazon Lightsail. +// +// Deletes a specific Amazon Lightsail virtual private server, or instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation DeleteInstance for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstance +func (c *Lightsail) DeleteInstance(input *DeleteInstanceInput) (*DeleteInstanceOutput, error) { + req, out := c.DeleteInstanceRequest(input) + err := req.Send() + return out, err +} + +const opDeleteInstanceSnapshot = "DeleteInstanceSnapshot" + +// DeleteInstanceSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the DeleteInstanceSnapshot operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteInstanceSnapshot for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteInstanceSnapshot method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteInstanceSnapshotRequest method. +// req, resp := client.DeleteInstanceSnapshotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstanceSnapshot +func (c *Lightsail) DeleteInstanceSnapshotRequest(input *DeleteInstanceSnapshotInput) (req *request.Request, output *DeleteInstanceSnapshotOutput) { + op := &request.Operation{ + Name: opDeleteInstanceSnapshot, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteInstanceSnapshotInput{} + } + + output = &DeleteInstanceSnapshotOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteInstanceSnapshot API operation for Amazon Lightsail. +// +// Deletes a specific snapshot of a virtual private server (or instance). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation DeleteInstanceSnapshot for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstanceSnapshot +func (c *Lightsail) DeleteInstanceSnapshot(input *DeleteInstanceSnapshotInput) (*DeleteInstanceSnapshotOutput, error) { + req, out := c.DeleteInstanceSnapshotRequest(input) + err := req.Send() + return out, err +} + +const opDeleteKeyPair = "DeleteKeyPair" + +// DeleteKeyPairRequest generates a "aws/request.Request" representing the +// client's request for the DeleteKeyPair operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteKeyPair for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteKeyPair method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteKeyPairRequest method. +// req, resp := client.DeleteKeyPairRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteKeyPair +func (c *Lightsail) DeleteKeyPairRequest(input *DeleteKeyPairInput) (req *request.Request, output *DeleteKeyPairOutput) { + op := &request.Operation{ + Name: opDeleteKeyPair, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteKeyPairInput{} + } + + output = &DeleteKeyPairOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteKeyPair API operation for Amazon Lightsail. +// +// Deletes a specific SSH key pair. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation DeleteKeyPair for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteKeyPair +func (c *Lightsail) DeleteKeyPair(input *DeleteKeyPairInput) (*DeleteKeyPairOutput, error) { + req, out := c.DeleteKeyPairRequest(input) + err := req.Send() + return out, err +} + +const opDetachStaticIp = "DetachStaticIp" + +// DetachStaticIpRequest generates a "aws/request.Request" representing the +// client's request for the DetachStaticIp operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DetachStaticIp for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DetachStaticIp method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DetachStaticIpRequest method. +// req, resp := client.DetachStaticIpRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachStaticIp +func (c *Lightsail) DetachStaticIpRequest(input *DetachStaticIpInput) (req *request.Request, output *DetachStaticIpOutput) { + op := &request.Operation{ + Name: opDetachStaticIp, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DetachStaticIpInput{} + } + + output = &DetachStaticIpOutput{} + req = c.newRequest(op, input, output) + return +} + +// DetachStaticIp API operation for Amazon Lightsail. +// +// Detaches a static IP from the Amazon Lightsail instance to which it is attached. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation DetachStaticIp for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachStaticIp +func (c *Lightsail) DetachStaticIp(input *DetachStaticIpInput) (*DetachStaticIpOutput, error) { + req, out := c.DetachStaticIpRequest(input) + err := req.Send() + return out, err +} + +const opDownloadDefaultKeyPair = "DownloadDefaultKeyPair" + +// DownloadDefaultKeyPairRequest generates a "aws/request.Request" representing the +// client's request for the DownloadDefaultKeyPair operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DownloadDefaultKeyPair for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DownloadDefaultKeyPair method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DownloadDefaultKeyPairRequest method. +// req, resp := client.DownloadDefaultKeyPairRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DownloadDefaultKeyPair +func (c *Lightsail) DownloadDefaultKeyPairRequest(input *DownloadDefaultKeyPairInput) (req *request.Request, output *DownloadDefaultKeyPairOutput) { + op := &request.Operation{ + Name: opDownloadDefaultKeyPair, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DownloadDefaultKeyPairInput{} + } + + output = &DownloadDefaultKeyPairOutput{} + req = c.newRequest(op, input, output) + return +} + +// DownloadDefaultKeyPair API operation for Amazon Lightsail. +// +// Downloads the default SSH key pair from the user's account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation DownloadDefaultKeyPair for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DownloadDefaultKeyPair +func (c *Lightsail) DownloadDefaultKeyPair(input *DownloadDefaultKeyPairInput) (*DownloadDefaultKeyPairOutput, error) { + req, out := c.DownloadDefaultKeyPairRequest(input) + err := req.Send() + return out, err +} + +const opGetActiveNames = "GetActiveNames" + +// GetActiveNamesRequest generates a "aws/request.Request" representing the +// client's request for the GetActiveNames operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetActiveNames for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetActiveNames method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetActiveNamesRequest method. +// req, resp := client.GetActiveNamesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetActiveNames +func (c *Lightsail) GetActiveNamesRequest(input *GetActiveNamesInput) (req *request.Request, output *GetActiveNamesOutput) { + op := &request.Operation{ + Name: opGetActiveNames, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetActiveNamesInput{} + } + + output = &GetActiveNamesOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetActiveNames API operation for Amazon Lightsail. +// +// Returns the names of all active (not deleted) resources. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetActiveNames for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetActiveNames +func (c *Lightsail) GetActiveNames(input *GetActiveNamesInput) (*GetActiveNamesOutput, error) { + req, out := c.GetActiveNamesRequest(input) + err := req.Send() + return out, err +} + +const opGetBlueprints = "GetBlueprints" + +// GetBlueprintsRequest generates a "aws/request.Request" representing the +// client's request for the GetBlueprints operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetBlueprints for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetBlueprints method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetBlueprintsRequest method. +// req, resp := client.GetBlueprintsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBlueprints +func (c *Lightsail) GetBlueprintsRequest(input *GetBlueprintsInput) (req *request.Request, output *GetBlueprintsOutput) { + op := &request.Operation{ + Name: opGetBlueprints, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetBlueprintsInput{} + } + + output = &GetBlueprintsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetBlueprints API operation for Amazon Lightsail. +// +// Returns the list of available instance images, or blueprints. You can use +// a blueprint to create a new virtual private server already running a specific +// operating system, as well as a preinstalled app or development stack. The +// software each instance is running depends on the blueprint image you choose. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetBlueprints for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBlueprints +func (c *Lightsail) GetBlueprints(input *GetBlueprintsInput) (*GetBlueprintsOutput, error) { + req, out := c.GetBlueprintsRequest(input) + err := req.Send() + return out, err +} + +const opGetBundles = "GetBundles" + +// GetBundlesRequest generates a "aws/request.Request" representing the +// client's request for the GetBundles operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetBundles for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetBundles method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetBundlesRequest method. +// req, resp := client.GetBundlesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBundles +func (c *Lightsail) GetBundlesRequest(input *GetBundlesInput) (req *request.Request, output *GetBundlesOutput) { + op := &request.Operation{ + Name: opGetBundles, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetBundlesInput{} + } + + output = &GetBundlesOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetBundles API operation for Amazon Lightsail. +// +// Returns the list of bundles that are available for purchase. A bundle describes +// the specs for your virtual private server (or instance). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetBundles for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBundles +func (c *Lightsail) GetBundles(input *GetBundlesInput) (*GetBundlesOutput, error) { + req, out := c.GetBundlesRequest(input) + err := req.Send() + return out, err +} + +const opGetDomain = "GetDomain" + +// GetDomainRequest generates a "aws/request.Request" representing the +// client's request for the GetDomain operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetDomain for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetDomain method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetDomainRequest method. +// req, resp := client.GetDomainRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomain +func (c *Lightsail) GetDomainRequest(input *GetDomainInput) (req *request.Request, output *GetDomainOutput) { + op := &request.Operation{ + Name: opGetDomain, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetDomainInput{} + } + + output = &GetDomainOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDomain API operation for Amazon Lightsail. +// +// Returns information about a specific domain recordset. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetDomain for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomain +func (c *Lightsail) GetDomain(input *GetDomainInput) (*GetDomainOutput, error) { + req, out := c.GetDomainRequest(input) + err := req.Send() + return out, err +} + +const opGetDomains = "GetDomains" + +// GetDomainsRequest generates a "aws/request.Request" representing the +// client's request for the GetDomains operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetDomains for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetDomains method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetDomainsRequest method. +// req, resp := client.GetDomainsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomains +func (c *Lightsail) GetDomainsRequest(input *GetDomainsInput) (req *request.Request, output *GetDomainsOutput) { + op := &request.Operation{ + Name: opGetDomains, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetDomainsInput{} + } + + output = &GetDomainsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDomains API operation for Amazon Lightsail. +// +// Returns a list of all domains in the user's account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetDomains for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomains +func (c *Lightsail) GetDomains(input *GetDomainsInput) (*GetDomainsOutput, error) { + req, out := c.GetDomainsRequest(input) + err := req.Send() + return out, err +} + +const opGetInstance = "GetInstance" + +// GetInstanceRequest generates a "aws/request.Request" representing the +// client's request for the GetInstance operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetInstance for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetInstance method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetInstanceRequest method. +// req, resp := client.GetInstanceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstance +func (c *Lightsail) GetInstanceRequest(input *GetInstanceInput) (req *request.Request, output *GetInstanceOutput) { + op := &request.Operation{ + Name: opGetInstance, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetInstanceInput{} + } + + output = &GetInstanceOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetInstance API operation for Amazon Lightsail. +// +// Returns information about a specific Amazon Lightsail instance, which is +// a virtual private server. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetInstance for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstance +func (c *Lightsail) GetInstance(input *GetInstanceInput) (*GetInstanceOutput, error) { + req, out := c.GetInstanceRequest(input) + err := req.Send() + return out, err +} + +const opGetInstanceAccessDetails = "GetInstanceAccessDetails" + +// GetInstanceAccessDetailsRequest generates a "aws/request.Request" representing the +// client's request for the GetInstanceAccessDetails operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetInstanceAccessDetails for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetInstanceAccessDetails method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetInstanceAccessDetailsRequest method. +// req, resp := client.GetInstanceAccessDetailsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceAccessDetails +func (c *Lightsail) GetInstanceAccessDetailsRequest(input *GetInstanceAccessDetailsInput) (req *request.Request, output *GetInstanceAccessDetailsOutput) { + op := &request.Operation{ + Name: opGetInstanceAccessDetails, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetInstanceAccessDetailsInput{} + } + + output = &GetInstanceAccessDetailsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetInstanceAccessDetails API operation for Amazon Lightsail. +// +// Returns temporary SSH keys you can use to connect to a specific virtual private +// server, or instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetInstanceAccessDetails for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceAccessDetails +func (c *Lightsail) GetInstanceAccessDetails(input *GetInstanceAccessDetailsInput) (*GetInstanceAccessDetailsOutput, error) { + req, out := c.GetInstanceAccessDetailsRequest(input) + err := req.Send() + return out, err +} + +const opGetInstanceMetricData = "GetInstanceMetricData" + +// GetInstanceMetricDataRequest generates a "aws/request.Request" representing the +// client's request for the GetInstanceMetricData operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetInstanceMetricData for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetInstanceMetricData method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetInstanceMetricDataRequest method. +// req, resp := client.GetInstanceMetricDataRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceMetricData +func (c *Lightsail) GetInstanceMetricDataRequest(input *GetInstanceMetricDataInput) (req *request.Request, output *GetInstanceMetricDataOutput) { + op := &request.Operation{ + Name: opGetInstanceMetricData, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetInstanceMetricDataInput{} + } + + output = &GetInstanceMetricDataOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetInstanceMetricData API operation for Amazon Lightsail. +// +// Returns the data points for the specified Amazon Lightsail instance metric, +// given an instance name. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetInstanceMetricData for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceMetricData +func (c *Lightsail) GetInstanceMetricData(input *GetInstanceMetricDataInput) (*GetInstanceMetricDataOutput, error) { + req, out := c.GetInstanceMetricDataRequest(input) + err := req.Send() + return out, err +} + +const opGetInstancePortStates = "GetInstancePortStates" + +// GetInstancePortStatesRequest generates a "aws/request.Request" representing the +// client's request for the GetInstancePortStates operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetInstancePortStates for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetInstancePortStates method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetInstancePortStatesRequest method. +// req, resp := client.GetInstancePortStatesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstancePortStates +func (c *Lightsail) GetInstancePortStatesRequest(input *GetInstancePortStatesInput) (req *request.Request, output *GetInstancePortStatesOutput) { + op := &request.Operation{ + Name: opGetInstancePortStates, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetInstancePortStatesInput{} + } + + output = &GetInstancePortStatesOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetInstancePortStates API operation for Amazon Lightsail. +// +// Returns the port states for a specific virtual private server, or instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetInstancePortStates for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstancePortStates +func (c *Lightsail) GetInstancePortStates(input *GetInstancePortStatesInput) (*GetInstancePortStatesOutput, error) { + req, out := c.GetInstancePortStatesRequest(input) + err := req.Send() + return out, err +} + +const opGetInstanceSnapshot = "GetInstanceSnapshot" + +// GetInstanceSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the GetInstanceSnapshot operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetInstanceSnapshot for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetInstanceSnapshot method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetInstanceSnapshotRequest method. +// req, resp := client.GetInstanceSnapshotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshot +func (c *Lightsail) GetInstanceSnapshotRequest(input *GetInstanceSnapshotInput) (req *request.Request, output *GetInstanceSnapshotOutput) { + op := &request.Operation{ + Name: opGetInstanceSnapshot, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetInstanceSnapshotInput{} + } + + output = &GetInstanceSnapshotOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetInstanceSnapshot API operation for Amazon Lightsail. +// +// Returns information about a specific instance snapshot. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetInstanceSnapshot for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshot +func (c *Lightsail) GetInstanceSnapshot(input *GetInstanceSnapshotInput) (*GetInstanceSnapshotOutput, error) { + req, out := c.GetInstanceSnapshotRequest(input) + err := req.Send() + return out, err +} + +const opGetInstanceSnapshots = "GetInstanceSnapshots" + +// GetInstanceSnapshotsRequest generates a "aws/request.Request" representing the +// client's request for the GetInstanceSnapshots operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetInstanceSnapshots for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetInstanceSnapshots method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetInstanceSnapshotsRequest method. +// req, resp := client.GetInstanceSnapshotsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshots +func (c *Lightsail) GetInstanceSnapshotsRequest(input *GetInstanceSnapshotsInput) (req *request.Request, output *GetInstanceSnapshotsOutput) { + op := &request.Operation{ + Name: opGetInstanceSnapshots, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetInstanceSnapshotsInput{} + } + + output = &GetInstanceSnapshotsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetInstanceSnapshots API operation for Amazon Lightsail. +// +// Returns all instance snapshots for the user's account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetInstanceSnapshots for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshots +func (c *Lightsail) GetInstanceSnapshots(input *GetInstanceSnapshotsInput) (*GetInstanceSnapshotsOutput, error) { + req, out := c.GetInstanceSnapshotsRequest(input) + err := req.Send() + return out, err +} + +const opGetInstanceState = "GetInstanceState" + +// GetInstanceStateRequest generates a "aws/request.Request" representing the +// client's request for the GetInstanceState operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetInstanceState for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetInstanceState method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetInstanceStateRequest method. +// req, resp := client.GetInstanceStateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceState +func (c *Lightsail) GetInstanceStateRequest(input *GetInstanceStateInput) (req *request.Request, output *GetInstanceStateOutput) { + op := &request.Operation{ + Name: opGetInstanceState, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetInstanceStateInput{} + } + + output = &GetInstanceStateOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetInstanceState API operation for Amazon Lightsail. +// +// Returns the state of a specific instance. Works on one instance at a time. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetInstanceState for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceState +func (c *Lightsail) GetInstanceState(input *GetInstanceStateInput) (*GetInstanceStateOutput, error) { + req, out := c.GetInstanceStateRequest(input) + err := req.Send() + return out, err +} + +const opGetInstances = "GetInstances" + +// GetInstancesRequest generates a "aws/request.Request" representing the +// client's request for the GetInstances operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetInstances for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetInstances method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetInstancesRequest method. +// req, resp := client.GetInstancesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstances +func (c *Lightsail) GetInstancesRequest(input *GetInstancesInput) (req *request.Request, output *GetInstancesOutput) { + op := &request.Operation{ + Name: opGetInstances, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetInstancesInput{} + } + + output = &GetInstancesOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetInstances API operation for Amazon Lightsail. +// +// Returns information about all Amazon Lightsail virtual private servers, or +// instances. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetInstances for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstances +func (c *Lightsail) GetInstances(input *GetInstancesInput) (*GetInstancesOutput, error) { + req, out := c.GetInstancesRequest(input) + err := req.Send() + return out, err +} + +const opGetKeyPair = "GetKeyPair" + +// GetKeyPairRequest generates a "aws/request.Request" representing the +// client's request for the GetKeyPair operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetKeyPair for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetKeyPair method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetKeyPairRequest method. +// req, resp := client.GetKeyPairRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPair +func (c *Lightsail) GetKeyPairRequest(input *GetKeyPairInput) (req *request.Request, output *GetKeyPairOutput) { + op := &request.Operation{ + Name: opGetKeyPair, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetKeyPairInput{} + } + + output = &GetKeyPairOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetKeyPair API operation for Amazon Lightsail. +// +// Returns information about a specific key pair. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetKeyPair for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPair +func (c *Lightsail) GetKeyPair(input *GetKeyPairInput) (*GetKeyPairOutput, error) { + req, out := c.GetKeyPairRequest(input) + err := req.Send() + return out, err +} + +const opGetKeyPairs = "GetKeyPairs" + +// GetKeyPairsRequest generates a "aws/request.Request" representing the +// client's request for the GetKeyPairs operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetKeyPairs for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetKeyPairs method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetKeyPairsRequest method. +// req, resp := client.GetKeyPairsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPairs +func (c *Lightsail) GetKeyPairsRequest(input *GetKeyPairsInput) (req *request.Request, output *GetKeyPairsOutput) { + op := &request.Operation{ + Name: opGetKeyPairs, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetKeyPairsInput{} + } + + output = &GetKeyPairsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetKeyPairs API operation for Amazon Lightsail. +// +// Returns information about all key pairs in the user's account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetKeyPairs for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPairs +func (c *Lightsail) GetKeyPairs(input *GetKeyPairsInput) (*GetKeyPairsOutput, error) { + req, out := c.GetKeyPairsRequest(input) + err := req.Send() + return out, err +} + +const opGetOperation = "GetOperation" + +// GetOperationRequest generates a "aws/request.Request" representing the +// client's request for the GetOperation operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetOperation for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetOperation method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetOperationRequest method. +// req, resp := client.GetOperationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperation +func (c *Lightsail) GetOperationRequest(input *GetOperationInput) (req *request.Request, output *GetOperationOutput) { + op := &request.Operation{ + Name: opGetOperation, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetOperationInput{} + } + + output = &GetOperationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetOperation API operation for Amazon Lightsail. +// +// Returns information about a specific operation. Operations include events +// such as when you create an instance, allocate a static IP, attach a static +// IP, and so on. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetOperation for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperation +func (c *Lightsail) GetOperation(input *GetOperationInput) (*GetOperationOutput, error) { + req, out := c.GetOperationRequest(input) + err := req.Send() + return out, err +} + +const opGetOperations = "GetOperations" + +// GetOperationsRequest generates a "aws/request.Request" representing the +// client's request for the GetOperations operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetOperations for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetOperations method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetOperationsRequest method. +// req, resp := client.GetOperationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperations +func (c *Lightsail) GetOperationsRequest(input *GetOperationsInput) (req *request.Request, output *GetOperationsOutput) { + op := &request.Operation{ + Name: opGetOperations, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetOperationsInput{} + } + + output = &GetOperationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetOperations API operation for Amazon Lightsail. +// +// Returns information about all operations. +// +// Results are returned from oldest to newest, up to a maximum of 200. Results +// can be paged by making each subsequent call to GetOperations use the maximum +// (last) statusChangedAt value from the previous request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetOperations for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperations +func (c *Lightsail) GetOperations(input *GetOperationsInput) (*GetOperationsOutput, error) { + req, out := c.GetOperationsRequest(input) + err := req.Send() + return out, err +} + +const opGetOperationsForResource = "GetOperationsForResource" + +// GetOperationsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the GetOperationsForResource operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetOperationsForResource for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetOperationsForResource method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetOperationsForResourceRequest method. +// req, resp := client.GetOperationsForResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperationsForResource +func (c *Lightsail) GetOperationsForResourceRequest(input *GetOperationsForResourceInput) (req *request.Request, output *GetOperationsForResourceOutput) { + op := &request.Operation{ + Name: opGetOperationsForResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetOperationsForResourceInput{} + } + + output = &GetOperationsForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetOperationsForResource API operation for Amazon Lightsail. +// +// Gets operations for a specific resource (e.g., an instance or a static IP). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetOperationsForResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperationsForResource +func (c *Lightsail) GetOperationsForResource(input *GetOperationsForResourceInput) (*GetOperationsForResourceOutput, error) { + req, out := c.GetOperationsForResourceRequest(input) + err := req.Send() + return out, err +} + +const opGetRegions = "GetRegions" + +// GetRegionsRequest generates a "aws/request.Request" representing the +// client's request for the GetRegions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetRegions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetRegions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetRegionsRequest method. +// req, resp := client.GetRegionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRegions +func (c *Lightsail) GetRegionsRequest(input *GetRegionsInput) (req *request.Request, output *GetRegionsOutput) { + op := &request.Operation{ + Name: opGetRegions, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetRegionsInput{} + } + + output = &GetRegionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetRegions API operation for Amazon Lightsail. +// +// Returns a list of all valid regions for Amazon Lightsail. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetRegions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRegions +func (c *Lightsail) GetRegions(input *GetRegionsInput) (*GetRegionsOutput, error) { + req, out := c.GetRegionsRequest(input) + err := req.Send() + return out, err +} + +const opGetStaticIp = "GetStaticIp" + +// GetStaticIpRequest generates a "aws/request.Request" representing the +// client's request for the GetStaticIp operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetStaticIp for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetStaticIp method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetStaticIpRequest method. +// req, resp := client.GetStaticIpRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIp +func (c *Lightsail) GetStaticIpRequest(input *GetStaticIpInput) (req *request.Request, output *GetStaticIpOutput) { + op := &request.Operation{ + Name: opGetStaticIp, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetStaticIpInput{} + } + + output = &GetStaticIpOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetStaticIp API operation for Amazon Lightsail. +// +// Returns information about a specific static IP. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetStaticIp for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIp +func (c *Lightsail) GetStaticIp(input *GetStaticIpInput) (*GetStaticIpOutput, error) { + req, out := c.GetStaticIpRequest(input) + err := req.Send() + return out, err +} + +const opGetStaticIps = "GetStaticIps" + +// GetStaticIpsRequest generates a "aws/request.Request" representing the +// client's request for the GetStaticIps operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetStaticIps for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetStaticIps method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetStaticIpsRequest method. +// req, resp := client.GetStaticIpsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIps +func (c *Lightsail) GetStaticIpsRequest(input *GetStaticIpsInput) (req *request.Request, output *GetStaticIpsOutput) { + op := &request.Operation{ + Name: opGetStaticIps, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetStaticIpsInput{} + } + + output = &GetStaticIpsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetStaticIps API operation for Amazon Lightsail. +// +// Returns information about all static IPs in the user's account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation GetStaticIps for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIps +func (c *Lightsail) GetStaticIps(input *GetStaticIpsInput) (*GetStaticIpsOutput, error) { + req, out := c.GetStaticIpsRequest(input) + err := req.Send() + return out, err +} + +const opImportKeyPair = "ImportKeyPair" + +// ImportKeyPairRequest generates a "aws/request.Request" representing the +// client's request for the ImportKeyPair operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ImportKeyPair for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ImportKeyPair method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ImportKeyPairRequest method. +// req, resp := client.ImportKeyPairRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ImportKeyPair +func (c *Lightsail) ImportKeyPairRequest(input *ImportKeyPairInput) (req *request.Request, output *ImportKeyPairOutput) { + op := &request.Operation{ + Name: opImportKeyPair, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ImportKeyPairInput{} + } + + output = &ImportKeyPairOutput{} + req = c.newRequest(op, input, output) + return +} + +// ImportKeyPair API operation for Amazon Lightsail. +// +// Imports a public SSH key from a specific key pair. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation ImportKeyPair for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ImportKeyPair +func (c *Lightsail) ImportKeyPair(input *ImportKeyPairInput) (*ImportKeyPairOutput, error) { + req, out := c.ImportKeyPairRequest(input) + err := req.Send() + return out, err +} + +const opIsVpcPeered = "IsVpcPeered" + +// IsVpcPeeredRequest generates a "aws/request.Request" representing the +// client's request for the IsVpcPeered operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See IsVpcPeered for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the IsVpcPeered method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the IsVpcPeeredRequest method. +// req, resp := client.IsVpcPeeredRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/IsVpcPeered +func (c *Lightsail) IsVpcPeeredRequest(input *IsVpcPeeredInput) (req *request.Request, output *IsVpcPeeredOutput) { + op := &request.Operation{ + Name: opIsVpcPeered, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &IsVpcPeeredInput{} + } + + output = &IsVpcPeeredOutput{} + req = c.newRequest(op, input, output) + return +} + +// IsVpcPeered API operation for Amazon Lightsail. +// +// Returns a Boolean value indicating whether your Lightsail VPC is peered. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation IsVpcPeered for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/IsVpcPeered +func (c *Lightsail) IsVpcPeered(input *IsVpcPeeredInput) (*IsVpcPeeredOutput, error) { + req, out := c.IsVpcPeeredRequest(input) + err := req.Send() + return out, err +} + +const opOpenInstancePublicPorts = "OpenInstancePublicPorts" + +// OpenInstancePublicPortsRequest generates a "aws/request.Request" representing the +// client's request for the OpenInstancePublicPorts operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See OpenInstancePublicPorts for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the OpenInstancePublicPorts method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the OpenInstancePublicPortsRequest method. +// req, resp := client.OpenInstancePublicPortsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/OpenInstancePublicPorts +func (c *Lightsail) OpenInstancePublicPortsRequest(input *OpenInstancePublicPortsInput) (req *request.Request, output *OpenInstancePublicPortsOutput) { + op := &request.Operation{ + Name: opOpenInstancePublicPorts, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &OpenInstancePublicPortsInput{} + } + + output = &OpenInstancePublicPortsOutput{} + req = c.newRequest(op, input, output) + return +} + +// OpenInstancePublicPorts API operation for Amazon Lightsail. +// +// Adds public ports to an Amazon Lightsail instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation OpenInstancePublicPorts for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/OpenInstancePublicPorts +func (c *Lightsail) OpenInstancePublicPorts(input *OpenInstancePublicPortsInput) (*OpenInstancePublicPortsOutput, error) { + req, out := c.OpenInstancePublicPortsRequest(input) + err := req.Send() + return out, err +} + +const opPeerVpc = "PeerVpc" + +// PeerVpcRequest generates a "aws/request.Request" representing the +// client's request for the PeerVpc operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See PeerVpc for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the PeerVpc method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the PeerVpcRequest method. +// req, resp := client.PeerVpcRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/PeerVpc +func (c *Lightsail) PeerVpcRequest(input *PeerVpcInput) (req *request.Request, output *PeerVpcOutput) { + op := &request.Operation{ + Name: opPeerVpc, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PeerVpcInput{} + } + + output = &PeerVpcOutput{} + req = c.newRequest(op, input, output) + return +} + +// PeerVpc API operation for Amazon Lightsail. +// +// Tries to peer the Lightsail VPC with the user's default VPC. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation PeerVpc for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/PeerVpc +func (c *Lightsail) PeerVpc(input *PeerVpcInput) (*PeerVpcOutput, error) { + req, out := c.PeerVpcRequest(input) + err := req.Send() + return out, err +} + +const opRebootInstance = "RebootInstance" + +// RebootInstanceRequest generates a "aws/request.Request" representing the +// client's request for the RebootInstance operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See RebootInstance for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the RebootInstance method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the RebootInstanceRequest method. +// req, resp := client.RebootInstanceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/RebootInstance +func (c *Lightsail) RebootInstanceRequest(input *RebootInstanceInput) (req *request.Request, output *RebootInstanceOutput) { + op := &request.Operation{ + Name: opRebootInstance, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RebootInstanceInput{} + } + + output = &RebootInstanceOutput{} + req = c.newRequest(op, input, output) + return +} + +// RebootInstance API operation for Amazon Lightsail. +// +// Restarts a specific instance. When your Amazon Lightsail instance is finished +// rebooting, Lightsail assigns a new public IP address. To use the same IP +// address after restarting, create a static IP address and attach it to the +// instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation RebootInstance for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/RebootInstance +func (c *Lightsail) RebootInstance(input *RebootInstanceInput) (*RebootInstanceOutput, error) { + req, out := c.RebootInstanceRequest(input) + err := req.Send() + return out, err +} + +const opReleaseStaticIp = "ReleaseStaticIp" + +// ReleaseStaticIpRequest generates a "aws/request.Request" representing the +// client's request for the ReleaseStaticIp operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ReleaseStaticIp for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ReleaseStaticIp method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ReleaseStaticIpRequest method. +// req, resp := client.ReleaseStaticIpRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ReleaseStaticIp +func (c *Lightsail) ReleaseStaticIpRequest(input *ReleaseStaticIpInput) (req *request.Request, output *ReleaseStaticIpOutput) { + op := &request.Operation{ + Name: opReleaseStaticIp, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ReleaseStaticIpInput{} + } + + output = &ReleaseStaticIpOutput{} + req = c.newRequest(op, input, output) + return +} + +// ReleaseStaticIp API operation for Amazon Lightsail. +// +// Deletes a specific static IP from your account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation ReleaseStaticIp for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ReleaseStaticIp +func (c *Lightsail) ReleaseStaticIp(input *ReleaseStaticIpInput) (*ReleaseStaticIpOutput, error) { + req, out := c.ReleaseStaticIpRequest(input) + err := req.Send() + return out, err +} + +const opStartInstance = "StartInstance" + +// StartInstanceRequest generates a "aws/request.Request" representing the +// client's request for the StartInstance operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See StartInstance for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the StartInstance method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the StartInstanceRequest method. +// req, resp := client.StartInstanceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StartInstance +func (c *Lightsail) StartInstanceRequest(input *StartInstanceInput) (req *request.Request, output *StartInstanceOutput) { + op := &request.Operation{ + Name: opStartInstance, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartInstanceInput{} + } + + output = &StartInstanceOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartInstance API operation for Amazon Lightsail. +// +// Starts a specific Amazon Lightsail instance from a stopped state. To restart +// an instance, use the reboot instance operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation StartInstance for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StartInstance +func (c *Lightsail) StartInstance(input *StartInstanceInput) (*StartInstanceOutput, error) { + req, out := c.StartInstanceRequest(input) + err := req.Send() + return out, err +} + +const opStopInstance = "StopInstance" + +// StopInstanceRequest generates a "aws/request.Request" representing the +// client's request for the StopInstance operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See StopInstance for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the StopInstance method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the StopInstanceRequest method. +// req, resp := client.StopInstanceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StopInstance +func (c *Lightsail) StopInstanceRequest(input *StopInstanceInput) (req *request.Request, output *StopInstanceOutput) { + op := &request.Operation{ + Name: opStopInstance, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopInstanceInput{} + } + + output = &StopInstanceOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopInstance API operation for Amazon Lightsail. +// +// Stops a specific Amazon Lightsail instance that is currently running. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation StopInstance for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StopInstance +func (c *Lightsail) StopInstance(input *StopInstanceInput) (*StopInstanceOutput, error) { + req, out := c.StopInstanceRequest(input) + err := req.Send() + return out, err +} + +const opUnpeerVpc = "UnpeerVpc" + +// UnpeerVpcRequest generates a "aws/request.Request" representing the +// client's request for the UnpeerVpc operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UnpeerVpc for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UnpeerVpc method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UnpeerVpcRequest method. +// req, resp := client.UnpeerVpcRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UnpeerVpc +func (c *Lightsail) UnpeerVpcRequest(input *UnpeerVpcInput) (req *request.Request, output *UnpeerVpcOutput) { + op := &request.Operation{ + Name: opUnpeerVpc, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UnpeerVpcInput{} + } + + output = &UnpeerVpcOutput{} + req = c.newRequest(op, input, output) + return +} + +// UnpeerVpc API operation for Amazon Lightsail. +// +// Attempts to unpeer the Lightsail VPC from the user's default VPC. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation UnpeerVpc for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UnpeerVpc +func (c *Lightsail) UnpeerVpc(input *UnpeerVpcInput) (*UnpeerVpcOutput, error) { + req, out := c.UnpeerVpcRequest(input) + err := req.Send() + return out, err +} + +const opUpdateDomainEntry = "UpdateDomainEntry" + +// UpdateDomainEntryRequest generates a "aws/request.Request" representing the +// client's request for the UpdateDomainEntry operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateDomainEntry for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateDomainEntry method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateDomainEntryRequest method. +// req, resp := client.UpdateDomainEntryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateDomainEntry +func (c *Lightsail) UpdateDomainEntryRequest(input *UpdateDomainEntryInput) (req *request.Request, output *UpdateDomainEntryOutput) { + op := &request.Operation{ + Name: opUpdateDomainEntry, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateDomainEntryInput{} + } + + output = &UpdateDomainEntryOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateDomainEntry API operation for Amazon Lightsail. +// +// Updates a domain recordset after it is created. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lightsail's +// API operation UpdateDomainEntry for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// A general service exception. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// * ErrCodeNotFoundException "NotFoundException" +// Lightsail throws this exception when it cannot find a resource. +// +// * ErrCodeOperationFailureException "OperationFailureException" +// Lightsail throws this exception when an operation fails to execute. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +// +// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// Lightsail throws this exception when an account is still in the setup in +// progress state. +// +// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// Lightsail throws this exception when the user has not been authenticated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateDomainEntry +func (c *Lightsail) UpdateDomainEntry(input *UpdateDomainEntryInput) (*UpdateDomainEntryOutput, error) { + req, out := c.UpdateDomainEntryRequest(input) + err := req.Send() + return out, err +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AllocateStaticIpRequest +type AllocateStaticIpInput struct { + _ struct{} `type:"structure"` + + // The name of the static IP address. + // + // StaticIpName is a required field + StaticIpName *string `locationName:"staticIpName" type:"string" required:"true"` +} + +// String returns the string representation +func (s AllocateStaticIpInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AllocateStaticIpInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AllocateStaticIpInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AllocateStaticIpInput"} + if s.StaticIpName == nil { + invalidParams.Add(request.NewErrParamRequired("StaticIpName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetStaticIpName sets the StaticIpName field's value. +func (s *AllocateStaticIpInput) SetStaticIpName(v string) *AllocateStaticIpInput { + s.StaticIpName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AllocateStaticIpResult +type AllocateStaticIpOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the static IP address + // you allocated. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s AllocateStaticIpOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AllocateStaticIpOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *AllocateStaticIpOutput) SetOperations(v []*Operation) *AllocateStaticIpOutput { + s.Operations = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AttachStaticIpRequest +type AttachStaticIpInput struct { + _ struct{} `type:"structure"` + + // The instance name to which you want to attach the static IP address. + // + // InstanceName is a required field + InstanceName *string `locationName:"instanceName" type:"string" required:"true"` + + // The name of the static IP. + // + // StaticIpName is a required field + StaticIpName *string `locationName:"staticIpName" type:"string" required:"true"` +} + +// String returns the string representation +func (s AttachStaticIpInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachStaticIpInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AttachStaticIpInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AttachStaticIpInput"} + if s.InstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceName")) + } + if s.StaticIpName == nil { + invalidParams.Add(request.NewErrParamRequired("StaticIpName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceName sets the InstanceName field's value. +func (s *AttachStaticIpInput) SetInstanceName(v string) *AttachStaticIpInput { + s.InstanceName = &v + return s +} + +// SetStaticIpName sets the StaticIpName field's value. +func (s *AttachStaticIpInput) SetStaticIpName(v string) *AttachStaticIpInput { + s.StaticIpName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AttachStaticIpResult +type AttachStaticIpOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about your API operations. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s AttachStaticIpOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachStaticIpOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *AttachStaticIpOutput) SetOperations(v []*Operation) *AttachStaticIpOutput { + s.Operations = v + return s +} + +// Describes an Availability Zone. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AvailabilityZone +type AvailabilityZone struct { + _ struct{} `type:"structure"` + + // The state of the Availability Zone. + State *string `locationName:"state" type:"string"` + + // The name of the Availability Zone. + ZoneName *string `locationName:"zoneName" type:"string"` +} + +// String returns the string representation +func (s AvailabilityZone) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AvailabilityZone) GoString() string { + return s.String() +} + +// SetState sets the State field's value. +func (s *AvailabilityZone) SetState(v string) *AvailabilityZone { + s.State = &v + return s +} + +// SetZoneName sets the ZoneName field's value. +func (s *AvailabilityZone) SetZoneName(v string) *AvailabilityZone { + s.ZoneName = &v + return s +} + +// Describes a blueprint (a virtual private server image). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/Blueprint +type Blueprint struct { + _ struct{} `type:"structure"` + + // The ID for the virtual private server image (e.g., app_wordpress_4_4 or app_lamp_7_0). + BlueprintId *string `locationName:"blueprintId" type:"string"` + + // The description of the blueprint. + Description *string `locationName:"description" type:"string"` + + // The group name of the blueprint (e.g., amazon-linux). + Group *string `locationName:"group" type:"string"` + + // A Boolean value indicating whether the blueprint is active. When you update + // your blueprints, you will inactivate old blueprints and keep the most recent + // versions active. + IsActive *bool `locationName:"isActive" type:"boolean"` + + // The end-user license agreement URL for the image or blueprint. + LicenseUrl *string `locationName:"licenseUrl" type:"string"` + + // The minimum machine size required to run this blueprint. 0 indicates that + // the blueprint runs on all instances. + MinPower *int64 `locationName:"minPower" type:"integer"` + + // The friendly name of the blueprint (e.g., Amazon Linux). + Name *string `locationName:"name" type:"string"` + + // The product URL to learn more about the image or blueprint. + ProductUrl *string `locationName:"productUrl" type:"string"` + + // The type of the blueprint (e.g., os or app). + Type *string `locationName:"type" type:"string" enum:"BlueprintType"` + + // The version number of the operating system, application, or stack (e.g., + // 2016.03.0). + Version *string `locationName:"version" type:"string"` + + // The version code. + VersionCode *string `locationName:"versionCode" type:"string"` +} + +// String returns the string representation +func (s Blueprint) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Blueprint) GoString() string { + return s.String() +} + +// SetBlueprintId sets the BlueprintId field's value. +func (s *Blueprint) SetBlueprintId(v string) *Blueprint { + s.BlueprintId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Blueprint) SetDescription(v string) *Blueprint { + s.Description = &v + return s +} + +// SetGroup sets the Group field's value. +func (s *Blueprint) SetGroup(v string) *Blueprint { + s.Group = &v + return s +} + +// SetIsActive sets the IsActive field's value. +func (s *Blueprint) SetIsActive(v bool) *Blueprint { + s.IsActive = &v + return s +} + +// SetLicenseUrl sets the LicenseUrl field's value. +func (s *Blueprint) SetLicenseUrl(v string) *Blueprint { + s.LicenseUrl = &v + return s +} + +// SetMinPower sets the MinPower field's value. +func (s *Blueprint) SetMinPower(v int64) *Blueprint { + s.MinPower = &v + return s +} + +// SetName sets the Name field's value. +func (s *Blueprint) SetName(v string) *Blueprint { + s.Name = &v + return s +} + +// SetProductUrl sets the ProductUrl field's value. +func (s *Blueprint) SetProductUrl(v string) *Blueprint { + s.ProductUrl = &v + return s +} + +// SetType sets the Type field's value. +func (s *Blueprint) SetType(v string) *Blueprint { + s.Type = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *Blueprint) SetVersion(v string) *Blueprint { + s.Version = &v + return s +} + +// SetVersionCode sets the VersionCode field's value. +func (s *Blueprint) SetVersionCode(v string) *Blueprint { + s.VersionCode = &v + return s +} + +// Describes a bundle, which is a set of specs describing your virtual private +// server (or instance). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/Bundle +type Bundle struct { + _ struct{} `type:"structure"` + + // The bundle ID (e.g., micro_1_0). + BundleId *string `locationName:"bundleId" type:"string"` + + // The number of vCPUs included in the bundle (e.g., 2). + CpuCount *int64 `locationName:"cpuCount" type:"integer"` + + // The size of the SSD (e.g., 30). + DiskSizeInGb *int64 `locationName:"diskSizeInGb" type:"integer"` + + // The Amazon EC2 instance type (e.g., t2.micro). + InstanceType *string `locationName:"instanceType" type:"string"` + + // A Boolean value indicating whether the bundle is active. + IsActive *bool `locationName:"isActive" type:"boolean"` + + // A friendly name for the bundle (e.g., Micro). + Name *string `locationName:"name" type:"string"` + + // The power of the bundle (e.g., 500). + Power *int64 `locationName:"power" type:"integer"` + + // The price in US dollars (e.g., 5.0). + Price *float64 `locationName:"price" type:"float"` + + // The amount of RAM in GB (e.g., 2.0). + RamSizeInGb *float64 `locationName:"ramSizeInGb" type:"float"` + + // The data transfer rate per month in GB (e.g., 2000). + TransferPerMonthInGb *int64 `locationName:"transferPerMonthInGb" type:"integer"` +} + +// String returns the string representation +func (s Bundle) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Bundle) GoString() string { + return s.String() +} + +// SetBundleId sets the BundleId field's value. +func (s *Bundle) SetBundleId(v string) *Bundle { + s.BundleId = &v + return s +} + +// SetCpuCount sets the CpuCount field's value. +func (s *Bundle) SetCpuCount(v int64) *Bundle { + s.CpuCount = &v + return s +} + +// SetDiskSizeInGb sets the DiskSizeInGb field's value. +func (s *Bundle) SetDiskSizeInGb(v int64) *Bundle { + s.DiskSizeInGb = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *Bundle) SetInstanceType(v string) *Bundle { + s.InstanceType = &v + return s +} + +// SetIsActive sets the IsActive field's value. +func (s *Bundle) SetIsActive(v bool) *Bundle { + s.IsActive = &v + return s +} + +// SetName sets the Name field's value. +func (s *Bundle) SetName(v string) *Bundle { + s.Name = &v + return s +} + +// SetPower sets the Power field's value. +func (s *Bundle) SetPower(v int64) *Bundle { + s.Power = &v + return s +} + +// SetPrice sets the Price field's value. +func (s *Bundle) SetPrice(v float64) *Bundle { + s.Price = &v + return s +} + +// SetRamSizeInGb sets the RamSizeInGb field's value. +func (s *Bundle) SetRamSizeInGb(v float64) *Bundle { + s.RamSizeInGb = &v + return s +} + +// SetTransferPerMonthInGb sets the TransferPerMonthInGb field's value. +func (s *Bundle) SetTransferPerMonthInGb(v int64) *Bundle { + s.TransferPerMonthInGb = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CloseInstancePublicPortsRequest +type CloseInstancePublicPortsInput struct { + _ struct{} `type:"structure"` + + // The name of the instance on which you're attempting to close the public ports. + // + // InstanceName is a required field + InstanceName *string `locationName:"instanceName" type:"string" required:"true"` + + // Information about the public port you are trying to close. + // + // PortInfo is a required field + PortInfo *PortInfo `locationName:"portInfo" type:"structure" required:"true"` +} + +// String returns the string representation +func (s CloseInstancePublicPortsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloseInstancePublicPortsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CloseInstancePublicPortsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CloseInstancePublicPortsInput"} + if s.InstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceName")) + } + if s.PortInfo == nil { + invalidParams.Add(request.NewErrParamRequired("PortInfo")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceName sets the InstanceName field's value. +func (s *CloseInstancePublicPortsInput) SetInstanceName(v string) *CloseInstancePublicPortsInput { + s.InstanceName = &v + return s +} + +// SetPortInfo sets the PortInfo field's value. +func (s *CloseInstancePublicPortsInput) SetPortInfo(v *PortInfo) *CloseInstancePublicPortsInput { + s.PortInfo = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CloseInstancePublicPortsResult +type CloseInstancePublicPortsOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs that contains information about the operation. + Operation *Operation `locationName:"operation" type:"structure"` +} + +// String returns the string representation +func (s CloseInstancePublicPortsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloseInstancePublicPortsOutput) GoString() string { + return s.String() +} + +// SetOperation sets the Operation field's value. +func (s *CloseInstancePublicPortsOutput) SetOperation(v *Operation) *CloseInstancePublicPortsOutput { + s.Operation = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDomainEntryRequest +type CreateDomainEntryInput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the domain entry + // request. + // + // DomainEntry is a required field + DomainEntry *DomainEntry `locationName:"domainEntry" type:"structure" required:"true"` + + // The domain name (e.g., example.com) for which you want to create the domain + // entry. + // + // DomainName is a required field + DomainName *string `locationName:"domainName" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateDomainEntryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDomainEntryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDomainEntryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDomainEntryInput"} + if s.DomainEntry == nil { + invalidParams.Add(request.NewErrParamRequired("DomainEntry")) + } + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainEntry sets the DomainEntry field's value. +func (s *CreateDomainEntryInput) SetDomainEntry(v *DomainEntry) *CreateDomainEntryInput { + s.DomainEntry = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *CreateDomainEntryInput) SetDomainName(v string) *CreateDomainEntryInput { + s.DomainName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDomainEntryResult +type CreateDomainEntryOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the operation. + Operation *Operation `locationName:"operation" type:"structure"` +} + +// String returns the string representation +func (s CreateDomainEntryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDomainEntryOutput) GoString() string { + return s.String() +} + +// SetOperation sets the Operation field's value. +func (s *CreateDomainEntryOutput) SetOperation(v *Operation) *CreateDomainEntryOutput { + s.Operation = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDomainRequest +type CreateDomainInput struct { + _ struct{} `type:"structure"` + + // The domain name to manage (e.g., example.com). + // + // You cannot register a new domain name using Lightsail. You must register + // a domain name using Amazon Route 53 or another domain name registrar. If + // you have already registered your domain, you can enter its name in this parameter + // to manage the DNS records for that domain. + // + // DomainName is a required field + DomainName *string `locationName:"domainName" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateDomainInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDomainInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDomainInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDomainInput"} + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *CreateDomainInput) SetDomainName(v string) *CreateDomainInput { + s.DomainName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDomainResult +type CreateDomainOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the domain resource + // you created. + Operation *Operation `locationName:"operation" type:"structure"` +} + +// String returns the string representation +func (s CreateDomainOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDomainOutput) GoString() string { + return s.String() +} + +// SetOperation sets the Operation field's value. +func (s *CreateDomainOutput) SetOperation(v *Operation) *CreateDomainOutput { + s.Operation = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstanceSnapshotRequest +type CreateInstanceSnapshotInput struct { + _ struct{} `type:"structure"` + + // The Lightsail instance on which to base your snapshot. + // + // InstanceName is a required field + InstanceName *string `locationName:"instanceName" type:"string" required:"true"` + + // The name for your new snapshot. + // + // InstanceSnapshotName is a required field + InstanceSnapshotName *string `locationName:"instanceSnapshotName" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateInstanceSnapshotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateInstanceSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateInstanceSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateInstanceSnapshotInput"} + if s.InstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceName")) + } + if s.InstanceSnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceSnapshotName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceName sets the InstanceName field's value. +func (s *CreateInstanceSnapshotInput) SetInstanceName(v string) *CreateInstanceSnapshotInput { + s.InstanceName = &v + return s +} + +// SetInstanceSnapshotName sets the InstanceSnapshotName field's value. +func (s *CreateInstanceSnapshotInput) SetInstanceSnapshotName(v string) *CreateInstanceSnapshotInput { + s.InstanceSnapshotName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstanceSnapshotResult +type CreateInstanceSnapshotOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the results of your + // create instances snapshot request. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s CreateInstanceSnapshotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateInstanceSnapshotOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *CreateInstanceSnapshotOutput) SetOperations(v []*Operation) *CreateInstanceSnapshotOutput { + s.Operations = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstancesFromSnapshotRequest +type CreateInstancesFromSnapshotInput struct { + _ struct{} `type:"structure"` + + // The Availability Zone where you want to create your instances. Use the following + // formatting: us-east-1a (case sensitive). + // + // AvailabilityZone is a required field + AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"` + + // The bundle of specification information for your virtual private server (or + // instance), including the pricing plan (e.g., micro_1_0). + // + // BundleId is a required field + BundleId *string `locationName:"bundleId" type:"string" required:"true"` + + // The names for your new instances. + // + // InstanceNames is a required field + InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"` + + // The name of the instance snapshot on which you are basing your new instances. + // Use the get instance snapshots operation to return information about your + // existing snapshots. + // + // InstanceSnapshotName is a required field + InstanceSnapshotName *string `locationName:"instanceSnapshotName" type:"string" required:"true"` + + // The name for your key pair. + KeyPairName *string `locationName:"keyPairName" type:"string"` + + // You can create a launch script that configures a server with additional user + // data. For example, apt-get –y update. + // + // Depending on the machine image you choose, the command to get software on + // your instance varies. Amazon Linux and CentOS use yum, Debian and Ubuntu + // use apt-get, and FreeBSD uses pkg. For a complete list, see the Dev Guide + // (http://lightsail.aws.amazon.com/ls/docs/getting-started/articles/pre-installed-apps). + UserData *string `locationName:"userData" type:"string"` +} + +// String returns the string representation +func (s CreateInstancesFromSnapshotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateInstancesFromSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateInstancesFromSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateInstancesFromSnapshotInput"} + if s.AvailabilityZone == nil { + invalidParams.Add(request.NewErrParamRequired("AvailabilityZone")) + } + if s.BundleId == nil { + invalidParams.Add(request.NewErrParamRequired("BundleId")) + } + if s.InstanceNames == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceNames")) + } + if s.InstanceSnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceSnapshotName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateInstancesFromSnapshotInput) SetAvailabilityZone(v string) *CreateInstancesFromSnapshotInput { + s.AvailabilityZone = &v + return s +} + +// SetBundleId sets the BundleId field's value. +func (s *CreateInstancesFromSnapshotInput) SetBundleId(v string) *CreateInstancesFromSnapshotInput { + s.BundleId = &v + return s +} + +// SetInstanceNames sets the InstanceNames field's value. +func (s *CreateInstancesFromSnapshotInput) SetInstanceNames(v []*string) *CreateInstancesFromSnapshotInput { + s.InstanceNames = v + return s +} + +// SetInstanceSnapshotName sets the InstanceSnapshotName field's value. +func (s *CreateInstancesFromSnapshotInput) SetInstanceSnapshotName(v string) *CreateInstancesFromSnapshotInput { + s.InstanceSnapshotName = &v + return s +} + +// SetKeyPairName sets the KeyPairName field's value. +func (s *CreateInstancesFromSnapshotInput) SetKeyPairName(v string) *CreateInstancesFromSnapshotInput { + s.KeyPairName = &v + return s +} + +// SetUserData sets the UserData field's value. +func (s *CreateInstancesFromSnapshotInput) SetUserData(v string) *CreateInstancesFromSnapshotInput { + s.UserData = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstancesFromSnapshotResult +type CreateInstancesFromSnapshotOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the results of your + // create instances from snapshot request. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s CreateInstancesFromSnapshotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateInstancesFromSnapshotOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *CreateInstancesFromSnapshotOutput) SetOperations(v []*Operation) *CreateInstancesFromSnapshotOutput { + s.Operations = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstancesRequest +type CreateInstancesInput struct { + _ struct{} `type:"structure"` + + // The Availability Zone in which to create your instance. Use the following + // format: us-east-1a (case sensitive). + // + // AvailabilityZone is a required field + AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"` + + // The ID for a virtual private server image (e.g., app_wordpress_4_4 or app_lamp_7_0). + // Use the get blueprints operation to return a list of available images (or + // blueprints). + // + // BlueprintId is a required field + BlueprintId *string `locationName:"blueprintId" type:"string" required:"true"` + + // The bundle of specification information for your virtual private server (or + // instance), including the pricing plan (e.g., micro_1_0). + // + // BundleId is a required field + BundleId *string `locationName:"bundleId" type:"string" required:"true"` + + // The name for your custom image. + CustomImageName *string `locationName:"customImageName" type:"string"` + + // The names to use for your new Lightsail instances. Separate multiple values + // using quotation marks and commas, for example: ["MyFirstInstance","MySecondInstance"] + // + // InstanceNames is a required field + InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"` + + // The name of your key pair. + KeyPairName *string `locationName:"keyPairName" type:"string"` + + // A launch script you can create that configures a server with additional user + // data. For example, you might want to run apt-get –y update. + // + // Depending on the machine image you choose, the command to get software on + // your instance varies. Amazon Linux and CentOS use yum, Debian and Ubuntu + // use apt-get, and FreeBSD uses pkg. For a complete list, see the Dev Guide + // (http://lightsail.aws.amazon.com/ls/docs/getting-started/articles/pre-installed-apps). + UserData *string `locationName:"userData" type:"string"` +} + +// String returns the string representation +func (s CreateInstancesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateInstancesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateInstancesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateInstancesInput"} + if s.AvailabilityZone == nil { + invalidParams.Add(request.NewErrParamRequired("AvailabilityZone")) + } + if s.BlueprintId == nil { + invalidParams.Add(request.NewErrParamRequired("BlueprintId")) + } + if s.BundleId == nil { + invalidParams.Add(request.NewErrParamRequired("BundleId")) + } + if s.InstanceNames == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceNames")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateInstancesInput) SetAvailabilityZone(v string) *CreateInstancesInput { + s.AvailabilityZone = &v + return s +} + +// SetBlueprintId sets the BlueprintId field's value. +func (s *CreateInstancesInput) SetBlueprintId(v string) *CreateInstancesInput { + s.BlueprintId = &v + return s +} + +// SetBundleId sets the BundleId field's value. +func (s *CreateInstancesInput) SetBundleId(v string) *CreateInstancesInput { + s.BundleId = &v + return s +} + +// SetCustomImageName sets the CustomImageName field's value. +func (s *CreateInstancesInput) SetCustomImageName(v string) *CreateInstancesInput { + s.CustomImageName = &v + return s +} + +// SetInstanceNames sets the InstanceNames field's value. +func (s *CreateInstancesInput) SetInstanceNames(v []*string) *CreateInstancesInput { + s.InstanceNames = v + return s +} + +// SetKeyPairName sets the KeyPairName field's value. +func (s *CreateInstancesInput) SetKeyPairName(v string) *CreateInstancesInput { + s.KeyPairName = &v + return s +} + +// SetUserData sets the UserData field's value. +func (s *CreateInstancesInput) SetUserData(v string) *CreateInstancesInput { + s.UserData = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstancesResult +type CreateInstancesOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the results of your + // create instances request. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s CreateInstancesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateInstancesOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *CreateInstancesOutput) SetOperations(v []*Operation) *CreateInstancesOutput { + s.Operations = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateKeyPairRequest +type CreateKeyPairInput struct { + _ struct{} `type:"structure"` + + // The name for your new key pair. + // + // KeyPairName is a required field + KeyPairName *string `locationName:"keyPairName" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateKeyPairInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateKeyPairInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateKeyPairInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateKeyPairInput"} + if s.KeyPairName == nil { + invalidParams.Add(request.NewErrParamRequired("KeyPairName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKeyPairName sets the KeyPairName field's value. +func (s *CreateKeyPairInput) SetKeyPairName(v string) *CreateKeyPairInput { + s.KeyPairName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateKeyPairResult +type CreateKeyPairOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the new key pair + // you just created. + KeyPair *KeyPair `locationName:"keyPair" type:"structure"` + + // An array of key-value pairs containing information about the results of your + // create key pair request. + Operation *Operation `locationName:"operation" type:"structure"` + + // A base64-encoded RSA private key. + PrivateKeyBase64 *string `locationName:"privateKeyBase64" type:"string"` + + // A base64-encoded public key of the ssh-rsa type. + PublicKeyBase64 *string `locationName:"publicKeyBase64" type:"string"` +} + +// String returns the string representation +func (s CreateKeyPairOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateKeyPairOutput) GoString() string { + return s.String() +} + +// SetKeyPair sets the KeyPair field's value. +func (s *CreateKeyPairOutput) SetKeyPair(v *KeyPair) *CreateKeyPairOutput { + s.KeyPair = v + return s +} + +// SetOperation sets the Operation field's value. +func (s *CreateKeyPairOutput) SetOperation(v *Operation) *CreateKeyPairOutput { + s.Operation = v + return s +} + +// SetPrivateKeyBase64 sets the PrivateKeyBase64 field's value. +func (s *CreateKeyPairOutput) SetPrivateKeyBase64(v string) *CreateKeyPairOutput { + s.PrivateKeyBase64 = &v + return s +} + +// SetPublicKeyBase64 sets the PublicKeyBase64 field's value. +func (s *CreateKeyPairOutput) SetPublicKeyBase64(v string) *CreateKeyPairOutput { + s.PublicKeyBase64 = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomainEntryRequest +type DeleteDomainEntryInput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about your domain entries. + // + // DomainEntry is a required field + DomainEntry *DomainEntry `locationName:"domainEntry" type:"structure" required:"true"` + + // The name of the domain entry to delete. + // + // DomainName is a required field + DomainName *string `locationName:"domainName" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteDomainEntryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDomainEntryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDomainEntryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDomainEntryInput"} + if s.DomainEntry == nil { + invalidParams.Add(request.NewErrParamRequired("DomainEntry")) + } + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainEntry sets the DomainEntry field's value. +func (s *DeleteDomainEntryInput) SetDomainEntry(v *DomainEntry) *DeleteDomainEntryInput { + s.DomainEntry = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DeleteDomainEntryInput) SetDomainName(v string) *DeleteDomainEntryInput { + s.DomainName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomainEntryResult +type DeleteDomainEntryOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the results of your + // delete domain entry request. + Operation *Operation `locationName:"operation" type:"structure"` +} + +// String returns the string representation +func (s DeleteDomainEntryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDomainEntryOutput) GoString() string { + return s.String() +} + +// SetOperation sets the Operation field's value. +func (s *DeleteDomainEntryOutput) SetOperation(v *Operation) *DeleteDomainEntryOutput { + s.Operation = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomainRequest +type DeleteDomainInput struct { + _ struct{} `type:"structure"` + + // The specific domain name to delete. + // + // DomainName is a required field + DomainName *string `locationName:"domainName" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteDomainInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDomainInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDomainInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDomainInput"} + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *DeleteDomainInput) SetDomainName(v string) *DeleteDomainInput { + s.DomainName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomainResult +type DeleteDomainOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the results of your + // delete domain request. + Operation *Operation `locationName:"operation" type:"structure"` +} + +// String returns the string representation +func (s DeleteDomainOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDomainOutput) GoString() string { + return s.String() +} + +// SetOperation sets the Operation field's value. +func (s *DeleteDomainOutput) SetOperation(v *Operation) *DeleteDomainOutput { + s.Operation = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstanceRequest +type DeleteInstanceInput struct { + _ struct{} `type:"structure"` + + // The name of the instance to delete. + // + // InstanceName is a required field + InstanceName *string `locationName:"instanceName" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteInstanceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteInstanceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteInstanceInput"} + if s.InstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceName sets the InstanceName field's value. +func (s *DeleteInstanceInput) SetInstanceName(v string) *DeleteInstanceInput { + s.InstanceName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstanceResult +type DeleteInstanceOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the results of your + // delete instance request. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s DeleteInstanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteInstanceOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *DeleteInstanceOutput) SetOperations(v []*Operation) *DeleteInstanceOutput { + s.Operations = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstanceSnapshotRequest +type DeleteInstanceSnapshotInput struct { + _ struct{} `type:"structure"` + + // The name of the snapshot to delete. + // + // InstanceSnapshotName is a required field + InstanceSnapshotName *string `locationName:"instanceSnapshotName" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteInstanceSnapshotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteInstanceSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteInstanceSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteInstanceSnapshotInput"} + if s.InstanceSnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceSnapshotName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceSnapshotName sets the InstanceSnapshotName field's value. +func (s *DeleteInstanceSnapshotInput) SetInstanceSnapshotName(v string) *DeleteInstanceSnapshotInput { + s.InstanceSnapshotName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstanceSnapshotResult +type DeleteInstanceSnapshotOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the results of your + // delete instance snapshot request. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s DeleteInstanceSnapshotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteInstanceSnapshotOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *DeleteInstanceSnapshotOutput) SetOperations(v []*Operation) *DeleteInstanceSnapshotOutput { + s.Operations = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteKeyPairRequest +type DeleteKeyPairInput struct { + _ struct{} `type:"structure"` + + // The name of the key pair to delete. + // + // KeyPairName is a required field + KeyPairName *string `locationName:"keyPairName" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteKeyPairInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteKeyPairInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteKeyPairInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteKeyPairInput"} + if s.KeyPairName == nil { + invalidParams.Add(request.NewErrParamRequired("KeyPairName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKeyPairName sets the KeyPairName field's value. +func (s *DeleteKeyPairInput) SetKeyPairName(v string) *DeleteKeyPairInput { + s.KeyPairName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteKeyPairResult +type DeleteKeyPairOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the results of your + // delete key pair request. + Operation *Operation `locationName:"operation" type:"structure"` +} + +// String returns the string representation +func (s DeleteKeyPairOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteKeyPairOutput) GoString() string { + return s.String() +} + +// SetOperation sets the Operation field's value. +func (s *DeleteKeyPairOutput) SetOperation(v *Operation) *DeleteKeyPairOutput { + s.Operation = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachStaticIpRequest +type DetachStaticIpInput struct { + _ struct{} `type:"structure"` + + // The name of the static IP to detach from the instance. + // + // StaticIpName is a required field + StaticIpName *string `locationName:"staticIpName" type:"string" required:"true"` +} + +// String returns the string representation +func (s DetachStaticIpInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetachStaticIpInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DetachStaticIpInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetachStaticIpInput"} + if s.StaticIpName == nil { + invalidParams.Add(request.NewErrParamRequired("StaticIpName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetStaticIpName sets the StaticIpName field's value. +func (s *DetachStaticIpInput) SetStaticIpName(v string) *DetachStaticIpInput { + s.StaticIpName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachStaticIpResult +type DetachStaticIpOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the results of your + // detach static IP request. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s DetachStaticIpOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetachStaticIpOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *DetachStaticIpOutput) SetOperations(v []*Operation) *DetachStaticIpOutput { + s.Operations = v + return s +} + +// Describes the hard disk (an SSD). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/Disk +type Disk struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the disk. + Arn *string `locationName:"arn" type:"string"` + + // The resources to which the disk is attached. + AttachedTo *string `locationName:"attachedTo" type:"string"` + + // The attachment state of the disk. + AttachmentState *string `locationName:"attachmentState" type:"string"` + + // The date when the disk was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"` + + // The number of GB in use by the disk. + GbInUse *int64 `locationName:"gbInUse" type:"integer"` + + // The input/output operations per second (IOPS) of the disk. + Iops *int64 `locationName:"iops" type:"integer"` + + // A Boolean value indicating whether the disk is attached. + IsAttached *bool `locationName:"isAttached" type:"boolean"` + + // A Boolean value indicating whether this disk is a system disk (has an operating + // system loaded on it). + IsSystemDisk *bool `locationName:"isSystemDisk" type:"boolean"` + + // The region and Availability Zone where the disk is located. + Location *ResourceLocation `locationName:"location" type:"structure"` + + // The name of the disk. + Name *string `locationName:"name" type:"string"` + + // The disk path. + Path *string `locationName:"path" type:"string"` + + // The resource type of the disk. + ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` + + // The size of the disk in GB. + SizeInGb *int64 `locationName:"sizeInGb" type:"integer"` + + // The support code. Include this code in your email to support when you have + // questions about an instance or another resource in Lightsail. This code enables + // our support team to look up your Lightsail information more easily. + SupportCode *string `locationName:"supportCode" type:"string"` +} + +// String returns the string representation +func (s Disk) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Disk) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *Disk) SetArn(v string) *Disk { + s.Arn = &v + return s +} + +// SetAttachedTo sets the AttachedTo field's value. +func (s *Disk) SetAttachedTo(v string) *Disk { + s.AttachedTo = &v + return s +} + +// SetAttachmentState sets the AttachmentState field's value. +func (s *Disk) SetAttachmentState(v string) *Disk { + s.AttachmentState = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Disk) SetCreatedAt(v time.Time) *Disk { + s.CreatedAt = &v + return s +} + +// SetGbInUse sets the GbInUse field's value. +func (s *Disk) SetGbInUse(v int64) *Disk { + s.GbInUse = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *Disk) SetIops(v int64) *Disk { + s.Iops = &v + return s +} + +// SetIsAttached sets the IsAttached field's value. +func (s *Disk) SetIsAttached(v bool) *Disk { + s.IsAttached = &v + return s +} + +// SetIsSystemDisk sets the IsSystemDisk field's value. +func (s *Disk) SetIsSystemDisk(v bool) *Disk { + s.IsSystemDisk = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *Disk) SetLocation(v *ResourceLocation) *Disk { + s.Location = v + return s +} + +// SetName sets the Name field's value. +func (s *Disk) SetName(v string) *Disk { + s.Name = &v + return s +} + +// SetPath sets the Path field's value. +func (s *Disk) SetPath(v string) *Disk { + s.Path = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *Disk) SetResourceType(v string) *Disk { + s.ResourceType = &v + return s +} + +// SetSizeInGb sets the SizeInGb field's value. +func (s *Disk) SetSizeInGb(v int64) *Disk { + s.SizeInGb = &v + return s +} + +// SetSupportCode sets the SupportCode field's value. +func (s *Disk) SetSupportCode(v string) *Disk { + s.SupportCode = &v + return s +} + +// Describes a domain where you are storing recordsets in Lightsail. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/Domain +type Domain struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the domain recordset (e.g., arn:aws:lightsail:global:123456789101:Domain/824cede0-abc7-4f84-8dbc-12345EXAMPLE). + Arn *string `locationName:"arn" type:"string"` + + // The date when the domain recordset was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"` + + // An array of key-value pairs containing information about the domain entries. + DomainEntries []*DomainEntry `locationName:"domainEntries" type:"list"` + + // The AWS Region and Availability Zones where the domain recordset was created. + Location *ResourceLocation `locationName:"location" type:"structure"` + + // The name of the domain. + Name *string `locationName:"name" type:"string"` + + // The resource type. + ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` + + // The support code. Include this code in your email to support when you have + // questions about an instance or another resource in Lightsail. This code enables + // our support team to look up your Lightsail information more easily. + SupportCode *string `locationName:"supportCode" type:"string"` +} + +// String returns the string representation +func (s Domain) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Domain) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *Domain) SetArn(v string) *Domain { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Domain) SetCreatedAt(v time.Time) *Domain { + s.CreatedAt = &v + return s +} + +// SetDomainEntries sets the DomainEntries field's value. +func (s *Domain) SetDomainEntries(v []*DomainEntry) *Domain { + s.DomainEntries = v + return s +} + +// SetLocation sets the Location field's value. +func (s *Domain) SetLocation(v *ResourceLocation) *Domain { + s.Location = v + return s +} + +// SetName sets the Name field's value. +func (s *Domain) SetName(v string) *Domain { + s.Name = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *Domain) SetResourceType(v string) *Domain { + s.ResourceType = &v + return s +} + +// SetSupportCode sets the SupportCode field's value. +func (s *Domain) SetSupportCode(v string) *Domain { + s.SupportCode = &v + return s +} + +// Describes a domain recordset entry. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DomainEntry +type DomainEntry struct { + _ struct{} `type:"structure"` + + // The ID of the domain recordset entry. + Id *string `locationName:"id" type:"string"` + + // The name of the domain. + Name *string `locationName:"name" type:"string"` + + // The options for the domain entry. + Options map[string]*string `locationName:"options" type:"map"` + + // The target AWS name server (e.g., ns-111.awsdns-22.com.). + Target *string `locationName:"target" type:"string"` + + // The type of domain entry (e.g., SOA or NS). + Type *string `locationName:"type" type:"string"` +} + +// String returns the string representation +func (s DomainEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DomainEntry) GoString() string { + return s.String() +} + +// SetId sets the Id field's value. +func (s *DomainEntry) SetId(v string) *DomainEntry { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *DomainEntry) SetName(v string) *DomainEntry { + s.Name = &v + return s +} + +// SetOptions sets the Options field's value. +func (s *DomainEntry) SetOptions(v map[string]*string) *DomainEntry { + s.Options = v + return s +} + +// SetTarget sets the Target field's value. +func (s *DomainEntry) SetTarget(v string) *DomainEntry { + s.Target = &v + return s +} + +// SetType sets the Type field's value. +func (s *DomainEntry) SetType(v string) *DomainEntry { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DownloadDefaultKeyPairRequest +type DownloadDefaultKeyPairInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DownloadDefaultKeyPairInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DownloadDefaultKeyPairInput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DownloadDefaultKeyPairResult +type DownloadDefaultKeyPairOutput struct { + _ struct{} `type:"structure"` + + // A base64-encoded RSA private key. + PrivateKeyBase64 *string `locationName:"privateKeyBase64" type:"string"` + + // A base64-encoded public key of the ssh-rsa type. + PublicKeyBase64 *string `locationName:"publicKeyBase64" type:"string"` +} + +// String returns the string representation +func (s DownloadDefaultKeyPairOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DownloadDefaultKeyPairOutput) GoString() string { + return s.String() +} + +// SetPrivateKeyBase64 sets the PrivateKeyBase64 field's value. +func (s *DownloadDefaultKeyPairOutput) SetPrivateKeyBase64(v string) *DownloadDefaultKeyPairOutput { + s.PrivateKeyBase64 = &v + return s +} + +// SetPublicKeyBase64 sets the PublicKeyBase64 field's value. +func (s *DownloadDefaultKeyPairOutput) SetPublicKeyBase64(v string) *DownloadDefaultKeyPairOutput { + s.PublicKeyBase64 = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetActiveNamesRequest +type GetActiveNamesInput struct { + _ struct{} `type:"structure"` + + // A token used for paginating results from your get active names request. + PageToken *string `locationName:"pageToken" type:"string"` +} + +// String returns the string representation +func (s GetActiveNamesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetActiveNamesInput) GoString() string { + return s.String() +} + +// SetPageToken sets the PageToken field's value. +func (s *GetActiveNamesInput) SetPageToken(v string) *GetActiveNamesInput { + s.PageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetActiveNamesResult +type GetActiveNamesOutput struct { + _ struct{} `type:"structure"` + + // The list of active names returned by the get active names request. + ActiveNames []*string `locationName:"activeNames" type:"list"` + + // A token used for advancing to the next page of results from your get active + // names request. + NextPageToken *string `locationName:"nextPageToken" type:"string"` +} + +// String returns the string representation +func (s GetActiveNamesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetActiveNamesOutput) GoString() string { + return s.String() +} + +// SetActiveNames sets the ActiveNames field's value. +func (s *GetActiveNamesOutput) SetActiveNames(v []*string) *GetActiveNamesOutput { + s.ActiveNames = v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetActiveNamesOutput) SetNextPageToken(v string) *GetActiveNamesOutput { + s.NextPageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBlueprintsRequest +type GetBlueprintsInput struct { + _ struct{} `type:"structure"` + + // A Boolean value indicating whether to include inactive results in your request. + IncludeInactive *bool `locationName:"includeInactive" type:"boolean"` + + // A token used for advancing to the next page of results from your get blueprints + // request. + PageToken *string `locationName:"pageToken" type:"string"` +} + +// String returns the string representation +func (s GetBlueprintsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBlueprintsInput) GoString() string { + return s.String() +} + +// SetIncludeInactive sets the IncludeInactive field's value. +func (s *GetBlueprintsInput) SetIncludeInactive(v bool) *GetBlueprintsInput { + s.IncludeInactive = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *GetBlueprintsInput) SetPageToken(v string) *GetBlueprintsInput { + s.PageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBlueprintsResult +type GetBlueprintsOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs that contains information about the available + // blueprints. + Blueprints []*Blueprint `locationName:"blueprints" type:"list"` + + // A token used for advancing to the next page of results from your get blueprints + // request. + NextPageToken *string `locationName:"nextPageToken" type:"string"` +} + +// String returns the string representation +func (s GetBlueprintsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBlueprintsOutput) GoString() string { + return s.String() +} + +// SetBlueprints sets the Blueprints field's value. +func (s *GetBlueprintsOutput) SetBlueprints(v []*Blueprint) *GetBlueprintsOutput { + s.Blueprints = v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetBlueprintsOutput) SetNextPageToken(v string) *GetBlueprintsOutput { + s.NextPageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBundlesRequest +type GetBundlesInput struct { + _ struct{} `type:"structure"` + + // A Boolean value that indicates whether to include inactive bundle results + // in your request. + IncludeInactive *bool `locationName:"includeInactive" type:"boolean"` + + // A token used for advancing to the next page of results from your get bundles + // request. + PageToken *string `locationName:"pageToken" type:"string"` +} + +// String returns the string representation +func (s GetBundlesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBundlesInput) GoString() string { + return s.String() +} + +// SetIncludeInactive sets the IncludeInactive field's value. +func (s *GetBundlesInput) SetIncludeInactive(v bool) *GetBundlesInput { + s.IncludeInactive = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *GetBundlesInput) SetPageToken(v string) *GetBundlesInput { + s.PageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBundlesResult +type GetBundlesOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs that contains information about the available + // bundles. + Bundles []*Bundle `locationName:"bundles" type:"list"` + + // A token used for advancing to the next page of results from your get active + // names request. + NextPageToken *string `locationName:"nextPageToken" type:"string"` +} + +// String returns the string representation +func (s GetBundlesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBundlesOutput) GoString() string { + return s.String() +} + +// SetBundles sets the Bundles field's value. +func (s *GetBundlesOutput) SetBundles(v []*Bundle) *GetBundlesOutput { + s.Bundles = v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetBundlesOutput) SetNextPageToken(v string) *GetBundlesOutput { + s.NextPageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomainRequest +type GetDomainInput struct { + _ struct{} `type:"structure"` + + // The domain name for which your want to return information about. + // + // DomainName is a required field + DomainName *string `locationName:"domainName" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetDomainInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDomainInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDomainInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDomainInput"} + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *GetDomainInput) SetDomainName(v string) *GetDomainInput { + s.DomainName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomainResult +type GetDomainOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about your get domain + // request. + Domain *Domain `locationName:"domain" type:"structure"` +} + +// String returns the string representation +func (s GetDomainOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDomainOutput) GoString() string { + return s.String() +} + +// SetDomain sets the Domain field's value. +func (s *GetDomainOutput) SetDomain(v *Domain) *GetDomainOutput { + s.Domain = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomainsRequest +type GetDomainsInput struct { + _ struct{} `type:"structure"` + + // A token used for advancing to the next page of results from your get domains + // request. + PageToken *string `locationName:"pageToken" type:"string"` +} + +// String returns the string representation +func (s GetDomainsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDomainsInput) GoString() string { + return s.String() +} + +// SetPageToken sets the PageToken field's value. +func (s *GetDomainsInput) SetPageToken(v string) *GetDomainsInput { + s.PageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomainsResult +type GetDomainsOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about each of the domain + // entries in the user's account. + Domains []*Domain `locationName:"domains" type:"list"` + + // A token used for advancing to the next page of results from your get active + // names request. + NextPageToken *string `locationName:"nextPageToken" type:"string"` +} + +// String returns the string representation +func (s GetDomainsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDomainsOutput) GoString() string { + return s.String() +} + +// SetDomains sets the Domains field's value. +func (s *GetDomainsOutput) SetDomains(v []*Domain) *GetDomainsOutput { + s.Domains = v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetDomainsOutput) SetNextPageToken(v string) *GetDomainsOutput { + s.NextPageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceAccessDetailsRequest +type GetInstanceAccessDetailsInput struct { + _ struct{} `type:"structure"` + + // The name of the instance to access. + // + // InstanceName is a required field + InstanceName *string `locationName:"instanceName" type:"string" required:"true"` + + // The protocol to use to connect to your instance. Defaults to ssh. + Protocol *string `locationName:"protocol" type:"string" enum:"InstanceAccessProtocol"` +} + +// String returns the string representation +func (s GetInstanceAccessDetailsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInstanceAccessDetailsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetInstanceAccessDetailsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetInstanceAccessDetailsInput"} + if s.InstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceName sets the InstanceName field's value. +func (s *GetInstanceAccessDetailsInput) SetInstanceName(v string) *GetInstanceAccessDetailsInput { + s.InstanceName = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *GetInstanceAccessDetailsInput) SetProtocol(v string) *GetInstanceAccessDetailsInput { + s.Protocol = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceAccessDetailsResult +type GetInstanceAccessDetailsOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about a get instance access + // request. + AccessDetails *InstanceAccessDetails `locationName:"accessDetails" type:"structure"` +} + +// String returns the string representation +func (s GetInstanceAccessDetailsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInstanceAccessDetailsOutput) GoString() string { + return s.String() +} + +// SetAccessDetails sets the AccessDetails field's value. +func (s *GetInstanceAccessDetailsOutput) SetAccessDetails(v *InstanceAccessDetails) *GetInstanceAccessDetailsOutput { + s.AccessDetails = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceRequest +type GetInstanceInput struct { + _ struct{} `type:"structure"` + + // The name of the instance. + // + // InstanceName is a required field + InstanceName *string `locationName:"instanceName" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetInstanceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInstanceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetInstanceInput"} + if s.InstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceName sets the InstanceName field's value. +func (s *GetInstanceInput) SetInstanceName(v string) *GetInstanceInput { + s.InstanceName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceMetricDataRequest +type GetInstanceMetricDataInput struct { + _ struct{} `type:"structure"` + + // The end time of the time period. + // + // EndTime is a required field + EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix" required:"true"` + + // The name of the instance for which you want to get metrics data. + // + // InstanceName is a required field + InstanceName *string `locationName:"instanceName" type:"string" required:"true"` + + // The metric name to get data about. + // + // MetricName is a required field + MetricName *string `locationName:"metricName" type:"string" required:"true" enum:"InstanceMetricName"` + + // The time period for which you are requesting data. + // + // Period is a required field + Period *int64 `locationName:"period" min:"60" type:"integer" required:"true"` + + // The start time of the time period. + // + // StartTime is a required field + StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix" required:"true"` + + // The instance statistics. + // + // Statistics is a required field + Statistics []*string `locationName:"statistics" type:"list" required:"true"` + + // The unit. The list of valid values is below. + // + // Unit is a required field + Unit *string `locationName:"unit" type:"string" required:"true" enum:"MetricUnit"` +} + +// String returns the string representation +func (s GetInstanceMetricDataInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInstanceMetricDataInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetInstanceMetricDataInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetInstanceMetricDataInput"} + if s.EndTime == nil { + invalidParams.Add(request.NewErrParamRequired("EndTime")) + } + if s.InstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceName")) + } + if s.MetricName == nil { + invalidParams.Add(request.NewErrParamRequired("MetricName")) + } + if s.Period == nil { + invalidParams.Add(request.NewErrParamRequired("Period")) + } + if s.Period != nil && *s.Period < 60 { + invalidParams.Add(request.NewErrParamMinValue("Period", 60)) + } + if s.StartTime == nil { + invalidParams.Add(request.NewErrParamRequired("StartTime")) + } + if s.Statistics == nil { + invalidParams.Add(request.NewErrParamRequired("Statistics")) + } + if s.Unit == nil { + invalidParams.Add(request.NewErrParamRequired("Unit")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndTime sets the EndTime field's value. +func (s *GetInstanceMetricDataInput) SetEndTime(v time.Time) *GetInstanceMetricDataInput { + s.EndTime = &v + return s +} + +// SetInstanceName sets the InstanceName field's value. +func (s *GetInstanceMetricDataInput) SetInstanceName(v string) *GetInstanceMetricDataInput { + s.InstanceName = &v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *GetInstanceMetricDataInput) SetMetricName(v string) *GetInstanceMetricDataInput { + s.MetricName = &v + return s +} + +// SetPeriod sets the Period field's value. +func (s *GetInstanceMetricDataInput) SetPeriod(v int64) *GetInstanceMetricDataInput { + s.Period = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *GetInstanceMetricDataInput) SetStartTime(v time.Time) *GetInstanceMetricDataInput { + s.StartTime = &v + return s +} + +// SetStatistics sets the Statistics field's value. +func (s *GetInstanceMetricDataInput) SetStatistics(v []*string) *GetInstanceMetricDataInput { + s.Statistics = v + return s +} + +// SetUnit sets the Unit field's value. +func (s *GetInstanceMetricDataInput) SetUnit(v string) *GetInstanceMetricDataInput { + s.Unit = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceMetricDataResult +type GetInstanceMetricDataOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the results of your + // get instance metric data request. + MetricData []*MetricDatapoint `locationName:"metricData" type:"list"` + + // The metric name to return data for. + MetricName *string `locationName:"metricName" type:"string" enum:"InstanceMetricName"` +} + +// String returns the string representation +func (s GetInstanceMetricDataOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInstanceMetricDataOutput) GoString() string { + return s.String() +} + +// SetMetricData sets the MetricData field's value. +func (s *GetInstanceMetricDataOutput) SetMetricData(v []*MetricDatapoint) *GetInstanceMetricDataOutput { + s.MetricData = v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *GetInstanceMetricDataOutput) SetMetricName(v string) *GetInstanceMetricDataOutput { + s.MetricName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceResult +type GetInstanceOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the specified instance. + Instance *Instance `locationName:"instance" type:"structure"` +} + +// String returns the string representation +func (s GetInstanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInstanceOutput) GoString() string { + return s.String() +} + +// SetInstance sets the Instance field's value. +func (s *GetInstanceOutput) SetInstance(v *Instance) *GetInstanceOutput { + s.Instance = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstancePortStatesRequest +type GetInstancePortStatesInput struct { + _ struct{} `type:"structure"` + + // The name of the instance. + // + // InstanceName is a required field + InstanceName *string `locationName:"instanceName" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetInstancePortStatesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInstancePortStatesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetInstancePortStatesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetInstancePortStatesInput"} + if s.InstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceName sets the InstanceName field's value. +func (s *GetInstancePortStatesInput) SetInstanceName(v string) *GetInstancePortStatesInput { + s.InstanceName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstancePortStatesResult +type GetInstancePortStatesOutput struct { + _ struct{} `type:"structure"` + + // Information about the port states resulting from your request. + PortStates []*string `locationName:"portStates" type:"list"` +} + +// String returns the string representation +func (s GetInstancePortStatesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInstancePortStatesOutput) GoString() string { + return s.String() +} + +// SetPortStates sets the PortStates field's value. +func (s *GetInstancePortStatesOutput) SetPortStates(v []*string) *GetInstancePortStatesOutput { + s.PortStates = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshotRequest +type GetInstanceSnapshotInput struct { + _ struct{} `type:"structure"` + + // The name of the snapshot for which you are requesting information. + // + // InstanceSnapshotName is a required field + InstanceSnapshotName *string `locationName:"instanceSnapshotName" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetInstanceSnapshotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInstanceSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetInstanceSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetInstanceSnapshotInput"} + if s.InstanceSnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceSnapshotName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceSnapshotName sets the InstanceSnapshotName field's value. +func (s *GetInstanceSnapshotInput) SetInstanceSnapshotName(v string) *GetInstanceSnapshotInput { + s.InstanceSnapshotName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshotResult +type GetInstanceSnapshotOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the results of your + // get instance snapshot request. + InstanceSnapshot *InstanceSnapshot `locationName:"instanceSnapshot" type:"structure"` +} + +// String returns the string representation +func (s GetInstanceSnapshotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInstanceSnapshotOutput) GoString() string { + return s.String() +} + +// SetInstanceSnapshot sets the InstanceSnapshot field's value. +func (s *GetInstanceSnapshotOutput) SetInstanceSnapshot(v *InstanceSnapshot) *GetInstanceSnapshotOutput { + s.InstanceSnapshot = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshotsRequest +type GetInstanceSnapshotsInput struct { + _ struct{} `type:"structure"` + + // A token used for advancing to the next page of results from your get instance + // snapshots request. + PageToken *string `locationName:"pageToken" type:"string"` +} + +// String returns the string representation +func (s GetInstanceSnapshotsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInstanceSnapshotsInput) GoString() string { + return s.String() +} + +// SetPageToken sets the PageToken field's value. +func (s *GetInstanceSnapshotsInput) SetPageToken(v string) *GetInstanceSnapshotsInput { + s.PageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshotsResult +type GetInstanceSnapshotsOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the results of your + // get instance snapshots request. + InstanceSnapshots []*InstanceSnapshot `locationName:"instanceSnapshots" type:"list"` + + // A token used for advancing to the next page of results from your get instance + // snapshots request. + NextPageToken *string `locationName:"nextPageToken" type:"string"` +} + +// String returns the string representation +func (s GetInstanceSnapshotsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInstanceSnapshotsOutput) GoString() string { + return s.String() +} + +// SetInstanceSnapshots sets the InstanceSnapshots field's value. +func (s *GetInstanceSnapshotsOutput) SetInstanceSnapshots(v []*InstanceSnapshot) *GetInstanceSnapshotsOutput { + s.InstanceSnapshots = v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetInstanceSnapshotsOutput) SetNextPageToken(v string) *GetInstanceSnapshotsOutput { + s.NextPageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceStateRequest +type GetInstanceStateInput struct { + _ struct{} `type:"structure"` + + // The name of the instance to get state information about. + // + // InstanceName is a required field + InstanceName *string `locationName:"instanceName" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetInstanceStateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInstanceStateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetInstanceStateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetInstanceStateInput"} + if s.InstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceName sets the InstanceName field's value. +func (s *GetInstanceStateInput) SetInstanceName(v string) *GetInstanceStateInput { + s.InstanceName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceStateResult +type GetInstanceStateOutput struct { + _ struct{} `type:"structure"` + + // The state of the instance. + State *InstanceState `locationName:"state" type:"structure"` +} + +// String returns the string representation +func (s GetInstanceStateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInstanceStateOutput) GoString() string { + return s.String() +} + +// SetState sets the State field's value. +func (s *GetInstanceStateOutput) SetState(v *InstanceState) *GetInstanceStateOutput { + s.State = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstancesRequest +type GetInstancesInput struct { + _ struct{} `type:"structure"` + + // A token used for advancing to the next page of results from your get instances + // request. + PageToken *string `locationName:"pageToken" type:"string"` +} + +// String returns the string representation +func (s GetInstancesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInstancesInput) GoString() string { + return s.String() +} + +// SetPageToken sets the PageToken field's value. +func (s *GetInstancesInput) SetPageToken(v string) *GetInstancesInput { + s.PageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstancesResult +type GetInstancesOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about your instances. + Instances []*Instance `locationName:"instances" type:"list"` + + // A token used for advancing to the next page of results from your get instances + // request. + NextPageToken *string `locationName:"nextPageToken" type:"string"` +} + +// String returns the string representation +func (s GetInstancesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInstancesOutput) GoString() string { + return s.String() +} + +// SetInstances sets the Instances field's value. +func (s *GetInstancesOutput) SetInstances(v []*Instance) *GetInstancesOutput { + s.Instances = v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetInstancesOutput) SetNextPageToken(v string) *GetInstancesOutput { + s.NextPageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPairRequest +type GetKeyPairInput struct { + _ struct{} `type:"structure"` + + // The name of the key pair for which you are requesting information. + // + // KeyPairName is a required field + KeyPairName *string `locationName:"keyPairName" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetKeyPairInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetKeyPairInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetKeyPairInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetKeyPairInput"} + if s.KeyPairName == nil { + invalidParams.Add(request.NewErrParamRequired("KeyPairName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKeyPairName sets the KeyPairName field's value. +func (s *GetKeyPairInput) SetKeyPairName(v string) *GetKeyPairInput { + s.KeyPairName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPairResult +type GetKeyPairOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the key pair. + KeyPair *KeyPair `locationName:"keyPair" type:"structure"` +} + +// String returns the string representation +func (s GetKeyPairOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetKeyPairOutput) GoString() string { + return s.String() +} + +// SetKeyPair sets the KeyPair field's value. +func (s *GetKeyPairOutput) SetKeyPair(v *KeyPair) *GetKeyPairOutput { + s.KeyPair = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPairsRequest +type GetKeyPairsInput struct { + _ struct{} `type:"structure"` + + // A token used for advancing to the next page of results from your get key + // pairs request. + PageToken *string `locationName:"pageToken" type:"string"` +} + +// String returns the string representation +func (s GetKeyPairsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetKeyPairsInput) GoString() string { + return s.String() +} + +// SetPageToken sets the PageToken field's value. +func (s *GetKeyPairsInput) SetPageToken(v string) *GetKeyPairsInput { + s.PageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPairsResult +type GetKeyPairsOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the key pairs. + KeyPairs []*KeyPair `locationName:"keyPairs" type:"list"` + + // A token used for advancing to the next page of results from your get key + // pairs request. + NextPageToken *string `locationName:"nextPageToken" type:"string"` +} + +// String returns the string representation +func (s GetKeyPairsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetKeyPairsOutput) GoString() string { + return s.String() +} + +// SetKeyPairs sets the KeyPairs field's value. +func (s *GetKeyPairsOutput) SetKeyPairs(v []*KeyPair) *GetKeyPairsOutput { + s.KeyPairs = v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetKeyPairsOutput) SetNextPageToken(v string) *GetKeyPairsOutput { + s.NextPageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperationRequest +type GetOperationInput struct { + _ struct{} `type:"structure"` + + // A GUID used to identify the operation. + // + // OperationId is a required field + OperationId *string `locationName:"operationId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetOperationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetOperationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetOperationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetOperationInput"} + if s.OperationId == nil { + invalidParams.Add(request.NewErrParamRequired("OperationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetOperationId sets the OperationId field's value. +func (s *GetOperationInput) SetOperationId(v string) *GetOperationInput { + s.OperationId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperationResult +type GetOperationOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the results of your + // get operation request. + Operation *Operation `locationName:"operation" type:"structure"` +} + +// String returns the string representation +func (s GetOperationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetOperationOutput) GoString() string { + return s.String() +} + +// SetOperation sets the Operation field's value. +func (s *GetOperationOutput) SetOperation(v *Operation) *GetOperationOutput { + s.Operation = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperationsForResourceRequest +type GetOperationsForResourceInput struct { + _ struct{} `type:"structure"` + + // A token used for advancing to the next page of results from your get operations + // for resource request. + PageToken *string `locationName:"pageToken" type:"string"` + + // The name of the resource for which you are requesting information. + // + // ResourceName is a required field + ResourceName *string `locationName:"resourceName" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetOperationsForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetOperationsForResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetOperationsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetOperationsForResourceInput"} + if s.ResourceName == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPageToken sets the PageToken field's value. +func (s *GetOperationsForResourceInput) SetPageToken(v string) *GetOperationsForResourceInput { + s.PageToken = &v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *GetOperationsForResourceInput) SetResourceName(v string) *GetOperationsForResourceInput { + s.ResourceName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperationsForResourceResult +type GetOperationsForResourceOutput struct { + _ struct{} `type:"structure"` + + // Returns the number of pages of results that remain. + NextPageCount *string `locationName:"nextPageCount" type:"string"` + + // An array of key-value pairs containing information about the results of your + // get operations for resource request. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s GetOperationsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetOperationsForResourceOutput) GoString() string { + return s.String() +} + +// SetNextPageCount sets the NextPageCount field's value. +func (s *GetOperationsForResourceOutput) SetNextPageCount(v string) *GetOperationsForResourceOutput { + s.NextPageCount = &v + return s +} + +// SetOperations sets the Operations field's value. +func (s *GetOperationsForResourceOutput) SetOperations(v []*Operation) *GetOperationsForResourceOutput { + s.Operations = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperationsRequest +type GetOperationsInput struct { + _ struct{} `type:"structure"` + + // A token used for advancing to the next page of results from your get operations + // request. + PageToken *string `locationName:"pageToken" type:"string"` +} + +// String returns the string representation +func (s GetOperationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetOperationsInput) GoString() string { + return s.String() +} + +// SetPageToken sets the PageToken field's value. +func (s *GetOperationsInput) SetPageToken(v string) *GetOperationsInput { + s.PageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperationsResult +type GetOperationsOutput struct { + _ struct{} `type:"structure"` + + // A token used for advancing to the next page of results from your get operations + // request. + NextPageToken *string `locationName:"nextPageToken" type:"string"` + + // An array of key-value pairs containing information about the results of your + // get operations request. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s GetOperationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetOperationsOutput) GoString() string { + return s.String() +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetOperationsOutput) SetNextPageToken(v string) *GetOperationsOutput { + s.NextPageToken = &v + return s +} + +// SetOperations sets the Operations field's value. +func (s *GetOperationsOutput) SetOperations(v []*Operation) *GetOperationsOutput { + s.Operations = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRegionsRequest +type GetRegionsInput struct { + _ struct{} `type:"structure"` + + // A Boolean value indicating whether to also include Availability Zones in + // your get regions request. Availability Zones are indicated with a letter: + // e.g., us-east-1a. + IncludeAvailabilityZones *bool `locationName:"includeAvailabilityZones" type:"boolean"` +} + +// String returns the string representation +func (s GetRegionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetRegionsInput) GoString() string { + return s.String() +} + +// SetIncludeAvailabilityZones sets the IncludeAvailabilityZones field's value. +func (s *GetRegionsInput) SetIncludeAvailabilityZones(v bool) *GetRegionsInput { + s.IncludeAvailabilityZones = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRegionsResult +type GetRegionsOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about your get regions + // request. + Regions []*Region `locationName:"regions" type:"list"` +} + +// String returns the string representation +func (s GetRegionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetRegionsOutput) GoString() string { + return s.String() +} + +// SetRegions sets the Regions field's value. +func (s *GetRegionsOutput) SetRegions(v []*Region) *GetRegionsOutput { + s.Regions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIpRequest +type GetStaticIpInput struct { + _ struct{} `type:"structure"` + + // The name of the static IP in Lightsail. + // + // StaticIpName is a required field + StaticIpName *string `locationName:"staticIpName" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetStaticIpInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetStaticIpInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetStaticIpInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetStaticIpInput"} + if s.StaticIpName == nil { + invalidParams.Add(request.NewErrParamRequired("StaticIpName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetStaticIpName sets the StaticIpName field's value. +func (s *GetStaticIpInput) SetStaticIpName(v string) *GetStaticIpInput { + s.StaticIpName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIpResult +type GetStaticIpOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the requested static + // IP. + StaticIp *StaticIp `locationName:"staticIp" type:"structure"` +} + +// String returns the string representation +func (s GetStaticIpOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetStaticIpOutput) GoString() string { + return s.String() +} + +// SetStaticIp sets the StaticIp field's value. +func (s *GetStaticIpOutput) SetStaticIp(v *StaticIp) *GetStaticIpOutput { + s.StaticIp = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIpsRequest +type GetStaticIpsInput struct { + _ struct{} `type:"structure"` + + // A token used for advancing to the next page of results from your get static + // IPs request. + PageToken *string `locationName:"pageToken" type:"string"` +} + +// String returns the string representation +func (s GetStaticIpsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetStaticIpsInput) GoString() string { + return s.String() +} + +// SetPageToken sets the PageToken field's value. +func (s *GetStaticIpsInput) SetPageToken(v string) *GetStaticIpsInput { + s.PageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIpsResult +type GetStaticIpsOutput struct { + _ struct{} `type:"structure"` + + // A token used for advancing to the next page of results from your get static + // IPs request. + NextPageToken *string `locationName:"nextPageToken" type:"string"` + + // An array of key-value pairs containing information about your get static + // IPs request. + StaticIps []*StaticIp `locationName:"staticIps" type:"list"` +} + +// String returns the string representation +func (s GetStaticIpsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetStaticIpsOutput) GoString() string { + return s.String() +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetStaticIpsOutput) SetNextPageToken(v string) *GetStaticIpsOutput { + s.NextPageToken = &v + return s +} + +// SetStaticIps sets the StaticIps field's value. +func (s *GetStaticIpsOutput) SetStaticIps(v []*StaticIp) *GetStaticIpsOutput { + s.StaticIps = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ImportKeyPairRequest +type ImportKeyPairInput struct { + _ struct{} `type:"structure"` + + // The name of the key pair for which you want to import the public key. + // + // KeyPairName is a required field + KeyPairName *string `locationName:"keyPairName" type:"string" required:"true"` + + // A base64-encoded public key of the ssh-rsa type. + // + // PublicKeyBase64 is a required field + PublicKeyBase64 *string `locationName:"publicKeyBase64" type:"string" required:"true"` +} + +// String returns the string representation +func (s ImportKeyPairInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportKeyPairInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ImportKeyPairInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ImportKeyPairInput"} + if s.KeyPairName == nil { + invalidParams.Add(request.NewErrParamRequired("KeyPairName")) + } + if s.PublicKeyBase64 == nil { + invalidParams.Add(request.NewErrParamRequired("PublicKeyBase64")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKeyPairName sets the KeyPairName field's value. +func (s *ImportKeyPairInput) SetKeyPairName(v string) *ImportKeyPairInput { + s.KeyPairName = &v + return s +} + +// SetPublicKeyBase64 sets the PublicKeyBase64 field's value. +func (s *ImportKeyPairInput) SetPublicKeyBase64(v string) *ImportKeyPairInput { + s.PublicKeyBase64 = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ImportKeyPairResult +type ImportKeyPairOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the request operation. + Operation *Operation `locationName:"operation" type:"structure"` +} + +// String returns the string representation +func (s ImportKeyPairOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportKeyPairOutput) GoString() string { + return s.String() +} + +// SetOperation sets the Operation field's value. +func (s *ImportKeyPairOutput) SetOperation(v *Operation) *ImportKeyPairOutput { + s.Operation = v + return s +} + +// Describes an instance (a virtual private server). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/Instance +type Instance struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the instance (e.g., arn:aws:lightsail:us-east-1:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE). + Arn *string `locationName:"arn" type:"string"` + + // The blueprint ID (e.g., os_amlinux_2016_03). + BlueprintId *string `locationName:"blueprintId" type:"string"` + + // The friendly name of the blueprint (e.g., Amazon Linux). + BlueprintName *string `locationName:"blueprintName" type:"string"` + + // The bundle for the instance (e.g., micro_1_0). + BundleId *string `locationName:"bundleId" type:"string"` + + // The timestamp when the instance was created (e.g., 1479734909.17). + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"` + + // The size of the vCPU and the amount of RAM for the instance. + Hardware *InstanceHardware `locationName:"hardware" type:"structure"` + + // The IPv6 address of the instance. + Ipv6Address *string `locationName:"ipv6Address" type:"string"` + + // A Boolean value indicating whether this instance has a static IP assigned + // to it. + IsStaticIp *bool `locationName:"isStaticIp" type:"boolean"` + + // The region name and availability zone where the instance is located. + Location *ResourceLocation `locationName:"location" type:"structure"` + + // The name the user gave the instance (e.g., Amazon_Linux-1GB-Virginia-1). + Name *string `locationName:"name" type:"string"` + + // Information about the public ports and monthly data transfer rates for the + // instance. + Networking *InstanceNetworking `locationName:"networking" type:"structure"` + + // The private IP address of the instance. + PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` + + // The public IP address of the instance. + PublicIpAddress *string `locationName:"publicIpAddress" type:"string"` + + // The type of resource (usually Instance). + ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` + + // The name of the SSH key being used to connect to the instance (e.g., LightsailDefaultKeyPair). + SshKeyName *string `locationName:"sshKeyName" type:"string"` + + // The status code and the state (e.g., running) for the instance. + State *InstanceState `locationName:"state" type:"structure"` + + // The support code. Include this code in your email to support when you have + // questions about an instance or another resource in Lightsail. This code enables + // our support team to look up your Lightsail information more easily. + SupportCode *string `locationName:"supportCode" type:"string"` + + // The user name for connecting to the instance (e.g., ec2-user). + Username *string `locationName:"username" type:"string"` +} + +// String returns the string representation +func (s Instance) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Instance) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *Instance) SetArn(v string) *Instance { + s.Arn = &v + return s +} + +// SetBlueprintId sets the BlueprintId field's value. +func (s *Instance) SetBlueprintId(v string) *Instance { + s.BlueprintId = &v + return s +} + +// SetBlueprintName sets the BlueprintName field's value. +func (s *Instance) SetBlueprintName(v string) *Instance { + s.BlueprintName = &v + return s +} + +// SetBundleId sets the BundleId field's value. +func (s *Instance) SetBundleId(v string) *Instance { + s.BundleId = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Instance) SetCreatedAt(v time.Time) *Instance { + s.CreatedAt = &v + return s +} + +// SetHardware sets the Hardware field's value. +func (s *Instance) SetHardware(v *InstanceHardware) *Instance { + s.Hardware = v + return s +} + +// SetIpv6Address sets the Ipv6Address field's value. +func (s *Instance) SetIpv6Address(v string) *Instance { + s.Ipv6Address = &v + return s +} + +// SetIsStaticIp sets the IsStaticIp field's value. +func (s *Instance) SetIsStaticIp(v bool) *Instance { + s.IsStaticIp = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *Instance) SetLocation(v *ResourceLocation) *Instance { + s.Location = v + return s +} + +// SetName sets the Name field's value. +func (s *Instance) SetName(v string) *Instance { + s.Name = &v + return s +} + +// SetNetworking sets the Networking field's value. +func (s *Instance) SetNetworking(v *InstanceNetworking) *Instance { + s.Networking = v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *Instance) SetPrivateIpAddress(v string) *Instance { + s.PrivateIpAddress = &v + return s +} + +// SetPublicIpAddress sets the PublicIpAddress field's value. +func (s *Instance) SetPublicIpAddress(v string) *Instance { + s.PublicIpAddress = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *Instance) SetResourceType(v string) *Instance { + s.ResourceType = &v + return s +} + +// SetSshKeyName sets the SshKeyName field's value. +func (s *Instance) SetSshKeyName(v string) *Instance { + s.SshKeyName = &v + return s +} + +// SetState sets the State field's value. +func (s *Instance) SetState(v *InstanceState) *Instance { + s.State = v + return s +} + +// SetSupportCode sets the SupportCode field's value. +func (s *Instance) SetSupportCode(v string) *Instance { + s.SupportCode = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *Instance) SetUsername(v string) *Instance { + s.Username = &v + return s +} + +// The parameters for gaining temporary access to one of your Amazon Lightsail +// instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/InstanceAccessDetails +type InstanceAccessDetails struct { + _ struct{} `type:"structure"` + + // For SSH access, the public key to use when accessing your instance For OpenSSH + // clients (e.g., command line SSH), you should save this value to tempkey-cert.pub. + CertKey *string `locationName:"certKey" type:"string"` + + // For SSH access, the date on which the temporary keys expire. + ExpiresAt *time.Time `locationName:"expiresAt" type:"timestamp" timestampFormat:"unix"` + + // The name of this Amazon Lightsail instance. + InstanceName *string `locationName:"instanceName" type:"string"` + + // The public IP address of the Amazon Lightsail instance. + IpAddress *string `locationName:"ipAddress" type:"string"` + + // For RDP access, the temporary password of the Amazon EC2 instance. + Password *string `locationName:"password" type:"string"` + + // For SSH access, the temporary private key. For OpenSSH clients (e.g., command + // line SSH), you should save this value to tempkey). + PrivateKey *string `locationName:"privateKey" type:"string"` + + // The protocol for these Amazon Lightsail instance access details. + Protocol *string `locationName:"protocol" type:"string" enum:"InstanceAccessProtocol"` + + // The user name to use when logging in to the Amazon Lightsail instance. + Username *string `locationName:"username" type:"string"` +} + +// String returns the string representation +func (s InstanceAccessDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceAccessDetails) GoString() string { + return s.String() +} + +// SetCertKey sets the CertKey field's value. +func (s *InstanceAccessDetails) SetCertKey(v string) *InstanceAccessDetails { + s.CertKey = &v + return s +} + +// SetExpiresAt sets the ExpiresAt field's value. +func (s *InstanceAccessDetails) SetExpiresAt(v time.Time) *InstanceAccessDetails { + s.ExpiresAt = &v + return s +} + +// SetInstanceName sets the InstanceName field's value. +func (s *InstanceAccessDetails) SetInstanceName(v string) *InstanceAccessDetails { + s.InstanceName = &v + return s +} + +// SetIpAddress sets the IpAddress field's value. +func (s *InstanceAccessDetails) SetIpAddress(v string) *InstanceAccessDetails { + s.IpAddress = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *InstanceAccessDetails) SetPassword(v string) *InstanceAccessDetails { + s.Password = &v + return s +} + +// SetPrivateKey sets the PrivateKey field's value. +func (s *InstanceAccessDetails) SetPrivateKey(v string) *InstanceAccessDetails { + s.PrivateKey = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *InstanceAccessDetails) SetProtocol(v string) *InstanceAccessDetails { + s.Protocol = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *InstanceAccessDetails) SetUsername(v string) *InstanceAccessDetails { + s.Username = &v + return s +} + +// Describes the hardware for the instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/InstanceHardware +type InstanceHardware struct { + _ struct{} `type:"structure"` + + // The number of vCPUs the instance has. + CpuCount *int64 `locationName:"cpuCount" type:"integer"` + + // The disks attached to the instance. + Disks []*Disk `locationName:"disks" type:"list"` + + // The amount of RAM in GB on the instance (e.g., 1.0). + RamSizeInGb *float64 `locationName:"ramSizeInGb" type:"float"` +} + +// String returns the string representation +func (s InstanceHardware) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceHardware) GoString() string { + return s.String() +} + +// SetCpuCount sets the CpuCount field's value. +func (s *InstanceHardware) SetCpuCount(v int64) *InstanceHardware { + s.CpuCount = &v + return s +} + +// SetDisks sets the Disks field's value. +func (s *InstanceHardware) SetDisks(v []*Disk) *InstanceHardware { + s.Disks = v + return s +} + +// SetRamSizeInGb sets the RamSizeInGb field's value. +func (s *InstanceHardware) SetRamSizeInGb(v float64) *InstanceHardware { + s.RamSizeInGb = &v + return s +} + +// Describes monthly data transfer rates and port information for an instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/InstanceNetworking +type InstanceNetworking struct { + _ struct{} `type:"structure"` + + // The amount of data in GB allocated for monthly data transfers. + MonthlyTransfer *MonthlyTransfer `locationName:"monthlyTransfer" type:"structure"` + + // An array of key-value pairs containing information about the ports on the + // instance. + Ports []*InstancePortInfo `locationName:"ports" type:"list"` +} + +// String returns the string representation +func (s InstanceNetworking) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceNetworking) GoString() string { + return s.String() +} + +// SetMonthlyTransfer sets the MonthlyTransfer field's value. +func (s *InstanceNetworking) SetMonthlyTransfer(v *MonthlyTransfer) *InstanceNetworking { + s.MonthlyTransfer = v + return s +} + +// SetPorts sets the Ports field's value. +func (s *InstanceNetworking) SetPorts(v []*InstancePortInfo) *InstanceNetworking { + s.Ports = v + return s +} + +// Describes information about the instance ports. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/InstancePortInfo +type InstancePortInfo struct { + _ struct{} `type:"structure"` + + // The access direction (inbound or outbound). + AccessDirection *string `locationName:"accessDirection" type:"string" enum:"AccessDirection"` + + // The location from which access is allowed (e.g., Anywhere (0.0.0.0/0)). + AccessFrom *string `locationName:"accessFrom" type:"string"` + + // The type of access (Public or Private). + AccessType *string `locationName:"accessType" type:"string" enum:"PortAccessType"` + + // The common name. + CommonName *string `locationName:"commonName" type:"string"` + + // The first port in the range. + FromPort *int64 `locationName:"fromPort" type:"integer"` + + // The protocol. + Protocol *string `locationName:"protocol" type:"string" enum:"NetworkProtocol"` + + // The last port in the range. + ToPort *int64 `locationName:"toPort" type:"integer"` +} + +// String returns the string representation +func (s InstancePortInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstancePortInfo) GoString() string { + return s.String() +} + +// SetAccessDirection sets the AccessDirection field's value. +func (s *InstancePortInfo) SetAccessDirection(v string) *InstancePortInfo { + s.AccessDirection = &v + return s +} + +// SetAccessFrom sets the AccessFrom field's value. +func (s *InstancePortInfo) SetAccessFrom(v string) *InstancePortInfo { + s.AccessFrom = &v + return s +} + +// SetAccessType sets the AccessType field's value. +func (s *InstancePortInfo) SetAccessType(v string) *InstancePortInfo { + s.AccessType = &v + return s +} + +// SetCommonName sets the CommonName field's value. +func (s *InstancePortInfo) SetCommonName(v string) *InstancePortInfo { + s.CommonName = &v + return s +} + +// SetFromPort sets the FromPort field's value. +func (s *InstancePortInfo) SetFromPort(v int64) *InstancePortInfo { + s.FromPort = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *InstancePortInfo) SetProtocol(v string) *InstancePortInfo { + s.Protocol = &v + return s +} + +// SetToPort sets the ToPort field's value. +func (s *InstancePortInfo) SetToPort(v int64) *InstancePortInfo { + s.ToPort = &v + return s +} + +// Describes the snapshot of the virtual private server, or instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/InstanceSnapshot +type InstanceSnapshot struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the snapshot (e.g., arn:aws:lightsail:us-east-1:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE). + Arn *string `locationName:"arn" type:"string"` + + // The timestamp when the snapshot was created (e.g., 1479907467.024). + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"` + + // The blueprint ID from which you created the snapshot (e.g., os_debian_8_3). + // A blueprint is a virtual private server (or instance) image used to create + // instances quickly. + FromBlueprintId *string `locationName:"fromBlueprintId" type:"string"` + + // The bundle ID from which you created the snapshot (e.g., micro_1_0). + FromBundleId *string `locationName:"fromBundleId" type:"string"` + + // The Amazon Resource Name (ARN) of the instance from which the snapshot was + // created (e.g., arn:aws:lightsail:us-east-1:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE). + FromInstanceArn *string `locationName:"fromInstanceArn" type:"string"` + + // The instance from which the snapshot was created. + FromInstanceName *string `locationName:"fromInstanceName" type:"string"` + + // The region name and availability zone where you created the snapshot. + Location *ResourceLocation `locationName:"location" type:"structure"` + + // The name of the snapshot. + Name *string `locationName:"name" type:"string"` + + // The progress of the snapshot. + Progress *string `locationName:"progress" type:"string"` + + // The type of resource (usually InstanceSnapshot). + ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` + + // The size in GB of the SSD. + SizeInGb *int64 `locationName:"sizeInGb" type:"integer"` + + // The state the snapshot is in. + State *string `locationName:"state" type:"string" enum:"InstanceSnapshotState"` + + // The support code. Include this code in your email to support when you have + // questions about an instance or another resource in Lightsail. This code enables + // our support team to look up your Lightsail information more easily. + SupportCode *string `locationName:"supportCode" type:"string"` +} + +// String returns the string representation +func (s InstanceSnapshot) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceSnapshot) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *InstanceSnapshot) SetArn(v string) *InstanceSnapshot { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *InstanceSnapshot) SetCreatedAt(v time.Time) *InstanceSnapshot { + s.CreatedAt = &v + return s +} + +// SetFromBlueprintId sets the FromBlueprintId field's value. +func (s *InstanceSnapshot) SetFromBlueprintId(v string) *InstanceSnapshot { + s.FromBlueprintId = &v + return s +} + +// SetFromBundleId sets the FromBundleId field's value. +func (s *InstanceSnapshot) SetFromBundleId(v string) *InstanceSnapshot { + s.FromBundleId = &v + return s +} + +// SetFromInstanceArn sets the FromInstanceArn field's value. +func (s *InstanceSnapshot) SetFromInstanceArn(v string) *InstanceSnapshot { + s.FromInstanceArn = &v + return s +} + +// SetFromInstanceName sets the FromInstanceName field's value. +func (s *InstanceSnapshot) SetFromInstanceName(v string) *InstanceSnapshot { + s.FromInstanceName = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *InstanceSnapshot) SetLocation(v *ResourceLocation) *InstanceSnapshot { + s.Location = v + return s +} + +// SetName sets the Name field's value. +func (s *InstanceSnapshot) SetName(v string) *InstanceSnapshot { + s.Name = &v + return s +} + +// SetProgress sets the Progress field's value. +func (s *InstanceSnapshot) SetProgress(v string) *InstanceSnapshot { + s.Progress = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *InstanceSnapshot) SetResourceType(v string) *InstanceSnapshot { + s.ResourceType = &v + return s +} + +// SetSizeInGb sets the SizeInGb field's value. +func (s *InstanceSnapshot) SetSizeInGb(v int64) *InstanceSnapshot { + s.SizeInGb = &v + return s +} + +// SetState sets the State field's value. +func (s *InstanceSnapshot) SetState(v string) *InstanceSnapshot { + s.State = &v + return s +} + +// SetSupportCode sets the SupportCode field's value. +func (s *InstanceSnapshot) SetSupportCode(v string) *InstanceSnapshot { + s.SupportCode = &v + return s +} + +// Describes the virtual private server (or instance) status. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/InstanceState +type InstanceState struct { + _ struct{} `type:"structure"` + + // The status code for the instance. + Code *int64 `locationName:"code" type:"integer"` + + // The state of the instance (e.g., running or pending). + Name *string `locationName:"name" type:"string"` +} + +// String returns the string representation +func (s InstanceState) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceState) GoString() string { + return s.String() +} + +// SetCode sets the Code field's value. +func (s *InstanceState) SetCode(v int64) *InstanceState { + s.Code = &v + return s +} + +// SetName sets the Name field's value. +func (s *InstanceState) SetName(v string) *InstanceState { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/IsVpcPeeredRequest +type IsVpcPeeredInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s IsVpcPeeredInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IsVpcPeeredInput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/IsVpcPeeredResult +type IsVpcPeeredOutput struct { + _ struct{} `type:"structure"` + + // Returns true if the Lightsail VPC is peered; otherwise, false. + IsPeered *bool `locationName:"isPeered" type:"boolean"` +} + +// String returns the string representation +func (s IsVpcPeeredOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IsVpcPeeredOutput) GoString() string { + return s.String() +} + +// SetIsPeered sets the IsPeered field's value. +func (s *IsVpcPeeredOutput) SetIsPeered(v bool) *IsVpcPeeredOutput { + s.IsPeered = &v + return s +} + +// Describes the SSH key pair. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/KeyPair +type KeyPair struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the key pair (e.g., arn:aws:lightsail:us-east-1:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE). + Arn *string `locationName:"arn" type:"string"` + + // The timestamp when the key pair was created (e.g., 1479816991.349). + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"` + + // The RSA fingerprint of the key pair. + Fingerprint *string `locationName:"fingerprint" type:"string"` + + // The region name and Availability Zone where the key pair was created. + Location *ResourceLocation `locationName:"location" type:"structure"` + + // The friendly name of the SSH key pair. + Name *string `locationName:"name" type:"string"` + + // The resource type (usually KeyPair). + ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` + + // The support code. Include this code in your email to support when you have + // questions about an instance or another resource in Lightsail. This code enables + // our support team to look up your Lightsail information more easily. + SupportCode *string `locationName:"supportCode" type:"string"` +} + +// String returns the string representation +func (s KeyPair) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KeyPair) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *KeyPair) SetArn(v string) *KeyPair { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *KeyPair) SetCreatedAt(v time.Time) *KeyPair { + s.CreatedAt = &v + return s +} + +// SetFingerprint sets the Fingerprint field's value. +func (s *KeyPair) SetFingerprint(v string) *KeyPair { + s.Fingerprint = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *KeyPair) SetLocation(v *ResourceLocation) *KeyPair { + s.Location = v + return s +} + +// SetName sets the Name field's value. +func (s *KeyPair) SetName(v string) *KeyPair { + s.Name = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *KeyPair) SetResourceType(v string) *KeyPair { + s.ResourceType = &v + return s +} + +// SetSupportCode sets the SupportCode field's value. +func (s *KeyPair) SetSupportCode(v string) *KeyPair { + s.SupportCode = &v + return s +} + +// Describes the metric data point. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/MetricDatapoint +type MetricDatapoint struct { + _ struct{} `type:"structure"` + + // The average. + Average *float64 `locationName:"average" type:"double"` + + // The maximum. + Maximum *float64 `locationName:"maximum" type:"double"` + + // The minimum. + Minimum *float64 `locationName:"minimum" type:"double"` + + // The sample count. + SampleCount *float64 `locationName:"sampleCount" type:"double"` + + // The sum. + Sum *float64 `locationName:"sum" type:"double"` + + // The timestamp (e.g., 1479816991.349). + Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"unix"` + + // The unit. + Unit *string `locationName:"unit" type:"string" enum:"MetricUnit"` +} + +// String returns the string representation +func (s MetricDatapoint) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MetricDatapoint) GoString() string { + return s.String() +} + +// SetAverage sets the Average field's value. +func (s *MetricDatapoint) SetAverage(v float64) *MetricDatapoint { + s.Average = &v + return s +} + +// SetMaximum sets the Maximum field's value. +func (s *MetricDatapoint) SetMaximum(v float64) *MetricDatapoint { + s.Maximum = &v + return s +} + +// SetMinimum sets the Minimum field's value. +func (s *MetricDatapoint) SetMinimum(v float64) *MetricDatapoint { + s.Minimum = &v + return s +} + +// SetSampleCount sets the SampleCount field's value. +func (s *MetricDatapoint) SetSampleCount(v float64) *MetricDatapoint { + s.SampleCount = &v + return s +} + +// SetSum sets the Sum field's value. +func (s *MetricDatapoint) SetSum(v float64) *MetricDatapoint { + s.Sum = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *MetricDatapoint) SetTimestamp(v time.Time) *MetricDatapoint { + s.Timestamp = &v + return s +} + +// SetUnit sets the Unit field's value. +func (s *MetricDatapoint) SetUnit(v string) *MetricDatapoint { + s.Unit = &v + return s +} + +// Describes the monthly data transfer in and out of your virtual private server +// (or instance). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/MonthlyTransfer +type MonthlyTransfer struct { + _ struct{} `type:"structure"` + + // The amount allocated per month (in GB). + GbPerMonthAllocated *int64 `locationName:"gbPerMonthAllocated" type:"integer"` +} + +// String returns the string representation +func (s MonthlyTransfer) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MonthlyTransfer) GoString() string { + return s.String() +} + +// SetGbPerMonthAllocated sets the GbPerMonthAllocated field's value. +func (s *MonthlyTransfer) SetGbPerMonthAllocated(v int64) *MonthlyTransfer { + s.GbPerMonthAllocated = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/OpenInstancePublicPortsRequest +type OpenInstancePublicPortsInput struct { + _ struct{} `type:"structure"` + + // The name of the instance for which you want to open the public ports. + // + // InstanceName is a required field + InstanceName *string `locationName:"instanceName" type:"string" required:"true"` + + // An array of key-value pairs containing information about the port mappings. + // + // PortInfo is a required field + PortInfo *PortInfo `locationName:"portInfo" type:"structure" required:"true"` +} + +// String returns the string representation +func (s OpenInstancePublicPortsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OpenInstancePublicPortsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *OpenInstancePublicPortsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OpenInstancePublicPortsInput"} + if s.InstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceName")) + } + if s.PortInfo == nil { + invalidParams.Add(request.NewErrParamRequired("PortInfo")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceName sets the InstanceName field's value. +func (s *OpenInstancePublicPortsInput) SetInstanceName(v string) *OpenInstancePublicPortsInput { + s.InstanceName = &v + return s +} + +// SetPortInfo sets the PortInfo field's value. +func (s *OpenInstancePublicPortsInput) SetPortInfo(v *PortInfo) *OpenInstancePublicPortsInput { + s.PortInfo = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/OpenInstancePublicPortsResult +type OpenInstancePublicPortsOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the request operation. + Operation *Operation `locationName:"operation" type:"structure"` +} + +// String returns the string representation +func (s OpenInstancePublicPortsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OpenInstancePublicPortsOutput) GoString() string { + return s.String() +} + +// SetOperation sets the Operation field's value. +func (s *OpenInstancePublicPortsOutput) SetOperation(v *Operation) *OpenInstancePublicPortsOutput { + s.Operation = v + return s +} + +// Describes the API operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/Operation +type Operation struct { + _ struct{} `type:"structure"` + + // The timestamp when the operation was initialized (e.g., 1479816991.349). + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"` + + // The error code. + ErrorCode *string `locationName:"errorCode" type:"string"` + + // The error details. + ErrorDetails *string `locationName:"errorDetails" type:"string"` + + // The ID of the operation. + Id *string `locationName:"id" type:"string"` + + // A Boolean value indicating whether the operation is terminal. + IsTerminal *bool `locationName:"isTerminal" type:"boolean"` + + // The region and Availability Zone. + Location *ResourceLocation `locationName:"location" type:"structure"` + + // Details about the operation (e.g., Debian-1GB-Virginia-1). + OperationDetails *string `locationName:"operationDetails" type:"string"` + + // The type of operation. + OperationType *string `locationName:"operationType" type:"string" enum:"OperationType"` + + // The resource name. + ResourceName *string `locationName:"resourceName" type:"string"` + + // The resource type. + ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` + + // The status of the operation. + Status *string `locationName:"status" type:"string" enum:"OperationStatus"` + + // The timestamp when the status was changed (e.g., 1479816991.349). + StatusChangedAt *time.Time `locationName:"statusChangedAt" type:"timestamp" timestampFormat:"unix"` +} + +// String returns the string representation +func (s Operation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Operation) GoString() string { + return s.String() +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Operation) SetCreatedAt(v time.Time) *Operation { + s.CreatedAt = &v + return s +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *Operation) SetErrorCode(v string) *Operation { + s.ErrorCode = &v + return s +} + +// SetErrorDetails sets the ErrorDetails field's value. +func (s *Operation) SetErrorDetails(v string) *Operation { + s.ErrorDetails = &v + return s +} + +// SetId sets the Id field's value. +func (s *Operation) SetId(v string) *Operation { + s.Id = &v + return s +} + +// SetIsTerminal sets the IsTerminal field's value. +func (s *Operation) SetIsTerminal(v bool) *Operation { + s.IsTerminal = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *Operation) SetLocation(v *ResourceLocation) *Operation { + s.Location = v + return s +} + +// SetOperationDetails sets the OperationDetails field's value. +func (s *Operation) SetOperationDetails(v string) *Operation { + s.OperationDetails = &v + return s +} + +// SetOperationType sets the OperationType field's value. +func (s *Operation) SetOperationType(v string) *Operation { + s.OperationType = &v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *Operation) SetResourceName(v string) *Operation { + s.ResourceName = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *Operation) SetResourceType(v string) *Operation { + s.ResourceType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Operation) SetStatus(v string) *Operation { + s.Status = &v + return s +} + +// SetStatusChangedAt sets the StatusChangedAt field's value. +func (s *Operation) SetStatusChangedAt(v time.Time) *Operation { + s.StatusChangedAt = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/PeerVpcRequest +type PeerVpcInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PeerVpcInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PeerVpcInput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/PeerVpcResult +type PeerVpcOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the request operation. + Operation *Operation `locationName:"operation" type:"structure"` +} + +// String returns the string representation +func (s PeerVpcOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PeerVpcOutput) GoString() string { + return s.String() +} + +// SetOperation sets the Operation field's value. +func (s *PeerVpcOutput) SetOperation(v *Operation) *PeerVpcOutput { + s.Operation = v + return s +} + +// Describes information about the ports on your virtual private server (or +// instance). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/PortInfo +type PortInfo struct { + _ struct{} `type:"structure"` + + // The first port in the range. + FromPort *int64 `locationName:"fromPort" type:"integer"` + + // The protocol. + Protocol *string `locationName:"protocol" type:"string" enum:"NetworkProtocol"` + + // The last port in the range. + ToPort *int64 `locationName:"toPort" type:"integer"` +} + +// String returns the string representation +func (s PortInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PortInfo) GoString() string { + return s.String() +} + +// SetFromPort sets the FromPort field's value. +func (s *PortInfo) SetFromPort(v int64) *PortInfo { + s.FromPort = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *PortInfo) SetProtocol(v string) *PortInfo { + s.Protocol = &v + return s +} + +// SetToPort sets the ToPort field's value. +func (s *PortInfo) SetToPort(v int64) *PortInfo { + s.ToPort = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/RebootInstanceRequest +type RebootInstanceInput struct { + _ struct{} `type:"structure"` + + // The name of the instance to reboot. + // + // InstanceName is a required field + InstanceName *string `locationName:"instanceName" type:"string" required:"true"` +} + +// String returns the string representation +func (s RebootInstanceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RebootInstanceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RebootInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RebootInstanceInput"} + if s.InstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceName sets the InstanceName field's value. +func (s *RebootInstanceInput) SetInstanceName(v string) *RebootInstanceInput { + s.InstanceName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/RebootInstanceResult +type RebootInstanceOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the request operation. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s RebootInstanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RebootInstanceOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *RebootInstanceOutput) SetOperations(v []*Operation) *RebootInstanceOutput { + s.Operations = v + return s +} + +// Describes the AWS Region. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/Region +type Region struct { + _ struct{} `type:"structure"` + + // The Availability Zones. + AvailabilityZones []*AvailabilityZone `locationName:"availabilityZones" type:"list"` + + // The continent code (e.g., NA, meaning North America). + ContinentCode *string `locationName:"continentCode" type:"string"` + + // The description of the AWS Region (e.g., This region is recommended to serve + // users in the eastern United States and eastern Canada). + Description *string `locationName:"description" type:"string"` + + // The display name (e.g., Virginia). + DisplayName *string `locationName:"displayName" type:"string"` + + // The region name (e.g., us-east-1). + Name *string `locationName:"name" type:"string" enum:"RegionName"` +} + +// String returns the string representation +func (s Region) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Region) GoString() string { + return s.String() +} + +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *Region) SetAvailabilityZones(v []*AvailabilityZone) *Region { + s.AvailabilityZones = v + return s +} + +// SetContinentCode sets the ContinentCode field's value. +func (s *Region) SetContinentCode(v string) *Region { + s.ContinentCode = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Region) SetDescription(v string) *Region { + s.Description = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *Region) SetDisplayName(v string) *Region { + s.DisplayName = &v + return s +} + +// SetName sets the Name field's value. +func (s *Region) SetName(v string) *Region { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ReleaseStaticIpRequest +type ReleaseStaticIpInput struct { + _ struct{} `type:"structure"` + + // The name of the static IP to delete. + // + // StaticIpName is a required field + StaticIpName *string `locationName:"staticIpName" type:"string" required:"true"` +} + +// String returns the string representation +func (s ReleaseStaticIpInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReleaseStaticIpInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ReleaseStaticIpInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ReleaseStaticIpInput"} + if s.StaticIpName == nil { + invalidParams.Add(request.NewErrParamRequired("StaticIpName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetStaticIpName sets the StaticIpName field's value. +func (s *ReleaseStaticIpInput) SetStaticIpName(v string) *ReleaseStaticIpInput { + s.StaticIpName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ReleaseStaticIpResult +type ReleaseStaticIpOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the request operation. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s ReleaseStaticIpOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReleaseStaticIpOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *ReleaseStaticIpOutput) SetOperations(v []*Operation) *ReleaseStaticIpOutput { + s.Operations = v + return s +} + +// Describes the resource location. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ResourceLocation +type ResourceLocation struct { + _ struct{} `type:"structure"` + + // The Availability Zone. + AvailabilityZone *string `locationName:"availabilityZone" type:"string"` + + // The AWS Region name. + RegionName *string `locationName:"regionName" type:"string" enum:"RegionName"` +} + +// String returns the string representation +func (s ResourceLocation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceLocation) GoString() string { + return s.String() +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ResourceLocation) SetAvailabilityZone(v string) *ResourceLocation { + s.AvailabilityZone = &v + return s +} + +// SetRegionName sets the RegionName field's value. +func (s *ResourceLocation) SetRegionName(v string) *ResourceLocation { + s.RegionName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StartInstanceRequest +type StartInstanceInput struct { + _ struct{} `type:"structure"` + + // The name of the instance (a virtual private server) to start. + // + // InstanceName is a required field + InstanceName *string `locationName:"instanceName" type:"string" required:"true"` +} + +// String returns the string representation +func (s StartInstanceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartInstanceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartInstanceInput"} + if s.InstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceName sets the InstanceName field's value. +func (s *StartInstanceInput) SetInstanceName(v string) *StartInstanceInput { + s.InstanceName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StartInstanceResult +type StartInstanceOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the request operation. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s StartInstanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartInstanceOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *StartInstanceOutput) SetOperations(v []*Operation) *StartInstanceOutput { + s.Operations = v + return s +} + +// Describes the static IP. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StaticIp +type StaticIp struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the static IP (e.g., arn:aws:lightsail:us-east-1:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE). + Arn *string `locationName:"arn" type:"string"` + + // The instance where the static IP is attached (e.g., Amazon_Linux-1GB-Virginia-1). + AttachedTo *string `locationName:"attachedTo" type:"string"` + + // The timestamp when the static IP was created (e.g., 1479735304.222). + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"` + + // The static IP address. + IpAddress *string `locationName:"ipAddress" type:"string"` + + // A Boolean value indicating whether the static IP is attached. + IsAttached *bool `locationName:"isAttached" type:"boolean"` + + // The region and Availability Zone where the static IP was created. + Location *ResourceLocation `locationName:"location" type:"structure"` + + // The name of the static IP (e.g., StaticIP-Virginia-EXAMPLE). + Name *string `locationName:"name" type:"string"` + + // The resource type (usually StaticIp). + ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` + + // The support code. Include this code in your email to support when you have + // questions about an instance or another resource in Lightsail. This code enables + // our support team to look up your Lightsail information more easily. + SupportCode *string `locationName:"supportCode" type:"string"` +} + +// String returns the string representation +func (s StaticIp) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StaticIp) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *StaticIp) SetArn(v string) *StaticIp { + s.Arn = &v + return s +} + +// SetAttachedTo sets the AttachedTo field's value. +func (s *StaticIp) SetAttachedTo(v string) *StaticIp { + s.AttachedTo = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *StaticIp) SetCreatedAt(v time.Time) *StaticIp { + s.CreatedAt = &v + return s +} + +// SetIpAddress sets the IpAddress field's value. +func (s *StaticIp) SetIpAddress(v string) *StaticIp { + s.IpAddress = &v + return s +} + +// SetIsAttached sets the IsAttached field's value. +func (s *StaticIp) SetIsAttached(v bool) *StaticIp { + s.IsAttached = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *StaticIp) SetLocation(v *ResourceLocation) *StaticIp { + s.Location = v + return s +} + +// SetName sets the Name field's value. +func (s *StaticIp) SetName(v string) *StaticIp { + s.Name = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *StaticIp) SetResourceType(v string) *StaticIp { + s.ResourceType = &v + return s +} + +// SetSupportCode sets the SupportCode field's value. +func (s *StaticIp) SetSupportCode(v string) *StaticIp { + s.SupportCode = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StopInstanceRequest +type StopInstanceInput struct { + _ struct{} `type:"structure"` + + // The name of the instance (a virtual private server) to stop. + // + // InstanceName is a required field + InstanceName *string `locationName:"instanceName" type:"string" required:"true"` +} + +// String returns the string representation +func (s StopInstanceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopInstanceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopInstanceInput"} + if s.InstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceName sets the InstanceName field's value. +func (s *StopInstanceInput) SetInstanceName(v string) *StopInstanceInput { + s.InstanceName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StopInstanceResult +type StopInstanceOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the request operation. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s StopInstanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopInstanceOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *StopInstanceOutput) SetOperations(v []*Operation) *StopInstanceOutput { + s.Operations = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UnpeerVpcRequest +type UnpeerVpcInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UnpeerVpcInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnpeerVpcInput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UnpeerVpcResult +type UnpeerVpcOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the request operation. + Operation *Operation `locationName:"operation" type:"structure"` +} + +// String returns the string representation +func (s UnpeerVpcOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnpeerVpcOutput) GoString() string { + return s.String() +} + +// SetOperation sets the Operation field's value. +func (s *UnpeerVpcOutput) SetOperation(v *Operation) *UnpeerVpcOutput { + s.Operation = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateDomainEntryRequest +type UpdateDomainEntryInput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the domain entry. + // + // DomainEntry is a required field + DomainEntry *DomainEntry `locationName:"domainEntry" type:"structure" required:"true"` + + // The name of the domain recordset to update. + // + // DomainName is a required field + DomainName *string `locationName:"domainName" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateDomainEntryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateDomainEntryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateDomainEntryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateDomainEntryInput"} + if s.DomainEntry == nil { + invalidParams.Add(request.NewErrParamRequired("DomainEntry")) + } + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainEntry sets the DomainEntry field's value. +func (s *UpdateDomainEntryInput) SetDomainEntry(v *DomainEntry) *UpdateDomainEntryInput { + s.DomainEntry = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *UpdateDomainEntryInput) SetDomainName(v string) *UpdateDomainEntryInput { + s.DomainName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateDomainEntryResult +type UpdateDomainEntryOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the request operation. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s UpdateDomainEntryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateDomainEntryOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *UpdateDomainEntryOutput) SetOperations(v []*Operation) *UpdateDomainEntryOutput { + s.Operations = v + return s +} + +const ( + // AccessDirectionInbound is a AccessDirection enum value + AccessDirectionInbound = "inbound" + + // AccessDirectionOutbound is a AccessDirection enum value + AccessDirectionOutbound = "outbound" +) + +const ( + // BlueprintTypeOs is a BlueprintType enum value + BlueprintTypeOs = "os" + + // BlueprintTypeApp is a BlueprintType enum value + BlueprintTypeApp = "app" +) + +const ( + // InstanceAccessProtocolSsh is a InstanceAccessProtocol enum value + InstanceAccessProtocolSsh = "ssh" + + // InstanceAccessProtocolRdp is a InstanceAccessProtocol enum value + InstanceAccessProtocolRdp = "rdp" +) + +const ( + // InstanceMetricNameCpuutilization is a InstanceMetricName enum value + InstanceMetricNameCpuutilization = "CPUUtilization" + + // InstanceMetricNameNetworkIn is a InstanceMetricName enum value + InstanceMetricNameNetworkIn = "NetworkIn" + + // InstanceMetricNameNetworkOut is a InstanceMetricName enum value + InstanceMetricNameNetworkOut = "NetworkOut" + + // InstanceMetricNameStatusCheckFailed is a InstanceMetricName enum value + InstanceMetricNameStatusCheckFailed = "StatusCheckFailed" + + // InstanceMetricNameStatusCheckFailedInstance is a InstanceMetricName enum value + InstanceMetricNameStatusCheckFailedInstance = "StatusCheckFailed_Instance" + + // InstanceMetricNameStatusCheckFailedSystem is a InstanceMetricName enum value + InstanceMetricNameStatusCheckFailedSystem = "StatusCheckFailed_System" +) + +const ( + // InstanceSnapshotStatePending is a InstanceSnapshotState enum value + InstanceSnapshotStatePending = "pending" + + // InstanceSnapshotStateError is a InstanceSnapshotState enum value + InstanceSnapshotStateError = "error" + + // InstanceSnapshotStateAvailable is a InstanceSnapshotState enum value + InstanceSnapshotStateAvailable = "available" +) + +const ( + // MetricStatisticMinimum is a MetricStatistic enum value + MetricStatisticMinimum = "Minimum" + + // MetricStatisticMaximum is a MetricStatistic enum value + MetricStatisticMaximum = "Maximum" + + // MetricStatisticSum is a MetricStatistic enum value + MetricStatisticSum = "Sum" + + // MetricStatisticAverage is a MetricStatistic enum value + MetricStatisticAverage = "Average" + + // MetricStatisticSampleCount is a MetricStatistic enum value + MetricStatisticSampleCount = "SampleCount" +) + +const ( + // MetricUnitSeconds is a MetricUnit enum value + MetricUnitSeconds = "Seconds" + + // MetricUnitMicroseconds is a MetricUnit enum value + MetricUnitMicroseconds = "Microseconds" + + // MetricUnitMilliseconds is a MetricUnit enum value + MetricUnitMilliseconds = "Milliseconds" + + // MetricUnitBytes is a MetricUnit enum value + MetricUnitBytes = "Bytes" + + // MetricUnitKilobytes is a MetricUnit enum value + MetricUnitKilobytes = "Kilobytes" + + // MetricUnitMegabytes is a MetricUnit enum value + MetricUnitMegabytes = "Megabytes" + + // MetricUnitGigabytes is a MetricUnit enum value + MetricUnitGigabytes = "Gigabytes" + + // MetricUnitTerabytes is a MetricUnit enum value + MetricUnitTerabytes = "Terabytes" + + // MetricUnitBits is a MetricUnit enum value + MetricUnitBits = "Bits" + + // MetricUnitKilobits is a MetricUnit enum value + MetricUnitKilobits = "Kilobits" + + // MetricUnitMegabits is a MetricUnit enum value + MetricUnitMegabits = "Megabits" + + // MetricUnitGigabits is a MetricUnit enum value + MetricUnitGigabits = "Gigabits" + + // MetricUnitTerabits is a MetricUnit enum value + MetricUnitTerabits = "Terabits" + + // MetricUnitPercent is a MetricUnit enum value + MetricUnitPercent = "Percent" + + // MetricUnitCount is a MetricUnit enum value + MetricUnitCount = "Count" + + // MetricUnitBytesSecond is a MetricUnit enum value + MetricUnitBytesSecond = "Bytes/Second" + + // MetricUnitKilobytesSecond is a MetricUnit enum value + MetricUnitKilobytesSecond = "Kilobytes/Second" + + // MetricUnitMegabytesSecond is a MetricUnit enum value + MetricUnitMegabytesSecond = "Megabytes/Second" + + // MetricUnitGigabytesSecond is a MetricUnit enum value + MetricUnitGigabytesSecond = "Gigabytes/Second" + + // MetricUnitTerabytesSecond is a MetricUnit enum value + MetricUnitTerabytesSecond = "Terabytes/Second" + + // MetricUnitBitsSecond is a MetricUnit enum value + MetricUnitBitsSecond = "Bits/Second" + + // MetricUnitKilobitsSecond is a MetricUnit enum value + MetricUnitKilobitsSecond = "Kilobits/Second" + + // MetricUnitMegabitsSecond is a MetricUnit enum value + MetricUnitMegabitsSecond = "Megabits/Second" + + // MetricUnitGigabitsSecond is a MetricUnit enum value + MetricUnitGigabitsSecond = "Gigabits/Second" + + // MetricUnitTerabitsSecond is a MetricUnit enum value + MetricUnitTerabitsSecond = "Terabits/Second" + + // MetricUnitCountSecond is a MetricUnit enum value + MetricUnitCountSecond = "Count/Second" + + // MetricUnitNone is a MetricUnit enum value + MetricUnitNone = "None" +) + +const ( + // NetworkProtocolTcp is a NetworkProtocol enum value + NetworkProtocolTcp = "tcp" + + // NetworkProtocolAll is a NetworkProtocol enum value + NetworkProtocolAll = "all" + + // NetworkProtocolUdp is a NetworkProtocol enum value + NetworkProtocolUdp = "udp" +) + +const ( + // OperationStatusNotStarted is a OperationStatus enum value + OperationStatusNotStarted = "NotStarted" + + // OperationStatusStarted is a OperationStatus enum value + OperationStatusStarted = "Started" + + // OperationStatusFailed is a OperationStatus enum value + OperationStatusFailed = "Failed" + + // OperationStatusCompleted is a OperationStatus enum value + OperationStatusCompleted = "Completed" +) + +const ( + // OperationTypeDeleteInstance is a OperationType enum value + OperationTypeDeleteInstance = "DeleteInstance" + + // OperationTypeCreateInstance is a OperationType enum value + OperationTypeCreateInstance = "CreateInstance" + + // OperationTypeStopInstance is a OperationType enum value + OperationTypeStopInstance = "StopInstance" + + // OperationTypeStartInstance is a OperationType enum value + OperationTypeStartInstance = "StartInstance" + + // OperationTypeRebootInstance is a OperationType enum value + OperationTypeRebootInstance = "RebootInstance" + + // OperationTypeOpenInstancePublicPorts is a OperationType enum value + OperationTypeOpenInstancePublicPorts = "OpenInstancePublicPorts" + + // OperationTypeCloseInstancePublicPorts is a OperationType enum value + OperationTypeCloseInstancePublicPorts = "CloseInstancePublicPorts" + + // OperationTypeAllocateStaticIp is a OperationType enum value + OperationTypeAllocateStaticIp = "AllocateStaticIp" + + // OperationTypeReleaseStaticIp is a OperationType enum value + OperationTypeReleaseStaticIp = "ReleaseStaticIp" + + // OperationTypeAttachStaticIp is a OperationType enum value + OperationTypeAttachStaticIp = "AttachStaticIp" + + // OperationTypeDetachStaticIp is a OperationType enum value + OperationTypeDetachStaticIp = "DetachStaticIp" + + // OperationTypeUpdateDomainEntry is a OperationType enum value + OperationTypeUpdateDomainEntry = "UpdateDomainEntry" + + // OperationTypeDeleteDomainEntry is a OperationType enum value + OperationTypeDeleteDomainEntry = "DeleteDomainEntry" + + // OperationTypeCreateDomain is a OperationType enum value + OperationTypeCreateDomain = "CreateDomain" + + // OperationTypeDeleteDomain is a OperationType enum value + OperationTypeDeleteDomain = "DeleteDomain" + + // OperationTypeCreateInstanceSnapshot is a OperationType enum value + OperationTypeCreateInstanceSnapshot = "CreateInstanceSnapshot" + + // OperationTypeDeleteInstanceSnapshot is a OperationType enum value + OperationTypeDeleteInstanceSnapshot = "DeleteInstanceSnapshot" + + // OperationTypeCreateInstancesFromSnapshot is a OperationType enum value + OperationTypeCreateInstancesFromSnapshot = "CreateInstancesFromSnapshot" +) + +const ( + // PortAccessTypePublic is a PortAccessType enum value + PortAccessTypePublic = "Public" + + // PortAccessTypePrivate is a PortAccessType enum value + PortAccessTypePrivate = "Private" +) + +const ( + // PortStateOpen is a PortState enum value + PortStateOpen = "open" + + // PortStateClosed is a PortState enum value + PortStateClosed = "closed" +) + +const ( + // RegionNameUsEast1 is a RegionName enum value + RegionNameUsEast1 = "us-east-1" + + // RegionNameUsWest1 is a RegionName enum value + RegionNameUsWest1 = "us-west-1" + + // RegionNameUsWest2 is a RegionName enum value + RegionNameUsWest2 = "us-west-2" + + // RegionNameEuWest1 is a RegionName enum value + RegionNameEuWest1 = "eu-west-1" + + // RegionNameEuCentral1 is a RegionName enum value + RegionNameEuCentral1 = "eu-central-1" + + // RegionNameApSouth1 is a RegionName enum value + RegionNameApSouth1 = "ap-south-1" + + // RegionNameApSoutheast1 is a RegionName enum value + RegionNameApSoutheast1 = "ap-southeast-1" + + // RegionNameApSoutheast2 is a RegionName enum value + RegionNameApSoutheast2 = "ap-southeast-2" + + // RegionNameApNortheast1 is a RegionName enum value + RegionNameApNortheast1 = "ap-northeast-1" + + // RegionNameApNortheast2 is a RegionName enum value + RegionNameApNortheast2 = "ap-northeast-2" +) + +const ( + // ResourceTypeInstance is a ResourceType enum value + ResourceTypeInstance = "Instance" + + // ResourceTypeStaticIp is a ResourceType enum value + ResourceTypeStaticIp = "StaticIp" + + // ResourceTypeKeyPair is a ResourceType enum value + ResourceTypeKeyPair = "KeyPair" + + // ResourceTypeInstanceSnapshot is a ResourceType enum value + ResourceTypeInstanceSnapshot = "InstanceSnapshot" + + // ResourceTypeDomain is a ResourceType enum value + ResourceTypeDomain = "Domain" + + // ResourceTypePeeredVpc is a ResourceType enum value + ResourceTypePeeredVpc = "PeeredVpc" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/lightsail/errors.go b/vendor/github.com/aws/aws-sdk-go/service/lightsail/errors.go new file mode 100644 index 000000000..309a86b9c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/lightsail/errors.go @@ -0,0 +1,51 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package lightsail + +const ( + + // ErrCodeAccessDeniedException for service response error code + // "AccessDeniedException". + // + // Lightsail throws this exception when the user cannot be authenticated or + // uses invalid credentials to access a resource. + ErrCodeAccessDeniedException = "AccessDeniedException" + + // ErrCodeAccountSetupInProgressException for service response error code + // "AccountSetupInProgressException". + // + // Lightsail throws this exception when an account is still in the setup in + // progress state. + ErrCodeAccountSetupInProgressException = "AccountSetupInProgressException" + + // ErrCodeInvalidInputException for service response error code + // "InvalidInputException". + // + // Lightsail throws this exception when user input does not conform to the validation + // rules of an input field. + ErrCodeInvalidInputException = "InvalidInputException" + + // ErrCodeNotFoundException for service response error code + // "NotFoundException". + // + // Lightsail throws this exception when it cannot find a resource. + ErrCodeNotFoundException = "NotFoundException" + + // ErrCodeOperationFailureException for service response error code + // "OperationFailureException". + // + // Lightsail throws this exception when an operation fails to execute. + ErrCodeOperationFailureException = "OperationFailureException" + + // ErrCodeServiceException for service response error code + // "ServiceException". + // + // A general service exception. + ErrCodeServiceException = "ServiceException" + + // ErrCodeUnauthenticatedException for service response error code + // "UnauthenticatedException". + // + // Lightsail throws this exception when the user has not been authenticated. + ErrCodeUnauthenticatedException = "UnauthenticatedException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/lightsail/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/lightsail/examples_test.go new file mode 100644 index 000000000..16b248695 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/lightsail/examples_test.go @@ -0,0 +1,1068 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package lightsail_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/lightsail" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExampleLightsail_AllocateStaticIp() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.AllocateStaticIpInput{ + StaticIpName: aws.String("ResourceName"), // Required + } + resp, err := svc.AllocateStaticIp(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_AttachStaticIp() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.AttachStaticIpInput{ + InstanceName: aws.String("ResourceName"), // Required + StaticIpName: aws.String("ResourceName"), // Required + } + resp, err := svc.AttachStaticIp(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_CloseInstancePublicPorts() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.CloseInstancePublicPortsInput{ + InstanceName: aws.String("ResourceName"), // Required + PortInfo: &lightsail.PortInfo{ // Required + FromPort: aws.Int64(1), + Protocol: aws.String("NetworkProtocol"), + ToPort: aws.Int64(1), + }, + } + resp, err := svc.CloseInstancePublicPorts(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_CreateDomain() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.CreateDomainInput{ + DomainName: aws.String("DomainName"), // Required + } + resp, err := svc.CreateDomain(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_CreateDomainEntry() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.CreateDomainEntryInput{ + DomainEntry: &lightsail.DomainEntry{ // Required + Id: aws.String("NonEmptyString"), + Name: aws.String("DomainName"), + Options: map[string]*string{ + "Key": aws.String("string"), // Required + // More values... + }, + Target: aws.String("string"), + Type: aws.String("DomainEntryType"), + }, + DomainName: aws.String("DomainName"), // Required + } + resp, err := svc.CreateDomainEntry(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_CreateInstanceSnapshot() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.CreateInstanceSnapshotInput{ + InstanceName: aws.String("ResourceName"), // Required + InstanceSnapshotName: aws.String("ResourceName"), // Required + } + resp, err := svc.CreateInstanceSnapshot(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_CreateInstances() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.CreateInstancesInput{ + AvailabilityZone: aws.String("string"), // Required + BlueprintId: aws.String("NonEmptyString"), // Required + BundleId: aws.String("NonEmptyString"), // Required + InstanceNames: []*string{ // Required + aws.String("string"), // Required + // More values... + }, + CustomImageName: aws.String("ResourceName"), + KeyPairName: aws.String("ResourceName"), + UserData: aws.String("string"), + } + resp, err := svc.CreateInstances(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_CreateInstancesFromSnapshot() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.CreateInstancesFromSnapshotInput{ + AvailabilityZone: aws.String("string"), // Required + BundleId: aws.String("NonEmptyString"), // Required + InstanceNames: []*string{ // Required + aws.String("string"), // Required + // More values... + }, + InstanceSnapshotName: aws.String("ResourceName"), // Required + KeyPairName: aws.String("ResourceName"), + UserData: aws.String("string"), + } + resp, err := svc.CreateInstancesFromSnapshot(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_CreateKeyPair() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.CreateKeyPairInput{ + KeyPairName: aws.String("ResourceName"), // Required + } + resp, err := svc.CreateKeyPair(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_DeleteDomain() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.DeleteDomainInput{ + DomainName: aws.String("DomainName"), // Required + } + resp, err := svc.DeleteDomain(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_DeleteDomainEntry() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.DeleteDomainEntryInput{ + DomainEntry: &lightsail.DomainEntry{ // Required + Id: aws.String("NonEmptyString"), + Name: aws.String("DomainName"), + Options: map[string]*string{ + "Key": aws.String("string"), // Required + // More values... + }, + Target: aws.String("string"), + Type: aws.String("DomainEntryType"), + }, + DomainName: aws.String("DomainName"), // Required + } + resp, err := svc.DeleteDomainEntry(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_DeleteInstance() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.DeleteInstanceInput{ + InstanceName: aws.String("ResourceName"), // Required + } + resp, err := svc.DeleteInstance(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_DeleteInstanceSnapshot() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.DeleteInstanceSnapshotInput{ + InstanceSnapshotName: aws.String("ResourceName"), // Required + } + resp, err := svc.DeleteInstanceSnapshot(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_DeleteKeyPair() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.DeleteKeyPairInput{ + KeyPairName: aws.String("ResourceName"), // Required + } + resp, err := svc.DeleteKeyPair(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_DetachStaticIp() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.DetachStaticIpInput{ + StaticIpName: aws.String("ResourceName"), // Required + } + resp, err := svc.DetachStaticIp(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_DownloadDefaultKeyPair() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + var params *lightsail.DownloadDefaultKeyPairInput + resp, err := svc.DownloadDefaultKeyPair(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetActiveNames() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetActiveNamesInput{ + PageToken: aws.String("string"), + } + resp, err := svc.GetActiveNames(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetBlueprints() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetBlueprintsInput{ + IncludeInactive: aws.Bool(true), + PageToken: aws.String("string"), + } + resp, err := svc.GetBlueprints(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetBundles() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetBundlesInput{ + IncludeInactive: aws.Bool(true), + PageToken: aws.String("string"), + } + resp, err := svc.GetBundles(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetDomain() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetDomainInput{ + DomainName: aws.String("DomainName"), // Required + } + resp, err := svc.GetDomain(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetDomains() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetDomainsInput{ + PageToken: aws.String("string"), + } + resp, err := svc.GetDomains(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetInstance() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetInstanceInput{ + InstanceName: aws.String("ResourceName"), // Required + } + resp, err := svc.GetInstance(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetInstanceAccessDetails() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetInstanceAccessDetailsInput{ + InstanceName: aws.String("ResourceName"), // Required + Protocol: aws.String("InstanceAccessProtocol"), + } + resp, err := svc.GetInstanceAccessDetails(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetInstanceMetricData() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetInstanceMetricDataInput{ + EndTime: aws.Time(time.Now()), // Required + InstanceName: aws.String("ResourceName"), // Required + MetricName: aws.String("InstanceMetricName"), // Required + Period: aws.Int64(1), // Required + StartTime: aws.Time(time.Now()), // Required + Statistics: []*string{ // Required + aws.String("MetricStatistic"), // Required + // More values... + }, + Unit: aws.String("MetricUnit"), // Required + } + resp, err := svc.GetInstanceMetricData(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetInstancePortStates() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetInstancePortStatesInput{ + InstanceName: aws.String("ResourceName"), // Required + } + resp, err := svc.GetInstancePortStates(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetInstanceSnapshot() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetInstanceSnapshotInput{ + InstanceSnapshotName: aws.String("ResourceName"), // Required + } + resp, err := svc.GetInstanceSnapshot(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetInstanceSnapshots() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetInstanceSnapshotsInput{ + PageToken: aws.String("string"), + } + resp, err := svc.GetInstanceSnapshots(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetInstanceState() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetInstanceStateInput{ + InstanceName: aws.String("ResourceName"), // Required + } + resp, err := svc.GetInstanceState(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetInstances() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetInstancesInput{ + PageToken: aws.String("string"), + } + resp, err := svc.GetInstances(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetKeyPair() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetKeyPairInput{ + KeyPairName: aws.String("ResourceName"), // Required + } + resp, err := svc.GetKeyPair(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetKeyPairs() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetKeyPairsInput{ + PageToken: aws.String("string"), + } + resp, err := svc.GetKeyPairs(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetOperation() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetOperationInput{ + OperationId: aws.String("NonEmptyString"), // Required + } + resp, err := svc.GetOperation(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetOperations() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetOperationsInput{ + PageToken: aws.String("string"), + } + resp, err := svc.GetOperations(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetOperationsForResource() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetOperationsForResourceInput{ + ResourceName: aws.String("ResourceName"), // Required + PageToken: aws.String("string"), + } + resp, err := svc.GetOperationsForResource(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetRegions() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetRegionsInput{ + IncludeAvailabilityZones: aws.Bool(true), + } + resp, err := svc.GetRegions(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetStaticIp() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetStaticIpInput{ + StaticIpName: aws.String("ResourceName"), // Required + } + resp, err := svc.GetStaticIp(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_GetStaticIps() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.GetStaticIpsInput{ + PageToken: aws.String("string"), + } + resp, err := svc.GetStaticIps(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_ImportKeyPair() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.ImportKeyPairInput{ + KeyPairName: aws.String("ResourceName"), // Required + PublicKeyBase64: aws.String("Base64"), // Required + } + resp, err := svc.ImportKeyPair(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_IsVpcPeered() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + var params *lightsail.IsVpcPeeredInput + resp, err := svc.IsVpcPeered(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_OpenInstancePublicPorts() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.OpenInstancePublicPortsInput{ + InstanceName: aws.String("ResourceName"), // Required + PortInfo: &lightsail.PortInfo{ // Required + FromPort: aws.Int64(1), + Protocol: aws.String("NetworkProtocol"), + ToPort: aws.Int64(1), + }, + } + resp, err := svc.OpenInstancePublicPorts(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_PeerVpc() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + var params *lightsail.PeerVpcInput + resp, err := svc.PeerVpc(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_RebootInstance() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.RebootInstanceInput{ + InstanceName: aws.String("ResourceName"), // Required + } + resp, err := svc.RebootInstance(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_ReleaseStaticIp() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.ReleaseStaticIpInput{ + StaticIpName: aws.String("ResourceName"), // Required + } + resp, err := svc.ReleaseStaticIp(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_StartInstance() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.StartInstanceInput{ + InstanceName: aws.String("ResourceName"), // Required + } + resp, err := svc.StartInstance(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_StopInstance() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.StopInstanceInput{ + InstanceName: aws.String("ResourceName"), // Required + } + resp, err := svc.StopInstance(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_UnpeerVpc() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + var params *lightsail.UnpeerVpcInput + resp, err := svc.UnpeerVpc(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleLightsail_UpdateDomainEntry() { + sess := session.Must(session.NewSession()) + + svc := lightsail.New(sess) + + params := &lightsail.UpdateDomainEntryInput{ + DomainEntry: &lightsail.DomainEntry{ // Required + Id: aws.String("NonEmptyString"), + Name: aws.String("DomainName"), + Options: map[string]*string{ + "Key": aws.String("string"), // Required + // More values... + }, + Target: aws.String("string"), + Type: aws.String("DomainEntryType"), + }, + DomainName: aws.String("DomainName"), // Required + } + resp, err := svc.UpdateDomainEntry(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/lightsail/lightsailiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/lightsail/lightsailiface/interface.go new file mode 100644 index 000000000..3c09395c9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/lightsail/lightsailiface/interface.go @@ -0,0 +1,251 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package lightsailiface provides an interface to enable mocking the Amazon Lightsail service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package lightsailiface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/lightsail" +) + +// LightsailAPI provides an interface to enable mocking the +// lightsail.Lightsail service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Amazon Lightsail. +// func myFunc(svc lightsailiface.LightsailAPI) bool { +// // Make svc.AllocateStaticIp request +// } +// +// func main() { +// sess := session.New() +// svc := lightsail.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockLightsailClient struct { +// lightsailiface.LightsailAPI +// } +// func (m *mockLightsailClient) AllocateStaticIp(input *lightsail.AllocateStaticIpInput) (*lightsail.AllocateStaticIpOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockLightsailClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type LightsailAPI interface { + AllocateStaticIpRequest(*lightsail.AllocateStaticIpInput) (*request.Request, *lightsail.AllocateStaticIpOutput) + + AllocateStaticIp(*lightsail.AllocateStaticIpInput) (*lightsail.AllocateStaticIpOutput, error) + + AttachStaticIpRequest(*lightsail.AttachStaticIpInput) (*request.Request, *lightsail.AttachStaticIpOutput) + + AttachStaticIp(*lightsail.AttachStaticIpInput) (*lightsail.AttachStaticIpOutput, error) + + CloseInstancePublicPortsRequest(*lightsail.CloseInstancePublicPortsInput) (*request.Request, *lightsail.CloseInstancePublicPortsOutput) + + CloseInstancePublicPorts(*lightsail.CloseInstancePublicPortsInput) (*lightsail.CloseInstancePublicPortsOutput, error) + + CreateDomainRequest(*lightsail.CreateDomainInput) (*request.Request, *lightsail.CreateDomainOutput) + + CreateDomain(*lightsail.CreateDomainInput) (*lightsail.CreateDomainOutput, error) + + CreateDomainEntryRequest(*lightsail.CreateDomainEntryInput) (*request.Request, *lightsail.CreateDomainEntryOutput) + + CreateDomainEntry(*lightsail.CreateDomainEntryInput) (*lightsail.CreateDomainEntryOutput, error) + + CreateInstanceSnapshotRequest(*lightsail.CreateInstanceSnapshotInput) (*request.Request, *lightsail.CreateInstanceSnapshotOutput) + + CreateInstanceSnapshot(*lightsail.CreateInstanceSnapshotInput) (*lightsail.CreateInstanceSnapshotOutput, error) + + CreateInstancesRequest(*lightsail.CreateInstancesInput) (*request.Request, *lightsail.CreateInstancesOutput) + + CreateInstances(*lightsail.CreateInstancesInput) (*lightsail.CreateInstancesOutput, error) + + CreateInstancesFromSnapshotRequest(*lightsail.CreateInstancesFromSnapshotInput) (*request.Request, *lightsail.CreateInstancesFromSnapshotOutput) + + CreateInstancesFromSnapshot(*lightsail.CreateInstancesFromSnapshotInput) (*lightsail.CreateInstancesFromSnapshotOutput, error) + + CreateKeyPairRequest(*lightsail.CreateKeyPairInput) (*request.Request, *lightsail.CreateKeyPairOutput) + + CreateKeyPair(*lightsail.CreateKeyPairInput) (*lightsail.CreateKeyPairOutput, error) + + DeleteDomainRequest(*lightsail.DeleteDomainInput) (*request.Request, *lightsail.DeleteDomainOutput) + + DeleteDomain(*lightsail.DeleteDomainInput) (*lightsail.DeleteDomainOutput, error) + + DeleteDomainEntryRequest(*lightsail.DeleteDomainEntryInput) (*request.Request, *lightsail.DeleteDomainEntryOutput) + + DeleteDomainEntry(*lightsail.DeleteDomainEntryInput) (*lightsail.DeleteDomainEntryOutput, error) + + DeleteInstanceRequest(*lightsail.DeleteInstanceInput) (*request.Request, *lightsail.DeleteInstanceOutput) + + DeleteInstance(*lightsail.DeleteInstanceInput) (*lightsail.DeleteInstanceOutput, error) + + DeleteInstanceSnapshotRequest(*lightsail.DeleteInstanceSnapshotInput) (*request.Request, *lightsail.DeleteInstanceSnapshotOutput) + + DeleteInstanceSnapshot(*lightsail.DeleteInstanceSnapshotInput) (*lightsail.DeleteInstanceSnapshotOutput, error) + + DeleteKeyPairRequest(*lightsail.DeleteKeyPairInput) (*request.Request, *lightsail.DeleteKeyPairOutput) + + DeleteKeyPair(*lightsail.DeleteKeyPairInput) (*lightsail.DeleteKeyPairOutput, error) + + DetachStaticIpRequest(*lightsail.DetachStaticIpInput) (*request.Request, *lightsail.DetachStaticIpOutput) + + DetachStaticIp(*lightsail.DetachStaticIpInput) (*lightsail.DetachStaticIpOutput, error) + + DownloadDefaultKeyPairRequest(*lightsail.DownloadDefaultKeyPairInput) (*request.Request, *lightsail.DownloadDefaultKeyPairOutput) + + DownloadDefaultKeyPair(*lightsail.DownloadDefaultKeyPairInput) (*lightsail.DownloadDefaultKeyPairOutput, error) + + GetActiveNamesRequest(*lightsail.GetActiveNamesInput) (*request.Request, *lightsail.GetActiveNamesOutput) + + GetActiveNames(*lightsail.GetActiveNamesInput) (*lightsail.GetActiveNamesOutput, error) + + GetBlueprintsRequest(*lightsail.GetBlueprintsInput) (*request.Request, *lightsail.GetBlueprintsOutput) + + GetBlueprints(*lightsail.GetBlueprintsInput) (*lightsail.GetBlueprintsOutput, error) + + GetBundlesRequest(*lightsail.GetBundlesInput) (*request.Request, *lightsail.GetBundlesOutput) + + GetBundles(*lightsail.GetBundlesInput) (*lightsail.GetBundlesOutput, error) + + GetDomainRequest(*lightsail.GetDomainInput) (*request.Request, *lightsail.GetDomainOutput) + + GetDomain(*lightsail.GetDomainInput) (*lightsail.GetDomainOutput, error) + + GetDomainsRequest(*lightsail.GetDomainsInput) (*request.Request, *lightsail.GetDomainsOutput) + + GetDomains(*lightsail.GetDomainsInput) (*lightsail.GetDomainsOutput, error) + + GetInstanceRequest(*lightsail.GetInstanceInput) (*request.Request, *lightsail.GetInstanceOutput) + + GetInstance(*lightsail.GetInstanceInput) (*lightsail.GetInstanceOutput, error) + + GetInstanceAccessDetailsRequest(*lightsail.GetInstanceAccessDetailsInput) (*request.Request, *lightsail.GetInstanceAccessDetailsOutput) + + GetInstanceAccessDetails(*lightsail.GetInstanceAccessDetailsInput) (*lightsail.GetInstanceAccessDetailsOutput, error) + + GetInstanceMetricDataRequest(*lightsail.GetInstanceMetricDataInput) (*request.Request, *lightsail.GetInstanceMetricDataOutput) + + GetInstanceMetricData(*lightsail.GetInstanceMetricDataInput) (*lightsail.GetInstanceMetricDataOutput, error) + + GetInstancePortStatesRequest(*lightsail.GetInstancePortStatesInput) (*request.Request, *lightsail.GetInstancePortStatesOutput) + + GetInstancePortStates(*lightsail.GetInstancePortStatesInput) (*lightsail.GetInstancePortStatesOutput, error) + + GetInstanceSnapshotRequest(*lightsail.GetInstanceSnapshotInput) (*request.Request, *lightsail.GetInstanceSnapshotOutput) + + GetInstanceSnapshot(*lightsail.GetInstanceSnapshotInput) (*lightsail.GetInstanceSnapshotOutput, error) + + GetInstanceSnapshotsRequest(*lightsail.GetInstanceSnapshotsInput) (*request.Request, *lightsail.GetInstanceSnapshotsOutput) + + GetInstanceSnapshots(*lightsail.GetInstanceSnapshotsInput) (*lightsail.GetInstanceSnapshotsOutput, error) + + GetInstanceStateRequest(*lightsail.GetInstanceStateInput) (*request.Request, *lightsail.GetInstanceStateOutput) + + GetInstanceState(*lightsail.GetInstanceStateInput) (*lightsail.GetInstanceStateOutput, error) + + GetInstancesRequest(*lightsail.GetInstancesInput) (*request.Request, *lightsail.GetInstancesOutput) + + GetInstances(*lightsail.GetInstancesInput) (*lightsail.GetInstancesOutput, error) + + GetKeyPairRequest(*lightsail.GetKeyPairInput) (*request.Request, *lightsail.GetKeyPairOutput) + + GetKeyPair(*lightsail.GetKeyPairInput) (*lightsail.GetKeyPairOutput, error) + + GetKeyPairsRequest(*lightsail.GetKeyPairsInput) (*request.Request, *lightsail.GetKeyPairsOutput) + + GetKeyPairs(*lightsail.GetKeyPairsInput) (*lightsail.GetKeyPairsOutput, error) + + GetOperationRequest(*lightsail.GetOperationInput) (*request.Request, *lightsail.GetOperationOutput) + + GetOperation(*lightsail.GetOperationInput) (*lightsail.GetOperationOutput, error) + + GetOperationsRequest(*lightsail.GetOperationsInput) (*request.Request, *lightsail.GetOperationsOutput) + + GetOperations(*lightsail.GetOperationsInput) (*lightsail.GetOperationsOutput, error) + + GetOperationsForResourceRequest(*lightsail.GetOperationsForResourceInput) (*request.Request, *lightsail.GetOperationsForResourceOutput) + + GetOperationsForResource(*lightsail.GetOperationsForResourceInput) (*lightsail.GetOperationsForResourceOutput, error) + + GetRegionsRequest(*lightsail.GetRegionsInput) (*request.Request, *lightsail.GetRegionsOutput) + + GetRegions(*lightsail.GetRegionsInput) (*lightsail.GetRegionsOutput, error) + + GetStaticIpRequest(*lightsail.GetStaticIpInput) (*request.Request, *lightsail.GetStaticIpOutput) + + GetStaticIp(*lightsail.GetStaticIpInput) (*lightsail.GetStaticIpOutput, error) + + GetStaticIpsRequest(*lightsail.GetStaticIpsInput) (*request.Request, *lightsail.GetStaticIpsOutput) + + GetStaticIps(*lightsail.GetStaticIpsInput) (*lightsail.GetStaticIpsOutput, error) + + ImportKeyPairRequest(*lightsail.ImportKeyPairInput) (*request.Request, *lightsail.ImportKeyPairOutput) + + ImportKeyPair(*lightsail.ImportKeyPairInput) (*lightsail.ImportKeyPairOutput, error) + + IsVpcPeeredRequest(*lightsail.IsVpcPeeredInput) (*request.Request, *lightsail.IsVpcPeeredOutput) + + IsVpcPeered(*lightsail.IsVpcPeeredInput) (*lightsail.IsVpcPeeredOutput, error) + + OpenInstancePublicPortsRequest(*lightsail.OpenInstancePublicPortsInput) (*request.Request, *lightsail.OpenInstancePublicPortsOutput) + + OpenInstancePublicPorts(*lightsail.OpenInstancePublicPortsInput) (*lightsail.OpenInstancePublicPortsOutput, error) + + PeerVpcRequest(*lightsail.PeerVpcInput) (*request.Request, *lightsail.PeerVpcOutput) + + PeerVpc(*lightsail.PeerVpcInput) (*lightsail.PeerVpcOutput, error) + + RebootInstanceRequest(*lightsail.RebootInstanceInput) (*request.Request, *lightsail.RebootInstanceOutput) + + RebootInstance(*lightsail.RebootInstanceInput) (*lightsail.RebootInstanceOutput, error) + + ReleaseStaticIpRequest(*lightsail.ReleaseStaticIpInput) (*request.Request, *lightsail.ReleaseStaticIpOutput) + + ReleaseStaticIp(*lightsail.ReleaseStaticIpInput) (*lightsail.ReleaseStaticIpOutput, error) + + StartInstanceRequest(*lightsail.StartInstanceInput) (*request.Request, *lightsail.StartInstanceOutput) + + StartInstance(*lightsail.StartInstanceInput) (*lightsail.StartInstanceOutput, error) + + StopInstanceRequest(*lightsail.StopInstanceInput) (*request.Request, *lightsail.StopInstanceOutput) + + StopInstance(*lightsail.StopInstanceInput) (*lightsail.StopInstanceOutput, error) + + UnpeerVpcRequest(*lightsail.UnpeerVpcInput) (*request.Request, *lightsail.UnpeerVpcOutput) + + UnpeerVpc(*lightsail.UnpeerVpcInput) (*lightsail.UnpeerVpcOutput, error) + + UpdateDomainEntryRequest(*lightsail.UpdateDomainEntryInput) (*request.Request, *lightsail.UpdateDomainEntryOutput) + + UpdateDomainEntry(*lightsail.UpdateDomainEntryInput) (*lightsail.UpdateDomainEntryOutput, error) +} + +var _ LightsailAPI = (*lightsail.Lightsail)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/lightsail/service.go b/vendor/github.com/aws/aws-sdk-go/service/lightsail/service.go new file mode 100644 index 000000000..c3e15def0 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/lightsail/service.go @@ -0,0 +1,105 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package lightsail + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" +) + +// Amazon Lightsail is the easiest way to get started with AWS for developers +// who just need virtual private servers. Lightsail includes everything you +// need to launch your project quickly - a virtual machine, SSD-based storage, +// data transfer, DNS management, and a static IP - for a low, predictable price. +// You manage those Lightsail servers through the Lightsail console or by using +// the API or command-line interface (CLI). +// +// For more information about Lightsail concepts and tasks, see the Lightsail +// Dev Guide (http://lightsail.aws.amazon.com/ls/docs). +// +// To use the Lightsail API or the CLI, you will need to use AWS Identity and +// Access Management (IAM) to generate access keys. For details about how to +// set this up, see the Lightsail Dev Guide (http://lightsail.aws.amazon.com/ls/docs/how-to/articles/lightsail-how-to-set-up-access-keys-to-use-sdk-api-cli). +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28 +type Lightsail struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "lightsail" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the Lightsail client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a Lightsail client from just a session. +// svc := lightsail.New(mySession) +// +// // Create a Lightsail client with additional configuration +// svc := lightsail.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *Lightsail { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Lightsail { + svc := &Lightsail{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2016-11-28", + JSONVersion: "1.1", + TargetPrefix: "Lightsail_20161128", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a Lightsail operation and runs any +// custom request initialization. +func (c *Lightsail) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/api.go b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/api.go index a834fe50b..fe428b7f8 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/api.go @@ -36,7 +36,6 @@ const opAddTags = "AddTags" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) { op := &request.Operation{ Name: opAddTags, @@ -48,9 +47,8 @@ func (c *MachineLearning) AddTagsRequest(input *AddTagsInput) (req *request.Requ input = &AddTagsInput{} } - req = c.newRequest(op, input, output) output = &AddTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -68,20 +66,18 @@ func (c *MachineLearning) AddTagsRequest(input *AddTagsInput) (req *request.Requ // API operation AddTags for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * InvalidTagException - +// * ErrCodeInvalidTagException "InvalidTagException" // -// * TagLimitExceededException - +// * ErrCodeTagLimitExceededException "TagLimitExceededException" // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A specified resource cannot be located. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { @@ -115,7 +111,6 @@ const opCreateBatchPrediction = "CreateBatchPrediction" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) CreateBatchPredictionRequest(input *CreateBatchPredictionInput) (req *request.Request, output *CreateBatchPredictionOutput) { op := &request.Operation{ Name: opCreateBatchPrediction, @@ -127,9 +122,8 @@ func (c *MachineLearning) CreateBatchPredictionRequest(input *CreateBatchPredict input = &CreateBatchPredictionInput{} } - req = c.newRequest(op, input, output) output = &CreateBatchPredictionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -158,14 +152,14 @@ func (c *MachineLearning) CreateBatchPredictionRequest(input *CreateBatchPredict // API operation CreateBatchPrediction for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // -// * IdempotentParameterMismatchException +// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" // A second request to use or change an object was not allowed. This can result // from retrying a request using a parameter that was not present in the original // request. @@ -201,7 +195,6 @@ const opCreateDataSourceFromRDS = "CreateDataSourceFromRDS" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) CreateDataSourceFromRDSRequest(input *CreateDataSourceFromRDSInput) (req *request.Request, output *CreateDataSourceFromRDSOutput) { op := &request.Operation{ Name: opCreateDataSourceFromRDS, @@ -213,9 +206,8 @@ func (c *MachineLearning) CreateDataSourceFromRDSRequest(input *CreateDataSource input = &CreateDataSourceFromRDSInput{} } - req = c.newRequest(op, input, output) output = &CreateDataSourceFromRDSOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -232,7 +224,7 @@ func (c *MachineLearning) CreateDataSourceFromRDSRequest(input *CreateDataSource // PENDING state can be used only to perform >CreateMLModel>, CreateEvaluation, // or CreateBatchPrediction operations. // -// If Amazon ML cannot accept the input source, it sets the Status parameter +// If Amazon ML cannot accept the input source, it sets the Status parameter // to FAILED and includes an error message in the Message attribute of the GetDataSource // operation response. // @@ -244,14 +236,14 @@ func (c *MachineLearning) CreateDataSourceFromRDSRequest(input *CreateDataSource // API operation CreateDataSourceFromRDS for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // -// * IdempotentParameterMismatchException +// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" // A second request to use or change an object was not allowed. This can result // from retrying a request using a parameter that was not present in the original // request. @@ -287,7 +279,6 @@ const opCreateDataSourceFromRedshift = "CreateDataSourceFromRedshift" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) CreateDataSourceFromRedshiftRequest(input *CreateDataSourceFromRedshiftInput) (req *request.Request, output *CreateDataSourceFromRedshiftOutput) { op := &request.Operation{ Name: opCreateDataSourceFromRedshift, @@ -299,9 +290,8 @@ func (c *MachineLearning) CreateDataSourceFromRedshiftRequest(input *CreateDataS input = &CreateDataSourceFromRedshiftInput{} } - req = c.newRequest(op, input, output) output = &CreateDataSourceFromRedshiftOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -318,7 +308,7 @@ func (c *MachineLearning) CreateDataSourceFromRedshiftRequest(input *CreateDataS // DataSource in COMPLETED or PENDING states can be used to perform only CreateMLModel, // CreateEvaluation, or CreateBatchPrediction operations. // -// If Amazon ML can't accept the input source, it sets the Status parameter +// If Amazon ML can't accept the input source, it sets the Status parameter // to FAILED and includes an error message in the Message attribute of the GetDataSource // operation response. // @@ -349,14 +339,14 @@ func (c *MachineLearning) CreateDataSourceFromRedshiftRequest(input *CreateDataS // API operation CreateDataSourceFromRedshift for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // -// * IdempotentParameterMismatchException +// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" // A second request to use or change an object was not allowed. This can result // from retrying a request using a parameter that was not present in the original // request. @@ -392,7 +382,6 @@ const opCreateDataSourceFromS3 = "CreateDataSourceFromS3" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) CreateDataSourceFromS3Request(input *CreateDataSourceFromS3Input) (req *request.Request, output *CreateDataSourceFromS3Output) { op := &request.Operation{ Name: opCreateDataSourceFromS3, @@ -404,9 +393,8 @@ func (c *MachineLearning) CreateDataSourceFromS3Request(input *CreateDataSourceF input = &CreateDataSourceFromS3Input{} } - req = c.newRequest(op, input, output) output = &CreateDataSourceFromS3Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -422,7 +410,7 @@ func (c *MachineLearning) CreateDataSourceFromS3Request(input *CreateDataSourceF // COMPLETED or PENDING state can be used to perform only CreateMLModel, CreateEvaluation // or CreateBatchPrediction operations. // -// If Amazon ML can't accept the input source, it sets the Status parameter +// If Amazon ML can't accept the input source, it sets the Status parameter // to FAILED and includes an error message in the Message attribute of the GetDataSource // operation response. // @@ -433,8 +421,8 @@ func (c *MachineLearning) CreateDataSourceFromS3Request(input *CreateDataSourceF // that describes the data items by name and type. The same schema must be used // for all of the data files referenced by the DataSource. // -// After the DataSource has been created, it's ready to use in evaluations -// and batch predictions. If you plan to use the DataSource to train an MLModel, +// After the DataSource has been created, it's ready to use in evaluations and +// batch predictions. If you plan to use the DataSource to train an MLModel, // the DataSource also needs a recipe. A recipe describes how each input variable // will be used in training an MLModel. Will the variable be included or excluded // from training? Will the variable be manipulated; for example, will it be @@ -449,14 +437,14 @@ func (c *MachineLearning) CreateDataSourceFromS3Request(input *CreateDataSourceF // API operation CreateDataSourceFromS3 for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // -// * IdempotentParameterMismatchException +// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" // A second request to use or change an object was not allowed. This can result // from retrying a request using a parameter that was not present in the original // request. @@ -492,7 +480,6 @@ const opCreateEvaluation = "CreateEvaluation" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) CreateEvaluationRequest(input *CreateEvaluationInput) (req *request.Request, output *CreateEvaluationOutput) { op := &request.Operation{ Name: opCreateEvaluation, @@ -504,9 +491,8 @@ func (c *MachineLearning) CreateEvaluationRequest(input *CreateEvaluationInput) input = &CreateEvaluationInput{} } - req = c.newRequest(op, input, output) output = &CreateEvaluationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -537,14 +523,14 @@ func (c *MachineLearning) CreateEvaluationRequest(input *CreateEvaluationInput) // API operation CreateEvaluation for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // -// * IdempotentParameterMismatchException +// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" // A second request to use or change an object was not allowed. This can result // from retrying a request using a parameter that was not present in the original // request. @@ -580,7 +566,6 @@ const opCreateMLModel = "CreateMLModel" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) CreateMLModelRequest(input *CreateMLModelInput) (req *request.Request, output *CreateMLModelOutput) { op := &request.Operation{ Name: opCreateMLModel, @@ -592,9 +577,8 @@ func (c *MachineLearning) CreateMLModelRequest(input *CreateMLModelInput) (req * input = &CreateMLModelInput{} } - req = c.newRequest(op, input, output) output = &CreateMLModelOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -614,8 +598,8 @@ func (c *MachineLearning) CreateMLModelRequest(input *CreateMLModelInput) (req * // You can use the GetMLModel operation to check the progress of the MLModel // during the creation operation. // -// CreateMLModel requires a DataSource with computed statistics, which can -// be created by setting ComputeStatistics to true in CreateDataSourceFromRDS, +// CreateMLModel requires a DataSource with computed statistics, which can be +// created by setting ComputeStatistics to true in CreateDataSourceFromRDS, // CreateDataSourceFromS3, or CreateDataSourceFromRedshift operations. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -626,14 +610,14 @@ func (c *MachineLearning) CreateMLModelRequest(input *CreateMLModelInput) (req * // API operation CreateMLModel for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // -// * IdempotentParameterMismatchException +// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" // A second request to use or change an object was not allowed. This can result // from retrying a request using a parameter that was not present in the original // request. @@ -669,7 +653,6 @@ const opCreateRealtimeEndpoint = "CreateRealtimeEndpoint" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) CreateRealtimeEndpointRequest(input *CreateRealtimeEndpointInput) (req *request.Request, output *CreateRealtimeEndpointOutput) { op := &request.Operation{ Name: opCreateRealtimeEndpoint, @@ -681,9 +664,8 @@ func (c *MachineLearning) CreateRealtimeEndpointRequest(input *CreateRealtimeEnd input = &CreateRealtimeEndpointInput{} } - req = c.newRequest(op, input, output) output = &CreateRealtimeEndpointOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -701,14 +683,14 @@ func (c *MachineLearning) CreateRealtimeEndpointRequest(input *CreateRealtimeEnd // API operation CreateRealtimeEndpoint for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A specified resource cannot be located. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) CreateRealtimeEndpoint(input *CreateRealtimeEndpointInput) (*CreateRealtimeEndpointOutput, error) { @@ -742,7 +724,6 @@ const opDeleteBatchPrediction = "DeleteBatchPrediction" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) DeleteBatchPredictionRequest(input *DeleteBatchPredictionInput) (req *request.Request, output *DeleteBatchPredictionOutput) { op := &request.Operation{ Name: opDeleteBatchPrediction, @@ -754,9 +735,8 @@ func (c *MachineLearning) DeleteBatchPredictionRequest(input *DeleteBatchPredict input = &DeleteBatchPredictionInput{} } - req = c.newRequest(op, input, output) output = &DeleteBatchPredictionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -777,14 +757,14 @@ func (c *MachineLearning) DeleteBatchPredictionRequest(input *DeleteBatchPredict // API operation DeleteBatchPrediction for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A specified resource cannot be located. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DeleteBatchPrediction(input *DeleteBatchPredictionInput) (*DeleteBatchPredictionOutput, error) { @@ -818,7 +798,6 @@ const opDeleteDataSource = "DeleteDataSource" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) DeleteDataSourceRequest(input *DeleteDataSourceInput) (req *request.Request, output *DeleteDataSourceOutput) { op := &request.Operation{ Name: opDeleteDataSource, @@ -830,9 +809,8 @@ func (c *MachineLearning) DeleteDataSourceRequest(input *DeleteDataSourceInput) input = &DeleteDataSourceInput{} } - req = c.newRequest(op, input, output) output = &DeleteDataSourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -853,14 +831,14 @@ func (c *MachineLearning) DeleteDataSourceRequest(input *DeleteDataSourceInput) // API operation DeleteDataSource for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A specified resource cannot be located. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DeleteDataSource(input *DeleteDataSourceInput) (*DeleteDataSourceOutput, error) { @@ -894,7 +872,6 @@ const opDeleteEvaluation = "DeleteEvaluation" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) DeleteEvaluationRequest(input *DeleteEvaluationInput) (req *request.Request, output *DeleteEvaluationOutput) { op := &request.Operation{ Name: opDeleteEvaluation, @@ -906,9 +883,8 @@ func (c *MachineLearning) DeleteEvaluationRequest(input *DeleteEvaluationInput) input = &DeleteEvaluationInput{} } - req = c.newRequest(op, input, output) output = &DeleteEvaluationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -919,7 +895,7 @@ func (c *MachineLearning) DeleteEvaluationRequest(input *DeleteEvaluationInput) // After invoking the DeleteEvaluation operation, you can use the GetEvaluation // operation to verify that the status of the Evaluation changed to DELETED. // -// Caution The results of the DeleteEvaluation operation are irreversible. +// CautionThe results of the DeleteEvaluation operation are irreversible. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -929,14 +905,14 @@ func (c *MachineLearning) DeleteEvaluationRequest(input *DeleteEvaluationInput) // API operation DeleteEvaluation for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A specified resource cannot be located. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DeleteEvaluation(input *DeleteEvaluationInput) (*DeleteEvaluationOutput, error) { @@ -970,7 +946,6 @@ const opDeleteMLModel = "DeleteMLModel" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) DeleteMLModelRequest(input *DeleteMLModelInput) (req *request.Request, output *DeleteMLModelOutput) { op := &request.Operation{ Name: opDeleteMLModel, @@ -982,9 +957,8 @@ func (c *MachineLearning) DeleteMLModelRequest(input *DeleteMLModelInput) (req * input = &DeleteMLModelInput{} } - req = c.newRequest(op, input, output) output = &DeleteMLModelOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1005,14 +979,14 @@ func (c *MachineLearning) DeleteMLModelRequest(input *DeleteMLModelInput) (req * // API operation DeleteMLModel for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A specified resource cannot be located. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DeleteMLModel(input *DeleteMLModelInput) (*DeleteMLModelOutput, error) { @@ -1046,7 +1020,6 @@ const opDeleteRealtimeEndpoint = "DeleteRealtimeEndpoint" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) DeleteRealtimeEndpointRequest(input *DeleteRealtimeEndpointInput) (req *request.Request, output *DeleteRealtimeEndpointOutput) { op := &request.Operation{ Name: opDeleteRealtimeEndpoint, @@ -1058,9 +1031,8 @@ func (c *MachineLearning) DeleteRealtimeEndpointRequest(input *DeleteRealtimeEnd input = &DeleteRealtimeEndpointInput{} } - req = c.newRequest(op, input, output) output = &DeleteRealtimeEndpointOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1076,14 +1048,14 @@ func (c *MachineLearning) DeleteRealtimeEndpointRequest(input *DeleteRealtimeEnd // API operation DeleteRealtimeEndpoint for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A specified resource cannot be located. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DeleteRealtimeEndpoint(input *DeleteRealtimeEndpointInput) (*DeleteRealtimeEndpointOutput, error) { @@ -1117,7 +1089,6 @@ const opDeleteTags = "DeleteTags" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) { op := &request.Operation{ Name: opDeleteTags, @@ -1129,9 +1100,8 @@ func (c *MachineLearning) DeleteTagsRequest(input *DeleteTagsInput) (req *reques input = &DeleteTagsInput{} } - req = c.newRequest(op, input, output) output = &DeleteTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1150,17 +1120,16 @@ func (c *MachineLearning) DeleteTagsRequest(input *DeleteTagsInput) (req *reques // API operation DeleteTags for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * InvalidTagException - +// * ErrCodeInvalidTagException "InvalidTagException" // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A specified resource cannot be located. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { @@ -1194,7 +1163,6 @@ const opDescribeBatchPredictions = "DescribeBatchPredictions" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) DescribeBatchPredictionsRequest(input *DescribeBatchPredictionsInput) (req *request.Request, output *DescribeBatchPredictionsOutput) { op := &request.Operation{ Name: opDescribeBatchPredictions, @@ -1212,9 +1180,8 @@ func (c *MachineLearning) DescribeBatchPredictionsRequest(input *DescribeBatchPr input = &DescribeBatchPredictionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeBatchPredictionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1231,11 +1198,11 @@ func (c *MachineLearning) DescribeBatchPredictionsRequest(input *DescribeBatchPr // API operation DescribeBatchPredictions for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DescribeBatchPredictions(input *DescribeBatchPredictionsInput) (*DescribeBatchPredictionsOutput, error) { @@ -1294,7 +1261,6 @@ const opDescribeDataSources = "DescribeDataSources" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) DescribeDataSourcesRequest(input *DescribeDataSourcesInput) (req *request.Request, output *DescribeDataSourcesOutput) { op := &request.Operation{ Name: opDescribeDataSources, @@ -1312,9 +1278,8 @@ func (c *MachineLearning) DescribeDataSourcesRequest(input *DescribeDataSourcesI input = &DescribeDataSourcesInput{} } - req = c.newRequest(op, input, output) output = &DescribeDataSourcesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1330,11 +1295,11 @@ func (c *MachineLearning) DescribeDataSourcesRequest(input *DescribeDataSourcesI // API operation DescribeDataSources for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DescribeDataSources(input *DescribeDataSourcesInput) (*DescribeDataSourcesOutput, error) { @@ -1393,7 +1358,6 @@ const opDescribeEvaluations = "DescribeEvaluations" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) DescribeEvaluationsRequest(input *DescribeEvaluationsInput) (req *request.Request, output *DescribeEvaluationsOutput) { op := &request.Operation{ Name: opDescribeEvaluations, @@ -1411,9 +1375,8 @@ func (c *MachineLearning) DescribeEvaluationsRequest(input *DescribeEvaluationsI input = &DescribeEvaluationsInput{} } - req = c.newRequest(op, input, output) output = &DescribeEvaluationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1430,11 +1393,11 @@ func (c *MachineLearning) DescribeEvaluationsRequest(input *DescribeEvaluationsI // API operation DescribeEvaluations for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DescribeEvaluations(input *DescribeEvaluationsInput) (*DescribeEvaluationsOutput, error) { @@ -1493,7 +1456,6 @@ const opDescribeMLModels = "DescribeMLModels" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) DescribeMLModelsRequest(input *DescribeMLModelsInput) (req *request.Request, output *DescribeMLModelsOutput) { op := &request.Operation{ Name: opDescribeMLModels, @@ -1511,9 +1473,8 @@ func (c *MachineLearning) DescribeMLModelsRequest(input *DescribeMLModelsInput) input = &DescribeMLModelsInput{} } - req = c.newRequest(op, input, output) output = &DescribeMLModelsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1529,11 +1490,11 @@ func (c *MachineLearning) DescribeMLModelsRequest(input *DescribeMLModelsInput) // API operation DescribeMLModels for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DescribeMLModels(input *DescribeMLModelsInput) (*DescribeMLModelsOutput, error) { @@ -1592,7 +1553,6 @@ const opDescribeTags = "DescribeTags" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) { op := &request.Operation{ Name: opDescribeTags, @@ -1604,9 +1564,8 @@ func (c *MachineLearning) DescribeTagsRequest(input *DescribeTagsInput) (req *re input = &DescribeTagsInput{} } - req = c.newRequest(op, input, output) output = &DescribeTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1622,14 +1581,14 @@ func (c *MachineLearning) DescribeTagsRequest(input *DescribeTagsInput) (req *re // API operation DescribeTags for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A specified resource cannot be located. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { @@ -1663,7 +1622,6 @@ const opGetBatchPrediction = "GetBatchPrediction" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) GetBatchPredictionRequest(input *GetBatchPredictionInput) (req *request.Request, output *GetBatchPredictionOutput) { op := &request.Operation{ Name: opGetBatchPrediction, @@ -1675,9 +1633,8 @@ func (c *MachineLearning) GetBatchPredictionRequest(input *GetBatchPredictionInp input = &GetBatchPredictionInput{} } - req = c.newRequest(op, input, output) output = &GetBatchPredictionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1694,14 +1651,14 @@ func (c *MachineLearning) GetBatchPredictionRequest(input *GetBatchPredictionInp // API operation GetBatchPrediction for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A specified resource cannot be located. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) GetBatchPrediction(input *GetBatchPredictionInput) (*GetBatchPredictionOutput, error) { @@ -1735,7 +1692,6 @@ const opGetDataSource = "GetDataSource" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) GetDataSourceRequest(input *GetDataSourceInput) (req *request.Request, output *GetDataSourceOutput) { op := &request.Operation{ Name: opGetDataSource, @@ -1747,9 +1703,8 @@ func (c *MachineLearning) GetDataSourceRequest(input *GetDataSourceInput) (req * input = &GetDataSourceInput{} } - req = c.newRequest(op, input, output) output = &GetDataSourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1758,9 +1713,9 @@ func (c *MachineLearning) GetDataSourceRequest(input *GetDataSourceInput) (req * // Returns a DataSource that includes metadata and data file information, as // well as the current status of the DataSource. // -// GetDataSource provides results in normal or verbose format. The verbose -// format adds the schema description and the list of files pointed to by the -// DataSource to the normal format. +// GetDataSource provides results in normal or verbose format. The verbose format +// adds the schema description and the list of files pointed to by the DataSource +// to the normal format. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1770,14 +1725,14 @@ func (c *MachineLearning) GetDataSourceRequest(input *GetDataSourceInput) (req * // API operation GetDataSource for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A specified resource cannot be located. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) GetDataSource(input *GetDataSourceInput) (*GetDataSourceOutput, error) { @@ -1811,7 +1766,6 @@ const opGetEvaluation = "GetEvaluation" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) GetEvaluationRequest(input *GetEvaluationInput) (req *request.Request, output *GetEvaluationOutput) { op := &request.Operation{ Name: opGetEvaluation, @@ -1823,9 +1777,8 @@ func (c *MachineLearning) GetEvaluationRequest(input *GetEvaluationInput) (req * input = &GetEvaluationInput{} } - req = c.newRequest(op, input, output) output = &GetEvaluationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1842,14 +1795,14 @@ func (c *MachineLearning) GetEvaluationRequest(input *GetEvaluationInput) (req * // API operation GetEvaluation for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A specified resource cannot be located. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) GetEvaluation(input *GetEvaluationInput) (*GetEvaluationOutput, error) { @@ -1883,7 +1836,6 @@ const opGetMLModel = "GetMLModel" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) GetMLModelRequest(input *GetMLModelInput) (req *request.Request, output *GetMLModelOutput) { op := &request.Operation{ Name: opGetMLModel, @@ -1895,9 +1847,8 @@ func (c *MachineLearning) GetMLModelRequest(input *GetMLModelInput) (req *reques input = &GetMLModelInput{} } - req = c.newRequest(op, input, output) output = &GetMLModelOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1916,14 +1867,14 @@ func (c *MachineLearning) GetMLModelRequest(input *GetMLModelInput) (req *reques // API operation GetMLModel for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A specified resource cannot be located. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) GetMLModel(input *GetMLModelInput) (*GetMLModelOutput, error) { @@ -1957,7 +1908,6 @@ const opPredict = "Predict" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) PredictRequest(input *PredictInput) (req *request.Request, output *PredictOutput) { op := &request.Operation{ Name: opPredict, @@ -1969,9 +1919,8 @@ func (c *MachineLearning) PredictRequest(input *PredictInput) (req *request.Requ input = &PredictInput{} } - req = c.newRequest(op, input, output) output = &PredictOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1979,7 +1928,7 @@ func (c *MachineLearning) PredictRequest(input *PredictInput) (req *request.Requ // // Generates a prediction for the observation using the specified ML Model. // -// Note Not all response parameters will be populated. Whether a response parameter +// NoteNot all response parameters will be populated. Whether a response parameter // is populated depends on the type of model requested. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1990,21 +1939,21 @@ func (c *MachineLearning) PredictRequest(input *PredictInput) (req *request.Requ // API operation Predict for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A specified resource cannot be located. // -// * LimitExceededException +// * ErrCodeLimitExceededException "LimitExceededException" // The subscriber exceeded the maximum number of operations. This exception // can occur when listing objects such as DataSource. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // -// * PredictorNotMountedException +// * ErrCodePredictorNotMountedException "PredictorNotMountedException" // The exception is thrown when a predict request is made to an unmounted MLModel. // func (c *MachineLearning) Predict(input *PredictInput) (*PredictOutput, error) { @@ -2038,7 +1987,6 @@ const opUpdateBatchPrediction = "UpdateBatchPrediction" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) UpdateBatchPredictionRequest(input *UpdateBatchPredictionInput) (req *request.Request, output *UpdateBatchPredictionOutput) { op := &request.Operation{ Name: opUpdateBatchPrediction, @@ -2050,9 +1998,8 @@ func (c *MachineLearning) UpdateBatchPredictionRequest(input *UpdateBatchPredict input = &UpdateBatchPredictionInput{} } - req = c.newRequest(op, input, output) output = &UpdateBatchPredictionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2071,14 +2018,14 @@ func (c *MachineLearning) UpdateBatchPredictionRequest(input *UpdateBatchPredict // API operation UpdateBatchPrediction for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A specified resource cannot be located. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) UpdateBatchPrediction(input *UpdateBatchPredictionInput) (*UpdateBatchPredictionOutput, error) { @@ -2112,7 +2059,6 @@ const opUpdateDataSource = "UpdateDataSource" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) UpdateDataSourceRequest(input *UpdateDataSourceInput) (req *request.Request, output *UpdateDataSourceOutput) { op := &request.Operation{ Name: opUpdateDataSource, @@ -2124,9 +2070,8 @@ func (c *MachineLearning) UpdateDataSourceRequest(input *UpdateDataSourceInput) input = &UpdateDataSourceInput{} } - req = c.newRequest(op, input, output) output = &UpdateDataSourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2145,14 +2090,14 @@ func (c *MachineLearning) UpdateDataSourceRequest(input *UpdateDataSourceInput) // API operation UpdateDataSource for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A specified resource cannot be located. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) UpdateDataSource(input *UpdateDataSourceInput) (*UpdateDataSourceOutput, error) { @@ -2186,7 +2131,6 @@ const opUpdateEvaluation = "UpdateEvaluation" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) UpdateEvaluationRequest(input *UpdateEvaluationInput) (req *request.Request, output *UpdateEvaluationOutput) { op := &request.Operation{ Name: opUpdateEvaluation, @@ -2198,9 +2142,8 @@ func (c *MachineLearning) UpdateEvaluationRequest(input *UpdateEvaluationInput) input = &UpdateEvaluationInput{} } - req = c.newRequest(op, input, output) output = &UpdateEvaluationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2219,14 +2162,14 @@ func (c *MachineLearning) UpdateEvaluationRequest(input *UpdateEvaluationInput) // API operation UpdateEvaluation for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A specified resource cannot be located. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) UpdateEvaluation(input *UpdateEvaluationInput) (*UpdateEvaluationOutput, error) { @@ -2260,7 +2203,6 @@ const opUpdateMLModel = "UpdateMLModel" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *MachineLearning) UpdateMLModelRequest(input *UpdateMLModelInput) (req *request.Request, output *UpdateMLModelOutput) { op := &request.Operation{ Name: opUpdateMLModel, @@ -2272,9 +2214,8 @@ func (c *MachineLearning) UpdateMLModelRequest(input *UpdateMLModelInput) (req * input = &UpdateMLModelInput{} } - req = c.newRequest(op, input, output) output = &UpdateMLModelOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2293,14 +2234,14 @@ func (c *MachineLearning) UpdateMLModelRequest(input *UpdateMLModelInput) (req * // API operation UpdateMLModel for usage and error information. // // Returned Error Codes: -// * InvalidInputException +// * ErrCodeInvalidInputException "InvalidInputException" // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A specified resource cannot be located. // -// * InternalServerException +// * ErrCodeInternalServerException "InternalServerException" // An error on the server occurred when trying to process a request. // func (c *MachineLearning) UpdateMLModel(input *UpdateMLModelInput) (*UpdateMLModelOutput, error) { @@ -2371,6 +2312,24 @@ func (s *AddTagsInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *AddTagsInput) SetResourceId(v string) *AddTagsInput { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *AddTagsInput) SetResourceType(v string) *AddTagsInput { + s.ResourceType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput { + s.Tags = v + return s +} + // Amazon ML returns the following elements. type AddTagsOutput struct { _ struct{} `type:"structure"` @@ -2392,10 +2351,22 @@ func (s AddTagsOutput) GoString() string { return s.String() } +// SetResourceId sets the ResourceId field's value. +func (s *AddTagsOutput) SetResourceId(v string) *AddTagsOutput { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *AddTagsOutput) SetResourceType(v string) *AddTagsOutput { + s.ResourceType = &v + return s +} + // Represents the output of a GetBatchPrediction operation. // -// The content consists of the detailed metadata, the status, and the data -// file information of a Batch Prediction. +// The content consists of the detailed metadata, the status, and the data file +// information of a Batch Prediction. type BatchPrediction struct { _ struct{} `type:"structure"` @@ -2454,11 +2425,13 @@ type BatchPrediction struct { // The status of the BatchPrediction. This element can have one of the following // values: // - // PENDING - Amazon Machine Learning (Amazon ML) submitted a request to generate - // predictions for a batch of observations. INPROGRESS - The process is underway. - // FAILED - The request to perform a batch prediction did not run to completion. - // It is not usable. COMPLETED - The batch prediction process completed successfully. - // DELETED - The BatchPrediction is marked as deleted. It is not usable. + // * PENDING - Amazon Machine Learning (Amazon ML) submitted a request to + // generate predictions for a batch of observations. + // * INPROGRESS - The process is underway. + // * FAILED - The request to perform a batch prediction did not run to completion. + // It is not usable. + // * COMPLETED - The batch prediction process completed successfully. + // * DELETED - The BatchPrediction is marked as deleted. It is not usable. Status *string `type:"string" enum:"EntityStatus"` // Long integer type that is a 64-bit signed number. @@ -2475,6 +2448,102 @@ func (s BatchPrediction) GoString() string { return s.String() } +// SetBatchPredictionDataSourceId sets the BatchPredictionDataSourceId field's value. +func (s *BatchPrediction) SetBatchPredictionDataSourceId(v string) *BatchPrediction { + s.BatchPredictionDataSourceId = &v + return s +} + +// SetBatchPredictionId sets the BatchPredictionId field's value. +func (s *BatchPrediction) SetBatchPredictionId(v string) *BatchPrediction { + s.BatchPredictionId = &v + return s +} + +// SetComputeTime sets the ComputeTime field's value. +func (s *BatchPrediction) SetComputeTime(v int64) *BatchPrediction { + s.ComputeTime = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *BatchPrediction) SetCreatedAt(v time.Time) *BatchPrediction { + s.CreatedAt = &v + return s +} + +// SetCreatedByIamUser sets the CreatedByIamUser field's value. +func (s *BatchPrediction) SetCreatedByIamUser(v string) *BatchPrediction { + s.CreatedByIamUser = &v + return s +} + +// SetFinishedAt sets the FinishedAt field's value. +func (s *BatchPrediction) SetFinishedAt(v time.Time) *BatchPrediction { + s.FinishedAt = &v + return s +} + +// SetInputDataLocationS3 sets the InputDataLocationS3 field's value. +func (s *BatchPrediction) SetInputDataLocationS3(v string) *BatchPrediction { + s.InputDataLocationS3 = &v + return s +} + +// SetInvalidRecordCount sets the InvalidRecordCount field's value. +func (s *BatchPrediction) SetInvalidRecordCount(v int64) *BatchPrediction { + s.InvalidRecordCount = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *BatchPrediction) SetLastUpdatedAt(v time.Time) *BatchPrediction { + s.LastUpdatedAt = &v + return s +} + +// SetMLModelId sets the MLModelId field's value. +func (s *BatchPrediction) SetMLModelId(v string) *BatchPrediction { + s.MLModelId = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *BatchPrediction) SetMessage(v string) *BatchPrediction { + s.Message = &v + return s +} + +// SetName sets the Name field's value. +func (s *BatchPrediction) SetName(v string) *BatchPrediction { + s.Name = &v + return s +} + +// SetOutputUri sets the OutputUri field's value. +func (s *BatchPrediction) SetOutputUri(v string) *BatchPrediction { + s.OutputUri = &v + return s +} + +// SetStartedAt sets the StartedAt field's value. +func (s *BatchPrediction) SetStartedAt(v time.Time) *BatchPrediction { + s.StartedAt = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *BatchPrediction) SetStatus(v string) *BatchPrediction { + s.Status = &v + return s +} + +// SetTotalRecordCount sets the TotalRecordCount field's value. +func (s *BatchPrediction) SetTotalRecordCount(v int64) *BatchPrediction { + s.TotalRecordCount = &v + return s +} + type CreateBatchPredictionInput struct { _ struct{} `type:"structure"` @@ -2550,6 +2619,36 @@ func (s *CreateBatchPredictionInput) Validate() error { return nil } +// SetBatchPredictionDataSourceId sets the BatchPredictionDataSourceId field's value. +func (s *CreateBatchPredictionInput) SetBatchPredictionDataSourceId(v string) *CreateBatchPredictionInput { + s.BatchPredictionDataSourceId = &v + return s +} + +// SetBatchPredictionId sets the BatchPredictionId field's value. +func (s *CreateBatchPredictionInput) SetBatchPredictionId(v string) *CreateBatchPredictionInput { + s.BatchPredictionId = &v + return s +} + +// SetBatchPredictionName sets the BatchPredictionName field's value. +func (s *CreateBatchPredictionInput) SetBatchPredictionName(v string) *CreateBatchPredictionInput { + s.BatchPredictionName = &v + return s +} + +// SetMLModelId sets the MLModelId field's value. +func (s *CreateBatchPredictionInput) SetMLModelId(v string) *CreateBatchPredictionInput { + s.MLModelId = &v + return s +} + +// SetOutputUri sets the OutputUri field's value. +func (s *CreateBatchPredictionInput) SetOutputUri(v string) *CreateBatchPredictionInput { + s.OutputUri = &v + return s +} + // Represents the output of a CreateBatchPrediction operation, and is an acknowledgement // that Amazon ML received the request. // @@ -2574,6 +2673,12 @@ func (s CreateBatchPredictionOutput) GoString() string { return s.String() } +// SetBatchPredictionId sets the BatchPredictionId field's value. +func (s *CreateBatchPredictionOutput) SetBatchPredictionId(v string) *CreateBatchPredictionOutput { + s.BatchPredictionId = &v + return s +} + type CreateDataSourceFromRDSInput struct { _ struct{} `type:"structure"` @@ -2594,45 +2699,6 @@ type CreateDataSourceFromRDSInput struct { // The data specification of an Amazon RDS DataSource: // - // DatabaseInformation - DatabaseName - The name of the Amazon RDS database. - // InstanceIdentifier - A unique identifier for the Amazon RDS database instance. - // - // - // DatabaseCredentials - AWS Identity and Access Management (IAM) credentials - // that are used to connect to the Amazon RDS database. - // - // ResourceRole - A role (DataPipelineDefaultResourceRole) assumed by an EC2 - // instance to carry out the copy task from Amazon RDS to Amazon Simple Storage - // Service (Amazon S3). For more information, see Role templates (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-iam-roles.html) - // for data pipelines. - // - // ServiceRole - A role (DataPipelineDefaultRole) assumed by the AWS Data Pipeline - // service to monitor the progress of the copy task from Amazon RDS to Amazon - // S3. For more information, see Role templates (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-iam-roles.html) - // for data pipelines. - // - // SecurityInfo - The security information to use to access an RDS DB instance. - // You need to set up appropriate ingress rules for the security entity IDs - // provided to allow access to the Amazon RDS instance. Specify a [SubnetId, - // SecurityGroupIds] pair for a VPC-based RDS DB instance. - // - // SelectSqlQuery - A query that is used to retrieve the observation data for - // the Datasource. - // - // S3StagingLocation - The Amazon S3 location for staging Amazon RDS data. - // The data retrieved from Amazon RDS using SelectSqlQuery is stored in this - // location. - // - // DataSchemaUri - The Amazon S3 location of the DataSchema. - // - // DataSchema - A JSON string representing the schema. This is not required - // if DataSchemaUri is specified. - // - // DataRearrangement - A JSON string that represents the splitting and rearrangement - // requirements for the Datasource. - // - // Sample - "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}" - // // RDSData is a required field RDSData *RDSDataSpec `type:"structure" required:"true"` @@ -2684,6 +2750,36 @@ func (s *CreateDataSourceFromRDSInput) Validate() error { return nil } +// SetComputeStatistics sets the ComputeStatistics field's value. +func (s *CreateDataSourceFromRDSInput) SetComputeStatistics(v bool) *CreateDataSourceFromRDSInput { + s.ComputeStatistics = &v + return s +} + +// SetDataSourceId sets the DataSourceId field's value. +func (s *CreateDataSourceFromRDSInput) SetDataSourceId(v string) *CreateDataSourceFromRDSInput { + s.DataSourceId = &v + return s +} + +// SetDataSourceName sets the DataSourceName field's value. +func (s *CreateDataSourceFromRDSInput) SetDataSourceName(v string) *CreateDataSourceFromRDSInput { + s.DataSourceName = &v + return s +} + +// SetRDSData sets the RDSData field's value. +func (s *CreateDataSourceFromRDSInput) SetRDSData(v *RDSDataSpec) *CreateDataSourceFromRDSInput { + s.RDSData = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *CreateDataSourceFromRDSInput) SetRoleARN(v string) *CreateDataSourceFromRDSInput { + s.RoleARN = &v + return s +} + // Represents the output of a CreateDataSourceFromRDS operation, and is an acknowledgement // that Amazon ML received the request. // @@ -2711,6 +2807,12 @@ func (s CreateDataSourceFromRDSOutput) GoString() string { return s.String() } +// SetDataSourceId sets the DataSourceId field's value. +func (s *CreateDataSourceFromRDSOutput) SetDataSourceId(v string) *CreateDataSourceFromRDSOutput { + s.DataSourceId = &v + return s +} + type CreateDataSourceFromRedshiftInput struct { _ struct{} `type:"structure"` @@ -2730,26 +2832,27 @@ type CreateDataSourceFromRedshiftInput struct { // The data specification of an Amazon Redshift DataSource: // - // DatabaseInformation - DatabaseName - The name of the Amazon Redshift - // database. ClusterIdentifier - The unique ID for the Amazon Redshift cluster. + // * DatabaseInformation - DatabaseName - The name of the Amazon Redshift + // database. + // ClusterIdentifier - The unique ID for the Amazon Redshift cluster. // - // DatabaseCredentials - The AWS Identity and Access Management (IAM) credentials - // that are used to connect to the Amazon Redshift database. + // * DatabaseCredentials - The AWS Identity and Access Management (IAM) credentials + // that are used to connect to the Amazon Redshift database. // - // SelectSqlQuery - The query that is used to retrieve the observation data - // for the Datasource. + // * SelectSqlQuery - The query that is used to retrieve the observation + // data for the Datasource. // - // S3StagingLocation - The Amazon Simple Storage Service (Amazon S3) location - // for staging Amazon Redshift data. The data retrieved from Amazon Redshift - // using the SelectSqlQuery query is stored in this location. + // * S3StagingLocation - The Amazon Simple Storage Service (Amazon S3) location + // for staging Amazon Redshift data. The data retrieved from Amazon Redshift + // using the SelectSqlQuery query is stored in this location. // - // DataSchemaUri - The Amazon S3 location of the DataSchema. + // * DataSchemaUri - The Amazon S3 location of the DataSchema. // - // DataSchema - A JSON string representing the schema. This is not required - // if DataSchemaUri is specified. + // * DataSchema - A JSON string representing the schema. This is not required + // if DataSchemaUri is specified. // - // DataRearrangement - A JSON string that represents the splitting and rearrangement - // requirements for the DataSource. + // * DataRearrangement - A JSON string that represents the splitting and + // rearrangement requirements for the DataSource. // // Sample - "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}" // @@ -2759,11 +2862,11 @@ type CreateDataSourceFromRedshiftInput struct { // A fully specified role Amazon Resource Name (ARN). Amazon ML assumes the // role on behalf of the user to create the following: // - // A security group to allow Amazon ML to execute the SelectSqlQuery query - // on an Amazon Redshift cluster + // A security group to allow Amazon ML to execute the SelectSqlQuery query on + // an Amazon Redshift cluster // - // An Amazon S3 bucket policy to grant Amazon ML read/write permissions on - // the S3StagingLocation + // An Amazon S3 bucket policy to grant Amazon ML read/write permissions on the + // S3StagingLocation // // RoleARN is a required field RoleARN *string `min:"1" type:"string" required:"true"` @@ -2809,6 +2912,36 @@ func (s *CreateDataSourceFromRedshiftInput) Validate() error { return nil } +// SetComputeStatistics sets the ComputeStatistics field's value. +func (s *CreateDataSourceFromRedshiftInput) SetComputeStatistics(v bool) *CreateDataSourceFromRedshiftInput { + s.ComputeStatistics = &v + return s +} + +// SetDataSourceId sets the DataSourceId field's value. +func (s *CreateDataSourceFromRedshiftInput) SetDataSourceId(v string) *CreateDataSourceFromRedshiftInput { + s.DataSourceId = &v + return s +} + +// SetDataSourceName sets the DataSourceName field's value. +func (s *CreateDataSourceFromRedshiftInput) SetDataSourceName(v string) *CreateDataSourceFromRedshiftInput { + s.DataSourceName = &v + return s +} + +// SetDataSpec sets the DataSpec field's value. +func (s *CreateDataSourceFromRedshiftInput) SetDataSpec(v *RedshiftDataSpec) *CreateDataSourceFromRedshiftInput { + s.DataSpec = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *CreateDataSourceFromRedshiftInput) SetRoleARN(v string) *CreateDataSourceFromRedshiftInput { + s.RoleARN = &v + return s +} + // Represents the output of a CreateDataSourceFromRedshift operation, and is // an acknowledgement that Amazon ML received the request. // @@ -2833,6 +2966,12 @@ func (s CreateDataSourceFromRedshiftOutput) GoString() string { return s.String() } +// SetDataSourceId sets the DataSourceId field's value. +func (s *CreateDataSourceFromRedshiftOutput) SetDataSourceId(v string) *CreateDataSourceFromRedshiftOutput { + s.DataSourceId = &v + return s +} + type CreateDataSourceFromS3Input struct { _ struct{} `type:"structure"` @@ -2852,15 +2991,15 @@ type CreateDataSourceFromS3Input struct { // The data specification of a DataSource: // - // DataLocationS3 - The Amazon S3 location of the observation data. + // * DataLocationS3 - The Amazon S3 location of the observation data. // - // DataSchemaLocationS3 - The Amazon S3 location of the DataSchema. + // * DataSchemaLocationS3 - The Amazon S3 location of the DataSchema. // - // DataSchema - A JSON string representing the schema. This is not required - // if DataSchemaUri is specified. + // * DataSchema - A JSON string representing the schema. This is not required + // if DataSchemaUri is specified. // - // DataRearrangement - A JSON string that represents the splitting and rearrangement - // requirements for the Datasource. + // * DataRearrangement - A JSON string that represents the splitting and + // rearrangement requirements for the Datasource. // // Sample - "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}" // @@ -2902,6 +3041,30 @@ func (s *CreateDataSourceFromS3Input) Validate() error { return nil } +// SetComputeStatistics sets the ComputeStatistics field's value. +func (s *CreateDataSourceFromS3Input) SetComputeStatistics(v bool) *CreateDataSourceFromS3Input { + s.ComputeStatistics = &v + return s +} + +// SetDataSourceId sets the DataSourceId field's value. +func (s *CreateDataSourceFromS3Input) SetDataSourceId(v string) *CreateDataSourceFromS3Input { + s.DataSourceId = &v + return s +} + +// SetDataSourceName sets the DataSourceName field's value. +func (s *CreateDataSourceFromS3Input) SetDataSourceName(v string) *CreateDataSourceFromS3Input { + s.DataSourceName = &v + return s +} + +// SetDataSpec sets the DataSpec field's value. +func (s *CreateDataSourceFromS3Input) SetDataSpec(v *S3DataSpec) *CreateDataSourceFromS3Input { + s.DataSpec = v + return s +} + // Represents the output of a CreateDataSourceFromS3 operation, and is an acknowledgement // that Amazon ML received the request. // @@ -2925,6 +3088,12 @@ func (s CreateDataSourceFromS3Output) GoString() string { return s.String() } +// SetDataSourceId sets the DataSourceId field's value. +func (s *CreateDataSourceFromS3Output) SetDataSourceId(v string) *CreateDataSourceFromS3Output { + s.DataSourceId = &v + return s +} + type CreateEvaluationInput struct { _ struct{} `type:"structure"` @@ -2989,6 +3158,30 @@ func (s *CreateEvaluationInput) Validate() error { return nil } +// SetEvaluationDataSourceId sets the EvaluationDataSourceId field's value. +func (s *CreateEvaluationInput) SetEvaluationDataSourceId(v string) *CreateEvaluationInput { + s.EvaluationDataSourceId = &v + return s +} + +// SetEvaluationId sets the EvaluationId field's value. +func (s *CreateEvaluationInput) SetEvaluationId(v string) *CreateEvaluationInput { + s.EvaluationId = &v + return s +} + +// SetEvaluationName sets the EvaluationName field's value. +func (s *CreateEvaluationInput) SetEvaluationName(v string) *CreateEvaluationInput { + s.EvaluationName = &v + return s +} + +// SetMLModelId sets the MLModelId field's value. +func (s *CreateEvaluationInput) SetMLModelId(v string) *CreateEvaluationInput { + s.MLModelId = &v + return s +} + // Represents the output of a CreateEvaluation operation, and is an acknowledgement // that Amazon ML received the request. // @@ -3012,6 +3205,12 @@ func (s CreateEvaluationOutput) GoString() string { return s.String() } +// SetEvaluationId sets the EvaluationId field's value. +func (s *CreateEvaluationOutput) SetEvaluationId(v string) *CreateEvaluationOutput { + s.EvaluationId = &v + return s +} + type CreateMLModelInput struct { _ struct{} `type:"structure"` @@ -3026,10 +3225,12 @@ type CreateMLModelInput struct { // The category of supervised learning that this MLModel will address. Choose // from the following types: // - // Choose REGRESSION if the MLModel will be used to predict a numeric value. - // Choose BINARY if the MLModel result has two possible values. Choose MULTICLASS - // if the MLModel result has a limited number of values. For more information, - // see the Amazon Machine Learning Developer Guide (http://docs.aws.amazon.com/machine-learning/latest/dg). + // * Choose REGRESSION if the MLModel will be used to predict a numeric value. + // + // * Choose BINARY if the MLModel result has two possible values. + // * Choose MULTICLASS if the MLModel result has a limited number of values. + // + // For more information, see the Amazon Machine Learning Developer Guide (http://docs.aws.amazon.com/machine-learning/latest/dg). // // MLModelType is a required field MLModelType *string `type:"string" required:"true" enum:"MLModelType"` @@ -3039,38 +3240,39 @@ type CreateMLModelInput struct { // // The following is the current set of training parameters: // - // sgd.maxMLModelSizeInBytes - The maximum allowed size of the model. Depending - // on the input data, the size of the model might affect its performance. + // * sgd.maxMLModelSizeInBytes - The maximum allowed size of the model. Depending + // on the input data, the size of the model might affect its performance. // // The value is an integer that ranges from 100000 to 2147483648. The default - // value is 33554432. + // value is 33554432. // - // sgd.maxPasses - The number of times that the training process traverses - // the observations to build the MLModel. The value is an integer that ranges - // from 1 to 10000. The default value is 10. + // * sgd.maxPasses - The number of times that the training process traverses + // the observations to build the MLModel. The value is an integer that ranges + // from 1 to 10000. The default value is 10. // - // sgd.shuffleType - Whether Amazon ML shuffles the training data. Shuffling - // the data improves a model's ability to find the optimal solution for a variety - // of data types. The valid values are auto and none. The default value is none. - // We strongly recommend that you shuffle your data. + // * sgd.shuffleType - Whether Amazon ML shuffles the training data. Shuffling + // the data improves a model's ability to find the optimal solution for a + // variety of data types. The valid values are auto and none. The default + // value is none. We strongly recommend that you shuffle your data. // - // sgd.l1RegularizationAmount - The coefficient regularization L1 norm. It - // controls overfitting the data by penalizing large coefficients. This tends - // to drive coefficients to zero, resulting in a sparse feature set. If you - // use this parameter, start by specifying a small value, such as 1.0E-08. + // * sgd.l1RegularizationAmount - The coefficient regularization L1 norm. + // It controls overfitting the data by penalizing large coefficients. This + // tends to drive coefficients to zero, resulting in a sparse feature set. + // If you use this parameter, start by specifying a small value, such as + // 1.0E-08. // // The value is a double that ranges from 0 to MAX_DOUBLE. The default is to - // not use L1 normalization. This parameter can't be used when L2 is specified. - // Use this parameter sparingly. + // not use L1 normalization. This parameter can't be used when L2 is specified. + // Use this parameter sparingly. // - // sgd.l2RegularizationAmount - The coefficient regularization L2 norm. It - // controls overfitting the data by penalizing large coefficients. This tends - // to drive coefficients to small, nonzero values. If you use this parameter, - // start by specifying a small value, such as 1.0E-08. + // * sgd.l2RegularizationAmount - The coefficient regularization L2 norm. + // It controls overfitting the data by penalizing large coefficients. This + // tends to drive coefficients to small, nonzero values. If you use this + // parameter, start by specifying a small value, such as 1.0E-08. // // The value is a double that ranges from 0 to MAX_DOUBLE. The default is to - // not use L2 normalization. This parameter can't be used when L1 is specified. - // Use this parameter sparingly. + // not use L2 normalization. This parameter can't be used when L1 is specified. + // Use this parameter sparingly. Parameters map[string]*string `type:"map"` // The data recipe for creating the MLModel. You must specify either the recipe @@ -3124,6 +3326,48 @@ func (s *CreateMLModelInput) Validate() error { return nil } +// SetMLModelId sets the MLModelId field's value. +func (s *CreateMLModelInput) SetMLModelId(v string) *CreateMLModelInput { + s.MLModelId = &v + return s +} + +// SetMLModelName sets the MLModelName field's value. +func (s *CreateMLModelInput) SetMLModelName(v string) *CreateMLModelInput { + s.MLModelName = &v + return s +} + +// SetMLModelType sets the MLModelType field's value. +func (s *CreateMLModelInput) SetMLModelType(v string) *CreateMLModelInput { + s.MLModelType = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *CreateMLModelInput) SetParameters(v map[string]*string) *CreateMLModelInput { + s.Parameters = v + return s +} + +// SetRecipe sets the Recipe field's value. +func (s *CreateMLModelInput) SetRecipe(v string) *CreateMLModelInput { + s.Recipe = &v + return s +} + +// SetRecipeUri sets the RecipeUri field's value. +func (s *CreateMLModelInput) SetRecipeUri(v string) *CreateMLModelInput { + s.RecipeUri = &v + return s +} + +// SetTrainingDataSourceId sets the TrainingDataSourceId field's value. +func (s *CreateMLModelInput) SetTrainingDataSourceId(v string) *CreateMLModelInput { + s.TrainingDataSourceId = &v + return s +} + // Represents the output of a CreateMLModel operation, and is an acknowledgement // that Amazon ML received the request. // @@ -3147,6 +3391,12 @@ func (s CreateMLModelOutput) GoString() string { return s.String() } +// SetMLModelId sets the MLModelId field's value. +func (s *CreateMLModelOutput) SetMLModelId(v string) *CreateMLModelOutput { + s.MLModelId = &v + return s +} + type CreateRealtimeEndpointInput struct { _ struct{} `type:"structure"` @@ -3182,12 +3432,18 @@ func (s *CreateRealtimeEndpointInput) Validate() error { return nil } +// SetMLModelId sets the MLModelId field's value. +func (s *CreateRealtimeEndpointInput) SetMLModelId(v string) *CreateRealtimeEndpointInput { + s.MLModelId = &v + return s +} + // Represents the output of an CreateRealtimeEndpoint operation. // // The result contains the MLModelId and the endpoint information for the MLModel. // -// The endpoint information includes the URI of the MLModel; that is, the -// location to send online prediction requests for the specified MLModel. +// The endpoint information includes the URI of the MLModel; that is, the location +// to send online prediction requests for the specified MLModel. type CreateRealtimeEndpointOutput struct { _ struct{} `type:"structure"` @@ -3209,10 +3465,22 @@ func (s CreateRealtimeEndpointOutput) GoString() string { return s.String() } +// SetMLModelId sets the MLModelId field's value. +func (s *CreateRealtimeEndpointOutput) SetMLModelId(v string) *CreateRealtimeEndpointOutput { + s.MLModelId = &v + return s +} + +// SetRealtimeEndpointInfo sets the RealtimeEndpointInfo field's value. +func (s *CreateRealtimeEndpointOutput) SetRealtimeEndpointInfo(v *RealtimeEndpointInfo) *CreateRealtimeEndpointOutput { + s.RealtimeEndpointInfo = v + return s +} + // Represents the output of the GetDataSource operation. // -// The content consists of the detailed metadata and data file information -// and the current status of the DataSource. +// The content consists of the detailed metadata and data file information and +// the current status of the DataSource. type DataSource struct { _ struct{} `type:"structure"` @@ -3279,11 +3547,13 @@ type DataSource struct { // The current status of the DataSource. This element can have one of the following // values: // - // PENDING - Amazon Machine Learning (Amazon ML) submitted a request to create - // a DataSource. INPROGRESS - The creation process is underway. FAILED - The - // request to create a DataSource did not run to completion. It is not usable. - // COMPLETED - The creation process completed successfully. DELETED - The DataSource - // is marked as deleted. It is not usable. + // * PENDING - Amazon Machine Learning (Amazon ML) submitted a request to + // create a DataSource. + // * INPROGRESS - The creation process is underway. + // * FAILED - The request to create a DataSource did not run to completion. + // It is not usable. + // * COMPLETED - The creation process completed successfully. + // * DELETED - The DataSource is marked as deleted. It is not usable. Status *string `type:"string" enum:"EntityStatus"` } @@ -3297,47 +3567,161 @@ func (s DataSource) GoString() string { return s.String() } -type DeleteBatchPredictionInput struct { - _ struct{} `type:"structure"` +// SetComputeStatistics sets the ComputeStatistics field's value. +func (s *DataSource) SetComputeStatistics(v bool) *DataSource { + s.ComputeStatistics = &v + return s +} - // A user-supplied ID that uniquely identifies the BatchPrediction. - // - // BatchPredictionId is a required field - BatchPredictionId *string `min:"1" type:"string" required:"true"` +// SetComputeTime sets the ComputeTime field's value. +func (s *DataSource) SetComputeTime(v int64) *DataSource { + s.ComputeTime = &v + return s } -// String returns the string representation -func (s DeleteBatchPredictionInput) String() string { - return awsutil.Prettify(s) +// SetCreatedAt sets the CreatedAt field's value. +func (s *DataSource) SetCreatedAt(v time.Time) *DataSource { + s.CreatedAt = &v + return s } -// GoString returns the string representation -func (s DeleteBatchPredictionInput) GoString() string { - return s.String() +// SetCreatedByIamUser sets the CreatedByIamUser field's value. +func (s *DataSource) SetCreatedByIamUser(v string) *DataSource { + s.CreatedByIamUser = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteBatchPredictionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteBatchPredictionInput"} - if s.BatchPredictionId == nil { - invalidParams.Add(request.NewErrParamRequired("BatchPredictionId")) - } - if s.BatchPredictionId != nil && len(*s.BatchPredictionId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BatchPredictionId", 1)) - } +// SetDataLocationS3 sets the DataLocationS3 field's value. +func (s *DataSource) SetDataLocationS3(v string) *DataSource { + s.DataLocationS3 = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetDataRearrangement sets the DataRearrangement field's value. +func (s *DataSource) SetDataRearrangement(v string) *DataSource { + s.DataRearrangement = &v + return s } -// Represents the output of a DeleteBatchPrediction operation. -// -// You can use the GetBatchPrediction operation and check the value of the -// Status parameter to see whether a BatchPrediction is marked as DELETED. -type DeleteBatchPredictionOutput struct { - _ struct{} `type:"structure"` +// SetDataSizeInBytes sets the DataSizeInBytes field's value. +func (s *DataSource) SetDataSizeInBytes(v int64) *DataSource { + s.DataSizeInBytes = &v + return s +} + +// SetDataSourceId sets the DataSourceId field's value. +func (s *DataSource) SetDataSourceId(v string) *DataSource { + s.DataSourceId = &v + return s +} + +// SetFinishedAt sets the FinishedAt field's value. +func (s *DataSource) SetFinishedAt(v time.Time) *DataSource { + s.FinishedAt = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *DataSource) SetLastUpdatedAt(v time.Time) *DataSource { + s.LastUpdatedAt = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *DataSource) SetMessage(v string) *DataSource { + s.Message = &v + return s +} + +// SetName sets the Name field's value. +func (s *DataSource) SetName(v string) *DataSource { + s.Name = &v + return s +} + +// SetNumberOfFiles sets the NumberOfFiles field's value. +func (s *DataSource) SetNumberOfFiles(v int64) *DataSource { + s.NumberOfFiles = &v + return s +} + +// SetRDSMetadata sets the RDSMetadata field's value. +func (s *DataSource) SetRDSMetadata(v *RDSMetadata) *DataSource { + s.RDSMetadata = v + return s +} + +// SetRedshiftMetadata sets the RedshiftMetadata field's value. +func (s *DataSource) SetRedshiftMetadata(v *RedshiftMetadata) *DataSource { + s.RedshiftMetadata = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *DataSource) SetRoleARN(v string) *DataSource { + s.RoleARN = &v + return s +} + +// SetStartedAt sets the StartedAt field's value. +func (s *DataSource) SetStartedAt(v time.Time) *DataSource { + s.StartedAt = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DataSource) SetStatus(v string) *DataSource { + s.Status = &v + return s +} + +type DeleteBatchPredictionInput struct { + _ struct{} `type:"structure"` + + // A user-supplied ID that uniquely identifies the BatchPrediction. + // + // BatchPredictionId is a required field + BatchPredictionId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteBatchPredictionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBatchPredictionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteBatchPredictionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteBatchPredictionInput"} + if s.BatchPredictionId == nil { + invalidParams.Add(request.NewErrParamRequired("BatchPredictionId")) + } + if s.BatchPredictionId != nil && len(*s.BatchPredictionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BatchPredictionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBatchPredictionId sets the BatchPredictionId field's value. +func (s *DeleteBatchPredictionInput) SetBatchPredictionId(v string) *DeleteBatchPredictionInput { + s.BatchPredictionId = &v + return s +} + +// Represents the output of a DeleteBatchPrediction operation. +// +// You can use the GetBatchPrediction operation and check the value of the Status +// parameter to see whether a BatchPrediction is marked as DELETED. +type DeleteBatchPredictionOutput struct { + _ struct{} `type:"structure"` // A user-supplied ID that uniquely identifies the BatchPrediction. This value // should be identical to the value of the BatchPredictionID in the request. @@ -3354,6 +3738,12 @@ func (s DeleteBatchPredictionOutput) GoString() string { return s.String() } +// SetBatchPredictionId sets the BatchPredictionId field's value. +func (s *DeleteBatchPredictionOutput) SetBatchPredictionId(v string) *DeleteBatchPredictionOutput { + s.BatchPredictionId = &v + return s +} + type DeleteDataSourceInput struct { _ struct{} `type:"structure"` @@ -3389,6 +3779,12 @@ func (s *DeleteDataSourceInput) Validate() error { return nil } +// SetDataSourceId sets the DataSourceId field's value. +func (s *DeleteDataSourceInput) SetDataSourceId(v string) *DeleteDataSourceInput { + s.DataSourceId = &v + return s +} + // Represents the output of a DeleteDataSource operation. type DeleteDataSourceOutput struct { _ struct{} `type:"structure"` @@ -3408,6 +3804,12 @@ func (s DeleteDataSourceOutput) GoString() string { return s.String() } +// SetDataSourceId sets the DataSourceId field's value. +func (s *DeleteDataSourceOutput) SetDataSourceId(v string) *DeleteDataSourceOutput { + s.DataSourceId = &v + return s +} + type DeleteEvaluationInput struct { _ struct{} `type:"structure"` @@ -3443,6 +3845,12 @@ func (s *DeleteEvaluationInput) Validate() error { return nil } +// SetEvaluationId sets the EvaluationId field's value. +func (s *DeleteEvaluationInput) SetEvaluationId(v string) *DeleteEvaluationInput { + s.EvaluationId = &v + return s +} + // Represents the output of a DeleteEvaluation operation. The output indicates // that Amazon Machine Learning (Amazon ML) received the request. // @@ -3466,6 +3874,12 @@ func (s DeleteEvaluationOutput) GoString() string { return s.String() } +// SetEvaluationId sets the EvaluationId field's value. +func (s *DeleteEvaluationOutput) SetEvaluationId(v string) *DeleteEvaluationOutput { + s.EvaluationId = &v + return s +} + type DeleteMLModelInput struct { _ struct{} `type:"structure"` @@ -3501,6 +3915,12 @@ func (s *DeleteMLModelInput) Validate() error { return nil } +// SetMLModelId sets the MLModelId field's value. +func (s *DeleteMLModelInput) SetMLModelId(v string) *DeleteMLModelInput { + s.MLModelId = &v + return s +} + // Represents the output of a DeleteMLModel operation. // // You can use the GetMLModel operation and check the value of the Status parameter @@ -3523,6 +3943,12 @@ func (s DeleteMLModelOutput) GoString() string { return s.String() } +// SetMLModelId sets the MLModelId field's value. +func (s *DeleteMLModelOutput) SetMLModelId(v string) *DeleteMLModelOutput { + s.MLModelId = &v + return s +} + type DeleteRealtimeEndpointInput struct { _ struct{} `type:"structure"` @@ -3558,6 +3984,12 @@ func (s *DeleteRealtimeEndpointInput) Validate() error { return nil } +// SetMLModelId sets the MLModelId field's value. +func (s *DeleteRealtimeEndpointInput) SetMLModelId(v string) *DeleteRealtimeEndpointInput { + s.MLModelId = &v + return s +} + // Represents the output of an DeleteRealtimeEndpoint operation. // // The result contains the MLModelId and the endpoint information for the MLModel. @@ -3582,6 +4014,18 @@ func (s DeleteRealtimeEndpointOutput) GoString() string { return s.String() } +// SetMLModelId sets the MLModelId field's value. +func (s *DeleteRealtimeEndpointOutput) SetMLModelId(v string) *DeleteRealtimeEndpointOutput { + s.MLModelId = &v + return s +} + +// SetRealtimeEndpointInfo sets the RealtimeEndpointInfo field's value. +func (s *DeleteRealtimeEndpointOutput) SetRealtimeEndpointInfo(v *RealtimeEndpointInfo) *DeleteRealtimeEndpointOutput { + s.RealtimeEndpointInfo = v + return s +} + type DeleteTagsInput struct { _ struct{} `type:"structure"` @@ -3633,6 +4077,24 @@ func (s *DeleteTagsInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *DeleteTagsInput) SetResourceId(v string) *DeleteTagsInput { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *DeleteTagsInput) SetResourceType(v string) *DeleteTagsInput { + s.ResourceType = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DeleteTagsInput) SetTagKeys(v []*string) *DeleteTagsInput { + s.TagKeys = v + return s +} + // Amazon ML returns the following elements. type DeleteTagsOutput struct { _ struct{} `type:"structure"` @@ -3654,6 +4116,18 @@ func (s DeleteTagsOutput) GoString() string { return s.String() } +// SetResourceId sets the ResourceId field's value. +func (s *DeleteTagsOutput) SetResourceId(v string) *DeleteTagsOutput { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *DeleteTagsOutput) SetResourceType(v string) *DeleteTagsOutput { + s.ResourceType = &v + return s +} + type DescribeBatchPredictionsInput struct { _ struct{} `type:"structure"` @@ -3663,15 +4137,20 @@ type DescribeBatchPredictionsInput struct { // Use one of the following variables to filter a list of BatchPrediction: // - // CreatedAt - Sets the search criteria to the BatchPrediction creation date. - // Status - Sets the search criteria to the BatchPrediction status. Name - - // Sets the search criteria to the contents of the BatchPrediction Name. IAMUser - // - Sets the search criteria to the user account that invoked the BatchPrediction - // creation. MLModelId - Sets the search criteria to the MLModel used in the - // BatchPrediction. DataSourceId - Sets the search criteria to the DataSource - // used in the BatchPrediction. DataURI - Sets the search criteria to the data - // file(s) used in the BatchPrediction. The URL can identify either a file or - // an Amazon Simple Storage Solution (Amazon S3) bucket or directory. + // * CreatedAt - Sets the search criteria to the BatchPrediction creation + // date. + // * Status - Sets the search criteria to the BatchPrediction status. + // * Name - Sets the search criteria to the contents of the BatchPredictionName. + // + // * IAMUser - Sets the search criteria to the user account that invoked + // the BatchPrediction creation. + // * MLModelId - Sets the search criteria to the MLModel used in the BatchPrediction. + // + // * DataSourceId - Sets the search criteria to the DataSource used in the + // BatchPrediction. + // * DataURI - Sets the search criteria to the data file(s) used in the BatchPrediction. + // The URL can identify either a file or an Amazon Simple Storage Solution + // (Amazon S3) bucket or directory. FilterVariable *string `type:"string" enum:"BatchPredictionFilterVariable"` // The greater than or equal to operator. The BatchPrediction results will have @@ -3705,22 +4184,23 @@ type DescribeBatchPredictionsInput struct { // A string that is found at the beginning of a variable, such as Name or Id. // - // For example, a Batch Prediction operation could have the Name 2014-09-09-HolidayGiftMailer. + // For example, a Batch Prediction operation could have the Name2014-09-09-HolidayGiftMailer. // To search for this BatchPrediction, select Name for the FilterVariable and // any of the following strings for the Prefix: // - // 2014-09 + // * 2014-09 // - // 2014-09-09 + // * 2014-09-09 // - // 2014-09-09-Holiday + // * 2014-09-09-Holiday Prefix *string `type:"string"` // A two-value parameter that determines the sequence of the resulting list // of MLModels. // - // asc - Arranges the list in ascending order (A-Z, 0-9). dsc - Arranges - // the list in descending order (Z-A, 9-0). Results are sorted by FilterVariable. + // * asc - Arranges the list in ascending order (A-Z, 0-9). + // * dsc - Arranges the list in descending order (Z-A, 9-0). + // Results are sorted by FilterVariable. SortOrder *string `type:"string" enum:"SortOrder"` } @@ -3747,6 +4227,72 @@ func (s *DescribeBatchPredictionsInput) Validate() error { return nil } +// SetEQ sets the EQ field's value. +func (s *DescribeBatchPredictionsInput) SetEQ(v string) *DescribeBatchPredictionsInput { + s.EQ = &v + return s +} + +// SetFilterVariable sets the FilterVariable field's value. +func (s *DescribeBatchPredictionsInput) SetFilterVariable(v string) *DescribeBatchPredictionsInput { + s.FilterVariable = &v + return s +} + +// SetGE sets the GE field's value. +func (s *DescribeBatchPredictionsInput) SetGE(v string) *DescribeBatchPredictionsInput { + s.GE = &v + return s +} + +// SetGT sets the GT field's value. +func (s *DescribeBatchPredictionsInput) SetGT(v string) *DescribeBatchPredictionsInput { + s.GT = &v + return s +} + +// SetLE sets the LE field's value. +func (s *DescribeBatchPredictionsInput) SetLE(v string) *DescribeBatchPredictionsInput { + s.LE = &v + return s +} + +// SetLT sets the LT field's value. +func (s *DescribeBatchPredictionsInput) SetLT(v string) *DescribeBatchPredictionsInput { + s.LT = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeBatchPredictionsInput) SetLimit(v int64) *DescribeBatchPredictionsInput { + s.Limit = &v + return s +} + +// SetNE sets the NE field's value. +func (s *DescribeBatchPredictionsInput) SetNE(v string) *DescribeBatchPredictionsInput { + s.NE = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeBatchPredictionsInput) SetNextToken(v string) *DescribeBatchPredictionsInput { + s.NextToken = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *DescribeBatchPredictionsInput) SetPrefix(v string) *DescribeBatchPredictionsInput { + s.Prefix = &v + return s +} + +// SetSortOrder sets the SortOrder field's value. +func (s *DescribeBatchPredictionsInput) SetSortOrder(v string) *DescribeBatchPredictionsInput { + s.SortOrder = &v + return s +} + // Represents the output of a DescribeBatchPredictions operation. The content // is essentially a list of BatchPredictions. type DescribeBatchPredictionsOutput struct { @@ -3770,6 +4316,18 @@ func (s DescribeBatchPredictionsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeBatchPredictionsOutput) SetNextToken(v string) *DescribeBatchPredictionsOutput { + s.NextToken = &v + return s +} + +// SetResults sets the Results field's value. +func (s *DescribeBatchPredictionsOutput) SetResults(v []*BatchPrediction) *DescribeBatchPredictionsOutput { + s.Results = v + return s +} + type DescribeDataSourcesInput struct { _ struct{} `type:"structure"` @@ -3779,13 +4337,14 @@ type DescribeDataSourcesInput struct { // Use one of the following variables to filter a list of DataSource: // - // CreatedAt - Sets the search criteria to DataSource creation dates. Status - // - Sets the search criteria to DataSource statuses. Name - Sets the search - // criteria to the contents of DataSource Name. DataUri - Sets the search - // criteria to the URI of data files used to create the DataSource. The URI - // can identify either a file or an Amazon Simple Storage Service (Amazon S3) - // bucket or directory. IAMUser - Sets the search criteria to the user account - // that invoked the DataSource creation. + // * CreatedAt - Sets the search criteria to DataSource creation dates. + // * Status - Sets the search criteria to DataSource statuses. + // * Name - Sets the search criteria to the contents of DataSourceName. + // * DataUri - Sets the search criteria to the URI of data files used to + // create the DataSource. The URI can identify either a file or an Amazon + // Simple Storage Service (Amazon S3) bucket or directory. + // * IAMUser - Sets the search criteria to the user account that invoked + // the DataSource creation. FilterVariable *string `type:"string" enum:"DataSourceFilterVariable"` // The greater than or equal to operator. The DataSource results will have FilterVariable @@ -3816,22 +4375,23 @@ type DescribeDataSourcesInput struct { // A string that is found at the beginning of a variable, such as Name or Id. // - // For example, a DataSource could have the Name 2014-09-09-HolidayGiftMailer. + // For example, a DataSource could have the Name2014-09-09-HolidayGiftMailer. // To search for this DataSource, select Name for the FilterVariable and any // of the following strings for the Prefix: // - // 2014-09 + // * 2014-09 // - // 2014-09-09 + // * 2014-09-09 // - // 2014-09-09-Holiday + // * 2014-09-09-Holiday Prefix *string `type:"string"` // A two-value parameter that determines the sequence of the resulting list // of DataSource. // - // asc - Arranges the list in ascending order (A-Z, 0-9). dsc - Arranges - // the list in descending order (Z-A, 9-0). Results are sorted by FilterVariable. + // * asc - Arranges the list in ascending order (A-Z, 0-9). + // * dsc - Arranges the list in descending order (Z-A, 9-0). + // Results are sorted by FilterVariable. SortOrder *string `type:"string" enum:"SortOrder"` } @@ -3858,6 +4418,72 @@ func (s *DescribeDataSourcesInput) Validate() error { return nil } +// SetEQ sets the EQ field's value. +func (s *DescribeDataSourcesInput) SetEQ(v string) *DescribeDataSourcesInput { + s.EQ = &v + return s +} + +// SetFilterVariable sets the FilterVariable field's value. +func (s *DescribeDataSourcesInput) SetFilterVariable(v string) *DescribeDataSourcesInput { + s.FilterVariable = &v + return s +} + +// SetGE sets the GE field's value. +func (s *DescribeDataSourcesInput) SetGE(v string) *DescribeDataSourcesInput { + s.GE = &v + return s +} + +// SetGT sets the GT field's value. +func (s *DescribeDataSourcesInput) SetGT(v string) *DescribeDataSourcesInput { + s.GT = &v + return s +} + +// SetLE sets the LE field's value. +func (s *DescribeDataSourcesInput) SetLE(v string) *DescribeDataSourcesInput { + s.LE = &v + return s +} + +// SetLT sets the LT field's value. +func (s *DescribeDataSourcesInput) SetLT(v string) *DescribeDataSourcesInput { + s.LT = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeDataSourcesInput) SetLimit(v int64) *DescribeDataSourcesInput { + s.Limit = &v + return s +} + +// SetNE sets the NE field's value. +func (s *DescribeDataSourcesInput) SetNE(v string) *DescribeDataSourcesInput { + s.NE = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeDataSourcesInput) SetNextToken(v string) *DescribeDataSourcesInput { + s.NextToken = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *DescribeDataSourcesInput) SetPrefix(v string) *DescribeDataSourcesInput { + s.Prefix = &v + return s +} + +// SetSortOrder sets the SortOrder field's value. +func (s *DescribeDataSourcesInput) SetSortOrder(v string) *DescribeDataSourcesInput { + s.SortOrder = &v + return s +} + // Represents the query results from a DescribeDataSources operation. The content // is essentially a list of DataSource. type DescribeDataSourcesOutput struct { @@ -3881,6 +4507,18 @@ func (s DescribeDataSourcesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeDataSourcesOutput) SetNextToken(v string) *DescribeDataSourcesOutput { + s.NextToken = &v + return s +} + +// SetResults sets the Results field's value. +func (s *DescribeDataSourcesOutput) SetResults(v []*DataSource) *DescribeDataSourcesOutput { + s.Results = v + return s +} + type DescribeEvaluationsInput struct { _ struct{} `type:"structure"` @@ -3890,15 +4528,19 @@ type DescribeEvaluationsInput struct { // Use one of the following variable to filter a list of Evaluation objects: // - // CreatedAt - Sets the search criteria to the Evaluation creation date. - // Status - Sets the search criteria to the Evaluation status. Name - Sets - // the search criteria to the contents of Evaluation Name. IAMUser - Sets - // the search criteria to the user account that invoked an Evaluation. MLModelId - // - Sets the search criteria to the MLModel that was evaluated. DataSourceId - // - Sets the search criteria to the DataSource used in Evaluation. DataUri - // - Sets the search criteria to the data file(s) used in Evaluation. The URL - // can identify either a file or an Amazon Simple Storage Solution (Amazon S3) - // bucket or directory. + // * CreatedAt - Sets the search criteria to the Evaluation creation date. + // + // * Status - Sets the search criteria to the Evaluation status. + // * Name - Sets the search criteria to the contents of EvaluationName. + // * IAMUser - Sets the search criteria to the user account that invoked + // an Evaluation. + // * MLModelId - Sets the search criteria to the MLModel that was evaluated. + // + // * DataSourceId - Sets the search criteria to the DataSource used in Evaluation. + // + // * DataUri - Sets the search criteria to the data file(s) used in Evaluation. + // The URL can identify either a file or an Amazon Simple Storage Solution + // (Amazon S3) bucket or directory. FilterVariable *string `type:"string" enum:"EvaluationFilterVariable"` // The greater than or equal to operator. The Evaluation results will have FilterVariable @@ -3929,22 +4571,23 @@ type DescribeEvaluationsInput struct { // A string that is found at the beginning of a variable, such as Name or Id. // - // For example, an Evaluation could have the Name 2014-09-09-HolidayGiftMailer. + // For example, an Evaluation could have the Name2014-09-09-HolidayGiftMailer. // To search for this Evaluation, select Name for the FilterVariable and any // of the following strings for the Prefix: // - // 2014-09 + // * 2014-09 // - // 2014-09-09 + // * 2014-09-09 // - // 2014-09-09-Holiday + // * 2014-09-09-Holiday Prefix *string `type:"string"` // A two-value parameter that determines the sequence of the resulting list // of Evaluation. // - // asc - Arranges the list in ascending order (A-Z, 0-9). dsc - Arranges - // the list in descending order (Z-A, 9-0). Results are sorted by FilterVariable. + // * asc - Arranges the list in ascending order (A-Z, 0-9). + // * dsc - Arranges the list in descending order (Z-A, 9-0). + // Results are sorted by FilterVariable. SortOrder *string `type:"string" enum:"SortOrder"` } @@ -3971,6 +4614,72 @@ func (s *DescribeEvaluationsInput) Validate() error { return nil } +// SetEQ sets the EQ field's value. +func (s *DescribeEvaluationsInput) SetEQ(v string) *DescribeEvaluationsInput { + s.EQ = &v + return s +} + +// SetFilterVariable sets the FilterVariable field's value. +func (s *DescribeEvaluationsInput) SetFilterVariable(v string) *DescribeEvaluationsInput { + s.FilterVariable = &v + return s +} + +// SetGE sets the GE field's value. +func (s *DescribeEvaluationsInput) SetGE(v string) *DescribeEvaluationsInput { + s.GE = &v + return s +} + +// SetGT sets the GT field's value. +func (s *DescribeEvaluationsInput) SetGT(v string) *DescribeEvaluationsInput { + s.GT = &v + return s +} + +// SetLE sets the LE field's value. +func (s *DescribeEvaluationsInput) SetLE(v string) *DescribeEvaluationsInput { + s.LE = &v + return s +} + +// SetLT sets the LT field's value. +func (s *DescribeEvaluationsInput) SetLT(v string) *DescribeEvaluationsInput { + s.LT = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeEvaluationsInput) SetLimit(v int64) *DescribeEvaluationsInput { + s.Limit = &v + return s +} + +// SetNE sets the NE field's value. +func (s *DescribeEvaluationsInput) SetNE(v string) *DescribeEvaluationsInput { + s.NE = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEvaluationsInput) SetNextToken(v string) *DescribeEvaluationsInput { + s.NextToken = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *DescribeEvaluationsInput) SetPrefix(v string) *DescribeEvaluationsInput { + s.Prefix = &v + return s +} + +// SetSortOrder sets the SortOrder field's value. +func (s *DescribeEvaluationsInput) SetSortOrder(v string) *DescribeEvaluationsInput { + s.SortOrder = &v + return s +} + // Represents the query results from a DescribeEvaluations operation. The content // is essentially a list of Evaluation. type DescribeEvaluationsOutput struct { @@ -3994,6 +4703,18 @@ func (s DescribeEvaluationsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeEvaluationsOutput) SetNextToken(v string) *DescribeEvaluationsOutput { + s.NextToken = &v + return s +} + +// SetResults sets the Results field's value. +func (s *DescribeEvaluationsOutput) SetResults(v []*Evaluation) *DescribeEvaluationsOutput { + s.Results = v + return s +} + type DescribeMLModelsInput struct { _ struct{} `type:"structure"` @@ -4003,17 +4724,22 @@ type DescribeMLModelsInput struct { // Use one of the following variables to filter a list of MLModel: // - // CreatedAt - Sets the search criteria to MLModel creation date. Status - // - Sets the search criteria to MLModel status. Name - Sets the search criteria - // to the contents of MLModel Name. IAMUser - Sets the search criteria to - // the user account that invoked the MLModel creation. TrainingDataSourceId - // - Sets the search criteria to the DataSource used to train one or more MLModel. - // RealtimeEndpointStatus - Sets the search criteria to the MLModel real-time - // endpoint status. MLModelType - Sets the search criteria to MLModel type: - // binary, regression, or multi-class. Algorithm - Sets the search criteria - // to the algorithm that the MLModel uses. TrainingDataURI - Sets the search - // criteria to the data file(s) used in training a MLModel. The URL can identify - // either a file or an Amazon Simple Storage Service (Amazon S3) bucket or directory. + // * CreatedAt - Sets the search criteria to MLModel creation date. + // * Status - Sets the search criteria to MLModel status. + // * Name - Sets the search criteria to the contents of MLModelName. + // * IAMUser - Sets the search criteria to the user account that invoked + // the MLModel creation. + // * TrainingDataSourceId - Sets the search criteria to the DataSource used + // to train one or more MLModel. + // * RealtimeEndpointStatus - Sets the search criteria to the MLModel real-time + // endpoint status. + // * MLModelType - Sets the search criteria to MLModel type: binary, regression, + // or multi-class. + // * Algorithm - Sets the search criteria to the algorithm that the MLModel + // uses. + // * TrainingDataURI - Sets the search criteria to the data file(s) used + // in training a MLModel. The URL can identify either a file or an Amazon + // Simple Storage Service (Amazon S3) bucket or directory. FilterVariable *string `type:"string" enum:"MLModelFilterVariable"` // The greater than or equal to operator. The MLModel results will have FilterVariable @@ -4045,22 +4771,23 @@ type DescribeMLModelsInput struct { // A string that is found at the beginning of a variable, such as Name or Id. // - // For example, an MLModel could have the Name 2014-09-09-HolidayGiftMailer. + // For example, an MLModel could have the Name2014-09-09-HolidayGiftMailer. // To search for this MLModel, select Name for the FilterVariable and any of // the following strings for the Prefix: // - // 2014-09 + // * 2014-09 // - // 2014-09-09 + // * 2014-09-09 // - // 2014-09-09-Holiday + // * 2014-09-09-Holiday Prefix *string `type:"string"` // A two-value parameter that determines the sequence of the resulting list // of MLModel. // - // asc - Arranges the list in ascending order (A-Z, 0-9). dsc - Arranges - // the list in descending order (Z-A, 9-0). Results are sorted by FilterVariable. + // * asc - Arranges the list in ascending order (A-Z, 0-9). + // * dsc - Arranges the list in descending order (Z-A, 9-0). + // Results are sorted by FilterVariable. SortOrder *string `type:"string" enum:"SortOrder"` } @@ -4087,6 +4814,72 @@ func (s *DescribeMLModelsInput) Validate() error { return nil } +// SetEQ sets the EQ field's value. +func (s *DescribeMLModelsInput) SetEQ(v string) *DescribeMLModelsInput { + s.EQ = &v + return s +} + +// SetFilterVariable sets the FilterVariable field's value. +func (s *DescribeMLModelsInput) SetFilterVariable(v string) *DescribeMLModelsInput { + s.FilterVariable = &v + return s +} + +// SetGE sets the GE field's value. +func (s *DescribeMLModelsInput) SetGE(v string) *DescribeMLModelsInput { + s.GE = &v + return s +} + +// SetGT sets the GT field's value. +func (s *DescribeMLModelsInput) SetGT(v string) *DescribeMLModelsInput { + s.GT = &v + return s +} + +// SetLE sets the LE field's value. +func (s *DescribeMLModelsInput) SetLE(v string) *DescribeMLModelsInput { + s.LE = &v + return s +} + +// SetLT sets the LT field's value. +func (s *DescribeMLModelsInput) SetLT(v string) *DescribeMLModelsInput { + s.LT = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeMLModelsInput) SetLimit(v int64) *DescribeMLModelsInput { + s.Limit = &v + return s +} + +// SetNE sets the NE field's value. +func (s *DescribeMLModelsInput) SetNE(v string) *DescribeMLModelsInput { + s.NE = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMLModelsInput) SetNextToken(v string) *DescribeMLModelsInput { + s.NextToken = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *DescribeMLModelsInput) SetPrefix(v string) *DescribeMLModelsInput { + s.Prefix = &v + return s +} + +// SetSortOrder sets the SortOrder field's value. +func (s *DescribeMLModelsInput) SetSortOrder(v string) *DescribeMLModelsInput { + s.SortOrder = &v + return s +} + // Represents the output of a DescribeMLModels operation. The content is essentially // a list of MLModel. type DescribeMLModelsOutput struct { @@ -4110,6 +4903,18 @@ func (s DescribeMLModelsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeMLModelsOutput) SetNextToken(v string) *DescribeMLModelsOutput { + s.NextToken = &v + return s +} + +// SetResults sets the Results field's value. +func (s *DescribeMLModelsOutput) SetResults(v []*MLModel) *DescribeMLModelsOutput { + s.Results = v + return s +} + type DescribeTagsInput struct { _ struct{} `type:"structure"` @@ -4153,6 +4958,18 @@ func (s *DescribeTagsInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *DescribeTagsInput) SetResourceId(v string) *DescribeTagsInput { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *DescribeTagsInput) SetResourceType(v string) *DescribeTagsInput { + s.ResourceType = &v + return s +} + // Amazon ML returns the following elements. type DescribeTagsOutput struct { _ struct{} `type:"structure"` @@ -4177,10 +4994,28 @@ func (s DescribeTagsOutput) GoString() string { return s.String() } +// SetResourceId sets the ResourceId field's value. +func (s *DescribeTagsOutput) SetResourceId(v string) *DescribeTagsOutput { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *DescribeTagsOutput) SetResourceType(v string) *DescribeTagsOutput { + s.ResourceType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *DescribeTagsOutput) SetTags(v []*Tag) *DescribeTagsOutput { + s.Tags = v + return s +} + // Represents the output of GetEvaluation operation. // -// The content consists of the detailed metadata and data file information -// and the current status of the Evaluation. +// The content consists of the detailed metadata and data file information and +// the current status of the Evaluation. type Evaluation struct { _ struct{} `type:"structure"` @@ -4226,18 +5061,18 @@ type Evaluation struct { // by the DataSource. One of the following metrics is returned, based on the // type of the MLModel: // - // BinaryAUC: A binary MLModel uses the Area Under the Curve (AUC) technique - // to measure performance. + // * BinaryAUC: A binary MLModel uses the Area Under the Curve (AUC) technique + // to measure performance. // - // RegressionRMSE: A regression MLModel uses the Root Mean Square Error (RMSE) - // technique to measure performance. RMSE measures the difference between predicted - // and actual values for a single variable. + // * RegressionRMSE: A regression MLModel uses the Root Mean Square Error + // (RMSE) technique to measure performance. RMSE measures the difference + // between predicted and actual values for a single variable. // - // MulticlassAvgFScore: A multiclass MLModel uses the F1 score technique - // to measure performance. + // * MulticlassAvgFScore: A multiclass MLModel uses the F1 score technique + // to measure performance. // - // For more information about performance metrics, please see the Amazon - // Machine Learning Developer Guide (http://docs.aws.amazon.com/machine-learning/latest/dg). + // For more information about performance metrics, please see the Amazon Machine + // Learning Developer Guide (http://docs.aws.amazon.com/machine-learning/latest/dg). PerformanceMetrics *PerformanceMetrics `type:"structure"` // A timestamp represented in epoch time. @@ -4246,11 +5081,13 @@ type Evaluation struct { // The status of the evaluation. This element can have one of the following // values: // - // PENDING - Amazon Machine Learning (Amazon ML) submitted a request to evaluate - // an MLModel. INPROGRESS - The evaluation is underway. FAILED - The request - // to evaluate an MLModel did not run to completion. It is not usable. COMPLETED - // - The evaluation process completed successfully. DELETED - The Evaluation - // is marked as deleted. It is not usable. + // * PENDING - Amazon Machine Learning (Amazon ML) submitted a request to + // evaluate an MLModel. + // * INPROGRESS - The evaluation is underway. + // * FAILED - The request to evaluate an MLModel did not run to completion. + // It is not usable. + // * COMPLETED - The evaluation process completed successfully. + // * DELETED - The Evaluation is marked as deleted. It is not usable. Status *string `type:"string" enum:"EntityStatus"` } @@ -4264,6 +5101,90 @@ func (s Evaluation) GoString() string { return s.String() } +// SetComputeTime sets the ComputeTime field's value. +func (s *Evaluation) SetComputeTime(v int64) *Evaluation { + s.ComputeTime = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Evaluation) SetCreatedAt(v time.Time) *Evaluation { + s.CreatedAt = &v + return s +} + +// SetCreatedByIamUser sets the CreatedByIamUser field's value. +func (s *Evaluation) SetCreatedByIamUser(v string) *Evaluation { + s.CreatedByIamUser = &v + return s +} + +// SetEvaluationDataSourceId sets the EvaluationDataSourceId field's value. +func (s *Evaluation) SetEvaluationDataSourceId(v string) *Evaluation { + s.EvaluationDataSourceId = &v + return s +} + +// SetEvaluationId sets the EvaluationId field's value. +func (s *Evaluation) SetEvaluationId(v string) *Evaluation { + s.EvaluationId = &v + return s +} + +// SetFinishedAt sets the FinishedAt field's value. +func (s *Evaluation) SetFinishedAt(v time.Time) *Evaluation { + s.FinishedAt = &v + return s +} + +// SetInputDataLocationS3 sets the InputDataLocationS3 field's value. +func (s *Evaluation) SetInputDataLocationS3(v string) *Evaluation { + s.InputDataLocationS3 = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *Evaluation) SetLastUpdatedAt(v time.Time) *Evaluation { + s.LastUpdatedAt = &v + return s +} + +// SetMLModelId sets the MLModelId field's value. +func (s *Evaluation) SetMLModelId(v string) *Evaluation { + s.MLModelId = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *Evaluation) SetMessage(v string) *Evaluation { + s.Message = &v + return s +} + +// SetName sets the Name field's value. +func (s *Evaluation) SetName(v string) *Evaluation { + s.Name = &v + return s +} + +// SetPerformanceMetrics sets the PerformanceMetrics field's value. +func (s *Evaluation) SetPerformanceMetrics(v *PerformanceMetrics) *Evaluation { + s.PerformanceMetrics = v + return s +} + +// SetStartedAt sets the StartedAt field's value. +func (s *Evaluation) SetStartedAt(v time.Time) *Evaluation { + s.StartedAt = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Evaluation) SetStatus(v string) *Evaluation { + s.Status = &v + return s +} + type GetBatchPredictionInput struct { _ struct{} `type:"structure"` @@ -4299,6 +5220,12 @@ func (s *GetBatchPredictionInput) Validate() error { return nil } +// SetBatchPredictionId sets the BatchPredictionId field's value. +func (s *GetBatchPredictionInput) SetBatchPredictionId(v string) *GetBatchPredictionInput { + s.BatchPredictionId = &v + return s +} + // Represents the output of a GetBatchPrediction operation and describes a BatchPrediction. type GetBatchPredictionOutput struct { _ struct{} `type:"structure"` @@ -4367,11 +5294,13 @@ type GetBatchPredictionOutput struct { // The status of the BatchPrediction, which can be one of the following values: // - // PENDING - Amazon Machine Learning (Amazon ML) submitted a request to generate - // batch predictions. INPROGRESS - The batch predictions are in progress. - // FAILED - The request to perform a batch prediction did not run to completion. - // It is not usable. COMPLETED - The batch prediction process completed successfully. - // DELETED - The BatchPrediction is marked as deleted. It is not usable. + // * PENDING - Amazon Machine Learning (Amazon ML) submitted a request to + // generate batch predictions. + // * INPROGRESS - The batch predictions are in progress. + // * FAILED - The request to perform a batch prediction did not run to completion. + // It is not usable. + // * COMPLETED - The batch prediction process completed successfully. + // * DELETED - The BatchPrediction is marked as deleted. It is not usable. Status *string `type:"string" enum:"EntityStatus"` // The number of total records that Amazon Machine Learning saw while processing @@ -4389,6 +5318,108 @@ func (s GetBatchPredictionOutput) GoString() string { return s.String() } +// SetBatchPredictionDataSourceId sets the BatchPredictionDataSourceId field's value. +func (s *GetBatchPredictionOutput) SetBatchPredictionDataSourceId(v string) *GetBatchPredictionOutput { + s.BatchPredictionDataSourceId = &v + return s +} + +// SetBatchPredictionId sets the BatchPredictionId field's value. +func (s *GetBatchPredictionOutput) SetBatchPredictionId(v string) *GetBatchPredictionOutput { + s.BatchPredictionId = &v + return s +} + +// SetComputeTime sets the ComputeTime field's value. +func (s *GetBatchPredictionOutput) SetComputeTime(v int64) *GetBatchPredictionOutput { + s.ComputeTime = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *GetBatchPredictionOutput) SetCreatedAt(v time.Time) *GetBatchPredictionOutput { + s.CreatedAt = &v + return s +} + +// SetCreatedByIamUser sets the CreatedByIamUser field's value. +func (s *GetBatchPredictionOutput) SetCreatedByIamUser(v string) *GetBatchPredictionOutput { + s.CreatedByIamUser = &v + return s +} + +// SetFinishedAt sets the FinishedAt field's value. +func (s *GetBatchPredictionOutput) SetFinishedAt(v time.Time) *GetBatchPredictionOutput { + s.FinishedAt = &v + return s +} + +// SetInputDataLocationS3 sets the InputDataLocationS3 field's value. +func (s *GetBatchPredictionOutput) SetInputDataLocationS3(v string) *GetBatchPredictionOutput { + s.InputDataLocationS3 = &v + return s +} + +// SetInvalidRecordCount sets the InvalidRecordCount field's value. +func (s *GetBatchPredictionOutput) SetInvalidRecordCount(v int64) *GetBatchPredictionOutput { + s.InvalidRecordCount = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *GetBatchPredictionOutput) SetLastUpdatedAt(v time.Time) *GetBatchPredictionOutput { + s.LastUpdatedAt = &v + return s +} + +// SetLogUri sets the LogUri field's value. +func (s *GetBatchPredictionOutput) SetLogUri(v string) *GetBatchPredictionOutput { + s.LogUri = &v + return s +} + +// SetMLModelId sets the MLModelId field's value. +func (s *GetBatchPredictionOutput) SetMLModelId(v string) *GetBatchPredictionOutput { + s.MLModelId = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *GetBatchPredictionOutput) SetMessage(v string) *GetBatchPredictionOutput { + s.Message = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetBatchPredictionOutput) SetName(v string) *GetBatchPredictionOutput { + s.Name = &v + return s +} + +// SetOutputUri sets the OutputUri field's value. +func (s *GetBatchPredictionOutput) SetOutputUri(v string) *GetBatchPredictionOutput { + s.OutputUri = &v + return s +} + +// SetStartedAt sets the StartedAt field's value. +func (s *GetBatchPredictionOutput) SetStartedAt(v time.Time) *GetBatchPredictionOutput { + s.StartedAt = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetBatchPredictionOutput) SetStatus(v string) *GetBatchPredictionOutput { + s.Status = &v + return s +} + +// SetTotalRecordCount sets the TotalRecordCount field's value. +func (s *GetBatchPredictionOutput) SetTotalRecordCount(v int64) *GetBatchPredictionOutput { + s.TotalRecordCount = &v + return s +} + type GetDataSourceInput struct { _ struct{} `type:"structure"` @@ -4431,6 +5462,18 @@ func (s *GetDataSourceInput) Validate() error { return nil } +// SetDataSourceId sets the DataSourceId field's value. +func (s *GetDataSourceInput) SetDataSourceId(v string) *GetDataSourceInput { + s.DataSourceId = &v + return s +} + +// SetVerbose sets the Verbose field's value. +func (s *GetDataSourceInput) SetVerbose(v bool) *GetDataSourceInput { + s.Verbose = &v + return s +} + // Represents the output of a GetDataSource operation and describes a DataSource. type GetDataSourceOutput struct { _ struct{} `type:"structure"` @@ -4471,7 +5514,7 @@ type GetDataSourceOutput struct { // The schema used by all of the data files of this DataSource. // - // Note This parameter is provided as part of the verbose format. + // NoteThis parameter is provided as part of the verbose format. DataSourceSchema *string `type:"string"` // The epoch time when Amazon Machine Learning marked the DataSource as COMPLETED @@ -4513,11 +5556,12 @@ type GetDataSourceOutput struct { // The current status of the DataSource. This element can have one of the following // values: // - // PENDING - Amazon ML submitted a request to create a DataSource. INPROGRESS - // - The creation process is underway. FAILED - The request to create a DataSource - // did not run to completion. It is not usable. COMPLETED - The creation process - // completed successfully. DELETED - The DataSource is marked as deleted. It - // is not usable. + // * PENDING - Amazon ML submitted a request to create a DataSource. + // * INPROGRESS - The creation process is underway. + // * FAILED - The request to create a DataSource did not run to completion. + // It is not usable. + // * COMPLETED - The creation process completed successfully. + // * DELETED - The DataSource is marked as deleted. It is not usable. Status *string `type:"string" enum:"EntityStatus"` } @@ -4531,6 +5575,126 @@ func (s GetDataSourceOutput) GoString() string { return s.String() } +// SetComputeStatistics sets the ComputeStatistics field's value. +func (s *GetDataSourceOutput) SetComputeStatistics(v bool) *GetDataSourceOutput { + s.ComputeStatistics = &v + return s +} + +// SetComputeTime sets the ComputeTime field's value. +func (s *GetDataSourceOutput) SetComputeTime(v int64) *GetDataSourceOutput { + s.ComputeTime = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *GetDataSourceOutput) SetCreatedAt(v time.Time) *GetDataSourceOutput { + s.CreatedAt = &v + return s +} + +// SetCreatedByIamUser sets the CreatedByIamUser field's value. +func (s *GetDataSourceOutput) SetCreatedByIamUser(v string) *GetDataSourceOutput { + s.CreatedByIamUser = &v + return s +} + +// SetDataLocationS3 sets the DataLocationS3 field's value. +func (s *GetDataSourceOutput) SetDataLocationS3(v string) *GetDataSourceOutput { + s.DataLocationS3 = &v + return s +} + +// SetDataRearrangement sets the DataRearrangement field's value. +func (s *GetDataSourceOutput) SetDataRearrangement(v string) *GetDataSourceOutput { + s.DataRearrangement = &v + return s +} + +// SetDataSizeInBytes sets the DataSizeInBytes field's value. +func (s *GetDataSourceOutput) SetDataSizeInBytes(v int64) *GetDataSourceOutput { + s.DataSizeInBytes = &v + return s +} + +// SetDataSourceId sets the DataSourceId field's value. +func (s *GetDataSourceOutput) SetDataSourceId(v string) *GetDataSourceOutput { + s.DataSourceId = &v + return s +} + +// SetDataSourceSchema sets the DataSourceSchema field's value. +func (s *GetDataSourceOutput) SetDataSourceSchema(v string) *GetDataSourceOutput { + s.DataSourceSchema = &v + return s +} + +// SetFinishedAt sets the FinishedAt field's value. +func (s *GetDataSourceOutput) SetFinishedAt(v time.Time) *GetDataSourceOutput { + s.FinishedAt = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *GetDataSourceOutput) SetLastUpdatedAt(v time.Time) *GetDataSourceOutput { + s.LastUpdatedAt = &v + return s +} + +// SetLogUri sets the LogUri field's value. +func (s *GetDataSourceOutput) SetLogUri(v string) *GetDataSourceOutput { + s.LogUri = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *GetDataSourceOutput) SetMessage(v string) *GetDataSourceOutput { + s.Message = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetDataSourceOutput) SetName(v string) *GetDataSourceOutput { + s.Name = &v + return s +} + +// SetNumberOfFiles sets the NumberOfFiles field's value. +func (s *GetDataSourceOutput) SetNumberOfFiles(v int64) *GetDataSourceOutput { + s.NumberOfFiles = &v + return s +} + +// SetRDSMetadata sets the RDSMetadata field's value. +func (s *GetDataSourceOutput) SetRDSMetadata(v *RDSMetadata) *GetDataSourceOutput { + s.RDSMetadata = v + return s +} + +// SetRedshiftMetadata sets the RedshiftMetadata field's value. +func (s *GetDataSourceOutput) SetRedshiftMetadata(v *RedshiftMetadata) *GetDataSourceOutput { + s.RedshiftMetadata = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *GetDataSourceOutput) SetRoleARN(v string) *GetDataSourceOutput { + s.RoleARN = &v + return s +} + +// SetStartedAt sets the StartedAt field's value. +func (s *GetDataSourceOutput) SetStartedAt(v time.Time) *GetDataSourceOutput { + s.StartedAt = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetDataSourceOutput) SetStatus(v string) *GetDataSourceOutput { + s.Status = &v + return s +} + type GetEvaluationInput struct { _ struct{} `type:"structure"` @@ -4567,6 +5731,12 @@ func (s *GetEvaluationInput) Validate() error { return nil } +// SetEvaluationId sets the EvaluationId field's value. +func (s *GetEvaluationInput) SetEvaluationId(v string) *GetEvaluationInput { + s.EvaluationId = &v + return s +} + // Represents the output of a GetEvaluation operation and describes an Evaluation. type GetEvaluationOutput struct { _ struct{} `type:"structure"` @@ -4610,53 +5780,145 @@ type GetEvaluationOutput struct { // The ID of the MLModel that was the focus of the evaluation. MLModelId *string `min:"1" type:"string"` - // A description of the most recent details about evaluating the MLModel. - Message *string `type:"string"` + // A description of the most recent details about evaluating the MLModel. + Message *string `type:"string"` + + // A user-supplied name or description of the Evaluation. + Name *string `type:"string"` + + // Measurements of how well the MLModel performed using observations referenced + // by the DataSource. One of the following metric is returned based on the type + // of the MLModel: + // + // * BinaryAUC: A binary MLModel uses the Area Under the Curve (AUC) technique + // to measure performance. + // + // * RegressionRMSE: A regression MLModel uses the Root Mean Square Error + // (RMSE) technique to measure performance. RMSE measures the difference + // between predicted and actual values for a single variable. + // + // * MulticlassAvgFScore: A multiclass MLModel uses the F1 score technique + // to measure performance. + // + // For more information about performance metrics, please see the Amazon Machine + // Learning Developer Guide (http://docs.aws.amazon.com/machine-learning/latest/dg). + PerformanceMetrics *PerformanceMetrics `type:"structure"` + + // The epoch time when Amazon Machine Learning marked the Evaluation as INPROGRESS. + // StartedAt isn't available if the Evaluation is in the PENDING state. + StartedAt *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The status of the evaluation. This element can have one of the following + // values: + // + // * PENDING - Amazon Machine Language (Amazon ML) submitted a request to + // evaluate an MLModel. + // * INPROGRESS - The evaluation is underway. + // * FAILED - The request to evaluate an MLModel did not run to completion. + // It is not usable. + // * COMPLETED - The evaluation process completed successfully. + // * DELETED - The Evaluation is marked as deleted. It is not usable. + Status *string `type:"string" enum:"EntityStatus"` +} + +// String returns the string representation +func (s GetEvaluationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetEvaluationOutput) GoString() string { + return s.String() +} + +// SetComputeTime sets the ComputeTime field's value. +func (s *GetEvaluationOutput) SetComputeTime(v int64) *GetEvaluationOutput { + s.ComputeTime = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *GetEvaluationOutput) SetCreatedAt(v time.Time) *GetEvaluationOutput { + s.CreatedAt = &v + return s +} + +// SetCreatedByIamUser sets the CreatedByIamUser field's value. +func (s *GetEvaluationOutput) SetCreatedByIamUser(v string) *GetEvaluationOutput { + s.CreatedByIamUser = &v + return s +} + +// SetEvaluationDataSourceId sets the EvaluationDataSourceId field's value. +func (s *GetEvaluationOutput) SetEvaluationDataSourceId(v string) *GetEvaluationOutput { + s.EvaluationDataSourceId = &v + return s +} + +// SetEvaluationId sets the EvaluationId field's value. +func (s *GetEvaluationOutput) SetEvaluationId(v string) *GetEvaluationOutput { + s.EvaluationId = &v + return s +} + +// SetFinishedAt sets the FinishedAt field's value. +func (s *GetEvaluationOutput) SetFinishedAt(v time.Time) *GetEvaluationOutput { + s.FinishedAt = &v + return s +} + +// SetInputDataLocationS3 sets the InputDataLocationS3 field's value. +func (s *GetEvaluationOutput) SetInputDataLocationS3(v string) *GetEvaluationOutput { + s.InputDataLocationS3 = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *GetEvaluationOutput) SetLastUpdatedAt(v time.Time) *GetEvaluationOutput { + s.LastUpdatedAt = &v + return s +} + +// SetLogUri sets the LogUri field's value. +func (s *GetEvaluationOutput) SetLogUri(v string) *GetEvaluationOutput { + s.LogUri = &v + return s +} - // A user-supplied name or description of the Evaluation. - Name *string `type:"string"` +// SetMLModelId sets the MLModelId field's value. +func (s *GetEvaluationOutput) SetMLModelId(v string) *GetEvaluationOutput { + s.MLModelId = &v + return s +} - // Measurements of how well the MLModel performed using observations referenced - // by the DataSource. One of the following metric is returned based on the type - // of the MLModel: - // - // BinaryAUC: A binary MLModel uses the Area Under the Curve (AUC) technique - // to measure performance. - // - // RegressionRMSE: A regression MLModel uses the Root Mean Square Error (RMSE) - // technique to measure performance. RMSE measures the difference between predicted - // and actual values for a single variable. - // - // MulticlassAvgFScore: A multiclass MLModel uses the F1 score technique - // to measure performance. - // - // For more information about performance metrics, please see the Amazon - // Machine Learning Developer Guide (http://docs.aws.amazon.com/machine-learning/latest/dg). - PerformanceMetrics *PerformanceMetrics `type:"structure"` +// SetMessage sets the Message field's value. +func (s *GetEvaluationOutput) SetMessage(v string) *GetEvaluationOutput { + s.Message = &v + return s +} - // The epoch time when Amazon Machine Learning marked the Evaluation as INPROGRESS. - // StartedAt isn't available if the Evaluation is in the PENDING state. - StartedAt *time.Time `type:"timestamp" timestampFormat:"unix"` +// SetName sets the Name field's value. +func (s *GetEvaluationOutput) SetName(v string) *GetEvaluationOutput { + s.Name = &v + return s +} - // The status of the evaluation. This element can have one of the following - // values: - // - // PENDING - Amazon Machine Language (Amazon ML) submitted a request to evaluate - // an MLModel. INPROGRESS - The evaluation is underway. FAILED - The request - // to evaluate an MLModel did not run to completion. It is not usable. COMPLETED - // - The evaluation process completed successfully. DELETED - The Evaluation - // is marked as deleted. It is not usable. - Status *string `type:"string" enum:"EntityStatus"` +// SetPerformanceMetrics sets the PerformanceMetrics field's value. +func (s *GetEvaluationOutput) SetPerformanceMetrics(v *PerformanceMetrics) *GetEvaluationOutput { + s.PerformanceMetrics = v + return s } -// String returns the string representation -func (s GetEvaluationOutput) String() string { - return awsutil.Prettify(s) +// SetStartedAt sets the StartedAt field's value. +func (s *GetEvaluationOutput) SetStartedAt(v time.Time) *GetEvaluationOutput { + s.StartedAt = &v + return s } -// GoString returns the string representation -func (s GetEvaluationOutput) GoString() string { - return s.String() +// SetStatus sets the Status field's value. +func (s *GetEvaluationOutput) SetStatus(v string) *GetEvaluationOutput { + s.Status = &v + return s } type GetMLModelInput struct { @@ -4701,6 +5963,18 @@ func (s *GetMLModelInput) Validate() error { return nil } +// SetMLModelId sets the MLModelId field's value. +func (s *GetMLModelInput) SetMLModelId(v string) *GetMLModelInput { + s.MLModelId = &v + return s +} + +// SetVerbose sets the Verbose field's value. +func (s *GetMLModelInput) SetVerbose(v bool) *GetMLModelInput { + s.Verbose = &v + return s +} + // Represents the output of a GetMLModel operation, and provides detailed information // about a MLModel. type GetMLModelOutput struct { @@ -4743,10 +6017,12 @@ type GetMLModelOutput struct { // Identifies the MLModel category. The following are the available types: // - // REGRESSION -- Produces a numeric result. For example, "What price should - // a house be listed at?" BINARY -- Produces one of two possible results. For - // example, "Is this an e-commerce website?" MULTICLASS -- Produces one of several - // possible results. For example, "Is this a HIGH, LOW or MEDIUM risk trade?" + // * REGRESSION -- Produces a numeric result. For example, "What price should + // a house be listed at?" + // * BINARY -- Produces one of two possible results. For example, "Is this + // an e-commerce website?" + // * MULTICLASS -- Produces one of several possible results. For example, + // "Is this a HIGH, LOW or MEDIUM risk trade?" MLModelType *string `type:"string" enum:"MLModelType"` // A description of the most recent details about accessing the MLModel. @@ -4759,20 +6035,20 @@ type GetMLModelOutput struct { // information about the observation data to use during training, and manipulations // to perform on the observation data during training. // - // Note This parameter is provided as part of the verbose format. + // NoteThis parameter is provided as part of the verbose format. Recipe *string `type:"string"` // The schema used by all of the data files referenced by the DataSource. // - // Note This parameter is provided as part of the verbose format. + // NoteThis parameter is provided as part of the verbose format. Schema *string `type:"string"` - // The scoring threshold is used in binary classification MLModel models. It + // The scoring threshold is used in binary classification MLModelmodels. It // marks the boundary between a positive prediction and a negative prediction. // - // Output values greater than or equal to the threshold receive a positive - // result from the MLModel, such as true. Output values less than the threshold - // receive a negative response from the MLModel, such as false. + // Output values greater than or equal to the threshold receive a positive result + // from the MLModel, such as true. Output values less than the threshold receive + // a negative response from the MLModel, such as false. ScoreThreshold *float64 `type:"float"` // The time of the most recent edit to the ScoreThreshold. The time is expressed @@ -4789,11 +6065,13 @@ type GetMLModelOutput struct { // The current status of the MLModel. This element can have one of the following // values: // - // PENDING - Amazon Machine Learning (Amazon ML) submitted a request to describe - // a MLModel. INPROGRESS - The request is processing. FAILED - The request - // did not run to completion. The ML model isn't usable. COMPLETED - The request - // completed successfully. DELETED - The MLModel is marked as deleted. It isn't - // usable. + // * PENDING - Amazon Machine Learning (Amazon ML) submitted a request to + // describe a MLModel. + // * INPROGRESS - The request is processing. + // * FAILED - The request did not run to completion. The ML model isn't usable. + // + // * COMPLETED - The request completed successfully. + // * DELETED - The MLModel is marked as deleted. It isn't usable. Status *string `type:"string" enum:"EntityStatus"` // The ID of the training DataSource. @@ -4804,38 +6082,39 @@ type GetMLModelOutput struct { // // The following is the current set of training parameters: // - // sgd.maxMLModelSizeInBytes - The maximum allowed size of the model. Depending - // on the input data, the size of the model might affect its performance. + // * sgd.maxMLModelSizeInBytes - The maximum allowed size of the model. Depending + // on the input data, the size of the model might affect its performance. // // The value is an integer that ranges from 100000 to 2147483648. The default - // value is 33554432. + // value is 33554432. // - // sgd.maxPasses - The number of times that the training process traverses - // the observations to build the MLModel. The value is an integer that ranges - // from 1 to 10000. The default value is 10. + // * sgd.maxPasses - The number of times that the training process traverses + // the observations to build the MLModel. The value is an integer that ranges + // from 1 to 10000. The default value is 10. // - // sgd.shuffleType - Whether Amazon ML shuffles the training data. Shuffling - // data improves a model's ability to find the optimal solution for a variety - // of data types. The valid values are auto and none. The default value is none. - // We strongly recommend that you shuffle your data. + // * sgd.shuffleType - Whether Amazon ML shuffles the training data. Shuffling + // data improves a model's ability to find the optimal solution for a variety + // of data types. The valid values are auto and none. The default value is + // none. We strongly recommend that you shuffle your data. // - // sgd.l1RegularizationAmount - The coefficient regularization L1 norm. It - // controls overfitting the data by penalizing large coefficients. This tends - // to drive coefficients to zero, resulting in a sparse feature set. If you - // use this parameter, start by specifying a small value, such as 1.0E-08. + // * sgd.l1RegularizationAmount - The coefficient regularization L1 norm. + // It controls overfitting the data by penalizing large coefficients. This + // tends to drive coefficients to zero, resulting in a sparse feature set. + // If you use this parameter, start by specifying a small value, such as + // 1.0E-08. // // The value is a double that ranges from 0 to MAX_DOUBLE. The default is to - // not use L1 normalization. This parameter can't be used when L2 is specified. - // Use this parameter sparingly. + // not use L1 normalization. This parameter can't be used when L2 is specified. + // Use this parameter sparingly. // - // sgd.l2RegularizationAmount - The coefficient regularization L2 norm. It - // controls overfitting the data by penalizing large coefficients. This tends - // to drive coefficients to small, nonzero values. If you use this parameter, - // start by specifying a small value, such as 1.0E-08. + // * sgd.l2RegularizationAmount - The coefficient regularization L2 norm. + // It controls overfitting the data by penalizing large coefficients. This + // tends to drive coefficients to small, nonzero values. If you use this + // parameter, start by specifying a small value, such as 1.0E-08. // // The value is a double that ranges from 0 to MAX_DOUBLE. The default is to - // not use L2 normalization. This parameter can't be used when L1 is specified. - // Use this parameter sparingly. + // not use L2 normalization. This parameter can't be used when L1 is specified. + // Use this parameter sparingly. TrainingParameters map[string]*string `type:"map"` } @@ -4849,17 +6128,143 @@ func (s GetMLModelOutput) GoString() string { return s.String() } +// SetComputeTime sets the ComputeTime field's value. +func (s *GetMLModelOutput) SetComputeTime(v int64) *GetMLModelOutput { + s.ComputeTime = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *GetMLModelOutput) SetCreatedAt(v time.Time) *GetMLModelOutput { + s.CreatedAt = &v + return s +} + +// SetCreatedByIamUser sets the CreatedByIamUser field's value. +func (s *GetMLModelOutput) SetCreatedByIamUser(v string) *GetMLModelOutput { + s.CreatedByIamUser = &v + return s +} + +// SetEndpointInfo sets the EndpointInfo field's value. +func (s *GetMLModelOutput) SetEndpointInfo(v *RealtimeEndpointInfo) *GetMLModelOutput { + s.EndpointInfo = v + return s +} + +// SetFinishedAt sets the FinishedAt field's value. +func (s *GetMLModelOutput) SetFinishedAt(v time.Time) *GetMLModelOutput { + s.FinishedAt = &v + return s +} + +// SetInputDataLocationS3 sets the InputDataLocationS3 field's value. +func (s *GetMLModelOutput) SetInputDataLocationS3(v string) *GetMLModelOutput { + s.InputDataLocationS3 = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *GetMLModelOutput) SetLastUpdatedAt(v time.Time) *GetMLModelOutput { + s.LastUpdatedAt = &v + return s +} + +// SetLogUri sets the LogUri field's value. +func (s *GetMLModelOutput) SetLogUri(v string) *GetMLModelOutput { + s.LogUri = &v + return s +} + +// SetMLModelId sets the MLModelId field's value. +func (s *GetMLModelOutput) SetMLModelId(v string) *GetMLModelOutput { + s.MLModelId = &v + return s +} + +// SetMLModelType sets the MLModelType field's value. +func (s *GetMLModelOutput) SetMLModelType(v string) *GetMLModelOutput { + s.MLModelType = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *GetMLModelOutput) SetMessage(v string) *GetMLModelOutput { + s.Message = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetMLModelOutput) SetName(v string) *GetMLModelOutput { + s.Name = &v + return s +} + +// SetRecipe sets the Recipe field's value. +func (s *GetMLModelOutput) SetRecipe(v string) *GetMLModelOutput { + s.Recipe = &v + return s +} + +// SetSchema sets the Schema field's value. +func (s *GetMLModelOutput) SetSchema(v string) *GetMLModelOutput { + s.Schema = &v + return s +} + +// SetScoreThreshold sets the ScoreThreshold field's value. +func (s *GetMLModelOutput) SetScoreThreshold(v float64) *GetMLModelOutput { + s.ScoreThreshold = &v + return s +} + +// SetScoreThresholdLastUpdatedAt sets the ScoreThresholdLastUpdatedAt field's value. +func (s *GetMLModelOutput) SetScoreThresholdLastUpdatedAt(v time.Time) *GetMLModelOutput { + s.ScoreThresholdLastUpdatedAt = &v + return s +} + +// SetSizeInBytes sets the SizeInBytes field's value. +func (s *GetMLModelOutput) SetSizeInBytes(v int64) *GetMLModelOutput { + s.SizeInBytes = &v + return s +} + +// SetStartedAt sets the StartedAt field's value. +func (s *GetMLModelOutput) SetStartedAt(v time.Time) *GetMLModelOutput { + s.StartedAt = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetMLModelOutput) SetStatus(v string) *GetMLModelOutput { + s.Status = &v + return s +} + +// SetTrainingDataSourceId sets the TrainingDataSourceId field's value. +func (s *GetMLModelOutput) SetTrainingDataSourceId(v string) *GetMLModelOutput { + s.TrainingDataSourceId = &v + return s +} + +// SetTrainingParameters sets the TrainingParameters field's value. +func (s *GetMLModelOutput) SetTrainingParameters(v map[string]*string) *GetMLModelOutput { + s.TrainingParameters = v + return s +} + // Represents the output of a GetMLModel operation. // -// The content consists of the detailed metadata and the current status of -// the MLModel. +// The content consists of the detailed metadata and the current status of the +// MLModel. type MLModel struct { _ struct{} `type:"structure"` // The algorithm used to train the MLModel. The following algorithm is supported: // - // SGD -- Stochastic gradient descent. The goal of SGD is to minimize the - // gradient of the loss function. + // * SGD -- Stochastic gradient descent. The goal of SGD is to minimize the + // gradient of the loss function. Algorithm *string `type:"string" enum:"Algorithm"` // Long integer type that is a 64-bit signed number. @@ -4892,11 +6297,12 @@ type MLModel struct { // Identifies the MLModel category. The following are the available types: // - // REGRESSION - Produces a numeric result. For example, "What price should - // a house be listed at?" BINARY - Produces one of two possible results. For - // example, "Is this a child-friendly web site?". MULTICLASS - Produces one - // of several possible results. For example, "Is this a HIGH-, LOW-, or MEDIUM-risk - // trade?". + // * REGRESSION - Produces a numeric result. For example, "What price should + // a house be listed at?" + // * BINARY - Produces one of two possible results. For example, "Is this + // a child-friendly web site?". + // * MULTICLASS - Produces one of several possible results. For example, + // "Is this a HIGH-, LOW-, or MEDIUM-risk trade?". MLModelType *string `type:"string" enum:"MLModelType"` // A description of the most recent details about accessing the MLModel. @@ -4920,11 +6326,13 @@ type MLModel struct { // The current status of an MLModel. This element can have one of the following // values: // - // PENDING - Amazon Machine Learning (Amazon ML) submitted a request to create - // an MLModel. INPROGRESS - The creation process is underway. FAILED - The - // request to create an MLModel didn't run to completion. The model isn't usable. - // COMPLETED - The creation process completed successfully. DELETED - The - // MLModel is marked as deleted. It isn't usable. + // * PENDING - Amazon Machine Learning (Amazon ML) submitted a request to + // create an MLModel. + // * INPROGRESS - The creation process is underway. + // * FAILED - The request to create an MLModel didn't run to completion. + // The model isn't usable. + // * COMPLETED - The creation process completed successfully. + // * DELETED - The MLModel is marked as deleted. It isn't usable. Status *string `type:"string" enum:"EntityStatus"` // The ID of the training DataSource. The CreateMLModel operation uses the TrainingDataSourceId. @@ -4935,37 +6343,39 @@ type MLModel struct { // // The following is the current set of training parameters: // - // sgd.maxMLModelSizeInBytes - The maximum allowed size of the model. Depending - // on the input data, the size of the model might affect its performance. + // * sgd.maxMLModelSizeInBytes - The maximum allowed size of the model. Depending + // on the input data, the size of the model might affect its performance. // // The value is an integer that ranges from 100000 to 2147483648. The default - // value is 33554432. + // value is 33554432. // - // sgd.maxPasses - The number of times that the training process traverses - // the observations to build the MLModel. The value is an integer that ranges - // from 1 to 10000. The default value is 10. + // * sgd.maxPasses - The number of times that the training process traverses + // the observations to build the MLModel. The value is an integer that ranges + // from 1 to 10000. The default value is 10. // - // sgd.shuffleType - Whether Amazon ML shuffles the training data. Shuffling - // the data improves a model's ability to find the optimal solution for a variety - // of data types. The valid values are auto and none. The default value is none. + // * sgd.shuffleType - Whether Amazon ML shuffles the training data. Shuffling + // the data improves a model's ability to find the optimal solution for a + // variety of data types. The valid values are auto and none. The default + // value is none. // - // sgd.l1RegularizationAmount - The coefficient regularization L1 norm, which - // controls overfitting the data by penalizing large coefficients. This parameter - // tends to drive coefficients to zero, resulting in sparse feature set. If - // you use this parameter, start by specifying a small value, such as 1.0E-08. + // * sgd.l1RegularizationAmount - The coefficient regularization L1 norm, + // which controls overfitting the data by penalizing large coefficients. + // This parameter tends to drive coefficients to zero, resulting in sparse + // feature set. If you use this parameter, start by specifying a small value, + // such as 1.0E-08. // // The value is a double that ranges from 0 to MAX_DOUBLE. The default is to - // not use L1 normalization. This parameter can't be used when L2 is specified. - // Use this parameter sparingly. + // not use L1 normalization. This parameter can't be used when L2 is specified. + // Use this parameter sparingly. // - // sgd.l2RegularizationAmount - The coefficient regularization L2 norm, which - // controls overfitting the data by penalizing large coefficients. This tends - // to drive coefficients to small, nonzero values. If you use this parameter, - // start by specifying a small value, such as 1.0E-08. + // * sgd.l2RegularizationAmount - The coefficient regularization L2 norm, + // which controls overfitting the data by penalizing large coefficients. + // This tends to drive coefficients to small, nonzero values. If you use + // this parameter, start by specifying a small value, such as 1.0E-08. // // The value is a double that ranges from 0 to MAX_DOUBLE. The default is to - // not use L2 normalization. This parameter can't be used when L1 is specified. - // Use this parameter sparingly. + // not use L2 normalization. This parameter can't be used when L1 is specified. + // Use this parameter sparingly. TrainingParameters map[string]*string `type:"map"` } @@ -4979,21 +6389,135 @@ func (s MLModel) GoString() string { return s.String() } +// SetAlgorithm sets the Algorithm field's value. +func (s *MLModel) SetAlgorithm(v string) *MLModel { + s.Algorithm = &v + return s +} + +// SetComputeTime sets the ComputeTime field's value. +func (s *MLModel) SetComputeTime(v int64) *MLModel { + s.ComputeTime = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *MLModel) SetCreatedAt(v time.Time) *MLModel { + s.CreatedAt = &v + return s +} + +// SetCreatedByIamUser sets the CreatedByIamUser field's value. +func (s *MLModel) SetCreatedByIamUser(v string) *MLModel { + s.CreatedByIamUser = &v + return s +} + +// SetEndpointInfo sets the EndpointInfo field's value. +func (s *MLModel) SetEndpointInfo(v *RealtimeEndpointInfo) *MLModel { + s.EndpointInfo = v + return s +} + +// SetFinishedAt sets the FinishedAt field's value. +func (s *MLModel) SetFinishedAt(v time.Time) *MLModel { + s.FinishedAt = &v + return s +} + +// SetInputDataLocationS3 sets the InputDataLocationS3 field's value. +func (s *MLModel) SetInputDataLocationS3(v string) *MLModel { + s.InputDataLocationS3 = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *MLModel) SetLastUpdatedAt(v time.Time) *MLModel { + s.LastUpdatedAt = &v + return s +} + +// SetMLModelId sets the MLModelId field's value. +func (s *MLModel) SetMLModelId(v string) *MLModel { + s.MLModelId = &v + return s +} + +// SetMLModelType sets the MLModelType field's value. +func (s *MLModel) SetMLModelType(v string) *MLModel { + s.MLModelType = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *MLModel) SetMessage(v string) *MLModel { + s.Message = &v + return s +} + +// SetName sets the Name field's value. +func (s *MLModel) SetName(v string) *MLModel { + s.Name = &v + return s +} + +// SetScoreThreshold sets the ScoreThreshold field's value. +func (s *MLModel) SetScoreThreshold(v float64) *MLModel { + s.ScoreThreshold = &v + return s +} + +// SetScoreThresholdLastUpdatedAt sets the ScoreThresholdLastUpdatedAt field's value. +func (s *MLModel) SetScoreThresholdLastUpdatedAt(v time.Time) *MLModel { + s.ScoreThresholdLastUpdatedAt = &v + return s +} + +// SetSizeInBytes sets the SizeInBytes field's value. +func (s *MLModel) SetSizeInBytes(v int64) *MLModel { + s.SizeInBytes = &v + return s +} + +// SetStartedAt sets the StartedAt field's value. +func (s *MLModel) SetStartedAt(v time.Time) *MLModel { + s.StartedAt = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *MLModel) SetStatus(v string) *MLModel { + s.Status = &v + return s +} + +// SetTrainingDataSourceId sets the TrainingDataSourceId field's value. +func (s *MLModel) SetTrainingDataSourceId(v string) *MLModel { + s.TrainingDataSourceId = &v + return s +} + +// SetTrainingParameters sets the TrainingParameters field's value. +func (s *MLModel) SetTrainingParameters(v map[string]*string) *MLModel { + s.TrainingParameters = v + return s +} + // Measurements of how well the MLModel performed on known observations. One // of the following metrics is returned, based on the type of the MLModel: // -// BinaryAUC: The binary MLModel uses the Area Under the Curve (AUC) technique -// to measure performance. +// * BinaryAUC: The binary MLModel uses the Area Under the Curve (AUC) technique +// to measure performance. // -// RegressionRMSE: The regression MLModel uses the Root Mean Square Error -// (RMSE) technique to measure performance. RMSE measures the difference between -// predicted and actual values for a single variable. +// * RegressionRMSE: The regression MLModel uses the Root Mean Square Error +// (RMSE) technique to measure performance. RMSE measures the difference +// between predicted and actual values for a single variable. // -// MulticlassAvgFScore: The multiclass MLModel uses the F1 score technique -// to measure performance. +// * MulticlassAvgFScore: The multiclass MLModel uses the F1 score technique +// to measure performance. // -// For more information about performance metrics, please see the Amazon -// Machine Learning Developer Guide (http://docs.aws.amazon.com/machine-learning/latest/dg). +// For more information about performance metrics, please see the Amazon Machine +// Learning Developer Guide (http://docs.aws.amazon.com/machine-learning/latest/dg). type PerformanceMetrics struct { _ struct{} `type:"structure"` @@ -5010,6 +6534,12 @@ func (s PerformanceMetrics) GoString() string { return s.String() } +// SetProperties sets the Properties field's value. +func (s *PerformanceMetrics) SetProperties(v map[string]*string) *PerformanceMetrics { + s.Properties = v + return s +} + type PredictInput struct { _ struct{} `type:"structure"` @@ -5059,20 +6589,39 @@ func (s *PredictInput) Validate() error { return nil } +// SetMLModelId sets the MLModelId field's value. +func (s *PredictInput) SetMLModelId(v string) *PredictInput { + s.MLModelId = &v + return s +} + +// SetPredictEndpoint sets the PredictEndpoint field's value. +func (s *PredictInput) SetPredictEndpoint(v string) *PredictInput { + s.PredictEndpoint = &v + return s +} + +// SetRecord sets the Record field's value. +func (s *PredictInput) SetRecord(v map[string]*string) *PredictInput { + s.Record = v + return s +} + type PredictOutput struct { _ struct{} `type:"structure"` // The output from a Predict operation: // - // Details - Contains the following attributes: DetailsAttributes.PREDICTIVE_MODEL_TYPE - // - REGRESSION | BINARY | MULTICLASS DetailsAttributes.ALGORITHM - SGD + // * Details - Contains the following attributes: DetailsAttributes.PREDICTIVE_MODEL_TYPE + // - REGRESSION | BINARY | MULTICLASSDetailsAttributes.ALGORITHM - SGD + // + // * PredictedLabel - Present for either a BINARY or MULTICLASSMLModel request. // - // PredictedLabel - Present for either a BINARY or MULTICLASS MLModel request. // - // PredictedScores - Contains the raw classification score corresponding - // to each label. + // * PredictedScores - Contains the raw classification score corresponding + // to each label. // - // PredictedValue - Present for a REGRESSION MLModel request. + // * PredictedValue - Present for a REGRESSIONMLModel request. Prediction *Prediction `type:"structure"` } @@ -5086,30 +6635,37 @@ func (s PredictOutput) GoString() string { return s.String() } +// SetPrediction sets the Prediction field's value. +func (s *PredictOutput) SetPrediction(v *Prediction) *PredictOutput { + s.Prediction = v + return s +} + // The output from a Predict operation: // -// Details - Contains the following attributes: DetailsAttributes.PREDICTIVE_MODEL_TYPE -// - REGRESSION | BINARY | MULTICLASS DetailsAttributes.ALGORITHM - SGD +// * Details - Contains the following attributes: DetailsAttributes.PREDICTIVE_MODEL_TYPE +// - REGRESSION | BINARY | MULTICLASSDetailsAttributes.ALGORITHM - SGD // -// PredictedLabel - Present for either a BINARY or MULTICLASS MLModel request. +// * PredictedLabel - Present for either a BINARY or MULTICLASSMLModel request. // -// PredictedScores - Contains the raw classification score corresponding -// to each label. // -// PredictedValue - Present for a REGRESSION MLModel request. +// * PredictedScores - Contains the raw classification score corresponding +// to each label. +// +// * PredictedValue - Present for a REGRESSIONMLModel request. type Prediction struct { _ struct{} `type:"structure"` // Provides any additional details regarding the prediction. Details map[string]*string `locationName:"details" type:"map"` - // The prediction label for either a BINARY or MULTICLASS MLModel. + // The prediction label for either a BINARY or MULTICLASSMLModel. PredictedLabel *string `locationName:"predictedLabel" min:"1" type:"string"` // Provides the raw classification score corresponding to each label. PredictedScores map[string]*float64 `locationName:"predictedScores" type:"map"` - // The prediction value for REGRESSION MLModel. + // The prediction value for REGRESSIONMLModel PredictedValue *float64 `locationName:"predictedValue" type:"float"` } @@ -5123,6 +6679,30 @@ func (s Prediction) GoString() string { return s.String() } +// SetDetails sets the Details field's value. +func (s *Prediction) SetDetails(v map[string]*string) *Prediction { + s.Details = v + return s +} + +// SetPredictedLabel sets the PredictedLabel field's value. +func (s *Prediction) SetPredictedLabel(v string) *Prediction { + s.PredictedLabel = &v + return s +} + +// SetPredictedScores sets the PredictedScores field's value. +func (s *Prediction) SetPredictedScores(v map[string]*float64) *Prediction { + s.PredictedScores = v + return s +} + +// SetPredictedValue sets the PredictedValue field's value. +func (s *Prediction) SetPredictedValue(v float64) *Prediction { + s.PredictedValue = &v + return s +} + // The data specification of an Amazon Relational Database Service (Amazon RDS) // DataSource. type RDSDataSpec struct { @@ -5135,77 +6715,78 @@ type RDSDataSpec struct { // There are multiple parameters that control what data is used to create a // datasource: // - // percentBegin + // * percentBegin // // Use percentBegin to indicate the beginning of the range of the data used - // to create the Datasource. If you do not include percentBegin and percentEnd, - // Amazon ML includes all of the data when creating the datasource. + // to create the Datasource. If you do not include percentBegin and percentEnd, + // Amazon ML includes all of the data when creating the datasource. // - // percentEnd + // * percentEnd // // Use percentEnd to indicate the end of the range of the data used to create - // the Datasource. If you do not include percentBegin and percentEnd, Amazon - // ML includes all of the data when creating the datasource. + // the Datasource. If you do not include percentBegin and percentEnd, Amazon + // ML includes all of the data when creating the datasource. // - // complement + // * complement // // The complement parameter instructs Amazon ML to use the data that is not - // included in the range of percentBegin to percentEnd to create a datasource. - // The complement parameter is useful if you need to create complementary datasources - // for training and evaluation. To create a complementary datasource, use the - // same values for percentBegin and percentEnd, along with the complement parameter. + // included in the range of percentBegin to percentEnd to create a datasource. + // The complement parameter is useful if you need to create complementary + // datasources for training and evaluation. To create a complementary datasource, + // use the same values for percentBegin and percentEnd, along with the complement + // parameter. // // For example, the following two datasources do not share any data, and can - // be used to train and evaluate a model. The first datasource has 25 percent - // of the data, and the second one has 75 percent of the data. + // be used to train and evaluate a model. The first datasource has 25 percent + // of the data, and the second one has 75 percent of the data. // // Datasource for evaluation: {"splitting":{"percentBegin":0, "percentEnd":25}} // // Datasource for training: {"splitting":{"percentBegin":0, "percentEnd":25, - // "complement":"true"}} + // "complement":"true"}} // - // strategy + // * strategy // // To change how Amazon ML splits the data for a datasource, use the strategy - // parameter. + // parameter. // // The default value for the strategy parameter is sequential, meaning that - // Amazon ML takes all of the data records between the percentBegin and percentEnd - // parameters for the datasource, in the order that the records appear in the - // input data. + // Amazon ML takes all of the data records between the percentBegin and percentEnd + // parameters for the datasource, in the order that the records appear in + // the input data. // // The following two DataRearrangement lines are examples of sequentially ordered - // training and evaluation datasources: + // training and evaluation datasources: // // Datasource for evaluation: {"splitting":{"percentBegin":70, "percentEnd":100, - // "strategy":"sequential"}} + // "strategy":"sequential"}} // // Datasource for training: {"splitting":{"percentBegin":70, "percentEnd":100, - // "strategy":"sequential", "complement":"true"}} + // "strategy":"sequential", "complement":"true"}} // // To randomly split the input data into the proportions indicated by the percentBegin - // and percentEnd parameters, set the strategy parameter to random and provide - // a string that is used as the seed value for the random data splitting (for - // example, you can use the S3 path to your data as the random seed string). - // If you choose the random split strategy, Amazon ML assigns each row of data - // a pseudo-random number between 0 and 100, and then selects the rows that - // have an assigned number between percentBegin and percentEnd. Pseudo-random - // numbers are assigned using both the input seed string value and the byte - // offset as a seed, so changing the data results in a different split. Any - // existing ordering is preserved. The random splitting strategy ensures that - // variables in the training and evaluation data are distributed similarly. - // It is useful in the cases where the input data may have an implicit sort - // order, which would otherwise result in training and evaluation datasources - // containing non-similar data records. + // and percentEnd parameters, set the strategy parameter to random and provide + // a string that is used as the seed value for the random data splitting + // (for example, you can use the S3 path to your data as the random seed + // string). If you choose the random split strategy, Amazon ML assigns each + // row of data a pseudo-random number between 0 and 100, and then selects + // the rows that have an assigned number between percentBegin and percentEnd. + // Pseudo-random numbers are assigned using both the input seed string value + // and the byte offset as a seed, so changing the data results in a different + // split. Any existing ordering is preserved. The random splitting strategy + // ensures that variables in the training and evaluation data are distributed + // similarly. It is useful in the cases where the input data may have an + // implicit sort order, which would otherwise result in training and evaluation + // datasources containing non-similar data records. // // The following two DataRearrangement lines are examples of non-sequentially - // ordered training and evaluation datasources: + // ordered training and evaluation datasources: // // Datasource for evaluation: {"splitting":{"percentBegin":70, "percentEnd":100, - // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv"}} + // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv"}} // // Datasource for training: {"splitting":{"percentBegin":70, "percentEnd":100, - // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv", "complement":"true"}} + // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv", "complement":"true"}} DataRearrangement *string `type:"string"` // A JSON string that represents the schema for an Amazon RDS DataSource. The @@ -5220,26 +6801,26 @@ type RDSDataSpec struct { // // { "version": "1.0", // - // "recordAnnotationFieldName": "F1", + // "recordAnnotationFieldName": "F1", // - // "recordWeightFieldName": "F2", + // "recordWeightFieldName": "F2", // - // "targetFieldName": "F3", + // "targetFieldName": "F3", // - // "dataFormat": "CSV", + // "dataFormat": "CSV", // - // "dataFileContainsHeader": true, + // "dataFileContainsHeader": true, // - // "attributes": [ + // "attributes": [ // - // { "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": + // { "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": // "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": // "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" // }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": // "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" // } ], // - // "excludedVariableNames": [ "F6" ] } + // "excludedVariableNames": [ "F6" ] } DataSchema *string `type:"string"` // The Amazon S3 location of the DataSchema. @@ -5365,6 +6946,72 @@ func (s *RDSDataSpec) Validate() error { return nil } +// SetDataRearrangement sets the DataRearrangement field's value. +func (s *RDSDataSpec) SetDataRearrangement(v string) *RDSDataSpec { + s.DataRearrangement = &v + return s +} + +// SetDataSchema sets the DataSchema field's value. +func (s *RDSDataSpec) SetDataSchema(v string) *RDSDataSpec { + s.DataSchema = &v + return s +} + +// SetDataSchemaUri sets the DataSchemaUri field's value. +func (s *RDSDataSpec) SetDataSchemaUri(v string) *RDSDataSpec { + s.DataSchemaUri = &v + return s +} + +// SetDatabaseCredentials sets the DatabaseCredentials field's value. +func (s *RDSDataSpec) SetDatabaseCredentials(v *RDSDatabaseCredentials) *RDSDataSpec { + s.DatabaseCredentials = v + return s +} + +// SetDatabaseInformation sets the DatabaseInformation field's value. +func (s *RDSDataSpec) SetDatabaseInformation(v *RDSDatabase) *RDSDataSpec { + s.DatabaseInformation = v + return s +} + +// SetResourceRole sets the ResourceRole field's value. +func (s *RDSDataSpec) SetResourceRole(v string) *RDSDataSpec { + s.ResourceRole = &v + return s +} + +// SetS3StagingLocation sets the S3StagingLocation field's value. +func (s *RDSDataSpec) SetS3StagingLocation(v string) *RDSDataSpec { + s.S3StagingLocation = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *RDSDataSpec) SetSecurityGroupIds(v []*string) *RDSDataSpec { + s.SecurityGroupIds = v + return s +} + +// SetSelectSqlQuery sets the SelectSqlQuery field's value. +func (s *RDSDataSpec) SetSelectSqlQuery(v string) *RDSDataSpec { + s.SelectSqlQuery = &v + return s +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *RDSDataSpec) SetServiceRole(v string) *RDSDataSpec { + s.ServiceRole = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *RDSDataSpec) SetSubnetId(v string) *RDSDataSpec { + s.SubnetId = &v + return s +} + // The database details of an Amazon RDS database. type RDSDatabase struct { _ struct{} `type:"structure"` @@ -5412,6 +7059,18 @@ func (s *RDSDatabase) Validate() error { return nil } +// SetDatabaseName sets the DatabaseName field's value. +func (s *RDSDatabase) SetDatabaseName(v string) *RDSDatabase { + s.DatabaseName = &v + return s +} + +// SetInstanceIdentifier sets the InstanceIdentifier field's value. +func (s *RDSDatabase) SetInstanceIdentifier(v string) *RDSDatabase { + s.InstanceIdentifier = &v + return s +} + // The database credentials to connect to a database on an RDS DB instance. type RDSDatabaseCredentials struct { _ struct{} `type:"structure"` @@ -5463,6 +7122,18 @@ func (s *RDSDatabaseCredentials) Validate() error { return nil } +// SetPassword sets the Password field's value. +func (s *RDSDatabaseCredentials) SetPassword(v string) *RDSDatabaseCredentials { + s.Password = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *RDSDatabaseCredentials) SetUsername(v string) *RDSDatabaseCredentials { + s.Username = &v + return s +} + // The datasource details that are specific to Amazon RDS. type RDSMetadata struct { _ struct{} `type:"structure"` @@ -5507,6 +7178,42 @@ func (s RDSMetadata) GoString() string { return s.String() } +// SetDataPipelineId sets the DataPipelineId field's value. +func (s *RDSMetadata) SetDataPipelineId(v string) *RDSMetadata { + s.DataPipelineId = &v + return s +} + +// SetDatabase sets the Database field's value. +func (s *RDSMetadata) SetDatabase(v *RDSDatabase) *RDSMetadata { + s.Database = v + return s +} + +// SetDatabaseUserName sets the DatabaseUserName field's value. +func (s *RDSMetadata) SetDatabaseUserName(v string) *RDSMetadata { + s.DatabaseUserName = &v + return s +} + +// SetResourceRole sets the ResourceRole field's value. +func (s *RDSMetadata) SetResourceRole(v string) *RDSMetadata { + s.ResourceRole = &v + return s +} + +// SetSelectSqlQuery sets the SelectSqlQuery field's value. +func (s *RDSMetadata) SetSelectSqlQuery(v string) *RDSMetadata { + s.SelectSqlQuery = &v + return s +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *RDSMetadata) SetServiceRole(v string) *RDSMetadata { + s.ServiceRole = &v + return s +} + // Describes the real-time endpoint information for an MLModel. type RealtimeEndpointInfo struct { _ struct{} `type:"structure"` @@ -5518,15 +7225,15 @@ type RealtimeEndpointInfo struct { // The current status of the real-time endpoint for the MLModel. This element // can have one of the following values: // - // NONE - Endpoint does not exist or was previously deleted. READY - Endpoint - // is ready to be used for real-time predictions. UPDATING - Updating/creating - // the endpoint. + // * NONE - Endpoint does not exist or was previously deleted. + // * READY - Endpoint is ready to be used for real-time predictions. + // * UPDATING - Updating/creating the endpoint. EndpointStatus *string `type:"string" enum:"RealtimeEndpointStatus"` // The URI that specifies where to send real-time prediction requests for the // MLModel. // - // Note The application must wait until the real-time endpoint is ready before + // NoteThe application must wait until the real-time endpoint is ready before // using this URI. EndpointUrl *string `type:"string"` @@ -5545,6 +7252,30 @@ func (s RealtimeEndpointInfo) GoString() string { return s.String() } +// SetCreatedAt sets the CreatedAt field's value. +func (s *RealtimeEndpointInfo) SetCreatedAt(v time.Time) *RealtimeEndpointInfo { + s.CreatedAt = &v + return s +} + +// SetEndpointStatus sets the EndpointStatus field's value. +func (s *RealtimeEndpointInfo) SetEndpointStatus(v string) *RealtimeEndpointInfo { + s.EndpointStatus = &v + return s +} + +// SetEndpointUrl sets the EndpointUrl field's value. +func (s *RealtimeEndpointInfo) SetEndpointUrl(v string) *RealtimeEndpointInfo { + s.EndpointUrl = &v + return s +} + +// SetPeakRequestsPerSecond sets the PeakRequestsPerSecond field's value. +func (s *RealtimeEndpointInfo) SetPeakRequestsPerSecond(v int64) *RealtimeEndpointInfo { + s.PeakRequestsPerSecond = &v + return s +} + // Describes the data specification of an Amazon Redshift DataSource. type RedshiftDataSpec struct { _ struct{} `type:"structure"` @@ -5556,77 +7287,78 @@ type RedshiftDataSpec struct { // There are multiple parameters that control what data is used to create a // datasource: // - // percentBegin + // * percentBegin // // Use percentBegin to indicate the beginning of the range of the data used - // to create the Datasource. If you do not include percentBegin and percentEnd, - // Amazon ML includes all of the data when creating the datasource. + // to create the Datasource. If you do not include percentBegin and percentEnd, + // Amazon ML includes all of the data when creating the datasource. // - // percentEnd + // * percentEnd // // Use percentEnd to indicate the end of the range of the data used to create - // the Datasource. If you do not include percentBegin and percentEnd, Amazon - // ML includes all of the data when creating the datasource. + // the Datasource. If you do not include percentBegin and percentEnd, Amazon + // ML includes all of the data when creating the datasource. // - // complement + // * complement // // The complement parameter instructs Amazon ML to use the data that is not - // included in the range of percentBegin to percentEnd to create a datasource. - // The complement parameter is useful if you need to create complementary datasources - // for training and evaluation. To create a complementary datasource, use the - // same values for percentBegin and percentEnd, along with the complement parameter. + // included in the range of percentBegin to percentEnd to create a datasource. + // The complement parameter is useful if you need to create complementary + // datasources for training and evaluation. To create a complementary datasource, + // use the same values for percentBegin and percentEnd, along with the complement + // parameter. // // For example, the following two datasources do not share any data, and can - // be used to train and evaluate a model. The first datasource has 25 percent - // of the data, and the second one has 75 percent of the data. + // be used to train and evaluate a model. The first datasource has 25 percent + // of the data, and the second one has 75 percent of the data. // // Datasource for evaluation: {"splitting":{"percentBegin":0, "percentEnd":25}} // // Datasource for training: {"splitting":{"percentBegin":0, "percentEnd":25, - // "complement":"true"}} + // "complement":"true"}} // - // strategy + // * strategy // // To change how Amazon ML splits the data for a datasource, use the strategy - // parameter. + // parameter. // // The default value for the strategy parameter is sequential, meaning that - // Amazon ML takes all of the data records between the percentBegin and percentEnd - // parameters for the datasource, in the order that the records appear in the - // input data. + // Amazon ML takes all of the data records between the percentBegin and percentEnd + // parameters for the datasource, in the order that the records appear in + // the input data. // // The following two DataRearrangement lines are examples of sequentially ordered - // training and evaluation datasources: + // training and evaluation datasources: // // Datasource for evaluation: {"splitting":{"percentBegin":70, "percentEnd":100, - // "strategy":"sequential"}} + // "strategy":"sequential"}} // // Datasource for training: {"splitting":{"percentBegin":70, "percentEnd":100, - // "strategy":"sequential", "complement":"true"}} + // "strategy":"sequential", "complement":"true"}} // // To randomly split the input data into the proportions indicated by the percentBegin - // and percentEnd parameters, set the strategy parameter to random and provide - // a string that is used as the seed value for the random data splitting (for - // example, you can use the S3 path to your data as the random seed string). - // If you choose the random split strategy, Amazon ML assigns each row of data - // a pseudo-random number between 0 and 100, and then selects the rows that - // have an assigned number between percentBegin and percentEnd. Pseudo-random - // numbers are assigned using both the input seed string value and the byte - // offset as a seed, so changing the data results in a different split. Any - // existing ordering is preserved. The random splitting strategy ensures that - // variables in the training and evaluation data are distributed similarly. - // It is useful in the cases where the input data may have an implicit sort - // order, which would otherwise result in training and evaluation datasources - // containing non-similar data records. + // and percentEnd parameters, set the strategy parameter to random and provide + // a string that is used as the seed value for the random data splitting + // (for example, you can use the S3 path to your data as the random seed + // string). If you choose the random split strategy, Amazon ML assigns each + // row of data a pseudo-random number between 0 and 100, and then selects + // the rows that have an assigned number between percentBegin and percentEnd. + // Pseudo-random numbers are assigned using both the input seed string value + // and the byte offset as a seed, so changing the data results in a different + // split. Any existing ordering is preserved. The random splitting strategy + // ensures that variables in the training and evaluation data are distributed + // similarly. It is useful in the cases where the input data may have an + // implicit sort order, which would otherwise result in training and evaluation + // datasources containing non-similar data records. // // The following two DataRearrangement lines are examples of non-sequentially - // ordered training and evaluation datasources: + // ordered training and evaluation datasources: // // Datasource for evaluation: {"splitting":{"percentBegin":70, "percentEnd":100, - // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv"}} + // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv"}} // // Datasource for training: {"splitting":{"percentBegin":70, "percentEnd":100, - // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv", "complement":"true"}} + // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv", "complement":"true"}} DataRearrangement *string `type:"string"` // A JSON string that represents the schema for an Amazon Redshift DataSource. @@ -5641,26 +7373,26 @@ type RedshiftDataSpec struct { // // { "version": "1.0", // - // "recordAnnotationFieldName": "F1", + // "recordAnnotationFieldName": "F1", // - // "recordWeightFieldName": "F2", + // "recordWeightFieldName": "F2", // - // "targetFieldName": "F3", + // "targetFieldName": "F3", // - // "dataFormat": "CSV", + // "dataFormat": "CSV", // - // "dataFileContainsHeader": true, + // "dataFileContainsHeader": true, // - // "attributes": [ + // "attributes": [ // - // { "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": + // { "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": // "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": // "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" // }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": // "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" // } ], // - // "excludedVariableNames": [ "F6" ] } + // "excludedVariableNames": [ "F6" ] } DataSchema *string `type:"string"` // Describes the schema location for an Amazon Redshift DataSource. @@ -5735,6 +7467,48 @@ func (s *RedshiftDataSpec) Validate() error { return nil } +// SetDataRearrangement sets the DataRearrangement field's value. +func (s *RedshiftDataSpec) SetDataRearrangement(v string) *RedshiftDataSpec { + s.DataRearrangement = &v + return s +} + +// SetDataSchema sets the DataSchema field's value. +func (s *RedshiftDataSpec) SetDataSchema(v string) *RedshiftDataSpec { + s.DataSchema = &v + return s +} + +// SetDataSchemaUri sets the DataSchemaUri field's value. +func (s *RedshiftDataSpec) SetDataSchemaUri(v string) *RedshiftDataSpec { + s.DataSchemaUri = &v + return s +} + +// SetDatabaseCredentials sets the DatabaseCredentials field's value. +func (s *RedshiftDataSpec) SetDatabaseCredentials(v *RedshiftDatabaseCredentials) *RedshiftDataSpec { + s.DatabaseCredentials = v + return s +} + +// SetDatabaseInformation sets the DatabaseInformation field's value. +func (s *RedshiftDataSpec) SetDatabaseInformation(v *RedshiftDatabase) *RedshiftDataSpec { + s.DatabaseInformation = v + return s +} + +// SetS3StagingLocation sets the S3StagingLocation field's value. +func (s *RedshiftDataSpec) SetS3StagingLocation(v string) *RedshiftDataSpec { + s.S3StagingLocation = &v + return s +} + +// SetSelectSqlQuery sets the SelectSqlQuery field's value. +func (s *RedshiftDataSpec) SetSelectSqlQuery(v string) *RedshiftDataSpec { + s.SelectSqlQuery = &v + return s +} + // Describes the database details required to connect to an Amazon Redshift // database. type RedshiftDatabase struct { @@ -5783,6 +7557,18 @@ func (s *RedshiftDatabase) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *RedshiftDatabase) SetClusterIdentifier(v string) *RedshiftDatabase { + s.ClusterIdentifier = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *RedshiftDatabase) SetDatabaseName(v string) *RedshiftDatabase { + s.DatabaseName = &v + return s +} + // Describes the database credentials for connecting to a database on an Amazon // Redshift cluster. type RedshiftDatabaseCredentials struct { @@ -5837,6 +7623,18 @@ func (s *RedshiftDatabaseCredentials) Validate() error { return nil } +// SetPassword sets the Password field's value. +func (s *RedshiftDatabaseCredentials) SetPassword(v string) *RedshiftDatabaseCredentials { + s.Password = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *RedshiftDatabaseCredentials) SetUsername(v string) *RedshiftDatabaseCredentials { + s.Username = &v + return s +} + // Describes the DataSource details specific to Amazon Redshift. type RedshiftMetadata struct { _ struct{} `type:"structure"` @@ -5866,6 +7664,24 @@ func (s RedshiftMetadata) GoString() string { return s.String() } +// SetDatabaseUserName sets the DatabaseUserName field's value. +func (s *RedshiftMetadata) SetDatabaseUserName(v string) *RedshiftMetadata { + s.DatabaseUserName = &v + return s +} + +// SetRedshiftDatabase sets the RedshiftDatabase field's value. +func (s *RedshiftMetadata) SetRedshiftDatabase(v *RedshiftDatabase) *RedshiftMetadata { + s.RedshiftDatabase = v + return s +} + +// SetSelectSqlQuery sets the SelectSqlQuery field's value. +func (s *RedshiftMetadata) SetSelectSqlQuery(v string) *RedshiftMetadata { + s.SelectSqlQuery = &v + return s +} + // Describes the data specification of a DataSource. type S3DataSpec struct { _ struct{} `type:"structure"` @@ -5884,77 +7700,78 @@ type S3DataSpec struct { // There are multiple parameters that control what data is used to create a // datasource: // - // percentBegin + // * percentBegin // // Use percentBegin to indicate the beginning of the range of the data used - // to create the Datasource. If you do not include percentBegin and percentEnd, - // Amazon ML includes all of the data when creating the datasource. + // to create the Datasource. If you do not include percentBegin and percentEnd, + // Amazon ML includes all of the data when creating the datasource. // - // percentEnd + // * percentEnd // // Use percentEnd to indicate the end of the range of the data used to create - // the Datasource. If you do not include percentBegin and percentEnd, Amazon - // ML includes all of the data when creating the datasource. + // the Datasource. If you do not include percentBegin and percentEnd, Amazon + // ML includes all of the data when creating the datasource. // - // complement + // * complement // // The complement parameter instructs Amazon ML to use the data that is not - // included in the range of percentBegin to percentEnd to create a datasource. - // The complement parameter is useful if you need to create complementary datasources - // for training and evaluation. To create a complementary datasource, use the - // same values for percentBegin and percentEnd, along with the complement parameter. + // included in the range of percentBegin to percentEnd to create a datasource. + // The complement parameter is useful if you need to create complementary + // datasources for training and evaluation. To create a complementary datasource, + // use the same values for percentBegin and percentEnd, along with the complement + // parameter. // // For example, the following two datasources do not share any data, and can - // be used to train and evaluate a model. The first datasource has 25 percent - // of the data, and the second one has 75 percent of the data. + // be used to train and evaluate a model. The first datasource has 25 percent + // of the data, and the second one has 75 percent of the data. // // Datasource for evaluation: {"splitting":{"percentBegin":0, "percentEnd":25}} // // Datasource for training: {"splitting":{"percentBegin":0, "percentEnd":25, - // "complement":"true"}} + // "complement":"true"}} // - // strategy + // * strategy // // To change how Amazon ML splits the data for a datasource, use the strategy - // parameter. + // parameter. // // The default value for the strategy parameter is sequential, meaning that - // Amazon ML takes all of the data records between the percentBegin and percentEnd - // parameters for the datasource, in the order that the records appear in the - // input data. + // Amazon ML takes all of the data records between the percentBegin and percentEnd + // parameters for the datasource, in the order that the records appear in + // the input data. // // The following two DataRearrangement lines are examples of sequentially ordered - // training and evaluation datasources: + // training and evaluation datasources: // // Datasource for evaluation: {"splitting":{"percentBegin":70, "percentEnd":100, - // "strategy":"sequential"}} + // "strategy":"sequential"}} // // Datasource for training: {"splitting":{"percentBegin":70, "percentEnd":100, - // "strategy":"sequential", "complement":"true"}} + // "strategy":"sequential", "complement":"true"}} // // To randomly split the input data into the proportions indicated by the percentBegin - // and percentEnd parameters, set the strategy parameter to random and provide - // a string that is used as the seed value for the random data splitting (for - // example, you can use the S3 path to your data as the random seed string). - // If you choose the random split strategy, Amazon ML assigns each row of data - // a pseudo-random number between 0 and 100, and then selects the rows that - // have an assigned number between percentBegin and percentEnd. Pseudo-random - // numbers are assigned using both the input seed string value and the byte - // offset as a seed, so changing the data results in a different split. Any - // existing ordering is preserved. The random splitting strategy ensures that - // variables in the training and evaluation data are distributed similarly. - // It is useful in the cases where the input data may have an implicit sort - // order, which would otherwise result in training and evaluation datasources - // containing non-similar data records. + // and percentEnd parameters, set the strategy parameter to random and provide + // a string that is used as the seed value for the random data splitting + // (for example, you can use the S3 path to your data as the random seed + // string). If you choose the random split strategy, Amazon ML assigns each + // row of data a pseudo-random number between 0 and 100, and then selects + // the rows that have an assigned number between percentBegin and percentEnd. + // Pseudo-random numbers are assigned using both the input seed string value + // and the byte offset as a seed, so changing the data results in a different + // split. Any existing ordering is preserved. The random splitting strategy + // ensures that variables in the training and evaluation data are distributed + // similarly. It is useful in the cases where the input data may have an + // implicit sort order, which would otherwise result in training and evaluation + // datasources containing non-similar data records. // // The following two DataRearrangement lines are examples of non-sequentially - // ordered training and evaluation datasources: + // ordered training and evaluation datasources: // // Datasource for evaluation: {"splitting":{"percentBegin":70, "percentEnd":100, - // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv"}} + // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv"}} // // Datasource for training: {"splitting":{"percentBegin":70, "percentEnd":100, - // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv", "complement":"true"}} + // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv", "complement":"true"}} DataRearrangement *string `type:"string"` // A JSON string that represents the schema for an Amazon S3 DataSource. The @@ -5969,26 +7786,26 @@ type S3DataSpec struct { // // { "version": "1.0", // - // "recordAnnotationFieldName": "F1", + // "recordAnnotationFieldName": "F1", // - // "recordWeightFieldName": "F2", + // "recordWeightFieldName": "F2", // - // "targetFieldName": "F3", + // "targetFieldName": "F3", // - // "dataFormat": "CSV", + // "dataFormat": "CSV", // - // "dataFileContainsHeader": true, + // "dataFileContainsHeader": true, // - // "attributes": [ + // "attributes": [ // - // { "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": + // { "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": // "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": // "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" // }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": // "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" // } ], // - // "excludedVariableNames": [ "F6" ] } + // "excludedVariableNames": [ "F6" ] } DataSchema *string `type:"string"` // Describes the schema location in Amazon S3. You must provide either the DataSchema @@ -6019,6 +7836,30 @@ func (s *S3DataSpec) Validate() error { return nil } +// SetDataLocationS3 sets the DataLocationS3 field's value. +func (s *S3DataSpec) SetDataLocationS3(v string) *S3DataSpec { + s.DataLocationS3 = &v + return s +} + +// SetDataRearrangement sets the DataRearrangement field's value. +func (s *S3DataSpec) SetDataRearrangement(v string) *S3DataSpec { + s.DataRearrangement = &v + return s +} + +// SetDataSchema sets the DataSchema field's value. +func (s *S3DataSpec) SetDataSchema(v string) *S3DataSpec { + s.DataSchema = &v + return s +} + +// SetDataSchemaLocationS3 sets the DataSchemaLocationS3 field's value. +func (s *S3DataSpec) SetDataSchemaLocationS3(v string) *S3DataSpec { + s.DataSchemaLocationS3 = &v + return s +} + // A custom key-value pair associated with an ML object, such as an ML model. type Tag struct { _ struct{} `type:"structure"` @@ -6055,6 +7896,18 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + type UpdateBatchPredictionInput struct { _ struct{} `type:"structure"` @@ -6098,6 +7951,18 @@ func (s *UpdateBatchPredictionInput) Validate() error { return nil } +// SetBatchPredictionId sets the BatchPredictionId field's value. +func (s *UpdateBatchPredictionInput) SetBatchPredictionId(v string) *UpdateBatchPredictionInput { + s.BatchPredictionId = &v + return s +} + +// SetBatchPredictionName sets the BatchPredictionName field's value. +func (s *UpdateBatchPredictionInput) SetBatchPredictionName(v string) *UpdateBatchPredictionInput { + s.BatchPredictionName = &v + return s +} + // Represents the output of an UpdateBatchPrediction operation. // // You can see the updated content by using the GetBatchPrediction operation. @@ -6119,6 +7984,12 @@ func (s UpdateBatchPredictionOutput) GoString() string { return s.String() } +// SetBatchPredictionId sets the BatchPredictionId field's value. +func (s *UpdateBatchPredictionOutput) SetBatchPredictionId(v string) *UpdateBatchPredictionOutput { + s.BatchPredictionId = &v + return s +} + type UpdateDataSourceInput struct { _ struct{} `type:"structure"` @@ -6163,6 +8034,18 @@ func (s *UpdateDataSourceInput) Validate() error { return nil } +// SetDataSourceId sets the DataSourceId field's value. +func (s *UpdateDataSourceInput) SetDataSourceId(v string) *UpdateDataSourceInput { + s.DataSourceId = &v + return s +} + +// SetDataSourceName sets the DataSourceName field's value. +func (s *UpdateDataSourceInput) SetDataSourceName(v string) *UpdateDataSourceInput { + s.DataSourceName = &v + return s +} + // Represents the output of an UpdateDataSource operation. // // You can see the updated content by using the GetBatchPrediction operation. @@ -6184,6 +8067,12 @@ func (s UpdateDataSourceOutput) GoString() string { return s.String() } +// SetDataSourceId sets the DataSourceId field's value. +func (s *UpdateDataSourceOutput) SetDataSourceId(v string) *UpdateDataSourceOutput { + s.DataSourceId = &v + return s +} + type UpdateEvaluationInput struct { _ struct{} `type:"structure"` @@ -6228,6 +8117,18 @@ func (s *UpdateEvaluationInput) Validate() error { return nil } +// SetEvaluationId sets the EvaluationId field's value. +func (s *UpdateEvaluationInput) SetEvaluationId(v string) *UpdateEvaluationInput { + s.EvaluationId = &v + return s +} + +// SetEvaluationName sets the EvaluationName field's value. +func (s *UpdateEvaluationInput) SetEvaluationName(v string) *UpdateEvaluationInput { + s.EvaluationName = &v + return s +} + // Represents the output of an UpdateEvaluation operation. // // You can see the updated content by using the GetEvaluation operation. @@ -6249,6 +8150,12 @@ func (s UpdateEvaluationOutput) GoString() string { return s.String() } +// SetEvaluationId sets the EvaluationId field's value. +func (s *UpdateEvaluationOutput) SetEvaluationId(v string) *UpdateEvaluationOutput { + s.EvaluationId = &v + return s +} + type UpdateMLModelInput struct { _ struct{} `type:"structure"` @@ -6295,6 +8202,24 @@ func (s *UpdateMLModelInput) Validate() error { return nil } +// SetMLModelId sets the MLModelId field's value. +func (s *UpdateMLModelInput) SetMLModelId(v string) *UpdateMLModelInput { + s.MLModelId = &v + return s +} + +// SetMLModelName sets the MLModelName field's value. +func (s *UpdateMLModelInput) SetMLModelName(v string) *UpdateMLModelInput { + s.MLModelName = &v + return s +} + +// SetScoreThreshold sets the ScoreThreshold field's value. +func (s *UpdateMLModelInput) SetScoreThreshold(v float64) *UpdateMLModelInput { + s.ScoreThreshold = &v + return s +} + // Represents the output of an UpdateMLModel operation. // // You can see the updated content by using the GetMLModel operation. @@ -6316,11 +8241,17 @@ func (s UpdateMLModelOutput) GoString() string { return s.String() } +// SetMLModelId sets the MLModelId field's value. +func (s *UpdateMLModelOutput) SetMLModelId(v string) *UpdateMLModelOutput { + s.MLModelId = &v + return s +} + // The function used to train an MLModel. Training choices supported by Amazon // ML include the following: // -// SGD - Stochastic Gradient Descent. RandomForest - Random forest of decision -// trees. +// * SGD - Stochastic Gradient Descent. +// * RandomForest - Random forest of decision trees. const ( // AlgorithmSgd is a Algorithm enum value AlgorithmSgd = "sgd" @@ -6328,15 +8259,20 @@ const ( // A list of the variables to use in searching or filtering BatchPrediction. // -// CreatedAt - Sets the search criteria to BatchPrediction creation date. -// Status - Sets the search criteria to BatchPrediction status. Name - Sets -// the search criteria to the contents of BatchPrediction Name. IAMUser - -// Sets the search criteria to the user account that invoked the BatchPrediction -// creation. MLModelId - Sets the search criteria to the MLModel used in the -// BatchPrediction. DataSourceId - Sets the search criteria to the DataSource -// used in the BatchPrediction. DataURI - Sets the search criteria to the data -// file(s) used in the BatchPrediction. The URL can identify either a file or -// an Amazon Simple Storage Service (Amazon S3) bucket or directory. +// * CreatedAt - Sets the search criteria to BatchPrediction creation date. +// +// * Status - Sets the search criteria to BatchPrediction status. +// * Name - Sets the search criteria to the contents of BatchPredictionName. +// +// * IAMUser - Sets the search criteria to the user account that invoked +// the BatchPrediction creation. +// * MLModelId - Sets the search criteria to the MLModel used in the BatchPrediction. +// +// * DataSourceId - Sets the search criteria to the DataSource used in the +// BatchPrediction. +// * DataURI - Sets the search criteria to the data file(s) used in the BatchPrediction. +// The URL can identify either a file or an Amazon Simple Storage Service +// (Amazon S3) bucket or directory. const ( // BatchPredictionFilterVariableCreatedAt is a BatchPredictionFilterVariable enum value BatchPredictionFilterVariableCreatedAt = "CreatedAt" @@ -6365,14 +8301,15 @@ const ( // A list of the variables to use in searching or filtering DataSource. // -// CreatedAt - Sets the search criteria to DataSource creation date. Status -// - Sets the search criteria to DataSource status. Name - Sets the search -// criteria to the contents of DataSource Name. DataUri - Sets the search -// criteria to the URI of data files used to create the DataSource. The URI -// can identify either a file or an Amazon Simple Storage Service (Amazon S3) -// bucket or directory. IAMUser - Sets the search criteria to the user account -// that invoked the DataSource creation. Note The variable names should match -// the variable names in the DataSource. +// * CreatedAt - Sets the search criteria to DataSource creation date. +// * Status - Sets the search criteria to DataSource status. +// * Name - Sets the search criteria to the contents of DataSourceName. +// * DataUri - Sets the search criteria to the URI of data files used to +// create the DataSource. The URI can identify either a file or an Amazon +// Simple Storage Service (Amazon S3) bucket or directory. +// * IAMUser - Sets the search criteria to the user account that invoked +// the DataSource creation. +// NoteThe variable names should match the variable names in the DataSource. const ( // DataSourceFilterVariableCreatedAt is a DataSourceFilterVariable enum value DataSourceFilterVariableCreatedAt = "CreatedAt" @@ -6393,9 +8330,7 @@ const ( DataSourceFilterVariableIamuser = "IAMUser" ) -// Contains the key values of DetailsMap: PredictiveModelType - Indicates the -// type of the MLModel. Algorithm - Indicates the algorithm that was used for -// the MLModel. +// Contains the key values of DetailsMap: PredictiveModelType- Indicates the type of the MLModel. Algorithm- Indicates the algorithm that was used for the MLModel const ( // DetailsAttributesPredictiveModelType is a DetailsAttributes enum value DetailsAttributesPredictiveModelType = "PredictiveModelType" @@ -6406,7 +8341,11 @@ const ( // Object status with the following possible values: // -// PENDING INPROGRESS FAILED COMPLETED DELETED +// * PENDING +// * INPROGRESS +// * FAILED +// * COMPLETED +// * DELETED const ( // EntityStatusPending is a EntityStatus enum value EntityStatusPending = "PENDING" @@ -6426,15 +8365,18 @@ const ( // A list of the variables to use in searching or filtering Evaluation. // -// CreatedAt - Sets the search criteria to Evaluation creation date. Status -// - Sets the search criteria to Evaluation status. Name - Sets the search -// criteria to the contents of Evaluation Name. IAMUser - Sets the search -// criteria to the user account that invoked an evaluation. MLModelId - Sets -// the search criteria to the Predictor that was evaluated. DataSourceId - -// Sets the search criteria to the DataSource used in evaluation. DataUri - -// Sets the search criteria to the data file(s) used in evaluation. The URL -// can identify either a file or an Amazon Simple Storage Service (Amazon S3) -// bucket or directory. +// * CreatedAt - Sets the search criteria to Evaluation creation date. +// * Status - Sets the search criteria to Evaluation status. +// * Name - Sets the search criteria to the contents of EvaluationName. +// * IAMUser - Sets the search criteria to the user account that invoked +// an evaluation. +// * MLModelId - Sets the search criteria to the Predictor that was evaluated. +// +// * DataSourceId - Sets the search criteria to the DataSource used in evaluation. +// +// * DataUri - Sets the search criteria to the data file(s) used in evaluation. +// The URL can identify either a file or an Amazon Simple Storage Service +// (Amazon S3) bucket or directory. const ( // EvaluationFilterVariableCreatedAt is a EvaluationFilterVariable enum value EvaluationFilterVariableCreatedAt = "CreatedAt" @@ -6521,8 +8463,8 @@ const ( // The sort order specified in a listing condition. Possible values include // the following: // -// asc - Present the information in ascending order (from A-Z). dsc - Present -// the information in descending order (from Z-A). +// * asc - Present the information in ascending order (from A-Z). +// * dsc - Present the information in descending order (from Z-A). const ( // SortOrderAsc is a SortOrder enum value SortOrderAsc = "asc" diff --git a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/errors.go b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/errors.go new file mode 100644 index 000000000..b55966fec --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/errors.go @@ -0,0 +1,54 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package machinelearning + +const ( + + // ErrCodeIdempotentParameterMismatchException for service response error code + // "IdempotentParameterMismatchException". + // + // A second request to use or change an object was not allowed. This can result + // from retrying a request using a parameter that was not present in the original + // request. + ErrCodeIdempotentParameterMismatchException = "IdempotentParameterMismatchException" + + // ErrCodeInternalServerException for service response error code + // "InternalServerException". + // + // An error on the server occurred when trying to process a request. + ErrCodeInternalServerException = "InternalServerException" + + // ErrCodeInvalidInputException for service response error code + // "InvalidInputException". + // + // An error on the client occurred. Typically, the cause is an invalid input + // value. + ErrCodeInvalidInputException = "InvalidInputException" + + // ErrCodeInvalidTagException for service response error code + // "InvalidTagException". + ErrCodeInvalidTagException = "InvalidTagException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // The subscriber exceeded the maximum number of operations. This exception + // can occur when listing objects such as DataSource. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodePredictorNotMountedException for service response error code + // "PredictorNotMountedException". + // + // The exception is thrown when a predict request is made to an unmounted MLModel. + ErrCodePredictorNotMountedException = "PredictorNotMountedException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // A specified resource cannot be located. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeTagLimitExceededException for service response error code + // "TagLimitExceededException". + ErrCodeTagLimitExceededException = "TagLimitExceededException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/examples_test.go index 47d24047e..f6f2649b3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleMachineLearning_AddTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -49,11 +45,7 @@ func ExampleMachineLearning_AddTags() { } func ExampleMachineLearning_CreateBatchPrediction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -78,11 +70,7 @@ func ExampleMachineLearning_CreateBatchPrediction() { } func ExampleMachineLearning_CreateDataSourceFromRDS() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -128,11 +116,7 @@ func ExampleMachineLearning_CreateDataSourceFromRDS() { } func ExampleMachineLearning_CreateDataSourceFromRedshift() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -171,11 +155,7 @@ func ExampleMachineLearning_CreateDataSourceFromRedshift() { } func ExampleMachineLearning_CreateDataSourceFromS3() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -204,11 +184,7 @@ func ExampleMachineLearning_CreateDataSourceFromS3() { } func ExampleMachineLearning_CreateEvaluation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -232,11 +208,7 @@ func ExampleMachineLearning_CreateEvaluation() { } func ExampleMachineLearning_CreateMLModel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -266,11 +238,7 @@ func ExampleMachineLearning_CreateMLModel() { } func ExampleMachineLearning_CreateRealtimeEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -291,11 +259,7 @@ func ExampleMachineLearning_CreateRealtimeEndpoint() { } func ExampleMachineLearning_DeleteBatchPrediction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -316,11 +280,7 @@ func ExampleMachineLearning_DeleteBatchPrediction() { } func ExampleMachineLearning_DeleteDataSource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -341,11 +301,7 @@ func ExampleMachineLearning_DeleteDataSource() { } func ExampleMachineLearning_DeleteEvaluation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -366,11 +322,7 @@ func ExampleMachineLearning_DeleteEvaluation() { } func ExampleMachineLearning_DeleteMLModel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -391,11 +343,7 @@ func ExampleMachineLearning_DeleteMLModel() { } func ExampleMachineLearning_DeleteRealtimeEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -416,11 +364,7 @@ func ExampleMachineLearning_DeleteRealtimeEndpoint() { } func ExampleMachineLearning_DeleteTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -446,11 +390,7 @@ func ExampleMachineLearning_DeleteTags() { } func ExampleMachineLearning_DescribeBatchPredictions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -481,11 +421,7 @@ func ExampleMachineLearning_DescribeBatchPredictions() { } func ExampleMachineLearning_DescribeDataSources() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -516,11 +452,7 @@ func ExampleMachineLearning_DescribeDataSources() { } func ExampleMachineLearning_DescribeEvaluations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -551,11 +483,7 @@ func ExampleMachineLearning_DescribeEvaluations() { } func ExampleMachineLearning_DescribeMLModels() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -586,11 +514,7 @@ func ExampleMachineLearning_DescribeMLModels() { } func ExampleMachineLearning_DescribeTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -612,11 +536,7 @@ func ExampleMachineLearning_DescribeTags() { } func ExampleMachineLearning_GetBatchPrediction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -637,11 +557,7 @@ func ExampleMachineLearning_GetBatchPrediction() { } func ExampleMachineLearning_GetDataSource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -663,11 +579,7 @@ func ExampleMachineLearning_GetDataSource() { } func ExampleMachineLearning_GetEvaluation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -688,11 +600,7 @@ func ExampleMachineLearning_GetEvaluation() { } func ExampleMachineLearning_GetMLModel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -714,11 +622,7 @@ func ExampleMachineLearning_GetMLModel() { } func ExampleMachineLearning_Predict() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -744,11 +648,7 @@ func ExampleMachineLearning_Predict() { } func ExampleMachineLearning_UpdateBatchPrediction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -770,11 +670,7 @@ func ExampleMachineLearning_UpdateBatchPrediction() { } func ExampleMachineLearning_UpdateDataSource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -796,11 +692,7 @@ func ExampleMachineLearning_UpdateDataSource() { } func ExampleMachineLearning_UpdateEvaluation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) @@ -822,11 +714,7 @@ func ExampleMachineLearning_UpdateEvaluation() { } func ExampleMachineLearning_UpdateMLModel() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := machinelearning.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/machinelearningiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/machinelearningiface/interface.go index 00335e14b..e11161e13 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/machinelearningiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/machinelearningiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockMachineLearningClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/service.go b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/service.go index 6ea471742..25efae0a3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/service.go @@ -12,7 +12,7 @@ import ( ) // Definition of the public APIs exposed by Amazon Machine Learning -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type MachineLearning struct { *client.Client @@ -24,8 +24,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "machinelearning" +// Service information constants +const ( + ServiceName = "machinelearning" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the MachineLearning client with a session. // If additional configuration is needed for the client instance use the optional @@ -38,17 +41,18 @@ const ServiceName = "machinelearning" // // Create a MachineLearning client with additional configuration // svc := machinelearning.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *MachineLearning { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *MachineLearning { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *MachineLearning { svc := &MachineLearning{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-12-12", diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/api.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/api.go index c3a3c6aaf..c8359b6b4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/api.go @@ -36,6 +36,7 @@ const opGenerateDataSet = "GenerateDataSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/GenerateDataSet func (c *MarketplaceCommerceAnalytics) GenerateDataSetRequest(input *GenerateDataSetInput) (req *request.Request, output *GenerateDataSetOutput) { op := &request.Operation{ Name: opGenerateDataSet, @@ -47,9 +48,8 @@ func (c *MarketplaceCommerceAnalytics) GenerateDataSetRequest(input *GenerateDat input = &GenerateDataSetInput{} } - req = c.newRequest(op, input, output) output = &GenerateDataSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -74,9 +74,10 @@ func (c *MarketplaceCommerceAnalytics) GenerateDataSetRequest(input *GenerateDat // API operation GenerateDataSet for usage and error information. // // Returned Error Codes: -// * Exception +// * ErrCodeException "Exception" // This exception is thrown when an internal service error occurs. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/GenerateDataSet func (c *MarketplaceCommerceAnalytics) GenerateDataSet(input *GenerateDataSetInput) (*GenerateDataSetOutput, error) { req, out := c.GenerateDataSetRequest(input) err := req.Send() @@ -109,6 +110,7 @@ const opStartSupportDataExport = "StartSupportDataExport" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/StartSupportDataExport func (c *MarketplaceCommerceAnalytics) StartSupportDataExportRequest(input *StartSupportDataExportInput) (req *request.Request, output *StartSupportDataExportOutput) { op := &request.Operation{ Name: opStartSupportDataExport, @@ -120,9 +122,8 @@ func (c *MarketplaceCommerceAnalytics) StartSupportDataExportRequest(input *Star input = &StartSupportDataExportInput{} } - req = c.newRequest(op, input, output) output = &StartSupportDataExportOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -148,9 +149,10 @@ func (c *MarketplaceCommerceAnalytics) StartSupportDataExportRequest(input *Star // API operation StartSupportDataExport for usage and error information. // // Returned Error Codes: -// * Exception +// * ErrCodeException "Exception" // This exception is thrown when an internal service error occurs. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/StartSupportDataExport func (c *MarketplaceCommerceAnalytics) StartSupportDataExport(input *StartSupportDataExportInput) (*StartSupportDataExportOutput, error) { req, out := c.StartSupportDataExportRequest(input) err := req.Send() @@ -158,6 +160,7 @@ func (c *MarketplaceCommerceAnalytics) StartSupportDataExport(input *StartSuppor } // Container for the parameters to the GenerateDataSet operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/GenerateDataSetRequest type GenerateDataSetInput struct { _ struct{} `type:"structure"` @@ -178,29 +181,48 @@ type GenerateDataSetInput struct { // The desired data set type. // - // customer_subscriber_hourly_monthly_subscriptions - Available daily by - // 5:00 PM Pacific Time since 2014-07-21. customer_subscriber_annual_subscriptions - // - Available daily by 5:00 PM Pacific Time since 2014-07-21. daily_business_usage_by_instance_type - // - Available daily by 5:00 PM Pacific Time since 2015-01-26. daily_business_fees - // - Available daily by 5:00 PM Pacific Time since 2015-01-26. daily_business_free_trial_conversions - // - Available daily by 5:00 PM Pacific Time since 2015-01-26. daily_business_new_instances - // - Available daily by 5:00 PM Pacific Time since 2015-01-26. daily_business_new_product_subscribers - // - Available daily by 5:00 PM Pacific Time since 2015-01-26. daily_business_canceled_product_subscribers - // - Available daily by 5:00 PM Pacific Time since 2015-01-26. monthly_revenue_billing_and_revenue_data - // - Available monthly on the 4th day of the month by 5:00 PM Pacific Time since - // 2015-02. monthly_revenue_annual_subscriptions - Available monthly on the - // 4th day of the month by 5:00 PM Pacific Time since 2015-02. disbursed_amount_by_product - // - Available every 30 days by 5:00 PM Pacific Time since 2015-01-26. disbursed_amount_by_product_with_uncollected_funds - // -This data set is only available from 2012-04-19 until 2015-01-25. After - // 2015-01-25, this data set was split into three data sets: disbursed_amount_by_product, - // disbursed_amount_by_age_of_uncollected_funds, and disbursed_amount_by_age_of_disbursed_funds. - // disbursed_amount_by_customer_geo - Available every 30 days by 5:00 PM Pacific - // Time since 2012-04-19. disbursed_amount_by_age_of_uncollected_funds - Available - // every 30 days by 5:00 PM Pacific Time since 2015-01-26. disbursed_amount_by_age_of_disbursed_funds - // - Available every 30 days by 5:00 PM Pacific Time since 2015-01-26. customer_profile_by_industry - // - Available daily by 5:00 PM Pacific Time since 2015-10-01. customer_profile_by_revenue - // - Available daily by 5:00 PM Pacific Time since 2015-10-01. customer_profile_by_geography - // - Available daily by 5:00 PM Pacific Time since 2015-10-01. + // customer_subscriber_hourly_monthly_subscriptions - Available daily by 5:00 + // PM Pacific Time since 2014-07-21. + // customer_subscriber_annual_subscriptions - Available daily by 5:00 PM Pacific + // Time since 2014-07-21. + // daily_business_usage_by_instance_type - Available daily by 5:00 PM Pacific + // Time since 2015-01-26. + // daily_business_fees - Available daily by 5:00 PM Pacific Time since 2015-01-26. + // + // daily_business_free_trial_conversions - Available daily by 5:00 PM Pacific + // Time since 2015-01-26. + // daily_business_new_instances - Available daily by 5:00 PM Pacific Time since + // 2015-01-26. + // daily_business_new_product_subscribers - Available daily by 5:00 PM Pacific + // Time since 2015-01-26. + // daily_business_canceled_product_subscribers - Available daily by 5:00 PM + // Pacific Time since 2015-01-26. + // monthly_revenue_billing_and_revenue_data - Available monthly on the 4th day + // of the month by 5:00 PM Pacific Time since 2015-02. + // monthly_revenue_annual_subscriptions - Available monthly on the 4th day of + // the month by 5:00 PM Pacific Time since 2015-02. + // disbursed_amount_by_product - Available every 30 days by 5:00 PM Pacific + // Time since 2015-01-26. + // disbursed_amount_by_product_with_uncollected_funds -This data set is only + // available from 2012-04-19 until 2015-01-25. After 2015-01-25, this data set + // was split into three data sets: disbursed_amount_by_product, disbursed_amount_by_age_of_uncollected_funds, + // and disbursed_amount_by_age_of_disbursed_funds. + // disbursed_amount_by_instance_hours - Available every 30 days by 5:00 PM Pacific + // Time since 2012-09-04. + // disbursed_amount_by_customer_geo - Available every 30 days by 5:00 PM Pacific + // Time since 2012-04-19. + // disbursed_amount_by_age_of_uncollected_funds - Available every 30 days by + // 5:00 PM Pacific Time since 2015-01-26. + // disbursed_amount_by_age_of_disbursed_funds - Available every 30 days by 5:00 + // PM Pacific Time since 2015-01-26. + // customer_profile_by_industry - Available daily by 5:00 PM Pacific Time since + // 2015-10-01. + // customer_profile_by_revenue - Available daily by 5:00 PM Pacific Time since + // 2015-10-01. + // customer_profile_by_geography - Available daily by 5:00 PM Pacific Time since + // 2015-10-01. + // sales_compensation_billed_revenue - Available monthly on the 4th day of the + // month by 5:00 PM Pacific Time since 2016-12. // // DataSetType is a required field DataSetType *string `locationName:"dataSetType" min:"1" type:"string" required:"true" enum:"DataSetType"` @@ -281,7 +303,50 @@ func (s *GenerateDataSetInput) Validate() error { return nil } +// SetCustomerDefinedValues sets the CustomerDefinedValues field's value. +func (s *GenerateDataSetInput) SetCustomerDefinedValues(v map[string]*string) *GenerateDataSetInput { + s.CustomerDefinedValues = v + return s +} + +// SetDataSetPublicationDate sets the DataSetPublicationDate field's value. +func (s *GenerateDataSetInput) SetDataSetPublicationDate(v time.Time) *GenerateDataSetInput { + s.DataSetPublicationDate = &v + return s +} + +// SetDataSetType sets the DataSetType field's value. +func (s *GenerateDataSetInput) SetDataSetType(v string) *GenerateDataSetInput { + s.DataSetType = &v + return s +} + +// SetDestinationS3BucketName sets the DestinationS3BucketName field's value. +func (s *GenerateDataSetInput) SetDestinationS3BucketName(v string) *GenerateDataSetInput { + s.DestinationS3BucketName = &v + return s +} + +// SetDestinationS3Prefix sets the DestinationS3Prefix field's value. +func (s *GenerateDataSetInput) SetDestinationS3Prefix(v string) *GenerateDataSetInput { + s.DestinationS3Prefix = &v + return s +} + +// SetRoleNameArn sets the RoleNameArn field's value. +func (s *GenerateDataSetInput) SetRoleNameArn(v string) *GenerateDataSetInput { + s.RoleNameArn = &v + return s +} + +// SetSnsTopicArn sets the SnsTopicArn field's value. +func (s *GenerateDataSetInput) SetSnsTopicArn(v string) *GenerateDataSetInput { + s.SnsTopicArn = &v + return s +} + // Container for the result of the GenerateDataSet operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/GenerateDataSetResult type GenerateDataSetOutput struct { _ struct{} `type:"structure"` @@ -301,7 +366,14 @@ func (s GenerateDataSetOutput) GoString() string { return s.String() } +// SetDataSetRequestId sets the DataSetRequestId field's value. +func (s *GenerateDataSetOutput) SetDataSetRequestId(v string) *GenerateDataSetOutput { + s.DataSetRequestId = &v + return s +} + // Container for the parameters to the StartSupportDataExport operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/StartSupportDataExportRequest type StartSupportDataExportInput struct { _ struct{} `type:"structure"` @@ -311,15 +383,14 @@ type StartSupportDataExportInput struct { // Specifies the data set type to be written to the output csv file. The data // set types customer_support_contacts_data and test_customer_support_contacts_data - // both result in a csv file containing the following fields: Product Id, Customer - // Guid, Subscription Guid, Subscription Start Date, Organization, AWS Account - // Id, Given Name, Surname, Telephone Number, Email, Title, Country Code, ZIP - // Code, Operation Type, and Operation Time. Currently, only the test_customer_support_contacts_data - // value is supported + // both result in a csv file containing the following fields: Product Id, Product + // Code, Customer Guid, Subscription Guid, Subscription Start Date, Organization, + // AWS Account Id, Given Name, Surname, Telephone Number, Email, Title, Country + // Code, ZIP Code, Operation Type, and Operation Time. // - // customer_support_contacts_data Customer support contact data. The data - // set will contain all changes (Creates, Updates, and Deletes) to customer - // support contact data from the date specified in the from_date parameter. + // customer_support_contacts_data Customer support contact data. The data set + // will contain all changes (Creates, Updates, and Deletes) to customer support + // contact data from the date specified in the from_date parameter. // test_customer_support_contacts_data An example data set containing static // test data in the same format as customer_support_contacts_data // @@ -339,8 +410,8 @@ type StartSupportDataExportInput struct { // prefix is provided, the data set will be published to the S3 bucket root. DestinationS3Prefix *string `locationName:"destinationS3Prefix" type:"string"` - // The start date from which to retrieve the data set. This parameter only affects - // the customer_support_contacts_data data set type. + // The start date from which to retrieve the data set in UTC. This parameter + // only affects the customer_support_contacts_data data set type. // // FromDate is a required field FromDate *time.Time `locationName:"fromDate" type:"timestamp" timestampFormat:"unix" required:"true"` @@ -408,7 +479,50 @@ func (s *StartSupportDataExportInput) Validate() error { return nil } +// SetCustomerDefinedValues sets the CustomerDefinedValues field's value. +func (s *StartSupportDataExportInput) SetCustomerDefinedValues(v map[string]*string) *StartSupportDataExportInput { + s.CustomerDefinedValues = v + return s +} + +// SetDataSetType sets the DataSetType field's value. +func (s *StartSupportDataExportInput) SetDataSetType(v string) *StartSupportDataExportInput { + s.DataSetType = &v + return s +} + +// SetDestinationS3BucketName sets the DestinationS3BucketName field's value. +func (s *StartSupportDataExportInput) SetDestinationS3BucketName(v string) *StartSupportDataExportInput { + s.DestinationS3BucketName = &v + return s +} + +// SetDestinationS3Prefix sets the DestinationS3Prefix field's value. +func (s *StartSupportDataExportInput) SetDestinationS3Prefix(v string) *StartSupportDataExportInput { + s.DestinationS3Prefix = &v + return s +} + +// SetFromDate sets the FromDate field's value. +func (s *StartSupportDataExportInput) SetFromDate(v time.Time) *StartSupportDataExportInput { + s.FromDate = &v + return s +} + +// SetRoleNameArn sets the RoleNameArn field's value. +func (s *StartSupportDataExportInput) SetRoleNameArn(v string) *StartSupportDataExportInput { + s.RoleNameArn = &v + return s +} + +// SetSnsTopicArn sets the SnsTopicArn field's value. +func (s *StartSupportDataExportInput) SetSnsTopicArn(v string) *StartSupportDataExportInput { + s.SnsTopicArn = &v + return s +} + // Container for the result of the StartSupportDataExport operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/StartSupportDataExportResult type StartSupportDataExportOutput struct { _ struct{} `type:"structure"` @@ -428,6 +542,12 @@ func (s StartSupportDataExportOutput) GoString() string { return s.String() } +// SetDataSetRequestId sets the DataSetRequestId field's value. +func (s *StartSupportDataExportOutput) SetDataSetRequestId(v string) *StartSupportDataExportOutput { + s.DataSetRequestId = &v + return s +} + const ( // DataSetTypeCustomerSubscriberHourlyMonthlySubscriptions is a DataSetType enum value DataSetTypeCustomerSubscriberHourlyMonthlySubscriptions = "customer_subscriber_hourly_monthly_subscriptions" @@ -465,6 +585,9 @@ const ( // DataSetTypeDisbursedAmountByProductWithUncollectedFunds is a DataSetType enum value DataSetTypeDisbursedAmountByProductWithUncollectedFunds = "disbursed_amount_by_product_with_uncollected_funds" + // DataSetTypeDisbursedAmountByInstanceHours is a DataSetType enum value + DataSetTypeDisbursedAmountByInstanceHours = "disbursed_amount_by_instance_hours" + // DataSetTypeDisbursedAmountByCustomerGeo is a DataSetType enum value DataSetTypeDisbursedAmountByCustomerGeo = "disbursed_amount_by_customer_geo" @@ -482,6 +605,9 @@ const ( // DataSetTypeCustomerProfileByGeography is a DataSetType enum value DataSetTypeCustomerProfileByGeography = "customer_profile_by_geography" + + // DataSetTypeSalesCompensationBilledRevenue is a DataSetType enum value + DataSetTypeSalesCompensationBilledRevenue = "sales_compensation_billed_revenue" ) const ( diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/errors.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/errors.go new file mode 100644 index 000000000..4129f8396 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/errors.go @@ -0,0 +1,12 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package marketplacecommerceanalytics + +const ( + + // ErrCodeException for service response error code + // "Exception". + // + // This exception is thrown when an internal service error occurs. + ErrCodeException = "Exception" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/examples_test.go index 4b095581f..88b177bdc 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleMarketplaceCommerceAnalytics_GenerateDataSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := marketplacecommerceanalytics.New(sess) @@ -50,11 +46,7 @@ func ExampleMarketplaceCommerceAnalytics_GenerateDataSet() { } func ExampleMarketplaceCommerceAnalytics_StartSupportDataExport() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := marketplacecommerceanalytics.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/marketplacecommerceanalyticsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/marketplacecommerceanalyticsiface/interface.go index a55594a17..b30eea19f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/marketplacecommerceanalyticsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/marketplacecommerceanalyticsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockMarketplaceCommerceAnalyticsClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/service.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/service.go index 0c257635f..19aa13a42 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/service.go @@ -12,8 +12,9 @@ import ( ) // Provides AWS Marketplace business intelligence data on-demand. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01 type MarketplaceCommerceAnalytics struct { *client.Client } @@ -24,8 +25,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "marketplacecommerceanalytics" +// Service information constants +const ( + ServiceName = "marketplacecommerceanalytics" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the MarketplaceCommerceAnalytics client with a session. // If additional configuration is needed for the client instance use the optional @@ -38,18 +42,21 @@ const ServiceName = "marketplacecommerceanalytics" // // Create a MarketplaceCommerceAnalytics client with additional configuration // svc := marketplacecommerceanalytics.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *MarketplaceCommerceAnalytics { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *MarketplaceCommerceAnalytics { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *MarketplaceCommerceAnalytics { + if len(signingName) == 0 { + signingName = "marketplacecommerceanalytics" + } svc := &MarketplaceCommerceAnalytics{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, - SigningName: "marketplacecommerceanalytics", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-07-01", diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/api.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/api.go index 9eef1b101..9d6f86ab9 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/api.go @@ -4,12 +4,105 @@ package marketplacemetering import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" ) +const opBatchMeterUsage = "BatchMeterUsage" + +// BatchMeterUsageRequest generates a "aws/request.Request" representing the +// client's request for the BatchMeterUsage operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See BatchMeterUsage for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the BatchMeterUsage method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the BatchMeterUsageRequest method. +// req, resp := client.BatchMeterUsageRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/BatchMeterUsage +func (c *MarketplaceMetering) BatchMeterUsageRequest(input *BatchMeterUsageInput) (req *request.Request, output *BatchMeterUsageOutput) { + op := &request.Operation{ + Name: opBatchMeterUsage, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &BatchMeterUsageInput{} + } + + output = &BatchMeterUsageOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchMeterUsage API operation for AWSMarketplace Metering. +// +// BatchMeterUsage is called from a SaaS application listed on the AWS Marketplace +// to post metering records for a set of customers. +// +// For identical requests, the API is idempotent; requests can be retried with +// the same records or a subset of the input records. +// +// Every request to BatchMeterUsage is for one product. If you need to meter +// usage for multiple products, you must make multiple calls to BatchMeterUsage. +// +// BatchMeterUsage can process up to 25 UsageRecords at a time. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWSMarketplace Metering's +// API operation BatchMeterUsage for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// An internal error has occurred. Retry your request. If the problem persists, +// post a message with details on the AWS forums. +// +// * ErrCodeInvalidProductCodeException "InvalidProductCodeException" +// The product code passed does not match the product code used for publishing +// the product. +// +// * ErrCodeInvalidUsageDimensionException "InvalidUsageDimensionException" +// The usage dimension does not match one of the UsageDimensions associated +// with products. +// +// * ErrCodeInvalidCustomerIdentifierException "InvalidCustomerIdentifierException" +// You have metered usage for a CustomerIdentifier that does not exist. +// +// * ErrCodeTimestampOutOfBoundsException "TimestampOutOfBoundsException" +// The timestamp value passed in the meterUsage() is out of allowed range. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The calls to the MeterUsage API are throttled. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/BatchMeterUsage +func (c *MarketplaceMetering) BatchMeterUsage(input *BatchMeterUsageInput) (*BatchMeterUsageOutput, error) { + req, out := c.BatchMeterUsageRequest(input) + err := req.Send() + return out, err +} + const opMeterUsage = "MeterUsage" // MeterUsageRequest generates a "aws/request.Request" representing the @@ -36,6 +129,7 @@ const opMeterUsage = "MeterUsage" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/MeterUsage func (c *MarketplaceMetering) MeterUsageRequest(input *MeterUsageInput) (req *request.Request, output *MeterUsageOutput) { op := &request.Operation{ Name: opMeterUsage, @@ -47,9 +141,8 @@ func (c *MarketplaceMetering) MeterUsageRequest(input *MeterUsageInput) (req *re input = &MeterUsageInput{} } - req = c.newRequest(op, input, output) output = &MeterUsageOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -58,6 +151,9 @@ func (c *MarketplaceMetering) MeterUsageRequest(input *MeterUsageInput) (req *re // API to emit metering records. For identical requests, the API is idempotent. // It simply returns the metering record ID. // +// MeterUsage is authenticated on the buyer's AWS account, generally when running +// from an EC2 instance on the AWS Marketplace. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -66,39 +162,231 @@ func (c *MarketplaceMetering) MeterUsageRequest(input *MeterUsageInput) (req *re // API operation MeterUsage for usage and error information. // // Returned Error Codes: -// * InternalServiceErrorException +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" // An internal error has occurred. Retry your request. If the problem persists, // post a message with details on the AWS forums. // -// * InvalidProductCodeException +// * ErrCodeInvalidProductCodeException "InvalidProductCodeException" // The product code passed does not match the product code used for publishing // the product. // -// * InvalidUsageDimensionException +// * ErrCodeInvalidUsageDimensionException "InvalidUsageDimensionException" // The usage dimension does not match one of the UsageDimensions associated // with products. // -// * InvalidEndpointRegionException +// * ErrCodeInvalidEndpointRegionException "InvalidEndpointRegionException" // The endpoint being called is in a region different from your EC2 instance. // The region of the Metering service endpoint and the region of the EC2 instance // must match. // -// * TimestampOutOfBoundsException +// * ErrCodeTimestampOutOfBoundsException "TimestampOutOfBoundsException" // The timestamp value passed in the meterUsage() is out of allowed range. // -// * DuplicateRequestException +// * ErrCodeDuplicateRequestException "DuplicateRequestException" // A metering record has already been emitted by the same EC2 instance for the // given {usageDimension, timestamp} with a different usageQuantity. // -// * ThrottlingException +// * ErrCodeThrottlingException "ThrottlingException" // The calls to the MeterUsage API are throttled. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/MeterUsage func (c *MarketplaceMetering) MeterUsage(input *MeterUsageInput) (*MeterUsageOutput, error) { req, out := c.MeterUsageRequest(input) err := req.Send() return out, err } +const opResolveCustomer = "ResolveCustomer" + +// ResolveCustomerRequest generates a "aws/request.Request" representing the +// client's request for the ResolveCustomer operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ResolveCustomer for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ResolveCustomer method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ResolveCustomerRequest method. +// req, resp := client.ResolveCustomerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/ResolveCustomer +func (c *MarketplaceMetering) ResolveCustomerRequest(input *ResolveCustomerInput) (req *request.Request, output *ResolveCustomerOutput) { + op := &request.Operation{ + Name: opResolveCustomer, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ResolveCustomerInput{} + } + + output = &ResolveCustomerOutput{} + req = c.newRequest(op, input, output) + return +} + +// ResolveCustomer API operation for AWSMarketplace Metering. +// +// ResolveCustomer is called by a SaaS application during the registration process. +// When a buyer visits your website during the registration process, the buyer +// submits a registration token through their browser. The registration token +// is resolved through this API to obtain a CustomerIdentifier and product code. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWSMarketplace Metering's +// API operation ResolveCustomer for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidTokenException "InvalidTokenException" +// +// * ErrCodeExpiredTokenException "ExpiredTokenException" +// The submitted registration token has expired. This can happen if the buyer's +// browser takes too long to redirect to your page, the buyer has resubmitted +// the registration token, or your application has held on to the registration +// token for too long. Your SaaS registration website should redeem this token +// as soon as it is submitted by the buyer's browser. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The calls to the MeterUsage API are throttled. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// An internal error has occurred. Retry your request. If the problem persists, +// post a message with details on the AWS forums. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/ResolveCustomer +func (c *MarketplaceMetering) ResolveCustomer(input *ResolveCustomerInput) (*ResolveCustomerOutput, error) { + req, out := c.ResolveCustomerRequest(input) + err := req.Send() + return out, err +} + +// A BatchMeterUsageRequest contains UsageRecords, which indicate quantities +// of usage within your application. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/BatchMeterUsageRequest +type BatchMeterUsageInput struct { + _ struct{} `type:"structure"` + + // Product code is used to uniquely identify a product in AWS Marketplace. The + // product code should be the same as the one used during the publishing of + // a new product. + // + // ProductCode is a required field + ProductCode *string `min:"1" type:"string" required:"true"` + + // The set of UsageRecords to submit. BatchMeterUsage accepts up to 25 UsageRecords + // at a time. + // + // UsageRecords is a required field + UsageRecords []*UsageRecord `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchMeterUsageInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchMeterUsageInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchMeterUsageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchMeterUsageInput"} + if s.ProductCode == nil { + invalidParams.Add(request.NewErrParamRequired("ProductCode")) + } + if s.ProductCode != nil && len(*s.ProductCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProductCode", 1)) + } + if s.UsageRecords == nil { + invalidParams.Add(request.NewErrParamRequired("UsageRecords")) + } + if s.UsageRecords != nil { + for i, v := range s.UsageRecords { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UsageRecords", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetProductCode sets the ProductCode field's value. +func (s *BatchMeterUsageInput) SetProductCode(v string) *BatchMeterUsageInput { + s.ProductCode = &v + return s +} + +// SetUsageRecords sets the UsageRecords field's value. +func (s *BatchMeterUsageInput) SetUsageRecords(v []*UsageRecord) *BatchMeterUsageInput { + s.UsageRecords = v + return s +} + +// Contains the UsageRecords processed by BatchMeterUsage and any records that +// have failed due to transient error. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/BatchMeterUsageResult +type BatchMeterUsageOutput struct { + _ struct{} `type:"structure"` + + // Contains all UsageRecords processed by BatchMeterUsage. These records were + // either honored by AWS Marketplace Metering Service or were invalid. + Results []*UsageRecordResult `type:"list"` + + // Contains all UsageRecords that were not processed by BatchMeterUsage. This + // is a list of UsageRecords. You can retry the failed request by making another + // BatchMeterUsage call with this list as input in the BatchMeterUsageRequest. + UnprocessedRecords []*UsageRecord `type:"list"` +} + +// String returns the string representation +func (s BatchMeterUsageOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchMeterUsageOutput) GoString() string { + return s.String() +} + +// SetResults sets the Results field's value. +func (s *BatchMeterUsageOutput) SetResults(v []*UsageRecordResult) *BatchMeterUsageOutput { + s.Results = v + return s +} + +// SetUnprocessedRecords sets the UnprocessedRecords field's value. +func (s *BatchMeterUsageOutput) SetUnprocessedRecords(v []*UsageRecord) *BatchMeterUsageOutput { + s.UnprocessedRecords = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/MeterUsageRequest type MeterUsageInput struct { _ struct{} `type:"structure"` @@ -122,8 +410,8 @@ type MeterUsageInput struct { // Timestamp is a required field Timestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` - // It will be one of the 'fcp dimension name' provided during the publishing - // of the product. + // It will be one of the fcp dimension name provided during the publishing of + // the product. // // UsageDimension is a required field UsageDimension *string `min:"1" type:"string" required:"true"` @@ -175,6 +463,37 @@ func (s *MeterUsageInput) Validate() error { return nil } +// SetDryRun sets the DryRun field's value. +func (s *MeterUsageInput) SetDryRun(v bool) *MeterUsageInput { + s.DryRun = &v + return s +} + +// SetProductCode sets the ProductCode field's value. +func (s *MeterUsageInput) SetProductCode(v string) *MeterUsageInput { + s.ProductCode = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *MeterUsageInput) SetTimestamp(v time.Time) *MeterUsageInput { + s.Timestamp = &v + return s +} + +// SetUsageDimension sets the UsageDimension field's value. +func (s *MeterUsageInput) SetUsageDimension(v string) *MeterUsageInput { + s.UsageDimension = &v + return s +} + +// SetUsageQuantity sets the UsageQuantity field's value. +func (s *MeterUsageInput) SetUsageQuantity(v int64) *MeterUsageInput { + s.UsageQuantity = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/MeterUsageResult type MeterUsageOutput struct { _ struct{} `type:"structure"` @@ -190,3 +509,255 @@ func (s MeterUsageOutput) String() string { func (s MeterUsageOutput) GoString() string { return s.String() } + +// SetMeteringRecordId sets the MeteringRecordId field's value. +func (s *MeterUsageOutput) SetMeteringRecordId(v string) *MeterUsageOutput { + s.MeteringRecordId = &v + return s +} + +// Contains input to the ResolveCustomer operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/ResolveCustomerRequest +type ResolveCustomerInput struct { + _ struct{} `type:"structure"` + + // When a buyer visits your website during the registration process, the buyer + // submits a registration token through the browser. The registration token + // is resolved to obtain a CustomerIdentifier and product code. + // + // RegistrationToken is a required field + RegistrationToken *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ResolveCustomerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResolveCustomerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ResolveCustomerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ResolveCustomerInput"} + if s.RegistrationToken == nil { + invalidParams.Add(request.NewErrParamRequired("RegistrationToken")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRegistrationToken sets the RegistrationToken field's value. +func (s *ResolveCustomerInput) SetRegistrationToken(v string) *ResolveCustomerInput { + s.RegistrationToken = &v + return s +} + +// The result of the ResolveCustomer operation. Contains the CustomerIdentifier +// and product code. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/ResolveCustomerResult +type ResolveCustomerOutput struct { + _ struct{} `type:"structure"` + + // The CustomerIdentifier is used to identify an individual customer in your + // application. Calls to BatchMeterUsage require CustomerIdentifiers for each + // UsageRecord. + CustomerIdentifier *string `min:"1" type:"string"` + + // The product code is returned to confirm that the buyer is registering for + // your product. Subsequent BatchMeterUsage calls should be made using this + // product code. + ProductCode *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ResolveCustomerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResolveCustomerOutput) GoString() string { + return s.String() +} + +// SetCustomerIdentifier sets the CustomerIdentifier field's value. +func (s *ResolveCustomerOutput) SetCustomerIdentifier(v string) *ResolveCustomerOutput { + s.CustomerIdentifier = &v + return s +} + +// SetProductCode sets the ProductCode field's value. +func (s *ResolveCustomerOutput) SetProductCode(v string) *ResolveCustomerOutput { + s.ProductCode = &v + return s +} + +// A UsageRecord indicates a quantity of usage for a given product, customer, +// dimension and time. +// +// Multiple requests with the same UsageRecords as input will be deduplicated +// to prevent double charges. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/UsageRecord +type UsageRecord struct { + _ struct{} `type:"structure"` + + // The CustomerIdentifier is obtained through the ResolveCustomer operation + // and represents an individual buyer in your application. + // + // CustomerIdentifier is a required field + CustomerIdentifier *string `min:"1" type:"string" required:"true"` + + // During the process of registering a product on AWS Marketplace, up to eight + // dimensions are specified. These represent different units of value in your + // application. + // + // Dimension is a required field + Dimension *string `min:"1" type:"string" required:"true"` + + // The quantity of usage consumed by the customer for the given dimension and + // time. + // + // Quantity is a required field + Quantity *int64 `type:"integer" required:"true"` + + // Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions + // of the timestamp will be ignored. + // + // Your application can meter usage for up to one hour in the past. + // + // Timestamp is a required field + Timestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` +} + +// String returns the string representation +func (s UsageRecord) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UsageRecord) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UsageRecord) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UsageRecord"} + if s.CustomerIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("CustomerIdentifier")) + } + if s.CustomerIdentifier != nil && len(*s.CustomerIdentifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CustomerIdentifier", 1)) + } + if s.Dimension == nil { + invalidParams.Add(request.NewErrParamRequired("Dimension")) + } + if s.Dimension != nil && len(*s.Dimension) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Dimension", 1)) + } + if s.Quantity == nil { + invalidParams.Add(request.NewErrParamRequired("Quantity")) + } + if s.Timestamp == nil { + invalidParams.Add(request.NewErrParamRequired("Timestamp")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCustomerIdentifier sets the CustomerIdentifier field's value. +func (s *UsageRecord) SetCustomerIdentifier(v string) *UsageRecord { + s.CustomerIdentifier = &v + return s +} + +// SetDimension sets the Dimension field's value. +func (s *UsageRecord) SetDimension(v string) *UsageRecord { + s.Dimension = &v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *UsageRecord) SetQuantity(v int64) *UsageRecord { + s.Quantity = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *UsageRecord) SetTimestamp(v time.Time) *UsageRecord { + s.Timestamp = &v + return s +} + +// A UsageRecordResult indicates the status of a given UsageRecord processed +// by BatchMeterUsage. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/UsageRecordResult +type UsageRecordResult struct { + _ struct{} `type:"structure"` + + // The MeteringRecordId is a unique identifier for this metering event. + MeteringRecordId *string `type:"string"` + + // The UsageRecordResult Status indicates the status of an individual UsageRecord + // processed by BatchMeterUsage. + // + // * Success- The UsageRecord was accepted and honored by BatchMeterUsage. + // + // * CustomerNotSubscribed- The CustomerIdentifier specified is not subscribed + // to your product. The UsageRecord was not honored. Future UsageRecords + // for this customer will fail until the customer subscribes to your product. + // + // * DuplicateRecord- Indicates that the UsageRecord was invalid and not + // honored. A previously metered UsageRecord had the same customer, dimension, + // and time, but a different quantity. + Status *string `type:"string" enum:"UsageRecordResultStatus"` + + // The UsageRecord that was part of the BatchMeterUsage request. + UsageRecord *UsageRecord `type:"structure"` +} + +// String returns the string representation +func (s UsageRecordResult) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UsageRecordResult) GoString() string { + return s.String() +} + +// SetMeteringRecordId sets the MeteringRecordId field's value. +func (s *UsageRecordResult) SetMeteringRecordId(v string) *UsageRecordResult { + s.MeteringRecordId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *UsageRecordResult) SetStatus(v string) *UsageRecordResult { + s.Status = &v + return s +} + +// SetUsageRecord sets the UsageRecord field's value. +func (s *UsageRecordResult) SetUsageRecord(v *UsageRecord) *UsageRecordResult { + s.UsageRecord = v + return s +} + +const ( + // UsageRecordResultStatusSuccess is a UsageRecordResultStatus enum value + UsageRecordResultStatusSuccess = "Success" + + // UsageRecordResultStatusCustomerNotSubscribed is a UsageRecordResultStatus enum value + UsageRecordResultStatusCustomerNotSubscribed = "CustomerNotSubscribed" + + // UsageRecordResultStatusDuplicateRecord is a UsageRecordResultStatus enum value + UsageRecordResultStatusDuplicateRecord = "DuplicateRecord" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/errors.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/errors.go new file mode 100644 index 000000000..edc757373 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/errors.go @@ -0,0 +1,74 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package marketplacemetering + +const ( + + // ErrCodeDuplicateRequestException for service response error code + // "DuplicateRequestException". + // + // A metering record has already been emitted by the same EC2 instance for the + // given {usageDimension, timestamp} with a different usageQuantity. + ErrCodeDuplicateRequestException = "DuplicateRequestException" + + // ErrCodeExpiredTokenException for service response error code + // "ExpiredTokenException". + // + // The submitted registration token has expired. This can happen if the buyer's + // browser takes too long to redirect to your page, the buyer has resubmitted + // the registration token, or your application has held on to the registration + // token for too long. Your SaaS registration website should redeem this token + // as soon as it is submitted by the buyer's browser. + ErrCodeExpiredTokenException = "ExpiredTokenException" + + // ErrCodeInternalServiceErrorException for service response error code + // "InternalServiceErrorException". + // + // An internal error has occurred. Retry your request. If the problem persists, + // post a message with details on the AWS forums. + ErrCodeInternalServiceErrorException = "InternalServiceErrorException" + + // ErrCodeInvalidCustomerIdentifierException for service response error code + // "InvalidCustomerIdentifierException". + // + // You have metered usage for a CustomerIdentifier that does not exist. + ErrCodeInvalidCustomerIdentifierException = "InvalidCustomerIdentifierException" + + // ErrCodeInvalidEndpointRegionException for service response error code + // "InvalidEndpointRegionException". + // + // The endpoint being called is in a region different from your EC2 instance. + // The region of the Metering service endpoint and the region of the EC2 instance + // must match. + ErrCodeInvalidEndpointRegionException = "InvalidEndpointRegionException" + + // ErrCodeInvalidProductCodeException for service response error code + // "InvalidProductCodeException". + // + // The product code passed does not match the product code used for publishing + // the product. + ErrCodeInvalidProductCodeException = "InvalidProductCodeException" + + // ErrCodeInvalidTokenException for service response error code + // "InvalidTokenException". + ErrCodeInvalidTokenException = "InvalidTokenException" + + // ErrCodeInvalidUsageDimensionException for service response error code + // "InvalidUsageDimensionException". + // + // The usage dimension does not match one of the UsageDimensions associated + // with products. + ErrCodeInvalidUsageDimensionException = "InvalidUsageDimensionException" + + // ErrCodeThrottlingException for service response error code + // "ThrottlingException". + // + // The calls to the MeterUsage API are throttled. + ErrCodeThrottlingException = "ThrottlingException" + + // ErrCodeTimestampOutOfBoundsException for service response error code + // "TimestampOutOfBoundsException". + // + // The timestamp value passed in the meterUsage() is out of allowed range. + ErrCodeTimestampOutOfBoundsException = "TimestampOutOfBoundsException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/examples_test.go index ec4f5134a..eb44b9b71 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/examples_test.go @@ -15,13 +15,39 @@ import ( var _ time.Duration var _ bytes.Buffer -func ExampleMarketplaceMetering_MeterUsage() { - sess, err := session.NewSession() +func ExampleMarketplaceMetering_BatchMeterUsage() { + sess := session.Must(session.NewSession()) + + svc := marketplacemetering.New(sess) + + params := &marketplacemetering.BatchMeterUsageInput{ + ProductCode: aws.String("ProductCode"), // Required + UsageRecords: []*marketplacemetering.UsageRecord{ // Required + { // Required + CustomerIdentifier: aws.String("CustomerIdentifier"), // Required + Dimension: aws.String("UsageDimension"), // Required + Quantity: aws.Int64(1), // Required + Timestamp: aws.Time(time.Now()), // Required + }, + // More values... + }, + } + resp, err := svc.BatchMeterUsage(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMarketplaceMetering_MeterUsage() { + sess := session.Must(session.NewSession()) + svc := marketplacemetering.New(sess) params := &marketplacemetering.MeterUsageInput{ @@ -43,3 +69,24 @@ func ExampleMarketplaceMetering_MeterUsage() { // Pretty-print the response data. fmt.Println(resp) } + +func ExampleMarketplaceMetering_ResolveCustomer() { + sess := session.Must(session.NewSession()) + + svc := marketplacemetering.New(sess) + + params := &marketplacemetering.ResolveCustomerInput{ + RegistrationToken: aws.String("NonEmptyString"), // Required + } + resp, err := svc.ResolveCustomer(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/marketplacemeteringiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/marketplacemeteringiface/interface.go index a21d7f33f..ca0c772d7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/marketplacemeteringiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/marketplacemeteringiface/interface.go @@ -25,7 +25,7 @@ import ( // // myFunc uses an SDK service client to make a request to // // AWSMarketplace Metering. // func myFunc(svc marketplacemeteringiface.MarketplaceMeteringAPI) bool { -// // Make svc.MeterUsage request +// // Make svc.BatchMeterUsage request // } // // func main() { @@ -41,11 +41,11 @@ import ( // type mockMarketplaceMeteringClient struct { // marketplacemeteringiface.MarketplaceMeteringAPI // } -// func (m *mockMarketplaceMeteringClient) MeterUsage(input *marketplacemetering.MeterUsageInput) (*marketplacemetering.MeterUsageOutput, error) { +// func (m *mockMarketplaceMeteringClient) BatchMeterUsage(input *marketplacemetering.BatchMeterUsageInput) (*marketplacemetering.BatchMeterUsageOutput, error) { // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockMarketplaceMeteringClient{} // @@ -59,9 +59,17 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type MarketplaceMeteringAPI interface { + BatchMeterUsageRequest(*marketplacemetering.BatchMeterUsageInput) (*request.Request, *marketplacemetering.BatchMeterUsageOutput) + + BatchMeterUsage(*marketplacemetering.BatchMeterUsageInput) (*marketplacemetering.BatchMeterUsageOutput, error) + MeterUsageRequest(*marketplacemetering.MeterUsageInput) (*request.Request, *marketplacemetering.MeterUsageOutput) MeterUsage(*marketplacemetering.MeterUsageInput) (*marketplacemetering.MeterUsageOutput, error) + + ResolveCustomerRequest(*marketplacemetering.ResolveCustomerInput) (*request.Request, *marketplacemetering.ResolveCustomerOutput) + + ResolveCustomer(*marketplacemetering.ResolveCustomerInput) (*marketplacemetering.ResolveCustomerOutput, error) } var _ MarketplaceMeteringAPI = (*marketplacemetering.MarketplaceMetering)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/service.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/service.go index 9ab3a08c8..60419b67e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/service.go @@ -19,9 +19,22 @@ import ( // // Submitting Metering Records // -// MeterUsage- Submits the metering record for a Marketplace product. -//The service client's operations are safe to be used concurrently. +// * MeterUsage- Submits the metering record for a Marketplace product. MeterUsage +// is called from an EC2 instance. +// +// * BatchMeterUsage- Submits the metering record for a set of customers. +// BatchMeterUsage is called from a software-as-a-service (SaaS) application. +// +// Accepting New Customers +// +// * ResolveCustomer- Called by a SaaS application during the registration +// process. When a buyer visits your website during the registration process, +// the buyer submits a Registration Token through the browser. The Registration +// Token is resolved through this API to obtain a CustomerIdentifier and +// Product Code. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14 type MarketplaceMetering struct { *client.Client } @@ -32,8 +45,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "metering.marketplace" +// Service information constants +const ( + ServiceName = "metering.marketplace" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the MarketplaceMetering client with a session. // If additional configuration is needed for the client instance use the optional @@ -46,18 +62,21 @@ const ServiceName = "metering.marketplace" // // Create a MarketplaceMetering client with additional configuration // svc := marketplacemetering.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *MarketplaceMetering { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *MarketplaceMetering { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *MarketplaceMetering { + if len(signingName) == 0 { + signingName = "aws-marketplace" + } svc := &MarketplaceMetering{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, - SigningName: "aws-marketplace", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2016-01-14", diff --git a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/api.go b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/api.go index 1d4418cdd..cf3f7c63e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/api.go @@ -38,6 +38,7 @@ const opPutEvents = "PutEvents" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//PutEvents func (c *MobileAnalytics) PutEventsRequest(input *PutEventsInput) (req *request.Request, output *PutEventsOutput) { op := &request.Operation{ Name: opPutEvents, @@ -49,11 +50,10 @@ func (c *MobileAnalytics) PutEventsRequest(input *PutEventsInput) (req *request. input = &PutEventsInput{} } + output = &PutEventsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutEventsOutput{} - req.Data = output return } @@ -71,9 +71,10 @@ func (c *MobileAnalytics) PutEventsRequest(input *PutEventsInput) (req *request. // API operation PutEvents for usage and error information. // // Returned Error Codes: -// * BadRequestException +// * ErrCodeBadRequestException "BadRequestException" // An exception object returned when a request fails. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//PutEvents func (c *MobileAnalytics) PutEvents(input *PutEventsInput) (*PutEventsOutput, error) { req, out := c.PutEventsRequest(input) err := req.Send() @@ -81,6 +82,7 @@ func (c *MobileAnalytics) PutEvents(input *PutEventsInput) (*PutEventsOutput, er } // A JSON object representing a batch of unique event occurrences in your app. +// Please also see https://docs.aws.amazon.com/goto/WebAPI//Event type Event struct { _ struct{} `type:"structure"` @@ -152,7 +154,44 @@ func (s *Event) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *Event) SetAttributes(v map[string]*string) *Event { + s.Attributes = v + return s +} + +// SetEventType sets the EventType field's value. +func (s *Event) SetEventType(v string) *Event { + s.EventType = &v + return s +} + +// SetMetrics sets the Metrics field's value. +func (s *Event) SetMetrics(v map[string]*float64) *Event { + s.Metrics = v + return s +} + +// SetSession sets the Session field's value. +func (s *Event) SetSession(v *Session) *Event { + s.Session = v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *Event) SetTimestamp(v string) *Event { + s.Timestamp = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *Event) SetVersion(v string) *Event { + s.Version = &v + return s +} + // A container for the data needed for a PutEvent operation +// Please also see https://docs.aws.amazon.com/goto/WebAPI//PutEventsInput type PutEventsInput struct { _ struct{} `type:"structure"` @@ -207,6 +246,25 @@ func (s *PutEventsInput) Validate() error { return nil } +// SetClientContext sets the ClientContext field's value. +func (s *PutEventsInput) SetClientContext(v string) *PutEventsInput { + s.ClientContext = &v + return s +} + +// SetClientContextEncoding sets the ClientContextEncoding field's value. +func (s *PutEventsInput) SetClientContextEncoding(v string) *PutEventsInput { + s.ClientContextEncoding = &v + return s +} + +// SetEvents sets the Events field's value. +func (s *PutEventsInput) SetEvents(v []*Event) *PutEventsInput { + s.Events = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//PutEventsOutput type PutEventsOutput struct { _ struct{} `type:"structure"` } @@ -222,6 +280,7 @@ func (s PutEventsOutput) GoString() string { } // Describes the session. Session information is required on ALL events. +// Please also see https://docs.aws.amazon.com/goto/WebAPI//Session type Session struct { _ struct{} `type:"structure"` @@ -262,3 +321,27 @@ func (s *Session) Validate() error { } return nil } + +// SetDuration sets the Duration field's value. +func (s *Session) SetDuration(v int64) *Session { + s.Duration = &v + return s +} + +// SetId sets the Id field's value. +func (s *Session) SetId(v string) *Session { + s.Id = &v + return s +} + +// SetStartTimestamp sets the StartTimestamp field's value. +func (s *Session) SetStartTimestamp(v string) *Session { + s.StartTimestamp = &v + return s +} + +// SetStopTimestamp sets the StopTimestamp field's value. +func (s *Session) SetStopTimestamp(v string) *Session { + s.StopTimestamp = &v + return s +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/errors.go b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/errors.go new file mode 100644 index 000000000..5ef03d700 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/errors.go @@ -0,0 +1,12 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package mobileanalytics + +const ( + + // ErrCodeBadRequestException for service response error code + // "BadRequestException". + // + // An exception object returned when a request fails. + ErrCodeBadRequestException = "BadRequestException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/examples_test.go index 3a38a11f9..ad401a3a8 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleMobileAnalytics_PutEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := mobileanalytics.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface/interface.go index 0dfdfdb7a..fd782d4b5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockMobileAnalyticsClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/service.go b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/service.go index a6252f70d..421238f34 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/service.go @@ -13,8 +13,9 @@ import ( // Amazon Mobile Analytics is a service for collecting, visualizing, and understanding // app usage data at scale. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ type MobileAnalytics struct { *client.Client } @@ -25,8 +26,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "mobileanalytics" +// Service information constants +const ( + ServiceName = "mobileanalytics" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the MobileAnalytics client with a session. // If additional configuration is needed for the client instance use the optional @@ -39,17 +43,18 @@ const ServiceName = "mobileanalytics" // // Create a MobileAnalytics client with additional configuration // svc := mobileanalytics.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *MobileAnalytics { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *MobileAnalytics { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *MobileAnalytics { svc := &MobileAnalytics{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-06-05", diff --git a/vendor/github.com/aws/aws-sdk-go/service/mturk/api.go b/vendor/github.com/aws/aws-sdk-go/service/mturk/api.go new file mode 100644 index 000000000..9eca7ad34 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/mturk/api.go @@ -0,0 +1,8852 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package mturk provides a client for Amazon Mechanical Turk. +package mturk + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opAcceptQualificationRequest = "AcceptQualificationRequest" + +// AcceptQualificationRequestRequest generates a "aws/request.Request" representing the +// client's request for the AcceptQualificationRequest operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AcceptQualificationRequest for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AcceptQualificationRequest method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AcceptQualificationRequestRequest method. +// req, resp := client.AcceptQualificationRequestRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/AcceptQualificationRequest +func (c *MTurk) AcceptQualificationRequestRequest(input *AcceptQualificationRequestInput) (req *request.Request, output *AcceptQualificationRequestOutput) { + op := &request.Operation{ + Name: opAcceptQualificationRequest, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AcceptQualificationRequestInput{} + } + + output = &AcceptQualificationRequestOutput{} + req = c.newRequest(op, input, output) + return +} + +// AcceptQualificationRequest API operation for Amazon Mechanical Turk. +// +// The AcceptQualificationRequest operation approves a Worker's request for +// a Qualification. +// +// Only the owner of the Qualification type can grant a Qualification request +// for that type. +// +// A successful request for the AcceptQualificationRequest operation returns +// with no errors and an empty body. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation AcceptQualificationRequest for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/AcceptQualificationRequest +func (c *MTurk) AcceptQualificationRequest(input *AcceptQualificationRequestInput) (*AcceptQualificationRequestOutput, error) { + req, out := c.AcceptQualificationRequestRequest(input) + err := req.Send() + return out, err +} + +const opApproveAssignment = "ApproveAssignment" + +// ApproveAssignmentRequest generates a "aws/request.Request" representing the +// client's request for the ApproveAssignment operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ApproveAssignment for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ApproveAssignment method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ApproveAssignmentRequest method. +// req, resp := client.ApproveAssignmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ApproveAssignment +func (c *MTurk) ApproveAssignmentRequest(input *ApproveAssignmentInput) (req *request.Request, output *ApproveAssignmentOutput) { + op := &request.Operation{ + Name: opApproveAssignment, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ApproveAssignmentInput{} + } + + output = &ApproveAssignmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// ApproveAssignment API operation for Amazon Mechanical Turk. +// +// The ApproveAssignment operation approves the results of a completed assignment. +// +// Approving an assignment initiates two payments from the Requester's Amazon.com +// account +// +// * The Worker who submitted the results is paid the reward specified in +// the HIT. +// +// * Amazon Mechanical Turk fees are debited. +// +// If the Requester's account does not have adequate funds for these payments, +// the call to ApproveAssignment returns an exception, and the approval is not +// processed. You can include an optional feedback message with the approval, +// which the Worker can see in the Status section of the web site. +// +// You can also call this operation for assignments that were previous rejected +// and approve them by explicitly overriding the previous rejection. This only +// works on rejected assignments that were submitted within the previous 30 +// days and only if the assignment's related HIT has not been deleted. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation ApproveAssignment for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ApproveAssignment +func (c *MTurk) ApproveAssignment(input *ApproveAssignmentInput) (*ApproveAssignmentOutput, error) { + req, out := c.ApproveAssignmentRequest(input) + err := req.Send() + return out, err +} + +const opAssociateQualificationWithWorker = "AssociateQualificationWithWorker" + +// AssociateQualificationWithWorkerRequest generates a "aws/request.Request" representing the +// client's request for the AssociateQualificationWithWorker operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AssociateQualificationWithWorker for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AssociateQualificationWithWorker method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AssociateQualificationWithWorkerRequest method. +// req, resp := client.AssociateQualificationWithWorkerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/AssociateQualificationWithWorker +func (c *MTurk) AssociateQualificationWithWorkerRequest(input *AssociateQualificationWithWorkerInput) (req *request.Request, output *AssociateQualificationWithWorkerOutput) { + op := &request.Operation{ + Name: opAssociateQualificationWithWorker, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AssociateQualificationWithWorkerInput{} + } + + output = &AssociateQualificationWithWorkerOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssociateQualificationWithWorker API operation for Amazon Mechanical Turk. +// +// The AssociateQualificationWithWorker operation gives a Worker a Qualification. +// AssociateQualificationWithWorker does not require that the Worker submit +// a Qualification request. It gives the Qualification directly to the Worker. +// +// You can only assign a Qualification of a Qualification type that you created +// (using the CreateQualificationType operation). +// +// Note: AssociateQualificationWithWorker does not affect any pending Qualification +// requests for the Qualification by the Worker. If you assign a Qualification +// to a Worker, then later grant a Qualification request made by the Worker, +// the granting of the request may modify the Qualification score. To resolve +// a pending Qualification request without affecting the Qualification the Worker +// already has, reject the request with the RejectQualificationRequest operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation AssociateQualificationWithWorker for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/AssociateQualificationWithWorker +func (c *MTurk) AssociateQualificationWithWorker(input *AssociateQualificationWithWorkerInput) (*AssociateQualificationWithWorkerOutput, error) { + req, out := c.AssociateQualificationWithWorkerRequest(input) + err := req.Send() + return out, err +} + +const opCreateAdditionalAssignmentsForHIT = "CreateAdditionalAssignmentsForHIT" + +// CreateAdditionalAssignmentsForHITRequest generates a "aws/request.Request" representing the +// client's request for the CreateAdditionalAssignmentsForHIT operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateAdditionalAssignmentsForHIT for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateAdditionalAssignmentsForHIT method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateAdditionalAssignmentsForHITRequest method. +// req, resp := client.CreateAdditionalAssignmentsForHITRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateAdditionalAssignmentsForHIT +func (c *MTurk) CreateAdditionalAssignmentsForHITRequest(input *CreateAdditionalAssignmentsForHITInput) (req *request.Request, output *CreateAdditionalAssignmentsForHITOutput) { + op := &request.Operation{ + Name: opCreateAdditionalAssignmentsForHIT, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateAdditionalAssignmentsForHITInput{} + } + + output = &CreateAdditionalAssignmentsForHITOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateAdditionalAssignmentsForHIT API operation for Amazon Mechanical Turk. +// +// The CreateAdditionalAssignmentsForHIT operation increases the maximum number +// of assignments of an existing HIT. +// +// To extend the maximum number of assignments, specify the number of additional +// assignments. +// +// HITs created with fewer than 10 assignments cannot be extended to have 10 +// or more assignments. Attempting to add assignments in a way that brings the +// total number of assignments for a HIT from fewer than 10 assignments to 10 +// or more assignments will result in an AWS.MechanicalTurk.InvalidMaximumAssignmentsIncrease +// exception. +// +// HITs that were created before July 22, 2015 cannot be extended. Attempting +// to extend HITs that were created before July 22, 2015 will result in an AWS.MechanicalTurk.HITTooOldForExtension +// exception. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation CreateAdditionalAssignmentsForHIT for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateAdditionalAssignmentsForHIT +func (c *MTurk) CreateAdditionalAssignmentsForHIT(input *CreateAdditionalAssignmentsForHITInput) (*CreateAdditionalAssignmentsForHITOutput, error) { + req, out := c.CreateAdditionalAssignmentsForHITRequest(input) + err := req.Send() + return out, err +} + +const opCreateHIT = "CreateHIT" + +// CreateHITRequest generates a "aws/request.Request" representing the +// client's request for the CreateHIT operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateHIT for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateHIT method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateHITRequest method. +// req, resp := client.CreateHITRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHIT +func (c *MTurk) CreateHITRequest(input *CreateHITInput) (req *request.Request, output *CreateHITOutput) { + op := &request.Operation{ + Name: opCreateHIT, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateHITInput{} + } + + output = &CreateHITOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateHIT API operation for Amazon Mechanical Turk. +// +// The CreateHIT operation creates a new Human Intelligence Task (HIT). The +// new HIT is made available for Workers to find and accept on the Amazon Mechanical +// Turk website. +// +// This operation allows you to specify a new HIT by passing in values for the +// properties of the HIT, such as its title, reward amount and number of assignments. +// When you pass these values to CreateHIT, a new HIT is created for you, with +// a new HITTypeID. The HITTypeID can be used to create additional HITs in the +// future without needing to specify common parameters such as the title, description +// and reward amount each time. +// +// An alternative way to create HITs is to first generate a HITTypeID using +// the CreateHITType operation and then call the CreateHITWithHITType operation. +// This is the recommended best practice for Requesters who are creating large +// numbers of HITs. +// +// CreateHIT also supports several ways to provide question data: by providing +// a value for the Question parameter that fully specifies the contents of the +// HIT, or by providing a HitLayoutId and associated HitLayoutParameters. +// +// If a HIT is created with 10 or more maximum assignments, there is an additional +// fee. For more information, see Amazon Mechanical Turk Pricing (https://requester.mturk.com/pricing). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation CreateHIT for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHIT +func (c *MTurk) CreateHIT(input *CreateHITInput) (*CreateHITOutput, error) { + req, out := c.CreateHITRequest(input) + err := req.Send() + return out, err +} + +const opCreateHITType = "CreateHITType" + +// CreateHITTypeRequest generates a "aws/request.Request" representing the +// client's request for the CreateHITType operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateHITType for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateHITType method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateHITTypeRequest method. +// req, resp := client.CreateHITTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITType +func (c *MTurk) CreateHITTypeRequest(input *CreateHITTypeInput) (req *request.Request, output *CreateHITTypeOutput) { + op := &request.Operation{ + Name: opCreateHITType, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateHITTypeInput{} + } + + output = &CreateHITTypeOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateHITType API operation for Amazon Mechanical Turk. +// +// The CreateHITType operation creates a new HIT type. This operation allows +// you to define a standard set of HIT properties to use when creating HITs. +// If you register a HIT type with values that match an existing HIT type, the +// HIT type ID of the existing type will be returned. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation CreateHITType for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITType +func (c *MTurk) CreateHITType(input *CreateHITTypeInput) (*CreateHITTypeOutput, error) { + req, out := c.CreateHITTypeRequest(input) + err := req.Send() + return out, err +} + +const opCreateHITWithHITType = "CreateHITWithHITType" + +// CreateHITWithHITTypeRequest generates a "aws/request.Request" representing the +// client's request for the CreateHITWithHITType operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateHITWithHITType for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateHITWithHITType method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateHITWithHITTypeRequest method. +// req, resp := client.CreateHITWithHITTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITWithHITType +func (c *MTurk) CreateHITWithHITTypeRequest(input *CreateHITWithHITTypeInput) (req *request.Request, output *CreateHITWithHITTypeOutput) { + op := &request.Operation{ + Name: opCreateHITWithHITType, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateHITWithHITTypeInput{} + } + + output = &CreateHITWithHITTypeOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateHITWithHITType API operation for Amazon Mechanical Turk. +// +// The CreateHITWithHITType operation creates a new Human Intelligence Task +// (HIT) using an existing HITTypeID generated by the CreateHITType operation. +// +// This is an alternative way to create HITs from the CreateHIT operation. This +// is the recommended best practice for Requesters who are creating large numbers +// of HITs. +// +// CreateHITWithHITType also supports several ways to provide question data: +// by providing a value for the Question parameter that fully specifies the +// contents of the HIT, or by providing a HitLayoutId and associated HitLayoutParameters. +// +// If a HIT is created with 10 or more maximum assignments, there is an additional +// fee. For more information, see Amazon Mechanical Turk Pricing (https://requester.mturk.com/pricing). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation CreateHITWithHITType for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITWithHITType +func (c *MTurk) CreateHITWithHITType(input *CreateHITWithHITTypeInput) (*CreateHITWithHITTypeOutput, error) { + req, out := c.CreateHITWithHITTypeRequest(input) + err := req.Send() + return out, err +} + +const opCreateQualificationType = "CreateQualificationType" + +// CreateQualificationTypeRequest generates a "aws/request.Request" representing the +// client's request for the CreateQualificationType operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateQualificationType for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateQualificationType method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateQualificationTypeRequest method. +// req, resp := client.CreateQualificationTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateQualificationType +func (c *MTurk) CreateQualificationTypeRequest(input *CreateQualificationTypeInput) (req *request.Request, output *CreateQualificationTypeOutput) { + op := &request.Operation{ + Name: opCreateQualificationType, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateQualificationTypeInput{} + } + + output = &CreateQualificationTypeOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateQualificationType API operation for Amazon Mechanical Turk. +// +// The CreateQualificationType operation creates a new Qualification type, which +// is represented by a QualificationType data structure. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation CreateQualificationType for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateQualificationType +func (c *MTurk) CreateQualificationType(input *CreateQualificationTypeInput) (*CreateQualificationTypeOutput, error) { + req, out := c.CreateQualificationTypeRequest(input) + err := req.Send() + return out, err +} + +const opCreateWorkerBlock = "CreateWorkerBlock" + +// CreateWorkerBlockRequest generates a "aws/request.Request" representing the +// client's request for the CreateWorkerBlock operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateWorkerBlock for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateWorkerBlock method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateWorkerBlockRequest method. +// req, resp := client.CreateWorkerBlockRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateWorkerBlock +func (c *MTurk) CreateWorkerBlockRequest(input *CreateWorkerBlockInput) (req *request.Request, output *CreateWorkerBlockOutput) { + op := &request.Operation{ + Name: opCreateWorkerBlock, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateWorkerBlockInput{} + } + + output = &CreateWorkerBlockOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateWorkerBlock API operation for Amazon Mechanical Turk. +// +// The CreateWorkerBlock operation allows you to prevent a Worker from working +// on your HITs. For example, you can block a Worker who is producing poor quality +// work. You can block up to 100,000 Workers. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation CreateWorkerBlock for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateWorkerBlock +func (c *MTurk) CreateWorkerBlock(input *CreateWorkerBlockInput) (*CreateWorkerBlockOutput, error) { + req, out := c.CreateWorkerBlockRequest(input) + err := req.Send() + return out, err +} + +const opDeleteHIT = "DeleteHIT" + +// DeleteHITRequest generates a "aws/request.Request" representing the +// client's request for the DeleteHIT operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteHIT for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteHIT method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteHITRequest method. +// req, resp := client.DeleteHITRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteHIT +func (c *MTurk) DeleteHITRequest(input *DeleteHITInput) (req *request.Request, output *DeleteHITOutput) { + op := &request.Operation{ + Name: opDeleteHIT, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteHITInput{} + } + + output = &DeleteHITOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteHIT API operation for Amazon Mechanical Turk. +// +// The DeleteHIT operation is used to delete HIT that is no longer needed. Only +// the Requester who created the HIT can delete it. +// +// You can only dispose of HITs that are in the Reviewable state, with all of +// their submitted assignments already either approved or rejected. If you call +// the DeleteHIT operation on a HIT that is not in the Reviewable state (for +// example, that has not expired, or still has active assignments), or on a +// HIT that is Reviewable but without all of its submitted assignments already +// approved or rejected, the service will return an error. +// +// HITs are automatically disposed of after 120 days. +// +// After you dispose of a HIT, you can no longer approve the HIT's rejected +// assignments. +// +// Disposed HITs are not returned in results for the ListHITs operation. +// +// Disposing HITs can improve the performance of operations such as ListReviewableHITs +// and ListHITs. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation DeleteHIT for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteHIT +func (c *MTurk) DeleteHIT(input *DeleteHITInput) (*DeleteHITOutput, error) { + req, out := c.DeleteHITRequest(input) + err := req.Send() + return out, err +} + +const opDeleteQualificationType = "DeleteQualificationType" + +// DeleteQualificationTypeRequest generates a "aws/request.Request" representing the +// client's request for the DeleteQualificationType operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteQualificationType for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteQualificationType method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteQualificationTypeRequest method. +// req, resp := client.DeleteQualificationTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteQualificationType +func (c *MTurk) DeleteQualificationTypeRequest(input *DeleteQualificationTypeInput) (req *request.Request, output *DeleteQualificationTypeOutput) { + op := &request.Operation{ + Name: opDeleteQualificationType, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteQualificationTypeInput{} + } + + output = &DeleteQualificationTypeOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteQualificationType API operation for Amazon Mechanical Turk. +// +// The DeleteQualificationType deletes a Qualification type and deletes any +// HIT types that are associated with the Qualification type. +// +// This operation does not revoke Qualifications already assigned to Workers +// because the Qualifications might be needed for active HITs. If there are +// any pending requests for the Qualification type, Amazon Mechanical Turk rejects +// those requests. After you delete a Qualification type, you can no longer +// use it to create HITs or HIT types. +// +// DeleteQualificationType must wait for all the HITs that use the deleted Qualification +// type to be deleted before completing. It may take up to 48 hours before DeleteQualificationType +// completes and the unique name of the Qualification type is available for +// reuse with CreateQualificationType. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation DeleteQualificationType for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteQualificationType +func (c *MTurk) DeleteQualificationType(input *DeleteQualificationTypeInput) (*DeleteQualificationTypeOutput, error) { + req, out := c.DeleteQualificationTypeRequest(input) + err := req.Send() + return out, err +} + +const opDeleteWorkerBlock = "DeleteWorkerBlock" + +// DeleteWorkerBlockRequest generates a "aws/request.Request" representing the +// client's request for the DeleteWorkerBlock operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteWorkerBlock for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteWorkerBlock method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteWorkerBlockRequest method. +// req, resp := client.DeleteWorkerBlockRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteWorkerBlock +func (c *MTurk) DeleteWorkerBlockRequest(input *DeleteWorkerBlockInput) (req *request.Request, output *DeleteWorkerBlockOutput) { + op := &request.Operation{ + Name: opDeleteWorkerBlock, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteWorkerBlockInput{} + } + + output = &DeleteWorkerBlockOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteWorkerBlock API operation for Amazon Mechanical Turk. +// +// The DeleteWorkerBlock operation allows you to reinstate a blocked Worker +// to work on your HITs. This operation reverses the effects of the CreateWorkerBlock +// operation. You need the Worker ID to use this operation. If the Worker ID +// is missing or invalid, this operation fails and returns the message “WorkerId +// is invalid.” If the specified Worker is not blocked, this operation returns +// successfully. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation DeleteWorkerBlock for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteWorkerBlock +func (c *MTurk) DeleteWorkerBlock(input *DeleteWorkerBlockInput) (*DeleteWorkerBlockOutput, error) { + req, out := c.DeleteWorkerBlockRequest(input) + err := req.Send() + return out, err +} + +const opDisassociateQualificationFromWorker = "DisassociateQualificationFromWorker" + +// DisassociateQualificationFromWorkerRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateQualificationFromWorker operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DisassociateQualificationFromWorker for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DisassociateQualificationFromWorker method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DisassociateQualificationFromWorkerRequest method. +// req, resp := client.DisassociateQualificationFromWorkerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DisassociateQualificationFromWorker +func (c *MTurk) DisassociateQualificationFromWorkerRequest(input *DisassociateQualificationFromWorkerInput) (req *request.Request, output *DisassociateQualificationFromWorkerOutput) { + op := &request.Operation{ + Name: opDisassociateQualificationFromWorker, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisassociateQualificationFromWorkerInput{} + } + + output = &DisassociateQualificationFromWorkerOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateQualificationFromWorker API operation for Amazon Mechanical Turk. +// +// The DisassociateQualificationFromWorker revokes a previously granted Qualification +// from a user. +// +// You can provide a text message explaining why the Qualification was revoked. +// The user who had the Qualification can see this message. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation DisassociateQualificationFromWorker for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DisassociateQualificationFromWorker +func (c *MTurk) DisassociateQualificationFromWorker(input *DisassociateQualificationFromWorkerInput) (*DisassociateQualificationFromWorkerOutput, error) { + req, out := c.DisassociateQualificationFromWorkerRequest(input) + err := req.Send() + return out, err +} + +const opGetAccountBalance = "GetAccountBalance" + +// GetAccountBalanceRequest generates a "aws/request.Request" representing the +// client's request for the GetAccountBalance operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetAccountBalance for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetAccountBalance method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetAccountBalanceRequest method. +// req, resp := client.GetAccountBalanceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAccountBalance +func (c *MTurk) GetAccountBalanceRequest(input *GetAccountBalanceInput) (req *request.Request, output *GetAccountBalanceOutput) { + op := &request.Operation{ + Name: opGetAccountBalance, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetAccountBalanceInput{} + } + + output = &GetAccountBalanceOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetAccountBalance API operation for Amazon Mechanical Turk. +// +// The GetAccountBalance operation retrieves the amount of money in your Amazon +// Mechanical Turk account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation GetAccountBalance for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAccountBalance +func (c *MTurk) GetAccountBalance(input *GetAccountBalanceInput) (*GetAccountBalanceOutput, error) { + req, out := c.GetAccountBalanceRequest(input) + err := req.Send() + return out, err +} + +const opGetAssignment = "GetAssignment" + +// GetAssignmentRequest generates a "aws/request.Request" representing the +// client's request for the GetAssignment operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetAssignment for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetAssignment method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetAssignmentRequest method. +// req, resp := client.GetAssignmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAssignment +func (c *MTurk) GetAssignmentRequest(input *GetAssignmentInput) (req *request.Request, output *GetAssignmentOutput) { + op := &request.Operation{ + Name: opGetAssignment, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetAssignmentInput{} + } + + output = &GetAssignmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetAssignment API operation for Amazon Mechanical Turk. +// +// The GetAssignment operation retrieves the details of the specified Assignment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation GetAssignment for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAssignment +func (c *MTurk) GetAssignment(input *GetAssignmentInput) (*GetAssignmentOutput, error) { + req, out := c.GetAssignmentRequest(input) + err := req.Send() + return out, err +} + +const opGetFileUploadURL = "GetFileUploadURL" + +// GetFileUploadURLRequest generates a "aws/request.Request" representing the +// client's request for the GetFileUploadURL operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetFileUploadURL for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetFileUploadURL method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetFileUploadURLRequest method. +// req, resp := client.GetFileUploadURLRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetFileUploadURL +func (c *MTurk) GetFileUploadURLRequest(input *GetFileUploadURLInput) (req *request.Request, output *GetFileUploadURLOutput) { + op := &request.Operation{ + Name: opGetFileUploadURL, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetFileUploadURLInput{} + } + + output = &GetFileUploadURLOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetFileUploadURL API operation for Amazon Mechanical Turk. +// +// The GetFileUploadURL operation generates and returns a temporary URL. You +// use the temporary URL to retrieve a file uploaded by a Worker as an answer +// to a FileUploadAnswer question for a HIT. The temporary URL is generated +// the instant the GetFileUploadURL operation is called, and is valid for 60 +// seconds. You can get a temporary file upload URL any time until the HIT is +// disposed. After the HIT is disposed, any uploaded files are deleted, and +// cannot be retrieved. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation GetFileUploadURL for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetFileUploadURL +func (c *MTurk) GetFileUploadURL(input *GetFileUploadURLInput) (*GetFileUploadURLOutput, error) { + req, out := c.GetFileUploadURLRequest(input) + err := req.Send() + return out, err +} + +const opGetHIT = "GetHIT" + +// GetHITRequest generates a "aws/request.Request" representing the +// client's request for the GetHIT operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetHIT for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetHIT method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetHITRequest method. +// req, resp := client.GetHITRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetHIT +func (c *MTurk) GetHITRequest(input *GetHITInput) (req *request.Request, output *GetHITOutput) { + op := &request.Operation{ + Name: opGetHIT, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetHITInput{} + } + + output = &GetHITOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetHIT API operation for Amazon Mechanical Turk. +// +// The GetHIT operation retrieves the details of the specified HIT. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation GetHIT for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetHIT +func (c *MTurk) GetHIT(input *GetHITInput) (*GetHITOutput, error) { + req, out := c.GetHITRequest(input) + err := req.Send() + return out, err +} + +const opGetQualificationScore = "GetQualificationScore" + +// GetQualificationScoreRequest generates a "aws/request.Request" representing the +// client's request for the GetQualificationScore operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetQualificationScore for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetQualificationScore method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetQualificationScoreRequest method. +// req, resp := client.GetQualificationScoreRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetQualificationScore +func (c *MTurk) GetQualificationScoreRequest(input *GetQualificationScoreInput) (req *request.Request, output *GetQualificationScoreOutput) { + op := &request.Operation{ + Name: opGetQualificationScore, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetQualificationScoreInput{} + } + + output = &GetQualificationScoreOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetQualificationScore API operation for Amazon Mechanical Turk. +// +// The GetQualificationScore operation returns the value of a Worker's Qualification +// for a given Qualification type. +// +// To get a Worker's Qualification, you must know the Worker's ID. The Worker's +// ID is included in the assignment data returned by the ListAssignmentsForHIT +// operation. +// +// Only the owner of a Qualification type can query the value of a Worker's +// Qualification of that type. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation GetQualificationScore for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetQualificationScore +func (c *MTurk) GetQualificationScore(input *GetQualificationScoreInput) (*GetQualificationScoreOutput, error) { + req, out := c.GetQualificationScoreRequest(input) + err := req.Send() + return out, err +} + +const opGetQualificationType = "GetQualificationType" + +// GetQualificationTypeRequest generates a "aws/request.Request" representing the +// client's request for the GetQualificationType operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetQualificationType for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetQualificationType method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetQualificationTypeRequest method. +// req, resp := client.GetQualificationTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetQualificationType +func (c *MTurk) GetQualificationTypeRequest(input *GetQualificationTypeInput) (req *request.Request, output *GetQualificationTypeOutput) { + op := &request.Operation{ + Name: opGetQualificationType, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetQualificationTypeInput{} + } + + output = &GetQualificationTypeOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetQualificationType API operation for Amazon Mechanical Turk. +// +// The GetQualificationTypeoperation retrieves information about a Qualification +// type using its ID. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation GetQualificationType for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetQualificationType +func (c *MTurk) GetQualificationType(input *GetQualificationTypeInput) (*GetQualificationTypeOutput, error) { + req, out := c.GetQualificationTypeRequest(input) + err := req.Send() + return out, err +} + +const opListAssignmentsForHIT = "ListAssignmentsForHIT" + +// ListAssignmentsForHITRequest generates a "aws/request.Request" representing the +// client's request for the ListAssignmentsForHIT operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListAssignmentsForHIT for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListAssignmentsForHIT method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListAssignmentsForHITRequest method. +// req, resp := client.ListAssignmentsForHITRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListAssignmentsForHIT +func (c *MTurk) ListAssignmentsForHITRequest(input *ListAssignmentsForHITInput) (req *request.Request, output *ListAssignmentsForHITOutput) { + op := &request.Operation{ + Name: opListAssignmentsForHIT, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListAssignmentsForHITInput{} + } + + output = &ListAssignmentsForHITOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAssignmentsForHIT API operation for Amazon Mechanical Turk. +// +// The ListAssignmentsForHIT operation retrieves completed assignments for a +// HIT. You can use this operation to retrieve the results for a HIT. +// +// You can get assignments for a HIT at any time, even if the HIT is not yet +// Reviewable. If a HIT requested multiple assignments, and has received some +// results but has not yet become Reviewable, you can still retrieve the partial +// results with this operation. +// +// Use the AssignmentStatus parameter to control which set of assignments for +// a HIT are returned. The ListAssignmentsForHIT operation can return submitted +// assignments awaiting approval, or it can return assignments that have already +// been approved or rejected. You can set AssignmentStatus=Approved,Rejected +// to get assignments that have already been approved and rejected together +// in one result set. +// +// Only the Requester who created the HIT can retrieve the assignments for that +// HIT. +// +// Results are sorted and divided into numbered pages and the operation returns +// a single page of results. You can use the parameters of the operation to +// control sorting and pagination. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation ListAssignmentsForHIT for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListAssignmentsForHIT +func (c *MTurk) ListAssignmentsForHIT(input *ListAssignmentsForHITInput) (*ListAssignmentsForHITOutput, error) { + req, out := c.ListAssignmentsForHITRequest(input) + err := req.Send() + return out, err +} + +// ListAssignmentsForHITPages iterates over the pages of a ListAssignmentsForHIT operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListAssignmentsForHIT method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListAssignmentsForHIT operation. +// pageNum := 0 +// err := client.ListAssignmentsForHITPages(params, +// func(page *ListAssignmentsForHITOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *MTurk) ListAssignmentsForHITPages(input *ListAssignmentsForHITInput, fn func(p *ListAssignmentsForHITOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListAssignmentsForHITRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListAssignmentsForHITOutput), lastPage) + }) +} + +const opListBonusPayments = "ListBonusPayments" + +// ListBonusPaymentsRequest generates a "aws/request.Request" representing the +// client's request for the ListBonusPayments operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListBonusPayments for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListBonusPayments method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListBonusPaymentsRequest method. +// req, resp := client.ListBonusPaymentsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListBonusPayments +func (c *MTurk) ListBonusPaymentsRequest(input *ListBonusPaymentsInput) (req *request.Request, output *ListBonusPaymentsOutput) { + op := &request.Operation{ + Name: opListBonusPayments, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListBonusPaymentsInput{} + } + + output = &ListBonusPaymentsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListBonusPayments API operation for Amazon Mechanical Turk. +// +// The ListBonusPayments operation retrieves the amounts of bonuses you have +// paid to Workers for a given HIT or assignment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation ListBonusPayments for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListBonusPayments +func (c *MTurk) ListBonusPayments(input *ListBonusPaymentsInput) (*ListBonusPaymentsOutput, error) { + req, out := c.ListBonusPaymentsRequest(input) + err := req.Send() + return out, err +} + +// ListBonusPaymentsPages iterates over the pages of a ListBonusPayments operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListBonusPayments method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListBonusPayments operation. +// pageNum := 0 +// err := client.ListBonusPaymentsPages(params, +// func(page *ListBonusPaymentsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *MTurk) ListBonusPaymentsPages(input *ListBonusPaymentsInput, fn func(p *ListBonusPaymentsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListBonusPaymentsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListBonusPaymentsOutput), lastPage) + }) +} + +const opListHITs = "ListHITs" + +// ListHITsRequest generates a "aws/request.Request" representing the +// client's request for the ListHITs operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListHITs for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListHITs method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListHITsRequest method. +// req, resp := client.ListHITsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListHITs +func (c *MTurk) ListHITsRequest(input *ListHITsInput) (req *request.Request, output *ListHITsOutput) { + op := &request.Operation{ + Name: opListHITs, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListHITsInput{} + } + + output = &ListHITsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListHITs API operation for Amazon Mechanical Turk. +// +// The ListHITs operation returns all of a Requester's HITs. The operation returns +// HITs of any status, except for HITs that have been deleted of with the DeleteHIT +// operation or that have been auto-deleted. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation ListHITs for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListHITs +func (c *MTurk) ListHITs(input *ListHITsInput) (*ListHITsOutput, error) { + req, out := c.ListHITsRequest(input) + err := req.Send() + return out, err +} + +// ListHITsPages iterates over the pages of a ListHITs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListHITs method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListHITs operation. +// pageNum := 0 +// err := client.ListHITsPages(params, +// func(page *ListHITsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *MTurk) ListHITsPages(input *ListHITsInput, fn func(p *ListHITsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListHITsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListHITsOutput), lastPage) + }) +} + +const opListHITsForQualificationType = "ListHITsForQualificationType" + +// ListHITsForQualificationTypeRequest generates a "aws/request.Request" representing the +// client's request for the ListHITsForQualificationType operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListHITsForQualificationType for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListHITsForQualificationType method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListHITsForQualificationTypeRequest method. +// req, resp := client.ListHITsForQualificationTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListHITsForQualificationType +func (c *MTurk) ListHITsForQualificationTypeRequest(input *ListHITsForQualificationTypeInput) (req *request.Request, output *ListHITsForQualificationTypeOutput) { + op := &request.Operation{ + Name: opListHITsForQualificationType, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListHITsForQualificationTypeInput{} + } + + output = &ListHITsForQualificationTypeOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListHITsForQualificationType API operation for Amazon Mechanical Turk. +// +// The ListHITsForQualificationType operation returns the HITs that use the +// given Qualification type for a Qualification requirement. The operation returns +// HITs of any status, except for HITs that have been deleted with the DeleteHIT +// operation or that have been auto-deleted. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation ListHITsForQualificationType for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListHITsForQualificationType +func (c *MTurk) ListHITsForQualificationType(input *ListHITsForQualificationTypeInput) (*ListHITsForQualificationTypeOutput, error) { + req, out := c.ListHITsForQualificationTypeRequest(input) + err := req.Send() + return out, err +} + +// ListHITsForQualificationTypePages iterates over the pages of a ListHITsForQualificationType operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListHITsForQualificationType method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListHITsForQualificationType operation. +// pageNum := 0 +// err := client.ListHITsForQualificationTypePages(params, +// func(page *ListHITsForQualificationTypeOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *MTurk) ListHITsForQualificationTypePages(input *ListHITsForQualificationTypeInput, fn func(p *ListHITsForQualificationTypeOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListHITsForQualificationTypeRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListHITsForQualificationTypeOutput), lastPage) + }) +} + +const opListQualificationRequests = "ListQualificationRequests" + +// ListQualificationRequestsRequest generates a "aws/request.Request" representing the +// client's request for the ListQualificationRequests operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListQualificationRequests for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListQualificationRequests method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListQualificationRequestsRequest method. +// req, resp := client.ListQualificationRequestsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListQualificationRequests +func (c *MTurk) ListQualificationRequestsRequest(input *ListQualificationRequestsInput) (req *request.Request, output *ListQualificationRequestsOutput) { + op := &request.Operation{ + Name: opListQualificationRequests, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListQualificationRequestsInput{} + } + + output = &ListQualificationRequestsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListQualificationRequests API operation for Amazon Mechanical Turk. +// +// The ListQualificationRequests operation retrieves requests for Qualifications +// of a particular Qualification type. The owner of the Qualification type calls +// this operation to poll for pending requests, and accepts them using the AcceptQualification +// operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation ListQualificationRequests for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListQualificationRequests +func (c *MTurk) ListQualificationRequests(input *ListQualificationRequestsInput) (*ListQualificationRequestsOutput, error) { + req, out := c.ListQualificationRequestsRequest(input) + err := req.Send() + return out, err +} + +// ListQualificationRequestsPages iterates over the pages of a ListQualificationRequests operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListQualificationRequests method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListQualificationRequests operation. +// pageNum := 0 +// err := client.ListQualificationRequestsPages(params, +// func(page *ListQualificationRequestsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *MTurk) ListQualificationRequestsPages(input *ListQualificationRequestsInput, fn func(p *ListQualificationRequestsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListQualificationRequestsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListQualificationRequestsOutput), lastPage) + }) +} + +const opListQualificationTypes = "ListQualificationTypes" + +// ListQualificationTypesRequest generates a "aws/request.Request" representing the +// client's request for the ListQualificationTypes operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListQualificationTypes for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListQualificationTypes method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListQualificationTypesRequest method. +// req, resp := client.ListQualificationTypesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListQualificationTypes +func (c *MTurk) ListQualificationTypesRequest(input *ListQualificationTypesInput) (req *request.Request, output *ListQualificationTypesOutput) { + op := &request.Operation{ + Name: opListQualificationTypes, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListQualificationTypesInput{} + } + + output = &ListQualificationTypesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListQualificationTypes API operation for Amazon Mechanical Turk. +// +// The ListQualificationRequests operation retrieves requests for Qualifications +// of a particular Qualification type. The owner of the Qualification type calls +// this operation to poll for pending requests, and accepts them using the AcceptQualification +// operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation ListQualificationTypes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListQualificationTypes +func (c *MTurk) ListQualificationTypes(input *ListQualificationTypesInput) (*ListQualificationTypesOutput, error) { + req, out := c.ListQualificationTypesRequest(input) + err := req.Send() + return out, err +} + +// ListQualificationTypesPages iterates over the pages of a ListQualificationTypes operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListQualificationTypes method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListQualificationTypes operation. +// pageNum := 0 +// err := client.ListQualificationTypesPages(params, +// func(page *ListQualificationTypesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *MTurk) ListQualificationTypesPages(input *ListQualificationTypesInput, fn func(p *ListQualificationTypesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListQualificationTypesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListQualificationTypesOutput), lastPage) + }) +} + +const opListReviewPolicyResultsForHIT = "ListReviewPolicyResultsForHIT" + +// ListReviewPolicyResultsForHITRequest generates a "aws/request.Request" representing the +// client's request for the ListReviewPolicyResultsForHIT operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListReviewPolicyResultsForHIT for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListReviewPolicyResultsForHIT method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListReviewPolicyResultsForHITRequest method. +// req, resp := client.ListReviewPolicyResultsForHITRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListReviewPolicyResultsForHIT +func (c *MTurk) ListReviewPolicyResultsForHITRequest(input *ListReviewPolicyResultsForHITInput) (req *request.Request, output *ListReviewPolicyResultsForHITOutput) { + op := &request.Operation{ + Name: opListReviewPolicyResultsForHIT, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListReviewPolicyResultsForHITInput{} + } + + output = &ListReviewPolicyResultsForHITOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListReviewPolicyResultsForHIT API operation for Amazon Mechanical Turk. +// +// The ListReviewPolicyResultsForHIT operation retrieves the computed results +// and the actions taken in the course of executing your Review Policies for +// a given HIT. For information about how to specify Review Policies when you +// call CreateHIT, see Review Policies. The ListReviewPolicyResultsForHIT operation +// can return results for both Assignment-level and HIT-level review results. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation ListReviewPolicyResultsForHIT for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListReviewPolicyResultsForHIT +func (c *MTurk) ListReviewPolicyResultsForHIT(input *ListReviewPolicyResultsForHITInput) (*ListReviewPolicyResultsForHITOutput, error) { + req, out := c.ListReviewPolicyResultsForHITRequest(input) + err := req.Send() + return out, err +} + +// ListReviewPolicyResultsForHITPages iterates over the pages of a ListReviewPolicyResultsForHIT operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListReviewPolicyResultsForHIT method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListReviewPolicyResultsForHIT operation. +// pageNum := 0 +// err := client.ListReviewPolicyResultsForHITPages(params, +// func(page *ListReviewPolicyResultsForHITOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *MTurk) ListReviewPolicyResultsForHITPages(input *ListReviewPolicyResultsForHITInput, fn func(p *ListReviewPolicyResultsForHITOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListReviewPolicyResultsForHITRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListReviewPolicyResultsForHITOutput), lastPage) + }) +} + +const opListReviewableHITs = "ListReviewableHITs" + +// ListReviewableHITsRequest generates a "aws/request.Request" representing the +// client's request for the ListReviewableHITs operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListReviewableHITs for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListReviewableHITs method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListReviewableHITsRequest method. +// req, resp := client.ListReviewableHITsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListReviewableHITs +func (c *MTurk) ListReviewableHITsRequest(input *ListReviewableHITsInput) (req *request.Request, output *ListReviewableHITsOutput) { + op := &request.Operation{ + Name: opListReviewableHITs, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListReviewableHITsInput{} + } + + output = &ListReviewableHITsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListReviewableHITs API operation for Amazon Mechanical Turk. +// +// The ListReviewableHITs operation retrieves the HITs with Status equal to +// Reviewable or Status equal to Reviewing that belong to the Requester calling +// the operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation ListReviewableHITs for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListReviewableHITs +func (c *MTurk) ListReviewableHITs(input *ListReviewableHITsInput) (*ListReviewableHITsOutput, error) { + req, out := c.ListReviewableHITsRequest(input) + err := req.Send() + return out, err +} + +// ListReviewableHITsPages iterates over the pages of a ListReviewableHITs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListReviewableHITs method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListReviewableHITs operation. +// pageNum := 0 +// err := client.ListReviewableHITsPages(params, +// func(page *ListReviewableHITsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *MTurk) ListReviewableHITsPages(input *ListReviewableHITsInput, fn func(p *ListReviewableHITsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListReviewableHITsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListReviewableHITsOutput), lastPage) + }) +} + +const opListWorkerBlocks = "ListWorkerBlocks" + +// ListWorkerBlocksRequest generates a "aws/request.Request" representing the +// client's request for the ListWorkerBlocks operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListWorkerBlocks for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListWorkerBlocks method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListWorkerBlocksRequest method. +// req, resp := client.ListWorkerBlocksRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListWorkerBlocks +func (c *MTurk) ListWorkerBlocksRequest(input *ListWorkerBlocksInput) (req *request.Request, output *ListWorkerBlocksOutput) { + op := &request.Operation{ + Name: opListWorkerBlocks, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListWorkerBlocksInput{} + } + + output = &ListWorkerBlocksOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListWorkerBlocks API operation for Amazon Mechanical Turk. +// +// The ListWorkersBlocks operation retrieves a list of Workers who are blocked +// from working on your HITs. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation ListWorkerBlocks for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListWorkerBlocks +func (c *MTurk) ListWorkerBlocks(input *ListWorkerBlocksInput) (*ListWorkerBlocksOutput, error) { + req, out := c.ListWorkerBlocksRequest(input) + err := req.Send() + return out, err +} + +// ListWorkerBlocksPages iterates over the pages of a ListWorkerBlocks operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListWorkerBlocks method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListWorkerBlocks operation. +// pageNum := 0 +// err := client.ListWorkerBlocksPages(params, +// func(page *ListWorkerBlocksOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *MTurk) ListWorkerBlocksPages(input *ListWorkerBlocksInput, fn func(p *ListWorkerBlocksOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListWorkerBlocksRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListWorkerBlocksOutput), lastPage) + }) +} + +const opListWorkersWithQualificationType = "ListWorkersWithQualificationType" + +// ListWorkersWithQualificationTypeRequest generates a "aws/request.Request" representing the +// client's request for the ListWorkersWithQualificationType operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListWorkersWithQualificationType for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListWorkersWithQualificationType method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListWorkersWithQualificationTypeRequest method. +// req, resp := client.ListWorkersWithQualificationTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListWorkersWithQualificationType +func (c *MTurk) ListWorkersWithQualificationTypeRequest(input *ListWorkersWithQualificationTypeInput) (req *request.Request, output *ListWorkersWithQualificationTypeOutput) { + op := &request.Operation{ + Name: opListWorkersWithQualificationType, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListWorkersWithQualificationTypeInput{} + } + + output = &ListWorkersWithQualificationTypeOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListWorkersWithQualificationType API operation for Amazon Mechanical Turk. +// +// The ListWorkersWithQualificationType operation returns all of the Workers +// that have been associated with a given Qualification type. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation ListWorkersWithQualificationType for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListWorkersWithQualificationType +func (c *MTurk) ListWorkersWithQualificationType(input *ListWorkersWithQualificationTypeInput) (*ListWorkersWithQualificationTypeOutput, error) { + req, out := c.ListWorkersWithQualificationTypeRequest(input) + err := req.Send() + return out, err +} + +// ListWorkersWithQualificationTypePages iterates over the pages of a ListWorkersWithQualificationType operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListWorkersWithQualificationType method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListWorkersWithQualificationType operation. +// pageNum := 0 +// err := client.ListWorkersWithQualificationTypePages(params, +// func(page *ListWorkersWithQualificationTypeOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *MTurk) ListWorkersWithQualificationTypePages(input *ListWorkersWithQualificationTypeInput, fn func(p *ListWorkersWithQualificationTypeOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListWorkersWithQualificationTypeRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListWorkersWithQualificationTypeOutput), lastPage) + }) +} + +const opNotifyWorkers = "NotifyWorkers" + +// NotifyWorkersRequest generates a "aws/request.Request" representing the +// client's request for the NotifyWorkers operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See NotifyWorkers for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the NotifyWorkers method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the NotifyWorkersRequest method. +// req, resp := client.NotifyWorkersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/NotifyWorkers +func (c *MTurk) NotifyWorkersRequest(input *NotifyWorkersInput) (req *request.Request, output *NotifyWorkersOutput) { + op := &request.Operation{ + Name: opNotifyWorkers, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &NotifyWorkersInput{} + } + + output = &NotifyWorkersOutput{} + req = c.newRequest(op, input, output) + return +} + +// NotifyWorkers API operation for Amazon Mechanical Turk. +// +// The NotifyWorkers operation sends an email to one or more Workers that you +// specify with the Worker ID. You can specify up to 100 Worker IDs to send +// the same message with a single call to the NotifyWorkers operation. The NotifyWorkers +// operation will send a notification email to a Worker only if you have previously +// approved or rejected work from the Worker. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation NotifyWorkers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/NotifyWorkers +func (c *MTurk) NotifyWorkers(input *NotifyWorkersInput) (*NotifyWorkersOutput, error) { + req, out := c.NotifyWorkersRequest(input) + err := req.Send() + return out, err +} + +const opRejectAssignment = "RejectAssignment" + +// RejectAssignmentRequest generates a "aws/request.Request" representing the +// client's request for the RejectAssignment operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See RejectAssignment for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the RejectAssignment method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the RejectAssignmentRequest method. +// req, resp := client.RejectAssignmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RejectAssignment +func (c *MTurk) RejectAssignmentRequest(input *RejectAssignmentInput) (req *request.Request, output *RejectAssignmentOutput) { + op := &request.Operation{ + Name: opRejectAssignment, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RejectAssignmentInput{} + } + + output = &RejectAssignmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// RejectAssignment API operation for Amazon Mechanical Turk. +// +// The RejectAssignment operation rejects the results of a completed assignment. +// +// You can include an optional feedback message with the rejection, which the +// Worker can see in the Status section of the web site. When you include a +// feedback message with the rejection, it helps the Worker understand why the +// assignment was rejected, and can improve the quality of the results the Worker +// submits in the future. +// +// Only the Requester who created the HIT can reject an assignment for the HIT. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation RejectAssignment for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RejectAssignment +func (c *MTurk) RejectAssignment(input *RejectAssignmentInput) (*RejectAssignmentOutput, error) { + req, out := c.RejectAssignmentRequest(input) + err := req.Send() + return out, err +} + +const opRejectQualificationRequest = "RejectQualificationRequest" + +// RejectQualificationRequestRequest generates a "aws/request.Request" representing the +// client's request for the RejectQualificationRequest operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See RejectQualificationRequest for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the RejectQualificationRequest method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the RejectQualificationRequestRequest method. +// req, resp := client.RejectQualificationRequestRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RejectQualificationRequest +func (c *MTurk) RejectQualificationRequestRequest(input *RejectQualificationRequestInput) (req *request.Request, output *RejectQualificationRequestOutput) { + op := &request.Operation{ + Name: opRejectQualificationRequest, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RejectQualificationRequestInput{} + } + + output = &RejectQualificationRequestOutput{} + req = c.newRequest(op, input, output) + return +} + +// RejectQualificationRequest API operation for Amazon Mechanical Turk. +// +// The RejectQualificationRequest operation rejects a user's request for a Qualification. +// +// You can provide a text message explaining why the request was rejected. The +// Worker who made the request can see this message. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation RejectQualificationRequest for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RejectQualificationRequest +func (c *MTurk) RejectQualificationRequest(input *RejectQualificationRequestInput) (*RejectQualificationRequestOutput, error) { + req, out := c.RejectQualificationRequestRequest(input) + err := req.Send() + return out, err +} + +const opSendBonus = "SendBonus" + +// SendBonusRequest generates a "aws/request.Request" representing the +// client's request for the SendBonus operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See SendBonus for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the SendBonus method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the SendBonusRequest method. +// req, resp := client.SendBonusRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/SendBonus +func (c *MTurk) SendBonusRequest(input *SendBonusInput) (req *request.Request, output *SendBonusOutput) { + op := &request.Operation{ + Name: opSendBonus, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &SendBonusInput{} + } + + output = &SendBonusOutput{} + req = c.newRequest(op, input, output) + return +} + +// SendBonus API operation for Amazon Mechanical Turk. +// +// The SendBonus operation issues a payment of money from your account to a +// Worker. This payment happens separately from the reward you pay to the Worker +// when you approve the Worker's assignment. The SendBonus operation requires +// the Worker's ID and the assignment ID as parameters to initiate payment of +// the bonus. You must include a message that explains the reason for the bonus +// payment, as the Worker may not be expecting the payment. Amazon Mechanical +// Turk collects a fee for bonus payments, similar to the HIT listing fee. This +// operation fails if your account does not have enough funds to pay for both +// the bonus and the fees. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation SendBonus for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/SendBonus +func (c *MTurk) SendBonus(input *SendBonusInput) (*SendBonusOutput, error) { + req, out := c.SendBonusRequest(input) + err := req.Send() + return out, err +} + +const opSendTestEventNotification = "SendTestEventNotification" + +// SendTestEventNotificationRequest generates a "aws/request.Request" representing the +// client's request for the SendTestEventNotification operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See SendTestEventNotification for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the SendTestEventNotification method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the SendTestEventNotificationRequest method. +// req, resp := client.SendTestEventNotificationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/SendTestEventNotification +func (c *MTurk) SendTestEventNotificationRequest(input *SendTestEventNotificationInput) (req *request.Request, output *SendTestEventNotificationOutput) { + op := &request.Operation{ + Name: opSendTestEventNotification, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &SendTestEventNotificationInput{} + } + + output = &SendTestEventNotificationOutput{} + req = c.newRequest(op, input, output) + return +} + +// SendTestEventNotification API operation for Amazon Mechanical Turk. +// +// The SendTestEventNotification operation causes Amazon Mechanical Turk to +// send a notification message as if a HIT event occurred, according to the +// provided notification specification. This allows you to test notifications +// without setting up notifications for a real HIT type and trying to trigger +// them using the website. When you call this operation, the service attempts +// to send the test notification immediately. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation SendTestEventNotification for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/SendTestEventNotification +func (c *MTurk) SendTestEventNotification(input *SendTestEventNotificationInput) (*SendTestEventNotificationOutput, error) { + req, out := c.SendTestEventNotificationRequest(input) + err := req.Send() + return out, err +} + +const opUpdateExpirationForHIT = "UpdateExpirationForHIT" + +// UpdateExpirationForHITRequest generates a "aws/request.Request" representing the +// client's request for the UpdateExpirationForHIT operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateExpirationForHIT for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateExpirationForHIT method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateExpirationForHITRequest method. +// req, resp := client.UpdateExpirationForHITRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateExpirationForHIT +func (c *MTurk) UpdateExpirationForHITRequest(input *UpdateExpirationForHITInput) (req *request.Request, output *UpdateExpirationForHITOutput) { + op := &request.Operation{ + Name: opUpdateExpirationForHIT, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateExpirationForHITInput{} + } + + output = &UpdateExpirationForHITOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateExpirationForHIT API operation for Amazon Mechanical Turk. +// +// The UpdateExpirationForHIT operation allows you update the expiration time +// of a HIT. If you update it to a time in the past, the HIT will be immediately +// expired. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation UpdateExpirationForHIT for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateExpirationForHIT +func (c *MTurk) UpdateExpirationForHIT(input *UpdateExpirationForHITInput) (*UpdateExpirationForHITOutput, error) { + req, out := c.UpdateExpirationForHITRequest(input) + err := req.Send() + return out, err +} + +const opUpdateHITReviewStatus = "UpdateHITReviewStatus" + +// UpdateHITReviewStatusRequest generates a "aws/request.Request" representing the +// client's request for the UpdateHITReviewStatus operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateHITReviewStatus for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateHITReviewStatus method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateHITReviewStatusRequest method. +// req, resp := client.UpdateHITReviewStatusRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateHITReviewStatus +func (c *MTurk) UpdateHITReviewStatusRequest(input *UpdateHITReviewStatusInput) (req *request.Request, output *UpdateHITReviewStatusOutput) { + op := &request.Operation{ + Name: opUpdateHITReviewStatus, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateHITReviewStatusInput{} + } + + output = &UpdateHITReviewStatusOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateHITReviewStatus API operation for Amazon Mechanical Turk. +// +// The UpdateHITReviewStatus operation updates the status of a HIT. If the status +// is Reviewable, this operation can update the status to Reviewing, or it can +// revert a Reviewing HIT back to the Reviewable status. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation UpdateHITReviewStatus for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateHITReviewStatus +func (c *MTurk) UpdateHITReviewStatus(input *UpdateHITReviewStatusInput) (*UpdateHITReviewStatusOutput, error) { + req, out := c.UpdateHITReviewStatusRequest(input) + err := req.Send() + return out, err +} + +const opUpdateHITTypeOfHIT = "UpdateHITTypeOfHIT" + +// UpdateHITTypeOfHITRequest generates a "aws/request.Request" representing the +// client's request for the UpdateHITTypeOfHIT operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateHITTypeOfHIT for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateHITTypeOfHIT method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateHITTypeOfHITRequest method. +// req, resp := client.UpdateHITTypeOfHITRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateHITTypeOfHIT +func (c *MTurk) UpdateHITTypeOfHITRequest(input *UpdateHITTypeOfHITInput) (req *request.Request, output *UpdateHITTypeOfHITOutput) { + op := &request.Operation{ + Name: opUpdateHITTypeOfHIT, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateHITTypeOfHITInput{} + } + + output = &UpdateHITTypeOfHITOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateHITTypeOfHIT API operation for Amazon Mechanical Turk. +// +// The UpdateHITTypeOfHIT operation allows you to change the HITType properties +// of a HIT. This operation disassociates the HIT from its old HITType properties +// and associates it with the new HITType properties. The HIT takes on the properties +// of the new HITType in place of the old ones. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation UpdateHITTypeOfHIT for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateHITTypeOfHIT +func (c *MTurk) UpdateHITTypeOfHIT(input *UpdateHITTypeOfHITInput) (*UpdateHITTypeOfHITOutput, error) { + req, out := c.UpdateHITTypeOfHITRequest(input) + err := req.Send() + return out, err +} + +const opUpdateNotificationSettings = "UpdateNotificationSettings" + +// UpdateNotificationSettingsRequest generates a "aws/request.Request" representing the +// client's request for the UpdateNotificationSettings operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateNotificationSettings for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateNotificationSettings method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateNotificationSettingsRequest method. +// req, resp := client.UpdateNotificationSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateNotificationSettings +func (c *MTurk) UpdateNotificationSettingsRequest(input *UpdateNotificationSettingsInput) (req *request.Request, output *UpdateNotificationSettingsOutput) { + op := &request.Operation{ + Name: opUpdateNotificationSettings, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateNotificationSettingsInput{} + } + + output = &UpdateNotificationSettingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateNotificationSettings API operation for Amazon Mechanical Turk. +// +// The UpdateNotificationSettings operation creates, updates, disables or re-enables +// notifications for a HIT type. If you call the UpdateNotificationSettings +// operation for a HIT type that already has a notification specification, the +// operation replaces the old specification with a new one. You can call the +// UpdateNotificationSettings operation to enable or disable notifications for +// the HIT type, without having to modify the notification specification itself +// by providing updates to the Active status without specifying a new notification +// specification. To change the Active status of a HIT type's notifications, +// the HIT type must already have a notification specification, or one must +// be provided in the same call to UpdateNotificationSettings. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation UpdateNotificationSettings for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateNotificationSettings +func (c *MTurk) UpdateNotificationSettings(input *UpdateNotificationSettingsInput) (*UpdateNotificationSettingsOutput, error) { + req, out := c.UpdateNotificationSettingsRequest(input) + err := req.Send() + return out, err +} + +const opUpdateQualificationType = "UpdateQualificationType" + +// UpdateQualificationTypeRequest generates a "aws/request.Request" representing the +// client's request for the UpdateQualificationType operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateQualificationType for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateQualificationType method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateQualificationTypeRequest method. +// req, resp := client.UpdateQualificationTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateQualificationType +func (c *MTurk) UpdateQualificationTypeRequest(input *UpdateQualificationTypeInput) (req *request.Request, output *UpdateQualificationTypeOutput) { + op := &request.Operation{ + Name: opUpdateQualificationType, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateQualificationTypeInput{} + } + + output = &UpdateQualificationTypeOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateQualificationType API operation for Amazon Mechanical Turk. +// +// The UpdateQualificationType operation modifies the attributes of an existing +// Qualification type, which is represented by a QualificationType data structure. +// Only the owner of a Qualification type can modify its attributes. +// +// Most attributes of a Qualification type can be changed after the type has +// been created. However, the Name and Keywords fields cannot be modified. The +// RetryDelayInSeconds parameter can be modified or added to change the delay +// or to enable retries, but RetryDelayInSeconds cannot be used to disable retries. +// +// You can use this operation to update the test for a Qualification type. The +// test is updated based on the values specified for the Test, TestDurationInSeconds +// and AnswerKey parameters. All three parameters specify the updated test. +// If you are updating the test for a type, you must specify the Test and TestDurationInSeconds +// parameters. The AnswerKey parameter is optional; omitting it specifies that +// the updated test does not have an answer key. +// +// If you omit the Test parameter, the test for the Qualification type is unchanged. +// There is no way to remove a test from a Qualification type that has one. +// If the type already has a test, you cannot update it to be AutoGranted. If +// the Qualification type does not have a test and one is provided by an update, +// the type will henceforth have a test. +// +// If you want to update the test duration or answer key for an existing test +// without changing the questions, you must specify a Test parameter with the +// original questions, along with the updated values. +// +// If you provide an updated Test but no AnswerKey, the new test will not have +// an answer key. Requests for such Qualifications must be granted manually. +// +// You can also update the AutoGranted and AutoGrantedValue attributes of the +// Qualification type. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mechanical Turk's +// API operation UpdateQualificationType for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceFault "ServiceFault" +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +// +// * ErrCodeRequestError "RequestError" +// Your request is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateQualificationType +func (c *MTurk) UpdateQualificationType(input *UpdateQualificationTypeInput) (*UpdateQualificationTypeOutput, error) { + req, out := c.UpdateQualificationTypeRequest(input) + err := req.Send() + return out, err +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/AcceptQualificationRequestRequest +type AcceptQualificationRequestInput struct { + _ struct{} `type:"structure"` + + // The value of the Qualification. You can omit this value if you are using + // the presence or absence of the Qualification as the basis for a HIT requirement. + IntegerValue *int64 `type:"integer"` + + // The ID of the Qualification request, as returned by the GetQualificationRequests + // operation. + // + // QualificationRequestId is a required field + QualificationRequestId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s AcceptQualificationRequestInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AcceptQualificationRequestInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AcceptQualificationRequestInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AcceptQualificationRequestInput"} + if s.QualificationRequestId == nil { + invalidParams.Add(request.NewErrParamRequired("QualificationRequestId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIntegerValue sets the IntegerValue field's value. +func (s *AcceptQualificationRequestInput) SetIntegerValue(v int64) *AcceptQualificationRequestInput { + s.IntegerValue = &v + return s +} + +// SetQualificationRequestId sets the QualificationRequestId field's value. +func (s *AcceptQualificationRequestInput) SetQualificationRequestId(v string) *AcceptQualificationRequestInput { + s.QualificationRequestId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/AcceptQualificationRequestResponse +type AcceptQualificationRequestOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AcceptQualificationRequestOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AcceptQualificationRequestOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ApproveAssignmentRequest +type ApproveAssignmentInput struct { + _ struct{} `type:"structure"` + + // The ID of the assignment. The assignment must correspond to a HIT created + // by the Requester. + // + // AssignmentId is a required field + AssignmentId *string `min:"1" type:"string" required:"true"` + + // A flag indicating that an assignment should be approved even if it was previously + // rejected. Defaults to False. + OverrideRejection *bool `type:"boolean"` + + // A message for the Worker, which the Worker can see in the Status section + // of the web site. + RequesterFeedback *string `type:"string"` +} + +// String returns the string representation +func (s ApproveAssignmentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApproveAssignmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ApproveAssignmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ApproveAssignmentInput"} + if s.AssignmentId == nil { + invalidParams.Add(request.NewErrParamRequired("AssignmentId")) + } + if s.AssignmentId != nil && len(*s.AssignmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AssignmentId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssignmentId sets the AssignmentId field's value. +func (s *ApproveAssignmentInput) SetAssignmentId(v string) *ApproveAssignmentInput { + s.AssignmentId = &v + return s +} + +// SetOverrideRejection sets the OverrideRejection field's value. +func (s *ApproveAssignmentInput) SetOverrideRejection(v bool) *ApproveAssignmentInput { + s.OverrideRejection = &v + return s +} + +// SetRequesterFeedback sets the RequesterFeedback field's value. +func (s *ApproveAssignmentInput) SetRequesterFeedback(v string) *ApproveAssignmentInput { + s.RequesterFeedback = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ApproveAssignmentResponse +type ApproveAssignmentOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s ApproveAssignmentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApproveAssignmentOutput) GoString() string { + return s.String() +} + +// The Assignment data structure represents a single assignment of a HIT to +// a Worker. The assignment tracks the Worker's efforts to complete the HIT, +// and contains the results for later retrieval. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/Assignment +type Assignment struct { + _ struct{} `type:"structure"` + + // The date and time the Worker accepted the assignment. + AcceptTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The Worker's answers submitted for the HIT contained in a QuestionFormAnswers + // document, if the Worker provides an answer. If the Worker does not provide + // any answers, Answer may contain a QuestionFormAnswers document, or Answer + // may be empty. + Answer *string `type:"string"` + + // If the Worker has submitted results and the Requester has approved the results, + // ApprovalTime is the date and time the Requester approved the results. This + // value is omitted from the assignment if the Requester has not yet approved + // the results. + ApprovalTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // A unique identifier for the assignment. + AssignmentId *string `min:"1" type:"string"` + + // The status of the assignment. + AssignmentStatus *string `type:"string" enum:"AssignmentStatus"` + + // If results have been submitted, AutoApprovalTime is the date and time the + // results of the assignment results are considered Approved automatically if + // they have not already been explicitly approved or rejected by the Requester. + // This value is derived from the auto-approval delay specified by the Requester + // in the HIT. This value is omitted from the assignment if the Worker has not + // yet submitted results. + AutoApprovalTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The date and time of the deadline for the assignment. This value is derived + // from the deadline specification for the HIT and the date and time the Worker + // accepted the HIT. + Deadline *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The ID of the HIT. + HITId *string `min:"1" type:"string"` + + // If the Worker has submitted results and the Requester has rejected the results, + // RejectionTime is the date and time the Requester rejected the results. + RejectionTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The feedback string included with the call to the ApproveAssignment operation + // or the RejectAssignment operation, if the Requester approved or rejected + // the assignment and specified feedback. + RequesterFeedback *string `type:"string"` + + // If the Worker has submitted results, SubmitTime is the date and time the + // assignment was submitted. This value is omitted from the assignment if the + // Worker has not yet submitted results. + SubmitTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The ID of the Worker who accepted the HIT. + WorkerId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s Assignment) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Assignment) GoString() string { + return s.String() +} + +// SetAcceptTime sets the AcceptTime field's value. +func (s *Assignment) SetAcceptTime(v time.Time) *Assignment { + s.AcceptTime = &v + return s +} + +// SetAnswer sets the Answer field's value. +func (s *Assignment) SetAnswer(v string) *Assignment { + s.Answer = &v + return s +} + +// SetApprovalTime sets the ApprovalTime field's value. +func (s *Assignment) SetApprovalTime(v time.Time) *Assignment { + s.ApprovalTime = &v + return s +} + +// SetAssignmentId sets the AssignmentId field's value. +func (s *Assignment) SetAssignmentId(v string) *Assignment { + s.AssignmentId = &v + return s +} + +// SetAssignmentStatus sets the AssignmentStatus field's value. +func (s *Assignment) SetAssignmentStatus(v string) *Assignment { + s.AssignmentStatus = &v + return s +} + +// SetAutoApprovalTime sets the AutoApprovalTime field's value. +func (s *Assignment) SetAutoApprovalTime(v time.Time) *Assignment { + s.AutoApprovalTime = &v + return s +} + +// SetDeadline sets the Deadline field's value. +func (s *Assignment) SetDeadline(v time.Time) *Assignment { + s.Deadline = &v + return s +} + +// SetHITId sets the HITId field's value. +func (s *Assignment) SetHITId(v string) *Assignment { + s.HITId = &v + return s +} + +// SetRejectionTime sets the RejectionTime field's value. +func (s *Assignment) SetRejectionTime(v time.Time) *Assignment { + s.RejectionTime = &v + return s +} + +// SetRequesterFeedback sets the RequesterFeedback field's value. +func (s *Assignment) SetRequesterFeedback(v string) *Assignment { + s.RequesterFeedback = &v + return s +} + +// SetSubmitTime sets the SubmitTime field's value. +func (s *Assignment) SetSubmitTime(v time.Time) *Assignment { + s.SubmitTime = &v + return s +} + +// SetWorkerId sets the WorkerId field's value. +func (s *Assignment) SetWorkerId(v string) *Assignment { + s.WorkerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/AssociateQualificationWithWorkerRequest +type AssociateQualificationWithWorkerInput struct { + _ struct{} `type:"structure"` + + // The value of the Qualification to assign. + IntegerValue *int64 `type:"integer"` + + // The ID of the Qualification type to use for the assigned Qualification. + // + // QualificationTypeId is a required field + QualificationTypeId *string `min:"1" type:"string" required:"true"` + + // Specifies whether to send a notification email message to the Worker saying + // that the qualification was assigned to the Worker. Note: this is true by + // default. + SendNotification *bool `type:"boolean"` + + // The ID of the Worker to whom the Qualification is being assigned. Worker + // IDs are included with submitted HIT assignments and Qualification requests. + // + // WorkerId is a required field + WorkerId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateQualificationWithWorkerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateQualificationWithWorkerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateQualificationWithWorkerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateQualificationWithWorkerInput"} + if s.QualificationTypeId == nil { + invalidParams.Add(request.NewErrParamRequired("QualificationTypeId")) + } + if s.QualificationTypeId != nil && len(*s.QualificationTypeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QualificationTypeId", 1)) + } + if s.WorkerId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkerId")) + } + if s.WorkerId != nil && len(*s.WorkerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkerId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIntegerValue sets the IntegerValue field's value. +func (s *AssociateQualificationWithWorkerInput) SetIntegerValue(v int64) *AssociateQualificationWithWorkerInput { + s.IntegerValue = &v + return s +} + +// SetQualificationTypeId sets the QualificationTypeId field's value. +func (s *AssociateQualificationWithWorkerInput) SetQualificationTypeId(v string) *AssociateQualificationWithWorkerInput { + s.QualificationTypeId = &v + return s +} + +// SetSendNotification sets the SendNotification field's value. +func (s *AssociateQualificationWithWorkerInput) SetSendNotification(v bool) *AssociateQualificationWithWorkerInput { + s.SendNotification = &v + return s +} + +// SetWorkerId sets the WorkerId field's value. +func (s *AssociateQualificationWithWorkerInput) SetWorkerId(v string) *AssociateQualificationWithWorkerInput { + s.WorkerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/AssociateQualificationWithWorkerResponse +type AssociateQualificationWithWorkerOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateQualificationWithWorkerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateQualificationWithWorkerOutput) GoString() string { + return s.String() +} + +// An object representing a Bonus payment paid to a Worker. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/BonusPayment +type BonusPayment struct { + _ struct{} `type:"structure"` + + // The ID of the assignment associated with this bonus payment. + AssignmentId *string `min:"1" type:"string"` + + // A string representing a numeric value. + BonusAmount *string `type:"string"` + + // The date and time of when the bonus was granted. + GrantTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The Reason text given when the bonus was granted, if any. + Reason *string `type:"string"` + + // The ID of the Worker to whom the bonus was paid. + WorkerId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s BonusPayment) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BonusPayment) GoString() string { + return s.String() +} + +// SetAssignmentId sets the AssignmentId field's value. +func (s *BonusPayment) SetAssignmentId(v string) *BonusPayment { + s.AssignmentId = &v + return s +} + +// SetBonusAmount sets the BonusAmount field's value. +func (s *BonusPayment) SetBonusAmount(v string) *BonusPayment { + s.BonusAmount = &v + return s +} + +// SetGrantTime sets the GrantTime field's value. +func (s *BonusPayment) SetGrantTime(v time.Time) *BonusPayment { + s.GrantTime = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *BonusPayment) SetReason(v string) *BonusPayment { + s.Reason = &v + return s +} + +// SetWorkerId sets the WorkerId field's value. +func (s *BonusPayment) SetWorkerId(v string) *BonusPayment { + s.WorkerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateAdditionalAssignmentsForHITRequest +type CreateAdditionalAssignmentsForHITInput struct { + _ struct{} `type:"structure"` + + // The ID of the HIT to extend. + // + // HITId is a required field + HITId *string `min:"1" type:"string" required:"true"` + + // The number of additional assignments to request for this HIT. + NumberOfAdditionalAssignments *int64 `type:"integer"` + + // A unique identifier for this request, which allows you to retry the call + // on error without extending the HIT multiple times. This is useful in cases + // such as network timeouts where it is unclear whether or not the call succeeded + // on the server. If the extend HIT already exists in the system from a previous + // call using the same UniqueRequestToken, subsequent calls will return an error + // with a message containing the request ID. + UniqueRequestToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s CreateAdditionalAssignmentsForHITInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAdditionalAssignmentsForHITInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAdditionalAssignmentsForHITInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAdditionalAssignmentsForHITInput"} + if s.HITId == nil { + invalidParams.Add(request.NewErrParamRequired("HITId")) + } + if s.HITId != nil && len(*s.HITId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HITId", 1)) + } + if s.UniqueRequestToken != nil && len(*s.UniqueRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UniqueRequestToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHITId sets the HITId field's value. +func (s *CreateAdditionalAssignmentsForHITInput) SetHITId(v string) *CreateAdditionalAssignmentsForHITInput { + s.HITId = &v + return s +} + +// SetNumberOfAdditionalAssignments sets the NumberOfAdditionalAssignments field's value. +func (s *CreateAdditionalAssignmentsForHITInput) SetNumberOfAdditionalAssignments(v int64) *CreateAdditionalAssignmentsForHITInput { + s.NumberOfAdditionalAssignments = &v + return s +} + +// SetUniqueRequestToken sets the UniqueRequestToken field's value. +func (s *CreateAdditionalAssignmentsForHITInput) SetUniqueRequestToken(v string) *CreateAdditionalAssignmentsForHITInput { + s.UniqueRequestToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateAdditionalAssignmentsForHITResponse +type CreateAdditionalAssignmentsForHITOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateAdditionalAssignmentsForHITOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAdditionalAssignmentsForHITOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITRequest +type CreateHITInput struct { + _ struct{} `type:"structure"` + + // The amount of time, in seconds, that a Worker has to complete the HIT after + // accepting it. If a Worker does not complete the assignment within the specified + // duration, the assignment is considered abandoned. If the HIT is still active + // (that is, its lifetime has not elapsed), the assignment becomes available + // for other users to find and accept. + // + // AssignmentDurationInSeconds is a required field + AssignmentDurationInSeconds *int64 `type:"long" required:"true"` + + // The Assignment-level Review Policy applies to the assignments under the HIT. + // You can specify for Mechanical Turk to take various actions based on the + // policy. + AssignmentReviewPolicy *ReviewPolicy `type:"structure"` + + // The number of seconds after an assignment for the HIT has been submitted, + // after which the assignment is considered Approved automatically unless the + // Requester explicitly rejects it. + AutoApprovalDelayInSeconds *int64 `type:"long"` + + // A general description of the HIT. A description includes detailed information + // about the kind of task the HIT contains. On the Amazon Mechanical Turk web + // site, the HIT description appears in the expanded view of search results, + // and in the HIT and assignment screens. A good description gives the user + // enough information to evaluate the HIT before accepting it. + // + // Description is a required field + Description *string `type:"string" required:"true"` + + // The HITLayoutId allows you to use a pre-existing HIT design with placeholder + // values and create an additional HIT by providing those values as HITLayoutParameters. + // + // Constraints: Either a Question parameter or a HITLayoutId parameter must + // be provided. + HITLayoutId *string `min:"1" type:"string"` + + // If the HITLayoutId is provided, any placeholder values must be filled in + // with values using the HITLayoutParameter structure. For more information, + // see HITLayout. + HITLayoutParameters []*HITLayoutParameter `type:"list"` + + // The HIT-level Review Policy applies to the HIT. You can specify for Mechanical + // Turk to take various actions based on the policy. + HITReviewPolicy *ReviewPolicy `type:"structure"` + + // One or more words or phrases that describe the HIT, separated by commas. + // These words are used in searches to find HITs. + Keywords *string `type:"string"` + + // An amount of time, in seconds, after which the HIT is no longer available + // for users to accept. After the lifetime of the HIT elapses, the HIT no longer + // appears in HIT searches, even if not all of the assignments for the HIT have + // been accepted. + // + // LifetimeInSeconds is a required field + LifetimeInSeconds *int64 `type:"long" required:"true"` + + // The number of times the HIT can be accepted and completed before the HIT + // becomes unavailable. + MaxAssignments *int64 `type:"integer"` + + // A condition that a Worker's Qualifications must meet before the Worker is + // allowed to accept and complete the HIT. + QualificationRequirements []*QualificationRequirement `type:"list"` + + // The data the person completing the HIT uses to produce the results. + // + // Constraints: Must be a QuestionForm data structure, an ExternalQuestion data + // structure, or an HTMLQuestion data structure. The XML question data must + // not be larger than 64 kilobytes (65,535 bytes) in size, including whitespace. + // + // Either a Question parameter or a HITLayoutId parameter must be provided. + Question *string `type:"string"` + + // An arbitrary data field. The RequesterAnnotation parameter lets your application + // attach arbitrary data to the HIT for tracking purposes. For example, this + // parameter could be an identifier internal to the Requester's application + // that corresponds with the HIT. + // + // The RequesterAnnotation parameter for a HIT is only visible to the Requester + // who created the HIT. It is not shown to the Worker, or any other Requester. + // + // The RequesterAnnotation parameter may be different for each HIT you submit. + // It does not affect how your HITs are grouped. + RequesterAnnotation *string `type:"string"` + + // The amount of money the Requester will pay a Worker for successfully completing + // the HIT. + // + // Reward is a required field + Reward *string `type:"string" required:"true"` + + // The title of the HIT. A title should be short and descriptive about the kind + // of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT + // title appears in search results, and everywhere the HIT is mentioned. + // + // Title is a required field + Title *string `type:"string" required:"true"` + + // A unique identifier for this request which allows you to retry the call on + // error without creating duplicate HITs. This is useful in cases such as network + // timeouts where it is unclear whether or not the call succeeded on the server. + // If the HIT already exists in the system from a previous call using the same + // UniqueRequestToken, subsequent calls will return a AWS.MechanicalTurk.HitAlreadyExists + // error with a message containing the HITId. + // + // Note: It is your responsibility to ensure uniqueness of the token. The unique + // token expires after 24 hours. Subsequent calls using the same UniqueRequestToken + // made after the 24 hour limit could create duplicate HITs. + UniqueRequestToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s CreateHITInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateHITInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateHITInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateHITInput"} + if s.AssignmentDurationInSeconds == nil { + invalidParams.Add(request.NewErrParamRequired("AssignmentDurationInSeconds")) + } + if s.Description == nil { + invalidParams.Add(request.NewErrParamRequired("Description")) + } + if s.HITLayoutId != nil && len(*s.HITLayoutId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HITLayoutId", 1)) + } + if s.LifetimeInSeconds == nil { + invalidParams.Add(request.NewErrParamRequired("LifetimeInSeconds")) + } + if s.Reward == nil { + invalidParams.Add(request.NewErrParamRequired("Reward")) + } + if s.Title == nil { + invalidParams.Add(request.NewErrParamRequired("Title")) + } + if s.UniqueRequestToken != nil && len(*s.UniqueRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UniqueRequestToken", 1)) + } + if s.QualificationRequirements != nil { + for i, v := range s.QualificationRequirements { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "QualificationRequirements", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssignmentDurationInSeconds sets the AssignmentDurationInSeconds field's value. +func (s *CreateHITInput) SetAssignmentDurationInSeconds(v int64) *CreateHITInput { + s.AssignmentDurationInSeconds = &v + return s +} + +// SetAssignmentReviewPolicy sets the AssignmentReviewPolicy field's value. +func (s *CreateHITInput) SetAssignmentReviewPolicy(v *ReviewPolicy) *CreateHITInput { + s.AssignmentReviewPolicy = v + return s +} + +// SetAutoApprovalDelayInSeconds sets the AutoApprovalDelayInSeconds field's value. +func (s *CreateHITInput) SetAutoApprovalDelayInSeconds(v int64) *CreateHITInput { + s.AutoApprovalDelayInSeconds = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateHITInput) SetDescription(v string) *CreateHITInput { + s.Description = &v + return s +} + +// SetHITLayoutId sets the HITLayoutId field's value. +func (s *CreateHITInput) SetHITLayoutId(v string) *CreateHITInput { + s.HITLayoutId = &v + return s +} + +// SetHITLayoutParameters sets the HITLayoutParameters field's value. +func (s *CreateHITInput) SetHITLayoutParameters(v []*HITLayoutParameter) *CreateHITInput { + s.HITLayoutParameters = v + return s +} + +// SetHITReviewPolicy sets the HITReviewPolicy field's value. +func (s *CreateHITInput) SetHITReviewPolicy(v *ReviewPolicy) *CreateHITInput { + s.HITReviewPolicy = v + return s +} + +// SetKeywords sets the Keywords field's value. +func (s *CreateHITInput) SetKeywords(v string) *CreateHITInput { + s.Keywords = &v + return s +} + +// SetLifetimeInSeconds sets the LifetimeInSeconds field's value. +func (s *CreateHITInput) SetLifetimeInSeconds(v int64) *CreateHITInput { + s.LifetimeInSeconds = &v + return s +} + +// SetMaxAssignments sets the MaxAssignments field's value. +func (s *CreateHITInput) SetMaxAssignments(v int64) *CreateHITInput { + s.MaxAssignments = &v + return s +} + +// SetQualificationRequirements sets the QualificationRequirements field's value. +func (s *CreateHITInput) SetQualificationRequirements(v []*QualificationRequirement) *CreateHITInput { + s.QualificationRequirements = v + return s +} + +// SetQuestion sets the Question field's value. +func (s *CreateHITInput) SetQuestion(v string) *CreateHITInput { + s.Question = &v + return s +} + +// SetRequesterAnnotation sets the RequesterAnnotation field's value. +func (s *CreateHITInput) SetRequesterAnnotation(v string) *CreateHITInput { + s.RequesterAnnotation = &v + return s +} + +// SetReward sets the Reward field's value. +func (s *CreateHITInput) SetReward(v string) *CreateHITInput { + s.Reward = &v + return s +} + +// SetTitle sets the Title field's value. +func (s *CreateHITInput) SetTitle(v string) *CreateHITInput { + s.Title = &v + return s +} + +// SetUniqueRequestToken sets the UniqueRequestToken field's value. +func (s *CreateHITInput) SetUniqueRequestToken(v string) *CreateHITInput { + s.UniqueRequestToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITResponse +type CreateHITOutput struct { + _ struct{} `type:"structure"` + + // Contains the newly created HIT data. For a description of the HIT data structure + // as it appears in responses, see the HIT Data Structure documentation. + HIT *HIT `type:"structure"` +} + +// String returns the string representation +func (s CreateHITOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateHITOutput) GoString() string { + return s.String() +} + +// SetHIT sets the HIT field's value. +func (s *CreateHITOutput) SetHIT(v *HIT) *CreateHITOutput { + s.HIT = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITTypeRequest +type CreateHITTypeInput struct { + _ struct{} `type:"structure"` + + // The amount of time, in seconds, that a Worker has to complete the HIT after + // accepting it. If a Worker does not complete the assignment within the specified + // duration, the assignment is considered abandoned. If the HIT is still active + // (that is, its lifetime has not elapsed), the assignment becomes available + // for other users to find and accept. + // + // AssignmentDurationInSeconds is a required field + AssignmentDurationInSeconds *int64 `type:"long" required:"true"` + + // The number of seconds after an assignment for the HIT has been submitted, + // after which the assignment is considered Approved automatically unless the + // Requester explicitly rejects it. + AutoApprovalDelayInSeconds *int64 `type:"long"` + + // A general description of the HIT. A description includes detailed information + // about the kind of task the HIT contains. On the Amazon Mechanical Turk web + // site, the HIT description appears in the expanded view of search results, + // and in the HIT and assignment screens. A good description gives the user + // enough information to evaluate the HIT before accepting it. + // + // Description is a required field + Description *string `type:"string" required:"true"` + + // One or more words or phrases that describe the HIT, separated by commas. + // These words are used in searches to find HITs. + Keywords *string `type:"string"` + + // A condition that a Worker's Qualifications must meet before the Worker is + // allowed to accept and complete the HIT. + QualificationRequirements []*QualificationRequirement `type:"list"` + + // The amount of money the Requester will pay a Worker for successfully completing + // the HIT. + // + // Reward is a required field + Reward *string `type:"string" required:"true"` + + // The title of the HIT. A title should be short and descriptive about the kind + // of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT + // title appears in search results, and everywhere the HIT is mentioned. + // + // Title is a required field + Title *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateHITTypeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateHITTypeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateHITTypeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateHITTypeInput"} + if s.AssignmentDurationInSeconds == nil { + invalidParams.Add(request.NewErrParamRequired("AssignmentDurationInSeconds")) + } + if s.Description == nil { + invalidParams.Add(request.NewErrParamRequired("Description")) + } + if s.Reward == nil { + invalidParams.Add(request.NewErrParamRequired("Reward")) + } + if s.Title == nil { + invalidParams.Add(request.NewErrParamRequired("Title")) + } + if s.QualificationRequirements != nil { + for i, v := range s.QualificationRequirements { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "QualificationRequirements", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssignmentDurationInSeconds sets the AssignmentDurationInSeconds field's value. +func (s *CreateHITTypeInput) SetAssignmentDurationInSeconds(v int64) *CreateHITTypeInput { + s.AssignmentDurationInSeconds = &v + return s +} + +// SetAutoApprovalDelayInSeconds sets the AutoApprovalDelayInSeconds field's value. +func (s *CreateHITTypeInput) SetAutoApprovalDelayInSeconds(v int64) *CreateHITTypeInput { + s.AutoApprovalDelayInSeconds = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateHITTypeInput) SetDescription(v string) *CreateHITTypeInput { + s.Description = &v + return s +} + +// SetKeywords sets the Keywords field's value. +func (s *CreateHITTypeInput) SetKeywords(v string) *CreateHITTypeInput { + s.Keywords = &v + return s +} + +// SetQualificationRequirements sets the QualificationRequirements field's value. +func (s *CreateHITTypeInput) SetQualificationRequirements(v []*QualificationRequirement) *CreateHITTypeInput { + s.QualificationRequirements = v + return s +} + +// SetReward sets the Reward field's value. +func (s *CreateHITTypeInput) SetReward(v string) *CreateHITTypeInput { + s.Reward = &v + return s +} + +// SetTitle sets the Title field's value. +func (s *CreateHITTypeInput) SetTitle(v string) *CreateHITTypeInput { + s.Title = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITTypeResponse +type CreateHITTypeOutput struct { + _ struct{} `type:"structure"` + + // The ID of the newly registered HIT type. + HITTypeId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s CreateHITTypeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateHITTypeOutput) GoString() string { + return s.String() +} + +// SetHITTypeId sets the HITTypeId field's value. +func (s *CreateHITTypeOutput) SetHITTypeId(v string) *CreateHITTypeOutput { + s.HITTypeId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITWithHITTypeRequest +type CreateHITWithHITTypeInput struct { + _ struct{} `type:"structure"` + + // The Assignment-level Review Policy applies to the assignments under the HIT. + // You can specify for Mechanical Turk to take various actions based on the + // policy. + AssignmentReviewPolicy *ReviewPolicy `type:"structure"` + + // The HITLayoutId allows you to use a pre-existing HIT design with placeholder + // values and create an additional HIT by providing those values as HITLayoutParameters. + // + // Constraints: Either a Question parameter or a HITLayoutId parameter must + // be provided. + HITLayoutId *string `min:"1" type:"string"` + + // If the HITLayoutId is provided, any placeholder values must be filled in + // with values using the HITLayoutParameter structure. For more information, + // see HITLayout. + HITLayoutParameters []*HITLayoutParameter `type:"list"` + + // The HIT-level Review Policy applies to the HIT. You can specify for Mechanical + // Turk to take various actions based on the policy. + HITReviewPolicy *ReviewPolicy `type:"structure"` + + // The HIT type ID you want to create this HIT with. + // + // HITTypeId is a required field + HITTypeId *string `min:"1" type:"string" required:"true"` + + // An amount of time, in seconds, after which the HIT is no longer available + // for users to accept. After the lifetime of the HIT elapses, the HIT no longer + // appears in HIT searches, even if not all of the assignments for the HIT have + // been accepted. + // + // LifetimeInSeconds is a required field + LifetimeInSeconds *int64 `type:"long" required:"true"` + + // The number of times the HIT can be accepted and completed before the HIT + // becomes unavailable. + MaxAssignments *int64 `type:"integer"` + + // The data the person completing the HIT uses to produce the results. + // + // Constraints: Must be a QuestionForm data structure, an ExternalQuestion data + // structure, or an HTMLQuestion data structure. The XML question data must + // not be larger than 64 kilobytes (65,535 bytes) in size, including whitespace. + // + // Either a Question parameter or a HITLayoutId parameter must be provided. + Question *string `type:"string"` + + // An arbitrary data field. The RequesterAnnotation parameter lets your application + // attach arbitrary data to the HIT for tracking purposes. For example, this + // parameter could be an identifier internal to the Requester's application + // that corresponds with the HIT. + // + // The RequesterAnnotation parameter for a HIT is only visible to the Requester + // who created the HIT. It is not shown to the Worker, or any other Requester. + // + // The RequesterAnnotation parameter may be different for each HIT you submit. + // It does not affect how your HITs are grouped. + RequesterAnnotation *string `type:"string"` + + // A unique identifier for this request which allows you to retry the call on + // error without creating duplicate HITs. This is useful in cases such as network + // timeouts where it is unclear whether or not the call succeeded on the server. + // If the HIT already exists in the system from a previous call using the same + // UniqueRequestToken, subsequent calls will return a AWS.MechanicalTurk.HitAlreadyExists + // error with a message containing the HITId. + // + // Note: It is your responsibility to ensure uniqueness of the token. The unique + // token expires after 24 hours. Subsequent calls using the same UniqueRequestToken + // made after the 24 hour limit could create duplicate HITs. + UniqueRequestToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s CreateHITWithHITTypeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateHITWithHITTypeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateHITWithHITTypeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateHITWithHITTypeInput"} + if s.HITLayoutId != nil && len(*s.HITLayoutId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HITLayoutId", 1)) + } + if s.HITTypeId == nil { + invalidParams.Add(request.NewErrParamRequired("HITTypeId")) + } + if s.HITTypeId != nil && len(*s.HITTypeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HITTypeId", 1)) + } + if s.LifetimeInSeconds == nil { + invalidParams.Add(request.NewErrParamRequired("LifetimeInSeconds")) + } + if s.UniqueRequestToken != nil && len(*s.UniqueRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UniqueRequestToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssignmentReviewPolicy sets the AssignmentReviewPolicy field's value. +func (s *CreateHITWithHITTypeInput) SetAssignmentReviewPolicy(v *ReviewPolicy) *CreateHITWithHITTypeInput { + s.AssignmentReviewPolicy = v + return s +} + +// SetHITLayoutId sets the HITLayoutId field's value. +func (s *CreateHITWithHITTypeInput) SetHITLayoutId(v string) *CreateHITWithHITTypeInput { + s.HITLayoutId = &v + return s +} + +// SetHITLayoutParameters sets the HITLayoutParameters field's value. +func (s *CreateHITWithHITTypeInput) SetHITLayoutParameters(v []*HITLayoutParameter) *CreateHITWithHITTypeInput { + s.HITLayoutParameters = v + return s +} + +// SetHITReviewPolicy sets the HITReviewPolicy field's value. +func (s *CreateHITWithHITTypeInput) SetHITReviewPolicy(v *ReviewPolicy) *CreateHITWithHITTypeInput { + s.HITReviewPolicy = v + return s +} + +// SetHITTypeId sets the HITTypeId field's value. +func (s *CreateHITWithHITTypeInput) SetHITTypeId(v string) *CreateHITWithHITTypeInput { + s.HITTypeId = &v + return s +} + +// SetLifetimeInSeconds sets the LifetimeInSeconds field's value. +func (s *CreateHITWithHITTypeInput) SetLifetimeInSeconds(v int64) *CreateHITWithHITTypeInput { + s.LifetimeInSeconds = &v + return s +} + +// SetMaxAssignments sets the MaxAssignments field's value. +func (s *CreateHITWithHITTypeInput) SetMaxAssignments(v int64) *CreateHITWithHITTypeInput { + s.MaxAssignments = &v + return s +} + +// SetQuestion sets the Question field's value. +func (s *CreateHITWithHITTypeInput) SetQuestion(v string) *CreateHITWithHITTypeInput { + s.Question = &v + return s +} + +// SetRequesterAnnotation sets the RequesterAnnotation field's value. +func (s *CreateHITWithHITTypeInput) SetRequesterAnnotation(v string) *CreateHITWithHITTypeInput { + s.RequesterAnnotation = &v + return s +} + +// SetUniqueRequestToken sets the UniqueRequestToken field's value. +func (s *CreateHITWithHITTypeInput) SetUniqueRequestToken(v string) *CreateHITWithHITTypeInput { + s.UniqueRequestToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITWithHITTypeResponse +type CreateHITWithHITTypeOutput struct { + _ struct{} `type:"structure"` + + // Contains the newly created HIT data. For a description of the HIT data structure + // as it appears in responses, see the HIT Data Structure documentation. + HIT *HIT `type:"structure"` +} + +// String returns the string representation +func (s CreateHITWithHITTypeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateHITWithHITTypeOutput) GoString() string { + return s.String() +} + +// SetHIT sets the HIT field's value. +func (s *CreateHITWithHITTypeOutput) SetHIT(v *HIT) *CreateHITWithHITTypeOutput { + s.HIT = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateQualificationTypeRequest +type CreateQualificationTypeInput struct { + _ struct{} `type:"structure"` + + // The answers to the Qualification test specified in the Test parameter, in + // the form of an AnswerKey data structure. + // + // Constraints: Must not be longer than 65535 bytes. + // + // Constraints: None. If not specified, you must process Qualification requests + // manually. + AnswerKey *string `type:"string"` + + // Specifies whether requests for the Qualification type are granted immediately, + // without prompting the Worker with a Qualification test. + // + // Constraints: If the Test parameter is specified, this parameter cannot be + // true. + AutoGranted *bool `type:"boolean"` + + // The Qualification value to use for automatically granted Qualifications. + // This parameter is used only if the AutoGranted parameter is true. + AutoGrantedValue *int64 `type:"integer"` + + // A long description for the Qualification type. On the Amazon Mechanical Turk + // website, the long description is displayed when a Worker examines a Qualification + // type. + // + // Description is a required field + Description *string `type:"string" required:"true"` + + // One or more words or phrases that describe the Qualification type, separated + // by commas. The keywords of a type make the type easier to find during a search. + Keywords *string `type:"string"` + + // The name you give to the Qualification type. The type name is used to represent + // the Qualification to Workers, and to find the type using a Qualification + // type search. It must be unique across all of your Qualification types. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The initial status of the Qualification type. + // + // Constraints: Valid values are: Active | Inactive + // + // QualificationTypeStatus is a required field + QualificationTypeStatus *string `type:"string" required:"true" enum:"QualificationTypeStatus"` + + // The number of seconds that a Worker must wait after requesting a Qualification + // of the Qualification type before the worker can retry the Qualification request. + // + // Constraints: None. If not specified, retries are disabled and Workers can + // request a Qualification of this type only once, even if the Worker has not + // been granted the Qualification. It is not possible to disable retries for + // a Qualification type after it has been created with retries enabled. If you + // want to disable retries, you must delete existing retry-enabled Qualification + // type and then create a new Qualification type with retries disabled. + RetryDelayInSeconds *int64 `type:"long"` + + // The questions for the Qualification test a Worker must answer correctly to + // obtain a Qualification of this type. If this parameter is specified, TestDurationInSeconds + // must also be specified. + // + // Constraints: Must not be longer than 65535 bytes. Must be a QuestionForm + // data structure. This parameter cannot be specified if AutoGranted is true. + // + // Constraints: None. If not specified, the Worker may request the Qualification + // without answering any questions. + Test *string `type:"string"` + + // The number of seconds the Worker has to complete the Qualification test, + // starting from the time the Worker requests the Qualification. + TestDurationInSeconds *int64 `type:"long"` +} + +// String returns the string representation +func (s CreateQualificationTypeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateQualificationTypeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateQualificationTypeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateQualificationTypeInput"} + if s.Description == nil { + invalidParams.Add(request.NewErrParamRequired("Description")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.QualificationTypeStatus == nil { + invalidParams.Add(request.NewErrParamRequired("QualificationTypeStatus")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAnswerKey sets the AnswerKey field's value. +func (s *CreateQualificationTypeInput) SetAnswerKey(v string) *CreateQualificationTypeInput { + s.AnswerKey = &v + return s +} + +// SetAutoGranted sets the AutoGranted field's value. +func (s *CreateQualificationTypeInput) SetAutoGranted(v bool) *CreateQualificationTypeInput { + s.AutoGranted = &v + return s +} + +// SetAutoGrantedValue sets the AutoGrantedValue field's value. +func (s *CreateQualificationTypeInput) SetAutoGrantedValue(v int64) *CreateQualificationTypeInput { + s.AutoGrantedValue = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateQualificationTypeInput) SetDescription(v string) *CreateQualificationTypeInput { + s.Description = &v + return s +} + +// SetKeywords sets the Keywords field's value. +func (s *CreateQualificationTypeInput) SetKeywords(v string) *CreateQualificationTypeInput { + s.Keywords = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateQualificationTypeInput) SetName(v string) *CreateQualificationTypeInput { + s.Name = &v + return s +} + +// SetQualificationTypeStatus sets the QualificationTypeStatus field's value. +func (s *CreateQualificationTypeInput) SetQualificationTypeStatus(v string) *CreateQualificationTypeInput { + s.QualificationTypeStatus = &v + return s +} + +// SetRetryDelayInSeconds sets the RetryDelayInSeconds field's value. +func (s *CreateQualificationTypeInput) SetRetryDelayInSeconds(v int64) *CreateQualificationTypeInput { + s.RetryDelayInSeconds = &v + return s +} + +// SetTest sets the Test field's value. +func (s *CreateQualificationTypeInput) SetTest(v string) *CreateQualificationTypeInput { + s.Test = &v + return s +} + +// SetTestDurationInSeconds sets the TestDurationInSeconds field's value. +func (s *CreateQualificationTypeInput) SetTestDurationInSeconds(v int64) *CreateQualificationTypeInput { + s.TestDurationInSeconds = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateQualificationTypeResponse +type CreateQualificationTypeOutput struct { + _ struct{} `type:"structure"` + + // The created Qualification type, returned as a QualificationType data structure. + QualificationType *QualificationType `type:"structure"` +} + +// String returns the string representation +func (s CreateQualificationTypeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateQualificationTypeOutput) GoString() string { + return s.String() +} + +// SetQualificationType sets the QualificationType field's value. +func (s *CreateQualificationTypeOutput) SetQualificationType(v *QualificationType) *CreateQualificationTypeOutput { + s.QualificationType = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateWorkerBlockRequest +type CreateWorkerBlockInput struct { + _ struct{} `type:"structure"` + + // A message explaining the reason for blocking the Worker. This parameter enables + // you to keep track of your Workers. The Worker does not see this message. + // + // Reason is a required field + Reason *string `type:"string" required:"true"` + + // The ID of the Worker to block. + // + // WorkerId is a required field + WorkerId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateWorkerBlockInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateWorkerBlockInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateWorkerBlockInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateWorkerBlockInput"} + if s.Reason == nil { + invalidParams.Add(request.NewErrParamRequired("Reason")) + } + if s.WorkerId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkerId")) + } + if s.WorkerId != nil && len(*s.WorkerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkerId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetReason sets the Reason field's value. +func (s *CreateWorkerBlockInput) SetReason(v string) *CreateWorkerBlockInput { + s.Reason = &v + return s +} + +// SetWorkerId sets the WorkerId field's value. +func (s *CreateWorkerBlockInput) SetWorkerId(v string) *CreateWorkerBlockInput { + s.WorkerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateWorkerBlockResponse +type CreateWorkerBlockOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateWorkerBlockOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateWorkerBlockOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteHITRequest +type DeleteHITInput struct { + _ struct{} `type:"structure"` + + // The ID of the HIT to be deleted. + // + // HITId is a required field + HITId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteHITInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteHITInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteHITInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteHITInput"} + if s.HITId == nil { + invalidParams.Add(request.NewErrParamRequired("HITId")) + } + if s.HITId != nil && len(*s.HITId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HITId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHITId sets the HITId field's value. +func (s *DeleteHITInput) SetHITId(v string) *DeleteHITInput { + s.HITId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteHITResponse +type DeleteHITOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteHITOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteHITOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteQualificationTypeRequest +type DeleteQualificationTypeInput struct { + _ struct{} `type:"structure"` + + // The ID of the QualificationType to dispose. + // + // QualificationTypeId is a required field + QualificationTypeId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteQualificationTypeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteQualificationTypeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteQualificationTypeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteQualificationTypeInput"} + if s.QualificationTypeId == nil { + invalidParams.Add(request.NewErrParamRequired("QualificationTypeId")) + } + if s.QualificationTypeId != nil && len(*s.QualificationTypeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QualificationTypeId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetQualificationTypeId sets the QualificationTypeId field's value. +func (s *DeleteQualificationTypeInput) SetQualificationTypeId(v string) *DeleteQualificationTypeInput { + s.QualificationTypeId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteQualificationTypeResponse +type DeleteQualificationTypeOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteQualificationTypeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteQualificationTypeOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteWorkerBlockRequest +type DeleteWorkerBlockInput struct { + _ struct{} `type:"structure"` + + // A message that explains the reason for unblocking the Worker. The Worker + // does not see this message. + Reason *string `type:"string"` + + // The ID of the Worker to unblock. + // + // WorkerId is a required field + WorkerId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteWorkerBlockInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteWorkerBlockInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteWorkerBlockInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteWorkerBlockInput"} + if s.WorkerId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkerId")) + } + if s.WorkerId != nil && len(*s.WorkerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkerId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetReason sets the Reason field's value. +func (s *DeleteWorkerBlockInput) SetReason(v string) *DeleteWorkerBlockInput { + s.Reason = &v + return s +} + +// SetWorkerId sets the WorkerId field's value. +func (s *DeleteWorkerBlockInput) SetWorkerId(v string) *DeleteWorkerBlockInput { + s.WorkerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteWorkerBlockResponse +type DeleteWorkerBlockOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteWorkerBlockOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteWorkerBlockOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DisassociateQualificationFromWorkerRequest +type DisassociateQualificationFromWorkerInput struct { + _ struct{} `type:"structure"` + + // The ID of the Qualification type of the Qualification to be revoked. + // + // QualificationTypeId is a required field + QualificationTypeId *string `min:"1" type:"string" required:"true"` + + // A text message that explains why the Qualification was revoked. The user + // who had the Qualification sees this message. + Reason *string `type:"string"` + + // The ID of the Worker who possesses the Qualification to be revoked. + // + // WorkerId is a required field + WorkerId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateQualificationFromWorkerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateQualificationFromWorkerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateQualificationFromWorkerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateQualificationFromWorkerInput"} + if s.QualificationTypeId == nil { + invalidParams.Add(request.NewErrParamRequired("QualificationTypeId")) + } + if s.QualificationTypeId != nil && len(*s.QualificationTypeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QualificationTypeId", 1)) + } + if s.WorkerId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkerId")) + } + if s.WorkerId != nil && len(*s.WorkerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkerId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetQualificationTypeId sets the QualificationTypeId field's value. +func (s *DisassociateQualificationFromWorkerInput) SetQualificationTypeId(v string) *DisassociateQualificationFromWorkerInput { + s.QualificationTypeId = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *DisassociateQualificationFromWorkerInput) SetReason(v string) *DisassociateQualificationFromWorkerInput { + s.Reason = &v + return s +} + +// SetWorkerId sets the WorkerId field's value. +func (s *DisassociateQualificationFromWorkerInput) SetWorkerId(v string) *DisassociateQualificationFromWorkerInput { + s.WorkerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DisassociateQualificationFromWorkerResponse +type DisassociateQualificationFromWorkerOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisassociateQualificationFromWorkerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateQualificationFromWorkerOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAccountBalanceRequest +type GetAccountBalanceInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s GetAccountBalanceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAccountBalanceInput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAccountBalanceResponse +type GetAccountBalanceOutput struct { + _ struct{} `type:"structure"` + + // A string representing a numeric value. + AvailableBalance *string `type:"string"` + + // A string representing a numeric value. + OnHoldBalance *string `type:"string"` +} + +// String returns the string representation +func (s GetAccountBalanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAccountBalanceOutput) GoString() string { + return s.String() +} + +// SetAvailableBalance sets the AvailableBalance field's value. +func (s *GetAccountBalanceOutput) SetAvailableBalance(v string) *GetAccountBalanceOutput { + s.AvailableBalance = &v + return s +} + +// SetOnHoldBalance sets the OnHoldBalance field's value. +func (s *GetAccountBalanceOutput) SetOnHoldBalance(v string) *GetAccountBalanceOutput { + s.OnHoldBalance = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAssignmentRequest +type GetAssignmentInput struct { + _ struct{} `type:"structure"` + + // The ID of the Assignment to be retrieved. + // + // AssignmentId is a required field + AssignmentId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetAssignmentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAssignmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetAssignmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAssignmentInput"} + if s.AssignmentId == nil { + invalidParams.Add(request.NewErrParamRequired("AssignmentId")) + } + if s.AssignmentId != nil && len(*s.AssignmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AssignmentId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssignmentId sets the AssignmentId field's value. +func (s *GetAssignmentInput) SetAssignmentId(v string) *GetAssignmentInput { + s.AssignmentId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAssignmentResponse +type GetAssignmentOutput struct { + _ struct{} `type:"structure"` + + // The assignment. The response includes one Assignment element. + Assignment *Assignment `type:"structure"` + + // The HIT associated with this assignment. The response includes one HIT element. + HIT *HIT `type:"structure"` +} + +// String returns the string representation +func (s GetAssignmentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAssignmentOutput) GoString() string { + return s.String() +} + +// SetAssignment sets the Assignment field's value. +func (s *GetAssignmentOutput) SetAssignment(v *Assignment) *GetAssignmentOutput { + s.Assignment = v + return s +} + +// SetHIT sets the HIT field's value. +func (s *GetAssignmentOutput) SetHIT(v *HIT) *GetAssignmentOutput { + s.HIT = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetFileUploadURLRequest +type GetFileUploadURLInput struct { + _ struct{} `type:"structure"` + + // The ID of the assignment that contains the question with a FileUploadAnswer. + // + // AssignmentId is a required field + AssignmentId *string `min:"1" type:"string" required:"true"` + + // The identifier of the question with a FileUploadAnswer, as specified in the + // QuestionForm of the HIT. + // + // QuestionIdentifier is a required field + QuestionIdentifier *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s GetFileUploadURLInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetFileUploadURLInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetFileUploadURLInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetFileUploadURLInput"} + if s.AssignmentId == nil { + invalidParams.Add(request.NewErrParamRequired("AssignmentId")) + } + if s.AssignmentId != nil && len(*s.AssignmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AssignmentId", 1)) + } + if s.QuestionIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("QuestionIdentifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssignmentId sets the AssignmentId field's value. +func (s *GetFileUploadURLInput) SetAssignmentId(v string) *GetFileUploadURLInput { + s.AssignmentId = &v + return s +} + +// SetQuestionIdentifier sets the QuestionIdentifier field's value. +func (s *GetFileUploadURLInput) SetQuestionIdentifier(v string) *GetFileUploadURLInput { + s.QuestionIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetFileUploadURLResponse +type GetFileUploadURLOutput struct { + _ struct{} `type:"structure"` + + // A temporary URL for the file that the Worker uploaded for the answer. + FileUploadURL *string `type:"string"` +} + +// String returns the string representation +func (s GetFileUploadURLOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetFileUploadURLOutput) GoString() string { + return s.String() +} + +// SetFileUploadURL sets the FileUploadURL field's value. +func (s *GetFileUploadURLOutput) SetFileUploadURL(v string) *GetFileUploadURLOutput { + s.FileUploadURL = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetHITRequest +type GetHITInput struct { + _ struct{} `type:"structure"` + + // The ID of the HIT to be retrieved. + // + // HITId is a required field + HITId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetHITInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetHITInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetHITInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetHITInput"} + if s.HITId == nil { + invalidParams.Add(request.NewErrParamRequired("HITId")) + } + if s.HITId != nil && len(*s.HITId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HITId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHITId sets the HITId field's value. +func (s *GetHITInput) SetHITId(v string) *GetHITInput { + s.HITId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetHITResponse +type GetHITOutput struct { + _ struct{} `type:"structure"` + + // Contains the requested HIT data. + HIT *HIT `type:"structure"` +} + +// String returns the string representation +func (s GetHITOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetHITOutput) GoString() string { + return s.String() +} + +// SetHIT sets the HIT field's value. +func (s *GetHITOutput) SetHIT(v *HIT) *GetHITOutput { + s.HIT = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetQualificationScoreRequest +type GetQualificationScoreInput struct { + _ struct{} `type:"structure"` + + // The ID of the QualificationType. + // + // QualificationTypeId is a required field + QualificationTypeId *string `min:"1" type:"string" required:"true"` + + // The ID of the Worker whose Qualification is being updated. + // + // WorkerId is a required field + WorkerId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetQualificationScoreInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetQualificationScoreInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetQualificationScoreInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetQualificationScoreInput"} + if s.QualificationTypeId == nil { + invalidParams.Add(request.NewErrParamRequired("QualificationTypeId")) + } + if s.QualificationTypeId != nil && len(*s.QualificationTypeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QualificationTypeId", 1)) + } + if s.WorkerId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkerId")) + } + if s.WorkerId != nil && len(*s.WorkerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkerId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetQualificationTypeId sets the QualificationTypeId field's value. +func (s *GetQualificationScoreInput) SetQualificationTypeId(v string) *GetQualificationScoreInput { + s.QualificationTypeId = &v + return s +} + +// SetWorkerId sets the WorkerId field's value. +func (s *GetQualificationScoreInput) SetWorkerId(v string) *GetQualificationScoreInput { + s.WorkerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetQualificationScoreResponse +type GetQualificationScoreOutput struct { + _ struct{} `type:"structure"` + + // The Qualification data structure of the Qualification assigned to a user, + // including the Qualification type and the value (score). + Qualification *Qualification `type:"structure"` +} + +// String returns the string representation +func (s GetQualificationScoreOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetQualificationScoreOutput) GoString() string { + return s.String() +} + +// SetQualification sets the Qualification field's value. +func (s *GetQualificationScoreOutput) SetQualification(v *Qualification) *GetQualificationScoreOutput { + s.Qualification = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetQualificationTypeRequest +type GetQualificationTypeInput struct { + _ struct{} `type:"structure"` + + // The ID of the QualificationType. + // + // QualificationTypeId is a required field + QualificationTypeId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetQualificationTypeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetQualificationTypeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetQualificationTypeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetQualificationTypeInput"} + if s.QualificationTypeId == nil { + invalidParams.Add(request.NewErrParamRequired("QualificationTypeId")) + } + if s.QualificationTypeId != nil && len(*s.QualificationTypeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QualificationTypeId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetQualificationTypeId sets the QualificationTypeId field's value. +func (s *GetQualificationTypeInput) SetQualificationTypeId(v string) *GetQualificationTypeInput { + s.QualificationTypeId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetQualificationTypeResponse +type GetQualificationTypeOutput struct { + _ struct{} `type:"structure"` + + // The returned Qualification Type + QualificationType *QualificationType `type:"structure"` +} + +// String returns the string representation +func (s GetQualificationTypeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetQualificationTypeOutput) GoString() string { + return s.String() +} + +// SetQualificationType sets the QualificationType field's value. +func (s *GetQualificationTypeOutput) SetQualificationType(v *QualificationType) *GetQualificationTypeOutput { + s.QualificationType = v + return s +} + +// The HIT data structure represents a single HIT, including all the information +// necessary for a Worker to accept and complete the HIT. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/HIT +type HIT struct { + _ struct{} `type:"structure"` + + // The length of time, in seconds, that a Worker has to complete the HIT after + // accepting it. + AssignmentDurationInSeconds *int64 `type:"long"` + + // The amount of time, in seconds, after the Worker submits an assignment for + // the HIT that the results are automatically approved by Amazon Mechanical + // Turk. This is the amount of time the Requester has to reject an assignment + // submitted by a Worker before the assignment is auto-approved and the Worker + // is paid. + AutoApprovalDelayInSeconds *int64 `type:"long"` + + // The date and time the HIT was created. + CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // A general description of the HIT. + Description *string `type:"string"` + + // The date and time the HIT expires. + Expiration *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The ID of the HIT Group of this HIT. + HITGroupId *string `min:"1" type:"string"` + + // A unique identifier for the HIT. + HITId *string `min:"1" type:"string"` + + // The ID of the HIT Layout of this HIT. + HITLayoutId *string `min:"1" type:"string"` + + // Indicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview + // | ReviewedAppropriate | ReviewedInappropriate. + HITReviewStatus *string `type:"string" enum:"HITReviewStatus"` + + // The status of the HIT and its assignments. Valid Values are Assignable | + // Unassignable | Reviewable | Reviewing | Disposed. + HITStatus *string `type:"string" enum:"HITStatus"` + + // The ID of the HIT type of this HIT + HITTypeId *string `min:"1" type:"string"` + + // One or more words or phrases that describe the HIT, separated by commas. + // Search terms similar to the keywords of a HIT are more likely to have the + // HIT in the search results. + Keywords *string `type:"string"` + + // The number of times the HIT can be accepted and completed before the HIT + // becomes unavailable. + MaxAssignments *int64 `type:"integer"` + + // The number of assignments for this HIT that are available for Workers to + // accept. + NumberOfAssignmentsAvailable *int64 `type:"integer"` + + // The number of assignments for this HIT that have been approved or rejected. + NumberOfAssignmentsCompleted *int64 `type:"integer"` + + // The number of assignments for this HIT that are being previewed or have been + // accepted by Workers, but have not yet been submitted, returned, or abandoned. + NumberOfAssignmentsPending *int64 `type:"integer"` + + // A condition that a Worker's Qualifications must meet in order to accept the + // HIT. A HIT can have between zero and ten Qualification requirements. All + // requirements must be met by a Worker's Qualifications for the Worker to accept + // the HIT. + QualificationRequirements []*QualificationRequirement `type:"list"` + + // The data the Worker completing the HIT uses produce the results. This is + // either either a QuestionForm, HTMLQuestion or an ExternalQuestion data structure. + Question *string `type:"string"` + + // An arbitrary data field the Requester who created the HIT can use. This field + // is visible only to the creator of the HIT. + RequesterAnnotation *string `type:"string"` + + // A string representing a numeric value. + Reward *string `type:"string"` + + // The title of the HIT. + Title *string `type:"string"` +} + +// String returns the string representation +func (s HIT) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HIT) GoString() string { + return s.String() +} + +// SetAssignmentDurationInSeconds sets the AssignmentDurationInSeconds field's value. +func (s *HIT) SetAssignmentDurationInSeconds(v int64) *HIT { + s.AssignmentDurationInSeconds = &v + return s +} + +// SetAutoApprovalDelayInSeconds sets the AutoApprovalDelayInSeconds field's value. +func (s *HIT) SetAutoApprovalDelayInSeconds(v int64) *HIT { + s.AutoApprovalDelayInSeconds = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *HIT) SetCreationTime(v time.Time) *HIT { + s.CreationTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *HIT) SetDescription(v string) *HIT { + s.Description = &v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *HIT) SetExpiration(v time.Time) *HIT { + s.Expiration = &v + return s +} + +// SetHITGroupId sets the HITGroupId field's value. +func (s *HIT) SetHITGroupId(v string) *HIT { + s.HITGroupId = &v + return s +} + +// SetHITId sets the HITId field's value. +func (s *HIT) SetHITId(v string) *HIT { + s.HITId = &v + return s +} + +// SetHITLayoutId sets the HITLayoutId field's value. +func (s *HIT) SetHITLayoutId(v string) *HIT { + s.HITLayoutId = &v + return s +} + +// SetHITReviewStatus sets the HITReviewStatus field's value. +func (s *HIT) SetHITReviewStatus(v string) *HIT { + s.HITReviewStatus = &v + return s +} + +// SetHITStatus sets the HITStatus field's value. +func (s *HIT) SetHITStatus(v string) *HIT { + s.HITStatus = &v + return s +} + +// SetHITTypeId sets the HITTypeId field's value. +func (s *HIT) SetHITTypeId(v string) *HIT { + s.HITTypeId = &v + return s +} + +// SetKeywords sets the Keywords field's value. +func (s *HIT) SetKeywords(v string) *HIT { + s.Keywords = &v + return s +} + +// SetMaxAssignments sets the MaxAssignments field's value. +func (s *HIT) SetMaxAssignments(v int64) *HIT { + s.MaxAssignments = &v + return s +} + +// SetNumberOfAssignmentsAvailable sets the NumberOfAssignmentsAvailable field's value. +func (s *HIT) SetNumberOfAssignmentsAvailable(v int64) *HIT { + s.NumberOfAssignmentsAvailable = &v + return s +} + +// SetNumberOfAssignmentsCompleted sets the NumberOfAssignmentsCompleted field's value. +func (s *HIT) SetNumberOfAssignmentsCompleted(v int64) *HIT { + s.NumberOfAssignmentsCompleted = &v + return s +} + +// SetNumberOfAssignmentsPending sets the NumberOfAssignmentsPending field's value. +func (s *HIT) SetNumberOfAssignmentsPending(v int64) *HIT { + s.NumberOfAssignmentsPending = &v + return s +} + +// SetQualificationRequirements sets the QualificationRequirements field's value. +func (s *HIT) SetQualificationRequirements(v []*QualificationRequirement) *HIT { + s.QualificationRequirements = v + return s +} + +// SetQuestion sets the Question field's value. +func (s *HIT) SetQuestion(v string) *HIT { + s.Question = &v + return s +} + +// SetRequesterAnnotation sets the RequesterAnnotation field's value. +func (s *HIT) SetRequesterAnnotation(v string) *HIT { + s.RequesterAnnotation = &v + return s +} + +// SetReward sets the Reward field's value. +func (s *HIT) SetReward(v string) *HIT { + s.Reward = &v + return s +} + +// SetTitle sets the Title field's value. +func (s *HIT) SetTitle(v string) *HIT { + s.Title = &v + return s +} + +// The HITLayoutParameter data structure defines parameter values used with +// a HITLayout. A HITLayout is a reusable Amazon Mechanical Turk project template +// used to provide Human Intelligence Task (HIT) question data for CreateHIT. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/HITLayoutParameter +type HITLayoutParameter struct { + _ struct{} `type:"structure"` + + // The name of the parameter in the HITLayout. + Name *string `type:"string"` + + // The value substituted for the parameter referenced in the HITLayout. + Value *string `type:"string"` +} + +// String returns the string representation +func (s HITLayoutParameter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HITLayoutParameter) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *HITLayoutParameter) SetName(v string) *HITLayoutParameter { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *HITLayoutParameter) SetValue(v string) *HITLayoutParameter { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListAssignmentsForHITRequest +type ListAssignmentsForHITInput struct { + _ struct{} `type:"structure"` + + // The status of the assignments to return: Submitted | Approved | Rejected + AssignmentStatuses []*string `type:"list"` + + // The ID of the HIT. + // + // HITId is a required field + HITId *string `min:"1" type:"string" required:"true"` + + MaxResults *int64 `min:"1" type:"integer"` + + // Pagination token + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListAssignmentsForHITInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAssignmentsForHITInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAssignmentsForHITInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAssignmentsForHITInput"} + if s.HITId == nil { + invalidParams.Add(request.NewErrParamRequired("HITId")) + } + if s.HITId != nil && len(*s.HITId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HITId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssignmentStatuses sets the AssignmentStatuses field's value. +func (s *ListAssignmentsForHITInput) SetAssignmentStatuses(v []*string) *ListAssignmentsForHITInput { + s.AssignmentStatuses = v + return s +} + +// SetHITId sets the HITId field's value. +func (s *ListAssignmentsForHITInput) SetHITId(v string) *ListAssignmentsForHITInput { + s.HITId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAssignmentsForHITInput) SetMaxResults(v int64) *ListAssignmentsForHITInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssignmentsForHITInput) SetNextToken(v string) *ListAssignmentsForHITInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListAssignmentsForHITResponse +type ListAssignmentsForHITOutput struct { + _ struct{} `type:"structure"` + + // The collection of Assignment data structures returned by this call. + Assignments []*Assignment `type:"list"` + + // If the previous response was incomplete (because there is more data to retrieve), + // Amazon Mechanical Turk returns a pagination token in the response. You can + // use this pagination token to retrieve the next set of results. + NextToken *string `min:"1" type:"string"` + + // The number of assignments on the page in the filtered results list, equivalent + // to the number of assignments returned by this call. + NumResults *int64 `type:"integer"` +} + +// String returns the string representation +func (s ListAssignmentsForHITOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAssignmentsForHITOutput) GoString() string { + return s.String() +} + +// SetAssignments sets the Assignments field's value. +func (s *ListAssignmentsForHITOutput) SetAssignments(v []*Assignment) *ListAssignmentsForHITOutput { + s.Assignments = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssignmentsForHITOutput) SetNextToken(v string) *ListAssignmentsForHITOutput { + s.NextToken = &v + return s +} + +// SetNumResults sets the NumResults field's value. +func (s *ListAssignmentsForHITOutput) SetNumResults(v int64) *ListAssignmentsForHITOutput { + s.NumResults = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListBonusPaymentsRequest +type ListBonusPaymentsInput struct { + _ struct{} `type:"structure"` + + // The ID of the assignment associated with the bonus payments to retrieve. + // If specified, only bonus payments for the given assignment are returned. + // Either the HITId parameter or the AssignmentId parameter must be specified + AssignmentId *string `min:"1" type:"string"` + + // The ID of the HIT associated with the bonus payments to retrieve. If not + // specified, all bonus payments for all assignments for the given HIT are returned. + // Either the HITId parameter or the AssignmentId parameter must be specified + HITId *string `min:"1" type:"string"` + + MaxResults *int64 `min:"1" type:"integer"` + + // Pagination token + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListBonusPaymentsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListBonusPaymentsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListBonusPaymentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListBonusPaymentsInput"} + if s.AssignmentId != nil && len(*s.AssignmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AssignmentId", 1)) + } + if s.HITId != nil && len(*s.HITId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HITId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssignmentId sets the AssignmentId field's value. +func (s *ListBonusPaymentsInput) SetAssignmentId(v string) *ListBonusPaymentsInput { + s.AssignmentId = &v + return s +} + +// SetHITId sets the HITId field's value. +func (s *ListBonusPaymentsInput) SetHITId(v string) *ListBonusPaymentsInput { + s.HITId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListBonusPaymentsInput) SetMaxResults(v int64) *ListBonusPaymentsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBonusPaymentsInput) SetNextToken(v string) *ListBonusPaymentsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListBonusPaymentsResponse +type ListBonusPaymentsOutput struct { + _ struct{} `type:"structure"` + + // A successful request to the ListBonusPayments operation returns a list of + // BonusPayment objects. + BonusPayments []*BonusPayment `type:"list"` + + // If the previous response was incomplete (because there is more data to retrieve), + // Amazon Mechanical Turk returns a pagination token in the response. You can + // use this pagination token to retrieve the next set of results. + NextToken *string `min:"1" type:"string"` + + // The number of bonus payments on this page in the filtered results list, equivalent + // to the number of bonus payments being returned by this call. + NumResults *int64 `type:"integer"` +} + +// String returns the string representation +func (s ListBonusPaymentsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListBonusPaymentsOutput) GoString() string { + return s.String() +} + +// SetBonusPayments sets the BonusPayments field's value. +func (s *ListBonusPaymentsOutput) SetBonusPayments(v []*BonusPayment) *ListBonusPaymentsOutput { + s.BonusPayments = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBonusPaymentsOutput) SetNextToken(v string) *ListBonusPaymentsOutput { + s.NextToken = &v + return s +} + +// SetNumResults sets the NumResults field's value. +func (s *ListBonusPaymentsOutput) SetNumResults(v int64) *ListBonusPaymentsOutput { + s.NumResults = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListHITsForQualificationTypeRequest +type ListHITsForQualificationTypeInput struct { + _ struct{} `type:"structure"` + + // Limit the number of results returned. + MaxResults *int64 `min:"1" type:"integer"` + + // Pagination Token + NextToken *string `min:"1" type:"string"` + + // The ID of the Qualification type to use when querying HITs. + // + // QualificationTypeId is a required field + QualificationTypeId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListHITsForQualificationTypeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListHITsForQualificationTypeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListHITsForQualificationTypeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListHITsForQualificationTypeInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.QualificationTypeId == nil { + invalidParams.Add(request.NewErrParamRequired("QualificationTypeId")) + } + if s.QualificationTypeId != nil && len(*s.QualificationTypeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QualificationTypeId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListHITsForQualificationTypeInput) SetMaxResults(v int64) *ListHITsForQualificationTypeInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListHITsForQualificationTypeInput) SetNextToken(v string) *ListHITsForQualificationTypeInput { + s.NextToken = &v + return s +} + +// SetQualificationTypeId sets the QualificationTypeId field's value. +func (s *ListHITsForQualificationTypeInput) SetQualificationTypeId(v string) *ListHITsForQualificationTypeInput { + s.QualificationTypeId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListHITsForQualificationTypeResponse +type ListHITsForQualificationTypeOutput struct { + _ struct{} `type:"structure"` + + // The list of HIT elements returned by the query. + HITs []*HIT `type:"list"` + + // If the previous response was incomplete (because there is more data to retrieve), + // Amazon Mechanical Turk returns a pagination token in the response. You can + // use this pagination token to retrieve the next set of results. + NextToken *string `min:"1" type:"string"` + + // The number of HITs on this page in the filtered results list, equivalent + // to the number of HITs being returned by this call. + NumResults *int64 `type:"integer"` +} + +// String returns the string representation +func (s ListHITsForQualificationTypeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListHITsForQualificationTypeOutput) GoString() string { + return s.String() +} + +// SetHITs sets the HITs field's value. +func (s *ListHITsForQualificationTypeOutput) SetHITs(v []*HIT) *ListHITsForQualificationTypeOutput { + s.HITs = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListHITsForQualificationTypeOutput) SetNextToken(v string) *ListHITsForQualificationTypeOutput { + s.NextToken = &v + return s +} + +// SetNumResults sets the NumResults field's value. +func (s *ListHITsForQualificationTypeOutput) SetNumResults(v int64) *ListHITsForQualificationTypeOutput { + s.NumResults = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListHITsRequest +type ListHITsInput struct { + _ struct{} `type:"structure"` + + MaxResults *int64 `min:"1" type:"integer"` + + // Pagination token + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListHITsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListHITsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListHITsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListHITsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListHITsInput) SetMaxResults(v int64) *ListHITsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListHITsInput) SetNextToken(v string) *ListHITsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListHITsResponse +type ListHITsOutput struct { + _ struct{} `type:"structure"` + + // The list of HIT elements returned by the query. + HITs []*HIT `type:"list"` + + // If the previous response was incomplete (because there is more data to retrieve), + // Amazon Mechanical Turk returns a pagination token in the response. You can + // use this pagination token to retrieve the next set of results. + NextToken *string `min:"1" type:"string"` + + // The number of HITs on this page in the filtered results list, equivalent + // to the number of HITs being returned by this call. + NumResults *int64 `type:"integer"` +} + +// String returns the string representation +func (s ListHITsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListHITsOutput) GoString() string { + return s.String() +} + +// SetHITs sets the HITs field's value. +func (s *ListHITsOutput) SetHITs(v []*HIT) *ListHITsOutput { + s.HITs = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListHITsOutput) SetNextToken(v string) *ListHITsOutput { + s.NextToken = &v + return s +} + +// SetNumResults sets the NumResults field's value. +func (s *ListHITsOutput) SetNumResults(v int64) *ListHITsOutput { + s.NumResults = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListQualificationRequestsRequest +type ListQualificationRequestsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return in a single call. + MaxResults *int64 `min:"1" type:"integer"` + + // If the previous response was incomplete (because there is more data to retrieve), + // Amazon Mechanical Turk returns a pagination token in the response. You can + // use this pagination token to retrieve the next set of results. + NextToken *string `min:"1" type:"string"` + + // The ID of the QualificationType. + QualificationTypeId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListQualificationRequestsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListQualificationRequestsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListQualificationRequestsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListQualificationRequestsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.QualificationTypeId != nil && len(*s.QualificationTypeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QualificationTypeId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListQualificationRequestsInput) SetMaxResults(v int64) *ListQualificationRequestsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListQualificationRequestsInput) SetNextToken(v string) *ListQualificationRequestsInput { + s.NextToken = &v + return s +} + +// SetQualificationTypeId sets the QualificationTypeId field's value. +func (s *ListQualificationRequestsInput) SetQualificationTypeId(v string) *ListQualificationRequestsInput { + s.QualificationTypeId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListQualificationRequestsResponse +type ListQualificationRequestsOutput struct { + _ struct{} `type:"structure"` + + // If the previous response was incomplete (because there is more data to retrieve), + // Amazon Mechanical Turk returns a pagination token in the response. You can + // use this pagination token to retrieve the next set of results. + NextToken *string `min:"1" type:"string"` + + // The number of Qualification requests on this page in the filtered results + // list, equivalent to the number of Qualification requests being returned by + // this call. + NumResults *int64 `type:"integer"` + + // The Qualification request. The response includes one QualificationRequest + // element for each Qualification request returned by the query. + QualificationRequests []*QualificationRequest `type:"list"` +} + +// String returns the string representation +func (s ListQualificationRequestsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListQualificationRequestsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListQualificationRequestsOutput) SetNextToken(v string) *ListQualificationRequestsOutput { + s.NextToken = &v + return s +} + +// SetNumResults sets the NumResults field's value. +func (s *ListQualificationRequestsOutput) SetNumResults(v int64) *ListQualificationRequestsOutput { + s.NumResults = &v + return s +} + +// SetQualificationRequests sets the QualificationRequests field's value. +func (s *ListQualificationRequestsOutput) SetQualificationRequests(v []*QualificationRequest) *ListQualificationRequestsOutput { + s.QualificationRequests = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListQualificationTypesRequest +type ListQualificationTypesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return in a single call. + MaxResults *int64 `min:"1" type:"integer"` + + // Specifies that only Qualification types that the Requester created are returned. + // If false, the operation returns all Qualification types. + MustBeOwnedByCaller *bool `type:"boolean"` + + // Specifies that only Qualification types that a user can request through the + // Amazon Mechanical Turk web site, such as by taking a Qualification test, + // are returned as results of the search. Some Qualification types, such as + // those assigned automatically by the system, cannot be requested directly + // by users. If false, all Qualification types, including those managed by the + // system, are considered. Valid values are True | False. + // + // MustBeRequestable is a required field + MustBeRequestable *bool `type:"boolean" required:"true"` + + // If the previous response was incomplete (because there is more data to retrieve), + // Amazon Mechanical Turk returns a pagination token in the response. You can + // use this pagination token to retrieve the next set of results. + NextToken *string `min:"1" type:"string"` + + // A text query against all of the searchable attributes of Qualification types. + Query *string `type:"string"` +} + +// String returns the string representation +func (s ListQualificationTypesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListQualificationTypesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListQualificationTypesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListQualificationTypesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.MustBeRequestable == nil { + invalidParams.Add(request.NewErrParamRequired("MustBeRequestable")) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListQualificationTypesInput) SetMaxResults(v int64) *ListQualificationTypesInput { + s.MaxResults = &v + return s +} + +// SetMustBeOwnedByCaller sets the MustBeOwnedByCaller field's value. +func (s *ListQualificationTypesInput) SetMustBeOwnedByCaller(v bool) *ListQualificationTypesInput { + s.MustBeOwnedByCaller = &v + return s +} + +// SetMustBeRequestable sets the MustBeRequestable field's value. +func (s *ListQualificationTypesInput) SetMustBeRequestable(v bool) *ListQualificationTypesInput { + s.MustBeRequestable = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListQualificationTypesInput) SetNextToken(v string) *ListQualificationTypesInput { + s.NextToken = &v + return s +} + +// SetQuery sets the Query field's value. +func (s *ListQualificationTypesInput) SetQuery(v string) *ListQualificationTypesInput { + s.Query = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListQualificationTypesResponse +type ListQualificationTypesOutput struct { + _ struct{} `type:"structure"` + + // If the previous response was incomplete (because there is more data to retrieve), + // Amazon Mechanical Turk returns a pagination token in the response. You can + // use this pagination token to retrieve the next set of results. + NextToken *string `min:"1" type:"string"` + + // The number of Qualification types on this page in the filtered results list, + // equivalent to the number of types this operation returns. + NumResults *int64 `type:"integer"` + + // The list of QualificationType elements returned by the query. + QualificationTypes []*QualificationType `type:"list"` +} + +// String returns the string representation +func (s ListQualificationTypesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListQualificationTypesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListQualificationTypesOutput) SetNextToken(v string) *ListQualificationTypesOutput { + s.NextToken = &v + return s +} + +// SetNumResults sets the NumResults field's value. +func (s *ListQualificationTypesOutput) SetNumResults(v int64) *ListQualificationTypesOutput { + s.NumResults = &v + return s +} + +// SetQualificationTypes sets the QualificationTypes field's value. +func (s *ListQualificationTypesOutput) SetQualificationTypes(v []*QualificationType) *ListQualificationTypesOutput { + s.QualificationTypes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListReviewPolicyResultsForHITRequest +type ListReviewPolicyResultsForHITInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the HIT to retrieve review results for. + // + // HITId is a required field + HITId *string `min:"1" type:"string" required:"true"` + + // Limit the number of results returned. + MaxResults *int64 `min:"1" type:"integer"` + + // Pagination token + NextToken *string `min:"1" type:"string"` + + // The Policy Level(s) to retrieve review results for - HIT or Assignment. If + // omitted, the default behavior is to retrieve all data for both policy levels. + // For a list of all the described policies, see Review Policies. + PolicyLevels []*string `type:"list"` + + // Specify if the operation should retrieve a list of the actions taken executing + // the Review Policies and their outcomes. + RetrieveActions *bool `type:"boolean"` + + // Specify if the operation should retrieve a list of the results computed by + // the Review Policies. + RetrieveResults *bool `type:"boolean"` +} + +// String returns the string representation +func (s ListReviewPolicyResultsForHITInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListReviewPolicyResultsForHITInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListReviewPolicyResultsForHITInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListReviewPolicyResultsForHITInput"} + if s.HITId == nil { + invalidParams.Add(request.NewErrParamRequired("HITId")) + } + if s.HITId != nil && len(*s.HITId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HITId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHITId sets the HITId field's value. +func (s *ListReviewPolicyResultsForHITInput) SetHITId(v string) *ListReviewPolicyResultsForHITInput { + s.HITId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListReviewPolicyResultsForHITInput) SetMaxResults(v int64) *ListReviewPolicyResultsForHITInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListReviewPolicyResultsForHITInput) SetNextToken(v string) *ListReviewPolicyResultsForHITInput { + s.NextToken = &v + return s +} + +// SetPolicyLevels sets the PolicyLevels field's value. +func (s *ListReviewPolicyResultsForHITInput) SetPolicyLevels(v []*string) *ListReviewPolicyResultsForHITInput { + s.PolicyLevels = v + return s +} + +// SetRetrieveActions sets the RetrieveActions field's value. +func (s *ListReviewPolicyResultsForHITInput) SetRetrieveActions(v bool) *ListReviewPolicyResultsForHITInput { + s.RetrieveActions = &v + return s +} + +// SetRetrieveResults sets the RetrieveResults field's value. +func (s *ListReviewPolicyResultsForHITInput) SetRetrieveResults(v bool) *ListReviewPolicyResultsForHITInput { + s.RetrieveResults = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListReviewPolicyResultsForHITResponse +type ListReviewPolicyResultsForHITOutput struct { + _ struct{} `type:"structure"` + + // The name of the Assignment-level Review Policy. This contains only the PolicyName + // element. + AssignmentReviewPolicy *ReviewPolicy `type:"structure"` + + // Contains both ReviewResult and ReviewAction elements for an Assignment. + AssignmentReviewReport *ReviewReport `type:"structure"` + + // The HITId of the HIT for which results have been returned. + HITId *string `min:"1" type:"string"` + + // The name of the HIT-level Review Policy. This contains only the PolicyName + // element. + HITReviewPolicy *ReviewPolicy `type:"structure"` + + // Contains both ReviewResult and ReviewAction elements for a particular HIT. + HITReviewReport *ReviewReport `type:"structure"` + + // If the previous response was incomplete (because there is more data to retrieve), + // Amazon Mechanical Turk returns a pagination token in the response. You can + // use this pagination token to retrieve the next set of results. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListReviewPolicyResultsForHITOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListReviewPolicyResultsForHITOutput) GoString() string { + return s.String() +} + +// SetAssignmentReviewPolicy sets the AssignmentReviewPolicy field's value. +func (s *ListReviewPolicyResultsForHITOutput) SetAssignmentReviewPolicy(v *ReviewPolicy) *ListReviewPolicyResultsForHITOutput { + s.AssignmentReviewPolicy = v + return s +} + +// SetAssignmentReviewReport sets the AssignmentReviewReport field's value. +func (s *ListReviewPolicyResultsForHITOutput) SetAssignmentReviewReport(v *ReviewReport) *ListReviewPolicyResultsForHITOutput { + s.AssignmentReviewReport = v + return s +} + +// SetHITId sets the HITId field's value. +func (s *ListReviewPolicyResultsForHITOutput) SetHITId(v string) *ListReviewPolicyResultsForHITOutput { + s.HITId = &v + return s +} + +// SetHITReviewPolicy sets the HITReviewPolicy field's value. +func (s *ListReviewPolicyResultsForHITOutput) SetHITReviewPolicy(v *ReviewPolicy) *ListReviewPolicyResultsForHITOutput { + s.HITReviewPolicy = v + return s +} + +// SetHITReviewReport sets the HITReviewReport field's value. +func (s *ListReviewPolicyResultsForHITOutput) SetHITReviewReport(v *ReviewReport) *ListReviewPolicyResultsForHITOutput { + s.HITReviewReport = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListReviewPolicyResultsForHITOutput) SetNextToken(v string) *ListReviewPolicyResultsForHITOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListReviewableHITsRequest +type ListReviewableHITsInput struct { + _ struct{} `type:"structure"` + + // The ID of the HIT type of the HITs to consider for the query. If not specified, + // all HITs for the Reviewer are considered + HITTypeId *string `min:"1" type:"string"` + + // Limit the number of results returned. + MaxResults *int64 `min:"1" type:"integer"` + + // Pagination Token + NextToken *string `min:"1" type:"string"` + + // Can be either Reviewable or Reviewing. Reviewable is the default value. + Status *string `type:"string" enum:"ReviewableHITStatus"` +} + +// String returns the string representation +func (s ListReviewableHITsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListReviewableHITsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListReviewableHITsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListReviewableHITsInput"} + if s.HITTypeId != nil && len(*s.HITTypeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HITTypeId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHITTypeId sets the HITTypeId field's value. +func (s *ListReviewableHITsInput) SetHITTypeId(v string) *ListReviewableHITsInput { + s.HITTypeId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListReviewableHITsInput) SetMaxResults(v int64) *ListReviewableHITsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListReviewableHITsInput) SetNextToken(v string) *ListReviewableHITsInput { + s.NextToken = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListReviewableHITsInput) SetStatus(v string) *ListReviewableHITsInput { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListReviewableHITsResponse +type ListReviewableHITsOutput struct { + _ struct{} `type:"structure"` + + // The list of HIT elements returned by the query. + HITs []*HIT `type:"list"` + + // If the previous response was incomplete (because there is more data to retrieve), + // Amazon Mechanical Turk returns a pagination token in the response. You can + // use this pagination token to retrieve the next set of results. + NextToken *string `min:"1" type:"string"` + + // The number of HITs on this page in the filtered results list, equivalent + // to the number of HITs being returned by this call. + NumResults *int64 `type:"integer"` +} + +// String returns the string representation +func (s ListReviewableHITsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListReviewableHITsOutput) GoString() string { + return s.String() +} + +// SetHITs sets the HITs field's value. +func (s *ListReviewableHITsOutput) SetHITs(v []*HIT) *ListReviewableHITsOutput { + s.HITs = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListReviewableHITsOutput) SetNextToken(v string) *ListReviewableHITsOutput { + s.NextToken = &v + return s +} + +// SetNumResults sets the NumResults field's value. +func (s *ListReviewableHITsOutput) SetNumResults(v int64) *ListReviewableHITsOutput { + s.NumResults = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListWorkerBlocksRequest +type ListWorkerBlocksInput struct { + _ struct{} `type:"structure"` + + MaxResults *int64 `min:"1" type:"integer"` + + // Pagination token + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListWorkerBlocksInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListWorkerBlocksInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListWorkerBlocksInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListWorkerBlocksInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListWorkerBlocksInput) SetMaxResults(v int64) *ListWorkerBlocksInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListWorkerBlocksInput) SetNextToken(v string) *ListWorkerBlocksInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListWorkerBlocksResponse +type ListWorkerBlocksOutput struct { + _ struct{} `type:"structure"` + + // If the previous response was incomplete (because there is more data to retrieve), + // Amazon Mechanical Turk returns a pagination token in the response. You can + // use this pagination token to retrieve the next set of results. + NextToken *string `min:"1" type:"string"` + + // The number of assignments on the page in the filtered results list, equivalent + // to the number of assignments returned by this call. + NumResults *int64 `type:"integer"` + + // The list of WorkerBlocks, containing the collection of Worker IDs and reasons + // for blocking. + WorkerBlocks []*WorkerBlock `type:"list"` +} + +// String returns the string representation +func (s ListWorkerBlocksOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListWorkerBlocksOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListWorkerBlocksOutput) SetNextToken(v string) *ListWorkerBlocksOutput { + s.NextToken = &v + return s +} + +// SetNumResults sets the NumResults field's value. +func (s *ListWorkerBlocksOutput) SetNumResults(v int64) *ListWorkerBlocksOutput { + s.NumResults = &v + return s +} + +// SetWorkerBlocks sets the WorkerBlocks field's value. +func (s *ListWorkerBlocksOutput) SetWorkerBlocks(v []*WorkerBlock) *ListWorkerBlocksOutput { + s.WorkerBlocks = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListWorkersWithQualificationTypeRequest +type ListWorkersWithQualificationTypeInput struct { + _ struct{} `type:"structure"` + + // Limit the number of results returned. + MaxResults *int64 `min:"1" type:"integer"` + + // Pagination Token + NextToken *string `min:"1" type:"string"` + + // The ID of the Qualification type of the Qualifications to return. + // + // QualificationTypeId is a required field + QualificationTypeId *string `min:"1" type:"string" required:"true"` + + // The status of the Qualifications to return. Can be Granted | Revoked. + Status *string `type:"string" enum:"QualificationStatus"` +} + +// String returns the string representation +func (s ListWorkersWithQualificationTypeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListWorkersWithQualificationTypeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListWorkersWithQualificationTypeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListWorkersWithQualificationTypeInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.QualificationTypeId == nil { + invalidParams.Add(request.NewErrParamRequired("QualificationTypeId")) + } + if s.QualificationTypeId != nil && len(*s.QualificationTypeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QualificationTypeId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListWorkersWithQualificationTypeInput) SetMaxResults(v int64) *ListWorkersWithQualificationTypeInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListWorkersWithQualificationTypeInput) SetNextToken(v string) *ListWorkersWithQualificationTypeInput { + s.NextToken = &v + return s +} + +// SetQualificationTypeId sets the QualificationTypeId field's value. +func (s *ListWorkersWithQualificationTypeInput) SetQualificationTypeId(v string) *ListWorkersWithQualificationTypeInput { + s.QualificationTypeId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListWorkersWithQualificationTypeInput) SetStatus(v string) *ListWorkersWithQualificationTypeInput { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListWorkersWithQualificationTypeResponse +type ListWorkersWithQualificationTypeOutput struct { + _ struct{} `type:"structure"` + + // If the previous response was incomplete (because there is more data to retrieve), + // Amazon Mechanical Turk returns a pagination token in the response. You can + // use this pagination token to retrieve the next set of results. + NextToken *string `min:"1" type:"string"` + + // The number of Qualifications on this page in the filtered results list, equivalent + // to the number of Qualifications being returned by this call. + NumResults *int64 `type:"integer"` + + // The list of Qualification elements returned by this call. + Qualifications []*Qualification `type:"list"` +} + +// String returns the string representation +func (s ListWorkersWithQualificationTypeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListWorkersWithQualificationTypeOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListWorkersWithQualificationTypeOutput) SetNextToken(v string) *ListWorkersWithQualificationTypeOutput { + s.NextToken = &v + return s +} + +// SetNumResults sets the NumResults field's value. +func (s *ListWorkersWithQualificationTypeOutput) SetNumResults(v int64) *ListWorkersWithQualificationTypeOutput { + s.NumResults = &v + return s +} + +// SetQualifications sets the Qualifications field's value. +func (s *ListWorkersWithQualificationTypeOutput) SetQualifications(v []*Qualification) *ListWorkersWithQualificationTypeOutput { + s.Qualifications = v + return s +} + +// The Locale data structure represents a geographical region or location. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/Locale +type Locale struct { + _ struct{} `type:"structure"` + + // The country of the locale. Must be a valid ISO 3166 country code. For example, + // the code US refers to the United States of America. + // + // Country is a required field + Country *string `min:"2" type:"string" required:"true"` + + // The state or subdivision of the locale. A valid ISO 3166-2 subdivision code. + // For example, the code WA refers to the state of Washington. + Subdivision *string `min:"2" type:"string"` +} + +// String returns the string representation +func (s Locale) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Locale) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Locale) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Locale"} + if s.Country == nil { + invalidParams.Add(request.NewErrParamRequired("Country")) + } + if s.Country != nil && len(*s.Country) < 2 { + invalidParams.Add(request.NewErrParamMinLen("Country", 2)) + } + if s.Subdivision != nil && len(*s.Subdivision) < 2 { + invalidParams.Add(request.NewErrParamMinLen("Subdivision", 2)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCountry sets the Country field's value. +func (s *Locale) SetCountry(v string) *Locale { + s.Country = &v + return s +} + +// SetSubdivision sets the Subdivision field's value. +func (s *Locale) SetSubdivision(v string) *Locale { + s.Subdivision = &v + return s +} + +// The NotificationSpecification data structure describes a HIT event notification +// for a HIT type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/NotificationSpecification +type NotificationSpecification struct { + _ struct{} `type:"structure"` + + // The destination for notification messages. or email notifications (if Transport + // is Email), this is an email address. For Amazon Simple Queue Service (Amazon + // SQS) notifications (if Transport is SQS), this is the URL for your Amazon + // SQS queue. + // + // Destination is a required field + Destination *string `type:"string" required:"true"` + + // The list of events that should cause notifications to be sent. Valid Values: + // AssignmentAccepted | AssignmentAbandoned | AssignmentReturned | AssignmentSubmitted + // | AssignmentRejected | AssignmentApproved | HITCreated | HITExtended | HITDisposed + // | HITReviewable | HITExpired | Ping. The Ping event is only valid for the + // SendTestEventNotification operation. + EventTypes []*string `type:"list"` + + // The method Amazon Mechanical Turk uses to send the notification. Valid Values: + // Email | SQS. + // + // Transport is a required field + Transport *string `type:"string" required:"true" enum:"NotificationTransport"` + + // The version of the Notification API to use. Valid value is 2006-05-05. + Version *string `type:"string"` +} + +// String returns the string representation +func (s NotificationSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotificationSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *NotificationSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NotificationSpecification"} + if s.Destination == nil { + invalidParams.Add(request.NewErrParamRequired("Destination")) + } + if s.Transport == nil { + invalidParams.Add(request.NewErrParamRequired("Transport")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDestination sets the Destination field's value. +func (s *NotificationSpecification) SetDestination(v string) *NotificationSpecification { + s.Destination = &v + return s +} + +// SetEventTypes sets the EventTypes field's value. +func (s *NotificationSpecification) SetEventTypes(v []*string) *NotificationSpecification { + s.EventTypes = v + return s +} + +// SetTransport sets the Transport field's value. +func (s *NotificationSpecification) SetTransport(v string) *NotificationSpecification { + s.Transport = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *NotificationSpecification) SetVersion(v string) *NotificationSpecification { + s.Version = &v + return s +} + +// When MTurk encounters an issue with notifying the Workers you specified, +// it returns back this object with failure details. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/NotifyWorkersFailureStatus +type NotifyWorkersFailureStatus struct { + _ struct{} `type:"structure"` + + // Encoded value for the failure type. + NotifyWorkersFailureCode *string `type:"string" enum:"NotifyWorkersFailureCode"` + + // A message detailing the reason the Worker could not be notified. + NotifyWorkersFailureMessage *string `type:"string"` + + // The ID of the Worker. + WorkerId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s NotifyWorkersFailureStatus) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotifyWorkersFailureStatus) GoString() string { + return s.String() +} + +// SetNotifyWorkersFailureCode sets the NotifyWorkersFailureCode field's value. +func (s *NotifyWorkersFailureStatus) SetNotifyWorkersFailureCode(v string) *NotifyWorkersFailureStatus { + s.NotifyWorkersFailureCode = &v + return s +} + +// SetNotifyWorkersFailureMessage sets the NotifyWorkersFailureMessage field's value. +func (s *NotifyWorkersFailureStatus) SetNotifyWorkersFailureMessage(v string) *NotifyWorkersFailureStatus { + s.NotifyWorkersFailureMessage = &v + return s +} + +// SetWorkerId sets the WorkerId field's value. +func (s *NotifyWorkersFailureStatus) SetWorkerId(v string) *NotifyWorkersFailureStatus { + s.WorkerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/NotifyWorkersRequest +type NotifyWorkersInput struct { + _ struct{} `type:"structure"` + + // The text of the email message to send. Can include up to 4,096 characters + // + // MessageText is a required field + MessageText *string `type:"string" required:"true"` + + // The subject line of the email message to send. Can include up to 200 characters. + // + // Subject is a required field + Subject *string `type:"string" required:"true"` + + // A list of Worker IDs you wish to notify. You can notify upto 100 Workers + // at a time. + // + // WorkerIds is a required field + WorkerIds []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s NotifyWorkersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotifyWorkersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *NotifyWorkersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NotifyWorkersInput"} + if s.MessageText == nil { + invalidParams.Add(request.NewErrParamRequired("MessageText")) + } + if s.Subject == nil { + invalidParams.Add(request.NewErrParamRequired("Subject")) + } + if s.WorkerIds == nil { + invalidParams.Add(request.NewErrParamRequired("WorkerIds")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMessageText sets the MessageText field's value. +func (s *NotifyWorkersInput) SetMessageText(v string) *NotifyWorkersInput { + s.MessageText = &v + return s +} + +// SetSubject sets the Subject field's value. +func (s *NotifyWorkersInput) SetSubject(v string) *NotifyWorkersInput { + s.Subject = &v + return s +} + +// SetWorkerIds sets the WorkerIds field's value. +func (s *NotifyWorkersInput) SetWorkerIds(v []*string) *NotifyWorkersInput { + s.WorkerIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/NotifyWorkersResponse +type NotifyWorkersOutput struct { + _ struct{} `type:"structure"` + + // When MTurk sends notifications to the list of Workers, it returns back any + // failures it encounters in this list of NotifyWorkersFailureStatus objects. + NotifyWorkersFailureStatuses []*NotifyWorkersFailureStatus `type:"list"` +} + +// String returns the string representation +func (s NotifyWorkersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotifyWorkersOutput) GoString() string { + return s.String() +} + +// SetNotifyWorkersFailureStatuses sets the NotifyWorkersFailureStatuses field's value. +func (s *NotifyWorkersOutput) SetNotifyWorkersFailureStatuses(v []*NotifyWorkersFailureStatus) *NotifyWorkersOutput { + s.NotifyWorkersFailureStatuses = v + return s +} + +// This data structure is the data type for the AnswerKey parameter of the ScoreMyKnownAnswers/2011-09-01 +// Review Policy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ParameterMapEntry +type ParameterMapEntry struct { + _ struct{} `type:"structure"` + + // The QuestionID from the HIT that is used to identify which question requires + // Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review + // Policy. + Key *string `type:"string"` + + // The list of answers to the question specified in the MapEntry Key element. + // The Worker must match all values in order for the answer to be scored correctly. + Values []*string `type:"list"` +} + +// String returns the string representation +func (s ParameterMapEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ParameterMapEntry) GoString() string { + return s.String() +} + +// SetKey sets the Key field's value. +func (s *ParameterMapEntry) SetKey(v string) *ParameterMapEntry { + s.Key = &v + return s +} + +// SetValues sets the Values field's value. +func (s *ParameterMapEntry) SetValues(v []*string) *ParameterMapEntry { + s.Values = v + return s +} + +// Name of the parameter from the Review policy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/PolicyParameter +type PolicyParameter struct { + _ struct{} `type:"structure"` + + // Name of the parameter from the list of Review Polices. + Key *string `type:"string"` + + // List of ParameterMapEntry objects. + MapEntries []*ParameterMapEntry `type:"list"` + + // The list of values of the Parameter + Values []*string `type:"list"` +} + +// String returns the string representation +func (s PolicyParameter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PolicyParameter) GoString() string { + return s.String() +} + +// SetKey sets the Key field's value. +func (s *PolicyParameter) SetKey(v string) *PolicyParameter { + s.Key = &v + return s +} + +// SetMapEntries sets the MapEntries field's value. +func (s *PolicyParameter) SetMapEntries(v []*ParameterMapEntry) *PolicyParameter { + s.MapEntries = v + return s +} + +// SetValues sets the Values field's value. +func (s *PolicyParameter) SetValues(v []*string) *PolicyParameter { + s.Values = v + return s +} + +// The Qualification data structure represents a Qualification assigned to a +// user, including the Qualification type and the value (score). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/Qualification +type Qualification struct { + _ struct{} `type:"structure"` + + // The date and time the Qualification was granted to the Worker. If the Worker's + // Qualification was revoked, and then re-granted based on a new Qualification + // request, GrantTime is the date and time of the last call to the AcceptQualificationRequest + // operation. + GrantTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The value (score) of the Qualification, if the Qualification has an integer + // value. + IntegerValue *int64 `type:"integer"` + + // The Locale data structure represents a geographical region or location. + LocaleValue *Locale `type:"structure"` + + // The ID of the Qualification type for the Qualification. + QualificationTypeId *string `min:"1" type:"string"` + + // The status of the Qualification. Valid values are Granted | Revoked. + Status *string `type:"string" enum:"QualificationStatus"` + + // The ID of the Worker who possesses the Qualification. + WorkerId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s Qualification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Qualification) GoString() string { + return s.String() +} + +// SetGrantTime sets the GrantTime field's value. +func (s *Qualification) SetGrantTime(v time.Time) *Qualification { + s.GrantTime = &v + return s +} + +// SetIntegerValue sets the IntegerValue field's value. +func (s *Qualification) SetIntegerValue(v int64) *Qualification { + s.IntegerValue = &v + return s +} + +// SetLocaleValue sets the LocaleValue field's value. +func (s *Qualification) SetLocaleValue(v *Locale) *Qualification { + s.LocaleValue = v + return s +} + +// SetQualificationTypeId sets the QualificationTypeId field's value. +func (s *Qualification) SetQualificationTypeId(v string) *Qualification { + s.QualificationTypeId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Qualification) SetStatus(v string) *Qualification { + s.Status = &v + return s +} + +// SetWorkerId sets the WorkerId field's value. +func (s *Qualification) SetWorkerId(v string) *Qualification { + s.WorkerId = &v + return s +} + +// The QualificationRequest data structure represents a request a Worker has +// made for a Qualification. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/QualificationRequest +type QualificationRequest struct { + _ struct{} `type:"structure"` + + // The Worker's answers for the Qualification type's test contained in a QuestionFormAnswers + // document, if the type has a test and the Worker has submitted answers. If + // the Worker does not provide any answers, Answer may be empty. + Answer *string `type:"string"` + + // The ID of the Qualification request, a unique identifier generated when the + // request was submitted. + QualificationRequestId *string `type:"string"` + + // The ID of the Qualification type the Worker is requesting, as returned by + // the CreateQualificationType operation. + QualificationTypeId *string `min:"1" type:"string"` + + // The date and time the Qualification request had a status of Submitted. This + // is either the time the Worker submitted answers for a Qualification test, + // or the time the Worker requested the Qualification if the Qualification type + // does not have a test. + SubmitTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The contents of the Qualification test that was presented to the Worker, + // if the type has a test and the Worker has submitted answers. This value is + // identical to the QuestionForm associated with the Qualification type at the + // time the Worker requests the Qualification. + Test *string `type:"string"` + + // The ID of the Worker requesting the Qualification. + WorkerId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s QualificationRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s QualificationRequest) GoString() string { + return s.String() +} + +// SetAnswer sets the Answer field's value. +func (s *QualificationRequest) SetAnswer(v string) *QualificationRequest { + s.Answer = &v + return s +} + +// SetQualificationRequestId sets the QualificationRequestId field's value. +func (s *QualificationRequest) SetQualificationRequestId(v string) *QualificationRequest { + s.QualificationRequestId = &v + return s +} + +// SetQualificationTypeId sets the QualificationTypeId field's value. +func (s *QualificationRequest) SetQualificationTypeId(v string) *QualificationRequest { + s.QualificationTypeId = &v + return s +} + +// SetSubmitTime sets the SubmitTime field's value. +func (s *QualificationRequest) SetSubmitTime(v time.Time) *QualificationRequest { + s.SubmitTime = &v + return s +} + +// SetTest sets the Test field's value. +func (s *QualificationRequest) SetTest(v string) *QualificationRequest { + s.Test = &v + return s +} + +// SetWorkerId sets the WorkerId field's value. +func (s *QualificationRequest) SetWorkerId(v string) *QualificationRequest { + s.WorkerId = &v + return s +} + +// The QualificationRequirement data structure describes a Qualification that +// a Worker must have before the Worker is allowed to accept a HIT. A requirement +// may optionally state that a Worker must have the Qualification in order to +// preview the HIT. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/QualificationRequirement +type QualificationRequirement struct { + _ struct{} `type:"structure"` + + // The kind of comparison to make against a Qualification's value. You can compare + // a Qualification's value to an IntegerValue to see if it is LessThan, LessThanOrEqualTo, + // GreaterThan, GreaterThanOrEqualTo, EqualTo, or NotEqualTo the IntegerValue. + // You can compare it to a LocaleValue to see if it is EqualTo, or NotEqualTo + // the LocaleValue. You can check to see if the value is In or NotIn a set of + // IntegerValue or LocaleValue values. Lastly, a Qualification requirement can + // also test if a Qualification Exists or DoesNotExist in the user's profile, + // regardless of its value. + // + // Comparator is a required field + Comparator *string `type:"string" required:"true" enum:"Comparator"` + + // The integer value to compare against the Qualification's value. IntegerValue + // must not be present if Comparator is Exists or DoesNotExist. IntegerValue + // can only be used if the Qualification type has an integer value; it cannot + // be used with the Worker_Locale QualificationType ID. When performing a set + // comparison by using the In or the NotIn comparator, you can use up to 15 + // IntegerValue elements in a QualificationRequirement data structure. + IntegerValues []*int64 `type:"list"` + + // The locale value to compare against the Qualification's value. The local + // value must be a valid ISO 3166 country code or supports ISO 3166-2 subdivisions. + // LocaleValue can only be used with a Worker_Locale QualificationType ID. LocaleValue + // can only be used with the EqualTo, NotEqualTo, In, and NotIn comparators. + // You must only use a single LocaleValue element when using the EqualTo or + // NotEqualTo comparators. When performing a set comparison by using the In + // or the NotIn comparator, you can use up to 30 LocaleValue elements in a QualificationRequirement + // data structure. + LocaleValues []*Locale `type:"list"` + + // The ID of the Qualification type for the requirement. + // + // QualificationTypeId is a required field + QualificationTypeId *string `type:"string" required:"true"` + + // If true, the question data for the HIT will not be shown when a Worker whose + // Qualifications do not meet this requirement tries to preview the HIT. That + // is, a Worker's Qualifications must meet all of the requirements for which + // RequiredToPreview is true in order to preview the HIT. If a Worker meets + // all of the requirements where RequiredToPreview is true (or if there are + // no such requirements), but does not meet all of the requirements for the + // HIT, the Worker will be allowed to preview the HIT's question data, but will + // not be allowed to accept and complete the HIT. The default is false. + RequiredToPreview *bool `type:"boolean"` +} + +// String returns the string representation +func (s QualificationRequirement) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s QualificationRequirement) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *QualificationRequirement) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "QualificationRequirement"} + if s.Comparator == nil { + invalidParams.Add(request.NewErrParamRequired("Comparator")) + } + if s.QualificationTypeId == nil { + invalidParams.Add(request.NewErrParamRequired("QualificationTypeId")) + } + if s.LocaleValues != nil { + for i, v := range s.LocaleValues { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LocaleValues", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetComparator sets the Comparator field's value. +func (s *QualificationRequirement) SetComparator(v string) *QualificationRequirement { + s.Comparator = &v + return s +} + +// SetIntegerValues sets the IntegerValues field's value. +func (s *QualificationRequirement) SetIntegerValues(v []*int64) *QualificationRequirement { + s.IntegerValues = v + return s +} + +// SetLocaleValues sets the LocaleValues field's value. +func (s *QualificationRequirement) SetLocaleValues(v []*Locale) *QualificationRequirement { + s.LocaleValues = v + return s +} + +// SetQualificationTypeId sets the QualificationTypeId field's value. +func (s *QualificationRequirement) SetQualificationTypeId(v string) *QualificationRequirement { + s.QualificationTypeId = &v + return s +} + +// SetRequiredToPreview sets the RequiredToPreview field's value. +func (s *QualificationRequirement) SetRequiredToPreview(v bool) *QualificationRequirement { + s.RequiredToPreview = &v + return s +} + +// The QualificationType data structure represents a Qualification type, a description +// of a property of a Worker that must match the requirements of a HIT for the +// Worker to be able to accept the HIT. The type also describes how a Worker +// can obtain a Qualification of that type, such as through a Qualification +// test. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/QualificationType +type QualificationType struct { + _ struct{} `type:"structure"` + + // The answers to the Qualification test specified in the Test parameter. + AnswerKey *string `type:"string"` + + // Specifies that requests for the Qualification type are granted immediately, + // without prompting the Worker with a Qualification test. Valid values are + // True | False. + AutoGranted *bool `type:"boolean"` + + // The Qualification integer value to use for automatically granted Qualifications, + // if AutoGranted is true. This is 1 by default. + AutoGrantedValue *int64 `type:"integer"` + + // The date and time the Qualification type was created. + CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // A long description for the Qualification type. + Description *string `type:"string"` + + // Specifies whether the Qualification type is one that a user can request through + // the Amazon Mechanical Turk web site, such as by taking a Qualification test. + // This value is False for Qualifications assigned automatically by the system. + // Valid values are True | False. + IsRequestable *bool `type:"boolean"` + + // One or more words or phrases that describe theQualification type, separated + // by commas. The Keywords make the type easier to find using a search. + Keywords *string `type:"string"` + + // The name of the Qualification type. The type name is used to identify the + // type, and to find the type using a Qualification type search. + Name *string `type:"string"` + + // A unique identifier for the Qualification type. A Qualification type is given + // a Qualification type ID when you call the CreateQualificationType operation. + QualificationTypeId *string `min:"1" type:"string"` + + // The status of the Qualification type. A Qualification type's status determines + // if users can apply to receive a Qualification of this type, and if HITs can + // be created with requirements based on this type. Valid values are Active + // | Inactive. + QualificationTypeStatus *string `type:"string" enum:"QualificationTypeStatus"` + + // The amount of time, in seconds, Workers must wait after taking the Qualification + // test before they can take it again. Workers can take a Qualification test + // multiple times if they were not granted the Qualification from a previous + // attempt, or if the test offers a gradient score and they want a better score. + // If not specified, retries are disabled and Workers can request a Qualification + // only once. + RetryDelayInSeconds *int64 `type:"long"` + + // The questions for a Qualification test associated with this Qualification + // type that a user can take to obtain a Qualification of this type. This parameter + // must be specified if AnswerKey is present. A Qualification type cannot have + // both a specified Test parameter and an AutoGranted value of true. + Test *string `type:"string"` + + // The amount of time, in seconds, given to a Worker to complete the Qualification + // test, beginning from the time the Worker requests the Qualification. + TestDurationInSeconds *int64 `type:"long"` +} + +// String returns the string representation +func (s QualificationType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s QualificationType) GoString() string { + return s.String() +} + +// SetAnswerKey sets the AnswerKey field's value. +func (s *QualificationType) SetAnswerKey(v string) *QualificationType { + s.AnswerKey = &v + return s +} + +// SetAutoGranted sets the AutoGranted field's value. +func (s *QualificationType) SetAutoGranted(v bool) *QualificationType { + s.AutoGranted = &v + return s +} + +// SetAutoGrantedValue sets the AutoGrantedValue field's value. +func (s *QualificationType) SetAutoGrantedValue(v int64) *QualificationType { + s.AutoGrantedValue = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *QualificationType) SetCreationTime(v time.Time) *QualificationType { + s.CreationTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *QualificationType) SetDescription(v string) *QualificationType { + s.Description = &v + return s +} + +// SetIsRequestable sets the IsRequestable field's value. +func (s *QualificationType) SetIsRequestable(v bool) *QualificationType { + s.IsRequestable = &v + return s +} + +// SetKeywords sets the Keywords field's value. +func (s *QualificationType) SetKeywords(v string) *QualificationType { + s.Keywords = &v + return s +} + +// SetName sets the Name field's value. +func (s *QualificationType) SetName(v string) *QualificationType { + s.Name = &v + return s +} + +// SetQualificationTypeId sets the QualificationTypeId field's value. +func (s *QualificationType) SetQualificationTypeId(v string) *QualificationType { + s.QualificationTypeId = &v + return s +} + +// SetQualificationTypeStatus sets the QualificationTypeStatus field's value. +func (s *QualificationType) SetQualificationTypeStatus(v string) *QualificationType { + s.QualificationTypeStatus = &v + return s +} + +// SetRetryDelayInSeconds sets the RetryDelayInSeconds field's value. +func (s *QualificationType) SetRetryDelayInSeconds(v int64) *QualificationType { + s.RetryDelayInSeconds = &v + return s +} + +// SetTest sets the Test field's value. +func (s *QualificationType) SetTest(v string) *QualificationType { + s.Test = &v + return s +} + +// SetTestDurationInSeconds sets the TestDurationInSeconds field's value. +func (s *QualificationType) SetTestDurationInSeconds(v int64) *QualificationType { + s.TestDurationInSeconds = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RejectAssignmentRequest +type RejectAssignmentInput struct { + _ struct{} `type:"structure"` + + // The ID of the assignment. The assignment must correspond to a HIT created + // by the Requester. + // + // AssignmentId is a required field + AssignmentId *string `min:"1" type:"string" required:"true"` + + // A message for the Worker, which the Worker can see in the Status section + // of the web site. + RequesterFeedback *string `type:"string"` +} + +// String returns the string representation +func (s RejectAssignmentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RejectAssignmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RejectAssignmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RejectAssignmentInput"} + if s.AssignmentId == nil { + invalidParams.Add(request.NewErrParamRequired("AssignmentId")) + } + if s.AssignmentId != nil && len(*s.AssignmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AssignmentId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssignmentId sets the AssignmentId field's value. +func (s *RejectAssignmentInput) SetAssignmentId(v string) *RejectAssignmentInput { + s.AssignmentId = &v + return s +} + +// SetRequesterFeedback sets the RequesterFeedback field's value. +func (s *RejectAssignmentInput) SetRequesterFeedback(v string) *RejectAssignmentInput { + s.RequesterFeedback = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RejectAssignmentResponse +type RejectAssignmentOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s RejectAssignmentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RejectAssignmentOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RejectQualificationRequestRequest +type RejectQualificationRequestInput struct { + _ struct{} `type:"structure"` + + // The ID of the Qualification request, as returned by the ListQualificationRequests + // operation. + // + // QualificationRequestId is a required field + QualificationRequestId *string `type:"string" required:"true"` + + // A text message explaining why the request was rejected, to be shown to the + // Worker who made the request. + Reason *string `type:"string"` +} + +// String returns the string representation +func (s RejectQualificationRequestInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RejectQualificationRequestInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RejectQualificationRequestInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RejectQualificationRequestInput"} + if s.QualificationRequestId == nil { + invalidParams.Add(request.NewErrParamRequired("QualificationRequestId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetQualificationRequestId sets the QualificationRequestId field's value. +func (s *RejectQualificationRequestInput) SetQualificationRequestId(v string) *RejectQualificationRequestInput { + s.QualificationRequestId = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *RejectQualificationRequestInput) SetReason(v string) *RejectQualificationRequestInput { + s.Reason = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RejectQualificationRequestResponse +type RejectQualificationRequestOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s RejectQualificationRequestOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RejectQualificationRequestOutput) GoString() string { + return s.String() +} + +// Both the AssignmentReviewReport and the HITReviewReport elements contains +// the ReviewActionDetail data structure. This structure is returned multiple +// times for each action specified in the Review Policy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ReviewActionDetail +type ReviewActionDetail struct { + _ struct{} `type:"structure"` + + // The unique identifier for the action. + ActionId *string `min:"1" type:"string"` + + // The nature of the action itself. The Review Policy is responsible for examining + // the HIT and Assignments, emitting results, and deciding which other actions + // will be necessary. + ActionName *string `type:"string"` + + // The date when the action was completed. + CompleteTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // Present only when the Results have a FAILED Status. + ErrorCode *string `type:"string"` + + // A description of the outcome of the review. + Result *string `type:"string"` + + // The current disposition of the action: INTENDED, SUCCEEDED, FAILED, or CANCELLED. + Status *string `type:"string" enum:"ReviewActionStatus"` + + // The specific HITId or AssignmentID targeted by the action. + TargetId *string `min:"1" type:"string"` + + // The type of object in TargetId. + TargetType *string `type:"string"` +} + +// String returns the string representation +func (s ReviewActionDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReviewActionDetail) GoString() string { + return s.String() +} + +// SetActionId sets the ActionId field's value. +func (s *ReviewActionDetail) SetActionId(v string) *ReviewActionDetail { + s.ActionId = &v + return s +} + +// SetActionName sets the ActionName field's value. +func (s *ReviewActionDetail) SetActionName(v string) *ReviewActionDetail { + s.ActionName = &v + return s +} + +// SetCompleteTime sets the CompleteTime field's value. +func (s *ReviewActionDetail) SetCompleteTime(v time.Time) *ReviewActionDetail { + s.CompleteTime = &v + return s +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *ReviewActionDetail) SetErrorCode(v string) *ReviewActionDetail { + s.ErrorCode = &v + return s +} + +// SetResult sets the Result field's value. +func (s *ReviewActionDetail) SetResult(v string) *ReviewActionDetail { + s.Result = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ReviewActionDetail) SetStatus(v string) *ReviewActionDetail { + s.Status = &v + return s +} + +// SetTargetId sets the TargetId field's value. +func (s *ReviewActionDetail) SetTargetId(v string) *ReviewActionDetail { + s.TargetId = &v + return s +} + +// SetTargetType sets the TargetType field's value. +func (s *ReviewActionDetail) SetTargetType(v string) *ReviewActionDetail { + s.TargetType = &v + return s +} + +// HIT Review Policy data structures represent HIT review policies, which you +// specify when you create a HIT. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ReviewPolicy +type ReviewPolicy struct { + _ struct{} `type:"structure"` + + // Name of the parameter from the Review policy. + Parameters []*PolicyParameter `type:"list"` + + // Name of a Review Policy: SimplePlurality/2011-09-01 or ScoreMyKnownAnswers/2011-09-01 + PolicyName *string `type:"string"` +} + +// String returns the string representation +func (s ReviewPolicy) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReviewPolicy) GoString() string { + return s.String() +} + +// SetParameters sets the Parameters field's value. +func (s *ReviewPolicy) SetParameters(v []*PolicyParameter) *ReviewPolicy { + s.Parameters = v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *ReviewPolicy) SetPolicyName(v string) *ReviewPolicy { + s.PolicyName = &v + return s +} + +// Contains both ReviewResult and ReviewAction elements for a particular HIT. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ReviewReport +type ReviewReport struct { + _ struct{} `type:"structure"` + + // A list of ReviewAction objects for each action specified in the Review Policy. + ReviewActions []*ReviewActionDetail `type:"list"` + + // A list of ReviewResults objects for each action specified in the Review Policy. + ReviewResults []*ReviewResultDetail `type:"list"` +} + +// String returns the string representation +func (s ReviewReport) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReviewReport) GoString() string { + return s.String() +} + +// SetReviewActions sets the ReviewActions field's value. +func (s *ReviewReport) SetReviewActions(v []*ReviewActionDetail) *ReviewReport { + s.ReviewActions = v + return s +} + +// SetReviewResults sets the ReviewResults field's value. +func (s *ReviewReport) SetReviewResults(v []*ReviewResultDetail) *ReviewReport { + s.ReviewResults = v + return s +} + +// This data structure is returned multiple times for each result specified +// in the Review Policy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ReviewResultDetail +type ReviewResultDetail struct { + _ struct{} `type:"structure"` + + // A unique identifier of the Review action result. + ActionId *string `min:"1" type:"string"` + + // Key identifies the particular piece of reviewed information. + Key *string `type:"string"` + + // Specifies the QuestionId the result is describing. Depending on whether the + // TargetType is a HIT or Assignment this results could specify multiple values. + // If TargetType is HIT and QuestionId is absent, then the result describes + // results of the HIT, including the HIT agreement score. If ObjectType is Assignment + // and QuestionId is absent, then the result describes the Worker's performance + // on the HIT. + QuestionId *string `min:"1" type:"string"` + + // The HITID or AssignmentId about which this result was taken. Note that HIT-level + // Review Policies will often emit results about both the HIT itself and its + // Assignments, while Assignment-level review policies generally only emit results + // about the Assignment itself. + SubjectId *string `min:"1" type:"string"` + + // The type of the object from the SubjectId field. + SubjectType *string `type:"string"` + + // The values of Key provided by the review policies you have selected. + Value *string `type:"string"` +} + +// String returns the string representation +func (s ReviewResultDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReviewResultDetail) GoString() string { + return s.String() +} + +// SetActionId sets the ActionId field's value. +func (s *ReviewResultDetail) SetActionId(v string) *ReviewResultDetail { + s.ActionId = &v + return s +} + +// SetKey sets the Key field's value. +func (s *ReviewResultDetail) SetKey(v string) *ReviewResultDetail { + s.Key = &v + return s +} + +// SetQuestionId sets the QuestionId field's value. +func (s *ReviewResultDetail) SetQuestionId(v string) *ReviewResultDetail { + s.QuestionId = &v + return s +} + +// SetSubjectId sets the SubjectId field's value. +func (s *ReviewResultDetail) SetSubjectId(v string) *ReviewResultDetail { + s.SubjectId = &v + return s +} + +// SetSubjectType sets the SubjectType field's value. +func (s *ReviewResultDetail) SetSubjectType(v string) *ReviewResultDetail { + s.SubjectType = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ReviewResultDetail) SetValue(v string) *ReviewResultDetail { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/SendBonusRequest +type SendBonusInput struct { + _ struct{} `type:"structure"` + + // The ID of the assignment for which this bonus is paid. + // + // AssignmentId is a required field + AssignmentId *string `min:"1" type:"string" required:"true"` + + // The Bonus amount is a US Dollar amount specified using a string (for example, + // "5" represents $5.00 USD and "101.42" represents $101.42 USD). Do not include + // currency symbols or currency codes. + // + // BonusAmount is a required field + BonusAmount *string `type:"string" required:"true"` + + // A message that explains the reason for the bonus payment. The Worker receiving + // the bonus can see this message. + Reason *string `type:"string"` + + // A unique identifier for this request, which allows you to retry the call + // on error without granting multiple bonuses. This is useful in cases such + // as network timeouts where it is unclear whether or not the call succeeded + // on the server. If the bonus already exists in the system from a previous + // call using the same UniqueRequestToken, subsequent calls will return an error + // with a message containing the request ID. + UniqueRequestToken *string `min:"1" type:"string"` + + // The ID of the Worker being paid the bonus. + // + // WorkerId is a required field + WorkerId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s SendBonusInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SendBonusInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SendBonusInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SendBonusInput"} + if s.AssignmentId == nil { + invalidParams.Add(request.NewErrParamRequired("AssignmentId")) + } + if s.AssignmentId != nil && len(*s.AssignmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AssignmentId", 1)) + } + if s.BonusAmount == nil { + invalidParams.Add(request.NewErrParamRequired("BonusAmount")) + } + if s.UniqueRequestToken != nil && len(*s.UniqueRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UniqueRequestToken", 1)) + } + if s.WorkerId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkerId")) + } + if s.WorkerId != nil && len(*s.WorkerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkerId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssignmentId sets the AssignmentId field's value. +func (s *SendBonusInput) SetAssignmentId(v string) *SendBonusInput { + s.AssignmentId = &v + return s +} + +// SetBonusAmount sets the BonusAmount field's value. +func (s *SendBonusInput) SetBonusAmount(v string) *SendBonusInput { + s.BonusAmount = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *SendBonusInput) SetReason(v string) *SendBonusInput { + s.Reason = &v + return s +} + +// SetUniqueRequestToken sets the UniqueRequestToken field's value. +func (s *SendBonusInput) SetUniqueRequestToken(v string) *SendBonusInput { + s.UniqueRequestToken = &v + return s +} + +// SetWorkerId sets the WorkerId field's value. +func (s *SendBonusInput) SetWorkerId(v string) *SendBonusInput { + s.WorkerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/SendBonusResponse +type SendBonusOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s SendBonusOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SendBonusOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/SendTestEventNotificationRequest +type SendTestEventNotificationInput struct { + _ struct{} `type:"structure"` + + // The notification specification to test. This value is identical to the value + // you would provide to the UpdateNotificationSettings operation when you establish + // the notification specification for a HIT type. + // + // Notification is a required field + Notification *NotificationSpecification `type:"structure" required:"true"` + + // The event to simulate to test the notification specification. This event + // is included in the test message even if the notification specification does + // not include the event type. The notification specification does not filter + // out the test event. + // + // TestEventType is a required field + TestEventType *string `type:"string" required:"true" enum:"EventType"` +} + +// String returns the string representation +func (s SendTestEventNotificationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SendTestEventNotificationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SendTestEventNotificationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SendTestEventNotificationInput"} + if s.Notification == nil { + invalidParams.Add(request.NewErrParamRequired("Notification")) + } + if s.TestEventType == nil { + invalidParams.Add(request.NewErrParamRequired("TestEventType")) + } + if s.Notification != nil { + if err := s.Notification.Validate(); err != nil { + invalidParams.AddNested("Notification", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNotification sets the Notification field's value. +func (s *SendTestEventNotificationInput) SetNotification(v *NotificationSpecification) *SendTestEventNotificationInput { + s.Notification = v + return s +} + +// SetTestEventType sets the TestEventType field's value. +func (s *SendTestEventNotificationInput) SetTestEventType(v string) *SendTestEventNotificationInput { + s.TestEventType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/SendTestEventNotificationResponse +type SendTestEventNotificationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s SendTestEventNotificationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SendTestEventNotificationOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateExpirationForHITRequest +type UpdateExpirationForHITInput struct { + _ struct{} `type:"structure"` + + // The date and time at which you want the HIT to expire + ExpireAt *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The HIT to update. + // + // HITId is a required field + HITId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateExpirationForHITInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateExpirationForHITInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateExpirationForHITInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateExpirationForHITInput"} + if s.HITId == nil { + invalidParams.Add(request.NewErrParamRequired("HITId")) + } + if s.HITId != nil && len(*s.HITId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HITId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetExpireAt sets the ExpireAt field's value. +func (s *UpdateExpirationForHITInput) SetExpireAt(v time.Time) *UpdateExpirationForHITInput { + s.ExpireAt = &v + return s +} + +// SetHITId sets the HITId field's value. +func (s *UpdateExpirationForHITInput) SetHITId(v string) *UpdateExpirationForHITInput { + s.HITId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateExpirationForHITResponse +type UpdateExpirationForHITOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateExpirationForHITOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateExpirationForHITOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateHITReviewStatusRequest +type UpdateHITReviewStatusInput struct { + _ struct{} `type:"structure"` + + // The ID of the HIT to update. + // + // HITId is a required field + HITId *string `min:"1" type:"string" required:"true"` + + // Specifies how to update the HIT status. Default is False. + // + // * Setting this to false will only transition a HIT from Reviewable to + // Reviewing + // + // * Setting this to true will only transition a HIT from Reviewing to Reviewable + Revert *bool `type:"boolean"` +} + +// String returns the string representation +func (s UpdateHITReviewStatusInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateHITReviewStatusInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateHITReviewStatusInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateHITReviewStatusInput"} + if s.HITId == nil { + invalidParams.Add(request.NewErrParamRequired("HITId")) + } + if s.HITId != nil && len(*s.HITId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HITId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHITId sets the HITId field's value. +func (s *UpdateHITReviewStatusInput) SetHITId(v string) *UpdateHITReviewStatusInput { + s.HITId = &v + return s +} + +// SetRevert sets the Revert field's value. +func (s *UpdateHITReviewStatusInput) SetRevert(v bool) *UpdateHITReviewStatusInput { + s.Revert = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateHITReviewStatusResponse +type UpdateHITReviewStatusOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateHITReviewStatusOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateHITReviewStatusOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateHITTypeOfHITRequest +type UpdateHITTypeOfHITInput struct { + _ struct{} `type:"structure"` + + // The HIT to update. + // + // HITId is a required field + HITId *string `min:"1" type:"string" required:"true"` + + // The ID of the new HIT type. + // + // HITTypeId is a required field + HITTypeId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateHITTypeOfHITInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateHITTypeOfHITInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateHITTypeOfHITInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateHITTypeOfHITInput"} + if s.HITId == nil { + invalidParams.Add(request.NewErrParamRequired("HITId")) + } + if s.HITId != nil && len(*s.HITId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HITId", 1)) + } + if s.HITTypeId == nil { + invalidParams.Add(request.NewErrParamRequired("HITTypeId")) + } + if s.HITTypeId != nil && len(*s.HITTypeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HITTypeId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHITId sets the HITId field's value. +func (s *UpdateHITTypeOfHITInput) SetHITId(v string) *UpdateHITTypeOfHITInput { + s.HITId = &v + return s +} + +// SetHITTypeId sets the HITTypeId field's value. +func (s *UpdateHITTypeOfHITInput) SetHITTypeId(v string) *UpdateHITTypeOfHITInput { + s.HITTypeId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateHITTypeOfHITResponse +type UpdateHITTypeOfHITOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateHITTypeOfHITOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateHITTypeOfHITOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateNotificationSettingsRequest +type UpdateNotificationSettingsInput struct { + _ struct{} `type:"structure"` + + // Specifies whether notifications are sent for HITs of this HIT type, according + // to the notification specification. You must specify either the Notification + // parameter or the Active parameter for the call to UpdateNotificationSettings + // to succeed. + Active *bool `type:"boolean"` + + // The ID of the HIT type whose notification specification is being updated. + // + // HITTypeId is a required field + HITTypeId *string `min:"1" type:"string" required:"true"` + + // The notification specification for the HIT type. + Notification *NotificationSpecification `type:"structure"` +} + +// String returns the string representation +func (s UpdateNotificationSettingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateNotificationSettingsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateNotificationSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateNotificationSettingsInput"} + if s.HITTypeId == nil { + invalidParams.Add(request.NewErrParamRequired("HITTypeId")) + } + if s.HITTypeId != nil && len(*s.HITTypeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HITTypeId", 1)) + } + if s.Notification != nil { + if err := s.Notification.Validate(); err != nil { + invalidParams.AddNested("Notification", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetActive sets the Active field's value. +func (s *UpdateNotificationSettingsInput) SetActive(v bool) *UpdateNotificationSettingsInput { + s.Active = &v + return s +} + +// SetHITTypeId sets the HITTypeId field's value. +func (s *UpdateNotificationSettingsInput) SetHITTypeId(v string) *UpdateNotificationSettingsInput { + s.HITTypeId = &v + return s +} + +// SetNotification sets the Notification field's value. +func (s *UpdateNotificationSettingsInput) SetNotification(v *NotificationSpecification) *UpdateNotificationSettingsInput { + s.Notification = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateNotificationSettingsResponse +type UpdateNotificationSettingsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateNotificationSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateNotificationSettingsOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateQualificationTypeRequest +type UpdateQualificationTypeInput struct { + _ struct{} `type:"structure"` + + // The answers to the Qualification test specified in the Test parameter, in + // the form of an AnswerKey data structure. + AnswerKey *string `type:"string"` + + // Specifies whether requests for the Qualification type are granted immediately, + // without prompting the Worker with a Qualification test. + // + // Constraints: If the Test parameter is specified, this parameter cannot be + // true. + AutoGranted *bool `type:"boolean"` + + // The Qualification value to use for automatically granted Qualifications. + // This parameter is used only if the AutoGranted parameter is true. + AutoGrantedValue *int64 `type:"integer"` + + // The new description of the Qualification type. + Description *string `type:"string"` + + // The ID of the Qualification type to update. + // + // QualificationTypeId is a required field + QualificationTypeId *string `min:"1" type:"string" required:"true"` + + // The new status of the Qualification type - Active | Inactive + QualificationTypeStatus *string `type:"string" enum:"QualificationTypeStatus"` + + // The amount of time, in seconds, that Workers must wait after requesting a + // Qualification of the specified Qualification type before they can retry the + // Qualification request. It is not possible to disable retries for a Qualification + // type after it has been created with retries enabled. If you want to disable + // retries, you must dispose of the existing retry-enabled Qualification type + // using DisposeQualificationType and then create a new Qualification type with + // retries disabled using CreateQualificationType. + RetryDelayInSeconds *int64 `type:"long"` + + // The questions for the Qualification test a Worker must answer correctly to + // obtain a Qualification of this type. If this parameter is specified, TestDurationInSeconds + // must also be specified. + // + // Constraints: Must not be longer than 65535 bytes. Must be a QuestionForm + // data structure. This parameter cannot be specified if AutoGranted is true. + // + // Constraints: None. If not specified, the Worker may request the Qualification + // without answering any questions. + Test *string `type:"string"` + + // The number of seconds the Worker has to complete the Qualification test, + // starting from the time the Worker requests the Qualification. + TestDurationInSeconds *int64 `type:"long"` +} + +// String returns the string representation +func (s UpdateQualificationTypeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateQualificationTypeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateQualificationTypeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateQualificationTypeInput"} + if s.QualificationTypeId == nil { + invalidParams.Add(request.NewErrParamRequired("QualificationTypeId")) + } + if s.QualificationTypeId != nil && len(*s.QualificationTypeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QualificationTypeId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAnswerKey sets the AnswerKey field's value. +func (s *UpdateQualificationTypeInput) SetAnswerKey(v string) *UpdateQualificationTypeInput { + s.AnswerKey = &v + return s +} + +// SetAutoGranted sets the AutoGranted field's value. +func (s *UpdateQualificationTypeInput) SetAutoGranted(v bool) *UpdateQualificationTypeInput { + s.AutoGranted = &v + return s +} + +// SetAutoGrantedValue sets the AutoGrantedValue field's value. +func (s *UpdateQualificationTypeInput) SetAutoGrantedValue(v int64) *UpdateQualificationTypeInput { + s.AutoGrantedValue = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateQualificationTypeInput) SetDescription(v string) *UpdateQualificationTypeInput { + s.Description = &v + return s +} + +// SetQualificationTypeId sets the QualificationTypeId field's value. +func (s *UpdateQualificationTypeInput) SetQualificationTypeId(v string) *UpdateQualificationTypeInput { + s.QualificationTypeId = &v + return s +} + +// SetQualificationTypeStatus sets the QualificationTypeStatus field's value. +func (s *UpdateQualificationTypeInput) SetQualificationTypeStatus(v string) *UpdateQualificationTypeInput { + s.QualificationTypeStatus = &v + return s +} + +// SetRetryDelayInSeconds sets the RetryDelayInSeconds field's value. +func (s *UpdateQualificationTypeInput) SetRetryDelayInSeconds(v int64) *UpdateQualificationTypeInput { + s.RetryDelayInSeconds = &v + return s +} + +// SetTest sets the Test field's value. +func (s *UpdateQualificationTypeInput) SetTest(v string) *UpdateQualificationTypeInput { + s.Test = &v + return s +} + +// SetTestDurationInSeconds sets the TestDurationInSeconds field's value. +func (s *UpdateQualificationTypeInput) SetTestDurationInSeconds(v int64) *UpdateQualificationTypeInput { + s.TestDurationInSeconds = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateQualificationTypeResponse +type UpdateQualificationTypeOutput struct { + _ struct{} `type:"structure"` + + // Contains a QualificationType data structure. + QualificationType *QualificationType `type:"structure"` +} + +// String returns the string representation +func (s UpdateQualificationTypeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateQualificationTypeOutput) GoString() string { + return s.String() +} + +// SetQualificationType sets the QualificationType field's value. +func (s *UpdateQualificationTypeOutput) SetQualificationType(v *QualificationType) *UpdateQualificationTypeOutput { + s.QualificationType = v + return s +} + +// The WorkerBlock data structure represents a Worker who has been blocked. +// It has two elements: the WorkerId and the Reason for the block. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/WorkerBlock +type WorkerBlock struct { + _ struct{} `type:"structure"` + + // A message explaining the reason the Worker was blocked. + Reason *string `type:"string"` + + // The ID of the Worker who accepted the HIT. + WorkerId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s WorkerBlock) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WorkerBlock) GoString() string { + return s.String() +} + +// SetReason sets the Reason field's value. +func (s *WorkerBlock) SetReason(v string) *WorkerBlock { + s.Reason = &v + return s +} + +// SetWorkerId sets the WorkerId field's value. +func (s *WorkerBlock) SetWorkerId(v string) *WorkerBlock { + s.WorkerId = &v + return s +} + +const ( + // AssignmentStatusSubmitted is a AssignmentStatus enum value + AssignmentStatusSubmitted = "Submitted" + + // AssignmentStatusApproved is a AssignmentStatus enum value + AssignmentStatusApproved = "Approved" + + // AssignmentStatusRejected is a AssignmentStatus enum value + AssignmentStatusRejected = "Rejected" +) + +const ( + // ComparatorLessThan is a Comparator enum value + ComparatorLessThan = "LessThan" + + // ComparatorLessThanOrEqualTo is a Comparator enum value + ComparatorLessThanOrEqualTo = "LessThanOrEqualTo" + + // ComparatorGreaterThan is a Comparator enum value + ComparatorGreaterThan = "GreaterThan" + + // ComparatorGreaterThanOrEqualTo is a Comparator enum value + ComparatorGreaterThanOrEqualTo = "GreaterThanOrEqualTo" + + // ComparatorEqualTo is a Comparator enum value + ComparatorEqualTo = "EqualTo" + + // ComparatorNotEqualTo is a Comparator enum value + ComparatorNotEqualTo = "NotEqualTo" + + // ComparatorExists is a Comparator enum value + ComparatorExists = "Exists" + + // ComparatorDoesNotExist is a Comparator enum value + ComparatorDoesNotExist = "DoesNotExist" + + // ComparatorIn is a Comparator enum value + ComparatorIn = "In" + + // ComparatorNotIn is a Comparator enum value + ComparatorNotIn = "NotIn" +) + +const ( + // EventTypeAssignmentAccepted is a EventType enum value + EventTypeAssignmentAccepted = "AssignmentAccepted" + + // EventTypeAssignmentAbandoned is a EventType enum value + EventTypeAssignmentAbandoned = "AssignmentAbandoned" + + // EventTypeAssignmentReturned is a EventType enum value + EventTypeAssignmentReturned = "AssignmentReturned" + + // EventTypeAssignmentSubmitted is a EventType enum value + EventTypeAssignmentSubmitted = "AssignmentSubmitted" + + // EventTypeAssignmentRejected is a EventType enum value + EventTypeAssignmentRejected = "AssignmentRejected" + + // EventTypeAssignmentApproved is a EventType enum value + EventTypeAssignmentApproved = "AssignmentApproved" + + // EventTypeHitcreated is a EventType enum value + EventTypeHitcreated = "HITCreated" + + // EventTypeHitexpired is a EventType enum value + EventTypeHitexpired = "HITExpired" + + // EventTypeHitreviewable is a EventType enum value + EventTypeHitreviewable = "HITReviewable" + + // EventTypeHitextended is a EventType enum value + EventTypeHitextended = "HITExtended" + + // EventTypeHitdisposed is a EventType enum value + EventTypeHitdisposed = "HITDisposed" + + // EventTypePing is a EventType enum value + EventTypePing = "Ping" +) + +const ( + // HITReviewStatusNotReviewed is a HITReviewStatus enum value + HITReviewStatusNotReviewed = "NotReviewed" + + // HITReviewStatusMarkedForReview is a HITReviewStatus enum value + HITReviewStatusMarkedForReview = "MarkedForReview" + + // HITReviewStatusReviewedAppropriate is a HITReviewStatus enum value + HITReviewStatusReviewedAppropriate = "ReviewedAppropriate" + + // HITReviewStatusReviewedInappropriate is a HITReviewStatus enum value + HITReviewStatusReviewedInappropriate = "ReviewedInappropriate" +) + +const ( + // HITStatusAssignable is a HITStatus enum value + HITStatusAssignable = "Assignable" + + // HITStatusUnassignable is a HITStatus enum value + HITStatusUnassignable = "Unassignable" + + // HITStatusReviewable is a HITStatus enum value + HITStatusReviewable = "Reviewable" + + // HITStatusReviewing is a HITStatus enum value + HITStatusReviewing = "Reviewing" + + // HITStatusDisposed is a HITStatus enum value + HITStatusDisposed = "Disposed" +) + +const ( + // NotificationTransportEmail is a NotificationTransport enum value + NotificationTransportEmail = "Email" + + // NotificationTransportSqs is a NotificationTransport enum value + NotificationTransportSqs = "SQS" +) + +const ( + // NotifyWorkersFailureCodeSoftFailure is a NotifyWorkersFailureCode enum value + NotifyWorkersFailureCodeSoftFailure = "SoftFailure" + + // NotifyWorkersFailureCodeHardFailure is a NotifyWorkersFailureCode enum value + NotifyWorkersFailureCodeHardFailure = "HardFailure" +) + +const ( + // QualificationStatusGranted is a QualificationStatus enum value + QualificationStatusGranted = "Granted" + + // QualificationStatusRevoked is a QualificationStatus enum value + QualificationStatusRevoked = "Revoked" +) + +const ( + // QualificationTypeStatusActive is a QualificationTypeStatus enum value + QualificationTypeStatusActive = "Active" + + // QualificationTypeStatusInactive is a QualificationTypeStatus enum value + QualificationTypeStatusInactive = "Inactive" +) + +const ( + // ReviewActionStatusIntended is a ReviewActionStatus enum value + ReviewActionStatusIntended = "Intended" + + // ReviewActionStatusSucceeded is a ReviewActionStatus enum value + ReviewActionStatusSucceeded = "Succeeded" + + // ReviewActionStatusFailed is a ReviewActionStatus enum value + ReviewActionStatusFailed = "Failed" + + // ReviewActionStatusCancelled is a ReviewActionStatus enum value + ReviewActionStatusCancelled = "Cancelled" +) + +const ( + // ReviewPolicyLevelAssignment is a ReviewPolicyLevel enum value + ReviewPolicyLevelAssignment = "Assignment" + + // ReviewPolicyLevelHit is a ReviewPolicyLevel enum value + ReviewPolicyLevelHit = "HIT" +) + +const ( + // ReviewableHITStatusReviewable is a ReviewableHITStatus enum value + ReviewableHITStatusReviewable = "Reviewable" + + // ReviewableHITStatusReviewing is a ReviewableHITStatus enum value + ReviewableHITStatusReviewing = "Reviewing" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/mturk/errors.go b/vendor/github.com/aws/aws-sdk-go/service/mturk/errors.go new file mode 100644 index 000000000..94b978935 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/mturk/errors.go @@ -0,0 +1,19 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package mturk + +const ( + + // ErrCodeRequestError for service response error code + // "RequestError". + // + // Your request is invalid. + ErrCodeRequestError = "RequestError" + + // ErrCodeServiceFault for service response error code + // "ServiceFault". + // + // Amazon Mechanical Turk is temporarily unable to process your request. Try + // your call again. + ErrCodeServiceFault = "ServiceFault" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/mturk/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/mturk/examples_test.go new file mode 100644 index 000000000..550d43adc --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/mturk/examples_test.go @@ -0,0 +1,1096 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package mturk_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/mturk" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExampleMTurk_AcceptQualificationRequest() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.AcceptQualificationRequestInput{ + QualificationRequestId: aws.String("String"), // Required + IntegerValue: aws.Int64(1), + } + resp, err := svc.AcceptQualificationRequest(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_ApproveAssignment() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.ApproveAssignmentInput{ + AssignmentId: aws.String("EntityId"), // Required + OverrideRejection: aws.Bool(true), + RequesterFeedback: aws.String("String"), + } + resp, err := svc.ApproveAssignment(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_AssociateQualificationWithWorker() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.AssociateQualificationWithWorkerInput{ + QualificationTypeId: aws.String("EntityId"), // Required + WorkerId: aws.String("CustomerId"), // Required + IntegerValue: aws.Int64(1), + SendNotification: aws.Bool(true), + } + resp, err := svc.AssociateQualificationWithWorker(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_CreateAdditionalAssignmentsForHIT() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.CreateAdditionalAssignmentsForHITInput{ + HITId: aws.String("EntityId"), // Required + NumberOfAdditionalAssignments: aws.Int64(1), + UniqueRequestToken: aws.String("IdempotencyToken"), + } + resp, err := svc.CreateAdditionalAssignmentsForHIT(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_CreateHIT() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.CreateHITInput{ + AssignmentDurationInSeconds: aws.Int64(1), // Required + Description: aws.String("String"), // Required + LifetimeInSeconds: aws.Int64(1), // Required + Reward: aws.String("NumericValue"), // Required + Title: aws.String("String"), // Required + AssignmentReviewPolicy: &mturk.ReviewPolicy{ + Parameters: []*mturk.PolicyParameter{ + { // Required + Key: aws.String("String"), + MapEntries: []*mturk.ParameterMapEntry{ + { // Required + Key: aws.String("String"), + Values: []*string{ + aws.String("String"), // Required + // More values... + }, + }, + // More values... + }, + Values: []*string{ + aws.String("String"), // Required + // More values... + }, + }, + // More values... + }, + PolicyName: aws.String("String"), + }, + AutoApprovalDelayInSeconds: aws.Int64(1), + HITLayoutId: aws.String("EntityId"), + HITLayoutParameters: []*mturk.HITLayoutParameter{ + { // Required + Name: aws.String("String"), + Value: aws.String("String"), + }, + // More values... + }, + HITReviewPolicy: &mturk.ReviewPolicy{ + Parameters: []*mturk.PolicyParameter{ + { // Required + Key: aws.String("String"), + MapEntries: []*mturk.ParameterMapEntry{ + { // Required + Key: aws.String("String"), + Values: []*string{ + aws.String("String"), // Required + // More values... + }, + }, + // More values... + }, + Values: []*string{ + aws.String("String"), // Required + // More values... + }, + }, + // More values... + }, + PolicyName: aws.String("String"), + }, + Keywords: aws.String("String"), + MaxAssignments: aws.Int64(1), + QualificationRequirements: []*mturk.QualificationRequirement{ + { // Required + Comparator: aws.String("Comparator"), // Required + QualificationTypeId: aws.String("String"), // Required + IntegerValues: []*int64{ + aws.Int64(1), // Required + // More values... + }, + LocaleValues: []*mturk.Locale{ + { // Required + Country: aws.String("CountryParameters"), // Required + Subdivision: aws.String("CountryParameters"), + }, + // More values... + }, + RequiredToPreview: aws.Bool(true), + }, + // More values... + }, + Question: aws.String("String"), + RequesterAnnotation: aws.String("String"), + UniqueRequestToken: aws.String("IdempotencyToken"), + } + resp, err := svc.CreateHIT(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_CreateHITType() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.CreateHITTypeInput{ + AssignmentDurationInSeconds: aws.Int64(1), // Required + Description: aws.String("String"), // Required + Reward: aws.String("NumericValue"), // Required + Title: aws.String("String"), // Required + AutoApprovalDelayInSeconds: aws.Int64(1), + Keywords: aws.String("String"), + QualificationRequirements: []*mturk.QualificationRequirement{ + { // Required + Comparator: aws.String("Comparator"), // Required + QualificationTypeId: aws.String("String"), // Required + IntegerValues: []*int64{ + aws.Int64(1), // Required + // More values... + }, + LocaleValues: []*mturk.Locale{ + { // Required + Country: aws.String("CountryParameters"), // Required + Subdivision: aws.String("CountryParameters"), + }, + // More values... + }, + RequiredToPreview: aws.Bool(true), + }, + // More values... + }, + } + resp, err := svc.CreateHITType(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_CreateHITWithHITType() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.CreateHITWithHITTypeInput{ + HITTypeId: aws.String("EntityId"), // Required + LifetimeInSeconds: aws.Int64(1), // Required + AssignmentReviewPolicy: &mturk.ReviewPolicy{ + Parameters: []*mturk.PolicyParameter{ + { // Required + Key: aws.String("String"), + MapEntries: []*mturk.ParameterMapEntry{ + { // Required + Key: aws.String("String"), + Values: []*string{ + aws.String("String"), // Required + // More values... + }, + }, + // More values... + }, + Values: []*string{ + aws.String("String"), // Required + // More values... + }, + }, + // More values... + }, + PolicyName: aws.String("String"), + }, + HITLayoutId: aws.String("EntityId"), + HITLayoutParameters: []*mturk.HITLayoutParameter{ + { // Required + Name: aws.String("String"), + Value: aws.String("String"), + }, + // More values... + }, + HITReviewPolicy: &mturk.ReviewPolicy{ + Parameters: []*mturk.PolicyParameter{ + { // Required + Key: aws.String("String"), + MapEntries: []*mturk.ParameterMapEntry{ + { // Required + Key: aws.String("String"), + Values: []*string{ + aws.String("String"), // Required + // More values... + }, + }, + // More values... + }, + Values: []*string{ + aws.String("String"), // Required + // More values... + }, + }, + // More values... + }, + PolicyName: aws.String("String"), + }, + MaxAssignments: aws.Int64(1), + Question: aws.String("String"), + RequesterAnnotation: aws.String("String"), + UniqueRequestToken: aws.String("IdempotencyToken"), + } + resp, err := svc.CreateHITWithHITType(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_CreateQualificationType() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.CreateQualificationTypeInput{ + Description: aws.String("String"), // Required + Name: aws.String("String"), // Required + QualificationTypeStatus: aws.String("QualificationTypeStatus"), // Required + AnswerKey: aws.String("String"), + AutoGranted: aws.Bool(true), + AutoGrantedValue: aws.Int64(1), + Keywords: aws.String("String"), + RetryDelayInSeconds: aws.Int64(1), + Test: aws.String("String"), + TestDurationInSeconds: aws.Int64(1), + } + resp, err := svc.CreateQualificationType(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_CreateWorkerBlock() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.CreateWorkerBlockInput{ + Reason: aws.String("String"), // Required + WorkerId: aws.String("CustomerId"), // Required + } + resp, err := svc.CreateWorkerBlock(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_DeleteHIT() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.DeleteHITInput{ + HITId: aws.String("EntityId"), // Required + } + resp, err := svc.DeleteHIT(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_DeleteQualificationType() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.DeleteQualificationTypeInput{ + QualificationTypeId: aws.String("EntityId"), // Required + } + resp, err := svc.DeleteQualificationType(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_DeleteWorkerBlock() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.DeleteWorkerBlockInput{ + WorkerId: aws.String("CustomerId"), // Required + Reason: aws.String("String"), + } + resp, err := svc.DeleteWorkerBlock(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_DisassociateQualificationFromWorker() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.DisassociateQualificationFromWorkerInput{ + QualificationTypeId: aws.String("EntityId"), // Required + WorkerId: aws.String("CustomerId"), // Required + Reason: aws.String("String"), + } + resp, err := svc.DisassociateQualificationFromWorker(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_GetAccountBalance() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + var params *mturk.GetAccountBalanceInput + resp, err := svc.GetAccountBalance(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_GetAssignment() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.GetAssignmentInput{ + AssignmentId: aws.String("EntityId"), // Required + } + resp, err := svc.GetAssignment(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_GetFileUploadURL() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.GetFileUploadURLInput{ + AssignmentId: aws.String("EntityId"), // Required + QuestionIdentifier: aws.String("String"), // Required + } + resp, err := svc.GetFileUploadURL(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_GetHIT() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.GetHITInput{ + HITId: aws.String("EntityId"), // Required + } + resp, err := svc.GetHIT(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_GetQualificationScore() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.GetQualificationScoreInput{ + QualificationTypeId: aws.String("EntityId"), // Required + WorkerId: aws.String("CustomerId"), // Required + } + resp, err := svc.GetQualificationScore(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_GetQualificationType() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.GetQualificationTypeInput{ + QualificationTypeId: aws.String("EntityId"), // Required + } + resp, err := svc.GetQualificationType(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_ListAssignmentsForHIT() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.ListAssignmentsForHITInput{ + HITId: aws.String("EntityId"), // Required + AssignmentStatuses: []*string{ + aws.String("AssignmentStatus"), // Required + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("PaginationToken"), + } + resp, err := svc.ListAssignmentsForHIT(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_ListBonusPayments() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.ListBonusPaymentsInput{ + AssignmentId: aws.String("EntityId"), + HITId: aws.String("EntityId"), + MaxResults: aws.Int64(1), + NextToken: aws.String("PaginationToken"), + } + resp, err := svc.ListBonusPayments(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_ListHITs() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.ListHITsInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("PaginationToken"), + } + resp, err := svc.ListHITs(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_ListHITsForQualificationType() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.ListHITsForQualificationTypeInput{ + QualificationTypeId: aws.String("EntityId"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("PaginationToken"), + } + resp, err := svc.ListHITsForQualificationType(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_ListQualificationRequests() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.ListQualificationRequestsInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("PaginationToken"), + QualificationTypeId: aws.String("EntityId"), + } + resp, err := svc.ListQualificationRequests(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_ListQualificationTypes() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.ListQualificationTypesInput{ + MustBeRequestable: aws.Bool(true), // Required + MaxResults: aws.Int64(1), + MustBeOwnedByCaller: aws.Bool(true), + NextToken: aws.String("PaginationToken"), + Query: aws.String("String"), + } + resp, err := svc.ListQualificationTypes(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_ListReviewPolicyResultsForHIT() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.ListReviewPolicyResultsForHITInput{ + HITId: aws.String("EntityId"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("PaginationToken"), + PolicyLevels: []*string{ + aws.String("ReviewPolicyLevel"), // Required + // More values... + }, + RetrieveActions: aws.Bool(true), + RetrieveResults: aws.Bool(true), + } + resp, err := svc.ListReviewPolicyResultsForHIT(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_ListReviewableHITs() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.ListReviewableHITsInput{ + HITTypeId: aws.String("EntityId"), + MaxResults: aws.Int64(1), + NextToken: aws.String("PaginationToken"), + Status: aws.String("ReviewableHITStatus"), + } + resp, err := svc.ListReviewableHITs(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_ListWorkerBlocks() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.ListWorkerBlocksInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("PaginationToken"), + } + resp, err := svc.ListWorkerBlocks(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_ListWorkersWithQualificationType() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.ListWorkersWithQualificationTypeInput{ + QualificationTypeId: aws.String("EntityId"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("PaginationToken"), + Status: aws.String("QualificationStatus"), + } + resp, err := svc.ListWorkersWithQualificationType(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_NotifyWorkers() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.NotifyWorkersInput{ + MessageText: aws.String("String"), // Required + Subject: aws.String("String"), // Required + WorkerIds: []*string{ // Required + aws.String("CustomerId"), // Required + // More values... + }, + } + resp, err := svc.NotifyWorkers(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_RejectAssignment() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.RejectAssignmentInput{ + AssignmentId: aws.String("EntityId"), // Required + RequesterFeedback: aws.String("String"), + } + resp, err := svc.RejectAssignment(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_RejectQualificationRequest() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.RejectQualificationRequestInput{ + QualificationRequestId: aws.String("String"), // Required + Reason: aws.String("String"), + } + resp, err := svc.RejectQualificationRequest(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_SendBonus() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.SendBonusInput{ + AssignmentId: aws.String("EntityId"), // Required + BonusAmount: aws.String("NumericValue"), // Required + WorkerId: aws.String("CustomerId"), // Required + Reason: aws.String("String"), + UniqueRequestToken: aws.String("IdempotencyToken"), + } + resp, err := svc.SendBonus(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_SendTestEventNotification() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.SendTestEventNotificationInput{ + Notification: &mturk.NotificationSpecification{ // Required + Destination: aws.String("String"), // Required + Transport: aws.String("NotificationTransport"), // Required + EventTypes: []*string{ + aws.String("EventType"), // Required + // More values... + }, + Version: aws.String("String"), + }, + TestEventType: aws.String("EventType"), // Required + } + resp, err := svc.SendTestEventNotification(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_UpdateExpirationForHIT() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.UpdateExpirationForHITInput{ + HITId: aws.String("EntityId"), // Required + ExpireAt: aws.Time(time.Now()), + } + resp, err := svc.UpdateExpirationForHIT(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_UpdateHITReviewStatus() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.UpdateHITReviewStatusInput{ + HITId: aws.String("EntityId"), // Required + Revert: aws.Bool(true), + } + resp, err := svc.UpdateHITReviewStatus(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_UpdateHITTypeOfHIT() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.UpdateHITTypeOfHITInput{ + HITId: aws.String("EntityId"), // Required + HITTypeId: aws.String("EntityId"), // Required + } + resp, err := svc.UpdateHITTypeOfHIT(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_UpdateNotificationSettings() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.UpdateNotificationSettingsInput{ + HITTypeId: aws.String("EntityId"), // Required + Active: aws.Bool(true), + Notification: &mturk.NotificationSpecification{ + Destination: aws.String("String"), // Required + Transport: aws.String("NotificationTransport"), // Required + EventTypes: []*string{ + aws.String("EventType"), // Required + // More values... + }, + Version: aws.String("String"), + }, + } + resp, err := svc.UpdateNotificationSettings(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleMTurk_UpdateQualificationType() { + sess := session.Must(session.NewSession()) + + svc := mturk.New(sess) + + params := &mturk.UpdateQualificationTypeInput{ + QualificationTypeId: aws.String("EntityId"), // Required + AnswerKey: aws.String("String"), + AutoGranted: aws.Bool(true), + AutoGrantedValue: aws.Int64(1), + Description: aws.String("String"), + QualificationTypeStatus: aws.String("QualificationTypeStatus"), + RetryDelayInSeconds: aws.Int64(1), + Test: aws.String("String"), + TestDurationInSeconds: aws.Int64(1), + } + resp, err := svc.UpdateQualificationType(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/mturk/mturkiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/mturk/mturkiface/interface.go new file mode 100644 index 000000000..b3f9558c2 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/mturk/mturkiface/interface.go @@ -0,0 +1,239 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package mturkiface provides an interface to enable mocking the Amazon Mechanical Turk service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package mturkiface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/mturk" +) + +// MTurkAPI provides an interface to enable mocking the +// mturk.MTurk service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Amazon Mechanical Turk. +// func myFunc(svc mturkiface.MTurkAPI) bool { +// // Make svc.AcceptQualificationRequest request +// } +// +// func main() { +// sess := session.New() +// svc := mturk.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockMTurkClient struct { +// mturkiface.MTurkAPI +// } +// func (m *mockMTurkClient) AcceptQualificationRequest(input *mturk.AcceptQualificationRequestInput) (*mturk.AcceptQualificationRequestOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockMTurkClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type MTurkAPI interface { + AcceptQualificationRequestRequest(*mturk.AcceptQualificationRequestInput) (*request.Request, *mturk.AcceptQualificationRequestOutput) + + AcceptQualificationRequest(*mturk.AcceptQualificationRequestInput) (*mturk.AcceptQualificationRequestOutput, error) + + ApproveAssignmentRequest(*mturk.ApproveAssignmentInput) (*request.Request, *mturk.ApproveAssignmentOutput) + + ApproveAssignment(*mturk.ApproveAssignmentInput) (*mturk.ApproveAssignmentOutput, error) + + AssociateQualificationWithWorkerRequest(*mturk.AssociateQualificationWithWorkerInput) (*request.Request, *mturk.AssociateQualificationWithWorkerOutput) + + AssociateQualificationWithWorker(*mturk.AssociateQualificationWithWorkerInput) (*mturk.AssociateQualificationWithWorkerOutput, error) + + CreateAdditionalAssignmentsForHITRequest(*mturk.CreateAdditionalAssignmentsForHITInput) (*request.Request, *mturk.CreateAdditionalAssignmentsForHITOutput) + + CreateAdditionalAssignmentsForHIT(*mturk.CreateAdditionalAssignmentsForHITInput) (*mturk.CreateAdditionalAssignmentsForHITOutput, error) + + CreateHITRequest(*mturk.CreateHITInput) (*request.Request, *mturk.CreateHITOutput) + + CreateHIT(*mturk.CreateHITInput) (*mturk.CreateHITOutput, error) + + CreateHITTypeRequest(*mturk.CreateHITTypeInput) (*request.Request, *mturk.CreateHITTypeOutput) + + CreateHITType(*mturk.CreateHITTypeInput) (*mturk.CreateHITTypeOutput, error) + + CreateHITWithHITTypeRequest(*mturk.CreateHITWithHITTypeInput) (*request.Request, *mturk.CreateHITWithHITTypeOutput) + + CreateHITWithHITType(*mturk.CreateHITWithHITTypeInput) (*mturk.CreateHITWithHITTypeOutput, error) + + CreateQualificationTypeRequest(*mturk.CreateQualificationTypeInput) (*request.Request, *mturk.CreateQualificationTypeOutput) + + CreateQualificationType(*mturk.CreateQualificationTypeInput) (*mturk.CreateQualificationTypeOutput, error) + + CreateWorkerBlockRequest(*mturk.CreateWorkerBlockInput) (*request.Request, *mturk.CreateWorkerBlockOutput) + + CreateWorkerBlock(*mturk.CreateWorkerBlockInput) (*mturk.CreateWorkerBlockOutput, error) + + DeleteHITRequest(*mturk.DeleteHITInput) (*request.Request, *mturk.DeleteHITOutput) + + DeleteHIT(*mturk.DeleteHITInput) (*mturk.DeleteHITOutput, error) + + DeleteQualificationTypeRequest(*mturk.DeleteQualificationTypeInput) (*request.Request, *mturk.DeleteQualificationTypeOutput) + + DeleteQualificationType(*mturk.DeleteQualificationTypeInput) (*mturk.DeleteQualificationTypeOutput, error) + + DeleteWorkerBlockRequest(*mturk.DeleteWorkerBlockInput) (*request.Request, *mturk.DeleteWorkerBlockOutput) + + DeleteWorkerBlock(*mturk.DeleteWorkerBlockInput) (*mturk.DeleteWorkerBlockOutput, error) + + DisassociateQualificationFromWorkerRequest(*mturk.DisassociateQualificationFromWorkerInput) (*request.Request, *mturk.DisassociateQualificationFromWorkerOutput) + + DisassociateQualificationFromWorker(*mturk.DisassociateQualificationFromWorkerInput) (*mturk.DisassociateQualificationFromWorkerOutput, error) + + GetAccountBalanceRequest(*mturk.GetAccountBalanceInput) (*request.Request, *mturk.GetAccountBalanceOutput) + + GetAccountBalance(*mturk.GetAccountBalanceInput) (*mturk.GetAccountBalanceOutput, error) + + GetAssignmentRequest(*mturk.GetAssignmentInput) (*request.Request, *mturk.GetAssignmentOutput) + + GetAssignment(*mturk.GetAssignmentInput) (*mturk.GetAssignmentOutput, error) + + GetFileUploadURLRequest(*mturk.GetFileUploadURLInput) (*request.Request, *mturk.GetFileUploadURLOutput) + + GetFileUploadURL(*mturk.GetFileUploadURLInput) (*mturk.GetFileUploadURLOutput, error) + + GetHITRequest(*mturk.GetHITInput) (*request.Request, *mturk.GetHITOutput) + + GetHIT(*mturk.GetHITInput) (*mturk.GetHITOutput, error) + + GetQualificationScoreRequest(*mturk.GetQualificationScoreInput) (*request.Request, *mturk.GetQualificationScoreOutput) + + GetQualificationScore(*mturk.GetQualificationScoreInput) (*mturk.GetQualificationScoreOutput, error) + + GetQualificationTypeRequest(*mturk.GetQualificationTypeInput) (*request.Request, *mturk.GetQualificationTypeOutput) + + GetQualificationType(*mturk.GetQualificationTypeInput) (*mturk.GetQualificationTypeOutput, error) + + ListAssignmentsForHITRequest(*mturk.ListAssignmentsForHITInput) (*request.Request, *mturk.ListAssignmentsForHITOutput) + + ListAssignmentsForHIT(*mturk.ListAssignmentsForHITInput) (*mturk.ListAssignmentsForHITOutput, error) + + ListAssignmentsForHITPages(*mturk.ListAssignmentsForHITInput, func(*mturk.ListAssignmentsForHITOutput, bool) bool) error + + ListBonusPaymentsRequest(*mturk.ListBonusPaymentsInput) (*request.Request, *mturk.ListBonusPaymentsOutput) + + ListBonusPayments(*mturk.ListBonusPaymentsInput) (*mturk.ListBonusPaymentsOutput, error) + + ListBonusPaymentsPages(*mturk.ListBonusPaymentsInput, func(*mturk.ListBonusPaymentsOutput, bool) bool) error + + ListHITsRequest(*mturk.ListHITsInput) (*request.Request, *mturk.ListHITsOutput) + + ListHITs(*mturk.ListHITsInput) (*mturk.ListHITsOutput, error) + + ListHITsPages(*mturk.ListHITsInput, func(*mturk.ListHITsOutput, bool) bool) error + + ListHITsForQualificationTypeRequest(*mturk.ListHITsForQualificationTypeInput) (*request.Request, *mturk.ListHITsForQualificationTypeOutput) + + ListHITsForQualificationType(*mturk.ListHITsForQualificationTypeInput) (*mturk.ListHITsForQualificationTypeOutput, error) + + ListHITsForQualificationTypePages(*mturk.ListHITsForQualificationTypeInput, func(*mturk.ListHITsForQualificationTypeOutput, bool) bool) error + + ListQualificationRequestsRequest(*mturk.ListQualificationRequestsInput) (*request.Request, *mturk.ListQualificationRequestsOutput) + + ListQualificationRequests(*mturk.ListQualificationRequestsInput) (*mturk.ListQualificationRequestsOutput, error) + + ListQualificationRequestsPages(*mturk.ListQualificationRequestsInput, func(*mturk.ListQualificationRequestsOutput, bool) bool) error + + ListQualificationTypesRequest(*mturk.ListQualificationTypesInput) (*request.Request, *mturk.ListQualificationTypesOutput) + + ListQualificationTypes(*mturk.ListQualificationTypesInput) (*mturk.ListQualificationTypesOutput, error) + + ListQualificationTypesPages(*mturk.ListQualificationTypesInput, func(*mturk.ListQualificationTypesOutput, bool) bool) error + + ListReviewPolicyResultsForHITRequest(*mturk.ListReviewPolicyResultsForHITInput) (*request.Request, *mturk.ListReviewPolicyResultsForHITOutput) + + ListReviewPolicyResultsForHIT(*mturk.ListReviewPolicyResultsForHITInput) (*mturk.ListReviewPolicyResultsForHITOutput, error) + + ListReviewPolicyResultsForHITPages(*mturk.ListReviewPolicyResultsForHITInput, func(*mturk.ListReviewPolicyResultsForHITOutput, bool) bool) error + + ListReviewableHITsRequest(*mturk.ListReviewableHITsInput) (*request.Request, *mturk.ListReviewableHITsOutput) + + ListReviewableHITs(*mturk.ListReviewableHITsInput) (*mturk.ListReviewableHITsOutput, error) + + ListReviewableHITsPages(*mturk.ListReviewableHITsInput, func(*mturk.ListReviewableHITsOutput, bool) bool) error + + ListWorkerBlocksRequest(*mturk.ListWorkerBlocksInput) (*request.Request, *mturk.ListWorkerBlocksOutput) + + ListWorkerBlocks(*mturk.ListWorkerBlocksInput) (*mturk.ListWorkerBlocksOutput, error) + + ListWorkerBlocksPages(*mturk.ListWorkerBlocksInput, func(*mturk.ListWorkerBlocksOutput, bool) bool) error + + ListWorkersWithQualificationTypeRequest(*mturk.ListWorkersWithQualificationTypeInput) (*request.Request, *mturk.ListWorkersWithQualificationTypeOutput) + + ListWorkersWithQualificationType(*mturk.ListWorkersWithQualificationTypeInput) (*mturk.ListWorkersWithQualificationTypeOutput, error) + + ListWorkersWithQualificationTypePages(*mturk.ListWorkersWithQualificationTypeInput, func(*mturk.ListWorkersWithQualificationTypeOutput, bool) bool) error + + NotifyWorkersRequest(*mturk.NotifyWorkersInput) (*request.Request, *mturk.NotifyWorkersOutput) + + NotifyWorkers(*mturk.NotifyWorkersInput) (*mturk.NotifyWorkersOutput, error) + + RejectAssignmentRequest(*mturk.RejectAssignmentInput) (*request.Request, *mturk.RejectAssignmentOutput) + + RejectAssignment(*mturk.RejectAssignmentInput) (*mturk.RejectAssignmentOutput, error) + + RejectQualificationRequestRequest(*mturk.RejectQualificationRequestInput) (*request.Request, *mturk.RejectQualificationRequestOutput) + + RejectQualificationRequest(*mturk.RejectQualificationRequestInput) (*mturk.RejectQualificationRequestOutput, error) + + SendBonusRequest(*mturk.SendBonusInput) (*request.Request, *mturk.SendBonusOutput) + + SendBonus(*mturk.SendBonusInput) (*mturk.SendBonusOutput, error) + + SendTestEventNotificationRequest(*mturk.SendTestEventNotificationInput) (*request.Request, *mturk.SendTestEventNotificationOutput) + + SendTestEventNotification(*mturk.SendTestEventNotificationInput) (*mturk.SendTestEventNotificationOutput, error) + + UpdateExpirationForHITRequest(*mturk.UpdateExpirationForHITInput) (*request.Request, *mturk.UpdateExpirationForHITOutput) + + UpdateExpirationForHIT(*mturk.UpdateExpirationForHITInput) (*mturk.UpdateExpirationForHITOutput, error) + + UpdateHITReviewStatusRequest(*mturk.UpdateHITReviewStatusInput) (*request.Request, *mturk.UpdateHITReviewStatusOutput) + + UpdateHITReviewStatus(*mturk.UpdateHITReviewStatusInput) (*mturk.UpdateHITReviewStatusOutput, error) + + UpdateHITTypeOfHITRequest(*mturk.UpdateHITTypeOfHITInput) (*request.Request, *mturk.UpdateHITTypeOfHITOutput) + + UpdateHITTypeOfHIT(*mturk.UpdateHITTypeOfHITInput) (*mturk.UpdateHITTypeOfHITOutput, error) + + UpdateNotificationSettingsRequest(*mturk.UpdateNotificationSettingsInput) (*request.Request, *mturk.UpdateNotificationSettingsOutput) + + UpdateNotificationSettings(*mturk.UpdateNotificationSettingsInput) (*mturk.UpdateNotificationSettingsOutput, error) + + UpdateQualificationTypeRequest(*mturk.UpdateQualificationTypeInput) (*request.Request, *mturk.UpdateQualificationTypeOutput) + + UpdateQualificationType(*mturk.UpdateQualificationTypeInput) (*mturk.UpdateQualificationTypeOutput, error) +} + +var _ MTurkAPI = (*mturk.MTurk)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/mturk/service.go b/vendor/github.com/aws/aws-sdk-go/service/mturk/service.go new file mode 100644 index 000000000..5b8e7bd91 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/mturk/service.go @@ -0,0 +1,92 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package mturk + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" +) + +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17 +type MTurk struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "mturk-requester" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the MTurk client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a MTurk client from just a session. +// svc := mturk.New(mySession) +// +// // Create a MTurk client with additional configuration +// svc := mturk.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *MTurk { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *MTurk { + svc := &MTurk{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2017-01-17", + JSONVersion: "1.1", + TargetPrefix: "MTurkRequesterServiceV20170117", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a MTurk operation and runs any +// custom request initialization. +func (c *MTurk) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworks/api.go b/vendor/github.com/aws/aws-sdk-go/service/opsworks/api.go index 507f05eec..d0c09d284 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/opsworks/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworks/api.go @@ -38,6 +38,7 @@ const opAssignInstance = "AssignInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AssignInstance func (c *OpsWorks) AssignInstanceRequest(input *AssignInstanceInput) (req *request.Request, output *AssignInstanceOutput) { op := &request.Operation{ Name: opAssignInstance, @@ -49,11 +50,10 @@ func (c *OpsWorks) AssignInstanceRequest(input *AssignInstanceInput) (req *reque input = &AssignInstanceInput{} } + output = &AssignInstanceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AssignInstanceOutput{} - req.Data = output return } @@ -61,16 +61,17 @@ func (c *OpsWorks) AssignInstanceRequest(input *AssignInstanceInput) (req *reque // // Assign a registered instance to a layer. // -// You can assign registered on-premises instances to any layer type. +// * You can assign registered on-premises instances to any layer type. // -// You can assign registered Amazon EC2 instances only to custom layers. +// * You can assign registered Amazon EC2 instances only to custom layers. // -// You cannot use this action with instances that were created with AWS OpsWorks. +// * You cannot use this action with instances that were created with AWS +// OpsWorks. // -// Required Permissions: To use this action, an AWS Identity and Access -// Management (IAM) user must have a Manage permissions level for the stack -// or an attached policy that explicitly grants permissions. For more information -// on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an AWS Identity and Access Management +// (IAM) user must have a Manage permissions level for the stack or an attached +// policy that explicitly grants permissions. For more information on user permissions, +// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -80,12 +81,13 @@ func (c *OpsWorks) AssignInstanceRequest(input *AssignInstanceInput) (req *reque // API operation AssignInstance for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AssignInstance func (c *OpsWorks) AssignInstance(input *AssignInstanceInput) (*AssignInstanceOutput, error) { req, out := c.AssignInstanceRequest(input) err := req.Send() @@ -118,6 +120,7 @@ const opAssignVolume = "AssignVolume" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AssignVolume func (c *OpsWorks) AssignVolumeRequest(input *AssignVolumeInput) (req *request.Request, output *AssignVolumeOutput) { op := &request.Operation{ Name: opAssignVolume, @@ -129,11 +132,10 @@ func (c *OpsWorks) AssignVolumeRequest(input *AssignVolumeInput) (req *request.R input = &AssignVolumeInput{} } + output = &AssignVolumeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AssignVolumeOutput{} - req.Data = output return } @@ -145,7 +147,7 @@ func (c *OpsWorks) AssignVolumeRequest(input *AssignVolumeInput) (req *request.R // point before calling AssignVolume. For more information, see Resource Management // (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -158,12 +160,13 @@ func (c *OpsWorks) AssignVolumeRequest(input *AssignVolumeInput) (req *request.R // API operation AssignVolume for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AssignVolume func (c *OpsWorks) AssignVolume(input *AssignVolumeInput) (*AssignVolumeOutput, error) { req, out := c.AssignVolumeRequest(input) err := req.Send() @@ -196,6 +199,7 @@ const opAssociateElasticIp = "AssociateElasticIp" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AssociateElasticIp func (c *OpsWorks) AssociateElasticIpRequest(input *AssociateElasticIpInput) (req *request.Request, output *AssociateElasticIpOutput) { op := &request.Operation{ Name: opAssociateElasticIp, @@ -207,11 +211,10 @@ func (c *OpsWorks) AssociateElasticIpRequest(input *AssociateElasticIpInput) (re input = &AssociateElasticIpInput{} } + output = &AssociateElasticIpOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AssociateElasticIpOutput{} - req.Data = output return } @@ -221,7 +224,7 @@ func (c *OpsWorks) AssociateElasticIpRequest(input *AssociateElasticIpInput) (re // instance. The address must first be registered with the stack by calling // RegisterElasticIp. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -234,12 +237,13 @@ func (c *OpsWorks) AssociateElasticIpRequest(input *AssociateElasticIpInput) (re // API operation AssociateElasticIp for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AssociateElasticIp func (c *OpsWorks) AssociateElasticIp(input *AssociateElasticIpInput) (*AssociateElasticIpOutput, error) { req, out := c.AssociateElasticIpRequest(input) err := req.Send() @@ -272,6 +276,7 @@ const opAttachElasticLoadBalancer = "AttachElasticLoadBalancer" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AttachElasticLoadBalancer func (c *OpsWorks) AttachElasticLoadBalancerRequest(input *AttachElasticLoadBalancerInput) (req *request.Request, output *AttachElasticLoadBalancerOutput) { op := &request.Operation{ Name: opAttachElasticLoadBalancer, @@ -283,11 +288,10 @@ func (c *OpsWorks) AttachElasticLoadBalancerRequest(input *AttachElasticLoadBala input = &AttachElasticLoadBalancerInput{} } + output = &AttachElasticLoadBalancerOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AttachElasticLoadBalancerOutput{} - req.Data = output return } @@ -296,11 +300,11 @@ func (c *OpsWorks) AttachElasticLoadBalancerRequest(input *AttachElasticLoadBala // Attaches an Elastic Load Balancing load balancer to a specified layer. For // more information, see Elastic Load Balancing (http://docs.aws.amazon.com/opsworks/latest/userguide/load-balancer-elb.html). // -// You must create the Elastic Load Balancing instance separately, by using +// You must create the Elastic Load Balancing instance separately, by using // the Elastic Load Balancing console, API, or CLI. For more information, see // Elastic Load Balancing Developer Guide (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/Welcome.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -313,12 +317,13 @@ func (c *OpsWorks) AttachElasticLoadBalancerRequest(input *AttachElasticLoadBala // API operation AttachElasticLoadBalancer for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AttachElasticLoadBalancer func (c *OpsWorks) AttachElasticLoadBalancer(input *AttachElasticLoadBalancerInput) (*AttachElasticLoadBalancerOutput, error) { req, out := c.AttachElasticLoadBalancerRequest(input) err := req.Send() @@ -351,6 +356,7 @@ const opCloneStack = "CloneStack" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CloneStack func (c *OpsWorks) CloneStackRequest(input *CloneStackInput) (req *request.Request, output *CloneStackOutput) { op := &request.Operation{ Name: opCloneStack, @@ -362,9 +368,8 @@ func (c *OpsWorks) CloneStackRequest(input *CloneStackInput) (req *request.Reque input = &CloneStackInput{} } - req = c.newRequest(op, input, output) output = &CloneStackOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -374,7 +379,7 @@ func (c *OpsWorks) CloneStackRequest(input *CloneStackInput) (req *request.Reque // (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-cloning.html). // By default, all parameters are set to the values used by the parent stack. // -// Required Permissions: To use this action, an IAM user must have an attached +// Required Permissions: To use this action, an IAM user must have an attached // policy that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // @@ -386,12 +391,13 @@ func (c *OpsWorks) CloneStackRequest(input *CloneStackInput) (req *request.Reque // API operation CloneStack for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CloneStack func (c *OpsWorks) CloneStack(input *CloneStackInput) (*CloneStackOutput, error) { req, out := c.CloneStackRequest(input) err := req.Send() @@ -424,6 +430,7 @@ const opCreateApp = "CreateApp" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateApp func (c *OpsWorks) CreateAppRequest(input *CreateAppInput) (req *request.Request, output *CreateAppOutput) { op := &request.Operation{ Name: opCreateApp, @@ -435,9 +442,8 @@ func (c *OpsWorks) CreateAppRequest(input *CreateAppInput) (req *request.Request input = &CreateAppInput{} } - req = c.newRequest(op, input, output) output = &CreateAppOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -446,7 +452,7 @@ func (c *OpsWorks) CreateAppRequest(input *CreateAppInput) (req *request.Request // Creates an app for a specified stack. For more information, see Creating // Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -459,12 +465,13 @@ func (c *OpsWorks) CreateAppRequest(input *CreateAppInput) (req *request.Request // API operation CreateApp for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateApp func (c *OpsWorks) CreateApp(input *CreateAppInput) (*CreateAppOutput, error) { req, out := c.CreateAppRequest(input) err := req.Send() @@ -497,6 +504,7 @@ const opCreateDeployment = "CreateDeployment" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateDeployment func (c *OpsWorks) CreateDeploymentRequest(input *CreateDeploymentInput) (req *request.Request, output *CreateDeploymentOutput) { op := &request.Operation{ Name: opCreateDeployment, @@ -508,9 +516,8 @@ func (c *OpsWorks) CreateDeploymentRequest(input *CreateDeploymentInput) (req *r input = &CreateDeploymentInput{} } - req = c.newRequest(op, input, output) output = &CreateDeploymentOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -520,7 +527,7 @@ func (c *OpsWorks) CreateDeploymentRequest(input *CreateDeploymentInput) (req *r // (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-deploying.html) // and Run Stack Commands (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-commands.html). // -// Required Permissions: To use this action, an IAM user must have a Deploy +// Required Permissions: To use this action, an IAM user must have a Deploy // or Manage permissions level for the stack, or an attached policy that explicitly // grants permissions. For more information on user permissions, see Managing // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -533,12 +540,13 @@ func (c *OpsWorks) CreateDeploymentRequest(input *CreateDeploymentInput) (req *r // API operation CreateDeployment for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateDeployment func (c *OpsWorks) CreateDeployment(input *CreateDeploymentInput) (*CreateDeploymentOutput, error) { req, out := c.CreateDeploymentRequest(input) err := req.Send() @@ -571,6 +579,7 @@ const opCreateInstance = "CreateInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateInstance func (c *OpsWorks) CreateInstanceRequest(input *CreateInstanceInput) (req *request.Request, output *CreateInstanceOutput) { op := &request.Operation{ Name: opCreateInstance, @@ -582,9 +591,8 @@ func (c *OpsWorks) CreateInstanceRequest(input *CreateInstanceInput) (req *reque input = &CreateInstanceInput{} } - req = c.newRequest(op, input, output) output = &CreateInstanceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -593,7 +601,7 @@ func (c *OpsWorks) CreateInstanceRequest(input *CreateInstanceInput) (req *reque // Creates an instance in a specified stack. For more information, see Adding // an Instance to a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -606,12 +614,13 @@ func (c *OpsWorks) CreateInstanceRequest(input *CreateInstanceInput) (req *reque // API operation CreateInstance for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateInstance func (c *OpsWorks) CreateInstance(input *CreateInstanceInput) (*CreateInstanceOutput, error) { req, out := c.CreateInstanceRequest(input) err := req.Send() @@ -644,6 +653,7 @@ const opCreateLayer = "CreateLayer" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateLayer func (c *OpsWorks) CreateLayerRequest(input *CreateLayerInput) (req *request.Request, output *CreateLayerOutput) { op := &request.Operation{ Name: opCreateLayer, @@ -655,9 +665,8 @@ func (c *OpsWorks) CreateLayerRequest(input *CreateLayerInput) (req *request.Req input = &CreateLayerInput{} } - req = c.newRequest(op, input, output) output = &CreateLayerOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -665,14 +674,14 @@ func (c *OpsWorks) CreateLayerRequest(input *CreateLayerInput) (req *request.Req // // Creates a layer. For more information, see How to Create a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-create.html). // -// You should use CreateLayer for noncustom layer types such as PHP App Server +// You should use CreateLayer for noncustom layer types such as PHP App Server // only if the stack does not have an existing layer of that type. A stack can // have at most one instance of each noncustom layer; if you attempt to create // a second instance, CreateLayer fails. A stack can have an arbitrary number // of custom layers, so you can call CreateLayer as many times as you like for // that layer type. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -685,12 +694,13 @@ func (c *OpsWorks) CreateLayerRequest(input *CreateLayerInput) (req *request.Req // API operation CreateLayer for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateLayer func (c *OpsWorks) CreateLayer(input *CreateLayerInput) (*CreateLayerOutput, error) { req, out := c.CreateLayerRequest(input) err := req.Send() @@ -723,6 +733,7 @@ const opCreateStack = "CreateStack" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateStack func (c *OpsWorks) CreateStackRequest(input *CreateStackInput) (req *request.Request, output *CreateStackOutput) { op := &request.Operation{ Name: opCreateStack, @@ -734,9 +745,8 @@ func (c *OpsWorks) CreateStackRequest(input *CreateStackInput) (req *request.Req input = &CreateStackInput{} } - req = c.newRequest(op, input, output) output = &CreateStackOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -744,7 +754,7 @@ func (c *OpsWorks) CreateStackRequest(input *CreateStackInput) (req *request.Req // // Creates a new stack. For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-edit.html). // -// Required Permissions: To use this action, an IAM user must have an attached +// Required Permissions: To use this action, an IAM user must have an attached // policy that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // @@ -756,9 +766,10 @@ func (c *OpsWorks) CreateStackRequest(input *CreateStackInput) (req *request.Req // API operation CreateStack for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateStack func (c *OpsWorks) CreateStack(input *CreateStackInput) (*CreateStackOutput, error) { req, out := c.CreateStackRequest(input) err := req.Send() @@ -791,6 +802,7 @@ const opCreateUserProfile = "CreateUserProfile" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateUserProfile func (c *OpsWorks) CreateUserProfileRequest(input *CreateUserProfileInput) (req *request.Request, output *CreateUserProfileOutput) { op := &request.Operation{ Name: opCreateUserProfile, @@ -802,9 +814,8 @@ func (c *OpsWorks) CreateUserProfileRequest(input *CreateUserProfileInput) (req input = &CreateUserProfileInput{} } - req = c.newRequest(op, input, output) output = &CreateUserProfileOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -812,7 +823,7 @@ func (c *OpsWorks) CreateUserProfileRequest(input *CreateUserProfileInput) (req // // Creates a new user profile. // -// Required Permissions: To use this action, an IAM user must have an attached +// Required Permissions: To use this action, an IAM user must have an attached // policy that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // @@ -824,9 +835,10 @@ func (c *OpsWorks) CreateUserProfileRequest(input *CreateUserProfileInput) (req // API operation CreateUserProfile for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateUserProfile func (c *OpsWorks) CreateUserProfile(input *CreateUserProfileInput) (*CreateUserProfileOutput, error) { req, out := c.CreateUserProfileRequest(input) err := req.Send() @@ -859,6 +871,7 @@ const opDeleteApp = "DeleteApp" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteApp func (c *OpsWorks) DeleteAppRequest(input *DeleteAppInput) (req *request.Request, output *DeleteAppOutput) { op := &request.Operation{ Name: opDeleteApp, @@ -870,11 +883,10 @@ func (c *OpsWorks) DeleteAppRequest(input *DeleteAppInput) (req *request.Request input = &DeleteAppInput{} } + output = &DeleteAppOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAppOutput{} - req.Data = output return } @@ -882,7 +894,7 @@ func (c *OpsWorks) DeleteAppRequest(input *DeleteAppInput) (req *request.Request // // Deletes a specified app. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -895,12 +907,13 @@ func (c *OpsWorks) DeleteAppRequest(input *DeleteAppInput) (req *request.Request // API operation DeleteApp for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteApp func (c *OpsWorks) DeleteApp(input *DeleteAppInput) (*DeleteAppOutput, error) { req, out := c.DeleteAppRequest(input) err := req.Send() @@ -933,6 +946,7 @@ const opDeleteInstance = "DeleteInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteInstance func (c *OpsWorks) DeleteInstanceRequest(input *DeleteInstanceInput) (req *request.Request, output *DeleteInstanceOutput) { op := &request.Operation{ Name: opDeleteInstance, @@ -944,11 +958,10 @@ func (c *OpsWorks) DeleteInstanceRequest(input *DeleteInstanceInput) (req *reque input = &DeleteInstanceInput{} } + output = &DeleteInstanceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteInstanceOutput{} - req.Data = output return } @@ -959,7 +972,7 @@ func (c *OpsWorks) DeleteInstanceRequest(input *DeleteInstanceInput) (req *reque // // For more information, see Deleting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-delete.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -972,12 +985,13 @@ func (c *OpsWorks) DeleteInstanceRequest(input *DeleteInstanceInput) (req *reque // API operation DeleteInstance for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteInstance func (c *OpsWorks) DeleteInstance(input *DeleteInstanceInput) (*DeleteInstanceOutput, error) { req, out := c.DeleteInstanceRequest(input) err := req.Send() @@ -1010,6 +1024,7 @@ const opDeleteLayer = "DeleteLayer" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteLayer func (c *OpsWorks) DeleteLayerRequest(input *DeleteLayerInput) (req *request.Request, output *DeleteLayerOutput) { op := &request.Operation{ Name: opDeleteLayer, @@ -1021,11 +1036,10 @@ func (c *OpsWorks) DeleteLayerRequest(input *DeleteLayerInput) (req *request.Req input = &DeleteLayerInput{} } + output = &DeleteLayerOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteLayerOutput{} - req.Data = output return } @@ -1035,7 +1049,7 @@ func (c *OpsWorks) DeleteLayerRequest(input *DeleteLayerInput) (req *request.Req // instances or unassign registered instances. For more information, see How // to Delete a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-delete.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -1048,12 +1062,13 @@ func (c *OpsWorks) DeleteLayerRequest(input *DeleteLayerInput) (req *request.Req // API operation DeleteLayer for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteLayer func (c *OpsWorks) DeleteLayer(input *DeleteLayerInput) (*DeleteLayerOutput, error) { req, out := c.DeleteLayerRequest(input) err := req.Send() @@ -1086,6 +1101,7 @@ const opDeleteStack = "DeleteStack" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteStack func (c *OpsWorks) DeleteStackRequest(input *DeleteStackInput) (req *request.Request, output *DeleteStackOutput) { op := &request.Operation{ Name: opDeleteStack, @@ -1097,11 +1113,10 @@ func (c *OpsWorks) DeleteStackRequest(input *DeleteStackInput) (req *request.Req input = &DeleteStackInput{} } + output = &DeleteStackOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteStackOutput{} - req.Data = output return } @@ -1111,7 +1126,7 @@ func (c *OpsWorks) DeleteStackRequest(input *DeleteStackInput) (req *request.Req // apps or deregister registered instances. For more information, see Shut Down // a Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-shutting.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -1124,12 +1139,13 @@ func (c *OpsWorks) DeleteStackRequest(input *DeleteStackInput) (req *request.Req // API operation DeleteStack for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteStack func (c *OpsWorks) DeleteStack(input *DeleteStackInput) (*DeleteStackOutput, error) { req, out := c.DeleteStackRequest(input) err := req.Send() @@ -1162,6 +1178,7 @@ const opDeleteUserProfile = "DeleteUserProfile" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteUserProfile func (c *OpsWorks) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req *request.Request, output *DeleteUserProfileOutput) { op := &request.Operation{ Name: opDeleteUserProfile, @@ -1173,11 +1190,10 @@ func (c *OpsWorks) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req input = &DeleteUserProfileInput{} } + output = &DeleteUserProfileOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteUserProfileOutput{} - req.Data = output return } @@ -1185,7 +1201,7 @@ func (c *OpsWorks) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req // // Deletes a user profile. // -// Required Permissions: To use this action, an IAM user must have an attached +// Required Permissions: To use this action, an IAM user must have an attached // policy that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // @@ -1197,12 +1213,13 @@ func (c *OpsWorks) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req // API operation DeleteUserProfile for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteUserProfile func (c *OpsWorks) DeleteUserProfile(input *DeleteUserProfileInput) (*DeleteUserProfileOutput, error) { req, out := c.DeleteUserProfileRequest(input) err := req.Send() @@ -1235,6 +1252,7 @@ const opDeregisterEcsCluster = "DeregisterEcsCluster" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterEcsCluster func (c *OpsWorks) DeregisterEcsClusterRequest(input *DeregisterEcsClusterInput) (req *request.Request, output *DeregisterEcsClusterOutput) { op := &request.Operation{ Name: opDeregisterEcsCluster, @@ -1246,11 +1264,10 @@ func (c *OpsWorks) DeregisterEcsClusterRequest(input *DeregisterEcsClusterInput) input = &DeregisterEcsClusterInput{} } + output = &DeregisterEcsClusterOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeregisterEcsClusterOutput{} - req.Data = output return } @@ -1259,7 +1276,7 @@ func (c *OpsWorks) DeregisterEcsClusterRequest(input *DeregisterEcsClusterInput) // Deregisters a specified Amazon ECS cluster from a stack. For more information, // see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-ecscluster.html#workinglayers-ecscluster-delete). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack or an attached policy that explicitly grants // permissions. For more information on user permissions, see http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html // (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -1272,12 +1289,13 @@ func (c *OpsWorks) DeregisterEcsClusterRequest(input *DeregisterEcsClusterInput) // API operation DeregisterEcsCluster for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterEcsCluster func (c *OpsWorks) DeregisterEcsCluster(input *DeregisterEcsClusterInput) (*DeregisterEcsClusterOutput, error) { req, out := c.DeregisterEcsClusterRequest(input) err := req.Send() @@ -1310,6 +1328,7 @@ const opDeregisterElasticIp = "DeregisterElasticIp" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterElasticIp func (c *OpsWorks) DeregisterElasticIpRequest(input *DeregisterElasticIpInput) (req *request.Request, output *DeregisterElasticIpOutput) { op := &request.Operation{ Name: opDeregisterElasticIp, @@ -1321,11 +1340,10 @@ func (c *OpsWorks) DeregisterElasticIpRequest(input *DeregisterElasticIpInput) ( input = &DeregisterElasticIpInput{} } + output = &DeregisterElasticIpOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeregisterElasticIpOutput{} - req.Data = output return } @@ -1334,7 +1352,7 @@ func (c *OpsWorks) DeregisterElasticIpRequest(input *DeregisterElasticIpInput) ( // Deregisters a specified Elastic IP address. The address can then be registered // by another stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -1347,12 +1365,13 @@ func (c *OpsWorks) DeregisterElasticIpRequest(input *DeregisterElasticIpInput) ( // API operation DeregisterElasticIp for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterElasticIp func (c *OpsWorks) DeregisterElasticIp(input *DeregisterElasticIpInput) (*DeregisterElasticIpOutput, error) { req, out := c.DeregisterElasticIpRequest(input) err := req.Send() @@ -1385,6 +1404,7 @@ const opDeregisterInstance = "DeregisterInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterInstance func (c *OpsWorks) DeregisterInstanceRequest(input *DeregisterInstanceInput) (req *request.Request, output *DeregisterInstanceOutput) { op := &request.Operation{ Name: opDeregisterInstance, @@ -1396,11 +1416,10 @@ func (c *OpsWorks) DeregisterInstanceRequest(input *DeregisterInstanceInput) (re input = &DeregisterInstanceInput{} } + output = &DeregisterInstanceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeregisterInstanceOutput{} - req.Data = output return } @@ -1410,7 +1429,7 @@ func (c *OpsWorks) DeregisterInstanceRequest(input *DeregisterInstanceInput) (re // the instance from the stack and returns it to your control. This action can // not be used with instances that were created with AWS OpsWorks. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -1423,12 +1442,13 @@ func (c *OpsWorks) DeregisterInstanceRequest(input *DeregisterInstanceInput) (re // API operation DeregisterInstance for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterInstance func (c *OpsWorks) DeregisterInstance(input *DeregisterInstanceInput) (*DeregisterInstanceOutput, error) { req, out := c.DeregisterInstanceRequest(input) err := req.Send() @@ -1461,6 +1481,7 @@ const opDeregisterRdsDbInstance = "DeregisterRdsDbInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterRdsDbInstance func (c *OpsWorks) DeregisterRdsDbInstanceRequest(input *DeregisterRdsDbInstanceInput) (req *request.Request, output *DeregisterRdsDbInstanceOutput) { op := &request.Operation{ Name: opDeregisterRdsDbInstance, @@ -1472,11 +1493,10 @@ func (c *OpsWorks) DeregisterRdsDbInstanceRequest(input *DeregisterRdsDbInstance input = &DeregisterRdsDbInstanceInput{} } + output = &DeregisterRdsDbInstanceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeregisterRdsDbInstanceOutput{} - req.Data = output return } @@ -1484,7 +1504,7 @@ func (c *OpsWorks) DeregisterRdsDbInstanceRequest(input *DeregisterRdsDbInstance // // Deregisters an Amazon RDS instance. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -1497,12 +1517,13 @@ func (c *OpsWorks) DeregisterRdsDbInstanceRequest(input *DeregisterRdsDbInstance // API operation DeregisterRdsDbInstance for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterRdsDbInstance func (c *OpsWorks) DeregisterRdsDbInstance(input *DeregisterRdsDbInstanceInput) (*DeregisterRdsDbInstanceOutput, error) { req, out := c.DeregisterRdsDbInstanceRequest(input) err := req.Send() @@ -1535,6 +1556,7 @@ const opDeregisterVolume = "DeregisterVolume" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterVolume func (c *OpsWorks) DeregisterVolumeRequest(input *DeregisterVolumeInput) (req *request.Request, output *DeregisterVolumeOutput) { op := &request.Operation{ Name: opDeregisterVolume, @@ -1546,11 +1568,10 @@ func (c *OpsWorks) DeregisterVolumeRequest(input *DeregisterVolumeInput) (req *r input = &DeregisterVolumeInput{} } + output = &DeregisterVolumeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeregisterVolumeOutput{} - req.Data = output return } @@ -1559,7 +1580,7 @@ func (c *OpsWorks) DeregisterVolumeRequest(input *DeregisterVolumeInput) (req *r // Deregisters an Amazon EBS volume. The volume can then be registered by another // stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -1572,12 +1593,13 @@ func (c *OpsWorks) DeregisterVolumeRequest(input *DeregisterVolumeInput) (req *r // API operation DeregisterVolume for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterVolume func (c *OpsWorks) DeregisterVolume(input *DeregisterVolumeInput) (*DeregisterVolumeOutput, error) { req, out := c.DeregisterVolumeRequest(input) err := req.Send() @@ -1610,6 +1632,7 @@ const opDescribeAgentVersions = "DescribeAgentVersions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeAgentVersions func (c *OpsWorks) DescribeAgentVersionsRequest(input *DescribeAgentVersionsInput) (req *request.Request, output *DescribeAgentVersionsOutput) { op := &request.Operation{ Name: opDescribeAgentVersions, @@ -1621,9 +1644,8 @@ func (c *OpsWorks) DescribeAgentVersionsRequest(input *DescribeAgentVersionsInpu input = &DescribeAgentVersionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeAgentVersionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1641,12 +1663,13 @@ func (c *OpsWorks) DescribeAgentVersionsRequest(input *DescribeAgentVersionsInpu // API operation DescribeAgentVersions for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeAgentVersions func (c *OpsWorks) DescribeAgentVersions(input *DescribeAgentVersionsInput) (*DescribeAgentVersionsOutput, error) { req, out := c.DescribeAgentVersionsRequest(input) err := req.Send() @@ -1679,6 +1702,7 @@ const opDescribeApps = "DescribeApps" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeApps func (c *OpsWorks) DescribeAppsRequest(input *DescribeAppsInput) (req *request.Request, output *DescribeAppsOutput) { op := &request.Operation{ Name: opDescribeApps, @@ -1690,9 +1714,8 @@ func (c *OpsWorks) DescribeAppsRequest(input *DescribeAppsInput) (req *request.R input = &DescribeAppsInput{} } - req = c.newRequest(op, input, output) output = &DescribeAppsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1700,12 +1723,12 @@ func (c *OpsWorks) DescribeAppsRequest(input *DescribeAppsInput) (req *request.R // // Requests a description of a specified set of apps. // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1715,12 +1738,13 @@ func (c *OpsWorks) DescribeAppsRequest(input *DescribeAppsInput) (req *request.R // API operation DescribeApps for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeApps func (c *OpsWorks) DescribeApps(input *DescribeAppsInput) (*DescribeAppsOutput, error) { req, out := c.DescribeAppsRequest(input) err := req.Send() @@ -1753,6 +1777,7 @@ const opDescribeCommands = "DescribeCommands" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeCommands func (c *OpsWorks) DescribeCommandsRequest(input *DescribeCommandsInput) (req *request.Request, output *DescribeCommandsOutput) { op := &request.Operation{ Name: opDescribeCommands, @@ -1764,9 +1789,8 @@ func (c *OpsWorks) DescribeCommandsRequest(input *DescribeCommandsInput) (req *r input = &DescribeCommandsInput{} } - req = c.newRequest(op, input, output) output = &DescribeCommandsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1774,12 +1798,12 @@ func (c *OpsWorks) DescribeCommandsRequest(input *DescribeCommandsInput) (req *r // // Describes the results of specified commands. // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1789,12 +1813,13 @@ func (c *OpsWorks) DescribeCommandsRequest(input *DescribeCommandsInput) (req *r // API operation DescribeCommands for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeCommands func (c *OpsWorks) DescribeCommands(input *DescribeCommandsInput) (*DescribeCommandsOutput, error) { req, out := c.DescribeCommandsRequest(input) err := req.Send() @@ -1827,6 +1852,7 @@ const opDescribeDeployments = "DescribeDeployments" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeDeployments func (c *OpsWorks) DescribeDeploymentsRequest(input *DescribeDeploymentsInput) (req *request.Request, output *DescribeDeploymentsOutput) { op := &request.Operation{ Name: opDescribeDeployments, @@ -1838,9 +1864,8 @@ func (c *OpsWorks) DescribeDeploymentsRequest(input *DescribeDeploymentsInput) ( input = &DescribeDeploymentsInput{} } - req = c.newRequest(op, input, output) output = &DescribeDeploymentsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1848,12 +1873,12 @@ func (c *OpsWorks) DescribeDeploymentsRequest(input *DescribeDeploymentsInput) ( // // Requests a description of a specified set of deployments. // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1863,12 +1888,13 @@ func (c *OpsWorks) DescribeDeploymentsRequest(input *DescribeDeploymentsInput) ( // API operation DescribeDeployments for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeDeployments func (c *OpsWorks) DescribeDeployments(input *DescribeDeploymentsInput) (*DescribeDeploymentsOutput, error) { req, out := c.DescribeDeploymentsRequest(input) err := req.Send() @@ -1901,6 +1927,7 @@ const opDescribeEcsClusters = "DescribeEcsClusters" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeEcsClusters func (c *OpsWorks) DescribeEcsClustersRequest(input *DescribeEcsClustersInput) (req *request.Request, output *DescribeEcsClustersOutput) { op := &request.Operation{ Name: opDescribeEcsClusters, @@ -1918,9 +1945,8 @@ func (c *OpsWorks) DescribeEcsClustersRequest(input *DescribeEcsClustersInput) ( input = &DescribeEcsClustersInput{} } - req = c.newRequest(op, input, output) output = &DescribeEcsClustersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1931,10 +1957,10 @@ func (c *OpsWorks) DescribeEcsClustersRequest(input *DescribeEcsClustersInput) ( // the response. However, AWS OpsWorks currently supports only one cluster per // layer, so the result set has a maximum of one element. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack or an attached policy that -// explicitly grants permission. For more information on user permissions, see -// Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack or an attached policy that explicitly +// grants permission. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1944,12 +1970,13 @@ func (c *OpsWorks) DescribeEcsClustersRequest(input *DescribeEcsClustersInput) ( // API operation DescribeEcsClusters for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeEcsClusters func (c *OpsWorks) DescribeEcsClusters(input *DescribeEcsClustersInput) (*DescribeEcsClustersOutput, error) { req, out := c.DescribeEcsClustersRequest(input) err := req.Send() @@ -2007,6 +2034,7 @@ const opDescribeElasticIps = "DescribeElasticIps" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeElasticIps func (c *OpsWorks) DescribeElasticIpsRequest(input *DescribeElasticIpsInput) (req *request.Request, output *DescribeElasticIpsOutput) { op := &request.Operation{ Name: opDescribeElasticIps, @@ -2018,9 +2046,8 @@ func (c *OpsWorks) DescribeElasticIpsRequest(input *DescribeElasticIpsInput) (re input = &DescribeElasticIpsInput{} } - req = c.newRequest(op, input, output) output = &DescribeElasticIpsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2028,12 +2055,12 @@ func (c *OpsWorks) DescribeElasticIpsRequest(input *DescribeElasticIpsInput) (re // // Describes Elastic IP addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html). // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2043,12 +2070,13 @@ func (c *OpsWorks) DescribeElasticIpsRequest(input *DescribeElasticIpsInput) (re // API operation DescribeElasticIps for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeElasticIps func (c *OpsWorks) DescribeElasticIps(input *DescribeElasticIpsInput) (*DescribeElasticIpsOutput, error) { req, out := c.DescribeElasticIpsRequest(input) err := req.Send() @@ -2081,6 +2109,7 @@ const opDescribeElasticLoadBalancers = "DescribeElasticLoadBalancers" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeElasticLoadBalancers func (c *OpsWorks) DescribeElasticLoadBalancersRequest(input *DescribeElasticLoadBalancersInput) (req *request.Request, output *DescribeElasticLoadBalancersOutput) { op := &request.Operation{ Name: opDescribeElasticLoadBalancers, @@ -2092,9 +2121,8 @@ func (c *OpsWorks) DescribeElasticLoadBalancersRequest(input *DescribeElasticLoa input = &DescribeElasticLoadBalancersInput{} } - req = c.newRequest(op, input, output) output = &DescribeElasticLoadBalancersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2102,12 +2130,12 @@ func (c *OpsWorks) DescribeElasticLoadBalancersRequest(input *DescribeElasticLoa // // Describes a stack's Elastic Load Balancing instances. // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2117,12 +2145,13 @@ func (c *OpsWorks) DescribeElasticLoadBalancersRequest(input *DescribeElasticLoa // API operation DescribeElasticLoadBalancers for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeElasticLoadBalancers func (c *OpsWorks) DescribeElasticLoadBalancers(input *DescribeElasticLoadBalancersInput) (*DescribeElasticLoadBalancersOutput, error) { req, out := c.DescribeElasticLoadBalancersRequest(input) err := req.Send() @@ -2155,6 +2184,7 @@ const opDescribeInstances = "DescribeInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeInstances func (c *OpsWorks) DescribeInstancesRequest(input *DescribeInstancesInput) (req *request.Request, output *DescribeInstancesOutput) { op := &request.Operation{ Name: opDescribeInstances, @@ -2166,9 +2196,8 @@ func (c *OpsWorks) DescribeInstancesRequest(input *DescribeInstancesInput) (req input = &DescribeInstancesInput{} } - req = c.newRequest(op, input, output) output = &DescribeInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2176,12 +2205,12 @@ func (c *OpsWorks) DescribeInstancesRequest(input *DescribeInstancesInput) (req // // Requests a description of a set of instances. // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2191,12 +2220,13 @@ func (c *OpsWorks) DescribeInstancesRequest(input *DescribeInstancesInput) (req // API operation DescribeInstances for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeInstances func (c *OpsWorks) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error) { req, out := c.DescribeInstancesRequest(input) err := req.Send() @@ -2229,6 +2259,7 @@ const opDescribeLayers = "DescribeLayers" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeLayers func (c *OpsWorks) DescribeLayersRequest(input *DescribeLayersInput) (req *request.Request, output *DescribeLayersOutput) { op := &request.Operation{ Name: opDescribeLayers, @@ -2240,9 +2271,8 @@ func (c *OpsWorks) DescribeLayersRequest(input *DescribeLayersInput) (req *reque input = &DescribeLayersInput{} } - req = c.newRequest(op, input, output) output = &DescribeLayersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2250,12 +2280,12 @@ func (c *OpsWorks) DescribeLayersRequest(input *DescribeLayersInput) (req *reque // // Requests a description of one or more layers in a specified stack. // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2265,12 +2295,13 @@ func (c *OpsWorks) DescribeLayersRequest(input *DescribeLayersInput) (req *reque // API operation DescribeLayers for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeLayers func (c *OpsWorks) DescribeLayers(input *DescribeLayersInput) (*DescribeLayersOutput, error) { req, out := c.DescribeLayersRequest(input) err := req.Send() @@ -2303,6 +2334,7 @@ const opDescribeLoadBasedAutoScaling = "DescribeLoadBasedAutoScaling" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeLoadBasedAutoScaling func (c *OpsWorks) DescribeLoadBasedAutoScalingRequest(input *DescribeLoadBasedAutoScalingInput) (req *request.Request, output *DescribeLoadBasedAutoScalingOutput) { op := &request.Operation{ Name: opDescribeLoadBasedAutoScaling, @@ -2314,9 +2346,8 @@ func (c *OpsWorks) DescribeLoadBasedAutoScalingRequest(input *DescribeLoadBasedA input = &DescribeLoadBasedAutoScalingInput{} } - req = c.newRequest(op, input, output) output = &DescribeLoadBasedAutoScalingOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2324,12 +2355,12 @@ func (c *OpsWorks) DescribeLoadBasedAutoScalingRequest(input *DescribeLoadBasedA // // Describes load-based auto scaling configurations for specified layers. // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2339,12 +2370,13 @@ func (c *OpsWorks) DescribeLoadBasedAutoScalingRequest(input *DescribeLoadBasedA // API operation DescribeLoadBasedAutoScaling for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeLoadBasedAutoScaling func (c *OpsWorks) DescribeLoadBasedAutoScaling(input *DescribeLoadBasedAutoScalingInput) (*DescribeLoadBasedAutoScalingOutput, error) { req, out := c.DescribeLoadBasedAutoScalingRequest(input) err := req.Send() @@ -2377,6 +2409,7 @@ const opDescribeMyUserProfile = "DescribeMyUserProfile" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeMyUserProfile func (c *OpsWorks) DescribeMyUserProfileRequest(input *DescribeMyUserProfileInput) (req *request.Request, output *DescribeMyUserProfileOutput) { op := &request.Operation{ Name: opDescribeMyUserProfile, @@ -2388,9 +2421,8 @@ func (c *OpsWorks) DescribeMyUserProfileRequest(input *DescribeMyUserProfileInpu input = &DescribeMyUserProfileInput{} } - req = c.newRequest(op, input, output) output = &DescribeMyUserProfileOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2398,7 +2430,7 @@ func (c *OpsWorks) DescribeMyUserProfileRequest(input *DescribeMyUserProfileInpu // // Describes a user's SSH information. // -// Required Permissions: To use this action, an IAM user must have self-management +// Required Permissions: To use this action, an IAM user must have self-management // enabled or an attached policy that explicitly grants permissions. For more // information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // @@ -2408,6 +2440,7 @@ func (c *OpsWorks) DescribeMyUserProfileRequest(input *DescribeMyUserProfileInpu // // See the AWS API reference guide for AWS OpsWorks's // API operation DescribeMyUserProfile for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeMyUserProfile func (c *OpsWorks) DescribeMyUserProfile(input *DescribeMyUserProfileInput) (*DescribeMyUserProfileOutput, error) { req, out := c.DescribeMyUserProfileRequest(input) err := req.Send() @@ -2440,6 +2473,7 @@ const opDescribePermissions = "DescribePermissions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribePermissions func (c *OpsWorks) DescribePermissionsRequest(input *DescribePermissionsInput) (req *request.Request, output *DescribePermissionsOutput) { op := &request.Operation{ Name: opDescribePermissions, @@ -2451,9 +2485,8 @@ func (c *OpsWorks) DescribePermissionsRequest(input *DescribePermissionsInput) ( input = &DescribePermissionsInput{} } - req = c.newRequest(op, input, output) output = &DescribePermissionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2461,7 +2494,7 @@ func (c *OpsWorks) DescribePermissionsRequest(input *DescribePermissionsInput) ( // // Describes the permissions for a specified stack. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -2474,12 +2507,13 @@ func (c *OpsWorks) DescribePermissionsRequest(input *DescribePermissionsInput) ( // API operation DescribePermissions for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribePermissions func (c *OpsWorks) DescribePermissions(input *DescribePermissionsInput) (*DescribePermissionsOutput, error) { req, out := c.DescribePermissionsRequest(input) err := req.Send() @@ -2512,6 +2546,7 @@ const opDescribeRaidArrays = "DescribeRaidArrays" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeRaidArrays func (c *OpsWorks) DescribeRaidArraysRequest(input *DescribeRaidArraysInput) (req *request.Request, output *DescribeRaidArraysOutput) { op := &request.Operation{ Name: opDescribeRaidArrays, @@ -2523,9 +2558,8 @@ func (c *OpsWorks) DescribeRaidArraysRequest(input *DescribeRaidArraysInput) (re input = &DescribeRaidArraysInput{} } - req = c.newRequest(op, input, output) output = &DescribeRaidArraysOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2533,12 +2567,12 @@ func (c *OpsWorks) DescribeRaidArraysRequest(input *DescribeRaidArraysInput) (re // // Describe an instance's RAID arrays. // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2548,12 +2582,13 @@ func (c *OpsWorks) DescribeRaidArraysRequest(input *DescribeRaidArraysInput) (re // API operation DescribeRaidArrays for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeRaidArrays func (c *OpsWorks) DescribeRaidArrays(input *DescribeRaidArraysInput) (*DescribeRaidArraysOutput, error) { req, out := c.DescribeRaidArraysRequest(input) err := req.Send() @@ -2586,6 +2621,7 @@ const opDescribeRdsDbInstances = "DescribeRdsDbInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeRdsDbInstances func (c *OpsWorks) DescribeRdsDbInstancesRequest(input *DescribeRdsDbInstancesInput) (req *request.Request, output *DescribeRdsDbInstancesOutput) { op := &request.Operation{ Name: opDescribeRdsDbInstances, @@ -2597,9 +2633,8 @@ func (c *OpsWorks) DescribeRdsDbInstancesRequest(input *DescribeRdsDbInstancesIn input = &DescribeRdsDbInstancesInput{} } - req = c.newRequest(op, input, output) output = &DescribeRdsDbInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2607,10 +2642,10 @@ func (c *OpsWorks) DescribeRdsDbInstancesRequest(input *DescribeRdsDbInstancesIn // // Describes Amazon RDS instances. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2620,12 +2655,13 @@ func (c *OpsWorks) DescribeRdsDbInstancesRequest(input *DescribeRdsDbInstancesIn // API operation DescribeRdsDbInstances for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeRdsDbInstances func (c *OpsWorks) DescribeRdsDbInstances(input *DescribeRdsDbInstancesInput) (*DescribeRdsDbInstancesOutput, error) { req, out := c.DescribeRdsDbInstancesRequest(input) err := req.Send() @@ -2658,6 +2694,7 @@ const opDescribeServiceErrors = "DescribeServiceErrors" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeServiceErrors func (c *OpsWorks) DescribeServiceErrorsRequest(input *DescribeServiceErrorsInput) (req *request.Request, output *DescribeServiceErrorsOutput) { op := &request.Operation{ Name: opDescribeServiceErrors, @@ -2669,9 +2706,8 @@ func (c *OpsWorks) DescribeServiceErrorsRequest(input *DescribeServiceErrorsInpu input = &DescribeServiceErrorsInput{} } - req = c.newRequest(op, input, output) output = &DescribeServiceErrorsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2679,10 +2715,10 @@ func (c *OpsWorks) DescribeServiceErrorsRequest(input *DescribeServiceErrorsInpu // // Describes AWS OpsWorks service errors. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2692,12 +2728,13 @@ func (c *OpsWorks) DescribeServiceErrorsRequest(input *DescribeServiceErrorsInpu // API operation DescribeServiceErrors for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeServiceErrors func (c *OpsWorks) DescribeServiceErrors(input *DescribeServiceErrorsInput) (*DescribeServiceErrorsOutput, error) { req, out := c.DescribeServiceErrorsRequest(input) err := req.Send() @@ -2730,6 +2767,7 @@ const opDescribeStackProvisioningParameters = "DescribeStackProvisioningParamete // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeStackProvisioningParameters func (c *OpsWorks) DescribeStackProvisioningParametersRequest(input *DescribeStackProvisioningParametersInput) (req *request.Request, output *DescribeStackProvisioningParametersOutput) { op := &request.Operation{ Name: opDescribeStackProvisioningParameters, @@ -2741,9 +2779,8 @@ func (c *OpsWorks) DescribeStackProvisioningParametersRequest(input *DescribeSta input = &DescribeStackProvisioningParametersInput{} } - req = c.newRequest(op, input, output) output = &DescribeStackProvisioningParametersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2751,10 +2788,10 @@ func (c *OpsWorks) DescribeStackProvisioningParametersRequest(input *DescribeSta // // Requests a description of a stack's provisioning parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack or an attached policy that -// explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2764,12 +2801,13 @@ func (c *OpsWorks) DescribeStackProvisioningParametersRequest(input *DescribeSta // API operation DescribeStackProvisioningParameters for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeStackProvisioningParameters func (c *OpsWorks) DescribeStackProvisioningParameters(input *DescribeStackProvisioningParametersInput) (*DescribeStackProvisioningParametersOutput, error) { req, out := c.DescribeStackProvisioningParametersRequest(input) err := req.Send() @@ -2802,6 +2840,7 @@ const opDescribeStackSummary = "DescribeStackSummary" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeStackSummary func (c *OpsWorks) DescribeStackSummaryRequest(input *DescribeStackSummaryInput) (req *request.Request, output *DescribeStackSummaryOutput) { op := &request.Operation{ Name: opDescribeStackSummary, @@ -2813,9 +2852,8 @@ func (c *OpsWorks) DescribeStackSummaryRequest(input *DescribeStackSummaryInput) input = &DescribeStackSummaryInput{} } - req = c.newRequest(op, input, output) output = &DescribeStackSummaryOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2824,10 +2862,10 @@ func (c *OpsWorks) DescribeStackSummaryRequest(input *DescribeStackSummaryInput) // Describes the number of layers and apps in a specified stack, and the number // of instances in each state, such as running_setup or online. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2837,12 +2875,13 @@ func (c *OpsWorks) DescribeStackSummaryRequest(input *DescribeStackSummaryInput) // API operation DescribeStackSummary for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeStackSummary func (c *OpsWorks) DescribeStackSummary(input *DescribeStackSummaryInput) (*DescribeStackSummaryOutput, error) { req, out := c.DescribeStackSummaryRequest(input) err := req.Send() @@ -2875,6 +2914,7 @@ const opDescribeStacks = "DescribeStacks" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeStacks func (c *OpsWorks) DescribeStacksRequest(input *DescribeStacksInput) (req *request.Request, output *DescribeStacksOutput) { op := &request.Operation{ Name: opDescribeStacks, @@ -2886,9 +2926,8 @@ func (c *OpsWorks) DescribeStacksRequest(input *DescribeStacksInput) (req *reque input = &DescribeStacksInput{} } - req = c.newRequest(op, input, output) output = &DescribeStacksOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2896,10 +2935,10 @@ func (c *OpsWorks) DescribeStacksRequest(input *DescribeStacksInput) (req *reque // // Requests a description of one or more stacks. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2909,12 +2948,13 @@ func (c *OpsWorks) DescribeStacksRequest(input *DescribeStacksInput) (req *reque // API operation DescribeStacks for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeStacks func (c *OpsWorks) DescribeStacks(input *DescribeStacksInput) (*DescribeStacksOutput, error) { req, out := c.DescribeStacksRequest(input) err := req.Send() @@ -2947,6 +2987,7 @@ const opDescribeTimeBasedAutoScaling = "DescribeTimeBasedAutoScaling" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeTimeBasedAutoScaling func (c *OpsWorks) DescribeTimeBasedAutoScalingRequest(input *DescribeTimeBasedAutoScalingInput) (req *request.Request, output *DescribeTimeBasedAutoScalingOutput) { op := &request.Operation{ Name: opDescribeTimeBasedAutoScaling, @@ -2958,9 +2999,8 @@ func (c *OpsWorks) DescribeTimeBasedAutoScalingRequest(input *DescribeTimeBasedA input = &DescribeTimeBasedAutoScalingInput{} } - req = c.newRequest(op, input, output) output = &DescribeTimeBasedAutoScalingOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2968,12 +3008,12 @@ func (c *OpsWorks) DescribeTimeBasedAutoScalingRequest(input *DescribeTimeBasedA // // Describes time-based auto scaling configurations for specified instances. // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2983,12 +3023,13 @@ func (c *OpsWorks) DescribeTimeBasedAutoScalingRequest(input *DescribeTimeBasedA // API operation DescribeTimeBasedAutoScaling for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeTimeBasedAutoScaling func (c *OpsWorks) DescribeTimeBasedAutoScaling(input *DescribeTimeBasedAutoScalingInput) (*DescribeTimeBasedAutoScalingOutput, error) { req, out := c.DescribeTimeBasedAutoScalingRequest(input) err := req.Send() @@ -3021,6 +3062,7 @@ const opDescribeUserProfiles = "DescribeUserProfiles" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeUserProfiles func (c *OpsWorks) DescribeUserProfilesRequest(input *DescribeUserProfilesInput) (req *request.Request, output *DescribeUserProfilesOutput) { op := &request.Operation{ Name: opDescribeUserProfiles, @@ -3032,9 +3074,8 @@ func (c *OpsWorks) DescribeUserProfilesRequest(input *DescribeUserProfilesInput) input = &DescribeUserProfilesInput{} } - req = c.newRequest(op, input, output) output = &DescribeUserProfilesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3042,7 +3083,7 @@ func (c *OpsWorks) DescribeUserProfilesRequest(input *DescribeUserProfilesInput) // // Describe specified users. // -// Required Permissions: To use this action, an IAM user must have an attached +// Required Permissions: To use this action, an IAM user must have an attached // policy that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // @@ -3054,12 +3095,13 @@ func (c *OpsWorks) DescribeUserProfilesRequest(input *DescribeUserProfilesInput) // API operation DescribeUserProfiles for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeUserProfiles func (c *OpsWorks) DescribeUserProfiles(input *DescribeUserProfilesInput) (*DescribeUserProfilesOutput, error) { req, out := c.DescribeUserProfilesRequest(input) err := req.Send() @@ -3092,6 +3134,7 @@ const opDescribeVolumes = "DescribeVolumes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeVolumes func (c *OpsWorks) DescribeVolumesRequest(input *DescribeVolumesInput) (req *request.Request, output *DescribeVolumesOutput) { op := &request.Operation{ Name: opDescribeVolumes, @@ -3103,9 +3146,8 @@ func (c *OpsWorks) DescribeVolumesRequest(input *DescribeVolumesInput) (req *req input = &DescribeVolumesInput{} } - req = c.newRequest(op, input, output) output = &DescribeVolumesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3113,12 +3155,12 @@ func (c *OpsWorks) DescribeVolumesRequest(input *DescribeVolumesInput) (req *req // // Describes an instance's Amazon EBS volumes. // -// You must specify at least one of the parameters. +// You must specify at least one of the parameters. // -// Required Permissions: To use this action, an IAM user must have a Show, -// Deploy, or Manage permissions level for the stack, or an attached policy -// that explicitly grants permissions. For more information on user permissions, -// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// Required Permissions: To use this action, an IAM user must have a Show, Deploy, +// or Manage permissions level for the stack, or an attached policy that explicitly +// grants permissions. For more information on user permissions, see Managing +// User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3128,12 +3170,13 @@ func (c *OpsWorks) DescribeVolumesRequest(input *DescribeVolumesInput) (req *req // API operation DescribeVolumes for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeVolumes func (c *OpsWorks) DescribeVolumes(input *DescribeVolumesInput) (*DescribeVolumesOutput, error) { req, out := c.DescribeVolumesRequest(input) err := req.Send() @@ -3166,6 +3209,7 @@ const opDetachElasticLoadBalancer = "DetachElasticLoadBalancer" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DetachElasticLoadBalancer func (c *OpsWorks) DetachElasticLoadBalancerRequest(input *DetachElasticLoadBalancerInput) (req *request.Request, output *DetachElasticLoadBalancerOutput) { op := &request.Operation{ Name: opDetachElasticLoadBalancer, @@ -3177,11 +3221,10 @@ func (c *OpsWorks) DetachElasticLoadBalancerRequest(input *DetachElasticLoadBala input = &DetachElasticLoadBalancerInput{} } + output = &DetachElasticLoadBalancerOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DetachElasticLoadBalancerOutput{} - req.Data = output return } @@ -3189,7 +3232,7 @@ func (c *OpsWorks) DetachElasticLoadBalancerRequest(input *DetachElasticLoadBala // // Detaches a specified Elastic Load Balancing instance from its layer. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -3202,9 +3245,10 @@ func (c *OpsWorks) DetachElasticLoadBalancerRequest(input *DetachElasticLoadBala // API operation DetachElasticLoadBalancer for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DetachElasticLoadBalancer func (c *OpsWorks) DetachElasticLoadBalancer(input *DetachElasticLoadBalancerInput) (*DetachElasticLoadBalancerOutput, error) { req, out := c.DetachElasticLoadBalancerRequest(input) err := req.Send() @@ -3237,6 +3281,7 @@ const opDisassociateElasticIp = "DisassociateElasticIp" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DisassociateElasticIp func (c *OpsWorks) DisassociateElasticIpRequest(input *DisassociateElasticIpInput) (req *request.Request, output *DisassociateElasticIpOutput) { op := &request.Operation{ Name: opDisassociateElasticIp, @@ -3248,11 +3293,10 @@ func (c *OpsWorks) DisassociateElasticIpRequest(input *DisassociateElasticIpInpu input = &DisassociateElasticIpInput{} } + output = &DisassociateElasticIpOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DisassociateElasticIpOutput{} - req.Data = output return } @@ -3262,7 +3306,7 @@ func (c *OpsWorks) DisassociateElasticIpRequest(input *DisassociateElasticIpInpu // registered with the stack. For more information, see Resource Management // (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -3275,12 +3319,13 @@ func (c *OpsWorks) DisassociateElasticIpRequest(input *DisassociateElasticIpInpu // API operation DisassociateElasticIp for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DisassociateElasticIp func (c *OpsWorks) DisassociateElasticIp(input *DisassociateElasticIpInput) (*DisassociateElasticIpOutput, error) { req, out := c.DisassociateElasticIpRequest(input) err := req.Send() @@ -3313,6 +3358,7 @@ const opGetHostnameSuggestion = "GetHostnameSuggestion" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/GetHostnameSuggestion func (c *OpsWorks) GetHostnameSuggestionRequest(input *GetHostnameSuggestionInput) (req *request.Request, output *GetHostnameSuggestionOutput) { op := &request.Operation{ Name: opGetHostnameSuggestion, @@ -3324,9 +3370,8 @@ func (c *OpsWorks) GetHostnameSuggestionRequest(input *GetHostnameSuggestionInpu input = &GetHostnameSuggestionInput{} } - req = c.newRequest(op, input, output) output = &GetHostnameSuggestionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3335,7 +3380,7 @@ func (c *OpsWorks) GetHostnameSuggestionRequest(input *GetHostnameSuggestionInpu // Gets a generated host name for the specified layer, based on the current // host name theme. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -3348,12 +3393,13 @@ func (c *OpsWorks) GetHostnameSuggestionRequest(input *GetHostnameSuggestionInpu // API operation GetHostnameSuggestion for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/GetHostnameSuggestion func (c *OpsWorks) GetHostnameSuggestion(input *GetHostnameSuggestionInput) (*GetHostnameSuggestionOutput, error) { req, out := c.GetHostnameSuggestionRequest(input) err := req.Send() @@ -3386,6 +3432,7 @@ const opGrantAccess = "GrantAccess" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/GrantAccess func (c *OpsWorks) GrantAccessRequest(input *GrantAccessInput) (req *request.Request, output *GrantAccessOutput) { op := &request.Operation{ Name: opGrantAccess, @@ -3397,9 +3444,8 @@ func (c *OpsWorks) GrantAccessRequest(input *GrantAccessInput) (req *request.Req input = &GrantAccessInput{} } - req = c.newRequest(op, input, output) output = &GrantAccessOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3407,7 +3453,7 @@ func (c *OpsWorks) GrantAccessRequest(input *GrantAccessInput) (req *request.Req // // This action can be used only with Windows stacks. // -// Grants RDP access to a Windows instance for a specified time period. +// Grants RDP access to a Windows instance for a specified time period. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3417,12 +3463,13 @@ func (c *OpsWorks) GrantAccessRequest(input *GrantAccessInput) (req *request.Req // API operation GrantAccess for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/GrantAccess func (c *OpsWorks) GrantAccess(input *GrantAccessInput) (*GrantAccessOutput, error) { req, out := c.GrantAccessRequest(input) err := req.Send() @@ -3455,6 +3502,7 @@ const opRebootInstance = "RebootInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RebootInstance func (c *OpsWorks) RebootInstanceRequest(input *RebootInstanceInput) (req *request.Request, output *RebootInstanceOutput) { op := &request.Operation{ Name: opRebootInstance, @@ -3466,11 +3514,10 @@ func (c *OpsWorks) RebootInstanceRequest(input *RebootInstanceInput) (req *reque input = &RebootInstanceInput{} } + output = &RebootInstanceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RebootInstanceOutput{} - req.Data = output return } @@ -3479,7 +3526,7 @@ func (c *OpsWorks) RebootInstanceRequest(input *RebootInstanceInput) (req *reque // Reboots a specified instance. For more information, see Starting, Stopping, // and Rebooting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -3492,12 +3539,13 @@ func (c *OpsWorks) RebootInstanceRequest(input *RebootInstanceInput) (req *reque // API operation RebootInstance for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RebootInstance func (c *OpsWorks) RebootInstance(input *RebootInstanceInput) (*RebootInstanceOutput, error) { req, out := c.RebootInstanceRequest(input) err := req.Send() @@ -3530,6 +3578,7 @@ const opRegisterEcsCluster = "RegisterEcsCluster" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterEcsCluster func (c *OpsWorks) RegisterEcsClusterRequest(input *RegisterEcsClusterInput) (req *request.Request, output *RegisterEcsClusterOutput) { op := &request.Operation{ Name: opRegisterEcsCluster, @@ -3541,9 +3590,8 @@ func (c *OpsWorks) RegisterEcsClusterRequest(input *RegisterEcsClusterInput) (re input = &RegisterEcsClusterInput{} } - req = c.newRequest(op, input, output) output = &RegisterEcsClusterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3553,7 +3601,7 @@ func (c *OpsWorks) RegisterEcsClusterRequest(input *RegisterEcsClusterInput) (re // one cluster with a stack. A cluster can be registered with only one stack. // For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-ecscluster.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -3566,12 +3614,13 @@ func (c *OpsWorks) RegisterEcsClusterRequest(input *RegisterEcsClusterInput) (re // API operation RegisterEcsCluster for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterEcsCluster func (c *OpsWorks) RegisterEcsCluster(input *RegisterEcsClusterInput) (*RegisterEcsClusterOutput, error) { req, out := c.RegisterEcsClusterRequest(input) err := req.Send() @@ -3604,6 +3653,7 @@ const opRegisterElasticIp = "RegisterElasticIp" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterElasticIp func (c *OpsWorks) RegisterElasticIpRequest(input *RegisterElasticIpInput) (req *request.Request, output *RegisterElasticIpOutput) { op := &request.Operation{ Name: opRegisterElasticIp, @@ -3615,9 +3665,8 @@ func (c *OpsWorks) RegisterElasticIpRequest(input *RegisterElasticIpInput) (req input = &RegisterElasticIpInput{} } - req = c.newRequest(op, input, output) output = &RegisterElasticIpOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3628,7 +3677,7 @@ func (c *OpsWorks) RegisterElasticIpRequest(input *RegisterElasticIpInput) (req // you must first deregister it by calling DeregisterElasticIp. For more information, // see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -3641,12 +3690,13 @@ func (c *OpsWorks) RegisterElasticIpRequest(input *RegisterElasticIpInput) (req // API operation RegisterElasticIp for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterElasticIp func (c *OpsWorks) RegisterElasticIp(input *RegisterElasticIpInput) (*RegisterElasticIpOutput, error) { req, out := c.RegisterElasticIpRequest(input) err := req.Send() @@ -3679,6 +3729,7 @@ const opRegisterInstance = "RegisterInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterInstance func (c *OpsWorks) RegisterInstanceRequest(input *RegisterInstanceInput) (req *request.Request, output *RegisterInstanceOutput) { op := &request.Operation{ Name: opRegisterInstance, @@ -3690,9 +3741,8 @@ func (c *OpsWorks) RegisterInstanceRequest(input *RegisterInstanceInput) (req *r input = &RegisterInstanceInput{} } - req = c.newRequest(op, input, output) output = &RegisterInstanceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3701,14 +3751,14 @@ func (c *OpsWorks) RegisterInstanceRequest(input *RegisterInstanceInput) (req *r // Registers instances with a specified stack that were created outside of AWS // OpsWorks. // -// We do not recommend using this action to register instances. The complete +// We do not recommend using this action to register instances. The complete // registration operation has two primary steps, installing the AWS OpsWorks // agent on the instance and registering the instance with the stack. RegisterInstance // handles only the second step. You should instead use the AWS CLI register // command, which performs the entire registration operation. For more information, // see Registering an Instance with an AWS OpsWorks Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/registered-instances-register.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -3721,12 +3771,13 @@ func (c *OpsWorks) RegisterInstanceRequest(input *RegisterInstanceInput) (req *r // API operation RegisterInstance for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterInstance func (c *OpsWorks) RegisterInstance(input *RegisterInstanceInput) (*RegisterInstanceOutput, error) { req, out := c.RegisterInstanceRequest(input) err := req.Send() @@ -3759,6 +3810,7 @@ const opRegisterRdsDbInstance = "RegisterRdsDbInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterRdsDbInstance func (c *OpsWorks) RegisterRdsDbInstanceRequest(input *RegisterRdsDbInstanceInput) (req *request.Request, output *RegisterRdsDbInstanceOutput) { op := &request.Operation{ Name: opRegisterRdsDbInstance, @@ -3770,11 +3822,10 @@ func (c *OpsWorks) RegisterRdsDbInstanceRequest(input *RegisterRdsDbInstanceInpu input = &RegisterRdsDbInstanceInput{} } + output = &RegisterRdsDbInstanceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RegisterRdsDbInstanceOutput{} - req.Data = output return } @@ -3782,7 +3833,7 @@ func (c *OpsWorks) RegisterRdsDbInstanceRequest(input *RegisterRdsDbInstanceInpu // // Registers an Amazon RDS instance with a stack. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -3795,12 +3846,13 @@ func (c *OpsWorks) RegisterRdsDbInstanceRequest(input *RegisterRdsDbInstanceInpu // API operation RegisterRdsDbInstance for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterRdsDbInstance func (c *OpsWorks) RegisterRdsDbInstance(input *RegisterRdsDbInstanceInput) (*RegisterRdsDbInstanceOutput, error) { req, out := c.RegisterRdsDbInstanceRequest(input) err := req.Send() @@ -3833,6 +3885,7 @@ const opRegisterVolume = "RegisterVolume" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterVolume func (c *OpsWorks) RegisterVolumeRequest(input *RegisterVolumeInput) (req *request.Request, output *RegisterVolumeOutput) { op := &request.Operation{ Name: opRegisterVolume, @@ -3844,9 +3897,8 @@ func (c *OpsWorks) RegisterVolumeRequest(input *RegisterVolumeInput) (req *reque input = &RegisterVolumeInput{} } - req = c.newRequest(op, input, output) output = &RegisterVolumeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3857,7 +3909,7 @@ func (c *OpsWorks) RegisterVolumeRequest(input *RegisterVolumeInput) (req *reque // first deregister it by calling DeregisterVolume. For more information, see // Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -3870,12 +3922,13 @@ func (c *OpsWorks) RegisterVolumeRequest(input *RegisterVolumeInput) (req *reque // API operation RegisterVolume for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterVolume func (c *OpsWorks) RegisterVolume(input *RegisterVolumeInput) (*RegisterVolumeOutput, error) { req, out := c.RegisterVolumeRequest(input) err := req.Send() @@ -3908,6 +3961,7 @@ const opSetLoadBasedAutoScaling = "SetLoadBasedAutoScaling" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/SetLoadBasedAutoScaling func (c *OpsWorks) SetLoadBasedAutoScalingRequest(input *SetLoadBasedAutoScalingInput) (req *request.Request, output *SetLoadBasedAutoScalingOutput) { op := &request.Operation{ Name: opSetLoadBasedAutoScaling, @@ -3919,11 +3973,10 @@ func (c *OpsWorks) SetLoadBasedAutoScalingRequest(input *SetLoadBasedAutoScaling input = &SetLoadBasedAutoScalingInput{} } + output = &SetLoadBasedAutoScalingOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetLoadBasedAutoScalingOutput{} - req.Data = output return } @@ -3933,12 +3986,12 @@ func (c *OpsWorks) SetLoadBasedAutoScalingRequest(input *SetLoadBasedAutoScaling // For more information, see Managing Load with Time-based and Load-based Instances // (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-autoscaling.html). // -// To use load-based auto scaling, you must create a set of load-based auto +// To use load-based auto scaling, you must create a set of load-based auto // scaling instances. Load-based auto scaling operates only on the instances // from that set, so you must ensure that you have created enough instances // to handle the maximum anticipated load. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -3951,12 +4004,13 @@ func (c *OpsWorks) SetLoadBasedAutoScalingRequest(input *SetLoadBasedAutoScaling // API operation SetLoadBasedAutoScaling for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/SetLoadBasedAutoScaling func (c *OpsWorks) SetLoadBasedAutoScaling(input *SetLoadBasedAutoScalingInput) (*SetLoadBasedAutoScalingOutput, error) { req, out := c.SetLoadBasedAutoScalingRequest(input) err := req.Send() @@ -3989,6 +4043,7 @@ const opSetPermission = "SetPermission" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/SetPermission func (c *OpsWorks) SetPermissionRequest(input *SetPermissionInput) (req *request.Request, output *SetPermissionOutput) { op := &request.Operation{ Name: opSetPermission, @@ -4000,11 +4055,10 @@ func (c *OpsWorks) SetPermissionRequest(input *SetPermissionInput) (req *request input = &SetPermissionInput{} } + output = &SetPermissionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetPermissionOutput{} - req.Data = output return } @@ -4013,7 +4067,7 @@ func (c *OpsWorks) SetPermissionRequest(input *SetPermissionInput) (req *request // Specifies a user's permissions. For more information, see Security and Permissions // (http://docs.aws.amazon.com/opsworks/latest/userguide/workingsecurity.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4026,12 +4080,13 @@ func (c *OpsWorks) SetPermissionRequest(input *SetPermissionInput) (req *request // API operation SetPermission for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/SetPermission func (c *OpsWorks) SetPermission(input *SetPermissionInput) (*SetPermissionOutput, error) { req, out := c.SetPermissionRequest(input) err := req.Send() @@ -4064,6 +4119,7 @@ const opSetTimeBasedAutoScaling = "SetTimeBasedAutoScaling" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/SetTimeBasedAutoScaling func (c *OpsWorks) SetTimeBasedAutoScalingRequest(input *SetTimeBasedAutoScalingInput) (req *request.Request, output *SetTimeBasedAutoScalingOutput) { op := &request.Operation{ Name: opSetTimeBasedAutoScaling, @@ -4075,11 +4131,10 @@ func (c *OpsWorks) SetTimeBasedAutoScalingRequest(input *SetTimeBasedAutoScaling input = &SetTimeBasedAutoScalingInput{} } + output = &SetTimeBasedAutoScalingOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetTimeBasedAutoScalingOutput{} - req.Data = output return } @@ -4089,7 +4144,7 @@ func (c *OpsWorks) SetTimeBasedAutoScalingRequest(input *SetTimeBasedAutoScaling // For more information, see Managing Load with Time-based and Load-based Instances // (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-autoscaling.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4102,12 +4157,13 @@ func (c *OpsWorks) SetTimeBasedAutoScalingRequest(input *SetTimeBasedAutoScaling // API operation SetTimeBasedAutoScaling for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/SetTimeBasedAutoScaling func (c *OpsWorks) SetTimeBasedAutoScaling(input *SetTimeBasedAutoScalingInput) (*SetTimeBasedAutoScalingOutput, error) { req, out := c.SetTimeBasedAutoScalingRequest(input) err := req.Send() @@ -4140,6 +4196,7 @@ const opStartInstance = "StartInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StartInstance func (c *OpsWorks) StartInstanceRequest(input *StartInstanceInput) (req *request.Request, output *StartInstanceOutput) { op := &request.Operation{ Name: opStartInstance, @@ -4151,11 +4208,10 @@ func (c *OpsWorks) StartInstanceRequest(input *StartInstanceInput) (req *request input = &StartInstanceInput{} } + output = &StartInstanceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &StartInstanceOutput{} - req.Data = output return } @@ -4164,7 +4220,7 @@ func (c *OpsWorks) StartInstanceRequest(input *StartInstanceInput) (req *request // Starts a specified instance. For more information, see Starting, Stopping, // and Rebooting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4177,12 +4233,13 @@ func (c *OpsWorks) StartInstanceRequest(input *StartInstanceInput) (req *request // API operation StartInstance for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StartInstance func (c *OpsWorks) StartInstance(input *StartInstanceInput) (*StartInstanceOutput, error) { req, out := c.StartInstanceRequest(input) err := req.Send() @@ -4215,6 +4272,7 @@ const opStartStack = "StartStack" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StartStack func (c *OpsWorks) StartStackRequest(input *StartStackInput) (req *request.Request, output *StartStackOutput) { op := &request.Operation{ Name: opStartStack, @@ -4226,11 +4284,10 @@ func (c *OpsWorks) StartStackRequest(input *StartStackInput) (req *request.Reque input = &StartStackInput{} } + output = &StartStackOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &StartStackOutput{} - req.Data = output return } @@ -4238,7 +4295,7 @@ func (c *OpsWorks) StartStackRequest(input *StartStackInput) (req *request.Reque // // Starts a stack's instances. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4251,12 +4308,13 @@ func (c *OpsWorks) StartStackRequest(input *StartStackInput) (req *request.Reque // API operation StartStack for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StartStack func (c *OpsWorks) StartStack(input *StartStackInput) (*StartStackOutput, error) { req, out := c.StartStackRequest(input) err := req.Send() @@ -4289,6 +4347,7 @@ const opStopInstance = "StopInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StopInstance func (c *OpsWorks) StopInstanceRequest(input *StopInstanceInput) (req *request.Request, output *StopInstanceOutput) { op := &request.Operation{ Name: opStopInstance, @@ -4300,11 +4359,10 @@ func (c *OpsWorks) StopInstanceRequest(input *StopInstanceInput) (req *request.R input = &StopInstanceInput{} } + output = &StopInstanceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &StopInstanceOutput{} - req.Data = output return } @@ -4315,7 +4373,7 @@ func (c *OpsWorks) StopInstanceRequest(input *StopInstanceInput) (req *request.R // EBS-backed instance without losing data. For more information, see Starting, // Stopping, and Rebooting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4328,12 +4386,13 @@ func (c *OpsWorks) StopInstanceRequest(input *StopInstanceInput) (req *request.R // API operation StopInstance for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StopInstance func (c *OpsWorks) StopInstance(input *StopInstanceInput) (*StopInstanceOutput, error) { req, out := c.StopInstanceRequest(input) err := req.Send() @@ -4366,6 +4425,7 @@ const opStopStack = "StopStack" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StopStack func (c *OpsWorks) StopStackRequest(input *StopStackInput) (req *request.Request, output *StopStackOutput) { op := &request.Operation{ Name: opStopStack, @@ -4377,11 +4437,10 @@ func (c *OpsWorks) StopStackRequest(input *StopStackInput) (req *request.Request input = &StopStackInput{} } + output = &StopStackOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &StopStackOutput{} - req.Data = output return } @@ -4389,7 +4448,7 @@ func (c *OpsWorks) StopStackRequest(input *StopStackInput) (req *request.Request // // Stops a specified stack. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4402,12 +4461,13 @@ func (c *OpsWorks) StopStackRequest(input *StopStackInput) (req *request.Request // API operation StopStack for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StopStack func (c *OpsWorks) StopStack(input *StopStackInput) (*StopStackOutput, error) { req, out := c.StopStackRequest(input) err := req.Send() @@ -4440,6 +4500,7 @@ const opUnassignInstance = "UnassignInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UnassignInstance func (c *OpsWorks) UnassignInstanceRequest(input *UnassignInstanceInput) (req *request.Request, output *UnassignInstanceOutput) { op := &request.Operation{ Name: opUnassignInstance, @@ -4451,11 +4512,10 @@ func (c *OpsWorks) UnassignInstanceRequest(input *UnassignInstanceInput) (req *r input = &UnassignInstanceInput{} } + output = &UnassignInstanceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UnassignInstanceOutput{} - req.Data = output return } @@ -4466,7 +4526,7 @@ func (c *OpsWorks) UnassignInstanceRequest(input *UnassignInstanceInput) (req *r // as needed. You cannot use this action with instances that were created with // AWS OpsWorks. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4479,12 +4539,13 @@ func (c *OpsWorks) UnassignInstanceRequest(input *UnassignInstanceInput) (req *r // API operation UnassignInstance for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UnassignInstance func (c *OpsWorks) UnassignInstance(input *UnassignInstanceInput) (*UnassignInstanceOutput, error) { req, out := c.UnassignInstanceRequest(input) err := req.Send() @@ -4517,6 +4578,7 @@ const opUnassignVolume = "UnassignVolume" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UnassignVolume func (c *OpsWorks) UnassignVolumeRequest(input *UnassignVolumeInput) (req *request.Request, output *UnassignVolumeOutput) { op := &request.Operation{ Name: opUnassignVolume, @@ -4528,11 +4590,10 @@ func (c *OpsWorks) UnassignVolumeRequest(input *UnassignVolumeInput) (req *reque input = &UnassignVolumeInput{} } + output = &UnassignVolumeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UnassignVolumeOutput{} - req.Data = output return } @@ -4541,7 +4602,7 @@ func (c *OpsWorks) UnassignVolumeRequest(input *UnassignVolumeInput) (req *reque // Unassigns an assigned Amazon EBS volume. The volume remains registered with // the stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4554,12 +4615,13 @@ func (c *OpsWorks) UnassignVolumeRequest(input *UnassignVolumeInput) (req *reque // API operation UnassignVolume for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UnassignVolume func (c *OpsWorks) UnassignVolume(input *UnassignVolumeInput) (*UnassignVolumeOutput, error) { req, out := c.UnassignVolumeRequest(input) err := req.Send() @@ -4592,6 +4654,7 @@ const opUpdateApp = "UpdateApp" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateApp func (c *OpsWorks) UpdateAppRequest(input *UpdateAppInput) (req *request.Request, output *UpdateAppOutput) { op := &request.Operation{ Name: opUpdateApp, @@ -4603,11 +4666,10 @@ func (c *OpsWorks) UpdateAppRequest(input *UpdateAppInput) (req *request.Request input = &UpdateAppInput{} } + output = &UpdateAppOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateAppOutput{} - req.Data = output return } @@ -4615,7 +4677,7 @@ func (c *OpsWorks) UpdateAppRequest(input *UpdateAppInput) (req *request.Request // // Updates a specified app. // -// Required Permissions: To use this action, an IAM user must have a Deploy +// Required Permissions: To use this action, an IAM user must have a Deploy // or Manage permissions level for the stack, or an attached policy that explicitly // grants permissions. For more information on user permissions, see Managing // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4628,12 +4690,13 @@ func (c *OpsWorks) UpdateAppRequest(input *UpdateAppInput) (req *request.Request // API operation UpdateApp for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateApp func (c *OpsWorks) UpdateApp(input *UpdateAppInput) (*UpdateAppOutput, error) { req, out := c.UpdateAppRequest(input) err := req.Send() @@ -4666,6 +4729,7 @@ const opUpdateElasticIp = "UpdateElasticIp" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateElasticIp func (c *OpsWorks) UpdateElasticIpRequest(input *UpdateElasticIpInput) (req *request.Request, output *UpdateElasticIpOutput) { op := &request.Operation{ Name: opUpdateElasticIp, @@ -4677,11 +4741,10 @@ func (c *OpsWorks) UpdateElasticIpRequest(input *UpdateElasticIpInput) (req *req input = &UpdateElasticIpInput{} } + output = &UpdateElasticIpOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateElasticIpOutput{} - req.Data = output return } @@ -4690,7 +4753,7 @@ func (c *OpsWorks) UpdateElasticIpRequest(input *UpdateElasticIpInput) (req *req // Updates a registered Elastic IP address's name. For more information, see // Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4703,12 +4766,13 @@ func (c *OpsWorks) UpdateElasticIpRequest(input *UpdateElasticIpInput) (req *req // API operation UpdateElasticIp for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateElasticIp func (c *OpsWorks) UpdateElasticIp(input *UpdateElasticIpInput) (*UpdateElasticIpOutput, error) { req, out := c.UpdateElasticIpRequest(input) err := req.Send() @@ -4741,6 +4805,7 @@ const opUpdateInstance = "UpdateInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateInstance func (c *OpsWorks) UpdateInstanceRequest(input *UpdateInstanceInput) (req *request.Request, output *UpdateInstanceOutput) { op := &request.Operation{ Name: opUpdateInstance, @@ -4752,11 +4817,10 @@ func (c *OpsWorks) UpdateInstanceRequest(input *UpdateInstanceInput) (req *reque input = &UpdateInstanceInput{} } + output = &UpdateInstanceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateInstanceOutput{} - req.Data = output return } @@ -4764,7 +4828,7 @@ func (c *OpsWorks) UpdateInstanceRequest(input *UpdateInstanceInput) (req *reque // // Updates a specified instance. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4777,12 +4841,13 @@ func (c *OpsWorks) UpdateInstanceRequest(input *UpdateInstanceInput) (req *reque // API operation UpdateInstance for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateInstance func (c *OpsWorks) UpdateInstance(input *UpdateInstanceInput) (*UpdateInstanceOutput, error) { req, out := c.UpdateInstanceRequest(input) err := req.Send() @@ -4815,6 +4880,7 @@ const opUpdateLayer = "UpdateLayer" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateLayer func (c *OpsWorks) UpdateLayerRequest(input *UpdateLayerInput) (req *request.Request, output *UpdateLayerOutput) { op := &request.Operation{ Name: opUpdateLayer, @@ -4826,11 +4892,10 @@ func (c *OpsWorks) UpdateLayerRequest(input *UpdateLayerInput) (req *request.Req input = &UpdateLayerInput{} } + output = &UpdateLayerOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateLayerOutput{} - req.Data = output return } @@ -4838,7 +4903,7 @@ func (c *OpsWorks) UpdateLayerRequest(input *UpdateLayerInput) (req *request.Req // // Updates a specified layer. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4851,12 +4916,13 @@ func (c *OpsWorks) UpdateLayerRequest(input *UpdateLayerInput) (req *request.Req // API operation UpdateLayer for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateLayer func (c *OpsWorks) UpdateLayer(input *UpdateLayerInput) (*UpdateLayerOutput, error) { req, out := c.UpdateLayerRequest(input) err := req.Send() @@ -4889,6 +4955,7 @@ const opUpdateMyUserProfile = "UpdateMyUserProfile" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateMyUserProfile func (c *OpsWorks) UpdateMyUserProfileRequest(input *UpdateMyUserProfileInput) (req *request.Request, output *UpdateMyUserProfileOutput) { op := &request.Operation{ Name: opUpdateMyUserProfile, @@ -4900,11 +4967,10 @@ func (c *OpsWorks) UpdateMyUserProfileRequest(input *UpdateMyUserProfileInput) ( input = &UpdateMyUserProfileInput{} } + output = &UpdateMyUserProfileOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateMyUserProfileOutput{} - req.Data = output return } @@ -4912,7 +4978,7 @@ func (c *OpsWorks) UpdateMyUserProfileRequest(input *UpdateMyUserProfileInput) ( // // Updates a user's SSH public key. // -// Required Permissions: To use this action, an IAM user must have self-management +// Required Permissions: To use this action, an IAM user must have self-management // enabled or an attached policy that explicitly grants permissions. For more // information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // @@ -4924,9 +4990,10 @@ func (c *OpsWorks) UpdateMyUserProfileRequest(input *UpdateMyUserProfileInput) ( // API operation UpdateMyUserProfile for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateMyUserProfile func (c *OpsWorks) UpdateMyUserProfile(input *UpdateMyUserProfileInput) (*UpdateMyUserProfileOutput, error) { req, out := c.UpdateMyUserProfileRequest(input) err := req.Send() @@ -4959,6 +5026,7 @@ const opUpdateRdsDbInstance = "UpdateRdsDbInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateRdsDbInstance func (c *OpsWorks) UpdateRdsDbInstanceRequest(input *UpdateRdsDbInstanceInput) (req *request.Request, output *UpdateRdsDbInstanceOutput) { op := &request.Operation{ Name: opUpdateRdsDbInstance, @@ -4970,11 +5038,10 @@ func (c *OpsWorks) UpdateRdsDbInstanceRequest(input *UpdateRdsDbInstanceInput) ( input = &UpdateRdsDbInstanceInput{} } + output = &UpdateRdsDbInstanceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateRdsDbInstanceOutput{} - req.Data = output return } @@ -4982,7 +5049,7 @@ func (c *OpsWorks) UpdateRdsDbInstanceRequest(input *UpdateRdsDbInstanceInput) ( // // Updates an Amazon RDS instance. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -4995,12 +5062,13 @@ func (c *OpsWorks) UpdateRdsDbInstanceRequest(input *UpdateRdsDbInstanceInput) ( // API operation UpdateRdsDbInstance for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateRdsDbInstance func (c *OpsWorks) UpdateRdsDbInstance(input *UpdateRdsDbInstanceInput) (*UpdateRdsDbInstanceOutput, error) { req, out := c.UpdateRdsDbInstanceRequest(input) err := req.Send() @@ -5033,6 +5101,7 @@ const opUpdateStack = "UpdateStack" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateStack func (c *OpsWorks) UpdateStackRequest(input *UpdateStackInput) (req *request.Request, output *UpdateStackOutput) { op := &request.Operation{ Name: opUpdateStack, @@ -5044,11 +5113,10 @@ func (c *OpsWorks) UpdateStackRequest(input *UpdateStackInput) (req *request.Req input = &UpdateStackInput{} } + output = &UpdateStackOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateStackOutput{} - req.Data = output return } @@ -5056,7 +5124,7 @@ func (c *OpsWorks) UpdateStackRequest(input *UpdateStackInput) (req *request.Req // // Updates a specified stack. // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -5069,12 +5137,13 @@ func (c *OpsWorks) UpdateStackRequest(input *UpdateStackInput) (req *request.Req // API operation UpdateStack for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateStack func (c *OpsWorks) UpdateStack(input *UpdateStackInput) (*UpdateStackOutput, error) { req, out := c.UpdateStackRequest(input) err := req.Send() @@ -5107,6 +5176,7 @@ const opUpdateUserProfile = "UpdateUserProfile" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateUserProfile func (c *OpsWorks) UpdateUserProfileRequest(input *UpdateUserProfileInput) (req *request.Request, output *UpdateUserProfileOutput) { op := &request.Operation{ Name: opUpdateUserProfile, @@ -5118,11 +5188,10 @@ func (c *OpsWorks) UpdateUserProfileRequest(input *UpdateUserProfileInput) (req input = &UpdateUserProfileInput{} } + output = &UpdateUserProfileOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateUserProfileOutput{} - req.Data = output return } @@ -5130,7 +5199,7 @@ func (c *OpsWorks) UpdateUserProfileRequest(input *UpdateUserProfileInput) (req // // Updates a specified user profile. // -// Required Permissions: To use this action, an IAM user must have an attached +// Required Permissions: To use this action, an IAM user must have an attached // policy that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). // @@ -5142,12 +5211,13 @@ func (c *OpsWorks) UpdateUserProfileRequest(input *UpdateUserProfileInput) (req // API operation UpdateUserProfile for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateUserProfile func (c *OpsWorks) UpdateUserProfile(input *UpdateUserProfileInput) (*UpdateUserProfileOutput, error) { req, out := c.UpdateUserProfileRequest(input) err := req.Send() @@ -5180,6 +5250,7 @@ const opUpdateVolume = "UpdateVolume" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateVolume func (c *OpsWorks) UpdateVolumeRequest(input *UpdateVolumeInput) (req *request.Request, output *UpdateVolumeOutput) { op := &request.Operation{ Name: opUpdateVolume, @@ -5191,11 +5262,10 @@ func (c *OpsWorks) UpdateVolumeRequest(input *UpdateVolumeInput) (req *request.R input = &UpdateVolumeInput{} } + output = &UpdateVolumeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateVolumeOutput{} - req.Data = output return } @@ -5204,7 +5274,7 @@ func (c *OpsWorks) UpdateVolumeRequest(input *UpdateVolumeInput) (req *request.R // Updates an Amazon EBS volume's name or mount point. For more information, // see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // -// Required Permissions: To use this action, an IAM user must have a Manage +// Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). @@ -5217,12 +5287,13 @@ func (c *OpsWorks) UpdateVolumeRequest(input *UpdateVolumeInput) (req *request.R // API operation UpdateVolume for usage and error information. // // Returned Error Codes: -// * ValidationException +// * ErrCodeValidationException "ValidationException" // Indicates that a request was not valid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Indicates that a resource was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateVolume func (c *OpsWorks) UpdateVolume(input *UpdateVolumeInput) (*UpdateVolumeOutput, error) { req, out := c.UpdateVolumeRequest(input) err := req.Send() @@ -5230,6 +5301,7 @@ func (c *OpsWorks) UpdateVolume(input *UpdateVolumeInput) (*UpdateVolumeOutput, } // Describes an agent version. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AgentVersion type AgentVersion struct { _ struct{} `type:"structure"` @@ -5250,7 +5322,20 @@ func (s AgentVersion) GoString() string { return s.String() } +// SetConfigurationManager sets the ConfigurationManager field's value. +func (s *AgentVersion) SetConfigurationManager(v *StackConfigurationManager) *AgentVersion { + s.ConfigurationManager = v + return s +} + +// SetVersion sets the Version field's value. +func (s *AgentVersion) SetVersion(v string) *AgentVersion { + s.Version = &v + return s +} + // A description of the app. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/App type App struct { _ struct{} `type:"structure"` @@ -5284,7 +5369,7 @@ type App struct { // are defined on the associated app server instances. For more information, // see Environment Variables (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html#workingapps-creating-environment). // - // There is no specific limit on the number of environment variables. However, + // There is no specific limit on the number of environment variables. However, // the size of the associated data structure - which includes the variable names, // values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This // limit should accommodate most if not all use cases, but if you do exceed @@ -5318,6 +5403,91 @@ func (s App) GoString() string { return s.String() } +// SetAppId sets the AppId field's value. +func (s *App) SetAppId(v string) *App { + s.AppId = &v + return s +} + +// SetAppSource sets the AppSource field's value. +func (s *App) SetAppSource(v *Source) *App { + s.AppSource = v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *App) SetAttributes(v map[string]*string) *App { + s.Attributes = v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *App) SetCreatedAt(v string) *App { + s.CreatedAt = &v + return s +} + +// SetDataSources sets the DataSources field's value. +func (s *App) SetDataSources(v []*DataSource) *App { + s.DataSources = v + return s +} + +// SetDescription sets the Description field's value. +func (s *App) SetDescription(v string) *App { + s.Description = &v + return s +} + +// SetDomains sets the Domains field's value. +func (s *App) SetDomains(v []*string) *App { + s.Domains = v + return s +} + +// SetEnableSsl sets the EnableSsl field's value. +func (s *App) SetEnableSsl(v bool) *App { + s.EnableSsl = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *App) SetEnvironment(v []*EnvironmentVariable) *App { + s.Environment = v + return s +} + +// SetName sets the Name field's value. +func (s *App) SetName(v string) *App { + s.Name = &v + return s +} + +// SetShortname sets the Shortname field's value. +func (s *App) SetShortname(v string) *App { + s.Shortname = &v + return s +} + +// SetSslConfiguration sets the SslConfiguration field's value. +func (s *App) SetSslConfiguration(v *SslConfiguration) *App { + s.SslConfiguration = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *App) SetStackId(v string) *App { + s.StackId = &v + return s +} + +// SetType sets the Type field's value. +func (s *App) SetType(v string) *App { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AssignInstanceRequest type AssignInstanceInput struct { _ struct{} `type:"structure"` @@ -5359,6 +5529,19 @@ func (s *AssignInstanceInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *AssignInstanceInput) SetInstanceId(v string) *AssignInstanceInput { + s.InstanceId = &v + return s +} + +// SetLayerIds sets the LayerIds field's value. +func (s *AssignInstanceInput) SetLayerIds(v []*string) *AssignInstanceInput { + s.LayerIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AssignInstanceOutput type AssignInstanceOutput struct { _ struct{} `type:"structure"` } @@ -5373,6 +5556,7 @@ func (s AssignInstanceOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AssignVolumeRequest type AssignVolumeInput struct { _ struct{} `type:"structure"` @@ -5408,6 +5592,19 @@ func (s *AssignVolumeInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *AssignVolumeInput) SetInstanceId(v string) *AssignVolumeInput { + s.InstanceId = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *AssignVolumeInput) SetVolumeId(v string) *AssignVolumeInput { + s.VolumeId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AssignVolumeOutput type AssignVolumeOutput struct { _ struct{} `type:"structure"` } @@ -5422,6 +5619,7 @@ func (s AssignVolumeOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AssociateElasticIpRequest type AssociateElasticIpInput struct { _ struct{} `type:"structure"` @@ -5457,6 +5655,19 @@ func (s *AssociateElasticIpInput) Validate() error { return nil } +// SetElasticIp sets the ElasticIp field's value. +func (s *AssociateElasticIpInput) SetElasticIp(v string) *AssociateElasticIpInput { + s.ElasticIp = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AssociateElasticIpInput) SetInstanceId(v string) *AssociateElasticIpInput { + s.InstanceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AssociateElasticIpOutput type AssociateElasticIpOutput struct { _ struct{} `type:"structure"` } @@ -5471,6 +5682,7 @@ func (s AssociateElasticIpOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AttachElasticLoadBalancerRequest type AttachElasticLoadBalancerInput struct { _ struct{} `type:"structure"` @@ -5512,6 +5724,19 @@ func (s *AttachElasticLoadBalancerInput) Validate() error { return nil } +// SetElasticLoadBalancerName sets the ElasticLoadBalancerName field's value. +func (s *AttachElasticLoadBalancerInput) SetElasticLoadBalancerName(v string) *AttachElasticLoadBalancerInput { + s.ElasticLoadBalancerName = &v + return s +} + +// SetLayerId sets the LayerId field's value. +func (s *AttachElasticLoadBalancerInput) SetLayerId(v string) *AttachElasticLoadBalancerInput { + s.LayerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AttachElasticLoadBalancerOutput type AttachElasticLoadBalancerOutput struct { _ struct{} `type:"structure"` } @@ -5528,6 +5753,7 @@ func (s AttachElasticLoadBalancerOutput) GoString() string { // Describes a load-based auto scaling upscaling or downscaling threshold configuration, // which specifies when AWS OpsWorks starts or stops load-based instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AutoScalingThresholds type AutoScalingThresholds struct { _ struct{} `type:"structure"` @@ -5535,7 +5761,7 @@ type AutoScalingThresholds struct { // takes a list of up to five alarm names, which are case sensitive and must // be in the same region as the stack. // - // To use custom alarms, you must update your service role to allow cloudwatch:DescribeAlarms. + // To use custom alarms, you must update your service role to allow cloudwatch:DescribeAlarms. // You can either have AWS OpsWorks update the role for you when you first use // this feature or you can edit the role manually. For more information, see // Allowing AWS OpsWorks to Act on Your Behalf (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-servicerole.html). @@ -5597,9 +5823,52 @@ func (s *AutoScalingThresholds) Validate() error { return nil } -// Describes a block device mapping. This data type maps directly to the Amazon +// SetAlarms sets the Alarms field's value. +func (s *AutoScalingThresholds) SetAlarms(v []*string) *AutoScalingThresholds { + s.Alarms = v + return s +} + +// SetCpuThreshold sets the CpuThreshold field's value. +func (s *AutoScalingThresholds) SetCpuThreshold(v float64) *AutoScalingThresholds { + s.CpuThreshold = &v + return s +} + +// SetIgnoreMetricsTime sets the IgnoreMetricsTime field's value. +func (s *AutoScalingThresholds) SetIgnoreMetricsTime(v int64) *AutoScalingThresholds { + s.IgnoreMetricsTime = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *AutoScalingThresholds) SetInstanceCount(v int64) *AutoScalingThresholds { + s.InstanceCount = &v + return s +} + +// SetLoadThreshold sets the LoadThreshold field's value. +func (s *AutoScalingThresholds) SetLoadThreshold(v float64) *AutoScalingThresholds { + s.LoadThreshold = &v + return s +} + +// SetMemoryThreshold sets the MemoryThreshold field's value. +func (s *AutoScalingThresholds) SetMemoryThreshold(v float64) *AutoScalingThresholds { + s.MemoryThreshold = &v + return s +} + +// SetThresholdsWaitTime sets the ThresholdsWaitTime field's value. +func (s *AutoScalingThresholds) SetThresholdsWaitTime(v int64) *AutoScalingThresholds { + s.ThresholdsWaitTime = &v + return s +} + +// Describes a block device mapping. This data type maps directly to the Amazon // EC2 BlockDeviceMapping (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_BlockDeviceMapping.html) // data type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/BlockDeviceMapping type BlockDeviceMapping struct { _ struct{} `type:"structure"` @@ -5629,7 +5898,32 @@ func (s BlockDeviceMapping) GoString() string { return s.String() } +// SetDeviceName sets the DeviceName field's value. +func (s *BlockDeviceMapping) SetDeviceName(v string) *BlockDeviceMapping { + s.DeviceName = &v + return s +} + +// SetEbs sets the Ebs field's value. +func (s *BlockDeviceMapping) SetEbs(v *EbsBlockDevice) *BlockDeviceMapping { + s.Ebs = v + return s +} + +// SetNoDevice sets the NoDevice field's value. +func (s *BlockDeviceMapping) SetNoDevice(v string) *BlockDeviceMapping { + s.NoDevice = &v + return s +} + +// SetVirtualName sets the VirtualName field's value. +func (s *BlockDeviceMapping) SetVirtualName(v string) *BlockDeviceMapping { + s.VirtualName = &v + return s +} + // Describes the Chef configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/ChefConfiguration type ChefConfiguration struct { _ struct{} `type:"structure"` @@ -5650,25 +5944,38 @@ func (s ChefConfiguration) GoString() string { return s.String() } +// SetBerkshelfVersion sets the BerkshelfVersion field's value. +func (s *ChefConfiguration) SetBerkshelfVersion(v string) *ChefConfiguration { + s.BerkshelfVersion = &v + return s +} + +// SetManageBerkshelf sets the ManageBerkshelf field's value. +func (s *ChefConfiguration) SetManageBerkshelf(v bool) *ChefConfiguration { + s.ManageBerkshelf = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CloneStackRequest type CloneStackInput struct { _ struct{} `type:"structure"` // The default AWS OpsWorks agent version. You have the following options: // - // Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically - // installs new agent versions on the stack's instances as soon as they are - // available. + // * Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically + // installs new agent versions on the stack's instances as soon as they are + // available. // - // Fixed version - Set this parameter to your preferred agent version. To - // update the agent version, you must edit the stack configuration and specify - // a new version. AWS OpsWorks then automatically installs that version on the - // stack's instances. + // * Fixed version - Set this parameter to your preferred agent version. + // To update the agent version, you must edit the stack configuration and + // specify a new version. AWS OpsWorks then automatically installs that version + // on the stack's instances. // - // The default setting is LATEST. To specify an agent version, you must use + // The default setting is LATEST. To specify an agent version, you must use // the complete version number, not the abbreviated number shown on the console. // For a list of available agent version numbers, call DescribeAgentVersions. // - // You can also specify an agent version when you create or update an instance, + // You can also specify an agent version when you create or update an instance, // which overrides the stack's default setting. AgentVersion *string `type:"string"` @@ -5702,7 +6009,7 @@ type CloneStackInput struct { // the corresponding default stack configuration JSON values. The string should // be in the following format: // - // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" + // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" // // For more information on custom JSON, see Use Custom JSON to Modify the Stack // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html) @@ -5721,28 +6028,28 @@ type CloneStackInput struct { // The stack's operating system, which must be set to one of the following. // - // A supported Linux operating system: An Amazon Linux version, such as Amazon - // Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03. + // * A supported Linux operating system: An Amazon Linux version, such as + // Amazon Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03. // - // A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu - // 14.04 LTS, or Ubuntu 12.04 LTS. + // * A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu + // 14.04 LTS, or Ubuntu 12.04 LTS. // - // CentOS 7 + // * CentOS 7 // - // Red Hat Enterprise Linux 7 + // * Red Hat Enterprise Linux 7 // - // Microsoft Windows Server 2012 R2 Base, Microsoft Windows Server 2012 - // R2 with SQL Server Express, Microsoft Windows Server 2012 R2 with SQL Server - // Standard, or Microsoft Windows Server 2012 R2 with SQL Server Web. + // * Microsoft Windows Server 2012 R2 Base, Microsoft Windows Server 2012 + // R2 with SQL Server Express, Microsoft Windows Server 2012 R2 with SQL + // Server Standard, or Microsoft Windows Server 2012 R2 with SQL Server Web. // - // A custom AMI: Custom. You specify the custom AMI you want to use when - // you create instances. For more information on how to use custom AMIs with - // OpsWorks, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). + // * A custom AMI: Custom. You specify the custom AMI you want to use when + // you create instances. For more information on how to use custom AMIs with + // OpsWorks, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). // - // The default option is the parent stack's operating system. For more information + // The default option is the parent stack's operating system. For more information // on the supported operating systems, see AWS OpsWorks Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html). // - // You can specify a different Linux operating system for the cloned stack, + // You can specify a different Linux operating system for the cloned stack, // but you cannot change from Linux to Windows or Windows to Linux. DefaultOs *string `type:"string"` @@ -5773,29 +6080,29 @@ type CloneStackInput struct { // HostnameTheme is set to Layer_Dependent, which creates host names by appending // integers to the layer's short name. The other themes are: // - // Baked_Goods + // * Baked_Goods // - // Clouds + // * Clouds // - // Europe_Cities + // * Europe_Cities // - // Fruits + // * Fruits // - // Greek_Deities + // * Greek_Deities // - // Legendary_creatures_from_Japan + // * Legendary_creatures_from_Japan // - // Planets_and_Moons + // * Planets_and_Moons // - // Roman_Deities + // * Roman_Deities // - // Scottish_Islands + // * Scottish_Islands // - // US_Cities + // * US_Cities // - // Wild_Cats + // * Wild_Cats // - // To obtain a generated host name, call GetHostNameSuggestion, which returns + // To obtain a generated host name, call GetHostNameSuggestion, which returns // a host name based on the current theme. HostnameTheme *string `type:"string"` @@ -5813,7 +6120,7 @@ type CloneStackInput struct { // can obtain an existing stack's IAM ARN programmatically by calling DescribePermissions. // For more information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html). // - // You must set this parameter to a valid service role ARN or the action will + // You must set this parameter to a valid service role ARN or the action will // fail; there is no default value. You can specify the source stack's service // role ARN, if you prefer, but you must do so explicitly. // @@ -5836,31 +6143,31 @@ type CloneStackInput struct { // you can instead provide your own custom security groups. UseOpsworksSecurityGroups // has the following settings: // - // True - AWS OpsWorks automatically associates the appropriate built-in - // security group with each layer (default setting). You can associate additional - // security groups with a layer after you create it but you cannot delete the - // built-in security group. + // * True - AWS OpsWorks automatically associates the appropriate built-in + // security group with each layer (default setting). You can associate additional + // security groups with a layer after you create it but you cannot delete + // the built-in security group. // - // False - AWS OpsWorks does not associate built-in security groups with - // layers. You must create appropriate Amazon Elastic Compute Cloud (Amazon - // EC2) security groups and associate a security group with each layer that - // you create. However, you can still manually associate a built-in security - // group with a layer on creation; custom security groups are required only - // for those layers that need custom settings. + // * False - AWS OpsWorks does not associate built-in security groups with + // layers. You must create appropriate Amazon Elastic Compute Cloud (Amazon + // EC2) security groups and associate a security group with each layer that + // you create. However, you can still manually associate a built-in security + // group with a layer on creation; custom security groups are required only + // for those layers that need custom settings. // - // For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html). + // For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html). UseOpsworksSecurityGroups *bool `type:"boolean"` // The ID of the VPC that the cloned stack is to be launched into. It must be // in the specified region. All instances are launched into this VPC, and you // cannot change the ID later. // - // If your account supports EC2 Classic, the default value is no VPC. + // * If your account supports EC2 Classic, the default value is no VPC. // - // If your account does not support EC2 Classic, the default value is the - // default VPC for the specified region. + // * If your account does not support EC2 Classic, the default value is the + // default VPC for the specified region. // - // If the VPC ID corresponds to a default VPC and you have specified either + // If the VPC ID corresponds to a default VPC and you have specified either // the DefaultAvailabilityZone or the DefaultSubnetId parameter only, AWS OpsWorks // infers the value of the other parameter. If you specify neither parameter, // AWS OpsWorks sets these parameters to the first valid Availability Zone for @@ -5868,12 +6175,12 @@ type CloneStackInput struct { // // If you specify a nondefault VPC ID, note the following: // - // It must belong to a VPC in your account that is in the specified region. + // * It must belong to a VPC in your account that is in the specified region. // - // You must specify a value for DefaultSubnetId. + // * You must specify a value for DefaultSubnetId. // - // For more information on how to use AWS OpsWorks with a VPC, see Running - // a Stack in a VPC (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-vpc.html). + // For more information on how to use AWS OpsWorks with a VPC, see Running a + // Stack in a VPC (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-vpc.html). // For more information on default VPC and EC2 Classic, see Supported Platforms // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html). VpcId *string `type:"string"` @@ -5905,7 +6212,140 @@ func (s *CloneStackInput) Validate() error { return nil } +// SetAgentVersion sets the AgentVersion field's value. +func (s *CloneStackInput) SetAgentVersion(v string) *CloneStackInput { + s.AgentVersion = &v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *CloneStackInput) SetAttributes(v map[string]*string) *CloneStackInput { + s.Attributes = v + return s +} + +// SetChefConfiguration sets the ChefConfiguration field's value. +func (s *CloneStackInput) SetChefConfiguration(v *ChefConfiguration) *CloneStackInput { + s.ChefConfiguration = v + return s +} + +// SetCloneAppIds sets the CloneAppIds field's value. +func (s *CloneStackInput) SetCloneAppIds(v []*string) *CloneStackInput { + s.CloneAppIds = v + return s +} + +// SetClonePermissions sets the ClonePermissions field's value. +func (s *CloneStackInput) SetClonePermissions(v bool) *CloneStackInput { + s.ClonePermissions = &v + return s +} + +// SetConfigurationManager sets the ConfigurationManager field's value. +func (s *CloneStackInput) SetConfigurationManager(v *StackConfigurationManager) *CloneStackInput { + s.ConfigurationManager = v + return s +} + +// SetCustomCookbooksSource sets the CustomCookbooksSource field's value. +func (s *CloneStackInput) SetCustomCookbooksSource(v *Source) *CloneStackInput { + s.CustomCookbooksSource = v + return s +} + +// SetCustomJson sets the CustomJson field's value. +func (s *CloneStackInput) SetCustomJson(v string) *CloneStackInput { + s.CustomJson = &v + return s +} + +// SetDefaultAvailabilityZone sets the DefaultAvailabilityZone field's value. +func (s *CloneStackInput) SetDefaultAvailabilityZone(v string) *CloneStackInput { + s.DefaultAvailabilityZone = &v + return s +} + +// SetDefaultInstanceProfileArn sets the DefaultInstanceProfileArn field's value. +func (s *CloneStackInput) SetDefaultInstanceProfileArn(v string) *CloneStackInput { + s.DefaultInstanceProfileArn = &v + return s +} + +// SetDefaultOs sets the DefaultOs field's value. +func (s *CloneStackInput) SetDefaultOs(v string) *CloneStackInput { + s.DefaultOs = &v + return s +} + +// SetDefaultRootDeviceType sets the DefaultRootDeviceType field's value. +func (s *CloneStackInput) SetDefaultRootDeviceType(v string) *CloneStackInput { + s.DefaultRootDeviceType = &v + return s +} + +// SetDefaultSshKeyName sets the DefaultSshKeyName field's value. +func (s *CloneStackInput) SetDefaultSshKeyName(v string) *CloneStackInput { + s.DefaultSshKeyName = &v + return s +} + +// SetDefaultSubnetId sets the DefaultSubnetId field's value. +func (s *CloneStackInput) SetDefaultSubnetId(v string) *CloneStackInput { + s.DefaultSubnetId = &v + return s +} + +// SetHostnameTheme sets the HostnameTheme field's value. +func (s *CloneStackInput) SetHostnameTheme(v string) *CloneStackInput { + s.HostnameTheme = &v + return s +} + +// SetName sets the Name field's value. +func (s *CloneStackInput) SetName(v string) *CloneStackInput { + s.Name = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *CloneStackInput) SetRegion(v string) *CloneStackInput { + s.Region = &v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *CloneStackInput) SetServiceRoleArn(v string) *CloneStackInput { + s.ServiceRoleArn = &v + return s +} + +// SetSourceStackId sets the SourceStackId field's value. +func (s *CloneStackInput) SetSourceStackId(v string) *CloneStackInput { + s.SourceStackId = &v + return s +} + +// SetUseCustomCookbooks sets the UseCustomCookbooks field's value. +func (s *CloneStackInput) SetUseCustomCookbooks(v bool) *CloneStackInput { + s.UseCustomCookbooks = &v + return s +} + +// SetUseOpsworksSecurityGroups sets the UseOpsworksSecurityGroups field's value. +func (s *CloneStackInput) SetUseOpsworksSecurityGroups(v bool) *CloneStackInput { + s.UseOpsworksSecurityGroups = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CloneStackInput) SetVpcId(v string) *CloneStackInput { + s.VpcId = &v + return s +} + // Contains the response to a CloneStack request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CloneStackResult type CloneStackOutput struct { _ struct{} `type:"structure"` @@ -5923,7 +6363,14 @@ func (s CloneStackOutput) GoString() string { return s.String() } +// SetStackId sets the StackId field's value. +func (s *CloneStackOutput) SetStackId(v string) *CloneStackOutput { + s.StackId = &v + return s +} + // Describes a command. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/Command type Command struct { _ struct{} `type:"structure"` @@ -5953,36 +6400,36 @@ type Command struct { // The command status: // - // failed + // * failed // - // successful + // * successful // - // skipped + // * skipped // - // pending + // * pending Status *string `type:"string"` // The command type: // - // deploy + // * deploy // - // rollback + // * rollback // - // start + // * start // - // stop + // * stop // - // restart + // * restart // - // undeploy + // * undeploy // - // update_dependencies + // * update_dependencies // - // install_dependencies + // * install_dependencies // - // update_custom_cookbooks + // * update_custom_cookbooks // - // execute_recipes + // * execute_recipes Type *string `type:"string"` } @@ -5996,6 +6443,67 @@ func (s Command) GoString() string { return s.String() } +// SetAcknowledgedAt sets the AcknowledgedAt field's value. +func (s *Command) SetAcknowledgedAt(v string) *Command { + s.AcknowledgedAt = &v + return s +} + +// SetCommandId sets the CommandId field's value. +func (s *Command) SetCommandId(v string) *Command { + s.CommandId = &v + return s +} + +// SetCompletedAt sets the CompletedAt field's value. +func (s *Command) SetCompletedAt(v string) *Command { + s.CompletedAt = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Command) SetCreatedAt(v string) *Command { + s.CreatedAt = &v + return s +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *Command) SetDeploymentId(v string) *Command { + s.DeploymentId = &v + return s +} + +// SetExitCode sets the ExitCode field's value. +func (s *Command) SetExitCode(v int64) *Command { + s.ExitCode = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *Command) SetInstanceId(v string) *Command { + s.InstanceId = &v + return s +} + +// SetLogUrl sets the LogUrl field's value. +func (s *Command) SetLogUrl(v string) *Command { + s.LogUrl = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Command) SetStatus(v string) *Command { + s.Status = &v + return s +} + +// SetType sets the Type field's value. +func (s *Command) SetType(v string) *Command { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateAppRequest type CreateAppInput struct { _ struct{} `type:"structure"` @@ -6030,7 +6538,7 @@ type CreateAppInput struct { // cause an exception with the message, "Environment: is too large (maximum // is 10KB)." // - // This parameter is supported only by Chef 11.10 stacks. If you have specified + // This parameter is supported only by Chef 11.10 stacks. If you have specified // one or more environment variables, you cannot modify the stack's Chef version. Environment []*EnvironmentVariable `type:"list"` @@ -6104,7 +6612,80 @@ func (s *CreateAppInput) Validate() error { return nil } +// SetAppSource sets the AppSource field's value. +func (s *CreateAppInput) SetAppSource(v *Source) *CreateAppInput { + s.AppSource = v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *CreateAppInput) SetAttributes(v map[string]*string) *CreateAppInput { + s.Attributes = v + return s +} + +// SetDataSources sets the DataSources field's value. +func (s *CreateAppInput) SetDataSources(v []*DataSource) *CreateAppInput { + s.DataSources = v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateAppInput) SetDescription(v string) *CreateAppInput { + s.Description = &v + return s +} + +// SetDomains sets the Domains field's value. +func (s *CreateAppInput) SetDomains(v []*string) *CreateAppInput { + s.Domains = v + return s +} + +// SetEnableSsl sets the EnableSsl field's value. +func (s *CreateAppInput) SetEnableSsl(v bool) *CreateAppInput { + s.EnableSsl = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *CreateAppInput) SetEnvironment(v []*EnvironmentVariable) *CreateAppInput { + s.Environment = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateAppInput) SetName(v string) *CreateAppInput { + s.Name = &v + return s +} + +// SetShortname sets the Shortname field's value. +func (s *CreateAppInput) SetShortname(v string) *CreateAppInput { + s.Shortname = &v + return s +} + +// SetSslConfiguration sets the SslConfiguration field's value. +func (s *CreateAppInput) SetSslConfiguration(v *SslConfiguration) *CreateAppInput { + s.SslConfiguration = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *CreateAppInput) SetStackId(v string) *CreateAppInput { + s.StackId = &v + return s +} + +// SetType sets the Type field's value. +func (s *CreateAppInput) SetType(v string) *CreateAppInput { + s.Type = &v + return s +} + // Contains the response to a CreateApp request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateAppResult type CreateAppOutput struct { _ struct{} `type:"structure"` @@ -6122,6 +6703,13 @@ func (s CreateAppOutput) GoString() string { return s.String() } +// SetAppId sets the AppId field's value. +func (s *CreateAppOutput) SetAppId(v string) *CreateAppOutput { + s.AppId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateDeploymentRequest type CreateDeploymentInput struct { _ struct{} `type:"structure"` @@ -6142,7 +6730,7 @@ type CreateDeploymentInput struct { // the corresponding default stack configuration JSON values. The string should // be in the following format: // - // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" + // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" // // For more information on custom JSON, see Use Custom JSON to Modify the Stack // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html). @@ -6191,7 +6779,50 @@ func (s *CreateDeploymentInput) Validate() error { return nil } +// SetAppId sets the AppId field's value. +func (s *CreateDeploymentInput) SetAppId(v string) *CreateDeploymentInput { + s.AppId = &v + return s +} + +// SetCommand sets the Command field's value. +func (s *CreateDeploymentInput) SetCommand(v *DeploymentCommand) *CreateDeploymentInput { + s.Command = v + return s +} + +// SetComment sets the Comment field's value. +func (s *CreateDeploymentInput) SetComment(v string) *CreateDeploymentInput { + s.Comment = &v + return s +} + +// SetCustomJson sets the CustomJson field's value. +func (s *CreateDeploymentInput) SetCustomJson(v string) *CreateDeploymentInput { + s.CustomJson = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *CreateDeploymentInput) SetInstanceIds(v []*string) *CreateDeploymentInput { + s.InstanceIds = v + return s +} + +// SetLayerIds sets the LayerIds field's value. +func (s *CreateDeploymentInput) SetLayerIds(v []*string) *CreateDeploymentInput { + s.LayerIds = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *CreateDeploymentInput) SetStackId(v string) *CreateDeploymentInput { + s.StackId = &v + return s +} + // Contains the response to a CreateDeployment request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateDeploymentResult type CreateDeploymentOutput struct { _ struct{} `type:"structure"` @@ -6210,28 +6841,35 @@ func (s CreateDeploymentOutput) GoString() string { return s.String() } +// SetDeploymentId sets the DeploymentId field's value. +func (s *CreateDeploymentOutput) SetDeploymentId(v string) *CreateDeploymentOutput { + s.DeploymentId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateInstanceRequest type CreateInstanceInput struct { _ struct{} `type:"structure"` // The default AWS OpsWorks agent version. You have the following options: // - // INHERIT - Use the stack's default agent version setting. + // * INHERIT - Use the stack's default agent version setting. // - // version_number - Use the specified agent version. This value overrides - // the stack's default setting. To update the agent version, edit the instance - // configuration and specify a new version. AWS OpsWorks then automatically - // installs that version on the instance. + // * version_number - Use the specified agent version. This value overrides + // the stack's default setting. To update the agent version, edit the instance + // configuration and specify a new version. AWS OpsWorks then automatically + // installs that version on the instance. // - // The default setting is INHERIT. To specify an agent version, you must - // use the complete version number, not the abbreviated number shown on the - // console. For a list of available agent version numbers, call DescribeAgentVersions. + // The default setting is INHERIT. To specify an agent version, you must use + // the complete version number, not the abbreviated number shown on the console. + // For a list of available agent version numbers, call DescribeAgentVersions. AgentVersion *string `type:"string"` // A custom AMI ID to be used to create the instance. The AMI should be based // on one of the supported operating systems. For more information, see Using // Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). // - // If you specify a custom AMI, you must set Os to Custom. + // If you specify a custom AMI, you must set Os to Custom. AmiId *string `type:"string"` // The instance architecture. The default option is x86_64. Instance types do @@ -6265,7 +6903,7 @@ type CreateInstanceInput struct { // using CreateDeployment to run the update_dependencies stack command or by // manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances. // - // We strongly recommend using the default value of true to ensure that your + // We strongly recommend using the default value of true to ensure that your // instances have the latest security updates. InstallUpdatesOnBoot *bool `type:"boolean"` @@ -6286,31 +6924,31 @@ type CreateInstanceInput struct { // The instance's operating system, which must be set to one of the following. // - // A supported Linux operating system: An Amazon Linux version, such as Amazon - // Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03. + // * A supported Linux operating system: An Amazon Linux version, such as + // Amazon Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03. // - // A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu - // 14.04 LTS, or Ubuntu 12.04 LTS. + // * A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu + // 14.04 LTS, or Ubuntu 12.04 LTS. // - // CentOS 7 + // * CentOS 7 // - // Red Hat Enterprise Linux 7 + // * Red Hat Enterprise Linux 7 // - // A supported Windows operating system, such as Microsoft Windows Server - // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, Microsoft - // Windows Server 2012 R2 with SQL Server Standard, or Microsoft Windows Server - // 2012 R2 with SQL Server Web. + // * A supported Windows operating system, such as Microsoft Windows Server + // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, + // Microsoft Windows Server 2012 R2 with SQL Server Standard, or Microsoft + // Windows Server 2012 R2 with SQL Server Web. // - // A custom AMI: Custom. + // * A custom AMI: Custom. // - // For more information on the supported operating systems, see AWS OpsWorks + // For more information on the supported operating systems, see AWS OpsWorks // Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html). // - // The default option is the current Amazon Linux version. If you set this - // parameter to Custom, you must use the CreateInstance action's AmiId parameter - // to specify the custom AMI that you want to use. Block device mappings are - // not supported if the value is Custom. For more information on the supported - // operating systems, see Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html)For + // The default option is the current Amazon Linux version. If you set this parameter + // to Custom, you must use the CreateInstance action's AmiId parameter to specify + // the custom AMI that you want to use. Block device mappings are not supported + // if the value is Custom. For more information on the supported operating systems, + // see Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html)For // more information on how to use custom AMIs with AWS OpsWorks, see Using Custom // AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). Os *string `type:"string"` @@ -6377,7 +7015,116 @@ func (s *CreateInstanceInput) Validate() error { return nil } +// SetAgentVersion sets the AgentVersion field's value. +func (s *CreateInstanceInput) SetAgentVersion(v string) *CreateInstanceInput { + s.AgentVersion = &v + return s +} + +// SetAmiId sets the AmiId field's value. +func (s *CreateInstanceInput) SetAmiId(v string) *CreateInstanceInput { + s.AmiId = &v + return s +} + +// SetArchitecture sets the Architecture field's value. +func (s *CreateInstanceInput) SetArchitecture(v string) *CreateInstanceInput { + s.Architecture = &v + return s +} + +// SetAutoScalingType sets the AutoScalingType field's value. +func (s *CreateInstanceInput) SetAutoScalingType(v string) *CreateInstanceInput { + s.AutoScalingType = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateInstanceInput) SetAvailabilityZone(v string) *CreateInstanceInput { + s.AvailabilityZone = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *CreateInstanceInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *CreateInstanceInput { + s.BlockDeviceMappings = v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *CreateInstanceInput) SetEbsOptimized(v bool) *CreateInstanceInput { + s.EbsOptimized = &v + return s +} + +// SetHostname sets the Hostname field's value. +func (s *CreateInstanceInput) SetHostname(v string) *CreateInstanceInput { + s.Hostname = &v + return s +} + +// SetInstallUpdatesOnBoot sets the InstallUpdatesOnBoot field's value. +func (s *CreateInstanceInput) SetInstallUpdatesOnBoot(v bool) *CreateInstanceInput { + s.InstallUpdatesOnBoot = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *CreateInstanceInput) SetInstanceType(v string) *CreateInstanceInput { + s.InstanceType = &v + return s +} + +// SetLayerIds sets the LayerIds field's value. +func (s *CreateInstanceInput) SetLayerIds(v []*string) *CreateInstanceInput { + s.LayerIds = v + return s +} + +// SetOs sets the Os field's value. +func (s *CreateInstanceInput) SetOs(v string) *CreateInstanceInput { + s.Os = &v + return s +} + +// SetRootDeviceType sets the RootDeviceType field's value. +func (s *CreateInstanceInput) SetRootDeviceType(v string) *CreateInstanceInput { + s.RootDeviceType = &v + return s +} + +// SetSshKeyName sets the SshKeyName field's value. +func (s *CreateInstanceInput) SetSshKeyName(v string) *CreateInstanceInput { + s.SshKeyName = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *CreateInstanceInput) SetStackId(v string) *CreateInstanceInput { + s.StackId = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *CreateInstanceInput) SetSubnetId(v string) *CreateInstanceInput { + s.SubnetId = &v + return s +} + +// SetTenancy sets the Tenancy field's value. +func (s *CreateInstanceInput) SetTenancy(v string) *CreateInstanceInput { + s.Tenancy = &v + return s +} + +// SetVirtualizationType sets the VirtualizationType field's value. +func (s *CreateInstanceInput) SetVirtualizationType(v string) *CreateInstanceInput { + s.VirtualizationType = &v + return s +} + // Contains the response to a CreateInstance request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateInstanceResult type CreateInstanceOutput struct { _ struct{} `type:"structure"` @@ -6395,6 +7142,13 @@ func (s CreateInstanceOutput) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *CreateInstanceOutput) SetInstanceId(v string) *CreateInstanceOutput { + s.InstanceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateLayerRequest type CreateLayerInput struct { _ struct{} `type:"structure"` @@ -6438,7 +7192,7 @@ type CreateLayerInput struct { // using CreateDeployment to run the update_dependencies stack command or by // manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances. // - // To ensure that your instances have the latest security updates, we strongly + // To ensure that your instances have the latest security updates, we strongly // recommend using the default value of true. InstallUpdatesOnBoot *bool `type:"boolean"` @@ -6528,7 +7282,110 @@ func (s *CreateLayerInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *CreateLayerInput) SetAttributes(v map[string]*string) *CreateLayerInput { + s.Attributes = v + return s +} + +// SetAutoAssignElasticIps sets the AutoAssignElasticIps field's value. +func (s *CreateLayerInput) SetAutoAssignElasticIps(v bool) *CreateLayerInput { + s.AutoAssignElasticIps = &v + return s +} + +// SetAutoAssignPublicIps sets the AutoAssignPublicIps field's value. +func (s *CreateLayerInput) SetAutoAssignPublicIps(v bool) *CreateLayerInput { + s.AutoAssignPublicIps = &v + return s +} + +// SetCustomInstanceProfileArn sets the CustomInstanceProfileArn field's value. +func (s *CreateLayerInput) SetCustomInstanceProfileArn(v string) *CreateLayerInput { + s.CustomInstanceProfileArn = &v + return s +} + +// SetCustomJson sets the CustomJson field's value. +func (s *CreateLayerInput) SetCustomJson(v string) *CreateLayerInput { + s.CustomJson = &v + return s +} + +// SetCustomRecipes sets the CustomRecipes field's value. +func (s *CreateLayerInput) SetCustomRecipes(v *Recipes) *CreateLayerInput { + s.CustomRecipes = v + return s +} + +// SetCustomSecurityGroupIds sets the CustomSecurityGroupIds field's value. +func (s *CreateLayerInput) SetCustomSecurityGroupIds(v []*string) *CreateLayerInput { + s.CustomSecurityGroupIds = v + return s +} + +// SetEnableAutoHealing sets the EnableAutoHealing field's value. +func (s *CreateLayerInput) SetEnableAutoHealing(v bool) *CreateLayerInput { + s.EnableAutoHealing = &v + return s +} + +// SetInstallUpdatesOnBoot sets the InstallUpdatesOnBoot field's value. +func (s *CreateLayerInput) SetInstallUpdatesOnBoot(v bool) *CreateLayerInput { + s.InstallUpdatesOnBoot = &v + return s +} + +// SetLifecycleEventConfiguration sets the LifecycleEventConfiguration field's value. +func (s *CreateLayerInput) SetLifecycleEventConfiguration(v *LifecycleEventConfiguration) *CreateLayerInput { + s.LifecycleEventConfiguration = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateLayerInput) SetName(v string) *CreateLayerInput { + s.Name = &v + return s +} + +// SetPackages sets the Packages field's value. +func (s *CreateLayerInput) SetPackages(v []*string) *CreateLayerInput { + s.Packages = v + return s +} + +// SetShortname sets the Shortname field's value. +func (s *CreateLayerInput) SetShortname(v string) *CreateLayerInput { + s.Shortname = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *CreateLayerInput) SetStackId(v string) *CreateLayerInput { + s.StackId = &v + return s +} + +// SetType sets the Type field's value. +func (s *CreateLayerInput) SetType(v string) *CreateLayerInput { + s.Type = &v + return s +} + +// SetUseEbsOptimizedInstances sets the UseEbsOptimizedInstances field's value. +func (s *CreateLayerInput) SetUseEbsOptimizedInstances(v bool) *CreateLayerInput { + s.UseEbsOptimizedInstances = &v + return s +} + +// SetVolumeConfigurations sets the VolumeConfigurations field's value. +func (s *CreateLayerInput) SetVolumeConfigurations(v []*VolumeConfiguration) *CreateLayerInput { + s.VolumeConfigurations = v + return s +} + // Contains the response to a CreateLayer request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateLayerResult type CreateLayerOutput struct { _ struct{} `type:"structure"` @@ -6546,26 +7403,33 @@ func (s CreateLayerOutput) GoString() string { return s.String() } +// SetLayerId sets the LayerId field's value. +func (s *CreateLayerOutput) SetLayerId(v string) *CreateLayerOutput { + s.LayerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateStackRequest type CreateStackInput struct { _ struct{} `type:"structure"` // The default AWS OpsWorks agent version. You have the following options: // - // Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically - // installs new agent versions on the stack's instances as soon as they are - // available. + // * Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically + // installs new agent versions on the stack's instances as soon as they are + // available. // - // Fixed version - Set this parameter to your preferred agent version. To - // update the agent version, you must edit the stack configuration and specify - // a new version. AWS OpsWorks then automatically installs that version on the - // stack's instances. + // * Fixed version - Set this parameter to your preferred agent version. + // To update the agent version, you must edit the stack configuration and + // specify a new version. AWS OpsWorks then automatically installs that version + // on the stack's instances. // - // The default setting is the most recent release of the agent. To specify - // an agent version, you must use the complete version number, not the abbreviated + // The default setting is the most recent release of the agent. To specify an + // agent version, you must use the complete version number, not the abbreviated // number shown on the console. For a list of available agent version numbers, // call DescribeAgentVersions. // - // You can also specify an agent version when you create or update an instance, + // You can also specify an agent version when you create or update an instance, // which overrides the stack's default setting. AgentVersion *string `type:"string"` @@ -6592,7 +7456,7 @@ type CreateStackInput struct { // the corresponding default stack configuration attribute values or to pass // data to recipes. The string should be in the following format: // - // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" + // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" // // For more information on custom JSON, see Use Custom JSON to Modify the Stack // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html). @@ -6615,25 +7479,25 @@ type CreateStackInput struct { // unless you specify a different operating system when you create the instance. // You can specify one of the following. // - // A supported Linux operating system: An Amazon Linux version, such as Amazon - // Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03. + // * A supported Linux operating system: An Amazon Linux version, such as + // Amazon Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03. // - // A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu - // 14.04 LTS, or Ubuntu 12.04 LTS. + // * A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu + // 14.04 LTS, or Ubuntu 12.04 LTS. // - // CentOS 7 + // * CentOS 7 // - // Red Hat Enterprise Linux 7 + // * Red Hat Enterprise Linux 7 // - // A supported Windows operating system, such as Microsoft Windows Server - // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, Microsoft - // Windows Server 2012 R2 with SQL Server Standard, or Microsoft Windows Server - // 2012 R2 with SQL Server Web. + // * A supported Windows operating system, such as Microsoft Windows Server + // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, + // Microsoft Windows Server 2012 R2 with SQL Server Standard, or Microsoft + // Windows Server 2012 R2 with SQL Server Web. // - // A custom AMI: Custom. You specify the custom AMI you want to use when - // you create instances. For more information, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). + // * A custom AMI: Custom. You specify the custom AMI you want to use when + // you create instances. For more information, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). // - // The default option is the current Amazon Linux version. For more information + // The default option is the current Amazon Linux version. For more information // on the supported operating systems, see AWS OpsWorks Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html). DefaultOs *string `type:"string"` @@ -6665,29 +7529,29 @@ type CreateStackInput struct { // is set to Layer_Dependent, which creates host names by appending integers // to the layer's short name. The other themes are: // - // Baked_Goods + // * Baked_Goods // - // Clouds + // * Clouds // - // Europe_Cities + // * Europe_Cities // - // Fruits + // * Fruits // - // Greek_Deities + // * Greek_Deities // - // Legendary_creatures_from_Japan + // * Legendary_creatures_from_Japan // - // Planets_and_Moons + // * Planets_and_Moons // - // Roman_Deities + // * Roman_Deities // - // Scottish_Islands + // * Scottish_Islands // - // US_Cities + // * US_Cities // - // Wild_Cats + // * Wild_Cats // - // To obtain a generated host name, call GetHostNameSuggestion, which returns + // To obtain a generated host name, call GetHostNameSuggestion, which returns // a host name based on the current theme. HostnameTheme *string `type:"string"` @@ -6721,30 +7585,31 @@ type CreateStackInput struct { // you can instead provide your own custom security groups. UseOpsworksSecurityGroups // has the following settings: // - // True - AWS OpsWorks automatically associates the appropriate built-in - // security group with each layer (default setting). You can associate additional - // security groups with a layer after you create it, but you cannot delete the - // built-in security group. + // * True - AWS OpsWorks automatically associates the appropriate built-in + // security group with each layer (default setting). You can associate additional + // security groups with a layer after you create it, but you cannot delete + // the built-in security group. // - // False - AWS OpsWorks does not associate built-in security groups with - // layers. You must create appropriate EC2 security groups and associate a security - // group with each layer that you create. However, you can still manually associate - // a built-in security group with a layer on creation; custom security groups - // are required only for those layers that need custom settings. + // * False - AWS OpsWorks does not associate built-in security groups with + // layers. You must create appropriate EC2 security groups and associate + // a security group with each layer that you create. However, you can still + // manually associate a built-in security group with a layer on creation; + // custom security groups are required only for those layers that need custom + // settings. // - // For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html). + // For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html). UseOpsworksSecurityGroups *bool `type:"boolean"` // The ID of the VPC that the stack is to be launched into. The VPC must be // in the stack's region. All instances are launched into this VPC. You cannot // change the ID later. // - // If your account supports EC2-Classic, the default value is no VPC. + // * If your account supports EC2-Classic, the default value is no VPC. // - // If your account does not support EC2-Classic, the default value is the - // default VPC for the specified region. + // * If your account does not support EC2-Classic, the default value is the + // default VPC for the specified region. // - // If the VPC ID corresponds to a default VPC and you have specified either + // If the VPC ID corresponds to a default VPC and you have specified either // the DefaultAvailabilityZone or the DefaultSubnetId parameter only, AWS OpsWorks // infers the value of the other parameter. If you specify neither parameter, // AWS OpsWorks sets these parameters to the first valid Availability Zone for @@ -6752,12 +7617,12 @@ type CreateStackInput struct { // // If you specify a nondefault VPC ID, note the following: // - // It must belong to a VPC in your account that is in the specified region. + // * It must belong to a VPC in your account that is in the specified region. // - // You must specify a value for DefaultSubnetId. + // * You must specify a value for DefaultSubnetId. // - // For more information on how to use AWS OpsWorks with a VPC, see Running - // a Stack in a VPC (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-vpc.html). + // For more information on how to use AWS OpsWorks with a VPC, see Running a + // Stack in a VPC (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-vpc.html). // For more information on default VPC and EC2-Classic, see Supported Platforms // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html). VpcId *string `type:"string"` @@ -6795,7 +7660,122 @@ func (s *CreateStackInput) Validate() error { return nil } +// SetAgentVersion sets the AgentVersion field's value. +func (s *CreateStackInput) SetAgentVersion(v string) *CreateStackInput { + s.AgentVersion = &v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *CreateStackInput) SetAttributes(v map[string]*string) *CreateStackInput { + s.Attributes = v + return s +} + +// SetChefConfiguration sets the ChefConfiguration field's value. +func (s *CreateStackInput) SetChefConfiguration(v *ChefConfiguration) *CreateStackInput { + s.ChefConfiguration = v + return s +} + +// SetConfigurationManager sets the ConfigurationManager field's value. +func (s *CreateStackInput) SetConfigurationManager(v *StackConfigurationManager) *CreateStackInput { + s.ConfigurationManager = v + return s +} + +// SetCustomCookbooksSource sets the CustomCookbooksSource field's value. +func (s *CreateStackInput) SetCustomCookbooksSource(v *Source) *CreateStackInput { + s.CustomCookbooksSource = v + return s +} + +// SetCustomJson sets the CustomJson field's value. +func (s *CreateStackInput) SetCustomJson(v string) *CreateStackInput { + s.CustomJson = &v + return s +} + +// SetDefaultAvailabilityZone sets the DefaultAvailabilityZone field's value. +func (s *CreateStackInput) SetDefaultAvailabilityZone(v string) *CreateStackInput { + s.DefaultAvailabilityZone = &v + return s +} + +// SetDefaultInstanceProfileArn sets the DefaultInstanceProfileArn field's value. +func (s *CreateStackInput) SetDefaultInstanceProfileArn(v string) *CreateStackInput { + s.DefaultInstanceProfileArn = &v + return s +} + +// SetDefaultOs sets the DefaultOs field's value. +func (s *CreateStackInput) SetDefaultOs(v string) *CreateStackInput { + s.DefaultOs = &v + return s +} + +// SetDefaultRootDeviceType sets the DefaultRootDeviceType field's value. +func (s *CreateStackInput) SetDefaultRootDeviceType(v string) *CreateStackInput { + s.DefaultRootDeviceType = &v + return s +} + +// SetDefaultSshKeyName sets the DefaultSshKeyName field's value. +func (s *CreateStackInput) SetDefaultSshKeyName(v string) *CreateStackInput { + s.DefaultSshKeyName = &v + return s +} + +// SetDefaultSubnetId sets the DefaultSubnetId field's value. +func (s *CreateStackInput) SetDefaultSubnetId(v string) *CreateStackInput { + s.DefaultSubnetId = &v + return s +} + +// SetHostnameTheme sets the HostnameTheme field's value. +func (s *CreateStackInput) SetHostnameTheme(v string) *CreateStackInput { + s.HostnameTheme = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateStackInput) SetName(v string) *CreateStackInput { + s.Name = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *CreateStackInput) SetRegion(v string) *CreateStackInput { + s.Region = &v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *CreateStackInput) SetServiceRoleArn(v string) *CreateStackInput { + s.ServiceRoleArn = &v + return s +} + +// SetUseCustomCookbooks sets the UseCustomCookbooks field's value. +func (s *CreateStackInput) SetUseCustomCookbooks(v bool) *CreateStackInput { + s.UseCustomCookbooks = &v + return s +} + +// SetUseOpsworksSecurityGroups sets the UseOpsworksSecurityGroups field's value. +func (s *CreateStackInput) SetUseOpsworksSecurityGroups(v bool) *CreateStackInput { + s.UseOpsworksSecurityGroups = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CreateStackInput) SetVpcId(v string) *CreateStackInput { + s.VpcId = &v + return s +} + // Contains the response to a CreateStack request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateStackResult type CreateStackOutput struct { _ struct{} `type:"structure"` @@ -6814,6 +7794,13 @@ func (s CreateStackOutput) GoString() string { return s.String() } +// SetStackId sets the StackId field's value. +func (s *CreateStackOutput) SetStackId(v string) *CreateStackOutput { + s.StackId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateUserProfileRequest type CreateUserProfileInput struct { _ struct{} `type:"structure"` @@ -6860,11 +7847,36 @@ func (s *CreateUserProfileInput) Validate() error { return nil } -// Contains the response to a CreateUserProfile request. -type CreateUserProfileOutput struct { - _ struct{} `type:"structure"` +// SetAllowSelfManagement sets the AllowSelfManagement field's value. +func (s *CreateUserProfileInput) SetAllowSelfManagement(v bool) *CreateUserProfileInput { + s.AllowSelfManagement = &v + return s +} - // The user's IAM ARN. +// SetIamUserArn sets the IamUserArn field's value. +func (s *CreateUserProfileInput) SetIamUserArn(v string) *CreateUserProfileInput { + s.IamUserArn = &v + return s +} + +// SetSshPublicKey sets the SshPublicKey field's value. +func (s *CreateUserProfileInput) SetSshPublicKey(v string) *CreateUserProfileInput { + s.SshPublicKey = &v + return s +} + +// SetSshUsername sets the SshUsername field's value. +func (s *CreateUserProfileInput) SetSshUsername(v string) *CreateUserProfileInput { + s.SshUsername = &v + return s +} + +// Contains the response to a CreateUserProfile request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateUserProfileResult +type CreateUserProfileOutput struct { + _ struct{} `type:"structure"` + + // The user's IAM ARN. IamUserArn *string `type:"string"` } @@ -6878,7 +7890,14 @@ func (s CreateUserProfileOutput) GoString() string { return s.String() } +// SetIamUserArn sets the IamUserArn field's value. +func (s *CreateUserProfileOutput) SetIamUserArn(v string) *CreateUserProfileOutput { + s.IamUserArn = &v + return s +} + // Describes an app's data source. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DataSource type DataSource struct { _ struct{} `type:"structure"` @@ -6903,6 +7922,25 @@ func (s DataSource) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *DataSource) SetArn(v string) *DataSource { + s.Arn = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *DataSource) SetDatabaseName(v string) *DataSource { + s.DatabaseName = &v + return s +} + +// SetType sets the Type field's value. +func (s *DataSource) SetType(v string) *DataSource { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteAppRequest type DeleteAppInput struct { _ struct{} `type:"structure"` @@ -6935,6 +7973,13 @@ func (s *DeleteAppInput) Validate() error { return nil } +// SetAppId sets the AppId field's value. +func (s *DeleteAppInput) SetAppId(v string) *DeleteAppInput { + s.AppId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteAppOutput type DeleteAppOutput struct { _ struct{} `type:"structure"` } @@ -6949,6 +7994,7 @@ func (s DeleteAppOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteInstanceRequest type DeleteInstanceInput struct { _ struct{} `type:"structure"` @@ -6987,6 +8033,25 @@ func (s *DeleteInstanceInput) Validate() error { return nil } +// SetDeleteElasticIp sets the DeleteElasticIp field's value. +func (s *DeleteInstanceInput) SetDeleteElasticIp(v bool) *DeleteInstanceInput { + s.DeleteElasticIp = &v + return s +} + +// SetDeleteVolumes sets the DeleteVolumes field's value. +func (s *DeleteInstanceInput) SetDeleteVolumes(v bool) *DeleteInstanceInput { + s.DeleteVolumes = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DeleteInstanceInput) SetInstanceId(v string) *DeleteInstanceInput { + s.InstanceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteInstanceOutput type DeleteInstanceOutput struct { _ struct{} `type:"structure"` } @@ -7001,6 +8066,7 @@ func (s DeleteInstanceOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteLayerRequest type DeleteLayerInput struct { _ struct{} `type:"structure"` @@ -7033,6 +8099,13 @@ func (s *DeleteLayerInput) Validate() error { return nil } +// SetLayerId sets the LayerId field's value. +func (s *DeleteLayerInput) SetLayerId(v string) *DeleteLayerInput { + s.LayerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteLayerOutput type DeleteLayerOutput struct { _ struct{} `type:"structure"` } @@ -7047,6 +8120,7 @@ func (s DeleteLayerOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteStackRequest type DeleteStackInput struct { _ struct{} `type:"structure"` @@ -7079,6 +8153,13 @@ func (s *DeleteStackInput) Validate() error { return nil } +// SetStackId sets the StackId field's value. +func (s *DeleteStackInput) SetStackId(v string) *DeleteStackInput { + s.StackId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteStackOutput type DeleteStackOutput struct { _ struct{} `type:"structure"` } @@ -7093,6 +8174,7 @@ func (s DeleteStackOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteUserProfileRequest type DeleteUserProfileInput struct { _ struct{} `type:"structure"` @@ -7125,6 +8207,13 @@ func (s *DeleteUserProfileInput) Validate() error { return nil } +// SetIamUserArn sets the IamUserArn field's value. +func (s *DeleteUserProfileInput) SetIamUserArn(v string) *DeleteUserProfileInput { + s.IamUserArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteUserProfileOutput type DeleteUserProfileOutput struct { _ struct{} `type:"structure"` } @@ -7140,6 +8229,7 @@ func (s DeleteUserProfileOutput) GoString() string { } // Describes a deployment of a stack or app. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/Deployment type Deployment struct { _ struct{} `type:"structure"` @@ -7162,7 +8252,7 @@ type Deployment struct { // the corresponding default stack configuration attribute values for stack // or to pass data to recipes. The string should be in the following format: // - // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" + // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" // // For more information on custom JSON, see Use Custom JSON to Modify the Stack // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html). @@ -7185,11 +8275,11 @@ type Deployment struct { // The deployment status: // - // running + // * running // - // successful + // * successful // - // failed + // * failed Status *string `type:"string"` } @@ -7203,67 +8293,141 @@ func (s Deployment) GoString() string { return s.String() } +// SetAppId sets the AppId field's value. +func (s *Deployment) SetAppId(v string) *Deployment { + s.AppId = &v + return s +} + +// SetCommand sets the Command field's value. +func (s *Deployment) SetCommand(v *DeploymentCommand) *Deployment { + s.Command = v + return s +} + +// SetComment sets the Comment field's value. +func (s *Deployment) SetComment(v string) *Deployment { + s.Comment = &v + return s +} + +// SetCompletedAt sets the CompletedAt field's value. +func (s *Deployment) SetCompletedAt(v string) *Deployment { + s.CompletedAt = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Deployment) SetCreatedAt(v string) *Deployment { + s.CreatedAt = &v + return s +} + +// SetCustomJson sets the CustomJson field's value. +func (s *Deployment) SetCustomJson(v string) *Deployment { + s.CustomJson = &v + return s +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *Deployment) SetDeploymentId(v string) *Deployment { + s.DeploymentId = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *Deployment) SetDuration(v int64) *Deployment { + s.Duration = &v + return s +} + +// SetIamUserArn sets the IamUserArn field's value. +func (s *Deployment) SetIamUserArn(v string) *Deployment { + s.IamUserArn = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *Deployment) SetInstanceIds(v []*string) *Deployment { + s.InstanceIds = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *Deployment) SetStackId(v string) *Deployment { + s.StackId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Deployment) SetStatus(v string) *Deployment { + s.Status = &v + return s +} + // Used to specify a stack or deployment command. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeploymentCommand type DeploymentCommand struct { _ struct{} `type:"structure"` // The arguments of those commands that take arguments. It should be set to // a JSON object with the following format: // - // {"arg_name1" : ["value1", "value2", ...], "arg_name2" : ["value1", "value2", + // {"arg_name1" : ["value1", "value2", ...], "arg_name2" : ["value1", "value2", // ...], ...} // // The update_dependencies command takes two arguments: // - // upgrade_os_to - Specifies the desired Amazon Linux version for instances - // whose OS you want to upgrade, such as Amazon Linux 2014.09. You must also - // set the allow_reboot argument to true. + // * upgrade_os_to - Specifies the desired Amazon Linux version for instances + // whose OS you want to upgrade, such as Amazon Linux 2014.09. You must also + // set the allow_reboot argument to true. // - // allow_reboot - Specifies whether to allow AWS OpsWorks to reboot the - // instances if necessary, after installing the updates. This argument can be - // set to either true or false. The default value is false. + // * allow_reboot - Specifies whether to allow AWS OpsWorks to reboot the + // instances if necessary, after installing the updates. This argument can + // be set to either true or false. The default value is false. // - // For example, to upgrade an instance to Amazon Linux 2014.09, set Args - // to the following. + // For example, to upgrade an instance to Amazon Linux 2014.09, set Args to + // the following. // - // { "upgrade_os_to":["Amazon Linux 2014.09"], "allow_reboot":["true"] } + // { "upgrade_os_to":["Amazon Linux 2014.09"], "allow_reboot":["true"] } Args map[string][]*string `type:"map"` // Specifies the operation. You can specify only one command. // // For stacks, the following commands are available: // - // execute_recipes: Execute one or more recipes. To specify the recipes, - // set an Args parameter named recipes to the list of recipes to be executed. - // For example, to execute phpapp::appsetup, set Args to {"recipes":["phpapp::appsetup"]}. + // * execute_recipes: Execute one or more recipes. To specify the recipes, + // set an Args parameter named recipes to the list of recipes to be executed. + // For example, to execute phpapp::appsetup, set Args to {"recipes":["phpapp::appsetup"]}. // - // install_dependencies: Install the stack's dependencies. + // * install_dependencies: Install the stack's dependencies. // - // update_custom_cookbooks: Update the stack's custom cookbooks. + // * update_custom_cookbooks: Update the stack's custom cookbooks. // - // update_dependencies: Update the stack's dependencies. + // * update_dependencies: Update the stack's dependencies. // - // The update_dependencies and install_dependencies commands are supported - // only for Linux instances. You can run the commands successfully on Windows - // instances, but they do nothing. + // The update_dependencies and install_dependencies commands are supported only + // for Linux instances. You can run the commands successfully on Windows instances, + // but they do nothing. // - // For apps, the following commands are available: + // For apps, the following commands are available: // - // deploy: Deploy an app. Ruby on Rails apps have an optional Args parameter - // named migrate. Set Args to {"migrate":["true"]} to migrate the database. - // The default setting is {"migrate":["false"]}. + // * deploy: Deploy an app. Ruby on Rails apps have an optional Args parameter + // named migrate. Set Args to {"migrate":["true"]} to migrate the database. + // The default setting is {"migrate":["false"]}. // - // rollback Roll the app back to the previous version. When you update an - // app, AWS OpsWorks stores the previous version, up to a maximum of five versions. - // You can use this command to roll an app back as many as four versions. + // * rollback Roll the app back to the previous version. When you update + // an app, AWS OpsWorks stores the previous version, up to a maximum of five + // versions. You can use this command to roll an app back as many as four + // versions. // - // start: Start the app's web or application server. + // * start: Start the app's web or application server. // - // stop: Stop the app's web or application server. + // * stop: Stop the app's web or application server. // - // restart: Restart the app's web or application server. + // * restart: Restart the app's web or application server. // - // undeploy: Undeploy the app. + // * undeploy: Undeploy the app. // // Name is a required field Name *string `type:"string" required:"true" enum:"DeploymentCommandName"` @@ -7292,6 +8456,19 @@ func (s *DeploymentCommand) Validate() error { return nil } +// SetArgs sets the Args field's value. +func (s *DeploymentCommand) SetArgs(v map[string][]*string) *DeploymentCommand { + s.Args = v + return s +} + +// SetName sets the Name field's value. +func (s *DeploymentCommand) SetName(v string) *DeploymentCommand { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterEcsClusterRequest type DeregisterEcsClusterInput struct { _ struct{} `type:"structure"` @@ -7324,6 +8501,13 @@ func (s *DeregisterEcsClusterInput) Validate() error { return nil } +// SetEcsClusterArn sets the EcsClusterArn field's value. +func (s *DeregisterEcsClusterInput) SetEcsClusterArn(v string) *DeregisterEcsClusterInput { + s.EcsClusterArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterEcsClusterOutput type DeregisterEcsClusterOutput struct { _ struct{} `type:"structure"` } @@ -7338,6 +8522,7 @@ func (s DeregisterEcsClusterOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterElasticIpRequest type DeregisterElasticIpInput struct { _ struct{} `type:"structure"` @@ -7370,6 +8555,13 @@ func (s *DeregisterElasticIpInput) Validate() error { return nil } +// SetElasticIp sets the ElasticIp field's value. +func (s *DeregisterElasticIpInput) SetElasticIp(v string) *DeregisterElasticIpInput { + s.ElasticIp = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterElasticIpOutput type DeregisterElasticIpOutput struct { _ struct{} `type:"structure"` } @@ -7384,6 +8576,7 @@ func (s DeregisterElasticIpOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterInstanceRequest type DeregisterInstanceInput struct { _ struct{} `type:"structure"` @@ -7416,6 +8609,13 @@ func (s *DeregisterInstanceInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *DeregisterInstanceInput) SetInstanceId(v string) *DeregisterInstanceInput { + s.InstanceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterInstanceOutput type DeregisterInstanceOutput struct { _ struct{} `type:"structure"` } @@ -7430,6 +8630,7 @@ func (s DeregisterInstanceOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterRdsDbInstanceRequest type DeregisterRdsDbInstanceInput struct { _ struct{} `type:"structure"` @@ -7462,6 +8663,13 @@ func (s *DeregisterRdsDbInstanceInput) Validate() error { return nil } +// SetRdsDbInstanceArn sets the RdsDbInstanceArn field's value. +func (s *DeregisterRdsDbInstanceInput) SetRdsDbInstanceArn(v string) *DeregisterRdsDbInstanceInput { + s.RdsDbInstanceArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterRdsDbInstanceOutput type DeregisterRdsDbInstanceOutput struct { _ struct{} `type:"structure"` } @@ -7476,6 +8684,7 @@ func (s DeregisterRdsDbInstanceOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterVolumeRequest type DeregisterVolumeInput struct { _ struct{} `type:"structure"` @@ -7510,6 +8719,13 @@ func (s *DeregisterVolumeInput) Validate() error { return nil } +// SetVolumeId sets the VolumeId field's value. +func (s *DeregisterVolumeInput) SetVolumeId(v string) *DeregisterVolumeInput { + s.VolumeId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterVolumeOutput type DeregisterVolumeOutput struct { _ struct{} `type:"structure"` } @@ -7524,6 +8740,7 @@ func (s DeregisterVolumeOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeAgentVersionsRequest type DescribeAgentVersionsInput struct { _ struct{} `type:"structure"` @@ -7544,7 +8761,20 @@ func (s DescribeAgentVersionsInput) GoString() string { return s.String() } +// SetConfigurationManager sets the ConfigurationManager field's value. +func (s *DescribeAgentVersionsInput) SetConfigurationManager(v *StackConfigurationManager) *DescribeAgentVersionsInput { + s.ConfigurationManager = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeAgentVersionsInput) SetStackId(v string) *DescribeAgentVersionsInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeAgentVersions request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeAgentVersionsResult type DescribeAgentVersionsOutput struct { _ struct{} `type:"structure"` @@ -7564,6 +8794,13 @@ func (s DescribeAgentVersionsOutput) GoString() string { return s.String() } +// SetAgentVersions sets the AgentVersions field's value. +func (s *DescribeAgentVersionsOutput) SetAgentVersions(v []*AgentVersion) *DescribeAgentVersionsOutput { + s.AgentVersions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeAppsRequest type DescribeAppsInput struct { _ struct{} `type:"structure"` @@ -7587,7 +8824,20 @@ func (s DescribeAppsInput) GoString() string { return s.String() } +// SetAppIds sets the AppIds field's value. +func (s *DescribeAppsInput) SetAppIds(v []*string) *DescribeAppsInput { + s.AppIds = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeAppsInput) SetStackId(v string) *DescribeAppsInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeApps request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeAppsResult type DescribeAppsOutput struct { _ struct{} `type:"structure"` @@ -7605,6 +8855,13 @@ func (s DescribeAppsOutput) GoString() string { return s.String() } +// SetApps sets the Apps field's value. +func (s *DescribeAppsOutput) SetApps(v []*App) *DescribeAppsOutput { + s.Apps = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeCommandsRequest type DescribeCommandsInput struct { _ struct{} `type:"structure"` @@ -7632,7 +8889,26 @@ func (s DescribeCommandsInput) GoString() string { return s.String() } +// SetCommandIds sets the CommandIds field's value. +func (s *DescribeCommandsInput) SetCommandIds(v []*string) *DescribeCommandsInput { + s.CommandIds = v + return s +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *DescribeCommandsInput) SetDeploymentId(v string) *DescribeCommandsInput { + s.DeploymentId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeCommandsInput) SetInstanceId(v string) *DescribeCommandsInput { + s.InstanceId = &v + return s +} + // Contains the response to a DescribeCommands request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeCommandsResult type DescribeCommandsOutput struct { _ struct{} `type:"structure"` @@ -7650,6 +8926,13 @@ func (s DescribeCommandsOutput) GoString() string { return s.String() } +// SetCommands sets the Commands field's value. +func (s *DescribeCommandsOutput) SetCommands(v []*Command) *DescribeCommandsOutput { + s.Commands = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeDeploymentsRequest type DescribeDeploymentsInput struct { _ struct{} `type:"structure"` @@ -7677,7 +8960,26 @@ func (s DescribeDeploymentsInput) GoString() string { return s.String() } +// SetAppId sets the AppId field's value. +func (s *DescribeDeploymentsInput) SetAppId(v string) *DescribeDeploymentsInput { + s.AppId = &v + return s +} + +// SetDeploymentIds sets the DeploymentIds field's value. +func (s *DescribeDeploymentsInput) SetDeploymentIds(v []*string) *DescribeDeploymentsInput { + s.DeploymentIds = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeDeploymentsInput) SetStackId(v string) *DescribeDeploymentsInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeDeployments request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeDeploymentsResult type DescribeDeploymentsOutput struct { _ struct{} `type:"structure"` @@ -7695,6 +8997,13 @@ func (s DescribeDeploymentsOutput) GoString() string { return s.String() } +// SetDeployments sets the Deployments field's value. +func (s *DescribeDeploymentsOutput) SetDeployments(v []*Deployment) *DescribeDeploymentsOutput { + s.Deployments = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeEcsClustersRequest type DescribeEcsClustersInput struct { _ struct{} `type:"structure"` @@ -7730,7 +9039,32 @@ func (s DescribeEcsClustersInput) GoString() string { return s.String() } +// SetEcsClusterArns sets the EcsClusterArns field's value. +func (s *DescribeEcsClustersInput) SetEcsClusterArns(v []*string) *DescribeEcsClustersInput { + s.EcsClusterArns = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeEcsClustersInput) SetMaxResults(v int64) *DescribeEcsClustersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEcsClustersInput) SetNextToken(v string) *DescribeEcsClustersInput { + s.NextToken = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeEcsClustersInput) SetStackId(v string) *DescribeEcsClustersInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeEcsClusters request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeEcsClustersResult type DescribeEcsClustersOutput struct { _ struct{} `type:"structure"` @@ -7754,6 +9088,19 @@ func (s DescribeEcsClustersOutput) GoString() string { return s.String() } +// SetEcsClusters sets the EcsClusters field's value. +func (s *DescribeEcsClustersOutput) SetEcsClusters(v []*EcsCluster) *DescribeEcsClustersOutput { + s.EcsClusters = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEcsClustersOutput) SetNextToken(v string) *DescribeEcsClustersOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeElasticIpsRequest type DescribeElasticIpsInput struct { _ struct{} `type:"structure"` @@ -7781,7 +9128,26 @@ func (s DescribeElasticIpsInput) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeElasticIpsInput) SetInstanceId(v string) *DescribeElasticIpsInput { + s.InstanceId = &v + return s +} + +// SetIps sets the Ips field's value. +func (s *DescribeElasticIpsInput) SetIps(v []*string) *DescribeElasticIpsInput { + s.Ips = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeElasticIpsInput) SetStackId(v string) *DescribeElasticIpsInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeElasticIps request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeElasticIpsResult type DescribeElasticIpsOutput struct { _ struct{} `type:"structure"` @@ -7799,6 +9165,13 @@ func (s DescribeElasticIpsOutput) GoString() string { return s.String() } +// SetElasticIps sets the ElasticIps field's value. +func (s *DescribeElasticIpsOutput) SetElasticIps(v []*ElasticIp) *DescribeElasticIpsOutput { + s.ElasticIps = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeElasticLoadBalancersRequest type DescribeElasticLoadBalancersInput struct { _ struct{} `type:"structure"` @@ -7820,7 +9193,20 @@ func (s DescribeElasticLoadBalancersInput) GoString() string { return s.String() } +// SetLayerIds sets the LayerIds field's value. +func (s *DescribeElasticLoadBalancersInput) SetLayerIds(v []*string) *DescribeElasticLoadBalancersInput { + s.LayerIds = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeElasticLoadBalancersInput) SetStackId(v string) *DescribeElasticLoadBalancersInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeElasticLoadBalancers request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeElasticLoadBalancersResult type DescribeElasticLoadBalancersOutput struct { _ struct{} `type:"structure"` @@ -7839,6 +9225,13 @@ func (s DescribeElasticLoadBalancersOutput) GoString() string { return s.String() } +// SetElasticLoadBalancers sets the ElasticLoadBalancers field's value. +func (s *DescribeElasticLoadBalancersOutput) SetElasticLoadBalancers(v []*ElasticLoadBalancer) *DescribeElasticLoadBalancersOutput { + s.ElasticLoadBalancers = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeInstancesRequest type DescribeInstancesInput struct { _ struct{} `type:"structure"` @@ -7866,7 +9259,26 @@ func (s DescribeInstancesInput) GoString() string { return s.String() } +// SetInstanceIds sets the InstanceIds field's value. +func (s *DescribeInstancesInput) SetInstanceIds(v []*string) *DescribeInstancesInput { + s.InstanceIds = v + return s +} + +// SetLayerId sets the LayerId field's value. +func (s *DescribeInstancesInput) SetLayerId(v string) *DescribeInstancesInput { + s.LayerId = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeInstancesInput) SetStackId(v string) *DescribeInstancesInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeInstances request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeInstancesResult type DescribeInstancesOutput struct { _ struct{} `type:"structure"` @@ -7884,6 +9296,13 @@ func (s DescribeInstancesOutput) GoString() string { return s.String() } +// SetInstances sets the Instances field's value. +func (s *DescribeInstancesOutput) SetInstances(v []*Instance) *DescribeInstancesOutput { + s.Instances = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeLayersRequest type DescribeLayersInput struct { _ struct{} `type:"structure"` @@ -7906,7 +9325,20 @@ func (s DescribeLayersInput) GoString() string { return s.String() } +// SetLayerIds sets the LayerIds field's value. +func (s *DescribeLayersInput) SetLayerIds(v []*string) *DescribeLayersInput { + s.LayerIds = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeLayersInput) SetStackId(v string) *DescribeLayersInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeLayers request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeLayersResult type DescribeLayersOutput struct { _ struct{} `type:"structure"` @@ -7924,6 +9356,13 @@ func (s DescribeLayersOutput) GoString() string { return s.String() } +// SetLayers sets the Layers field's value. +func (s *DescribeLayersOutput) SetLayers(v []*Layer) *DescribeLayersOutput { + s.Layers = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeLoadBasedAutoScalingRequest type DescribeLoadBasedAutoScalingInput struct { _ struct{} `type:"structure"` @@ -7956,7 +9395,14 @@ func (s *DescribeLoadBasedAutoScalingInput) Validate() error { return nil } +// SetLayerIds sets the LayerIds field's value. +func (s *DescribeLoadBasedAutoScalingInput) SetLayerIds(v []*string) *DescribeLoadBasedAutoScalingInput { + s.LayerIds = v + return s +} + // Contains the response to a DescribeLoadBasedAutoScaling request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeLoadBasedAutoScalingResult type DescribeLoadBasedAutoScalingOutput struct { _ struct{} `type:"structure"` @@ -7975,6 +9421,13 @@ func (s DescribeLoadBasedAutoScalingOutput) GoString() string { return s.String() } +// SetLoadBasedAutoScalingConfigurations sets the LoadBasedAutoScalingConfigurations field's value. +func (s *DescribeLoadBasedAutoScalingOutput) SetLoadBasedAutoScalingConfigurations(v []*LoadBasedAutoScalingConfiguration) *DescribeLoadBasedAutoScalingOutput { + s.LoadBasedAutoScalingConfigurations = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeMyUserProfileInput type DescribeMyUserProfileInput struct { _ struct{} `type:"structure"` } @@ -7990,6 +9443,7 @@ func (s DescribeMyUserProfileInput) GoString() string { } // Contains the response to a DescribeMyUserProfile request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeMyUserProfileResult type DescribeMyUserProfileOutput struct { _ struct{} `type:"structure"` @@ -8007,6 +9461,13 @@ func (s DescribeMyUserProfileOutput) GoString() string { return s.String() } +// SetUserProfile sets the UserProfile field's value. +func (s *DescribeMyUserProfileOutput) SetUserProfile(v *SelfUserProfile) *DescribeMyUserProfileOutput { + s.UserProfile = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribePermissionsRequest type DescribePermissionsInput struct { _ struct{} `type:"structure"` @@ -8028,21 +9489,34 @@ func (s DescribePermissionsInput) GoString() string { return s.String() } +// SetIamUserArn sets the IamUserArn field's value. +func (s *DescribePermissionsInput) SetIamUserArn(v string) *DescribePermissionsInput { + s.IamUserArn = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribePermissionsInput) SetStackId(v string) *DescribePermissionsInput { + s.StackId = &v + return s +} + // Contains the response to a DescribePermissions request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribePermissionsResult type DescribePermissionsOutput struct { _ struct{} `type:"structure"` // An array of Permission objects that describe the stack permissions. // - // If the request object contains only a stack ID, the array contains a Permission - // object with permissions for each of the stack IAM ARNs. + // * If the request object contains only a stack ID, the array contains a + // Permission object with permissions for each of the stack IAM ARNs. // - // If the request object contains only an IAM ARN, the array contains a Permission - // object with permissions for each of the user's stack IDs. + // * If the request object contains only an IAM ARN, the array contains a + // Permission object with permissions for each of the user's stack IDs. // - // If the request contains a stack ID and an IAM ARN, the array contains - // a single Permission object with permissions for the specified stack and IAM - // ARN. + // * If the request contains a stack ID and an IAM ARN, the array contains + // a single Permission object with permissions for the specified stack and + // IAM ARN. Permissions []*Permission `type:"list"` } @@ -8056,6 +9530,13 @@ func (s DescribePermissionsOutput) GoString() string { return s.String() } +// SetPermissions sets the Permissions field's value. +func (s *DescribePermissionsOutput) SetPermissions(v []*Permission) *DescribePermissionsOutput { + s.Permissions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeRaidArraysRequest type DescribeRaidArraysInput struct { _ struct{} `type:"structure"` @@ -8082,7 +9563,26 @@ func (s DescribeRaidArraysInput) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeRaidArraysInput) SetInstanceId(v string) *DescribeRaidArraysInput { + s.InstanceId = &v + return s +} + +// SetRaidArrayIds sets the RaidArrayIds field's value. +func (s *DescribeRaidArraysInput) SetRaidArrayIds(v []*string) *DescribeRaidArraysInput { + s.RaidArrayIds = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeRaidArraysInput) SetStackId(v string) *DescribeRaidArraysInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeRaidArrays request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeRaidArraysResult type DescribeRaidArraysOutput struct { _ struct{} `type:"structure"` @@ -8100,6 +9600,13 @@ func (s DescribeRaidArraysOutput) GoString() string { return s.String() } +// SetRaidArrays sets the RaidArrays field's value. +func (s *DescribeRaidArraysOutput) SetRaidArrays(v []*RaidArray) *DescribeRaidArraysOutput { + s.RaidArrays = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeRdsDbInstancesRequest type DescribeRdsDbInstancesInput struct { _ struct{} `type:"structure"` @@ -8136,7 +9643,20 @@ func (s *DescribeRdsDbInstancesInput) Validate() error { return nil } +// SetRdsDbInstanceArns sets the RdsDbInstanceArns field's value. +func (s *DescribeRdsDbInstancesInput) SetRdsDbInstanceArns(v []*string) *DescribeRdsDbInstancesInput { + s.RdsDbInstanceArns = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeRdsDbInstancesInput) SetStackId(v string) *DescribeRdsDbInstancesInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeRdsDbInstances request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeRdsDbInstancesResult type DescribeRdsDbInstancesOutput struct { _ struct{} `type:"structure"` @@ -8154,6 +9674,13 @@ func (s DescribeRdsDbInstancesOutput) GoString() string { return s.String() } +// SetRdsDbInstances sets the RdsDbInstances field's value. +func (s *DescribeRdsDbInstancesOutput) SetRdsDbInstances(v []*RdsDbInstance) *DescribeRdsDbInstancesOutput { + s.RdsDbInstances = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeServiceErrorsRequest type DescribeServiceErrorsInput struct { _ struct{} `type:"structure"` @@ -8181,7 +9708,26 @@ func (s DescribeServiceErrorsInput) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeServiceErrorsInput) SetInstanceId(v string) *DescribeServiceErrorsInput { + s.InstanceId = &v + return s +} + +// SetServiceErrorIds sets the ServiceErrorIds field's value. +func (s *DescribeServiceErrorsInput) SetServiceErrorIds(v []*string) *DescribeServiceErrorsInput { + s.ServiceErrorIds = v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeServiceErrorsInput) SetStackId(v string) *DescribeServiceErrorsInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeServiceErrors request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeServiceErrorsResult type DescribeServiceErrorsOutput struct { _ struct{} `type:"structure"` @@ -8199,6 +9745,13 @@ func (s DescribeServiceErrorsOutput) GoString() string { return s.String() } +// SetServiceErrors sets the ServiceErrors field's value. +func (s *DescribeServiceErrorsOutput) SetServiceErrors(v []*ServiceError) *DescribeServiceErrorsOutput { + s.ServiceErrors = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeStackProvisioningParametersRequest type DescribeStackProvisioningParametersInput struct { _ struct{} `type:"structure"` @@ -8231,7 +9784,14 @@ func (s *DescribeStackProvisioningParametersInput) Validate() error { return nil } +// SetStackId sets the StackId field's value. +func (s *DescribeStackProvisioningParametersInput) SetStackId(v string) *DescribeStackProvisioningParametersInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeStackProvisioningParameters request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeStackProvisioningParametersResult type DescribeStackProvisioningParametersOutput struct { _ struct{} `type:"structure"` @@ -8252,6 +9812,19 @@ func (s DescribeStackProvisioningParametersOutput) GoString() string { return s.String() } +// SetAgentInstallerUrl sets the AgentInstallerUrl field's value. +func (s *DescribeStackProvisioningParametersOutput) SetAgentInstallerUrl(v string) *DescribeStackProvisioningParametersOutput { + s.AgentInstallerUrl = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *DescribeStackProvisioningParametersOutput) SetParameters(v map[string]*string) *DescribeStackProvisioningParametersOutput { + s.Parameters = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeStackSummaryRequest type DescribeStackSummaryInput struct { _ struct{} `type:"structure"` @@ -8284,7 +9857,14 @@ func (s *DescribeStackSummaryInput) Validate() error { return nil } +// SetStackId sets the StackId field's value. +func (s *DescribeStackSummaryInput) SetStackId(v string) *DescribeStackSummaryInput { + s.StackId = &v + return s +} + // Contains the response to a DescribeStackSummary request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeStackSummaryResult type DescribeStackSummaryOutput struct { _ struct{} `type:"structure"` @@ -8302,6 +9882,13 @@ func (s DescribeStackSummaryOutput) GoString() string { return s.String() } +// SetStackSummary sets the StackSummary field's value. +func (s *DescribeStackSummaryOutput) SetStackSummary(v *StackSummary) *DescribeStackSummaryOutput { + s.StackSummary = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeStacksRequest type DescribeStacksInput struct { _ struct{} `type:"structure"` @@ -8320,7 +9907,14 @@ func (s DescribeStacksInput) GoString() string { return s.String() } +// SetStackIds sets the StackIds field's value. +func (s *DescribeStacksInput) SetStackIds(v []*string) *DescribeStacksInput { + s.StackIds = v + return s +} + // Contains the response to a DescribeStacks request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeStacksResult type DescribeStacksOutput struct { _ struct{} `type:"structure"` @@ -8338,6 +9932,13 @@ func (s DescribeStacksOutput) GoString() string { return s.String() } +// SetStacks sets the Stacks field's value. +func (s *DescribeStacksOutput) SetStacks(v []*Stack) *DescribeStacksOutput { + s.Stacks = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeTimeBasedAutoScalingRequest type DescribeTimeBasedAutoScalingInput struct { _ struct{} `type:"structure"` @@ -8370,7 +9971,14 @@ func (s *DescribeTimeBasedAutoScalingInput) Validate() error { return nil } +// SetInstanceIds sets the InstanceIds field's value. +func (s *DescribeTimeBasedAutoScalingInput) SetInstanceIds(v []*string) *DescribeTimeBasedAutoScalingInput { + s.InstanceIds = v + return s +} + // Contains the response to a DescribeTimeBasedAutoScaling request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeTimeBasedAutoScalingResult type DescribeTimeBasedAutoScalingOutput struct { _ struct{} `type:"structure"` @@ -8389,6 +9997,13 @@ func (s DescribeTimeBasedAutoScalingOutput) GoString() string { return s.String() } +// SetTimeBasedAutoScalingConfigurations sets the TimeBasedAutoScalingConfigurations field's value. +func (s *DescribeTimeBasedAutoScalingOutput) SetTimeBasedAutoScalingConfigurations(v []*TimeBasedAutoScalingConfiguration) *DescribeTimeBasedAutoScalingOutput { + s.TimeBasedAutoScalingConfigurations = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeUserProfilesRequest type DescribeUserProfilesInput struct { _ struct{} `type:"structure"` @@ -8406,7 +10021,14 @@ func (s DescribeUserProfilesInput) GoString() string { return s.String() } +// SetIamUserArns sets the IamUserArns field's value. +func (s *DescribeUserProfilesInput) SetIamUserArns(v []*string) *DescribeUserProfilesInput { + s.IamUserArns = v + return s +} + // Contains the response to a DescribeUserProfiles request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeUserProfilesResult type DescribeUserProfilesOutput struct { _ struct{} `type:"structure"` @@ -8424,6 +10046,13 @@ func (s DescribeUserProfilesOutput) GoString() string { return s.String() } +// SetUserProfiles sets the UserProfiles field's value. +func (s *DescribeUserProfilesOutput) SetUserProfiles(v []*UserProfile) *DescribeUserProfilesOutput { + s.UserProfiles = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeVolumesRequest type DescribeVolumesInput struct { _ struct{} `type:"structure"` @@ -8454,7 +10083,32 @@ func (s DescribeVolumesInput) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeVolumesInput) SetInstanceId(v string) *DescribeVolumesInput { + s.InstanceId = &v + return s +} + +// SetRaidArrayId sets the RaidArrayId field's value. +func (s *DescribeVolumesInput) SetRaidArrayId(v string) *DescribeVolumesInput { + s.RaidArrayId = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeVolumesInput) SetStackId(v string) *DescribeVolumesInput { + s.StackId = &v + return s +} + +// SetVolumeIds sets the VolumeIds field's value. +func (s *DescribeVolumesInput) SetVolumeIds(v []*string) *DescribeVolumesInput { + s.VolumeIds = v + return s +} + // Contains the response to a DescribeVolumes request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeVolumesResult type DescribeVolumesOutput struct { _ struct{} `type:"structure"` @@ -8472,6 +10126,13 @@ func (s DescribeVolumesOutput) GoString() string { return s.String() } +// SetVolumes sets the Volumes field's value. +func (s *DescribeVolumesOutput) SetVolumes(v []*Volume) *DescribeVolumesOutput { + s.Volumes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DetachElasticLoadBalancerRequest type DetachElasticLoadBalancerInput struct { _ struct{} `type:"structure"` @@ -8513,6 +10174,19 @@ func (s *DetachElasticLoadBalancerInput) Validate() error { return nil } +// SetElasticLoadBalancerName sets the ElasticLoadBalancerName field's value. +func (s *DetachElasticLoadBalancerInput) SetElasticLoadBalancerName(v string) *DetachElasticLoadBalancerInput { + s.ElasticLoadBalancerName = &v + return s +} + +// SetLayerId sets the LayerId field's value. +func (s *DetachElasticLoadBalancerInput) SetLayerId(v string) *DetachElasticLoadBalancerInput { + s.LayerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DetachElasticLoadBalancerOutput type DetachElasticLoadBalancerOutput struct { _ struct{} `type:"structure"` } @@ -8527,6 +10201,7 @@ func (s DetachElasticLoadBalancerOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DisassociateElasticIpRequest type DisassociateElasticIpInput struct { _ struct{} `type:"structure"` @@ -8559,6 +10234,13 @@ func (s *DisassociateElasticIpInput) Validate() error { return nil } +// SetElasticIp sets the ElasticIp field's value. +func (s *DisassociateElasticIpInput) SetElasticIp(v string) *DisassociateElasticIpInput { + s.ElasticIp = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DisassociateElasticIpOutput type DisassociateElasticIpOutput struct { _ struct{} `type:"structure"` } @@ -8576,6 +10258,7 @@ func (s DisassociateElasticIpOutput) GoString() string { // Describes an Amazon EBS volume. This data type maps directly to the Amazon // EC2 EbsBlockDevice (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EbsBlockDevice.html) // data type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/EbsBlockDevice type EbsBlockDevice struct { _ struct{} `type:"structure"` @@ -8607,7 +10290,38 @@ func (s EbsBlockDevice) GoString() string { return s.String() } +// SetDeleteOnTermination sets the DeleteOnTermination field's value. +func (s *EbsBlockDevice) SetDeleteOnTermination(v bool) *EbsBlockDevice { + s.DeleteOnTermination = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *EbsBlockDevice) SetIops(v int64) *EbsBlockDevice { + s.Iops = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *EbsBlockDevice) SetSnapshotId(v string) *EbsBlockDevice { + s.SnapshotId = &v + return s +} + +// SetVolumeSize sets the VolumeSize field's value. +func (s *EbsBlockDevice) SetVolumeSize(v int64) *EbsBlockDevice { + s.VolumeSize = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *EbsBlockDevice) SetVolumeType(v string) *EbsBlockDevice { + s.VolumeType = &v + return s +} + // Describes a registered Amazon ECS cluster. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/EcsCluster type EcsCluster struct { _ struct{} `type:"structure"` @@ -8634,7 +10348,32 @@ func (s EcsCluster) GoString() string { return s.String() } +// SetEcsClusterArn sets the EcsClusterArn field's value. +func (s *EcsCluster) SetEcsClusterArn(v string) *EcsCluster { + s.EcsClusterArn = &v + return s +} + +// SetEcsClusterName sets the EcsClusterName field's value. +func (s *EcsCluster) SetEcsClusterName(v string) *EcsCluster { + s.EcsClusterName = &v + return s +} + +// SetRegisteredAt sets the RegisteredAt field's value. +func (s *EcsCluster) SetRegisteredAt(v string) *EcsCluster { + s.RegisteredAt = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *EcsCluster) SetStackId(v string) *EcsCluster { + s.StackId = &v + return s +} + // Describes an Elastic IP address. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/ElasticIp type ElasticIp struct { _ struct{} `type:"structure"` @@ -8664,7 +10403,38 @@ func (s ElasticIp) GoString() string { return s.String() } +// SetDomain sets the Domain field's value. +func (s *ElasticIp) SetDomain(v string) *ElasticIp { + s.Domain = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ElasticIp) SetInstanceId(v string) *ElasticIp { + s.InstanceId = &v + return s +} + +// SetIp sets the Ip field's value. +func (s *ElasticIp) SetIp(v string) *ElasticIp { + s.Ip = &v + return s +} + +// SetName sets the Name field's value. +func (s *ElasticIp) SetName(v string) *ElasticIp { + s.Name = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *ElasticIp) SetRegion(v string) *ElasticIp { + s.Region = &v + return s +} + // Describes an Elastic Load Balancing instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/ElasticLoadBalancer type ElasticLoadBalancer struct { _ struct{} `type:"structure"` @@ -8707,22 +10477,77 @@ func (s ElasticLoadBalancer) GoString() string { return s.String() } -// Represents an app's environment variable. -type EnvironmentVariable struct { - _ struct{} `type:"structure"` +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *ElasticLoadBalancer) SetAvailabilityZones(v []*string) *ElasticLoadBalancer { + s.AvailabilityZones = v + return s +} - // (Required) The environment variable's name, which can consist of up to 64 - // characters and must be specified. The name can contain upper- and lowercase - // letters, numbers, and underscores (_), but it must start with a letter or - // underscore. - // - // Key is a required field - Key *string `type:"string" required:"true"` +// SetDnsName sets the DnsName field's value. +func (s *ElasticLoadBalancer) SetDnsName(v string) *ElasticLoadBalancer { + s.DnsName = &v + return s +} - // (Optional) Whether the variable's value will be returned by the DescribeApps - // action. To conceal an environment variable's value, set Secure to true. DescribeApps - // then returns *****FILTERED***** instead of the actual value. The default - // value for Secure is false. +// SetEc2InstanceIds sets the Ec2InstanceIds field's value. +func (s *ElasticLoadBalancer) SetEc2InstanceIds(v []*string) *ElasticLoadBalancer { + s.Ec2InstanceIds = v + return s +} + +// SetElasticLoadBalancerName sets the ElasticLoadBalancerName field's value. +func (s *ElasticLoadBalancer) SetElasticLoadBalancerName(v string) *ElasticLoadBalancer { + s.ElasticLoadBalancerName = &v + return s +} + +// SetLayerId sets the LayerId field's value. +func (s *ElasticLoadBalancer) SetLayerId(v string) *ElasticLoadBalancer { + s.LayerId = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *ElasticLoadBalancer) SetRegion(v string) *ElasticLoadBalancer { + s.Region = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *ElasticLoadBalancer) SetStackId(v string) *ElasticLoadBalancer { + s.StackId = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *ElasticLoadBalancer) SetSubnetIds(v []*string) *ElasticLoadBalancer { + s.SubnetIds = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *ElasticLoadBalancer) SetVpcId(v string) *ElasticLoadBalancer { + s.VpcId = &v + return s +} + +// Represents an app's environment variable. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/EnvironmentVariable +type EnvironmentVariable struct { + _ struct{} `type:"structure"` + + // (Required) The environment variable's name, which can consist of up to 64 + // characters and must be specified. The name can contain upper- and lowercase + // letters, numbers, and underscores (_), but it must start with a letter or + // underscore. + // + // Key is a required field + Key *string `type:"string" required:"true"` + + // (Optional) Whether the variable's value will be returned by the DescribeApps + // action. To conceal an environment variable's value, set Secure to true. DescribeApps + // then returns *****FILTERED***** instead of the actual value. The default + // value for Secure is false. Secure *bool `type:"boolean"` // (Optional) The environment variable's value, which can be left empty. If @@ -8759,6 +10584,25 @@ func (s *EnvironmentVariable) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *EnvironmentVariable) SetKey(v string) *EnvironmentVariable { + s.Key = &v + return s +} + +// SetSecure sets the Secure field's value. +func (s *EnvironmentVariable) SetSecure(v bool) *EnvironmentVariable { + s.Secure = &v + return s +} + +// SetValue sets the Value field's value. +func (s *EnvironmentVariable) SetValue(v string) *EnvironmentVariable { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/GetHostnameSuggestionRequest type GetHostnameSuggestionInput struct { _ struct{} `type:"structure"` @@ -8791,7 +10635,14 @@ func (s *GetHostnameSuggestionInput) Validate() error { return nil } +// SetLayerId sets the LayerId field's value. +func (s *GetHostnameSuggestionInput) SetLayerId(v string) *GetHostnameSuggestionInput { + s.LayerId = &v + return s +} + // Contains the response to a GetHostnameSuggestion request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/GetHostnameSuggestionResult type GetHostnameSuggestionOutput struct { _ struct{} `type:"structure"` @@ -8812,6 +10663,19 @@ func (s GetHostnameSuggestionOutput) GoString() string { return s.String() } +// SetHostname sets the Hostname field's value. +func (s *GetHostnameSuggestionOutput) SetHostname(v string) *GetHostnameSuggestionOutput { + s.Hostname = &v + return s +} + +// SetLayerId sets the LayerId field's value. +func (s *GetHostnameSuggestionOutput) SetLayerId(v string) *GetHostnameSuggestionOutput { + s.LayerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/GrantAccessRequest type GrantAccessInput struct { _ struct{} `type:"structure"` @@ -8853,7 +10717,20 @@ func (s *GrantAccessInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *GrantAccessInput) SetInstanceId(v string) *GrantAccessInput { + s.InstanceId = &v + return s +} + +// SetValidForInMinutes sets the ValidForInMinutes field's value. +func (s *GrantAccessInput) SetValidForInMinutes(v int64) *GrantAccessInput { + s.ValidForInMinutes = &v + return s +} + // Contains the response to a GrantAccess request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/GrantAccessResult type GrantAccessOutput struct { _ struct{} `type:"structure"` @@ -8872,7 +10749,14 @@ func (s GrantAccessOutput) GoString() string { return s.String() } +// SetTemporaryCredential sets the TemporaryCredential field's value. +func (s *GrantAccessOutput) SetTemporaryCredential(v *TemporaryCredential) *GrantAccessOutput { + s.TemporaryCredential = v + return s +} + // Describes an instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/Instance type Instance struct { _ struct{} `type:"structure"` @@ -8928,7 +10812,7 @@ type Instance struct { // update_dependencies stack command or by manually running yum (Amazon Linux) // or apt-get (Ubuntu) on the instances. // - // We strongly recommend using the default value of true, to ensure that your + // We strongly recommend using the default value of true, to ensure that your // instances have the latest security updates. InstallUpdatesOnBoot *bool `type:"boolean"` @@ -8999,35 +10883,35 @@ type Instance struct { // The instance status: // - // booting + // * booting // - // connection_lost + // * connection_lost // - // online + // * online // - // pending + // * pending // - // rebooting + // * rebooting // - // requested + // * requested // - // running_setup + // * running_setup // - // setup_failed + // * setup_failed // - // shutting_down + // * shutting_down // - // start_failed + // * start_failed // - // stop_failed + // * stop_failed // - // stopped + // * stopped // - // stopping + // * stopping // - // terminated + // * terminated // - // terminating + // * terminating Status *string `type:"string"` // The instance's subnet ID; applicable only if the stack is running in a VPC. @@ -9050,8 +10934,249 @@ func (s Instance) GoString() string { return s.String() } +// SetAgentVersion sets the AgentVersion field's value. +func (s *Instance) SetAgentVersion(v string) *Instance { + s.AgentVersion = &v + return s +} + +// SetAmiId sets the AmiId field's value. +func (s *Instance) SetAmiId(v string) *Instance { + s.AmiId = &v + return s +} + +// SetArchitecture sets the Architecture field's value. +func (s *Instance) SetArchitecture(v string) *Instance { + s.Architecture = &v + return s +} + +// SetAutoScalingType sets the AutoScalingType field's value. +func (s *Instance) SetAutoScalingType(v string) *Instance { + s.AutoScalingType = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Instance) SetAvailabilityZone(v string) *Instance { + s.AvailabilityZone = &v + return s +} + +// SetBlockDeviceMappings sets the BlockDeviceMappings field's value. +func (s *Instance) SetBlockDeviceMappings(v []*BlockDeviceMapping) *Instance { + s.BlockDeviceMappings = v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Instance) SetCreatedAt(v string) *Instance { + s.CreatedAt = &v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *Instance) SetEbsOptimized(v bool) *Instance { + s.EbsOptimized = &v + return s +} + +// SetEc2InstanceId sets the Ec2InstanceId field's value. +func (s *Instance) SetEc2InstanceId(v string) *Instance { + s.Ec2InstanceId = &v + return s +} + +// SetEcsClusterArn sets the EcsClusterArn field's value. +func (s *Instance) SetEcsClusterArn(v string) *Instance { + s.EcsClusterArn = &v + return s +} + +// SetEcsContainerInstanceArn sets the EcsContainerInstanceArn field's value. +func (s *Instance) SetEcsContainerInstanceArn(v string) *Instance { + s.EcsContainerInstanceArn = &v + return s +} + +// SetElasticIp sets the ElasticIp field's value. +func (s *Instance) SetElasticIp(v string) *Instance { + s.ElasticIp = &v + return s +} + +// SetHostname sets the Hostname field's value. +func (s *Instance) SetHostname(v string) *Instance { + s.Hostname = &v + return s +} + +// SetInfrastructureClass sets the InfrastructureClass field's value. +func (s *Instance) SetInfrastructureClass(v string) *Instance { + s.InfrastructureClass = &v + return s +} + +// SetInstallUpdatesOnBoot sets the InstallUpdatesOnBoot field's value. +func (s *Instance) SetInstallUpdatesOnBoot(v bool) *Instance { + s.InstallUpdatesOnBoot = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *Instance) SetInstanceId(v string) *Instance { + s.InstanceId = &v + return s +} + +// SetInstanceProfileArn sets the InstanceProfileArn field's value. +func (s *Instance) SetInstanceProfileArn(v string) *Instance { + s.InstanceProfileArn = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *Instance) SetInstanceType(v string) *Instance { + s.InstanceType = &v + return s +} + +// SetLastServiceErrorId sets the LastServiceErrorId field's value. +func (s *Instance) SetLastServiceErrorId(v string) *Instance { + s.LastServiceErrorId = &v + return s +} + +// SetLayerIds sets the LayerIds field's value. +func (s *Instance) SetLayerIds(v []*string) *Instance { + s.LayerIds = v + return s +} + +// SetOs sets the Os field's value. +func (s *Instance) SetOs(v string) *Instance { + s.Os = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *Instance) SetPlatform(v string) *Instance { + s.Platform = &v + return s +} + +// SetPrivateDns sets the PrivateDns field's value. +func (s *Instance) SetPrivateDns(v string) *Instance { + s.PrivateDns = &v + return s +} + +// SetPrivateIp sets the PrivateIp field's value. +func (s *Instance) SetPrivateIp(v string) *Instance { + s.PrivateIp = &v + return s +} + +// SetPublicDns sets the PublicDns field's value. +func (s *Instance) SetPublicDns(v string) *Instance { + s.PublicDns = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *Instance) SetPublicIp(v string) *Instance { + s.PublicIp = &v + return s +} + +// SetRegisteredBy sets the RegisteredBy field's value. +func (s *Instance) SetRegisteredBy(v string) *Instance { + s.RegisteredBy = &v + return s +} + +// SetReportedAgentVersion sets the ReportedAgentVersion field's value. +func (s *Instance) SetReportedAgentVersion(v string) *Instance { + s.ReportedAgentVersion = &v + return s +} + +// SetReportedOs sets the ReportedOs field's value. +func (s *Instance) SetReportedOs(v *ReportedOs) *Instance { + s.ReportedOs = v + return s +} + +// SetRootDeviceType sets the RootDeviceType field's value. +func (s *Instance) SetRootDeviceType(v string) *Instance { + s.RootDeviceType = &v + return s +} + +// SetRootDeviceVolumeId sets the RootDeviceVolumeId field's value. +func (s *Instance) SetRootDeviceVolumeId(v string) *Instance { + s.RootDeviceVolumeId = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *Instance) SetSecurityGroupIds(v []*string) *Instance { + s.SecurityGroupIds = v + return s +} + +// SetSshHostDsaKeyFingerprint sets the SshHostDsaKeyFingerprint field's value. +func (s *Instance) SetSshHostDsaKeyFingerprint(v string) *Instance { + s.SshHostDsaKeyFingerprint = &v + return s +} + +// SetSshHostRsaKeyFingerprint sets the SshHostRsaKeyFingerprint field's value. +func (s *Instance) SetSshHostRsaKeyFingerprint(v string) *Instance { + s.SshHostRsaKeyFingerprint = &v + return s +} + +// SetSshKeyName sets the SshKeyName field's value. +func (s *Instance) SetSshKeyName(v string) *Instance { + s.SshKeyName = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *Instance) SetStackId(v string) *Instance { + s.StackId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Instance) SetStatus(v string) *Instance { + s.Status = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *Instance) SetSubnetId(v string) *Instance { + s.SubnetId = &v + return s +} + +// SetTenancy sets the Tenancy field's value. +func (s *Instance) SetTenancy(v string) *Instance { + s.Tenancy = &v + return s +} + +// SetVirtualizationType sets the VirtualizationType field's value. +func (s *Instance) SetVirtualizationType(v string) *Instance { + s.VirtualizationType = &v + return s +} + // Contains a description of an Amazon EC2 instance from the Amazon EC2 metadata // service. For more information, see Instance Metadata and User Data (http://docs.aws.amazon.com/sdkfornet/latest/apidocs/Index.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/InstanceIdentity type InstanceIdentity struct { _ struct{} `type:"structure"` @@ -9072,7 +11197,20 @@ func (s InstanceIdentity) GoString() string { return s.String() } +// SetDocument sets the Document field's value. +func (s *InstanceIdentity) SetDocument(v string) *InstanceIdentity { + s.Document = &v + return s +} + +// SetSignature sets the Signature field's value. +func (s *InstanceIdentity) SetSignature(v string) *InstanceIdentity { + s.Signature = &v + return s +} + // Describes how many instances a stack has for each status. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/InstancesCount type InstancesCount struct { _ struct{} `type:"structure"` @@ -9144,7 +11282,122 @@ func (s InstancesCount) GoString() string { return s.String() } +// SetAssigning sets the Assigning field's value. +func (s *InstancesCount) SetAssigning(v int64) *InstancesCount { + s.Assigning = &v + return s +} + +// SetBooting sets the Booting field's value. +func (s *InstancesCount) SetBooting(v int64) *InstancesCount { + s.Booting = &v + return s +} + +// SetConnectionLost sets the ConnectionLost field's value. +func (s *InstancesCount) SetConnectionLost(v int64) *InstancesCount { + s.ConnectionLost = &v + return s +} + +// SetDeregistering sets the Deregistering field's value. +func (s *InstancesCount) SetDeregistering(v int64) *InstancesCount { + s.Deregistering = &v + return s +} + +// SetOnline sets the Online field's value. +func (s *InstancesCount) SetOnline(v int64) *InstancesCount { + s.Online = &v + return s +} + +// SetPending sets the Pending field's value. +func (s *InstancesCount) SetPending(v int64) *InstancesCount { + s.Pending = &v + return s +} + +// SetRebooting sets the Rebooting field's value. +func (s *InstancesCount) SetRebooting(v int64) *InstancesCount { + s.Rebooting = &v + return s +} + +// SetRegistered sets the Registered field's value. +func (s *InstancesCount) SetRegistered(v int64) *InstancesCount { + s.Registered = &v + return s +} + +// SetRegistering sets the Registering field's value. +func (s *InstancesCount) SetRegistering(v int64) *InstancesCount { + s.Registering = &v + return s +} + +// SetRequested sets the Requested field's value. +func (s *InstancesCount) SetRequested(v int64) *InstancesCount { + s.Requested = &v + return s +} + +// SetRunningSetup sets the RunningSetup field's value. +func (s *InstancesCount) SetRunningSetup(v int64) *InstancesCount { + s.RunningSetup = &v + return s +} + +// SetSetupFailed sets the SetupFailed field's value. +func (s *InstancesCount) SetSetupFailed(v int64) *InstancesCount { + s.SetupFailed = &v + return s +} + +// SetShuttingDown sets the ShuttingDown field's value. +func (s *InstancesCount) SetShuttingDown(v int64) *InstancesCount { + s.ShuttingDown = &v + return s +} + +// SetStartFailed sets the StartFailed field's value. +func (s *InstancesCount) SetStartFailed(v int64) *InstancesCount { + s.StartFailed = &v + return s +} + +// SetStopped sets the Stopped field's value. +func (s *InstancesCount) SetStopped(v int64) *InstancesCount { + s.Stopped = &v + return s +} + +// SetStopping sets the Stopping field's value. +func (s *InstancesCount) SetStopping(v int64) *InstancesCount { + s.Stopping = &v + return s +} + +// SetTerminated sets the Terminated field's value. +func (s *InstancesCount) SetTerminated(v int64) *InstancesCount { + s.Terminated = &v + return s +} + +// SetTerminating sets the Terminating field's value. +func (s *InstancesCount) SetTerminating(v int64) *InstancesCount { + s.Terminating = &v + return s +} + +// SetUnassigning sets the Unassigning field's value. +func (s *InstancesCount) SetUnassigning(v int64) *InstancesCount { + s.Unassigning = &v + return s +} + // Describes a layer. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/Layer type Layer struct { _ struct{} `type:"structure"` @@ -9208,7 +11461,7 @@ type Layer struct { // update_dependencies stack command or manually running yum (Amazon Linux) // or apt-get (Ubuntu) on the instances. // - // We strongly recommend using the default value of true, to ensure that your + // We strongly recommend using the default value of true, to ensure that your // instances have the latest security updates. InstallUpdatesOnBoot *bool `type:"boolean"` @@ -9250,7 +11503,134 @@ func (s Layer) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *Layer) SetAttributes(v map[string]*string) *Layer { + s.Attributes = v + return s +} + +// SetAutoAssignElasticIps sets the AutoAssignElasticIps field's value. +func (s *Layer) SetAutoAssignElasticIps(v bool) *Layer { + s.AutoAssignElasticIps = &v + return s +} + +// SetAutoAssignPublicIps sets the AutoAssignPublicIps field's value. +func (s *Layer) SetAutoAssignPublicIps(v bool) *Layer { + s.AutoAssignPublicIps = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Layer) SetCreatedAt(v string) *Layer { + s.CreatedAt = &v + return s +} + +// SetCustomInstanceProfileArn sets the CustomInstanceProfileArn field's value. +func (s *Layer) SetCustomInstanceProfileArn(v string) *Layer { + s.CustomInstanceProfileArn = &v + return s +} + +// SetCustomJson sets the CustomJson field's value. +func (s *Layer) SetCustomJson(v string) *Layer { + s.CustomJson = &v + return s +} + +// SetCustomRecipes sets the CustomRecipes field's value. +func (s *Layer) SetCustomRecipes(v *Recipes) *Layer { + s.CustomRecipes = v + return s +} + +// SetCustomSecurityGroupIds sets the CustomSecurityGroupIds field's value. +func (s *Layer) SetCustomSecurityGroupIds(v []*string) *Layer { + s.CustomSecurityGroupIds = v + return s +} + +// SetDefaultRecipes sets the DefaultRecipes field's value. +func (s *Layer) SetDefaultRecipes(v *Recipes) *Layer { + s.DefaultRecipes = v + return s +} + +// SetDefaultSecurityGroupNames sets the DefaultSecurityGroupNames field's value. +func (s *Layer) SetDefaultSecurityGroupNames(v []*string) *Layer { + s.DefaultSecurityGroupNames = v + return s +} + +// SetEnableAutoHealing sets the EnableAutoHealing field's value. +func (s *Layer) SetEnableAutoHealing(v bool) *Layer { + s.EnableAutoHealing = &v + return s +} + +// SetInstallUpdatesOnBoot sets the InstallUpdatesOnBoot field's value. +func (s *Layer) SetInstallUpdatesOnBoot(v bool) *Layer { + s.InstallUpdatesOnBoot = &v + return s +} + +// SetLayerId sets the LayerId field's value. +func (s *Layer) SetLayerId(v string) *Layer { + s.LayerId = &v + return s +} + +// SetLifecycleEventConfiguration sets the LifecycleEventConfiguration field's value. +func (s *Layer) SetLifecycleEventConfiguration(v *LifecycleEventConfiguration) *Layer { + s.LifecycleEventConfiguration = v + return s +} + +// SetName sets the Name field's value. +func (s *Layer) SetName(v string) *Layer { + s.Name = &v + return s +} + +// SetPackages sets the Packages field's value. +func (s *Layer) SetPackages(v []*string) *Layer { + s.Packages = v + return s +} + +// SetShortname sets the Shortname field's value. +func (s *Layer) SetShortname(v string) *Layer { + s.Shortname = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *Layer) SetStackId(v string) *Layer { + s.StackId = &v + return s +} + +// SetType sets the Type field's value. +func (s *Layer) SetType(v string) *Layer { + s.Type = &v + return s +} + +// SetUseEbsOptimizedInstances sets the UseEbsOptimizedInstances field's value. +func (s *Layer) SetUseEbsOptimizedInstances(v bool) *Layer { + s.UseEbsOptimizedInstances = &v + return s +} + +// SetVolumeConfigurations sets the VolumeConfigurations field's value. +func (s *Layer) SetVolumeConfigurations(v []*VolumeConfiguration) *Layer { + s.VolumeConfigurations = v + return s +} + // Specifies the lifecycle event configuration +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/LifecycleEventConfiguration type LifecycleEventConfiguration struct { _ struct{} `type:"structure"` @@ -9268,7 +11648,14 @@ func (s LifecycleEventConfiguration) GoString() string { return s.String() } +// SetShutdown sets the Shutdown field's value. +func (s *LifecycleEventConfiguration) SetShutdown(v *ShutdownEventConfiguration) *LifecycleEventConfiguration { + s.Shutdown = v + return s +} + // Describes a layer's load-based auto scaling configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/LoadBasedAutoScalingConfiguration type LoadBasedAutoScalingConfiguration struct { _ struct{} `type:"structure"` @@ -9297,7 +11684,32 @@ func (s LoadBasedAutoScalingConfiguration) GoString() string { return s.String() } +// SetDownScaling sets the DownScaling field's value. +func (s *LoadBasedAutoScalingConfiguration) SetDownScaling(v *AutoScalingThresholds) *LoadBasedAutoScalingConfiguration { + s.DownScaling = v + return s +} + +// SetEnable sets the Enable field's value. +func (s *LoadBasedAutoScalingConfiguration) SetEnable(v bool) *LoadBasedAutoScalingConfiguration { + s.Enable = &v + return s +} + +// SetLayerId sets the LayerId field's value. +func (s *LoadBasedAutoScalingConfiguration) SetLayerId(v string) *LoadBasedAutoScalingConfiguration { + s.LayerId = &v + return s +} + +// SetUpScaling sets the UpScaling field's value. +func (s *LoadBasedAutoScalingConfiguration) SetUpScaling(v *AutoScalingThresholds) *LoadBasedAutoScalingConfiguration { + s.UpScaling = v + return s +} + // Describes stack or user permissions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/Permission type Permission struct { _ struct{} `type:"structure"` @@ -9313,18 +11725,18 @@ type Permission struct { // The user's permission level, which must be the following: // - // deny + // * deny // - // show + // * show // - // deploy + // * deploy // - // manage + // * manage // - // iam_only + // * iam_only // - // For more information on the permissions associated with these levels, - // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html) + // For more information on the permissions associated with these levels, see + // Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html) Level *string `type:"string"` // A stack ID. @@ -9341,7 +11753,38 @@ func (s Permission) GoString() string { return s.String() } +// SetAllowSsh sets the AllowSsh field's value. +func (s *Permission) SetAllowSsh(v bool) *Permission { + s.AllowSsh = &v + return s +} + +// SetAllowSudo sets the AllowSudo field's value. +func (s *Permission) SetAllowSudo(v bool) *Permission { + s.AllowSudo = &v + return s +} + +// SetIamUserArn sets the IamUserArn field's value. +func (s *Permission) SetIamUserArn(v string) *Permission { + s.IamUserArn = &v + return s +} + +// SetLevel sets the Level field's value. +func (s *Permission) SetLevel(v string) *Permission { + s.Level = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *Permission) SetStackId(v string) *Permission { + s.StackId = &v + return s +} + // Describes an instance's RAID array. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RaidArray type RaidArray struct { _ struct{} `type:"structure"` @@ -9396,7 +11839,86 @@ func (s RaidArray) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *RaidArray) SetAvailabilityZone(v string) *RaidArray { + s.AvailabilityZone = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *RaidArray) SetCreatedAt(v string) *RaidArray { + s.CreatedAt = &v + return s +} + +// SetDevice sets the Device field's value. +func (s *RaidArray) SetDevice(v string) *RaidArray { + s.Device = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *RaidArray) SetInstanceId(v string) *RaidArray { + s.InstanceId = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *RaidArray) SetIops(v int64) *RaidArray { + s.Iops = &v + return s +} + +// SetMountPoint sets the MountPoint field's value. +func (s *RaidArray) SetMountPoint(v string) *RaidArray { + s.MountPoint = &v + return s +} + +// SetName sets the Name field's value. +func (s *RaidArray) SetName(v string) *RaidArray { + s.Name = &v + return s +} + +// SetNumberOfDisks sets the NumberOfDisks field's value. +func (s *RaidArray) SetNumberOfDisks(v int64) *RaidArray { + s.NumberOfDisks = &v + return s +} + +// SetRaidArrayId sets the RaidArrayId field's value. +func (s *RaidArray) SetRaidArrayId(v string) *RaidArray { + s.RaidArrayId = &v + return s +} + +// SetRaidLevel sets the RaidLevel field's value. +func (s *RaidArray) SetRaidLevel(v int64) *RaidArray { + s.RaidLevel = &v + return s +} + +// SetSize sets the Size field's value. +func (s *RaidArray) SetSize(v int64) *RaidArray { + s.Size = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *RaidArray) SetStackId(v string) *RaidArray { + s.StackId = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *RaidArray) SetVolumeType(v string) *RaidArray { + s.VolumeType = &v + return s +} + // Describes an Amazon RDS instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RdsDbInstance type RdsDbInstance struct { _ struct{} `type:"structure"` @@ -9440,6 +11962,61 @@ func (s RdsDbInstance) GoString() string { return s.String() } +// SetAddress sets the Address field's value. +func (s *RdsDbInstance) SetAddress(v string) *RdsDbInstance { + s.Address = &v + return s +} + +// SetDbInstanceIdentifier sets the DbInstanceIdentifier field's value. +func (s *RdsDbInstance) SetDbInstanceIdentifier(v string) *RdsDbInstance { + s.DbInstanceIdentifier = &v + return s +} + +// SetDbPassword sets the DbPassword field's value. +func (s *RdsDbInstance) SetDbPassword(v string) *RdsDbInstance { + s.DbPassword = &v + return s +} + +// SetDbUser sets the DbUser field's value. +func (s *RdsDbInstance) SetDbUser(v string) *RdsDbInstance { + s.DbUser = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *RdsDbInstance) SetEngine(v string) *RdsDbInstance { + s.Engine = &v + return s +} + +// SetMissingOnRds sets the MissingOnRds field's value. +func (s *RdsDbInstance) SetMissingOnRds(v bool) *RdsDbInstance { + s.MissingOnRds = &v + return s +} + +// SetRdsDbInstanceArn sets the RdsDbInstanceArn field's value. +func (s *RdsDbInstance) SetRdsDbInstanceArn(v string) *RdsDbInstance { + s.RdsDbInstanceArn = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *RdsDbInstance) SetRegion(v string) *RdsDbInstance { + s.Region = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *RdsDbInstance) SetStackId(v string) *RdsDbInstance { + s.StackId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RebootInstanceRequest type RebootInstanceInput struct { _ struct{} `type:"structure"` @@ -9472,6 +12049,13 @@ func (s *RebootInstanceInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *RebootInstanceInput) SetInstanceId(v string) *RebootInstanceInput { + s.InstanceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RebootInstanceOutput type RebootInstanceOutput struct { _ struct{} `type:"structure"` } @@ -9497,6 +12081,7 @@ func (s RebootInstanceOutput) GoString() string { // followed by two colons and the recipe name, which is the recipe's file name // without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb // recipe in the repository's phpapp2 folder. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/Recipes type Recipes struct { _ struct{} `type:"structure"` @@ -9526,6 +12111,37 @@ func (s Recipes) GoString() string { return s.String() } +// SetConfigure sets the Configure field's value. +func (s *Recipes) SetConfigure(v []*string) *Recipes { + s.Configure = v + return s +} + +// SetDeploy sets the Deploy field's value. +func (s *Recipes) SetDeploy(v []*string) *Recipes { + s.Deploy = v + return s +} + +// SetSetup sets the Setup field's value. +func (s *Recipes) SetSetup(v []*string) *Recipes { + s.Setup = v + return s +} + +// SetShutdown sets the Shutdown field's value. +func (s *Recipes) SetShutdown(v []*string) *Recipes { + s.Shutdown = v + return s +} + +// SetUndeploy sets the Undeploy field's value. +func (s *Recipes) SetUndeploy(v []*string) *Recipes { + s.Undeploy = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterEcsClusterRequest type RegisterEcsClusterInput struct { _ struct{} `type:"structure"` @@ -9566,7 +12182,20 @@ func (s *RegisterEcsClusterInput) Validate() error { return nil } +// SetEcsClusterArn sets the EcsClusterArn field's value. +func (s *RegisterEcsClusterInput) SetEcsClusterArn(v string) *RegisterEcsClusterInput { + s.EcsClusterArn = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *RegisterEcsClusterInput) SetStackId(v string) *RegisterEcsClusterInput { + s.StackId = &v + return s +} + // Contains the response to a RegisterEcsCluster request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterEcsClusterResult type RegisterEcsClusterOutput struct { _ struct{} `type:"structure"` @@ -9584,6 +12213,13 @@ func (s RegisterEcsClusterOutput) GoString() string { return s.String() } +// SetEcsClusterArn sets the EcsClusterArn field's value. +func (s *RegisterEcsClusterOutput) SetEcsClusterArn(v string) *RegisterEcsClusterOutput { + s.EcsClusterArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterElasticIpRequest type RegisterElasticIpInput struct { _ struct{} `type:"structure"` @@ -9624,7 +12260,20 @@ func (s *RegisterElasticIpInput) Validate() error { return nil } +// SetElasticIp sets the ElasticIp field's value. +func (s *RegisterElasticIpInput) SetElasticIp(v string) *RegisterElasticIpInput { + s.ElasticIp = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *RegisterElasticIpInput) SetStackId(v string) *RegisterElasticIpInput { + s.StackId = &v + return s +} + // Contains the response to a RegisterElasticIp request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterElasticIpResult type RegisterElasticIpOutput struct { _ struct{} `type:"structure"` @@ -9642,6 +12291,13 @@ func (s RegisterElasticIpOutput) GoString() string { return s.String() } +// SetElasticIp sets the ElasticIp field's value. +func (s *RegisterElasticIpOutput) SetElasticIp(v string) *RegisterElasticIpOutput { + s.ElasticIp = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterInstanceRequest type RegisterInstanceInput struct { _ struct{} `type:"structure"` @@ -9693,7 +12349,50 @@ func (s *RegisterInstanceInput) Validate() error { return nil } +// SetHostname sets the Hostname field's value. +func (s *RegisterInstanceInput) SetHostname(v string) *RegisterInstanceInput { + s.Hostname = &v + return s +} + +// SetInstanceIdentity sets the InstanceIdentity field's value. +func (s *RegisterInstanceInput) SetInstanceIdentity(v *InstanceIdentity) *RegisterInstanceInput { + s.InstanceIdentity = v + return s +} + +// SetPrivateIp sets the PrivateIp field's value. +func (s *RegisterInstanceInput) SetPrivateIp(v string) *RegisterInstanceInput { + s.PrivateIp = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *RegisterInstanceInput) SetPublicIp(v string) *RegisterInstanceInput { + s.PublicIp = &v + return s +} + +// SetRsaPublicKey sets the RsaPublicKey field's value. +func (s *RegisterInstanceInput) SetRsaPublicKey(v string) *RegisterInstanceInput { + s.RsaPublicKey = &v + return s +} + +// SetRsaPublicKeyFingerprint sets the RsaPublicKeyFingerprint field's value. +func (s *RegisterInstanceInput) SetRsaPublicKeyFingerprint(v string) *RegisterInstanceInput { + s.RsaPublicKeyFingerprint = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *RegisterInstanceInput) SetStackId(v string) *RegisterInstanceInput { + s.StackId = &v + return s +} + // Contains the response to a RegisterInstanceResult request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterInstanceResult type RegisterInstanceOutput struct { _ struct{} `type:"structure"` @@ -9711,6 +12410,13 @@ func (s RegisterInstanceOutput) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *RegisterInstanceOutput) SetInstanceId(v string) *RegisterInstanceOutput { + s.InstanceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterRdsDbInstanceRequest type RegisterRdsDbInstanceInput struct { _ struct{} `type:"structure"` @@ -9767,6 +12473,31 @@ func (s *RegisterRdsDbInstanceInput) Validate() error { return nil } +// SetDbPassword sets the DbPassword field's value. +func (s *RegisterRdsDbInstanceInput) SetDbPassword(v string) *RegisterRdsDbInstanceInput { + s.DbPassword = &v + return s +} + +// SetDbUser sets the DbUser field's value. +func (s *RegisterRdsDbInstanceInput) SetDbUser(v string) *RegisterRdsDbInstanceInput { + s.DbUser = &v + return s +} + +// SetRdsDbInstanceArn sets the RdsDbInstanceArn field's value. +func (s *RegisterRdsDbInstanceInput) SetRdsDbInstanceArn(v string) *RegisterRdsDbInstanceInput { + s.RdsDbInstanceArn = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *RegisterRdsDbInstanceInput) SetStackId(v string) *RegisterRdsDbInstanceInput { + s.StackId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterRdsDbInstanceOutput type RegisterRdsDbInstanceOutput struct { _ struct{} `type:"structure"` } @@ -9781,6 +12512,7 @@ func (s RegisterRdsDbInstanceOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterVolumeRequest type RegisterVolumeInput struct { _ struct{} `type:"structure"` @@ -9816,7 +12548,20 @@ func (s *RegisterVolumeInput) Validate() error { return nil } +// SetEc2VolumeId sets the Ec2VolumeId field's value. +func (s *RegisterVolumeInput) SetEc2VolumeId(v string) *RegisterVolumeInput { + s.Ec2VolumeId = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *RegisterVolumeInput) SetStackId(v string) *RegisterVolumeInput { + s.StackId = &v + return s +} + // Contains the response to a RegisterVolume request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterVolumeResult type RegisterVolumeOutput struct { _ struct{} `type:"structure"` @@ -9834,7 +12579,14 @@ func (s RegisterVolumeOutput) GoString() string { return s.String() } +// SetVolumeId sets the VolumeId field's value. +func (s *RegisterVolumeOutput) SetVolumeId(v string) *RegisterVolumeOutput { + s.VolumeId = &v + return s +} + // A registered instance's reported operating system. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/ReportedOs type ReportedOs struct { _ struct{} `type:"structure"` @@ -9858,7 +12610,26 @@ func (s ReportedOs) GoString() string { return s.String() } +// SetFamily sets the Family field's value. +func (s *ReportedOs) SetFamily(v string) *ReportedOs { + s.Family = &v + return s +} + +// SetName sets the Name field's value. +func (s *ReportedOs) SetName(v string) *ReportedOs { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *ReportedOs) SetVersion(v string) *ReportedOs { + s.Version = &v + return s +} + // Describes a user's SSH information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/SelfUserProfile type SelfUserProfile struct { _ struct{} `type:"structure"` @@ -9885,7 +12656,32 @@ func (s SelfUserProfile) GoString() string { return s.String() } +// SetIamUserArn sets the IamUserArn field's value. +func (s *SelfUserProfile) SetIamUserArn(v string) *SelfUserProfile { + s.IamUserArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *SelfUserProfile) SetName(v string) *SelfUserProfile { + s.Name = &v + return s +} + +// SetSshPublicKey sets the SshPublicKey field's value. +func (s *SelfUserProfile) SetSshPublicKey(v string) *SelfUserProfile { + s.SshPublicKey = &v + return s +} + +// SetSshUsername sets the SshUsername field's value. +func (s *SelfUserProfile) SetSshUsername(v string) *SelfUserProfile { + s.SshUsername = &v + return s +} + // Describes an AWS OpsWorks service error. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/ServiceError type ServiceError struct { _ struct{} `type:"structure"` @@ -9918,6 +12714,43 @@ func (s ServiceError) GoString() string { return s.String() } +// SetCreatedAt sets the CreatedAt field's value. +func (s *ServiceError) SetCreatedAt(v string) *ServiceError { + s.CreatedAt = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ServiceError) SetInstanceId(v string) *ServiceError { + s.InstanceId = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *ServiceError) SetMessage(v string) *ServiceError { + s.Message = &v + return s +} + +// SetServiceErrorId sets the ServiceErrorId field's value. +func (s *ServiceError) SetServiceErrorId(v string) *ServiceError { + s.ServiceErrorId = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *ServiceError) SetStackId(v string) *ServiceError { + s.StackId = &v + return s +} + +// SetType sets the Type field's value. +func (s *ServiceError) SetType(v string) *ServiceError { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/SetLoadBasedAutoScalingRequest type SetLoadBasedAutoScalingInput struct { _ struct{} `type:"structure"` @@ -9973,6 +12806,31 @@ func (s *SetLoadBasedAutoScalingInput) Validate() error { return nil } +// SetDownScaling sets the DownScaling field's value. +func (s *SetLoadBasedAutoScalingInput) SetDownScaling(v *AutoScalingThresholds) *SetLoadBasedAutoScalingInput { + s.DownScaling = v + return s +} + +// SetEnable sets the Enable field's value. +func (s *SetLoadBasedAutoScalingInput) SetEnable(v bool) *SetLoadBasedAutoScalingInput { + s.Enable = &v + return s +} + +// SetLayerId sets the LayerId field's value. +func (s *SetLoadBasedAutoScalingInput) SetLayerId(v string) *SetLoadBasedAutoScalingInput { + s.LayerId = &v + return s +} + +// SetUpScaling sets the UpScaling field's value. +func (s *SetLoadBasedAutoScalingInput) SetUpScaling(v *AutoScalingThresholds) *SetLoadBasedAutoScalingInput { + s.UpScaling = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/SetLoadBasedAutoScalingOutput type SetLoadBasedAutoScalingOutput struct { _ struct{} `type:"structure"` } @@ -9987,6 +12845,7 @@ func (s SetLoadBasedAutoScalingOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/SetPermissionRequest type SetPermissionInput struct { _ struct{} `type:"structure"` @@ -10004,18 +12863,18 @@ type SetPermissionInput struct { // The user's permission level, which must be set to one of the following strings. // You cannot set your own permissions level. // - // deny + // * deny // - // show + // * show // - // deploy + // * deploy // - // manage + // * manage // - // iam_only + // * iam_only // - // For more information on the permissions associated with these levels, - // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). + // For more information on the permissions associated with these levels, see + // Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). Level *string `type:"string"` // The stack ID. @@ -10050,6 +12909,37 @@ func (s *SetPermissionInput) Validate() error { return nil } +// SetAllowSsh sets the AllowSsh field's value. +func (s *SetPermissionInput) SetAllowSsh(v bool) *SetPermissionInput { + s.AllowSsh = &v + return s +} + +// SetAllowSudo sets the AllowSudo field's value. +func (s *SetPermissionInput) SetAllowSudo(v bool) *SetPermissionInput { + s.AllowSudo = &v + return s +} + +// SetIamUserArn sets the IamUserArn field's value. +func (s *SetPermissionInput) SetIamUserArn(v string) *SetPermissionInput { + s.IamUserArn = &v + return s +} + +// SetLevel sets the Level field's value. +func (s *SetPermissionInput) SetLevel(v string) *SetPermissionInput { + s.Level = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *SetPermissionInput) SetStackId(v string) *SetPermissionInput { + s.StackId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/SetPermissionOutput type SetPermissionOutput struct { _ struct{} `type:"structure"` } @@ -10064,6 +12954,7 @@ func (s SetPermissionOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/SetTimeBasedAutoScalingRequest type SetTimeBasedAutoScalingInput struct { _ struct{} `type:"structure"` @@ -10099,6 +12990,19 @@ func (s *SetTimeBasedAutoScalingInput) Validate() error { return nil } +// SetAutoScalingSchedule sets the AutoScalingSchedule field's value. +func (s *SetTimeBasedAutoScalingInput) SetAutoScalingSchedule(v *WeeklyAutoScalingSchedule) *SetTimeBasedAutoScalingInput { + s.AutoScalingSchedule = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *SetTimeBasedAutoScalingInput) SetInstanceId(v string) *SetTimeBasedAutoScalingInput { + s.InstanceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/SetTimeBasedAutoScalingOutput type SetTimeBasedAutoScalingOutput struct { _ struct{} `type:"structure"` } @@ -10114,6 +13018,7 @@ func (s SetTimeBasedAutoScalingOutput) GoString() string { } // The Shutdown event configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/ShutdownEventConfiguration type ShutdownEventConfiguration struct { _ struct{} `type:"structure"` @@ -10136,20 +13041,33 @@ func (s ShutdownEventConfiguration) GoString() string { return s.String() } +// SetDelayUntilElbConnectionsDrained sets the DelayUntilElbConnectionsDrained field's value. +func (s *ShutdownEventConfiguration) SetDelayUntilElbConnectionsDrained(v bool) *ShutdownEventConfiguration { + s.DelayUntilElbConnectionsDrained = &v + return s +} + +// SetExecutionTimeout sets the ExecutionTimeout field's value. +func (s *ShutdownEventConfiguration) SetExecutionTimeout(v int64) *ShutdownEventConfiguration { + s.ExecutionTimeout = &v + return s +} + // Contains the information required to retrieve an app or cookbook from a repository. // For more information, see Creating Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html) // or Custom Recipes and Cookbooks (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/Source type Source struct { _ struct{} `type:"structure"` // When included in a request, the parameter depends on the repository type. // - // For Amazon S3 bundles, set Password to the appropriate IAM secret access - // key. + // * For Amazon S3 bundles, set Password to the appropriate IAM secret access + // key. // - // For HTTP bundles and Subversion repositories, set Password to the password. + // * For HTTP bundles and Subversion repositories, set Password to the password. // - // For more information on how to safely handle IAM credentials, see http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html + // For more information on how to safely handle IAM credentials, see http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html // (http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html). // // In responses, AWS OpsWorks returns *****FILTERED***** instead of the actual @@ -10176,11 +13094,11 @@ type Source struct { // This parameter depends on the repository type. // - // For Amazon S3 bundles, set Username to the appropriate IAM access key - // ID. + // * For Amazon S3 bundles, set Username to the appropriate IAM access key + // ID. // - // For HTTP bundles, Git repositories, and Subversion repositories, set Username - // to the user name. + // * For HTTP bundles, Git repositories, and Subversion repositories, set + // Username to the user name. Username *string `type:"string"` } @@ -10194,7 +13112,44 @@ func (s Source) GoString() string { return s.String() } +// SetPassword sets the Password field's value. +func (s *Source) SetPassword(v string) *Source { + s.Password = &v + return s +} + +// SetRevision sets the Revision field's value. +func (s *Source) SetRevision(v string) *Source { + s.Revision = &v + return s +} + +// SetSshKey sets the SshKey field's value. +func (s *Source) SetSshKey(v string) *Source { + s.SshKey = &v + return s +} + +// SetType sets the Type field's value. +func (s *Source) SetType(v string) *Source { + s.Type = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *Source) SetUrl(v string) *Source { + s.Url = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *Source) SetUsername(v string) *Source { + s.Username = &v + return s +} + // Describes an app's SSL configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/SslConfiguration type SslConfiguration struct { _ struct{} `type:"structure"` @@ -10239,7 +13194,26 @@ func (s *SslConfiguration) Validate() error { return nil } +// SetCertificate sets the Certificate field's value. +func (s *SslConfiguration) SetCertificate(v string) *SslConfiguration { + s.Certificate = &v + return s +} + +// SetChain sets the Chain field's value. +func (s *SslConfiguration) SetChain(v string) *SslConfiguration { + s.Chain = &v + return s +} + +// SetPrivateKey sets the PrivateKey field's value. +func (s *SslConfiguration) SetPrivateKey(v string) *SslConfiguration { + s.PrivateKey = &v + return s +} + // Describes a stack. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/Stack type Stack struct { _ struct{} `type:"structure"` @@ -10273,7 +13247,7 @@ type Stack struct { // the corresponding default stack configuration attribute values or to pass // data to recipes. The string should be in the following format: // - // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" + // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" // // For more information on custom JSON, see Use Custom JSON to Modify the Stack // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html). @@ -10322,25 +13296,158 @@ type Stack struct { // Whether the stack uses custom cookbooks. UseCustomCookbooks *bool `type:"boolean"` - // Whether the stack automatically associates the AWS OpsWorks built-in security - // groups with the stack's layers. - UseOpsworksSecurityGroups *bool `type:"boolean"` + // Whether the stack automatically associates the AWS OpsWorks built-in security + // groups with the stack's layers. + UseOpsworksSecurityGroups *bool `type:"boolean"` + + // The VPC ID; applicable only if the stack is running in a VPC. + VpcId *string `type:"string"` +} + +// String returns the string representation +func (s Stack) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Stack) GoString() string { + return s.String() +} + +// SetAgentVersion sets the AgentVersion field's value. +func (s *Stack) SetAgentVersion(v string) *Stack { + s.AgentVersion = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *Stack) SetArn(v string) *Stack { + s.Arn = &v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *Stack) SetAttributes(v map[string]*string) *Stack { + s.Attributes = v + return s +} + +// SetChefConfiguration sets the ChefConfiguration field's value. +func (s *Stack) SetChefConfiguration(v *ChefConfiguration) *Stack { + s.ChefConfiguration = v + return s +} + +// SetConfigurationManager sets the ConfigurationManager field's value. +func (s *Stack) SetConfigurationManager(v *StackConfigurationManager) *Stack { + s.ConfigurationManager = v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Stack) SetCreatedAt(v string) *Stack { + s.CreatedAt = &v + return s +} + +// SetCustomCookbooksSource sets the CustomCookbooksSource field's value. +func (s *Stack) SetCustomCookbooksSource(v *Source) *Stack { + s.CustomCookbooksSource = v + return s +} + +// SetCustomJson sets the CustomJson field's value. +func (s *Stack) SetCustomJson(v string) *Stack { + s.CustomJson = &v + return s +} + +// SetDefaultAvailabilityZone sets the DefaultAvailabilityZone field's value. +func (s *Stack) SetDefaultAvailabilityZone(v string) *Stack { + s.DefaultAvailabilityZone = &v + return s +} + +// SetDefaultInstanceProfileArn sets the DefaultInstanceProfileArn field's value. +func (s *Stack) SetDefaultInstanceProfileArn(v string) *Stack { + s.DefaultInstanceProfileArn = &v + return s +} + +// SetDefaultOs sets the DefaultOs field's value. +func (s *Stack) SetDefaultOs(v string) *Stack { + s.DefaultOs = &v + return s +} + +// SetDefaultRootDeviceType sets the DefaultRootDeviceType field's value. +func (s *Stack) SetDefaultRootDeviceType(v string) *Stack { + s.DefaultRootDeviceType = &v + return s +} + +// SetDefaultSshKeyName sets the DefaultSshKeyName field's value. +func (s *Stack) SetDefaultSshKeyName(v string) *Stack { + s.DefaultSshKeyName = &v + return s +} + +// SetDefaultSubnetId sets the DefaultSubnetId field's value. +func (s *Stack) SetDefaultSubnetId(v string) *Stack { + s.DefaultSubnetId = &v + return s +} + +// SetHostnameTheme sets the HostnameTheme field's value. +func (s *Stack) SetHostnameTheme(v string) *Stack { + s.HostnameTheme = &v + return s +} + +// SetName sets the Name field's value. +func (s *Stack) SetName(v string) *Stack { + s.Name = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *Stack) SetRegion(v string) *Stack { + s.Region = &v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *Stack) SetServiceRoleArn(v string) *Stack { + s.ServiceRoleArn = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *Stack) SetStackId(v string) *Stack { + s.StackId = &v + return s +} - // The VPC ID; applicable only if the stack is running in a VPC. - VpcId *string `type:"string"` +// SetUseCustomCookbooks sets the UseCustomCookbooks field's value. +func (s *Stack) SetUseCustomCookbooks(v bool) *Stack { + s.UseCustomCookbooks = &v + return s } -// String returns the string representation -func (s Stack) String() string { - return awsutil.Prettify(s) +// SetUseOpsworksSecurityGroups sets the UseOpsworksSecurityGroups field's value. +func (s *Stack) SetUseOpsworksSecurityGroups(v bool) *Stack { + s.UseOpsworksSecurityGroups = &v + return s } -// GoString returns the string representation -func (s Stack) GoString() string { - return s.String() +// SetVpcId sets the VpcId field's value. +func (s *Stack) SetVpcId(v string) *Stack { + s.VpcId = &v + return s } // Describes the configuration manager. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StackConfigurationManager type StackConfigurationManager struct { _ struct{} `type:"structure"` @@ -10363,7 +13470,20 @@ func (s StackConfigurationManager) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *StackConfigurationManager) SetName(v string) *StackConfigurationManager { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *StackConfigurationManager) SetVersion(v string) *StackConfigurationManager { + s.Version = &v + return s +} + // Summarizes the number of layers, instances, and apps in a stack. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StackSummary type StackSummary struct { _ struct{} `type:"structure"` @@ -10396,6 +13516,43 @@ func (s StackSummary) GoString() string { return s.String() } +// SetAppsCount sets the AppsCount field's value. +func (s *StackSummary) SetAppsCount(v int64) *StackSummary { + s.AppsCount = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *StackSummary) SetArn(v string) *StackSummary { + s.Arn = &v + return s +} + +// SetInstancesCount sets the InstancesCount field's value. +func (s *StackSummary) SetInstancesCount(v *InstancesCount) *StackSummary { + s.InstancesCount = v + return s +} + +// SetLayersCount sets the LayersCount field's value. +func (s *StackSummary) SetLayersCount(v int64) *StackSummary { + s.LayersCount = &v + return s +} + +// SetName sets the Name field's value. +func (s *StackSummary) SetName(v string) *StackSummary { + s.Name = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *StackSummary) SetStackId(v string) *StackSummary { + s.StackId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StartInstanceRequest type StartInstanceInput struct { _ struct{} `type:"structure"` @@ -10428,6 +13585,13 @@ func (s *StartInstanceInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *StartInstanceInput) SetInstanceId(v string) *StartInstanceInput { + s.InstanceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StartInstanceOutput type StartInstanceOutput struct { _ struct{} `type:"structure"` } @@ -10442,6 +13606,7 @@ func (s StartInstanceOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StartStackRequest type StartStackInput struct { _ struct{} `type:"structure"` @@ -10474,6 +13639,13 @@ func (s *StartStackInput) Validate() error { return nil } +// SetStackId sets the StackId field's value. +func (s *StartStackInput) SetStackId(v string) *StartStackInput { + s.StackId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StartStackOutput type StartStackOutput struct { _ struct{} `type:"structure"` } @@ -10488,6 +13660,7 @@ func (s StartStackOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StopInstanceRequest type StopInstanceInput struct { _ struct{} `type:"structure"` @@ -10520,6 +13693,13 @@ func (s *StopInstanceInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *StopInstanceInput) SetInstanceId(v string) *StopInstanceInput { + s.InstanceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StopInstanceOutput type StopInstanceOutput struct { _ struct{} `type:"structure"` } @@ -10534,6 +13714,7 @@ func (s StopInstanceOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StopStackRequest type StopStackInput struct { _ struct{} `type:"structure"` @@ -10566,6 +13747,13 @@ func (s *StopStackInput) Validate() error { return nil } +// SetStackId sets the StackId field's value. +func (s *StopStackInput) SetStackId(v string) *StopStackInput { + s.StackId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StopStackOutput type StopStackOutput struct { _ struct{} `type:"structure"` } @@ -10582,6 +13770,7 @@ func (s StopStackOutput) GoString() string { // Contains the data needed by RDP clients such as the Microsoft Remote Desktop // Connection to log in to the instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/TemporaryCredential type TemporaryCredential struct { _ struct{} `type:"structure"` @@ -10611,7 +13800,32 @@ func (s TemporaryCredential) GoString() string { return s.String() } +// SetInstanceId sets the InstanceId field's value. +func (s *TemporaryCredential) SetInstanceId(v string) *TemporaryCredential { + s.InstanceId = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *TemporaryCredential) SetPassword(v string) *TemporaryCredential { + s.Password = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *TemporaryCredential) SetUsername(v string) *TemporaryCredential { + s.Username = &v + return s +} + +// SetValidForInMinutes sets the ValidForInMinutes field's value. +func (s *TemporaryCredential) SetValidForInMinutes(v int64) *TemporaryCredential { + s.ValidForInMinutes = &v + return s +} + // Describes an instance's time-based auto scaling configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/TimeBasedAutoScalingConfiguration type TimeBasedAutoScalingConfiguration struct { _ struct{} `type:"structure"` @@ -10632,6 +13846,19 @@ func (s TimeBasedAutoScalingConfiguration) GoString() string { return s.String() } +// SetAutoScalingSchedule sets the AutoScalingSchedule field's value. +func (s *TimeBasedAutoScalingConfiguration) SetAutoScalingSchedule(v *WeeklyAutoScalingSchedule) *TimeBasedAutoScalingConfiguration { + s.AutoScalingSchedule = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *TimeBasedAutoScalingConfiguration) SetInstanceId(v string) *TimeBasedAutoScalingConfiguration { + s.InstanceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UnassignInstanceRequest type UnassignInstanceInput struct { _ struct{} `type:"structure"` @@ -10664,6 +13891,13 @@ func (s *UnassignInstanceInput) Validate() error { return nil } +// SetInstanceId sets the InstanceId field's value. +func (s *UnassignInstanceInput) SetInstanceId(v string) *UnassignInstanceInput { + s.InstanceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UnassignInstanceOutput type UnassignInstanceOutput struct { _ struct{} `type:"structure"` } @@ -10678,6 +13912,7 @@ func (s UnassignInstanceOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UnassignVolumeRequest type UnassignVolumeInput struct { _ struct{} `type:"structure"` @@ -10710,6 +13945,13 @@ func (s *UnassignVolumeInput) Validate() error { return nil } +// SetVolumeId sets the VolumeId field's value. +func (s *UnassignVolumeInput) SetVolumeId(v string) *UnassignVolumeInput { + s.VolumeId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UnassignVolumeOutput type UnassignVolumeOutput struct { _ struct{} `type:"structure"` } @@ -10724,6 +13966,7 @@ func (s UnassignVolumeOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateAppRequest type UpdateAppInput struct { _ struct{} `type:"structure"` @@ -10763,7 +14006,7 @@ type UpdateAppInput struct { // cause an exception with the message, "Environment: is too large (maximum // is 10KB)." // - // This parameter is supported only by Chef 11.10 stacks. If you have specified + // This parameter is supported only by Chef 11.10 stacks. If you have specified // one or more environment variables, you cannot modify the stack's Chef version. Environment []*EnvironmentVariable `type:"list"` @@ -10815,6 +14058,73 @@ func (s *UpdateAppInput) Validate() error { return nil } +// SetAppId sets the AppId field's value. +func (s *UpdateAppInput) SetAppId(v string) *UpdateAppInput { + s.AppId = &v + return s +} + +// SetAppSource sets the AppSource field's value. +func (s *UpdateAppInput) SetAppSource(v *Source) *UpdateAppInput { + s.AppSource = v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *UpdateAppInput) SetAttributes(v map[string]*string) *UpdateAppInput { + s.Attributes = v + return s +} + +// SetDataSources sets the DataSources field's value. +func (s *UpdateAppInput) SetDataSources(v []*DataSource) *UpdateAppInput { + s.DataSources = v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateAppInput) SetDescription(v string) *UpdateAppInput { + s.Description = &v + return s +} + +// SetDomains sets the Domains field's value. +func (s *UpdateAppInput) SetDomains(v []*string) *UpdateAppInput { + s.Domains = v + return s +} + +// SetEnableSsl sets the EnableSsl field's value. +func (s *UpdateAppInput) SetEnableSsl(v bool) *UpdateAppInput { + s.EnableSsl = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *UpdateAppInput) SetEnvironment(v []*EnvironmentVariable) *UpdateAppInput { + s.Environment = v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateAppInput) SetName(v string) *UpdateAppInput { + s.Name = &v + return s +} + +// SetSslConfiguration sets the SslConfiguration field's value. +func (s *UpdateAppInput) SetSslConfiguration(v *SslConfiguration) *UpdateAppInput { + s.SslConfiguration = v + return s +} + +// SetType sets the Type field's value. +func (s *UpdateAppInput) SetType(v string) *UpdateAppInput { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateAppOutput type UpdateAppOutput struct { _ struct{} `type:"structure"` } @@ -10829,6 +14139,7 @@ func (s UpdateAppOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateElasticIpRequest type UpdateElasticIpInput struct { _ struct{} `type:"structure"` @@ -10864,6 +14175,19 @@ func (s *UpdateElasticIpInput) Validate() error { return nil } +// SetElasticIp sets the ElasticIp field's value. +func (s *UpdateElasticIpInput) SetElasticIp(v string) *UpdateElasticIpInput { + s.ElasticIp = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateElasticIpInput) SetName(v string) *UpdateElasticIpInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateElasticIpOutput type UpdateElasticIpOutput struct { _ struct{} `type:"structure"` } @@ -10878,21 +14202,22 @@ func (s UpdateElasticIpOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateInstanceRequest type UpdateInstanceInput struct { _ struct{} `type:"structure"` // The default AWS OpsWorks agent version. You have the following options: // - // INHERIT - Use the stack's default agent version setting. + // * INHERIT - Use the stack's default agent version setting. // - // version_number - Use the specified agent version. This value overrides - // the stack's default setting. To update the agent version, you must edit the - // instance configuration and specify a new version. AWS OpsWorks then automatically - // installs that version on the instance. + // * version_number - Use the specified agent version. This value overrides + // the stack's default setting. To update the agent version, you must edit + // the instance configuration and specify a new version. AWS OpsWorks then + // automatically installs that version on the instance. // - // The default setting is INHERIT. To specify an agent version, you must - // use the complete version number, not the abbreviated number shown on the - // console. For a list of available agent version numbers, call DescribeAgentVersions. + // The default setting is INHERIT. To specify an agent version, you must use + // the complete version number, not the abbreviated number shown on the console. + // For a list of available agent version numbers, call DescribeAgentVersions. AgentVersion *string `type:"string"` // The ID of the AMI that was used to create the instance. The value of this @@ -10922,7 +14247,7 @@ type UpdateInstanceInput struct { // using CreateDeployment to run the update_dependencies stack command or by // manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances. // - // We strongly recommend using the default value of true, to ensure that your + // We strongly recommend using the default value of true, to ensure that your // instances have the latest security updates. InstallUpdatesOnBoot *bool `type:"boolean"` @@ -10945,32 +14270,32 @@ type UpdateInstanceInput struct { // The instance's operating system, which must be set to one of the following. // You cannot update an instance that is using a custom AMI. // - // A supported Linux operating system: An Amazon Linux version, such as Amazon - // Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03. + // * A supported Linux operating system: An Amazon Linux version, such as + // Amazon Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03. // - // A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu - // 14.04 LTS, or Ubuntu 12.04 LTS. + // * A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu + // 14.04 LTS, or Ubuntu 12.04 LTS. // - // CentOS 7 + // * CentOS 7 // - // Red Hat Enterprise Linux 7 + // * Red Hat Enterprise Linux 7 // - // A supported Windows operating system, such as Microsoft Windows Server - // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, Microsoft - // Windows Server 2012 R2 with SQL Server Standard, or Microsoft Windows Server - // 2012 R2 with SQL Server Web. + // * A supported Windows operating system, such as Microsoft Windows Server + // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, + // Microsoft Windows Server 2012 R2 with SQL Server Standard, or Microsoft + // Windows Server 2012 R2 with SQL Server Web. // - // For more information on the supported operating systems, see AWS OpsWorks + // For more information on the supported operating systems, see AWS OpsWorks // Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html). // - // The default option is the current Amazon Linux version. If you set this - // parameter to Custom, you must use the AmiId parameter to specify the custom - // AMI that you want to use. For more information on the supported operating - // systems, see Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html). + // The default option is the current Amazon Linux version. If you set this parameter + // to Custom, you must use the AmiId parameter to specify the custom AMI that + // you want to use. For more information on the supported operating systems, + // see Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html). // For more information on how to use custom AMIs with OpsWorks, see Using Custom // AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). // - // You can specify a different Linux operating system for the updated stack, + // You can specify a different Linux operating system for the updated stack, // but you cannot change from Linux to Windows or Windows to Linux. Os *string `type:"string"` @@ -11001,6 +14326,79 @@ func (s *UpdateInstanceInput) Validate() error { return nil } +// SetAgentVersion sets the AgentVersion field's value. +func (s *UpdateInstanceInput) SetAgentVersion(v string) *UpdateInstanceInput { + s.AgentVersion = &v + return s +} + +// SetAmiId sets the AmiId field's value. +func (s *UpdateInstanceInput) SetAmiId(v string) *UpdateInstanceInput { + s.AmiId = &v + return s +} + +// SetArchitecture sets the Architecture field's value. +func (s *UpdateInstanceInput) SetArchitecture(v string) *UpdateInstanceInput { + s.Architecture = &v + return s +} + +// SetAutoScalingType sets the AutoScalingType field's value. +func (s *UpdateInstanceInput) SetAutoScalingType(v string) *UpdateInstanceInput { + s.AutoScalingType = &v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *UpdateInstanceInput) SetEbsOptimized(v bool) *UpdateInstanceInput { + s.EbsOptimized = &v + return s +} + +// SetHostname sets the Hostname field's value. +func (s *UpdateInstanceInput) SetHostname(v string) *UpdateInstanceInput { + s.Hostname = &v + return s +} + +// SetInstallUpdatesOnBoot sets the InstallUpdatesOnBoot field's value. +func (s *UpdateInstanceInput) SetInstallUpdatesOnBoot(v bool) *UpdateInstanceInput { + s.InstallUpdatesOnBoot = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *UpdateInstanceInput) SetInstanceId(v string) *UpdateInstanceInput { + s.InstanceId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *UpdateInstanceInput) SetInstanceType(v string) *UpdateInstanceInput { + s.InstanceType = &v + return s +} + +// SetLayerIds sets the LayerIds field's value. +func (s *UpdateInstanceInput) SetLayerIds(v []*string) *UpdateInstanceInput { + s.LayerIds = v + return s +} + +// SetOs sets the Os field's value. +func (s *UpdateInstanceInput) SetOs(v string) *UpdateInstanceInput { + s.Os = &v + return s +} + +// SetSshKeyName sets the SshKeyName field's value. +func (s *UpdateInstanceInput) SetSshKeyName(v string) *UpdateInstanceInput { + s.SshKeyName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateInstanceOutput type UpdateInstanceOutput struct { _ struct{} `type:"structure"` } @@ -11015,6 +14413,7 @@ func (s UpdateInstanceOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateLayerRequest type UpdateLayerInput struct { _ struct{} `type:"structure"` @@ -11054,7 +14453,7 @@ type UpdateLayerInput struct { // using CreateDeployment to run the update_dependencies stack command or manually // running yum (Amazon Linux) or apt-get (Ubuntu) on the instances. // - // We strongly recommend using the default value of true, to ensure that your + // We strongly recommend using the default value of true, to ensure that your // instances have the latest security updates. InstallUpdatesOnBoot *bool `type:"boolean"` @@ -11121,6 +14520,103 @@ func (s *UpdateLayerInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *UpdateLayerInput) SetAttributes(v map[string]*string) *UpdateLayerInput { + s.Attributes = v + return s +} + +// SetAutoAssignElasticIps sets the AutoAssignElasticIps field's value. +func (s *UpdateLayerInput) SetAutoAssignElasticIps(v bool) *UpdateLayerInput { + s.AutoAssignElasticIps = &v + return s +} + +// SetAutoAssignPublicIps sets the AutoAssignPublicIps field's value. +func (s *UpdateLayerInput) SetAutoAssignPublicIps(v bool) *UpdateLayerInput { + s.AutoAssignPublicIps = &v + return s +} + +// SetCustomInstanceProfileArn sets the CustomInstanceProfileArn field's value. +func (s *UpdateLayerInput) SetCustomInstanceProfileArn(v string) *UpdateLayerInput { + s.CustomInstanceProfileArn = &v + return s +} + +// SetCustomJson sets the CustomJson field's value. +func (s *UpdateLayerInput) SetCustomJson(v string) *UpdateLayerInput { + s.CustomJson = &v + return s +} + +// SetCustomRecipes sets the CustomRecipes field's value. +func (s *UpdateLayerInput) SetCustomRecipes(v *Recipes) *UpdateLayerInput { + s.CustomRecipes = v + return s +} + +// SetCustomSecurityGroupIds sets the CustomSecurityGroupIds field's value. +func (s *UpdateLayerInput) SetCustomSecurityGroupIds(v []*string) *UpdateLayerInput { + s.CustomSecurityGroupIds = v + return s +} + +// SetEnableAutoHealing sets the EnableAutoHealing field's value. +func (s *UpdateLayerInput) SetEnableAutoHealing(v bool) *UpdateLayerInput { + s.EnableAutoHealing = &v + return s +} + +// SetInstallUpdatesOnBoot sets the InstallUpdatesOnBoot field's value. +func (s *UpdateLayerInput) SetInstallUpdatesOnBoot(v bool) *UpdateLayerInput { + s.InstallUpdatesOnBoot = &v + return s +} + +// SetLayerId sets the LayerId field's value. +func (s *UpdateLayerInput) SetLayerId(v string) *UpdateLayerInput { + s.LayerId = &v + return s +} + +// SetLifecycleEventConfiguration sets the LifecycleEventConfiguration field's value. +func (s *UpdateLayerInput) SetLifecycleEventConfiguration(v *LifecycleEventConfiguration) *UpdateLayerInput { + s.LifecycleEventConfiguration = v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateLayerInput) SetName(v string) *UpdateLayerInput { + s.Name = &v + return s +} + +// SetPackages sets the Packages field's value. +func (s *UpdateLayerInput) SetPackages(v []*string) *UpdateLayerInput { + s.Packages = v + return s +} + +// SetShortname sets the Shortname field's value. +func (s *UpdateLayerInput) SetShortname(v string) *UpdateLayerInput { + s.Shortname = &v + return s +} + +// SetUseEbsOptimizedInstances sets the UseEbsOptimizedInstances field's value. +func (s *UpdateLayerInput) SetUseEbsOptimizedInstances(v bool) *UpdateLayerInput { + s.UseEbsOptimizedInstances = &v + return s +} + +// SetVolumeConfigurations sets the VolumeConfigurations field's value. +func (s *UpdateLayerInput) SetVolumeConfigurations(v []*VolumeConfiguration) *UpdateLayerInput { + s.VolumeConfigurations = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateLayerOutput type UpdateLayerOutput struct { _ struct{} `type:"structure"` } @@ -11135,6 +14631,7 @@ func (s UpdateLayerOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateMyUserProfileRequest type UpdateMyUserProfileInput struct { _ struct{} `type:"structure"` @@ -11152,6 +14649,13 @@ func (s UpdateMyUserProfileInput) GoString() string { return s.String() } +// SetSshPublicKey sets the SshPublicKey field's value. +func (s *UpdateMyUserProfileInput) SetSshPublicKey(v string) *UpdateMyUserProfileInput { + s.SshPublicKey = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateMyUserProfileOutput type UpdateMyUserProfileOutput struct { _ struct{} `type:"structure"` } @@ -11166,6 +14670,7 @@ func (s UpdateMyUserProfileOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateRdsDbInstanceRequest type UpdateRdsDbInstanceInput struct { _ struct{} `type:"structure"` @@ -11204,6 +14709,25 @@ func (s *UpdateRdsDbInstanceInput) Validate() error { return nil } +// SetDbPassword sets the DbPassword field's value. +func (s *UpdateRdsDbInstanceInput) SetDbPassword(v string) *UpdateRdsDbInstanceInput { + s.DbPassword = &v + return s +} + +// SetDbUser sets the DbUser field's value. +func (s *UpdateRdsDbInstanceInput) SetDbUser(v string) *UpdateRdsDbInstanceInput { + s.DbUser = &v + return s +} + +// SetRdsDbInstanceArn sets the RdsDbInstanceArn field's value. +func (s *UpdateRdsDbInstanceInput) SetRdsDbInstanceArn(v string) *UpdateRdsDbInstanceInput { + s.RdsDbInstanceArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateRdsDbInstanceOutput type UpdateRdsDbInstanceOutput struct { _ struct{} `type:"structure"` } @@ -11218,25 +14742,26 @@ func (s UpdateRdsDbInstanceOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateStackRequest type UpdateStackInput struct { _ struct{} `type:"structure"` // The default AWS OpsWorks agent version. You have the following options: // - // Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically - // installs new agent versions on the stack's instances as soon as they are - // available. + // * Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically + // installs new agent versions on the stack's instances as soon as they are + // available. // - // Fixed version - Set this parameter to your preferred agent version. To - // update the agent version, you must edit the stack configuration and specify - // a new version. AWS OpsWorks then automatically installs that version on the - // stack's instances. + // * Fixed version - Set this parameter to your preferred agent version. + // To update the agent version, you must edit the stack configuration and + // specify a new version. AWS OpsWorks then automatically installs that version + // on the stack's instances. // - // The default setting is LATEST. To specify an agent version, you must use + // The default setting is LATEST. To specify an agent version, you must use // the complete version number, not the abbreviated number shown on the console. // For a list of available agent version numbers, call DescribeAgentVersions. // - // You can also specify an agent version when you create or update an instance, + // You can also specify an agent version when you create or update an instance, // which overrides the stack's default setting. AgentVersion *string `type:"string"` @@ -11263,7 +14788,7 @@ type UpdateStackInput struct { // the corresponding default stack configuration JSON values or to pass data // to recipes. The string should be in the following format: // - // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" + // "{\"key1\": \"value1\", \"key2\": \"value2\",...}" // // For more information on custom JSON, see Use Custom JSON to Modify the Stack // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html). @@ -11282,26 +14807,26 @@ type UpdateStackInput struct { // The stack's operating system, which must be set to one of the following: // - // A supported Linux operating system: An Amazon Linux version, such as Amazon - // Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03. + // * A supported Linux operating system: An Amazon Linux version, such as + // Amazon Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03. // - // A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu - // 14.04 LTS, or Ubuntu 12.04 LTS. + // * A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu + // 14.04 LTS, or Ubuntu 12.04 LTS. // - // CentOS 7 + // * CentOS 7 // - // Red Hat Enterprise Linux 7 + // * Red Hat Enterprise Linux 7 // - // A supported Windows operating system, such as Microsoft Windows Server - // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, Microsoft - // Windows Server 2012 R2 with SQL Server Standard, or Microsoft Windows Server - // 2012 R2 with SQL Server Web. + // * A supported Windows operating system, such as Microsoft Windows Server + // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, + // Microsoft Windows Server 2012 R2 with SQL Server Standard, or Microsoft + // Windows Server 2012 R2 with SQL Server Web. // - // A custom AMI: Custom. You specify the custom AMI you want to use when - // you create instances. For more information on how to use custom AMIs with - // OpsWorks, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). + // * A custom AMI: Custom. You specify the custom AMI you want to use when + // you create instances. For more information on how to use custom AMIs with + // OpsWorks, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). // - // The default option is the stack's current operating system. For more information + // The default option is the stack's current operating system. For more information // on the supported operating systems, see AWS OpsWorks Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html). DefaultOs *string `type:"string"` @@ -11332,29 +14857,29 @@ type UpdateStackInput struct { // HostnameTheme is set to Layer_Dependent, which creates host names by appending // integers to the layer's short name. The other themes are: // - // Baked_Goods + // * Baked_Goods // - // Clouds + // * Clouds // - // Europe_Cities + // * Europe_Cities // - // Fruits + // * Fruits // - // Greek_Deities + // * Greek_Deities // - // Legendary_creatures_from_Japan + // * Legendary_creatures_from_Japan // - // Planets_and_Moons + // * Planets_and_Moons // - // Roman_Deities + // * Roman_Deities // - // Scottish_Islands + // * Scottish_Islands // - // US_Cities + // * US_Cities // - // Wild_Cats + // * Wild_Cats // - // To obtain a generated host name, call GetHostNameSuggestion, which returns + // To obtain a generated host name, call GetHostNameSuggestion, which returns // a host name based on the current theme. HostnameTheme *string `type:"string"` @@ -11380,18 +14905,18 @@ type UpdateStackInput struct { // allows you to provide your own custom security groups instead of using the // built-in groups. UseOpsworksSecurityGroups has the following settings: // - // True - AWS OpsWorks automatically associates the appropriate built-in - // security group with each layer (default setting). You can associate additional - // security groups with a layer after you create it, but you cannot delete the - // built-in security group. + // * True - AWS OpsWorks automatically associates the appropriate built-in + // security group with each layer (default setting). You can associate additional + // security groups with a layer after you create it, but you cannot delete + // the built-in security group. // - // False - AWS OpsWorks does not associate built-in security groups with - // layers. You must create appropriate EC2 security groups and associate a security - // group with each layer that you create. However, you can still manually associate - // a built-in security group with a layer on. Custom security groups are required - // only for those layers that need custom settings. + // * False - AWS OpsWorks does not associate built-in security groups with + // layers. You must create appropriate EC2 security groups and associate + // a security group with each layer that you create. However, you can still + // manually associate a built-in security group with a layer on. Custom security + // groups are required only for those layers that need custom settings. // - // For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html). + // For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html). UseOpsworksSecurityGroups *bool `type:"boolean"` } @@ -11418,6 +14943,115 @@ func (s *UpdateStackInput) Validate() error { return nil } +// SetAgentVersion sets the AgentVersion field's value. +func (s *UpdateStackInput) SetAgentVersion(v string) *UpdateStackInput { + s.AgentVersion = &v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *UpdateStackInput) SetAttributes(v map[string]*string) *UpdateStackInput { + s.Attributes = v + return s +} + +// SetChefConfiguration sets the ChefConfiguration field's value. +func (s *UpdateStackInput) SetChefConfiguration(v *ChefConfiguration) *UpdateStackInput { + s.ChefConfiguration = v + return s +} + +// SetConfigurationManager sets the ConfigurationManager field's value. +func (s *UpdateStackInput) SetConfigurationManager(v *StackConfigurationManager) *UpdateStackInput { + s.ConfigurationManager = v + return s +} + +// SetCustomCookbooksSource sets the CustomCookbooksSource field's value. +func (s *UpdateStackInput) SetCustomCookbooksSource(v *Source) *UpdateStackInput { + s.CustomCookbooksSource = v + return s +} + +// SetCustomJson sets the CustomJson field's value. +func (s *UpdateStackInput) SetCustomJson(v string) *UpdateStackInput { + s.CustomJson = &v + return s +} + +// SetDefaultAvailabilityZone sets the DefaultAvailabilityZone field's value. +func (s *UpdateStackInput) SetDefaultAvailabilityZone(v string) *UpdateStackInput { + s.DefaultAvailabilityZone = &v + return s +} + +// SetDefaultInstanceProfileArn sets the DefaultInstanceProfileArn field's value. +func (s *UpdateStackInput) SetDefaultInstanceProfileArn(v string) *UpdateStackInput { + s.DefaultInstanceProfileArn = &v + return s +} + +// SetDefaultOs sets the DefaultOs field's value. +func (s *UpdateStackInput) SetDefaultOs(v string) *UpdateStackInput { + s.DefaultOs = &v + return s +} + +// SetDefaultRootDeviceType sets the DefaultRootDeviceType field's value. +func (s *UpdateStackInput) SetDefaultRootDeviceType(v string) *UpdateStackInput { + s.DefaultRootDeviceType = &v + return s +} + +// SetDefaultSshKeyName sets the DefaultSshKeyName field's value. +func (s *UpdateStackInput) SetDefaultSshKeyName(v string) *UpdateStackInput { + s.DefaultSshKeyName = &v + return s +} + +// SetDefaultSubnetId sets the DefaultSubnetId field's value. +func (s *UpdateStackInput) SetDefaultSubnetId(v string) *UpdateStackInput { + s.DefaultSubnetId = &v + return s +} + +// SetHostnameTheme sets the HostnameTheme field's value. +func (s *UpdateStackInput) SetHostnameTheme(v string) *UpdateStackInput { + s.HostnameTheme = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateStackInput) SetName(v string) *UpdateStackInput { + s.Name = &v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *UpdateStackInput) SetServiceRoleArn(v string) *UpdateStackInput { + s.ServiceRoleArn = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *UpdateStackInput) SetStackId(v string) *UpdateStackInput { + s.StackId = &v + return s +} + +// SetUseCustomCookbooks sets the UseCustomCookbooks field's value. +func (s *UpdateStackInput) SetUseCustomCookbooks(v bool) *UpdateStackInput { + s.UseCustomCookbooks = &v + return s +} + +// SetUseOpsworksSecurityGroups sets the UseOpsworksSecurityGroups field's value. +func (s *UpdateStackInput) SetUseOpsworksSecurityGroups(v bool) *UpdateStackInput { + s.UseOpsworksSecurityGroups = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateStackOutput type UpdateStackOutput struct { _ struct{} `type:"structure"` } @@ -11432,6 +15066,7 @@ func (s UpdateStackOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateUserProfileRequest type UpdateUserProfileInput struct { _ struct{} `type:"structure"` @@ -11478,6 +15113,31 @@ func (s *UpdateUserProfileInput) Validate() error { return nil } +// SetAllowSelfManagement sets the AllowSelfManagement field's value. +func (s *UpdateUserProfileInput) SetAllowSelfManagement(v bool) *UpdateUserProfileInput { + s.AllowSelfManagement = &v + return s +} + +// SetIamUserArn sets the IamUserArn field's value. +func (s *UpdateUserProfileInput) SetIamUserArn(v string) *UpdateUserProfileInput { + s.IamUserArn = &v + return s +} + +// SetSshPublicKey sets the SshPublicKey field's value. +func (s *UpdateUserProfileInput) SetSshPublicKey(v string) *UpdateUserProfileInput { + s.SshPublicKey = &v + return s +} + +// SetSshUsername sets the SshUsername field's value. +func (s *UpdateUserProfileInput) SetSshUsername(v string) *UpdateUserProfileInput { + s.SshUsername = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateUserProfileOutput type UpdateUserProfileOutput struct { _ struct{} `type:"structure"` } @@ -11492,6 +15152,7 @@ func (s UpdateUserProfileOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateVolumeRequest type UpdateVolumeInput struct { _ struct{} `type:"structure"` @@ -11530,6 +15191,25 @@ func (s *UpdateVolumeInput) Validate() error { return nil } +// SetMountPoint sets the MountPoint field's value. +func (s *UpdateVolumeInput) SetMountPoint(v string) *UpdateVolumeInput { + s.MountPoint = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateVolumeInput) SetName(v string) *UpdateVolumeInput { + s.Name = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *UpdateVolumeInput) SetVolumeId(v string) *UpdateVolumeInput { + s.VolumeId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateVolumeOutput type UpdateVolumeOutput struct { _ struct{} `type:"structure"` } @@ -11545,6 +15225,7 @@ func (s UpdateVolumeOutput) GoString() string { } // Describes a user's SSH information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UserProfile type UserProfile struct { _ struct{} `type:"structure"` @@ -11575,7 +15256,38 @@ func (s UserProfile) GoString() string { return s.String() } +// SetAllowSelfManagement sets the AllowSelfManagement field's value. +func (s *UserProfile) SetAllowSelfManagement(v bool) *UserProfile { + s.AllowSelfManagement = &v + return s +} + +// SetIamUserArn sets the IamUserArn field's value. +func (s *UserProfile) SetIamUserArn(v string) *UserProfile { + s.IamUserArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *UserProfile) SetName(v string) *UserProfile { + s.Name = &v + return s +} + +// SetSshPublicKey sets the SshPublicKey field's value. +func (s *UserProfile) SetSshPublicKey(v string) *UserProfile { + s.SshPublicKey = &v + return s +} + +// SetSshUsername sets the SshUsername field's value. +func (s *UserProfile) SetSshUsername(v string) *UserProfile { + s.SshUsername = &v + return s +} + // Describes an instance's Amazon EBS volume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/Volume type Volume struct { _ struct{} `type:"structure"` @@ -11631,7 +15343,86 @@ func (s Volume) GoString() string { return s.String() } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Volume) SetAvailabilityZone(v string) *Volume { + s.AvailabilityZone = &v + return s +} + +// SetDevice sets the Device field's value. +func (s *Volume) SetDevice(v string) *Volume { + s.Device = &v + return s +} + +// SetEc2VolumeId sets the Ec2VolumeId field's value. +func (s *Volume) SetEc2VolumeId(v string) *Volume { + s.Ec2VolumeId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *Volume) SetInstanceId(v string) *Volume { + s.InstanceId = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *Volume) SetIops(v int64) *Volume { + s.Iops = &v + return s +} + +// SetMountPoint sets the MountPoint field's value. +func (s *Volume) SetMountPoint(v string) *Volume { + s.MountPoint = &v + return s +} + +// SetName sets the Name field's value. +func (s *Volume) SetName(v string) *Volume { + s.Name = &v + return s +} + +// SetRaidArrayId sets the RaidArrayId field's value. +func (s *Volume) SetRaidArrayId(v string) *Volume { + s.RaidArrayId = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *Volume) SetRegion(v string) *Volume { + s.Region = &v + return s +} + +// SetSize sets the Size field's value. +func (s *Volume) SetSize(v int64) *Volume { + s.Size = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Volume) SetStatus(v string) *Volume { + s.Status = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *Volume) SetVolumeId(v string) *Volume { + s.VolumeId = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *Volume) SetVolumeType(v string) *Volume { + s.VolumeType = &v + return s +} + // Describes an Amazon EBS volume configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/VolumeConfiguration type VolumeConfiguration struct { _ struct{} `type:"structure"` @@ -11658,11 +15449,11 @@ type VolumeConfiguration struct { // The volume type: // - // standard - Magnetic + // * standard - Magnetic // - // io1 - Provisioned IOPS (SSD) + // * io1 - Provisioned IOPS (SSD) // - // gp2 - General Purpose (SSD) + // * gp2 - General Purpose (SSD) VolumeType *string `type:"string"` } @@ -11695,16 +15486,52 @@ func (s *VolumeConfiguration) Validate() error { return nil } +// SetIops sets the Iops field's value. +func (s *VolumeConfiguration) SetIops(v int64) *VolumeConfiguration { + s.Iops = &v + return s +} + +// SetMountPoint sets the MountPoint field's value. +func (s *VolumeConfiguration) SetMountPoint(v string) *VolumeConfiguration { + s.MountPoint = &v + return s +} + +// SetNumberOfDisks sets the NumberOfDisks field's value. +func (s *VolumeConfiguration) SetNumberOfDisks(v int64) *VolumeConfiguration { + s.NumberOfDisks = &v + return s +} + +// SetRaidLevel sets the RaidLevel field's value. +func (s *VolumeConfiguration) SetRaidLevel(v int64) *VolumeConfiguration { + s.RaidLevel = &v + return s +} + +// SetSize sets the Size field's value. +func (s *VolumeConfiguration) SetSize(v int64) *VolumeConfiguration { + s.Size = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *VolumeConfiguration) SetVolumeType(v string) *VolumeConfiguration { + s.VolumeType = &v + return s +} + // Describes a time-based instance's auto scaling schedule. The schedule consists // of a set of key-value pairs. // -// The key is the time period (a UTC hour) and must be an integer from 0 -// - 23. +// * The key is the time period (a UTC hour) and must be an integer from +// 0 - 23. // -// The value indicates whether the instance should be online or offline for -// the specified period, and must be set to "on" or "off" +// * The value indicates whether the instance should be online or offline +// for the specified period, and must be set to "on" or "off" // -// The default setting for all time periods is off, so you use the following +// The default setting for all time periods is off, so you use the following // parameters primarily to specify the online periods. You don't have to explicitly // specify offline periods unless you want to change an online period to an // offline period. @@ -11712,7 +15539,8 @@ func (s *VolumeConfiguration) Validate() error { // The following example specifies that the instance should be online for four // hours, from UTC 1200 - 1600. It will be off for the remainder of the day. // -// { "12":"on", "13":"on", "14":"on", "15":"on" } +// { "12":"on", "13":"on", "14":"on", "15":"on" } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/WeeklyAutoScalingSchedule type WeeklyAutoScalingSchedule struct { _ struct{} `type:"structure"` @@ -11748,6 +15576,48 @@ func (s WeeklyAutoScalingSchedule) GoString() string { return s.String() } +// SetFriday sets the Friday field's value. +func (s *WeeklyAutoScalingSchedule) SetFriday(v map[string]*string) *WeeklyAutoScalingSchedule { + s.Friday = v + return s +} + +// SetMonday sets the Monday field's value. +func (s *WeeklyAutoScalingSchedule) SetMonday(v map[string]*string) *WeeklyAutoScalingSchedule { + s.Monday = v + return s +} + +// SetSaturday sets the Saturday field's value. +func (s *WeeklyAutoScalingSchedule) SetSaturday(v map[string]*string) *WeeklyAutoScalingSchedule { + s.Saturday = v + return s +} + +// SetSunday sets the Sunday field's value. +func (s *WeeklyAutoScalingSchedule) SetSunday(v map[string]*string) *WeeklyAutoScalingSchedule { + s.Sunday = v + return s +} + +// SetThursday sets the Thursday field's value. +func (s *WeeklyAutoScalingSchedule) SetThursday(v map[string]*string) *WeeklyAutoScalingSchedule { + s.Thursday = v + return s +} + +// SetTuesday sets the Tuesday field's value. +func (s *WeeklyAutoScalingSchedule) SetTuesday(v map[string]*string) *WeeklyAutoScalingSchedule { + s.Tuesday = v + return s +} + +// SetWednesday sets the Wednesday field's value. +func (s *WeeklyAutoScalingSchedule) SetWednesday(v map[string]*string) *WeeklyAutoScalingSchedule { + s.Wednesday = v + return s +} + const ( // AppAttributesKeysDocumentRoot is a AppAttributesKeys enum value AppAttributesKeysDocumentRoot = "DocumentRoot" diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworks/errors.go b/vendor/github.com/aws/aws-sdk-go/service/opsworks/errors.go new file mode 100644 index 000000000..d3e09499d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworks/errors.go @@ -0,0 +1,18 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package opsworks + +const ( + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // Indicates that a resource was not found. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeValidationException for service response error code + // "ValidationException". + // + // Indicates that a request was not valid. + ErrCodeValidationException = "ValidationException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworks/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/opsworks/examples_test.go index fcb09376c..be7766414 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/opsworks/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworks/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleOpsWorks_AssignInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -45,11 +41,7 @@ func ExampleOpsWorks_AssignInstance() { } func ExampleOpsWorks_AssignVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -71,11 +63,7 @@ func ExampleOpsWorks_AssignVolume() { } func ExampleOpsWorks_AssociateElasticIp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -97,11 +85,7 @@ func ExampleOpsWorks_AssociateElasticIp() { } func ExampleOpsWorks_AttachElasticLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -123,11 +107,7 @@ func ExampleOpsWorks_AttachElasticLoadBalancer() { } func ExampleOpsWorks_CloneStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -188,11 +168,7 @@ func ExampleOpsWorks_CloneStack() { } func ExampleOpsWorks_CreateApp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -255,11 +231,7 @@ func ExampleOpsWorks_CreateApp() { } func ExampleOpsWorks_CreateDeployment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -301,11 +273,7 @@ func ExampleOpsWorks_CreateDeployment() { } func ExampleOpsWorks_CreateInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -360,11 +328,7 @@ func ExampleOpsWorks_CreateInstance() { } func ExampleOpsWorks_CreateLayer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -446,11 +410,7 @@ func ExampleOpsWorks_CreateLayer() { } func ExampleOpsWorks_CreateStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -505,11 +465,7 @@ func ExampleOpsWorks_CreateStack() { } func ExampleOpsWorks_CreateUserProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -533,11 +489,7 @@ func ExampleOpsWorks_CreateUserProfile() { } func ExampleOpsWorks_DeleteApp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -558,11 +510,7 @@ func ExampleOpsWorks_DeleteApp() { } func ExampleOpsWorks_DeleteInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -585,11 +533,7 @@ func ExampleOpsWorks_DeleteInstance() { } func ExampleOpsWorks_DeleteLayer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -610,11 +554,7 @@ func ExampleOpsWorks_DeleteLayer() { } func ExampleOpsWorks_DeleteStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -635,11 +575,7 @@ func ExampleOpsWorks_DeleteStack() { } func ExampleOpsWorks_DeleteUserProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -660,11 +596,7 @@ func ExampleOpsWorks_DeleteUserProfile() { } func ExampleOpsWorks_DeregisterEcsCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -685,11 +617,7 @@ func ExampleOpsWorks_DeregisterEcsCluster() { } func ExampleOpsWorks_DeregisterElasticIp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -710,11 +638,7 @@ func ExampleOpsWorks_DeregisterElasticIp() { } func ExampleOpsWorks_DeregisterInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -735,11 +659,7 @@ func ExampleOpsWorks_DeregisterInstance() { } func ExampleOpsWorks_DeregisterRdsDbInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -760,11 +680,7 @@ func ExampleOpsWorks_DeregisterRdsDbInstance() { } func ExampleOpsWorks_DeregisterVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -785,11 +701,7 @@ func ExampleOpsWorks_DeregisterVolume() { } func ExampleOpsWorks_DescribeAgentVersions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -814,11 +726,7 @@ func ExampleOpsWorks_DescribeAgentVersions() { } func ExampleOpsWorks_DescribeApps() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -843,11 +751,7 @@ func ExampleOpsWorks_DescribeApps() { } func ExampleOpsWorks_DescribeCommands() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -873,11 +777,7 @@ func ExampleOpsWorks_DescribeCommands() { } func ExampleOpsWorks_DescribeDeployments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -903,11 +803,7 @@ func ExampleOpsWorks_DescribeDeployments() { } func ExampleOpsWorks_DescribeEcsClusters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -934,11 +830,7 @@ func ExampleOpsWorks_DescribeEcsClusters() { } func ExampleOpsWorks_DescribeElasticIps() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -964,11 +856,7 @@ func ExampleOpsWorks_DescribeElasticIps() { } func ExampleOpsWorks_DescribeElasticLoadBalancers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -993,11 +881,7 @@ func ExampleOpsWorks_DescribeElasticLoadBalancers() { } func ExampleOpsWorks_DescribeInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1023,11 +907,7 @@ func ExampleOpsWorks_DescribeInstances() { } func ExampleOpsWorks_DescribeLayers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1052,11 +932,7 @@ func ExampleOpsWorks_DescribeLayers() { } func ExampleOpsWorks_DescribeLoadBasedAutoScaling() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1080,11 +956,7 @@ func ExampleOpsWorks_DescribeLoadBasedAutoScaling() { } func ExampleOpsWorks_DescribeMyUserProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1103,11 +975,7 @@ func ExampleOpsWorks_DescribeMyUserProfile() { } func ExampleOpsWorks_DescribePermissions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1129,11 +997,7 @@ func ExampleOpsWorks_DescribePermissions() { } func ExampleOpsWorks_DescribeRaidArrays() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1159,11 +1023,7 @@ func ExampleOpsWorks_DescribeRaidArrays() { } func ExampleOpsWorks_DescribeRdsDbInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1188,11 +1048,7 @@ func ExampleOpsWorks_DescribeRdsDbInstances() { } func ExampleOpsWorks_DescribeServiceErrors() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1218,11 +1074,7 @@ func ExampleOpsWorks_DescribeServiceErrors() { } func ExampleOpsWorks_DescribeStackProvisioningParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1243,11 +1095,7 @@ func ExampleOpsWorks_DescribeStackProvisioningParameters() { } func ExampleOpsWorks_DescribeStackSummary() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1268,11 +1116,7 @@ func ExampleOpsWorks_DescribeStackSummary() { } func ExampleOpsWorks_DescribeStacks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1296,11 +1140,7 @@ func ExampleOpsWorks_DescribeStacks() { } func ExampleOpsWorks_DescribeTimeBasedAutoScaling() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1324,11 +1164,7 @@ func ExampleOpsWorks_DescribeTimeBasedAutoScaling() { } func ExampleOpsWorks_DescribeUserProfiles() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1352,11 +1188,7 @@ func ExampleOpsWorks_DescribeUserProfiles() { } func ExampleOpsWorks_DescribeVolumes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1383,11 +1215,7 @@ func ExampleOpsWorks_DescribeVolumes() { } func ExampleOpsWorks_DetachElasticLoadBalancer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1409,11 +1237,7 @@ func ExampleOpsWorks_DetachElasticLoadBalancer() { } func ExampleOpsWorks_DisassociateElasticIp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1434,11 +1258,7 @@ func ExampleOpsWorks_DisassociateElasticIp() { } func ExampleOpsWorks_GetHostnameSuggestion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1459,11 +1279,7 @@ func ExampleOpsWorks_GetHostnameSuggestion() { } func ExampleOpsWorks_GrantAccess() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1485,11 +1301,7 @@ func ExampleOpsWorks_GrantAccess() { } func ExampleOpsWorks_RebootInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1510,11 +1322,7 @@ func ExampleOpsWorks_RebootInstance() { } func ExampleOpsWorks_RegisterEcsCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1536,11 +1344,7 @@ func ExampleOpsWorks_RegisterEcsCluster() { } func ExampleOpsWorks_RegisterElasticIp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1562,11 +1366,7 @@ func ExampleOpsWorks_RegisterElasticIp() { } func ExampleOpsWorks_RegisterInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1596,11 +1396,7 @@ func ExampleOpsWorks_RegisterInstance() { } func ExampleOpsWorks_RegisterRdsDbInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1624,11 +1420,7 @@ func ExampleOpsWorks_RegisterRdsDbInstance() { } func ExampleOpsWorks_RegisterVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1650,11 +1442,7 @@ func ExampleOpsWorks_RegisterVolume() { } func ExampleOpsWorks_SetLoadBasedAutoScaling() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1700,11 +1488,7 @@ func ExampleOpsWorks_SetLoadBasedAutoScaling() { } func ExampleOpsWorks_SetPermission() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1729,11 +1513,7 @@ func ExampleOpsWorks_SetPermission() { } func ExampleOpsWorks_SetTimeBasedAutoScaling() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1784,11 +1564,7 @@ func ExampleOpsWorks_SetTimeBasedAutoScaling() { } func ExampleOpsWorks_StartInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1809,11 +1585,7 @@ func ExampleOpsWorks_StartInstance() { } func ExampleOpsWorks_StartStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1834,11 +1606,7 @@ func ExampleOpsWorks_StartStack() { } func ExampleOpsWorks_StopInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1859,11 +1627,7 @@ func ExampleOpsWorks_StopInstance() { } func ExampleOpsWorks_StopStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1884,11 +1648,7 @@ func ExampleOpsWorks_StopStack() { } func ExampleOpsWorks_UnassignInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1909,11 +1669,7 @@ func ExampleOpsWorks_UnassignInstance() { } func ExampleOpsWorks_UnassignVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -1934,11 +1690,7 @@ func ExampleOpsWorks_UnassignVolume() { } func ExampleOpsWorks_UpdateApp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -2000,11 +1752,7 @@ func ExampleOpsWorks_UpdateApp() { } func ExampleOpsWorks_UpdateElasticIp() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -2026,11 +1774,7 @@ func ExampleOpsWorks_UpdateElasticIp() { } func ExampleOpsWorks_UpdateInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -2065,11 +1809,7 @@ func ExampleOpsWorks_UpdateInstance() { } func ExampleOpsWorks_UpdateLayer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -2150,11 +1890,7 @@ func ExampleOpsWorks_UpdateLayer() { } func ExampleOpsWorks_UpdateMyUserProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -2175,11 +1911,7 @@ func ExampleOpsWorks_UpdateMyUserProfile() { } func ExampleOpsWorks_UpdateRdsDbInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -2202,11 +1934,7 @@ func ExampleOpsWorks_UpdateRdsDbInstance() { } func ExampleOpsWorks_UpdateStack() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -2260,11 +1988,7 @@ func ExampleOpsWorks_UpdateStack() { } func ExampleOpsWorks_UpdateUserProfile() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) @@ -2288,11 +2012,7 @@ func ExampleOpsWorks_UpdateUserProfile() { } func ExampleOpsWorks_UpdateVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := opsworks.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworks/opsworksiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/opsworks/opsworksiface/interface.go index 1078a4f38..b3ba568bc 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/opsworks/opsworksiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworks/opsworksiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockOpsWorksClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworks/service.go b/vendor/github.com/aws/aws-sdk-go/service/opsworks/service.go index e960131ee..fa799d9ff 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/opsworks/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworks/service.go @@ -20,65 +20,66 @@ import ( // about this product, go to the AWS OpsWorks (http://aws.amazon.com/opsworks/) // details page. // -// SDKs and CLI +// SDKs and CLI // // The most common way to use the AWS OpsWorks API is by using the AWS Command // Line Interface (CLI) or by using one of the AWS SDKs to implement applications // in your preferred language. For more information, see: // -// AWS CLI (http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html) +// * AWS CLI (http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html) // -// AWS SDK for Java (http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/opsworks/AWSOpsWorksClient.html) +// * AWS SDK for Java (http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/opsworks/AWSOpsWorksClient.html) // -// AWS SDK for .NET (http://docs.aws.amazon.com/sdkfornet/latest/apidocs/html/N_Amazon_OpsWorks.htm) +// * AWS SDK for .NET (http://docs.aws.amazon.com/sdkfornet/latest/apidocs/html/N_Amazon_OpsWorks.htm) // -// AWS SDK for PHP 2 (http://docs.aws.amazon.com/aws-sdk-php-2/latest/class-Aws.OpsWorks.OpsWorksClient.html) +// * AWS SDK for PHP 2 (http://docs.aws.amazon.com/aws-sdk-php-2/latest/class-Aws.OpsWorks.OpsWorksClient.html) // -// AWS SDK for Ruby (http://docs.aws.amazon.com/sdkforruby/api/) +// * AWS SDK for Ruby (http://docs.aws.amazon.com/sdkforruby/api/) // -// AWS SDK for Node.js (http://aws.amazon.com/documentation/sdkforjavascript/) +// * AWS SDK for Node.js (http://aws.amazon.com/documentation/sdkforjavascript/) // -// AWS SDK for Python(Boto) (http://docs.pythonboto.org/en/latest/ref/opsworks.html) +// * AWS SDK for Python(Boto) (http://docs.pythonboto.org/en/latest/ref/opsworks.html) // -// Endpoints +// Endpoints // // AWS OpsWorks supports the following endpoints, all HTTPS. You must connect // to one of the following endpoints. Stacks can only be accessed or managed // within the endpoint in which they are created. // -// opsworks.us-east-1.amazonaws.com +// * opsworks.us-east-1.amazonaws.com // -// opsworks.us-west-1.amazonaws.com +// * opsworks.us-west-1.amazonaws.com // -// opsworks.us-west-2.amazonaws.com +// * opsworks.us-west-2.amazonaws.com // -// opsworks.eu-west-1.amazonaws.com +// * opsworks.eu-west-1.amazonaws.com // -// opsworks.eu-central-1.amazonaws.com +// * opsworks.eu-central-1.amazonaws.com // -// opsworks.ap-northeast-1.amazonaws.com +// * opsworks.ap-northeast-1.amazonaws.com // -// opsworks.ap-northeast-2.amazonaws.com +// * opsworks.ap-northeast-2.amazonaws.com // -// opsworks.ap-south-1.amazonaws.com +// * opsworks.ap-south-1.amazonaws.com // -// opsworks.ap-southeast-1.amazonaws.com +// * opsworks.ap-southeast-1.amazonaws.com // -// opsworks.ap-southeast-2.amazonaws.com +// * opsworks.ap-southeast-2.amazonaws.com // -// opsworks.sa-east-1.amazonaws.com +// * opsworks.sa-east-1.amazonaws.com // -// Chef Versions +// Chef Versions // // When you call CreateStack, CloneStack, or UpdateStack we recommend you use // the ConfigurationManager parameter to specify the Chef version. The recommended // and default value for Linux stacks is currently 12. Windows stacks use Chef // 12.2. For more information, see Chef Versions (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-chef11.html). // -// You can specify Chef 12, 11.10, or 11.4 for your Linux stack. We recommend +// You can specify Chef 12, 11.10, or 11.4 for your Linux stack. We recommend // migrating your existing Linux stacks to Chef 12 as soon as possible. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18 type OpsWorks struct { *client.Client } @@ -89,8 +90,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "opsworks" +// Service information constants +const ( + ServiceName = "opsworks" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the OpsWorks client with a session. // If additional configuration is needed for the client instance use the optional @@ -103,17 +107,18 @@ const ServiceName = "opsworks" // // Create a OpsWorks client with additional configuration // svc := opsworks.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *OpsWorks { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OpsWorks { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OpsWorks { svc := &OpsWorks{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2013-02-18", diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/api.go b/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/api.go new file mode 100644 index 000000000..a6785d71f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/api.go @@ -0,0 +1,3436 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package opsworkscm provides a client for AWS OpsWorks for Chef Automate. +package opsworkscm + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opAssociateNode = "AssociateNode" + +// AssociateNodeRequest generates a "aws/request.Request" representing the +// client's request for the AssociateNode operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AssociateNode for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AssociateNode method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AssociateNodeRequest method. +// req, resp := client.AssociateNodeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/AssociateNode +func (c *OpsWorksCM) AssociateNodeRequest(input *AssociateNodeInput) (req *request.Request, output *AssociateNodeOutput) { + op := &request.Operation{ + Name: opAssociateNode, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AssociateNodeInput{} + } + + output = &AssociateNodeOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssociateNode API operation for AWS OpsWorks for Chef Automate. +// +// Associates a new node with the Chef server. This command is an alternative +// to knife bootstrap. For more information about how to disassociate a node, +// see DisassociateNode. +// +// A node can can only be associated with servers that are in a HEALTHY state. +// Otherwise, an InvalidStateException is thrown. A ResourceNotFoundException +// is thrown when the server does not exist. A ValidationException is raised +// when parameters of the request are not valid. The AssociateNode API call +// can be integrated into Auto Scaling configurations, AWS Cloudformation templates, +// or the user data of a server's instance. +// +// Example: aws opsworks-cm associate-node --server-name MyServer --node-name +// MyManagedNode --engine-attributes "Name=MyOrganization,Value=default" "Name=Chef_node_public_key,Value=Public_key_contents" +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks for Chef Automate's +// API operation AssociateNode for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidStateException "InvalidStateException" +// The resource is in a state that does not allow you to perform a specified +// action. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource does not exist, or access was denied. +// +// * ErrCodeValidationException "ValidationException" +// One or more of the provided request parameters are not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/AssociateNode +func (c *OpsWorksCM) AssociateNode(input *AssociateNodeInput) (*AssociateNodeOutput, error) { + req, out := c.AssociateNodeRequest(input) + err := req.Send() + return out, err +} + +const opCreateBackup = "CreateBackup" + +// CreateBackupRequest generates a "aws/request.Request" representing the +// client's request for the CreateBackup operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateBackup for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateBackup method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateBackupRequest method. +// req, resp := client.CreateBackupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/CreateBackup +func (c *OpsWorksCM) CreateBackupRequest(input *CreateBackupInput) (req *request.Request, output *CreateBackupOutput) { + op := &request.Operation{ + Name: opCreateBackup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateBackupInput{} + } + + output = &CreateBackupOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateBackup API operation for AWS OpsWorks for Chef Automate. +// +// Creates an application-level backup of a server. While the server is in the +// BACKING_UP state, the server cannot be changed, and no additional backup +// can be created. +// +// Backups can be created for servers in RUNNING, HEALTHY, and UNHEALTHY states. +// By default, you can create a maximum of 50 manual backups. +// +// This operation is asynchronous. +// +// A LimitExceededException is thrown when the maximum number of manual backups +// is reached. An InvalidStateException is thrown when the server is not in +// any of the following states: RUNNING, HEALTHY, or UNHEALTHY. A ResourceNotFoundException +// is thrown when the server is not found. A ValidationException is thrown when +// parameters of the request are not valid. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks for Chef Automate's +// API operation CreateBackup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidStateException "InvalidStateException" +// The resource is in a state that does not allow you to perform a specified +// action. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The limit of servers or backups has been reached. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource does not exist, or access was denied. +// +// * ErrCodeValidationException "ValidationException" +// One or more of the provided request parameters are not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/CreateBackup +func (c *OpsWorksCM) CreateBackup(input *CreateBackupInput) (*CreateBackupOutput, error) { + req, out := c.CreateBackupRequest(input) + err := req.Send() + return out, err +} + +const opCreateServer = "CreateServer" + +// CreateServerRequest generates a "aws/request.Request" representing the +// client's request for the CreateServer operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateServer for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateServer method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateServerRequest method. +// req, resp := client.CreateServerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/CreateServer +func (c *OpsWorksCM) CreateServerRequest(input *CreateServerInput) (req *request.Request, output *CreateServerOutput) { + op := &request.Operation{ + Name: opCreateServer, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateServerInput{} + } + + output = &CreateServerOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateServer API operation for AWS OpsWorks for Chef Automate. +// +// Creates and immedately starts a new server. The server is ready to use when +// it is in the HEALTHY state. By default, you can create a maximum of 10 servers. +// +// This operation is asynchronous. +// +// A LimitExceededException is thrown when you have created the maximum number +// of servers (10). A ResourceAlreadyExistsException is thrown when a server +// with the same name already exists in the account. A ResourceNotFoundException +// is thrown when you specify a backup ID that is not valid or is for a backup +// that does not exist. A ValidationException is thrown when parameters of the +// request are not valid. +// +// If you do not specify a security group by adding the SecurityGroupIds parameter, +// AWS OpsWorks creates a new security group. The default security group opens +// the Chef server to the world on TCP port 443. If a KeyName is present, AWS +// OpsWorks enables SSH access. SSH is also open to the world on TCP port 22. +// +// By default, the Chef Server is accessible from any IP address. We recommend +// that you update your security group rules to allow access from known IP addresses +// and address ranges only. To edit security group rules, open Security Groups +// in the navigation pane of the EC2 management console. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks for Chef Automate's +// API operation CreateServer for usage and error information. +// +// Returned Error Codes: +// * ErrCodeLimitExceededException "LimitExceededException" +// The limit of servers or backups has been reached. +// +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// The requested resource cannot be created because it already exists. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource does not exist, or access was denied. +// +// * ErrCodeValidationException "ValidationException" +// One or more of the provided request parameters are not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/CreateServer +func (c *OpsWorksCM) CreateServer(input *CreateServerInput) (*CreateServerOutput, error) { + req, out := c.CreateServerRequest(input) + err := req.Send() + return out, err +} + +const opDeleteBackup = "DeleteBackup" + +// DeleteBackupRequest generates a "aws/request.Request" representing the +// client's request for the DeleteBackup operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteBackup for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteBackup method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteBackupRequest method. +// req, resp := client.DeleteBackupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DeleteBackup +func (c *OpsWorksCM) DeleteBackupRequest(input *DeleteBackupInput) (req *request.Request, output *DeleteBackupOutput) { + op := &request.Operation{ + Name: opDeleteBackup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteBackupInput{} + } + + output = &DeleteBackupOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteBackup API operation for AWS OpsWorks for Chef Automate. +// +// Deletes a backup. You can delete both manual and automated backups. This +// operation is asynchronous. +// +// An InvalidStateException is thrown when a backup deletion is already in progress. +// A ResourceNotFoundException is thrown when the backup does not exist. A ValidationException +// is thrown when parameters of the request are not valid. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks for Chef Automate's +// API operation DeleteBackup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidStateException "InvalidStateException" +// The resource is in a state that does not allow you to perform a specified +// action. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource does not exist, or access was denied. +// +// * ErrCodeValidationException "ValidationException" +// One or more of the provided request parameters are not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DeleteBackup +func (c *OpsWorksCM) DeleteBackup(input *DeleteBackupInput) (*DeleteBackupOutput, error) { + req, out := c.DeleteBackupRequest(input) + err := req.Send() + return out, err +} + +const opDeleteServer = "DeleteServer" + +// DeleteServerRequest generates a "aws/request.Request" representing the +// client's request for the DeleteServer operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteServer for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteServer method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteServerRequest method. +// req, resp := client.DeleteServerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DeleteServer +func (c *OpsWorksCM) DeleteServerRequest(input *DeleteServerInput) (req *request.Request, output *DeleteServerOutput) { + op := &request.Operation{ + Name: opDeleteServer, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteServerInput{} + } + + output = &DeleteServerOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteServer API operation for AWS OpsWorks for Chef Automate. +// +// Deletes the server and the underlying AWS CloudFormation stack (including +// the server's EC2 instance). When you run this command, the server state is +// updated to DELETING. After the server is deleted, it is no longer returned +// by DescribeServer requests. If the AWS CloudFormation stack cannot be deleted, +// the server cannot be deleted. +// +// This operation is asynchronous. +// +// An InvalidStateException is thrown when a server deletion is already in progress. +// A ResourceNotFoundException is thrown when the server does not exist. A ValidationException +// is raised when parameters of the request are not valid. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks for Chef Automate's +// API operation DeleteServer for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidStateException "InvalidStateException" +// The resource is in a state that does not allow you to perform a specified +// action. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource does not exist, or access was denied. +// +// * ErrCodeValidationException "ValidationException" +// One or more of the provided request parameters are not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DeleteServer +func (c *OpsWorksCM) DeleteServer(input *DeleteServerInput) (*DeleteServerOutput, error) { + req, out := c.DeleteServerRequest(input) + err := req.Send() + return out, err +} + +const opDescribeAccountAttributes = "DescribeAccountAttributes" + +// DescribeAccountAttributesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAccountAttributes operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeAccountAttributes for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeAccountAttributes method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeAccountAttributesRequest method. +// req, resp := client.DescribeAccountAttributesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeAccountAttributes +func (c *OpsWorksCM) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) (req *request.Request, output *DescribeAccountAttributesOutput) { + op := &request.Operation{ + Name: opDescribeAccountAttributes, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeAccountAttributesInput{} + } + + output = &DescribeAccountAttributesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeAccountAttributes API operation for AWS OpsWorks for Chef Automate. +// +// Describes your account attributes, and creates requests to increase limits +// before they are reached or exceeded. +// +// This operation is synchronous. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks for Chef Automate's +// API operation DescribeAccountAttributes for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeAccountAttributes +func (c *OpsWorksCM) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) { + req, out := c.DescribeAccountAttributesRequest(input) + err := req.Send() + return out, err +} + +const opDescribeBackups = "DescribeBackups" + +// DescribeBackupsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeBackups operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeBackups for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeBackups method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeBackupsRequest method. +// req, resp := client.DescribeBackupsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeBackups +func (c *OpsWorksCM) DescribeBackupsRequest(input *DescribeBackupsInput) (req *request.Request, output *DescribeBackupsOutput) { + op := &request.Operation{ + Name: opDescribeBackups, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeBackupsInput{} + } + + output = &DescribeBackupsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeBackups API operation for AWS OpsWorks for Chef Automate. +// +// Describes backups. The results are ordered by time, with newest backups first. +// If you do not specify a BackupId or ServerName, the command returns all backups. +// +// This operation is synchronous. +// +// A ResourceNotFoundException is thrown when the backup does not exist. A ValidationException +// is raised when parameters of the request are not valid. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks for Chef Automate's +// API operation DescribeBackups for usage and error information. +// +// Returned Error Codes: +// * ErrCodeValidationException "ValidationException" +// One or more of the provided request parameters are not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource does not exist, or access was denied. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// This occurs when the provided nextToken is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeBackups +func (c *OpsWorksCM) DescribeBackups(input *DescribeBackupsInput) (*DescribeBackupsOutput, error) { + req, out := c.DescribeBackupsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeEvents = "DescribeEvents" + +// DescribeEventsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeEvents operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeEvents for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeEvents method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeEventsRequest method. +// req, resp := client.DescribeEventsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeEvents +func (c *OpsWorksCM) DescribeEventsRequest(input *DescribeEventsInput) (req *request.Request, output *DescribeEventsOutput) { + op := &request.Operation{ + Name: opDescribeEvents, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeEventsInput{} + } + + output = &DescribeEventsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeEvents API operation for AWS OpsWorks for Chef Automate. +// +// Describes events for a specified server. Results are ordered by time, with +// newest events first. +// +// This operation is synchronous. +// +// A ResourceNotFoundException is thrown when the server does not exist. A ValidationException +// is raised when parameters of the request are not valid. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks for Chef Automate's +// API operation DescribeEvents for usage and error information. +// +// Returned Error Codes: +// * ErrCodeValidationException "ValidationException" +// One or more of the provided request parameters are not valid. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// This occurs when the provided nextToken is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource does not exist, or access was denied. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeEvents +func (c *OpsWorksCM) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) { + req, out := c.DescribeEventsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeNodeAssociationStatus = "DescribeNodeAssociationStatus" + +// DescribeNodeAssociationStatusRequest generates a "aws/request.Request" representing the +// client's request for the DescribeNodeAssociationStatus operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeNodeAssociationStatus for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeNodeAssociationStatus method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeNodeAssociationStatusRequest method. +// req, resp := client.DescribeNodeAssociationStatusRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeNodeAssociationStatus +func (c *OpsWorksCM) DescribeNodeAssociationStatusRequest(input *DescribeNodeAssociationStatusInput) (req *request.Request, output *DescribeNodeAssociationStatusOutput) { + op := &request.Operation{ + Name: opDescribeNodeAssociationStatus, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeNodeAssociationStatusInput{} + } + + output = &DescribeNodeAssociationStatusOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeNodeAssociationStatus API operation for AWS OpsWorks for Chef Automate. +// +// Returns the current status of an existing association or disassociation request. +// +// A ResourceNotFoundException is thrown when no recent association or disassociation +// request with the specified token is found, or when the server does not exist. +// A ValidationException is raised when parameters of the request are not valid. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks for Chef Automate's +// API operation DescribeNodeAssociationStatus for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource does not exist, or access was denied. +// +// * ErrCodeValidationException "ValidationException" +// One or more of the provided request parameters are not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeNodeAssociationStatus +func (c *OpsWorksCM) DescribeNodeAssociationStatus(input *DescribeNodeAssociationStatusInput) (*DescribeNodeAssociationStatusOutput, error) { + req, out := c.DescribeNodeAssociationStatusRequest(input) + err := req.Send() + return out, err +} + +const opDescribeServers = "DescribeServers" + +// DescribeServersRequest generates a "aws/request.Request" representing the +// client's request for the DescribeServers operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeServers for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeServers method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeServersRequest method. +// req, resp := client.DescribeServersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeServers +func (c *OpsWorksCM) DescribeServersRequest(input *DescribeServersInput) (req *request.Request, output *DescribeServersOutput) { + op := &request.Operation{ + Name: opDescribeServers, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeServersInput{} + } + + output = &DescribeServersOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeServers API operation for AWS OpsWorks for Chef Automate. +// +// Lists all configuration management servers that are identified with your +// account. Only the stored results from Amazon DynamoDB are returned. AWS OpsWorks +// for Chef Automate does not query other services. +// +// This operation is synchronous. +// +// A ResourceNotFoundException is thrown when the server does not exist. A ValidationException +// is raised when parameters of the request are not valid. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks for Chef Automate's +// API operation DescribeServers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeValidationException "ValidationException" +// One or more of the provided request parameters are not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource does not exist, or access was denied. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// This occurs when the provided nextToken is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeServers +func (c *OpsWorksCM) DescribeServers(input *DescribeServersInput) (*DescribeServersOutput, error) { + req, out := c.DescribeServersRequest(input) + err := req.Send() + return out, err +} + +const opDisassociateNode = "DisassociateNode" + +// DisassociateNodeRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateNode operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DisassociateNode for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DisassociateNode method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DisassociateNodeRequest method. +// req, resp := client.DisassociateNodeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DisassociateNode +func (c *OpsWorksCM) DisassociateNodeRequest(input *DisassociateNodeInput) (req *request.Request, output *DisassociateNodeOutput) { + op := &request.Operation{ + Name: opDisassociateNode, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisassociateNodeInput{} + } + + output = &DisassociateNodeOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateNode API operation for AWS OpsWorks for Chef Automate. +// +// Disassociates a node from a Chef server, and removes the node from the Chef +// server's managed nodes. After a node is disassociated, the node key pair +// is no longer valid for accessing the Chef API. For more information about +// how to associate a node, see AssociateNode. +// +// A node can can only be disassociated from a server that is in a HEALTHY state. +// Otherwise, an InvalidStateException is thrown. A ResourceNotFoundException +// is thrown when the server does not exist. A ValidationException is raised +// when parameters of the request are not valid. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks for Chef Automate's +// API operation DisassociateNode for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidStateException "InvalidStateException" +// The resource is in a state that does not allow you to perform a specified +// action. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource does not exist, or access was denied. +// +// * ErrCodeValidationException "ValidationException" +// One or more of the provided request parameters are not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DisassociateNode +func (c *OpsWorksCM) DisassociateNode(input *DisassociateNodeInput) (*DisassociateNodeOutput, error) { + req, out := c.DisassociateNodeRequest(input) + err := req.Send() + return out, err +} + +const opRestoreServer = "RestoreServer" + +// RestoreServerRequest generates a "aws/request.Request" representing the +// client's request for the RestoreServer operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See RestoreServer for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the RestoreServer method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the RestoreServerRequest method. +// req, resp := client.RestoreServerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/RestoreServer +func (c *OpsWorksCM) RestoreServerRequest(input *RestoreServerInput) (req *request.Request, output *RestoreServerOutput) { + op := &request.Operation{ + Name: opRestoreServer, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RestoreServerInput{} + } + + output = &RestoreServerOutput{} + req = c.newRequest(op, input, output) + return +} + +// RestoreServer API operation for AWS OpsWorks for Chef Automate. +// +// Restores a backup to a server that is in a CONNECTION_LOST, HEALTHY, RUNNING, +// UNHEALTHY, or TERMINATED state. When you run RestoreServer, the server's +// EC2 instance is deleted, and a new EC2 instance is configured. RestoreServer +// maintains the existing server endpoint, so configuration management of the +// server's client devices (nodes) should continue to work. +// +// This operation is asynchronous. +// +// An InvalidStateException is thrown when the server is not in a valid state. +// A ResourceNotFoundException is thrown when the server does not exist. A ValidationException +// is raised when parameters of the request are not valid. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks for Chef Automate's +// API operation RestoreServer for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidStateException "InvalidStateException" +// The resource is in a state that does not allow you to perform a specified +// action. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource does not exist, or access was denied. +// +// * ErrCodeValidationException "ValidationException" +// One or more of the provided request parameters are not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/RestoreServer +func (c *OpsWorksCM) RestoreServer(input *RestoreServerInput) (*RestoreServerOutput, error) { + req, out := c.RestoreServerRequest(input) + err := req.Send() + return out, err +} + +const opStartMaintenance = "StartMaintenance" + +// StartMaintenanceRequest generates a "aws/request.Request" representing the +// client's request for the StartMaintenance operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See StartMaintenance for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the StartMaintenance method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the StartMaintenanceRequest method. +// req, resp := client.StartMaintenanceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/StartMaintenance +func (c *OpsWorksCM) StartMaintenanceRequest(input *StartMaintenanceInput) (req *request.Request, output *StartMaintenanceOutput) { + op := &request.Operation{ + Name: opStartMaintenance, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartMaintenanceInput{} + } + + output = &StartMaintenanceOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartMaintenance API operation for AWS OpsWorks for Chef Automate. +// +// Manually starts server maintenance. This command can be useful if an earlier +// maintenance attempt failed, and the underlying cause of maintenance failure +// has been resolved. The server is in an UNDER_MAINTENANCE state while maintenance +// is in progress. +// +// Maintenance can only be started on servers in HEALTHY and UNHEALTHY states. +// Otherwise, an InvalidStateException is thrown. A ResourceNotFoundException +// is thrown when the server does not exist. A ValidationException is raised +// when parameters of the request are not valid. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks for Chef Automate's +// API operation StartMaintenance for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidStateException "InvalidStateException" +// The resource is in a state that does not allow you to perform a specified +// action. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource does not exist, or access was denied. +// +// * ErrCodeValidationException "ValidationException" +// One or more of the provided request parameters are not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/StartMaintenance +func (c *OpsWorksCM) StartMaintenance(input *StartMaintenanceInput) (*StartMaintenanceOutput, error) { + req, out := c.StartMaintenanceRequest(input) + err := req.Send() + return out, err +} + +const opUpdateServer = "UpdateServer" + +// UpdateServerRequest generates a "aws/request.Request" representing the +// client's request for the UpdateServer operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateServer for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateServer method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateServerRequest method. +// req, resp := client.UpdateServerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/UpdateServer +func (c *OpsWorksCM) UpdateServerRequest(input *UpdateServerInput) (req *request.Request, output *UpdateServerOutput) { + op := &request.Operation{ + Name: opUpdateServer, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateServerInput{} + } + + output = &UpdateServerOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateServer API operation for AWS OpsWorks for Chef Automate. +// +// Updates settings for a server. +// +// This operation is synchronous. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks for Chef Automate's +// API operation UpdateServer for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidStateException "InvalidStateException" +// The resource is in a state that does not allow you to perform a specified +// action. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource does not exist, or access was denied. +// +// * ErrCodeValidationException "ValidationException" +// One or more of the provided request parameters are not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/UpdateServer +func (c *OpsWorksCM) UpdateServer(input *UpdateServerInput) (*UpdateServerOutput, error) { + req, out := c.UpdateServerRequest(input) + err := req.Send() + return out, err +} + +const opUpdateServerEngineAttributes = "UpdateServerEngineAttributes" + +// UpdateServerEngineAttributesRequest generates a "aws/request.Request" representing the +// client's request for the UpdateServerEngineAttributes operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateServerEngineAttributes for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateServerEngineAttributes method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateServerEngineAttributesRequest method. +// req, resp := client.UpdateServerEngineAttributesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/UpdateServerEngineAttributes +func (c *OpsWorksCM) UpdateServerEngineAttributesRequest(input *UpdateServerEngineAttributesInput) (req *request.Request, output *UpdateServerEngineAttributesOutput) { + op := &request.Operation{ + Name: opUpdateServerEngineAttributes, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateServerEngineAttributesInput{} + } + + output = &UpdateServerEngineAttributesOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateServerEngineAttributes API operation for AWS OpsWorks for Chef Automate. +// +// Updates engine-specific attributes on a specified server. The server enters +// the MODIFYING state when this operation is in progress. Only one update can +// occur at a time. You can use this command to reset the Chef server's private +// key (CHEF_PIVOTAL_KEY). +// +// This operation is asynchronous. +// +// This operation can only be called for servers in HEALTHY or UNHEALTHY states. +// Otherwise, an InvalidStateException is raised. A ResourceNotFoundException +// is thrown when the server does not exist. A ValidationException is raised +// when parameters of the request are not valid. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks for Chef Automate's +// API operation UpdateServerEngineAttributes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidStateException "InvalidStateException" +// The resource is in a state that does not allow you to perform a specified +// action. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource does not exist, or access was denied. +// +// * ErrCodeValidationException "ValidationException" +// One or more of the provided request parameters are not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/UpdateServerEngineAttributes +func (c *OpsWorksCM) UpdateServerEngineAttributes(input *UpdateServerEngineAttributesInput) (*UpdateServerEngineAttributesOutput, error) { + req, out := c.UpdateServerEngineAttributesRequest(input) + err := req.Send() + return out, err +} + +// Stores account attributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/AccountAttribute +type AccountAttribute struct { + _ struct{} `type:"structure"` + + // The maximum allowed value. + Maximum *int64 `type:"integer"` + + // The attribute name. The following are supported attribute names. + // + // * ServerLimit: The number of current servers/maximum number of servers + // allowed. By default, you can have a maximum of 10 servers. + // + // * ManualBackupLimit: The number of current manual backups/maximum number + // of backups allowed. By default, you can have a maximum of 50 manual backups + // saved. + Name *string `type:"string"` + + // The current usage, such as the current number of servers that are associated + // with the account. + Used *int64 `type:"integer"` +} + +// String returns the string representation +func (s AccountAttribute) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccountAttribute) GoString() string { + return s.String() +} + +// SetMaximum sets the Maximum field's value. +func (s *AccountAttribute) SetMaximum(v int64) *AccountAttribute { + s.Maximum = &v + return s +} + +// SetName sets the Name field's value. +func (s *AccountAttribute) SetName(v string) *AccountAttribute { + s.Name = &v + return s +} + +// SetUsed sets the Used field's value. +func (s *AccountAttribute) SetUsed(v int64) *AccountAttribute { + s.Used = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/AssociateNodeRequest +type AssociateNodeInput struct { + _ struct{} `type:"structure"` + + // Engine attributes used for associating the node. + // + // Attributes accepted in a AssociateNode request: + // + // * CHEF_ORGANIZATION: The Chef organization with which the node is associated. + // By default only one organization named default can exist. + // + // * CHEF_NODE_PUBLIC_KEY: A PEM-formatted public key. This key is required + // for the chef-client agent to access the Chef API. + // + // EngineAttributes is a required field + EngineAttributes []*EngineAttribute `type:"list" required:"true"` + + // The name of the Chef client node. + // + // NodeName is a required field + NodeName *string `type:"string" required:"true"` + + // The name of the server with which to associate the node. + // + // ServerName is a required field + ServerName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateNodeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateNodeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateNodeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateNodeInput"} + if s.EngineAttributes == nil { + invalidParams.Add(request.NewErrParamRequired("EngineAttributes")) + } + if s.NodeName == nil { + invalidParams.Add(request.NewErrParamRequired("NodeName")) + } + if s.ServerName == nil { + invalidParams.Add(request.NewErrParamRequired("ServerName")) + } + if s.ServerName != nil && len(*s.ServerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEngineAttributes sets the EngineAttributes field's value. +func (s *AssociateNodeInput) SetEngineAttributes(v []*EngineAttribute) *AssociateNodeInput { + s.EngineAttributes = v + return s +} + +// SetNodeName sets the NodeName field's value. +func (s *AssociateNodeInput) SetNodeName(v string) *AssociateNodeInput { + s.NodeName = &v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *AssociateNodeInput) SetServerName(v string) *AssociateNodeInput { + s.ServerName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/AssociateNodeResponse +type AssociateNodeOutput struct { + _ struct{} `type:"structure"` + + // Contains a token which can be passed to the DescribeNodeAssociationStatus + // API call to get the status of the association request. + NodeAssociationStatusToken *string `type:"string"` +} + +// String returns the string representation +func (s AssociateNodeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateNodeOutput) GoString() string { + return s.String() +} + +// SetNodeAssociationStatusToken sets the NodeAssociationStatusToken field's value. +func (s *AssociateNodeOutput) SetNodeAssociationStatusToken(v string) *AssociateNodeOutput { + s.NodeAssociationStatusToken = &v + return s +} + +// Describes a single backup. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/Backup +type Backup struct { + _ struct{} `type:"structure"` + + // The ARN of the backup. + BackupArn *string `type:"string"` + + // The generated ID of the backup. Example: myServerName-yyyyMMddHHmmssSSS + BackupId *string `type:"string"` + + // The backup type. Valid values are automated or manual. + BackupType *string `type:"string" enum:"BackupType"` + + // The time stamp when the backup was created in the database. Example: 2016-07-29T13:38:47.520Z + CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"` + + // A user-provided description for a manual backup. This field is empty for + // automated backups. + Description *string `type:"string"` + + // The engine type that is obtained from the server when the backup is created. + Engine *string `type:"string"` + + // The engine model that is obtained from the server when the backup is created. + EngineModel *string `type:"string"` + + // The engine version that is obtained from the server when the backup is created. + EngineVersion *string `type:"string"` + + // The EC2 instance profile ARN that is obtained from the server when the backup + // is created. Because this value is stored, you are not required to provide + // the InstanceProfileArn again if you restore a backup. + InstanceProfileArn *string `type:"string"` + + // The instance type that is obtained from the server when the backup is created. + InstanceType *string `type:"string"` + + // The key pair that is obtained from the server when the backup is created. + KeyPair *string `type:"string"` + + // The preferred backup period that is obtained from the server when the backup + // is created. + PreferredBackupWindow *string `type:"string"` + + // The preferred maintenance period that is obtained from the server when the + // backup is created. + PreferredMaintenanceWindow *string `type:"string"` + + // This field is deprecated and is no longer used. + S3DataSize *int64 `deprecated:"true" type:"integer"` + + // This field is deprecated and is no longer used. + S3DataUrl *string `deprecated:"true" type:"string"` + + // The Amazon S3 URL of the backup's log file. + S3LogUrl *string `type:"string"` + + // The security group IDs that are obtained from the server when the backup + // is created. + SecurityGroupIds []*string `type:"list"` + + // The name of the server from which the backup was made. + ServerName *string `min:"1" type:"string"` + + // The service role ARN that is obtained from the server when the backup is + // created. + ServiceRoleArn *string `type:"string"` + + // The status of a backup while in progress. + Status *string `type:"string" enum:"BackupStatus"` + + // An informational message about backup status. + StatusDescription *string `type:"string"` + + // The subnet IDs that are obtained from the server when the backup is created. + SubnetIds []*string `type:"list"` + + // The version of AWS OpsWorks for Chef Automate-specific tools that is obtained + // from the server when the backup is created. + ToolsVersion *string `type:"string"` + + // The IAM user ARN of the requester for manual backups. This field is empty + // for automated backups. + UserArn *string `type:"string"` +} + +// String returns the string representation +func (s Backup) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Backup) GoString() string { + return s.String() +} + +// SetBackupArn sets the BackupArn field's value. +func (s *Backup) SetBackupArn(v string) *Backup { + s.BackupArn = &v + return s +} + +// SetBackupId sets the BackupId field's value. +func (s *Backup) SetBackupId(v string) *Backup { + s.BackupId = &v + return s +} + +// SetBackupType sets the BackupType field's value. +func (s *Backup) SetBackupType(v string) *Backup { + s.BackupType = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Backup) SetCreatedAt(v time.Time) *Backup { + s.CreatedAt = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Backup) SetDescription(v string) *Backup { + s.Description = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *Backup) SetEngine(v string) *Backup { + s.Engine = &v + return s +} + +// SetEngineModel sets the EngineModel field's value. +func (s *Backup) SetEngineModel(v string) *Backup { + s.EngineModel = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *Backup) SetEngineVersion(v string) *Backup { + s.EngineVersion = &v + return s +} + +// SetInstanceProfileArn sets the InstanceProfileArn field's value. +func (s *Backup) SetInstanceProfileArn(v string) *Backup { + s.InstanceProfileArn = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *Backup) SetInstanceType(v string) *Backup { + s.InstanceType = &v + return s +} + +// SetKeyPair sets the KeyPair field's value. +func (s *Backup) SetKeyPair(v string) *Backup { + s.KeyPair = &v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *Backup) SetPreferredBackupWindow(v string) *Backup { + s.PreferredBackupWindow = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *Backup) SetPreferredMaintenanceWindow(v string) *Backup { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetS3DataSize sets the S3DataSize field's value. +func (s *Backup) SetS3DataSize(v int64) *Backup { + s.S3DataSize = &v + return s +} + +// SetS3DataUrl sets the S3DataUrl field's value. +func (s *Backup) SetS3DataUrl(v string) *Backup { + s.S3DataUrl = &v + return s +} + +// SetS3LogUrl sets the S3LogUrl field's value. +func (s *Backup) SetS3LogUrl(v string) *Backup { + s.S3LogUrl = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *Backup) SetSecurityGroupIds(v []*string) *Backup { + s.SecurityGroupIds = v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *Backup) SetServerName(v string) *Backup { + s.ServerName = &v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *Backup) SetServiceRoleArn(v string) *Backup { + s.ServiceRoleArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Backup) SetStatus(v string) *Backup { + s.Status = &v + return s +} + +// SetStatusDescription sets the StatusDescription field's value. +func (s *Backup) SetStatusDescription(v string) *Backup { + s.StatusDescription = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *Backup) SetSubnetIds(v []*string) *Backup { + s.SubnetIds = v + return s +} + +// SetToolsVersion sets the ToolsVersion field's value. +func (s *Backup) SetToolsVersion(v string) *Backup { + s.ToolsVersion = &v + return s +} + +// SetUserArn sets the UserArn field's value. +func (s *Backup) SetUserArn(v string) *Backup { + s.UserArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/CreateBackupRequest +type CreateBackupInput struct { + _ struct{} `type:"structure"` + + // A user-defined description of the backup. + Description *string `type:"string"` + + // The name of the server that you want to back up. + // + // ServerName is a required field + ServerName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateBackupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateBackupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateBackupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateBackupInput"} + if s.ServerName == nil { + invalidParams.Add(request.NewErrParamRequired("ServerName")) + } + if s.ServerName != nil && len(*s.ServerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *CreateBackupInput) SetDescription(v string) *CreateBackupInput { + s.Description = &v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *CreateBackupInput) SetServerName(v string) *CreateBackupInput { + s.ServerName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/CreateBackupResponse +type CreateBackupOutput struct { + _ struct{} `type:"structure"` + + // Backup created by request. + Backup *Backup `type:"structure"` +} + +// String returns the string representation +func (s CreateBackupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateBackupOutput) GoString() string { + return s.String() +} + +// SetBackup sets the Backup field's value. +func (s *CreateBackupOutput) SetBackup(v *Backup) *CreateBackupOutput { + s.Backup = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/CreateServerRequest +type CreateServerInput struct { + _ struct{} `type:"structure"` + + // Associate a public IP address with a server that you are launching. Valid + // values are true or false. The default value is true. + AssociatePublicIpAddress *bool `type:"boolean"` + + // If you specify this field, AWS OpsWorks for Chef Automate creates the server + // by using the backup represented by BackupId. + BackupId *string `type:"string"` + + // The number of automated backups that you want to keep. Whenever a new backup + // is created, AWS OpsWorks for Chef Automate deletes the oldest backups if + // this number is exceeded. The default value is 1. + BackupRetentionCount *int64 `min:"1" type:"integer"` + + // Enable or disable scheduled backups. Valid values are true or false. The + // default value is true. + DisableAutomatedBackup *bool `type:"boolean"` + + // The configuration management engine to use. Valid values include Chef. + Engine *string `type:"string"` + + // Optional engine attributes on a specified server. + // + // Attributes accepted in a createServer request: + // + // * CHEF_PIVOTAL_KEY: A base64-encoded RSA private key that is not stored + // by AWS OpsWorks for Chef. This private key is required to access the Chef + // API. When no CHEF_PIVOTAL_KEY is set, one is generated and returned in + // the response. + // + // * CHEF_DELIVERY_ADMIN_PASSWORD: The password for the administrative user + // in the Chef Automate GUI. The password length is a minimum of eight characters, + // and a maximum of 32. The password can contain letters, numbers, and special + // characters (!/@#$%^&+=_). The password must contain at least one lower + // case letter, one upper case letter, one number, and one special character. + // When no CHEF_DELIVERY_ADMIN_PASSWORD is set, one is generated and returned + // in the response. + EngineAttributes []*EngineAttribute `type:"list"` + + // The engine model, or option. Valid values include Single. + EngineModel *string `type:"string"` + + // The major release version of the engine that you want to use. Values depend + // on the engine that you choose. + EngineVersion *string `type:"string"` + + // The ARN of the instance profile that your Amazon EC2 instances use. Although + // the AWS OpsWorks console typically creates the instance profile for you, + // if you are using API commands instead, run the service-role-creation.yaml + // AWS CloudFormation template, located at https://s3.amazonaws.com/opsworks-cm-us-east-1-prod-default-assets/misc/opsworks-cm-roles.yaml. + // This template creates a CloudFormation stack that includes the instance profile + // you need. + // + // InstanceProfileArn is a required field + InstanceProfileArn *string `type:"string" required:"true"` + + // The Amazon EC2 instance type to use. Valid values must be specified in the + // following format: ^([cm][34]|t2).* For example, m4.large. Valid values are + // t2.medium, m4.large, or m4.2xlarge. + // + // InstanceType is a required field + InstanceType *string `type:"string" required:"true"` + + // The Amazon EC2 key pair to set for the instance. This parameter is optional; + // if desired, you may specify this parameter to connect to your instances by + // using SSH. + KeyPair *string `type:"string"` + + // The start time for a one-hour period during which AWS OpsWorks for Chef Automate + // backs up application-level data on your server if automated backups are enabled. + // Valid values must be specified in one of the following formats: + // + // * HH:MM for daily backups + // + // * DDD:HH:MM for weekly backups + // + // The specified time is in coordinated universal time (UTC). The default value + // is a random, daily start time. + // + // Example:08:00, which represents a daily start time of 08:00 UTC. + // + // Example:Mon:08:00, which represents a start time of every Monday at 08:00 + // UTC. (8:00 a.m.) + PreferredBackupWindow *string `type:"string"` + + // The start time for a one-hour period each week during which AWS OpsWorks + // for Chef Automate performs maintenance on the instance. Valid values must + // be specified in the following format: DDD:HH:MM. The specified time is in + // coordinated universal time (UTC). The default value is a random one-hour + // period on Tuesday, Wednesday, or Friday. See TimeWindowDefinition for more + // information. + // + // Example:Mon:08:00, which represents a start time of every Monday at 08:00 + // UTC. (8:00 a.m.) + PreferredMaintenanceWindow *string `type:"string"` + + // A list of security group IDs to attach to the Amazon EC2 instance. If you + // add this parameter, the specified security groups must be within the VPC + // that is specified by SubnetIds. + // + // If you do not specify this parameter, AWS OpsWorks for Chef Automate creates + // one new security group that uses TCP ports 22 and 443, open to 0.0.0.0/0 + // (everyone). + SecurityGroupIds []*string `type:"list"` + + // The name of the server. The server name must be unique within your AWS account, + // within each region. Server names must start with a letter; then letters, + // numbers, or hyphens (-) are allowed, up to a maximum of 40 characters. + // + // ServerName is a required field + ServerName *string `min:"1" type:"string" required:"true"` + + // The service role that the AWS OpsWorks for Chef Automate service backend + // uses to work with your account. Although the AWS OpsWorks management console + // typically creates the service role for you, if you are using the AWS CLI + // or API commands, run the service-role-creation.yaml AWS CloudFormation template, + // located at https://s3.amazonaws.com/opsworks-stuff/latest/service-role-creation.yaml. + // This template creates a CloudFormation stack that includes the service role + // that you need. + // + // ServiceRoleArn is a required field + ServiceRoleArn *string `type:"string" required:"true"` + + // The IDs of subnets in which to launch the server EC2 instance. + // + // Amazon EC2-Classic customers: This field is required. All servers must run + // within a VPC. The VPC must have "Auto Assign Public IP" enabled. + // + // EC2-VPC customers: This field is optional. If you do not specify subnet IDs, + // your EC2 instances are created in a default subnet that is selected by Amazon + // EC2. If you specify subnet IDs, the VPC must have "Auto Assign Public IP" + // enabled. + // + // For more information about supported Amazon EC2 platforms, see Supported + // Platforms (http://docs.aws.amazon.com/https:/docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html). + SubnetIds []*string `type:"list"` +} + +// String returns the string representation +func (s CreateServerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateServerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateServerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateServerInput"} + if s.BackupRetentionCount != nil && *s.BackupRetentionCount < 1 { + invalidParams.Add(request.NewErrParamMinValue("BackupRetentionCount", 1)) + } + if s.InstanceProfileArn == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceProfileArn")) + } + if s.InstanceType == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceType")) + } + if s.ServerName == nil { + invalidParams.Add(request.NewErrParamRequired("ServerName")) + } + if s.ServerName != nil && len(*s.ServerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServerName", 1)) + } + if s.ServiceRoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceRoleArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value. +func (s *CreateServerInput) SetAssociatePublicIpAddress(v bool) *CreateServerInput { + s.AssociatePublicIpAddress = &v + return s +} + +// SetBackupId sets the BackupId field's value. +func (s *CreateServerInput) SetBackupId(v string) *CreateServerInput { + s.BackupId = &v + return s +} + +// SetBackupRetentionCount sets the BackupRetentionCount field's value. +func (s *CreateServerInput) SetBackupRetentionCount(v int64) *CreateServerInput { + s.BackupRetentionCount = &v + return s +} + +// SetDisableAutomatedBackup sets the DisableAutomatedBackup field's value. +func (s *CreateServerInput) SetDisableAutomatedBackup(v bool) *CreateServerInput { + s.DisableAutomatedBackup = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *CreateServerInput) SetEngine(v string) *CreateServerInput { + s.Engine = &v + return s +} + +// SetEngineAttributes sets the EngineAttributes field's value. +func (s *CreateServerInput) SetEngineAttributes(v []*EngineAttribute) *CreateServerInput { + s.EngineAttributes = v + return s +} + +// SetEngineModel sets the EngineModel field's value. +func (s *CreateServerInput) SetEngineModel(v string) *CreateServerInput { + s.EngineModel = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *CreateServerInput) SetEngineVersion(v string) *CreateServerInput { + s.EngineVersion = &v + return s +} + +// SetInstanceProfileArn sets the InstanceProfileArn field's value. +func (s *CreateServerInput) SetInstanceProfileArn(v string) *CreateServerInput { + s.InstanceProfileArn = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *CreateServerInput) SetInstanceType(v string) *CreateServerInput { + s.InstanceType = &v + return s +} + +// SetKeyPair sets the KeyPair field's value. +func (s *CreateServerInput) SetKeyPair(v string) *CreateServerInput { + s.KeyPair = &v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *CreateServerInput) SetPreferredBackupWindow(v string) *CreateServerInput { + s.PreferredBackupWindow = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *CreateServerInput) SetPreferredMaintenanceWindow(v string) *CreateServerInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *CreateServerInput) SetSecurityGroupIds(v []*string) *CreateServerInput { + s.SecurityGroupIds = v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *CreateServerInput) SetServerName(v string) *CreateServerInput { + s.ServerName = &v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *CreateServerInput) SetServiceRoleArn(v string) *CreateServerInput { + s.ServiceRoleArn = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *CreateServerInput) SetSubnetIds(v []*string) *CreateServerInput { + s.SubnetIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/CreateServerResponse +type CreateServerOutput struct { + _ struct{} `type:"structure"` + + // The server that is created by the request. + Server *Server `type:"structure"` +} + +// String returns the string representation +func (s CreateServerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateServerOutput) GoString() string { + return s.String() +} + +// SetServer sets the Server field's value. +func (s *CreateServerOutput) SetServer(v *Server) *CreateServerOutput { + s.Server = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DeleteBackupRequest +type DeleteBackupInput struct { + _ struct{} `type:"structure"` + + // The ID of the backup to delete. Run the DescribeBackups command to get a + // list of backup IDs. Backup IDs are in the format ServerName-yyyyMMddHHmmssSSS. + // + // BackupId is a required field + BackupId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteBackupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBackupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteBackupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteBackupInput"} + if s.BackupId == nil { + invalidParams.Add(request.NewErrParamRequired("BackupId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBackupId sets the BackupId field's value. +func (s *DeleteBackupInput) SetBackupId(v string) *DeleteBackupInput { + s.BackupId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DeleteBackupResponse +type DeleteBackupOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteBackupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBackupOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DeleteServerRequest +type DeleteServerInput struct { + _ struct{} `type:"structure"` + + // The ID of the server to delete. + // + // ServerName is a required field + ServerName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteServerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteServerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteServerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteServerInput"} + if s.ServerName == nil { + invalidParams.Add(request.NewErrParamRequired("ServerName")) + } + if s.ServerName != nil && len(*s.ServerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServerName sets the ServerName field's value. +func (s *DeleteServerInput) SetServerName(v string) *DeleteServerInput { + s.ServerName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DeleteServerResponse +type DeleteServerOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteServerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteServerOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeAccountAttributesRequest +type DescribeAccountAttributesInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DescribeAccountAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAccountAttributesInput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeAccountAttributesResponse +type DescribeAccountAttributesOutput struct { + _ struct{} `type:"structure"` + + // The attributes that are currently set for the account. + Attributes []*AccountAttribute `type:"list"` +} + +// String returns the string representation +func (s DescribeAccountAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAccountAttributesOutput) GoString() string { + return s.String() +} + +// SetAttributes sets the Attributes field's value. +func (s *DescribeAccountAttributesOutput) SetAttributes(v []*AccountAttribute) *DescribeAccountAttributesOutput { + s.Attributes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeBackupsRequest +type DescribeBackupsInput struct { + _ struct{} `type:"structure"` + + // Describes a single backup. + BackupId *string `type:"string"` + + // To receive a paginated response, use this parameter to specify the maximum + // number of results to be returned with a single call. If the number of available + // results exceeds this maximum, the response includes a NextToken value that + // you can assign to the NextToken request parameter to get the next set of + // results. + MaxResults *int64 `min:"1" type:"integer"` + + // NextToken is a string that is returned in some command responses. It indicates + // that not all entries have been returned, and that you must run at least one + // more request to get remaining items. To get remaining results, call DescribeBackups + // again, and assign the token from the previous results as the value of the + // nextToken parameter. If there are no more results, the response object's + // nextToken parameter value is null. Setting a nextToken value that was not + // returned in your previous results causes an InvalidNextTokenException to + // occur. + NextToken *string `type:"string"` + + // Returns backups for the server with the specified ServerName. + ServerName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeBackupsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeBackupsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeBackupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeBackupsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ServerName != nil && len(*s.ServerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBackupId sets the BackupId field's value. +func (s *DescribeBackupsInput) SetBackupId(v string) *DescribeBackupsInput { + s.BackupId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeBackupsInput) SetMaxResults(v int64) *DescribeBackupsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeBackupsInput) SetNextToken(v string) *DescribeBackupsInput { + s.NextToken = &v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *DescribeBackupsInput) SetServerName(v string) *DescribeBackupsInput { + s.ServerName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeBackupsResponse +type DescribeBackupsOutput struct { + _ struct{} `type:"structure"` + + // Contains the response to a DescribeBackups request. + Backups []*Backup `type:"list"` + + // NextToken is a string that is returned in some command responses. It indicates + // that not all entries have been returned, and that you must run at least one + // more request to get remaining items. To get remaining results, call DescribeBackups + // again, and assign the token from the previous results as the value of the + // nextToken parameter. If there are no more results, the response object's + // nextToken parameter value is null. Setting a nextToken value that was not + // returned in your previous results causes an InvalidNextTokenException to + // occur. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeBackupsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeBackupsOutput) GoString() string { + return s.String() +} + +// SetBackups sets the Backups field's value. +func (s *DescribeBackupsOutput) SetBackups(v []*Backup) *DescribeBackupsOutput { + s.Backups = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeBackupsOutput) SetNextToken(v string) *DescribeBackupsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeEventsRequest +type DescribeEventsInput struct { + _ struct{} `type:"structure"` + + // To receive a paginated response, use this parameter to specify the maximum + // number of results to be returned with a single call. If the number of available + // results exceeds this maximum, the response includes a NextToken value that + // you can assign to the NextToken request parameter to get the next set of + // results. + MaxResults *int64 `min:"1" type:"integer"` + + // NextToken is a string that is returned in some command responses. It indicates + // that not all entries have been returned, and that you must run at least one + // more request to get remaining items. To get remaining results, call DescribeEvents + // again, and assign the token from the previous results as the value of the + // nextToken parameter. If there are no more results, the response object's + // nextToken parameter value is null. Setting a nextToken value that was not + // returned in your previous results causes an InvalidNextTokenException to + // occur. + NextToken *string `type:"string"` + + // The name of the server for which you want to view events. + // + // ServerName is a required field + ServerName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeEventsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEventsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeEventsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeEventsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ServerName == nil { + invalidParams.Add(request.NewErrParamRequired("ServerName")) + } + if s.ServerName != nil && len(*s.ServerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeEventsInput) SetMaxResults(v int64) *DescribeEventsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEventsInput) SetNextToken(v string) *DescribeEventsInput { + s.NextToken = &v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *DescribeEventsInput) SetServerName(v string) *DescribeEventsInput { + s.ServerName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeEventsResponse +type DescribeEventsOutput struct { + _ struct{} `type:"structure"` + + // NextToken is a string that is returned in some command responses. It indicates + // that not all entries have been returned, and that you must run at least one + // more request to get remaining items. To get remaining results, call DescribeEvents + // again, and assign the token from the previous results as the value of the + // nextToken parameter. If there are no more results, the response object's + // nextToken parameter value is null. Setting a nextToken value that was not + // returned in your previous results causes an InvalidNextTokenException to + // occur. + NextToken *string `type:"string"` + + // Contains the response to a DescribeEvents request. + ServerEvents []*ServerEvent `type:"list"` +} + +// String returns the string representation +func (s DescribeEventsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEventsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEventsOutput) SetNextToken(v string) *DescribeEventsOutput { + s.NextToken = &v + return s +} + +// SetServerEvents sets the ServerEvents field's value. +func (s *DescribeEventsOutput) SetServerEvents(v []*ServerEvent) *DescribeEventsOutput { + s.ServerEvents = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeNodeAssociationStatusRequest +type DescribeNodeAssociationStatusInput struct { + _ struct{} `type:"structure"` + + // NodeAssociationStatusToken is a required field + NodeAssociationStatusToken *string `type:"string" required:"true"` + + // The name of the server from which to disassociate the node. + // + // ServerName is a required field + ServerName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeNodeAssociationStatusInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeNodeAssociationStatusInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeNodeAssociationStatusInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeNodeAssociationStatusInput"} + if s.NodeAssociationStatusToken == nil { + invalidParams.Add(request.NewErrParamRequired("NodeAssociationStatusToken")) + } + if s.ServerName == nil { + invalidParams.Add(request.NewErrParamRequired("ServerName")) + } + if s.ServerName != nil && len(*s.ServerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNodeAssociationStatusToken sets the NodeAssociationStatusToken field's value. +func (s *DescribeNodeAssociationStatusInput) SetNodeAssociationStatusToken(v string) *DescribeNodeAssociationStatusInput { + s.NodeAssociationStatusToken = &v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *DescribeNodeAssociationStatusInput) SetServerName(v string) *DescribeNodeAssociationStatusInput { + s.ServerName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeNodeAssociationStatusResponse +type DescribeNodeAssociationStatusOutput struct { + _ struct{} `type:"structure"` + + // The status of the association or disassociation request. + // + // Possible values: + // + // * SUCCESS: The association or disassociation succeeded. + // + // * FAILED: The association or disassociation failed. + // + // * IN_PROGRESS: The association or disassociation is still in progress. + // + NodeAssociationStatus *string `type:"string" enum:"NodeAssociationStatus"` +} + +// String returns the string representation +func (s DescribeNodeAssociationStatusOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeNodeAssociationStatusOutput) GoString() string { + return s.String() +} + +// SetNodeAssociationStatus sets the NodeAssociationStatus field's value. +func (s *DescribeNodeAssociationStatusOutput) SetNodeAssociationStatus(v string) *DescribeNodeAssociationStatusOutput { + s.NodeAssociationStatus = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeServersRequest +type DescribeServersInput struct { + _ struct{} `type:"structure"` + + // To receive a paginated response, use this parameter to specify the maximum + // number of results to be returned with a single call. If the number of available + // results exceeds this maximum, the response includes a NextToken value that + // you can assign to the NextToken request parameter to get the next set of + // results. + MaxResults *int64 `min:"1" type:"integer"` + + // NextToken is a string that is returned in some command responses. It indicates + // that not all entries have been returned, and that you must run at least one + // more request to get remaining items. To get remaining results, call DescribeServers + // again, and assign the token from the previous results as the value of the + // nextToken parameter. If there are no more results, the response object's + // nextToken parameter value is null. Setting a nextToken value that was not + // returned in your previous results causes an InvalidNextTokenException to + // occur. + NextToken *string `type:"string"` + + // Describes the server with the specified ServerName. + ServerName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeServersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeServersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeServersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeServersInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ServerName != nil && len(*s.ServerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeServersInput) SetMaxResults(v int64) *DescribeServersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeServersInput) SetNextToken(v string) *DescribeServersInput { + s.NextToken = &v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *DescribeServersInput) SetServerName(v string) *DescribeServersInput { + s.ServerName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeServersResponse +type DescribeServersOutput struct { + _ struct{} `type:"structure"` + + // NextToken is a string that is returned in some command responses. It indicates + // that not all entries have been returned, and that you must run at least one + // more request to get remaining items. To get remaining results, call DescribeServers + // again, and assign the token from the previous results as the value of the + // nextToken parameter. If there are no more results, the response object's + // nextToken parameter value is null. Setting a nextToken value that was not + // returned in your previous results causes an InvalidNextTokenException to + // occur. + NextToken *string `type:"string"` + + // Contains the response to a DescribeServers request. + Servers []*Server `type:"list"` +} + +// String returns the string representation +func (s DescribeServersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeServersOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeServersOutput) SetNextToken(v string) *DescribeServersOutput { + s.NextToken = &v + return s +} + +// SetServers sets the Servers field's value. +func (s *DescribeServersOutput) SetServers(v []*Server) *DescribeServersOutput { + s.Servers = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DisassociateNodeRequest +type DisassociateNodeInput struct { + _ struct{} `type:"structure"` + + // Engine attributes used for disassociating the node. + // + // Attributes accepted in a DisassociateNode request: + // + // * CHEF_ORGANIZATION: The Chef organization with which the node was associated. + // By default only one organization named default can exist. + EngineAttributes []*EngineAttribute `type:"list"` + + // The name of the Chef client node. + // + // NodeName is a required field + NodeName *string `type:"string" required:"true"` + + // The name of the server from which to disassociate the node. + // + // ServerName is a required field + ServerName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateNodeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateNodeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateNodeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateNodeInput"} + if s.NodeName == nil { + invalidParams.Add(request.NewErrParamRequired("NodeName")) + } + if s.ServerName == nil { + invalidParams.Add(request.NewErrParamRequired("ServerName")) + } + if s.ServerName != nil && len(*s.ServerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEngineAttributes sets the EngineAttributes field's value. +func (s *DisassociateNodeInput) SetEngineAttributes(v []*EngineAttribute) *DisassociateNodeInput { + s.EngineAttributes = v + return s +} + +// SetNodeName sets the NodeName field's value. +func (s *DisassociateNodeInput) SetNodeName(v string) *DisassociateNodeInput { + s.NodeName = &v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *DisassociateNodeInput) SetServerName(v string) *DisassociateNodeInput { + s.ServerName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DisassociateNodeResponse +type DisassociateNodeOutput struct { + _ struct{} `type:"structure"` + + // Contains a token which can be passed to the DescribeNodeAssociationStatus + // API call to get the status of the disassociation request. + NodeAssociationStatusToken *string `type:"string"` +} + +// String returns the string representation +func (s DisassociateNodeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateNodeOutput) GoString() string { + return s.String() +} + +// SetNodeAssociationStatusToken sets the NodeAssociationStatusToken field's value. +func (s *DisassociateNodeOutput) SetNodeAssociationStatusToken(v string) *DisassociateNodeOutput { + s.NodeAssociationStatusToken = &v + return s +} + +// A name and value pair that is specific to the engine of the server. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/EngineAttribute +type EngineAttribute struct { + _ struct{} `type:"structure"` + + // The name of the engine attribute. + Name *string `type:"string"` + + // The value of the engine attribute. + Value *string `type:"string"` +} + +// String returns the string representation +func (s EngineAttribute) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EngineAttribute) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *EngineAttribute) SetName(v string) *EngineAttribute { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *EngineAttribute) SetValue(v string) *EngineAttribute { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/RestoreServerRequest +type RestoreServerInput struct { + _ struct{} `type:"structure"` + + // The ID of the backup that you want to use to restore a server. + // + // BackupId is a required field + BackupId *string `type:"string" required:"true"` + + // The type of the instance to create. Valid values must be specified in the + // following format: ^([cm][34]|t2).* For example, m4.large. Valid values are + // t2.medium, m4.large, and m4.2xlarge. If you do not specify this parameter, + // RestoreServer uses the instance type from the specified backup. + InstanceType *string `type:"string"` + + // The name of the key pair to set on the new EC2 instance. This can be helpful + // if the administrator no longer has the SSH key. + KeyPair *string `type:"string"` + + // The name of the server that you want to restore. + // + // ServerName is a required field + ServerName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s RestoreServerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RestoreServerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RestoreServerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RestoreServerInput"} + if s.BackupId == nil { + invalidParams.Add(request.NewErrParamRequired("BackupId")) + } + if s.ServerName == nil { + invalidParams.Add(request.NewErrParamRequired("ServerName")) + } + if s.ServerName != nil && len(*s.ServerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBackupId sets the BackupId field's value. +func (s *RestoreServerInput) SetBackupId(v string) *RestoreServerInput { + s.BackupId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *RestoreServerInput) SetInstanceType(v string) *RestoreServerInput { + s.InstanceType = &v + return s +} + +// SetKeyPair sets the KeyPair field's value. +func (s *RestoreServerInput) SetKeyPair(v string) *RestoreServerInput { + s.KeyPair = &v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *RestoreServerInput) SetServerName(v string) *RestoreServerInput { + s.ServerName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/RestoreServerResponse +type RestoreServerOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s RestoreServerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RestoreServerOutput) GoString() string { + return s.String() +} + +// Describes a configuration management server. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/Server +type Server struct { + _ struct{} `type:"structure"` + + // Associate a public IP address with a server that you are launching. + AssociatePublicIpAddress *bool `type:"boolean"` + + // The number of automated backups to keep. + BackupRetentionCount *int64 `type:"integer"` + + // The ARN of the CloudFormation stack that was used to create the server. + CloudFormationStackArn *string `type:"string"` + + // Time stamp of server creation. Example 2016-07-29T13:38:47.520Z + CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"` + + // Disables automated backups. The number of stored backups is dependent on + // the value of PreferredBackupCount. + DisableAutomatedBackup *bool `type:"boolean"` + + // A DNS name that can be used to access the engine. Example: myserver-asdfghjkl.us-east-1.opsworks.io + Endpoint *string `type:"string"` + + // The engine type of the server. The valid value in this release is Chef. + Engine *string `type:"string"` + + // The response of a createServer() request returns the master credential to + // access the server in EngineAttributes. These credentials are not stored by + // AWS OpsWorks for Chef Automate; they are returned only as part of the result + // of createServer(). + // + // Attributes returned in a createServer response: + // + // * CHEF_PIVOTAL_KEY: A base64-encoded RSA private key that is generated + // by AWS OpsWorks for Chef Automate. This private key is required to access + // the Chef API. + // + // * CHEF_STARTER_KIT: A base64-encoded ZIP file. The ZIP file contains a + // Chef starter kit, which includes a README, a configuration file, and the + // required RSA private key. Save this file, unzip it, and then change to + // the directory where you've unzipped the file contents. From this directory, + // you can run Knife commands. + EngineAttributes []*EngineAttribute `type:"list"` + + // The engine model of the server. The valid value in this release is Single. + EngineModel *string `type:"string"` + + // The engine version of the server. Because Chef is the engine available in + // this release, the valid value for EngineVersion is 12. + EngineVersion *string `type:"string"` + + // The instance profile ARN of the server. + InstanceProfileArn *string `type:"string"` + + // The instance type for the server, as specified in the CloudFormation stack. + // This might not be the same instance type that is shown in the EC2 console. + InstanceType *string `type:"string"` + + // The key pair associated with the server. + KeyPair *string `type:"string"` + + // The status of the most recent server maintenance run. Shows SUCCESS or FAILED. + MaintenanceStatus *string `type:"string" enum:"MaintenanceStatus"` + + // The preferred backup period specified for the server. + PreferredBackupWindow *string `type:"string"` + + // The preferred maintenance period specified for the server. + PreferredMaintenanceWindow *string `type:"string"` + + // The security group IDs for the server, as specified in the CloudFormation + // stack. These might not be the same security groups that are shown in the + // EC2 console. + SecurityGroupIds []*string `type:"list"` + + // The ARN of the server. + ServerArn *string `type:"string"` + + // The name of the server. + ServerName *string `type:"string"` + + // The service role ARN used to create the server. + ServiceRoleArn *string `type:"string"` + + // The server's status. This field displays the states of actions in progress, + // such as creating, running, or backing up the server, as well as the server's + // health state. + Status *string `type:"string" enum:"ServerStatus"` + + // Depending on the server status, this field has either a human-readable message + // (such as a create or backup error), or an escaped block of JSON (used for + // health check results). + StatusReason *string `type:"string"` + + // The subnet IDs specified in a CreateServer request. + SubnetIds []*string `type:"list"` +} + +// String returns the string representation +func (s Server) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Server) GoString() string { + return s.String() +} + +// SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value. +func (s *Server) SetAssociatePublicIpAddress(v bool) *Server { + s.AssociatePublicIpAddress = &v + return s +} + +// SetBackupRetentionCount sets the BackupRetentionCount field's value. +func (s *Server) SetBackupRetentionCount(v int64) *Server { + s.BackupRetentionCount = &v + return s +} + +// SetCloudFormationStackArn sets the CloudFormationStackArn field's value. +func (s *Server) SetCloudFormationStackArn(v string) *Server { + s.CloudFormationStackArn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Server) SetCreatedAt(v time.Time) *Server { + s.CreatedAt = &v + return s +} + +// SetDisableAutomatedBackup sets the DisableAutomatedBackup field's value. +func (s *Server) SetDisableAutomatedBackup(v bool) *Server { + s.DisableAutomatedBackup = &v + return s +} + +// SetEndpoint sets the Endpoint field's value. +func (s *Server) SetEndpoint(v string) *Server { + s.Endpoint = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *Server) SetEngine(v string) *Server { + s.Engine = &v + return s +} + +// SetEngineAttributes sets the EngineAttributes field's value. +func (s *Server) SetEngineAttributes(v []*EngineAttribute) *Server { + s.EngineAttributes = v + return s +} + +// SetEngineModel sets the EngineModel field's value. +func (s *Server) SetEngineModel(v string) *Server { + s.EngineModel = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *Server) SetEngineVersion(v string) *Server { + s.EngineVersion = &v + return s +} + +// SetInstanceProfileArn sets the InstanceProfileArn field's value. +func (s *Server) SetInstanceProfileArn(v string) *Server { + s.InstanceProfileArn = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *Server) SetInstanceType(v string) *Server { + s.InstanceType = &v + return s +} + +// SetKeyPair sets the KeyPair field's value. +func (s *Server) SetKeyPair(v string) *Server { + s.KeyPair = &v + return s +} + +// SetMaintenanceStatus sets the MaintenanceStatus field's value. +func (s *Server) SetMaintenanceStatus(v string) *Server { + s.MaintenanceStatus = &v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *Server) SetPreferredBackupWindow(v string) *Server { + s.PreferredBackupWindow = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *Server) SetPreferredMaintenanceWindow(v string) *Server { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *Server) SetSecurityGroupIds(v []*string) *Server { + s.SecurityGroupIds = v + return s +} + +// SetServerArn sets the ServerArn field's value. +func (s *Server) SetServerArn(v string) *Server { + s.ServerArn = &v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *Server) SetServerName(v string) *Server { + s.ServerName = &v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *Server) SetServiceRoleArn(v string) *Server { + s.ServiceRoleArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Server) SetStatus(v string) *Server { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *Server) SetStatusReason(v string) *Server { + s.StatusReason = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *Server) SetSubnetIds(v []*string) *Server { + s.SubnetIds = v + return s +} + +// An event that is related to the server, such as the start of maintenance +// or backup. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/ServerEvent +type ServerEvent struct { + _ struct{} `type:"structure"` + + // The time when the event occurred. + CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The Amazon S3 URL of the event's log file. + LogUrl *string `type:"string"` + + // A human-readable informational or status message. + Message *string `type:"string"` + + // The name of the server on or for which the event occurred. + ServerName *string `type:"string"` +} + +// String returns the string representation +func (s ServerEvent) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServerEvent) GoString() string { + return s.String() +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *ServerEvent) SetCreatedAt(v time.Time) *ServerEvent { + s.CreatedAt = &v + return s +} + +// SetLogUrl sets the LogUrl field's value. +func (s *ServerEvent) SetLogUrl(v string) *ServerEvent { + s.LogUrl = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *ServerEvent) SetMessage(v string) *ServerEvent { + s.Message = &v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *ServerEvent) SetServerName(v string) *ServerEvent { + s.ServerName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/StartMaintenanceRequest +type StartMaintenanceInput struct { + _ struct{} `type:"structure"` + + // The name of the server on which to run maintenance. + // + // ServerName is a required field + ServerName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s StartMaintenanceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartMaintenanceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartMaintenanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartMaintenanceInput"} + if s.ServerName == nil { + invalidParams.Add(request.NewErrParamRequired("ServerName")) + } + if s.ServerName != nil && len(*s.ServerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServerName sets the ServerName field's value. +func (s *StartMaintenanceInput) SetServerName(v string) *StartMaintenanceInput { + s.ServerName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/StartMaintenanceResponse +type StartMaintenanceOutput struct { + _ struct{} `type:"structure"` + + // Contains the response to a StartMaintenance request. + Server *Server `type:"structure"` +} + +// String returns the string representation +func (s StartMaintenanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartMaintenanceOutput) GoString() string { + return s.String() +} + +// SetServer sets the Server field's value. +func (s *StartMaintenanceOutput) SetServer(v *Server) *StartMaintenanceOutput { + s.Server = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/UpdateServerEngineAttributesRequest +type UpdateServerEngineAttributesInput struct { + _ struct{} `type:"structure"` + + // The name of the engine attribute to update. + // + // AttributeName is a required field + AttributeName *string `min:"1" type:"string" required:"true"` + + // The value to set for the attribute. + AttributeValue *string `type:"string"` + + // The name of the server to update. + // + // ServerName is a required field + ServerName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateServerEngineAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateServerEngineAttributesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateServerEngineAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateServerEngineAttributesInput"} + if s.AttributeName == nil { + invalidParams.Add(request.NewErrParamRequired("AttributeName")) + } + if s.AttributeName != nil && len(*s.AttributeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttributeName", 1)) + } + if s.ServerName == nil { + invalidParams.Add(request.NewErrParamRequired("ServerName")) + } + if s.ServerName != nil && len(*s.ServerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttributeName sets the AttributeName field's value. +func (s *UpdateServerEngineAttributesInput) SetAttributeName(v string) *UpdateServerEngineAttributesInput { + s.AttributeName = &v + return s +} + +// SetAttributeValue sets the AttributeValue field's value. +func (s *UpdateServerEngineAttributesInput) SetAttributeValue(v string) *UpdateServerEngineAttributesInput { + s.AttributeValue = &v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *UpdateServerEngineAttributesInput) SetServerName(v string) *UpdateServerEngineAttributesInput { + s.ServerName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/UpdateServerEngineAttributesResponse +type UpdateServerEngineAttributesOutput struct { + _ struct{} `type:"structure"` + + // Contains the response to an UpdateServerEngineAttributes request. + Server *Server `type:"structure"` +} + +// String returns the string representation +func (s UpdateServerEngineAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateServerEngineAttributesOutput) GoString() string { + return s.String() +} + +// SetServer sets the Server field's value. +func (s *UpdateServerEngineAttributesOutput) SetServer(v *Server) *UpdateServerEngineAttributesOutput { + s.Server = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/UpdateServerRequest +type UpdateServerInput struct { + _ struct{} `type:"structure"` + + // Sets the number of automated backups that you want to keep. + BackupRetentionCount *int64 `type:"integer"` + + // Setting DisableAutomatedBackup to true disables automated or scheduled backups. + // Automated backups are enabled by default. + DisableAutomatedBackup *bool `type:"boolean"` + + // DDD:HH:MM (weekly start time) or HH:MM (daily start time). + // + // Time windows always use coordinated universal time (UTC). Valid strings for + // day of week (DDD) are: Mon, Tue, Wed, Thr, Fri, Sat, or Sun. + PreferredBackupWindow *string `type:"string"` + + // DDD:HH:MM (weekly start time) or HH:MM (daily start time). + // + // Time windows always use coordinated universal time (UTC). Valid strings for + // day of week (DDD) are: Mon, Tue, Wed, Thr, Fri, Sat, or Sun. + PreferredMaintenanceWindow *string `type:"string"` + + // The name of the server to update. + // + // ServerName is a required field + ServerName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateServerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateServerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateServerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateServerInput"} + if s.ServerName == nil { + invalidParams.Add(request.NewErrParamRequired("ServerName")) + } + if s.ServerName != nil && len(*s.ServerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBackupRetentionCount sets the BackupRetentionCount field's value. +func (s *UpdateServerInput) SetBackupRetentionCount(v int64) *UpdateServerInput { + s.BackupRetentionCount = &v + return s +} + +// SetDisableAutomatedBackup sets the DisableAutomatedBackup field's value. +func (s *UpdateServerInput) SetDisableAutomatedBackup(v bool) *UpdateServerInput { + s.DisableAutomatedBackup = &v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *UpdateServerInput) SetPreferredBackupWindow(v string) *UpdateServerInput { + s.PreferredBackupWindow = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *UpdateServerInput) SetPreferredMaintenanceWindow(v string) *UpdateServerInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *UpdateServerInput) SetServerName(v string) *UpdateServerInput { + s.ServerName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/UpdateServerResponse +type UpdateServerOutput struct { + _ struct{} `type:"structure"` + + // Contains the response to a UpdateServer request. + Server *Server `type:"structure"` +} + +// String returns the string representation +func (s UpdateServerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateServerOutput) GoString() string { + return s.String() +} + +// SetServer sets the Server field's value. +func (s *UpdateServerOutput) SetServer(v *Server) *UpdateServerOutput { + s.Server = v + return s +} + +const ( + // BackupStatusInProgress is a BackupStatus enum value + BackupStatusInProgress = "IN_PROGRESS" + + // BackupStatusOk is a BackupStatus enum value + BackupStatusOk = "OK" + + // BackupStatusFailed is a BackupStatus enum value + BackupStatusFailed = "FAILED" + + // BackupStatusDeleting is a BackupStatus enum value + BackupStatusDeleting = "DELETING" +) + +const ( + // BackupTypeAutomated is a BackupType enum value + BackupTypeAutomated = "AUTOMATED" + + // BackupTypeManual is a BackupType enum value + BackupTypeManual = "MANUAL" +) + +const ( + // MaintenanceStatusSuccess is a MaintenanceStatus enum value + MaintenanceStatusSuccess = "SUCCESS" + + // MaintenanceStatusFailed is a MaintenanceStatus enum value + MaintenanceStatusFailed = "FAILED" +) + +// The status of the association or disassociation request. +// +// Possible values: +// +// * SUCCESS: The association or disassociation succeeded. +// +// * FAILED: The association or disassociation failed. +// +// * IN_PROGRESS: The association or disassociation is still in progress. +// +const ( + // NodeAssociationStatusSuccess is a NodeAssociationStatus enum value + NodeAssociationStatusSuccess = "SUCCESS" + + // NodeAssociationStatusFailed is a NodeAssociationStatus enum value + NodeAssociationStatusFailed = "FAILED" + + // NodeAssociationStatusInProgress is a NodeAssociationStatus enum value + NodeAssociationStatusInProgress = "IN_PROGRESS" +) + +const ( + // ServerStatusBackingUp is a ServerStatus enum value + ServerStatusBackingUp = "BACKING_UP" + + // ServerStatusConnectionLost is a ServerStatus enum value + ServerStatusConnectionLost = "CONNECTION_LOST" + + // ServerStatusCreating is a ServerStatus enum value + ServerStatusCreating = "CREATING" + + // ServerStatusDeleting is a ServerStatus enum value + ServerStatusDeleting = "DELETING" + + // ServerStatusModifying is a ServerStatus enum value + ServerStatusModifying = "MODIFYING" + + // ServerStatusFailed is a ServerStatus enum value + ServerStatusFailed = "FAILED" + + // ServerStatusHealthy is a ServerStatus enum value + ServerStatusHealthy = "HEALTHY" + + // ServerStatusRunning is a ServerStatus enum value + ServerStatusRunning = "RUNNING" + + // ServerStatusRestoring is a ServerStatus enum value + ServerStatusRestoring = "RESTORING" + + // ServerStatusSetup is a ServerStatus enum value + ServerStatusSetup = "SETUP" + + // ServerStatusUnderMaintenance is a ServerStatus enum value + ServerStatusUnderMaintenance = "UNDER_MAINTENANCE" + + // ServerStatusUnhealthy is a ServerStatus enum value + ServerStatusUnhealthy = "UNHEALTHY" + + // ServerStatusTerminated is a ServerStatus enum value + ServerStatusTerminated = "TERMINATED" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/errors.go b/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/errors.go new file mode 100644 index 000000000..57a899c5b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/errors.go @@ -0,0 +1,43 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package opsworkscm + +const ( + + // ErrCodeInvalidNextTokenException for service response error code + // "InvalidNextTokenException". + // + // This occurs when the provided nextToken is not valid. + ErrCodeInvalidNextTokenException = "InvalidNextTokenException" + + // ErrCodeInvalidStateException for service response error code + // "InvalidStateException". + // + // The resource is in a state that does not allow you to perform a specified + // action. + ErrCodeInvalidStateException = "InvalidStateException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // The limit of servers or backups has been reached. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeResourceAlreadyExistsException for service response error code + // "ResourceAlreadyExistsException". + // + // The requested resource cannot be created because it already exists. + ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The requested resource does not exist, or access was denied. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeValidationException for service response error code + // "ValidationException". + // + // One or more of the provided request parameters are not valid. + ErrCodeValidationException = "ValidationException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/examples_test.go new file mode 100644 index 000000000..2b9e186ef --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/examples_test.go @@ -0,0 +1,391 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package opsworkscm_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/opsworkscm" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExampleOpsWorksCM_AssociateNode() { + sess := session.Must(session.NewSession()) + + svc := opsworkscm.New(sess) + + params := &opsworkscm.AssociateNodeInput{ + EngineAttributes: []*opsworkscm.EngineAttribute{ // Required + { // Required + Name: aws.String("EngineAttributeName"), + Value: aws.String("EngineAttributeValue"), + }, + // More values... + }, + NodeName: aws.String("NodeName"), // Required + ServerName: aws.String("ServerName"), // Required + } + resp, err := svc.AssociateNode(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOpsWorksCM_CreateBackup() { + sess := session.Must(session.NewSession()) + + svc := opsworkscm.New(sess) + + params := &opsworkscm.CreateBackupInput{ + ServerName: aws.String("ServerName"), // Required + Description: aws.String("String"), + } + resp, err := svc.CreateBackup(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOpsWorksCM_CreateServer() { + sess := session.Must(session.NewSession()) + + svc := opsworkscm.New(sess) + + params := &opsworkscm.CreateServerInput{ + InstanceProfileArn: aws.String("InstanceProfileArn"), // Required + InstanceType: aws.String("String"), // Required + ServerName: aws.String("ServerName"), // Required + ServiceRoleArn: aws.String("ServiceRoleArn"), // Required + AssociatePublicIpAddress: aws.Bool(true), + BackupId: aws.String("BackupId"), + BackupRetentionCount: aws.Int64(1), + DisableAutomatedBackup: aws.Bool(true), + Engine: aws.String("String"), + EngineAttributes: []*opsworkscm.EngineAttribute{ + { // Required + Name: aws.String("EngineAttributeName"), + Value: aws.String("EngineAttributeValue"), + }, + // More values... + }, + EngineModel: aws.String("String"), + EngineVersion: aws.String("String"), + KeyPair: aws.String("KeyPair"), + PreferredBackupWindow: aws.String("TimeWindowDefinition"), + PreferredMaintenanceWindow: aws.String("TimeWindowDefinition"), + SecurityGroupIds: []*string{ + aws.String("String"), // Required + // More values... + }, + SubnetIds: []*string{ + aws.String("String"), // Required + // More values... + }, + } + resp, err := svc.CreateServer(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOpsWorksCM_DeleteBackup() { + sess := session.Must(session.NewSession()) + + svc := opsworkscm.New(sess) + + params := &opsworkscm.DeleteBackupInput{ + BackupId: aws.String("BackupId"), // Required + } + resp, err := svc.DeleteBackup(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOpsWorksCM_DeleteServer() { + sess := session.Must(session.NewSession()) + + svc := opsworkscm.New(sess) + + params := &opsworkscm.DeleteServerInput{ + ServerName: aws.String("ServerName"), // Required + } + resp, err := svc.DeleteServer(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOpsWorksCM_DescribeAccountAttributes() { + sess := session.Must(session.NewSession()) + + svc := opsworkscm.New(sess) + + var params *opsworkscm.DescribeAccountAttributesInput + resp, err := svc.DescribeAccountAttributes(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOpsWorksCM_DescribeBackups() { + sess := session.Must(session.NewSession()) + + svc := opsworkscm.New(sess) + + params := &opsworkscm.DescribeBackupsInput{ + BackupId: aws.String("BackupId"), + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + ServerName: aws.String("ServerName"), + } + resp, err := svc.DescribeBackups(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOpsWorksCM_DescribeEvents() { + sess := session.Must(session.NewSession()) + + svc := opsworkscm.New(sess) + + params := &opsworkscm.DescribeEventsInput{ + ServerName: aws.String("ServerName"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.DescribeEvents(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOpsWorksCM_DescribeNodeAssociationStatus() { + sess := session.Must(session.NewSession()) + + svc := opsworkscm.New(sess) + + params := &opsworkscm.DescribeNodeAssociationStatusInput{ + NodeAssociationStatusToken: aws.String("NodeAssociationStatusToken"), // Required + ServerName: aws.String("ServerName"), // Required + } + resp, err := svc.DescribeNodeAssociationStatus(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOpsWorksCM_DescribeServers() { + sess := session.Must(session.NewSession()) + + svc := opsworkscm.New(sess) + + params := &opsworkscm.DescribeServersInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + ServerName: aws.String("ServerName"), + } + resp, err := svc.DescribeServers(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOpsWorksCM_DisassociateNode() { + sess := session.Must(session.NewSession()) + + svc := opsworkscm.New(sess) + + params := &opsworkscm.DisassociateNodeInput{ + NodeName: aws.String("NodeName"), // Required + ServerName: aws.String("ServerName"), // Required + EngineAttributes: []*opsworkscm.EngineAttribute{ + { // Required + Name: aws.String("EngineAttributeName"), + Value: aws.String("EngineAttributeValue"), + }, + // More values... + }, + } + resp, err := svc.DisassociateNode(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOpsWorksCM_RestoreServer() { + sess := session.Must(session.NewSession()) + + svc := opsworkscm.New(sess) + + params := &opsworkscm.RestoreServerInput{ + BackupId: aws.String("BackupId"), // Required + ServerName: aws.String("ServerName"), // Required + InstanceType: aws.String("String"), + KeyPair: aws.String("KeyPair"), + } + resp, err := svc.RestoreServer(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOpsWorksCM_StartMaintenance() { + sess := session.Must(session.NewSession()) + + svc := opsworkscm.New(sess) + + params := &opsworkscm.StartMaintenanceInput{ + ServerName: aws.String("ServerName"), // Required + } + resp, err := svc.StartMaintenance(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOpsWorksCM_UpdateServer() { + sess := session.Must(session.NewSession()) + + svc := opsworkscm.New(sess) + + params := &opsworkscm.UpdateServerInput{ + ServerName: aws.String("ServerName"), // Required + BackupRetentionCount: aws.Int64(1), + DisableAutomatedBackup: aws.Bool(true), + PreferredBackupWindow: aws.String("TimeWindowDefinition"), + PreferredMaintenanceWindow: aws.String("TimeWindowDefinition"), + } + resp, err := svc.UpdateServer(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOpsWorksCM_UpdateServerEngineAttributes() { + sess := session.Must(session.NewSession()) + + svc := opsworkscm.New(sess) + + params := &opsworkscm.UpdateServerEngineAttributesInput{ + AttributeName: aws.String("AttributeName"), // Required + ServerName: aws.String("ServerName"), // Required + AttributeValue: aws.String("AttributeValue"), + } + resp, err := svc.UpdateServerEngineAttributes(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/opsworkscmiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/opsworkscmiface/interface.go new file mode 100644 index 000000000..305e9da66 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/opsworkscmiface/interface.go @@ -0,0 +1,123 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package opsworkscmiface provides an interface to enable mocking the AWS OpsWorks for Chef Automate service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package opsworkscmiface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/opsworkscm" +) + +// OpsWorksCMAPI provides an interface to enable mocking the +// opsworkscm.OpsWorksCM service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS OpsWorks for Chef Automate. +// func myFunc(svc opsworkscmiface.OpsWorksCMAPI) bool { +// // Make svc.AssociateNode request +// } +// +// func main() { +// sess := session.New() +// svc := opsworkscm.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockOpsWorksCMClient struct { +// opsworkscmiface.OpsWorksCMAPI +// } +// func (m *mockOpsWorksCMClient) AssociateNode(input *opsworkscm.AssociateNodeInput) (*opsworkscm.AssociateNodeOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockOpsWorksCMClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type OpsWorksCMAPI interface { + AssociateNodeRequest(*opsworkscm.AssociateNodeInput) (*request.Request, *opsworkscm.AssociateNodeOutput) + + AssociateNode(*opsworkscm.AssociateNodeInput) (*opsworkscm.AssociateNodeOutput, error) + + CreateBackupRequest(*opsworkscm.CreateBackupInput) (*request.Request, *opsworkscm.CreateBackupOutput) + + CreateBackup(*opsworkscm.CreateBackupInput) (*opsworkscm.CreateBackupOutput, error) + + CreateServerRequest(*opsworkscm.CreateServerInput) (*request.Request, *opsworkscm.CreateServerOutput) + + CreateServer(*opsworkscm.CreateServerInput) (*opsworkscm.CreateServerOutput, error) + + DeleteBackupRequest(*opsworkscm.DeleteBackupInput) (*request.Request, *opsworkscm.DeleteBackupOutput) + + DeleteBackup(*opsworkscm.DeleteBackupInput) (*opsworkscm.DeleteBackupOutput, error) + + DeleteServerRequest(*opsworkscm.DeleteServerInput) (*request.Request, *opsworkscm.DeleteServerOutput) + + DeleteServer(*opsworkscm.DeleteServerInput) (*opsworkscm.DeleteServerOutput, error) + + DescribeAccountAttributesRequest(*opsworkscm.DescribeAccountAttributesInput) (*request.Request, *opsworkscm.DescribeAccountAttributesOutput) + + DescribeAccountAttributes(*opsworkscm.DescribeAccountAttributesInput) (*opsworkscm.DescribeAccountAttributesOutput, error) + + DescribeBackupsRequest(*opsworkscm.DescribeBackupsInput) (*request.Request, *opsworkscm.DescribeBackupsOutput) + + DescribeBackups(*opsworkscm.DescribeBackupsInput) (*opsworkscm.DescribeBackupsOutput, error) + + DescribeEventsRequest(*opsworkscm.DescribeEventsInput) (*request.Request, *opsworkscm.DescribeEventsOutput) + + DescribeEvents(*opsworkscm.DescribeEventsInput) (*opsworkscm.DescribeEventsOutput, error) + + DescribeNodeAssociationStatusRequest(*opsworkscm.DescribeNodeAssociationStatusInput) (*request.Request, *opsworkscm.DescribeNodeAssociationStatusOutput) + + DescribeNodeAssociationStatus(*opsworkscm.DescribeNodeAssociationStatusInput) (*opsworkscm.DescribeNodeAssociationStatusOutput, error) + + DescribeServersRequest(*opsworkscm.DescribeServersInput) (*request.Request, *opsworkscm.DescribeServersOutput) + + DescribeServers(*opsworkscm.DescribeServersInput) (*opsworkscm.DescribeServersOutput, error) + + DisassociateNodeRequest(*opsworkscm.DisassociateNodeInput) (*request.Request, *opsworkscm.DisassociateNodeOutput) + + DisassociateNode(*opsworkscm.DisassociateNodeInput) (*opsworkscm.DisassociateNodeOutput, error) + + RestoreServerRequest(*opsworkscm.RestoreServerInput) (*request.Request, *opsworkscm.RestoreServerOutput) + + RestoreServer(*opsworkscm.RestoreServerInput) (*opsworkscm.RestoreServerOutput, error) + + StartMaintenanceRequest(*opsworkscm.StartMaintenanceInput) (*request.Request, *opsworkscm.StartMaintenanceOutput) + + StartMaintenance(*opsworkscm.StartMaintenanceInput) (*opsworkscm.StartMaintenanceOutput, error) + + UpdateServerRequest(*opsworkscm.UpdateServerInput) (*request.Request, *opsworkscm.UpdateServerOutput) + + UpdateServer(*opsworkscm.UpdateServerInput) (*opsworkscm.UpdateServerOutput, error) + + UpdateServerEngineAttributesRequest(*opsworkscm.UpdateServerEngineAttributesInput) (*request.Request, *opsworkscm.UpdateServerEngineAttributesOutput) + + UpdateServerEngineAttributes(*opsworkscm.UpdateServerEngineAttributesInput) (*opsworkscm.UpdateServerEngineAttributesOutput, error) +} + +var _ OpsWorksCMAPI = (*opsworkscm.OpsWorksCM)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/service.go b/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/service.go new file mode 100644 index 000000000..12b7cc2d7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/service.go @@ -0,0 +1,143 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package opsworkscm + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" +) + +// AWS OpsWorks for Chef Automate is a service that runs and manages configuration +// management servers. +// +// Glossary of terms +// +// * Server: A configuration management server that can be highly-available. +// The configuration manager runs on your instances by using various AWS +// services, such as Amazon Elastic Compute Cloud (EC2), and potentially +// Amazon Relational Database Service (RDS). A server is a generic abstraction +// over the configuration manager that you want to use, much like Amazon +// RDS. In AWS OpsWorks for Chef Automate, you do not start or stop servers. +// After you create servers, they continue to run until they are deleted. +// +// * Engine: The specific configuration manager that you want to use (such +// as Chef) is the engine. +// +// * Backup: This is an application-level backup of the data that the configuration +// manager stores. A backup creates a .tar.gz file that is stored in an Amazon +// Simple Storage Service (S3) bucket in your account. AWS OpsWorks for Chef +// Automate creates the S3 bucket when you launch the first instance. A backup +// maintains a snapshot of all of a server's important attributes at the +// time of the backup. +// +// * Events: Events are always related to a server. Events are written during +// server creation, when health checks run, when backups are created, etc. +// When you delete a server, the server's events are also deleted. +// +// * AccountAttributes: Every account has attributes that are assigned in +// the AWS OpsWorks for Chef Automate database. These attributes store information +// about configuration limits (servers, backups, etc.) and your customer +// account. +// +// Endpoints +// +// AWS OpsWorks for Chef Automate supports the following endpoints, all HTTPS. +// You must connect to one of the following endpoints. Chef servers can only +// be accessed or managed within the endpoint in which they are created. +// +// * opsworks-cm.us-east-1.amazonaws.com +// +// * opsworks-cm.us-west-2.amazonaws.com +// +// * opsworks-cm.eu-west-1.amazonaws.com +// +// Throttling limits +// +// All API operations allow for five requests per second with a burst of 10 +// requests per second. +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01 +type OpsWorksCM struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "opsworks-cm" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the OpsWorksCM client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a OpsWorksCM client from just a session. +// svc := opsworkscm.New(mySession) +// +// // Create a OpsWorksCM client with additional configuration +// svc := opsworkscm.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *OpsWorksCM { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *OpsWorksCM { + if len(signingName) == 0 { + signingName = "opsworks-cm" + } + svc := &OpsWorksCM{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2016-11-01", + JSONVersion: "1.1", + TargetPrefix: "OpsWorksCM_V2016_11_01", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a OpsWorksCM operation and runs any +// custom request initialization. +func (c *OpsWorksCM) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/organizations/api.go b/vendor/github.com/aws/aws-sdk-go/service/organizations/api.go new file mode 100644 index 000000000..9ace4153e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/organizations/api.go @@ -0,0 +1,8560 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package organizations provides a client for AWS Organizations. +package organizations + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" +) + +const opAcceptHandshake = "AcceptHandshake" + +// AcceptHandshakeRequest generates a "aws/request.Request" representing the +// client's request for the AcceptHandshake operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AcceptHandshake for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AcceptHandshake method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AcceptHandshakeRequest method. +// req, resp := client.AcceptHandshakeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/AcceptHandshake +func (c *Organizations) AcceptHandshakeRequest(input *AcceptHandshakeInput) (req *request.Request, output *AcceptHandshakeOutput) { + op := &request.Operation{ + Name: opAcceptHandshake, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AcceptHandshakeInput{} + } + + output = &AcceptHandshakeOutput{} + req = c.newRequest(op, input, output) + return +} + +// AcceptHandshake API operation for AWS Organizations. +// +// Sends a response to the originator of a handshake agreeing to the action +// proposed by the handshake request. +// +// This operation can be called only by the following principals when they also +// have the relevant IAM permissions: +// +// * Invitation to join or Approve all features request handshakes: only +// a principal from the member account. +// +// * Enable all features final confirmation handshake: only a principal from +// the master account. +// +// For more information about invitations, see Inviting an AWS Account to Join +// Your Organization (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_invites.html) +// in the AWS Organizations User Guide. For more information about requests +// to enable all features in the organization, see Enabling All Features +// in Your Organization (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html) +// in the AWS Organizations User Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation AcceptHandshake for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeHandshakeConstraintViolationException "HandshakeConstraintViolationException" +// The requested operation would violate the constraint identified in the reason +// code. +// +// * ErrCodeHandshakeNotFoundException "HandshakeNotFoundException" +// We can't find a handshake with the HandshakeId that you specified. +// +// * ErrCodeInvalidHandshakeTransitionException "InvalidHandshakeTransitionException" +// You can't perform the operation on the handshake in its current state. For +// example, you can't cancel a handshake that was already accepted, or accept +// a handshake that was already declined. +// +// * ErrCodeHandshakeAlreadyInStateException "HandshakeAlreadyInStateException" +// The specified handshake is already in the requested state. For example, you +// can't accept a handshake that was already accepted. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The target of the operation is currently being modified by a different request. +// Try again later. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/AcceptHandshake +func (c *Organizations) AcceptHandshake(input *AcceptHandshakeInput) (*AcceptHandshakeOutput, error) { + req, out := c.AcceptHandshakeRequest(input) + err := req.Send() + return out, err +} + +const opAttachPolicy = "AttachPolicy" + +// AttachPolicyRequest generates a "aws/request.Request" representing the +// client's request for the AttachPolicy operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AttachPolicy for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AttachPolicy method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AttachPolicyRequest method. +// req, resp := client.AttachPolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/AttachPolicy +func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *request.Request, output *AttachPolicyOutput) { + op := &request.Operation{ + Name: opAttachPolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AttachPolicyInput{} + } + + output = &AttachPolicyOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// AttachPolicy API operation for AWS Organizations. +// +// Attaches a policy to a root, an organizational unit, or an individual account. +// How the policy affects accounts depends on the type of policy: +// +// * Service control policy (SCP) - An SCP specifies what permissions can +// be delegated to users in affected member accounts. The scope of influence +// for a policy depends on what you attach the policy to: +// +// If you attach an SCP to a root, it affects all accounts in the organization. +// +// If you attach an SCP to an OU, it affects all accounts in that OU and in +// any child OUs. +// +// If you attach the policy directly to an account, then it affects only that +// account. +// +// SCPs essentially are permission "filters". When you attach one SCP to a higher +// level root or OU, and you also attach a different SCP to a child OU or +// to an account, the child policy can further restrict only the permissions +// that pass through the parent filter and are available to the child. An +// SCP that is attached to a child cannot grant a permission that is not +// already granted by the parent. For example, imagine that the parent SCP +// allows permissions A, B, C, D, and E. The child SCP allows C, D, E, F, +// and G. The result is that the accounts affected by the child SCP are allowed +// to use only C, D, and E. They cannot use A or B because they were filtered +// out by the child OU. They also cannot use F and G because they were filtered +// out by the parent OU. They cannot be granted back by the child SCP; child +// SCPs can only filter the permissions they receive from the parent SCP. +// +// AWS Organizations attaches a default SCP named "FullAWSAccess to every root, +// OU, and account. This default SCP allows all services and actions, enabling +// any new child OU or account to inherit the permissions of the parent root +// or OU. If you detach the default policy, you must replace it with a policy +// that specifies the permissions that you want to allow in that OU or account. +// +// For more information about how Organizations policies permissions work, see +// Using Service Control Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html) +// in the AWS Organizations User Guide. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation AttachPolicy for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The target of the operation is currently being modified by a different request. +// Try again later. +// +// * ErrCodeConstraintViolationException "ConstraintViolationException" +// Performing this operation violates a minimum or maximum value limit. For +// example, attempting to removing the last SCP from an OU or root, inviting +// or creating too many accounts to the organization, or attaching too many +// policies to an account, OU, or root. +// +// * ErrCodeDuplicatePolicyAttachmentException "DuplicatePolicyAttachmentException" +// The selected policy is already attached to the specified target. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodePolicyNotFoundException "PolicyNotFoundException" +// We can't find a policy with the PolicyId that you specified. +// +// * ErrCodePolicyTypeNotEnabledException "PolicyTypeNotEnabledException" +// The specified policy type is not currently enabled in this root. You cannot +// attach policies of the specified type to entities in a root until you enable +// that type in the root. For more information, see Enabling All Features in +// Your Organization (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html) +// in the AWS Organizations User Guide. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTargetNotFoundException "TargetNotFoundException" +// We can't find a root, OU, or account with the TargetId that you specified. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/AttachPolicy +func (c *Organizations) AttachPolicy(input *AttachPolicyInput) (*AttachPolicyOutput, error) { + req, out := c.AttachPolicyRequest(input) + err := req.Send() + return out, err +} + +const opCancelHandshake = "CancelHandshake" + +// CancelHandshakeRequest generates a "aws/request.Request" representing the +// client's request for the CancelHandshake operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CancelHandshake for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CancelHandshake method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CancelHandshakeRequest method. +// req, resp := client.CancelHandshakeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CancelHandshake +func (c *Organizations) CancelHandshakeRequest(input *CancelHandshakeInput) (req *request.Request, output *CancelHandshakeOutput) { + op := &request.Operation{ + Name: opCancelHandshake, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CancelHandshakeInput{} + } + + output = &CancelHandshakeOutput{} + req = c.newRequest(op, input, output) + return +} + +// CancelHandshake API operation for AWS Organizations. +// +// Cancels a handshake. Canceling a handshake sets the handshake state to CANCELED. +// +// This operation can be called only from the account that originated the handshake. +// The recipient of the handshake can't cancel it, but can use DeclineHandshake +// instead. After a handshake is canceled, the recipient can no longer respond +// to that handshake. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation CancelHandshake for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeHandshakeNotFoundException "HandshakeNotFoundException" +// We can't find a handshake with the HandshakeId that you specified. +// +// * ErrCodeInvalidHandshakeTransitionException "InvalidHandshakeTransitionException" +// You can't perform the operation on the handshake in its current state. For +// example, you can't cancel a handshake that was already accepted, or accept +// a handshake that was already declined. +// +// * ErrCodeHandshakeAlreadyInStateException "HandshakeAlreadyInStateException" +// The specified handshake is already in the requested state. For example, you +// can't accept a handshake that was already accepted. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CancelHandshake +func (c *Organizations) CancelHandshake(input *CancelHandshakeInput) (*CancelHandshakeOutput, error) { + req, out := c.CancelHandshakeRequest(input) + err := req.Send() + return out, err +} + +const opCreateAccount = "CreateAccount" + +// CreateAccountRequest generates a "aws/request.Request" representing the +// client's request for the CreateAccount operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateAccount for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateAccount method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateAccountRequest method. +// req, resp := client.CreateAccountRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateAccount +func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *request.Request, output *CreateAccountOutput) { + op := &request.Operation{ + Name: opCreateAccount, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateAccountInput{} + } + + output = &CreateAccountOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateAccount API operation for AWS Organizations. +// +// Creates an AWS account that is automatically a member of the organization +// whose credentials made the request. This is an asynchronous request that +// AWS performs in the background. If you want to check the status of the request +// later, you need the OperationId response element from this operation to provide +// as a parameter to the DescribeCreateAccountStatus operation. +// +// AWS Organizations preconfigures the new member account with a role (named +// OrganizationAccountAccessRole by default) that grants administrator permissions +// to the new account. Principals in the master account can assume the role. +// AWS Organizations clones the company name and address information for the +// new account from the organization's master account. +// +// For more information about creating accounts, see Creating an AWS Account +// in Your Organization (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_create.html) +// in the AWS Organizations User Guide. +// +// You cannot remove accounts that are created with this operation from an organization. +// That also means that you cannot delete an organization that contains an account +// that is created with this operation. +// +// When you create a member account with this operation, the account is created +// with the IAM User and Role Access to Billing Information switch enabled. +// This allows IAM users and roles that are granted appropriate permissions +// to view billing information. If this is disabled, then only the account root +// user can access billing information. For information about how to disable +// this for an account, see Granting Access to Your Billing Information and +// Tools (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/grantaccess.html). +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation CreateAccount for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeConstraintViolationException "ConstraintViolationException" +// Performing this operation violates a minimum or maximum value limit. For +// example, attempting to removing the last SCP from an OU or root, inviting +// or creating too many accounts to the organization, or attaching too many +// policies to an account, OU, or root. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeFinalizingOrganizationException "FinalizingOrganizationException" +// AWS Organizations could not finalize the creation of your organization. Try +// again later. If this persists, contact AWS customer support. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateAccount +func (c *Organizations) CreateAccount(input *CreateAccountInput) (*CreateAccountOutput, error) { + req, out := c.CreateAccountRequest(input) + err := req.Send() + return out, err +} + +const opCreateOrganization = "CreateOrganization" + +// CreateOrganizationRequest generates a "aws/request.Request" representing the +// client's request for the CreateOrganization operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateOrganization for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateOrganization method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateOrganizationRequest method. +// req, resp := client.CreateOrganizationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateOrganization +func (c *Organizations) CreateOrganizationRequest(input *CreateOrganizationInput) (req *request.Request, output *CreateOrganizationOutput) { + op := &request.Operation{ + Name: opCreateOrganization, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateOrganizationInput{} + } + + output = &CreateOrganizationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateOrganization API operation for AWS Organizations. +// +// Creates an AWS organization. The account whose user is calling the CreateOrganization +// operation automatically becomes the master account (http://docs.aws.amazon.com/IAM/latest/UserGuide/orgs_getting-started_concepts.html#account) +// of the new organization. +// +// This operation must be called using credentials from the account that is +// to become the new organization's master account. The principal must also +// have the relevant IAM permissions. +// +// By default (or if you set the FeatureSet parameter to ALL), the new organization +// is created with all features enabled and service control policies automatically +// enabled in the root. If you instead choose to create the organization supporting +// only the consolidated billing features by setting the FeatureSet parameter +// to CONSOLIDATED_BILLING", then no policy types are enabled by default and +// you cannot use organization policies. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation CreateOrganization for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAlreadyInOrganizationException "AlreadyInOrganizationException" +// This account is already a member of an organization. An account can belong +// to only one organization at a time. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The target of the operation is currently being modified by a different request. +// Try again later. +// +// * ErrCodeConstraintViolationException "ConstraintViolationException" +// Performing this operation violates a minimum or maximum value limit. For +// example, attempting to removing the last SCP from an OU or root, inviting +// or creating too many accounts to the organization, or attaching too many +// policies to an account, OU, or root. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateOrganization +func (c *Organizations) CreateOrganization(input *CreateOrganizationInput) (*CreateOrganizationOutput, error) { + req, out := c.CreateOrganizationRequest(input) + err := req.Send() + return out, err +} + +const opCreateOrganizationalUnit = "CreateOrganizationalUnit" + +// CreateOrganizationalUnitRequest generates a "aws/request.Request" representing the +// client's request for the CreateOrganizationalUnit operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateOrganizationalUnit for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateOrganizationalUnit method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateOrganizationalUnitRequest method. +// req, resp := client.CreateOrganizationalUnitRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateOrganizationalUnit +func (c *Organizations) CreateOrganizationalUnitRequest(input *CreateOrganizationalUnitInput) (req *request.Request, output *CreateOrganizationalUnitOutput) { + op := &request.Operation{ + Name: opCreateOrganizationalUnit, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateOrganizationalUnitInput{} + } + + output = &CreateOrganizationalUnitOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateOrganizationalUnit API operation for AWS Organizations. +// +// Creates an organizational unit (OU) within a root or parent OU. An OU is +// a container for accounts that enables you to organize your accounts to apply +// policies according to your business requirements. The number of levels deep +// that you can nest OUs is dependent upon the policy types enabled for that +// root. For service control policies, the limit is five. +// +// For more information about OUs, see Managing Organizational Units (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_ous.html) +// in the AWS Organizations User Guide. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation CreateOrganizationalUnit for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeConstraintViolationException "ConstraintViolationException" +// Performing this operation violates a minimum or maximum value limit. For +// example, attempting to removing the last SCP from an OU or root, inviting +// or creating too many accounts to the organization, or attaching too many +// policies to an account, OU, or root. +// +// * ErrCodeDuplicateOrganizationalUnitException "DuplicateOrganizationalUnitException" +// An organizational unit (OU) with the same name already exists. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeParentNotFoundException "ParentNotFoundException" +// We can't find a root or organizational unit (OU) with the ParentId that you +// specified. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateOrganizationalUnit +func (c *Organizations) CreateOrganizationalUnit(input *CreateOrganizationalUnitInput) (*CreateOrganizationalUnitOutput, error) { + req, out := c.CreateOrganizationalUnitRequest(input) + err := req.Send() + return out, err +} + +const opCreatePolicy = "CreatePolicy" + +// CreatePolicyRequest generates a "aws/request.Request" representing the +// client's request for the CreatePolicy operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreatePolicy for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreatePolicy method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreatePolicyRequest method. +// req, resp := client.CreatePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreatePolicy +func (c *Organizations) CreatePolicyRequest(input *CreatePolicyInput) (req *request.Request, output *CreatePolicyOutput) { + op := &request.Operation{ + Name: opCreatePolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreatePolicyInput{} + } + + output = &CreatePolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreatePolicy API operation for AWS Organizations. +// +// Creates a policy of a specified type that you can attach to a root, an organizational +// unit (OU), or an individual AWS account. +// +// For more information about policies and their use, see Managing Organization +// Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html). +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation CreatePolicy for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The target of the operation is currently being modified by a different request. +// Try again later. +// +// * ErrCodeConstraintViolationException "ConstraintViolationException" +// Performing this operation violates a minimum or maximum value limit. For +// example, attempting to removing the last SCP from an OU or root, inviting +// or creating too many accounts to the organization, or attaching too many +// policies to an account, OU, or root. +// +// * ErrCodeDuplicatePolicyException "DuplicatePolicyException" +// A policy with the same name already exists. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocumentException" +// The provided policy document does not meet the requirements of the specified +// policy type. For example, the syntax might be incorrect. For details about +// service control policy syntax, see Service Control Policy Syntax (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html) +// in the AWS Organizations User Guide. +// +// * ErrCodePolicyTypeNotAvailableForOrganizationException "PolicyTypeNotAvailableForOrganizationException" +// You can't use the specified policy type with the feature set currently enabled +// for this organization. For example, you can enable service control policies +// (SCPs) only after you enable all features in the organization. For more information, +// see Enabling and Disabling a Policy Type on a Root (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html#enable_policies_on_root) +// in the AWS Organizations User Guide. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreatePolicy +func (c *Organizations) CreatePolicy(input *CreatePolicyInput) (*CreatePolicyOutput, error) { + req, out := c.CreatePolicyRequest(input) + err := req.Send() + return out, err +} + +const opDeclineHandshake = "DeclineHandshake" + +// DeclineHandshakeRequest generates a "aws/request.Request" representing the +// client's request for the DeclineHandshake operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeclineHandshake for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeclineHandshake method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeclineHandshakeRequest method. +// req, resp := client.DeclineHandshakeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeclineHandshake +func (c *Organizations) DeclineHandshakeRequest(input *DeclineHandshakeInput) (req *request.Request, output *DeclineHandshakeOutput) { + op := &request.Operation{ + Name: opDeclineHandshake, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeclineHandshakeInput{} + } + + output = &DeclineHandshakeOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeclineHandshake API operation for AWS Organizations. +// +// Declines a handshake request. This sets the handshake state to DECLINED and +// effectively deactivates the request. +// +// This operation can be called only from the account that received the handshake. +// The originator of the handshake can use CancelHandshake instead. The originator +// can't reactivate a declined request, but can re-initiate the process with +// a new handshake request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation DeclineHandshake for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeHandshakeNotFoundException "HandshakeNotFoundException" +// We can't find a handshake with the HandshakeId that you specified. +// +// * ErrCodeInvalidHandshakeTransitionException "InvalidHandshakeTransitionException" +// You can't perform the operation on the handshake in its current state. For +// example, you can't cancel a handshake that was already accepted, or accept +// a handshake that was already declined. +// +// * ErrCodeHandshakeAlreadyInStateException "HandshakeAlreadyInStateException" +// The specified handshake is already in the requested state. For example, you +// can't accept a handshake that was already accepted. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeclineHandshake +func (c *Organizations) DeclineHandshake(input *DeclineHandshakeInput) (*DeclineHandshakeOutput, error) { + req, out := c.DeclineHandshakeRequest(input) + err := req.Send() + return out, err +} + +const opDeleteOrganization = "DeleteOrganization" + +// DeleteOrganizationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteOrganization operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteOrganization for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteOrganization method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteOrganizationRequest method. +// req, resp := client.DeleteOrganizationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeleteOrganization +func (c *Organizations) DeleteOrganizationRequest(input *DeleteOrganizationInput) (req *request.Request, output *DeleteOrganizationOutput) { + op := &request.Operation{ + Name: opDeleteOrganization, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteOrganizationInput{} + } + + output = &DeleteOrganizationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteOrganization API operation for AWS Organizations. +// +// Deletes the organization. You can delete an organization only by using credentials +// from the master account. The organization must be empty of member accounts, +// OUs, and policies. +// +// If you create any accounts using Organizations operations or the Organizations +// console, you can't remove those accounts from the organization, which means +// that you can't delete the organization. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation DeleteOrganization for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The target of the operation is currently being modified by a different request. +// Try again later. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeOrganizationNotEmptyException "OrganizationNotEmptyException" +// The organization isn't empty. To delete an organization, you must first remove +// all accounts except the master account, delete all organizational units (OUs), +// and delete all policies. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeleteOrganization +func (c *Organizations) DeleteOrganization(input *DeleteOrganizationInput) (*DeleteOrganizationOutput, error) { + req, out := c.DeleteOrganizationRequest(input) + err := req.Send() + return out, err +} + +const opDeleteOrganizationalUnit = "DeleteOrganizationalUnit" + +// DeleteOrganizationalUnitRequest generates a "aws/request.Request" representing the +// client's request for the DeleteOrganizationalUnit operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteOrganizationalUnit for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteOrganizationalUnit method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteOrganizationalUnitRequest method. +// req, resp := client.DeleteOrganizationalUnitRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeleteOrganizationalUnit +func (c *Organizations) DeleteOrganizationalUnitRequest(input *DeleteOrganizationalUnitInput) (req *request.Request, output *DeleteOrganizationalUnitOutput) { + op := &request.Operation{ + Name: opDeleteOrganizationalUnit, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteOrganizationalUnitInput{} + } + + output = &DeleteOrganizationalUnitOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteOrganizationalUnit API operation for AWS Organizations. +// +// Deletes an organizational unit from a root or another OU. You must first +// remove all accounts and child OUs from the OU that you want to delete. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation DeleteOrganizationalUnit for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The target of the operation is currently being modified by a different request. +// Try again later. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeOrganizationalUnitNotEmptyException "OrganizationalUnitNotEmptyException" +// The specified organizational unit (OU) is not empty. Move all accounts to +// another root or to other OUs, remove all child OUs, and then try the operation +// again. +// +// * ErrCodeOrganizationalUnitNotFoundException "OrganizationalUnitNotFoundException" +// We can't find an organizational unit (OU) with the OrganizationalUnitId that +// you specified. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeleteOrganizationalUnit +func (c *Organizations) DeleteOrganizationalUnit(input *DeleteOrganizationalUnitInput) (*DeleteOrganizationalUnitOutput, error) { + req, out := c.DeleteOrganizationalUnitRequest(input) + err := req.Send() + return out, err +} + +const opDeletePolicy = "DeletePolicy" + +// DeletePolicyRequest generates a "aws/request.Request" representing the +// client's request for the DeletePolicy operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeletePolicy for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeletePolicy method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeletePolicyRequest method. +// req, resp := client.DeletePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeletePolicy +func (c *Organizations) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Request, output *DeletePolicyOutput) { + op := &request.Operation{ + Name: opDeletePolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeletePolicyInput{} + } + + output = &DeletePolicyOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeletePolicy API operation for AWS Organizations. +// +// Deletes the specified policy from your organization. Before you perform this +// operation, you must first detach the policy from all OUs, roots, and accounts. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation DeletePolicy for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The target of the operation is currently being modified by a different request. +// Try again later. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodePolicyInUseException "PolicyInUseException" +// The policy is attached to one or more entities. You must detach it from all +// roots, organizational units (OUs), and accounts before performing this operation. +// +// * ErrCodePolicyNotFoundException "PolicyNotFoundException" +// We can't find a policy with the PolicyId that you specified. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeletePolicy +func (c *Organizations) DeletePolicy(input *DeletePolicyInput) (*DeletePolicyOutput, error) { + req, out := c.DeletePolicyRequest(input) + err := req.Send() + return out, err +} + +const opDescribeAccount = "DescribeAccount" + +// DescribeAccountRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAccount operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeAccount for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeAccount method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeAccountRequest method. +// req, resp := client.DescribeAccountRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeAccount +func (c *Organizations) DescribeAccountRequest(input *DescribeAccountInput) (req *request.Request, output *DescribeAccountOutput) { + op := &request.Operation{ + Name: opDescribeAccount, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeAccountInput{} + } + + output = &DescribeAccountOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeAccount API operation for AWS Organizations. +// +// Retrieves Organizations-related information about the specified account. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation DescribeAccount for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAccountNotFoundException "AccountNotFoundException" +// We can't find an AWS account with the AccountId that you specified, or the +// account whose credentials you used to make this request is not a member of +// an organization. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeAccount +func (c *Organizations) DescribeAccount(input *DescribeAccountInput) (*DescribeAccountOutput, error) { + req, out := c.DescribeAccountRequest(input) + err := req.Send() + return out, err +} + +const opDescribeCreateAccountStatus = "DescribeCreateAccountStatus" + +// DescribeCreateAccountStatusRequest generates a "aws/request.Request" representing the +// client's request for the DescribeCreateAccountStatus operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeCreateAccountStatus for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeCreateAccountStatus method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeCreateAccountStatusRequest method. +// req, resp := client.DescribeCreateAccountStatusRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeCreateAccountStatus +func (c *Organizations) DescribeCreateAccountStatusRequest(input *DescribeCreateAccountStatusInput) (req *request.Request, output *DescribeCreateAccountStatusOutput) { + op := &request.Operation{ + Name: opDescribeCreateAccountStatus, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeCreateAccountStatusInput{} + } + + output = &DescribeCreateAccountStatusOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeCreateAccountStatus API operation for AWS Organizations. +// +// Retrieves the current status of an asynchronous request to create an account. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation DescribeCreateAccountStatus for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeCreateAccountStatusNotFoundException "CreateAccountStatusNotFoundException" +// We can't find an create account request with the CreateAccountRequestId that +// you specified. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeCreateAccountStatus +func (c *Organizations) DescribeCreateAccountStatus(input *DescribeCreateAccountStatusInput) (*DescribeCreateAccountStatusOutput, error) { + req, out := c.DescribeCreateAccountStatusRequest(input) + err := req.Send() + return out, err +} + +const opDescribeHandshake = "DescribeHandshake" + +// DescribeHandshakeRequest generates a "aws/request.Request" representing the +// client's request for the DescribeHandshake operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeHandshake for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeHandshake method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeHandshakeRequest method. +// req, resp := client.DescribeHandshakeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeHandshake +func (c *Organizations) DescribeHandshakeRequest(input *DescribeHandshakeInput) (req *request.Request, output *DescribeHandshakeOutput) { + op := &request.Operation{ + Name: opDescribeHandshake, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeHandshakeInput{} + } + + output = &DescribeHandshakeOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeHandshake API operation for AWS Organizations. +// +// Retrieves information about a previously requested handshake. The handshake +// ID comes from the response to the original InviteAccountToOrganization operation +// that generated the handshake. +// +// This operation can be called from any account in the organization. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation DescribeHandshake for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeHandshakeNotFoundException "HandshakeNotFoundException" +// We can't find a handshake with the HandshakeId that you specified. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeHandshake +func (c *Organizations) DescribeHandshake(input *DescribeHandshakeInput) (*DescribeHandshakeOutput, error) { + req, out := c.DescribeHandshakeRequest(input) + err := req.Send() + return out, err +} + +const opDescribeOrganization = "DescribeOrganization" + +// DescribeOrganizationRequest generates a "aws/request.Request" representing the +// client's request for the DescribeOrganization operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeOrganization for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeOrganization method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeOrganizationRequest method. +// req, resp := client.DescribeOrganizationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeOrganization +func (c *Organizations) DescribeOrganizationRequest(input *DescribeOrganizationInput) (req *request.Request, output *DescribeOrganizationOutput) { + op := &request.Operation{ + Name: opDescribeOrganization, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeOrganizationInput{} + } + + output = &DescribeOrganizationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeOrganization API operation for AWS Organizations. +// +// Retrieves information about the organization that the user's account belongs +// to. +// +// This operation can be called from any account in the organization. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation DescribeOrganization for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeOrganization +func (c *Organizations) DescribeOrganization(input *DescribeOrganizationInput) (*DescribeOrganizationOutput, error) { + req, out := c.DescribeOrganizationRequest(input) + err := req.Send() + return out, err +} + +const opDescribeOrganizationalUnit = "DescribeOrganizationalUnit" + +// DescribeOrganizationalUnitRequest generates a "aws/request.Request" representing the +// client's request for the DescribeOrganizationalUnit operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeOrganizationalUnit for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeOrganizationalUnit method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeOrganizationalUnitRequest method. +// req, resp := client.DescribeOrganizationalUnitRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeOrganizationalUnit +func (c *Organizations) DescribeOrganizationalUnitRequest(input *DescribeOrganizationalUnitInput) (req *request.Request, output *DescribeOrganizationalUnitOutput) { + op := &request.Operation{ + Name: opDescribeOrganizationalUnit, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeOrganizationalUnitInput{} + } + + output = &DescribeOrganizationalUnitOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeOrganizationalUnit API operation for AWS Organizations. +// +// Retrieves information about an organizational unit (OU). +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation DescribeOrganizationalUnit for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeOrganizationalUnitNotFoundException "OrganizationalUnitNotFoundException" +// We can't find an organizational unit (OU) with the OrganizationalUnitId that +// you specified. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeOrganizationalUnit +func (c *Organizations) DescribeOrganizationalUnit(input *DescribeOrganizationalUnitInput) (*DescribeOrganizationalUnitOutput, error) { + req, out := c.DescribeOrganizationalUnitRequest(input) + err := req.Send() + return out, err +} + +const opDescribePolicy = "DescribePolicy" + +// DescribePolicyRequest generates a "aws/request.Request" representing the +// client's request for the DescribePolicy operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribePolicy for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribePolicy method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribePolicyRequest method. +// req, resp := client.DescribePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribePolicy +func (c *Organizations) DescribePolicyRequest(input *DescribePolicyInput) (req *request.Request, output *DescribePolicyOutput) { + op := &request.Operation{ + Name: opDescribePolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribePolicyInput{} + } + + output = &DescribePolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribePolicy API operation for AWS Organizations. +// +// Retrieves information about a policy. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation DescribePolicy for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodePolicyNotFoundException "PolicyNotFoundException" +// We can't find a policy with the PolicyId that you specified. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribePolicy +func (c *Organizations) DescribePolicy(input *DescribePolicyInput) (*DescribePolicyOutput, error) { + req, out := c.DescribePolicyRequest(input) + err := req.Send() + return out, err +} + +const opDetachPolicy = "DetachPolicy" + +// DetachPolicyRequest generates a "aws/request.Request" representing the +// client's request for the DetachPolicy operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DetachPolicy for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DetachPolicy method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DetachPolicyRequest method. +// req, resp := client.DetachPolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DetachPolicy +func (c *Organizations) DetachPolicyRequest(input *DetachPolicyInput) (req *request.Request, output *DetachPolicyOutput) { + op := &request.Operation{ + Name: opDetachPolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DetachPolicyInput{} + } + + output = &DetachPolicyOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DetachPolicy API operation for AWS Organizations. +// +// Detaches a policy from a target root, organizational unit, or account. If +// the policy being detached is a service control policy (SCP), the changes +// to permissions for IAM users and roles in affected accounts are immediate. +// +// Note: Every root, OU, and account must have at least one SCP attached. If +// you want to replace the default FullAWSAccess policy with one that limits +// the permissions that can be delegated, then you must attach the replacement +// policy before you can remove the default one. This is the authorization strategy +// of whitelisting (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_about-scps.html#orgs_policies_whitelist). +// If you instead attach a second SCP and leave the FullAWSAccess SCP still +// attached, and specify "Effect": "Deny" in the second SCP to override the +// "Effect": "Allow" in the FullAWSAccess policy (or any other attached SCP), +// then you are using the authorization strategy of blacklisting (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_about-scps.html#orgs_policies_blacklist). +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation DetachPolicy for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The target of the operation is currently being modified by a different request. +// Try again later. +// +// * ErrCodeConstraintViolationException "ConstraintViolationException" +// Performing this operation violates a minimum or maximum value limit. For +// example, attempting to removing the last SCP from an OU or root, inviting +// or creating too many accounts to the organization, or attaching too many +// policies to an account, OU, or root. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodePolicyNotAttachedException "PolicyNotAttachedException" +// The policy isn't attached to the specified target in the specified root. +// +// * ErrCodePolicyNotFoundException "PolicyNotFoundException" +// We can't find a policy with the PolicyId that you specified. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTargetNotFoundException "TargetNotFoundException" +// We can't find a root, OU, or account with the TargetId that you specified. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DetachPolicy +func (c *Organizations) DetachPolicy(input *DetachPolicyInput) (*DetachPolicyOutput, error) { + req, out := c.DetachPolicyRequest(input) + err := req.Send() + return out, err +} + +const opDisablePolicyType = "DisablePolicyType" + +// DisablePolicyTypeRequest generates a "aws/request.Request" representing the +// client's request for the DisablePolicyType operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DisablePolicyType for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DisablePolicyType method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DisablePolicyTypeRequest method. +// req, resp := client.DisablePolicyTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DisablePolicyType +func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput) (req *request.Request, output *DisablePolicyTypeOutput) { + op := &request.Operation{ + Name: opDisablePolicyType, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisablePolicyTypeInput{} + } + + output = &DisablePolicyTypeOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisablePolicyType API operation for AWS Organizations. +// +// Disables an organizational control policy type in a root. A poicy of a certain +// type can be attached to entities in a root only if that type is enabled in +// the root. After you perform this operation, you no longer can attach policies +// of the specified type to that root or to any OU or account in that root. +// You can undo this by using the EnablePolicyType operation. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation DisablePolicyType for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The target of the operation is currently being modified by a different request. +// Try again later. +// +// * ErrCodeConstraintViolationException "ConstraintViolationException" +// Performing this operation violates a minimum or maximum value limit. For +// example, attempting to removing the last SCP from an OU or root, inviting +// or creating too many accounts to the organization, or attaching too many +// policies to an account, OU, or root. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodePolicyTypeNotEnabledException "PolicyTypeNotEnabledException" +// The specified policy type is not currently enabled in this root. You cannot +// attach policies of the specified type to entities in a root until you enable +// that type in the root. For more information, see Enabling All Features in +// Your Organization (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html) +// in the AWS Organizations User Guide. +// +// * ErrCodeRootNotFoundException "RootNotFoundException" +// We can't find a root with the RootId that you specified. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DisablePolicyType +func (c *Organizations) DisablePolicyType(input *DisablePolicyTypeInput) (*DisablePolicyTypeOutput, error) { + req, out := c.DisablePolicyTypeRequest(input) + err := req.Send() + return out, err +} + +const opEnableAllFeatures = "EnableAllFeatures" + +// EnableAllFeaturesRequest generates a "aws/request.Request" representing the +// client's request for the EnableAllFeatures operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See EnableAllFeatures for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the EnableAllFeatures method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the EnableAllFeaturesRequest method. +// req, resp := client.EnableAllFeaturesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/EnableAllFeatures +func (c *Organizations) EnableAllFeaturesRequest(input *EnableAllFeaturesInput) (req *request.Request, output *EnableAllFeaturesOutput) { + op := &request.Operation{ + Name: opEnableAllFeatures, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &EnableAllFeaturesInput{} + } + + output = &EnableAllFeaturesOutput{} + req = c.newRequest(op, input, output) + return +} + +// EnableAllFeatures API operation for AWS Organizations. +// +// Enables all features in an organization. This enables the use of organization +// policies that can restrict the services and actions that can be called in +// each account. Until you enable all features, you have access only to consolidated +// billing, and you can't use any of the advanced account administration features +// that AWS Organizations supports. For more information, see Enabling All Features +// in Your Organization (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html) +// in the AWS Organizations User Guide. +// +// This operation is required only for organizations that were created explicitly +// with only the consolidated billing features enabled, or that were migrated +// from a Consolidated Billing account family to Organizations. Calling this +// operation sends a handshake to every invited account in the organization. +// The feature set change can be finalized and the additional features enabled +// only after all administrators in the invited accounts approve the change +// by accepting the handshake. +// +// After all invited member accounts accept the handshake, you finalize the +// feature set change by accepting the handshake that contains "Action": "ENABLE_ALL_FEATURES". +// This completes the change. +// +// After you enable all features in your organization, the master account in +// the organization can apply policies on all member accounts. These policies +// can restrict what users and even administrators in those accounts can do. +// The master account can apply policies that prevent accounts from leaving +// the organization. Ensure that your account administrators are aware of this. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation EnableAllFeatures for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeHandshakeConstraintViolationException "HandshakeConstraintViolationException" +// The requested operation would violate the constraint identified in the reason +// code. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/EnableAllFeatures +func (c *Organizations) EnableAllFeatures(input *EnableAllFeaturesInput) (*EnableAllFeaturesOutput, error) { + req, out := c.EnableAllFeaturesRequest(input) + err := req.Send() + return out, err +} + +const opEnablePolicyType = "EnablePolicyType" + +// EnablePolicyTypeRequest generates a "aws/request.Request" representing the +// client's request for the EnablePolicyType operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See EnablePolicyType for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the EnablePolicyType method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the EnablePolicyTypeRequest method. +// req, resp := client.EnablePolicyTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/EnablePolicyType +func (c *Organizations) EnablePolicyTypeRequest(input *EnablePolicyTypeInput) (req *request.Request, output *EnablePolicyTypeOutput) { + op := &request.Operation{ + Name: opEnablePolicyType, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &EnablePolicyTypeInput{} + } + + output = &EnablePolicyTypeOutput{} + req = c.newRequest(op, input, output) + return +} + +// EnablePolicyType API operation for AWS Organizations. +// +// Enables a policy type in a root. After you enable a policy type in a root, +// you can attach policies of that type to the root, any OU, or account in that +// root. You can undo this by using the DisablePolicyType operation. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation EnablePolicyType for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The target of the operation is currently being modified by a different request. +// Try again later. +// +// * ErrCodeConstraintViolationException "ConstraintViolationException" +// Performing this operation violates a minimum or maximum value limit. For +// example, attempting to removing the last SCP from an OU or root, inviting +// or creating too many accounts to the organization, or attaching too many +// policies to an account, OU, or root. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodePolicyTypeAlreadyEnabledException "PolicyTypeAlreadyEnabledException" +// The specified policy type is already enabled in the specified root. +// +// * ErrCodeRootNotFoundException "RootNotFoundException" +// We can't find a root with the RootId that you specified. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// * ErrCodePolicyTypeNotAvailableForOrganizationException "PolicyTypeNotAvailableForOrganizationException" +// You can't use the specified policy type with the feature set currently enabled +// for this organization. For example, you can enable service control policies +// (SCPs) only after you enable all features in the organization. For more information, +// see Enabling and Disabling a Policy Type on a Root (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html#enable_policies_on_root) +// in the AWS Organizations User Guide. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/EnablePolicyType +func (c *Organizations) EnablePolicyType(input *EnablePolicyTypeInput) (*EnablePolicyTypeOutput, error) { + req, out := c.EnablePolicyTypeRequest(input) + err := req.Send() + return out, err +} + +const opInviteAccountToOrganization = "InviteAccountToOrganization" + +// InviteAccountToOrganizationRequest generates a "aws/request.Request" representing the +// client's request for the InviteAccountToOrganization operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See InviteAccountToOrganization for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the InviteAccountToOrganization method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the InviteAccountToOrganizationRequest method. +// req, resp := client.InviteAccountToOrganizationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/InviteAccountToOrganization +func (c *Organizations) InviteAccountToOrganizationRequest(input *InviteAccountToOrganizationInput) (req *request.Request, output *InviteAccountToOrganizationOutput) { + op := &request.Operation{ + Name: opInviteAccountToOrganization, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &InviteAccountToOrganizationInput{} + } + + output = &InviteAccountToOrganizationOutput{} + req = c.newRequest(op, input, output) + return +} + +// InviteAccountToOrganization API operation for AWS Organizations. +// +// Sends an invitation to another account to join your organization as a member +// account. Organizations sends email on your behalf to the email address that +// is associated with the other account's owner. The invitation is implemented +// as a Handshake whose details are in the response. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation InviteAccountToOrganization for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeHandshakeConstraintViolationException "HandshakeConstraintViolationException" +// The requested operation would violate the constraint identified in the reason +// code. +// +// * ErrCodeDuplicateHandshakeException "DuplicateHandshakeException" +// A handshake with the same action and target already exists. For example, +// if you invited an account to join your organization, the invited account +// might already have a pending invitation from this organization. If you intend +// to resend an invitation to an account, ensure that existing handshakes that +// might be considered duplicates are canceled or declined. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeFinalizingOrganizationException "FinalizingOrganizationException" +// AWS Organizations could not finalize the creation of your organization. Try +// again later. If this persists, contact AWS customer support. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/InviteAccountToOrganization +func (c *Organizations) InviteAccountToOrganization(input *InviteAccountToOrganizationInput) (*InviteAccountToOrganizationOutput, error) { + req, out := c.InviteAccountToOrganizationRequest(input) + err := req.Send() + return out, err +} + +const opLeaveOrganization = "LeaveOrganization" + +// LeaveOrganizationRequest generates a "aws/request.Request" representing the +// client's request for the LeaveOrganization operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See LeaveOrganization for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the LeaveOrganization method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the LeaveOrganizationRequest method. +// req, resp := client.LeaveOrganizationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/LeaveOrganization +func (c *Organizations) LeaveOrganizationRequest(input *LeaveOrganizationInput) (req *request.Request, output *LeaveOrganizationOutput) { + op := &request.Operation{ + Name: opLeaveOrganization, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &LeaveOrganizationInput{} + } + + output = &LeaveOrganizationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// LeaveOrganization API operation for AWS Organizations. +// +// Removes a member account from its parent organization. This version of the +// operation is performed by the account that wants to leave. To remove a member +// account as a user in the master account, use RemoveAccountFromOrganization +// instead. +// +// This operation can be called only from a member account in the organization. +// +// The master account in an organization with all features enabled can set service +// control policies (SCPs) that can restrict what administrators of member accounts +// can do, including preventing them from successfully calling LeaveOrganization +// and leaving the organization. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation LeaveOrganization for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAccountNotFoundException "AccountNotFoundException" +// We can't find an AWS account with the AccountId that you specified, or the +// account whose credentials you used to make this request is not a member of +// an organization. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The target of the operation is currently being modified by a different request. +// Try again later. +// +// * ErrCodeConstraintViolationException "ConstraintViolationException" +// Performing this operation violates a minimum or maximum value limit. For +// example, attempting to removing the last SCP from an OU or root, inviting +// or creating too many accounts to the organization, or attaching too many +// policies to an account, OU, or root. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeMasterCannotLeaveOrganizationException "MasterCannotLeaveOrganizationException" +// You can't remove a master account from an organization. If you want the master +// account to become a member account in another organization, you must first +// delete the current organization of the master account. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/LeaveOrganization +func (c *Organizations) LeaveOrganization(input *LeaveOrganizationInput) (*LeaveOrganizationOutput, error) { + req, out := c.LeaveOrganizationRequest(input) + err := req.Send() + return out, err +} + +const opListAccounts = "ListAccounts" + +// ListAccountsRequest generates a "aws/request.Request" representing the +// client's request for the ListAccounts operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListAccounts for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListAccounts method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListAccountsRequest method. +// req, resp := client.ListAccountsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListAccounts +func (c *Organizations) ListAccountsRequest(input *ListAccountsInput) (req *request.Request, output *ListAccountsOutput) { + op := &request.Operation{ + Name: opListAccounts, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListAccountsInput{} + } + + output = &ListAccountsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAccounts API operation for AWS Organizations. +// +// Lists all the accounts in the organization. To request only the accounts +// in a root or OU, use the ListAccountsForParent operation instead. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation ListAccounts for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListAccounts +func (c *Organizations) ListAccounts(input *ListAccountsInput) (*ListAccountsOutput, error) { + req, out := c.ListAccountsRequest(input) + err := req.Send() + return out, err +} + +const opListAccountsForParent = "ListAccountsForParent" + +// ListAccountsForParentRequest generates a "aws/request.Request" representing the +// client's request for the ListAccountsForParent operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListAccountsForParent for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListAccountsForParent method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListAccountsForParentRequest method. +// req, resp := client.ListAccountsForParentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListAccountsForParent +func (c *Organizations) ListAccountsForParentRequest(input *ListAccountsForParentInput) (req *request.Request, output *ListAccountsForParentOutput) { + op := &request.Operation{ + Name: opListAccountsForParent, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListAccountsForParentInput{} + } + + output = &ListAccountsForParentOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAccountsForParent API operation for AWS Organizations. +// +// Lists the accounts in an organization that are contained by the specified +// target root or organizational unit (OU). If you specify the root, you get +// a list of all the accounts that are not in any OU. If you specify an OU, +// you get a list of all the accounts in only that OU, and not in any child +// OUs. To get a list of all accounts in the organization, use the ListAccounts +// operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation ListAccountsForParent for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeParentNotFoundException "ParentNotFoundException" +// We can't find a root or organizational unit (OU) with the ParentId that you +// specified. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListAccountsForParent +func (c *Organizations) ListAccountsForParent(input *ListAccountsForParentInput) (*ListAccountsForParentOutput, error) { + req, out := c.ListAccountsForParentRequest(input) + err := req.Send() + return out, err +} + +const opListChildren = "ListChildren" + +// ListChildrenRequest generates a "aws/request.Request" representing the +// client's request for the ListChildren operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListChildren for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListChildren method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListChildrenRequest method. +// req, resp := client.ListChildrenRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListChildren +func (c *Organizations) ListChildrenRequest(input *ListChildrenInput) (req *request.Request, output *ListChildrenOutput) { + op := &request.Operation{ + Name: opListChildren, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListChildrenInput{} + } + + output = &ListChildrenOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListChildren API operation for AWS Organizations. +// +// Lists all of the OUs or accounts that are contained in the specified parent +// OU or root. This operation, along with ListParents enables you to traverse +// the tree structure that makes up this root. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation ListChildren for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeParentNotFoundException "ParentNotFoundException" +// We can't find a root or organizational unit (OU) with the ParentId that you +// specified. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListChildren +func (c *Organizations) ListChildren(input *ListChildrenInput) (*ListChildrenOutput, error) { + req, out := c.ListChildrenRequest(input) + err := req.Send() + return out, err +} + +const opListCreateAccountStatus = "ListCreateAccountStatus" + +// ListCreateAccountStatusRequest generates a "aws/request.Request" representing the +// client's request for the ListCreateAccountStatus operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListCreateAccountStatus for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListCreateAccountStatus method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListCreateAccountStatusRequest method. +// req, resp := client.ListCreateAccountStatusRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListCreateAccountStatus +func (c *Organizations) ListCreateAccountStatusRequest(input *ListCreateAccountStatusInput) (req *request.Request, output *ListCreateAccountStatusOutput) { + op := &request.Operation{ + Name: opListCreateAccountStatus, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListCreateAccountStatusInput{} + } + + output = &ListCreateAccountStatusOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListCreateAccountStatus API operation for AWS Organizations. +// +// Lists the account creation requests that match the specified status that +// is currently being tracked for the organization. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation ListCreateAccountStatus for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListCreateAccountStatus +func (c *Organizations) ListCreateAccountStatus(input *ListCreateAccountStatusInput) (*ListCreateAccountStatusOutput, error) { + req, out := c.ListCreateAccountStatusRequest(input) + err := req.Send() + return out, err +} + +const opListHandshakesForAccount = "ListHandshakesForAccount" + +// ListHandshakesForAccountRequest generates a "aws/request.Request" representing the +// client's request for the ListHandshakesForAccount operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListHandshakesForAccount for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListHandshakesForAccount method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListHandshakesForAccountRequest method. +// req, resp := client.ListHandshakesForAccountRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListHandshakesForAccount +func (c *Organizations) ListHandshakesForAccountRequest(input *ListHandshakesForAccountInput) (req *request.Request, output *ListHandshakesForAccountOutput) { + op := &request.Operation{ + Name: opListHandshakesForAccount, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListHandshakesForAccountInput{} + } + + output = &ListHandshakesForAccountOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListHandshakesForAccount API operation for AWS Organizations. +// +// Lists the current handshakes that are associated with the account of the +// requesting user. +// +// This operation can be called from any account in the organization. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation ListHandshakesForAccount for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListHandshakesForAccount +func (c *Organizations) ListHandshakesForAccount(input *ListHandshakesForAccountInput) (*ListHandshakesForAccountOutput, error) { + req, out := c.ListHandshakesForAccountRequest(input) + err := req.Send() + return out, err +} + +const opListHandshakesForOrganization = "ListHandshakesForOrganization" + +// ListHandshakesForOrganizationRequest generates a "aws/request.Request" representing the +// client's request for the ListHandshakesForOrganization operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListHandshakesForOrganization for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListHandshakesForOrganization method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListHandshakesForOrganizationRequest method. +// req, resp := client.ListHandshakesForOrganizationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListHandshakesForOrganization +func (c *Organizations) ListHandshakesForOrganizationRequest(input *ListHandshakesForOrganizationInput) (req *request.Request, output *ListHandshakesForOrganizationOutput) { + op := &request.Operation{ + Name: opListHandshakesForOrganization, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListHandshakesForOrganizationInput{} + } + + output = &ListHandshakesForOrganizationOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListHandshakesForOrganization API operation for AWS Organizations. +// +// Lists the handshakes that are associated with the organization that the requesting +// user is part of. The ListHandshakesForOrganization operation returns a list +// of handshake structures. Each structure contains details and status about +// a handshake. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation ListHandshakesForOrganization for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListHandshakesForOrganization +func (c *Organizations) ListHandshakesForOrganization(input *ListHandshakesForOrganizationInput) (*ListHandshakesForOrganizationOutput, error) { + req, out := c.ListHandshakesForOrganizationRequest(input) + err := req.Send() + return out, err +} + +const opListOrganizationalUnitsForParent = "ListOrganizationalUnitsForParent" + +// ListOrganizationalUnitsForParentRequest generates a "aws/request.Request" representing the +// client's request for the ListOrganizationalUnitsForParent operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListOrganizationalUnitsForParent for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListOrganizationalUnitsForParent method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListOrganizationalUnitsForParentRequest method. +// req, resp := client.ListOrganizationalUnitsForParentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListOrganizationalUnitsForParent +func (c *Organizations) ListOrganizationalUnitsForParentRequest(input *ListOrganizationalUnitsForParentInput) (req *request.Request, output *ListOrganizationalUnitsForParentOutput) { + op := &request.Operation{ + Name: opListOrganizationalUnitsForParent, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListOrganizationalUnitsForParentInput{} + } + + output = &ListOrganizationalUnitsForParentOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListOrganizationalUnitsForParent API operation for AWS Organizations. +// +// Lists the organizational units (OUs) in a parent organizational unit or root. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation ListOrganizationalUnitsForParent for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeParentNotFoundException "ParentNotFoundException" +// We can't find a root or organizational unit (OU) with the ParentId that you +// specified. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListOrganizationalUnitsForParent +func (c *Organizations) ListOrganizationalUnitsForParent(input *ListOrganizationalUnitsForParentInput) (*ListOrganizationalUnitsForParentOutput, error) { + req, out := c.ListOrganizationalUnitsForParentRequest(input) + err := req.Send() + return out, err +} + +const opListParents = "ListParents" + +// ListParentsRequest generates a "aws/request.Request" representing the +// client's request for the ListParents operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListParents for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListParents method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListParentsRequest method. +// req, resp := client.ListParentsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListParents +func (c *Organizations) ListParentsRequest(input *ListParentsInput) (req *request.Request, output *ListParentsOutput) { + op := &request.Operation{ + Name: opListParents, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListParentsInput{} + } + + output = &ListParentsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListParents API operation for AWS Organizations. +// +// Lists the root or organizational units (OUs) that serve as the immediate +// parent of the specified child OU or account. This operation, along with ListChildren +// enables you to traverse the tree structure that makes up this root. +// +// This operation can be called only from the organization's master account. +// +// In the current release, a child can have only a single parent. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation ListParents for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeChildNotFoundException "ChildNotFoundException" +// We can't find an organizational unit (OU) or AWS account with the ChildId +// that you specified. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListParents +func (c *Organizations) ListParents(input *ListParentsInput) (*ListParentsOutput, error) { + req, out := c.ListParentsRequest(input) + err := req.Send() + return out, err +} + +const opListPolicies = "ListPolicies" + +// ListPoliciesRequest generates a "aws/request.Request" representing the +// client's request for the ListPolicies operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListPolicies for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListPolicies method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListPoliciesRequest method. +// req, resp := client.ListPoliciesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListPolicies +func (c *Organizations) ListPoliciesRequest(input *ListPoliciesInput) (req *request.Request, output *ListPoliciesOutput) { + op := &request.Operation{ + Name: opListPolicies, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListPoliciesInput{} + } + + output = &ListPoliciesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListPolicies API operation for AWS Organizations. +// +// Retrieves the list of all policies in an organization of a specified type. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation ListPolicies for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListPolicies +func (c *Organizations) ListPolicies(input *ListPoliciesInput) (*ListPoliciesOutput, error) { + req, out := c.ListPoliciesRequest(input) + err := req.Send() + return out, err +} + +const opListPoliciesForTarget = "ListPoliciesForTarget" + +// ListPoliciesForTargetRequest generates a "aws/request.Request" representing the +// client's request for the ListPoliciesForTarget operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListPoliciesForTarget for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListPoliciesForTarget method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListPoliciesForTargetRequest method. +// req, resp := client.ListPoliciesForTargetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListPoliciesForTarget +func (c *Organizations) ListPoliciesForTargetRequest(input *ListPoliciesForTargetInput) (req *request.Request, output *ListPoliciesForTargetOutput) { + op := &request.Operation{ + Name: opListPoliciesForTarget, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListPoliciesForTargetInput{} + } + + output = &ListPoliciesForTargetOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListPoliciesForTarget API operation for AWS Organizations. +// +// Lists the policies that are directly attached to the specified target root, +// organizational unit (OU), or account. You must specify the policy type that +// you want included in the returned list. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation ListPoliciesForTarget for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTargetNotFoundException "TargetNotFoundException" +// We can't find a root, OU, or account with the TargetId that you specified. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListPoliciesForTarget +func (c *Organizations) ListPoliciesForTarget(input *ListPoliciesForTargetInput) (*ListPoliciesForTargetOutput, error) { + req, out := c.ListPoliciesForTargetRequest(input) + err := req.Send() + return out, err +} + +const opListRoots = "ListRoots" + +// ListRootsRequest generates a "aws/request.Request" representing the +// client's request for the ListRoots operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListRoots for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListRoots method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListRootsRequest method. +// req, resp := client.ListRootsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListRoots +func (c *Organizations) ListRootsRequest(input *ListRootsInput) (req *request.Request, output *ListRootsOutput) { + op := &request.Operation{ + Name: opListRoots, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListRootsInput{} + } + + output = &ListRootsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListRoots API operation for AWS Organizations. +// +// Lists the roots that are defined in the current organization. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation ListRoots for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListRoots +func (c *Organizations) ListRoots(input *ListRootsInput) (*ListRootsOutput, error) { + req, out := c.ListRootsRequest(input) + err := req.Send() + return out, err +} + +const opListTargetsForPolicy = "ListTargetsForPolicy" + +// ListTargetsForPolicyRequest generates a "aws/request.Request" representing the +// client's request for the ListTargetsForPolicy operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListTargetsForPolicy for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListTargetsForPolicy method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListTargetsForPolicyRequest method. +// req, resp := client.ListTargetsForPolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListTargetsForPolicy +func (c *Organizations) ListTargetsForPolicyRequest(input *ListTargetsForPolicyInput) (req *request.Request, output *ListTargetsForPolicyOutput) { + op := &request.Operation{ + Name: opListTargetsForPolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListTargetsForPolicyInput{} + } + + output = &ListTargetsForPolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTargetsForPolicy API operation for AWS Organizations. +// +// Lists all the roots, OUs, and accounts to which the specified policy is attached. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation ListTargetsForPolicy for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodePolicyNotFoundException "PolicyNotFoundException" +// We can't find a policy with the PolicyId that you specified. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListTargetsForPolicy +func (c *Organizations) ListTargetsForPolicy(input *ListTargetsForPolicyInput) (*ListTargetsForPolicyOutput, error) { + req, out := c.ListTargetsForPolicyRequest(input) + err := req.Send() + return out, err +} + +const opMoveAccount = "MoveAccount" + +// MoveAccountRequest generates a "aws/request.Request" representing the +// client's request for the MoveAccount operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See MoveAccount for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the MoveAccount method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the MoveAccountRequest method. +// req, resp := client.MoveAccountRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/MoveAccount +func (c *Organizations) MoveAccountRequest(input *MoveAccountInput) (req *request.Request, output *MoveAccountOutput) { + op := &request.Operation{ + Name: opMoveAccount, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &MoveAccountInput{} + } + + output = &MoveAccountOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// MoveAccount API operation for AWS Organizations. +// +// Moves an account from its current source parent root or OU to the specified +// destination parent root or OU. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation MoveAccount for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeSourceParentNotFoundException "SourceParentNotFoundException" +// We can't find a source root or OU with the ParentId that you specified. +// +// * ErrCodeDestinationParentNotFoundException "DestinationParentNotFoundException" +// We can't find the destination container (a root or OU) with the ParentId +// that you specified. +// +// * ErrCodeDuplicateAccountException "DuplicateAccountException" +// That account is already present in the specified destination. +// +// * ErrCodeAccountNotFoundException "AccountNotFoundException" +// We can't find an AWS account with the AccountId that you specified, or the +// account whose credentials you used to make this request is not a member of +// an organization. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The target of the operation is currently being modified by a different request. +// Try again later. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/MoveAccount +func (c *Organizations) MoveAccount(input *MoveAccountInput) (*MoveAccountOutput, error) { + req, out := c.MoveAccountRequest(input) + err := req.Send() + return out, err +} + +const opRemoveAccountFromOrganization = "RemoveAccountFromOrganization" + +// RemoveAccountFromOrganizationRequest generates a "aws/request.Request" representing the +// client's request for the RemoveAccountFromOrganization operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See RemoveAccountFromOrganization for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the RemoveAccountFromOrganization method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the RemoveAccountFromOrganizationRequest method. +// req, resp := client.RemoveAccountFromOrganizationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/RemoveAccountFromOrganization +func (c *Organizations) RemoveAccountFromOrganizationRequest(input *RemoveAccountFromOrganizationInput) (req *request.Request, output *RemoveAccountFromOrganizationOutput) { + op := &request.Operation{ + Name: opRemoveAccountFromOrganization, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RemoveAccountFromOrganizationInput{} + } + + output = &RemoveAccountFromOrganizationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// RemoveAccountFromOrganization API operation for AWS Organizations. +// +// Removes the specified account from the organization. +// +// The removed account becomes a stand-alone account that is not a member of +// any organization. It is no longer subject to any policies and is responsible +// for its own bill payments. The organization's master account is no longer +// charged for any expenses accrued by the member account after it is removed +// from the organization. +// +// This operation can be called only from the organization's master account. +// Member accounts can remove themselves with LeaveOrganization instead. +// +// You can remove only existing accounts that were invited to join the organization. +// You cannot remove accounts that were created by AWS Organizations. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation RemoveAccountFromOrganization for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAccountNotFoundException "AccountNotFoundException" +// We can't find an AWS account with the AccountId that you specified, or the +// account whose credentials you used to make this request is not a member of +// an organization. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The target of the operation is currently being modified by a different request. +// Try again later. +// +// * ErrCodeConstraintViolationException "ConstraintViolationException" +// Performing this operation violates a minimum or maximum value limit. For +// example, attempting to removing the last SCP from an OU or root, inviting +// or creating too many accounts to the organization, or attaching too many +// policies to an account, OU, or root. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeMasterCannotLeaveOrganizationException "MasterCannotLeaveOrganizationException" +// You can't remove a master account from an organization. If you want the master +// account to become a member account in another organization, you must first +// delete the current organization of the master account. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/RemoveAccountFromOrganization +func (c *Organizations) RemoveAccountFromOrganization(input *RemoveAccountFromOrganizationInput) (*RemoveAccountFromOrganizationOutput, error) { + req, out := c.RemoveAccountFromOrganizationRequest(input) + err := req.Send() + return out, err +} + +const opUpdateOrganizationalUnit = "UpdateOrganizationalUnit" + +// UpdateOrganizationalUnitRequest generates a "aws/request.Request" representing the +// client's request for the UpdateOrganizationalUnit operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateOrganizationalUnit for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateOrganizationalUnit method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateOrganizationalUnitRequest method. +// req, resp := client.UpdateOrganizationalUnitRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/UpdateOrganizationalUnit +func (c *Organizations) UpdateOrganizationalUnitRequest(input *UpdateOrganizationalUnitInput) (req *request.Request, output *UpdateOrganizationalUnitOutput) { + op := &request.Operation{ + Name: opUpdateOrganizationalUnit, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateOrganizationalUnitInput{} + } + + output = &UpdateOrganizationalUnitOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateOrganizationalUnit API operation for AWS Organizations. +// +// Renames the specified organizational unit (OU). The ID and ARN do not change. +// The child OUs and accounts remain in place, and any attached policies of +// the OU remain attached. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation UpdateOrganizationalUnit for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The target of the operation is currently being modified by a different request. +// Try again later. +// +// * ErrCodeDuplicateOrganizationalUnitException "DuplicateOrganizationalUnitException" +// An organizational unit (OU) with the same name already exists. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeOrganizationalUnitNotFoundException "OrganizationalUnitNotFoundException" +// We can't find an organizational unit (OU) with the OrganizationalUnitId that +// you specified. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/UpdateOrganizationalUnit +func (c *Organizations) UpdateOrganizationalUnit(input *UpdateOrganizationalUnitInput) (*UpdateOrganizationalUnitOutput, error) { + req, out := c.UpdateOrganizationalUnitRequest(input) + err := req.Send() + return out, err +} + +const opUpdatePolicy = "UpdatePolicy" + +// UpdatePolicyRequest generates a "aws/request.Request" representing the +// client's request for the UpdatePolicy operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdatePolicy for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdatePolicy method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdatePolicyRequest method. +// req, resp := client.UpdatePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/UpdatePolicy +func (c *Organizations) UpdatePolicyRequest(input *UpdatePolicyInput) (req *request.Request, output *UpdatePolicyOutput) { + op := &request.Operation{ + Name: opUpdatePolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdatePolicyInput{} + } + + output = &UpdatePolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdatePolicy API operation for AWS Organizations. +// +// Updates an existing policy with a new name, description, or content. If any +// parameter is not supplied, that value remains unchanged. Note that you cannot +// change a policy's type. +// +// This operation can be called only from the organization's master account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Organizations's +// API operation UpdatePolicy for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account is not a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The target of the operation is currently being modified by a different request. +// Try again later. +// +// * ErrCodeConstraintViolationException "ConstraintViolationException" +// Performing this operation violates a minimum or maximum value limit. For +// example, attempting to removing the last SCP from an OU or root, inviting +// or creating too many accounts to the organization, or attaching too many +// policies to an account, OU, or root. +// +// * ErrCodeDuplicatePolicyException "DuplicatePolicyException" +// A policy with the same name already exists. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// You provided invalid values for one or more of the request parameters. +// +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocumentException" +// The provided policy document does not meet the requirements of the specified +// policy type. For example, the syntax might be incorrect. For details about +// service control policy syntax, see Service Control Policy Syntax (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html) +// in the AWS Organizations User Guide. +// +// * ErrCodePolicyNotFoundException "PolicyNotFoundException" +// We can't find a policy with the PolicyId that you specified. +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/UpdatePolicy +func (c *Organizations) UpdatePolicy(input *UpdatePolicyInput) (*UpdatePolicyOutput, error) { + req, out := c.UpdatePolicyRequest(input) + err := req.Send() + return out, err +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/AcceptHandshakeRequest +type AcceptHandshakeInput struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) of the handshake that you want to accept. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for handshake ID string + // requires "h-" followed by from 8 to 32 lower-case letters or digits. + // + // HandshakeId is a required field + HandshakeId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s AcceptHandshakeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AcceptHandshakeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AcceptHandshakeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AcceptHandshakeInput"} + if s.HandshakeId == nil { + invalidParams.Add(request.NewErrParamRequired("HandshakeId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHandshakeId sets the HandshakeId field's value. +func (s *AcceptHandshakeInput) SetHandshakeId(v string) *AcceptHandshakeInput { + s.HandshakeId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/AcceptHandshakeResponse +type AcceptHandshakeOutput struct { + _ struct{} `type:"structure"` + + // A structure that contains details about the accepted handshake. + Handshake *Handshake `type:"structure"` +} + +// String returns the string representation +func (s AcceptHandshakeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AcceptHandshakeOutput) GoString() string { + return s.String() +} + +// SetHandshake sets the Handshake field's value. +func (s *AcceptHandshakeOutput) SetHandshake(v *Handshake) *AcceptHandshakeOutput { + s.Handshake = v + return s +} + +// Contains information about an AWS account that is a member of an organization. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/Account +type Account struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the account. + // + // For more information about ARNs in Organizations, see ARN Formats Supported + // by Organizations (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_permissions.html#orgs-permissions-arns) + // in the AWS Organizations User Guide. + Arn *string `type:"string"` + + // The unique identifier (ID) of the account. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for an account ID string + // requires exactly 12 digits. + Id *string `type:"string"` + + // The method by which the account joined the organization. + JoinedMethod *string `type:"string" enum:"AccountJoinedMethod"` + + // The date the account became a part of the organization. + JoinedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The friendly name of the account. + // + // The regex pattern (http://wikipedia.org/wiki/regex) that is used to validate + // this parameter is a string of any of the characters in the ASCII character + // range. + Name *string `min:"1" type:"string"` + + // The status of the account in the organization. + Status *string `type:"string" enum:"AccountStatus"` +} + +// String returns the string representation +func (s Account) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Account) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *Account) SetArn(v string) *Account { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *Account) SetId(v string) *Account { + s.Id = &v + return s +} + +// SetJoinedMethod sets the JoinedMethod field's value. +func (s *Account) SetJoinedMethod(v string) *Account { + s.JoinedMethod = &v + return s +} + +// SetJoinedTimestamp sets the JoinedTimestamp field's value. +func (s *Account) SetJoinedTimestamp(v time.Time) *Account { + s.JoinedTimestamp = &v + return s +} + +// SetName sets the Name field's value. +func (s *Account) SetName(v string) *Account { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Account) SetStatus(v string) *Account { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/AttachPolicyRequest +type AttachPolicyInput struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) of the policy that you want to attach to the target. + // You can get the ID for the policy by calling the ListPolicies operation. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a policy ID string + // requires "p-" followed by from 8 to 128 lower-case letters or digits. + // + // PolicyId is a required field + PolicyId *string `type:"string" required:"true"` + + // The unique identifier (ID) of the root, OU, or account that you want to attach + // the policy to. You can get the ID by calling the ListRoots, ListOrganizationalUnitsForParent, + // or ListAccounts operations. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a target ID string + // requires one of the following: + // + // * Root: a string that begins with "r-" followed by from 4 to 32 lower-case + // letters or digits. + // + // * Account: a string that consists of exactly 12 digits. + // + // * Organizational unit (OU): a string that begins with "ou-" followed by + // from 4 to 32 lower-case letters or digits (the ID of the root that the + // OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case + // letters or digits. + // + // TargetId is a required field + TargetId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s AttachPolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachPolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AttachPolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AttachPolicyInput"} + if s.PolicyId == nil { + invalidParams.Add(request.NewErrParamRequired("PolicyId")) + } + if s.TargetId == nil { + invalidParams.Add(request.NewErrParamRequired("TargetId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPolicyId sets the PolicyId field's value. +func (s *AttachPolicyInput) SetPolicyId(v string) *AttachPolicyInput { + s.PolicyId = &v + return s +} + +// SetTargetId sets the TargetId field's value. +func (s *AttachPolicyInput) SetTargetId(v string) *AttachPolicyInput { + s.TargetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/AttachPolicyOutput +type AttachPolicyOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AttachPolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachPolicyOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CancelHandshakeRequest +type CancelHandshakeInput struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) of the handshake that you want to cancel. You + // can get the ID from the ListHandshakesForOrganization operation. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for handshake ID string + // requires "h-" followed by from 8 to 32 lower-case letters or digits. + // + // HandshakeId is a required field + HandshakeId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CancelHandshakeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelHandshakeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelHandshakeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelHandshakeInput"} + if s.HandshakeId == nil { + invalidParams.Add(request.NewErrParamRequired("HandshakeId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHandshakeId sets the HandshakeId field's value. +func (s *CancelHandshakeInput) SetHandshakeId(v string) *CancelHandshakeInput { + s.HandshakeId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CancelHandshakeResponse +type CancelHandshakeOutput struct { + _ struct{} `type:"structure"` + + // A structure that contains details about the handshake that you canceled. + Handshake *Handshake `type:"structure"` +} + +// String returns the string representation +func (s CancelHandshakeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelHandshakeOutput) GoString() string { + return s.String() +} + +// SetHandshake sets the Handshake field's value. +func (s *CancelHandshakeOutput) SetHandshake(v *Handshake) *CancelHandshakeOutput { + s.Handshake = v + return s +} + +// Contains a list of child entities, either OUs or accounts. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/Child +type Child struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) of this child entity. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a child ID string + // requires one of the following: + // + // * Account: a string that consists of exactly 12 digits. + // + // * Organizational unit (OU): a string that begins with "ou-" followed by + // from 4 to 32 lower-case letters or digits (the ID of the root that contains + // the OU) followed by a second "-" dash and from 8 to 32 additional lower-case + // letters or digits. + Id *string `type:"string"` + + // The type of this child entity. + Type *string `type:"string" enum:"ChildType"` +} + +// String returns the string representation +func (s Child) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Child) GoString() string { + return s.String() +} + +// SetId sets the Id field's value. +func (s *Child) SetId(v string) *Child { + s.Id = &v + return s +} + +// SetType sets the Type field's value. +func (s *Child) SetType(v string) *Child { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateAccountRequest +type CreateAccountInput struct { + _ struct{} `type:"structure"` + + // The friendly name of the member account. + // + // AccountName is a required field + AccountName *string `min:"1" type:"string" required:"true"` + + // The email address of the owner to assign to the new member account. This + // email address must not already be associated with another AWS account. + // + // Email is a required field + Email *string `min:"6" type:"string" required:"true"` + + // If set to ALLOW, the new account enables IAM users to access account billing + // information if they have the required permissions. If set to DENY, then only + // the root user of the new account can access account billing information. + // For more information, see Activating Access to the Billing and Cost Management + // Console (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/grantaccess.html#ControllingAccessWebsite-Activate) + // in the AWS Billing and Cost Management User Guide. + IamUserAccessToBilling *string `type:"string" enum:"IAMUserAccessToBilling"` + + // (Optional) + // + // The name of an IAM role that Organizations automatically preconfigures in + // the new member account. This role trusts the master account, allowing users + // in the master account to assume the role, as permitted by the master account + // administrator. The role has administrator permissions in the new member account. + // + // If you do not specify this parameter, the role name defaults to OrganizationAccountAccessRole. + // + // For more information about how to use this role to access the member account, + // see Accessing and Administering the Member Accounts in Your Organization + // (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html#orgs_manage_accounts_create-cross-account-role) + // in the AWS Organizations User Guide, and steps 2 and 3 in Tutorial: Delegate + // Access Across AWS Accounts Using IAM Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html) + // in the IAM User Guide. + // + // The regex pattern (http://wikipedia.org/wiki/regex) that is used to validate + // this parameter is a string of characters that can consist of uppercase letters, + // lowercase letters, digits with no spaces, and any of the following characters: + // =,.@- + RoleName *string `type:"string"` +} + +// String returns the string representation +func (s CreateAccountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAccountInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAccountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAccountInput"} + if s.AccountName == nil { + invalidParams.Add(request.NewErrParamRequired("AccountName")) + } + if s.AccountName != nil && len(*s.AccountName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountName", 1)) + } + if s.Email == nil { + invalidParams.Add(request.NewErrParamRequired("Email")) + } + if s.Email != nil && len(*s.Email) < 6 { + invalidParams.Add(request.NewErrParamMinLen("Email", 6)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountName sets the AccountName field's value. +func (s *CreateAccountInput) SetAccountName(v string) *CreateAccountInput { + s.AccountName = &v + return s +} + +// SetEmail sets the Email field's value. +func (s *CreateAccountInput) SetEmail(v string) *CreateAccountInput { + s.Email = &v + return s +} + +// SetIamUserAccessToBilling sets the IamUserAccessToBilling field's value. +func (s *CreateAccountInput) SetIamUserAccessToBilling(v string) *CreateAccountInput { + s.IamUserAccessToBilling = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *CreateAccountInput) SetRoleName(v string) *CreateAccountInput { + s.RoleName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateAccountResponse +type CreateAccountOutput struct { + _ struct{} `type:"structure"` + + // A structure that contains details about the request to create an account. + // This response structure might not be fully populated when you first receive + // it because account creation is an asynchronous process. You can pass the + // returned CreateAccountStatus ID as a parameter to DescribeCreateAccountStatus + // to get status about the progress of the request at later times. + CreateAccountStatus *CreateAccountStatus `type:"structure"` +} + +// String returns the string representation +func (s CreateAccountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAccountOutput) GoString() string { + return s.String() +} + +// SetCreateAccountStatus sets the CreateAccountStatus field's value. +func (s *CreateAccountOutput) SetCreateAccountStatus(v *CreateAccountStatus) *CreateAccountOutput { + s.CreateAccountStatus = v + return s +} + +// Contains the status about a CreateAccount request to create an AWS account +// in an organization. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateAccountStatus +type CreateAccountStatus struct { + _ struct{} `type:"structure"` + + // If the account was created successfully, the unique identifier (ID) of the + // new account. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for an account ID string + // requires exactly 12 digits. + AccountId *string `type:"string"` + + // The account name given to the account when it was created. + AccountName *string `min:"1" type:"string"` + + // The date and time that the account was created and the request completed. + CompletedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` + + // If the request failed, a description of the reason for the failure. + FailureReason *string `type:"string" enum:"CreateAccountFailureReason"` + + // The unique identifier (ID) that references this request. You get this value + // from the response of the initial CreateAccount request to create the account. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for an create account + // request ID string requires "car-" followed by from 8 to 32 lower-case letters + // or digits. + Id *string `type:"string"` + + // The date and time that the request was made for the account creation. + RequestedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The status of the request. + State *string `type:"string" enum:"CreateAccountState"` +} + +// String returns the string representation +func (s CreateAccountStatus) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAccountStatus) GoString() string { + return s.String() +} + +// SetAccountId sets the AccountId field's value. +func (s *CreateAccountStatus) SetAccountId(v string) *CreateAccountStatus { + s.AccountId = &v + return s +} + +// SetAccountName sets the AccountName field's value. +func (s *CreateAccountStatus) SetAccountName(v string) *CreateAccountStatus { + s.AccountName = &v + return s +} + +// SetCompletedTimestamp sets the CompletedTimestamp field's value. +func (s *CreateAccountStatus) SetCompletedTimestamp(v time.Time) *CreateAccountStatus { + s.CompletedTimestamp = &v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *CreateAccountStatus) SetFailureReason(v string) *CreateAccountStatus { + s.FailureReason = &v + return s +} + +// SetId sets the Id field's value. +func (s *CreateAccountStatus) SetId(v string) *CreateAccountStatus { + s.Id = &v + return s +} + +// SetRequestedTimestamp sets the RequestedTimestamp field's value. +func (s *CreateAccountStatus) SetRequestedTimestamp(v time.Time) *CreateAccountStatus { + s.RequestedTimestamp = &v + return s +} + +// SetState sets the State field's value. +func (s *CreateAccountStatus) SetState(v string) *CreateAccountStatus { + s.State = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateOrganizationRequest +type CreateOrganizationInput struct { + _ struct{} `type:"structure"` + + // Specifies the feature set supported by the new organization. Each feature + // set supports different levels of functionality. + // + // * CONSOLIDATED_BILLING: All member accounts have their bills consolidated + // to and paid by the master account. For more information, see Consolidated + // Billing (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#feature-set-cb-only) + // in the AWS Organizations User Guide. + // + // * ALL: In addition to all the features supported by the consolidated billing + // feature set, the master account can also apply any type of policy to any + // member account in the organization. For more information, see All features + // (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#feature-set-all) + // in the AWS Organizations User Guide. + FeatureSet *string `type:"string" enum:"OrganizationFeatureSet"` +} + +// String returns the string representation +func (s CreateOrganizationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateOrganizationInput) GoString() string { + return s.String() +} + +// SetFeatureSet sets the FeatureSet field's value. +func (s *CreateOrganizationInput) SetFeatureSet(v string) *CreateOrganizationInput { + s.FeatureSet = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateOrganizationResponse +type CreateOrganizationOutput struct { + _ struct{} `type:"structure"` + + // A structure that contains details about the newly created organization. + Organization *Organization `type:"structure"` +} + +// String returns the string representation +func (s CreateOrganizationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateOrganizationOutput) GoString() string { + return s.String() +} + +// SetOrganization sets the Organization field's value. +func (s *CreateOrganizationOutput) SetOrganization(v *Organization) *CreateOrganizationOutput { + s.Organization = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateOrganizationalUnitRequest +type CreateOrganizationalUnitInput struct { + _ struct{} `type:"structure"` + + // The friendly name to assign to the new OU. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The unique identifier (ID) of the parent root or OU in which you want to + // create the new OU. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a parent ID string + // requires one of the following: + // + // * Root: a string that begins with "r-" followed by from 4 to 32 lower-case + // letters or digits. + // + // * Organizational unit (OU): a string that begins with "ou-" followed by + // from 4 to 32 lower-case letters or digits (the ID of the root that the + // OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case + // letters or digits. + // + // ParentId is a required field + ParentId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateOrganizationalUnitInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateOrganizationalUnitInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateOrganizationalUnitInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateOrganizationalUnitInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.ParentId == nil { + invalidParams.Add(request.NewErrParamRequired("ParentId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *CreateOrganizationalUnitInput) SetName(v string) *CreateOrganizationalUnitInput { + s.Name = &v + return s +} + +// SetParentId sets the ParentId field's value. +func (s *CreateOrganizationalUnitInput) SetParentId(v string) *CreateOrganizationalUnitInput { + s.ParentId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateOrganizationalUnitResponse +type CreateOrganizationalUnitOutput struct { + _ struct{} `type:"structure"` + + // A structure that contains details about the newly created OU. + OrganizationalUnit *OrganizationalUnit `type:"structure"` +} + +// String returns the string representation +func (s CreateOrganizationalUnitOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateOrganizationalUnitOutput) GoString() string { + return s.String() +} + +// SetOrganizationalUnit sets the OrganizationalUnit field's value. +func (s *CreateOrganizationalUnitOutput) SetOrganizationalUnit(v *OrganizationalUnit) *CreateOrganizationalUnitOutput { + s.OrganizationalUnit = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreatePolicyRequest +type CreatePolicyInput struct { + _ struct{} `type:"structure"` + + // The policy content to add to the new policy. For example, if you create a + // service control policy (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html) + // (SCP), this string must be JSON text that specifies the permissions that + // admins in attached accounts can delegate to their users, groups, and roles. + // For more information about the SCP syntax, see Service Control Policy Syntax + // (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html) + // in the AWS Organizations User Guide. + // + // Content is a required field + Content *string `min:"1" type:"string" required:"true"` + + // An optional description to assign to the policy. + // + // Description is a required field + Description *string `type:"string" required:"true"` + + // The friendly name to assign to the policy. + // + // The regex pattern (http://wikipedia.org/wiki/regex) that is used to validate + // this parameter is a string of any of the characters in the ASCII character + // range. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The type of policy to create. + // + // In the current release, the only type of policy that you can create is a + // service control policy (SCP). + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"PolicyType"` +} + +// String returns the string representation +func (s CreatePolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreatePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreatePolicyInput"} + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) + } + if s.Content != nil && len(*s.Content) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Content", 1)) + } + if s.Description == nil { + invalidParams.Add(request.NewErrParamRequired("Description")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContent sets the Content field's value. +func (s *CreatePolicyInput) SetContent(v string) *CreatePolicyInput { + s.Content = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreatePolicyInput) SetDescription(v string) *CreatePolicyInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreatePolicyInput) SetName(v string) *CreatePolicyInput { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *CreatePolicyInput) SetType(v string) *CreatePolicyInput { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreatePolicyResponse +type CreatePolicyOutput struct { + _ struct{} `type:"structure"` + + // A structure that contains details about the newly created policy. + Policy *Policy `type:"structure"` +} + +// String returns the string representation +func (s CreatePolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePolicyOutput) GoString() string { + return s.String() +} + +// SetPolicy sets the Policy field's value. +func (s *CreatePolicyOutput) SetPolicy(v *Policy) *CreatePolicyOutput { + s.Policy = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeclineHandshakeRequest +type DeclineHandshakeInput struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) of the handshake that you want to decline. You + // can get the ID from the ListHandshakesForAccount operation. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for handshake ID string + // requires "h-" followed by from 8 to 32 lower-case letters or digits. + // + // HandshakeId is a required field + HandshakeId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeclineHandshakeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeclineHandshakeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeclineHandshakeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeclineHandshakeInput"} + if s.HandshakeId == nil { + invalidParams.Add(request.NewErrParamRequired("HandshakeId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHandshakeId sets the HandshakeId field's value. +func (s *DeclineHandshakeInput) SetHandshakeId(v string) *DeclineHandshakeInput { + s.HandshakeId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeclineHandshakeResponse +type DeclineHandshakeOutput struct { + _ struct{} `type:"structure"` + + // A structure that contains details about the declined handshake. The state + // is updated to show the value DECLINED. + Handshake *Handshake `type:"structure"` +} + +// String returns the string representation +func (s DeclineHandshakeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeclineHandshakeOutput) GoString() string { + return s.String() +} + +// SetHandshake sets the Handshake field's value. +func (s *DeclineHandshakeOutput) SetHandshake(v *Handshake) *DeclineHandshakeOutput { + s.Handshake = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeleteOrganizationInput +type DeleteOrganizationInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteOrganizationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteOrganizationInput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeleteOrganizationOutput +type DeleteOrganizationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteOrganizationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteOrganizationOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeleteOrganizationalUnitRequest +type DeleteOrganizationalUnitInput struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) of the organizational unit that you want to delete. + // You can get the ID from the ListOrganizationalUnitsForParent operation. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for an organizational + // unit ID string requires "ou-" followed by from 4 to 32 lower-case letters + // or digits (the ID of the root that contains the OU) followed by a second + // "-" dash and from 8 to 32 additional lower-case letters or digits. + // + // OrganizationalUnitId is a required field + OrganizationalUnitId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteOrganizationalUnitInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteOrganizationalUnitInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteOrganizationalUnitInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteOrganizationalUnitInput"} + if s.OrganizationalUnitId == nil { + invalidParams.Add(request.NewErrParamRequired("OrganizationalUnitId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetOrganizationalUnitId sets the OrganizationalUnitId field's value. +func (s *DeleteOrganizationalUnitInput) SetOrganizationalUnitId(v string) *DeleteOrganizationalUnitInput { + s.OrganizationalUnitId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeleteOrganizationalUnitOutput +type DeleteOrganizationalUnitOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteOrganizationalUnitOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteOrganizationalUnitOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeletePolicyRequest +type DeletePolicyInput struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) of the policy that you want to delete. You can + // get the ID from the ListPolicies or ListPoliciesForTarget operations. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a policy ID string + // requires "p-" followed by from 8 to 128 lower-case letters or digits. + // + // PolicyId is a required field + PolicyId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeletePolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeletePolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeletePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeletePolicyInput"} + if s.PolicyId == nil { + invalidParams.Add(request.NewErrParamRequired("PolicyId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPolicyId sets the PolicyId field's value. +func (s *DeletePolicyInput) SetPolicyId(v string) *DeletePolicyInput { + s.PolicyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeletePolicyOutput +type DeletePolicyOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeletePolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeletePolicyOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeAccountRequest +type DescribeAccountInput struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) of the AWS account that you want information about. + // You can get the ID from the ListAccounts or ListAccountsForParent operations. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for an account ID string + // requires exactly 12 digits. + // + // AccountId is a required field + AccountId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeAccountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAccountInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeAccountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeAccountInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *DescribeAccountInput) SetAccountId(v string) *DescribeAccountInput { + s.AccountId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeAccountResponse +type DescribeAccountOutput struct { + _ struct{} `type:"structure"` + + // A structure that contains information about the requested account. + Account *Account `type:"structure"` +} + +// String returns the string representation +func (s DescribeAccountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAccountOutput) GoString() string { + return s.String() +} + +// SetAccount sets the Account field's value. +func (s *DescribeAccountOutput) SetAccount(v *Account) *DescribeAccountOutput { + s.Account = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeCreateAccountStatusRequest +type DescribeCreateAccountStatusInput struct { + _ struct{} `type:"structure"` + + // Specifies the operationId that uniquely identifies the request. You can get + // the ID from the response to an earlier CreateAccount request, or from the + // ListCreateAccountStatus operation. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for an create account + // request ID string requires "car-" followed by from 8 to 32 lower-case letters + // or digits. + // + // CreateAccountRequestId is a required field + CreateAccountRequestId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeCreateAccountStatusInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeCreateAccountStatusInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeCreateAccountStatusInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeCreateAccountStatusInput"} + if s.CreateAccountRequestId == nil { + invalidParams.Add(request.NewErrParamRequired("CreateAccountRequestId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCreateAccountRequestId sets the CreateAccountRequestId field's value. +func (s *DescribeCreateAccountStatusInput) SetCreateAccountRequestId(v string) *DescribeCreateAccountStatusInput { + s.CreateAccountRequestId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeCreateAccountStatusResponse +type DescribeCreateAccountStatusOutput struct { + _ struct{} `type:"structure"` + + // A structure that contains the current status of an account creation request. + CreateAccountStatus *CreateAccountStatus `type:"structure"` +} + +// String returns the string representation +func (s DescribeCreateAccountStatusOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeCreateAccountStatusOutput) GoString() string { + return s.String() +} + +// SetCreateAccountStatus sets the CreateAccountStatus field's value. +func (s *DescribeCreateAccountStatusOutput) SetCreateAccountStatus(v *CreateAccountStatus) *DescribeCreateAccountStatusOutput { + s.CreateAccountStatus = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeHandshakeRequest +type DescribeHandshakeInput struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) of the handshake that you want information about. + // You can get the ID from the original call to InviteAccountToOrganization, + // or from a call to ListHandshakesForAccount or ListHandshakesForOrganization. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for handshake ID string + // requires "h-" followed by from 8 to 32 lower-case letters or digits. + // + // HandshakeId is a required field + HandshakeId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeHandshakeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeHandshakeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeHandshakeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeHandshakeInput"} + if s.HandshakeId == nil { + invalidParams.Add(request.NewErrParamRequired("HandshakeId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHandshakeId sets the HandshakeId field's value. +func (s *DescribeHandshakeInput) SetHandshakeId(v string) *DescribeHandshakeInput { + s.HandshakeId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeHandshakeResponse +type DescribeHandshakeOutput struct { + _ struct{} `type:"structure"` + + // A structure that contains information about the specified handshake. + Handshake *Handshake `type:"structure"` +} + +// String returns the string representation +func (s DescribeHandshakeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeHandshakeOutput) GoString() string { + return s.String() +} + +// SetHandshake sets the Handshake field's value. +func (s *DescribeHandshakeOutput) SetHandshake(v *Handshake) *DescribeHandshakeOutput { + s.Handshake = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeOrganizationInput +type DescribeOrganizationInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DescribeOrganizationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeOrganizationInput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeOrganizationResponse +type DescribeOrganizationOutput struct { + _ struct{} `type:"structure"` + + // A structure that contains information about the organization. + Organization *Organization `type:"structure"` +} + +// String returns the string representation +func (s DescribeOrganizationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeOrganizationOutput) GoString() string { + return s.String() +} + +// SetOrganization sets the Organization field's value. +func (s *DescribeOrganizationOutput) SetOrganization(v *Organization) *DescribeOrganizationOutput { + s.Organization = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeOrganizationalUnitRequest +type DescribeOrganizationalUnitInput struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) of the organizational unit that you want details + // about. You can get the ID from the ListOrganizationalUnitsForParent operation. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for an organizational + // unit ID string requires "ou-" followed by from 4 to 32 lower-case letters + // or digits (the ID of the root that contains the OU) followed by a second + // "-" dash and from 8 to 32 additional lower-case letters or digits. + // + // OrganizationalUnitId is a required field + OrganizationalUnitId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeOrganizationalUnitInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeOrganizationalUnitInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeOrganizationalUnitInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeOrganizationalUnitInput"} + if s.OrganizationalUnitId == nil { + invalidParams.Add(request.NewErrParamRequired("OrganizationalUnitId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetOrganizationalUnitId sets the OrganizationalUnitId field's value. +func (s *DescribeOrganizationalUnitInput) SetOrganizationalUnitId(v string) *DescribeOrganizationalUnitInput { + s.OrganizationalUnitId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeOrganizationalUnitResponse +type DescribeOrganizationalUnitOutput struct { + _ struct{} `type:"structure"` + + // A structure that contains details about the specified OU. + OrganizationalUnit *OrganizationalUnit `type:"structure"` +} + +// String returns the string representation +func (s DescribeOrganizationalUnitOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeOrganizationalUnitOutput) GoString() string { + return s.String() +} + +// SetOrganizationalUnit sets the OrganizationalUnit field's value. +func (s *DescribeOrganizationalUnitOutput) SetOrganizationalUnit(v *OrganizationalUnit) *DescribeOrganizationalUnitOutput { + s.OrganizationalUnit = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribePolicyRequest +type DescribePolicyInput struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) of the policy that you want details about. You + // can get the ID from the ListPolicies or ListPoliciesForTarget operations. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a policy ID string + // requires "p-" followed by from 8 to 128 lower-case letters or digits. + // + // PolicyId is a required field + PolicyId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribePolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribePolicyInput"} + if s.PolicyId == nil { + invalidParams.Add(request.NewErrParamRequired("PolicyId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPolicyId sets the PolicyId field's value. +func (s *DescribePolicyInput) SetPolicyId(v string) *DescribePolicyInput { + s.PolicyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribePolicyResponse +type DescribePolicyOutput struct { + _ struct{} `type:"structure"` + + // A structure that contains details about the specified policy. + Policy *Policy `type:"structure"` +} + +// String returns the string representation +func (s DescribePolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePolicyOutput) GoString() string { + return s.String() +} + +// SetPolicy sets the Policy field's value. +func (s *DescribePolicyOutput) SetPolicy(v *Policy) *DescribePolicyOutput { + s.Policy = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DetachPolicyRequest +type DetachPolicyInput struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) of the policy you want to detach. You can get + // the ID from the ListPolicies or ListPoliciesForTarget operations. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a policy ID string + // requires "p-" followed by from 8 to 128 lower-case letters or digits. + // + // PolicyId is a required field + PolicyId *string `type:"string" required:"true"` + + // The unique identifier (ID) of the root, OU, or account from which you want + // to detach the policy. You can get the ID from the ListRoots, ListOrganizationalUnitsForParent, + // or ListAccounts operations. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a target ID string + // requires one of the following: + // + // * Root: a string that begins with "r-" followed by from 4 to 32 lower-case + // letters or digits. + // + // * Account: a string that consists of exactly 12 digits. + // + // * Organizational unit (OU): a string that begins with "ou-" followed by + // from 4 to 32 lower-case letters or digits (the ID of the root that the + // OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case + // letters or digits. + // + // TargetId is a required field + TargetId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DetachPolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetachPolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DetachPolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetachPolicyInput"} + if s.PolicyId == nil { + invalidParams.Add(request.NewErrParamRequired("PolicyId")) + } + if s.TargetId == nil { + invalidParams.Add(request.NewErrParamRequired("TargetId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPolicyId sets the PolicyId field's value. +func (s *DetachPolicyInput) SetPolicyId(v string) *DetachPolicyInput { + s.PolicyId = &v + return s +} + +// SetTargetId sets the TargetId field's value. +func (s *DetachPolicyInput) SetTargetId(v string) *DetachPolicyInput { + s.TargetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DetachPolicyOutput +type DetachPolicyOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DetachPolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetachPolicyOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DisablePolicyTypeRequest +type DisablePolicyTypeInput struct { + _ struct{} `type:"structure"` + + // The policy type that you want to disable in this root. + // + // PolicyType is a required field + PolicyType *string `type:"string" required:"true" enum:"PolicyType"` + + // The unique identifier (ID) of the root in which you want to disable a policy + // type. You can get the ID from the ListPolicies operation. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a root ID string + // requires "r-" followed by from 4 to 32 lower-case letters or digits. + // + // RootId is a required field + RootId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DisablePolicyTypeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisablePolicyTypeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisablePolicyTypeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisablePolicyTypeInput"} + if s.PolicyType == nil { + invalidParams.Add(request.NewErrParamRequired("PolicyType")) + } + if s.RootId == nil { + invalidParams.Add(request.NewErrParamRequired("RootId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPolicyType sets the PolicyType field's value. +func (s *DisablePolicyTypeInput) SetPolicyType(v string) *DisablePolicyTypeInput { + s.PolicyType = &v + return s +} + +// SetRootId sets the RootId field's value. +func (s *DisablePolicyTypeInput) SetRootId(v string) *DisablePolicyTypeInput { + s.RootId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DisablePolicyTypeResponse +type DisablePolicyTypeOutput struct { + _ struct{} `type:"structure"` + + // A structure that shows the root with the updated list of enabled policy types. + Root *Root `type:"structure"` +} + +// String returns the string representation +func (s DisablePolicyTypeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisablePolicyTypeOutput) GoString() string { + return s.String() +} + +// SetRoot sets the Root field's value. +func (s *DisablePolicyTypeOutput) SetRoot(v *Root) *DisablePolicyTypeOutput { + s.Root = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/EnableAllFeaturesRequest +type EnableAllFeaturesInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s EnableAllFeaturesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnableAllFeaturesInput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/EnableAllFeaturesResponse +type EnableAllFeaturesOutput struct { + _ struct{} `type:"structure"` + + // A structure that contains details about the handshake created to support + // this request to enable all features in the organization. + Handshake *Handshake `type:"structure"` +} + +// String returns the string representation +func (s EnableAllFeaturesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnableAllFeaturesOutput) GoString() string { + return s.String() +} + +// SetHandshake sets the Handshake field's value. +func (s *EnableAllFeaturesOutput) SetHandshake(v *Handshake) *EnableAllFeaturesOutput { + s.Handshake = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/EnablePolicyTypeRequest +type EnablePolicyTypeInput struct { + _ struct{} `type:"structure"` + + // The policy type that you want to enable. + // + // PolicyType is a required field + PolicyType *string `type:"string" required:"true" enum:"PolicyType"` + + // The unique identifier (ID) of the root in which you want to enable a policy + // type. You can get the ID from the ListRoots operation. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a root ID string + // requires "r-" followed by from 4 to 32 lower-case letters or digits. + // + // RootId is a required field + RootId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s EnablePolicyTypeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnablePolicyTypeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EnablePolicyTypeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EnablePolicyTypeInput"} + if s.PolicyType == nil { + invalidParams.Add(request.NewErrParamRequired("PolicyType")) + } + if s.RootId == nil { + invalidParams.Add(request.NewErrParamRequired("RootId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPolicyType sets the PolicyType field's value. +func (s *EnablePolicyTypeInput) SetPolicyType(v string) *EnablePolicyTypeInput { + s.PolicyType = &v + return s +} + +// SetRootId sets the RootId field's value. +func (s *EnablePolicyTypeInput) SetRootId(v string) *EnablePolicyTypeInput { + s.RootId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/EnablePolicyTypeResponse +type EnablePolicyTypeOutput struct { + _ struct{} `type:"structure"` + + // A structure that shows the root with the updated list of enabled policy types. + Root *Root `type:"structure"` +} + +// String returns the string representation +func (s EnablePolicyTypeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnablePolicyTypeOutput) GoString() string { + return s.String() +} + +// SetRoot sets the Root field's value. +func (s *EnablePolicyTypeOutput) SetRoot(v *Root) *EnablePolicyTypeOutput { + s.Root = v + return s +} + +// Contains information that must be exchanged to securely establish a relationship +// between two accounts (an originator and a recipient). For example, when a +// master account (the originator) invites another account (the recipient) to +// join its organization, the two accounts exchange information as a series +// of handshake requests and responses. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/Handshake +type Handshake struct { + _ struct{} `type:"structure"` + + // The type of handshake, indicating what action occurs when the recipient accepts + // the handshake. + Action *string `type:"string" enum:"ActionType"` + + // The Amazon Resource Name (ARN) of a handshake. + // + // For more information about ARNs in Organizations, see ARN Formats Supported + // by Organizations (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_permissions.html#orgs-permissions-arns) + // in the AWS Organizations User Guide. + Arn *string `type:"string"` + + // The date and time that the handshake expires. If the recipient of the handshake + // request fails to respond before the specified date and time, the handshake + // becomes inactive and is no longer valid. + ExpirationTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The unique identifier (ID) of a handshake. The originating account creates + // the ID when it initiates the handshake. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for handshake ID string + // requires "h-" followed by from 8 to 32 lower-case letters or digits. + Id *string `type:"string"` + + // Information about the two accounts that are participating in the handshake. + Parties []*HandshakeParty `type:"list"` + + // The date and time that the handshake request was made. + RequestedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` + + // Additional information that is needed to process the handshake. + Resources []*HandshakeResource `type:"list"` + + // The current state of the handshake. Use the state to trace the flow of the + // handshake through the process from its creation to its acceptance. The meaning + // of each of the valid values is as follows: + // + // * REQUESTED: This handshake was sent to multiple recipients (applicable + // to only some handshake types) and not all recipients have responded yet. + // The request stays in this state until all recipients respond. + // + // * OPEN: This handshake was sent to multiple recipients (applicable to + // only some policy types) and all recipients have responded, allowing the + // originator to complete the handshake action. + // + // * CANCELED: This handshake is no longer active because it was canceled + // by the originating account. + // + // * ACCEPTED: This handshake is complete because it has been accepted by + // the recipient. + // + // * DECLINED: This handshake is no longer active because it was declined + // by the recipient account. + // + // * EXPIRED: This handshake is no longer active because the originator did + // not receive a response of any kind from the recipient before the expiration + // time (15 days). + State *string `type:"string" enum:"HandshakeState"` +} + +// String returns the string representation +func (s Handshake) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Handshake) GoString() string { + return s.String() +} + +// SetAction sets the Action field's value. +func (s *Handshake) SetAction(v string) *Handshake { + s.Action = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *Handshake) SetArn(v string) *Handshake { + s.Arn = &v + return s +} + +// SetExpirationTimestamp sets the ExpirationTimestamp field's value. +func (s *Handshake) SetExpirationTimestamp(v time.Time) *Handshake { + s.ExpirationTimestamp = &v + return s +} + +// SetId sets the Id field's value. +func (s *Handshake) SetId(v string) *Handshake { + s.Id = &v + return s +} + +// SetParties sets the Parties field's value. +func (s *Handshake) SetParties(v []*HandshakeParty) *Handshake { + s.Parties = v + return s +} + +// SetRequestedTimestamp sets the RequestedTimestamp field's value. +func (s *Handshake) SetRequestedTimestamp(v time.Time) *Handshake { + s.RequestedTimestamp = &v + return s +} + +// SetResources sets the Resources field's value. +func (s *Handshake) SetResources(v []*HandshakeResource) *Handshake { + s.Resources = v + return s +} + +// SetState sets the State field's value. +func (s *Handshake) SetState(v string) *Handshake { + s.State = &v + return s +} + +// Specifies the criteria that are used to select the handshakes for the operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/HandshakeFilter +type HandshakeFilter struct { + _ struct{} `type:"structure"` + + // Specifies the type of handshake action. + // + // If you specify ActionType, you cannot also specify ParentHandshakeId. + ActionType *string `type:"string" enum:"ActionType"` + + // Specifies the parent handshake. Only used for handshake types that are a + // child of another type. + // + // If you specify ParentHandshakeId, you cannot also specify ActionType. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for handshake ID string + // requires "h-" followed by from 8 to 32 lower-case letters or digits. + ParentHandshakeId *string `type:"string"` +} + +// String returns the string representation +func (s HandshakeFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HandshakeFilter) GoString() string { + return s.String() +} + +// SetActionType sets the ActionType field's value. +func (s *HandshakeFilter) SetActionType(v string) *HandshakeFilter { + s.ActionType = &v + return s +} + +// SetParentHandshakeId sets the ParentHandshakeId field's value. +func (s *HandshakeFilter) SetParentHandshakeId(v string) *HandshakeFilter { + s.ParentHandshakeId = &v + return s +} + +// Identifies a participant in a handshake. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/HandshakeParty +type HandshakeParty struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) for the party. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for handshake ID string + // requires "h-" followed by from 8 to 32 lower-case letters or digits. + Id *string `min:"1" type:"string"` + + // The type of party. + Type *string `type:"string" enum:"HandshakePartyType"` +} + +// String returns the string representation +func (s HandshakeParty) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HandshakeParty) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *HandshakeParty) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "HandshakeParty"} + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *HandshakeParty) SetId(v string) *HandshakeParty { + s.Id = &v + return s +} + +// SetType sets the Type field's value. +func (s *HandshakeParty) SetType(v string) *HandshakeParty { + s.Type = &v + return s +} + +// Contains additional data that is needed to process a handshake. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/HandshakeResource +type HandshakeResource struct { + _ struct{} `type:"structure"` + + // When needed, contains an additional array of HandshakeResource objects. + Resources []*HandshakeResource `type:"list"` + + // The type of information being passed, specifying how the value is to be interpreted + // by the other party: + // + // * ACCOUNT - Specifies an AWS account ID number. + // + // * ORGANIZATION - Specifies an organization ID number. + // + // * EMAIL - Specifies the email address that is associated with the account + // that receives the handshake. + // + // * OWNER_EMAIL - Specifies the email address associated with the master + // account. Included as information about an organization. + // + // * OWNER_NAME - Specifies the name associated with the master account. + // Included as information about an organization. + // + // * NOTES - Additional text provided by the handshake initiator and intended + // for the recipient to read. + Type *string `type:"string" enum:"HandshakeResourceType"` + + // The information that is passed to the other party in the handshake. The format + // of the value string must match the requirements of the specified type. + Value *string `type:"string"` +} + +// String returns the string representation +func (s HandshakeResource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HandshakeResource) GoString() string { + return s.String() +} + +// SetResources sets the Resources field's value. +func (s *HandshakeResource) SetResources(v []*HandshakeResource) *HandshakeResource { + s.Resources = v + return s +} + +// SetType sets the Type field's value. +func (s *HandshakeResource) SetType(v string) *HandshakeResource { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *HandshakeResource) SetValue(v string) *HandshakeResource { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/InviteAccountToOrganizationRequest +type InviteAccountToOrganizationInput struct { + _ struct{} `type:"structure"` + + // Additional information that you want to include in the generated email to + // the recipient account owner. + Notes *string `type:"string"` + + // The identifier (ID) of the AWS account that you want to invite to join your + // organization. This is a JSON object that contains the following elements: + // + // { "Type": "ACCOUNT", "Id": "" } + // + // If you use the AWS CLI, you can submit this as a single string, similar to + // the following example: + // + // --target id=123456789012,type=ACCOUNT + // + // If you specify "Type": "ACCOUNT", then you must provide the AWS account ID + // number as the Id. If you specify "Type": "EMAIL", then you must specify the + // email address that is associated with the account. + // + // --target id=bill@example.com,type=EMAIL + // + // Target is a required field + Target *HandshakeParty `type:"structure" required:"true"` +} + +// String returns the string representation +func (s InviteAccountToOrganizationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InviteAccountToOrganizationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InviteAccountToOrganizationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InviteAccountToOrganizationInput"} + if s.Target == nil { + invalidParams.Add(request.NewErrParamRequired("Target")) + } + if s.Target != nil { + if err := s.Target.Validate(); err != nil { + invalidParams.AddNested("Target", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNotes sets the Notes field's value. +func (s *InviteAccountToOrganizationInput) SetNotes(v string) *InviteAccountToOrganizationInput { + s.Notes = &v + return s +} + +// SetTarget sets the Target field's value. +func (s *InviteAccountToOrganizationInput) SetTarget(v *HandshakeParty) *InviteAccountToOrganizationInput { + s.Target = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/InviteAccountToOrganizationResponse +type InviteAccountToOrganizationOutput struct { + _ struct{} `type:"structure"` + + // A structure that contains details about the handshake that is created to + // support this invitation request. + Handshake *Handshake `type:"structure"` +} + +// String returns the string representation +func (s InviteAccountToOrganizationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InviteAccountToOrganizationOutput) GoString() string { + return s.String() +} + +// SetHandshake sets the Handshake field's value. +func (s *InviteAccountToOrganizationOutput) SetHandshake(v *Handshake) *InviteAccountToOrganizationOutput { + s.Handshake = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/LeaveOrganizationInput +type LeaveOrganizationInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s LeaveOrganizationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LeaveOrganizationInput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/LeaveOrganizationOutput +type LeaveOrganizationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s LeaveOrganizationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LeaveOrganizationOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListAccountsForParentRequest +type ListAccountsForParentInput struct { + _ struct{} `type:"structure"` + + // (Optional) Use this to limit the number of results you want included in the + // response. If you do not include this parameter, it defaults to a value that + // is specific to the operation. If additional items exist beyond the maximum + // you specify, the NextToken response element is present and has a value (is + // not null). Include that value as the NextToken request parameter in the next + // call to the operation to get the next part of the results. Note that Organizations + // might return fewer results than the maximum even when there are more results + // available. You should check NextToken after every operation to ensure that + // you receive all of the results. + MaxResults *int64 `min:"1" type:"integer"` + + // Use this parameter if you receive a NextToken response in a previous request + // that indicates that there is more output available. Set it to the value of + // the previous call's NextToken response to indicate where the output should + // continue from. + NextToken *string `type:"string"` + + // The unique identifier (ID) for the parent root or organization unit (OU) + // whose accounts you want to list. + // + // ParentId is a required field + ParentId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ListAccountsForParentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAccountsForParentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAccountsForParentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAccountsForParentInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ParentId == nil { + invalidParams.Add(request.NewErrParamRequired("ParentId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAccountsForParentInput) SetMaxResults(v int64) *ListAccountsForParentInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAccountsForParentInput) SetNextToken(v string) *ListAccountsForParentInput { + s.NextToken = &v + return s +} + +// SetParentId sets the ParentId field's value. +func (s *ListAccountsForParentInput) SetParentId(v string) *ListAccountsForParentInput { + s.ParentId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListAccountsForParentResponse +type ListAccountsForParentOutput struct { + _ struct{} `type:"structure"` + + // A list of the accounts in the specified root or OU. + Accounts []*Account `type:"list"` + + // If present, this value indicates that there is more output available than + // is included in the current response. Use this value in the NextToken request + // parameter in a subsequent call to the operation to get the next part of the + // output. You should repeat this until the NextToken response element comes + // back as null. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListAccountsForParentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAccountsForParentOutput) GoString() string { + return s.String() +} + +// SetAccounts sets the Accounts field's value. +func (s *ListAccountsForParentOutput) SetAccounts(v []*Account) *ListAccountsForParentOutput { + s.Accounts = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAccountsForParentOutput) SetNextToken(v string) *ListAccountsForParentOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListAccountsRequest +type ListAccountsInput struct { + _ struct{} `type:"structure"` + + // (Optional) Use this to limit the number of results you want included in the + // response. If you do not include this parameter, it defaults to a value that + // is specific to the operation. If additional items exist beyond the maximum + // you specify, the NextToken response element is present and has a value (is + // not null). Include that value as the NextToken request parameter in the next + // call to the operation to get the next part of the results. Note that Organizations + // might return fewer results than the maximum even when there are more results + // available. You should check NextToken after every operation to ensure that + // you receive all of the results. + MaxResults *int64 `min:"1" type:"integer"` + + // Use this parameter if you receive a NextToken response in a previous request + // that indicates that there is more output available. Set it to the value of + // the previous call's NextToken response to indicate where the output should + // continue from. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListAccountsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAccountsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAccountsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAccountsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAccountsInput) SetMaxResults(v int64) *ListAccountsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAccountsInput) SetNextToken(v string) *ListAccountsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListAccountsResponse +type ListAccountsOutput struct { + _ struct{} `type:"structure"` + + // A list of objects in the organization. + Accounts []*Account `type:"list"` + + // If present, this value indicates that there is more output available than + // is included in the current response. Use this value in the NextToken request + // parameter in a subsequent call to the operation to get the next part of the + // output. You should repeat this until the NextToken response element comes + // back as null. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListAccountsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAccountsOutput) GoString() string { + return s.String() +} + +// SetAccounts sets the Accounts field's value. +func (s *ListAccountsOutput) SetAccounts(v []*Account) *ListAccountsOutput { + s.Accounts = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAccountsOutput) SetNextToken(v string) *ListAccountsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListChildrenRequest +type ListChildrenInput struct { + _ struct{} `type:"structure"` + + // Filters the output to include only the specified child type. + // + // ChildType is a required field + ChildType *string `type:"string" required:"true" enum:"ChildType"` + + // (Optional) Use this to limit the number of results you want included in the + // response. If you do not include this parameter, it defaults to a value that + // is specific to the operation. If additional items exist beyond the maximum + // you specify, the NextToken response element is present and has a value (is + // not null). Include that value as the NextToken request parameter in the next + // call to the operation to get the next part of the results. Note that Organizations + // might return fewer results than the maximum even when there are more results + // available. You should check NextToken after every operation to ensure that + // you receive all of the results. + MaxResults *int64 `min:"1" type:"integer"` + + // Use this parameter if you receive a NextToken response in a previous request + // that indicates that there is more output available. Set it to the value of + // the previous call's NextToken response to indicate where the output should + // continue from. + NextToken *string `type:"string"` + + // The unique identifier (ID) for the parent root or OU whose children you want + // to list. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a parent ID string + // requires one of the following: + // + // * Root: a string that begins with "r-" followed by from 4 to 32 lower-case + // letters or digits. + // + // * Organizational unit (OU): a string that begins with "ou-" followed by + // from 4 to 32 lower-case letters or digits (the ID of the root that the + // OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case + // letters or digits. + // + // ParentId is a required field + ParentId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ListChildrenInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListChildrenInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListChildrenInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListChildrenInput"} + if s.ChildType == nil { + invalidParams.Add(request.NewErrParamRequired("ChildType")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ParentId == nil { + invalidParams.Add(request.NewErrParamRequired("ParentId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChildType sets the ChildType field's value. +func (s *ListChildrenInput) SetChildType(v string) *ListChildrenInput { + s.ChildType = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListChildrenInput) SetMaxResults(v int64) *ListChildrenInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListChildrenInput) SetNextToken(v string) *ListChildrenInput { + s.NextToken = &v + return s +} + +// SetParentId sets the ParentId field's value. +func (s *ListChildrenInput) SetParentId(v string) *ListChildrenInput { + s.ParentId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListChildrenResponse +type ListChildrenOutput struct { + _ struct{} `type:"structure"` + + // The list of children of the specified parent container. + Children []*Child `type:"list"` + + // If present, this value indicates that there is more output available than + // is included in the current response. Use this value in the NextToken request + // parameter in a subsequent call to the operation to get the next part of the + // output. You should repeat this until the NextToken response element comes + // back as null. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListChildrenOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListChildrenOutput) GoString() string { + return s.String() +} + +// SetChildren sets the Children field's value. +func (s *ListChildrenOutput) SetChildren(v []*Child) *ListChildrenOutput { + s.Children = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListChildrenOutput) SetNextToken(v string) *ListChildrenOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListCreateAccountStatusRequest +type ListCreateAccountStatusInput struct { + _ struct{} `type:"structure"` + + // (Optional) Use this to limit the number of results you want included in the + // response. If you do not include this parameter, it defaults to a value that + // is specific to the operation. If additional items exist beyond the maximum + // you specify, the NextToken response element is present and has a value (is + // not null). Include that value as the NextToken request parameter in the next + // call to the operation to get the next part of the results. Note that Organizations + // might return fewer results than the maximum even when there are more results + // available. You should check NextToken after every operation to ensure that + // you receive all of the results. + MaxResults *int64 `min:"1" type:"integer"` + + // Use this parameter if you receive a NextToken response in a previous request + // that indicates that there is more output available. Set it to the value of + // the previous call's NextToken response to indicate where the output should + // continue from. + NextToken *string `type:"string"` + + // A list of one or more states that you want included in the response. If this + // parameter is not present, then all requests are included in the response. + States []*string `type:"list"` +} + +// String returns the string representation +func (s ListCreateAccountStatusInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListCreateAccountStatusInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListCreateAccountStatusInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListCreateAccountStatusInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListCreateAccountStatusInput) SetMaxResults(v int64) *ListCreateAccountStatusInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCreateAccountStatusInput) SetNextToken(v string) *ListCreateAccountStatusInput { + s.NextToken = &v + return s +} + +// SetStates sets the States field's value. +func (s *ListCreateAccountStatusInput) SetStates(v []*string) *ListCreateAccountStatusInput { + s.States = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListCreateAccountStatusResponse +type ListCreateAccountStatusOutput struct { + _ struct{} `type:"structure"` + + // A list of objects with details about the requests. Certain elements, such + // as the accountId number, are present in the output only after the account + // has been successfully created. + CreateAccountStatuses []*CreateAccountStatus `type:"list"` + + // If present, this value indicates that there is more output available than + // is included in the current response. Use this value in the NextToken request + // parameter in a subsequent call to the operation to get the next part of the + // output. You should repeat this until the NextToken response element comes + // back as null. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListCreateAccountStatusOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListCreateAccountStatusOutput) GoString() string { + return s.String() +} + +// SetCreateAccountStatuses sets the CreateAccountStatuses field's value. +func (s *ListCreateAccountStatusOutput) SetCreateAccountStatuses(v []*CreateAccountStatus) *ListCreateAccountStatusOutput { + s.CreateAccountStatuses = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCreateAccountStatusOutput) SetNextToken(v string) *ListCreateAccountStatusOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListHandshakesForAccountRequest +type ListHandshakesForAccountInput struct { + _ struct{} `type:"structure"` + + // Filters the handshakes that you want included in the response. The default + // is all types. Use the ActionType element to limit the output to only a specified + // type, such as INVITE, ENABLE-FULL-CONTROL, or APPROVE-FULL-CONTROL. Alternatively, + // for the ENABLE-FULL-CONTROL handshake that generates a separate child handshake + // for each member account, you can specify ParentHandshakeId to see only the + // handshakes that were generated by that parent request. + Filter *HandshakeFilter `type:"structure"` + + // (Optional) Use this to limit the number of results you want included in the + // response. If you do not include this parameter, it defaults to a value that + // is specific to the operation. If additional items exist beyond the maximum + // you specify, the NextToken response element is present and has a value (is + // not null). Include that value as the NextToken request parameter in the next + // call to the operation to get the next part of the results. Note that Organizations + // might return fewer results than the maximum even when there are more results + // available. You should check NextToken after every operation to ensure that + // you receive all of the results. + MaxResults *int64 `min:"1" type:"integer"` + + // Use this parameter if you receive a NextToken response in a previous request + // that indicates that there is more output available. Set it to the value of + // the previous call's NextToken response to indicate where the output should + // continue from. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListHandshakesForAccountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListHandshakesForAccountInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListHandshakesForAccountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListHandshakesForAccountInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilter sets the Filter field's value. +func (s *ListHandshakesForAccountInput) SetFilter(v *HandshakeFilter) *ListHandshakesForAccountInput { + s.Filter = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListHandshakesForAccountInput) SetMaxResults(v int64) *ListHandshakesForAccountInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListHandshakesForAccountInput) SetNextToken(v string) *ListHandshakesForAccountInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListHandshakesForAccountResponse +type ListHandshakesForAccountOutput struct { + _ struct{} `type:"structure"` + + // A list of Handshake objects with details about each of the handshakes that + // is associated with the specified account. + Handshakes []*Handshake `type:"list"` + + // If present, this value indicates that there is more output available than + // is included in the current response. Use this value in the NextToken request + // parameter in a subsequent call to the operation to get the next part of the + // output. You should repeat this until the NextToken response element comes + // back as null. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListHandshakesForAccountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListHandshakesForAccountOutput) GoString() string { + return s.String() +} + +// SetHandshakes sets the Handshakes field's value. +func (s *ListHandshakesForAccountOutput) SetHandshakes(v []*Handshake) *ListHandshakesForAccountOutput { + s.Handshakes = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListHandshakesForAccountOutput) SetNextToken(v string) *ListHandshakesForAccountOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListHandshakesForOrganizationRequest +type ListHandshakesForOrganizationInput struct { + _ struct{} `type:"structure"` + + // A filter of the handshakes that you want included in the response. The default + // is all types. Use the ActionType element to limit the output to only a specified + // type, such as INVITE, ENABLE-ALL-FEATURES, or APPROVE-ALL-FEATURES. Alternatively, + // for the ENABLE-ALL-FEATURES handshake that generates a separate child handshake + // for each member account, you can specify the ParentHandshakeId to see only + // the handshakes that were generated by that parent request. + Filter *HandshakeFilter `type:"structure"` + + // (Optional) Use this to limit the number of results you want included in the + // response. If you do not include this parameter, it defaults to a value that + // is specific to the operation. If additional items exist beyond the maximum + // you specify, the NextToken response element is present and has a value (is + // not null). Include that value as the NextToken request parameter in the next + // call to the operation to get the next part of the results. Note that Organizations + // might return fewer results than the maximum even when there are more results + // available. You should check NextToken after every operation to ensure that + // you receive all of the results. + MaxResults *int64 `min:"1" type:"integer"` + + // Use this parameter if you receive a NextToken response in a previous request + // that indicates that there is more output available. Set it to the value of + // the previous call's NextToken response to indicate where the output should + // continue from. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListHandshakesForOrganizationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListHandshakesForOrganizationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListHandshakesForOrganizationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListHandshakesForOrganizationInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilter sets the Filter field's value. +func (s *ListHandshakesForOrganizationInput) SetFilter(v *HandshakeFilter) *ListHandshakesForOrganizationInput { + s.Filter = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListHandshakesForOrganizationInput) SetMaxResults(v int64) *ListHandshakesForOrganizationInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListHandshakesForOrganizationInput) SetNextToken(v string) *ListHandshakesForOrganizationInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListHandshakesForOrganizationResponse +type ListHandshakesForOrganizationOutput struct { + _ struct{} `type:"structure"` + + // A list of Handshake objects with details about each of the handshakes that + // are associated with an organization. + Handshakes []*Handshake `type:"list"` + + // If present, this value indicates that there is more output available than + // is included in the current response. Use this value in the NextToken request + // parameter in a subsequent call to the operation to get the next part of the + // output. You should repeat this until the NextToken response element comes + // back as null. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListHandshakesForOrganizationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListHandshakesForOrganizationOutput) GoString() string { + return s.String() +} + +// SetHandshakes sets the Handshakes field's value. +func (s *ListHandshakesForOrganizationOutput) SetHandshakes(v []*Handshake) *ListHandshakesForOrganizationOutput { + s.Handshakes = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListHandshakesForOrganizationOutput) SetNextToken(v string) *ListHandshakesForOrganizationOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListOrganizationalUnitsForParentRequest +type ListOrganizationalUnitsForParentInput struct { + _ struct{} `type:"structure"` + + // (Optional) Use this to limit the number of results you want included in the + // response. If you do not include this parameter, it defaults to a value that + // is specific to the operation. If additional items exist beyond the maximum + // you specify, the NextToken response element is present and has a value (is + // not null). Include that value as the NextToken request parameter in the next + // call to the operation to get the next part of the results. Note that Organizations + // might return fewer results than the maximum even when there are more results + // available. You should check NextToken after every operation to ensure that + // you receive all of the results. + MaxResults *int64 `min:"1" type:"integer"` + + // Use this parameter if you receive a NextToken response in a previous request + // that indicates that there is more output available. Set it to the value of + // the previous call's NextToken response to indicate where the output should + // continue from. + NextToken *string `type:"string"` + + // The unique identifier (ID) of the root or OU whose child OUs you want to + // list. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a parent ID string + // requires one of the following: + // + // * Root: a string that begins with "r-" followed by from 4 to 32 lower-case + // letters or digits. + // + // * Organizational unit (OU): a string that begins with "ou-" followed by + // from 4 to 32 lower-case letters or digits (the ID of the root that the + // OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case + // letters or digits. + // + // ParentId is a required field + ParentId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ListOrganizationalUnitsForParentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListOrganizationalUnitsForParentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListOrganizationalUnitsForParentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListOrganizationalUnitsForParentInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ParentId == nil { + invalidParams.Add(request.NewErrParamRequired("ParentId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListOrganizationalUnitsForParentInput) SetMaxResults(v int64) *ListOrganizationalUnitsForParentInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListOrganizationalUnitsForParentInput) SetNextToken(v string) *ListOrganizationalUnitsForParentInput { + s.NextToken = &v + return s +} + +// SetParentId sets the ParentId field's value. +func (s *ListOrganizationalUnitsForParentInput) SetParentId(v string) *ListOrganizationalUnitsForParentInput { + s.ParentId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListOrganizationalUnitsForParentResponse +type ListOrganizationalUnitsForParentOutput struct { + _ struct{} `type:"structure"` + + // If present, this value indicates that there is more output available than + // is included in the current response. Use this value in the NextToken request + // parameter in a subsequent call to the operation to get the next part of the + // output. You should repeat this until the NextToken response element comes + // back as null. + NextToken *string `type:"string"` + + // A list of the OUs in the specified root or parent OU. + OrganizationalUnits []*OrganizationalUnit `type:"list"` +} + +// String returns the string representation +func (s ListOrganizationalUnitsForParentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListOrganizationalUnitsForParentOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListOrganizationalUnitsForParentOutput) SetNextToken(v string) *ListOrganizationalUnitsForParentOutput { + s.NextToken = &v + return s +} + +// SetOrganizationalUnits sets the OrganizationalUnits field's value. +func (s *ListOrganizationalUnitsForParentOutput) SetOrganizationalUnits(v []*OrganizationalUnit) *ListOrganizationalUnitsForParentOutput { + s.OrganizationalUnits = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListParentsRequest +type ListParentsInput struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) of the OU or account whose parent containers you + // want to list. Do not specify a root. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a child ID string + // requires one of the following: + // + // * Account: a string that consists of exactly 12 digits. + // + // * Organizational unit (OU): a string that begins with "ou-" followed by + // from 4 to 32 lower-case letters or digits (the ID of the root that contains + // the OU) followed by a second "-" dash and from 8 to 32 additional lower-case + // letters or digits. + // + // ChildId is a required field + ChildId *string `type:"string" required:"true"` + + // (Optional) Use this to limit the number of results you want included in the + // response. If you do not include this parameter, it defaults to a value that + // is specific to the operation. If additional items exist beyond the maximum + // you specify, the NextToken response element is present and has a value (is + // not null). Include that value as the NextToken request parameter in the next + // call to the operation to get the next part of the results. Note that Organizations + // might return fewer results than the maximum even when there are more results + // available. You should check NextToken after every operation to ensure that + // you receive all of the results. + MaxResults *int64 `min:"1" type:"integer"` + + // Use this parameter if you receive a NextToken response in a previous request + // that indicates that there is more output available. Set it to the value of + // the previous call's NextToken response to indicate where the output should + // continue from. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListParentsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListParentsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListParentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListParentsInput"} + if s.ChildId == nil { + invalidParams.Add(request.NewErrParamRequired("ChildId")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChildId sets the ChildId field's value. +func (s *ListParentsInput) SetChildId(v string) *ListParentsInput { + s.ChildId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListParentsInput) SetMaxResults(v int64) *ListParentsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListParentsInput) SetNextToken(v string) *ListParentsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListParentsResponse +type ListParentsOutput struct { + _ struct{} `type:"structure"` + + // If present, this value indicates that there is more output available than + // is included in the current response. Use this value in the NextToken request + // parameter in a subsequent call to the operation to get the next part of the + // output. You should repeat this until the NextToken response element comes + // back as null. + NextToken *string `type:"string"` + + // A list of parents for the specified child account or OU. + Parents []*Parent `type:"list"` +} + +// String returns the string representation +func (s ListParentsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListParentsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListParentsOutput) SetNextToken(v string) *ListParentsOutput { + s.NextToken = &v + return s +} + +// SetParents sets the Parents field's value. +func (s *ListParentsOutput) SetParents(v []*Parent) *ListParentsOutput { + s.Parents = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListPoliciesForTargetRequest +type ListPoliciesForTargetInput struct { + _ struct{} `type:"structure"` + + // The type of policy that you want to include in the returned list. + // + // Filter is a required field + Filter *string `type:"string" required:"true" enum:"PolicyType"` + + // (Optional) Use this to limit the number of results you want included in the + // response. If you do not include this parameter, it defaults to a value that + // is specific to the operation. If additional items exist beyond the maximum + // you specify, the NextToken response element is present and has a value (is + // not null). Include that value as the NextToken request parameter in the next + // call to the operation to get the next part of the results. Note that Organizations + // might return fewer results than the maximum even when there are more results + // available. You should check NextToken after every operation to ensure that + // you receive all of the results. + MaxResults *int64 `min:"1" type:"integer"` + + // Use this parameter if you receive a NextToken response in a previous request + // that indicates that there is more output available. Set it to the value of + // the previous call's NextToken response to indicate where the output should + // continue from. + NextToken *string `type:"string"` + + // The unique identifier (ID) of the root, organizational unit, or account whose + // policies you want to list. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a target ID string + // requires one of the following: + // + // * Root: a string that begins with "r-" followed by from 4 to 32 lower-case + // letters or digits. + // + // * Account: a string that consists of exactly 12 digits. + // + // * Organizational unit (OU): a string that begins with "ou-" followed by + // from 4 to 32 lower-case letters or digits (the ID of the root that the + // OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case + // letters or digits. + // + // TargetId is a required field + TargetId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ListPoliciesForTargetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPoliciesForTargetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListPoliciesForTargetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPoliciesForTargetInput"} + if s.Filter == nil { + invalidParams.Add(request.NewErrParamRequired("Filter")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.TargetId == nil { + invalidParams.Add(request.NewErrParamRequired("TargetId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilter sets the Filter field's value. +func (s *ListPoliciesForTargetInput) SetFilter(v string) *ListPoliciesForTargetInput { + s.Filter = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListPoliciesForTargetInput) SetMaxResults(v int64) *ListPoliciesForTargetInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPoliciesForTargetInput) SetNextToken(v string) *ListPoliciesForTargetInput { + s.NextToken = &v + return s +} + +// SetTargetId sets the TargetId field's value. +func (s *ListPoliciesForTargetInput) SetTargetId(v string) *ListPoliciesForTargetInput { + s.TargetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListPoliciesForTargetResponse +type ListPoliciesForTargetOutput struct { + _ struct{} `type:"structure"` + + // If present, this value indicates that there is more output available than + // is included in the current response. Use this value in the NextToken request + // parameter in a subsequent call to the operation to get the next part of the + // output. You should repeat this until the NextToken response element comes + // back as null. + NextToken *string `type:"string"` + + // The list of policies that match the criteria in the request. + Policies []*PolicySummary `type:"list"` +} + +// String returns the string representation +func (s ListPoliciesForTargetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPoliciesForTargetOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPoliciesForTargetOutput) SetNextToken(v string) *ListPoliciesForTargetOutput { + s.NextToken = &v + return s +} + +// SetPolicies sets the Policies field's value. +func (s *ListPoliciesForTargetOutput) SetPolicies(v []*PolicySummary) *ListPoliciesForTargetOutput { + s.Policies = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListPoliciesRequest +type ListPoliciesInput struct { + _ struct{} `type:"structure"` + + // Specifies the type of policy that you want to include in the response. + // + // Filter is a required field + Filter *string `type:"string" required:"true" enum:"PolicyType"` + + // (Optional) Use this to limit the number of results you want included in the + // response. If you do not include this parameter, it defaults to a value that + // is specific to the operation. If additional items exist beyond the maximum + // you specify, the NextToken response element is present and has a value (is + // not null). Include that value as the NextToken request parameter in the next + // call to the operation to get the next part of the results. Note that Organizations + // might return fewer results than the maximum even when there are more results + // available. You should check NextToken after every operation to ensure that + // you receive all of the results. + MaxResults *int64 `min:"1" type:"integer"` + + // Use this parameter if you receive a NextToken response in a previous request + // that indicates that there is more output available. Set it to the value of + // the previous call's NextToken response to indicate where the output should + // continue from. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListPoliciesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPoliciesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListPoliciesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPoliciesInput"} + if s.Filter == nil { + invalidParams.Add(request.NewErrParamRequired("Filter")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilter sets the Filter field's value. +func (s *ListPoliciesInput) SetFilter(v string) *ListPoliciesInput { + s.Filter = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListPoliciesInput) SetMaxResults(v int64) *ListPoliciesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPoliciesInput) SetNextToken(v string) *ListPoliciesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListPoliciesResponse +type ListPoliciesOutput struct { + _ struct{} `type:"structure"` + + // If present, this value indicates that there is more output available than + // is included in the current response. Use this value in the NextToken request + // parameter in a subsequent call to the operation to get the next part of the + // output. You should repeat this until the NextToken response element comes + // back as null. + NextToken *string `type:"string"` + + // A list of policies that match the filter criteria in the request. The output + // list does not include the policy contents. To see the content for a policy, + // see DescribePolicy. + Policies []*PolicySummary `type:"list"` +} + +// String returns the string representation +func (s ListPoliciesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPoliciesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPoliciesOutput) SetNextToken(v string) *ListPoliciesOutput { + s.NextToken = &v + return s +} + +// SetPolicies sets the Policies field's value. +func (s *ListPoliciesOutput) SetPolicies(v []*PolicySummary) *ListPoliciesOutput { + s.Policies = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListRootsRequest +type ListRootsInput struct { + _ struct{} `type:"structure"` + + // (Optional) Use this to limit the number of results you want included in the + // response. If you do not include this parameter, it defaults to a value that + // is specific to the operation. If additional items exist beyond the maximum + // you specify, the NextToken response element is present and has a value (is + // not null). Include that value as the NextToken request parameter in the next + // call to the operation to get the next part of the results. Note that Organizations + // might return fewer results than the maximum even when there are more results + // available. You should check NextToken after every operation to ensure that + // you receive all of the results. + MaxResults *int64 `min:"1" type:"integer"` + + // Use this parameter if you receive a NextToken response in a previous request + // that indicates that there is more output available. Set it to the value of + // the previous call's NextToken response to indicate where the output should + // continue from. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListRootsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListRootsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListRootsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListRootsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListRootsInput) SetMaxResults(v int64) *ListRootsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListRootsInput) SetNextToken(v string) *ListRootsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListRootsResponse +type ListRootsOutput struct { + _ struct{} `type:"structure"` + + // If present, this value indicates that there is more output available than + // is included in the current response. Use this value in the NextToken request + // parameter in a subsequent call to the operation to get the next part of the + // output. You should repeat this until the NextToken response element comes + // back as null. + NextToken *string `type:"string"` + + // A list of roots that are defined in an organization. + Roots []*Root `type:"list"` +} + +// String returns the string representation +func (s ListRootsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListRootsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListRootsOutput) SetNextToken(v string) *ListRootsOutput { + s.NextToken = &v + return s +} + +// SetRoots sets the Roots field's value. +func (s *ListRootsOutput) SetRoots(v []*Root) *ListRootsOutput { + s.Roots = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListTargetsForPolicyRequest +type ListTargetsForPolicyInput struct { + _ struct{} `type:"structure"` + + // (Optional) Use this to limit the number of results you want included in the + // response. If you do not include this parameter, it defaults to a value that + // is specific to the operation. If additional items exist beyond the maximum + // you specify, the NextToken response element is present and has a value (is + // not null). Include that value as the NextToken request parameter in the next + // call to the operation to get the next part of the results. Note that Organizations + // might return fewer results than the maximum even when there are more results + // available. You should check NextToken after every operation to ensure that + // you receive all of the results. + MaxResults *int64 `min:"1" type:"integer"` + + // Use this parameter if you receive a NextToken response in a previous request + // that indicates that there is more output available. Set it to the value of + // the previous call's NextToken response to indicate where the output should + // continue from. + NextToken *string `type:"string"` + + // The unique identifier (ID) of the policy for which you want to know its attachments. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a policy ID string + // requires "p-" followed by from 8 to 128 lower-case letters or digits. + // + // PolicyId is a required field + PolicyId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ListTargetsForPolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTargetsForPolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTargetsForPolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTargetsForPolicyInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.PolicyId == nil { + invalidParams.Add(request.NewErrParamRequired("PolicyId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListTargetsForPolicyInput) SetMaxResults(v int64) *ListTargetsForPolicyInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTargetsForPolicyInput) SetNextToken(v string) *ListTargetsForPolicyInput { + s.NextToken = &v + return s +} + +// SetPolicyId sets the PolicyId field's value. +func (s *ListTargetsForPolicyInput) SetPolicyId(v string) *ListTargetsForPolicyInput { + s.PolicyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListTargetsForPolicyResponse +type ListTargetsForPolicyOutput struct { + _ struct{} `type:"structure"` + + // If present, this value indicates that there is more output available than + // is included in the current response. Use this value in the NextToken request + // parameter in a subsequent call to the operation to get the next part of the + // output. You should repeat this until the NextToken response element comes + // back as null. + NextToken *string `type:"string"` + + // A list of structures, each of which contains details about one of the entities + // to which the specified policy is attached. + Targets []*PolicyTargetSummary `type:"list"` +} + +// String returns the string representation +func (s ListTargetsForPolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTargetsForPolicyOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTargetsForPolicyOutput) SetNextToken(v string) *ListTargetsForPolicyOutput { + s.NextToken = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *ListTargetsForPolicyOutput) SetTargets(v []*PolicyTargetSummary) *ListTargetsForPolicyOutput { + s.Targets = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/MoveAccountRequest +type MoveAccountInput struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) of the account that you want to move. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for an account ID string + // requires exactly 12 digits. + // + // AccountId is a required field + AccountId *string `type:"string" required:"true"` + + // The unique identifier (ID) of the root or organizational unit that you want + // to move the account to. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a parent ID string + // requires one of the following: + // + // * Root: a string that begins with "r-" followed by from 4 to 32 lower-case + // letters or digits. + // + // * Organizational unit (OU): a string that begins with "ou-" followed by + // from 4 to 32 lower-case letters or digits (the ID of the root that the + // OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case + // letters or digits. + // + // DestinationParentId is a required field + DestinationParentId *string `type:"string" required:"true"` + + // The unique identifier (ID) of the root or organizational unit that you want + // to move the account from. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a parent ID string + // requires one of the following: + // + // * Root: a string that begins with "r-" followed by from 4 to 32 lower-case + // letters or digits. + // + // * Organizational unit (OU): a string that begins with "ou-" followed by + // from 4 to 32 lower-case letters or digits (the ID of the root that the + // OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case + // letters or digits. + // + // SourceParentId is a required field + SourceParentId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s MoveAccountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MoveAccountInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MoveAccountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MoveAccountInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.DestinationParentId == nil { + invalidParams.Add(request.NewErrParamRequired("DestinationParentId")) + } + if s.SourceParentId == nil { + invalidParams.Add(request.NewErrParamRequired("SourceParentId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *MoveAccountInput) SetAccountId(v string) *MoveAccountInput { + s.AccountId = &v + return s +} + +// SetDestinationParentId sets the DestinationParentId field's value. +func (s *MoveAccountInput) SetDestinationParentId(v string) *MoveAccountInput { + s.DestinationParentId = &v + return s +} + +// SetSourceParentId sets the SourceParentId field's value. +func (s *MoveAccountInput) SetSourceParentId(v string) *MoveAccountInput { + s.SourceParentId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/MoveAccountOutput +type MoveAccountOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s MoveAccountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MoveAccountOutput) GoString() string { + return s.String() +} + +// Contains details about an organization. An organization is a collection of +// accounts that are centrally managed together using consolidated billing, +// organized hierarchically with organizational units (OUs), and controlled +// with policies . +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/Organization +type Organization struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of an organization. + // + // For more information about ARNs in Organizations, see ARN Formats Supported + // by Organizations (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_permissions.html#orgs-permissions-arns) + // in the AWS Organizations User Guide. + Arn *string `type:"string"` + + // A list of policy types that are enabled for this organization. For example, + // if your organization has all features enabled, then service control policies + // (SCPs) are included in the list. + AvailablePolicyTypes []*PolicyTypeSummary `type:"list"` + + // Specifies the functionality that currently is available to the organization. + // If set to "ALL", then all features are enabled and policies can be applied + // to accounts in the organization. If set to "CONSOLIDATED_BILLING", then only + // consolidated billing functionality is available. For more information, see + // Enabling All Features in Your Organization (http://docs.aws.amazon.com/IAM/latest/UserGuide/orgs_manage_org_support-all-features.html) + // in the AWS Organizations User Guide. + FeatureSet *string `type:"string" enum:"OrganizationFeatureSet"` + + // The unique identifier (ID) of an organization. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for an organization ID + // string requires "o-" followed by from 10 to 32 lower-case letters or digits. + Id *string `type:"string"` + + // The Amazon Resource Name (ARN) of the account that is designated as the master + // account for the organization. + // + // For more information about ARNs in Organizations, see ARN Formats Supported + // by Organizations (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_permissions.html#orgs-permissions-arns) + // in the AWS Organizations User Guide. + MasterAccountArn *string `type:"string"` + + // The email address that is associated with the AWS account that is designated + // as the master account for the organization. + MasterAccountEmail *string `min:"6" type:"string"` + + // The unique identifier (ID) of the master account of an organization. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for an account ID string + // requires exactly 12 digits. + MasterAccountId *string `type:"string"` +} + +// String returns the string representation +func (s Organization) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Organization) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *Organization) SetArn(v string) *Organization { + s.Arn = &v + return s +} + +// SetAvailablePolicyTypes sets the AvailablePolicyTypes field's value. +func (s *Organization) SetAvailablePolicyTypes(v []*PolicyTypeSummary) *Organization { + s.AvailablePolicyTypes = v + return s +} + +// SetFeatureSet sets the FeatureSet field's value. +func (s *Organization) SetFeatureSet(v string) *Organization { + s.FeatureSet = &v + return s +} + +// SetId sets the Id field's value. +func (s *Organization) SetId(v string) *Organization { + s.Id = &v + return s +} + +// SetMasterAccountArn sets the MasterAccountArn field's value. +func (s *Organization) SetMasterAccountArn(v string) *Organization { + s.MasterAccountArn = &v + return s +} + +// SetMasterAccountEmail sets the MasterAccountEmail field's value. +func (s *Organization) SetMasterAccountEmail(v string) *Organization { + s.MasterAccountEmail = &v + return s +} + +// SetMasterAccountId sets the MasterAccountId field's value. +func (s *Organization) SetMasterAccountId(v string) *Organization { + s.MasterAccountId = &v + return s +} + +// Contains details about an organizational unit (OU). An OU is a container +// of AWS accounts within a root of an organization. Policies that are attached +// to an OU apply to all accounts contained in that OU and in any child OUs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/OrganizationalUnit +type OrganizationalUnit struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of this OU. + // + // For more information about ARNs in Organizations, see ARN Formats Supported + // by Organizations (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_permissions.html#orgs-permissions-arns) + // in the AWS Organizations User Guide. + Arn *string `type:"string"` + + // The unique identifier (ID) associated with this OU. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for an organizational + // unit ID string requires "ou-" followed by from 4 to 32 lower-case letters + // or digits (the ID of the root that contains the OU) followed by a second + // "-" dash and from 8 to 32 additional lower-case letters or digits. + Id *string `type:"string"` + + // The friendly name of this OU. + // + // The regex pattern (http://wikipedia.org/wiki/regex) that is used to validate + // this parameter is a string of any of the characters in the ASCII character + // range. + Name *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s OrganizationalUnit) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OrganizationalUnit) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *OrganizationalUnit) SetArn(v string) *OrganizationalUnit { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *OrganizationalUnit) SetId(v string) *OrganizationalUnit { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *OrganizationalUnit) SetName(v string) *OrganizationalUnit { + s.Name = &v + return s +} + +// Contains information about either a root or an organizational unit (OU) that +// can contain OUs or accounts in an organization. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/Parent +type Parent struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) of the parent entity. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a parent ID string + // requires one of the following: + // + // * Root: a string that begins with "r-" followed by from 4 to 32 lower-case + // letters or digits. + // + // * Organizational unit (OU): a string that begins with "ou-" followed by + // from 4 to 32 lower-case letters or digits (the ID of the root that the + // OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case + // letters or digits. + Id *string `type:"string"` + + // The type of the parent entity. + Type *string `type:"string" enum:"ParentType"` +} + +// String returns the string representation +func (s Parent) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Parent) GoString() string { + return s.String() +} + +// SetId sets the Id field's value. +func (s *Parent) SetId(v string) *Parent { + s.Id = &v + return s +} + +// SetType sets the Type field's value. +func (s *Parent) SetType(v string) *Parent { + s.Type = &v + return s +} + +// Contains rules to be applied to the affected accounts. Policies can be attached +// directly to accounts, or to roots and OUs to affect all accounts in those +// hierarchies. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/Policy +type Policy struct { + _ struct{} `type:"structure"` + + // The text content of the policy. + Content *string `min:"1" type:"string"` + + // A structure that contains additional details about the policy. + PolicySummary *PolicySummary `type:"structure"` +} + +// String returns the string representation +func (s Policy) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Policy) GoString() string { + return s.String() +} + +// SetContent sets the Content field's value. +func (s *Policy) SetContent(v string) *Policy { + s.Content = &v + return s +} + +// SetPolicySummary sets the PolicySummary field's value. +func (s *Policy) SetPolicySummary(v *PolicySummary) *Policy { + s.PolicySummary = v + return s +} + +// Contains information about a policy, but does not include the content. To +// see the content of a policy, see DescribePolicy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/PolicySummary +type PolicySummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the policy. + // + // For more information about ARNs in Organizations, see ARN Formats Supported + // by Organizations (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_permissions.html#orgs-permissions-arns) + // in the AWS Organizations User Guide. + Arn *string `type:"string"` + + // A boolean value that indicates whether the specified policy is an AWS managed + // policy. If true, then you can attach the policy to roots, OUs, or accounts, + // but you cannot edit it. + AwsManaged *bool `type:"boolean"` + + // The description of the policy. + Description *string `type:"string"` + + // The unique identifier (ID) of the policy. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a policy ID string + // requires "p-" followed by from 8 to 128 lower-case letters or digits. + Id *string `type:"string"` + + // The friendly name of the policy. + // + // The regex pattern (http://wikipedia.org/wiki/regex) that is used to validate + // this parameter is a string of any of the characters in the ASCII character + // range. + Name *string `min:"1" type:"string"` + + // The type of policy. + Type *string `type:"string" enum:"PolicyType"` +} + +// String returns the string representation +func (s PolicySummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PolicySummary) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *PolicySummary) SetArn(v string) *PolicySummary { + s.Arn = &v + return s +} + +// SetAwsManaged sets the AwsManaged field's value. +func (s *PolicySummary) SetAwsManaged(v bool) *PolicySummary { + s.AwsManaged = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *PolicySummary) SetDescription(v string) *PolicySummary { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *PolicySummary) SetId(v string) *PolicySummary { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *PolicySummary) SetName(v string) *PolicySummary { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *PolicySummary) SetType(v string) *PolicySummary { + s.Type = &v + return s +} + +// Contains information about a root, OU, or account that a policy is attached +// to. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/PolicyTargetSummary +type PolicyTargetSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the policy target. + // + // For more information about ARNs in Organizations, see ARN Formats Supported + // by Organizations (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_permissions.html#orgs-permissions-arns) + // in the AWS Organizations User Guide. + Arn *string `type:"string"` + + // The friendly name of the policy target. + // + // The regex pattern (http://wikipedia.org/wiki/regex) that is used to validate + // this parameter is a string of any of the characters in the ASCII character + // range. + Name *string `min:"1" type:"string"` + + // The unique identifier (ID) of the policy target. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a target ID string + // requires one of the following: + // + // * Root: a string that begins with "r-" followed by from 4 to 32 lower-case + // letters or digits. + // + // * Account: a string that consists of exactly 12 digits. + // + // * Organizational unit (OU): a string that begins with "ou-" followed by + // from 4 to 32 lower-case letters or digits (the ID of the root that the + // OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case + // letters or digits. + TargetId *string `type:"string"` + + // The type of the policy target. + Type *string `type:"string" enum:"TargetType"` +} + +// String returns the string representation +func (s PolicyTargetSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PolicyTargetSummary) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *PolicyTargetSummary) SetArn(v string) *PolicyTargetSummary { + s.Arn = &v + return s +} + +// SetName sets the Name field's value. +func (s *PolicyTargetSummary) SetName(v string) *PolicyTargetSummary { + s.Name = &v + return s +} + +// SetTargetId sets the TargetId field's value. +func (s *PolicyTargetSummary) SetTargetId(v string) *PolicyTargetSummary { + s.TargetId = &v + return s +} + +// SetType sets the Type field's value. +func (s *PolicyTargetSummary) SetType(v string) *PolicyTargetSummary { + s.Type = &v + return s +} + +// Contains information about a policy type and its status in the associated +// root. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/PolicyTypeSummary +type PolicyTypeSummary struct { + _ struct{} `type:"structure"` + + // The status of the policy type as it relates to the associated root. To attach + // a policy of the specified type to a root or to an OU or account in that root, + // it must be available in the organization and enabled for that root. + Status *string `type:"string" enum:"PolicyTypeStatus"` + + // The name of the policy type. + Type *string `type:"string" enum:"PolicyType"` +} + +// String returns the string representation +func (s PolicyTypeSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PolicyTypeSummary) GoString() string { + return s.String() +} + +// SetStatus sets the Status field's value. +func (s *PolicyTypeSummary) SetStatus(v string) *PolicyTypeSummary { + s.Status = &v + return s +} + +// SetType sets the Type field's value. +func (s *PolicyTypeSummary) SetType(v string) *PolicyTypeSummary { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/RemoveAccountFromOrganizationRequest +type RemoveAccountFromOrganizationInput struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) of the member account that you want to remove + // from the organization. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for an account ID string + // requires exactly 12 digits. + // + // AccountId is a required field + AccountId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s RemoveAccountFromOrganizationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveAccountFromOrganizationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RemoveAccountFromOrganizationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RemoveAccountFromOrganizationInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *RemoveAccountFromOrganizationInput) SetAccountId(v string) *RemoveAccountFromOrganizationInput { + s.AccountId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/RemoveAccountFromOrganizationOutput +type RemoveAccountFromOrganizationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s RemoveAccountFromOrganizationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveAccountFromOrganizationOutput) GoString() string { + return s.String() +} + +// Contains details about a root. A root is a top-level parent node in the hierarchy +// of an organization that can contain organizational units (OUs) and accounts. +// Every root contains every AWS account in the organization. Each root enables +// the accounts to be organized in a different way and to have different policy +// types enabled for use in that root. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/Root +type Root struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the root. + // + // For more information about ARNs in Organizations, see ARN Formats Supported + // by Organizations (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_permissions.html#orgs-permissions-arns) + // in the AWS Organizations User Guide. + Arn *string `type:"string"` + + // The unique identifier (ID) for the root. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a root ID string + // requires "r-" followed by from 4 to 32 lower-case letters or digits. + Id *string `type:"string"` + + // The friendly name of the root. + // + // The regex pattern (http://wikipedia.org/wiki/regex) that is used to validate + // this parameter is a string of any of the characters in the ASCII character + // range. + Name *string `min:"1" type:"string"` + + // The types of policies that are currently enabled for the root and therefore + // can be attached to the root or to its OUs or accounts. + PolicyTypes []*PolicyTypeSummary `type:"list"` +} + +// String returns the string representation +func (s Root) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Root) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *Root) SetArn(v string) *Root { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *Root) SetId(v string) *Root { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *Root) SetName(v string) *Root { + s.Name = &v + return s +} + +// SetPolicyTypes sets the PolicyTypes field's value. +func (s *Root) SetPolicyTypes(v []*PolicyTypeSummary) *Root { + s.PolicyTypes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/UpdateOrganizationalUnitRequest +type UpdateOrganizationalUnitInput struct { + _ struct{} `type:"structure"` + + // The new name that you want to assign to the OU. + // + // The regex pattern (http://wikipedia.org/wiki/regex) that is used to validate + // this parameter is a string of any of the characters in the ASCII character + // range. + Name *string `min:"1" type:"string"` + + // The unique identifier (ID) of the OU that you want to rename. You can get + // the ID from the ListOrganizationalUnitsForParent operation. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for an organizational + // unit ID string requires "ou-" followed by from 4 to 32 lower-case letters + // or digits (the ID of the root that contains the OU) followed by a second + // "-" dash and from 8 to 32 additional lower-case letters or digits. + // + // OrganizationalUnitId is a required field + OrganizationalUnitId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateOrganizationalUnitInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateOrganizationalUnitInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateOrganizationalUnitInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateOrganizationalUnitInput"} + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.OrganizationalUnitId == nil { + invalidParams.Add(request.NewErrParamRequired("OrganizationalUnitId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *UpdateOrganizationalUnitInput) SetName(v string) *UpdateOrganizationalUnitInput { + s.Name = &v + return s +} + +// SetOrganizationalUnitId sets the OrganizationalUnitId field's value. +func (s *UpdateOrganizationalUnitInput) SetOrganizationalUnitId(v string) *UpdateOrganizationalUnitInput { + s.OrganizationalUnitId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/UpdateOrganizationalUnitResponse +type UpdateOrganizationalUnitOutput struct { + _ struct{} `type:"structure"` + + // A structure that contains the details about the specified OU, including its + // new name. + OrganizationalUnit *OrganizationalUnit `type:"structure"` +} + +// String returns the string representation +func (s UpdateOrganizationalUnitOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateOrganizationalUnitOutput) GoString() string { + return s.String() +} + +// SetOrganizationalUnit sets the OrganizationalUnit field's value. +func (s *UpdateOrganizationalUnitOutput) SetOrganizationalUnit(v *OrganizationalUnit) *UpdateOrganizationalUnitOutput { + s.OrganizationalUnit = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/UpdatePolicyRequest +type UpdatePolicyInput struct { + _ struct{} `type:"structure"` + + // If provided, the new content for the policy. The text must be correctly formatted + // JSON that complies with the syntax for the policy's type. For more information, + // see Service Control Policy Syntax (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html) + // in the AWS Organizations User Guide. + Content *string `min:"1" type:"string"` + + // If provided, the new description for the policy. + Description *string `type:"string"` + + // If provided, the new name for the policy. + // + // The regex pattern (http://wikipedia.org/wiki/regex) that is used to validate + // this parameter is a string of any of the characters in the ASCII character + // range. + Name *string `min:"1" type:"string"` + + // The unique identifier (ID) of the policy that you want to update. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a policy ID string + // requires "p-" followed by from 8 to 128 lower-case letters or digits. + // + // PolicyId is a required field + PolicyId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdatePolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdatePolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdatePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdatePolicyInput"} + if s.Content != nil && len(*s.Content) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Content", 1)) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.PolicyId == nil { + invalidParams.Add(request.NewErrParamRequired("PolicyId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContent sets the Content field's value. +func (s *UpdatePolicyInput) SetContent(v string) *UpdatePolicyInput { + s.Content = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdatePolicyInput) SetDescription(v string) *UpdatePolicyInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdatePolicyInput) SetName(v string) *UpdatePolicyInput { + s.Name = &v + return s +} + +// SetPolicyId sets the PolicyId field's value. +func (s *UpdatePolicyInput) SetPolicyId(v string) *UpdatePolicyInput { + s.PolicyId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/UpdatePolicyResponse +type UpdatePolicyOutput struct { + _ struct{} `type:"structure"` + + // A structure that contains details about the updated policy, showing the requested + // changes. + Policy *Policy `type:"structure"` +} + +// String returns the string representation +func (s UpdatePolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdatePolicyOutput) GoString() string { + return s.String() +} + +// SetPolicy sets the Policy field's value. +func (s *UpdatePolicyOutput) SetPolicy(v *Policy) *UpdatePolicyOutput { + s.Policy = v + return s +} + +const ( + // AccountJoinedMethodInvited is a AccountJoinedMethod enum value + AccountJoinedMethodInvited = "INVITED" + + // AccountJoinedMethodCreated is a AccountJoinedMethod enum value + AccountJoinedMethodCreated = "CREATED" +) + +const ( + // AccountStatusActive is a AccountStatus enum value + AccountStatusActive = "ACTIVE" + + // AccountStatusSuspended is a AccountStatus enum value + AccountStatusSuspended = "SUSPENDED" +) + +const ( + // ActionTypeInvite is a ActionType enum value + ActionTypeInvite = "INVITE" + + // ActionTypeEnableAllFeatures is a ActionType enum value + ActionTypeEnableAllFeatures = "ENABLE_ALL_FEATURES" + + // ActionTypeApproveAllFeatures is a ActionType enum value + ActionTypeApproveAllFeatures = "APPROVE_ALL_FEATURES" +) + +const ( + // ChildTypeAccount is a ChildType enum value + ChildTypeAccount = "ACCOUNT" + + // ChildTypeOrganizationalUnit is a ChildType enum value + ChildTypeOrganizationalUnit = "ORGANIZATIONAL_UNIT" +) + +const ( + // ConstraintViolationExceptionReasonAccountNumberLimitExceeded is a ConstraintViolationExceptionReason enum value + ConstraintViolationExceptionReasonAccountNumberLimitExceeded = "ACCOUNT_NUMBER_LIMIT_EXCEEDED" + + // ConstraintViolationExceptionReasonHandshakeRateLimitExceeded is a ConstraintViolationExceptionReason enum value + ConstraintViolationExceptionReasonHandshakeRateLimitExceeded = "HANDSHAKE_RATE_LIMIT_EXCEEDED" + + // ConstraintViolationExceptionReasonOuNumberLimitExceeded is a ConstraintViolationExceptionReason enum value + ConstraintViolationExceptionReasonOuNumberLimitExceeded = "OU_NUMBER_LIMIT_EXCEEDED" + + // ConstraintViolationExceptionReasonOuDepthLimitExceeded is a ConstraintViolationExceptionReason enum value + ConstraintViolationExceptionReasonOuDepthLimitExceeded = "OU_DEPTH_LIMIT_EXCEEDED" + + // ConstraintViolationExceptionReasonPolicyNumberLimitExceeded is a ConstraintViolationExceptionReason enum value + ConstraintViolationExceptionReasonPolicyNumberLimitExceeded = "POLICY_NUMBER_LIMIT_EXCEEDED" + + // ConstraintViolationExceptionReasonMaxPolicyTypeAttachmentLimitExceeded is a ConstraintViolationExceptionReason enum value + ConstraintViolationExceptionReasonMaxPolicyTypeAttachmentLimitExceeded = "MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED" + + // ConstraintViolationExceptionReasonMinPolicyTypeAttachmentLimitExceeded is a ConstraintViolationExceptionReason enum value + ConstraintViolationExceptionReasonMinPolicyTypeAttachmentLimitExceeded = "MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED" + + // ConstraintViolationExceptionReasonAccountCannotLeaveOrganization is a ConstraintViolationExceptionReason enum value + ConstraintViolationExceptionReasonAccountCannotLeaveOrganization = "ACCOUNT_CANNOT_LEAVE_ORGANIZATION" + + // ConstraintViolationExceptionReasonMasterAccountPaymentInstrumentRequired is a ConstraintViolationExceptionReason enum value + ConstraintViolationExceptionReasonMasterAccountPaymentInstrumentRequired = "MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED" + + // ConstraintViolationExceptionReasonAccountCreationRateLimitExceeded is a ConstraintViolationExceptionReason enum value + ConstraintViolationExceptionReasonAccountCreationRateLimitExceeded = "ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED" +) + +const ( + // CreateAccountFailureReasonAccountLimitExceeded is a CreateAccountFailureReason enum value + CreateAccountFailureReasonAccountLimitExceeded = "ACCOUNT_LIMIT_EXCEEDED" + + // CreateAccountFailureReasonEmailAlreadyExists is a CreateAccountFailureReason enum value + CreateAccountFailureReasonEmailAlreadyExists = "EMAIL_ALREADY_EXISTS" + + // CreateAccountFailureReasonInvalidAddress is a CreateAccountFailureReason enum value + CreateAccountFailureReasonInvalidAddress = "INVALID_ADDRESS" + + // CreateAccountFailureReasonInternalFailure is a CreateAccountFailureReason enum value + CreateAccountFailureReasonInternalFailure = "INTERNAL_FAILURE" +) + +const ( + // CreateAccountStateInProgress is a CreateAccountState enum value + CreateAccountStateInProgress = "IN_PROGRESS" + + // CreateAccountStateSucceeded is a CreateAccountState enum value + CreateAccountStateSucceeded = "SUCCEEDED" + + // CreateAccountStateFailed is a CreateAccountState enum value + CreateAccountStateFailed = "FAILED" +) + +const ( + // HandshakeConstraintViolationExceptionReasonAccountNumberLimitExceeded is a HandshakeConstraintViolationExceptionReason enum value + HandshakeConstraintViolationExceptionReasonAccountNumberLimitExceeded = "ACCOUNT_NUMBER_LIMIT_EXCEEDED" + + // HandshakeConstraintViolationExceptionReasonHandshakeRateLimitExceeded is a HandshakeConstraintViolationExceptionReason enum value + HandshakeConstraintViolationExceptionReasonHandshakeRateLimitExceeded = "HANDSHAKE_RATE_LIMIT_EXCEEDED" + + // HandshakeConstraintViolationExceptionReasonAlreadyInAnOrganization is a HandshakeConstraintViolationExceptionReason enum value + HandshakeConstraintViolationExceptionReasonAlreadyInAnOrganization = "ALREADY_IN_AN_ORGANIZATION" + + // HandshakeConstraintViolationExceptionReasonOrganizationAlreadyHasAllFeatures is a HandshakeConstraintViolationExceptionReason enum value + HandshakeConstraintViolationExceptionReasonOrganizationAlreadyHasAllFeatures = "ORGANIZATION_ALREADY_HAS_ALL_FEATURES" + + // HandshakeConstraintViolationExceptionReasonInviteDisabledDuringEnableAllFeatures is a HandshakeConstraintViolationExceptionReason enum value + HandshakeConstraintViolationExceptionReasonInviteDisabledDuringEnableAllFeatures = "INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES" + + // HandshakeConstraintViolationExceptionReasonPaymentInstrumentRequired is a HandshakeConstraintViolationExceptionReason enum value + HandshakeConstraintViolationExceptionReasonPaymentInstrumentRequired = "PAYMENT_INSTRUMENT_REQUIRED" + + // HandshakeConstraintViolationExceptionReasonOrganizationFromDifferentSellerOfRecord is a HandshakeConstraintViolationExceptionReason enum value + HandshakeConstraintViolationExceptionReasonOrganizationFromDifferentSellerOfRecord = "ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD" + + // HandshakeConstraintViolationExceptionReasonOrganizationMembershipChangeRateLimitExceeded is a HandshakeConstraintViolationExceptionReason enum value + HandshakeConstraintViolationExceptionReasonOrganizationMembershipChangeRateLimitExceeded = "ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED" +) + +const ( + // HandshakePartyTypeAccount is a HandshakePartyType enum value + HandshakePartyTypeAccount = "ACCOUNT" + + // HandshakePartyTypeOrganization is a HandshakePartyType enum value + HandshakePartyTypeOrganization = "ORGANIZATION" + + // HandshakePartyTypeEmail is a HandshakePartyType enum value + HandshakePartyTypeEmail = "EMAIL" +) + +const ( + // HandshakeResourceTypeAccount is a HandshakeResourceType enum value + HandshakeResourceTypeAccount = "ACCOUNT" + + // HandshakeResourceTypeOrganization is a HandshakeResourceType enum value + HandshakeResourceTypeOrganization = "ORGANIZATION" + + // HandshakeResourceTypeOrganizationFeatureSet is a HandshakeResourceType enum value + HandshakeResourceTypeOrganizationFeatureSet = "ORGANIZATION_FEATURE_SET" + + // HandshakeResourceTypeEmail is a HandshakeResourceType enum value + HandshakeResourceTypeEmail = "EMAIL" + + // HandshakeResourceTypeMasterEmail is a HandshakeResourceType enum value + HandshakeResourceTypeMasterEmail = "MASTER_EMAIL" + + // HandshakeResourceTypeMasterName is a HandshakeResourceType enum value + HandshakeResourceTypeMasterName = "MASTER_NAME" + + // HandshakeResourceTypeNotes is a HandshakeResourceType enum value + HandshakeResourceTypeNotes = "NOTES" + + // HandshakeResourceTypeParentHandshake is a HandshakeResourceType enum value + HandshakeResourceTypeParentHandshake = "PARENT_HANDSHAKE" +) + +const ( + // HandshakeStateRequested is a HandshakeState enum value + HandshakeStateRequested = "REQUESTED" + + // HandshakeStateOpen is a HandshakeState enum value + HandshakeStateOpen = "OPEN" + + // HandshakeStateCanceled is a HandshakeState enum value + HandshakeStateCanceled = "CANCELED" + + // HandshakeStateAccepted is a HandshakeState enum value + HandshakeStateAccepted = "ACCEPTED" + + // HandshakeStateDeclined is a HandshakeState enum value + HandshakeStateDeclined = "DECLINED" + + // HandshakeStateExpired is a HandshakeState enum value + HandshakeStateExpired = "EXPIRED" +) + +const ( + // IAMUserAccessToBillingAllow is a IAMUserAccessToBilling enum value + IAMUserAccessToBillingAllow = "ALLOW" + + // IAMUserAccessToBillingDeny is a IAMUserAccessToBilling enum value + IAMUserAccessToBillingDeny = "DENY" +) + +const ( + // InvalidInputExceptionReasonInvalidPartyTypeTarget is a InvalidInputExceptionReason enum value + InvalidInputExceptionReasonInvalidPartyTypeTarget = "INVALID_PARTY_TYPE_TARGET" + + // InvalidInputExceptionReasonInvalidSyntaxOrganizationArn is a InvalidInputExceptionReason enum value + InvalidInputExceptionReasonInvalidSyntaxOrganizationArn = "INVALID_SYNTAX_ORGANIZATION_ARN" + + // InvalidInputExceptionReasonInvalidSyntaxPolicyId is a InvalidInputExceptionReason enum value + InvalidInputExceptionReasonInvalidSyntaxPolicyId = "INVALID_SYNTAX_POLICY_ID" + + // InvalidInputExceptionReasonInvalidEnum is a InvalidInputExceptionReason enum value + InvalidInputExceptionReasonInvalidEnum = "INVALID_ENUM" + + // InvalidInputExceptionReasonInvalidListMember is a InvalidInputExceptionReason enum value + InvalidInputExceptionReasonInvalidListMember = "INVALID_LIST_MEMBER" + + // InvalidInputExceptionReasonMaxLengthExceeded is a InvalidInputExceptionReason enum value + InvalidInputExceptionReasonMaxLengthExceeded = "MAX_LENGTH_EXCEEDED" + + // InvalidInputExceptionReasonMaxValueExceeded is a InvalidInputExceptionReason enum value + InvalidInputExceptionReasonMaxValueExceeded = "MAX_VALUE_EXCEEDED" + + // InvalidInputExceptionReasonMinLengthExceeded is a InvalidInputExceptionReason enum value + InvalidInputExceptionReasonMinLengthExceeded = "MIN_LENGTH_EXCEEDED" + + // InvalidInputExceptionReasonMinValueExceeded is a InvalidInputExceptionReason enum value + InvalidInputExceptionReasonMinValueExceeded = "MIN_VALUE_EXCEEDED" + + // InvalidInputExceptionReasonImmutablePolicy is a InvalidInputExceptionReason enum value + InvalidInputExceptionReasonImmutablePolicy = "IMMUTABLE_POLICY" + + // InvalidInputExceptionReasonInvalidPattern is a InvalidInputExceptionReason enum value + InvalidInputExceptionReasonInvalidPattern = "INVALID_PATTERN" + + // InvalidInputExceptionReasonInvalidPatternTargetId is a InvalidInputExceptionReason enum value + InvalidInputExceptionReasonInvalidPatternTargetId = "INVALID_PATTERN_TARGET_ID" + + // InvalidInputExceptionReasonInputRequired is a InvalidInputExceptionReason enum value + InvalidInputExceptionReasonInputRequired = "INPUT_REQUIRED" + + // InvalidInputExceptionReasonInvalidNextToken is a InvalidInputExceptionReason enum value + InvalidInputExceptionReasonInvalidNextToken = "INVALID_NEXT_TOKEN" + + // InvalidInputExceptionReasonMaxLimitExceededFilter is a InvalidInputExceptionReason enum value + InvalidInputExceptionReasonMaxLimitExceededFilter = "MAX_LIMIT_EXCEEDED_FILTER" + + // InvalidInputExceptionReasonMovingAccountBetweenDifferentRoots is a InvalidInputExceptionReason enum value + InvalidInputExceptionReasonMovingAccountBetweenDifferentRoots = "MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS" +) + +const ( + // OrganizationFeatureSetAll is a OrganizationFeatureSet enum value + OrganizationFeatureSetAll = "ALL" + + // OrganizationFeatureSetConsolidatedBilling is a OrganizationFeatureSet enum value + OrganizationFeatureSetConsolidatedBilling = "CONSOLIDATED_BILLING" +) + +const ( + // ParentTypeRoot is a ParentType enum value + ParentTypeRoot = "ROOT" + + // ParentTypeOrganizationalUnit is a ParentType enum value + ParentTypeOrganizationalUnit = "ORGANIZATIONAL_UNIT" +) + +const ( + // PolicyTypeServiceControlPolicy is a PolicyType enum value + PolicyTypeServiceControlPolicy = "SERVICE_CONTROL_POLICY" +) + +const ( + // PolicyTypeStatusEnabled is a PolicyTypeStatus enum value + PolicyTypeStatusEnabled = "ENABLED" + + // PolicyTypeStatusPendingEnable is a PolicyTypeStatus enum value + PolicyTypeStatusPendingEnable = "PENDING_ENABLE" + + // PolicyTypeStatusPendingDisable is a PolicyTypeStatus enum value + PolicyTypeStatusPendingDisable = "PENDING_DISABLE" +) + +const ( + // TargetTypeAccount is a TargetType enum value + TargetTypeAccount = "ACCOUNT" + + // TargetTypeOrganizationalUnit is a TargetType enum value + TargetTypeOrganizationalUnit = "ORGANIZATIONAL_UNIT" + + // TargetTypeRoot is a TargetType enum value + TargetTypeRoot = "ROOT" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/organizations/errors.go b/vendor/github.com/aws/aws-sdk-go/service/organizations/errors.go new file mode 100644 index 000000000..20edd10ef --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/organizations/errors.go @@ -0,0 +1,274 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package organizations + +const ( + + // ErrCodeAWSOrganizationsNotInUseException for service response error code + // "AWSOrganizationsNotInUseException". + // + // Your account is not a member of an organization. To make this request, you + // must use the credentials of an account that belongs to an organization. + ErrCodeAWSOrganizationsNotInUseException = "AWSOrganizationsNotInUseException" + + // ErrCodeAccessDeniedException for service response error code + // "AccessDeniedException". + // + // You don't have permissions to perform the requested operation. The user or + // role that is making the request must have at least one IAM permissions policy + // attached that grants the required permissions. For more information, see + // Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) + // in the IAM User Guide. + ErrCodeAccessDeniedException = "AccessDeniedException" + + // ErrCodeAccountNotFoundException for service response error code + // "AccountNotFoundException". + // + // We can't find an AWS account with the AccountId that you specified, or the + // account whose credentials you used to make this request is not a member of + // an organization. + ErrCodeAccountNotFoundException = "AccountNotFoundException" + + // ErrCodeAlreadyInOrganizationException for service response error code + // "AlreadyInOrganizationException". + // + // This account is already a member of an organization. An account can belong + // to only one organization at a time. + ErrCodeAlreadyInOrganizationException = "AlreadyInOrganizationException" + + // ErrCodeChildNotFoundException for service response error code + // "ChildNotFoundException". + // + // We can't find an organizational unit (OU) or AWS account with the ChildId + // that you specified. + ErrCodeChildNotFoundException = "ChildNotFoundException" + + // ErrCodeConcurrentModificationException for service response error code + // "ConcurrentModificationException". + // + // The target of the operation is currently being modified by a different request. + // Try again later. + ErrCodeConcurrentModificationException = "ConcurrentModificationException" + + // ErrCodeConstraintViolationException for service response error code + // "ConstraintViolationException". + // + // Performing this operation violates a minimum or maximum value limit. For + // example, attempting to removing the last SCP from an OU or root, inviting + // or creating too many accounts to the organization, or attaching too many + // policies to an account, OU, or root. + ErrCodeConstraintViolationException = "ConstraintViolationException" + + // ErrCodeCreateAccountStatusNotFoundException for service response error code + // "CreateAccountStatusNotFoundException". + // + // We can't find an create account request with the CreateAccountRequestId that + // you specified. + ErrCodeCreateAccountStatusNotFoundException = "CreateAccountStatusNotFoundException" + + // ErrCodeDestinationParentNotFoundException for service response error code + // "DestinationParentNotFoundException". + // + // We can't find the destination container (a root or OU) with the ParentId + // that you specified. + ErrCodeDestinationParentNotFoundException = "DestinationParentNotFoundException" + + // ErrCodeDuplicateAccountException for service response error code + // "DuplicateAccountException". + // + // That account is already present in the specified destination. + ErrCodeDuplicateAccountException = "DuplicateAccountException" + + // ErrCodeDuplicateHandshakeException for service response error code + // "DuplicateHandshakeException". + // + // A handshake with the same action and target already exists. For example, + // if you invited an account to join your organization, the invited account + // might already have a pending invitation from this organization. If you intend + // to resend an invitation to an account, ensure that existing handshakes that + // might be considered duplicates are canceled or declined. + ErrCodeDuplicateHandshakeException = "DuplicateHandshakeException" + + // ErrCodeDuplicateOrganizationalUnitException for service response error code + // "DuplicateOrganizationalUnitException". + // + // An organizational unit (OU) with the same name already exists. + ErrCodeDuplicateOrganizationalUnitException = "DuplicateOrganizationalUnitException" + + // ErrCodeDuplicatePolicyAttachmentException for service response error code + // "DuplicatePolicyAttachmentException". + // + // The selected policy is already attached to the specified target. + ErrCodeDuplicatePolicyAttachmentException = "DuplicatePolicyAttachmentException" + + // ErrCodeDuplicatePolicyException for service response error code + // "DuplicatePolicyException". + // + // A policy with the same name already exists. + ErrCodeDuplicatePolicyException = "DuplicatePolicyException" + + // ErrCodeFinalizingOrganizationException for service response error code + // "FinalizingOrganizationException". + // + // AWS Organizations could not finalize the creation of your organization. Try + // again later. If this persists, contact AWS customer support. + ErrCodeFinalizingOrganizationException = "FinalizingOrganizationException" + + // ErrCodeHandshakeAlreadyInStateException for service response error code + // "HandshakeAlreadyInStateException". + // + // The specified handshake is already in the requested state. For example, you + // can't accept a handshake that was already accepted. + ErrCodeHandshakeAlreadyInStateException = "HandshakeAlreadyInStateException" + + // ErrCodeHandshakeConstraintViolationException for service response error code + // "HandshakeConstraintViolationException". + // + // The requested operation would violate the constraint identified in the reason + // code. + ErrCodeHandshakeConstraintViolationException = "HandshakeConstraintViolationException" + + // ErrCodeHandshakeNotFoundException for service response error code + // "HandshakeNotFoundException". + // + // We can't find a handshake with the HandshakeId that you specified. + ErrCodeHandshakeNotFoundException = "HandshakeNotFoundException" + + // ErrCodeInvalidHandshakeTransitionException for service response error code + // "InvalidHandshakeTransitionException". + // + // You can't perform the operation on the handshake in its current state. For + // example, you can't cancel a handshake that was already accepted, or accept + // a handshake that was already declined. + ErrCodeInvalidHandshakeTransitionException = "InvalidHandshakeTransitionException" + + // ErrCodeInvalidInputException for service response error code + // "InvalidInputException". + // + // You provided invalid values for one or more of the request parameters. + ErrCodeInvalidInputException = "InvalidInputException" + + // ErrCodeMalformedPolicyDocumentException for service response error code + // "MalformedPolicyDocumentException". + // + // The provided policy document does not meet the requirements of the specified + // policy type. For example, the syntax might be incorrect. For details about + // service control policy syntax, see Service Control Policy Syntax (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html) + // in the AWS Organizations User Guide. + ErrCodeMalformedPolicyDocumentException = "MalformedPolicyDocumentException" + + // ErrCodeMasterCannotLeaveOrganizationException for service response error code + // "MasterCannotLeaveOrganizationException". + // + // You can't remove a master account from an organization. If you want the master + // account to become a member account in another organization, you must first + // delete the current organization of the master account. + ErrCodeMasterCannotLeaveOrganizationException = "MasterCannotLeaveOrganizationException" + + // ErrCodeOrganizationNotEmptyException for service response error code + // "OrganizationNotEmptyException". + // + // The organization isn't empty. To delete an organization, you must first remove + // all accounts except the master account, delete all organizational units (OUs), + // and delete all policies. + ErrCodeOrganizationNotEmptyException = "OrganizationNotEmptyException" + + // ErrCodeOrganizationalUnitNotEmptyException for service response error code + // "OrganizationalUnitNotEmptyException". + // + // The specified organizational unit (OU) is not empty. Move all accounts to + // another root or to other OUs, remove all child OUs, and then try the operation + // again. + ErrCodeOrganizationalUnitNotEmptyException = "OrganizationalUnitNotEmptyException" + + // ErrCodeOrganizationalUnitNotFoundException for service response error code + // "OrganizationalUnitNotFoundException". + // + // We can't find an organizational unit (OU) with the OrganizationalUnitId that + // you specified. + ErrCodeOrganizationalUnitNotFoundException = "OrganizationalUnitNotFoundException" + + // ErrCodeParentNotFoundException for service response error code + // "ParentNotFoundException". + // + // We can't find a root or organizational unit (OU) with the ParentId that you + // specified. + ErrCodeParentNotFoundException = "ParentNotFoundException" + + // ErrCodePolicyInUseException for service response error code + // "PolicyInUseException". + // + // The policy is attached to one or more entities. You must detach it from all + // roots, organizational units (OUs), and accounts before performing this operation. + ErrCodePolicyInUseException = "PolicyInUseException" + + // ErrCodePolicyNotAttachedException for service response error code + // "PolicyNotAttachedException". + // + // The policy isn't attached to the specified target in the specified root. + ErrCodePolicyNotAttachedException = "PolicyNotAttachedException" + + // ErrCodePolicyNotFoundException for service response error code + // "PolicyNotFoundException". + // + // We can't find a policy with the PolicyId that you specified. + ErrCodePolicyNotFoundException = "PolicyNotFoundException" + + // ErrCodePolicyTypeAlreadyEnabledException for service response error code + // "PolicyTypeAlreadyEnabledException". + // + // The specified policy type is already enabled in the specified root. + ErrCodePolicyTypeAlreadyEnabledException = "PolicyTypeAlreadyEnabledException" + + // ErrCodePolicyTypeNotAvailableForOrganizationException for service response error code + // "PolicyTypeNotAvailableForOrganizationException". + // + // You can't use the specified policy type with the feature set currently enabled + // for this organization. For example, you can enable service control policies + // (SCPs) only after you enable all features in the organization. For more information, + // see Enabling and Disabling a Policy Type on a Root (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html#enable_policies_on_root) + // in the AWS Organizations User Guide. + ErrCodePolicyTypeNotAvailableForOrganizationException = "PolicyTypeNotAvailableForOrganizationException" + + // ErrCodePolicyTypeNotEnabledException for service response error code + // "PolicyTypeNotEnabledException". + // + // The specified policy type is not currently enabled in this root. You cannot + // attach policies of the specified type to entities in a root until you enable + // that type in the root. For more information, see Enabling All Features in + // Your Organization (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html) + // in the AWS Organizations User Guide. + ErrCodePolicyTypeNotEnabledException = "PolicyTypeNotEnabledException" + + // ErrCodeRootNotFoundException for service response error code + // "RootNotFoundException". + // + // We can't find a root with the RootId that you specified. + ErrCodeRootNotFoundException = "RootNotFoundException" + + // ErrCodeServiceException for service response error code + // "ServiceException". + // + // AWS Organizations can't complete your request because of an internal service + // error. Try again later. + ErrCodeServiceException = "ServiceException" + + // ErrCodeSourceParentNotFoundException for service response error code + // "SourceParentNotFoundException". + // + // We can't find a source root or OU with the ParentId that you specified. + ErrCodeSourceParentNotFoundException = "SourceParentNotFoundException" + + // ErrCodeTargetNotFoundException for service response error code + // "TargetNotFoundException". + // + // We can't find a root, OU, or account with the TargetId that you specified. + ErrCodeTargetNotFoundException = "TargetNotFoundException" + + // ErrCodeTooManyRequestsException for service response error code + // "TooManyRequestsException". + // + // You've sent too many requests in too short a period of time. The limit helps + // protect against denial-of-service attacks. Try again later. + ErrCodeTooManyRequestsException = "TooManyRequestsException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/organizations/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/organizations/examples_test.go new file mode 100644 index 000000000..5a49b3254 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/organizations/examples_test.go @@ -0,0 +1,881 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package organizations_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/organizations" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExampleOrganizations_AcceptHandshake() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.AcceptHandshakeInput{ + HandshakeId: aws.String("HandshakeId"), // Required + } + resp, err := svc.AcceptHandshake(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_AttachPolicy() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.AttachPolicyInput{ + PolicyId: aws.String("PolicyId"), // Required + TargetId: aws.String("PolicyTargetId"), // Required + } + resp, err := svc.AttachPolicy(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_CancelHandshake() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.CancelHandshakeInput{ + HandshakeId: aws.String("HandshakeId"), // Required + } + resp, err := svc.CancelHandshake(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_CreateAccount() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.CreateAccountInput{ + AccountName: aws.String("AccountName"), // Required + Email: aws.String("Email"), // Required + IamUserAccessToBilling: aws.String("IAMUserAccessToBilling"), + RoleName: aws.String("RoleName"), + } + resp, err := svc.CreateAccount(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_CreateOrganization() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.CreateOrganizationInput{ + FeatureSet: aws.String("OrganizationFeatureSet"), + } + resp, err := svc.CreateOrganization(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_CreateOrganizationalUnit() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.CreateOrganizationalUnitInput{ + Name: aws.String("OrganizationalUnitName"), // Required + ParentId: aws.String("ParentId"), // Required + } + resp, err := svc.CreateOrganizationalUnit(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_CreatePolicy() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.CreatePolicyInput{ + Content: aws.String("PolicyContent"), // Required + Description: aws.String("PolicyDescription"), // Required + Name: aws.String("PolicyName"), // Required + Type: aws.String("PolicyType"), // Required + } + resp, err := svc.CreatePolicy(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_DeclineHandshake() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.DeclineHandshakeInput{ + HandshakeId: aws.String("HandshakeId"), // Required + } + resp, err := svc.DeclineHandshake(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_DeleteOrganization() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + var params *organizations.DeleteOrganizationInput + resp, err := svc.DeleteOrganization(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_DeleteOrganizationalUnit() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.DeleteOrganizationalUnitInput{ + OrganizationalUnitId: aws.String("OrganizationalUnitId"), // Required + } + resp, err := svc.DeleteOrganizationalUnit(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_DeletePolicy() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.DeletePolicyInput{ + PolicyId: aws.String("PolicyId"), // Required + } + resp, err := svc.DeletePolicy(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_DescribeAccount() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.DescribeAccountInput{ + AccountId: aws.String("AccountId"), // Required + } + resp, err := svc.DescribeAccount(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_DescribeCreateAccountStatus() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.DescribeCreateAccountStatusInput{ + CreateAccountRequestId: aws.String("CreateAccountRequestId"), // Required + } + resp, err := svc.DescribeCreateAccountStatus(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_DescribeHandshake() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.DescribeHandshakeInput{ + HandshakeId: aws.String("HandshakeId"), // Required + } + resp, err := svc.DescribeHandshake(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_DescribeOrganization() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + var params *organizations.DescribeOrganizationInput + resp, err := svc.DescribeOrganization(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_DescribeOrganizationalUnit() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.DescribeOrganizationalUnitInput{ + OrganizationalUnitId: aws.String("OrganizationalUnitId"), // Required + } + resp, err := svc.DescribeOrganizationalUnit(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_DescribePolicy() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.DescribePolicyInput{ + PolicyId: aws.String("PolicyId"), // Required + } + resp, err := svc.DescribePolicy(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_DetachPolicy() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.DetachPolicyInput{ + PolicyId: aws.String("PolicyId"), // Required + TargetId: aws.String("PolicyTargetId"), // Required + } + resp, err := svc.DetachPolicy(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_DisablePolicyType() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.DisablePolicyTypeInput{ + PolicyType: aws.String("PolicyType"), // Required + RootId: aws.String("RootId"), // Required + } + resp, err := svc.DisablePolicyType(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_EnableAllFeatures() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + var params *organizations.EnableAllFeaturesInput + resp, err := svc.EnableAllFeatures(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_EnablePolicyType() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.EnablePolicyTypeInput{ + PolicyType: aws.String("PolicyType"), // Required + RootId: aws.String("RootId"), // Required + } + resp, err := svc.EnablePolicyType(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_InviteAccountToOrganization() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.InviteAccountToOrganizationInput{ + Target: &organizations.HandshakeParty{ // Required + Id: aws.String("HandshakePartyId"), + Type: aws.String("HandshakePartyType"), + }, + Notes: aws.String("HandshakeNotes"), + } + resp, err := svc.InviteAccountToOrganization(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_LeaveOrganization() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + var params *organizations.LeaveOrganizationInput + resp, err := svc.LeaveOrganization(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_ListAccounts() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.ListAccountsInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListAccounts(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_ListAccountsForParent() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.ListAccountsForParentInput{ + ParentId: aws.String("ParentId"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListAccountsForParent(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_ListChildren() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.ListChildrenInput{ + ChildType: aws.String("ChildType"), // Required + ParentId: aws.String("ParentId"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListChildren(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_ListCreateAccountStatus() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.ListCreateAccountStatusInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + States: []*string{ + aws.String("CreateAccountState"), // Required + // More values... + }, + } + resp, err := svc.ListCreateAccountStatus(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_ListHandshakesForAccount() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.ListHandshakesForAccountInput{ + Filter: &organizations.HandshakeFilter{ + ActionType: aws.String("ActionType"), + ParentHandshakeId: aws.String("HandshakeId"), + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListHandshakesForAccount(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_ListHandshakesForOrganization() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.ListHandshakesForOrganizationInput{ + Filter: &organizations.HandshakeFilter{ + ActionType: aws.String("ActionType"), + ParentHandshakeId: aws.String("HandshakeId"), + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListHandshakesForOrganization(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_ListOrganizationalUnitsForParent() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.ListOrganizationalUnitsForParentInput{ + ParentId: aws.String("ParentId"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListOrganizationalUnitsForParent(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_ListParents() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.ListParentsInput{ + ChildId: aws.String("ChildId"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListParents(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_ListPolicies() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.ListPoliciesInput{ + Filter: aws.String("PolicyType"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListPolicies(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_ListPoliciesForTarget() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.ListPoliciesForTargetInput{ + Filter: aws.String("PolicyType"), // Required + TargetId: aws.String("PolicyTargetId"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListPoliciesForTarget(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_ListRoots() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.ListRootsInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListRoots(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_ListTargetsForPolicy() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.ListTargetsForPolicyInput{ + PolicyId: aws.String("PolicyId"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListTargetsForPolicy(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_MoveAccount() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.MoveAccountInput{ + AccountId: aws.String("AccountId"), // Required + DestinationParentId: aws.String("ParentId"), // Required + SourceParentId: aws.String("ParentId"), // Required + } + resp, err := svc.MoveAccount(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_RemoveAccountFromOrganization() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.RemoveAccountFromOrganizationInput{ + AccountId: aws.String("AccountId"), // Required + } + resp, err := svc.RemoveAccountFromOrganization(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_UpdateOrganizationalUnit() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.UpdateOrganizationalUnitInput{ + OrganizationalUnitId: aws.String("OrganizationalUnitId"), // Required + Name: aws.String("OrganizationalUnitName"), + } + resp, err := svc.UpdateOrganizationalUnit(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleOrganizations_UpdatePolicy() { + sess := session.Must(session.NewSession()) + + svc := organizations.New(sess) + + params := &organizations.UpdatePolicyInput{ + PolicyId: aws.String("PolicyId"), // Required + Content: aws.String("PolicyContent"), + Description: aws.String("PolicyDescription"), + Name: aws.String("PolicyName"), + } + resp, err := svc.UpdatePolicy(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/organizations/organizationsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/organizations/organizationsiface/interface.go new file mode 100644 index 000000000..cb24b4c48 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/organizations/organizationsiface/interface.go @@ -0,0 +1,219 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package organizationsiface provides an interface to enable mocking the AWS Organizations service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package organizationsiface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/organizations" +) + +// OrganizationsAPI provides an interface to enable mocking the +// organizations.Organizations service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS Organizations. +// func myFunc(svc organizationsiface.OrganizationsAPI) bool { +// // Make svc.AcceptHandshake request +// } +// +// func main() { +// sess := session.New() +// svc := organizations.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockOrganizationsClient struct { +// organizationsiface.OrganizationsAPI +// } +// func (m *mockOrganizationsClient) AcceptHandshake(input *organizations.AcceptHandshakeInput) (*organizations.AcceptHandshakeOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockOrganizationsClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type OrganizationsAPI interface { + AcceptHandshakeRequest(*organizations.AcceptHandshakeInput) (*request.Request, *organizations.AcceptHandshakeOutput) + + AcceptHandshake(*organizations.AcceptHandshakeInput) (*organizations.AcceptHandshakeOutput, error) + + AttachPolicyRequest(*organizations.AttachPolicyInput) (*request.Request, *organizations.AttachPolicyOutput) + + AttachPolicy(*organizations.AttachPolicyInput) (*organizations.AttachPolicyOutput, error) + + CancelHandshakeRequest(*organizations.CancelHandshakeInput) (*request.Request, *organizations.CancelHandshakeOutput) + + CancelHandshake(*organizations.CancelHandshakeInput) (*organizations.CancelHandshakeOutput, error) + + CreateAccountRequest(*organizations.CreateAccountInput) (*request.Request, *organizations.CreateAccountOutput) + + CreateAccount(*organizations.CreateAccountInput) (*organizations.CreateAccountOutput, error) + + CreateOrganizationRequest(*organizations.CreateOrganizationInput) (*request.Request, *organizations.CreateOrganizationOutput) + + CreateOrganization(*organizations.CreateOrganizationInput) (*organizations.CreateOrganizationOutput, error) + + CreateOrganizationalUnitRequest(*organizations.CreateOrganizationalUnitInput) (*request.Request, *organizations.CreateOrganizationalUnitOutput) + + CreateOrganizationalUnit(*organizations.CreateOrganizationalUnitInput) (*organizations.CreateOrganizationalUnitOutput, error) + + CreatePolicyRequest(*organizations.CreatePolicyInput) (*request.Request, *organizations.CreatePolicyOutput) + + CreatePolicy(*organizations.CreatePolicyInput) (*organizations.CreatePolicyOutput, error) + + DeclineHandshakeRequest(*organizations.DeclineHandshakeInput) (*request.Request, *organizations.DeclineHandshakeOutput) + + DeclineHandshake(*organizations.DeclineHandshakeInput) (*organizations.DeclineHandshakeOutput, error) + + DeleteOrganizationRequest(*organizations.DeleteOrganizationInput) (*request.Request, *organizations.DeleteOrganizationOutput) + + DeleteOrganization(*organizations.DeleteOrganizationInput) (*organizations.DeleteOrganizationOutput, error) + + DeleteOrganizationalUnitRequest(*organizations.DeleteOrganizationalUnitInput) (*request.Request, *organizations.DeleteOrganizationalUnitOutput) + + DeleteOrganizationalUnit(*organizations.DeleteOrganizationalUnitInput) (*organizations.DeleteOrganizationalUnitOutput, error) + + DeletePolicyRequest(*organizations.DeletePolicyInput) (*request.Request, *organizations.DeletePolicyOutput) + + DeletePolicy(*organizations.DeletePolicyInput) (*organizations.DeletePolicyOutput, error) + + DescribeAccountRequest(*organizations.DescribeAccountInput) (*request.Request, *organizations.DescribeAccountOutput) + + DescribeAccount(*organizations.DescribeAccountInput) (*organizations.DescribeAccountOutput, error) + + DescribeCreateAccountStatusRequest(*organizations.DescribeCreateAccountStatusInput) (*request.Request, *organizations.DescribeCreateAccountStatusOutput) + + DescribeCreateAccountStatus(*organizations.DescribeCreateAccountStatusInput) (*organizations.DescribeCreateAccountStatusOutput, error) + + DescribeHandshakeRequest(*organizations.DescribeHandshakeInput) (*request.Request, *organizations.DescribeHandshakeOutput) + + DescribeHandshake(*organizations.DescribeHandshakeInput) (*organizations.DescribeHandshakeOutput, error) + + DescribeOrganizationRequest(*organizations.DescribeOrganizationInput) (*request.Request, *organizations.DescribeOrganizationOutput) + + DescribeOrganization(*organizations.DescribeOrganizationInput) (*organizations.DescribeOrganizationOutput, error) + + DescribeOrganizationalUnitRequest(*organizations.DescribeOrganizationalUnitInput) (*request.Request, *organizations.DescribeOrganizationalUnitOutput) + + DescribeOrganizationalUnit(*organizations.DescribeOrganizationalUnitInput) (*organizations.DescribeOrganizationalUnitOutput, error) + + DescribePolicyRequest(*organizations.DescribePolicyInput) (*request.Request, *organizations.DescribePolicyOutput) + + DescribePolicy(*organizations.DescribePolicyInput) (*organizations.DescribePolicyOutput, error) + + DetachPolicyRequest(*organizations.DetachPolicyInput) (*request.Request, *organizations.DetachPolicyOutput) + + DetachPolicy(*organizations.DetachPolicyInput) (*organizations.DetachPolicyOutput, error) + + DisablePolicyTypeRequest(*organizations.DisablePolicyTypeInput) (*request.Request, *organizations.DisablePolicyTypeOutput) + + DisablePolicyType(*organizations.DisablePolicyTypeInput) (*organizations.DisablePolicyTypeOutput, error) + + EnableAllFeaturesRequest(*organizations.EnableAllFeaturesInput) (*request.Request, *organizations.EnableAllFeaturesOutput) + + EnableAllFeatures(*organizations.EnableAllFeaturesInput) (*organizations.EnableAllFeaturesOutput, error) + + EnablePolicyTypeRequest(*organizations.EnablePolicyTypeInput) (*request.Request, *organizations.EnablePolicyTypeOutput) + + EnablePolicyType(*organizations.EnablePolicyTypeInput) (*organizations.EnablePolicyTypeOutput, error) + + InviteAccountToOrganizationRequest(*organizations.InviteAccountToOrganizationInput) (*request.Request, *organizations.InviteAccountToOrganizationOutput) + + InviteAccountToOrganization(*organizations.InviteAccountToOrganizationInput) (*organizations.InviteAccountToOrganizationOutput, error) + + LeaveOrganizationRequest(*organizations.LeaveOrganizationInput) (*request.Request, *organizations.LeaveOrganizationOutput) + + LeaveOrganization(*organizations.LeaveOrganizationInput) (*organizations.LeaveOrganizationOutput, error) + + ListAccountsRequest(*organizations.ListAccountsInput) (*request.Request, *organizations.ListAccountsOutput) + + ListAccounts(*organizations.ListAccountsInput) (*organizations.ListAccountsOutput, error) + + ListAccountsForParentRequest(*organizations.ListAccountsForParentInput) (*request.Request, *organizations.ListAccountsForParentOutput) + + ListAccountsForParent(*organizations.ListAccountsForParentInput) (*organizations.ListAccountsForParentOutput, error) + + ListChildrenRequest(*organizations.ListChildrenInput) (*request.Request, *organizations.ListChildrenOutput) + + ListChildren(*organizations.ListChildrenInput) (*organizations.ListChildrenOutput, error) + + ListCreateAccountStatusRequest(*organizations.ListCreateAccountStatusInput) (*request.Request, *organizations.ListCreateAccountStatusOutput) + + ListCreateAccountStatus(*organizations.ListCreateAccountStatusInput) (*organizations.ListCreateAccountStatusOutput, error) + + ListHandshakesForAccountRequest(*organizations.ListHandshakesForAccountInput) (*request.Request, *organizations.ListHandshakesForAccountOutput) + + ListHandshakesForAccount(*organizations.ListHandshakesForAccountInput) (*organizations.ListHandshakesForAccountOutput, error) + + ListHandshakesForOrganizationRequest(*organizations.ListHandshakesForOrganizationInput) (*request.Request, *organizations.ListHandshakesForOrganizationOutput) + + ListHandshakesForOrganization(*organizations.ListHandshakesForOrganizationInput) (*organizations.ListHandshakesForOrganizationOutput, error) + + ListOrganizationalUnitsForParentRequest(*organizations.ListOrganizationalUnitsForParentInput) (*request.Request, *organizations.ListOrganizationalUnitsForParentOutput) + + ListOrganizationalUnitsForParent(*organizations.ListOrganizationalUnitsForParentInput) (*organizations.ListOrganizationalUnitsForParentOutput, error) + + ListParentsRequest(*organizations.ListParentsInput) (*request.Request, *organizations.ListParentsOutput) + + ListParents(*organizations.ListParentsInput) (*organizations.ListParentsOutput, error) + + ListPoliciesRequest(*organizations.ListPoliciesInput) (*request.Request, *organizations.ListPoliciesOutput) + + ListPolicies(*organizations.ListPoliciesInput) (*organizations.ListPoliciesOutput, error) + + ListPoliciesForTargetRequest(*organizations.ListPoliciesForTargetInput) (*request.Request, *organizations.ListPoliciesForTargetOutput) + + ListPoliciesForTarget(*organizations.ListPoliciesForTargetInput) (*organizations.ListPoliciesForTargetOutput, error) + + ListRootsRequest(*organizations.ListRootsInput) (*request.Request, *organizations.ListRootsOutput) + + ListRoots(*organizations.ListRootsInput) (*organizations.ListRootsOutput, error) + + ListTargetsForPolicyRequest(*organizations.ListTargetsForPolicyInput) (*request.Request, *organizations.ListTargetsForPolicyOutput) + + ListTargetsForPolicy(*organizations.ListTargetsForPolicyInput) (*organizations.ListTargetsForPolicyOutput, error) + + MoveAccountRequest(*organizations.MoveAccountInput) (*request.Request, *organizations.MoveAccountOutput) + + MoveAccount(*organizations.MoveAccountInput) (*organizations.MoveAccountOutput, error) + + RemoveAccountFromOrganizationRequest(*organizations.RemoveAccountFromOrganizationInput) (*request.Request, *organizations.RemoveAccountFromOrganizationOutput) + + RemoveAccountFromOrganization(*organizations.RemoveAccountFromOrganizationInput) (*organizations.RemoveAccountFromOrganizationOutput, error) + + UpdateOrganizationalUnitRequest(*organizations.UpdateOrganizationalUnitInput) (*request.Request, *organizations.UpdateOrganizationalUnitOutput) + + UpdateOrganizationalUnit(*organizations.UpdateOrganizationalUnitInput) (*organizations.UpdateOrganizationalUnitOutput, error) + + UpdatePolicyRequest(*organizations.UpdatePolicyInput) (*request.Request, *organizations.UpdatePolicyOutput) + + UpdatePolicy(*organizations.UpdatePolicyInput) (*organizations.UpdatePolicyOutput, error) +} + +var _ OrganizationsAPI = (*organizations.Organizations)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/organizations/service.go b/vendor/github.com/aws/aws-sdk-go/service/organizations/service.go new file mode 100644 index 000000000..4488f9b6c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/organizations/service.go @@ -0,0 +1,204 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package organizations + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" +) + +// AWS Organizations is a web service that enables you to consolidate your multiple +// AWS accounts into an organization and centrally manage your accounts and +// their resources. +// +// This guide provides descriptions of the Organizations API. For more information +// about using this service, see the AWS Organizations User Guide (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html). +// +// API Version +// +// This version of the Organizations API Reference documents the Organizations +// API version 2016-11-28. +// +// As an alternative to using the API directly, you can use one of the AWS SDKs, +// which consist of libraries and sample code for various programming languages +// and platforms (Java, Ruby, .NET, iOS, Android, and more). The SDKs provide +// a convenient way to create programmatic access to AWS Organizations. For +// example, the SDKs take care of cryptographically signing requests, managing +// errors, and retrying requests automatically. For more information about the +// AWS SDKs, including how to download and install them, see Tools for Amazon +// Web Services (http://aws.amazon.com/tools/). +// +// We recommend that you use the AWS SDKs to make programmatic API calls to +// Organizations. However, you also can use the Organizations Query API to make +// direct calls to the Organizations web service. To learn more about the Organizations +// Query API, see Making Query Requests (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_query-requests.html) +// in the AWS Organizations User Guide. Organizations supports GET and POST +// requests for all actions. That is, the API does not require you to use GET +// for some actions and POST for others. However, GET requests are subject to +// the limitation size of a URL. Therefore, for operations that require larger +// sizes, use a POST request. +// +// Signing Requests +// +// When you send HTTP requests to AWS, you must sign the requests so that AWS +// can identify who sent them. You sign requests with your AWS access key, which +// consists of an access key ID and a secret access key. We strongly recommend +// that you do not create an access key for your root account. Anyone who has +// the access key for your root account has unrestricted access to all the resources +// in your account. Instead, create an access key for an IAM user account that +// has administrative privileges. As another option, use AWS Security Token +// Service to generate temporary security credentials, and use those credentials +// to sign requests. +// +// To sign requests, we recommend that you use Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// If you have an existing application that uses Signature Version 2, you do +// not have to update it to use Signature Version 4. However, some operations +// now require Signature Version 4. The documentation for operations that require +// version 4 indicate this requirement. +// +// When you use the AWS Command Line Interface (AWS CLI) or one of the AWS SDKs +// to make requests to AWS, these tools automatically sign the requests for +// you with the access key that you specify when you configure the tools. +// +// In this release, each organization can have only one root. In a future release, +// a single organization will support multiple roots. +// +// Support and Feedback for AWS Organizations +// +// We welcome your feedback. Send your comments to feedback-awsorganizations@amazon.com +// (mailto:feedback-awsorganizations@amazon.com) or post your feedback and questions +// in our private AWS Organizations support forum (http://forums.aws.amazon.com/forum.jspa?forumID=219). +// If you don't have access to the forum, send a request for access to the email +// address, along with your forum user ID. For more information about the AWS +// support forums, see Forums Help (http://forums.aws.amazon.com/help.jspa). +// +// Endpoint to Call When Using the CLI or the AWS API +// +// For the current release of Organizations, you must specify the us-east-1 +// region for all AWS API and CLI calls. You can do this in the CLI by using +// these parameters and commands: +// +// * Use the following parameter with each command to specify both the endpoint +// and its region: +// +// --endpoint-url https://organizations.us-east-1.amazonaws.com +// +// * Use the default endpoint, but configure your default region with this +// command: +// +// aws configure set default.region us-east-1 +// +// * Use the following parameter with each command to specify the endpoint: +// +// --region us-east-1 +// +// For the various SDKs used to call the APIs, see the documentation for the +// SDK of interest to learn how to direct the requests to a specific endpoint. +// For more information, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#sts_region) +// in the AWS General Reference. +// +// How examples are presented +// +// The JSON returned by the AWS Organizations service as response to your requests +// is returned as a single long string without line breaks or formatting whitespace. +// Both line breaks and whitespace are included in the examples in this guide +// to improve readability. When example input parameters also would result in +// long strings that would extend beyond the screen, we insert line breaks to +// enhance readability. You should always submit the input as a single JSON +// text string. +// +// Recording API Requests +// +// AWS Organizations supports AWS CloudTrail, a service that records AWS API +// calls for your AWS account and delivers log files to an Amazon S3 bucket. +// By using information collected by AWS CloudTrail, you can determine which +// requests were successfully made to Organizations, who made the request, when +// it was made, and so on. For more about AWS Organizations and its support +// for AWS CloudTrail, see Logging AWS Organizations Events with AWS CloudTrail +// (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_cloudtrail-integration.html) +// in the AWS Organizations User Guide. To learn more about CloudTrail, including +// how to turn it on and find your log files, see the AWS CloudTrail User Guide +// (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/what_is_cloud_trail_top_level.html). +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28 +type Organizations struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "organizations" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the Organizations client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a Organizations client from just a session. +// svc := organizations.New(mySession) +// +// // Create a Organizations client with additional configuration +// svc := organizations.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *Organizations { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Organizations { + svc := &Organizations{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2016-11-28", + JSONVersion: "1.1", + TargetPrefix: "AWSOrganizationsV20161128", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a Organizations operation and runs any +// custom request initialization. +func (c *Organizations) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/pinpoint/api.go b/vendor/github.com/aws/aws-sdk-go/service/pinpoint/api.go new file mode 100644 index 000000000..d92dc1b0c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/pinpoint/api.go @@ -0,0 +1,7540 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package pinpoint provides a client for Amazon Pinpoint. +package pinpoint + +import ( + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opCreateCampaign = "CreateCampaign" + +// CreateCampaignRequest generates a "aws/request.Request" representing the +// client's request for the CreateCampaign operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateCampaign for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateCampaign method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateCampaignRequest method. +// req, resp := client.CreateCampaignRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//CreateCampaign +func (c *Pinpoint) CreateCampaignRequest(input *CreateCampaignInput) (req *request.Request, output *CreateCampaignOutput) { + op := &request.Operation{ + Name: opCreateCampaign, + HTTPMethod: "POST", + HTTPPath: "/v1/apps/{application-id}/campaigns", + } + + if input == nil { + input = &CreateCampaignInput{} + } + + output = &CreateCampaignOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateCampaign API operation for Amazon Pinpoint. +// +// Creates or updates a campaign. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation CreateCampaign for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//CreateCampaign +func (c *Pinpoint) CreateCampaign(input *CreateCampaignInput) (*CreateCampaignOutput, error) { + req, out := c.CreateCampaignRequest(input) + err := req.Send() + return out, err +} + +const opCreateImportJob = "CreateImportJob" + +// CreateImportJobRequest generates a "aws/request.Request" representing the +// client's request for the CreateImportJob operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateImportJob for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateImportJob method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateImportJobRequest method. +// req, resp := client.CreateImportJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//CreateImportJob +func (c *Pinpoint) CreateImportJobRequest(input *CreateImportJobInput) (req *request.Request, output *CreateImportJobOutput) { + op := &request.Operation{ + Name: opCreateImportJob, + HTTPMethod: "POST", + HTTPPath: "/v1/apps/{application-id}/jobs/import", + } + + if input == nil { + input = &CreateImportJobInput{} + } + + output = &CreateImportJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateImportJob API operation for Amazon Pinpoint. +// +// Creates or updates an import job. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation CreateImportJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//CreateImportJob +func (c *Pinpoint) CreateImportJob(input *CreateImportJobInput) (*CreateImportJobOutput, error) { + req, out := c.CreateImportJobRequest(input) + err := req.Send() + return out, err +} + +const opCreateSegment = "CreateSegment" + +// CreateSegmentRequest generates a "aws/request.Request" representing the +// client's request for the CreateSegment operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateSegment for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateSegment method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateSegmentRequest method. +// req, resp := client.CreateSegmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//CreateSegment +func (c *Pinpoint) CreateSegmentRequest(input *CreateSegmentInput) (req *request.Request, output *CreateSegmentOutput) { + op := &request.Operation{ + Name: opCreateSegment, + HTTPMethod: "POST", + HTTPPath: "/v1/apps/{application-id}/segments", + } + + if input == nil { + input = &CreateSegmentInput{} + } + + output = &CreateSegmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateSegment API operation for Amazon Pinpoint. +// +// Used to create or update a segment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation CreateSegment for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//CreateSegment +func (c *Pinpoint) CreateSegment(input *CreateSegmentInput) (*CreateSegmentOutput, error) { + req, out := c.CreateSegmentRequest(input) + err := req.Send() + return out, err +} + +const opDeleteApnsChannel = "DeleteApnsChannel" + +// DeleteApnsChannelRequest generates a "aws/request.Request" representing the +// client's request for the DeleteApnsChannel operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteApnsChannel for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteApnsChannel method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteApnsChannelRequest method. +// req, resp := client.DeleteApnsChannelRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteApnsChannel +func (c *Pinpoint) DeleteApnsChannelRequest(input *DeleteApnsChannelInput) (req *request.Request, output *DeleteApnsChannelOutput) { + op := &request.Operation{ + Name: opDeleteApnsChannel, + HTTPMethod: "DELETE", + HTTPPath: "/v1/apps/{application-id}/channels/apns", + } + + if input == nil { + input = &DeleteApnsChannelInput{} + } + + output = &DeleteApnsChannelOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteApnsChannel API operation for Amazon Pinpoint. +// +// Deletes the APNs channel for an app. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation DeleteApnsChannel for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteApnsChannel +func (c *Pinpoint) DeleteApnsChannel(input *DeleteApnsChannelInput) (*DeleteApnsChannelOutput, error) { + req, out := c.DeleteApnsChannelRequest(input) + err := req.Send() + return out, err +} + +const opDeleteCampaign = "DeleteCampaign" + +// DeleteCampaignRequest generates a "aws/request.Request" representing the +// client's request for the DeleteCampaign operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteCampaign for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteCampaign method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteCampaignRequest method. +// req, resp := client.DeleteCampaignRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteCampaign +func (c *Pinpoint) DeleteCampaignRequest(input *DeleteCampaignInput) (req *request.Request, output *DeleteCampaignOutput) { + op := &request.Operation{ + Name: opDeleteCampaign, + HTTPMethod: "DELETE", + HTTPPath: "/v1/apps/{application-id}/campaigns/{campaign-id}", + } + + if input == nil { + input = &DeleteCampaignInput{} + } + + output = &DeleteCampaignOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteCampaign API operation for Amazon Pinpoint. +// +// Deletes a campaign. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation DeleteCampaign for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteCampaign +func (c *Pinpoint) DeleteCampaign(input *DeleteCampaignInput) (*DeleteCampaignOutput, error) { + req, out := c.DeleteCampaignRequest(input) + err := req.Send() + return out, err +} + +const opDeleteGcmChannel = "DeleteGcmChannel" + +// DeleteGcmChannelRequest generates a "aws/request.Request" representing the +// client's request for the DeleteGcmChannel operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteGcmChannel for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteGcmChannel method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteGcmChannelRequest method. +// req, resp := client.DeleteGcmChannelRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteGcmChannel +func (c *Pinpoint) DeleteGcmChannelRequest(input *DeleteGcmChannelInput) (req *request.Request, output *DeleteGcmChannelOutput) { + op := &request.Operation{ + Name: opDeleteGcmChannel, + HTTPMethod: "DELETE", + HTTPPath: "/v1/apps/{application-id}/channels/gcm", + } + + if input == nil { + input = &DeleteGcmChannelInput{} + } + + output = &DeleteGcmChannelOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteGcmChannel API operation for Amazon Pinpoint. +// +// Deletes the GCM channel for an app. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation DeleteGcmChannel for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteGcmChannel +func (c *Pinpoint) DeleteGcmChannel(input *DeleteGcmChannelInput) (*DeleteGcmChannelOutput, error) { + req, out := c.DeleteGcmChannelRequest(input) + err := req.Send() + return out, err +} + +const opDeleteSegment = "DeleteSegment" + +// DeleteSegmentRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSegment operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteSegment for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteSegment method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteSegmentRequest method. +// req, resp := client.DeleteSegmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteSegment +func (c *Pinpoint) DeleteSegmentRequest(input *DeleteSegmentInput) (req *request.Request, output *DeleteSegmentOutput) { + op := &request.Operation{ + Name: opDeleteSegment, + HTTPMethod: "DELETE", + HTTPPath: "/v1/apps/{application-id}/segments/{segment-id}", + } + + if input == nil { + input = &DeleteSegmentInput{} + } + + output = &DeleteSegmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteSegment API operation for Amazon Pinpoint. +// +// Deletes a segment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation DeleteSegment for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteSegment +func (c *Pinpoint) DeleteSegment(input *DeleteSegmentInput) (*DeleteSegmentOutput, error) { + req, out := c.DeleteSegmentRequest(input) + err := req.Send() + return out, err +} + +const opGetApnsChannel = "GetApnsChannel" + +// GetApnsChannelRequest generates a "aws/request.Request" representing the +// client's request for the GetApnsChannel operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetApnsChannel for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetApnsChannel method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetApnsChannelRequest method. +// req, resp := client.GetApnsChannelRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetApnsChannel +func (c *Pinpoint) GetApnsChannelRequest(input *GetApnsChannelInput) (req *request.Request, output *GetApnsChannelOutput) { + op := &request.Operation{ + Name: opGetApnsChannel, + HTTPMethod: "GET", + HTTPPath: "/v1/apps/{application-id}/channels/apns", + } + + if input == nil { + input = &GetApnsChannelInput{} + } + + output = &GetApnsChannelOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetApnsChannel API operation for Amazon Pinpoint. +// +// Returns information about the APNs channel for an app. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation GetApnsChannel for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetApnsChannel +func (c *Pinpoint) GetApnsChannel(input *GetApnsChannelInput) (*GetApnsChannelOutput, error) { + req, out := c.GetApnsChannelRequest(input) + err := req.Send() + return out, err +} + +const opGetApplicationSettings = "GetApplicationSettings" + +// GetApplicationSettingsRequest generates a "aws/request.Request" representing the +// client's request for the GetApplicationSettings operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetApplicationSettings for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetApplicationSettings method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetApplicationSettingsRequest method. +// req, resp := client.GetApplicationSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetApplicationSettings +func (c *Pinpoint) GetApplicationSettingsRequest(input *GetApplicationSettingsInput) (req *request.Request, output *GetApplicationSettingsOutput) { + op := &request.Operation{ + Name: opGetApplicationSettings, + HTTPMethod: "GET", + HTTPPath: "/v1/apps/{application-id}/settings", + } + + if input == nil { + input = &GetApplicationSettingsInput{} + } + + output = &GetApplicationSettingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetApplicationSettings API operation for Amazon Pinpoint. +// +// Used to request the settings for an app. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation GetApplicationSettings for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetApplicationSettings +func (c *Pinpoint) GetApplicationSettings(input *GetApplicationSettingsInput) (*GetApplicationSettingsOutput, error) { + req, out := c.GetApplicationSettingsRequest(input) + err := req.Send() + return out, err +} + +const opGetCampaign = "GetCampaign" + +// GetCampaignRequest generates a "aws/request.Request" representing the +// client's request for the GetCampaign operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetCampaign for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetCampaign method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetCampaignRequest method. +// req, resp := client.GetCampaignRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetCampaign +func (c *Pinpoint) GetCampaignRequest(input *GetCampaignInput) (req *request.Request, output *GetCampaignOutput) { + op := &request.Operation{ + Name: opGetCampaign, + HTTPMethod: "GET", + HTTPPath: "/v1/apps/{application-id}/campaigns/{campaign-id}", + } + + if input == nil { + input = &GetCampaignInput{} + } + + output = &GetCampaignOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetCampaign API operation for Amazon Pinpoint. +// +// Returns information about a campaign. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation GetCampaign for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetCampaign +func (c *Pinpoint) GetCampaign(input *GetCampaignInput) (*GetCampaignOutput, error) { + req, out := c.GetCampaignRequest(input) + err := req.Send() + return out, err +} + +const opGetCampaignActivities = "GetCampaignActivities" + +// GetCampaignActivitiesRequest generates a "aws/request.Request" representing the +// client's request for the GetCampaignActivities operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetCampaignActivities for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetCampaignActivities method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetCampaignActivitiesRequest method. +// req, resp := client.GetCampaignActivitiesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetCampaignActivities +func (c *Pinpoint) GetCampaignActivitiesRequest(input *GetCampaignActivitiesInput) (req *request.Request, output *GetCampaignActivitiesOutput) { + op := &request.Operation{ + Name: opGetCampaignActivities, + HTTPMethod: "GET", + HTTPPath: "/v1/apps/{application-id}/campaigns/{campaign-id}/activities", + } + + if input == nil { + input = &GetCampaignActivitiesInput{} + } + + output = &GetCampaignActivitiesOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetCampaignActivities API operation for Amazon Pinpoint. +// +// Returns information about the activity performed by a campaign. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation GetCampaignActivities for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetCampaignActivities +func (c *Pinpoint) GetCampaignActivities(input *GetCampaignActivitiesInput) (*GetCampaignActivitiesOutput, error) { + req, out := c.GetCampaignActivitiesRequest(input) + err := req.Send() + return out, err +} + +const opGetCampaignVersion = "GetCampaignVersion" + +// GetCampaignVersionRequest generates a "aws/request.Request" representing the +// client's request for the GetCampaignVersion operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetCampaignVersion for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetCampaignVersion method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetCampaignVersionRequest method. +// req, resp := client.GetCampaignVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetCampaignVersion +func (c *Pinpoint) GetCampaignVersionRequest(input *GetCampaignVersionInput) (req *request.Request, output *GetCampaignVersionOutput) { + op := &request.Operation{ + Name: opGetCampaignVersion, + HTTPMethod: "GET", + HTTPPath: "/v1/apps/{application-id}/campaigns/{campaign-id}/versions/{version}", + } + + if input == nil { + input = &GetCampaignVersionInput{} + } + + output = &GetCampaignVersionOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetCampaignVersion API operation for Amazon Pinpoint. +// +// Returns information about your campaign versions. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation GetCampaignVersion for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetCampaignVersion +func (c *Pinpoint) GetCampaignVersion(input *GetCampaignVersionInput) (*GetCampaignVersionOutput, error) { + req, out := c.GetCampaignVersionRequest(input) + err := req.Send() + return out, err +} + +const opGetCampaignVersions = "GetCampaignVersions" + +// GetCampaignVersionsRequest generates a "aws/request.Request" representing the +// client's request for the GetCampaignVersions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetCampaignVersions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetCampaignVersions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetCampaignVersionsRequest method. +// req, resp := client.GetCampaignVersionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetCampaignVersions +func (c *Pinpoint) GetCampaignVersionsRequest(input *GetCampaignVersionsInput) (req *request.Request, output *GetCampaignVersionsOutput) { + op := &request.Operation{ + Name: opGetCampaignVersions, + HTTPMethod: "GET", + HTTPPath: "/v1/apps/{application-id}/campaigns/{campaign-id}/versions", + } + + if input == nil { + input = &GetCampaignVersionsInput{} + } + + output = &GetCampaignVersionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetCampaignVersions API operation for Amazon Pinpoint. +// +// Returns information about your campaign versions. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation GetCampaignVersions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetCampaignVersions +func (c *Pinpoint) GetCampaignVersions(input *GetCampaignVersionsInput) (*GetCampaignVersionsOutput, error) { + req, out := c.GetCampaignVersionsRequest(input) + err := req.Send() + return out, err +} + +const opGetCampaigns = "GetCampaigns" + +// GetCampaignsRequest generates a "aws/request.Request" representing the +// client's request for the GetCampaigns operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetCampaigns for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetCampaigns method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetCampaignsRequest method. +// req, resp := client.GetCampaignsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetCampaigns +func (c *Pinpoint) GetCampaignsRequest(input *GetCampaignsInput) (req *request.Request, output *GetCampaignsOutput) { + op := &request.Operation{ + Name: opGetCampaigns, + HTTPMethod: "GET", + HTTPPath: "/v1/apps/{application-id}/campaigns", + } + + if input == nil { + input = &GetCampaignsInput{} + } + + output = &GetCampaignsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetCampaigns API operation for Amazon Pinpoint. +// +// Returns information about your campaigns. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation GetCampaigns for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetCampaigns +func (c *Pinpoint) GetCampaigns(input *GetCampaignsInput) (*GetCampaignsOutput, error) { + req, out := c.GetCampaignsRequest(input) + err := req.Send() + return out, err +} + +const opGetEndpoint = "GetEndpoint" + +// GetEndpointRequest generates a "aws/request.Request" representing the +// client's request for the GetEndpoint operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetEndpoint for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetEndpoint method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetEndpointRequest method. +// req, resp := client.GetEndpointRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetEndpoint +func (c *Pinpoint) GetEndpointRequest(input *GetEndpointInput) (req *request.Request, output *GetEndpointOutput) { + op := &request.Operation{ + Name: opGetEndpoint, + HTTPMethod: "GET", + HTTPPath: "/v1/apps/{application-id}/endpoints/{endpoint-id}", + } + + if input == nil { + input = &GetEndpointInput{} + } + + output = &GetEndpointOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetEndpoint API operation for Amazon Pinpoint. +// +// Returns information about an endpoint. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation GetEndpoint for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetEndpoint +func (c *Pinpoint) GetEndpoint(input *GetEndpointInput) (*GetEndpointOutput, error) { + req, out := c.GetEndpointRequest(input) + err := req.Send() + return out, err +} + +const opGetGcmChannel = "GetGcmChannel" + +// GetGcmChannelRequest generates a "aws/request.Request" representing the +// client's request for the GetGcmChannel operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetGcmChannel for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetGcmChannel method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetGcmChannelRequest method. +// req, resp := client.GetGcmChannelRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetGcmChannel +func (c *Pinpoint) GetGcmChannelRequest(input *GetGcmChannelInput) (req *request.Request, output *GetGcmChannelOutput) { + op := &request.Operation{ + Name: opGetGcmChannel, + HTTPMethod: "GET", + HTTPPath: "/v1/apps/{application-id}/channels/gcm", + } + + if input == nil { + input = &GetGcmChannelInput{} + } + + output = &GetGcmChannelOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetGcmChannel API operation for Amazon Pinpoint. +// +// Returns information about the GCM channel for an app. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation GetGcmChannel for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetGcmChannel +func (c *Pinpoint) GetGcmChannel(input *GetGcmChannelInput) (*GetGcmChannelOutput, error) { + req, out := c.GetGcmChannelRequest(input) + err := req.Send() + return out, err +} + +const opGetImportJob = "GetImportJob" + +// GetImportJobRequest generates a "aws/request.Request" representing the +// client's request for the GetImportJob operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetImportJob for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetImportJob method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetImportJobRequest method. +// req, resp := client.GetImportJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetImportJob +func (c *Pinpoint) GetImportJobRequest(input *GetImportJobInput) (req *request.Request, output *GetImportJobOutput) { + op := &request.Operation{ + Name: opGetImportJob, + HTTPMethod: "GET", + HTTPPath: "/v1/apps/{application-id}/jobs/import/{job-id}", + } + + if input == nil { + input = &GetImportJobInput{} + } + + output = &GetImportJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetImportJob API operation for Amazon Pinpoint. +// +// Returns information about an import job. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation GetImportJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetImportJob +func (c *Pinpoint) GetImportJob(input *GetImportJobInput) (*GetImportJobOutput, error) { + req, out := c.GetImportJobRequest(input) + err := req.Send() + return out, err +} + +const opGetImportJobs = "GetImportJobs" + +// GetImportJobsRequest generates a "aws/request.Request" representing the +// client's request for the GetImportJobs operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetImportJobs for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetImportJobs method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetImportJobsRequest method. +// req, resp := client.GetImportJobsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetImportJobs +func (c *Pinpoint) GetImportJobsRequest(input *GetImportJobsInput) (req *request.Request, output *GetImportJobsOutput) { + op := &request.Operation{ + Name: opGetImportJobs, + HTTPMethod: "GET", + HTTPPath: "/v1/apps/{application-id}/jobs/import", + } + + if input == nil { + input = &GetImportJobsInput{} + } + + output = &GetImportJobsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetImportJobs API operation for Amazon Pinpoint. +// +// Returns information about your import jobs. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation GetImportJobs for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetImportJobs +func (c *Pinpoint) GetImportJobs(input *GetImportJobsInput) (*GetImportJobsOutput, error) { + req, out := c.GetImportJobsRequest(input) + err := req.Send() + return out, err +} + +const opGetSegment = "GetSegment" + +// GetSegmentRequest generates a "aws/request.Request" representing the +// client's request for the GetSegment operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetSegment for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetSegment method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetSegmentRequest method. +// req, resp := client.GetSegmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetSegment +func (c *Pinpoint) GetSegmentRequest(input *GetSegmentInput) (req *request.Request, output *GetSegmentOutput) { + op := &request.Operation{ + Name: opGetSegment, + HTTPMethod: "GET", + HTTPPath: "/v1/apps/{application-id}/segments/{segment-id}", + } + + if input == nil { + input = &GetSegmentInput{} + } + + output = &GetSegmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetSegment API operation for Amazon Pinpoint. +// +// Returns information about a segment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation GetSegment for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetSegment +func (c *Pinpoint) GetSegment(input *GetSegmentInput) (*GetSegmentOutput, error) { + req, out := c.GetSegmentRequest(input) + err := req.Send() + return out, err +} + +const opGetSegmentImportJobs = "GetSegmentImportJobs" + +// GetSegmentImportJobsRequest generates a "aws/request.Request" representing the +// client's request for the GetSegmentImportJobs operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetSegmentImportJobs for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetSegmentImportJobs method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetSegmentImportJobsRequest method. +// req, resp := client.GetSegmentImportJobsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetSegmentImportJobs +func (c *Pinpoint) GetSegmentImportJobsRequest(input *GetSegmentImportJobsInput) (req *request.Request, output *GetSegmentImportJobsOutput) { + op := &request.Operation{ + Name: opGetSegmentImportJobs, + HTTPMethod: "GET", + HTTPPath: "/v1/apps/{application-id}/segments/{segment-id}/jobs/import", + } + + if input == nil { + input = &GetSegmentImportJobsInput{} + } + + output = &GetSegmentImportJobsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetSegmentImportJobs API operation for Amazon Pinpoint. +// +// Returns a list of import jobs for a specific segment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation GetSegmentImportJobs for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetSegmentImportJobs +func (c *Pinpoint) GetSegmentImportJobs(input *GetSegmentImportJobsInput) (*GetSegmentImportJobsOutput, error) { + req, out := c.GetSegmentImportJobsRequest(input) + err := req.Send() + return out, err +} + +const opGetSegmentVersion = "GetSegmentVersion" + +// GetSegmentVersionRequest generates a "aws/request.Request" representing the +// client's request for the GetSegmentVersion operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetSegmentVersion for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetSegmentVersion method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetSegmentVersionRequest method. +// req, resp := client.GetSegmentVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetSegmentVersion +func (c *Pinpoint) GetSegmentVersionRequest(input *GetSegmentVersionInput) (req *request.Request, output *GetSegmentVersionOutput) { + op := &request.Operation{ + Name: opGetSegmentVersion, + HTTPMethod: "GET", + HTTPPath: "/v1/apps/{application-id}/segments/{segment-id}/versions/{version}", + } + + if input == nil { + input = &GetSegmentVersionInput{} + } + + output = &GetSegmentVersionOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetSegmentVersion API operation for Amazon Pinpoint. +// +// Returns information about a segment version. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation GetSegmentVersion for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetSegmentVersion +func (c *Pinpoint) GetSegmentVersion(input *GetSegmentVersionInput) (*GetSegmentVersionOutput, error) { + req, out := c.GetSegmentVersionRequest(input) + err := req.Send() + return out, err +} + +const opGetSegmentVersions = "GetSegmentVersions" + +// GetSegmentVersionsRequest generates a "aws/request.Request" representing the +// client's request for the GetSegmentVersions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetSegmentVersions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetSegmentVersions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetSegmentVersionsRequest method. +// req, resp := client.GetSegmentVersionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetSegmentVersions +func (c *Pinpoint) GetSegmentVersionsRequest(input *GetSegmentVersionsInput) (req *request.Request, output *GetSegmentVersionsOutput) { + op := &request.Operation{ + Name: opGetSegmentVersions, + HTTPMethod: "GET", + HTTPPath: "/v1/apps/{application-id}/segments/{segment-id}/versions", + } + + if input == nil { + input = &GetSegmentVersionsInput{} + } + + output = &GetSegmentVersionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetSegmentVersions API operation for Amazon Pinpoint. +// +// Returns information about your segment versions. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation GetSegmentVersions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetSegmentVersions +func (c *Pinpoint) GetSegmentVersions(input *GetSegmentVersionsInput) (*GetSegmentVersionsOutput, error) { + req, out := c.GetSegmentVersionsRequest(input) + err := req.Send() + return out, err +} + +const opGetSegments = "GetSegments" + +// GetSegmentsRequest generates a "aws/request.Request" representing the +// client's request for the GetSegments operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetSegments for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetSegments method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetSegmentsRequest method. +// req, resp := client.GetSegmentsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetSegments +func (c *Pinpoint) GetSegmentsRequest(input *GetSegmentsInput) (req *request.Request, output *GetSegmentsOutput) { + op := &request.Operation{ + Name: opGetSegments, + HTTPMethod: "GET", + HTTPPath: "/v1/apps/{application-id}/segments", + } + + if input == nil { + input = &GetSegmentsInput{} + } + + output = &GetSegmentsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetSegments API operation for Amazon Pinpoint. +// +// Used to get information about your segments. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation GetSegments for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetSegments +func (c *Pinpoint) GetSegments(input *GetSegmentsInput) (*GetSegmentsOutput, error) { + req, out := c.GetSegmentsRequest(input) + err := req.Send() + return out, err +} + +const opUpdateApnsChannel = "UpdateApnsChannel" + +// UpdateApnsChannelRequest generates a "aws/request.Request" representing the +// client's request for the UpdateApnsChannel operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateApnsChannel for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateApnsChannel method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateApnsChannelRequest method. +// req, resp := client.UpdateApnsChannelRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateApnsChannel +func (c *Pinpoint) UpdateApnsChannelRequest(input *UpdateApnsChannelInput) (req *request.Request, output *UpdateApnsChannelOutput) { + op := &request.Operation{ + Name: opUpdateApnsChannel, + HTTPMethod: "PUT", + HTTPPath: "/v1/apps/{application-id}/channels/apns", + } + + if input == nil { + input = &UpdateApnsChannelInput{} + } + + output = &UpdateApnsChannelOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateApnsChannel API operation for Amazon Pinpoint. +// +// Use to update the APNs channel for an app. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation UpdateApnsChannel for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateApnsChannel +func (c *Pinpoint) UpdateApnsChannel(input *UpdateApnsChannelInput) (*UpdateApnsChannelOutput, error) { + req, out := c.UpdateApnsChannelRequest(input) + err := req.Send() + return out, err +} + +const opUpdateApplicationSettings = "UpdateApplicationSettings" + +// UpdateApplicationSettingsRequest generates a "aws/request.Request" representing the +// client's request for the UpdateApplicationSettings operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateApplicationSettings for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateApplicationSettings method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateApplicationSettingsRequest method. +// req, resp := client.UpdateApplicationSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateApplicationSettings +func (c *Pinpoint) UpdateApplicationSettingsRequest(input *UpdateApplicationSettingsInput) (req *request.Request, output *UpdateApplicationSettingsOutput) { + op := &request.Operation{ + Name: opUpdateApplicationSettings, + HTTPMethod: "PUT", + HTTPPath: "/v1/apps/{application-id}/settings", + } + + if input == nil { + input = &UpdateApplicationSettingsInput{} + } + + output = &UpdateApplicationSettingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateApplicationSettings API operation for Amazon Pinpoint. +// +// Used to update the settings for an app. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation UpdateApplicationSettings for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateApplicationSettings +func (c *Pinpoint) UpdateApplicationSettings(input *UpdateApplicationSettingsInput) (*UpdateApplicationSettingsOutput, error) { + req, out := c.UpdateApplicationSettingsRequest(input) + err := req.Send() + return out, err +} + +const opUpdateCampaign = "UpdateCampaign" + +// UpdateCampaignRequest generates a "aws/request.Request" representing the +// client's request for the UpdateCampaign operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateCampaign for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateCampaign method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateCampaignRequest method. +// req, resp := client.UpdateCampaignRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateCampaign +func (c *Pinpoint) UpdateCampaignRequest(input *UpdateCampaignInput) (req *request.Request, output *UpdateCampaignOutput) { + op := &request.Operation{ + Name: opUpdateCampaign, + HTTPMethod: "PUT", + HTTPPath: "/v1/apps/{application-id}/campaigns/{campaign-id}", + } + + if input == nil { + input = &UpdateCampaignInput{} + } + + output = &UpdateCampaignOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateCampaign API operation for Amazon Pinpoint. +// +// Use to update a campaign. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation UpdateCampaign for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateCampaign +func (c *Pinpoint) UpdateCampaign(input *UpdateCampaignInput) (*UpdateCampaignOutput, error) { + req, out := c.UpdateCampaignRequest(input) + err := req.Send() + return out, err +} + +const opUpdateEndpoint = "UpdateEndpoint" + +// UpdateEndpointRequest generates a "aws/request.Request" representing the +// client's request for the UpdateEndpoint operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateEndpoint for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateEndpoint method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateEndpointRequest method. +// req, resp := client.UpdateEndpointRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateEndpoint +func (c *Pinpoint) UpdateEndpointRequest(input *UpdateEndpointInput) (req *request.Request, output *UpdateEndpointOutput) { + op := &request.Operation{ + Name: opUpdateEndpoint, + HTTPMethod: "PUT", + HTTPPath: "/v1/apps/{application-id}/endpoints/{endpoint-id}", + } + + if input == nil { + input = &UpdateEndpointInput{} + } + + output = &UpdateEndpointOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateEndpoint API operation for Amazon Pinpoint. +// +// Use to update an endpoint. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation UpdateEndpoint for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateEndpoint +func (c *Pinpoint) UpdateEndpoint(input *UpdateEndpointInput) (*UpdateEndpointOutput, error) { + req, out := c.UpdateEndpointRequest(input) + err := req.Send() + return out, err +} + +const opUpdateEndpointsBatch = "UpdateEndpointsBatch" + +// UpdateEndpointsBatchRequest generates a "aws/request.Request" representing the +// client's request for the UpdateEndpointsBatch operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateEndpointsBatch for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateEndpointsBatch method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateEndpointsBatchRequest method. +// req, resp := client.UpdateEndpointsBatchRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateEndpointsBatch +func (c *Pinpoint) UpdateEndpointsBatchRequest(input *UpdateEndpointsBatchInput) (req *request.Request, output *UpdateEndpointsBatchOutput) { + op := &request.Operation{ + Name: opUpdateEndpointsBatch, + HTTPMethod: "PUT", + HTTPPath: "/v1/apps/{application-id}/endpoints", + } + + if input == nil { + input = &UpdateEndpointsBatchInput{} + } + + output = &UpdateEndpointsBatchOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateEndpointsBatch API operation for Amazon Pinpoint. +// +// Use to update your endpoints. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation UpdateEndpointsBatch for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateEndpointsBatch +func (c *Pinpoint) UpdateEndpointsBatch(input *UpdateEndpointsBatchInput) (*UpdateEndpointsBatchOutput, error) { + req, out := c.UpdateEndpointsBatchRequest(input) + err := req.Send() + return out, err +} + +const opUpdateGcmChannel = "UpdateGcmChannel" + +// UpdateGcmChannelRequest generates a "aws/request.Request" representing the +// client's request for the UpdateGcmChannel operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateGcmChannel for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateGcmChannel method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateGcmChannelRequest method. +// req, resp := client.UpdateGcmChannelRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateGcmChannel +func (c *Pinpoint) UpdateGcmChannelRequest(input *UpdateGcmChannelInput) (req *request.Request, output *UpdateGcmChannelOutput) { + op := &request.Operation{ + Name: opUpdateGcmChannel, + HTTPMethod: "PUT", + HTTPPath: "/v1/apps/{application-id}/channels/gcm", + } + + if input == nil { + input = &UpdateGcmChannelInput{} + } + + output = &UpdateGcmChannelOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateGcmChannel API operation for Amazon Pinpoint. +// +// Use to update the GCM channel for an app. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation UpdateGcmChannel for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateGcmChannel +func (c *Pinpoint) UpdateGcmChannel(input *UpdateGcmChannelInput) (*UpdateGcmChannelOutput, error) { + req, out := c.UpdateGcmChannelRequest(input) + err := req.Send() + return out, err +} + +const opUpdateSegment = "UpdateSegment" + +// UpdateSegmentRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSegment operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateSegment for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateSegment method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateSegmentRequest method. +// req, resp := client.UpdateSegmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateSegment +func (c *Pinpoint) UpdateSegmentRequest(input *UpdateSegmentInput) (req *request.Request, output *UpdateSegmentOutput) { + op := &request.Operation{ + Name: opUpdateSegment, + HTTPMethod: "PUT", + HTTPPath: "/v1/apps/{application-id}/segments/{segment-id}", + } + + if input == nil { + input = &UpdateSegmentInput{} + } + + output = &UpdateSegmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSegment API operation for Amazon Pinpoint. +// +// Use to update a segment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint's +// API operation UpdateSegment for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// 400 response +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// 500 response +// +// * ErrCodeForbiddenException "ForbiddenException" +// 403 response +// +// * ErrCodeNotFoundException "NotFoundException" +// 404 response +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// 405 response +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// 429 response +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateSegment +func (c *Pinpoint) UpdateSegment(input *UpdateSegmentInput) (*UpdateSegmentOutput, error) { + req, out := c.UpdateSegmentRequest(input) + err := req.Send() + return out, err +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//APNSChannelRequest +type APNSChannelRequest struct { + _ struct{} `type:"structure"` + + // The distribution certificate from Apple. + Certificate *string `type:"string"` + + // The certificate private key. + PrivateKey *string `type:"string"` +} + +// String returns the string representation +func (s APNSChannelRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s APNSChannelRequest) GoString() string { + return s.String() +} + +// SetCertificate sets the Certificate field's value. +func (s *APNSChannelRequest) SetCertificate(v string) *APNSChannelRequest { + s.Certificate = &v + return s +} + +// SetPrivateKey sets the PrivateKey field's value. +func (s *APNSChannelRequest) SetPrivateKey(v string) *APNSChannelRequest { + s.PrivateKey = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//APNSChannelResponse +type APNSChannelResponse struct { + _ struct{} `type:"structure"` + + ApplicationId *string `type:"string"` + + // When was this segment created + CreationDate *string `type:"string"` + + Id *string `type:"string"` + + // Is this channel archived + IsArchived *bool `type:"boolean"` + + // Who last updated this entry + LastModifiedBy *string `type:"string"` + + // Last date this was updated + LastModifiedDate *string `type:"string"` + + // The platform type. Will be APNS. + Platform *string `type:"string"` + + // Version of channel + Version *int64 `type:"integer"` +} + +// String returns the string representation +func (s APNSChannelResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s APNSChannelResponse) GoString() string { + return s.String() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *APNSChannelResponse) SetApplicationId(v string) *APNSChannelResponse { + s.ApplicationId = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *APNSChannelResponse) SetCreationDate(v string) *APNSChannelResponse { + s.CreationDate = &v + return s +} + +// SetId sets the Id field's value. +func (s *APNSChannelResponse) SetId(v string) *APNSChannelResponse { + s.Id = &v + return s +} + +// SetIsArchived sets the IsArchived field's value. +func (s *APNSChannelResponse) SetIsArchived(v bool) *APNSChannelResponse { + s.IsArchived = &v + return s +} + +// SetLastModifiedBy sets the LastModifiedBy field's value. +func (s *APNSChannelResponse) SetLastModifiedBy(v string) *APNSChannelResponse { + s.LastModifiedBy = &v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *APNSChannelResponse) SetLastModifiedDate(v string) *APNSChannelResponse { + s.LastModifiedDate = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *APNSChannelResponse) SetPlatform(v string) *APNSChannelResponse { + s.Platform = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *APNSChannelResponse) SetVersion(v int64) *APNSChannelResponse { + s.Version = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//ActivitiesResponse +type ActivitiesResponse struct { + _ struct{} `type:"structure"` + + // List of campaign activities + Item []*ActivityResponse `type:"list"` +} + +// String returns the string representation +func (s ActivitiesResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ActivitiesResponse) GoString() string { + return s.String() +} + +// SetItem sets the Item field's value. +func (s *ActivitiesResponse) SetItem(v []*ActivityResponse) *ActivitiesResponse { + s.Item = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//ActivityResponse +type ActivityResponse struct { + _ struct{} `type:"structure"` + + // The ID of the application to which the campaign applies. + ApplicationId *string `type:"string"` + + // The ID of the campaign to which the activity applies. + CampaignId *string `type:"string"` + + // The actual time the activity was marked CANCELLED or COMPLETED. Provided + // in ISO 8601 format. + End *string `type:"string"` + + // The unique activity ID. + Id *string `type:"string"` + + // Indicates whether the activity succeeded.Valid values: SUCCESS, FAIL + Result *string `type:"string"` + + // The scheduled start time for the activity in ISO 8601 format. + ScheduledStart *string `type:"string"` + + // The actual start time of the activity in ISO 8601 format. + Start *string `type:"string"` + + // The state of the activity.Valid values: PENDING, INITIALIZING, RUNNING, PAUSED, + // CANCELLED, COMPLETED + State *string `type:"string"` + + // The total number of endpoints to which the campaign successfully delivered + // messages. + SuccessfulEndpointCount *int64 `type:"integer"` + + // The total number of endpoints to which the campaign attempts to deliver messages. + TotalEndpointCount *int64 `type:"integer"` + + // The ID of a variation of the campaign used for A/B testing. + TreatmentId *string `type:"string"` +} + +// String returns the string representation +func (s ActivityResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ActivityResponse) GoString() string { + return s.String() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *ActivityResponse) SetApplicationId(v string) *ActivityResponse { + s.ApplicationId = &v + return s +} + +// SetCampaignId sets the CampaignId field's value. +func (s *ActivityResponse) SetCampaignId(v string) *ActivityResponse { + s.CampaignId = &v + return s +} + +// SetEnd sets the End field's value. +func (s *ActivityResponse) SetEnd(v string) *ActivityResponse { + s.End = &v + return s +} + +// SetId sets the Id field's value. +func (s *ActivityResponse) SetId(v string) *ActivityResponse { + s.Id = &v + return s +} + +// SetResult sets the Result field's value. +func (s *ActivityResponse) SetResult(v string) *ActivityResponse { + s.Result = &v + return s +} + +// SetScheduledStart sets the ScheduledStart field's value. +func (s *ActivityResponse) SetScheduledStart(v string) *ActivityResponse { + s.ScheduledStart = &v + return s +} + +// SetStart sets the Start field's value. +func (s *ActivityResponse) SetStart(v string) *ActivityResponse { + s.Start = &v + return s +} + +// SetState sets the State field's value. +func (s *ActivityResponse) SetState(v string) *ActivityResponse { + s.State = &v + return s +} + +// SetSuccessfulEndpointCount sets the SuccessfulEndpointCount field's value. +func (s *ActivityResponse) SetSuccessfulEndpointCount(v int64) *ActivityResponse { + s.SuccessfulEndpointCount = &v + return s +} + +// SetTotalEndpointCount sets the TotalEndpointCount field's value. +func (s *ActivityResponse) SetTotalEndpointCount(v int64) *ActivityResponse { + s.TotalEndpointCount = &v + return s +} + +// SetTreatmentId sets the TreatmentId field's value. +func (s *ActivityResponse) SetTreatmentId(v string) *ActivityResponse { + s.TreatmentId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//ApplicationSettingsResource +type ApplicationSettingsResource struct { + _ struct{} `type:"structure"` + + // The unique ID for the application. + ApplicationId *string `type:"string"` + + // The date that the settings were last updated in ISO 8601 format. + LastModifiedDate *string `type:"string"` + + // The default campaign limits for the app. These limits apply to each campaign + // for the app, unless the campaign overrides the default with limits of its + // own. + Limits *CampaignLimits `type:"structure"` + + // The default quiet time for the app. Each campaign for this app sends no messages + // during this time unless the campaign overrides the default with a quiet time + // of its own. + QuietTime *QuietTime `type:"structure"` +} + +// String returns the string representation +func (s ApplicationSettingsResource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationSettingsResource) GoString() string { + return s.String() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *ApplicationSettingsResource) SetApplicationId(v string) *ApplicationSettingsResource { + s.ApplicationId = &v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *ApplicationSettingsResource) SetLastModifiedDate(v string) *ApplicationSettingsResource { + s.LastModifiedDate = &v + return s +} + +// SetLimits sets the Limits field's value. +func (s *ApplicationSettingsResource) SetLimits(v *CampaignLimits) *ApplicationSettingsResource { + s.Limits = v + return s +} + +// SetQuietTime sets the QuietTime field's value. +func (s *ApplicationSettingsResource) SetQuietTime(v *QuietTime) *ApplicationSettingsResource { + s.QuietTime = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//AttributeDimension +type AttributeDimension struct { + _ struct{} `type:"structure"` + + AttributeType *string `type:"string" enum:"AttributeType"` + + Values []*string `type:"list"` +} + +// String returns the string representation +func (s AttributeDimension) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttributeDimension) GoString() string { + return s.String() +} + +// SetAttributeType sets the AttributeType field's value. +func (s *AttributeDimension) SetAttributeType(v string) *AttributeDimension { + s.AttributeType = &v + return s +} + +// SetValues sets the Values field's value. +func (s *AttributeDimension) SetValues(v []*string) *AttributeDimension { + s.Values = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//CampaignLimits +type CampaignLimits struct { + _ struct{} `type:"structure"` + + // The maximum number of messages that the campaign can send daily. + Daily *int64 `type:"integer"` + + // The maximum total number of messages that the campaign can send. + Total *int64 `type:"integer"` +} + +// String returns the string representation +func (s CampaignLimits) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CampaignLimits) GoString() string { + return s.String() +} + +// SetDaily sets the Daily field's value. +func (s *CampaignLimits) SetDaily(v int64) *CampaignLimits { + s.Daily = &v + return s +} + +// SetTotal sets the Total field's value. +func (s *CampaignLimits) SetTotal(v int64) *CampaignLimits { + s.Total = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//CampaignResponse +type CampaignResponse struct { + _ struct{} `type:"structure"` + + // Treatments that are defined in addition to the default treatment. + AdditionalTreatments []*TreatmentResource `type:"list"` + + // The ID of the application to which the campaign applies. + ApplicationId *string `type:"string"` + + // The date the campaign was created in ISO 8601 format. + CreationDate *string `type:"string"` + + // The status of the campaign's default treatment. Only present for A/B test + // campaigns. + DefaultState *CampaignState `type:"structure"` + + // A description of the campaign. + Description *string `type:"string"` + + // The allocated percentage of end users who will not receive messages from + // this campaign. + HoldoutPercent *int64 `type:"integer"` + + // The unique campaign ID. + Id *string `type:"string"` + + // Indicates whether the campaign is paused. A paused campaign does not send + // messages unless you resume it by setting IsPaused to false. + IsPaused *bool `type:"boolean"` + + // The date the campaign was last updated in ISO 8601 format. + LastModifiedDate *string `type:"string"` + + // The campaign limits settings. + Limits *CampaignLimits `type:"structure"` + + // The message configuration settings. + MessageConfiguration *MessageConfiguration `type:"structure"` + + // The custom name of the campaign. + Name *string `type:"string"` + + // The campaign schedule. + Schedule *Schedule `type:"structure"` + + // The ID of the segment to which the campaign sends messages. + SegmentId *string `type:"string"` + + // The version of the segment to which the campaign sends messages. + SegmentVersion *int64 `type:"integer"` + + // The campaign status.An A/B test campaign will have a status of COMPLETED + // only when all treatments have a status of COMPLETED. + State *CampaignState `type:"structure"` + + // A custom description for the treatment. + TreatmentDescription *string `type:"string"` + + // The custom name of a variation of the campaign used for A/B testing. + TreatmentName *string `type:"string"` + + // The campaign version number. + Version *int64 `type:"integer"` +} + +// String returns the string representation +func (s CampaignResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CampaignResponse) GoString() string { + return s.String() +} + +// SetAdditionalTreatments sets the AdditionalTreatments field's value. +func (s *CampaignResponse) SetAdditionalTreatments(v []*TreatmentResource) *CampaignResponse { + s.AdditionalTreatments = v + return s +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *CampaignResponse) SetApplicationId(v string) *CampaignResponse { + s.ApplicationId = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *CampaignResponse) SetCreationDate(v string) *CampaignResponse { + s.CreationDate = &v + return s +} + +// SetDefaultState sets the DefaultState field's value. +func (s *CampaignResponse) SetDefaultState(v *CampaignState) *CampaignResponse { + s.DefaultState = v + return s +} + +// SetDescription sets the Description field's value. +func (s *CampaignResponse) SetDescription(v string) *CampaignResponse { + s.Description = &v + return s +} + +// SetHoldoutPercent sets the HoldoutPercent field's value. +func (s *CampaignResponse) SetHoldoutPercent(v int64) *CampaignResponse { + s.HoldoutPercent = &v + return s +} + +// SetId sets the Id field's value. +func (s *CampaignResponse) SetId(v string) *CampaignResponse { + s.Id = &v + return s +} + +// SetIsPaused sets the IsPaused field's value. +func (s *CampaignResponse) SetIsPaused(v bool) *CampaignResponse { + s.IsPaused = &v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *CampaignResponse) SetLastModifiedDate(v string) *CampaignResponse { + s.LastModifiedDate = &v + return s +} + +// SetLimits sets the Limits field's value. +func (s *CampaignResponse) SetLimits(v *CampaignLimits) *CampaignResponse { + s.Limits = v + return s +} + +// SetMessageConfiguration sets the MessageConfiguration field's value. +func (s *CampaignResponse) SetMessageConfiguration(v *MessageConfiguration) *CampaignResponse { + s.MessageConfiguration = v + return s +} + +// SetName sets the Name field's value. +func (s *CampaignResponse) SetName(v string) *CampaignResponse { + s.Name = &v + return s +} + +// SetSchedule sets the Schedule field's value. +func (s *CampaignResponse) SetSchedule(v *Schedule) *CampaignResponse { + s.Schedule = v + return s +} + +// SetSegmentId sets the SegmentId field's value. +func (s *CampaignResponse) SetSegmentId(v string) *CampaignResponse { + s.SegmentId = &v + return s +} + +// SetSegmentVersion sets the SegmentVersion field's value. +func (s *CampaignResponse) SetSegmentVersion(v int64) *CampaignResponse { + s.SegmentVersion = &v + return s +} + +// SetState sets the State field's value. +func (s *CampaignResponse) SetState(v *CampaignState) *CampaignResponse { + s.State = v + return s +} + +// SetTreatmentDescription sets the TreatmentDescription field's value. +func (s *CampaignResponse) SetTreatmentDescription(v string) *CampaignResponse { + s.TreatmentDescription = &v + return s +} + +// SetTreatmentName sets the TreatmentName field's value. +func (s *CampaignResponse) SetTreatmentName(v string) *CampaignResponse { + s.TreatmentName = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *CampaignResponse) SetVersion(v int64) *CampaignResponse { + s.Version = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//CampaignState +type CampaignState struct { + _ struct{} `type:"structure"` + + CampaignStatus *string `type:"string" enum:"CampaignStatus"` +} + +// String returns the string representation +func (s CampaignState) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CampaignState) GoString() string { + return s.String() +} + +// SetCampaignStatus sets the CampaignStatus field's value. +func (s *CampaignState) SetCampaignStatus(v string) *CampaignState { + s.CampaignStatus = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//CampaignsResponse +type CampaignsResponse struct { + _ struct{} `type:"structure"` + + // A list of campaigns. + Item []*CampaignResponse `type:"list"` + + // The string that you use in a subsequent request to get the next page of results + // in a paginated response. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s CampaignsResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CampaignsResponse) GoString() string { + return s.String() +} + +// SetItem sets the Item field's value. +func (s *CampaignsResponse) SetItem(v []*CampaignResponse) *CampaignsResponse { + s.Item = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *CampaignsResponse) SetNextToken(v string) *CampaignsResponse { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//CreateCampaignRequest +type CreateCampaignInput struct { + _ struct{} `type:"structure" payload:"WriteCampaignRequest"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // WriteCampaignRequest is a required field + WriteCampaignRequest *WriteCampaignRequest `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateCampaignInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateCampaignInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateCampaignInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateCampaignInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.WriteCampaignRequest == nil { + invalidParams.Add(request.NewErrParamRequired("WriteCampaignRequest")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *CreateCampaignInput) SetApplicationId(v string) *CreateCampaignInput { + s.ApplicationId = &v + return s +} + +// SetWriteCampaignRequest sets the WriteCampaignRequest field's value. +func (s *CreateCampaignInput) SetWriteCampaignRequest(v *WriteCampaignRequest) *CreateCampaignInput { + s.WriteCampaignRequest = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//CreateCampaignResponse +type CreateCampaignOutput struct { + _ struct{} `type:"structure" payload:"CampaignResponse"` + + // CampaignResponse is a required field + CampaignResponse *CampaignResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateCampaignOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateCampaignOutput) GoString() string { + return s.String() +} + +// SetCampaignResponse sets the CampaignResponse field's value. +func (s *CreateCampaignOutput) SetCampaignResponse(v *CampaignResponse) *CreateCampaignOutput { + s.CampaignResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//CreateImportJobRequest +type CreateImportJobInput struct { + _ struct{} `type:"structure" payload:"ImportJobRequest"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // ImportJobRequest is a required field + ImportJobRequest *ImportJobRequest `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateImportJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateImportJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateImportJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateImportJobInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ImportJobRequest == nil { + invalidParams.Add(request.NewErrParamRequired("ImportJobRequest")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *CreateImportJobInput) SetApplicationId(v string) *CreateImportJobInput { + s.ApplicationId = &v + return s +} + +// SetImportJobRequest sets the ImportJobRequest field's value. +func (s *CreateImportJobInput) SetImportJobRequest(v *ImportJobRequest) *CreateImportJobInput { + s.ImportJobRequest = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//CreateImportJobResponse +type CreateImportJobOutput struct { + _ struct{} `type:"structure" payload:"ImportJobResponse"` + + // ImportJobResponse is a required field + ImportJobResponse *ImportJobResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateImportJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateImportJobOutput) GoString() string { + return s.String() +} + +// SetImportJobResponse sets the ImportJobResponse field's value. +func (s *CreateImportJobOutput) SetImportJobResponse(v *ImportJobResponse) *CreateImportJobOutput { + s.ImportJobResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//CreateSegmentRequest +type CreateSegmentInput struct { + _ struct{} `type:"structure" payload:"WriteSegmentRequest"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // WriteSegmentRequest is a required field + WriteSegmentRequest *WriteSegmentRequest `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateSegmentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSegmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSegmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSegmentInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.WriteSegmentRequest == nil { + invalidParams.Add(request.NewErrParamRequired("WriteSegmentRequest")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *CreateSegmentInput) SetApplicationId(v string) *CreateSegmentInput { + s.ApplicationId = &v + return s +} + +// SetWriteSegmentRequest sets the WriteSegmentRequest field's value. +func (s *CreateSegmentInput) SetWriteSegmentRequest(v *WriteSegmentRequest) *CreateSegmentInput { + s.WriteSegmentRequest = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//CreateSegmentResponse +type CreateSegmentOutput struct { + _ struct{} `type:"structure" payload:"SegmentResponse"` + + // SegmentResponse is a required field + SegmentResponse *SegmentResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateSegmentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSegmentOutput) GoString() string { + return s.String() +} + +// SetSegmentResponse sets the SegmentResponse field's value. +func (s *CreateSegmentOutput) SetSegmentResponse(v *SegmentResponse) *CreateSegmentOutput { + s.SegmentResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteApnsChannelRequest +type DeleteApnsChannelInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteApnsChannelInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteApnsChannelInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteApnsChannelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteApnsChannelInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *DeleteApnsChannelInput) SetApplicationId(v string) *DeleteApnsChannelInput { + s.ApplicationId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteApnsChannelResponse +type DeleteApnsChannelOutput struct { + _ struct{} `type:"structure" payload:"APNSChannelResponse"` + + // APNSChannelResponse is a required field + APNSChannelResponse *APNSChannelResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DeleteApnsChannelOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteApnsChannelOutput) GoString() string { + return s.String() +} + +// SetAPNSChannelResponse sets the APNSChannelResponse field's value. +func (s *DeleteApnsChannelOutput) SetAPNSChannelResponse(v *APNSChannelResponse) *DeleteApnsChannelOutput { + s.APNSChannelResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteCampaignRequest +type DeleteCampaignInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // CampaignId is a required field + CampaignId *string `location:"uri" locationName:"campaign-id" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteCampaignInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteCampaignInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteCampaignInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteCampaignInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.CampaignId == nil { + invalidParams.Add(request.NewErrParamRequired("CampaignId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *DeleteCampaignInput) SetApplicationId(v string) *DeleteCampaignInput { + s.ApplicationId = &v + return s +} + +// SetCampaignId sets the CampaignId field's value. +func (s *DeleteCampaignInput) SetCampaignId(v string) *DeleteCampaignInput { + s.CampaignId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteCampaignResponse +type DeleteCampaignOutput struct { + _ struct{} `type:"structure" payload:"CampaignResponse"` + + // CampaignResponse is a required field + CampaignResponse *CampaignResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DeleteCampaignOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteCampaignOutput) GoString() string { + return s.String() +} + +// SetCampaignResponse sets the CampaignResponse field's value. +func (s *DeleteCampaignOutput) SetCampaignResponse(v *CampaignResponse) *DeleteCampaignOutput { + s.CampaignResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteGcmChannelRequest +type DeleteGcmChannelInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteGcmChannelInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteGcmChannelInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteGcmChannelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteGcmChannelInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *DeleteGcmChannelInput) SetApplicationId(v string) *DeleteGcmChannelInput { + s.ApplicationId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteGcmChannelResponse +type DeleteGcmChannelOutput struct { + _ struct{} `type:"structure" payload:"GCMChannelResponse"` + + // GCMChannelResponse is a required field + GCMChannelResponse *GCMChannelResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DeleteGcmChannelOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteGcmChannelOutput) GoString() string { + return s.String() +} + +// SetGCMChannelResponse sets the GCMChannelResponse field's value. +func (s *DeleteGcmChannelOutput) SetGCMChannelResponse(v *GCMChannelResponse) *DeleteGcmChannelOutput { + s.GCMChannelResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteSegmentRequest +type DeleteSegmentInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // SegmentId is a required field + SegmentId *string `location:"uri" locationName:"segment-id" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteSegmentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteSegmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteSegmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSegmentInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.SegmentId == nil { + invalidParams.Add(request.NewErrParamRequired("SegmentId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *DeleteSegmentInput) SetApplicationId(v string) *DeleteSegmentInput { + s.ApplicationId = &v + return s +} + +// SetSegmentId sets the SegmentId field's value. +func (s *DeleteSegmentInput) SetSegmentId(v string) *DeleteSegmentInput { + s.SegmentId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteSegmentResponse +type DeleteSegmentOutput struct { + _ struct{} `type:"structure" payload:"SegmentResponse"` + + // SegmentResponse is a required field + SegmentResponse *SegmentResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DeleteSegmentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteSegmentOutput) GoString() string { + return s.String() +} + +// SetSegmentResponse sets the SegmentResponse field's value. +func (s *DeleteSegmentOutput) SetSegmentResponse(v *SegmentResponse) *DeleteSegmentOutput { + s.SegmentResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//EndpointBatchItem +type EndpointBatchItem struct { + _ struct{} `type:"structure"` + + // The address or token of the endpoint. + Address *string `type:"string"` + + Attributes map[string][]*string `type:"map"` + + ChannelType *string `type:"string" enum:"ChannelType"` + + // The endpoint demographic attributes. + Demographic *EndpointDemographic `type:"structure"` + + // The last time the endpoint was updated. Provided in ISO 8601 format. + EffectiveDate *string `type:"string"` + + // The endpoint status. Can be either ACTIVE or INACTIVE. Will be set to INACTIVE + // if a delivery fails. Will be set to ACTIVE if the address is updated. + EndpointStatus *string `type:"string"` + + Id *string `type:"string"` + + // The endpoint location attributes. + Location *EndpointLocation `type:"structure"` + + Metrics map[string]*float64 `type:"map"` + + // Indicates whether a user has opted out of receiving messages with one of + // the following values:ALL – User receives all messages.NONE – User receives + // no messages. + OptOut *string `type:"string"` + + // The unique ID for the most recent request to update the endpoint. + RequestId *string `type:"string"` + + // Custom user-specific attributes that your app reports to Amazon Pinpoint. + User *EndpointUser `type:"structure"` +} + +// String returns the string representation +func (s EndpointBatchItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EndpointBatchItem) GoString() string { + return s.String() +} + +// SetAddress sets the Address field's value. +func (s *EndpointBatchItem) SetAddress(v string) *EndpointBatchItem { + s.Address = &v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *EndpointBatchItem) SetAttributes(v map[string][]*string) *EndpointBatchItem { + s.Attributes = v + return s +} + +// SetChannelType sets the ChannelType field's value. +func (s *EndpointBatchItem) SetChannelType(v string) *EndpointBatchItem { + s.ChannelType = &v + return s +} + +// SetDemographic sets the Demographic field's value. +func (s *EndpointBatchItem) SetDemographic(v *EndpointDemographic) *EndpointBatchItem { + s.Demographic = v + return s +} + +// SetEffectiveDate sets the EffectiveDate field's value. +func (s *EndpointBatchItem) SetEffectiveDate(v string) *EndpointBatchItem { + s.EffectiveDate = &v + return s +} + +// SetEndpointStatus sets the EndpointStatus field's value. +func (s *EndpointBatchItem) SetEndpointStatus(v string) *EndpointBatchItem { + s.EndpointStatus = &v + return s +} + +// SetId sets the Id field's value. +func (s *EndpointBatchItem) SetId(v string) *EndpointBatchItem { + s.Id = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *EndpointBatchItem) SetLocation(v *EndpointLocation) *EndpointBatchItem { + s.Location = v + return s +} + +// SetMetrics sets the Metrics field's value. +func (s *EndpointBatchItem) SetMetrics(v map[string]*float64) *EndpointBatchItem { + s.Metrics = v + return s +} + +// SetOptOut sets the OptOut field's value. +func (s *EndpointBatchItem) SetOptOut(v string) *EndpointBatchItem { + s.OptOut = &v + return s +} + +// SetRequestId sets the RequestId field's value. +func (s *EndpointBatchItem) SetRequestId(v string) *EndpointBatchItem { + s.RequestId = &v + return s +} + +// SetUser sets the User field's value. +func (s *EndpointBatchItem) SetUser(v *EndpointUser) *EndpointBatchItem { + s.User = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//EndpointBatchRequest +type EndpointBatchRequest struct { + _ struct{} `type:"structure"` + + // List of items to update. Maximum 100 items + Item []*EndpointBatchItem `type:"list"` +} + +// String returns the string representation +func (s EndpointBatchRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EndpointBatchRequest) GoString() string { + return s.String() +} + +// SetItem sets the Item field's value. +func (s *EndpointBatchRequest) SetItem(v []*EndpointBatchItem) *EndpointBatchRequest { + s.Item = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//EndpointDemographic +type EndpointDemographic struct { + _ struct{} `type:"structure"` + + // The version of the application associated with the endpoint. + AppVersion *string `type:"string"` + + // The endpoint locale in the following format: The ISO 639-1 alpha-2 code, + // followed by an underscore, followed by an ISO 3166-1 alpha-2 value. + Locale *string `type:"string"` + + // The endpoint make, such as such as Apple or Samsung. + Make *string `type:"string"` + + // The endpoint model, such as iPhone. + Model *string `type:"string"` + + // The endpoint model version. + ModelVersion *string `type:"string"` + + // The endpoint platform, such as ios or android. + Platform *string `type:"string"` + + // The endpoint platform version. + PlatformVersion *string `type:"string"` + + // The timezone of the endpoint. Specified as a tz database value, such as Americas/Los_Angeles. + Timezone *string `type:"string"` +} + +// String returns the string representation +func (s EndpointDemographic) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EndpointDemographic) GoString() string { + return s.String() +} + +// SetAppVersion sets the AppVersion field's value. +func (s *EndpointDemographic) SetAppVersion(v string) *EndpointDemographic { + s.AppVersion = &v + return s +} + +// SetLocale sets the Locale field's value. +func (s *EndpointDemographic) SetLocale(v string) *EndpointDemographic { + s.Locale = &v + return s +} + +// SetMake sets the Make field's value. +func (s *EndpointDemographic) SetMake(v string) *EndpointDemographic { + s.Make = &v + return s +} + +// SetModel sets the Model field's value. +func (s *EndpointDemographic) SetModel(v string) *EndpointDemographic { + s.Model = &v + return s +} + +// SetModelVersion sets the ModelVersion field's value. +func (s *EndpointDemographic) SetModelVersion(v string) *EndpointDemographic { + s.ModelVersion = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *EndpointDemographic) SetPlatform(v string) *EndpointDemographic { + s.Platform = &v + return s +} + +// SetPlatformVersion sets the PlatformVersion field's value. +func (s *EndpointDemographic) SetPlatformVersion(v string) *EndpointDemographic { + s.PlatformVersion = &v + return s +} + +// SetTimezone sets the Timezone field's value. +func (s *EndpointDemographic) SetTimezone(v string) *EndpointDemographic { + s.Timezone = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//EndpointLocation +type EndpointLocation struct { + _ struct{} `type:"structure"` + + // The city where the endpoint is located. + City *string `type:"string"` + + // Country according to ISO 3166-1 Alpha-2 codes. For example, US. + Country *string `type:"string"` + + // The latitude of the endpoint location. Rounded to one decimal (Roughly corresponding + // to a mile). + Latitude *float64 `type:"double"` + + // The longitude of the endpoint location. Rounded to one decimal (Roughly corresponding + // to a mile). + Longitude *float64 `type:"double"` + + // The postal code or zip code of the endpoint. + PostalCode *string `type:"string"` + + // The region of the endpoint location. For example, corresponds to a state + // in US. + Region *string `type:"string"` +} + +// String returns the string representation +func (s EndpointLocation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EndpointLocation) GoString() string { + return s.String() +} + +// SetCity sets the City field's value. +func (s *EndpointLocation) SetCity(v string) *EndpointLocation { + s.City = &v + return s +} + +// SetCountry sets the Country field's value. +func (s *EndpointLocation) SetCountry(v string) *EndpointLocation { + s.Country = &v + return s +} + +// SetLatitude sets the Latitude field's value. +func (s *EndpointLocation) SetLatitude(v float64) *EndpointLocation { + s.Latitude = &v + return s +} + +// SetLongitude sets the Longitude field's value. +func (s *EndpointLocation) SetLongitude(v float64) *EndpointLocation { + s.Longitude = &v + return s +} + +// SetPostalCode sets the PostalCode field's value. +func (s *EndpointLocation) SetPostalCode(v string) *EndpointLocation { + s.PostalCode = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *EndpointLocation) SetRegion(v string) *EndpointLocation { + s.Region = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//EndpointRequest +type EndpointRequest struct { + _ struct{} `type:"structure"` + + // The address or token of the endpoint. + Address *string `type:"string"` + + Attributes map[string][]*string `type:"map"` + + ChannelType *string `type:"string" enum:"ChannelType"` + + // The endpoint demographic attributes. + Demographic *EndpointDemographic `type:"structure"` + + // The last time the endpoint was updated. Provided in ISO 8601 format. + EffectiveDate *string `type:"string"` + + // The endpoint status. Can be either ACTIVE or INACTIVE. Will be set to INACTIVE + // if a delivery fails. Will be set to ACTIVE if the address is updated. + EndpointStatus *string `type:"string"` + + // The endpoint location attributes. + Location *EndpointLocation `type:"structure"` + + Metrics map[string]*float64 `type:"map"` + + // Indicates whether a user has opted out of receiving messages with one of + // the following values:ALL – User receives all messages.NONE – User receives + // no messages. + OptOut *string `type:"string"` + + // The unique ID for the most recent request to update the endpoint. + RequestId *string `type:"string"` + + // Custom user-specific attributes that your app reports to Amazon Pinpoint. + User *EndpointUser `type:"structure"` +} + +// String returns the string representation +func (s EndpointRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EndpointRequest) GoString() string { + return s.String() +} + +// SetAddress sets the Address field's value. +func (s *EndpointRequest) SetAddress(v string) *EndpointRequest { + s.Address = &v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *EndpointRequest) SetAttributes(v map[string][]*string) *EndpointRequest { + s.Attributes = v + return s +} + +// SetChannelType sets the ChannelType field's value. +func (s *EndpointRequest) SetChannelType(v string) *EndpointRequest { + s.ChannelType = &v + return s +} + +// SetDemographic sets the Demographic field's value. +func (s *EndpointRequest) SetDemographic(v *EndpointDemographic) *EndpointRequest { + s.Demographic = v + return s +} + +// SetEffectiveDate sets the EffectiveDate field's value. +func (s *EndpointRequest) SetEffectiveDate(v string) *EndpointRequest { + s.EffectiveDate = &v + return s +} + +// SetEndpointStatus sets the EndpointStatus field's value. +func (s *EndpointRequest) SetEndpointStatus(v string) *EndpointRequest { + s.EndpointStatus = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *EndpointRequest) SetLocation(v *EndpointLocation) *EndpointRequest { + s.Location = v + return s +} + +// SetMetrics sets the Metrics field's value. +func (s *EndpointRequest) SetMetrics(v map[string]*float64) *EndpointRequest { + s.Metrics = v + return s +} + +// SetOptOut sets the OptOut field's value. +func (s *EndpointRequest) SetOptOut(v string) *EndpointRequest { + s.OptOut = &v + return s +} + +// SetRequestId sets the RequestId field's value. +func (s *EndpointRequest) SetRequestId(v string) *EndpointRequest { + s.RequestId = &v + return s +} + +// SetUser sets the User field's value. +func (s *EndpointRequest) SetUser(v *EndpointUser) *EndpointRequest { + s.User = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//EndpointResponse +type EndpointResponse struct { + _ struct{} `type:"structure"` + + // The address or token of the endpoint. + Address *string `type:"string"` + + // The ID of the application associated with the endpoint. + ApplicationId *string `type:"string"` + + Attributes map[string][]*string `type:"map"` + + ChannelType *string `type:"string" enum:"ChannelType"` + + // A number from 0 - 99 that represents the cohort the endpoint is assigned + // to. Endpoints are grouped into cohorts randomly, and each cohort contains + // approximately 1 percent of the endpoints for an app. Amazon Pinpoint assigns + // cohorts to the holdout or treatment allocations for a campaign. + CohortId *string `type:"string"` + + // The last time the endpoint was created. Provided in ISO 8601 format. + CreationDate *string `type:"string"` + + // The endpoint demographic attributes. + Demographic *EndpointDemographic `type:"structure"` + + // The last time the endpoint was updated. Provided in ISO 8601 format. + EffectiveDate *string `type:"string"` + + // The endpoint status. Can be either ACTIVE or INACTIVE. Will be set to INACTIVE + // if a delivery fails. Will be set to ACTIVE if the address is updated. + EndpointStatus *string `type:"string"` + + // The unique ID that you assigned to the endpoint. The ID should be a globally + // unique identifier (GUID) to ensure that it is unique compared to all other + // endpoints for the application. + Id *string `type:"string"` + + // The endpoint location attributes. + Location *EndpointLocation `type:"structure"` + + Metrics map[string]*float64 `type:"map"` + + // Indicates whether a user has opted out of receiving messages with one of + // the following values:ALL – User receives all messages.NONE – User receives + // no messages. + OptOut *string `type:"string"` + + // The unique ID for the most recent request to update the endpoint. + RequestId *string `type:"string"` + + // The ShardId of endpoint + ShardId *string `type:"string"` + + // Custom user-specific attributes that your app reports to Amazon Pinpoint. + User *EndpointUser `type:"structure"` +} + +// String returns the string representation +func (s EndpointResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EndpointResponse) GoString() string { + return s.String() +} + +// SetAddress sets the Address field's value. +func (s *EndpointResponse) SetAddress(v string) *EndpointResponse { + s.Address = &v + return s +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *EndpointResponse) SetApplicationId(v string) *EndpointResponse { + s.ApplicationId = &v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *EndpointResponse) SetAttributes(v map[string][]*string) *EndpointResponse { + s.Attributes = v + return s +} + +// SetChannelType sets the ChannelType field's value. +func (s *EndpointResponse) SetChannelType(v string) *EndpointResponse { + s.ChannelType = &v + return s +} + +// SetCohortId sets the CohortId field's value. +func (s *EndpointResponse) SetCohortId(v string) *EndpointResponse { + s.CohortId = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *EndpointResponse) SetCreationDate(v string) *EndpointResponse { + s.CreationDate = &v + return s +} + +// SetDemographic sets the Demographic field's value. +func (s *EndpointResponse) SetDemographic(v *EndpointDemographic) *EndpointResponse { + s.Demographic = v + return s +} + +// SetEffectiveDate sets the EffectiveDate field's value. +func (s *EndpointResponse) SetEffectiveDate(v string) *EndpointResponse { + s.EffectiveDate = &v + return s +} + +// SetEndpointStatus sets the EndpointStatus field's value. +func (s *EndpointResponse) SetEndpointStatus(v string) *EndpointResponse { + s.EndpointStatus = &v + return s +} + +// SetId sets the Id field's value. +func (s *EndpointResponse) SetId(v string) *EndpointResponse { + s.Id = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *EndpointResponse) SetLocation(v *EndpointLocation) *EndpointResponse { + s.Location = v + return s +} + +// SetMetrics sets the Metrics field's value. +func (s *EndpointResponse) SetMetrics(v map[string]*float64) *EndpointResponse { + s.Metrics = v + return s +} + +// SetOptOut sets the OptOut field's value. +func (s *EndpointResponse) SetOptOut(v string) *EndpointResponse { + s.OptOut = &v + return s +} + +// SetRequestId sets the RequestId field's value. +func (s *EndpointResponse) SetRequestId(v string) *EndpointResponse { + s.RequestId = &v + return s +} + +// SetShardId sets the ShardId field's value. +func (s *EndpointResponse) SetShardId(v string) *EndpointResponse { + s.ShardId = &v + return s +} + +// SetUser sets the User field's value. +func (s *EndpointResponse) SetUser(v *EndpointUser) *EndpointResponse { + s.User = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//EndpointUser +type EndpointUser struct { + _ struct{} `type:"structure"` + + UserAttributes map[string][]*string `type:"map"` + + // The unique ID of the user. + UserId *string `type:"string"` +} + +// String returns the string representation +func (s EndpointUser) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EndpointUser) GoString() string { + return s.String() +} + +// SetUserAttributes sets the UserAttributes field's value. +func (s *EndpointUser) SetUserAttributes(v map[string][]*string) *EndpointUser { + s.UserAttributes = v + return s +} + +// SetUserId sets the UserId field's value. +func (s *EndpointUser) SetUserId(v string) *EndpointUser { + s.UserId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GCMChannelRequest +type GCMChannelRequest struct { + _ struct{} `type:"structure"` + + // Platform credential API key from Google. + ApiKey *string `type:"string"` +} + +// String returns the string representation +func (s GCMChannelRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GCMChannelRequest) GoString() string { + return s.String() +} + +// SetApiKey sets the ApiKey field's value. +func (s *GCMChannelRequest) SetApiKey(v string) *GCMChannelRequest { + s.ApiKey = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GCMChannelResponse +type GCMChannelResponse struct { + _ struct{} `type:"structure"` + + ApplicationId *string `type:"string"` + + // When was this segment created + CreationDate *string `type:"string"` + + // The GCM API key from Google. + Credential *string `type:"string"` + + Id *string `type:"string"` + + // Is this channel archived + IsArchived *bool `type:"boolean"` + + // Who last updated this entry + LastModifiedBy *string `type:"string"` + + // Last date this was updated + LastModifiedDate *string `type:"string"` + + // The platform type. Will be GCM + Platform *string `type:"string"` + + // Version of channel + Version *int64 `type:"integer"` +} + +// String returns the string representation +func (s GCMChannelResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GCMChannelResponse) GoString() string { + return s.String() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GCMChannelResponse) SetApplicationId(v string) *GCMChannelResponse { + s.ApplicationId = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *GCMChannelResponse) SetCreationDate(v string) *GCMChannelResponse { + s.CreationDate = &v + return s +} + +// SetCredential sets the Credential field's value. +func (s *GCMChannelResponse) SetCredential(v string) *GCMChannelResponse { + s.Credential = &v + return s +} + +// SetId sets the Id field's value. +func (s *GCMChannelResponse) SetId(v string) *GCMChannelResponse { + s.Id = &v + return s +} + +// SetIsArchived sets the IsArchived field's value. +func (s *GCMChannelResponse) SetIsArchived(v bool) *GCMChannelResponse { + s.IsArchived = &v + return s +} + +// SetLastModifiedBy sets the LastModifiedBy field's value. +func (s *GCMChannelResponse) SetLastModifiedBy(v string) *GCMChannelResponse { + s.LastModifiedBy = &v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *GCMChannelResponse) SetLastModifiedDate(v string) *GCMChannelResponse { + s.LastModifiedDate = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *GCMChannelResponse) SetPlatform(v string) *GCMChannelResponse { + s.Platform = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *GCMChannelResponse) SetVersion(v int64) *GCMChannelResponse { + s.Version = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetApnsChannelRequest +type GetApnsChannelInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetApnsChannelInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetApnsChannelInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetApnsChannelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetApnsChannelInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetApnsChannelInput) SetApplicationId(v string) *GetApnsChannelInput { + s.ApplicationId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetApnsChannelResponse +type GetApnsChannelOutput struct { + _ struct{} `type:"structure" payload:"APNSChannelResponse"` + + // APNSChannelResponse is a required field + APNSChannelResponse *APNSChannelResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetApnsChannelOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetApnsChannelOutput) GoString() string { + return s.String() +} + +// SetAPNSChannelResponse sets the APNSChannelResponse field's value. +func (s *GetApnsChannelOutput) SetAPNSChannelResponse(v *APNSChannelResponse) *GetApnsChannelOutput { + s.APNSChannelResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetApplicationSettingsRequest +type GetApplicationSettingsInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetApplicationSettingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetApplicationSettingsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetApplicationSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetApplicationSettingsInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetApplicationSettingsInput) SetApplicationId(v string) *GetApplicationSettingsInput { + s.ApplicationId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetApplicationSettingsResponse +type GetApplicationSettingsOutput struct { + _ struct{} `type:"structure" payload:"ApplicationSettingsResource"` + + // ApplicationSettingsResource is a required field + ApplicationSettingsResource *ApplicationSettingsResource `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetApplicationSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetApplicationSettingsOutput) GoString() string { + return s.String() +} + +// SetApplicationSettingsResource sets the ApplicationSettingsResource field's value. +func (s *GetApplicationSettingsOutput) SetApplicationSettingsResource(v *ApplicationSettingsResource) *GetApplicationSettingsOutput { + s.ApplicationSettingsResource = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetCampaignActivitiesRequest +type GetCampaignActivitiesInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // CampaignId is a required field + CampaignId *string `location:"uri" locationName:"campaign-id" type:"string" required:"true"` + + PageSize *string `location:"querystring" locationName:"page-size" type:"string"` + + Token *string `location:"querystring" locationName:"token" type:"string"` +} + +// String returns the string representation +func (s GetCampaignActivitiesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCampaignActivitiesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetCampaignActivitiesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCampaignActivitiesInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.CampaignId == nil { + invalidParams.Add(request.NewErrParamRequired("CampaignId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetCampaignActivitiesInput) SetApplicationId(v string) *GetCampaignActivitiesInput { + s.ApplicationId = &v + return s +} + +// SetCampaignId sets the CampaignId field's value. +func (s *GetCampaignActivitiesInput) SetCampaignId(v string) *GetCampaignActivitiesInput { + s.CampaignId = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *GetCampaignActivitiesInput) SetPageSize(v string) *GetCampaignActivitiesInput { + s.PageSize = &v + return s +} + +// SetToken sets the Token field's value. +func (s *GetCampaignActivitiesInput) SetToken(v string) *GetCampaignActivitiesInput { + s.Token = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetCampaignActivitiesResponse +type GetCampaignActivitiesOutput struct { + _ struct{} `type:"structure" payload:"ActivitiesResponse"` + + // ActivitiesResponse is a required field + ActivitiesResponse *ActivitiesResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetCampaignActivitiesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCampaignActivitiesOutput) GoString() string { + return s.String() +} + +// SetActivitiesResponse sets the ActivitiesResponse field's value. +func (s *GetCampaignActivitiesOutput) SetActivitiesResponse(v *ActivitiesResponse) *GetCampaignActivitiesOutput { + s.ActivitiesResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetCampaignRequest +type GetCampaignInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // CampaignId is a required field + CampaignId *string `location:"uri" locationName:"campaign-id" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetCampaignInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCampaignInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetCampaignInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCampaignInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.CampaignId == nil { + invalidParams.Add(request.NewErrParamRequired("CampaignId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetCampaignInput) SetApplicationId(v string) *GetCampaignInput { + s.ApplicationId = &v + return s +} + +// SetCampaignId sets the CampaignId field's value. +func (s *GetCampaignInput) SetCampaignId(v string) *GetCampaignInput { + s.CampaignId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetCampaignResponse +type GetCampaignOutput struct { + _ struct{} `type:"structure" payload:"CampaignResponse"` + + // CampaignResponse is a required field + CampaignResponse *CampaignResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetCampaignOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCampaignOutput) GoString() string { + return s.String() +} + +// SetCampaignResponse sets the CampaignResponse field's value. +func (s *GetCampaignOutput) SetCampaignResponse(v *CampaignResponse) *GetCampaignOutput { + s.CampaignResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetCampaignVersionRequest +type GetCampaignVersionInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // CampaignId is a required field + CampaignId *string `location:"uri" locationName:"campaign-id" type:"string" required:"true"` + + // Version is a required field + Version *string `location:"uri" locationName:"version" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetCampaignVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCampaignVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetCampaignVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCampaignVersionInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.CampaignId == nil { + invalidParams.Add(request.NewErrParamRequired("CampaignId")) + } + if s.Version == nil { + invalidParams.Add(request.NewErrParamRequired("Version")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetCampaignVersionInput) SetApplicationId(v string) *GetCampaignVersionInput { + s.ApplicationId = &v + return s +} + +// SetCampaignId sets the CampaignId field's value. +func (s *GetCampaignVersionInput) SetCampaignId(v string) *GetCampaignVersionInput { + s.CampaignId = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *GetCampaignVersionInput) SetVersion(v string) *GetCampaignVersionInput { + s.Version = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetCampaignVersionResponse +type GetCampaignVersionOutput struct { + _ struct{} `type:"structure" payload:"CampaignResponse"` + + // CampaignResponse is a required field + CampaignResponse *CampaignResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetCampaignVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCampaignVersionOutput) GoString() string { + return s.String() +} + +// SetCampaignResponse sets the CampaignResponse field's value. +func (s *GetCampaignVersionOutput) SetCampaignResponse(v *CampaignResponse) *GetCampaignVersionOutput { + s.CampaignResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetCampaignVersionsRequest +type GetCampaignVersionsInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // CampaignId is a required field + CampaignId *string `location:"uri" locationName:"campaign-id" type:"string" required:"true"` + + PageSize *string `location:"querystring" locationName:"page-size" type:"string"` + + Token *string `location:"querystring" locationName:"token" type:"string"` +} + +// String returns the string representation +func (s GetCampaignVersionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCampaignVersionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetCampaignVersionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCampaignVersionsInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.CampaignId == nil { + invalidParams.Add(request.NewErrParamRequired("CampaignId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetCampaignVersionsInput) SetApplicationId(v string) *GetCampaignVersionsInput { + s.ApplicationId = &v + return s +} + +// SetCampaignId sets the CampaignId field's value. +func (s *GetCampaignVersionsInput) SetCampaignId(v string) *GetCampaignVersionsInput { + s.CampaignId = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *GetCampaignVersionsInput) SetPageSize(v string) *GetCampaignVersionsInput { + s.PageSize = &v + return s +} + +// SetToken sets the Token field's value. +func (s *GetCampaignVersionsInput) SetToken(v string) *GetCampaignVersionsInput { + s.Token = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetCampaignVersionsResponse +type GetCampaignVersionsOutput struct { + _ struct{} `type:"structure" payload:"CampaignsResponse"` + + // CampaignsResponse is a required field + CampaignsResponse *CampaignsResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetCampaignVersionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCampaignVersionsOutput) GoString() string { + return s.String() +} + +// SetCampaignsResponse sets the CampaignsResponse field's value. +func (s *GetCampaignVersionsOutput) SetCampaignsResponse(v *CampaignsResponse) *GetCampaignVersionsOutput { + s.CampaignsResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetCampaignsRequest +type GetCampaignsInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + PageSize *string `location:"querystring" locationName:"page-size" type:"string"` + + Token *string `location:"querystring" locationName:"token" type:"string"` +} + +// String returns the string representation +func (s GetCampaignsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCampaignsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetCampaignsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCampaignsInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetCampaignsInput) SetApplicationId(v string) *GetCampaignsInput { + s.ApplicationId = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *GetCampaignsInput) SetPageSize(v string) *GetCampaignsInput { + s.PageSize = &v + return s +} + +// SetToken sets the Token field's value. +func (s *GetCampaignsInput) SetToken(v string) *GetCampaignsInput { + s.Token = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetCampaignsResponse +type GetCampaignsOutput struct { + _ struct{} `type:"structure" payload:"CampaignsResponse"` + + // CampaignsResponse is a required field + CampaignsResponse *CampaignsResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetCampaignsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCampaignsOutput) GoString() string { + return s.String() +} + +// SetCampaignsResponse sets the CampaignsResponse field's value. +func (s *GetCampaignsOutput) SetCampaignsResponse(v *CampaignsResponse) *GetCampaignsOutput { + s.CampaignsResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetEndpointRequest +type GetEndpointInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // EndpointId is a required field + EndpointId *string `location:"uri" locationName:"endpoint-id" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetEndpointInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetEndpointInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetEndpointInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetEndpointInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.EndpointId == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetEndpointInput) SetApplicationId(v string) *GetEndpointInput { + s.ApplicationId = &v + return s +} + +// SetEndpointId sets the EndpointId field's value. +func (s *GetEndpointInput) SetEndpointId(v string) *GetEndpointInput { + s.EndpointId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetEndpointResponse +type GetEndpointOutput struct { + _ struct{} `type:"structure" payload:"EndpointResponse"` + + // EndpointResponse is a required field + EndpointResponse *EndpointResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetEndpointOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetEndpointOutput) GoString() string { + return s.String() +} + +// SetEndpointResponse sets the EndpointResponse field's value. +func (s *GetEndpointOutput) SetEndpointResponse(v *EndpointResponse) *GetEndpointOutput { + s.EndpointResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetGcmChannelRequest +type GetGcmChannelInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetGcmChannelInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetGcmChannelInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetGcmChannelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetGcmChannelInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetGcmChannelInput) SetApplicationId(v string) *GetGcmChannelInput { + s.ApplicationId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetGcmChannelResponse +type GetGcmChannelOutput struct { + _ struct{} `type:"structure" payload:"GCMChannelResponse"` + + // GCMChannelResponse is a required field + GCMChannelResponse *GCMChannelResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetGcmChannelOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetGcmChannelOutput) GoString() string { + return s.String() +} + +// SetGCMChannelResponse sets the GCMChannelResponse field's value. +func (s *GetGcmChannelOutput) SetGCMChannelResponse(v *GCMChannelResponse) *GetGcmChannelOutput { + s.GCMChannelResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetImportJobRequest +type GetImportJobInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // JobId is a required field + JobId *string `location:"uri" locationName:"job-id" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetImportJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetImportJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetImportJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetImportJobInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetImportJobInput) SetApplicationId(v string) *GetImportJobInput { + s.ApplicationId = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *GetImportJobInput) SetJobId(v string) *GetImportJobInput { + s.JobId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetImportJobResponse +type GetImportJobOutput struct { + _ struct{} `type:"structure" payload:"ImportJobResponse"` + + // ImportJobResponse is a required field + ImportJobResponse *ImportJobResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetImportJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetImportJobOutput) GoString() string { + return s.String() +} + +// SetImportJobResponse sets the ImportJobResponse field's value. +func (s *GetImportJobOutput) SetImportJobResponse(v *ImportJobResponse) *GetImportJobOutput { + s.ImportJobResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetImportJobsRequest +type GetImportJobsInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + PageSize *string `location:"querystring" locationName:"page-size" type:"string"` + + Token *string `location:"querystring" locationName:"token" type:"string"` +} + +// String returns the string representation +func (s GetImportJobsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetImportJobsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetImportJobsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetImportJobsInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetImportJobsInput) SetApplicationId(v string) *GetImportJobsInput { + s.ApplicationId = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *GetImportJobsInput) SetPageSize(v string) *GetImportJobsInput { + s.PageSize = &v + return s +} + +// SetToken sets the Token field's value. +func (s *GetImportJobsInput) SetToken(v string) *GetImportJobsInput { + s.Token = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetImportJobsResponse +type GetImportJobsOutput struct { + _ struct{} `type:"structure" payload:"ImportJobsResponse"` + + // ImportJobsResponse is a required field + ImportJobsResponse *ImportJobsResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetImportJobsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetImportJobsOutput) GoString() string { + return s.String() +} + +// SetImportJobsResponse sets the ImportJobsResponse field's value. +func (s *GetImportJobsOutput) SetImportJobsResponse(v *ImportJobsResponse) *GetImportJobsOutput { + s.ImportJobsResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetSegmentImportJobsRequest +type GetSegmentImportJobsInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + PageSize *string `location:"querystring" locationName:"page-size" type:"string"` + + // SegmentId is a required field + SegmentId *string `location:"uri" locationName:"segment-id" type:"string" required:"true"` + + Token *string `location:"querystring" locationName:"token" type:"string"` +} + +// String returns the string representation +func (s GetSegmentImportJobsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetSegmentImportJobsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetSegmentImportJobsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSegmentImportJobsInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.SegmentId == nil { + invalidParams.Add(request.NewErrParamRequired("SegmentId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetSegmentImportJobsInput) SetApplicationId(v string) *GetSegmentImportJobsInput { + s.ApplicationId = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *GetSegmentImportJobsInput) SetPageSize(v string) *GetSegmentImportJobsInput { + s.PageSize = &v + return s +} + +// SetSegmentId sets the SegmentId field's value. +func (s *GetSegmentImportJobsInput) SetSegmentId(v string) *GetSegmentImportJobsInput { + s.SegmentId = &v + return s +} + +// SetToken sets the Token field's value. +func (s *GetSegmentImportJobsInput) SetToken(v string) *GetSegmentImportJobsInput { + s.Token = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetSegmentImportJobsResponse +type GetSegmentImportJobsOutput struct { + _ struct{} `type:"structure" payload:"ImportJobsResponse"` + + // ImportJobsResponse is a required field + ImportJobsResponse *ImportJobsResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetSegmentImportJobsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetSegmentImportJobsOutput) GoString() string { + return s.String() +} + +// SetImportJobsResponse sets the ImportJobsResponse field's value. +func (s *GetSegmentImportJobsOutput) SetImportJobsResponse(v *ImportJobsResponse) *GetSegmentImportJobsOutput { + s.ImportJobsResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetSegmentRequest +type GetSegmentInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // SegmentId is a required field + SegmentId *string `location:"uri" locationName:"segment-id" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetSegmentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetSegmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetSegmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSegmentInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.SegmentId == nil { + invalidParams.Add(request.NewErrParamRequired("SegmentId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetSegmentInput) SetApplicationId(v string) *GetSegmentInput { + s.ApplicationId = &v + return s +} + +// SetSegmentId sets the SegmentId field's value. +func (s *GetSegmentInput) SetSegmentId(v string) *GetSegmentInput { + s.SegmentId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetSegmentResponse +type GetSegmentOutput struct { + _ struct{} `type:"structure" payload:"SegmentResponse"` + + // SegmentResponse is a required field + SegmentResponse *SegmentResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetSegmentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetSegmentOutput) GoString() string { + return s.String() +} + +// SetSegmentResponse sets the SegmentResponse field's value. +func (s *GetSegmentOutput) SetSegmentResponse(v *SegmentResponse) *GetSegmentOutput { + s.SegmentResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetSegmentVersionRequest +type GetSegmentVersionInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // SegmentId is a required field + SegmentId *string `location:"uri" locationName:"segment-id" type:"string" required:"true"` + + // Version is a required field + Version *string `location:"uri" locationName:"version" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetSegmentVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetSegmentVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetSegmentVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSegmentVersionInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.SegmentId == nil { + invalidParams.Add(request.NewErrParamRequired("SegmentId")) + } + if s.Version == nil { + invalidParams.Add(request.NewErrParamRequired("Version")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetSegmentVersionInput) SetApplicationId(v string) *GetSegmentVersionInput { + s.ApplicationId = &v + return s +} + +// SetSegmentId sets the SegmentId field's value. +func (s *GetSegmentVersionInput) SetSegmentId(v string) *GetSegmentVersionInput { + s.SegmentId = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *GetSegmentVersionInput) SetVersion(v string) *GetSegmentVersionInput { + s.Version = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetSegmentVersionResponse +type GetSegmentVersionOutput struct { + _ struct{} `type:"structure" payload:"SegmentResponse"` + + // SegmentResponse is a required field + SegmentResponse *SegmentResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetSegmentVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetSegmentVersionOutput) GoString() string { + return s.String() +} + +// SetSegmentResponse sets the SegmentResponse field's value. +func (s *GetSegmentVersionOutput) SetSegmentResponse(v *SegmentResponse) *GetSegmentVersionOutput { + s.SegmentResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetSegmentVersionsRequest +type GetSegmentVersionsInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + PageSize *string `location:"querystring" locationName:"page-size" type:"string"` + + // SegmentId is a required field + SegmentId *string `location:"uri" locationName:"segment-id" type:"string" required:"true"` + + Token *string `location:"querystring" locationName:"token" type:"string"` +} + +// String returns the string representation +func (s GetSegmentVersionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetSegmentVersionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetSegmentVersionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSegmentVersionsInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.SegmentId == nil { + invalidParams.Add(request.NewErrParamRequired("SegmentId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetSegmentVersionsInput) SetApplicationId(v string) *GetSegmentVersionsInput { + s.ApplicationId = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *GetSegmentVersionsInput) SetPageSize(v string) *GetSegmentVersionsInput { + s.PageSize = &v + return s +} + +// SetSegmentId sets the SegmentId field's value. +func (s *GetSegmentVersionsInput) SetSegmentId(v string) *GetSegmentVersionsInput { + s.SegmentId = &v + return s +} + +// SetToken sets the Token field's value. +func (s *GetSegmentVersionsInput) SetToken(v string) *GetSegmentVersionsInput { + s.Token = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetSegmentVersionsResponse +type GetSegmentVersionsOutput struct { + _ struct{} `type:"structure" payload:"SegmentsResponse"` + + // SegmentsResponse is a required field + SegmentsResponse *SegmentsResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetSegmentVersionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetSegmentVersionsOutput) GoString() string { + return s.String() +} + +// SetSegmentsResponse sets the SegmentsResponse field's value. +func (s *GetSegmentVersionsOutput) SetSegmentsResponse(v *SegmentsResponse) *GetSegmentVersionsOutput { + s.SegmentsResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetSegmentsRequest +type GetSegmentsInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + PageSize *string `location:"querystring" locationName:"page-size" type:"string"` + + Token *string `location:"querystring" locationName:"token" type:"string"` +} + +// String returns the string representation +func (s GetSegmentsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetSegmentsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetSegmentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSegmentsInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetSegmentsInput) SetApplicationId(v string) *GetSegmentsInput { + s.ApplicationId = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *GetSegmentsInput) SetPageSize(v string) *GetSegmentsInput { + s.PageSize = &v + return s +} + +// SetToken sets the Token field's value. +func (s *GetSegmentsInput) SetToken(v string) *GetSegmentsInput { + s.Token = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetSegmentsResponse +type GetSegmentsOutput struct { + _ struct{} `type:"structure" payload:"SegmentsResponse"` + + // SegmentsResponse is a required field + SegmentsResponse *SegmentsResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetSegmentsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetSegmentsOutput) GoString() string { + return s.String() +} + +// SetSegmentsResponse sets the SegmentsResponse field's value. +func (s *GetSegmentsOutput) SetSegmentsResponse(v *SegmentsResponse) *GetSegmentsOutput { + s.SegmentsResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//ImportJobRequest +type ImportJobRequest struct { + _ struct{} `type:"structure"` + + // Sets whether the endpoints create a segment when they are imported. + DefineSegment *bool `type:"boolean"` + + // A unique, custom ID assigned to the IAM role that restricts who can assume + // the role. + ExternalId *string `type:"string"` + + Format *string `type:"string" enum:"Format"` + + // Sets whether the endpoints are registered with Amazon Pinpoint when they + // are imported. + RegisterEndpoints *bool `type:"boolean"` + + // The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint + // access to the Amazon S3 location that contains the endpoints to import. + RoleArn *string `type:"string"` + + // A URL that points to the location within an Amazon S3 bucket that contains + // the endpoints to import. The location can be a folder or a single file.The + // URL should follow this format: s3://bucket-name/folder-name/file-nameAmazon + // Pinpoint will import endpoints from this location and any subfolders it contains. + S3Url *string `type:"string"` + + // The ID of the segment to update if the import job is meant to update an existing + // segment. + SegmentId *string `type:"string"` + + // A custom name for the segment created by the import job. Use if DefineSegment + // is true. + SegmentName *string `type:"string"` +} + +// String returns the string representation +func (s ImportJobRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportJobRequest) GoString() string { + return s.String() +} + +// SetDefineSegment sets the DefineSegment field's value. +func (s *ImportJobRequest) SetDefineSegment(v bool) *ImportJobRequest { + s.DefineSegment = &v + return s +} + +// SetExternalId sets the ExternalId field's value. +func (s *ImportJobRequest) SetExternalId(v string) *ImportJobRequest { + s.ExternalId = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *ImportJobRequest) SetFormat(v string) *ImportJobRequest { + s.Format = &v + return s +} + +// SetRegisterEndpoints sets the RegisterEndpoints field's value. +func (s *ImportJobRequest) SetRegisterEndpoints(v bool) *ImportJobRequest { + s.RegisterEndpoints = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *ImportJobRequest) SetRoleArn(v string) *ImportJobRequest { + s.RoleArn = &v + return s +} + +// SetS3Url sets the S3Url field's value. +func (s *ImportJobRequest) SetS3Url(v string) *ImportJobRequest { + s.S3Url = &v + return s +} + +// SetSegmentId sets the SegmentId field's value. +func (s *ImportJobRequest) SetSegmentId(v string) *ImportJobRequest { + s.SegmentId = &v + return s +} + +// SetSegmentName sets the SegmentName field's value. +func (s *ImportJobRequest) SetSegmentName(v string) *ImportJobRequest { + s.SegmentName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//ImportJobResource +type ImportJobResource struct { + _ struct{} `type:"structure"` + + // Sets whether the endpoints create a segment when they are imported. + DefineSegment *bool `type:"boolean"` + + // A unique, custom ID assigned to the IAM role that restricts who can assume + // the role. + ExternalId *string `type:"string"` + + Format *string `type:"string" enum:"Format"` + + // Sets whether the endpoints are registered with Amazon Pinpoint when they + // are imported. + RegisterEndpoints *bool `type:"boolean"` + + // The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint + // access to the Amazon S3 location that contains the endpoints to import. + RoleArn *string `type:"string"` + + // A URL that points to the location within an Amazon S3 bucket that contains + // the endpoints to import. The location can be a folder or a single file.The + // URL should follow this format: s3://bucket-name/folder-name/file-nameAmazon + // Pinpoint will import endpoints from this location and any subfolders it contains. + S3Url *string `type:"string"` + + // The ID of the segment to update if the import job is meant to update an existing + // segment. + SegmentId *string `type:"string"` + + // A custom name for the segment created by the import job. Use if DefineSegment + // is true. + SegmentName *string `type:"string"` +} + +// String returns the string representation +func (s ImportJobResource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportJobResource) GoString() string { + return s.String() +} + +// SetDefineSegment sets the DefineSegment field's value. +func (s *ImportJobResource) SetDefineSegment(v bool) *ImportJobResource { + s.DefineSegment = &v + return s +} + +// SetExternalId sets the ExternalId field's value. +func (s *ImportJobResource) SetExternalId(v string) *ImportJobResource { + s.ExternalId = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *ImportJobResource) SetFormat(v string) *ImportJobResource { + s.Format = &v + return s +} + +// SetRegisterEndpoints sets the RegisterEndpoints field's value. +func (s *ImportJobResource) SetRegisterEndpoints(v bool) *ImportJobResource { + s.RegisterEndpoints = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *ImportJobResource) SetRoleArn(v string) *ImportJobResource { + s.RoleArn = &v + return s +} + +// SetS3Url sets the S3Url field's value. +func (s *ImportJobResource) SetS3Url(v string) *ImportJobResource { + s.S3Url = &v + return s +} + +// SetSegmentId sets the SegmentId field's value. +func (s *ImportJobResource) SetSegmentId(v string) *ImportJobResource { + s.SegmentId = &v + return s +} + +// SetSegmentName sets the SegmentName field's value. +func (s *ImportJobResource) SetSegmentName(v string) *ImportJobResource { + s.SegmentName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//ImportJobResponse +type ImportJobResponse struct { + _ struct{} `type:"structure"` + + // The unique ID of the application to which the import job applies. + ApplicationId *string `type:"string"` + + // The number of pieces that have successfully imported as of the time of the + // request. + CompletedPieces *int64 `type:"integer"` + + // The date the import job completed in ISO 8601 format. + CompletionDate *string `type:"string"` + + // The date the import job was created in ISO 8601 format. + CreationDate *string `type:"string"` + + // The import job settings. + Definition *ImportJobResource `type:"structure"` + + // The number of pieces that have failed to import as of the time of the request. + FailedPieces *int64 `type:"integer"` + + Failures []*string `type:"list"` + + // The unique ID of the import job. + Id *string `type:"string"` + + JobStatus *string `type:"string" enum:"JobStatus"` + + // The number of endpoints that failed to import; for example, because of syntax + // errors. + TotalFailures *int64 `type:"integer"` + + // The total number of pieces that must be imported to finish the job. Each + // piece is an approximately equal portion of the endpoints to import. + TotalPieces *int64 `type:"integer"` + + // The number of endpoints that were processed by the import job. + TotalProcessed *int64 `type:"integer"` + + // The job type. Will be Import. + Type *string `type:"string"` +} + +// String returns the string representation +func (s ImportJobResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportJobResponse) GoString() string { + return s.String() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *ImportJobResponse) SetApplicationId(v string) *ImportJobResponse { + s.ApplicationId = &v + return s +} + +// SetCompletedPieces sets the CompletedPieces field's value. +func (s *ImportJobResponse) SetCompletedPieces(v int64) *ImportJobResponse { + s.CompletedPieces = &v + return s +} + +// SetCompletionDate sets the CompletionDate field's value. +func (s *ImportJobResponse) SetCompletionDate(v string) *ImportJobResponse { + s.CompletionDate = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *ImportJobResponse) SetCreationDate(v string) *ImportJobResponse { + s.CreationDate = &v + return s +} + +// SetDefinition sets the Definition field's value. +func (s *ImportJobResponse) SetDefinition(v *ImportJobResource) *ImportJobResponse { + s.Definition = v + return s +} + +// SetFailedPieces sets the FailedPieces field's value. +func (s *ImportJobResponse) SetFailedPieces(v int64) *ImportJobResponse { + s.FailedPieces = &v + return s +} + +// SetFailures sets the Failures field's value. +func (s *ImportJobResponse) SetFailures(v []*string) *ImportJobResponse { + s.Failures = v + return s +} + +// SetId sets the Id field's value. +func (s *ImportJobResponse) SetId(v string) *ImportJobResponse { + s.Id = &v + return s +} + +// SetJobStatus sets the JobStatus field's value. +func (s *ImportJobResponse) SetJobStatus(v string) *ImportJobResponse { + s.JobStatus = &v + return s +} + +// SetTotalFailures sets the TotalFailures field's value. +func (s *ImportJobResponse) SetTotalFailures(v int64) *ImportJobResponse { + s.TotalFailures = &v + return s +} + +// SetTotalPieces sets the TotalPieces field's value. +func (s *ImportJobResponse) SetTotalPieces(v int64) *ImportJobResponse { + s.TotalPieces = &v + return s +} + +// SetTotalProcessed sets the TotalProcessed field's value. +func (s *ImportJobResponse) SetTotalProcessed(v int64) *ImportJobResponse { + s.TotalProcessed = &v + return s +} + +// SetType sets the Type field's value. +func (s *ImportJobResponse) SetType(v string) *ImportJobResponse { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//ImportJobsResponse +type ImportJobsResponse struct { + _ struct{} `type:"structure"` + + // A list of import jobs for the application. + Item []*ImportJobResponse `type:"list"` + + // The string that you use in a subsequent request to get the next page of results + // in a paginated response. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ImportJobsResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportJobsResponse) GoString() string { + return s.String() +} + +// SetItem sets the Item field's value. +func (s *ImportJobsResponse) SetItem(v []*ImportJobResponse) *ImportJobsResponse { + s.Item = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ImportJobsResponse) SetNextToken(v string) *ImportJobsResponse { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//Message +type Message struct { + _ struct{} `type:"structure"` + + Action *string `type:"string" enum:"Action"` + + // The message body. Can include up to 140 characters. + Body *string `type:"string"` + + // The URL that points to the icon image for the push notification icon, for + // example, the app icon. + ImageIconUrl *string `type:"string"` + + // The URL that points to an image used in the push notification. + ImageUrl *string `type:"string"` + + // The JSON payload used for a silent push. + JsonBody *string `type:"string"` + + // The URL that points to the media resource, for example a .mp4 or .gif file. + MediaUrl *string `type:"string"` + + // Indicates if the message should display on the users device.Silent pushes + // can be used for Remote Configuration and Phone Home use cases. + SilentPush *bool `type:"boolean"` + + // The message title that displays above the message on the user's device. + Title *string `type:"string"` + + // The URL to open in the user's mobile browser. Used if the value for Action + // is URL. + Url *string `type:"string"` +} + +// String returns the string representation +func (s Message) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Message) GoString() string { + return s.String() +} + +// SetAction sets the Action field's value. +func (s *Message) SetAction(v string) *Message { + s.Action = &v + return s +} + +// SetBody sets the Body field's value. +func (s *Message) SetBody(v string) *Message { + s.Body = &v + return s +} + +// SetImageIconUrl sets the ImageIconUrl field's value. +func (s *Message) SetImageIconUrl(v string) *Message { + s.ImageIconUrl = &v + return s +} + +// SetImageUrl sets the ImageUrl field's value. +func (s *Message) SetImageUrl(v string) *Message { + s.ImageUrl = &v + return s +} + +// SetJsonBody sets the JsonBody field's value. +func (s *Message) SetJsonBody(v string) *Message { + s.JsonBody = &v + return s +} + +// SetMediaUrl sets the MediaUrl field's value. +func (s *Message) SetMediaUrl(v string) *Message { + s.MediaUrl = &v + return s +} + +// SetSilentPush sets the SilentPush field's value. +func (s *Message) SetSilentPush(v bool) *Message { + s.SilentPush = &v + return s +} + +// SetTitle sets the Title field's value. +func (s *Message) SetTitle(v string) *Message { + s.Title = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *Message) SetUrl(v string) *Message { + s.Url = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//MessageBody +type MessageBody struct { + _ struct{} `type:"structure"` + + Message *string `type:"string"` + + RequestID *string `type:"string"` +} + +// String returns the string representation +func (s MessageBody) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MessageBody) GoString() string { + return s.String() +} + +// SetMessage sets the Message field's value. +func (s *MessageBody) SetMessage(v string) *MessageBody { + s.Message = &v + return s +} + +// SetRequestID sets the RequestID field's value. +func (s *MessageBody) SetRequestID(v string) *MessageBody { + s.RequestID = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//MessageConfiguration +type MessageConfiguration struct { + _ struct{} `type:"structure"` + + // The message that the campaign delivers to APNS channels. Overrides the default + // message. + APNSMessage *Message `type:"structure"` + + // The default message for all channels. + DefaultMessage *Message `type:"structure"` + + // The message that the campaign delivers to GCM channels. Overrides the default + // message. + GCMMessage *Message `type:"structure"` +} + +// String returns the string representation +func (s MessageConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MessageConfiguration) GoString() string { + return s.String() +} + +// SetAPNSMessage sets the APNSMessage field's value. +func (s *MessageConfiguration) SetAPNSMessage(v *Message) *MessageConfiguration { + s.APNSMessage = v + return s +} + +// SetDefaultMessage sets the DefaultMessage field's value. +func (s *MessageConfiguration) SetDefaultMessage(v *Message) *MessageConfiguration { + s.DefaultMessage = v + return s +} + +// SetGCMMessage sets the GCMMessage field's value. +func (s *MessageConfiguration) SetGCMMessage(v *Message) *MessageConfiguration { + s.GCMMessage = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//QuietTime +type QuietTime struct { + _ struct{} `type:"structure"` + + // The default end time for quiet time in ISO 8601 format. + End *string `type:"string"` + + // The default start time for quiet time in ISO 8601 format. + Start *string `type:"string"` +} + +// String returns the string representation +func (s QuietTime) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s QuietTime) GoString() string { + return s.String() +} + +// SetEnd sets the End field's value. +func (s *QuietTime) SetEnd(v string) *QuietTime { + s.End = &v + return s +} + +// SetStart sets the Start field's value. +func (s *QuietTime) SetStart(v string) *QuietTime { + s.Start = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//RecencyDimension +type RecencyDimension struct { + _ struct{} `type:"structure"` + + Duration *string `type:"string" enum:"Duration"` + + RecencyType *string `type:"string" enum:"RecencyType"` +} + +// String returns the string representation +func (s RecencyDimension) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RecencyDimension) GoString() string { + return s.String() +} + +// SetDuration sets the Duration field's value. +func (s *RecencyDimension) SetDuration(v string) *RecencyDimension { + s.Duration = &v + return s +} + +// SetRecencyType sets the RecencyType field's value. +func (s *RecencyDimension) SetRecencyType(v string) *RecencyDimension { + s.RecencyType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//Schedule +type Schedule struct { + _ struct{} `type:"structure"` + + // The scheduled time that the campaign ends in ISO 8601 format. + EndTime *string `type:"string"` + + Frequency *string `type:"string" enum:"Frequency"` + + // Indicates whether the campaign schedule takes effect according to each user's + // local time. + IsLocalTime *bool `type:"boolean"` + + // The time during which the campaign sends no messages. + QuietTime *QuietTime `type:"structure"` + + // The scheduled time that the campaign begins in ISO 8601 format. + StartTime *string `type:"string"` + + // The starting UTC offset for the schedule if the value for isLocalTime is + // trueValid values: UTCUTC+01UTC+02UTC+03UTC+03:30UTC+04UTC+04:30UTC+05UTC+05:30UTC+05:45UTC+06UTC+06:30UTC+07UTC+08UTC+09UTC+09:30UTC+10UTC+10:30UTC+11UTC+12UTC+13UTC-02UTC-03UTC-04UTC-05UTC-06UTC-07UTC-08UTC-09UTC-10UTC-11 + Timezone *string `type:"string"` +} + +// String returns the string representation +func (s Schedule) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Schedule) GoString() string { + return s.String() +} + +// SetEndTime sets the EndTime field's value. +func (s *Schedule) SetEndTime(v string) *Schedule { + s.EndTime = &v + return s +} + +// SetFrequency sets the Frequency field's value. +func (s *Schedule) SetFrequency(v string) *Schedule { + s.Frequency = &v + return s +} + +// SetIsLocalTime sets the IsLocalTime field's value. +func (s *Schedule) SetIsLocalTime(v bool) *Schedule { + s.IsLocalTime = &v + return s +} + +// SetQuietTime sets the QuietTime field's value. +func (s *Schedule) SetQuietTime(v *QuietTime) *Schedule { + s.QuietTime = v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *Schedule) SetStartTime(v string) *Schedule { + s.StartTime = &v + return s +} + +// SetTimezone sets the Timezone field's value. +func (s *Schedule) SetTimezone(v string) *Schedule { + s.Timezone = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//SegmentBehaviors +type SegmentBehaviors struct { + _ struct{} `type:"structure"` + + // The recency of use. + Recency *RecencyDimension `type:"structure"` +} + +// String returns the string representation +func (s SegmentBehaviors) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SegmentBehaviors) GoString() string { + return s.String() +} + +// SetRecency sets the Recency field's value. +func (s *SegmentBehaviors) SetRecency(v *RecencyDimension) *SegmentBehaviors { + s.Recency = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//SegmentDemographics +type SegmentDemographics struct { + _ struct{} `type:"structure"` + + // The app version criteria for the segment. + AppVersion *SetDimension `type:"structure"` + + // The device type criteria for the segment. + DeviceType *SetDimension `type:"structure"` + + // The device make criteria for the segment. + Make *SetDimension `type:"structure"` + + // The device model criteria for the segment. + Model *SetDimension `type:"structure"` + + // The device platform criteria for the segment. + Platform *SetDimension `type:"structure"` +} + +// String returns the string representation +func (s SegmentDemographics) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SegmentDemographics) GoString() string { + return s.String() +} + +// SetAppVersion sets the AppVersion field's value. +func (s *SegmentDemographics) SetAppVersion(v *SetDimension) *SegmentDemographics { + s.AppVersion = v + return s +} + +// SetDeviceType sets the DeviceType field's value. +func (s *SegmentDemographics) SetDeviceType(v *SetDimension) *SegmentDemographics { + s.DeviceType = v + return s +} + +// SetMake sets the Make field's value. +func (s *SegmentDemographics) SetMake(v *SetDimension) *SegmentDemographics { + s.Make = v + return s +} + +// SetModel sets the Model field's value. +func (s *SegmentDemographics) SetModel(v *SetDimension) *SegmentDemographics { + s.Model = v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *SegmentDemographics) SetPlatform(v *SetDimension) *SegmentDemographics { + s.Platform = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//SegmentDimensions +type SegmentDimensions struct { + _ struct{} `type:"structure"` + + // Custom segment attributes. + Attributes map[string]*AttributeDimension `type:"map"` + + // The segment behaviors attributes. + Behavior *SegmentBehaviors `type:"structure"` + + // The segment demographics attributes. + Demographic *SegmentDemographics `type:"structure"` + + // The segment location attributes. + Location *SegmentLocation `type:"structure"` +} + +// String returns the string representation +func (s SegmentDimensions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SegmentDimensions) GoString() string { + return s.String() +} + +// SetAttributes sets the Attributes field's value. +func (s *SegmentDimensions) SetAttributes(v map[string]*AttributeDimension) *SegmentDimensions { + s.Attributes = v + return s +} + +// SetBehavior sets the Behavior field's value. +func (s *SegmentDimensions) SetBehavior(v *SegmentBehaviors) *SegmentDimensions { + s.Behavior = v + return s +} + +// SetDemographic sets the Demographic field's value. +func (s *SegmentDimensions) SetDemographic(v *SegmentDemographics) *SegmentDimensions { + s.Demographic = v + return s +} + +// SetLocation sets the Location field's value. +func (s *SegmentDimensions) SetLocation(v *SegmentLocation) *SegmentDimensions { + s.Location = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//SegmentImportResource +type SegmentImportResource struct { + _ struct{} `type:"structure"` + + // A unique, custom ID assigned to the IAM role that restricts who can assume + // the role. + ExternalId *string `type:"string"` + + Format *string `type:"string" enum:"Format"` + + // The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint + // access to the endpoints in Amazon S3. + RoleArn *string `type:"string"` + + // A URL that points to the Amazon S3 location from which the endpoints for + // this segment were imported. + S3Url *string `type:"string"` + + // The number of endpoints that were successfully imported to create this segment. + Size *int64 `type:"integer"` +} + +// String returns the string representation +func (s SegmentImportResource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SegmentImportResource) GoString() string { + return s.String() +} + +// SetExternalId sets the ExternalId field's value. +func (s *SegmentImportResource) SetExternalId(v string) *SegmentImportResource { + s.ExternalId = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *SegmentImportResource) SetFormat(v string) *SegmentImportResource { + s.Format = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *SegmentImportResource) SetRoleArn(v string) *SegmentImportResource { + s.RoleArn = &v + return s +} + +// SetS3Url sets the S3Url field's value. +func (s *SegmentImportResource) SetS3Url(v string) *SegmentImportResource { + s.S3Url = &v + return s +} + +// SetSize sets the Size field's value. +func (s *SegmentImportResource) SetSize(v int64) *SegmentImportResource { + s.Size = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//SegmentLocation +type SegmentLocation struct { + _ struct{} `type:"structure"` + + // The country filter according to ISO 3166-1 Alpha-2 codes. + Country *SetDimension `type:"structure"` +} + +// String returns the string representation +func (s SegmentLocation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SegmentLocation) GoString() string { + return s.String() +} + +// SetCountry sets the Country field's value. +func (s *SegmentLocation) SetCountry(v *SetDimension) *SegmentLocation { + s.Country = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//SegmentResponse +type SegmentResponse struct { + _ struct{} `type:"structure"` + + // The ID of the application to which the segment applies. + ApplicationId *string `type:"string"` + + // The date the segment was created in ISO 8601 format. + CreationDate *string `type:"string"` + + // The segment dimensions attributes. + Dimensions *SegmentDimensions `type:"structure"` + + // The unique segment ID. + Id *string `type:"string"` + + // The import job settings. + ImportDefinition *SegmentImportResource `type:"structure"` + + // The date the segment was last updated in ISO 8601 format. + LastModifiedDate *string `type:"string"` + + // The name of segment + Name *string `type:"string"` + + SegmentType *string `type:"string" enum:"SegmentType"` + + // The segment version number. + Version *int64 `type:"integer"` +} + +// String returns the string representation +func (s SegmentResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SegmentResponse) GoString() string { + return s.String() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *SegmentResponse) SetApplicationId(v string) *SegmentResponse { + s.ApplicationId = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *SegmentResponse) SetCreationDate(v string) *SegmentResponse { + s.CreationDate = &v + return s +} + +// SetDimensions sets the Dimensions field's value. +func (s *SegmentResponse) SetDimensions(v *SegmentDimensions) *SegmentResponse { + s.Dimensions = v + return s +} + +// SetId sets the Id field's value. +func (s *SegmentResponse) SetId(v string) *SegmentResponse { + s.Id = &v + return s +} + +// SetImportDefinition sets the ImportDefinition field's value. +func (s *SegmentResponse) SetImportDefinition(v *SegmentImportResource) *SegmentResponse { + s.ImportDefinition = v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *SegmentResponse) SetLastModifiedDate(v string) *SegmentResponse { + s.LastModifiedDate = &v + return s +} + +// SetName sets the Name field's value. +func (s *SegmentResponse) SetName(v string) *SegmentResponse { + s.Name = &v + return s +} + +// SetSegmentType sets the SegmentType field's value. +func (s *SegmentResponse) SetSegmentType(v string) *SegmentResponse { + s.SegmentType = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *SegmentResponse) SetVersion(v int64) *SegmentResponse { + s.Version = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//SegmentsResponse +type SegmentsResponse struct { + _ struct{} `type:"structure"` + + // The list of segments. + Item []*SegmentResponse `type:"list"` + + // An identifier used to retrieve the next page of results. The token is null + // if no additional pages exist. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s SegmentsResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SegmentsResponse) GoString() string { + return s.String() +} + +// SetItem sets the Item field's value. +func (s *SegmentsResponse) SetItem(v []*SegmentResponse) *SegmentsResponse { + s.Item = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *SegmentsResponse) SetNextToken(v string) *SegmentsResponse { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//SetDimension +type SetDimension struct { + _ struct{} `type:"structure"` + + DimensionType *string `type:"string" enum:"DimensionType"` + + Values []*string `type:"list"` +} + +// String returns the string representation +func (s SetDimension) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SetDimension) GoString() string { + return s.String() +} + +// SetDimensionType sets the DimensionType field's value. +func (s *SetDimension) SetDimensionType(v string) *SetDimension { + s.DimensionType = &v + return s +} + +// SetValues sets the Values field's value. +func (s *SetDimension) SetValues(v []*string) *SetDimension { + s.Values = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//TreatmentResource +type TreatmentResource struct { + _ struct{} `type:"structure"` + + // The unique treatment ID. + Id *string `type:"string"` + + // The message configuration settings. + MessageConfiguration *MessageConfiguration `type:"structure"` + + // The campaign schedule. + Schedule *Schedule `type:"structure"` + + // The allocated percentage of users for this treatment. + SizePercent *int64 `type:"integer"` + + // The treatment status. + State *CampaignState `type:"structure"` + + // A custom description for the treatment. + TreatmentDescription *string `type:"string"` + + // The custom name of a variation of the campaign used for A/B testing. + TreatmentName *string `type:"string"` +} + +// String returns the string representation +func (s TreatmentResource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TreatmentResource) GoString() string { + return s.String() +} + +// SetId sets the Id field's value. +func (s *TreatmentResource) SetId(v string) *TreatmentResource { + s.Id = &v + return s +} + +// SetMessageConfiguration sets the MessageConfiguration field's value. +func (s *TreatmentResource) SetMessageConfiguration(v *MessageConfiguration) *TreatmentResource { + s.MessageConfiguration = v + return s +} + +// SetSchedule sets the Schedule field's value. +func (s *TreatmentResource) SetSchedule(v *Schedule) *TreatmentResource { + s.Schedule = v + return s +} + +// SetSizePercent sets the SizePercent field's value. +func (s *TreatmentResource) SetSizePercent(v int64) *TreatmentResource { + s.SizePercent = &v + return s +} + +// SetState sets the State field's value. +func (s *TreatmentResource) SetState(v *CampaignState) *TreatmentResource { + s.State = v + return s +} + +// SetTreatmentDescription sets the TreatmentDescription field's value. +func (s *TreatmentResource) SetTreatmentDescription(v string) *TreatmentResource { + s.TreatmentDescription = &v + return s +} + +// SetTreatmentName sets the TreatmentName field's value. +func (s *TreatmentResource) SetTreatmentName(v string) *TreatmentResource { + s.TreatmentName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateApnsChannelRequest +type UpdateApnsChannelInput struct { + _ struct{} `type:"structure" payload:"APNSChannelRequest"` + + // APNSChannelRequest is a required field + APNSChannelRequest *APNSChannelRequest `type:"structure" required:"true"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateApnsChannelInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateApnsChannelInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateApnsChannelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateApnsChannelInput"} + if s.APNSChannelRequest == nil { + invalidParams.Add(request.NewErrParamRequired("APNSChannelRequest")) + } + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAPNSChannelRequest sets the APNSChannelRequest field's value. +func (s *UpdateApnsChannelInput) SetAPNSChannelRequest(v *APNSChannelRequest) *UpdateApnsChannelInput { + s.APNSChannelRequest = v + return s +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *UpdateApnsChannelInput) SetApplicationId(v string) *UpdateApnsChannelInput { + s.ApplicationId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateApnsChannelResponse +type UpdateApnsChannelOutput struct { + _ struct{} `type:"structure" payload:"APNSChannelResponse"` + + // APNSChannelResponse is a required field + APNSChannelResponse *APNSChannelResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateApnsChannelOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateApnsChannelOutput) GoString() string { + return s.String() +} + +// SetAPNSChannelResponse sets the APNSChannelResponse field's value. +func (s *UpdateApnsChannelOutput) SetAPNSChannelResponse(v *APNSChannelResponse) *UpdateApnsChannelOutput { + s.APNSChannelResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateApplicationSettingsRequest +type UpdateApplicationSettingsInput struct { + _ struct{} `type:"structure" payload:"WriteApplicationSettingsRequest"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // WriteApplicationSettingsRequest is a required field + WriteApplicationSettingsRequest *WriteApplicationSettingsRequest `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateApplicationSettingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateApplicationSettingsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateApplicationSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationSettingsInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.WriteApplicationSettingsRequest == nil { + invalidParams.Add(request.NewErrParamRequired("WriteApplicationSettingsRequest")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *UpdateApplicationSettingsInput) SetApplicationId(v string) *UpdateApplicationSettingsInput { + s.ApplicationId = &v + return s +} + +// SetWriteApplicationSettingsRequest sets the WriteApplicationSettingsRequest field's value. +func (s *UpdateApplicationSettingsInput) SetWriteApplicationSettingsRequest(v *WriteApplicationSettingsRequest) *UpdateApplicationSettingsInput { + s.WriteApplicationSettingsRequest = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateApplicationSettingsResponse +type UpdateApplicationSettingsOutput struct { + _ struct{} `type:"structure" payload:"ApplicationSettingsResource"` + + // ApplicationSettingsResource is a required field + ApplicationSettingsResource *ApplicationSettingsResource `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateApplicationSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateApplicationSettingsOutput) GoString() string { + return s.String() +} + +// SetApplicationSettingsResource sets the ApplicationSettingsResource field's value. +func (s *UpdateApplicationSettingsOutput) SetApplicationSettingsResource(v *ApplicationSettingsResource) *UpdateApplicationSettingsOutput { + s.ApplicationSettingsResource = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateCampaignRequest +type UpdateCampaignInput struct { + _ struct{} `type:"structure" payload:"WriteCampaignRequest"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // CampaignId is a required field + CampaignId *string `location:"uri" locationName:"campaign-id" type:"string" required:"true"` + + // WriteCampaignRequest is a required field + WriteCampaignRequest *WriteCampaignRequest `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateCampaignInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateCampaignInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateCampaignInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateCampaignInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.CampaignId == nil { + invalidParams.Add(request.NewErrParamRequired("CampaignId")) + } + if s.WriteCampaignRequest == nil { + invalidParams.Add(request.NewErrParamRequired("WriteCampaignRequest")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *UpdateCampaignInput) SetApplicationId(v string) *UpdateCampaignInput { + s.ApplicationId = &v + return s +} + +// SetCampaignId sets the CampaignId field's value. +func (s *UpdateCampaignInput) SetCampaignId(v string) *UpdateCampaignInput { + s.CampaignId = &v + return s +} + +// SetWriteCampaignRequest sets the WriteCampaignRequest field's value. +func (s *UpdateCampaignInput) SetWriteCampaignRequest(v *WriteCampaignRequest) *UpdateCampaignInput { + s.WriteCampaignRequest = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateCampaignResponse +type UpdateCampaignOutput struct { + _ struct{} `type:"structure" payload:"CampaignResponse"` + + // CampaignResponse is a required field + CampaignResponse *CampaignResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateCampaignOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateCampaignOutput) GoString() string { + return s.String() +} + +// SetCampaignResponse sets the CampaignResponse field's value. +func (s *UpdateCampaignOutput) SetCampaignResponse(v *CampaignResponse) *UpdateCampaignOutput { + s.CampaignResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateEndpointRequest +type UpdateEndpointInput struct { + _ struct{} `type:"structure" payload:"EndpointRequest"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // EndpointId is a required field + EndpointId *string `location:"uri" locationName:"endpoint-id" type:"string" required:"true"` + + // EndpointRequest is a required field + EndpointRequest *EndpointRequest `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateEndpointInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateEndpointInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateEndpointInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateEndpointInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.EndpointId == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointId")) + } + if s.EndpointRequest == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointRequest")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *UpdateEndpointInput) SetApplicationId(v string) *UpdateEndpointInput { + s.ApplicationId = &v + return s +} + +// SetEndpointId sets the EndpointId field's value. +func (s *UpdateEndpointInput) SetEndpointId(v string) *UpdateEndpointInput { + s.EndpointId = &v + return s +} + +// SetEndpointRequest sets the EndpointRequest field's value. +func (s *UpdateEndpointInput) SetEndpointRequest(v *EndpointRequest) *UpdateEndpointInput { + s.EndpointRequest = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateEndpointResponse +type UpdateEndpointOutput struct { + _ struct{} `type:"structure" payload:"MessageBody"` + + // MessageBody is a required field + MessageBody *MessageBody `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateEndpointOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateEndpointOutput) GoString() string { + return s.String() +} + +// SetMessageBody sets the MessageBody field's value. +func (s *UpdateEndpointOutput) SetMessageBody(v *MessageBody) *UpdateEndpointOutput { + s.MessageBody = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateEndpointsBatchRequest +type UpdateEndpointsBatchInput struct { + _ struct{} `type:"structure" payload:"EndpointBatchRequest"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // EndpointBatchRequest is a required field + EndpointBatchRequest *EndpointBatchRequest `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateEndpointsBatchInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateEndpointsBatchInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateEndpointsBatchInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateEndpointsBatchInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.EndpointBatchRequest == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointBatchRequest")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *UpdateEndpointsBatchInput) SetApplicationId(v string) *UpdateEndpointsBatchInput { + s.ApplicationId = &v + return s +} + +// SetEndpointBatchRequest sets the EndpointBatchRequest field's value. +func (s *UpdateEndpointsBatchInput) SetEndpointBatchRequest(v *EndpointBatchRequest) *UpdateEndpointsBatchInput { + s.EndpointBatchRequest = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateEndpointsBatchResponse +type UpdateEndpointsBatchOutput struct { + _ struct{} `type:"structure" payload:"MessageBody"` + + // MessageBody is a required field + MessageBody *MessageBody `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateEndpointsBatchOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateEndpointsBatchOutput) GoString() string { + return s.String() +} + +// SetMessageBody sets the MessageBody field's value. +func (s *UpdateEndpointsBatchOutput) SetMessageBody(v *MessageBody) *UpdateEndpointsBatchOutput { + s.MessageBody = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateGcmChannelRequest +type UpdateGcmChannelInput struct { + _ struct{} `type:"structure" payload:"GCMChannelRequest"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // GCMChannelRequest is a required field + GCMChannelRequest *GCMChannelRequest `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateGcmChannelInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateGcmChannelInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateGcmChannelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateGcmChannelInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.GCMChannelRequest == nil { + invalidParams.Add(request.NewErrParamRequired("GCMChannelRequest")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *UpdateGcmChannelInput) SetApplicationId(v string) *UpdateGcmChannelInput { + s.ApplicationId = &v + return s +} + +// SetGCMChannelRequest sets the GCMChannelRequest field's value. +func (s *UpdateGcmChannelInput) SetGCMChannelRequest(v *GCMChannelRequest) *UpdateGcmChannelInput { + s.GCMChannelRequest = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateGcmChannelResponse +type UpdateGcmChannelOutput struct { + _ struct{} `type:"structure" payload:"GCMChannelResponse"` + + // GCMChannelResponse is a required field + GCMChannelResponse *GCMChannelResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateGcmChannelOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateGcmChannelOutput) GoString() string { + return s.String() +} + +// SetGCMChannelResponse sets the GCMChannelResponse field's value. +func (s *UpdateGcmChannelOutput) SetGCMChannelResponse(v *GCMChannelResponse) *UpdateGcmChannelOutput { + s.GCMChannelResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateSegmentRequest +type UpdateSegmentInput struct { + _ struct{} `type:"structure" payload:"WriteSegmentRequest"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // SegmentId is a required field + SegmentId *string `location:"uri" locationName:"segment-id" type:"string" required:"true"` + + // WriteSegmentRequest is a required field + WriteSegmentRequest *WriteSegmentRequest `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateSegmentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateSegmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateSegmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateSegmentInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.SegmentId == nil { + invalidParams.Add(request.NewErrParamRequired("SegmentId")) + } + if s.WriteSegmentRequest == nil { + invalidParams.Add(request.NewErrParamRequired("WriteSegmentRequest")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *UpdateSegmentInput) SetApplicationId(v string) *UpdateSegmentInput { + s.ApplicationId = &v + return s +} + +// SetSegmentId sets the SegmentId field's value. +func (s *UpdateSegmentInput) SetSegmentId(v string) *UpdateSegmentInput { + s.SegmentId = &v + return s +} + +// SetWriteSegmentRequest sets the WriteSegmentRequest field's value. +func (s *UpdateSegmentInput) SetWriteSegmentRequest(v *WriteSegmentRequest) *UpdateSegmentInput { + s.WriteSegmentRequest = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateSegmentResponse +type UpdateSegmentOutput struct { + _ struct{} `type:"structure" payload:"SegmentResponse"` + + // SegmentResponse is a required field + SegmentResponse *SegmentResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateSegmentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateSegmentOutput) GoString() string { + return s.String() +} + +// SetSegmentResponse sets the SegmentResponse field's value. +func (s *UpdateSegmentOutput) SetSegmentResponse(v *SegmentResponse) *UpdateSegmentOutput { + s.SegmentResponse = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//WriteApplicationSettingsRequest +type WriteApplicationSettingsRequest struct { + _ struct{} `type:"structure"` + + // The default campaign limits for the app. These limits apply to each campaign + // for the app, unless the campaign overrides the default with limits of its + // own. + Limits *CampaignLimits `type:"structure"` + + // The default quiet time for the app. Each campaign for this app sends no messages + // during this time unless the campaign overrides the default with a quiet time + // of its own. + QuietTime *QuietTime `type:"structure"` +} + +// String returns the string representation +func (s WriteApplicationSettingsRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WriteApplicationSettingsRequest) GoString() string { + return s.String() +} + +// SetLimits sets the Limits field's value. +func (s *WriteApplicationSettingsRequest) SetLimits(v *CampaignLimits) *WriteApplicationSettingsRequest { + s.Limits = v + return s +} + +// SetQuietTime sets the QuietTime field's value. +func (s *WriteApplicationSettingsRequest) SetQuietTime(v *QuietTime) *WriteApplicationSettingsRequest { + s.QuietTime = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//WriteCampaignRequest +type WriteCampaignRequest struct { + _ struct{} `type:"structure"` + + // Treatments that are defined in addition to the default treatment. + AdditionalTreatments []*WriteTreatmentResource `type:"list"` + + // A description of the campaign. + Description *string `type:"string"` + + // The allocated percentage of end users who will not receive messages from + // this campaign. + HoldoutPercent *int64 `type:"integer"` + + // Indicates whether the campaign is paused. A paused campaign does not send + // messages unless you resume it by setting IsPaused to false. + IsPaused *bool `type:"boolean"` + + // The campaign limits settings. + Limits *CampaignLimits `type:"structure"` + + // The message configuration settings. + MessageConfiguration *MessageConfiguration `type:"structure"` + + // The custom name of the campaign. + Name *string `type:"string"` + + // The campaign schedule. + Schedule *Schedule `type:"structure"` + + // The ID of the segment to which the campaign sends messages. + SegmentId *string `type:"string"` + + // The version of the segment to which the campaign sends messages. + SegmentVersion *int64 `type:"integer"` + + // A custom description for the treatment. + TreatmentDescription *string `type:"string"` + + // The custom name of a variation of the campaign used for A/B testing. + TreatmentName *string `type:"string"` +} + +// String returns the string representation +func (s WriteCampaignRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WriteCampaignRequest) GoString() string { + return s.String() +} + +// SetAdditionalTreatments sets the AdditionalTreatments field's value. +func (s *WriteCampaignRequest) SetAdditionalTreatments(v []*WriteTreatmentResource) *WriteCampaignRequest { + s.AdditionalTreatments = v + return s +} + +// SetDescription sets the Description field's value. +func (s *WriteCampaignRequest) SetDescription(v string) *WriteCampaignRequest { + s.Description = &v + return s +} + +// SetHoldoutPercent sets the HoldoutPercent field's value. +func (s *WriteCampaignRequest) SetHoldoutPercent(v int64) *WriteCampaignRequest { + s.HoldoutPercent = &v + return s +} + +// SetIsPaused sets the IsPaused field's value. +func (s *WriteCampaignRequest) SetIsPaused(v bool) *WriteCampaignRequest { + s.IsPaused = &v + return s +} + +// SetLimits sets the Limits field's value. +func (s *WriteCampaignRequest) SetLimits(v *CampaignLimits) *WriteCampaignRequest { + s.Limits = v + return s +} + +// SetMessageConfiguration sets the MessageConfiguration field's value. +func (s *WriteCampaignRequest) SetMessageConfiguration(v *MessageConfiguration) *WriteCampaignRequest { + s.MessageConfiguration = v + return s +} + +// SetName sets the Name field's value. +func (s *WriteCampaignRequest) SetName(v string) *WriteCampaignRequest { + s.Name = &v + return s +} + +// SetSchedule sets the Schedule field's value. +func (s *WriteCampaignRequest) SetSchedule(v *Schedule) *WriteCampaignRequest { + s.Schedule = v + return s +} + +// SetSegmentId sets the SegmentId field's value. +func (s *WriteCampaignRequest) SetSegmentId(v string) *WriteCampaignRequest { + s.SegmentId = &v + return s +} + +// SetSegmentVersion sets the SegmentVersion field's value. +func (s *WriteCampaignRequest) SetSegmentVersion(v int64) *WriteCampaignRequest { + s.SegmentVersion = &v + return s +} + +// SetTreatmentDescription sets the TreatmentDescription field's value. +func (s *WriteCampaignRequest) SetTreatmentDescription(v string) *WriteCampaignRequest { + s.TreatmentDescription = &v + return s +} + +// SetTreatmentName sets the TreatmentName field's value. +func (s *WriteCampaignRequest) SetTreatmentName(v string) *WriteCampaignRequest { + s.TreatmentName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//WriteSegmentRequest +type WriteSegmentRequest struct { + _ struct{} `type:"structure"` + + // The segment dimensions attributes. + Dimensions *SegmentDimensions `type:"structure"` + + // The name of segment + Name *string `type:"string"` +} + +// String returns the string representation +func (s WriteSegmentRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WriteSegmentRequest) GoString() string { + return s.String() +} + +// SetDimensions sets the Dimensions field's value. +func (s *WriteSegmentRequest) SetDimensions(v *SegmentDimensions) *WriteSegmentRequest { + s.Dimensions = v + return s +} + +// SetName sets the Name field's value. +func (s *WriteSegmentRequest) SetName(v string) *WriteSegmentRequest { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//WriteTreatmentResource +type WriteTreatmentResource struct { + _ struct{} `type:"structure"` + + // The message configuration settings. + MessageConfiguration *MessageConfiguration `type:"structure"` + + // The campaign schedule. + Schedule *Schedule `type:"structure"` + + // The allocated percentage of users for this treatment. + SizePercent *int64 `type:"integer"` + + // A custom description for the treatment. + TreatmentDescription *string `type:"string"` + + // The custom name of a variation of the campaign used for A/B testing. + TreatmentName *string `type:"string"` +} + +// String returns the string representation +func (s WriteTreatmentResource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WriteTreatmentResource) GoString() string { + return s.String() +} + +// SetMessageConfiguration sets the MessageConfiguration field's value. +func (s *WriteTreatmentResource) SetMessageConfiguration(v *MessageConfiguration) *WriteTreatmentResource { + s.MessageConfiguration = v + return s +} + +// SetSchedule sets the Schedule field's value. +func (s *WriteTreatmentResource) SetSchedule(v *Schedule) *WriteTreatmentResource { + s.Schedule = v + return s +} + +// SetSizePercent sets the SizePercent field's value. +func (s *WriteTreatmentResource) SetSizePercent(v int64) *WriteTreatmentResource { + s.SizePercent = &v + return s +} + +// SetTreatmentDescription sets the TreatmentDescription field's value. +func (s *WriteTreatmentResource) SetTreatmentDescription(v string) *WriteTreatmentResource { + s.TreatmentDescription = &v + return s +} + +// SetTreatmentName sets the TreatmentName field's value. +func (s *WriteTreatmentResource) SetTreatmentName(v string) *WriteTreatmentResource { + s.TreatmentName = &v + return s +} + +const ( + // ActionOpenApp is a Action enum value + ActionOpenApp = "OPEN_APP" + + // ActionDeepLink is a Action enum value + ActionDeepLink = "DEEP_LINK" + + // ActionUrl is a Action enum value + ActionUrl = "URL" +) + +const ( + // AttributeTypeInclusive is a AttributeType enum value + AttributeTypeInclusive = "INCLUSIVE" + + // AttributeTypeExclusive is a AttributeType enum value + AttributeTypeExclusive = "EXCLUSIVE" +) + +const ( + // CampaignStatusScheduled is a CampaignStatus enum value + CampaignStatusScheduled = "SCHEDULED" + + // CampaignStatusExecuting is a CampaignStatus enum value + CampaignStatusExecuting = "EXECUTING" + + // CampaignStatusPendingNextRun is a CampaignStatus enum value + CampaignStatusPendingNextRun = "PENDING_NEXT_RUN" + + // CampaignStatusCompleted is a CampaignStatus enum value + CampaignStatusCompleted = "COMPLETED" + + // CampaignStatusPaused is a CampaignStatus enum value + CampaignStatusPaused = "PAUSED" +) + +const ( + // ChannelTypeApns is a ChannelType enum value + ChannelTypeApns = "APNS" + + // ChannelTypeGcm is a ChannelType enum value + ChannelTypeGcm = "GCM" +) + +const ( + // DimensionTypeInclusive is a DimensionType enum value + DimensionTypeInclusive = "INCLUSIVE" + + // DimensionTypeExclusive is a DimensionType enum value + DimensionTypeExclusive = "EXCLUSIVE" +) + +const ( + // DurationHr24 is a Duration enum value + DurationHr24 = "HR_24" + + // DurationDay7 is a Duration enum value + DurationDay7 = "DAY_7" + + // DurationDay14 is a Duration enum value + DurationDay14 = "DAY_14" + + // DurationDay30 is a Duration enum value + DurationDay30 = "DAY_30" +) + +const ( + // FormatCsv is a Format enum value + FormatCsv = "CSV" + + // FormatJson is a Format enum value + FormatJson = "JSON" +) + +const ( + // FrequencyOnce is a Frequency enum value + FrequencyOnce = "ONCE" + + // FrequencyHourly is a Frequency enum value + FrequencyHourly = "HOURLY" + + // FrequencyDaily is a Frequency enum value + FrequencyDaily = "DAILY" + + // FrequencyWeekly is a Frequency enum value + FrequencyWeekly = "WEEKLY" + + // FrequencyMonthly is a Frequency enum value + FrequencyMonthly = "MONTHLY" +) + +const ( + // JobStatusCreated is a JobStatus enum value + JobStatusCreated = "CREATED" + + // JobStatusInitializing is a JobStatus enum value + JobStatusInitializing = "INITIALIZING" + + // JobStatusProcessing is a JobStatus enum value + JobStatusProcessing = "PROCESSING" + + // JobStatusCompleting is a JobStatus enum value + JobStatusCompleting = "COMPLETING" + + // JobStatusCompleted is a JobStatus enum value + JobStatusCompleted = "COMPLETED" + + // JobStatusFailing is a JobStatus enum value + JobStatusFailing = "FAILING" + + // JobStatusFailed is a JobStatus enum value + JobStatusFailed = "FAILED" +) + +const ( + // RecencyTypeActive is a RecencyType enum value + RecencyTypeActive = "ACTIVE" + + // RecencyTypeInactive is a RecencyType enum value + RecencyTypeInactive = "INACTIVE" +) + +const ( + // SegmentTypeDimensional is a SegmentType enum value + SegmentTypeDimensional = "DIMENSIONAL" + + // SegmentTypeImport is a SegmentType enum value + SegmentTypeImport = "IMPORT" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/pinpoint/errors.go b/vendor/github.com/aws/aws-sdk-go/service/pinpoint/errors.go new file mode 100644 index 000000000..fb0926b4a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/pinpoint/errors.go @@ -0,0 +1,42 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package pinpoint + +const ( + + // ErrCodeBadRequestException for service response error code + // "BadRequestException". + // + // 400 response + ErrCodeBadRequestException = "BadRequestException" + + // ErrCodeForbiddenException for service response error code + // "ForbiddenException". + // + // 403 response + ErrCodeForbiddenException = "ForbiddenException" + + // ErrCodeInternalServerErrorException for service response error code + // "InternalServerErrorException". + // + // 500 response + ErrCodeInternalServerErrorException = "InternalServerErrorException" + + // ErrCodeMethodNotAllowedException for service response error code + // "MethodNotAllowedException". + // + // 405 response + ErrCodeMethodNotAllowedException = "MethodNotAllowedException" + + // ErrCodeNotFoundException for service response error code + // "NotFoundException". + // + // 404 response + ErrCodeNotFoundException = "NotFoundException" + + // ErrCodeTooManyRequestsException for service response error code + // "TooManyRequestsException". + // + // 429 response + ErrCodeTooManyRequestsException = "TooManyRequestsException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/pinpoint/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/pinpoint/examples_test.go new file mode 100644 index 000000000..207ccd85e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/pinpoint/examples_test.go @@ -0,0 +1,1166 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package pinpoint_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/pinpoint" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExamplePinpoint_CreateCampaign() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.CreateCampaignInput{ + ApplicationId: aws.String("__string"), // Required + WriteCampaignRequest: &pinpoint.WriteCampaignRequest{ // Required + AdditionalTreatments: []*pinpoint.WriteTreatmentResource{ + { // Required + MessageConfiguration: &pinpoint.MessageConfiguration{ + APNSMessage: &pinpoint.Message{ + Action: aws.String("Action"), + Body: aws.String("__string"), + ImageIconUrl: aws.String("__string"), + ImageUrl: aws.String("__string"), + JsonBody: aws.String("__string"), + MediaUrl: aws.String("__string"), + SilentPush: aws.Bool(true), + Title: aws.String("__string"), + Url: aws.String("__string"), + }, + DefaultMessage: &pinpoint.Message{ + Action: aws.String("Action"), + Body: aws.String("__string"), + ImageIconUrl: aws.String("__string"), + ImageUrl: aws.String("__string"), + JsonBody: aws.String("__string"), + MediaUrl: aws.String("__string"), + SilentPush: aws.Bool(true), + Title: aws.String("__string"), + Url: aws.String("__string"), + }, + GCMMessage: &pinpoint.Message{ + Action: aws.String("Action"), + Body: aws.String("__string"), + ImageIconUrl: aws.String("__string"), + ImageUrl: aws.String("__string"), + JsonBody: aws.String("__string"), + MediaUrl: aws.String("__string"), + SilentPush: aws.Bool(true), + Title: aws.String("__string"), + Url: aws.String("__string"), + }, + }, + Schedule: &pinpoint.Schedule{ + EndTime: aws.String("__string"), + Frequency: aws.String("Frequency"), + IsLocalTime: aws.Bool(true), + QuietTime: &pinpoint.QuietTime{ + End: aws.String("__string"), + Start: aws.String("__string"), + }, + StartTime: aws.String("__string"), + Timezone: aws.String("__string"), + }, + SizePercent: aws.Int64(1), + TreatmentDescription: aws.String("__string"), + TreatmentName: aws.String("__string"), + }, + // More values... + }, + Description: aws.String("__string"), + HoldoutPercent: aws.Int64(1), + IsPaused: aws.Bool(true), + Limits: &pinpoint.CampaignLimits{ + Daily: aws.Int64(1), + Total: aws.Int64(1), + }, + MessageConfiguration: &pinpoint.MessageConfiguration{ + APNSMessage: &pinpoint.Message{ + Action: aws.String("Action"), + Body: aws.String("__string"), + ImageIconUrl: aws.String("__string"), + ImageUrl: aws.String("__string"), + JsonBody: aws.String("__string"), + MediaUrl: aws.String("__string"), + SilentPush: aws.Bool(true), + Title: aws.String("__string"), + Url: aws.String("__string"), + }, + DefaultMessage: &pinpoint.Message{ + Action: aws.String("Action"), + Body: aws.String("__string"), + ImageIconUrl: aws.String("__string"), + ImageUrl: aws.String("__string"), + JsonBody: aws.String("__string"), + MediaUrl: aws.String("__string"), + SilentPush: aws.Bool(true), + Title: aws.String("__string"), + Url: aws.String("__string"), + }, + GCMMessage: &pinpoint.Message{ + Action: aws.String("Action"), + Body: aws.String("__string"), + ImageIconUrl: aws.String("__string"), + ImageUrl: aws.String("__string"), + JsonBody: aws.String("__string"), + MediaUrl: aws.String("__string"), + SilentPush: aws.Bool(true), + Title: aws.String("__string"), + Url: aws.String("__string"), + }, + }, + Name: aws.String("__string"), + Schedule: &pinpoint.Schedule{ + EndTime: aws.String("__string"), + Frequency: aws.String("Frequency"), + IsLocalTime: aws.Bool(true), + QuietTime: &pinpoint.QuietTime{ + End: aws.String("__string"), + Start: aws.String("__string"), + }, + StartTime: aws.String("__string"), + Timezone: aws.String("__string"), + }, + SegmentId: aws.String("__string"), + SegmentVersion: aws.Int64(1), + TreatmentDescription: aws.String("__string"), + TreatmentName: aws.String("__string"), + }, + } + resp, err := svc.CreateCampaign(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_CreateImportJob() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.CreateImportJobInput{ + ApplicationId: aws.String("__string"), // Required + ImportJobRequest: &pinpoint.ImportJobRequest{ // Required + DefineSegment: aws.Bool(true), + ExternalId: aws.String("__string"), + Format: aws.String("Format"), + RegisterEndpoints: aws.Bool(true), + RoleArn: aws.String("__string"), + S3Url: aws.String("__string"), + SegmentId: aws.String("__string"), + SegmentName: aws.String("__string"), + }, + } + resp, err := svc.CreateImportJob(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_CreateSegment() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.CreateSegmentInput{ + ApplicationId: aws.String("__string"), // Required + WriteSegmentRequest: &pinpoint.WriteSegmentRequest{ // Required + Dimensions: &pinpoint.SegmentDimensions{ + Attributes: map[string]*pinpoint.AttributeDimension{ + "Key": { // Required + AttributeType: aws.String("AttributeType"), + Values: []*string{ + aws.String("__string"), // Required + // More values... + }, + }, + // More values... + }, + Behavior: &pinpoint.SegmentBehaviors{ + Recency: &pinpoint.RecencyDimension{ + Duration: aws.String("Duration"), + RecencyType: aws.String("RecencyType"), + }, + }, + Demographic: &pinpoint.SegmentDemographics{ + AppVersion: &pinpoint.SetDimension{ + DimensionType: aws.String("DimensionType"), + Values: []*string{ + aws.String("__string"), // Required + // More values... + }, + }, + DeviceType: &pinpoint.SetDimension{ + DimensionType: aws.String("DimensionType"), + Values: []*string{ + aws.String("__string"), // Required + // More values... + }, + }, + Make: &pinpoint.SetDimension{ + DimensionType: aws.String("DimensionType"), + Values: []*string{ + aws.String("__string"), // Required + // More values... + }, + }, + Model: &pinpoint.SetDimension{ + DimensionType: aws.String("DimensionType"), + Values: []*string{ + aws.String("__string"), // Required + // More values... + }, + }, + Platform: &pinpoint.SetDimension{ + DimensionType: aws.String("DimensionType"), + Values: []*string{ + aws.String("__string"), // Required + // More values... + }, + }, + }, + Location: &pinpoint.SegmentLocation{ + Country: &pinpoint.SetDimension{ + DimensionType: aws.String("DimensionType"), + Values: []*string{ + aws.String("__string"), // Required + // More values... + }, + }, + }, + }, + Name: aws.String("__string"), + }, + } + resp, err := svc.CreateSegment(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_DeleteApnsChannel() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.DeleteApnsChannelInput{ + ApplicationId: aws.String("__string"), // Required + } + resp, err := svc.DeleteApnsChannel(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_DeleteCampaign() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.DeleteCampaignInput{ + ApplicationId: aws.String("__string"), // Required + CampaignId: aws.String("__string"), // Required + } + resp, err := svc.DeleteCampaign(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_DeleteGcmChannel() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.DeleteGcmChannelInput{ + ApplicationId: aws.String("__string"), // Required + } + resp, err := svc.DeleteGcmChannel(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_DeleteSegment() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.DeleteSegmentInput{ + ApplicationId: aws.String("__string"), // Required + SegmentId: aws.String("__string"), // Required + } + resp, err := svc.DeleteSegment(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_GetApnsChannel() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.GetApnsChannelInput{ + ApplicationId: aws.String("__string"), // Required + } + resp, err := svc.GetApnsChannel(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_GetApplicationSettings() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.GetApplicationSettingsInput{ + ApplicationId: aws.String("__string"), // Required + } + resp, err := svc.GetApplicationSettings(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_GetCampaign() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.GetCampaignInput{ + ApplicationId: aws.String("__string"), // Required + CampaignId: aws.String("__string"), // Required + } + resp, err := svc.GetCampaign(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_GetCampaignActivities() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.GetCampaignActivitiesInput{ + ApplicationId: aws.String("__string"), // Required + CampaignId: aws.String("__string"), // Required + PageSize: aws.String("__string"), + Token: aws.String("__string"), + } + resp, err := svc.GetCampaignActivities(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_GetCampaignVersion() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.GetCampaignVersionInput{ + ApplicationId: aws.String("__string"), // Required + CampaignId: aws.String("__string"), // Required + Version: aws.String("__string"), // Required + } + resp, err := svc.GetCampaignVersion(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_GetCampaignVersions() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.GetCampaignVersionsInput{ + ApplicationId: aws.String("__string"), // Required + CampaignId: aws.String("__string"), // Required + PageSize: aws.String("__string"), + Token: aws.String("__string"), + } + resp, err := svc.GetCampaignVersions(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_GetCampaigns() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.GetCampaignsInput{ + ApplicationId: aws.String("__string"), // Required + PageSize: aws.String("__string"), + Token: aws.String("__string"), + } + resp, err := svc.GetCampaigns(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_GetEndpoint() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.GetEndpointInput{ + ApplicationId: aws.String("__string"), // Required + EndpointId: aws.String("__string"), // Required + } + resp, err := svc.GetEndpoint(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_GetGcmChannel() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.GetGcmChannelInput{ + ApplicationId: aws.String("__string"), // Required + } + resp, err := svc.GetGcmChannel(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_GetImportJob() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.GetImportJobInput{ + ApplicationId: aws.String("__string"), // Required + JobId: aws.String("__string"), // Required + } + resp, err := svc.GetImportJob(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_GetImportJobs() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.GetImportJobsInput{ + ApplicationId: aws.String("__string"), // Required + PageSize: aws.String("__string"), + Token: aws.String("__string"), + } + resp, err := svc.GetImportJobs(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_GetSegment() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.GetSegmentInput{ + ApplicationId: aws.String("__string"), // Required + SegmentId: aws.String("__string"), // Required + } + resp, err := svc.GetSegment(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_GetSegmentImportJobs() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.GetSegmentImportJobsInput{ + ApplicationId: aws.String("__string"), // Required + SegmentId: aws.String("__string"), // Required + PageSize: aws.String("__string"), + Token: aws.String("__string"), + } + resp, err := svc.GetSegmentImportJobs(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_GetSegmentVersion() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.GetSegmentVersionInput{ + ApplicationId: aws.String("__string"), // Required + SegmentId: aws.String("__string"), // Required + Version: aws.String("__string"), // Required + } + resp, err := svc.GetSegmentVersion(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_GetSegmentVersions() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.GetSegmentVersionsInput{ + ApplicationId: aws.String("__string"), // Required + SegmentId: aws.String("__string"), // Required + PageSize: aws.String("__string"), + Token: aws.String("__string"), + } + resp, err := svc.GetSegmentVersions(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_GetSegments() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.GetSegmentsInput{ + ApplicationId: aws.String("__string"), // Required + PageSize: aws.String("__string"), + Token: aws.String("__string"), + } + resp, err := svc.GetSegments(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_UpdateApnsChannel() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.UpdateApnsChannelInput{ + APNSChannelRequest: &pinpoint.APNSChannelRequest{ // Required + Certificate: aws.String("__string"), + PrivateKey: aws.String("__string"), + }, + ApplicationId: aws.String("__string"), // Required + } + resp, err := svc.UpdateApnsChannel(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_UpdateApplicationSettings() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.UpdateApplicationSettingsInput{ + ApplicationId: aws.String("__string"), // Required + WriteApplicationSettingsRequest: &pinpoint.WriteApplicationSettingsRequest{ // Required + Limits: &pinpoint.CampaignLimits{ + Daily: aws.Int64(1), + Total: aws.Int64(1), + }, + QuietTime: &pinpoint.QuietTime{ + End: aws.String("__string"), + Start: aws.String("__string"), + }, + }, + } + resp, err := svc.UpdateApplicationSettings(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_UpdateCampaign() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.UpdateCampaignInput{ + ApplicationId: aws.String("__string"), // Required + CampaignId: aws.String("__string"), // Required + WriteCampaignRequest: &pinpoint.WriteCampaignRequest{ // Required + AdditionalTreatments: []*pinpoint.WriteTreatmentResource{ + { // Required + MessageConfiguration: &pinpoint.MessageConfiguration{ + APNSMessage: &pinpoint.Message{ + Action: aws.String("Action"), + Body: aws.String("__string"), + ImageIconUrl: aws.String("__string"), + ImageUrl: aws.String("__string"), + JsonBody: aws.String("__string"), + MediaUrl: aws.String("__string"), + SilentPush: aws.Bool(true), + Title: aws.String("__string"), + Url: aws.String("__string"), + }, + DefaultMessage: &pinpoint.Message{ + Action: aws.String("Action"), + Body: aws.String("__string"), + ImageIconUrl: aws.String("__string"), + ImageUrl: aws.String("__string"), + JsonBody: aws.String("__string"), + MediaUrl: aws.String("__string"), + SilentPush: aws.Bool(true), + Title: aws.String("__string"), + Url: aws.String("__string"), + }, + GCMMessage: &pinpoint.Message{ + Action: aws.String("Action"), + Body: aws.String("__string"), + ImageIconUrl: aws.String("__string"), + ImageUrl: aws.String("__string"), + JsonBody: aws.String("__string"), + MediaUrl: aws.String("__string"), + SilentPush: aws.Bool(true), + Title: aws.String("__string"), + Url: aws.String("__string"), + }, + }, + Schedule: &pinpoint.Schedule{ + EndTime: aws.String("__string"), + Frequency: aws.String("Frequency"), + IsLocalTime: aws.Bool(true), + QuietTime: &pinpoint.QuietTime{ + End: aws.String("__string"), + Start: aws.String("__string"), + }, + StartTime: aws.String("__string"), + Timezone: aws.String("__string"), + }, + SizePercent: aws.Int64(1), + TreatmentDescription: aws.String("__string"), + TreatmentName: aws.String("__string"), + }, + // More values... + }, + Description: aws.String("__string"), + HoldoutPercent: aws.Int64(1), + IsPaused: aws.Bool(true), + Limits: &pinpoint.CampaignLimits{ + Daily: aws.Int64(1), + Total: aws.Int64(1), + }, + MessageConfiguration: &pinpoint.MessageConfiguration{ + APNSMessage: &pinpoint.Message{ + Action: aws.String("Action"), + Body: aws.String("__string"), + ImageIconUrl: aws.String("__string"), + ImageUrl: aws.String("__string"), + JsonBody: aws.String("__string"), + MediaUrl: aws.String("__string"), + SilentPush: aws.Bool(true), + Title: aws.String("__string"), + Url: aws.String("__string"), + }, + DefaultMessage: &pinpoint.Message{ + Action: aws.String("Action"), + Body: aws.String("__string"), + ImageIconUrl: aws.String("__string"), + ImageUrl: aws.String("__string"), + JsonBody: aws.String("__string"), + MediaUrl: aws.String("__string"), + SilentPush: aws.Bool(true), + Title: aws.String("__string"), + Url: aws.String("__string"), + }, + GCMMessage: &pinpoint.Message{ + Action: aws.String("Action"), + Body: aws.String("__string"), + ImageIconUrl: aws.String("__string"), + ImageUrl: aws.String("__string"), + JsonBody: aws.String("__string"), + MediaUrl: aws.String("__string"), + SilentPush: aws.Bool(true), + Title: aws.String("__string"), + Url: aws.String("__string"), + }, + }, + Name: aws.String("__string"), + Schedule: &pinpoint.Schedule{ + EndTime: aws.String("__string"), + Frequency: aws.String("Frequency"), + IsLocalTime: aws.Bool(true), + QuietTime: &pinpoint.QuietTime{ + End: aws.String("__string"), + Start: aws.String("__string"), + }, + StartTime: aws.String("__string"), + Timezone: aws.String("__string"), + }, + SegmentId: aws.String("__string"), + SegmentVersion: aws.Int64(1), + TreatmentDescription: aws.String("__string"), + TreatmentName: aws.String("__string"), + }, + } + resp, err := svc.UpdateCampaign(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_UpdateEndpoint() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.UpdateEndpointInput{ + ApplicationId: aws.String("__string"), // Required + EndpointId: aws.String("__string"), // Required + EndpointRequest: &pinpoint.EndpointRequest{ // Required + Address: aws.String("__string"), + Attributes: map[string][]*string{ + "Key": { // Required + aws.String("__string"), // Required + // More values... + }, + // More values... + }, + ChannelType: aws.String("ChannelType"), + Demographic: &pinpoint.EndpointDemographic{ + AppVersion: aws.String("__string"), + Locale: aws.String("__string"), + Make: aws.String("__string"), + Model: aws.String("__string"), + ModelVersion: aws.String("__string"), + Platform: aws.String("__string"), + PlatformVersion: aws.String("__string"), + Timezone: aws.String("__string"), + }, + EffectiveDate: aws.String("__string"), + EndpointStatus: aws.String("__string"), + Location: &pinpoint.EndpointLocation{ + City: aws.String("__string"), + Country: aws.String("__string"), + Latitude: aws.Float64(1.0), + Longitude: aws.Float64(1.0), + PostalCode: aws.String("__string"), + Region: aws.String("__string"), + }, + Metrics: map[string]*float64{ + "Key": aws.Float64(1.0), // Required + // More values... + }, + OptOut: aws.String("__string"), + RequestId: aws.String("__string"), + User: &pinpoint.EndpointUser{ + UserAttributes: map[string][]*string{ + "Key": { // Required + aws.String("__string"), // Required + // More values... + }, + // More values... + }, + UserId: aws.String("__string"), + }, + }, + } + resp, err := svc.UpdateEndpoint(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_UpdateEndpointsBatch() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.UpdateEndpointsBatchInput{ + ApplicationId: aws.String("__string"), // Required + EndpointBatchRequest: &pinpoint.EndpointBatchRequest{ // Required + Item: []*pinpoint.EndpointBatchItem{ + { // Required + Address: aws.String("__string"), + Attributes: map[string][]*string{ + "Key": { // Required + aws.String("__string"), // Required + // More values... + }, + // More values... + }, + ChannelType: aws.String("ChannelType"), + Demographic: &pinpoint.EndpointDemographic{ + AppVersion: aws.String("__string"), + Locale: aws.String("__string"), + Make: aws.String("__string"), + Model: aws.String("__string"), + ModelVersion: aws.String("__string"), + Platform: aws.String("__string"), + PlatformVersion: aws.String("__string"), + Timezone: aws.String("__string"), + }, + EffectiveDate: aws.String("__string"), + EndpointStatus: aws.String("__string"), + Id: aws.String("__string"), + Location: &pinpoint.EndpointLocation{ + City: aws.String("__string"), + Country: aws.String("__string"), + Latitude: aws.Float64(1.0), + Longitude: aws.Float64(1.0), + PostalCode: aws.String("__string"), + Region: aws.String("__string"), + }, + Metrics: map[string]*float64{ + "Key": aws.Float64(1.0), // Required + // More values... + }, + OptOut: aws.String("__string"), + RequestId: aws.String("__string"), + User: &pinpoint.EndpointUser{ + UserAttributes: map[string][]*string{ + "Key": { // Required + aws.String("__string"), // Required + // More values... + }, + // More values... + }, + UserId: aws.String("__string"), + }, + }, + // More values... + }, + }, + } + resp, err := svc.UpdateEndpointsBatch(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_UpdateGcmChannel() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.UpdateGcmChannelInput{ + ApplicationId: aws.String("__string"), // Required + GCMChannelRequest: &pinpoint.GCMChannelRequest{ // Required + ApiKey: aws.String("__string"), + }, + } + resp, err := svc.UpdateGcmChannel(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePinpoint_UpdateSegment() { + sess := session.Must(session.NewSession()) + + svc := pinpoint.New(sess) + + params := &pinpoint.UpdateSegmentInput{ + ApplicationId: aws.String("__string"), // Required + SegmentId: aws.String("__string"), // Required + WriteSegmentRequest: &pinpoint.WriteSegmentRequest{ // Required + Dimensions: &pinpoint.SegmentDimensions{ + Attributes: map[string]*pinpoint.AttributeDimension{ + "Key": { // Required + AttributeType: aws.String("AttributeType"), + Values: []*string{ + aws.String("__string"), // Required + // More values... + }, + }, + // More values... + }, + Behavior: &pinpoint.SegmentBehaviors{ + Recency: &pinpoint.RecencyDimension{ + Duration: aws.String("Duration"), + RecencyType: aws.String("RecencyType"), + }, + }, + Demographic: &pinpoint.SegmentDemographics{ + AppVersion: &pinpoint.SetDimension{ + DimensionType: aws.String("DimensionType"), + Values: []*string{ + aws.String("__string"), // Required + // More values... + }, + }, + DeviceType: &pinpoint.SetDimension{ + DimensionType: aws.String("DimensionType"), + Values: []*string{ + aws.String("__string"), // Required + // More values... + }, + }, + Make: &pinpoint.SetDimension{ + DimensionType: aws.String("DimensionType"), + Values: []*string{ + aws.String("__string"), // Required + // More values... + }, + }, + Model: &pinpoint.SetDimension{ + DimensionType: aws.String("DimensionType"), + Values: []*string{ + aws.String("__string"), // Required + // More values... + }, + }, + Platform: &pinpoint.SetDimension{ + DimensionType: aws.String("DimensionType"), + Values: []*string{ + aws.String("__string"), // Required + // More values... + }, + }, + }, + Location: &pinpoint.SegmentLocation{ + Country: &pinpoint.SetDimension{ + DimensionType: aws.String("DimensionType"), + Values: []*string{ + aws.String("__string"), // Required + // More values... + }, + }, + }, + }, + Name: aws.String("__string"), + }, + } + resp, err := svc.UpdateSegment(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/pinpoint/pinpointiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/pinpoint/pinpointiface/interface.go new file mode 100644 index 000000000..bc670bc01 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/pinpoint/pinpointiface/interface.go @@ -0,0 +1,183 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package pinpointiface provides an interface to enable mocking the Amazon Pinpoint service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package pinpointiface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/pinpoint" +) + +// PinpointAPI provides an interface to enable mocking the +// pinpoint.Pinpoint service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Amazon Pinpoint. +// func myFunc(svc pinpointiface.PinpointAPI) bool { +// // Make svc.CreateCampaign request +// } +// +// func main() { +// sess := session.New() +// svc := pinpoint.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockPinpointClient struct { +// pinpointiface.PinpointAPI +// } +// func (m *mockPinpointClient) CreateCampaign(input *pinpoint.CreateCampaignInput) (*pinpoint.CreateCampaignOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockPinpointClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type PinpointAPI interface { + CreateCampaignRequest(*pinpoint.CreateCampaignInput) (*request.Request, *pinpoint.CreateCampaignOutput) + + CreateCampaign(*pinpoint.CreateCampaignInput) (*pinpoint.CreateCampaignOutput, error) + + CreateImportJobRequest(*pinpoint.CreateImportJobInput) (*request.Request, *pinpoint.CreateImportJobOutput) + + CreateImportJob(*pinpoint.CreateImportJobInput) (*pinpoint.CreateImportJobOutput, error) + + CreateSegmentRequest(*pinpoint.CreateSegmentInput) (*request.Request, *pinpoint.CreateSegmentOutput) + + CreateSegment(*pinpoint.CreateSegmentInput) (*pinpoint.CreateSegmentOutput, error) + + DeleteApnsChannelRequest(*pinpoint.DeleteApnsChannelInput) (*request.Request, *pinpoint.DeleteApnsChannelOutput) + + DeleteApnsChannel(*pinpoint.DeleteApnsChannelInput) (*pinpoint.DeleteApnsChannelOutput, error) + + DeleteCampaignRequest(*pinpoint.DeleteCampaignInput) (*request.Request, *pinpoint.DeleteCampaignOutput) + + DeleteCampaign(*pinpoint.DeleteCampaignInput) (*pinpoint.DeleteCampaignOutput, error) + + DeleteGcmChannelRequest(*pinpoint.DeleteGcmChannelInput) (*request.Request, *pinpoint.DeleteGcmChannelOutput) + + DeleteGcmChannel(*pinpoint.DeleteGcmChannelInput) (*pinpoint.DeleteGcmChannelOutput, error) + + DeleteSegmentRequest(*pinpoint.DeleteSegmentInput) (*request.Request, *pinpoint.DeleteSegmentOutput) + + DeleteSegment(*pinpoint.DeleteSegmentInput) (*pinpoint.DeleteSegmentOutput, error) + + GetApnsChannelRequest(*pinpoint.GetApnsChannelInput) (*request.Request, *pinpoint.GetApnsChannelOutput) + + GetApnsChannel(*pinpoint.GetApnsChannelInput) (*pinpoint.GetApnsChannelOutput, error) + + GetApplicationSettingsRequest(*pinpoint.GetApplicationSettingsInput) (*request.Request, *pinpoint.GetApplicationSettingsOutput) + + GetApplicationSettings(*pinpoint.GetApplicationSettingsInput) (*pinpoint.GetApplicationSettingsOutput, error) + + GetCampaignRequest(*pinpoint.GetCampaignInput) (*request.Request, *pinpoint.GetCampaignOutput) + + GetCampaign(*pinpoint.GetCampaignInput) (*pinpoint.GetCampaignOutput, error) + + GetCampaignActivitiesRequest(*pinpoint.GetCampaignActivitiesInput) (*request.Request, *pinpoint.GetCampaignActivitiesOutput) + + GetCampaignActivities(*pinpoint.GetCampaignActivitiesInput) (*pinpoint.GetCampaignActivitiesOutput, error) + + GetCampaignVersionRequest(*pinpoint.GetCampaignVersionInput) (*request.Request, *pinpoint.GetCampaignVersionOutput) + + GetCampaignVersion(*pinpoint.GetCampaignVersionInput) (*pinpoint.GetCampaignVersionOutput, error) + + GetCampaignVersionsRequest(*pinpoint.GetCampaignVersionsInput) (*request.Request, *pinpoint.GetCampaignVersionsOutput) + + GetCampaignVersions(*pinpoint.GetCampaignVersionsInput) (*pinpoint.GetCampaignVersionsOutput, error) + + GetCampaignsRequest(*pinpoint.GetCampaignsInput) (*request.Request, *pinpoint.GetCampaignsOutput) + + GetCampaigns(*pinpoint.GetCampaignsInput) (*pinpoint.GetCampaignsOutput, error) + + GetEndpointRequest(*pinpoint.GetEndpointInput) (*request.Request, *pinpoint.GetEndpointOutput) + + GetEndpoint(*pinpoint.GetEndpointInput) (*pinpoint.GetEndpointOutput, error) + + GetGcmChannelRequest(*pinpoint.GetGcmChannelInput) (*request.Request, *pinpoint.GetGcmChannelOutput) + + GetGcmChannel(*pinpoint.GetGcmChannelInput) (*pinpoint.GetGcmChannelOutput, error) + + GetImportJobRequest(*pinpoint.GetImportJobInput) (*request.Request, *pinpoint.GetImportJobOutput) + + GetImportJob(*pinpoint.GetImportJobInput) (*pinpoint.GetImportJobOutput, error) + + GetImportJobsRequest(*pinpoint.GetImportJobsInput) (*request.Request, *pinpoint.GetImportJobsOutput) + + GetImportJobs(*pinpoint.GetImportJobsInput) (*pinpoint.GetImportJobsOutput, error) + + GetSegmentRequest(*pinpoint.GetSegmentInput) (*request.Request, *pinpoint.GetSegmentOutput) + + GetSegment(*pinpoint.GetSegmentInput) (*pinpoint.GetSegmentOutput, error) + + GetSegmentImportJobsRequest(*pinpoint.GetSegmentImportJobsInput) (*request.Request, *pinpoint.GetSegmentImportJobsOutput) + + GetSegmentImportJobs(*pinpoint.GetSegmentImportJobsInput) (*pinpoint.GetSegmentImportJobsOutput, error) + + GetSegmentVersionRequest(*pinpoint.GetSegmentVersionInput) (*request.Request, *pinpoint.GetSegmentVersionOutput) + + GetSegmentVersion(*pinpoint.GetSegmentVersionInput) (*pinpoint.GetSegmentVersionOutput, error) + + GetSegmentVersionsRequest(*pinpoint.GetSegmentVersionsInput) (*request.Request, *pinpoint.GetSegmentVersionsOutput) + + GetSegmentVersions(*pinpoint.GetSegmentVersionsInput) (*pinpoint.GetSegmentVersionsOutput, error) + + GetSegmentsRequest(*pinpoint.GetSegmentsInput) (*request.Request, *pinpoint.GetSegmentsOutput) + + GetSegments(*pinpoint.GetSegmentsInput) (*pinpoint.GetSegmentsOutput, error) + + UpdateApnsChannelRequest(*pinpoint.UpdateApnsChannelInput) (*request.Request, *pinpoint.UpdateApnsChannelOutput) + + UpdateApnsChannel(*pinpoint.UpdateApnsChannelInput) (*pinpoint.UpdateApnsChannelOutput, error) + + UpdateApplicationSettingsRequest(*pinpoint.UpdateApplicationSettingsInput) (*request.Request, *pinpoint.UpdateApplicationSettingsOutput) + + UpdateApplicationSettings(*pinpoint.UpdateApplicationSettingsInput) (*pinpoint.UpdateApplicationSettingsOutput, error) + + UpdateCampaignRequest(*pinpoint.UpdateCampaignInput) (*request.Request, *pinpoint.UpdateCampaignOutput) + + UpdateCampaign(*pinpoint.UpdateCampaignInput) (*pinpoint.UpdateCampaignOutput, error) + + UpdateEndpointRequest(*pinpoint.UpdateEndpointInput) (*request.Request, *pinpoint.UpdateEndpointOutput) + + UpdateEndpoint(*pinpoint.UpdateEndpointInput) (*pinpoint.UpdateEndpointOutput, error) + + UpdateEndpointsBatchRequest(*pinpoint.UpdateEndpointsBatchInput) (*request.Request, *pinpoint.UpdateEndpointsBatchOutput) + + UpdateEndpointsBatch(*pinpoint.UpdateEndpointsBatchInput) (*pinpoint.UpdateEndpointsBatchOutput, error) + + UpdateGcmChannelRequest(*pinpoint.UpdateGcmChannelInput) (*request.Request, *pinpoint.UpdateGcmChannelOutput) + + UpdateGcmChannel(*pinpoint.UpdateGcmChannelInput) (*pinpoint.UpdateGcmChannelOutput, error) + + UpdateSegmentRequest(*pinpoint.UpdateSegmentInput) (*request.Request, *pinpoint.UpdateSegmentOutput) + + UpdateSegment(*pinpoint.UpdateSegmentInput) (*pinpoint.UpdateSegmentOutput, error) +} + +var _ PinpointAPI = (*pinpoint.Pinpoint)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/pinpoint/service.go b/vendor/github.com/aws/aws-sdk-go/service/pinpoint/service.go new file mode 100644 index 000000000..1fca885ee --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/pinpoint/service.go @@ -0,0 +1,95 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package pinpoint + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +// Pinpoint is a client for Amazon Pinpoint. +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ +type Pinpoint struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "pinpoint" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the Pinpoint client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a Pinpoint client from just a session. +// svc := pinpoint.New(mySession) +// +// // Create a Pinpoint client with additional configuration +// svc := pinpoint.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *Pinpoint { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Pinpoint { + if len(signingName) == 0 { + signingName = "mobiletargeting" + } + svc := &Pinpoint{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2016-12-01", + JSONVersion: "1.1", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a Pinpoint operation and runs any +// custom request initialization. +func (c *Pinpoint) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/polly/api.go b/vendor/github.com/aws/aws-sdk-go/service/polly/api.go new file mode 100644 index 000000000..4a00f8064 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/polly/api.go @@ -0,0 +1,1434 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package polly provides a client for Amazon Polly. +package polly + +import ( + "io" + "time" + + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opDeleteLexicon = "DeleteLexicon" + +// DeleteLexiconRequest generates a "aws/request.Request" representing the +// client's request for the DeleteLexicon operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteLexicon for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteLexicon method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteLexiconRequest method. +// req, resp := client.DeleteLexiconRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DeleteLexicon +func (c *Polly) DeleteLexiconRequest(input *DeleteLexiconInput) (req *request.Request, output *DeleteLexiconOutput) { + op := &request.Operation{ + Name: opDeleteLexicon, + HTTPMethod: "DELETE", + HTTPPath: "/v1/lexicons/{LexiconName}", + } + + if input == nil { + input = &DeleteLexiconInput{} + } + + output = &DeleteLexiconOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteLexicon API operation for Amazon Polly. +// +// Deletes the specified pronunciation lexicon stored in an AWS Region. A lexicon +// which has been deleted is not available for speech synthesis, nor is it possible +// to retrieve it using either the GetLexicon or ListLexicon APIs. +// +// For more information, see Managing Lexicons (http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Polly's +// API operation DeleteLexicon for usage and error information. +// +// Returned Error Codes: +// * ErrCodeLexiconNotFoundException "LexiconNotFoundException" +// Amazon Polly can't find the specified lexicon. This could be caused by a +// lexicon that is missing, its name is misspelled or specifying a lexicon that +// is in a different region. +// +// Verify that the lexicon exists, is in the region (see ListLexicons) and that +// you spelled its name is spelled correctly. Then try again. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// An unknown condition has caused a service failure. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DeleteLexicon +func (c *Polly) DeleteLexicon(input *DeleteLexiconInput) (*DeleteLexiconOutput, error) { + req, out := c.DeleteLexiconRequest(input) + err := req.Send() + return out, err +} + +const opDescribeVoices = "DescribeVoices" + +// DescribeVoicesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeVoices operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeVoices for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeVoices method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeVoicesRequest method. +// req, resp := client.DescribeVoicesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DescribeVoices +func (c *Polly) DescribeVoicesRequest(input *DescribeVoicesInput) (req *request.Request, output *DescribeVoicesOutput) { + op := &request.Operation{ + Name: opDescribeVoices, + HTTPMethod: "GET", + HTTPPath: "/v1/voices", + } + + if input == nil { + input = &DescribeVoicesInput{} + } + + output = &DescribeVoicesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeVoices API operation for Amazon Polly. +// +// Returns the list of voices that are available for use when requesting speech +// synthesis. Each voice speaks a specified language, is either male or female, +// and is identified by an ID, which is the ASCII version of the voice name. +// +// When synthesizing speech ( SynthesizeSpeech ), you provide the voice ID for +// the voice you want from the list of voices returned by DescribeVoices. +// +// For example, you want your news reader application to read news in a specific +// language, but giving a user the option to choose the voice. Using the DescribeVoices +// operation you can provide the user with a list of available voices to select +// from. +// +// You can optionally specify a language code to filter the available voices. +// For example, if you specify en-US, the operation returns a list of all available +// US English voices. +// +// This operation requires permissions to perform the polly:DescribeVoices action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Polly's +// API operation DescribeVoices for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The NextToken is invalid. Verify that it's spelled correctly, and then try +// again. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// An unknown condition has caused a service failure. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DescribeVoices +func (c *Polly) DescribeVoices(input *DescribeVoicesInput) (*DescribeVoicesOutput, error) { + req, out := c.DescribeVoicesRequest(input) + err := req.Send() + return out, err +} + +const opGetLexicon = "GetLexicon" + +// GetLexiconRequest generates a "aws/request.Request" representing the +// client's request for the GetLexicon operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetLexicon for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetLexicon method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetLexiconRequest method. +// req, resp := client.GetLexiconRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/GetLexicon +func (c *Polly) GetLexiconRequest(input *GetLexiconInput) (req *request.Request, output *GetLexiconOutput) { + op := &request.Operation{ + Name: opGetLexicon, + HTTPMethod: "GET", + HTTPPath: "/v1/lexicons/{LexiconName}", + } + + if input == nil { + input = &GetLexiconInput{} + } + + output = &GetLexiconOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetLexicon API operation for Amazon Polly. +// +// Returns the content of the specified pronunciation lexicon stored in an AWS +// Region. For more information, see Managing Lexicons (http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Polly's +// API operation GetLexicon for usage and error information. +// +// Returned Error Codes: +// * ErrCodeLexiconNotFoundException "LexiconNotFoundException" +// Amazon Polly can't find the specified lexicon. This could be caused by a +// lexicon that is missing, its name is misspelled or specifying a lexicon that +// is in a different region. +// +// Verify that the lexicon exists, is in the region (see ListLexicons) and that +// you spelled its name is spelled correctly. Then try again. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// An unknown condition has caused a service failure. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/GetLexicon +func (c *Polly) GetLexicon(input *GetLexiconInput) (*GetLexiconOutput, error) { + req, out := c.GetLexiconRequest(input) + err := req.Send() + return out, err +} + +const opListLexicons = "ListLexicons" + +// ListLexiconsRequest generates a "aws/request.Request" representing the +// client's request for the ListLexicons operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListLexicons for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListLexicons method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListLexiconsRequest method. +// req, resp := client.ListLexiconsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ListLexicons +func (c *Polly) ListLexiconsRequest(input *ListLexiconsInput) (req *request.Request, output *ListLexiconsOutput) { + op := &request.Operation{ + Name: opListLexicons, + HTTPMethod: "GET", + HTTPPath: "/v1/lexicons", + } + + if input == nil { + input = &ListLexiconsInput{} + } + + output = &ListLexiconsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListLexicons API operation for Amazon Polly. +// +// Returns a list of pronunciation lexicons stored in an AWS Region. For more +// information, see Managing Lexicons (http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Polly's +// API operation ListLexicons for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The NextToken is invalid. Verify that it's spelled correctly, and then try +// again. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// An unknown condition has caused a service failure. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ListLexicons +func (c *Polly) ListLexicons(input *ListLexiconsInput) (*ListLexiconsOutput, error) { + req, out := c.ListLexiconsRequest(input) + err := req.Send() + return out, err +} + +const opPutLexicon = "PutLexicon" + +// PutLexiconRequest generates a "aws/request.Request" representing the +// client's request for the PutLexicon operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See PutLexicon for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the PutLexicon method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the PutLexiconRequest method. +// req, resp := client.PutLexiconRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/PutLexicon +func (c *Polly) PutLexiconRequest(input *PutLexiconInput) (req *request.Request, output *PutLexiconOutput) { + op := &request.Operation{ + Name: opPutLexicon, + HTTPMethod: "PUT", + HTTPPath: "/v1/lexicons/{LexiconName}", + } + + if input == nil { + input = &PutLexiconInput{} + } + + output = &PutLexiconOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutLexicon API operation for Amazon Polly. +// +// Stores a pronunciation lexicon in an AWS Region. If a lexicon with the same +// name already exists in the region, it is overwritten by the new lexicon. +// Lexicon operations have eventual consistency, therefore, it might take some +// time before the lexicon is available to the SynthesizeSpeech operation. +// +// For more information, see Managing Lexicons (http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Polly's +// API operation PutLexicon for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidLexiconException "InvalidLexiconException" +// Amazon Polly can't find the specified lexicon. Verify that the lexicon's +// name is spelled correctly, and then try again. +// +// * ErrCodeUnsupportedPlsAlphabetException "UnsupportedPlsAlphabetException" +// The alphabet specified by the lexicon is not a supported alphabet. Valid +// values are x-sampa and ipa. +// +// * ErrCodeUnsupportedPlsLanguageException "UnsupportedPlsLanguageException" +// The language specified in the lexicon is unsupported. For a list of supported +// languages, see Lexicon Attributes (http://docs.aws.amazon.com/polly/latest/dg/API_LexiconAttributes.html). +// +// * ErrCodeLexiconSizeExceededException "LexiconSizeExceededException" +// The maximum size of the specified lexicon would be exceeded by this operation. +// +// * ErrCodeMaxLexemeLengthExceededException "MaxLexemeLengthExceededException" +// The maximum size of the lexeme would be exceeded by this operation. +// +// * ErrCodeMaxLexiconsNumberExceededException "MaxLexiconsNumberExceededException" +// The maximum number of lexicons would be exceeded by this operation. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// An unknown condition has caused a service failure. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/PutLexicon +func (c *Polly) PutLexicon(input *PutLexiconInput) (*PutLexiconOutput, error) { + req, out := c.PutLexiconRequest(input) + err := req.Send() + return out, err +} + +const opSynthesizeSpeech = "SynthesizeSpeech" + +// SynthesizeSpeechRequest generates a "aws/request.Request" representing the +// client's request for the SynthesizeSpeech operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See SynthesizeSpeech for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the SynthesizeSpeech method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the SynthesizeSpeechRequest method. +// req, resp := client.SynthesizeSpeechRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/SynthesizeSpeech +func (c *Polly) SynthesizeSpeechRequest(input *SynthesizeSpeechInput) (req *request.Request, output *SynthesizeSpeechOutput) { + op := &request.Operation{ + Name: opSynthesizeSpeech, + HTTPMethod: "POST", + HTTPPath: "/v1/speech", + } + + if input == nil { + input = &SynthesizeSpeechInput{} + } + + output = &SynthesizeSpeechOutput{} + req = c.newRequest(op, input, output) + return +} + +// SynthesizeSpeech API operation for Amazon Polly. +// +// Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes. SSML input +// must be valid, well-formed SSML. Some alphabets might not be available with +// all the voices (for example, Cyrillic might not be read at all by English +// voices) unless phoneme mapping is used. For more information, see How it +// Works (http://docs.aws.amazon.com/polly/latest/dg/how-text-to-speech-works.html). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Polly's +// API operation SynthesizeSpeech for usage and error information. +// +// Returned Error Codes: +// * ErrCodeTextLengthExceededException "TextLengthExceededException" +// The value of the "Text" parameter is longer than the accepted limits. The +// limit for input text is a maximum of 3000 characters total, of which no more +// than 1500 can be billed characters. SSML tags are not counted as billed characters. +// +// * ErrCodeInvalidSampleRateException "InvalidSampleRateException" +// The specified sample rate is not valid. +// +// * ErrCodeInvalidSsmlException "InvalidSsmlException" +// The SSML you provided is invalid. Verify the SSML syntax, spelling of tags +// and values, and then try again. +// +// * ErrCodeLexiconNotFoundException "LexiconNotFoundException" +// Amazon Polly can't find the specified lexicon. This could be caused by a +// lexicon that is missing, its name is misspelled or specifying a lexicon that +// is in a different region. +// +// Verify that the lexicon exists, is in the region (see ListLexicons) and that +// you spelled its name is spelled correctly. Then try again. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// An unknown condition has caused a service failure. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/SynthesizeSpeech +func (c *Polly) SynthesizeSpeech(input *SynthesizeSpeechInput) (*SynthesizeSpeechOutput, error) { + req, out := c.SynthesizeSpeechRequest(input) + err := req.Send() + return out, err +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DeleteLexiconInput +type DeleteLexiconInput struct { + _ struct{} `type:"structure"` + + // The name of the lexicon to delete. Must be an existing lexicon in the region. + // + // Name is a required field + Name *string `location:"uri" locationName:"LexiconName" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteLexiconInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteLexiconInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteLexiconInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteLexiconInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *DeleteLexiconInput) SetName(v string) *DeleteLexiconInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DeleteLexiconOutput +type DeleteLexiconOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteLexiconOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteLexiconOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DescribeVoicesInput +type DescribeVoicesInput struct { + _ struct{} `type:"structure"` + + // The language identification tag (ISO 639 code for the language name-ISO 3166 + // country code) for filtering the list of voices returned. If you don't specify + // this optional parameter, all available voices are returned. + LanguageCode *string `location:"querystring" locationName:"LanguageCode" type:"string" enum:"LanguageCode"` + + // An opaque pagination token returned from the previous DescribeVoices operation. + // If present, this indicates where to continue the listing. + NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` +} + +// String returns the string representation +func (s DescribeVoicesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeVoicesInput) GoString() string { + return s.String() +} + +// SetLanguageCode sets the LanguageCode field's value. +func (s *DescribeVoicesInput) SetLanguageCode(v string) *DescribeVoicesInput { + s.LanguageCode = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVoicesInput) SetNextToken(v string) *DescribeVoicesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DescribeVoicesOutput +type DescribeVoicesOutput struct { + _ struct{} `type:"structure"` + + // The pagination token to use in the next request to continue the listing of + // voices. NextToken is returned only if the response is truncated. + NextToken *string `type:"string"` + + // A list of voices with their properties. + Voices []*Voice `type:"list"` +} + +// String returns the string representation +func (s DescribeVoicesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeVoicesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVoicesOutput) SetNextToken(v string) *DescribeVoicesOutput { + s.NextToken = &v + return s +} + +// SetVoices sets the Voices field's value. +func (s *DescribeVoicesOutput) SetVoices(v []*Voice) *DescribeVoicesOutput { + s.Voices = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/GetLexiconInput +type GetLexiconInput struct { + _ struct{} `type:"structure"` + + // Name of the lexicon. + // + // Name is a required field + Name *string `location:"uri" locationName:"LexiconName" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetLexiconInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLexiconInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetLexiconInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetLexiconInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *GetLexiconInput) SetName(v string) *GetLexiconInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/GetLexiconOutput +type GetLexiconOutput struct { + _ struct{} `type:"structure"` + + // Lexicon object that provides name and the string content of the lexicon. + Lexicon *Lexicon `type:"structure"` + + // Metadata of the lexicon, including phonetic alphabetic used, language code, + // lexicon ARN, number of lexemes defined in the lexicon, and size of lexicon + // in bytes. + LexiconAttributes *LexiconAttributes `type:"structure"` +} + +// String returns the string representation +func (s GetLexiconOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLexiconOutput) GoString() string { + return s.String() +} + +// SetLexicon sets the Lexicon field's value. +func (s *GetLexiconOutput) SetLexicon(v *Lexicon) *GetLexiconOutput { + s.Lexicon = v + return s +} + +// SetLexiconAttributes sets the LexiconAttributes field's value. +func (s *GetLexiconOutput) SetLexiconAttributes(v *LexiconAttributes) *GetLexiconOutput { + s.LexiconAttributes = v + return s +} + +// Provides lexicon name and lexicon content in string format. For more information, +// see Pronunciation Lexicon Specification (PLS) Version 1.0 (https://www.w3.org/TR/pronunciation-lexicon/). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/Lexicon +type Lexicon struct { + _ struct{} `type:"structure"` + + // Lexicon content in string format. The content of a lexicon must be in PLS + // format. + Content *string `type:"string"` + + // Name of the lexicon. + Name *string `type:"string"` +} + +// String returns the string representation +func (s Lexicon) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Lexicon) GoString() string { + return s.String() +} + +// SetContent sets the Content field's value. +func (s *Lexicon) SetContent(v string) *Lexicon { + s.Content = &v + return s +} + +// SetName sets the Name field's value. +func (s *Lexicon) SetName(v string) *Lexicon { + s.Name = &v + return s +} + +// Contains metadata describing the lexicon such as the number of lexemes, language +// code, and so on. For more information, see Managing Lexicons (http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/LexiconAttributes +type LexiconAttributes struct { + _ struct{} `type:"structure"` + + // Phonetic alphabet used in the lexicon. Valid values are ipa and x-sampa. + Alphabet *string `type:"string"` + + // Language code that the lexicon applies to. A lexicon with a language code + // such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, + // en-WLS, and so on. + LanguageCode *string `type:"string" enum:"LanguageCode"` + + // Date lexicon was last modified (a timestamp value). + LastModified *time.Time `type:"timestamp" timestampFormat:"unix"` + + // Number of lexemes in the lexicon. + LexemesCount *int64 `type:"integer"` + + // Amazon Resource Name (ARN) of the lexicon. + LexiconArn *string `type:"string"` + + // Total size of the lexicon, in characters. + Size *int64 `type:"integer"` +} + +// String returns the string representation +func (s LexiconAttributes) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LexiconAttributes) GoString() string { + return s.String() +} + +// SetAlphabet sets the Alphabet field's value. +func (s *LexiconAttributes) SetAlphabet(v string) *LexiconAttributes { + s.Alphabet = &v + return s +} + +// SetLanguageCode sets the LanguageCode field's value. +func (s *LexiconAttributes) SetLanguageCode(v string) *LexiconAttributes { + s.LanguageCode = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *LexiconAttributes) SetLastModified(v time.Time) *LexiconAttributes { + s.LastModified = &v + return s +} + +// SetLexemesCount sets the LexemesCount field's value. +func (s *LexiconAttributes) SetLexemesCount(v int64) *LexiconAttributes { + s.LexemesCount = &v + return s +} + +// SetLexiconArn sets the LexiconArn field's value. +func (s *LexiconAttributes) SetLexiconArn(v string) *LexiconAttributes { + s.LexiconArn = &v + return s +} + +// SetSize sets the Size field's value. +func (s *LexiconAttributes) SetSize(v int64) *LexiconAttributes { + s.Size = &v + return s +} + +// Describes the content of the lexicon. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/LexiconDescription +type LexiconDescription struct { + _ struct{} `type:"structure"` + + // Provides lexicon metadata. + Attributes *LexiconAttributes `type:"structure"` + + // Name of the lexicon. + Name *string `type:"string"` +} + +// String returns the string representation +func (s LexiconDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LexiconDescription) GoString() string { + return s.String() +} + +// SetAttributes sets the Attributes field's value. +func (s *LexiconDescription) SetAttributes(v *LexiconAttributes) *LexiconDescription { + s.Attributes = v + return s +} + +// SetName sets the Name field's value. +func (s *LexiconDescription) SetName(v string) *LexiconDescription { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ListLexiconsInput +type ListLexiconsInput struct { + _ struct{} `type:"structure"` + + // An opaque pagination token returned from previous ListLexicons operation. + // If present, indicates where to continue the list of lexicons. + NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` +} + +// String returns the string representation +func (s ListLexiconsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLexiconsInput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLexiconsInput) SetNextToken(v string) *ListLexiconsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ListLexiconsOutput +type ListLexiconsOutput struct { + _ struct{} `type:"structure"` + + // A list of lexicon names and attributes. + Lexicons []*LexiconDescription `type:"list"` + + // The pagination token to use in the next request to continue the listing of + // lexicons. NextToken is returned only if the response is truncated. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListLexiconsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLexiconsOutput) GoString() string { + return s.String() +} + +// SetLexicons sets the Lexicons field's value. +func (s *ListLexiconsOutput) SetLexicons(v []*LexiconDescription) *ListLexiconsOutput { + s.Lexicons = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLexiconsOutput) SetNextToken(v string) *ListLexiconsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/PutLexiconInput +type PutLexiconInput struct { + _ struct{} `type:"structure"` + + // Content of the PLS lexicon as string data. + // + // Content is a required field + Content *string `type:"string" required:"true"` + + // Name of the lexicon. The name must follow the regular express format [0-9A-Za-z]{1,20}. + // That is, the name is a case-sensitive alphanumeric string up to 20 characters + // long. + // + // Name is a required field + Name *string `location:"uri" locationName:"LexiconName" type:"string" required:"true"` +} + +// String returns the string representation +func (s PutLexiconInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutLexiconInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutLexiconInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutLexiconInput"} + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContent sets the Content field's value. +func (s *PutLexiconInput) SetContent(v string) *PutLexiconInput { + s.Content = &v + return s +} + +// SetName sets the Name field's value. +func (s *PutLexiconInput) SetName(v string) *PutLexiconInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/PutLexiconOutput +type PutLexiconOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutLexiconOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutLexiconOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/SynthesizeSpeechInput +type SynthesizeSpeechInput struct { + _ struct{} `type:"structure"` + + // List of one or more pronunciation lexicon names you want the service to apply + // during synthesis. Lexicons are applied only if the language of the lexicon + // is the same as the language of the voice. For information about storing lexicons, + // see PutLexicon (http://docs.aws.amazon.com/polly/latest/dg/API_PutLexicon.html). + LexiconNames []*string `type:"list"` + + // The audio format in which the resulting stream will be encoded. + // + // OutputFormat is a required field + OutputFormat *string `type:"string" required:"true" enum:"OutputFormat"` + + // The audio frequency specified in Hz. + // + // The valid values for mp3 and ogg_vorbis are "8000", "16000", and "22050". + // The default value is "22050". + // + // Valid values for pcm are "8000" and "16000" The default value is "16000". + SampleRate *string `type:"string"` + + // Input text to synthesize. If you specify ssml as the TextType, follow the + // SSML format for the input text. + // + // Text is a required field + Text *string `type:"string" required:"true"` + + // Specifies whether the input text is plain text or SSML. The default value + // is plain text. For more information, see Using SSML (http://docs.aws.amazon.com/polly/latest/dg/ssml.html). + TextType *string `type:"string" enum:"TextType"` + + // Voice ID to use for the synthesis. You can get a list of available voice + // IDs by calling the DescribeVoices (http://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html) + // operation. + // + // VoiceId is a required field + VoiceId *string `type:"string" required:"true" enum:"VoiceId"` +} + +// String returns the string representation +func (s SynthesizeSpeechInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SynthesizeSpeechInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SynthesizeSpeechInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SynthesizeSpeechInput"} + if s.OutputFormat == nil { + invalidParams.Add(request.NewErrParamRequired("OutputFormat")) + } + if s.Text == nil { + invalidParams.Add(request.NewErrParamRequired("Text")) + } + if s.VoiceId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLexiconNames sets the LexiconNames field's value. +func (s *SynthesizeSpeechInput) SetLexiconNames(v []*string) *SynthesizeSpeechInput { + s.LexiconNames = v + return s +} + +// SetOutputFormat sets the OutputFormat field's value. +func (s *SynthesizeSpeechInput) SetOutputFormat(v string) *SynthesizeSpeechInput { + s.OutputFormat = &v + return s +} + +// SetSampleRate sets the SampleRate field's value. +func (s *SynthesizeSpeechInput) SetSampleRate(v string) *SynthesizeSpeechInput { + s.SampleRate = &v + return s +} + +// SetText sets the Text field's value. +func (s *SynthesizeSpeechInput) SetText(v string) *SynthesizeSpeechInput { + s.Text = &v + return s +} + +// SetTextType sets the TextType field's value. +func (s *SynthesizeSpeechInput) SetTextType(v string) *SynthesizeSpeechInput { + s.TextType = &v + return s +} + +// SetVoiceId sets the VoiceId field's value. +func (s *SynthesizeSpeechInput) SetVoiceId(v string) *SynthesizeSpeechInput { + s.VoiceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/SynthesizeSpeechOutput +type SynthesizeSpeechOutput struct { + _ struct{} `type:"structure" payload:"AudioStream"` + + // Stream containing the synthesized speech. + AudioStream io.ReadCloser `type:"blob"` + + // Specifies the type audio stream. This should reflect the OutputFormat parameter + // in your request. + // + // * If you request mp3 as the OutputFormat, the ContentType returned is + // audio/mpeg. + // + // * If you request ogg_vorbis as the OutputFormat, the ContentType returned + // is audio/ogg. + // + // * If you request pcm as the OutputFormat, the ContentType returned is + // audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format. + // + ContentType *string `location:"header" locationName:"Content-Type" type:"string"` + + // Number of characters synthesized. + RequestCharacters *int64 `location:"header" locationName:"x-amzn-RequestCharacters" type:"integer"` +} + +// String returns the string representation +func (s SynthesizeSpeechOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SynthesizeSpeechOutput) GoString() string { + return s.String() +} + +// SetAudioStream sets the AudioStream field's value. +func (s *SynthesizeSpeechOutput) SetAudioStream(v io.ReadCloser) *SynthesizeSpeechOutput { + s.AudioStream = v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *SynthesizeSpeechOutput) SetContentType(v string) *SynthesizeSpeechOutput { + s.ContentType = &v + return s +} + +// SetRequestCharacters sets the RequestCharacters field's value. +func (s *SynthesizeSpeechOutput) SetRequestCharacters(v int64) *SynthesizeSpeechOutput { + s.RequestCharacters = &v + return s +} + +// Description of the voice. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/Voice +type Voice struct { + _ struct{} `type:"structure"` + + // Gender of the voice. + Gender *string `type:"string" enum:"Gender"` + + // Amazon Polly assigned voice ID. This is the ID that you specify when calling + // the SynthesizeSpeech operation. + Id *string `type:"string" enum:"VoiceId"` + + // Language code of the voice. + LanguageCode *string `type:"string" enum:"LanguageCode"` + + // Human readable name of the language in English. + LanguageName *string `type:"string"` + + // Name of the voice (for example, Salli, Kendra, etc.). This provides a human + // readable voice name that you might display in your application. + Name *string `type:"string"` +} + +// String returns the string representation +func (s Voice) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Voice) GoString() string { + return s.String() +} + +// SetGender sets the Gender field's value. +func (s *Voice) SetGender(v string) *Voice { + s.Gender = &v + return s +} + +// SetId sets the Id field's value. +func (s *Voice) SetId(v string) *Voice { + s.Id = &v + return s +} + +// SetLanguageCode sets the LanguageCode field's value. +func (s *Voice) SetLanguageCode(v string) *Voice { + s.LanguageCode = &v + return s +} + +// SetLanguageName sets the LanguageName field's value. +func (s *Voice) SetLanguageName(v string) *Voice { + s.LanguageName = &v + return s +} + +// SetName sets the Name field's value. +func (s *Voice) SetName(v string) *Voice { + s.Name = &v + return s +} + +const ( + // GenderFemale is a Gender enum value + GenderFemale = "Female" + + // GenderMale is a Gender enum value + GenderMale = "Male" +) + +const ( + // LanguageCodeCyGb is a LanguageCode enum value + LanguageCodeCyGb = "cy-GB" + + // LanguageCodeDaDk is a LanguageCode enum value + LanguageCodeDaDk = "da-DK" + + // LanguageCodeDeDe is a LanguageCode enum value + LanguageCodeDeDe = "de-DE" + + // LanguageCodeEnAu is a LanguageCode enum value + LanguageCodeEnAu = "en-AU" + + // LanguageCodeEnGb is a LanguageCode enum value + LanguageCodeEnGb = "en-GB" + + // LanguageCodeEnGbWls is a LanguageCode enum value + LanguageCodeEnGbWls = "en-GB-WLS" + + // LanguageCodeEnIn is a LanguageCode enum value + LanguageCodeEnIn = "en-IN" + + // LanguageCodeEnUs is a LanguageCode enum value + LanguageCodeEnUs = "en-US" + + // LanguageCodeEsEs is a LanguageCode enum value + LanguageCodeEsEs = "es-ES" + + // LanguageCodeEsUs is a LanguageCode enum value + LanguageCodeEsUs = "es-US" + + // LanguageCodeFrCa is a LanguageCode enum value + LanguageCodeFrCa = "fr-CA" + + // LanguageCodeFrFr is a LanguageCode enum value + LanguageCodeFrFr = "fr-FR" + + // LanguageCodeIsIs is a LanguageCode enum value + LanguageCodeIsIs = "is-IS" + + // LanguageCodeItIt is a LanguageCode enum value + LanguageCodeItIt = "it-IT" + + // LanguageCodeJaJp is a LanguageCode enum value + LanguageCodeJaJp = "ja-JP" + + // LanguageCodeNbNo is a LanguageCode enum value + LanguageCodeNbNo = "nb-NO" + + // LanguageCodeNlNl is a LanguageCode enum value + LanguageCodeNlNl = "nl-NL" + + // LanguageCodePlPl is a LanguageCode enum value + LanguageCodePlPl = "pl-PL" + + // LanguageCodePtBr is a LanguageCode enum value + LanguageCodePtBr = "pt-BR" + + // LanguageCodePtPt is a LanguageCode enum value + LanguageCodePtPt = "pt-PT" + + // LanguageCodeRoRo is a LanguageCode enum value + LanguageCodeRoRo = "ro-RO" + + // LanguageCodeRuRu is a LanguageCode enum value + LanguageCodeRuRu = "ru-RU" + + // LanguageCodeSvSe is a LanguageCode enum value + LanguageCodeSvSe = "sv-SE" + + // LanguageCodeTrTr is a LanguageCode enum value + LanguageCodeTrTr = "tr-TR" +) + +const ( + // OutputFormatMp3 is a OutputFormat enum value + OutputFormatMp3 = "mp3" + + // OutputFormatOggVorbis is a OutputFormat enum value + OutputFormatOggVorbis = "ogg_vorbis" + + // OutputFormatPcm is a OutputFormat enum value + OutputFormatPcm = "pcm" +) + +const ( + // TextTypeSsml is a TextType enum value + TextTypeSsml = "ssml" + + // TextTypeText is a TextType enum value + TextTypeText = "text" +) + +const ( + // VoiceIdGeraint is a VoiceId enum value + VoiceIdGeraint = "Geraint" + + // VoiceIdGwyneth is a VoiceId enum value + VoiceIdGwyneth = "Gwyneth" + + // VoiceIdMads is a VoiceId enum value + VoiceIdMads = "Mads" + + // VoiceIdNaja is a VoiceId enum value + VoiceIdNaja = "Naja" + + // VoiceIdHans is a VoiceId enum value + VoiceIdHans = "Hans" + + // VoiceIdMarlene is a VoiceId enum value + VoiceIdMarlene = "Marlene" + + // VoiceIdNicole is a VoiceId enum value + VoiceIdNicole = "Nicole" + + // VoiceIdRussell is a VoiceId enum value + VoiceIdRussell = "Russell" + + // VoiceIdAmy is a VoiceId enum value + VoiceIdAmy = "Amy" + + // VoiceIdBrian is a VoiceId enum value + VoiceIdBrian = "Brian" + + // VoiceIdEmma is a VoiceId enum value + VoiceIdEmma = "Emma" + + // VoiceIdRaveena is a VoiceId enum value + VoiceIdRaveena = "Raveena" + + // VoiceIdIvy is a VoiceId enum value + VoiceIdIvy = "Ivy" + + // VoiceIdJoanna is a VoiceId enum value + VoiceIdJoanna = "Joanna" + + // VoiceIdJoey is a VoiceId enum value + VoiceIdJoey = "Joey" + + // VoiceIdJustin is a VoiceId enum value + VoiceIdJustin = "Justin" + + // VoiceIdKendra is a VoiceId enum value + VoiceIdKendra = "Kendra" + + // VoiceIdKimberly is a VoiceId enum value + VoiceIdKimberly = "Kimberly" + + // VoiceIdSalli is a VoiceId enum value + VoiceIdSalli = "Salli" + + // VoiceIdConchita is a VoiceId enum value + VoiceIdConchita = "Conchita" + + // VoiceIdEnrique is a VoiceId enum value + VoiceIdEnrique = "Enrique" + + // VoiceIdMiguel is a VoiceId enum value + VoiceIdMiguel = "Miguel" + + // VoiceIdPenelope is a VoiceId enum value + VoiceIdPenelope = "Penelope" + + // VoiceIdChantal is a VoiceId enum value + VoiceIdChantal = "Chantal" + + // VoiceIdCeline is a VoiceId enum value + VoiceIdCeline = "Celine" + + // VoiceIdMathieu is a VoiceId enum value + VoiceIdMathieu = "Mathieu" + + // VoiceIdDora is a VoiceId enum value + VoiceIdDora = "Dora" + + // VoiceIdKarl is a VoiceId enum value + VoiceIdKarl = "Karl" + + // VoiceIdCarla is a VoiceId enum value + VoiceIdCarla = "Carla" + + // VoiceIdGiorgio is a VoiceId enum value + VoiceIdGiorgio = "Giorgio" + + // VoiceIdMizuki is a VoiceId enum value + VoiceIdMizuki = "Mizuki" + + // VoiceIdLiv is a VoiceId enum value + VoiceIdLiv = "Liv" + + // VoiceIdLotte is a VoiceId enum value + VoiceIdLotte = "Lotte" + + // VoiceIdRuben is a VoiceId enum value + VoiceIdRuben = "Ruben" + + // VoiceIdEwa is a VoiceId enum value + VoiceIdEwa = "Ewa" + + // VoiceIdJacek is a VoiceId enum value + VoiceIdJacek = "Jacek" + + // VoiceIdJan is a VoiceId enum value + VoiceIdJan = "Jan" + + // VoiceIdMaja is a VoiceId enum value + VoiceIdMaja = "Maja" + + // VoiceIdRicardo is a VoiceId enum value + VoiceIdRicardo = "Ricardo" + + // VoiceIdVitoria is a VoiceId enum value + VoiceIdVitoria = "Vitoria" + + // VoiceIdCristiano is a VoiceId enum value + VoiceIdCristiano = "Cristiano" + + // VoiceIdInes is a VoiceId enum value + VoiceIdInes = "Ines" + + // VoiceIdCarmen is a VoiceId enum value + VoiceIdCarmen = "Carmen" + + // VoiceIdMaxim is a VoiceId enum value + VoiceIdMaxim = "Maxim" + + // VoiceIdTatyana is a VoiceId enum value + VoiceIdTatyana = "Tatyana" + + // VoiceIdAstrid is a VoiceId enum value + VoiceIdAstrid = "Astrid" + + // VoiceIdFiliz is a VoiceId enum value + VoiceIdFiliz = "Filiz" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/polly/customizations.go b/vendor/github.com/aws/aws-sdk-go/service/polly/customizations.go new file mode 100644 index 000000000..a5166ce6e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/polly/customizations.go @@ -0,0 +1,24 @@ +package polly + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol/rest" +) + +func init() { + initRequest = func(r *request.Request) { + if r.Operation.Name == opSynthesizeSpeech { + r.Operation.BeforePresignFn = restGETPresignStrategy + } + } +} + +// restGETPresignStrategy will prepare the request from a POST to a GET request. +// Enabling the presigner to sign the request as a GET. +func restGETPresignStrategy(r *request.Request) error { + r.Handlers.Build.Clear() + r.Handlers.Build.PushBack(rest.BuildAsGET) + r.Operation.HTTPMethod = "GET" + r.HTTPRequest.Method = "GET" + return nil +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/polly/customizations_test.go b/vendor/github.com/aws/aws-sdk-go/service/polly/customizations_test.go new file mode 100644 index 000000000..f26d4684f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/polly/customizations_test.go @@ -0,0 +1,32 @@ +package polly + +import ( + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/awstesting/unit" + + "github.com/stretchr/testify/assert" +) + +func TestRestGETStrategy(t *testing.T) { + svc := New(unit.Session, &aws.Config{Region: aws.String("us-west-2")}) + r, _ := svc.SynthesizeSpeechRequest(nil) + err := restGETPresignStrategy(r) + assert.NoError(t, err) + assert.Equal(t, "GET", r.HTTPRequest.Method) + assert.NotEqual(t, nil, r.Operation.BeforePresignFn) +} + +func TestPresign(t *testing.T) { + svc := New(unit.Session, &aws.Config{Region: aws.String("us-west-2")}) + r, _ := svc.SynthesizeSpeechRequest(&SynthesizeSpeechInput{ + Text: aws.String("Moo"), + OutputFormat: aws.String("mp3"), + VoiceId: aws.String("Foo"), + }) + url, err := r.Presign(time.Second) + assert.NoError(t, err) + assert.Regexp(t, `^https://polly.us-west-2.amazonaws.com/v1/speech\?.*?OutputFormat=mp3.*?Text=Moo.*?VoiceId=Foo.*`, url) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/polly/errors.go b/vendor/github.com/aws/aws-sdk-go/service/polly/errors.go new file mode 100644 index 000000000..bfd11c059 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/polly/errors.go @@ -0,0 +1,90 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package polly + +const ( + + // ErrCodeInvalidLexiconException for service response error code + // "InvalidLexiconException". + // + // Amazon Polly can't find the specified lexicon. Verify that the lexicon's + // name is spelled correctly, and then try again. + ErrCodeInvalidLexiconException = "InvalidLexiconException" + + // ErrCodeInvalidNextTokenException for service response error code + // "InvalidNextTokenException". + // + // The NextToken is invalid. Verify that it's spelled correctly, and then try + // again. + ErrCodeInvalidNextTokenException = "InvalidNextTokenException" + + // ErrCodeInvalidSampleRateException for service response error code + // "InvalidSampleRateException". + // + // The specified sample rate is not valid. + ErrCodeInvalidSampleRateException = "InvalidSampleRateException" + + // ErrCodeInvalidSsmlException for service response error code + // "InvalidSsmlException". + // + // The SSML you provided is invalid. Verify the SSML syntax, spelling of tags + // and values, and then try again. + ErrCodeInvalidSsmlException = "InvalidSsmlException" + + // ErrCodeLexiconNotFoundException for service response error code + // "LexiconNotFoundException". + // + // Amazon Polly can't find the specified lexicon. This could be caused by a + // lexicon that is missing, its name is misspelled or specifying a lexicon that + // is in a different region. + // + // Verify that the lexicon exists, is in the region (see ListLexicons) and that + // you spelled its name is spelled correctly. Then try again. + ErrCodeLexiconNotFoundException = "LexiconNotFoundException" + + // ErrCodeLexiconSizeExceededException for service response error code + // "LexiconSizeExceededException". + // + // The maximum size of the specified lexicon would be exceeded by this operation. + ErrCodeLexiconSizeExceededException = "LexiconSizeExceededException" + + // ErrCodeMaxLexemeLengthExceededException for service response error code + // "MaxLexemeLengthExceededException". + // + // The maximum size of the lexeme would be exceeded by this operation. + ErrCodeMaxLexemeLengthExceededException = "MaxLexemeLengthExceededException" + + // ErrCodeMaxLexiconsNumberExceededException for service response error code + // "MaxLexiconsNumberExceededException". + // + // The maximum number of lexicons would be exceeded by this operation. + ErrCodeMaxLexiconsNumberExceededException = "MaxLexiconsNumberExceededException" + + // ErrCodeServiceFailureException for service response error code + // "ServiceFailureException". + // + // An unknown condition has caused a service failure. + ErrCodeServiceFailureException = "ServiceFailureException" + + // ErrCodeTextLengthExceededException for service response error code + // "TextLengthExceededException". + // + // The value of the "Text" parameter is longer than the accepted limits. The + // limit for input text is a maximum of 3000 characters total, of which no more + // than 1500 can be billed characters. SSML tags are not counted as billed characters. + ErrCodeTextLengthExceededException = "TextLengthExceededException" + + // ErrCodeUnsupportedPlsAlphabetException for service response error code + // "UnsupportedPlsAlphabetException". + // + // The alphabet specified by the lexicon is not a supported alphabet. Valid + // values are x-sampa and ipa. + ErrCodeUnsupportedPlsAlphabetException = "UnsupportedPlsAlphabetException" + + // ErrCodeUnsupportedPlsLanguageException for service response error code + // "UnsupportedPlsLanguageException". + // + // The language specified in the lexicon is unsupported. For a list of supported + // languages, see Lexicon Attributes (http://docs.aws.amazon.com/polly/latest/dg/API_LexiconAttributes.html). + ErrCodeUnsupportedPlsLanguageException = "UnsupportedPlsLanguageException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/polly/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/polly/examples_test.go new file mode 100644 index 000000000..a340561f1 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/polly/examples_test.go @@ -0,0 +1,152 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package polly_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/polly" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExamplePolly_DeleteLexicon() { + sess := session.Must(session.NewSession()) + + svc := polly.New(sess) + + params := &polly.DeleteLexiconInput{ + Name: aws.String("LexiconName"), // Required + } + resp, err := svc.DeleteLexicon(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePolly_DescribeVoices() { + sess := session.Must(session.NewSession()) + + svc := polly.New(sess) + + params := &polly.DescribeVoicesInput{ + LanguageCode: aws.String("LanguageCode"), + NextToken: aws.String("NextToken"), + } + resp, err := svc.DescribeVoices(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePolly_GetLexicon() { + sess := session.Must(session.NewSession()) + + svc := polly.New(sess) + + params := &polly.GetLexiconInput{ + Name: aws.String("LexiconName"), // Required + } + resp, err := svc.GetLexicon(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePolly_ListLexicons() { + sess := session.Must(session.NewSession()) + + svc := polly.New(sess) + + params := &polly.ListLexiconsInput{ + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListLexicons(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePolly_PutLexicon() { + sess := session.Must(session.NewSession()) + + svc := polly.New(sess) + + params := &polly.PutLexiconInput{ + Content: aws.String("LexiconContent"), // Required + Name: aws.String("LexiconName"), // Required + } + resp, err := svc.PutLexicon(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExamplePolly_SynthesizeSpeech() { + sess := session.Must(session.NewSession()) + + svc := polly.New(sess) + + params := &polly.SynthesizeSpeechInput{ + OutputFormat: aws.String("OutputFormat"), // Required + Text: aws.String("Text"), // Required + VoiceId: aws.String("VoiceId"), // Required + LexiconNames: []*string{ + aws.String("LexiconName"), // Required + // More values... + }, + SampleRate: aws.String("SampleRate"), + TextType: aws.String("TextType"), + } + resp, err := svc.SynthesizeSpeech(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/polly/pollyiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/polly/pollyiface/interface.go new file mode 100644 index 000000000..5cff37104 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/polly/pollyiface/interface.go @@ -0,0 +1,87 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package pollyiface provides an interface to enable mocking the Amazon Polly service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package pollyiface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/polly" +) + +// PollyAPI provides an interface to enable mocking the +// polly.Polly service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Amazon Polly. +// func myFunc(svc pollyiface.PollyAPI) bool { +// // Make svc.DeleteLexicon request +// } +// +// func main() { +// sess := session.New() +// svc := polly.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockPollyClient struct { +// pollyiface.PollyAPI +// } +// func (m *mockPollyClient) DeleteLexicon(input *polly.DeleteLexiconInput) (*polly.DeleteLexiconOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockPollyClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type PollyAPI interface { + DeleteLexiconRequest(*polly.DeleteLexiconInput) (*request.Request, *polly.DeleteLexiconOutput) + + DeleteLexicon(*polly.DeleteLexiconInput) (*polly.DeleteLexiconOutput, error) + + DescribeVoicesRequest(*polly.DescribeVoicesInput) (*request.Request, *polly.DescribeVoicesOutput) + + DescribeVoices(*polly.DescribeVoicesInput) (*polly.DescribeVoicesOutput, error) + + GetLexiconRequest(*polly.GetLexiconInput) (*request.Request, *polly.GetLexiconOutput) + + GetLexicon(*polly.GetLexiconInput) (*polly.GetLexiconOutput, error) + + ListLexiconsRequest(*polly.ListLexiconsInput) (*request.Request, *polly.ListLexiconsOutput) + + ListLexicons(*polly.ListLexiconsInput) (*polly.ListLexiconsOutput, error) + + PutLexiconRequest(*polly.PutLexiconInput) (*request.Request, *polly.PutLexiconOutput) + + PutLexicon(*polly.PutLexiconInput) (*polly.PutLexiconOutput, error) + + SynthesizeSpeechRequest(*polly.SynthesizeSpeechInput) (*request.Request, *polly.SynthesizeSpeechOutput) + + SynthesizeSpeech(*polly.SynthesizeSpeechInput) (*polly.SynthesizeSpeechOutput, error) +} + +var _ PollyAPI = (*polly.Polly)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/polly/service.go b/vendor/github.com/aws/aws-sdk-go/service/polly/service.go new file mode 100644 index 000000000..d1fb652ca --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/polly/service.go @@ -0,0 +1,97 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package polly + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +// Amazon Polly is a web service that makes it easy to synthesize speech from +// text. +// +// The Amazon Polly service provides API operations for synthesizing high-quality +// speech from plain text and Speech Synthesis Markup Language (SSML), along +// with managing pronunciations lexicons that enable you to get the best results +// for your application domain. +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10 +type Polly struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "polly" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the Polly client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a Polly client from just a session. +// svc := polly.New(mySession) +// +// // Create a Polly client with additional configuration +// svc := polly.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *Polly { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Polly { + svc := &Polly{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2016-06-10", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a Polly operation and runs any +// custom request initialization. +func (c *Polly) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/api.go b/vendor/github.com/aws/aws-sdk-go/service/rds/api.go index 4e9196cc9..48b6d2c8b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/rds/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/api.go @@ -39,6 +39,7 @@ const opAddRoleToDBCluster = "AddRoleToDBCluster" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddRoleToDBCluster func (c *RDS) AddRoleToDBClusterRequest(input *AddRoleToDBClusterInput) (req *request.Request, output *AddRoleToDBClusterOutput) { op := &request.Operation{ Name: opAddRoleToDBCluster, @@ -50,11 +51,10 @@ func (c *RDS) AddRoleToDBClusterRequest(input *AddRoleToDBClusterInput) (req *re input = &AddRoleToDBClusterInput{} } + output = &AddRoleToDBClusterOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AddRoleToDBClusterOutput{} - req.Data = output return } @@ -72,20 +72,21 @@ func (c *RDS) AddRoleToDBClusterRequest(input *AddRoleToDBClusterInput) (req *re // API operation AddRoleToDBCluster for usage and error information. // // Returned Error Codes: -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // -// * DBClusterRoleAlreadyExists +// * ErrCodeDBClusterRoleAlreadyExistsFault "DBClusterRoleAlreadyExists" // The specified IAM role Amazon Resource Name (ARN) is already associated with // the specified DB cluster. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // -// * DBClusterRoleQuotaExceeded +// * ErrCodeDBClusterRoleQuotaExceededFault "DBClusterRoleQuotaExceeded" // You have exceeded the maximum number of IAM roles that can be associated // with the specified DB cluster. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddRoleToDBCluster func (c *RDS) AddRoleToDBCluster(input *AddRoleToDBClusterInput) (*AddRoleToDBClusterOutput, error) { req, out := c.AddRoleToDBClusterRequest(input) err := req.Send() @@ -118,6 +119,7 @@ const opAddSourceIdentifierToSubscription = "AddSourceIdentifierToSubscription" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddSourceIdentifierToSubscription func (c *RDS) AddSourceIdentifierToSubscriptionRequest(input *AddSourceIdentifierToSubscriptionInput) (req *request.Request, output *AddSourceIdentifierToSubscriptionOutput) { op := &request.Operation{ Name: opAddSourceIdentifierToSubscription, @@ -129,9 +131,8 @@ func (c *RDS) AddSourceIdentifierToSubscriptionRequest(input *AddSourceIdentifie input = &AddSourceIdentifierToSubscriptionInput{} } - req = c.newRequest(op, input, output) output = &AddSourceIdentifierToSubscriptionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -147,12 +148,13 @@ func (c *RDS) AddSourceIdentifierToSubscriptionRequest(input *AddSourceIdentifie // API operation AddSourceIdentifierToSubscription for usage and error information. // // Returned Error Codes: -// * SubscriptionNotFound +// * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound" // The subscription name does not exist. // -// * SourceNotFound +// * ErrCodeSourceNotFoundFault "SourceNotFound" // The requested source could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddSourceIdentifierToSubscription func (c *RDS) AddSourceIdentifierToSubscription(input *AddSourceIdentifierToSubscriptionInput) (*AddSourceIdentifierToSubscriptionOutput, error) { req, out := c.AddSourceIdentifierToSubscriptionRequest(input) err := req.Send() @@ -185,6 +187,7 @@ const opAddTagsToResource = "AddTagsToResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddTagsToResource func (c *RDS) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) { op := &request.Operation{ Name: opAddTagsToResource, @@ -196,11 +199,10 @@ func (c *RDS) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *requ input = &AddTagsToResourceInput{} } + output = &AddTagsToResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AddTagsToResourceOutput{} - req.Data = output return } @@ -210,8 +212,8 @@ func (c *RDS) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *requ // with cost allocation reporting to track cost associated with Amazon RDS resources, // or used in a Condition statement in an IAM policy for Amazon RDS. // -// For an overview on tagging Amazon RDS resources, see Tagging Amazon RDS -// Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Tagging.html). +// For an overview on tagging Amazon RDS resources, see Tagging Amazon RDS Resources +// (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Tagging.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -221,12 +223,16 @@ func (c *RDS) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *requ // API operation AddTagsToResource for usage and error information. // // Returned Error Codes: -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // -// * DBSnapshotNotFound +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" // DBSnapshotIdentifier does not refer to an existing DB snapshot. // +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" +// DBClusterIdentifier does not refer to an existing DB cluster. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddTagsToResource func (c *RDS) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -259,6 +265,7 @@ const opApplyPendingMaintenanceAction = "ApplyPendingMaintenanceAction" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ApplyPendingMaintenanceAction func (c *RDS) ApplyPendingMaintenanceActionRequest(input *ApplyPendingMaintenanceActionInput) (req *request.Request, output *ApplyPendingMaintenanceActionOutput) { op := &request.Operation{ Name: opApplyPendingMaintenanceAction, @@ -270,9 +277,8 @@ func (c *RDS) ApplyPendingMaintenanceActionRequest(input *ApplyPendingMaintenanc input = &ApplyPendingMaintenanceActionInput{} } - req = c.newRequest(op, input, output) output = &ApplyPendingMaintenanceActionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -289,9 +295,10 @@ func (c *RDS) ApplyPendingMaintenanceActionRequest(input *ApplyPendingMaintenanc // API operation ApplyPendingMaintenanceAction for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The specified resource ID was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ApplyPendingMaintenanceAction func (c *RDS) ApplyPendingMaintenanceAction(input *ApplyPendingMaintenanceActionInput) (*ApplyPendingMaintenanceActionOutput, error) { req, out := c.ApplyPendingMaintenanceActionRequest(input) err := req.Send() @@ -324,6 +331,7 @@ const opAuthorizeDBSecurityGroupIngress = "AuthorizeDBSecurityGroupIngress" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AuthorizeDBSecurityGroupIngress func (c *RDS) AuthorizeDBSecurityGroupIngressRequest(input *AuthorizeDBSecurityGroupIngressInput) (req *request.Request, output *AuthorizeDBSecurityGroupIngressOutput) { op := &request.Operation{ Name: opAuthorizeDBSecurityGroupIngress, @@ -335,9 +343,8 @@ func (c *RDS) AuthorizeDBSecurityGroupIngressRequest(input *AuthorizeDBSecurityG input = &AuthorizeDBSecurityGroupIngressInput{} } - req = c.newRequest(op, input, output) output = &AuthorizeDBSecurityGroupIngressOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -351,11 +358,11 @@ func (c *RDS) AuthorizeDBSecurityGroupIngressRequest(input *AuthorizeDBSecurityG // EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName // or EC2SecurityGroupId for non-VPC). // -// You cannot authorize ingress from an EC2 security group in one region to +// You cannot authorize ingress from an EC2 security group in one region to // an Amazon RDS DB instance in another. You cannot authorize ingress from a // VPC security group in one VPC to an Amazon RDS DB instance in another. // -// For an overview of CIDR ranges, go to the Wikipedia Tutorial (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). +// For an overview of CIDR ranges, go to the Wikipedia Tutorial (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -365,19 +372,20 @@ func (c *RDS) AuthorizeDBSecurityGroupIngressRequest(input *AuthorizeDBSecurityG // API operation AuthorizeDBSecurityGroupIngress for usage and error information. // // Returned Error Codes: -// * DBSecurityGroupNotFound +// * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound" // DBSecurityGroupName does not refer to an existing DB security group. // -// * InvalidDBSecurityGroupState +// * ErrCodeInvalidDBSecurityGroupStateFault "InvalidDBSecurityGroupState" // The state of the DB security group does not allow deletion. // -// * AuthorizationAlreadyExists +// * ErrCodeAuthorizationAlreadyExistsFault "AuthorizationAlreadyExists" // The specified CIDRIP or EC2 security group is already authorized for the // specified DB security group. // -// * AuthorizationQuotaExceeded +// * ErrCodeAuthorizationQuotaExceededFault "AuthorizationQuotaExceeded" // DB security group authorization quota has been reached. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AuthorizeDBSecurityGroupIngress func (c *RDS) AuthorizeDBSecurityGroupIngress(input *AuthorizeDBSecurityGroupIngressInput) (*AuthorizeDBSecurityGroupIngressOutput, error) { req, out := c.AuthorizeDBSecurityGroupIngressRequest(input) err := req.Send() @@ -410,6 +418,7 @@ const opCopyDBClusterParameterGroup = "CopyDBClusterParameterGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBClusterParameterGroup func (c *RDS) CopyDBClusterParameterGroupRequest(input *CopyDBClusterParameterGroupInput) (req *request.Request, output *CopyDBClusterParameterGroupOutput) { op := &request.Operation{ Name: opCopyDBClusterParameterGroup, @@ -421,9 +430,8 @@ func (c *RDS) CopyDBClusterParameterGroupRequest(input *CopyDBClusterParameterGr input = &CopyDBClusterParameterGroupInput{} } - req = c.newRequest(op, input, output) output = &CopyDBClusterParameterGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -439,16 +447,17 @@ func (c *RDS) CopyDBClusterParameterGroupRequest(input *CopyDBClusterParameterGr // API operation CopyDBClusterParameterGroup for usage and error information. // // Returned Error Codes: -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // -// * DBParameterGroupQuotaExceeded +// * ErrCodeDBParameterGroupQuotaExceededFault "DBParameterGroupQuotaExceeded" // Request would result in user exceeding the allowed number of DB parameter // groups. // -// * DBParameterGroupAlreadyExists +// * ErrCodeDBParameterGroupAlreadyExistsFault "DBParameterGroupAlreadyExists" // A DB parameter group with the same name exists. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBClusterParameterGroup func (c *RDS) CopyDBClusterParameterGroup(input *CopyDBClusterParameterGroupInput) (*CopyDBClusterParameterGroupOutput, error) { req, out := c.CopyDBClusterParameterGroupRequest(input) err := req.Send() @@ -481,6 +490,7 @@ const opCopyDBClusterSnapshot = "CopyDBClusterSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBClusterSnapshot func (c *RDS) CopyDBClusterSnapshotRequest(input *CopyDBClusterSnapshotInput) (req *request.Request, output *CopyDBClusterSnapshotOutput) { op := &request.Operation{ Name: opCopyDBClusterSnapshot, @@ -492,16 +502,74 @@ func (c *RDS) CopyDBClusterSnapshotRequest(input *CopyDBClusterSnapshotInput) (r input = &CopyDBClusterSnapshotInput{} } - req = c.newRequest(op, input, output) output = &CopyDBClusterSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // CopyDBClusterSnapshot API operation for Amazon Relational Database Service. // -// Creates a snapshot of a DB cluster. For more information on Amazon Aurora, -// see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) +// Copies a snapshot of a DB cluster. +// +// To copy a DB cluster snapshot from a shared manual DB cluster snapshot, SourceDBClusterSnapshotIdentifier +// must be the Amazon Resource Name (ARN) of the shared DB cluster snapshot. +// +// You can copy an encrypted DB cluster snapshot from another AWS region. In +// that case, the region where you call the CopyDBClusterSnapshot action is +// the destination region for the encrypted DB cluster snapshot to be copied +// to. To copy an encrypted DB cluster snapshot from another region, you must +// provide the following values: +// +// * KmsKeyId - The AWS Key Management System (KMS) key identifier for the +// key to use to encrypt the copy of the DB cluster snapshot in the destination +// region. +// +// * PreSignedUrl - A URL that contains a Signature Version 4 signed request +// for the CopyDBClusterSnapshot action to be called in the source region +// where the DB cluster snapshot will be copied from. The pre-signed URL +// must be a valid request for the CopyDBClusterSnapshot API action that +// can be executed in the source region that contains the encrypted DB cluster +// snapshot to be copied. +// +// The pre-signed URL request must contain the following parameter values: +// +// KmsKeyId - The KMS key identifier for the key to use to encrypt the copy +// of the DB cluster snapshot in the destination region. This is the same +// identifier for both the CopyDBClusterSnapshot action that is called in +// the destination region, and the action contained in the pre-signed URL. +// +// DestinationRegion - The name of the region that the DB cluster snapshot will +// be created in. +// +// SourceDBClusterSnapshotIdentifier - The DB cluster snapshot identifier for +// the encrypted DB cluster snapshot to be copied. This identifier must be +// in the Amazon Resource Name (ARN) format for the source region. For example, +// if you are copying an encrypted DB cluster snapshot from the us-west-2 +// region, then your SourceDBClusterSnapshotIdentifier looks like the following +// example: arn:aws:rds:us-west-2:123456789012:cluster-snapshot:aurora-cluster1-snapshot-20161115. +// +// To learn how to generate a Signature Version 4 signed request, see Authenticating +// Requests: Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) +// and Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// +// * TargetDBClusterSnapshotIdentifier - The identifier for the new copy +// of the DB cluster snapshot in the destination region. +// +// * SourceDBClusterSnapshotIdentifier - The DB cluster snapshot identifier +// for the encrypted DB cluster snapshot to be copied. This identifier must +// be in the ARN format for the source region and is the same value as the +// SourceDBClusterSnapshotIdentifier in the pre-signed URL. +// +// To cancel the copy operation once it is in progress, delete the target DB +// cluster snapshot identified by TargetDBClusterSnapshotIdentifier while that +// DB cluster snapshot is in "copying" status. +// +// For more information on copying encrypted DB cluster snapshots from one region +// to another, see Copying a DB Cluster Snapshot in the Same Account, Either +// in the Same Region or Across Regions (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CopySnapshot.html#USER_CopyDBClusterSnapshot.CrossRegion) +// in the Amazon RDS User Guide. +// +// For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) // in the Amazon RDS User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -512,24 +580,25 @@ func (c *RDS) CopyDBClusterSnapshotRequest(input *CopyDBClusterSnapshotInput) (r // API operation CopyDBClusterSnapshot for usage and error information. // // Returned Error Codes: -// * DBClusterSnapshotAlreadyExistsFault +// * ErrCodeDBClusterSnapshotAlreadyExistsFault "DBClusterSnapshotAlreadyExistsFault" // User already has a DB cluster snapshot with the given identifier. // -// * DBClusterSnapshotNotFoundFault +// * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault" // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // -// * InvalidDBClusterSnapshotStateFault +// * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault" // The supplied value is not a valid DB cluster snapshot state. // -// * SnapshotQuotaExceeded +// * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded" // Request would result in user exceeding the allowed number of DB snapshots. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // Error accessing KMS key. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBClusterSnapshot func (c *RDS) CopyDBClusterSnapshot(input *CopyDBClusterSnapshotInput) (*CopyDBClusterSnapshotOutput, error) { req, out := c.CopyDBClusterSnapshotRequest(input) err := req.Send() @@ -562,6 +631,7 @@ const opCopyDBParameterGroup = "CopyDBParameterGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBParameterGroup func (c *RDS) CopyDBParameterGroupRequest(input *CopyDBParameterGroupInput) (req *request.Request, output *CopyDBParameterGroupOutput) { op := &request.Operation{ Name: opCopyDBParameterGroup, @@ -573,9 +643,8 @@ func (c *RDS) CopyDBParameterGroupRequest(input *CopyDBParameterGroupInput) (req input = &CopyDBParameterGroupInput{} } - req = c.newRequest(op, input, output) output = &CopyDBParameterGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -591,16 +660,17 @@ func (c *RDS) CopyDBParameterGroupRequest(input *CopyDBParameterGroupInput) (req // API operation CopyDBParameterGroup for usage and error information. // // Returned Error Codes: -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // -// * DBParameterGroupAlreadyExists +// * ErrCodeDBParameterGroupAlreadyExistsFault "DBParameterGroupAlreadyExists" // A DB parameter group with the same name exists. // -// * DBParameterGroupQuotaExceeded +// * ErrCodeDBParameterGroupQuotaExceededFault "DBParameterGroupQuotaExceeded" // Request would result in user exceeding the allowed number of DB parameter // groups. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBParameterGroup func (c *RDS) CopyDBParameterGroup(input *CopyDBParameterGroupInput) (*CopyDBParameterGroupOutput, error) { req, out := c.CopyDBParameterGroupRequest(input) err := req.Send() @@ -633,6 +703,7 @@ const opCopyDBSnapshot = "CopyDBSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBSnapshot func (c *RDS) CopyDBSnapshotRequest(input *CopyDBSnapshotInput) (req *request.Request, output *CopyDBSnapshotOutput) { op := &request.Operation{ Name: opCopyDBSnapshot, @@ -644,9 +715,8 @@ func (c *RDS) CopyDBSnapshotRequest(input *CopyDBSnapshotInput) (req *request.Re input = &CopyDBSnapshotInput{} } - req = c.newRequest(op, input, output) output = &CopyDBSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -655,8 +725,62 @@ func (c *RDS) CopyDBSnapshotRequest(input *CopyDBSnapshotInput) (req *request.Re // Copies the specified DB snapshot. The source DB snapshot must be in the "available" // state. // -// If you are copying from a shared manual DB snapshot, the SourceDBSnapshotIdentifier -// must be the ARN of the shared DB snapshot. +// To copy a DB snapshot from a shared manual DB snapshot, SourceDBSnapshotIdentifier +// must be the Amazon Resource Name (ARN) of the shared DB snapshot. +// +// You can copy an encrypted DB snapshot from another AWS Region. In that case, +// the region where you call the CopyDBSnapshot action is the destination region +// for the encrypted DB snapshot to be copied to. To copy an encrypted DB snapshot +// from another region, you must provide the following values: +// +// * KmsKeyId - The AWS Key Management System (KMS) key identifier for the +// key to use to encrypt the copy of the DB snapshot in the destination region. +// +// * PreSignedUrl - A URL that contains a Signature Version 4 signed request +// for the CopyDBSnapshot action to be called in the source region where +// the DB snapshot will be copied from. The presigned URL must be a valid +// request for the CopyDBSnapshot API action that can be executed in the +// source region that contains the encrypted DB snapshot to be copied. +// +// The presigned URL request must contain the following parameter values: +// +// DestinationRegion - The AWS Region that the encrypted DB snapshot will be +// copied to. This region is the same one where the CopyDBSnapshot action +// is called that contains this presigned URL. +// +// For example, if you copy an encrypted DB snapshot from the us-west-2 region +// to the us-east-1 region, then you will call the CopyDBSnapshot action +// in the us-east-1 region and provide a presigned URL that contains a call +// to the CopyDBSnapshot action in the us-west-2 region. For this example, +// the DestinationRegion in the presigned URL must be set to the us-east-1 +// region. +// +// KmsKeyId - The KMS key identifier for the key to use to encrypt the copy +// of the DB snapshot in the destination region. This identifier is the same +// for both the CopyDBSnapshot action that is called in the destination region, +// and the action contained in the presigned URL. +// +// SourceDBSnapshotIdentifier - The DB snapshot identifier for the encrypted +// snapshot to be copied. This identifier must be in the Amazon Resource +// Name (ARN) format for the source region. For example, if you copy an encrypted +// DB snapshot from the us-west-2 region, then your SourceDBSnapshotIdentifier +// looks like this example: arn:aws:rds:us-west-2:123456789012:snapshot:mysql-instance1-snapshot-20161115. +// +// To learn how to generate a Signature Version 4 signed request, see Authenticating +// Requests: Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) +// and Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// +// * TargetDBSnapshotIdentifier - The identifier for the new copy of the +// DB snapshot in the destination region. +// +// * SourceDBSnapshotIdentifier - The DB snapshot identifier for the encrypted +// snapshot to be copied. This identifier must be in the ARN format for the +// source region and is the same value as the SourceDBSnapshotIdentifier +// in the presigned URL. +// +// For more information on copying encrypted snapshots from one region to another, +// see Copying an Encrypted DB Snapshot to Another Region (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CopySnapshot.html#USER_CopySnapshot.Encrypted.CrossRegion) +// in the Amazon RDS User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -666,21 +790,22 @@ func (c *RDS) CopyDBSnapshotRequest(input *CopyDBSnapshotInput) (req *request.Re // API operation CopyDBSnapshot for usage and error information. // // Returned Error Codes: -// * DBSnapshotAlreadyExists +// * ErrCodeDBSnapshotAlreadyExistsFault "DBSnapshotAlreadyExists" // DBSnapshotIdentifier is already used by an existing snapshot. // -// * DBSnapshotNotFound +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" // DBSnapshotIdentifier does not refer to an existing DB snapshot. // -// * InvalidDBSnapshotState +// * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState" // The state of the DB snapshot does not allow deletion. // -// * SnapshotQuotaExceeded +// * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded" // Request would result in user exceeding the allowed number of DB snapshots. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // Error accessing KMS key. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBSnapshot func (c *RDS) CopyDBSnapshot(input *CopyDBSnapshotInput) (*CopyDBSnapshotOutput, error) { req, out := c.CopyDBSnapshotRequest(input) err := req.Send() @@ -713,6 +838,7 @@ const opCopyOptionGroup = "CopyOptionGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyOptionGroup func (c *RDS) CopyOptionGroupRequest(input *CopyOptionGroupInput) (req *request.Request, output *CopyOptionGroupOutput) { op := &request.Operation{ Name: opCopyOptionGroup, @@ -724,9 +850,8 @@ func (c *RDS) CopyOptionGroupRequest(input *CopyOptionGroupInput) (req *request. input = &CopyOptionGroupInput{} } - req = c.newRequest(op, input, output) output = &CopyOptionGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -742,15 +867,16 @@ func (c *RDS) CopyOptionGroupRequest(input *CopyOptionGroupInput) (req *request. // API operation CopyOptionGroup for usage and error information. // // Returned Error Codes: -// * OptionGroupAlreadyExistsFault +// * ErrCodeOptionGroupAlreadyExistsFault "OptionGroupAlreadyExistsFault" // The option group you are trying to create already exists. // -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // -// * OptionGroupQuotaExceededFault +// * ErrCodeOptionGroupQuotaExceededFault "OptionGroupQuotaExceededFault" // The quota of 20 option groups was exceeded for this AWS account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyOptionGroup func (c *RDS) CopyOptionGroup(input *CopyOptionGroupInput) (*CopyOptionGroupOutput, error) { req, out := c.CopyOptionGroupRequest(input) err := req.Send() @@ -783,6 +909,7 @@ const opCreateDBCluster = "CreateDBCluster" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBCluster func (c *RDS) CreateDBClusterRequest(input *CreateDBClusterInput) (req *request.Request, output *CreateDBClusterOutput) { op := &request.Operation{ Name: opCreateDBCluster, @@ -794,9 +921,8 @@ func (c *RDS) CreateDBClusterRequest(input *CreateDBClusterInput) (req *request. input = &CreateDBClusterInput{} } - req = c.newRequest(op, input, output) output = &CreateDBClusterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -805,7 +931,9 @@ func (c *RDS) CreateDBClusterRequest(input *CreateDBClusterInput) (req *request. // Creates a new Amazon Aurora DB cluster. // // You can use the ReplicationSourceIdentifier parameter to create the DB cluster -// as a Read Replica of another DB cluster. +// as a Read Replica of another DB cluster or Amazon RDS MySQL DB instance. +// For cross-region replication where the DB cluster identified by ReplicationSourceIdentifier +// is encrypted, you must also specify the PreSignedUrl parameter. // // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) // in the Amazon RDS User Guide. @@ -818,49 +946,60 @@ func (c *RDS) CreateDBClusterRequest(input *CreateDBClusterInput) (req *request. // API operation CreateDBCluster for usage and error information. // // Returned Error Codes: -// * DBClusterAlreadyExistsFault +// * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault" // User already has a DB cluster with the given identifier. // -// * InsufficientStorageClusterCapacity +// * ErrCodeInsufficientStorageClusterCapacityFault "InsufficientStorageClusterCapacity" // There is insufficient storage available for the current action. You may be // able to resolve this error by updating your subnet group to use different // Availability Zones that have more storage available. // -// * DBClusterQuotaExceededFault +// * ErrCodeDBClusterQuotaExceededFault "DBClusterQuotaExceededFault" // User attempted to create a new DB cluster and the user has already reached // the maximum allowed DB cluster quota. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // DB subnet group does not cover all Availability Zones after it is created // because users' change. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // -// * InvalidDBSubnetGroupStateFault +// * ErrCodeInvalidDBSubnetGroupStateFault "InvalidDBSubnetGroupStateFault" // The DB subnet group cannot be deleted because it is in use. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // -// * DBClusterParameterGroupNotFound +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" +// The specified DB instance is not in the available state. +// +// * ErrCodeDBClusterParameterGroupNotFoundFault "DBClusterParameterGroupNotFound" // DBClusterParameterGroupName does not refer to an existing DB Cluster parameter // group. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // Error accessing KMS key. // -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" +// DBInstanceIdentifier does not refer to an existing DB instance. +// +// * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs" +// Subnets in the DB subnet group should cover at least two Availability Zones +// unless there is only one Availability Zone. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBCluster func (c *RDS) CreateDBCluster(input *CreateDBClusterInput) (*CreateDBClusterOutput, error) { req, out := c.CreateDBClusterRequest(input) err := req.Send() @@ -893,6 +1032,7 @@ const opCreateDBClusterParameterGroup = "CreateDBClusterParameterGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterParameterGroup func (c *RDS) CreateDBClusterParameterGroupRequest(input *CreateDBClusterParameterGroupInput) (req *request.Request, output *CreateDBClusterParameterGroupOutput) { op := &request.Operation{ Name: opCreateDBClusterParameterGroup, @@ -904,9 +1044,8 @@ func (c *RDS) CreateDBClusterParameterGroupRequest(input *CreateDBClusterParamet input = &CreateDBClusterParameterGroupInput{} } - req = c.newRequest(op, input, output) output = &CreateDBClusterParameterGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -917,7 +1056,7 @@ func (c *RDS) CreateDBClusterParameterGroupRequest(input *CreateDBClusterParamet // Parameters in a DB cluster parameter group apply to all of the instances // in a DB cluster. // -// A DB cluster parameter group is initially created with the default parameters +// A DB cluster parameter group is initially created with the default parameters // for the database engine used by instances in the DB cluster. To provide custom // values for any of the parameters, you must modify the group after creating // it using ModifyDBClusterParameterGroup. Once you've created a DB cluster @@ -926,19 +1065,19 @@ func (c *RDS) CreateDBClusterParameterGroupRequest(input *CreateDBClusterParamet // you need to reboot the DB instances in the DB cluster without failover for // the new DB cluster parameter group and associated settings to take effect. // -// After you create a DB cluster parameter group, you should wait at least -// 5 minutes before creating your first DB cluster that uses that DB cluster -// parameter group as the default parameter group. This allows Amazon RDS to -// fully complete the create action before the DB cluster parameter group is -// used as the default for a new DB cluster. This is especially important for -// parameters that are critical when creating the default database for a DB -// cluster, such as the character set for the default database defined by the -// character_set_database parameter. You can use the Parameter Groups option -// of the Amazon RDS console (https://console.aws.amazon.com/rds/) or the DescribeDBClusterParameters +// After you create a DB cluster parameter group, you should wait at least 5 +// minutes before creating your first DB cluster that uses that DB cluster parameter +// group as the default parameter group. This allows Amazon RDS to fully complete +// the create action before the DB cluster parameter group is used as the default +// for a new DB cluster. This is especially important for parameters that are +// critical when creating the default database for a DB cluster, such as the +// character set for the default database defined by the character_set_database +// parameter. You can use the Parameter Groups option of the Amazon RDS console +// (https://console.aws.amazon.com/rds/) or the DescribeDBClusterParameters // command to verify that your DB cluster parameter group has been created or // modified. // -// For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) +// For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) // in the Amazon RDS User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -949,13 +1088,14 @@ func (c *RDS) CreateDBClusterParameterGroupRequest(input *CreateDBClusterParamet // API operation CreateDBClusterParameterGroup for usage and error information. // // Returned Error Codes: -// * DBParameterGroupQuotaExceeded +// * ErrCodeDBParameterGroupQuotaExceededFault "DBParameterGroupQuotaExceeded" // Request would result in user exceeding the allowed number of DB parameter // groups. // -// * DBParameterGroupAlreadyExists +// * ErrCodeDBParameterGroupAlreadyExistsFault "DBParameterGroupAlreadyExists" // A DB parameter group with the same name exists. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterParameterGroup func (c *RDS) CreateDBClusterParameterGroup(input *CreateDBClusterParameterGroupInput) (*CreateDBClusterParameterGroupOutput, error) { req, out := c.CreateDBClusterParameterGroupRequest(input) err := req.Send() @@ -988,6 +1128,7 @@ const opCreateDBClusterSnapshot = "CreateDBClusterSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterSnapshot func (c *RDS) CreateDBClusterSnapshotRequest(input *CreateDBClusterSnapshotInput) (req *request.Request, output *CreateDBClusterSnapshotOutput) { op := &request.Operation{ Name: opCreateDBClusterSnapshot, @@ -999,9 +1140,8 @@ func (c *RDS) CreateDBClusterSnapshotRequest(input *CreateDBClusterSnapshotInput input = &CreateDBClusterSnapshotInput{} } - req = c.newRequest(op, input, output) output = &CreateDBClusterSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1019,21 +1159,22 @@ func (c *RDS) CreateDBClusterSnapshotRequest(input *CreateDBClusterSnapshotInput // API operation CreateDBClusterSnapshot for usage and error information. // // Returned Error Codes: -// * DBClusterSnapshotAlreadyExistsFault +// * ErrCodeDBClusterSnapshotAlreadyExistsFault "DBClusterSnapshotAlreadyExistsFault" // User already has a DB cluster snapshot with the given identifier. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // -// * SnapshotQuotaExceeded +// * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded" // Request would result in user exceeding the allowed number of DB snapshots. // -// * InvalidDBClusterSnapshotStateFault +// * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault" // The supplied value is not a valid DB cluster snapshot state. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterSnapshot func (c *RDS) CreateDBClusterSnapshot(input *CreateDBClusterSnapshotInput) (*CreateDBClusterSnapshotOutput, error) { req, out := c.CreateDBClusterSnapshotRequest(input) err := req.Send() @@ -1066,6 +1207,7 @@ const opCreateDBInstance = "CreateDBInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBInstance func (c *RDS) CreateDBInstanceRequest(input *CreateDBInstanceInput) (req *request.Request, output *CreateDBInstanceOutput) { op := &request.Operation{ Name: opCreateDBInstance, @@ -1077,9 +1219,8 @@ func (c *RDS) CreateDBInstanceRequest(input *CreateDBInstanceInput) (req *reques input = &CreateDBInstanceInput{} } - req = c.newRequest(op, input, output) output = &CreateDBInstanceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1095,69 +1236,70 @@ func (c *RDS) CreateDBInstanceRequest(input *CreateDBInstanceInput) (req *reques // API operation CreateDBInstance for usage and error information. // // Returned Error Codes: -// * DBInstanceAlreadyExists +// * ErrCodeDBInstanceAlreadyExistsFault "DBInstanceAlreadyExists" // User already has a DB instance with the given identifier. // -// * InsufficientDBInstanceCapacity +// * ErrCodeInsufficientDBInstanceCapacityFault "InsufficientDBInstanceCapacity" // Specified DB instance class is not available in the specified Availability // Zone. // -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // -// * DBSecurityGroupNotFound +// * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound" // DBSecurityGroupName does not refer to an existing DB security group. // -// * InstanceQuotaExceeded +// * ErrCodeInstanceQuotaExceededFault "InstanceQuotaExceeded" // Request would result in user exceeding the allowed number of DB instances. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * DBSubnetGroupDoesNotCoverEnoughAZs +// * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs" // Subnets in the DB subnet group should cover at least two Availability Zones // unless there is only one Availability Zone. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // DB subnet group does not cover all Availability Zones after it is created // because users' change. // -// * ProvisionedIopsNotAvailableInAZFault +// * ErrCodeProvisionedIopsNotAvailableInAZFault "ProvisionedIopsNotAvailableInAZFault" // Provisioned IOPS not available in the specified Availability Zone. // -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // -// * StorageTypeNotSupported +// * ErrCodeStorageTypeNotSupportedFault "StorageTypeNotSupported" // StorageType specified cannot be associated with the DB Instance. // -// * AuthorizationNotFound +// * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound" // Specified CIDRIP or EC2 security group is not authorized for the specified // DB security group. // // RDS may not also be authorized via IAM to perform necessary actions on your // behalf. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // Error accessing KMS key. // -// * DomainNotFoundFault +// * ErrCodeDomainNotFoundFault "DomainNotFoundFault" // Domain does not refer to an existing Active Directory Domain. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBInstance func (c *RDS) CreateDBInstance(input *CreateDBInstanceInput) (*CreateDBInstanceOutput, error) { req, out := c.CreateDBInstanceRequest(input) err := req.Send() @@ -1190,6 +1332,7 @@ const opCreateDBInstanceReadReplica = "CreateDBInstanceReadReplica" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBInstanceReadReplica func (c *RDS) CreateDBInstanceReadReplicaRequest(input *CreateDBInstanceReadReplicaInput) (req *request.Request, output *CreateDBInstanceReadReplicaOutput) { op := &request.Operation{ Name: opCreateDBInstanceReadReplica, @@ -1201,9 +1344,8 @@ func (c *RDS) CreateDBInstanceReadReplicaRequest(input *CreateDBInstanceReadRepl input = &CreateDBInstanceReadReplicaInput{} } - req = c.newRequest(op, input, output) output = &CreateDBInstanceReadReplicaOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1212,12 +1354,67 @@ func (c *RDS) CreateDBInstanceReadReplicaRequest(input *CreateDBInstanceReadRepl // Creates a DB instance for a DB instance running MySQL, MariaDB, or PostgreSQL // that acts as a Read Replica of a source DB instance. // -// All Read Replica DB instances are created as Single-AZ deployments with -// backups disabled. All other DB instance attributes (including DB security -// groups and DB parameter groups) are inherited from the source DB instance, -// except as specified below. +// All Read Replica DB instances are created as Single-AZ deployments with backups +// disabled. All other DB instance attributes (including DB security groups +// and DB parameter groups) are inherited from the source DB instance, except +// as specified below. // -// The source DB instance must have backup retention enabled. +// The source DB instance must have backup retention enabled. +// +// You can create an encrypted Read Replica in a different AWS Region than the +// source DB instance. In that case, the region where you call the CreateDBInstanceReadReplica +// action is the destination region of the encrypted Read Replica. The source +// DB instance must be encrypted. +// +// To create an encrypted Read Replica in another AWS Region, you must provide +// the following values: +// +// * KmsKeyId - The AWS Key Management System (KMS) key identifier for the +// key to use to encrypt the Read Replica in the destination region. +// +// * PreSignedUrl - A URL that contains a Signature Version 4 signed request +// for the CreateDBInstanceReadReplica API action in the AWS region that +// contains the source DB instance. The PreSignedUrl parameter must be used +// when encrypting a Read Replica from another AWS region. +// +// The presigned URL must be a valid request for the CreateDBInstanceReadReplica +// API action that can be executed in the source region that contains the +// encrypted DB instance. The presigned URL request must contain the following +// parameter values: +// +// DestinationRegion - The AWS Region that the Read Replica is created in. This +// region is the same one where the CreateDBInstanceReadReplica action is +// called that contains this presigned URL. +// +// For example, if you create an encrypted Read Replica in the us-east-1 region, +// and the source DB instance is in the west-2 region, then you call the +// CreateDBInstanceReadReplica action in the us-east-1 region and provide +// a presigned URL that contains a call to the CreateDBInstanceReadReplica +// action in the us-west-2 region. For this example, the DestinationRegion +// in the presigned URL must be set to the us-east-1 region. +// +// KmsKeyId - The KMS key identifier for the key to use to encrypt the Read +// Replica in the destination region. This is the same identifier for both +// the CreateDBInstanceReadReplica action that is called in the destination +// region, and the action contained in the presigned URL. +// +// SourceDBInstanceIdentifier - The DB instance identifier for the encrypted +// Read Replica to be created. This identifier must be in the Amazon Resource +// Name (ARN) format for the source region. For example, if you create an +// encrypted Read Replica from a DB instance in the us-west-2 region, then +// your SourceDBInstanceIdentifier would look like this example: arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-instance-20161115. +// +// To learn how to generate a Signature Version 4 signed request, see Authenticating +// Requests: Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) +// and Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// +// * DBInstanceIdentifier - The identifier for the encrypted Read Replica +// in the destination region. +// +// * SourceDBInstanceIdentifier - The DB instance identifier for the encrypted +// Read Replica. This identifier must be in the ARN format for the source +// region and is the same value as the SourceDBInstanceIdentifier in the +// presigned URL. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1227,67 +1424,68 @@ func (c *RDS) CreateDBInstanceReadReplicaRequest(input *CreateDBInstanceReadRepl // API operation CreateDBInstanceReadReplica for usage and error information. // // Returned Error Codes: -// * DBInstanceAlreadyExists +// * ErrCodeDBInstanceAlreadyExistsFault "DBInstanceAlreadyExists" // User already has a DB instance with the given identifier. // -// * InsufficientDBInstanceCapacity +// * ErrCodeInsufficientDBInstanceCapacityFault "InsufficientDBInstanceCapacity" // Specified DB instance class is not available in the specified Availability // Zone. // -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // -// * DBSecurityGroupNotFound +// * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound" // DBSecurityGroupName does not refer to an existing DB security group. // -// * InstanceQuotaExceeded +// * ErrCodeInstanceQuotaExceededFault "InstanceQuotaExceeded" // Request would result in user exceeding the allowed number of DB instances. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // -// * InvalidDBInstanceState +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" // The specified DB instance is not in the available state. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * DBSubnetGroupDoesNotCoverEnoughAZs +// * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs" // Subnets in the DB subnet group should cover at least two Availability Zones // unless there is only one Availability Zone. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // DB subnet group does not cover all Availability Zones after it is created // because users' change. // -// * ProvisionedIopsNotAvailableInAZFault +// * ErrCodeProvisionedIopsNotAvailableInAZFault "ProvisionedIopsNotAvailableInAZFault" // Provisioned IOPS not available in the specified Availability Zone. // -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // -// * DBSubnetGroupNotAllowedFault +// * ErrCodeDBSubnetGroupNotAllowedFault "DBSubnetGroupNotAllowedFault" // Indicates that the DBSubnetGroup should not be specified while creating read // replicas that lie in the same region as the source instance. // -// * InvalidDBSubnetGroupFault +// * ErrCodeInvalidDBSubnetGroupFault "InvalidDBSubnetGroupFault" // Indicates the DBSubnetGroup does not belong to the same VPC as that of an // existing cross region read replica of the same source instance. // -// * StorageTypeNotSupported +// * ErrCodeStorageTypeNotSupportedFault "StorageTypeNotSupported" // StorageType specified cannot be associated with the DB Instance. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // Error accessing KMS key. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBInstanceReadReplica func (c *RDS) CreateDBInstanceReadReplica(input *CreateDBInstanceReadReplicaInput) (*CreateDBInstanceReadReplicaOutput, error) { req, out := c.CreateDBInstanceReadReplicaRequest(input) err := req.Send() @@ -1320,6 +1518,7 @@ const opCreateDBParameterGroup = "CreateDBParameterGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBParameterGroup func (c *RDS) CreateDBParameterGroupRequest(input *CreateDBParameterGroupInput) (req *request.Request, output *CreateDBParameterGroupOutput) { op := &request.Operation{ Name: opCreateDBParameterGroup, @@ -1331,9 +1530,8 @@ func (c *RDS) CreateDBParameterGroupRequest(input *CreateDBParameterGroupInput) input = &CreateDBParameterGroupInput{} } - req = c.newRequest(op, input, output) output = &CreateDBParameterGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1341,7 +1539,7 @@ func (c *RDS) CreateDBParameterGroupRequest(input *CreateDBParameterGroupInput) // // Creates a new DB parameter group. // -// A DB parameter group is initially created with the default parameters for +// A DB parameter group is initially created with the default parameters for // the database engine used by the DB instance. To provide custom values for // any of the parameters, you must modify the group after creating it using // ModifyDBParameterGroup. Once you've created a DB parameter group, you need @@ -1350,7 +1548,7 @@ func (c *RDS) CreateDBParameterGroupRequest(input *CreateDBParameterGroupInput) // DB instance without failover for the new DB parameter group and associated // settings to take effect. // -// After you create a DB parameter group, you should wait at least 5 minutes +// After you create a DB parameter group, you should wait at least 5 minutes // before creating your first DB instance that uses that DB parameter group // as the default parameter group. This allows Amazon RDS to fully complete // the create action before the parameter group is used as the default for a @@ -1369,13 +1567,14 @@ func (c *RDS) CreateDBParameterGroupRequest(input *CreateDBParameterGroupInput) // API operation CreateDBParameterGroup for usage and error information. // // Returned Error Codes: -// * DBParameterGroupQuotaExceeded +// * ErrCodeDBParameterGroupQuotaExceededFault "DBParameterGroupQuotaExceeded" // Request would result in user exceeding the allowed number of DB parameter // groups. // -// * DBParameterGroupAlreadyExists +// * ErrCodeDBParameterGroupAlreadyExistsFault "DBParameterGroupAlreadyExists" // A DB parameter group with the same name exists. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBParameterGroup func (c *RDS) CreateDBParameterGroup(input *CreateDBParameterGroupInput) (*CreateDBParameterGroupOutput, error) { req, out := c.CreateDBParameterGroupRequest(input) err := req.Send() @@ -1408,6 +1607,7 @@ const opCreateDBSecurityGroup = "CreateDBSecurityGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBSecurityGroup func (c *RDS) CreateDBSecurityGroupRequest(input *CreateDBSecurityGroupInput) (req *request.Request, output *CreateDBSecurityGroupOutput) { op := &request.Operation{ Name: opCreateDBSecurityGroup, @@ -1419,9 +1619,8 @@ func (c *RDS) CreateDBSecurityGroupRequest(input *CreateDBSecurityGroupInput) (r input = &CreateDBSecurityGroupInput{} } - req = c.newRequest(op, input, output) output = &CreateDBSecurityGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1438,17 +1637,18 @@ func (c *RDS) CreateDBSecurityGroupRequest(input *CreateDBSecurityGroupInput) (r // API operation CreateDBSecurityGroup for usage and error information. // // Returned Error Codes: -// * DBSecurityGroupAlreadyExists +// * ErrCodeDBSecurityGroupAlreadyExistsFault "DBSecurityGroupAlreadyExists" // A DB security group with the name specified in DBSecurityGroupName already // exists. // -// * QuotaExceeded.DBSecurityGroup +// * ErrCodeDBSecurityGroupQuotaExceededFault "QuotaExceeded.DBSecurityGroup" // Request would result in user exceeding the allowed number of DB security // groups. // -// * DBSecurityGroupNotSupported +// * ErrCodeDBSecurityGroupNotSupportedFault "DBSecurityGroupNotSupported" // A DB security group is not allowed for this action. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBSecurityGroup func (c *RDS) CreateDBSecurityGroup(input *CreateDBSecurityGroupInput) (*CreateDBSecurityGroupOutput, error) { req, out := c.CreateDBSecurityGroupRequest(input) err := req.Send() @@ -1481,6 +1681,7 @@ const opCreateDBSnapshot = "CreateDBSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBSnapshot func (c *RDS) CreateDBSnapshotRequest(input *CreateDBSnapshotInput) (req *request.Request, output *CreateDBSnapshotOutput) { op := &request.Operation{ Name: opCreateDBSnapshot, @@ -1492,9 +1693,8 @@ func (c *RDS) CreateDBSnapshotRequest(input *CreateDBSnapshotInput) (req *reques input = &CreateDBSnapshotInput{} } - req = c.newRequest(op, input, output) output = &CreateDBSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1510,18 +1710,19 @@ func (c *RDS) CreateDBSnapshotRequest(input *CreateDBSnapshotInput) (req *reques // API operation CreateDBSnapshot for usage and error information. // // Returned Error Codes: -// * DBSnapshotAlreadyExists +// * ErrCodeDBSnapshotAlreadyExistsFault "DBSnapshotAlreadyExists" // DBSnapshotIdentifier is already used by an existing snapshot. // -// * InvalidDBInstanceState +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" // The specified DB instance is not in the available state. // -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // -// * SnapshotQuotaExceeded +// * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded" // Request would result in user exceeding the allowed number of DB snapshots. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBSnapshot func (c *RDS) CreateDBSnapshot(input *CreateDBSnapshotInput) (*CreateDBSnapshotOutput, error) { req, out := c.CreateDBSnapshotRequest(input) err := req.Send() @@ -1554,6 +1755,7 @@ const opCreateDBSubnetGroup = "CreateDBSubnetGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBSubnetGroup func (c *RDS) CreateDBSubnetGroupRequest(input *CreateDBSubnetGroupInput) (req *request.Request, output *CreateDBSubnetGroupOutput) { op := &request.Operation{ Name: opCreateDBSubnetGroup, @@ -1565,9 +1767,8 @@ func (c *RDS) CreateDBSubnetGroupRequest(input *CreateDBSubnetGroupInput) (req * input = &CreateDBSubnetGroupInput{} } - req = c.newRequest(op, input, output) output = &CreateDBSubnetGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1584,24 +1785,25 @@ func (c *RDS) CreateDBSubnetGroupRequest(input *CreateDBSubnetGroupInput) (req * // API operation CreateDBSubnetGroup for usage and error information. // // Returned Error Codes: -// * DBSubnetGroupAlreadyExists +// * ErrCodeDBSubnetGroupAlreadyExistsFault "DBSubnetGroupAlreadyExists" // DBSubnetGroupName is already used by an existing DB subnet group. // -// * DBSubnetGroupQuotaExceeded +// * ErrCodeDBSubnetGroupQuotaExceededFault "DBSubnetGroupQuotaExceeded" // Request would result in user exceeding the allowed number of DB subnet groups. // -// * DBSubnetQuotaExceededFault +// * ErrCodeDBSubnetQuotaExceededFault "DBSubnetQuotaExceededFault" // Request would result in user exceeding the allowed number of subnets in a // DB subnet groups. // -// * DBSubnetGroupDoesNotCoverEnoughAZs +// * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs" // Subnets in the DB subnet group should cover at least two Availability Zones // unless there is only one Availability Zone. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBSubnetGroup func (c *RDS) CreateDBSubnetGroup(input *CreateDBSubnetGroupInput) (*CreateDBSubnetGroupOutput, error) { req, out := c.CreateDBSubnetGroupRequest(input) err := req.Send() @@ -1634,6 +1836,7 @@ const opCreateEventSubscription = "CreateEventSubscription" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateEventSubscription func (c *RDS) CreateEventSubscriptionRequest(input *CreateEventSubscriptionInput) (req *request.Request, output *CreateEventSubscriptionOutput) { op := &request.Operation{ Name: opCreateEventSubscription, @@ -1645,9 +1848,8 @@ func (c *RDS) CreateEventSubscriptionRequest(input *CreateEventSubscriptionInput input = &CreateEventSubscriptionInput{} } - req = c.newRequest(op, input, output) output = &CreateEventSubscriptionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1658,12 +1860,11 @@ func (c *RDS) CreateEventSubscriptionRequest(input *CreateEventSubscriptionInput // or the SNS API. To obtain an ARN with SNS, you must create a topic in Amazon // SNS and subscribe to the topic. The ARN is displayed in the SNS console. // -// You can specify the type of source (SourceType) you want to be notified -// of, provide a list of RDS sources (SourceIds) that triggers the events, and -// provide a list of event categories (EventCategories) for events you want -// to be notified of. For example, you can specify SourceType = db-instance, -// SourceIds = mydbinstance1, mydbinstance2 and EventCategories = Availability, -// Backup. +// You can specify the type of source (SourceType) you want to be notified of, +// provide a list of RDS sources (SourceIds) that triggers the events, and provide +// a list of event categories (EventCategories) for events you want to be notified +// of. For example, you can specify SourceType = db-instance, SourceIds = mydbinstance1, +// mydbinstance2 and EventCategories = Availability, Backup. // // If you specify both the SourceType and SourceIds, such as SourceType = db-instance // and SourceIdentifier = myDBInstance1, you will be notified of all the db-instance @@ -1681,27 +1882,28 @@ func (c *RDS) CreateEventSubscriptionRequest(input *CreateEventSubscriptionInput // API operation CreateEventSubscription for usage and error information. // // Returned Error Codes: -// * EventSubscriptionQuotaExceeded +// * ErrCodeEventSubscriptionQuotaExceededFault "EventSubscriptionQuotaExceeded" // You have reached the maximum number of event subscriptions. // -// * SubscriptionAlreadyExist +// * ErrCodeSubscriptionAlreadyExistFault "SubscriptionAlreadyExist" // The supplied subscription name already exists. // -// * SNSInvalidTopic +// * ErrCodeSNSInvalidTopicFault "SNSInvalidTopic" // SNS has responded that there is a problem with the SND topic specified. // -// * SNSNoAuthorization +// * ErrCodeSNSNoAuthorizationFault "SNSNoAuthorization" // You do not have permission to publish to the SNS topic ARN. // -// * SNSTopicArnNotFound +// * ErrCodeSNSTopicArnNotFoundFault "SNSTopicArnNotFound" // The SNS topic ARN does not exist. // -// * SubscriptionCategoryNotFound +// * ErrCodeSubscriptionCategoryNotFoundFault "SubscriptionCategoryNotFound" // The supplied category does not exist. // -// * SourceNotFound +// * ErrCodeSourceNotFoundFault "SourceNotFound" // The requested source could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateEventSubscription func (c *RDS) CreateEventSubscription(input *CreateEventSubscriptionInput) (*CreateEventSubscriptionOutput, error) { req, out := c.CreateEventSubscriptionRequest(input) err := req.Send() @@ -1734,6 +1936,7 @@ const opCreateOptionGroup = "CreateOptionGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateOptionGroup func (c *RDS) CreateOptionGroupRequest(input *CreateOptionGroupInput) (req *request.Request, output *CreateOptionGroupOutput) { op := &request.Operation{ Name: opCreateOptionGroup, @@ -1745,9 +1948,8 @@ func (c *RDS) CreateOptionGroupRequest(input *CreateOptionGroupInput) (req *requ input = &CreateOptionGroupInput{} } - req = c.newRequest(op, input, output) output = &CreateOptionGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1763,12 +1965,13 @@ func (c *RDS) CreateOptionGroupRequest(input *CreateOptionGroupInput) (req *requ // API operation CreateOptionGroup for usage and error information. // // Returned Error Codes: -// * OptionGroupAlreadyExistsFault +// * ErrCodeOptionGroupAlreadyExistsFault "OptionGroupAlreadyExistsFault" // The option group you are trying to create already exists. // -// * OptionGroupQuotaExceededFault +// * ErrCodeOptionGroupQuotaExceededFault "OptionGroupQuotaExceededFault" // The quota of 20 option groups was exceeded for this AWS account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateOptionGroup func (c *RDS) CreateOptionGroup(input *CreateOptionGroupInput) (*CreateOptionGroupOutput, error) { req, out := c.CreateOptionGroupRequest(input) err := req.Send() @@ -1801,6 +2004,7 @@ const opDeleteDBCluster = "DeleteDBCluster" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBCluster func (c *RDS) DeleteDBClusterRequest(input *DeleteDBClusterInput) (req *request.Request, output *DeleteDBClusterOutput) { op := &request.Operation{ Name: opDeleteDBCluster, @@ -1812,9 +2016,8 @@ func (c *RDS) DeleteDBClusterRequest(input *DeleteDBClusterInput) (req *request. input = &DeleteDBClusterInput{} } - req = c.newRequest(op, input, output) output = &DeleteDBClusterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1825,8 +2028,7 @@ func (c *RDS) DeleteDBClusterRequest(input *DeleteDBClusterInput) (req *request. // and cannot be recovered. Manual DB cluster snapshots of the specified DB // cluster are not deleted. // -// For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) -// in the Amazon RDS User Guide. +// For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)in the Amazon RDS User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1836,21 +2038,22 @@ func (c *RDS) DeleteDBClusterRequest(input *DeleteDBClusterInput) (req *request. // API operation DeleteDBCluster for usage and error information. // // Returned Error Codes: -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // -// * DBClusterSnapshotAlreadyExistsFault +// * ErrCodeDBClusterSnapshotAlreadyExistsFault "DBClusterSnapshotAlreadyExistsFault" // User already has a DB cluster snapshot with the given identifier. // -// * SnapshotQuotaExceeded +// * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded" // Request would result in user exceeding the allowed number of DB snapshots. // -// * InvalidDBClusterSnapshotStateFault +// * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault" // The supplied value is not a valid DB cluster snapshot state. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBCluster func (c *RDS) DeleteDBCluster(input *DeleteDBClusterInput) (*DeleteDBClusterOutput, error) { req, out := c.DeleteDBClusterRequest(input) err := req.Send() @@ -1883,6 +2086,7 @@ const opDeleteDBClusterParameterGroup = "DeleteDBClusterParameterGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterParameterGroup func (c *RDS) DeleteDBClusterParameterGroupRequest(input *DeleteDBClusterParameterGroupInput) (req *request.Request, output *DeleteDBClusterParameterGroupOutput) { op := &request.Operation{ Name: opDeleteDBClusterParameterGroup, @@ -1894,11 +2098,10 @@ func (c *RDS) DeleteDBClusterParameterGroupRequest(input *DeleteDBClusterParamet input = &DeleteDBClusterParameterGroupInput{} } + output = &DeleteDBClusterParameterGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteDBClusterParameterGroupOutput{} - req.Data = output return } @@ -1918,12 +2121,13 @@ func (c *RDS) DeleteDBClusterParameterGroupRequest(input *DeleteDBClusterParamet // API operation DeleteDBClusterParameterGroup for usage and error information. // // Returned Error Codes: -// * InvalidDBParameterGroupState +// * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState" // The DB parameter group cannot be deleted because it is in use. // -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterParameterGroup func (c *RDS) DeleteDBClusterParameterGroup(input *DeleteDBClusterParameterGroupInput) (*DeleteDBClusterParameterGroupOutput, error) { req, out := c.DeleteDBClusterParameterGroupRequest(input) err := req.Send() @@ -1956,6 +2160,7 @@ const opDeleteDBClusterSnapshot = "DeleteDBClusterSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterSnapshot func (c *RDS) DeleteDBClusterSnapshotRequest(input *DeleteDBClusterSnapshotInput) (req *request.Request, output *DeleteDBClusterSnapshotOutput) { op := &request.Operation{ Name: opDeleteDBClusterSnapshot, @@ -1967,9 +2172,8 @@ func (c *RDS) DeleteDBClusterSnapshotRequest(input *DeleteDBClusterSnapshotInput input = &DeleteDBClusterSnapshotInput{} } - req = c.newRequest(op, input, output) output = &DeleteDBClusterSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1978,9 +2182,9 @@ func (c *RDS) DeleteDBClusterSnapshotRequest(input *DeleteDBClusterSnapshotInput // Deletes a DB cluster snapshot. If the snapshot is being copied, the copy // operation is terminated. // -// The DB cluster snapshot must be in the available state to be deleted. +// The DB cluster snapshot must be in the available state to be deleted. // -// For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) +// For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) // in the Amazon RDS User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1991,12 +2195,13 @@ func (c *RDS) DeleteDBClusterSnapshotRequest(input *DeleteDBClusterSnapshotInput // API operation DeleteDBClusterSnapshot for usage and error information. // // Returned Error Codes: -// * InvalidDBClusterSnapshotStateFault +// * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault" // The supplied value is not a valid DB cluster snapshot state. // -// * DBClusterSnapshotNotFoundFault +// * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault" // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterSnapshot func (c *RDS) DeleteDBClusterSnapshot(input *DeleteDBClusterSnapshotInput) (*DeleteDBClusterSnapshotOutput, error) { req, out := c.DeleteDBClusterSnapshotRequest(input) err := req.Send() @@ -2029,6 +2234,7 @@ const opDeleteDBInstance = "DeleteDBInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBInstance func (c *RDS) DeleteDBInstanceRequest(input *DeleteDBInstanceInput) (req *request.Request, output *DeleteDBInstanceOutput) { op := &request.Operation{ Name: opDeleteDBInstance, @@ -2040,9 +2246,8 @@ func (c *RDS) DeleteDBInstanceRequest(input *DeleteDBInstanceInput) (req *reques input = &DeleteDBInstanceInput{} } - req = c.newRequest(op, input, output) output = &DeleteDBInstanceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2053,7 +2258,7 @@ func (c *RDS) DeleteDBInstanceRequest(input *DeleteDBInstanceInput) (req *reques // deleted and cannot be recovered. Manual DB snapshots of the DB instance to // be deleted by DeleteDBInstance are not deleted. // -// If you request a final DB snapshot the status of the Amazon RDS DB instance +// If you request a final DB snapshot the status of the Amazon RDS DB instance // is deleting until the DB snapshot is created. The API action DescribeDBInstance // is used to monitor the status of this operation. The action cannot be canceled // or reverted once submitted. @@ -2065,11 +2270,11 @@ func (c *RDS) DeleteDBInstanceRequest(input *DeleteDBInstanceInput) (req *reques // If the specified DB instance is part of an Amazon Aurora DB cluster, you // cannot delete the DB instance if the following are true: // -// The DB cluster is a Read Replica of another Amazon Aurora DB cluster. +// * The DB cluster is a Read Replica of another Amazon Aurora DB cluster. // -// The DB instance is the only instance in the DB cluster. +// * The DB instance is the only instance in the DB cluster. // -// To delete a DB instance in this case, first call the PromoteReadReplicaDBCluster +// To delete a DB instance in this case, first call the PromoteReadReplicaDBCluster // API action to promote the DB cluster so it's no longer a Read Replica. After // the promotion completes, then call the DeleteDBInstance API action to delete // the final instance in the DB cluster. @@ -2082,21 +2287,22 @@ func (c *RDS) DeleteDBInstanceRequest(input *DeleteDBInstanceInput) (req *reques // API operation DeleteDBInstance for usage and error information. // // Returned Error Codes: -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // -// * InvalidDBInstanceState +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" // The specified DB instance is not in the available state. // -// * DBSnapshotAlreadyExists +// * ErrCodeDBSnapshotAlreadyExistsFault "DBSnapshotAlreadyExists" // DBSnapshotIdentifier is already used by an existing snapshot. // -// * SnapshotQuotaExceeded +// * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded" // Request would result in user exceeding the allowed number of DB snapshots. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBInstance func (c *RDS) DeleteDBInstance(input *DeleteDBInstanceInput) (*DeleteDBInstanceOutput, error) { req, out := c.DeleteDBInstanceRequest(input) err := req.Send() @@ -2129,6 +2335,7 @@ const opDeleteDBParameterGroup = "DeleteDBParameterGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBParameterGroup func (c *RDS) DeleteDBParameterGroupRequest(input *DeleteDBParameterGroupInput) (req *request.Request, output *DeleteDBParameterGroupOutput) { op := &request.Operation{ Name: opDeleteDBParameterGroup, @@ -2140,11 +2347,10 @@ func (c *RDS) DeleteDBParameterGroupRequest(input *DeleteDBParameterGroupInput) input = &DeleteDBParameterGroupInput{} } + output = &DeleteDBParameterGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteDBParameterGroupOutput{} - req.Data = output return } @@ -2161,12 +2367,13 @@ func (c *RDS) DeleteDBParameterGroupRequest(input *DeleteDBParameterGroupInput) // API operation DeleteDBParameterGroup for usage and error information. // // Returned Error Codes: -// * InvalidDBParameterGroupState +// * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState" // The DB parameter group cannot be deleted because it is in use. // -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBParameterGroup func (c *RDS) DeleteDBParameterGroup(input *DeleteDBParameterGroupInput) (*DeleteDBParameterGroupOutput, error) { req, out := c.DeleteDBParameterGroupRequest(input) err := req.Send() @@ -2199,6 +2406,7 @@ const opDeleteDBSecurityGroup = "DeleteDBSecurityGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSecurityGroup func (c *RDS) DeleteDBSecurityGroupRequest(input *DeleteDBSecurityGroupInput) (req *request.Request, output *DeleteDBSecurityGroupOutput) { op := &request.Operation{ Name: opDeleteDBSecurityGroup, @@ -2210,11 +2418,10 @@ func (c *RDS) DeleteDBSecurityGroupRequest(input *DeleteDBSecurityGroupInput) (r input = &DeleteDBSecurityGroupInput{} } + output = &DeleteDBSecurityGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteDBSecurityGroupOutput{} - req.Data = output return } @@ -2222,7 +2429,7 @@ func (c *RDS) DeleteDBSecurityGroupRequest(input *DeleteDBSecurityGroupInput) (r // // Deletes a DB security group. // -// The specified DB security group must not be associated with any DB instances. +// The specified DB security group must not be associated with any DB instances. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2232,12 +2439,13 @@ func (c *RDS) DeleteDBSecurityGroupRequest(input *DeleteDBSecurityGroupInput) (r // API operation DeleteDBSecurityGroup for usage and error information. // // Returned Error Codes: -// * InvalidDBSecurityGroupState +// * ErrCodeInvalidDBSecurityGroupStateFault "InvalidDBSecurityGroupState" // The state of the DB security group does not allow deletion. // -// * DBSecurityGroupNotFound +// * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound" // DBSecurityGroupName does not refer to an existing DB security group. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSecurityGroup func (c *RDS) DeleteDBSecurityGroup(input *DeleteDBSecurityGroupInput) (*DeleteDBSecurityGroupOutput, error) { req, out := c.DeleteDBSecurityGroupRequest(input) err := req.Send() @@ -2270,6 +2478,7 @@ const opDeleteDBSnapshot = "DeleteDBSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSnapshot func (c *RDS) DeleteDBSnapshotRequest(input *DeleteDBSnapshotInput) (req *request.Request, output *DeleteDBSnapshotOutput) { op := &request.Operation{ Name: opDeleteDBSnapshot, @@ -2281,9 +2490,8 @@ func (c *RDS) DeleteDBSnapshotRequest(input *DeleteDBSnapshotInput) (req *reques input = &DeleteDBSnapshotInput{} } - req = c.newRequest(op, input, output) output = &DeleteDBSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2292,7 +2500,7 @@ func (c *RDS) DeleteDBSnapshotRequest(input *DeleteDBSnapshotInput) (req *reques // Deletes a DBSnapshot. If the snapshot is being copied, the copy operation // is terminated. // -// The DBSnapshot must be in the available state to be deleted. +// The DBSnapshot must be in the available state to be deleted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2302,12 +2510,13 @@ func (c *RDS) DeleteDBSnapshotRequest(input *DeleteDBSnapshotInput) (req *reques // API operation DeleteDBSnapshot for usage and error information. // // Returned Error Codes: -// * InvalidDBSnapshotState +// * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState" // The state of the DB snapshot does not allow deletion. // -// * DBSnapshotNotFound +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" // DBSnapshotIdentifier does not refer to an existing DB snapshot. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSnapshot func (c *RDS) DeleteDBSnapshot(input *DeleteDBSnapshotInput) (*DeleteDBSnapshotOutput, error) { req, out := c.DeleteDBSnapshotRequest(input) err := req.Send() @@ -2340,6 +2549,7 @@ const opDeleteDBSubnetGroup = "DeleteDBSubnetGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSubnetGroup func (c *RDS) DeleteDBSubnetGroupRequest(input *DeleteDBSubnetGroupInput) (req *request.Request, output *DeleteDBSubnetGroupOutput) { op := &request.Operation{ Name: opDeleteDBSubnetGroup, @@ -2351,11 +2561,10 @@ func (c *RDS) DeleteDBSubnetGroupRequest(input *DeleteDBSubnetGroupInput) (req * input = &DeleteDBSubnetGroupInput{} } + output = &DeleteDBSubnetGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteDBSubnetGroupOutput{} - req.Data = output return } @@ -2363,8 +2572,7 @@ func (c *RDS) DeleteDBSubnetGroupRequest(input *DeleteDBSubnetGroupInput) (req * // // Deletes a DB subnet group. // -// The specified database subnet group must not be associated with any DB -// instances. +// The specified database subnet group must not be associated with any DB instances. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2374,15 +2582,16 @@ func (c *RDS) DeleteDBSubnetGroupRequest(input *DeleteDBSubnetGroupInput) (req * // API operation DeleteDBSubnetGroup for usage and error information. // // Returned Error Codes: -// * InvalidDBSubnetGroupStateFault +// * ErrCodeInvalidDBSubnetGroupStateFault "InvalidDBSubnetGroupStateFault" // The DB subnet group cannot be deleted because it is in use. // -// * InvalidDBSubnetStateFault +// * ErrCodeInvalidDBSubnetStateFault "InvalidDBSubnetStateFault" // The DB subnet is not in the available state. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSubnetGroup func (c *RDS) DeleteDBSubnetGroup(input *DeleteDBSubnetGroupInput) (*DeleteDBSubnetGroupOutput, error) { req, out := c.DeleteDBSubnetGroupRequest(input) err := req.Send() @@ -2415,6 +2624,7 @@ const opDeleteEventSubscription = "DeleteEventSubscription" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteEventSubscription func (c *RDS) DeleteEventSubscriptionRequest(input *DeleteEventSubscriptionInput) (req *request.Request, output *DeleteEventSubscriptionOutput) { op := &request.Operation{ Name: opDeleteEventSubscription, @@ -2426,9 +2636,8 @@ func (c *RDS) DeleteEventSubscriptionRequest(input *DeleteEventSubscriptionInput input = &DeleteEventSubscriptionInput{} } - req = c.newRequest(op, input, output) output = &DeleteEventSubscriptionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2444,13 +2653,14 @@ func (c *RDS) DeleteEventSubscriptionRequest(input *DeleteEventSubscriptionInput // API operation DeleteEventSubscription for usage and error information. // // Returned Error Codes: -// * SubscriptionNotFound +// * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound" // The subscription name does not exist. // -// * InvalidEventSubscriptionState +// * ErrCodeInvalidEventSubscriptionStateFault "InvalidEventSubscriptionState" // This error can occur if someone else is modifying a subscription. You should // retry the action. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteEventSubscription func (c *RDS) DeleteEventSubscription(input *DeleteEventSubscriptionInput) (*DeleteEventSubscriptionOutput, error) { req, out := c.DeleteEventSubscriptionRequest(input) err := req.Send() @@ -2483,6 +2693,7 @@ const opDeleteOptionGroup = "DeleteOptionGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteOptionGroup func (c *RDS) DeleteOptionGroupRequest(input *DeleteOptionGroupInput) (req *request.Request, output *DeleteOptionGroupOutput) { op := &request.Operation{ Name: opDeleteOptionGroup, @@ -2494,11 +2705,10 @@ func (c *RDS) DeleteOptionGroupRequest(input *DeleteOptionGroupInput) (req *requ input = &DeleteOptionGroupInput{} } + output = &DeleteOptionGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteOptionGroupOutput{} - req.Data = output return } @@ -2514,12 +2724,13 @@ func (c *RDS) DeleteOptionGroupRequest(input *DeleteOptionGroupInput) (req *requ // API operation DeleteOptionGroup for usage and error information. // // Returned Error Codes: -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // -// * InvalidOptionGroupStateFault +// * ErrCodeInvalidOptionGroupStateFault "InvalidOptionGroupStateFault" // The option group is not in the available state. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteOptionGroup func (c *RDS) DeleteOptionGroup(input *DeleteOptionGroupInput) (*DeleteOptionGroupOutput, error) { req, out := c.DeleteOptionGroupRequest(input) err := req.Send() @@ -2552,6 +2763,7 @@ const opDescribeAccountAttributes = "DescribeAccountAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeAccountAttributes func (c *RDS) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) (req *request.Request, output *DescribeAccountAttributesOutput) { op := &request.Operation{ Name: opDescribeAccountAttributes, @@ -2563,9 +2775,8 @@ func (c *RDS) DescribeAccountAttributesRequest(input *DescribeAccountAttributesI input = &DescribeAccountAttributesInput{} } - req = c.newRequest(op, input, output) output = &DescribeAccountAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2584,6 +2795,7 @@ func (c *RDS) DescribeAccountAttributesRequest(input *DescribeAccountAttributesI // // See the AWS API reference guide for Amazon Relational Database Service's // API operation DescribeAccountAttributes for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeAccountAttributes func (c *RDS) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) { req, out := c.DescribeAccountAttributesRequest(input) err := req.Send() @@ -2616,6 +2828,7 @@ const opDescribeCertificates = "DescribeCertificates" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeCertificates func (c *RDS) DescribeCertificatesRequest(input *DescribeCertificatesInput) (req *request.Request, output *DescribeCertificatesOutput) { op := &request.Operation{ Name: opDescribeCertificates, @@ -2627,9 +2840,8 @@ func (c *RDS) DescribeCertificatesRequest(input *DescribeCertificatesInput) (req input = &DescribeCertificatesInput{} } - req = c.newRequest(op, input, output) output = &DescribeCertificatesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2645,9 +2857,10 @@ func (c *RDS) DescribeCertificatesRequest(input *DescribeCertificatesInput) (req // API operation DescribeCertificates for usage and error information. // // Returned Error Codes: -// * CertificateNotFound +// * ErrCodeCertificateNotFoundFault "CertificateNotFound" // CertificateIdentifier does not refer to an existing certificate. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeCertificates func (c *RDS) DescribeCertificates(input *DescribeCertificatesInput) (*DescribeCertificatesOutput, error) { req, out := c.DescribeCertificatesRequest(input) err := req.Send() @@ -2680,6 +2893,7 @@ const opDescribeDBClusterParameterGroups = "DescribeDBClusterParameterGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterParameterGroups func (c *RDS) DescribeDBClusterParameterGroupsRequest(input *DescribeDBClusterParameterGroupsInput) (req *request.Request, output *DescribeDBClusterParameterGroupsOutput) { op := &request.Operation{ Name: opDescribeDBClusterParameterGroups, @@ -2691,9 +2905,8 @@ func (c *RDS) DescribeDBClusterParameterGroupsRequest(input *DescribeDBClusterPa input = &DescribeDBClusterParameterGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeDBClusterParameterGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2714,9 +2927,10 @@ func (c *RDS) DescribeDBClusterParameterGroupsRequest(input *DescribeDBClusterPa // API operation DescribeDBClusterParameterGroups for usage and error information. // // Returned Error Codes: -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterParameterGroups func (c *RDS) DescribeDBClusterParameterGroups(input *DescribeDBClusterParameterGroupsInput) (*DescribeDBClusterParameterGroupsOutput, error) { req, out := c.DescribeDBClusterParameterGroupsRequest(input) err := req.Send() @@ -2749,6 +2963,7 @@ const opDescribeDBClusterParameters = "DescribeDBClusterParameters" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterParameters func (c *RDS) DescribeDBClusterParametersRequest(input *DescribeDBClusterParametersInput) (req *request.Request, output *DescribeDBClusterParametersOutput) { op := &request.Operation{ Name: opDescribeDBClusterParameters, @@ -2760,9 +2975,8 @@ func (c *RDS) DescribeDBClusterParametersRequest(input *DescribeDBClusterParamet input = &DescribeDBClusterParametersInput{} } - req = c.newRequest(op, input, output) output = &DescribeDBClusterParametersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2782,9 +2996,10 @@ func (c *RDS) DescribeDBClusterParametersRequest(input *DescribeDBClusterParamet // API operation DescribeDBClusterParameters for usage and error information. // // Returned Error Codes: -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterParameters func (c *RDS) DescribeDBClusterParameters(input *DescribeDBClusterParametersInput) (*DescribeDBClusterParametersOutput, error) { req, out := c.DescribeDBClusterParametersRequest(input) err := req.Send() @@ -2817,6 +3032,7 @@ const opDescribeDBClusterSnapshotAttributes = "DescribeDBClusterSnapshotAttribut // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterSnapshotAttributes func (c *RDS) DescribeDBClusterSnapshotAttributesRequest(input *DescribeDBClusterSnapshotAttributesInput) (req *request.Request, output *DescribeDBClusterSnapshotAttributesOutput) { op := &request.Operation{ Name: opDescribeDBClusterSnapshotAttributes, @@ -2828,9 +3044,8 @@ func (c *RDS) DescribeDBClusterSnapshotAttributesRequest(input *DescribeDBCluste input = &DescribeDBClusterSnapshotAttributesInput{} } - req = c.newRequest(op, input, output) output = &DescribeDBClusterSnapshotAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2857,9 +3072,10 @@ func (c *RDS) DescribeDBClusterSnapshotAttributesRequest(input *DescribeDBCluste // API operation DescribeDBClusterSnapshotAttributes for usage and error information. // // Returned Error Codes: -// * DBClusterSnapshotNotFoundFault +// * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault" // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterSnapshotAttributes func (c *RDS) DescribeDBClusterSnapshotAttributes(input *DescribeDBClusterSnapshotAttributesInput) (*DescribeDBClusterSnapshotAttributesOutput, error) { req, out := c.DescribeDBClusterSnapshotAttributesRequest(input) err := req.Send() @@ -2892,6 +3108,7 @@ const opDescribeDBClusterSnapshots = "DescribeDBClusterSnapshots" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterSnapshots func (c *RDS) DescribeDBClusterSnapshotsRequest(input *DescribeDBClusterSnapshotsInput) (req *request.Request, output *DescribeDBClusterSnapshotsOutput) { op := &request.Operation{ Name: opDescribeDBClusterSnapshots, @@ -2903,9 +3120,8 @@ func (c *RDS) DescribeDBClusterSnapshotsRequest(input *DescribeDBClusterSnapshot input = &DescribeDBClusterSnapshotsInput{} } - req = c.newRequest(op, input, output) output = &DescribeDBClusterSnapshotsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2925,9 +3141,10 @@ func (c *RDS) DescribeDBClusterSnapshotsRequest(input *DescribeDBClusterSnapshot // API operation DescribeDBClusterSnapshots for usage and error information. // // Returned Error Codes: -// * DBClusterSnapshotNotFoundFault +// * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault" // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterSnapshots func (c *RDS) DescribeDBClusterSnapshots(input *DescribeDBClusterSnapshotsInput) (*DescribeDBClusterSnapshotsOutput, error) { req, out := c.DescribeDBClusterSnapshotsRequest(input) err := req.Send() @@ -2960,6 +3177,7 @@ const opDescribeDBClusters = "DescribeDBClusters" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusters func (c *RDS) DescribeDBClustersRequest(input *DescribeDBClustersInput) (req *request.Request, output *DescribeDBClustersOutput) { op := &request.Operation{ Name: opDescribeDBClusters, @@ -2971,9 +3189,8 @@ func (c *RDS) DescribeDBClustersRequest(input *DescribeDBClustersInput) (req *re input = &DescribeDBClustersInput{} } - req = c.newRequest(op, input, output) output = &DescribeDBClustersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2993,9 +3210,10 @@ func (c *RDS) DescribeDBClustersRequest(input *DescribeDBClustersInput) (req *re // API operation DescribeDBClusters for usage and error information. // // Returned Error Codes: -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusters func (c *RDS) DescribeDBClusters(input *DescribeDBClustersInput) (*DescribeDBClustersOutput, error) { req, out := c.DescribeDBClustersRequest(input) err := req.Send() @@ -3028,6 +3246,7 @@ const opDescribeDBEngineVersions = "DescribeDBEngineVersions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBEngineVersions func (c *RDS) DescribeDBEngineVersionsRequest(input *DescribeDBEngineVersionsInput) (req *request.Request, output *DescribeDBEngineVersionsOutput) { op := &request.Operation{ Name: opDescribeDBEngineVersions, @@ -3045,9 +3264,8 @@ func (c *RDS) DescribeDBEngineVersionsRequest(input *DescribeDBEngineVersionsInp input = &DescribeDBEngineVersionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeDBEngineVersionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3061,6 +3279,7 @@ func (c *RDS) DescribeDBEngineVersionsRequest(input *DescribeDBEngineVersionsInp // // See the AWS API reference guide for Amazon Relational Database Service's // API operation DescribeDBEngineVersions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBEngineVersions func (c *RDS) DescribeDBEngineVersions(input *DescribeDBEngineVersionsInput) (*DescribeDBEngineVersionsOutput, error) { req, out := c.DescribeDBEngineVersionsRequest(input) err := req.Send() @@ -3118,6 +3337,7 @@ const opDescribeDBInstances = "DescribeDBInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBInstances func (c *RDS) DescribeDBInstancesRequest(input *DescribeDBInstancesInput) (req *request.Request, output *DescribeDBInstancesOutput) { op := &request.Operation{ Name: opDescribeDBInstances, @@ -3135,9 +3355,8 @@ func (c *RDS) DescribeDBInstancesRequest(input *DescribeDBInstancesInput) (req * input = &DescribeDBInstancesInput{} } - req = c.newRequest(op, input, output) output = &DescribeDBInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3153,9 +3372,10 @@ func (c *RDS) DescribeDBInstancesRequest(input *DescribeDBInstancesInput) (req * // API operation DescribeDBInstances for usage and error information. // // Returned Error Codes: -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBInstances func (c *RDS) DescribeDBInstances(input *DescribeDBInstancesInput) (*DescribeDBInstancesOutput, error) { req, out := c.DescribeDBInstancesRequest(input) err := req.Send() @@ -3213,6 +3433,7 @@ const opDescribeDBLogFiles = "DescribeDBLogFiles" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBLogFiles func (c *RDS) DescribeDBLogFilesRequest(input *DescribeDBLogFilesInput) (req *request.Request, output *DescribeDBLogFilesOutput) { op := &request.Operation{ Name: opDescribeDBLogFiles, @@ -3230,9 +3451,8 @@ func (c *RDS) DescribeDBLogFilesRequest(input *DescribeDBLogFilesInput) (req *re input = &DescribeDBLogFilesInput{} } - req = c.newRequest(op, input, output) output = &DescribeDBLogFilesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3248,9 +3468,10 @@ func (c *RDS) DescribeDBLogFilesRequest(input *DescribeDBLogFilesInput) (req *re // API operation DescribeDBLogFiles for usage and error information. // // Returned Error Codes: -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBLogFiles func (c *RDS) DescribeDBLogFiles(input *DescribeDBLogFilesInput) (*DescribeDBLogFilesOutput, error) { req, out := c.DescribeDBLogFilesRequest(input) err := req.Send() @@ -3308,6 +3529,7 @@ const opDescribeDBParameterGroups = "DescribeDBParameterGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBParameterGroups func (c *RDS) DescribeDBParameterGroupsRequest(input *DescribeDBParameterGroupsInput) (req *request.Request, output *DescribeDBParameterGroupsOutput) { op := &request.Operation{ Name: opDescribeDBParameterGroups, @@ -3325,9 +3547,8 @@ func (c *RDS) DescribeDBParameterGroupsRequest(input *DescribeDBParameterGroupsI input = &DescribeDBParameterGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeDBParameterGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3345,9 +3566,10 @@ func (c *RDS) DescribeDBParameterGroupsRequest(input *DescribeDBParameterGroupsI // API operation DescribeDBParameterGroups for usage and error information. // // Returned Error Codes: -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBParameterGroups func (c *RDS) DescribeDBParameterGroups(input *DescribeDBParameterGroupsInput) (*DescribeDBParameterGroupsOutput, error) { req, out := c.DescribeDBParameterGroupsRequest(input) err := req.Send() @@ -3405,6 +3627,7 @@ const opDescribeDBParameters = "DescribeDBParameters" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBParameters func (c *RDS) DescribeDBParametersRequest(input *DescribeDBParametersInput) (req *request.Request, output *DescribeDBParametersOutput) { op := &request.Operation{ Name: opDescribeDBParameters, @@ -3422,9 +3645,8 @@ func (c *RDS) DescribeDBParametersRequest(input *DescribeDBParametersInput) (req input = &DescribeDBParametersInput{} } - req = c.newRequest(op, input, output) output = &DescribeDBParametersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3440,9 +3662,10 @@ func (c *RDS) DescribeDBParametersRequest(input *DescribeDBParametersInput) (req // API operation DescribeDBParameters for usage and error information. // // Returned Error Codes: -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBParameters func (c *RDS) DescribeDBParameters(input *DescribeDBParametersInput) (*DescribeDBParametersOutput, error) { req, out := c.DescribeDBParametersRequest(input) err := req.Send() @@ -3500,6 +3723,7 @@ const opDescribeDBSecurityGroups = "DescribeDBSecurityGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSecurityGroups func (c *RDS) DescribeDBSecurityGroupsRequest(input *DescribeDBSecurityGroupsInput) (req *request.Request, output *DescribeDBSecurityGroupsOutput) { op := &request.Operation{ Name: opDescribeDBSecurityGroups, @@ -3517,9 +3741,8 @@ func (c *RDS) DescribeDBSecurityGroupsRequest(input *DescribeDBSecurityGroupsInp input = &DescribeDBSecurityGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeDBSecurityGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3537,9 +3760,10 @@ func (c *RDS) DescribeDBSecurityGroupsRequest(input *DescribeDBSecurityGroupsInp // API operation DescribeDBSecurityGroups for usage and error information. // // Returned Error Codes: -// * DBSecurityGroupNotFound +// * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound" // DBSecurityGroupName does not refer to an existing DB security group. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSecurityGroups func (c *RDS) DescribeDBSecurityGroups(input *DescribeDBSecurityGroupsInput) (*DescribeDBSecurityGroupsOutput, error) { req, out := c.DescribeDBSecurityGroupsRequest(input) err := req.Send() @@ -3597,6 +3821,7 @@ const opDescribeDBSnapshotAttributes = "DescribeDBSnapshotAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSnapshotAttributes func (c *RDS) DescribeDBSnapshotAttributesRequest(input *DescribeDBSnapshotAttributesInput) (req *request.Request, output *DescribeDBSnapshotAttributesOutput) { op := &request.Operation{ Name: opDescribeDBSnapshotAttributes, @@ -3608,9 +3833,8 @@ func (c *RDS) DescribeDBSnapshotAttributesRequest(input *DescribeDBSnapshotAttri input = &DescribeDBSnapshotAttributesInput{} } - req = c.newRequest(op, input, output) output = &DescribeDBSnapshotAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3637,9 +3861,10 @@ func (c *RDS) DescribeDBSnapshotAttributesRequest(input *DescribeDBSnapshotAttri // API operation DescribeDBSnapshotAttributes for usage and error information. // // Returned Error Codes: -// * DBSnapshotNotFound +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" // DBSnapshotIdentifier does not refer to an existing DB snapshot. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSnapshotAttributes func (c *RDS) DescribeDBSnapshotAttributes(input *DescribeDBSnapshotAttributesInput) (*DescribeDBSnapshotAttributesOutput, error) { req, out := c.DescribeDBSnapshotAttributesRequest(input) err := req.Send() @@ -3672,6 +3897,7 @@ const opDescribeDBSnapshots = "DescribeDBSnapshots" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSnapshots func (c *RDS) DescribeDBSnapshotsRequest(input *DescribeDBSnapshotsInput) (req *request.Request, output *DescribeDBSnapshotsOutput) { op := &request.Operation{ Name: opDescribeDBSnapshots, @@ -3689,9 +3915,8 @@ func (c *RDS) DescribeDBSnapshotsRequest(input *DescribeDBSnapshotsInput) (req * input = &DescribeDBSnapshotsInput{} } - req = c.newRequest(op, input, output) output = &DescribeDBSnapshotsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3707,9 +3932,10 @@ func (c *RDS) DescribeDBSnapshotsRequest(input *DescribeDBSnapshotsInput) (req * // API operation DescribeDBSnapshots for usage and error information. // // Returned Error Codes: -// * DBSnapshotNotFound +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" // DBSnapshotIdentifier does not refer to an existing DB snapshot. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSnapshots func (c *RDS) DescribeDBSnapshots(input *DescribeDBSnapshotsInput) (*DescribeDBSnapshotsOutput, error) { req, out := c.DescribeDBSnapshotsRequest(input) err := req.Send() @@ -3767,6 +3993,7 @@ const opDescribeDBSubnetGroups = "DescribeDBSubnetGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSubnetGroups func (c *RDS) DescribeDBSubnetGroupsRequest(input *DescribeDBSubnetGroupsInput) (req *request.Request, output *DescribeDBSubnetGroupsOutput) { op := &request.Operation{ Name: opDescribeDBSubnetGroups, @@ -3784,9 +4011,8 @@ func (c *RDS) DescribeDBSubnetGroupsRequest(input *DescribeDBSubnetGroupsInput) input = &DescribeDBSubnetGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeDBSubnetGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3805,9 +4031,10 @@ func (c *RDS) DescribeDBSubnetGroupsRequest(input *DescribeDBSubnetGroupsInput) // API operation DescribeDBSubnetGroups for usage and error information. // // Returned Error Codes: -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSubnetGroups func (c *RDS) DescribeDBSubnetGroups(input *DescribeDBSubnetGroupsInput) (*DescribeDBSubnetGroupsOutput, error) { req, out := c.DescribeDBSubnetGroupsRequest(input) err := req.Send() @@ -3865,6 +4092,7 @@ const opDescribeEngineDefaultClusterParameters = "DescribeEngineDefaultClusterPa // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEngineDefaultClusterParameters func (c *RDS) DescribeEngineDefaultClusterParametersRequest(input *DescribeEngineDefaultClusterParametersInput) (req *request.Request, output *DescribeEngineDefaultClusterParametersOutput) { op := &request.Operation{ Name: opDescribeEngineDefaultClusterParameters, @@ -3876,9 +4104,8 @@ func (c *RDS) DescribeEngineDefaultClusterParametersRequest(input *DescribeEngin input = &DescribeEngineDefaultClusterParametersInput{} } - req = c.newRequest(op, input, output) output = &DescribeEngineDefaultClusterParametersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3896,6 +4123,7 @@ func (c *RDS) DescribeEngineDefaultClusterParametersRequest(input *DescribeEngin // // See the AWS API reference guide for Amazon Relational Database Service's // API operation DescribeEngineDefaultClusterParameters for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEngineDefaultClusterParameters func (c *RDS) DescribeEngineDefaultClusterParameters(input *DescribeEngineDefaultClusterParametersInput) (*DescribeEngineDefaultClusterParametersOutput, error) { req, out := c.DescribeEngineDefaultClusterParametersRequest(input) err := req.Send() @@ -3928,6 +4156,7 @@ const opDescribeEngineDefaultParameters = "DescribeEngineDefaultParameters" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEngineDefaultParameters func (c *RDS) DescribeEngineDefaultParametersRequest(input *DescribeEngineDefaultParametersInput) (req *request.Request, output *DescribeEngineDefaultParametersOutput) { op := &request.Operation{ Name: opDescribeEngineDefaultParameters, @@ -3945,9 +4174,8 @@ func (c *RDS) DescribeEngineDefaultParametersRequest(input *DescribeEngineDefaul input = &DescribeEngineDefaultParametersInput{} } - req = c.newRequest(op, input, output) output = &DescribeEngineDefaultParametersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3962,6 +4190,7 @@ func (c *RDS) DescribeEngineDefaultParametersRequest(input *DescribeEngineDefaul // // See the AWS API reference guide for Amazon Relational Database Service's // API operation DescribeEngineDefaultParameters for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEngineDefaultParameters func (c *RDS) DescribeEngineDefaultParameters(input *DescribeEngineDefaultParametersInput) (*DescribeEngineDefaultParametersOutput, error) { req, out := c.DescribeEngineDefaultParametersRequest(input) err := req.Send() @@ -4019,6 +4248,7 @@ const opDescribeEventCategories = "DescribeEventCategories" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEventCategories func (c *RDS) DescribeEventCategoriesRequest(input *DescribeEventCategoriesInput) (req *request.Request, output *DescribeEventCategoriesOutput) { op := &request.Operation{ Name: opDescribeEventCategories, @@ -4030,9 +4260,8 @@ func (c *RDS) DescribeEventCategoriesRequest(input *DescribeEventCategoriesInput input = &DescribeEventCategoriesInput{} } - req = c.newRequest(op, input, output) output = &DescribeEventCategoriesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4049,6 +4278,7 @@ func (c *RDS) DescribeEventCategoriesRequest(input *DescribeEventCategoriesInput // // See the AWS API reference guide for Amazon Relational Database Service's // API operation DescribeEventCategories for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEventCategories func (c *RDS) DescribeEventCategories(input *DescribeEventCategoriesInput) (*DescribeEventCategoriesOutput, error) { req, out := c.DescribeEventCategoriesRequest(input) err := req.Send() @@ -4081,6 +4311,7 @@ const opDescribeEventSubscriptions = "DescribeEventSubscriptions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEventSubscriptions func (c *RDS) DescribeEventSubscriptionsRequest(input *DescribeEventSubscriptionsInput) (req *request.Request, output *DescribeEventSubscriptionsOutput) { op := &request.Operation{ Name: opDescribeEventSubscriptions, @@ -4098,9 +4329,8 @@ func (c *RDS) DescribeEventSubscriptionsRequest(input *DescribeEventSubscription input = &DescribeEventSubscriptionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeEventSubscriptionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4120,9 +4350,10 @@ func (c *RDS) DescribeEventSubscriptionsRequest(input *DescribeEventSubscription // API operation DescribeEventSubscriptions for usage and error information. // // Returned Error Codes: -// * SubscriptionNotFound +// * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound" // The subscription name does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEventSubscriptions func (c *RDS) DescribeEventSubscriptions(input *DescribeEventSubscriptionsInput) (*DescribeEventSubscriptionsOutput, error) { req, out := c.DescribeEventSubscriptionsRequest(input) err := req.Send() @@ -4180,6 +4411,7 @@ const opDescribeEvents = "DescribeEvents" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEvents func (c *RDS) DescribeEventsRequest(input *DescribeEventsInput) (req *request.Request, output *DescribeEventsOutput) { op := &request.Operation{ Name: opDescribeEvents, @@ -4197,9 +4429,8 @@ func (c *RDS) DescribeEventsRequest(input *DescribeEventsInput) (req *request.Re input = &DescribeEventsInput{} } - req = c.newRequest(op, input, output) output = &DescribeEventsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4217,6 +4448,7 @@ func (c *RDS) DescribeEventsRequest(input *DescribeEventsInput) (req *request.Re // // See the AWS API reference guide for Amazon Relational Database Service's // API operation DescribeEvents for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEvents func (c *RDS) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) { req, out := c.DescribeEventsRequest(input) err := req.Send() @@ -4274,6 +4506,7 @@ const opDescribeOptionGroupOptions = "DescribeOptionGroupOptions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeOptionGroupOptions func (c *RDS) DescribeOptionGroupOptionsRequest(input *DescribeOptionGroupOptionsInput) (req *request.Request, output *DescribeOptionGroupOptionsOutput) { op := &request.Operation{ Name: opDescribeOptionGroupOptions, @@ -4291,9 +4524,8 @@ func (c *RDS) DescribeOptionGroupOptionsRequest(input *DescribeOptionGroupOption input = &DescribeOptionGroupOptionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeOptionGroupOptionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4307,6 +4539,7 @@ func (c *RDS) DescribeOptionGroupOptionsRequest(input *DescribeOptionGroupOption // // See the AWS API reference guide for Amazon Relational Database Service's // API operation DescribeOptionGroupOptions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeOptionGroupOptions func (c *RDS) DescribeOptionGroupOptions(input *DescribeOptionGroupOptionsInput) (*DescribeOptionGroupOptionsOutput, error) { req, out := c.DescribeOptionGroupOptionsRequest(input) err := req.Send() @@ -4364,6 +4597,7 @@ const opDescribeOptionGroups = "DescribeOptionGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeOptionGroups func (c *RDS) DescribeOptionGroupsRequest(input *DescribeOptionGroupsInput) (req *request.Request, output *DescribeOptionGroupsOutput) { op := &request.Operation{ Name: opDescribeOptionGroups, @@ -4381,9 +4615,8 @@ func (c *RDS) DescribeOptionGroupsRequest(input *DescribeOptionGroupsInput) (req input = &DescribeOptionGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeOptionGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4399,9 +4632,10 @@ func (c *RDS) DescribeOptionGroupsRequest(input *DescribeOptionGroupsInput) (req // API operation DescribeOptionGroups for usage and error information. // // Returned Error Codes: -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeOptionGroups func (c *RDS) DescribeOptionGroups(input *DescribeOptionGroupsInput) (*DescribeOptionGroupsOutput, error) { req, out := c.DescribeOptionGroupsRequest(input) err := req.Send() @@ -4459,6 +4693,7 @@ const opDescribeOrderableDBInstanceOptions = "DescribeOrderableDBInstanceOptions // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeOrderableDBInstanceOptions func (c *RDS) DescribeOrderableDBInstanceOptionsRequest(input *DescribeOrderableDBInstanceOptionsInput) (req *request.Request, output *DescribeOrderableDBInstanceOptionsOutput) { op := &request.Operation{ Name: opDescribeOrderableDBInstanceOptions, @@ -4476,9 +4711,8 @@ func (c *RDS) DescribeOrderableDBInstanceOptionsRequest(input *DescribeOrderable input = &DescribeOrderableDBInstanceOptionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeOrderableDBInstanceOptionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4492,6 +4726,7 @@ func (c *RDS) DescribeOrderableDBInstanceOptionsRequest(input *DescribeOrderable // // See the AWS API reference guide for Amazon Relational Database Service's // API operation DescribeOrderableDBInstanceOptions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeOrderableDBInstanceOptions func (c *RDS) DescribeOrderableDBInstanceOptions(input *DescribeOrderableDBInstanceOptionsInput) (*DescribeOrderableDBInstanceOptionsOutput, error) { req, out := c.DescribeOrderableDBInstanceOptionsRequest(input) err := req.Send() @@ -4549,6 +4784,7 @@ const opDescribePendingMaintenanceActions = "DescribePendingMaintenanceActions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribePendingMaintenanceActions func (c *RDS) DescribePendingMaintenanceActionsRequest(input *DescribePendingMaintenanceActionsInput) (req *request.Request, output *DescribePendingMaintenanceActionsOutput) { op := &request.Operation{ Name: opDescribePendingMaintenanceActions, @@ -4560,9 +4796,8 @@ func (c *RDS) DescribePendingMaintenanceActionsRequest(input *DescribePendingMai input = &DescribePendingMaintenanceActionsInput{} } - req = c.newRequest(op, input, output) output = &DescribePendingMaintenanceActionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4579,9 +4814,10 @@ func (c *RDS) DescribePendingMaintenanceActionsRequest(input *DescribePendingMai // API operation DescribePendingMaintenanceActions for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The specified resource ID was not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribePendingMaintenanceActions func (c *RDS) DescribePendingMaintenanceActions(input *DescribePendingMaintenanceActionsInput) (*DescribePendingMaintenanceActionsOutput, error) { req, out := c.DescribePendingMaintenanceActionsRequest(input) err := req.Send() @@ -4614,6 +4850,7 @@ const opDescribeReservedDBInstances = "DescribeReservedDBInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeReservedDBInstances func (c *RDS) DescribeReservedDBInstancesRequest(input *DescribeReservedDBInstancesInput) (req *request.Request, output *DescribeReservedDBInstancesOutput) { op := &request.Operation{ Name: opDescribeReservedDBInstances, @@ -4631,9 +4868,8 @@ func (c *RDS) DescribeReservedDBInstancesRequest(input *DescribeReservedDBInstan input = &DescribeReservedDBInstancesInput{} } - req = c.newRequest(op, input, output) output = &DescribeReservedDBInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4650,9 +4886,10 @@ func (c *RDS) DescribeReservedDBInstancesRequest(input *DescribeReservedDBInstan // API operation DescribeReservedDBInstances for usage and error information. // // Returned Error Codes: -// * ReservedDBInstanceNotFound +// * ErrCodeReservedDBInstanceNotFoundFault "ReservedDBInstanceNotFound" // The specified reserved DB Instance not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeReservedDBInstances func (c *RDS) DescribeReservedDBInstances(input *DescribeReservedDBInstancesInput) (*DescribeReservedDBInstancesOutput, error) { req, out := c.DescribeReservedDBInstancesRequest(input) err := req.Send() @@ -4710,6 +4947,7 @@ const opDescribeReservedDBInstancesOfferings = "DescribeReservedDBInstancesOffer // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeReservedDBInstancesOfferings func (c *RDS) DescribeReservedDBInstancesOfferingsRequest(input *DescribeReservedDBInstancesOfferingsInput) (req *request.Request, output *DescribeReservedDBInstancesOfferingsOutput) { op := &request.Operation{ Name: opDescribeReservedDBInstancesOfferings, @@ -4727,9 +4965,8 @@ func (c *RDS) DescribeReservedDBInstancesOfferingsRequest(input *DescribeReserve input = &DescribeReservedDBInstancesOfferingsInput{} } - req = c.newRequest(op, input, output) output = &DescribeReservedDBInstancesOfferingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4745,9 +4982,10 @@ func (c *RDS) DescribeReservedDBInstancesOfferingsRequest(input *DescribeReserve // API operation DescribeReservedDBInstancesOfferings for usage and error information. // // Returned Error Codes: -// * ReservedDBInstancesOfferingNotFound +// * ErrCodeReservedDBInstancesOfferingNotFoundFault "ReservedDBInstancesOfferingNotFound" // Specified offering does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeReservedDBInstancesOfferings func (c *RDS) DescribeReservedDBInstancesOfferings(input *DescribeReservedDBInstancesOfferingsInput) (*DescribeReservedDBInstancesOfferingsOutput, error) { req, out := c.DescribeReservedDBInstancesOfferingsRequest(input) err := req.Send() @@ -4805,6 +5043,7 @@ const opDescribeSourceRegions = "DescribeSourceRegions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeSourceRegions func (c *RDS) DescribeSourceRegionsRequest(input *DescribeSourceRegionsInput) (req *request.Request, output *DescribeSourceRegionsOutput) { op := &request.Operation{ Name: opDescribeSourceRegions, @@ -4816,9 +5055,8 @@ func (c *RDS) DescribeSourceRegionsRequest(input *DescribeSourceRegionsInput) (r input = &DescribeSourceRegionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeSourceRegionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4834,6 +5072,7 @@ func (c *RDS) DescribeSourceRegionsRequest(input *DescribeSourceRegionsInput) (r // // See the AWS API reference guide for Amazon Relational Database Service's // API operation DescribeSourceRegions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeSourceRegions func (c *RDS) DescribeSourceRegions(input *DescribeSourceRegionsInput) (*DescribeSourceRegionsOutput, error) { req, out := c.DescribeSourceRegionsRequest(input) err := req.Send() @@ -4866,6 +5105,7 @@ const opDownloadDBLogFilePortion = "DownloadDBLogFilePortion" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DownloadDBLogFilePortion func (c *RDS) DownloadDBLogFilePortionRequest(input *DownloadDBLogFilePortionInput) (req *request.Request, output *DownloadDBLogFilePortionOutput) { op := &request.Operation{ Name: opDownloadDBLogFilePortion, @@ -4883,9 +5123,8 @@ func (c *RDS) DownloadDBLogFilePortionRequest(input *DownloadDBLogFilePortionInp input = &DownloadDBLogFilePortionInput{} } - req = c.newRequest(op, input, output) output = &DownloadDBLogFilePortionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4901,12 +5140,13 @@ func (c *RDS) DownloadDBLogFilePortionRequest(input *DownloadDBLogFilePortionInp // API operation DownloadDBLogFilePortion for usage and error information. // // Returned Error Codes: -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // -// * DBLogFileNotFoundFault +// * ErrCodeDBLogFileNotFoundFault "DBLogFileNotFoundFault" // LogFileName does not refer to an existing DB log file. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DownloadDBLogFilePortion func (c *RDS) DownloadDBLogFilePortion(input *DownloadDBLogFilePortionInput) (*DownloadDBLogFilePortionOutput, error) { req, out := c.DownloadDBLogFilePortionRequest(input) err := req.Send() @@ -4964,6 +5204,7 @@ const opFailoverDBCluster = "FailoverDBCluster" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/FailoverDBCluster func (c *RDS) FailoverDBClusterRequest(input *FailoverDBClusterInput) (req *request.Request, output *FailoverDBClusterOutput) { op := &request.Operation{ Name: opFailoverDBCluster, @@ -4975,9 +5216,8 @@ func (c *RDS) FailoverDBClusterRequest(input *FailoverDBClusterInput) (req *requ input = &FailoverDBClusterInput{} } - req = c.newRequest(op, input, output) output = &FailoverDBClusterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4985,13 +5225,12 @@ func (c *RDS) FailoverDBClusterRequest(input *FailoverDBClusterInput) (req *requ // // Forces a failover for a DB cluster. // -// A failover for a DB cluster promotes one of the read-only instances in the -// DB cluster to the master DB instance (the cluster writer) and deletes the -// current primary instance. +// A failover for a DB cluster promotes one of the Aurora Replicas (read-only +// instances) in the DB cluster to be the primary instance (the cluster writer). // -// Amazon Aurora will automatically fail over to a read-only instance, if one -// exists, when the primary instance fails. You can force a failover when you -// want to simulate a failure of a DB instance for testing. Because each instance +// Amazon Aurora will automatically fail over to an Aurora Replica, if one exists, +// when the primary instance fails. You can force a failover when you want to +// simulate a failure of a primary instance for testing. Because each instance // in a DB cluster has its own endpoint address, you will need to clean up and // re-establish any existing connections that use those endpoint addresses when // the failover is complete. @@ -5007,15 +5246,16 @@ func (c *RDS) FailoverDBClusterRequest(input *FailoverDBClusterInput) (req *requ // API operation FailoverDBCluster for usage and error information. // // Returned Error Codes: -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // -// * InvalidDBInstanceState +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" // The specified DB instance is not in the available state. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/FailoverDBCluster func (c *RDS) FailoverDBCluster(input *FailoverDBClusterInput) (*FailoverDBClusterOutput, error) { req, out := c.FailoverDBClusterRequest(input) err := req.Send() @@ -5048,6 +5288,7 @@ const opListTagsForResource = "ListTagsForResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ListTagsForResource func (c *RDS) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ Name: opListTagsForResource, @@ -5059,9 +5300,8 @@ func (c *RDS) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req * input = &ListTagsForResourceInput{} } - req = c.newRequest(op, input, output) output = &ListTagsForResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5080,12 +5320,16 @@ func (c *RDS) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req * // API operation ListTagsForResource for usage and error information. // // Returned Error Codes: -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // -// * DBSnapshotNotFound +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" // DBSnapshotIdentifier does not refer to an existing DB snapshot. // +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" +// DBClusterIdentifier does not refer to an existing DB cluster. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ListTagsForResource func (c *RDS) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -5118,6 +5362,7 @@ const opModifyDBCluster = "ModifyDBCluster" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBCluster func (c *RDS) ModifyDBClusterRequest(input *ModifyDBClusterInput) (req *request.Request, output *ModifyDBClusterOutput) { op := &request.Operation{ Name: opModifyDBCluster, @@ -5129,9 +5374,8 @@ func (c *RDS) ModifyDBClusterRequest(input *ModifyDBClusterInput) (req *request. input = &ModifyDBClusterInput{} } - req = c.newRequest(op, input, output) output = &ModifyDBClusterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5151,43 +5395,44 @@ func (c *RDS) ModifyDBClusterRequest(input *ModifyDBClusterInput) (req *request. // API operation ModifyDBCluster for usage and error information. // // Returned Error Codes: -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // DB subnet group does not cover all Availability Zones after it is created // because users' change. // -// * InvalidDBSubnetGroupStateFault +// * ErrCodeInvalidDBSubnetGroupStateFault "InvalidDBSubnetGroupStateFault" // The DB subnet group cannot be deleted because it is in use. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // -// * DBClusterParameterGroupNotFound +// * ErrCodeDBClusterParameterGroupNotFoundFault "DBClusterParameterGroupNotFound" // DBClusterParameterGroupName does not refer to an existing DB Cluster parameter // group. // -// * InvalidDBSecurityGroupState +// * ErrCodeInvalidDBSecurityGroupStateFault "InvalidDBSecurityGroupState" // The state of the DB security group does not allow deletion. // -// * InvalidDBInstanceState +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" // The specified DB instance is not in the available state. // -// * DBClusterAlreadyExistsFault +// * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault" // User already has a DB cluster with the given identifier. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBCluster func (c *RDS) ModifyDBCluster(input *ModifyDBClusterInput) (*ModifyDBClusterOutput, error) { req, out := c.ModifyDBClusterRequest(input) err := req.Send() @@ -5220,6 +5465,7 @@ const opModifyDBClusterParameterGroup = "ModifyDBClusterParameterGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBClusterParameterGroup func (c *RDS) ModifyDBClusterParameterGroupRequest(input *ModifyDBClusterParameterGroupInput) (req *request.Request, output *DBClusterParameterGroupNameMessage) { op := &request.Operation{ Name: opModifyDBClusterParameterGroup, @@ -5231,9 +5477,8 @@ func (c *RDS) ModifyDBClusterParameterGroupRequest(input *ModifyDBClusterParamet input = &ModifyDBClusterParameterGroupInput{} } - req = c.newRequest(op, input, output) output = &DBClusterParameterGroupNameMessage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5246,21 +5491,20 @@ func (c *RDS) ModifyDBClusterParameterGroupRequest(input *ModifyDBClusterParamet // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) // in the Amazon RDS User Guide. // -// Changes to dynamic parameters are applied immediately. Changes to static +// Changes to dynamic parameters are applied immediately. Changes to static // parameters require a reboot without failover to the DB cluster associated // with the parameter group before the change can take effect. // -// After you create a DB cluster parameter group, you should wait at least -// 5 minutes before creating your first DB cluster that uses that DB cluster -// parameter group as the default parameter group. This allows Amazon RDS to -// fully complete the create action before the parameter group is used as the -// default for a new DB cluster. This is especially important for parameters -// that are critical when creating the default database for a DB cluster, such -// as the character set for the default database defined by the character_set_database -// parameter. You can use the Parameter Groups option of the Amazon RDS console -// (https://console.aws.amazon.com/rds/) or the DescribeDBClusterParameters -// command to verify that your DB cluster parameter group has been created or -// modified. +// After you create a DB cluster parameter group, you should wait at least 5 +// minutes before creating your first DB cluster that uses that DB cluster parameter +// group as the default parameter group. This allows Amazon RDS to fully complete +// the create action before the parameter group is used as the default for a +// new DB cluster. This is especially important for parameters that are critical +// when creating the default database for a DB cluster, such as the character +// set for the default database defined by the character_set_database parameter. +// You can use the Parameter Groups option of the Amazon RDS console (https://console.aws.amazon.com/rds/) +// or the DescribeDBClusterParameters command to verify that your DB cluster +// parameter group has been created or modified. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -5270,12 +5514,13 @@ func (c *RDS) ModifyDBClusterParameterGroupRequest(input *ModifyDBClusterParamet // API operation ModifyDBClusterParameterGroup for usage and error information. // // Returned Error Codes: -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // -// * InvalidDBParameterGroupState +// * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState" // The DB parameter group cannot be deleted because it is in use. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBClusterParameterGroup func (c *RDS) ModifyDBClusterParameterGroup(input *ModifyDBClusterParameterGroupInput) (*DBClusterParameterGroupNameMessage, error) { req, out := c.ModifyDBClusterParameterGroupRequest(input) err := req.Send() @@ -5308,6 +5553,7 @@ const opModifyDBClusterSnapshotAttribute = "ModifyDBClusterSnapshotAttribute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBClusterSnapshotAttribute func (c *RDS) ModifyDBClusterSnapshotAttributeRequest(input *ModifyDBClusterSnapshotAttributeInput) (req *request.Request, output *ModifyDBClusterSnapshotAttributeOutput) { op := &request.Operation{ Name: opModifyDBClusterSnapshotAttribute, @@ -5319,9 +5565,8 @@ func (c *RDS) ModifyDBClusterSnapshotAttributeRequest(input *ModifyDBClusterSnap input = &ModifyDBClusterSnapshotAttributeInput{} } - req = c.newRequest(op, input, output) output = &ModifyDBClusterSnapshotAttributeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5352,16 +5597,17 @@ func (c *RDS) ModifyDBClusterSnapshotAttributeRequest(input *ModifyDBClusterSnap // API operation ModifyDBClusterSnapshotAttribute for usage and error information. // // Returned Error Codes: -// * DBClusterSnapshotNotFoundFault +// * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault" // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. // -// * InvalidDBClusterSnapshotStateFault +// * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault" // The supplied value is not a valid DB cluster snapshot state. // -// * SharedSnapshotQuotaExceeded +// * ErrCodeSharedSnapshotQuotaExceededFault "SharedSnapshotQuotaExceeded" // You have exceeded the maximum number of accounts that you can share a manual // DB snapshot with. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBClusterSnapshotAttribute func (c *RDS) ModifyDBClusterSnapshotAttribute(input *ModifyDBClusterSnapshotAttributeInput) (*ModifyDBClusterSnapshotAttributeOutput, error) { req, out := c.ModifyDBClusterSnapshotAttributeRequest(input) err := req.Send() @@ -5394,6 +5640,7 @@ const opModifyDBInstance = "ModifyDBInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBInstance func (c *RDS) ModifyDBInstanceRequest(input *ModifyDBInstanceInput) (req *request.Request, output *ModifyDBInstanceOutput) { op := &request.Operation{ Name: opModifyDBInstance, @@ -5405,9 +5652,8 @@ func (c *RDS) ModifyDBInstanceRequest(input *ModifyDBInstanceInput) (req *reques input = &ModifyDBInstanceInput{} } - req = c.newRequest(op, input, output) output = &ModifyDBInstanceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5425,61 +5671,62 @@ func (c *RDS) ModifyDBInstanceRequest(input *ModifyDBInstanceInput) (req *reques // API operation ModifyDBInstance for usage and error information. // // Returned Error Codes: -// * InvalidDBInstanceState +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" // The specified DB instance is not in the available state. // -// * InvalidDBSecurityGroupState +// * ErrCodeInvalidDBSecurityGroupStateFault "InvalidDBSecurityGroupState" // The state of the DB security group does not allow deletion. // -// * DBInstanceAlreadyExists +// * ErrCodeDBInstanceAlreadyExistsFault "DBInstanceAlreadyExists" // User already has a DB instance with the given identifier. // -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // -// * DBSecurityGroupNotFound +// * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound" // DBSecurityGroupName does not refer to an existing DB security group. // -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // -// * InsufficientDBInstanceCapacity +// * ErrCodeInsufficientDBInstanceCapacityFault "InsufficientDBInstanceCapacity" // Specified DB instance class is not available in the specified Availability // Zone. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // DB subnet group does not cover all Availability Zones after it is created // because users' change. // -// * ProvisionedIopsNotAvailableInAZFault +// * ErrCodeProvisionedIopsNotAvailableInAZFault "ProvisionedIopsNotAvailableInAZFault" // Provisioned IOPS not available in the specified Availability Zone. // -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // -// * DBUpgradeDependencyFailure +// * ErrCodeDBUpgradeDependencyFailureFault "DBUpgradeDependencyFailure" // The DB upgrade failed because a resource the DB depends on could not be modified. // -// * StorageTypeNotSupported +// * ErrCodeStorageTypeNotSupportedFault "StorageTypeNotSupported" // StorageType specified cannot be associated with the DB Instance. // -// * AuthorizationNotFound +// * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound" // Specified CIDRIP or EC2 security group is not authorized for the specified // DB security group. // // RDS may not also be authorized via IAM to perform necessary actions on your // behalf. // -// * CertificateNotFound +// * ErrCodeCertificateNotFoundFault "CertificateNotFound" // CertificateIdentifier does not refer to an existing certificate. // -// * DomainNotFoundFault +// * ErrCodeDomainNotFoundFault "DomainNotFoundFault" // Domain does not refer to an existing Active Directory Domain. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBInstance func (c *RDS) ModifyDBInstance(input *ModifyDBInstanceInput) (*ModifyDBInstanceOutput, error) { req, out := c.ModifyDBInstanceRequest(input) err := req.Send() @@ -5512,6 +5759,7 @@ const opModifyDBParameterGroup = "ModifyDBParameterGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBParameterGroup func (c *RDS) ModifyDBParameterGroupRequest(input *ModifyDBParameterGroupInput) (req *request.Request, output *DBParameterGroupNameMessage) { op := &request.Operation{ Name: opModifyDBParameterGroup, @@ -5523,9 +5771,8 @@ func (c *RDS) ModifyDBParameterGroupRequest(input *ModifyDBParameterGroupInput) input = &ModifyDBParameterGroupInput{} } - req = c.newRequest(op, input, output) output = &DBParameterGroupNameMessage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5535,11 +5782,11 @@ func (c *RDS) ModifyDBParameterGroupRequest(input *ModifyDBParameterGroupInput) // parameter, submit a list of the following: ParameterName, ParameterValue, // and ApplyMethod. A maximum of 20 parameters can be modified in a single request. // -// Changes to dynamic parameters are applied immediately. Changes to static +// Changes to dynamic parameters are applied immediately. Changes to static // parameters require a reboot without failover to the DB instance associated // with the parameter group before the change can take effect. // -// After you modify a DB parameter group, you should wait at least 5 minutes +// After you modify a DB parameter group, you should wait at least 5 minutes // before creating your first DB instance that uses that DB parameter group // as the default parameter group. This allows Amazon RDS to fully complete // the modify action before the parameter group is used as the default for a @@ -5558,18 +5805,89 @@ func (c *RDS) ModifyDBParameterGroupRequest(input *ModifyDBParameterGroupInput) // API operation ModifyDBParameterGroup for usage and error information. // // Returned Error Codes: -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // -// * InvalidDBParameterGroupState +// * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState" // The DB parameter group cannot be deleted because it is in use. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBParameterGroup func (c *RDS) ModifyDBParameterGroup(input *ModifyDBParameterGroupInput) (*DBParameterGroupNameMessage, error) { req, out := c.ModifyDBParameterGroupRequest(input) err := req.Send() return out, err } +const opModifyDBSnapshot = "ModifyDBSnapshot" + +// ModifyDBSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the ModifyDBSnapshot operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ModifyDBSnapshot for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ModifyDBSnapshot method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ModifyDBSnapshotRequest method. +// req, resp := client.ModifyDBSnapshotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSnapshot +func (c *RDS) ModifyDBSnapshotRequest(input *ModifyDBSnapshotInput) (req *request.Request, output *ModifyDBSnapshotOutput) { + op := &request.Operation{ + Name: opModifyDBSnapshot, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyDBSnapshotInput{} + } + + output = &ModifyDBSnapshotOutput{} + req = c.newRequest(op, input, output) + return +} + +// ModifyDBSnapshot API operation for Amazon Relational Database Service. +// +// Updates a manual DB snapshot, which can be encrypted or not encrypted, with +// a new engine version. You can update the engine version to either a new major +// or minor engine version. +// +// Amazon RDS supports upgrading a MySQL DB snapshot from MySQL 5.1 to MySQL +// 5.5. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation ModifyDBSnapshot for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" +// DBSnapshotIdentifier does not refer to an existing DB snapshot. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSnapshot +func (c *RDS) ModifyDBSnapshot(input *ModifyDBSnapshotInput) (*ModifyDBSnapshotOutput, error) { + req, out := c.ModifyDBSnapshotRequest(input) + err := req.Send() + return out, err +} + const opModifyDBSnapshotAttribute = "ModifyDBSnapshotAttribute" // ModifyDBSnapshotAttributeRequest generates a "aws/request.Request" representing the @@ -5596,6 +5914,7 @@ const opModifyDBSnapshotAttribute = "ModifyDBSnapshotAttribute" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSnapshotAttribute func (c *RDS) ModifyDBSnapshotAttributeRequest(input *ModifyDBSnapshotAttributeInput) (req *request.Request, output *ModifyDBSnapshotAttributeOutput) { op := &request.Operation{ Name: opModifyDBSnapshotAttribute, @@ -5607,9 +5926,8 @@ func (c *RDS) ModifyDBSnapshotAttributeRequest(input *ModifyDBSnapshotAttributeI input = &ModifyDBSnapshotAttributeInput{} } - req = c.newRequest(op, input, output) output = &ModifyDBSnapshotAttributeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5640,16 +5958,17 @@ func (c *RDS) ModifyDBSnapshotAttributeRequest(input *ModifyDBSnapshotAttributeI // API operation ModifyDBSnapshotAttribute for usage and error information. // // Returned Error Codes: -// * DBSnapshotNotFound +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" // DBSnapshotIdentifier does not refer to an existing DB snapshot. // -// * InvalidDBSnapshotState +// * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState" // The state of the DB snapshot does not allow deletion. // -// * SharedSnapshotQuotaExceeded +// * ErrCodeSharedSnapshotQuotaExceededFault "SharedSnapshotQuotaExceeded" // You have exceeded the maximum number of accounts that you can share a manual // DB snapshot with. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSnapshotAttribute func (c *RDS) ModifyDBSnapshotAttribute(input *ModifyDBSnapshotAttributeInput) (*ModifyDBSnapshotAttributeOutput, error) { req, out := c.ModifyDBSnapshotAttributeRequest(input) err := req.Send() @@ -5682,6 +6001,7 @@ const opModifyDBSubnetGroup = "ModifyDBSubnetGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSubnetGroup func (c *RDS) ModifyDBSubnetGroupRequest(input *ModifyDBSubnetGroupInput) (req *request.Request, output *ModifyDBSubnetGroupOutput) { op := &request.Operation{ Name: opModifyDBSubnetGroup, @@ -5693,9 +6013,8 @@ func (c *RDS) ModifyDBSubnetGroupRequest(input *ModifyDBSubnetGroupInput) (req * input = &ModifyDBSubnetGroupInput{} } - req = c.newRequest(op, input, output) output = &ModifyDBSubnetGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5712,24 +6031,25 @@ func (c *RDS) ModifyDBSubnetGroupRequest(input *ModifyDBSubnetGroupInput) (req * // API operation ModifyDBSubnetGroup for usage and error information. // // Returned Error Codes: -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * DBSubnetQuotaExceededFault +// * ErrCodeDBSubnetQuotaExceededFault "DBSubnetQuotaExceededFault" // Request would result in user exceeding the allowed number of subnets in a // DB subnet groups. // -// * SubnetAlreadyInUse +// * ErrCodeSubnetAlreadyInUse "SubnetAlreadyInUse" // The DB subnet is already in use in the Availability Zone. // -// * DBSubnetGroupDoesNotCoverEnoughAZs +// * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs" // Subnets in the DB subnet group should cover at least two Availability Zones // unless there is only one Availability Zone. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSubnetGroup func (c *RDS) ModifyDBSubnetGroup(input *ModifyDBSubnetGroupInput) (*ModifyDBSubnetGroupOutput, error) { req, out := c.ModifyDBSubnetGroupRequest(input) err := req.Send() @@ -5762,6 +6082,7 @@ const opModifyEventSubscription = "ModifyEventSubscription" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyEventSubscription func (c *RDS) ModifyEventSubscriptionRequest(input *ModifyEventSubscriptionInput) (req *request.Request, output *ModifyEventSubscriptionOutput) { op := &request.Operation{ Name: opModifyEventSubscription, @@ -5773,9 +6094,8 @@ func (c *RDS) ModifyEventSubscriptionRequest(input *ModifyEventSubscriptionInput input = &ModifyEventSubscriptionInput{} } - req = c.newRequest(op, input, output) output = &ModifyEventSubscriptionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5799,24 +6119,25 @@ func (c *RDS) ModifyEventSubscriptionRequest(input *ModifyEventSubscriptionInput // API operation ModifyEventSubscription for usage and error information. // // Returned Error Codes: -// * EventSubscriptionQuotaExceeded +// * ErrCodeEventSubscriptionQuotaExceededFault "EventSubscriptionQuotaExceeded" // You have reached the maximum number of event subscriptions. // -// * SubscriptionNotFound +// * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound" // The subscription name does not exist. // -// * SNSInvalidTopic +// * ErrCodeSNSInvalidTopicFault "SNSInvalidTopic" // SNS has responded that there is a problem with the SND topic specified. // -// * SNSNoAuthorization +// * ErrCodeSNSNoAuthorizationFault "SNSNoAuthorization" // You do not have permission to publish to the SNS topic ARN. // -// * SNSTopicArnNotFound +// * ErrCodeSNSTopicArnNotFoundFault "SNSTopicArnNotFound" // The SNS topic ARN does not exist. // -// * SubscriptionCategoryNotFound +// * ErrCodeSubscriptionCategoryNotFoundFault "SubscriptionCategoryNotFound" // The supplied category does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyEventSubscription func (c *RDS) ModifyEventSubscription(input *ModifyEventSubscriptionInput) (*ModifyEventSubscriptionOutput, error) { req, out := c.ModifyEventSubscriptionRequest(input) err := req.Send() @@ -5849,6 +6170,7 @@ const opModifyOptionGroup = "ModifyOptionGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyOptionGroup func (c *RDS) ModifyOptionGroupRequest(input *ModifyOptionGroupInput) (req *request.Request, output *ModifyOptionGroupOutput) { op := &request.Operation{ Name: opModifyOptionGroup, @@ -5860,9 +6182,8 @@ func (c *RDS) ModifyOptionGroupRequest(input *ModifyOptionGroupInput) (req *requ input = &ModifyOptionGroupInput{} } - req = c.newRequest(op, input, output) output = &ModifyOptionGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5878,12 +6199,13 @@ func (c *RDS) ModifyOptionGroupRequest(input *ModifyOptionGroupInput) (req *requ // API operation ModifyOptionGroup for usage and error information. // // Returned Error Codes: -// * InvalidOptionGroupStateFault +// * ErrCodeInvalidOptionGroupStateFault "InvalidOptionGroupStateFault" // The option group is not in the available state. // -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyOptionGroup func (c *RDS) ModifyOptionGroup(input *ModifyOptionGroupInput) (*ModifyOptionGroupOutput, error) { req, out := c.ModifyOptionGroupRequest(input) err := req.Send() @@ -5916,6 +6238,7 @@ const opPromoteReadReplica = "PromoteReadReplica" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PromoteReadReplica func (c *RDS) PromoteReadReplicaRequest(input *PromoteReadReplicaInput) (req *request.Request, output *PromoteReadReplicaOutput) { op := &request.Operation{ Name: opPromoteReadReplica, @@ -5927,9 +6250,8 @@ func (c *RDS) PromoteReadReplicaRequest(input *PromoteReadReplicaInput) (req *re input = &PromoteReadReplicaInput{} } - req = c.newRequest(op, input, output) output = &PromoteReadReplicaOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5937,7 +6259,7 @@ func (c *RDS) PromoteReadReplicaRequest(input *PromoteReadReplicaInput) (req *re // // Promotes a Read Replica DB instance to a standalone DB instance. // -// We recommend that you enable automated backups on your Read Replica before +// We recommend that you enable automated backups on your Read Replica before // promoting the Read Replica. This ensures that no backup is taken during the // promotion process. Once the instance is promoted to a primary instance, backups // are taken based on your backup settings. @@ -5950,12 +6272,13 @@ func (c *RDS) PromoteReadReplicaRequest(input *PromoteReadReplicaInput) (req *re // API operation PromoteReadReplica for usage and error information. // // Returned Error Codes: -// * InvalidDBInstanceState +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" // The specified DB instance is not in the available state. // -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PromoteReadReplica func (c *RDS) PromoteReadReplica(input *PromoteReadReplicaInput) (*PromoteReadReplicaOutput, error) { req, out := c.PromoteReadReplicaRequest(input) err := req.Send() @@ -5988,6 +6311,7 @@ const opPromoteReadReplicaDBCluster = "PromoteReadReplicaDBCluster" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PromoteReadReplicaDBCluster func (c *RDS) PromoteReadReplicaDBClusterRequest(input *PromoteReadReplicaDBClusterInput) (req *request.Request, output *PromoteReadReplicaDBClusterOutput) { op := &request.Operation{ Name: opPromoteReadReplicaDBCluster, @@ -5999,9 +6323,8 @@ func (c *RDS) PromoteReadReplicaDBClusterRequest(input *PromoteReadReplicaDBClus input = &PromoteReadReplicaDBClusterInput{} } - req = c.newRequest(op, input, output) output = &PromoteReadReplicaDBClusterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6017,12 +6340,13 @@ func (c *RDS) PromoteReadReplicaDBClusterRequest(input *PromoteReadReplicaDBClus // API operation PromoteReadReplicaDBCluster for usage and error information. // // Returned Error Codes: -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PromoteReadReplicaDBCluster func (c *RDS) PromoteReadReplicaDBCluster(input *PromoteReadReplicaDBClusterInput) (*PromoteReadReplicaDBClusterOutput, error) { req, out := c.PromoteReadReplicaDBClusterRequest(input) err := req.Send() @@ -6055,6 +6379,7 @@ const opPurchaseReservedDBInstancesOffering = "PurchaseReservedDBInstancesOfferi // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PurchaseReservedDBInstancesOffering func (c *RDS) PurchaseReservedDBInstancesOfferingRequest(input *PurchaseReservedDBInstancesOfferingInput) (req *request.Request, output *PurchaseReservedDBInstancesOfferingOutput) { op := &request.Operation{ Name: opPurchaseReservedDBInstancesOffering, @@ -6066,9 +6391,8 @@ func (c *RDS) PurchaseReservedDBInstancesOfferingRequest(input *PurchaseReserved input = &PurchaseReservedDBInstancesOfferingInput{} } - req = c.newRequest(op, input, output) output = &PurchaseReservedDBInstancesOfferingOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6084,15 +6408,16 @@ func (c *RDS) PurchaseReservedDBInstancesOfferingRequest(input *PurchaseReserved // API operation PurchaseReservedDBInstancesOffering for usage and error information. // // Returned Error Codes: -// * ReservedDBInstancesOfferingNotFound +// * ErrCodeReservedDBInstancesOfferingNotFoundFault "ReservedDBInstancesOfferingNotFound" // Specified offering does not exist. // -// * ReservedDBInstanceAlreadyExists +// * ErrCodeReservedDBInstanceAlreadyExistsFault "ReservedDBInstanceAlreadyExists" // User already has a reservation with the given identifier. // -// * ReservedDBInstanceQuotaExceeded +// * ErrCodeReservedDBInstanceQuotaExceededFault "ReservedDBInstanceQuotaExceeded" // Request would exceed the user's DB Instance quota. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PurchaseReservedDBInstancesOffering func (c *RDS) PurchaseReservedDBInstancesOffering(input *PurchaseReservedDBInstancesOfferingInput) (*PurchaseReservedDBInstancesOfferingOutput, error) { req, out := c.PurchaseReservedDBInstancesOfferingRequest(input) err := req.Send() @@ -6125,6 +6450,7 @@ const opRebootDBInstance = "RebootDBInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RebootDBInstance func (c *RDS) RebootDBInstanceRequest(input *RebootDBInstanceInput) (req *request.Request, output *RebootDBInstanceOutput) { op := &request.Operation{ Name: opRebootDBInstance, @@ -6136,9 +6462,8 @@ func (c *RDS) RebootDBInstanceRequest(input *RebootDBInstanceInput) (req *reques input = &RebootDBInstanceInput{} } - req = c.newRequest(op, input, output) output = &RebootDBInstanceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6152,10 +6477,10 @@ func (c *RDS) RebootDBInstanceRequest(input *RebootDBInstanceInput) (req *reques // will be conducted through a failover. An Amazon RDS event is created when // the reboot is completed. // -// If your DB instance is deployed in multiple Availability Zones, you can -// force a failover from one AZ to the other during the reboot. You might force -// a failover to test the availability of your DB instance deployment or to -// restore operations to the original AZ after a failover occurs. +// If your DB instance is deployed in multiple Availability Zones, you can force +// a failover from one AZ to the other during the reboot. You might force a +// failover to test the availability of your DB instance deployment or to restore +// operations to the original AZ after a failover occurs. // // The time required to reboot is a function of the specific database engine's // crash recovery process. To improve the reboot time, we recommend that you @@ -6170,12 +6495,13 @@ func (c *RDS) RebootDBInstanceRequest(input *RebootDBInstanceInput) (req *reques // API operation RebootDBInstance for usage and error information. // // Returned Error Codes: -// * InvalidDBInstanceState +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" // The specified DB instance is not in the available state. // -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RebootDBInstance func (c *RDS) RebootDBInstance(input *RebootDBInstanceInput) (*RebootDBInstanceOutput, error) { req, out := c.RebootDBInstanceRequest(input) err := req.Send() @@ -6208,6 +6534,7 @@ const opRemoveRoleFromDBCluster = "RemoveRoleFromDBCluster" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveRoleFromDBCluster func (c *RDS) RemoveRoleFromDBClusterRequest(input *RemoveRoleFromDBClusterInput) (req *request.Request, output *RemoveRoleFromDBClusterOutput) { op := &request.Operation{ Name: opRemoveRoleFromDBCluster, @@ -6219,11 +6546,10 @@ func (c *RDS) RemoveRoleFromDBClusterRequest(input *RemoveRoleFromDBClusterInput input = &RemoveRoleFromDBClusterInput{} } + output = &RemoveRoleFromDBClusterOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RemoveRoleFromDBClusterOutput{} - req.Data = output return } @@ -6241,16 +6567,17 @@ func (c *RDS) RemoveRoleFromDBClusterRequest(input *RemoveRoleFromDBClusterInput // API operation RemoveRoleFromDBCluster for usage and error information. // // Returned Error Codes: -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // -// * DBClusterRoleNotFound +// * ErrCodeDBClusterRoleNotFoundFault "DBClusterRoleNotFound" // The specified IAM role Amazon Resource Name (ARN) is not associated with // the specified DB cluster. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveRoleFromDBCluster func (c *RDS) RemoveRoleFromDBCluster(input *RemoveRoleFromDBClusterInput) (*RemoveRoleFromDBClusterOutput, error) { req, out := c.RemoveRoleFromDBClusterRequest(input) err := req.Send() @@ -6283,6 +6610,7 @@ const opRemoveSourceIdentifierFromSubscription = "RemoveSourceIdentifierFromSubs // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveSourceIdentifierFromSubscription func (c *RDS) RemoveSourceIdentifierFromSubscriptionRequest(input *RemoveSourceIdentifierFromSubscriptionInput) (req *request.Request, output *RemoveSourceIdentifierFromSubscriptionOutput) { op := &request.Operation{ Name: opRemoveSourceIdentifierFromSubscription, @@ -6294,9 +6622,8 @@ func (c *RDS) RemoveSourceIdentifierFromSubscriptionRequest(input *RemoveSourceI input = &RemoveSourceIdentifierFromSubscriptionInput{} } - req = c.newRequest(op, input, output) output = &RemoveSourceIdentifierFromSubscriptionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6312,12 +6639,13 @@ func (c *RDS) RemoveSourceIdentifierFromSubscriptionRequest(input *RemoveSourceI // API operation RemoveSourceIdentifierFromSubscription for usage and error information. // // Returned Error Codes: -// * SubscriptionNotFound +// * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound" // The subscription name does not exist. // -// * SourceNotFound +// * ErrCodeSourceNotFoundFault "SourceNotFound" // The requested source could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveSourceIdentifierFromSubscription func (c *RDS) RemoveSourceIdentifierFromSubscription(input *RemoveSourceIdentifierFromSubscriptionInput) (*RemoveSourceIdentifierFromSubscriptionOutput, error) { req, out := c.RemoveSourceIdentifierFromSubscriptionRequest(input) err := req.Send() @@ -6350,6 +6678,7 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveTagsFromResource func (c *RDS) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) { op := &request.Operation{ Name: opRemoveTagsFromResource, @@ -6361,11 +6690,10 @@ func (c *RDS) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) input = &RemoveTagsFromResourceInput{} } + output = &RemoveTagsFromResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RemoveTagsFromResourceOutput{} - req.Data = output return } @@ -6384,12 +6712,16 @@ func (c *RDS) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) // API operation RemoveTagsFromResource for usage and error information. // // Returned Error Codes: -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // -// * DBSnapshotNotFound +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" // DBSnapshotIdentifier does not refer to an existing DB snapshot. // +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" +// DBClusterIdentifier does not refer to an existing DB cluster. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveTagsFromResource func (c *RDS) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { req, out := c.RemoveTagsFromResourceRequest(input) err := req.Send() @@ -6422,6 +6754,7 @@ const opResetDBClusterParameterGroup = "ResetDBClusterParameterGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ResetDBClusterParameterGroup func (c *RDS) ResetDBClusterParameterGroupRequest(input *ResetDBClusterParameterGroupInput) (req *request.Request, output *DBClusterParameterGroupNameMessage) { op := &request.Operation{ Name: opResetDBClusterParameterGroup, @@ -6433,9 +6766,8 @@ func (c *RDS) ResetDBClusterParameterGroupRequest(input *ResetDBClusterParameter input = &ResetDBClusterParameterGroupInput{} } - req = c.newRequest(op, input, output) output = &DBClusterParameterGroupNameMessage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6446,7 +6778,7 @@ func (c *RDS) ResetDBClusterParameterGroupRequest(input *ResetDBClusterParameter // and ApplyMethod. To reset the entire DB cluster parameter group, specify // the DBClusterParameterGroupName and ResetAllParameters parameters. // -// When resetting the entire group, dynamic parameters are updated immediately +// When resetting the entire group, dynamic parameters are updated immediately // and static parameters are set to pending-reboot to take effect on the next // DB instance restart or RebootDBInstance request. You must call RebootDBInstance // for every DB instance in your DB cluster that you want the updated static @@ -6463,12 +6795,13 @@ func (c *RDS) ResetDBClusterParameterGroupRequest(input *ResetDBClusterParameter // API operation ResetDBClusterParameterGroup for usage and error information. // // Returned Error Codes: -// * InvalidDBParameterGroupState +// * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState" // The DB parameter group cannot be deleted because it is in use. // -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ResetDBClusterParameterGroup func (c *RDS) ResetDBClusterParameterGroup(input *ResetDBClusterParameterGroupInput) (*DBClusterParameterGroupNameMessage, error) { req, out := c.ResetDBClusterParameterGroupRequest(input) err := req.Send() @@ -6501,6 +6834,7 @@ const opResetDBParameterGroup = "ResetDBParameterGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ResetDBParameterGroup func (c *RDS) ResetDBParameterGroupRequest(input *ResetDBParameterGroupInput) (req *request.Request, output *DBParameterGroupNameMessage) { op := &request.Operation{ Name: opResetDBParameterGroup, @@ -6512,9 +6846,8 @@ func (c *RDS) ResetDBParameterGroupRequest(input *ResetDBParameterGroupInput) (r input = &ResetDBParameterGroupInput{} } - req = c.newRequest(op, input, output) output = &DBParameterGroupNameMessage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6536,12 +6869,13 @@ func (c *RDS) ResetDBParameterGroupRequest(input *ResetDBParameterGroupInput) (r // API operation ResetDBParameterGroup for usage and error information. // // Returned Error Codes: -// * InvalidDBParameterGroupState +// * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState" // The DB parameter group cannot be deleted because it is in use. // -// * DBParameterGroupNotFound +// * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName does not refer to an existing DB parameter group. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ResetDBParameterGroup func (c *RDS) ResetDBParameterGroup(input *ResetDBParameterGroupInput) (*DBParameterGroupNameMessage, error) { req, out := c.ResetDBParameterGroupRequest(input) err := req.Send() @@ -6574,6 +6908,7 @@ const opRestoreDBClusterFromS3 = "RestoreDBClusterFromS3" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBClusterFromS3 func (c *RDS) RestoreDBClusterFromS3Request(input *RestoreDBClusterFromS3Input) (req *request.Request, output *RestoreDBClusterFromS3Output) { op := &request.Operation{ Name: opRestoreDBClusterFromS3, @@ -6585,9 +6920,8 @@ func (c *RDS) RestoreDBClusterFromS3Request(input *RestoreDBClusterFromS3Input) input = &RestoreDBClusterFromS3Input{} } - req = c.newRequest(op, input, output) output = &RestoreDBClusterFromS3Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6606,54 +6940,55 @@ func (c *RDS) RestoreDBClusterFromS3Request(input *RestoreDBClusterFromS3Input) // API operation RestoreDBClusterFromS3 for usage and error information. // // Returned Error Codes: -// * DBClusterAlreadyExistsFault +// * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault" // User already has a DB cluster with the given identifier. // -// * DBClusterQuotaExceededFault +// * ErrCodeDBClusterQuotaExceededFault "DBClusterQuotaExceededFault" // User attempted to create a new DB cluster and the user has already reached // the maximum allowed DB cluster quota. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // DB subnet group does not cover all Availability Zones after it is created // because users' change. // -// * InvalidDBClusterStateFault +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" // The DB cluster is not in a valid state. // -// * InvalidDBSubnetGroupStateFault +// * ErrCodeInvalidDBSubnetGroupStateFault "InvalidDBSubnetGroupStateFault" // The DB subnet group cannot be deleted because it is in use. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // -// * InvalidS3BucketFault +// * ErrCodeInvalidS3BucketFault "InvalidS3BucketFault" // The specified Amazon S3 bucket name could not be found or Amazon RDS is not // authorized to access the specified Amazon S3 bucket. Verify the SourceS3BucketName // and S3IngestionRoleArn values and try again. // -// * DBClusterParameterGroupNotFound +// * ErrCodeDBClusterParameterGroupNotFoundFault "DBClusterParameterGroupNotFound" // DBClusterParameterGroupName does not refer to an existing DB Cluster parameter // group. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // Error accessing KMS key. // -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // -// * InsufficientStorageClusterCapacity +// * ErrCodeInsufficientStorageClusterCapacityFault "InsufficientStorageClusterCapacity" // There is insufficient storage available for the current action. You may be // able to resolve this error by updating your subnet group to use different // Availability Zones that have more storage available. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBClusterFromS3 func (c *RDS) RestoreDBClusterFromS3(input *RestoreDBClusterFromS3Input) (*RestoreDBClusterFromS3Output, error) { req, out := c.RestoreDBClusterFromS3Request(input) err := req.Send() @@ -6686,6 +7021,7 @@ const opRestoreDBClusterFromSnapshot = "RestoreDBClusterFromSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBClusterFromSnapshot func (c *RDS) RestoreDBClusterFromSnapshotRequest(input *RestoreDBClusterFromSnapshotInput) (req *request.Request, output *RestoreDBClusterFromSnapshotOutput) { op := &request.Operation{ Name: opRestoreDBClusterFromSnapshot, @@ -6697,9 +7033,8 @@ func (c *RDS) RestoreDBClusterFromSnapshotRequest(input *RestoreDBClusterFromSna input = &RestoreDBClusterFromSnapshotInput{} } - req = c.newRequest(op, input, output) output = &RestoreDBClusterFromSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6721,64 +7056,65 @@ func (c *RDS) RestoreDBClusterFromSnapshotRequest(input *RestoreDBClusterFromSna // API operation RestoreDBClusterFromSnapshot for usage and error information. // // Returned Error Codes: -// * DBClusterAlreadyExistsFault +// * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault" // User already has a DB cluster with the given identifier. // -// * DBClusterQuotaExceededFault +// * ErrCodeDBClusterQuotaExceededFault "DBClusterQuotaExceededFault" // User attempted to create a new DB cluster and the user has already reached // the maximum allowed DB cluster quota. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * DBSnapshotNotFound +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" // DBSnapshotIdentifier does not refer to an existing DB snapshot. // -// * DBClusterSnapshotNotFoundFault +// * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault" // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. // -// * InsufficientDBClusterCapacityFault +// * ErrCodeInsufficientDBClusterCapacityFault "InsufficientDBClusterCapacityFault" // The DB cluster does not have enough capacity for the current operation. // -// * InsufficientStorageClusterCapacity +// * ErrCodeInsufficientStorageClusterCapacityFault "InsufficientStorageClusterCapacity" // There is insufficient storage available for the current action. You may be // able to resolve this error by updating your subnet group to use different // Availability Zones that have more storage available. // -// * InvalidDBSnapshotState +// * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState" // The state of the DB snapshot does not allow deletion. // -// * InvalidDBClusterSnapshotStateFault +// * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault" // The supplied value is not a valid DB cluster snapshot state. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // DB subnet group does not cover all Availability Zones after it is created // because users' change. // -// * InvalidRestoreFault +// * ErrCodeInvalidRestoreFault "InvalidRestoreFault" // Cannot restore from vpc backup to non-vpc DB instance. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // Error accessing KMS key. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBClusterFromSnapshot func (c *RDS) RestoreDBClusterFromSnapshot(input *RestoreDBClusterFromSnapshotInput) (*RestoreDBClusterFromSnapshotOutput, error) { req, out := c.RestoreDBClusterFromSnapshotRequest(input) err := req.Send() @@ -6811,6 +7147,7 @@ const opRestoreDBClusterToPointInTime = "RestoreDBClusterToPointInTime" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBClusterToPointInTime func (c *RDS) RestoreDBClusterToPointInTimeRequest(input *RestoreDBClusterToPointInTimeInput) (req *request.Request, output *RestoreDBClusterToPointInTimeOutput) { op := &request.Operation{ Name: opRestoreDBClusterToPointInTime, @@ -6822,9 +7159,8 @@ func (c *RDS) RestoreDBClusterToPointInTimeRequest(input *RestoreDBClusterToPoin input = &RestoreDBClusterToPointInTimeInput{} } - req = c.newRequest(op, input, output) output = &RestoreDBClusterToPointInTimeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6847,64 +7183,65 @@ func (c *RDS) RestoreDBClusterToPointInTimeRequest(input *RestoreDBClusterToPoin // API operation RestoreDBClusterToPointInTime for usage and error information. // // Returned Error Codes: -// * DBClusterAlreadyExistsFault +// * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault" // User already has a DB cluster with the given identifier. // -// * DBClusterQuotaExceededFault +// * ErrCodeDBClusterQuotaExceededFault "DBClusterQuotaExceededFault" // User attempted to create a new DB cluster and the user has already reached // the maximum allowed DB cluster quota. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * DBClusterNotFoundFault +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier does not refer to an existing DB cluster. // -// * DBClusterSnapshotNotFoundFault +// * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault" // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. // -// * InsufficientDBClusterCapacityFault +// * ErrCodeInsufficientDBClusterCapacityFault "InsufficientDBClusterCapacityFault" // The DB cluster does not have enough capacity for the current operation. // -// * InsufficientStorageClusterCapacity +// * ErrCodeInsufficientStorageClusterCapacityFault "InsufficientStorageClusterCapacity" // There is insufficient storage available for the current action. You may be // able to resolve this error by updating your subnet group to use different // Availability Zones that have more storage available. // -// * InvalidDBSnapshotState +// * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState" // The state of the DB snapshot does not allow deletion. // -// * InvalidDBClusterSnapshotStateFault +// * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault" // The supplied value is not a valid DB cluster snapshot state. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // DB subnet group does not cover all Availability Zones after it is created // because users' change. // -// * InvalidRestoreFault +// * ErrCodeInvalidRestoreFault "InvalidRestoreFault" // Cannot restore from vpc backup to non-vpc DB instance. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // Error accessing KMS key. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBClusterToPointInTime func (c *RDS) RestoreDBClusterToPointInTime(input *RestoreDBClusterToPointInTimeInput) (*RestoreDBClusterToPointInTimeOutput, error) { req, out := c.RestoreDBClusterToPointInTimeRequest(input) err := req.Send() @@ -6937,6 +7274,7 @@ const opRestoreDBInstanceFromDBSnapshot = "RestoreDBInstanceFromDBSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBInstanceFromDBSnapshot func (c *RDS) RestoreDBInstanceFromDBSnapshotRequest(input *RestoreDBInstanceFromDBSnapshotInput) (req *request.Request, output *RestoreDBInstanceFromDBSnapshotOutput) { op := &request.Operation{ Name: opRestoreDBInstanceFromDBSnapshot, @@ -6948,9 +7286,8 @@ func (c *RDS) RestoreDBInstanceFromDBSnapshotRequest(input *RestoreDBInstanceFro input = &RestoreDBInstanceFromDBSnapshotInput{} } - req = c.newRequest(op, input, output) output = &RestoreDBInstanceFromDBSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -6984,69 +7321,70 @@ func (c *RDS) RestoreDBInstanceFromDBSnapshotRequest(input *RestoreDBInstanceFro // API operation RestoreDBInstanceFromDBSnapshot for usage and error information. // // Returned Error Codes: -// * DBInstanceAlreadyExists +// * ErrCodeDBInstanceAlreadyExistsFault "DBInstanceAlreadyExists" // User already has a DB instance with the given identifier. // -// * DBSnapshotNotFound +// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound" // DBSnapshotIdentifier does not refer to an existing DB snapshot. // -// * InstanceQuotaExceeded +// * ErrCodeInstanceQuotaExceededFault "InstanceQuotaExceeded" // Request would result in user exceeding the allowed number of DB instances. // -// * InsufficientDBInstanceCapacity +// * ErrCodeInsufficientDBInstanceCapacityFault "InsufficientDBInstanceCapacity" // Specified DB instance class is not available in the specified Availability // Zone. // -// * InvalidDBSnapshotState +// * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState" // The state of the DB snapshot does not allow deletion. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // DB subnet group does not cover all Availability Zones after it is created // because users' change. // -// * InvalidRestoreFault +// * ErrCodeInvalidRestoreFault "InvalidRestoreFault" // Cannot restore from vpc backup to non-vpc DB instance. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * DBSubnetGroupDoesNotCoverEnoughAZs +// * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs" // Subnets in the DB subnet group should cover at least two Availability Zones // unless there is only one Availability Zone. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // -// * ProvisionedIopsNotAvailableInAZFault +// * ErrCodeProvisionedIopsNotAvailableInAZFault "ProvisionedIopsNotAvailableInAZFault" // Provisioned IOPS not available in the specified Availability Zone. // -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // -// * StorageTypeNotSupported +// * ErrCodeStorageTypeNotSupportedFault "StorageTypeNotSupported" // StorageType specified cannot be associated with the DB Instance. // -// * AuthorizationNotFound +// * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound" // Specified CIDRIP or EC2 security group is not authorized for the specified // DB security group. // // RDS may not also be authorized via IAM to perform necessary actions on your // behalf. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // Error accessing KMS key. // -// * DBSecurityGroupNotFound +// * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound" // DBSecurityGroupName does not refer to an existing DB security group. // -// * DomainNotFoundFault +// * ErrCodeDomainNotFoundFault "DomainNotFoundFault" // Domain does not refer to an existing Active Directory Domain. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBInstanceFromDBSnapshot func (c *RDS) RestoreDBInstanceFromDBSnapshot(input *RestoreDBInstanceFromDBSnapshotInput) (*RestoreDBInstanceFromDBSnapshotOutput, error) { req, out := c.RestoreDBInstanceFromDBSnapshotRequest(input) err := req.Send() @@ -7079,6 +7417,7 @@ const opRestoreDBInstanceToPointInTime = "RestoreDBInstanceToPointInTime" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBInstanceToPointInTime func (c *RDS) RestoreDBInstanceToPointInTimeRequest(input *RestoreDBInstanceToPointInTimeInput) (req *request.Request, output *RestoreDBInstanceToPointInTimeOutput) { op := &request.Operation{ Name: opRestoreDBInstanceToPointInTime, @@ -7090,9 +7429,8 @@ func (c *RDS) RestoreDBInstanceToPointInTimeRequest(input *RestoreDBInstanceToPo input = &RestoreDBInstanceToPointInTimeInput{} } - req = c.newRequest(op, input, output) output = &RestoreDBInstanceToPointInTimeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7103,8 +7441,8 @@ func (c *RDS) RestoreDBInstanceToPointInTimeRequest(input *RestoreDBInstanceToPo // property. You can restore to a point up to the number of days specified by // the BackupRetentionPeriod property. // -// The target database is created with most of the original configuration, -// but in a system-selected availability zone, with the default security group, +// The target database is created with most of the original configuration, but +// in a system-selected availability zone, with the default security group, // the default subnet group, and the default DB parameter group. By default, // the new DB instance is created as a single-AZ deployment except when the // instance is a SQL Server instance that has an option group that is associated @@ -7119,73 +7457,74 @@ func (c *RDS) RestoreDBInstanceToPointInTimeRequest(input *RestoreDBInstanceToPo // API operation RestoreDBInstanceToPointInTime for usage and error information. // // Returned Error Codes: -// * DBInstanceAlreadyExists +// * ErrCodeDBInstanceAlreadyExistsFault "DBInstanceAlreadyExists" // User already has a DB instance with the given identifier. // -// * DBInstanceNotFound +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier does not refer to an existing DB instance. // -// * InstanceQuotaExceeded +// * ErrCodeInstanceQuotaExceededFault "InstanceQuotaExceeded" // Request would result in user exceeding the allowed number of DB instances. // -// * InsufficientDBInstanceCapacity +// * ErrCodeInsufficientDBInstanceCapacityFault "InsufficientDBInstanceCapacity" // Specified DB instance class is not available in the specified Availability // Zone. // -// * InvalidDBInstanceState +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" // The specified DB instance is not in the available state. // -// * PointInTimeRestoreNotEnabled +// * ErrCodePointInTimeRestoreNotEnabledFault "PointInTimeRestoreNotEnabled" // SourceDBInstanceIdentifier refers to a DB instance with BackupRetentionPeriod // equal to 0. // -// * StorageQuotaExceeded +// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // Request would result in user exceeding the allowed amount of storage available // across all DB instances. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // DB subnet group does not cover all Availability Zones after it is created // because users' change. // -// * InvalidRestoreFault +// * ErrCodeInvalidRestoreFault "InvalidRestoreFault" // Cannot restore from vpc backup to non-vpc DB instance. // -// * DBSubnetGroupNotFoundFault +// * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName does not refer to an existing DB subnet group. // -// * DBSubnetGroupDoesNotCoverEnoughAZs +// * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs" // Subnets in the DB subnet group should cover at least two Availability Zones // unless there is only one Availability Zone. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that // are not all in a common VPC. // -// * ProvisionedIopsNotAvailableInAZFault +// * ErrCodeProvisionedIopsNotAvailableInAZFault "ProvisionedIopsNotAvailableInAZFault" // Provisioned IOPS not available in the specified Availability Zone. // -// * OptionGroupNotFoundFault +// * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault" // The specified option group could not be found. // -// * StorageTypeNotSupported +// * ErrCodeStorageTypeNotSupportedFault "StorageTypeNotSupported" // StorageType specified cannot be associated with the DB Instance. // -// * AuthorizationNotFound +// * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound" // Specified CIDRIP or EC2 security group is not authorized for the specified // DB security group. // // RDS may not also be authorized via IAM to perform necessary actions on your // behalf. // -// * KMSKeyNotAccessibleFault +// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" // Error accessing KMS key. // -// * DBSecurityGroupNotFound +// * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound" // DBSecurityGroupName does not refer to an existing DB security group. // -// * DomainNotFoundFault +// * ErrCodeDomainNotFoundFault "DomainNotFoundFault" // Domain does not refer to an existing Active Directory Domain. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBInstanceToPointInTime func (c *RDS) RestoreDBInstanceToPointInTime(input *RestoreDBInstanceToPointInTimeInput) (*RestoreDBInstanceToPointInTimeOutput, error) { req, out := c.RestoreDBInstanceToPointInTimeRequest(input) err := req.Send() @@ -7218,6 +7557,7 @@ const opRevokeDBSecurityGroupIngress = "RevokeDBSecurityGroupIngress" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RevokeDBSecurityGroupIngress func (c *RDS) RevokeDBSecurityGroupIngressRequest(input *RevokeDBSecurityGroupIngressInput) (req *request.Request, output *RevokeDBSecurityGroupIngressOutput) { op := &request.Operation{ Name: opRevokeDBSecurityGroupIngress, @@ -7229,9 +7569,8 @@ func (c *RDS) RevokeDBSecurityGroupIngressRequest(input *RevokeDBSecurityGroupIn input = &RevokeDBSecurityGroupIngressInput{} } - req = c.newRequest(op, input, output) output = &RevokeDBSecurityGroupIngressOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -7250,19 +7589,20 @@ func (c *RDS) RevokeDBSecurityGroupIngressRequest(input *RevokeDBSecurityGroupIn // API operation RevokeDBSecurityGroupIngress for usage and error information. // // Returned Error Codes: -// * DBSecurityGroupNotFound +// * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound" // DBSecurityGroupName does not refer to an existing DB security group. // -// * AuthorizationNotFound +// * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound" // Specified CIDRIP or EC2 security group is not authorized for the specified // DB security group. // // RDS may not also be authorized via IAM to perform necessary actions on your // behalf. // -// * InvalidDBSecurityGroupState +// * ErrCodeInvalidDBSecurityGroupStateFault "InvalidDBSecurityGroupState" // The state of the DB security group does not allow deletion. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RevokeDBSecurityGroupIngress func (c *RDS) RevokeDBSecurityGroupIngress(input *RevokeDBSecurityGroupIngressInput) (*RevokeDBSecurityGroupIngressOutput, error) { req, out := c.RevokeDBSecurityGroupIngressRequest(input) err := req.Send() @@ -7271,6 +7611,7 @@ func (c *RDS) RevokeDBSecurityGroupIngress(input *RevokeDBSecurityGroupIngressIn // Describes a quota for an AWS account, for example, the number of DB instances // allowed. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AccountQuota type AccountQuota struct { _ struct{} `type:"structure"` @@ -7294,6 +7635,25 @@ func (s AccountQuota) GoString() string { return s.String() } +// SetAccountQuotaName sets the AccountQuotaName field's value. +func (s *AccountQuota) SetAccountQuotaName(v string) *AccountQuota { + s.AccountQuotaName = &v + return s +} + +// SetMax sets the Max field's value. +func (s *AccountQuota) SetMax(v int64) *AccountQuota { + s.Max = &v + return s +} + +// SetUsed sets the Used field's value. +func (s *AccountQuota) SetUsed(v int64) *AccountQuota { + s.Used = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddRoleToDBClusterMessage type AddRoleToDBClusterInput struct { _ struct{} `type:"structure"` @@ -7335,6 +7695,19 @@ func (s *AddRoleToDBClusterInput) Validate() error { return nil } +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *AddRoleToDBClusterInput) SetDBClusterIdentifier(v string) *AddRoleToDBClusterInput { + s.DBClusterIdentifier = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *AddRoleToDBClusterInput) SetRoleArn(v string) *AddRoleToDBClusterInput { + s.RoleArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddRoleToDBClusterOutput type AddRoleToDBClusterOutput struct { _ struct{} `type:"structure"` } @@ -7349,6 +7722,7 @@ func (s AddRoleToDBClusterOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddSourceIdentifierToSubscriptionMessage type AddSourceIdentifierToSubscriptionInput struct { _ struct{} `type:"structure"` @@ -7358,16 +7732,17 @@ type AddSourceIdentifierToSubscriptionInput struct { // // Constraints: // - // If the source type is a DB instance, then a DBInstanceIdentifier must - // be supplied. + // * If the source type is a DB instance, then a DBInstanceIdentifier must + // be supplied. // - // If the source type is a DB security group, a DBSecurityGroupName must - // be supplied. + // * If the source type is a DB security group, a DBSecurityGroupName must + // be supplied. // - // If the source type is a DB parameter group, a DBParameterGroupName must - // be supplied. + // * If the source type is a DB parameter group, a DBParameterGroupName must + // be supplied. // - // If the source type is a DB snapshot, a DBSnapshotIdentifier must be supplied. + // * If the source type is a DB snapshot, a DBSnapshotIdentifier must be + // supplied. // // SourceIdentifier is a required field SourceIdentifier *string `type:"string" required:"true"` @@ -7405,6 +7780,19 @@ func (s *AddSourceIdentifierToSubscriptionInput) Validate() error { return nil } +// SetSourceIdentifier sets the SourceIdentifier field's value. +func (s *AddSourceIdentifierToSubscriptionInput) SetSourceIdentifier(v string) *AddSourceIdentifierToSubscriptionInput { + s.SourceIdentifier = &v + return s +} + +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *AddSourceIdentifierToSubscriptionInput) SetSubscriptionName(v string) *AddSourceIdentifierToSubscriptionInput { + s.SubscriptionName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddSourceIdentifierToSubscriptionResult type AddSourceIdentifierToSubscriptionOutput struct { _ struct{} `type:"structure"` @@ -7423,6 +7811,13 @@ func (s AddSourceIdentifierToSubscriptionOutput) GoString() string { return s.String() } +// SetEventSubscription sets the EventSubscription field's value. +func (s *AddSourceIdentifierToSubscriptionOutput) SetEventSubscription(v *EventSubscription) *AddSourceIdentifierToSubscriptionOutput { + s.EventSubscription = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddTagsToResourceMessage type AddTagsToResourceInput struct { _ struct{} `type:"structure"` @@ -7465,6 +7860,19 @@ func (s *AddTagsToResourceInput) Validate() error { return nil } +// SetResourceName sets the ResourceName field's value. +func (s *AddTagsToResourceInput) SetResourceName(v string) *AddTagsToResourceInput { + s.ResourceName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsToResourceInput) SetTags(v []*Tag) *AddTagsToResourceInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddTagsToResourceOutput type AddTagsToResourceOutput struct { _ struct{} `type:"structure"` } @@ -7479,6 +7887,7 @@ func (s AddTagsToResourceOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ApplyPendingMaintenanceActionMessage type ApplyPendingMaintenanceActionInput struct { _ struct{} `type:"structure"` @@ -7494,12 +7903,12 @@ type ApplyPendingMaintenanceActionInput struct { // // Valid values: // - // immediate - Apply the maintenance action immediately. + // * immediate - Apply the maintenance action immediately. // - // next-maintenance - Apply the maintenance action during the next maintenance - // window for the resource. + // * next-maintenance - Apply the maintenance action during the next maintenance + // window for the resource. // - // undo-opt-in - Cancel any existing next-maintenance opt-in requests. + // * undo-opt-in - Cancel any existing next-maintenance opt-in requests. // // OptInType is a required field OptInType *string `type:"string" required:"true"` @@ -7541,6 +7950,25 @@ func (s *ApplyPendingMaintenanceActionInput) Validate() error { return nil } +// SetApplyAction sets the ApplyAction field's value. +func (s *ApplyPendingMaintenanceActionInput) SetApplyAction(v string) *ApplyPendingMaintenanceActionInput { + s.ApplyAction = &v + return s +} + +// SetOptInType sets the OptInType field's value. +func (s *ApplyPendingMaintenanceActionInput) SetOptInType(v string) *ApplyPendingMaintenanceActionInput { + s.OptInType = &v + return s +} + +// SetResourceIdentifier sets the ResourceIdentifier field's value. +func (s *ApplyPendingMaintenanceActionInput) SetResourceIdentifier(v string) *ApplyPendingMaintenanceActionInput { + s.ResourceIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ApplyPendingMaintenanceActionResult type ApplyPendingMaintenanceActionOutput struct { _ struct{} `type:"structure"` @@ -7558,6 +7986,13 @@ func (s ApplyPendingMaintenanceActionOutput) GoString() string { return s.String() } +// SetResourcePendingMaintenanceActions sets the ResourcePendingMaintenanceActions field's value. +func (s *ApplyPendingMaintenanceActionOutput) SetResourcePendingMaintenanceActions(v *ResourcePendingMaintenanceActions) *ApplyPendingMaintenanceActionOutput { + s.ResourcePendingMaintenanceActions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AuthorizeDBSecurityGroupIngressMessage type AuthorizeDBSecurityGroupIngressInput struct { _ struct{} `type:"structure"` @@ -7610,20 +8045,51 @@ func (s *AuthorizeDBSecurityGroupIngressInput) Validate() error { return nil } +// SetCIDRIP sets the CIDRIP field's value. +func (s *AuthorizeDBSecurityGroupIngressInput) SetCIDRIP(v string) *AuthorizeDBSecurityGroupIngressInput { + s.CIDRIP = &v + return s +} + +// SetDBSecurityGroupName sets the DBSecurityGroupName field's value. +func (s *AuthorizeDBSecurityGroupIngressInput) SetDBSecurityGroupName(v string) *AuthorizeDBSecurityGroupIngressInput { + s.DBSecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupId sets the EC2SecurityGroupId field's value. +func (s *AuthorizeDBSecurityGroupIngressInput) SetEC2SecurityGroupId(v string) *AuthorizeDBSecurityGroupIngressInput { + s.EC2SecurityGroupId = &v + return s +} + +// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value. +func (s *AuthorizeDBSecurityGroupIngressInput) SetEC2SecurityGroupName(v string) *AuthorizeDBSecurityGroupIngressInput { + s.EC2SecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value. +func (s *AuthorizeDBSecurityGroupIngressInput) SetEC2SecurityGroupOwnerId(v string) *AuthorizeDBSecurityGroupIngressInput { + s.EC2SecurityGroupOwnerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AuthorizeDBSecurityGroupIngressResult type AuthorizeDBSecurityGroupIngressOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // DescribeDBSecurityGroups + // * DescribeDBSecurityGroups // - // AuthorizeDBSecurityGroupIngress + // * AuthorizeDBSecurityGroupIngress // - // CreateDBSecurityGroup + // * CreateDBSecurityGroup // - // RevokeDBSecurityGroupIngress + // * RevokeDBSecurityGroupIngress // - // This data type is used as a response element in the DescribeDBSecurityGroups + // This data type is used as a response element in the DescribeDBSecurityGroups // action. DBSecurityGroup *DBSecurityGroup `type:"structure"` } @@ -7638,11 +8104,18 @@ func (s AuthorizeDBSecurityGroupIngressOutput) GoString() string { return s.String() } +// SetDBSecurityGroup sets the DBSecurityGroup field's value. +func (s *AuthorizeDBSecurityGroupIngressOutput) SetDBSecurityGroup(v *DBSecurityGroup) *AuthorizeDBSecurityGroupIngressOutput { + s.DBSecurityGroup = v + return s +} + // Contains Availability Zone information. // -// This data type is used as an element in the following data type: +// This data type is used as an element in the following data type: // -// OrderableDBInstanceOption +// * OrderableDBInstanceOption +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AvailabilityZone type AvailabilityZone struct { _ struct{} `type:"structure"` @@ -7660,7 +8133,14 @@ func (s AvailabilityZone) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *AvailabilityZone) SetName(v string) *AvailabilityZone { + s.Name = &v + return s +} + // A CA certificate for an AWS account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/Certificate type Certificate struct { _ struct{} `type:"structure"` @@ -7693,7 +8173,44 @@ func (s Certificate) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *Certificate) SetCertificateArn(v string) *Certificate { + s.CertificateArn = &v + return s +} + +// SetCertificateIdentifier sets the CertificateIdentifier field's value. +func (s *Certificate) SetCertificateIdentifier(v string) *Certificate { + s.CertificateIdentifier = &v + return s +} + +// SetCertificateType sets the CertificateType field's value. +func (s *Certificate) SetCertificateType(v string) *Certificate { + s.CertificateType = &v + return s +} + +// SetThumbprint sets the Thumbprint field's value. +func (s *Certificate) SetThumbprint(v string) *Certificate { + s.Thumbprint = &v + return s +} + +// SetValidFrom sets the ValidFrom field's value. +func (s *Certificate) SetValidFrom(v time.Time) *Certificate { + s.ValidFrom = &v + return s +} + +// SetValidTill sets the ValidTill field's value. +func (s *Certificate) SetValidTill(v time.Time) *Certificate { + s.ValidTill = &v + return s +} + // This data type is used as a response element in the action DescribeDBEngineVersions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CharacterSet type CharacterSet struct { _ struct{} `type:"structure"` @@ -7714,6 +8231,19 @@ func (s CharacterSet) GoString() string { return s.String() } +// SetCharacterSetDescription sets the CharacterSetDescription field's value. +func (s *CharacterSet) SetCharacterSetDescription(v string) *CharacterSet { + s.CharacterSetDescription = &v + return s +} + +// SetCharacterSetName sets the CharacterSetName field's value. +func (s *CharacterSet) SetCharacterSetName(v string) *CharacterSet { + s.CharacterSetName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBClusterParameterGroupMessage type CopyDBClusterParameterGroupInput struct { _ struct{} `type:"structure"` @@ -7723,14 +8253,14 @@ type CopyDBClusterParameterGroupInput struct { // // Constraints: // - // Must specify a valid DB cluster parameter group. + // * Must specify a valid DB cluster parameter group. // - // If the source DB cluster parameter group is in the same region as the - // copy, specify a valid DB parameter group identifier, for example my-db-cluster-param-group, - // or a valid ARN. + // * If the source DB cluster parameter group is in the same region as the + // copy, specify a valid DB parameter group identifier, for example my-db-cluster-param-group, + // or a valid ARN. // - // If the source DB parameter group is in a different region than the copy, - // specify a valid DB cluster parameter group ARN, for example arn:aws:rds:us-east-1:123456789012:cluster-pg:custom-cluster-group1. + // * If the source DB parameter group is in a different region than the copy, + // specify a valid DB cluster parameter group ARN, for example arn:aws:rds:us-east-1:123456789012:cluster-pg:custom-cluster-group1. // // SourceDBClusterParameterGroupIdentifier is a required field SourceDBClusterParameterGroupIdentifier *string `type:"string" required:"true"` @@ -7747,15 +8277,15 @@ type CopyDBClusterParameterGroupInput struct { // // Constraints: // - // Cannot be null, empty, or blank + // * Cannot be null, empty, or blank // - // Must contain from 1 to 255 alphanumeric characters or hyphens + // * Must contain from 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: my-cluster-param-group1 + // Example: my-cluster-param-group1 // // TargetDBClusterParameterGroupIdentifier is a required field TargetDBClusterParameterGroupIdentifier *string `type:"string" required:"true"` @@ -7790,6 +8320,31 @@ func (s *CopyDBClusterParameterGroupInput) Validate() error { return nil } +// SetSourceDBClusterParameterGroupIdentifier sets the SourceDBClusterParameterGroupIdentifier field's value. +func (s *CopyDBClusterParameterGroupInput) SetSourceDBClusterParameterGroupIdentifier(v string) *CopyDBClusterParameterGroupInput { + s.SourceDBClusterParameterGroupIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CopyDBClusterParameterGroupInput) SetTags(v []*Tag) *CopyDBClusterParameterGroupInput { + s.Tags = v + return s +} + +// SetTargetDBClusterParameterGroupDescription sets the TargetDBClusterParameterGroupDescription field's value. +func (s *CopyDBClusterParameterGroupInput) SetTargetDBClusterParameterGroupDescription(v string) *CopyDBClusterParameterGroupInput { + s.TargetDBClusterParameterGroupDescription = &v + return s +} + +// SetTargetDBClusterParameterGroupIdentifier sets the TargetDBClusterParameterGroupIdentifier field's value. +func (s *CopyDBClusterParameterGroupInput) SetTargetDBClusterParameterGroupIdentifier(v string) *CopyDBClusterParameterGroupInput { + s.TargetDBClusterParameterGroupIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBClusterParameterGroupResult type CopyDBClusterParameterGroupOutput struct { _ struct{} `type:"structure"` @@ -7812,25 +8367,96 @@ func (s CopyDBClusterParameterGroupOutput) GoString() string { return s.String() } +// SetDBClusterParameterGroup sets the DBClusterParameterGroup field's value. +func (s *CopyDBClusterParameterGroupOutput) SetDBClusterParameterGroup(v *DBClusterParameterGroup) *CopyDBClusterParameterGroupOutput { + s.DBClusterParameterGroup = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBClusterSnapshotMessage type CopyDBClusterSnapshotInput struct { _ struct{} `type:"structure"` + CopyTags *bool `type:"boolean"` + + // DestinationRegion is used for presigning the request to a given region. + DestinationRegion *string `type:"string"` + + // The AWS KMS key ID for an encrypted DB cluster snapshot. The KMS key ID is + // the Amazon Resource Name (ARN), KMS key identifier, or the KMS key alias + // for the KMS encryption key. + // + // If you copy an unencrypted DB cluster snapshot and specify a value for the + // KmsKeyId parameter, Amazon RDS encrypts the target DB cluster snapshot using + // the specified KMS encryption key. + // + // If you copy an encrypted DB cluster snapshot from your AWS account, you can + // specify a value for KmsKeyId to encrypt the copy with a new KMS encryption + // key. If you don't specify a value for KmsKeyId, then the copy of the DB cluster + // snapshot is encrypted with the same KMS key as the source DB cluster snapshot. + // + // If you copy an encrypted DB cluster snapshot that is shared from another + // AWS account, then you must specify a value for KmsKeyId. + // + // To copy an encrypted DB cluster snapshot to another region, you must set + // KmsKeyId to the KMS key ID you want to use to encrypt the copy of the DB + // cluster snapshot in the destination region. KMS encryption keys are specific + // to the region that they are created in, and you cannot use encryption keys + // from one region in another region. + KmsKeyId *string `type:"string"` + + // The URL that contains a Signature Version 4 signed request for the CopyDBClusterSnapshot + // API action in the AWS region that contains the source DB cluster snapshot + // to copy. The PreSignedUrl parameter must be used when copying an encrypted + // DB cluster snapshot from another AWS region. + // + // The pre-signed URL must be a valid request for the CopyDBSClusterSnapshot + // API action that can be executed in the source region that contains the encrypted + // DB cluster snapshot to be copied. The pre-signed URL request must contain + // the following parameter values: + // + // * KmsKeyId - The KMS key identifier for the key to use to encrypt the + // copy of the DB cluster snapshot in the destination region. This is the + // same identifier for both the CopyDBClusterSnapshot action that is called + // in the destination region, and the action contained in the pre-signed + // URL. + // + // * DestinationRegion - The name of the region that the DB cluster snapshot + // will be created in. + // + // * SourceDBClusterSnapshotIdentifier - The DB cluster snapshot identifier + // for the encrypted DB cluster snapshot to be copied. This identifier must + // be in the Amazon Resource Name (ARN) format for the source region. For + // example, if you are copying an encrypted DB cluster snapshot from the + // us-west-2 region, then your SourceDBClusterSnapshotIdentifier looks like + // the following example: arn:aws:rds:us-west-2:123456789012:cluster-snapshot:aurora-cluster1-snapshot-20161115. + // + // To learn how to generate a Signature Version 4 signed request, see Authenticating + // Requests: Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) + // and Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). + PreSignedUrl *string `type:"string"` + // The identifier of the DB cluster snapshot to copy. This parameter is not // case-sensitive. // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Example: my-cluster-snapshot1 + // Example: my-cluster-snapshot1 // // SourceDBClusterSnapshotIdentifier is a required field SourceDBClusterSnapshotIdentifier *string `type:"string" required:"true"` + // SourceRegion is the source region where the resource exists. This is not + // sent over the wire and is only used for presigning. This value should always + // have the same region as the source ARN. + SourceRegion *string `type:"string" ignore:"true"` + // A list of tags. Tags []*Tag `locationNameList:"Tag" type:"list"` @@ -7839,13 +8465,13 @@ type CopyDBClusterSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Example: my-cluster-snapshot2 + // Example: my-cluster-snapshot2 // // TargetDBClusterSnapshotIdentifier is a required field TargetDBClusterSnapshotIdentifier *string `type:"string" required:"true"` @@ -7877,16 +8503,65 @@ func (s *CopyDBClusterSnapshotInput) Validate() error { return nil } +// SetCopyTags sets the CopyTags field's value. +func (s *CopyDBClusterSnapshotInput) SetCopyTags(v bool) *CopyDBClusterSnapshotInput { + s.CopyTags = &v + return s +} + +// SetDestinationRegion sets the DestinationRegion field's value. +func (s *CopyDBClusterSnapshotInput) SetDestinationRegion(v string) *CopyDBClusterSnapshotInput { + s.DestinationRegion = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CopyDBClusterSnapshotInput) SetKmsKeyId(v string) *CopyDBClusterSnapshotInput { + s.KmsKeyId = &v + return s +} + +// SetPreSignedUrl sets the PreSignedUrl field's value. +func (s *CopyDBClusterSnapshotInput) SetPreSignedUrl(v string) *CopyDBClusterSnapshotInput { + s.PreSignedUrl = &v + return s +} + +// SetSourceDBClusterSnapshotIdentifier sets the SourceDBClusterSnapshotIdentifier field's value. +func (s *CopyDBClusterSnapshotInput) SetSourceDBClusterSnapshotIdentifier(v string) *CopyDBClusterSnapshotInput { + s.SourceDBClusterSnapshotIdentifier = &v + return s +} + +// SetSourceRegion sets the SourceRegion field's value. +func (s *CopyDBClusterSnapshotInput) SetSourceRegion(v string) *CopyDBClusterSnapshotInput { + s.SourceRegion = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CopyDBClusterSnapshotInput) SetTags(v []*Tag) *CopyDBClusterSnapshotInput { + s.Tags = v + return s +} + +// SetTargetDBClusterSnapshotIdentifier sets the TargetDBClusterSnapshotIdentifier field's value. +func (s *CopyDBClusterSnapshotInput) SetTargetDBClusterSnapshotIdentifier(v string) *CopyDBClusterSnapshotInput { + s.TargetDBClusterSnapshotIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBClusterSnapshotResult type CopyDBClusterSnapshotOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBClusterSnapshot + // * CreateDBClusterSnapshot // - // DeleteDBClusterSnapshot + // * DeleteDBClusterSnapshot // - // This data type is used as a response element in the DescribeDBClusterSnapshots + // This data type is used as a response element in the DescribeDBClusterSnapshots // action. DBClusterSnapshot *DBClusterSnapshot `type:"structure"` } @@ -7901,6 +8576,13 @@ func (s CopyDBClusterSnapshotOutput) GoString() string { return s.String() } +// SetDBClusterSnapshot sets the DBClusterSnapshot field's value. +func (s *CopyDBClusterSnapshotOutput) SetDBClusterSnapshot(v *DBClusterSnapshot) *CopyDBClusterSnapshotOutput { + s.DBClusterSnapshot = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBParameterGroupMessage type CopyDBParameterGroupInput struct { _ struct{} `type:"structure"` @@ -7910,10 +8592,10 @@ type CopyDBParameterGroupInput struct { // // Constraints: // - // Must specify a valid DB parameter group. + // * Must specify a valid DB parameter group. // - // Must specify a valid DB parameter group identifier, for example my-db-param-group, - // or a valid ARN. + // * Must specify a valid DB parameter group identifier, for example my-db-param-group, + // or a valid ARN. // // SourceDBParameterGroupIdentifier is a required field SourceDBParameterGroupIdentifier *string `type:"string" required:"true"` @@ -7930,15 +8612,15 @@ type CopyDBParameterGroupInput struct { // // Constraints: // - // Cannot be null, empty, or blank + // * Cannot be null, empty, or blank // - // Must contain from 1 to 255 alphanumeric characters or hyphens + // * Must contain from 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: my-db-parameter-group + // Example: my-db-parameter-group // // TargetDBParameterGroupIdentifier is a required field TargetDBParameterGroupIdentifier *string `type:"string" required:"true"` @@ -7973,6 +8655,31 @@ func (s *CopyDBParameterGroupInput) Validate() error { return nil } +// SetSourceDBParameterGroupIdentifier sets the SourceDBParameterGroupIdentifier field's value. +func (s *CopyDBParameterGroupInput) SetSourceDBParameterGroupIdentifier(v string) *CopyDBParameterGroupInput { + s.SourceDBParameterGroupIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CopyDBParameterGroupInput) SetTags(v []*Tag) *CopyDBParameterGroupInput { + s.Tags = v + return s +} + +// SetTargetDBParameterGroupDescription sets the TargetDBParameterGroupDescription field's value. +func (s *CopyDBParameterGroupInput) SetTargetDBParameterGroupDescription(v string) *CopyDBParameterGroupInput { + s.TargetDBParameterGroupDescription = &v + return s +} + +// SetTargetDBParameterGroupIdentifier sets the TargetDBParameterGroupIdentifier field's value. +func (s *CopyDBParameterGroupInput) SetTargetDBParameterGroupIdentifier(v string) *CopyDBParameterGroupInput { + s.TargetDBParameterGroupIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBParameterGroupResult type CopyDBParameterGroupOutput struct { _ struct{} `type:"structure"` @@ -7994,6 +8701,13 @@ func (s CopyDBParameterGroupOutput) GoString() string { return s.String() } +// SetDBParameterGroup sets the DBParameterGroup field's value. +func (s *CopyDBParameterGroupOutput) SetDBParameterGroup(v *DBParameterGroup) *CopyDBParameterGroupOutput { + s.DBParameterGroup = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBSnapshotMessage type CopyDBSnapshotInput struct { _ struct{} `type:"structure"` @@ -8001,9 +8715,12 @@ type CopyDBSnapshotInput struct { // otherwise false. The default is false. CopyTags *bool `type:"boolean"` - // The AWS Key Management Service (AWS KMS) key identifier for an encrypted - // DB snapshot. The KMS key identifier is the Amazon Resource Name (ARN) or - // the KMS key alias for the KMS encryption key. + // DestinationRegion is used for presigning the request to a given region. + DestinationRegion *string `type:"string"` + + // The AWS KMS key ID for an encrypted DB snapshot. The KMS key ID is the Amazon + // Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS + // encryption key. // // If you copy an unencrypted DB snapshot and specify a value for the KmsKeyId // parameter, Amazon RDS encrypts the target DB snapshot using the specified @@ -8011,36 +8728,88 @@ type CopyDBSnapshotInput struct { // // If you copy an encrypted DB snapshot from your AWS account, you can specify // a value for KmsKeyId to encrypt the copy with a new KMS encryption key. If - // you don't specify a value for KmsKeyId then the copy of the DB snapshot is - // encrypted with the same KMS key as the source DB snapshot. + // you don't specify a value for KmsKeyId, then the copy of the DB snapshot + // is encrypted with the same KMS key as the source DB snapshot. + // + // If you copy an encrypted snapshot to a different AWS region, then you must + // specify a KMS key for the destination AWS region. // // If you copy an encrypted DB snapshot that is shared from another AWS account, // then you must specify a value for KmsKeyId. + // + // To copy an encrypted DB snapshot to another region, you must set KmsKeyId + // to the KMS key ID used to encrypt the copy of the DB snapshot in the destination + // region. KMS encryption keys are specific to the region that they are created + // in, and you cannot use encryption keys from one region in another region. KmsKeyId *string `type:"string"` + // The URL that contains a Signature Version 4 signed request for the CopyDBSnapshot + // API action in the AWS region that contains the source DB snapshot to copy. + // The PreSignedUrl parameter must be used when copying an encrypted DB snapshot + // from another AWS region. + // + // The presigned URL must be a valid request for the CopyDBSnapshot API action + // that can be executed in the source region that contains the encrypted DB + // snapshot to be copied. The presigned URL request must contain the following + // parameter values: + // + // * DestinationRegion - The AWS Region that the encrypted DB snapshot will + // be copied to. This region is the same one where the CopyDBSnapshot action + // is called that contains this presigned URL. + // + // For example, if you copy an encrypted DB snapshot from the us-west-2 region + // to the us-east-1 region, then you will call the CopyDBSnapshot action + // in the us-east-1 region and provide a presigned URL that contains a call + // to the CopyDBSnapshot action in the us-west-2 region. For this example, + // the DestinationRegion in the presigned URL must be set to the us-east-1 + // region. + // + // * KmsKeyId - The KMS key identifier for the key to use to encrypt the + // copy of the DB snapshot in the destination region. This is the same identifier + // for both the CopyDBSnapshot action that is called in the destination region, + // and the action contained in the presigned URL. + // + // * SourceDBSnapshotIdentifier - The DB snapshot identifier for the encrypted + // snapshot to be copied. This identifier must be in the Amazon Resource + // Name (ARN) format for the source region. For example, if you are copying + // an encrypted DB snapshot from the us-west-2 region, then your SourceDBSnapshotIdentifier + // would look like Example: arn:aws:rds:us-west-2:123456789012:snapshot:mysql-instance1-snapshot-20161115. + // + // To learn how to generate a Signature Version 4 signed request, see Authenticating + // Requests: Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) + // and Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). + PreSignedUrl *string `type:"string"` + // The identifier for the source DB snapshot. // // If you are copying from a shared manual DB snapshot, this must be the ARN // of the shared DB snapshot. // + // You cannot copy an encrypted, shared DB snapshot from one AWS region to another. + // // Constraints: // - // Must specify a valid system snapshot in the "available" state. + // * Must specify a valid system snapshot in the "available" state. // - // If the source snapshot is in the same region as the copy, specify a valid - // DB snapshot identifier. + // * If the source snapshot is in the same region as the copy, specify a + // valid DB snapshot identifier. // - // If the source snapshot is in a different region than the copy, specify - // a valid DB snapshot ARN. For more information, go to Copying a DB Snapshot - // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CopySnapshot.html). + // * If the source snapshot is in a different region than the copy, specify + // a valid DB snapshot ARN. For more information, go to Copying a DB Snapshot + // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CopySnapshot.html). // - // Example: rds:mydb-2012-04-02-00-01 + // Example: rds:mydb-2012-04-02-00-01 // - // Example: arn:aws:rds:rr-regn-1:123456789012:snapshot:mysql-instance1-snapshot-20130805 + // Example: arn:aws:rds:us-west-2:123456789012:snapshot:mysql-instance1-snapshot-20130805 // // SourceDBSnapshotIdentifier is a required field SourceDBSnapshotIdentifier *string `type:"string" required:"true"` + // SourceRegion is the source region where the resource exists. This is not + // sent over the wire and is only used for presigning. This value should always + // have the same region as the source ARN. + SourceRegion *string `type:"string" ignore:"true"` + // A list of tags. Tags []*Tag `locationNameList:"Tag" type:"list"` @@ -8048,15 +8817,15 @@ type CopyDBSnapshotInput struct { // // Constraints: // - // Cannot be null, empty, or blank + // * Cannot be null, empty, or blank // - // Must contain from 1 to 255 alphanumeric characters or hyphens + // * Must contain from 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: my-db-snapshot + // Example: my-db-snapshot // // TargetDBSnapshotIdentifier is a required field TargetDBSnapshotIdentifier *string `type:"string" required:"true"` @@ -8088,17 +8857,65 @@ func (s *CopyDBSnapshotInput) Validate() error { return nil } +// SetCopyTags sets the CopyTags field's value. +func (s *CopyDBSnapshotInput) SetCopyTags(v bool) *CopyDBSnapshotInput { + s.CopyTags = &v + return s +} + +// SetDestinationRegion sets the DestinationRegion field's value. +func (s *CopyDBSnapshotInput) SetDestinationRegion(v string) *CopyDBSnapshotInput { + s.DestinationRegion = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CopyDBSnapshotInput) SetKmsKeyId(v string) *CopyDBSnapshotInput { + s.KmsKeyId = &v + return s +} + +// SetPreSignedUrl sets the PreSignedUrl field's value. +func (s *CopyDBSnapshotInput) SetPreSignedUrl(v string) *CopyDBSnapshotInput { + s.PreSignedUrl = &v + return s +} + +// SetSourceDBSnapshotIdentifier sets the SourceDBSnapshotIdentifier field's value. +func (s *CopyDBSnapshotInput) SetSourceDBSnapshotIdentifier(v string) *CopyDBSnapshotInput { + s.SourceDBSnapshotIdentifier = &v + return s +} + +// SetSourceRegion sets the SourceRegion field's value. +func (s *CopyDBSnapshotInput) SetSourceRegion(v string) *CopyDBSnapshotInput { + s.SourceRegion = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CopyDBSnapshotInput) SetTags(v []*Tag) *CopyDBSnapshotInput { + s.Tags = v + return s +} + +// SetTargetDBSnapshotIdentifier sets the TargetDBSnapshotIdentifier field's value. +func (s *CopyDBSnapshotInput) SetTargetDBSnapshotIdentifier(v string) *CopyDBSnapshotInput { + s.TargetDBSnapshotIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBSnapshotResult type CopyDBSnapshotOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBSnapshot + // * CreateDBSnapshot // - // DeleteDBSnapshot + // * DeleteDBSnapshot // - // This data type is used as a response element in the DescribeDBSnapshots - // action. + // This data type is used as a response element in the DescribeDBSnapshots action. DBSnapshot *DBSnapshot `type:"structure"` } @@ -8112,6 +8929,13 @@ func (s CopyDBSnapshotOutput) GoString() string { return s.String() } +// SetDBSnapshot sets the DBSnapshot field's value. +func (s *CopyDBSnapshotOutput) SetDBSnapshot(v *DBSnapshot) *CopyDBSnapshotOutput { + s.DBSnapshot = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyOptionGroupMessage type CopyOptionGroupInput struct { _ struct{} `type:"structure"` @@ -8120,14 +8944,14 @@ type CopyOptionGroupInput struct { // // Constraints: // - // Must specify a valid option group. + // * Must specify a valid option group. // - // If the source option group is in the same region as the copy, specify - // a valid option group identifier, for example my-option-group, or a valid - // ARN. + // * If the source option group is in the same region as the copy, specify + // a valid option group identifier, for example my-option-group, or a valid + // ARN. // - // If the source option group is in a different region than the copy, specify - // a valid option group ARN, for example arn:aws:rds:us-west-2:123456789012:og:special-options. + // * If the source option group is in a different region than the copy, specify + // a valid option group ARN, for example arn:aws:rds:us-west-2:123456789012:og:special-options. // // SourceOptionGroupIdentifier is a required field SourceOptionGroupIdentifier *string `type:"string" required:"true"` @@ -8144,15 +8968,15 @@ type CopyOptionGroupInput struct { // // Constraints: // - // Cannot be null, empty, or blank + // * Cannot be null, empty, or blank // - // Must contain from 1 to 255 alphanumeric characters or hyphens + // * Must contain from 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: my-option-group + // Example: my-option-group // // TargetOptionGroupIdentifier is a required field TargetOptionGroupIdentifier *string `type:"string" required:"true"` @@ -8187,6 +9011,31 @@ func (s *CopyOptionGroupInput) Validate() error { return nil } +// SetSourceOptionGroupIdentifier sets the SourceOptionGroupIdentifier field's value. +func (s *CopyOptionGroupInput) SetSourceOptionGroupIdentifier(v string) *CopyOptionGroupInput { + s.SourceOptionGroupIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CopyOptionGroupInput) SetTags(v []*Tag) *CopyOptionGroupInput { + s.Tags = v + return s +} + +// SetTargetOptionGroupDescription sets the TargetOptionGroupDescription field's value. +func (s *CopyOptionGroupInput) SetTargetOptionGroupDescription(v string) *CopyOptionGroupInput { + s.TargetOptionGroupDescription = &v + return s +} + +// SetTargetOptionGroupIdentifier sets the TargetOptionGroupIdentifier field's value. +func (s *CopyOptionGroupInput) SetTargetOptionGroupIdentifier(v string) *CopyOptionGroupInput { + s.TargetOptionGroupIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyOptionGroupResult type CopyOptionGroupOutput struct { _ struct{} `type:"structure"` @@ -8203,6 +9052,13 @@ func (s CopyOptionGroupOutput) GoString() string { return s.String() } +// SetOptionGroup sets the OptionGroup field's value. +func (s *CopyOptionGroupOutput) SetOptionGroup(v *OptionGroup) *CopyOptionGroupOutput { + s.OptionGroup = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterMessage type CreateDBClusterInput struct { _ struct{} `type:"structure"` @@ -8218,7 +9074,7 @@ type CreateDBClusterInput struct { // // Constraints: // - // Must be a value from 1 to 35 + // * Must be a value from 1 to 35 BackupRetentionPeriod *int64 `type:"integer"` // A value that indicates that the DB cluster should be associated with the @@ -8229,13 +9085,13 @@ type CreateDBClusterInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Example: my-cluster1 + // Example: my-cluster1 // // DBClusterIdentifier is a required field DBClusterIdentifier *string `type:"string" required:"true"` @@ -8245,11 +9101,11 @@ type CreateDBClusterInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBClusterParameterGroupName *string `type:"string"` // A DB subnet group to associate with this DB cluster. @@ -8265,6 +9121,9 @@ type CreateDBClusterInput struct { // you are creating. DatabaseName *string `type:"string"` + // DestinationRegion is used for presigning the request to a given region. + DestinationRegion *string `type:"string"` + // The name of the database engine to be used for this DB cluster. // // Valid Values: aurora @@ -8274,7 +9133,7 @@ type CreateDBClusterInput struct { // The version number of the database engine to use. // - // Aurora + // Aurora // // Example: 5.6.10a EngineVersion *string `type:"string"` @@ -8284,12 +9143,16 @@ type CreateDBClusterInput struct { // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption // key. If you are creating a DB cluster with the same AWS account that owns // the KMS encryption key used to encrypt the new DB cluster, then you can use - // the KMS key alias instead of the ARN for the KM encryption key. + // the KMS key alias instead of the ARN for the KMS encryption key. // // If the StorageEncrypted parameter is true, and you do not specify a value // for the KmsKeyId parameter, then Amazon RDS will use your default encryption // key. AWS KMS creates the default encryption key for your AWS account. Your // AWS account has a different default encryption key for each AWS region. + // + // If you create a Read Replica of an encrypted DB cluster in another region, + // you must set KmsKeyId to a KMS key ID that is valid in the destination region. + // This key is used to encrypt the Read Replica in that region. KmsKeyId *string `type:"string"` // The password for the master database user. This password can contain any @@ -8302,11 +9165,11 @@ type CreateDBClusterInput struct { // // Constraints: // - // Must be 1 to 16 alphanumeric characters. + // * Must be 1 to 16 alphanumeric characters. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot be a reserved word for the chosen database engine. + // * Cannot be a reserved word for the chosen database engine. MasterUsername *string `type:"string"` // A value that indicates that the DB cluster should be associated with the @@ -8318,9 +9181,39 @@ type CreateDBClusterInput struct { // The port number on which the instances in the DB cluster accept connections. // - // Default: 3306 + // Default: 3306 Port *int64 `type:"integer"` + // A URL that contains a Signature Version 4 signed request for the CreateDBCluster + // action to be called in the source region where the DB cluster will be replicated + // from. You only need to specify PreSignedUrl when you are performing cross-region + // replication from an encrypted DB cluster. + // + // The pre-signed URL must be a valid request for the CreateDBCluster API action + // that can be executed in the source region that contains the encrypted DB + // cluster to be copied. + // + // The pre-signed URL request must contain the following parameter values: + // + // * KmsKeyId - The KMS key identifier for the key to use to encrypt the + // copy of the DB cluster in the destination region. This should refer to + // the same KMS key for both the CreateDBCluster action that is called in + // the destination region, and the action contained in the pre-signed URL. + // + // * DestinationRegion - The name of the region that Aurora Read Replica + // will be created in. + // + // * ReplicationSourceIdentifier - The DB cluster identifier for the encrypted + // DB cluster to be copied. This identifier must be in the Amazon Resource + // Name (ARN) format for the source region. For example, if you are copying + // an encrypted DB cluster from the us-west-2 region, then your ReplicationSourceIdentifier + // would look like Example: arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1. + // + // To learn how to generate a Signature Version 4 signed request, see Authenticating + // Requests: Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) + // and Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). + PreSignedUrl *string `type:"string"` + // The daily time range during which automated backups are created if automated // backups are enabled using the BackupRetentionPeriod parameter. // @@ -8331,19 +9224,19 @@ type CreateDBClusterInput struct { // // Constraints: // - // Must be in the format hh24:mi-hh24:mi. + // * Must be in the format hh24:mi-hh24:mi. // - // Times should be in Universal Coordinated Time (UTC). + // * Times should be in Universal Coordinated Time (UTC). // - // Must not conflict with the preferred maintenance window. + // * Must not conflict with the preferred maintenance window. // - // Must be at least 30 minutes. + // * Must be at least 30 minutes. PreferredBackupWindow *string `type:"string"` // The weekly time range during which system maintenance can occur, in Universal // Coordinated Time (UTC). // - // Format: ddd:hh24:mi-ddd:hh24:mi + // Format: ddd:hh24:mi-ddd:hh24:mi // // Default: A 30-minute window selected at random from an 8-hour block of time // per region, occurring on a random day of the week. To see the time blocks @@ -8355,10 +9248,15 @@ type CreateDBClusterInput struct { // Constraints: Minimum 30-minute window. PreferredMaintenanceWindow *string `type:"string"` - // The Amazon Resource Name (ARN) of the source DB cluster if this DB cluster - // is created as a Read Replica. + // The Amazon Resource Name (ARN) of the source DB instance or DB cluster if + // this DB cluster is created as a Read Replica. ReplicationSourceIdentifier *string `type:"string"` + // SourceRegion is the source region where the resource exists. This is not + // sent over the wire and is only used for presigning. This value should always + // have the same region as the source ARN. + SourceRegion *string `type:"string" ignore:"true"` + // Specifies whether the DB cluster is encrypted. StorageEncrypted *bool `type:"boolean"` @@ -8395,25 +9293,163 @@ func (s *CreateDBClusterInput) Validate() error { return nil } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *CreateDBClusterInput) SetAvailabilityZones(v []*string) *CreateDBClusterInput { + s.AvailabilityZones = v + return s +} + +// SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value. +func (s *CreateDBClusterInput) SetBackupRetentionPeriod(v int64) *CreateDBClusterInput { + s.BackupRetentionPeriod = &v + return s +} + +// SetCharacterSetName sets the CharacterSetName field's value. +func (s *CreateDBClusterInput) SetCharacterSetName(v string) *CreateDBClusterInput { + s.CharacterSetName = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *CreateDBClusterInput) SetDBClusterIdentifier(v string) *CreateDBClusterInput { + s.DBClusterIdentifier = &v + return s +} + +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *CreateDBClusterInput) SetDBClusterParameterGroupName(v string) *CreateDBClusterInput { + s.DBClusterParameterGroupName = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *CreateDBClusterInput) SetDBSubnetGroupName(v string) *CreateDBClusterInput { + s.DBSubnetGroupName = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *CreateDBClusterInput) SetDatabaseName(v string) *CreateDBClusterInput { + s.DatabaseName = &v + return s +} + +// SetDestinationRegion sets the DestinationRegion field's value. +func (s *CreateDBClusterInput) SetDestinationRegion(v string) *CreateDBClusterInput { + s.DestinationRegion = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *CreateDBClusterInput) SetEngine(v string) *CreateDBClusterInput { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *CreateDBClusterInput) SetEngineVersion(v string) *CreateDBClusterInput { + s.EngineVersion = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateDBClusterInput) SetKmsKeyId(v string) *CreateDBClusterInput { + s.KmsKeyId = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *CreateDBClusterInput) SetMasterUserPassword(v string) *CreateDBClusterInput { + s.MasterUserPassword = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *CreateDBClusterInput) SetMasterUsername(v string) *CreateDBClusterInput { + s.MasterUsername = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *CreateDBClusterInput) SetOptionGroupName(v string) *CreateDBClusterInput { + s.OptionGroupName = &v + return s +} + +// SetPort sets the Port field's value. +func (s *CreateDBClusterInput) SetPort(v int64) *CreateDBClusterInput { + s.Port = &v + return s +} + +// SetPreSignedUrl sets the PreSignedUrl field's value. +func (s *CreateDBClusterInput) SetPreSignedUrl(v string) *CreateDBClusterInput { + s.PreSignedUrl = &v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *CreateDBClusterInput) SetPreferredBackupWindow(v string) *CreateDBClusterInput { + s.PreferredBackupWindow = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *CreateDBClusterInput) SetPreferredMaintenanceWindow(v string) *CreateDBClusterInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetReplicationSourceIdentifier sets the ReplicationSourceIdentifier field's value. +func (s *CreateDBClusterInput) SetReplicationSourceIdentifier(v string) *CreateDBClusterInput { + s.ReplicationSourceIdentifier = &v + return s +} + +// SetSourceRegion sets the SourceRegion field's value. +func (s *CreateDBClusterInput) SetSourceRegion(v string) *CreateDBClusterInput { + s.SourceRegion = &v + return s +} + +// SetStorageEncrypted sets the StorageEncrypted field's value. +func (s *CreateDBClusterInput) SetStorageEncrypted(v bool) *CreateDBClusterInput { + s.StorageEncrypted = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDBClusterInput) SetTags(v []*Tag) *CreateDBClusterInput { + s.Tags = v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *CreateDBClusterInput) SetVpcSecurityGroupIds(v []*string) *CreateDBClusterInput { + s.VpcSecurityGroupIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterResult type CreateDBClusterOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster + // * CreateDBCluster // - // DeleteDBCluster + // * DeleteDBCluster // - // FailoverDBCluster + // * FailoverDBCluster // - // ModifyDBCluster + // * ModifyDBCluster // - // RestoreDBClusterFromSnapshot + // * RestoreDBClusterFromSnapshot // - // RestoreDBClusterToPointInTime + // * RestoreDBClusterToPointInTime // - // This data type is used as a response element in the DescribeDBClusters - // action. + // This data type is used as a response element in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` } @@ -8427,6 +9463,13 @@ func (s CreateDBClusterOutput) GoString() string { return s.String() } +// SetDBCluster sets the DBCluster field's value. +func (s *CreateDBClusterOutput) SetDBCluster(v *DBCluster) *CreateDBClusterOutput { + s.DBCluster = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterParameterGroupMessage type CreateDBClusterParameterGroupInput struct { _ struct{} `type:"structure"` @@ -8434,13 +9477,13 @@ type CreateDBClusterParameterGroupInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // This value is stored as a lowercase string. + // This value is stored as a lowercase string. // // DBClusterParameterGroupName is a required field DBClusterParameterGroupName *string `type:"string" required:"true"` @@ -8491,6 +9534,31 @@ func (s *CreateDBClusterParameterGroupInput) Validate() error { return nil } +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *CreateDBClusterParameterGroupInput) SetDBClusterParameterGroupName(v string) *CreateDBClusterParameterGroupInput { + s.DBClusterParameterGroupName = &v + return s +} + +// SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value. +func (s *CreateDBClusterParameterGroupInput) SetDBParameterGroupFamily(v string) *CreateDBClusterParameterGroupInput { + s.DBParameterGroupFamily = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateDBClusterParameterGroupInput) SetDescription(v string) *CreateDBClusterParameterGroupInput { + s.Description = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDBClusterParameterGroupInput) SetTags(v []*Tag) *CreateDBClusterParameterGroupInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterParameterGroupResult type CreateDBClusterParameterGroupOutput struct { _ struct{} `type:"structure"` @@ -8513,6 +9581,13 @@ func (s CreateDBClusterParameterGroupOutput) GoString() string { return s.String() } +// SetDBClusterParameterGroup sets the DBClusterParameterGroup field's value. +func (s *CreateDBClusterParameterGroupOutput) SetDBClusterParameterGroup(v *DBClusterParameterGroup) *CreateDBClusterParameterGroupOutput { + s.DBClusterParameterGroup = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterSnapshotMessage type CreateDBClusterSnapshotInput struct { _ struct{} `type:"structure"` @@ -8521,13 +9596,13 @@ type CreateDBClusterSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Example: my-cluster1 + // Example: my-cluster1 // // DBClusterIdentifier is a required field DBClusterIdentifier *string `type:"string" required:"true"` @@ -8537,13 +9612,13 @@ type CreateDBClusterSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Example: my-cluster1-snapshot1 + // Example: my-cluster1-snapshot1 // // DBClusterSnapshotIdentifier is a required field DBClusterSnapshotIdentifier *string `type:"string" required:"true"` @@ -8578,16 +9653,35 @@ func (s *CreateDBClusterSnapshotInput) Validate() error { return nil } +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *CreateDBClusterSnapshotInput) SetDBClusterIdentifier(v string) *CreateDBClusterSnapshotInput { + s.DBClusterIdentifier = &v + return s +} + +// SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value. +func (s *CreateDBClusterSnapshotInput) SetDBClusterSnapshotIdentifier(v string) *CreateDBClusterSnapshotInput { + s.DBClusterSnapshotIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDBClusterSnapshotInput) SetTags(v []*Tag) *CreateDBClusterSnapshotInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterSnapshotResult type CreateDBClusterSnapshotOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBClusterSnapshot + // * CreateDBClusterSnapshot // - // DeleteDBClusterSnapshot + // * DeleteDBClusterSnapshot // - // This data type is used as a response element in the DescribeDBClusterSnapshots + // This data type is used as a response element in the DescribeDBClusterSnapshots // action. DBClusterSnapshot *DBClusterSnapshot `type:"structure"` } @@ -8602,6 +9696,13 @@ func (s CreateDBClusterSnapshotOutput) GoString() string { return s.String() } +// SetDBClusterSnapshot sets the DBClusterSnapshot field's value. +func (s *CreateDBClusterSnapshotOutput) SetDBClusterSnapshot(v *DBClusterSnapshot) *CreateDBClusterSnapshotOutput { + s.DBClusterSnapshot = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBInstanceMessage type CreateDBInstanceInput struct { _ struct{} `type:"structure"` @@ -8610,23 +9711,23 @@ type CreateDBInstanceInput struct { // // Type: Integer // - // MySQL + // MySQL // // Constraints: Must be an integer from 5 to 6144. // - // MariaDB + // MariaDB // // Constraints: Must be an integer from 5 to 6144. // - // PostgreSQL + // PostgreSQL // // Constraints: Must be an integer from 5 to 6144. // - // Oracle + // Oracle // // Constraints: Must be an integer from 10 to 6144. // - // SQL Server + // SQL Server // // Constraints: Must be an integer from 200 to 4096 (Standard Edition and Enterprise // Edition) or from 20 to 4096 (Express Edition and Web Edition) @@ -8644,9 +9745,9 @@ type CreateDBInstanceInput struct { // // Default: A random, system-chosen Availability Zone in the endpoint's region. // - // Example: us-east-1d + // Example: us-east-1d // - // Constraint: The AvailabilityZone parameter cannot be specified if the MultiAZ + // Constraint: The AvailabilityZone parameter cannot be specified if the MultiAZ // parameter is set to true. The specified Availability Zone must be in the // same region as the current endpoint. AvailabilityZone *string `type:"string"` @@ -8659,9 +9760,9 @@ type CreateDBInstanceInput struct { // // Constraints: // - // Must be a value from 0 to 35 + // * Must be a value from 0 to 35 // - // Cannot be set to 0 if the DB instance is a source to Read Replicas + // * Cannot be set to 0 if the DB instance is a source to Read Replicas BackupRetentionPeriod *int64 `type:"integer"` // For supported engines, indicates that the DB instance should be associated @@ -8679,14 +9780,15 @@ type CreateDBInstanceInput struct { // Type: String DBClusterIdentifier *string `type:"string"` - // The compute and memory capacity of the DB instance. + // The compute and memory capacity of the DB instance. Note that not all instance + // classes are available in all regions for all DB engines. // - // Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | - // db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium - // | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge - // | db.m4.2xlarge | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge - // | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small - // | db.t2.medium | db.t2.large + // Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge + // | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large + // | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge + // | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge + // | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium + // | db.t2.large // // DBInstanceClass is a required field DBInstanceClass *string `type:"string" required:"true"` @@ -8695,14 +9797,14 @@ type CreateDBInstanceInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 - // for SQL Server). + // * Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 + // for SQL Server). // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Example: mydbinstance + // Example: mydbinstance // // DBInstanceIdentifier is a required field DBInstanceIdentifier *string `type:"string" required:"true"` @@ -8712,29 +9814,29 @@ type CreateDBInstanceInput struct { // // Type: String // - // MySQL + // MySQL // // The name of the database to create when the DB instance is created. If this // parameter is not specified, no database is created in the DB instance. // // Constraints: // - // Must contain 1 to 64 alphanumeric characters + // * Must contain 1 to 64 alphanumeric characters // - // Cannot be a word reserved by the specified database engine + // * Cannot be a word reserved by the specified database engine // - // MariaDB + // MariaDB // // The name of the database to create when the DB instance is created. If this // parameter is not specified, no database is created in the DB instance. // // Constraints: // - // Must contain 1 to 64 alphanumeric characters + // * Must contain 1 to 64 alphanumeric characters // - // Cannot be a word reserved by the specified database engine + // * Cannot be a word reserved by the specified database engine // - // PostgreSQL + // PostgreSQL // // The name of the database to create when the DB instance is created. If this // parameter is not specified, the default "postgres" database is created in @@ -8742,14 +9844,14 @@ type CreateDBInstanceInput struct { // // Constraints: // - // Must contain 1 to 63 alphanumeric characters + // * Must contain 1 to 63 alphanumeric characters // - // Must begin with a letter or an underscore. Subsequent characters can be - // letters, underscores, or digits (0-9). + // * Must begin with a letter or an underscore. Subsequent characters can + // be letters, underscores, or digits (0-9). // - // Cannot be a word reserved by the specified database engine + // * Cannot be a word reserved by the specified database engine // - // Oracle + // Oracle // // The Oracle System ID (SID) of the created DB instance. // @@ -8757,13 +9859,13 @@ type CreateDBInstanceInput struct { // // Constraints: // - // Cannot be longer than 8 characters + // * Cannot be longer than 8 characters // - // SQL Server + // SQL Server // // Not applicable. Must be null. // - // Amazon Aurora + // Amazon Aurora // // The name of the database to create when the primary instance of the DB cluster // is created. If this parameter is not specified, no database is created in @@ -8771,9 +9873,9 @@ type CreateDBInstanceInput struct { // // Constraints: // - // Must contain 1 to 64 alphanumeric characters + // * Must contain 1 to 64 alphanumeric characters // - // Cannot be a word reserved by the specified database engine + // * Cannot be a word reserved by the specified database engine DBName *string `type:"string"` // The name of the DB parameter group to associate with this DB instance. If @@ -8782,11 +9884,11 @@ type CreateDBInstanceInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBParameterGroupName *string `type:"string"` // A list of DB security groups to associate with this DB instance. @@ -8808,7 +9910,7 @@ type CreateDBInstanceInput struct { // The name of the database engine to be used for this instance. // - // Valid Values: mysql | mariadb | oracle-se1 | oracle-se2 | oracle-se | oracle-ee + // Valid Values: mysql | mariadb | oracle-se1 | oracle-se2 | oracle-se | oracle-ee // | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | // aurora // @@ -8823,198 +9925,290 @@ type CreateDBInstanceInput struct { // are available with Amazon RDS. Not every database engine is available for // every AWS region. // - // Amazon Aurora + // Amazon Aurora // - // Version 5.6 (available in these AWS regions: ap-northeast-1, ap-northeast-2, - // ap-south-1, ap-southeast-2, eu-west-1, us-east-1, us-west-2): 5.6.10a + // * Version 5.6 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-south-1, ap-southeast-2, eu-west-1, us-east-1, us-east-2, us-west-2): + // 5.6.10a // - // MariaDB + // MariaDB // - // Version 10.1 (available in these AWS regions: ap-northeast-1, ap-northeast-2, - // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, - // us-east-1, us-west-1, us-west-2): 10.1.14 + // * Version 10.1 (available in these AWS regions: us-east-2): 10.1.16 // - // Version 10.0 (available in all AWS regions): 10.0.17 | 10.0.24 + // * Version 10.1 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, + // us-east-1, us-west-1, us-west-2): 10.1.14 // - // MySQL + // * Version 10.0 (available in all AWS regions): 10.0.24 // - // Version 5.7 (available in all AWS regions): 5.7.10 | 5.7.11 + // * Version 10.0 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, + // us-east-1, us-gov-west-1, us-west-1, us-west-2): 10.0.17 // - // Version 5.6 (available in all AWS regions): 5.6.27 | 5.6.29 + // Microsoft SQL Server 2016 // - // Version 5.6 (available in these AWS regions: ap-northeast-1, ap-northeast-2, - // ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, - // us-gov-west-1, us-west-1, us-west-2): 5.6.23 + // * 13.00.2164.0.v1 (supported for all editions, and all AWS regions except + // sa-east-1) // - // Version 5.6 (available in these AWS regions: ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, - // us-west-1, us-west-2): 5.6.19a | 5.6.19b | 5.6.21 | 5.6.21b | 5.6.22 + // Microsoft SQL Server 2014 // - // Version 5.5 (available in all AWS regions): 5.5.46 + // * 12.00.5000.0.v1 (supported for all editions, and all AWS regions) // - // Version 5.5 (available in these AWS regions: ap-northeast-1, ap-northeast-2, - // ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, - // us-gov-west-1, us-west-1, us-west-2): 5.5.42 + // * 12.00.4422.0.v1 (supported for all editions except Enterprise Edition, + // and all AWS regions except us-east-2) // - // Version 5.5 (available in these AWS regions: ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, - // us-west-1, us-west-2): 5.5.40b | 5.5.41 + // Microsoft SQL Server 2012 // - // Version 5.5 (available in these AWS regions: ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, - // us-west-2): 5.5.40 | 5.5.40a + // * 11.00.6020.0.v1 (supported for all editions, and all AWS regions) // - // Oracle Database Enterprise Edition (oracle-ee) + // * 11.00.5058.0.v1 (supported for all editions, and all AWS regions except + // us-east-2) // - // Version 12.1.0.2 (available in these AWS regions: ap-northeast-1, ap-northeast-2, - // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, - // us-east-1, us-west-1, us-west-2): 12.1.0.2.v5 + // * 11.00.2100.60.v1 (supported for all editions, and all AWS regions except + // us-east-2) // - // Version 12.1.0.2 (available in all AWS regions): 12.1.0.2.v1 | 12.1.0.2.v2 - // | 12.1.0.2.v3 | 12.1.0.2.v4 + // Microsoft SQL Server 2008 R2 // - // Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, - // us-west-2): 12.1.0.1.v6 + // * 10.50.6529.0.v1 (supported for all editions, and all AWS regions except + // us-east-2) // - // Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, - // us-west-1, us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5 + // * 10.50.6000.34.v1 (supported for all editions, and all AWS regions except + // us-east-2) // - // Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, - // us-gov-west-1, us-west-1, us-west-2): 12.1.0.1.v1 | 12.1.0.1.v2 + // * 10.50.2789.0.v1 (supported for all editions, and all AWS regions except + // us-east-2) // - // Version 11.2.0.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, - // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, - // us-east-1, us-west-1, us-west-2): 11.2.0.4.v6 | 11.2.0.4.v9 + // MySQL // - // Version 11.2.0.4 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 - // | 11.2.0.4.v4 | 11.2.0.4.v5 | 11.2.0.4.v7 | 11.2.0.4.v8 + // * Version 5.7 (available in all AWS regions): 5.7.11 // - // Oracle Database Standard Edition Two (oracle-se2) + // * Version 5.7 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, + // us-east-1, us-gov-west-1, us-west-1, us-west-2): 5.7.10 // - // Version 12.1.0.2 (available in these AWS regions: ap-northeast-1, ap-northeast-2, - // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, - // us-east-1, us-west-1, us-west-2): 12.1.0.2.v5 + // * Version 5.6 (available in all AWS regions): 5.6.29 // - // Version 12.1.0.2 (available in all AWS regions): 12.1.0.2.v2 | 12.1.0.2.v3 - // | 12.1.0.2.v4 + // * Version 5.6 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, + // us-east-1, us-gov-west-1, us-west-1, us-west-2): 5.6.27 // - // Oracle Database Standard Edition One (oracle-se1) + // * Version 5.6 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, + // us-gov-west-1, us-west-1, us-west-2): 5.6.23 // - // Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, - // us-west-2): 12.1.0.1.v6 + // * Version 5.6 (available in these AWS regions: ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, + // us-west-1, us-west-2): 5.6.19a | 5.6.19b | 5.6.21 | 5.6.21b | 5.6.22 // - // Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, - // us-west-1, us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5 + // * Version 5.5 (available in all AWS regions): 5.5.46 // - // Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, - // us-gov-west-1, us-west-1, us-west-2): 12.1.0.1.v1 | 12.1.0.1.v2 + // * Version 5.1 (only available in AWS regions ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, + // us-west-2): 5.1.73a | 5.1.73b // - // Version 11.2.0.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, - // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, - // us-east-1, us-west-1, us-west-2): 11.2.0.4.v6 | 11.2.0.4.v9 + // Oracle Database Enterprise Edition (oracle-ee) // - // Version 11.2.0.4 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 - // | 11.2.0.4.v4 | 11.2.0.4.v5 | 11.2.0.4.v7 | 11.2.0.4.v8 + // * Version 12.1 (available in all AWS regions except ap-south-1, ap-northeast-2): + // 12.1.0.1.v1 | 12.1.0.1.v2 // - // Oracle Database Standard Edition (oracle-se) + // * Version 12.1 (only available in AWS regions ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, + // us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5 // - // Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, - // us-west-2): 12.1.0.1.v6 + // * Version 12.1 (available in all AWS regions): 12.1.0.2.v1 // - // Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, - // us-west-1, us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5 + // * Version 12.1 (available in all AWS regions except us-gov-west-1): 12.1.0.2.v2 + // | 12.1.0.2.v3 | 12.1.0.2.v4 // - // Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, - // us-gov-west-1, us-west-1, us-west-2): 12.1.0.1.v1 | 12.1.0.1.v2 + // * Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, + // us-west-2): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 // - // Version 11.2.0.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, - // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, - // us-east-1, us-west-1, us-west-2): 11.2.0.4.v6 | 11.2.0.4.v9 + // * Version 11.2 (available in all AWS regions except ap-south-1, ap-northeast-2): + // 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.3.v3 // - // Version 11.2.0.4 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 - // | 11.2.0.4.v4 | 11.2.0.4.v5 | 11.2.0.4.v7 | 11.2.0.4.v8 + // * Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, + // us-west-2): 11.2.0.3.v4 // - // PostgreSQL + // * Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 + // | 11.2.0.4.v4 // - // Version 9.5 (available in these AWS regions: ap-northeast-1, ap-northeast-2, - // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, - // us-east-1, us-west-1, us-west-2): 9.5.2 | 9.5.4 + // * Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5 + // | 11.2.0.4.v6 | 11.2.0.4.v7 | 11.2.0.4.v8 // - // Version 9.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, - // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, - // us-east-1, us-west-1, us-west-2): 9.4.7 | 9.4.9 + // Oracle Database Standard Edition (oracle-se) // - // Version 9.4 (available in all AWS regions): 9.4.5 + // * Version 12.1 (available in all AWS regions except ap-south-1, ap-northeast-2): + // 12.1.0.1.v1 | 12.1.0.1.v2 // - // Version 9.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, - // ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, - // us-gov-west-1, us-west-1, us-west-2): 9.4.1 | 9.4.4 + // * Version 12.1 (only available in AWS regions ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, + // us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5 // - // Version 9.3 (available in these AWS regions: ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, - // us-west-1, us-west-2): 9.3.10 | 9.3.3 | 9.3.5 | 9.3.6 | 9.3.9 + // * Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, + // us-west-2): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 // - // Version 9.3 (available in these AWS regions: ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, - // us-west-2): 9.3.1 | 9.3.2 + // * Version 11.2 (available in all AWS regions except ap-south-1, ap-northeast-2): + // 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.3.v3 // - // Version 9.3 (available in these AWS regions: ap-northeast-1, ap-southeast-1, - // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, - // us-west-2): 9.3.12 | 9.3.14 + // * Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, + // us-west-2): 11.2.0.3.v4 // - // Microsoft SQL Server Enterprise Edition (sqlserver-ee) + // * Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 + // | 11.2.0.4.v4 // - // Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 - // | 11.00.6020.0.v1 + // * Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5 + // | 11.2.0.4.v6 | 11.2.0.4.v7 | 11.2.0.4.v8 // - // Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 - // | 10.50.6529.0.v1 + // Oracle Database Standard Edition One (oracle-se1) // - // Microsoft SQL Server Express Edition (sqlserver-ex) + // * Version 12.1 (available in all AWS regions except ap-south-1, ap-northeast-2): + // 12.1.0.1.v1 | 12.1.0.1.v2 // - // Version 12.00 (available in all AWS regions): 12.00.4422.0.v1 + // * Version 12.1 (only available in AWS regions ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, + // us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5 // - // Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 - // | 11.00.6020.0.v1 + // * Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, + // us-west-2): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 // - // Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 - // | 10.50.6529.0.v1 + // * Version 11.2 (available in all AWS regions except ap-south-1, ap-northeast-2): + // 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.3.v3 // - // Microsoft SQL Server Standard Edition (sqlserver-se) + // * Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, + // us-west-2): 11.2.0.3.v4 // - // Version 12.00 (available in all AWS regions): 12.00.4422.0.v1 + // * Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 + // | 11.2.0.4.v4 // - // Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 - // | 11.00.6020.0.v1 + // * Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5 + // | 11.2.0.4.v6 | 11.2.0.4.v7 | 11.2.0.4.v8 // - // Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 - // | 10.50.6529.0.v1 + // Oracle Database Standard Edition Two (oracle-se2) // - // Microsoft SQL Server Web Edition (sqlserver-web) + // * Version 12.1 (available in all AWS regions except us-gov-west-1): 12.1.0.2.v2 + // | 12.1.0.2.v3 | 12.1.0.2.v4 // - // Version 12.00 (available in all AWS regions): 12.00.4422.0.v1 + // PostgreSQL // - // Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 - // | 11.00.6020.0.v1 + // * Version 9.6: 9.6.1 // - // Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 - // | 10.50.6529.0.v1 - EngineVersion *string `type:"string"` - - // The amount of Provisioned IOPS (input/output operations per second) to be - // initially allocated for the DB instance. + // * Version 9.5:9.5.4 | 9.5.2 // - // Constraints: Must be a multiple between 3 and 10 of the storage amount for - // the DB instance. Must also be an integer multiple of 1000. For example, if + // * Version 9.4: 9.4.9 | 9.4.7 | 9.4.5 | 9.4.4 | 9.4.1 + // + // * Version 9.3: 9.3.14 | 9.3.12 | 9.3.10 | 9.3.9 | 9.3.6 | 9.3.5 | 9.3.3 + // | 9.3.2 | 9.3.1 + // + // Oracle 12c + // + // 12.1.0.2.v6 (supported for EE in all AWS regions, and SE2 in all AWS regions + // except us-gov-west-1) + // + // * 12.1.0.2.v5 (supported for EE in all AWS regions, and SE2 in all AWS + // regions except us-gov-west-1) + // + // * 12.1.0.2.v4 (supported for EE in all AWS regions, and SE2 in all AWS + // regions except us-gov-west-1) + // + // * 12.1.0.2.v3 (supported for EE in all AWS regions, and SE2 in all AWS + // regions except us-gov-west-1) + // + // * 12.1.0.2.v2 (supported for EE in all AWS regions, and SE2 in all AWS + // regions except us-gov-west-1) + // + // * 12.1.0.2.v1 (supported for EE in all AWS regions, and SE2 in all AWS + // regions except us-gov-west-1) + // + // * 12.1.0.1.v6 (supported for EE, SE1, and SE, in all AWS regions except + // ap-south-1, ap-northeast-2) + // + // * 12.1.0.1.v5 (supported for EE, SE1, and SE, in all AWS regions except + // ap-south-1, ap-northeast-2) + // + // * 12.1.0.1.v4 (supported for EE, SE1, and SE, in all AWS regions except + // ap-south-1, ap-northeast-2) + // + // * 12.1.0.1.v3 (supported for EE, SE1, and SE, in all AWS regions except + // ap-south-1, ap-northeast-2) + // + // * 12.1.0.1.v2 (supported for EE, SE1, and SE, in all AWS regions except + // ap-south-1, ap-northeast-2) + // + // * 12.1.0.1.v1 (supported for EE, SE1, and SE, in all AWS regions except + // ap-south-1, ap-northeast-2) + // + // Oracle 11g + // + // * 11.2.0.4.v10 (supported for EE, SE1, and SE, in all AWS regions) + // + // * 11.2.0.4.v9 (supported for EE, SE1, and SE, in all AWS regions) + // + // * 11.2.0.4.v8 (supported for EE, SE1, and SE, in all AWS regions) + // + // * 11.2.0.4.v7 (supported for EE, SE1, and SE, in all AWS regions) + // + // * 11.2.0.4.v6 (supported for EE, SE1, and SE, in all AWS regions) + // + // * 11.2.0.4.v5 (supported for EE, SE1, and SE, in all AWS regions) + // + // * 11.2.0.4.v4 (supported for EE, SE1, and SE, in all AWS regions) + // + // * 11.2.0.4.v3 (supported for EE, SE1, and SE, in all AWS regions) + // + // * 11.2.0.4.v1 (supported for EE, SE1, and SE, in all AWS regions) + // + // PostgreSQL + // + // * Version 9.5 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, + // us-east-1, us-west-1, us-west-2): * 9.5.4 + // + // * Version 9.5 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, + // us-east-1, us-east-2, us-west-1, us-west-2): * 9.5.2 + // + // * Version 9.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, + // us-east-1, us-west-1, us-west-2): * 9.4.9 + // + // * Version 9.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, + // us-east-1, us-east-2, us-west-1, us-west-2): * 9.4.7 + // + // * Version 9.4 (available in all AWS regions): * 9.4.5 + // + // * Version 9.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, + // us-gov-west-1, us-west-1, us-west-2): * 9.4.4 + // + // * Version 9.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2, + // ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, + // us-east-2, us-gov-west-1, us-west-1, us-west-2): * 9.4.1 + // + // * Version 9.3 (available in these AWS regions: ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, + // us-west-1, us-west-2): * 9.3.10 | 9.3.3 | 9.3.5 | 9.3.6 | 9.3.9 + // + // * Version 9.3 (available in these AWS regions: ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1, + // us-west-2): * 9.3.1 | 9.3.2 + // + // * Version 9.3 (available in these AWS regions: ap-northeast-1, ap-southeast-1, + // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1, + // us-west-2): * 9.3.12 | 9.3.14 + EngineVersion *string `type:"string"` + + // The amount of Provisioned IOPS (input/output operations per second) to be + // initially allocated for the DB instance. + // + // Constraints: Must be a multiple between 3 and 10 of the storage amount for + // the DB instance. Must also be an integer multiple of 1000. For example, if // the size of your DB instance is 500 GB, then your Iops value can be 2000, // 3000, 4000, or 5000. Iops *int64 `type:"integer"` @@ -9034,7 +10228,7 @@ type CreateDBInstanceInput struct { // License model information for this DB instance. // - // Valid values: license-included | bring-your-own-license | general-public-license + // Valid values: license-included | bring-your-own-license | general-public-license LicenseModel *string `type:"string"` // The password for the master database user. Can be any printable ASCII character @@ -9042,82 +10236,82 @@ type CreateDBInstanceInput struct { // // Type: String // - // MySQL + // MySQL // // Constraints: Must contain from 8 to 41 characters. // - // MariaDB + // MariaDB // // Constraints: Must contain from 8 to 41 characters. // - // Oracle + // Oracle // // Constraints: Must contain from 8 to 30 characters. // - // SQL Server + // SQL Server // // Constraints: Must contain from 8 to 128 characters. // - // PostgreSQL + // PostgreSQL // // Constraints: Must contain from 8 to 128 characters. // - // Amazon Aurora + // Amazon Aurora // // Constraints: Must contain from 8 to 41 characters. MasterUserPassword *string `type:"string"` // The name of master user for the client DB instance. // - // MySQL + // MySQL // // Constraints: // - // Must be 1 to 16 alphanumeric characters. + // * Must be 1 to 16 alphanumeric characters. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot be a reserved word for the chosen database engine. + // * Cannot be a reserved word for the chosen database engine. // - // MariaDB + // MariaDB // // Constraints: // - // Must be 1 to 16 alphanumeric characters. + // * Must be 1 to 16 alphanumeric characters. // - // Cannot be a reserved word for the chosen database engine. + // * Cannot be a reserved word for the chosen database engine. // - // Type: String + // Type: String // - // Oracle + // Oracle // // Constraints: // - // Must be 1 to 30 alphanumeric characters. + // * Must be 1 to 30 alphanumeric characters. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot be a reserved word for the chosen database engine. + // * Cannot be a reserved word for the chosen database engine. // - // SQL Server + // SQL Server // // Constraints: // - // Must be 1 to 128 alphanumeric characters. + // * Must be 1 to 128 alphanumeric characters. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot be a reserved word for the chosen database engine. + // * Cannot be a reserved word for the chosen database engine. // - // PostgreSQL + // PostgreSQL // // Constraints: // - // Must be 1 to 63 alphanumeric characters. + // * Must be 1 to 63 alphanumeric characters. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot be a reserved word for the chosen database engine. + // * Cannot be a reserved word for the chosen database engine. MasterUsername *string `type:"string"` // The interval, in seconds, between points when Enhanced Monitoring metrics @@ -9153,48 +10347,48 @@ type CreateDBInstanceInput struct { // The port number on which the database accepts connections. // - // MySQL + // MySQL // - // Default: 3306 + // Default: 3306 // - // Valid Values: 1150-65535 + // Valid Values: 1150-65535 // // Type: Integer // - // MariaDB + // MariaDB // - // Default: 3306 + // Default: 3306 // - // Valid Values: 1150-65535 + // Valid Values: 1150-65535 // // Type: Integer // - // PostgreSQL + // PostgreSQL // - // Default: 5432 + // Default: 5432 // - // Valid Values: 1150-65535 + // Valid Values: 1150-65535 // // Type: Integer // - // Oracle + // Oracle // - // Default: 1521 + // Default: 1521 // - // Valid Values: 1150-65535 + // Valid Values: 1150-65535 // - // SQL Server + // SQL Server // - // Default: 1433 + // Default: 1433 // - // Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 - // through 49156. + // Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 through + // 49156. // - // Amazon Aurora + // Amazon Aurora // - // Default: 3306 + // Default: 3306 // - // Valid Values: 1150-65535 + // Valid Values: 1150-65535 // // Type: Integer Port *int64 `type:"integer"` @@ -9203,30 +10397,30 @@ type CreateDBInstanceInput struct { // backups are enabled, using the BackupRetentionPeriod parameter. For more // information, see DB Instance Backups (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.BackingUpAndRestoringAmazonRDSInstances.html). // - // Default: A 30-minute window selected at random from an 8-hour block of - // time per region. To see the time blocks available, see Adjusting the Preferred + // Default: A 30-minute window selected at random from an 8-hour block of time + // per region. To see the time blocks available, see Adjusting the Preferred // Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html) // in the Amazon RDS User Guide. // // Constraints: // - // Must be in the format hh24:mi-hh24:mi. + // * Must be in the format hh24:mi-hh24:mi. // - // Times should be in Universal Coordinated Time (UTC). + // * Times should be in Universal Coordinated Time (UTC). // - // Must not conflict with the preferred maintenance window. + // * Must not conflict with the preferred maintenance window. // - // Must be at least 30 minutes. + // * Must be at least 30 minutes. PreferredBackupWindow *string `type:"string"` // The weekly time range during which system maintenance can occur, in Universal // Coordinated Time (UTC). For more information, see DB Instance Maintenance // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBMaintenance.html). // - // Format: ddd:hh24:mi-ddd:hh24:mi + // Format: ddd:hh24:mi-ddd:hh24:mi // - // Default: A 30-minute window selected at random from an 8-hour block of - // time per region, occurring on a random day of the week. To see the time blocks + // Default: A 30-minute window selected at random from an 8-hour block of time + // per region, occurring on a random day of the week. To see the time blocks // available, see Adjusting the Preferred Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html) // in the Amazon RDS User Guide. // @@ -9252,15 +10446,14 @@ type CreateDBInstanceInput struct { // Default: The default behavior varies depending on whether a VPC has been // requested or not. The following list shows the default behavior in each case. // - // Default VPC: true + // * Default VPC: true // - // VPC: false + // * VPC: false // - // If no DB subnet group has been specified as part of the request and the - // PubliclyAccessible value has not been set, the DB instance will be publicly - // accessible. If a specific DB subnet group has been specified as part of the - // request and the PubliclyAccessible value has not been set, the DB instance - // will be private. + // If no DB subnet group has been specified as part of the request and the PubliclyAccessible + // value has not been set, the DB instance will be publicly accessible. If a + // specific DB subnet group has been specified as part of the request and the + // PubliclyAccessible value has not been set, the DB instance will be private. PubliclyAccessible *bool `type:"boolean"` // Specifies whether the DB instance is encrypted. @@ -9270,11 +10463,11 @@ type CreateDBInstanceInput struct { // Specifies the storage type to be associated with the DB instance. // - // Valid values: standard | gp2 | io1 + // Valid values: standard | gp2 | io1 // - // If you specify io1, you must also include a value for the Iops parameter. + // If you specify io1, you must also include a value for the Iops parameter. // - // Default: io1 if the Iops parameter is specified; otherwise standard + // Default: io1 if the Iops parameter is specified; otherwise standard StorageType *string `type:"string"` // A list of tags. @@ -9326,19 +10519,247 @@ func (s *CreateDBInstanceInput) Validate() error { return nil } +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *CreateDBInstanceInput) SetAllocatedStorage(v int64) *CreateDBInstanceInput { + s.AllocatedStorage = &v + return s +} + +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *CreateDBInstanceInput) SetAutoMinorVersionUpgrade(v bool) *CreateDBInstanceInput { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateDBInstanceInput) SetAvailabilityZone(v string) *CreateDBInstanceInput { + s.AvailabilityZone = &v + return s +} + +// SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value. +func (s *CreateDBInstanceInput) SetBackupRetentionPeriod(v int64) *CreateDBInstanceInput { + s.BackupRetentionPeriod = &v + return s +} + +// SetCharacterSetName sets the CharacterSetName field's value. +func (s *CreateDBInstanceInput) SetCharacterSetName(v string) *CreateDBInstanceInput { + s.CharacterSetName = &v + return s +} + +// SetCopyTagsToSnapshot sets the CopyTagsToSnapshot field's value. +func (s *CreateDBInstanceInput) SetCopyTagsToSnapshot(v bool) *CreateDBInstanceInput { + s.CopyTagsToSnapshot = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *CreateDBInstanceInput) SetDBClusterIdentifier(v string) *CreateDBInstanceInput { + s.DBClusterIdentifier = &v + return s +} + +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *CreateDBInstanceInput) SetDBInstanceClass(v string) *CreateDBInstanceInput { + s.DBInstanceClass = &v + return s +} + +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *CreateDBInstanceInput) SetDBInstanceIdentifier(v string) *CreateDBInstanceInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetDBName sets the DBName field's value. +func (s *CreateDBInstanceInput) SetDBName(v string) *CreateDBInstanceInput { + s.DBName = &v + return s +} + +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *CreateDBInstanceInput) SetDBParameterGroupName(v string) *CreateDBInstanceInput { + s.DBParameterGroupName = &v + return s +} + +// SetDBSecurityGroups sets the DBSecurityGroups field's value. +func (s *CreateDBInstanceInput) SetDBSecurityGroups(v []*string) *CreateDBInstanceInput { + s.DBSecurityGroups = v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *CreateDBInstanceInput) SetDBSubnetGroupName(v string) *CreateDBInstanceInput { + s.DBSubnetGroupName = &v + return s +} + +// SetDomain sets the Domain field's value. +func (s *CreateDBInstanceInput) SetDomain(v string) *CreateDBInstanceInput { + s.Domain = &v + return s +} + +// SetDomainIAMRoleName sets the DomainIAMRoleName field's value. +func (s *CreateDBInstanceInput) SetDomainIAMRoleName(v string) *CreateDBInstanceInput { + s.DomainIAMRoleName = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *CreateDBInstanceInput) SetEngine(v string) *CreateDBInstanceInput { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *CreateDBInstanceInput) SetEngineVersion(v string) *CreateDBInstanceInput { + s.EngineVersion = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *CreateDBInstanceInput) SetIops(v int64) *CreateDBInstanceInput { + s.Iops = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateDBInstanceInput) SetKmsKeyId(v string) *CreateDBInstanceInput { + s.KmsKeyId = &v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *CreateDBInstanceInput) SetLicenseModel(v string) *CreateDBInstanceInput { + s.LicenseModel = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *CreateDBInstanceInput) SetMasterUserPassword(v string) *CreateDBInstanceInput { + s.MasterUserPassword = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *CreateDBInstanceInput) SetMasterUsername(v string) *CreateDBInstanceInput { + s.MasterUsername = &v + return s +} + +// SetMonitoringInterval sets the MonitoringInterval field's value. +func (s *CreateDBInstanceInput) SetMonitoringInterval(v int64) *CreateDBInstanceInput { + s.MonitoringInterval = &v + return s +} + +// SetMonitoringRoleArn sets the MonitoringRoleArn field's value. +func (s *CreateDBInstanceInput) SetMonitoringRoleArn(v string) *CreateDBInstanceInput { + s.MonitoringRoleArn = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *CreateDBInstanceInput) SetMultiAZ(v bool) *CreateDBInstanceInput { + s.MultiAZ = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *CreateDBInstanceInput) SetOptionGroupName(v string) *CreateDBInstanceInput { + s.OptionGroupName = &v + return s +} + +// SetPort sets the Port field's value. +func (s *CreateDBInstanceInput) SetPort(v int64) *CreateDBInstanceInput { + s.Port = &v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *CreateDBInstanceInput) SetPreferredBackupWindow(v string) *CreateDBInstanceInput { + s.PreferredBackupWindow = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *CreateDBInstanceInput) SetPreferredMaintenanceWindow(v string) *CreateDBInstanceInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPromotionTier sets the PromotionTier field's value. +func (s *CreateDBInstanceInput) SetPromotionTier(v int64) *CreateDBInstanceInput { + s.PromotionTier = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *CreateDBInstanceInput) SetPubliclyAccessible(v bool) *CreateDBInstanceInput { + s.PubliclyAccessible = &v + return s +} + +// SetStorageEncrypted sets the StorageEncrypted field's value. +func (s *CreateDBInstanceInput) SetStorageEncrypted(v bool) *CreateDBInstanceInput { + s.StorageEncrypted = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *CreateDBInstanceInput) SetStorageType(v string) *CreateDBInstanceInput { + s.StorageType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDBInstanceInput) SetTags(v []*Tag) *CreateDBInstanceInput { + s.Tags = v + return s +} + +// SetTdeCredentialArn sets the TdeCredentialArn field's value. +func (s *CreateDBInstanceInput) SetTdeCredentialArn(v string) *CreateDBInstanceInput { + s.TdeCredentialArn = &v + return s +} + +// SetTdeCredentialPassword sets the TdeCredentialPassword field's value. +func (s *CreateDBInstanceInput) SetTdeCredentialPassword(v string) *CreateDBInstanceInput { + s.TdeCredentialPassword = &v + return s +} + +// SetTimezone sets the Timezone field's value. +func (s *CreateDBInstanceInput) SetTimezone(v string) *CreateDBInstanceInput { + s.Timezone = &v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *CreateDBInstanceInput) SetVpcSecurityGroupIds(v []*string) *CreateDBInstanceInput { + s.VpcSecurityGroupIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBInstanceResult type CreateDBInstanceOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance + // * CreateDBInstance // - // DeleteDBInstance + // * DeleteDBInstance // - // ModifyDBInstance + // * ModifyDBInstance // - // This data type is used as a response element in the DescribeDBInstances - // action. + // This data type is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` } @@ -9352,6 +10773,13 @@ func (s CreateDBInstanceOutput) GoString() string { return s.String() } +// SetDBInstance sets the DBInstance field's value. +func (s *CreateDBInstanceOutput) SetDBInstance(v *DBInstance) *CreateDBInstanceOutput { + s.DBInstance = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBInstanceReadReplicaMessage type CreateDBInstanceReadReplicaInput struct { _ struct{} `type:"structure"` @@ -9365,21 +10793,21 @@ type CreateDBInstanceReadReplicaInput struct { // // Default: A random, system-chosen Availability Zone in the endpoint's region. // - // Example: us-east-1d + // Example: us-east-1d AvailabilityZone *string `type:"string"` // True to copy all tags from the Read Replica to snapshots of the Read Replica; // otherwise false. The default is false. CopyTagsToSnapshot *bool `type:"boolean"` - // The compute and memory capacity of the Read Replica. + // The compute and memory capacity of the Read Replica. Note that not all instance + // classes are available in all regions for all DB engines. // - // Valid Values: db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | - // db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large - // | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge - // | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge - // | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium - // | db.t2.large + // Valid Values: db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge + // |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge + // | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge | db.m4.4xlarge + // | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge + // | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium | db.t2.large // // Default: Inherits from the source DB instance. DBInstanceClass *string `type:"string"` @@ -9397,31 +10825,53 @@ type CreateDBInstanceReadReplicaInput struct { // // Constraints: // - // Can only be specified if the source DB instance identifier specifies a - // DB instance in another region. + // * Can only be specified if the source DB instance identifier specifies + // a DB instance in another region. // - // The specified DB subnet group must be in the same region in which the - // operation is running. + // * The specified DB subnet group must be in the same region in which the + // operation is running. // - // All Read Replicas in one region that are created from the same source - // DB instance must either:> + // * All Read Replicas in one region that are created from the same source + // DB instance must either:> // - // Specify DB subnet groups from the same VPC. All these Read Replicas will - // be created in the same VPC. + // Specify DB subnet groups from the same VPC. All these Read Replicas will + // be created in the same VPC. // - // Not specify a DB subnet group. All these Read Replicas will be created - // outside of any VPC. + // Not specify a DB subnet group. All these Read Replicas will be created outside + // of any VPC. // - // Constraints: Must contain no more than 255 alphanumeric characters, - // periods, underscores, spaces, or hyphens. Must not be default. + // Constraints: Must contain no more than 255 alphanumeric characters, periods, + // underscores, spaces, or hyphens. Must not be default. // // Example: mySubnetgroup DBSubnetGroupName *string `type:"string"` + // DestinationRegion is used for presigning the request to a given region. + DestinationRegion *string `type:"string"` + // The amount of Provisioned IOPS (input/output operations per second) to be // initially allocated for the DB instance. Iops *int64 `type:"integer"` + // The AWS KMS key ID for an encrypted Read Replica. The KMS key ID is the Amazon + // Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS + // encryption key. + // + // If you create an unencrypted Read Replica and specify a value for the KmsKeyId + // parameter, Amazon RDS encrypts the target Read Replica using the specified + // KMS encryption key. + // + // If you create an encrypted Read Replica from your AWS account, you can specify + // a value for KmsKeyId to encrypt the Read Replica with a new KMS encryption + // key. If you don't specify a value for KmsKeyId, then the Read Replica is + // encrypted with the same KMS key as the source DB instance. + // + // If you create an encrypted Read Replica in a different AWS region, then you + // must specify a KMS key for the destination AWS region. KMS encryption keys + // are specific to the region that they are created in, and you cannot use encryption + // keys from one region in another region. + KmsKeyId *string `type:"string"` + // The interval, in seconds, between points when Enhanced Monitoring metrics // are collected for the Read Replica. To disable collecting Enhanced Monitoring // metrics, specify 0. The default is 0. @@ -9452,6 +10902,42 @@ type CreateDBInstanceReadReplicaInput struct { // Valid Values: 1150-65535 Port *int64 `type:"integer"` + // The URL that contains a Signature Version 4 signed request for the CreateDBInstanceReadReplica + // API action in the AWS region that contains the source DB instance. The PreSignedUrl + // parameter must be used when encrypting a Read Replica from another AWS region. + // + // The presigned URL must be a valid request for the CreateDBInstanceReadReplica + // API action that can be executed in the source region that contains the encrypted + // DB instance. The presigned URL request must contain the following parameter + // values: + // + // * DestinationRegion - The AWS Region that the Read Replica is created + // in. This region is the same one where the CreateDBInstanceReadReplica + // action is called that contains this presigned URL. + // + // For example, if you create an encrypted Read Replica in the us-east-1 region, + // and the source DB instance is in the west-2 region, then you call the + // CreateDBInstanceReadReplica action in the us-east-1 region and provide + // a presigned URL that contains a call to the CreateDBInstanceReadReplica + // action in the us-west-2 region. For this example, the DestinationRegion + // in the presigned URL must be set to the us-east-1 region. + // + // * KmsKeyId - The KMS key identifier for the key to use to encrypt the + // Read Replica in the destination region. This is the same identifier for + // both the CreateDBInstanceReadReplica action that is called in the destination + // region, and the action contained in the presigned URL. + // + // * SourceDBInstanceIdentifier - The DB instance identifier for the encrypted + // Read Replica to be created. This identifier must be in the Amazon Resource + // Name (ARN) format for the source region. For example, if you create an + // encrypted Read Replica from a DB instance in the us-west-2 region, then + // your SourceDBInstanceIdentifier would look like this example: arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-instance-20161115. + // + // To learn how to generate a Signature Version 4 signed request, see Authenticating + // Requests: Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) + // and Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). + PreSignedUrl *string `type:"string"` + // Specifies the accessibility options for the DB instance. A value of true // specifies an Internet-facing instance with a publicly resolvable DNS name, // which resolves to a public IP address. A value of false specifies an internal @@ -9460,15 +10946,14 @@ type CreateDBInstanceReadReplicaInput struct { // Default: The default behavior varies depending on whether a VPC has been // requested or not. The following list shows the default behavior in each case. // - // Default VPC:true + // * Default VPC:true // - // VPC:false + // * VPC:false // - // If no DB subnet group has been specified as part of the request and the - // PubliclyAccessible value has not been set, the DB instance will be publicly - // accessible. If a specific DB subnet group has been specified as part of the - // request and the PubliclyAccessible value has not been set, the DB instance - // will be private. + // If no DB subnet group has been specified as part of the request and the PubliclyAccessible + // value has not been set, the DB instance will be publicly accessible. If a + // specific DB subnet group has been specified as part of the request and the + // PubliclyAccessible value has not been set, the DB instance will be private. PubliclyAccessible *bool `type:"boolean"` // The identifier of the DB instance that will act as the source for the Read @@ -9476,35 +10961,40 @@ type CreateDBInstanceReadReplicaInput struct { // // Constraints: // - // Must be the identifier of an existing MySQL, MariaDB, or PostgreSQL DB - // instance. + // * Must be the identifier of an existing MySQL, MariaDB, or PostgreSQL + // DB instance. // - // Can specify a DB instance that is a MySQL Read Replica only if the source - // is running MySQL 5.6. + // * Can specify a DB instance that is a MySQL Read Replica only if the source + // is running MySQL 5.6. // - // Can specify a DB instance that is a PostgreSQL Read Replica only if the - // source is running PostgreSQL 9.3.5. + // * Can specify a DB instance that is a PostgreSQL DB instance only if the + // source is running PostgreSQL 9.3.5 or later. // - // The specified DB instance must have automatic backups enabled, its backup - // retention period must be greater than 0. + // * The specified DB instance must have automatic backups enabled, its backup + // retention period must be greater than 0. // - // If the source DB instance is in the same region as the Read Replica, specify - // a valid DB instance identifier. + // * If the source DB instance is in the same region as the Read Replica, + // specify a valid DB instance identifier. // - // If the source DB instance is in a different region than the Read Replica, - // specify a valid DB instance ARN. For more information, go to Constructing - // a Amazon RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing). + // * If the source DB instance is in a different region than the Read Replica, + // specify a valid DB instance ARN. For more information, go to Constructing + // a Amazon RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing). // // SourceDBInstanceIdentifier is a required field SourceDBInstanceIdentifier *string `type:"string" required:"true"` + // SourceRegion is the source region where the resource exists. This is not + // sent over the wire and is only used for presigning. This value should always + // have the same region as the source ARN. + SourceRegion *string `type:"string" ignore:"true"` + // Specifies the storage type to be associated with the Read Replica. // - // Valid values: standard | gp2 | io1 + // Valid values: standard | gp2 | io1 // - // If you specify io1, you must also include a value for the Iops parameter. + // If you specify io1, you must also include a value for the Iops parameter. // - // Default: io1 if the Iops parameter is specified; otherwise standard + // Default: io1 if the Iops parameter is specified; otherwise standard StorageType *string `type:"string"` // A list of tags. @@ -9537,19 +11027,133 @@ func (s *CreateDBInstanceReadReplicaInput) Validate() error { return nil } +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *CreateDBInstanceReadReplicaInput) SetAutoMinorVersionUpgrade(v bool) *CreateDBInstanceReadReplicaInput { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateDBInstanceReadReplicaInput) SetAvailabilityZone(v string) *CreateDBInstanceReadReplicaInput { + s.AvailabilityZone = &v + return s +} + +// SetCopyTagsToSnapshot sets the CopyTagsToSnapshot field's value. +func (s *CreateDBInstanceReadReplicaInput) SetCopyTagsToSnapshot(v bool) *CreateDBInstanceReadReplicaInput { + s.CopyTagsToSnapshot = &v + return s +} + +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *CreateDBInstanceReadReplicaInput) SetDBInstanceClass(v string) *CreateDBInstanceReadReplicaInput { + s.DBInstanceClass = &v + return s +} + +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *CreateDBInstanceReadReplicaInput) SetDBInstanceIdentifier(v string) *CreateDBInstanceReadReplicaInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *CreateDBInstanceReadReplicaInput) SetDBSubnetGroupName(v string) *CreateDBInstanceReadReplicaInput { + s.DBSubnetGroupName = &v + return s +} + +// SetDestinationRegion sets the DestinationRegion field's value. +func (s *CreateDBInstanceReadReplicaInput) SetDestinationRegion(v string) *CreateDBInstanceReadReplicaInput { + s.DestinationRegion = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *CreateDBInstanceReadReplicaInput) SetIops(v int64) *CreateDBInstanceReadReplicaInput { + s.Iops = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateDBInstanceReadReplicaInput) SetKmsKeyId(v string) *CreateDBInstanceReadReplicaInput { + s.KmsKeyId = &v + return s +} + +// SetMonitoringInterval sets the MonitoringInterval field's value. +func (s *CreateDBInstanceReadReplicaInput) SetMonitoringInterval(v int64) *CreateDBInstanceReadReplicaInput { + s.MonitoringInterval = &v + return s +} + +// SetMonitoringRoleArn sets the MonitoringRoleArn field's value. +func (s *CreateDBInstanceReadReplicaInput) SetMonitoringRoleArn(v string) *CreateDBInstanceReadReplicaInput { + s.MonitoringRoleArn = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *CreateDBInstanceReadReplicaInput) SetOptionGroupName(v string) *CreateDBInstanceReadReplicaInput { + s.OptionGroupName = &v + return s +} + +// SetPort sets the Port field's value. +func (s *CreateDBInstanceReadReplicaInput) SetPort(v int64) *CreateDBInstanceReadReplicaInput { + s.Port = &v + return s +} + +// SetPreSignedUrl sets the PreSignedUrl field's value. +func (s *CreateDBInstanceReadReplicaInput) SetPreSignedUrl(v string) *CreateDBInstanceReadReplicaInput { + s.PreSignedUrl = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *CreateDBInstanceReadReplicaInput) SetPubliclyAccessible(v bool) *CreateDBInstanceReadReplicaInput { + s.PubliclyAccessible = &v + return s +} + +// SetSourceDBInstanceIdentifier sets the SourceDBInstanceIdentifier field's value. +func (s *CreateDBInstanceReadReplicaInput) SetSourceDBInstanceIdentifier(v string) *CreateDBInstanceReadReplicaInput { + s.SourceDBInstanceIdentifier = &v + return s +} + +// SetSourceRegion sets the SourceRegion field's value. +func (s *CreateDBInstanceReadReplicaInput) SetSourceRegion(v string) *CreateDBInstanceReadReplicaInput { + s.SourceRegion = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *CreateDBInstanceReadReplicaInput) SetStorageType(v string) *CreateDBInstanceReadReplicaInput { + s.StorageType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDBInstanceReadReplicaInput) SetTags(v []*Tag) *CreateDBInstanceReadReplicaInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBInstanceReadReplicaResult type CreateDBInstanceReadReplicaOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance + // * CreateDBInstance // - // DeleteDBInstance + // * DeleteDBInstance // - // ModifyDBInstance + // * ModifyDBInstance // - // This data type is used as a response element in the DescribeDBInstances - // action. + // This data type is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` } @@ -9563,6 +11167,13 @@ func (s CreateDBInstanceReadReplicaOutput) GoString() string { return s.String() } +// SetDBInstance sets the DBInstance field's value. +func (s *CreateDBInstanceReadReplicaOutput) SetDBInstance(v *DBInstance) *CreateDBInstanceReadReplicaOutput { + s.DBInstance = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBParameterGroupMessage type CreateDBParameterGroupInput struct { _ struct{} `type:"structure"` @@ -9578,13 +11189,13 @@ type CreateDBParameterGroupInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // This value is stored as a lowercase string. + // This value is stored as a lowercase string. // // DBParameterGroupName is a required field DBParameterGroupName *string `type:"string" required:"true"` @@ -9627,6 +11238,31 @@ func (s *CreateDBParameterGroupInput) Validate() error { return nil } +// SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value. +func (s *CreateDBParameterGroupInput) SetDBParameterGroupFamily(v string) *CreateDBParameterGroupInput { + s.DBParameterGroupFamily = &v + return s +} + +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *CreateDBParameterGroupInput) SetDBParameterGroupName(v string) *CreateDBParameterGroupInput { + s.DBParameterGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateDBParameterGroupInput) SetDescription(v string) *CreateDBParameterGroupInput { + s.Description = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDBParameterGroupInput) SetTags(v []*Tag) *CreateDBParameterGroupInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBParameterGroupResult type CreateDBParameterGroupOutput struct { _ struct{} `type:"structure"` @@ -9648,6 +11284,13 @@ func (s CreateDBParameterGroupOutput) GoString() string { return s.String() } +// SetDBParameterGroup sets the DBParameterGroup field's value. +func (s *CreateDBParameterGroupOutput) SetDBParameterGroup(v *DBParameterGroup) *CreateDBParameterGroupOutput { + s.DBParameterGroup = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBSecurityGroupMessage type CreateDBSecurityGroupInput struct { _ struct{} `type:"structure"` @@ -9660,15 +11303,15 @@ type CreateDBSecurityGroupInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Must not be "Default" + // * Must not be "Default" // - // Example: mysecuritygroup + // Example: mysecuritygroup // // DBSecurityGroupName is a required field DBSecurityGroupName *string `type:"string" required:"true"` @@ -9703,20 +11346,39 @@ func (s *CreateDBSecurityGroupInput) Validate() error { return nil } +// SetDBSecurityGroupDescription sets the DBSecurityGroupDescription field's value. +func (s *CreateDBSecurityGroupInput) SetDBSecurityGroupDescription(v string) *CreateDBSecurityGroupInput { + s.DBSecurityGroupDescription = &v + return s +} + +// SetDBSecurityGroupName sets the DBSecurityGroupName field's value. +func (s *CreateDBSecurityGroupInput) SetDBSecurityGroupName(v string) *CreateDBSecurityGroupInput { + s.DBSecurityGroupName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDBSecurityGroupInput) SetTags(v []*Tag) *CreateDBSecurityGroupInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBSecurityGroupResult type CreateDBSecurityGroupOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // DescribeDBSecurityGroups + // * DescribeDBSecurityGroups // - // AuthorizeDBSecurityGroupIngress + // * AuthorizeDBSecurityGroupIngress // - // CreateDBSecurityGroup + // * CreateDBSecurityGroup // - // RevokeDBSecurityGroupIngress + // * RevokeDBSecurityGroupIngress // - // This data type is used as a response element in the DescribeDBSecurityGroups + // This data type is used as a response element in the DescribeDBSecurityGroups // action. DBSecurityGroup *DBSecurityGroup `type:"structure"` } @@ -9731,6 +11393,13 @@ func (s CreateDBSecurityGroupOutput) GoString() string { return s.String() } +// SetDBSecurityGroup sets the DBSecurityGroup field's value. +func (s *CreateDBSecurityGroupOutput) SetDBSecurityGroup(v *DBSecurityGroup) *CreateDBSecurityGroupOutput { + s.DBSecurityGroup = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBSnapshotMessage type CreateDBSnapshotInput struct { _ struct{} `type:"structure"` @@ -9738,11 +11407,11 @@ type CreateDBSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBInstanceIdentifier is a required field DBInstanceIdentifier *string `type:"string" required:"true"` @@ -9751,15 +11420,15 @@ type CreateDBSnapshotInput struct { // // Constraints: // - // Cannot be null, empty, or blank + // * Cannot be null, empty, or blank // - // Must contain from 1 to 255 alphanumeric characters or hyphens + // * Must contain from 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: my-snapshot-id + // Example: my-snapshot-id // // DBSnapshotIdentifier is a required field DBSnapshotIdentifier *string `type:"string" required:"true"` @@ -9794,17 +11463,35 @@ func (s *CreateDBSnapshotInput) Validate() error { return nil } +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *CreateDBSnapshotInput) SetDBInstanceIdentifier(v string) *CreateDBSnapshotInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value. +func (s *CreateDBSnapshotInput) SetDBSnapshotIdentifier(v string) *CreateDBSnapshotInput { + s.DBSnapshotIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDBSnapshotInput) SetTags(v []*Tag) *CreateDBSnapshotInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBSnapshotResult type CreateDBSnapshotOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBSnapshot + // * CreateDBSnapshot // - // DeleteDBSnapshot + // * DeleteDBSnapshot // - // This data type is used as a response element in the DescribeDBSnapshots - // action. + // This data type is used as a response element in the DescribeDBSnapshots action. DBSnapshot *DBSnapshot `type:"structure"` } @@ -9818,6 +11505,13 @@ func (s CreateDBSnapshotOutput) GoString() string { return s.String() } +// SetDBSnapshot sets the DBSnapshot field's value. +func (s *CreateDBSnapshotOutput) SetDBSnapshot(v *DBSnapshot) *CreateDBSnapshotOutput { + s.DBSnapshot = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBSubnetGroupMessage type CreateDBSubnetGroupInput struct { _ struct{} `type:"structure"` @@ -9874,20 +11568,45 @@ func (s *CreateDBSubnetGroupInput) Validate() error { return nil } +// SetDBSubnetGroupDescription sets the DBSubnetGroupDescription field's value. +func (s *CreateDBSubnetGroupInput) SetDBSubnetGroupDescription(v string) *CreateDBSubnetGroupInput { + s.DBSubnetGroupDescription = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *CreateDBSubnetGroupInput) SetDBSubnetGroupName(v string) *CreateDBSubnetGroupInput { + s.DBSubnetGroupName = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *CreateDBSubnetGroupInput) SetSubnetIds(v []*string) *CreateDBSubnetGroupInput { + s.SubnetIds = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDBSubnetGroupInput) SetTags(v []*Tag) *CreateDBSubnetGroupInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBSubnetGroupResult type CreateDBSubnetGroupOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBSubnetGroup + // * CreateDBSubnetGroup // - // ModifyDBSubnetGroup + // * ModifyDBSubnetGroup // - // DescribeDBSubnetGroups + // * DescribeDBSubnetGroups // - // DeleteDBSubnetGroup + // * DeleteDBSubnetGroup // - // This data type is used as a response element in the DescribeDBSubnetGroups + // This data type is used as a response element in the DescribeDBSubnetGroups // action. DBSubnetGroup *DBSubnetGroup `type:"structure"` } @@ -9902,6 +11621,13 @@ func (s CreateDBSubnetGroupOutput) GoString() string { return s.String() } +// SetDBSubnetGroup sets the DBSubnetGroup field's value. +func (s *CreateDBSubnetGroupOutput) SetDBSubnetGroup(v *DBSubnetGroup) *CreateDBSubnetGroupOutput { + s.DBSubnetGroup = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateEventSubscriptionMessage type CreateEventSubscriptionInput struct { _ struct{} `type:"structure"` @@ -9930,18 +11656,19 @@ type CreateEventSubscriptionInput struct { // // Constraints: // - // If SourceIds are supplied, SourceType must also be provided. + // * If SourceIds are supplied, SourceType must also be provided. // - // If the source type is a DB instance, then a DBInstanceIdentifier must - // be supplied. + // * If the source type is a DB instance, then a DBInstanceIdentifier must + // be supplied. // - // If the source type is a DB security group, a DBSecurityGroupName must - // be supplied. + // * If the source type is a DB security group, a DBSecurityGroupName must + // be supplied. // - // If the source type is a DB parameter group, a DBParameterGroupName must - // be supplied. + // * If the source type is a DB parameter group, a DBParameterGroupName must + // be supplied. // - // If the source type is a DB snapshot, a DBSnapshotIdentifier must be supplied. + // * If the source type is a DB snapshot, a DBSnapshotIdentifier must be + // supplied. SourceIds []*string `locationNameList:"SourceId" type:"list"` // The type of source that will be generating the events. For example, if you @@ -9990,6 +11717,49 @@ func (s *CreateEventSubscriptionInput) Validate() error { return nil } +// SetEnabled sets the Enabled field's value. +func (s *CreateEventSubscriptionInput) SetEnabled(v bool) *CreateEventSubscriptionInput { + s.Enabled = &v + return s +} + +// SetEventCategories sets the EventCategories field's value. +func (s *CreateEventSubscriptionInput) SetEventCategories(v []*string) *CreateEventSubscriptionInput { + s.EventCategories = v + return s +} + +// SetSnsTopicArn sets the SnsTopicArn field's value. +func (s *CreateEventSubscriptionInput) SetSnsTopicArn(v string) *CreateEventSubscriptionInput { + s.SnsTopicArn = &v + return s +} + +// SetSourceIds sets the SourceIds field's value. +func (s *CreateEventSubscriptionInput) SetSourceIds(v []*string) *CreateEventSubscriptionInput { + s.SourceIds = v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *CreateEventSubscriptionInput) SetSourceType(v string) *CreateEventSubscriptionInput { + s.SourceType = &v + return s +} + +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *CreateEventSubscriptionInput) SetSubscriptionName(v string) *CreateEventSubscriptionInput { + s.SubscriptionName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateEventSubscriptionInput) SetTags(v []*Tag) *CreateEventSubscriptionInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateEventSubscriptionResult type CreateEventSubscriptionOutput struct { _ struct{} `type:"structure"` @@ -10008,6 +11778,13 @@ func (s CreateEventSubscriptionOutput) GoString() string { return s.String() } +// SetEventSubscription sets the EventSubscription field's value. +func (s *CreateEventSubscriptionOutput) SetEventSubscription(v *EventSubscription) *CreateEventSubscriptionOutput { + s.EventSubscription = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateOptionGroupMessage type CreateOptionGroupInput struct { _ struct{} `type:"structure"` @@ -10032,13 +11809,13 @@ type CreateOptionGroupInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters or hyphens + // * Must be 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: myoptiongroup + // Example: myoptiongroup // // OptionGroupName is a required field OptionGroupName *string `type:"string" required:"true"` @@ -10079,14 +11856,45 @@ func (s *CreateOptionGroupInput) Validate() error { return nil } -type CreateOptionGroupOutput struct { - _ struct{} `type:"structure"` +// SetEngineName sets the EngineName field's value. +func (s *CreateOptionGroupInput) SetEngineName(v string) *CreateOptionGroupInput { + s.EngineName = &v + return s +} - OptionGroup *OptionGroup `type:"structure"` +// SetMajorEngineVersion sets the MajorEngineVersion field's value. +func (s *CreateOptionGroupInput) SetMajorEngineVersion(v string) *CreateOptionGroupInput { + s.MajorEngineVersion = &v + return s } -// String returns the string representation -func (s CreateOptionGroupOutput) String() string { +// SetOptionGroupDescription sets the OptionGroupDescription field's value. +func (s *CreateOptionGroupInput) SetOptionGroupDescription(v string) *CreateOptionGroupInput { + s.OptionGroupDescription = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *CreateOptionGroupInput) SetOptionGroupName(v string) *CreateOptionGroupInput { + s.OptionGroupName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateOptionGroupInput) SetTags(v []*Tag) *CreateOptionGroupInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateOptionGroupResult +type CreateOptionGroupOutput struct { + _ struct{} `type:"structure"` + + OptionGroup *OptionGroup `type:"structure"` +} + +// String returns the string representation +func (s CreateOptionGroupOutput) String() string { return awsutil.Prettify(s) } @@ -10095,22 +11903,28 @@ func (s CreateOptionGroupOutput) GoString() string { return s.String() } +// SetOptionGroup sets the OptionGroup field's value. +func (s *CreateOptionGroupOutput) SetOptionGroup(v *OptionGroup) *CreateOptionGroupOutput { + s.OptionGroup = v + return s +} + // Contains the result of a successful invocation of the following actions: // -// CreateDBCluster +// * CreateDBCluster // -// DeleteDBCluster +// * DeleteDBCluster // -// FailoverDBCluster +// * FailoverDBCluster // -// ModifyDBCluster +// * ModifyDBCluster // -// RestoreDBClusterFromSnapshot +// * RestoreDBClusterFromSnapshot // -// RestoreDBClusterToPointInTime +// * RestoreDBClusterToPointInTime // -// This data type is used as a response element in the DescribeDBClusters -// action. +// This data type is used as a response element in the DescribeDBClusters action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBCluster type DBCluster struct { _ struct{} `type:"structure"` @@ -10134,6 +11948,10 @@ type DBCluster struct { // associated with. CharacterSetName *string `type:"string"` + // Specifies the time when the DB cluster was created, in Universal Coordinated + // Time (UTC). + ClusterCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // The Amazon Resource Name (ARN) for the DB cluster. DBClusterArn *string `type:"string"` @@ -10191,6 +12009,9 @@ type DBCluster struct { // Contains the master username for the DB cluster. MasterUsername *string `type:"string"` + // Specifies whether the DB cluster has instances in multiple Availability Zones. + MultiAZ *bool `type:"boolean"` + // Specifies the progress of the operation as a percentage. PercentProgress *string `type:"string"` @@ -10246,7 +12067,206 @@ func (s DBCluster) GoString() string { return s.String() } +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *DBCluster) SetAllocatedStorage(v int64) *DBCluster { + s.AllocatedStorage = &v + return s +} + +// SetAssociatedRoles sets the AssociatedRoles field's value. +func (s *DBCluster) SetAssociatedRoles(v []*DBClusterRole) *DBCluster { + s.AssociatedRoles = v + return s +} + +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *DBCluster) SetAvailabilityZones(v []*string) *DBCluster { + s.AvailabilityZones = v + return s +} + +// SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value. +func (s *DBCluster) SetBackupRetentionPeriod(v int64) *DBCluster { + s.BackupRetentionPeriod = &v + return s +} + +// SetCharacterSetName sets the CharacterSetName field's value. +func (s *DBCluster) SetCharacterSetName(v string) *DBCluster { + s.CharacterSetName = &v + return s +} + +// SetClusterCreateTime sets the ClusterCreateTime field's value. +func (s *DBCluster) SetClusterCreateTime(v time.Time) *DBCluster { + s.ClusterCreateTime = &v + return s +} + +// SetDBClusterArn sets the DBClusterArn field's value. +func (s *DBCluster) SetDBClusterArn(v string) *DBCluster { + s.DBClusterArn = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *DBCluster) SetDBClusterIdentifier(v string) *DBCluster { + s.DBClusterIdentifier = &v + return s +} + +// SetDBClusterMembers sets the DBClusterMembers field's value. +func (s *DBCluster) SetDBClusterMembers(v []*DBClusterMember) *DBCluster { + s.DBClusterMembers = v + return s +} + +// SetDBClusterOptionGroupMemberships sets the DBClusterOptionGroupMemberships field's value. +func (s *DBCluster) SetDBClusterOptionGroupMemberships(v []*DBClusterOptionGroupStatus) *DBCluster { + s.DBClusterOptionGroupMemberships = v + return s +} + +// SetDBClusterParameterGroup sets the DBClusterParameterGroup field's value. +func (s *DBCluster) SetDBClusterParameterGroup(v string) *DBCluster { + s.DBClusterParameterGroup = &v + return s +} + +// SetDBSubnetGroup sets the DBSubnetGroup field's value. +func (s *DBCluster) SetDBSubnetGroup(v string) *DBCluster { + s.DBSubnetGroup = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *DBCluster) SetDatabaseName(v string) *DBCluster { + s.DatabaseName = &v + return s +} + +// SetDbClusterResourceId sets the DbClusterResourceId field's value. +func (s *DBCluster) SetDbClusterResourceId(v string) *DBCluster { + s.DbClusterResourceId = &v + return s +} + +// SetEarliestRestorableTime sets the EarliestRestorableTime field's value. +func (s *DBCluster) SetEarliestRestorableTime(v time.Time) *DBCluster { + s.EarliestRestorableTime = &v + return s +} + +// SetEndpoint sets the Endpoint field's value. +func (s *DBCluster) SetEndpoint(v string) *DBCluster { + s.Endpoint = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *DBCluster) SetEngine(v string) *DBCluster { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *DBCluster) SetEngineVersion(v string) *DBCluster { + s.EngineVersion = &v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *DBCluster) SetHostedZoneId(v string) *DBCluster { + s.HostedZoneId = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *DBCluster) SetKmsKeyId(v string) *DBCluster { + s.KmsKeyId = &v + return s +} + +// SetLatestRestorableTime sets the LatestRestorableTime field's value. +func (s *DBCluster) SetLatestRestorableTime(v time.Time) *DBCluster { + s.LatestRestorableTime = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *DBCluster) SetMasterUsername(v string) *DBCluster { + s.MasterUsername = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *DBCluster) SetMultiAZ(v bool) *DBCluster { + s.MultiAZ = &v + return s +} + +// SetPercentProgress sets the PercentProgress field's value. +func (s *DBCluster) SetPercentProgress(v string) *DBCluster { + s.PercentProgress = &v + return s +} + +// SetPort sets the Port field's value. +func (s *DBCluster) SetPort(v int64) *DBCluster { + s.Port = &v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *DBCluster) SetPreferredBackupWindow(v string) *DBCluster { + s.PreferredBackupWindow = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *DBCluster) SetPreferredMaintenanceWindow(v string) *DBCluster { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetReadReplicaIdentifiers sets the ReadReplicaIdentifiers field's value. +func (s *DBCluster) SetReadReplicaIdentifiers(v []*string) *DBCluster { + s.ReadReplicaIdentifiers = v + return s +} + +// SetReaderEndpoint sets the ReaderEndpoint field's value. +func (s *DBCluster) SetReaderEndpoint(v string) *DBCluster { + s.ReaderEndpoint = &v + return s +} + +// SetReplicationSourceIdentifier sets the ReplicationSourceIdentifier field's value. +func (s *DBCluster) SetReplicationSourceIdentifier(v string) *DBCluster { + s.ReplicationSourceIdentifier = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DBCluster) SetStatus(v string) *DBCluster { + s.Status = &v + return s +} + +// SetStorageEncrypted sets the StorageEncrypted field's value. +func (s *DBCluster) SetStorageEncrypted(v bool) *DBCluster { + s.StorageEncrypted = &v + return s +} + +// SetVpcSecurityGroups sets the VpcSecurityGroups field's value. +func (s *DBCluster) SetVpcSecurityGroups(v []*VpcSecurityGroupMembership) *DBCluster { + s.VpcSecurityGroups = v + return s +} + // Contains information about an instance that is part of a DB cluster. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBClusterMember type DBClusterMember struct { _ struct{} `type:"structure"` @@ -10277,7 +12297,32 @@ func (s DBClusterMember) GoString() string { return s.String() } +// SetDBClusterParameterGroupStatus sets the DBClusterParameterGroupStatus field's value. +func (s *DBClusterMember) SetDBClusterParameterGroupStatus(v string) *DBClusterMember { + s.DBClusterParameterGroupStatus = &v + return s +} + +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *DBClusterMember) SetDBInstanceIdentifier(v string) *DBClusterMember { + s.DBInstanceIdentifier = &v + return s +} + +// SetIsClusterWriter sets the IsClusterWriter field's value. +func (s *DBClusterMember) SetIsClusterWriter(v bool) *DBClusterMember { + s.IsClusterWriter = &v + return s +} + +// SetPromotionTier sets the PromotionTier field's value. +func (s *DBClusterMember) SetPromotionTier(v int64) *DBClusterMember { + s.PromotionTier = &v + return s +} + // Contains status information for a DB cluster option group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBClusterOptionGroupStatus type DBClusterOptionGroupStatus struct { _ struct{} `type:"structure"` @@ -10298,12 +12343,25 @@ func (s DBClusterOptionGroupStatus) GoString() string { return s.String() } +// SetDBClusterOptionGroupName sets the DBClusterOptionGroupName field's value. +func (s *DBClusterOptionGroupStatus) SetDBClusterOptionGroupName(v string) *DBClusterOptionGroupStatus { + s.DBClusterOptionGroupName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DBClusterOptionGroupStatus) SetStatus(v string) *DBClusterOptionGroupStatus { + s.Status = &v + return s +} + // Contains the result of a successful invocation of the CreateDBClusterParameterGroup // or CopyDBClusterParameterGroup action. // // This data type is used as a request parameter in the DeleteDBClusterParameterGroup // action, and as a response element in the DescribeDBClusterParameterGroups // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBClusterParameterGroup type DBClusterParameterGroup struct { _ struct{} `type:"structure"` @@ -10332,6 +12390,31 @@ func (s DBClusterParameterGroup) GoString() string { return s.String() } +// SetDBClusterParameterGroupArn sets the DBClusterParameterGroupArn field's value. +func (s *DBClusterParameterGroup) SetDBClusterParameterGroupArn(v string) *DBClusterParameterGroup { + s.DBClusterParameterGroupArn = &v + return s +} + +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *DBClusterParameterGroup) SetDBClusterParameterGroupName(v string) *DBClusterParameterGroup { + s.DBClusterParameterGroupName = &v + return s +} + +// SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value. +func (s *DBClusterParameterGroup) SetDBParameterGroupFamily(v string) *DBClusterParameterGroup { + s.DBParameterGroupFamily = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DBClusterParameterGroup) SetDescription(v string) *DBClusterParameterGroup { + s.Description = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBClusterParameterGroupNameMessage type DBClusterParameterGroupNameMessage struct { _ struct{} `type:"structure"` @@ -10339,13 +12422,13 @@ type DBClusterParameterGroupNameMessage struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // This value is stored as a lowercase string. + // This value is stored as a lowercase string. DBClusterParameterGroupName *string `type:"string"` } @@ -10359,8 +12442,15 @@ func (s DBClusterParameterGroupNameMessage) GoString() string { return s.String() } +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *DBClusterParameterGroupNameMessage) SetDBClusterParameterGroupName(v string) *DBClusterParameterGroupNameMessage { + s.DBClusterParameterGroupName = &v + return s +} + // Describes an AWS Identity and Access Management (IAM) role that is associated // with a DB cluster. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBClusterRole type DBClusterRole struct { _ struct{} `type:"structure"` @@ -10371,14 +12461,14 @@ type DBClusterRole struct { // Describes the state of association between the IAM role and the DB cluster. // The Status property returns one of the following values: // - // ACTIVE - the IAM role ARN is associated with the DB cluster and can be - // used to access other AWS services on your behalf. + // * ACTIVE - the IAM role ARN is associated with the DB cluster and can + // be used to access other AWS services on your behalf. // - // PENDING - the IAM role ARN is being associated with the DB cluster. + // * PENDING - the IAM role ARN is being associated with the DB cluster. // - // INVALID - the IAM role ARN is associated with the DB cluster, but the - // DB cluster is unable to assume the IAM role in order to access other AWS - // services on your behalf. + // * INVALID - the IAM role ARN is associated with the DB cluster, but the + // DB cluster is unable to assume the IAM role in order to access other AWS + // services on your behalf. Status *string `type:"string"` } @@ -10392,14 +12482,27 @@ func (s DBClusterRole) GoString() string { return s.String() } +// SetRoleArn sets the RoleArn field's value. +func (s *DBClusterRole) SetRoleArn(v string) *DBClusterRole { + s.RoleArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DBClusterRole) SetStatus(v string) *DBClusterRole { + s.Status = &v + return s +} + // Contains the result of a successful invocation of the following actions: // -// CreateDBClusterSnapshot +// * CreateDBClusterSnapshot // -// DeleteDBClusterSnapshot +// * DeleteDBClusterSnapshot // -// This data type is used as a response element in the DescribeDBClusterSnapshots +// This data type is used as a response element in the DescribeDBClusterSnapshots // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBClusterSnapshot type DBClusterSnapshot struct { _ struct{} `type:"structure"` @@ -10474,11 +12577,120 @@ func (s DBClusterSnapshot) GoString() string { return s.String() } +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *DBClusterSnapshot) SetAllocatedStorage(v int64) *DBClusterSnapshot { + s.AllocatedStorage = &v + return s +} + +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *DBClusterSnapshot) SetAvailabilityZones(v []*string) *DBClusterSnapshot { + s.AvailabilityZones = v + return s +} + +// SetClusterCreateTime sets the ClusterCreateTime field's value. +func (s *DBClusterSnapshot) SetClusterCreateTime(v time.Time) *DBClusterSnapshot { + s.ClusterCreateTime = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *DBClusterSnapshot) SetDBClusterIdentifier(v string) *DBClusterSnapshot { + s.DBClusterIdentifier = &v + return s +} + +// SetDBClusterSnapshotArn sets the DBClusterSnapshotArn field's value. +func (s *DBClusterSnapshot) SetDBClusterSnapshotArn(v string) *DBClusterSnapshot { + s.DBClusterSnapshotArn = &v + return s +} + +// SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value. +func (s *DBClusterSnapshot) SetDBClusterSnapshotIdentifier(v string) *DBClusterSnapshot { + s.DBClusterSnapshotIdentifier = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *DBClusterSnapshot) SetEngine(v string) *DBClusterSnapshot { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *DBClusterSnapshot) SetEngineVersion(v string) *DBClusterSnapshot { + s.EngineVersion = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *DBClusterSnapshot) SetKmsKeyId(v string) *DBClusterSnapshot { + s.KmsKeyId = &v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *DBClusterSnapshot) SetLicenseModel(v string) *DBClusterSnapshot { + s.LicenseModel = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *DBClusterSnapshot) SetMasterUsername(v string) *DBClusterSnapshot { + s.MasterUsername = &v + return s +} + +// SetPercentProgress sets the PercentProgress field's value. +func (s *DBClusterSnapshot) SetPercentProgress(v int64) *DBClusterSnapshot { + s.PercentProgress = &v + return s +} + +// SetPort sets the Port field's value. +func (s *DBClusterSnapshot) SetPort(v int64) *DBClusterSnapshot { + s.Port = &v + return s +} + +// SetSnapshotCreateTime sets the SnapshotCreateTime field's value. +func (s *DBClusterSnapshot) SetSnapshotCreateTime(v time.Time) *DBClusterSnapshot { + s.SnapshotCreateTime = &v + return s +} + +// SetSnapshotType sets the SnapshotType field's value. +func (s *DBClusterSnapshot) SetSnapshotType(v string) *DBClusterSnapshot { + s.SnapshotType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DBClusterSnapshot) SetStatus(v string) *DBClusterSnapshot { + s.Status = &v + return s +} + +// SetStorageEncrypted sets the StorageEncrypted field's value. +func (s *DBClusterSnapshot) SetStorageEncrypted(v bool) *DBClusterSnapshot { + s.StorageEncrypted = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DBClusterSnapshot) SetVpcId(v string) *DBClusterSnapshot { + s.VpcId = &v + return s +} + // Contains the name and values of a manual DB cluster snapshot attribute. // // Manual DB cluster snapshot attributes are used to authorize other AWS accounts // to restore a manual DB cluster snapshot. For more information, see the ModifyDBClusterSnapshotAttribute // API action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBClusterSnapshotAttribute type DBClusterSnapshotAttribute struct { _ struct{} `type:"structure"` @@ -10491,11 +12703,11 @@ type DBClusterSnapshotAttribute struct { // The value(s) for the manual DB cluster snapshot attribute. // - // If the AttributeName field is set to restore, then this element returns - // a list of IDs of the AWS accounts that are authorized to copy or restore - // the manual DB cluster snapshot. If a value of all is in the list, then the - // manual DB cluster snapshot is public and available for any AWS account to - // copy or restore. + // If the AttributeName field is set to restore, then this element returns a + // list of IDs of the AWS accounts that are authorized to copy or restore the + // manual DB cluster snapshot. If a value of all is in the list, then the manual + // DB cluster snapshot is public and available for any AWS account to copy or + // restore. AttributeValues []*string `locationNameList:"AttributeValue" type:"list"` } @@ -10509,12 +12721,25 @@ func (s DBClusterSnapshotAttribute) GoString() string { return s.String() } +// SetAttributeName sets the AttributeName field's value. +func (s *DBClusterSnapshotAttribute) SetAttributeName(v string) *DBClusterSnapshotAttribute { + s.AttributeName = &v + return s +} + +// SetAttributeValues sets the AttributeValues field's value. +func (s *DBClusterSnapshotAttribute) SetAttributeValues(v []*string) *DBClusterSnapshotAttribute { + s.AttributeValues = v + return s +} + // Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes // API action. // // Manual DB cluster snapshot attributes are used to authorize other AWS accounts // to copy or restore a manual DB cluster snapshot. For more information, see // the ModifyDBClusterSnapshotAttribute API action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBClusterSnapshotAttributesResult type DBClusterSnapshotAttributesResult struct { _ struct{} `type:"structure"` @@ -10536,7 +12761,20 @@ func (s DBClusterSnapshotAttributesResult) GoString() string { return s.String() } +// SetDBClusterSnapshotAttributes sets the DBClusterSnapshotAttributes field's value. +func (s *DBClusterSnapshotAttributesResult) SetDBClusterSnapshotAttributes(v []*DBClusterSnapshotAttribute) *DBClusterSnapshotAttributesResult { + s.DBClusterSnapshotAttributes = v + return s +} + +// SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value. +func (s *DBClusterSnapshotAttributesResult) SetDBClusterSnapshotIdentifier(v string) *DBClusterSnapshotAttributesResult { + s.DBClusterSnapshotIdentifier = &v + return s +} + // This data type is used as a response element in the action DescribeDBEngineVersions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBEngineVersion type DBEngineVersion struct { _ struct{} `type:"structure"` @@ -10582,16 +12820,70 @@ func (s DBEngineVersion) GoString() string { return s.String() } +// SetDBEngineDescription sets the DBEngineDescription field's value. +func (s *DBEngineVersion) SetDBEngineDescription(v string) *DBEngineVersion { + s.DBEngineDescription = &v + return s +} + +// SetDBEngineVersionDescription sets the DBEngineVersionDescription field's value. +func (s *DBEngineVersion) SetDBEngineVersionDescription(v string) *DBEngineVersion { + s.DBEngineVersionDescription = &v + return s +} + +// SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value. +func (s *DBEngineVersion) SetDBParameterGroupFamily(v string) *DBEngineVersion { + s.DBParameterGroupFamily = &v + return s +} + +// SetDefaultCharacterSet sets the DefaultCharacterSet field's value. +func (s *DBEngineVersion) SetDefaultCharacterSet(v *CharacterSet) *DBEngineVersion { + s.DefaultCharacterSet = v + return s +} + +// SetEngine sets the Engine field's value. +func (s *DBEngineVersion) SetEngine(v string) *DBEngineVersion { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *DBEngineVersion) SetEngineVersion(v string) *DBEngineVersion { + s.EngineVersion = &v + return s +} + +// SetSupportedCharacterSets sets the SupportedCharacterSets field's value. +func (s *DBEngineVersion) SetSupportedCharacterSets(v []*CharacterSet) *DBEngineVersion { + s.SupportedCharacterSets = v + return s +} + +// SetSupportedTimezones sets the SupportedTimezones field's value. +func (s *DBEngineVersion) SetSupportedTimezones(v []*Timezone) *DBEngineVersion { + s.SupportedTimezones = v + return s +} + +// SetValidUpgradeTarget sets the ValidUpgradeTarget field's value. +func (s *DBEngineVersion) SetValidUpgradeTarget(v []*UpgradeTarget) *DBEngineVersion { + s.ValidUpgradeTarget = v + return s +} + // Contains the result of a successful invocation of the following actions: // -// CreateDBInstance +// * CreateDBInstance // -// DeleteDBInstance +// * DeleteDBInstance // -// ModifyDBInstance +// * ModifyDBInstance // -// This data type is used as a response element in the DescribeDBInstances -// action. +// This data type is used as a response element in the DescribeDBInstances action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBInstance type DBInstance struct { _ struct{} `type:"structure"` @@ -10640,7 +12932,7 @@ type DBInstance struct { // when returning values from CreateDBInstanceReadReplica since Read Replicas // are only supported for these engines. // - // MySQL, MariaDB, SQL Server, PostgreSQL, Amazon Aurora + // MySQL, MariaDB, SQL Server, PostgreSQL, Amazon Aurora // // Contains the name of the initial database of this instance that was provided // at create time, if one was specified when the DB instance was created. This @@ -10648,7 +12940,7 @@ type DBInstance struct { // // Type: String // - // Oracle + // Oracle // // Contains the Oracle System ID (SID) of the created DB instance. Not shown // when the returned parameters do not apply to an Oracle DB instance. @@ -10718,95 +13010,387 @@ type DBInstance struct { // to CloudWatch Logs. MonitoringRoleArn *string `type:"string"` - // Specifies if the DB instance is a Multi-AZ deployment. - MultiAZ *bool `type:"boolean"` + // Specifies if the DB instance is a Multi-AZ deployment. + MultiAZ *bool `type:"boolean"` + + // Provides the list of option group memberships for this DB instance. + OptionGroupMemberships []*OptionGroupMembership `locationNameList:"OptionGroupMembership" type:"list"` + + // Specifies that changes to the DB instance are pending. This element is only + // included when changes are pending. Specific changes are identified by subelements. + PendingModifiedValues *PendingModifiedValues `type:"structure"` + + // Specifies the daily time range during which automated backups are created + // if automated backups are enabled, as determined by the BackupRetentionPeriod. + PreferredBackupWindow *string `type:"string"` + + // Specifies the weekly time range during which system maintenance can occur, + // in Universal Coordinated Time (UTC). + PreferredMaintenanceWindow *string `type:"string"` + + // A value that specifies the order in which an Aurora Replica is promoted to + // the primary instance after a failure of the existing primary instance. For + // more information, see Fault Tolerance for an Aurora DB Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Managing.html#Aurora.Managing.FaultTolerance). + PromotionTier *int64 `type:"integer"` + + // Specifies the accessibility options for the DB instance. A value of true + // specifies an Internet-facing instance with a publicly resolvable DNS name, + // which resolves to a public IP address. A value of false specifies an internal + // instance with a DNS name that resolves to a private IP address. + // + // Default: The default behavior varies depending on whether a VPC has been + // requested or not. The following list shows the default behavior in each case. + // + // * Default VPC:true + // + // * VPC:false + // + // If no DB subnet group has been specified as part of the request and the PubliclyAccessible + // value has not been set, the DB instance will be publicly accessible. If a + // specific DB subnet group has been specified as part of the request and the + // PubliclyAccessible value has not been set, the DB instance will be private. + PubliclyAccessible *bool `type:"boolean"` + + // Contains one or more identifiers of Aurora DB clusters that are Read Replicas + // of this DB instance. + ReadReplicaDBClusterIdentifiers []*string `locationNameList:"ReadReplicaDBClusterIdentifier" type:"list"` + + // Contains one or more identifiers of the Read Replicas associated with this + // DB instance. + ReadReplicaDBInstanceIdentifiers []*string `locationNameList:"ReadReplicaDBInstanceIdentifier" type:"list"` + + // Contains the identifier of the source DB instance if this DB instance is + // a Read Replica. + ReadReplicaSourceDBInstanceIdentifier *string `type:"string"` + + // If present, specifies the name of the secondary Availability Zone for a DB + // instance with multi-AZ support. + SecondaryAvailabilityZone *string `type:"string"` + + // The status of a Read Replica. If the instance is not a Read Replica, this + // will be blank. + StatusInfos []*DBInstanceStatusInfo `locationNameList:"DBInstanceStatusInfo" type:"list"` + + // Specifies whether the DB instance is encrypted. + StorageEncrypted *bool `type:"boolean"` + + // Specifies the storage type associated with DB instance. + StorageType *string `type:"string"` + + // The ARN from the key store with which the instance is associated for TDE + // encryption. + TdeCredentialArn *string `type:"string"` + + // The time zone of the DB instance. In most cases, the Timezone element is + // empty. Timezone content appears only for Microsoft SQL Server DB instances + // that were created with a time zone specified. + Timezone *string `type:"string"` + + // Provides a list of VPC security group elements that the DB instance belongs + // to. + VpcSecurityGroups []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroupMembership" type:"list"` +} + +// String returns the string representation +func (s DBInstance) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DBInstance) GoString() string { + return s.String() +} + +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *DBInstance) SetAllocatedStorage(v int64) *DBInstance { + s.AllocatedStorage = &v + return s +} + +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *DBInstance) SetAutoMinorVersionUpgrade(v bool) *DBInstance { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *DBInstance) SetAvailabilityZone(v string) *DBInstance { + s.AvailabilityZone = &v + return s +} + +// SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value. +func (s *DBInstance) SetBackupRetentionPeriod(v int64) *DBInstance { + s.BackupRetentionPeriod = &v + return s +} + +// SetCACertificateIdentifier sets the CACertificateIdentifier field's value. +func (s *DBInstance) SetCACertificateIdentifier(v string) *DBInstance { + s.CACertificateIdentifier = &v + return s +} + +// SetCharacterSetName sets the CharacterSetName field's value. +func (s *DBInstance) SetCharacterSetName(v string) *DBInstance { + s.CharacterSetName = &v + return s +} + +// SetCopyTagsToSnapshot sets the CopyTagsToSnapshot field's value. +func (s *DBInstance) SetCopyTagsToSnapshot(v bool) *DBInstance { + s.CopyTagsToSnapshot = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *DBInstance) SetDBClusterIdentifier(v string) *DBInstance { + s.DBClusterIdentifier = &v + return s +} + +// SetDBInstanceArn sets the DBInstanceArn field's value. +func (s *DBInstance) SetDBInstanceArn(v string) *DBInstance { + s.DBInstanceArn = &v + return s +} + +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *DBInstance) SetDBInstanceClass(v string) *DBInstance { + s.DBInstanceClass = &v + return s +} + +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *DBInstance) SetDBInstanceIdentifier(v string) *DBInstance { + s.DBInstanceIdentifier = &v + return s +} + +// SetDBInstanceStatus sets the DBInstanceStatus field's value. +func (s *DBInstance) SetDBInstanceStatus(v string) *DBInstance { + s.DBInstanceStatus = &v + return s +} + +// SetDBName sets the DBName field's value. +func (s *DBInstance) SetDBName(v string) *DBInstance { + s.DBName = &v + return s +} + +// SetDBParameterGroups sets the DBParameterGroups field's value. +func (s *DBInstance) SetDBParameterGroups(v []*DBParameterGroupStatus) *DBInstance { + s.DBParameterGroups = v + return s +} + +// SetDBSecurityGroups sets the DBSecurityGroups field's value. +func (s *DBInstance) SetDBSecurityGroups(v []*DBSecurityGroupMembership) *DBInstance { + s.DBSecurityGroups = v + return s +} + +// SetDBSubnetGroup sets the DBSubnetGroup field's value. +func (s *DBInstance) SetDBSubnetGroup(v *DBSubnetGroup) *DBInstance { + s.DBSubnetGroup = v + return s +} + +// SetDbInstancePort sets the DbInstancePort field's value. +func (s *DBInstance) SetDbInstancePort(v int64) *DBInstance { + s.DbInstancePort = &v + return s +} + +// SetDbiResourceId sets the DbiResourceId field's value. +func (s *DBInstance) SetDbiResourceId(v string) *DBInstance { + s.DbiResourceId = &v + return s +} + +// SetDomainMemberships sets the DomainMemberships field's value. +func (s *DBInstance) SetDomainMemberships(v []*DomainMembership) *DBInstance { + s.DomainMemberships = v + return s +} + +// SetEndpoint sets the Endpoint field's value. +func (s *DBInstance) SetEndpoint(v *Endpoint) *DBInstance { + s.Endpoint = v + return s +} + +// SetEngine sets the Engine field's value. +func (s *DBInstance) SetEngine(v string) *DBInstance { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *DBInstance) SetEngineVersion(v string) *DBInstance { + s.EngineVersion = &v + return s +} + +// SetEnhancedMonitoringResourceArn sets the EnhancedMonitoringResourceArn field's value. +func (s *DBInstance) SetEnhancedMonitoringResourceArn(v string) *DBInstance { + s.EnhancedMonitoringResourceArn = &v + return s +} + +// SetInstanceCreateTime sets the InstanceCreateTime field's value. +func (s *DBInstance) SetInstanceCreateTime(v time.Time) *DBInstance { + s.InstanceCreateTime = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *DBInstance) SetIops(v int64) *DBInstance { + s.Iops = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *DBInstance) SetKmsKeyId(v string) *DBInstance { + s.KmsKeyId = &v + return s +} + +// SetLatestRestorableTime sets the LatestRestorableTime field's value. +func (s *DBInstance) SetLatestRestorableTime(v time.Time) *DBInstance { + s.LatestRestorableTime = &v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *DBInstance) SetLicenseModel(v string) *DBInstance { + s.LicenseModel = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *DBInstance) SetMasterUsername(v string) *DBInstance { + s.MasterUsername = &v + return s +} + +// SetMonitoringInterval sets the MonitoringInterval field's value. +func (s *DBInstance) SetMonitoringInterval(v int64) *DBInstance { + s.MonitoringInterval = &v + return s +} + +// SetMonitoringRoleArn sets the MonitoringRoleArn field's value. +func (s *DBInstance) SetMonitoringRoleArn(v string) *DBInstance { + s.MonitoringRoleArn = &v + return s +} - // Provides the list of option group memberships for this DB instance. - OptionGroupMemberships []*OptionGroupMembership `locationNameList:"OptionGroupMembership" type:"list"` +// SetMultiAZ sets the MultiAZ field's value. +func (s *DBInstance) SetMultiAZ(v bool) *DBInstance { + s.MultiAZ = &v + return s +} - // Specifies that changes to the DB instance are pending. This element is only - // included when changes are pending. Specific changes are identified by subelements. - PendingModifiedValues *PendingModifiedValues `type:"structure"` +// SetOptionGroupMemberships sets the OptionGroupMemberships field's value. +func (s *DBInstance) SetOptionGroupMemberships(v []*OptionGroupMembership) *DBInstance { + s.OptionGroupMemberships = v + return s +} - // Specifies the daily time range during which automated backups are created - // if automated backups are enabled, as determined by the BackupRetentionPeriod. - PreferredBackupWindow *string `type:"string"` +// SetPendingModifiedValues sets the PendingModifiedValues field's value. +func (s *DBInstance) SetPendingModifiedValues(v *PendingModifiedValues) *DBInstance { + s.PendingModifiedValues = v + return s +} - // Specifies the weekly time range during which system maintenance can occur, - // in Universal Coordinated Time (UTC). - PreferredMaintenanceWindow *string `type:"string"` +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *DBInstance) SetPreferredBackupWindow(v string) *DBInstance { + s.PreferredBackupWindow = &v + return s +} - // A value that specifies the order in which an Aurora Replica is promoted to - // the primary instance after a failure of the existing primary instance. For - // more information, see Fault Tolerance for an Aurora DB Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Managing.html#Aurora.Managing.FaultTolerance). - PromotionTier *int64 `type:"integer"` +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *DBInstance) SetPreferredMaintenanceWindow(v string) *DBInstance { + s.PreferredMaintenanceWindow = &v + return s +} - // Specifies the accessibility options for the DB instance. A value of true - // specifies an Internet-facing instance with a publicly resolvable DNS name, - // which resolves to a public IP address. A value of false specifies an internal - // instance with a DNS name that resolves to a private IP address. - // - // Default: The default behavior varies depending on whether a VPC has been - // requested or not. The following list shows the default behavior in each case. - // - // Default VPC:true - // - // VPC:false - // - // If no DB subnet group has been specified as part of the request and the - // PubliclyAccessible value has not been set, the DB instance will be publicly - // accessible. If a specific DB subnet group has been specified as part of the - // request and the PubliclyAccessible value has not been set, the DB instance - // will be private. - PubliclyAccessible *bool `type:"boolean"` +// SetPromotionTier sets the PromotionTier field's value. +func (s *DBInstance) SetPromotionTier(v int64) *DBInstance { + s.PromotionTier = &v + return s +} - // Contains one or more identifiers of the Read Replicas associated with this - // DB instance. - ReadReplicaDBInstanceIdentifiers []*string `locationNameList:"ReadReplicaDBInstanceIdentifier" type:"list"` +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *DBInstance) SetPubliclyAccessible(v bool) *DBInstance { + s.PubliclyAccessible = &v + return s +} - // Contains the identifier of the source DB instance if this DB instance is - // a Read Replica. - ReadReplicaSourceDBInstanceIdentifier *string `type:"string"` +// SetReadReplicaDBClusterIdentifiers sets the ReadReplicaDBClusterIdentifiers field's value. +func (s *DBInstance) SetReadReplicaDBClusterIdentifiers(v []*string) *DBInstance { + s.ReadReplicaDBClusterIdentifiers = v + return s +} - // If present, specifies the name of the secondary Availability Zone for a DB - // instance with multi-AZ support. - SecondaryAvailabilityZone *string `type:"string"` +// SetReadReplicaDBInstanceIdentifiers sets the ReadReplicaDBInstanceIdentifiers field's value. +func (s *DBInstance) SetReadReplicaDBInstanceIdentifiers(v []*string) *DBInstance { + s.ReadReplicaDBInstanceIdentifiers = v + return s +} - // The status of a Read Replica. If the instance is not a Read Replica, this - // will be blank. - StatusInfos []*DBInstanceStatusInfo `locationNameList:"DBInstanceStatusInfo" type:"list"` +// SetReadReplicaSourceDBInstanceIdentifier sets the ReadReplicaSourceDBInstanceIdentifier field's value. +func (s *DBInstance) SetReadReplicaSourceDBInstanceIdentifier(v string) *DBInstance { + s.ReadReplicaSourceDBInstanceIdentifier = &v + return s +} - // Specifies whether the DB instance is encrypted. - StorageEncrypted *bool `type:"boolean"` +// SetSecondaryAvailabilityZone sets the SecondaryAvailabilityZone field's value. +func (s *DBInstance) SetSecondaryAvailabilityZone(v string) *DBInstance { + s.SecondaryAvailabilityZone = &v + return s +} - // Specifies the storage type associated with DB instance. - StorageType *string `type:"string"` +// SetStatusInfos sets the StatusInfos field's value. +func (s *DBInstance) SetStatusInfos(v []*DBInstanceStatusInfo) *DBInstance { + s.StatusInfos = v + return s +} - // The ARN from the key store with which the instance is associated for TDE - // encryption. - TdeCredentialArn *string `type:"string"` +// SetStorageEncrypted sets the StorageEncrypted field's value. +func (s *DBInstance) SetStorageEncrypted(v bool) *DBInstance { + s.StorageEncrypted = &v + return s +} - // The time zone of the DB instance. In most cases, the Timezone element is - // empty. Timezone content appears only for Microsoft SQL Server DB instances - // that were created with a time zone specified. - Timezone *string `type:"string"` +// SetStorageType sets the StorageType field's value. +func (s *DBInstance) SetStorageType(v string) *DBInstance { + s.StorageType = &v + return s +} - // Provides a list of VPC security group elements that the DB instance belongs - // to. - VpcSecurityGroups []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroupMembership" type:"list"` +// SetTdeCredentialArn sets the TdeCredentialArn field's value. +func (s *DBInstance) SetTdeCredentialArn(v string) *DBInstance { + s.TdeCredentialArn = &v + return s } -// String returns the string representation -func (s DBInstance) String() string { - return awsutil.Prettify(s) +// SetTimezone sets the Timezone field's value. +func (s *DBInstance) SetTimezone(v string) *DBInstance { + s.Timezone = &v + return s } -// GoString returns the string representation -func (s DBInstance) GoString() string { - return s.String() +// SetVpcSecurityGroups sets the VpcSecurityGroups field's value. +func (s *DBInstance) SetVpcSecurityGroups(v []*VpcSecurityGroupMembership) *DBInstance { + s.VpcSecurityGroups = v + return s } // Provides a list of status information for a DB instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBInstanceStatusInfo type DBInstanceStatusInfo struct { _ struct{} `type:"structure"` @@ -10836,11 +13420,36 @@ func (s DBInstanceStatusInfo) GoString() string { return s.String() } +// SetMessage sets the Message field's value. +func (s *DBInstanceStatusInfo) SetMessage(v string) *DBInstanceStatusInfo { + s.Message = &v + return s +} + +// SetNormal sets the Normal field's value. +func (s *DBInstanceStatusInfo) SetNormal(v bool) *DBInstanceStatusInfo { + s.Normal = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DBInstanceStatusInfo) SetStatus(v string) *DBInstanceStatusInfo { + s.Status = &v + return s +} + +// SetStatusType sets the StatusType field's value. +func (s *DBInstanceStatusInfo) SetStatusType(v string) *DBInstanceStatusInfo { + s.StatusType = &v + return s +} + // Contains the result of a successful invocation of the CreateDBParameterGroup // action. // // This data type is used as a request parameter in the DeleteDBParameterGroup // action, and as a response element in the DescribeDBParameterGroups action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBParameterGroup type DBParameterGroup struct { _ struct{} `type:"structure"` @@ -10868,8 +13477,33 @@ func (s DBParameterGroup) GoString() string { return s.String() } +// SetDBParameterGroupArn sets the DBParameterGroupArn field's value. +func (s *DBParameterGroup) SetDBParameterGroupArn(v string) *DBParameterGroup { + s.DBParameterGroupArn = &v + return s +} + +// SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value. +func (s *DBParameterGroup) SetDBParameterGroupFamily(v string) *DBParameterGroup { + s.DBParameterGroupFamily = &v + return s +} + +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *DBParameterGroup) SetDBParameterGroupName(v string) *DBParameterGroup { + s.DBParameterGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DBParameterGroup) SetDescription(v string) *DBParameterGroup { + s.Description = &v + return s +} + // Contains the result of a successful invocation of the ModifyDBParameterGroup // or ResetDBParameterGroup action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBParameterGroupNameMessage type DBParameterGroupNameMessage struct { _ struct{} `type:"structure"` @@ -10887,21 +13521,28 @@ func (s DBParameterGroupNameMessage) GoString() string { return s.String() } +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *DBParameterGroupNameMessage) SetDBParameterGroupName(v string) *DBParameterGroupNameMessage { + s.DBParameterGroupName = &v + return s +} + // The status of the DB parameter group. // // This data type is used as a response element in the following actions: // -// CreateDBInstance +// * CreateDBInstance // -// CreateDBInstanceReadReplica +// * CreateDBInstanceReadReplica // -// DeleteDBInstance +// * DeleteDBInstance // -// ModifyDBInstance +// * ModifyDBInstance // -// RebootDBInstance +// * RebootDBInstance // -// RestoreDBInstanceFromDBSnapshot +// * RestoreDBInstanceFromDBSnapshot +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBParameterGroupStatus type DBParameterGroupStatus struct { _ struct{} `type:"structure"` @@ -10922,18 +13563,31 @@ func (s DBParameterGroupStatus) GoString() string { return s.String() } +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *DBParameterGroupStatus) SetDBParameterGroupName(v string) *DBParameterGroupStatus { + s.DBParameterGroupName = &v + return s +} + +// SetParameterApplyStatus sets the ParameterApplyStatus field's value. +func (s *DBParameterGroupStatus) SetParameterApplyStatus(v string) *DBParameterGroupStatus { + s.ParameterApplyStatus = &v + return s +} + // Contains the result of a successful invocation of the following actions: // -// DescribeDBSecurityGroups +// * DescribeDBSecurityGroups // -// AuthorizeDBSecurityGroupIngress +// * AuthorizeDBSecurityGroupIngress // -// CreateDBSecurityGroup +// * CreateDBSecurityGroup // -// RevokeDBSecurityGroupIngress +// * RevokeDBSecurityGroupIngress // -// This data type is used as a response element in the DescribeDBSecurityGroups +// This data type is used as a response element in the DescribeDBSecurityGroups // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBSecurityGroup type DBSecurityGroup struct { _ struct{} `type:"structure"` @@ -10969,15 +13623,58 @@ func (s DBSecurityGroup) GoString() string { return s.String() } +// SetDBSecurityGroupArn sets the DBSecurityGroupArn field's value. +func (s *DBSecurityGroup) SetDBSecurityGroupArn(v string) *DBSecurityGroup { + s.DBSecurityGroupArn = &v + return s +} + +// SetDBSecurityGroupDescription sets the DBSecurityGroupDescription field's value. +func (s *DBSecurityGroup) SetDBSecurityGroupDescription(v string) *DBSecurityGroup { + s.DBSecurityGroupDescription = &v + return s +} + +// SetDBSecurityGroupName sets the DBSecurityGroupName field's value. +func (s *DBSecurityGroup) SetDBSecurityGroupName(v string) *DBSecurityGroup { + s.DBSecurityGroupName = &v + return s +} + +// SetEC2SecurityGroups sets the EC2SecurityGroups field's value. +func (s *DBSecurityGroup) SetEC2SecurityGroups(v []*EC2SecurityGroup) *DBSecurityGroup { + s.EC2SecurityGroups = v + return s +} + +// SetIPRanges sets the IPRanges field's value. +func (s *DBSecurityGroup) SetIPRanges(v []*IPRange) *DBSecurityGroup { + s.IPRanges = v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *DBSecurityGroup) SetOwnerId(v string) *DBSecurityGroup { + s.OwnerId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DBSecurityGroup) SetVpcId(v string) *DBSecurityGroup { + s.VpcId = &v + return s +} + // This data type is used as a response element in the following actions: // -// ModifyDBInstance +// * ModifyDBInstance // -// RebootDBInstance +// * RebootDBInstance // -// RestoreDBInstanceFromDBSnapshot +// * RestoreDBInstanceFromDBSnapshot // -// RestoreDBInstanceToPointInTime +// * RestoreDBInstanceToPointInTime +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBSecurityGroupMembership type DBSecurityGroupMembership struct { _ struct{} `type:"structure"` @@ -10998,14 +13695,26 @@ func (s DBSecurityGroupMembership) GoString() string { return s.String() } +// SetDBSecurityGroupName sets the DBSecurityGroupName field's value. +func (s *DBSecurityGroupMembership) SetDBSecurityGroupName(v string) *DBSecurityGroupMembership { + s.DBSecurityGroupName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DBSecurityGroupMembership) SetStatus(v string) *DBSecurityGroupMembership { + s.Status = &v + return s +} + // Contains the result of a successful invocation of the following actions: // -// CreateDBSnapshot +// * CreateDBSnapshot // -// DeleteDBSnapshot +// * DeleteDBSnapshot // -// This data type is used as a response element in the DescribeDBSnapshots -// action. +// This data type is used as a response element in the DescribeDBSnapshots action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBSnapshot type DBSnapshot struct { _ struct{} `type:"structure"` @@ -11104,11 +13813,162 @@ func (s DBSnapshot) GoString() string { return s.String() } +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *DBSnapshot) SetAllocatedStorage(v int64) *DBSnapshot { + s.AllocatedStorage = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *DBSnapshot) SetAvailabilityZone(v string) *DBSnapshot { + s.AvailabilityZone = &v + return s +} + +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *DBSnapshot) SetDBInstanceIdentifier(v string) *DBSnapshot { + s.DBInstanceIdentifier = &v + return s +} + +// SetDBSnapshotArn sets the DBSnapshotArn field's value. +func (s *DBSnapshot) SetDBSnapshotArn(v string) *DBSnapshot { + s.DBSnapshotArn = &v + return s +} + +// SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value. +func (s *DBSnapshot) SetDBSnapshotIdentifier(v string) *DBSnapshot { + s.DBSnapshotIdentifier = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *DBSnapshot) SetEncrypted(v bool) *DBSnapshot { + s.Encrypted = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *DBSnapshot) SetEngine(v string) *DBSnapshot { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *DBSnapshot) SetEngineVersion(v string) *DBSnapshot { + s.EngineVersion = &v + return s +} + +// SetInstanceCreateTime sets the InstanceCreateTime field's value. +func (s *DBSnapshot) SetInstanceCreateTime(v time.Time) *DBSnapshot { + s.InstanceCreateTime = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *DBSnapshot) SetIops(v int64) *DBSnapshot { + s.Iops = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *DBSnapshot) SetKmsKeyId(v string) *DBSnapshot { + s.KmsKeyId = &v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *DBSnapshot) SetLicenseModel(v string) *DBSnapshot { + s.LicenseModel = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *DBSnapshot) SetMasterUsername(v string) *DBSnapshot { + s.MasterUsername = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *DBSnapshot) SetOptionGroupName(v string) *DBSnapshot { + s.OptionGroupName = &v + return s +} + +// SetPercentProgress sets the PercentProgress field's value. +func (s *DBSnapshot) SetPercentProgress(v int64) *DBSnapshot { + s.PercentProgress = &v + return s +} + +// SetPort sets the Port field's value. +func (s *DBSnapshot) SetPort(v int64) *DBSnapshot { + s.Port = &v + return s +} + +// SetSnapshotCreateTime sets the SnapshotCreateTime field's value. +func (s *DBSnapshot) SetSnapshotCreateTime(v time.Time) *DBSnapshot { + s.SnapshotCreateTime = &v + return s +} + +// SetSnapshotType sets the SnapshotType field's value. +func (s *DBSnapshot) SetSnapshotType(v string) *DBSnapshot { + s.SnapshotType = &v + return s +} + +// SetSourceDBSnapshotIdentifier sets the SourceDBSnapshotIdentifier field's value. +func (s *DBSnapshot) SetSourceDBSnapshotIdentifier(v string) *DBSnapshot { + s.SourceDBSnapshotIdentifier = &v + return s +} + +// SetSourceRegion sets the SourceRegion field's value. +func (s *DBSnapshot) SetSourceRegion(v string) *DBSnapshot { + s.SourceRegion = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DBSnapshot) SetStatus(v string) *DBSnapshot { + s.Status = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *DBSnapshot) SetStorageType(v string) *DBSnapshot { + s.StorageType = &v + return s +} + +// SetTdeCredentialArn sets the TdeCredentialArn field's value. +func (s *DBSnapshot) SetTdeCredentialArn(v string) *DBSnapshot { + s.TdeCredentialArn = &v + return s +} + +// SetTimezone sets the Timezone field's value. +func (s *DBSnapshot) SetTimezone(v string) *DBSnapshot { + s.Timezone = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DBSnapshot) SetVpcId(v string) *DBSnapshot { + s.VpcId = &v + return s +} + // Contains the name and values of a manual DB snapshot attribute // // Manual DB snapshot attributes are used to authorize other AWS accounts to // restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute // API. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBSnapshotAttribute type DBSnapshotAttribute struct { _ struct{} `type:"structure"` @@ -11121,10 +13981,10 @@ type DBSnapshotAttribute struct { // The value or values for the manual DB snapshot attribute. // - // If the AttributeName field is set to restore, then this element returns - // a list of IDs of the AWS accounts that are authorized to copy or restore - // the manual DB snapshot. If a value of all is in the list, then the manual - // DB snapshot is public and available for any AWS account to copy or restore. + // If the AttributeName field is set to restore, then this element returns a + // list of IDs of the AWS accounts that are authorized to copy or restore the + // manual DB snapshot. If a value of all is in the list, then the manual DB + // snapshot is public and available for any AWS account to copy or restore. AttributeValues []*string `locationNameList:"AttributeValue" type:"list"` } @@ -11138,12 +13998,25 @@ func (s DBSnapshotAttribute) GoString() string { return s.String() } +// SetAttributeName sets the AttributeName field's value. +func (s *DBSnapshotAttribute) SetAttributeName(v string) *DBSnapshotAttribute { + s.AttributeName = &v + return s +} + +// SetAttributeValues sets the AttributeValues field's value. +func (s *DBSnapshotAttribute) SetAttributeValues(v []*string) *DBSnapshotAttribute { + s.AttributeValues = v + return s +} + // Contains the results of a successful call to the DescribeDBSnapshotAttributes // API action. // // Manual DB snapshot attributes are used to authorize other AWS accounts to // copy or restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute // API action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBSnapshotAttributesResult type DBSnapshotAttributesResult struct { _ struct{} `type:"structure"` @@ -11164,18 +14037,31 @@ func (s DBSnapshotAttributesResult) GoString() string { return s.String() } +// SetDBSnapshotAttributes sets the DBSnapshotAttributes field's value. +func (s *DBSnapshotAttributesResult) SetDBSnapshotAttributes(v []*DBSnapshotAttribute) *DBSnapshotAttributesResult { + s.DBSnapshotAttributes = v + return s +} + +// SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value. +func (s *DBSnapshotAttributesResult) SetDBSnapshotIdentifier(v string) *DBSnapshotAttributesResult { + s.DBSnapshotIdentifier = &v + return s +} + // Contains the result of a successful invocation of the following actions: // -// CreateDBSubnetGroup +// * CreateDBSubnetGroup // -// ModifyDBSubnetGroup +// * ModifyDBSubnetGroup // -// DescribeDBSubnetGroups +// * DescribeDBSubnetGroups // -// DeleteDBSubnetGroup +// * DeleteDBSubnetGroup // -// This data type is used as a response element in the DescribeDBSubnetGroups +// This data type is used as a response element in the DescribeDBSubnetGroups // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBSubnetGroup type DBSubnetGroup struct { _ struct{} `type:"structure"` @@ -11208,6 +14094,43 @@ func (s DBSubnetGroup) GoString() string { return s.String() } +// SetDBSubnetGroupArn sets the DBSubnetGroupArn field's value. +func (s *DBSubnetGroup) SetDBSubnetGroupArn(v string) *DBSubnetGroup { + s.DBSubnetGroupArn = &v + return s +} + +// SetDBSubnetGroupDescription sets the DBSubnetGroupDescription field's value. +func (s *DBSubnetGroup) SetDBSubnetGroupDescription(v string) *DBSubnetGroup { + s.DBSubnetGroupDescription = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *DBSubnetGroup) SetDBSubnetGroupName(v string) *DBSubnetGroup { + s.DBSubnetGroupName = &v + return s +} + +// SetSubnetGroupStatus sets the SubnetGroupStatus field's value. +func (s *DBSubnetGroup) SetSubnetGroupStatus(v string) *DBSubnetGroup { + s.SubnetGroupStatus = &v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *DBSubnetGroup) SetSubnets(v []*Subnet) *DBSubnetGroup { + s.Subnets = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DBSubnetGroup) SetVpcId(v string) *DBSubnetGroup { + s.VpcId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterMessage type DeleteDBClusterInput struct { _ struct{} `type:"structure"` @@ -11216,11 +14139,11 @@ type DeleteDBClusterInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBClusterIdentifier is a required field DBClusterIdentifier *string `type:"string" required:"true"` @@ -11228,26 +14151,26 @@ type DeleteDBClusterInput struct { // The DB cluster snapshot identifier of the new DB cluster snapshot created // when SkipFinalSnapshot is set to false. // - // Specifying this parameter and also setting the SkipFinalShapshot parameter + // Specifying this parameter and also setting the SkipFinalShapshot parameter // to true results in an error. // - // Constraints: + // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens FinalDBSnapshotIdentifier *string `type:"string"` // Determines whether a final DB cluster snapshot is created before the DB cluster // is deleted. If true is specified, no DB cluster snapshot is created. If false // is specified, a DB cluster snapshot is created before the DB cluster is deleted. // - // You must specify a FinalDBSnapshotIdentifier parameter if SkipFinalSnapshot + // You must specify a FinalDBSnapshotIdentifier parameter if SkipFinalSnapshot // is false. // - // Default: false + // Default: false SkipFinalSnapshot *bool `type:"boolean"` } @@ -11274,25 +14197,43 @@ func (s *DeleteDBClusterInput) Validate() error { return nil } +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *DeleteDBClusterInput) SetDBClusterIdentifier(v string) *DeleteDBClusterInput { + s.DBClusterIdentifier = &v + return s +} + +// SetFinalDBSnapshotIdentifier sets the FinalDBSnapshotIdentifier field's value. +func (s *DeleteDBClusterInput) SetFinalDBSnapshotIdentifier(v string) *DeleteDBClusterInput { + s.FinalDBSnapshotIdentifier = &v + return s +} + +// SetSkipFinalSnapshot sets the SkipFinalSnapshot field's value. +func (s *DeleteDBClusterInput) SetSkipFinalSnapshot(v bool) *DeleteDBClusterInput { + s.SkipFinalSnapshot = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterResult type DeleteDBClusterOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster + // * CreateDBCluster // - // DeleteDBCluster + // * DeleteDBCluster // - // FailoverDBCluster + // * FailoverDBCluster // - // ModifyDBCluster + // * ModifyDBCluster // - // RestoreDBClusterFromSnapshot + // * RestoreDBClusterFromSnapshot // - // RestoreDBClusterToPointInTime + // * RestoreDBClusterToPointInTime // - // This data type is used as a response element in the DescribeDBClusters - // action. + // This data type is used as a response element in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` } @@ -11306,6 +14247,13 @@ func (s DeleteDBClusterOutput) GoString() string { return s.String() } +// SetDBCluster sets the DBCluster field's value. +func (s *DeleteDBClusterOutput) SetDBCluster(v *DBCluster) *DeleteDBClusterOutput { + s.DBCluster = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterParameterGroupMessage type DeleteDBClusterParameterGroupInput struct { _ struct{} `type:"structure"` @@ -11313,11 +14261,11 @@ type DeleteDBClusterParameterGroupInput struct { // // Constraints: // - // Must be the name of an existing DB cluster parameter group. + // * Must be the name of an existing DB cluster parameter group. // - // You cannot delete a default DB cluster parameter group. + // * You cannot delete a default DB cluster parameter group. // - // Cannot be associated with any DB clusters. + // * Cannot be associated with any DB clusters. // // DBClusterParameterGroupName is a required field DBClusterParameterGroupName *string `type:"string" required:"true"` @@ -11346,6 +14294,13 @@ func (s *DeleteDBClusterParameterGroupInput) Validate() error { return nil } +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *DeleteDBClusterParameterGroupInput) SetDBClusterParameterGroupName(v string) *DeleteDBClusterParameterGroupInput { + s.DBClusterParameterGroupName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterParameterGroupOutput type DeleteDBClusterParameterGroupOutput struct { _ struct{} `type:"structure"` } @@ -11360,13 +14315,14 @@ func (s DeleteDBClusterParameterGroupOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterSnapshotMessage type DeleteDBClusterSnapshotInput struct { _ struct{} `type:"structure"` // The identifier of the DB cluster snapshot to delete. // - // Constraints: Must be the name of an existing DB cluster snapshot in the - // available state. + // Constraints: Must be the name of an existing DB cluster snapshot in the available + // state. // // DBClusterSnapshotIdentifier is a required field DBClusterSnapshotIdentifier *string `type:"string" required:"true"` @@ -11395,16 +14351,23 @@ func (s *DeleteDBClusterSnapshotInput) Validate() error { return nil } +// SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value. +func (s *DeleteDBClusterSnapshotInput) SetDBClusterSnapshotIdentifier(v string) *DeleteDBClusterSnapshotInput { + s.DBClusterSnapshotIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterSnapshotResult type DeleteDBClusterSnapshotOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBClusterSnapshot + // * CreateDBClusterSnapshot // - // DeleteDBClusterSnapshot + // * DeleteDBClusterSnapshot // - // This data type is used as a response element in the DescribeDBClusterSnapshots + // This data type is used as a response element in the DescribeDBClusterSnapshots // action. DBClusterSnapshot *DBClusterSnapshot `type:"structure"` } @@ -11419,6 +14382,13 @@ func (s DeleteDBClusterSnapshotOutput) GoString() string { return s.String() } +// SetDBClusterSnapshot sets the DBClusterSnapshot field's value. +func (s *DeleteDBClusterSnapshotOutput) SetDBClusterSnapshot(v *DBClusterSnapshot) *DeleteDBClusterSnapshotOutput { + s.DBClusterSnapshot = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBInstanceMessage type DeleteDBInstanceInput struct { _ struct{} `type:"structure"` @@ -11427,11 +14397,11 @@ type DeleteDBInstanceInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBInstanceIdentifier is a required field DBInstanceIdentifier *string `type:"string" required:"true"` @@ -11439,18 +14409,18 @@ type DeleteDBInstanceInput struct { // The DBSnapshotIdentifier of the new DBSnapshot created when SkipFinalSnapshot // is set to false. // - // Specifying this parameter and also setting the SkipFinalShapshot parameter + // Specifying this parameter and also setting the SkipFinalShapshot parameter // to true results in an error. // - // Constraints: + // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Cannot be specified when deleting a Read Replica. + // * Cannot be specified when deleting a Read Replica. FinalDBSnapshotIdentifier *string `type:"string"` // Determines whether a final DB snapshot is created before the DB instance @@ -11463,10 +14433,10 @@ type DeleteDBInstanceInput struct { // // Specify true when deleting a Read Replica. // - // The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot + // The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot // is false. // - // Default: false + // Default: false SkipFinalSnapshot *bool `type:"boolean"` } @@ -11493,19 +14463,37 @@ func (s *DeleteDBInstanceInput) Validate() error { return nil } +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *DeleteDBInstanceInput) SetDBInstanceIdentifier(v string) *DeleteDBInstanceInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetFinalDBSnapshotIdentifier sets the FinalDBSnapshotIdentifier field's value. +func (s *DeleteDBInstanceInput) SetFinalDBSnapshotIdentifier(v string) *DeleteDBInstanceInput { + s.FinalDBSnapshotIdentifier = &v + return s +} + +// SetSkipFinalSnapshot sets the SkipFinalSnapshot field's value. +func (s *DeleteDBInstanceInput) SetSkipFinalSnapshot(v bool) *DeleteDBInstanceInput { + s.SkipFinalSnapshot = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBInstanceResult type DeleteDBInstanceOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance + // * CreateDBInstance // - // DeleteDBInstance + // * DeleteDBInstance // - // ModifyDBInstance + // * ModifyDBInstance // - // This data type is used as a response element in the DescribeDBInstances - // action. + // This data type is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` } @@ -11519,6 +14507,13 @@ func (s DeleteDBInstanceOutput) GoString() string { return s.String() } +// SetDBInstance sets the DBInstance field's value. +func (s *DeleteDBInstanceOutput) SetDBInstance(v *DBInstance) *DeleteDBInstanceOutput { + s.DBInstance = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBParameterGroupMessage type DeleteDBParameterGroupInput struct { _ struct{} `type:"structure"` @@ -11526,11 +14521,11 @@ type DeleteDBParameterGroupInput struct { // // Constraints: // - // Must be the name of an existing DB parameter group + // * Must be the name of an existing DB parameter group // - // You cannot delete a default DB parameter group + // * You cannot delete a default DB parameter group // - // Cannot be associated with any DB instances + // * Cannot be associated with any DB instances // // DBParameterGroupName is a required field DBParameterGroupName *string `type:"string" required:"true"` @@ -11559,6 +14554,13 @@ func (s *DeleteDBParameterGroupInput) Validate() error { return nil } +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *DeleteDBParameterGroupInput) SetDBParameterGroupName(v string) *DeleteDBParameterGroupInput { + s.DBParameterGroupName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBParameterGroupOutput type DeleteDBParameterGroupOutput struct { _ struct{} `type:"structure"` } @@ -11573,22 +14575,23 @@ func (s DeleteDBParameterGroupOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSecurityGroupMessage type DeleteDBSecurityGroupInput struct { _ struct{} `type:"structure"` // The name of the DB security group to delete. // - // You cannot delete the default DB security group. + // You cannot delete the default DB security group. // - // Constraints: + // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Must not be "Default" + // * Must not be "Default" // // DBSecurityGroupName is a required field DBSecurityGroupName *string `type:"string" required:"true"` @@ -11617,6 +14620,13 @@ func (s *DeleteDBSecurityGroupInput) Validate() error { return nil } +// SetDBSecurityGroupName sets the DBSecurityGroupName field's value. +func (s *DeleteDBSecurityGroupInput) SetDBSecurityGroupName(v string) *DeleteDBSecurityGroupInput { + s.DBSecurityGroupName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSecurityGroupOutput type DeleteDBSecurityGroupOutput struct { _ struct{} `type:"structure"` } @@ -11631,6 +14641,7 @@ func (s DeleteDBSecurityGroupOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSnapshotMessage type DeleteDBSnapshotInput struct { _ struct{} `type:"structure"` @@ -11666,17 +14677,23 @@ func (s *DeleteDBSnapshotInput) Validate() error { return nil } +// SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value. +func (s *DeleteDBSnapshotInput) SetDBSnapshotIdentifier(v string) *DeleteDBSnapshotInput { + s.DBSnapshotIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSnapshotResult type DeleteDBSnapshotOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBSnapshot + // * CreateDBSnapshot // - // DeleteDBSnapshot + // * DeleteDBSnapshot // - // This data type is used as a response element in the DescribeDBSnapshots - // action. + // This data type is used as a response element in the DescribeDBSnapshots action. DBSnapshot *DBSnapshot `type:"structure"` } @@ -11690,14 +14707,21 @@ func (s DeleteDBSnapshotOutput) GoString() string { return s.String() } +// SetDBSnapshot sets the DBSnapshot field's value. +func (s *DeleteDBSnapshotOutput) SetDBSnapshot(v *DBSnapshot) *DeleteDBSnapshotOutput { + s.DBSnapshot = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSubnetGroupMessage type DeleteDBSubnetGroupInput struct { _ struct{} `type:"structure"` // The name of the database subnet group to delete. // - // You cannot delete the default subnet group. + // You cannot delete the default subnet group. // - // Constraints: + // Constraints: // // Constraints: Must contain no more than 255 alphanumeric characters, periods, // underscores, spaces, or hyphens. Must not be default. @@ -11731,6 +14755,13 @@ func (s *DeleteDBSubnetGroupInput) Validate() error { return nil } +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *DeleteDBSubnetGroupInput) SetDBSubnetGroupName(v string) *DeleteDBSubnetGroupInput { + s.DBSubnetGroupName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSubnetGroupOutput type DeleteDBSubnetGroupOutput struct { _ struct{} `type:"structure"` } @@ -11745,6 +14776,7 @@ func (s DeleteDBSubnetGroupOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteEventSubscriptionMessage type DeleteEventSubscriptionInput struct { _ struct{} `type:"structure"` @@ -11777,6 +14809,13 @@ func (s *DeleteEventSubscriptionInput) Validate() error { return nil } +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *DeleteEventSubscriptionInput) SetSubscriptionName(v string) *DeleteEventSubscriptionInput { + s.SubscriptionName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteEventSubscriptionResult type DeleteEventSubscriptionOutput struct { _ struct{} `type:"structure"` @@ -11795,12 +14834,19 @@ func (s DeleteEventSubscriptionOutput) GoString() string { return s.String() } +// SetEventSubscription sets the EventSubscription field's value. +func (s *DeleteEventSubscriptionOutput) SetEventSubscription(v *EventSubscription) *DeleteEventSubscriptionOutput { + s.EventSubscription = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteOptionGroupMessage type DeleteOptionGroupInput struct { _ struct{} `type:"structure"` // The name of the option group to be deleted. // - // You cannot delete default option groups. + // You cannot delete default option groups. // // OptionGroupName is a required field OptionGroupName *string `type:"string" required:"true"` @@ -11829,6 +14875,13 @@ func (s *DeleteOptionGroupInput) Validate() error { return nil } +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *DeleteOptionGroupInput) SetOptionGroupName(v string) *DeleteOptionGroupInput { + s.OptionGroupName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteOptionGroupOutput type DeleteOptionGroupOutput struct { _ struct{} `type:"structure"` } @@ -11843,6 +14896,7 @@ func (s DeleteOptionGroupOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeAccountAttributesMessage type DescribeAccountAttributesInput struct { _ struct{} `type:"structure"` } @@ -11858,6 +14912,7 @@ func (s DescribeAccountAttributesInput) GoString() string { } // Data returned by the DescribeAccountAttributes action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AccountAttributesMessage type DescribeAccountAttributesOutput struct { _ struct{} `type:"structure"` @@ -11876,6 +14931,13 @@ func (s DescribeAccountAttributesOutput) GoString() string { return s.String() } +// SetAccountQuotas sets the AccountQuotas field's value. +func (s *DescribeAccountAttributesOutput) SetAccountQuotas(v []*AccountQuota) *DescribeAccountAttributesOutput { + s.AccountQuotas = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeCertificatesMessage type DescribeCertificatesInput struct { _ struct{} `type:"structure"` @@ -11885,11 +14947,11 @@ type DescribeCertificatesInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens CertificateIdentifier *string `type:"string"` // This parameter is not currently supported. @@ -11940,7 +15002,32 @@ func (s *DescribeCertificatesInput) Validate() error { return nil } +// SetCertificateIdentifier sets the CertificateIdentifier field's value. +func (s *DescribeCertificatesInput) SetCertificateIdentifier(v string) *DescribeCertificatesInput { + s.CertificateIdentifier = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeCertificatesInput) SetFilters(v []*Filter) *DescribeCertificatesInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCertificatesInput) SetMarker(v string) *DescribeCertificatesInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeCertificatesInput) SetMaxRecords(v int64) *DescribeCertificatesInput { + s.MaxRecords = &v + return s +} + // Data returned by the DescribeCertificates action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CertificateMessage type DescribeCertificatesOutput struct { _ struct{} `type:"structure"` @@ -11963,6 +15050,19 @@ func (s DescribeCertificatesOutput) GoString() string { return s.String() } +// SetCertificates sets the Certificates field's value. +func (s *DescribeCertificatesOutput) SetCertificates(v []*Certificate) *DescribeCertificatesOutput { + s.Certificates = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCertificatesOutput) SetMarker(v string) *DescribeCertificatesOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterParameterGroupsMessage type DescribeDBClusterParameterGroupsInput struct { _ struct{} `type:"structure"` @@ -11970,11 +15070,11 @@ type DescribeDBClusterParameterGroupsInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBClusterParameterGroupName *string `type:"string"` // This parameter is not currently supported. @@ -12025,6 +15125,31 @@ func (s *DescribeDBClusterParameterGroupsInput) Validate() error { return nil } +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *DescribeDBClusterParameterGroupsInput) SetDBClusterParameterGroupName(v string) *DescribeDBClusterParameterGroupsInput { + s.DBClusterParameterGroupName = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBClusterParameterGroupsInput) SetFilters(v []*Filter) *DescribeDBClusterParameterGroupsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBClusterParameterGroupsInput) SetMarker(v string) *DescribeDBClusterParameterGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBClusterParameterGroupsInput) SetMaxRecords(v int64) *DescribeDBClusterParameterGroupsInput { + s.MaxRecords = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBClusterParameterGroupsMessage type DescribeDBClusterParameterGroupsOutput struct { _ struct{} `type:"structure"` @@ -12047,6 +15172,19 @@ func (s DescribeDBClusterParameterGroupsOutput) GoString() string { return s.String() } +// SetDBClusterParameterGroups sets the DBClusterParameterGroups field's value. +func (s *DescribeDBClusterParameterGroupsOutput) SetDBClusterParameterGroups(v []*DBClusterParameterGroup) *DescribeDBClusterParameterGroupsOutput { + s.DBClusterParameterGroups = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBClusterParameterGroupsOutput) SetMarker(v string) *DescribeDBClusterParameterGroupsOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterParametersMessage type DescribeDBClusterParametersInput struct { _ struct{} `type:"structure"` @@ -12055,11 +15193,11 @@ type DescribeDBClusterParametersInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBClusterParameterGroupName is a required field DBClusterParameterGroupName *string `type:"string" required:"true"` @@ -12119,8 +15257,39 @@ func (s *DescribeDBClusterParametersInput) Validate() error { return nil } +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *DescribeDBClusterParametersInput) SetDBClusterParameterGroupName(v string) *DescribeDBClusterParametersInput { + s.DBClusterParameterGroupName = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBClusterParametersInput) SetFilters(v []*Filter) *DescribeDBClusterParametersInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBClusterParametersInput) SetMarker(v string) *DescribeDBClusterParametersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBClusterParametersInput) SetMaxRecords(v int64) *DescribeDBClusterParametersInput { + s.MaxRecords = &v + return s +} + +// SetSource sets the Source field's value. +func (s *DescribeDBClusterParametersInput) SetSource(v string) *DescribeDBClusterParametersInput { + s.Source = &v + return s +} + // Provides details about a DB cluster parameter group including the parameters // in the DB cluster parameter group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBClusterParameterGroupDetails type DescribeDBClusterParametersOutput struct { _ struct{} `type:"structure"` @@ -12143,6 +15312,19 @@ func (s DescribeDBClusterParametersOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeDBClusterParametersOutput) SetMarker(v string) *DescribeDBClusterParametersOutput { + s.Marker = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *DescribeDBClusterParametersOutput) SetParameters(v []*Parameter) *DescribeDBClusterParametersOutput { + s.Parameters = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterSnapshotAttributesMessage type DescribeDBClusterSnapshotAttributesInput struct { _ struct{} `type:"structure"` @@ -12175,6 +15357,13 @@ func (s *DescribeDBClusterSnapshotAttributesInput) Validate() error { return nil } +// SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value. +func (s *DescribeDBClusterSnapshotAttributesInput) SetDBClusterSnapshotIdentifier(v string) *DescribeDBClusterSnapshotAttributesInput { + s.DBClusterSnapshotIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterSnapshotAttributesResult type DescribeDBClusterSnapshotAttributesOutput struct { _ struct{} `type:"structure"` @@ -12197,6 +15386,13 @@ func (s DescribeDBClusterSnapshotAttributesOutput) GoString() string { return s.String() } +// SetDBClusterSnapshotAttributesResult sets the DBClusterSnapshotAttributesResult field's value. +func (s *DescribeDBClusterSnapshotAttributesOutput) SetDBClusterSnapshotAttributesResult(v *DBClusterSnapshotAttributesResult) *DescribeDBClusterSnapshotAttributesOutput { + s.DBClusterSnapshotAttributesResult = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterSnapshotsMessage type DescribeDBClusterSnapshotsInput struct { _ struct{} `type:"structure"` @@ -12206,11 +15402,11 @@ type DescribeDBClusterSnapshotsInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBClusterIdentifier *string `type:"string"` // A specific DB cluster snapshot identifier to describe. This parameter cannot @@ -12219,14 +15415,14 @@ type DescribeDBClusterSnapshotsInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // If this identifier is for an automated snapshot, the SnapshotType parameter - // must also be specified. + // * If this identifier is for an automated snapshot, the SnapshotType parameter + // must also be specified. DBClusterSnapshotIdentifier *string `type:"string"` // This parameter is not currently supported. @@ -12265,18 +15461,18 @@ type DescribeDBClusterSnapshotsInput struct { // The type of DB cluster snapshots to be returned. You can specify one of the // following values: // - // automated - Return all DB cluster snapshots that have been automatically - // taken by Amazon RDS for my AWS account. + // * automated - Return all DB cluster snapshots that have been automatically + // taken by Amazon RDS for my AWS account. // - // manual - Return all DB cluster snapshots that have been taken by my AWS - // account. + // * manual - Return all DB cluster snapshots that have been taken by my + // AWS account. // - // shared - Return all manual DB cluster snapshots that have been shared - // to my AWS account. + // * shared - Return all manual DB cluster snapshots that have been shared + // to my AWS account. // - // public - Return all DB cluster snapshots that have been marked as public. + // * public - Return all DB cluster snapshots that have been marked as public. // - // If you don't specify a SnapshotType value, then both automated and manual + // If you don't specify a SnapshotType value, then both automated and manual // DB cluster snapshots are returned. You can include shared DB cluster snapshots // with these results by setting the IncludeShared parameter to true. You can // include public DB cluster snapshots with these results by setting the IncludePublic @@ -12319,8 +15515,57 @@ func (s *DescribeDBClusterSnapshotsInput) Validate() error { return nil } +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *DescribeDBClusterSnapshotsInput) SetDBClusterIdentifier(v string) *DescribeDBClusterSnapshotsInput { + s.DBClusterIdentifier = &v + return s +} + +// SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value. +func (s *DescribeDBClusterSnapshotsInput) SetDBClusterSnapshotIdentifier(v string) *DescribeDBClusterSnapshotsInput { + s.DBClusterSnapshotIdentifier = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBClusterSnapshotsInput) SetFilters(v []*Filter) *DescribeDBClusterSnapshotsInput { + s.Filters = v + return s +} + +// SetIncludePublic sets the IncludePublic field's value. +func (s *DescribeDBClusterSnapshotsInput) SetIncludePublic(v bool) *DescribeDBClusterSnapshotsInput { + s.IncludePublic = &v + return s +} + +// SetIncludeShared sets the IncludeShared field's value. +func (s *DescribeDBClusterSnapshotsInput) SetIncludeShared(v bool) *DescribeDBClusterSnapshotsInput { + s.IncludeShared = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBClusterSnapshotsInput) SetMarker(v string) *DescribeDBClusterSnapshotsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBClusterSnapshotsInput) SetMaxRecords(v int64) *DescribeDBClusterSnapshotsInput { + s.MaxRecords = &v + return s +} + +// SetSnapshotType sets the SnapshotType field's value. +func (s *DescribeDBClusterSnapshotsInput) SetSnapshotType(v string) *DescribeDBClusterSnapshotsInput { + s.SnapshotType = &v + return s +} + // Provides a list of DB cluster snapshots for the user as the result of a call // to the DescribeDBClusterSnapshots action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBClusterSnapshotMessage type DescribeDBClusterSnapshotsOutput struct { _ struct{} `type:"structure"` @@ -12343,6 +15588,19 @@ func (s DescribeDBClusterSnapshotsOutput) GoString() string { return s.String() } +// SetDBClusterSnapshots sets the DBClusterSnapshots field's value. +func (s *DescribeDBClusterSnapshotsOutput) SetDBClusterSnapshots(v []*DBClusterSnapshot) *DescribeDBClusterSnapshotsOutput { + s.DBClusterSnapshots = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBClusterSnapshotsOutput) SetMarker(v string) *DescribeDBClusterSnapshotsOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClustersMessage type DescribeDBClustersInput struct { _ struct{} `type:"structure"` @@ -12352,14 +15610,20 @@ type DescribeDBClustersInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBClusterIdentifier *string `type:"string"` - // This parameter is not currently supported. + // A filter that specifies one or more DB clusters to describe. + // + // Supported filters: + // + // * db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon + // Resource Names (ARNs). The results list will only include information + // about the DB clusters identified by these ARNs. Filters []*Filter `locationNameList:"Filter" type:"list"` // An optional pagination token provided by a previous DescribeDBClusters request. @@ -12407,8 +15671,33 @@ func (s *DescribeDBClustersInput) Validate() error { return nil } +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *DescribeDBClustersInput) SetDBClusterIdentifier(v string) *DescribeDBClustersInput { + s.DBClusterIdentifier = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBClustersInput) SetFilters(v []*Filter) *DescribeDBClustersInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBClustersInput) SetMarker(v string) *DescribeDBClustersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBClustersInput) SetMaxRecords(v int64) *DescribeDBClustersInput { + s.MaxRecords = &v + return s +} + // Contains the result of a successful invocation of the DescribeDBClusters // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBClusterMessage type DescribeDBClustersOutput struct { _ struct{} `type:"structure"` @@ -12429,6 +15718,19 @@ func (s DescribeDBClustersOutput) GoString() string { return s.String() } +// SetDBClusters sets the DBClusters field's value. +func (s *DescribeDBClustersOutput) SetDBClusters(v []*DBCluster) *DescribeDBClustersOutput { + s.DBClusters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBClustersOutput) SetMarker(v string) *DescribeDBClustersOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBEngineVersionsMessage type DescribeDBEngineVersionsInput struct { _ struct{} `type:"structure"` @@ -12436,11 +15738,11 @@ type DescribeDBEngineVersionsInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBParameterGroupFamily *string `type:"string"` // Indicates that only the default version of the specified engine or engine @@ -12513,8 +15815,63 @@ func (s *DescribeDBEngineVersionsInput) Validate() error { return nil } +// SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value. +func (s *DescribeDBEngineVersionsInput) SetDBParameterGroupFamily(v string) *DescribeDBEngineVersionsInput { + s.DBParameterGroupFamily = &v + return s +} + +// SetDefaultOnly sets the DefaultOnly field's value. +func (s *DescribeDBEngineVersionsInput) SetDefaultOnly(v bool) *DescribeDBEngineVersionsInput { + s.DefaultOnly = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *DescribeDBEngineVersionsInput) SetEngine(v string) *DescribeDBEngineVersionsInput { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *DescribeDBEngineVersionsInput) SetEngineVersion(v string) *DescribeDBEngineVersionsInput { + s.EngineVersion = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBEngineVersionsInput) SetFilters(v []*Filter) *DescribeDBEngineVersionsInput { + s.Filters = v + return s +} + +// SetListSupportedCharacterSets sets the ListSupportedCharacterSets field's value. +func (s *DescribeDBEngineVersionsInput) SetListSupportedCharacterSets(v bool) *DescribeDBEngineVersionsInput { + s.ListSupportedCharacterSets = &v + return s +} + +// SetListSupportedTimezones sets the ListSupportedTimezones field's value. +func (s *DescribeDBEngineVersionsInput) SetListSupportedTimezones(v bool) *DescribeDBEngineVersionsInput { + s.ListSupportedTimezones = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBEngineVersionsInput) SetMarker(v string) *DescribeDBEngineVersionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBEngineVersionsInput) SetMaxRecords(v int64) *DescribeDBEngineVersionsInput { + s.MaxRecords = &v + return s +} + // Contains the result of a successful invocation of the DescribeDBEngineVersions // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBEngineVersionMessage type DescribeDBEngineVersionsOutput struct { _ struct{} `type:"structure"` @@ -12537,6 +15894,19 @@ func (s DescribeDBEngineVersionsOutput) GoString() string { return s.String() } +// SetDBEngineVersions sets the DBEngineVersions field's value. +func (s *DescribeDBEngineVersionsOutput) SetDBEngineVersions(v []*DBEngineVersion) *DescribeDBEngineVersionsOutput { + s.DBEngineVersions = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBEngineVersionsOutput) SetMarker(v string) *DescribeDBEngineVersionsOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBInstancesMessage type DescribeDBInstancesInput struct { _ struct{} `type:"structure"` @@ -12545,14 +15915,25 @@ type DescribeDBInstancesInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBInstanceIdentifier *string `type:"string"` - // This parameter is not currently supported. + // A filter that specifies one or more DB instances to describe. + // + // Supported filters: + // + // * db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon + // Resource Names (ARNs). The results list will only include information + // about the DB instances associated with the DB Clusters identified by these + // ARNs. + // + // * db-instance-id - Accepts DB instance identifiers and DB instance Amazon + // Resource Names (ARNs). The results list will only include information + // about the DB instances identified by these ARNs. Filters []*Filter `locationNameList:"Filter" type:"list"` // An optional pagination token provided by a previous DescribeDBInstances request. @@ -12600,8 +15981,33 @@ func (s *DescribeDBInstancesInput) Validate() error { return nil } +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *DescribeDBInstancesInput) SetDBInstanceIdentifier(v string) *DescribeDBInstancesInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBInstancesInput) SetFilters(v []*Filter) *DescribeDBInstancesInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBInstancesInput) SetMarker(v string) *DescribeDBInstancesInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBInstancesInput) SetMaxRecords(v int64) *DescribeDBInstancesInput { + s.MaxRecords = &v + return s +} + // Contains the result of a successful invocation of the DescribeDBInstances // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBInstanceMessage type DescribeDBInstancesOutput struct { _ struct{} `type:"structure"` @@ -12624,7 +16030,20 @@ func (s DescribeDBInstancesOutput) GoString() string { return s.String() } +// SetDBInstances sets the DBInstances field's value. +func (s *DescribeDBInstancesOutput) SetDBInstances(v []*DBInstance) *DescribeDBInstancesOutput { + s.DBInstances = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBInstancesOutput) SetMarker(v string) *DescribeDBInstancesOutput { + s.Marker = &v + return s +} + // This data type is used as a response element to DescribeDBLogFiles. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBLogFilesDetails type DescribeDBLogFilesDetails struct { _ struct{} `type:"structure"` @@ -12648,6 +16067,25 @@ func (s DescribeDBLogFilesDetails) GoString() string { return s.String() } +// SetLastWritten sets the LastWritten field's value. +func (s *DescribeDBLogFilesDetails) SetLastWritten(v int64) *DescribeDBLogFilesDetails { + s.LastWritten = &v + return s +} + +// SetLogFileName sets the LogFileName field's value. +func (s *DescribeDBLogFilesDetails) SetLogFileName(v string) *DescribeDBLogFilesDetails { + s.LogFileName = &v + return s +} + +// SetSize sets the Size field's value. +func (s *DescribeDBLogFilesDetails) SetSize(v int64) *DescribeDBLogFilesDetails { + s.Size = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBLogFilesMessage type DescribeDBLogFilesInput struct { _ struct{} `type:"structure"` @@ -12656,11 +16094,11 @@ type DescribeDBLogFilesInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBInstanceIdentifier is a required field DBInstanceIdentifier *string `type:"string" required:"true"` @@ -12723,7 +16161,50 @@ func (s *DescribeDBLogFilesInput) Validate() error { return nil } +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *DescribeDBLogFilesInput) SetDBInstanceIdentifier(v string) *DescribeDBLogFilesInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetFileLastWritten sets the FileLastWritten field's value. +func (s *DescribeDBLogFilesInput) SetFileLastWritten(v int64) *DescribeDBLogFilesInput { + s.FileLastWritten = &v + return s +} + +// SetFileSize sets the FileSize field's value. +func (s *DescribeDBLogFilesInput) SetFileSize(v int64) *DescribeDBLogFilesInput { + s.FileSize = &v + return s +} + +// SetFilenameContains sets the FilenameContains field's value. +func (s *DescribeDBLogFilesInput) SetFilenameContains(v string) *DescribeDBLogFilesInput { + s.FilenameContains = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBLogFilesInput) SetFilters(v []*Filter) *DescribeDBLogFilesInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBLogFilesInput) SetMarker(v string) *DescribeDBLogFilesInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBLogFilesInput) SetMaxRecords(v int64) *DescribeDBLogFilesInput { + s.MaxRecords = &v + return s +} + // The response from a call to DescribeDBLogFiles. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBLogFilesResponse type DescribeDBLogFilesOutput struct { _ struct{} `type:"structure"` @@ -12744,6 +16225,19 @@ func (s DescribeDBLogFilesOutput) GoString() string { return s.String() } +// SetDescribeDBLogFiles sets the DescribeDBLogFiles field's value. +func (s *DescribeDBLogFilesOutput) SetDescribeDBLogFiles(v []*DescribeDBLogFilesDetails) *DescribeDBLogFilesOutput { + s.DescribeDBLogFiles = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBLogFilesOutput) SetMarker(v string) *DescribeDBLogFilesOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBParameterGroupsMessage type DescribeDBParameterGroupsInput struct { _ struct{} `type:"structure"` @@ -12751,11 +16245,11 @@ type DescribeDBParameterGroupsInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBParameterGroupName *string `type:"string"` // This parameter is not currently supported. @@ -12806,8 +16300,33 @@ func (s *DescribeDBParameterGroupsInput) Validate() error { return nil } +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *DescribeDBParameterGroupsInput) SetDBParameterGroupName(v string) *DescribeDBParameterGroupsInput { + s.DBParameterGroupName = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBParameterGroupsInput) SetFilters(v []*Filter) *DescribeDBParameterGroupsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBParameterGroupsInput) SetMarker(v string) *DescribeDBParameterGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBParameterGroupsInput) SetMaxRecords(v int64) *DescribeDBParameterGroupsInput { + s.MaxRecords = &v + return s +} + // Contains the result of a successful invocation of the DescribeDBParameterGroups // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBParameterGroupsMessage type DescribeDBParameterGroupsOutput struct { _ struct{} `type:"structure"` @@ -12830,6 +16349,19 @@ func (s DescribeDBParameterGroupsOutput) GoString() string { return s.String() } +// SetDBParameterGroups sets the DBParameterGroups field's value. +func (s *DescribeDBParameterGroupsOutput) SetDBParameterGroups(v []*DBParameterGroup) *DescribeDBParameterGroupsOutput { + s.DBParameterGroups = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBParameterGroupsOutput) SetMarker(v string) *DescribeDBParameterGroupsOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBParametersMessage type DescribeDBParametersInput struct { _ struct{} `type:"structure"` @@ -12837,11 +16369,11 @@ type DescribeDBParametersInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBParameterGroupName is a required field DBParameterGroupName *string `type:"string" required:"true"` @@ -12904,8 +16436,39 @@ func (s *DescribeDBParametersInput) Validate() error { return nil } +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *DescribeDBParametersInput) SetDBParameterGroupName(v string) *DescribeDBParametersInput { + s.DBParameterGroupName = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBParametersInput) SetFilters(v []*Filter) *DescribeDBParametersInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBParametersInput) SetMarker(v string) *DescribeDBParametersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBParametersInput) SetMaxRecords(v int64) *DescribeDBParametersInput { + s.MaxRecords = &v + return s +} + +// SetSource sets the Source field's value. +func (s *DescribeDBParametersInput) SetSource(v string) *DescribeDBParametersInput { + s.Source = &v + return s +} + // Contains the result of a successful invocation of the DescribeDBParameters // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBParameterGroupDetails type DescribeDBParametersOutput struct { _ struct{} `type:"structure"` @@ -12928,6 +16491,19 @@ func (s DescribeDBParametersOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeDBParametersOutput) SetMarker(v string) *DescribeDBParametersOutput { + s.Marker = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *DescribeDBParametersOutput) SetParameters(v []*Parameter) *DescribeDBParametersOutput { + s.Parameters = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSecurityGroupsMessage type DescribeDBSecurityGroupsInput struct { _ struct{} `type:"structure"` @@ -12982,8 +16558,33 @@ func (s *DescribeDBSecurityGroupsInput) Validate() error { return nil } +// SetDBSecurityGroupName sets the DBSecurityGroupName field's value. +func (s *DescribeDBSecurityGroupsInput) SetDBSecurityGroupName(v string) *DescribeDBSecurityGroupsInput { + s.DBSecurityGroupName = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBSecurityGroupsInput) SetFilters(v []*Filter) *DescribeDBSecurityGroupsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBSecurityGroupsInput) SetMarker(v string) *DescribeDBSecurityGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBSecurityGroupsInput) SetMaxRecords(v int64) *DescribeDBSecurityGroupsInput { + s.MaxRecords = &v + return s +} + // Contains the result of a successful invocation of the DescribeDBSecurityGroups // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBSecurityGroupMessage type DescribeDBSecurityGroupsOutput struct { _ struct{} `type:"structure"` @@ -13006,6 +16607,19 @@ func (s DescribeDBSecurityGroupsOutput) GoString() string { return s.String() } +// SetDBSecurityGroups sets the DBSecurityGroups field's value. +func (s *DescribeDBSecurityGroupsOutput) SetDBSecurityGroups(v []*DBSecurityGroup) *DescribeDBSecurityGroupsOutput { + s.DBSecurityGroups = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBSecurityGroupsOutput) SetMarker(v string) *DescribeDBSecurityGroupsOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSnapshotAttributesMessage type DescribeDBSnapshotAttributesInput struct { _ struct{} `type:"structure"` @@ -13038,6 +16652,13 @@ func (s *DescribeDBSnapshotAttributesInput) Validate() error { return nil } +// SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value. +func (s *DescribeDBSnapshotAttributesInput) SetDBSnapshotIdentifier(v string) *DescribeDBSnapshotAttributesInput { + s.DBSnapshotIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSnapshotAttributesResult type DescribeDBSnapshotAttributesOutput struct { _ struct{} `type:"structure"` @@ -13060,6 +16681,13 @@ func (s DescribeDBSnapshotAttributesOutput) GoString() string { return s.String() } +// SetDBSnapshotAttributesResult sets the DBSnapshotAttributesResult field's value. +func (s *DescribeDBSnapshotAttributesOutput) SetDBSnapshotAttributesResult(v *DBSnapshotAttributesResult) *DescribeDBSnapshotAttributesOutput { + s.DBSnapshotAttributesResult = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSnapshotsMessage type DescribeDBSnapshotsInput struct { _ struct{} `type:"structure"` @@ -13069,11 +16697,11 @@ type DescribeDBSnapshotsInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBInstanceIdentifier *string `type:"string"` // A specific DB snapshot identifier to describe. This parameter cannot be used @@ -13082,14 +16710,14 @@ type DescribeDBSnapshotsInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters. + // * Must be 1 to 255 alphanumeric characters. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // If this identifier is for an automated snapshot, the SnapshotType parameter - // must also be specified. + // * If this identifier is for an automated snapshot, the SnapshotType parameter + // must also be specified. DBSnapshotIdentifier *string `type:"string"` // This parameter is not currently supported. @@ -13128,17 +16756,17 @@ type DescribeDBSnapshotsInput struct { // The type of snapshots to be returned. You can specify one of the following // values: // - // automated - Return all DB snapshots that have been automatically taken - // by Amazon RDS for my AWS account. + // * automated - Return all DB snapshots that have been automatically taken + // by Amazon RDS for my AWS account. // - // manual - Return all DB snapshots that have been taken by my AWS account. + // * manual - Return all DB snapshots that have been taken by my AWS account. // - // shared - Return all manual DB snapshots that have been shared to my AWS - // account. + // * shared - Return all manual DB snapshots that have been shared to my + // AWS account. // - // public - Return all DB snapshots that have been marked as public. + // * public - Return all DB snapshots that have been marked as public. // - // If you don't specify a SnapshotType value, then both automated and manual + // If you don't specify a SnapshotType value, then both automated and manual // snapshots are returned. Shared and public DB snapshots are not included in // the returned results by default. You can include shared snapshots with these // results by setting the IncludeShared parameter to true. You can include public @@ -13181,8 +16809,57 @@ func (s *DescribeDBSnapshotsInput) Validate() error { return nil } +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *DescribeDBSnapshotsInput) SetDBInstanceIdentifier(v string) *DescribeDBSnapshotsInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value. +func (s *DescribeDBSnapshotsInput) SetDBSnapshotIdentifier(v string) *DescribeDBSnapshotsInput { + s.DBSnapshotIdentifier = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBSnapshotsInput) SetFilters(v []*Filter) *DescribeDBSnapshotsInput { + s.Filters = v + return s +} + +// SetIncludePublic sets the IncludePublic field's value. +func (s *DescribeDBSnapshotsInput) SetIncludePublic(v bool) *DescribeDBSnapshotsInput { + s.IncludePublic = &v + return s +} + +// SetIncludeShared sets the IncludeShared field's value. +func (s *DescribeDBSnapshotsInput) SetIncludeShared(v bool) *DescribeDBSnapshotsInput { + s.IncludeShared = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBSnapshotsInput) SetMarker(v string) *DescribeDBSnapshotsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBSnapshotsInput) SetMaxRecords(v int64) *DescribeDBSnapshotsInput { + s.MaxRecords = &v + return s +} + +// SetSnapshotType sets the SnapshotType field's value. +func (s *DescribeDBSnapshotsInput) SetSnapshotType(v string) *DescribeDBSnapshotsInput { + s.SnapshotType = &v + return s +} + // Contains the result of a successful invocation of the DescribeDBSnapshots // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBSnapshotMessage type DescribeDBSnapshotsOutput struct { _ struct{} `type:"structure"` @@ -13205,6 +16882,19 @@ func (s DescribeDBSnapshotsOutput) GoString() string { return s.String() } +// SetDBSnapshots sets the DBSnapshots field's value. +func (s *DescribeDBSnapshotsOutput) SetDBSnapshots(v []*DBSnapshot) *DescribeDBSnapshotsOutput { + s.DBSnapshots = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBSnapshotsOutput) SetMarker(v string) *DescribeDBSnapshotsOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSubnetGroupsMessage type DescribeDBSubnetGroupsInput struct { _ struct{} `type:"structure"` @@ -13259,8 +16949,33 @@ func (s *DescribeDBSubnetGroupsInput) Validate() error { return nil } +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *DescribeDBSubnetGroupsInput) SetDBSubnetGroupName(v string) *DescribeDBSubnetGroupsInput { + s.DBSubnetGroupName = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBSubnetGroupsInput) SetFilters(v []*Filter) *DescribeDBSubnetGroupsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBSubnetGroupsInput) SetMarker(v string) *DescribeDBSubnetGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBSubnetGroupsInput) SetMaxRecords(v int64) *DescribeDBSubnetGroupsInput { + s.MaxRecords = &v + return s +} + // Contains the result of a successful invocation of the DescribeDBSubnetGroups // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBSubnetGroupMessage type DescribeDBSubnetGroupsOutput struct { _ struct{} `type:"structure"` @@ -13283,6 +16998,19 @@ func (s DescribeDBSubnetGroupsOutput) GoString() string { return s.String() } +// SetDBSubnetGroups sets the DBSubnetGroups field's value. +func (s *DescribeDBSubnetGroupsOutput) SetDBSubnetGroups(v []*DBSubnetGroup) *DescribeDBSubnetGroupsOutput { + s.DBSubnetGroups = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBSubnetGroupsOutput) SetMarker(v string) *DescribeDBSubnetGroupsOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEngineDefaultClusterParametersMessage type DescribeEngineDefaultClusterParametersInput struct { _ struct{} `type:"structure"` @@ -13343,6 +17071,31 @@ func (s *DescribeEngineDefaultClusterParametersInput) Validate() error { return nil } +// SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value. +func (s *DescribeEngineDefaultClusterParametersInput) SetDBParameterGroupFamily(v string) *DescribeEngineDefaultClusterParametersInput { + s.DBParameterGroupFamily = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeEngineDefaultClusterParametersInput) SetFilters(v []*Filter) *DescribeEngineDefaultClusterParametersInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEngineDefaultClusterParametersInput) SetMarker(v string) *DescribeEngineDefaultClusterParametersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEngineDefaultClusterParametersInput) SetMaxRecords(v int64) *DescribeEngineDefaultClusterParametersInput { + s.MaxRecords = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEngineDefaultClusterParametersResult type DescribeEngineDefaultClusterParametersOutput struct { _ struct{} `type:"structure"` @@ -13361,6 +17114,13 @@ func (s DescribeEngineDefaultClusterParametersOutput) GoString() string { return s.String() } +// SetEngineDefaults sets the EngineDefaults field's value. +func (s *DescribeEngineDefaultClusterParametersOutput) SetEngineDefaults(v *EngineDefaults) *DescribeEngineDefaultClusterParametersOutput { + s.EngineDefaults = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEngineDefaultParametersMessage type DescribeEngineDefaultParametersInput struct { _ struct{} `type:"structure"` @@ -13420,6 +17180,31 @@ func (s *DescribeEngineDefaultParametersInput) Validate() error { return nil } +// SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value. +func (s *DescribeEngineDefaultParametersInput) SetDBParameterGroupFamily(v string) *DescribeEngineDefaultParametersInput { + s.DBParameterGroupFamily = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeEngineDefaultParametersInput) SetFilters(v []*Filter) *DescribeEngineDefaultParametersInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEngineDefaultParametersInput) SetMarker(v string) *DescribeEngineDefaultParametersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEngineDefaultParametersInput) SetMaxRecords(v int64) *DescribeEngineDefaultParametersInput { + s.MaxRecords = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEngineDefaultParametersResult type DescribeEngineDefaultParametersOutput struct { _ struct{} `type:"structure"` @@ -13438,6 +17223,13 @@ func (s DescribeEngineDefaultParametersOutput) GoString() string { return s.String() } +// SetEngineDefaults sets the EngineDefaults field's value. +func (s *DescribeEngineDefaultParametersOutput) SetEngineDefaults(v *EngineDefaults) *DescribeEngineDefaultParametersOutput { + s.EngineDefaults = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEventCategoriesMessage type DescribeEventCategoriesInput struct { _ struct{} `type:"structure"` @@ -13480,7 +17272,20 @@ func (s *DescribeEventCategoriesInput) Validate() error { return nil } +// SetFilters sets the Filters field's value. +func (s *DescribeEventCategoriesInput) SetFilters(v []*Filter) *DescribeEventCategoriesInput { + s.Filters = v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *DescribeEventCategoriesInput) SetSourceType(v string) *DescribeEventCategoriesInput { + s.SourceType = &v + return s +} + // Data returned from the DescribeEventCategories action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/EventCategoriesMessage type DescribeEventCategoriesOutput struct { _ struct{} `type:"structure"` @@ -13498,6 +17303,13 @@ func (s DescribeEventCategoriesOutput) GoString() string { return s.String() } +// SetEventCategoriesMapList sets the EventCategoriesMapList field's value. +func (s *DescribeEventCategoriesOutput) SetEventCategoriesMapList(v []*EventCategoriesMap) *DescribeEventCategoriesOutput { + s.EventCategoriesMapList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEventSubscriptionsMessage type DescribeEventSubscriptionsInput struct { _ struct{} `type:"structure"` @@ -13552,7 +17364,32 @@ func (s *DescribeEventSubscriptionsInput) Validate() error { return nil } +// SetFilters sets the Filters field's value. +func (s *DescribeEventSubscriptionsInput) SetFilters(v []*Filter) *DescribeEventSubscriptionsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEventSubscriptionsInput) SetMarker(v string) *DescribeEventSubscriptionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEventSubscriptionsInput) SetMaxRecords(v int64) *DescribeEventSubscriptionsInput { + s.MaxRecords = &v + return s +} + +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *DescribeEventSubscriptionsInput) SetSubscriptionName(v string) *DescribeEventSubscriptionsInput { + s.SubscriptionName = &v + return s +} + // Data returned by the DescribeEventSubscriptions action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/EventSubscriptionsMessage type DescribeEventSubscriptionsOutput struct { _ struct{} `type:"structure"` @@ -13575,6 +17412,19 @@ func (s DescribeEventSubscriptionsOutput) GoString() string { return s.String() } +// SetEventSubscriptionsList sets the EventSubscriptionsList field's value. +func (s *DescribeEventSubscriptionsOutput) SetEventSubscriptionsList(v []*EventSubscription) *DescribeEventSubscriptionsOutput { + s.EventSubscriptionsList = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEventSubscriptionsOutput) SetMarker(v string) *DescribeEventSubscriptionsOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEventsMessage type DescribeEventsInput struct { _ struct{} `type:"structure"` @@ -13616,19 +17466,20 @@ type DescribeEventsInput struct { // // Constraints: // - // If SourceIdentifier is supplied, SourceType must also be provided. + // * If SourceIdentifier is supplied, SourceType must also be provided. // - // If the source type is DBInstance, then a DBInstanceIdentifier must be - // supplied. + // * If the source type is DBInstance, then a DBInstanceIdentifier must be + // supplied. // - // If the source type is DBSecurityGroup, a DBSecurityGroupName must be supplied. + // * If the source type is DBSecurityGroup, a DBSecurityGroupName must be + // supplied. // - // If the source type is DBParameterGroup, a DBParameterGroupName must be - // supplied. + // * If the source type is DBParameterGroup, a DBParameterGroupName must + // be supplied. // - // If the source type is DBSnapshot, a DBSnapshotIdentifier must be supplied. + // * If the source type is DBSnapshot, a DBSnapshotIdentifier must be supplied. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. SourceIdentifier *string `type:"string"` // The event source to retrieve events for. If no value is specified, all events @@ -13673,7 +17524,62 @@ func (s *DescribeEventsInput) Validate() error { return nil } +// SetDuration sets the Duration field's value. +func (s *DescribeEventsInput) SetDuration(v int64) *DescribeEventsInput { + s.Duration = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *DescribeEventsInput) SetEndTime(v time.Time) *DescribeEventsInput { + s.EndTime = &v + return s +} + +// SetEventCategories sets the EventCategories field's value. +func (s *DescribeEventsInput) SetEventCategories(v []*string) *DescribeEventsInput { + s.EventCategories = v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeEventsInput) SetFilters(v []*Filter) *DescribeEventsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEventsInput) SetMarker(v string) *DescribeEventsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEventsInput) SetMaxRecords(v int64) *DescribeEventsInput { + s.MaxRecords = &v + return s +} + +// SetSourceIdentifier sets the SourceIdentifier field's value. +func (s *DescribeEventsInput) SetSourceIdentifier(v string) *DescribeEventsInput { + s.SourceIdentifier = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *DescribeEventsInput) SetSourceType(v string) *DescribeEventsInput { + s.SourceType = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeEventsInput) SetStartTime(v time.Time) *DescribeEventsInput { + s.StartTime = &v + return s +} + // Contains the result of a successful invocation of the DescribeEvents action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/EventsMessage type DescribeEventsOutput struct { _ struct{} `type:"structure"` @@ -13696,6 +17602,19 @@ func (s DescribeEventsOutput) GoString() string { return s.String() } +// SetEvents sets the Events field's value. +func (s *DescribeEventsOutput) SetEvents(v []*Event) *DescribeEventsOutput { + s.Events = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEventsOutput) SetMarker(v string) *DescribeEventsOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeOptionGroupOptionsMessage type DescribeOptionGroupOptionsInput struct { _ struct{} `type:"structure"` @@ -13760,6 +17679,37 @@ func (s *DescribeOptionGroupOptionsInput) Validate() error { return nil } +// SetEngineName sets the EngineName field's value. +func (s *DescribeOptionGroupOptionsInput) SetEngineName(v string) *DescribeOptionGroupOptionsInput { + s.EngineName = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeOptionGroupOptionsInput) SetFilters(v []*Filter) *DescribeOptionGroupOptionsInput { + s.Filters = v + return s +} + +// SetMajorEngineVersion sets the MajorEngineVersion field's value. +func (s *DescribeOptionGroupOptionsInput) SetMajorEngineVersion(v string) *DescribeOptionGroupOptionsInput { + s.MajorEngineVersion = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeOptionGroupOptionsInput) SetMarker(v string) *DescribeOptionGroupOptionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeOptionGroupOptionsInput) SetMaxRecords(v int64) *DescribeOptionGroupOptionsInput { + s.MaxRecords = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/OptionGroupOptionsMessage type DescribeOptionGroupOptionsOutput struct { _ struct{} `type:"structure"` @@ -13782,6 +17732,19 @@ func (s DescribeOptionGroupOptionsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeOptionGroupOptionsOutput) SetMarker(v string) *DescribeOptionGroupOptionsOutput { + s.Marker = &v + return s +} + +// SetOptionGroupOptions sets the OptionGroupOptions field's value. +func (s *DescribeOptionGroupOptionsOutput) SetOptionGroupOptions(v []*OptionGroupOption) *DescribeOptionGroupOptionsOutput { + s.OptionGroupOptions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeOptionGroupsMessage type DescribeOptionGroupsInput struct { _ struct{} `type:"structure"` @@ -13846,7 +17809,44 @@ func (s *DescribeOptionGroupsInput) Validate() error { return nil } +// SetEngineName sets the EngineName field's value. +func (s *DescribeOptionGroupsInput) SetEngineName(v string) *DescribeOptionGroupsInput { + s.EngineName = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeOptionGroupsInput) SetFilters(v []*Filter) *DescribeOptionGroupsInput { + s.Filters = v + return s +} + +// SetMajorEngineVersion sets the MajorEngineVersion field's value. +func (s *DescribeOptionGroupsInput) SetMajorEngineVersion(v string) *DescribeOptionGroupsInput { + s.MajorEngineVersion = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeOptionGroupsInput) SetMarker(v string) *DescribeOptionGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeOptionGroupsInput) SetMaxRecords(v int64) *DescribeOptionGroupsInput { + s.MaxRecords = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *DescribeOptionGroupsInput) SetOptionGroupName(v string) *DescribeOptionGroupsInput { + s.OptionGroupName = &v + return s +} + // List of option groups. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/OptionGroups type DescribeOptionGroupsOutput struct { _ struct{} `type:"structure"` @@ -13869,6 +17869,19 @@ func (s DescribeOptionGroupsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeOptionGroupsOutput) SetMarker(v string) *DescribeOptionGroupsOutput { + s.Marker = &v + return s +} + +// SetOptionGroupsList sets the OptionGroupsList field's value. +func (s *DescribeOptionGroupsOutput) SetOptionGroupsList(v []*OptionGroup) *DescribeOptionGroupsOutput { + s.OptionGroupsList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeOrderableDBInstanceOptionsMessage type DescribeOrderableDBInstanceOptionsInput struct { _ struct{} `type:"structure"` @@ -13944,8 +17957,57 @@ func (s *DescribeOrderableDBInstanceOptionsInput) Validate() error { return nil } +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *DescribeOrderableDBInstanceOptionsInput) SetDBInstanceClass(v string) *DescribeOrderableDBInstanceOptionsInput { + s.DBInstanceClass = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *DescribeOrderableDBInstanceOptionsInput) SetEngine(v string) *DescribeOrderableDBInstanceOptionsInput { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *DescribeOrderableDBInstanceOptionsInput) SetEngineVersion(v string) *DescribeOrderableDBInstanceOptionsInput { + s.EngineVersion = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeOrderableDBInstanceOptionsInput) SetFilters(v []*Filter) *DescribeOrderableDBInstanceOptionsInput { + s.Filters = v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *DescribeOrderableDBInstanceOptionsInput) SetLicenseModel(v string) *DescribeOrderableDBInstanceOptionsInput { + s.LicenseModel = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeOrderableDBInstanceOptionsInput) SetMarker(v string) *DescribeOrderableDBInstanceOptionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeOrderableDBInstanceOptionsInput) SetMaxRecords(v int64) *DescribeOrderableDBInstanceOptionsInput { + s.MaxRecords = &v + return s +} + +// SetVpc sets the Vpc field's value. +func (s *DescribeOrderableDBInstanceOptionsInput) SetVpc(v bool) *DescribeOrderableDBInstanceOptionsInput { + s.Vpc = &v + return s +} + // Contains the result of a successful invocation of the DescribeOrderableDBInstanceOptions // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/OrderableDBInstanceOptionsMessage type DescribeOrderableDBInstanceOptionsOutput struct { _ struct{} `type:"structure"` @@ -13969,6 +18031,19 @@ func (s DescribeOrderableDBInstanceOptionsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeOrderableDBInstanceOptionsOutput) SetMarker(v string) *DescribeOrderableDBInstanceOptionsOutput { + s.Marker = &v + return s +} + +// SetOrderableDBInstanceOptions sets the OrderableDBInstanceOptions field's value. +func (s *DescribeOrderableDBInstanceOptionsOutput) SetOrderableDBInstanceOptions(v []*OrderableDBInstanceOption) *DescribeOrderableDBInstanceOptionsOutput { + s.OrderableDBInstanceOptions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribePendingMaintenanceActionsMessage type DescribePendingMaintenanceActionsInput struct { _ struct{} `type:"structure"` @@ -13977,9 +18052,13 @@ type DescribePendingMaintenanceActionsInput struct { // // Supported filters: // - // db-instance-id - Accepts DB instance identifiers and DB instance Amazon - // Resource Names (ARNs). The results list will only include pending maintenance - // actions for the DB instances identified by these ARNs. + // * db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon + // Resource Names (ARNs). The results list will only include pending maintenance + // actions for the DB clusters identified by these ARNs. + // + // * db-instance-id - Accepts DB instance identifiers and DB instance ARNs. + // The results list will only include pending maintenance actions for the + // DB instances identified by these ARNs. Filters []*Filter `locationNameList:"Filter" type:"list"` // An optional pagination token provided by a previous DescribePendingMaintenanceActions @@ -14030,7 +18109,32 @@ func (s *DescribePendingMaintenanceActionsInput) Validate() error { return nil } +// SetFilters sets the Filters field's value. +func (s *DescribePendingMaintenanceActionsInput) SetFilters(v []*Filter) *DescribePendingMaintenanceActionsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribePendingMaintenanceActionsInput) SetMarker(v string) *DescribePendingMaintenanceActionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribePendingMaintenanceActionsInput) SetMaxRecords(v int64) *DescribePendingMaintenanceActionsInput { + s.MaxRecords = &v + return s +} + +// SetResourceIdentifier sets the ResourceIdentifier field's value. +func (s *DescribePendingMaintenanceActionsInput) SetResourceIdentifier(v string) *DescribePendingMaintenanceActionsInput { + s.ResourceIdentifier = &v + return s +} + // Data returned from the DescribePendingMaintenanceActions action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PendingMaintenanceActionsMessage type DescribePendingMaintenanceActionsOutput struct { _ struct{} `type:"structure"` @@ -14053,6 +18157,19 @@ func (s DescribePendingMaintenanceActionsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribePendingMaintenanceActionsOutput) SetMarker(v string) *DescribePendingMaintenanceActionsOutput { + s.Marker = &v + return s +} + +// SetPendingMaintenanceActions sets the PendingMaintenanceActions field's value. +func (s *DescribePendingMaintenanceActionsOutput) SetPendingMaintenanceActions(v []*ResourcePendingMaintenanceActions) *DescribePendingMaintenanceActionsOutput { + s.PendingMaintenanceActions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeReservedDBInstancesMessage type DescribeReservedDBInstancesInput struct { _ struct{} `type:"structure"` @@ -14136,6 +18253,67 @@ func (s *DescribeReservedDBInstancesInput) Validate() error { return nil } +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *DescribeReservedDBInstancesInput) SetDBInstanceClass(v string) *DescribeReservedDBInstancesInput { + s.DBInstanceClass = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *DescribeReservedDBInstancesInput) SetDuration(v string) *DescribeReservedDBInstancesInput { + s.Duration = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeReservedDBInstancesInput) SetFilters(v []*Filter) *DescribeReservedDBInstancesInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeReservedDBInstancesInput) SetMarker(v string) *DescribeReservedDBInstancesInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeReservedDBInstancesInput) SetMaxRecords(v int64) *DescribeReservedDBInstancesInput { + s.MaxRecords = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *DescribeReservedDBInstancesInput) SetMultiAZ(v bool) *DescribeReservedDBInstancesInput { + s.MultiAZ = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *DescribeReservedDBInstancesInput) SetOfferingType(v string) *DescribeReservedDBInstancesInput { + s.OfferingType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *DescribeReservedDBInstancesInput) SetProductDescription(v string) *DescribeReservedDBInstancesInput { + s.ProductDescription = &v + return s +} + +// SetReservedDBInstanceId sets the ReservedDBInstanceId field's value. +func (s *DescribeReservedDBInstancesInput) SetReservedDBInstanceId(v string) *DescribeReservedDBInstancesInput { + s.ReservedDBInstanceId = &v + return s +} + +// SetReservedDBInstancesOfferingId sets the ReservedDBInstancesOfferingId field's value. +func (s *DescribeReservedDBInstancesInput) SetReservedDBInstancesOfferingId(v string) *DescribeReservedDBInstancesInput { + s.ReservedDBInstancesOfferingId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeReservedDBInstancesOfferingsMessage type DescribeReservedDBInstancesOfferingsInput struct { _ struct{} `type:"structure"` @@ -14217,8 +18395,63 @@ func (s *DescribeReservedDBInstancesOfferingsInput) Validate() error { return nil } +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *DescribeReservedDBInstancesOfferingsInput) SetDBInstanceClass(v string) *DescribeReservedDBInstancesOfferingsInput { + s.DBInstanceClass = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *DescribeReservedDBInstancesOfferingsInput) SetDuration(v string) *DescribeReservedDBInstancesOfferingsInput { + s.Duration = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeReservedDBInstancesOfferingsInput) SetFilters(v []*Filter) *DescribeReservedDBInstancesOfferingsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeReservedDBInstancesOfferingsInput) SetMarker(v string) *DescribeReservedDBInstancesOfferingsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeReservedDBInstancesOfferingsInput) SetMaxRecords(v int64) *DescribeReservedDBInstancesOfferingsInput { + s.MaxRecords = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *DescribeReservedDBInstancesOfferingsInput) SetMultiAZ(v bool) *DescribeReservedDBInstancesOfferingsInput { + s.MultiAZ = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *DescribeReservedDBInstancesOfferingsInput) SetOfferingType(v string) *DescribeReservedDBInstancesOfferingsInput { + s.OfferingType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *DescribeReservedDBInstancesOfferingsInput) SetProductDescription(v string) *DescribeReservedDBInstancesOfferingsInput { + s.ProductDescription = &v + return s +} + +// SetReservedDBInstancesOfferingId sets the ReservedDBInstancesOfferingId field's value. +func (s *DescribeReservedDBInstancesOfferingsInput) SetReservedDBInstancesOfferingId(v string) *DescribeReservedDBInstancesOfferingsInput { + s.ReservedDBInstancesOfferingId = &v + return s +} + // Contains the result of a successful invocation of the DescribeReservedDBInstancesOfferings // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ReservedDBInstancesOfferingMessage type DescribeReservedDBInstancesOfferingsOutput struct { _ struct{} `type:"structure"` @@ -14241,8 +18474,21 @@ func (s DescribeReservedDBInstancesOfferingsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReservedDBInstancesOfferingsOutput) SetMarker(v string) *DescribeReservedDBInstancesOfferingsOutput { + s.Marker = &v + return s +} + +// SetReservedDBInstancesOfferings sets the ReservedDBInstancesOfferings field's value. +func (s *DescribeReservedDBInstancesOfferingsOutput) SetReservedDBInstancesOfferings(v []*ReservedDBInstancesOffering) *DescribeReservedDBInstancesOfferingsOutput { + s.ReservedDBInstancesOfferings = v + return s +} + // Contains the result of a successful invocation of the DescribeReservedDBInstances // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ReservedDBInstanceMessage type DescribeReservedDBInstancesOutput struct { _ struct{} `type:"structure"` @@ -14265,6 +18511,19 @@ func (s DescribeReservedDBInstancesOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReservedDBInstancesOutput) SetMarker(v string) *DescribeReservedDBInstancesOutput { + s.Marker = &v + return s +} + +// SetReservedDBInstances sets the ReservedDBInstances field's value. +func (s *DescribeReservedDBInstancesOutput) SetReservedDBInstances(v []*ReservedDBInstance) *DescribeReservedDBInstancesOutput { + s.ReservedDBInstances = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeSourceRegionsMessage type DescribeSourceRegionsInput struct { _ struct{} `type:"structure"` @@ -14289,7 +18548,7 @@ type DescribeSourceRegionsInput struct { // // Constraints: // - // Must specify a valid AWS Region name. + // * Must specify a valid AWS Region name. RegionName *string `type:"string"` } @@ -14323,8 +18582,33 @@ func (s *DescribeSourceRegionsInput) Validate() error { return nil } +// SetFilters sets the Filters field's value. +func (s *DescribeSourceRegionsInput) SetFilters(v []*Filter) *DescribeSourceRegionsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeSourceRegionsInput) SetMarker(v string) *DescribeSourceRegionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeSourceRegionsInput) SetMaxRecords(v int64) *DescribeSourceRegionsInput { + s.MaxRecords = &v + return s +} + +// SetRegionName sets the RegionName field's value. +func (s *DescribeSourceRegionsInput) SetRegionName(v string) *DescribeSourceRegionsInput { + s.RegionName = &v + return s +} + // Contains the result of a successful invocation of the DescribeSourceRegions // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/SourceRegionMessage type DescribeSourceRegionsOutput struct { _ struct{} `type:"structure"` @@ -14348,7 +18632,20 @@ func (s DescribeSourceRegionsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeSourceRegionsOutput) SetMarker(v string) *DescribeSourceRegionsOutput { + s.Marker = &v + return s +} + +// SetSourceRegions sets the SourceRegions field's value. +func (s *DescribeSourceRegionsOutput) SetSourceRegions(v []*SourceRegion) *DescribeSourceRegionsOutput { + s.SourceRegions = v + return s +} + // An Active Directory Domain membership record associated with the DB instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DomainMembership type DomainMembership struct { _ struct{} `type:"structure"` @@ -14377,6 +18674,31 @@ func (s DomainMembership) GoString() string { return s.String() } +// SetDomain sets the Domain field's value. +func (s *DomainMembership) SetDomain(v string) *DomainMembership { + s.Domain = &v + return s +} + +// SetFQDN sets the FQDN field's value. +func (s *DomainMembership) SetFQDN(v string) *DomainMembership { + s.FQDN = &v + return s +} + +// SetIAMRoleName sets the IAMRoleName field's value. +func (s *DomainMembership) SetIAMRoleName(v string) *DomainMembership { + s.IAMRoleName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DomainMembership) SetStatus(v string) *DomainMembership { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DownloadDBLogFilePortionMessage type DownloadDBLogFilePortionInput struct { _ struct{} `type:"structure"` @@ -14385,11 +18707,11 @@ type DownloadDBLogFilePortionInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBInstanceIdentifier is a required field DBInstanceIdentifier *string `type:"string" required:"true"` @@ -14411,21 +18733,21 @@ type DownloadDBLogFilePortionInput struct { // can be from the beginning or the end of the log file, depending on the value // of the Marker parameter. // - // If neither Marker or NumberOfLines are specified, the entire log file - // is returned up to a maximum of 10000 lines, starting with the most recent - // log entries first. + // * If neither Marker or NumberOfLines are specified, the entire log file + // is returned up to a maximum of 10000 lines, starting with the most recent + // log entries first. // - // If NumberOfLines is specified and Marker is not specified, then the most - // recent lines from the end of the log file are returned. + // * If NumberOfLines is specified and Marker is not specified, then the + // most recent lines from the end of the log file are returned. // - // If Marker is specified as "0", then the specified number of lines from - // the beginning of the log file are returned. + // * If Marker is specified as "0", then the specified number of lines from + // the beginning of the log file are returned. // - // You can download the log file in blocks of lines by specifying the size - // of the block using the NumberOfLines parameter, and by specifying a value - // of "0" for the Marker parameter in your first request. Include the Marker - // value returned in the response as the Marker value for the next request, - // continuing until the AdditionalDataPending response element returns false. + // * You can download the log file in blocks of lines by specifying the size + // of the block using the NumberOfLines parameter, and by specifying a value + // of "0" for the Marker parameter in your first request. Include the Marker + // value returned in the response as the Marker value for the next request, + // continuing until the AdditionalDataPending response element returns false. NumberOfLines *int64 `type:"integer"` } @@ -14455,7 +18777,32 @@ func (s *DownloadDBLogFilePortionInput) Validate() error { return nil } +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *DownloadDBLogFilePortionInput) SetDBInstanceIdentifier(v string) *DownloadDBLogFilePortionInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetLogFileName sets the LogFileName field's value. +func (s *DownloadDBLogFilePortionInput) SetLogFileName(v string) *DownloadDBLogFilePortionInput { + s.LogFileName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DownloadDBLogFilePortionInput) SetMarker(v string) *DownloadDBLogFilePortionInput { + s.Marker = &v + return s +} + +// SetNumberOfLines sets the NumberOfLines field's value. +func (s *DownloadDBLogFilePortionInput) SetNumberOfLines(v int64) *DownloadDBLogFilePortionInput { + s.NumberOfLines = &v + return s +} + // This data type is used as a response element to DownloadDBLogFilePortion. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DownloadDBLogFilePortionDetails type DownloadDBLogFilePortionOutput struct { _ struct{} `type:"structure"` @@ -14480,13 +18827,32 @@ func (s DownloadDBLogFilePortionOutput) GoString() string { return s.String() } +// SetAdditionalDataPending sets the AdditionalDataPending field's value. +func (s *DownloadDBLogFilePortionOutput) SetAdditionalDataPending(v bool) *DownloadDBLogFilePortionOutput { + s.AdditionalDataPending = &v + return s +} + +// SetLogFileData sets the LogFileData field's value. +func (s *DownloadDBLogFilePortionOutput) SetLogFileData(v string) *DownloadDBLogFilePortionOutput { + s.LogFileData = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DownloadDBLogFilePortionOutput) SetMarker(v string) *DownloadDBLogFilePortionOutput { + s.Marker = &v + return s +} + // This data type is used as a response element in the following actions: // -// AuthorizeDBSecurityGroupIngress +// * AuthorizeDBSecurityGroupIngress // -// DescribeDBSecurityGroups +// * DescribeDBSecurityGroups // -// RevokeDBSecurityGroupIngress +// * RevokeDBSecurityGroupIngress +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/EC2SecurityGroup type EC2SecurityGroup struct { _ struct{} `type:"structure"` @@ -14515,13 +18881,38 @@ func (s EC2SecurityGroup) GoString() string { return s.String() } +// SetEC2SecurityGroupId sets the EC2SecurityGroupId field's value. +func (s *EC2SecurityGroup) SetEC2SecurityGroupId(v string) *EC2SecurityGroup { + s.EC2SecurityGroupId = &v + return s +} + +// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value. +func (s *EC2SecurityGroup) SetEC2SecurityGroupName(v string) *EC2SecurityGroup { + s.EC2SecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value. +func (s *EC2SecurityGroup) SetEC2SecurityGroupOwnerId(v string) *EC2SecurityGroup { + s.EC2SecurityGroupOwnerId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EC2SecurityGroup) SetStatus(v string) *EC2SecurityGroup { + s.Status = &v + return s +} + // This data type is used as a response element in the following actions: // -// CreateDBInstance +// * CreateDBInstance // -// DescribeDBInstances +// * DescribeDBInstances // -// DeleteDBInstance +// * DeleteDBInstance +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/Endpoint type Endpoint struct { _ struct{} `type:"structure"` @@ -14545,8 +18936,27 @@ func (s Endpoint) GoString() string { return s.String() } +// SetAddress sets the Address field's value. +func (s *Endpoint) SetAddress(v string) *Endpoint { + s.Address = &v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *Endpoint) SetHostedZoneId(v string) *Endpoint { + s.HostedZoneId = &v + return s +} + +// SetPort sets the Port field's value. +func (s *Endpoint) SetPort(v int64) *Endpoint { + s.Port = &v + return s +} + // Contains the result of a successful invocation of the DescribeEngineDefaultParameters // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/EngineDefaults type EngineDefaults struct { _ struct{} `type:"structure"` @@ -14573,7 +18983,26 @@ func (s EngineDefaults) GoString() string { return s.String() } +// SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value. +func (s *EngineDefaults) SetDBParameterGroupFamily(v string) *EngineDefaults { + s.DBParameterGroupFamily = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *EngineDefaults) SetMarker(v string) *EngineDefaults { + s.Marker = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *EngineDefaults) SetParameters(v []*Parameter) *EngineDefaults { + s.Parameters = v + return s +} + // This data type is used as a response element in the DescribeEvents action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/Event type Event struct { _ struct{} `type:"structure"` @@ -14606,8 +19035,45 @@ func (s Event) GoString() string { return s.String() } +// SetDate sets the Date field's value. +func (s *Event) SetDate(v time.Time) *Event { + s.Date = &v + return s +} + +// SetEventCategories sets the EventCategories field's value. +func (s *Event) SetEventCategories(v []*string) *Event { + s.EventCategories = v + return s +} + +// SetMessage sets the Message field's value. +func (s *Event) SetMessage(v string) *Event { + s.Message = &v + return s +} + +// SetSourceArn sets the SourceArn field's value. +func (s *Event) SetSourceArn(v string) *Event { + s.SourceArn = &v + return s +} + +// SetSourceIdentifier sets the SourceIdentifier field's value. +func (s *Event) SetSourceIdentifier(v string) *Event { + s.SourceIdentifier = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *Event) SetSourceType(v string) *Event { + s.SourceType = &v + return s +} + // Contains the results of a successful invocation of the DescribeEventCategories // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/EventCategoriesMap type EventCategoriesMap struct { _ struct{} `type:"structure"` @@ -14628,8 +19094,21 @@ func (s EventCategoriesMap) GoString() string { return s.String() } +// SetEventCategories sets the EventCategories field's value. +func (s *EventCategoriesMap) SetEventCategories(v []*string) *EventCategoriesMap { + s.EventCategories = v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *EventCategoriesMap) SetSourceType(v string) *EventCategoriesMap { + s.SourceType = &v + return s +} + // Contains the results of a successful invocation of the DescribeEventSubscriptions // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/EventSubscription type EventSubscription struct { _ struct{} `type:"structure"` @@ -14662,8 +19141,8 @@ type EventSubscription struct { // // Constraints: // - // Can be one of the following: creating | modifying | deleting | active | - // no-permission | topic-not-exist + // Can be one of the following: creating | modifying | deleting | active | no-permission + // | topic-not-exist // // The status "no-permission" indicates that RDS no longer has permission to // post to the SNS topic. The status "topic-not-exist" indicates that the topic @@ -14684,6 +19163,67 @@ func (s EventSubscription) GoString() string { return s.String() } +// SetCustSubscriptionId sets the CustSubscriptionId field's value. +func (s *EventSubscription) SetCustSubscriptionId(v string) *EventSubscription { + s.CustSubscriptionId = &v + return s +} + +// SetCustomerAwsId sets the CustomerAwsId field's value. +func (s *EventSubscription) SetCustomerAwsId(v string) *EventSubscription { + s.CustomerAwsId = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *EventSubscription) SetEnabled(v bool) *EventSubscription { + s.Enabled = &v + return s +} + +// SetEventCategoriesList sets the EventCategoriesList field's value. +func (s *EventSubscription) SetEventCategoriesList(v []*string) *EventSubscription { + s.EventCategoriesList = v + return s +} + +// SetEventSubscriptionArn sets the EventSubscriptionArn field's value. +func (s *EventSubscription) SetEventSubscriptionArn(v string) *EventSubscription { + s.EventSubscriptionArn = &v + return s +} + +// SetSnsTopicArn sets the SnsTopicArn field's value. +func (s *EventSubscription) SetSnsTopicArn(v string) *EventSubscription { + s.SnsTopicArn = &v + return s +} + +// SetSourceIdsList sets the SourceIdsList field's value. +func (s *EventSubscription) SetSourceIdsList(v []*string) *EventSubscription { + s.SourceIdsList = v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *EventSubscription) SetSourceType(v string) *EventSubscription { + s.SourceType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EventSubscription) SetStatus(v string) *EventSubscription { + s.Status = &v + return s +} + +// SetSubscriptionCreationTime sets the SubscriptionCreationTime field's value. +func (s *EventSubscription) SetSubscriptionCreationTime(v string) *EventSubscription { + s.SubscriptionCreationTime = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/FailoverDBClusterMessage type FailoverDBClusterInput struct { _ struct{} `type:"structure"` @@ -14691,11 +19231,11 @@ type FailoverDBClusterInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBClusterIdentifier *string `type:"string"` // The name of the instance to promote to the primary instance. @@ -14715,25 +19255,37 @@ func (s FailoverDBClusterInput) GoString() string { return s.String() } +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *FailoverDBClusterInput) SetDBClusterIdentifier(v string) *FailoverDBClusterInput { + s.DBClusterIdentifier = &v + return s +} + +// SetTargetDBInstanceIdentifier sets the TargetDBInstanceIdentifier field's value. +func (s *FailoverDBClusterInput) SetTargetDBInstanceIdentifier(v string) *FailoverDBClusterInput { + s.TargetDBInstanceIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/FailoverDBClusterResult type FailoverDBClusterOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster + // * CreateDBCluster // - // DeleteDBCluster + // * DeleteDBCluster // - // FailoverDBCluster + // * FailoverDBCluster // - // ModifyDBCluster + // * ModifyDBCluster // - // RestoreDBClusterFromSnapshot + // * RestoreDBClusterFromSnapshot // - // RestoreDBClusterToPointInTime + // * RestoreDBClusterToPointInTime // - // This data type is used as a response element in the DescribeDBClusters - // action. + // This data type is used as a response element in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` } @@ -14747,7 +19299,14 @@ func (s FailoverDBClusterOutput) GoString() string { return s.String() } +// SetDBCluster sets the DBCluster field's value. +func (s *FailoverDBClusterOutput) SetDBCluster(v *DBCluster) *FailoverDBClusterOutput { + s.DBCluster = v + return s +} + // This type is not currently supported. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/Filter type Filter struct { _ struct{} `type:"structure"` @@ -14788,8 +19347,21 @@ func (s *Filter) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *Filter) SetName(v string) *Filter { + s.Name = &v + return s +} + +// SetValues sets the Values field's value. +func (s *Filter) SetValues(v []*string) *Filter { + s.Values = v + return s +} + // This data type is used as a response element in the DescribeDBSecurityGroups // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/IPRange type IPRange struct { _ struct{} `type:"structure"` @@ -14811,6 +19383,19 @@ func (s IPRange) GoString() string { return s.String() } +// SetCIDRIP sets the CIDRIP field's value. +func (s *IPRange) SetCIDRIP(v string) *IPRange { + s.CIDRIP = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *IPRange) SetStatus(v string) *IPRange { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ListTagsForResourceMessage type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -14858,6 +19443,19 @@ func (s *ListTagsForResourceInput) Validate() error { return nil } +// SetFilters sets the Filters field's value. +func (s *ListTagsForResourceInput) SetFilters(v []*Filter) *ListTagsForResourceInput { + s.Filters = v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *ListTagsForResourceInput) SetResourceName(v string) *ListTagsForResourceInput { + s.ResourceName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/TagListMessage type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` @@ -14875,6 +19473,13 @@ func (s ListTagsForResourceOutput) GoString() string { return s.String() } +// SetTagList sets the TagList field's value. +func (s *ListTagsForResourceOutput) SetTagList(v []*Tag) *ListTagsForResourceOutput { + s.TagList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBClusterMessage type ModifyDBClusterInput struct { _ struct{} `type:"structure"` @@ -14901,7 +19506,7 @@ type ModifyDBClusterInput struct { // // Constraints: // - // Must be a value from 1 to 35 + // * Must be a value from 1 to 35 BackupRetentionPeriod *int64 `type:"integer"` // The DB cluster identifier for the cluster being modified. This parameter @@ -14909,13 +19514,13 @@ type ModifyDBClusterInput struct { // // Constraints: // - // Must be the identifier for an existing DB cluster. + // * Must be the identifier for an existing DB cluster. // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // // DBClusterIdentifier is a required field DBClusterIdentifier *string `type:"string" required:"true"` @@ -14934,13 +19539,13 @@ type ModifyDBClusterInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: my-cluster2 + // Example: my-cluster2 NewDBClusterIdentifier *string `type:"string"` // A value that indicates that the DB cluster should be associated with the @@ -14972,19 +19577,19 @@ type ModifyDBClusterInput struct { // // Constraints: // - // Must be in the format hh24:mi-hh24:mi. + // * Must be in the format hh24:mi-hh24:mi. // - // Times should be in Universal Coordinated Time (UTC). + // * Times should be in Universal Coordinated Time (UTC). // - // Must not conflict with the preferred maintenance window. + // * Must not conflict with the preferred maintenance window. // - // Must be at least 30 minutes. + // * Must be at least 30 minutes. PreferredBackupWindow *string `type:"string"` // The weekly time range during which system maintenance can occur, in Universal // Coordinated Time (UTC). // - // Format: ddd:hh24:mi-ddd:hh24:mi + // Format: ddd:hh24:mi-ddd:hh24:mi // // Default: A 30-minute window selected at random from an 8-hour block of time // per region, occurring on a random day of the week. To see the time blocks @@ -15005,43 +19610,109 @@ func (s ModifyDBClusterInput) String() string { return awsutil.Prettify(s) } -// GoString returns the string representation -func (s ModifyDBClusterInput) GoString() string { - return s.String() +// GoString returns the string representation +func (s ModifyDBClusterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyDBClusterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyDBClusterInput"} + if s.DBClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplyImmediately sets the ApplyImmediately field's value. +func (s *ModifyDBClusterInput) SetApplyImmediately(v bool) *ModifyDBClusterInput { + s.ApplyImmediately = &v + return s +} + +// SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value. +func (s *ModifyDBClusterInput) SetBackupRetentionPeriod(v int64) *ModifyDBClusterInput { + s.BackupRetentionPeriod = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *ModifyDBClusterInput) SetDBClusterIdentifier(v string) *ModifyDBClusterInput { + s.DBClusterIdentifier = &v + return s +} + +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *ModifyDBClusterInput) SetDBClusterParameterGroupName(v string) *ModifyDBClusterInput { + s.DBClusterParameterGroupName = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *ModifyDBClusterInput) SetMasterUserPassword(v string) *ModifyDBClusterInput { + s.MasterUserPassword = &v + return s +} + +// SetNewDBClusterIdentifier sets the NewDBClusterIdentifier field's value. +func (s *ModifyDBClusterInput) SetNewDBClusterIdentifier(v string) *ModifyDBClusterInput { + s.NewDBClusterIdentifier = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *ModifyDBClusterInput) SetOptionGroupName(v string) *ModifyDBClusterInput { + s.OptionGroupName = &v + return s +} + +// SetPort sets the Port field's value. +func (s *ModifyDBClusterInput) SetPort(v int64) *ModifyDBClusterInput { + s.Port = &v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *ModifyDBClusterInput) SetPreferredBackupWindow(v string) *ModifyDBClusterInput { + s.PreferredBackupWindow = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyDBClusterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyDBClusterInput"} - if s.DBClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier")) - } +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *ModifyDBClusterInput) SetPreferredMaintenanceWindow(v string) *ModifyDBClusterInput { + s.PreferredMaintenanceWindow = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *ModifyDBClusterInput) SetVpcSecurityGroupIds(v []*string) *ModifyDBClusterInput { + s.VpcSecurityGroupIds = v + return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBClusterResult type ModifyDBClusterOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster + // * CreateDBCluster // - // DeleteDBCluster + // * DeleteDBCluster // - // FailoverDBCluster + // * FailoverDBCluster // - // ModifyDBCluster + // * ModifyDBCluster // - // RestoreDBClusterFromSnapshot + // * RestoreDBClusterFromSnapshot // - // RestoreDBClusterToPointInTime + // * RestoreDBClusterToPointInTime // - // This data type is used as a response element in the DescribeDBClusters - // action. + // This data type is used as a response element in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` } @@ -15055,6 +19726,13 @@ func (s ModifyDBClusterOutput) GoString() string { return s.String() } +// SetDBCluster sets the DBCluster field's value. +func (s *ModifyDBClusterOutput) SetDBCluster(v *DBCluster) *ModifyDBClusterOutput { + s.DBCluster = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBClusterParameterGroupMessage type ModifyDBClusterParameterGroupInput struct { _ struct{} `type:"structure"` @@ -15095,6 +19773,19 @@ func (s *ModifyDBClusterParameterGroupInput) Validate() error { return nil } +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *ModifyDBClusterParameterGroupInput) SetDBClusterParameterGroupName(v string) *ModifyDBClusterParameterGroupInput { + s.DBClusterParameterGroupName = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *ModifyDBClusterParameterGroupInput) SetParameters(v []*Parameter) *ModifyDBClusterParameterGroupInput { + s.Parameters = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBClusterSnapshotAttributeMessage type ModifyDBClusterSnapshotAttributeInput struct { _ struct{} `type:"structure"` @@ -15159,6 +19850,31 @@ func (s *ModifyDBClusterSnapshotAttributeInput) Validate() error { return nil } +// SetAttributeName sets the AttributeName field's value. +func (s *ModifyDBClusterSnapshotAttributeInput) SetAttributeName(v string) *ModifyDBClusterSnapshotAttributeInput { + s.AttributeName = &v + return s +} + +// SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value. +func (s *ModifyDBClusterSnapshotAttributeInput) SetDBClusterSnapshotIdentifier(v string) *ModifyDBClusterSnapshotAttributeInput { + s.DBClusterSnapshotIdentifier = &v + return s +} + +// SetValuesToAdd sets the ValuesToAdd field's value. +func (s *ModifyDBClusterSnapshotAttributeInput) SetValuesToAdd(v []*string) *ModifyDBClusterSnapshotAttributeInput { + s.ValuesToAdd = v + return s +} + +// SetValuesToRemove sets the ValuesToRemove field's value. +func (s *ModifyDBClusterSnapshotAttributeInput) SetValuesToRemove(v []*string) *ModifyDBClusterSnapshotAttributeInput { + s.ValuesToRemove = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBClusterSnapshotAttributeResult type ModifyDBClusterSnapshotAttributeOutput struct { _ struct{} `type:"structure"` @@ -15181,6 +19897,13 @@ func (s ModifyDBClusterSnapshotAttributeOutput) GoString() string { return s.String() } +// SetDBClusterSnapshotAttributesResult sets the DBClusterSnapshotAttributesResult field's value. +func (s *ModifyDBClusterSnapshotAttributeOutput) SetDBClusterSnapshotAttributesResult(v *DBClusterSnapshotAttributesResult) *ModifyDBClusterSnapshotAttributeOutput { + s.DBClusterSnapshotAttributesResult = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBInstanceMessage type ModifyDBInstanceInput struct { _ struct{} `type:"structure"` @@ -15188,7 +19911,7 @@ type ModifyDBInstanceInput struct { // not result in an outage and the change is applied during the next maintenance // window unless ApplyImmediately is set to true for this request. // - // MySQL + // MySQL // // Default: Uses existing setting // @@ -15200,7 +19923,7 @@ type ModifyDBInstanceInput struct { // // Type: Integer // - // MariaDB + // MariaDB // // Default: Uses existing setting // @@ -15212,7 +19935,7 @@ type ModifyDBInstanceInput struct { // // Type: Integer // - // PostgreSQL + // PostgreSQL // // Default: Uses existing setting // @@ -15224,7 +19947,7 @@ type ModifyDBInstanceInput struct { // // Type: Integer // - // Oracle + // Oracle // // Default: Uses existing setting // @@ -15234,7 +19957,7 @@ type ModifyDBInstanceInput struct { // value. Values that are not at least 10% greater than the existing value are // rounded up so that they are 10% greater than the current value. // - // SQL Server + // SQL Server // // Cannot be modified. // @@ -15257,16 +19980,16 @@ type ModifyDBInstanceInput struct { // does not result in an outage and the change is asynchronously applied as // soon as possible. // - // Constraints: This parameter must be set to true when specifying a value - // for the EngineVersion parameter that is a different major version than the - // DB instance's current version. + // Constraints: This parameter must be set to true when specifying a value for + // the EngineVersion parameter that is a different major version than the DB + // instance's current version. AllowMajorVersionUpgrade *bool `type:"boolean"` // Specifies whether the modifications in this request and any pending modifications // are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow // setting for the DB instance. // - // If this parameter is set to false, changes to the DB instance are applied + // If this parameter is set to false, changes to the DB instance are applied // during the next maintenance window. Some parameter changes can cause an outage // and will be applied on the next call to RebootDBInstance, or the next failure // reboot. Review the table of parameters in Modifying a DB Instance and Using @@ -15289,26 +20012,26 @@ type ModifyDBInstanceInput struct { // a positive number enables backups. Setting this parameter to 0 disables automated // backups. // - // Changing this parameter can result in an outage if you change from 0 to - // a non-zero value or from a non-zero value to 0. These changes are applied - // during the next maintenance window unless the ApplyImmediately parameter - // is set to true for this request. If you change the parameter from one non-zero - // value to another non-zero value, the change is asynchronously applied as - // soon as possible. + // Changing this parameter can result in an outage if you change from 0 to a + // non-zero value or from a non-zero value to 0. These changes are applied during + // the next maintenance window unless the ApplyImmediately parameter is set + // to true for this request. If you change the parameter from one non-zero value + // to another non-zero value, the change is asynchronously applied as soon as + // possible. // // Default: Uses existing setting // // Constraints: // - // Must be a value from 0 to 35 + // * Must be a value from 0 to 35 // - // Can be specified for a MySQL Read Replica only if the source is running - // MySQL 5.6 + // * Can be specified for a MySQL Read Replica only if the source is running + // MySQL 5.6 // - // Can be specified for a PostgreSQL Read Replica only if the source is running - // PostgreSQL 9.3.5 + // * Can be specified for a PostgreSQL Read Replica only if the source is + // running PostgreSQL 9.3.5 // - // Cannot be set to 0 if the DB instance is a source to Read Replicas + // * Cannot be set to 0 if the DB instance is a source to Read Replicas BackupRetentionPeriod *int64 `type:"integer"` // Indicates the certificate that needs to be associated with the instance. @@ -15320,11 +20043,12 @@ type ModifyDBInstanceInput struct { // The new compute and memory capacity of the DB instance. To determine the // instance classes that are available for a particular DB engine, use the DescribeOrderableDBInstanceOptions - // action. + // action. Note that not all instance classes are available in all regions for + // all DB engines. // - // Passing a value for this setting causes an outage during the change and - // is applied during the next maintenance window, unless ApplyImmediately is - // specified as true for this request. + // Passing a value for this setting causes an outage during the change and is + // applied during the next maintenance window, unless ApplyImmediately is specified + // as true for this request. // // Default: Uses existing setting // @@ -15340,13 +20064,13 @@ type ModifyDBInstanceInput struct { // // Constraints: // - // Must be the identifier for an existing DB instance + // * Must be the identifier for an existing DB instance // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBInstanceIdentifier is a required field DBInstanceIdentifier *string `type:"string" required:"true"` @@ -15372,44 +20096,44 @@ type ModifyDBInstanceInput struct { // Your database will restart when you change the DBPortNumber value regardless // of the value of the ApplyImmediately parameter. // - // MySQL + // MySQL // - // Default: 3306 + // Default: 3306 // - // Valid Values: 1150-65535 + // Valid Values: 1150-65535 // - // MariaDB + // MariaDB // - // Default: 3306 + // Default: 3306 // - // Valid Values: 1150-65535 + // Valid Values: 1150-65535 // - // PostgreSQL + // PostgreSQL // - // Default: 5432 + // Default: 5432 // - // Valid Values: 1150-65535 + // Valid Values: 1150-65535 // // Type: Integer // - // Oracle + // Oracle // - // Default: 1521 + // Default: 1521 // - // Valid Values: 1150-65535 + // Valid Values: 1150-65535 // - // SQL Server + // SQL Server // - // Default: 1433 + // Default: 1433 // - // Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 - // through 49156. + // Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 through + // 49156. // - // Amazon Aurora + // Amazon Aurora // - // Default: 3306 + // Default: 3306 // - // Valid Values: 1150-65535 + // Valid Values: 1150-65535 DBPortNumber *int64 `type:"integer"` // A list of DB security groups to authorize on this DB instance. Changing this @@ -15418,11 +20142,11 @@ type ModifyDBInstanceInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBSecurityGroups []*string `locationNameList:"DBSecurityGroupName" type:"list"` // The new DB subnet group for the DB instance. You can use this parameter to @@ -15475,7 +20199,7 @@ type ModifyDBInstanceInput struct { // The DB instance will require a reboot for the change in storage type to take // effect. // - // SQL Server + // SQL Server // // Setting the IOPS value for the SQL Server database engine is not supported. // @@ -15504,10 +20228,10 @@ type ModifyDBInstanceInput struct { // The new password for the DB instance master user. Can be any printable ASCII // character except "/", """, or "@". // - // Changing this parameter does not result in an outage and the change is - // asynchronously applied as soon as possible. Between the time of the request - // and the completion of the request, the MasterUserPassword element exists - // in the PendingModifiedValues element of the operation response. + // Changing this parameter does not result in an outage and the change is asynchronously + // applied as soon as possible. Between the time of the request and the completion + // of the request, the MasterUserPassword element exists in the PendingModifiedValues + // element of the operation response. // // Default: Uses existing setting // @@ -15515,7 +20239,7 @@ type ModifyDBInstanceInput struct { // Amazon Aurora), 8 to 30 alphanumeric characters (Oracle), or 8 to 128 alphanumeric // characters (SQL Server). // - // Amazon RDS API actions never return the password, so this action provides + // Amazon RDS API actions never return the password, so this action provides // a way to regain access to a primary instance user if the password is lost. // This includes restoring privileges that might have been accidentally revoked. MasterUserPassword *string `type:"string"` @@ -15554,11 +20278,11 @@ type ModifyDBInstanceInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens NewDBInstanceIdentifier *string `type:"string"` // Indicates that the DB instance should be associated with the specified option @@ -15581,13 +20305,13 @@ type ModifyDBInstanceInput struct { // // Constraints: // - // Must be in the format hh24:mi-hh24:mi + // * Must be in the format hh24:mi-hh24:mi // - // Times should be in Universal Time Coordinated (UTC) + // * Times should be in Universal Time Coordinated (UTC) // - // Must not conflict with the preferred maintenance window + // * Must not conflict with the preferred maintenance window // - // Must be at least 30 minutes + // * Must be at least 30 minutes PreferredBackupWindow *string `type:"string"` // The weekly time range (in UTC) during which system maintenance can occur, @@ -15623,7 +20347,7 @@ type ModifyDBInstanceInput struct { // to make the DB instance internal with a DNS name that resolves to a private // IP address. // - // PubliclyAccessible only applies to DB instances in a VPC. The DB instance + // PubliclyAccessible only applies to DB instances in a VPC. The DB instance // must be part of a public subnet and PubliclyAccessible must be true in order // for it to be publicly accessible. // @@ -15635,11 +20359,11 @@ type ModifyDBInstanceInput struct { // Specifies the storage type to be associated with the DB instance. // - // Valid values: standard | gp2 | io1 + // Valid values: standard | gp2 | io1 // - // If you specify io1, you must also include a value for the Iops parameter. + // If you specify io1, you must also include a value for the Iops parameter. // - // Default: io1 if the Iops parameter is specified; otherwise standard + // Default: io1 if the Iops parameter is specified; otherwise standard StorageType *string `type:"string"` // The ARN from the Key Store with which to associate the instance for TDE encryption. @@ -15654,11 +20378,11 @@ type ModifyDBInstanceInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"` } @@ -15685,19 +20409,211 @@ func (s *ModifyDBInstanceInput) Validate() error { return nil } +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *ModifyDBInstanceInput) SetAllocatedStorage(v int64) *ModifyDBInstanceInput { + s.AllocatedStorage = &v + return s +} + +// SetAllowMajorVersionUpgrade sets the AllowMajorVersionUpgrade field's value. +func (s *ModifyDBInstanceInput) SetAllowMajorVersionUpgrade(v bool) *ModifyDBInstanceInput { + s.AllowMajorVersionUpgrade = &v + return s +} + +// SetApplyImmediately sets the ApplyImmediately field's value. +func (s *ModifyDBInstanceInput) SetApplyImmediately(v bool) *ModifyDBInstanceInput { + s.ApplyImmediately = &v + return s +} + +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *ModifyDBInstanceInput) SetAutoMinorVersionUpgrade(v bool) *ModifyDBInstanceInput { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value. +func (s *ModifyDBInstanceInput) SetBackupRetentionPeriod(v int64) *ModifyDBInstanceInput { + s.BackupRetentionPeriod = &v + return s +} + +// SetCACertificateIdentifier sets the CACertificateIdentifier field's value. +func (s *ModifyDBInstanceInput) SetCACertificateIdentifier(v string) *ModifyDBInstanceInput { + s.CACertificateIdentifier = &v + return s +} + +// SetCopyTagsToSnapshot sets the CopyTagsToSnapshot field's value. +func (s *ModifyDBInstanceInput) SetCopyTagsToSnapshot(v bool) *ModifyDBInstanceInput { + s.CopyTagsToSnapshot = &v + return s +} + +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *ModifyDBInstanceInput) SetDBInstanceClass(v string) *ModifyDBInstanceInput { + s.DBInstanceClass = &v + return s +} + +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *ModifyDBInstanceInput) SetDBInstanceIdentifier(v string) *ModifyDBInstanceInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *ModifyDBInstanceInput) SetDBParameterGroupName(v string) *ModifyDBInstanceInput { + s.DBParameterGroupName = &v + return s +} + +// SetDBPortNumber sets the DBPortNumber field's value. +func (s *ModifyDBInstanceInput) SetDBPortNumber(v int64) *ModifyDBInstanceInput { + s.DBPortNumber = &v + return s +} + +// SetDBSecurityGroups sets the DBSecurityGroups field's value. +func (s *ModifyDBInstanceInput) SetDBSecurityGroups(v []*string) *ModifyDBInstanceInput { + s.DBSecurityGroups = v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *ModifyDBInstanceInput) SetDBSubnetGroupName(v string) *ModifyDBInstanceInput { + s.DBSubnetGroupName = &v + return s +} + +// SetDomain sets the Domain field's value. +func (s *ModifyDBInstanceInput) SetDomain(v string) *ModifyDBInstanceInput { + s.Domain = &v + return s +} + +// SetDomainIAMRoleName sets the DomainIAMRoleName field's value. +func (s *ModifyDBInstanceInput) SetDomainIAMRoleName(v string) *ModifyDBInstanceInput { + s.DomainIAMRoleName = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *ModifyDBInstanceInput) SetEngineVersion(v string) *ModifyDBInstanceInput { + s.EngineVersion = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *ModifyDBInstanceInput) SetIops(v int64) *ModifyDBInstanceInput { + s.Iops = &v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *ModifyDBInstanceInput) SetLicenseModel(v string) *ModifyDBInstanceInput { + s.LicenseModel = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *ModifyDBInstanceInput) SetMasterUserPassword(v string) *ModifyDBInstanceInput { + s.MasterUserPassword = &v + return s +} + +// SetMonitoringInterval sets the MonitoringInterval field's value. +func (s *ModifyDBInstanceInput) SetMonitoringInterval(v int64) *ModifyDBInstanceInput { + s.MonitoringInterval = &v + return s +} + +// SetMonitoringRoleArn sets the MonitoringRoleArn field's value. +func (s *ModifyDBInstanceInput) SetMonitoringRoleArn(v string) *ModifyDBInstanceInput { + s.MonitoringRoleArn = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *ModifyDBInstanceInput) SetMultiAZ(v bool) *ModifyDBInstanceInput { + s.MultiAZ = &v + return s +} + +// SetNewDBInstanceIdentifier sets the NewDBInstanceIdentifier field's value. +func (s *ModifyDBInstanceInput) SetNewDBInstanceIdentifier(v string) *ModifyDBInstanceInput { + s.NewDBInstanceIdentifier = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *ModifyDBInstanceInput) SetOptionGroupName(v string) *ModifyDBInstanceInput { + s.OptionGroupName = &v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *ModifyDBInstanceInput) SetPreferredBackupWindow(v string) *ModifyDBInstanceInput { + s.PreferredBackupWindow = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *ModifyDBInstanceInput) SetPreferredMaintenanceWindow(v string) *ModifyDBInstanceInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPromotionTier sets the PromotionTier field's value. +func (s *ModifyDBInstanceInput) SetPromotionTier(v int64) *ModifyDBInstanceInput { + s.PromotionTier = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *ModifyDBInstanceInput) SetPubliclyAccessible(v bool) *ModifyDBInstanceInput { + s.PubliclyAccessible = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *ModifyDBInstanceInput) SetStorageType(v string) *ModifyDBInstanceInput { + s.StorageType = &v + return s +} + +// SetTdeCredentialArn sets the TdeCredentialArn field's value. +func (s *ModifyDBInstanceInput) SetTdeCredentialArn(v string) *ModifyDBInstanceInput { + s.TdeCredentialArn = &v + return s +} + +// SetTdeCredentialPassword sets the TdeCredentialPassword field's value. +func (s *ModifyDBInstanceInput) SetTdeCredentialPassword(v string) *ModifyDBInstanceInput { + s.TdeCredentialPassword = &v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *ModifyDBInstanceInput) SetVpcSecurityGroupIds(v []*string) *ModifyDBInstanceInput { + s.VpcSecurityGroupIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBInstanceResult type ModifyDBInstanceOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance + // * CreateDBInstance // - // DeleteDBInstance + // * DeleteDBInstance // - // ModifyDBInstance + // * ModifyDBInstance // - // This data type is used as a response element in the DescribeDBInstances - // action. + // This data type is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` } @@ -15711,6 +20627,13 @@ func (s ModifyDBInstanceOutput) GoString() string { return s.String() } +// SetDBInstance sets the DBInstance field's value. +func (s *ModifyDBInstanceOutput) SetDBInstance(v *DBInstance) *ModifyDBInstanceOutput { + s.DBInstance = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBParameterGroupMessage type ModifyDBParameterGroupInput struct { _ struct{} `type:"structure"` @@ -15718,13 +20641,13 @@ type ModifyDBParameterGroupInput struct { // // Constraints: // - // Must be the name of an existing DB parameter group + // * Must be the name of an existing DB parameter group // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBParameterGroupName is a required field DBParameterGroupName *string `type:"string" required:"true"` @@ -15736,7 +20659,7 @@ type ModifyDBParameterGroupInput struct { // // Valid Values (for the application method): immediate | pending-reboot // - // You can use the immediate value with dynamic parameters only. You can use + // You can use the immediate value with dynamic parameters only. You can use // the pending-reboot value for both dynamic and static parameters, and changes // are applied when you reboot the DB instance without failover. // @@ -15770,6 +20693,19 @@ func (s *ModifyDBParameterGroupInput) Validate() error { return nil } +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *ModifyDBParameterGroupInput) SetDBParameterGroupName(v string) *ModifyDBParameterGroupInput { + s.DBParameterGroupName = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *ModifyDBParameterGroupInput) SetParameters(v []*Parameter) *ModifyDBParameterGroupInput { + s.Parameters = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSnapshotAttributeMessage type ModifyDBSnapshotAttributeInput struct { _ struct{} `type:"structure"` @@ -15832,6 +20768,31 @@ func (s *ModifyDBSnapshotAttributeInput) Validate() error { return nil } +// SetAttributeName sets the AttributeName field's value. +func (s *ModifyDBSnapshotAttributeInput) SetAttributeName(v string) *ModifyDBSnapshotAttributeInput { + s.AttributeName = &v + return s +} + +// SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value. +func (s *ModifyDBSnapshotAttributeInput) SetDBSnapshotIdentifier(v string) *ModifyDBSnapshotAttributeInput { + s.DBSnapshotIdentifier = &v + return s +} + +// SetValuesToAdd sets the ValuesToAdd field's value. +func (s *ModifyDBSnapshotAttributeInput) SetValuesToAdd(v []*string) *ModifyDBSnapshotAttributeInput { + s.ValuesToAdd = v + return s +} + +// SetValuesToRemove sets the ValuesToRemove field's value. +func (s *ModifyDBSnapshotAttributeInput) SetValuesToRemove(v []*string) *ModifyDBSnapshotAttributeInput { + s.ValuesToRemove = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSnapshotAttributeResult type ModifyDBSnapshotAttributeOutput struct { _ struct{} `type:"structure"` @@ -15854,6 +20815,91 @@ func (s ModifyDBSnapshotAttributeOutput) GoString() string { return s.String() } +// SetDBSnapshotAttributesResult sets the DBSnapshotAttributesResult field's value. +func (s *ModifyDBSnapshotAttributeOutput) SetDBSnapshotAttributesResult(v *DBSnapshotAttributesResult) *ModifyDBSnapshotAttributeOutput { + s.DBSnapshotAttributesResult = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSnapshotMessage +type ModifyDBSnapshotInput struct { + _ struct{} `type:"structure"` + + // The identifier of the DB snapshot to modify. + // + // DBSnapshotIdentifier is a required field + DBSnapshotIdentifier *string `type:"string" required:"true"` + + // The engine version to update the DB snapshot to. + EngineVersion *string `type:"string"` +} + +// String returns the string representation +func (s ModifyDBSnapshotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyDBSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyDBSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyDBSnapshotInput"} + if s.DBSnapshotIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value. +func (s *ModifyDBSnapshotInput) SetDBSnapshotIdentifier(v string) *ModifyDBSnapshotInput { + s.DBSnapshotIdentifier = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *ModifyDBSnapshotInput) SetEngineVersion(v string) *ModifyDBSnapshotInput { + s.EngineVersion = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSnapshotResult +type ModifyDBSnapshotOutput struct { + _ struct{} `type:"structure"` + + // Contains the result of a successful invocation of the following actions: + // + // * CreateDBSnapshot + // + // * DeleteDBSnapshot + // + // This data type is used as a response element in the DescribeDBSnapshots action. + DBSnapshot *DBSnapshot `type:"structure"` +} + +// String returns the string representation +func (s ModifyDBSnapshotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyDBSnapshotOutput) GoString() string { + return s.String() +} + +// SetDBSnapshot sets the DBSnapshot field's value. +func (s *ModifyDBSnapshotOutput) SetDBSnapshot(v *DBSnapshot) *ModifyDBSnapshotOutput { + s.DBSnapshot = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSubnetGroupMessage type ModifyDBSubnetGroupInput struct { _ struct{} `type:"structure"` @@ -15902,20 +20948,39 @@ func (s *ModifyDBSubnetGroupInput) Validate() error { return nil } +// SetDBSubnetGroupDescription sets the DBSubnetGroupDescription field's value. +func (s *ModifyDBSubnetGroupInput) SetDBSubnetGroupDescription(v string) *ModifyDBSubnetGroupInput { + s.DBSubnetGroupDescription = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *ModifyDBSubnetGroupInput) SetDBSubnetGroupName(v string) *ModifyDBSubnetGroupInput { + s.DBSubnetGroupName = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *ModifyDBSubnetGroupInput) SetSubnetIds(v []*string) *ModifyDBSubnetGroupInput { + s.SubnetIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSubnetGroupResult type ModifyDBSubnetGroupOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBSubnetGroup + // * CreateDBSubnetGroup // - // ModifyDBSubnetGroup + // * ModifyDBSubnetGroup // - // DescribeDBSubnetGroups + // * DescribeDBSubnetGroups // - // DeleteDBSubnetGroup + // * DeleteDBSubnetGroup // - // This data type is used as a response element in the DescribeDBSubnetGroups + // This data type is used as a response element in the DescribeDBSubnetGroups // action. DBSubnetGroup *DBSubnetGroup `type:"structure"` } @@ -15930,6 +20995,13 @@ func (s ModifyDBSubnetGroupOutput) GoString() string { return s.String() } +// SetDBSubnetGroup sets the DBSubnetGroup field's value. +func (s *ModifyDBSubnetGroupOutput) SetDBSubnetGroup(v *DBSubnetGroup) *ModifyDBSubnetGroupOutput { + s.DBSubnetGroup = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyEventSubscriptionMessage type ModifyEventSubscriptionInput struct { _ struct{} `type:"structure"` @@ -15985,6 +21057,37 @@ func (s *ModifyEventSubscriptionInput) Validate() error { return nil } +// SetEnabled sets the Enabled field's value. +func (s *ModifyEventSubscriptionInput) SetEnabled(v bool) *ModifyEventSubscriptionInput { + s.Enabled = &v + return s +} + +// SetEventCategories sets the EventCategories field's value. +func (s *ModifyEventSubscriptionInput) SetEventCategories(v []*string) *ModifyEventSubscriptionInput { + s.EventCategories = v + return s +} + +// SetSnsTopicArn sets the SnsTopicArn field's value. +func (s *ModifyEventSubscriptionInput) SetSnsTopicArn(v string) *ModifyEventSubscriptionInput { + s.SnsTopicArn = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *ModifyEventSubscriptionInput) SetSourceType(v string) *ModifyEventSubscriptionInput { + s.SourceType = &v + return s +} + +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *ModifyEventSubscriptionInput) SetSubscriptionName(v string) *ModifyEventSubscriptionInput { + s.SubscriptionName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyEventSubscriptionResult type ModifyEventSubscriptionOutput struct { _ struct{} `type:"structure"` @@ -16003,6 +21106,13 @@ func (s ModifyEventSubscriptionOutput) GoString() string { return s.String() } +// SetEventSubscription sets the EventSubscription field's value. +func (s *ModifyEventSubscriptionOutput) SetEventSubscription(v *EventSubscription) *ModifyEventSubscriptionOutput { + s.EventSubscription = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyOptionGroupMessage type ModifyOptionGroupInput struct { _ struct{} `type:"structure"` @@ -16060,6 +21170,31 @@ func (s *ModifyOptionGroupInput) Validate() error { return nil } +// SetApplyImmediately sets the ApplyImmediately field's value. +func (s *ModifyOptionGroupInput) SetApplyImmediately(v bool) *ModifyOptionGroupInput { + s.ApplyImmediately = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *ModifyOptionGroupInput) SetOptionGroupName(v string) *ModifyOptionGroupInput { + s.OptionGroupName = &v + return s +} + +// SetOptionsToInclude sets the OptionsToInclude field's value. +func (s *ModifyOptionGroupInput) SetOptionsToInclude(v []*OptionConfiguration) *ModifyOptionGroupInput { + s.OptionsToInclude = v + return s +} + +// SetOptionsToRemove sets the OptionsToRemove field's value. +func (s *ModifyOptionGroupInput) SetOptionsToRemove(v []*string) *ModifyOptionGroupInput { + s.OptionsToRemove = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyOptionGroupResult type ModifyOptionGroupOutput struct { _ struct{} `type:"structure"` @@ -16076,7 +21211,14 @@ func (s ModifyOptionGroupOutput) GoString() string { return s.String() } +// SetOptionGroup sets the OptionGroup field's value. +func (s *ModifyOptionGroupOutput) SetOptionGroup(v *OptionGroup) *ModifyOptionGroupOutput { + s.OptionGroup = v + return s +} + // Option details. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/Option type Option struct { _ struct{} `type:"structure"` @@ -16120,7 +21262,62 @@ func (s Option) GoString() string { return s.String() } +// SetDBSecurityGroupMemberships sets the DBSecurityGroupMemberships field's value. +func (s *Option) SetDBSecurityGroupMemberships(v []*DBSecurityGroupMembership) *Option { + s.DBSecurityGroupMemberships = v + return s +} + +// SetOptionDescription sets the OptionDescription field's value. +func (s *Option) SetOptionDescription(v string) *Option { + s.OptionDescription = &v + return s +} + +// SetOptionName sets the OptionName field's value. +func (s *Option) SetOptionName(v string) *Option { + s.OptionName = &v + return s +} + +// SetOptionSettings sets the OptionSettings field's value. +func (s *Option) SetOptionSettings(v []*OptionSetting) *Option { + s.OptionSettings = v + return s +} + +// SetOptionVersion sets the OptionVersion field's value. +func (s *Option) SetOptionVersion(v string) *Option { + s.OptionVersion = &v + return s +} + +// SetPermanent sets the Permanent field's value. +func (s *Option) SetPermanent(v bool) *Option { + s.Permanent = &v + return s +} + +// SetPersistent sets the Persistent field's value. +func (s *Option) SetPersistent(v bool) *Option { + s.Persistent = &v + return s +} + +// SetPort sets the Port field's value. +func (s *Option) SetPort(v int64) *Option { + s.Port = &v + return s +} + +// SetVpcSecurityGroupMemberships sets the VpcSecurityGroupMemberships field's value. +func (s *Option) SetVpcSecurityGroupMemberships(v []*VpcSecurityGroupMembership) *Option { + s.VpcSecurityGroupMemberships = v + return s +} + // A list of all available options +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/OptionConfiguration type OptionConfiguration struct { _ struct{} `type:"structure"` @@ -16168,6 +21365,43 @@ func (s *OptionConfiguration) Validate() error { return nil } +// SetDBSecurityGroupMemberships sets the DBSecurityGroupMemberships field's value. +func (s *OptionConfiguration) SetDBSecurityGroupMemberships(v []*string) *OptionConfiguration { + s.DBSecurityGroupMemberships = v + return s +} + +// SetOptionName sets the OptionName field's value. +func (s *OptionConfiguration) SetOptionName(v string) *OptionConfiguration { + s.OptionName = &v + return s +} + +// SetOptionSettings sets the OptionSettings field's value. +func (s *OptionConfiguration) SetOptionSettings(v []*OptionSetting) *OptionConfiguration { + s.OptionSettings = v + return s +} + +// SetOptionVersion sets the OptionVersion field's value. +func (s *OptionConfiguration) SetOptionVersion(v string) *OptionConfiguration { + s.OptionVersion = &v + return s +} + +// SetPort sets the Port field's value. +func (s *OptionConfiguration) SetPort(v int64) *OptionConfiguration { + s.Port = &v + return s +} + +// SetVpcSecurityGroupMemberships sets the VpcSecurityGroupMemberships field's value. +func (s *OptionConfiguration) SetVpcSecurityGroupMemberships(v []*string) *OptionConfiguration { + s.VpcSecurityGroupMemberships = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/OptionGroup type OptionGroup struct { _ struct{} `type:"structure"` @@ -16202,17 +21436,66 @@ type OptionGroup struct { VpcId *string `type:"string"` } -// String returns the string representation -func (s OptionGroup) String() string { - return awsutil.Prettify(s) +// String returns the string representation +func (s OptionGroup) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OptionGroup) GoString() string { + return s.String() +} + +// SetAllowsVpcAndNonVpcInstanceMemberships sets the AllowsVpcAndNonVpcInstanceMemberships field's value. +func (s *OptionGroup) SetAllowsVpcAndNonVpcInstanceMemberships(v bool) *OptionGroup { + s.AllowsVpcAndNonVpcInstanceMemberships = &v + return s +} + +// SetEngineName sets the EngineName field's value. +func (s *OptionGroup) SetEngineName(v string) *OptionGroup { + s.EngineName = &v + return s +} + +// SetMajorEngineVersion sets the MajorEngineVersion field's value. +func (s *OptionGroup) SetMajorEngineVersion(v string) *OptionGroup { + s.MajorEngineVersion = &v + return s +} + +// SetOptionGroupArn sets the OptionGroupArn field's value. +func (s *OptionGroup) SetOptionGroupArn(v string) *OptionGroup { + s.OptionGroupArn = &v + return s +} + +// SetOptionGroupDescription sets the OptionGroupDescription field's value. +func (s *OptionGroup) SetOptionGroupDescription(v string) *OptionGroup { + s.OptionGroupDescription = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *OptionGroup) SetOptionGroupName(v string) *OptionGroup { + s.OptionGroupName = &v + return s +} + +// SetOptions sets the Options field's value. +func (s *OptionGroup) SetOptions(v []*Option) *OptionGroup { + s.Options = v + return s } -// GoString returns the string representation -func (s OptionGroup) GoString() string { - return s.String() +// SetVpcId sets the VpcId field's value. +func (s *OptionGroup) SetVpcId(v string) *OptionGroup { + s.VpcId = &v + return s } // Provides information on the option groups the DB instance is a member of. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/OptionGroupMembership type OptionGroupMembership struct { _ struct{} `type:"structure"` @@ -16235,7 +21518,20 @@ func (s OptionGroupMembership) GoString() string { return s.String() } +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *OptionGroupMembership) SetOptionGroupName(v string) *OptionGroupMembership { + s.OptionGroupName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *OptionGroupMembership) SetStatus(v string) *OptionGroupMembership { + s.Status = &v + return s +} + // Available option. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/OptionGroupOption type OptionGroupOption struct { _ struct{} `type:"structure"` @@ -16294,9 +21590,88 @@ func (s OptionGroupOption) GoString() string { return s.String() } +// SetDefaultPort sets the DefaultPort field's value. +func (s *OptionGroupOption) SetDefaultPort(v int64) *OptionGroupOption { + s.DefaultPort = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *OptionGroupOption) SetDescription(v string) *OptionGroupOption { + s.Description = &v + return s +} + +// SetEngineName sets the EngineName field's value. +func (s *OptionGroupOption) SetEngineName(v string) *OptionGroupOption { + s.EngineName = &v + return s +} + +// SetMajorEngineVersion sets the MajorEngineVersion field's value. +func (s *OptionGroupOption) SetMajorEngineVersion(v string) *OptionGroupOption { + s.MajorEngineVersion = &v + return s +} + +// SetMinimumRequiredMinorEngineVersion sets the MinimumRequiredMinorEngineVersion field's value. +func (s *OptionGroupOption) SetMinimumRequiredMinorEngineVersion(v string) *OptionGroupOption { + s.MinimumRequiredMinorEngineVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *OptionGroupOption) SetName(v string) *OptionGroupOption { + s.Name = &v + return s +} + +// SetOptionGroupOptionSettings sets the OptionGroupOptionSettings field's value. +func (s *OptionGroupOption) SetOptionGroupOptionSettings(v []*OptionGroupOptionSetting) *OptionGroupOption { + s.OptionGroupOptionSettings = v + return s +} + +// SetOptionGroupOptionVersions sets the OptionGroupOptionVersions field's value. +func (s *OptionGroupOption) SetOptionGroupOptionVersions(v []*OptionVersion) *OptionGroupOption { + s.OptionGroupOptionVersions = v + return s +} + +// SetOptionsConflictsWith sets the OptionsConflictsWith field's value. +func (s *OptionGroupOption) SetOptionsConflictsWith(v []*string) *OptionGroupOption { + s.OptionsConflictsWith = v + return s +} + +// SetOptionsDependedOn sets the OptionsDependedOn field's value. +func (s *OptionGroupOption) SetOptionsDependedOn(v []*string) *OptionGroupOption { + s.OptionsDependedOn = v + return s +} + +// SetPermanent sets the Permanent field's value. +func (s *OptionGroupOption) SetPermanent(v bool) *OptionGroupOption { + s.Permanent = &v + return s +} + +// SetPersistent sets the Persistent field's value. +func (s *OptionGroupOption) SetPersistent(v bool) *OptionGroupOption { + s.Persistent = &v + return s +} + +// SetPortRequired sets the PortRequired field's value. +func (s *OptionGroupOption) SetPortRequired(v bool) *OptionGroupOption { + s.PortRequired = &v + return s +} + // Option group option settings are used to display settings available for each // option with their default values and other information. These values are // used with the DescribeOptionGroupOptions action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/OptionGroupOptionSetting type OptionGroupOptionSetting struct { _ struct{} `type:"structure"` @@ -16330,10 +21705,47 @@ func (s OptionGroupOptionSetting) GoString() string { return s.String() } +// SetAllowedValues sets the AllowedValues field's value. +func (s *OptionGroupOptionSetting) SetAllowedValues(v string) *OptionGroupOptionSetting { + s.AllowedValues = &v + return s +} + +// SetApplyType sets the ApplyType field's value. +func (s *OptionGroupOptionSetting) SetApplyType(v string) *OptionGroupOptionSetting { + s.ApplyType = &v + return s +} + +// SetDefaultValue sets the DefaultValue field's value. +func (s *OptionGroupOptionSetting) SetDefaultValue(v string) *OptionGroupOptionSetting { + s.DefaultValue = &v + return s +} + +// SetIsModifiable sets the IsModifiable field's value. +func (s *OptionGroupOptionSetting) SetIsModifiable(v bool) *OptionGroupOptionSetting { + s.IsModifiable = &v + return s +} + +// SetSettingDescription sets the SettingDescription field's value. +func (s *OptionGroupOptionSetting) SetSettingDescription(v string) *OptionGroupOptionSetting { + s.SettingDescription = &v + return s +} + +// SetSettingName sets the SettingName field's value. +func (s *OptionGroupOptionSetting) SetSettingName(v string) *OptionGroupOptionSetting { + s.SettingName = &v + return s +} + // Option settings are the actual settings being applied or configured for that // option. It is used when you modify an option group or describe option groups. // For example, the NATIVE_NETWORK_ENCRYPTION option has a setting called SQLNET.ENCRYPTION_SERVER // that can have several different values. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/OptionSetting type OptionSetting struct { _ struct{} `type:"structure"` @@ -16376,8 +21788,63 @@ func (s OptionSetting) GoString() string { return s.String() } +// SetAllowedValues sets the AllowedValues field's value. +func (s *OptionSetting) SetAllowedValues(v string) *OptionSetting { + s.AllowedValues = &v + return s +} + +// SetApplyType sets the ApplyType field's value. +func (s *OptionSetting) SetApplyType(v string) *OptionSetting { + s.ApplyType = &v + return s +} + +// SetDataType sets the DataType field's value. +func (s *OptionSetting) SetDataType(v string) *OptionSetting { + s.DataType = &v + return s +} + +// SetDefaultValue sets the DefaultValue field's value. +func (s *OptionSetting) SetDefaultValue(v string) *OptionSetting { + s.DefaultValue = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *OptionSetting) SetDescription(v string) *OptionSetting { + s.Description = &v + return s +} + +// SetIsCollection sets the IsCollection field's value. +func (s *OptionSetting) SetIsCollection(v bool) *OptionSetting { + s.IsCollection = &v + return s +} + +// SetIsModifiable sets the IsModifiable field's value. +func (s *OptionSetting) SetIsModifiable(v bool) *OptionSetting { + s.IsModifiable = &v + return s +} + +// SetName sets the Name field's value. +func (s *OptionSetting) SetName(v string) *OptionSetting { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *OptionSetting) SetValue(v string) *OptionSetting { + s.Value = &v + return s +} + // The version for an option. Option group option versions are returned by the // DescribeOptionGroupOptions action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/OptionVersion type OptionVersion struct { _ struct{} `type:"structure"` @@ -16398,10 +21865,23 @@ func (s OptionVersion) GoString() string { return s.String() } +// SetIsDefault sets the IsDefault field's value. +func (s *OptionVersion) SetIsDefault(v bool) *OptionVersion { + s.IsDefault = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *OptionVersion) SetVersion(v string) *OptionVersion { + s.Version = &v + return s +} + // Contains a list of available options for a DB instance // -// This data type is used as a response element in the DescribeOrderableDBInstanceOptions +// This data type is used as a response element in the DescribeOrderableDBInstanceOptions // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/OrderableDBInstanceOption type OrderableDBInstanceOption struct { _ struct{} `type:"structure"` @@ -16453,11 +21933,84 @@ func (s OrderableDBInstanceOption) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *OrderableDBInstanceOption) SetAvailabilityZones(v []*AvailabilityZone) *OrderableDBInstanceOption { + s.AvailabilityZones = v + return s +} + +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *OrderableDBInstanceOption) SetDBInstanceClass(v string) *OrderableDBInstanceOption { + s.DBInstanceClass = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *OrderableDBInstanceOption) SetEngine(v string) *OrderableDBInstanceOption { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *OrderableDBInstanceOption) SetEngineVersion(v string) *OrderableDBInstanceOption { + s.EngineVersion = &v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *OrderableDBInstanceOption) SetLicenseModel(v string) *OrderableDBInstanceOption { + s.LicenseModel = &v + return s +} + +// SetMultiAZCapable sets the MultiAZCapable field's value. +func (s *OrderableDBInstanceOption) SetMultiAZCapable(v bool) *OrderableDBInstanceOption { + s.MultiAZCapable = &v + return s +} + +// SetReadReplicaCapable sets the ReadReplicaCapable field's value. +func (s *OrderableDBInstanceOption) SetReadReplicaCapable(v bool) *OrderableDBInstanceOption { + s.ReadReplicaCapable = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *OrderableDBInstanceOption) SetStorageType(v string) *OrderableDBInstanceOption { + s.StorageType = &v + return s +} + +// SetSupportsEnhancedMonitoring sets the SupportsEnhancedMonitoring field's value. +func (s *OrderableDBInstanceOption) SetSupportsEnhancedMonitoring(v bool) *OrderableDBInstanceOption { + s.SupportsEnhancedMonitoring = &v + return s +} + +// SetSupportsIops sets the SupportsIops field's value. +func (s *OrderableDBInstanceOption) SetSupportsIops(v bool) *OrderableDBInstanceOption { + s.SupportsIops = &v + return s +} + +// SetSupportsStorageEncryption sets the SupportsStorageEncryption field's value. +func (s *OrderableDBInstanceOption) SetSupportsStorageEncryption(v bool) *OrderableDBInstanceOption { + s.SupportsStorageEncryption = &v + return s +} + +// SetVpc sets the Vpc field's value. +func (s *OrderableDBInstanceOption) SetVpc(v bool) *OrderableDBInstanceOption { + s.Vpc = &v + return s +} + // This data type is used as a request parameter in the ModifyDBParameterGroup // and ResetDBParameterGroup actions. // // This data type is used as a response element in the DescribeEngineDefaultParameters // and DescribeDBParameters actions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/Parameter type Parameter struct { _ struct{} `type:"structure"` @@ -16504,7 +22057,68 @@ func (s Parameter) GoString() string { return s.String() } +// SetAllowedValues sets the AllowedValues field's value. +func (s *Parameter) SetAllowedValues(v string) *Parameter { + s.AllowedValues = &v + return s +} + +// SetApplyMethod sets the ApplyMethod field's value. +func (s *Parameter) SetApplyMethod(v string) *Parameter { + s.ApplyMethod = &v + return s +} + +// SetApplyType sets the ApplyType field's value. +func (s *Parameter) SetApplyType(v string) *Parameter { + s.ApplyType = &v + return s +} + +// SetDataType sets the DataType field's value. +func (s *Parameter) SetDataType(v string) *Parameter { + s.DataType = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Parameter) SetDescription(v string) *Parameter { + s.Description = &v + return s +} + +// SetIsModifiable sets the IsModifiable field's value. +func (s *Parameter) SetIsModifiable(v bool) *Parameter { + s.IsModifiable = &v + return s +} + +// SetMinimumEngineVersion sets the MinimumEngineVersion field's value. +func (s *Parameter) SetMinimumEngineVersion(v string) *Parameter { + s.MinimumEngineVersion = &v + return s +} + +// SetParameterName sets the ParameterName field's value. +func (s *Parameter) SetParameterName(v string) *Parameter { + s.ParameterName = &v + return s +} + +// SetParameterValue sets the ParameterValue field's value. +func (s *Parameter) SetParameterValue(v string) *Parameter { + s.ParameterValue = &v + return s +} + +// SetSource sets the Source field's value. +func (s *Parameter) SetSource(v string) *Parameter { + s.Source = &v + return s +} + // Provides information about a pending maintenance action for a resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PendingMaintenanceAction type PendingMaintenanceAction struct { _ struct{} `type:"structure"` @@ -16547,7 +22161,44 @@ func (s PendingMaintenanceAction) GoString() string { return s.String() } +// SetAction sets the Action field's value. +func (s *PendingMaintenanceAction) SetAction(v string) *PendingMaintenanceAction { + s.Action = &v + return s +} + +// SetAutoAppliedAfterDate sets the AutoAppliedAfterDate field's value. +func (s *PendingMaintenanceAction) SetAutoAppliedAfterDate(v time.Time) *PendingMaintenanceAction { + s.AutoAppliedAfterDate = &v + return s +} + +// SetCurrentApplyDate sets the CurrentApplyDate field's value. +func (s *PendingMaintenanceAction) SetCurrentApplyDate(v time.Time) *PendingMaintenanceAction { + s.CurrentApplyDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *PendingMaintenanceAction) SetDescription(v string) *PendingMaintenanceAction { + s.Description = &v + return s +} + +// SetForcedApplyDate sets the ForcedApplyDate field's value. +func (s *PendingMaintenanceAction) SetForcedApplyDate(v time.Time) *PendingMaintenanceAction { + s.ForcedApplyDate = &v + return s +} + +// SetOptInStatus sets the OptInStatus field's value. +func (s *PendingMaintenanceAction) SetOptInStatus(v string) *PendingMaintenanceAction { + s.OptInStatus = &v + return s +} + // This data type is used as a response element in the ModifyDBInstance action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PendingModifiedValues type PendingModifiedValues struct { _ struct{} `type:"structure"` @@ -16608,6 +22259,85 @@ func (s PendingModifiedValues) GoString() string { return s.String() } +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *PendingModifiedValues) SetAllocatedStorage(v int64) *PendingModifiedValues { + s.AllocatedStorage = &v + return s +} + +// SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value. +func (s *PendingModifiedValues) SetBackupRetentionPeriod(v int64) *PendingModifiedValues { + s.BackupRetentionPeriod = &v + return s +} + +// SetCACertificateIdentifier sets the CACertificateIdentifier field's value. +func (s *PendingModifiedValues) SetCACertificateIdentifier(v string) *PendingModifiedValues { + s.CACertificateIdentifier = &v + return s +} + +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *PendingModifiedValues) SetDBInstanceClass(v string) *PendingModifiedValues { + s.DBInstanceClass = &v + return s +} + +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *PendingModifiedValues) SetDBInstanceIdentifier(v string) *PendingModifiedValues { + s.DBInstanceIdentifier = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *PendingModifiedValues) SetDBSubnetGroupName(v string) *PendingModifiedValues { + s.DBSubnetGroupName = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *PendingModifiedValues) SetEngineVersion(v string) *PendingModifiedValues { + s.EngineVersion = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *PendingModifiedValues) SetIops(v int64) *PendingModifiedValues { + s.Iops = &v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *PendingModifiedValues) SetLicenseModel(v string) *PendingModifiedValues { + s.LicenseModel = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *PendingModifiedValues) SetMasterUserPassword(v string) *PendingModifiedValues { + s.MasterUserPassword = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *PendingModifiedValues) SetMultiAZ(v bool) *PendingModifiedValues { + s.MultiAZ = &v + return s +} + +// SetPort sets the Port field's value. +func (s *PendingModifiedValues) SetPort(v int64) *PendingModifiedValues { + s.Port = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *PendingModifiedValues) SetStorageType(v string) *PendingModifiedValues { + s.StorageType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PromoteReadReplicaDBClusterMessage type PromoteReadReplicaDBClusterInput struct { _ struct{} `type:"structure"` @@ -16616,13 +22346,13 @@ type PromoteReadReplicaDBClusterInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Example: my-cluster-replica1 + // Example: my-cluster-replica1 // // DBClusterIdentifier is a required field DBClusterIdentifier *string `type:"string" required:"true"` @@ -16651,25 +22381,31 @@ func (s *PromoteReadReplicaDBClusterInput) Validate() error { return nil } +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *PromoteReadReplicaDBClusterInput) SetDBClusterIdentifier(v string) *PromoteReadReplicaDBClusterInput { + s.DBClusterIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PromoteReadReplicaDBClusterResult type PromoteReadReplicaDBClusterOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster + // * CreateDBCluster // - // DeleteDBCluster + // * DeleteDBCluster // - // FailoverDBCluster + // * FailoverDBCluster // - // ModifyDBCluster + // * ModifyDBCluster // - // RestoreDBClusterFromSnapshot + // * RestoreDBClusterFromSnapshot // - // RestoreDBClusterToPointInTime + // * RestoreDBClusterToPointInTime // - // This data type is used as a response element in the DescribeDBClusters - // action. + // This data type is used as a response element in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` } @@ -16683,6 +22419,13 @@ func (s PromoteReadReplicaDBClusterOutput) GoString() string { return s.String() } +// SetDBCluster sets the DBCluster field's value. +func (s *PromoteReadReplicaDBClusterOutput) SetDBCluster(v *DBCluster) *PromoteReadReplicaDBClusterOutput { + s.DBCluster = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PromoteReadReplicaMessage type PromoteReadReplicaInput struct { _ struct{} `type:"structure"` @@ -16694,22 +22437,22 @@ type PromoteReadReplicaInput struct { // // Constraints: // - // Must be a value from 0 to 8 + // * Must be a value from 0 to 8 BackupRetentionPeriod *int64 `type:"integer"` // The DB instance identifier. This value is stored as a lowercase string. // // Constraints: // - // Must be the identifier for an existing Read Replica DB instance + // * Must be the identifier for an existing Read Replica DB instance // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: mydbinstance + // Example: mydbinstance // // DBInstanceIdentifier is a required field DBInstanceIdentifier *string `type:"string" required:"true"` @@ -16717,20 +22460,20 @@ type PromoteReadReplicaInput struct { // The daily time range during which automated backups are created if automated // backups are enabled, using the BackupRetentionPeriod parameter. // - // Default: A 30-minute window selected at random from an 8-hour block of - // time per region. To see the time blocks available, see Adjusting the Preferred + // Default: A 30-minute window selected at random from an 8-hour block of time + // per region. To see the time blocks available, see Adjusting the Preferred // Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html) // in the Amazon RDS User Guide. // // Constraints: // - // Must be in the format hh24:mi-hh24:mi. + // * Must be in the format hh24:mi-hh24:mi. // - // Times should be in Universal Coordinated Time (UTC). + // * Times should be in Universal Coordinated Time (UTC). // - // Must not conflict with the preferred maintenance window. + // * Must not conflict with the preferred maintenance window. // - // Must be at least 30 minutes. + // * Must be at least 30 minutes. PreferredBackupWindow *string `type:"string"` } @@ -16757,19 +22500,37 @@ func (s *PromoteReadReplicaInput) Validate() error { return nil } +// SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value. +func (s *PromoteReadReplicaInput) SetBackupRetentionPeriod(v int64) *PromoteReadReplicaInput { + s.BackupRetentionPeriod = &v + return s +} + +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *PromoteReadReplicaInput) SetDBInstanceIdentifier(v string) *PromoteReadReplicaInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *PromoteReadReplicaInput) SetPreferredBackupWindow(v string) *PromoteReadReplicaInput { + s.PreferredBackupWindow = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PromoteReadReplicaResult type PromoteReadReplicaOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance + // * CreateDBInstance // - // DeleteDBInstance + // * DeleteDBInstance // - // ModifyDBInstance + // * ModifyDBInstance // - // This data type is used as a response element in the DescribeDBInstances - // action. + // This data type is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` } @@ -16783,6 +22544,13 @@ func (s PromoteReadReplicaOutput) GoString() string { return s.String() } +// SetDBInstance sets the DBInstance field's value. +func (s *PromoteReadReplicaOutput) SetDBInstance(v *DBInstance) *PromoteReadReplicaOutput { + s.DBInstance = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PurchaseReservedDBInstancesOfferingMessage type PurchaseReservedDBInstancesOfferingInput struct { _ struct{} `type:"structure"` @@ -16830,6 +22598,31 @@ func (s *PurchaseReservedDBInstancesOfferingInput) Validate() error { return nil } +// SetDBInstanceCount sets the DBInstanceCount field's value. +func (s *PurchaseReservedDBInstancesOfferingInput) SetDBInstanceCount(v int64) *PurchaseReservedDBInstancesOfferingInput { + s.DBInstanceCount = &v + return s +} + +// SetReservedDBInstanceId sets the ReservedDBInstanceId field's value. +func (s *PurchaseReservedDBInstancesOfferingInput) SetReservedDBInstanceId(v string) *PurchaseReservedDBInstancesOfferingInput { + s.ReservedDBInstanceId = &v + return s +} + +// SetReservedDBInstancesOfferingId sets the ReservedDBInstancesOfferingId field's value. +func (s *PurchaseReservedDBInstancesOfferingInput) SetReservedDBInstancesOfferingId(v string) *PurchaseReservedDBInstancesOfferingInput { + s.ReservedDBInstancesOfferingId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *PurchaseReservedDBInstancesOfferingInput) SetTags(v []*Tag) *PurchaseReservedDBInstancesOfferingInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PurchaseReservedDBInstancesOfferingResult type PurchaseReservedDBInstancesOfferingOutput struct { _ struct{} `type:"structure"` @@ -16848,6 +22641,13 @@ func (s PurchaseReservedDBInstancesOfferingOutput) GoString() string { return s.String() } +// SetReservedDBInstance sets the ReservedDBInstance field's value. +func (s *PurchaseReservedDBInstancesOfferingOutput) SetReservedDBInstance(v *ReservedDBInstance) *PurchaseReservedDBInstancesOfferingOutput { + s.ReservedDBInstance = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RebootDBInstanceMessage type RebootDBInstanceInput struct { _ struct{} `type:"structure"` @@ -16855,11 +22655,11 @@ type RebootDBInstanceInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBInstanceIdentifier is a required field DBInstanceIdentifier *string `type:"string" required:"true"` @@ -16894,19 +22694,31 @@ func (s *RebootDBInstanceInput) Validate() error { return nil } +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *RebootDBInstanceInput) SetDBInstanceIdentifier(v string) *RebootDBInstanceInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetForceFailover sets the ForceFailover field's value. +func (s *RebootDBInstanceInput) SetForceFailover(v bool) *RebootDBInstanceInput { + s.ForceFailover = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RebootDBInstanceResult type RebootDBInstanceOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance + // * CreateDBInstance // - // DeleteDBInstance + // * DeleteDBInstance // - // ModifyDBInstance + // * ModifyDBInstance // - // This data type is used as a response element in the DescribeDBInstances - // action. + // This data type is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` } @@ -16920,8 +22732,15 @@ func (s RebootDBInstanceOutput) GoString() string { return s.String() } +// SetDBInstance sets the DBInstance field's value. +func (s *RebootDBInstanceOutput) SetDBInstance(v *DBInstance) *RebootDBInstanceOutput { + s.DBInstance = v + return s +} + // This data type is used as a response element in the DescribeReservedDBInstances // and DescribeReservedDBInstancesOfferings actions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RecurringCharge type RecurringCharge struct { _ struct{} `type:"structure"` @@ -16942,6 +22761,19 @@ func (s RecurringCharge) GoString() string { return s.String() } +// SetRecurringChargeAmount sets the RecurringChargeAmount field's value. +func (s *RecurringCharge) SetRecurringChargeAmount(v float64) *RecurringCharge { + s.RecurringChargeAmount = &v + return s +} + +// SetRecurringChargeFrequency sets the RecurringChargeFrequency field's value. +func (s *RecurringCharge) SetRecurringChargeFrequency(v string) *RecurringCharge { + s.RecurringChargeFrequency = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveRoleFromDBClusterMessage type RemoveRoleFromDBClusterInput struct { _ struct{} `type:"structure"` @@ -16983,6 +22815,19 @@ func (s *RemoveRoleFromDBClusterInput) Validate() error { return nil } +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *RemoveRoleFromDBClusterInput) SetDBClusterIdentifier(v string) *RemoveRoleFromDBClusterInput { + s.DBClusterIdentifier = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *RemoveRoleFromDBClusterInput) SetRoleArn(v string) *RemoveRoleFromDBClusterInput { + s.RoleArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveRoleFromDBClusterOutput type RemoveRoleFromDBClusterOutput struct { _ struct{} `type:"structure"` } @@ -16997,6 +22842,7 @@ func (s RemoveRoleFromDBClusterOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveSourceIdentifierFromSubscriptionMessage type RemoveSourceIdentifierFromSubscriptionInput struct { _ struct{} `type:"structure"` @@ -17039,6 +22885,19 @@ func (s *RemoveSourceIdentifierFromSubscriptionInput) Validate() error { return nil } +// SetSourceIdentifier sets the SourceIdentifier field's value. +func (s *RemoveSourceIdentifierFromSubscriptionInput) SetSourceIdentifier(v string) *RemoveSourceIdentifierFromSubscriptionInput { + s.SourceIdentifier = &v + return s +} + +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *RemoveSourceIdentifierFromSubscriptionInput) SetSubscriptionName(v string) *RemoveSourceIdentifierFromSubscriptionInput { + s.SubscriptionName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveSourceIdentifierFromSubscriptionResult type RemoveSourceIdentifierFromSubscriptionOutput struct { _ struct{} `type:"structure"` @@ -17057,6 +22916,13 @@ func (s RemoveSourceIdentifierFromSubscriptionOutput) GoString() string { return s.String() } +// SetEventSubscription sets the EventSubscription field's value. +func (s *RemoveSourceIdentifierFromSubscriptionOutput) SetEventSubscription(v *EventSubscription) *RemoveSourceIdentifierFromSubscriptionOutput { + s.EventSubscription = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveTagsFromResourceMessage type RemoveTagsFromResourceInput struct { _ struct{} `type:"structure"` @@ -17099,6 +22965,19 @@ func (s *RemoveTagsFromResourceInput) Validate() error { return nil } +// SetResourceName sets the ResourceName field's value. +func (s *RemoveTagsFromResourceInput) SetResourceName(v string) *RemoveTagsFromResourceInput { + s.ResourceName = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsFromResourceInput) SetTagKeys(v []*string) *RemoveTagsFromResourceInput { + s.TagKeys = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveTagsFromResourceOutput type RemoveTagsFromResourceOutput struct { _ struct{} `type:"structure"` } @@ -17115,6 +22994,7 @@ func (s RemoveTagsFromResourceOutput) GoString() string { // This data type is used as a response element in the DescribeReservedDBInstances // and PurchaseReservedDBInstancesOffering actions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ReservedDBInstance type ReservedDBInstance struct { _ struct{} `type:"structure"` @@ -17174,8 +23054,99 @@ func (s ReservedDBInstance) GoString() string { return s.String() } +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *ReservedDBInstance) SetCurrencyCode(v string) *ReservedDBInstance { + s.CurrencyCode = &v + return s +} + +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *ReservedDBInstance) SetDBInstanceClass(v string) *ReservedDBInstance { + s.DBInstanceClass = &v + return s +} + +// SetDBInstanceCount sets the DBInstanceCount field's value. +func (s *ReservedDBInstance) SetDBInstanceCount(v int64) *ReservedDBInstance { + s.DBInstanceCount = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *ReservedDBInstance) SetDuration(v int64) *ReservedDBInstance { + s.Duration = &v + return s +} + +// SetFixedPrice sets the FixedPrice field's value. +func (s *ReservedDBInstance) SetFixedPrice(v float64) *ReservedDBInstance { + s.FixedPrice = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *ReservedDBInstance) SetMultiAZ(v bool) *ReservedDBInstance { + s.MultiAZ = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *ReservedDBInstance) SetOfferingType(v string) *ReservedDBInstance { + s.OfferingType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *ReservedDBInstance) SetProductDescription(v string) *ReservedDBInstance { + s.ProductDescription = &v + return s +} + +// SetRecurringCharges sets the RecurringCharges field's value. +func (s *ReservedDBInstance) SetRecurringCharges(v []*RecurringCharge) *ReservedDBInstance { + s.RecurringCharges = v + return s +} + +// SetReservedDBInstanceArn sets the ReservedDBInstanceArn field's value. +func (s *ReservedDBInstance) SetReservedDBInstanceArn(v string) *ReservedDBInstance { + s.ReservedDBInstanceArn = &v + return s +} + +// SetReservedDBInstanceId sets the ReservedDBInstanceId field's value. +func (s *ReservedDBInstance) SetReservedDBInstanceId(v string) *ReservedDBInstance { + s.ReservedDBInstanceId = &v + return s +} + +// SetReservedDBInstancesOfferingId sets the ReservedDBInstancesOfferingId field's value. +func (s *ReservedDBInstance) SetReservedDBInstancesOfferingId(v string) *ReservedDBInstance { + s.ReservedDBInstancesOfferingId = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *ReservedDBInstance) SetStartTime(v time.Time) *ReservedDBInstance { + s.StartTime = &v + return s +} + +// SetState sets the State field's value. +func (s *ReservedDBInstance) SetState(v string) *ReservedDBInstance { + s.State = &v + return s +} + +// SetUsagePrice sets the UsagePrice field's value. +func (s *ReservedDBInstance) SetUsagePrice(v float64) *ReservedDBInstance { + s.UsagePrice = &v + return s +} + // This data type is used as a response element in the DescribeReservedDBInstancesOfferings // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ReservedDBInstancesOffering type ReservedDBInstancesOffering struct { _ struct{} `type:"structure"` @@ -17220,6 +23191,67 @@ func (s ReservedDBInstancesOffering) GoString() string { return s.String() } +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *ReservedDBInstancesOffering) SetCurrencyCode(v string) *ReservedDBInstancesOffering { + s.CurrencyCode = &v + return s +} + +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *ReservedDBInstancesOffering) SetDBInstanceClass(v string) *ReservedDBInstancesOffering { + s.DBInstanceClass = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *ReservedDBInstancesOffering) SetDuration(v int64) *ReservedDBInstancesOffering { + s.Duration = &v + return s +} + +// SetFixedPrice sets the FixedPrice field's value. +func (s *ReservedDBInstancesOffering) SetFixedPrice(v float64) *ReservedDBInstancesOffering { + s.FixedPrice = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *ReservedDBInstancesOffering) SetMultiAZ(v bool) *ReservedDBInstancesOffering { + s.MultiAZ = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *ReservedDBInstancesOffering) SetOfferingType(v string) *ReservedDBInstancesOffering { + s.OfferingType = &v + return s +} + +// SetProductDescription sets the ProductDescription field's value. +func (s *ReservedDBInstancesOffering) SetProductDescription(v string) *ReservedDBInstancesOffering { + s.ProductDescription = &v + return s +} + +// SetRecurringCharges sets the RecurringCharges field's value. +func (s *ReservedDBInstancesOffering) SetRecurringCharges(v []*RecurringCharge) *ReservedDBInstancesOffering { + s.RecurringCharges = v + return s +} + +// SetReservedDBInstancesOfferingId sets the ReservedDBInstancesOfferingId field's value. +func (s *ReservedDBInstancesOffering) SetReservedDBInstancesOfferingId(v string) *ReservedDBInstancesOffering { + s.ReservedDBInstancesOfferingId = &v + return s +} + +// SetUsagePrice sets the UsagePrice field's value. +func (s *ReservedDBInstancesOffering) SetUsagePrice(v float64) *ReservedDBInstancesOffering { + s.UsagePrice = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ResetDBClusterParameterGroupMessage type ResetDBClusterParameterGroupInput struct { _ struct{} `type:"structure"` @@ -17262,6 +23294,25 @@ func (s *ResetDBClusterParameterGroupInput) Validate() error { return nil } +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *ResetDBClusterParameterGroupInput) SetDBClusterParameterGroupName(v string) *ResetDBClusterParameterGroupInput { + s.DBClusterParameterGroupName = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *ResetDBClusterParameterGroupInput) SetParameters(v []*Parameter) *ResetDBClusterParameterGroupInput { + s.Parameters = v + return s +} + +// SetResetAllParameters sets the ResetAllParameters field's value. +func (s *ResetDBClusterParameterGroupInput) SetResetAllParameters(v bool) *ResetDBClusterParameterGroupInput { + s.ResetAllParameters = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ResetDBParameterGroupMessage type ResetDBParameterGroupInput struct { _ struct{} `type:"structure"` @@ -17269,11 +23320,11 @@ type ResetDBParameterGroupInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBParameterGroupName is a required field DBParameterGroupName *string `type:"string" required:"true"` @@ -17283,7 +23334,7 @@ type ResetDBParameterGroupInput struct { // subsequent arguments are optional. A maximum of 20 parameters can be modified // in a single request. // - // MySQL + // MySQL // // Valid Values (for Apply method): immediate | pending-reboot // @@ -17291,7 +23342,7 @@ type ResetDBParameterGroupInput struct { // the pending-reboot value for both dynamic and static parameters, and changes // are applied when DB instance reboots. // - // MariaDB + // MariaDB // // Valid Values (for Apply method): immediate | pending-reboot // @@ -17299,7 +23350,7 @@ type ResetDBParameterGroupInput struct { // the pending-reboot value for both dynamic and static parameters, and changes // are applied when DB instance reboots. // - // Oracle + // Oracle // // Valid Values (for Apply method): pending-reboot Parameters []*Parameter `locationNameList:"Parameter" type:"list"` @@ -17334,7 +23385,26 @@ func (s *ResetDBParameterGroupInput) Validate() error { return nil } +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *ResetDBParameterGroupInput) SetDBParameterGroupName(v string) *ResetDBParameterGroupInput { + s.DBParameterGroupName = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *ResetDBParameterGroupInput) SetParameters(v []*Parameter) *ResetDBParameterGroupInput { + s.Parameters = v + return s +} + +// SetResetAllParameters sets the ResetAllParameters field's value. +func (s *ResetDBParameterGroupInput) SetResetAllParameters(v bool) *ResetDBParameterGroupInput { + s.ResetAllParameters = &v + return s +} + // Describes the pending maintenance actions for a resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ResourcePendingMaintenanceActions type ResourcePendingMaintenanceActions struct { _ struct{} `type:"structure"` @@ -17356,6 +23426,19 @@ func (s ResourcePendingMaintenanceActions) GoString() string { return s.String() } +// SetPendingMaintenanceActionDetails sets the PendingMaintenanceActionDetails field's value. +func (s *ResourcePendingMaintenanceActions) SetPendingMaintenanceActionDetails(v []*PendingMaintenanceAction) *ResourcePendingMaintenanceActions { + s.PendingMaintenanceActionDetails = v + return s +} + +// SetResourceIdentifier sets the ResourceIdentifier field's value. +func (s *ResourcePendingMaintenanceActions) SetResourceIdentifier(v string) *ResourcePendingMaintenanceActions { + s.ResourceIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBClusterFromS3Message type RestoreDBClusterFromS3Input struct { _ struct{} `type:"structure"` @@ -17370,7 +23453,7 @@ type RestoreDBClusterFromS3Input struct { // // Constraints: // - // Must be a value from 1 to 35 + // * Must be a value from 1 to 35 BackupRetentionPeriod *int64 `type:"integer"` // A value that indicates that the restored DB cluster should be associated @@ -17382,13 +23465,13 @@ type RestoreDBClusterFromS3Input struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Example: my-cluster1 + // Example: my-cluster1 // // DBClusterIdentifier is a required field DBClusterIdentifier *string `type:"string" required:"true"` @@ -17398,11 +23481,11 @@ type RestoreDBClusterFromS3Input struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens DBClusterParameterGroupName *string `type:"string"` // A DB subnet group to associate with the restored DB cluster. @@ -17425,7 +23508,7 @@ type RestoreDBClusterFromS3Input struct { // The version number of the database engine to use. // - // Aurora + // Aurora // // Example: 5.6.10a EngineVersion *string `type:"string"` @@ -17455,11 +23538,11 @@ type RestoreDBClusterFromS3Input struct { // // Constraints: // - // Must be 1 to 16 alphanumeric characters. + // * Must be 1 to 16 alphanumeric characters. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot be a reserved word for the chosen database engine. + // * Cannot be a reserved word for the chosen database engine. // // MasterUsername is a required field MasterUsername *string `type:"string" required:"true"` @@ -17474,7 +23557,7 @@ type RestoreDBClusterFromS3Input struct { // The port number on which the instances in the restored DB cluster accept // connections. // - // Default: 3306 + // Default: 3306 Port *int64 `type:"integer"` // The daily time range during which automated backups are created if automated @@ -17487,19 +23570,19 @@ type RestoreDBClusterFromS3Input struct { // // Constraints: // - // Must be in the format hh24:mi-hh24:mi. + // * Must be in the format hh24:mi-hh24:mi. // - // Times should be in Universal Coordinated Time (UTC). + // * Times should be in Universal Coordinated Time (UTC). // - // Must not conflict with the preferred maintenance window. + // * Must not conflict with the preferred maintenance window. // - // Must be at least 30 minutes. + // * Must be at least 30 minutes. PreferredBackupWindow *string `type:"string"` // The weekly time range during which system maintenance can occur, in Universal // Coordinated Time (UTC). // - // Format: ddd:hh24:mi-ddd:hh24:mi + // Format: ddd:hh24:mi-ddd:hh24:mi // // Default: A 30-minute window selected at random from an 8-hour block of time // per region, occurring on a random day of the week. To see the time blocks @@ -17601,25 +23684,169 @@ func (s *RestoreDBClusterFromS3Input) Validate() error { return nil } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *RestoreDBClusterFromS3Input) SetAvailabilityZones(v []*string) *RestoreDBClusterFromS3Input { + s.AvailabilityZones = v + return s +} + +// SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value. +func (s *RestoreDBClusterFromS3Input) SetBackupRetentionPeriod(v int64) *RestoreDBClusterFromS3Input { + s.BackupRetentionPeriod = &v + return s +} + +// SetCharacterSetName sets the CharacterSetName field's value. +func (s *RestoreDBClusterFromS3Input) SetCharacterSetName(v string) *RestoreDBClusterFromS3Input { + s.CharacterSetName = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *RestoreDBClusterFromS3Input) SetDBClusterIdentifier(v string) *RestoreDBClusterFromS3Input { + s.DBClusterIdentifier = &v + return s +} + +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *RestoreDBClusterFromS3Input) SetDBClusterParameterGroupName(v string) *RestoreDBClusterFromS3Input { + s.DBClusterParameterGroupName = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *RestoreDBClusterFromS3Input) SetDBSubnetGroupName(v string) *RestoreDBClusterFromS3Input { + s.DBSubnetGroupName = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *RestoreDBClusterFromS3Input) SetDatabaseName(v string) *RestoreDBClusterFromS3Input { + s.DatabaseName = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *RestoreDBClusterFromS3Input) SetEngine(v string) *RestoreDBClusterFromS3Input { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *RestoreDBClusterFromS3Input) SetEngineVersion(v string) *RestoreDBClusterFromS3Input { + s.EngineVersion = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *RestoreDBClusterFromS3Input) SetKmsKeyId(v string) *RestoreDBClusterFromS3Input { + s.KmsKeyId = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *RestoreDBClusterFromS3Input) SetMasterUserPassword(v string) *RestoreDBClusterFromS3Input { + s.MasterUserPassword = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *RestoreDBClusterFromS3Input) SetMasterUsername(v string) *RestoreDBClusterFromS3Input { + s.MasterUsername = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *RestoreDBClusterFromS3Input) SetOptionGroupName(v string) *RestoreDBClusterFromS3Input { + s.OptionGroupName = &v + return s +} + +// SetPort sets the Port field's value. +func (s *RestoreDBClusterFromS3Input) SetPort(v int64) *RestoreDBClusterFromS3Input { + s.Port = &v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *RestoreDBClusterFromS3Input) SetPreferredBackupWindow(v string) *RestoreDBClusterFromS3Input { + s.PreferredBackupWindow = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *RestoreDBClusterFromS3Input) SetPreferredMaintenanceWindow(v string) *RestoreDBClusterFromS3Input { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetS3BucketName sets the S3BucketName field's value. +func (s *RestoreDBClusterFromS3Input) SetS3BucketName(v string) *RestoreDBClusterFromS3Input { + s.S3BucketName = &v + return s +} + +// SetS3IngestionRoleArn sets the S3IngestionRoleArn field's value. +func (s *RestoreDBClusterFromS3Input) SetS3IngestionRoleArn(v string) *RestoreDBClusterFromS3Input { + s.S3IngestionRoleArn = &v + return s +} + +// SetS3Prefix sets the S3Prefix field's value. +func (s *RestoreDBClusterFromS3Input) SetS3Prefix(v string) *RestoreDBClusterFromS3Input { + s.S3Prefix = &v + return s +} + +// SetSourceEngine sets the SourceEngine field's value. +func (s *RestoreDBClusterFromS3Input) SetSourceEngine(v string) *RestoreDBClusterFromS3Input { + s.SourceEngine = &v + return s +} + +// SetSourceEngineVersion sets the SourceEngineVersion field's value. +func (s *RestoreDBClusterFromS3Input) SetSourceEngineVersion(v string) *RestoreDBClusterFromS3Input { + s.SourceEngineVersion = &v + return s +} + +// SetStorageEncrypted sets the StorageEncrypted field's value. +func (s *RestoreDBClusterFromS3Input) SetStorageEncrypted(v bool) *RestoreDBClusterFromS3Input { + s.StorageEncrypted = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *RestoreDBClusterFromS3Input) SetTags(v []*Tag) *RestoreDBClusterFromS3Input { + s.Tags = v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *RestoreDBClusterFromS3Input) SetVpcSecurityGroupIds(v []*string) *RestoreDBClusterFromS3Input { + s.VpcSecurityGroupIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBClusterFromS3Result type RestoreDBClusterFromS3Output struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster + // * CreateDBCluster // - // DeleteDBCluster + // * DeleteDBCluster // - // FailoverDBCluster + // * FailoverDBCluster // - // ModifyDBCluster + // * ModifyDBCluster // - // RestoreDBClusterFromSnapshot + // * RestoreDBClusterFromSnapshot // - // RestoreDBClusterToPointInTime + // * RestoreDBClusterToPointInTime // - // This data type is used as a response element in the DescribeDBClusters - // action. + // This data type is used as a response element in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` } @@ -17633,6 +23860,13 @@ func (s RestoreDBClusterFromS3Output) GoString() string { return s.String() } +// SetDBCluster sets the DBCluster field's value. +func (s *RestoreDBClusterFromS3Output) SetDBCluster(v *DBCluster) *RestoreDBClusterFromS3Output { + s.DBCluster = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBClusterFromSnapshotMessage type RestoreDBClusterFromSnapshotInput struct { _ struct{} `type:"structure"` @@ -17645,13 +23879,13 @@ type RestoreDBClusterFromSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 255 alphanumeric characters or hyphens + // * Must contain from 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: my-snapshot-id + // Example: my-snapshot-id // // DBClusterIdentifier is a required field DBClusterIdentifier *string `type:"string" required:"true"` @@ -17690,11 +23924,12 @@ type RestoreDBClusterFromSnapshotInput struct { // If you do not specify a value for the KmsKeyId parameter, then the following // will occur: // - // If the DB cluster snapshot is encrypted, then the restored DB cluster - // is encrypted using the KMS key that was used to encrypt the DB cluster snapshot. + // * If the DB cluster snapshot is encrypted, then the restored DB cluster + // is encrypted using the KMS key that was used to encrypt the DB cluster + // snapshot. // - // If the DB cluster snapshot is not encrypted, then the restored DB cluster - // is encrypted using the specified encryption key. + // * If the DB cluster snapshot is not encrypted, then the restored DB cluster + // is encrypted using the specified encryption key. KmsKeyId *string `type:"string"` // The name of the option group to use for the restored DB cluster. @@ -17711,11 +23946,11 @@ type RestoreDBClusterFromSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // SnapshotIdentifier is a required field SnapshotIdentifier *string `type:"string" required:"true"` @@ -17756,25 +23991,97 @@ func (s *RestoreDBClusterFromSnapshotInput) Validate() error { return nil } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetAvailabilityZones(v []*string) *RestoreDBClusterFromSnapshotInput { + s.AvailabilityZones = v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetDBClusterIdentifier(v string) *RestoreDBClusterFromSnapshotInput { + s.DBClusterIdentifier = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetDBSubnetGroupName(v string) *RestoreDBClusterFromSnapshotInput { + s.DBSubnetGroupName = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetDatabaseName(v string) *RestoreDBClusterFromSnapshotInput { + s.DatabaseName = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetEngine(v string) *RestoreDBClusterFromSnapshotInput { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetEngineVersion(v string) *RestoreDBClusterFromSnapshotInput { + s.EngineVersion = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetKmsKeyId(v string) *RestoreDBClusterFromSnapshotInput { + s.KmsKeyId = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetOptionGroupName(v string) *RestoreDBClusterFromSnapshotInput { + s.OptionGroupName = &v + return s +} + +// SetPort sets the Port field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetPort(v int64) *RestoreDBClusterFromSnapshotInput { + s.Port = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetSnapshotIdentifier(v string) *RestoreDBClusterFromSnapshotInput { + s.SnapshotIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetTags(v []*Tag) *RestoreDBClusterFromSnapshotInput { + s.Tags = v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetVpcSecurityGroupIds(v []*string) *RestoreDBClusterFromSnapshotInput { + s.VpcSecurityGroupIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBClusterFromSnapshotResult type RestoreDBClusterFromSnapshotOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster + // * CreateDBCluster // - // DeleteDBCluster + // * DeleteDBCluster // - // FailoverDBCluster + // * FailoverDBCluster // - // ModifyDBCluster + // * ModifyDBCluster // - // RestoreDBClusterFromSnapshot + // * RestoreDBClusterFromSnapshot // - // RestoreDBClusterToPointInTime + // * RestoreDBClusterToPointInTime // - // This data type is used as a response element in the DescribeDBClusters - // action. + // This data type is used as a response element in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` } @@ -17788,6 +24095,13 @@ func (s RestoreDBClusterFromSnapshotOutput) GoString() string { return s.String() } +// SetDBCluster sets the DBCluster field's value. +func (s *RestoreDBClusterFromSnapshotOutput) SetDBCluster(v *DBCluster) *RestoreDBClusterFromSnapshotOutput { + s.DBCluster = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBClusterToPointInTimeMessage type RestoreDBClusterToPointInTimeInput struct { _ struct{} `type:"structure"` @@ -17795,11 +24109,11 @@ type RestoreDBClusterToPointInTimeInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // DBClusterIdentifier is a required field DBClusterIdentifier *string `type:"string" required:"true"` @@ -17820,22 +24134,22 @@ type RestoreDBClusterToPointInTimeInput struct { // the KMS encryption key used to encrypt the new DB cluster, then you can use // the KMS key alias instead of the ARN for the KMS encryption key. // - // You can restore to a new DB cluster and encrypt the new DB cluster with - // a KMS key that is different than the KMS key used to encrypt the source DB + // You can restore to a new DB cluster and encrypt the new DB cluster with a + // KMS key that is different than the KMS key used to encrypt the source DB // cluster. The new DB cluster will be encrypted with the KMS key identified // by the KmsKeyId parameter. // // If you do not specify a value for the KmsKeyId parameter, then the following // will occur: // - // If the DB cluster is encrypted, then the restored DB cluster is encrypted - // using the KMS key that was used to encrypt the source DB cluster. + // * If the DB cluster is encrypted, then the restored DB cluster is encrypted + // using the KMS key that was used to encrypt the source DB cluster. // - // If the DB cluster is not encrypted, then the restored DB cluster is not - // encrypted. + // * If the DB cluster is not encrypted, then the restored DB cluster is + // not encrypted. // - // If DBClusterIdentifier refers to a DB cluster that is note encrypted, - // then the restore request is rejected. + // If DBClusterIdentifier refers to a DB cluster that is note encrypted, then + // the restore request is rejected. KmsKeyId *string `type:"string"` // The name of the option group for the new DB cluster. @@ -17854,24 +24168,24 @@ type RestoreDBClusterToPointInTimeInput struct { // // Constraints: // - // Must be before the latest restorable time for the DB instance + // * Must be before the latest restorable time for the DB instance // - // Cannot be specified if UseLatestRestorableTime parameter is true + // * Cannot be specified if UseLatestRestorableTime parameter is true // - // Example: 2015-03-07T23:45:00Z + // Example: 2015-03-07T23:45:00Z RestoreToTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The identifier of the source DB cluster from which to restore. // // Constraints: // - // Must be the identifier of an existing database instance + // * Must be the identifier of an existing database instance // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // SourceDBClusterIdentifier is a required field SourceDBClusterIdentifier *string `type:"string" required:"true"` @@ -17917,25 +24231,85 @@ func (s *RestoreDBClusterToPointInTimeInput) Validate() error { return nil } +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetDBClusterIdentifier(v string) *RestoreDBClusterToPointInTimeInput { + s.DBClusterIdentifier = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetDBSubnetGroupName(v string) *RestoreDBClusterToPointInTimeInput { + s.DBSubnetGroupName = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetKmsKeyId(v string) *RestoreDBClusterToPointInTimeInput { + s.KmsKeyId = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetOptionGroupName(v string) *RestoreDBClusterToPointInTimeInput { + s.OptionGroupName = &v + return s +} + +// SetPort sets the Port field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetPort(v int64) *RestoreDBClusterToPointInTimeInput { + s.Port = &v + return s +} + +// SetRestoreToTime sets the RestoreToTime field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetRestoreToTime(v time.Time) *RestoreDBClusterToPointInTimeInput { + s.RestoreToTime = &v + return s +} + +// SetSourceDBClusterIdentifier sets the SourceDBClusterIdentifier field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetSourceDBClusterIdentifier(v string) *RestoreDBClusterToPointInTimeInput { + s.SourceDBClusterIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetTags(v []*Tag) *RestoreDBClusterToPointInTimeInput { + s.Tags = v + return s +} + +// SetUseLatestRestorableTime sets the UseLatestRestorableTime field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetUseLatestRestorableTime(v bool) *RestoreDBClusterToPointInTimeInput { + s.UseLatestRestorableTime = &v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetVpcSecurityGroupIds(v []*string) *RestoreDBClusterToPointInTimeInput { + s.VpcSecurityGroupIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBClusterToPointInTimeResult type RestoreDBClusterToPointInTimeOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster + // * CreateDBCluster // - // DeleteDBCluster + // * DeleteDBCluster // - // FailoverDBCluster + // * FailoverDBCluster // - // ModifyDBCluster + // * ModifyDBCluster // - // RestoreDBClusterFromSnapshot + // * RestoreDBClusterFromSnapshot // - // RestoreDBClusterToPointInTime + // * RestoreDBClusterToPointInTime // - // This data type is used as a response element in the DescribeDBClusters - // action. + // This data type is used as a response element in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` } @@ -17949,6 +24323,13 @@ func (s RestoreDBClusterToPointInTimeOutput) GoString() string { return s.String() } +// SetDBCluster sets the DBCluster field's value. +func (s *RestoreDBClusterToPointInTimeOutput) SetDBCluster(v *DBCluster) *RestoreDBClusterToPointInTimeOutput { + s.DBCluster = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBInstanceFromDBSnapshotMessage type RestoreDBInstanceFromDBSnapshotInput struct { _ struct{} `type:"structure"` @@ -17984,34 +24365,34 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 - // for SQL Server) + // * Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 + // for SQL Server) // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: my-snapshot-id + // Example: my-snapshot-id // // DBInstanceIdentifier is a required field DBInstanceIdentifier *string `type:"string" required:"true"` // The database name for the restored DB instance. // - // This parameter doesn't apply to the MySQL, PostgreSQL, or MariaDB engines. + // This parameter doesn't apply to the MySQL, PostgreSQL, or MariaDB engines. DBName *string `type:"string"` // The identifier for the DB snapshot to restore from. // // Constraints: // - // Must contain from 1 to 255 alphanumeric characters or hyphens + // * Must contain from 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // If you are restoring from a shared manual DB snapshot, the DBSnapshotIdentifier + // If you are restoring from a shared manual DB snapshot, the DBSnapshotIdentifier // must be the ARN of the shared DB snapshot. // // DBSnapshotIdentifier is a required field @@ -18036,9 +24417,10 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // // Default: The same as source // - // Constraint: Must be compatible with the engine of the source + // Constraint: Must be compatible with the engine of the source. You can restore + // a MariaDB 10.1 DB instance from a MySQL 5.6 snapshot. // - // Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee + // Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee // | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | aurora Engine *string `type:"string"` @@ -18051,7 +24433,7 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // // Constraints: Must be an integer greater than 1000. // - // SQL Server + // SQL Server // // Setting the IOPS value for the SQL Server database engine is not supported. Iops *int64 `type:"integer"` @@ -18060,7 +24442,7 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // // Default: Same as source. // - // Valid values: license-included | bring-your-own-license | general-public-license + // Valid values: license-included | bring-your-own-license | general-public-license LicenseModel *string `type:"string"` // Specifies if the DB instance is a Multi-AZ deployment. @@ -18091,24 +24473,23 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // Default: The default behavior varies depending on whether a VPC has been // requested or not. The following list shows the default behavior in each case. // - // Default VPC: true + // * Default VPC: true // - // VPC: false + // * VPC: false // - // If no DB subnet group has been specified as part of the request and the - // PubliclyAccessible value has not been set, the DB instance will be publicly - // accessible. If a specific DB subnet group has been specified as part of the - // request and the PubliclyAccessible value has not been set, the DB instance - // will be private. + // If no DB subnet group has been specified as part of the request and the PubliclyAccessible + // value has not been set, the DB instance will be publicly accessible. If a + // specific DB subnet group has been specified as part of the request and the + // PubliclyAccessible value has not been set, the DB instance will be private. PubliclyAccessible *bool `type:"boolean"` // Specifies the storage type to be associated with the DB instance. // - // Valid values: standard | gp2 | io1 + // Valid values: standard | gp2 | io1 // - // If you specify io1, you must also include a value for the Iops parameter. + // If you specify io1, you must also include a value for the Iops parameter. // - // Default: io1 if the Iops parameter is specified; otherwise standard + // Default: io1 if the Iops parameter is specified; otherwise standard StorageType *string `type:"string"` // A list of tags. @@ -18148,19 +24529,145 @@ func (s *RestoreDBInstanceFromDBSnapshotInput) Validate() error { return nil } +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetAutoMinorVersionUpgrade(v bool) *RestoreDBInstanceFromDBSnapshotInput { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetAvailabilityZone(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.AvailabilityZone = &v + return s +} + +// SetCopyTagsToSnapshot sets the CopyTagsToSnapshot field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetCopyTagsToSnapshot(v bool) *RestoreDBInstanceFromDBSnapshotInput { + s.CopyTagsToSnapshot = &v + return s +} + +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetDBInstanceClass(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.DBInstanceClass = &v + return s +} + +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetDBInstanceIdentifier(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetDBName sets the DBName field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetDBName(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.DBName = &v + return s +} + +// SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetDBSnapshotIdentifier(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.DBSnapshotIdentifier = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetDBSubnetGroupName(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.DBSubnetGroupName = &v + return s +} + +// SetDomain sets the Domain field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetDomain(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.Domain = &v + return s +} + +// SetDomainIAMRoleName sets the DomainIAMRoleName field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetDomainIAMRoleName(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.DomainIAMRoleName = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetEngine(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.Engine = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetIops(v int64) *RestoreDBInstanceFromDBSnapshotInput { + s.Iops = &v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetLicenseModel(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.LicenseModel = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetMultiAZ(v bool) *RestoreDBInstanceFromDBSnapshotInput { + s.MultiAZ = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetOptionGroupName(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.OptionGroupName = &v + return s +} + +// SetPort sets the Port field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetPort(v int64) *RestoreDBInstanceFromDBSnapshotInput { + s.Port = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetPubliclyAccessible(v bool) *RestoreDBInstanceFromDBSnapshotInput { + s.PubliclyAccessible = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetStorageType(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.StorageType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetTags(v []*Tag) *RestoreDBInstanceFromDBSnapshotInput { + s.Tags = v + return s +} + +// SetTdeCredentialArn sets the TdeCredentialArn field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetTdeCredentialArn(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.TdeCredentialArn = &v + return s +} + +// SetTdeCredentialPassword sets the TdeCredentialPassword field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetTdeCredentialPassword(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.TdeCredentialPassword = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBInstanceFromDBSnapshotResult type RestoreDBInstanceFromDBSnapshotOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance + // * CreateDBInstance // - // DeleteDBInstance + // * DeleteDBInstance // - // ModifyDBInstance + // * ModifyDBInstance // - // This data type is used as a response element in the DescribeDBInstances - // action. + // This data type is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` } @@ -18174,6 +24681,13 @@ func (s RestoreDBInstanceFromDBSnapshotOutput) GoString() string { return s.String() } +// SetDBInstance sets the DBInstance field's value. +func (s *RestoreDBInstanceFromDBSnapshotOutput) SetDBInstance(v *DBInstance) *RestoreDBInstanceFromDBSnapshotOutput { + s.DBInstance = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBInstanceToPointInTimeMessage type RestoreDBInstanceToPointInTimeInput struct { _ struct{} `type:"structure"` @@ -18208,7 +24722,7 @@ type RestoreDBInstanceToPointInTimeInput struct { // The database name for the restored DB instance. // - // This parameter is not used for the MySQL or MariaDB engines. + // This parameter is not used for the MySQL or MariaDB engines. DBName *string `type:"string"` // The DB subnet group name to use for the new instance. @@ -18232,7 +24746,7 @@ type RestoreDBInstanceToPointInTimeInput struct { // // Constraint: Must be compatible with the engine of the source // - // Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee + // Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee // | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | aurora Engine *string `type:"string"` @@ -18241,7 +24755,7 @@ type RestoreDBInstanceToPointInTimeInput struct { // // Constraints: Must be an integer greater than 1000. // - // SQL Server + // SQL Server // // Setting the IOPS value for the SQL Server database engine is not supported. Iops *int64 `type:"integer"` @@ -18250,7 +24764,7 @@ type RestoreDBInstanceToPointInTimeInput struct { // // Default: Same as source. // - // Valid values: license-included | bring-your-own-license | general-public-license + // Valid values: license-included | bring-your-own-license | general-public-license LicenseModel *string `type:"string"` // Specifies if the DB instance is a Multi-AZ deployment. @@ -18281,15 +24795,14 @@ type RestoreDBInstanceToPointInTimeInput struct { // Default: The default behavior varies depending on whether a VPC has been // requested or not. The following list shows the default behavior in each case. // - // Default VPC:true + // * Default VPC:true // - // VPC:false + // * VPC:false // - // If no DB subnet group has been specified as part of the request and the - // PubliclyAccessible value has not been set, the DB instance will be publicly - // accessible. If a specific DB subnet group has been specified as part of the - // request and the PubliclyAccessible value has not been set, the DB instance - // will be private. + // If no DB subnet group has been specified as part of the request and the PubliclyAccessible + // value has not been set, the DB instance will be publicly accessible. If a + // specific DB subnet group has been specified as part of the request and the + // PubliclyAccessible value has not been set, the DB instance will be private. PubliclyAccessible *bool `type:"boolean"` // The date and time to restore from. @@ -18298,35 +24811,35 @@ type RestoreDBInstanceToPointInTimeInput struct { // // Constraints: // - // Must be before the latest restorable time for the DB instance + // * Must be before the latest restorable time for the DB instance // - // Cannot be specified if UseLatestRestorableTime parameter is true + // * Cannot be specified if UseLatestRestorableTime parameter is true // - // Example: 2009-09-07T23:45:00Z + // Example: 2009-09-07T23:45:00Z RestoreTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The identifier of the source DB instance from which to restore. // // Constraints: // - // Must be the identifier of an existing database instance + // * Must be the identifier of an existing database instance // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // SourceDBInstanceIdentifier is a required field SourceDBInstanceIdentifier *string `type:"string" required:"true"` // Specifies the storage type to be associated with the DB instance. // - // Valid values: standard | gp2 | io1 + // Valid values: standard | gp2 | io1 // - // If you specify io1, you must also include a value for the Iops parameter. + // If you specify io1, you must also include a value for the Iops parameter. // - // Default: io1 if the Iops parameter is specified; otherwise standard + // Default: io1 if the Iops parameter is specified; otherwise standard StorageType *string `type:"string"` // A list of tags. @@ -18336,11 +24849,11 @@ type RestoreDBInstanceToPointInTimeInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens + // * Must contain from 1 to 63 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // // TargetDBInstanceIdentifier is a required field TargetDBInstanceIdentifier *string `type:"string" required:"true"` @@ -18387,19 +24900,157 @@ func (s *RestoreDBInstanceToPointInTimeInput) Validate() error { return nil } +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetAutoMinorVersionUpgrade(v bool) *RestoreDBInstanceToPointInTimeInput { + s.AutoMinorVersionUpgrade = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetAvailabilityZone(v string) *RestoreDBInstanceToPointInTimeInput { + s.AvailabilityZone = &v + return s +} + +// SetCopyTagsToSnapshot sets the CopyTagsToSnapshot field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetCopyTagsToSnapshot(v bool) *RestoreDBInstanceToPointInTimeInput { + s.CopyTagsToSnapshot = &v + return s +} + +// SetDBInstanceClass sets the DBInstanceClass field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetDBInstanceClass(v string) *RestoreDBInstanceToPointInTimeInput { + s.DBInstanceClass = &v + return s +} + +// SetDBName sets the DBName field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetDBName(v string) *RestoreDBInstanceToPointInTimeInput { + s.DBName = &v + return s +} + +// SetDBSubnetGroupName sets the DBSubnetGroupName field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetDBSubnetGroupName(v string) *RestoreDBInstanceToPointInTimeInput { + s.DBSubnetGroupName = &v + return s +} + +// SetDomain sets the Domain field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetDomain(v string) *RestoreDBInstanceToPointInTimeInput { + s.Domain = &v + return s +} + +// SetDomainIAMRoleName sets the DomainIAMRoleName field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetDomainIAMRoleName(v string) *RestoreDBInstanceToPointInTimeInput { + s.DomainIAMRoleName = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetEngine(v string) *RestoreDBInstanceToPointInTimeInput { + s.Engine = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetIops(v int64) *RestoreDBInstanceToPointInTimeInput { + s.Iops = &v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetLicenseModel(v string) *RestoreDBInstanceToPointInTimeInput { + s.LicenseModel = &v + return s +} + +// SetMultiAZ sets the MultiAZ field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetMultiAZ(v bool) *RestoreDBInstanceToPointInTimeInput { + s.MultiAZ = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetOptionGroupName(v string) *RestoreDBInstanceToPointInTimeInput { + s.OptionGroupName = &v + return s +} + +// SetPort sets the Port field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetPort(v int64) *RestoreDBInstanceToPointInTimeInput { + s.Port = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetPubliclyAccessible(v bool) *RestoreDBInstanceToPointInTimeInput { + s.PubliclyAccessible = &v + return s +} + +// SetRestoreTime sets the RestoreTime field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetRestoreTime(v time.Time) *RestoreDBInstanceToPointInTimeInput { + s.RestoreTime = &v + return s +} + +// SetSourceDBInstanceIdentifier sets the SourceDBInstanceIdentifier field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetSourceDBInstanceIdentifier(v string) *RestoreDBInstanceToPointInTimeInput { + s.SourceDBInstanceIdentifier = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetStorageType(v string) *RestoreDBInstanceToPointInTimeInput { + s.StorageType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetTags(v []*Tag) *RestoreDBInstanceToPointInTimeInput { + s.Tags = v + return s +} + +// SetTargetDBInstanceIdentifier sets the TargetDBInstanceIdentifier field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetTargetDBInstanceIdentifier(v string) *RestoreDBInstanceToPointInTimeInput { + s.TargetDBInstanceIdentifier = &v + return s +} + +// SetTdeCredentialArn sets the TdeCredentialArn field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetTdeCredentialArn(v string) *RestoreDBInstanceToPointInTimeInput { + s.TdeCredentialArn = &v + return s +} + +// SetTdeCredentialPassword sets the TdeCredentialPassword field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetTdeCredentialPassword(v string) *RestoreDBInstanceToPointInTimeInput { + s.TdeCredentialPassword = &v + return s +} + +// SetUseLatestRestorableTime sets the UseLatestRestorableTime field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetUseLatestRestorableTime(v bool) *RestoreDBInstanceToPointInTimeInput { + s.UseLatestRestorableTime = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBInstanceToPointInTimeResult type RestoreDBInstanceToPointInTimeOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance + // * CreateDBInstance // - // DeleteDBInstance + // * DeleteDBInstance // - // ModifyDBInstance + // * ModifyDBInstance // - // This data type is used as a response element in the DescribeDBInstances - // action. + // This data type is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` } @@ -18413,6 +25064,13 @@ func (s RestoreDBInstanceToPointInTimeOutput) GoString() string { return s.String() } +// SetDBInstance sets the DBInstance field's value. +func (s *RestoreDBInstanceToPointInTimeOutput) SetDBInstance(v *DBInstance) *RestoreDBInstanceToPointInTimeOutput { + s.DBInstance = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RevokeDBSecurityGroupIngressMessage type RevokeDBSecurityGroupIngressInput struct { _ struct{} `type:"structure"` @@ -18467,20 +25125,51 @@ func (s *RevokeDBSecurityGroupIngressInput) Validate() error { return nil } +// SetCIDRIP sets the CIDRIP field's value. +func (s *RevokeDBSecurityGroupIngressInput) SetCIDRIP(v string) *RevokeDBSecurityGroupIngressInput { + s.CIDRIP = &v + return s +} + +// SetDBSecurityGroupName sets the DBSecurityGroupName field's value. +func (s *RevokeDBSecurityGroupIngressInput) SetDBSecurityGroupName(v string) *RevokeDBSecurityGroupIngressInput { + s.DBSecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupId sets the EC2SecurityGroupId field's value. +func (s *RevokeDBSecurityGroupIngressInput) SetEC2SecurityGroupId(v string) *RevokeDBSecurityGroupIngressInput { + s.EC2SecurityGroupId = &v + return s +} + +// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value. +func (s *RevokeDBSecurityGroupIngressInput) SetEC2SecurityGroupName(v string) *RevokeDBSecurityGroupIngressInput { + s.EC2SecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value. +func (s *RevokeDBSecurityGroupIngressInput) SetEC2SecurityGroupOwnerId(v string) *RevokeDBSecurityGroupIngressInput { + s.EC2SecurityGroupOwnerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RevokeDBSecurityGroupIngressResult type RevokeDBSecurityGroupIngressOutput struct { _ struct{} `type:"structure"` // Contains the result of a successful invocation of the following actions: // - // DescribeDBSecurityGroups + // * DescribeDBSecurityGroups // - // AuthorizeDBSecurityGroupIngress + // * AuthorizeDBSecurityGroupIngress // - // CreateDBSecurityGroup + // * CreateDBSecurityGroup // - // RevokeDBSecurityGroupIngress + // * RevokeDBSecurityGroupIngress // - // This data type is used as a response element in the DescribeDBSecurityGroups + // This data type is used as a response element in the DescribeDBSecurityGroups // action. DBSecurityGroup *DBSecurityGroup `type:"structure"` } @@ -18495,8 +25184,15 @@ func (s RevokeDBSecurityGroupIngressOutput) GoString() string { return s.String() } +// SetDBSecurityGroup sets the DBSecurityGroup field's value. +func (s *RevokeDBSecurityGroupIngressOutput) SetDBSecurityGroup(v *DBSecurityGroup) *RevokeDBSecurityGroupIngressOutput { + s.DBSecurityGroup = v + return s +} + // Contains an AWS Region name as the result of a successful call to the DescribeSourceRegions // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/SourceRegion type SourceRegion struct { _ struct{} `type:"structure"` @@ -18520,16 +25216,35 @@ func (s SourceRegion) GoString() string { return s.String() } +// SetEndpoint sets the Endpoint field's value. +func (s *SourceRegion) SetEndpoint(v string) *SourceRegion { + s.Endpoint = &v + return s +} + +// SetRegionName sets the RegionName field's value. +func (s *SourceRegion) SetRegionName(v string) *SourceRegion { + s.RegionName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SourceRegion) SetStatus(v string) *SourceRegion { + s.Status = &v + return s +} + // This data type is used as a response element in the DescribeDBSubnetGroups // action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/Subnet type Subnet struct { _ struct{} `type:"structure"` // Contains Availability Zone information. // - // This data type is used as an element in the following data type: + // This data type is used as an element in the following data type: // - // OrderableDBInstanceOption + // * OrderableDBInstanceOption SubnetAvailabilityZone *AvailabilityZone `type:"structure"` // Specifies the identifier of the subnet. @@ -18549,7 +25264,26 @@ func (s Subnet) GoString() string { return s.String() } +// SetSubnetAvailabilityZone sets the SubnetAvailabilityZone field's value. +func (s *Subnet) SetSubnetAvailabilityZone(v *AvailabilityZone) *Subnet { + s.SubnetAvailabilityZone = v + return s +} + +// SetSubnetIdentifier sets the SubnetIdentifier field's value. +func (s *Subnet) SetSubnetIdentifier(v string) *Subnet { + s.SubnetIdentifier = &v + return s +} + +// SetSubnetStatus sets the SubnetStatus field's value. +func (s *Subnet) SetSubnetStatus(v string) *Subnet { + s.SubnetStatus = &v + return s +} + // Metadata assigned to an Amazon RDS resource consisting of a key-value pair. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/Tag type Tag struct { _ struct{} `type:"structure"` @@ -18576,9 +25310,22 @@ func (s Tag) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // A time zone associated with a DBInstance or a DBSnapshot. This data type // is an element in the response to the DescribeDBInstances, the DescribeDBSnapshots, // and the DescribeDBEngineVersions actions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/Timezone type Timezone struct { _ struct{} `type:"structure"` @@ -18596,7 +25343,14 @@ func (s Timezone) GoString() string { return s.String() } +// SetTimezoneName sets the TimezoneName field's value. +func (s *Timezone) SetTimezoneName(v string) *Timezone { + s.TimezoneName = &v + return s +} + // The version of the database engine that a DB instance can be upgraded to. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/UpgradeTarget type UpgradeTarget struct { _ struct{} `type:"structure"` @@ -18628,8 +25382,39 @@ func (s UpgradeTarget) GoString() string { return s.String() } +// SetAutoUpgrade sets the AutoUpgrade field's value. +func (s *UpgradeTarget) SetAutoUpgrade(v bool) *UpgradeTarget { + s.AutoUpgrade = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpgradeTarget) SetDescription(v string) *UpgradeTarget { + s.Description = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *UpgradeTarget) SetEngine(v string) *UpgradeTarget { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *UpgradeTarget) SetEngineVersion(v string) *UpgradeTarget { + s.EngineVersion = &v + return s +} + +// SetIsMajorVersionUpgrade sets the IsMajorVersionUpgrade field's value. +func (s *UpgradeTarget) SetIsMajorVersionUpgrade(v bool) *UpgradeTarget { + s.IsMajorVersionUpgrade = &v + return s +} + // This data type is used as a response element for queries on VPC security // group membership. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/VpcSecurityGroupMembership type VpcSecurityGroupMembership struct { _ struct{} `type:"structure"` @@ -18650,6 +25435,18 @@ func (s VpcSecurityGroupMembership) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *VpcSecurityGroupMembership) SetStatus(v string) *VpcSecurityGroupMembership { + s.Status = &v + return s +} + +// SetVpcSecurityGroupId sets the VpcSecurityGroupId field's value. +func (s *VpcSecurityGroupMembership) SetVpcSecurityGroupId(v string) *VpcSecurityGroupMembership { + s.VpcSecurityGroupId = &v + return s +} + const ( // ApplyMethodImmediate is a ApplyMethod enum value ApplyMethodImmediate = "immediate" diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/customizations.go b/vendor/github.com/aws/aws-sdk-go/service/rds/customizations.go new file mode 100644 index 000000000..d3023d1f7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/customizations.go @@ -0,0 +1,99 @@ +package rds + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/endpoints" + "github.com/aws/aws-sdk-go/aws/request" +) + +func init() { + ops := []string{ + opCopyDBSnapshot, + opCreateDBInstanceReadReplica, + opCopyDBClusterSnapshot, + opCreateDBCluster, + } + initRequest = func(r *request.Request) { + for _, operation := range ops { + if r.Operation.Name == operation { + r.Handlers.Build.PushFront(fillPresignedURL) + } + } + } +} + +func fillPresignedURL(r *request.Request) { + fns := map[string]func(r *request.Request){ + opCopyDBSnapshot: copyDBSnapshotPresign, + opCreateDBInstanceReadReplica: createDBInstanceReadReplicaPresign, + } + if !r.ParamsFilled() { + return + } + if f, ok := fns[r.Operation.Name]; ok { + f(r) + } +} + +func copyDBSnapshotPresign(r *request.Request) { + originParams := r.Params.(*CopyDBSnapshotInput) + + if originParams.PreSignedUrl != nil || originParams.DestinationRegion != nil { + return + } + + originParams.DestinationRegion = r.Config.Region + newParams := awsutil.CopyOf(r.Params).(*CopyDBSnapshotInput) + originParams.PreSignedUrl = presignURL(r, originParams.SourceRegion, newParams) +} + +func createDBInstanceReadReplicaPresign(r *request.Request) { + originParams := r.Params.(*CreateDBInstanceReadReplicaInput) + + if originParams.PreSignedUrl != nil || originParams.DestinationRegion != nil { + return + } + + originParams.DestinationRegion = r.Config.Region + newParams := awsutil.CopyOf(r.Params).(*CreateDBInstanceReadReplicaInput) + originParams.PreSignedUrl = presignURL(r, originParams.SourceRegion, newParams) +} + +// presignURL will presign the request by using SoureRegion to sign with. SourceRegion is not +// sent to the service, and is only used to not have the SDKs parsing ARNs. +func presignURL(r *request.Request, sourceRegion *string, newParams interface{}) *string { + cfg := r.Config.Copy(aws.NewConfig(). + WithEndpoint(""). + WithRegion(aws.StringValue(sourceRegion))) + + clientInfo := r.ClientInfo + resolved, err := r.Config.EndpointResolver.EndpointFor( + clientInfo.ServiceName, aws.StringValue(cfg.Region), + func(opt *endpoints.Options) { + opt.DisableSSL = aws.BoolValue(cfg.DisableSSL) + opt.UseDualStack = aws.BoolValue(cfg.UseDualStack) + }, + ) + if err != nil { + r.Error = err + return nil + } + + clientInfo.Endpoint = resolved.URL + clientInfo.SigningRegion = resolved.SigningRegion + + // Presign a request with modified params + req := request.New(*cfg, clientInfo, r.Handlers, r.Retryer, r.Operation, newParams, r.Data) + req.Operation.HTTPMethod = "GET" + uri, err := req.Presign(5 * time.Minute) // 5 minutes should be enough. + if err != nil { // bubble error back up to original request + r.Error = err + return nil + } + + // We have our URL, set it on params + return &uri +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/customizations_test.go b/vendor/github.com/aws/aws-sdk-go/service/rds/customizations_test.go new file mode 100644 index 000000000..df12d9bdc --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/customizations_test.go @@ -0,0 +1,81 @@ +package rds + +import ( + "fmt" + "io/ioutil" + "net/url" + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/unit" + + "github.com/stretchr/testify/assert" +) + +func TestPresignWithPresignNotSet(t *testing.T) { + reqs := map[string]*request.Request{} + svc := New(unit.Session, &aws.Config{Region: aws.String("us-west-2")}) + + assert.NotPanics(t, func() { + // Doesn't panic on nil input + req, _ := svc.CopyDBSnapshotRequest(nil) + req.Sign() + }) + + reqs[opCopyDBSnapshot], _ = svc.CopyDBSnapshotRequest(&CopyDBSnapshotInput{ + SourceRegion: aws.String("us-west-1"), + SourceDBSnapshotIdentifier: aws.String("foo"), + TargetDBSnapshotIdentifier: aws.String("bar"), + }) + + reqs[opCreateDBInstanceReadReplica], _ = svc.CreateDBInstanceReadReplicaRequest(&CreateDBInstanceReadReplicaInput{ + SourceRegion: aws.String("us-west-1"), + SourceDBInstanceIdentifier: aws.String("foo"), + DBInstanceIdentifier: aws.String("bar"), + }) + + for op, req := range reqs { + req.Sign() + b, _ := ioutil.ReadAll(req.HTTPRequest.Body) + q, _ := url.ParseQuery(string(b)) + + u, _ := url.QueryUnescape(q.Get("PreSignedUrl")) + assert.Regexp(t, fmt.Sprintf(`^https://rds.us-west-1\.amazonaws\.com/\?Action=%s.+?DestinationRegion=us-west-2.+`, op), u) + } +} + +func TestPresignWithPresignSet(t *testing.T) { + reqs := map[string]*request.Request{} + svc := New(unit.Session, &aws.Config{Region: aws.String("us-west-2")}) + + assert.NotPanics(t, func() { + // Doesn't panic on nil input + req, _ := svc.CopyDBSnapshotRequest(nil) + req.Sign() + }) + + reqs[opCopyDBSnapshot], _ = svc.CopyDBSnapshotRequest(&CopyDBSnapshotInput{ + SourceRegion: aws.String("us-west-1"), + SourceDBSnapshotIdentifier: aws.String("foo"), + TargetDBSnapshotIdentifier: aws.String("bar"), + PreSignedUrl: aws.String("presignedURL"), + }) + + reqs[opCreateDBInstanceReadReplica], _ = svc.CreateDBInstanceReadReplicaRequest(&CreateDBInstanceReadReplicaInput{ + SourceRegion: aws.String("us-west-1"), + SourceDBInstanceIdentifier: aws.String("foo"), + DBInstanceIdentifier: aws.String("bar"), + PreSignedUrl: aws.String("presignedURL"), + }) + + for _, req := range reqs { + req.Sign() + + b, _ := ioutil.ReadAll(req.HTTPRequest.Body) + q, _ := url.ParseQuery(string(b)) + + u, _ := url.QueryUnescape(q.Get("PreSignedUrl")) + assert.Regexp(t, `presignedURL`, u) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/errors.go b/vendor/github.com/aws/aws-sdk-go/service/rds/errors.go new file mode 100644 index 000000000..1ffd1a0fb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/errors.go @@ -0,0 +1,490 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package rds + +const ( + + // ErrCodeAuthorizationAlreadyExistsFault for service response error code + // "AuthorizationAlreadyExists". + // + // The specified CIDRIP or EC2 security group is already authorized for the + // specified DB security group. + ErrCodeAuthorizationAlreadyExistsFault = "AuthorizationAlreadyExists" + + // ErrCodeAuthorizationNotFoundFault for service response error code + // "AuthorizationNotFound". + // + // Specified CIDRIP or EC2 security group is not authorized for the specified + // DB security group. + // + // RDS may not also be authorized via IAM to perform necessary actions on your + // behalf. + ErrCodeAuthorizationNotFoundFault = "AuthorizationNotFound" + + // ErrCodeAuthorizationQuotaExceededFault for service response error code + // "AuthorizationQuotaExceeded". + // + // DB security group authorization quota has been reached. + ErrCodeAuthorizationQuotaExceededFault = "AuthorizationQuotaExceeded" + + // ErrCodeCertificateNotFoundFault for service response error code + // "CertificateNotFound". + // + // CertificateIdentifier does not refer to an existing certificate. + ErrCodeCertificateNotFoundFault = "CertificateNotFound" + + // ErrCodeDBClusterAlreadyExistsFault for service response error code + // "DBClusterAlreadyExistsFault". + // + // User already has a DB cluster with the given identifier. + ErrCodeDBClusterAlreadyExistsFault = "DBClusterAlreadyExistsFault" + + // ErrCodeDBClusterNotFoundFault for service response error code + // "DBClusterNotFoundFault". + // + // DBClusterIdentifier does not refer to an existing DB cluster. + ErrCodeDBClusterNotFoundFault = "DBClusterNotFoundFault" + + // ErrCodeDBClusterParameterGroupNotFoundFault for service response error code + // "DBClusterParameterGroupNotFound". + // + // DBClusterParameterGroupName does not refer to an existing DB Cluster parameter + // group. + ErrCodeDBClusterParameterGroupNotFoundFault = "DBClusterParameterGroupNotFound" + + // ErrCodeDBClusterQuotaExceededFault for service response error code + // "DBClusterQuotaExceededFault". + // + // User attempted to create a new DB cluster and the user has already reached + // the maximum allowed DB cluster quota. + ErrCodeDBClusterQuotaExceededFault = "DBClusterQuotaExceededFault" + + // ErrCodeDBClusterRoleAlreadyExistsFault for service response error code + // "DBClusterRoleAlreadyExists". + // + // The specified IAM role Amazon Resource Name (ARN) is already associated with + // the specified DB cluster. + ErrCodeDBClusterRoleAlreadyExistsFault = "DBClusterRoleAlreadyExists" + + // ErrCodeDBClusterRoleNotFoundFault for service response error code + // "DBClusterRoleNotFound". + // + // The specified IAM role Amazon Resource Name (ARN) is not associated with + // the specified DB cluster. + ErrCodeDBClusterRoleNotFoundFault = "DBClusterRoleNotFound" + + // ErrCodeDBClusterRoleQuotaExceededFault for service response error code + // "DBClusterRoleQuotaExceeded". + // + // You have exceeded the maximum number of IAM roles that can be associated + // with the specified DB cluster. + ErrCodeDBClusterRoleQuotaExceededFault = "DBClusterRoleQuotaExceeded" + + // ErrCodeDBClusterSnapshotAlreadyExistsFault for service response error code + // "DBClusterSnapshotAlreadyExistsFault". + // + // User already has a DB cluster snapshot with the given identifier. + ErrCodeDBClusterSnapshotAlreadyExistsFault = "DBClusterSnapshotAlreadyExistsFault" + + // ErrCodeDBClusterSnapshotNotFoundFault for service response error code + // "DBClusterSnapshotNotFoundFault". + // + // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. + ErrCodeDBClusterSnapshotNotFoundFault = "DBClusterSnapshotNotFoundFault" + + // ErrCodeDBInstanceAlreadyExistsFault for service response error code + // "DBInstanceAlreadyExists". + // + // User already has a DB instance with the given identifier. + ErrCodeDBInstanceAlreadyExistsFault = "DBInstanceAlreadyExists" + + // ErrCodeDBInstanceNotFoundFault for service response error code + // "DBInstanceNotFound". + // + // DBInstanceIdentifier does not refer to an existing DB instance. + ErrCodeDBInstanceNotFoundFault = "DBInstanceNotFound" + + // ErrCodeDBLogFileNotFoundFault for service response error code + // "DBLogFileNotFoundFault". + // + // LogFileName does not refer to an existing DB log file. + ErrCodeDBLogFileNotFoundFault = "DBLogFileNotFoundFault" + + // ErrCodeDBParameterGroupAlreadyExistsFault for service response error code + // "DBParameterGroupAlreadyExists". + // + // A DB parameter group with the same name exists. + ErrCodeDBParameterGroupAlreadyExistsFault = "DBParameterGroupAlreadyExists" + + // ErrCodeDBParameterGroupNotFoundFault for service response error code + // "DBParameterGroupNotFound". + // + // DBParameterGroupName does not refer to an existing DB parameter group. + ErrCodeDBParameterGroupNotFoundFault = "DBParameterGroupNotFound" + + // ErrCodeDBParameterGroupQuotaExceededFault for service response error code + // "DBParameterGroupQuotaExceeded". + // + // Request would result in user exceeding the allowed number of DB parameter + // groups. + ErrCodeDBParameterGroupQuotaExceededFault = "DBParameterGroupQuotaExceeded" + + // ErrCodeDBSecurityGroupAlreadyExistsFault for service response error code + // "DBSecurityGroupAlreadyExists". + // + // A DB security group with the name specified in DBSecurityGroupName already + // exists. + ErrCodeDBSecurityGroupAlreadyExistsFault = "DBSecurityGroupAlreadyExists" + + // ErrCodeDBSecurityGroupNotFoundFault for service response error code + // "DBSecurityGroupNotFound". + // + // DBSecurityGroupName does not refer to an existing DB security group. + ErrCodeDBSecurityGroupNotFoundFault = "DBSecurityGroupNotFound" + + // ErrCodeDBSecurityGroupNotSupportedFault for service response error code + // "DBSecurityGroupNotSupported". + // + // A DB security group is not allowed for this action. + ErrCodeDBSecurityGroupNotSupportedFault = "DBSecurityGroupNotSupported" + + // ErrCodeDBSecurityGroupQuotaExceededFault for service response error code + // "QuotaExceeded.DBSecurityGroup". + // + // Request would result in user exceeding the allowed number of DB security + // groups. + ErrCodeDBSecurityGroupQuotaExceededFault = "QuotaExceeded.DBSecurityGroup" + + // ErrCodeDBSnapshotAlreadyExistsFault for service response error code + // "DBSnapshotAlreadyExists". + // + // DBSnapshotIdentifier is already used by an existing snapshot. + ErrCodeDBSnapshotAlreadyExistsFault = "DBSnapshotAlreadyExists" + + // ErrCodeDBSnapshotNotFoundFault for service response error code + // "DBSnapshotNotFound". + // + // DBSnapshotIdentifier does not refer to an existing DB snapshot. + ErrCodeDBSnapshotNotFoundFault = "DBSnapshotNotFound" + + // ErrCodeDBSubnetGroupAlreadyExistsFault for service response error code + // "DBSubnetGroupAlreadyExists". + // + // DBSubnetGroupName is already used by an existing DB subnet group. + ErrCodeDBSubnetGroupAlreadyExistsFault = "DBSubnetGroupAlreadyExists" + + // ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs for service response error code + // "DBSubnetGroupDoesNotCoverEnoughAZs". + // + // Subnets in the DB subnet group should cover at least two Availability Zones + // unless there is only one Availability Zone. + ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs = "DBSubnetGroupDoesNotCoverEnoughAZs" + + // ErrCodeDBSubnetGroupNotAllowedFault for service response error code + // "DBSubnetGroupNotAllowedFault". + // + // Indicates that the DBSubnetGroup should not be specified while creating read + // replicas that lie in the same region as the source instance. + ErrCodeDBSubnetGroupNotAllowedFault = "DBSubnetGroupNotAllowedFault" + + // ErrCodeDBSubnetGroupNotFoundFault for service response error code + // "DBSubnetGroupNotFoundFault". + // + // DBSubnetGroupName does not refer to an existing DB subnet group. + ErrCodeDBSubnetGroupNotFoundFault = "DBSubnetGroupNotFoundFault" + + // ErrCodeDBSubnetGroupQuotaExceededFault for service response error code + // "DBSubnetGroupQuotaExceeded". + // + // Request would result in user exceeding the allowed number of DB subnet groups. + ErrCodeDBSubnetGroupQuotaExceededFault = "DBSubnetGroupQuotaExceeded" + + // ErrCodeDBSubnetQuotaExceededFault for service response error code + // "DBSubnetQuotaExceededFault". + // + // Request would result in user exceeding the allowed number of subnets in a + // DB subnet groups. + ErrCodeDBSubnetQuotaExceededFault = "DBSubnetQuotaExceededFault" + + // ErrCodeDBUpgradeDependencyFailureFault for service response error code + // "DBUpgradeDependencyFailure". + // + // The DB upgrade failed because a resource the DB depends on could not be modified. + ErrCodeDBUpgradeDependencyFailureFault = "DBUpgradeDependencyFailure" + + // ErrCodeDomainNotFoundFault for service response error code + // "DomainNotFoundFault". + // + // Domain does not refer to an existing Active Directory Domain. + ErrCodeDomainNotFoundFault = "DomainNotFoundFault" + + // ErrCodeEventSubscriptionQuotaExceededFault for service response error code + // "EventSubscriptionQuotaExceeded". + // + // You have reached the maximum number of event subscriptions. + ErrCodeEventSubscriptionQuotaExceededFault = "EventSubscriptionQuotaExceeded" + + // ErrCodeInstanceQuotaExceededFault for service response error code + // "InstanceQuotaExceeded". + // + // Request would result in user exceeding the allowed number of DB instances. + ErrCodeInstanceQuotaExceededFault = "InstanceQuotaExceeded" + + // ErrCodeInsufficientDBClusterCapacityFault for service response error code + // "InsufficientDBClusterCapacityFault". + // + // The DB cluster does not have enough capacity for the current operation. + ErrCodeInsufficientDBClusterCapacityFault = "InsufficientDBClusterCapacityFault" + + // ErrCodeInsufficientDBInstanceCapacityFault for service response error code + // "InsufficientDBInstanceCapacity". + // + // Specified DB instance class is not available in the specified Availability + // Zone. + ErrCodeInsufficientDBInstanceCapacityFault = "InsufficientDBInstanceCapacity" + + // ErrCodeInsufficientStorageClusterCapacityFault for service response error code + // "InsufficientStorageClusterCapacity". + // + // There is insufficient storage available for the current action. You may be + // able to resolve this error by updating your subnet group to use different + // Availability Zones that have more storage available. + ErrCodeInsufficientStorageClusterCapacityFault = "InsufficientStorageClusterCapacity" + + // ErrCodeInvalidDBClusterSnapshotStateFault for service response error code + // "InvalidDBClusterSnapshotStateFault". + // + // The supplied value is not a valid DB cluster snapshot state. + ErrCodeInvalidDBClusterSnapshotStateFault = "InvalidDBClusterSnapshotStateFault" + + // ErrCodeInvalidDBClusterStateFault for service response error code + // "InvalidDBClusterStateFault". + // + // The DB cluster is not in a valid state. + ErrCodeInvalidDBClusterStateFault = "InvalidDBClusterStateFault" + + // ErrCodeInvalidDBInstanceStateFault for service response error code + // "InvalidDBInstanceState". + // + // The specified DB instance is not in the available state. + ErrCodeInvalidDBInstanceStateFault = "InvalidDBInstanceState" + + // ErrCodeInvalidDBParameterGroupStateFault for service response error code + // "InvalidDBParameterGroupState". + // + // The DB parameter group cannot be deleted because it is in use. + ErrCodeInvalidDBParameterGroupStateFault = "InvalidDBParameterGroupState" + + // ErrCodeInvalidDBSecurityGroupStateFault for service response error code + // "InvalidDBSecurityGroupState". + // + // The state of the DB security group does not allow deletion. + ErrCodeInvalidDBSecurityGroupStateFault = "InvalidDBSecurityGroupState" + + // ErrCodeInvalidDBSnapshotStateFault for service response error code + // "InvalidDBSnapshotState". + // + // The state of the DB snapshot does not allow deletion. + ErrCodeInvalidDBSnapshotStateFault = "InvalidDBSnapshotState" + + // ErrCodeInvalidDBSubnetGroupFault for service response error code + // "InvalidDBSubnetGroupFault". + // + // Indicates the DBSubnetGroup does not belong to the same VPC as that of an + // existing cross region read replica of the same source instance. + ErrCodeInvalidDBSubnetGroupFault = "InvalidDBSubnetGroupFault" + + // ErrCodeInvalidDBSubnetGroupStateFault for service response error code + // "InvalidDBSubnetGroupStateFault". + // + // The DB subnet group cannot be deleted because it is in use. + ErrCodeInvalidDBSubnetGroupStateFault = "InvalidDBSubnetGroupStateFault" + + // ErrCodeInvalidDBSubnetStateFault for service response error code + // "InvalidDBSubnetStateFault". + // + // The DB subnet is not in the available state. + ErrCodeInvalidDBSubnetStateFault = "InvalidDBSubnetStateFault" + + // ErrCodeInvalidEventSubscriptionStateFault for service response error code + // "InvalidEventSubscriptionState". + // + // This error can occur if someone else is modifying a subscription. You should + // retry the action. + ErrCodeInvalidEventSubscriptionStateFault = "InvalidEventSubscriptionState" + + // ErrCodeInvalidOptionGroupStateFault for service response error code + // "InvalidOptionGroupStateFault". + // + // The option group is not in the available state. + ErrCodeInvalidOptionGroupStateFault = "InvalidOptionGroupStateFault" + + // ErrCodeInvalidRestoreFault for service response error code + // "InvalidRestoreFault". + // + // Cannot restore from vpc backup to non-vpc DB instance. + ErrCodeInvalidRestoreFault = "InvalidRestoreFault" + + // ErrCodeInvalidS3BucketFault for service response error code + // "InvalidS3BucketFault". + // + // The specified Amazon S3 bucket name could not be found or Amazon RDS is not + // authorized to access the specified Amazon S3 bucket. Verify the SourceS3BucketName + // and S3IngestionRoleArn values and try again. + ErrCodeInvalidS3BucketFault = "InvalidS3BucketFault" + + // ErrCodeInvalidSubnet for service response error code + // "InvalidSubnet". + // + // The requested subnet is invalid, or multiple subnets were requested that + // are not all in a common VPC. + ErrCodeInvalidSubnet = "InvalidSubnet" + + // ErrCodeInvalidVPCNetworkStateFault for service response error code + // "InvalidVPCNetworkStateFault". + // + // DB subnet group does not cover all Availability Zones after it is created + // because users' change. + ErrCodeInvalidVPCNetworkStateFault = "InvalidVPCNetworkStateFault" + + // ErrCodeKMSKeyNotAccessibleFault for service response error code + // "KMSKeyNotAccessibleFault". + // + // Error accessing KMS key. + ErrCodeKMSKeyNotAccessibleFault = "KMSKeyNotAccessibleFault" + + // ErrCodeOptionGroupAlreadyExistsFault for service response error code + // "OptionGroupAlreadyExistsFault". + // + // The option group you are trying to create already exists. + ErrCodeOptionGroupAlreadyExistsFault = "OptionGroupAlreadyExistsFault" + + // ErrCodeOptionGroupNotFoundFault for service response error code + // "OptionGroupNotFoundFault". + // + // The specified option group could not be found. + ErrCodeOptionGroupNotFoundFault = "OptionGroupNotFoundFault" + + // ErrCodeOptionGroupQuotaExceededFault for service response error code + // "OptionGroupQuotaExceededFault". + // + // The quota of 20 option groups was exceeded for this AWS account. + ErrCodeOptionGroupQuotaExceededFault = "OptionGroupQuotaExceededFault" + + // ErrCodePointInTimeRestoreNotEnabledFault for service response error code + // "PointInTimeRestoreNotEnabled". + // + // SourceDBInstanceIdentifier refers to a DB instance with BackupRetentionPeriod + // equal to 0. + ErrCodePointInTimeRestoreNotEnabledFault = "PointInTimeRestoreNotEnabled" + + // ErrCodeProvisionedIopsNotAvailableInAZFault for service response error code + // "ProvisionedIopsNotAvailableInAZFault". + // + // Provisioned IOPS not available in the specified Availability Zone. + ErrCodeProvisionedIopsNotAvailableInAZFault = "ProvisionedIopsNotAvailableInAZFault" + + // ErrCodeReservedDBInstanceAlreadyExistsFault for service response error code + // "ReservedDBInstanceAlreadyExists". + // + // User already has a reservation with the given identifier. + ErrCodeReservedDBInstanceAlreadyExistsFault = "ReservedDBInstanceAlreadyExists" + + // ErrCodeReservedDBInstanceNotFoundFault for service response error code + // "ReservedDBInstanceNotFound". + // + // The specified reserved DB Instance not found. + ErrCodeReservedDBInstanceNotFoundFault = "ReservedDBInstanceNotFound" + + // ErrCodeReservedDBInstanceQuotaExceededFault for service response error code + // "ReservedDBInstanceQuotaExceeded". + // + // Request would exceed the user's DB Instance quota. + ErrCodeReservedDBInstanceQuotaExceededFault = "ReservedDBInstanceQuotaExceeded" + + // ErrCodeReservedDBInstancesOfferingNotFoundFault for service response error code + // "ReservedDBInstancesOfferingNotFound". + // + // Specified offering does not exist. + ErrCodeReservedDBInstancesOfferingNotFoundFault = "ReservedDBInstancesOfferingNotFound" + + // ErrCodeResourceNotFoundFault for service response error code + // "ResourceNotFoundFault". + // + // The specified resource ID was not found. + ErrCodeResourceNotFoundFault = "ResourceNotFoundFault" + + // ErrCodeSNSInvalidTopicFault for service response error code + // "SNSInvalidTopic". + // + // SNS has responded that there is a problem with the SND topic specified. + ErrCodeSNSInvalidTopicFault = "SNSInvalidTopic" + + // ErrCodeSNSNoAuthorizationFault for service response error code + // "SNSNoAuthorization". + // + // You do not have permission to publish to the SNS topic ARN. + ErrCodeSNSNoAuthorizationFault = "SNSNoAuthorization" + + // ErrCodeSNSTopicArnNotFoundFault for service response error code + // "SNSTopicArnNotFound". + // + // The SNS topic ARN does not exist. + ErrCodeSNSTopicArnNotFoundFault = "SNSTopicArnNotFound" + + // ErrCodeSharedSnapshotQuotaExceededFault for service response error code + // "SharedSnapshotQuotaExceeded". + // + // You have exceeded the maximum number of accounts that you can share a manual + // DB snapshot with. + ErrCodeSharedSnapshotQuotaExceededFault = "SharedSnapshotQuotaExceeded" + + // ErrCodeSnapshotQuotaExceededFault for service response error code + // "SnapshotQuotaExceeded". + // + // Request would result in user exceeding the allowed number of DB snapshots. + ErrCodeSnapshotQuotaExceededFault = "SnapshotQuotaExceeded" + + // ErrCodeSourceNotFoundFault for service response error code + // "SourceNotFound". + // + // The requested source could not be found. + ErrCodeSourceNotFoundFault = "SourceNotFound" + + // ErrCodeStorageQuotaExceededFault for service response error code + // "StorageQuotaExceeded". + // + // Request would result in user exceeding the allowed amount of storage available + // across all DB instances. + ErrCodeStorageQuotaExceededFault = "StorageQuotaExceeded" + + // ErrCodeStorageTypeNotSupportedFault for service response error code + // "StorageTypeNotSupported". + // + // StorageType specified cannot be associated with the DB Instance. + ErrCodeStorageTypeNotSupportedFault = "StorageTypeNotSupported" + + // ErrCodeSubnetAlreadyInUse for service response error code + // "SubnetAlreadyInUse". + // + // The DB subnet is already in use in the Availability Zone. + ErrCodeSubnetAlreadyInUse = "SubnetAlreadyInUse" + + // ErrCodeSubscriptionAlreadyExistFault for service response error code + // "SubscriptionAlreadyExist". + // + // The supplied subscription name already exists. + ErrCodeSubscriptionAlreadyExistFault = "SubscriptionAlreadyExist" + + // ErrCodeSubscriptionCategoryNotFoundFault for service response error code + // "SubscriptionCategoryNotFound". + // + // The supplied category does not exist. + ErrCodeSubscriptionCategoryNotFoundFault = "SubscriptionCategoryNotFound" + + // ErrCodeSubscriptionNotFoundFault for service response error code + // "SubscriptionNotFound". + // + // The subscription name does not exist. + ErrCodeSubscriptionNotFoundFault = "SubscriptionNotFound" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/rds/examples_test.go index a2b4350c7..53ad3c2fd 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/rds/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleRDS_AddRoleToDBCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -42,11 +38,7 @@ func ExampleRDS_AddRoleToDBCluster() { } func ExampleRDS_AddSourceIdentifierToSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -68,11 +60,7 @@ func ExampleRDS_AddSourceIdentifierToSubscription() { } func ExampleRDS_AddTagsToResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -100,11 +88,7 @@ func ExampleRDS_AddTagsToResource() { } func ExampleRDS_ApplyPendingMaintenanceAction() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -127,11 +111,7 @@ func ExampleRDS_ApplyPendingMaintenanceAction() { } func ExampleRDS_AuthorizeDBSecurityGroupIngress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -156,11 +136,7 @@ func ExampleRDS_AuthorizeDBSecurityGroupIngress() { } func ExampleRDS_CopyDBClusterParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -190,17 +166,18 @@ func ExampleRDS_CopyDBClusterParameterGroup() { } func ExampleRDS_CopyDBClusterSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) params := &rds.CopyDBClusterSnapshotInput{ SourceDBClusterSnapshotIdentifier: aws.String("String"), // Required TargetDBClusterSnapshotIdentifier: aws.String("String"), // Required + CopyTags: aws.Bool(true), + DestinationRegion: aws.String("String"), + KmsKeyId: aws.String("String"), + PreSignedUrl: aws.String("String"), + SourceRegion: aws.String("String"), Tags: []*rds.Tag{ { // Required Key: aws.String("String"), @@ -223,11 +200,7 @@ func ExampleRDS_CopyDBClusterSnapshot() { } func ExampleRDS_CopyDBParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -257,11 +230,7 @@ func ExampleRDS_CopyDBParameterGroup() { } func ExampleRDS_CopyDBSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -269,7 +238,10 @@ func ExampleRDS_CopyDBSnapshot() { SourceDBSnapshotIdentifier: aws.String("String"), // Required TargetDBSnapshotIdentifier: aws.String("String"), // Required CopyTags: aws.Bool(true), + DestinationRegion: aws.String("String"), KmsKeyId: aws.String("String"), + PreSignedUrl: aws.String("String"), + SourceRegion: aws.String("String"), Tags: []*rds.Tag{ { // Required Key: aws.String("String"), @@ -292,11 +264,7 @@ func ExampleRDS_CopyDBSnapshot() { } func ExampleRDS_CopyOptionGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -326,11 +294,7 @@ func ExampleRDS_CopyOptionGroup() { } func ExampleRDS_CreateDBCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -346,15 +310,18 @@ func ExampleRDS_CreateDBCluster() { DBClusterParameterGroupName: aws.String("String"), DBSubnetGroupName: aws.String("String"), DatabaseName: aws.String("String"), + DestinationRegion: aws.String("String"), EngineVersion: aws.String("String"), KmsKeyId: aws.String("String"), MasterUserPassword: aws.String("String"), MasterUsername: aws.String("String"), OptionGroupName: aws.String("String"), Port: aws.Int64(1), + PreSignedUrl: aws.String("String"), PreferredBackupWindow: aws.String("String"), PreferredMaintenanceWindow: aws.String("String"), ReplicationSourceIdentifier: aws.String("String"), + SourceRegion: aws.String("String"), StorageEncrypted: aws.Bool(true), Tags: []*rds.Tag{ { // Required @@ -382,11 +349,7 @@ func ExampleRDS_CreateDBCluster() { } func ExampleRDS_CreateDBClusterParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -416,11 +379,7 @@ func ExampleRDS_CreateDBClusterParameterGroup() { } func ExampleRDS_CreateDBClusterSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -449,11 +408,7 @@ func ExampleRDS_CreateDBClusterSnapshot() { } func ExampleRDS_CreateDBInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -523,11 +478,7 @@ func ExampleRDS_CreateDBInstance() { } func ExampleRDS_CreateDBInstanceReadReplica() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -539,12 +490,16 @@ func ExampleRDS_CreateDBInstanceReadReplica() { CopyTagsToSnapshot: aws.Bool(true), DBInstanceClass: aws.String("String"), DBSubnetGroupName: aws.String("String"), + DestinationRegion: aws.String("String"), Iops: aws.Int64(1), + KmsKeyId: aws.String("String"), MonitoringInterval: aws.Int64(1), MonitoringRoleArn: aws.String("String"), OptionGroupName: aws.String("String"), Port: aws.Int64(1), + PreSignedUrl: aws.String("String"), PubliclyAccessible: aws.Bool(true), + SourceRegion: aws.String("String"), StorageType: aws.String("String"), Tags: []*rds.Tag{ { // Required @@ -568,11 +523,7 @@ func ExampleRDS_CreateDBInstanceReadReplica() { } func ExampleRDS_CreateDBParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -602,11 +553,7 @@ func ExampleRDS_CreateDBParameterGroup() { } func ExampleRDS_CreateDBSecurityGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -635,11 +582,7 @@ func ExampleRDS_CreateDBSecurityGroup() { } func ExampleRDS_CreateDBSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -668,11 +611,7 @@ func ExampleRDS_CreateDBSnapshot() { } func ExampleRDS_CreateDBSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -705,11 +644,7 @@ func ExampleRDS_CreateDBSubnetGroup() { } func ExampleRDS_CreateEventSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -748,11 +683,7 @@ func ExampleRDS_CreateEventSubscription() { } func ExampleRDS_CreateOptionGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -783,11 +714,7 @@ func ExampleRDS_CreateOptionGroup() { } func ExampleRDS_DeleteDBCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -810,11 +737,7 @@ func ExampleRDS_DeleteDBCluster() { } func ExampleRDS_DeleteDBClusterParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -835,11 +758,7 @@ func ExampleRDS_DeleteDBClusterParameterGroup() { } func ExampleRDS_DeleteDBClusterSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -860,11 +779,7 @@ func ExampleRDS_DeleteDBClusterSnapshot() { } func ExampleRDS_DeleteDBInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -887,11 +802,7 @@ func ExampleRDS_DeleteDBInstance() { } func ExampleRDS_DeleteDBParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -912,11 +823,7 @@ func ExampleRDS_DeleteDBParameterGroup() { } func ExampleRDS_DeleteDBSecurityGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -937,11 +844,7 @@ func ExampleRDS_DeleteDBSecurityGroup() { } func ExampleRDS_DeleteDBSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -962,11 +865,7 @@ func ExampleRDS_DeleteDBSnapshot() { } func ExampleRDS_DeleteDBSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -987,11 +886,7 @@ func ExampleRDS_DeleteDBSubnetGroup() { } func ExampleRDS_DeleteEventSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1012,11 +907,7 @@ func ExampleRDS_DeleteEventSubscription() { } func ExampleRDS_DeleteOptionGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1037,11 +928,7 @@ func ExampleRDS_DeleteOptionGroup() { } func ExampleRDS_DescribeAccountAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1060,11 +947,7 @@ func ExampleRDS_DescribeAccountAttributes() { } func ExampleRDS_DescribeCertificates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1097,11 +980,7 @@ func ExampleRDS_DescribeCertificates() { } func ExampleRDS_DescribeDBClusterParameterGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1134,11 +1013,7 @@ func ExampleRDS_DescribeDBClusterParameterGroups() { } func ExampleRDS_DescribeDBClusterParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1172,11 +1047,7 @@ func ExampleRDS_DescribeDBClusterParameters() { } func ExampleRDS_DescribeDBClusterSnapshotAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1197,11 +1068,7 @@ func ExampleRDS_DescribeDBClusterSnapshotAttributes() { } func ExampleRDS_DescribeDBClusterSnapshots() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1238,11 +1105,7 @@ func ExampleRDS_DescribeDBClusterSnapshots() { } func ExampleRDS_DescribeDBClusters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1275,11 +1138,7 @@ func ExampleRDS_DescribeDBClusters() { } func ExampleRDS_DescribeDBEngineVersions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1317,11 +1176,7 @@ func ExampleRDS_DescribeDBEngineVersions() { } func ExampleRDS_DescribeDBInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1354,11 +1209,7 @@ func ExampleRDS_DescribeDBInstances() { } func ExampleRDS_DescribeDBLogFiles() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1394,11 +1245,7 @@ func ExampleRDS_DescribeDBLogFiles() { } func ExampleRDS_DescribeDBParameterGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1431,11 +1278,7 @@ func ExampleRDS_DescribeDBParameterGroups() { } func ExampleRDS_DescribeDBParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1469,11 +1312,7 @@ func ExampleRDS_DescribeDBParameters() { } func ExampleRDS_DescribeDBSecurityGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1506,11 +1345,7 @@ func ExampleRDS_DescribeDBSecurityGroups() { } func ExampleRDS_DescribeDBSnapshotAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1531,11 +1366,7 @@ func ExampleRDS_DescribeDBSnapshotAttributes() { } func ExampleRDS_DescribeDBSnapshots() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1572,11 +1403,7 @@ func ExampleRDS_DescribeDBSnapshots() { } func ExampleRDS_DescribeDBSubnetGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1609,11 +1436,7 @@ func ExampleRDS_DescribeDBSubnetGroups() { } func ExampleRDS_DescribeEngineDefaultClusterParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1646,11 +1469,7 @@ func ExampleRDS_DescribeEngineDefaultClusterParameters() { } func ExampleRDS_DescribeEngineDefaultParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1683,11 +1502,7 @@ func ExampleRDS_DescribeEngineDefaultParameters() { } func ExampleRDS_DescribeEventCategories() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1718,11 +1533,7 @@ func ExampleRDS_DescribeEventCategories() { } func ExampleRDS_DescribeEventSubscriptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1755,11 +1566,7 @@ func ExampleRDS_DescribeEventSubscriptions() { } func ExampleRDS_DescribeEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1800,11 +1607,7 @@ func ExampleRDS_DescribeEvents() { } func ExampleRDS_DescribeOptionGroupOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1838,11 +1641,7 @@ func ExampleRDS_DescribeOptionGroupOptions() { } func ExampleRDS_DescribeOptionGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1877,11 +1676,7 @@ func ExampleRDS_DescribeOptionGroups() { } func ExampleRDS_DescribeOrderableDBInstanceOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1918,11 +1713,7 @@ func ExampleRDS_DescribeOrderableDBInstanceOptions() { } func ExampleRDS_DescribePendingMaintenanceActions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1955,11 +1746,7 @@ func ExampleRDS_DescribePendingMaintenanceActions() { } func ExampleRDS_DescribeReservedDBInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -1998,11 +1785,7 @@ func ExampleRDS_DescribeReservedDBInstances() { } func ExampleRDS_DescribeReservedDBInstancesOfferings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2040,11 +1823,7 @@ func ExampleRDS_DescribeReservedDBInstancesOfferings() { } func ExampleRDS_DescribeSourceRegions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2077,11 +1856,7 @@ func ExampleRDS_DescribeSourceRegions() { } func ExampleRDS_DownloadDBLogFilePortion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2105,11 +1880,7 @@ func ExampleRDS_DownloadDBLogFilePortion() { } func ExampleRDS_FailoverDBCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2131,11 +1902,7 @@ func ExampleRDS_FailoverDBCluster() { } func ExampleRDS_ListTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2166,11 +1933,7 @@ func ExampleRDS_ListTagsForResource() { } func ExampleRDS_ModifyDBCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2204,11 +1967,7 @@ func ExampleRDS_ModifyDBCluster() { } func ExampleRDS_ModifyDBClusterParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2244,11 +2003,7 @@ func ExampleRDS_ModifyDBClusterParameterGroup() { } func ExampleRDS_ModifyDBClusterSnapshotAttribute() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2278,11 +2033,7 @@ func ExampleRDS_ModifyDBClusterSnapshotAttribute() { } func ExampleRDS_ModifyDBInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2340,11 +2091,7 @@ func ExampleRDS_ModifyDBInstance() { } func ExampleRDS_ModifyDBParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2379,13 +2126,31 @@ func ExampleRDS_ModifyDBParameterGroup() { fmt.Println(resp) } -func ExampleRDS_ModifyDBSnapshotAttribute() { - sess, err := session.NewSession() +func ExampleRDS_ModifyDBSnapshot() { + sess := session.Must(session.NewSession()) + + svc := rds.New(sess) + + params := &rds.ModifyDBSnapshotInput{ + DBSnapshotIdentifier: aws.String("String"), // Required + EngineVersion: aws.String("String"), + } + resp, err := svc.ModifyDBSnapshot(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleRDS_ModifyDBSnapshotAttribute() { + sess := session.Must(session.NewSession()) + svc := rds.New(sess) params := &rds.ModifyDBSnapshotAttributeInput{ @@ -2414,11 +2179,7 @@ func ExampleRDS_ModifyDBSnapshotAttribute() { } func ExampleRDS_ModifyDBSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2444,11 +2205,7 @@ func ExampleRDS_ModifyDBSubnetGroup() { } func ExampleRDS_ModifyEventSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2476,11 +2233,7 @@ func ExampleRDS_ModifyEventSubscription() { } func ExampleRDS_ModifyOptionGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2536,11 +2289,7 @@ func ExampleRDS_ModifyOptionGroup() { } func ExampleRDS_PromoteReadReplica() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2563,11 +2312,7 @@ func ExampleRDS_PromoteReadReplica() { } func ExampleRDS_PromoteReadReplicaDBCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2588,11 +2333,7 @@ func ExampleRDS_PromoteReadReplicaDBCluster() { } func ExampleRDS_PurchaseReservedDBInstancesOffering() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2622,11 +2363,7 @@ func ExampleRDS_PurchaseReservedDBInstancesOffering() { } func ExampleRDS_RebootDBInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2648,11 +2385,7 @@ func ExampleRDS_RebootDBInstance() { } func ExampleRDS_RemoveRoleFromDBCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2674,11 +2407,7 @@ func ExampleRDS_RemoveRoleFromDBCluster() { } func ExampleRDS_RemoveSourceIdentifierFromSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2700,11 +2429,7 @@ func ExampleRDS_RemoveSourceIdentifierFromSubscription() { } func ExampleRDS_RemoveTagsFromResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2729,11 +2454,7 @@ func ExampleRDS_RemoveTagsFromResource() { } func ExampleRDS_ResetDBClusterParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2770,11 +2491,7 @@ func ExampleRDS_ResetDBClusterParameterGroup() { } func ExampleRDS_ResetDBParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2811,11 +2528,7 @@ func ExampleRDS_ResetDBParameterGroup() { } func ExampleRDS_RestoreDBClusterFromS3() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2871,11 +2584,7 @@ func ExampleRDS_RestoreDBClusterFromS3() { } func ExampleRDS_RestoreDBClusterFromSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2919,11 +2628,7 @@ func ExampleRDS_RestoreDBClusterFromSnapshot() { } func ExampleRDS_RestoreDBClusterToPointInTime() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -2962,11 +2667,7 @@ func ExampleRDS_RestoreDBClusterToPointInTime() { } func ExampleRDS_RestoreDBInstanceFromDBSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -3013,11 +2714,7 @@ func ExampleRDS_RestoreDBInstanceFromDBSnapshot() { } func ExampleRDS_RestoreDBInstanceToPointInTime() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) @@ -3066,11 +2763,7 @@ func ExampleRDS_RestoreDBInstanceToPointInTime() { } func ExampleRDS_RevokeDBSecurityGroupIngress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := rds.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/rdsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/rds/rdsiface/interface.go index 0ccfb27f8..3ab78ccab 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/rds/rdsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/rdsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockRDSClient{} // @@ -361,6 +361,10 @@ type RDSAPI interface { ModifyDBParameterGroup(*rds.ModifyDBParameterGroupInput) (*rds.DBParameterGroupNameMessage, error) + ModifyDBSnapshotRequest(*rds.ModifyDBSnapshotInput) (*request.Request, *rds.ModifyDBSnapshotOutput) + + ModifyDBSnapshot(*rds.ModifyDBSnapshotInput) (*rds.ModifyDBSnapshotOutput, error) + ModifyDBSnapshotAttributeRequest(*rds.ModifyDBSnapshotAttributeInput) (*request.Request, *rds.ModifyDBSnapshotAttributeOutput) ModifyDBSnapshotAttribute(*rds.ModifyDBSnapshotAttributeInput) (*rds.ModifyDBSnapshotAttributeOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/service.go b/vendor/github.com/aws/aws-sdk-go/service/rds/service.go index 1082f992a..e81de9182 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/rds/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/service.go @@ -11,6 +11,7 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/query" ) +// // Amazon Relational Database Service (Amazon RDS) is a web service that makes // it easier to set up, operate, and scale a relational database in the cloud. // It provides cost-efficient, resizeable capacity for an industry-standard @@ -36,25 +37,26 @@ import ( // maintenance window. The reference structure is as follows, and we list following // some related topics from the user guide. // -// Amazon RDS API Reference +// Amazon RDS API Reference // -// For the alphabetical list of API actions, see API Actions (http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_Operations.html). +// * For the alphabetical list of API actions, see API Actions (http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_Operations.html). // -// For the alphabetical list of data types, see Data Types (http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_Types.html). +// * For the alphabetical list of data types, see Data Types (http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_Types.html). // -// For a list of common query parameters, see Common Parameters (http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/CommonParameters.html). +// * For a list of common query parameters, see Common Parameters (http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/CommonParameters.html). // -// For descriptions of the error codes, see Common Errors (http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/CommonErrors.html). +// * For descriptions of the error codes, see Common Errors (http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/CommonErrors.html). // -// Amazon RDS User Guide +// Amazon RDS User Guide // -// For a summary of the Amazon RDS interfaces, see Available RDS Interfaces -// (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html#Welcome.Interfaces). +// * For a summary of the Amazon RDS interfaces, see Available RDS Interfaces +// (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html#Welcome.Interfaces). // -// For more information about how to use the Query API, see Using the Query -// API (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Using_the_Query_API.html). -//The service client's operations are safe to be used concurrently. +// * For more information about how to use the Query API, see Using the Query +// API (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Using_the_Query_API.html). +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31 type RDS struct { *client.Client } @@ -65,8 +67,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "rds" +// Service information constants +const ( + ServiceName = "rds" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the RDS client with a session. // If additional configuration is needed for the client instance use the optional @@ -79,17 +84,18 @@ const ServiceName = "rds" // // Create a RDS client with additional configuration // svc := rds.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *RDS { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *RDS { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *RDS { svc := &RDS{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-10-31", diff --git a/vendor/github.com/aws/aws-sdk-go/service/redshift/api.go b/vendor/github.com/aws/aws-sdk-go/service/redshift/api.go index 33d5614e2..7a9a7cf2c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/redshift/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/redshift/api.go @@ -38,6 +38,7 @@ const opAuthorizeClusterSecurityGroupIngress = "AuthorizeClusterSecurityGroupIng // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AuthorizeClusterSecurityGroupIngress func (c *Redshift) AuthorizeClusterSecurityGroupIngressRequest(input *AuthorizeClusterSecurityGroupIngressInput) (req *request.Request, output *AuthorizeClusterSecurityGroupIngressOutput) { op := &request.Operation{ Name: opAuthorizeClusterSecurityGroupIngress, @@ -49,9 +50,8 @@ func (c *Redshift) AuthorizeClusterSecurityGroupIngressRequest(input *AuthorizeC input = &AuthorizeClusterSecurityGroupIngressInput{} } - req = c.newRequest(op, input, output) output = &AuthorizeClusterSecurityGroupIngressOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -68,8 +68,8 @@ func (c *Redshift) AuthorizeClusterSecurityGroupIngressRequest(input *AuthorizeC // and EC2SecurityGroupOwnerId. The Amazon EC2 security group and Amazon Redshift // cluster must be in the same AWS region. // -// If you authorize access to a CIDR/IP address range, specify CIDRIP. For -// an overview of CIDR blocks, see the Wikipedia article on Classless Inter-Domain +// If you authorize access to a CIDR/IP address range, specify CIDRIP. For an +// overview of CIDR blocks, see the Wikipedia article on Classless Inter-Domain // Routing (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). // // You must also associate the security group with a cluster so that clients @@ -86,20 +86,21 @@ func (c *Redshift) AuthorizeClusterSecurityGroupIngressRequest(input *AuthorizeC // API operation AuthorizeClusterSecurityGroupIngress for usage and error information. // // Returned Error Codes: -// * ClusterSecurityGroupNotFound +// * ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound" // The cluster security group name does not refer to an existing cluster security // group. // -// * InvalidClusterSecurityGroupState +// * ErrCodeInvalidClusterSecurityGroupStateFault "InvalidClusterSecurityGroupState" // The state of the cluster security group is not available. // -// * AuthorizationAlreadyExists +// * ErrCodeAuthorizationAlreadyExistsFault "AuthorizationAlreadyExists" // The specified CIDR block or EC2 security group is already authorized for // the specified cluster security group. // -// * AuthorizationQuotaExceeded +// * ErrCodeAuthorizationQuotaExceededFault "AuthorizationQuotaExceeded" // The authorization quota for the cluster security group has been reached. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AuthorizeClusterSecurityGroupIngress func (c *Redshift) AuthorizeClusterSecurityGroupIngress(input *AuthorizeClusterSecurityGroupIngressInput) (*AuthorizeClusterSecurityGroupIngressOutput, error) { req, out := c.AuthorizeClusterSecurityGroupIngressRequest(input) err := req.Send() @@ -132,6 +133,7 @@ const opAuthorizeSnapshotAccess = "AuthorizeSnapshotAccess" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AuthorizeSnapshotAccess func (c *Redshift) AuthorizeSnapshotAccessRequest(input *AuthorizeSnapshotAccessInput) (req *request.Request, output *AuthorizeSnapshotAccessOutput) { op := &request.Operation{ Name: opAuthorizeSnapshotAccess, @@ -143,9 +145,8 @@ func (c *Redshift) AuthorizeSnapshotAccessRequest(input *AuthorizeSnapshotAccess input = &AuthorizeSnapshotAccessInput{} } - req = c.newRequest(op, input, output) output = &AuthorizeSnapshotAccessOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -153,7 +154,7 @@ func (c *Redshift) AuthorizeSnapshotAccessRequest(input *AuthorizeSnapshotAccess // // Authorizes the specified AWS customer account to restore the specified snapshot. // -// For more information about working with snapshots, go to Amazon Redshift +// For more information about working with snapshots, go to Amazon Redshift // Snapshots (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html) // in the Amazon Redshift Cluster Management Guide. // @@ -165,27 +166,28 @@ func (c *Redshift) AuthorizeSnapshotAccessRequest(input *AuthorizeSnapshotAccess // API operation AuthorizeSnapshotAccess for usage and error information. // // Returned Error Codes: -// * ClusterSnapshotNotFound +// * ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound" // The snapshot identifier does not refer to an existing cluster snapshot. // -// * AuthorizationAlreadyExists +// * ErrCodeAuthorizationAlreadyExistsFault "AuthorizationAlreadyExists" // The specified CIDR block or EC2 security group is already authorized for // the specified cluster security group. // -// * AuthorizationQuotaExceeded +// * ErrCodeAuthorizationQuotaExceededFault "AuthorizationQuotaExceeded" // The authorization quota for the cluster security group has been reached. // -// * DependentServiceRequestThrottlingFault +// * ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault" // The request cannot be completed because a dependent service is throttling // requests made by Amazon Redshift on your behalf. Wait and retry the request. // -// * InvalidClusterSnapshotState +// * ErrCodeInvalidClusterSnapshotStateFault "InvalidClusterSnapshotState" // The specified cluster snapshot is not in the available state, or other accounts // are authorized to access the snapshot. // -// * LimitExceededFault +// * ErrCodeLimitExceededFault "LimitExceededFault" // The encryption key has exceeded its grant limit in AWS KMS. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AuthorizeSnapshotAccess func (c *Redshift) AuthorizeSnapshotAccess(input *AuthorizeSnapshotAccessInput) (*AuthorizeSnapshotAccessOutput, error) { req, out := c.AuthorizeSnapshotAccessRequest(input) err := req.Send() @@ -218,6 +220,7 @@ const opCopyClusterSnapshot = "CopyClusterSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CopyClusterSnapshot func (c *Redshift) CopyClusterSnapshotRequest(input *CopyClusterSnapshotInput) (req *request.Request, output *CopyClusterSnapshotOutput) { op := &request.Operation{ Name: opCopyClusterSnapshot, @@ -229,9 +232,8 @@ func (c *Redshift) CopyClusterSnapshotRequest(input *CopyClusterSnapshotInput) ( input = &CopyClusterSnapshotInput{} } - req = c.newRequest(op, input, output) output = &CopyClusterSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -247,7 +249,7 @@ func (c *Redshift) CopyClusterSnapshotRequest(input *CopyClusterSnapshotInput) ( // snapshot for a longer period, you can make a manual copy of the snapshot. // Manual snapshots are retained until you delete them. // -// For more information about working with snapshots, go to Amazon Redshift +// For more information about working with snapshots, go to Amazon Redshift // Snapshots (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html) // in the Amazon Redshift Cluster Management Guide. // @@ -259,21 +261,22 @@ func (c *Redshift) CopyClusterSnapshotRequest(input *CopyClusterSnapshotInput) ( // API operation CopyClusterSnapshot for usage and error information. // // Returned Error Codes: -// * ClusterSnapshotAlreadyExists +// * ErrCodeClusterSnapshotAlreadyExistsFault "ClusterSnapshotAlreadyExists" // The value specified as a snapshot identifier is already used by an existing // snapshot. // -// * ClusterSnapshotNotFound +// * ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound" // The snapshot identifier does not refer to an existing cluster snapshot. // -// * InvalidClusterSnapshotState +// * ErrCodeInvalidClusterSnapshotStateFault "InvalidClusterSnapshotState" // The specified cluster snapshot is not in the available state, or other accounts // are authorized to access the snapshot. // -// * ClusterSnapshotQuotaExceeded +// * ErrCodeClusterSnapshotQuotaExceededFault "ClusterSnapshotQuotaExceeded" // The request would result in the user exceeding the allowed number of cluster // snapshots. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CopyClusterSnapshot func (c *Redshift) CopyClusterSnapshot(input *CopyClusterSnapshotInput) (*CopyClusterSnapshotOutput, error) { req, out := c.CopyClusterSnapshotRequest(input) err := req.Send() @@ -306,6 +309,7 @@ const opCreateCluster = "CreateCluster" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateCluster func (c *Redshift) CreateClusterRequest(input *CreateClusterInput) (req *request.Request, output *CreateClusterOutput) { op := &request.Operation{ Name: opCreateCluster, @@ -317,9 +321,8 @@ func (c *Redshift) CreateClusterRequest(input *CreateClusterInput) (req *request input = &CreateClusterInput{} } - req = c.newRequest(op, input, output) output = &CreateClusterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -341,73 +344,74 @@ func (c *Redshift) CreateClusterRequest(input *CreateClusterInput) (req *request // API operation CreateCluster for usage and error information. // // Returned Error Codes: -// * ClusterAlreadyExists +// * ErrCodeClusterAlreadyExistsFault "ClusterAlreadyExists" // The account already has a cluster with the given identifier. // -// * InsufficientClusterCapacity +// * ErrCodeInsufficientClusterCapacityFault "InsufficientClusterCapacity" // The number of nodes specified exceeds the allotted capacity of the cluster. // -// * ClusterParameterGroupNotFound +// * ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound" // The parameter group name does not refer to an existing parameter group. // -// * ClusterSecurityGroupNotFound +// * ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound" // The cluster security group name does not refer to an existing cluster security // group. // -// * ClusterQuotaExceeded +// * ErrCodeClusterQuotaExceededFault "ClusterQuotaExceeded" // The request would exceed the allowed number of cluster instances for this // account. For information about increasing your quota, go to Limits in Amazon // Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) // in the Amazon Redshift Cluster Management Guide. // -// * NumberOfNodesQuotaExceeded +// * ErrCodeNumberOfNodesQuotaExceededFault "NumberOfNodesQuotaExceeded" // The operation would exceed the number of nodes allotted to the account. For // information about increasing your quota, go to Limits in Amazon Redshift // (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) // in the Amazon Redshift Cluster Management Guide. // -// * NumberOfNodesPerClusterLimitExceeded +// * ErrCodeNumberOfNodesPerClusterLimitExceededFault "NumberOfNodesPerClusterLimitExceeded" // The operation would exceed the number of nodes allowed for a cluster. // -// * ClusterSubnetGroupNotFoundFault +// * ErrCodeClusterSubnetGroupNotFoundFault "ClusterSubnetGroupNotFoundFault" // The cluster subnet group name does not refer to an existing cluster subnet // group. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // The cluster subnet group does not cover all Availability Zones. // -// * InvalidClusterSubnetGroupStateFault +// * ErrCodeInvalidClusterSubnetGroupStateFault "InvalidClusterSubnetGroupStateFault" // The cluster subnet group cannot be deleted because it is in use. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is not valid, or not all of the subnets are in the same // VPC. // -// * UnauthorizedOperation +// * ErrCodeUnauthorizedOperation "UnauthorizedOperation" // Your account is not authorized to perform the requested operation. // -// * HsmClientCertificateNotFoundFault +// * ErrCodeHsmClientCertificateNotFoundFault "HsmClientCertificateNotFoundFault" // There is no Amazon Redshift HSM client certificate with the specified identifier. // -// * HsmConfigurationNotFoundFault +// * ErrCodeHsmConfigurationNotFoundFault "HsmConfigurationNotFoundFault" // There is no Amazon Redshift HSM configuration with the specified identifier. // -// * InvalidElasticIpFault +// * ErrCodeInvalidElasticIpFault "InvalidElasticIpFault" // The Elastic IP (EIP) is invalid or cannot be found. // -// * TagLimitExceededFault +// * ErrCodeTagLimitExceededFault "TagLimitExceededFault" // The request exceeds the limit of 10 tags for the resource. // -// * InvalidTagFault +// * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // -// * LimitExceededFault +// * ErrCodeLimitExceededFault "LimitExceededFault" // The encryption key has exceeded its grant limit in AWS KMS. // -// * DependentServiceRequestThrottlingFault +// * ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault" // The request cannot be completed because a dependent service is throttling // requests made by Amazon Redshift on your behalf. Wait and retry the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateCluster func (c *Redshift) CreateCluster(input *CreateClusterInput) (*CreateClusterOutput, error) { req, out := c.CreateClusterRequest(input) err := req.Send() @@ -440,6 +444,7 @@ const opCreateClusterParameterGroup = "CreateClusterParameterGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterParameterGroup func (c *Redshift) CreateClusterParameterGroupRequest(input *CreateClusterParameterGroupInput) (req *request.Request, output *CreateClusterParameterGroupOutput) { op := &request.Operation{ Name: opCreateClusterParameterGroup, @@ -451,9 +456,8 @@ func (c *Redshift) CreateClusterParameterGroupRequest(input *CreateClusterParame input = &CreateClusterParameterGroupInput{} } - req = c.newRequest(op, input, output) output = &CreateClusterParameterGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -466,8 +470,8 @@ func (c *Redshift) CreateClusterParameterGroupRequest(input *CreateClusterParame // associate an existing cluster with a parameter group after the cluster is // created by using ModifyCluster. // -// Parameters in the parameter group define specific behavior that applies -// to the databases you create on the cluster. For more information about parameters +// Parameters in the parameter group define specific behavior that applies to +// the databases you create on the cluster. For more information about parameters // and parameter groups, go to Amazon Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) // in the Amazon Redshift Cluster Management Guide. // @@ -479,21 +483,22 @@ func (c *Redshift) CreateClusterParameterGroupRequest(input *CreateClusterParame // API operation CreateClusterParameterGroup for usage and error information. // // Returned Error Codes: -// * ClusterParameterGroupQuotaExceeded +// * ErrCodeClusterParameterGroupQuotaExceededFault "ClusterParameterGroupQuotaExceeded" // The request would result in the user exceeding the allowed number of cluster // parameter groups. For information about increasing your quota, go to Limits // in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) // in the Amazon Redshift Cluster Management Guide. // -// * ClusterParameterGroupAlreadyExists +// * ErrCodeClusterParameterGroupAlreadyExistsFault "ClusterParameterGroupAlreadyExists" // A cluster parameter group with the same name already exists. // -// * TagLimitExceededFault +// * ErrCodeTagLimitExceededFault "TagLimitExceededFault" // The request exceeds the limit of 10 tags for the resource. // -// * InvalidTagFault +// * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterParameterGroup func (c *Redshift) CreateClusterParameterGroup(input *CreateClusterParameterGroupInput) (*CreateClusterParameterGroupOutput, error) { req, out := c.CreateClusterParameterGroupRequest(input) err := req.Send() @@ -526,6 +531,7 @@ const opCreateClusterSecurityGroup = "CreateClusterSecurityGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSecurityGroup func (c *Redshift) CreateClusterSecurityGroupRequest(input *CreateClusterSecurityGroupInput) (req *request.Request, output *CreateClusterSecurityGroupOutput) { op := &request.Operation{ Name: opCreateClusterSecurityGroup, @@ -537,9 +543,8 @@ func (c *Redshift) CreateClusterSecurityGroupRequest(input *CreateClusterSecurit input = &CreateClusterSecurityGroupInput{} } - req = c.newRequest(op, input, output) output = &CreateClusterSecurityGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -548,7 +553,7 @@ func (c *Redshift) CreateClusterSecurityGroupRequest(input *CreateClusterSecurit // Creates a new Amazon Redshift security group. You use security groups to // control access to non-VPC clusters. // -// For information about managing security groups, go to Amazon Redshift Cluster +// For information about managing security groups, go to Amazon Redshift Cluster // Security Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html) // in the Amazon Redshift Cluster Management Guide. // @@ -560,21 +565,22 @@ func (c *Redshift) CreateClusterSecurityGroupRequest(input *CreateClusterSecurit // API operation CreateClusterSecurityGroup for usage and error information. // // Returned Error Codes: -// * ClusterSecurityGroupAlreadyExists +// * ErrCodeClusterSecurityGroupAlreadyExistsFault "ClusterSecurityGroupAlreadyExists" // A cluster security group with the same name already exists. // -// * QuotaExceeded.ClusterSecurityGroup +// * ErrCodeClusterSecurityGroupQuotaExceededFault "QuotaExceeded.ClusterSecurityGroup" // The request would result in the user exceeding the allowed number of cluster // security groups. For information about increasing your quota, go to Limits // in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) // in the Amazon Redshift Cluster Management Guide. // -// * TagLimitExceededFault +// * ErrCodeTagLimitExceededFault "TagLimitExceededFault" // The request exceeds the limit of 10 tags for the resource. // -// * InvalidTagFault +// * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSecurityGroup func (c *Redshift) CreateClusterSecurityGroup(input *CreateClusterSecurityGroupInput) (*CreateClusterSecurityGroupOutput, error) { req, out := c.CreateClusterSecurityGroupRequest(input) err := req.Send() @@ -607,6 +613,7 @@ const opCreateClusterSnapshot = "CreateClusterSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSnapshot func (c *Redshift) CreateClusterSnapshotRequest(input *CreateClusterSnapshotInput) (req *request.Request, output *CreateClusterSnapshotOutput) { op := &request.Operation{ Name: opCreateClusterSnapshot, @@ -618,9 +625,8 @@ func (c *Redshift) CreateClusterSnapshotRequest(input *CreateClusterSnapshotInpu input = &CreateClusterSnapshotInput{} } - req = c.newRequest(op, input, output) output = &CreateClusterSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -629,7 +635,7 @@ func (c *Redshift) CreateClusterSnapshotRequest(input *CreateClusterSnapshotInpu // Creates a manual snapshot of the specified cluster. The cluster must be in // the available state. // -// For more information about working with snapshots, go to Amazon Redshift +// For more information about working with snapshots, go to Amazon Redshift // Snapshots (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html) // in the Amazon Redshift Cluster Management Guide. // @@ -641,26 +647,27 @@ func (c *Redshift) CreateClusterSnapshotRequest(input *CreateClusterSnapshotInpu // API operation CreateClusterSnapshot for usage and error information. // // Returned Error Codes: -// * ClusterSnapshotAlreadyExists +// * ErrCodeClusterSnapshotAlreadyExistsFault "ClusterSnapshotAlreadyExists" // The value specified as a snapshot identifier is already used by an existing // snapshot. // -// * InvalidClusterState +// * ErrCodeInvalidClusterStateFault "InvalidClusterState" // The specified cluster is not in the available state. // -// * ClusterNotFound +// * ErrCodeClusterNotFoundFault "ClusterNotFound" // The ClusterIdentifier parameter does not refer to an existing cluster. // -// * ClusterSnapshotQuotaExceeded +// * ErrCodeClusterSnapshotQuotaExceededFault "ClusterSnapshotQuotaExceeded" // The request would result in the user exceeding the allowed number of cluster // snapshots. // -// * TagLimitExceededFault +// * ErrCodeTagLimitExceededFault "TagLimitExceededFault" // The request exceeds the limit of 10 tags for the resource. // -// * InvalidTagFault +// * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSnapshot func (c *Redshift) CreateClusterSnapshot(input *CreateClusterSnapshotInput) (*CreateClusterSnapshotOutput, error) { req, out := c.CreateClusterSnapshotRequest(input) err := req.Send() @@ -693,6 +700,7 @@ const opCreateClusterSubnetGroup = "CreateClusterSubnetGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSubnetGroup func (c *Redshift) CreateClusterSubnetGroupRequest(input *CreateClusterSubnetGroupInput) (req *request.Request, output *CreateClusterSubnetGroupOutput) { op := &request.Operation{ Name: opCreateClusterSubnetGroup, @@ -704,9 +712,8 @@ func (c *Redshift) CreateClusterSubnetGroupRequest(input *CreateClusterSubnetGro input = &CreateClusterSubnetGroupInput{} } - req = c.newRequest(op, input, output) output = &CreateClusterSubnetGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -716,7 +723,7 @@ func (c *Redshift) CreateClusterSubnetGroupRequest(input *CreateClusterSubnetGro // or more subnets in your existing Amazon Virtual Private Cloud (Amazon VPC) // when creating Amazon Redshift subnet group. // -// For information about subnet groups, go to Amazon Redshift Cluster Subnet +// For information about subnet groups, go to Amazon Redshift Cluster Subnet // Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-cluster-subnet-groups.html) // in the Amazon Redshift Cluster Management Guide. // @@ -728,38 +735,39 @@ func (c *Redshift) CreateClusterSubnetGroupRequest(input *CreateClusterSubnetGro // API operation CreateClusterSubnetGroup for usage and error information. // // Returned Error Codes: -// * ClusterSubnetGroupAlreadyExists +// * ErrCodeClusterSubnetGroupAlreadyExistsFault "ClusterSubnetGroupAlreadyExists" // A ClusterSubnetGroupName is already used by an existing cluster subnet group. // -// * ClusterSubnetGroupQuotaExceeded +// * ErrCodeClusterSubnetGroupQuotaExceededFault "ClusterSubnetGroupQuotaExceeded" // The request would result in user exceeding the allowed number of cluster // subnet groups. For information about increasing your quota, go to Limits // in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) // in the Amazon Redshift Cluster Management Guide. // -// * ClusterSubnetQuotaExceededFault +// * ErrCodeClusterSubnetQuotaExceededFault "ClusterSubnetQuotaExceededFault" // The request would result in user exceeding the allowed number of subnets // in a cluster subnet groups. For information about increasing your quota, // go to Limits in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) // in the Amazon Redshift Cluster Management Guide. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is not valid, or not all of the subnets are in the same // VPC. // -// * UnauthorizedOperation +// * ErrCodeUnauthorizedOperation "UnauthorizedOperation" // Your account is not authorized to perform the requested operation. // -// * TagLimitExceededFault +// * ErrCodeTagLimitExceededFault "TagLimitExceededFault" // The request exceeds the limit of 10 tags for the resource. // -// * InvalidTagFault +// * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // -// * DependentServiceRequestThrottlingFault +// * ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault" // The request cannot be completed because a dependent service is throttling // requests made by Amazon Redshift on your behalf. Wait and retry the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSubnetGroup func (c *Redshift) CreateClusterSubnetGroup(input *CreateClusterSubnetGroupInput) (*CreateClusterSubnetGroupOutput, error) { req, out := c.CreateClusterSubnetGroupRequest(input) err := req.Send() @@ -792,6 +800,7 @@ const opCreateEventSubscription = "CreateEventSubscription" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateEventSubscription func (c *Redshift) CreateEventSubscriptionRequest(input *CreateEventSubscriptionInput) (req *request.Request, output *CreateEventSubscriptionOutput) { op := &request.Operation{ Name: opCreateEventSubscription, @@ -803,9 +812,8 @@ func (c *Redshift) CreateEventSubscriptionRequest(input *CreateEventSubscription input = &CreateEventSubscriptionInput{} } - req = c.newRequest(op, input, output) output = &CreateEventSubscriptionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -825,8 +833,8 @@ func (c *Redshift) CreateEventSubscriptionRequest(input *CreateEventSubscription // send notifications for those ERROR events in the Availability and Backup // categories for the specified clusters. // -// If you specify both the source type and source IDs, such as source type -// = cluster and source identifier = my-cluster-1, notifications will be sent +// If you specify both the source type and source IDs, such as source type = +// cluster and source identifier = my-cluster-1, notifications will be sent // for all the cluster events for my-cluster-1. If you specify a source type // but do not specify a source identifier, you will receive notice of the events // for the objects of that type in your AWS account. If you do not specify either @@ -842,49 +850,50 @@ func (c *Redshift) CreateEventSubscriptionRequest(input *CreateEventSubscription // API operation CreateEventSubscription for usage and error information. // // Returned Error Codes: -// * EventSubscriptionQuotaExceeded +// * ErrCodeEventSubscriptionQuotaExceededFault "EventSubscriptionQuotaExceeded" // The request would exceed the allowed number of event subscriptions for this // account. For information about increasing your quota, go to Limits in Amazon // Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) // in the Amazon Redshift Cluster Management Guide. // -// * SubscriptionAlreadyExist +// * ErrCodeSubscriptionAlreadyExistFault "SubscriptionAlreadyExist" // There is already an existing event notification subscription with the specified // name. // -// * SNSInvalidTopic +// * ErrCodeSNSInvalidTopicFault "SNSInvalidTopic" // Amazon SNS has responded that there is a problem with the specified Amazon // SNS topic. // -// * SNSNoAuthorization +// * ErrCodeSNSNoAuthorizationFault "SNSNoAuthorization" // You do not have permission to publish to the specified Amazon SNS topic. // -// * SNSTopicArnNotFound +// * ErrCodeSNSTopicArnNotFoundFault "SNSTopicArnNotFound" // An Amazon SNS topic with the specified Amazon Resource Name (ARN) does not // exist. // -// * SubscriptionEventIdNotFound +// * ErrCodeSubscriptionEventIdNotFoundFault "SubscriptionEventIdNotFound" // An Amazon Redshift event with the specified event ID does not exist. // -// * SubscriptionCategoryNotFound +// * ErrCodeSubscriptionCategoryNotFoundFault "SubscriptionCategoryNotFound" // The value specified for the event category was not one of the allowed values, // or it specified a category that does not apply to the specified source type. // The allowed values are Configuration, Management, Monitoring, and Security. // -// * SubscriptionSeverityNotFound +// * ErrCodeSubscriptionSeverityNotFoundFault "SubscriptionSeverityNotFound" // The value specified for the event severity was not one of the allowed values, // or it specified a severity that does not apply to the specified source type. // The allowed values are ERROR and INFO. // -// * SourceNotFound +// * ErrCodeSourceNotFoundFault "SourceNotFound" // The specified Amazon Redshift event source could not be found. // -// * TagLimitExceededFault +// * ErrCodeTagLimitExceededFault "TagLimitExceededFault" // The request exceeds the limit of 10 tags for the resource. // -// * InvalidTagFault +// * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateEventSubscription func (c *Redshift) CreateEventSubscription(input *CreateEventSubscriptionInput) (*CreateEventSubscriptionOutput, error) { req, out := c.CreateEventSubscriptionRequest(input) err := req.Send() @@ -917,6 +926,7 @@ const opCreateHsmClientCertificate = "CreateHsmClientCertificate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateHsmClientCertificate func (c *Redshift) CreateHsmClientCertificateRequest(input *CreateHsmClientCertificateInput) (req *request.Request, output *CreateHsmClientCertificateOutput) { op := &request.Operation{ Name: opCreateHsmClientCertificate, @@ -928,9 +938,8 @@ func (c *Redshift) CreateHsmClientCertificateRequest(input *CreateHsmClientCerti input = &CreateHsmClientCertificateInput{} } - req = c.newRequest(op, input, output) output = &CreateHsmClientCertificateOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -954,21 +963,22 @@ func (c *Redshift) CreateHsmClientCertificateRequest(input *CreateHsmClientCerti // API operation CreateHsmClientCertificate for usage and error information. // // Returned Error Codes: -// * HsmClientCertificateAlreadyExistsFault +// * ErrCodeHsmClientCertificateAlreadyExistsFault "HsmClientCertificateAlreadyExistsFault" // There is already an existing Amazon Redshift HSM client certificate with // the specified identifier. // -// * HsmClientCertificateQuotaExceededFault +// * ErrCodeHsmClientCertificateQuotaExceededFault "HsmClientCertificateQuotaExceededFault" // The quota for HSM client certificates has been reached. For information about // increasing your quota, go to Limits in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) // in the Amazon Redshift Cluster Management Guide. // -// * TagLimitExceededFault +// * ErrCodeTagLimitExceededFault "TagLimitExceededFault" // The request exceeds the limit of 10 tags for the resource. // -// * InvalidTagFault +// * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateHsmClientCertificate func (c *Redshift) CreateHsmClientCertificate(input *CreateHsmClientCertificateInput) (*CreateHsmClientCertificateOutput, error) { req, out := c.CreateHsmClientCertificateRequest(input) err := req.Send() @@ -1001,6 +1011,7 @@ const opCreateHsmConfiguration = "CreateHsmConfiguration" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateHsmConfiguration func (c *Redshift) CreateHsmConfigurationRequest(input *CreateHsmConfigurationInput) (req *request.Request, output *CreateHsmConfigurationOutput) { op := &request.Operation{ Name: opCreateHsmConfiguration, @@ -1012,9 +1023,8 @@ func (c *Redshift) CreateHsmConfigurationRequest(input *CreateHsmConfigurationIn input = &CreateHsmConfigurationInput{} } - req = c.newRequest(op, input, output) output = &CreateHsmConfigurationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1039,21 +1049,22 @@ func (c *Redshift) CreateHsmConfigurationRequest(input *CreateHsmConfigurationIn // API operation CreateHsmConfiguration for usage and error information. // // Returned Error Codes: -// * HsmConfigurationAlreadyExistsFault +// * ErrCodeHsmConfigurationAlreadyExistsFault "HsmConfigurationAlreadyExistsFault" // There is already an existing Amazon Redshift HSM configuration with the specified // identifier. // -// * HsmConfigurationQuotaExceededFault +// * ErrCodeHsmConfigurationQuotaExceededFault "HsmConfigurationQuotaExceededFault" // The quota for HSM configurations has been reached. For information about // increasing your quota, go to Limits in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) // in the Amazon Redshift Cluster Management Guide. // -// * TagLimitExceededFault +// * ErrCodeTagLimitExceededFault "TagLimitExceededFault" // The request exceeds the limit of 10 tags for the resource. // -// * InvalidTagFault +// * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateHsmConfiguration func (c *Redshift) CreateHsmConfiguration(input *CreateHsmConfigurationInput) (*CreateHsmConfigurationOutput, error) { req, out := c.CreateHsmConfigurationRequest(input) err := req.Send() @@ -1086,6 +1097,7 @@ const opCreateSnapshotCopyGrant = "CreateSnapshotCopyGrant" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateSnapshotCopyGrant func (c *Redshift) CreateSnapshotCopyGrantRequest(input *CreateSnapshotCopyGrantInput) (req *request.Request, output *CreateSnapshotCopyGrantOutput) { op := &request.Operation{ Name: opCreateSnapshotCopyGrant, @@ -1097,9 +1109,8 @@ func (c *Redshift) CreateSnapshotCopyGrantRequest(input *CreateSnapshotCopyGrant input = &CreateSnapshotCopyGrantInput{} } - req = c.newRequest(op, input, output) output = &CreateSnapshotCopyGrantOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1109,8 +1120,8 @@ func (c *Redshift) CreateSnapshotCopyGrantRequest(input *CreateSnapshotCopyGrant // master key (CMK) from AWS Key Management Service (AWS KMS) to encrypt copied // snapshots in a destination region. // -// For more information about managing snapshot copy grants, go to Amazon -// Redshift Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) +// For more information about managing snapshot copy grants, go to Amazon Redshift +// Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) // in the Amazon Redshift Cluster Management Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1121,27 +1132,28 @@ func (c *Redshift) CreateSnapshotCopyGrantRequest(input *CreateSnapshotCopyGrant // API operation CreateSnapshotCopyGrant for usage and error information. // // Returned Error Codes: -// * SnapshotCopyGrantAlreadyExistsFault +// * ErrCodeSnapshotCopyGrantAlreadyExistsFault "SnapshotCopyGrantAlreadyExistsFault" // The snapshot copy grant can't be created because a grant with the same name // already exists. // -// * SnapshotCopyGrantQuotaExceededFault +// * ErrCodeSnapshotCopyGrantQuotaExceededFault "SnapshotCopyGrantQuotaExceededFault" // The AWS account has exceeded the maximum number of snapshot copy grants in // this region. // -// * LimitExceededFault +// * ErrCodeLimitExceededFault "LimitExceededFault" // The encryption key has exceeded its grant limit in AWS KMS. // -// * TagLimitExceededFault +// * ErrCodeTagLimitExceededFault "TagLimitExceededFault" // The request exceeds the limit of 10 tags for the resource. // -// * InvalidTagFault +// * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // -// * DependentServiceRequestThrottlingFault +// * ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault" // The request cannot be completed because a dependent service is throttling // requests made by Amazon Redshift on your behalf. Wait and retry the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateSnapshotCopyGrant func (c *Redshift) CreateSnapshotCopyGrant(input *CreateSnapshotCopyGrantInput) (*CreateSnapshotCopyGrantOutput, error) { req, out := c.CreateSnapshotCopyGrantRequest(input) err := req.Send() @@ -1174,6 +1186,7 @@ const opCreateTags = "CreateTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateTags func (c *Redshift) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, output *CreateTagsOutput) { op := &request.Operation{ Name: opCreateTags, @@ -1185,11 +1198,10 @@ func (c *Redshift) CreateTagsRequest(input *CreateTagsInput) (req *request.Reque input = &CreateTagsInput{} } + output = &CreateTagsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CreateTagsOutput{} - req.Data = output return } @@ -1211,15 +1223,16 @@ func (c *Redshift) CreateTagsRequest(input *CreateTagsInput) (req *request.Reque // API operation CreateTags for usage and error information. // // Returned Error Codes: -// * TagLimitExceededFault +// * ErrCodeTagLimitExceededFault "TagLimitExceededFault" // The request exceeds the limit of 10 tags for the resource. // -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // -// * InvalidTagFault +// * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateTags func (c *Redshift) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) { req, out := c.CreateTagsRequest(input) err := req.Send() @@ -1252,6 +1265,7 @@ const opDeleteCluster = "DeleteCluster" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteCluster func (c *Redshift) DeleteClusterRequest(input *DeleteClusterInput) (req *request.Request, output *DeleteClusterOutput) { op := &request.Operation{ Name: opDeleteCluster, @@ -1263,9 +1277,8 @@ func (c *Redshift) DeleteClusterRequest(input *DeleteClusterInput) (req *request input = &DeleteClusterInput{} } - req = c.newRequest(op, input, output) output = &DeleteClusterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1285,7 +1298,7 @@ func (c *Redshift) DeleteClusterRequest(input *DeleteClusterInput) (req *request // snapshot is being taken, then it's "deleting" once Amazon Redshift begins // deleting the cluster. // -// For more information about managing clusters, go to Amazon Redshift Clusters +// For more information about managing clusters, go to Amazon Redshift Clusters // (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html) // in the Amazon Redshift Cluster Management Guide. // @@ -1297,20 +1310,21 @@ func (c *Redshift) DeleteClusterRequest(input *DeleteClusterInput) (req *request // API operation DeleteCluster for usage and error information. // // Returned Error Codes: -// * ClusterNotFound +// * ErrCodeClusterNotFoundFault "ClusterNotFound" // The ClusterIdentifier parameter does not refer to an existing cluster. // -// * InvalidClusterState +// * ErrCodeInvalidClusterStateFault "InvalidClusterState" // The specified cluster is not in the available state. // -// * ClusterSnapshotAlreadyExists +// * ErrCodeClusterSnapshotAlreadyExistsFault "ClusterSnapshotAlreadyExists" // The value specified as a snapshot identifier is already used by an existing // snapshot. // -// * ClusterSnapshotQuotaExceeded +// * ErrCodeClusterSnapshotQuotaExceededFault "ClusterSnapshotQuotaExceeded" // The request would result in the user exceeding the allowed number of cluster // snapshots. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteCluster func (c *Redshift) DeleteCluster(input *DeleteClusterInput) (*DeleteClusterOutput, error) { req, out := c.DeleteClusterRequest(input) err := req.Send() @@ -1343,6 +1357,7 @@ const opDeleteClusterParameterGroup = "DeleteClusterParameterGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterParameterGroup func (c *Redshift) DeleteClusterParameterGroupRequest(input *DeleteClusterParameterGroupInput) (req *request.Request, output *DeleteClusterParameterGroupOutput) { op := &request.Operation{ Name: opDeleteClusterParameterGroup, @@ -1354,11 +1369,10 @@ func (c *Redshift) DeleteClusterParameterGroupRequest(input *DeleteClusterParame input = &DeleteClusterParameterGroupInput{} } + output = &DeleteClusterParameterGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteClusterParameterGroupOutput{} - req.Data = output return } @@ -1366,7 +1380,7 @@ func (c *Redshift) DeleteClusterParameterGroupRequest(input *DeleteClusterParame // // Deletes a specified Amazon Redshift parameter group. // -// You cannot delete a parameter group if it is associated with a cluster. +// You cannot delete a parameter group if it is associated with a cluster. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1376,14 +1390,15 @@ func (c *Redshift) DeleteClusterParameterGroupRequest(input *DeleteClusterParame // API operation DeleteClusterParameterGroup for usage and error information. // // Returned Error Codes: -// * InvalidClusterParameterGroupState +// * ErrCodeInvalidClusterParameterGroupStateFault "InvalidClusterParameterGroupState" // The cluster parameter group action can not be completed because another task // is in progress that involves the parameter group. Wait a few moments and // try the operation again. // -// * ClusterParameterGroupNotFound +// * ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound" // The parameter group name does not refer to an existing parameter group. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterParameterGroup func (c *Redshift) DeleteClusterParameterGroup(input *DeleteClusterParameterGroupInput) (*DeleteClusterParameterGroupOutput, error) { req, out := c.DeleteClusterParameterGroupRequest(input) err := req.Send() @@ -1416,6 +1431,7 @@ const opDeleteClusterSecurityGroup = "DeleteClusterSecurityGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSecurityGroup func (c *Redshift) DeleteClusterSecurityGroupRequest(input *DeleteClusterSecurityGroupInput) (req *request.Request, output *DeleteClusterSecurityGroupOutput) { op := &request.Operation{ Name: opDeleteClusterSecurityGroup, @@ -1427,11 +1443,10 @@ func (c *Redshift) DeleteClusterSecurityGroupRequest(input *DeleteClusterSecurit input = &DeleteClusterSecurityGroupInput{} } + output = &DeleteClusterSecurityGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteClusterSecurityGroupOutput{} - req.Data = output return } @@ -1439,11 +1454,11 @@ func (c *Redshift) DeleteClusterSecurityGroupRequest(input *DeleteClusterSecurit // // Deletes an Amazon Redshift security group. // -// You cannot delete a security group that is associated with any clusters. +// You cannot delete a security group that is associated with any clusters. // You cannot delete the default security group. // -// For information about managing security groups, go to Amazon Redshift -// Cluster Security Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html) +// For information about managing security groups, go to Amazon Redshift Cluster +// Security Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html) // in the Amazon Redshift Cluster Management Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1454,13 +1469,14 @@ func (c *Redshift) DeleteClusterSecurityGroupRequest(input *DeleteClusterSecurit // API operation DeleteClusterSecurityGroup for usage and error information. // // Returned Error Codes: -// * InvalidClusterSecurityGroupState +// * ErrCodeInvalidClusterSecurityGroupStateFault "InvalidClusterSecurityGroupState" // The state of the cluster security group is not available. // -// * ClusterSecurityGroupNotFound +// * ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound" // The cluster security group name does not refer to an existing cluster security // group. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSecurityGroup func (c *Redshift) DeleteClusterSecurityGroup(input *DeleteClusterSecurityGroupInput) (*DeleteClusterSecurityGroupOutput, error) { req, out := c.DeleteClusterSecurityGroupRequest(input) err := req.Send() @@ -1493,6 +1509,7 @@ const opDeleteClusterSnapshot = "DeleteClusterSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSnapshot func (c *Redshift) DeleteClusterSnapshotRequest(input *DeleteClusterSnapshotInput) (req *request.Request, output *DeleteClusterSnapshotOutput) { op := &request.Operation{ Name: opDeleteClusterSnapshot, @@ -1504,9 +1521,8 @@ func (c *Redshift) DeleteClusterSnapshotRequest(input *DeleteClusterSnapshotInpu input = &DeleteClusterSnapshotInput{} } - req = c.newRequest(op, input, output) output = &DeleteClusterSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1529,13 +1545,14 @@ func (c *Redshift) DeleteClusterSnapshotRequest(input *DeleteClusterSnapshotInpu // API operation DeleteClusterSnapshot for usage and error information. // // Returned Error Codes: -// * InvalidClusterSnapshotState +// * ErrCodeInvalidClusterSnapshotStateFault "InvalidClusterSnapshotState" // The specified cluster snapshot is not in the available state, or other accounts // are authorized to access the snapshot. // -// * ClusterSnapshotNotFound +// * ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound" // The snapshot identifier does not refer to an existing cluster snapshot. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSnapshot func (c *Redshift) DeleteClusterSnapshot(input *DeleteClusterSnapshotInput) (*DeleteClusterSnapshotOutput, error) { req, out := c.DeleteClusterSnapshotRequest(input) err := req.Send() @@ -1568,6 +1585,7 @@ const opDeleteClusterSubnetGroup = "DeleteClusterSubnetGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSubnetGroup func (c *Redshift) DeleteClusterSubnetGroupRequest(input *DeleteClusterSubnetGroupInput) (req *request.Request, output *DeleteClusterSubnetGroupOutput) { op := &request.Operation{ Name: opDeleteClusterSubnetGroup, @@ -1579,11 +1597,10 @@ func (c *Redshift) DeleteClusterSubnetGroupRequest(input *DeleteClusterSubnetGro input = &DeleteClusterSubnetGroupInput{} } + output = &DeleteClusterSubnetGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteClusterSubnetGroupOutput{} - req.Data = output return } @@ -1599,16 +1616,17 @@ func (c *Redshift) DeleteClusterSubnetGroupRequest(input *DeleteClusterSubnetGro // API operation DeleteClusterSubnetGroup for usage and error information. // // Returned Error Codes: -// * InvalidClusterSubnetGroupStateFault +// * ErrCodeInvalidClusterSubnetGroupStateFault "InvalidClusterSubnetGroupStateFault" // The cluster subnet group cannot be deleted because it is in use. // -// * InvalidClusterSubnetStateFault +// * ErrCodeInvalidClusterSubnetStateFault "InvalidClusterSubnetStateFault" // The state of the subnet is invalid. // -// * ClusterSubnetGroupNotFoundFault +// * ErrCodeClusterSubnetGroupNotFoundFault "ClusterSubnetGroupNotFoundFault" // The cluster subnet group name does not refer to an existing cluster subnet // group. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSubnetGroup func (c *Redshift) DeleteClusterSubnetGroup(input *DeleteClusterSubnetGroupInput) (*DeleteClusterSubnetGroupOutput, error) { req, out := c.DeleteClusterSubnetGroupRequest(input) err := req.Send() @@ -1641,6 +1659,7 @@ const opDeleteEventSubscription = "DeleteEventSubscription" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteEventSubscription func (c *Redshift) DeleteEventSubscriptionRequest(input *DeleteEventSubscriptionInput) (req *request.Request, output *DeleteEventSubscriptionOutput) { op := &request.Operation{ Name: opDeleteEventSubscription, @@ -1652,11 +1671,10 @@ func (c *Redshift) DeleteEventSubscriptionRequest(input *DeleteEventSubscription input = &DeleteEventSubscriptionInput{} } + output = &DeleteEventSubscriptionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteEventSubscriptionOutput{} - req.Data = output return } @@ -1672,14 +1690,15 @@ func (c *Redshift) DeleteEventSubscriptionRequest(input *DeleteEventSubscription // API operation DeleteEventSubscription for usage and error information. // // Returned Error Codes: -// * SubscriptionNotFound +// * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound" // An Amazon Redshift event notification subscription with the specified name // does not exist. // -// * InvalidSubscriptionStateFault +// * ErrCodeInvalidSubscriptionStateFault "InvalidSubscriptionStateFault" // The subscription request is invalid because it is a duplicate request. This // subscription request is already in progress. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteEventSubscription func (c *Redshift) DeleteEventSubscription(input *DeleteEventSubscriptionInput) (*DeleteEventSubscriptionOutput, error) { req, out := c.DeleteEventSubscriptionRequest(input) err := req.Send() @@ -1712,6 +1731,7 @@ const opDeleteHsmClientCertificate = "DeleteHsmClientCertificate" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteHsmClientCertificate func (c *Redshift) DeleteHsmClientCertificateRequest(input *DeleteHsmClientCertificateInput) (req *request.Request, output *DeleteHsmClientCertificateOutput) { op := &request.Operation{ Name: opDeleteHsmClientCertificate, @@ -1723,11 +1743,10 @@ func (c *Redshift) DeleteHsmClientCertificateRequest(input *DeleteHsmClientCerti input = &DeleteHsmClientCertificateInput{} } + output = &DeleteHsmClientCertificateOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteHsmClientCertificateOutput{} - req.Data = output return } @@ -1743,13 +1762,14 @@ func (c *Redshift) DeleteHsmClientCertificateRequest(input *DeleteHsmClientCerti // API operation DeleteHsmClientCertificate for usage and error information. // // Returned Error Codes: -// * InvalidHsmClientCertificateStateFault +// * ErrCodeInvalidHsmClientCertificateStateFault "InvalidHsmClientCertificateStateFault" // The specified HSM client certificate is not in the available state, or it // is still in use by one or more Amazon Redshift clusters. // -// * HsmClientCertificateNotFoundFault +// * ErrCodeHsmClientCertificateNotFoundFault "HsmClientCertificateNotFoundFault" // There is no Amazon Redshift HSM client certificate with the specified identifier. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteHsmClientCertificate func (c *Redshift) DeleteHsmClientCertificate(input *DeleteHsmClientCertificateInput) (*DeleteHsmClientCertificateOutput, error) { req, out := c.DeleteHsmClientCertificateRequest(input) err := req.Send() @@ -1782,6 +1802,7 @@ const opDeleteHsmConfiguration = "DeleteHsmConfiguration" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteHsmConfiguration func (c *Redshift) DeleteHsmConfigurationRequest(input *DeleteHsmConfigurationInput) (req *request.Request, output *DeleteHsmConfigurationOutput) { op := &request.Operation{ Name: opDeleteHsmConfiguration, @@ -1793,11 +1814,10 @@ func (c *Redshift) DeleteHsmConfigurationRequest(input *DeleteHsmConfigurationIn input = &DeleteHsmConfigurationInput{} } + output = &DeleteHsmConfigurationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteHsmConfigurationOutput{} - req.Data = output return } @@ -1813,13 +1833,14 @@ func (c *Redshift) DeleteHsmConfigurationRequest(input *DeleteHsmConfigurationIn // API operation DeleteHsmConfiguration for usage and error information. // // Returned Error Codes: -// * InvalidHsmConfigurationStateFault +// * ErrCodeInvalidHsmConfigurationStateFault "InvalidHsmConfigurationStateFault" // The specified HSM configuration is not in the available state, or it is still // in use by one or more Amazon Redshift clusters. // -// * HsmConfigurationNotFoundFault +// * ErrCodeHsmConfigurationNotFoundFault "HsmConfigurationNotFoundFault" // There is no Amazon Redshift HSM configuration with the specified identifier. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteHsmConfiguration func (c *Redshift) DeleteHsmConfiguration(input *DeleteHsmConfigurationInput) (*DeleteHsmConfigurationOutput, error) { req, out := c.DeleteHsmConfigurationRequest(input) err := req.Send() @@ -1852,6 +1873,7 @@ const opDeleteSnapshotCopyGrant = "DeleteSnapshotCopyGrant" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteSnapshotCopyGrant func (c *Redshift) DeleteSnapshotCopyGrantRequest(input *DeleteSnapshotCopyGrantInput) (req *request.Request, output *DeleteSnapshotCopyGrantOutput) { op := &request.Operation{ Name: opDeleteSnapshotCopyGrant, @@ -1863,11 +1885,10 @@ func (c *Redshift) DeleteSnapshotCopyGrantRequest(input *DeleteSnapshotCopyGrant input = &DeleteSnapshotCopyGrantInput{} } + output = &DeleteSnapshotCopyGrantOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteSnapshotCopyGrantOutput{} - req.Data = output return } @@ -1883,14 +1904,15 @@ func (c *Redshift) DeleteSnapshotCopyGrantRequest(input *DeleteSnapshotCopyGrant // API operation DeleteSnapshotCopyGrant for usage and error information. // // Returned Error Codes: -// * InvalidSnapshotCopyGrantStateFault +// * ErrCodeInvalidSnapshotCopyGrantStateFault "InvalidSnapshotCopyGrantStateFault" // The snapshot copy grant can't be deleted because it is used by one or more // clusters. // -// * SnapshotCopyGrantNotFoundFault +// * ErrCodeSnapshotCopyGrantNotFoundFault "SnapshotCopyGrantNotFoundFault" // The specified snapshot copy grant can't be found. Make sure that the name // is typed correctly and that the grant exists in the destination region. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteSnapshotCopyGrant func (c *Redshift) DeleteSnapshotCopyGrant(input *DeleteSnapshotCopyGrantInput) (*DeleteSnapshotCopyGrantOutput, error) { req, out := c.DeleteSnapshotCopyGrantRequest(input) err := req.Send() @@ -1923,6 +1945,7 @@ const opDeleteTags = "DeleteTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteTags func (c *Redshift) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) { op := &request.Operation{ Name: opDeleteTags, @@ -1934,11 +1957,10 @@ func (c *Redshift) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Reque input = &DeleteTagsInput{} } + output = &DeleteTagsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteTagsOutput{} - req.Data = output return } @@ -1955,12 +1977,13 @@ func (c *Redshift) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Reque // API operation DeleteTags for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // -// * InvalidTagFault +// * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteTags func (c *Redshift) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) err := req.Send() @@ -1993,6 +2016,7 @@ const opDescribeClusterParameterGroups = "DescribeClusterParameterGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterParameterGroups func (c *Redshift) DescribeClusterParameterGroupsRequest(input *DescribeClusterParameterGroupsInput) (req *request.Request, output *DescribeClusterParameterGroupsOutput) { op := &request.Operation{ Name: opDescribeClusterParameterGroups, @@ -2010,9 +2034,8 @@ func (c *Redshift) DescribeClusterParameterGroupsRequest(input *DescribeClusterP input = &DescribeClusterParameterGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeClusterParameterGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2024,12 +2047,12 @@ func (c *Redshift) DescribeClusterParameterGroupsRequest(input *DescribeClusterP // family name. You can optionally specify a name to retrieve the description // of a specific parameter group. // -// For more information about parameters and parameter groups, go to Amazon +// For more information about parameters and parameter groups, go to Amazon // Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) // in the Amazon Redshift Cluster Management Guide. // -// If you specify both tag keys and tag values in the same request, Amazon -// Redshift returns all parameter groups that match any combination of the specified +// If you specify both tag keys and tag values in the same request, Amazon Redshift +// returns all parameter groups that match any combination of the specified // keys and values. For example, if you have owner and environment for tag keys, // and admin and test for tag values, all parameter groups that have any combination // of those values are returned. @@ -2046,12 +2069,13 @@ func (c *Redshift) DescribeClusterParameterGroupsRequest(input *DescribeClusterP // API operation DescribeClusterParameterGroups for usage and error information. // // Returned Error Codes: -// * ClusterParameterGroupNotFound +// * ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound" // The parameter group name does not refer to an existing parameter group. // -// * InvalidTagFault +// * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterParameterGroups func (c *Redshift) DescribeClusterParameterGroups(input *DescribeClusterParameterGroupsInput) (*DescribeClusterParameterGroupsOutput, error) { req, out := c.DescribeClusterParameterGroupsRequest(input) err := req.Send() @@ -2109,6 +2133,7 @@ const opDescribeClusterParameters = "DescribeClusterParameters" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterParameters func (c *Redshift) DescribeClusterParametersRequest(input *DescribeClusterParametersInput) (req *request.Request, output *DescribeClusterParametersOutput) { op := &request.Operation{ Name: opDescribeClusterParameters, @@ -2126,9 +2151,8 @@ func (c *Redshift) DescribeClusterParametersRequest(input *DescribeClusterParame input = &DescribeClusterParametersInput{} } - req = c.newRequest(op, input, output) output = &DescribeClusterParametersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2143,7 +2167,7 @@ func (c *Redshift) DescribeClusterParametersRequest(input *DescribeClusterParame // For example, to retrieve parameters that were modified by a user action such // as from ModifyClusterParameterGroup, you can specify source equal to user. // -// For more information about parameters and parameter groups, go to Amazon +// For more information about parameters and parameter groups, go to Amazon // Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) // in the Amazon Redshift Cluster Management Guide. // @@ -2155,9 +2179,10 @@ func (c *Redshift) DescribeClusterParametersRequest(input *DescribeClusterParame // API operation DescribeClusterParameters for usage and error information. // // Returned Error Codes: -// * ClusterParameterGroupNotFound +// * ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound" // The parameter group name does not refer to an existing parameter group. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterParameters func (c *Redshift) DescribeClusterParameters(input *DescribeClusterParametersInput) (*DescribeClusterParametersOutput, error) { req, out := c.DescribeClusterParametersRequest(input) err := req.Send() @@ -2215,6 +2240,7 @@ const opDescribeClusterSecurityGroups = "DescribeClusterSecurityGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSecurityGroups func (c *Redshift) DescribeClusterSecurityGroupsRequest(input *DescribeClusterSecurityGroupsInput) (req *request.Request, output *DescribeClusterSecurityGroupsOutput) { op := &request.Operation{ Name: opDescribeClusterSecurityGroups, @@ -2232,9 +2258,8 @@ func (c *Redshift) DescribeClusterSecurityGroupsRequest(input *DescribeClusterSe input = &DescribeClusterSecurityGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeClusterSecurityGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2244,13 +2269,13 @@ func (c *Redshift) DescribeClusterSecurityGroupsRequest(input *DescribeClusterSe // a security group is specified, the response will contain only information // about only that security group. // -// For information about managing security groups, go to Amazon Redshift Cluster +// For information about managing security groups, go to Amazon Redshift Cluster // Security Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html) // in the Amazon Redshift Cluster Management Guide. // -// If you specify both tag keys and tag values in the same request, Amazon -// Redshift returns all security groups that match any combination of the specified -// keys and values. For example, if you have owner and environment for tag keys, +// If you specify both tag keys and tag values in the same request, Amazon Redshift +// returns all security groups that match any combination of the specified keys +// and values. For example, if you have owner and environment for tag keys, // and admin and test for tag values, all security groups that have any combination // of those values are returned. // @@ -2266,13 +2291,14 @@ func (c *Redshift) DescribeClusterSecurityGroupsRequest(input *DescribeClusterSe // API operation DescribeClusterSecurityGroups for usage and error information. // // Returned Error Codes: -// * ClusterSecurityGroupNotFound +// * ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound" // The cluster security group name does not refer to an existing cluster security // group. // -// * InvalidTagFault +// * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSecurityGroups func (c *Redshift) DescribeClusterSecurityGroups(input *DescribeClusterSecurityGroupsInput) (*DescribeClusterSecurityGroupsOutput, error) { req, out := c.DescribeClusterSecurityGroupsRequest(input) err := req.Send() @@ -2330,6 +2356,7 @@ const opDescribeClusterSnapshots = "DescribeClusterSnapshots" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSnapshots func (c *Redshift) DescribeClusterSnapshotsRequest(input *DescribeClusterSnapshotsInput) (req *request.Request, output *DescribeClusterSnapshotsOutput) { op := &request.Operation{ Name: opDescribeClusterSnapshots, @@ -2347,9 +2374,8 @@ func (c *Redshift) DescribeClusterSnapshotsRequest(input *DescribeClusterSnapsho input = &DescribeClusterSnapshotsInput{} } - req = c.newRequest(op, input, output) output = &DescribeClusterSnapshotsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2360,17 +2386,16 @@ func (c *Redshift) DescribeClusterSnapshotsRequest(input *DescribeClusterSnapsho // of all clusters that are owned by you AWS customer account. No information // is returned for snapshots owned by inactive AWS customer accounts. // -// If you specify both tag keys and tag values in the same request, Amazon -// Redshift returns all snapshots that match any combination of the specified -// keys and values. For example, if you have owner and environment for tag keys, -// and admin and test for tag values, all snapshots that have any combination -// of those values are returned. Only snapshots that you own are returned in -// the response; shared snapshots are not returned with the tag key and tag -// value request parameters. +// If you specify both tag keys and tag values in the same request, Amazon Redshift +// returns all snapshots that match any combination of the specified keys and +// values. For example, if you have owner and environment for tag keys, and +// admin and test for tag values, all snapshots that have any combination of +// those values are returned. Only snapshots that you own are returned in the +// response; shared snapshots are not returned with the tag key and tag value +// request parameters. // -// If both tag keys and values are omitted from the request, snapshots are -// returned regardless of whether they have tag keys or values associated with -// them. +// If both tag keys and values are omitted from the request, snapshots are returned +// regardless of whether they have tag keys or values associated with them. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2380,12 +2405,13 @@ func (c *Redshift) DescribeClusterSnapshotsRequest(input *DescribeClusterSnapsho // API operation DescribeClusterSnapshots for usage and error information. // // Returned Error Codes: -// * ClusterSnapshotNotFound +// * ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound" // The snapshot identifier does not refer to an existing cluster snapshot. // -// * InvalidTagFault +// * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSnapshots func (c *Redshift) DescribeClusterSnapshots(input *DescribeClusterSnapshotsInput) (*DescribeClusterSnapshotsOutput, error) { req, out := c.DescribeClusterSnapshotsRequest(input) err := req.Send() @@ -2443,6 +2469,7 @@ const opDescribeClusterSubnetGroups = "DescribeClusterSubnetGroups" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSubnetGroups func (c *Redshift) DescribeClusterSubnetGroupsRequest(input *DescribeClusterSubnetGroupsInput) (req *request.Request, output *DescribeClusterSubnetGroupsOutput) { op := &request.Operation{ Name: opDescribeClusterSubnetGroups, @@ -2460,9 +2487,8 @@ func (c *Redshift) DescribeClusterSubnetGroupsRequest(input *DescribeClusterSubn input = &DescribeClusterSubnetGroupsInput{} } - req = c.newRequest(op, input, output) output = &DescribeClusterSubnetGroupsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2472,15 +2498,15 @@ func (c *Redshift) DescribeClusterSubnetGroupsRequest(input *DescribeClusterSubn // about your cluster subnet groups. By default, this operation returns information // about all cluster subnet groups that are defined in you AWS account. // -// If you specify both tag keys and tag values in the same request, Amazon -// Redshift returns all subnet groups that match any combination of the specified -// keys and values. For example, if you have owner and environment for tag keys, +// If you specify both tag keys and tag values in the same request, Amazon Redshift +// returns all subnet groups that match any combination of the specified keys +// and values. For example, if you have owner and environment for tag keys, // and admin and test for tag values, all subnet groups that have any combination // of those values are returned. // -// If both tag keys and values are omitted from the request, subnet groups -// are returned regardless of whether they have tag keys or values associated -// with them. +// If both tag keys and values are omitted from the request, subnet groups are +// returned regardless of whether they have tag keys or values associated with +// them. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2490,13 +2516,14 @@ func (c *Redshift) DescribeClusterSubnetGroupsRequest(input *DescribeClusterSubn // API operation DescribeClusterSubnetGroups for usage and error information. // // Returned Error Codes: -// * ClusterSubnetGroupNotFoundFault +// * ErrCodeClusterSubnetGroupNotFoundFault "ClusterSubnetGroupNotFoundFault" // The cluster subnet group name does not refer to an existing cluster subnet // group. // -// * InvalidTagFault +// * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSubnetGroups func (c *Redshift) DescribeClusterSubnetGroups(input *DescribeClusterSubnetGroupsInput) (*DescribeClusterSubnetGroupsOutput, error) { req, out := c.DescribeClusterSubnetGroupsRequest(input) err := req.Send() @@ -2554,6 +2581,7 @@ const opDescribeClusterVersions = "DescribeClusterVersions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterVersions func (c *Redshift) DescribeClusterVersionsRequest(input *DescribeClusterVersionsInput) (req *request.Request, output *DescribeClusterVersionsOutput) { op := &request.Operation{ Name: opDescribeClusterVersions, @@ -2571,9 +2599,8 @@ func (c *Redshift) DescribeClusterVersionsRequest(input *DescribeClusterVersions input = &DescribeClusterVersionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeClusterVersionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2591,6 +2618,7 @@ func (c *Redshift) DescribeClusterVersionsRequest(input *DescribeClusterVersions // // See the AWS API reference guide for Amazon Redshift's // API operation DescribeClusterVersions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterVersions func (c *Redshift) DescribeClusterVersions(input *DescribeClusterVersionsInput) (*DescribeClusterVersionsOutput, error) { req, out := c.DescribeClusterVersionsRequest(input) err := req.Send() @@ -2648,6 +2676,7 @@ const opDescribeClusters = "DescribeClusters" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusters func (c *Redshift) DescribeClustersRequest(input *DescribeClustersInput) (req *request.Request, output *DescribeClustersOutput) { op := &request.Operation{ Name: opDescribeClusters, @@ -2665,9 +2694,8 @@ func (c *Redshift) DescribeClustersRequest(input *DescribeClustersInput) (req *r input = &DescribeClustersInput{} } - req = c.newRequest(op, input, output) output = &DescribeClustersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2679,11 +2707,11 @@ func (c *Redshift) DescribeClustersRequest(input *DescribeClustersInput) (req *r // about managing clusters, go to Amazon Redshift Clusters (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html) // in the Amazon Redshift Cluster Management Guide. // -// If you specify both tag keys and tag values in the same request, Amazon -// Redshift returns all clusters that match any combination of the specified -// keys and values. For example, if you have owner and environment for tag keys, -// and admin and test for tag values, all clusters that have any combination -// of those values are returned. +// If you specify both tag keys and tag values in the same request, Amazon Redshift +// returns all clusters that match any combination of the specified keys and +// values. For example, if you have owner and environment for tag keys, and +// admin and test for tag values, all clusters that have any combination of +// those values are returned. // // If both tag keys and values are omitted from the request, clusters are returned // regardless of whether they have tag keys or values associated with them. @@ -2696,12 +2724,13 @@ func (c *Redshift) DescribeClustersRequest(input *DescribeClustersInput) (req *r // API operation DescribeClusters for usage and error information. // // Returned Error Codes: -// * ClusterNotFound +// * ErrCodeClusterNotFoundFault "ClusterNotFound" // The ClusterIdentifier parameter does not refer to an existing cluster. // -// * InvalidTagFault +// * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusters func (c *Redshift) DescribeClusters(input *DescribeClustersInput) (*DescribeClustersOutput, error) { req, out := c.DescribeClustersRequest(input) err := req.Send() @@ -2759,6 +2788,7 @@ const opDescribeDefaultClusterParameters = "DescribeDefaultClusterParameters" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeDefaultClusterParameters func (c *Redshift) DescribeDefaultClusterParametersRequest(input *DescribeDefaultClusterParametersInput) (req *request.Request, output *DescribeDefaultClusterParametersOutput) { op := &request.Operation{ Name: opDescribeDefaultClusterParameters, @@ -2776,9 +2806,8 @@ func (c *Redshift) DescribeDefaultClusterParametersRequest(input *DescribeDefaul input = &DescribeDefaultClusterParametersInput{} } - req = c.newRequest(op, input, output) output = &DescribeDefaultClusterParametersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2786,7 +2815,7 @@ func (c *Redshift) DescribeDefaultClusterParametersRequest(input *DescribeDefaul // // Returns a list of parameter settings for the specified parameter group family. // -// For more information about parameters and parameter groups, go to Amazon +// For more information about parameters and parameter groups, go to Amazon // Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) // in the Amazon Redshift Cluster Management Guide. // @@ -2796,6 +2825,7 @@ func (c *Redshift) DescribeDefaultClusterParametersRequest(input *DescribeDefaul // // See the AWS API reference guide for Amazon Redshift's // API operation DescribeDefaultClusterParameters for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeDefaultClusterParameters func (c *Redshift) DescribeDefaultClusterParameters(input *DescribeDefaultClusterParametersInput) (*DescribeDefaultClusterParametersOutput, error) { req, out := c.DescribeDefaultClusterParametersRequest(input) err := req.Send() @@ -2853,6 +2883,7 @@ const opDescribeEventCategories = "DescribeEventCategories" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEventCategories func (c *Redshift) DescribeEventCategoriesRequest(input *DescribeEventCategoriesInput) (req *request.Request, output *DescribeEventCategoriesOutput) { op := &request.Operation{ Name: opDescribeEventCategories, @@ -2864,9 +2895,8 @@ func (c *Redshift) DescribeEventCategoriesRequest(input *DescribeEventCategories input = &DescribeEventCategoriesInput{} } - req = c.newRequest(op, input, output) output = &DescribeEventCategoriesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2882,6 +2912,7 @@ func (c *Redshift) DescribeEventCategoriesRequest(input *DescribeEventCategories // // See the AWS API reference guide for Amazon Redshift's // API operation DescribeEventCategories for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEventCategories func (c *Redshift) DescribeEventCategories(input *DescribeEventCategoriesInput) (*DescribeEventCategoriesOutput, error) { req, out := c.DescribeEventCategoriesRequest(input) err := req.Send() @@ -2914,6 +2945,7 @@ const opDescribeEventSubscriptions = "DescribeEventSubscriptions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEventSubscriptions func (c *Redshift) DescribeEventSubscriptionsRequest(input *DescribeEventSubscriptionsInput) (req *request.Request, output *DescribeEventSubscriptionsOutput) { op := &request.Operation{ Name: opDescribeEventSubscriptions, @@ -2931,9 +2963,8 @@ func (c *Redshift) DescribeEventSubscriptionsRequest(input *DescribeEventSubscri input = &DescribeEventSubscriptionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeEventSubscriptionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2951,10 +2982,11 @@ func (c *Redshift) DescribeEventSubscriptionsRequest(input *DescribeEventSubscri // API operation DescribeEventSubscriptions for usage and error information. // // Returned Error Codes: -// * SubscriptionNotFound +// * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound" // An Amazon Redshift event notification subscription with the specified name // does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEventSubscriptions func (c *Redshift) DescribeEventSubscriptions(input *DescribeEventSubscriptionsInput) (*DescribeEventSubscriptionsOutput, error) { req, out := c.DescribeEventSubscriptionsRequest(input) err := req.Send() @@ -3012,6 +3044,7 @@ const opDescribeEvents = "DescribeEvents" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEvents func (c *Redshift) DescribeEventsRequest(input *DescribeEventsInput) (req *request.Request, output *DescribeEventsOutput) { op := &request.Operation{ Name: opDescribeEvents, @@ -3029,9 +3062,8 @@ func (c *Redshift) DescribeEventsRequest(input *DescribeEventsInput) (req *reque input = &DescribeEventsInput{} } - req = c.newRequest(op, input, output) output = &DescribeEventsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3048,6 +3080,7 @@ func (c *Redshift) DescribeEventsRequest(input *DescribeEventsInput) (req *reque // // See the AWS API reference guide for Amazon Redshift's // API operation DescribeEvents for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEvents func (c *Redshift) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) { req, out := c.DescribeEventsRequest(input) err := req.Send() @@ -3105,6 +3138,7 @@ const opDescribeHsmClientCertificates = "DescribeHsmClientCertificates" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeHsmClientCertificates func (c *Redshift) DescribeHsmClientCertificatesRequest(input *DescribeHsmClientCertificatesInput) (req *request.Request, output *DescribeHsmClientCertificatesOutput) { op := &request.Operation{ Name: opDescribeHsmClientCertificates, @@ -3122,9 +3156,8 @@ func (c *Redshift) DescribeHsmClientCertificatesRequest(input *DescribeHsmClient input = &DescribeHsmClientCertificatesInput{} } - req = c.newRequest(op, input, output) output = &DescribeHsmClientCertificatesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3134,11 +3167,11 @@ func (c *Redshift) DescribeHsmClientCertificatesRequest(input *DescribeHsmClient // ID is specified, returns information about all the HSM certificates owned // by your AWS customer account. // -// If you specify both tag keys and tag values in the same request, Amazon -// Redshift returns all HSM client certificates that match any combination of -// the specified keys and values. For example, if you have owner and environment -// for tag keys, and admin and test for tag values, all HSM client certificates -// that have any combination of those values are returned. +// If you specify both tag keys and tag values in the same request, Amazon Redshift +// returns all HSM client certificates that match any combination of the specified +// keys and values. For example, if you have owner and environment for tag keys, +// and admin and test for tag values, all HSM client certificates that have +// any combination of those values are returned. // // If both tag keys and values are omitted from the request, HSM client certificates // are returned regardless of whether they have tag keys or values associated @@ -3152,12 +3185,13 @@ func (c *Redshift) DescribeHsmClientCertificatesRequest(input *DescribeHsmClient // API operation DescribeHsmClientCertificates for usage and error information. // // Returned Error Codes: -// * HsmClientCertificateNotFoundFault +// * ErrCodeHsmClientCertificateNotFoundFault "HsmClientCertificateNotFoundFault" // There is no Amazon Redshift HSM client certificate with the specified identifier. // -// * InvalidTagFault +// * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeHsmClientCertificates func (c *Redshift) DescribeHsmClientCertificates(input *DescribeHsmClientCertificatesInput) (*DescribeHsmClientCertificatesOutput, error) { req, out := c.DescribeHsmClientCertificatesRequest(input) err := req.Send() @@ -3215,6 +3249,7 @@ const opDescribeHsmConfigurations = "DescribeHsmConfigurations" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeHsmConfigurations func (c *Redshift) DescribeHsmConfigurationsRequest(input *DescribeHsmConfigurationsInput) (req *request.Request, output *DescribeHsmConfigurationsOutput) { op := &request.Operation{ Name: opDescribeHsmConfigurations, @@ -3232,9 +3267,8 @@ func (c *Redshift) DescribeHsmConfigurationsRequest(input *DescribeHsmConfigurat input = &DescribeHsmConfigurationsInput{} } - req = c.newRequest(op, input, output) output = &DescribeHsmConfigurationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3244,9 +3278,9 @@ func (c *Redshift) DescribeHsmConfigurationsRequest(input *DescribeHsmConfigurat // If no configuration ID is specified, returns information about all the HSM // configurations owned by your AWS customer account. // -// If you specify both tag keys and tag values in the same request, Amazon -// Redshift returns all HSM connections that match any combination of the specified -// keys and values. For example, if you have owner and environment for tag keys, +// If you specify both tag keys and tag values in the same request, Amazon Redshift +// returns all HSM connections that match any combination of the specified keys +// and values. For example, if you have owner and environment for tag keys, // and admin and test for tag values, all HSM connections that have any combination // of those values are returned. // @@ -3262,12 +3296,13 @@ func (c *Redshift) DescribeHsmConfigurationsRequest(input *DescribeHsmConfigurat // API operation DescribeHsmConfigurations for usage and error information. // // Returned Error Codes: -// * HsmConfigurationNotFoundFault +// * ErrCodeHsmConfigurationNotFoundFault "HsmConfigurationNotFoundFault" // There is no Amazon Redshift HSM configuration with the specified identifier. // -// * InvalidTagFault +// * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeHsmConfigurations func (c *Redshift) DescribeHsmConfigurations(input *DescribeHsmConfigurationsInput) (*DescribeHsmConfigurationsOutput, error) { req, out := c.DescribeHsmConfigurationsRequest(input) err := req.Send() @@ -3325,6 +3360,7 @@ const opDescribeLoggingStatus = "DescribeLoggingStatus" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeLoggingStatus func (c *Redshift) DescribeLoggingStatusRequest(input *DescribeLoggingStatusInput) (req *request.Request, output *LoggingStatus) { op := &request.Operation{ Name: opDescribeLoggingStatus, @@ -3336,9 +3372,8 @@ func (c *Redshift) DescribeLoggingStatusRequest(input *DescribeLoggingStatusInpu input = &DescribeLoggingStatusInput{} } - req = c.newRequest(op, input, output) output = &LoggingStatus{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3355,9 +3390,10 @@ func (c *Redshift) DescribeLoggingStatusRequest(input *DescribeLoggingStatusInpu // API operation DescribeLoggingStatus for usage and error information. // // Returned Error Codes: -// * ClusterNotFound +// * ErrCodeClusterNotFoundFault "ClusterNotFound" // The ClusterIdentifier parameter does not refer to an existing cluster. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeLoggingStatus func (c *Redshift) DescribeLoggingStatus(input *DescribeLoggingStatusInput) (*LoggingStatus, error) { req, out := c.DescribeLoggingStatusRequest(input) err := req.Send() @@ -3390,6 +3426,7 @@ const opDescribeOrderableClusterOptions = "DescribeOrderableClusterOptions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeOrderableClusterOptions func (c *Redshift) DescribeOrderableClusterOptionsRequest(input *DescribeOrderableClusterOptionsInput) (req *request.Request, output *DescribeOrderableClusterOptionsOutput) { op := &request.Operation{ Name: opDescribeOrderableClusterOptions, @@ -3407,9 +3444,8 @@ func (c *Redshift) DescribeOrderableClusterOptionsRequest(input *DescribeOrderab input = &DescribeOrderableClusterOptionsInput{} } - req = c.newRequest(op, input, output) output = &DescribeOrderableClusterOptionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3431,6 +3467,7 @@ func (c *Redshift) DescribeOrderableClusterOptionsRequest(input *DescribeOrderab // // See the AWS API reference guide for Amazon Redshift's // API operation DescribeOrderableClusterOptions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeOrderableClusterOptions func (c *Redshift) DescribeOrderableClusterOptions(input *DescribeOrderableClusterOptionsInput) (*DescribeOrderableClusterOptionsOutput, error) { req, out := c.DescribeOrderableClusterOptionsRequest(input) err := req.Send() @@ -3488,6 +3525,7 @@ const opDescribeReservedNodeOfferings = "DescribeReservedNodeOfferings" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeReservedNodeOfferings func (c *Redshift) DescribeReservedNodeOfferingsRequest(input *DescribeReservedNodeOfferingsInput) (req *request.Request, output *DescribeReservedNodeOfferingsOutput) { op := &request.Operation{ Name: opDescribeReservedNodeOfferings, @@ -3505,9 +3543,8 @@ func (c *Redshift) DescribeReservedNodeOfferingsRequest(input *DescribeReservedN input = &DescribeReservedNodeOfferingsInput{} } - req = c.newRequest(op, input, output) output = &DescribeReservedNodeOfferingsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3520,7 +3557,7 @@ func (c *Redshift) DescribeReservedNodeOfferingsRequest(input *DescribeReservedN // to purchase. You then use the unique offering ID in you call to PurchaseReservedNodeOffering // to reserve one or more nodes for your Amazon Redshift cluster. // -// For more information about reserved node offerings, go to Purchasing Reserved +// For more information about reserved node offerings, go to Purchasing Reserved // Nodes (http://docs.aws.amazon.com/redshift/latest/mgmt/purchase-reserved-node-instance.html) // in the Amazon Redshift Cluster Management Guide. // @@ -3532,12 +3569,13 @@ func (c *Redshift) DescribeReservedNodeOfferingsRequest(input *DescribeReservedN // API operation DescribeReservedNodeOfferings for usage and error information. // // Returned Error Codes: -// * ReservedNodeOfferingNotFound +// * ErrCodeReservedNodeOfferingNotFoundFault "ReservedNodeOfferingNotFound" // Specified offering does not exist. // -// * UnsupportedOperation +// * ErrCodeUnsupportedOperationFault "UnsupportedOperation" // The requested operation isn't supported. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeReservedNodeOfferings func (c *Redshift) DescribeReservedNodeOfferings(input *DescribeReservedNodeOfferingsInput) (*DescribeReservedNodeOfferingsOutput, error) { req, out := c.DescribeReservedNodeOfferingsRequest(input) err := req.Send() @@ -3595,6 +3633,7 @@ const opDescribeReservedNodes = "DescribeReservedNodes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeReservedNodes func (c *Redshift) DescribeReservedNodesRequest(input *DescribeReservedNodesInput) (req *request.Request, output *DescribeReservedNodesOutput) { op := &request.Operation{ Name: opDescribeReservedNodes, @@ -3612,9 +3651,8 @@ func (c *Redshift) DescribeReservedNodesRequest(input *DescribeReservedNodesInpu input = &DescribeReservedNodesInput{} } - req = c.newRequest(op, input, output) output = &DescribeReservedNodesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3630,9 +3668,10 @@ func (c *Redshift) DescribeReservedNodesRequest(input *DescribeReservedNodesInpu // API operation DescribeReservedNodes for usage and error information. // // Returned Error Codes: -// * ReservedNodeNotFound +// * ErrCodeReservedNodeNotFoundFault "ReservedNodeNotFound" // The specified reserved compute node not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeReservedNodes func (c *Redshift) DescribeReservedNodes(input *DescribeReservedNodesInput) (*DescribeReservedNodesOutput, error) { req, out := c.DescribeReservedNodesRequest(input) err := req.Send() @@ -3690,6 +3729,7 @@ const opDescribeResize = "DescribeResize" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeResize func (c *Redshift) DescribeResizeRequest(input *DescribeResizeInput) (req *request.Request, output *DescribeResizeOutput) { op := &request.Operation{ Name: opDescribeResize, @@ -3701,9 +3741,8 @@ func (c *Redshift) DescribeResizeRequest(input *DescribeResizeInput) (req *reque input = &DescribeResizeInput{} } - req = c.newRequest(op, input, output) output = &DescribeResizeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3725,12 +3764,13 @@ func (c *Redshift) DescribeResizeRequest(input *DescribeResizeInput) (req *reque // API operation DescribeResize for usage and error information. // // Returned Error Codes: -// * ClusterNotFound +// * ErrCodeClusterNotFoundFault "ClusterNotFound" // The ClusterIdentifier parameter does not refer to an existing cluster. // -// * ResizeNotFound +// * ErrCodeResizeNotFoundFault "ResizeNotFound" // A resize operation for the specified cluster is not found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeResize func (c *Redshift) DescribeResize(input *DescribeResizeInput) (*DescribeResizeOutput, error) { req, out := c.DescribeResizeRequest(input) err := req.Send() @@ -3763,6 +3803,7 @@ const opDescribeSnapshotCopyGrants = "DescribeSnapshotCopyGrants" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeSnapshotCopyGrants func (c *Redshift) DescribeSnapshotCopyGrantsRequest(input *DescribeSnapshotCopyGrantsInput) (req *request.Request, output *DescribeSnapshotCopyGrantsOutput) { op := &request.Operation{ Name: opDescribeSnapshotCopyGrants, @@ -3774,9 +3815,8 @@ func (c *Redshift) DescribeSnapshotCopyGrantsRequest(input *DescribeSnapshotCopy input = &DescribeSnapshotCopyGrantsInput{} } - req = c.newRequest(op, input, output) output = &DescribeSnapshotCopyGrantsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3785,8 +3825,8 @@ func (c *Redshift) DescribeSnapshotCopyGrantsRequest(input *DescribeSnapshotCopy // Returns a list of snapshot copy grants owned by the AWS account in the destination // region. // -// For more information about managing snapshot copy grants, go to Amazon -// Redshift Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) +// For more information about managing snapshot copy grants, go to Amazon Redshift +// Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) // in the Amazon Redshift Cluster Management Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3797,13 +3837,14 @@ func (c *Redshift) DescribeSnapshotCopyGrantsRequest(input *DescribeSnapshotCopy // API operation DescribeSnapshotCopyGrants for usage and error information. // // Returned Error Codes: -// * SnapshotCopyGrantNotFoundFault +// * ErrCodeSnapshotCopyGrantNotFoundFault "SnapshotCopyGrantNotFoundFault" // The specified snapshot copy grant can't be found. Make sure that the name // is typed correctly and that the grant exists in the destination region. // -// * InvalidTagFault +// * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeSnapshotCopyGrants func (c *Redshift) DescribeSnapshotCopyGrants(input *DescribeSnapshotCopyGrantsInput) (*DescribeSnapshotCopyGrantsOutput, error) { req, out := c.DescribeSnapshotCopyGrantsRequest(input) err := req.Send() @@ -3836,6 +3877,7 @@ const opDescribeTableRestoreStatus = "DescribeTableRestoreStatus" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeTableRestoreStatus func (c *Redshift) DescribeTableRestoreStatusRequest(input *DescribeTableRestoreStatusInput) (req *request.Request, output *DescribeTableRestoreStatusOutput) { op := &request.Operation{ Name: opDescribeTableRestoreStatus, @@ -3847,9 +3889,8 @@ func (c *Redshift) DescribeTableRestoreStatusRequest(input *DescribeTableRestore input = &DescribeTableRestoreStatusInput{} } - req = c.newRequest(op, input, output) output = &DescribeTableRestoreStatusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3869,12 +3910,13 @@ func (c *Redshift) DescribeTableRestoreStatusRequest(input *DescribeTableRestore // API operation DescribeTableRestoreStatus for usage and error information. // // Returned Error Codes: -// * TableRestoreNotFoundFault +// * ErrCodeTableRestoreNotFoundFault "TableRestoreNotFoundFault" // The specified TableRestoreRequestId value was not found. // -// * ClusterNotFound +// * ErrCodeClusterNotFoundFault "ClusterNotFound" // The ClusterIdentifier parameter does not refer to an existing cluster. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeTableRestoreStatus func (c *Redshift) DescribeTableRestoreStatus(input *DescribeTableRestoreStatusInput) (*DescribeTableRestoreStatusOutput, error) { req, out := c.DescribeTableRestoreStatusRequest(input) err := req.Send() @@ -3907,6 +3949,7 @@ const opDescribeTags = "DescribeTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeTags func (c *Redshift) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) { op := &request.Operation{ Name: opDescribeTags, @@ -3918,9 +3961,8 @@ func (c *Redshift) DescribeTagsRequest(input *DescribeTagsInput) (req *request.R input = &DescribeTagsInput{} } - req = c.newRequest(op, input, output) output = &DescribeTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3932,24 +3974,23 @@ func (c *Redshift) DescribeTagsRequest(input *DescribeTagsInput) (req *request.R // // The following are limitations for DescribeTags: // -// You cannot specify an ARN and a resource-type value together in the same -// request. +// * You cannot specify an ARN and a resource-type value together in the +// same request. // -// You cannot use the MaxRecords and Marker parameters together with the -// ARN parameter. +// * You cannot use the MaxRecords and Marker parameters together with the +// ARN parameter. // -// The MaxRecords parameter can be a range from 10 to 50 results to return -// in a request. +// * The MaxRecords parameter can be a range from 10 to 50 results to return +// in a request. // -// If you specify both tag keys and tag values in the same request, Amazon -// Redshift returns all resources that match any combination of the specified -// keys and values. For example, if you have owner and environment for tag keys, -// and admin and test for tag values, all resources that have any combination -// of those values are returned. +// If you specify both tag keys and tag values in the same request, Amazon Redshift +// returns all resources that match any combination of the specified keys and +// values. For example, if you have owner and environment for tag keys, and +// admin and test for tag values, all resources that have any combination of +// those values are returned. // -// If both tag keys and values are omitted from the request, resources are -// returned regardless of whether they have tag keys or values associated with -// them. +// If both tag keys and values are omitted from the request, resources are returned +// regardless of whether they have tag keys or values associated with them. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3959,12 +4000,13 @@ func (c *Redshift) DescribeTagsRequest(input *DescribeTagsInput) (req *request.R // API operation DescribeTags for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundFault +// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. // -// * InvalidTagFault +// * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeTags func (c *Redshift) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -3997,6 +4039,7 @@ const opDisableLogging = "DisableLogging" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DisableLogging func (c *Redshift) DisableLoggingRequest(input *DisableLoggingInput) (req *request.Request, output *LoggingStatus) { op := &request.Operation{ Name: opDisableLogging, @@ -4008,9 +4051,8 @@ func (c *Redshift) DisableLoggingRequest(input *DisableLoggingInput) (req *reque input = &DisableLoggingInput{} } - req = c.newRequest(op, input, output) output = &LoggingStatus{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4027,9 +4069,10 @@ func (c *Redshift) DisableLoggingRequest(input *DisableLoggingInput) (req *reque // API operation DisableLogging for usage and error information. // // Returned Error Codes: -// * ClusterNotFound +// * ErrCodeClusterNotFoundFault "ClusterNotFound" // The ClusterIdentifier parameter does not refer to an existing cluster. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DisableLogging func (c *Redshift) DisableLogging(input *DisableLoggingInput) (*LoggingStatus, error) { req, out := c.DisableLoggingRequest(input) err := req.Send() @@ -4062,6 +4105,7 @@ const opDisableSnapshotCopy = "DisableSnapshotCopy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DisableSnapshotCopy func (c *Redshift) DisableSnapshotCopyRequest(input *DisableSnapshotCopyInput) (req *request.Request, output *DisableSnapshotCopyOutput) { op := &request.Operation{ Name: opDisableSnapshotCopy, @@ -4073,9 +4117,8 @@ func (c *Redshift) DisableSnapshotCopyRequest(input *DisableSnapshotCopyInput) ( input = &DisableSnapshotCopyInput{} } - req = c.newRequest(op, input, output) output = &DisableSnapshotCopyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4084,8 +4127,8 @@ func (c *Redshift) DisableSnapshotCopyRequest(input *DisableSnapshotCopyInput) ( // Disables the automatic copying of snapshots from one region to another region // for a specified cluster. // -// If your cluster and its snapshots are encrypted using a customer master -// key (CMK) from AWS KMS, use DeleteSnapshotCopyGrant to delete the grant that +// If your cluster and its snapshots are encrypted using a customer master key +// (CMK) from AWS KMS, use DeleteSnapshotCopyGrant to delete the grant that // grants Amazon Redshift permission to the CMK in the destination region. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -4096,18 +4139,19 @@ func (c *Redshift) DisableSnapshotCopyRequest(input *DisableSnapshotCopyInput) ( // API operation DisableSnapshotCopy for usage and error information. // // Returned Error Codes: -// * ClusterNotFound +// * ErrCodeClusterNotFoundFault "ClusterNotFound" // The ClusterIdentifier parameter does not refer to an existing cluster. // -// * SnapshotCopyAlreadyDisabledFault +// * ErrCodeSnapshotCopyAlreadyDisabledFault "SnapshotCopyAlreadyDisabledFault" // The cluster already has cross-region snapshot copy disabled. // -// * InvalidClusterState +// * ErrCodeInvalidClusterStateFault "InvalidClusterState" // The specified cluster is not in the available state. // -// * UnauthorizedOperation +// * ErrCodeUnauthorizedOperation "UnauthorizedOperation" // Your account is not authorized to perform the requested operation. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DisableSnapshotCopy func (c *Redshift) DisableSnapshotCopy(input *DisableSnapshotCopyInput) (*DisableSnapshotCopyOutput, error) { req, out := c.DisableSnapshotCopyRequest(input) err := req.Send() @@ -4140,6 +4184,7 @@ const opEnableLogging = "EnableLogging" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EnableLogging func (c *Redshift) EnableLoggingRequest(input *EnableLoggingInput) (req *request.Request, output *LoggingStatus) { op := &request.Operation{ Name: opEnableLogging, @@ -4151,9 +4196,8 @@ func (c *Redshift) EnableLoggingRequest(input *EnableLoggingInput) (req *request input = &EnableLoggingInput{} } - req = c.newRequest(op, input, output) output = &LoggingStatus{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4170,25 +4214,26 @@ func (c *Redshift) EnableLoggingRequest(input *EnableLoggingInput) (req *request // API operation EnableLogging for usage and error information. // // Returned Error Codes: -// * ClusterNotFound +// * ErrCodeClusterNotFoundFault "ClusterNotFound" // The ClusterIdentifier parameter does not refer to an existing cluster. // -// * BucketNotFoundFault +// * ErrCodeBucketNotFoundFault "BucketNotFoundFault" // Could not find the specified S3 bucket. // -// * InsufficientS3BucketPolicyFault +// * ErrCodeInsufficientS3BucketPolicyFault "InsufficientS3BucketPolicyFault" // The cluster does not have read bucket or put object permissions on the S3 // bucket specified when enabling logging. // -// * InvalidS3KeyPrefixFault +// * ErrCodeInvalidS3KeyPrefixFault "InvalidS3KeyPrefixFault" // The string specified for the logging S3 key prefix does not comply with the // documented constraints. // -// * InvalidS3BucketNameFault +// * ErrCodeInvalidS3BucketNameFault "InvalidS3BucketNameFault" // The S3 bucket name is invalid. For more information about naming rules, go // to Bucket Restrictions and Limitations (http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html) // in the Amazon Simple Storage Service (S3) Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EnableLogging func (c *Redshift) EnableLogging(input *EnableLoggingInput) (*LoggingStatus, error) { req, out := c.EnableLoggingRequest(input) err := req.Send() @@ -4221,6 +4266,7 @@ const opEnableSnapshotCopy = "EnableSnapshotCopy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EnableSnapshotCopy func (c *Redshift) EnableSnapshotCopyRequest(input *EnableSnapshotCopyInput) (req *request.Request, output *EnableSnapshotCopyOutput) { op := &request.Operation{ Name: opEnableSnapshotCopy, @@ -4232,9 +4278,8 @@ func (c *Redshift) EnableSnapshotCopyRequest(input *EnableSnapshotCopyInput) (re input = &EnableSnapshotCopyInput{} } - req = c.newRequest(op, input, output) output = &EnableSnapshotCopyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4251,38 +4296,39 @@ func (c *Redshift) EnableSnapshotCopyRequest(input *EnableSnapshotCopyInput) (re // API operation EnableSnapshotCopy for usage and error information. // // Returned Error Codes: -// * IncompatibleOrderableOptions +// * ErrCodeIncompatibleOrderableOptions "IncompatibleOrderableOptions" // The specified options are incompatible. // -// * InvalidClusterState +// * ErrCodeInvalidClusterStateFault "InvalidClusterState" // The specified cluster is not in the available state. // -// * ClusterNotFound +// * ErrCodeClusterNotFoundFault "ClusterNotFound" // The ClusterIdentifier parameter does not refer to an existing cluster. // -// * CopyToRegionDisabledFault +// * ErrCodeCopyToRegionDisabledFault "CopyToRegionDisabledFault" // Cross-region snapshot copy was temporarily disabled. Try your request again. // -// * SnapshotCopyAlreadyEnabledFault +// * ErrCodeSnapshotCopyAlreadyEnabledFault "SnapshotCopyAlreadyEnabledFault" // The cluster already has cross-region snapshot copy enabled. // -// * UnknownSnapshotCopyRegionFault +// * ErrCodeUnknownSnapshotCopyRegionFault "UnknownSnapshotCopyRegionFault" // The specified region is incorrect or does not exist. // -// * UnauthorizedOperation +// * ErrCodeUnauthorizedOperation "UnauthorizedOperation" // Your account is not authorized to perform the requested operation. // -// * SnapshotCopyGrantNotFoundFault +// * ErrCodeSnapshotCopyGrantNotFoundFault "SnapshotCopyGrantNotFoundFault" // The specified snapshot copy grant can't be found. Make sure that the name // is typed correctly and that the grant exists in the destination region. // -// * LimitExceededFault +// * ErrCodeLimitExceededFault "LimitExceededFault" // The encryption key has exceeded its grant limit in AWS KMS. // -// * DependentServiceRequestThrottlingFault +// * ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault" // The request cannot be completed because a dependent service is throttling // requests made by Amazon Redshift on your behalf. Wait and retry the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EnableSnapshotCopy func (c *Redshift) EnableSnapshotCopy(input *EnableSnapshotCopyInput) (*EnableSnapshotCopyOutput, error) { req, out := c.EnableSnapshotCopyRequest(input) err := req.Send() @@ -4315,6 +4361,7 @@ const opModifyCluster = "ModifyCluster" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyCluster func (c *Redshift) ModifyClusterRequest(input *ModifyClusterInput) (req *request.Request, output *ModifyClusterOutput) { op := &request.Operation{ Name: opModifyCluster, @@ -4326,9 +4373,8 @@ func (c *Redshift) ModifyClusterRequest(input *ModifyClusterInput) (req *request input = &ModifyClusterInput{} } - req = c.newRequest(op, input, output) output = &ModifyClusterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4354,56 +4400,57 @@ func (c *Redshift) ModifyClusterRequest(input *ModifyClusterInput) (req *request // API operation ModifyCluster for usage and error information. // // Returned Error Codes: -// * InvalidClusterState +// * ErrCodeInvalidClusterStateFault "InvalidClusterState" // The specified cluster is not in the available state. // -// * InvalidClusterSecurityGroupState +// * ErrCodeInvalidClusterSecurityGroupStateFault "InvalidClusterSecurityGroupState" // The state of the cluster security group is not available. // -// * ClusterNotFound +// * ErrCodeClusterNotFoundFault "ClusterNotFound" // The ClusterIdentifier parameter does not refer to an existing cluster. // -// * NumberOfNodesQuotaExceeded +// * ErrCodeNumberOfNodesQuotaExceededFault "NumberOfNodesQuotaExceeded" // The operation would exceed the number of nodes allotted to the account. For // information about increasing your quota, go to Limits in Amazon Redshift // (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) // in the Amazon Redshift Cluster Management Guide. // -// * ClusterSecurityGroupNotFound +// * ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound" // The cluster security group name does not refer to an existing cluster security // group. // -// * ClusterParameterGroupNotFound +// * ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound" // The parameter group name does not refer to an existing parameter group. // -// * InsufficientClusterCapacity +// * ErrCodeInsufficientClusterCapacityFault "InsufficientClusterCapacity" // The number of nodes specified exceeds the allotted capacity of the cluster. // -// * UnsupportedOptionFault +// * ErrCodeUnsupportedOptionFault "UnsupportedOptionFault" // A request option was specified that is not supported. // -// * UnauthorizedOperation +// * ErrCodeUnauthorizedOperation "UnauthorizedOperation" // Your account is not authorized to perform the requested operation. // -// * HsmClientCertificateNotFoundFault +// * ErrCodeHsmClientCertificateNotFoundFault "HsmClientCertificateNotFoundFault" // There is no Amazon Redshift HSM client certificate with the specified identifier. // -// * HsmConfigurationNotFoundFault +// * ErrCodeHsmConfigurationNotFoundFault "HsmConfigurationNotFoundFault" // There is no Amazon Redshift HSM configuration with the specified identifier. // -// * ClusterAlreadyExists +// * ErrCodeClusterAlreadyExistsFault "ClusterAlreadyExists" // The account already has a cluster with the given identifier. // -// * LimitExceededFault +// * ErrCodeLimitExceededFault "LimitExceededFault" // The encryption key has exceeded its grant limit in AWS KMS. // -// * DependentServiceRequestThrottlingFault +// * ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault" // The request cannot be completed because a dependent service is throttling // requests made by Amazon Redshift on your behalf. Wait and retry the request. // -// * InvalidElasticIpFault +// * ErrCodeInvalidElasticIpFault "InvalidElasticIpFault" // The Elastic IP (EIP) is invalid or cannot be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyCluster func (c *Redshift) ModifyCluster(input *ModifyClusterInput) (*ModifyClusterOutput, error) { req, out := c.ModifyClusterRequest(input) err := req.Send() @@ -4436,6 +4483,7 @@ const opModifyClusterIamRoles = "ModifyClusterIamRoles" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterIamRoles func (c *Redshift) ModifyClusterIamRolesRequest(input *ModifyClusterIamRolesInput) (req *request.Request, output *ModifyClusterIamRolesOutput) { op := &request.Operation{ Name: opModifyClusterIamRoles, @@ -4447,9 +4495,8 @@ func (c *Redshift) ModifyClusterIamRolesRequest(input *ModifyClusterIamRolesInpu input = &ModifyClusterIamRolesInput{} } - req = c.newRequest(op, input, output) output = &ModifyClusterIamRolesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4468,12 +4515,13 @@ func (c *Redshift) ModifyClusterIamRolesRequest(input *ModifyClusterIamRolesInpu // API operation ModifyClusterIamRoles for usage and error information. // // Returned Error Codes: -// * InvalidClusterState +// * ErrCodeInvalidClusterStateFault "InvalidClusterState" // The specified cluster is not in the available state. // -// * ClusterNotFound +// * ErrCodeClusterNotFoundFault "ClusterNotFound" // The ClusterIdentifier parameter does not refer to an existing cluster. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterIamRoles func (c *Redshift) ModifyClusterIamRoles(input *ModifyClusterIamRolesInput) (*ModifyClusterIamRolesOutput, error) { req, out := c.ModifyClusterIamRolesRequest(input) err := req.Send() @@ -4506,6 +4554,7 @@ const opModifyClusterParameterGroup = "ModifyClusterParameterGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterParameterGroup func (c *Redshift) ModifyClusterParameterGroupRequest(input *ModifyClusterParameterGroupInput) (req *request.Request, output *ClusterParameterGroupNameMessage) { op := &request.Operation{ Name: opModifyClusterParameterGroup, @@ -4517,9 +4566,8 @@ func (c *Redshift) ModifyClusterParameterGroupRequest(input *ModifyClusterParame input = &ModifyClusterParameterGroupInput{} } - req = c.newRequest(op, input, output) output = &ClusterParameterGroupNameMessage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4527,7 +4575,7 @@ func (c *Redshift) ModifyClusterParameterGroupRequest(input *ModifyClusterParame // // Modifies the parameters of a parameter group. // -// For more information about parameters and parameter groups, go to Amazon +// For more information about parameters and parameter groups, go to Amazon // Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) // in the Amazon Redshift Cluster Management Guide. // @@ -4539,14 +4587,15 @@ func (c *Redshift) ModifyClusterParameterGroupRequest(input *ModifyClusterParame // API operation ModifyClusterParameterGroup for usage and error information. // // Returned Error Codes: -// * ClusterParameterGroupNotFound +// * ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound" // The parameter group name does not refer to an existing parameter group. // -// * InvalidClusterParameterGroupState +// * ErrCodeInvalidClusterParameterGroupStateFault "InvalidClusterParameterGroupState" // The cluster parameter group action can not be completed because another task // is in progress that involves the parameter group. Wait a few moments and // try the operation again. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterParameterGroup func (c *Redshift) ModifyClusterParameterGroup(input *ModifyClusterParameterGroupInput) (*ClusterParameterGroupNameMessage, error) { req, out := c.ModifyClusterParameterGroupRequest(input) err := req.Send() @@ -4579,6 +4628,7 @@ const opModifyClusterSubnetGroup = "ModifyClusterSubnetGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterSubnetGroup func (c *Redshift) ModifyClusterSubnetGroupRequest(input *ModifyClusterSubnetGroupInput) (req *request.Request, output *ModifyClusterSubnetGroupOutput) { op := &request.Operation{ Name: opModifyClusterSubnetGroup, @@ -4590,9 +4640,8 @@ func (c *Redshift) ModifyClusterSubnetGroupRequest(input *ModifyClusterSubnetGro input = &ModifyClusterSubnetGroupInput{} } - req = c.newRequest(op, input, output) output = &ModifyClusterSubnetGroupOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4610,30 +4659,31 @@ func (c *Redshift) ModifyClusterSubnetGroupRequest(input *ModifyClusterSubnetGro // API operation ModifyClusterSubnetGroup for usage and error information. // // Returned Error Codes: -// * ClusterSubnetGroupNotFoundFault +// * ErrCodeClusterSubnetGroupNotFoundFault "ClusterSubnetGroupNotFoundFault" // The cluster subnet group name does not refer to an existing cluster subnet // group. // -// * ClusterSubnetQuotaExceededFault +// * ErrCodeClusterSubnetQuotaExceededFault "ClusterSubnetQuotaExceededFault" // The request would result in user exceeding the allowed number of subnets // in a cluster subnet groups. For information about increasing your quota, // go to Limits in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) // in the Amazon Redshift Cluster Management Guide. // -// * SubnetAlreadyInUse +// * ErrCodeSubnetAlreadyInUse "SubnetAlreadyInUse" // A specified subnet is already in use by another cluster. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is not valid, or not all of the subnets are in the same // VPC. // -// * UnauthorizedOperation +// * ErrCodeUnauthorizedOperation "UnauthorizedOperation" // Your account is not authorized to perform the requested operation. // -// * DependentServiceRequestThrottlingFault +// * ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault" // The request cannot be completed because a dependent service is throttling // requests made by Amazon Redshift on your behalf. Wait and retry the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterSubnetGroup func (c *Redshift) ModifyClusterSubnetGroup(input *ModifyClusterSubnetGroupInput) (*ModifyClusterSubnetGroupOutput, error) { req, out := c.ModifyClusterSubnetGroupRequest(input) err := req.Send() @@ -4666,6 +4716,7 @@ const opModifyEventSubscription = "ModifyEventSubscription" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyEventSubscription func (c *Redshift) ModifyEventSubscriptionRequest(input *ModifyEventSubscriptionInput) (req *request.Request, output *ModifyEventSubscriptionOutput) { op := &request.Operation{ Name: opModifyEventSubscription, @@ -4677,9 +4728,8 @@ func (c *Redshift) ModifyEventSubscriptionRequest(input *ModifyEventSubscription input = &ModifyEventSubscriptionInput{} } - req = c.newRequest(op, input, output) output = &ModifyEventSubscriptionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4695,41 +4745,42 @@ func (c *Redshift) ModifyEventSubscriptionRequest(input *ModifyEventSubscription // API operation ModifyEventSubscription for usage and error information. // // Returned Error Codes: -// * SubscriptionNotFound +// * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound" // An Amazon Redshift event notification subscription with the specified name // does not exist. // -// * SNSInvalidTopic +// * ErrCodeSNSInvalidTopicFault "SNSInvalidTopic" // Amazon SNS has responded that there is a problem with the specified Amazon // SNS topic. // -// * SNSNoAuthorization +// * ErrCodeSNSNoAuthorizationFault "SNSNoAuthorization" // You do not have permission to publish to the specified Amazon SNS topic. // -// * SNSTopicArnNotFound +// * ErrCodeSNSTopicArnNotFoundFault "SNSTopicArnNotFound" // An Amazon SNS topic with the specified Amazon Resource Name (ARN) does not // exist. // -// * SubscriptionEventIdNotFound +// * ErrCodeSubscriptionEventIdNotFoundFault "SubscriptionEventIdNotFound" // An Amazon Redshift event with the specified event ID does not exist. // -// * SubscriptionCategoryNotFound +// * ErrCodeSubscriptionCategoryNotFoundFault "SubscriptionCategoryNotFound" // The value specified for the event category was not one of the allowed values, // or it specified a category that does not apply to the specified source type. // The allowed values are Configuration, Management, Monitoring, and Security. // -// * SubscriptionSeverityNotFound +// * ErrCodeSubscriptionSeverityNotFoundFault "SubscriptionSeverityNotFound" // The value specified for the event severity was not one of the allowed values, // or it specified a severity that does not apply to the specified source type. // The allowed values are ERROR and INFO. // -// * SourceNotFound +// * ErrCodeSourceNotFoundFault "SourceNotFound" // The specified Amazon Redshift event source could not be found. // -// * InvalidSubscriptionStateFault +// * ErrCodeInvalidSubscriptionStateFault "InvalidSubscriptionStateFault" // The subscription request is invalid because it is a duplicate request. This // subscription request is already in progress. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyEventSubscription func (c *Redshift) ModifyEventSubscription(input *ModifyEventSubscriptionInput) (*ModifyEventSubscriptionOutput, error) { req, out := c.ModifyEventSubscriptionRequest(input) err := req.Send() @@ -4762,6 +4813,7 @@ const opModifySnapshotCopyRetentionPeriod = "ModifySnapshotCopyRetentionPeriod" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifySnapshotCopyRetentionPeriod func (c *Redshift) ModifySnapshotCopyRetentionPeriodRequest(input *ModifySnapshotCopyRetentionPeriodInput) (req *request.Request, output *ModifySnapshotCopyRetentionPeriodOutput) { op := &request.Operation{ Name: opModifySnapshotCopyRetentionPeriod, @@ -4773,9 +4825,8 @@ func (c *Redshift) ModifySnapshotCopyRetentionPeriodRequest(input *ModifySnapsho input = &ModifySnapshotCopyRetentionPeriodInput{} } - req = c.newRequest(op, input, output) output = &ModifySnapshotCopyRetentionPeriodOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4792,18 +4843,19 @@ func (c *Redshift) ModifySnapshotCopyRetentionPeriodRequest(input *ModifySnapsho // API operation ModifySnapshotCopyRetentionPeriod for usage and error information. // // Returned Error Codes: -// * ClusterNotFound +// * ErrCodeClusterNotFoundFault "ClusterNotFound" // The ClusterIdentifier parameter does not refer to an existing cluster. // -// * SnapshotCopyDisabledFault +// * ErrCodeSnapshotCopyDisabledFault "SnapshotCopyDisabledFault" // Cross-region snapshot copy was temporarily disabled. Try your request again. // -// * UnauthorizedOperation +// * ErrCodeUnauthorizedOperation "UnauthorizedOperation" // Your account is not authorized to perform the requested operation. // -// * InvalidClusterState +// * ErrCodeInvalidClusterStateFault "InvalidClusterState" // The specified cluster is not in the available state. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifySnapshotCopyRetentionPeriod func (c *Redshift) ModifySnapshotCopyRetentionPeriod(input *ModifySnapshotCopyRetentionPeriodInput) (*ModifySnapshotCopyRetentionPeriodOutput, error) { req, out := c.ModifySnapshotCopyRetentionPeriodRequest(input) err := req.Send() @@ -4836,6 +4888,7 @@ const opPurchaseReservedNodeOffering = "PurchaseReservedNodeOffering" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/PurchaseReservedNodeOffering func (c *Redshift) PurchaseReservedNodeOfferingRequest(input *PurchaseReservedNodeOfferingInput) (req *request.Request, output *PurchaseReservedNodeOfferingOutput) { op := &request.Operation{ Name: opPurchaseReservedNodeOffering, @@ -4847,9 +4900,8 @@ func (c *Redshift) PurchaseReservedNodeOfferingRequest(input *PurchaseReservedNo input = &PurchaseReservedNodeOfferingInput{} } - req = c.newRequest(op, input, output) output = &PurchaseReservedNodeOfferingOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4861,7 +4913,7 @@ func (c *Redshift) PurchaseReservedNodeOfferingRequest(input *PurchaseReservedNo // reserved node offerings. You can call this API by providing a specific reserved // node offering and the number of nodes you want to reserve. // -// For more information about reserved node offerings, go to Purchasing Reserved +// For more information about reserved node offerings, go to Purchasing Reserved // Nodes (http://docs.aws.amazon.com/redshift/latest/mgmt/purchase-reserved-node-instance.html) // in the Amazon Redshift Cluster Management Guide. // @@ -4873,20 +4925,21 @@ func (c *Redshift) PurchaseReservedNodeOfferingRequest(input *PurchaseReservedNo // API operation PurchaseReservedNodeOffering for usage and error information. // // Returned Error Codes: -// * ReservedNodeOfferingNotFound +// * ErrCodeReservedNodeOfferingNotFoundFault "ReservedNodeOfferingNotFound" // Specified offering does not exist. // -// * ReservedNodeAlreadyExists +// * ErrCodeReservedNodeAlreadyExistsFault "ReservedNodeAlreadyExists" // User already has a reservation with the given identifier. // -// * ReservedNodeQuotaExceeded +// * ErrCodeReservedNodeQuotaExceededFault "ReservedNodeQuotaExceeded" // Request would exceed the user's compute node quota. For information about // increasing your quota, go to Limits in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) // in the Amazon Redshift Cluster Management Guide. // -// * UnsupportedOperation +// * ErrCodeUnsupportedOperationFault "UnsupportedOperation" // The requested operation isn't supported. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/PurchaseReservedNodeOffering func (c *Redshift) PurchaseReservedNodeOffering(input *PurchaseReservedNodeOfferingInput) (*PurchaseReservedNodeOfferingOutput, error) { req, out := c.PurchaseReservedNodeOfferingRequest(input) err := req.Send() @@ -4919,6 +4972,7 @@ const opRebootCluster = "RebootCluster" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RebootCluster func (c *Redshift) RebootClusterRequest(input *RebootClusterInput) (req *request.Request, output *RebootClusterOutput) { op := &request.Operation{ Name: opRebootCluster, @@ -4930,9 +4984,8 @@ func (c *Redshift) RebootClusterRequest(input *RebootClusterInput) (req *request input = &RebootClusterInput{} } - req = c.newRequest(op, input, output) output = &RebootClusterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4954,12 +5007,13 @@ func (c *Redshift) RebootClusterRequest(input *RebootClusterInput) (req *request // API operation RebootCluster for usage and error information. // // Returned Error Codes: -// * InvalidClusterState +// * ErrCodeInvalidClusterStateFault "InvalidClusterState" // The specified cluster is not in the available state. // -// * ClusterNotFound +// * ErrCodeClusterNotFoundFault "ClusterNotFound" // The ClusterIdentifier parameter does not refer to an existing cluster. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RebootCluster func (c *Redshift) RebootCluster(input *RebootClusterInput) (*RebootClusterOutput, error) { req, out := c.RebootClusterRequest(input) err := req.Send() @@ -4992,6 +5046,7 @@ const opResetClusterParameterGroup = "ResetClusterParameterGroup" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ResetClusterParameterGroup func (c *Redshift) ResetClusterParameterGroupRequest(input *ResetClusterParameterGroupInput) (req *request.Request, output *ClusterParameterGroupNameMessage) { op := &request.Operation{ Name: opResetClusterParameterGroup, @@ -5003,9 +5058,8 @@ func (c *Redshift) ResetClusterParameterGroupRequest(input *ResetClusterParamete input = &ResetClusterParameterGroupInput{} } - req = c.newRequest(op, input, output) output = &ClusterParameterGroupNameMessage{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5024,14 +5078,15 @@ func (c *Redshift) ResetClusterParameterGroupRequest(input *ResetClusterParamete // API operation ResetClusterParameterGroup for usage and error information. // // Returned Error Codes: -// * InvalidClusterParameterGroupState +// * ErrCodeInvalidClusterParameterGroupStateFault "InvalidClusterParameterGroupState" // The cluster parameter group action can not be completed because another task // is in progress that involves the parameter group. Wait a few moments and // try the operation again. // -// * ClusterParameterGroupNotFound +// * ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound" // The parameter group name does not refer to an existing parameter group. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ResetClusterParameterGroup func (c *Redshift) ResetClusterParameterGroup(input *ResetClusterParameterGroupInput) (*ClusterParameterGroupNameMessage, error) { req, out := c.ResetClusterParameterGroupRequest(input) err := req.Send() @@ -5064,6 +5119,7 @@ const opRestoreFromClusterSnapshot = "RestoreFromClusterSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RestoreFromClusterSnapshot func (c *Redshift) RestoreFromClusterSnapshotRequest(input *RestoreFromClusterSnapshotInput) (req *request.Request, output *RestoreFromClusterSnapshotOutput) { op := &request.Operation{ Name: opRestoreFromClusterSnapshot, @@ -5075,9 +5131,8 @@ func (c *Redshift) RestoreFromClusterSnapshotRequest(input *RestoreFromClusterSn input = &RestoreFromClusterSnapshotInput{} } - req = c.newRequest(op, input, output) output = &RestoreFromClusterSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5095,7 +5150,7 @@ func (c *Redshift) RestoreFromClusterSnapshotRequest(input *RestoreFromClusterSn // If you restore a cluster into a VPC, you must provide a cluster subnet group // where you want the cluster restored. // -// For more information about working with snapshots, go to Amazon Redshift +// For more information about working with snapshots, go to Amazon Redshift // Snapshots (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html) // in the Amazon Redshift Cluster Management Guide. // @@ -5107,81 +5162,82 @@ func (c *Redshift) RestoreFromClusterSnapshotRequest(input *RestoreFromClusterSn // API operation RestoreFromClusterSnapshot for usage and error information. // // Returned Error Codes: -// * AccessToSnapshotDenied +// * ErrCodeAccessToSnapshotDeniedFault "AccessToSnapshotDenied" // The owner of the specified snapshot has not authorized your account to access // the snapshot. // -// * ClusterAlreadyExists +// * ErrCodeClusterAlreadyExistsFault "ClusterAlreadyExists" // The account already has a cluster with the given identifier. // -// * ClusterSnapshotNotFound +// * ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound" // The snapshot identifier does not refer to an existing cluster snapshot. // -// * ClusterQuotaExceeded +// * ErrCodeClusterQuotaExceededFault "ClusterQuotaExceeded" // The request would exceed the allowed number of cluster instances for this // account. For information about increasing your quota, go to Limits in Amazon // Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) // in the Amazon Redshift Cluster Management Guide. // -// * InsufficientClusterCapacity +// * ErrCodeInsufficientClusterCapacityFault "InsufficientClusterCapacity" // The number of nodes specified exceeds the allotted capacity of the cluster. // -// * InvalidClusterSnapshotState +// * ErrCodeInvalidClusterSnapshotStateFault "InvalidClusterSnapshotState" // The specified cluster snapshot is not in the available state, or other accounts // are authorized to access the snapshot. // -// * InvalidRestore +// * ErrCodeInvalidRestoreFault "InvalidRestore" // The restore is invalid. // -// * NumberOfNodesQuotaExceeded +// * ErrCodeNumberOfNodesQuotaExceededFault "NumberOfNodesQuotaExceeded" // The operation would exceed the number of nodes allotted to the account. For // information about increasing your quota, go to Limits in Amazon Redshift // (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) // in the Amazon Redshift Cluster Management Guide. // -// * NumberOfNodesPerClusterLimitExceeded +// * ErrCodeNumberOfNodesPerClusterLimitExceededFault "NumberOfNodesPerClusterLimitExceeded" // The operation would exceed the number of nodes allowed for a cluster. // -// * InvalidVPCNetworkStateFault +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" // The cluster subnet group does not cover all Availability Zones. // -// * InvalidClusterSubnetGroupStateFault +// * ErrCodeInvalidClusterSubnetGroupStateFault "InvalidClusterSubnetGroupStateFault" // The cluster subnet group cannot be deleted because it is in use. // -// * InvalidSubnet +// * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is not valid, or not all of the subnets are in the same // VPC. // -// * ClusterSubnetGroupNotFoundFault +// * ErrCodeClusterSubnetGroupNotFoundFault "ClusterSubnetGroupNotFoundFault" // The cluster subnet group name does not refer to an existing cluster subnet // group. // -// * UnauthorizedOperation +// * ErrCodeUnauthorizedOperation "UnauthorizedOperation" // Your account is not authorized to perform the requested operation. // -// * HsmClientCertificateNotFoundFault +// * ErrCodeHsmClientCertificateNotFoundFault "HsmClientCertificateNotFoundFault" // There is no Amazon Redshift HSM client certificate with the specified identifier. // -// * HsmConfigurationNotFoundFault +// * ErrCodeHsmConfigurationNotFoundFault "HsmConfigurationNotFoundFault" // There is no Amazon Redshift HSM configuration with the specified identifier. // -// * InvalidElasticIpFault +// * ErrCodeInvalidElasticIpFault "InvalidElasticIpFault" // The Elastic IP (EIP) is invalid or cannot be found. // -// * ClusterParameterGroupNotFound +// * ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound" // The parameter group name does not refer to an existing parameter group. // -// * ClusterSecurityGroupNotFound +// * ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound" // The cluster security group name does not refer to an existing cluster security // group. // -// * LimitExceededFault +// * ErrCodeLimitExceededFault "LimitExceededFault" // The encryption key has exceeded its grant limit in AWS KMS. // -// * DependentServiceRequestThrottlingFault +// * ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault" // The request cannot be completed because a dependent service is throttling // requests made by Amazon Redshift on your behalf. Wait and retry the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RestoreFromClusterSnapshot func (c *Redshift) RestoreFromClusterSnapshot(input *RestoreFromClusterSnapshotInput) (*RestoreFromClusterSnapshotOutput, error) { req, out := c.RestoreFromClusterSnapshotRequest(input) err := req.Send() @@ -5214,6 +5270,7 @@ const opRestoreTableFromClusterSnapshot = "RestoreTableFromClusterSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RestoreTableFromClusterSnapshot func (c *Redshift) RestoreTableFromClusterSnapshotRequest(input *RestoreTableFromClusterSnapshotInput) (req *request.Request, output *RestoreTableFromClusterSnapshotOutput) { op := &request.Operation{ Name: opRestoreTableFromClusterSnapshot, @@ -5225,9 +5282,8 @@ func (c *Redshift) RestoreTableFromClusterSnapshotRequest(input *RestoreTableFro input = &RestoreTableFromClusterSnapshotInput{} } - req = c.newRequest(op, input, output) output = &RestoreTableFromClusterSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5255,30 +5311,31 @@ func (c *Redshift) RestoreTableFromClusterSnapshotRequest(input *RestoreTableFro // API operation RestoreTableFromClusterSnapshot for usage and error information. // // Returned Error Codes: -// * ClusterSnapshotNotFound +// * ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound" // The snapshot identifier does not refer to an existing cluster snapshot. // -// * InProgressTableRestoreQuotaExceededFault +// * ErrCodeInProgressTableRestoreQuotaExceededFault "InProgressTableRestoreQuotaExceededFault" // You have exceeded the allowed number of table restore requests. Wait for // your current table restore requests to complete before making a new request. // -// * InvalidClusterSnapshotState +// * ErrCodeInvalidClusterSnapshotStateFault "InvalidClusterSnapshotState" // The specified cluster snapshot is not in the available state, or other accounts // are authorized to access the snapshot. // -// * InvalidTableRestoreArgument +// * ErrCodeInvalidTableRestoreArgumentFault "InvalidTableRestoreArgument" // The value specified for the sourceDatabaseName, sourceSchemaName, or sourceTableName // parameter, or a combination of these, doesn't exist in the snapshot. // -// * ClusterNotFound +// * ErrCodeClusterNotFoundFault "ClusterNotFound" // The ClusterIdentifier parameter does not refer to an existing cluster. // -// * InvalidClusterState +// * ErrCodeInvalidClusterStateFault "InvalidClusterState" // The specified cluster is not in the available state. // -// * UnsupportedOperation +// * ErrCodeUnsupportedOperationFault "UnsupportedOperation" // The requested operation isn't supported. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RestoreTableFromClusterSnapshot func (c *Redshift) RestoreTableFromClusterSnapshot(input *RestoreTableFromClusterSnapshotInput) (*RestoreTableFromClusterSnapshotOutput, error) { req, out := c.RestoreTableFromClusterSnapshotRequest(input) err := req.Send() @@ -5311,6 +5368,7 @@ const opRevokeClusterSecurityGroupIngress = "RevokeClusterSecurityGroupIngress" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RevokeClusterSecurityGroupIngress func (c *Redshift) RevokeClusterSecurityGroupIngressRequest(input *RevokeClusterSecurityGroupIngressInput) (req *request.Request, output *RevokeClusterSecurityGroupIngressOutput) { op := &request.Operation{ Name: opRevokeClusterSecurityGroupIngress, @@ -5322,9 +5380,8 @@ func (c *Redshift) RevokeClusterSecurityGroupIngressRequest(input *RevokeCluster input = &RevokeClusterSecurityGroupIngressInput{} } - req = c.newRequest(op, input, output) output = &RevokeClusterSecurityGroupIngressOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5344,17 +5401,18 @@ func (c *Redshift) RevokeClusterSecurityGroupIngressRequest(input *RevokeCluster // API operation RevokeClusterSecurityGroupIngress for usage and error information. // // Returned Error Codes: -// * ClusterSecurityGroupNotFound +// * ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound" // The cluster security group name does not refer to an existing cluster security // group. // -// * AuthorizationNotFound +// * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound" // The specified CIDR IP range or EC2 security group is not authorized for the // specified cluster security group. // -// * InvalidClusterSecurityGroupState +// * ErrCodeInvalidClusterSecurityGroupStateFault "InvalidClusterSecurityGroupState" // The state of the cluster security group is not available. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RevokeClusterSecurityGroupIngress func (c *Redshift) RevokeClusterSecurityGroupIngress(input *RevokeClusterSecurityGroupIngressInput) (*RevokeClusterSecurityGroupIngressOutput, error) { req, out := c.RevokeClusterSecurityGroupIngressRequest(input) err := req.Send() @@ -5387,6 +5445,7 @@ const opRevokeSnapshotAccess = "RevokeSnapshotAccess" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RevokeSnapshotAccess func (c *Redshift) RevokeSnapshotAccessRequest(input *RevokeSnapshotAccessInput) (req *request.Request, output *RevokeSnapshotAccessOutput) { op := &request.Operation{ Name: opRevokeSnapshotAccess, @@ -5398,9 +5457,8 @@ func (c *Redshift) RevokeSnapshotAccessRequest(input *RevokeSnapshotAccessInput) input = &RevokeSnapshotAccessInput{} } - req = c.newRequest(op, input, output) output = &RevokeSnapshotAccessOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5410,7 +5468,7 @@ func (c *Redshift) RevokeSnapshotAccessRequest(input *RevokeSnapshotAccessInput) // specified snapshot. If the account is currently restoring the snapshot, the // restore will run to completion. // -// For more information about working with snapshots, go to Amazon Redshift +// For more information about working with snapshots, go to Amazon Redshift // Snapshots (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html) // in the Amazon Redshift Cluster Management Guide. // @@ -5422,17 +5480,18 @@ func (c *Redshift) RevokeSnapshotAccessRequest(input *RevokeSnapshotAccessInput) // API operation RevokeSnapshotAccess for usage and error information. // // Returned Error Codes: -// * AccessToSnapshotDenied +// * ErrCodeAccessToSnapshotDeniedFault "AccessToSnapshotDenied" // The owner of the specified snapshot has not authorized your account to access // the snapshot. // -// * AuthorizationNotFound +// * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound" // The specified CIDR IP range or EC2 security group is not authorized for the // specified cluster security group. // -// * ClusterSnapshotNotFound +// * ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound" // The snapshot identifier does not refer to an existing cluster snapshot. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RevokeSnapshotAccess func (c *Redshift) RevokeSnapshotAccess(input *RevokeSnapshotAccessInput) (*RevokeSnapshotAccessOutput, error) { req, out := c.RevokeSnapshotAccessRequest(input) err := req.Send() @@ -5465,6 +5524,7 @@ const opRotateEncryptionKey = "RotateEncryptionKey" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RotateEncryptionKey func (c *Redshift) RotateEncryptionKeyRequest(input *RotateEncryptionKeyInput) (req *request.Request, output *RotateEncryptionKeyOutput) { op := &request.Operation{ Name: opRotateEncryptionKey, @@ -5476,9 +5536,8 @@ func (c *Redshift) RotateEncryptionKeyRequest(input *RotateEncryptionKeyInput) ( input = &RotateEncryptionKeyInput{} } - req = c.newRequest(op, input, output) output = &RotateEncryptionKeyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -5494,16 +5553,17 @@ func (c *Redshift) RotateEncryptionKeyRequest(input *RotateEncryptionKeyInput) ( // API operation RotateEncryptionKey for usage and error information. // // Returned Error Codes: -// * ClusterNotFound +// * ErrCodeClusterNotFoundFault "ClusterNotFound" // The ClusterIdentifier parameter does not refer to an existing cluster. // -// * InvalidClusterState +// * ErrCodeInvalidClusterStateFault "InvalidClusterState" // The specified cluster is not in the available state. // -// * DependentServiceRequestThrottlingFault +// * ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault" // The request cannot be completed because a dependent service is throttling // requests made by Amazon Redshift on your behalf. Wait and retry the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RotateEncryptionKey func (c *Redshift) RotateEncryptionKey(input *RotateEncryptionKeyInput) (*RotateEncryptionKeyOutput, error) { req, out := c.RotateEncryptionKeyRequest(input) err := req.Send() @@ -5511,6 +5571,7 @@ func (c *Redshift) RotateEncryptionKey(input *RotateEncryptionKeyInput) (*Rotate } // Describes an AWS customer account authorized to restore a snapshot. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AccountWithRestoreAccess type AccountWithRestoreAccess struct { _ struct{} `type:"structure"` @@ -5528,6 +5589,13 @@ func (s AccountWithRestoreAccess) GoString() string { return s.String() } +// SetAccountId sets the AccountId field's value. +func (s *AccountWithRestoreAccess) SetAccountId(v string) *AccountWithRestoreAccess { + s.AccountId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AuthorizeClusterSecurityGroupIngressMessage type AuthorizeClusterSecurityGroupIngressInput struct { _ struct{} `type:"structure"` @@ -5573,6 +5641,31 @@ func (s *AuthorizeClusterSecurityGroupIngressInput) Validate() error { return nil } +// SetCIDRIP sets the CIDRIP field's value. +func (s *AuthorizeClusterSecurityGroupIngressInput) SetCIDRIP(v string) *AuthorizeClusterSecurityGroupIngressInput { + s.CIDRIP = &v + return s +} + +// SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value. +func (s *AuthorizeClusterSecurityGroupIngressInput) SetClusterSecurityGroupName(v string) *AuthorizeClusterSecurityGroupIngressInput { + s.ClusterSecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value. +func (s *AuthorizeClusterSecurityGroupIngressInput) SetEC2SecurityGroupName(v string) *AuthorizeClusterSecurityGroupIngressInput { + s.EC2SecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value. +func (s *AuthorizeClusterSecurityGroupIngressInput) SetEC2SecurityGroupOwnerId(v string) *AuthorizeClusterSecurityGroupIngressInput { + s.EC2SecurityGroupOwnerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AuthorizeClusterSecurityGroupIngressResult type AuthorizeClusterSecurityGroupIngressOutput struct { _ struct{} `type:"structure"` @@ -5590,6 +5683,13 @@ func (s AuthorizeClusterSecurityGroupIngressOutput) GoString() string { return s.String() } +// SetClusterSecurityGroup sets the ClusterSecurityGroup field's value. +func (s *AuthorizeClusterSecurityGroupIngressOutput) SetClusterSecurityGroup(v *ClusterSecurityGroup) *AuthorizeClusterSecurityGroupIngressOutput { + s.ClusterSecurityGroup = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AuthorizeSnapshotAccessMessage type AuthorizeSnapshotAccessInput struct { _ struct{} `type:"structure"` @@ -5636,6 +5736,25 @@ func (s *AuthorizeSnapshotAccessInput) Validate() error { return nil } +// SetAccountWithRestoreAccess sets the AccountWithRestoreAccess field's value. +func (s *AuthorizeSnapshotAccessInput) SetAccountWithRestoreAccess(v string) *AuthorizeSnapshotAccessInput { + s.AccountWithRestoreAccess = &v + return s +} + +// SetSnapshotClusterIdentifier sets the SnapshotClusterIdentifier field's value. +func (s *AuthorizeSnapshotAccessInput) SetSnapshotClusterIdentifier(v string) *AuthorizeSnapshotAccessInput { + s.SnapshotClusterIdentifier = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *AuthorizeSnapshotAccessInput) SetSnapshotIdentifier(v string) *AuthorizeSnapshotAccessInput { + s.SnapshotIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AuthorizeSnapshotAccessResult type AuthorizeSnapshotAccessOutput struct { _ struct{} `type:"structure"` @@ -5653,7 +5772,14 @@ func (s AuthorizeSnapshotAccessOutput) GoString() string { return s.String() } +// SetSnapshot sets the Snapshot field's value. +func (s *AuthorizeSnapshotAccessOutput) SetSnapshot(v *Snapshot) *AuthorizeSnapshotAccessOutput { + s.Snapshot = v + return s +} + // Describes an availability zone. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AvailabilityZone type AvailabilityZone struct { _ struct{} `type:"structure"` @@ -5671,7 +5797,14 @@ func (s AvailabilityZone) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *AvailabilityZone) SetName(v string) *AvailabilityZone { + s.Name = &v + return s +} + // Describes a cluster. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/Cluster type Cluster struct { _ struct{} `type:"structure"` @@ -5719,37 +5852,37 @@ type Cluster struct { // The current state of the cluster. Possible values are the following: // - // available + // * available // - // creating + // * creating // - // deleting + // * deleting // - // final-snapshot + // * final-snapshot // - // hardware-failure + // * hardware-failure // - // incompatible-hsm + // * incompatible-hsm // - // incompatible-network + // * incompatible-network // - // incompatible-parameters + // * incompatible-parameters // - // incompatible-restore + // * incompatible-restore // - // modifying + // * modifying // - // rebooting + // * rebooting // - // renaming + // * renaming // - // resizing + // * resizing // - // rotating-keys + // * rotating-keys // - // storage-full + // * storage-full // - // updating-hsm + // * updating-hsm ClusterStatus *string `type:"string"` // The name of the subnet group that is associated with the cluster. This parameter @@ -5851,8 +5984,207 @@ func (s Cluster) GoString() string { return s.String() } +// SetAllowVersionUpgrade sets the AllowVersionUpgrade field's value. +func (s *Cluster) SetAllowVersionUpgrade(v bool) *Cluster { + s.AllowVersionUpgrade = &v + return s +} + +// SetAutomatedSnapshotRetentionPeriod sets the AutomatedSnapshotRetentionPeriod field's value. +func (s *Cluster) SetAutomatedSnapshotRetentionPeriod(v int64) *Cluster { + s.AutomatedSnapshotRetentionPeriod = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Cluster) SetAvailabilityZone(v string) *Cluster { + s.AvailabilityZone = &v + return s +} + +// SetClusterCreateTime sets the ClusterCreateTime field's value. +func (s *Cluster) SetClusterCreateTime(v time.Time) *Cluster { + s.ClusterCreateTime = &v + return s +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *Cluster) SetClusterIdentifier(v string) *Cluster { + s.ClusterIdentifier = &v + return s +} + +// SetClusterNodes sets the ClusterNodes field's value. +func (s *Cluster) SetClusterNodes(v []*ClusterNode) *Cluster { + s.ClusterNodes = v + return s +} + +// SetClusterParameterGroups sets the ClusterParameterGroups field's value. +func (s *Cluster) SetClusterParameterGroups(v []*ClusterParameterGroupStatus) *Cluster { + s.ClusterParameterGroups = v + return s +} + +// SetClusterPublicKey sets the ClusterPublicKey field's value. +func (s *Cluster) SetClusterPublicKey(v string) *Cluster { + s.ClusterPublicKey = &v + return s +} + +// SetClusterRevisionNumber sets the ClusterRevisionNumber field's value. +func (s *Cluster) SetClusterRevisionNumber(v string) *Cluster { + s.ClusterRevisionNumber = &v + return s +} + +// SetClusterSecurityGroups sets the ClusterSecurityGroups field's value. +func (s *Cluster) SetClusterSecurityGroups(v []*ClusterSecurityGroupMembership) *Cluster { + s.ClusterSecurityGroups = v + return s +} + +// SetClusterSnapshotCopyStatus sets the ClusterSnapshotCopyStatus field's value. +func (s *Cluster) SetClusterSnapshotCopyStatus(v *ClusterSnapshotCopyStatus) *Cluster { + s.ClusterSnapshotCopyStatus = v + return s +} + +// SetClusterStatus sets the ClusterStatus field's value. +func (s *Cluster) SetClusterStatus(v string) *Cluster { + s.ClusterStatus = &v + return s +} + +// SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value. +func (s *Cluster) SetClusterSubnetGroupName(v string) *Cluster { + s.ClusterSubnetGroupName = &v + return s +} + +// SetClusterVersion sets the ClusterVersion field's value. +func (s *Cluster) SetClusterVersion(v string) *Cluster { + s.ClusterVersion = &v + return s +} + +// SetDBName sets the DBName field's value. +func (s *Cluster) SetDBName(v string) *Cluster { + s.DBName = &v + return s +} + +// SetElasticIpStatus sets the ElasticIpStatus field's value. +func (s *Cluster) SetElasticIpStatus(v *ElasticIpStatus) *Cluster { + s.ElasticIpStatus = v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *Cluster) SetEncrypted(v bool) *Cluster { + s.Encrypted = &v + return s +} + +// SetEndpoint sets the Endpoint field's value. +func (s *Cluster) SetEndpoint(v *Endpoint) *Cluster { + s.Endpoint = v + return s +} + +// SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value. +func (s *Cluster) SetEnhancedVpcRouting(v bool) *Cluster { + s.EnhancedVpcRouting = &v + return s +} + +// SetHsmStatus sets the HsmStatus field's value. +func (s *Cluster) SetHsmStatus(v *HsmStatus) *Cluster { + s.HsmStatus = v + return s +} + +// SetIamRoles sets the IamRoles field's value. +func (s *Cluster) SetIamRoles(v []*ClusterIamRole) *Cluster { + s.IamRoles = v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *Cluster) SetKmsKeyId(v string) *Cluster { + s.KmsKeyId = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *Cluster) SetMasterUsername(v string) *Cluster { + s.MasterUsername = &v + return s +} + +// SetModifyStatus sets the ModifyStatus field's value. +func (s *Cluster) SetModifyStatus(v string) *Cluster { + s.ModifyStatus = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *Cluster) SetNodeType(v string) *Cluster { + s.NodeType = &v + return s +} + +// SetNumberOfNodes sets the NumberOfNodes field's value. +func (s *Cluster) SetNumberOfNodes(v int64) *Cluster { + s.NumberOfNodes = &v + return s +} + +// SetPendingModifiedValues sets the PendingModifiedValues field's value. +func (s *Cluster) SetPendingModifiedValues(v *PendingModifiedValues) *Cluster { + s.PendingModifiedValues = v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *Cluster) SetPreferredMaintenanceWindow(v string) *Cluster { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *Cluster) SetPubliclyAccessible(v bool) *Cluster { + s.PubliclyAccessible = &v + return s +} + +// SetRestoreStatus sets the RestoreStatus field's value. +func (s *Cluster) SetRestoreStatus(v *RestoreStatus) *Cluster { + s.RestoreStatus = v + return s +} + +// SetTags sets the Tags field's value. +func (s *Cluster) SetTags(v []*Tag) *Cluster { + s.Tags = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *Cluster) SetVpcId(v string) *Cluster { + s.VpcId = &v + return s +} + +// SetVpcSecurityGroups sets the VpcSecurityGroups field's value. +func (s *Cluster) SetVpcSecurityGroups(v []*VpcSecurityGroupMembership) *Cluster { + s.VpcSecurityGroups = v + return s +} + // An AWS Identity and Access Management (IAM) role that can be used by the // associated Amazon Redshift cluster to access other AWS services. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ClusterIamRole type ClusterIamRole struct { _ struct{} `type:"structure"` @@ -5861,12 +6193,12 @@ type ClusterIamRole struct { // // The following are possible statuses and descriptions. // - // in-sync: The role is available for use by the cluster. + // * in-sync: The role is available for use by the cluster. // - // adding: The role is in the process of being associated with the cluster. + // * adding: The role is in the process of being associated with the cluster. // - // removing: The role is in the process of being disassociated with the - // cluster. + // * removing: The role is in the process of being disassociated with the + // cluster. ApplyStatus *string `type:"string"` // The Amazon Resource Name (ARN) of the IAM role, for example, arn:aws:iam::123456789012:role/RedshiftCopyUnload. @@ -5883,7 +6215,20 @@ func (s ClusterIamRole) GoString() string { return s.String() } +// SetApplyStatus sets the ApplyStatus field's value. +func (s *ClusterIamRole) SetApplyStatus(v string) *ClusterIamRole { + s.ApplyStatus = &v + return s +} + +// SetIamRoleArn sets the IamRoleArn field's value. +func (s *ClusterIamRole) SetIamRoleArn(v string) *ClusterIamRole { + s.IamRoleArn = &v + return s +} + // The identifier of a node in a cluster. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ClusterNode type ClusterNode struct { _ struct{} `type:"structure"` @@ -5907,7 +6252,26 @@ func (s ClusterNode) GoString() string { return s.String() } +// SetNodeRole sets the NodeRole field's value. +func (s *ClusterNode) SetNodeRole(v string) *ClusterNode { + s.NodeRole = &v + return s +} + +// SetPrivateIPAddress sets the PrivateIPAddress field's value. +func (s *ClusterNode) SetPrivateIPAddress(v string) *ClusterNode { + s.PrivateIPAddress = &v + return s +} + +// SetPublicIPAddress sets the PublicIPAddress field's value. +func (s *ClusterNode) SetPublicIPAddress(v string) *ClusterNode { + s.PublicIPAddress = &v + return s +} + // Describes a parameter group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ClusterParameterGroup type ClusterParameterGroup struct { _ struct{} `type:"structure"` @@ -5935,6 +6299,31 @@ func (s ClusterParameterGroup) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *ClusterParameterGroup) SetDescription(v string) *ClusterParameterGroup { + s.Description = &v + return s +} + +// SetParameterGroupFamily sets the ParameterGroupFamily field's value. +func (s *ClusterParameterGroup) SetParameterGroupFamily(v string) *ClusterParameterGroup { + s.ParameterGroupFamily = &v + return s +} + +// SetParameterGroupName sets the ParameterGroupName field's value. +func (s *ClusterParameterGroup) SetParameterGroupName(v string) *ClusterParameterGroup { + s.ParameterGroupName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ClusterParameterGroup) SetTags(v []*Tag) *ClusterParameterGroup { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ClusterParameterGroupNameMessage type ClusterParameterGroupNameMessage struct { _ struct{} `type:"structure"` @@ -5957,13 +6346,26 @@ func (s ClusterParameterGroupNameMessage) GoString() string { return s.String() } +// SetParameterGroupName sets the ParameterGroupName field's value. +func (s *ClusterParameterGroupNameMessage) SetParameterGroupName(v string) *ClusterParameterGroupNameMessage { + s.ParameterGroupName = &v + return s +} + +// SetParameterGroupStatus sets the ParameterGroupStatus field's value. +func (s *ClusterParameterGroupNameMessage) SetParameterGroupStatus(v string) *ClusterParameterGroupNameMessage { + s.ParameterGroupStatus = &v + return s +} + // Describes the status of a parameter group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ClusterParameterGroupStatus type ClusterParameterGroupStatus struct { _ struct{} `type:"structure"` // The list of parameter statuses. // - // For more information about parameters and parameter groups, go to Amazon + // For more information about parameters and parameter groups, go to Amazon // Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) // in the Amazon Redshift Cluster Management Guide. ClusterParameterStatusList []*ClusterParameterStatus `type:"list"` @@ -5985,7 +6387,26 @@ func (s ClusterParameterGroupStatus) GoString() string { return s.String() } -// Describes the status of a parameter group. +// SetClusterParameterStatusList sets the ClusterParameterStatusList field's value. +func (s *ClusterParameterGroupStatus) SetClusterParameterStatusList(v []*ClusterParameterStatus) *ClusterParameterGroupStatus { + s.ClusterParameterStatusList = v + return s +} + +// SetParameterApplyStatus sets the ParameterApplyStatus field's value. +func (s *ClusterParameterGroupStatus) SetParameterApplyStatus(v string) *ClusterParameterGroupStatus { + s.ParameterApplyStatus = &v + return s +} + +// SetParameterGroupName sets the ParameterGroupName field's value. +func (s *ClusterParameterGroupStatus) SetParameterGroupName(v string) *ClusterParameterGroupStatus { + s.ParameterGroupName = &v + return s +} + +// Describes the status of a parameter group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ClusterParameterStatus type ClusterParameterStatus struct { _ struct{} `type:"structure"` @@ -5998,24 +6419,24 @@ type ClusterParameterStatus struct { // // The following are possible statuses and descriptions. // - // in-sync: The parameter value is in sync with the database. + // * in-sync: The parameter value is in sync with the database. // - // pending-reboot: The parameter value will be applied after the cluster - // reboots. + // * pending-reboot: The parameter value will be applied after the cluster + // reboots. // - // applying: The parameter value is being applied to the database. + // * applying: The parameter value is being applied to the database. // - // invalid-parameter: Cannot apply the parameter value because it has an - // invalid value or syntax. + // * invalid-parameter: Cannot apply the parameter value because it has an + // invalid value or syntax. // - // apply-deferred: The parameter contains static property changes. The changes - // are deferred until the cluster reboots. + // * apply-deferred: The parameter contains static property changes. The + // changes are deferred until the cluster reboots. // - // apply-error: Cannot connect to the cluster. The parameter change will - // be applied after the cluster reboots. + // * apply-error: Cannot connect to the cluster. The parameter change will + // be applied after the cluster reboots. // - // unknown-error: Cannot apply the parameter change right now. The change - // will be applied after the cluster reboots. + // * unknown-error: Cannot apply the parameter change right now. The change + // will be applied after the cluster reboots. ParameterApplyStatus *string `type:"string"` // The name of the parameter. @@ -6032,7 +6453,26 @@ func (s ClusterParameterStatus) GoString() string { return s.String() } +// SetParameterApplyErrorDescription sets the ParameterApplyErrorDescription field's value. +func (s *ClusterParameterStatus) SetParameterApplyErrorDescription(v string) *ClusterParameterStatus { + s.ParameterApplyErrorDescription = &v + return s +} + +// SetParameterApplyStatus sets the ParameterApplyStatus field's value. +func (s *ClusterParameterStatus) SetParameterApplyStatus(v string) *ClusterParameterStatus { + s.ParameterApplyStatus = &v + return s +} + +// SetParameterName sets the ParameterName field's value. +func (s *ClusterParameterStatus) SetParameterName(v string) *ClusterParameterStatus { + s.ParameterName = &v + return s +} + // Describes a security group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ClusterSecurityGroup type ClusterSecurityGroup struct { _ struct{} `type:"structure"` @@ -6064,7 +6504,38 @@ func (s ClusterSecurityGroup) GoString() string { return s.String() } +// SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value. +func (s *ClusterSecurityGroup) SetClusterSecurityGroupName(v string) *ClusterSecurityGroup { + s.ClusterSecurityGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ClusterSecurityGroup) SetDescription(v string) *ClusterSecurityGroup { + s.Description = &v + return s +} + +// SetEC2SecurityGroups sets the EC2SecurityGroups field's value. +func (s *ClusterSecurityGroup) SetEC2SecurityGroups(v []*EC2SecurityGroup) *ClusterSecurityGroup { + s.EC2SecurityGroups = v + return s +} + +// SetIPRanges sets the IPRanges field's value. +func (s *ClusterSecurityGroup) SetIPRanges(v []*IPRange) *ClusterSecurityGroup { + s.IPRanges = v + return s +} + +// SetTags sets the Tags field's value. +func (s *ClusterSecurityGroup) SetTags(v []*Tag) *ClusterSecurityGroup { + s.Tags = v + return s +} + // Describes a cluster security group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ClusterSecurityGroupMembership type ClusterSecurityGroupMembership struct { _ struct{} `type:"structure"` @@ -6085,8 +6556,21 @@ func (s ClusterSecurityGroupMembership) GoString() string { return s.String() } +// SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value. +func (s *ClusterSecurityGroupMembership) SetClusterSecurityGroupName(v string) *ClusterSecurityGroupMembership { + s.ClusterSecurityGroupName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ClusterSecurityGroupMembership) SetStatus(v string) *ClusterSecurityGroupMembership { + s.Status = &v + return s +} + // Returns the destination region and retention period that are configured for // cross-region snapshot copy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ClusterSnapshotCopyStatus type ClusterSnapshotCopyStatus struct { _ struct{} `type:"structure"` @@ -6112,7 +6596,26 @@ func (s ClusterSnapshotCopyStatus) GoString() string { return s.String() } +// SetDestinationRegion sets the DestinationRegion field's value. +func (s *ClusterSnapshotCopyStatus) SetDestinationRegion(v string) *ClusterSnapshotCopyStatus { + s.DestinationRegion = &v + return s +} + +// SetRetentionPeriod sets the RetentionPeriod field's value. +func (s *ClusterSnapshotCopyStatus) SetRetentionPeriod(v int64) *ClusterSnapshotCopyStatus { + s.RetentionPeriod = &v + return s +} + +// SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value. +func (s *ClusterSnapshotCopyStatus) SetSnapshotCopyGrantName(v string) *ClusterSnapshotCopyStatus { + s.SnapshotCopyGrantName = &v + return s +} + // Describes a subnet group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ClusterSubnetGroup type ClusterSubnetGroup struct { _ struct{} `type:"structure"` @@ -6146,8 +6649,45 @@ func (s ClusterSubnetGroup) GoString() string { return s.String() } +// SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value. +func (s *ClusterSubnetGroup) SetClusterSubnetGroupName(v string) *ClusterSubnetGroup { + s.ClusterSubnetGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ClusterSubnetGroup) SetDescription(v string) *ClusterSubnetGroup { + s.Description = &v + return s +} + +// SetSubnetGroupStatus sets the SubnetGroupStatus field's value. +func (s *ClusterSubnetGroup) SetSubnetGroupStatus(v string) *ClusterSubnetGroup { + s.SubnetGroupStatus = &v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *ClusterSubnetGroup) SetSubnets(v []*Subnet) *ClusterSubnetGroup { + s.Subnets = v + return s +} + +// SetTags sets the Tags field's value. +func (s *ClusterSubnetGroup) SetTags(v []*Tag) *ClusterSubnetGroup { + s.Tags = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *ClusterSubnetGroup) SetVpcId(v string) *ClusterSubnetGroup { + s.VpcId = &v + return s +} + // Describes a cluster version, including the parameter group family and description // of the version. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ClusterVersion type ClusterVersion struct { _ struct{} `type:"structure"` @@ -6171,6 +6711,25 @@ func (s ClusterVersion) GoString() string { return s.String() } +// SetClusterParameterGroupFamily sets the ClusterParameterGroupFamily field's value. +func (s *ClusterVersion) SetClusterParameterGroupFamily(v string) *ClusterVersion { + s.ClusterParameterGroupFamily = &v + return s +} + +// SetClusterVersion sets the ClusterVersion field's value. +func (s *ClusterVersion) SetClusterVersion(v string) *ClusterVersion { + s.ClusterVersion = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ClusterVersion) SetDescription(v string) *ClusterVersion { + s.Description = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CopyClusterSnapshotMessage type CopyClusterSnapshotInput struct { _ struct{} `type:"structure"` @@ -6180,14 +6739,15 @@ type CopyClusterSnapshotInput struct { // // Constraints: // - // Must be the identifier for a valid cluster. + // * Must be the identifier for a valid cluster. SourceSnapshotClusterIdentifier *string `type:"string"` // The identifier for the source snapshot. // // Constraints: // - // Must be the identifier for a valid automated snapshot whose state is available. + // * Must be the identifier for a valid automated snapshot whose state is + // available. // // SourceSnapshotIdentifier is a required field SourceSnapshotIdentifier *string `type:"string" required:"true"` @@ -6196,15 +6756,15 @@ type CopyClusterSnapshotInput struct { // // Constraints: // - // Cannot be null, empty, or blank. + // * Cannot be null, empty, or blank. // - // Must contain from 1 to 255 alphanumeric characters or hyphens. + // * Must contain from 1 to 255 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Must be unique for the AWS account that is making the request. + // * Must be unique for the AWS account that is making the request. // // TargetSnapshotIdentifier is a required field TargetSnapshotIdentifier *string `type:"string" required:"true"` @@ -6236,6 +6796,25 @@ func (s *CopyClusterSnapshotInput) Validate() error { return nil } +// SetSourceSnapshotClusterIdentifier sets the SourceSnapshotClusterIdentifier field's value. +func (s *CopyClusterSnapshotInput) SetSourceSnapshotClusterIdentifier(v string) *CopyClusterSnapshotInput { + s.SourceSnapshotClusterIdentifier = &v + return s +} + +// SetSourceSnapshotIdentifier sets the SourceSnapshotIdentifier field's value. +func (s *CopyClusterSnapshotInput) SetSourceSnapshotIdentifier(v string) *CopyClusterSnapshotInput { + s.SourceSnapshotIdentifier = &v + return s +} + +// SetTargetSnapshotIdentifier sets the TargetSnapshotIdentifier field's value. +func (s *CopyClusterSnapshotInput) SetTargetSnapshotIdentifier(v string) *CopyClusterSnapshotInput { + s.TargetSnapshotIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CopyClusterSnapshotResult type CopyClusterSnapshotOutput struct { _ struct{} `type:"structure"` @@ -6253,6 +6832,13 @@ func (s CopyClusterSnapshotOutput) GoString() string { return s.String() } +// SetSnapshot sets the Snapshot field's value. +func (s *CopyClusterSnapshotOutput) SetSnapshot(v *Snapshot) *CopyClusterSnapshotOutput { + s.Snapshot = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterMessage type CreateClusterInput struct { _ struct{} `type:"structure"` @@ -6262,8 +6848,8 @@ type CreateClusterInput struct { // If true, major version upgrades can be applied during the maintenance window // to the Amazon Redshift engine that is running on the cluster. // - // When a new major version of the Amazon Redshift engine is released, you - // can request that the service automatically apply upgrades during the maintenance + // When a new major version of the Amazon Redshift engine is released, you can + // request that the service automatically apply upgrades during the maintenance // window to the Amazon Redshift engine that is running on your cluster. // // Default: true @@ -6298,17 +6884,17 @@ type CreateClusterInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // Alphabetic characters must be lowercase. + // * Alphabetic characters must be lowercase. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Must be unique for all clusters within an AWS account. + // * Must be unique for all clusters within an AWS account. // - // Example: myexamplecluster + // Example: myexamplecluster // // ClusterIdentifier is a required field ClusterIdentifier *string `type:"string" required:"true"` @@ -6321,11 +6907,11 @@ type CreateClusterInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters or hyphens. + // * Must be 1 to 255 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. ClusterParameterGroupName *string `type:"string"` // A list of security groups to be associated with this cluster. @@ -6341,11 +6927,11 @@ type CreateClusterInput struct { // The type of the cluster. When cluster type is specified as // - // single-node, the NumberOfNodes parameter is not required. + // * single-node, the NumberOfNodes parameter is not required. // - // multi-node, the NumberOfNodes parameter is required. + // * multi-node, the NumberOfNodes parameter is required. // - // Valid Values: multi-node | single-node + // Valid Values: multi-node | single-node // // Default: multi-node ClusterType *string `type:"string"` @@ -6362,22 +6948,22 @@ type CreateClusterInput struct { // The name of the first database to be created when the cluster is created. // - // To create additional databases after the cluster is created, connect to - // the cluster with a SQL client and use SQL commands to create a database. - // For more information, go to Create a Database (http://docs.aws.amazon.com/redshift/latest/dg/t_creating_database.html) + // To create additional databases after the cluster is created, connect to the + // cluster with a SQL client and use SQL commands to create a database. For + // more information, go to Create a Database (http://docs.aws.amazon.com/redshift/latest/dg/t_creating_database.html) // in the Amazon Redshift Database Developer Guide. // // Default: dev // // Constraints: // - // Must contain 1 to 64 alphanumeric characters. + // * Must contain 1 to 64 alphanumeric characters. // - // Must contain only lowercase letters. + // * Must contain only lowercase letters. // - // Cannot be a word that is reserved by the service. A list of reserved words - // can be found in Reserved Words (http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html) - // in the Amazon Redshift Database Developer Guide. + // * Cannot be a word that is reserved by the service. A list of reserved + // words can be found in Reserved Words (http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html) + // in the Amazon Redshift Database Developer Guide. DBName *string `type:"string"` // The Elastic IP (EIP) address for the cluster. @@ -6429,16 +7015,16 @@ type CreateClusterInput struct { // // Constraints: // - // Must be between 8 and 64 characters in length. + // * Must be between 8 and 64 characters in length. // - // Must contain at least one uppercase letter. + // * Must contain at least one uppercase letter. // - // Must contain at least one lowercase letter. + // * Must contain at least one lowercase letter. // - // Must contain one number. + // * Must contain one number. // - // Can be any printable ASCII character (ASCII code 33 to 126) except ' (single - // quote), " (double quote), \, /, @, or space. + // * Can be any printable ASCII character (ASCII code 33 to 126) except ' + // (single quote), " (double quote), \, /, @, or space. // // MasterUserPassword is a required field MasterUserPassword *string `type:"string" required:"true"` @@ -6448,13 +7034,13 @@ type CreateClusterInput struct { // // Constraints: // - // Must be 1 - 128 alphanumeric characters. + // * Must be 1 - 128 alphanumeric characters. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot be a reserved word. A list of reserved words can be found in Reserved - // Words (http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html) - // in the Amazon Redshift Database Developer Guide. + // * Cannot be a reserved word. A list of reserved words can be found in + // Reserved Words (http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html) + // in the Amazon Redshift Database Developer Guide. // // MasterUsername is a required field MasterUsername *string `type:"string" required:"true"` @@ -6499,11 +7085,11 @@ type CreateClusterInput struct { // The weekly time range (in UTC) during which automated cluster maintenance // can occur. // - // Format: ddd:hh24:mi-ddd:hh24:mi + // Format: ddd:hh24:mi-ddd:hh24:mi // - // Default: A 30-minute window selected at random from an 8-hour block of - // time per region, occurring on a random day of the week. For more information - // about the time blocks for each region, see Maintenance Windows (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#rs-maintenance-windows) + // Default: A 30-minute window selected at random from an 8-hour block of time + // per region, occurring on a random day of the week. For more information about + // the time blocks for each region, see Maintenance Windows (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#rs-maintenance-windows) // in Amazon Redshift Cluster Management Guide. // // Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun @@ -6556,6 +7142,169 @@ func (s *CreateClusterInput) Validate() error { return nil } +// SetAdditionalInfo sets the AdditionalInfo field's value. +func (s *CreateClusterInput) SetAdditionalInfo(v string) *CreateClusterInput { + s.AdditionalInfo = &v + return s +} + +// SetAllowVersionUpgrade sets the AllowVersionUpgrade field's value. +func (s *CreateClusterInput) SetAllowVersionUpgrade(v bool) *CreateClusterInput { + s.AllowVersionUpgrade = &v + return s +} + +// SetAutomatedSnapshotRetentionPeriod sets the AutomatedSnapshotRetentionPeriod field's value. +func (s *CreateClusterInput) SetAutomatedSnapshotRetentionPeriod(v int64) *CreateClusterInput { + s.AutomatedSnapshotRetentionPeriod = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateClusterInput) SetAvailabilityZone(v string) *CreateClusterInput { + s.AvailabilityZone = &v + return s +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *CreateClusterInput) SetClusterIdentifier(v string) *CreateClusterInput { + s.ClusterIdentifier = &v + return s +} + +// SetClusterParameterGroupName sets the ClusterParameterGroupName field's value. +func (s *CreateClusterInput) SetClusterParameterGroupName(v string) *CreateClusterInput { + s.ClusterParameterGroupName = &v + return s +} + +// SetClusterSecurityGroups sets the ClusterSecurityGroups field's value. +func (s *CreateClusterInput) SetClusterSecurityGroups(v []*string) *CreateClusterInput { + s.ClusterSecurityGroups = v + return s +} + +// SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value. +func (s *CreateClusterInput) SetClusterSubnetGroupName(v string) *CreateClusterInput { + s.ClusterSubnetGroupName = &v + return s +} + +// SetClusterType sets the ClusterType field's value. +func (s *CreateClusterInput) SetClusterType(v string) *CreateClusterInput { + s.ClusterType = &v + return s +} + +// SetClusterVersion sets the ClusterVersion field's value. +func (s *CreateClusterInput) SetClusterVersion(v string) *CreateClusterInput { + s.ClusterVersion = &v + return s +} + +// SetDBName sets the DBName field's value. +func (s *CreateClusterInput) SetDBName(v string) *CreateClusterInput { + s.DBName = &v + return s +} + +// SetElasticIp sets the ElasticIp field's value. +func (s *CreateClusterInput) SetElasticIp(v string) *CreateClusterInput { + s.ElasticIp = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *CreateClusterInput) SetEncrypted(v bool) *CreateClusterInput { + s.Encrypted = &v + return s +} + +// SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value. +func (s *CreateClusterInput) SetEnhancedVpcRouting(v bool) *CreateClusterInput { + s.EnhancedVpcRouting = &v + return s +} + +// SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value. +func (s *CreateClusterInput) SetHsmClientCertificateIdentifier(v string) *CreateClusterInput { + s.HsmClientCertificateIdentifier = &v + return s +} + +// SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value. +func (s *CreateClusterInput) SetHsmConfigurationIdentifier(v string) *CreateClusterInput { + s.HsmConfigurationIdentifier = &v + return s +} + +// SetIamRoles sets the IamRoles field's value. +func (s *CreateClusterInput) SetIamRoles(v []*string) *CreateClusterInput { + s.IamRoles = v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateClusterInput) SetKmsKeyId(v string) *CreateClusterInput { + s.KmsKeyId = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *CreateClusterInput) SetMasterUserPassword(v string) *CreateClusterInput { + s.MasterUserPassword = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *CreateClusterInput) SetMasterUsername(v string) *CreateClusterInput { + s.MasterUsername = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *CreateClusterInput) SetNodeType(v string) *CreateClusterInput { + s.NodeType = &v + return s +} + +// SetNumberOfNodes sets the NumberOfNodes field's value. +func (s *CreateClusterInput) SetNumberOfNodes(v int64) *CreateClusterInput { + s.NumberOfNodes = &v + return s +} + +// SetPort sets the Port field's value. +func (s *CreateClusterInput) SetPort(v int64) *CreateClusterInput { + s.Port = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *CreateClusterInput) SetPreferredMaintenanceWindow(v string) *CreateClusterInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *CreateClusterInput) SetPubliclyAccessible(v bool) *CreateClusterInput { + s.PubliclyAccessible = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateClusterInput) SetTags(v []*Tag) *CreateClusterInput { + s.Tags = v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *CreateClusterInput) SetVpcSecurityGroupIds(v []*string) *CreateClusterInput { + s.VpcSecurityGroupIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterResult type CreateClusterOutput struct { _ struct{} `type:"structure"` @@ -6573,6 +7322,13 @@ func (s CreateClusterOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *CreateClusterOutput) SetCluster(v *Cluster) *CreateClusterOutput { + s.Cluster = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterParameterGroupMessage type CreateClusterParameterGroupInput struct { _ struct{} `type:"structure"` @@ -6598,15 +7354,15 @@ type CreateClusterParameterGroupInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters or hyphens + // * Must be 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Must be unique withing your AWS account. + // * Must be unique withing your AWS account. // - // This value is stored as a lower-case string. + // This value is stored as a lower-case string. // // ParameterGroupName is a required field ParameterGroupName *string `type:"string" required:"true"` @@ -6644,6 +7400,31 @@ func (s *CreateClusterParameterGroupInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateClusterParameterGroupInput) SetDescription(v string) *CreateClusterParameterGroupInput { + s.Description = &v + return s +} + +// SetParameterGroupFamily sets the ParameterGroupFamily field's value. +func (s *CreateClusterParameterGroupInput) SetParameterGroupFamily(v string) *CreateClusterParameterGroupInput { + s.ParameterGroupFamily = &v + return s +} + +// SetParameterGroupName sets the ParameterGroupName field's value. +func (s *CreateClusterParameterGroupInput) SetParameterGroupName(v string) *CreateClusterParameterGroupInput { + s.ParameterGroupName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateClusterParameterGroupInput) SetTags(v []*Tag) *CreateClusterParameterGroupInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterParameterGroupResult type CreateClusterParameterGroupOutput struct { _ struct{} `type:"structure"` @@ -6661,6 +7442,13 @@ func (s CreateClusterParameterGroupOutput) GoString() string { return s.String() } +// SetClusterParameterGroup sets the ClusterParameterGroup field's value. +func (s *CreateClusterParameterGroupOutput) SetClusterParameterGroup(v *ClusterParameterGroup) *CreateClusterParameterGroupOutput { + s.ClusterParameterGroup = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSecurityGroupMessage type CreateClusterSecurityGroupInput struct { _ struct{} `type:"structure"` @@ -6669,13 +7457,14 @@ type CreateClusterSecurityGroupInput struct { // // Constraints: // - // Must contain no more than 255 alphanumeric characters or hyphens. + // * Must contain no more than 255 alphanumeric characters or hyphens. // - // Must not be "Default". + // * Must not be "Default". // - // Must be unique for all security groups that are created by your AWS account. + // * Must be unique for all security groups that are created by your AWS + // account. // - // Example: examplesecuritygroup + // Example: examplesecuritygroup // // ClusterSecurityGroupName is a required field ClusterSecurityGroupName *string `type:"string" required:"true"` @@ -6715,6 +7504,25 @@ func (s *CreateClusterSecurityGroupInput) Validate() error { return nil } +// SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value. +func (s *CreateClusterSecurityGroupInput) SetClusterSecurityGroupName(v string) *CreateClusterSecurityGroupInput { + s.ClusterSecurityGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateClusterSecurityGroupInput) SetDescription(v string) *CreateClusterSecurityGroupInput { + s.Description = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateClusterSecurityGroupInput) SetTags(v []*Tag) *CreateClusterSecurityGroupInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSecurityGroupResult type CreateClusterSecurityGroupOutput struct { _ struct{} `type:"structure"` @@ -6732,6 +7540,13 @@ func (s CreateClusterSecurityGroupOutput) GoString() string { return s.String() } +// SetClusterSecurityGroup sets the ClusterSecurityGroup field's value. +func (s *CreateClusterSecurityGroupOutput) SetClusterSecurityGroup(v *ClusterSecurityGroup) *CreateClusterSecurityGroupOutput { + s.ClusterSecurityGroup = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSnapshotMessage type CreateClusterSnapshotInput struct { _ struct{} `type:"structure"` @@ -6745,15 +7560,15 @@ type CreateClusterSnapshotInput struct { // // Constraints: // - // Cannot be null, empty, or blank + // * Cannot be null, empty, or blank // - // Must contain from 1 to 255 alphanumeric characters or hyphens + // * Must contain from 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens // - // Example: my-snapshot-id + // Example: my-snapshot-id // // SnapshotIdentifier is a required field SnapshotIdentifier *string `type:"string" required:"true"` @@ -6788,6 +7603,25 @@ func (s *CreateClusterSnapshotInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *CreateClusterSnapshotInput) SetClusterIdentifier(v string) *CreateClusterSnapshotInput { + s.ClusterIdentifier = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *CreateClusterSnapshotInput) SetSnapshotIdentifier(v string) *CreateClusterSnapshotInput { + s.SnapshotIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateClusterSnapshotInput) SetTags(v []*Tag) *CreateClusterSnapshotInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSnapshotResult type CreateClusterSnapshotOutput struct { _ struct{} `type:"structure"` @@ -6805,6 +7639,13 @@ func (s CreateClusterSnapshotOutput) GoString() string { return s.String() } +// SetSnapshot sets the Snapshot field's value. +func (s *CreateClusterSnapshotOutput) SetSnapshot(v *Snapshot) *CreateClusterSnapshotOutput { + s.Snapshot = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSubnetGroupMessage type CreateClusterSubnetGroupInput struct { _ struct{} `type:"structure"` @@ -6813,13 +7654,13 @@ type CreateClusterSubnetGroupInput struct { // // Constraints: // - // Must contain no more than 255 alphanumeric characters or hyphens. + // * Must contain no more than 255 alphanumeric characters or hyphens. // - // Must not be "Default". + // * Must not be "Default". // - // Must be unique for all subnet groups that are created by your AWS account. + // * Must be unique for all subnet groups that are created by your AWS account. // - // Example: examplesubnetgroup + // Example: examplesubnetgroup // // ClusterSubnetGroupName is a required field ClusterSubnetGroupName *string `type:"string" required:"true"` @@ -6868,6 +7709,31 @@ func (s *CreateClusterSubnetGroupInput) Validate() error { return nil } +// SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value. +func (s *CreateClusterSubnetGroupInput) SetClusterSubnetGroupName(v string) *CreateClusterSubnetGroupInput { + s.ClusterSubnetGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateClusterSubnetGroupInput) SetDescription(v string) *CreateClusterSubnetGroupInput { + s.Description = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *CreateClusterSubnetGroupInput) SetSubnetIds(v []*string) *CreateClusterSubnetGroupInput { + s.SubnetIds = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateClusterSubnetGroupInput) SetTags(v []*Tag) *CreateClusterSubnetGroupInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSubnetGroupResult type CreateClusterSubnetGroupOutput struct { _ struct{} `type:"structure"` @@ -6885,6 +7751,13 @@ func (s CreateClusterSubnetGroupOutput) GoString() string { return s.String() } +// SetClusterSubnetGroup sets the ClusterSubnetGroup field's value. +func (s *CreateClusterSubnetGroupOutput) SetClusterSubnetGroup(v *ClusterSubnetGroup) *CreateClusterSubnetGroupOutput { + s.ClusterSubnetGroup = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateEventSubscriptionMessage type CreateEventSubscriptionInput struct { _ struct{} `type:"structure"` @@ -6928,21 +7801,21 @@ type CreateEventSubscriptionInput struct { // for all Amazon Redshift objects in your AWS account. You must specify a source // type in order to specify source IDs. // - // Valid values: cluster, cluster-parameter-group, cluster-security-group, - // and cluster-snapshot. + // Valid values: cluster, cluster-parameter-group, cluster-security-group, and + // cluster-snapshot. SourceType *string `type:"string"` // The name of the event subscription to be created. // // Constraints: // - // Cannot be null, empty, or blank. + // * Cannot be null, empty, or blank. // - // Must contain from 1 to 255 alphanumeric characters or hyphens. + // * Must contain from 1 to 255 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // // SubscriptionName is a required field SubscriptionName *string `type:"string" required:"true"` @@ -6977,6 +7850,55 @@ func (s *CreateEventSubscriptionInput) Validate() error { return nil } +// SetEnabled sets the Enabled field's value. +func (s *CreateEventSubscriptionInput) SetEnabled(v bool) *CreateEventSubscriptionInput { + s.Enabled = &v + return s +} + +// SetEventCategories sets the EventCategories field's value. +func (s *CreateEventSubscriptionInput) SetEventCategories(v []*string) *CreateEventSubscriptionInput { + s.EventCategories = v + return s +} + +// SetSeverity sets the Severity field's value. +func (s *CreateEventSubscriptionInput) SetSeverity(v string) *CreateEventSubscriptionInput { + s.Severity = &v + return s +} + +// SetSnsTopicArn sets the SnsTopicArn field's value. +func (s *CreateEventSubscriptionInput) SetSnsTopicArn(v string) *CreateEventSubscriptionInput { + s.SnsTopicArn = &v + return s +} + +// SetSourceIds sets the SourceIds field's value. +func (s *CreateEventSubscriptionInput) SetSourceIds(v []*string) *CreateEventSubscriptionInput { + s.SourceIds = v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *CreateEventSubscriptionInput) SetSourceType(v string) *CreateEventSubscriptionInput { + s.SourceType = &v + return s +} + +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *CreateEventSubscriptionInput) SetSubscriptionName(v string) *CreateEventSubscriptionInput { + s.SubscriptionName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateEventSubscriptionInput) SetTags(v []*Tag) *CreateEventSubscriptionInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateEventSubscriptionResult type CreateEventSubscriptionOutput struct { _ struct{} `type:"structure"` @@ -6994,6 +7916,13 @@ func (s CreateEventSubscriptionOutput) GoString() string { return s.String() } +// SetEventSubscription sets the EventSubscription field's value. +func (s *CreateEventSubscriptionOutput) SetEventSubscription(v *EventSubscription) *CreateEventSubscriptionOutput { + s.EventSubscription = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateHsmClientCertificateMessage type CreateHsmClientCertificateInput struct { _ struct{} `type:"structure"` @@ -7030,6 +7959,19 @@ func (s *CreateHsmClientCertificateInput) Validate() error { return nil } +// SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value. +func (s *CreateHsmClientCertificateInput) SetHsmClientCertificateIdentifier(v string) *CreateHsmClientCertificateInput { + s.HsmClientCertificateIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateHsmClientCertificateInput) SetTags(v []*Tag) *CreateHsmClientCertificateInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateHsmClientCertificateResult type CreateHsmClientCertificateOutput struct { _ struct{} `type:"structure"` @@ -7049,6 +7991,13 @@ func (s CreateHsmClientCertificateOutput) GoString() string { return s.String() } +// SetHsmClientCertificate sets the HsmClientCertificate field's value. +func (s *CreateHsmClientCertificateOutput) SetHsmClientCertificate(v *HsmClientCertificate) *CreateHsmClientCertificateOutput { + s.HsmClientCertificate = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateHsmConfigurationMessage type CreateHsmConfigurationInput struct { _ struct{} `type:"structure"` @@ -7126,6 +8075,49 @@ func (s *CreateHsmConfigurationInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *CreateHsmConfigurationInput) SetDescription(v string) *CreateHsmConfigurationInput { + s.Description = &v + return s +} + +// SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value. +func (s *CreateHsmConfigurationInput) SetHsmConfigurationIdentifier(v string) *CreateHsmConfigurationInput { + s.HsmConfigurationIdentifier = &v + return s +} + +// SetHsmIpAddress sets the HsmIpAddress field's value. +func (s *CreateHsmConfigurationInput) SetHsmIpAddress(v string) *CreateHsmConfigurationInput { + s.HsmIpAddress = &v + return s +} + +// SetHsmPartitionName sets the HsmPartitionName field's value. +func (s *CreateHsmConfigurationInput) SetHsmPartitionName(v string) *CreateHsmConfigurationInput { + s.HsmPartitionName = &v + return s +} + +// SetHsmPartitionPassword sets the HsmPartitionPassword field's value. +func (s *CreateHsmConfigurationInput) SetHsmPartitionPassword(v string) *CreateHsmConfigurationInput { + s.HsmPartitionPassword = &v + return s +} + +// SetHsmServerPublicCertificate sets the HsmServerPublicCertificate field's value. +func (s *CreateHsmConfigurationInput) SetHsmServerPublicCertificate(v string) *CreateHsmConfigurationInput { + s.HsmServerPublicCertificate = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateHsmConfigurationInput) SetTags(v []*Tag) *CreateHsmConfigurationInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateHsmConfigurationResult type CreateHsmConfigurationOutput struct { _ struct{} `type:"structure"` @@ -7145,7 +8137,14 @@ func (s CreateHsmConfigurationOutput) GoString() string { return s.String() } +// SetHsmConfiguration sets the HsmConfiguration field's value. +func (s *CreateHsmConfigurationOutput) SetHsmConfiguration(v *HsmConfiguration) *CreateHsmConfigurationOutput { + s.HsmConfiguration = v + return s +} + // The result of the CreateSnapshotCopyGrant action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateSnapshotCopyGrantMessage type CreateSnapshotCopyGrantInput struct { _ struct{} `type:"structure"` @@ -7158,15 +8157,15 @@ type CreateSnapshotCopyGrantInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // Alphabetic characters must be lowercase. + // * Alphabetic characters must be lowercase. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Must be unique for all clusters within an AWS account. + // * Must be unique for all clusters within an AWS account. // // SnapshotCopyGrantName is a required field SnapshotCopyGrantName *string `type:"string" required:"true"` @@ -7198,6 +8197,25 @@ func (s *CreateSnapshotCopyGrantInput) Validate() error { return nil } +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateSnapshotCopyGrantInput) SetKmsKeyId(v string) *CreateSnapshotCopyGrantInput { + s.KmsKeyId = &v + return s +} + +// SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value. +func (s *CreateSnapshotCopyGrantInput) SetSnapshotCopyGrantName(v string) *CreateSnapshotCopyGrantInput { + s.SnapshotCopyGrantName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateSnapshotCopyGrantInput) SetTags(v []*Tag) *CreateSnapshotCopyGrantInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateSnapshotCopyGrantResult type CreateSnapshotCopyGrantOutput struct { _ struct{} `type:"structure"` @@ -7205,8 +8223,8 @@ type CreateSnapshotCopyGrantOutput struct { // copied snapshots with the specified customer master key (CMK) from AWS KMS // in the destination region. // - // For more information about managing snapshot copy grants, go to Amazon - // Redshift Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) + // For more information about managing snapshot copy grants, go to Amazon Redshift + // Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) // in the Amazon Redshift Cluster Management Guide. SnapshotCopyGrant *SnapshotCopyGrant `type:"structure"` } @@ -7221,7 +8239,14 @@ func (s CreateSnapshotCopyGrantOutput) GoString() string { return s.String() } +// SetSnapshotCopyGrant sets the SnapshotCopyGrant field's value. +func (s *CreateSnapshotCopyGrantOutput) SetSnapshotCopyGrant(v *SnapshotCopyGrant) *CreateSnapshotCopyGrantOutput { + s.SnapshotCopyGrant = v + return s +} + // Contains the output from the CreateTags action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateTagsMessage type CreateTagsInput struct { _ struct{} `type:"structure"` @@ -7267,6 +8292,19 @@ func (s *CreateTagsInput) Validate() error { return nil } +// SetResourceName sets the ResourceName field's value. +func (s *CreateTagsInput) SetResourceName(v string) *CreateTagsInput { + s.ResourceName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateTagsInput) SetTags(v []*Tag) *CreateTagsInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateTagsOutput type CreateTagsOutput struct { _ struct{} `type:"structure"` } @@ -7282,6 +8320,7 @@ func (s CreateTagsOutput) GoString() string { } // Describes the default cluster parameters for a parameter group family. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DefaultClusterParameters type DefaultClusterParameters struct { _ struct{} `type:"structure"` @@ -7310,6 +8349,25 @@ func (s DefaultClusterParameters) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DefaultClusterParameters) SetMarker(v string) *DefaultClusterParameters { + s.Marker = &v + return s +} + +// SetParameterGroupFamily sets the ParameterGroupFamily field's value. +func (s *DefaultClusterParameters) SetParameterGroupFamily(v string) *DefaultClusterParameters { + s.ParameterGroupFamily = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *DefaultClusterParameters) SetParameters(v []*Parameter) *DefaultClusterParameters { + s.Parameters = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterMessage type DeleteClusterInput struct { _ struct{} `type:"structure"` @@ -7317,13 +8375,13 @@ type DeleteClusterInput struct { // // Constraints: // - // Must contain lowercase characters. + // * Must contain lowercase characters. // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // // ClusterIdentifier is a required field ClusterIdentifier *string `type:"string" required:"true"` @@ -7334,21 +8392,21 @@ type DeleteClusterInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters. + // * Must be 1 to 255 alphanumeric characters. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. FinalClusterSnapshotIdentifier *string `type:"string"` // Determines whether a final snapshot of the cluster is created before Amazon // Redshift deletes the cluster. If true, a final cluster snapshot is not created. // If false, a final cluster snapshot is created before the cluster is deleted. // - // The FinalClusterSnapshotIdentifier parameter must be specified if SkipFinalClusterSnapshot + // The FinalClusterSnapshotIdentifier parameter must be specified if SkipFinalClusterSnapshot // is false. // - // Default: false + // Default: false SkipFinalClusterSnapshot *bool `type:"boolean"` } @@ -7375,6 +8433,25 @@ func (s *DeleteClusterInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *DeleteClusterInput) SetClusterIdentifier(v string) *DeleteClusterInput { + s.ClusterIdentifier = &v + return s +} + +// SetFinalClusterSnapshotIdentifier sets the FinalClusterSnapshotIdentifier field's value. +func (s *DeleteClusterInput) SetFinalClusterSnapshotIdentifier(v string) *DeleteClusterInput { + s.FinalClusterSnapshotIdentifier = &v + return s +} + +// SetSkipFinalClusterSnapshot sets the SkipFinalClusterSnapshot field's value. +func (s *DeleteClusterInput) SetSkipFinalClusterSnapshot(v bool) *DeleteClusterInput { + s.SkipFinalClusterSnapshot = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterResult type DeleteClusterOutput struct { _ struct{} `type:"structure"` @@ -7392,6 +8469,13 @@ func (s DeleteClusterOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *DeleteClusterOutput) SetCluster(v *Cluster) *DeleteClusterOutput { + s.Cluster = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterParameterGroupMessage type DeleteClusterParameterGroupInput struct { _ struct{} `type:"structure"` @@ -7399,9 +8483,9 @@ type DeleteClusterParameterGroupInput struct { // // Constraints: // - // Must be the name of an existing cluster parameter group. + // * Must be the name of an existing cluster parameter group. // - // Cannot delete a default cluster parameter group. + // * Cannot delete a default cluster parameter group. // // ParameterGroupName is a required field ParameterGroupName *string `type:"string" required:"true"` @@ -7430,6 +8514,13 @@ func (s *DeleteClusterParameterGroupInput) Validate() error { return nil } +// SetParameterGroupName sets the ParameterGroupName field's value. +func (s *DeleteClusterParameterGroupInput) SetParameterGroupName(v string) *DeleteClusterParameterGroupInput { + s.ParameterGroupName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterParameterGroupOutput type DeleteClusterParameterGroupOutput struct { _ struct{} `type:"structure"` } @@ -7444,6 +8535,7 @@ func (s DeleteClusterParameterGroupOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSecurityGroupMessage type DeleteClusterSecurityGroupInput struct { _ struct{} `type:"structure"` @@ -7476,6 +8568,13 @@ func (s *DeleteClusterSecurityGroupInput) Validate() error { return nil } +// SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value. +func (s *DeleteClusterSecurityGroupInput) SetClusterSecurityGroupName(v string) *DeleteClusterSecurityGroupInput { + s.ClusterSecurityGroupName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSecurityGroupOutput type DeleteClusterSecurityGroupOutput struct { _ struct{} `type:"structure"` } @@ -7490,6 +8589,7 @@ func (s DeleteClusterSecurityGroupOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSnapshotMessage type DeleteClusterSnapshotInput struct { _ struct{} `type:"structure"` @@ -7532,6 +8632,19 @@ func (s *DeleteClusterSnapshotInput) Validate() error { return nil } +// SetSnapshotClusterIdentifier sets the SnapshotClusterIdentifier field's value. +func (s *DeleteClusterSnapshotInput) SetSnapshotClusterIdentifier(v string) *DeleteClusterSnapshotInput { + s.SnapshotClusterIdentifier = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *DeleteClusterSnapshotInput) SetSnapshotIdentifier(v string) *DeleteClusterSnapshotInput { + s.SnapshotIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSnapshotResult type DeleteClusterSnapshotOutput struct { _ struct{} `type:"structure"` @@ -7549,6 +8662,13 @@ func (s DeleteClusterSnapshotOutput) GoString() string { return s.String() } +// SetSnapshot sets the Snapshot field's value. +func (s *DeleteClusterSnapshotOutput) SetSnapshot(v *Snapshot) *DeleteClusterSnapshotOutput { + s.Snapshot = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSubnetGroupMessage type DeleteClusterSubnetGroupInput struct { _ struct{} `type:"structure"` @@ -7581,6 +8701,13 @@ func (s *DeleteClusterSubnetGroupInput) Validate() error { return nil } +// SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value. +func (s *DeleteClusterSubnetGroupInput) SetClusterSubnetGroupName(v string) *DeleteClusterSubnetGroupInput { + s.ClusterSubnetGroupName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSubnetGroupOutput type DeleteClusterSubnetGroupOutput struct { _ struct{} `type:"structure"` } @@ -7595,6 +8722,7 @@ func (s DeleteClusterSubnetGroupOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteEventSubscriptionMessage type DeleteEventSubscriptionInput struct { _ struct{} `type:"structure"` @@ -7627,6 +8755,13 @@ func (s *DeleteEventSubscriptionInput) Validate() error { return nil } +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *DeleteEventSubscriptionInput) SetSubscriptionName(v string) *DeleteEventSubscriptionInput { + s.SubscriptionName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteEventSubscriptionOutput type DeleteEventSubscriptionOutput struct { _ struct{} `type:"structure"` } @@ -7641,6 +8776,7 @@ func (s DeleteEventSubscriptionOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteHsmClientCertificateMessage type DeleteHsmClientCertificateInput struct { _ struct{} `type:"structure"` @@ -7673,6 +8809,13 @@ func (s *DeleteHsmClientCertificateInput) Validate() error { return nil } +// SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value. +func (s *DeleteHsmClientCertificateInput) SetHsmClientCertificateIdentifier(v string) *DeleteHsmClientCertificateInput { + s.HsmClientCertificateIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteHsmClientCertificateOutput type DeleteHsmClientCertificateOutput struct { _ struct{} `type:"structure"` } @@ -7687,6 +8830,7 @@ func (s DeleteHsmClientCertificateOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteHsmConfigurationMessage type DeleteHsmConfigurationInput struct { _ struct{} `type:"structure"` @@ -7719,6 +8863,13 @@ func (s *DeleteHsmConfigurationInput) Validate() error { return nil } +// SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value. +func (s *DeleteHsmConfigurationInput) SetHsmConfigurationIdentifier(v string) *DeleteHsmConfigurationInput { + s.HsmConfigurationIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteHsmConfigurationOutput type DeleteHsmConfigurationOutput struct { _ struct{} `type:"structure"` } @@ -7734,6 +8885,7 @@ func (s DeleteHsmConfigurationOutput) GoString() string { } // The result of the DeleteSnapshotCopyGrant action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteSnapshotCopyGrantMessage type DeleteSnapshotCopyGrantInput struct { _ struct{} `type:"structure"` @@ -7766,6 +8918,13 @@ func (s *DeleteSnapshotCopyGrantInput) Validate() error { return nil } +// SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value. +func (s *DeleteSnapshotCopyGrantInput) SetSnapshotCopyGrantName(v string) *DeleteSnapshotCopyGrantInput { + s.SnapshotCopyGrantName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteSnapshotCopyGrantOutput type DeleteSnapshotCopyGrantOutput struct { _ struct{} `type:"structure"` } @@ -7781,6 +8940,7 @@ func (s DeleteSnapshotCopyGrantOutput) GoString() string { } // Contains the output from the DeleteTags action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteTagsMessage type DeleteTagsInput struct { _ struct{} `type:"structure"` @@ -7822,6 +8982,19 @@ func (s *DeleteTagsInput) Validate() error { return nil } +// SetResourceName sets the ResourceName field's value. +func (s *DeleteTagsInput) SetResourceName(v string) *DeleteTagsInput { + s.ResourceName = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DeleteTagsInput) SetTagKeys(v []*string) *DeleteTagsInput { + s.TagKeys = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteTagsOutput type DeleteTagsOutput struct { _ struct{} `type:"structure"` } @@ -7836,6 +9009,7 @@ func (s DeleteTagsOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterParameterGroupsMessage type DescribeClusterParameterGroupsInput struct { _ struct{} `type:"structure"` @@ -7888,7 +9062,38 @@ func (s DescribeClusterParameterGroupsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeClusterParameterGroupsInput) SetMarker(v string) *DescribeClusterParameterGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeClusterParameterGroupsInput) SetMaxRecords(v int64) *DescribeClusterParameterGroupsInput { + s.MaxRecords = &v + return s +} + +// SetParameterGroupName sets the ParameterGroupName field's value. +func (s *DescribeClusterParameterGroupsInput) SetParameterGroupName(v string) *DescribeClusterParameterGroupsInput { + s.ParameterGroupName = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DescribeClusterParameterGroupsInput) SetTagKeys(v []*string) *DescribeClusterParameterGroupsInput { + s.TagKeys = v + return s +} + +// SetTagValues sets the TagValues field's value. +func (s *DescribeClusterParameterGroupsInput) SetTagValues(v []*string) *DescribeClusterParameterGroupsInput { + s.TagValues = v + return s +} + // Contains the output from the DescribeClusterParameterGroups action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ClusterParameterGroupsMessage type DescribeClusterParameterGroupsOutput struct { _ struct{} `type:"structure"` @@ -7914,6 +9119,19 @@ func (s DescribeClusterParameterGroupsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeClusterParameterGroupsOutput) SetMarker(v string) *DescribeClusterParameterGroupsOutput { + s.Marker = &v + return s +} + +// SetParameterGroups sets the ParameterGroups field's value. +func (s *DescribeClusterParameterGroupsOutput) SetParameterGroups(v []*ClusterParameterGroup) *DescribeClusterParameterGroupsOutput { + s.ParameterGroups = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterParametersMessage type DescribeClusterParametersInput struct { _ struct{} `type:"structure"` @@ -7973,7 +9191,32 @@ func (s *DescribeClusterParametersInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *DescribeClusterParametersInput) SetMarker(v string) *DescribeClusterParametersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeClusterParametersInput) SetMaxRecords(v int64) *DescribeClusterParametersInput { + s.MaxRecords = &v + return s +} + +// SetParameterGroupName sets the ParameterGroupName field's value. +func (s *DescribeClusterParametersInput) SetParameterGroupName(v string) *DescribeClusterParametersInput { + s.ParameterGroupName = &v + return s +} + +// SetSource sets the Source field's value. +func (s *DescribeClusterParametersInput) SetSource(v string) *DescribeClusterParametersInput { + s.Source = &v + return s +} + // Contains the output from the DescribeClusterParameters action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ClusterParameterGroupDetails type DescribeClusterParametersOutput struct { _ struct{} `type:"structure"` @@ -7999,6 +9242,19 @@ func (s DescribeClusterParametersOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeClusterParametersOutput) SetMarker(v string) *DescribeClusterParametersOutput { + s.Marker = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *DescribeClusterParametersOutput) SetParameters(v []*Parameter) *DescribeClusterParametersOutput { + s.Parameters = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSecurityGroupsMessage type DescribeClusterSecurityGroupsInput struct { _ struct{} `type:"structure"` @@ -8006,7 +9262,7 @@ type DescribeClusterSecurityGroupsInput struct { // You can specify either the Marker parameter or a ClusterSecurityGroupName // parameter, but not both. // - // Example: securitygroup1 + // Example: securitygroup1 ClusterSecurityGroupName *string `type:"string"` // An optional parameter that specifies the starting point to return a set of @@ -8057,6 +9313,37 @@ func (s DescribeClusterSecurityGroupsInput) GoString() string { return s.String() } +// SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value. +func (s *DescribeClusterSecurityGroupsInput) SetClusterSecurityGroupName(v string) *DescribeClusterSecurityGroupsInput { + s.ClusterSecurityGroupName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeClusterSecurityGroupsInput) SetMarker(v string) *DescribeClusterSecurityGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeClusterSecurityGroupsInput) SetMaxRecords(v int64) *DescribeClusterSecurityGroupsInput { + s.MaxRecords = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DescribeClusterSecurityGroupsInput) SetTagKeys(v []*string) *DescribeClusterSecurityGroupsInput { + s.TagKeys = v + return s +} + +// SetTagValues sets the TagValues field's value. +func (s *DescribeClusterSecurityGroupsInput) SetTagValues(v []*string) *DescribeClusterSecurityGroupsInput { + s.TagValues = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ClusterSecurityGroupMessage type DescribeClusterSecurityGroupsOutput struct { _ struct{} `type:"structure"` @@ -8081,6 +9368,19 @@ func (s DescribeClusterSecurityGroupsOutput) GoString() string { return s.String() } +// SetClusterSecurityGroups sets the ClusterSecurityGroups field's value. +func (s *DescribeClusterSecurityGroupsOutput) SetClusterSecurityGroups(v []*ClusterSecurityGroup) *DescribeClusterSecurityGroupsOutput { + s.ClusterSecurityGroups = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeClusterSecurityGroupsOutput) SetMarker(v string) *DescribeClusterSecurityGroupsOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSnapshotsMessage type DescribeClusterSnapshotsInput struct { _ struct{} `type:"structure"` @@ -8161,7 +9461,68 @@ func (s DescribeClusterSnapshotsInput) GoString() string { return s.String() } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *DescribeClusterSnapshotsInput) SetClusterIdentifier(v string) *DescribeClusterSnapshotsInput { + s.ClusterIdentifier = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *DescribeClusterSnapshotsInput) SetEndTime(v time.Time) *DescribeClusterSnapshotsInput { + s.EndTime = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeClusterSnapshotsInput) SetMarker(v string) *DescribeClusterSnapshotsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeClusterSnapshotsInput) SetMaxRecords(v int64) *DescribeClusterSnapshotsInput { + s.MaxRecords = &v + return s +} + +// SetOwnerAccount sets the OwnerAccount field's value. +func (s *DescribeClusterSnapshotsInput) SetOwnerAccount(v string) *DescribeClusterSnapshotsInput { + s.OwnerAccount = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *DescribeClusterSnapshotsInput) SetSnapshotIdentifier(v string) *DescribeClusterSnapshotsInput { + s.SnapshotIdentifier = &v + return s +} + +// SetSnapshotType sets the SnapshotType field's value. +func (s *DescribeClusterSnapshotsInput) SetSnapshotType(v string) *DescribeClusterSnapshotsInput { + s.SnapshotType = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeClusterSnapshotsInput) SetStartTime(v time.Time) *DescribeClusterSnapshotsInput { + s.StartTime = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DescribeClusterSnapshotsInput) SetTagKeys(v []*string) *DescribeClusterSnapshotsInput { + s.TagKeys = v + return s +} + +// SetTagValues sets the TagValues field's value. +func (s *DescribeClusterSnapshotsInput) SetTagValues(v []*string) *DescribeClusterSnapshotsInput { + s.TagValues = v + return s +} + // Contains the output from the DescribeClusterSnapshots action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/SnapshotMessage type DescribeClusterSnapshotsOutput struct { _ struct{} `type:"structure"` @@ -8186,6 +9547,19 @@ func (s DescribeClusterSnapshotsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeClusterSnapshotsOutput) SetMarker(v string) *DescribeClusterSnapshotsOutput { + s.Marker = &v + return s +} + +// SetSnapshots sets the Snapshots field's value. +func (s *DescribeClusterSnapshotsOutput) SetSnapshots(v []*Snapshot) *DescribeClusterSnapshotsOutput { + s.Snapshots = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSubnetGroupsMessage type DescribeClusterSubnetGroupsInput struct { _ struct{} `type:"structure"` @@ -8237,7 +9611,38 @@ func (s DescribeClusterSubnetGroupsInput) GoString() string { return s.String() } +// SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value. +func (s *DescribeClusterSubnetGroupsInput) SetClusterSubnetGroupName(v string) *DescribeClusterSubnetGroupsInput { + s.ClusterSubnetGroupName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeClusterSubnetGroupsInput) SetMarker(v string) *DescribeClusterSubnetGroupsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeClusterSubnetGroupsInput) SetMaxRecords(v int64) *DescribeClusterSubnetGroupsInput { + s.MaxRecords = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DescribeClusterSubnetGroupsInput) SetTagKeys(v []*string) *DescribeClusterSubnetGroupsInput { + s.TagKeys = v + return s +} + +// SetTagValues sets the TagValues field's value. +func (s *DescribeClusterSubnetGroupsInput) SetTagValues(v []*string) *DescribeClusterSubnetGroupsInput { + s.TagValues = v + return s +} + // Contains the output from the DescribeClusterSubnetGroups action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ClusterSubnetGroupMessage type DescribeClusterSubnetGroupsOutput struct { _ struct{} `type:"structure"` @@ -8262,6 +9667,19 @@ func (s DescribeClusterSubnetGroupsOutput) GoString() string { return s.String() } +// SetClusterSubnetGroups sets the ClusterSubnetGroups field's value. +func (s *DescribeClusterSubnetGroupsOutput) SetClusterSubnetGroups(v []*ClusterSubnetGroup) *DescribeClusterSubnetGroupsOutput { + s.ClusterSubnetGroups = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeClusterSubnetGroupsOutput) SetMarker(v string) *DescribeClusterSubnetGroupsOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterVersionsMessage type DescribeClusterVersionsInput struct { _ struct{} `type:"structure"` @@ -8269,11 +9687,11 @@ type DescribeClusterVersionsInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters + // * Must be 1 to 255 alphanumeric characters // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens ClusterParameterGroupFamily *string `type:"string"` // The specific cluster version to return. @@ -8309,7 +9727,32 @@ func (s DescribeClusterVersionsInput) GoString() string { return s.String() } +// SetClusterParameterGroupFamily sets the ClusterParameterGroupFamily field's value. +func (s *DescribeClusterVersionsInput) SetClusterParameterGroupFamily(v string) *DescribeClusterVersionsInput { + s.ClusterParameterGroupFamily = &v + return s +} + +// SetClusterVersion sets the ClusterVersion field's value. +func (s *DescribeClusterVersionsInput) SetClusterVersion(v string) *DescribeClusterVersionsInput { + s.ClusterVersion = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeClusterVersionsInput) SetMarker(v string) *DescribeClusterVersionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeClusterVersionsInput) SetMaxRecords(v int64) *DescribeClusterVersionsInput { + s.MaxRecords = &v + return s +} + // Contains the output from the DescribeClusterVersions action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ClusterVersionsMessage type DescribeClusterVersionsOutput struct { _ struct{} `type:"structure"` @@ -8334,6 +9777,19 @@ func (s DescribeClusterVersionsOutput) GoString() string { return s.String() } +// SetClusterVersions sets the ClusterVersions field's value. +func (s *DescribeClusterVersionsOutput) SetClusterVersions(v []*ClusterVersion) *DescribeClusterVersionsOutput { + s.ClusterVersions = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeClusterVersionsOutput) SetMarker(v string) *DescribeClusterVersionsOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClustersMessage type DescribeClustersInput struct { _ struct{} `type:"structure"` @@ -8390,7 +9846,38 @@ func (s DescribeClustersInput) GoString() string { return s.String() } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *DescribeClustersInput) SetClusterIdentifier(v string) *DescribeClustersInput { + s.ClusterIdentifier = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeClustersInput) SetMarker(v string) *DescribeClustersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeClustersInput) SetMaxRecords(v int64) *DescribeClustersInput { + s.MaxRecords = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DescribeClustersInput) SetTagKeys(v []*string) *DescribeClustersInput { + s.TagKeys = v + return s +} + +// SetTagValues sets the TagValues field's value. +func (s *DescribeClustersInput) SetTagValues(v []*string) *DescribeClustersInput { + s.TagValues = v + return s +} + // Contains the output from the DescribeClusters action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ClustersMessage type DescribeClustersOutput struct { _ struct{} `type:"structure"` @@ -8415,6 +9902,19 @@ func (s DescribeClustersOutput) GoString() string { return s.String() } +// SetClusters sets the Clusters field's value. +func (s *DescribeClustersOutput) SetClusters(v []*Cluster) *DescribeClustersOutput { + s.Clusters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeClustersOutput) SetMarker(v string) *DescribeClustersOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeDefaultClusterParametersMessage type DescribeDefaultClusterParametersInput struct { _ struct{} `type:"structure"` @@ -8465,6 +9965,25 @@ func (s *DescribeDefaultClusterParametersInput) Validate() error { return nil } +// SetMarker sets the Marker field's value. +func (s *DescribeDefaultClusterParametersInput) SetMarker(v string) *DescribeDefaultClusterParametersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDefaultClusterParametersInput) SetMaxRecords(v int64) *DescribeDefaultClusterParametersInput { + s.MaxRecords = &v + return s +} + +// SetParameterGroupFamily sets the ParameterGroupFamily field's value. +func (s *DescribeDefaultClusterParametersInput) SetParameterGroupFamily(v string) *DescribeDefaultClusterParametersInput { + s.ParameterGroupFamily = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeDefaultClusterParametersResult type DescribeDefaultClusterParametersOutput struct { _ struct{} `type:"structure"` @@ -8482,6 +10001,13 @@ func (s DescribeDefaultClusterParametersOutput) GoString() string { return s.String() } +// SetDefaultClusterParameters sets the DefaultClusterParameters field's value. +func (s *DescribeDefaultClusterParametersOutput) SetDefaultClusterParameters(v *DefaultClusterParameters) *DescribeDefaultClusterParametersOutput { + s.DefaultClusterParameters = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEventCategoriesMessage type DescribeEventCategoriesInput struct { _ struct{} `type:"structure"` @@ -8502,6 +10028,13 @@ func (s DescribeEventCategoriesInput) GoString() string { return s.String() } +// SetSourceType sets the SourceType field's value. +func (s *DescribeEventCategoriesInput) SetSourceType(v string) *DescribeEventCategoriesInput { + s.SourceType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EventCategoriesMessage type DescribeEventCategoriesOutput struct { _ struct{} `type:"structure"` @@ -8519,6 +10052,13 @@ func (s DescribeEventCategoriesOutput) GoString() string { return s.String() } +// SetEventCategoriesMapList sets the EventCategoriesMapList field's value. +func (s *DescribeEventCategoriesOutput) SetEventCategoriesMapList(v []*EventCategoriesMap) *DescribeEventCategoriesOutput { + s.EventCategoriesMapList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEventSubscriptionsMessage type DescribeEventSubscriptionsInput struct { _ struct{} `type:"structure"` @@ -8554,6 +10094,25 @@ func (s DescribeEventSubscriptionsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeEventSubscriptionsInput) SetMarker(v string) *DescribeEventSubscriptionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEventSubscriptionsInput) SetMaxRecords(v int64) *DescribeEventSubscriptionsInput { + s.MaxRecords = &v + return s +} + +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *DescribeEventSubscriptionsInput) SetSubscriptionName(v string) *DescribeEventSubscriptionsInput { + s.SubscriptionName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EventSubscriptionsMessage type DescribeEventSubscriptionsOutput struct { _ struct{} `type:"structure"` @@ -8578,6 +10137,19 @@ func (s DescribeEventSubscriptionsOutput) GoString() string { return s.String() } +// SetEventSubscriptionsList sets the EventSubscriptionsList field's value. +func (s *DescribeEventSubscriptionsOutput) SetEventSubscriptionsList(v []*EventSubscription) *DescribeEventSubscriptionsOutput { + s.EventSubscriptionsList = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEventSubscriptionsOutput) SetMarker(v string) *DescribeEventSubscriptionsOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEventsMessage type DescribeEventsInput struct { _ struct{} `type:"structure"` @@ -8619,13 +10191,13 @@ type DescribeEventsInput struct { // // If SourceIdentifier is supplied, SourceType must also be provided. // - // Specify a cluster identifier when SourceType is cluster. + // * Specify a cluster identifier when SourceType is cluster. // - // Specify a cluster security group name when SourceType is cluster-security-group. + // * Specify a cluster security group name when SourceType is cluster-security-group. // - // Specify a cluster parameter group name when SourceType is cluster-parameter-group. + // * Specify a cluster parameter group name when SourceType is cluster-parameter-group. // - // Specify a cluster snapshot identifier when SourceType is cluster-snapshot. + // * Specify a cluster snapshot identifier when SourceType is cluster-snapshot. SourceIdentifier *string `type:"string"` // The event source to retrieve events for. If no value is specified, all events @@ -8635,15 +10207,16 @@ type DescribeEventsInput struct { // // If SourceType is supplied, SourceIdentifier must also be provided. // - // Specify cluster when SourceIdentifier is a cluster identifier. + // * Specify cluster when SourceIdentifier is a cluster identifier. // - // Specify cluster-security-group when SourceIdentifier is a cluster security - // group name. + // * Specify cluster-security-group when SourceIdentifier is a cluster security + // group name. // - // Specify cluster-parameter-group when SourceIdentifier is a cluster parameter - // group name. + // * Specify cluster-parameter-group when SourceIdentifier is a cluster parameter + // group name. // - // Specify cluster-snapshot when SourceIdentifier is a cluster snapshot identifier. + // * Specify cluster-snapshot when SourceIdentifier is a cluster snapshot + // identifier. SourceType *string `type:"string" enum:"SourceType"` // The beginning of the time interval to retrieve events for, specified in ISO @@ -8664,6 +10237,49 @@ func (s DescribeEventsInput) GoString() string { return s.String() } +// SetDuration sets the Duration field's value. +func (s *DescribeEventsInput) SetDuration(v int64) *DescribeEventsInput { + s.Duration = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *DescribeEventsInput) SetEndTime(v time.Time) *DescribeEventsInput { + s.EndTime = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEventsInput) SetMarker(v string) *DescribeEventsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEventsInput) SetMaxRecords(v int64) *DescribeEventsInput { + s.MaxRecords = &v + return s +} + +// SetSourceIdentifier sets the SourceIdentifier field's value. +func (s *DescribeEventsInput) SetSourceIdentifier(v string) *DescribeEventsInput { + s.SourceIdentifier = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *DescribeEventsInput) SetSourceType(v string) *DescribeEventsInput { + s.SourceType = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeEventsInput) SetStartTime(v time.Time) *DescribeEventsInput { + s.StartTime = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EventsMessage type DescribeEventsOutput struct { _ struct{} `type:"structure"` @@ -8688,6 +10304,19 @@ func (s DescribeEventsOutput) GoString() string { return s.String() } +// SetEvents sets the Events field's value. +func (s *DescribeEventsOutput) SetEvents(v []*Event) *DescribeEventsOutput { + s.Events = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEventsOutput) SetMarker(v string) *DescribeEventsOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeHsmClientCertificatesMessage type DescribeHsmClientCertificatesInput struct { _ struct{} `type:"structure"` @@ -8741,6 +10370,37 @@ func (s DescribeHsmClientCertificatesInput) GoString() string { return s.String() } +// SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value. +func (s *DescribeHsmClientCertificatesInput) SetHsmClientCertificateIdentifier(v string) *DescribeHsmClientCertificatesInput { + s.HsmClientCertificateIdentifier = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeHsmClientCertificatesInput) SetMarker(v string) *DescribeHsmClientCertificatesInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeHsmClientCertificatesInput) SetMaxRecords(v int64) *DescribeHsmClientCertificatesInput { + s.MaxRecords = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DescribeHsmClientCertificatesInput) SetTagKeys(v []*string) *DescribeHsmClientCertificatesInput { + s.TagKeys = v + return s +} + +// SetTagValues sets the TagValues field's value. +func (s *DescribeHsmClientCertificatesInput) SetTagValues(v []*string) *DescribeHsmClientCertificatesInput { + s.TagValues = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/HsmClientCertificateMessage type DescribeHsmClientCertificatesOutput struct { _ struct{} `type:"structure"` @@ -8767,6 +10427,19 @@ func (s DescribeHsmClientCertificatesOutput) GoString() string { return s.String() } +// SetHsmClientCertificates sets the HsmClientCertificates field's value. +func (s *DescribeHsmClientCertificatesOutput) SetHsmClientCertificates(v []*HsmClientCertificate) *DescribeHsmClientCertificatesOutput { + s.HsmClientCertificates = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeHsmClientCertificatesOutput) SetMarker(v string) *DescribeHsmClientCertificatesOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeHsmConfigurationsMessage type DescribeHsmConfigurationsInput struct { _ struct{} `type:"structure"` @@ -8820,6 +10493,37 @@ func (s DescribeHsmConfigurationsInput) GoString() string { return s.String() } +// SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value. +func (s *DescribeHsmConfigurationsInput) SetHsmConfigurationIdentifier(v string) *DescribeHsmConfigurationsInput { + s.HsmConfigurationIdentifier = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeHsmConfigurationsInput) SetMarker(v string) *DescribeHsmConfigurationsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeHsmConfigurationsInput) SetMaxRecords(v int64) *DescribeHsmConfigurationsInput { + s.MaxRecords = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DescribeHsmConfigurationsInput) SetTagKeys(v []*string) *DescribeHsmConfigurationsInput { + s.TagKeys = v + return s +} + +// SetTagValues sets the TagValues field's value. +func (s *DescribeHsmConfigurationsInput) SetTagValues(v []*string) *DescribeHsmConfigurationsInput { + s.TagValues = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/HsmConfigurationMessage type DescribeHsmConfigurationsOutput struct { _ struct{} `type:"structure"` @@ -8844,6 +10548,19 @@ func (s DescribeHsmConfigurationsOutput) GoString() string { return s.String() } +// SetHsmConfigurations sets the HsmConfigurations field's value. +func (s *DescribeHsmConfigurationsOutput) SetHsmConfigurations(v []*HsmConfiguration) *DescribeHsmConfigurationsOutput { + s.HsmConfigurations = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeHsmConfigurationsOutput) SetMarker(v string) *DescribeHsmConfigurationsOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeLoggingStatusMessage type DescribeLoggingStatusInput struct { _ struct{} `type:"structure"` @@ -8878,6 +10595,13 @@ func (s *DescribeLoggingStatusInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *DescribeLoggingStatusInput) SetClusterIdentifier(v string) *DescribeLoggingStatusInput { + s.ClusterIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeOrderableClusterOptionsMessage type DescribeOrderableClusterOptionsInput struct { _ struct{} `type:"structure"` @@ -8922,7 +10646,32 @@ func (s DescribeOrderableClusterOptionsInput) GoString() string { return s.String() } +// SetClusterVersion sets the ClusterVersion field's value. +func (s *DescribeOrderableClusterOptionsInput) SetClusterVersion(v string) *DescribeOrderableClusterOptionsInput { + s.ClusterVersion = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeOrderableClusterOptionsInput) SetMarker(v string) *DescribeOrderableClusterOptionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeOrderableClusterOptionsInput) SetMaxRecords(v int64) *DescribeOrderableClusterOptionsInput { + s.MaxRecords = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *DescribeOrderableClusterOptionsInput) SetNodeType(v string) *DescribeOrderableClusterOptionsInput { + s.NodeType = &v + return s +} + // Contains the output from the DescribeOrderableClusterOptions action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/OrderableClusterOptionsMessage type DescribeOrderableClusterOptionsOutput struct { _ struct{} `type:"structure"` @@ -8948,6 +10697,19 @@ func (s DescribeOrderableClusterOptionsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeOrderableClusterOptionsOutput) SetMarker(v string) *DescribeOrderableClusterOptionsOutput { + s.Marker = &v + return s +} + +// SetOrderableClusterOptions sets the OrderableClusterOptions field's value. +func (s *DescribeOrderableClusterOptionsOutput) SetOrderableClusterOptions(v []*OrderableClusterOption) *DescribeOrderableClusterOptionsOutput { + s.OrderableClusterOptions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeReservedNodeOfferingsMessage type DescribeReservedNodeOfferingsInput struct { _ struct{} `type:"structure"` @@ -8983,6 +10745,25 @@ func (s DescribeReservedNodeOfferingsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReservedNodeOfferingsInput) SetMarker(v string) *DescribeReservedNodeOfferingsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeReservedNodeOfferingsInput) SetMaxRecords(v int64) *DescribeReservedNodeOfferingsInput { + s.MaxRecords = &v + return s +} + +// SetReservedNodeOfferingId sets the ReservedNodeOfferingId field's value. +func (s *DescribeReservedNodeOfferingsInput) SetReservedNodeOfferingId(v string) *DescribeReservedNodeOfferingsInput { + s.ReservedNodeOfferingId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ReservedNodeOfferingsMessage type DescribeReservedNodeOfferingsOutput struct { _ struct{} `type:"structure"` @@ -9007,6 +10788,19 @@ func (s DescribeReservedNodeOfferingsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReservedNodeOfferingsOutput) SetMarker(v string) *DescribeReservedNodeOfferingsOutput { + s.Marker = &v + return s +} + +// SetReservedNodeOfferings sets the ReservedNodeOfferings field's value. +func (s *DescribeReservedNodeOfferingsOutput) SetReservedNodeOfferings(v []*ReservedNodeOffering) *DescribeReservedNodeOfferingsOutput { + s.ReservedNodeOfferings = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeReservedNodesMessage type DescribeReservedNodesInput struct { _ struct{} `type:"structure"` @@ -9041,6 +10835,25 @@ func (s DescribeReservedNodesInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReservedNodesInput) SetMarker(v string) *DescribeReservedNodesInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeReservedNodesInput) SetMaxRecords(v int64) *DescribeReservedNodesInput { + s.MaxRecords = &v + return s +} + +// SetReservedNodeId sets the ReservedNodeId field's value. +func (s *DescribeReservedNodesInput) SetReservedNodeId(v string) *DescribeReservedNodesInput { + s.ReservedNodeId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ReservedNodesMessage type DescribeReservedNodesOutput struct { _ struct{} `type:"structure"` @@ -9065,6 +10878,19 @@ func (s DescribeReservedNodesOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeReservedNodesOutput) SetMarker(v string) *DescribeReservedNodesOutput { + s.Marker = &v + return s +} + +// SetReservedNodes sets the ReservedNodes field's value. +func (s *DescribeReservedNodesOutput) SetReservedNodes(v []*ReservedNode) *DescribeReservedNodesOutput { + s.ReservedNodes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeResizeMessage type DescribeResizeInput struct { _ struct{} `type:"structure"` @@ -9101,7 +10927,14 @@ func (s *DescribeResizeInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *DescribeResizeInput) SetClusterIdentifier(v string) *DescribeResizeInput { + s.ClusterIdentifier = &v + return s +} + // Describes the result of a cluster resize operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ResizeProgressMessage type DescribeResizeOutput struct { _ struct{} `type:"structure"` @@ -9175,7 +11008,80 @@ func (s DescribeResizeOutput) GoString() string { return s.String() } +// SetAvgResizeRateInMegaBytesPerSecond sets the AvgResizeRateInMegaBytesPerSecond field's value. +func (s *DescribeResizeOutput) SetAvgResizeRateInMegaBytesPerSecond(v float64) *DescribeResizeOutput { + s.AvgResizeRateInMegaBytesPerSecond = &v + return s +} + +// SetElapsedTimeInSeconds sets the ElapsedTimeInSeconds field's value. +func (s *DescribeResizeOutput) SetElapsedTimeInSeconds(v int64) *DescribeResizeOutput { + s.ElapsedTimeInSeconds = &v + return s +} + +// SetEstimatedTimeToCompletionInSeconds sets the EstimatedTimeToCompletionInSeconds field's value. +func (s *DescribeResizeOutput) SetEstimatedTimeToCompletionInSeconds(v int64) *DescribeResizeOutput { + s.EstimatedTimeToCompletionInSeconds = &v + return s +} + +// SetImportTablesCompleted sets the ImportTablesCompleted field's value. +func (s *DescribeResizeOutput) SetImportTablesCompleted(v []*string) *DescribeResizeOutput { + s.ImportTablesCompleted = v + return s +} + +// SetImportTablesInProgress sets the ImportTablesInProgress field's value. +func (s *DescribeResizeOutput) SetImportTablesInProgress(v []*string) *DescribeResizeOutput { + s.ImportTablesInProgress = v + return s +} + +// SetImportTablesNotStarted sets the ImportTablesNotStarted field's value. +func (s *DescribeResizeOutput) SetImportTablesNotStarted(v []*string) *DescribeResizeOutput { + s.ImportTablesNotStarted = v + return s +} + +// SetProgressInMegaBytes sets the ProgressInMegaBytes field's value. +func (s *DescribeResizeOutput) SetProgressInMegaBytes(v int64) *DescribeResizeOutput { + s.ProgressInMegaBytes = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeResizeOutput) SetStatus(v string) *DescribeResizeOutput { + s.Status = &v + return s +} + +// SetTargetClusterType sets the TargetClusterType field's value. +func (s *DescribeResizeOutput) SetTargetClusterType(v string) *DescribeResizeOutput { + s.TargetClusterType = &v + return s +} + +// SetTargetNodeType sets the TargetNodeType field's value. +func (s *DescribeResizeOutput) SetTargetNodeType(v string) *DescribeResizeOutput { + s.TargetNodeType = &v + return s +} + +// SetTargetNumberOfNodes sets the TargetNumberOfNodes field's value. +func (s *DescribeResizeOutput) SetTargetNumberOfNodes(v int64) *DescribeResizeOutput { + s.TargetNumberOfNodes = &v + return s +} + +// SetTotalResizeDataInMegaBytes sets the TotalResizeDataInMegaBytes field's value. +func (s *DescribeResizeOutput) SetTotalResizeDataInMegaBytes(v int64) *DescribeResizeOutput { + s.TotalResizeDataInMegaBytes = &v + return s +} + // The result of the DescribeSnapshotCopyGrants action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeSnapshotCopyGrantsMessage type DescribeSnapshotCopyGrantsInput struct { _ struct{} `type:"structure"` @@ -9186,8 +11092,8 @@ type DescribeSnapshotCopyGrantsInput struct { // by providing the returned marker value in the Marker parameter and retrying // the request. // - // Constraints: You can specify either the SnapshotCopyGrantName parameter - // or the Marker parameter, but not both. + // Constraints: You can specify either the SnapshotCopyGrantName parameter or + // the Marker parameter, but not both. Marker *string `type:"string"` // The maximum number of response records to return in each call. If the number @@ -9230,6 +11136,37 @@ func (s DescribeSnapshotCopyGrantsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeSnapshotCopyGrantsInput) SetMarker(v string) *DescribeSnapshotCopyGrantsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeSnapshotCopyGrantsInput) SetMaxRecords(v int64) *DescribeSnapshotCopyGrantsInput { + s.MaxRecords = &v + return s +} + +// SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value. +func (s *DescribeSnapshotCopyGrantsInput) SetSnapshotCopyGrantName(v string) *DescribeSnapshotCopyGrantsInput { + s.SnapshotCopyGrantName = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DescribeSnapshotCopyGrantsInput) SetTagKeys(v []*string) *DescribeSnapshotCopyGrantsInput { + s.TagKeys = v + return s +} + +// SetTagValues sets the TagValues field's value. +func (s *DescribeSnapshotCopyGrantsInput) SetTagValues(v []*string) *DescribeSnapshotCopyGrantsInput { + s.TagValues = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/SnapshotCopyGrantMessage type DescribeSnapshotCopyGrantsOutput struct { _ struct{} `type:"structure"` @@ -9240,8 +11177,8 @@ type DescribeSnapshotCopyGrantsOutput struct { // by providing the returned marker value in the Marker parameter and retrying // the request. // - // Constraints: You can specify either the SnapshotCopyGrantName parameter - // or the Marker parameter, but not both. + // Constraints: You can specify either the SnapshotCopyGrantName parameter or + // the Marker parameter, but not both. Marker *string `type:"string"` // The list of SnapshotCopyGrant objects. @@ -9258,6 +11195,19 @@ func (s DescribeSnapshotCopyGrantsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeSnapshotCopyGrantsOutput) SetMarker(v string) *DescribeSnapshotCopyGrantsOutput { + s.Marker = &v + return s +} + +// SetSnapshotCopyGrants sets the SnapshotCopyGrants field's value. +func (s *DescribeSnapshotCopyGrantsOutput) SetSnapshotCopyGrants(v []*SnapshotCopyGrant) *DescribeSnapshotCopyGrantsOutput { + s.SnapshotCopyGrants = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeTableRestoreStatusMessage type DescribeTableRestoreStatusInput struct { _ struct{} `type:"structure"` @@ -9290,6 +11240,31 @@ func (s DescribeTableRestoreStatusInput) GoString() string { return s.String() } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *DescribeTableRestoreStatusInput) SetClusterIdentifier(v string) *DescribeTableRestoreStatusInput { + s.ClusterIdentifier = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeTableRestoreStatusInput) SetMarker(v string) *DescribeTableRestoreStatusInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeTableRestoreStatusInput) SetMaxRecords(v int64) *DescribeTableRestoreStatusInput { + s.MaxRecords = &v + return s +} + +// SetTableRestoreRequestId sets the TableRestoreRequestId field's value. +func (s *DescribeTableRestoreStatusInput) SetTableRestoreRequestId(v string) *DescribeTableRestoreStatusInput { + s.TableRestoreRequestId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/TableRestoreStatusMessage type DescribeTableRestoreStatusOutput struct { _ struct{} `type:"structure"` @@ -9311,6 +11286,19 @@ func (s DescribeTableRestoreStatusOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeTableRestoreStatusOutput) SetMarker(v string) *DescribeTableRestoreStatusOutput { + s.Marker = &v + return s +} + +// SetTableRestoreStatusDetails sets the TableRestoreStatusDetails field's value. +func (s *DescribeTableRestoreStatusOutput) SetTableRestoreStatusDetails(v []*TableRestoreStatus) *DescribeTableRestoreStatusOutput { + s.TableRestoreStatusDetails = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeTagsMessage type DescribeTagsInput struct { _ struct{} `type:"structure"` @@ -9334,27 +11322,27 @@ type DescribeTagsInput struct { // The type of resource with which you want to view tags. Valid resource types // are: // - // Cluster + // * Cluster // - // CIDR/IP + // * CIDR/IP // - // EC2 security group + // * EC2 security group // - // Snapshot + // * Snapshot // - // Cluster security group + // * Cluster security group // - // Subnet group + // * Subnet group // - // HSM connection + // * HSM connection // - // HSM certificate + // * HSM certificate // - // Parameter group + // * Parameter group // - // Snapshot copy grant + // * Snapshot copy grant // - // For more information about Amazon Redshift resource types and constructing + // For more information about Amazon Redshift resource types and constructing // ARNs, go to Constructing an Amazon Redshift Amazon Resource Name (ARN) (http://docs.aws.amazon.com/redshift/latest/mgmt/constructing-redshift-arn.html) // in the Amazon Redshift Cluster Management Guide. ResourceType *string `type:"string"` @@ -9386,12 +11374,49 @@ func (s DescribeTagsInput) GoString() string { return s.String() } -type DescribeTagsOutput struct { - _ struct{} `type:"structure"` +// SetMarker sets the Marker field's value. +func (s *DescribeTagsInput) SetMarker(v string) *DescribeTagsInput { + s.Marker = &v + return s +} - // A value that indicates the starting point for the next set of response records - // in a subsequent request. If a value is returned in a response, you can retrieve - // the next set of records by providing this returned marker value in the Marker +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeTagsInput) SetMaxRecords(v int64) *DescribeTagsInput { + s.MaxRecords = &v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *DescribeTagsInput) SetResourceName(v string) *DescribeTagsInput { + s.ResourceName = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *DescribeTagsInput) SetResourceType(v string) *DescribeTagsInput { + s.ResourceType = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DescribeTagsInput) SetTagKeys(v []*string) *DescribeTagsInput { + s.TagKeys = v + return s +} + +// SetTagValues sets the TagValues field's value. +func (s *DescribeTagsInput) SetTagValues(v []*string) *DescribeTagsInput { + s.TagValues = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/TaggedResourceListMessage +type DescribeTagsOutput struct { + _ struct{} `type:"structure"` + + // A value that indicates the starting point for the next set of response records + // in a subsequent request. If a value is returned in a response, you can retrieve + // the next set of records by providing this returned marker value in the Marker // parameter and retrying the command. If the Marker field is empty, all response // records have been retrieved for the request. Marker *string `type:"string"` @@ -9410,6 +11435,19 @@ func (s DescribeTagsOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeTagsOutput) SetMarker(v string) *DescribeTagsOutput { + s.Marker = &v + return s +} + +// SetTaggedResources sets the TaggedResources field's value. +func (s *DescribeTagsOutput) SetTaggedResources(v []*TaggedResource) *DescribeTagsOutput { + s.TaggedResources = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DisableLoggingMessage type DisableLoggingInput struct { _ struct{} `type:"structure"` @@ -9444,6 +11482,13 @@ func (s *DisableLoggingInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *DisableLoggingInput) SetClusterIdentifier(v string) *DisableLoggingInput { + s.ClusterIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DisableSnapshotCopyMessage type DisableSnapshotCopyInput struct { _ struct{} `type:"structure"` @@ -9480,6 +11525,13 @@ func (s *DisableSnapshotCopyInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *DisableSnapshotCopyInput) SetClusterIdentifier(v string) *DisableSnapshotCopyInput { + s.ClusterIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DisableSnapshotCopyResult type DisableSnapshotCopyOutput struct { _ struct{} `type:"structure"` @@ -9497,7 +11549,14 @@ func (s DisableSnapshotCopyOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *DisableSnapshotCopyOutput) SetCluster(v *Cluster) *DisableSnapshotCopyOutput { + s.Cluster = v + return s +} + // Describes an Amazon EC2 security group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EC2SecurityGroup type EC2SecurityGroup struct { _ struct{} `type:"structure"` @@ -9525,7 +11584,32 @@ func (s EC2SecurityGroup) GoString() string { return s.String() } +// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value. +func (s *EC2SecurityGroup) SetEC2SecurityGroupName(v string) *EC2SecurityGroup { + s.EC2SecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value. +func (s *EC2SecurityGroup) SetEC2SecurityGroupOwnerId(v string) *EC2SecurityGroup { + s.EC2SecurityGroupOwnerId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EC2SecurityGroup) SetStatus(v string) *EC2SecurityGroup { + s.Status = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *EC2SecurityGroup) SetTags(v []*Tag) *EC2SecurityGroup { + s.Tags = v + return s +} + // Describes the status of the elastic IP (EIP) address. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ElasticIpStatus type ElasticIpStatus struct { _ struct{} `type:"structure"` @@ -9546,6 +11630,19 @@ func (s ElasticIpStatus) GoString() string { return s.String() } +// SetElasticIp sets the ElasticIp field's value. +func (s *ElasticIpStatus) SetElasticIp(v string) *ElasticIpStatus { + s.ElasticIp = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ElasticIpStatus) SetStatus(v string) *ElasticIpStatus { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EnableLoggingMessage type EnableLoggingInput struct { _ struct{} `type:"structure"` @@ -9553,9 +11650,9 @@ type EnableLoggingInput struct { // // Constraints: // - // Must be in the same region as the cluster + // * Must be in the same region as the cluster // - // The cluster must have read bucket and put object permissions + // * The cluster must have read bucket and put object permissions // // BucketName is a required field BucketName *string `type:"string" required:"true"` @@ -9571,21 +11668,21 @@ type EnableLoggingInput struct { // // Constraints: // - // Cannot exceed 512 characters + // * Cannot exceed 512 characters // - // Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash - // (\), or control characters. The hexadecimal codes for invalid characters - // are: + // * Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash + // (\), or control characters. The hexadecimal codes for invalid characters + // are: // - // x00 to x20 + // x00 to x20 // - // x22 + // x22 // - // x27 + // x27 // - // x5c + // x5c // - // x7f or larger + // x7f or larger S3KeyPrefix *string `type:"string"` } @@ -9615,6 +11712,25 @@ func (s *EnableLoggingInput) Validate() error { return nil } +// SetBucketName sets the BucketName field's value. +func (s *EnableLoggingInput) SetBucketName(v string) *EnableLoggingInput { + s.BucketName = &v + return s +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *EnableLoggingInput) SetClusterIdentifier(v string) *EnableLoggingInput { + s.ClusterIdentifier = &v + return s +} + +// SetS3KeyPrefix sets the S3KeyPrefix field's value. +func (s *EnableLoggingInput) SetS3KeyPrefix(v string) *EnableLoggingInput { + s.S3KeyPrefix = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EnableSnapshotCopyMessage type EnableSnapshotCopyInput struct { _ struct{} `type:"structure"` @@ -9674,6 +11790,31 @@ func (s *EnableSnapshotCopyInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *EnableSnapshotCopyInput) SetClusterIdentifier(v string) *EnableSnapshotCopyInput { + s.ClusterIdentifier = &v + return s +} + +// SetDestinationRegion sets the DestinationRegion field's value. +func (s *EnableSnapshotCopyInput) SetDestinationRegion(v string) *EnableSnapshotCopyInput { + s.DestinationRegion = &v + return s +} + +// SetRetentionPeriod sets the RetentionPeriod field's value. +func (s *EnableSnapshotCopyInput) SetRetentionPeriod(v int64) *EnableSnapshotCopyInput { + s.RetentionPeriod = &v + return s +} + +// SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value. +func (s *EnableSnapshotCopyInput) SetSnapshotCopyGrantName(v string) *EnableSnapshotCopyInput { + s.SnapshotCopyGrantName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EnableSnapshotCopyResult type EnableSnapshotCopyOutput struct { _ struct{} `type:"structure"` @@ -9691,7 +11832,14 @@ func (s EnableSnapshotCopyOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *EnableSnapshotCopyOutput) SetCluster(v *Cluster) *EnableSnapshotCopyOutput { + s.Cluster = v + return s +} + // Describes a connection endpoint. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/Endpoint type Endpoint struct { _ struct{} `type:"structure"` @@ -9712,7 +11860,20 @@ func (s Endpoint) GoString() string { return s.String() } +// SetAddress sets the Address field's value. +func (s *Endpoint) SetAddress(v string) *Endpoint { + s.Address = &v + return s +} + +// SetPort sets the Port field's value. +func (s *Endpoint) SetPort(v int64) *Endpoint { + s.Port = &v + return s +} + // Describes an event. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/Event type Event struct { _ struct{} `type:"structure"` @@ -9752,7 +11913,50 @@ func (s Event) GoString() string { return s.String() } +// SetDate sets the Date field's value. +func (s *Event) SetDate(v time.Time) *Event { + s.Date = &v + return s +} + +// SetEventCategories sets the EventCategories field's value. +func (s *Event) SetEventCategories(v []*string) *Event { + s.EventCategories = v + return s +} + +// SetEventId sets the EventId field's value. +func (s *Event) SetEventId(v string) *Event { + s.EventId = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *Event) SetMessage(v string) *Event { + s.Message = &v + return s +} + +// SetSeverity sets the Severity field's value. +func (s *Event) SetSeverity(v string) *Event { + s.Severity = &v + return s +} + +// SetSourceIdentifier sets the SourceIdentifier field's value. +func (s *Event) SetSourceIdentifier(v string) *Event { + s.SourceIdentifier = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *Event) SetSourceType(v string) *Event { + s.SourceType = &v + return s +} + // Describes event categories. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EventCategoriesMap type EventCategoriesMap struct { _ struct{} `type:"structure"` @@ -9774,7 +11978,20 @@ func (s EventCategoriesMap) GoString() string { return s.String() } +// SetEvents sets the Events field's value. +func (s *EventCategoriesMap) SetEvents(v []*EventInfoMap) *EventCategoriesMap { + s.Events = v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *EventCategoriesMap) SetSourceType(v string) *EventCategoriesMap { + s.SourceType = &v + return s +} + // Describes event information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EventInfoMap type EventInfoMap struct { _ struct{} `type:"structure"` @@ -9803,7 +12020,32 @@ func (s EventInfoMap) GoString() string { return s.String() } +// SetEventCategories sets the EventCategories field's value. +func (s *EventInfoMap) SetEventCategories(v []*string) *EventInfoMap { + s.EventCategories = v + return s +} + +// SetEventDescription sets the EventDescription field's value. +func (s *EventInfoMap) SetEventDescription(v string) *EventInfoMap { + s.EventDescription = &v + return s +} + +// SetEventId sets the EventId field's value. +func (s *EventInfoMap) SetEventId(v string) *EventInfoMap { + s.EventId = &v + return s +} + +// SetSeverity sets the Severity field's value. +func (s *EventInfoMap) SetSeverity(v string) *EventInfoMap { + s.Severity = &v + return s +} + // Describes event subscriptions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EventSubscription type EventSubscription struct { _ struct{} `type:"structure"` @@ -9845,11 +12087,11 @@ type EventSubscription struct { // // Constraints: // - // Can be one of the following: active | no-permission | topic-not-exist + // * Can be one of the following: active | no-permission | topic-not-exist // - // The status "no-permission" indicates that Amazon Redshift no longer has - // permission to post to the Amazon SNS topic. The status "topic-not-exist" - // indicates that the topic was deleted after the subscription was created. + // * The status "no-permission" indicates that Amazon Redshift no longer + // has permission to post to the Amazon SNS topic. The status "topic-not-exist" + // indicates that the topic was deleted after the subscription was created. Status *string `type:"string"` // The date and time the Amazon Redshift event notification subscription was @@ -9870,9 +12112,76 @@ func (s EventSubscription) GoString() string { return s.String() } +// SetCustSubscriptionId sets the CustSubscriptionId field's value. +func (s *EventSubscription) SetCustSubscriptionId(v string) *EventSubscription { + s.CustSubscriptionId = &v + return s +} + +// SetCustomerAwsId sets the CustomerAwsId field's value. +func (s *EventSubscription) SetCustomerAwsId(v string) *EventSubscription { + s.CustomerAwsId = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *EventSubscription) SetEnabled(v bool) *EventSubscription { + s.Enabled = &v + return s +} + +// SetEventCategoriesList sets the EventCategoriesList field's value. +func (s *EventSubscription) SetEventCategoriesList(v []*string) *EventSubscription { + s.EventCategoriesList = v + return s +} + +// SetSeverity sets the Severity field's value. +func (s *EventSubscription) SetSeverity(v string) *EventSubscription { + s.Severity = &v + return s +} + +// SetSnsTopicArn sets the SnsTopicArn field's value. +func (s *EventSubscription) SetSnsTopicArn(v string) *EventSubscription { + s.SnsTopicArn = &v + return s +} + +// SetSourceIdsList sets the SourceIdsList field's value. +func (s *EventSubscription) SetSourceIdsList(v []*string) *EventSubscription { + s.SourceIdsList = v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *EventSubscription) SetSourceType(v string) *EventSubscription { + s.SourceType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EventSubscription) SetStatus(v string) *EventSubscription { + s.Status = &v + return s +} + +// SetSubscriptionCreationTime sets the SubscriptionCreationTime field's value. +func (s *EventSubscription) SetSubscriptionCreationTime(v time.Time) *EventSubscription { + s.SubscriptionCreationTime = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *EventSubscription) SetTags(v []*Tag) *EventSubscription { + s.Tags = v + return s +} + // Returns information about an HSM client certificate. The certificate is stored // in a secure Hardware Storage Module (HSM), and used by the Amazon Redshift // cluster to encrypt data files. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/HsmClientCertificate type HsmClientCertificate struct { _ struct{} `type:"structure"` @@ -9897,9 +12206,28 @@ func (s HsmClientCertificate) GoString() string { return s.String() } +// SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value. +func (s *HsmClientCertificate) SetHsmClientCertificateIdentifier(v string) *HsmClientCertificate { + s.HsmClientCertificateIdentifier = &v + return s +} + +// SetHsmClientCertificatePublicKey sets the HsmClientCertificatePublicKey field's value. +func (s *HsmClientCertificate) SetHsmClientCertificatePublicKey(v string) *HsmClientCertificate { + s.HsmClientCertificatePublicKey = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *HsmClientCertificate) SetTags(v []*Tag) *HsmClientCertificate { + s.Tags = v + return s +} + // Returns information about an HSM configuration, which is an object that describes // to Amazon Redshift clusters the information they require to connect to an // HSM where they can store database encryption keys. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/HsmConfiguration type HsmConfiguration struct { _ struct{} `type:"structure"` @@ -9930,7 +12258,38 @@ func (s HsmConfiguration) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *HsmConfiguration) SetDescription(v string) *HsmConfiguration { + s.Description = &v + return s +} + +// SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value. +func (s *HsmConfiguration) SetHsmConfigurationIdentifier(v string) *HsmConfiguration { + s.HsmConfigurationIdentifier = &v + return s +} + +// SetHsmIpAddress sets the HsmIpAddress field's value. +func (s *HsmConfiguration) SetHsmIpAddress(v string) *HsmConfiguration { + s.HsmIpAddress = &v + return s +} + +// SetHsmPartitionName sets the HsmPartitionName field's value. +func (s *HsmConfiguration) SetHsmPartitionName(v string) *HsmConfiguration { + s.HsmPartitionName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *HsmConfiguration) SetTags(v []*Tag) *HsmConfiguration { + s.Tags = v + return s +} + // Describes the status of changes to HSM settings. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/HsmStatus type HsmStatus struct { _ struct{} `type:"structure"` @@ -9959,7 +12318,26 @@ func (s HsmStatus) GoString() string { return s.String() } +// SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value. +func (s *HsmStatus) SetHsmClientCertificateIdentifier(v string) *HsmStatus { + s.HsmClientCertificateIdentifier = &v + return s +} + +// SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value. +func (s *HsmStatus) SetHsmConfigurationIdentifier(v string) *HsmStatus { + s.HsmConfigurationIdentifier = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *HsmStatus) SetStatus(v string) *HsmStatus { + s.Status = &v + return s +} + // Describes an IP range used in a security group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/IPRange type IPRange struct { _ struct{} `type:"structure"` @@ -9983,7 +12361,26 @@ func (s IPRange) GoString() string { return s.String() } +// SetCIDRIP sets the CIDRIP field's value. +func (s *IPRange) SetCIDRIP(v string) *IPRange { + s.CIDRIP = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *IPRange) SetStatus(v string) *IPRange { + s.Status = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *IPRange) SetTags(v []*Tag) *IPRange { + s.Tags = v + return s +} + // Describes the status of logging for a cluster. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/LoggingStatus type LoggingStatus struct { _ struct{} `type:"structure"` @@ -10016,6 +12413,43 @@ func (s LoggingStatus) GoString() string { return s.String() } +// SetBucketName sets the BucketName field's value. +func (s *LoggingStatus) SetBucketName(v string) *LoggingStatus { + s.BucketName = &v + return s +} + +// SetLastFailureMessage sets the LastFailureMessage field's value. +func (s *LoggingStatus) SetLastFailureMessage(v string) *LoggingStatus { + s.LastFailureMessage = &v + return s +} + +// SetLastFailureTime sets the LastFailureTime field's value. +func (s *LoggingStatus) SetLastFailureTime(v time.Time) *LoggingStatus { + s.LastFailureTime = &v + return s +} + +// SetLastSuccessfulDeliveryTime sets the LastSuccessfulDeliveryTime field's value. +func (s *LoggingStatus) SetLastSuccessfulDeliveryTime(v time.Time) *LoggingStatus { + s.LastSuccessfulDeliveryTime = &v + return s +} + +// SetLoggingEnabled sets the LoggingEnabled field's value. +func (s *LoggingStatus) SetLoggingEnabled(v bool) *LoggingStatus { + s.LoggingEnabled = &v + return s +} + +// SetS3KeyPrefix sets the S3KeyPrefix field's value. +func (s *LoggingStatus) SetS3KeyPrefix(v string) *LoggingStatus { + s.S3KeyPrefix = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterIamRolesMessage type ModifyClusterIamRolesInput struct { _ struct{} `type:"structure"` @@ -10058,6 +12492,25 @@ func (s *ModifyClusterIamRolesInput) Validate() error { return nil } +// SetAddIamRoles sets the AddIamRoles field's value. +func (s *ModifyClusterIamRolesInput) SetAddIamRoles(v []*string) *ModifyClusterIamRolesInput { + s.AddIamRoles = v + return s +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *ModifyClusterIamRolesInput) SetClusterIdentifier(v string) *ModifyClusterIamRolesInput { + s.ClusterIdentifier = &v + return s +} + +// SetRemoveIamRoles sets the RemoveIamRoles field's value. +func (s *ModifyClusterIamRolesInput) SetRemoveIamRoles(v []*string) *ModifyClusterIamRolesInput { + s.RemoveIamRoles = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterIamRolesResult type ModifyClusterIamRolesOutput struct { _ struct{} `type:"structure"` @@ -10075,6 +12528,13 @@ func (s ModifyClusterIamRolesOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *ModifyClusterIamRolesOutput) SetCluster(v *Cluster) *ModifyClusterIamRolesOutput { + s.Cluster = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterMessage type ModifyClusterInput struct { _ struct{} `type:"structure"` @@ -10121,32 +12581,32 @@ type ModifyClusterInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters or hyphens + // * Must be 1 to 255 alphanumeric characters or hyphens // - // First character must be a letter + // * First character must be a letter // - // Cannot end with a hyphen or contain two consecutive hyphens + // * Cannot end with a hyphen or contain two consecutive hyphens ClusterSecurityGroups []*string `locationNameList:"ClusterSecurityGroupName" type:"list"` // The new cluster type. // - // When you submit your cluster resize request, your existing cluster goes - // into a read-only mode. After Amazon Redshift provisions a new cluster based - // on your resize requirements, there will be outage for a period while the - // old cluster is deleted and your connection is switched to the new cluster. - // You can use DescribeResize to track the progress of the resize request. + // When you submit your cluster resize request, your existing cluster goes into + // a read-only mode. After Amazon Redshift provisions a new cluster based on + // your resize requirements, there will be outage for a period while the old + // cluster is deleted and your connection is switched to the new cluster. You + // can use DescribeResize to track the progress of the resize request. // // Valid Values: multi-node | single-node ClusterType *string `type:"string"` // The new version number of the Amazon Redshift engine to upgrade to. // - // For major version upgrades, if a non-default cluster parameter group is - // currently in use, a new cluster parameter group in the cluster parameter - // group family for the new version must be specified. The new cluster parameter - // group can be the default for that cluster parameter group family. For more - // information about parameters and parameter groups, go to Amazon Redshift - // Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) + // For major version upgrades, if a non-default cluster parameter group is currently + // in use, a new cluster parameter group in the cluster parameter group family + // for the new version must be specified. The new cluster parameter group can + // be the default for that cluster parameter group family. For more information + // about parameters and parameter groups, go to Amazon Redshift Parameter Groups + // (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) // in the Amazon Redshift Cluster Management Guide. // // Example: 1.0 @@ -10184,41 +12644,41 @@ type ModifyClusterInput struct { // of the request, the MasterUserPassword element exists in the PendingModifiedValues // element of the operation response. // - // Operations never return the password, so this operation provides a way - // to regain access to the master user account for a cluster if the password - // is lost. + // Operations never return the password, so this operation provides a way to + // regain access to the master user account for a cluster if the password is + // lost. // - // Default: Uses existing setting. + // Default: Uses existing setting. // // Constraints: // - // Must be between 8 and 64 characters in length. + // * Must be between 8 and 64 characters in length. // - // Must contain at least one uppercase letter. + // * Must contain at least one uppercase letter. // - // Must contain at least one lowercase letter. + // * Must contain at least one lowercase letter. // - // Must contain one number. + // * Must contain one number. // - // Can be any printable ASCII character (ASCII code 33 to 126) except ' (single - // quote), " (double quote), \, /, @, or space. + // * Can be any printable ASCII character (ASCII code 33 to 126) except ' + // (single quote), " (double quote), \, /, @, or space. MasterUserPassword *string `type:"string"` // The new identifier for the cluster. // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // Alphabetic characters must be lowercase. + // * Alphabetic characters must be lowercase. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Must be unique for all clusters within an AWS account. + // * Must be unique for all clusters within an AWS account. // - // Example: examplecluster + // Example: examplecluster NewClusterIdentifier *string `type:"string"` // The new node type of the cluster. If you specify a new node type, you must @@ -10300,6 +12760,115 @@ func (s *ModifyClusterInput) Validate() error { return nil } +// SetAllowVersionUpgrade sets the AllowVersionUpgrade field's value. +func (s *ModifyClusterInput) SetAllowVersionUpgrade(v bool) *ModifyClusterInput { + s.AllowVersionUpgrade = &v + return s +} + +// SetAutomatedSnapshotRetentionPeriod sets the AutomatedSnapshotRetentionPeriod field's value. +func (s *ModifyClusterInput) SetAutomatedSnapshotRetentionPeriod(v int64) *ModifyClusterInput { + s.AutomatedSnapshotRetentionPeriod = &v + return s +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *ModifyClusterInput) SetClusterIdentifier(v string) *ModifyClusterInput { + s.ClusterIdentifier = &v + return s +} + +// SetClusterParameterGroupName sets the ClusterParameterGroupName field's value. +func (s *ModifyClusterInput) SetClusterParameterGroupName(v string) *ModifyClusterInput { + s.ClusterParameterGroupName = &v + return s +} + +// SetClusterSecurityGroups sets the ClusterSecurityGroups field's value. +func (s *ModifyClusterInput) SetClusterSecurityGroups(v []*string) *ModifyClusterInput { + s.ClusterSecurityGroups = v + return s +} + +// SetClusterType sets the ClusterType field's value. +func (s *ModifyClusterInput) SetClusterType(v string) *ModifyClusterInput { + s.ClusterType = &v + return s +} + +// SetClusterVersion sets the ClusterVersion field's value. +func (s *ModifyClusterInput) SetClusterVersion(v string) *ModifyClusterInput { + s.ClusterVersion = &v + return s +} + +// SetElasticIp sets the ElasticIp field's value. +func (s *ModifyClusterInput) SetElasticIp(v string) *ModifyClusterInput { + s.ElasticIp = &v + return s +} + +// SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value. +func (s *ModifyClusterInput) SetEnhancedVpcRouting(v bool) *ModifyClusterInput { + s.EnhancedVpcRouting = &v + return s +} + +// SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value. +func (s *ModifyClusterInput) SetHsmClientCertificateIdentifier(v string) *ModifyClusterInput { + s.HsmClientCertificateIdentifier = &v + return s +} + +// SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value. +func (s *ModifyClusterInput) SetHsmConfigurationIdentifier(v string) *ModifyClusterInput { + s.HsmConfigurationIdentifier = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *ModifyClusterInput) SetMasterUserPassword(v string) *ModifyClusterInput { + s.MasterUserPassword = &v + return s +} + +// SetNewClusterIdentifier sets the NewClusterIdentifier field's value. +func (s *ModifyClusterInput) SetNewClusterIdentifier(v string) *ModifyClusterInput { + s.NewClusterIdentifier = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *ModifyClusterInput) SetNodeType(v string) *ModifyClusterInput { + s.NodeType = &v + return s +} + +// SetNumberOfNodes sets the NumberOfNodes field's value. +func (s *ModifyClusterInput) SetNumberOfNodes(v int64) *ModifyClusterInput { + s.NumberOfNodes = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *ModifyClusterInput) SetPreferredMaintenanceWindow(v string) *ModifyClusterInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *ModifyClusterInput) SetPubliclyAccessible(v bool) *ModifyClusterInput { + s.PubliclyAccessible = &v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *ModifyClusterInput) SetVpcSecurityGroupIds(v []*string) *ModifyClusterInput { + s.VpcSecurityGroupIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterResult type ModifyClusterOutput struct { _ struct{} `type:"structure"` @@ -10317,6 +12886,13 @@ func (s ModifyClusterOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *ModifyClusterOutput) SetCluster(v *Cluster) *ModifyClusterOutput { + s.Cluster = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterParameterGroupMessage type ModifyClusterParameterGroupInput struct { _ struct{} `type:"structure"` @@ -10364,6 +12940,19 @@ func (s *ModifyClusterParameterGroupInput) Validate() error { return nil } +// SetParameterGroupName sets the ParameterGroupName field's value. +func (s *ModifyClusterParameterGroupInput) SetParameterGroupName(v string) *ModifyClusterParameterGroupInput { + s.ParameterGroupName = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *ModifyClusterParameterGroupInput) SetParameters(v []*Parameter) *ModifyClusterParameterGroupInput { + s.Parameters = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterSubnetGroupMessage type ModifyClusterSubnetGroupInput struct { _ struct{} `type:"structure"` @@ -10408,6 +12997,25 @@ func (s *ModifyClusterSubnetGroupInput) Validate() error { return nil } +// SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value. +func (s *ModifyClusterSubnetGroupInput) SetClusterSubnetGroupName(v string) *ModifyClusterSubnetGroupInput { + s.ClusterSubnetGroupName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ModifyClusterSubnetGroupInput) SetDescription(v string) *ModifyClusterSubnetGroupInput { + s.Description = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *ModifyClusterSubnetGroupInput) SetSubnetIds(v []*string) *ModifyClusterSubnetGroupInput { + s.SubnetIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterSubnetGroupResult type ModifyClusterSubnetGroupOutput struct { _ struct{} `type:"structure"` @@ -10425,6 +13033,13 @@ func (s ModifyClusterSubnetGroupOutput) GoString() string { return s.String() } +// SetClusterSubnetGroup sets the ClusterSubnetGroup field's value. +func (s *ModifyClusterSubnetGroupOutput) SetClusterSubnetGroup(v *ClusterSubnetGroup) *ModifyClusterSubnetGroupOutput { + s.ClusterSubnetGroup = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyEventSubscriptionMessage type ModifyEventSubscriptionInput struct { _ struct{} `type:"structure"` @@ -10465,8 +13080,8 @@ type ModifyEventSubscriptionInput struct { // for all Amazon Redshift objects in your AWS account. You must specify a source // type in order to specify source IDs. // - // Valid values: cluster, cluster-parameter-group, cluster-security-group, - // and cluster-snapshot. + // Valid values: cluster, cluster-parameter-group, cluster-security-group, and + // cluster-snapshot. SourceType *string `type:"string"` // The name of the modified Amazon Redshift event notification subscription. @@ -10498,6 +13113,49 @@ func (s *ModifyEventSubscriptionInput) Validate() error { return nil } +// SetEnabled sets the Enabled field's value. +func (s *ModifyEventSubscriptionInput) SetEnabled(v bool) *ModifyEventSubscriptionInput { + s.Enabled = &v + return s +} + +// SetEventCategories sets the EventCategories field's value. +func (s *ModifyEventSubscriptionInput) SetEventCategories(v []*string) *ModifyEventSubscriptionInput { + s.EventCategories = v + return s +} + +// SetSeverity sets the Severity field's value. +func (s *ModifyEventSubscriptionInput) SetSeverity(v string) *ModifyEventSubscriptionInput { + s.Severity = &v + return s +} + +// SetSnsTopicArn sets the SnsTopicArn field's value. +func (s *ModifyEventSubscriptionInput) SetSnsTopicArn(v string) *ModifyEventSubscriptionInput { + s.SnsTopicArn = &v + return s +} + +// SetSourceIds sets the SourceIds field's value. +func (s *ModifyEventSubscriptionInput) SetSourceIds(v []*string) *ModifyEventSubscriptionInput { + s.SourceIds = v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *ModifyEventSubscriptionInput) SetSourceType(v string) *ModifyEventSubscriptionInput { + s.SourceType = &v + return s +} + +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *ModifyEventSubscriptionInput) SetSubscriptionName(v string) *ModifyEventSubscriptionInput { + s.SubscriptionName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyEventSubscriptionResult type ModifyEventSubscriptionOutput struct { _ struct{} `type:"structure"` @@ -10515,6 +13173,13 @@ func (s ModifyEventSubscriptionOutput) GoString() string { return s.String() } +// SetEventSubscription sets the EventSubscription field's value. +func (s *ModifyEventSubscriptionOutput) SetEventSubscription(v *EventSubscription) *ModifyEventSubscriptionOutput { + s.EventSubscription = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifySnapshotCopyRetentionPeriodMessage type ModifySnapshotCopyRetentionPeriodInput struct { _ struct{} `type:"structure"` @@ -10567,6 +13232,19 @@ func (s *ModifySnapshotCopyRetentionPeriodInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *ModifySnapshotCopyRetentionPeriodInput) SetClusterIdentifier(v string) *ModifySnapshotCopyRetentionPeriodInput { + s.ClusterIdentifier = &v + return s +} + +// SetRetentionPeriod sets the RetentionPeriod field's value. +func (s *ModifySnapshotCopyRetentionPeriodInput) SetRetentionPeriod(v int64) *ModifySnapshotCopyRetentionPeriodInput { + s.RetentionPeriod = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifySnapshotCopyRetentionPeriodResult type ModifySnapshotCopyRetentionPeriodOutput struct { _ struct{} `type:"structure"` @@ -10584,7 +13262,14 @@ func (s ModifySnapshotCopyRetentionPeriodOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *ModifySnapshotCopyRetentionPeriodOutput) SetCluster(v *Cluster) *ModifySnapshotCopyRetentionPeriodOutput { + s.Cluster = v + return s +} + // Describes an orderable cluster option. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/OrderableClusterOption type OrderableClusterOption struct { _ struct{} `type:"structure"` @@ -10611,7 +13296,32 @@ func (s OrderableClusterOption) GoString() string { return s.String() } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *OrderableClusterOption) SetAvailabilityZones(v []*AvailabilityZone) *OrderableClusterOption { + s.AvailabilityZones = v + return s +} + +// SetClusterType sets the ClusterType field's value. +func (s *OrderableClusterOption) SetClusterType(v string) *OrderableClusterOption { + s.ClusterType = &v + return s +} + +// SetClusterVersion sets the ClusterVersion field's value. +func (s *OrderableClusterOption) SetClusterVersion(v string) *OrderableClusterOption { + s.ClusterVersion = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *OrderableClusterOption) SetNodeType(v string) *OrderableClusterOption { + s.NodeType = &v + return s +} + // Describes a parameter in a cluster parameter group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/Parameter type Parameter struct { _ struct{} `type:"structure"` @@ -10659,22 +13369,77 @@ func (s Parameter) GoString() string { return s.String() } -// Describes cluster attributes that are in a pending state. A change to one -// or more the attributes was requested and is in progress or will be applied. -type PendingModifiedValues struct { - _ struct{} `type:"structure"` +// SetAllowedValues sets the AllowedValues field's value. +func (s *Parameter) SetAllowedValues(v string) *Parameter { + s.AllowedValues = &v + return s +} - // The pending or in-progress change of the automated snapshot retention period. - AutomatedSnapshotRetentionPeriod *int64 `type:"integer"` +// SetApplyType sets the ApplyType field's value. +func (s *Parameter) SetApplyType(v string) *Parameter { + s.ApplyType = &v + return s +} - // The pending or in-progress change of the new identifier for the cluster. - ClusterIdentifier *string `type:"string"` +// SetDataType sets the DataType field's value. +func (s *Parameter) SetDataType(v string) *Parameter { + s.DataType = &v + return s +} - // The pending or in-progress change of the cluster type. - ClusterType *string `type:"string"` +// SetDescription sets the Description field's value. +func (s *Parameter) SetDescription(v string) *Parameter { + s.Description = &v + return s +} - // The pending or in-progress change of the service version. - ClusterVersion *string `type:"string"` +// SetIsModifiable sets the IsModifiable field's value. +func (s *Parameter) SetIsModifiable(v bool) *Parameter { + s.IsModifiable = &v + return s +} + +// SetMinimumEngineVersion sets the MinimumEngineVersion field's value. +func (s *Parameter) SetMinimumEngineVersion(v string) *Parameter { + s.MinimumEngineVersion = &v + return s +} + +// SetParameterName sets the ParameterName field's value. +func (s *Parameter) SetParameterName(v string) *Parameter { + s.ParameterName = &v + return s +} + +// SetParameterValue sets the ParameterValue field's value. +func (s *Parameter) SetParameterValue(v string) *Parameter { + s.ParameterValue = &v + return s +} + +// SetSource sets the Source field's value. +func (s *Parameter) SetSource(v string) *Parameter { + s.Source = &v + return s +} + +// Describes cluster attributes that are in a pending state. A change to one +// or more the attributes was requested and is in progress or will be applied. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/PendingModifiedValues +type PendingModifiedValues struct { + _ struct{} `type:"structure"` + + // The pending or in-progress change of the automated snapshot retention period. + AutomatedSnapshotRetentionPeriod *int64 `type:"integer"` + + // The pending or in-progress change of the new identifier for the cluster. + ClusterIdentifier *string `type:"string"` + + // The pending or in-progress change of the cluster type. + ClusterType *string `type:"string"` + + // The pending or in-progress change of the service version. + ClusterVersion *string `type:"string"` // An option that specifies whether to create the cluster with enhanced VPC // routing enabled. To create a cluster that uses enhanced VPC routing, the @@ -10711,6 +13476,61 @@ func (s PendingModifiedValues) GoString() string { return s.String() } +// SetAutomatedSnapshotRetentionPeriod sets the AutomatedSnapshotRetentionPeriod field's value. +func (s *PendingModifiedValues) SetAutomatedSnapshotRetentionPeriod(v int64) *PendingModifiedValues { + s.AutomatedSnapshotRetentionPeriod = &v + return s +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *PendingModifiedValues) SetClusterIdentifier(v string) *PendingModifiedValues { + s.ClusterIdentifier = &v + return s +} + +// SetClusterType sets the ClusterType field's value. +func (s *PendingModifiedValues) SetClusterType(v string) *PendingModifiedValues { + s.ClusterType = &v + return s +} + +// SetClusterVersion sets the ClusterVersion field's value. +func (s *PendingModifiedValues) SetClusterVersion(v string) *PendingModifiedValues { + s.ClusterVersion = &v + return s +} + +// SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value. +func (s *PendingModifiedValues) SetEnhancedVpcRouting(v bool) *PendingModifiedValues { + s.EnhancedVpcRouting = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *PendingModifiedValues) SetMasterUserPassword(v string) *PendingModifiedValues { + s.MasterUserPassword = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *PendingModifiedValues) SetNodeType(v string) *PendingModifiedValues { + s.NodeType = &v + return s +} + +// SetNumberOfNodes sets the NumberOfNodes field's value. +func (s *PendingModifiedValues) SetNumberOfNodes(v int64) *PendingModifiedValues { + s.NumberOfNodes = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *PendingModifiedValues) SetPubliclyAccessible(v bool) *PendingModifiedValues { + s.PubliclyAccessible = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/PurchaseReservedNodeOfferingMessage type PurchaseReservedNodeOfferingInput struct { _ struct{} `type:"structure"` @@ -10748,6 +13568,19 @@ func (s *PurchaseReservedNodeOfferingInput) Validate() error { return nil } +// SetNodeCount sets the NodeCount field's value. +func (s *PurchaseReservedNodeOfferingInput) SetNodeCount(v int64) *PurchaseReservedNodeOfferingInput { + s.NodeCount = &v + return s +} + +// SetReservedNodeOfferingId sets the ReservedNodeOfferingId field's value. +func (s *PurchaseReservedNodeOfferingInput) SetReservedNodeOfferingId(v string) *PurchaseReservedNodeOfferingInput { + s.ReservedNodeOfferingId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/PurchaseReservedNodeOfferingResult type PurchaseReservedNodeOfferingOutput struct { _ struct{} `type:"structure"` @@ -10766,6 +13599,13 @@ func (s PurchaseReservedNodeOfferingOutput) GoString() string { return s.String() } +// SetReservedNode sets the ReservedNode field's value. +func (s *PurchaseReservedNodeOfferingOutput) SetReservedNode(v *ReservedNode) *PurchaseReservedNodeOfferingOutput { + s.ReservedNode = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RebootClusterMessage type RebootClusterInput struct { _ struct{} `type:"structure"` @@ -10798,6 +13638,13 @@ func (s *RebootClusterInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *RebootClusterInput) SetClusterIdentifier(v string) *RebootClusterInput { + s.ClusterIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RebootClusterResult type RebootClusterOutput struct { _ struct{} `type:"structure"` @@ -10815,7 +13662,14 @@ func (s RebootClusterOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *RebootClusterOutput) SetCluster(v *Cluster) *RebootClusterOutput { + s.Cluster = v + return s +} + // Describes a recurring charge. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RecurringCharge type RecurringCharge struct { _ struct{} `type:"structure"` @@ -10837,8 +13691,21 @@ func (s RecurringCharge) GoString() string { return s.String() } +// SetRecurringChargeAmount sets the RecurringChargeAmount field's value. +func (s *RecurringCharge) SetRecurringChargeAmount(v float64) *RecurringCharge { + s.RecurringChargeAmount = &v + return s +} + +// SetRecurringChargeFrequency sets the RecurringChargeFrequency field's value. +func (s *RecurringCharge) SetRecurringChargeFrequency(v string) *RecurringCharge { + s.RecurringChargeFrequency = &v + return s +} + // Describes a reserved node. You can call the DescribeReservedNodeOfferings // API to obtain the available reserved node offerings. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ReservedNode type ReservedNode struct { _ struct{} `type:"structure"` @@ -10878,13 +13745,13 @@ type ReservedNode struct { // // Possible Values: // - // pending-payment-This reserved node has recently been purchased, and the - // sale has been approved, but payment has not yet been confirmed. + // * pending-payment-This reserved node has recently been purchased, and + // the sale has been approved, but payment has not yet been confirmed. // - // active-This reserved node is owned by the caller and is available for - // use. + // * active-This reserved node is owned by the caller and is available for + // use. // - // payment-failed-Payment failed for the purchase attempt. + // * payment-failed-Payment failed for the purchase attempt. State *string `type:"string"` // The hourly rate Amazon Redshift charges you for this reserved node. @@ -10901,7 +13768,80 @@ func (s ReservedNode) GoString() string { return s.String() } +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *ReservedNode) SetCurrencyCode(v string) *ReservedNode { + s.CurrencyCode = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *ReservedNode) SetDuration(v int64) *ReservedNode { + s.Duration = &v + return s +} + +// SetFixedPrice sets the FixedPrice field's value. +func (s *ReservedNode) SetFixedPrice(v float64) *ReservedNode { + s.FixedPrice = &v + return s +} + +// SetNodeCount sets the NodeCount field's value. +func (s *ReservedNode) SetNodeCount(v int64) *ReservedNode { + s.NodeCount = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *ReservedNode) SetNodeType(v string) *ReservedNode { + s.NodeType = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *ReservedNode) SetOfferingType(v string) *ReservedNode { + s.OfferingType = &v + return s +} + +// SetRecurringCharges sets the RecurringCharges field's value. +func (s *ReservedNode) SetRecurringCharges(v []*RecurringCharge) *ReservedNode { + s.RecurringCharges = v + return s +} + +// SetReservedNodeId sets the ReservedNodeId field's value. +func (s *ReservedNode) SetReservedNodeId(v string) *ReservedNode { + s.ReservedNodeId = &v + return s +} + +// SetReservedNodeOfferingId sets the ReservedNodeOfferingId field's value. +func (s *ReservedNode) SetReservedNodeOfferingId(v string) *ReservedNode { + s.ReservedNodeOfferingId = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *ReservedNode) SetStartTime(v time.Time) *ReservedNode { + s.StartTime = &v + return s +} + +// SetState sets the State field's value. +func (s *ReservedNode) SetState(v string) *ReservedNode { + s.State = &v + return s +} + +// SetUsagePrice sets the UsagePrice field's value. +func (s *ReservedNode) SetUsagePrice(v float64) *ReservedNode { + s.UsagePrice = &v + return s +} + // Describes a reserved node offering. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ReservedNodeOffering type ReservedNodeOffering struct { _ struct{} `type:"structure"` @@ -10945,6 +13885,55 @@ func (s ReservedNodeOffering) GoString() string { return s.String() } +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *ReservedNodeOffering) SetCurrencyCode(v string) *ReservedNodeOffering { + s.CurrencyCode = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *ReservedNodeOffering) SetDuration(v int64) *ReservedNodeOffering { + s.Duration = &v + return s +} + +// SetFixedPrice sets the FixedPrice field's value. +func (s *ReservedNodeOffering) SetFixedPrice(v float64) *ReservedNodeOffering { + s.FixedPrice = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *ReservedNodeOffering) SetNodeType(v string) *ReservedNodeOffering { + s.NodeType = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *ReservedNodeOffering) SetOfferingType(v string) *ReservedNodeOffering { + s.OfferingType = &v + return s +} + +// SetRecurringCharges sets the RecurringCharges field's value. +func (s *ReservedNodeOffering) SetRecurringCharges(v []*RecurringCharge) *ReservedNodeOffering { + s.RecurringCharges = v + return s +} + +// SetReservedNodeOfferingId sets the ReservedNodeOfferingId field's value. +func (s *ReservedNodeOffering) SetReservedNodeOfferingId(v string) *ReservedNodeOffering { + s.ReservedNodeOfferingId = &v + return s +} + +// SetUsagePrice sets the UsagePrice field's value. +func (s *ReservedNodeOffering) SetUsagePrice(v float64) *ReservedNodeOffering { + s.UsagePrice = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ResetClusterParameterGroupMessage type ResetClusterParameterGroupInput struct { _ struct{} `type:"structure"` @@ -10989,6 +13978,25 @@ func (s *ResetClusterParameterGroupInput) Validate() error { return nil } +// SetParameterGroupName sets the ParameterGroupName field's value. +func (s *ResetClusterParameterGroupInput) SetParameterGroupName(v string) *ResetClusterParameterGroupInput { + s.ParameterGroupName = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *ResetClusterParameterGroupInput) SetParameters(v []*Parameter) *ResetClusterParameterGroupInput { + s.Parameters = v + return s +} + +// SetResetAllParameters sets the ResetAllParameters field's value. +func (s *ResetClusterParameterGroupInput) SetResetAllParameters(v bool) *ResetClusterParameterGroupInput { + s.ResetAllParameters = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RestoreFromClusterSnapshotMessage type RestoreFromClusterSnapshotInput struct { _ struct{} `type:"structure"` @@ -11005,8 +14013,7 @@ type RestoreFromClusterSnapshotInput struct { // 0, automated snapshots are disabled. Even if automated snapshots are disabled, // you can still create manual snapshots when you want with CreateClusterSnapshot. // - // Default: The value selected for the cluster from which the snapshot was - // taken. + // Default: The value selected for the cluster from which the snapshot was taken. // // Constraints: Must be a value from 0 to 35. AutomatedSnapshotRetentionPeriod *int64 `type:"integer"` @@ -11022,15 +14029,15 @@ type RestoreFromClusterSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. + // * Must contain from 1 to 63 alphanumeric characters or hyphens. // - // Alphabetic characters must be lowercase. + // * Alphabetic characters must be lowercase. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. // - // Must be unique for all clusters within an AWS account. + // * Must be unique for all clusters within an AWS account. // // ClusterIdentifier is a required field ClusterIdentifier *string `type:"string" required:"true"` @@ -11043,11 +14050,11 @@ type RestoreFromClusterSnapshotInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters or hyphens. + // * Must be 1 to 255 alphanumeric characters or hyphens. // - // First character must be a letter. + // * First character must be a letter. // - // Cannot end with a hyphen or contain two consecutive hyphens. + // * Cannot end with a hyphen or contain two consecutive hyphens. ClusterParameterGroupName *string `type:"string"` // A list of security groups to be associated with this cluster. @@ -11125,10 +14132,10 @@ type RestoreFromClusterSnapshotInput struct { // The weekly time range (in UTC) during which automated cluster maintenance // can occur. // - // Format: ddd:hh24:mi-ddd:hh24:mi + // Format: ddd:hh24:mi-ddd:hh24:mi // - // Default: The value selected for the cluster from which the snapshot was - // taken. For more information about the time blocks for each region, see Maintenance + // Default: The value selected for the cluster from which the snapshot was taken. + // For more information about the time blocks for each region, see Maintenance // Windows (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#rs-maintenance-windows) // in Amazon Redshift Cluster Management Guide. // @@ -11188,6 +14195,139 @@ func (s *RestoreFromClusterSnapshotInput) Validate() error { return nil } +// SetAdditionalInfo sets the AdditionalInfo field's value. +func (s *RestoreFromClusterSnapshotInput) SetAdditionalInfo(v string) *RestoreFromClusterSnapshotInput { + s.AdditionalInfo = &v + return s +} + +// SetAllowVersionUpgrade sets the AllowVersionUpgrade field's value. +func (s *RestoreFromClusterSnapshotInput) SetAllowVersionUpgrade(v bool) *RestoreFromClusterSnapshotInput { + s.AllowVersionUpgrade = &v + return s +} + +// SetAutomatedSnapshotRetentionPeriod sets the AutomatedSnapshotRetentionPeriod field's value. +func (s *RestoreFromClusterSnapshotInput) SetAutomatedSnapshotRetentionPeriod(v int64) *RestoreFromClusterSnapshotInput { + s.AutomatedSnapshotRetentionPeriod = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *RestoreFromClusterSnapshotInput) SetAvailabilityZone(v string) *RestoreFromClusterSnapshotInput { + s.AvailabilityZone = &v + return s +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *RestoreFromClusterSnapshotInput) SetClusterIdentifier(v string) *RestoreFromClusterSnapshotInput { + s.ClusterIdentifier = &v + return s +} + +// SetClusterParameterGroupName sets the ClusterParameterGroupName field's value. +func (s *RestoreFromClusterSnapshotInput) SetClusterParameterGroupName(v string) *RestoreFromClusterSnapshotInput { + s.ClusterParameterGroupName = &v + return s +} + +// SetClusterSecurityGroups sets the ClusterSecurityGroups field's value. +func (s *RestoreFromClusterSnapshotInput) SetClusterSecurityGroups(v []*string) *RestoreFromClusterSnapshotInput { + s.ClusterSecurityGroups = v + return s +} + +// SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value. +func (s *RestoreFromClusterSnapshotInput) SetClusterSubnetGroupName(v string) *RestoreFromClusterSnapshotInput { + s.ClusterSubnetGroupName = &v + return s +} + +// SetElasticIp sets the ElasticIp field's value. +func (s *RestoreFromClusterSnapshotInput) SetElasticIp(v string) *RestoreFromClusterSnapshotInput { + s.ElasticIp = &v + return s +} + +// SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value. +func (s *RestoreFromClusterSnapshotInput) SetEnhancedVpcRouting(v bool) *RestoreFromClusterSnapshotInput { + s.EnhancedVpcRouting = &v + return s +} + +// SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value. +func (s *RestoreFromClusterSnapshotInput) SetHsmClientCertificateIdentifier(v string) *RestoreFromClusterSnapshotInput { + s.HsmClientCertificateIdentifier = &v + return s +} + +// SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value. +func (s *RestoreFromClusterSnapshotInput) SetHsmConfigurationIdentifier(v string) *RestoreFromClusterSnapshotInput { + s.HsmConfigurationIdentifier = &v + return s +} + +// SetIamRoles sets the IamRoles field's value. +func (s *RestoreFromClusterSnapshotInput) SetIamRoles(v []*string) *RestoreFromClusterSnapshotInput { + s.IamRoles = v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *RestoreFromClusterSnapshotInput) SetKmsKeyId(v string) *RestoreFromClusterSnapshotInput { + s.KmsKeyId = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *RestoreFromClusterSnapshotInput) SetNodeType(v string) *RestoreFromClusterSnapshotInput { + s.NodeType = &v + return s +} + +// SetOwnerAccount sets the OwnerAccount field's value. +func (s *RestoreFromClusterSnapshotInput) SetOwnerAccount(v string) *RestoreFromClusterSnapshotInput { + s.OwnerAccount = &v + return s +} + +// SetPort sets the Port field's value. +func (s *RestoreFromClusterSnapshotInput) SetPort(v int64) *RestoreFromClusterSnapshotInput { + s.Port = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *RestoreFromClusterSnapshotInput) SetPreferredMaintenanceWindow(v string) *RestoreFromClusterSnapshotInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *RestoreFromClusterSnapshotInput) SetPubliclyAccessible(v bool) *RestoreFromClusterSnapshotInput { + s.PubliclyAccessible = &v + return s +} + +// SetSnapshotClusterIdentifier sets the SnapshotClusterIdentifier field's value. +func (s *RestoreFromClusterSnapshotInput) SetSnapshotClusterIdentifier(v string) *RestoreFromClusterSnapshotInput { + s.SnapshotClusterIdentifier = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *RestoreFromClusterSnapshotInput) SetSnapshotIdentifier(v string) *RestoreFromClusterSnapshotInput { + s.SnapshotIdentifier = &v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *RestoreFromClusterSnapshotInput) SetVpcSecurityGroupIds(v []*string) *RestoreFromClusterSnapshotInput { + s.VpcSecurityGroupIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RestoreFromClusterSnapshotResult type RestoreFromClusterSnapshotOutput struct { _ struct{} `type:"structure"` @@ -11205,8 +14345,15 @@ func (s RestoreFromClusterSnapshotOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *RestoreFromClusterSnapshotOutput) SetCluster(v *Cluster) *RestoreFromClusterSnapshotOutput { + s.Cluster = v + return s +} + // Describes the status of a cluster restore action. Returns null if the cluster // was not created by restoring a snapshot. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RestoreStatus type RestoreStatus struct { _ struct{} `type:"structure"` @@ -11243,6 +14390,43 @@ func (s RestoreStatus) GoString() string { return s.String() } +// SetCurrentRestoreRateInMegaBytesPerSecond sets the CurrentRestoreRateInMegaBytesPerSecond field's value. +func (s *RestoreStatus) SetCurrentRestoreRateInMegaBytesPerSecond(v float64) *RestoreStatus { + s.CurrentRestoreRateInMegaBytesPerSecond = &v + return s +} + +// SetElapsedTimeInSeconds sets the ElapsedTimeInSeconds field's value. +func (s *RestoreStatus) SetElapsedTimeInSeconds(v int64) *RestoreStatus { + s.ElapsedTimeInSeconds = &v + return s +} + +// SetEstimatedTimeToCompletionInSeconds sets the EstimatedTimeToCompletionInSeconds field's value. +func (s *RestoreStatus) SetEstimatedTimeToCompletionInSeconds(v int64) *RestoreStatus { + s.EstimatedTimeToCompletionInSeconds = &v + return s +} + +// SetProgressInMegaBytes sets the ProgressInMegaBytes field's value. +func (s *RestoreStatus) SetProgressInMegaBytes(v int64) *RestoreStatus { + s.ProgressInMegaBytes = &v + return s +} + +// SetSnapshotSizeInMegaBytes sets the SnapshotSizeInMegaBytes field's value. +func (s *RestoreStatus) SetSnapshotSizeInMegaBytes(v int64) *RestoreStatus { + s.SnapshotSizeInMegaBytes = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *RestoreStatus) SetStatus(v string) *RestoreStatus { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RestoreTableFromClusterSnapshotMessage type RestoreTableFromClusterSnapshotInput struct { _ struct{} `type:"structure"` @@ -11319,6 +14503,55 @@ func (s *RestoreTableFromClusterSnapshotInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *RestoreTableFromClusterSnapshotInput) SetClusterIdentifier(v string) *RestoreTableFromClusterSnapshotInput { + s.ClusterIdentifier = &v + return s +} + +// SetNewTableName sets the NewTableName field's value. +func (s *RestoreTableFromClusterSnapshotInput) SetNewTableName(v string) *RestoreTableFromClusterSnapshotInput { + s.NewTableName = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *RestoreTableFromClusterSnapshotInput) SetSnapshotIdentifier(v string) *RestoreTableFromClusterSnapshotInput { + s.SnapshotIdentifier = &v + return s +} + +// SetSourceDatabaseName sets the SourceDatabaseName field's value. +func (s *RestoreTableFromClusterSnapshotInput) SetSourceDatabaseName(v string) *RestoreTableFromClusterSnapshotInput { + s.SourceDatabaseName = &v + return s +} + +// SetSourceSchemaName sets the SourceSchemaName field's value. +func (s *RestoreTableFromClusterSnapshotInput) SetSourceSchemaName(v string) *RestoreTableFromClusterSnapshotInput { + s.SourceSchemaName = &v + return s +} + +// SetSourceTableName sets the SourceTableName field's value. +func (s *RestoreTableFromClusterSnapshotInput) SetSourceTableName(v string) *RestoreTableFromClusterSnapshotInput { + s.SourceTableName = &v + return s +} + +// SetTargetDatabaseName sets the TargetDatabaseName field's value. +func (s *RestoreTableFromClusterSnapshotInput) SetTargetDatabaseName(v string) *RestoreTableFromClusterSnapshotInput { + s.TargetDatabaseName = &v + return s +} + +// SetTargetSchemaName sets the TargetSchemaName field's value. +func (s *RestoreTableFromClusterSnapshotInput) SetTargetSchemaName(v string) *RestoreTableFromClusterSnapshotInput { + s.TargetSchemaName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RestoreTableFromClusterSnapshotResult type RestoreTableFromClusterSnapshotOutput struct { _ struct{} `type:"structure"` @@ -11336,6 +14569,13 @@ func (s RestoreTableFromClusterSnapshotOutput) GoString() string { return s.String() } +// SetTableRestoreStatus sets the TableRestoreStatus field's value. +func (s *RestoreTableFromClusterSnapshotOutput) SetTableRestoreStatus(v *TableRestoreStatus) *RestoreTableFromClusterSnapshotOutput { + s.TableRestoreStatus = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RevokeClusterSecurityGroupIngressMessage type RevokeClusterSecurityGroupIngressInput struct { _ struct{} `type:"structure"` @@ -11386,6 +14626,31 @@ func (s *RevokeClusterSecurityGroupIngressInput) Validate() error { return nil } +// SetCIDRIP sets the CIDRIP field's value. +func (s *RevokeClusterSecurityGroupIngressInput) SetCIDRIP(v string) *RevokeClusterSecurityGroupIngressInput { + s.CIDRIP = &v + return s +} + +// SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value. +func (s *RevokeClusterSecurityGroupIngressInput) SetClusterSecurityGroupName(v string) *RevokeClusterSecurityGroupIngressInput { + s.ClusterSecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value. +func (s *RevokeClusterSecurityGroupIngressInput) SetEC2SecurityGroupName(v string) *RevokeClusterSecurityGroupIngressInput { + s.EC2SecurityGroupName = &v + return s +} + +// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value. +func (s *RevokeClusterSecurityGroupIngressInput) SetEC2SecurityGroupOwnerId(v string) *RevokeClusterSecurityGroupIngressInput { + s.EC2SecurityGroupOwnerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RevokeClusterSecurityGroupIngressResult type RevokeClusterSecurityGroupIngressOutput struct { _ struct{} `type:"structure"` @@ -11403,6 +14668,13 @@ func (s RevokeClusterSecurityGroupIngressOutput) GoString() string { return s.String() } +// SetClusterSecurityGroup sets the ClusterSecurityGroup field's value. +func (s *RevokeClusterSecurityGroupIngressOutput) SetClusterSecurityGroup(v *ClusterSecurityGroup) *RevokeClusterSecurityGroupIngressOutput { + s.ClusterSecurityGroup = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RevokeSnapshotAccessMessage type RevokeSnapshotAccessInput struct { _ struct{} `type:"structure"` @@ -11449,6 +14721,25 @@ func (s *RevokeSnapshotAccessInput) Validate() error { return nil } +// SetAccountWithRestoreAccess sets the AccountWithRestoreAccess field's value. +func (s *RevokeSnapshotAccessInput) SetAccountWithRestoreAccess(v string) *RevokeSnapshotAccessInput { + s.AccountWithRestoreAccess = &v + return s +} + +// SetSnapshotClusterIdentifier sets the SnapshotClusterIdentifier field's value. +func (s *RevokeSnapshotAccessInput) SetSnapshotClusterIdentifier(v string) *RevokeSnapshotAccessInput { + s.SnapshotClusterIdentifier = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *RevokeSnapshotAccessInput) SetSnapshotIdentifier(v string) *RevokeSnapshotAccessInput { + s.SnapshotIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RevokeSnapshotAccessResult type RevokeSnapshotAccessOutput struct { _ struct{} `type:"structure"` @@ -11466,6 +14757,13 @@ func (s RevokeSnapshotAccessOutput) GoString() string { return s.String() } +// SetSnapshot sets the Snapshot field's value. +func (s *RevokeSnapshotAccessOutput) SetSnapshot(v *Snapshot) *RevokeSnapshotAccessOutput { + s.Snapshot = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RotateEncryptionKeyMessage type RotateEncryptionKeyInput struct { _ struct{} `type:"structure"` @@ -11501,6 +14799,13 @@ func (s *RotateEncryptionKeyInput) Validate() error { return nil } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *RotateEncryptionKeyInput) SetClusterIdentifier(v string) *RotateEncryptionKeyInput { + s.ClusterIdentifier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RotateEncryptionKeyResult type RotateEncryptionKeyOutput struct { _ struct{} `type:"structure"` @@ -11518,7 +14823,14 @@ func (s RotateEncryptionKeyOutput) GoString() string { return s.String() } +// SetCluster sets the Cluster field's value. +func (s *RotateEncryptionKeyOutput) SetCluster(v *Cluster) *RotateEncryptionKeyOutput { + s.Cluster = v + return s +} + // Describes a snapshot. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/Snapshot type Snapshot struct { _ struct{} `type:"structure"` @@ -11619,12 +14931,13 @@ type Snapshot struct { // The snapshot status. The value of the status depends on the API operation // used. // - // CreateClusterSnapshot and CopyClusterSnapshot returns status as "creating". + // * CreateClusterSnapshot and CopyClusterSnapshot returns status as "creating". + // // - // DescribeClusterSnapshots returns status as "creating", "available", "final - // snapshot", or "failed". + // * DescribeClusterSnapshots returns status as "creating", "available", + // "final snapshot", or "failed". // - // DeleteClusterSnapshot returns status as "deleted". + // * DeleteClusterSnapshot returns status as "deleted". Status *string `type:"string"` // The list of tags for the cluster snapshot. @@ -11649,13 +14962,188 @@ func (s Snapshot) GoString() string { return s.String() } +// SetAccountsWithRestoreAccess sets the AccountsWithRestoreAccess field's value. +func (s *Snapshot) SetAccountsWithRestoreAccess(v []*AccountWithRestoreAccess) *Snapshot { + s.AccountsWithRestoreAccess = v + return s +} + +// SetActualIncrementalBackupSizeInMegaBytes sets the ActualIncrementalBackupSizeInMegaBytes field's value. +func (s *Snapshot) SetActualIncrementalBackupSizeInMegaBytes(v float64) *Snapshot { + s.ActualIncrementalBackupSizeInMegaBytes = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Snapshot) SetAvailabilityZone(v string) *Snapshot { + s.AvailabilityZone = &v + return s +} + +// SetBackupProgressInMegaBytes sets the BackupProgressInMegaBytes field's value. +func (s *Snapshot) SetBackupProgressInMegaBytes(v float64) *Snapshot { + s.BackupProgressInMegaBytes = &v + return s +} + +// SetClusterCreateTime sets the ClusterCreateTime field's value. +func (s *Snapshot) SetClusterCreateTime(v time.Time) *Snapshot { + s.ClusterCreateTime = &v + return s +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *Snapshot) SetClusterIdentifier(v string) *Snapshot { + s.ClusterIdentifier = &v + return s +} + +// SetClusterVersion sets the ClusterVersion field's value. +func (s *Snapshot) SetClusterVersion(v string) *Snapshot { + s.ClusterVersion = &v + return s +} + +// SetCurrentBackupRateInMegaBytesPerSecond sets the CurrentBackupRateInMegaBytesPerSecond field's value. +func (s *Snapshot) SetCurrentBackupRateInMegaBytesPerSecond(v float64) *Snapshot { + s.CurrentBackupRateInMegaBytesPerSecond = &v + return s +} + +// SetDBName sets the DBName field's value. +func (s *Snapshot) SetDBName(v string) *Snapshot { + s.DBName = &v + return s +} + +// SetElapsedTimeInSeconds sets the ElapsedTimeInSeconds field's value. +func (s *Snapshot) SetElapsedTimeInSeconds(v int64) *Snapshot { + s.ElapsedTimeInSeconds = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *Snapshot) SetEncrypted(v bool) *Snapshot { + s.Encrypted = &v + return s +} + +// SetEncryptedWithHSM sets the EncryptedWithHSM field's value. +func (s *Snapshot) SetEncryptedWithHSM(v bool) *Snapshot { + s.EncryptedWithHSM = &v + return s +} + +// SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value. +func (s *Snapshot) SetEnhancedVpcRouting(v bool) *Snapshot { + s.EnhancedVpcRouting = &v + return s +} + +// SetEstimatedSecondsToCompletion sets the EstimatedSecondsToCompletion field's value. +func (s *Snapshot) SetEstimatedSecondsToCompletion(v int64) *Snapshot { + s.EstimatedSecondsToCompletion = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *Snapshot) SetKmsKeyId(v string) *Snapshot { + s.KmsKeyId = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *Snapshot) SetMasterUsername(v string) *Snapshot { + s.MasterUsername = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *Snapshot) SetNodeType(v string) *Snapshot { + s.NodeType = &v + return s +} + +// SetNumberOfNodes sets the NumberOfNodes field's value. +func (s *Snapshot) SetNumberOfNodes(v int64) *Snapshot { + s.NumberOfNodes = &v + return s +} + +// SetOwnerAccount sets the OwnerAccount field's value. +func (s *Snapshot) SetOwnerAccount(v string) *Snapshot { + s.OwnerAccount = &v + return s +} + +// SetPort sets the Port field's value. +func (s *Snapshot) SetPort(v int64) *Snapshot { + s.Port = &v + return s +} + +// SetRestorableNodeTypes sets the RestorableNodeTypes field's value. +func (s *Snapshot) SetRestorableNodeTypes(v []*string) *Snapshot { + s.RestorableNodeTypes = v + return s +} + +// SetSnapshotCreateTime sets the SnapshotCreateTime field's value. +func (s *Snapshot) SetSnapshotCreateTime(v time.Time) *Snapshot { + s.SnapshotCreateTime = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *Snapshot) SetSnapshotIdentifier(v string) *Snapshot { + s.SnapshotIdentifier = &v + return s +} + +// SetSnapshotType sets the SnapshotType field's value. +func (s *Snapshot) SetSnapshotType(v string) *Snapshot { + s.SnapshotType = &v + return s +} + +// SetSourceRegion sets the SourceRegion field's value. +func (s *Snapshot) SetSourceRegion(v string) *Snapshot { + s.SourceRegion = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Snapshot) SetStatus(v string) *Snapshot { + s.Status = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Snapshot) SetTags(v []*Tag) *Snapshot { + s.Tags = v + return s +} + +// SetTotalBackupSizeInMegaBytes sets the TotalBackupSizeInMegaBytes field's value. +func (s *Snapshot) SetTotalBackupSizeInMegaBytes(v float64) *Snapshot { + s.TotalBackupSizeInMegaBytes = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *Snapshot) SetVpcId(v string) *Snapshot { + s.VpcId = &v + return s +} + // The snapshot copy grant that grants Amazon Redshift permission to encrypt // copied snapshots with the specified customer master key (CMK) from AWS KMS // in the destination region. // -// For more information about managing snapshot copy grants, go to Amazon -// Redshift Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) +// For more information about managing snapshot copy grants, go to Amazon Redshift +// Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) // in the Amazon Redshift Cluster Management Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/SnapshotCopyGrant type SnapshotCopyGrant struct { _ struct{} `type:"structure"` @@ -11680,7 +15168,26 @@ func (s SnapshotCopyGrant) GoString() string { return s.String() } +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *SnapshotCopyGrant) SetKmsKeyId(v string) *SnapshotCopyGrant { + s.KmsKeyId = &v + return s +} + +// SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value. +func (s *SnapshotCopyGrant) SetSnapshotCopyGrantName(v string) *SnapshotCopyGrant { + s.SnapshotCopyGrantName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *SnapshotCopyGrant) SetTags(v []*Tag) *SnapshotCopyGrant { + s.Tags = v + return s +} + // Describes a subnet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/Subnet type Subnet struct { _ struct{} `type:"structure"` @@ -11704,7 +15211,26 @@ func (s Subnet) GoString() string { return s.String() } +// SetSubnetAvailabilityZone sets the SubnetAvailabilityZone field's value. +func (s *Subnet) SetSubnetAvailabilityZone(v *AvailabilityZone) *Subnet { + s.SubnetAvailabilityZone = v + return s +} + +// SetSubnetIdentifier sets the SubnetIdentifier field's value. +func (s *Subnet) SetSubnetIdentifier(v string) *Subnet { + s.SubnetIdentifier = &v + return s +} + +// SetSubnetStatus sets the SubnetStatus field's value. +func (s *Subnet) SetSubnetStatus(v string) *Subnet { + s.SubnetStatus = &v + return s +} + // Describes the status of a RestoreTableFromClusterSnapshot operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/TableRestoreStatus type TableRestoreStatus struct { _ struct{} `type:"structure"` @@ -11766,7 +15292,92 @@ func (s TableRestoreStatus) GoString() string { return s.String() } +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *TableRestoreStatus) SetClusterIdentifier(v string) *TableRestoreStatus { + s.ClusterIdentifier = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *TableRestoreStatus) SetMessage(v string) *TableRestoreStatus { + s.Message = &v + return s +} + +// SetNewTableName sets the NewTableName field's value. +func (s *TableRestoreStatus) SetNewTableName(v string) *TableRestoreStatus { + s.NewTableName = &v + return s +} + +// SetProgressInMegaBytes sets the ProgressInMegaBytes field's value. +func (s *TableRestoreStatus) SetProgressInMegaBytes(v int64) *TableRestoreStatus { + s.ProgressInMegaBytes = &v + return s +} + +// SetRequestTime sets the RequestTime field's value. +func (s *TableRestoreStatus) SetRequestTime(v time.Time) *TableRestoreStatus { + s.RequestTime = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *TableRestoreStatus) SetSnapshotIdentifier(v string) *TableRestoreStatus { + s.SnapshotIdentifier = &v + return s +} + +// SetSourceDatabaseName sets the SourceDatabaseName field's value. +func (s *TableRestoreStatus) SetSourceDatabaseName(v string) *TableRestoreStatus { + s.SourceDatabaseName = &v + return s +} + +// SetSourceSchemaName sets the SourceSchemaName field's value. +func (s *TableRestoreStatus) SetSourceSchemaName(v string) *TableRestoreStatus { + s.SourceSchemaName = &v + return s +} + +// SetSourceTableName sets the SourceTableName field's value. +func (s *TableRestoreStatus) SetSourceTableName(v string) *TableRestoreStatus { + s.SourceTableName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *TableRestoreStatus) SetStatus(v string) *TableRestoreStatus { + s.Status = &v + return s +} + +// SetTableRestoreRequestId sets the TableRestoreRequestId field's value. +func (s *TableRestoreStatus) SetTableRestoreRequestId(v string) *TableRestoreStatus { + s.TableRestoreRequestId = &v + return s +} + +// SetTargetDatabaseName sets the TargetDatabaseName field's value. +func (s *TableRestoreStatus) SetTargetDatabaseName(v string) *TableRestoreStatus { + s.TargetDatabaseName = &v + return s +} + +// SetTargetSchemaName sets the TargetSchemaName field's value. +func (s *TableRestoreStatus) SetTargetSchemaName(v string) *TableRestoreStatus { + s.TargetSchemaName = &v + return s +} + +// SetTotalDataInMegaBytes sets the TotalDataInMegaBytes field's value. +func (s *TableRestoreStatus) SetTotalDataInMegaBytes(v int64) *TableRestoreStatus { + s.TotalDataInMegaBytes = &v + return s +} + // A tag consisting of a name/value pair for a resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/Tag type Tag struct { _ struct{} `type:"structure"` @@ -11787,7 +15398,20 @@ func (s Tag) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // A tag and its associated resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/TaggedResource type TaggedResource struct { _ struct{} `type:"structure"` @@ -11798,25 +15422,25 @@ type TaggedResource struct { // The type of resource with which the tag is associated. Valid resource types // are: // - // Cluster + // * Cluster // - // CIDR/IP + // * CIDR/IP // - // EC2 security group + // * EC2 security group // - // Snapshot + // * Snapshot // - // Cluster security group + // * Cluster security group // - // Subnet group + // * Subnet group // - // HSM connection + // * HSM connection // - // HSM certificate + // * HSM certificate // - // Parameter group + // * Parameter group // - // For more information about Amazon Redshift resource types and constructing + // For more information about Amazon Redshift resource types and constructing // ARNs, go to Constructing an Amazon Redshift Amazon Resource Name (ARN) (http://docs.aws.amazon.com/redshift/latest/mgmt/constructing-redshift-arn.html) // in the Amazon Redshift Cluster Management Guide. ResourceType *string `type:"string"` @@ -11835,7 +15459,26 @@ func (s TaggedResource) GoString() string { return s.String() } +// SetResourceName sets the ResourceName field's value. +func (s *TaggedResource) SetResourceName(v string) *TaggedResource { + s.ResourceName = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *TaggedResource) SetResourceType(v string) *TaggedResource { + s.ResourceType = &v + return s +} + +// SetTag sets the Tag field's value. +func (s *TaggedResource) SetTag(v *Tag) *TaggedResource { + s.Tag = v + return s +} + // Describes the members of a VPC security group. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/VpcSecurityGroupMembership type VpcSecurityGroupMembership struct { _ struct{} `type:"structure"` @@ -11856,6 +15499,18 @@ func (s VpcSecurityGroupMembership) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *VpcSecurityGroupMembership) SetStatus(v string) *VpcSecurityGroupMembership { + s.Status = &v + return s +} + +// SetVpcSecurityGroupId sets the VpcSecurityGroupId field's value. +func (s *VpcSecurityGroupMembership) SetVpcSecurityGroupId(v string) *VpcSecurityGroupMembership { + s.VpcSecurityGroupId = &v + return s +} + const ( // ParameterApplyTypeStatic is a ParameterApplyType enum value ParameterApplyTypeStatic = "static" diff --git a/vendor/github.com/aws/aws-sdk-go/service/redshift/errors.go b/vendor/github.com/aws/aws-sdk-go/service/redshift/errors.go new file mode 100644 index 000000000..b59f68d88 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/redshift/errors.go @@ -0,0 +1,566 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package redshift + +const ( + + // ErrCodeAccessToSnapshotDeniedFault for service response error code + // "AccessToSnapshotDenied". + // + // The owner of the specified snapshot has not authorized your account to access + // the snapshot. + ErrCodeAccessToSnapshotDeniedFault = "AccessToSnapshotDenied" + + // ErrCodeAuthorizationAlreadyExistsFault for service response error code + // "AuthorizationAlreadyExists". + // + // The specified CIDR block or EC2 security group is already authorized for + // the specified cluster security group. + ErrCodeAuthorizationAlreadyExistsFault = "AuthorizationAlreadyExists" + + // ErrCodeAuthorizationNotFoundFault for service response error code + // "AuthorizationNotFound". + // + // The specified CIDR IP range or EC2 security group is not authorized for the + // specified cluster security group. + ErrCodeAuthorizationNotFoundFault = "AuthorizationNotFound" + + // ErrCodeAuthorizationQuotaExceededFault for service response error code + // "AuthorizationQuotaExceeded". + // + // The authorization quota for the cluster security group has been reached. + ErrCodeAuthorizationQuotaExceededFault = "AuthorizationQuotaExceeded" + + // ErrCodeBucketNotFoundFault for service response error code + // "BucketNotFoundFault". + // + // Could not find the specified S3 bucket. + ErrCodeBucketNotFoundFault = "BucketNotFoundFault" + + // ErrCodeClusterAlreadyExistsFault for service response error code + // "ClusterAlreadyExists". + // + // The account already has a cluster with the given identifier. + ErrCodeClusterAlreadyExistsFault = "ClusterAlreadyExists" + + // ErrCodeClusterNotFoundFault for service response error code + // "ClusterNotFound". + // + // The ClusterIdentifier parameter does not refer to an existing cluster. + ErrCodeClusterNotFoundFault = "ClusterNotFound" + + // ErrCodeClusterParameterGroupAlreadyExistsFault for service response error code + // "ClusterParameterGroupAlreadyExists". + // + // A cluster parameter group with the same name already exists. + ErrCodeClusterParameterGroupAlreadyExistsFault = "ClusterParameterGroupAlreadyExists" + + // ErrCodeClusterParameterGroupNotFoundFault for service response error code + // "ClusterParameterGroupNotFound". + // + // The parameter group name does not refer to an existing parameter group. + ErrCodeClusterParameterGroupNotFoundFault = "ClusterParameterGroupNotFound" + + // ErrCodeClusterParameterGroupQuotaExceededFault for service response error code + // "ClusterParameterGroupQuotaExceeded". + // + // The request would result in the user exceeding the allowed number of cluster + // parameter groups. For information about increasing your quota, go to Limits + // in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) + // in the Amazon Redshift Cluster Management Guide. + ErrCodeClusterParameterGroupQuotaExceededFault = "ClusterParameterGroupQuotaExceeded" + + // ErrCodeClusterQuotaExceededFault for service response error code + // "ClusterQuotaExceeded". + // + // The request would exceed the allowed number of cluster instances for this + // account. For information about increasing your quota, go to Limits in Amazon + // Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) + // in the Amazon Redshift Cluster Management Guide. + ErrCodeClusterQuotaExceededFault = "ClusterQuotaExceeded" + + // ErrCodeClusterSecurityGroupAlreadyExistsFault for service response error code + // "ClusterSecurityGroupAlreadyExists". + // + // A cluster security group with the same name already exists. + ErrCodeClusterSecurityGroupAlreadyExistsFault = "ClusterSecurityGroupAlreadyExists" + + // ErrCodeClusterSecurityGroupNotFoundFault for service response error code + // "ClusterSecurityGroupNotFound". + // + // The cluster security group name does not refer to an existing cluster security + // group. + ErrCodeClusterSecurityGroupNotFoundFault = "ClusterSecurityGroupNotFound" + + // ErrCodeClusterSecurityGroupQuotaExceededFault for service response error code + // "QuotaExceeded.ClusterSecurityGroup". + // + // The request would result in the user exceeding the allowed number of cluster + // security groups. For information about increasing your quota, go to Limits + // in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) + // in the Amazon Redshift Cluster Management Guide. + ErrCodeClusterSecurityGroupQuotaExceededFault = "QuotaExceeded.ClusterSecurityGroup" + + // ErrCodeClusterSnapshotAlreadyExistsFault for service response error code + // "ClusterSnapshotAlreadyExists". + // + // The value specified as a snapshot identifier is already used by an existing + // snapshot. + ErrCodeClusterSnapshotAlreadyExistsFault = "ClusterSnapshotAlreadyExists" + + // ErrCodeClusterSnapshotNotFoundFault for service response error code + // "ClusterSnapshotNotFound". + // + // The snapshot identifier does not refer to an existing cluster snapshot. + ErrCodeClusterSnapshotNotFoundFault = "ClusterSnapshotNotFound" + + // ErrCodeClusterSnapshotQuotaExceededFault for service response error code + // "ClusterSnapshotQuotaExceeded". + // + // The request would result in the user exceeding the allowed number of cluster + // snapshots. + ErrCodeClusterSnapshotQuotaExceededFault = "ClusterSnapshotQuotaExceeded" + + // ErrCodeClusterSubnetGroupAlreadyExistsFault for service response error code + // "ClusterSubnetGroupAlreadyExists". + // + // A ClusterSubnetGroupName is already used by an existing cluster subnet group. + ErrCodeClusterSubnetGroupAlreadyExistsFault = "ClusterSubnetGroupAlreadyExists" + + // ErrCodeClusterSubnetGroupNotFoundFault for service response error code + // "ClusterSubnetGroupNotFoundFault". + // + // The cluster subnet group name does not refer to an existing cluster subnet + // group. + ErrCodeClusterSubnetGroupNotFoundFault = "ClusterSubnetGroupNotFoundFault" + + // ErrCodeClusterSubnetGroupQuotaExceededFault for service response error code + // "ClusterSubnetGroupQuotaExceeded". + // + // The request would result in user exceeding the allowed number of cluster + // subnet groups. For information about increasing your quota, go to Limits + // in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) + // in the Amazon Redshift Cluster Management Guide. + ErrCodeClusterSubnetGroupQuotaExceededFault = "ClusterSubnetGroupQuotaExceeded" + + // ErrCodeClusterSubnetQuotaExceededFault for service response error code + // "ClusterSubnetQuotaExceededFault". + // + // The request would result in user exceeding the allowed number of subnets + // in a cluster subnet groups. For information about increasing your quota, + // go to Limits in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) + // in the Amazon Redshift Cluster Management Guide. + ErrCodeClusterSubnetQuotaExceededFault = "ClusterSubnetQuotaExceededFault" + + // ErrCodeCopyToRegionDisabledFault for service response error code + // "CopyToRegionDisabledFault". + // + // Cross-region snapshot copy was temporarily disabled. Try your request again. + ErrCodeCopyToRegionDisabledFault = "CopyToRegionDisabledFault" + + // ErrCodeDependentServiceRequestThrottlingFault for service response error code + // "DependentServiceRequestThrottlingFault". + // + // The request cannot be completed because a dependent service is throttling + // requests made by Amazon Redshift on your behalf. Wait and retry the request. + ErrCodeDependentServiceRequestThrottlingFault = "DependentServiceRequestThrottlingFault" + + // ErrCodeEventSubscriptionQuotaExceededFault for service response error code + // "EventSubscriptionQuotaExceeded". + // + // The request would exceed the allowed number of event subscriptions for this + // account. For information about increasing your quota, go to Limits in Amazon + // Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) + // in the Amazon Redshift Cluster Management Guide. + ErrCodeEventSubscriptionQuotaExceededFault = "EventSubscriptionQuotaExceeded" + + // ErrCodeHsmClientCertificateAlreadyExistsFault for service response error code + // "HsmClientCertificateAlreadyExistsFault". + // + // There is already an existing Amazon Redshift HSM client certificate with + // the specified identifier. + ErrCodeHsmClientCertificateAlreadyExistsFault = "HsmClientCertificateAlreadyExistsFault" + + // ErrCodeHsmClientCertificateNotFoundFault for service response error code + // "HsmClientCertificateNotFoundFault". + // + // There is no Amazon Redshift HSM client certificate with the specified identifier. + ErrCodeHsmClientCertificateNotFoundFault = "HsmClientCertificateNotFoundFault" + + // ErrCodeHsmClientCertificateQuotaExceededFault for service response error code + // "HsmClientCertificateQuotaExceededFault". + // + // The quota for HSM client certificates has been reached. For information about + // increasing your quota, go to Limits in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) + // in the Amazon Redshift Cluster Management Guide. + ErrCodeHsmClientCertificateQuotaExceededFault = "HsmClientCertificateQuotaExceededFault" + + // ErrCodeHsmConfigurationAlreadyExistsFault for service response error code + // "HsmConfigurationAlreadyExistsFault". + // + // There is already an existing Amazon Redshift HSM configuration with the specified + // identifier. + ErrCodeHsmConfigurationAlreadyExistsFault = "HsmConfigurationAlreadyExistsFault" + + // ErrCodeHsmConfigurationNotFoundFault for service response error code + // "HsmConfigurationNotFoundFault". + // + // There is no Amazon Redshift HSM configuration with the specified identifier. + ErrCodeHsmConfigurationNotFoundFault = "HsmConfigurationNotFoundFault" + + // ErrCodeHsmConfigurationQuotaExceededFault for service response error code + // "HsmConfigurationQuotaExceededFault". + // + // The quota for HSM configurations has been reached. For information about + // increasing your quota, go to Limits in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) + // in the Amazon Redshift Cluster Management Guide. + ErrCodeHsmConfigurationQuotaExceededFault = "HsmConfigurationQuotaExceededFault" + + // ErrCodeInProgressTableRestoreQuotaExceededFault for service response error code + // "InProgressTableRestoreQuotaExceededFault". + // + // You have exceeded the allowed number of table restore requests. Wait for + // your current table restore requests to complete before making a new request. + ErrCodeInProgressTableRestoreQuotaExceededFault = "InProgressTableRestoreQuotaExceededFault" + + // ErrCodeIncompatibleOrderableOptions for service response error code + // "IncompatibleOrderableOptions". + // + // The specified options are incompatible. + ErrCodeIncompatibleOrderableOptions = "IncompatibleOrderableOptions" + + // ErrCodeInsufficientClusterCapacityFault for service response error code + // "InsufficientClusterCapacity". + // + // The number of nodes specified exceeds the allotted capacity of the cluster. + ErrCodeInsufficientClusterCapacityFault = "InsufficientClusterCapacity" + + // ErrCodeInsufficientS3BucketPolicyFault for service response error code + // "InsufficientS3BucketPolicyFault". + // + // The cluster does not have read bucket or put object permissions on the S3 + // bucket specified when enabling logging. + ErrCodeInsufficientS3BucketPolicyFault = "InsufficientS3BucketPolicyFault" + + // ErrCodeInvalidClusterParameterGroupStateFault for service response error code + // "InvalidClusterParameterGroupState". + // + // The cluster parameter group action can not be completed because another task + // is in progress that involves the parameter group. Wait a few moments and + // try the operation again. + ErrCodeInvalidClusterParameterGroupStateFault = "InvalidClusterParameterGroupState" + + // ErrCodeInvalidClusterSecurityGroupStateFault for service response error code + // "InvalidClusterSecurityGroupState". + // + // The state of the cluster security group is not available. + ErrCodeInvalidClusterSecurityGroupStateFault = "InvalidClusterSecurityGroupState" + + // ErrCodeInvalidClusterSnapshotStateFault for service response error code + // "InvalidClusterSnapshotState". + // + // The specified cluster snapshot is not in the available state, or other accounts + // are authorized to access the snapshot. + ErrCodeInvalidClusterSnapshotStateFault = "InvalidClusterSnapshotState" + + // ErrCodeInvalidClusterStateFault for service response error code + // "InvalidClusterState". + // + // The specified cluster is not in the available state. + ErrCodeInvalidClusterStateFault = "InvalidClusterState" + + // ErrCodeInvalidClusterSubnetGroupStateFault for service response error code + // "InvalidClusterSubnetGroupStateFault". + // + // The cluster subnet group cannot be deleted because it is in use. + ErrCodeInvalidClusterSubnetGroupStateFault = "InvalidClusterSubnetGroupStateFault" + + // ErrCodeInvalidClusterSubnetStateFault for service response error code + // "InvalidClusterSubnetStateFault". + // + // The state of the subnet is invalid. + ErrCodeInvalidClusterSubnetStateFault = "InvalidClusterSubnetStateFault" + + // ErrCodeInvalidElasticIpFault for service response error code + // "InvalidElasticIpFault". + // + // The Elastic IP (EIP) is invalid or cannot be found. + ErrCodeInvalidElasticIpFault = "InvalidElasticIpFault" + + // ErrCodeInvalidHsmClientCertificateStateFault for service response error code + // "InvalidHsmClientCertificateStateFault". + // + // The specified HSM client certificate is not in the available state, or it + // is still in use by one or more Amazon Redshift clusters. + ErrCodeInvalidHsmClientCertificateStateFault = "InvalidHsmClientCertificateStateFault" + + // ErrCodeInvalidHsmConfigurationStateFault for service response error code + // "InvalidHsmConfigurationStateFault". + // + // The specified HSM configuration is not in the available state, or it is still + // in use by one or more Amazon Redshift clusters. + ErrCodeInvalidHsmConfigurationStateFault = "InvalidHsmConfigurationStateFault" + + // ErrCodeInvalidRestoreFault for service response error code + // "InvalidRestore". + // + // The restore is invalid. + ErrCodeInvalidRestoreFault = "InvalidRestore" + + // ErrCodeInvalidS3BucketNameFault for service response error code + // "InvalidS3BucketNameFault". + // + // The S3 bucket name is invalid. For more information about naming rules, go + // to Bucket Restrictions and Limitations (http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html) + // in the Amazon Simple Storage Service (S3) Developer Guide. + ErrCodeInvalidS3BucketNameFault = "InvalidS3BucketNameFault" + + // ErrCodeInvalidS3KeyPrefixFault for service response error code + // "InvalidS3KeyPrefixFault". + // + // The string specified for the logging S3 key prefix does not comply with the + // documented constraints. + ErrCodeInvalidS3KeyPrefixFault = "InvalidS3KeyPrefixFault" + + // ErrCodeInvalidSnapshotCopyGrantStateFault for service response error code + // "InvalidSnapshotCopyGrantStateFault". + // + // The snapshot copy grant can't be deleted because it is used by one or more + // clusters. + ErrCodeInvalidSnapshotCopyGrantStateFault = "InvalidSnapshotCopyGrantStateFault" + + // ErrCodeInvalidSubnet for service response error code + // "InvalidSubnet". + // + // The requested subnet is not valid, or not all of the subnets are in the same + // VPC. + ErrCodeInvalidSubnet = "InvalidSubnet" + + // ErrCodeInvalidSubscriptionStateFault for service response error code + // "InvalidSubscriptionStateFault". + // + // The subscription request is invalid because it is a duplicate request. This + // subscription request is already in progress. + ErrCodeInvalidSubscriptionStateFault = "InvalidSubscriptionStateFault" + + // ErrCodeInvalidTableRestoreArgumentFault for service response error code + // "InvalidTableRestoreArgument". + // + // The value specified for the sourceDatabaseName, sourceSchemaName, or sourceTableName + // parameter, or a combination of these, doesn't exist in the snapshot. + ErrCodeInvalidTableRestoreArgumentFault = "InvalidTableRestoreArgument" + + // ErrCodeInvalidTagFault for service response error code + // "InvalidTagFault". + // + // The tag is invalid. + ErrCodeInvalidTagFault = "InvalidTagFault" + + // ErrCodeInvalidVPCNetworkStateFault for service response error code + // "InvalidVPCNetworkStateFault". + // + // The cluster subnet group does not cover all Availability Zones. + ErrCodeInvalidVPCNetworkStateFault = "InvalidVPCNetworkStateFault" + + // ErrCodeLimitExceededFault for service response error code + // "LimitExceededFault". + // + // The encryption key has exceeded its grant limit in AWS KMS. + ErrCodeLimitExceededFault = "LimitExceededFault" + + // ErrCodeNumberOfNodesPerClusterLimitExceededFault for service response error code + // "NumberOfNodesPerClusterLimitExceeded". + // + // The operation would exceed the number of nodes allowed for a cluster. + ErrCodeNumberOfNodesPerClusterLimitExceededFault = "NumberOfNodesPerClusterLimitExceeded" + + // ErrCodeNumberOfNodesQuotaExceededFault for service response error code + // "NumberOfNodesQuotaExceeded". + // + // The operation would exceed the number of nodes allotted to the account. For + // information about increasing your quota, go to Limits in Amazon Redshift + // (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) + // in the Amazon Redshift Cluster Management Guide. + ErrCodeNumberOfNodesQuotaExceededFault = "NumberOfNodesQuotaExceeded" + + // ErrCodeReservedNodeAlreadyExistsFault for service response error code + // "ReservedNodeAlreadyExists". + // + // User already has a reservation with the given identifier. + ErrCodeReservedNodeAlreadyExistsFault = "ReservedNodeAlreadyExists" + + // ErrCodeReservedNodeNotFoundFault for service response error code + // "ReservedNodeNotFound". + // + // The specified reserved compute node not found. + ErrCodeReservedNodeNotFoundFault = "ReservedNodeNotFound" + + // ErrCodeReservedNodeOfferingNotFoundFault for service response error code + // "ReservedNodeOfferingNotFound". + // + // Specified offering does not exist. + ErrCodeReservedNodeOfferingNotFoundFault = "ReservedNodeOfferingNotFound" + + // ErrCodeReservedNodeQuotaExceededFault for service response error code + // "ReservedNodeQuotaExceeded". + // + // Request would exceed the user's compute node quota. For information about + // increasing your quota, go to Limits in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) + // in the Amazon Redshift Cluster Management Guide. + ErrCodeReservedNodeQuotaExceededFault = "ReservedNodeQuotaExceeded" + + // ErrCodeResizeNotFoundFault for service response error code + // "ResizeNotFound". + // + // A resize operation for the specified cluster is not found. + ErrCodeResizeNotFoundFault = "ResizeNotFound" + + // ErrCodeResourceNotFoundFault for service response error code + // "ResourceNotFoundFault". + // + // The resource could not be found. + ErrCodeResourceNotFoundFault = "ResourceNotFoundFault" + + // ErrCodeSNSInvalidTopicFault for service response error code + // "SNSInvalidTopic". + // + // Amazon SNS has responded that there is a problem with the specified Amazon + // SNS topic. + ErrCodeSNSInvalidTopicFault = "SNSInvalidTopic" + + // ErrCodeSNSNoAuthorizationFault for service response error code + // "SNSNoAuthorization". + // + // You do not have permission to publish to the specified Amazon SNS topic. + ErrCodeSNSNoAuthorizationFault = "SNSNoAuthorization" + + // ErrCodeSNSTopicArnNotFoundFault for service response error code + // "SNSTopicArnNotFound". + // + // An Amazon SNS topic with the specified Amazon Resource Name (ARN) does not + // exist. + ErrCodeSNSTopicArnNotFoundFault = "SNSTopicArnNotFound" + + // ErrCodeSnapshotCopyAlreadyDisabledFault for service response error code + // "SnapshotCopyAlreadyDisabledFault". + // + // The cluster already has cross-region snapshot copy disabled. + ErrCodeSnapshotCopyAlreadyDisabledFault = "SnapshotCopyAlreadyDisabledFault" + + // ErrCodeSnapshotCopyAlreadyEnabledFault for service response error code + // "SnapshotCopyAlreadyEnabledFault". + // + // The cluster already has cross-region snapshot copy enabled. + ErrCodeSnapshotCopyAlreadyEnabledFault = "SnapshotCopyAlreadyEnabledFault" + + // ErrCodeSnapshotCopyDisabledFault for service response error code + // "SnapshotCopyDisabledFault". + // + // Cross-region snapshot copy was temporarily disabled. Try your request again. + ErrCodeSnapshotCopyDisabledFault = "SnapshotCopyDisabledFault" + + // ErrCodeSnapshotCopyGrantAlreadyExistsFault for service response error code + // "SnapshotCopyGrantAlreadyExistsFault". + // + // The snapshot copy grant can't be created because a grant with the same name + // already exists. + ErrCodeSnapshotCopyGrantAlreadyExistsFault = "SnapshotCopyGrantAlreadyExistsFault" + + // ErrCodeSnapshotCopyGrantNotFoundFault for service response error code + // "SnapshotCopyGrantNotFoundFault". + // + // The specified snapshot copy grant can't be found. Make sure that the name + // is typed correctly and that the grant exists in the destination region. + ErrCodeSnapshotCopyGrantNotFoundFault = "SnapshotCopyGrantNotFoundFault" + + // ErrCodeSnapshotCopyGrantQuotaExceededFault for service response error code + // "SnapshotCopyGrantQuotaExceededFault". + // + // The AWS account has exceeded the maximum number of snapshot copy grants in + // this region. + ErrCodeSnapshotCopyGrantQuotaExceededFault = "SnapshotCopyGrantQuotaExceededFault" + + // ErrCodeSourceNotFoundFault for service response error code + // "SourceNotFound". + // + // The specified Amazon Redshift event source could not be found. + ErrCodeSourceNotFoundFault = "SourceNotFound" + + // ErrCodeSubnetAlreadyInUse for service response error code + // "SubnetAlreadyInUse". + // + // A specified subnet is already in use by another cluster. + ErrCodeSubnetAlreadyInUse = "SubnetAlreadyInUse" + + // ErrCodeSubscriptionAlreadyExistFault for service response error code + // "SubscriptionAlreadyExist". + // + // There is already an existing event notification subscription with the specified + // name. + ErrCodeSubscriptionAlreadyExistFault = "SubscriptionAlreadyExist" + + // ErrCodeSubscriptionCategoryNotFoundFault for service response error code + // "SubscriptionCategoryNotFound". + // + // The value specified for the event category was not one of the allowed values, + // or it specified a category that does not apply to the specified source type. + // The allowed values are Configuration, Management, Monitoring, and Security. + ErrCodeSubscriptionCategoryNotFoundFault = "SubscriptionCategoryNotFound" + + // ErrCodeSubscriptionEventIdNotFoundFault for service response error code + // "SubscriptionEventIdNotFound". + // + // An Amazon Redshift event with the specified event ID does not exist. + ErrCodeSubscriptionEventIdNotFoundFault = "SubscriptionEventIdNotFound" + + // ErrCodeSubscriptionNotFoundFault for service response error code + // "SubscriptionNotFound". + // + // An Amazon Redshift event notification subscription with the specified name + // does not exist. + ErrCodeSubscriptionNotFoundFault = "SubscriptionNotFound" + + // ErrCodeSubscriptionSeverityNotFoundFault for service response error code + // "SubscriptionSeverityNotFound". + // + // The value specified for the event severity was not one of the allowed values, + // or it specified a severity that does not apply to the specified source type. + // The allowed values are ERROR and INFO. + ErrCodeSubscriptionSeverityNotFoundFault = "SubscriptionSeverityNotFound" + + // ErrCodeTableRestoreNotFoundFault for service response error code + // "TableRestoreNotFoundFault". + // + // The specified TableRestoreRequestId value was not found. + ErrCodeTableRestoreNotFoundFault = "TableRestoreNotFoundFault" + + // ErrCodeTagLimitExceededFault for service response error code + // "TagLimitExceededFault". + // + // The request exceeds the limit of 10 tags for the resource. + ErrCodeTagLimitExceededFault = "TagLimitExceededFault" + + // ErrCodeUnauthorizedOperation for service response error code + // "UnauthorizedOperation". + // + // Your account is not authorized to perform the requested operation. + ErrCodeUnauthorizedOperation = "UnauthorizedOperation" + + // ErrCodeUnknownSnapshotCopyRegionFault for service response error code + // "UnknownSnapshotCopyRegionFault". + // + // The specified region is incorrect or does not exist. + ErrCodeUnknownSnapshotCopyRegionFault = "UnknownSnapshotCopyRegionFault" + + // ErrCodeUnsupportedOperationFault for service response error code + // "UnsupportedOperation". + // + // The requested operation isn't supported. + ErrCodeUnsupportedOperationFault = "UnsupportedOperation" + + // ErrCodeUnsupportedOptionFault for service response error code + // "UnsupportedOptionFault". + // + // A request option was specified that is not supported. + ErrCodeUnsupportedOptionFault = "UnsupportedOptionFault" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/redshift/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/redshift/examples_test.go index f38053e2f..8990e53f7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/redshift/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/redshift/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleRedshift_AuthorizeClusterSecurityGroupIngress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -44,11 +40,7 @@ func ExampleRedshift_AuthorizeClusterSecurityGroupIngress() { } func ExampleRedshift_AuthorizeSnapshotAccess() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -71,11 +63,7 @@ func ExampleRedshift_AuthorizeSnapshotAccess() { } func ExampleRedshift_CopyClusterSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -98,11 +86,7 @@ func ExampleRedshift_CopyClusterSnapshot() { } func ExampleRedshift_CreateCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -164,11 +148,7 @@ func ExampleRedshift_CreateCluster() { } func ExampleRedshift_CreateClusterParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -198,11 +178,7 @@ func ExampleRedshift_CreateClusterParameterGroup() { } func ExampleRedshift_CreateClusterSecurityGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -231,11 +207,7 @@ func ExampleRedshift_CreateClusterSecurityGroup() { } func ExampleRedshift_CreateClusterSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -264,11 +236,7 @@ func ExampleRedshift_CreateClusterSnapshot() { } func ExampleRedshift_CreateClusterSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -301,11 +269,7 @@ func ExampleRedshift_CreateClusterSubnetGroup() { } func ExampleRedshift_CreateEventSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -345,11 +309,7 @@ func ExampleRedshift_CreateEventSubscription() { } func ExampleRedshift_CreateHsmClientCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -377,11 +337,7 @@ func ExampleRedshift_CreateHsmClientCertificate() { } func ExampleRedshift_CreateHsmConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -414,11 +370,7 @@ func ExampleRedshift_CreateHsmConfiguration() { } func ExampleRedshift_CreateSnapshotCopyGrant() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -447,11 +399,7 @@ func ExampleRedshift_CreateSnapshotCopyGrant() { } func ExampleRedshift_CreateTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -479,11 +427,7 @@ func ExampleRedshift_CreateTags() { } func ExampleRedshift_DeleteCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -506,11 +450,7 @@ func ExampleRedshift_DeleteCluster() { } func ExampleRedshift_DeleteClusterParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -531,11 +471,7 @@ func ExampleRedshift_DeleteClusterParameterGroup() { } func ExampleRedshift_DeleteClusterSecurityGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -556,11 +492,7 @@ func ExampleRedshift_DeleteClusterSecurityGroup() { } func ExampleRedshift_DeleteClusterSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -582,11 +514,7 @@ func ExampleRedshift_DeleteClusterSnapshot() { } func ExampleRedshift_DeleteClusterSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -607,11 +535,7 @@ func ExampleRedshift_DeleteClusterSubnetGroup() { } func ExampleRedshift_DeleteEventSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -632,11 +556,7 @@ func ExampleRedshift_DeleteEventSubscription() { } func ExampleRedshift_DeleteHsmClientCertificate() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -657,11 +577,7 @@ func ExampleRedshift_DeleteHsmClientCertificate() { } func ExampleRedshift_DeleteHsmConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -682,11 +598,7 @@ func ExampleRedshift_DeleteHsmConfiguration() { } func ExampleRedshift_DeleteSnapshotCopyGrant() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -707,11 +619,7 @@ func ExampleRedshift_DeleteSnapshotCopyGrant() { } func ExampleRedshift_DeleteTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -736,11 +644,7 @@ func ExampleRedshift_DeleteTags() { } func ExampleRedshift_DescribeClusterParameterGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -771,11 +675,7 @@ func ExampleRedshift_DescribeClusterParameterGroups() { } func ExampleRedshift_DescribeClusterParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -799,11 +699,7 @@ func ExampleRedshift_DescribeClusterParameters() { } func ExampleRedshift_DescribeClusterSecurityGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -834,11 +730,7 @@ func ExampleRedshift_DescribeClusterSecurityGroups() { } func ExampleRedshift_DescribeClusterSnapshots() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -874,11 +766,7 @@ func ExampleRedshift_DescribeClusterSnapshots() { } func ExampleRedshift_DescribeClusterSubnetGroups() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -909,11 +797,7 @@ func ExampleRedshift_DescribeClusterSubnetGroups() { } func ExampleRedshift_DescribeClusterVersions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -937,11 +821,7 @@ func ExampleRedshift_DescribeClusterVersions() { } func ExampleRedshift_DescribeClusters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -972,11 +852,7 @@ func ExampleRedshift_DescribeClusters() { } func ExampleRedshift_DescribeDefaultClusterParameters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -999,11 +875,7 @@ func ExampleRedshift_DescribeDefaultClusterParameters() { } func ExampleRedshift_DescribeEventCategories() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1024,11 +896,7 @@ func ExampleRedshift_DescribeEventCategories() { } func ExampleRedshift_DescribeEventSubscriptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1051,11 +919,7 @@ func ExampleRedshift_DescribeEventSubscriptions() { } func ExampleRedshift_DescribeEvents() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1082,11 +946,7 @@ func ExampleRedshift_DescribeEvents() { } func ExampleRedshift_DescribeHsmClientCertificates() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1117,11 +977,7 @@ func ExampleRedshift_DescribeHsmClientCertificates() { } func ExampleRedshift_DescribeHsmConfigurations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1152,11 +1008,7 @@ func ExampleRedshift_DescribeHsmConfigurations() { } func ExampleRedshift_DescribeLoggingStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1177,11 +1029,7 @@ func ExampleRedshift_DescribeLoggingStatus() { } func ExampleRedshift_DescribeOrderableClusterOptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1205,11 +1053,7 @@ func ExampleRedshift_DescribeOrderableClusterOptions() { } func ExampleRedshift_DescribeReservedNodeOfferings() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1232,11 +1076,7 @@ func ExampleRedshift_DescribeReservedNodeOfferings() { } func ExampleRedshift_DescribeReservedNodes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1259,11 +1099,7 @@ func ExampleRedshift_DescribeReservedNodes() { } func ExampleRedshift_DescribeResize() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1284,11 +1120,7 @@ func ExampleRedshift_DescribeResize() { } func ExampleRedshift_DescribeSnapshotCopyGrants() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1319,11 +1151,7 @@ func ExampleRedshift_DescribeSnapshotCopyGrants() { } func ExampleRedshift_DescribeTableRestoreStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1347,11 +1175,7 @@ func ExampleRedshift_DescribeTableRestoreStatus() { } func ExampleRedshift_DescribeTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1383,11 +1207,7 @@ func ExampleRedshift_DescribeTags() { } func ExampleRedshift_DisableLogging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1408,11 +1228,7 @@ func ExampleRedshift_DisableLogging() { } func ExampleRedshift_DisableSnapshotCopy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1433,11 +1249,7 @@ func ExampleRedshift_DisableSnapshotCopy() { } func ExampleRedshift_EnableLogging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1460,11 +1272,7 @@ func ExampleRedshift_EnableLogging() { } func ExampleRedshift_EnableSnapshotCopy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1488,11 +1296,7 @@ func ExampleRedshift_EnableSnapshotCopy() { } func ExampleRedshift_ModifyCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1536,11 +1340,7 @@ func ExampleRedshift_ModifyCluster() { } func ExampleRedshift_ModifyClusterIamRoles() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1569,11 +1369,7 @@ func ExampleRedshift_ModifyClusterIamRoles() { } func ExampleRedshift_ModifyClusterParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1608,11 +1404,7 @@ func ExampleRedshift_ModifyClusterParameterGroup() { } func ExampleRedshift_ModifyClusterSubnetGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1638,11 +1430,7 @@ func ExampleRedshift_ModifyClusterSubnetGroup() { } func ExampleRedshift_ModifyEventSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1675,11 +1463,7 @@ func ExampleRedshift_ModifyEventSubscription() { } func ExampleRedshift_ModifySnapshotCopyRetentionPeriod() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1701,11 +1485,7 @@ func ExampleRedshift_ModifySnapshotCopyRetentionPeriod() { } func ExampleRedshift_PurchaseReservedNodeOffering() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1727,11 +1507,7 @@ func ExampleRedshift_PurchaseReservedNodeOffering() { } func ExampleRedshift_RebootCluster() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1752,11 +1528,7 @@ func ExampleRedshift_RebootCluster() { } func ExampleRedshift_ResetClusterParameterGroup() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1792,11 +1564,7 @@ func ExampleRedshift_ResetClusterParameterGroup() { } func ExampleRedshift_RestoreFromClusterSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1847,11 +1615,7 @@ func ExampleRedshift_RestoreFromClusterSnapshot() { } func ExampleRedshift_RestoreTableFromClusterSnapshot() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1879,11 +1643,7 @@ func ExampleRedshift_RestoreTableFromClusterSnapshot() { } func ExampleRedshift_RevokeClusterSecurityGroupIngress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1907,11 +1667,7 @@ func ExampleRedshift_RevokeClusterSecurityGroupIngress() { } func ExampleRedshift_RevokeSnapshotAccess() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) @@ -1934,11 +1690,7 @@ func ExampleRedshift_RevokeSnapshotAccess() { } func ExampleRedshift_RotateEncryptionKey() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := redshift.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/redshift/redshiftiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/redshift/redshiftiface/interface.go index c8998a9e0..87510d8fa 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/redshift/redshiftiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/redshift/redshiftiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockRedshiftClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/redshift/service.go b/vendor/github.com/aws/aws-sdk-go/service/redshift/service.go index 71f914d26..904e408df 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/redshift/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/redshift/service.go @@ -31,12 +31,13 @@ import ( // If you are a first-time user of Amazon Redshift, we recommend that you begin // by reading the Amazon Redshift Getting Started Guide (http://docs.aws.amazon.com/redshift/latest/gsg/getting-started.html). // -// If you are a database developer, the Amazon Redshift Database Developer -// Guide (http://docs.aws.amazon.com/redshift/latest/dg/welcome.html) explains -// how to design, build, query, and maintain the databases that make up your -// data warehouse. -//The service client's operations are safe to be used concurrently. +// If you are a database developer, the Amazon Redshift Database Developer Guide +// (http://docs.aws.amazon.com/redshift/latest/dg/welcome.html) explains how +// to design, build, query, and maintain the databases that make up your data +// warehouse. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01 type Redshift struct { *client.Client } @@ -47,8 +48,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "redshift" +// Service information constants +const ( + ServiceName = "redshift" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the Redshift client with a session. // If additional configuration is needed for the client instance use the optional @@ -61,17 +65,18 @@ const ServiceName = "redshift" // // Create a Redshift client with additional configuration // svc := redshift.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Redshift { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *Redshift { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Redshift { svc := &Redshift{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2012-12-01", diff --git a/vendor/github.com/aws/aws-sdk-go/service/rekognition/api.go b/vendor/github.com/aws/aws-sdk-go/service/rekognition/api.go new file mode 100644 index 000000000..c48ffb54e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/rekognition/api.go @@ -0,0 +1,3564 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package rekognition provides a client for Amazon Rekognition. +package rekognition + +import ( + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opCompareFaces = "CompareFaces" + +// CompareFacesRequest generates a "aws/request.Request" representing the +// client's request for the CompareFaces operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CompareFaces for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CompareFaces method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CompareFacesRequest method. +// req, resp := client.CompareFacesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Rekognition) CompareFacesRequest(input *CompareFacesInput) (req *request.Request, output *CompareFacesOutput) { + op := &request.Operation{ + Name: opCompareFaces, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CompareFacesInput{} + } + + output = &CompareFacesOutput{} + req = c.newRequest(op, input, output) + return +} + +// CompareFaces API operation for Amazon Rekognition. +// +// Compares a face in the source input image with each face detected in the +// target input image. +// +// If the source image contains multiple faces, the service detects the largest +// face and uses it to compare with each face detected in the target image. +// +// In response, the operation returns an array of face matches ordered by similarity +// score with the highest similarity scores first. For each face match, the +// response provides a bounding box of the face and confidence value (indicating +// the level of confidence that the bounding box contains a face). The response +// also provides a similarity score, which indicates how closely the faces match. +// +// By default, only faces with the similarity score of greater than or equal +// to 80% are returned in the response. You can change this value. +// +// In addition to the face matches, the response returns information about the +// face in the source image, including the bounding box of the face and confidence +// value. +// +// This is a stateless API operation. That is, the operation does not persist +// any data. +// +// For an example, see get-started-exercise-compare-faces +// +// This operation requires permissions to perform the rekognition:CompareFaces +// action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Rekognition's +// API operation CompareFaces for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// Amazon Rekognition is unable to access the S3 object specified in the request. +// +// * ErrCodeImageTooLargeException "ImageTooLargeException" +// The input image size exceeds the allowed limit. For more information, see +// limits. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You are not authorized to perform the action. +// +// * ErrCodeInternalServerError "InternalServerError" +// Amazon Rekognition experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. +// +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Rekognition. +// +// * ErrCodeInvalidImageFormatException "InvalidImageFormatException" +// The provided image format is not supported. +// +func (c *Rekognition) CompareFaces(input *CompareFacesInput) (*CompareFacesOutput, error) { + req, out := c.CompareFacesRequest(input) + err := req.Send() + return out, err +} + +const opCreateCollection = "CreateCollection" + +// CreateCollectionRequest generates a "aws/request.Request" representing the +// client's request for the CreateCollection operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateCollection for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateCollection method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateCollectionRequest method. +// req, resp := client.CreateCollectionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Rekognition) CreateCollectionRequest(input *CreateCollectionInput) (req *request.Request, output *CreateCollectionOutput) { + op := &request.Operation{ + Name: opCreateCollection, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateCollectionInput{} + } + + output = &CreateCollectionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateCollection API operation for Amazon Rekognition. +// +// Creates a collection in an AWS Region. You can add faces to the collection +// using the operation. +// +// For example, you might create collections, one for each of your application +// users. A user can then index faces using the IndexFaces operation and persist +// results in a specific collection. Then, a user can search the collection +// for faces in the user-specific container. +// +// For an example, see example1. +// +// This operation requires permissions to perform the rekognition:CreateCollection +// action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Rekognition's +// API operation CreateCollection for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You are not authorized to perform the action. +// +// * ErrCodeInternalServerError "InternalServerError" +// Amazon Rekognition experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. +// +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Rekognition. +// +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// A collection with the specified ID already exists. +// +func (c *Rekognition) CreateCollection(input *CreateCollectionInput) (*CreateCollectionOutput, error) { + req, out := c.CreateCollectionRequest(input) + err := req.Send() + return out, err +} + +const opDeleteCollection = "DeleteCollection" + +// DeleteCollectionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteCollection operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteCollection for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteCollection method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteCollectionRequest method. +// req, resp := client.DeleteCollectionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Rekognition) DeleteCollectionRequest(input *DeleteCollectionInput) (req *request.Request, output *DeleteCollectionOutput) { + op := &request.Operation{ + Name: opDeleteCollection, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteCollectionInput{} + } + + output = &DeleteCollectionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteCollection API operation for Amazon Rekognition. +// +// Deletes the specified collection. Note that this operation removes all faces +// in the collection. For an example, see example1. +// +// This operation requires permissions to perform the rekognition:DeleteCollection +// action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Rekognition's +// API operation DeleteCollection for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You are not authorized to perform the action. +// +// * ErrCodeInternalServerError "InternalServerError" +// Amazon Rekognition experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. +// +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Rekognition. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Collection specified in the request is not found. +// +func (c *Rekognition) DeleteCollection(input *DeleteCollectionInput) (*DeleteCollectionOutput, error) { + req, out := c.DeleteCollectionRequest(input) + err := req.Send() + return out, err +} + +const opDeleteFaces = "DeleteFaces" + +// DeleteFacesRequest generates a "aws/request.Request" representing the +// client's request for the DeleteFaces operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteFaces for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteFaces method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteFacesRequest method. +// req, resp := client.DeleteFacesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Rekognition) DeleteFacesRequest(input *DeleteFacesInput) (req *request.Request, output *DeleteFacesOutput) { + op := &request.Operation{ + Name: opDeleteFaces, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteFacesInput{} + } + + output = &DeleteFacesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteFaces API operation for Amazon Rekognition. +// +// Deletes faces from a collection. You specify a collection ID and an array +// of face IDs to remove from the collection. +// +// This operation requires permissions to perform the rekognition:DeleteFaces +// action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Rekognition's +// API operation DeleteFaces for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You are not authorized to perform the action. +// +// * ErrCodeInternalServerError "InternalServerError" +// Amazon Rekognition experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. +// +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Rekognition. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Collection specified in the request is not found. +// +func (c *Rekognition) DeleteFaces(input *DeleteFacesInput) (*DeleteFacesOutput, error) { + req, out := c.DeleteFacesRequest(input) + err := req.Send() + return out, err +} + +const opDetectFaces = "DetectFaces" + +// DetectFacesRequest generates a "aws/request.Request" representing the +// client's request for the DetectFaces operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DetectFaces for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DetectFaces method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DetectFacesRequest method. +// req, resp := client.DetectFacesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Rekognition) DetectFacesRequest(input *DetectFacesInput) (req *request.Request, output *DetectFacesOutput) { + op := &request.Operation{ + Name: opDetectFaces, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DetectFacesInput{} + } + + output = &DetectFacesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DetectFaces API operation for Amazon Rekognition. +// +// Detects faces within an image (JPEG or PNG) that is provided as input. +// +// For each face detected, the operation returns face details including a bounding +// box of the face, a confidence value (that the bounding box contains a face), +// and a fixed set of attributes such as facial landmarks (for example, coordinates +// of eye and mouth), gender, presence of beard, sunglasses, etc. +// +// The face-detection algorithm is most effective on frontal faces. For non-frontal +// or obscured faces, the algorithm may not detect the faces or might detect +// faces with lower confidence. +// +// This is a stateless API operation. That is, the operation does not persist +// any data. +// +// For an example, see get-started-exercise-detect-faces. +// +// This operation requires permissions to perform the rekognition:DetectFaces +// action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Rekognition's +// API operation DetectFaces for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// Amazon Rekognition is unable to access the S3 object specified in the request. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * ErrCodeImageTooLargeException "ImageTooLargeException" +// The input image size exceeds the allowed limit. For more information, see +// limits. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You are not authorized to perform the action. +// +// * ErrCodeInternalServerError "InternalServerError" +// Amazon Rekognition experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. +// +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Rekognition. +// +// * ErrCodeInvalidImageFormatException "InvalidImageFormatException" +// The provided image format is not supported. +// +func (c *Rekognition) DetectFaces(input *DetectFacesInput) (*DetectFacesOutput, error) { + req, out := c.DetectFacesRequest(input) + err := req.Send() + return out, err +} + +const opDetectLabels = "DetectLabels" + +// DetectLabelsRequest generates a "aws/request.Request" representing the +// client's request for the DetectLabels operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DetectLabels for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DetectLabels method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DetectLabelsRequest method. +// req, resp := client.DetectLabelsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Rekognition) DetectLabelsRequest(input *DetectLabelsInput) (req *request.Request, output *DetectLabelsOutput) { + op := &request.Operation{ + Name: opDetectLabels, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DetectLabelsInput{} + } + + output = &DetectLabelsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DetectLabels API operation for Amazon Rekognition. +// +// Detects instances of real-world labels within an image (JPEG or PNG) provided +// as input. This includes objects like flower, tree, and table; events like +// wedding, graduation, and birthday party; and concepts like landscape, evening, +// and nature. For an example, see get-started-exercise-detect-labels. +// +// For each object, scene, and concept the API returns one or more labels. Each +// label provides the object name, and the level of confidence that the image +// contains the object. For example, suppose the input image has a lighthouse, +// the sea, and a rock. The response will include all three labels, one for +// each object. +// +// {Name: lighthouse, Confidence: 98.4629} +// +// {Name: rock,Confidence: 79.2097} +// +// {Name: sea,Confidence: 75.061} +// +// In the preceding example, the operation returns one label for each of the +// three objects. The operation can also return multiple labels for the same +// object in the image. For example, if the input image shows a flower (for +// example, a tulip), the operation might return the following three labels. +// +// {Name: flower,Confidence: 99.0562} +// +// {Name: plant,Confidence: 99.0562} +// +// {Name: tulip,Confidence: 99.0562} +// +// In this example, the detection algorithm more precisely identifies the flower +// as a tulip. +// +// You can provide the input image as an S3 object or as base64-encoded bytes. +// In response, the API returns an array of labels. In addition, the response +// also includes the orientation correction. Optionally, you can specify MinConfidence +// to control the confidence threshold for the labels returned. The default +// is 50%. You can also add the MaxLabels parameter to limit the number of labels +// returned. +// +// If the object detected is a person, the operation doesn't provide the same +// facial details that the DetectFaces operation provides. +// +// This is a stateless API operation. That is, the operation does not persist +// any data. +// +// This operation requires permissions to perform the rekognition:DetectLabels +// action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Rekognition's +// API operation DetectLabels for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// Amazon Rekognition is unable to access the S3 object specified in the request. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * ErrCodeImageTooLargeException "ImageTooLargeException" +// The input image size exceeds the allowed limit. For more information, see +// limits. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You are not authorized to perform the action. +// +// * ErrCodeInternalServerError "InternalServerError" +// Amazon Rekognition experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. +// +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Rekognition. +// +// * ErrCodeInvalidImageFormatException "InvalidImageFormatException" +// The provided image format is not supported. +// +func (c *Rekognition) DetectLabels(input *DetectLabelsInput) (*DetectLabelsOutput, error) { + req, out := c.DetectLabelsRequest(input) + err := req.Send() + return out, err +} + +const opIndexFaces = "IndexFaces" + +// IndexFacesRequest generates a "aws/request.Request" representing the +// client's request for the IndexFaces operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See IndexFaces for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the IndexFaces method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the IndexFacesRequest method. +// req, resp := client.IndexFacesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Rekognition) IndexFacesRequest(input *IndexFacesInput) (req *request.Request, output *IndexFacesOutput) { + op := &request.Operation{ + Name: opIndexFaces, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &IndexFacesInput{} + } + + output = &IndexFacesOutput{} + req = c.newRequest(op, input, output) + return +} + +// IndexFaces API operation for Amazon Rekognition. +// +// Detects faces in the input image and adds them to the specified collection. +// +// Amazon Rekognition does not save the actual faces detected. Instead, the +// underlying detection algorithm first detects the faces in the input image, +// and for each face extracts facial features into a feature vector, and stores +// it in the back-end database. Amazon Rekognition uses feature vectors when +// performing face match and search operations using the and operations. +// +// If you provide the optional externalImageID for the input image you provided, +// Amazon Rekognition associates this ID with all faces that it detects. When +// you call the operation, the response returns the external ID. You can use +// this external image ID to create a client-side index to associate the faces +// with each image. You can then use the index to find all faces in an image. +// +// In response, the operation returns an array of metadata for all detected +// faces. This includes, the bounding box of the detected face, confidence value +// (indicating the bounding box contains a face), a face ID assigned by the +// service for each face that is detected and stored, and an image ID assigned +// by the service for the input image If you request all facial attributes (using +// the detectionAttributes parameter, Amazon Rekognition returns detailed facial +// attributes such as facial landmarks (for example, location of eye and mount) +// and other facial attributes such gender. If you provide the same image, specify +// the same collection, and use the same external ID in the IndexFaces operation, +// Amazon Rekognition doesn't save duplicate face metadata. +// +// For an example, see example2. +// +// This operation requires permissions to perform the rekognition:IndexFaces +// action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Rekognition's +// API operation IndexFaces for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// Amazon Rekognition is unable to access the S3 object specified in the request. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * ErrCodeImageTooLargeException "ImageTooLargeException" +// The input image size exceeds the allowed limit. For more information, see +// limits. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You are not authorized to perform the action. +// +// * ErrCodeInternalServerError "InternalServerError" +// Amazon Rekognition experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. +// +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Rekognition. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Collection specified in the request is not found. +// +// * ErrCodeInvalidImageFormatException "InvalidImageFormatException" +// The provided image format is not supported. +// +func (c *Rekognition) IndexFaces(input *IndexFacesInput) (*IndexFacesOutput, error) { + req, out := c.IndexFacesRequest(input) + err := req.Send() + return out, err +} + +const opListCollections = "ListCollections" + +// ListCollectionsRequest generates a "aws/request.Request" representing the +// client's request for the ListCollections operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListCollections for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListCollections method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListCollectionsRequest method. +// req, resp := client.ListCollectionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Rekognition) ListCollectionsRequest(input *ListCollectionsInput) (req *request.Request, output *ListCollectionsOutput) { + op := &request.Operation{ + Name: opListCollections, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListCollectionsInput{} + } + + output = &ListCollectionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListCollections API operation for Amazon Rekognition. +// +// Returns list of collection IDs in your account. If the result is truncated, +// the response also provides a NextToken that you can use in the subsequent +// request to fetch the next set of collection IDs. +// +// For an example, see example1. +// +// This operation requires permissions to perform the rekognition:ListCollections +// action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Rekognition's +// API operation ListCollections for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You are not authorized to perform the action. +// +// * ErrCodeInternalServerError "InternalServerError" +// Amazon Rekognition experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. +// +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Rekognition. +// +// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// Pagination token in the request is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Collection specified in the request is not found. +// +func (c *Rekognition) ListCollections(input *ListCollectionsInput) (*ListCollectionsOutput, error) { + req, out := c.ListCollectionsRequest(input) + err := req.Send() + return out, err +} + +// ListCollectionsPages iterates over the pages of a ListCollections operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListCollections method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListCollections operation. +// pageNum := 0 +// err := client.ListCollectionsPages(params, +// func(page *ListCollectionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Rekognition) ListCollectionsPages(input *ListCollectionsInput, fn func(p *ListCollectionsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListCollectionsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListCollectionsOutput), lastPage) + }) +} + +const opListFaces = "ListFaces" + +// ListFacesRequest generates a "aws/request.Request" representing the +// client's request for the ListFaces operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListFaces for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListFaces method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListFacesRequest method. +// req, resp := client.ListFacesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Rekognition) ListFacesRequest(input *ListFacesInput) (req *request.Request, output *ListFacesOutput) { + op := &request.Operation{ + Name: opListFaces, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListFacesInput{} + } + + output = &ListFacesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListFaces API operation for Amazon Rekognition. +// +// Returns metadata for faces in the specified collection. This metadata includes +// information such as the bounding box coordinates, the confidence (that the +// bounding box contains a face), and face ID. For an example, see example3. +// +// This operation requires permissions to perform the rekognition:ListFaces +// action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Rekognition's +// API operation ListFaces for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You are not authorized to perform the action. +// +// * ErrCodeInternalServerError "InternalServerError" +// Amazon Rekognition experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. +// +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Rekognition. +// +// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// Pagination token in the request is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Collection specified in the request is not found. +// +func (c *Rekognition) ListFaces(input *ListFacesInput) (*ListFacesOutput, error) { + req, out := c.ListFacesRequest(input) + err := req.Send() + return out, err +} + +// ListFacesPages iterates over the pages of a ListFaces operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListFaces method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListFaces operation. +// pageNum := 0 +// err := client.ListFacesPages(params, +// func(page *ListFacesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Rekognition) ListFacesPages(input *ListFacesInput, fn func(p *ListFacesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListFacesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListFacesOutput), lastPage) + }) +} + +const opSearchFaces = "SearchFaces" + +// SearchFacesRequest generates a "aws/request.Request" representing the +// client's request for the SearchFaces operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See SearchFaces for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the SearchFaces method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the SearchFacesRequest method. +// req, resp := client.SearchFacesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Rekognition) SearchFacesRequest(input *SearchFacesInput) (req *request.Request, output *SearchFacesOutput) { + op := &request.Operation{ + Name: opSearchFaces, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &SearchFacesInput{} + } + + output = &SearchFacesOutput{} + req = c.newRequest(op, input, output) + return +} + +// SearchFaces API operation for Amazon Rekognition. +// +// For a given input face ID, searches for matching faces in the collection +// the face belongs to. You get a face ID when you add a face to the collection +// using the IndexFaces operation. The operation compares the features of the +// input face with faces in the specified collection. +// +// You can also search faces without indexing faces by using the SearchFacesByImage +// operation. +// +// The operation response returns an array of faces that match, ordered by similarity +// score with the highest similarity first. More specifically, it is an array +// of metadata for each face match that is found. Along with the metadata, the +// response also includes a confidence value for each face match, indicating +// the confidence that the specific face matches the input face. +// +// For an example, see example3. +// +// This operation requires permissions to perform the rekognition:SearchFaces +// action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Rekognition's +// API operation SearchFaces for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You are not authorized to perform the action. +// +// * ErrCodeInternalServerError "InternalServerError" +// Amazon Rekognition experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. +// +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Rekognition. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Collection specified in the request is not found. +// +func (c *Rekognition) SearchFaces(input *SearchFacesInput) (*SearchFacesOutput, error) { + req, out := c.SearchFacesRequest(input) + err := req.Send() + return out, err +} + +const opSearchFacesByImage = "SearchFacesByImage" + +// SearchFacesByImageRequest generates a "aws/request.Request" representing the +// client's request for the SearchFacesByImage operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See SearchFacesByImage for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the SearchFacesByImage method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the SearchFacesByImageRequest method. +// req, resp := client.SearchFacesByImageRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Rekognition) SearchFacesByImageRequest(input *SearchFacesByImageInput) (req *request.Request, output *SearchFacesByImageOutput) { + op := &request.Operation{ + Name: opSearchFacesByImage, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &SearchFacesByImageInput{} + } + + output = &SearchFacesByImageOutput{} + req = c.newRequest(op, input, output) + return +} + +// SearchFacesByImage API operation for Amazon Rekognition. +// +// For a given input image, first detects the largest face in the image, and +// then searches the specified collection for matching faces. The operation +// compares the features of the input face with faces in the specified collection. +// +// To search for all faces in an input image, you might first call the operation, +// and then use the face IDs returned in subsequent calls to the operation. +// +// You can also call the DetectFaces operation and use the bounding boxes in +// the response to make face crops, which then you can pass in to the SearchFacesByImage +// operation. +// +// The response returns an array of faces that match, ordered by similarity +// score with the highest similarity first. More specifically, it is an array +// of metadata for each face match found. Along with the metadata, the response +// also includes a similarity indicating how similar the face is to the input +// face. In the response, the operation also returns the bounding box (and a +// confidence level that the bounding box contains a face) of the face that +// Amazon Rekognition used for the input image. +// +// For an example, see example3. +// +// This operation requires permissions to perform the rekognition:SearchFacesByImage +// action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Rekognition's +// API operation SearchFacesByImage for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// Amazon Rekognition is unable to access the S3 object specified in the request. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * ErrCodeImageTooLargeException "ImageTooLargeException" +// The input image size exceeds the allowed limit. For more information, see +// limits. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You are not authorized to perform the action. +// +// * ErrCodeInternalServerError "InternalServerError" +// Amazon Rekognition experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. +// +// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Rekognition. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Collection specified in the request is not found. +// +// * ErrCodeInvalidImageFormatException "InvalidImageFormatException" +// The provided image format is not supported. +// +func (c *Rekognition) SearchFacesByImage(input *SearchFacesByImageInput) (*SearchFacesByImageOutput, error) { + req, out := c.SearchFacesByImageRequest(input) + err := req.Send() + return out, err +} + +// Structure containing the estimated age range, in years, for a face. +// +// Rekognition estimates an age-range for faces detected in the input image. +// Estimated age ranges can overlap; a face of a 5 year old may have an estimated +// range of 4-6 whilst the face of a 6 year old may have an estimated range +// of 4-8. +type AgeRange struct { + _ struct{} `type:"structure"` + + // The highest estimated age. + High *int64 `type:"integer"` + + // The lowest estimated age. + Low *int64 `type:"integer"` +} + +// String returns the string representation +func (s AgeRange) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AgeRange) GoString() string { + return s.String() +} + +// SetHigh sets the High field's value. +func (s *AgeRange) SetHigh(v int64) *AgeRange { + s.High = &v + return s +} + +// SetLow sets the Low field's value. +func (s *AgeRange) SetLow(v int64) *AgeRange { + s.Low = &v + return s +} + +// Indicates whether or not the face has a beard, and the confidence level in +// the determination. +type Beard struct { + _ struct{} `type:"structure"` + + // Level of confidence in the determination. + Confidence *float64 `type:"float"` + + // Boolean value that indicates whether the face has beard or not. + Value *bool `type:"boolean"` +} + +// String returns the string representation +func (s Beard) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Beard) GoString() string { + return s.String() +} + +// SetConfidence sets the Confidence field's value. +func (s *Beard) SetConfidence(v float64) *Beard { + s.Confidence = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Beard) SetValue(v bool) *Beard { + s.Value = &v + return s +} + +// Identifies the bounding box around the object or face. The left (x-coordinate) +// and top (y-coordinate) are coordinates representing the top and left sides +// of the bounding box. Note that the upper-left corner of the image is the +// origin (0,0). +// +// The top and left values returned are ratios of the overall image size. For +// example, if the input image is 700x200 pixels, and the top-left coordinate +// of the bounding box is 350x50 pixels, the API returns a left value of 0.5 +// (350/700) and a top value of 0.25 (50/200). +// +// The width and height values represent the dimensions of the bounding box +// as a ratio of the overall image dimension. For example, if the input image +// is 700x200 pixels, and the bounding box width is 70 pixels, the width returned +// is 0.1. +// +// The bounding box coordinates can have negative values. For example, if Amazon +// Rekognition is able to detect a face that is at the image edge and is only +// partially visible, the service can return coordinates that are outside the +// image bounds and, depending on the image edge, you might get negative values +// or values greater than 1 for the left or top values. +type BoundingBox struct { + _ struct{} `type:"structure"` + + // Height of the bounding box as a ratio of the overall image height. + Height *float64 `type:"float"` + + // Left coordinate of the bounding box as a ratio of overall image width. + Left *float64 `type:"float"` + + // Top coordinate of the bounding box as a ratio of overall image height. + Top *float64 `type:"float"` + + // Width of the bounding box as a ratio of the overall image width. + Width *float64 `type:"float"` +} + +// String returns the string representation +func (s BoundingBox) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BoundingBox) GoString() string { + return s.String() +} + +// SetHeight sets the Height field's value. +func (s *BoundingBox) SetHeight(v float64) *BoundingBox { + s.Height = &v + return s +} + +// SetLeft sets the Left field's value. +func (s *BoundingBox) SetLeft(v float64) *BoundingBox { + s.Left = &v + return s +} + +// SetTop sets the Top field's value. +func (s *BoundingBox) SetTop(v float64) *BoundingBox { + s.Top = &v + return s +} + +// SetWidth sets the Width field's value. +func (s *BoundingBox) SetWidth(v float64) *BoundingBox { + s.Width = &v + return s +} + +type CompareFacesInput struct { + _ struct{} `type:"structure"` + + // The minimum level of confidence in the match you want included in the result. + SimilarityThreshold *float64 `type:"float"` + + // Source image either as bytes or an S3 object + // + // SourceImage is a required field + SourceImage *Image `type:"structure" required:"true"` + + // Target image either as bytes or an S3 object + // + // TargetImage is a required field + TargetImage *Image `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CompareFacesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CompareFacesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CompareFacesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CompareFacesInput"} + if s.SourceImage == nil { + invalidParams.Add(request.NewErrParamRequired("SourceImage")) + } + if s.TargetImage == nil { + invalidParams.Add(request.NewErrParamRequired("TargetImage")) + } + if s.SourceImage != nil { + if err := s.SourceImage.Validate(); err != nil { + invalidParams.AddNested("SourceImage", err.(request.ErrInvalidParams)) + } + } + if s.TargetImage != nil { + if err := s.TargetImage.Validate(); err != nil { + invalidParams.AddNested("TargetImage", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSimilarityThreshold sets the SimilarityThreshold field's value. +func (s *CompareFacesInput) SetSimilarityThreshold(v float64) *CompareFacesInput { + s.SimilarityThreshold = &v + return s +} + +// SetSourceImage sets the SourceImage field's value. +func (s *CompareFacesInput) SetSourceImage(v *Image) *CompareFacesInput { + s.SourceImage = v + return s +} + +// SetTargetImage sets the TargetImage field's value. +func (s *CompareFacesInput) SetTargetImage(v *Image) *CompareFacesInput { + s.TargetImage = v + return s +} + +// For the provided the bounding box, confidence level that the bounding box +// actually contains a face, and the similarity between the face in the bounding +// box and the face in the source image. +type CompareFacesMatch struct { + _ struct{} `type:"structure"` + + // Provides face metadata (bounding box and confidence that the bounding box + // actually contains a face). + Face *ComparedFace `type:"structure"` + + // Level of confidence that the faces match. + Similarity *float64 `type:"float"` +} + +// String returns the string representation +func (s CompareFacesMatch) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CompareFacesMatch) GoString() string { + return s.String() +} + +// SetFace sets the Face field's value. +func (s *CompareFacesMatch) SetFace(v *ComparedFace) *CompareFacesMatch { + s.Face = v + return s +} + +// SetSimilarity sets the Similarity field's value. +func (s *CompareFacesMatch) SetSimilarity(v float64) *CompareFacesMatch { + s.Similarity = &v + return s +} + +type CompareFacesOutput struct { + _ struct{} `type:"structure"` + + // Provides an array of CompareFacesMatch objects. Each object provides the + // bounding box, confidence that the bounding box contains a face, and the similarity + // between the face in the bounding box and the face in the source image. + FaceMatches []*CompareFacesMatch `type:"list"` + + // The face from the source image that was used for comparison. + SourceImageFace *ComparedSourceImageFace `type:"structure"` +} + +// String returns the string representation +func (s CompareFacesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CompareFacesOutput) GoString() string { + return s.String() +} + +// SetFaceMatches sets the FaceMatches field's value. +func (s *CompareFacesOutput) SetFaceMatches(v []*CompareFacesMatch) *CompareFacesOutput { + s.FaceMatches = v + return s +} + +// SetSourceImageFace sets the SourceImageFace field's value. +func (s *CompareFacesOutput) SetSourceImageFace(v *ComparedSourceImageFace) *CompareFacesOutput { + s.SourceImageFace = v + return s +} + +// Provides face metadata (bounding box and confidence that the bounding box +// actually contains a face). +type ComparedFace struct { + _ struct{} `type:"structure"` + + // Identifies the bounding box around the object or face. The left (x-coordinate) + // and top (y-coordinate) are coordinates representing the top and left sides + // of the bounding box. Note that the upper-left corner of the image is the + // origin (0,0). + // + // The top and left values returned are ratios of the overall image size. For + // example, if the input image is 700x200 pixels, and the top-left coordinate + // of the bounding box is 350x50 pixels, the API returns a left value of 0.5 + // (350/700) and a top value of 0.25 (50/200). + // + // The width and height values represent the dimensions of the bounding box + // as a ratio of the overall image dimension. For example, if the input image + // is 700x200 pixels, and the bounding box width is 70 pixels, the width returned + // is 0.1. + // + // The bounding box coordinates can have negative values. For example, if Amazon + // Rekognition is able to detect a face that is at the image edge and is only + // partially visible, the service can return coordinates that are outside the + // image bounds and, depending on the image edge, you might get negative values + // or values greater than 1 for the left or top values. + BoundingBox *BoundingBox `type:"structure"` + + // Level of confidence that what the bounding box contains is a face. + Confidence *float64 `type:"float"` +} + +// String returns the string representation +func (s ComparedFace) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ComparedFace) GoString() string { + return s.String() +} + +// SetBoundingBox sets the BoundingBox field's value. +func (s *ComparedFace) SetBoundingBox(v *BoundingBox) *ComparedFace { + s.BoundingBox = v + return s +} + +// SetConfidence sets the Confidence field's value. +func (s *ComparedFace) SetConfidence(v float64) *ComparedFace { + s.Confidence = &v + return s +} + +// Type that describes the face Amazon Rekognition chose to compare with the +// faces in the target. This contains a bounding box for the selected face and +// confidence level that the bounding box contains a face. Note that Amazon +// Rekognition selects the largest face in the source image for this comparison. +type ComparedSourceImageFace struct { + _ struct{} `type:"structure"` + + // Identifies the bounding box around the object or face. The left (x-coordinate) + // and top (y-coordinate) are coordinates representing the top and left sides + // of the bounding box. Note that the upper-left corner of the image is the + // origin (0,0). + // + // The top and left values returned are ratios of the overall image size. For + // example, if the input image is 700x200 pixels, and the top-left coordinate + // of the bounding box is 350x50 pixels, the API returns a left value of 0.5 + // (350/700) and a top value of 0.25 (50/200). + // + // The width and height values represent the dimensions of the bounding box + // as a ratio of the overall image dimension. For example, if the input image + // is 700x200 pixels, and the bounding box width is 70 pixels, the width returned + // is 0.1. + // + // The bounding box coordinates can have negative values. For example, if Amazon + // Rekognition is able to detect a face that is at the image edge and is only + // partially visible, the service can return coordinates that are outside the + // image bounds and, depending on the image edge, you might get negative values + // or values greater than 1 for the left or top values. + BoundingBox *BoundingBox `type:"structure"` + + // Confidence level that the selected bounding box contains a face. + Confidence *float64 `type:"float"` +} + +// String returns the string representation +func (s ComparedSourceImageFace) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ComparedSourceImageFace) GoString() string { + return s.String() +} + +// SetBoundingBox sets the BoundingBox field's value. +func (s *ComparedSourceImageFace) SetBoundingBox(v *BoundingBox) *ComparedSourceImageFace { + s.BoundingBox = v + return s +} + +// SetConfidence sets the Confidence field's value. +func (s *ComparedSourceImageFace) SetConfidence(v float64) *ComparedSourceImageFace { + s.Confidence = &v + return s +} + +type CreateCollectionInput struct { + _ struct{} `type:"structure"` + + // ID for the collection that you are creating. + // + // CollectionId is a required field + CollectionId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateCollectionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateCollectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateCollectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateCollectionInput"} + if s.CollectionId == nil { + invalidParams.Add(request.NewErrParamRequired("CollectionId")) + } + if s.CollectionId != nil && len(*s.CollectionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CollectionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCollectionId sets the CollectionId field's value. +func (s *CreateCollectionInput) SetCollectionId(v string) *CreateCollectionInput { + s.CollectionId = &v + return s +} + +type CreateCollectionOutput struct { + _ struct{} `type:"structure"` + + // Amazon Resource Name (ARN) of the collection. You can use this to manage + // permissions on your resources. + CollectionArn *string `type:"string"` + + // HTTP status code indicating the result of the operation. + StatusCode *int64 `type:"integer"` +} + +// String returns the string representation +func (s CreateCollectionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateCollectionOutput) GoString() string { + return s.String() +} + +// SetCollectionArn sets the CollectionArn field's value. +func (s *CreateCollectionOutput) SetCollectionArn(v string) *CreateCollectionOutput { + s.CollectionArn = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *CreateCollectionOutput) SetStatusCode(v int64) *CreateCollectionOutput { + s.StatusCode = &v + return s +} + +type DeleteCollectionInput struct { + _ struct{} `type:"structure"` + + // ID of the collection to delete. + // + // CollectionId is a required field + CollectionId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteCollectionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteCollectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteCollectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteCollectionInput"} + if s.CollectionId == nil { + invalidParams.Add(request.NewErrParamRequired("CollectionId")) + } + if s.CollectionId != nil && len(*s.CollectionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CollectionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCollectionId sets the CollectionId field's value. +func (s *DeleteCollectionInput) SetCollectionId(v string) *DeleteCollectionInput { + s.CollectionId = &v + return s +} + +type DeleteCollectionOutput struct { + _ struct{} `type:"structure"` + + // HTTP status code that indicates the result of the operation. + StatusCode *int64 `type:"integer"` +} + +// String returns the string representation +func (s DeleteCollectionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteCollectionOutput) GoString() string { + return s.String() +} + +// SetStatusCode sets the StatusCode field's value. +func (s *DeleteCollectionOutput) SetStatusCode(v int64) *DeleteCollectionOutput { + s.StatusCode = &v + return s +} + +type DeleteFacesInput struct { + _ struct{} `type:"structure"` + + // Collection from which to remove the specific faces. + // + // CollectionId is a required field + CollectionId *string `min:"1" type:"string" required:"true"` + + // An array of face IDs to delete. + // + // FaceIds is a required field + FaceIds []*string `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s DeleteFacesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFacesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteFacesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFacesInput"} + if s.CollectionId == nil { + invalidParams.Add(request.NewErrParamRequired("CollectionId")) + } + if s.CollectionId != nil && len(*s.CollectionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CollectionId", 1)) + } + if s.FaceIds == nil { + invalidParams.Add(request.NewErrParamRequired("FaceIds")) + } + if s.FaceIds != nil && len(s.FaceIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FaceIds", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCollectionId sets the CollectionId field's value. +func (s *DeleteFacesInput) SetCollectionId(v string) *DeleteFacesInput { + s.CollectionId = &v + return s +} + +// SetFaceIds sets the FaceIds field's value. +func (s *DeleteFacesInput) SetFaceIds(v []*string) *DeleteFacesInput { + s.FaceIds = v + return s +} + +type DeleteFacesOutput struct { + _ struct{} `type:"structure"` + + // An array of strings (face IDs) of the faces that were deleted. + DeletedFaces []*string `min:"1" type:"list"` +} + +// String returns the string representation +func (s DeleteFacesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFacesOutput) GoString() string { + return s.String() +} + +// SetDeletedFaces sets the DeletedFaces field's value. +func (s *DeleteFacesOutput) SetDeletedFaces(v []*string) *DeleteFacesOutput { + s.DeletedFaces = v + return s +} + +type DetectFacesInput struct { + _ struct{} `type:"structure"` + + // A list of facial attributes you would like to be returned. By default, the + // API returns subset of facial attributes. + // + // For example, you can specify the value as, ["ALL"] or ["DEFAULT"]. If you + // provide both, ["ALL", "DEFAULT"], the service uses a logical AND operator + // to determine which attributes to return (in this case, it is all attributes). + // If you specify all attributes, Amazon Rekognition performs additional detection. + Attributes []*string `type:"list"` + + // The image in which you want to detect faces. You can specify a blob or an + // S3 object. + // + // Image is a required field + Image *Image `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DetectFacesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetectFacesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DetectFacesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetectFacesInput"} + if s.Image == nil { + invalidParams.Add(request.NewErrParamRequired("Image")) + } + if s.Image != nil { + if err := s.Image.Validate(); err != nil { + invalidParams.AddNested("Image", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttributes sets the Attributes field's value. +func (s *DetectFacesInput) SetAttributes(v []*string) *DetectFacesInput { + s.Attributes = v + return s +} + +// SetImage sets the Image field's value. +func (s *DetectFacesInput) SetImage(v *Image) *DetectFacesInput { + s.Image = v + return s +} + +type DetectFacesOutput struct { + _ struct{} `type:"structure"` + + // Details of each face found in the image. + FaceDetails []*FaceDetail `type:"list"` + + // The algorithm detects the image orientation. If it detects that the image + // was rotated, it returns the degrees of rotation. If your application is displaying + // the image, you can use this value to adjust the orientation. + // + // For example, if the service detects that the input image was rotated by 90 + // degrees, it corrects orientation, performs face detection, and then returns + // the faces. That is, the bounding box coordinates in the response are based + // on the corrected orientation. + // + // If the source image Exif metadata populates the orientation field, Amazon + // Rekognition does not perform orientation correction and the value of OrientationCorrection + // will be nil. + OrientationCorrection *string `type:"string" enum:"OrientationCorrection"` +} + +// String returns the string representation +func (s DetectFacesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetectFacesOutput) GoString() string { + return s.String() +} + +// SetFaceDetails sets the FaceDetails field's value. +func (s *DetectFacesOutput) SetFaceDetails(v []*FaceDetail) *DetectFacesOutput { + s.FaceDetails = v + return s +} + +// SetOrientationCorrection sets the OrientationCorrection field's value. +func (s *DetectFacesOutput) SetOrientationCorrection(v string) *DetectFacesOutput { + s.OrientationCorrection = &v + return s +} + +type DetectLabelsInput struct { + _ struct{} `type:"structure"` + + // The input image. You can provide a blob of image bytes or an S3 object. + // + // Image is a required field + Image *Image `type:"structure" required:"true"` + + // Maximum number of labels you want the service to return in the response. + // The service returns the specified number of highest confidence labels. + MaxLabels *int64 `type:"integer"` + + // Specifies the minimum confidence level for the labels to return. Amazon Rekognition + // doesn't return any labels with confidence lower than this specified value. + // + // If minConfidence is not specified, the operation returns labels with a confidence + // values greater than or equal to 50 percent. + MinConfidence *float64 `type:"float"` +} + +// String returns the string representation +func (s DetectLabelsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetectLabelsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DetectLabelsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetectLabelsInput"} + if s.Image == nil { + invalidParams.Add(request.NewErrParamRequired("Image")) + } + if s.Image != nil { + if err := s.Image.Validate(); err != nil { + invalidParams.AddNested("Image", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetImage sets the Image field's value. +func (s *DetectLabelsInput) SetImage(v *Image) *DetectLabelsInput { + s.Image = v + return s +} + +// SetMaxLabels sets the MaxLabels field's value. +func (s *DetectLabelsInput) SetMaxLabels(v int64) *DetectLabelsInput { + s.MaxLabels = &v + return s +} + +// SetMinConfidence sets the MinConfidence field's value. +func (s *DetectLabelsInput) SetMinConfidence(v float64) *DetectLabelsInput { + s.MinConfidence = &v + return s +} + +type DetectLabelsOutput struct { + _ struct{} `type:"structure"` + + // An array of labels for the real-world objects detected. + Labels []*Label `type:"list"` + + // Amazon Rekognition returns the orientation of the input image that was detected + // (clockwise direction). If your application displays the image, you can use + // this value to correct the orientation. If Amazon Rekognition detects that + // the input image was rotated (for example, by 90 degrees), it first corrects + // the orientation before detecting the labels. + // + // If the source image Exif metadata populates the orientation field, Amazon + // Rekognition does not perform orientation correction and the value of OrientationCorrection + // will be nil. + OrientationCorrection *string `type:"string" enum:"OrientationCorrection"` +} + +// String returns the string representation +func (s DetectLabelsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetectLabelsOutput) GoString() string { + return s.String() +} + +// SetLabels sets the Labels field's value. +func (s *DetectLabelsOutput) SetLabels(v []*Label) *DetectLabelsOutput { + s.Labels = v + return s +} + +// SetOrientationCorrection sets the OrientationCorrection field's value. +func (s *DetectLabelsOutput) SetOrientationCorrection(v string) *DetectLabelsOutput { + s.OrientationCorrection = &v + return s +} + +// The emotions detected on the face, and the confidence level in the determination. +// For example, HAPPY, SAD, and ANGRY. +type Emotion struct { + _ struct{} `type:"structure"` + + // Level of confidence in the determination. + Confidence *float64 `type:"float"` + + // Type of emotion detected. + Type *string `type:"string" enum:"EmotionName"` +} + +// String returns the string representation +func (s Emotion) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Emotion) GoString() string { + return s.String() +} + +// SetConfidence sets the Confidence field's value. +func (s *Emotion) SetConfidence(v float64) *Emotion { + s.Confidence = &v + return s +} + +// SetType sets the Type field's value. +func (s *Emotion) SetType(v string) *Emotion { + s.Type = &v + return s +} + +// Indicates whether or not the eyes on the face are open, and the confidence +// level in the determination. +type EyeOpen struct { + _ struct{} `type:"structure"` + + // Level of confidence in the determination. + Confidence *float64 `type:"float"` + + // Boolean value that indicates whether the eyes on the face are open. + Value *bool `type:"boolean"` +} + +// String returns the string representation +func (s EyeOpen) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EyeOpen) GoString() string { + return s.String() +} + +// SetConfidence sets the Confidence field's value. +func (s *EyeOpen) SetConfidence(v float64) *EyeOpen { + s.Confidence = &v + return s +} + +// SetValue sets the Value field's value. +func (s *EyeOpen) SetValue(v bool) *EyeOpen { + s.Value = &v + return s +} + +// Indicates whether or not the face is wearing eye glasses, and the confidence +// level in the determination. +type Eyeglasses struct { + _ struct{} `type:"structure"` + + // Level of confidence in the determination. + Confidence *float64 `type:"float"` + + // Boolean value that indicates whether the face is wearing eye glasses or not. + Value *bool `type:"boolean"` +} + +// String returns the string representation +func (s Eyeglasses) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Eyeglasses) GoString() string { + return s.String() +} + +// SetConfidence sets the Confidence field's value. +func (s *Eyeglasses) SetConfidence(v float64) *Eyeglasses { + s.Confidence = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Eyeglasses) SetValue(v bool) *Eyeglasses { + s.Value = &v + return s +} + +// Describes the face properties such as the bounding box, face ID, image ID +// of the source image, and external image ID that you assigned. +type Face struct { + _ struct{} `type:"structure"` + + // Identifies the bounding box around the object or face. The left (x-coordinate) + // and top (y-coordinate) are coordinates representing the top and left sides + // of the bounding box. Note that the upper-left corner of the image is the + // origin (0,0). + // + // The top and left values returned are ratios of the overall image size. For + // example, if the input image is 700x200 pixels, and the top-left coordinate + // of the bounding box is 350x50 pixels, the API returns a left value of 0.5 + // (350/700) and a top value of 0.25 (50/200). + // + // The width and height values represent the dimensions of the bounding box + // as a ratio of the overall image dimension. For example, if the input image + // is 700x200 pixels, and the bounding box width is 70 pixels, the width returned + // is 0.1. + // + // The bounding box coordinates can have negative values. For example, if Amazon + // Rekognition is able to detect a face that is at the image edge and is only + // partially visible, the service can return coordinates that are outside the + // image bounds and, depending on the image edge, you might get negative values + // or values greater than 1 for the left or top values. + BoundingBox *BoundingBox `type:"structure"` + + // Confidence level that the bounding box contains a face (and not a different + // object such as a tree). + Confidence *float64 `type:"float"` + + // Identifier that you assign to all the faces in the input image. + ExternalImageId *string `min:"1" type:"string"` + + // Unique identifier that Amazon Rekognition assigns to the face. + FaceId *string `type:"string"` + + // Unique identifier that Amazon Rekognition assigns to the source image. + ImageId *string `type:"string"` +} + +// String returns the string representation +func (s Face) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Face) GoString() string { + return s.String() +} + +// SetBoundingBox sets the BoundingBox field's value. +func (s *Face) SetBoundingBox(v *BoundingBox) *Face { + s.BoundingBox = v + return s +} + +// SetConfidence sets the Confidence field's value. +func (s *Face) SetConfidence(v float64) *Face { + s.Confidence = &v + return s +} + +// SetExternalImageId sets the ExternalImageId field's value. +func (s *Face) SetExternalImageId(v string) *Face { + s.ExternalImageId = &v + return s +} + +// SetFaceId sets the FaceId field's value. +func (s *Face) SetFaceId(v string) *Face { + s.FaceId = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *Face) SetImageId(v string) *Face { + s.ImageId = &v + return s +} + +// Structure containing attributes of the face that the algorithm detected. +type FaceDetail struct { + _ struct{} `type:"structure"` + + // The estimated age range, in years, for the face. Low represents the lowest + // estimated age and High represents the highest estimated age. + AgeRange *AgeRange `type:"structure"` + + // Indicates whether or not the face has a beard, and the confidence level in + // the determination. + Beard *Beard `type:"structure"` + + // Bounding box of the face. + BoundingBox *BoundingBox `type:"structure"` + + // Confidence level that the bounding box contains a face (and not a different + // object such as a tree). + Confidence *float64 `type:"float"` + + // The emotions detected on the face, and the confidence level in the determination. + // For example, HAPPY, SAD, and ANGRY. + Emotions []*Emotion `type:"list"` + + // Indicates whether or not the face is wearing eye glasses, and the confidence + // level in the determination. + Eyeglasses *Eyeglasses `type:"structure"` + + // Indicates whether or not the eyes on the face are open, and the confidence + // level in the determination. + EyesOpen *EyeOpen `type:"structure"` + + // Gender of the face and the confidence level in the determination. + Gender *Gender `type:"structure"` + + // Indicates the location of the landmark on the face. + Landmarks []*Landmark `type:"list"` + + // Indicates whether or not the mouth on the face is open, and the confidence + // level in the determination. + MouthOpen *MouthOpen `type:"structure"` + + // Indicates whether or not the face has a mustache, and the confidence level + // in the determination. + Mustache *Mustache `type:"structure"` + + // Indicates the pose of the face as determined by pitch, roll, and the yaw. + Pose *Pose `type:"structure"` + + // Identifies image brightness and sharpness. + Quality *ImageQuality `type:"structure"` + + // Indicates whether or not the face is smiling, and the confidence level in + // the determination. + Smile *Smile `type:"structure"` + + // Indicates whether or not the face is wearing sunglasses, and the confidence + // level in the determination. + Sunglasses *Sunglasses `type:"structure"` +} + +// String returns the string representation +func (s FaceDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FaceDetail) GoString() string { + return s.String() +} + +// SetAgeRange sets the AgeRange field's value. +func (s *FaceDetail) SetAgeRange(v *AgeRange) *FaceDetail { + s.AgeRange = v + return s +} + +// SetBeard sets the Beard field's value. +func (s *FaceDetail) SetBeard(v *Beard) *FaceDetail { + s.Beard = v + return s +} + +// SetBoundingBox sets the BoundingBox field's value. +func (s *FaceDetail) SetBoundingBox(v *BoundingBox) *FaceDetail { + s.BoundingBox = v + return s +} + +// SetConfidence sets the Confidence field's value. +func (s *FaceDetail) SetConfidence(v float64) *FaceDetail { + s.Confidence = &v + return s +} + +// SetEmotions sets the Emotions field's value. +func (s *FaceDetail) SetEmotions(v []*Emotion) *FaceDetail { + s.Emotions = v + return s +} + +// SetEyeglasses sets the Eyeglasses field's value. +func (s *FaceDetail) SetEyeglasses(v *Eyeglasses) *FaceDetail { + s.Eyeglasses = v + return s +} + +// SetEyesOpen sets the EyesOpen field's value. +func (s *FaceDetail) SetEyesOpen(v *EyeOpen) *FaceDetail { + s.EyesOpen = v + return s +} + +// SetGender sets the Gender field's value. +func (s *FaceDetail) SetGender(v *Gender) *FaceDetail { + s.Gender = v + return s +} + +// SetLandmarks sets the Landmarks field's value. +func (s *FaceDetail) SetLandmarks(v []*Landmark) *FaceDetail { + s.Landmarks = v + return s +} + +// SetMouthOpen sets the MouthOpen field's value. +func (s *FaceDetail) SetMouthOpen(v *MouthOpen) *FaceDetail { + s.MouthOpen = v + return s +} + +// SetMustache sets the Mustache field's value. +func (s *FaceDetail) SetMustache(v *Mustache) *FaceDetail { + s.Mustache = v + return s +} + +// SetPose sets the Pose field's value. +func (s *FaceDetail) SetPose(v *Pose) *FaceDetail { + s.Pose = v + return s +} + +// SetQuality sets the Quality field's value. +func (s *FaceDetail) SetQuality(v *ImageQuality) *FaceDetail { + s.Quality = v + return s +} + +// SetSmile sets the Smile field's value. +func (s *FaceDetail) SetSmile(v *Smile) *FaceDetail { + s.Smile = v + return s +} + +// SetSunglasses sets the Sunglasses field's value. +func (s *FaceDetail) SetSunglasses(v *Sunglasses) *FaceDetail { + s.Sunglasses = v + return s +} + +// Provides face metadata. In addition, it also provides the confidence in the +// match of this face with the input face. +type FaceMatch struct { + _ struct{} `type:"structure"` + + // Describes the face properties such as the bounding box, face ID, image ID + // of the source image, and external image ID that you assigned. + Face *Face `type:"structure"` + + // Confidence in the match of this face with the input face. + Similarity *float64 `type:"float"` +} + +// String returns the string representation +func (s FaceMatch) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FaceMatch) GoString() string { + return s.String() +} + +// SetFace sets the Face field's value. +func (s *FaceMatch) SetFace(v *Face) *FaceMatch { + s.Face = v + return s +} + +// SetSimilarity sets the Similarity field's value. +func (s *FaceMatch) SetSimilarity(v float64) *FaceMatch { + s.Similarity = &v + return s +} + +// Object containing both the face metadata (stored in the back-end database) +// and facial attributes that are detected but aren't stored in the database. +type FaceRecord struct { + _ struct{} `type:"structure"` + + // Describes the face properties such as the bounding box, face ID, image ID + // of the source image, and external image ID that you assigned. + Face *Face `type:"structure"` + + // Structure containing attributes of the face that the algorithm detected. + FaceDetail *FaceDetail `type:"structure"` +} + +// String returns the string representation +func (s FaceRecord) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FaceRecord) GoString() string { + return s.String() +} + +// SetFace sets the Face field's value. +func (s *FaceRecord) SetFace(v *Face) *FaceRecord { + s.Face = v + return s +} + +// SetFaceDetail sets the FaceDetail field's value. +func (s *FaceRecord) SetFaceDetail(v *FaceDetail) *FaceRecord { + s.FaceDetail = v + return s +} + +// Gender of the face and the confidence level in the determination. +type Gender struct { + _ struct{} `type:"structure"` + + // Level of confidence in the determination. + Confidence *float64 `type:"float"` + + // Gender of the face. + Value *string `type:"string" enum:"GenderType"` +} + +// String returns the string representation +func (s Gender) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Gender) GoString() string { + return s.String() +} + +// SetConfidence sets the Confidence field's value. +func (s *Gender) SetConfidence(v float64) *Gender { + s.Confidence = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Gender) SetValue(v string) *Gender { + s.Value = &v + return s +} + +// Provides the source image either as bytes or an S3 object. +// +// The region for the S3 bucket containing the S3 object must match the region +// you use for Amazon Rekognition operations. +// +// You may need to Base64-encode the image bytes depending on the language you +// are using and whether or not you are using the AWS SDK. For more information, +// see example4. +// +// If you use the Amazon CLI to call Amazon Rekognition operations, passing +// image bytes using the Bytes property is not supported. You must first upload +// the image to an Amazon S3 bucket and then call the operation using the S3Object +// property. +// +// For Amazon Rekognition to process an S3 object, the user must have permission +// to access the S3 object. For more information, see manage-access-resource-policies. +type Image struct { + _ struct{} `type:"structure"` + + // Blob of image bytes up to 5 MBs. + // + // Bytes is automatically base64 encoded/decoded by the SDK. + Bytes []byte `min:"1" type:"blob"` + + // Identifies an S3 object as the image source. + S3Object *S3Object `type:"structure"` +} + +// String returns the string representation +func (s Image) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Image) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Image) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Image"} + if s.Bytes != nil && len(s.Bytes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bytes", 1)) + } + if s.S3Object != nil { + if err := s.S3Object.Validate(); err != nil { + invalidParams.AddNested("S3Object", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBytes sets the Bytes field's value. +func (s *Image) SetBytes(v []byte) *Image { + s.Bytes = v + return s +} + +// SetS3Object sets the S3Object field's value. +func (s *Image) SetS3Object(v *S3Object) *Image { + s.S3Object = v + return s +} + +// Identifies image brightness and sharpness. +type ImageQuality struct { + _ struct{} `type:"structure"` + + // Value representing brightness of the face. The service returns a value between + // 0 and 1 (inclusive). + Brightness *float64 `type:"float"` + + // Value representing sharpness of the face. + Sharpness *float64 `type:"float"` +} + +// String returns the string representation +func (s ImageQuality) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImageQuality) GoString() string { + return s.String() +} + +// SetBrightness sets the Brightness field's value. +func (s *ImageQuality) SetBrightness(v float64) *ImageQuality { + s.Brightness = &v + return s +} + +// SetSharpness sets the Sharpness field's value. +func (s *ImageQuality) SetSharpness(v float64) *ImageQuality { + s.Sharpness = &v + return s +} + +type IndexFacesInput struct { + _ struct{} `type:"structure"` + + // ID of an existing collection to which you want to add the faces that are + // detected in the input images. + // + // CollectionId is a required field + CollectionId *string `min:"1" type:"string" required:"true"` + + // (Optional) Returns detailed attributes of indexed faces. By default, the + // operation returns a subset of the facial attributes. + // + // For example, you can specify the value as, ["ALL"] or ["DEFAULT"]. If you + // provide both, ["ALL", "DEFAULT"], Amazon Rekognition uses the logical AND + // operator to determine which attributes to return (in this case, it is all + // attributes). If you specify all attributes, the service performs additional + // detection, in addition to the default. + DetectionAttributes []*string `type:"list"` + + // ID you want to assign to all the faces detected in the image. + ExternalImageId *string `min:"1" type:"string"` + + // Provides the source image either as bytes or an S3 object. + // + // The region for the S3 bucket containing the S3 object must match the region + // you use for Amazon Rekognition operations. + // + // You may need to Base64-encode the image bytes depending on the language you + // are using and whether or not you are using the AWS SDK. For more information, + // see example4. + // + // If you use the Amazon CLI to call Amazon Rekognition operations, passing + // image bytes using the Bytes property is not supported. You must first upload + // the image to an Amazon S3 bucket and then call the operation using the S3Object + // property. + // + // For Amazon Rekognition to process an S3 object, the user must have permission + // to access the S3 object. For more information, see manage-access-resource-policies. + // + // Image is a required field + Image *Image `type:"structure" required:"true"` +} + +// String returns the string representation +func (s IndexFacesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IndexFacesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *IndexFacesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "IndexFacesInput"} + if s.CollectionId == nil { + invalidParams.Add(request.NewErrParamRequired("CollectionId")) + } + if s.CollectionId != nil && len(*s.CollectionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CollectionId", 1)) + } + if s.ExternalImageId != nil && len(*s.ExternalImageId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ExternalImageId", 1)) + } + if s.Image == nil { + invalidParams.Add(request.NewErrParamRequired("Image")) + } + if s.Image != nil { + if err := s.Image.Validate(); err != nil { + invalidParams.AddNested("Image", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCollectionId sets the CollectionId field's value. +func (s *IndexFacesInput) SetCollectionId(v string) *IndexFacesInput { + s.CollectionId = &v + return s +} + +// SetDetectionAttributes sets the DetectionAttributes field's value. +func (s *IndexFacesInput) SetDetectionAttributes(v []*string) *IndexFacesInput { + s.DetectionAttributes = v + return s +} + +// SetExternalImageId sets the ExternalImageId field's value. +func (s *IndexFacesInput) SetExternalImageId(v string) *IndexFacesInput { + s.ExternalImageId = &v + return s +} + +// SetImage sets the Image field's value. +func (s *IndexFacesInput) SetImage(v *Image) *IndexFacesInput { + s.Image = v + return s +} + +type IndexFacesOutput struct { + _ struct{} `type:"structure"` + + // An array of faces detected and added to the collection. For more information, + // see howitworks-index-faces. + FaceRecords []*FaceRecord `type:"list"` + + // The algorithm detects the image orientation. If it detects that the image + // was rotated, it returns the degree of rotation. You can use this value to + // correct the orientation and also appropriately analyze the bounding box coordinates + // that are returned. + // + // If the source image Exif metadata populates the orientation field, Amazon + // Rekognition does not perform orientation correction and the value of OrientationCorrection + // will be nil. + OrientationCorrection *string `type:"string" enum:"OrientationCorrection"` +} + +// String returns the string representation +func (s IndexFacesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IndexFacesOutput) GoString() string { + return s.String() +} + +// SetFaceRecords sets the FaceRecords field's value. +func (s *IndexFacesOutput) SetFaceRecords(v []*FaceRecord) *IndexFacesOutput { + s.FaceRecords = v + return s +} + +// SetOrientationCorrection sets the OrientationCorrection field's value. +func (s *IndexFacesOutput) SetOrientationCorrection(v string) *IndexFacesOutput { + s.OrientationCorrection = &v + return s +} + +// Structure containing details about the detected label, including name, and +// level of confidence. +type Label struct { + _ struct{} `type:"structure"` + + // Level of confidence. + Confidence *float64 `type:"float"` + + // The name (label) of the object. + Name *string `type:"string"` +} + +// String returns the string representation +func (s Label) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Label) GoString() string { + return s.String() +} + +// SetConfidence sets the Confidence field's value. +func (s *Label) SetConfidence(v float64) *Label { + s.Confidence = &v + return s +} + +// SetName sets the Name field's value. +func (s *Label) SetName(v string) *Label { + s.Name = &v + return s +} + +// Indicates the location of the landmark on the face. +type Landmark struct { + _ struct{} `type:"structure"` + + // Type of the landmark. + Type *string `type:"string" enum:"LandmarkType"` + + // x-coordinate from the top left of the landmark expressed as the ration of + // the width of the image. For example, if the images is 700x200 and the x-coordinate + // of the landmark is at 350 pixels, this value is 0.5. + X *float64 `type:"float"` + + // y-coordinate from the top left of the landmark expressed as the ration of + // the height of the image. For example, if the images is 700x200 and the y-coordinate + // of the landmark is at 100 pixels, this value is 0.5. + Y *float64 `type:"float"` +} + +// String returns the string representation +func (s Landmark) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Landmark) GoString() string { + return s.String() +} + +// SetType sets the Type field's value. +func (s *Landmark) SetType(v string) *Landmark { + s.Type = &v + return s +} + +// SetX sets the X field's value. +func (s *Landmark) SetX(v float64) *Landmark { + s.X = &v + return s +} + +// SetY sets the Y field's value. +func (s *Landmark) SetY(v float64) *Landmark { + s.Y = &v + return s +} + +type ListCollectionsInput struct { + _ struct{} `type:"structure"` + + // Maximum number of collection IDs to return. + MaxResults *int64 `type:"integer"` + + // Pagination token from the previous response. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListCollectionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListCollectionsInput) GoString() string { + return s.String() +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListCollectionsInput) SetMaxResults(v int64) *ListCollectionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCollectionsInput) SetNextToken(v string) *ListCollectionsInput { + s.NextToken = &v + return s +} + +type ListCollectionsOutput struct { + _ struct{} `type:"structure"` + + // An array of collection IDs. + CollectionIds []*string `type:"list"` + + // If the result is truncated, the response provides a NextToken that you can + // use in the subsequent request to fetch the next set of collection IDs. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListCollectionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListCollectionsOutput) GoString() string { + return s.String() +} + +// SetCollectionIds sets the CollectionIds field's value. +func (s *ListCollectionsOutput) SetCollectionIds(v []*string) *ListCollectionsOutput { + s.CollectionIds = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCollectionsOutput) SetNextToken(v string) *ListCollectionsOutput { + s.NextToken = &v + return s +} + +type ListFacesInput struct { + _ struct{} `type:"structure"` + + // ID of the collection from which to list the faces. + // + // CollectionId is a required field + CollectionId *string `min:"1" type:"string" required:"true"` + + // Maximum number of faces to return. + MaxResults *int64 `type:"integer"` + + // If the previous response was incomplete (because there is more data to retrieve), + // Amazon Rekognition returns a pagination token in the response. You can use + // this pagination token to retrieve the next set of faces. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListFacesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListFacesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListFacesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListFacesInput"} + if s.CollectionId == nil { + invalidParams.Add(request.NewErrParamRequired("CollectionId")) + } + if s.CollectionId != nil && len(*s.CollectionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CollectionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCollectionId sets the CollectionId field's value. +func (s *ListFacesInput) SetCollectionId(v string) *ListFacesInput { + s.CollectionId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListFacesInput) SetMaxResults(v int64) *ListFacesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFacesInput) SetNextToken(v string) *ListFacesInput { + s.NextToken = &v + return s +} + +type ListFacesOutput struct { + _ struct{} `type:"structure"` + + // An array of Face objects. + Faces []*Face `type:"list"` + + // If the response is truncated, Amazon Rekognition returns this token that + // you can use in the subsequent request to retrieve the next set of faces. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListFacesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListFacesOutput) GoString() string { + return s.String() +} + +// SetFaces sets the Faces field's value. +func (s *ListFacesOutput) SetFaces(v []*Face) *ListFacesOutput { + s.Faces = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFacesOutput) SetNextToken(v string) *ListFacesOutput { + s.NextToken = &v + return s +} + +// Indicates whether or not the mouth on the face is open, and the confidence +// level in the determination. +type MouthOpen struct { + _ struct{} `type:"structure"` + + // Level of confidence in the determination. + Confidence *float64 `type:"float"` + + // Boolean value that indicates whether the mouth on the face is open or not. + Value *bool `type:"boolean"` +} + +// String returns the string representation +func (s MouthOpen) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MouthOpen) GoString() string { + return s.String() +} + +// SetConfidence sets the Confidence field's value. +func (s *MouthOpen) SetConfidence(v float64) *MouthOpen { + s.Confidence = &v + return s +} + +// SetValue sets the Value field's value. +func (s *MouthOpen) SetValue(v bool) *MouthOpen { + s.Value = &v + return s +} + +// Indicates whether or not the face has a mustache, and the confidence level +// in the determination. +type Mustache struct { + _ struct{} `type:"structure"` + + // Level of confidence in the determination. + Confidence *float64 `type:"float"` + + // Boolean value that indicates whether the face has mustache or not. + Value *bool `type:"boolean"` +} + +// String returns the string representation +func (s Mustache) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Mustache) GoString() string { + return s.String() +} + +// SetConfidence sets the Confidence field's value. +func (s *Mustache) SetConfidence(v float64) *Mustache { + s.Confidence = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Mustache) SetValue(v bool) *Mustache { + s.Value = &v + return s +} + +// Indicates the pose of the face as determined by pitch, roll, and the yaw. +type Pose struct { + _ struct{} `type:"structure"` + + // Value representing the face rotation on the pitch axis. + Pitch *float64 `type:"float"` + + // Value representing the face rotation on the roll axis. + Roll *float64 `type:"float"` + + // Value representing the face rotation on the yaw axis. + Yaw *float64 `type:"float"` +} + +// String returns the string representation +func (s Pose) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Pose) GoString() string { + return s.String() +} + +// SetPitch sets the Pitch field's value. +func (s *Pose) SetPitch(v float64) *Pose { + s.Pitch = &v + return s +} + +// SetRoll sets the Roll field's value. +func (s *Pose) SetRoll(v float64) *Pose { + s.Roll = &v + return s +} + +// SetYaw sets the Yaw field's value. +func (s *Pose) SetYaw(v float64) *Pose { + s.Yaw = &v + return s +} + +// Provides the S3 bucket name and object name. +// +// The region for the S3 bucket containing the S3 object must match the region +// you use for Amazon Rekognition operations. +// +// For Amazon Rekognition to process an S3 object, the user must have permission +// to access the S3 object. For more information, see manage-access-resource-policies. +type S3Object struct { + _ struct{} `type:"structure"` + + // Name of the S3 bucket. + Bucket *string `min:"3" type:"string"` + + // S3 object key name. + Name *string `min:"1" type:"string"` + + // If the bucket is versioning enabled, you can specify the object version. + Version *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s S3Object) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s S3Object) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3Object) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3Object"} + if s.Bucket != nil && len(*s.Bucket) < 3 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 3)) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Version != nil && len(*s.Version) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Version", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *S3Object) SetBucket(v string) *S3Object { + s.Bucket = &v + return s +} + +// SetName sets the Name field's value. +func (s *S3Object) SetName(v string) *S3Object { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *S3Object) SetVersion(v string) *S3Object { + s.Version = &v + return s +} + +type SearchFacesByImageInput struct { + _ struct{} `type:"structure"` + + // ID of the collection to search. + // + // CollectionId is a required field + CollectionId *string `min:"1" type:"string" required:"true"` + + // (Optional) Specifies the minimum confidence in the face match to return. + // For example, don't return any matches where confidence in matches is less + // than 70%. + FaceMatchThreshold *float64 `type:"float"` + + // Provides the source image either as bytes or an S3 object. + // + // The region for the S3 bucket containing the S3 object must match the region + // you use for Amazon Rekognition operations. + // + // You may need to Base64-encode the image bytes depending on the language you + // are using and whether or not you are using the AWS SDK. For more information, + // see example4. + // + // If you use the Amazon CLI to call Amazon Rekognition operations, passing + // image bytes using the Bytes property is not supported. You must first upload + // the image to an Amazon S3 bucket and then call the operation using the S3Object + // property. + // + // For Amazon Rekognition to process an S3 object, the user must have permission + // to access the S3 object. For more information, see manage-access-resource-policies. + // + // Image is a required field + Image *Image `type:"structure" required:"true"` + + // Maximum number of faces to return. The operation returns the maximum number + // of faces with the highest confidence in the match. + MaxFaces *int64 `min:"1" type:"integer"` +} + +// String returns the string representation +func (s SearchFacesByImageInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SearchFacesByImageInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SearchFacesByImageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SearchFacesByImageInput"} + if s.CollectionId == nil { + invalidParams.Add(request.NewErrParamRequired("CollectionId")) + } + if s.CollectionId != nil && len(*s.CollectionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CollectionId", 1)) + } + if s.Image == nil { + invalidParams.Add(request.NewErrParamRequired("Image")) + } + if s.MaxFaces != nil && *s.MaxFaces < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxFaces", 1)) + } + if s.Image != nil { + if err := s.Image.Validate(); err != nil { + invalidParams.AddNested("Image", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCollectionId sets the CollectionId field's value. +func (s *SearchFacesByImageInput) SetCollectionId(v string) *SearchFacesByImageInput { + s.CollectionId = &v + return s +} + +// SetFaceMatchThreshold sets the FaceMatchThreshold field's value. +func (s *SearchFacesByImageInput) SetFaceMatchThreshold(v float64) *SearchFacesByImageInput { + s.FaceMatchThreshold = &v + return s +} + +// SetImage sets the Image field's value. +func (s *SearchFacesByImageInput) SetImage(v *Image) *SearchFacesByImageInput { + s.Image = v + return s +} + +// SetMaxFaces sets the MaxFaces field's value. +func (s *SearchFacesByImageInput) SetMaxFaces(v int64) *SearchFacesByImageInput { + s.MaxFaces = &v + return s +} + +type SearchFacesByImageOutput struct { + _ struct{} `type:"structure"` + + // An array of faces that match the input face, along with the confidence in + // the match. + FaceMatches []*FaceMatch `type:"list"` + + // The bounding box around the face in the input image that Amazon Rekognition + // used for the search. + SearchedFaceBoundingBox *BoundingBox `type:"structure"` + + // The level of confidence that the searchedFaceBoundingBox, contains a face. + SearchedFaceConfidence *float64 `type:"float"` +} + +// String returns the string representation +func (s SearchFacesByImageOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SearchFacesByImageOutput) GoString() string { + return s.String() +} + +// SetFaceMatches sets the FaceMatches field's value. +func (s *SearchFacesByImageOutput) SetFaceMatches(v []*FaceMatch) *SearchFacesByImageOutput { + s.FaceMatches = v + return s +} + +// SetSearchedFaceBoundingBox sets the SearchedFaceBoundingBox field's value. +func (s *SearchFacesByImageOutput) SetSearchedFaceBoundingBox(v *BoundingBox) *SearchFacesByImageOutput { + s.SearchedFaceBoundingBox = v + return s +} + +// SetSearchedFaceConfidence sets the SearchedFaceConfidence field's value. +func (s *SearchFacesByImageOutput) SetSearchedFaceConfidence(v float64) *SearchFacesByImageOutput { + s.SearchedFaceConfidence = &v + return s +} + +type SearchFacesInput struct { + _ struct{} `type:"structure"` + + // ID of the collection the face belongs to. + // + // CollectionId is a required field + CollectionId *string `min:"1" type:"string" required:"true"` + + // ID of a face to find matches for in the collection. + // + // FaceId is a required field + FaceId *string `type:"string" required:"true"` + + // Optional value specifying the minimum confidence in the face match to return. + // For example, don't return any matches where confidence in matches is less + // than 70%. + FaceMatchThreshold *float64 `type:"float"` + + // Maximum number of faces to return. The operation returns the maximum number + // of faces with the highest confidence in the match. + MaxFaces *int64 `min:"1" type:"integer"` +} + +// String returns the string representation +func (s SearchFacesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SearchFacesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SearchFacesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SearchFacesInput"} + if s.CollectionId == nil { + invalidParams.Add(request.NewErrParamRequired("CollectionId")) + } + if s.CollectionId != nil && len(*s.CollectionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CollectionId", 1)) + } + if s.FaceId == nil { + invalidParams.Add(request.NewErrParamRequired("FaceId")) + } + if s.MaxFaces != nil && *s.MaxFaces < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxFaces", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCollectionId sets the CollectionId field's value. +func (s *SearchFacesInput) SetCollectionId(v string) *SearchFacesInput { + s.CollectionId = &v + return s +} + +// SetFaceId sets the FaceId field's value. +func (s *SearchFacesInput) SetFaceId(v string) *SearchFacesInput { + s.FaceId = &v + return s +} + +// SetFaceMatchThreshold sets the FaceMatchThreshold field's value. +func (s *SearchFacesInput) SetFaceMatchThreshold(v float64) *SearchFacesInput { + s.FaceMatchThreshold = &v + return s +} + +// SetMaxFaces sets the MaxFaces field's value. +func (s *SearchFacesInput) SetMaxFaces(v int64) *SearchFacesInput { + s.MaxFaces = &v + return s +} + +type SearchFacesOutput struct { + _ struct{} `type:"structure"` + + // An array of faces that matched the input face, along with the confidence + // in the match. + FaceMatches []*FaceMatch `type:"list"` + + // ID of the face that was searched for matches in a collection. + SearchedFaceId *string `type:"string"` +} + +// String returns the string representation +func (s SearchFacesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SearchFacesOutput) GoString() string { + return s.String() +} + +// SetFaceMatches sets the FaceMatches field's value. +func (s *SearchFacesOutput) SetFaceMatches(v []*FaceMatch) *SearchFacesOutput { + s.FaceMatches = v + return s +} + +// SetSearchedFaceId sets the SearchedFaceId field's value. +func (s *SearchFacesOutput) SetSearchedFaceId(v string) *SearchFacesOutput { + s.SearchedFaceId = &v + return s +} + +// Indicates whether or not the face is smiling, and the confidence level in +// the determination. +type Smile struct { + _ struct{} `type:"structure"` + + // Level of confidence in the determination. + Confidence *float64 `type:"float"` + + // Boolean value that indicates whether the face is smiling or not. + Value *bool `type:"boolean"` +} + +// String returns the string representation +func (s Smile) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Smile) GoString() string { + return s.String() +} + +// SetConfidence sets the Confidence field's value. +func (s *Smile) SetConfidence(v float64) *Smile { + s.Confidence = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Smile) SetValue(v bool) *Smile { + s.Value = &v + return s +} + +// Indicates whether or not the face is wearing sunglasses, and the confidence +// level in the determination. +type Sunglasses struct { + _ struct{} `type:"structure"` + + // Level of confidence in the determination. + Confidence *float64 `type:"float"` + + // Boolean value that indicates whether the face is wearing sunglasses or not. + Value *bool `type:"boolean"` +} + +// String returns the string representation +func (s Sunglasses) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Sunglasses) GoString() string { + return s.String() +} + +// SetConfidence sets the Confidence field's value. +func (s *Sunglasses) SetConfidence(v float64) *Sunglasses { + s.Confidence = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Sunglasses) SetValue(v bool) *Sunglasses { + s.Value = &v + return s +} + +const ( + // AttributeDefault is a Attribute enum value + AttributeDefault = "DEFAULT" + + // AttributeAll is a Attribute enum value + AttributeAll = "ALL" +) + +const ( + // EmotionNameHappy is a EmotionName enum value + EmotionNameHappy = "HAPPY" + + // EmotionNameSad is a EmotionName enum value + EmotionNameSad = "SAD" + + // EmotionNameAngry is a EmotionName enum value + EmotionNameAngry = "ANGRY" + + // EmotionNameConfused is a EmotionName enum value + EmotionNameConfused = "CONFUSED" + + // EmotionNameDisgusted is a EmotionName enum value + EmotionNameDisgusted = "DISGUSTED" + + // EmotionNameSurprised is a EmotionName enum value + EmotionNameSurprised = "SURPRISED" + + // EmotionNameCalm is a EmotionName enum value + EmotionNameCalm = "CALM" + + // EmotionNameUnknown is a EmotionName enum value + EmotionNameUnknown = "UNKNOWN" +) + +const ( + // GenderTypeMale is a GenderType enum value + GenderTypeMale = "MALE" + + // GenderTypeFemale is a GenderType enum value + GenderTypeFemale = "FEMALE" +) + +const ( + // LandmarkTypeEyeLeft is a LandmarkType enum value + LandmarkTypeEyeLeft = "EYE_LEFT" + + // LandmarkTypeEyeRight is a LandmarkType enum value + LandmarkTypeEyeRight = "EYE_RIGHT" + + // LandmarkTypeNose is a LandmarkType enum value + LandmarkTypeNose = "NOSE" + + // LandmarkTypeMouthLeft is a LandmarkType enum value + LandmarkTypeMouthLeft = "MOUTH_LEFT" + + // LandmarkTypeMouthRight is a LandmarkType enum value + LandmarkTypeMouthRight = "MOUTH_RIGHT" + + // LandmarkTypeLeftEyebrowLeft is a LandmarkType enum value + LandmarkTypeLeftEyebrowLeft = "LEFT_EYEBROW_LEFT" + + // LandmarkTypeLeftEyebrowRight is a LandmarkType enum value + LandmarkTypeLeftEyebrowRight = "LEFT_EYEBROW_RIGHT" + + // LandmarkTypeLeftEyebrowUp is a LandmarkType enum value + LandmarkTypeLeftEyebrowUp = "LEFT_EYEBROW_UP" + + // LandmarkTypeRightEyebrowLeft is a LandmarkType enum value + LandmarkTypeRightEyebrowLeft = "RIGHT_EYEBROW_LEFT" + + // LandmarkTypeRightEyebrowRight is a LandmarkType enum value + LandmarkTypeRightEyebrowRight = "RIGHT_EYEBROW_RIGHT" + + // LandmarkTypeRightEyebrowUp is a LandmarkType enum value + LandmarkTypeRightEyebrowUp = "RIGHT_EYEBROW_UP" + + // LandmarkTypeLeftEyeLeft is a LandmarkType enum value + LandmarkTypeLeftEyeLeft = "LEFT_EYE_LEFT" + + // LandmarkTypeLeftEyeRight is a LandmarkType enum value + LandmarkTypeLeftEyeRight = "LEFT_EYE_RIGHT" + + // LandmarkTypeLeftEyeUp is a LandmarkType enum value + LandmarkTypeLeftEyeUp = "LEFT_EYE_UP" + + // LandmarkTypeLeftEyeDown is a LandmarkType enum value + LandmarkTypeLeftEyeDown = "LEFT_EYE_DOWN" + + // LandmarkTypeRightEyeLeft is a LandmarkType enum value + LandmarkTypeRightEyeLeft = "RIGHT_EYE_LEFT" + + // LandmarkTypeRightEyeRight is a LandmarkType enum value + LandmarkTypeRightEyeRight = "RIGHT_EYE_RIGHT" + + // LandmarkTypeRightEyeUp is a LandmarkType enum value + LandmarkTypeRightEyeUp = "RIGHT_EYE_UP" + + // LandmarkTypeRightEyeDown is a LandmarkType enum value + LandmarkTypeRightEyeDown = "RIGHT_EYE_DOWN" + + // LandmarkTypeNoseLeft is a LandmarkType enum value + LandmarkTypeNoseLeft = "NOSE_LEFT" + + // LandmarkTypeNoseRight is a LandmarkType enum value + LandmarkTypeNoseRight = "NOSE_RIGHT" + + // LandmarkTypeMouthUp is a LandmarkType enum value + LandmarkTypeMouthUp = "MOUTH_UP" + + // LandmarkTypeMouthDown is a LandmarkType enum value + LandmarkTypeMouthDown = "MOUTH_DOWN" + + // LandmarkTypeLeftPupil is a LandmarkType enum value + LandmarkTypeLeftPupil = "LEFT_PUPIL" + + // LandmarkTypeRightPupil is a LandmarkType enum value + LandmarkTypeRightPupil = "RIGHT_PUPIL" +) + +const ( + // OrientationCorrectionRotate0 is a OrientationCorrection enum value + OrientationCorrectionRotate0 = "ROTATE_0" + + // OrientationCorrectionRotate90 is a OrientationCorrection enum value + OrientationCorrectionRotate90 = "ROTATE_90" + + // OrientationCorrectionRotate180 is a OrientationCorrection enum value + OrientationCorrectionRotate180 = "ROTATE_180" + + // OrientationCorrectionRotate270 is a OrientationCorrection enum value + OrientationCorrectionRotate270 = "ROTATE_270" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/rekognition/errors.go b/vendor/github.com/aws/aws-sdk-go/service/rekognition/errors.go new file mode 100644 index 000000000..1a5615a67 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/rekognition/errors.go @@ -0,0 +1,76 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package rekognition + +const ( + + // ErrCodeAccessDeniedException for service response error code + // "AccessDeniedException". + // + // You are not authorized to perform the action. + ErrCodeAccessDeniedException = "AccessDeniedException" + + // ErrCodeImageTooLargeException for service response error code + // "ImageTooLargeException". + // + // The input image size exceeds the allowed limit. For more information, see + // limits. + ErrCodeImageTooLargeException = "ImageTooLargeException" + + // ErrCodeInternalServerError for service response error code + // "InternalServerError". + // + // Amazon Rekognition experienced a service issue. Try your call again. + ErrCodeInternalServerError = "InternalServerError" + + // ErrCodeInvalidImageFormatException for service response error code + // "InvalidImageFormatException". + // + // The provided image format is not supported. + ErrCodeInvalidImageFormatException = "InvalidImageFormatException" + + // ErrCodeInvalidPaginationTokenException for service response error code + // "InvalidPaginationTokenException". + // + // Pagination token in the request is not valid. + ErrCodeInvalidPaginationTokenException = "InvalidPaginationTokenException" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameterException". + // + // Input parameter violated a constraint. Validate your parameter before calling + // the API operation again. + ErrCodeInvalidParameterException = "InvalidParameterException" + + // ErrCodeInvalidS3ObjectException for service response error code + // "InvalidS3ObjectException". + // + // Amazon Rekognition is unable to access the S3 object specified in the request. + ErrCodeInvalidS3ObjectException = "InvalidS3ObjectException" + + // ErrCodeProvisionedThroughputExceededException for service response error code + // "ProvisionedThroughputExceededException". + // + // The number of requests exceeded your throughput limit. If you want to increase + // this limit, contact Amazon Rekognition. + ErrCodeProvisionedThroughputExceededException = "ProvisionedThroughputExceededException" + + // ErrCodeResourceAlreadyExistsException for service response error code + // "ResourceAlreadyExistsException". + // + // A collection with the specified ID already exists. + ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // Collection specified in the request is not found. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeThrottlingException for service response error code + // "ThrottlingException". + // + // Amazon Rekognition is temporarily unable to process the request. Try your + // call again. + ErrCodeThrottlingException = "ThrottlingException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/rekognition/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/rekognition/examples_test.go new file mode 100644 index 000000000..87b68bc39 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/rekognition/examples_test.go @@ -0,0 +1,316 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package rekognition_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/rekognition" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExampleRekognition_CompareFaces() { + sess := session.Must(session.NewSession()) + + svc := rekognition.New(sess) + + params := &rekognition.CompareFacesInput{ + SourceImage: &rekognition.Image{ // Required + Bytes: []byte("PAYLOAD"), + S3Object: &rekognition.S3Object{ + Bucket: aws.String("S3Bucket"), + Name: aws.String("S3ObjectName"), + Version: aws.String("S3ObjectVersion"), + }, + }, + TargetImage: &rekognition.Image{ // Required + Bytes: []byte("PAYLOAD"), + S3Object: &rekognition.S3Object{ + Bucket: aws.String("S3Bucket"), + Name: aws.String("S3ObjectName"), + Version: aws.String("S3ObjectVersion"), + }, + }, + SimilarityThreshold: aws.Float64(1.0), + } + resp, err := svc.CompareFaces(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleRekognition_CreateCollection() { + sess := session.Must(session.NewSession()) + + svc := rekognition.New(sess) + + params := &rekognition.CreateCollectionInput{ + CollectionId: aws.String("CollectionId"), // Required + } + resp, err := svc.CreateCollection(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleRekognition_DeleteCollection() { + sess := session.Must(session.NewSession()) + + svc := rekognition.New(sess) + + params := &rekognition.DeleteCollectionInput{ + CollectionId: aws.String("CollectionId"), // Required + } + resp, err := svc.DeleteCollection(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleRekognition_DeleteFaces() { + sess := session.Must(session.NewSession()) + + svc := rekognition.New(sess) + + params := &rekognition.DeleteFacesInput{ + CollectionId: aws.String("CollectionId"), // Required + FaceIds: []*string{ // Required + aws.String("FaceId"), // Required + // More values... + }, + } + resp, err := svc.DeleteFaces(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleRekognition_DetectFaces() { + sess := session.Must(session.NewSession()) + + svc := rekognition.New(sess) + + params := &rekognition.DetectFacesInput{ + Image: &rekognition.Image{ // Required + Bytes: []byte("PAYLOAD"), + S3Object: &rekognition.S3Object{ + Bucket: aws.String("S3Bucket"), + Name: aws.String("S3ObjectName"), + Version: aws.String("S3ObjectVersion"), + }, + }, + Attributes: []*string{ + aws.String("Attribute"), // Required + // More values... + }, + } + resp, err := svc.DetectFaces(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleRekognition_DetectLabels() { + sess := session.Must(session.NewSession()) + + svc := rekognition.New(sess) + + params := &rekognition.DetectLabelsInput{ + Image: &rekognition.Image{ // Required + Bytes: []byte("PAYLOAD"), + S3Object: &rekognition.S3Object{ + Bucket: aws.String("S3Bucket"), + Name: aws.String("S3ObjectName"), + Version: aws.String("S3ObjectVersion"), + }, + }, + MaxLabels: aws.Int64(1), + MinConfidence: aws.Float64(1.0), + } + resp, err := svc.DetectLabels(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleRekognition_IndexFaces() { + sess := session.Must(session.NewSession()) + + svc := rekognition.New(sess) + + params := &rekognition.IndexFacesInput{ + CollectionId: aws.String("CollectionId"), // Required + Image: &rekognition.Image{ // Required + Bytes: []byte("PAYLOAD"), + S3Object: &rekognition.S3Object{ + Bucket: aws.String("S3Bucket"), + Name: aws.String("S3ObjectName"), + Version: aws.String("S3ObjectVersion"), + }, + }, + DetectionAttributes: []*string{ + aws.String("Attribute"), // Required + // More values... + }, + ExternalImageId: aws.String("ExternalImageId"), + } + resp, err := svc.IndexFaces(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleRekognition_ListCollections() { + sess := session.Must(session.NewSession()) + + svc := rekognition.New(sess) + + params := &rekognition.ListCollectionsInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("PaginationToken"), + } + resp, err := svc.ListCollections(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleRekognition_ListFaces() { + sess := session.Must(session.NewSession()) + + svc := rekognition.New(sess) + + params := &rekognition.ListFacesInput{ + CollectionId: aws.String("CollectionId"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("PaginationToken"), + } + resp, err := svc.ListFaces(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleRekognition_SearchFaces() { + sess := session.Must(session.NewSession()) + + svc := rekognition.New(sess) + + params := &rekognition.SearchFacesInput{ + CollectionId: aws.String("CollectionId"), // Required + FaceId: aws.String("FaceId"), // Required + FaceMatchThreshold: aws.Float64(1.0), + MaxFaces: aws.Int64(1), + } + resp, err := svc.SearchFaces(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleRekognition_SearchFacesByImage() { + sess := session.Must(session.NewSession()) + + svc := rekognition.New(sess) + + params := &rekognition.SearchFacesByImageInput{ + CollectionId: aws.String("CollectionId"), // Required + Image: &rekognition.Image{ // Required + Bytes: []byte("PAYLOAD"), + S3Object: &rekognition.S3Object{ + Bucket: aws.String("S3Bucket"), + Name: aws.String("S3ObjectName"), + Version: aws.String("S3ObjectVersion"), + }, + }, + FaceMatchThreshold: aws.Float64(1.0), + MaxFaces: aws.Int64(1), + } + resp, err := svc.SearchFacesByImage(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/rekognition/rekognitioniface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/rekognition/rekognitioniface/interface.go new file mode 100644 index 000000000..842010862 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/rekognition/rekognitioniface/interface.go @@ -0,0 +1,111 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package rekognitioniface provides an interface to enable mocking the Amazon Rekognition service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package rekognitioniface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/rekognition" +) + +// RekognitionAPI provides an interface to enable mocking the +// rekognition.Rekognition service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Amazon Rekognition. +// func myFunc(svc rekognitioniface.RekognitionAPI) bool { +// // Make svc.CompareFaces request +// } +// +// func main() { +// sess := session.New() +// svc := rekognition.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockRekognitionClient struct { +// rekognitioniface.RekognitionAPI +// } +// func (m *mockRekognitionClient) CompareFaces(input *rekognition.CompareFacesInput) (*rekognition.CompareFacesOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockRekognitionClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type RekognitionAPI interface { + CompareFacesRequest(*rekognition.CompareFacesInput) (*request.Request, *rekognition.CompareFacesOutput) + + CompareFaces(*rekognition.CompareFacesInput) (*rekognition.CompareFacesOutput, error) + + CreateCollectionRequest(*rekognition.CreateCollectionInput) (*request.Request, *rekognition.CreateCollectionOutput) + + CreateCollection(*rekognition.CreateCollectionInput) (*rekognition.CreateCollectionOutput, error) + + DeleteCollectionRequest(*rekognition.DeleteCollectionInput) (*request.Request, *rekognition.DeleteCollectionOutput) + + DeleteCollection(*rekognition.DeleteCollectionInput) (*rekognition.DeleteCollectionOutput, error) + + DeleteFacesRequest(*rekognition.DeleteFacesInput) (*request.Request, *rekognition.DeleteFacesOutput) + + DeleteFaces(*rekognition.DeleteFacesInput) (*rekognition.DeleteFacesOutput, error) + + DetectFacesRequest(*rekognition.DetectFacesInput) (*request.Request, *rekognition.DetectFacesOutput) + + DetectFaces(*rekognition.DetectFacesInput) (*rekognition.DetectFacesOutput, error) + + DetectLabelsRequest(*rekognition.DetectLabelsInput) (*request.Request, *rekognition.DetectLabelsOutput) + + DetectLabels(*rekognition.DetectLabelsInput) (*rekognition.DetectLabelsOutput, error) + + IndexFacesRequest(*rekognition.IndexFacesInput) (*request.Request, *rekognition.IndexFacesOutput) + + IndexFaces(*rekognition.IndexFacesInput) (*rekognition.IndexFacesOutput, error) + + ListCollectionsRequest(*rekognition.ListCollectionsInput) (*request.Request, *rekognition.ListCollectionsOutput) + + ListCollections(*rekognition.ListCollectionsInput) (*rekognition.ListCollectionsOutput, error) + + ListCollectionsPages(*rekognition.ListCollectionsInput, func(*rekognition.ListCollectionsOutput, bool) bool) error + + ListFacesRequest(*rekognition.ListFacesInput) (*request.Request, *rekognition.ListFacesOutput) + + ListFaces(*rekognition.ListFacesInput) (*rekognition.ListFacesOutput, error) + + ListFacesPages(*rekognition.ListFacesInput, func(*rekognition.ListFacesOutput, bool) bool) error + + SearchFacesRequest(*rekognition.SearchFacesInput) (*request.Request, *rekognition.SearchFacesOutput) + + SearchFaces(*rekognition.SearchFacesInput) (*rekognition.SearchFacesOutput, error) + + SearchFacesByImageRequest(*rekognition.SearchFacesByImageInput) (*request.Request, *rekognition.SearchFacesByImageOutput) + + SearchFacesByImage(*rekognition.SearchFacesByImageInput) (*rekognition.SearchFacesByImageOutput, error) +} + +var _ RekognitionAPI = (*rekognition.Rekognition)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/rekognition/service.go b/vendor/github.com/aws/aws-sdk-go/service/rekognition/service.go new file mode 100644 index 000000000..f9210b661 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/rekognition/service.go @@ -0,0 +1,92 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package rekognition + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" +) + +// This is the Amazon Rekognition API reference. +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +type Rekognition struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "rekognition" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the Rekognition client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a Rekognition client from just a session. +// svc := rekognition.New(mySession) +// +// // Create a Rekognition client with additional configuration +// svc := rekognition.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *Rekognition { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Rekognition { + svc := &Rekognition{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2016-06-27", + JSONVersion: "1.1", + TargetPrefix: "RekognitionService", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a Rekognition operation and runs any +// custom request initialization. +func (c *Rekognition) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/api.go b/vendor/github.com/aws/aws-sdk-go/service/route53/api.go index 00eb0e184..acbc1eaab 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/api.go @@ -37,6 +37,7 @@ const opAssociateVPCWithHostedZone = "AssociateVPCWithHostedZone" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/AssociateVPCWithHostedZone func (c *Route53) AssociateVPCWithHostedZoneRequest(input *AssociateVPCWithHostedZoneInput) (req *request.Request, output *AssociateVPCWithHostedZoneOutput) { op := &request.Operation{ Name: opAssociateVPCWithHostedZone, @@ -48,9 +49,8 @@ func (c *Route53) AssociateVPCWithHostedZoneRequest(input *AssociateVPCWithHoste input = &AssociateVPCWithHostedZoneInput{} } - req = c.newRequest(op, input, output) output = &AssociateVPCWithHostedZoneOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -58,20 +58,19 @@ func (c *Route53) AssociateVPCWithHostedZoneRequest(input *AssociateVPCWithHoste // // Associates an Amazon VPC with a private hosted zone. // -// The VPC and the hosted zone must already exist, and you must have created -// a private hosted zone. You cannot convert a public hosted zone into a private -// hosted zone. +// To perform the association, the VPC and the private hosted zone must already +// exist. You can't convert a public hosted zone into a private hosted zone. // -// Send a POST request to the /2013-04-01/hostedzone/hosted zone ID/associatevpc -// resource. The request body must include an XML document with a AssociateVPCWithHostedZoneRequest -// element. The response returns the AssociateVPCWithHostedZoneResponse element. +// Send a POST request to the /2013-04-01/hostedzone/hosted zone ID/associatevpc +// resource. The request body must include a document with an AssociateVPCWithHostedZoneRequest +// element. The response contains a ChangeInfo data type that you can use to +// track the progress of the request. // -// If you used different accounts to create the hosted zone and to create -// the Amazon VPCs that you want to associate with the hosted zone, we need -// to update account permissions for you. For more information, see Associating -// Amazon VPCs and Private Hosted Zones That You Create with Different AWS Accounts -// (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zone-private-associate-vpcs-different-accounts.html) -// in the Amazon Route 53 Developer Guide. +// If you want to associate a VPC that was created by using one AWS account +// with a private hosted zone that was created by using a different account, +// the AWS account that created the private hosted zone must first submit a +// CreateVPCAssociationAuthorization request. Then the account that created +// the VPC must submit an AssociateVPCWithHostedZone request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -81,30 +80,35 @@ func (c *Route53) AssociateVPCWithHostedZoneRequest(input *AssociateVPCWithHoste // API operation AssociateVPCWithHostedZone for usage and error information. // // Returned Error Codes: -// * NoSuchHostedZone +// * ErrCodeNoSuchHostedZone "NoSuchHostedZone" // No hosted zone exists with the ID that you specified. // -// * InvalidVPCId -// The hosted zone you are trying to create for your VPC_ID does not belong -// to you. Amazon Route 53 returns this error when the VPC specified by VPCId -// does not belong to you. +// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// Associating the specified VPC with the specified hosted zone has not been +// authorized. // -// * InvalidInput +// * ErrCodeInvalidVPCId "InvalidVPCId" +// The VPC ID that you specified either isn't a valid ID or the current account +// is not authorized to access this VPC. +// +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * PublicZoneVPCAssociation -// The hosted zone specified in HostedZoneId is a public hosted zone. +// * ErrCodePublicZoneVPCAssociation "PublicZoneVPCAssociation" +// You're trying to associate a VPC with a public hosted zone. Amazon Route +// 53 doesn't support associating a VPC with a public hosted zone. // -// * ConflictingDomainExists +// * ErrCodeConflictingDomainExists "ConflictingDomainExists" // You specified an Amazon VPC that you're already using for another hosted // zone, and the domain that you specified for one of the hosted zones is a // subdomain of the domain that you specified for the other hosted zone. For -// example, you cannot use the same Amazon VPC for the hosted zones for example.com +// example, you can't use the same Amazon VPC for the hosted zones for example.com // and test.example.com. // -// * LimitsExceeded +// * ErrCodeLimitsExceeded "LimitsExceeded" // The limits specified for a resource have been exceeded. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/AssociateVPCWithHostedZone func (c *Route53) AssociateVPCWithHostedZone(input *AssociateVPCWithHostedZoneInput) (*AssociateVPCWithHostedZoneOutput, error) { req, out := c.AssociateVPCWithHostedZoneRequest(input) err := req.Send() @@ -137,6 +141,7 @@ const opChangeResourceRecordSets = "ChangeResourceRecordSets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ChangeResourceRecordSets func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSetsInput) (req *request.Request, output *ChangeResourceRecordSetsOutput) { op := &request.Operation{ Name: opChangeResourceRecordSets, @@ -148,9 +153,8 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet input = &ChangeResourceRecordSetsInput{} } - req = c.newRequest(op, input, output) output = &ChangeResourceRecordSetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -159,7 +163,9 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet // Create, change, update, or delete authoritative DNS information on all Amazon // Route 53 servers. Send a POST request to: // -// /2013-04-01/hostedzone/Amazon Route 53 hosted Zone ID/rrset resource. +// /2013-04-01/hostedzone/Amazon Route 53 hosted Zone ID/rrset resource. +// +// Change Batches and Transactional Changes // // The request body must include a document with a ChangeResourceRecordSetsRequest // element. The request body contains a list of change items, known as a change @@ -176,14 +182,16 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet // fails, then both changes (plus any other changes in the batch) fail, and // the original CNAME record continues to exist. // -// Due to the nature of transactional changes, you cannot delete the same -// resource record set more than once in a single change batch. If you attempt -// to delete the same change batch more than once, Amazon Route 53 returns an -// InvalidChangeBatch error. +// Due to the nature of transactional changes, you can't delete the same resource +// record set more than once in a single change batch. If you attempt to delete +// the same change batch more than once, Amazon Route 53 returns an InvalidChangeBatch +// error. +// +// Traffic Flow // -// To create resource record sets for complex routing configurations, use -// either the traffic flow visual editor in the Amazon Route 53 console or the -// API actions for traffic policies and traffic policy instances. Save the configuration +// To create resource record sets for complex routing configurations, use either +// the traffic flow visual editor in the Amazon Route 53 console or the API +// actions for traffic policies and traffic policy instances. Save the configuration // as a traffic policy, then associate the traffic policy with one or more domain // names (such as example.com) or subdomain names (such as www.example.com), // in the same hosted zone or in multiple hosted zones. You can roll back the @@ -191,35 +199,44 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet // see Using Traffic Flow to Route DNS Traffic (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/traffic-flow.html) // in the Amazon Route 53 Developer Guide. // -// Use ChangeResourceRecordsSetsRequest to perform the following actions: +// Create, Delete, and Upsert +// +// Use ChangeResourceRecordsSetsRequest to perform the following actions: +// +// * CREATE: Creates a resource record set that has the specified values. +// +// * DELETE: Deletes an existing resource record set that has the specified +// values. +// +// * UPSERT: If a resource record set does not already exist, AWS creates +// it. If a resource set does exist, Amazon Route 53 updates it with the +// values in the request. +// +// Syntaxes for Creating, Updating, and Deleting Resource Record Sets +// +// The syntax for a request depends on the type of resource record set that +// you want to create, delete, or update, such as weighted, alias, or failover. +// The XML elements in your request must appear in the order listed in the syntax. // -// CREATE: Creates a resource record set that has the specified values. +// For an example for each type of resource record set, see "Examples." // -// DELETE: Deletes an existing resource record set that has the specified -// values for Name, Type, Set Identifier (for code latency, weighted, geolocation, -// and failover resource record sets), and TTL (except alias resource record -// sets, for which the TTL is determined by the AWS resource you're routing -// queries to). +// Don't refer to the syntax in the "Parameter Syntax" section, which includes +// all of the elements for every kind of resource record set that you can create, +// delete, or update by using ChangeResourceRecordSets. // -// UPSERT: If a resource record set does not already exist, AWS creates -// it. If a resource set does exist, Amazon Route 53 updates it with the values -// in the request. Amazon Route 53 can update an existing resource record set -// only when all of the following values match: Name, Type, and Set Identifier -// (for weighted, latency, geolocation, and failover resource record sets). +// Change Propagation to Amazon Route 53 DNS Servers // -// In response to a ChangeResourceRecordSets request, the DNS data is changed -// on all Amazon Route 53 DNS servers. Initially, the status of a change is -// PENDING, meaning the change has not yet propagated to all the authoritative -// Amazon Route 53 DNS servers. When the change is propagated to all hosts, -// the change returns a status of INSYNC. +// When you submit a ChangeResourceRecordSets request, Amazon Route 53 propagates +// your changes to all of the Amazon Route 53 authoritative DNS servers. While +// your changes are propagating, GetChange returns a status of PENDING. When +// propagation is complete, GetChange returns a status of INSYNC. Changes generally +// propagate to all Amazon Route 53 name servers in a few minutes. In rare circumstances, +// propagation can take up to 30 minutes. For more information, see GetChange. // -// After sending a change request, confirm your change has propagated to all -// Amazon Route 53 DNS servers. Changes generally propagate to all Amazon Route -// 53 name servers in a few minutes. In rare circumstances, propagation can -// take up to 30 minutes. For more information, see GetChange. +// Limits on ChangeResourceRecordSets Requests // -// For information about the limits on a ChangeResourceRecordSets request, -// see Limits (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html) +// For information about the limits on a ChangeResourceRecordSets request, see +// Limits (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html) // in the Amazon Route 53 Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -230,27 +247,28 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet // API operation ChangeResourceRecordSets for usage and error information. // // Returned Error Codes: -// * NoSuchHostedZone +// * ErrCodeNoSuchHostedZone "NoSuchHostedZone" // No hosted zone exists with the ID that you specified. // -// * NoSuchHealthCheck +// * ErrCodeNoSuchHealthCheck "NoSuchHealthCheck" // No health check exists with the ID that you specified in the DeleteHealthCheck // request. // -// * InvalidChangeBatch +// * ErrCodeInvalidChangeBatch "InvalidChangeBatch" // This exception contains a list of messages that might contain one or more // error messages. Each error message indicates one error in the change batch. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * PriorRequestNotComplete +// * ErrCodePriorRequestNotComplete "PriorRequestNotComplete" // If Amazon Route 53 can't process a request before the next request arrives, // it will reject subsequent requests for the same hosted zone and return an // HTTP 400 error (Bad request). If Amazon Route 53 returns this error repeatedly // for the same request, we recommend that you wait, in intervals of increasing // duration, before you try the request again. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ChangeResourceRecordSets func (c *Route53) ChangeResourceRecordSets(input *ChangeResourceRecordSetsInput) (*ChangeResourceRecordSetsOutput, error) { req, out := c.ChangeResourceRecordSetsRequest(input) err := req.Send() @@ -283,6 +301,7 @@ const opChangeTagsForResource = "ChangeTagsForResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ChangeTagsForResource func (c *Route53) ChangeTagsForResourceRequest(input *ChangeTagsForResourceInput) (req *request.Request, output *ChangeTagsForResourceOutput) { op := &request.Operation{ Name: opChangeTagsForResource, @@ -294,9 +313,8 @@ func (c *Route53) ChangeTagsForResourceRequest(input *ChangeTagsForResourceInput input = &ChangeTagsForResourceInput{} } - req = c.newRequest(op, input, output) output = &ChangeTagsForResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -316,26 +334,27 @@ func (c *Route53) ChangeTagsForResourceRequest(input *ChangeTagsForResourceInput // API operation ChangeTagsForResource for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * NoSuchHealthCheck +// * ErrCodeNoSuchHealthCheck "NoSuchHealthCheck" // No health check exists with the ID that you specified in the DeleteHealthCheck // request. // -// * NoSuchHostedZone +// * ErrCodeNoSuchHostedZone "NoSuchHostedZone" // No hosted zone exists with the ID that you specified. // -// * PriorRequestNotComplete +// * ErrCodePriorRequestNotComplete "PriorRequestNotComplete" // If Amazon Route 53 can't process a request before the next request arrives, // it will reject subsequent requests for the same hosted zone and return an // HTTP 400 error (Bad request). If Amazon Route 53 returns this error repeatedly // for the same request, we recommend that you wait, in intervals of increasing // duration, before you try the request again. // -// * ThrottlingException - +// * ErrCodeThrottlingException "ThrottlingException" +// The limit on the number of requests per second was exceeded. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ChangeTagsForResource func (c *Route53) ChangeTagsForResource(input *ChangeTagsForResourceInput) (*ChangeTagsForResourceOutput, error) { req, out := c.ChangeTagsForResourceRequest(input) err := req.Send() @@ -368,6 +387,7 @@ const opCreateHealthCheck = "CreateHealthCheck" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateHealthCheck func (c *Route53) CreateHealthCheckRequest(input *CreateHealthCheckInput) (req *request.Request, output *CreateHealthCheckOutput) { op := &request.Operation{ Name: opCreateHealthCheck, @@ -379,9 +399,8 @@ func (c *Route53) CreateHealthCheckRequest(input *CreateHealthCheckInput) (req * input = &CreateHealthCheckInput{} } - req = c.newRequest(op, input, output) output = &CreateHealthCheckOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -390,35 +409,35 @@ func (c *Route53) CreateHealthCheckRequest(input *CreateHealthCheckInput) (req * // Creates a new health check. // // To create a new health check, send a POST request to the /2013-04-01/healthcheck -// resource. The request body must include an XML document with a CreateHealthCheckRequest +// resource. The request body must include a document with a CreateHealthCheckRequest // element. The response returns the CreateHealthCheckResponse element, containing // the health check ID specified when adding health check to a resource record // set. For information about adding health checks to resource record sets, // see ResourceRecordSet$HealthCheckId in ChangeResourceRecordSets. // -// If you are registering Amazon EC2 instances with an Elastic Load Balancing -// (ELB) load balancer, do not create Amazon Route 53 health checks for the -// Amazon EC2 instances. When you register an Amazon EC2 instance with a load -// balancer, you configure settings for an ELB health check, which performs -// a similar function to an Amazon Route 53 health check. +// If you're registering EC2 instances with an Elastic Load Balancing (ELB) +// load balancer, do not create Amazon Route 53 health checks for the EC2 instances. +// When you register an EC2 instance with a load balancer, you configure settings +// for an ELB health check, which performs a similar function to an Amazon Route +// 53 health check. // -// You can associate health checks with failover resource record sets in a -// private hosted zone. Note the following: +// You can associate health checks with failover resource record sets in a private +// hosted zone. Note the following: // -// Amazon Route 53 health checkers are outside the VPC. To check the health -// of an endpoint within a VPC by IP address, you must assign a public IP address -// to the instance in the VPC. +// * Amazon Route 53 health checkers are outside the VPC. To check the health +// of an endpoint within a VPC by IP address, you must assign a public IP +// address to the instance in the VPC. // -// You can configure a health checker to check the health of an external -// resource that the instance relies on, such as a database server. +// * You can configure a health checker to check the health of an external +// resource that the instance relies on, such as a database server. // -// You can create a CloudWatch metric, associate an alarm with the metric, -// and then create a health check that is based on the state of the alarm. For -// example, you might create a CloudWatch metric that checks the status of the -// Amazon EC2 StatusCheckFailed metric, add an alarm to the metric, and then -// create a health check that is based on the state of the alarm. For information -// about creating CloudWatch metrics and alarms by using the CloudWatch console, -// see the Amazon CloudWatch Developer Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/WhatIsCloudWatch.html). +// * You can create a CloudWatch metric, associate an alarm with the metric, +// and then create a health check that is based on the state of the alarm. +// For example, you might create a CloudWatch metric that checks the status +// of the Amazon EC2 StatusCheckFailed metric, add an alarm to the metric, +// and then create a health check that is based on the state of the alarm. +// For information about creating CloudWatch metrics and alarms by using +// the CloudWatch console, see the Amazon CloudWatch User Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/WhatIsCloudWatch.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -428,20 +447,20 @@ func (c *Route53) CreateHealthCheckRequest(input *CreateHealthCheckInput) (req * // API operation CreateHealthCheck for usage and error information. // // Returned Error Codes: -// * TooManyHealthChecks +// * ErrCodeTooManyHealthChecks "TooManyHealthChecks" // You have reached the maximum number of active health checks for an AWS account. // The default limit is 100. To request a higher limit, create a case (http://aws.amazon.com/route53-request) // with the AWS Support Center. // -// * HealthCheckAlreadyExists -// The health check you're attempting to create already exists. -// -// Amazon Route 53 returns this error when a health check has already been -// created with the specified value for CallerReference. +// * ErrCodeHealthCheckAlreadyExists "HealthCheckAlreadyExists" +// The health check you're attempting to create already exists. Amazon Route +// 53 returns this error when a health check has already been created with the +// specified value for CallerReference. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateHealthCheck func (c *Route53) CreateHealthCheck(input *CreateHealthCheckInput) (*CreateHealthCheckOutput, error) { req, out := c.CreateHealthCheckRequest(input) err := req.Send() @@ -474,6 +493,7 @@ const opCreateHostedZone = "CreateHostedZone" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateHostedZone func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *request.Request, output *CreateHostedZoneOutput) { op := &request.Operation{ Name: opCreateHostedZone, @@ -485,9 +505,8 @@ func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *re input = &CreateHostedZoneInput{} } - req = c.newRequest(op, input, output) output = &CreateHostedZoneOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -497,37 +516,38 @@ func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *re // (DNS) routes traffic on the Internet for a domain, such as example.com, and // its subdomains. // -// Public hosted zones cannot be converted to a private hosted zone or vice -// versa. Instead, create a new hosted zone with the same name and create new -// resource record sets. +// Public hosted zones can't be converted to a private hosted zone or vice versa. +// Instead, create a new hosted zone with the same name and create new resource +// record sets. // -// Send a POST request to the /2013-04-01/hostedzone resource. The request -// body must include an XML document with a CreateHostedZoneRequest element. -// The response returns the CreateHostedZoneResponse element containing metadata -// about the hosted zone. +// Send a POST request to the /2013-04-01/hostedzone resource. The request body +// must include a document with a CreateHostedZoneRequest element. The response +// returns the CreateHostedZoneResponse element containing metadata about the +// hosted zone. // // Fore more information about charges for hosted zones, see Amazon Route 53 // Pricing (http://aws.amazon.com/route53/pricing/). // // Note the following: // -// You cannot create a hosted zone for a top-level domain (TLD). +// * You can't create a hosted zone for a top-level domain (TLD). // -// Amazon Route 53 automatically creates a default SOA record and four NS -// records for the zone. For more information about SOA and NS records, see -// NS and SOA Records that Amazon Route 53 Creates for a Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/SOA-NSrecords.html) -// in the Amazon Route 53 Developer Guide. +// * Amazon Route 53 automatically creates a default SOA record and four +// NS records for the zone. For more information about SOA and NS records, +// see NS and SOA Records that Amazon Route 53 Creates for a Hosted Zone +// (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/SOA-NSrecords.html) +// in the Amazon Route 53 Developer Guide. // -// If your domain is registered with a registrar other than Amazon Route -// 53, you must update the name servers with your registrar to make Amazon Route -// 53 your DNS service. For more information, see Configuring Amazon Route 53 -// as your DNS Service (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/creating-migrating.html) -// in the Amazon Route 53 Developer's Guide. +// * If your domain is registered with a registrar other than Amazon Route +// 53, you must update the name servers with your registrar to make Amazon +// Route 53 your DNS service. For more information, see Configuring Amazon +// Route 53 as your DNS Service (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/creating-migrating.html) +// in the Amazon Route 53 Developer's Guide. // -// After creating a zone, its initial status is PENDING. This means that -// it is not yet available on all DNS servers. The status of the zone changes -// to INSYNC when the NS and SOA records are available on all Amazon Route 53 -// DNS servers. +// After creating a zone, its initial status is PENDING. This means that it +// is not yet available on all DNS servers. The status of the zone changes to +// INSYNC when the NS and SOA records are available on all Amazon Route 53 DNS +// servers. // // When trying to create a hosted zone using a reusable delegation set, specify // an optional DelegationSetId, and Amazon Route 53 would assign those 4 NS @@ -541,47 +561,47 @@ func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *re // API operation CreateHostedZone for usage and error information. // // Returned Error Codes: -// * InvalidDomainName +// * ErrCodeInvalidDomainName "InvalidDomainName" // The specified domain name is not valid. // -// * HostedZoneAlreadyExists -// The hosted zone you are trying to create already exists. Amazon Route 53 -// returns this error when a hosted zone has already been created with the specified +// * ErrCodeHostedZoneAlreadyExists "HostedZoneAlreadyExists" +// The hosted zone you're trying to create already exists. Amazon Route 53 returns +// this error when a hosted zone has already been created with the specified // CallerReference. // -// * TooManyHostedZones -// This hosted zone cannot be created because the hosted zone limit is exceeded. +// * ErrCodeTooManyHostedZones "TooManyHostedZones" +// This hosted zone can't be created because the hosted zone limit is exceeded. // To request a limit increase, go to the Amazon Route 53 Contact Us (http://aws.amazon.com/route53-request/) // page. // -// * InvalidVPCId -// The hosted zone you are trying to create for your VPC_ID does not belong -// to you. Amazon Route 53 returns this error when the VPC specified by VPCId -// does not belong to you. +// * ErrCodeInvalidVPCId "InvalidVPCId" +// The VPC ID that you specified either isn't a valid ID or the current account +// is not authorized to access this VPC. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * DelegationSetNotAvailable +// * ErrCodeDelegationSetNotAvailable "DelegationSetNotAvailable" // You can create a hosted zone that has the same name as an existing hosted // zone (example.com is common), but there is a limit to the number of hosted // zones that have the same name. If you get this error, Amazon Route 53 has // reached that limit. If you own the domain name and Amazon Route 53 generates // this error, contact Customer Support. // -// * ConflictingDomainExists +// * ErrCodeConflictingDomainExists "ConflictingDomainExists" // You specified an Amazon VPC that you're already using for another hosted // zone, and the domain that you specified for one of the hosted zones is a // subdomain of the domain that you specified for the other hosted zone. For -// example, you cannot use the same Amazon VPC for the hosted zones for example.com +// example, you can't use the same Amazon VPC for the hosted zones for example.com // and test.example.com. // -// * NoSuchDelegationSet +// * ErrCodeNoSuchDelegationSet "NoSuchDelegationSet" // A reusable delegation set with the specified ID does not exist. // -// * DelegationSetNotReusable +// * ErrCodeDelegationSetNotReusable "DelegationSetNotReusable" // A reusable delegation set with the specified ID does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateHostedZone func (c *Route53) CreateHostedZone(input *CreateHostedZoneInput) (*CreateHostedZoneOutput, error) { req, out := c.CreateHostedZoneRequest(input) err := req.Send() @@ -614,6 +634,7 @@ const opCreateReusableDelegationSet = "CreateReusableDelegationSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateReusableDelegationSet func (c *Route53) CreateReusableDelegationSetRequest(input *CreateReusableDelegationSetInput) (req *request.Request, output *CreateReusableDelegationSetOutput) { op := &request.Operation{ Name: opCreateReusableDelegationSet, @@ -625,9 +646,8 @@ func (c *Route53) CreateReusableDelegationSetRequest(input *CreateReusableDelega input = &CreateReusableDelegationSetInput{} } - req = c.newRequest(op, input, output) output = &CreateReusableDelegationSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -638,12 +658,11 @@ func (c *Route53) CreateReusableDelegationSetRequest(input *CreateReusableDelega // marks the delegation set associated with that zone as reusable // // Send a POST request to the /2013-04-01/delegationset resource. The request -// body must include an XML document with a CreateReusableDelegationSetRequest -// element. +// body must include a document with a CreateReusableDelegationSetRequest element. // -// A reusable delegation set cannot be associated with a private hosted zone/ +// A reusable delegation set can't be associated with a private hosted zone/ // -// For more information, including a procedure on how to create and configure +// For more information, including a procedure on how to create and configure // a reusable delegation set (also known as white label name servers), see Configuring // White Label Name Servers (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/white-label-name-servers.html). // @@ -655,32 +674,33 @@ func (c *Route53) CreateReusableDelegationSetRequest(input *CreateReusableDelega // API operation CreateReusableDelegationSet for usage and error information. // // Returned Error Codes: -// * DelegationSetAlreadyCreated +// * ErrCodeDelegationSetAlreadyCreated "DelegationSetAlreadyCreated" // A delegation set with the same owner and caller reference combination has // already been created. // -// * LimitsExceeded +// * ErrCodeLimitsExceeded "LimitsExceeded" // The limits specified for a resource have been exceeded. // -// * HostedZoneNotFound -// The specified HostedZone cannot be found. +// * ErrCodeHostedZoneNotFound "HostedZoneNotFound" +// The specified HostedZone can't be found. // -// * InvalidArgument -// Parameter name and problem. +// * ErrCodeInvalidArgument "InvalidArgument" +// Parameter name is invalid. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * DelegationSetNotAvailable +// * ErrCodeDelegationSetNotAvailable "DelegationSetNotAvailable" // You can create a hosted zone that has the same name as an existing hosted // zone (example.com is common), but there is a limit to the number of hosted // zones that have the same name. If you get this error, Amazon Route 53 has // reached that limit. If you own the domain name and Amazon Route 53 generates // this error, contact Customer Support. // -// * DelegationSetAlreadyReusable +// * ErrCodeDelegationSetAlreadyReusable "DelegationSetAlreadyReusable" // The specified delegation set has already been marked as reusable. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateReusableDelegationSet func (c *Route53) CreateReusableDelegationSet(input *CreateReusableDelegationSetInput) (*CreateReusableDelegationSetOutput, error) { req, out := c.CreateReusableDelegationSetRequest(input) err := req.Send() @@ -713,6 +733,7 @@ const opCreateTrafficPolicy = "CreateTrafficPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateTrafficPolicy func (c *Route53) CreateTrafficPolicyRequest(input *CreateTrafficPolicyInput) (req *request.Request, output *CreateTrafficPolicyOutput) { op := &request.Operation{ Name: opCreateTrafficPolicy, @@ -724,9 +745,8 @@ func (c *Route53) CreateTrafficPolicyRequest(input *CreateTrafficPolicyInput) (r input = &CreateTrafficPolicyInput{} } - req = c.newRequest(op, input, output) output = &CreateTrafficPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -749,21 +769,22 @@ func (c *Route53) CreateTrafficPolicyRequest(input *CreateTrafficPolicyInput) (r // API operation CreateTrafficPolicy for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * TooManyTrafficPolicies +// * ErrCodeTooManyTrafficPolicies "TooManyTrafficPolicies" // You've created the maximum number of traffic policies that can be created // for the current AWS account. You can request an increase to the limit on // the Contact Us (http://aws.amazon.com/route53-request/) page. // -// * TrafficPolicyAlreadyExists +// * ErrCodeTrafficPolicyAlreadyExists "TrafficPolicyAlreadyExists" // A traffic policy that has the same value for Name already exists. // -// * InvalidTrafficPolicyDocument +// * ErrCodeInvalidTrafficPolicyDocument "InvalidTrafficPolicyDocument" // The format of the traffic policy document that you specified in the Document // element is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateTrafficPolicy func (c *Route53) CreateTrafficPolicy(input *CreateTrafficPolicyInput) (*CreateTrafficPolicyOutput, error) { req, out := c.CreateTrafficPolicyRequest(input) err := req.Send() @@ -796,6 +817,7 @@ const opCreateTrafficPolicyInstance = "CreateTrafficPolicyInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateTrafficPolicyInstance func (c *Route53) CreateTrafficPolicyInstanceRequest(input *CreateTrafficPolicyInstanceInput) (req *request.Request, output *CreateTrafficPolicyInstanceOutput) { op := &request.Operation{ Name: opCreateTrafficPolicyInstance, @@ -807,9 +829,8 @@ func (c *Route53) CreateTrafficPolicyInstanceRequest(input *CreateTrafficPolicyI input = &CreateTrafficPolicyInstanceInput{} } - req = c.newRequest(op, input, output) output = &CreateTrafficPolicyInstanceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -835,23 +856,24 @@ func (c *Route53) CreateTrafficPolicyInstanceRequest(input *CreateTrafficPolicyI // API operation CreateTrafficPolicyInstance for usage and error information. // // Returned Error Codes: -// * NoSuchHostedZone +// * ErrCodeNoSuchHostedZone "NoSuchHostedZone" // No hosted zone exists with the ID that you specified. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * TooManyTrafficPolicyInstances +// * ErrCodeTooManyTrafficPolicyInstances "TooManyTrafficPolicyInstances" // You've created the maximum number of traffic policy instances that can be // created for the current AWS account. You can request an increase to the limit // on the Contact Us (http://aws.amazon.com/route53-request/) page. // -// * NoSuchTrafficPolicy +// * ErrCodeNoSuchTrafficPolicy "NoSuchTrafficPolicy" // No traffic policy exists with the specified ID. // -// * TrafficPolicyInstanceAlreadyExists +// * ErrCodeTrafficPolicyInstanceAlreadyExists "TrafficPolicyInstanceAlreadyExists" // Traffic policy instance with given Id already exists. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateTrafficPolicyInstance func (c *Route53) CreateTrafficPolicyInstance(input *CreateTrafficPolicyInstanceInput) (*CreateTrafficPolicyInstanceOutput, error) { req, out := c.CreateTrafficPolicyInstanceRequest(input) err := req.Send() @@ -884,6 +906,7 @@ const opCreateTrafficPolicyVersion = "CreateTrafficPolicyVersion" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateTrafficPolicyVersion func (c *Route53) CreateTrafficPolicyVersionRequest(input *CreateTrafficPolicyVersionInput) (req *request.Request, output *CreateTrafficPolicyVersionOutput) { op := &request.Operation{ Name: opCreateTrafficPolicyVersion, @@ -895,9 +918,8 @@ func (c *Route53) CreateTrafficPolicyVersionRequest(input *CreateTrafficPolicyVe input = &CreateTrafficPolicyVersionInput{} } - req = c.newRequest(op, input, output) output = &CreateTrafficPolicyVersionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -925,26 +947,123 @@ func (c *Route53) CreateTrafficPolicyVersionRequest(input *CreateTrafficPolicyVe // API operation CreateTrafficPolicyVersion for usage and error information. // // Returned Error Codes: -// * NoSuchTrafficPolicy +// * ErrCodeNoSuchTrafficPolicy "NoSuchTrafficPolicy" // No traffic policy exists with the specified ID. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * ConcurrentModification +// * ErrCodeConcurrentModification "ConcurrentModification" // Another user submitted a request to update the object at the same time that // you did. Retry the request. // -// * InvalidTrafficPolicyDocument +// * ErrCodeInvalidTrafficPolicyDocument "InvalidTrafficPolicyDocument" // The format of the traffic policy document that you specified in the Document // element is invalid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateTrafficPolicyVersion func (c *Route53) CreateTrafficPolicyVersion(input *CreateTrafficPolicyVersionInput) (*CreateTrafficPolicyVersionOutput, error) { req, out := c.CreateTrafficPolicyVersionRequest(input) err := req.Send() return out, err } +const opCreateVPCAssociationAuthorization = "CreateVPCAssociationAuthorization" + +// CreateVPCAssociationAuthorizationRequest generates a "aws/request.Request" representing the +// client's request for the CreateVPCAssociationAuthorization operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateVPCAssociationAuthorization for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateVPCAssociationAuthorization method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateVPCAssociationAuthorizationRequest method. +// req, resp := client.CreateVPCAssociationAuthorizationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateVPCAssociationAuthorization +func (c *Route53) CreateVPCAssociationAuthorizationRequest(input *CreateVPCAssociationAuthorizationInput) (req *request.Request, output *CreateVPCAssociationAuthorizationOutput) { + op := &request.Operation{ + Name: opCreateVPCAssociationAuthorization, + HTTPMethod: "POST", + HTTPPath: "/2013-04-01/hostedzone/{Id}/authorizevpcassociation", + } + + if input == nil { + input = &CreateVPCAssociationAuthorizationInput{} + } + + output = &CreateVPCAssociationAuthorizationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateVPCAssociationAuthorization API operation for Amazon Route 53. +// +// Authorizes the AWS account that created a specified VPC to submit an AssociateVPCWithHostedZone +// request to associate the VPC with a specified hosted zone that was created +// by a different account. To submit a CreateVPCAssociationAuthorization request, +// you must use the account that created the hosted zone. After you authorize +// the association, use the account that created the VPC to submit an AssociateVPCWithHostedZone +// request. +// +// If you want to associate multiple VPCs that you created by using one account +// with a hosted zone that you created by using a different account, you must +// submit one authorization request for each VPC. +// +// Send a POST request to the /2013-04-01/hostedzone/hosted zone ID/authorizevpcassociation +// resource. The request body must include a document with a CreateVPCAssociationAuthorizationRequest +// element. The response contains information about the authorization. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation CreateVPCAssociationAuthorization for usage and error information. +// +// Returned Error Codes: +// * ErrCodeConcurrentModification "ConcurrentModification" +// Another user submitted a request to update the object at the same time that +// you did. Retry the request. +// +// * ErrCodeTooManyVPCAssociationAuthorizations "TooManyVPCAssociationAuthorizations" +// You've created the maximum number of authorizations that can be created for +// the specified hosted zone. To authorize another VPC to be associated with +// the hosted zone, submit a DeleteVPCAssociationAuthorization request to remove +// an existing authorization. To get a list of existing authorizations, submit +// a ListVPCAssociationAuthorizations request. +// +// * ErrCodeNoSuchHostedZone "NoSuchHostedZone" +// No hosted zone exists with the ID that you specified. +// +// * ErrCodeInvalidVPCId "InvalidVPCId" +// The VPC ID that you specified either isn't a valid ID or the current account +// is not authorized to access this VPC. +// +// * ErrCodeInvalidInput "InvalidInput" +// The input is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateVPCAssociationAuthorization +func (c *Route53) CreateVPCAssociationAuthorization(input *CreateVPCAssociationAuthorizationInput) (*CreateVPCAssociationAuthorizationOutput, error) { + req, out := c.CreateVPCAssociationAuthorizationRequest(input) + err := req.Send() + return out, err +} + const opDeleteHealthCheck = "DeleteHealthCheck" // DeleteHealthCheckRequest generates a "aws/request.Request" representing the @@ -971,6 +1090,7 @@ const opDeleteHealthCheck = "DeleteHealthCheck" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteHealthCheck func (c *Route53) DeleteHealthCheckRequest(input *DeleteHealthCheckInput) (req *request.Request, output *DeleteHealthCheckOutput) { op := &request.Operation{ Name: opDeleteHealthCheck, @@ -982,24 +1102,22 @@ func (c *Route53) DeleteHealthCheckRequest(input *DeleteHealthCheckInput) (req * input = &DeleteHealthCheckInput{} } - req = c.newRequest(op, input, output) output = &DeleteHealthCheckOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DeleteHealthCheck API operation for Amazon Route 53. // // Deletes a health check. Send a DELETE request to the /2013-04-01/healthcheck/health -// check ID resource. -// -// Amazon Route 53 does not prevent you from deleting a health check even -// if the health check is associated with one or more resource record sets. -// If you delete a health check and you don't update the associated resource -// record sets, the future status of the health check cannot be predicted and -// may change. This will affect the routing of DNS queries for your DNS failover -// configuration. For more information, see Replacing and Deleting Health Checks -// (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/health-checks-creating-deleting.html#health-checks-deleting.html) +// check ID resource. +// +// Amazon Route 53 does not prevent you from deleting a health check even if +// the health check is associated with one or more resource record sets. If +// you delete a health check and you don't update the associated resource record +// sets, the future status of the health check can't be predicted and may change. +// This will affect the routing of DNS queries for your DNS failover configuration. +// For more information, see Replacing and Deleting Health Checks (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/health-checks-creating-deleting.html#health-checks-deleting.html) // in the Amazon Route 53 Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1010,18 +1128,19 @@ func (c *Route53) DeleteHealthCheckRequest(input *DeleteHealthCheckInput) (req * // API operation DeleteHealthCheck for usage and error information. // // Returned Error Codes: -// * NoSuchHealthCheck +// * ErrCodeNoSuchHealthCheck "NoSuchHealthCheck" // No health check exists with the ID that you specified in the DeleteHealthCheck // request. // -// * HealthCheckInUse +// * ErrCodeHealthCheckInUse "HealthCheckInUse" // The health check ID for this health check is referenced in the HealthCheckId // element in one of the resource record sets in one of the hosted zones that // are owned by the current AWS account. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteHealthCheck func (c *Route53) DeleteHealthCheck(input *DeleteHealthCheckInput) (*DeleteHealthCheckOutput, error) { req, out := c.DeleteHealthCheckRequest(input) err := req.Send() @@ -1054,6 +1173,7 @@ const opDeleteHostedZone = "DeleteHostedZone" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteHostedZone func (c *Route53) DeleteHostedZoneRequest(input *DeleteHostedZoneInput) (req *request.Request, output *DeleteHostedZoneOutput) { op := &request.Operation{ Name: opDeleteHostedZone, @@ -1065,18 +1185,17 @@ func (c *Route53) DeleteHostedZoneRequest(input *DeleteHostedZoneInput) (req *re input = &DeleteHostedZoneInput{} } - req = c.newRequest(op, input, output) output = &DeleteHostedZoneOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DeleteHostedZone API operation for Amazon Route 53. // // Deletes a hosted zone. Send a DELETE request to the /Amazon Route 53 API -// version/hostedzone/hosted zone ID resource. +// version/hostedzone/hosted zone ID resource. // -// Delete a hosted zone only if there are no resource record sets other than +// Delete a hosted zone only if there are no resource record sets other than // the default SOA record and NS resource record sets. If the hosted zone contains // other resource record sets, delete them before deleting the hosted zone. // If you try to delete a hosted zone that contains other resource record sets, @@ -1091,25 +1210,26 @@ func (c *Route53) DeleteHostedZoneRequest(input *DeleteHostedZoneInput) (req *re // API operation DeleteHostedZone for usage and error information. // // Returned Error Codes: -// * NoSuchHostedZone +// * ErrCodeNoSuchHostedZone "NoSuchHostedZone" // No hosted zone exists with the ID that you specified. // -// * HostedZoneNotEmpty +// * ErrCodeHostedZoneNotEmpty "HostedZoneNotEmpty" // The hosted zone contains resource records that are not SOA or NS records. // -// * PriorRequestNotComplete +// * ErrCodePriorRequestNotComplete "PriorRequestNotComplete" // If Amazon Route 53 can't process a request before the next request arrives, // it will reject subsequent requests for the same hosted zone and return an // HTTP 400 error (Bad request). If Amazon Route 53 returns this error repeatedly // for the same request, we recommend that you wait, in intervals of increasing // duration, before you try the request again. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * InvalidDomainName +// * ErrCodeInvalidDomainName "InvalidDomainName" // The specified domain name is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteHostedZone func (c *Route53) DeleteHostedZone(input *DeleteHostedZoneInput) (*DeleteHostedZoneOutput, error) { req, out := c.DeleteHostedZoneRequest(input) err := req.Send() @@ -1142,6 +1262,7 @@ const opDeleteReusableDelegationSet = "DeleteReusableDelegationSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteReusableDelegationSet func (c *Route53) DeleteReusableDelegationSetRequest(input *DeleteReusableDelegationSetInput) (req *request.Request, output *DeleteReusableDelegationSetOutput) { op := &request.Operation{ Name: opDeleteReusableDelegationSet, @@ -1153,21 +1274,20 @@ func (c *Route53) DeleteReusableDelegationSetRequest(input *DeleteReusableDelega input = &DeleteReusableDelegationSetInput{} } - req = c.newRequest(op, input, output) output = &DeleteReusableDelegationSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DeleteReusableDelegationSet API operation for Amazon Route 53. // // Deletes a reusable delegation set. Send a DELETE request to the /2013-04-01/delegationset/delegation -// set ID resource. +// set ID resource. // -// You can delete a reusable delegation set only if there are no associated +// You can delete a reusable delegation set only if there are no associated // hosted zones. // -// To verify that the reusable delegation set is not associated with any hosted +// To verify that the reusable delegation set is not associated with any hosted // zones, run the GetReusableDelegationSet action and specify the ID of the // reusable delegation set that you want to delete. // @@ -1179,19 +1299,20 @@ func (c *Route53) DeleteReusableDelegationSetRequest(input *DeleteReusableDelega // API operation DeleteReusableDelegationSet for usage and error information. // // Returned Error Codes: -// * NoSuchDelegationSet +// * ErrCodeNoSuchDelegationSet "NoSuchDelegationSet" // A reusable delegation set with the specified ID does not exist. // -// * DelegationSetInUse +// * ErrCodeDelegationSetInUse "DelegationSetInUse" // The specified delegation contains associated hosted zones which must be deleted // before the reusable delegation set can be deleted. // -// * DelegationSetNotReusable +// * ErrCodeDelegationSetNotReusable "DelegationSetNotReusable" // A reusable delegation set with the specified ID does not exist. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteReusableDelegationSet func (c *Route53) DeleteReusableDelegationSet(input *DeleteReusableDelegationSetInput) (*DeleteReusableDelegationSetOutput, error) { req, out := c.DeleteReusableDelegationSetRequest(input) err := req.Send() @@ -1224,6 +1345,7 @@ const opDeleteTrafficPolicy = "DeleteTrafficPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteTrafficPolicy func (c *Route53) DeleteTrafficPolicyRequest(input *DeleteTrafficPolicyInput) (req *request.Request, output *DeleteTrafficPolicyOutput) { op := &request.Operation{ Name: opDeleteTrafficPolicy, @@ -1235,9 +1357,8 @@ func (c *Route53) DeleteTrafficPolicyRequest(input *DeleteTrafficPolicyInput) (r input = &DeleteTrafficPolicyInput{} } - req = c.newRequest(op, input, output) output = &DeleteTrafficPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1245,8 +1366,7 @@ func (c *Route53) DeleteTrafficPolicyRequest(input *DeleteTrafficPolicyInput) (r // // Deletes a traffic policy. // -// Send a DELETE request to the /Amazon Route 53 API version/trafficpolicy -// resource. +// Send a DELETE request to the /Amazon Route 53 API version/trafficpolicy resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1256,20 +1376,21 @@ func (c *Route53) DeleteTrafficPolicyRequest(input *DeleteTrafficPolicyInput) (r // API operation DeleteTrafficPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchTrafficPolicy +// * ErrCodeNoSuchTrafficPolicy "NoSuchTrafficPolicy" // No traffic policy exists with the specified ID. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * TrafficPolicyInUse +// * ErrCodeTrafficPolicyInUse "TrafficPolicyInUse" // One or more traffic policy instances were created by using the specified // traffic policy. // -// * ConcurrentModification +// * ErrCodeConcurrentModification "ConcurrentModification" // Another user submitted a request to update the object at the same time that // you did. Retry the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteTrafficPolicy func (c *Route53) DeleteTrafficPolicy(input *DeleteTrafficPolicyInput) (*DeleteTrafficPolicyOutput, error) { req, out := c.DeleteTrafficPolicyRequest(input) err := req.Send() @@ -1302,6 +1423,7 @@ const opDeleteTrafficPolicyInstance = "DeleteTrafficPolicyInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteTrafficPolicyInstance func (c *Route53) DeleteTrafficPolicyInstanceRequest(input *DeleteTrafficPolicyInstanceInput) (req *request.Request, output *DeleteTrafficPolicyInstanceOutput) { op := &request.Operation{ Name: opDeleteTrafficPolicyInstance, @@ -1313,9 +1435,8 @@ func (c *Route53) DeleteTrafficPolicyInstanceRequest(input *DeleteTrafficPolicyI input = &DeleteTrafficPolicyInstanceInput{} } - req = c.newRequest(op, input, output) output = &DeleteTrafficPolicyInstanceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1325,9 +1446,9 @@ func (c *Route53) DeleteTrafficPolicyInstanceRequest(input *DeleteTrafficPolicyI // Amazon Route 53 created when you created the instance. // // Send a DELETE request to the /Amazon Route 53 API version/trafficpolicy/traffic -// policy instance ID resource. +// policy instance ID resource. // -// In the Amazon Route 53 console, traffic policy instances are known as policy +// In the Amazon Route 53 console, traffic policy instances are known as policy // records. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1338,254 +1459,281 @@ func (c *Route53) DeleteTrafficPolicyInstanceRequest(input *DeleteTrafficPolicyI // API operation DeleteTrafficPolicyInstance for usage and error information. // // Returned Error Codes: -// * NoSuchTrafficPolicyInstance +// * ErrCodeNoSuchTrafficPolicyInstance "NoSuchTrafficPolicyInstance" // No traffic policy instance exists with the specified ID. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * PriorRequestNotComplete +// * ErrCodePriorRequestNotComplete "PriorRequestNotComplete" // If Amazon Route 53 can't process a request before the next request arrives, // it will reject subsequent requests for the same hosted zone and return an // HTTP 400 error (Bad request). If Amazon Route 53 returns this error repeatedly // for the same request, we recommend that you wait, in intervals of increasing // duration, before you try the request again. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteTrafficPolicyInstance func (c *Route53) DeleteTrafficPolicyInstance(input *DeleteTrafficPolicyInstanceInput) (*DeleteTrafficPolicyInstanceOutput, error) { req, out := c.DeleteTrafficPolicyInstanceRequest(input) err := req.Send() return out, err } -const opDisassociateVPCFromHostedZone = "DisassociateVPCFromHostedZone" +const opDeleteVPCAssociationAuthorization = "DeleteVPCAssociationAuthorization" -// DisassociateVPCFromHostedZoneRequest generates a "aws/request.Request" representing the -// client's request for the DisassociateVPCFromHostedZone operation. The "output" return +// DeleteVPCAssociationAuthorizationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVPCAssociationAuthorization operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DisassociateVPCFromHostedZone for usage and error information. +// See DeleteVPCAssociationAuthorization for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DisassociateVPCFromHostedZone method directly +// you just want the service response, call the DeleteVPCAssociationAuthorization method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DisassociateVPCFromHostedZoneRequest method. -// req, resp := client.DisassociateVPCFromHostedZoneRequest(params) +// // Example sending a request using the DeleteVPCAssociationAuthorizationRequest method. +// req, resp := client.DeleteVPCAssociationAuthorizationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *Route53) DisassociateVPCFromHostedZoneRequest(input *DisassociateVPCFromHostedZoneInput) (req *request.Request, output *DisassociateVPCFromHostedZoneOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteVPCAssociationAuthorization +func (c *Route53) DeleteVPCAssociationAuthorizationRequest(input *DeleteVPCAssociationAuthorizationInput) (req *request.Request, output *DeleteVPCAssociationAuthorizationOutput) { op := &request.Operation{ - Name: opDisassociateVPCFromHostedZone, + Name: opDeleteVPCAssociationAuthorization, HTTPMethod: "POST", - HTTPPath: "/2013-04-01/hostedzone/{Id}/disassociatevpc", + HTTPPath: "/2013-04-01/hostedzone/{Id}/deauthorizevpcassociation", } if input == nil { - input = &DisassociateVPCFromHostedZoneInput{} + input = &DeleteVPCAssociationAuthorizationInput{} } + output = &DeleteVPCAssociationAuthorizationOutput{} req = c.newRequest(op, input, output) - output = &DisassociateVPCFromHostedZoneOutput{} - req.Data = output return } -// DisassociateVPCFromHostedZone API operation for Amazon Route 53. +// DeleteVPCAssociationAuthorization API operation for Amazon Route 53. // -// Disassociates a VPC from a Amazon Route 53 private hosted zone. +// Removes authorization to submit an AssociateVPCWithHostedZone request to +// associate a specified VPC with a hosted zone that was created by a different +// account. You must use the account that created the hosted zone to submit +// a DeleteVPCAssociationAuthorization request. // -// Send a POST request to the /2013-04-01/hostedzone/hosted zone ID/disassociatevpc -// resource. The request body must include an XML document with a DisassociateVPCFromHostedZoneRequest -// element. The response returns the DisassociateVPCFromHostedZoneResponse element. +// Sending this request only prevents the AWS account that created the VPC from +// associating the VPC with the Amazon Route 53 hosted zone in the future. If +// the VPC is already associated with the hosted zone, DeleteVPCAssociationAuthorization +// won't disassociate the VPC from the hosted zone. If you want to delete an +// existing association, use DisassociateVPCFromHostedZone. // -// You can only disassociate a VPC from a private hosted zone when two or -// more VPCs are associated with that hosted zone. You cannot convert a private -// hosted zone into a public hosted zone. +// Send a DELETE request to the /2013-04-01/hostedzone/hosted zone ID/deauthorizevpcassociation +// resource. The request body must include a document with a DeleteVPCAssociationAuthorizationRequest +// element. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Route 53's -// API operation DisassociateVPCFromHostedZone for usage and error information. +// API operation DeleteVPCAssociationAuthorization for usage and error information. // // Returned Error Codes: -// * NoSuchHostedZone -// No hosted zone exists with the ID that you specified. +// * ErrCodeConcurrentModification "ConcurrentModification" +// Another user submitted a request to update the object at the same time that +// you did. Retry the request. // -// * InvalidVPCId -// The hosted zone you are trying to create for your VPC_ID does not belong -// to you. Amazon Route 53 returns this error when the VPC specified by VPCId -// does not belong to you. +// * ErrCodeVPCAssociationAuthorizationNotFound "VPCAssociationAuthorizationNotFound" +// The VPC that you specified is not authorized to be associated with the hosted +// zone. // -// * VPCAssociationNotFound -// The specified VPC and hosted zone are not currently associated. +// * ErrCodeNoSuchHostedZone "NoSuchHostedZone" +// No hosted zone exists with the ID that you specified. // -// * LastVPCAssociation -// Only one VPC is currently associated with the hosted zone. You cannot convert -// a private hosted zone into a public hosted zone by disassociating the last -// VPC from a hosted zone. +// * ErrCodeInvalidVPCId "InvalidVPCId" +// The VPC ID that you specified either isn't a valid ID or the current account +// is not authorized to access this VPC. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -func (c *Route53) DisassociateVPCFromHostedZone(input *DisassociateVPCFromHostedZoneInput) (*DisassociateVPCFromHostedZoneOutput, error) { - req, out := c.DisassociateVPCFromHostedZoneRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteVPCAssociationAuthorization +func (c *Route53) DeleteVPCAssociationAuthorization(input *DeleteVPCAssociationAuthorizationInput) (*DeleteVPCAssociationAuthorizationOutput, error) { + req, out := c.DeleteVPCAssociationAuthorizationRequest(input) err := req.Send() return out, err } -const opGetChange = "GetChange" +const opDisassociateVPCFromHostedZone = "DisassociateVPCFromHostedZone" -// GetChangeRequest generates a "aws/request.Request" representing the -// client's request for the GetChange operation. The "output" return +// DisassociateVPCFromHostedZoneRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateVPCFromHostedZone operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See GetChange for usage and error information. +// See DisassociateVPCFromHostedZone for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the GetChange method directly +// you just want the service response, call the DisassociateVPCFromHostedZone method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the GetChangeRequest method. -// req, resp := client.GetChangeRequest(params) +// // Example sending a request using the DisassociateVPCFromHostedZoneRequest method. +// req, resp := client.DisassociateVPCFromHostedZoneRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *Route53) GetChangeRequest(input *GetChangeInput) (req *request.Request, output *GetChangeOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DisassociateVPCFromHostedZone +func (c *Route53) DisassociateVPCFromHostedZoneRequest(input *DisassociateVPCFromHostedZoneInput) (req *request.Request, output *DisassociateVPCFromHostedZoneOutput) { op := &request.Operation{ - Name: opGetChange, - HTTPMethod: "GET", - HTTPPath: "/2013-04-01/change/{Id}", + Name: opDisassociateVPCFromHostedZone, + HTTPMethod: "POST", + HTTPPath: "/2013-04-01/hostedzone/{Id}/disassociatevpc", } if input == nil { - input = &GetChangeInput{} + input = &DisassociateVPCFromHostedZoneInput{} } + output = &DisassociateVPCFromHostedZoneOutput{} req = c.newRequest(op, input, output) - output = &GetChangeOutput{} - req.Data = output return } -// GetChange API operation for Amazon Route 53. +// DisassociateVPCFromHostedZone API operation for Amazon Route 53. // -// Returns the current status of a change batch request. The status is one of -// the following values: +// Disassociates a VPC from a Amazon Route 53 private hosted zone. // -// PENDING indicates that the changes in this request have not replicated -// to all Amazon Route 53 DNS servers. This is the initial status of all change -// batch requests. +// You can't disassociate the last VPC from a private hosted zone. // -// INSYNC indicates that the changes have replicated to all Amazon Route -// 53 DNS servers. +// Send a POST request to the /2013-04-01/hostedzone/hosted zone ID/disassociatevpc +// resource. The request body must include a document with a DisassociateVPCFromHostedZoneRequest +// element. The response includes a DisassociateVPCFromHostedZoneResponse element. +// +// You can't disassociate a VPC from a private hosted zone when only one VPC +// is associated with the hosted zone. You also can't convert a private hosted +// zone into a public hosted zone. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Route 53's -// API operation GetChange for usage and error information. +// API operation DisassociateVPCFromHostedZone for usage and error information. // // Returned Error Codes: -// * NoSuchChange -// A change with the specified change ID does not exist. +// * ErrCodeNoSuchHostedZone "NoSuchHostedZone" +// No hosted zone exists with the ID that you specified. +// +// * ErrCodeInvalidVPCId "InvalidVPCId" +// The VPC ID that you specified either isn't a valid ID or the current account +// is not authorized to access this VPC. +// +// * ErrCodeVPCAssociationNotFound "VPCAssociationNotFound" +// The specified VPC and hosted zone are not currently associated. +// +// * ErrCodeLastVPCAssociation "LastVPCAssociation" +// The VPC that you're trying to disassociate from the private hosted zone is +// the last VPC that is associated with the hosted zone. Amazon Route 53 doesn't +// support disassociating the last VPC from a hosted zone. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -func (c *Route53) GetChange(input *GetChangeInput) (*GetChangeOutput, error) { - req, out := c.GetChangeRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DisassociateVPCFromHostedZone +func (c *Route53) DisassociateVPCFromHostedZone(input *DisassociateVPCFromHostedZoneInput) (*DisassociateVPCFromHostedZoneOutput, error) { + req, out := c.DisassociateVPCFromHostedZoneRequest(input) err := req.Send() return out, err } -const opGetChangeDetails = "GetChangeDetails" +const opGetChange = "GetChange" -// GetChangeDetailsRequest generates a "aws/request.Request" representing the -// client's request for the GetChangeDetails operation. The "output" return +// GetChangeRequest generates a "aws/request.Request" representing the +// client's request for the GetChange operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See GetChangeDetails for usage and error information. +// See GetChange for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the GetChangeDetails method directly +// you just want the service response, call the GetChange method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the GetChangeDetailsRequest method. -// req, resp := client.GetChangeDetailsRequest(params) +// // Example sending a request using the GetChangeRequest method. +// req, resp := client.GetChangeRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *Route53) GetChangeDetailsRequest(input *GetChangeDetailsInput) (req *request.Request, output *GetChangeDetailsOutput) { - if c.Client.Config.Logger != nil { - c.Client.Config.Logger.Log("This operation, GetChangeDetails, has been deprecated") - } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetChange +func (c *Route53) GetChangeRequest(input *GetChangeInput) (req *request.Request, output *GetChangeOutput) { op := &request.Operation{ - Name: opGetChangeDetails, + Name: opGetChange, HTTPMethod: "GET", - HTTPPath: "/2013-04-01/changedetails/{Id}", + HTTPPath: "/2013-04-01/change/{Id}", } if input == nil { - input = &GetChangeDetailsInput{} + input = &GetChangeInput{} } + output = &GetChangeOutput{} req = c.newRequest(op, input, output) - output = &GetChangeDetailsOutput{} - req.Data = output return } -// GetChangeDetails API operation for Amazon Route 53. +// GetChange API operation for Amazon Route 53. +// +// Returns the current status of a change batch request. The status is one of +// the following values: +// +// * PENDING indicates that the changes in this request have not replicated +// to all Amazon Route 53 DNS servers. This is the initial status of all +// change batch requests. // -// Returns the status and changes of a change batch request. +// * INSYNC indicates that the changes have replicated to all Amazon Route +// 53 DNS servers. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Route 53's -// API operation GetChangeDetails for usage and error information. +// API operation GetChange for usage and error information. // // Returned Error Codes: -// * NoSuchChange +// * ErrCodeNoSuchChange "NoSuchChange" // A change with the specified change ID does not exist. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -func (c *Route53) GetChangeDetails(input *GetChangeDetailsInput) (*GetChangeDetailsOutput, error) { - req, out := c.GetChangeDetailsRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetChange +func (c *Route53) GetChange(input *GetChangeInput) (*GetChangeOutput, error) { + req, out := c.GetChangeRequest(input) err := req.Send() return out, err } @@ -1616,6 +1764,7 @@ const opGetCheckerIpRanges = "GetCheckerIpRanges" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetCheckerIpRanges func (c *Route53) GetCheckerIpRangesRequest(input *GetCheckerIpRangesInput) (req *request.Request, output *GetCheckerIpRangesOutput) { op := &request.Operation{ Name: opGetCheckerIpRanges, @@ -1627,19 +1776,17 @@ func (c *Route53) GetCheckerIpRangesRequest(input *GetCheckerIpRangesInput) (req input = &GetCheckerIpRangesInput{} } - req = c.newRequest(op, input, output) output = &GetCheckerIpRangesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // GetCheckerIpRanges API operation for Amazon Route 53. // -// Retrieves a list of the IP ranges used by Amazon Route 53 health checkers -// to check the health of your resources. Send a GET request to the /Amazon -// Route 53 API version/checkeripranges resource. Use these IP addresses to -// configure router and firewall rules to allow health checkers to check the -// health of your resources. +// GetCheckerIpRanges still works, but we recommend that you download ip-ranges.json, +// which includes IP address ranges for all AWS services. For more information, +// see IP Address Ranges of Amazon Route 53 Servers (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/route-53-ip-addresses.html) +// in the Amazon Route 53 Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1647,6 +1794,7 @@ func (c *Route53) GetCheckerIpRangesRequest(input *GetCheckerIpRangesInput) (req // // See the AWS API reference guide for Amazon Route 53's // API operation GetCheckerIpRanges for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetCheckerIpRanges func (c *Route53) GetCheckerIpRanges(input *GetCheckerIpRangesInput) (*GetCheckerIpRangesOutput, error) { req, out := c.GetCheckerIpRangesRequest(input) err := req.Send() @@ -1679,6 +1827,7 @@ const opGetGeoLocation = "GetGeoLocation" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetGeoLocation func (c *Route53) GetGeoLocationRequest(input *GetGeoLocationInput) (req *request.Request, output *GetGeoLocationOutput) { op := &request.Operation{ Name: opGetGeoLocation, @@ -1690,9 +1839,8 @@ func (c *Route53) GetGeoLocationRequest(input *GetGeoLocationInput) (req *reques input = &GetGeoLocationInput{} } - req = c.newRequest(op, input, output) output = &GetGeoLocationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1710,12 +1858,13 @@ func (c *Route53) GetGeoLocationRequest(input *GetGeoLocationInput) (req *reques // API operation GetGeoLocation for usage and error information. // // Returned Error Codes: -// * NoSuchGeoLocation +// * ErrCodeNoSuchGeoLocation "NoSuchGeoLocation" // Amazon Route 53 doesn't support the specified geolocation. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetGeoLocation func (c *Route53) GetGeoLocation(input *GetGeoLocationInput) (*GetGeoLocationOutput, error) { req, out := c.GetGeoLocationRequest(input) err := req.Send() @@ -1748,6 +1897,7 @@ const opGetHealthCheck = "GetHealthCheck" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHealthCheck func (c *Route53) GetHealthCheckRequest(input *GetHealthCheckInput) (req *request.Request, output *GetHealthCheckOutput) { op := &request.Operation{ Name: opGetHealthCheck, @@ -1759,16 +1909,15 @@ func (c *Route53) GetHealthCheckRequest(input *GetHealthCheckInput) (req *reques input = &GetHealthCheckInput{} } - req = c.newRequest(op, input, output) output = &GetHealthCheckOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // GetHealthCheck API operation for Amazon Route 53. // // Gets information about a specified health check. Send a GET request to the -// /2013-04-01/healthcheck/health check ID resource. For more information about +// /2013-04-01/healthcheck/health check ID resource. For more information about // using the console to perform this operation, see Amazon Route 53 Health Checks // and DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html) // in the Amazon Route 53 Developer Guide. @@ -1781,17 +1930,18 @@ func (c *Route53) GetHealthCheckRequest(input *GetHealthCheckInput) (req *reques // API operation GetHealthCheck for usage and error information. // // Returned Error Codes: -// * NoSuchHealthCheck +// * ErrCodeNoSuchHealthCheck "NoSuchHealthCheck" // No health check exists with the ID that you specified in the DeleteHealthCheck // request. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * IncompatibleVersion -// The resource you are trying to access is unsupported on this Amazon Route -// 53 endpoint. Please consider using a newer endpoint or a tool that does so. +// * ErrCodeIncompatibleVersion "IncompatibleVersion" +// The resource you're trying to access is unsupported on this Amazon Route +// 53 endpoint. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHealthCheck func (c *Route53) GetHealthCheck(input *GetHealthCheckInput) (*GetHealthCheckOutput, error) { req, out := c.GetHealthCheckRequest(input) err := req.Send() @@ -1824,6 +1974,7 @@ const opGetHealthCheckCount = "GetHealthCheckCount" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHealthCheckCount func (c *Route53) GetHealthCheckCountRequest(input *GetHealthCheckCountInput) (req *request.Request, output *GetHealthCheckCountOutput) { op := &request.Operation{ Name: opGetHealthCheckCount, @@ -1835,9 +1986,8 @@ func (c *Route53) GetHealthCheckCountRequest(input *GetHealthCheckCountInput) (r input = &GetHealthCheckCountInput{} } - req = c.newRequest(op, input, output) output = &GetHealthCheckCountOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1852,6 +2002,7 @@ func (c *Route53) GetHealthCheckCountRequest(input *GetHealthCheckCountInput) (r // // See the AWS API reference guide for Amazon Route 53's // API operation GetHealthCheckCount for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHealthCheckCount func (c *Route53) GetHealthCheckCount(input *GetHealthCheckCountInput) (*GetHealthCheckCountOutput, error) { req, out := c.GetHealthCheckCountRequest(input) err := req.Send() @@ -1884,6 +2035,7 @@ const opGetHealthCheckLastFailureReason = "GetHealthCheckLastFailureReason" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHealthCheckLastFailureReason func (c *Route53) GetHealthCheckLastFailureReasonRequest(input *GetHealthCheckLastFailureReasonInput) (req *request.Request, output *GetHealthCheckLastFailureReasonOutput) { op := &request.Operation{ Name: opGetHealthCheckLastFailureReason, @@ -1895,9 +2047,8 @@ func (c *Route53) GetHealthCheckLastFailureReasonRequest(input *GetHealthCheckLa input = &GetHealthCheckLastFailureReasonInput{} } - req = c.newRequest(op, input, output) output = &GetHealthCheckLastFailureReasonOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1916,13 +2067,14 @@ func (c *Route53) GetHealthCheckLastFailureReasonRequest(input *GetHealthCheckLa // API operation GetHealthCheckLastFailureReason for usage and error information. // // Returned Error Codes: -// * NoSuchHealthCheck +// * ErrCodeNoSuchHealthCheck "NoSuchHealthCheck" // No health check exists with the ID that you specified in the DeleteHealthCheck // request. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHealthCheckLastFailureReason func (c *Route53) GetHealthCheckLastFailureReason(input *GetHealthCheckLastFailureReasonInput) (*GetHealthCheckLastFailureReasonOutput, error) { req, out := c.GetHealthCheckLastFailureReasonRequest(input) err := req.Send() @@ -1955,6 +2107,7 @@ const opGetHealthCheckStatus = "GetHealthCheckStatus" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHealthCheckStatus func (c *Route53) GetHealthCheckStatusRequest(input *GetHealthCheckStatusInput) (req *request.Request, output *GetHealthCheckStatusOutput) { op := &request.Operation{ Name: opGetHealthCheckStatus, @@ -1966,9 +2119,8 @@ func (c *Route53) GetHealthCheckStatusRequest(input *GetHealthCheckStatusInput) input = &GetHealthCheckStatusInput{} } - req = c.newRequest(op, input, output) output = &GetHealthCheckStatusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1986,13 +2138,14 @@ func (c *Route53) GetHealthCheckStatusRequest(input *GetHealthCheckStatusInput) // API operation GetHealthCheckStatus for usage and error information. // // Returned Error Codes: -// * NoSuchHealthCheck +// * ErrCodeNoSuchHealthCheck "NoSuchHealthCheck" // No health check exists with the ID that you specified in the DeleteHealthCheck // request. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHealthCheckStatus func (c *Route53) GetHealthCheckStatus(input *GetHealthCheckStatusInput) (*GetHealthCheckStatusOutput, error) { req, out := c.GetHealthCheckStatusRequest(input) err := req.Send() @@ -2025,6 +2178,7 @@ const opGetHostedZone = "GetHostedZone" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHostedZone func (c *Route53) GetHostedZoneRequest(input *GetHostedZoneInput) (req *request.Request, output *GetHostedZoneOutput) { op := &request.Operation{ Name: opGetHostedZone, @@ -2036,9 +2190,8 @@ func (c *Route53) GetHostedZoneRequest(input *GetHostedZoneInput) (req *request. input = &GetHostedZoneInput{} } - req = c.newRequest(op, input, output) output = &GetHostedZoneOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2046,7 +2199,7 @@ func (c *Route53) GetHostedZoneRequest(input *GetHostedZoneInput) (req *request. // // Retrieves the delegation set for a hosted zone, including the four name servers // assigned to the hosted zone. Send a GET request to the /Amazon Route 53 API -// version/hostedzone/hosted zone ID resource. +// version/hostedzone/hosted zone ID resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2056,12 +2209,13 @@ func (c *Route53) GetHostedZoneRequest(input *GetHostedZoneInput) (req *request. // API operation GetHostedZone for usage and error information. // // Returned Error Codes: -// * NoSuchHostedZone +// * ErrCodeNoSuchHostedZone "NoSuchHostedZone" // No hosted zone exists with the ID that you specified. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHostedZone func (c *Route53) GetHostedZone(input *GetHostedZoneInput) (*GetHostedZoneOutput, error) { req, out := c.GetHostedZoneRequest(input) err := req.Send() @@ -2094,6 +2248,7 @@ const opGetHostedZoneCount = "GetHostedZoneCount" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHostedZoneCount func (c *Route53) GetHostedZoneCountRequest(input *GetHostedZoneCountInput) (req *request.Request, output *GetHostedZoneCountOutput) { op := &request.Operation{ Name: opGetHostedZoneCount, @@ -2105,9 +2260,8 @@ func (c *Route53) GetHostedZoneCountRequest(input *GetHostedZoneCountInput) (req input = &GetHostedZoneCountInput{} } - req = c.newRequest(op, input, output) output = &GetHostedZoneCountOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2124,9 +2278,10 @@ func (c *Route53) GetHostedZoneCountRequest(input *GetHostedZoneCountInput) (req // API operation GetHostedZoneCount for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHostedZoneCount func (c *Route53) GetHostedZoneCount(input *GetHostedZoneCountInput) (*GetHostedZoneCountOutput, error) { req, out := c.GetHostedZoneCountRequest(input) err := req.Send() @@ -2159,6 +2314,7 @@ const opGetReusableDelegationSet = "GetReusableDelegationSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetReusableDelegationSet func (c *Route53) GetReusableDelegationSetRequest(input *GetReusableDelegationSetInput) (req *request.Request, output *GetReusableDelegationSetOutput) { op := &request.Operation{ Name: opGetReusableDelegationSet, @@ -2170,16 +2326,15 @@ func (c *Route53) GetReusableDelegationSetRequest(input *GetReusableDelegationSe input = &GetReusableDelegationSetInput{} } - req = c.newRequest(op, input, output) output = &GetReusableDelegationSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // GetReusableDelegationSet API operation for Amazon Route 53. // // Retrieves the reusable delegation set. Send a GET request to the /2013-04-01/delegationset/delegation -// set ID resource. +// set ID resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2189,15 +2344,16 @@ func (c *Route53) GetReusableDelegationSetRequest(input *GetReusableDelegationSe // API operation GetReusableDelegationSet for usage and error information. // // Returned Error Codes: -// * NoSuchDelegationSet +// * ErrCodeNoSuchDelegationSet "NoSuchDelegationSet" // A reusable delegation set with the specified ID does not exist. // -// * DelegationSetNotReusable +// * ErrCodeDelegationSetNotReusable "DelegationSetNotReusable" // A reusable delegation set with the specified ID does not exist. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetReusableDelegationSet func (c *Route53) GetReusableDelegationSet(input *GetReusableDelegationSetInput) (*GetReusableDelegationSetOutput, error) { req, out := c.GetReusableDelegationSetRequest(input) err := req.Send() @@ -2230,6 +2386,7 @@ const opGetTrafficPolicy = "GetTrafficPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetTrafficPolicy func (c *Route53) GetTrafficPolicyRequest(input *GetTrafficPolicyInput) (req *request.Request, output *GetTrafficPolicyOutput) { op := &request.Operation{ Name: opGetTrafficPolicy, @@ -2241,9 +2398,8 @@ func (c *Route53) GetTrafficPolicyRequest(input *GetTrafficPolicyInput) (req *re input = &GetTrafficPolicyInput{} } - req = c.newRequest(op, input, output) output = &GetTrafficPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2261,12 +2417,13 @@ func (c *Route53) GetTrafficPolicyRequest(input *GetTrafficPolicyInput) (req *re // API operation GetTrafficPolicy for usage and error information. // // Returned Error Codes: -// * NoSuchTrafficPolicy +// * ErrCodeNoSuchTrafficPolicy "NoSuchTrafficPolicy" // No traffic policy exists with the specified ID. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetTrafficPolicy func (c *Route53) GetTrafficPolicy(input *GetTrafficPolicyInput) (*GetTrafficPolicyOutput, error) { req, out := c.GetTrafficPolicyRequest(input) err := req.Send() @@ -2299,6 +2456,7 @@ const opGetTrafficPolicyInstance = "GetTrafficPolicyInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetTrafficPolicyInstance func (c *Route53) GetTrafficPolicyInstanceRequest(input *GetTrafficPolicyInstanceInput) (req *request.Request, output *GetTrafficPolicyInstanceOutput) { op := &request.Operation{ Name: opGetTrafficPolicyInstance, @@ -2310,9 +2468,8 @@ func (c *Route53) GetTrafficPolicyInstanceRequest(input *GetTrafficPolicyInstanc input = &GetTrafficPolicyInstanceInput{} } - req = c.newRequest(op, input, output) output = &GetTrafficPolicyInstanceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2323,13 +2480,13 @@ func (c *Route53) GetTrafficPolicyInstanceRequest(input *GetTrafficPolicyInstanc // Send a GET request to the /Amazon Route 53 API version/trafficpolicyinstance // resource. // -// After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance +// After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance // request, there's a brief delay while Amazon Route 53 creates the resource // record sets that are specified in the traffic policy definition. For more // information, see the State response element. // -// In the Amazon Route 53 console, traffic policy instances are known as -// policy records. +// In the Amazon Route 53 console, traffic policy instances are known as policy +// records. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2339,12 +2496,13 @@ func (c *Route53) GetTrafficPolicyInstanceRequest(input *GetTrafficPolicyInstanc // API operation GetTrafficPolicyInstance for usage and error information. // // Returned Error Codes: -// * NoSuchTrafficPolicyInstance +// * ErrCodeNoSuchTrafficPolicyInstance "NoSuchTrafficPolicyInstance" // No traffic policy instance exists with the specified ID. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetTrafficPolicyInstance func (c *Route53) GetTrafficPolicyInstance(input *GetTrafficPolicyInstanceInput) (*GetTrafficPolicyInstanceOutput, error) { req, out := c.GetTrafficPolicyInstanceRequest(input) err := req.Send() @@ -2377,6 +2535,7 @@ const opGetTrafficPolicyInstanceCount = "GetTrafficPolicyInstanceCount" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetTrafficPolicyInstanceCount func (c *Route53) GetTrafficPolicyInstanceCountRequest(input *GetTrafficPolicyInstanceCountInput) (req *request.Request, output *GetTrafficPolicyInstanceCountOutput) { op := &request.Operation{ Name: opGetTrafficPolicyInstanceCount, @@ -2388,9 +2547,8 @@ func (c *Route53) GetTrafficPolicyInstanceCountRequest(input *GetTrafficPolicyIn input = &GetTrafficPolicyInstanceCountInput{} } - req = c.newRequest(op, input, output) output = &GetTrafficPolicyInstanceCountOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2408,254 +2566,115 @@ func (c *Route53) GetTrafficPolicyInstanceCountRequest(input *GetTrafficPolicyIn // // See the AWS API reference guide for Amazon Route 53's // API operation GetTrafficPolicyInstanceCount for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetTrafficPolicyInstanceCount func (c *Route53) GetTrafficPolicyInstanceCount(input *GetTrafficPolicyInstanceCountInput) (*GetTrafficPolicyInstanceCountOutput, error) { req, out := c.GetTrafficPolicyInstanceCountRequest(input) err := req.Send() return out, err } -const opListChangeBatchesByHostedZone = "ListChangeBatchesByHostedZone" +const opListGeoLocations = "ListGeoLocations" -// ListChangeBatchesByHostedZoneRequest generates a "aws/request.Request" representing the -// client's request for the ListChangeBatchesByHostedZone operation. The "output" return +// ListGeoLocationsRequest generates a "aws/request.Request" representing the +// client's request for the ListGeoLocations operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ListChangeBatchesByHostedZone for usage and error information. +// See ListGeoLocations for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ListChangeBatchesByHostedZone method directly +// you just want the service response, call the ListGeoLocations method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ListChangeBatchesByHostedZoneRequest method. -// req, resp := client.ListChangeBatchesByHostedZoneRequest(params) +// // Example sending a request using the ListGeoLocationsRequest method. +// req, resp := client.ListGeoLocationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *Route53) ListChangeBatchesByHostedZoneRequest(input *ListChangeBatchesByHostedZoneInput) (req *request.Request, output *ListChangeBatchesByHostedZoneOutput) { - if c.Client.Config.Logger != nil { - c.Client.Config.Logger.Log("This operation, ListChangeBatchesByHostedZone, has been deprecated") - } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListGeoLocations +func (c *Route53) ListGeoLocationsRequest(input *ListGeoLocationsInput) (req *request.Request, output *ListGeoLocationsOutput) { op := &request.Operation{ - Name: opListChangeBatchesByHostedZone, + Name: opListGeoLocations, HTTPMethod: "GET", - HTTPPath: "/2013-04-01/hostedzone/{Id}/changes", + HTTPPath: "/2013-04-01/geolocations", } if input == nil { - input = &ListChangeBatchesByHostedZoneInput{} + input = &ListGeoLocationsInput{} } + output = &ListGeoLocationsOutput{} req = c.newRequest(op, input, output) - output = &ListChangeBatchesByHostedZoneOutput{} - req.Data = output return } -// ListChangeBatchesByHostedZone API operation for Amazon Route 53. +// ListGeoLocations API operation for Amazon Route 53. +// +// Retrieves a list of supported geo locations. Send a GET request to the /2013-04-01/geolocations +// resource. The response to this request includes a GeoLocationDetailsList +// element for each location that Amazon Route 53 supports. // -// Gets the list of ChangeBatches in a given time period for a given hosted -// zone. +// Countries are listed first, and continents are listed last. If Amazon Route +// 53 supports subdivisions for a country (for example, states or provinces), +// the subdivisions for that country are listed in alphabetical order immediately +// after the corresponding country. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Route 53's -// API operation ListChangeBatchesByHostedZone for usage and error information. +// API operation ListGeoLocations for usage and error information. // // Returned Error Codes: -// * NoSuchHostedZone -// No hosted zone exists with the ID that you specified. -// -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -func (c *Route53) ListChangeBatchesByHostedZone(input *ListChangeBatchesByHostedZoneInput) (*ListChangeBatchesByHostedZoneOutput, error) { - req, out := c.ListChangeBatchesByHostedZoneRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListGeoLocations +func (c *Route53) ListGeoLocations(input *ListGeoLocationsInput) (*ListGeoLocationsOutput, error) { + req, out := c.ListGeoLocationsRequest(input) err := req.Send() return out, err } -const opListChangeBatchesByRRSet = "ListChangeBatchesByRRSet" +const opListHealthChecks = "ListHealthChecks" -// ListChangeBatchesByRRSetRequest generates a "aws/request.Request" representing the -// client's request for the ListChangeBatchesByRRSet operation. The "output" return +// ListHealthChecksRequest generates a "aws/request.Request" representing the +// client's request for the ListHealthChecks operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ListChangeBatchesByRRSet for usage and error information. +// See ListHealthChecks for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ListChangeBatchesByRRSet method directly +// you just want the service response, call the ListHealthChecks method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ListChangeBatchesByRRSetRequest method. -// req, resp := client.ListChangeBatchesByRRSetRequest(params) +// // Example sending a request using the ListHealthChecksRequest method. +// req, resp := client.ListHealthChecksRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *Route53) ListChangeBatchesByRRSetRequest(input *ListChangeBatchesByRRSetInput) (req *request.Request, output *ListChangeBatchesByRRSetOutput) { - if c.Client.Config.Logger != nil { - c.Client.Config.Logger.Log("This operation, ListChangeBatchesByRRSet, has been deprecated") - } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHealthChecks +func (c *Route53) ListHealthChecksRequest(input *ListHealthChecksInput) (req *request.Request, output *ListHealthChecksOutput) { op := &request.Operation{ - Name: opListChangeBatchesByRRSet, - HTTPMethod: "GET", - HTTPPath: "/2013-04-01/hostedzone/{Id}/rrsChanges", - } - - if input == nil { - input = &ListChangeBatchesByRRSetInput{} - } - - req = c.newRequest(op, input, output) - output = &ListChangeBatchesByRRSetOutput{} - req.Data = output - return -} - -// ListChangeBatchesByRRSet API operation for Amazon Route 53. -// -// Gets the list of ChangeBatches in a given time period for a given hosted -// zone and RRSet. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Amazon Route 53's -// API operation ListChangeBatchesByRRSet for usage and error information. -// -// Returned Error Codes: -// * NoSuchHostedZone -// No hosted zone exists with the ID that you specified. -// -// * InvalidInput -// The input is not valid. -// -func (c *Route53) ListChangeBatchesByRRSet(input *ListChangeBatchesByRRSetInput) (*ListChangeBatchesByRRSetOutput, error) { - req, out := c.ListChangeBatchesByRRSetRequest(input) - err := req.Send() - return out, err -} - -const opListGeoLocations = "ListGeoLocations" - -// ListGeoLocationsRequest generates a "aws/request.Request" representing the -// client's request for the ListGeoLocations operation. The "output" return -// value can be used to capture response data after the request's "Send" method -// is called. -// -// See ListGeoLocations for usage and error information. -// -// Creating a request object using this method should be used when you want to inject -// custom logic into the request's lifecycle using a custom handler, or if you want to -// access properties on the request object before or after sending the request. If -// you just want the service response, call the ListGeoLocations method directly -// instead. -// -// Note: You must call the "Send" method on the returned request object in order -// to execute the request. -// -// // Example sending a request using the ListGeoLocationsRequest method. -// req, resp := client.ListGeoLocationsRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -func (c *Route53) ListGeoLocationsRequest(input *ListGeoLocationsInput) (req *request.Request, output *ListGeoLocationsOutput) { - op := &request.Operation{ - Name: opListGeoLocations, - HTTPMethod: "GET", - HTTPPath: "/2013-04-01/geolocations", - } - - if input == nil { - input = &ListGeoLocationsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListGeoLocationsOutput{} - req.Data = output - return -} - -// ListGeoLocations API operation for Amazon Route 53. -// -// Retrieves a list of supported geo locations. Send a GET request to the /2013-04-01/geolocations -// resource. The response to this request includes a GeoLocationDetailsList -// element for each location that Amazon Route 53 supports. -// -// Countries are listed first, and continents are listed last. If Amazon Route -// 53 supports subdivisions for a country (for example, states or provinces), -// the subdivisions for that country are listed in alphabetical order immediately -// after the corresponding country. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Amazon Route 53's -// API operation ListGeoLocations for usage and error information. -// -// Returned Error Codes: -// * InvalidInput -// The input is not valid. -// -func (c *Route53) ListGeoLocations(input *ListGeoLocationsInput) (*ListGeoLocationsOutput, error) { - req, out := c.ListGeoLocationsRequest(input) - err := req.Send() - return out, err -} - -const opListHealthChecks = "ListHealthChecks" - -// ListHealthChecksRequest generates a "aws/request.Request" representing the -// client's request for the ListHealthChecks operation. The "output" return -// value can be used to capture response data after the request's "Send" method -// is called. -// -// See ListHealthChecks for usage and error information. -// -// Creating a request object using this method should be used when you want to inject -// custom logic into the request's lifecycle using a custom handler, or if you want to -// access properties on the request object before or after sending the request. If -// you just want the service response, call the ListHealthChecks method directly -// instead. -// -// Note: You must call the "Send" method on the returned request object in order -// to execute the request. -// -// // Example sending a request using the ListHealthChecksRequest method. -// req, resp := client.ListHealthChecksRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -func (c *Route53) ListHealthChecksRequest(input *ListHealthChecksInput) (req *request.Request, output *ListHealthChecksOutput) { - op := &request.Operation{ - Name: opListHealthChecks, + Name: opListHealthChecks, HTTPMethod: "GET", HTTPPath: "/2013-04-01/healthcheck", Paginator: &request.Paginator{ @@ -2670,9 +2689,8 @@ func (c *Route53) ListHealthChecksRequest(input *ListHealthChecksInput) (req *re input = &ListHealthChecksInput{} } - req = c.newRequest(op, input, output) output = &ListHealthChecksOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2696,13 +2714,14 @@ func (c *Route53) ListHealthChecksRequest(input *ListHealthChecksInput) (req *re // API operation ListHealthChecks for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * IncompatibleVersion -// The resource you are trying to access is unsupported on this Amazon Route -// 53 endpoint. Please consider using a newer endpoint or a tool that does so. +// * ErrCodeIncompatibleVersion "IncompatibleVersion" +// The resource you're trying to access is unsupported on this Amazon Route +// 53 endpoint. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHealthChecks func (c *Route53) ListHealthChecks(input *ListHealthChecksInput) (*ListHealthChecksOutput, error) { req, out := c.ListHealthChecksRequest(input) err := req.Send() @@ -2760,6 +2779,7 @@ const opListHostedZones = "ListHostedZones" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHostedZones func (c *Route53) ListHostedZonesRequest(input *ListHostedZonesInput) (req *request.Request, output *ListHostedZonesOutput) { op := &request.Operation{ Name: opListHostedZones, @@ -2777,9 +2797,8 @@ func (c *Route53) ListHostedZonesRequest(input *ListHostedZonesInput) (req *requ input = &ListHostedZonesInput{} } - req = c.newRequest(op, input, output) output = &ListHostedZonesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2790,27 +2809,27 @@ func (c *Route53) ListHostedZonesRequest(input *ListHostedZonesInput) (req *requ // a HostedZones child element for each hosted zone created by the current AWS // account. // -// Amazon Route 53 returns a maximum of 100 items in each response. If you -// have a lot of hosted zones, you can use the maxitems parameter to list them -// in groups of up to 100. The response includes four values that help navigate +// Amazon Route 53 returns a maximum of 100 items in each response. If you have +// a lot of hosted zones, you can use the maxitems parameter to list them in +// groups of up to 100. The response includes four values that help navigate // from one group of maxitems hosted zones to the next: // -// MaxItems is the value specified for the maxitems parameter in the request -// that produced the current response. +// * MaxItems is the value specified for the maxitems parameter in the request +// that produced the current response. // -// If the value of IsTruncated in the response is true, there are more hosted -// zones associated with the current AWS account. +// * If the value of IsTruncated in the response is true, there are more +// hosted zones associated with the current AWS account. // -// NextMarker is the hosted zone ID of the next hosted zone that is associated -// with the current AWS account. If you want to list more hosted zones, make -// another call to ListHostedZones, and specify the value of the NextMarker -// element in the marker parameter. +// * NextMarker is the hosted zone ID of the next hosted zone that is associated +// with the current AWS account. If you want to list more hosted zones, make +// another call to ListHostedZones, and specify the value of the NextMarker +// element in the marker parameter. // // If IsTruncated is false, the NextMarker element is omitted from the response. // -// If you're making the second or subsequent call to ListHostedZones, the -// Marker element matches the value that you specified in the marker parameter -// in the previous request. +// * If you're making the second or subsequent call to ListHostedZones, the +// Marker element matches the value that you specified in the marker parameter +// in the previous request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2820,15 +2839,16 @@ func (c *Route53) ListHostedZonesRequest(input *ListHostedZonesInput) (req *requ // API operation ListHostedZones for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * NoSuchDelegationSet +// * ErrCodeNoSuchDelegationSet "NoSuchDelegationSet" // A reusable delegation set with the specified ID does not exist. // -// * DelegationSetNotReusable +// * ErrCodeDelegationSetNotReusable "DelegationSetNotReusable" // A reusable delegation set with the specified ID does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHostedZones func (c *Route53) ListHostedZones(input *ListHostedZonesInput) (*ListHostedZonesOutput, error) { req, out := c.ListHostedZonesRequest(input) err := req.Send() @@ -2886,6 +2906,7 @@ const opListHostedZonesByName = "ListHostedZonesByName" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHostedZonesByName func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput) (req *request.Request, output *ListHostedZonesByNameOutput) { op := &request.Operation{ Name: opListHostedZonesByName, @@ -2897,9 +2918,8 @@ func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput input = &ListHostedZonesByNameInput{} } - req = c.newRequest(op, input, output) output = &ListHostedZonesByNameOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2910,12 +2930,12 @@ func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput // a HostedZones child element for each hosted zone created by the current AWS // account. // -// ListHostedZonesByName sorts hosted zones by name with the labels reversed. +// ListHostedZonesByName sorts hosted zones by name with the labels reversed. // For example: // -// com.example.www. +// * com.example.www. // -// Note the trailing dot, which can change the sort order in some circumstances. +// Note the trailing dot, which can change the sort order in some circumstances. // // If the domain name includes escape characters or Punycode, ListHostedZonesByName // alphabetizes the domain name using the escaped or Punycoded value, which @@ -2923,38 +2943,39 @@ func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput // create a hosted zone for example.com, specify ex\344mple.com for the domain // name. ListHostedZonesByName alphabetizes it as: // -// com.ex\344mple. +// * com.ex\344mple. // -// The labels are reversed and alphabetized using the escaped value. For -// more information about valid domain name formats, including internationalized +// The labels are reversed and alphabetized using the escaped value. For more +// information about valid domain name formats, including internationalized // domain names, see DNS Domain Name Format (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html) // in the Amazon Route 53 Developer Guide. // -// Amazon Route 53 returns up to 100 items in each response. If you have a -// lot of hosted zones, use the MaxItems parameter to list them in groups of -// up to 100. The response includes values that help navigate from one group -// of MaxItems hosted zones to the next: +// Amazon Route 53 returns up to 100 items in each response. If you have a lot +// of hosted zones, use the MaxItems parameter to list them in groups of up +// to 100. The response includes values that help navigate from one group of +// MaxItems hosted zones to the next: // -// The DNSName and HostedZoneId elements in the response contain the values, -// if any, specified for the dnsname and hostedzoneid parameters in the request -// that produced the current response. +// * The DNSName and HostedZoneId elements in the response contain the values, +// if any, specified for the dnsname and hostedzoneid parameters in the request +// that produced the current response. // -// The MaxItems element in the response contains the value, if any, that -// you specified for the maxitems parameter in the request that produced the -// current response. +// * The MaxItems element in the response contains the value, if any, that +// you specified for the maxitems parameter in the request that produced +// the current response. // -// If the value of IsTruncated in the response is true, there are more hosted -// zones associated with the current AWS account. +// * If the value of IsTruncated in the response is true, there are more +// hosted zones associated with the current AWS account. // // If IsTruncated is false, this response includes the last hosted zone that -// is associated with the current account. The NextDNSName element and NextHostedZoneId -// elements are omitted from the response. +// is associated with the current account. The NextDNSName element and NextHostedZoneId +// elements are omitted from the response. // -// The NextDNSName and NextHostedZoneId elements in the response contain -// the domain name and the hosted zone ID of the next hosted zone that is associated -// with the current AWS account. If you want to list more hosted zones, make -// another call to ListHostedZonesByName, and specify the value of NextDNSName -// and NextHostedZoneId in the dnsname and hostedzoneid parameters, respectively. +// * The NextDNSName and NextHostedZoneId elements in the response contain +// the domain name and the hosted zone ID of the next hosted zone that is +// associated with the current AWS account. If you want to list more hosted +// zones, make another call to ListHostedZonesByName, and specify the value +// of NextDNSName and NextHostedZoneId in the dnsname and hostedzoneid parameters, +// respectively. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2964,12 +2985,13 @@ func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput // API operation ListHostedZonesByName for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * InvalidDomainName +// * ErrCodeInvalidDomainName "InvalidDomainName" // The specified domain name is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHostedZonesByName func (c *Route53) ListHostedZonesByName(input *ListHostedZonesByNameInput) (*ListHostedZonesByNameOutput, error) { req, out := c.ListHostedZonesByNameRequest(input) err := req.Send() @@ -3002,6 +3024,7 @@ const opListResourceRecordSets = "ListResourceRecordSets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListResourceRecordSets func (c *Route53) ListResourceRecordSetsRequest(input *ListResourceRecordSetsInput) (req *request.Request, output *ListResourceRecordSetsOutput) { op := &request.Operation{ Name: opListResourceRecordSets, @@ -3019,9 +3042,8 @@ func (c *Route53) ListResourceRecordSetsRequest(input *ListResourceRecordSetsInp input = &ListResourceRecordSetsInput{} } - req = c.newRequest(op, input, output) output = &ListResourceRecordSetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3029,35 +3051,35 @@ func (c *Route53) ListResourceRecordSetsRequest(input *ListResourceRecordSetsInp // // Lists the resource record sets in a specified hosted zone. // -// ListResourceRecordSets returns up to 100 resource record sets at a time -// in ASCII order, beginning at a position specified by the name and type elements. +// ListResourceRecordSets returns up to 100 resource record sets at a time in +// ASCII order, beginning at a position specified by the name and type elements. // The action sorts results first by DNS name with the labels reversed, for // example: // -// com.example.www. +// com.example.www. // // Note the trailing dot, which can change the sort order in some circumstances. // // When multiple records have the same DNS name, the action sorts results by // the record type. // -// You can use the name and type elements to adjust the beginning position -// of the list of resource record sets returned: +// You can use the name and type elements to adjust the beginning position of +// the list of resource record sets returned: // -// If you do not specify Name or Type The results begin with the first resource +// If you do not specify Name or TypeThe results begin with the first resource // record set that the hosted zone contains. // -// If you specify Name but not Type The results begin with the first resource +// If you specify Name but not TypeThe results begin with the first resource // record set in the list whose name is greater than or equal to Name. // -// If you specify Type but not Name Amazon Route 53 returns the InvalidInput +// If you specify Type but not NameAmazon Route 53 returns the InvalidInput // error. // -// If you specify both Name and Type The results begin with the first resource +// If you specify both Name and TypeThe results begin with the first resource // record set in the list whose name is greater than or equal to Name, and whose // type is greater than or equal to Type. // -// This action returns the most current version of the records. This includes +// This action returns the most current version of the records. This includes // records that are PENDING, and that are not yet available on all Amazon Route // 53 DNS servers. // @@ -3075,12 +3097,13 @@ func (c *Route53) ListResourceRecordSetsRequest(input *ListResourceRecordSetsInp // API operation ListResourceRecordSets for usage and error information. // // Returned Error Codes: -// * NoSuchHostedZone +// * ErrCodeNoSuchHostedZone "NoSuchHostedZone" // No hosted zone exists with the ID that you specified. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListResourceRecordSets func (c *Route53) ListResourceRecordSets(input *ListResourceRecordSetsInput) (*ListResourceRecordSetsOutput, error) { req, out := c.ListResourceRecordSetsRequest(input) err := req.Send() @@ -3138,6 +3161,7 @@ const opListReusableDelegationSets = "ListReusableDelegationSets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListReusableDelegationSets func (c *Route53) ListReusableDelegationSetsRequest(input *ListReusableDelegationSetsInput) (req *request.Request, output *ListReusableDelegationSetsOutput) { op := &request.Operation{ Name: opListReusableDelegationSets, @@ -3149,9 +3173,8 @@ func (c *Route53) ListReusableDelegationSetsRequest(input *ListReusableDelegatio input = &ListReusableDelegationSetsInput{} } - req = c.newRequest(op, input, output) output = &ListReusableDelegationSetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3165,8 +3188,8 @@ func (c *Route53) ListReusableDelegationSetsRequest(input *ListReusableDelegatio // MaxItems parameter. You can use the Marker parameter to control the delegation // set that the list begins with. // -// Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to -// a value greater than 100, Amazon Route 53 returns only the first 100. +// Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a +// value greater than 100, Amazon Route 53 returns only the first 100. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3176,9 +3199,10 @@ func (c *Route53) ListReusableDelegationSetsRequest(input *ListReusableDelegatio // API operation ListReusableDelegationSets for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListReusableDelegationSets func (c *Route53) ListReusableDelegationSets(input *ListReusableDelegationSetsInput) (*ListReusableDelegationSetsOutput, error) { req, out := c.ListReusableDelegationSetsRequest(input) err := req.Send() @@ -3211,6 +3235,7 @@ const opListTagsForResource = "ListTagsForResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTagsForResource func (c *Route53) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ Name: opListTagsForResource, @@ -3222,9 +3247,8 @@ func (c *Route53) ListTagsForResourceRequest(input *ListTagsForResourceInput) (r input = &ListTagsForResourceInput{} } - req = c.newRequest(op, input, output) output = &ListTagsForResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3244,26 +3268,27 @@ func (c *Route53) ListTagsForResourceRequest(input *ListTagsForResourceInput) (r // API operation ListTagsForResource for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * NoSuchHealthCheck +// * ErrCodeNoSuchHealthCheck "NoSuchHealthCheck" // No health check exists with the ID that you specified in the DeleteHealthCheck // request. // -// * NoSuchHostedZone +// * ErrCodeNoSuchHostedZone "NoSuchHostedZone" // No hosted zone exists with the ID that you specified. // -// * PriorRequestNotComplete +// * ErrCodePriorRequestNotComplete "PriorRequestNotComplete" // If Amazon Route 53 can't process a request before the next request arrives, // it will reject subsequent requests for the same hosted zone and return an // HTTP 400 error (Bad request). If Amazon Route 53 returns this error repeatedly // for the same request, we recommend that you wait, in intervals of increasing // duration, before you try the request again. // -// * ThrottlingException - +// * ErrCodeThrottlingException "ThrottlingException" +// The limit on the number of requests per second was exceeded. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTagsForResource func (c *Route53) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -3296,6 +3321,7 @@ const opListTagsForResources = "ListTagsForResources" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTagsForResources func (c *Route53) ListTagsForResourcesRequest(input *ListTagsForResourcesInput) (req *request.Request, output *ListTagsForResourcesOutput) { op := &request.Operation{ Name: opListTagsForResources, @@ -3307,9 +3333,8 @@ func (c *Route53) ListTagsForResourcesRequest(input *ListTagsForResourcesInput) input = &ListTagsForResourcesInput{} } - req = c.newRequest(op, input, output) output = &ListTagsForResourcesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3329,26 +3354,27 @@ func (c *Route53) ListTagsForResourcesRequest(input *ListTagsForResourcesInput) // API operation ListTagsForResources for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * NoSuchHealthCheck +// * ErrCodeNoSuchHealthCheck "NoSuchHealthCheck" // No health check exists with the ID that you specified in the DeleteHealthCheck // request. // -// * NoSuchHostedZone +// * ErrCodeNoSuchHostedZone "NoSuchHostedZone" // No hosted zone exists with the ID that you specified. // -// * PriorRequestNotComplete +// * ErrCodePriorRequestNotComplete "PriorRequestNotComplete" // If Amazon Route 53 can't process a request before the next request arrives, // it will reject subsequent requests for the same hosted zone and return an // HTTP 400 error (Bad request). If Amazon Route 53 returns this error repeatedly // for the same request, we recommend that you wait, in intervals of increasing // duration, before you try the request again. // -// * ThrottlingException - +// * ErrCodeThrottlingException "ThrottlingException" +// The limit on the number of requests per second was exceeded. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTagsForResources func (c *Route53) ListTagsForResources(input *ListTagsForResourcesInput) (*ListTagsForResourcesOutput, error) { req, out := c.ListTagsForResourcesRequest(input) err := req.Send() @@ -3381,6 +3407,7 @@ const opListTrafficPolicies = "ListTrafficPolicies" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPolicies func (c *Route53) ListTrafficPoliciesRequest(input *ListTrafficPoliciesInput) (req *request.Request, output *ListTrafficPoliciesOutput) { op := &request.Operation{ Name: opListTrafficPolicies, @@ -3392,9 +3419,8 @@ func (c *Route53) ListTrafficPoliciesRequest(input *ListTrafficPoliciesInput) (r input = &ListTrafficPoliciesInput{} } - req = c.newRequest(op, input, output) output = &ListTrafficPoliciesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3404,36 +3430,36 @@ func (c *Route53) ListTrafficPoliciesRequest(input *ListTrafficPoliciesInput) (r // associated with the current AWS account. Send a GET request to the /Amazon // Route 53 API version/trafficpolicy resource. // -// Amazon Route 53 returns a maximum of 100 items in each response. If you -// have a lot of traffic policies, you can use the maxitems parameter to list -// them in groups of up to 100. +// Amazon Route 53 returns a maximum of 100 items in each response. If you have +// a lot of traffic policies, you can use the maxitems parameter to list them +// in groups of up to 100. // // The response includes three values that help you navigate from one group // of maxitems traffic policies to the next: // -// IsTruncated +// * IsTruncated // // If the value of IsTruncated in the response is true, there are more traffic -// policies associated with the current AWS account. +// policies associated with the current AWS account. // -// If IsTruncated is false, this response includes the last traffic policy -// that is associated with the current account. +// If IsTruncated is false, this response includes the last traffic policy that +// is associated with the current account. // -// TrafficPolicyIdMarker +// * TrafficPolicyIdMarker // // If IsTruncated is true, TrafficPolicyIdMarker is the ID of the first traffic -// policy in the next group of MaxItems traffic policies. If you want to list -// more traffic policies, make another call to ListTrafficPolicies, and specify -// the value of the TrafficPolicyIdMarker element from the response in the TrafficPolicyIdMarker -// request parameter. +// policy in the next group of MaxItems traffic policies. If you want to +// list more traffic policies, make another call to ListTrafficPolicies, +// and specify the value of the TrafficPolicyIdMarker element from the response +// in the TrafficPolicyIdMarker request parameter. // // If IsTruncated is false, the TrafficPolicyIdMarker element is omitted from -// the response. +// the response. // -// MaxItems +// * MaxItems // // The value that you specified for the MaxItems parameter in the request that -// produced the current response. +// produced the current response. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3443,9 +3469,10 @@ func (c *Route53) ListTrafficPoliciesRequest(input *ListTrafficPoliciesInput) (r // API operation ListTrafficPolicies for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPolicies func (c *Route53) ListTrafficPolicies(input *ListTrafficPoliciesInput) (*ListTrafficPoliciesOutput, error) { req, out := c.ListTrafficPoliciesRequest(input) err := req.Send() @@ -3478,6 +3505,7 @@ const opListTrafficPolicyInstances = "ListTrafficPolicyInstances" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPolicyInstances func (c *Route53) ListTrafficPolicyInstancesRequest(input *ListTrafficPolicyInstancesInput) (req *request.Request, output *ListTrafficPolicyInstancesOutput) { op := &request.Operation{ Name: opListTrafficPolicyInstances, @@ -3489,9 +3517,8 @@ func (c *Route53) ListTrafficPolicyInstancesRequest(input *ListTrafficPolicyInst input = &ListTrafficPolicyInstancesInput{} } - req = c.newRequest(op, input, output) output = &ListTrafficPolicyInstancesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3500,40 +3527,41 @@ func (c *Route53) ListTrafficPolicyInstancesRequest(input *ListTrafficPolicyInst // Gets information about the traffic policy instances that you created by using // the current AWS account. // -// After you submit an UpdateTrafficPolicyInstance request, there's a brief +// After you submit an UpdateTrafficPolicyInstance request, there's a brief // delay while Amazon Route 53 creates the resource record sets that are specified // in the traffic policy definition. For more information, see the State response // element. // -// Send a GET request to the /Amazon Route 53 API version/trafficpolicyinstance +// Send a GET request to the /Amazon Route 53 API version/trafficpolicyinstance // resource. // -// Amazon Route 53 returns a maximum of 100 items in each response. If you -// have a lot of traffic policy instances, you can use the MaxItems parameter -// to list them in groups of up to 100. +// Amazon Route 53 returns a maximum of 100 items in each response. If you have +// a lot of traffic policy instances, you can use the MaxItems parameter to +// list them in groups of up to 100. // -// The response includes five values that help you navigate from one group -// of MaxItems traffic policy instances to the next: +// The response includes five values that help you navigate from one group of +// MaxItems traffic policy instances to the next: // -// IsTruncated +// * IsTruncated // // If the value of IsTruncated in the response is true, there are more traffic -// policy instances associated with the current AWS account. +// policy instances associated with the current AWS account. // -// If IsTruncated is false, this response includes the last traffic policy -// instance that is associated with the current account. +// If IsTruncated is false, this response includes the last traffic policy instance +// that is associated with the current account. // -// MaxItems +// * MaxItems // // The value that you specified for the MaxItems parameter in the request that -// produced the current response. +// produced the current response. // -// HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker +// * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker // // If IsTruncated is true, these three values in the response represent the -// first traffic policy instance in the next group of MaxItems traffic policy -// instances. To list more traffic policy instances, make another call to ListTrafficPolicyInstances, -// and specify these values in the corresponding request parameters. +// first traffic policy instance in the next group of MaxItems traffic policy +// instances. To list more traffic policy instances, make another call to +// ListTrafficPolicyInstances, and specify these values in the corresponding +// request parameters. // // If IsTruncated is false, all three elements are omitted from the response. // @@ -3545,12 +3573,13 @@ func (c *Route53) ListTrafficPolicyInstancesRequest(input *ListTrafficPolicyInst // API operation ListTrafficPolicyInstances for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * NoSuchTrafficPolicyInstance +// * ErrCodeNoSuchTrafficPolicyInstance "NoSuchTrafficPolicyInstance" // No traffic policy instance exists with the specified ID. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPolicyInstances func (c *Route53) ListTrafficPolicyInstances(input *ListTrafficPolicyInstancesInput) (*ListTrafficPolicyInstancesOutput, error) { req, out := c.ListTrafficPolicyInstancesRequest(input) err := req.Send() @@ -3583,6 +3612,7 @@ const opListTrafficPolicyInstancesByHostedZone = "ListTrafficPolicyInstancesByHo // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPolicyInstancesByHostedZone func (c *Route53) ListTrafficPolicyInstancesByHostedZoneRequest(input *ListTrafficPolicyInstancesByHostedZoneInput) (req *request.Request, output *ListTrafficPolicyInstancesByHostedZoneOutput) { op := &request.Operation{ Name: opListTrafficPolicyInstancesByHostedZone, @@ -3594,9 +3624,8 @@ func (c *Route53) ListTrafficPolicyInstancesByHostedZoneRequest(input *ListTraff input = &ListTrafficPolicyInstancesByHostedZoneInput{} } - req = c.newRequest(op, input, output) output = &ListTrafficPolicyInstancesByHostedZoneOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3605,42 +3634,43 @@ func (c *Route53) ListTrafficPolicyInstancesByHostedZoneRequest(input *ListTraff // Gets information about the traffic policy instances that you created in a // specified hosted zone. // -// After you submit an UpdateTrafficPolicyInstance request, there's a brief +// After you submit an UpdateTrafficPolicyInstance request, there's a brief // delay while Amazon Route 53 creates the resource record sets that are specified // in the traffic policy definition. For more information, see the State response // element. // -// Send a GET request to the /Amazon Route 53 API version/trafficpolicyinstance +// Send a GET request to the /Amazon Route 53 API version/trafficpolicyinstance // resource and include the ID of the hosted zone. // -// Amazon Route 53 returns a maximum of 100 items in each response. If you -// have a lot of traffic policy instances, you can use the MaxItems parameter -// to list them in groups of up to 100. +// Amazon Route 53 returns a maximum of 100 items in each response. If you have +// a lot of traffic policy instances, you can use the MaxItems parameter to +// list them in groups of up to 100. // -// The response includes four values that help you navigate from one group -// of MaxItems traffic policy instances to the next: +// The response includes four values that help you navigate from one group of +// MaxItems traffic policy instances to the next: // -// IsTruncated +// * IsTruncated // // If the value of IsTruncated in the response is true, there are more traffic -// policy instances associated with the current AWS account. +// policy instances associated with the current AWS account. // -// If IsTruncated is false, this response includes the last traffic policy -// instance that is associated with the current account. +// * If IsTruncated is false, this response includes the last traffic policy +// instance that is associated with the current account. // -// MaxItems +// * MaxItems // -// The value that you specified for the MaxItems parameter in the request that -// produced the current response. +// * The value that you specified for the MaxItems parameter in the request +// that produced the current response. // -// TrafficPolicyInstanceNameMarker and TrafficPolicyInstanceTypeMarker +// * TrafficPolicyInstanceNameMarker and TrafficPolicyInstanceTypeMarker // -// If IsTruncated is true, these two values in the response represent the first -// traffic policy instance in the next group of MaxItems traffic policy instances. -// To list more traffic policy instances, make another call to ListTrafficPolicyInstancesByHostedZone, -// and specify these values in the corresponding request parameters. +// * If IsTruncated is true, these two values in the response represent the +// first traffic policy instance in the next group of MaxItems traffic policy +// instances. To list more traffic policy instances, make another call to +// ListTrafficPolicyInstancesByHostedZone, and specify these values in the +// corresponding request parameters. // -// If IsTruncated is false, all three elements are omitted from the response. +// * If IsTruncated is false, all three elements are omitted from the response. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3650,15 +3680,16 @@ func (c *Route53) ListTrafficPolicyInstancesByHostedZoneRequest(input *ListTraff // API operation ListTrafficPolicyInstancesByHostedZone for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * NoSuchTrafficPolicyInstance +// * ErrCodeNoSuchTrafficPolicyInstance "NoSuchTrafficPolicyInstance" // No traffic policy instance exists with the specified ID. // -// * NoSuchHostedZone +// * ErrCodeNoSuchHostedZone "NoSuchHostedZone" // No hosted zone exists with the ID that you specified. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPolicyInstancesByHostedZone func (c *Route53) ListTrafficPolicyInstancesByHostedZone(input *ListTrafficPolicyInstancesByHostedZoneInput) (*ListTrafficPolicyInstancesByHostedZoneOutput, error) { req, out := c.ListTrafficPolicyInstancesByHostedZoneRequest(input) err := req.Send() @@ -3691,6 +3722,7 @@ const opListTrafficPolicyInstancesByPolicy = "ListTrafficPolicyInstancesByPolicy // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPolicyInstancesByPolicy func (c *Route53) ListTrafficPolicyInstancesByPolicyRequest(input *ListTrafficPolicyInstancesByPolicyInput) (req *request.Request, output *ListTrafficPolicyInstancesByPolicyOutput) { op := &request.Operation{ Name: opListTrafficPolicyInstancesByPolicy, @@ -3702,9 +3734,8 @@ func (c *Route53) ListTrafficPolicyInstancesByPolicyRequest(input *ListTrafficPo input = &ListTrafficPolicyInstancesByPolicyInput{} } - req = c.newRequest(op, input, output) output = &ListTrafficPolicyInstancesByPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3713,40 +3744,40 @@ func (c *Route53) ListTrafficPolicyInstancesByPolicyRequest(input *ListTrafficPo // Gets information about the traffic policy instances that you created by using // a specify traffic policy version. // -// After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance +// After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance // request, there's a brief delay while Amazon Route 53 creates the resource // record sets that are specified in the traffic policy definition. For more // information, see the State response element. // -// Send a GET request to the /Route 53 API version/trafficpolicyinstance resource +// Send a GET request to the /Route 53 API version/trafficpolicyinstance resource // and include the ID and version of the traffic policy. // -// Amazon Route 53 returns a maximum of 100 items in each response. If you -// have a lot of traffic policy instances, you can use the MaxItems parameter -// to list them in groups of up to 100. +// Amazon Route 53 returns a maximum of 100 items in each response. If you have +// a lot of traffic policy instances, you can use the MaxItems parameter to +// list them in groups of up to 100. // -// The response includes five values that help you navigate from one group -// of MaxItems traffic policy instances to the next: +// The response includes five values that help you navigate from one group of +// MaxItems traffic policy instances to the next: // -// IsTruncated +// * IsTruncated // // If the value of IsTruncated in the response is true, there are more traffic -// policy instances associated with the specified traffic policy. +// policy instances associated with the specified traffic policy. // -// If IsTruncated is false, this response includes the last traffic policy -// instance that is associated with the specified traffic policy. +// If IsTruncated is false, this response includes the last traffic policy instance +// that is associated with the specified traffic policy. // -// MaxItems +// * MaxItems // // The value that you specified for the MaxItems parameter in the request that -// produced the current response. +// produced the current response. // -// HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker +// * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker // // If IsTruncated is true, these values in the response represent the first -// traffic policy instance in the next group of MaxItems traffic policy instances. -// To list more traffic policy instances, make another call to ListTrafficPolicyInstancesByPolicy, -// and specify these values in the corresponding request parameters. +// traffic policy instance in the next group of MaxItems traffic policy instances. +// To list more traffic policy instances, make another call to ListTrafficPolicyInstancesByPolicy, +// and specify these values in the corresponding request parameters. // // If IsTruncated is false, all three elements are omitted from the response. // @@ -3758,15 +3789,16 @@ func (c *Route53) ListTrafficPolicyInstancesByPolicyRequest(input *ListTrafficPo // API operation ListTrafficPolicyInstancesByPolicy for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * NoSuchTrafficPolicyInstance +// * ErrCodeNoSuchTrafficPolicyInstance "NoSuchTrafficPolicyInstance" // No traffic policy instance exists with the specified ID. // -// * NoSuchTrafficPolicy +// * ErrCodeNoSuchTrafficPolicy "NoSuchTrafficPolicy" // No traffic policy exists with the specified ID. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPolicyInstancesByPolicy func (c *Route53) ListTrafficPolicyInstancesByPolicy(input *ListTrafficPolicyInstancesByPolicyInput) (*ListTrafficPolicyInstancesByPolicyOutput, error) { req, out := c.ListTrafficPolicyInstancesByPolicyRequest(input) err := req.Send() @@ -3799,6 +3831,7 @@ const opListTrafficPolicyVersions = "ListTrafficPolicyVersions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPolicyVersions func (c *Route53) ListTrafficPolicyVersionsRequest(input *ListTrafficPolicyVersionsInput) (req *request.Request, output *ListTrafficPolicyVersionsOutput) { op := &request.Operation{ Name: opListTrafficPolicyVersions, @@ -3810,9 +3843,8 @@ func (c *Route53) ListTrafficPolicyVersionsRequest(input *ListTrafficPolicyVersi input = &ListTrafficPolicyVersionsInput{} } - req = c.newRequest(op, input, output) output = &ListTrafficPolicyVersionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3823,35 +3855,35 @@ func (c *Route53) ListTrafficPolicyVersionsRequest(input *ListTrafficPolicyVersi // Send a GET request to the /Amazon Route 53 API version/trafficpolicy resource // and specify the ID of the traffic policy for which you want to list versions. // -// Amazon Route 53 returns a maximum of 100 items in each response. If you -// have a lot of traffic policies, you can use the maxitems parameter to list -// them in groups of up to 100. +// Amazon Route 53 returns a maximum of 100 items in each response. If you have +// a lot of traffic policies, you can use the maxitems parameter to list them +// in groups of up to 100. // // The response includes three values that help you navigate from one group // of maxitems traffic policies to the next: // -// IsTruncated +// * IsTruncated // // If the value of IsTruncated in the response is true, there are more traffic -// policy versions associated with the specified traffic policy. +// policy versions associated with the specified traffic policy. // -// If IsTruncated is false, this response includes the last traffic policy -// version that is associated with the specified traffic policy. +// If IsTruncated is false, this response includes the last traffic policy version +// that is associated with the specified traffic policy. // -// TrafficPolicyVersionMarker +// * TrafficPolicyVersionMarker // // The ID of the next traffic policy version that is associated with the current -// AWS account. If you want to list more traffic policies, make another call -// to ListTrafficPolicyVersions, and specify the value of the TrafficPolicyVersionMarker -// element in the TrafficPolicyVersionMarker request parameter. +// AWS account. If you want to list more traffic policies, make another call +// to ListTrafficPolicyVersions, and specify the value of the TrafficPolicyVersionMarker +// element in the TrafficPolicyVersionMarker request parameter. // // If IsTruncated is false, Amazon Route 53 omits the TrafficPolicyVersionMarker -// element from the response. +// element from the response. // -// MaxItems +// * MaxItems // // The value that you specified for the MaxItems parameter in the request that -// produced the current response. +// produced the current response. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3861,18 +3893,109 @@ func (c *Route53) ListTrafficPolicyVersionsRequest(input *ListTrafficPolicyVersi // API operation ListTrafficPolicyVersions for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * NoSuchTrafficPolicy +// * ErrCodeNoSuchTrafficPolicy "NoSuchTrafficPolicy" // No traffic policy exists with the specified ID. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPolicyVersions func (c *Route53) ListTrafficPolicyVersions(input *ListTrafficPolicyVersionsInput) (*ListTrafficPolicyVersionsOutput, error) { req, out := c.ListTrafficPolicyVersionsRequest(input) err := req.Send() return out, err } +const opListVPCAssociationAuthorizations = "ListVPCAssociationAuthorizations" + +// ListVPCAssociationAuthorizationsRequest generates a "aws/request.Request" representing the +// client's request for the ListVPCAssociationAuthorizations operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListVPCAssociationAuthorizations for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListVPCAssociationAuthorizations method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListVPCAssociationAuthorizationsRequest method. +// req, resp := client.ListVPCAssociationAuthorizationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListVPCAssociationAuthorizations +func (c *Route53) ListVPCAssociationAuthorizationsRequest(input *ListVPCAssociationAuthorizationsInput) (req *request.Request, output *ListVPCAssociationAuthorizationsOutput) { + op := &request.Operation{ + Name: opListVPCAssociationAuthorizations, + HTTPMethod: "GET", + HTTPPath: "/2013-04-01/hostedzone/{Id}/authorizevpcassociation", + } + + if input == nil { + input = &ListVPCAssociationAuthorizationsInput{} + } + + output = &ListVPCAssociationAuthorizationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListVPCAssociationAuthorizations API operation for Amazon Route 53. +// +// Gets a list of the VPCs that were created by other accounts and that can +// be associated with a specified hosted zone because you've submitted one or +// more CreateVPCAssociationAuthorization requests. +// +// Send a GET request to the /2013-04-01/hostedzone/hosted zone ID/authorizevpcassociation +// resource. The response to this request includes a VPCs element with a VPC +// child element for each VPC that can be associated with the hosted zone. +// +// Amazon Route 53 returns up to 50 VPCs per page. To return fewer VPCs per +// page, include the MaxResults parameter: +// +// /2013-04-01/hostedzone/hosted zone ID/authorizevpcassociation?MaxItems=VPCs +// per page +// +// If the response includes a NextToken element, there are more VPCs to list. +// To get the next page of VPCs, submit another ListVPCAssociationAuthorizations +// request, and include the value of the NextToken element from the response +// in the NextToken request parameter: +// +// /2013-04-01/hostedzone/hosted zone ID/authorizevpcassociation?MaxItems=VPCs +// per page&NextToken= +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ListVPCAssociationAuthorizations for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNoSuchHostedZone "NoSuchHostedZone" +// No hosted zone exists with the ID that you specified. +// +// * ErrCodeInvalidInput "InvalidInput" +// The input is not valid. +// +// * ErrCodeInvalidPaginationToken "InvalidPaginationToken" +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListVPCAssociationAuthorizations +func (c *Route53) ListVPCAssociationAuthorizations(input *ListVPCAssociationAuthorizationsInput) (*ListVPCAssociationAuthorizationsOutput, error) { + req, out := c.ListVPCAssociationAuthorizationsRequest(input) + err := req.Send() + return out, err +} + const opTestDNSAnswer = "TestDNSAnswer" // TestDNSAnswerRequest generates a "aws/request.Request" representing the @@ -3899,6 +4022,7 @@ const opTestDNSAnswer = "TestDNSAnswer" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/TestDNSAnswer func (c *Route53) TestDNSAnswerRequest(input *TestDNSAnswerInput) (req *request.Request, output *TestDNSAnswerOutput) { op := &request.Operation{ Name: opTestDNSAnswer, @@ -3910,9 +4034,8 @@ func (c *Route53) TestDNSAnswerRequest(input *TestDNSAnswerInput) (req *request. input = &TestDNSAnswerInput{} } - req = c.newRequest(op, input, output) output = &TestDNSAnswerOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3930,12 +4053,13 @@ func (c *Route53) TestDNSAnswerRequest(input *TestDNSAnswerInput) (req *request. // API operation TestDNSAnswer for usage and error information. // // Returned Error Codes: -// * NoSuchHostedZone +// * ErrCodeNoSuchHostedZone "NoSuchHostedZone" // No hosted zone exists with the ID that you specified. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/TestDNSAnswer func (c *Route53) TestDNSAnswer(input *TestDNSAnswerInput) (*TestDNSAnswerOutput, error) { req, out := c.TestDNSAnswerRequest(input) err := req.Send() @@ -3968,6 +4092,7 @@ const opUpdateHealthCheck = "UpdateHealthCheck" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/UpdateHealthCheck func (c *Route53) UpdateHealthCheckRequest(input *UpdateHealthCheckInput) (req *request.Request, output *UpdateHealthCheckOutput) { op := &request.Operation{ Name: opUpdateHealthCheck, @@ -3979,9 +4104,8 @@ func (c *Route53) UpdateHealthCheckRequest(input *UpdateHealthCheckInput) (req * input = &UpdateHealthCheckInput{} } - req = c.newRequest(op, input, output) output = &UpdateHealthCheckOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3989,8 +4113,8 @@ func (c *Route53) UpdateHealthCheckRequest(input *UpdateHealthCheckInput) (req * // // Updates an existing health check. // -// Send a POST request to the /2013-04-01/healthcheck/health check ID resource. -// The request body must include an XML document with an UpdateHealthCheckRequest +// Send a POST request to the /2013-04-01/healthcheck/health check ID resource. +// The request body must include a document with an UpdateHealthCheckRequest // element. For more information about updating health checks, see Creating, // Updating, and Deleting Health Checks (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/health-checks-creating-deleting.html) // in the Amazon Route 53 Developer Guide. @@ -4003,17 +4127,18 @@ func (c *Route53) UpdateHealthCheckRequest(input *UpdateHealthCheckInput) (req * // API operation UpdateHealthCheck for usage and error information. // // Returned Error Codes: -// * NoSuchHealthCheck +// * ErrCodeNoSuchHealthCheck "NoSuchHealthCheck" // No health check exists with the ID that you specified in the DeleteHealthCheck // request. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * HealthCheckVersionMismatch +// * ErrCodeHealthCheckVersionMismatch "HealthCheckVersionMismatch" // The value of HealthCheckVersion in the request doesn't match the value of // HealthCheckVersion in the health check. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/UpdateHealthCheck func (c *Route53) UpdateHealthCheck(input *UpdateHealthCheckInput) (*UpdateHealthCheckOutput, error) { req, out := c.UpdateHealthCheckRequest(input) err := req.Send() @@ -4046,6 +4171,7 @@ const opUpdateHostedZoneComment = "UpdateHostedZoneComment" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/UpdateHostedZoneComment func (c *Route53) UpdateHostedZoneCommentRequest(input *UpdateHostedZoneCommentInput) (req *request.Request, output *UpdateHostedZoneCommentOutput) { op := &request.Operation{ Name: opUpdateHostedZoneComment, @@ -4057,16 +4183,15 @@ func (c *Route53) UpdateHostedZoneCommentRequest(input *UpdateHostedZoneCommentI input = &UpdateHostedZoneCommentInput{} } - req = c.newRequest(op, input, output) output = &UpdateHostedZoneCommentOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // UpdateHostedZoneComment API operation for Amazon Route 53. // // Updates the hosted zone comment. Send a POST request to the /2013-04-01/hostedzone/hosted -// zone ID resource. +// zone ID resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4076,12 +4201,13 @@ func (c *Route53) UpdateHostedZoneCommentRequest(input *UpdateHostedZoneCommentI // API operation UpdateHostedZoneComment for usage and error information. // // Returned Error Codes: -// * NoSuchHostedZone +// * ErrCodeNoSuchHostedZone "NoSuchHostedZone" // No hosted zone exists with the ID that you specified. // -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/UpdateHostedZoneComment func (c *Route53) UpdateHostedZoneComment(input *UpdateHostedZoneCommentInput) (*UpdateHostedZoneCommentOutput, error) { req, out := c.UpdateHostedZoneCommentRequest(input) err := req.Send() @@ -4114,6 +4240,7 @@ const opUpdateTrafficPolicyComment = "UpdateTrafficPolicyComment" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/UpdateTrafficPolicyComment func (c *Route53) UpdateTrafficPolicyCommentRequest(input *UpdateTrafficPolicyCommentInput) (req *request.Request, output *UpdateTrafficPolicyCommentOutput) { op := &request.Operation{ Name: opUpdateTrafficPolicyComment, @@ -4125,9 +4252,8 @@ func (c *Route53) UpdateTrafficPolicyCommentRequest(input *UpdateTrafficPolicyCo input = &UpdateTrafficPolicyCommentInput{} } - req = c.newRequest(op, input, output) output = &UpdateTrafficPolicyCommentOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4148,16 +4274,17 @@ func (c *Route53) UpdateTrafficPolicyCommentRequest(input *UpdateTrafficPolicyCo // API operation UpdateTrafficPolicyComment for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * NoSuchTrafficPolicy +// * ErrCodeNoSuchTrafficPolicy "NoSuchTrafficPolicy" // No traffic policy exists with the specified ID. // -// * ConcurrentModification +// * ErrCodeConcurrentModification "ConcurrentModification" // Another user submitted a request to update the object at the same time that // you did. Retry the request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/UpdateTrafficPolicyComment func (c *Route53) UpdateTrafficPolicyComment(input *UpdateTrafficPolicyCommentInput) (*UpdateTrafficPolicyCommentOutput, error) { req, out := c.UpdateTrafficPolicyCommentRequest(input) err := req.Send() @@ -4190,6 +4317,7 @@ const opUpdateTrafficPolicyInstance = "UpdateTrafficPolicyInstance" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/UpdateTrafficPolicyInstance func (c *Route53) UpdateTrafficPolicyInstanceRequest(input *UpdateTrafficPolicyInstanceInput) (req *request.Request, output *UpdateTrafficPolicyInstanceOutput) { op := &request.Operation{ Name: opUpdateTrafficPolicyInstance, @@ -4201,9 +4329,8 @@ func (c *Route53) UpdateTrafficPolicyInstanceRequest(input *UpdateTrafficPolicyI input = &UpdateTrafficPolicyInstanceInput{} } - req = c.newRequest(op, input, output) output = &UpdateTrafficPolicyInstanceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4213,25 +4340,25 @@ func (c *Route53) UpdateTrafficPolicyInstanceRequest(input *UpdateTrafficPolicyI // based on the settings in a specified traffic policy version. // // Send a POST request to the /2013-04-01/trafficpolicyinstance/traffic policy -// ID resource. The request body must include a document with an UpdateTrafficPolicyInstanceRequest +// ID resource. The request body must include a document with an UpdateTrafficPolicyInstanceRequest // element. // -// When you update a traffic policy instance, Amazon Route 53 continues to -// respond to DNS queries for the root resource record set name (such as example.com) +// When you update a traffic policy instance, Amazon Route 53 continues to respond +// to DNS queries for the root resource record set name (such as example.com) // while it replaces one group of resource record sets with another. Amazon // Route 53 performs the following operations: // -// Amazon Route 53 creates a new group of resource record sets based on the +// Amazon Route 53 creates a new group of resource record sets based on the // specified traffic policy. This is true regardless of how substantial the // differences are between the existing resource record sets and the new resource // record sets. // -// When all of the new resource record sets have been created, Amazon Route +// When all of the new resource record sets have been created, Amazon Route // 53 starts to respond to DNS queries for the root resource record set name // (such as example.com) by using the new resource record sets. // -// Amazon Route 53 deletes the old group of resource record sets that are -// associated with the root resource record set name. +// Amazon Route 53 deletes the old group of resource record sets that are associated +// with the root resource record set name. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4241,27 +4368,28 @@ func (c *Route53) UpdateTrafficPolicyInstanceRequest(input *UpdateTrafficPolicyI // API operation UpdateTrafficPolicyInstance for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * NoSuchTrafficPolicy +// * ErrCodeNoSuchTrafficPolicy "NoSuchTrafficPolicy" // No traffic policy exists with the specified ID. // -// * NoSuchTrafficPolicyInstance +// * ErrCodeNoSuchTrafficPolicyInstance "NoSuchTrafficPolicyInstance" // No traffic policy instance exists with the specified ID. // -// * PriorRequestNotComplete +// * ErrCodePriorRequestNotComplete "PriorRequestNotComplete" // If Amazon Route 53 can't process a request before the next request arrives, // it will reject subsequent requests for the same hosted zone and return an // HTTP 400 error (Bad request). If Amazon Route 53 returns this error repeatedly // for the same request, we recommend that you wait, in intervals of increasing // duration, before you try the request again. // -// * ConflictingTypes +// * ErrCodeConflictingTypes "ConflictingTypes" // You tried to update a traffic policy instance by using a traffic policy version // that has a different DNS type than the current type for the instance. You // specified the type in the JSON document in the CreateTrafficPolicy or CreateTrafficPolicyVersionrequest. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/UpdateTrafficPolicyInstance func (c *Route53) UpdateTrafficPolicyInstance(input *UpdateTrafficPolicyInstanceInput) (*UpdateTrafficPolicyInstanceOutput, error) { req, out := c.UpdateTrafficPolicyInstanceRequest(input) err := req.Send() @@ -4271,6 +4399,7 @@ func (c *Route53) UpdateTrafficPolicyInstance(input *UpdateTrafficPolicyInstance // A complex type that identifies the CloudWatch alarm that you want Amazon // Route 53 health checkers to use to determine whether this health check is // healthy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/AlarmIdentifier type AlarmIdentifier struct { _ struct{} `type:"structure"` @@ -4285,7 +4414,8 @@ type AlarmIdentifier struct { // healthy. // // For the current list of CloudWatch regions, see Amazon CloudWatch (http://docs.aws.amazon.com/general/latest/gr/rande.html#cw_region) - // in AWS Regions and Endpoints in the Amazon Web Services General Reference. + // in the AWS Regions and Endpoints chapter of the Amazon Web Services General + // Reference. // // Region is a required field Region *string `min:"1" type:"string" required:"true" enum:"CloudWatchRegion"` @@ -4323,85 +4453,96 @@ func (s *AlarmIdentifier) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *AlarmIdentifier) SetName(v string) *AlarmIdentifier { + s.Name = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *AlarmIdentifier) SetRegion(v string) *AlarmIdentifier { + s.Region = &v + return s +} + // Alias resource record sets only: Information about the CloudFront distribution, // Elastic Beanstalk environment, ELB load balancer, Amazon S3 bucket, or Amazon -// Route 53 resource record set to which you are redirecting queries. The Elastic +// Route 53 resource record set that you're redirecting queries to. An Elastic // Beanstalk environment must have a regionalized subdomain. // // When creating resource record sets for a private hosted zone, note the following: // -// Resource record sets cannot be created for CloudFront distributions in -// a private hosted zone. +// * Resource record sets can't be created for CloudFront distributions in +// a private hosted zone. // -// Creating geolocation alias resource record sets or latency alias resource -// record sets in a private hosted zone is unsupported. +// * Creating geolocation alias resource record sets or latency alias resource +// record sets in a private hosted zone is unsupported. // -// For information about creating failover resource record sets in a private -// hosted zone, see Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html). +// * For information about creating failover resource record sets in a private +// hosted zone, see Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/AliasTarget type AliasTarget struct { _ struct{} `type:"structure"` // Alias resource record sets only: The value that you specify depends on where // you want to route queries: // - // A CloudFront distribution: Specify the domain name that CloudFront assigned - // when you created your distribution. + // CloudFront distributionSpecify the domain name that CloudFront assigned when + // you created your distribution. // - // Your CloudFront distribution must include an alternate domain name that - // matches the name of the resource record set. For example, if the name of - // the resource record set is acme.example.com, your CloudFront distribution - // must include acme.example.com as one of the alternate domain names. For more - // information, see Using Alternate Domain Names (CNAMEs) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html) + // Your CloudFront distribution must include an alternate domain name that matches + // the name of the resource record set. For example, if the name of the resource + // record set is acme.example.com, your CloudFront distribution must include + // acme.example.com as one of the alternate domain names. For more information, + // see Using Alternate Domain Names (CNAMEs) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html) // in the Amazon CloudFront Developer Guide. // - // Elastic Beanstalk environment: Specify the CNAME attribute for the environment. + // Elastic Beanstalk environmentSpecify the CNAME attribute for the environment. // (The environment must have a regionalized domain name.) You can use the following // methods to get the value of the CNAME attribute: // - // AWS Managment Console: For information about how to get the value by - // using the console, see Using Custom Domains with Elastic Beanstalk (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html) + // AWS Management Console: For information about how to get the value by using + // the console, see Using Custom Domains with AWS Elastic Beanstalk (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html) // in the AWS Elastic Beanstalk Developer Guide. // - // Elastic Load Balancing API: Use the DescribeEnvironments action to get - // the value of the CNAME attribute. For more information, see DescribeEnvironments - // (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/API_DescribeEnvironments.html) + // Elastic Beanstalk API: Use the DescribeEnvironments action to get the value + // of the CNAME attribute. For more information, see DescribeEnvironments (http://docs.aws.amazon.com/elasticbeanstalk/latest/api/API_DescribeEnvironments.html) // in the AWS Elastic Beanstalk API Reference. // - // AWS CLI: Use the describe-environments command to get the value of the - // CNAME attribute. For more information, see describe-environments (http://docs.aws.amazon.com/cli/latest/reference/elasticbeanstalk/describe-environments.html) + // AWS CLI: Use the describe-environments command to get the value of the CNAME + // attribute. For more information, see describe-environments (http://docs.aws.amazon.com/cli/latest/reference/elasticbeanstalk/describe-environments.html) // in the AWS Command Line Interface Reference. // - // An ELB load balancer: Specify the DNS name associated with the load - // balancer. Get the DNS name by using the AWS Management Console, the ELB API, - // or the AWS CLI. Use the same method to get values for HostedZoneId and DNSName. - // If you get one value from the console and the other value from the API or - // the CLI, creating the resource record set will fail. - // - // AWS Management Console: Go to the Amazon EC2 page, click Load Balancers - // in the navigation pane, choose the load balancer, choose the Description - // tab, and get the value of the DNS Name field that begins with dualstack. - // Use the same process to get the Hosted Zone ID. See HostedZone$Id. - // - // Elastic Load Balancing API: Use DescribeLoadBalancers (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/APIReference/API_DescribeLoadBalancers.html) - // to get the value of CanonicalHostedZoneName. Use the same process to get - // the CanonicalHostedZoneNameId. See HostedZone$Id. - // - // AWS CLI: Use describe-load-balancers (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/APIReference/API_DescribeLoadBalancers.html) - // to get the value of CanonicalHostedZoneName. Use the same process to get - // the CanonicalHostedZoneNameId. See HostedZoneId. - // - // An Amazon S3 bucket that is configured as a static website: Specify - // the domain name of the Amazon S3 website endpoint in which you created the - // bucket; for example, s3-website-us-east-1.amazonaws.com. For more information - // about valid values, see the table Amazon Simple Storage Service (S3) Website - // Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) - // in the Amazon Web Services General Reference. For more information about - // using Amazon S3 buckets for websites, see Hosting a Static Website on Amazon - // S3 (http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html) in - // the Amazon Simple Storage Service Developer Guide. - // - // Another Amazon Route 53 resource record set: Specify the value of the - // Name element for a resource record set in the current hosted zone. + // ELB load balancerSpecify the DNS name that is associated with the load balancer. + // Get the DNS name by using the AWS Management Console, the ELB API, or the + // AWS CLI. + // + // AWS Management Console: Go to the EC2 page, choose Load Balancers in the + // navigation pane, choose the load balancer, choose the Description tab, and + // get the value of the DNS name field. (If you're routing traffic to a Classic + // Load Balancer, get the value that begins with dualstack.) + // + // Elastic Load Balancing API: Use DescribeLoadBalancers to get the value of + // DNSName. For more information, see the applicable guide: + // + // Classic Load Balancer: DescribeLoadBalancers (http://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_DescribeLoadBalancers.html) + // + // Application Load Balancer: DescribeLoadBalancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html) + // + // AWS CLI: Use describe-load-balancers (http://docs.aws.amazon.com/cli/latest/reference/elb/describe-load-balancers.html) + // to get the value of DNSName. + // + // Amazon S3 bucket that is configured as a static websiteSpecify the domain + // name of the Amazon S3 website endpoint in which you created the bucket, for + // example, s3-website-us-east-2.amazonaws.com. For more information about valid + // values, see the table Amazon Simple Storage Service (S3) Website Endpoints + // (http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) in the + // Amazon Web Services General Reference. For more information about using S3 + // buckets for websites, see Getting Started with Amazon Route 53 (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/getting-started.html) + // in the Amazon Route 53 Developer Guide. + // + // Another Amazon Route 53 resource record setSpecify the value of the Name + // element for a resource record set in the current hosted zone. // // DNSName is a required field DNSName *string `type:"string" required:"true"` @@ -4409,123 +4550,129 @@ type AliasTarget struct { // Applies only to alias, weighted alias, latency alias, and failover alias // record sets: If you set the value of EvaluateTargetHealth to true for the // resource record set or sets in an alias, weighted alias, latency alias, or - // failover alias resource record set, and if you specify a value for HealthCheck$Id - // for every resource record set that is referenced by these alias resource + // failover alias resource record set, and if you specify a value for HealthCheck$Id + // for every resource record set that is referenced by these alias resource // record sets, the alias resource record sets inherit the health of the referenced // resource record sets. // - // In this configuration, when Amazon Route 53 receives a DNS query for an - // alias resource record set: + // In this configuration, when Amazon Route 53 receives a DNS query for an alias + // resource record set: // - // Amazon Route 53 looks at the resource record sets that are referenced - // by the alias resource record sets to determine which health checks they're - // using. + // * Amazon Route 53 looks at the resource record sets that are referenced + // by the alias resource record sets to determine which health checks they're + // using. // - // Amazon Route 53 checks the current status of each health check. (Amazon - // Route 53 periodically checks the health of the endpoint that is specified - // in a health check; it doesn't perform the health check when the DNS query - // arrives.) + // * Amazon Route 53 checks the current status of each health check. (Amazon + // Route 53 periodically checks the health of the endpoint that is specified + // in a health check; it doesn't perform the health check when the DNS query + // arrives.) // - // Based on the status of the health checks, Amazon Route 53 determines which - // resource record sets are healthy. Unhealthy resource record sets are immediately - // removed from consideration. In addition, if all of the resource record sets - // that are referenced by an alias resource record set are unhealthy, that alias - // resource record set also is immediately removed from consideration. + // * Based on the status of the health checks, Amazon Route 53 determines + // which resource record sets are healthy. Unhealthy resource record sets + // are immediately removed from consideration. In addition, if all of the + // resource record sets that are referenced by an alias resource record set + // are unhealthy, that alias resource record set also is immediately removed + // from consideration. // - // Based on the configuration of the alias resource record sets (weighted - // alias or latency alias, for example) and the configuration of the resource - // record sets that they reference, Amazon Route 53 chooses a resource record - // set from the healthy resource record sets, and responds to the query. + // * Based on the configuration of the alias resource record sets (weighted + // alias or latency alias, for example) and the configuration of the resource + // record sets that they reference, Amazon Route 53 chooses a resource record + // set from the healthy resource record sets, and responds to the query. // - // Note the following: - // - // You cannot set EvaluateTargetHealth to true when the alias target is a - // CloudFront distribution. - // - // If the AWS resource that you specify in AliasTarget is a resource record - // set or a group of resource record sets (for example, a group of weighted - // resource record sets), but it is not another alias resource record set, we - // recommend that you associate a health check with all of the resource record - // sets in the alias target.For more information, see What Happens When You - // Omit Health Checks? (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-complex-configs.html#dns-failover-complex-configs-hc-omitting) - // in the Amazon Route 53 Developer Guide. + // Note the following: // - // If you specify an Elastic Beanstalk environment in HostedZoneId and DNSName, - // and if the environment contains an ELB load balancer, Elastic Load Balancing - // routes queries only to the healthy Amazon EC2 instances that are registered - // with the load balancer. (An environment automatically contains an ELB load - // balancer if it includes more than one Amazon EC2 instance.) If you set EvaluateTargetHealth - // to true and either no Amazon EC2 instances are healthy or the load balancer - // itself is unhealthy, Amazon Route 53 routes queries to other available resources - // that are healthy, if any. - // - // If the environment contains a single Amazon EC2 instance, there are no special - // requirements. - // - // If you specify an ELB load balancer in AliasTarget , Elastic Load Balancing - // routes queries only to the healthy Amazon EC2 instances that are registered - // with the load balancer. If no Amazon EC2 instances are healthy or if the - // load balancer itself is unhealthy, and if EvaluateTargetHealth is true for - // the corresponding alias resource record set, Amazon Route 53 routes queries - // to other resources. When you create a load balancer, you configure settings - // for Elastic Load Balancing health checks; they're not Amazon Route 53 health - // checks, but they perform a similar function. Do not create Amazon Route 53 - // health checks for the Amazon EC2 instances that you register with an ELB - // load balancer. - // - // For more information, see How Health Checks Work in More Complex Amazon - // Route 53 Configurations (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-complex-configs.html) - // in the Amazon Route 53 Developers Guide. - // - // We recommend that you set EvaluateTargetHealth to true only when you have - // enough idle capacity to handle the failure of one or more endpoints. - // - // For more information and examples, see Amazon Route 53 Health Checks and + // * You can't set EvaluateTargetHealth to true when the alias target is + // a CloudFront distribution. + // + // * If the AWS resource that you specify in AliasTarget is a resource record + // set or a group of resource record sets (for example, a group of weighted + // resource record sets), but it is not another alias resource record set, + // we recommend that you associate a health check with all of the resource + // record sets in the alias target.For more information, see What Happens + // When You Omit Health Checks? (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-complex-configs.html#dns-failover-complex-configs-hc-omitting) + // in the Amazon Route 53 Developer Guide. + // + // * If you specify an Elastic Beanstalk environment in HostedZoneId and + // DNSName, and if the environment contains an ELB load balancer, Elastic + // Load Balancing routes queries only to the healthy Amazon EC2 instances + // that are registered with the load balancer. (An environment automatically + // contains an ELB load balancer if it includes more than one EC2 instance.) + // If you set EvaluateTargetHealth to true and either no EC2 instances are + // healthy or the load balancer itself is unhealthy, Amazon Route 53 routes + // queries to other available resources that are healthy, if any. + // + // If the environment contains a single EC2 instance, there are no special requirements. + // + // * If you specify an ELB load balancer in AliasTarget, Elastic Load Balancing + // routes queries only to the healthy EC2 instances that are registered with + // the load balancer. If no EC2 instances are healthy or if the load balancer + // itself is unhealthy, and if EvaluateTargetHealth is true for the corresponding + // alias resource record set, Amazon Route 53 routes queries to other resources. + // When you create a load balancer, you configure settings for Elastic Load + // Balancing health checks; they're not Amazon Route 53 health checks, but + // they perform a similar function. Do not create Amazon Route 53 health + // checks for the EC2 instances that you register with an ELB load balancer. + // + // For more information, see How Health Checks Work in More Complex Amazon Route + // 53 Configurations (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-complex-configs.html) + // in the Amazon Route 53 Developers Guide. + // + // * We recommend that you set EvaluateTargetHealth to true only when you + // have enough idle capacity to handle the failure of one or more endpoints. + // + // For more information and examples, see Amazon Route 53 Health Checks and // DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html) // in the Amazon Route 53 Developer Guide. // // EvaluateTargetHealth is a required field EvaluateTargetHealth *bool `type:"boolean" required:"true"` - // Alias resource records sets only: The value used depends on where the queries - // are routed: + // Alias resource records sets only: The value used depends on where you want + // to route traffic: // - // A CloudFront distribution Specify Z2FDTNDATAQYW2. + // CloudFront distributionSpecify Z2FDTNDATAQYW2. // - // Alias resource record sets for CloudFront cannot be created in a private - // zone. + // Alias resource record sets for CloudFront can't be created in a private zone. // - // Elastic Beanstalk environment Specify the hosted zone ID for the region - // in which you created the environment. The environment must have a regionalized + // Elastic Beanstalk environmentSpecify the hosted zone ID for the region in + // which you created the environment. The environment must have a regionalized // subdomain. For a list of regions and the corresponding hosted zone IDs, see // AWS Elastic Beanstalk (http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticbeanstalk_region) - // in the Regions and Endpoints chapter of the AWS General Reference. + // in the "AWS Regions and Endpoints" chapter of the Amazon Web Services General + // Reference. + // + // ELB load balancerSpecify the value of the hosted zone ID for the load balancer. + // Use the following methods to get the hosted zone ID: + // + // Elastic Load Balancing (http://docs.aws.amazon.com/general/latest/gr/rande.html#elb_region) + // table in the "AWS Regions and Endpoints" chapter of the Amazon Web Services + // General Reference: Use the value in the "Amazon Route 53 Hosted Zone ID" + // column that corresponds with the region that you created your load balancer + // in. // - // ELB load balancer Specify the value of the hosted zone ID for the load - // balancer. Use the following methods to get the hosted zone ID: + // AWS Management Console: Go to the Amazon EC2 page, click Load Balancers in + // the navigation pane, select the load balancer, and get the value of the Hosted + // zone field on the Description tab. // - // AWS Management Console: Go to the Amazon EC2; page, click Load Balancers - // in the navigation pane, select the load balancer, and get the value of the - // Hosted Zone ID field on the Description tab. Use the same process to get - // the DNS Name. See HostedZone$Name. + // Elastic Load Balancing API: Use DescribeLoadBalancers to get the value of + // CanonicalHostedZoneNameId. For more information, see the applicable guide: // - // Elastic Load Balancing API: Use DescribeLoadBalancers to get the value - // of CanonicalHostedZoneNameID. Use the same process to get the CanonicalHostedZoneName. - // See HostedZone$Name. + // Classic Load Balancer: DescribeLoadBalancers (http://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_DescribeLoadBalancers.html) // - // AWS CLI: Use describe-load-balancers (http://docs.aws.amazon.com/cli/latest/reference/elb/describe-load-balancers.html) - // to get the value of CanonicalHostedZoneNameID. Use the same process to get - // the CanonicalHostedZoneName. See HostedZone$Name. + // Application Load Balancer: DescribeLoadBalancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html) // - // An Amazon S3 bucket configured as a static website Specify the hosted - // zone ID for the Amazon S3 website endpoint in which you created the bucket. - // For more information about valid values, see the table Amazon S3 (S3) Website - // Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) - // in the Amazon Web Services General Reference. + // AWS CLI: Use describe-load-balancers (http://docs.aws.amazon.com/cli/latest/reference/elb/describe-load-balancers.html) + // to get the value of CanonicalHostedZoneNameID. // - // Another Amazon Route 53 resource record set in your hosted zone Specify - // the hosted zone ID of your hosted zone. (An alias resource record set cannot - // reference a resource record set in a different hosted zone.) + // An Amazon S3 bucket configured as a static websiteSpecify the hosted zone + // ID for the region that you created the bucket in. For more information about + // valid values, see the Amazon Simple Storage Service Website Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) + // table in the "AWS Regions and Endpoints" chapter of the Amazon Web Services + // General Reference. + // + // Another Amazon Route 53 resource record set in your hosted zoneSpecify the + // hosted zone ID of your hosted zone. (An alias resource record set can't reference + // a resource record set in a different hosted zone.) // // HostedZoneId is a required field HostedZoneId *string `type:"string" required:"true"` @@ -4560,24 +4707,44 @@ func (s *AliasTarget) Validate() error { return nil } -// A complex type that contains information about the VPC and the hosted zone -// that you want to associate. +// SetDNSName sets the DNSName field's value. +func (s *AliasTarget) SetDNSName(v string) *AliasTarget { + s.DNSName = &v + return s +} + +// SetEvaluateTargetHealth sets the EvaluateTargetHealth field's value. +func (s *AliasTarget) SetEvaluateTargetHealth(v bool) *AliasTarget { + s.EvaluateTargetHealth = &v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *AliasTarget) SetHostedZoneId(v string) *AliasTarget { + s.HostedZoneId = &v + return s +} + +// A complex type that contains information about the request to associate a +// VPC with a private hosted zone. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/AssociateVPCWithHostedZoneRequest type AssociateVPCWithHostedZoneInput struct { _ struct{} `locationName:"AssociateVPCWithHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` // Optional: A comment about the association request. Comment *string `type:"string"` - // The ID of the hosted zone you want to associate your VPC with. + // The ID of the private hosted zone that you want to associate an Amazon VPC + // with. // - // Note that you cannot associate a VPC with a hosted zone that doesn't have + // Note that you can't associate a VPC with a hosted zone that doesn't have // an existing VPC association. // // HostedZoneId is a required field HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` - // A complex type containing information about the Amazon VPC that you're associating - // with the specified hosted zone. + // A complex type that contains information about the VPC that you want to associate + // with a private hosted zone. // // VPC is a required field VPC *VPC `type:"structure" required:"true"` @@ -4614,7 +4781,27 @@ func (s *AssociateVPCWithHostedZoneInput) Validate() error { return nil } -// A complex type that contains the response information for the hosted zone. +// SetComment sets the Comment field's value. +func (s *AssociateVPCWithHostedZoneInput) SetComment(v string) *AssociateVPCWithHostedZoneInput { + s.Comment = &v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *AssociateVPCWithHostedZoneInput) SetHostedZoneId(v string) *AssociateVPCWithHostedZoneInput { + s.HostedZoneId = &v + return s +} + +// SetVPC sets the VPC field's value. +func (s *AssociateVPCWithHostedZoneInput) SetVPC(v *VPC) *AssociateVPCWithHostedZoneInput { + s.VPC = v + return s +} + +// A complex type that contains the response information for the AssociateVPCWithHostedZone +// request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/AssociateVPCWithHostedZoneResponse type AssociateVPCWithHostedZoneOutput struct { _ struct{} `type:"structure"` @@ -4634,38 +4821,73 @@ func (s AssociateVPCWithHostedZoneOutput) GoString() string { return s.String() } +// SetChangeInfo sets the ChangeInfo field's value. +func (s *AssociateVPCWithHostedZoneOutput) SetChangeInfo(v *ChangeInfo) *AssociateVPCWithHostedZoneOutput { + s.ChangeInfo = v + return s +} + // The information for each resource record set that you want to change. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/Change type Change struct { _ struct{} `type:"structure"` // The action to perform: // - // CREATE: Creates a resource record set that has the specified values. + // * CREATE: Creates a resource record set that has the specified values. // - // DELETE: Deletes a existing resource record set that has the specified - // values for Name, Type, SetIdentifier (for latency, weighted, geolocation, - // and failover resource record sets), and TTL (except alias resource record - // sets, for which the TTL is determined by the AWS resource that you're routing - // DNS queries to). + // * DELETE: Deletes a existing resource record set. // - // To delete the resource record set that is associated with a traffic policy - // instance, use DeleteTrafficPolicyInstance . Amazon Route 53will delete the - // resource record set automatically. If you delete the resource record set - // by using ChangeResourceRecordSets, Amazon Route 53 doesn't automatically - // delete the traffic policy instance, and you'll continue to be charged for - // it even though it's no longer in use. + // To delete the resource record set that is associated with a traffic policy + // instance, use DeleteTrafficPolicyInstance. Amazon Route 53 will delete + // the resource record set automatically. If you delete the resource record + // set by using ChangeResourceRecordSets, Amazon Route 53 doesn't automatically + // delete the traffic policy instance, and you'll continue to be charged + // for it even though it's no longer in use. + // + // * UPSERT: If a resource record set doesn't already exist, Amazon Route + // 53 creates it. If a resource record set does exist, Amazon Route 53 updates + // it with the values in the request. + // + // The values that you need to include in the request depend on the type of + // resource record set that you're creating, deleting, or updating: + // + // Basic resource record sets (excluding alias, failover, geolocation, latency, + // and weighted resource record sets) + // + // * Name + // + // * Type + // + // * TTL + // + // Failover, geolocation, latency, or weighted resource record sets (excluding + // alias resource record sets) + // + // * Name + // + // * Type + // + // * TTL + // + // * SetIdentifier + // + // Alias resource record sets (including failover alias, geolocation alias, + // latency alias, and weighted alias resource record sets) // - // UPSERT: If a resource record set does not already exist, Amazon Route - // 53 creates it. If a resource record set does exist, Amazon Route 53 updates - // it with the values in the request. Amazon Route 53 can update an existing - // resource record set only when all of the following values match: Name, Type, - // and SetIdentifier (for weighted, latency, geolocation, and failover resource - // record sets). + // * Name + // + // * Type + // + // * AliasTarget (includes DNSName, EvaluateTargetHealth, and HostedZoneId) + // + // * SetIdentifier (for failover, geolocation, latency, and weighted resource + // record sets) // // Action is a required field Action *string `type:"string" required:"true" enum:"ChangeAction"` - // Information about the resource record set to create or delete. + // Information about the resource record set to create, delete, or update. // // ResourceRecordSet is a required field ResourceRecordSet *ResourceRecordSet `type:"structure" required:"true"` @@ -4702,7 +4924,20 @@ func (s *Change) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *Change) SetAction(v string) *Change { + s.Action = &v + return s +} + +// SetResourceRecordSet sets the ResourceRecordSet field's value. +func (s *Change) SetResourceRecordSet(v *ResourceRecordSet) *Change { + s.ResourceRecordSet = v + return s +} + // The information for a change request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ChangeBatch type ChangeBatch struct { _ struct{} `type:"structure"` @@ -4751,56 +4986,21 @@ func (s *ChangeBatch) Validate() error { return nil } -// A complex type that lists the changes and information for a ChangeBatch. -type ChangeBatchRecord struct { - _ struct{} `deprecated:"true" type:"structure"` - - // A list of changes made in the ChangeBatch. - Changes []*Change `locationNameList:"Change" min:"1" type:"list"` - - // A complex type that describes change information about changes made to your - // hosted zone. - // - // This element contains an ID that you use when performing a GetChange action - // to get detailed information about the change. - Comment *string `type:"string"` - - // The ID of the request. Use this ID to track when the change has completed - // across all Amazon Route 53 DNS servers. - // - // Id is a required field - Id *string `type:"string" required:"true"` - - // The current state of the request. PENDING indicates that this request has - // not yet been applied to all Amazon Route 53 DNS servers. - // - // Valid Values: PENDING | INSYNC - // - // Status is a required field - Status *string `type:"string" required:"true" enum:"ChangeStatus"` - - // The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ, - // as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). - // The Z after the time indicates that the time is listed in Coordinated Universal - // Time (UTC). - SubmittedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The AWS account ID attached to the changes. - Submitter *string `type:"string"` -} - -// String returns the string representation -func (s ChangeBatchRecord) String() string { - return awsutil.Prettify(s) +// SetChanges sets the Changes field's value. +func (s *ChangeBatch) SetChanges(v []*Change) *ChangeBatch { + s.Changes = v + return s } -// GoString returns the string representation -func (s ChangeBatchRecord) GoString() string { - return s.String() +// SetComment sets the Comment field's value. +func (s *ChangeBatch) SetComment(v string) *ChangeBatch { + s.Comment = &v + return s } // A complex type that describes change information about changes made to your // hosted zone. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ChangeInfo type ChangeInfo struct { _ struct{} `type:"structure"` @@ -4840,7 +5040,32 @@ func (s ChangeInfo) GoString() string { return s.String() } +// SetComment sets the Comment field's value. +func (s *ChangeInfo) SetComment(v string) *ChangeInfo { + s.Comment = &v + return s +} + +// SetId sets the Id field's value. +func (s *ChangeInfo) SetId(v string) *ChangeInfo { + s.Id = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ChangeInfo) SetStatus(v string) *ChangeInfo { + s.Status = &v + return s +} + +// SetSubmittedAt sets the SubmittedAt field's value. +func (s *ChangeInfo) SetSubmittedAt(v time.Time) *ChangeInfo { + s.SubmittedAt = &v + return s +} + // A complex type that contains change information for the resource record set. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ChangeResourceRecordSetsRequest type ChangeResourceRecordSetsInput struct { _ struct{} `locationName:"ChangeResourceRecordSetsRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` @@ -4887,7 +5112,20 @@ func (s *ChangeResourceRecordSetsInput) Validate() error { return nil } +// SetChangeBatch sets the ChangeBatch field's value. +func (s *ChangeResourceRecordSetsInput) SetChangeBatch(v *ChangeBatch) *ChangeResourceRecordSetsInput { + s.ChangeBatch = v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *ChangeResourceRecordSetsInput) SetHostedZoneId(v string) *ChangeResourceRecordSetsInput { + s.HostedZoneId = &v + return s +} + // A complex type containing the response for the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ChangeResourceRecordSetsResponse type ChangeResourceRecordSetsOutput struct { _ struct{} `type:"structure"` @@ -4911,8 +5149,15 @@ func (s ChangeResourceRecordSetsOutput) GoString() string { return s.String() } +// SetChangeInfo sets the ChangeInfo field's value. +func (s *ChangeResourceRecordSetsOutput) SetChangeInfo(v *ChangeInfo) *ChangeResourceRecordSetsOutput { + s.ChangeInfo = v + return s +} + // A complex type that contains information about the tags that you want to // add, edit, or delete. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ChangeTagsForResourceRequest type ChangeTagsForResourceInput struct { _ struct{} `locationName:"ChangeTagsForResourceRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` @@ -4934,9 +5179,9 @@ type ChangeTagsForResourceInput struct { // The type of the resource. // - // The resource type for health checks is healthcheck. + // * The resource type for health checks is healthcheck. // - // The resource type for hosted zones is hostedzone. + // * The resource type for hosted zones is hostedzone. // // ResourceType is a required field ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"` @@ -4974,7 +5219,32 @@ func (s *ChangeTagsForResourceInput) Validate() error { return nil } +// SetAddTags sets the AddTags field's value. +func (s *ChangeTagsForResourceInput) SetAddTags(v []*Tag) *ChangeTagsForResourceInput { + s.AddTags = v + return s +} + +// SetRemoveTagKeys sets the RemoveTagKeys field's value. +func (s *ChangeTagsForResourceInput) SetRemoveTagKeys(v []*string) *ChangeTagsForResourceInput { + s.RemoveTagKeys = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *ChangeTagsForResourceInput) SetResourceId(v string) *ChangeTagsForResourceInput { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ChangeTagsForResourceInput) SetResourceType(v string) *ChangeTagsForResourceInput { + s.ResourceType = &v + return s +} + // Empty response for the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ChangeTagsForResourceResponse type ChangeTagsForResourceOutput struct { _ struct{} `type:"structure"` } @@ -4991,6 +5261,7 @@ func (s ChangeTagsForResourceOutput) GoString() string { // A complex type that contains information about the CloudWatch alarm that // Amazon Route 53 is monitoring for this health check. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CloudWatchAlarmConfiguration type CloudWatchAlarmConfiguration struct { _ struct{} `type:"structure"` @@ -5002,8 +5273,8 @@ type CloudWatchAlarmConfiguration struct { // For the metric that the CloudWatch alarm is associated with, a complex type // that contains information about the dimensions for the metric.For information, - // see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference ( http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html) - // in the Amazon CloudWatch Developer Guide. + // see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html) + // in the Amazon CloudWatch User Guide. Dimensions []*Dimension `locationNameList:"Dimension" type:"list"` // For the metric that the CloudWatch alarm is associated with, the number of @@ -5019,7 +5290,7 @@ type CloudWatchAlarmConfiguration struct { // The namespace of the metric that the alarm is associated with. For more information, // see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html) - // in the Amazon CloudWatch Developer Guide. + // in the Amazon CloudWatch User Guide. // // Namespace is a required field Namespace *string `min:"1" type:"string" required:"true"` @@ -5053,7 +5324,56 @@ func (s CloudWatchAlarmConfiguration) GoString() string { return s.String() } +// SetComparisonOperator sets the ComparisonOperator field's value. +func (s *CloudWatchAlarmConfiguration) SetComparisonOperator(v string) *CloudWatchAlarmConfiguration { + s.ComparisonOperator = &v + return s +} + +// SetDimensions sets the Dimensions field's value. +func (s *CloudWatchAlarmConfiguration) SetDimensions(v []*Dimension) *CloudWatchAlarmConfiguration { + s.Dimensions = v + return s +} + +// SetEvaluationPeriods sets the EvaluationPeriods field's value. +func (s *CloudWatchAlarmConfiguration) SetEvaluationPeriods(v int64) *CloudWatchAlarmConfiguration { + s.EvaluationPeriods = &v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *CloudWatchAlarmConfiguration) SetMetricName(v string) *CloudWatchAlarmConfiguration { + s.MetricName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *CloudWatchAlarmConfiguration) SetNamespace(v string) *CloudWatchAlarmConfiguration { + s.Namespace = &v + return s +} + +// SetPeriod sets the Period field's value. +func (s *CloudWatchAlarmConfiguration) SetPeriod(v int64) *CloudWatchAlarmConfiguration { + s.Period = &v + return s +} + +// SetStatistic sets the Statistic field's value. +func (s *CloudWatchAlarmConfiguration) SetStatistic(v string) *CloudWatchAlarmConfiguration { + s.Statistic = &v + return s +} + +// SetThreshold sets the Threshold field's value. +func (s *CloudWatchAlarmConfiguration) SetThreshold(v float64) *CloudWatchAlarmConfiguration { + s.Threshold = &v + return s +} + // A complex type that contains the health check request information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateHealthCheckRequest type CreateHealthCheckInput struct { _ struct{} `locationName:"CreateHealthCheckRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` @@ -5105,7 +5425,20 @@ func (s *CreateHealthCheckInput) Validate() error { return nil } +// SetCallerReference sets the CallerReference field's value. +func (s *CreateHealthCheckInput) SetCallerReference(v string) *CreateHealthCheckInput { + s.CallerReference = &v + return s +} + +// SetHealthCheckConfig sets the HealthCheckConfig field's value. +func (s *CreateHealthCheckInput) SetHealthCheckConfig(v *HealthCheckConfig) *CreateHealthCheckInput { + s.HealthCheckConfig = v + return s +} + // A complex type containing the response information for the new health check. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateHealthCheckResponse type CreateHealthCheckOutput struct { _ struct{} `type:"structure"` @@ -5130,7 +5463,20 @@ func (s CreateHealthCheckOutput) GoString() string { return s.String() } +// SetHealthCheck sets the HealthCheck field's value. +func (s *CreateHealthCheckOutput) SetHealthCheck(v *HealthCheck) *CreateHealthCheckOutput { + s.HealthCheck = v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateHealthCheckOutput) SetLocation(v string) *CreateHealthCheckOutput { + s.Location = &v + return s +} + // A complex type containing the hosted zone request information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateHostedZoneRequest type CreateHostedZoneInput struct { _ struct{} `locationName:"CreateHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` @@ -5148,11 +5494,11 @@ type CreateHostedZoneInput struct { // you created it. For more information about reusable delegation sets, see // CreateReusableDelegationSet. // - // Type String + // TypeString // - // Default None + // DefaultNone // - // Parent CreatedHostedZoneRequest + // ParentCreatedHostedZoneRequest DelegationSetId *string `type:"string"` // (Optional) A complex type that contains an optional comment about your hosted @@ -5175,7 +5521,7 @@ type CreateHostedZoneInput struct { Name *string `type:"string" required:"true"` // The VPC that you want your hosted zone to be associated with. By providing - // this parameter, your newly created hosted cannot be resolved anywhere other + // this parameter, your newly created hosted can't be resolved anywhere other // than the given VPC. VPC *VPC `type:"structure"` } @@ -5214,7 +5560,38 @@ func (s *CreateHostedZoneInput) Validate() error { return nil } +// SetCallerReference sets the CallerReference field's value. +func (s *CreateHostedZoneInput) SetCallerReference(v string) *CreateHostedZoneInput { + s.CallerReference = &v + return s +} + +// SetDelegationSetId sets the DelegationSetId field's value. +func (s *CreateHostedZoneInput) SetDelegationSetId(v string) *CreateHostedZoneInput { + s.DelegationSetId = &v + return s +} + +// SetHostedZoneConfig sets the HostedZoneConfig field's value. +func (s *CreateHostedZoneInput) SetHostedZoneConfig(v *HostedZoneConfig) *CreateHostedZoneInput { + s.HostedZoneConfig = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateHostedZoneInput) SetName(v string) *CreateHostedZoneInput { + s.Name = &v + return s +} + +// SetVPC sets the VPC field's value. +func (s *CreateHostedZoneInput) SetVPC(v *VPC) *CreateHostedZoneInput { + s.VPC = v + return s +} + // A complex type containing the response information for the hosted zone. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateHostedZoneResponse type CreateHostedZoneOutput struct { _ struct{} `type:"structure"` @@ -5253,6 +5630,37 @@ func (s CreateHostedZoneOutput) GoString() string { return s.String() } +// SetChangeInfo sets the ChangeInfo field's value. +func (s *CreateHostedZoneOutput) SetChangeInfo(v *ChangeInfo) *CreateHostedZoneOutput { + s.ChangeInfo = v + return s +} + +// SetDelegationSet sets the DelegationSet field's value. +func (s *CreateHostedZoneOutput) SetDelegationSet(v *DelegationSet) *CreateHostedZoneOutput { + s.DelegationSet = v + return s +} + +// SetHostedZone sets the HostedZone field's value. +func (s *CreateHostedZoneOutput) SetHostedZone(v *HostedZone) *CreateHostedZoneOutput { + s.HostedZone = v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateHostedZoneOutput) SetLocation(v string) *CreateHostedZoneOutput { + s.Location = &v + return s +} + +// SetVPC sets the VPC field's value. +func (s *CreateHostedZoneOutput) SetVPC(v *VPC) *CreateHostedZoneOutput { + s.VPC = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateReusableDelegationSetRequest type CreateReusableDelegationSetInput struct { _ struct{} `locationName:"CreateReusableDelegationSetRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` @@ -5296,6 +5704,19 @@ func (s *CreateReusableDelegationSetInput) Validate() error { return nil } +// SetCallerReference sets the CallerReference field's value. +func (s *CreateReusableDelegationSetInput) SetCallerReference(v string) *CreateReusableDelegationSetInput { + s.CallerReference = &v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *CreateReusableDelegationSetInput) SetHostedZoneId(v string) *CreateReusableDelegationSetInput { + s.HostedZoneId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateReusableDelegationSetResponse type CreateReusableDelegationSetOutput struct { _ struct{} `type:"structure"` @@ -5320,8 +5741,21 @@ func (s CreateReusableDelegationSetOutput) GoString() string { return s.String() } +// SetDelegationSet sets the DelegationSet field's value. +func (s *CreateReusableDelegationSetOutput) SetDelegationSet(v *DelegationSet) *CreateReusableDelegationSetOutput { + s.DelegationSet = v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateReusableDelegationSetOutput) SetLocation(v string) *CreateReusableDelegationSetOutput { + s.Location = &v + return s +} + // A complex type that contains information about the traffic policy that you // want to create. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateTrafficPolicyRequest type CreateTrafficPolicyInput struct { _ struct{} `locationName:"CreateTrafficPolicyRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` @@ -5329,8 +5763,7 @@ type CreateTrafficPolicyInput struct { Comment *string `type:"string"` // The definition of this traffic policy in JSON format. For more information, - // see Traffic Policy Document Format (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/api-policies-traffic-policy-document-format.html) - // in the Amazon Route 53 API Reference. + // see Traffic Policy Document Format (http://docs.aws.amazon.com/Route53/latest/APIReference/api-policies-traffic-policy-document-format.html). // // Document is a required field Document *string `type:"string" required:"true"` @@ -5367,8 +5800,27 @@ func (s *CreateTrafficPolicyInput) Validate() error { return nil } +// SetComment sets the Comment field's value. +func (s *CreateTrafficPolicyInput) SetComment(v string) *CreateTrafficPolicyInput { + s.Comment = &v + return s +} + +// SetDocument sets the Document field's value. +func (s *CreateTrafficPolicyInput) SetDocument(v string) *CreateTrafficPolicyInput { + s.Document = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateTrafficPolicyInput) SetName(v string) *CreateTrafficPolicyInput { + s.Name = &v + return s +} + // A complex type that contains information about the resource record sets that // you want to create based on a specified traffic policy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateTrafficPolicyInstanceRequest type CreateTrafficPolicyInstanceInput struct { _ struct{} `locationName:"CreateTrafficPolicyInstanceRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` @@ -5395,7 +5847,7 @@ type CreateTrafficPolicyInstanceInput struct { // sets in the specified hosted zone. // // TrafficPolicyId is a required field - TrafficPolicyId *string `type:"string" required:"true"` + TrafficPolicyId *string `min:"1" type:"string" required:"true"` // The version of the traffic policy that you want to use to create resource // record sets in the specified hosted zone. @@ -5429,6 +5881,9 @@ func (s *CreateTrafficPolicyInstanceInput) Validate() error { if s.TrafficPolicyId == nil { invalidParams.Add(request.NewErrParamRequired("TrafficPolicyId")) } + if s.TrafficPolicyId != nil && len(*s.TrafficPolicyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TrafficPolicyId", 1)) + } if s.TrafficPolicyVersion == nil { invalidParams.Add(request.NewErrParamRequired("TrafficPolicyVersion")) } @@ -5442,8 +5897,39 @@ func (s *CreateTrafficPolicyInstanceInput) Validate() error { return nil } +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *CreateTrafficPolicyInstanceInput) SetHostedZoneId(v string) *CreateTrafficPolicyInstanceInput { + s.HostedZoneId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateTrafficPolicyInstanceInput) SetName(v string) *CreateTrafficPolicyInstanceInput { + s.Name = &v + return s +} + +// SetTTL sets the TTL field's value. +func (s *CreateTrafficPolicyInstanceInput) SetTTL(v int64) *CreateTrafficPolicyInstanceInput { + s.TTL = &v + return s +} + +// SetTrafficPolicyId sets the TrafficPolicyId field's value. +func (s *CreateTrafficPolicyInstanceInput) SetTrafficPolicyId(v string) *CreateTrafficPolicyInstanceInput { + s.TrafficPolicyId = &v + return s +} + +// SetTrafficPolicyVersion sets the TrafficPolicyVersion field's value. +func (s *CreateTrafficPolicyInstanceInput) SetTrafficPolicyVersion(v int64) *CreateTrafficPolicyInstanceInput { + s.TrafficPolicyVersion = &v + return s +} + // A complex type that contains the response information for the CreateTrafficPolicyInstance // request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateTrafficPolicyInstanceResponse type CreateTrafficPolicyInstanceOutput struct { _ struct{} `type:"structure"` @@ -5468,8 +5954,21 @@ func (s CreateTrafficPolicyInstanceOutput) GoString() string { return s.String() } +// SetLocation sets the Location field's value. +func (s *CreateTrafficPolicyInstanceOutput) SetLocation(v string) *CreateTrafficPolicyInstanceOutput { + s.Location = &v + return s +} + +// SetTrafficPolicyInstance sets the TrafficPolicyInstance field's value. +func (s *CreateTrafficPolicyInstanceOutput) SetTrafficPolicyInstance(v *TrafficPolicyInstance) *CreateTrafficPolicyInstanceOutput { + s.TrafficPolicyInstance = v + return s +} + // A complex type that contains the response information for the CreateTrafficPolicy // request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateTrafficPolicyResponse type CreateTrafficPolicyOutput struct { _ struct{} `type:"structure"` @@ -5494,8 +5993,21 @@ func (s CreateTrafficPolicyOutput) GoString() string { return s.String() } +// SetLocation sets the Location field's value. +func (s *CreateTrafficPolicyOutput) SetLocation(v string) *CreateTrafficPolicyOutput { + s.Location = &v + return s +} + +// SetTrafficPolicy sets the TrafficPolicy field's value. +func (s *CreateTrafficPolicyOutput) SetTrafficPolicy(v *TrafficPolicy) *CreateTrafficPolicyOutput { + s.TrafficPolicy = v + return s +} + // A complex type that contains information about the traffic policy for which // you want to create a new version. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateTrafficPolicyVersionRequest type CreateTrafficPolicyVersionInput struct { _ struct{} `locationName:"CreateTrafficPolicyVersionRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` @@ -5513,7 +6025,7 @@ type CreateTrafficPolicyVersionInput struct { // The ID of the traffic policy for which you want to create a new version. // // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + Id *string `location:"uri" locationName:"Id" min:"1" type:"string" required:"true"` } // String returns the string representation @@ -5535,6 +6047,9 @@ func (s *CreateTrafficPolicyVersionInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5542,8 +6057,27 @@ func (s *CreateTrafficPolicyVersionInput) Validate() error { return nil } +// SetComment sets the Comment field's value. +func (s *CreateTrafficPolicyVersionInput) SetComment(v string) *CreateTrafficPolicyVersionInput { + s.Comment = &v + return s +} + +// SetDocument sets the Document field's value. +func (s *CreateTrafficPolicyVersionInput) SetDocument(v string) *CreateTrafficPolicyVersionInput { + s.Document = &v + return s +} + +// SetId sets the Id field's value. +func (s *CreateTrafficPolicyVersionInput) SetId(v string) *CreateTrafficPolicyVersionInput { + s.Id = &v + return s +} + // A complex type that contains the response information for the CreateTrafficPolicyVersion // request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateTrafficPolicyVersionResponse type CreateTrafficPolicyVersionOutput struct { _ struct{} `type:"structure"` @@ -5569,7 +6103,122 @@ func (s CreateTrafficPolicyVersionOutput) GoString() string { return s.String() } +// SetLocation sets the Location field's value. +func (s *CreateTrafficPolicyVersionOutput) SetLocation(v string) *CreateTrafficPolicyVersionOutput { + s.Location = &v + return s +} + +// SetTrafficPolicy sets the TrafficPolicy field's value. +func (s *CreateTrafficPolicyVersionOutput) SetTrafficPolicy(v *TrafficPolicy) *CreateTrafficPolicyVersionOutput { + s.TrafficPolicy = v + return s +} + +// A complex type that contains information about the request to authorize associating +// a VPC with your private hosted zone. Authorization is only required when +// a private hosted zone and a VPC were created by using different accounts. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateVPCAssociationAuthorizationRequest +type CreateVPCAssociationAuthorizationInput struct { + _ struct{} `locationName:"CreateVPCAssociationAuthorizationRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` + + // The ID of the private hosted zone that you want to authorize associating + // a VPC with. + // + // HostedZoneId is a required field + HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // A complex type that contains the VPC ID and region for the VPC that you want + // to authorize associating with your hosted zone. + // + // VPC is a required field + VPC *VPC `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateVPCAssociationAuthorizationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVPCAssociationAuthorizationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateVPCAssociationAuthorizationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateVPCAssociationAuthorizationInput"} + if s.HostedZoneId == nil { + invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) + } + if s.VPC == nil { + invalidParams.Add(request.NewErrParamRequired("VPC")) + } + if s.VPC != nil { + if err := s.VPC.Validate(); err != nil { + invalidParams.AddNested("VPC", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *CreateVPCAssociationAuthorizationInput) SetHostedZoneId(v string) *CreateVPCAssociationAuthorizationInput { + s.HostedZoneId = &v + return s +} + +// SetVPC sets the VPC field's value. +func (s *CreateVPCAssociationAuthorizationInput) SetVPC(v *VPC) *CreateVPCAssociationAuthorizationInput { + s.VPC = v + return s +} + +// A complex type that contains the response information from a CreateVPCAssociationAuthorization +// request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateVPCAssociationAuthorizationResponse +type CreateVPCAssociationAuthorizationOutput struct { + _ struct{} `type:"structure"` + + // The ID of the hosted zone that you authorized associating a VPC with. + // + // HostedZoneId is a required field + HostedZoneId *string `type:"string" required:"true"` + + // The VPC that you authorized associating with a hosted zone. + // + // VPC is a required field + VPC *VPC `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateVPCAssociationAuthorizationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVPCAssociationAuthorizationOutput) GoString() string { + return s.String() +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *CreateVPCAssociationAuthorizationOutput) SetHostedZoneId(v string) *CreateVPCAssociationAuthorizationOutput { + s.HostedZoneId = &v + return s +} + +// SetVPC sets the VPC field's value. +func (s *CreateVPCAssociationAuthorizationOutput) SetVPC(v *VPC) *CreateVPCAssociationAuthorizationOutput { + s.VPC = v + return s +} + // A complex type that describes the name servers for this hosted zone. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DelegationSet type DelegationSet struct { _ struct{} `type:"structure"` @@ -5600,8 +6249,27 @@ func (s DelegationSet) GoString() string { return s.String() } +// SetCallerReference sets the CallerReference field's value. +func (s *DelegationSet) SetCallerReference(v string) *DelegationSet { + s.CallerReference = &v + return s +} + +// SetId sets the Id field's value. +func (s *DelegationSet) SetId(v string) *DelegationSet { + s.Id = &v + return s +} + +// SetNameServers sets the NameServers field's value. +func (s *DelegationSet) SetNameServers(v []*string) *DelegationSet { + s.NameServers = v + return s +} + // This action deletes a health check. Send a DELETE request to the /2013-04-01/DeleteHealthCheckRequest // resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteHealthCheckRequest type DeleteHealthCheckInput struct { _ struct{} `type:"structure"` @@ -5634,7 +6302,14 @@ func (s *DeleteHealthCheckInput) Validate() error { return nil } +// SetHealthCheckId sets the HealthCheckId field's value. +func (s *DeleteHealthCheckInput) SetHealthCheckId(v string) *DeleteHealthCheckInput { + s.HealthCheckId = &v + return s +} + // An empty element. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteHealthCheckResponse type DeleteHealthCheckOutput struct { _ struct{} `type:"structure"` } @@ -5651,6 +6326,7 @@ func (s DeleteHealthCheckOutput) GoString() string { // A complex type that contains information about the hosted zone that you want // to delete. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteHostedZoneRequest type DeleteHostedZoneInput struct { _ struct{} `type:"structure"` @@ -5683,7 +6359,14 @@ func (s *DeleteHostedZoneInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *DeleteHostedZoneInput) SetId(v string) *DeleteHostedZoneInput { + s.Id = &v + return s +} + // A complex type containing the response information for the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteHostedZoneResponse type DeleteHostedZoneOutput struct { _ struct{} `type:"structure"` @@ -5704,7 +6387,14 @@ func (s DeleteHostedZoneOutput) GoString() string { return s.String() } +// SetChangeInfo sets the ChangeInfo field's value. +func (s *DeleteHostedZoneOutput) SetChangeInfo(v *ChangeInfo) *DeleteHostedZoneOutput { + s.ChangeInfo = v + return s +} + // A complex type containing the information for the delete request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteReusableDelegationSetRequest type DeleteReusableDelegationSetInput struct { _ struct{} `type:"structure"` @@ -5737,7 +6427,14 @@ func (s *DeleteReusableDelegationSetInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *DeleteReusableDelegationSetInput) SetId(v string) *DeleteReusableDelegationSetInput { + s.Id = &v + return s +} + // An empty element. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteReusableDelegationSetResponse type DeleteReusableDelegationSetOutput struct { _ struct{} `type:"structure"` } @@ -5753,13 +6450,14 @@ func (s DeleteReusableDelegationSetOutput) GoString() string { } // A request to delete a specified traffic policy version. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteTrafficPolicyRequest type DeleteTrafficPolicyInput struct { _ struct{} `type:"structure"` // The ID of the traffic policy that you want to delete. // // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + Id *string `location:"uri" locationName:"Id" min:"1" type:"string" required:"true"` // The version number of the traffic policy that you want to delete. // @@ -5783,6 +6481,9 @@ func (s *DeleteTrafficPolicyInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if s.Version == nil { invalidParams.Add(request.NewErrParamRequired("Version")) } @@ -5796,19 +6497,32 @@ func (s *DeleteTrafficPolicyInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *DeleteTrafficPolicyInput) SetId(v string) *DeleteTrafficPolicyInput { + s.Id = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *DeleteTrafficPolicyInput) SetVersion(v int64) *DeleteTrafficPolicyInput { + s.Version = &v + return s +} + // A complex type that contains information about the traffic policy instance // that you want to delete. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteTrafficPolicyInstanceRequest type DeleteTrafficPolicyInstanceInput struct { _ struct{} `type:"structure"` // The ID of the traffic policy instance that you want to delete. // - // When you delete a traffic policy instance, Amazon Route 53 also deletes - // all of the resource record sets that were created when you created the traffic + // When you delete a traffic policy instance, Amazon Route 53 also deletes all + // of the resource record sets that were created when you created the traffic // policy instance. // // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + Id *string `location:"uri" locationName:"Id" min:"1" type:"string" required:"true"` } // String returns the string representation @@ -5827,6 +6541,9 @@ func (s *DeleteTrafficPolicyInstanceInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5834,7 +6551,14 @@ func (s *DeleteTrafficPolicyInstanceInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *DeleteTrafficPolicyInstanceInput) SetId(v string) *DeleteTrafficPolicyInstanceInput { + s.Id = &v + return s +} + // An empty element. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteTrafficPolicyInstanceResponse type DeleteTrafficPolicyInstanceOutput struct { _ struct{} `type:"structure"` } @@ -5850,6 +6574,7 @@ func (s DeleteTrafficPolicyInstanceOutput) GoString() string { } // An empty element. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteTrafficPolicyResponse type DeleteTrafficPolicyOutput struct { _ struct{} `type:"structure"` } @@ -5864,12 +6589,94 @@ func (s DeleteTrafficPolicyOutput) GoString() string { return s.String() } -// For the metric that the CloudWatch alarm is associated with, a complex type -// that contains information about one dimension. -type Dimension struct { - _ struct{} `type:"structure"` +// A complex type that contains information about the request to remove authorization +// to associate a VPC that was created by one AWS account with a hosted zone +// that was created with a different AWS account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteVPCAssociationAuthorizationRequest +type DeleteVPCAssociationAuthorizationInput struct { + _ struct{} `locationName:"DeleteVPCAssociationAuthorizationRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` - // For the metric that the CloudWatch alarm is associated with, the name of + // When removing authorization to associate a VPC that was created by one AWS + // account with a hosted zone that was created with a different AWS account, + // the ID of the hosted zone. + // + // HostedZoneId is a required field + HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // When removing authorization to associate a VPC that was created by one AWS + // account with a hosted zone that was created with a different AWS account, + // a complex type that includes the ID and region of the VPC. + // + // VPC is a required field + VPC *VPC `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DeleteVPCAssociationAuthorizationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVPCAssociationAuthorizationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVPCAssociationAuthorizationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVPCAssociationAuthorizationInput"} + if s.HostedZoneId == nil { + invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) + } + if s.VPC == nil { + invalidParams.Add(request.NewErrParamRequired("VPC")) + } + if s.VPC != nil { + if err := s.VPC.Validate(); err != nil { + invalidParams.AddNested("VPC", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *DeleteVPCAssociationAuthorizationInput) SetHostedZoneId(v string) *DeleteVPCAssociationAuthorizationInput { + s.HostedZoneId = &v + return s +} + +// SetVPC sets the VPC field's value. +func (s *DeleteVPCAssociationAuthorizationInput) SetVPC(v *VPC) *DeleteVPCAssociationAuthorizationInput { + s.VPC = v + return s +} + +// Empty response for the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteVPCAssociationAuthorizationResponse +type DeleteVPCAssociationAuthorizationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteVPCAssociationAuthorizationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVPCAssociationAuthorizationOutput) GoString() string { + return s.String() +} + +// For the metric that the CloudWatch alarm is associated with, a complex type +// that contains information about one dimension. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/Dimension +type Dimension struct { + _ struct{} `type:"structure"` + + // For the metric that the CloudWatch alarm is associated with, the name of // one dimension. // // Name is a required field @@ -5892,21 +6699,33 @@ func (s Dimension) GoString() string { return s.String() } -// A complex type that contains information about the VPC and the hosted zone -// that you want to disassociate. +// SetName sets the Name field's value. +func (s *Dimension) SetName(v string) *Dimension { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Dimension) SetValue(v string) *Dimension { + s.Value = &v + return s +} + +// A complex type that contains information about the VPC that you want to disassociate +// from a specified private hosted zone. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DisassociateVPCFromHostedZoneRequest type DisassociateVPCFromHostedZoneInput struct { _ struct{} `locationName:"DisassociateVPCFromHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` // Optional: A comment about the disassociation request. Comment *string `type:"string"` - // The ID of the VPC that you want to disassociate from an Amazon Route 53 hosted - // zone. + // The ID of the private hosted zone that you want to disassociate a VPC from. // // HostedZoneId is a required field HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` - // A complex type containing information about the Amazon VPC that you're disassociating + // A complex type that contains information about the VPC that you're disassociating // from the specified hosted zone. // // VPC is a required field @@ -5944,12 +6763,32 @@ func (s *DisassociateVPCFromHostedZoneInput) Validate() error { return nil } +// SetComment sets the Comment field's value. +func (s *DisassociateVPCFromHostedZoneInput) SetComment(v string) *DisassociateVPCFromHostedZoneInput { + s.Comment = &v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *DisassociateVPCFromHostedZoneInput) SetHostedZoneId(v string) *DisassociateVPCFromHostedZoneInput { + s.HostedZoneId = &v + return s +} + +// SetVPC sets the VPC field's value. +func (s *DisassociateVPCFromHostedZoneInput) SetVPC(v *VPC) *DisassociateVPCFromHostedZoneInput { + s.VPC = v + return s +} + // A complex type that contains the response information for the disassociate // request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DisassociateVPCFromHostedZoneResponse type DisassociateVPCFromHostedZoneOutput struct { _ struct{} `type:"structure"` - // A complex type that describes the changes made to your hosted zone. + // A complex type that describes the changes made to the specified private hosted + // zone. // // ChangeInfo is a required field ChangeInfo *ChangeInfo `type:"structure" required:"true"` @@ -5965,7 +6804,14 @@ func (s DisassociateVPCFromHostedZoneOutput) GoString() string { return s.String() } +// SetChangeInfo sets the ChangeInfo field's value. +func (s *DisassociateVPCFromHostedZoneOutput) SetChangeInfo(v *ChangeInfo) *DisassociateVPCFromHostedZoneOutput { + s.ChangeInfo = v + return s +} + // A complex type that contains information about a geo location. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GeoLocation type GeoLocation struct { _ struct{} `type:"structure"` @@ -6014,8 +6860,27 @@ func (s *GeoLocation) Validate() error { return nil } +// SetContinentCode sets the ContinentCode field's value. +func (s *GeoLocation) SetContinentCode(v string) *GeoLocation { + s.ContinentCode = &v + return s +} + +// SetCountryCode sets the CountryCode field's value. +func (s *GeoLocation) SetCountryCode(v string) *GeoLocation { + s.CountryCode = &v + return s +} + +// SetSubdivisionCode sets the SubdivisionCode field's value. +func (s *GeoLocation) SetSubdivisionCode(v string) *GeoLocation { + s.SubdivisionCode = &v + return s +} + // A complex type that contains the codes and full continent, country, and subdivision // names for the specified geolocation code. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GeoLocationDetails type GeoLocationDetails struct { _ struct{} `type:"structure"` @@ -6050,63 +6915,44 @@ func (s GeoLocationDetails) GoString() string { return s.String() } -// The input for a GetChangeDetails request. -type GetChangeDetailsInput struct { - _ struct{} `deprecated:"true" type:"structure"` - - // The ID of the change batch. This is the value that you specified in the change - // ID parameter when you submitted the request. - // - // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetChangeDetailsInput) String() string { - return awsutil.Prettify(s) +// SetContinentCode sets the ContinentCode field's value. +func (s *GeoLocationDetails) SetContinentCode(v string) *GeoLocationDetails { + s.ContinentCode = &v + return s } -// GoString returns the string representation -func (s GetChangeDetailsInput) GoString() string { - return s.String() +// SetContinentName sets the ContinentName field's value. +func (s *GeoLocationDetails) SetContinentName(v string) *GeoLocationDetails { + s.ContinentName = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetChangeDetailsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetChangeDetailsInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetCountryCode sets the CountryCode field's value. +func (s *GeoLocationDetails) SetCountryCode(v string) *GeoLocationDetails { + s.CountryCode = &v + return s } -// A complex type that contains the ChangeBatchRecord element. -type GetChangeDetailsOutput struct { - _ struct{} `deprecated:"true" type:"structure"` - - // A complex type that contains information about the specified change batch, - // including the change batch ID, the status of the change, and the contained - // changes. - // - // ChangeBatchRecord is a required field - ChangeBatchRecord *ChangeBatchRecord `deprecated:"true" type:"structure" required:"true"` +// SetCountryName sets the CountryName field's value. +func (s *GeoLocationDetails) SetCountryName(v string) *GeoLocationDetails { + s.CountryName = &v + return s } -// String returns the string representation -func (s GetChangeDetailsOutput) String() string { - return awsutil.Prettify(s) +// SetSubdivisionCode sets the SubdivisionCode field's value. +func (s *GeoLocationDetails) SetSubdivisionCode(v string) *GeoLocationDetails { + s.SubdivisionCode = &v + return s } -// GoString returns the string representation -func (s GetChangeDetailsOutput) GoString() string { - return s.String() +// SetSubdivisionName sets the SubdivisionName field's value. +func (s *GeoLocationDetails) SetSubdivisionName(v string) *GeoLocationDetails { + s.SubdivisionName = &v + return s } // The input for a GetChange request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetChangeRequest type GetChangeInput struct { _ struct{} `type:"structure"` @@ -6141,7 +6987,14 @@ func (s *GetChangeInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetChangeInput) SetId(v string) *GetChangeInput { + s.Id = &v + return s +} + // A complex type that contains the ChangeInfo element. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetChangeResponse type GetChangeOutput struct { _ struct{} `type:"structure"` @@ -6161,7 +7014,13 @@ func (s GetChangeOutput) GoString() string { return s.String() } -// Empty request. +// SetChangeInfo sets the ChangeInfo field's value. +func (s *GetChangeOutput) SetChangeInfo(v *ChangeInfo) *GetChangeOutput { + s.ChangeInfo = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetCheckerIpRangesRequest type GetCheckerIpRangesInput struct { _ struct{} `type:"structure"` } @@ -6176,13 +7035,10 @@ func (s GetCheckerIpRangesInput) GoString() string { return s.String() } -// A complex type that contains the CheckerIpRanges element. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetCheckerIpRangesResponse type GetCheckerIpRangesOutput struct { _ struct{} `type:"structure"` - // A complex type that contains sorted list of IP ranges in CIDR format for - // Amazon Route 53 health checkers. - // // CheckerIpRanges is a required field CheckerIpRanges []*string `type:"list" required:"true"` } @@ -6197,25 +7053,32 @@ func (s GetCheckerIpRangesOutput) GoString() string { return s.String() } +// SetCheckerIpRanges sets the CheckerIpRanges field's value. +func (s *GetCheckerIpRangesOutput) SetCheckerIpRanges(v []*string) *GetCheckerIpRangesOutput { + s.CheckerIpRanges = v + return s +} + // A complex type that contains information about the request to get a geo location. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetGeoLocationRequest type GetGeoLocationInput struct { _ struct{} `type:"structure"` // Amazon Route 53 supports the following continent codes: // - // AF: Africa + // * AF: Africa // - // AN: Antarctica + // * AN: Antarctica // - // AS: Asia + // * AS: Asia // - // EU: Europe + // * EU: Europe // - // OC: Oceania + // * OC: Oceania // - // NA: North America + // * NA: North America // - // SA: South America + // * SA: South America ContinentCode *string `location:"querystring" locationName:"continentcode" min:"2" type:"string"` // Amazon Route 53 uses the two-letter country codes that are specified in ISO @@ -6258,8 +7121,27 @@ func (s *GetGeoLocationInput) Validate() error { return nil } +// SetContinentCode sets the ContinentCode field's value. +func (s *GetGeoLocationInput) SetContinentCode(v string) *GetGeoLocationInput { + s.ContinentCode = &v + return s +} + +// SetCountryCode sets the CountryCode field's value. +func (s *GetGeoLocationInput) SetCountryCode(v string) *GetGeoLocationInput { + s.CountryCode = &v + return s +} + +// SetSubdivisionCode sets the SubdivisionCode field's value. +func (s *GetGeoLocationInput) SetSubdivisionCode(v string) *GetGeoLocationInput { + s.SubdivisionCode = &v + return s +} + // A complex type that contains the response information for the specified geolocation // code. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetGeoLocationResponse type GetGeoLocationOutput struct { _ struct{} `type:"structure"` @@ -6280,8 +7162,15 @@ func (s GetGeoLocationOutput) GoString() string { return s.String() } +// SetGeoLocationDetails sets the GeoLocationDetails field's value. +func (s *GetGeoLocationOutput) SetGeoLocationDetails(v *GeoLocationDetails) *GetGeoLocationOutput { + s.GeoLocationDetails = v + return s +} + // To retrieve a count of all your health checks, send a GET request to the // /2013-04-01/healthcheckcount resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHealthCheckCountRequest type GetHealthCheckCountInput struct { _ struct{} `type:"structure"` } @@ -6297,6 +7186,7 @@ func (s GetHealthCheckCountInput) GoString() string { } // A complex type that contains the response to a healthcheckcount request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHealthCheckCountResponse type GetHealthCheckCountOutput struct { _ struct{} `type:"structure"` @@ -6316,6 +7206,12 @@ func (s GetHealthCheckCountOutput) GoString() string { return s.String() } +// SetHealthCheckCount sets the HealthCheckCount field's value. +func (s *GetHealthCheckCountOutput) SetHealthCheckCount(v int64) *GetHealthCheckCountOutput { + s.HealthCheckCount = &v + return s +} + // This action gets information about a specified health check. // // Send a GET request to the /Amazon Route 53 API version/gethealthcheckrequest @@ -6325,6 +7221,7 @@ func (s GetHealthCheckCountOutput) GoString() string { // Amazon Route 53 console, see Amazon Route 53 Health Checks and DNS Failover // (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html) // in the Amazon Route 53 Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHealthCheckRequest type GetHealthCheckInput struct { _ struct{} `type:"structure"` @@ -6360,6 +7257,12 @@ func (s *GetHealthCheckInput) Validate() error { return nil } +// SetHealthCheckId sets the HealthCheckId field's value. +func (s *GetHealthCheckInput) SetHealthCheckId(v string) *GetHealthCheckInput { + s.HealthCheckId = &v + return s +} + // This action gets the reason that a specified health check failed most recently. // // To get the reason for the last failure of a health check, send a GET request @@ -6369,6 +7272,7 @@ func (s *GetHealthCheckInput) Validate() error { // using the Amazon Route 53 console, see Viewing Health Check Status and the // Reason for Health Check Failures (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/health-checks-monitor-view-status.html) // in the Amazon Route 53 Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHealthCheckLastFailureReasonRequest type GetHealthCheckLastFailureReasonInput struct { _ struct{} `type:"structure"` @@ -6403,8 +7307,15 @@ func (s *GetHealthCheckLastFailureReasonInput) Validate() error { return nil } +// SetHealthCheckId sets the HealthCheckId field's value. +func (s *GetHealthCheckLastFailureReasonInput) SetHealthCheckId(v string) *GetHealthCheckLastFailureReasonInput { + s.HealthCheckId = &v + return s +} + // A complex type that contains the response to a GetHealthCheckLastFailureReason // request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHealthCheckLastFailureReasonResponse type GetHealthCheckLastFailureReasonOutput struct { _ struct{} `type:"structure"` @@ -6425,7 +7336,14 @@ func (s GetHealthCheckLastFailureReasonOutput) GoString() string { return s.String() } +// SetHealthCheckObservations sets the HealthCheckObservations field's value. +func (s *GetHealthCheckLastFailureReasonOutput) SetHealthCheckObservations(v []*HealthCheckObservation) *GetHealthCheckLastFailureReasonOutput { + s.HealthCheckObservations = v + return s +} + // A complex type that contains the response to a GetHealthCheck request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHealthCheckResponse type GetHealthCheckOutput struct { _ struct{} `type:"structure"` @@ -6446,67 +7364,25 @@ func (s GetHealthCheckOutput) GoString() string { return s.String() } +// SetHealthCheck sets the HealthCheck field's value. +func (s *GetHealthCheckOutput) SetHealthCheck(v *HealthCheck) *GetHealthCheckOutput { + s.HealthCheck = v + return s +} + // A complex type that contains information about the request to get health // check status for a health check. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHealthCheckStatusRequest type GetHealthCheckStatusInput struct { _ struct{} `type:"structure"` - // If you want Amazon Route 53 to return this resource record set in response - // to a DNS query only when a health check is passing, include the HealthCheckId - // element and specify the ID of the applicable health check. - // - // Amazon Route 53 determines whether a resource record set is healthy by periodically - // sending a request to the endpoint that is specified in the health check. - // If that endpoint returns an HTTP status code of 2xx or 3xx, the endpoint - // is healthy. If the endpoint returns an HTTP status code of 400 or greater, - // or if the endpoint doesn't respond for a certain amount of time, Amazon Route - // 53 considers the endpoint unhealthy and also considers the resource record - // set unhealthy. - // - // The HealthCheckId element is only useful when Amazon Route 53 is choosing - // between two or more resource record sets to respond to a DNS query, and you - // want Amazon Route 53 to base the choice in part on the status of a health - // check. Configuring health checks only makes sense in the following configurations: - // - // You're checking the health of the resource record sets in a weighted, - // latency, geolocation, or failover resource record set, and you specify health - // check IDs for all of the resource record sets. If the health check for one - // resource record set specifies an endpoint that is not healthy, Amazon Route - // 53 stops responding to queries using the value for that resource record set. - // - // You set EvaluateTargetHealth to true for the resource record sets in an - // alias, weighted alias, latency alias, geolocation alias, or failover alias - // resource record set, and you specify health check IDs for all of the resource - // record sets that are referenced by the alias resource record sets. For more - // information about this configuration, see EvaluateTargetHealth. - // - // Amazon Route 53 doesn't check the health of the endpoint specified in the - // resource record set, for example, the endpoint specified by the IP address - // in the Value element. When you add a HealthCheckId element to a resource - // record set, Amazon Route 53 checks the health of the endpoint that you specified - // in the health check. - // - // For geolocation resource record sets, if an endpoint is unhealthy, Amazon - // Route 53 looks for a resource record set for the larger, associated geographic - // region. For example, suppose you have resource record sets for a state in - // the United States, for the United States, for North America, and for all - // locations. If the endpoint for the state resource record set is unhealthy, - // Amazon Route 53 checks the resource record sets for the United States, for - // North America, and for all locations (a resource record set for which the - // value of CountryCode is *), in that order, until it finds a resource record - // set for which the endpoint is healthy. - // - // If your health checks specify the endpoint only by domain name, we recommend - // that you create a separate health check for each endpoint. For example, create - // a health check for each HTTP server that is serving content for www.example.com. - // For the value of FullyQualifiedDomainName, specify the domain name of the - // server (such as us-east-1-www.example.com), not the name of the resource - // record sets (example.com). + // The ID for the health check for which you want the current status. When you + // created the health check, CreateHealthCheck returned the ID in the response, + // in the HealthCheckId element. // - // In this configuration, if you create a health check for which the value - // of FullyQualifiedDomainName matches the name of the resource record sets - // and then associate the health check with those resource record sets, health - // check results will be unpredictable. + // If you want to check the status of a calculated health check, you must use + // the Amazon Route 53 console or the CloudWatch console. You can't use GetHealthCheckStatus + // to get the status of a calculated health check. // // HealthCheckId is a required field HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"` @@ -6535,7 +7411,14 @@ func (s *GetHealthCheckStatusInput) Validate() error { return nil } +// SetHealthCheckId sets the HealthCheckId field's value. +func (s *GetHealthCheckStatusInput) SetHealthCheckId(v string) *GetHealthCheckStatusInput { + s.HealthCheckId = &v + return s +} + // A complex type that contains the response to a GetHealthCheck request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHealthCheckStatusResponse type GetHealthCheckStatusOutput struct { _ struct{} `type:"structure"` @@ -6556,8 +7439,15 @@ func (s GetHealthCheckStatusOutput) GoString() string { return s.String() } +// SetHealthCheckObservations sets the HealthCheckObservations field's value. +func (s *GetHealthCheckStatusOutput) SetHealthCheckObservations(v []*HealthCheckObservation) *GetHealthCheckStatusOutput { + s.HealthCheckObservations = v + return s +} + // To retrieve a count of all your hosted zones, send a GET request to the /2013-04-01/hostedzonecount // resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHostedZoneCountRequest type GetHostedZoneCountInput struct { _ struct{} `type:"structure"` } @@ -6573,6 +7463,7 @@ func (s GetHostedZoneCountInput) GoString() string { } // A complex type that contains the response to a hostedzonecount request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHostedZoneCountResponse type GetHostedZoneCountOutput struct { _ struct{} `type:"structure"` @@ -6593,7 +7484,14 @@ func (s GetHostedZoneCountOutput) GoString() string { return s.String() } +// SetHostedZoneCount sets the HostedZoneCount field's value. +func (s *GetHostedZoneCountOutput) SetHostedZoneCount(v int64) *GetHostedZoneCountOutput { + s.HostedZoneCount = &v + return s +} + // The input for a GetHostedZone request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHostedZoneRequest type GetHostedZoneInput struct { _ struct{} `type:"structure"` @@ -6627,7 +7525,14 @@ func (s *GetHostedZoneInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetHostedZoneInput) SetId(v string) *GetHostedZoneInput { + s.Id = &v + return s +} + // A complex type containing the response information for the hosted zone. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHostedZoneResponse type GetHostedZoneOutput struct { _ struct{} `type:"structure"` @@ -6654,7 +7559,26 @@ func (s GetHostedZoneOutput) GoString() string { return s.String() } +// SetDelegationSet sets the DelegationSet field's value. +func (s *GetHostedZoneOutput) SetDelegationSet(v *DelegationSet) *GetHostedZoneOutput { + s.DelegationSet = v + return s +} + +// SetHostedZone sets the HostedZone field's value. +func (s *GetHostedZoneOutput) SetHostedZone(v *HostedZone) *GetHostedZoneOutput { + s.HostedZone = v + return s +} + +// SetVPCs sets the VPCs field's value. +func (s *GetHostedZoneOutput) SetVPCs(v []*VPC) *GetHostedZoneOutput { + s.VPCs = v + return s +} + // The input for a GetReusableDelegationSet request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetReusableDelegationSetRequest type GetReusableDelegationSetInput struct { _ struct{} `type:"structure"` @@ -6688,8 +7612,15 @@ func (s *GetReusableDelegationSetInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetReusableDelegationSetInput) SetId(v string) *GetReusableDelegationSetInput { + s.Id = &v + return s +} + // A complex type that contains the response to the GetReusableDelegationSet // request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetReusableDelegationSetResponse type GetReusableDelegationSetOutput struct { _ struct{} `type:"structure"` @@ -6709,16 +7640,23 @@ func (s GetReusableDelegationSetOutput) GoString() string { return s.String() } +// SetDelegationSet sets the DelegationSet field's value. +func (s *GetReusableDelegationSetOutput) SetDelegationSet(v *DelegationSet) *GetReusableDelegationSetOutput { + s.DelegationSet = v + return s +} + // Gets information about a specific traffic policy version. To get the information, // send a GET request to the /2013-04-01/trafficpolicy resource, and specify // the ID and the version of the traffic policy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetTrafficPolicyRequest type GetTrafficPolicyInput struct { _ struct{} `type:"structure"` // The ID of the traffic policy that you want to get information about. // // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + Id *string `location:"uri" locationName:"Id" min:"1" type:"string" required:"true"` // The version number of the traffic policy that you want to get information // about. @@ -6743,6 +7681,9 @@ func (s *GetTrafficPolicyInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if s.Version == nil { invalidParams.Add(request.NewErrParamRequired("Version")) } @@ -6756,8 +7697,21 @@ func (s *GetTrafficPolicyInput) Validate() error { return nil } -// To retrieve a count of all your traffic policy instances, send a GET request -// to the /2013-04-01/trafficpolicyinstancecount resource. +// SetId sets the Id field's value. +func (s *GetTrafficPolicyInput) SetId(v string) *GetTrafficPolicyInput { + s.Id = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *GetTrafficPolicyInput) SetVersion(v int64) *GetTrafficPolicyInput { + s.Version = &v + return s +} + +// Request to get the number of traffic policy instances that are associated +// with the current AWS account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetTrafficPolicyInstanceCountRequest type GetTrafficPolicyInstanceCountInput struct { _ struct{} `type:"structure"` } @@ -6774,6 +7728,7 @@ func (s GetTrafficPolicyInstanceCountInput) GoString() string { // A complex type that contains information about the resource record sets that // Amazon Route 53 created based on a specified traffic policy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetTrafficPolicyInstanceCountResponse type GetTrafficPolicyInstanceCountOutput struct { _ struct{} `type:"structure"` @@ -6794,17 +7749,24 @@ func (s GetTrafficPolicyInstanceCountOutput) GoString() string { return s.String() } +// SetTrafficPolicyInstanceCount sets the TrafficPolicyInstanceCount field's value. +func (s *GetTrafficPolicyInstanceCountOutput) SetTrafficPolicyInstanceCount(v int64) *GetTrafficPolicyInstanceCountOutput { + s.TrafficPolicyInstanceCount = &v + return s +} + // Gets information about a specified traffic policy instance. // // To get information about a traffic policy instance, send a GET request to -// the /Amazon Route 53 API version/trafficpolicyinstance/Id resource. +// the /Amazon Route 53 API version/trafficpolicyinstance/Id resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetTrafficPolicyInstanceRequest type GetTrafficPolicyInstanceInput struct { _ struct{} `type:"structure"` // The ID of the traffic policy instance that you want to get information about. // // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + Id *string `location:"uri" locationName:"Id" min:"1" type:"string" required:"true"` } // String returns the string representation @@ -6823,6 +7785,9 @@ func (s *GetTrafficPolicyInstanceInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6830,8 +7795,15 @@ func (s *GetTrafficPolicyInstanceInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *GetTrafficPolicyInstanceInput) SetId(v string) *GetTrafficPolicyInstanceInput { + s.Id = &v + return s +} + // A complex type that contains information about the resource record sets that // Amazon Route 53 created based on a specified traffic policy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetTrafficPolicyInstanceResponse type GetTrafficPolicyInstanceOutput struct { _ struct{} `type:"structure"` @@ -6851,7 +7823,14 @@ func (s GetTrafficPolicyInstanceOutput) GoString() string { return s.String() } +// SetTrafficPolicyInstance sets the TrafficPolicyInstance field's value. +func (s *GetTrafficPolicyInstanceOutput) SetTrafficPolicyInstance(v *TrafficPolicyInstance) *GetTrafficPolicyInstanceOutput { + s.TrafficPolicyInstance = v + return s +} + // A complex type that contains the response information for the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetTrafficPolicyResponse type GetTrafficPolicyOutput struct { _ struct{} `type:"structure"` @@ -6871,8 +7850,15 @@ func (s GetTrafficPolicyOutput) GoString() string { return s.String() } +// SetTrafficPolicy sets the TrafficPolicy field's value. +func (s *GetTrafficPolicyOutput) SetTrafficPolicy(v *TrafficPolicy) *GetTrafficPolicyOutput { + s.TrafficPolicy = v + return s +} + // A complex type that contains information about one health check that is associated // with the current AWS account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/HealthCheck type HealthCheck struct { _ struct{} `type:"structure"` @@ -6916,7 +7902,38 @@ func (s HealthCheck) GoString() string { return s.String() } +// SetCallerReference sets the CallerReference field's value. +func (s *HealthCheck) SetCallerReference(v string) *HealthCheck { + s.CallerReference = &v + return s +} + +// SetCloudWatchAlarmConfiguration sets the CloudWatchAlarmConfiguration field's value. +func (s *HealthCheck) SetCloudWatchAlarmConfiguration(v *CloudWatchAlarmConfiguration) *HealthCheck { + s.CloudWatchAlarmConfiguration = v + return s +} + +// SetHealthCheckConfig sets the HealthCheckConfig field's value. +func (s *HealthCheck) SetHealthCheckConfig(v *HealthCheckConfig) *HealthCheck { + s.HealthCheckConfig = v + return s +} + +// SetHealthCheckVersion sets the HealthCheckVersion field's value. +func (s *HealthCheck) SetHealthCheckVersion(v int64) *HealthCheck { + s.HealthCheckVersion = &v + return s +} + +// SetId sets the Id field's value. +func (s *HealthCheck) SetId(v string) *HealthCheck { + s.Id = &v + return s +} + // A complex type that contains information about the health check. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/HealthCheckConfig type HealthCheckConfig struct { _ struct{} `type:"structure"` @@ -6935,11 +7952,11 @@ type HealthCheckConfig struct { // allows the endpoint to respond to HTTPS health check requests with the applicable // SSL/TLS certificate. // - // Some endpoints require that HTTPS requests include the host name in the - // client_hello message. If you don't enable SNI, the status of the health check - // will be SSL alert handshake_failure. A health check can also have that status - // for other reasons. If SNI is enabled and you're still getting the error, - // check the SSL/TLS configuration on your endpoint and confirm that your certificate + // Some endpoints require that HTTPS requests include the host name in the client_hello + // message. If you don't enable SNI, the status of the health check will be + // SSL alert handshake_failure. A health check can also have that status for + // other reasons. If SNI is enabled and you're still getting the error, check + // the SSL/TLS configuration on your endpoint and confirm that your certificate // is valid. // // The SSL/TLS certificate on your endpoint includes a domain name in the Common @@ -6957,55 +7974,65 @@ type HealthCheckConfig struct { // to healthy or vice versa. For more information, see How Amazon Route 53 Determines // Whether an Endpoint Is Healthy (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html) // in the Amazon Route 53 Developer Guide. + // + // If you don't specify a value for FailureThreshold, the default value is three + // health checks. FailureThreshold *int64 `min:"1" type:"integer"` // Amazon Route 53 behavior depends on whether you specify a value for IPAddress. // - // If you specify IPAddress: + // If you specify a value forIPAddress: + // + // Amazon Route 53 sends health check requests to the specified IPv4 or IPv6 + // address and passes the value of FullyQualifiedDomainName in the Host header + // for all health checks except TCP health checks. This is typically the fully + // qualified DNS name of the endpoint on which you want Amazon Route 53 to perform + // health checks. // - // The value that you want Amazon Route 53 to pass in the Host header in all - // health checks except TCP health checks. This is typically the fully qualified - // DNS name of the website that you are attempting to health check. When Amazon - // Route 53 checks the health of an endpoint, here is how it constructs the - // Host header: + // When Amazon Route 53 checks the health of an endpoint, here is how it constructs + // the Host header: // - // If you specify a value of 80 for Port and HTTP or HTTP_STR_MATCH for Type, - // Amazon Route 53 passes the value of FullyQualifiedDomainName to the endpoint - // in the Host header. + // * If you specify a value of 80 for Port and HTTP or HTTP_STR_MATCH for + // Type, Amazon Route 53 passes the value of FullyQualifiedDomainName to + // the endpoint in the Host header. // - // If you specify a value of 443 for Port and HTTPS or HTTPS_STR_MATCH for - // Type, Amazon Route 53 passes the value of FullyQualifiedDomainName to the - // endpoint in the Host header. + // * If you specify a value of 443 for Port and HTTPS or HTTPS_STR_MATCH + // for Type, Amazon Route 53 passes the value of FullyQualifiedDomainName + // to the endpoint in the Host header. // - // If you specify another value for Port and any value except TCP for Type, - // Amazon Route 53 passes FullyQualifiedDomainName:Port to the endpoint in the - // Host header. + // * If you specify another value for Port and any value except TCP for Type, + // Amazon Route 53 passes FullyQualifiedDomainName:Port to the endpoint in + // the Host header. // - // If you don't specify a value for FullyQualifiedDomainName, Amazon Route - // 53 substitutes the value of IPAddress in the Host header in each of the preceding + // If you don't specify a value for FullyQualifiedDomainName, Amazon Route 53 + // substitutes the value of IPAddress in the Host header in each of the preceding // cases. // - // If you don't specify IPAddress: + // If you don't specify a value for IPAddress: // - // If you don't specify a value for IPAddress, Amazon Route 53 sends a DNS - // request to the domain that you specify in FullyQualifiedDomainName at the - // interval you specify in RequestInterval. Using an IP address that DNS returns, - // Amazon Route 53 then checks the health of the endpoint. + // Amazon Route 53 sends a DNS request to the domain that you specify for FullyQualifiedDomainName + // at the interval that you specify for RequestInterval. Using an IPv4 address + // that DNS returns, Amazon Route 53 then checks the health of the endpoint. + // + // If you don't specify a value for IPAddress, Amazon Route 53 uses only IPv4 + // to send health checks to the endpoint. If there's no resource record set + // with a type of A for the name that you specify for FullyQualifiedDomainName, + // the health check fails with a "DNS resolution failed" error. // // If you want to check the health of weighted, latency, or failover resource // record sets and you choose to specify the endpoint only by FullyQualifiedDomainName, // we recommend that you create a separate health check for each endpoint. For // example, create a health check for each HTTP server that is serving content // for www.example.com. For the value of FullyQualifiedDomainName, specify the - // domain name of the server (such as us-east-1-www.example.com), not the name + // domain name of the server (such as us-east-2-www.example.com), not the name // of the resource record sets (www.example.com). // - // In this configuration, if you create a health check for which the value - // of FullyQualifiedDomainName matches the name of the resource record sets - // and you then associate the health check with those resource record sets, - // health check results will be unpredictable. + // In this configuration, if you create a health check for which the value of + // FullyQualifiedDomainName matches the name of the resource record sets and + // you then associate the health check with those resource record sets, health + // check results will be unpredictable. // - // In addition, if the value that you specify for Type is HTTP, HTTPS, HTTP_STR_MATCH, + // In addition, if the value that you specify for Type is HTTP, HTTPS, HTTP_STR_MATCH, // or HTTPS_STR_MATCH, Amazon Route 53 passes the value of FullyQualifiedDomainName // in the Host header, as it does when you specify a value for IPAddress. If // the value of Type is TCP, Amazon Route 53 doesn't pass a Host header. @@ -7019,32 +8046,47 @@ type HealthCheckConfig struct { // // Note the following: // - // If you specify a number greater than the number of child health checks, - // Amazon Route 53 always considers this health check to be unhealthy. + // * If you specify a number greater than the number of child health checks, + // Amazon Route 53 always considers this health check to be unhealthy. // - // If you specify 0, Amazon Route 53 always considers this health check to - // be healthy. + // * If you specify 0, Amazon Route 53 always considers this health check + // to be healthy. HealthThreshold *int64 `type:"integer"` - // The IPv4 IP address of the endpoint on which you want Amazon Route 53 to - // perform health checks. If you don't specify a value for IPAddress, Amazon - // Route 53 sends a DNS request to resolve the domain name that you specify + // The IPv4 or IPv6 IP address of the endpoint that you want Amazon Route 53 + // to perform health checks on. If you don't specify a value for IPAddress, + // Amazon Route 53 sends a DNS request to resolve the domain name that you specify // in FullyQualifiedDomainName at the interval that you specify in RequestInterval. - // Using an IP address that DNS returns, Amazon Route 53 then checks the health + // Using an IP address returned by DNS, Amazon Route 53 then checks the health // of the endpoint. // - // If the endpoint is an Amazon EC2 instance, we recommend that you create - // an Elastic IP address, associate it with your Amazon EC2 instance, and specify - // the Elastic IP address for IPAddress. This ensures that the IP address of - // your instance will never change. + // Use one of the following formats for the value of IPAddress: + // + // * IPv4 address: four values between 0 and 255, separated by periods (.), + // for example, 192.0.2.44. + // + // * IPv6 address: eight groups of four hexadecimal values, separated by + // colons (:), for example, 2001:0db8:85a3:0000:0000:abcd:0001:2345. You + // can also shorten IPv6 addresses as described in RFC 5952, for example, + // 2001:db8:85a3::abcd:1:2345. + // + // If the endpoint is an EC2 instance, we recommend that you create an Elastic + // IP address, associate it with your EC2 instance, and specify the Elastic + // IP address for IPAddress. This ensures that the IP address of your instance + // will never change. // // For more information, see HealthCheckConfig$FullyQualifiedDomainName. // - // Contraints: Amazon Route 53 cannot check the health of endpoints for which + // Constraints: Amazon Route 53 can't check the health of endpoints for which // the IP address is in local, private, non-routable, or multicast ranges. For - // more information about IP addresses for which you cannot create health checks, - // see RFC 5735, Special Use IPv4 Addresses (https://tools.ietf.org/html/rfc5735) - // and RFC 6598, IANA-Reserved IPv4 Prefix for Shared Address Space (https://tools.ietf.org/html/rfc6598). + // more information about IP addresses for which you can't create health checks, + // see the following documents: + // + // * RFC 5735, Special Use IPv4 Addresses (https://tools.ietf.org/html/rfc5735) + // + // * RFC 6598, IANA-Reserved IPv4 Prefix for Shared Address Space (https://tools.ietf.org/html/rfc6598) + // + // * RFC 5156, Special-Use IPv6 Addresses (https://tools.ietf.org/html/rfc5156) // // When the value of Type is CALCULATED or CLOUDWATCH_METRIC, omit IPAddress. IPAddress *string `type:"string"` @@ -7052,14 +8094,14 @@ type HealthCheckConfig struct { // When CloudWatch has insufficient data about the metric to determine the alarm // state, the status that you want Amazon Route 53 to assign to the health check: // - // Healthy: Amazon Route 53 considers the health check to be healthy. + // * Healthy: Amazon Route 53 considers the health check to be healthy. // - // Unhealthy: Amazon Route 53 considers the health check to be unhealthy. + // * Unhealthy: Amazon Route 53 considers the health check to be unhealthy. // - // LastKnownStatus: Amazon Route 53uses the status of the health check from - // the last time CloudWatch had sufficient data to determine the alarm state. - // For new health checks that have no last known status, the default status - // for the health check is healthy. + // * LastKnownStatus: Amazon Route 53uses the status of the health check + // from the last time CloudWatch had sufficient data to determine the alarm + // state. For new health checks that have no last known status, the default + // status for the health check is healthy. InsufficientDataHealthStatus *string `type:"string" enum:"InsufficientDataHealthStatus"` // Specify whether you want Amazon Route 53 to invert the status of a health @@ -7071,8 +8113,7 @@ type HealthCheckConfig struct { // checkers in multiple AWS regions and your endpoint, and to display CloudWatch // latency graphs on the Health Checks page in the Amazon Route 53 console. // - // You can't change the value of MeasureLatency after you create a health - // check. + // You can't change the value of MeasureLatency after you create a health check. MeasureLatency *bool `type:"boolean"` // The port on the endpoint on which you want Amazon Route 53 to perform health @@ -7081,14 +8122,24 @@ type HealthCheckConfig struct { // A complex type that contains one Region element for each region from which // you want Amazon Route 53 health checkers to check the specified endpoint. + // + // If you don't specify any regions, Amazon Route 53 health checkers automatically + // performs checks from all of the regions that are listed under Valid Values. + // + // If you update a health check to remove a region that has been performing + // health checks, Amazon Route 53 will briefly continue to perform checks from + // that region to ensure that some health checkers are always checking the endpoint + // (for example, if you replace three regions with four different regions). Regions []*string `locationNameList:"Region" min:"1" type:"list"` // The number of seconds between the time that Amazon Route 53 gets a response - // from your endpoint and the time that it sends the next health-check request. + // from your endpoint and the time that it sends the next health check request. // Each Amazon Route 53 health checker makes requests at this interval. // - // You can't change the value of RequestInterval after you create a health - // check. + // You can't change the value of RequestInterval after you create a health check. + // + // If you don't specify a value for RequestInterval, the default value is 30 + // seconds. RequestInterval *int64 `min:"10" type:"integer"` // The path, if any, that you want Amazon Route 53 to request when performing @@ -7109,45 +8160,46 @@ type HealthCheckConfig struct { // The type of health check that you want to create, which indicates how Amazon // Route 53 determines whether an endpoint is healthy. // - // You can't change the value of Type after you create a health check. + // You can't change the value of Type after you create a health check. // - // You can create the following types of health checks: + // You can create the following types of health checks: // - // HTTP: Amazon Route 53 tries to establish a TCP connection. If successful, - // Amazon Route 53 submits an HTTP request and waits for an HTTP status code - // of 200 or greater and less than 400. + // * HTTP: Amazon Route 53 tries to establish a TCP connection. If successful, + // Amazon Route 53 submits an HTTP request and waits for an HTTP status code + // of 200 or greater and less than 400. // - // HTTPS: Amazon Route 53 tries to establish a TCP connection. If successful, - // Amazon Route 53 submits an HTTPS request and waits for an HTTP status code - // of 200 or greater and less than 400. + // * HTTPS: Amazon Route 53 tries to establish a TCP connection. If successful, + // Amazon Route 53 submits an HTTPS request and waits for an HTTP status + // code of 200 or greater and less than 400. // - // If you specify HTTPS for the value of Type, the endpoint must support TLS - // v1.0 or later. + // If you specify HTTPS for the value of Type, the endpoint must support TLS + // v1.0 or later. // - // HTTP_STR_MATCH: Amazon Route 53 tries to establish a TCP connection. - // If successful, Amazon Route 53 submits an HTTP request and searches the first - // 5,120 bytes of the response body for the string that you specify in SearchString. + // * HTTP_STR_MATCH: Amazon Route 53 tries to establish a TCP connection. + // If successful, Amazon Route 53 submits an HTTP request and searches the + // first 5,120 bytes of the response body for the string that you specify + // in SearchString. // - // HTTPS_STR_MATCH: Amazon Route 53 tries to establish a TCP connection. - // If successful, Amazon Route 53 submits an HTTPS request and searches the - // first 5,120 bytes of the response body for the string that you specify in - // SearchString. + // * HTTPS_STR_MATCH: Amazon Route 53 tries to establish a TCP connection. + // If successful, Amazon Route 53 submits an HTTPS request and searches the + // first 5,120 bytes of the response body for the string that you specify + // in SearchString. // - // TCP: Amazon Route 53 tries to establish a TCP connection. + // * TCP: Amazon Route 53 tries to establish a TCP connection. // - // CLOUDWATCH_METRIC: The health check is associated with a CloudWatch alarm. - // If the state of the alarm is OK, the health check is considered healthy. - // If the state is ALARM, the health check is considered unhealthy. If CloudWatch - // doesn't have sufficient data to determine whether the state is OK or ALARM, - // the health check status depends on the setting for InsufficientDataHealthStatus: - // Healthy, Unhealthy, or LastKnownStatus. + // * CLOUDWATCH_METRIC: The health check is associated with a CloudWatch + // alarm. If the state of the alarm is OK, the health check is considered + // healthy. If the state is ALARM, the health check is considered unhealthy. + // If CloudWatch doesn't have sufficient data to determine whether the state + // is OK or ALARM, the health check status depends on the setting for InsufficientDataHealthStatus: + // Healthy, Unhealthy, or LastKnownStatus. // - // CALCULATED: For health checks that monitor the status of other health - // checks, Amazon Route 53 adds up the number of health checks that Amazon Route - // 53 health checkers consider to be healthy and compares that number with the - // value of HealthThreshold. + // * CALCULATED: For health checks that monitor the status of other health + // checks, Amazon Route 53 adds up the number of health checks that Amazon + // Route 53 health checkers consider to be healthy and compares that number + // with the value of HealthThreshold. // - // For more information about how Amazon Route 53 determines whether an endpoint + // For more information about how Amazon Route 53 determines whether an endpoint // is healthy, see the introduction to this topic. // // Type is a required field @@ -7194,8 +8246,105 @@ func (s *HealthCheckConfig) Validate() error { return nil } +// SetAlarmIdentifier sets the AlarmIdentifier field's value. +func (s *HealthCheckConfig) SetAlarmIdentifier(v *AlarmIdentifier) *HealthCheckConfig { + s.AlarmIdentifier = v + return s +} + +// SetChildHealthChecks sets the ChildHealthChecks field's value. +func (s *HealthCheckConfig) SetChildHealthChecks(v []*string) *HealthCheckConfig { + s.ChildHealthChecks = v + return s +} + +// SetEnableSNI sets the EnableSNI field's value. +func (s *HealthCheckConfig) SetEnableSNI(v bool) *HealthCheckConfig { + s.EnableSNI = &v + return s +} + +// SetFailureThreshold sets the FailureThreshold field's value. +func (s *HealthCheckConfig) SetFailureThreshold(v int64) *HealthCheckConfig { + s.FailureThreshold = &v + return s +} + +// SetFullyQualifiedDomainName sets the FullyQualifiedDomainName field's value. +func (s *HealthCheckConfig) SetFullyQualifiedDomainName(v string) *HealthCheckConfig { + s.FullyQualifiedDomainName = &v + return s +} + +// SetHealthThreshold sets the HealthThreshold field's value. +func (s *HealthCheckConfig) SetHealthThreshold(v int64) *HealthCheckConfig { + s.HealthThreshold = &v + return s +} + +// SetIPAddress sets the IPAddress field's value. +func (s *HealthCheckConfig) SetIPAddress(v string) *HealthCheckConfig { + s.IPAddress = &v + return s +} + +// SetInsufficientDataHealthStatus sets the InsufficientDataHealthStatus field's value. +func (s *HealthCheckConfig) SetInsufficientDataHealthStatus(v string) *HealthCheckConfig { + s.InsufficientDataHealthStatus = &v + return s +} + +// SetInverted sets the Inverted field's value. +func (s *HealthCheckConfig) SetInverted(v bool) *HealthCheckConfig { + s.Inverted = &v + return s +} + +// SetMeasureLatency sets the MeasureLatency field's value. +func (s *HealthCheckConfig) SetMeasureLatency(v bool) *HealthCheckConfig { + s.MeasureLatency = &v + return s +} + +// SetPort sets the Port field's value. +func (s *HealthCheckConfig) SetPort(v int64) *HealthCheckConfig { + s.Port = &v + return s +} + +// SetRegions sets the Regions field's value. +func (s *HealthCheckConfig) SetRegions(v []*string) *HealthCheckConfig { + s.Regions = v + return s +} + +// SetRequestInterval sets the RequestInterval field's value. +func (s *HealthCheckConfig) SetRequestInterval(v int64) *HealthCheckConfig { + s.RequestInterval = &v + return s +} + +// SetResourcePath sets the ResourcePath field's value. +func (s *HealthCheckConfig) SetResourcePath(v string) *HealthCheckConfig { + s.ResourcePath = &v + return s +} + +// SetSearchString sets the SearchString field's value. +func (s *HealthCheckConfig) SetSearchString(v string) *HealthCheckConfig { + s.SearchString = &v + return s +} + +// SetType sets the Type field's value. +func (s *HealthCheckConfig) SetType(v string) *HealthCheckConfig { + s.Type = &v + return s +} + // A complex type that contains the last failure reason as reported by one Amazon // Route 53 health checker. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/HealthCheckObservation type HealthCheckObservation struct { _ struct{} `type:"structure"` @@ -7222,7 +8371,26 @@ func (s HealthCheckObservation) GoString() string { return s.String() } -// A complex type that contains general information about the hosted zone. +// SetIPAddress sets the IPAddress field's value. +func (s *HealthCheckObservation) SetIPAddress(v string) *HealthCheckObservation { + s.IPAddress = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *HealthCheckObservation) SetRegion(v string) *HealthCheckObservation { + s.Region = &v + return s +} + +// SetStatusReport sets the StatusReport field's value. +func (s *HealthCheckObservation) SetStatusReport(v *StatusReport) *HealthCheckObservation { + s.StatusReport = v + return s +} + +// A complex type that contains general information about the hosted zone. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/HostedZone type HostedZone struct { _ struct{} `type:"structure"` @@ -7266,9 +8434,40 @@ func (s HostedZone) GoString() string { return s.String() } +// SetCallerReference sets the CallerReference field's value. +func (s *HostedZone) SetCallerReference(v string) *HostedZone { + s.CallerReference = &v + return s +} + +// SetConfig sets the Config field's value. +func (s *HostedZone) SetConfig(v *HostedZoneConfig) *HostedZone { + s.Config = v + return s +} + +// SetId sets the Id field's value. +func (s *HostedZone) SetId(v string) *HostedZone { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *HostedZone) SetName(v string) *HostedZone { + s.Name = &v + return s +} + +// SetResourceRecordSetCount sets the ResourceRecordSetCount field's value. +func (s *HostedZone) SetResourceRecordSetCount(v int64) *HostedZone { + s.ResourceRecordSetCount = &v + return s +} + // A complex type that contains an optional comment about your hosted zone. // If you don't want to specify a comment, omit both the HostedZoneConfig and // Comment elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/HostedZoneConfig type HostedZoneConfig struct { _ struct{} `type:"structure"` @@ -7289,211 +8488,16 @@ func (s HostedZoneConfig) GoString() string { return s.String() } -// The input for a ListChangeBatchesByHostedZone request. -type ListChangeBatchesByHostedZoneInput struct { - _ struct{} `deprecated:"true" type:"structure"` - - // The end of the time period you want to see changes for. - // - // EndDate is a required field - EndDate *string `location:"querystring" locationName:"endDate" deprecated:"true" type:"string" required:"true"` - - // The ID of the hosted zone that you want to see changes for. - // - // HostedZoneId is a required field - HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` - - // The page marker. - Marker *string `location:"querystring" locationName:"marker" type:"string"` - - // The maximum number of items on a page. - MaxItems *string `location:"querystring" locationName:"maxItems" type:"string"` - - // The start of the time period you want to see changes for. - // - // StartDate is a required field - StartDate *string `location:"querystring" locationName:"startDate" deprecated:"true" type:"string" required:"true"` -} - -// String returns the string representation -func (s ListChangeBatchesByHostedZoneInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListChangeBatchesByHostedZoneInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListChangeBatchesByHostedZoneInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListChangeBatchesByHostedZoneInput"} - if s.EndDate == nil { - invalidParams.Add(request.NewErrParamRequired("EndDate")) - } - if s.HostedZoneId == nil { - invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) - } - if s.StartDate == nil { - invalidParams.Add(request.NewErrParamRequired("StartDate")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A complex type containing the response information for the request. -type ListChangeBatchesByHostedZoneOutput struct { - _ struct{} `deprecated:"true" type:"structure"` - - // The change batches within the given hosted zone and time period. - // - // ChangeBatchRecords is a required field - ChangeBatchRecords []*ChangeBatchRecord `locationNameList:"ChangeBatchRecord" min:"1" deprecated:"true" type:"list" required:"true"` - - // A flag that indicates if there are more change batches to list. - IsTruncated *bool `type:"boolean"` - - // For the second and subsequent calls to ListHostedZones, Marker is the value - // that you specified for the marker parameter in the request that produced - // the current response. - // - // Marker is a required field - Marker *string `type:"string" required:"true"` - - // The value that you specified for the maxitems parameter in the call to ListHostedZones - // that produced the current response. - // - // MaxItems is a required field - MaxItems *string `type:"string" required:"true"` - - // The next page marker. - NextMarker *string `type:"string"` -} - -// String returns the string representation -func (s ListChangeBatchesByHostedZoneOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListChangeBatchesByHostedZoneOutput) GoString() string { - return s.String() -} - -// The input for a ListChangeBatchesByRRSet request. -type ListChangeBatchesByRRSetInput struct { - _ struct{} `deprecated:"true" type:"structure"` - - // The end of the time period you want to see changes for. - // - // EndDate is a required field - EndDate *string `location:"querystring" locationName:"endDate" deprecated:"true" type:"string" required:"true"` - - // The ID of the hosted zone that you want to see changes for. - // - // HostedZoneId is a required field - HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` - - // The page marker. - Marker *string `location:"querystring" locationName:"marker" type:"string"` - - // The maximum number of items on a page. - MaxItems *string `location:"querystring" locationName:"maxItems" type:"string"` - - // The name of the RRSet that you want to see changes for. - // - // Name is a required field - Name *string `location:"querystring" locationName:"rrSet_name" type:"string" required:"true"` - - // The identifier of the RRSet that you want to see changes for. - SetIdentifier *string `location:"querystring" locationName:"identifier" min:"1" type:"string"` - - // The start of the time period you want to see changes for. - // - // StartDate is a required field - StartDate *string `location:"querystring" locationName:"startDate" deprecated:"true" type:"string" required:"true"` - - // The type of the RRSet that you want to see changes for. - // - // Type is a required field - Type *string `location:"querystring" locationName:"type" type:"string" required:"true" enum:"RRType"` -} - -// String returns the string representation -func (s ListChangeBatchesByRRSetInput) String() string { - return awsutil.Prettify(s) +// SetComment sets the Comment field's value. +func (s *HostedZoneConfig) SetComment(v string) *HostedZoneConfig { + s.Comment = &v + return s } -// GoString returns the string representation -func (s ListChangeBatchesByRRSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListChangeBatchesByRRSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListChangeBatchesByRRSetInput"} - if s.EndDate == nil { - invalidParams.Add(request.NewErrParamRequired("EndDate")) - } - if s.HostedZoneId == nil { - invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.SetIdentifier != nil && len(*s.SetIdentifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SetIdentifier", 1)) - } - if s.StartDate == nil { - invalidParams.Add(request.NewErrParamRequired("StartDate")) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The input for a ListChangeBatchesByRRSet request. -type ListChangeBatchesByRRSetOutput struct { - _ struct{} `deprecated:"true" type:"structure"` - - // The change batches within the given hosted zone and time period. - // - // ChangeBatchRecords is a required field - ChangeBatchRecords []*ChangeBatchRecord `locationNameList:"ChangeBatchRecord" min:"1" deprecated:"true" type:"list" required:"true"` - - // A flag that indicates if there are more change batches to list. - IsTruncated *bool `type:"boolean"` - - // The page marker. - // - // Marker is a required field - Marker *string `type:"string" required:"true"` - - // The maximum number of items on a page. - // - // MaxItems is a required field - MaxItems *string `type:"string" required:"true"` - - // The next page marker. - NextMarker *string `type:"string"` -} - -// String returns the string representation -func (s ListChangeBatchesByRRSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListChangeBatchesByRRSetOutput) GoString() string { - return s.String() +// SetPrivateZone sets the PrivateZone field's value. +func (s *HostedZoneConfig) SetPrivateZone(v bool) *HostedZoneConfig { + s.PrivateZone = &v + return s } // To get a list of geographic locations that Amazon Route 53 supports for geolocation, @@ -7505,6 +8509,7 @@ func (s ListChangeBatchesByRRSetOutput) GoString() string { // 53 supports subdivisions for a country (for example, states or provinces), // the subdivisions for that country are listed in alphabetical order immediately // after the corresponding country. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListGeoLocationsRequest type ListGeoLocationsInput struct { _ struct{} `type:"structure"` @@ -7530,8 +8535,8 @@ type ListGeoLocationsInput struct { // from the previous response has a value, enter that value in StartCountryCode // to return the next page of results. // - // Amazon Route 53 uses the two-letter country codes that are specified in - // ISO standard 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). + // Amazon Route 53 uses the two-letter country codes that are specified in ISO + // standard 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). StartCountryCode *string `location:"querystring" locationName:"startcountrycode" min:"1" type:"string"` // The code for the subdivision (for example, state or province) with which @@ -7574,7 +8579,32 @@ func (s *ListGeoLocationsInput) Validate() error { return nil } +// SetMaxItems sets the MaxItems field's value. +func (s *ListGeoLocationsInput) SetMaxItems(v string) *ListGeoLocationsInput { + s.MaxItems = &v + return s +} + +// SetStartContinentCode sets the StartContinentCode field's value. +func (s *ListGeoLocationsInput) SetStartContinentCode(v string) *ListGeoLocationsInput { + s.StartContinentCode = &v + return s +} + +// SetStartCountryCode sets the StartCountryCode field's value. +func (s *ListGeoLocationsInput) SetStartCountryCode(v string) *ListGeoLocationsInput { + s.StartCountryCode = &v + return s +} + +// SetStartSubdivisionCode sets the StartSubdivisionCode field's value. +func (s *ListGeoLocationsInput) SetStartSubdivisionCode(v string) *ListGeoLocationsInput { + s.StartSubdivisionCode = &v + return s +} + // A complex type containing the response information for the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListGeoLocationsResponse type ListGeoLocationsOutput struct { _ struct{} `type:"structure"` @@ -7600,17 +8630,17 @@ type ListGeoLocationsOutput struct { // If IsTruncated is true, you can make a follow-up request to display more // locations. Enter the value of NextContinentCode in the StartContinentCode - // parameter in another GET ListGeoLocations request. + // parameter in another GETListGeoLocations request. NextContinentCode *string `min:"2" type:"string"` // If IsTruncated is true, you can make a follow-up request to display more // locations. Enter the value of NextCountryCode in the StartCountryCode parameter - // in another GET ListGeoLocations request. + // in another GETListGeoLocations request. NextCountryCode *string `min:"1" type:"string"` // If IsTruncated is true, you can make a follow-up request to display more // locations. Enter the value of NextSubdivisionCode in the StartSubdivisionCode - // parameter in another GET ListGeoLocations request. + // parameter in another GETListGeoLocations request. NextSubdivisionCode *string `min:"1" type:"string"` } @@ -7624,6 +8654,42 @@ func (s ListGeoLocationsOutput) GoString() string { return s.String() } +// SetGeoLocationDetailsList sets the GeoLocationDetailsList field's value. +func (s *ListGeoLocationsOutput) SetGeoLocationDetailsList(v []*GeoLocationDetails) *ListGeoLocationsOutput { + s.GeoLocationDetailsList = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListGeoLocationsOutput) SetIsTruncated(v bool) *ListGeoLocationsOutput { + s.IsTruncated = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListGeoLocationsOutput) SetMaxItems(v string) *ListGeoLocationsOutput { + s.MaxItems = &v + return s +} + +// SetNextContinentCode sets the NextContinentCode field's value. +func (s *ListGeoLocationsOutput) SetNextContinentCode(v string) *ListGeoLocationsOutput { + s.NextContinentCode = &v + return s +} + +// SetNextCountryCode sets the NextCountryCode field's value. +func (s *ListGeoLocationsOutput) SetNextCountryCode(v string) *ListGeoLocationsOutput { + s.NextCountryCode = &v + return s +} + +// SetNextSubdivisionCode sets the NextSubdivisionCode field's value. +func (s *ListGeoLocationsOutput) SetNextSubdivisionCode(v string) *ListGeoLocationsOutput { + s.NextSubdivisionCode = &v + return s +} + // To retrieve a list of your health checks, send a GET request to the /2013-04-01/healthcheck // resource. The response to this request includes a HealthChecks element with // zero or more HealthCheck child elements. By default, the list of health checks @@ -7631,8 +8697,9 @@ func (s ListGeoLocationsOutput) GoString() string { // is displayed by using the MaxItems parameter. You can use the Marker parameter // to control the health check that the list begins with. // -// Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to -// a value greater than 100, Amazon Route 53 returns only the first 100. +// Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a +// value greater than 100, Amazon Route 53 returns only the first 100. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHealthChecksRequest type ListHealthChecksInput struct { _ struct{} `type:"structure"` @@ -7649,15 +8716,15 @@ type ListHealthChecksInput struct { // For example, suppose you specify 10 for maxitems and the current AWS account // has 51 health checks. In the response, ListHealthChecks sets ListHealthChecksResponse$IsTruncated // to true and includes the ListHealthChecksResponse$NextMarker element. To - // access the second and subsequent pages, you resend the GET ListHealthChecks + // access the second and subsequent pages, you resend the GETListHealthChecks // request, add the ListHealthChecksResponse$Marker parameter to the request, // and specify the value of the ListHealthChecksResponse$NextMarker element // from the previous response. On the last (sixth) page of the response, which // contains only one HealthCheck element: // - // The value of ListHealthChecksResponse$IsTruncated is false. + // * The value of ListHealthChecksResponse$IsTruncated is false. // - // ListHealthChecksResponse$NextMarker is omitted. + // * ListHealthChecksResponse$NextMarker is omitted. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` } @@ -7671,7 +8738,20 @@ func (s ListHealthChecksInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListHealthChecksInput) SetMarker(v string) *ListHealthChecksInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListHealthChecksInput) SetMaxItems(v string) *ListHealthChecksInput { + s.MaxItems = &v + return s +} + // A complex type that contains the response to a ListHealthChecks request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHealthChecksResponse type ListHealthChecksOutput struct { _ struct{} `type:"structure"` @@ -7719,13 +8799,43 @@ func (s ListHealthChecksOutput) GoString() string { return s.String() } +// SetHealthChecks sets the HealthChecks field's value. +func (s *ListHealthChecksOutput) SetHealthChecks(v []*HealthCheck) *ListHealthChecksOutput { + s.HealthChecks = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListHealthChecksOutput) SetIsTruncated(v bool) *ListHealthChecksOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListHealthChecksOutput) SetMarker(v string) *ListHealthChecksOutput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListHealthChecksOutput) SetMaxItems(v string) *ListHealthChecksOutput { + s.MaxItems = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListHealthChecksOutput) SetNextMarker(v string) *ListHealthChecksOutput { + s.NextMarker = &v + return s +} + // To retrieve a list of your public and private hosted zones in ASCII order // by domain name, send a GET request to the /Amazon Route 53 API version/hostedzonesbyname // resource. The response to this request includes a HostedZone child element // for each hosted zone that was created by the current AWS account. ListHostedZonesByName // sorts hosted zones by name with the labels reversed, for example: // -// com.example.www. +// com.example.www. // // Note the trailing dot, which can change the sort order in some circumstances. // @@ -7739,31 +8849,33 @@ func (s ListHealthChecksOutput) GoString() string { // domain names, see DNS Domain Name Format (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html) // in the Amazon Route 53 Developer Guide. // -// Amazon Route 53 returns up to 100 items in each response. If you have a -// lot of hosted zones, you can use the MaxItems parameter to list them in groups +// Amazon Route 53 returns up to 100 items in each response. If you have a lot +// of hosted zones, you can use the MaxItems parameter to list them in groups // of up to 100. The response includes values that help you navigate from one // group of MaxItems hosted zones to the next: // -// The DNSName and HostedZoneId elements in the response contain the values, -// if any, that you specified for the dnsname and hostedzoneid parameters in -// the request that produced the current response. +// * The DNSName and HostedZoneId elements in the response contain the values, +// if any, that you specified for the dnsname and hostedzoneid parameters +// in the request that produced the current response. // -// The MaxItems element in the response contains the value, if any, that -// you specified for the maxitems parameter in the request that produced the -// current response. +// * The MaxItems element in the response contains the value, if any, that +// you specified for the maxitems parameter in the request that produced +// the current response. // -// If the value of IsTruncated in the response is true, there are more hosted -// zones associated with the current Amazon Route 53 account. +// * If the value of IsTruncated in the response is true, there are more +// hosted zones associated with the current Amazon Route 53 account. // // If IsTruncated is false, this response includes the last hosted zone that -// is associated with the current account. The NextDNSName element and NextHostedZoneId -// elements are omitted from the response. -// -// The NextDNSName and NextHostedZoneId elements in the response contain -// the domain name and the hosted zone ID of the next hosted zone that is associated -// with the current AWS account. If you want to list more hosted zones, make -// another call to ListHostedZonesByName, and specify the value of NextDNSName -// and NextHostedZoneId in the dnsname and hostedzoneid parameters, respectively. +// is associated with the current account. The NextDNSName element and NextHostedZoneId +// elements are omitted from the response. +// +// * The NextDNSName and NextHostedZoneId elements in the response contain +// the domain name and the hosted zone ID of the next hosted zone that is +// associated with the current AWS account. If you want to list more hosted +// zones, make another call to ListHostedZonesByName, and specify the value +// of NextDNSName and NextHostedZoneId in the dnsname and hostedzoneid parameters, +// respectively. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHostedZonesByNameRequest type ListHostedZonesByNameInput struct { _ struct{} `type:"structure"` @@ -7804,7 +8916,26 @@ func (s ListHostedZonesByNameInput) GoString() string { return s.String() } +// SetDNSName sets the DNSName field's value. +func (s *ListHostedZonesByNameInput) SetDNSName(v string) *ListHostedZonesByNameInput { + s.DNSName = &v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *ListHostedZonesByNameInput) SetHostedZoneId(v string) *ListHostedZonesByNameInput { + s.HostedZoneId = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListHostedZonesByNameInput) SetMaxItems(v string) *ListHostedZonesByNameInput { + s.MaxItems = &v + return s +} + // A complex type that contains the response information for the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHostedZonesByNameResponse type ListHostedZonesByNameOutput struct { _ struct{} `type:"structure"` @@ -7864,35 +8995,78 @@ func (s ListHostedZonesByNameOutput) GoString() string { return s.String() } +// SetDNSName sets the DNSName field's value. +func (s *ListHostedZonesByNameOutput) SetDNSName(v string) *ListHostedZonesByNameOutput { + s.DNSName = &v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *ListHostedZonesByNameOutput) SetHostedZoneId(v string) *ListHostedZonesByNameOutput { + s.HostedZoneId = &v + return s +} + +// SetHostedZones sets the HostedZones field's value. +func (s *ListHostedZonesByNameOutput) SetHostedZones(v []*HostedZone) *ListHostedZonesByNameOutput { + s.HostedZones = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListHostedZonesByNameOutput) SetIsTruncated(v bool) *ListHostedZonesByNameOutput { + s.IsTruncated = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListHostedZonesByNameOutput) SetMaxItems(v string) *ListHostedZonesByNameOutput { + s.MaxItems = &v + return s +} + +// SetNextDNSName sets the NextDNSName field's value. +func (s *ListHostedZonesByNameOutput) SetNextDNSName(v string) *ListHostedZonesByNameOutput { + s.NextDNSName = &v + return s +} + +// SetNextHostedZoneId sets the NextHostedZoneId field's value. +func (s *ListHostedZonesByNameOutput) SetNextHostedZoneId(v string) *ListHostedZonesByNameOutput { + s.NextHostedZoneId = &v + return s +} + // To retrieve a list of your public and private hosted zones, send a GET request // to the /2013-04-01/hostedzone resource. The response to this request includes // a HostedZone child element for each hosted zone that was created by the current // AWS account. // -// Amazon Route 53 returns a maximum of 100 items in each response. If you -// have a lot of hosted zones, you can use the maxitems parameter to list them -// in groups of up to 100. The response includes four values that help you navigate +// Amazon Route 53 returns a maximum of 100 items in each response. If you have +// a lot of hosted zones, you can use the maxitems parameter to list them in +// groups of up to 100. The response includes four values that help you navigate // from one group of maxitems hosted zones to the next: // -// MaxItems is the value that you specified for the maxitems parameter in -// the request that produced the current response. +// * MaxItems is the value that you specified for the maxitems parameter +// in the request that produced the current response. // -// If the value of IsTruncated in the response is true, there are more hosted -// zones associated with the current AWS account. +// * If the value of IsTruncated in the response is true, there are more +// hosted zones associated with the current AWS account. // // If IsTruncated is false, this response includes the last hosted zone that -// is associated with the current account. +// is associated with the current account. // -// NextMarker is the hosted zone ID of the next hosted zone that is associated -// with the current AWS account. If you want to list more hosted zones, make -// another call to ListHostedZones, and specify the value of the NextMarker -// element in the marker parameter. +// * NextMarker is the hosted zone ID of the next hosted zone that is associated +// with the current AWS account. If you want to list more hosted zones, make +// another call to ListHostedZones, and specify the value of the NextMarker +// element in the marker parameter. // // If IsTruncated is false, the NextMarker element is omitted from the response. // -// If you're making the second or subsequent call to ListHostedZones, the -// Marker element matches the value that you specified in the marker parameter -// in the previous request. +// * If you're making the second or subsequent call to ListHostedZones, the +// Marker element matches the value that you specified in the marker parameter +// in the previous request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHostedZonesRequest type ListHostedZonesInput struct { _ struct{} `type:"structure"` @@ -7928,6 +9102,25 @@ func (s ListHostedZonesInput) GoString() string { return s.String() } +// SetDelegationSetId sets the DelegationSetId field's value. +func (s *ListHostedZonesInput) SetDelegationSetId(v string) *ListHostedZonesInput { + s.DelegationSetId = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListHostedZonesInput) SetMarker(v string) *ListHostedZonesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListHostedZonesInput) SetMaxItems(v string) *ListHostedZonesInput { + s.MaxItems = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHostedZonesResponse type ListHostedZonesOutput struct { _ struct{} `type:"structure"` @@ -7975,7 +9168,38 @@ func (s ListHostedZonesOutput) GoString() string { return s.String() } +// SetHostedZones sets the HostedZones field's value. +func (s *ListHostedZonesOutput) SetHostedZones(v []*HostedZone) *ListHostedZonesOutput { + s.HostedZones = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListHostedZonesOutput) SetIsTruncated(v bool) *ListHostedZonesOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListHostedZonesOutput) SetMarker(v string) *ListHostedZonesOutput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListHostedZonesOutput) SetMaxItems(v string) *ListHostedZonesOutput { + s.MaxItems = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListHostedZonesOutput) SetNextMarker(v string) *ListHostedZonesOutput { + s.NextMarker = &v + return s +} + // The input for a ListResourceRecordSets request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListResourceRecordSetsRequest type ListResourceRecordSetsInput struct { _ struct{} `type:"structure"` @@ -8008,20 +9232,20 @@ type ListResourceRecordSetsInput struct { // Valid values for basic resource record sets: A | AAAA | CNAME | MX | NAPTR // | NS | PTR | SOA | SPF | SRV | TXT // - // Values for weighted, latency, geo, and failover resource record sets: A - // | AAAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT + // Values for weighted, latency, geo, and failover resource record sets: A | + // AAAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT // // Values for alias resource record sets: // - // CloudFront distribution: A + // * CloudFront distribution: A or AAAA // - // Elastic Beanstalk environment that has a regionalized subdomain: A + // * Elastic Beanstalk environment that has a regionalized subdomain: A // - // ELB load balancer: A | AAAA + // * ELB load balancer: A | AAAA // - // Amazon S3 bucket: A + // * Amazon S3 bucket: A // - // Constraint: Specifying type without specifying name returns an InvalidInput + // Constraint: Specifying type without specifying name returns an InvalidInput // error. StartRecordType *string `location:"querystring" locationName:"type" type:"string" enum:"RRType"` } @@ -8052,7 +9276,38 @@ func (s *ListResourceRecordSetsInput) Validate() error { return nil } +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *ListResourceRecordSetsInput) SetHostedZoneId(v string) *ListResourceRecordSetsInput { + s.HostedZoneId = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListResourceRecordSetsInput) SetMaxItems(v string) *ListResourceRecordSetsInput { + s.MaxItems = &v + return s +} + +// SetStartRecordIdentifier sets the StartRecordIdentifier field's value. +func (s *ListResourceRecordSetsInput) SetStartRecordIdentifier(v string) *ListResourceRecordSetsInput { + s.StartRecordIdentifier = &v + return s +} + +// SetStartRecordName sets the StartRecordName field's value. +func (s *ListResourceRecordSetsInput) SetStartRecordName(v string) *ListResourceRecordSetsInput { + s.StartRecordName = &v + return s +} + +// SetStartRecordType sets the StartRecordType field's value. +func (s *ListResourceRecordSetsInput) SetStartRecordType(v string) *ListResourceRecordSetsInput { + s.StartRecordType = &v + return s +} + // A complex type that contains list information for the resource record set. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListResourceRecordSetsResponse type ListResourceRecordSetsOutput struct { _ struct{} `type:"structure"` @@ -8099,6 +9354,42 @@ func (s ListResourceRecordSetsOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListResourceRecordSetsOutput) SetIsTruncated(v bool) *ListResourceRecordSetsOutput { + s.IsTruncated = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListResourceRecordSetsOutput) SetMaxItems(v string) *ListResourceRecordSetsOutput { + s.MaxItems = &v + return s +} + +// SetNextRecordIdentifier sets the NextRecordIdentifier field's value. +func (s *ListResourceRecordSetsOutput) SetNextRecordIdentifier(v string) *ListResourceRecordSetsOutput { + s.NextRecordIdentifier = &v + return s +} + +// SetNextRecordName sets the NextRecordName field's value. +func (s *ListResourceRecordSetsOutput) SetNextRecordName(v string) *ListResourceRecordSetsOutput { + s.NextRecordName = &v + return s +} + +// SetNextRecordType sets the NextRecordType field's value. +func (s *ListResourceRecordSetsOutput) SetNextRecordType(v string) *ListResourceRecordSetsOutput { + s.NextRecordType = &v + return s +} + +// SetResourceRecordSets sets the ResourceRecordSets field's value. +func (s *ListResourceRecordSetsOutput) SetResourceRecordSets(v []*ResourceRecordSet) *ListResourceRecordSetsOutput { + s.ResourceRecordSets = v + return s +} + // To retrieve a list of your reusable delegation sets, send a GET request to // the /2013-04-01/delegationset resource. The response to this request includes // a DelegationSets element with zero or more DelegationSet child elements. @@ -8107,8 +9398,9 @@ func (s ListResourceRecordSetsOutput) GoString() string { // MaxItems parameter. You can use the Marker parameter to control the delegation // set that the list begins with. // -// Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to -// a value greater than 100, Amazon Route 53 returns only the first 100. +// Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a +// value greater than 100, Amazon Route 53 returns only the first 100. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListReusableDelegationSetsRequest type ListReusableDelegationSetsInput struct { _ struct{} `type:"structure"` @@ -8132,8 +9424,21 @@ func (s ListReusableDelegationSetsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListReusableDelegationSetsInput) SetMarker(v string) *ListReusableDelegationSetsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListReusableDelegationSetsInput) SetMaxItems(v string) *ListReusableDelegationSetsInput { + s.MaxItems = &v + return s +} + // A complex type that contains information about the reusable delegation sets // that are associated with the current AWS account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListReusableDelegationSetsResponse type ListReusableDelegationSetsOutput struct { _ struct{} `type:"structure"` @@ -8181,8 +9486,39 @@ func (s ListReusableDelegationSetsOutput) GoString() string { return s.String() } +// SetDelegationSets sets the DelegationSets field's value. +func (s *ListReusableDelegationSetsOutput) SetDelegationSets(v []*DelegationSet) *ListReusableDelegationSetsOutput { + s.DelegationSets = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListReusableDelegationSetsOutput) SetIsTruncated(v bool) *ListReusableDelegationSetsOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListReusableDelegationSetsOutput) SetMarker(v string) *ListReusableDelegationSetsOutput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListReusableDelegationSetsOutput) SetMaxItems(v string) *ListReusableDelegationSetsOutput { + s.MaxItems = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListReusableDelegationSetsOutput) SetNextMarker(v string) *ListReusableDelegationSetsOutput { + s.NextMarker = &v + return s +} + // A complex type containing information about a request for a list of the tags // that are associated with an individual resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTagsForResourceRequest type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -8193,9 +9529,9 @@ type ListTagsForResourceInput struct { // The type of the resource. // - // The resource type for health checks is healthcheck. + // * The resource type for health checks is healthcheck. // - // The resource type for hosted zones is hostedzone. + // * The resource type for hosted zones is hostedzone. // // ResourceType is a required field ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"` @@ -8227,8 +9563,21 @@ func (s *ListTagsForResourceInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *ListTagsForResourceInput) SetResourceId(v string) *ListTagsForResourceInput { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ListTagsForResourceInput) SetResourceType(v string) *ListTagsForResourceInput { + s.ResourceType = &v + return s +} + // A complex type that contains information about the health checks or hosted // zones for which you want to list tags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTagsForResourceResponse type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` @@ -8248,8 +9597,15 @@ func (s ListTagsForResourceOutput) GoString() string { return s.String() } +// SetResourceTagSet sets the ResourceTagSet field's value. +func (s *ListTagsForResourceOutput) SetResourceTagSet(v *ResourceTagSet) *ListTagsForResourceOutput { + s.ResourceTagSet = v + return s +} + // A complex type that contains information about the health checks or hosted // zones for which you want to list tags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTagsForResourcesRequest type ListTagsForResourcesInput struct { _ struct{} `locationName:"ListTagsForResourcesRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` @@ -8261,9 +9617,9 @@ type ListTagsForResourcesInput struct { // The type of the resources. // - // The resource type for health checks is healthcheck. + // * The resource type for health checks is healthcheck. // - // The resource type for hosted zones is hostedzone. + // * The resource type for hosted zones is hostedzone. // // ResourceType is a required field ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"` @@ -8298,7 +9654,20 @@ func (s *ListTagsForResourcesInput) Validate() error { return nil } +// SetResourceIds sets the ResourceIds field's value. +func (s *ListTagsForResourcesInput) SetResourceIds(v []*string) *ListTagsForResourcesInput { + s.ResourceIds = v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ListTagsForResourcesInput) SetResourceType(v string) *ListTagsForResourcesInput { + s.ResourceType = &v + return s +} + // A complex type containing tags for the specified resources. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTagsForResourcesResponse type ListTagsForResourcesOutput struct { _ struct{} `type:"structure"` @@ -8318,8 +9687,15 @@ func (s ListTagsForResourcesOutput) GoString() string { return s.String() } +// SetResourceTagSets sets the ResourceTagSets field's value. +func (s *ListTagsForResourcesOutput) SetResourceTagSets(v []*ResourceTagSet) *ListTagsForResourcesOutput { + s.ResourceTagSets = v + return s +} + // A complex type that contains the information about the request to list the // traffic policies that are associated with the current AWS account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPoliciesRequest type ListTrafficPoliciesInput struct { _ struct{} `type:"structure"` @@ -8340,7 +9716,7 @@ type ListTrafficPoliciesInput struct { // element that was returned in the previous response. // // Policies are listed in the order in which they were created. - TrafficPolicyIdMarker *string `location:"querystring" locationName:"trafficpolicyid" type:"string"` + TrafficPolicyIdMarker *string `location:"querystring" locationName:"trafficpolicyid" min:"1" type:"string"` } // String returns the string representation @@ -8353,7 +9729,33 @@ func (s ListTrafficPoliciesInput) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTrafficPoliciesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTrafficPoliciesInput"} + if s.TrafficPolicyIdMarker != nil && len(*s.TrafficPolicyIdMarker) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TrafficPolicyIdMarker", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListTrafficPoliciesInput) SetMaxItems(v string) *ListTrafficPoliciesInput { + s.MaxItems = &v + return s +} + +// SetTrafficPolicyIdMarker sets the TrafficPolicyIdMarker field's value. +func (s *ListTrafficPoliciesInput) SetTrafficPolicyIdMarker(v string) *ListTrafficPoliciesInput { + s.TrafficPolicyIdMarker = &v + return s +} + // A complex type that contains the response information for the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPoliciesResponse type ListTrafficPoliciesOutput struct { _ struct{} `type:"structure"` @@ -8377,7 +9779,7 @@ type ListTrafficPoliciesOutput struct { // first traffic policy in the next group of MaxItems traffic policies. // // TrafficPolicyIdMarker is a required field - TrafficPolicyIdMarker *string `type:"string" required:"true"` + TrafficPolicyIdMarker *string `min:"1" type:"string" required:"true"` // A list that contains one TrafficPolicySummary element for each traffic policy // that was created by the current AWS account. @@ -8396,8 +9798,33 @@ func (s ListTrafficPoliciesOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListTrafficPoliciesOutput) SetIsTruncated(v bool) *ListTrafficPoliciesOutput { + s.IsTruncated = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListTrafficPoliciesOutput) SetMaxItems(v string) *ListTrafficPoliciesOutput { + s.MaxItems = &v + return s +} + +// SetTrafficPolicyIdMarker sets the TrafficPolicyIdMarker field's value. +func (s *ListTrafficPoliciesOutput) SetTrafficPolicyIdMarker(v string) *ListTrafficPoliciesOutput { + s.TrafficPolicyIdMarker = &v + return s +} + +// SetTrafficPolicySummaries sets the TrafficPolicySummaries field's value. +func (s *ListTrafficPoliciesOutput) SetTrafficPolicySummaries(v []*TrafficPolicySummary) *ListTrafficPoliciesOutput { + s.TrafficPolicySummaries = v + return s +} + // A request for the traffic policy instances that you created in a specified // hosted zone. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPolicyInstancesByHostedZoneRequest type ListTrafficPolicyInstancesByHostedZoneInput struct { _ struct{} `type:"structure"` @@ -8463,7 +9890,32 @@ func (s *ListTrafficPolicyInstancesByHostedZoneInput) Validate() error { return nil } +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *ListTrafficPolicyInstancesByHostedZoneInput) SetHostedZoneId(v string) *ListTrafficPolicyInstancesByHostedZoneInput { + s.HostedZoneId = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListTrafficPolicyInstancesByHostedZoneInput) SetMaxItems(v string) *ListTrafficPolicyInstancesByHostedZoneInput { + s.MaxItems = &v + return s +} + +// SetTrafficPolicyInstanceNameMarker sets the TrafficPolicyInstanceNameMarker field's value. +func (s *ListTrafficPolicyInstancesByHostedZoneInput) SetTrafficPolicyInstanceNameMarker(v string) *ListTrafficPolicyInstancesByHostedZoneInput { + s.TrafficPolicyInstanceNameMarker = &v + return s +} + +// SetTrafficPolicyInstanceTypeMarker sets the TrafficPolicyInstanceTypeMarker field's value. +func (s *ListTrafficPolicyInstancesByHostedZoneInput) SetTrafficPolicyInstanceTypeMarker(v string) *ListTrafficPolicyInstancesByHostedZoneInput { + s.TrafficPolicyInstanceTypeMarker = &v + return s +} + // A complex type that contains the response information for the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPolicyInstancesByHostedZoneResponse type ListTrafficPolicyInstancesByHostedZoneOutput struct { _ struct{} `type:"structure"` @@ -8510,8 +9962,39 @@ func (s ListTrafficPolicyInstancesByHostedZoneOutput) GoString() string { return s.String() } +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListTrafficPolicyInstancesByHostedZoneOutput) SetIsTruncated(v bool) *ListTrafficPolicyInstancesByHostedZoneOutput { + s.IsTruncated = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListTrafficPolicyInstancesByHostedZoneOutput) SetMaxItems(v string) *ListTrafficPolicyInstancesByHostedZoneOutput { + s.MaxItems = &v + return s +} + +// SetTrafficPolicyInstanceNameMarker sets the TrafficPolicyInstanceNameMarker field's value. +func (s *ListTrafficPolicyInstancesByHostedZoneOutput) SetTrafficPolicyInstanceNameMarker(v string) *ListTrafficPolicyInstancesByHostedZoneOutput { + s.TrafficPolicyInstanceNameMarker = &v + return s +} + +// SetTrafficPolicyInstanceTypeMarker sets the TrafficPolicyInstanceTypeMarker field's value. +func (s *ListTrafficPolicyInstancesByHostedZoneOutput) SetTrafficPolicyInstanceTypeMarker(v string) *ListTrafficPolicyInstancesByHostedZoneOutput { + s.TrafficPolicyInstanceTypeMarker = &v + return s +} + +// SetTrafficPolicyInstances sets the TrafficPolicyInstances field's value. +func (s *ListTrafficPolicyInstancesByHostedZoneOutput) SetTrafficPolicyInstances(v []*TrafficPolicyInstance) *ListTrafficPolicyInstancesByHostedZoneOutput { + s.TrafficPolicyInstances = v + return s +} + // A complex type that contains the information about the request to list your // traffic policy instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPolicyInstancesByPolicyRequest type ListTrafficPolicyInstancesByPolicyInput struct { _ struct{} `type:"structure"` @@ -8539,7 +10022,7 @@ type ListTrafficPolicyInstancesByPolicyInput struct { // The ID of the traffic policy for which you want to list traffic policy instances. // // TrafficPolicyId is a required field - TrafficPolicyId *string `location:"querystring" locationName:"id" type:"string" required:"true"` + TrafficPolicyId *string `location:"querystring" locationName:"id" min:"1" type:"string" required:"true"` // For the first request to ListTrafficPolicyInstancesByPolicy, omit this value. // @@ -8588,6 +10071,9 @@ func (s *ListTrafficPolicyInstancesByPolicyInput) Validate() error { if s.TrafficPolicyId == nil { invalidParams.Add(request.NewErrParamRequired("TrafficPolicyId")) } + if s.TrafficPolicyId != nil && len(*s.TrafficPolicyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TrafficPolicyId", 1)) + } if s.TrafficPolicyVersion == nil { invalidParams.Add(request.NewErrParamRequired("TrafficPolicyVersion")) } @@ -8601,7 +10087,44 @@ func (s *ListTrafficPolicyInstancesByPolicyInput) Validate() error { return nil } +// SetHostedZoneIdMarker sets the HostedZoneIdMarker field's value. +func (s *ListTrafficPolicyInstancesByPolicyInput) SetHostedZoneIdMarker(v string) *ListTrafficPolicyInstancesByPolicyInput { + s.HostedZoneIdMarker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListTrafficPolicyInstancesByPolicyInput) SetMaxItems(v string) *ListTrafficPolicyInstancesByPolicyInput { + s.MaxItems = &v + return s +} + +// SetTrafficPolicyId sets the TrafficPolicyId field's value. +func (s *ListTrafficPolicyInstancesByPolicyInput) SetTrafficPolicyId(v string) *ListTrafficPolicyInstancesByPolicyInput { + s.TrafficPolicyId = &v + return s +} + +// SetTrafficPolicyInstanceNameMarker sets the TrafficPolicyInstanceNameMarker field's value. +func (s *ListTrafficPolicyInstancesByPolicyInput) SetTrafficPolicyInstanceNameMarker(v string) *ListTrafficPolicyInstancesByPolicyInput { + s.TrafficPolicyInstanceNameMarker = &v + return s +} + +// SetTrafficPolicyInstanceTypeMarker sets the TrafficPolicyInstanceTypeMarker field's value. +func (s *ListTrafficPolicyInstancesByPolicyInput) SetTrafficPolicyInstanceTypeMarker(v string) *ListTrafficPolicyInstancesByPolicyInput { + s.TrafficPolicyInstanceTypeMarker = &v + return s +} + +// SetTrafficPolicyVersion sets the TrafficPolicyVersion field's value. +func (s *ListTrafficPolicyInstancesByPolicyInput) SetTrafficPolicyVersion(v int64) *ListTrafficPolicyInstancesByPolicyInput { + s.TrafficPolicyVersion = &v + return s +} + // A complex type that contains the response information for the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPolicyInstancesByPolicyResponse type ListTrafficPolicyInstancesByPolicyOutput struct { _ struct{} `type:"structure"` @@ -8653,19 +10176,56 @@ func (s ListTrafficPolicyInstancesByPolicyOutput) GoString() string { return s.String() } -// A complex type that contains the information about the request to list your -// traffic policy instances. +// SetHostedZoneIdMarker sets the HostedZoneIdMarker field's value. +func (s *ListTrafficPolicyInstancesByPolicyOutput) SetHostedZoneIdMarker(v string) *ListTrafficPolicyInstancesByPolicyOutput { + s.HostedZoneIdMarker = &v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListTrafficPolicyInstancesByPolicyOutput) SetIsTruncated(v bool) *ListTrafficPolicyInstancesByPolicyOutput { + s.IsTruncated = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListTrafficPolicyInstancesByPolicyOutput) SetMaxItems(v string) *ListTrafficPolicyInstancesByPolicyOutput { + s.MaxItems = &v + return s +} + +// SetTrafficPolicyInstanceNameMarker sets the TrafficPolicyInstanceNameMarker field's value. +func (s *ListTrafficPolicyInstancesByPolicyOutput) SetTrafficPolicyInstanceNameMarker(v string) *ListTrafficPolicyInstancesByPolicyOutput { + s.TrafficPolicyInstanceNameMarker = &v + return s +} + +// SetTrafficPolicyInstanceTypeMarker sets the TrafficPolicyInstanceTypeMarker field's value. +func (s *ListTrafficPolicyInstancesByPolicyOutput) SetTrafficPolicyInstanceTypeMarker(v string) *ListTrafficPolicyInstancesByPolicyOutput { + s.TrafficPolicyInstanceTypeMarker = &v + return s +} + +// SetTrafficPolicyInstances sets the TrafficPolicyInstances field's value. +func (s *ListTrafficPolicyInstancesByPolicyOutput) SetTrafficPolicyInstances(v []*TrafficPolicyInstance) *ListTrafficPolicyInstancesByPolicyOutput { + s.TrafficPolicyInstances = v + return s +} + +// A request to get information about the traffic policy instances that you +// created by using the current AWS account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPolicyInstancesRequest type ListTrafficPolicyInstancesInput struct { _ struct{} `type:"structure"` // For the first request to ListTrafficPolicyInstances, omit this value. // - // If the value of IsTruncated in the previous response was true, you have - // more traffic policy instances. To get the next group of MaxItems traffic - // policy instances, submit another ListTrafficPolicyInstances request. For - // the value of HostedZoneIdMarker, specify the value of HostedZoneIdMarker - // from the previous response, which is the hosted zone ID of the first traffic - // policy instance in the next group of MaxItems traffic policy instances. + // If the value of IsTruncated in the previous response was true, you have more + // traffic policy instances. To get the next group of MaxItems traffic policy + // instances, submit another ListTrafficPolicyInstances request. For the value + // of HostedZoneIdMarker, specify the value of HostedZoneIdMarker from the previous + // response, which is the hosted zone ID of the first traffic policy instance + // in the next group of MaxItems traffic policy instances. // // If the value of IsTruncated in the previous response was false, there are // no more traffic policy instances to get. @@ -8710,7 +10270,32 @@ func (s ListTrafficPolicyInstancesInput) GoString() string { return s.String() } +// SetHostedZoneIdMarker sets the HostedZoneIdMarker field's value. +func (s *ListTrafficPolicyInstancesInput) SetHostedZoneIdMarker(v string) *ListTrafficPolicyInstancesInput { + s.HostedZoneIdMarker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListTrafficPolicyInstancesInput) SetMaxItems(v string) *ListTrafficPolicyInstancesInput { + s.MaxItems = &v + return s +} + +// SetTrafficPolicyInstanceNameMarker sets the TrafficPolicyInstanceNameMarker field's value. +func (s *ListTrafficPolicyInstancesInput) SetTrafficPolicyInstanceNameMarker(v string) *ListTrafficPolicyInstancesInput { + s.TrafficPolicyInstanceNameMarker = &v + return s +} + +// SetTrafficPolicyInstanceTypeMarker sets the TrafficPolicyInstanceTypeMarker field's value. +func (s *ListTrafficPolicyInstancesInput) SetTrafficPolicyInstanceTypeMarker(v string) *ListTrafficPolicyInstancesInput { + s.TrafficPolicyInstanceTypeMarker = &v + return s +} + // A complex type that contains the response information for the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPolicyInstancesResponse type ListTrafficPolicyInstancesOutput struct { _ struct{} `type:"structure"` @@ -8762,8 +10347,45 @@ func (s ListTrafficPolicyInstancesOutput) GoString() string { return s.String() } +// SetHostedZoneIdMarker sets the HostedZoneIdMarker field's value. +func (s *ListTrafficPolicyInstancesOutput) SetHostedZoneIdMarker(v string) *ListTrafficPolicyInstancesOutput { + s.HostedZoneIdMarker = &v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListTrafficPolicyInstancesOutput) SetIsTruncated(v bool) *ListTrafficPolicyInstancesOutput { + s.IsTruncated = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListTrafficPolicyInstancesOutput) SetMaxItems(v string) *ListTrafficPolicyInstancesOutput { + s.MaxItems = &v + return s +} + +// SetTrafficPolicyInstanceNameMarker sets the TrafficPolicyInstanceNameMarker field's value. +func (s *ListTrafficPolicyInstancesOutput) SetTrafficPolicyInstanceNameMarker(v string) *ListTrafficPolicyInstancesOutput { + s.TrafficPolicyInstanceNameMarker = &v + return s +} + +// SetTrafficPolicyInstanceTypeMarker sets the TrafficPolicyInstanceTypeMarker field's value. +func (s *ListTrafficPolicyInstancesOutput) SetTrafficPolicyInstanceTypeMarker(v string) *ListTrafficPolicyInstancesOutput { + s.TrafficPolicyInstanceTypeMarker = &v + return s +} + +// SetTrafficPolicyInstances sets the TrafficPolicyInstances field's value. +func (s *ListTrafficPolicyInstancesOutput) SetTrafficPolicyInstances(v []*TrafficPolicyInstance) *ListTrafficPolicyInstancesOutput { + s.TrafficPolicyInstances = v + return s +} + // A complex type that contains the information about the request to list your // traffic policies. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPolicyVersionsRequest type ListTrafficPolicyVersionsInput struct { _ struct{} `type:"structure"` @@ -8771,7 +10393,7 @@ type ListTrafficPolicyVersionsInput struct { // all versions. // // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + Id *string `location:"uri" locationName:"Id" min:"1" type:"string" required:"true"` // The maximum number of traffic policy versions that you want Amazon Route // 53 to include in the response body for this request. If the specified traffic @@ -8795,20 +10417,158 @@ type ListTrafficPolicyVersionsInput struct { } // String returns the string representation -func (s ListTrafficPolicyVersionsInput) String() string { +func (s ListTrafficPolicyVersionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTrafficPolicyVersionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTrafficPolicyVersionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTrafficPolicyVersionsInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *ListTrafficPolicyVersionsInput) SetId(v string) *ListTrafficPolicyVersionsInput { + s.Id = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListTrafficPolicyVersionsInput) SetMaxItems(v string) *ListTrafficPolicyVersionsInput { + s.MaxItems = &v + return s +} + +// SetTrafficPolicyVersionMarker sets the TrafficPolicyVersionMarker field's value. +func (s *ListTrafficPolicyVersionsInput) SetTrafficPolicyVersionMarker(v string) *ListTrafficPolicyVersionsInput { + s.TrafficPolicyVersionMarker = &v + return s +} + +// A complex type that contains the response information for the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPolicyVersionsResponse +type ListTrafficPolicyVersionsOutput struct { + _ struct{} `type:"structure"` + + // A flag that indicates whether there are more traffic policies to be listed. + // If the response was truncated, you can get the next group of maxitems traffic + // policies by calling ListTrafficPolicyVersions again and specifying the value + // of the NextMarker element in the marker parameter. + // + // IsTruncated is a required field + IsTruncated *bool `type:"boolean" required:"true"` + + // The value that you specified for the maxitems parameter in the call to ListTrafficPolicyVersions + // that produced the current response. + // + // MaxItems is a required field + MaxItems *string `type:"string" required:"true"` + + // A list that contains one TrafficPolicy element for each traffic policy version + // that is associated with the specified traffic policy. + // + // TrafficPolicies is a required field + TrafficPolicies []*TrafficPolicy `locationNameList:"TrafficPolicy" type:"list" required:"true"` + + // If IsTruncated is true, the value of TrafficPolicyVersionMarker identifies + // the first traffic policy in the next group of MaxItems traffic policies. + // Call ListTrafficPolicyVersions again and specify the value of TrafficPolicyVersionMarker + // in the TrafficPolicyVersionMarker request parameter. + // + // This element is present only if IsTruncated is true. + // + // TrafficPolicyVersionMarker is a required field + TrafficPolicyVersionMarker *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ListTrafficPolicyVersionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTrafficPolicyVersionsOutput) GoString() string { + return s.String() +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListTrafficPolicyVersionsOutput) SetIsTruncated(v bool) *ListTrafficPolicyVersionsOutput { + s.IsTruncated = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListTrafficPolicyVersionsOutput) SetMaxItems(v string) *ListTrafficPolicyVersionsOutput { + s.MaxItems = &v + return s +} + +// SetTrafficPolicies sets the TrafficPolicies field's value. +func (s *ListTrafficPolicyVersionsOutput) SetTrafficPolicies(v []*TrafficPolicy) *ListTrafficPolicyVersionsOutput { + s.TrafficPolicies = v + return s +} + +// SetTrafficPolicyVersionMarker sets the TrafficPolicyVersionMarker field's value. +func (s *ListTrafficPolicyVersionsOutput) SetTrafficPolicyVersionMarker(v string) *ListTrafficPolicyVersionsOutput { + s.TrafficPolicyVersionMarker = &v + return s +} + +// A complex type that contains information about that can be associated with +// your hosted zone. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListVPCAssociationAuthorizationsRequest +type ListVPCAssociationAuthorizationsInput struct { + _ struct{} `type:"structure"` + + // The ID of the hosted zone for which you want a list of VPCs that can be associated + // with the hosted zone. + // + // HostedZoneId is a required field + HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // Optional: An integer that specifies the maximum number of VPCs that you want + // Amazon Route 53 to return. + MaxResults *string `location:"querystring" locationName:"maxresults" type:"string"` + + // Optional: If a response includes a NextToken element, there are more VPCs + // that can be associated with the specified hosted zone. To get the next page + // of results, submit another request, and include the value of the NextToken + // element in from the response in the NextToken parameter in another ListVPCAssociationAuthorizations + // request. + NextToken *string `location:"querystring" locationName:"nexttoken" type:"string"` +} + +// String returns the string representation +func (s ListVPCAssociationAuthorizationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTrafficPolicyVersionsInput) GoString() string { +func (s ListVPCAssociationAuthorizationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListTrafficPolicyVersionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTrafficPolicyVersionsInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) +func (s *ListVPCAssociationAuthorizationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListVPCAssociationAuthorizationsInput"} + if s.HostedZoneId == nil { + invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) } if invalidParams.Len() > 0 { @@ -8817,54 +10577,83 @@ func (s *ListTrafficPolicyVersionsInput) Validate() error { return nil } +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *ListVPCAssociationAuthorizationsInput) SetHostedZoneId(v string) *ListVPCAssociationAuthorizationsInput { + s.HostedZoneId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListVPCAssociationAuthorizationsInput) SetMaxResults(v string) *ListVPCAssociationAuthorizationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListVPCAssociationAuthorizationsInput) SetNextToken(v string) *ListVPCAssociationAuthorizationsInput { + s.NextToken = &v + return s +} + // A complex type that contains the response information for the request. -type ListTrafficPolicyVersionsOutput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListVPCAssociationAuthorizationsResponse +type ListVPCAssociationAuthorizationsOutput struct { _ struct{} `type:"structure"` - // A flag that indicates whether there are more traffic policies to be listed. - // If the response was truncated, you can get the next group of maxitems traffic - // policies by calling ListTrafficPolicyVersions again and specifying the value - // of the NextMarker element in the marker parameter. - // - // IsTruncated is a required field - IsTruncated *bool `type:"boolean" required:"true"` - - // The value that you specified for the maxitems parameter in the call to ListTrafficPolicyVersions - // that produced the current response. + // The ID of the hosted zone that you can associate the listed VPCs with. // - // MaxItems is a required field - MaxItems *string `type:"string" required:"true"` + // HostedZoneId is a required field + HostedZoneId *string `type:"string" required:"true"` - // A list that contains one TrafficPolicy element for each traffic policy version - // that is associated with the specified traffic policy. + // When the response includes a NextToken element, there are more VPCs that + // can be associated with the specified hosted zone. To get the next page of + // VPCs, submit another ListVPCAssociationAuthorizations request, and include + // the value of the NextToken element from the response in the NextToken request + // parameter: // - // TrafficPolicies is a required field - TrafficPolicies []*TrafficPolicy `locationNameList:"TrafficPolicy" type:"list" required:"true"` + // /2013-04-01/hostedzone/hosted zone ID/authorizevpcassociation?MaxItems=VPCs + // per page&NextToken= + NextToken *string `type:"string"` - // If IsTruncated is true, the value of TrafficPolicyVersionMarker identifies - // the first traffic policy in the next group of MaxItems traffic policies. - // Call ListTrafficPolicyVersions again and specify the value of TrafficPolicyVersionMarker - // in the TrafficPolicyVersionMarker request parameter. - // - // This element is present only if IsTruncated is true. + // The list of VPCs that are authorized to be associated with the specified + // hosted zone. // - // TrafficPolicyVersionMarker is a required field - TrafficPolicyVersionMarker *string `type:"string" required:"true"` + // VPCs is a required field + VPCs []*VPC `locationNameList:"VPC" min:"1" type:"list" required:"true"` } // String returns the string representation -func (s ListTrafficPolicyVersionsOutput) String() string { +func (s ListVPCAssociationAuthorizationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTrafficPolicyVersionsOutput) GoString() string { +func (s ListVPCAssociationAuthorizationsOutput) GoString() string { return s.String() } +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *ListVPCAssociationAuthorizationsOutput) SetHostedZoneId(v string) *ListVPCAssociationAuthorizationsOutput { + s.HostedZoneId = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListVPCAssociationAuthorizationsOutput) SetNextToken(v string) *ListVPCAssociationAuthorizationsOutput { + s.NextToken = &v + return s +} + +// SetVPCs sets the VPCs field's value. +func (s *ListVPCAssociationAuthorizationsOutput) SetVPCs(v []*VPC) *ListVPCAssociationAuthorizationsOutput { + s.VPCs = v + return s +} + // Information specific to the resource record. // -// If you are creating an alias resource record set, omit ResourceRecord. +// If you're creating an alias resource record set, omit ResourceRecord. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ResourceRecord type ResourceRecord struct { _ struct{} `type:"structure"` @@ -8877,7 +10666,7 @@ type ResourceRecord struct { // You can specify more than one value for all record types except CNAME and // SOA. // - // If you are creating an alias resource record set, omit Value. + // If you're creating an alias resource record set, omit Value. // // Value is a required field Value *string `type:"string" required:"true"` @@ -8906,27 +10695,34 @@ func (s *ResourceRecord) Validate() error { return nil } +// SetValue sets the Value field's value. +func (s *ResourceRecord) SetValue(v string) *ResourceRecord { + s.Value = &v + return s +} + // Information about the resource record set to create or delete. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ResourceRecordSet type ResourceRecordSet struct { _ struct{} `type:"structure"` // Alias resource record sets only: Information about the CloudFront distribution, - // Elastic Beanstalk environment, ELB load balancer, Amazon S3 bucket, or Amazon - // Route 53 resource record set to which you are redirecting queries. The Elastic - // Beanstalk environment must have a regionalized subdomain. + // AWS Elastic Beanstalk environment, ELB load balancer, Amazon S3 bucket, or + // Amazon Route 53 resource record set to which you're redirecting queries. + // The AWS Elastic Beanstalk environment must have a regionalized subdomain. // // If you're creating resource records sets for a private hosted zone, note // the following: // - // You can't create alias resource record sets for CloudFront distributions - // in a private hosted zone. + // * You can't create alias resource record sets for CloudFront distributions + // in a private hosted zone. // - // Creating geolocation alias resource record sets or latency alias resource - // record sets in a private hosted zone is unsupported. + // * Creating geolocation alias resource record sets or latency alias resource + // record sets in a private hosted zone is unsupported. // - // For information about creating failover resource record sets in a private - // hosted zone, see Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html) - // in the Amazon Route 53 Developer Guide. + // * For information about creating failover resource record sets in a private + // hosted zone, see Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html) + // in the Amazon Route 53 Developer Guide. AliasTarget *AliasTarget `type:"structure"` // Failover resource record sets only: To configure failover, you add the Failover @@ -8939,26 +10735,26 @@ type ResourceRecordSet struct { // Except where noted, the following failover behaviors assume that you have // included the HealthCheckId element in both resource record sets: // - // When the primary resource record set is healthy, Amazon Route 53 responds - // to DNS queries with the applicable value from the primary resource record - // set regardless of the health of the secondary resource record set. + // * When the primary resource record set is healthy, Amazon Route 53 responds + // to DNS queries with the applicable value from the primary resource record + // set regardless of the health of the secondary resource record set. // - // When the primary resource record set is unhealthy and the secondary resource - // record set is healthy, Amazon Route 53 responds to DNS queries with the applicable - // value from the secondary resource record set. + // * When the primary resource record set is unhealthy and the secondary + // resource record set is healthy, Amazon Route 53 responds to DNS queries + // with the applicable value from the secondary resource record set. // - // When the secondary resource record set is unhealthy, Amazon Route 53 responds - // to DNS queries with the applicable value from the primary resource record - // set regardless of the health of the primary resource record set. + // * When the secondary resource record set is unhealthy, Amazon Route 53 + // responds to DNS queries with the applicable value from the primary resource + // record set regardless of the health of the primary resource record set. // - // If you omit the HealthCheckId element for the secondary resource record - // set, and if the primary resource record set is unhealthy, Amazon Route 53 - // always responds to DNS queries with the applicable value from the secondary - // resource record set. This is true regardless of the health of the associated - // endpoint. + // * If you omit the HealthCheckId element for the secondary resource record + // set, and if the primary resource record set is unhealthy, Amazon Route + // 53 always responds to DNS queries with the applicable value from the secondary + // resource record set. This is true regardless of the health of the associated + // endpoint. // - // You cannot create non-failover resource record sets that have the same - // values for the Name and Type elements as failover resource record sets. + // You can't create non-failover resource record sets that have the same values + // for the Name and Type elements as failover resource record sets. // // For failover alias resource record sets, you must also include the EvaluateTargetHealth // element and set the value to true. @@ -8966,11 +10762,11 @@ type ResourceRecordSet struct { // For more information about configuring failover for Amazon Route 53, see // the following topics in the Amazon Route 53 Developer Guide: // - // Amazon Route 53 Health Checks and DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html) + // * Amazon Route 53 Health Checks and DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html) // - // Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html) + // * Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html) // - // Valid values: PRIMARY | SECONDARY + // Valid values: PRIMARY | SECONDARY Failover *string `type:"string" enum:"ResourceRecordSetFailover"` // Geo location resource record sets only: A complex type that lets you control @@ -8979,23 +10775,23 @@ type ResourceRecordSet struct { // to a web server with an IP address of 192.0.2.111, create a resource record // set with a Type of A and a ContinentCode of AF. // - // Creating geolocation and geolocation alias resource record sets in private + // Creating geolocation and geolocation alias resource record sets in private // hosted zones is not supported. // - // If you create separate resource record sets for overlapping geographic - // regions (for example, one resource record set for a continent and one for - // a country on the same continent), priority goes to the smallest geographic - // region. This allows you to route most queries for a continent to one resource - // and to route queries for a country on that continent to a different resource. + // If you create separate resource record sets for overlapping geographic regions + // (for example, one resource record set for a continent and one for a country + // on the same continent), priority goes to the smallest geographic region. + // This allows you to route most queries for a continent to one resource and + // to route queries for a country on that continent to a different resource. // - // You cannot create two geolocation resource record sets that specify the - // same geographic location. + // You can't create two geolocation resource record sets that specify the same + // geographic location. // - // The value * in the CountryCode element matches all geographic locations - // that aren't specified in other geolocation resource record sets that have - // the same values for the Name and Type elements. + // The value * in the CountryCode element matches all geographic locations that + // aren't specified in other geolocation resource record sets that have the + // same values for the Name and Type elements. // - // Geolocation works by mapping IP addresses to locations. However, some IP + // Geolocation works by mapping IP addresses to locations. However, some IP // addresses aren't mapped to geographic locations, so even if you create geolocation // resource record sets that cover all seven continents, Amazon Route 53 will // receive some DNS queries from locations that it can't identify. We recommend @@ -9005,7 +10801,7 @@ type ResourceRecordSet struct { // aren't mapped to a location. If you don't create a * resource record set, // Amazon Route 53 returns a "no answer" response for queries from those locations. // - // You cannot create non-geolocation resource record sets that have the same + // You can't create non-geolocation resource record sets that have the same // values for the Name and Type elements as geolocation resource record sets. GeoLocation *GeoLocation `type:"structure"` @@ -9016,41 +10812,43 @@ type ResourceRecordSet struct { // Amazon Route 53 determines whether a resource record set is healthy based // on one of the following: // - // By periodically sending a request to the endpoint that is specified in - // the health check + // * By periodically sending a request to the endpoint that is specified + // in the health check // - // By aggregating the status of a specified group of health checks (calculated - // health checks) + // * By aggregating the status of a specified group of health checks (calculated + // health checks) // - // By determining the current state of a CloudWatch alarm (CloudWatch metric - // health checks) + // * By determining the current state of a CloudWatch alarm (CloudWatch metric + // health checks) // - // For information about how Amazon Route 53 determines whether a health - // check is healthy, see CreateHealthCheck. + // For more information, see How Amazon Route 53 Determines Whether an Endpoint + // Is Healthy (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html). // // The HealthCheckId element is only useful when Amazon Route 53 is choosing // between two or more resource record sets to respond to a DNS query, and you // want Amazon Route 53 to base the choice in part on the status of a health // check. Configuring health checks only makes sense in the following configurations: // - // You're checking the health of the resource record sets in a weighted, - // latency, geolocation, or failover resource record set, and you specify health - // check IDs for all of the resource record sets. If the health check for one - // resource record set specifies an endpoint that is not healthy, Amazon Route - // 53 stops responding to queries using the value for that resource record set. + // * You're checking the health of the resource record sets in a group of + // weighted, latency, geolocation, or failover resource record sets, and + // you specify health check IDs for all of the resource record sets. If the + // health check for one resource record set specifies an endpoint that is + // not healthy, Amazon Route 53 stops responding to queries using the value + // for that resource record set. // - // You set EvaluateTargetHealth to true for the resource record sets in an - // alias, weighted alias, latency alias, geolocation alias, or failover alias - // resource record set, and you specify health check IDs for all of the resource - // record sets that are referenced by the alias resource record sets. + // * You set EvaluateTargetHealth to true for the resource record sets in + // a group of alias, weighted alias, latency alias, geolocation alias, or + // failover alias resource record sets, and you specify health check IDs + // for all of the resource record sets that are referenced by the alias resource + // record sets. // - // Amazon Route 53 doesn't check the health of the endpoint specified in - // the resource record set, for example, the endpoint specified by the IP address + // Amazon Route 53 doesn't check the health of the endpoint specified in the + // resource record set, for example, the endpoint specified by the IP address // in the Value element. When you add a HealthCheckId element to a resource // record set, Amazon Route 53 checks the health of the endpoint that you specified // in the health check. // - // For geolocation resource record sets, if an endpoint is unhealthy, Amazon + // For geolocation resource record sets, if an endpoint is unhealthy, Amazon // Route 53 looks for a resource record set for the larger, associated geographic // region. For example, suppose you have resource record sets for a state in // the United States, for the United States, for North America, and for all @@ -9064,20 +10862,20 @@ type ResourceRecordSet struct { // that you create a separate health check for each endpoint. For example, create // a health check for each HTTP server that is serving content for www.example.com. // For the value of FullyQualifiedDomainName, specify the domain name of the - // server (such as us-east-1-www.example.com), not the name of the resource + // server (such as us-east-2-www.example.com), not the name of the resource // record sets (example.com). // - // n this configuration, if you create a health check for which the value - // of FullyQualifiedDomainName matches the name of the resource record sets - // and then associate the health check with those resource record sets, health - // check results will be unpredictable. + // n this configuration, if you create a health check for which the value of + // FullyQualifiedDomainName matches the name of the resource record sets and + // then associate the health check with those resource record sets, health check + // results will be unpredictable. // - // For more information, see the following topics in the Amazon Route 53 Developer + // For more information, see the following topics in the Amazon Route 53 Developer // Guide: // - // Amazon Route 53 Health Checks and DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html) + // * Amazon Route 53 Health Checks and DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html) // - // Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html) + // * Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html) HealthCheckId *string `type:"string"` // The name of the domain you want to perform the action on. @@ -9096,58 +10894,59 @@ type ResourceRecordSet struct { // You can use the asterisk (*) wildcard to replace the leftmost label in a // domain name. For example, *.example.com. Note the following: // - // The * must replace the entire label. For example, you can't specify *prod.example.com - // or prod*.example.com. + // * The * must replace the entire label. For example, you can't specify + // *prod.example.com or prod*.example.com. // - // The * can't replace any of the middle labels, for example, marketing.*.example.com. + // * The * can't replace any of the middle labels, for example, marketing.*.example.com. // - // If you include * in any position other than the leftmost label in a domain - // name, DNS treats it as an * character (ASCII 42), not as a wildcard. + // * If you include * in any position other than the leftmost label in a + // domain name, DNS treats it as an * character (ASCII 42), not as a wildcard. // - // You can't use the * wildcard for resource records sets that have a type - // of NS. + // You can't use the * wildcard for resource records sets that have a type of + // NS. // - // You can use the * wildcard as the leftmost label in a domain name, for - // example, *.example.com. You cannot use an * for one of the middle labels, - // for example, marketing.*.example.com. In addition, the * must replace the - // entire label; for example, you can't specify prod*.example.com. + // You can use the * wildcard as the leftmost label in a domain name, for example, + // *.example.com. You can't use an * for one of the middle labels, for example, + // marketing.*.example.com. In addition, the * must replace the entire label; + // for example, you can't specify prod*.example.com. // // Name is a required field Name *string `type:"string" required:"true"` - // Latency-based resource record sets only: The Amazon EC2 region where the + // Latency-based resource record sets only: The Amazon EC2 Region where the // resource that is specified in this resource record set resides. The resource - // typically is an AWS resource, such as an Amazon EC2 instance or an ELB load - // balancer, and is referred to by an IP address or a DNS domain name, depending - // on the record type. + // typically is an AWS resource, such as an EC2 instance or an ELB load balancer, + // and is referred to by an IP address or a DNS domain name, depending on the + // record type. // - // Creating latency and latency alias resource record sets in private hosted + // Creating latency and latency alias resource record sets in private hosted // zones is not supported. // - // When Amazon Route 53 receives a DNS query for a domain name and type for + // When Amazon Route 53 receives a DNS query for a domain name and type for // which you have created latency resource record sets, Amazon Route 53 selects // the latency resource record set that has the lowest latency between the end - // user and the associated Amazon EC2 region. Amazon Route 53 then returns the + // user and the associated Amazon EC2 Region. Amazon Route 53 then returns the // value that is associated with the selected resource record set. // // Note the following: // - // You can only specify one ResourceRecord per latency resource record set. + // * You can only specify one ResourceRecord per latency resource record + // set. // - // You can only create one latency resource record set for each Amazon EC2 - // region. + // * You can only create one latency resource record set for each Amazon + // EC2 Region. // - // You are not required to create latency resource record sets for all Amazon - // EC2 regions. Amazon Route 53 will choose the region with the best latency - // from among the regions for which you create latency resource record sets. + // * You aren't required to create latency resource record sets for all Amazon + // EC2 Regions. Amazon Route 53 will choose the region with the best latency + // from among the regions for which you create latency resource record sets. // - // You cannot create non-latency resource record sets that have the same - // values for the Name and Type elements as latency resource record sets. + // * You can't create non-latency resource record sets that have the same + // values for the Name and Type elements as latency resource record sets. Region *string `min:"1" type:"string" enum:"ResourceRecordSetRegion"` // Information about the resource records to act upon. // - // If you are creating an alias resource record set, omit ResourceRecords. + // If you're creating an alias resource record set, omit ResourceRecords. ResourceRecords []*ResourceRecord `locationNameList:"ResourceRecord" min:"1" type:"list"` // Weighted, Latency, Geo, and Failover resource record sets only: An identifier @@ -9159,35 +10958,36 @@ type ResourceRecordSet struct { // The resource record cache time to live (TTL), in seconds. Note the following: // - // If you're creating an alias resource record set, omit TTL. Amazon Route - // 53 uses the value of TTL for the alias target. + // * If you're creating an alias resource record set, omit TTL. Amazon Route + // 53 uses the value of TTL for the alias target. // - // If you're associating this resource record set with a health check (if - // you're adding a HealthCheckId element), we recommend that you specify a TTL - // of 60 seconds or less so clients respond quickly to changes in health status. + // * If you're associating this resource record set with a health check (if + // you're adding a HealthCheckId element), we recommend that you specify + // a TTL of 60 seconds or less so clients respond quickly to changes in health + // status. // - // All of the resource record sets in a group of weighted, latency, geolocation, - // or failover resource record sets must have the same value for TTL. + // * All of the resource record sets in a group of weighted, latency, geolocation, + // or failover resource record sets must have the same value for TTL. // - // If a group of weighted resource record sets includes one or more weighted - // alias resource record sets for which the alias target is an ELB load balancer, - // we recommend that you specify a TTL of 60 seconds for all of the non-alias - // weighted resource record sets that have the same name and type. Values other - // than 60 seconds (the TTL for load balancers) will change the effect of the - // values that you specify for Weight. + // * If a group of weighted resource record sets includes one or more weighted + // alias resource record sets for which the alias target is an ELB load balancer, + // we recommend that you specify a TTL of 60 seconds for all of the non-alias + // weighted resource record sets that have the same name and type. Values + // other than 60 seconds (the TTL for load balancers) will change the effect + // of the values that you specify for Weight. TTL *int64 `type:"long"` // When you create a traffic policy instance, Amazon Route 53 automatically // creates a resource record set. TrafficPolicyInstanceId is the ID of the traffic // policy instance that Amazon Route 53 created this resource record set for. // - // To delete the resource record set that is associated with a traffic policy + // To delete the resource record set that is associated with a traffic policy // instance, use DeleteTrafficPolicyInstance. Amazon Route 53 will delete the // resource record set automatically. If you delete the resource record set // by using ChangeResourceRecordSets, Amazon Route 53 doesn't automatically // delete the traffic policy instance, and you'll continue to be charged for // it even though it's no longer in use. - TrafficPolicyInstanceId *string `type:"string"` + TrafficPolicyInstanceId *string `min:"1" type:"string"` // The DNS record type. For information about different record types and how // data is encoded for them, see Supported DNS Resource Record Types (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html) @@ -9196,33 +10996,38 @@ type ResourceRecordSet struct { // Valid values for basic resource record sets: A | AAAA | CNAME | MX | NAPTR // | NS | PTR | SOA | SPF | SRV | TXT // - // Values for weighted, latency, geolocation, and failover resource record - // sets: A | AAAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT. When creating - // a group of weighted, latency, geolocation, or failover resource record sets, - // specify the same value for all of the resource record sets in the group. + // Values for weighted, latency, geolocation, and failover resource record sets: + // A | AAAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT. When creating a group + // of weighted, latency, geolocation, or failover resource record sets, specify + // the same value for all of the resource record sets in the group. // - // SPF records were formerly used to verify the identity of the sender of - // email messages. However, we no longer recommend that you create resource - // record sets for which the value of Type is SPF. RFC 7208, Sender Policy Framework + // SPF records were formerly used to verify the identity of the sender of email + // messages. However, we no longer recommend that you create resource record + // sets for which the value of Type is SPF. RFC 7208, Sender Policy Framework // (SPF) for Authorizing Use of Domains in Email, Version 1, has been updated // to say, "...[I]ts existence and mechanism defined in [RFC4408] have led to // some interoperability issues. Accordingly, its use is no longer appropriate // for SPF version 1; implementations are not to use it." In RFC 7208, see section // 14.1, The SPF DNS Record Type (http://tools.ietf.org/html/rfc7208#section-14.1). // - // Values for alias resource record sets: + // Values for alias resource record sets: + // + // * CloudFront distributions:A // - // CloudFront distributions: A + // If IPv6 is enabled for the distribution, create two resource record sets + // to route traffic to your distribution, one with a value of A and one with + // a value of AAAA. // - // Elastic Beanstalk environment that has a regionalized subdomain: A + // * AWS Elastic Beanstalk environment that has a regionalized subdomain: + // A // - // ELB load balancers: A | AAAA + // * ELB load balancers:A | AAAA // - // Amazon S3 buckets: A + // * Amazon S3 buckets:A // - // Another resource record set in this hosted zone: Specify the type of - // the resource record set for which you're creating the alias. Specify any - // value except NS or SOA. + // * Another resource record set in this hosted zone: Specify the type of + // the resource record set for which you're creating the alias. Specify any + // value except NS or SOA. // // Type is a required field Type *string `type:"string" required:"true" enum:"RRType"` @@ -9235,29 +11040,31 @@ type ResourceRecordSet struct { // 53 then responds to queries based on the ratio of a resource's weight to // the total. Note the following: // - // You must specify a value for the Weight element for every weighted resource - // record set. + // * You must specify a value for the Weight element for every weighted resource + // record set. // - // You can only specify one ResourceRecord per weighted resource record set. + // * You can only specify one ResourceRecord per weighted resource record + // set. // - // You cannot create latency, failover, or geolocation resource record sets - // that have the same values for the Name and Type elements as weighted resource - // record sets. + // * You can't create latency, failover, or geolocation resource record sets + // that have the same values for the Name and Type elements as weighted resource + // record sets. // - // You can create a maximum of 100 weighted resource record sets that have - // the same values for the Name and Type elements. + // * You can create a maximum of 100 weighted resource record sets that have + // the same values for the Name and Type elements. // - // For weighted (but not weighted alias) resource record sets, if you set - // Weight to 0 for a resource record set, Amazon Route 53 never responds to - // queries with the applicable value for that resource record set. However, - // if you set Weight to 0 for all resource record sets that have the same combination - // of DNS name and type, traffic is routed to all resources with equal probability. + // * For weighted (but not weighted alias) resource record sets, if you set + // Weight to 0 for a resource record set, Amazon Route 53 never responds + // to queries with the applicable value for that resource record set. However, + // if you set Weight to 0 for all resource record sets that have the same + // combination of DNS name and type, traffic is routed to all resources with + // equal probability. // // The effect of setting Weight to 0 is different when you associate health - // checks with weighted resource record sets. For more information, see Options - // for Configuring Amazon Route 53 Active-Active and Active-Passive Failover - // (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-configuring-options.html) - // in the Amazon Route 53 Developer Guide. + // checks with weighted resource record sets. For more information, see Options + // for Configuring Amazon Route 53 Active-Active and Active-Passive Failover + // (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-configuring-options.html) + // in the Amazon Route 53 Developer Guide. Weight *int64 `type:"long"` } @@ -9286,6 +11093,9 @@ func (s *ResourceRecordSet) Validate() error { if s.SetIdentifier != nil && len(*s.SetIdentifier) < 1 { invalidParams.Add(request.NewErrParamMinLen("SetIdentifier", 1)) } + if s.TrafficPolicyInstanceId != nil && len(*s.TrafficPolicyInstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TrafficPolicyInstanceId", 1)) + } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } @@ -9316,7 +11126,80 @@ func (s *ResourceRecordSet) Validate() error { return nil } +// SetAliasTarget sets the AliasTarget field's value. +func (s *ResourceRecordSet) SetAliasTarget(v *AliasTarget) *ResourceRecordSet { + s.AliasTarget = v + return s +} + +// SetFailover sets the Failover field's value. +func (s *ResourceRecordSet) SetFailover(v string) *ResourceRecordSet { + s.Failover = &v + return s +} + +// SetGeoLocation sets the GeoLocation field's value. +func (s *ResourceRecordSet) SetGeoLocation(v *GeoLocation) *ResourceRecordSet { + s.GeoLocation = v + return s +} + +// SetHealthCheckId sets the HealthCheckId field's value. +func (s *ResourceRecordSet) SetHealthCheckId(v string) *ResourceRecordSet { + s.HealthCheckId = &v + return s +} + +// SetName sets the Name field's value. +func (s *ResourceRecordSet) SetName(v string) *ResourceRecordSet { + s.Name = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *ResourceRecordSet) SetRegion(v string) *ResourceRecordSet { + s.Region = &v + return s +} + +// SetResourceRecords sets the ResourceRecords field's value. +func (s *ResourceRecordSet) SetResourceRecords(v []*ResourceRecord) *ResourceRecordSet { + s.ResourceRecords = v + return s +} + +// SetSetIdentifier sets the SetIdentifier field's value. +func (s *ResourceRecordSet) SetSetIdentifier(v string) *ResourceRecordSet { + s.SetIdentifier = &v + return s +} + +// SetTTL sets the TTL field's value. +func (s *ResourceRecordSet) SetTTL(v int64) *ResourceRecordSet { + s.TTL = &v + return s +} + +// SetTrafficPolicyInstanceId sets the TrafficPolicyInstanceId field's value. +func (s *ResourceRecordSet) SetTrafficPolicyInstanceId(v string) *ResourceRecordSet { + s.TrafficPolicyInstanceId = &v + return s +} + +// SetType sets the Type field's value. +func (s *ResourceRecordSet) SetType(v string) *ResourceRecordSet { + s.Type = &v + return s +} + +// SetWeight sets the Weight field's value. +func (s *ResourceRecordSet) SetWeight(v int64) *ResourceRecordSet { + s.Weight = &v + return s +} + // A complex type containing a resource and its associated tags. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ResourceTagSet type ResourceTagSet struct { _ struct{} `type:"structure"` @@ -9325,9 +11208,9 @@ type ResourceTagSet struct { // The type of the resource. // - // The resource type for health checks is healthcheck. + // * The resource type for health checks is healthcheck. // - // The resource type for hosted zones is hostedzone. + // * The resource type for hosted zones is hostedzone. ResourceType *string `type:"string" enum:"TagResourceType"` // The tags associated with the specified resource. @@ -9344,8 +11227,27 @@ func (s ResourceTagSet) GoString() string { return s.String() } +// SetResourceId sets the ResourceId field's value. +func (s *ResourceTagSet) SetResourceId(v string) *ResourceTagSet { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ResourceTagSet) SetResourceType(v string) *ResourceTagSet { + s.ResourceType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ResourceTagSet) SetTags(v []*Tag) *ResourceTagSet { + s.Tags = v + return s +} + // A complex type that contains the status that one Amazon Route 53 health checker // reports and the time of the health check. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/StatusReport type StatusReport struct { _ struct{} `type:"structure"` @@ -9370,32 +11272,45 @@ func (s StatusReport) GoString() string { return s.String() } +// SetCheckedTime sets the CheckedTime field's value. +func (s *StatusReport) SetCheckedTime(v time.Time) *StatusReport { + s.CheckedTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *StatusReport) SetStatus(v string) *StatusReport { + s.Status = &v + return s +} + // A complex type that contains information about a tag that you want to add // or edit for the specified health check or hosted zone. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/Tag type Tag struct { _ struct{} `type:"structure"` // The value of Key depends on the operation that you want to perform: // - // Add a tag to a health check or hosted zone: Key is the name that you - // want to give the new tag. + // * Add a tag to a health check or hosted zone: Key is the name that you + // want to give the new tag. // - // Edit a tag: Key is the name of the tag whose Value element you want to - // remove. + // * Edit a tag: Key is the name of the tag whose Value element you want + // to remove. // - // Delete a key: Key is the name of the tag you want to remove. + // * Delete a key: Key is the name of the tag you want to remove. // - // Give a name to a health check: Edit the default Name tag. In the Amazon - // Route 53 console, the list of your health checks includes a Name column that - // lets you see the name that you've given to each health check. + // * Give a name to a health check: Edit the default Name tag. In the Amazon + // Route 53 console, the list of your health checks includes a Name column + // that lets you see the name that you've given to each health check. Key *string `type:"string"` // The value of Value depends on the operation that you want to perform: // - // Add a tag to a health check or hosted zone: Value is the value that you - // want to give the new tag. + // * Add a tag to a health check or hosted zone: Value is the value that + // you want to give the new tag. // - // Edit a tag: Value is the new value that you want to assign the tag. + // * Edit a tag: Value is the new value that you want to assign the tag. Value *string `type:"string"` } @@ -9409,35 +11324,46 @@ func (s Tag) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Gets the value that Amazon Route 53 returns in response to a DNS request // for a specified record name and type. You can optionally specify the IP address // of a DNS resolver, an EDNS0 client subnet IP address, and a subnet mask. // -// Parameters +// Parameters // -// hostedzoneid The ID of the hosted zone that you want Amazon Route 53 to -// simulate a query for. +// hostedzoneidThe ID of the hosted zone that you want Amazon Route 53 to simulate +// a query for. // -// recordname The name of the resource record set that you want Amazon Route +// recordnameThe name of the resource record set that you want Amazon Route // 53 to simulate a query for. // -// recordtype The type of the resource record set. +// recordtypeThe type of the resource record set. // -// resolverip (optional) If you want to simulate a request from a specific -// DNS resolver, specify the IP address for that resolver. If you omit this -// value, TestDNSAnswer uses the IP address of a DNS resolver in the AWS US -// East region. +// resolverip (optional)If you want to simulate a request from a specific DNS +// resolver, specify the IP address for that resolver. If you omit this value, +// TestDNSAnswer uses the IP address of a DNS resolver in the AWS US East region. // -// edns0clientsubnetip (optional) If the resolver that you specified for -// resolverip supports EDNS0, specify the IP address of a client in the applicable -// location. +// edns0clientsubnetip (optional)If the resolver that you specified for resolverip +// supports EDNS0, specify the IP address of a client in the applicable location. // -// edns0clientsubnetmask (optional) If you specify an IP address for edns0clientsubnetip, +// edns0clientsubnetmask (optional)If you specify an IP address for edns0clientsubnetip, // you can optionally specify the number of bits of the IP address that you // want the checking tool to include in the DNS query. For example, if you specify // 192.0.2.44 for edns0clientsubnetip and 24 for edns0clientsubnetmask, the // checking tool will simulate a request from 192.0.2.0/24. The default value // is 24 bits. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/TestDNSAnswerRequest type TestDNSAnswerInput struct { _ struct{} `type:"structure"` @@ -9504,7 +11430,44 @@ func (s *TestDNSAnswerInput) Validate() error { return nil } +// SetEDNS0ClientSubnetIP sets the EDNS0ClientSubnetIP field's value. +func (s *TestDNSAnswerInput) SetEDNS0ClientSubnetIP(v string) *TestDNSAnswerInput { + s.EDNS0ClientSubnetIP = &v + return s +} + +// SetEDNS0ClientSubnetMask sets the EDNS0ClientSubnetMask field's value. +func (s *TestDNSAnswerInput) SetEDNS0ClientSubnetMask(v string) *TestDNSAnswerInput { + s.EDNS0ClientSubnetMask = &v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *TestDNSAnswerInput) SetHostedZoneId(v string) *TestDNSAnswerInput { + s.HostedZoneId = &v + return s +} + +// SetRecordName sets the RecordName field's value. +func (s *TestDNSAnswerInput) SetRecordName(v string) *TestDNSAnswerInput { + s.RecordName = &v + return s +} + +// SetRecordType sets the RecordType field's value. +func (s *TestDNSAnswerInput) SetRecordType(v string) *TestDNSAnswerInput { + s.RecordType = &v + return s +} + +// SetResolverIP sets the ResolverIP field's value. +func (s *TestDNSAnswerInput) SetResolverIP(v string) *TestDNSAnswerInput { + s.ResolverIP = &v + return s +} + // A complex type that contains the response to a TestDNSAnswer request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/TestDNSAnswerResponse type TestDNSAnswerOutput struct { _ struct{} `type:"structure"` @@ -9555,7 +11518,44 @@ func (s TestDNSAnswerOutput) GoString() string { return s.String() } +// SetNameserver sets the Nameserver field's value. +func (s *TestDNSAnswerOutput) SetNameserver(v string) *TestDNSAnswerOutput { + s.Nameserver = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *TestDNSAnswerOutput) SetProtocol(v string) *TestDNSAnswerOutput { + s.Protocol = &v + return s +} + +// SetRecordData sets the RecordData field's value. +func (s *TestDNSAnswerOutput) SetRecordData(v []*string) *TestDNSAnswerOutput { + s.RecordData = v + return s +} + +// SetRecordName sets the RecordName field's value. +func (s *TestDNSAnswerOutput) SetRecordName(v string) *TestDNSAnswerOutput { + s.RecordName = &v + return s +} + +// SetRecordType sets the RecordType field's value. +func (s *TestDNSAnswerOutput) SetRecordType(v string) *TestDNSAnswerOutput { + s.RecordType = &v + return s +} + +// SetResponseCode sets the ResponseCode field's value. +func (s *TestDNSAnswerOutput) SetResponseCode(v string) *TestDNSAnswerOutput { + s.ResponseCode = &v + return s +} + // A complex type that contains settings for a traffic policy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/TrafficPolicy type TrafficPolicy struct { _ struct{} `type:"structure"` @@ -9564,7 +11564,7 @@ type TrafficPolicy struct { // The definition of a traffic policy in JSON format. You specify the JSON document // to use for a new traffic policy in the CreateTrafficPolicy request. For more - // information about the JSON format, see Traffic Policy Document Format (http://docs.aws.amazon.com/Route53/latest/api-reference/api-policies-traffic-policy-document-format.html). + // information about the JSON format, see Traffic Policy Document Format (http://docs.aws.amazon.com/Route53/latest/APIReference/api-policies-traffic-policy-document-format.html). // // Document is a required field Document *string `type:"string" required:"true"` @@ -9573,7 +11573,7 @@ type TrafficPolicy struct { // it. // // Id is a required field - Id *string `type:"string" required:"true"` + Id *string `min:"1" type:"string" required:"true"` // The name that you specified when you created the traffic policy. // @@ -9603,7 +11603,44 @@ func (s TrafficPolicy) GoString() string { return s.String() } +// SetComment sets the Comment field's value. +func (s *TrafficPolicy) SetComment(v string) *TrafficPolicy { + s.Comment = &v + return s +} + +// SetDocument sets the Document field's value. +func (s *TrafficPolicy) SetDocument(v string) *TrafficPolicy { + s.Document = &v + return s +} + +// SetId sets the Id field's value. +func (s *TrafficPolicy) SetId(v string) *TrafficPolicy { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *TrafficPolicy) SetName(v string) *TrafficPolicy { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *TrafficPolicy) SetType(v string) *TrafficPolicy { + s.Type = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *TrafficPolicy) SetVersion(v int64) *TrafficPolicy { + s.Version = &v + return s +} + // A complex type that contains settings for the new traffic policy instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/TrafficPolicyInstance type TrafficPolicyInstance struct { _ struct{} `type:"structure"` @@ -9616,7 +11653,7 @@ type TrafficPolicyInstance struct { // The ID that Amazon Route 53 assigned to the new traffic policy instance. // // Id is a required field - Id *string `type:"string" required:"true"` + Id *string `min:"1" type:"string" required:"true"` // If State is Failed, an explanation of the reason for the failure. If State // is another value, Message is empty. @@ -9633,13 +11670,13 @@ type TrafficPolicyInstance struct { // The value of State is one of the following values: // - // Applied Amazon Route 53 has finished creating resource record sets, and - // changes have propagated to all Amazon Route 53 edge locations. + // AppliedAmazon Route 53 has finished creating resource record sets, and changes + // have propagated to all Amazon Route 53 edge locations. // - // Creating Amazon Route 53 is creating the resource record sets. Use GetTrafficPolicyInstance + // CreatingAmazon Route 53 is creating the resource record sets. Use GetTrafficPolicyInstance // to confirm that the CreateTrafficPolicyInstance request completed successfully. // - // Failed Amazon Route 53 wasn't able to create or update the resource record + // FailedAmazon Route 53 wasn't able to create or update the resource record // sets. When the value of State is Failed, see Message for an explanation of // what caused the request to fail. // @@ -9656,7 +11693,7 @@ type TrafficPolicyInstance struct { // record sets in the specified hosted zone. // // TrafficPolicyId is a required field - TrafficPolicyId *string `type:"string" required:"true"` + TrafficPolicyId *string `min:"1" type:"string" required:"true"` // The DNS type that Amazon Route 53 assigned to all of the resource record // sets that it created for this traffic policy instance. @@ -9681,8 +11718,63 @@ func (s TrafficPolicyInstance) GoString() string { return s.String() } +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *TrafficPolicyInstance) SetHostedZoneId(v string) *TrafficPolicyInstance { + s.HostedZoneId = &v + return s +} + +// SetId sets the Id field's value. +func (s *TrafficPolicyInstance) SetId(v string) *TrafficPolicyInstance { + s.Id = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *TrafficPolicyInstance) SetMessage(v string) *TrafficPolicyInstance { + s.Message = &v + return s +} + +// SetName sets the Name field's value. +func (s *TrafficPolicyInstance) SetName(v string) *TrafficPolicyInstance { + s.Name = &v + return s +} + +// SetState sets the State field's value. +func (s *TrafficPolicyInstance) SetState(v string) *TrafficPolicyInstance { + s.State = &v + return s +} + +// SetTTL sets the TTL field's value. +func (s *TrafficPolicyInstance) SetTTL(v int64) *TrafficPolicyInstance { + s.TTL = &v + return s +} + +// SetTrafficPolicyId sets the TrafficPolicyId field's value. +func (s *TrafficPolicyInstance) SetTrafficPolicyId(v string) *TrafficPolicyInstance { + s.TrafficPolicyId = &v + return s +} + +// SetTrafficPolicyType sets the TrafficPolicyType field's value. +func (s *TrafficPolicyInstance) SetTrafficPolicyType(v string) *TrafficPolicyInstance { + s.TrafficPolicyType = &v + return s +} + +// SetTrafficPolicyVersion sets the TrafficPolicyVersion field's value. +func (s *TrafficPolicyInstance) SetTrafficPolicyVersion(v int64) *TrafficPolicyInstance { + s.TrafficPolicyVersion = &v + return s +} + // A complex type that contains information about the latest version of one // traffic policy that is associated with the current AWS account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/TrafficPolicySummary type TrafficPolicySummary struct { _ struct{} `type:"structure"` @@ -9690,7 +11782,7 @@ type TrafficPolicySummary struct { // it. // // Id is a required field - Id *string `type:"string" required:"true"` + Id *string `min:"1" type:"string" required:"true"` // The version number of the latest version of the traffic policy. // @@ -9724,7 +11816,38 @@ func (s TrafficPolicySummary) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *TrafficPolicySummary) SetId(v string) *TrafficPolicySummary { + s.Id = &v + return s +} + +// SetLatestVersion sets the LatestVersion field's value. +func (s *TrafficPolicySummary) SetLatestVersion(v int64) *TrafficPolicySummary { + s.LatestVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *TrafficPolicySummary) SetName(v string) *TrafficPolicySummary { + s.Name = &v + return s +} + +// SetTrafficPolicyCount sets the TrafficPolicyCount field's value. +func (s *TrafficPolicySummary) SetTrafficPolicyCount(v int64) *TrafficPolicySummary { + s.TrafficPolicyCount = &v + return s +} + +// SetType sets the Type field's value. +func (s *TrafficPolicySummary) SetType(v string) *TrafficPolicySummary { + s.Type = &v + return s +} + // A complex type that contains the health check request information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/UpdateHealthCheckRequest type UpdateHealthCheckInput struct { _ struct{} `locationName:"UpdateHealthCheckRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` @@ -9742,11 +11865,11 @@ type UpdateHealthCheckInput struct { // allows the endpoint to respond to HTTPS health check requests with the applicable // SSL/TLS certificate. // - // Some endpoints require that HTTPS requests include the host name in the - // client_hello message. If you don't enable SNI, the status of the health check - // will be SSL alert handshake_failure. A health check can also have that status - // for other reasons. If SNI is enabled and you're still getting the error, - // check the SSL/TLS configuration on your endpoint and confirm that your certificate + // Some endpoints require that HTTPS requests include the host name in the client_hello + // message. If you don't enable SNI, the status of the health check will be + // SSL alert handshake_failure. A health check can also have that status for + // other reasons. If SNI is enabled and you're still getting the error, check + // the SSL/TLS configuration on your endpoint and confirm that your certificate // is valid. // // The SSL/TLS certificate on your endpoint includes a domain name in the Common @@ -9764,58 +11887,69 @@ type UpdateHealthCheckInput struct { // to healthy or vice versa. For more information, see How Amazon Route 53 Determines // Whether an Endpoint Is Healthy (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html) // in the Amazon Route 53 Developer Guide. + // + // If you don't specify a value for FailureThreshold, the default value is three + // health checks. FailureThreshold *int64 `min:"1" type:"integer"` // Amazon Route 53 behavior depends on whether you specify a value for IPAddress. // - // If a health check already has a value for IPAddress, you can change the - // value. However, you can't update an existing health check to add or remove - // the value of IPAddress. + // If a health check already has a value for IPAddress, you can change the value. + // However, you can't update an existing health check to add or remove the value + // of IPAddress. + // + // If you specify a value forIPAddress: // - // If you specify IPAddress: + // Amazon Route 53 sends health check requests to the specified IPv4 or IPv6 + // address and passes the value of FullyQualifiedDomainName in the Host header + // for all health checks except TCP health checks. This is typically the fully + // qualified DNS name of the endpoint on which you want Amazon Route 53 to perform + // health checks. // - // The value that you want Amazon Route 53 to pass in the Host header in all - // health checks except TCP health checks. This is typically the fully qualified - // DNS name of the endpoint on which you want Amazon Route 53 to perform health - // checks. When Amazon Route 53 checks the health of an endpoint, here is how - // it constructs the Host header: + // When Amazon Route 53 checks the health of an endpoint, here is how it constructs + // the Host header: // - // If you specify a value of 80 for Port and HTTP or HTTP_STR_MATCH for Type, - // Amazon Route 53 passes the value of FullyQualifiedDomainName to the endpoint - // in the Host header. + // * If you specify a value of 80 for Port and HTTP or HTTP_STR_MATCH for + // Type, Amazon Route 53 passes the value of FullyQualifiedDomainName to + // the endpoint in the Host header. // - // If you specify a value of 443 for Port and HTTPS or HTTPS_STR_MATCH for - // Type, Amazon Route 53 passes the value of FullyQualifiedDomainName to the - // endpoint in the Host header. + // * If you specify a value of 443 for Port and HTTPS or HTTPS_STR_MATCH + // for Type, Amazon Route 53 passes the value of FullyQualifiedDomainName + // to the endpoint in the Host header. // - // If you specify another value for Port and any value except TCP for Type, - // Amazon Route 53 passes FullyQualifiedDomainName:Port to the endpoint in - // the Host header. + // * If you specify another value for Port and any value except TCP for Type, + // Amazon Route 53 passes FullyQualifiedDomainName:Port to the endpoint in + // the Host header. // - // If you don't specify a value for FullyQualifiedDomainName, Amazon Route - // 53 substitutes the value of IPAddress in the Host header in each of the above + // If you don't specify a value for FullyQualifiedDomainName, Amazon Route 53 + // substitutes the value of IPAddress in the Host header in each of the above // cases. // - // If you don't specify IPAddress: + // If you don't specify a value forIPAddress: // - // If you don't specify a value for IPAddress, Amazon Route 53 sends a DNS - // request to the domain that you specify in FullyQualifiedDomainName at the - // interval you specify in RequestInterval. Using an IP address that DNS returns, - // Amazon Route 53 then checks the health of the endpoint. + // If you don't specify a value for IPAddress, Amazon Route 53 sends a DNS request + // to the domain that you specify in FullyQualifiedDomainName at the interval + // you specify in RequestInterval. Using an IPv4 address that is returned by + // DNS, Amazon Route 53 then checks the health of the endpoint. + // + // If you don't specify a value for IPAddress, Amazon Route 53 uses only IPv4 + // to send health checks to the endpoint. If there's no resource record set + // with a type of A for the name that you specify for FullyQualifiedDomainName, + // the health check fails with a "DNS resolution failed" error. // // If you want to check the health of weighted, latency, or failover resource // record sets and you choose to specify the endpoint only by FullyQualifiedDomainName, // we recommend that you create a separate health check for each endpoint. For // example, create a health check for each HTTP server that is serving content // for www.example.com. For the value of FullyQualifiedDomainName, specify the - // domain name of the server (such as us-east-1-www.example.com), not the name + // domain name of the server (such as us-east-2-www.example.com), not the name // of the resource record sets (www.example.com). // - // In this configuration, if the value of FullyQualifiedDomainName matches - // the name of the resource record sets and you then associate the health check + // In this configuration, if the value of FullyQualifiedDomainName matches the + // name of the resource record sets and you then associate the health check // with those resource record sets, health check results will be unpredictable. // - // In addition, if the value of Type is HTTP, HTTPS, HTTP_STR_MATCH, or HTTPS_STR_MATCH, + // In addition, if the value of Type is HTTP, HTTPS, HTTP_STR_MATCH, or HTTPS_STR_MATCH, // Amazon Route 53 passes the value of FullyQualifiedDomainName in the Host // header, as it does when you specify a value for IPAddress. If the value of // Type is TCP, Amazon Route 53 doesn't pass a Host header. @@ -9831,19 +11965,19 @@ type UpdateHealthCheckInput struct { // A sequential counter that Amazon Route 53 sets to 1 when you create a health // check and increments by 1 each time you update settings for the health check. // - // We recommend that you use GetHealthCheck or ListHealthChecks to get the - // current value of HealthCheckVersion for the health check that you want to - // update, and that you include that value in your UpdateHealthCheck request. - // This prevents Amazon Route 53 from overwriting an intervening update: + // We recommend that you use GetHealthCheck or ListHealthChecks to get the current + // value of HealthCheckVersion for the health check that you want to update, + // and that you include that value in your UpdateHealthCheck request. This prevents + // Amazon Route 53 from overwriting an intervening update: // - // f the value in the UpdateHealthCheck request matches the value of HealthCheckVersion - // in the health check, Amazon Route 53 updates the health check with the new - // settings. + // * f the value in the UpdateHealthCheck request matches the value of HealthCheckVersion + // in the health check, Amazon Route 53 updates the health check with the + // new settings. // - // If the value of HealthCheckVersion in the health check is greater, the - // health check was changed after you got the version number. Amazon Route 53 - // does not update the health check, and it returns a HealthCheckVersionMismatch - // error. + // * If the value of HealthCheckVersion in the health check is greater, the + // health check was changed after you got the version number. Amazon Route + // 53 does not update the health check, and it returns a HealthCheckVersionMismatch + // error. HealthCheckVersion *int64 `min:"1" type:"long"` // The number of child health checks that are associated with a CALCULATED health @@ -9854,45 +11988,65 @@ type UpdateHealthCheckInput struct { // // Note the following: // - // If you specify a number greater than the number of child health checks, - // Amazon Route 53 always considers this health check to be unhealthy. + // * If you specify a number greater than the number of child health checks, + // Amazon Route 53 always considers this health check to be unhealthy. // - // If you specify 0, Amazon Route 53 always considers this health check to - // be healthy. + // * If you specify 0, Amazon Route 53 always considers this health check + // to be healthy. HealthThreshold *int64 `type:"integer"` - // The IPv4 IP address of the endpoint on which you want Amazon Route 53 to - // perform health checks. If you don't specify a value for IPAddress, Amazon - // Route 53 sends a DNS request to resolve the domain name that you specify - // in FullyQualifiedDomainName at the interval you specify in RequestInterval. - // Using an IP address that DNS returns, Amazon Route 53 then checks the health - // of the endpoint. + // The IPv4 or IPv6 IP address for the endpoint that you want Amazon Route 53 + // to perform health checks on. If you don't specify a value for IPAddress, + // Amazon Route 53 sends a DNS request to resolve the domain name that you specify + // in FullyQualifiedDomainName at the interval that you specify in RequestInterval. + // Using an IP address that is returned by DNS, Amazon Route 53 then checks + // the health of the endpoint. // - // f the endpoint is an Amazon EC2 instance, we recommend that you create an - // Elastic IP address, associate it with your Amazon EC2 instance, and specify - // the Elastic IP address for IPAddress. This ensures that the IP address of - // your instance never changes. For more information, see Elastic IP Addresses - // (EIP) (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) + // Use one of the following formats for the value of IPAddress: + // + // * IPv4 address: four values between 0 and 255, separated by periods (.), + // for example, 192.0.2.44. + // + // * IPv6 address: eight groups of four hexadecimal values, separated by + // colons (:), for example, 2001:0db8:85a3:0000:0000:abcd:0001:2345. You + // can also shorten IPv6 addresses as described in RFC 5952, for example, + // 2001:db8:85a3::abcd:1:2345. + // + // If the endpoint is an EC2 instance, we recommend that you create an Elastic + // IP address, associate it with your EC2 instance, and specify the Elastic + // IP address for IPAddress. This ensures that the IP address of your instance + // never changes. For more information, see Elastic IP Addresses (EIP) (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) // in the Amazon EC2 User Guide for Linux Instances. // - // If a health check already has a value for IPAddress, you can change the - // value. However, you can't update an existing health check to add or remove - // the value of IPAddress. + // If a health check already has a value for IPAddress, you can change the value. + // However, you can't update an existing health check to add or remove the value + // of IPAddress. + // + // For more information, see UpdateHealthCheckRequest$FullyQualifiedDomainName. + // + // Constraints: Amazon Route 53 can't check the health of endpoints for which + // the IP address is in local, private, non-routable, or multicast ranges. For + // more information about IP addresses for which you can't create health checks, + // see the following documents: + // + // * RFC 5735, Special Use IPv4 Addresses (https://tools.ietf.org/html/rfc5735) + // + // * RFC 6598, IANA-Reserved IPv4 Prefix for Shared Address Space (https://tools.ietf.org/html/rfc6598) // - // For more information, see UpdateHealthCheckRequest$FullyQualifiedDomainName. + // * RFC 5156, Special-Use IPv6 Addresses (https://tools.ietf.org/html/rfc5156) IPAddress *string `type:"string"` // When CloudWatch has insufficient data about the metric to determine the alarm // state, the status that you want Amazon Route 53 to assign to the health check: // - // Healthy: Amazon Route 53 considers the health check to be healthy. + // * Healthy: Amazon Route 53 considers the health check to be healthy. // - // Unhealthy: Amazon Route 53 considers the health check to be unhealthy. + // * Unhealthy: Amazon Route 53 considers the health check to be unhealthy. // - // LastKnownStatus: Amazon Route 53 uses the status of the health check - // from the last time CloudWatch had sufficient data to determine the alarm - // state. For new health checks that have no last known status, the default - // status for the health check is healthy. + // * LastKnownStatus: Amazon Route 53 uses the status of the health check + // from the last time CloudWatch had sufficient data to determine the alarm + // state. For new health checks that have no last known status, the default + // status for the health check is healthy. InsufficientDataHealthStatus *string `type:"string" enum:"InsufficientDataHealthStatus"` // Specify whether you want Amazon Route 53 to invert the status of a health @@ -9964,6 +12118,97 @@ func (s *UpdateHealthCheckInput) Validate() error { return nil } +// SetAlarmIdentifier sets the AlarmIdentifier field's value. +func (s *UpdateHealthCheckInput) SetAlarmIdentifier(v *AlarmIdentifier) *UpdateHealthCheckInput { + s.AlarmIdentifier = v + return s +} + +// SetChildHealthChecks sets the ChildHealthChecks field's value. +func (s *UpdateHealthCheckInput) SetChildHealthChecks(v []*string) *UpdateHealthCheckInput { + s.ChildHealthChecks = v + return s +} + +// SetEnableSNI sets the EnableSNI field's value. +func (s *UpdateHealthCheckInput) SetEnableSNI(v bool) *UpdateHealthCheckInput { + s.EnableSNI = &v + return s +} + +// SetFailureThreshold sets the FailureThreshold field's value. +func (s *UpdateHealthCheckInput) SetFailureThreshold(v int64) *UpdateHealthCheckInput { + s.FailureThreshold = &v + return s +} + +// SetFullyQualifiedDomainName sets the FullyQualifiedDomainName field's value. +func (s *UpdateHealthCheckInput) SetFullyQualifiedDomainName(v string) *UpdateHealthCheckInput { + s.FullyQualifiedDomainName = &v + return s +} + +// SetHealthCheckId sets the HealthCheckId field's value. +func (s *UpdateHealthCheckInput) SetHealthCheckId(v string) *UpdateHealthCheckInput { + s.HealthCheckId = &v + return s +} + +// SetHealthCheckVersion sets the HealthCheckVersion field's value. +func (s *UpdateHealthCheckInput) SetHealthCheckVersion(v int64) *UpdateHealthCheckInput { + s.HealthCheckVersion = &v + return s +} + +// SetHealthThreshold sets the HealthThreshold field's value. +func (s *UpdateHealthCheckInput) SetHealthThreshold(v int64) *UpdateHealthCheckInput { + s.HealthThreshold = &v + return s +} + +// SetIPAddress sets the IPAddress field's value. +func (s *UpdateHealthCheckInput) SetIPAddress(v string) *UpdateHealthCheckInput { + s.IPAddress = &v + return s +} + +// SetInsufficientDataHealthStatus sets the InsufficientDataHealthStatus field's value. +func (s *UpdateHealthCheckInput) SetInsufficientDataHealthStatus(v string) *UpdateHealthCheckInput { + s.InsufficientDataHealthStatus = &v + return s +} + +// SetInverted sets the Inverted field's value. +func (s *UpdateHealthCheckInput) SetInverted(v bool) *UpdateHealthCheckInput { + s.Inverted = &v + return s +} + +// SetPort sets the Port field's value. +func (s *UpdateHealthCheckInput) SetPort(v int64) *UpdateHealthCheckInput { + s.Port = &v + return s +} + +// SetRegions sets the Regions field's value. +func (s *UpdateHealthCheckInput) SetRegions(v []*string) *UpdateHealthCheckInput { + s.Regions = v + return s +} + +// SetResourcePath sets the ResourcePath field's value. +func (s *UpdateHealthCheckInput) SetResourcePath(v string) *UpdateHealthCheckInput { + s.ResourcePath = &v + return s +} + +// SetSearchString sets the SearchString field's value. +func (s *UpdateHealthCheckInput) SetSearchString(v string) *UpdateHealthCheckInput { + s.SearchString = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/UpdateHealthCheckResponse type UpdateHealthCheckOutput struct { _ struct{} `type:"structure"` @@ -9984,7 +12229,14 @@ func (s UpdateHealthCheckOutput) GoString() string { return s.String() } +// SetHealthCheck sets the HealthCheck field's value. +func (s *UpdateHealthCheckOutput) SetHealthCheck(v *HealthCheck) *UpdateHealthCheckOutput { + s.HealthCheck = v + return s +} + // A complex type that contains the hosted zone request information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/UpdateHostedZoneCommentRequest type UpdateHostedZoneCommentInput struct { _ struct{} `locationName:"UpdateHostedZoneCommentRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` @@ -10021,7 +12273,20 @@ func (s *UpdateHostedZoneCommentInput) Validate() error { return nil } +// SetComment sets the Comment field's value. +func (s *UpdateHostedZoneCommentInput) SetComment(v string) *UpdateHostedZoneCommentInput { + s.Comment = &v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateHostedZoneCommentInput) SetId(v string) *UpdateHostedZoneCommentInput { + s.Id = &v + return s +} + // A complex type that contains the response to the UpdateHostedZoneCommentRequest. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/UpdateHostedZoneCommentResponse type UpdateHostedZoneCommentOutput struct { _ struct{} `type:"structure"` @@ -10041,8 +12306,15 @@ func (s UpdateHostedZoneCommentOutput) GoString() string { return s.String() } +// SetHostedZone sets the HostedZone field's value. +func (s *UpdateHostedZoneCommentOutput) SetHostedZone(v *HostedZone) *UpdateHostedZoneCommentOutput { + s.HostedZone = v + return s +} + // A complex type that contains information about the traffic policy for which // you want to update the comment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/UpdateTrafficPolicyCommentRequest type UpdateTrafficPolicyCommentInput struct { _ struct{} `locationName:"UpdateTrafficPolicyCommentRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` @@ -10054,7 +12326,7 @@ type UpdateTrafficPolicyCommentInput struct { // The value of Id for the traffic policy for which you want to update the comment. // // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + Id *string `location:"uri" locationName:"Id" min:"1" type:"string" required:"true"` // The value of Version for the traffic policy for which you want to update // the comment. @@ -10082,6 +12354,9 @@ func (s *UpdateTrafficPolicyCommentInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if s.Version == nil { invalidParams.Add(request.NewErrParamRequired("Version")) } @@ -10095,7 +12370,26 @@ func (s *UpdateTrafficPolicyCommentInput) Validate() error { return nil } +// SetComment sets the Comment field's value. +func (s *UpdateTrafficPolicyCommentInput) SetComment(v string) *UpdateTrafficPolicyCommentInput { + s.Comment = &v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateTrafficPolicyCommentInput) SetId(v string) *UpdateTrafficPolicyCommentInput { + s.Id = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *UpdateTrafficPolicyCommentInput) SetVersion(v int64) *UpdateTrafficPolicyCommentInput { + s.Version = &v + return s +} + // A complex type that contains the response information for the traffic policy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/UpdateTrafficPolicyCommentResponse type UpdateTrafficPolicyCommentOutput struct { _ struct{} `type:"structure"` @@ -10115,15 +12409,22 @@ func (s UpdateTrafficPolicyCommentOutput) GoString() string { return s.String() } +// SetTrafficPolicy sets the TrafficPolicy field's value. +func (s *UpdateTrafficPolicyCommentOutput) SetTrafficPolicy(v *TrafficPolicy) *UpdateTrafficPolicyCommentOutput { + s.TrafficPolicy = v + return s +} + // A complex type that contains information about the resource record sets that // you want to update based on a specified traffic policy instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/UpdateTrafficPolicyInstanceRequest type UpdateTrafficPolicyInstanceInput struct { _ struct{} `locationName:"UpdateTrafficPolicyInstanceRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` // The ID of the traffic policy instance that you want to update. // // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + Id *string `location:"uri" locationName:"Id" min:"1" type:"string" required:"true"` // The TTL that you want Amazon Route 53 to assign to all of the updated resource // record sets. @@ -10135,7 +12436,7 @@ type UpdateTrafficPolicyInstanceInput struct { // resource record sets for the specified traffic policy instance. // // TrafficPolicyId is a required field - TrafficPolicyId *string `type:"string" required:"true"` + TrafficPolicyId *string `min:"1" type:"string" required:"true"` // The version of the traffic policy that you want Amazon Route 53 to use to // update resource record sets for the specified traffic policy instance. @@ -10160,12 +12461,18 @@ func (s *UpdateTrafficPolicyInstanceInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if s.TTL == nil { invalidParams.Add(request.NewErrParamRequired("TTL")) } if s.TrafficPolicyId == nil { invalidParams.Add(request.NewErrParamRequired("TrafficPolicyId")) } + if s.TrafficPolicyId != nil && len(*s.TrafficPolicyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TrafficPolicyId", 1)) + } if s.TrafficPolicyVersion == nil { invalidParams.Add(request.NewErrParamRequired("TrafficPolicyVersion")) } @@ -10179,8 +12486,33 @@ func (s *UpdateTrafficPolicyInstanceInput) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *UpdateTrafficPolicyInstanceInput) SetId(v string) *UpdateTrafficPolicyInstanceInput { + s.Id = &v + return s +} + +// SetTTL sets the TTL field's value. +func (s *UpdateTrafficPolicyInstanceInput) SetTTL(v int64) *UpdateTrafficPolicyInstanceInput { + s.TTL = &v + return s +} + +// SetTrafficPolicyId sets the TrafficPolicyId field's value. +func (s *UpdateTrafficPolicyInstanceInput) SetTrafficPolicyId(v string) *UpdateTrafficPolicyInstanceInput { + s.TrafficPolicyId = &v + return s +} + +// SetTrafficPolicyVersion sets the TrafficPolicyVersion field's value. +func (s *UpdateTrafficPolicyInstanceInput) SetTrafficPolicyVersion(v int64) *UpdateTrafficPolicyInstanceInput { + s.TrafficPolicyVersion = &v + return s +} + // A complex type that contains information about the resource record sets that // Amazon Route 53 created based on a specified traffic policy. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/UpdateTrafficPolicyInstanceResponse type UpdateTrafficPolicyInstanceOutput struct { _ struct{} `type:"structure"` @@ -10200,12 +12532,19 @@ func (s UpdateTrafficPolicyInstanceOutput) GoString() string { return s.String() } -// A complex type that contains information about the Amazon VPC that you're -// associating with the specified hosted zone. +// SetTrafficPolicyInstance sets the TrafficPolicyInstance field's value. +func (s *UpdateTrafficPolicyInstanceOutput) SetTrafficPolicyInstance(v *TrafficPolicyInstance) *UpdateTrafficPolicyInstanceOutput { + s.TrafficPolicyInstance = v + return s +} + +// A complex type that contains information about an Amazon VPC that is associated +// with a private hosted zone. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/VPC type VPC struct { _ struct{} `type:"structure"` - // A VPC ID + // The ID of an Amazon VPC. VPCId *string `type:"string"` // The region in which you created the VPC that you want to associate with the @@ -10236,6 +12575,18 @@ func (s *VPC) Validate() error { return nil } +// SetVPCId sets the VPCId field's value. +func (s *VPC) SetVPCId(v string) *VPC { + s.VPCId = &v + return s +} + +// SetVPCRegion sets the VPCRegion field's value. +func (s *VPC) SetVPCRegion(v string) *VPC { + s.VPCRegion = &v + return s +} + const ( // ChangeActionCreate is a ChangeAction enum value ChangeActionCreate = "CREATE" @@ -10259,18 +12610,27 @@ const ( // CloudWatchRegionUsEast1 is a CloudWatchRegion enum value CloudWatchRegionUsEast1 = "us-east-1" + // CloudWatchRegionUsEast2 is a CloudWatchRegion enum value + CloudWatchRegionUsEast2 = "us-east-2" + // CloudWatchRegionUsWest1 is a CloudWatchRegion enum value CloudWatchRegionUsWest1 = "us-west-1" // CloudWatchRegionUsWest2 is a CloudWatchRegion enum value CloudWatchRegionUsWest2 = "us-west-2" + // CloudWatchRegionCaCentral1 is a CloudWatchRegion enum value + CloudWatchRegionCaCentral1 = "ca-central-1" + // CloudWatchRegionEuCentral1 is a CloudWatchRegion enum value CloudWatchRegionEuCentral1 = "eu-central-1" // CloudWatchRegionEuWest1 is a CloudWatchRegion enum value CloudWatchRegionEuWest1 = "eu-west-1" + // CloudWatchRegionEuWest2 is a CloudWatchRegion enum value + CloudWatchRegionEuWest2 = "eu-west-2" + // CloudWatchRegionApSouth1 is a CloudWatchRegion enum value CloudWatchRegionApSouth1 = "ap-south-1" @@ -10304,8 +12664,6 @@ const ( ComparisonOperatorLessThanOrEqualToThreshold = "LessThanOrEqualToThreshold" ) -// An Amazon EC2 region that you want Amazon Route 53 to use to perform health -// checks. const ( // HealthCheckRegionUsEast1 is a HealthCheckRegion enum value HealthCheckRegionUsEast1 = "us-east-1" @@ -10422,9 +12780,15 @@ const ( // ResourceRecordSetRegionUsWest2 is a ResourceRecordSetRegion enum value ResourceRecordSetRegionUsWest2 = "us-west-2" + // ResourceRecordSetRegionCaCentral1 is a ResourceRecordSetRegion enum value + ResourceRecordSetRegionCaCentral1 = "ca-central-1" + // ResourceRecordSetRegionEuWest1 is a ResourceRecordSetRegion enum value ResourceRecordSetRegionEuWest1 = "eu-west-1" + // ResourceRecordSetRegionEuWest2 is a ResourceRecordSetRegion enum value + ResourceRecordSetRegionEuWest2 = "eu-west-2" + // ResourceRecordSetRegionEuCentral1 is a ResourceRecordSetRegion enum value ResourceRecordSetRegionEuCentral1 = "eu-central-1" @@ -10491,6 +12855,9 @@ const ( // VPCRegionEuWest1 is a VPCRegion enum value VPCRegionEuWest1 = "eu-west-1" + // VPCRegionEuWest2 is a VPCRegion enum value + VPCRegionEuWest2 = "eu-west-2" + // VPCRegionEuCentral1 is a VPCRegion enum value VPCRegionEuCentral1 = "eu-central-1" @@ -10512,6 +12879,9 @@ const ( // VPCRegionSaEast1 is a VPCRegion enum value VPCRegionSaEast1 = "sa-east-1" + // VPCRegionCaCentral1 is a VPCRegion enum value + VPCRegionCaCentral1 = "ca-central-1" + // VPCRegionCnNorth1 is a VPCRegion enum value VPCRegionCnNorth1 = "cn-north-1" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/customizations.go b/vendor/github.com/aws/aws-sdk-go/service/route53/customizations.go index 91af196e2..efe2d6e7c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/customizations.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/customizations.go @@ -1,8 +1,10 @@ package route53 import ( + "net/url" "regexp" + "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/client" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol/restxml" @@ -25,6 +27,16 @@ func init() { var reSanitizeURL = regexp.MustCompile(`\/%2F\w+%2F`) func sanitizeURL(r *request.Request) { - r.HTTPRequest.URL.Opaque = - reSanitizeURL.ReplaceAllString(r.HTTPRequest.URL.Opaque, "/") + r.HTTPRequest.URL.RawPath = + reSanitizeURL.ReplaceAllString(r.HTTPRequest.URL.RawPath, "/") + + // Update Path so that it reflects the cleaned RawPath + updated, err := url.Parse(r.HTTPRequest.URL.RawPath) + if err != nil { + r.Error = awserr.New("SerializationError", "failed to clean Route53 URL", err) + return + } + + // Take the updated path so the requests's URL Path has parity with RawPath. + r.HTTPRequest.URL.Path = updated.Path } diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/customizations_test.go b/vendor/github.com/aws/aws-sdk-go/service/route53/customizations_test.go index 518790a24..2823b26d6 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/customizations_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/customizations_test.go @@ -4,19 +4,32 @@ import ( "testing" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting" "github.com/aws/aws-sdk-go/awstesting/unit" "github.com/aws/aws-sdk-go/service/route53" ) func TestBuildCorrectURI(t *testing.T) { + const expectPath = "/2013-04-01/hostedzone/ABCDEFG" + svc := route53.New(unit.Session) svc.Handlers.Validate.Clear() req, _ := svc.GetHostedZoneRequest(&route53.GetHostedZoneInput{ Id: aws.String("/hostedzone/ABCDEFG"), }) + req.HTTPRequest.URL.RawQuery = "abc=123" + req.Build() - awstesting.Match(t, `\/hostedzone\/ABCDEFG$`, req.HTTPRequest.URL.String()) + if a, e := req.HTTPRequest.URL.Path, expectPath; a != e { + t.Errorf("expect path %q, got %q", e, a) + } + + if a, e := req.HTTPRequest.URL.RawPath, expectPath; a != e { + t.Errorf("expect raw path %q, got %q", e, a) + } + + if a, e := req.HTTPRequest.URL.RawQuery, "abc=123"; a != e { + t.Errorf("expect query to be %q, got %q", e, a) + } } diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/errors.go b/vendor/github.com/aws/aws-sdk-go/service/route53/errors.go new file mode 100644 index 000000000..cbd875e70 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/errors.go @@ -0,0 +1,321 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package route53 + +const ( + + // ErrCodeConcurrentModification for service response error code + // "ConcurrentModification". + // + // Another user submitted a request to update the object at the same time that + // you did. Retry the request. + ErrCodeConcurrentModification = "ConcurrentModification" + + // ErrCodeConflictingDomainExists for service response error code + // "ConflictingDomainExists". + // + // You specified an Amazon VPC that you're already using for another hosted + // zone, and the domain that you specified for one of the hosted zones is a + // subdomain of the domain that you specified for the other hosted zone. For + // example, you can't use the same Amazon VPC for the hosted zones for example.com + // and test.example.com. + ErrCodeConflictingDomainExists = "ConflictingDomainExists" + + // ErrCodeConflictingTypes for service response error code + // "ConflictingTypes". + // + // You tried to update a traffic policy instance by using a traffic policy version + // that has a different DNS type than the current type for the instance. You + // specified the type in the JSON document in the CreateTrafficPolicy or CreateTrafficPolicyVersionrequest. + ErrCodeConflictingTypes = "ConflictingTypes" + + // ErrCodeDelegationSetAlreadyCreated for service response error code + // "DelegationSetAlreadyCreated". + // + // A delegation set with the same owner and caller reference combination has + // already been created. + ErrCodeDelegationSetAlreadyCreated = "DelegationSetAlreadyCreated" + + // ErrCodeDelegationSetAlreadyReusable for service response error code + // "DelegationSetAlreadyReusable". + // + // The specified delegation set has already been marked as reusable. + ErrCodeDelegationSetAlreadyReusable = "DelegationSetAlreadyReusable" + + // ErrCodeDelegationSetInUse for service response error code + // "DelegationSetInUse". + // + // The specified delegation contains associated hosted zones which must be deleted + // before the reusable delegation set can be deleted. + ErrCodeDelegationSetInUse = "DelegationSetInUse" + + // ErrCodeDelegationSetNotAvailable for service response error code + // "DelegationSetNotAvailable". + // + // You can create a hosted zone that has the same name as an existing hosted + // zone (example.com is common), but there is a limit to the number of hosted + // zones that have the same name. If you get this error, Amazon Route 53 has + // reached that limit. If you own the domain name and Amazon Route 53 generates + // this error, contact Customer Support. + ErrCodeDelegationSetNotAvailable = "DelegationSetNotAvailable" + + // ErrCodeDelegationSetNotReusable for service response error code + // "DelegationSetNotReusable". + // + // A reusable delegation set with the specified ID does not exist. + ErrCodeDelegationSetNotReusable = "DelegationSetNotReusable" + + // ErrCodeHealthCheckAlreadyExists for service response error code + // "HealthCheckAlreadyExists". + // + // The health check you're attempting to create already exists. Amazon Route + // 53 returns this error when a health check has already been created with the + // specified value for CallerReference. + ErrCodeHealthCheckAlreadyExists = "HealthCheckAlreadyExists" + + // ErrCodeHealthCheckInUse for service response error code + // "HealthCheckInUse". + // + // The health check ID for this health check is referenced in the HealthCheckId + // element in one of the resource record sets in one of the hosted zones that + // are owned by the current AWS account. + ErrCodeHealthCheckInUse = "HealthCheckInUse" + + // ErrCodeHealthCheckVersionMismatch for service response error code + // "HealthCheckVersionMismatch". + // + // The value of HealthCheckVersion in the request doesn't match the value of + // HealthCheckVersion in the health check. + ErrCodeHealthCheckVersionMismatch = "HealthCheckVersionMismatch" + + // ErrCodeHostedZoneAlreadyExists for service response error code + // "HostedZoneAlreadyExists". + // + // The hosted zone you're trying to create already exists. Amazon Route 53 returns + // this error when a hosted zone has already been created with the specified + // CallerReference. + ErrCodeHostedZoneAlreadyExists = "HostedZoneAlreadyExists" + + // ErrCodeHostedZoneNotEmpty for service response error code + // "HostedZoneNotEmpty". + // + // The hosted zone contains resource records that are not SOA or NS records. + ErrCodeHostedZoneNotEmpty = "HostedZoneNotEmpty" + + // ErrCodeHostedZoneNotFound for service response error code + // "HostedZoneNotFound". + // + // The specified HostedZone can't be found. + ErrCodeHostedZoneNotFound = "HostedZoneNotFound" + + // ErrCodeIncompatibleVersion for service response error code + // "IncompatibleVersion". + // + // The resource you're trying to access is unsupported on this Amazon Route + // 53 endpoint. + ErrCodeIncompatibleVersion = "IncompatibleVersion" + + // ErrCodeInvalidArgument for service response error code + // "InvalidArgument". + // + // Parameter name is invalid. + ErrCodeInvalidArgument = "InvalidArgument" + + // ErrCodeInvalidChangeBatch for service response error code + // "InvalidChangeBatch". + // + // This exception contains a list of messages that might contain one or more + // error messages. Each error message indicates one error in the change batch. + ErrCodeInvalidChangeBatch = "InvalidChangeBatch" + + // ErrCodeInvalidDomainName for service response error code + // "InvalidDomainName". + // + // The specified domain name is not valid. + ErrCodeInvalidDomainName = "InvalidDomainName" + + // ErrCodeInvalidInput for service response error code + // "InvalidInput". + // + // The input is not valid. + ErrCodeInvalidInput = "InvalidInput" + + // ErrCodeInvalidPaginationToken for service response error code + // "InvalidPaginationToken". + ErrCodeInvalidPaginationToken = "InvalidPaginationToken" + + // ErrCodeInvalidTrafficPolicyDocument for service response error code + // "InvalidTrafficPolicyDocument". + // + // The format of the traffic policy document that you specified in the Document + // element is invalid. + ErrCodeInvalidTrafficPolicyDocument = "InvalidTrafficPolicyDocument" + + // ErrCodeInvalidVPCId for service response error code + // "InvalidVPCId". + // + // The VPC ID that you specified either isn't a valid ID or the current account + // is not authorized to access this VPC. + ErrCodeInvalidVPCId = "InvalidVPCId" + + // ErrCodeLastVPCAssociation for service response error code + // "LastVPCAssociation". + // + // The VPC that you're trying to disassociate from the private hosted zone is + // the last VPC that is associated with the hosted zone. Amazon Route 53 doesn't + // support disassociating the last VPC from a hosted zone. + ErrCodeLastVPCAssociation = "LastVPCAssociation" + + // ErrCodeLimitsExceeded for service response error code + // "LimitsExceeded". + // + // The limits specified for a resource have been exceeded. + ErrCodeLimitsExceeded = "LimitsExceeded" + + // ErrCodeNoSuchChange for service response error code + // "NoSuchChange". + // + // A change with the specified change ID does not exist. + ErrCodeNoSuchChange = "NoSuchChange" + + // ErrCodeNoSuchDelegationSet for service response error code + // "NoSuchDelegationSet". + // + // A reusable delegation set with the specified ID does not exist. + ErrCodeNoSuchDelegationSet = "NoSuchDelegationSet" + + // ErrCodeNoSuchGeoLocation for service response error code + // "NoSuchGeoLocation". + // + // Amazon Route 53 doesn't support the specified geolocation. + ErrCodeNoSuchGeoLocation = "NoSuchGeoLocation" + + // ErrCodeNoSuchHealthCheck for service response error code + // "NoSuchHealthCheck". + // + // No health check exists with the ID that you specified in the DeleteHealthCheck + // request. + ErrCodeNoSuchHealthCheck = "NoSuchHealthCheck" + + // ErrCodeNoSuchHostedZone for service response error code + // "NoSuchHostedZone". + // + // No hosted zone exists with the ID that you specified. + ErrCodeNoSuchHostedZone = "NoSuchHostedZone" + + // ErrCodeNoSuchTrafficPolicy for service response error code + // "NoSuchTrafficPolicy". + // + // No traffic policy exists with the specified ID. + ErrCodeNoSuchTrafficPolicy = "NoSuchTrafficPolicy" + + // ErrCodeNoSuchTrafficPolicyInstance for service response error code + // "NoSuchTrafficPolicyInstance". + // + // No traffic policy instance exists with the specified ID. + ErrCodeNoSuchTrafficPolicyInstance = "NoSuchTrafficPolicyInstance" + + // ErrCodeNotAuthorizedException for service response error code + // "NotAuthorizedException". + // + // Associating the specified VPC with the specified hosted zone has not been + // authorized. + ErrCodeNotAuthorizedException = "NotAuthorizedException" + + // ErrCodePriorRequestNotComplete for service response error code + // "PriorRequestNotComplete". + // + // If Amazon Route 53 can't process a request before the next request arrives, + // it will reject subsequent requests for the same hosted zone and return an + // HTTP 400 error (Bad request). If Amazon Route 53 returns this error repeatedly + // for the same request, we recommend that you wait, in intervals of increasing + // duration, before you try the request again. + ErrCodePriorRequestNotComplete = "PriorRequestNotComplete" + + // ErrCodePublicZoneVPCAssociation for service response error code + // "PublicZoneVPCAssociation". + // + // You're trying to associate a VPC with a public hosted zone. Amazon Route + // 53 doesn't support associating a VPC with a public hosted zone. + ErrCodePublicZoneVPCAssociation = "PublicZoneVPCAssociation" + + // ErrCodeThrottlingException for service response error code + // "ThrottlingException". + // + // The limit on the number of requests per second was exceeded. + ErrCodeThrottlingException = "ThrottlingException" + + // ErrCodeTooManyHealthChecks for service response error code + // "TooManyHealthChecks". + // + // You have reached the maximum number of active health checks for an AWS account. + // The default limit is 100. To request a higher limit, create a case (http://aws.amazon.com/route53-request) + // with the AWS Support Center. + ErrCodeTooManyHealthChecks = "TooManyHealthChecks" + + // ErrCodeTooManyHostedZones for service response error code + // "TooManyHostedZones". + // + // This hosted zone can't be created because the hosted zone limit is exceeded. + // To request a limit increase, go to the Amazon Route 53 Contact Us (http://aws.amazon.com/route53-request/) + // page. + ErrCodeTooManyHostedZones = "TooManyHostedZones" + + // ErrCodeTooManyTrafficPolicies for service response error code + // "TooManyTrafficPolicies". + // + // You've created the maximum number of traffic policies that can be created + // for the current AWS account. You can request an increase to the limit on + // the Contact Us (http://aws.amazon.com/route53-request/) page. + ErrCodeTooManyTrafficPolicies = "TooManyTrafficPolicies" + + // ErrCodeTooManyTrafficPolicyInstances for service response error code + // "TooManyTrafficPolicyInstances". + // + // You've created the maximum number of traffic policy instances that can be + // created for the current AWS account. You can request an increase to the limit + // on the Contact Us (http://aws.amazon.com/route53-request/) page. + ErrCodeTooManyTrafficPolicyInstances = "TooManyTrafficPolicyInstances" + + // ErrCodeTooManyVPCAssociationAuthorizations for service response error code + // "TooManyVPCAssociationAuthorizations". + // + // You've created the maximum number of authorizations that can be created for + // the specified hosted zone. To authorize another VPC to be associated with + // the hosted zone, submit a DeleteVPCAssociationAuthorization request to remove + // an existing authorization. To get a list of existing authorizations, submit + // a ListVPCAssociationAuthorizations request. + ErrCodeTooManyVPCAssociationAuthorizations = "TooManyVPCAssociationAuthorizations" + + // ErrCodeTrafficPolicyAlreadyExists for service response error code + // "TrafficPolicyAlreadyExists". + // + // A traffic policy that has the same value for Name already exists. + ErrCodeTrafficPolicyAlreadyExists = "TrafficPolicyAlreadyExists" + + // ErrCodeTrafficPolicyInUse for service response error code + // "TrafficPolicyInUse". + // + // One or more traffic policy instances were created by using the specified + // traffic policy. + ErrCodeTrafficPolicyInUse = "TrafficPolicyInUse" + + // ErrCodeTrafficPolicyInstanceAlreadyExists for service response error code + // "TrafficPolicyInstanceAlreadyExists". + // + // Traffic policy instance with given Id already exists. + ErrCodeTrafficPolicyInstanceAlreadyExists = "TrafficPolicyInstanceAlreadyExists" + + // ErrCodeVPCAssociationAuthorizationNotFound for service response error code + // "VPCAssociationAuthorizationNotFound". + // + // The VPC that you specified is not authorized to be associated with the hosted + // zone. + ErrCodeVPCAssociationAuthorizationNotFound = "VPCAssociationAuthorizationNotFound" + + // ErrCodeVPCAssociationNotFound for service response error code + // "VPCAssociationNotFound". + // + // The specified VPC and hosted zone are not currently associated. + ErrCodeVPCAssociationNotFound = "VPCAssociationNotFound" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/route53/examples_test.go index a297b0240..1f8b48abc 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleRoute53_AssociateVPCWithHostedZone() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -46,11 +42,7 @@ func ExampleRoute53_AssociateVPCWithHostedZone() { } func ExampleRoute53_ChangeResourceRecordSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -107,11 +99,7 @@ func ExampleRoute53_ChangeResourceRecordSets() { } func ExampleRoute53_ChangeTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -144,11 +132,7 @@ func ExampleRoute53_ChangeTagsForResource() { } func ExampleRoute53_CreateHealthCheck() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -196,11 +180,7 @@ func ExampleRoute53_CreateHealthCheck() { } func ExampleRoute53_CreateHostedZone() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -231,11 +211,7 @@ func ExampleRoute53_CreateHostedZone() { } func ExampleRoute53_CreateReusableDelegationSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -257,11 +233,7 @@ func ExampleRoute53_CreateReusableDelegationSet() { } func ExampleRoute53_CreateTrafficPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -284,11 +256,7 @@ func ExampleRoute53_CreateTrafficPolicy() { } func ExampleRoute53_CreateTrafficPolicyInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -313,11 +281,7 @@ func ExampleRoute53_CreateTrafficPolicyInstance() { } func ExampleRoute53_CreateTrafficPolicyVersion() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -339,13 +303,34 @@ func ExampleRoute53_CreateTrafficPolicyVersion() { fmt.Println(resp) } -func ExampleRoute53_DeleteHealthCheck() { - sess, err := session.NewSession() +func ExampleRoute53_CreateVPCAssociationAuthorization() { + sess := session.Must(session.NewSession()) + + svc := route53.New(sess) + + params := &route53.CreateVPCAssociationAuthorizationInput{ + HostedZoneId: aws.String("ResourceId"), // Required + VPC: &route53.VPC{ // Required + VPCId: aws.String("VPCId"), + VPCRegion: aws.String("VPCRegion"), + }, + } + resp, err := svc.CreateVPCAssociationAuthorization(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleRoute53_DeleteHealthCheck() { + sess := session.Must(session.NewSession()) + svc := route53.New(sess) params := &route53.DeleteHealthCheckInput{ @@ -365,11 +350,7 @@ func ExampleRoute53_DeleteHealthCheck() { } func ExampleRoute53_DeleteHostedZone() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -390,11 +371,7 @@ func ExampleRoute53_DeleteHostedZone() { } func ExampleRoute53_DeleteReusableDelegationSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -415,11 +392,7 @@ func ExampleRoute53_DeleteReusableDelegationSet() { } func ExampleRoute53_DeleteTrafficPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -441,11 +414,7 @@ func ExampleRoute53_DeleteTrafficPolicy() { } func ExampleRoute53_DeleteTrafficPolicyInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -465,24 +434,19 @@ func ExampleRoute53_DeleteTrafficPolicyInstance() { fmt.Println(resp) } -func ExampleRoute53_DisassociateVPCFromHostedZone() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } +func ExampleRoute53_DeleteVPCAssociationAuthorization() { + sess := session.Must(session.NewSession()) svc := route53.New(sess) - params := &route53.DisassociateVPCFromHostedZoneInput{ + params := &route53.DeleteVPCAssociationAuthorizationInput{ HostedZoneId: aws.String("ResourceId"), // Required VPC: &route53.VPC{ // Required VPCId: aws.String("VPCId"), VPCRegion: aws.String("VPCRegion"), }, - Comment: aws.String("DisassociateVPCComment"), } - resp, err := svc.DisassociateVPCFromHostedZone(params) + resp, err := svc.DeleteVPCAssociationAuthorization(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -495,19 +459,20 @@ func ExampleRoute53_DisassociateVPCFromHostedZone() { fmt.Println(resp) } -func ExampleRoute53_GetChange() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } +func ExampleRoute53_DisassociateVPCFromHostedZone() { + sess := session.Must(session.NewSession()) svc := route53.New(sess) - params := &route53.GetChangeInput{ - Id: aws.String("ResourceId"), // Required + params := &route53.DisassociateVPCFromHostedZoneInput{ + HostedZoneId: aws.String("ResourceId"), // Required + VPC: &route53.VPC{ // Required + VPCId: aws.String("VPCId"), + VPCRegion: aws.String("VPCRegion"), + }, + Comment: aws.String("DisassociateVPCComment"), } - resp, err := svc.GetChange(params) + resp, err := svc.DisassociateVPCFromHostedZone(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -520,19 +485,15 @@ func ExampleRoute53_GetChange() { fmt.Println(resp) } -func ExampleRoute53_GetChangeDetails() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } +func ExampleRoute53_GetChange() { + sess := session.Must(session.NewSession()) svc := route53.New(sess) - params := &route53.GetChangeDetailsInput{ + params := &route53.GetChangeInput{ Id: aws.String("ResourceId"), // Required } - resp, err := svc.GetChangeDetails(params) + resp, err := svc.GetChange(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -546,11 +507,7 @@ func ExampleRoute53_GetChangeDetails() { } func ExampleRoute53_GetCheckerIpRanges() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -569,11 +526,7 @@ func ExampleRoute53_GetCheckerIpRanges() { } func ExampleRoute53_GetGeoLocation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -596,11 +549,7 @@ func ExampleRoute53_GetGeoLocation() { } func ExampleRoute53_GetHealthCheck() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -621,11 +570,7 @@ func ExampleRoute53_GetHealthCheck() { } func ExampleRoute53_GetHealthCheckCount() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -644,11 +589,7 @@ func ExampleRoute53_GetHealthCheckCount() { } func ExampleRoute53_GetHealthCheckLastFailureReason() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -669,11 +610,7 @@ func ExampleRoute53_GetHealthCheckLastFailureReason() { } func ExampleRoute53_GetHealthCheckStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -694,11 +631,7 @@ func ExampleRoute53_GetHealthCheckStatus() { } func ExampleRoute53_GetHostedZone() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -719,11 +652,7 @@ func ExampleRoute53_GetHostedZone() { } func ExampleRoute53_GetHostedZoneCount() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -742,11 +671,7 @@ func ExampleRoute53_GetHostedZoneCount() { } func ExampleRoute53_GetReusableDelegationSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -767,11 +692,7 @@ func ExampleRoute53_GetReusableDelegationSet() { } func ExampleRoute53_GetTrafficPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -793,11 +714,7 @@ func ExampleRoute53_GetTrafficPolicy() { } func ExampleRoute53_GetTrafficPolicyInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -818,11 +735,7 @@ func ExampleRoute53_GetTrafficPolicyInstance() { } func ExampleRoute53_GetTrafficPolicyInstanceCount() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -840,73 +753,8 @@ func ExampleRoute53_GetTrafficPolicyInstanceCount() { fmt.Println(resp) } -func ExampleRoute53_ListChangeBatchesByHostedZone() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } - - svc := route53.New(sess) - - params := &route53.ListChangeBatchesByHostedZoneInput{ - EndDate: aws.String("Date"), // Required - HostedZoneId: aws.String("ResourceId"), // Required - StartDate: aws.String("Date"), // Required - Marker: aws.String("PageMarker"), - MaxItems: aws.String("PageMaxItems"), - } - resp, err := svc.ListChangeBatchesByHostedZone(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleRoute53_ListChangeBatchesByRRSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } - - svc := route53.New(sess) - - params := &route53.ListChangeBatchesByRRSetInput{ - EndDate: aws.String("Date"), // Required - HostedZoneId: aws.String("ResourceId"), // Required - Name: aws.String("DNSName"), // Required - StartDate: aws.String("Date"), // Required - Type: aws.String("RRType"), // Required - Marker: aws.String("PageMarker"), - MaxItems: aws.String("PageMaxItems"), - SetIdentifier: aws.String("ResourceRecordSetIdentifier"), - } - resp, err := svc.ListChangeBatchesByRRSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleRoute53_ListGeoLocations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -930,11 +778,7 @@ func ExampleRoute53_ListGeoLocations() { } func ExampleRoute53_ListHealthChecks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -956,11 +800,7 @@ func ExampleRoute53_ListHealthChecks() { } func ExampleRoute53_ListHostedZones() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -983,11 +823,7 @@ func ExampleRoute53_ListHostedZones() { } func ExampleRoute53_ListHostedZonesByName() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1010,11 +846,7 @@ func ExampleRoute53_ListHostedZonesByName() { } func ExampleRoute53_ListResourceRecordSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1039,11 +871,7 @@ func ExampleRoute53_ListResourceRecordSets() { } func ExampleRoute53_ListReusableDelegationSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1065,11 +893,7 @@ func ExampleRoute53_ListReusableDelegationSets() { } func ExampleRoute53_ListTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1091,11 +915,7 @@ func ExampleRoute53_ListTagsForResource() { } func ExampleRoute53_ListTagsForResources() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1120,11 +940,7 @@ func ExampleRoute53_ListTagsForResources() { } func ExampleRoute53_ListTrafficPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1146,11 +962,7 @@ func ExampleRoute53_ListTrafficPolicies() { } func ExampleRoute53_ListTrafficPolicyInstances() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1174,11 +986,7 @@ func ExampleRoute53_ListTrafficPolicyInstances() { } func ExampleRoute53_ListTrafficPolicyInstancesByHostedZone() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1202,11 +1010,7 @@ func ExampleRoute53_ListTrafficPolicyInstancesByHostedZone() { } func ExampleRoute53_ListTrafficPolicyInstancesByPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1232,11 +1036,7 @@ func ExampleRoute53_ListTrafficPolicyInstancesByPolicy() { } func ExampleRoute53_ListTrafficPolicyVersions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1258,13 +1058,32 @@ func ExampleRoute53_ListTrafficPolicyVersions() { fmt.Println(resp) } -func ExampleRoute53_TestDNSAnswer() { - sess, err := session.NewSession() +func ExampleRoute53_ListVPCAssociationAuthorizations() { + sess := session.Must(session.NewSession()) + + svc := route53.New(sess) + + params := &route53.ListVPCAssociationAuthorizationsInput{ + HostedZoneId: aws.String("ResourceId"), // Required + MaxResults: aws.String("MaxResults"), + NextToken: aws.String("PaginationToken"), + } + resp, err := svc.ListVPCAssociationAuthorizations(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleRoute53_TestDNSAnswer() { + sess := session.Must(session.NewSession()) + svc := route53.New(sess) params := &route53.TestDNSAnswerInput{ @@ -1289,11 +1108,7 @@ func ExampleRoute53_TestDNSAnswer() { } func ExampleRoute53_UpdateHealthCheck() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1337,11 +1152,7 @@ func ExampleRoute53_UpdateHealthCheck() { } func ExampleRoute53_UpdateHostedZoneComment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1363,11 +1174,7 @@ func ExampleRoute53_UpdateHostedZoneComment() { } func ExampleRoute53_UpdateTrafficPolicyComment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) @@ -1390,11 +1197,7 @@ func ExampleRoute53_UpdateTrafficPolicyComment() { } func ExampleRoute53_UpdateTrafficPolicyInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/route53iface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/route53/route53iface/interface.go index a094fbe0c..cb1aac54a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/route53iface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/route53iface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockRoute53Client{} // @@ -95,6 +95,10 @@ type Route53API interface { CreateTrafficPolicyVersion(*route53.CreateTrafficPolicyVersionInput) (*route53.CreateTrafficPolicyVersionOutput, error) + CreateVPCAssociationAuthorizationRequest(*route53.CreateVPCAssociationAuthorizationInput) (*request.Request, *route53.CreateVPCAssociationAuthorizationOutput) + + CreateVPCAssociationAuthorization(*route53.CreateVPCAssociationAuthorizationInput) (*route53.CreateVPCAssociationAuthorizationOutput, error) + DeleteHealthCheckRequest(*route53.DeleteHealthCheckInput) (*request.Request, *route53.DeleteHealthCheckOutput) DeleteHealthCheck(*route53.DeleteHealthCheckInput) (*route53.DeleteHealthCheckOutput, error) @@ -115,6 +119,10 @@ type Route53API interface { DeleteTrafficPolicyInstance(*route53.DeleteTrafficPolicyInstanceInput) (*route53.DeleteTrafficPolicyInstanceOutput, error) + DeleteVPCAssociationAuthorizationRequest(*route53.DeleteVPCAssociationAuthorizationInput) (*request.Request, *route53.DeleteVPCAssociationAuthorizationOutput) + + DeleteVPCAssociationAuthorization(*route53.DeleteVPCAssociationAuthorizationInput) (*route53.DeleteVPCAssociationAuthorizationOutput, error) + DisassociateVPCFromHostedZoneRequest(*route53.DisassociateVPCFromHostedZoneInput) (*request.Request, *route53.DisassociateVPCFromHostedZoneOutput) DisassociateVPCFromHostedZone(*route53.DisassociateVPCFromHostedZoneInput) (*route53.DisassociateVPCFromHostedZoneOutput, error) @@ -123,10 +131,6 @@ type Route53API interface { GetChange(*route53.GetChangeInput) (*route53.GetChangeOutput, error) - GetChangeDetailsRequest(*route53.GetChangeDetailsInput) (*request.Request, *route53.GetChangeDetailsOutput) - - GetChangeDetails(*route53.GetChangeDetailsInput) (*route53.GetChangeDetailsOutput, error) - GetCheckerIpRangesRequest(*route53.GetCheckerIpRangesInput) (*request.Request, *route53.GetCheckerIpRangesOutput) GetCheckerIpRanges(*route53.GetCheckerIpRangesInput) (*route53.GetCheckerIpRangesOutput, error) @@ -175,14 +179,6 @@ type Route53API interface { GetTrafficPolicyInstanceCount(*route53.GetTrafficPolicyInstanceCountInput) (*route53.GetTrafficPolicyInstanceCountOutput, error) - ListChangeBatchesByHostedZoneRequest(*route53.ListChangeBatchesByHostedZoneInput) (*request.Request, *route53.ListChangeBatchesByHostedZoneOutput) - - ListChangeBatchesByHostedZone(*route53.ListChangeBatchesByHostedZoneInput) (*route53.ListChangeBatchesByHostedZoneOutput, error) - - ListChangeBatchesByRRSetRequest(*route53.ListChangeBatchesByRRSetInput) (*request.Request, *route53.ListChangeBatchesByRRSetOutput) - - ListChangeBatchesByRRSet(*route53.ListChangeBatchesByRRSetInput) (*route53.ListChangeBatchesByRRSetOutput, error) - ListGeoLocationsRequest(*route53.ListGeoLocationsInput) (*request.Request, *route53.ListGeoLocationsOutput) ListGeoLocations(*route53.ListGeoLocationsInput) (*route53.ListGeoLocationsOutput, error) @@ -241,6 +237,10 @@ type Route53API interface { ListTrafficPolicyVersions(*route53.ListTrafficPolicyVersionsInput) (*route53.ListTrafficPolicyVersionsOutput, error) + ListVPCAssociationAuthorizationsRequest(*route53.ListVPCAssociationAuthorizationsInput) (*request.Request, *route53.ListVPCAssociationAuthorizationsOutput) + + ListVPCAssociationAuthorizations(*route53.ListVPCAssociationAuthorizationsInput) (*route53.ListVPCAssociationAuthorizationsOutput, error) + TestDNSAnswerRequest(*route53.TestDNSAnswerInput) (*request.Request, *route53.TestDNSAnswerOutput) TestDNSAnswer(*route53.TestDNSAnswerInput) (*route53.TestDNSAnswerOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/service.go b/vendor/github.com/aws/aws-sdk-go/service/route53/service.go index 269c4db36..287e7db7e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/service.go @@ -12,8 +12,9 @@ import ( ) // Route53 is a client for Route 53. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01 type Route53 struct { *client.Client } @@ -24,8 +25,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "route53" +// Service information constants +const ( + ServiceName = "route53" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the Route53 client with a session. // If additional configuration is needed for the client instance use the optional @@ -38,17 +42,18 @@ const ServiceName = "route53" // // Create a Route53 client with additional configuration // svc := route53.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Route53 { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *Route53 { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Route53 { svc := &Route53{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2013-04-01", diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53domains/api.go b/vendor/github.com/aws/aws-sdk-go/service/route53domains/api.go index 90bd2955a..ea141d533 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53domains/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53domains/api.go @@ -37,6 +37,7 @@ const opCheckDomainAvailability = "CheckDomainAvailability" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/CheckDomainAvailability func (c *Route53Domains) CheckDomainAvailabilityRequest(input *CheckDomainAvailabilityInput) (req *request.Request, output *CheckDomainAvailabilityOutput) { op := &request.Operation{ Name: opCheckDomainAvailability, @@ -48,9 +49,8 @@ func (c *Route53Domains) CheckDomainAvailabilityRequest(input *CheckDomainAvaila input = &CheckDomainAvailabilityInput{} } - req = c.newRequest(op, input, output) output = &CheckDomainAvailabilityOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -68,14 +68,15 @@ func (c *Route53Domains) CheckDomainAvailabilityRequest(input *CheckDomainAvaila // API operation CheckDomainAvailability for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // -// * UnsupportedTLD +// * ErrCodeUnsupportedTLD "UnsupportedTLD" // Amazon Route 53 does not support this top-level domain. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/CheckDomainAvailability func (c *Route53Domains) CheckDomainAvailability(input *CheckDomainAvailabilityInput) (*CheckDomainAvailabilityOutput, error) { req, out := c.CheckDomainAvailabilityRequest(input) err := req.Send() @@ -108,6 +109,7 @@ const opDeleteTagsForDomain = "DeleteTagsForDomain" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DeleteTagsForDomain func (c *Route53Domains) DeleteTagsForDomainRequest(input *DeleteTagsForDomainInput) (req *request.Request, output *DeleteTagsForDomainOutput) { op := &request.Operation{ Name: opDeleteTagsForDomain, @@ -119,9 +121,8 @@ func (c *Route53Domains) DeleteTagsForDomainRequest(input *DeleteTagsForDomainIn input = &DeleteTagsForDomainInput{} } - req = c.newRequest(op, input, output) output = &DeleteTagsForDomainOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -129,8 +130,8 @@ func (c *Route53Domains) DeleteTagsForDomainRequest(input *DeleteTagsForDomainIn // // This operation deletes the specified tags for a domain. // -// All tag operations are eventually consistent; subsequent operations may -// not immediately represent all issued operations. +// All tag operations are eventually consistent; subsequent operations may not +// immediately represent all issued operations. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -140,18 +141,19 @@ func (c *Route53Domains) DeleteTagsForDomainRequest(input *DeleteTagsForDomainIn // API operation DeleteTagsForDomain for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // -// * OperationLimitExceeded +// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" // The number of operations or jobs running exceeded the allowed threshold for // the account. // -// * UnsupportedTLD +// * ErrCodeUnsupportedTLD "UnsupportedTLD" // Amazon Route 53 does not support this top-level domain. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DeleteTagsForDomain func (c *Route53Domains) DeleteTagsForDomain(input *DeleteTagsForDomainInput) (*DeleteTagsForDomainOutput, error) { req, out := c.DeleteTagsForDomainRequest(input) err := req.Send() @@ -184,6 +186,7 @@ const opDisableDomainAutoRenew = "DisableDomainAutoRenew" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DisableDomainAutoRenew func (c *Route53Domains) DisableDomainAutoRenewRequest(input *DisableDomainAutoRenewInput) (req *request.Request, output *DisableDomainAutoRenewOutput) { op := &request.Operation{ Name: opDisableDomainAutoRenew, @@ -195,9 +198,8 @@ func (c *Route53Domains) DisableDomainAutoRenewRequest(input *DisableDomainAutoR input = &DisableDomainAutoRenewInput{} } - req = c.newRequest(op, input, output) output = &DisableDomainAutoRenewOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -214,14 +216,15 @@ func (c *Route53Domains) DisableDomainAutoRenewRequest(input *DisableDomainAutoR // API operation DisableDomainAutoRenew for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // -// * UnsupportedTLD +// * ErrCodeUnsupportedTLD "UnsupportedTLD" // Amazon Route 53 does not support this top-level domain. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DisableDomainAutoRenew func (c *Route53Domains) DisableDomainAutoRenew(input *DisableDomainAutoRenewInput) (*DisableDomainAutoRenewOutput, error) { req, out := c.DisableDomainAutoRenewRequest(input) err := req.Send() @@ -254,6 +257,7 @@ const opDisableDomainTransferLock = "DisableDomainTransferLock" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DisableDomainTransferLock func (c *Route53Domains) DisableDomainTransferLockRequest(input *DisableDomainTransferLockInput) (req *request.Request, output *DisableDomainTransferLockOutput) { op := &request.Operation{ Name: opDisableDomainTransferLock, @@ -265,9 +269,8 @@ func (c *Route53Domains) DisableDomainTransferLockRequest(input *DisableDomainTr input = &DisableDomainTransferLockInput{} } - req = c.newRequest(op, input, output) output = &DisableDomainTransferLockOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -289,24 +292,25 @@ func (c *Route53Domains) DisableDomainTransferLockRequest(input *DisableDomainTr // API operation DisableDomainTransferLock for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // -// * DuplicateRequest +// * ErrCodeDuplicateRequest "DuplicateRequest" // The request is already in progress for the domain. // -// * TLDRulesViolation +// * ErrCodeTLDRulesViolation "TLDRulesViolation" // The top-level domain does not support this operation. // -// * OperationLimitExceeded +// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" // The number of operations or jobs running exceeded the allowed threshold for // the account. // -// * UnsupportedTLD +// * ErrCodeUnsupportedTLD "UnsupportedTLD" // Amazon Route 53 does not support this top-level domain. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DisableDomainTransferLock func (c *Route53Domains) DisableDomainTransferLock(input *DisableDomainTransferLockInput) (*DisableDomainTransferLockOutput, error) { req, out := c.DisableDomainTransferLockRequest(input) err := req.Send() @@ -339,6 +343,7 @@ const opEnableDomainAutoRenew = "EnableDomainAutoRenew" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/EnableDomainAutoRenew func (c *Route53Domains) EnableDomainAutoRenewRequest(input *EnableDomainAutoRenewInput) (req *request.Request, output *EnableDomainAutoRenewOutput) { op := &request.Operation{ Name: opEnableDomainAutoRenew, @@ -350,9 +355,8 @@ func (c *Route53Domains) EnableDomainAutoRenewRequest(input *EnableDomainAutoRen input = &EnableDomainAutoRenewInput{} } - req = c.newRequest(op, input, output) output = &EnableDomainAutoRenewOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -377,17 +381,18 @@ func (c *Route53Domains) EnableDomainAutoRenewRequest(input *EnableDomainAutoRen // API operation EnableDomainAutoRenew for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // -// * UnsupportedTLD +// * ErrCodeUnsupportedTLD "UnsupportedTLD" // Amazon Route 53 does not support this top-level domain. // -// * TLDRulesViolation +// * ErrCodeTLDRulesViolation "TLDRulesViolation" // The top-level domain does not support this operation. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/EnableDomainAutoRenew func (c *Route53Domains) EnableDomainAutoRenew(input *EnableDomainAutoRenewInput) (*EnableDomainAutoRenewOutput, error) { req, out := c.EnableDomainAutoRenewRequest(input) err := req.Send() @@ -420,6 +425,7 @@ const opEnableDomainTransferLock = "EnableDomainTransferLock" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/EnableDomainTransferLock func (c *Route53Domains) EnableDomainTransferLockRequest(input *EnableDomainTransferLockInput) (req *request.Request, output *EnableDomainTransferLockOutput) { op := &request.Operation{ Name: opEnableDomainTransferLock, @@ -431,9 +437,8 @@ func (c *Route53Domains) EnableDomainTransferLockRequest(input *EnableDomainTran input = &EnableDomainTransferLockInput{} } - req = c.newRequest(op, input, output) output = &EnableDomainTransferLockOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -453,24 +458,25 @@ func (c *Route53Domains) EnableDomainTransferLockRequest(input *EnableDomainTran // API operation EnableDomainTransferLock for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // -// * DuplicateRequest +// * ErrCodeDuplicateRequest "DuplicateRequest" // The request is already in progress for the domain. // -// * TLDRulesViolation +// * ErrCodeTLDRulesViolation "TLDRulesViolation" // The top-level domain does not support this operation. // -// * OperationLimitExceeded +// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" // The number of operations or jobs running exceeded the allowed threshold for // the account. // -// * UnsupportedTLD +// * ErrCodeUnsupportedTLD "UnsupportedTLD" // Amazon Route 53 does not support this top-level domain. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/EnableDomainTransferLock func (c *Route53Domains) EnableDomainTransferLock(input *EnableDomainTransferLockInput) (*EnableDomainTransferLockOutput, error) { req, out := c.EnableDomainTransferLockRequest(input) err := req.Send() @@ -503,6 +509,7 @@ const opGetContactReachabilityStatus = "GetContactReachabilityStatus" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetContactReachabilityStatus func (c *Route53Domains) GetContactReachabilityStatusRequest(input *GetContactReachabilityStatusInput) (req *request.Request, output *GetContactReachabilityStatusOutput) { op := &request.Operation{ Name: opGetContactReachabilityStatus, @@ -514,9 +521,8 @@ func (c *Route53Domains) GetContactReachabilityStatusRequest(input *GetContactRe input = &GetContactReachabilityStatusInput{} } - req = c.newRequest(op, input, output) output = &GetContactReachabilityStatusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -537,18 +543,19 @@ func (c *Route53Domains) GetContactReachabilityStatusRequest(input *GetContactRe // API operation GetContactReachabilityStatus for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // -// * OperationLimitExceeded +// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" // The number of operations or jobs running exceeded the allowed threshold for // the account. // -// * UnsupportedTLD +// * ErrCodeUnsupportedTLD "UnsupportedTLD" // Amazon Route 53 does not support this top-level domain. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetContactReachabilityStatus func (c *Route53Domains) GetContactReachabilityStatus(input *GetContactReachabilityStatusInput) (*GetContactReachabilityStatusOutput, error) { req, out := c.GetContactReachabilityStatusRequest(input) err := req.Send() @@ -581,6 +588,7 @@ const opGetDomainDetail = "GetDomainDetail" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetDomainDetail func (c *Route53Domains) GetDomainDetailRequest(input *GetDomainDetailInput) (req *request.Request, output *GetDomainDetailOutput) { op := &request.Operation{ Name: opGetDomainDetail, @@ -592,9 +600,8 @@ func (c *Route53Domains) GetDomainDetailRequest(input *GetDomainDetailInput) (re input = &GetDomainDetailInput{} } - req = c.newRequest(op, input, output) output = &GetDomainDetailOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -611,14 +618,15 @@ func (c *Route53Domains) GetDomainDetailRequest(input *GetDomainDetailInput) (re // API operation GetDomainDetail for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // -// * UnsupportedTLD +// * ErrCodeUnsupportedTLD "UnsupportedTLD" // Amazon Route 53 does not support this top-level domain. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetDomainDetail func (c *Route53Domains) GetDomainDetail(input *GetDomainDetailInput) (*GetDomainDetailOutput, error) { req, out := c.GetDomainDetailRequest(input) err := req.Send() @@ -651,6 +659,7 @@ const opGetDomainSuggestions = "GetDomainSuggestions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetDomainSuggestions func (c *Route53Domains) GetDomainSuggestionsRequest(input *GetDomainSuggestionsInput) (req *request.Request, output *GetDomainSuggestionsOutput) { op := &request.Operation{ Name: opGetDomainSuggestions, @@ -662,9 +671,8 @@ func (c *Route53Domains) GetDomainSuggestionsRequest(input *GetDomainSuggestions input = &GetDomainSuggestionsInput{} } - req = c.newRequest(op, input, output) output = &GetDomainSuggestionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -674,14 +682,15 @@ func (c *Route53Domains) GetDomainSuggestionsRequest(input *GetDomainSuggestions // given a string, which can either be a domain name or simply a word or phrase // (without spaces). // -// Parameters: DomainName (string): The basis for your domain suggestion search, -// a string with (or without) top-level domain specified. SuggestionCount (int): -// The number of domain suggestions to be returned, maximum 50, minimum 1. OnlyAvailable -// (bool): If true, availability check will be performed on suggestion results, -// and only available domains will be returned. If false, suggestions will be -// returned without checking whether the domain is actually available, and caller -// will have to call checkDomainAvailability for each suggestion to determine -// availability for registration. +// Parameters: DomainName (string): The basis for your domain suggestion search, +// a string with (or without) top-level domain specified. +// SuggestionCount (int): The number of domain suggestions to be returned, maximum +// 50, minimum 1. +// OnlyAvailable (bool): If true, availability check will be performed on suggestion +// results, and only available domains will be returned. If false, suggestions +// will be returned without checking whether the domain is actually available, +// and caller will have to call checkDomainAvailability for each suggestion +// to determine availability for registration. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -691,14 +700,15 @@ func (c *Route53Domains) GetDomainSuggestionsRequest(input *GetDomainSuggestions // API operation GetDomainSuggestions for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // -// * UnsupportedTLD +// * ErrCodeUnsupportedTLD "UnsupportedTLD" // Amazon Route 53 does not support this top-level domain. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetDomainSuggestions func (c *Route53Domains) GetDomainSuggestions(input *GetDomainSuggestionsInput) (*GetDomainSuggestionsOutput, error) { req, out := c.GetDomainSuggestionsRequest(input) err := req.Send() @@ -731,6 +741,7 @@ const opGetOperationDetail = "GetOperationDetail" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetOperationDetail func (c *Route53Domains) GetOperationDetailRequest(input *GetOperationDetailInput) (req *request.Request, output *GetOperationDetailOutput) { op := &request.Operation{ Name: opGetOperationDetail, @@ -742,9 +753,8 @@ func (c *Route53Domains) GetOperationDetailRequest(input *GetOperationDetailInpu input = &GetOperationDetailInput{} } - req = c.newRequest(op, input, output) output = &GetOperationDetailOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -760,11 +770,12 @@ func (c *Route53Domains) GetOperationDetailRequest(input *GetOperationDetailInpu // API operation GetOperationDetail for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetOperationDetail func (c *Route53Domains) GetOperationDetail(input *GetOperationDetailInput) (*GetOperationDetailOutput, error) { req, out := c.GetOperationDetailRequest(input) err := req.Send() @@ -797,6 +808,7 @@ const opListDomains = "ListDomains" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ListDomains func (c *Route53Domains) ListDomainsRequest(input *ListDomainsInput) (req *request.Request, output *ListDomainsOutput) { op := &request.Operation{ Name: opListDomains, @@ -814,9 +826,8 @@ func (c *Route53Domains) ListDomainsRequest(input *ListDomainsInput) (req *reque input = &ListDomainsInput{} } - req = c.newRequest(op, input, output) output = &ListDomainsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -833,11 +844,12 @@ func (c *Route53Domains) ListDomainsRequest(input *ListDomainsInput) (req *reque // API operation ListDomains for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ListDomains func (c *Route53Domains) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error) { req, out := c.ListDomainsRequest(input) err := req.Send() @@ -895,6 +907,7 @@ const opListOperations = "ListOperations" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ListOperations func (c *Route53Domains) ListOperationsRequest(input *ListOperationsInput) (req *request.Request, output *ListOperationsOutput) { op := &request.Operation{ Name: opListOperations, @@ -912,9 +925,8 @@ func (c *Route53Domains) ListOperationsRequest(input *ListOperationsInput) (req input = &ListOperationsInput{} } - req = c.newRequest(op, input, output) output = &ListOperationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -930,11 +942,12 @@ func (c *Route53Domains) ListOperationsRequest(input *ListOperationsInput) (req // API operation ListOperations for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ListOperations func (c *Route53Domains) ListOperations(input *ListOperationsInput) (*ListOperationsOutput, error) { req, out := c.ListOperationsRequest(input) err := req.Send() @@ -992,6 +1005,7 @@ const opListTagsForDomain = "ListTagsForDomain" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ListTagsForDomain func (c *Route53Domains) ListTagsForDomainRequest(input *ListTagsForDomainInput) (req *request.Request, output *ListTagsForDomainOutput) { op := &request.Operation{ Name: opListTagsForDomain, @@ -1003,9 +1017,8 @@ func (c *Route53Domains) ListTagsForDomainRequest(input *ListTagsForDomainInput) input = &ListTagsForDomainInput{} } - req = c.newRequest(op, input, output) output = &ListTagsForDomainOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1014,8 +1027,8 @@ func (c *Route53Domains) ListTagsForDomainRequest(input *ListTagsForDomainInput) // This operation returns all of the tags that are associated with the specified // domain. // -// All tag operations are eventually consistent; subsequent operations may -// not immediately represent all issued operations. +// All tag operations are eventually consistent; subsequent operations may not +// immediately represent all issued operations. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1025,18 +1038,19 @@ func (c *Route53Domains) ListTagsForDomainRequest(input *ListTagsForDomainInput) // API operation ListTagsForDomain for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // -// * OperationLimitExceeded +// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" // The number of operations or jobs running exceeded the allowed threshold for // the account. // -// * UnsupportedTLD +// * ErrCodeUnsupportedTLD "UnsupportedTLD" // Amazon Route 53 does not support this top-level domain. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ListTagsForDomain func (c *Route53Domains) ListTagsForDomain(input *ListTagsForDomainInput) (*ListTagsForDomainOutput, error) { req, out := c.ListTagsForDomainRequest(input) err := req.Send() @@ -1069,6 +1083,7 @@ const opRegisterDomain = "RegisterDomain" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RegisterDomain func (c *Route53Domains) RegisterDomainRequest(input *RegisterDomainInput) (req *request.Request, output *RegisterDomainOutput) { op := &request.Operation{ Name: opRegisterDomain, @@ -1080,9 +1095,8 @@ func (c *Route53Domains) RegisterDomainRequest(input *RegisterDomainInput) (req input = &RegisterDomainInput{} } - req = c.newRequest(op, input, output) output = &RegisterDomainOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1094,19 +1108,22 @@ func (c *Route53Domains) RegisterDomainRequest(input *RegisterDomainInput) (req // // When you register a domain, Amazon Route 53 does the following: // -// Creates a Amazon Route 53 hosted zone that has the same name as the domain. -// Amazon Route 53 assigns four name servers to your hosted zone and automatically -// updates your domain registration with the names of these name servers. Enables -// autorenew, so your domain registration will renew automatically each year. -// We'll notify you in advance of the renewal date so you can choose whether -// to renew the registration. Optionally enables privacy protection, so WHOIS -// queries return contact information for our registrar partner, Gandi, instead -// of the information you entered for registrant, admin, and tech contacts. -// If registration is successful, returns an operation ID that you can use to -// track the progress and completion of the action. If the request is not completed -// successfully, the domain registrant is notified by email. Charges your AWS -// account an amount based on the top-level domain. For more information, see -// Amazon Route 53 Pricing (http://aws.amazon.com/route53/pricing/). +// * Creates a Amazon Route 53 hosted zone that has the same name as the +// domain. Amazon Route 53 assigns four name servers to your hosted zone +// and automatically updates your domain registration with the names of these +// name servers. +// * Enables autorenew, so your domain registration will renew automatically +// each year. We'll notify you in advance of the renewal date so you can +// choose whether to renew the registration. +// * Optionally enables privacy protection, so WHOIS queries return contact +// information for our registrar partner, Gandi, instead of the information +// you entered for registrant, admin, and tech contacts. +// * If registration is successful, returns an operation ID that you can +// use to track the progress and completion of the action. If the request +// is not completed successfully, the domain registrant is notified by email. +// +// * Charges your AWS account an amount based on the top-level domain. For +// more information, see Amazon Route 53 Pricing (http://aws.amazon.com/route53/pricing/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1116,27 +1133,28 @@ func (c *Route53Domains) RegisterDomainRequest(input *RegisterDomainInput) (req // API operation RegisterDomain for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // -// * UnsupportedTLD +// * ErrCodeUnsupportedTLD "UnsupportedTLD" // Amazon Route 53 does not support this top-level domain. // -// * DuplicateRequest +// * ErrCodeDuplicateRequest "DuplicateRequest" // The request is already in progress for the domain. // -// * TLDRulesViolation +// * ErrCodeTLDRulesViolation "TLDRulesViolation" // The top-level domain does not support this operation. // -// * DomainLimitExceeded +// * ErrCodeDomainLimitExceeded "DomainLimitExceeded" // The number of domains has exceeded the allowed threshold for the account. // -// * OperationLimitExceeded +// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" // The number of operations or jobs running exceeded the allowed threshold for // the account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RegisterDomain func (c *Route53Domains) RegisterDomain(input *RegisterDomainInput) (*RegisterDomainOutput, error) { req, out := c.RegisterDomainRequest(input) err := req.Send() @@ -1169,6 +1187,7 @@ const opRenewDomain = "RenewDomain" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RenewDomain func (c *Route53Domains) RenewDomainRequest(input *RenewDomainInput) (req *request.Request, output *RenewDomainOutput) { op := &request.Operation{ Name: opRenewDomain, @@ -1180,9 +1199,8 @@ func (c *Route53Domains) RenewDomainRequest(input *RenewDomainInput) (req *reque input = &RenewDomainInput{} } - req = c.newRequest(op, input, output) output = &RenewDomainOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1205,24 +1223,25 @@ func (c *Route53Domains) RenewDomainRequest(input *RenewDomainInput) (req *reque // API operation RenewDomain for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // -// * UnsupportedTLD +// * ErrCodeUnsupportedTLD "UnsupportedTLD" // Amazon Route 53 does not support this top-level domain. // -// * DuplicateRequest +// * ErrCodeDuplicateRequest "DuplicateRequest" // The request is already in progress for the domain. // -// * TLDRulesViolation +// * ErrCodeTLDRulesViolation "TLDRulesViolation" // The top-level domain does not support this operation. // -// * OperationLimitExceeded +// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" // The number of operations or jobs running exceeded the allowed threshold for // the account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RenewDomain func (c *Route53Domains) RenewDomain(input *RenewDomainInput) (*RenewDomainOutput, error) { req, out := c.RenewDomainRequest(input) err := req.Send() @@ -1255,6 +1274,7 @@ const opResendContactReachabilityEmail = "ResendContactReachabilityEmail" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ResendContactReachabilityEmail func (c *Route53Domains) ResendContactReachabilityEmailRequest(input *ResendContactReachabilityEmailInput) (req *request.Request, output *ResendContactReachabilityEmailOutput) { op := &request.Operation{ Name: opResendContactReachabilityEmail, @@ -1266,9 +1286,8 @@ func (c *Route53Domains) ResendContactReachabilityEmailRequest(input *ResendCont input = &ResendContactReachabilityEmailInput{} } - req = c.newRequest(op, input, output) output = &ResendContactReachabilityEmailOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1286,18 +1305,19 @@ func (c *Route53Domains) ResendContactReachabilityEmailRequest(input *ResendCont // API operation ResendContactReachabilityEmail for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // -// * OperationLimitExceeded +// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" // The number of operations or jobs running exceeded the allowed threshold for // the account. // -// * UnsupportedTLD +// * ErrCodeUnsupportedTLD "UnsupportedTLD" // Amazon Route 53 does not support this top-level domain. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ResendContactReachabilityEmail func (c *Route53Domains) ResendContactReachabilityEmail(input *ResendContactReachabilityEmailInput) (*ResendContactReachabilityEmailOutput, error) { req, out := c.ResendContactReachabilityEmailRequest(input) err := req.Send() @@ -1330,6 +1350,7 @@ const opRetrieveDomainAuthCode = "RetrieveDomainAuthCode" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RetrieveDomainAuthCode func (c *Route53Domains) RetrieveDomainAuthCodeRequest(input *RetrieveDomainAuthCodeInput) (req *request.Request, output *RetrieveDomainAuthCodeOutput) { op := &request.Operation{ Name: opRetrieveDomainAuthCode, @@ -1341,9 +1362,8 @@ func (c *Route53Domains) RetrieveDomainAuthCodeRequest(input *RetrieveDomainAuth input = &RetrieveDomainAuthCodeInput{} } - req = c.newRequest(op, input, output) output = &RetrieveDomainAuthCodeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1360,14 +1380,15 @@ func (c *Route53Domains) RetrieveDomainAuthCodeRequest(input *RetrieveDomainAuth // API operation RetrieveDomainAuthCode for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // -// * UnsupportedTLD +// * ErrCodeUnsupportedTLD "UnsupportedTLD" // Amazon Route 53 does not support this top-level domain. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RetrieveDomainAuthCode func (c *Route53Domains) RetrieveDomainAuthCode(input *RetrieveDomainAuthCodeInput) (*RetrieveDomainAuthCodeOutput, error) { req, out := c.RetrieveDomainAuthCodeRequest(input) err := req.Send() @@ -1400,6 +1421,7 @@ const opTransferDomain = "TransferDomain" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/TransferDomain func (c *Route53Domains) TransferDomainRequest(input *TransferDomainInput) (req *request.Request, output *TransferDomainOutput) { op := &request.Operation{ Name: opTransferDomain, @@ -1411,9 +1433,8 @@ func (c *Route53Domains) TransferDomainRequest(input *TransferDomainInput) (req input = &TransferDomainInput{} } - req = c.newRequest(op, input, output) output = &TransferDomainOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1439,10 +1460,10 @@ func (c *Route53Domains) TransferDomainRequest(input *TransferDomainInput) (req // Caution! If the registrar for your domain is also the DNS service provider // for the domain and you don't transfer DNS service to another provider, your // website, email, and the web applications associated with the domain might -// become unavailable. If the transfer is successful, this method returns an -// operation ID that you can use to track the progress and completion of the -// action. If the transfer doesn't complete successfully, the domain registrant -// will be notified by email. +// become unavailable.If the transfer is successful, this method returns an operation ID that you +// can use to track the progress and completion of the action. If the transfer +// doesn't complete successfully, the domain registrant will be notified by +// email. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1452,27 +1473,28 @@ func (c *Route53Domains) TransferDomainRequest(input *TransferDomainInput) (req // API operation TransferDomain for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // -// * UnsupportedTLD +// * ErrCodeUnsupportedTLD "UnsupportedTLD" // Amazon Route 53 does not support this top-level domain. // -// * DuplicateRequest +// * ErrCodeDuplicateRequest "DuplicateRequest" // The request is already in progress for the domain. // -// * TLDRulesViolation +// * ErrCodeTLDRulesViolation "TLDRulesViolation" // The top-level domain does not support this operation. // -// * DomainLimitExceeded +// * ErrCodeDomainLimitExceeded "DomainLimitExceeded" // The number of domains has exceeded the allowed threshold for the account. // -// * OperationLimitExceeded +// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" // The number of operations or jobs running exceeded the allowed threshold for // the account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/TransferDomain func (c *Route53Domains) TransferDomain(input *TransferDomainInput) (*TransferDomainOutput, error) { req, out := c.TransferDomainRequest(input) err := req.Send() @@ -1505,6 +1527,7 @@ const opUpdateDomainContact = "UpdateDomainContact" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainContact func (c *Route53Domains) UpdateDomainContactRequest(input *UpdateDomainContactInput) (req *request.Request, output *UpdateDomainContactOutput) { op := &request.Operation{ Name: opUpdateDomainContact, @@ -1516,9 +1539,8 @@ func (c *Route53Domains) UpdateDomainContactRequest(input *UpdateDomainContactIn input = &UpdateDomainContactInput{} } - req = c.newRequest(op, input, output) output = &UpdateDomainContactOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1541,24 +1563,25 @@ func (c *Route53Domains) UpdateDomainContactRequest(input *UpdateDomainContactIn // API operation UpdateDomainContact for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // -// * DuplicateRequest +// * ErrCodeDuplicateRequest "DuplicateRequest" // The request is already in progress for the domain. // -// * TLDRulesViolation +// * ErrCodeTLDRulesViolation "TLDRulesViolation" // The top-level domain does not support this operation. // -// * OperationLimitExceeded +// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" // The number of operations or jobs running exceeded the allowed threshold for // the account. // -// * UnsupportedTLD +// * ErrCodeUnsupportedTLD "UnsupportedTLD" // Amazon Route 53 does not support this top-level domain. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainContact func (c *Route53Domains) UpdateDomainContact(input *UpdateDomainContactInput) (*UpdateDomainContactOutput, error) { req, out := c.UpdateDomainContactRequest(input) err := req.Send() @@ -1591,6 +1614,7 @@ const opUpdateDomainContactPrivacy = "UpdateDomainContactPrivacy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainContactPrivacy func (c *Route53Domains) UpdateDomainContactPrivacyRequest(input *UpdateDomainContactPrivacyInput) (req *request.Request, output *UpdateDomainContactPrivacyOutput) { op := &request.Operation{ Name: opUpdateDomainContactPrivacy, @@ -1602,9 +1626,8 @@ func (c *Route53Domains) UpdateDomainContactPrivacyRequest(input *UpdateDomainCo input = &UpdateDomainContactPrivacyInput{} } - req = c.newRequest(op, input, output) output = &UpdateDomainContactPrivacyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1614,7 +1637,7 @@ func (c *Route53Domains) UpdateDomainContactPrivacyRequest(input *UpdateDomainCo // the privacy option is enabled, personal information such as postal or email // address is hidden from the results of a public WHOIS query. The privacy services // are provided by the AWS registrar, Gandi. For more information, see the Gandi -// privacy features (http://www.gandi.net/domain/whois/?currency=USD&lang=en). +// privacy features (http://www.gandi.net/domain/whois/?currency=USD&lang=en). // // This operation only affects the privacy of the specified contact type (registrant, // administrator, or tech). Successful acceptance returns an operation ID that @@ -1630,24 +1653,25 @@ func (c *Route53Domains) UpdateDomainContactPrivacyRequest(input *UpdateDomainCo // API operation UpdateDomainContactPrivacy for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // -// * DuplicateRequest +// * ErrCodeDuplicateRequest "DuplicateRequest" // The request is already in progress for the domain. // -// * TLDRulesViolation +// * ErrCodeTLDRulesViolation "TLDRulesViolation" // The top-level domain does not support this operation. // -// * OperationLimitExceeded +// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" // The number of operations or jobs running exceeded the allowed threshold for // the account. // -// * UnsupportedTLD +// * ErrCodeUnsupportedTLD "UnsupportedTLD" // Amazon Route 53 does not support this top-level domain. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainContactPrivacy func (c *Route53Domains) UpdateDomainContactPrivacy(input *UpdateDomainContactPrivacyInput) (*UpdateDomainContactPrivacyOutput, error) { req, out := c.UpdateDomainContactPrivacyRequest(input) err := req.Send() @@ -1680,6 +1704,7 @@ const opUpdateDomainNameservers = "UpdateDomainNameservers" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainNameservers func (c *Route53Domains) UpdateDomainNameserversRequest(input *UpdateDomainNameserversInput) (req *request.Request, output *UpdateDomainNameserversOutput) { op := &request.Operation{ Name: opUpdateDomainNameservers, @@ -1691,9 +1716,8 @@ func (c *Route53Domains) UpdateDomainNameserversRequest(input *UpdateDomainNames input = &UpdateDomainNameserversInput{} } - req = c.newRequest(op, input, output) output = &UpdateDomainNameserversOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1716,24 +1740,25 @@ func (c *Route53Domains) UpdateDomainNameserversRequest(input *UpdateDomainNames // API operation UpdateDomainNameservers for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // -// * DuplicateRequest +// * ErrCodeDuplicateRequest "DuplicateRequest" // The request is already in progress for the domain. // -// * TLDRulesViolation +// * ErrCodeTLDRulesViolation "TLDRulesViolation" // The top-level domain does not support this operation. // -// * OperationLimitExceeded +// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" // The number of operations or jobs running exceeded the allowed threshold for // the account. // -// * UnsupportedTLD +// * ErrCodeUnsupportedTLD "UnsupportedTLD" // Amazon Route 53 does not support this top-level domain. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainNameservers func (c *Route53Domains) UpdateDomainNameservers(input *UpdateDomainNameserversInput) (*UpdateDomainNameserversOutput, error) { req, out := c.UpdateDomainNameserversRequest(input) err := req.Send() @@ -1766,6 +1791,7 @@ const opUpdateTagsForDomain = "UpdateTagsForDomain" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateTagsForDomain func (c *Route53Domains) UpdateTagsForDomainRequest(input *UpdateTagsForDomainInput) (req *request.Request, output *UpdateTagsForDomainOutput) { op := &request.Operation{ Name: opUpdateTagsForDomain, @@ -1777,9 +1803,8 @@ func (c *Route53Domains) UpdateTagsForDomainRequest(input *UpdateTagsForDomainIn input = &UpdateTagsForDomainInput{} } - req = c.newRequest(op, input, output) output = &UpdateTagsForDomainOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1787,8 +1812,8 @@ func (c *Route53Domains) UpdateTagsForDomainRequest(input *UpdateTagsForDomainIn // // This operation adds or updates tags for a specified domain. // -// All tag operations are eventually consistent; subsequent operations may -// not immediately represent all issued operations. +// All tag operations are eventually consistent; subsequent operations may not +// immediately represent all issued operations. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1798,18 +1823,19 @@ func (c *Route53Domains) UpdateTagsForDomainRequest(input *UpdateTagsForDomainIn // API operation UpdateTagsForDomain for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // -// * OperationLimitExceeded +// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" // The number of operations or jobs running exceeded the allowed threshold for // the account. // -// * UnsupportedTLD +// * ErrCodeUnsupportedTLD "UnsupportedTLD" // Amazon Route 53 does not support this top-level domain. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateTagsForDomain func (c *Route53Domains) UpdateTagsForDomain(input *UpdateTagsForDomainInput) (*UpdateTagsForDomainOutput, error) { req, out := c.UpdateTagsForDomainRequest(input) err := req.Send() @@ -1842,6 +1868,7 @@ const opViewBilling = "ViewBilling" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ViewBilling func (c *Route53Domains) ViewBillingRequest(input *ViewBillingInput) (req *request.Request, output *ViewBillingOutput) { op := &request.Operation{ Name: opViewBilling, @@ -1853,9 +1880,8 @@ func (c *Route53Domains) ViewBillingRequest(input *ViewBillingInput) (req *reque input = &ViewBillingInput{} } - req = c.newRequest(op, input, output) output = &ViewBillingOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1872,17 +1898,19 @@ func (c *Route53Domains) ViewBillingRequest(input *ViewBillingInput) (req *reque // API operation ViewBilling for usage and error information. // // Returned Error Codes: -// * InvalidInput +// * ErrCodeInvalidInput "InvalidInput" // The requested item is not acceptable. For example, for an OperationId it // may refer to the ID of an operation that is already completed. For a domain // name, it may not be a valid domain name or belong to the requester account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ViewBilling func (c *Route53Domains) ViewBilling(input *ViewBillingInput) (*ViewBillingOutput, error) { req, out := c.ViewBillingRequest(input) err := req.Send() return out, err } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/BillingRecord type BillingRecord struct { _ struct{} `type:"structure"` @@ -1905,7 +1933,10 @@ type BillingRecord struct { // // Type: String // - // Valid values: REGISTER_DOMAIN TRANSFER_IN_DOMAIN RENEW_DOMAIN CHANGE_DOMAIN_OWNER + // Valid values: REGISTER_DOMAIN + // TRANSFER_IN_DOMAIN + // RENEW_DOMAIN + // CHANGE_DOMAIN_OWNER Operation *string `type:"string" enum:"OperationType"` // The price that you were charged for the operation, in US dollars. @@ -1926,7 +1957,38 @@ func (s BillingRecord) GoString() string { return s.String() } +// SetBillDate sets the BillDate field's value. +func (s *BillingRecord) SetBillDate(v time.Time) *BillingRecord { + s.BillDate = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *BillingRecord) SetDomainName(v string) *BillingRecord { + s.DomainName = &v + return s +} + +// SetInvoiceId sets the InvoiceId field's value. +func (s *BillingRecord) SetInvoiceId(v string) *BillingRecord { + s.InvoiceId = &v + return s +} + +// SetOperation sets the Operation field's value. +func (s *BillingRecord) SetOperation(v string) *BillingRecord { + s.Operation = &v + return s +} + +// SetPrice sets the Price field's value. +func (s *BillingRecord) SetPrice(v float64) *BillingRecord { + s.Price = &v + return s +} + // The CheckDomainAvailability request contains the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/CheckDomainAvailabilityRequest type CheckDomainAvailabilityInput struct { _ struct{} `type:"structure"` @@ -1972,27 +2034,45 @@ func (s *CheckDomainAvailabilityInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *CheckDomainAvailabilityInput) SetDomainName(v string) *CheckDomainAvailabilityInput { + s.DomainName = &v + return s +} + +// SetIdnLangCode sets the IdnLangCode field's value. +func (s *CheckDomainAvailabilityInput) SetIdnLangCode(v string) *CheckDomainAvailabilityInput { + s.IdnLangCode = &v + return s +} + // The CheckDomainAvailability response includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/CheckDomainAvailabilityResponse type CheckDomainAvailabilityOutput struct { _ struct{} `type:"structure"` // Whether the domain name is available for registering. // - // You can only register domains designated as AVAILABLE. + // You can only register domains designated as AVAILABLE. // - // Type: String + // Type: String // // Valid values: // - // AVAILABLE – The domain name is available. AVAILABLE_RESERVED – The domain - // name is reserved under specific conditions. AVAILABLE_PREORDER – The domain - // name is available and can be preordered. UNAVAILABLE – The domain name is - // not available. UNAVAILABLE_PREMIUM – The domain name is not available. UNAVAILABLE_RESTRICTED - // – The domain name is forbidden. RESERVED – The domain name has been reserved - // for another person or organization. DONT_KNOW – The TLD registry didn't reply - // with a definitive answer about whether the domain name is available. Amazon - // Route 53 can return this response for a variety of reasons, for example, - // the registry is performing maintenance. Try again later. + // * AVAILABLE – The domain name is available. + // * AVAILABLE_RESERVED – The domain name is reserved under specific conditions. + // + // * AVAILABLE_PREORDER – The domain name is available and can be preordered. + // + // * UNAVAILABLE – The domain name is not available. + // * UNAVAILABLE_PREMIUM – The domain name is not available. + // * UNAVAILABLE_RESTRICTED – The domain name is forbidden. + // * RESERVED – The domain name has been reserved for another person or organization. + // + // * DONT_KNOW – The TLD registry didn't reply with a definitive answer about + // whether the domain name is available. Amazon Route 53 can return this + // response for a variety of reasons, for example, the registry is performing + // maintenance. Try again later. // // Availability is a required field Availability *string `type:"string" required:"true" enum:"DomainAvailability"` @@ -2008,7 +2088,14 @@ func (s CheckDomainAvailabilityOutput) GoString() string { return s.String() } +// SetAvailability sets the Availability field's value. +func (s *CheckDomainAvailabilityOutput) SetAvailability(v string) *CheckDomainAvailabilityOutput { + s.Availability = &v + return s +} + // ContactDetail includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ContactDetail type ContactDetail struct { _ struct{} `type:"structure"` @@ -2233,7 +2320,92 @@ func (s *ContactDetail) Validate() error { return nil } +// SetAddressLine1 sets the AddressLine1 field's value. +func (s *ContactDetail) SetAddressLine1(v string) *ContactDetail { + s.AddressLine1 = &v + return s +} + +// SetAddressLine2 sets the AddressLine2 field's value. +func (s *ContactDetail) SetAddressLine2(v string) *ContactDetail { + s.AddressLine2 = &v + return s +} + +// SetCity sets the City field's value. +func (s *ContactDetail) SetCity(v string) *ContactDetail { + s.City = &v + return s +} + +// SetContactType sets the ContactType field's value. +func (s *ContactDetail) SetContactType(v string) *ContactDetail { + s.ContactType = &v + return s +} + +// SetCountryCode sets the CountryCode field's value. +func (s *ContactDetail) SetCountryCode(v string) *ContactDetail { + s.CountryCode = &v + return s +} + +// SetEmail sets the Email field's value. +func (s *ContactDetail) SetEmail(v string) *ContactDetail { + s.Email = &v + return s +} + +// SetExtraParams sets the ExtraParams field's value. +func (s *ContactDetail) SetExtraParams(v []*ExtraParam) *ContactDetail { + s.ExtraParams = v + return s +} + +// SetFax sets the Fax field's value. +func (s *ContactDetail) SetFax(v string) *ContactDetail { + s.Fax = &v + return s +} + +// SetFirstName sets the FirstName field's value. +func (s *ContactDetail) SetFirstName(v string) *ContactDetail { + s.FirstName = &v + return s +} + +// SetLastName sets the LastName field's value. +func (s *ContactDetail) SetLastName(v string) *ContactDetail { + s.LastName = &v + return s +} + +// SetOrganizationName sets the OrganizationName field's value. +func (s *ContactDetail) SetOrganizationName(v string) *ContactDetail { + s.OrganizationName = &v + return s +} + +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *ContactDetail) SetPhoneNumber(v string) *ContactDetail { + s.PhoneNumber = &v + return s +} + +// SetState sets the State field's value. +func (s *ContactDetail) SetState(v string) *ContactDetail { + s.State = &v + return s +} + +// SetZipCode sets the ZipCode field's value. +func (s *ContactDetail) SetZipCode(v string) *ContactDetail { + s.ZipCode = &v + return s +} + // The DeleteTagsForDomainRequest includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DeleteTagsForDomainRequest type DeleteTagsForDomainInput struct { _ struct{} `type:"structure"` @@ -2264,8 +2436,6 @@ type DeleteTagsForDomainInput struct { // // Required: No // - // '> - // // TagsToDelete is a required field TagsToDelete []*string `type:"list" required:"true"` } @@ -2296,6 +2466,19 @@ func (s *DeleteTagsForDomainInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DeleteTagsForDomainInput) SetDomainName(v string) *DeleteTagsForDomainInput { + s.DomainName = &v + return s +} + +// SetTagsToDelete sets the TagsToDelete field's value. +func (s *DeleteTagsForDomainInput) SetTagsToDelete(v []*string) *DeleteTagsForDomainInput { + s.TagsToDelete = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DeleteTagsForDomainResponse type DeleteTagsForDomainOutput struct { _ struct{} `type:"structure"` } @@ -2310,6 +2493,7 @@ func (s DeleteTagsForDomainOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DisableDomainAutoRenewRequest type DisableDomainAutoRenewInput struct { _ struct{} `type:"structure"` @@ -2340,6 +2524,13 @@ func (s *DisableDomainAutoRenewInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DisableDomainAutoRenewInput) SetDomainName(v string) *DisableDomainAutoRenewInput { + s.DomainName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DisableDomainAutoRenewResponse type DisableDomainAutoRenewOutput struct { _ struct{} `type:"structure"` } @@ -2355,6 +2546,7 @@ func (s DisableDomainAutoRenewOutput) GoString() string { } // The DisableDomainTransferLock request includes the following element. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DisableDomainTransferLockRequest type DisableDomainTransferLockInput struct { _ struct{} `type:"structure"` @@ -2397,7 +2589,14 @@ func (s *DisableDomainTransferLockInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DisableDomainTransferLockInput) SetDomainName(v string) *DisableDomainTransferLockInput { + s.DomainName = &v + return s +} + // The DisableDomainTransferLock response includes the following element. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DisableDomainTransferLockResponse type DisableDomainTransferLockOutput struct { _ struct{} `type:"structure"` @@ -2424,6 +2623,13 @@ func (s DisableDomainTransferLockOutput) GoString() string { return s.String() } +// SetOperationId sets the OperationId field's value. +func (s *DisableDomainTransferLockOutput) SetOperationId(v string) *DisableDomainTransferLockOutput { + s.OperationId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DomainSuggestion type DomainSuggestion struct { _ struct{} `type:"structure"` @@ -2442,6 +2648,19 @@ func (s DomainSuggestion) GoString() string { return s.String() } +// SetAvailability sets the Availability field's value. +func (s *DomainSuggestion) SetAvailability(v string) *DomainSuggestion { + s.Availability = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DomainSuggestion) SetDomainName(v string) *DomainSuggestion { + s.DomainName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DomainSummary type DomainSummary struct { _ struct{} `type:"structure"` @@ -2483,6 +2702,31 @@ func (s DomainSummary) GoString() string { return s.String() } +// SetAutoRenew sets the AutoRenew field's value. +func (s *DomainSummary) SetAutoRenew(v bool) *DomainSummary { + s.AutoRenew = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DomainSummary) SetDomainName(v string) *DomainSummary { + s.DomainName = &v + return s +} + +// SetExpiry sets the Expiry field's value. +func (s *DomainSummary) SetExpiry(v time.Time) *DomainSummary { + s.Expiry = &v + return s +} + +// SetTransferLock sets the TransferLock field's value. +func (s *DomainSummary) SetTransferLock(v bool) *DomainSummary { + s.TransferLock = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/EnableDomainAutoRenewRequest type EnableDomainAutoRenewInput struct { _ struct{} `type:"structure"` @@ -2513,6 +2757,13 @@ func (s *EnableDomainAutoRenewInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *EnableDomainAutoRenewInput) SetDomainName(v string) *EnableDomainAutoRenewInput { + s.DomainName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/EnableDomainAutoRenewResponse type EnableDomainAutoRenewOutput struct { _ struct{} `type:"structure"` } @@ -2528,6 +2779,7 @@ func (s EnableDomainAutoRenewOutput) GoString() string { } // The EnableDomainTransferLock request includes the following element. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/EnableDomainTransferLockRequest type EnableDomainTransferLockInput struct { _ struct{} `type:"structure"` @@ -2570,7 +2822,14 @@ func (s *EnableDomainTransferLockInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *EnableDomainTransferLockInput) SetDomainName(v string) *EnableDomainTransferLockInput { + s.DomainName = &v + return s +} + // The EnableDomainTransferLock response includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/EnableDomainTransferLockResponse type EnableDomainTransferLockOutput struct { _ struct{} `type:"structure"` @@ -2597,7 +2856,14 @@ func (s EnableDomainTransferLockOutput) GoString() string { return s.String() } +// SetOperationId sets the OperationId field's value. +func (s *EnableDomainTransferLockOutput) SetOperationId(v string) *EnableDomainTransferLockOutput { + s.OperationId = &v + return s +} + // ExtraParam includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ExtraParam type ExtraParam struct { _ struct{} `type:"structure"` @@ -2663,6 +2929,19 @@ func (s *ExtraParam) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *ExtraParam) SetName(v string) *ExtraParam { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ExtraParam) SetValue(v string) *ExtraParam { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetContactReachabilityStatusRequest type GetContactReachabilityStatusInput struct { _ struct{} `type:"structure"` @@ -2687,6 +2966,13 @@ func (s GetContactReachabilityStatusInput) GoString() string { return s.String() } +// SetDomainName sets the DomainName field's value. +func (s *GetContactReachabilityStatusInput) SetDomainName(v string) *GetContactReachabilityStatusInput { + s.DomainName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetContactReachabilityStatusResponse type GetContactReachabilityStatusOutput struct { _ struct{} `type:"structure"` @@ -2715,7 +3001,20 @@ func (s GetContactReachabilityStatusOutput) GoString() string { return s.String() } +// SetDomainName sets the DomainName field's value. +func (s *GetContactReachabilityStatusOutput) SetDomainName(v string) *GetContactReachabilityStatusOutput { + s.DomainName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetContactReachabilityStatusOutput) SetStatus(v string) *GetContactReachabilityStatusOutput { + s.Status = &v + return s +} + // The GetDomainDetail request includes the following element. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetDomainDetailRequest type GetDomainDetailInput struct { _ struct{} `type:"structure"` @@ -2758,7 +3057,14 @@ func (s *GetDomainDetailInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *GetDomainDetailInput) SetDomainName(v string) *GetDomainDetailInput { + s.DomainName = &v + return s +} + // The GetDomainDetail response includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetDomainDetailResponse type GetDomainDetailOutput struct { _ struct{} `type:"structure"` @@ -2920,6 +3226,133 @@ func (s GetDomainDetailOutput) GoString() string { return s.String() } +// SetAbuseContactEmail sets the AbuseContactEmail field's value. +func (s *GetDomainDetailOutput) SetAbuseContactEmail(v string) *GetDomainDetailOutput { + s.AbuseContactEmail = &v + return s +} + +// SetAbuseContactPhone sets the AbuseContactPhone field's value. +func (s *GetDomainDetailOutput) SetAbuseContactPhone(v string) *GetDomainDetailOutput { + s.AbuseContactPhone = &v + return s +} + +// SetAdminContact sets the AdminContact field's value. +func (s *GetDomainDetailOutput) SetAdminContact(v *ContactDetail) *GetDomainDetailOutput { + s.AdminContact = v + return s +} + +// SetAdminPrivacy sets the AdminPrivacy field's value. +func (s *GetDomainDetailOutput) SetAdminPrivacy(v bool) *GetDomainDetailOutput { + s.AdminPrivacy = &v + return s +} + +// SetAutoRenew sets the AutoRenew field's value. +func (s *GetDomainDetailOutput) SetAutoRenew(v bool) *GetDomainDetailOutput { + s.AutoRenew = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *GetDomainDetailOutput) SetCreationDate(v time.Time) *GetDomainDetailOutput { + s.CreationDate = &v + return s +} + +// SetDnsSec sets the DnsSec field's value. +func (s *GetDomainDetailOutput) SetDnsSec(v string) *GetDomainDetailOutput { + s.DnsSec = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *GetDomainDetailOutput) SetDomainName(v string) *GetDomainDetailOutput { + s.DomainName = &v + return s +} + +// SetExpirationDate sets the ExpirationDate field's value. +func (s *GetDomainDetailOutput) SetExpirationDate(v time.Time) *GetDomainDetailOutput { + s.ExpirationDate = &v + return s +} + +// SetNameservers sets the Nameservers field's value. +func (s *GetDomainDetailOutput) SetNameservers(v []*Nameserver) *GetDomainDetailOutput { + s.Nameservers = v + return s +} + +// SetRegistrantContact sets the RegistrantContact field's value. +func (s *GetDomainDetailOutput) SetRegistrantContact(v *ContactDetail) *GetDomainDetailOutput { + s.RegistrantContact = v + return s +} + +// SetRegistrantPrivacy sets the RegistrantPrivacy field's value. +func (s *GetDomainDetailOutput) SetRegistrantPrivacy(v bool) *GetDomainDetailOutput { + s.RegistrantPrivacy = &v + return s +} + +// SetRegistrarName sets the RegistrarName field's value. +func (s *GetDomainDetailOutput) SetRegistrarName(v string) *GetDomainDetailOutput { + s.RegistrarName = &v + return s +} + +// SetRegistrarUrl sets the RegistrarUrl field's value. +func (s *GetDomainDetailOutput) SetRegistrarUrl(v string) *GetDomainDetailOutput { + s.RegistrarUrl = &v + return s +} + +// SetRegistryDomainId sets the RegistryDomainId field's value. +func (s *GetDomainDetailOutput) SetRegistryDomainId(v string) *GetDomainDetailOutput { + s.RegistryDomainId = &v + return s +} + +// SetReseller sets the Reseller field's value. +func (s *GetDomainDetailOutput) SetReseller(v string) *GetDomainDetailOutput { + s.Reseller = &v + return s +} + +// SetStatusList sets the StatusList field's value. +func (s *GetDomainDetailOutput) SetStatusList(v []*string) *GetDomainDetailOutput { + s.StatusList = v + return s +} + +// SetTechContact sets the TechContact field's value. +func (s *GetDomainDetailOutput) SetTechContact(v *ContactDetail) *GetDomainDetailOutput { + s.TechContact = v + return s +} + +// SetTechPrivacy sets the TechPrivacy field's value. +func (s *GetDomainDetailOutput) SetTechPrivacy(v bool) *GetDomainDetailOutput { + s.TechPrivacy = &v + return s +} + +// SetUpdatedDate sets the UpdatedDate field's value. +func (s *GetDomainDetailOutput) SetUpdatedDate(v time.Time) *GetDomainDetailOutput { + s.UpdatedDate = &v + return s +} + +// SetWhoIsServer sets the WhoIsServer field's value. +func (s *GetDomainDetailOutput) SetWhoIsServer(v string) *GetDomainDetailOutput { + s.WhoIsServer = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetDomainSuggestionsRequest type GetDomainSuggestionsInput struct { _ struct{} `type:"structure"` @@ -2962,6 +3395,25 @@ func (s *GetDomainSuggestionsInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *GetDomainSuggestionsInput) SetDomainName(v string) *GetDomainSuggestionsInput { + s.DomainName = &v + return s +} + +// SetOnlyAvailable sets the OnlyAvailable field's value. +func (s *GetDomainSuggestionsInput) SetOnlyAvailable(v bool) *GetDomainSuggestionsInput { + s.OnlyAvailable = &v + return s +} + +// SetSuggestionCount sets the SuggestionCount field's value. +func (s *GetDomainSuggestionsInput) SetSuggestionCount(v int64) *GetDomainSuggestionsInput { + s.SuggestionCount = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetDomainSuggestionsResponse type GetDomainSuggestionsOutput struct { _ struct{} `type:"structure"` @@ -2978,7 +3430,14 @@ func (s GetDomainSuggestionsOutput) GoString() string { return s.String() } +// SetSuggestionsList sets the SuggestionsList field's value. +func (s *GetDomainSuggestionsOutput) SetSuggestionsList(v []*DomainSuggestion) *GetDomainSuggestionsOutput { + s.SuggestionsList = v + return s +} + // The GetOperationDetail request includes the following element. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetOperationDetailRequest type GetOperationDetailInput struct { _ struct{} `type:"structure"` @@ -3018,7 +3477,14 @@ func (s *GetOperationDetailInput) Validate() error { return nil } +// SetOperationId sets the OperationId field's value. +func (s *GetOperationDetailInput) SetOperationId(v string) *GetOperationDetailInput { + s.OperationId = &v + return s +} + // The GetOperationDetail response includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetOperationDetailResponse type GetOperationDetailOutput struct { _ struct{} `type:"structure"` @@ -3061,7 +3527,44 @@ func (s GetOperationDetailOutput) GoString() string { return s.String() } +// SetDomainName sets the DomainName field's value. +func (s *GetOperationDetailOutput) SetDomainName(v string) *GetOperationDetailOutput { + s.DomainName = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *GetOperationDetailOutput) SetMessage(v string) *GetOperationDetailOutput { + s.Message = &v + return s +} + +// SetOperationId sets the OperationId field's value. +func (s *GetOperationDetailOutput) SetOperationId(v string) *GetOperationDetailOutput { + s.OperationId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetOperationDetailOutput) SetStatus(v string) *GetOperationDetailOutput { + s.Status = &v + return s +} + +// SetSubmittedDate sets the SubmittedDate field's value. +func (s *GetOperationDetailOutput) SetSubmittedDate(v time.Time) *GetOperationDetailOutput { + s.SubmittedDate = &v + return s +} + +// SetType sets the Type field's value. +func (s *GetOperationDetailOutput) SetType(v string) *GetOperationDetailOutput { + s.Type = &v + return s +} + // The ListDomains request includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ListDomainsRequest type ListDomainsInput struct { _ struct{} `type:"structure"` @@ -3103,7 +3606,20 @@ func (s ListDomainsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListDomainsInput) SetMarker(v string) *ListDomainsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListDomainsInput) SetMaxItems(v int64) *ListDomainsInput { + s.MaxItems = &v + return s +} + // The ListDomains response includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ListDomainsResponse type ListDomainsOutput struct { _ struct{} `type:"structure"` @@ -3136,7 +3652,20 @@ func (s ListDomainsOutput) GoString() string { return s.String() } +// SetDomains sets the Domains field's value. +func (s *ListDomainsOutput) SetDomains(v []*DomainSummary) *ListDomainsOutput { + s.Domains = v + return s +} + +// SetNextPageMarker sets the NextPageMarker field's value. +func (s *ListDomainsOutput) SetNextPageMarker(v string) *ListDomainsOutput { + s.NextPageMarker = &v + return s +} + // The ListOperations request includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ListOperationsRequest type ListOperationsInput struct { _ struct{} `type:"structure"` @@ -3176,7 +3705,20 @@ func (s ListOperationsInput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListOperationsInput) SetMarker(v string) *ListOperationsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListOperationsInput) SetMaxItems(v int64) *ListOperationsInput { + s.MaxItems = &v + return s +} + // The ListOperations response includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ListOperationsResponse type ListOperationsOutput struct { _ struct{} `type:"structure"` @@ -3209,7 +3751,20 @@ func (s ListOperationsOutput) GoString() string { return s.String() } +// SetNextPageMarker sets the NextPageMarker field's value. +func (s *ListOperationsOutput) SetNextPageMarker(v string) *ListOperationsOutput { + s.NextPageMarker = &v + return s +} + +// SetOperations sets the Operations field's value. +func (s *ListOperationsOutput) SetOperations(v []*OperationSummary) *ListOperationsOutput { + s.Operations = v + return s +} + // The ListTagsForDomainRequest includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ListTagsForDomainRequest type ListTagsForDomainInput struct { _ struct{} `type:"structure"` @@ -3242,7 +3797,14 @@ func (s *ListTagsForDomainInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *ListTagsForDomainInput) SetDomainName(v string) *ListTagsForDomainInput { + s.DomainName = &v + return s +} + // The ListTagsForDomain response includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ListTagsForDomainResponse type ListTagsForDomainOutput struct { _ struct{} `type:"structure"` @@ -3252,13 +3814,13 @@ type ListTagsForDomainOutput struct { // // Each tag includes the following elements. // - // Key + // * Key // // The key (name) of a tag. // // Type: String // - // Value + // * Value // // The value of a tag. // @@ -3278,7 +3840,14 @@ func (s ListTagsForDomainOutput) GoString() string { return s.String() } +// SetTagList sets the TagList field's value. +func (s *ListTagsForDomainOutput) SetTagList(v []*Tag) *ListTagsForDomainOutput { + s.TagList = v + return s +} + // Nameserver includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/Nameserver type Nameserver struct { _ struct{} `type:"structure"` @@ -3329,7 +3898,20 @@ func (s *Nameserver) Validate() error { return nil } +// SetGlueIps sets the GlueIps field's value. +func (s *Nameserver) SetGlueIps(v []*string) *Nameserver { + s.GlueIps = v + return s +} + +// SetName sets the Name field's value. +func (s *Nameserver) SetName(v string) *Nameserver { + s.Name = &v + return s +} + // OperationSummary includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/OperationSummary type OperationSummary struct { _ struct{} `type:"structure"` @@ -3373,7 +3955,32 @@ func (s OperationSummary) GoString() string { return s.String() } +// SetOperationId sets the OperationId field's value. +func (s *OperationSummary) SetOperationId(v string) *OperationSummary { + s.OperationId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *OperationSummary) SetStatus(v string) *OperationSummary { + s.Status = &v + return s +} + +// SetSubmittedDate sets the SubmittedDate field's value. +func (s *OperationSummary) SetSubmittedDate(v time.Time) *OperationSummary { + s.SubmittedDate = &v + return s +} + +// SetType sets the Type field's value. +func (s *OperationSummary) SetType(v string) *OperationSummary { + s.Type = &v + return s +} + // The RegisterDomain request includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RegisterDomainRequest type RegisterDomainInput struct { _ struct{} `type:"structure"` @@ -3556,7 +4163,68 @@ func (s *RegisterDomainInput) Validate() error { return nil } +// SetAdminContact sets the AdminContact field's value. +func (s *RegisterDomainInput) SetAdminContact(v *ContactDetail) *RegisterDomainInput { + s.AdminContact = v + return s +} + +// SetAutoRenew sets the AutoRenew field's value. +func (s *RegisterDomainInput) SetAutoRenew(v bool) *RegisterDomainInput { + s.AutoRenew = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *RegisterDomainInput) SetDomainName(v string) *RegisterDomainInput { + s.DomainName = &v + return s +} + +// SetDurationInYears sets the DurationInYears field's value. +func (s *RegisterDomainInput) SetDurationInYears(v int64) *RegisterDomainInput { + s.DurationInYears = &v + return s +} + +// SetIdnLangCode sets the IdnLangCode field's value. +func (s *RegisterDomainInput) SetIdnLangCode(v string) *RegisterDomainInput { + s.IdnLangCode = &v + return s +} + +// SetPrivacyProtectAdminContact sets the PrivacyProtectAdminContact field's value. +func (s *RegisterDomainInput) SetPrivacyProtectAdminContact(v bool) *RegisterDomainInput { + s.PrivacyProtectAdminContact = &v + return s +} + +// SetPrivacyProtectRegistrantContact sets the PrivacyProtectRegistrantContact field's value. +func (s *RegisterDomainInput) SetPrivacyProtectRegistrantContact(v bool) *RegisterDomainInput { + s.PrivacyProtectRegistrantContact = &v + return s +} + +// SetPrivacyProtectTechContact sets the PrivacyProtectTechContact field's value. +func (s *RegisterDomainInput) SetPrivacyProtectTechContact(v bool) *RegisterDomainInput { + s.PrivacyProtectTechContact = &v + return s +} + +// SetRegistrantContact sets the RegistrantContact field's value. +func (s *RegisterDomainInput) SetRegistrantContact(v *ContactDetail) *RegisterDomainInput { + s.RegistrantContact = v + return s +} + +// SetTechContact sets the TechContact field's value. +func (s *RegisterDomainInput) SetTechContact(v *ContactDetail) *RegisterDomainInput { + s.TechContact = v + return s +} + // The RegisterDomain response includes the following element. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RegisterDomainResponse type RegisterDomainOutput struct { _ struct{} `type:"structure"` @@ -3583,8 +4251,15 @@ func (s RegisterDomainOutput) GoString() string { return s.String() } +// SetOperationId sets the OperationId field's value. +func (s *RegisterDomainOutput) SetOperationId(v string) *RegisterDomainOutput { + s.OperationId = &v + return s +} + // A RenewDomain request includes the number of years that you want to renew // for and the current expiration year. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RenewDomainRequest type RenewDomainInput struct { _ struct{} `type:"structure"` @@ -3649,6 +4324,25 @@ func (s *RenewDomainInput) Validate() error { return nil } +// SetCurrentExpiryYear sets the CurrentExpiryYear field's value. +func (s *RenewDomainInput) SetCurrentExpiryYear(v int64) *RenewDomainInput { + s.CurrentExpiryYear = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *RenewDomainInput) SetDomainName(v string) *RenewDomainInput { + s.DomainName = &v + return s +} + +// SetDurationInYears sets the DurationInYears field's value. +func (s *RenewDomainInput) SetDurationInYears(v int64) *RenewDomainInput { + s.DurationInYears = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RenewDomainResponse type RenewDomainOutput struct { _ struct{} `type:"structure"` @@ -3666,6 +4360,13 @@ func (s RenewDomainOutput) GoString() string { return s.String() } +// SetOperationId sets the OperationId field's value. +func (s *RenewDomainOutput) SetOperationId(v string) *RenewDomainOutput { + s.OperationId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ResendContactReachabilityEmailRequest type ResendContactReachabilityEmailInput struct { _ struct{} `type:"structure"` @@ -3690,6 +4391,13 @@ func (s ResendContactReachabilityEmailInput) GoString() string { return s.String() } +// SetDomainName sets the DomainName field's value. +func (s *ResendContactReachabilityEmailInput) SetDomainName(v string) *ResendContactReachabilityEmailInput { + s.DomainName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ResendContactReachabilityEmailResponse type ResendContactReachabilityEmailOutput struct { _ struct{} `type:"structure"` @@ -3716,7 +4424,26 @@ func (s ResendContactReachabilityEmailOutput) GoString() string { return s.String() } +// SetDomainName sets the DomainName field's value. +func (s *ResendContactReachabilityEmailOutput) SetDomainName(v string) *ResendContactReachabilityEmailOutput { + s.DomainName = &v + return s +} + +// SetEmailAddress sets the EmailAddress field's value. +func (s *ResendContactReachabilityEmailOutput) SetEmailAddress(v string) *ResendContactReachabilityEmailOutput { + s.EmailAddress = &v + return s +} + +// SetIsAlreadyVerified sets the IsAlreadyVerified field's value. +func (s *ResendContactReachabilityEmailOutput) SetIsAlreadyVerified(v bool) *ResendContactReachabilityEmailOutput { + s.IsAlreadyVerified = &v + return s +} + // The RetrieveDomainAuthCode request includes the following element. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RetrieveDomainAuthCodeRequest type RetrieveDomainAuthCodeInput struct { _ struct{} `type:"structure"` @@ -3759,7 +4486,14 @@ func (s *RetrieveDomainAuthCodeInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *RetrieveDomainAuthCodeInput) SetDomainName(v string) *RetrieveDomainAuthCodeInput { + s.DomainName = &v + return s +} + // The RetrieveDomainAuthCode response includes the following element. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RetrieveDomainAuthCodeResponse type RetrieveDomainAuthCodeOutput struct { _ struct{} `type:"structure"` @@ -3781,7 +4515,14 @@ func (s RetrieveDomainAuthCodeOutput) GoString() string { return s.String() } +// SetAuthCode sets the AuthCode field's value. +func (s *RetrieveDomainAuthCodeOutput) SetAuthCode(v string) *RetrieveDomainAuthCodeOutput { + s.AuthCode = &v + return s +} + // Each tag includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/Tag type Tag struct { _ struct{} `type:"structure"` @@ -3822,7 +4563,20 @@ func (s Tag) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // The TransferDomain request includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/TransferDomainRequest type TransferDomainInput struct { _ struct{} `type:"structure"` @@ -4032,7 +4786,80 @@ func (s *TransferDomainInput) Validate() error { return nil } +// SetAdminContact sets the AdminContact field's value. +func (s *TransferDomainInput) SetAdminContact(v *ContactDetail) *TransferDomainInput { + s.AdminContact = v + return s +} + +// SetAuthCode sets the AuthCode field's value. +func (s *TransferDomainInput) SetAuthCode(v string) *TransferDomainInput { + s.AuthCode = &v + return s +} + +// SetAutoRenew sets the AutoRenew field's value. +func (s *TransferDomainInput) SetAutoRenew(v bool) *TransferDomainInput { + s.AutoRenew = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *TransferDomainInput) SetDomainName(v string) *TransferDomainInput { + s.DomainName = &v + return s +} + +// SetDurationInYears sets the DurationInYears field's value. +func (s *TransferDomainInput) SetDurationInYears(v int64) *TransferDomainInput { + s.DurationInYears = &v + return s +} + +// SetIdnLangCode sets the IdnLangCode field's value. +func (s *TransferDomainInput) SetIdnLangCode(v string) *TransferDomainInput { + s.IdnLangCode = &v + return s +} + +// SetNameservers sets the Nameservers field's value. +func (s *TransferDomainInput) SetNameservers(v []*Nameserver) *TransferDomainInput { + s.Nameservers = v + return s +} + +// SetPrivacyProtectAdminContact sets the PrivacyProtectAdminContact field's value. +func (s *TransferDomainInput) SetPrivacyProtectAdminContact(v bool) *TransferDomainInput { + s.PrivacyProtectAdminContact = &v + return s +} + +// SetPrivacyProtectRegistrantContact sets the PrivacyProtectRegistrantContact field's value. +func (s *TransferDomainInput) SetPrivacyProtectRegistrantContact(v bool) *TransferDomainInput { + s.PrivacyProtectRegistrantContact = &v + return s +} + +// SetPrivacyProtectTechContact sets the PrivacyProtectTechContact field's value. +func (s *TransferDomainInput) SetPrivacyProtectTechContact(v bool) *TransferDomainInput { + s.PrivacyProtectTechContact = &v + return s +} + +// SetRegistrantContact sets the RegistrantContact field's value. +func (s *TransferDomainInput) SetRegistrantContact(v *ContactDetail) *TransferDomainInput { + s.RegistrantContact = v + return s +} + +// SetTechContact sets the TechContact field's value. +func (s *TransferDomainInput) SetTechContact(v *ContactDetail) *TransferDomainInput { + s.TechContact = v + return s +} + // The TranserDomain response includes the following element. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/TransferDomainResponse type TransferDomainOutput struct { _ struct{} `type:"structure"` @@ -4059,7 +4886,14 @@ func (s TransferDomainOutput) GoString() string { return s.String() } +// SetOperationId sets the OperationId field's value. +func (s *TransferDomainOutput) SetOperationId(v string) *TransferDomainOutput { + s.OperationId = &v + return s +} + // The UpdateDomainContact request includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainContactRequest type UpdateDomainContactInput struct { _ struct{} `type:"structure"` @@ -4150,7 +4984,32 @@ func (s *UpdateDomainContactInput) Validate() error { return nil } +// SetAdminContact sets the AdminContact field's value. +func (s *UpdateDomainContactInput) SetAdminContact(v *ContactDetail) *UpdateDomainContactInput { + s.AdminContact = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *UpdateDomainContactInput) SetDomainName(v string) *UpdateDomainContactInput { + s.DomainName = &v + return s +} + +// SetRegistrantContact sets the RegistrantContact field's value. +func (s *UpdateDomainContactInput) SetRegistrantContact(v *ContactDetail) *UpdateDomainContactInput { + s.RegistrantContact = v + return s +} + +// SetTechContact sets the TechContact field's value. +func (s *UpdateDomainContactInput) SetTechContact(v *ContactDetail) *UpdateDomainContactInput { + s.TechContact = v + return s +} + // The UpdateDomainContact response includes the following element. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainContactResponse type UpdateDomainContactOutput struct { _ struct{} `type:"structure"` @@ -4177,7 +5036,14 @@ func (s UpdateDomainContactOutput) GoString() string { return s.String() } +// SetOperationId sets the OperationId field's value. +func (s *UpdateDomainContactOutput) SetOperationId(v string) *UpdateDomainContactOutput { + s.OperationId = &v + return s +} + // The UpdateDomainContactPrivacy request includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainContactPrivacyRequest type UpdateDomainContactPrivacyInput struct { _ struct{} `type:"structure"` @@ -4262,7 +5128,32 @@ func (s *UpdateDomainContactPrivacyInput) Validate() error { return nil } +// SetAdminPrivacy sets the AdminPrivacy field's value. +func (s *UpdateDomainContactPrivacyInput) SetAdminPrivacy(v bool) *UpdateDomainContactPrivacyInput { + s.AdminPrivacy = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *UpdateDomainContactPrivacyInput) SetDomainName(v string) *UpdateDomainContactPrivacyInput { + s.DomainName = &v + return s +} + +// SetRegistrantPrivacy sets the RegistrantPrivacy field's value. +func (s *UpdateDomainContactPrivacyInput) SetRegistrantPrivacy(v bool) *UpdateDomainContactPrivacyInput { + s.RegistrantPrivacy = &v + return s +} + +// SetTechPrivacy sets the TechPrivacy field's value. +func (s *UpdateDomainContactPrivacyInput) SetTechPrivacy(v bool) *UpdateDomainContactPrivacyInput { + s.TechPrivacy = &v + return s +} + // The UpdateDomainContactPrivacy response includes the following element. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainContactPrivacyResponse type UpdateDomainContactPrivacyOutput struct { _ struct{} `type:"structure"` @@ -4289,7 +5180,14 @@ func (s UpdateDomainContactPrivacyOutput) GoString() string { return s.String() } +// SetOperationId sets the OperationId field's value. +func (s *UpdateDomainContactPrivacyOutput) SetOperationId(v string) *UpdateDomainContactPrivacyOutput { + s.OperationId = &v + return s +} + // The UpdateDomainNameserver request includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainNameserversRequest type UpdateDomainNameserversInput struct { _ struct{} `type:"structure"` @@ -4359,7 +5257,26 @@ func (s *UpdateDomainNameserversInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *UpdateDomainNameserversInput) SetDomainName(v string) *UpdateDomainNameserversInput { + s.DomainName = &v + return s +} + +// SetFIAuthKey sets the FIAuthKey field's value. +func (s *UpdateDomainNameserversInput) SetFIAuthKey(v string) *UpdateDomainNameserversInput { + s.FIAuthKey = &v + return s +} + +// SetNameservers sets the Nameservers field's value. +func (s *UpdateDomainNameserversInput) SetNameservers(v []*Nameserver) *UpdateDomainNameserversInput { + s.Nameservers = v + return s +} + // The UpdateDomainNameservers response includes the following element. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainNameserversResponse type UpdateDomainNameserversOutput struct { _ struct{} `type:"structure"` @@ -4386,7 +5303,14 @@ func (s UpdateDomainNameserversOutput) GoString() string { return s.String() } +// SetOperationId sets the OperationId field's value. +func (s *UpdateDomainNameserversOutput) SetOperationId(v string) *UpdateDomainNameserversOutput { + s.OperationId = &v + return s +} + // The UpdateTagsForDomainRequest includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateTagsForDomainRequest type UpdateTagsForDomainInput struct { _ struct{} `type:"structure"` @@ -4420,7 +5344,7 @@ type UpdateTagsForDomainInput struct { // // '> Each tag includes the following elements: // - // Key + // * Key // // The key (name) of a tag. // @@ -4434,7 +5358,7 @@ type UpdateTagsForDomainInput struct { // // Required: Yes // - // Value + // * Value // // The value of a tag. // @@ -4473,6 +5397,19 @@ func (s *UpdateTagsForDomainInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *UpdateTagsForDomainInput) SetDomainName(v string) *UpdateTagsForDomainInput { + s.DomainName = &v + return s +} + +// SetTagsToUpdate sets the TagsToUpdate field's value. +func (s *UpdateTagsForDomainInput) SetTagsToUpdate(v []*Tag) *UpdateTagsForDomainInput { + s.TagsToUpdate = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateTagsForDomainResponse type UpdateTagsForDomainOutput struct { _ struct{} `type:"structure"` } @@ -4488,6 +5425,7 @@ func (s UpdateTagsForDomainOutput) GoString() string { } // The ViewBilling request includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ViewBillingRequest type ViewBillingInput struct { _ struct{} `type:"structure"` @@ -4512,8 +5450,8 @@ type ViewBillingInput struct { // // Default: None // - // Constraints: The marker must match the value of NextPageMarker that was - // returned in the previous response. + // Constraints: The marker must match the value of NextPageMarker that was returned + // in the previous response. // // Required: No Marker *string `type:"string"` @@ -4550,7 +5488,32 @@ func (s ViewBillingInput) GoString() string { return s.String() } +// SetEnd sets the End field's value. +func (s *ViewBillingInput) SetEnd(v time.Time) *ViewBillingInput { + s.End = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ViewBillingInput) SetMarker(v string) *ViewBillingInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ViewBillingInput) SetMaxItems(v int64) *ViewBillingInput { + s.MaxItems = &v + return s +} + +// SetStart sets the Start field's value. +func (s *ViewBillingInput) SetStart(v time.Time) *ViewBillingInput { + s.Start = &v + return s +} + // The ViewBilling response includes the following elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ViewBillingResponse type ViewBillingOutput struct { _ struct{} `type:"structure"` @@ -4581,6 +5544,18 @@ func (s ViewBillingOutput) GoString() string { return s.String() } +// SetBillingRecords sets the BillingRecords field's value. +func (s *ViewBillingOutput) SetBillingRecords(v []*BillingRecord) *ViewBillingOutput { + s.BillingRecords = v + return s +} + +// SetNextPageMarker sets the NextPageMarker field's value. +func (s *ViewBillingOutput) SetNextPageMarker(v string) *ViewBillingOutput { + s.NextPageMarker = &v + return s +} + const ( // ContactTypePerson is a ContactType enum value ContactTypePerson = "PERSON" diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53domains/errors.go b/vendor/github.com/aws/aws-sdk-go/service/route53domains/errors.go new file mode 100644 index 000000000..f72c2fe59 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/route53domains/errors.go @@ -0,0 +1,45 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package route53domains + +const ( + + // ErrCodeDomainLimitExceeded for service response error code + // "DomainLimitExceeded". + // + // The number of domains has exceeded the allowed threshold for the account. + ErrCodeDomainLimitExceeded = "DomainLimitExceeded" + + // ErrCodeDuplicateRequest for service response error code + // "DuplicateRequest". + // + // The request is already in progress for the domain. + ErrCodeDuplicateRequest = "DuplicateRequest" + + // ErrCodeInvalidInput for service response error code + // "InvalidInput". + // + // The requested item is not acceptable. For example, for an OperationId it + // may refer to the ID of an operation that is already completed. For a domain + // name, it may not be a valid domain name or belong to the requester account. + ErrCodeInvalidInput = "InvalidInput" + + // ErrCodeOperationLimitExceeded for service response error code + // "OperationLimitExceeded". + // + // The number of operations or jobs running exceeded the allowed threshold for + // the account. + ErrCodeOperationLimitExceeded = "OperationLimitExceeded" + + // ErrCodeTLDRulesViolation for service response error code + // "TLDRulesViolation". + // + // The top-level domain does not support this operation. + ErrCodeTLDRulesViolation = "TLDRulesViolation" + + // ErrCodeUnsupportedTLD for service response error code + // "UnsupportedTLD". + // + // Amazon Route 53 does not support this top-level domain. + ErrCodeUnsupportedTLD = "UnsupportedTLD" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53domains/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/route53domains/examples_test.go index eecb1bb88..0452fac5f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53domains/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53domains/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleRoute53Domains_CheckDomainAvailability() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -42,11 +38,7 @@ func ExampleRoute53Domains_CheckDomainAvailability() { } func ExampleRoute53Domains_DeleteTagsForDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -71,11 +63,7 @@ func ExampleRoute53Domains_DeleteTagsForDomain() { } func ExampleRoute53Domains_DisableDomainAutoRenew() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -96,11 +84,7 @@ func ExampleRoute53Domains_DisableDomainAutoRenew() { } func ExampleRoute53Domains_DisableDomainTransferLock() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -121,11 +105,7 @@ func ExampleRoute53Domains_DisableDomainTransferLock() { } func ExampleRoute53Domains_EnableDomainAutoRenew() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -146,11 +126,7 @@ func ExampleRoute53Domains_EnableDomainAutoRenew() { } func ExampleRoute53Domains_EnableDomainTransferLock() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -171,11 +147,7 @@ func ExampleRoute53Domains_EnableDomainTransferLock() { } func ExampleRoute53Domains_GetContactReachabilityStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -196,11 +168,7 @@ func ExampleRoute53Domains_GetContactReachabilityStatus() { } func ExampleRoute53Domains_GetDomainDetail() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -221,11 +189,7 @@ func ExampleRoute53Domains_GetDomainDetail() { } func ExampleRoute53Domains_GetDomainSuggestions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -248,11 +212,7 @@ func ExampleRoute53Domains_GetDomainSuggestions() { } func ExampleRoute53Domains_GetOperationDetail() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -273,11 +233,7 @@ func ExampleRoute53Domains_GetOperationDetail() { } func ExampleRoute53Domains_ListDomains() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -299,11 +255,7 @@ func ExampleRoute53Domains_ListDomains() { } func ExampleRoute53Domains_ListOperations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -325,11 +277,7 @@ func ExampleRoute53Domains_ListOperations() { } func ExampleRoute53Domains_ListTagsForDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -350,11 +298,7 @@ func ExampleRoute53Domains_ListTagsForDomain() { } func ExampleRoute53Domains_RegisterDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -447,11 +391,7 @@ func ExampleRoute53Domains_RegisterDomain() { } func ExampleRoute53Domains_RenewDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -474,11 +414,7 @@ func ExampleRoute53Domains_RenewDomain() { } func ExampleRoute53Domains_ResendContactReachabilityEmail() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -499,11 +435,7 @@ func ExampleRoute53Domains_ResendContactReachabilityEmail() { } func ExampleRoute53Domains_RetrieveDomainAuthCode() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -524,11 +456,7 @@ func ExampleRoute53Domains_RetrieveDomainAuthCode() { } func ExampleRoute53Domains_TransferDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -632,11 +560,7 @@ func ExampleRoute53Domains_TransferDomain() { } func ExampleRoute53Domains_UpdateDomainContact() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -723,11 +647,7 @@ func ExampleRoute53Domains_UpdateDomainContact() { } func ExampleRoute53Domains_UpdateDomainContactPrivacy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -751,11 +671,7 @@ func ExampleRoute53Domains_UpdateDomainContactPrivacy() { } func ExampleRoute53Domains_UpdateDomainNameservers() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -787,11 +703,7 @@ func ExampleRoute53Domains_UpdateDomainNameservers() { } func ExampleRoute53Domains_UpdateTagsForDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) @@ -819,11 +731,7 @@ func ExampleRoute53Domains_UpdateTagsForDomain() { } func ExampleRoute53Domains_ViewBilling() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := route53domains.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53domains/route53domainsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/route53domains/route53domainsiface/interface.go index 6c9b3bb60..667cc9d90 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53domains/route53domainsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53domains/route53domainsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockRoute53DomainsClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53domains/service.go b/vendor/github.com/aws/aws-sdk-go/service/route53domains/service.go index f119641ea..21e26261a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53domains/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53domains/service.go @@ -12,8 +12,9 @@ import ( ) // Route53Domains is a client for Amazon Route 53 Domains. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15 type Route53Domains struct { *client.Client } @@ -24,8 +25,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "route53domains" +// Service information constants +const ( + ServiceName = "route53domains" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the Route53Domains client with a session. // If additional configuration is needed for the client instance use the optional @@ -38,17 +42,18 @@ const ServiceName = "route53domains" // // Create a Route53Domains client with additional configuration // svc := route53domains.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Route53Domains { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *Route53Domains { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Route53Domains { svc := &Route53Domains{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-05-15", diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/api.go b/vendor/github.com/aws/aws-sdk-go/service/s3/api.go index 3ac043725..9b205f3f0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/api.go @@ -40,6 +40,7 @@ const opAbortMultipartUpload = "AbortMultipartUpload" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AbortMultipartUpload func (c *S3) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) (req *request.Request, output *AbortMultipartUploadOutput) { op := &request.Operation{ Name: opAbortMultipartUpload, @@ -51,9 +52,8 @@ func (c *S3) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) (req input = &AbortMultipartUploadInput{} } - req = c.newRequest(op, input, output) output = &AbortMultipartUploadOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -73,9 +73,10 @@ func (c *S3) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) (req // API operation AbortMultipartUpload for usage and error information. // // Returned Error Codes: -// * NoSuchUpload +// * ErrCodeNoSuchUpload "NoSuchUpload" // The specified multipart upload does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AbortMultipartUpload func (c *S3) AbortMultipartUpload(input *AbortMultipartUploadInput) (*AbortMultipartUploadOutput, error) { req, out := c.AbortMultipartUploadRequest(input) err := req.Send() @@ -108,6 +109,7 @@ const opCompleteMultipartUpload = "CompleteMultipartUpload" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CompleteMultipartUpload func (c *S3) CompleteMultipartUploadRequest(input *CompleteMultipartUploadInput) (req *request.Request, output *CompleteMultipartUploadOutput) { op := &request.Operation{ Name: opCompleteMultipartUpload, @@ -119,9 +121,8 @@ func (c *S3) CompleteMultipartUploadRequest(input *CompleteMultipartUploadInput) input = &CompleteMultipartUploadInput{} } - req = c.newRequest(op, input, output) output = &CompleteMultipartUploadOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -135,6 +136,7 @@ func (c *S3) CompleteMultipartUploadRequest(input *CompleteMultipartUploadInput) // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation CompleteMultipartUpload for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CompleteMultipartUpload func (c *S3) CompleteMultipartUpload(input *CompleteMultipartUploadInput) (*CompleteMultipartUploadOutput, error) { req, out := c.CompleteMultipartUploadRequest(input) err := req.Send() @@ -167,6 +169,7 @@ const opCopyObject = "CopyObject" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CopyObject func (c *S3) CopyObjectRequest(input *CopyObjectInput) (req *request.Request, output *CopyObjectOutput) { op := &request.Operation{ Name: opCopyObject, @@ -178,9 +181,8 @@ func (c *S3) CopyObjectRequest(input *CopyObjectInput) (req *request.Request, ou input = &CopyObjectInput{} } - req = c.newRequest(op, input, output) output = &CopyObjectOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -196,10 +198,11 @@ func (c *S3) CopyObjectRequest(input *CopyObjectInput) (req *request.Request, ou // API operation CopyObject for usage and error information. // // Returned Error Codes: -// * ObjectNotInActiveTierError +// * ErrCodeObjectNotInActiveTierError "ObjectNotInActiveTierError" // The source object of the COPY operation is not in the active tier and is // only stored in Amazon Glacier. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CopyObject func (c *S3) CopyObject(input *CopyObjectInput) (*CopyObjectOutput, error) { req, out := c.CopyObjectRequest(input) err := req.Send() @@ -232,6 +235,7 @@ const opCreateBucket = "CreateBucket" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateBucket func (c *S3) CreateBucketRequest(input *CreateBucketInput) (req *request.Request, output *CreateBucketOutput) { op := &request.Operation{ Name: opCreateBucket, @@ -243,9 +247,8 @@ func (c *S3) CreateBucketRequest(input *CreateBucketInput) (req *request.Request input = &CreateBucketInput{} } - req = c.newRequest(op, input, output) output = &CreateBucketOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -261,13 +264,13 @@ func (c *S3) CreateBucketRequest(input *CreateBucketInput) (req *request.Request // API operation CreateBucket for usage and error information. // // Returned Error Codes: -// * BucketAlreadyExists +// * ErrCodeBucketAlreadyExists "BucketAlreadyExists" // The requested bucket name is not available. The bucket namespace is shared // by all users of the system. Please select a different name and try again. // -// * BucketAlreadyOwnedByYou - +// * ErrCodeBucketAlreadyOwnedByYou "BucketAlreadyOwnedByYou" // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateBucket func (c *S3) CreateBucket(input *CreateBucketInput) (*CreateBucketOutput, error) { req, out := c.CreateBucketRequest(input) err := req.Send() @@ -300,6 +303,7 @@ const opCreateMultipartUpload = "CreateMultipartUpload" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateMultipartUpload func (c *S3) CreateMultipartUploadRequest(input *CreateMultipartUploadInput) (req *request.Request, output *CreateMultipartUploadOutput) { op := &request.Operation{ Name: opCreateMultipartUpload, @@ -311,9 +315,8 @@ func (c *S3) CreateMultipartUploadRequest(input *CreateMultipartUploadInput) (re input = &CreateMultipartUploadInput{} } - req = c.newRequest(op, input, output) output = &CreateMultipartUploadOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -333,6 +336,7 @@ func (c *S3) CreateMultipartUploadRequest(input *CreateMultipartUploadInput) (re // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation CreateMultipartUpload for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateMultipartUpload func (c *S3) CreateMultipartUpload(input *CreateMultipartUploadInput) (*CreateMultipartUploadOutput, error) { req, out := c.CreateMultipartUploadRequest(input) err := req.Send() @@ -365,6 +369,7 @@ const opDeleteBucket = "DeleteBucket" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucket func (c *S3) DeleteBucketRequest(input *DeleteBucketInput) (req *request.Request, output *DeleteBucketOutput) { op := &request.Operation{ Name: opDeleteBucket, @@ -376,11 +381,10 @@ func (c *S3) DeleteBucketRequest(input *DeleteBucketInput) (req *request.Request input = &DeleteBucketInput{} } + output = &DeleteBucketOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteBucketOutput{} - req.Data = output return } @@ -395,12 +399,76 @@ func (c *S3) DeleteBucketRequest(input *DeleteBucketInput) (req *request.Request // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation DeleteBucket for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucket func (c *S3) DeleteBucket(input *DeleteBucketInput) (*DeleteBucketOutput, error) { req, out := c.DeleteBucketRequest(input) err := req.Send() return out, err } +const opDeleteBucketAnalyticsConfiguration = "DeleteBucketAnalyticsConfiguration" + +// DeleteBucketAnalyticsConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteBucketAnalyticsConfiguration operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteBucketAnalyticsConfiguration for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteBucketAnalyticsConfiguration method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteBucketAnalyticsConfigurationRequest method. +// req, resp := client.DeleteBucketAnalyticsConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketAnalyticsConfiguration +func (c *S3) DeleteBucketAnalyticsConfigurationRequest(input *DeleteBucketAnalyticsConfigurationInput) (req *request.Request, output *DeleteBucketAnalyticsConfigurationOutput) { + op := &request.Operation{ + Name: opDeleteBucketAnalyticsConfiguration, + HTTPMethod: "DELETE", + HTTPPath: "/{Bucket}?analytics", + } + + if input == nil { + input = &DeleteBucketAnalyticsConfigurationInput{} + } + + output = &DeleteBucketAnalyticsConfigurationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteBucketAnalyticsConfiguration API operation for Amazon Simple Storage Service. +// +// Deletes an analytics configuration for the bucket (specified by the analytics +// configuration ID). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation DeleteBucketAnalyticsConfiguration for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketAnalyticsConfiguration +func (c *S3) DeleteBucketAnalyticsConfiguration(input *DeleteBucketAnalyticsConfigurationInput) (*DeleteBucketAnalyticsConfigurationOutput, error) { + req, out := c.DeleteBucketAnalyticsConfigurationRequest(input) + err := req.Send() + return out, err +} + const opDeleteBucketCors = "DeleteBucketCors" // DeleteBucketCorsRequest generates a "aws/request.Request" representing the @@ -427,6 +495,7 @@ const opDeleteBucketCors = "DeleteBucketCors" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketCors func (c *S3) DeleteBucketCorsRequest(input *DeleteBucketCorsInput) (req *request.Request, output *DeleteBucketCorsOutput) { op := &request.Operation{ Name: opDeleteBucketCors, @@ -438,11 +507,10 @@ func (c *S3) DeleteBucketCorsRequest(input *DeleteBucketCorsInput) (req *request input = &DeleteBucketCorsInput{} } + output = &DeleteBucketCorsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteBucketCorsOutput{} - req.Data = output return } @@ -456,12 +524,76 @@ func (c *S3) DeleteBucketCorsRequest(input *DeleteBucketCorsInput) (req *request // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation DeleteBucketCors for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketCors func (c *S3) DeleteBucketCors(input *DeleteBucketCorsInput) (*DeleteBucketCorsOutput, error) { req, out := c.DeleteBucketCorsRequest(input) err := req.Send() return out, err } +const opDeleteBucketInventoryConfiguration = "DeleteBucketInventoryConfiguration" + +// DeleteBucketInventoryConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteBucketInventoryConfiguration operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteBucketInventoryConfiguration for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteBucketInventoryConfiguration method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteBucketInventoryConfigurationRequest method. +// req, resp := client.DeleteBucketInventoryConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketInventoryConfiguration +func (c *S3) DeleteBucketInventoryConfigurationRequest(input *DeleteBucketInventoryConfigurationInput) (req *request.Request, output *DeleteBucketInventoryConfigurationOutput) { + op := &request.Operation{ + Name: opDeleteBucketInventoryConfiguration, + HTTPMethod: "DELETE", + HTTPPath: "/{Bucket}?inventory", + } + + if input == nil { + input = &DeleteBucketInventoryConfigurationInput{} + } + + output = &DeleteBucketInventoryConfigurationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteBucketInventoryConfiguration API operation for Amazon Simple Storage Service. +// +// Deletes an inventory configuration (identified by the inventory ID) from +// the bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation DeleteBucketInventoryConfiguration for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketInventoryConfiguration +func (c *S3) DeleteBucketInventoryConfiguration(input *DeleteBucketInventoryConfigurationInput) (*DeleteBucketInventoryConfigurationOutput, error) { + req, out := c.DeleteBucketInventoryConfigurationRequest(input) + err := req.Send() + return out, err +} + const opDeleteBucketLifecycle = "DeleteBucketLifecycle" // DeleteBucketLifecycleRequest generates a "aws/request.Request" representing the @@ -488,6 +620,7 @@ const opDeleteBucketLifecycle = "DeleteBucketLifecycle" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketLifecycle func (c *S3) DeleteBucketLifecycleRequest(input *DeleteBucketLifecycleInput) (req *request.Request, output *DeleteBucketLifecycleOutput) { op := &request.Operation{ Name: opDeleteBucketLifecycle, @@ -499,11 +632,10 @@ func (c *S3) DeleteBucketLifecycleRequest(input *DeleteBucketLifecycleInput) (re input = &DeleteBucketLifecycleInput{} } + output = &DeleteBucketLifecycleOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteBucketLifecycleOutput{} - req.Data = output return } @@ -517,12 +649,76 @@ func (c *S3) DeleteBucketLifecycleRequest(input *DeleteBucketLifecycleInput) (re // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation DeleteBucketLifecycle for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketLifecycle func (c *S3) DeleteBucketLifecycle(input *DeleteBucketLifecycleInput) (*DeleteBucketLifecycleOutput, error) { req, out := c.DeleteBucketLifecycleRequest(input) err := req.Send() return out, err } +const opDeleteBucketMetricsConfiguration = "DeleteBucketMetricsConfiguration" + +// DeleteBucketMetricsConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteBucketMetricsConfiguration operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteBucketMetricsConfiguration for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteBucketMetricsConfiguration method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteBucketMetricsConfigurationRequest method. +// req, resp := client.DeleteBucketMetricsConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketMetricsConfiguration +func (c *S3) DeleteBucketMetricsConfigurationRequest(input *DeleteBucketMetricsConfigurationInput) (req *request.Request, output *DeleteBucketMetricsConfigurationOutput) { + op := &request.Operation{ + Name: opDeleteBucketMetricsConfiguration, + HTTPMethod: "DELETE", + HTTPPath: "/{Bucket}?metrics", + } + + if input == nil { + input = &DeleteBucketMetricsConfigurationInput{} + } + + output = &DeleteBucketMetricsConfigurationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteBucketMetricsConfiguration API operation for Amazon Simple Storage Service. +// +// Deletes a metrics configuration (specified by the metrics configuration ID) +// from the bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation DeleteBucketMetricsConfiguration for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketMetricsConfiguration +func (c *S3) DeleteBucketMetricsConfiguration(input *DeleteBucketMetricsConfigurationInput) (*DeleteBucketMetricsConfigurationOutput, error) { + req, out := c.DeleteBucketMetricsConfigurationRequest(input) + err := req.Send() + return out, err +} + const opDeleteBucketPolicy = "DeleteBucketPolicy" // DeleteBucketPolicyRequest generates a "aws/request.Request" representing the @@ -549,6 +745,7 @@ const opDeleteBucketPolicy = "DeleteBucketPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketPolicy func (c *S3) DeleteBucketPolicyRequest(input *DeleteBucketPolicyInput) (req *request.Request, output *DeleteBucketPolicyOutput) { op := &request.Operation{ Name: opDeleteBucketPolicy, @@ -560,11 +757,10 @@ func (c *S3) DeleteBucketPolicyRequest(input *DeleteBucketPolicyInput) (req *req input = &DeleteBucketPolicyInput{} } + output = &DeleteBucketPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteBucketPolicyOutput{} - req.Data = output return } @@ -578,6 +774,7 @@ func (c *S3) DeleteBucketPolicyRequest(input *DeleteBucketPolicyInput) (req *req // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation DeleteBucketPolicy for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketPolicy func (c *S3) DeleteBucketPolicy(input *DeleteBucketPolicyInput) (*DeleteBucketPolicyOutput, error) { req, out := c.DeleteBucketPolicyRequest(input) err := req.Send() @@ -610,6 +807,7 @@ const opDeleteBucketReplication = "DeleteBucketReplication" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketReplication func (c *S3) DeleteBucketReplicationRequest(input *DeleteBucketReplicationInput) (req *request.Request, output *DeleteBucketReplicationOutput) { op := &request.Operation{ Name: opDeleteBucketReplication, @@ -621,11 +819,10 @@ func (c *S3) DeleteBucketReplicationRequest(input *DeleteBucketReplicationInput) input = &DeleteBucketReplicationInput{} } + output = &DeleteBucketReplicationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteBucketReplicationOutput{} - req.Data = output return } @@ -639,6 +836,7 @@ func (c *S3) DeleteBucketReplicationRequest(input *DeleteBucketReplicationInput) // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation DeleteBucketReplication for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketReplication func (c *S3) DeleteBucketReplication(input *DeleteBucketReplicationInput) (*DeleteBucketReplicationOutput, error) { req, out := c.DeleteBucketReplicationRequest(input) err := req.Send() @@ -671,6 +869,7 @@ const opDeleteBucketTagging = "DeleteBucketTagging" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketTagging func (c *S3) DeleteBucketTaggingRequest(input *DeleteBucketTaggingInput) (req *request.Request, output *DeleteBucketTaggingOutput) { op := &request.Operation{ Name: opDeleteBucketTagging, @@ -682,11 +881,10 @@ func (c *S3) DeleteBucketTaggingRequest(input *DeleteBucketTaggingInput) (req *r input = &DeleteBucketTaggingInput{} } + output = &DeleteBucketTaggingOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteBucketTaggingOutput{} - req.Data = output return } @@ -700,6 +898,7 @@ func (c *S3) DeleteBucketTaggingRequest(input *DeleteBucketTaggingInput) (req *r // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation DeleteBucketTagging for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketTagging func (c *S3) DeleteBucketTagging(input *DeleteBucketTaggingInput) (*DeleteBucketTaggingOutput, error) { req, out := c.DeleteBucketTaggingRequest(input) err := req.Send() @@ -732,6 +931,7 @@ const opDeleteBucketWebsite = "DeleteBucketWebsite" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketWebsite func (c *S3) DeleteBucketWebsiteRequest(input *DeleteBucketWebsiteInput) (req *request.Request, output *DeleteBucketWebsiteOutput) { op := &request.Operation{ Name: opDeleteBucketWebsite, @@ -743,11 +943,10 @@ func (c *S3) DeleteBucketWebsiteRequest(input *DeleteBucketWebsiteInput) (req *r input = &DeleteBucketWebsiteInput{} } + output = &DeleteBucketWebsiteOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteBucketWebsiteOutput{} - req.Data = output return } @@ -761,6 +960,7 @@ func (c *S3) DeleteBucketWebsiteRequest(input *DeleteBucketWebsiteInput) (req *r // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation DeleteBucketWebsite for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketWebsite func (c *S3) DeleteBucketWebsite(input *DeleteBucketWebsiteInput) (*DeleteBucketWebsiteOutput, error) { req, out := c.DeleteBucketWebsiteRequest(input) err := req.Send() @@ -793,6 +993,7 @@ const opDeleteObject = "DeleteObject" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObject func (c *S3) DeleteObjectRequest(input *DeleteObjectInput) (req *request.Request, output *DeleteObjectOutput) { op := &request.Operation{ Name: opDeleteObject, @@ -804,9 +1005,8 @@ func (c *S3) DeleteObjectRequest(input *DeleteObjectInput) (req *request.Request input = &DeleteObjectInput{} } - req = c.newRequest(op, input, output) output = &DeleteObjectOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -822,12 +1022,73 @@ func (c *S3) DeleteObjectRequest(input *DeleteObjectInput) (req *request.Request // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation DeleteObject for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObject func (c *S3) DeleteObject(input *DeleteObjectInput) (*DeleteObjectOutput, error) { req, out := c.DeleteObjectRequest(input) err := req.Send() return out, err } +const opDeleteObjectTagging = "DeleteObjectTagging" + +// DeleteObjectTaggingRequest generates a "aws/request.Request" representing the +// client's request for the DeleteObjectTagging operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteObjectTagging for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteObjectTagging method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteObjectTaggingRequest method. +// req, resp := client.DeleteObjectTaggingRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjectTagging +func (c *S3) DeleteObjectTaggingRequest(input *DeleteObjectTaggingInput) (req *request.Request, output *DeleteObjectTaggingOutput) { + op := &request.Operation{ + Name: opDeleteObjectTagging, + HTTPMethod: "DELETE", + HTTPPath: "/{Bucket}/{Key+}?tagging", + } + + if input == nil { + input = &DeleteObjectTaggingInput{} + } + + output = &DeleteObjectTaggingOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteObjectTagging API operation for Amazon Simple Storage Service. +// +// Removes the tag-set from an existing object. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation DeleteObjectTagging for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjectTagging +func (c *S3) DeleteObjectTagging(input *DeleteObjectTaggingInput) (*DeleteObjectTaggingOutput, error) { + req, out := c.DeleteObjectTaggingRequest(input) + err := req.Send() + return out, err +} + const opDeleteObjects = "DeleteObjects" // DeleteObjectsRequest generates a "aws/request.Request" representing the @@ -854,6 +1115,7 @@ const opDeleteObjects = "DeleteObjects" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjects func (c *S3) DeleteObjectsRequest(input *DeleteObjectsInput) (req *request.Request, output *DeleteObjectsOutput) { op := &request.Operation{ Name: opDeleteObjects, @@ -865,9 +1127,8 @@ func (c *S3) DeleteObjectsRequest(input *DeleteObjectsInput) (req *request.Reque input = &DeleteObjectsInput{} } - req = c.newRequest(op, input, output) output = &DeleteObjectsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -882,6 +1143,7 @@ func (c *S3) DeleteObjectsRequest(input *DeleteObjectsInput) (req *request.Reque // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation DeleteObjects for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjects func (c *S3) DeleteObjects(input *DeleteObjectsInput) (*DeleteObjectsOutput, error) { req, out := c.DeleteObjectsRequest(input) err := req.Send() @@ -914,6 +1176,7 @@ const opGetBucketAccelerateConfiguration = "GetBucketAccelerateConfiguration" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAccelerateConfiguration func (c *S3) GetBucketAccelerateConfigurationRequest(input *GetBucketAccelerateConfigurationInput) (req *request.Request, output *GetBucketAccelerateConfigurationOutput) { op := &request.Operation{ Name: opGetBucketAccelerateConfiguration, @@ -925,9 +1188,8 @@ func (c *S3) GetBucketAccelerateConfigurationRequest(input *GetBucketAccelerateC input = &GetBucketAccelerateConfigurationInput{} } - req = c.newRequest(op, input, output) output = &GetBucketAccelerateConfigurationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -941,6 +1203,7 @@ func (c *S3) GetBucketAccelerateConfigurationRequest(input *GetBucketAccelerateC // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation GetBucketAccelerateConfiguration for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAccelerateConfiguration func (c *S3) GetBucketAccelerateConfiguration(input *GetBucketAccelerateConfigurationInput) (*GetBucketAccelerateConfigurationOutput, error) { req, out := c.GetBucketAccelerateConfigurationRequest(input) err := req.Send() @@ -973,6 +1236,7 @@ const opGetBucketAcl = "GetBucketAcl" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAcl func (c *S3) GetBucketAclRequest(input *GetBucketAclInput) (req *request.Request, output *GetBucketAclOutput) { op := &request.Operation{ Name: opGetBucketAcl, @@ -984,9 +1248,8 @@ func (c *S3) GetBucketAclRequest(input *GetBucketAclInput) (req *request.Request input = &GetBucketAclInput{} } - req = c.newRequest(op, input, output) output = &GetBucketAclOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1000,131 +1263,256 @@ func (c *S3) GetBucketAclRequest(input *GetBucketAclInput) (req *request.Request // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation GetBucketAcl for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAcl func (c *S3) GetBucketAcl(input *GetBucketAclInput) (*GetBucketAclOutput, error) { req, out := c.GetBucketAclRequest(input) err := req.Send() return out, err } -const opGetBucketCors = "GetBucketCors" +const opGetBucketAnalyticsConfiguration = "GetBucketAnalyticsConfiguration" -// GetBucketCorsRequest generates a "aws/request.Request" representing the -// client's request for the GetBucketCors operation. The "output" return +// GetBucketAnalyticsConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetBucketAnalyticsConfiguration operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See GetBucketCors for usage and error information. +// See GetBucketAnalyticsConfiguration for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the GetBucketCors method directly +// you just want the service response, call the GetBucketAnalyticsConfiguration method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the GetBucketCorsRequest method. -// req, resp := client.GetBucketCorsRequest(params) +// // Example sending a request using the GetBucketAnalyticsConfigurationRequest method. +// req, resp := client.GetBucketAnalyticsConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *S3) GetBucketCorsRequest(input *GetBucketCorsInput) (req *request.Request, output *GetBucketCorsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAnalyticsConfiguration +func (c *S3) GetBucketAnalyticsConfigurationRequest(input *GetBucketAnalyticsConfigurationInput) (req *request.Request, output *GetBucketAnalyticsConfigurationOutput) { op := &request.Operation{ - Name: opGetBucketCors, + Name: opGetBucketAnalyticsConfiguration, HTTPMethod: "GET", - HTTPPath: "/{Bucket}?cors", + HTTPPath: "/{Bucket}?analytics", } if input == nil { - input = &GetBucketCorsInput{} + input = &GetBucketAnalyticsConfigurationInput{} } + output = &GetBucketAnalyticsConfigurationOutput{} req = c.newRequest(op, input, output) - output = &GetBucketCorsOutput{} - req.Data = output return } -// GetBucketCors API operation for Amazon Simple Storage Service. +// GetBucketAnalyticsConfiguration API operation for Amazon Simple Storage Service. // -// Returns the cors configuration for the bucket. +// Gets an analytics configuration for the bucket (specified by the analytics +// configuration ID). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Simple Storage Service's -// API operation GetBucketCors for usage and error information. -func (c *S3) GetBucketCors(input *GetBucketCorsInput) (*GetBucketCorsOutput, error) { - req, out := c.GetBucketCorsRequest(input) +// API operation GetBucketAnalyticsConfiguration for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAnalyticsConfiguration +func (c *S3) GetBucketAnalyticsConfiguration(input *GetBucketAnalyticsConfigurationInput) (*GetBucketAnalyticsConfigurationOutput, error) { + req, out := c.GetBucketAnalyticsConfigurationRequest(input) err := req.Send() return out, err } -const opGetBucketLifecycle = "GetBucketLifecycle" +const opGetBucketCors = "GetBucketCors" -// GetBucketLifecycleRequest generates a "aws/request.Request" representing the -// client's request for the GetBucketLifecycle operation. The "output" return +// GetBucketCorsRequest generates a "aws/request.Request" representing the +// client's request for the GetBucketCors operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See GetBucketLifecycle for usage and error information. +// See GetBucketCors for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the GetBucketLifecycle method directly +// you just want the service response, call the GetBucketCors method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the GetBucketLifecycleRequest method. -// req, resp := client.GetBucketLifecycleRequest(params) +// // Example sending a request using the GetBucketCorsRequest method. +// req, resp := client.GetBucketCorsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *S3) GetBucketLifecycleRequest(input *GetBucketLifecycleInput) (req *request.Request, output *GetBucketLifecycleOutput) { - if c.Client.Config.Logger != nil { - c.Client.Config.Logger.Log("This operation, GetBucketLifecycle, has been deprecated") - } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketCors +func (c *S3) GetBucketCorsRequest(input *GetBucketCorsInput) (req *request.Request, output *GetBucketCorsOutput) { op := &request.Operation{ - Name: opGetBucketLifecycle, + Name: opGetBucketCors, HTTPMethod: "GET", - HTTPPath: "/{Bucket}?lifecycle", + HTTPPath: "/{Bucket}?cors", } if input == nil { - input = &GetBucketLifecycleInput{} + input = &GetBucketCorsInput{} } + output = &GetBucketCorsOutput{} req = c.newRequest(op, input, output) - output = &GetBucketLifecycleOutput{} - req.Data = output return } -// GetBucketLifecycle API operation for Amazon Simple Storage Service. +// GetBucketCors API operation for Amazon Simple Storage Service. // -// Deprecated, see the GetBucketLifecycleConfiguration operation. +// Returns the cors configuration for the bucket. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Simple Storage Service's -// API operation GetBucketLifecycle for usage and error information. -func (c *S3) GetBucketLifecycle(input *GetBucketLifecycleInput) (*GetBucketLifecycleOutput, error) { - req, out := c.GetBucketLifecycleRequest(input) - err := req.Send() - return out, err +// API operation GetBucketCors for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketCors +func (c *S3) GetBucketCors(input *GetBucketCorsInput) (*GetBucketCorsOutput, error) { + req, out := c.GetBucketCorsRequest(input) + err := req.Send() + return out, err +} + +const opGetBucketInventoryConfiguration = "GetBucketInventoryConfiguration" + +// GetBucketInventoryConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetBucketInventoryConfiguration operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetBucketInventoryConfiguration for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetBucketInventoryConfiguration method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetBucketInventoryConfigurationRequest method. +// req, resp := client.GetBucketInventoryConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketInventoryConfiguration +func (c *S3) GetBucketInventoryConfigurationRequest(input *GetBucketInventoryConfigurationInput) (req *request.Request, output *GetBucketInventoryConfigurationOutput) { + op := &request.Operation{ + Name: opGetBucketInventoryConfiguration, + HTTPMethod: "GET", + HTTPPath: "/{Bucket}?inventory", + } + + if input == nil { + input = &GetBucketInventoryConfigurationInput{} + } + + output = &GetBucketInventoryConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetBucketInventoryConfiguration API operation for Amazon Simple Storage Service. +// +// Returns an inventory configuration (identified by the inventory ID) from +// the bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetBucketInventoryConfiguration for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketInventoryConfiguration +func (c *S3) GetBucketInventoryConfiguration(input *GetBucketInventoryConfigurationInput) (*GetBucketInventoryConfigurationOutput, error) { + req, out := c.GetBucketInventoryConfigurationRequest(input) + err := req.Send() + return out, err +} + +const opGetBucketLifecycle = "GetBucketLifecycle" + +// GetBucketLifecycleRequest generates a "aws/request.Request" representing the +// client's request for the GetBucketLifecycle operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetBucketLifecycle for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetBucketLifecycle method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetBucketLifecycleRequest method. +// req, resp := client.GetBucketLifecycleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycle +func (c *S3) GetBucketLifecycleRequest(input *GetBucketLifecycleInput) (req *request.Request, output *GetBucketLifecycleOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, GetBucketLifecycle, has been deprecated") + } + op := &request.Operation{ + Name: opGetBucketLifecycle, + HTTPMethod: "GET", + HTTPPath: "/{Bucket}?lifecycle", + } + + if input == nil { + input = &GetBucketLifecycleInput{} + } + + output = &GetBucketLifecycleOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetBucketLifecycle API operation for Amazon Simple Storage Service. +// +// Deprecated, see the GetBucketLifecycleConfiguration operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetBucketLifecycle for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycle +func (c *S3) GetBucketLifecycle(input *GetBucketLifecycleInput) (*GetBucketLifecycleOutput, error) { + req, out := c.GetBucketLifecycleRequest(input) + err := req.Send() + return out, err } const opGetBucketLifecycleConfiguration = "GetBucketLifecycleConfiguration" @@ -1153,6 +1541,7 @@ const opGetBucketLifecycleConfiguration = "GetBucketLifecycleConfiguration" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycleConfiguration func (c *S3) GetBucketLifecycleConfigurationRequest(input *GetBucketLifecycleConfigurationInput) (req *request.Request, output *GetBucketLifecycleConfigurationOutput) { op := &request.Operation{ Name: opGetBucketLifecycleConfiguration, @@ -1164,9 +1553,8 @@ func (c *S3) GetBucketLifecycleConfigurationRequest(input *GetBucketLifecycleCon input = &GetBucketLifecycleConfigurationInput{} } - req = c.newRequest(op, input, output) output = &GetBucketLifecycleConfigurationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1180,6 +1568,7 @@ func (c *S3) GetBucketLifecycleConfigurationRequest(input *GetBucketLifecycleCon // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation GetBucketLifecycleConfiguration for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycleConfiguration func (c *S3) GetBucketLifecycleConfiguration(input *GetBucketLifecycleConfigurationInput) (*GetBucketLifecycleConfigurationOutput, error) { req, out := c.GetBucketLifecycleConfigurationRequest(input) err := req.Send() @@ -1212,6 +1601,7 @@ const opGetBucketLocation = "GetBucketLocation" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLocation func (c *S3) GetBucketLocationRequest(input *GetBucketLocationInput) (req *request.Request, output *GetBucketLocationOutput) { op := &request.Operation{ Name: opGetBucketLocation, @@ -1223,9 +1613,8 @@ func (c *S3) GetBucketLocationRequest(input *GetBucketLocationInput) (req *reque input = &GetBucketLocationInput{} } - req = c.newRequest(op, input, output) output = &GetBucketLocationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1239,6 +1628,7 @@ func (c *S3) GetBucketLocationRequest(input *GetBucketLocationInput) (req *reque // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation GetBucketLocation for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLocation func (c *S3) GetBucketLocation(input *GetBucketLocationInput) (*GetBucketLocationOutput, error) { req, out := c.GetBucketLocationRequest(input) err := req.Send() @@ -1271,6 +1661,7 @@ const opGetBucketLogging = "GetBucketLogging" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLogging func (c *S3) GetBucketLoggingRequest(input *GetBucketLoggingInput) (req *request.Request, output *GetBucketLoggingOutput) { op := &request.Operation{ Name: opGetBucketLogging, @@ -1282,9 +1673,8 @@ func (c *S3) GetBucketLoggingRequest(input *GetBucketLoggingInput) (req *request input = &GetBucketLoggingInput{} } - req = c.newRequest(op, input, output) output = &GetBucketLoggingOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1299,12 +1689,74 @@ func (c *S3) GetBucketLoggingRequest(input *GetBucketLoggingInput) (req *request // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation GetBucketLogging for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLogging func (c *S3) GetBucketLogging(input *GetBucketLoggingInput) (*GetBucketLoggingOutput, error) { req, out := c.GetBucketLoggingRequest(input) err := req.Send() return out, err } +const opGetBucketMetricsConfiguration = "GetBucketMetricsConfiguration" + +// GetBucketMetricsConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetBucketMetricsConfiguration operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetBucketMetricsConfiguration for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetBucketMetricsConfiguration method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetBucketMetricsConfigurationRequest method. +// req, resp := client.GetBucketMetricsConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketMetricsConfiguration +func (c *S3) GetBucketMetricsConfigurationRequest(input *GetBucketMetricsConfigurationInput) (req *request.Request, output *GetBucketMetricsConfigurationOutput) { + op := &request.Operation{ + Name: opGetBucketMetricsConfiguration, + HTTPMethod: "GET", + HTTPPath: "/{Bucket}?metrics", + } + + if input == nil { + input = &GetBucketMetricsConfigurationInput{} + } + + output = &GetBucketMetricsConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetBucketMetricsConfiguration API operation for Amazon Simple Storage Service. +// +// Gets a metrics configuration (specified by the metrics configuration ID) +// from the bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetBucketMetricsConfiguration for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketMetricsConfiguration +func (c *S3) GetBucketMetricsConfiguration(input *GetBucketMetricsConfigurationInput) (*GetBucketMetricsConfigurationOutput, error) { + req, out := c.GetBucketMetricsConfigurationRequest(input) + err := req.Send() + return out, err +} + const opGetBucketNotification = "GetBucketNotification" // GetBucketNotificationRequest generates a "aws/request.Request" representing the @@ -1331,6 +1783,7 @@ const opGetBucketNotification = "GetBucketNotification" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketNotification func (c *S3) GetBucketNotificationRequest(input *GetBucketNotificationConfigurationRequest) (req *request.Request, output *NotificationConfigurationDeprecated) { if c.Client.Config.Logger != nil { c.Client.Config.Logger.Log("This operation, GetBucketNotification, has been deprecated") @@ -1345,9 +1798,8 @@ func (c *S3) GetBucketNotificationRequest(input *GetBucketNotificationConfigurat input = &GetBucketNotificationConfigurationRequest{} } - req = c.newRequest(op, input, output) output = &NotificationConfigurationDeprecated{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1361,6 +1813,7 @@ func (c *S3) GetBucketNotificationRequest(input *GetBucketNotificationConfigurat // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation GetBucketNotification for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketNotification func (c *S3) GetBucketNotification(input *GetBucketNotificationConfigurationRequest) (*NotificationConfigurationDeprecated, error) { req, out := c.GetBucketNotificationRequest(input) err := req.Send() @@ -1393,6 +1846,7 @@ const opGetBucketNotificationConfiguration = "GetBucketNotificationConfiguration // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketNotificationConfiguration func (c *S3) GetBucketNotificationConfigurationRequest(input *GetBucketNotificationConfigurationRequest) (req *request.Request, output *NotificationConfiguration) { op := &request.Operation{ Name: opGetBucketNotificationConfiguration, @@ -1404,9 +1858,8 @@ func (c *S3) GetBucketNotificationConfigurationRequest(input *GetBucketNotificat input = &GetBucketNotificationConfigurationRequest{} } - req = c.newRequest(op, input, output) output = &NotificationConfiguration{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1420,6 +1873,7 @@ func (c *S3) GetBucketNotificationConfigurationRequest(input *GetBucketNotificat // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation GetBucketNotificationConfiguration for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketNotificationConfiguration func (c *S3) GetBucketNotificationConfiguration(input *GetBucketNotificationConfigurationRequest) (*NotificationConfiguration, error) { req, out := c.GetBucketNotificationConfigurationRequest(input) err := req.Send() @@ -1452,6 +1906,7 @@ const opGetBucketPolicy = "GetBucketPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketPolicy func (c *S3) GetBucketPolicyRequest(input *GetBucketPolicyInput) (req *request.Request, output *GetBucketPolicyOutput) { op := &request.Operation{ Name: opGetBucketPolicy, @@ -1463,9 +1918,8 @@ func (c *S3) GetBucketPolicyRequest(input *GetBucketPolicyInput) (req *request.R input = &GetBucketPolicyInput{} } - req = c.newRequest(op, input, output) output = &GetBucketPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1479,6 +1933,7 @@ func (c *S3) GetBucketPolicyRequest(input *GetBucketPolicyInput) (req *request.R // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation GetBucketPolicy for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketPolicy func (c *S3) GetBucketPolicy(input *GetBucketPolicyInput) (*GetBucketPolicyOutput, error) { req, out := c.GetBucketPolicyRequest(input) err := req.Send() @@ -1511,6 +1966,7 @@ const opGetBucketReplication = "GetBucketReplication" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketReplication func (c *S3) GetBucketReplicationRequest(input *GetBucketReplicationInput) (req *request.Request, output *GetBucketReplicationOutput) { op := &request.Operation{ Name: opGetBucketReplication, @@ -1522,9 +1978,8 @@ func (c *S3) GetBucketReplicationRequest(input *GetBucketReplicationInput) (req input = &GetBucketReplicationInput{} } - req = c.newRequest(op, input, output) output = &GetBucketReplicationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1538,6 +1993,7 @@ func (c *S3) GetBucketReplicationRequest(input *GetBucketReplicationInput) (req // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation GetBucketReplication for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketReplication func (c *S3) GetBucketReplication(input *GetBucketReplicationInput) (*GetBucketReplicationOutput, error) { req, out := c.GetBucketReplicationRequest(input) err := req.Send() @@ -1570,6 +2026,7 @@ const opGetBucketRequestPayment = "GetBucketRequestPayment" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketRequestPayment func (c *S3) GetBucketRequestPaymentRequest(input *GetBucketRequestPaymentInput) (req *request.Request, output *GetBucketRequestPaymentOutput) { op := &request.Operation{ Name: opGetBucketRequestPayment, @@ -1581,9 +2038,8 @@ func (c *S3) GetBucketRequestPaymentRequest(input *GetBucketRequestPaymentInput) input = &GetBucketRequestPaymentInput{} } - req = c.newRequest(op, input, output) output = &GetBucketRequestPaymentOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1597,6 +2053,7 @@ func (c *S3) GetBucketRequestPaymentRequest(input *GetBucketRequestPaymentInput) // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation GetBucketRequestPayment for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketRequestPayment func (c *S3) GetBucketRequestPayment(input *GetBucketRequestPaymentInput) (*GetBucketRequestPaymentOutput, error) { req, out := c.GetBucketRequestPaymentRequest(input) err := req.Send() @@ -1629,6 +2086,7 @@ const opGetBucketTagging = "GetBucketTagging" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketTagging func (c *S3) GetBucketTaggingRequest(input *GetBucketTaggingInput) (req *request.Request, output *GetBucketTaggingOutput) { op := &request.Operation{ Name: opGetBucketTagging, @@ -1640,9 +2098,8 @@ func (c *S3) GetBucketTaggingRequest(input *GetBucketTaggingInput) (req *request input = &GetBucketTaggingInput{} } - req = c.newRequest(op, input, output) output = &GetBucketTaggingOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1656,6 +2113,7 @@ func (c *S3) GetBucketTaggingRequest(input *GetBucketTaggingInput) (req *request // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation GetBucketTagging for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketTagging func (c *S3) GetBucketTagging(input *GetBucketTaggingInput) (*GetBucketTaggingOutput, error) { req, out := c.GetBucketTaggingRequest(input) err := req.Send() @@ -1688,6 +2146,7 @@ const opGetBucketVersioning = "GetBucketVersioning" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketVersioning func (c *S3) GetBucketVersioningRequest(input *GetBucketVersioningInput) (req *request.Request, output *GetBucketVersioningOutput) { op := &request.Operation{ Name: opGetBucketVersioning, @@ -1699,9 +2158,8 @@ func (c *S3) GetBucketVersioningRequest(input *GetBucketVersioningInput) (req *r input = &GetBucketVersioningInput{} } - req = c.newRequest(op, input, output) output = &GetBucketVersioningOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1715,6 +2173,7 @@ func (c *S3) GetBucketVersioningRequest(input *GetBucketVersioningInput) (req *r // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation GetBucketVersioning for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketVersioning func (c *S3) GetBucketVersioning(input *GetBucketVersioningInput) (*GetBucketVersioningOutput, error) { req, out := c.GetBucketVersioningRequest(input) err := req.Send() @@ -1747,6 +2206,7 @@ const opGetBucketWebsite = "GetBucketWebsite" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketWebsite func (c *S3) GetBucketWebsiteRequest(input *GetBucketWebsiteInput) (req *request.Request, output *GetBucketWebsiteOutput) { op := &request.Operation{ Name: opGetBucketWebsite, @@ -1758,9 +2218,8 @@ func (c *S3) GetBucketWebsiteRequest(input *GetBucketWebsiteInput) (req *request input = &GetBucketWebsiteInput{} } - req = c.newRequest(op, input, output) output = &GetBucketWebsiteOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1774,6 +2233,7 @@ func (c *S3) GetBucketWebsiteRequest(input *GetBucketWebsiteInput) (req *request // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation GetBucketWebsite for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketWebsite func (c *S3) GetBucketWebsite(input *GetBucketWebsiteInput) (*GetBucketWebsiteOutput, error) { req, out := c.GetBucketWebsiteRequest(input) err := req.Send() @@ -1806,6 +2266,7 @@ const opGetObject = "GetObject" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObject func (c *S3) GetObjectRequest(input *GetObjectInput) (req *request.Request, output *GetObjectOutput) { op := &request.Operation{ Name: opGetObject, @@ -1817,9 +2278,8 @@ func (c *S3) GetObjectRequest(input *GetObjectInput) (req *request.Request, outp input = &GetObjectInput{} } - req = c.newRequest(op, input, output) output = &GetObjectOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1835,9 +2295,10 @@ func (c *S3) GetObjectRequest(input *GetObjectInput) (req *request.Request, outp // API operation GetObject for usage and error information. // // Returned Error Codes: -// * NoSuchKey +// * ErrCodeNoSuchKey "NoSuchKey" // The specified key does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObject func (c *S3) GetObject(input *GetObjectInput) (*GetObjectOutput, error) { req, out := c.GetObjectRequest(input) err := req.Send() @@ -1870,6 +2331,7 @@ const opGetObjectAcl = "GetObjectAcl" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectAcl func (c *S3) GetObjectAclRequest(input *GetObjectAclInput) (req *request.Request, output *GetObjectAclOutput) { op := &request.Operation{ Name: opGetObjectAcl, @@ -1881,9 +2343,8 @@ func (c *S3) GetObjectAclRequest(input *GetObjectAclInput) (req *request.Request input = &GetObjectAclInput{} } - req = c.newRequest(op, input, output) output = &GetObjectAclOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1899,15 +2360,76 @@ func (c *S3) GetObjectAclRequest(input *GetObjectAclInput) (req *request.Request // API operation GetObjectAcl for usage and error information. // // Returned Error Codes: -// * NoSuchKey +// * ErrCodeNoSuchKey "NoSuchKey" // The specified key does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectAcl func (c *S3) GetObjectAcl(input *GetObjectAclInput) (*GetObjectAclOutput, error) { req, out := c.GetObjectAclRequest(input) err := req.Send() return out, err } +const opGetObjectTagging = "GetObjectTagging" + +// GetObjectTaggingRequest generates a "aws/request.Request" representing the +// client's request for the GetObjectTagging operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetObjectTagging for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetObjectTagging method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetObjectTaggingRequest method. +// req, resp := client.GetObjectTaggingRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTagging +func (c *S3) GetObjectTaggingRequest(input *GetObjectTaggingInput) (req *request.Request, output *GetObjectTaggingOutput) { + op := &request.Operation{ + Name: opGetObjectTagging, + HTTPMethod: "GET", + HTTPPath: "/{Bucket}/{Key+}?tagging", + } + + if input == nil { + input = &GetObjectTaggingInput{} + } + + output = &GetObjectTaggingOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetObjectTagging API operation for Amazon Simple Storage Service. +// +// Returns the tag-set of an object. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetObjectTagging for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTagging +func (c *S3) GetObjectTagging(input *GetObjectTaggingInput) (*GetObjectTaggingOutput, error) { + req, out := c.GetObjectTaggingRequest(input) + err := req.Send() + return out, err +} + const opGetObjectTorrent = "GetObjectTorrent" // GetObjectTorrentRequest generates a "aws/request.Request" representing the @@ -1934,6 +2456,7 @@ const opGetObjectTorrent = "GetObjectTorrent" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTorrent func (c *S3) GetObjectTorrentRequest(input *GetObjectTorrentInput) (req *request.Request, output *GetObjectTorrentOutput) { op := &request.Operation{ Name: opGetObjectTorrent, @@ -1945,9 +2468,8 @@ func (c *S3) GetObjectTorrentRequest(input *GetObjectTorrentInput) (req *request input = &GetObjectTorrentInput{} } - req = c.newRequest(op, input, output) output = &GetObjectTorrentOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1961,6 +2483,7 @@ func (c *S3) GetObjectTorrentRequest(input *GetObjectTorrentInput) (req *request // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation GetObjectTorrent for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTorrent func (c *S3) GetObjectTorrent(input *GetObjectTorrentInput) (*GetObjectTorrentOutput, error) { req, out := c.GetObjectTorrentRequest(input) err := req.Send() @@ -1993,6 +2516,7 @@ const opHeadBucket = "HeadBucket" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadBucket func (c *S3) HeadBucketRequest(input *HeadBucketInput) (req *request.Request, output *HeadBucketOutput) { op := &request.Operation{ Name: opHeadBucket, @@ -2004,11 +2528,10 @@ func (c *S3) HeadBucketRequest(input *HeadBucketInput) (req *request.Request, ou input = &HeadBucketInput{} } + output = &HeadBucketOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &HeadBucketOutput{} - req.Data = output return } @@ -2025,9 +2548,10 @@ func (c *S3) HeadBucketRequest(input *HeadBucketInput) (req *request.Request, ou // API operation HeadBucket for usage and error information. // // Returned Error Codes: -// * NoSuchBucket +// * ErrCodeNoSuchBucket "NoSuchBucket" // The specified bucket does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadBucket func (c *S3) HeadBucket(input *HeadBucketInput) (*HeadBucketOutput, error) { req, out := c.HeadBucketRequest(input) err := req.Send() @@ -2060,6 +2584,7 @@ const opHeadObject = "HeadObject" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObject func (c *S3) HeadObjectRequest(input *HeadObjectInput) (req *request.Request, output *HeadObjectOutput) { op := &request.Operation{ Name: opHeadObject, @@ -2071,9 +2596,8 @@ func (c *S3) HeadObjectRequest(input *HeadObjectInput) (req *request.Request, ou input = &HeadObjectInput{} } - req = c.newRequest(op, input, output) output = &HeadObjectOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2091,120 +2615,302 @@ func (c *S3) HeadObjectRequest(input *HeadObjectInput) (req *request.Request, ou // API operation HeadObject for usage and error information. // // Returned Error Codes: -// * NoSuchKey +// * ErrCodeNoSuchKey "NoSuchKey" // The specified key does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObject func (c *S3) HeadObject(input *HeadObjectInput) (*HeadObjectOutput, error) { req, out := c.HeadObjectRequest(input) err := req.Send() return out, err } -const opListBuckets = "ListBuckets" +const opListBucketAnalyticsConfigurations = "ListBucketAnalyticsConfigurations" -// ListBucketsRequest generates a "aws/request.Request" representing the -// client's request for the ListBuckets operation. The "output" return +// ListBucketAnalyticsConfigurationsRequest generates a "aws/request.Request" representing the +// client's request for the ListBucketAnalyticsConfigurations operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ListBuckets for usage and error information. +// See ListBucketAnalyticsConfigurations for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ListBuckets method directly +// you just want the service response, call the ListBucketAnalyticsConfigurations method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ListBucketsRequest method. -// req, resp := client.ListBucketsRequest(params) +// // Example sending a request using the ListBucketAnalyticsConfigurationsRequest method. +// req, resp := client.ListBucketAnalyticsConfigurationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *S3) ListBucketsRequest(input *ListBucketsInput) (req *request.Request, output *ListBucketsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketAnalyticsConfigurations +func (c *S3) ListBucketAnalyticsConfigurationsRequest(input *ListBucketAnalyticsConfigurationsInput) (req *request.Request, output *ListBucketAnalyticsConfigurationsOutput) { op := &request.Operation{ - Name: opListBuckets, + Name: opListBucketAnalyticsConfigurations, HTTPMethod: "GET", - HTTPPath: "/", + HTTPPath: "/{Bucket}?analytics", } if input == nil { - input = &ListBucketsInput{} + input = &ListBucketAnalyticsConfigurationsInput{} } + output = &ListBucketAnalyticsConfigurationsOutput{} req = c.newRequest(op, input, output) - output = &ListBucketsOutput{} - req.Data = output return } -// ListBuckets API operation for Amazon Simple Storage Service. +// ListBucketAnalyticsConfigurations API operation for Amazon Simple Storage Service. // -// Returns a list of all buckets owned by the authenticated sender of the request. +// Lists the analytics configurations for the bucket. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Simple Storage Service's -// API operation ListBuckets for usage and error information. -func (c *S3) ListBuckets(input *ListBucketsInput) (*ListBucketsOutput, error) { - req, out := c.ListBucketsRequest(input) +// API operation ListBucketAnalyticsConfigurations for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketAnalyticsConfigurations +func (c *S3) ListBucketAnalyticsConfigurations(input *ListBucketAnalyticsConfigurationsInput) (*ListBucketAnalyticsConfigurationsOutput, error) { + req, out := c.ListBucketAnalyticsConfigurationsRequest(input) err := req.Send() return out, err } -const opListMultipartUploads = "ListMultipartUploads" +const opListBucketInventoryConfigurations = "ListBucketInventoryConfigurations" -// ListMultipartUploadsRequest generates a "aws/request.Request" representing the -// client's request for the ListMultipartUploads operation. The "output" return +// ListBucketInventoryConfigurationsRequest generates a "aws/request.Request" representing the +// client's request for the ListBucketInventoryConfigurations operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ListMultipartUploads for usage and error information. +// See ListBucketInventoryConfigurations for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ListMultipartUploads method directly +// you just want the service response, call the ListBucketInventoryConfigurations method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ListMultipartUploadsRequest method. -// req, resp := client.ListMultipartUploadsRequest(params) +// // Example sending a request using the ListBucketInventoryConfigurationsRequest method. +// req, resp := client.ListBucketInventoryConfigurationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *S3) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) (req *request.Request, output *ListMultipartUploadsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketInventoryConfigurations +func (c *S3) ListBucketInventoryConfigurationsRequest(input *ListBucketInventoryConfigurationsInput) (req *request.Request, output *ListBucketInventoryConfigurationsOutput) { op := &request.Operation{ - Name: opListMultipartUploads, + Name: opListBucketInventoryConfigurations, HTTPMethod: "GET", - HTTPPath: "/{Bucket}?uploads", - Paginator: &request.Paginator{ - InputTokens: []string{"KeyMarker", "UploadIdMarker"}, - OutputTokens: []string{"NextKeyMarker", "NextUploadIdMarker"}, - LimitToken: "MaxUploads", - TruncationToken: "IsTruncated", - }, + HTTPPath: "/{Bucket}?inventory", } if input == nil { - input = &ListMultipartUploadsInput{} + input = &ListBucketInventoryConfigurationsInput{} } + output = &ListBucketInventoryConfigurationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListBucketInventoryConfigurations API operation for Amazon Simple Storage Service. +// +// Returns a list of inventory configurations for the bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation ListBucketInventoryConfigurations for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketInventoryConfigurations +func (c *S3) ListBucketInventoryConfigurations(input *ListBucketInventoryConfigurationsInput) (*ListBucketInventoryConfigurationsOutput, error) { + req, out := c.ListBucketInventoryConfigurationsRequest(input) + err := req.Send() + return out, err +} + +const opListBucketMetricsConfigurations = "ListBucketMetricsConfigurations" + +// ListBucketMetricsConfigurationsRequest generates a "aws/request.Request" representing the +// client's request for the ListBucketMetricsConfigurations operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListBucketMetricsConfigurations for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListBucketMetricsConfigurations method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListBucketMetricsConfigurationsRequest method. +// req, resp := client.ListBucketMetricsConfigurationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketMetricsConfigurations +func (c *S3) ListBucketMetricsConfigurationsRequest(input *ListBucketMetricsConfigurationsInput) (req *request.Request, output *ListBucketMetricsConfigurationsOutput) { + op := &request.Operation{ + Name: opListBucketMetricsConfigurations, + HTTPMethod: "GET", + HTTPPath: "/{Bucket}?metrics", + } + + if input == nil { + input = &ListBucketMetricsConfigurationsInput{} + } + + output = &ListBucketMetricsConfigurationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListBucketMetricsConfigurations API operation for Amazon Simple Storage Service. +// +// Lists the metrics configurations for the bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation ListBucketMetricsConfigurations for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketMetricsConfigurations +func (c *S3) ListBucketMetricsConfigurations(input *ListBucketMetricsConfigurationsInput) (*ListBucketMetricsConfigurationsOutput, error) { + req, out := c.ListBucketMetricsConfigurationsRequest(input) + err := req.Send() + return out, err +} + +const opListBuckets = "ListBuckets" + +// ListBucketsRequest generates a "aws/request.Request" representing the +// client's request for the ListBuckets operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListBuckets for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListBuckets method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListBucketsRequest method. +// req, resp := client.ListBucketsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBuckets +func (c *S3) ListBucketsRequest(input *ListBucketsInput) (req *request.Request, output *ListBucketsOutput) { + op := &request.Operation{ + Name: opListBuckets, + HTTPMethod: "GET", + HTTPPath: "/", + } + + if input == nil { + input = &ListBucketsInput{} + } + + output = &ListBucketsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListBuckets API operation for Amazon Simple Storage Service. +// +// Returns a list of all buckets owned by the authenticated sender of the request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation ListBuckets for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBuckets +func (c *S3) ListBuckets(input *ListBucketsInput) (*ListBucketsOutput, error) { + req, out := c.ListBucketsRequest(input) + err := req.Send() + return out, err +} + +const opListMultipartUploads = "ListMultipartUploads" + +// ListMultipartUploadsRequest generates a "aws/request.Request" representing the +// client's request for the ListMultipartUploads operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListMultipartUploads for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListMultipartUploads method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListMultipartUploadsRequest method. +// req, resp := client.ListMultipartUploadsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListMultipartUploads +func (c *S3) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) (req *request.Request, output *ListMultipartUploadsOutput) { + op := &request.Operation{ + Name: opListMultipartUploads, + HTTPMethod: "GET", + HTTPPath: "/{Bucket}?uploads", + Paginator: &request.Paginator{ + InputTokens: []string{"KeyMarker", "UploadIdMarker"}, + OutputTokens: []string{"NextKeyMarker", "NextUploadIdMarker"}, + LimitToken: "MaxUploads", + TruncationToken: "IsTruncated", + }, + } + + if input == nil { + input = &ListMultipartUploadsInput{} + } + + output = &ListMultipartUploadsOutput{} req = c.newRequest(op, input, output) - output = &ListMultipartUploadsOutput{} - req.Data = output return } @@ -2218,6 +2924,7 @@ func (c *S3) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) (req // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation ListMultipartUploads for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListMultipartUploads func (c *S3) ListMultipartUploads(input *ListMultipartUploadsInput) (*ListMultipartUploadsOutput, error) { req, out := c.ListMultipartUploadsRequest(input) err := req.Send() @@ -2275,6 +2982,7 @@ const opListObjectVersions = "ListObjectVersions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectVersions func (c *S3) ListObjectVersionsRequest(input *ListObjectVersionsInput) (req *request.Request, output *ListObjectVersionsOutput) { op := &request.Operation{ Name: opListObjectVersions, @@ -2292,9 +3000,8 @@ func (c *S3) ListObjectVersionsRequest(input *ListObjectVersionsInput) (req *req input = &ListObjectVersionsInput{} } - req = c.newRequest(op, input, output) output = &ListObjectVersionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2308,6 +3015,7 @@ func (c *S3) ListObjectVersionsRequest(input *ListObjectVersionsInput) (req *req // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation ListObjectVersions for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectVersions func (c *S3) ListObjectVersions(input *ListObjectVersionsInput) (*ListObjectVersionsOutput, error) { req, out := c.ListObjectVersionsRequest(input) err := req.Send() @@ -2365,6 +3073,7 @@ const opListObjects = "ListObjects" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjects func (c *S3) ListObjectsRequest(input *ListObjectsInput) (req *request.Request, output *ListObjectsOutput) { op := &request.Operation{ Name: opListObjects, @@ -2382,9 +3091,8 @@ func (c *S3) ListObjectsRequest(input *ListObjectsInput) (req *request.Request, input = &ListObjectsInput{} } - req = c.newRequest(op, input, output) output = &ListObjectsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2402,9 +3110,10 @@ func (c *S3) ListObjectsRequest(input *ListObjectsInput) (req *request.Request, // API operation ListObjects for usage and error information. // // Returned Error Codes: -// * NoSuchBucket +// * ErrCodeNoSuchBucket "NoSuchBucket" // The specified bucket does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjects func (c *S3) ListObjects(input *ListObjectsInput) (*ListObjectsOutput, error) { req, out := c.ListObjectsRequest(input) err := req.Send() @@ -2462,6 +3171,7 @@ const opListObjectsV2 = "ListObjectsV2" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectsV2 func (c *S3) ListObjectsV2Request(input *ListObjectsV2Input) (req *request.Request, output *ListObjectsV2Output) { op := &request.Operation{ Name: opListObjectsV2, @@ -2479,9 +3189,8 @@ func (c *S3) ListObjectsV2Request(input *ListObjectsV2Input) (req *request.Reque input = &ListObjectsV2Input{} } - req = c.newRequest(op, input, output) output = &ListObjectsV2Output{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2500,9 +3209,10 @@ func (c *S3) ListObjectsV2Request(input *ListObjectsV2Input) (req *request.Reque // API operation ListObjectsV2 for usage and error information. // // Returned Error Codes: -// * NoSuchBucket +// * ErrCodeNoSuchBucket "NoSuchBucket" // The specified bucket does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectsV2 func (c *S3) ListObjectsV2(input *ListObjectsV2Input) (*ListObjectsV2Output, error) { req, out := c.ListObjectsV2Request(input) err := req.Send() @@ -2560,6 +3270,7 @@ const opListParts = "ListParts" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListParts func (c *S3) ListPartsRequest(input *ListPartsInput) (req *request.Request, output *ListPartsOutput) { op := &request.Operation{ Name: opListParts, @@ -2577,9 +3288,8 @@ func (c *S3) ListPartsRequest(input *ListPartsInput) (req *request.Request, outp input = &ListPartsInput{} } - req = c.newRequest(op, input, output) output = &ListPartsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2593,6 +3303,7 @@ func (c *S3) ListPartsRequest(input *ListPartsInput) (req *request.Request, outp // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation ListParts for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListParts func (c *S3) ListParts(input *ListPartsInput) (*ListPartsOutput, error) { req, out := c.ListPartsRequest(input) err := req.Send() @@ -2650,6 +3361,7 @@ const opPutBucketAccelerateConfiguration = "PutBucketAccelerateConfiguration" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAccelerateConfiguration func (c *S3) PutBucketAccelerateConfigurationRequest(input *PutBucketAccelerateConfigurationInput) (req *request.Request, output *PutBucketAccelerateConfigurationOutput) { op := &request.Operation{ Name: opPutBucketAccelerateConfiguration, @@ -2661,11 +3373,10 @@ func (c *S3) PutBucketAccelerateConfigurationRequest(input *PutBucketAccelerateC input = &PutBucketAccelerateConfigurationInput{} } + output = &PutBucketAccelerateConfigurationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutBucketAccelerateConfigurationOutput{} - req.Data = output return } @@ -2679,6 +3390,7 @@ func (c *S3) PutBucketAccelerateConfigurationRequest(input *PutBucketAccelerateC // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation PutBucketAccelerateConfiguration for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAccelerateConfiguration func (c *S3) PutBucketAccelerateConfiguration(input *PutBucketAccelerateConfigurationInput) (*PutBucketAccelerateConfigurationOutput, error) { req, out := c.PutBucketAccelerateConfigurationRequest(input) err := req.Send() @@ -2711,6 +3423,7 @@ const opPutBucketAcl = "PutBucketAcl" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAcl func (c *S3) PutBucketAclRequest(input *PutBucketAclInput) (req *request.Request, output *PutBucketAclOutput) { op := &request.Operation{ Name: opPutBucketAcl, @@ -2722,11 +3435,10 @@ func (c *S3) PutBucketAclRequest(input *PutBucketAclInput) (req *request.Request input = &PutBucketAclInput{} } + output = &PutBucketAclOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutBucketAclOutput{} - req.Data = output return } @@ -2740,225 +3452,356 @@ func (c *S3) PutBucketAclRequest(input *PutBucketAclInput) (req *request.Request // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation PutBucketAcl for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAcl func (c *S3) PutBucketAcl(input *PutBucketAclInput) (*PutBucketAclOutput, error) { req, out := c.PutBucketAclRequest(input) err := req.Send() return out, err } -const opPutBucketCors = "PutBucketCors" +const opPutBucketAnalyticsConfiguration = "PutBucketAnalyticsConfiguration" -// PutBucketCorsRequest generates a "aws/request.Request" representing the -// client's request for the PutBucketCors operation. The "output" return +// PutBucketAnalyticsConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutBucketAnalyticsConfiguration operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See PutBucketCors for usage and error information. +// See PutBucketAnalyticsConfiguration for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the PutBucketCors method directly +// you just want the service response, call the PutBucketAnalyticsConfiguration method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the PutBucketCorsRequest method. -// req, resp := client.PutBucketCorsRequest(params) +// // Example sending a request using the PutBucketAnalyticsConfigurationRequest method. +// req, resp := client.PutBucketAnalyticsConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *S3) PutBucketCorsRequest(input *PutBucketCorsInput) (req *request.Request, output *PutBucketCorsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAnalyticsConfiguration +func (c *S3) PutBucketAnalyticsConfigurationRequest(input *PutBucketAnalyticsConfigurationInput) (req *request.Request, output *PutBucketAnalyticsConfigurationOutput) { op := &request.Operation{ - Name: opPutBucketCors, + Name: opPutBucketAnalyticsConfiguration, HTTPMethod: "PUT", - HTTPPath: "/{Bucket}?cors", + HTTPPath: "/{Bucket}?analytics", } if input == nil { - input = &PutBucketCorsInput{} + input = &PutBucketAnalyticsConfigurationInput{} } + output = &PutBucketAnalyticsConfigurationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutBucketCorsOutput{} - req.Data = output return } -// PutBucketCors API operation for Amazon Simple Storage Service. +// PutBucketAnalyticsConfiguration API operation for Amazon Simple Storage Service. // -// Sets the cors configuration for a bucket. +// Sets an analytics configuration for the bucket (specified by the analytics +// configuration ID). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Simple Storage Service's -// API operation PutBucketCors for usage and error information. -func (c *S3) PutBucketCors(input *PutBucketCorsInput) (*PutBucketCorsOutput, error) { - req, out := c.PutBucketCorsRequest(input) +// API operation PutBucketAnalyticsConfiguration for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAnalyticsConfiguration +func (c *S3) PutBucketAnalyticsConfiguration(input *PutBucketAnalyticsConfigurationInput) (*PutBucketAnalyticsConfigurationOutput, error) { + req, out := c.PutBucketAnalyticsConfigurationRequest(input) err := req.Send() return out, err } -const opPutBucketLifecycle = "PutBucketLifecycle" +const opPutBucketCors = "PutBucketCors" -// PutBucketLifecycleRequest generates a "aws/request.Request" representing the -// client's request for the PutBucketLifecycle operation. The "output" return +// PutBucketCorsRequest generates a "aws/request.Request" representing the +// client's request for the PutBucketCors operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See PutBucketLifecycle for usage and error information. +// See PutBucketCors for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the PutBucketLifecycle method directly +// you just want the service response, call the PutBucketCors method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the PutBucketLifecycleRequest method. -// req, resp := client.PutBucketLifecycleRequest(params) +// // Example sending a request using the PutBucketCorsRequest method. +// req, resp := client.PutBucketCorsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *S3) PutBucketLifecycleRequest(input *PutBucketLifecycleInput) (req *request.Request, output *PutBucketLifecycleOutput) { - if c.Client.Config.Logger != nil { - c.Client.Config.Logger.Log("This operation, PutBucketLifecycle, has been deprecated") - } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketCors +func (c *S3) PutBucketCorsRequest(input *PutBucketCorsInput) (req *request.Request, output *PutBucketCorsOutput) { op := &request.Operation{ - Name: opPutBucketLifecycle, + Name: opPutBucketCors, HTTPMethod: "PUT", - HTTPPath: "/{Bucket}?lifecycle", + HTTPPath: "/{Bucket}?cors", } if input == nil { - input = &PutBucketLifecycleInput{} + input = &PutBucketCorsInput{} } + output = &PutBucketCorsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutBucketLifecycleOutput{} - req.Data = output return } -// PutBucketLifecycle API operation for Amazon Simple Storage Service. +// PutBucketCors API operation for Amazon Simple Storage Service. // -// Deprecated, see the PutBucketLifecycleConfiguration operation. +// Sets the cors configuration for a bucket. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Simple Storage Service's -// API operation PutBucketLifecycle for usage and error information. -func (c *S3) PutBucketLifecycle(input *PutBucketLifecycleInput) (*PutBucketLifecycleOutput, error) { - req, out := c.PutBucketLifecycleRequest(input) +// API operation PutBucketCors for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketCors +func (c *S3) PutBucketCors(input *PutBucketCorsInput) (*PutBucketCorsOutput, error) { + req, out := c.PutBucketCorsRequest(input) err := req.Send() return out, err } -const opPutBucketLifecycleConfiguration = "PutBucketLifecycleConfiguration" +const opPutBucketInventoryConfiguration = "PutBucketInventoryConfiguration" -// PutBucketLifecycleConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the PutBucketLifecycleConfiguration operation. The "output" return +// PutBucketInventoryConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutBucketInventoryConfiguration operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See PutBucketLifecycleConfiguration for usage and error information. +// See PutBucketInventoryConfiguration for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the PutBucketLifecycleConfiguration method directly +// you just want the service response, call the PutBucketInventoryConfiguration method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the PutBucketLifecycleConfigurationRequest method. -// req, resp := client.PutBucketLifecycleConfigurationRequest(params) +// // Example sending a request using the PutBucketInventoryConfigurationRequest method. +// req, resp := client.PutBucketInventoryConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *S3) PutBucketLifecycleConfigurationRequest(input *PutBucketLifecycleConfigurationInput) (req *request.Request, output *PutBucketLifecycleConfigurationOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketInventoryConfiguration +func (c *S3) PutBucketInventoryConfigurationRequest(input *PutBucketInventoryConfigurationInput) (req *request.Request, output *PutBucketInventoryConfigurationOutput) { op := &request.Operation{ - Name: opPutBucketLifecycleConfiguration, + Name: opPutBucketInventoryConfiguration, HTTPMethod: "PUT", - HTTPPath: "/{Bucket}?lifecycle", + HTTPPath: "/{Bucket}?inventory", } if input == nil { - input = &PutBucketLifecycleConfigurationInput{} + input = &PutBucketInventoryConfigurationInput{} } + output = &PutBucketInventoryConfigurationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutBucketLifecycleConfigurationOutput{} - req.Data = output return } -// PutBucketLifecycleConfiguration API operation for Amazon Simple Storage Service. +// PutBucketInventoryConfiguration API operation for Amazon Simple Storage Service. // -// Sets lifecycle configuration for your bucket. If a lifecycle configuration -// exists, it replaces it. +// Adds an inventory configuration (identified by the inventory ID) from the +// bucket. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Simple Storage Service's -// API operation PutBucketLifecycleConfiguration for usage and error information. -func (c *S3) PutBucketLifecycleConfiguration(input *PutBucketLifecycleConfigurationInput) (*PutBucketLifecycleConfigurationOutput, error) { - req, out := c.PutBucketLifecycleConfigurationRequest(input) +// API operation PutBucketInventoryConfiguration for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketInventoryConfiguration +func (c *S3) PutBucketInventoryConfiguration(input *PutBucketInventoryConfigurationInput) (*PutBucketInventoryConfigurationOutput, error) { + req, out := c.PutBucketInventoryConfigurationRequest(input) err := req.Send() return out, err } -const opPutBucketLogging = "PutBucketLogging" +const opPutBucketLifecycle = "PutBucketLifecycle" -// PutBucketLoggingRequest generates a "aws/request.Request" representing the -// client's request for the PutBucketLogging operation. The "output" return +// PutBucketLifecycleRequest generates a "aws/request.Request" representing the +// client's request for the PutBucketLifecycle operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See PutBucketLogging for usage and error information. +// See PutBucketLifecycle for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the PutBucketLogging method directly +// you just want the service response, call the PutBucketLifecycle method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the PutBucketLoggingRequest method. -// req, resp := client.PutBucketLoggingRequest(params) +// // Example sending a request using the PutBucketLifecycleRequest method. +// req, resp := client.PutBucketLifecycleRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycle +func (c *S3) PutBucketLifecycleRequest(input *PutBucketLifecycleInput) (req *request.Request, output *PutBucketLifecycleOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, PutBucketLifecycle, has been deprecated") + } + op := &request.Operation{ + Name: opPutBucketLifecycle, + HTTPMethod: "PUT", + HTTPPath: "/{Bucket}?lifecycle", + } + + if input == nil { + input = &PutBucketLifecycleInput{} + } + + output = &PutBucketLifecycleOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// PutBucketLifecycle API operation for Amazon Simple Storage Service. +// +// Deprecated, see the PutBucketLifecycleConfiguration operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation PutBucketLifecycle for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycle +func (c *S3) PutBucketLifecycle(input *PutBucketLifecycleInput) (*PutBucketLifecycleOutput, error) { + req, out := c.PutBucketLifecycleRequest(input) + err := req.Send() + return out, err +} + +const opPutBucketLifecycleConfiguration = "PutBucketLifecycleConfiguration" + +// PutBucketLifecycleConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutBucketLifecycleConfiguration operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See PutBucketLifecycleConfiguration for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the PutBucketLifecycleConfiguration method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the PutBucketLifecycleConfigurationRequest method. +// req, resp := client.PutBucketLifecycleConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycleConfiguration +func (c *S3) PutBucketLifecycleConfigurationRequest(input *PutBucketLifecycleConfigurationInput) (req *request.Request, output *PutBucketLifecycleConfigurationOutput) { + op := &request.Operation{ + Name: opPutBucketLifecycleConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/{Bucket}?lifecycle", + } + + if input == nil { + input = &PutBucketLifecycleConfigurationInput{} + } + + output = &PutBucketLifecycleConfigurationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// PutBucketLifecycleConfiguration API operation for Amazon Simple Storage Service. +// +// Sets lifecycle configuration for your bucket. If a lifecycle configuration +// exists, it replaces it. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation PutBucketLifecycleConfiguration for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycleConfiguration +func (c *S3) PutBucketLifecycleConfiguration(input *PutBucketLifecycleConfigurationInput) (*PutBucketLifecycleConfigurationOutput, error) { + req, out := c.PutBucketLifecycleConfigurationRequest(input) + err := req.Send() + return out, err +} + +const opPutBucketLogging = "PutBucketLogging" + +// PutBucketLoggingRequest generates a "aws/request.Request" representing the +// client's request for the PutBucketLogging operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See PutBucketLogging for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the PutBucketLogging method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the PutBucketLoggingRequest method. +// req, resp := client.PutBucketLoggingRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLogging func (c *S3) PutBucketLoggingRequest(input *PutBucketLoggingInput) (req *request.Request, output *PutBucketLoggingOutput) { op := &request.Operation{ Name: opPutBucketLogging, @@ -2970,11 +3813,10 @@ func (c *S3) PutBucketLoggingRequest(input *PutBucketLoggingInput) (req *request input = &PutBucketLoggingInput{} } + output = &PutBucketLoggingOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutBucketLoggingOutput{} - req.Data = output return } @@ -2990,12 +3832,76 @@ func (c *S3) PutBucketLoggingRequest(input *PutBucketLoggingInput) (req *request // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation PutBucketLogging for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLogging func (c *S3) PutBucketLogging(input *PutBucketLoggingInput) (*PutBucketLoggingOutput, error) { req, out := c.PutBucketLoggingRequest(input) err := req.Send() return out, err } +const opPutBucketMetricsConfiguration = "PutBucketMetricsConfiguration" + +// PutBucketMetricsConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutBucketMetricsConfiguration operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See PutBucketMetricsConfiguration for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the PutBucketMetricsConfiguration method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the PutBucketMetricsConfigurationRequest method. +// req, resp := client.PutBucketMetricsConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketMetricsConfiguration +func (c *S3) PutBucketMetricsConfigurationRequest(input *PutBucketMetricsConfigurationInput) (req *request.Request, output *PutBucketMetricsConfigurationOutput) { + op := &request.Operation{ + Name: opPutBucketMetricsConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/{Bucket}?metrics", + } + + if input == nil { + input = &PutBucketMetricsConfigurationInput{} + } + + output = &PutBucketMetricsConfigurationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// PutBucketMetricsConfiguration API operation for Amazon Simple Storage Service. +// +// Sets a metrics configuration (specified by the metrics configuration ID) +// for the bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation PutBucketMetricsConfiguration for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketMetricsConfiguration +func (c *S3) PutBucketMetricsConfiguration(input *PutBucketMetricsConfigurationInput) (*PutBucketMetricsConfigurationOutput, error) { + req, out := c.PutBucketMetricsConfigurationRequest(input) + err := req.Send() + return out, err +} + const opPutBucketNotification = "PutBucketNotification" // PutBucketNotificationRequest generates a "aws/request.Request" representing the @@ -3022,6 +3928,7 @@ const opPutBucketNotification = "PutBucketNotification" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketNotification func (c *S3) PutBucketNotificationRequest(input *PutBucketNotificationInput) (req *request.Request, output *PutBucketNotificationOutput) { if c.Client.Config.Logger != nil { c.Client.Config.Logger.Log("This operation, PutBucketNotification, has been deprecated") @@ -3036,11 +3943,10 @@ func (c *S3) PutBucketNotificationRequest(input *PutBucketNotificationInput) (re input = &PutBucketNotificationInput{} } + output = &PutBucketNotificationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutBucketNotificationOutput{} - req.Data = output return } @@ -3054,6 +3960,7 @@ func (c *S3) PutBucketNotificationRequest(input *PutBucketNotificationInput) (re // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation PutBucketNotification for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketNotification func (c *S3) PutBucketNotification(input *PutBucketNotificationInput) (*PutBucketNotificationOutput, error) { req, out := c.PutBucketNotificationRequest(input) err := req.Send() @@ -3086,6 +3993,7 @@ const opPutBucketNotificationConfiguration = "PutBucketNotificationConfiguration // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketNotificationConfiguration func (c *S3) PutBucketNotificationConfigurationRequest(input *PutBucketNotificationConfigurationInput) (req *request.Request, output *PutBucketNotificationConfigurationOutput) { op := &request.Operation{ Name: opPutBucketNotificationConfiguration, @@ -3097,11 +4005,10 @@ func (c *S3) PutBucketNotificationConfigurationRequest(input *PutBucketNotificat input = &PutBucketNotificationConfigurationInput{} } + output = &PutBucketNotificationConfigurationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutBucketNotificationConfigurationOutput{} - req.Data = output return } @@ -3115,6 +4022,7 @@ func (c *S3) PutBucketNotificationConfigurationRequest(input *PutBucketNotificat // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation PutBucketNotificationConfiguration for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketNotificationConfiguration func (c *S3) PutBucketNotificationConfiguration(input *PutBucketNotificationConfigurationInput) (*PutBucketNotificationConfigurationOutput, error) { req, out := c.PutBucketNotificationConfigurationRequest(input) err := req.Send() @@ -3147,6 +4055,7 @@ const opPutBucketPolicy = "PutBucketPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketPolicy func (c *S3) PutBucketPolicyRequest(input *PutBucketPolicyInput) (req *request.Request, output *PutBucketPolicyOutput) { op := &request.Operation{ Name: opPutBucketPolicy, @@ -3158,11 +4067,10 @@ func (c *S3) PutBucketPolicyRequest(input *PutBucketPolicyInput) (req *request.R input = &PutBucketPolicyInput{} } + output = &PutBucketPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutBucketPolicyOutput{} - req.Data = output return } @@ -3177,6 +4085,7 @@ func (c *S3) PutBucketPolicyRequest(input *PutBucketPolicyInput) (req *request.R // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation PutBucketPolicy for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketPolicy func (c *S3) PutBucketPolicy(input *PutBucketPolicyInput) (*PutBucketPolicyOutput, error) { req, out := c.PutBucketPolicyRequest(input) err := req.Send() @@ -3209,6 +4118,7 @@ const opPutBucketReplication = "PutBucketReplication" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketReplication func (c *S3) PutBucketReplicationRequest(input *PutBucketReplicationInput) (req *request.Request, output *PutBucketReplicationOutput) { op := &request.Operation{ Name: opPutBucketReplication, @@ -3220,11 +4130,10 @@ func (c *S3) PutBucketReplicationRequest(input *PutBucketReplicationInput) (req input = &PutBucketReplicationInput{} } + output = &PutBucketReplicationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutBucketReplicationOutput{} - req.Data = output return } @@ -3239,6 +4148,7 @@ func (c *S3) PutBucketReplicationRequest(input *PutBucketReplicationInput) (req // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation PutBucketReplication for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketReplication func (c *S3) PutBucketReplication(input *PutBucketReplicationInput) (*PutBucketReplicationOutput, error) { req, out := c.PutBucketReplicationRequest(input) err := req.Send() @@ -3271,6 +4181,7 @@ const opPutBucketRequestPayment = "PutBucketRequestPayment" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketRequestPayment func (c *S3) PutBucketRequestPaymentRequest(input *PutBucketRequestPaymentInput) (req *request.Request, output *PutBucketRequestPaymentOutput) { op := &request.Operation{ Name: opPutBucketRequestPayment, @@ -3282,11 +4193,10 @@ func (c *S3) PutBucketRequestPaymentRequest(input *PutBucketRequestPaymentInput) input = &PutBucketRequestPaymentInput{} } + output = &PutBucketRequestPaymentOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutBucketRequestPaymentOutput{} - req.Data = output return } @@ -3304,6 +4214,7 @@ func (c *S3) PutBucketRequestPaymentRequest(input *PutBucketRequestPaymentInput) // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation PutBucketRequestPayment for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketRequestPayment func (c *S3) PutBucketRequestPayment(input *PutBucketRequestPaymentInput) (*PutBucketRequestPaymentOutput, error) { req, out := c.PutBucketRequestPaymentRequest(input) err := req.Send() @@ -3336,6 +4247,7 @@ const opPutBucketTagging = "PutBucketTagging" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketTagging func (c *S3) PutBucketTaggingRequest(input *PutBucketTaggingInput) (req *request.Request, output *PutBucketTaggingOutput) { op := &request.Operation{ Name: opPutBucketTagging, @@ -3347,11 +4259,10 @@ func (c *S3) PutBucketTaggingRequest(input *PutBucketTaggingInput) (req *request input = &PutBucketTaggingInput{} } + output = &PutBucketTaggingOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutBucketTaggingOutput{} - req.Data = output return } @@ -3365,6 +4276,7 @@ func (c *S3) PutBucketTaggingRequest(input *PutBucketTaggingInput) (req *request // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation PutBucketTagging for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketTagging func (c *S3) PutBucketTagging(input *PutBucketTaggingInput) (*PutBucketTaggingOutput, error) { req, out := c.PutBucketTaggingRequest(input) err := req.Send() @@ -3397,6 +4309,7 @@ const opPutBucketVersioning = "PutBucketVersioning" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketVersioning func (c *S3) PutBucketVersioningRequest(input *PutBucketVersioningInput) (req *request.Request, output *PutBucketVersioningOutput) { op := &request.Operation{ Name: opPutBucketVersioning, @@ -3408,11 +4321,10 @@ func (c *S3) PutBucketVersioningRequest(input *PutBucketVersioningInput) (req *r input = &PutBucketVersioningInput{} } + output = &PutBucketVersioningOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutBucketVersioningOutput{} - req.Data = output return } @@ -3427,6 +4339,7 @@ func (c *S3) PutBucketVersioningRequest(input *PutBucketVersioningInput) (req *r // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation PutBucketVersioning for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketVersioning func (c *S3) PutBucketVersioning(input *PutBucketVersioningInput) (*PutBucketVersioningOutput, error) { req, out := c.PutBucketVersioningRequest(input) err := req.Send() @@ -3459,6 +4372,7 @@ const opPutBucketWebsite = "PutBucketWebsite" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketWebsite func (c *S3) PutBucketWebsiteRequest(input *PutBucketWebsiteInput) (req *request.Request, output *PutBucketWebsiteOutput) { op := &request.Operation{ Name: opPutBucketWebsite, @@ -3470,11 +4384,10 @@ func (c *S3) PutBucketWebsiteRequest(input *PutBucketWebsiteInput) (req *request input = &PutBucketWebsiteInput{} } + output = &PutBucketWebsiteOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutBucketWebsiteOutput{} - req.Data = output return } @@ -3488,6 +4401,7 @@ func (c *S3) PutBucketWebsiteRequest(input *PutBucketWebsiteInput) (req *request // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation PutBucketWebsite for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketWebsite func (c *S3) PutBucketWebsite(input *PutBucketWebsiteInput) (*PutBucketWebsiteOutput, error) { req, out := c.PutBucketWebsiteRequest(input) err := req.Send() @@ -3520,6 +4434,7 @@ const opPutObject = "PutObject" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObject func (c *S3) PutObjectRequest(input *PutObjectInput) (req *request.Request, output *PutObjectOutput) { op := &request.Operation{ Name: opPutObject, @@ -3531,9 +4446,8 @@ func (c *S3) PutObjectRequest(input *PutObjectInput) (req *request.Request, outp input = &PutObjectInput{} } - req = c.newRequest(op, input, output) output = &PutObjectOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3547,6 +4461,7 @@ func (c *S3) PutObjectRequest(input *PutObjectInput) (req *request.Request, outp // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation PutObject for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObject func (c *S3) PutObject(input *PutObjectInput) (*PutObjectOutput, error) { req, out := c.PutObjectRequest(input) err := req.Send() @@ -3579,6 +4494,7 @@ const opPutObjectAcl = "PutObjectAcl" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectAcl func (c *S3) PutObjectAclRequest(input *PutObjectAclInput) (req *request.Request, output *PutObjectAclOutput) { op := &request.Operation{ Name: opPutObjectAcl, @@ -3590,9 +4506,8 @@ func (c *S3) PutObjectAclRequest(input *PutObjectAclInput) (req *request.Request input = &PutObjectAclInput{} } - req = c.newRequest(op, input, output) output = &PutObjectAclOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3609,15 +4524,76 @@ func (c *S3) PutObjectAclRequest(input *PutObjectAclInput) (req *request.Request // API operation PutObjectAcl for usage and error information. // // Returned Error Codes: -// * NoSuchKey +// * ErrCodeNoSuchKey "NoSuchKey" // The specified key does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectAcl func (c *S3) PutObjectAcl(input *PutObjectAclInput) (*PutObjectAclOutput, error) { req, out := c.PutObjectAclRequest(input) err := req.Send() return out, err } +const opPutObjectTagging = "PutObjectTagging" + +// PutObjectTaggingRequest generates a "aws/request.Request" representing the +// client's request for the PutObjectTagging operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See PutObjectTagging for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the PutObjectTagging method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the PutObjectTaggingRequest method. +// req, resp := client.PutObjectTaggingRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectTagging +func (c *S3) PutObjectTaggingRequest(input *PutObjectTaggingInput) (req *request.Request, output *PutObjectTaggingOutput) { + op := &request.Operation{ + Name: opPutObjectTagging, + HTTPMethod: "PUT", + HTTPPath: "/{Bucket}/{Key+}?tagging", + } + + if input == nil { + input = &PutObjectTaggingInput{} + } + + output = &PutObjectTaggingOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutObjectTagging API operation for Amazon Simple Storage Service. +// +// Sets the supplied tag-set to an object that already exists in a bucket +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation PutObjectTagging for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectTagging +func (c *S3) PutObjectTagging(input *PutObjectTaggingInput) (*PutObjectTaggingOutput, error) { + req, out := c.PutObjectTaggingRequest(input) + err := req.Send() + return out, err +} + const opRestoreObject = "RestoreObject" // RestoreObjectRequest generates a "aws/request.Request" representing the @@ -3644,6 +4620,7 @@ const opRestoreObject = "RestoreObject" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RestoreObject func (c *S3) RestoreObjectRequest(input *RestoreObjectInput) (req *request.Request, output *RestoreObjectOutput) { op := &request.Operation{ Name: opRestoreObject, @@ -3655,9 +4632,8 @@ func (c *S3) RestoreObjectRequest(input *RestoreObjectInput) (req *request.Reque input = &RestoreObjectInput{} } - req = c.newRequest(op, input, output) output = &RestoreObjectOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3673,9 +4649,10 @@ func (c *S3) RestoreObjectRequest(input *RestoreObjectInput) (req *request.Reque // API operation RestoreObject for usage and error information. // // Returned Error Codes: -// * ObjectAlreadyInActiveTierError +// * ErrCodeObjectAlreadyInActiveTierError "ObjectAlreadyInActiveTierError" // This operation is not allowed against this storage tier // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RestoreObject func (c *S3) RestoreObject(input *RestoreObjectInput) (*RestoreObjectOutput, error) { req, out := c.RestoreObjectRequest(input) err := req.Send() @@ -3708,6 +4685,7 @@ const opUploadPart = "UploadPart" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPart func (c *S3) UploadPartRequest(input *UploadPartInput) (req *request.Request, output *UploadPartOutput) { op := &request.Operation{ Name: opUploadPart, @@ -3719,9 +4697,8 @@ func (c *S3) UploadPartRequest(input *UploadPartInput) (req *request.Request, ou input = &UploadPartInput{} } - req = c.newRequest(op, input, output) output = &UploadPartOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3741,6 +4718,7 @@ func (c *S3) UploadPartRequest(input *UploadPartInput) (req *request.Request, ou // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation UploadPart for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPart func (c *S3) UploadPart(input *UploadPartInput) (*UploadPartOutput, error) { req, out := c.UploadPartRequest(input) err := req.Send() @@ -3773,6 +4751,7 @@ const opUploadPartCopy = "UploadPartCopy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPartCopy func (c *S3) UploadPartCopyRequest(input *UploadPartCopyInput) (req *request.Request, output *UploadPartCopyOutput) { op := &request.Operation{ Name: opUploadPartCopy, @@ -3784,9 +4763,8 @@ func (c *S3) UploadPartCopyRequest(input *UploadPartCopyInput) (req *request.Req input = &UploadPartCopyInput{} } - req = c.newRequest(op, input, output) output = &UploadPartCopyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3800,6 +4778,7 @@ func (c *S3) UploadPartCopyRequest(input *UploadPartCopyInput) (req *request.Req // // See the AWS API reference guide for Amazon Simple Storage Service's // API operation UploadPartCopy for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPartCopy func (c *S3) UploadPartCopy(input *UploadPartCopyInput) (*UploadPartCopyOutput, error) { req, out := c.UploadPartCopyRequest(input) err := req.Send() @@ -3808,6 +4787,7 @@ func (c *S3) UploadPartCopy(input *UploadPartCopyInput) (*UploadPartCopyOutput, // Specifies the days since the initiation of an Incomplete Multipart Upload // that Lifecycle will wait before permanently removing all parts of the upload. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AbortIncompleteMultipartUpload type AbortIncompleteMultipartUpload struct { _ struct{} `type:"structure"` @@ -3826,6 +4806,13 @@ func (s AbortIncompleteMultipartUpload) GoString() string { return s.String() } +// SetDaysAfterInitiation sets the DaysAfterInitiation field's value. +func (s *AbortIncompleteMultipartUpload) SetDaysAfterInitiation(v int64) *AbortIncompleteMultipartUpload { + s.DaysAfterInitiation = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AbortMultipartUploadRequest type AbortMultipartUploadInput struct { _ struct{} `type:"structure"` @@ -3877,6 +4864,31 @@ func (s *AbortMultipartUploadInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *AbortMultipartUploadInput) SetBucket(v string) *AbortMultipartUploadInput { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *AbortMultipartUploadInput) SetKey(v string) *AbortMultipartUploadInput { + s.Key = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *AbortMultipartUploadInput) SetRequestPayer(v string) *AbortMultipartUploadInput { + s.RequestPayer = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *AbortMultipartUploadInput) SetUploadId(v string) *AbortMultipartUploadInput { + s.UploadId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AbortMultipartUploadOutput type AbortMultipartUploadOutput struct { _ struct{} `type:"structure"` @@ -3895,6 +4907,13 @@ func (s AbortMultipartUploadOutput) GoString() string { return s.String() } +// SetRequestCharged sets the RequestCharged field's value. +func (s *AbortMultipartUploadOutput) SetRequestCharged(v string) *AbortMultipartUploadOutput { + s.RequestCharged = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AccelerateConfiguration type AccelerateConfiguration struct { _ struct{} `type:"structure"` @@ -3912,6 +4931,13 @@ func (s AccelerateConfiguration) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *AccelerateConfiguration) SetStatus(v string) *AccelerateConfiguration { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AccessControlPolicy type AccessControlPolicy struct { _ struct{} `type:"structure"` @@ -3951,11 +4977,332 @@ func (s *AccessControlPolicy) Validate() error { return nil } -type Bucket struct { - _ struct{} `type:"structure"` +// SetGrants sets the Grants field's value. +func (s *AccessControlPolicy) SetGrants(v []*Grant) *AccessControlPolicy { + s.Grants = v + return s +} - // Date the bucket was created. - CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` +// SetOwner sets the Owner field's value. +func (s *AccessControlPolicy) SetOwner(v *Owner) *AccessControlPolicy { + s.Owner = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AnalyticsAndOperator +type AnalyticsAndOperator struct { + _ struct{} `type:"structure"` + + // The prefix to use when evaluating an AND predicate. + Prefix *string `type:"string"` + + // The list of tags to use when evaluating an AND predicate. + Tags []*Tag `locationName:"Tag" locationNameList:"Tag" type:"list" flattened:"true"` +} + +// String returns the string representation +func (s AnalyticsAndOperator) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AnalyticsAndOperator) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AnalyticsAndOperator) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AnalyticsAndOperator"} + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPrefix sets the Prefix field's value. +func (s *AnalyticsAndOperator) SetPrefix(v string) *AnalyticsAndOperator { + s.Prefix = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AnalyticsAndOperator) SetTags(v []*Tag) *AnalyticsAndOperator { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AnalyticsConfiguration +type AnalyticsConfiguration struct { + _ struct{} `type:"structure"` + + // The filter used to describe a set of objects for analyses. A filter must + // have exactly one prefix, one tag, or one conjunction (AnalyticsAndOperator). + // If no filter is provided, all objects will be considered in any analysis. + Filter *AnalyticsFilter `type:"structure"` + + // The identifier used to represent an analytics configuration. + // + // Id is a required field + Id *string `type:"string" required:"true"` + + // If present, it indicates that data related to access patterns will be collected + // and made available to analyze the tradeoffs between different storage classes. + // + // StorageClassAnalysis is a required field + StorageClassAnalysis *StorageClassAnalysis `type:"structure" required:"true"` +} + +// String returns the string representation +func (s AnalyticsConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AnalyticsConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AnalyticsConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AnalyticsConfiguration"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.StorageClassAnalysis == nil { + invalidParams.Add(request.NewErrParamRequired("StorageClassAnalysis")) + } + if s.Filter != nil { + if err := s.Filter.Validate(); err != nil { + invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) + } + } + if s.StorageClassAnalysis != nil { + if err := s.StorageClassAnalysis.Validate(); err != nil { + invalidParams.AddNested("StorageClassAnalysis", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilter sets the Filter field's value. +func (s *AnalyticsConfiguration) SetFilter(v *AnalyticsFilter) *AnalyticsConfiguration { + s.Filter = v + return s +} + +// SetId sets the Id field's value. +func (s *AnalyticsConfiguration) SetId(v string) *AnalyticsConfiguration { + s.Id = &v + return s +} + +// SetStorageClassAnalysis sets the StorageClassAnalysis field's value. +func (s *AnalyticsConfiguration) SetStorageClassAnalysis(v *StorageClassAnalysis) *AnalyticsConfiguration { + s.StorageClassAnalysis = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AnalyticsExportDestination +type AnalyticsExportDestination struct { + _ struct{} `type:"structure"` + + // A destination signifying output to an S3 bucket. + // + // S3BucketDestination is a required field + S3BucketDestination *AnalyticsS3BucketDestination `type:"structure" required:"true"` +} + +// String returns the string representation +func (s AnalyticsExportDestination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AnalyticsExportDestination) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AnalyticsExportDestination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AnalyticsExportDestination"} + if s.S3BucketDestination == nil { + invalidParams.Add(request.NewErrParamRequired("S3BucketDestination")) + } + if s.S3BucketDestination != nil { + if err := s.S3BucketDestination.Validate(); err != nil { + invalidParams.AddNested("S3BucketDestination", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3BucketDestination sets the S3BucketDestination field's value. +func (s *AnalyticsExportDestination) SetS3BucketDestination(v *AnalyticsS3BucketDestination) *AnalyticsExportDestination { + s.S3BucketDestination = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AnalyticsFilter +type AnalyticsFilter struct { + _ struct{} `type:"structure"` + + // A conjunction (logical AND) of predicates, which is used in evaluating an + // analytics filter. The operator must have at least two predicates. + And *AnalyticsAndOperator `type:"structure"` + + // The prefix to use when evaluating an analytics filter. + Prefix *string `type:"string"` + + // The tag to use when evaluating an analytics filter. + Tag *Tag `type:"structure"` +} + +// String returns the string representation +func (s AnalyticsFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AnalyticsFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AnalyticsFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AnalyticsFilter"} + if s.And != nil { + if err := s.And.Validate(); err != nil { + invalidParams.AddNested("And", err.(request.ErrInvalidParams)) + } + } + if s.Tag != nil { + if err := s.Tag.Validate(); err != nil { + invalidParams.AddNested("Tag", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAnd sets the And field's value. +func (s *AnalyticsFilter) SetAnd(v *AnalyticsAndOperator) *AnalyticsFilter { + s.And = v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *AnalyticsFilter) SetPrefix(v string) *AnalyticsFilter { + s.Prefix = &v + return s +} + +// SetTag sets the Tag field's value. +func (s *AnalyticsFilter) SetTag(v *Tag) *AnalyticsFilter { + s.Tag = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AnalyticsS3BucketDestination +type AnalyticsS3BucketDestination struct { + _ struct{} `type:"structure"` + + // The Amazon resource name (ARN) of the bucket to which data is exported. + // + // Bucket is a required field + Bucket *string `type:"string" required:"true"` + + // The account ID that owns the destination bucket. If no account ID is provided, + // the owner will not be validated prior to exporting data. + BucketAccountId *string `type:"string"` + + // The file format used when exporting data to Amazon S3. + // + // Format is a required field + Format *string `type:"string" required:"true" enum:"AnalyticsS3ExportFileFormat"` + + // The prefix to use when exporting data. The exported data begins with this + // prefix. + Prefix *string `type:"string"` +} + +// String returns the string representation +func (s AnalyticsS3BucketDestination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AnalyticsS3BucketDestination) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AnalyticsS3BucketDestination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AnalyticsS3BucketDestination"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Format == nil { + invalidParams.Add(request.NewErrParamRequired("Format")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *AnalyticsS3BucketDestination) SetBucket(v string) *AnalyticsS3BucketDestination { + s.Bucket = &v + return s +} + +// SetBucketAccountId sets the BucketAccountId field's value. +func (s *AnalyticsS3BucketDestination) SetBucketAccountId(v string) *AnalyticsS3BucketDestination { + s.BucketAccountId = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *AnalyticsS3BucketDestination) SetFormat(v string) *AnalyticsS3BucketDestination { + s.Format = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *AnalyticsS3BucketDestination) SetPrefix(v string) *AnalyticsS3BucketDestination { + s.Prefix = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Bucket +type Bucket struct { + _ struct{} `type:"structure"` + + // Date the bucket was created. + CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The name of the bucket. Name *string `type:"string"` @@ -3971,6 +5318,19 @@ func (s Bucket) GoString() string { return s.String() } +// SetCreationDate sets the CreationDate field's value. +func (s *Bucket) SetCreationDate(v time.Time) *Bucket { + s.CreationDate = &v + return s +} + +// SetName sets the Name field's value. +func (s *Bucket) SetName(v string) *Bucket { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/BucketLifecycleConfiguration type BucketLifecycleConfiguration struct { _ struct{} `type:"structure"` @@ -4011,6 +5371,13 @@ func (s *BucketLifecycleConfiguration) Validate() error { return nil } +// SetRules sets the Rules field's value. +func (s *BucketLifecycleConfiguration) SetRules(v []*LifecycleRule) *BucketLifecycleConfiguration { + s.Rules = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/BucketLoggingStatus type BucketLoggingStatus struct { _ struct{} `type:"structure"` @@ -4042,6 +5409,13 @@ func (s *BucketLoggingStatus) Validate() error { return nil } +// SetLoggingEnabled sets the LoggingEnabled field's value. +func (s *BucketLoggingStatus) SetLoggingEnabled(v *LoggingEnabled) *BucketLoggingStatus { + s.LoggingEnabled = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CORSConfiguration type CORSConfiguration struct { _ struct{} `type:"structure"` @@ -4082,6 +5456,13 @@ func (s *CORSConfiguration) Validate() error { return nil } +// SetCORSRules sets the CORSRules field's value. +func (s *CORSConfiguration) SetCORSRules(v []*CORSRule) *CORSConfiguration { + s.CORSRules = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CORSRule type CORSRule struct { _ struct{} `type:"structure"` @@ -4135,6 +5516,37 @@ func (s *CORSRule) Validate() error { return nil } +// SetAllowedHeaders sets the AllowedHeaders field's value. +func (s *CORSRule) SetAllowedHeaders(v []*string) *CORSRule { + s.AllowedHeaders = v + return s +} + +// SetAllowedMethods sets the AllowedMethods field's value. +func (s *CORSRule) SetAllowedMethods(v []*string) *CORSRule { + s.AllowedMethods = v + return s +} + +// SetAllowedOrigins sets the AllowedOrigins field's value. +func (s *CORSRule) SetAllowedOrigins(v []*string) *CORSRule { + s.AllowedOrigins = v + return s +} + +// SetExposeHeaders sets the ExposeHeaders field's value. +func (s *CORSRule) SetExposeHeaders(v []*string) *CORSRule { + s.ExposeHeaders = v + return s +} + +// SetMaxAgeSeconds sets the MaxAgeSeconds field's value. +func (s *CORSRule) SetMaxAgeSeconds(v int64) *CORSRule { + s.MaxAgeSeconds = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CloudFunctionConfiguration type CloudFunctionConfiguration struct { _ struct{} `type:"structure"` @@ -4162,6 +5574,37 @@ func (s CloudFunctionConfiguration) GoString() string { return s.String() } +// SetCloudFunction sets the CloudFunction field's value. +func (s *CloudFunctionConfiguration) SetCloudFunction(v string) *CloudFunctionConfiguration { + s.CloudFunction = &v + return s +} + +// SetEvent sets the Event field's value. +func (s *CloudFunctionConfiguration) SetEvent(v string) *CloudFunctionConfiguration { + s.Event = &v + return s +} + +// SetEvents sets the Events field's value. +func (s *CloudFunctionConfiguration) SetEvents(v []*string) *CloudFunctionConfiguration { + s.Events = v + return s +} + +// SetId sets the Id field's value. +func (s *CloudFunctionConfiguration) SetId(v string) *CloudFunctionConfiguration { + s.Id = &v + return s +} + +// SetInvocationRole sets the InvocationRole field's value. +func (s *CloudFunctionConfiguration) SetInvocationRole(v string) *CloudFunctionConfiguration { + s.InvocationRole = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CommonPrefix type CommonPrefix struct { _ struct{} `type:"structure"` @@ -4178,6 +5621,13 @@ func (s CommonPrefix) GoString() string { return s.String() } +// SetPrefix sets the Prefix field's value. +func (s *CommonPrefix) SetPrefix(v string) *CommonPrefix { + s.Prefix = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CompleteMultipartUploadRequest type CompleteMultipartUploadInput struct { _ struct{} `type:"structure" payload:"MultipartUpload"` @@ -4231,6 +5681,37 @@ func (s *CompleteMultipartUploadInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *CompleteMultipartUploadInput) SetBucket(v string) *CompleteMultipartUploadInput { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *CompleteMultipartUploadInput) SetKey(v string) *CompleteMultipartUploadInput { + s.Key = &v + return s +} + +// SetMultipartUpload sets the MultipartUpload field's value. +func (s *CompleteMultipartUploadInput) SetMultipartUpload(v *CompletedMultipartUpload) *CompleteMultipartUploadInput { + s.MultipartUpload = v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *CompleteMultipartUploadInput) SetRequestPayer(v string) *CompleteMultipartUploadInput { + s.RequestPayer = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *CompleteMultipartUploadInput) SetUploadId(v string) *CompleteMultipartUploadInput { + s.UploadId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CompleteMultipartUploadOutput type CompleteMultipartUploadOutput struct { _ struct{} `type:"structure"` @@ -4273,6 +5754,61 @@ func (s CompleteMultipartUploadOutput) GoString() string { return s.String() } +// SetBucket sets the Bucket field's value. +func (s *CompleteMultipartUploadOutput) SetBucket(v string) *CompleteMultipartUploadOutput { + s.Bucket = &v + return s +} + +// SetETag sets the ETag field's value. +func (s *CompleteMultipartUploadOutput) SetETag(v string) *CompleteMultipartUploadOutput { + s.ETag = &v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *CompleteMultipartUploadOutput) SetExpiration(v string) *CompleteMultipartUploadOutput { + s.Expiration = &v + return s +} + +// SetKey sets the Key field's value. +func (s *CompleteMultipartUploadOutput) SetKey(v string) *CompleteMultipartUploadOutput { + s.Key = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *CompleteMultipartUploadOutput) SetLocation(v string) *CompleteMultipartUploadOutput { + s.Location = &v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *CompleteMultipartUploadOutput) SetRequestCharged(v string) *CompleteMultipartUploadOutput { + s.RequestCharged = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *CompleteMultipartUploadOutput) SetSSEKMSKeyId(v string) *CompleteMultipartUploadOutput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *CompleteMultipartUploadOutput) SetServerSideEncryption(v string) *CompleteMultipartUploadOutput { + s.ServerSideEncryption = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *CompleteMultipartUploadOutput) SetVersionId(v string) *CompleteMultipartUploadOutput { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CompletedMultipartUpload type CompletedMultipartUpload struct { _ struct{} `type:"structure"` @@ -4289,6 +5825,13 @@ func (s CompletedMultipartUpload) GoString() string { return s.String() } +// SetParts sets the Parts field's value. +func (s *CompletedMultipartUpload) SetParts(v []*CompletedPart) *CompletedMultipartUpload { + s.Parts = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CompletedPart type CompletedPart struct { _ struct{} `type:"structure"` @@ -4310,6 +5853,19 @@ func (s CompletedPart) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *CompletedPart) SetETag(v string) *CompletedPart { + s.ETag = &v + return s +} + +// SetPartNumber sets the PartNumber field's value. +func (s *CompletedPart) SetPartNumber(v int64) *CompletedPart { + s.PartNumber = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Condition type Condition struct { _ struct{} `type:"structure"` @@ -4340,6 +5896,19 @@ func (s Condition) GoString() string { return s.String() } +// SetHttpErrorCodeReturnedEquals sets the HttpErrorCodeReturnedEquals field's value. +func (s *Condition) SetHttpErrorCodeReturnedEquals(v string) *Condition { + s.HttpErrorCodeReturnedEquals = &v + return s +} + +// SetKeyPrefixEquals sets the KeyPrefixEquals field's value. +func (s *Condition) SetKeyPrefixEquals(v string) *Condition { + s.KeyPrefixEquals = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CopyObjectRequest type CopyObjectInput struct { _ struct{} `type:"structure"` @@ -4457,6 +6026,15 @@ type CopyObjectInput struct { // The type of storage to use for the object. Defaults to 'STANDARD'. StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"` + // The tag-set for the object destination object this value must be used in + // conjunction with the TaggingDirective. The tag-set must be encoded as URL + // Query parameters + Tagging *string `location:"header" locationName:"x-amz-tagging" type:"string"` + + // Specifies whether the object tag-set are copied from the source object or + // replaced with tag-set provided in the request. + TaggingDirective *string `location:"header" locationName:"x-amz-tagging-directive" type:"string" enum:"TaggingDirective"` + // If the bucket is configured as a website, redirects requests for this object // to another object in the same bucket or to an external URL. Amazon S3 stores // the value of this header in the object metadata. @@ -4495,15 +6073,214 @@ func (s *CopyObjectInput) Validate() error { return nil } -type CopyObjectOutput struct { - _ struct{} `type:"structure" payload:"CopyObjectResult"` +// SetACL sets the ACL field's value. +func (s *CopyObjectInput) SetACL(v string) *CopyObjectInput { + s.ACL = &v + return s +} - CopyObjectResult *CopyObjectResult `type:"structure"` +// SetBucket sets the Bucket field's value. +func (s *CopyObjectInput) SetBucket(v string) *CopyObjectInput { + s.Bucket = &v + return s +} - CopySourceVersionId *string `location:"header" locationName:"x-amz-copy-source-version-id" type:"string"` +// SetCacheControl sets the CacheControl field's value. +func (s *CopyObjectInput) SetCacheControl(v string) *CopyObjectInput { + s.CacheControl = &v + return s +} - // If the object expiration is configured, the response includes this header. - Expiration *string `location:"header" locationName:"x-amz-expiration" type:"string"` +// SetContentDisposition sets the ContentDisposition field's value. +func (s *CopyObjectInput) SetContentDisposition(v string) *CopyObjectInput { + s.ContentDisposition = &v + return s +} + +// SetContentEncoding sets the ContentEncoding field's value. +func (s *CopyObjectInput) SetContentEncoding(v string) *CopyObjectInput { + s.ContentEncoding = &v + return s +} + +// SetContentLanguage sets the ContentLanguage field's value. +func (s *CopyObjectInput) SetContentLanguage(v string) *CopyObjectInput { + s.ContentLanguage = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *CopyObjectInput) SetContentType(v string) *CopyObjectInput { + s.ContentType = &v + return s +} + +// SetCopySource sets the CopySource field's value. +func (s *CopyObjectInput) SetCopySource(v string) *CopyObjectInput { + s.CopySource = &v + return s +} + +// SetCopySourceIfMatch sets the CopySourceIfMatch field's value. +func (s *CopyObjectInput) SetCopySourceIfMatch(v string) *CopyObjectInput { + s.CopySourceIfMatch = &v + return s +} + +// SetCopySourceIfModifiedSince sets the CopySourceIfModifiedSince field's value. +func (s *CopyObjectInput) SetCopySourceIfModifiedSince(v time.Time) *CopyObjectInput { + s.CopySourceIfModifiedSince = &v + return s +} + +// SetCopySourceIfNoneMatch sets the CopySourceIfNoneMatch field's value. +func (s *CopyObjectInput) SetCopySourceIfNoneMatch(v string) *CopyObjectInput { + s.CopySourceIfNoneMatch = &v + return s +} + +// SetCopySourceIfUnmodifiedSince sets the CopySourceIfUnmodifiedSince field's value. +func (s *CopyObjectInput) SetCopySourceIfUnmodifiedSince(v time.Time) *CopyObjectInput { + s.CopySourceIfUnmodifiedSince = &v + return s +} + +// SetCopySourceSSECustomerAlgorithm sets the CopySourceSSECustomerAlgorithm field's value. +func (s *CopyObjectInput) SetCopySourceSSECustomerAlgorithm(v string) *CopyObjectInput { + s.CopySourceSSECustomerAlgorithm = &v + return s +} + +// SetCopySourceSSECustomerKey sets the CopySourceSSECustomerKey field's value. +func (s *CopyObjectInput) SetCopySourceSSECustomerKey(v string) *CopyObjectInput { + s.CopySourceSSECustomerKey = &v + return s +} + +// SetCopySourceSSECustomerKeyMD5 sets the CopySourceSSECustomerKeyMD5 field's value. +func (s *CopyObjectInput) SetCopySourceSSECustomerKeyMD5(v string) *CopyObjectInput { + s.CopySourceSSECustomerKeyMD5 = &v + return s +} + +// SetExpires sets the Expires field's value. +func (s *CopyObjectInput) SetExpires(v time.Time) *CopyObjectInput { + s.Expires = &v + return s +} + +// SetGrantFullControl sets the GrantFullControl field's value. +func (s *CopyObjectInput) SetGrantFullControl(v string) *CopyObjectInput { + s.GrantFullControl = &v + return s +} + +// SetGrantRead sets the GrantRead field's value. +func (s *CopyObjectInput) SetGrantRead(v string) *CopyObjectInput { + s.GrantRead = &v + return s +} + +// SetGrantReadACP sets the GrantReadACP field's value. +func (s *CopyObjectInput) SetGrantReadACP(v string) *CopyObjectInput { + s.GrantReadACP = &v + return s +} + +// SetGrantWriteACP sets the GrantWriteACP field's value. +func (s *CopyObjectInput) SetGrantWriteACP(v string) *CopyObjectInput { + s.GrantWriteACP = &v + return s +} + +// SetKey sets the Key field's value. +func (s *CopyObjectInput) SetKey(v string) *CopyObjectInput { + s.Key = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *CopyObjectInput) SetMetadata(v map[string]*string) *CopyObjectInput { + s.Metadata = v + return s +} + +// SetMetadataDirective sets the MetadataDirective field's value. +func (s *CopyObjectInput) SetMetadataDirective(v string) *CopyObjectInput { + s.MetadataDirective = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *CopyObjectInput) SetRequestPayer(v string) *CopyObjectInput { + s.RequestPayer = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *CopyObjectInput) SetSSECustomerAlgorithm(v string) *CopyObjectInput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKey sets the SSECustomerKey field's value. +func (s *CopyObjectInput) SetSSECustomerKey(v string) *CopyObjectInput { + s.SSECustomerKey = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *CopyObjectInput) SetSSECustomerKeyMD5(v string) *CopyObjectInput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *CopyObjectInput) SetSSEKMSKeyId(v string) *CopyObjectInput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *CopyObjectInput) SetServerSideEncryption(v string) *CopyObjectInput { + s.ServerSideEncryption = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *CopyObjectInput) SetStorageClass(v string) *CopyObjectInput { + s.StorageClass = &v + return s +} + +// SetTagging sets the Tagging field's value. +func (s *CopyObjectInput) SetTagging(v string) *CopyObjectInput { + s.Tagging = &v + return s +} + +// SetTaggingDirective sets the TaggingDirective field's value. +func (s *CopyObjectInput) SetTaggingDirective(v string) *CopyObjectInput { + s.TaggingDirective = &v + return s +} + +// SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value. +func (s *CopyObjectInput) SetWebsiteRedirectLocation(v string) *CopyObjectInput { + s.WebsiteRedirectLocation = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CopyObjectOutput +type CopyObjectOutput struct { + _ struct{} `type:"structure" payload:"CopyObjectResult"` + + CopyObjectResult *CopyObjectResult `type:"structure"` + + CopySourceVersionId *string `location:"header" locationName:"x-amz-copy-source-version-id" type:"string"` + + // If the object expiration is configured, the response includes this header. + Expiration *string `location:"header" locationName:"x-amz-expiration" type:"string"` // If present, indicates that the requester was successfully charged for the // request. @@ -4541,6 +6318,61 @@ func (s CopyObjectOutput) GoString() string { return s.String() } +// SetCopyObjectResult sets the CopyObjectResult field's value. +func (s *CopyObjectOutput) SetCopyObjectResult(v *CopyObjectResult) *CopyObjectOutput { + s.CopyObjectResult = v + return s +} + +// SetCopySourceVersionId sets the CopySourceVersionId field's value. +func (s *CopyObjectOutput) SetCopySourceVersionId(v string) *CopyObjectOutput { + s.CopySourceVersionId = &v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *CopyObjectOutput) SetExpiration(v string) *CopyObjectOutput { + s.Expiration = &v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *CopyObjectOutput) SetRequestCharged(v string) *CopyObjectOutput { + s.RequestCharged = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *CopyObjectOutput) SetSSECustomerAlgorithm(v string) *CopyObjectOutput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *CopyObjectOutput) SetSSECustomerKeyMD5(v string) *CopyObjectOutput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *CopyObjectOutput) SetSSEKMSKeyId(v string) *CopyObjectOutput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *CopyObjectOutput) SetServerSideEncryption(v string) *CopyObjectOutput { + s.ServerSideEncryption = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *CopyObjectOutput) SetVersionId(v string) *CopyObjectOutput { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CopyObjectResult type CopyObjectResult struct { _ struct{} `type:"structure"` @@ -4559,6 +6391,19 @@ func (s CopyObjectResult) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *CopyObjectResult) SetETag(v string) *CopyObjectResult { + s.ETag = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *CopyObjectResult) SetLastModified(v time.Time) *CopyObjectResult { + s.LastModified = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CopyPartResult type CopyPartResult struct { _ struct{} `type:"structure"` @@ -4579,6 +6424,19 @@ func (s CopyPartResult) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *CopyPartResult) SetETag(v string) *CopyPartResult { + s.ETag = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *CopyPartResult) SetLastModified(v time.Time) *CopyPartResult { + s.LastModified = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateBucketConfiguration type CreateBucketConfiguration struct { _ struct{} `type:"structure"` @@ -4597,6 +6455,13 @@ func (s CreateBucketConfiguration) GoString() string { return s.String() } +// SetLocationConstraint sets the LocationConstraint field's value. +func (s *CreateBucketConfiguration) SetLocationConstraint(v string) *CreateBucketConfiguration { + s.LocationConstraint = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateBucketRequest type CreateBucketInput struct { _ struct{} `type:"structure" payload:"CreateBucketConfiguration"` @@ -4648,6 +6513,55 @@ func (s *CreateBucketInput) Validate() error { return nil } +// SetACL sets the ACL field's value. +func (s *CreateBucketInput) SetACL(v string) *CreateBucketInput { + s.ACL = &v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *CreateBucketInput) SetBucket(v string) *CreateBucketInput { + s.Bucket = &v + return s +} + +// SetCreateBucketConfiguration sets the CreateBucketConfiguration field's value. +func (s *CreateBucketInput) SetCreateBucketConfiguration(v *CreateBucketConfiguration) *CreateBucketInput { + s.CreateBucketConfiguration = v + return s +} + +// SetGrantFullControl sets the GrantFullControl field's value. +func (s *CreateBucketInput) SetGrantFullControl(v string) *CreateBucketInput { + s.GrantFullControl = &v + return s +} + +// SetGrantRead sets the GrantRead field's value. +func (s *CreateBucketInput) SetGrantRead(v string) *CreateBucketInput { + s.GrantRead = &v + return s +} + +// SetGrantReadACP sets the GrantReadACP field's value. +func (s *CreateBucketInput) SetGrantReadACP(v string) *CreateBucketInput { + s.GrantReadACP = &v + return s +} + +// SetGrantWrite sets the GrantWrite field's value. +func (s *CreateBucketInput) SetGrantWrite(v string) *CreateBucketInput { + s.GrantWrite = &v + return s +} + +// SetGrantWriteACP sets the GrantWriteACP field's value. +func (s *CreateBucketInput) SetGrantWriteACP(v string) *CreateBucketInput { + s.GrantWriteACP = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateBucketOutput type CreateBucketOutput struct { _ struct{} `type:"structure"` @@ -4664,6 +6578,13 @@ func (s CreateBucketOutput) GoString() string { return s.String() } +// SetLocation sets the Location field's value. +func (s *CreateBucketOutput) SetLocation(v string) *CreateBucketOutput { + s.Location = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateMultipartUploadRequest type CreateMultipartUploadInput struct { _ struct{} `type:"structure"` @@ -4780,6 +6701,139 @@ func (s *CreateMultipartUploadInput) Validate() error { return nil } +// SetACL sets the ACL field's value. +func (s *CreateMultipartUploadInput) SetACL(v string) *CreateMultipartUploadInput { + s.ACL = &v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *CreateMultipartUploadInput) SetBucket(v string) *CreateMultipartUploadInput { + s.Bucket = &v + return s +} + +// SetCacheControl sets the CacheControl field's value. +func (s *CreateMultipartUploadInput) SetCacheControl(v string) *CreateMultipartUploadInput { + s.CacheControl = &v + return s +} + +// SetContentDisposition sets the ContentDisposition field's value. +func (s *CreateMultipartUploadInput) SetContentDisposition(v string) *CreateMultipartUploadInput { + s.ContentDisposition = &v + return s +} + +// SetContentEncoding sets the ContentEncoding field's value. +func (s *CreateMultipartUploadInput) SetContentEncoding(v string) *CreateMultipartUploadInput { + s.ContentEncoding = &v + return s +} + +// SetContentLanguage sets the ContentLanguage field's value. +func (s *CreateMultipartUploadInput) SetContentLanguage(v string) *CreateMultipartUploadInput { + s.ContentLanguage = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *CreateMultipartUploadInput) SetContentType(v string) *CreateMultipartUploadInput { + s.ContentType = &v + return s +} + +// SetExpires sets the Expires field's value. +func (s *CreateMultipartUploadInput) SetExpires(v time.Time) *CreateMultipartUploadInput { + s.Expires = &v + return s +} + +// SetGrantFullControl sets the GrantFullControl field's value. +func (s *CreateMultipartUploadInput) SetGrantFullControl(v string) *CreateMultipartUploadInput { + s.GrantFullControl = &v + return s +} + +// SetGrantRead sets the GrantRead field's value. +func (s *CreateMultipartUploadInput) SetGrantRead(v string) *CreateMultipartUploadInput { + s.GrantRead = &v + return s +} + +// SetGrantReadACP sets the GrantReadACP field's value. +func (s *CreateMultipartUploadInput) SetGrantReadACP(v string) *CreateMultipartUploadInput { + s.GrantReadACP = &v + return s +} + +// SetGrantWriteACP sets the GrantWriteACP field's value. +func (s *CreateMultipartUploadInput) SetGrantWriteACP(v string) *CreateMultipartUploadInput { + s.GrantWriteACP = &v + return s +} + +// SetKey sets the Key field's value. +func (s *CreateMultipartUploadInput) SetKey(v string) *CreateMultipartUploadInput { + s.Key = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *CreateMultipartUploadInput) SetMetadata(v map[string]*string) *CreateMultipartUploadInput { + s.Metadata = v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *CreateMultipartUploadInput) SetRequestPayer(v string) *CreateMultipartUploadInput { + s.RequestPayer = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *CreateMultipartUploadInput) SetSSECustomerAlgorithm(v string) *CreateMultipartUploadInput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKey sets the SSECustomerKey field's value. +func (s *CreateMultipartUploadInput) SetSSECustomerKey(v string) *CreateMultipartUploadInput { + s.SSECustomerKey = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *CreateMultipartUploadInput) SetSSECustomerKeyMD5(v string) *CreateMultipartUploadInput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *CreateMultipartUploadInput) SetSSEKMSKeyId(v string) *CreateMultipartUploadInput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *CreateMultipartUploadInput) SetServerSideEncryption(v string) *CreateMultipartUploadInput { + s.ServerSideEncryption = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *CreateMultipartUploadInput) SetStorageClass(v string) *CreateMultipartUploadInput { + s.StorageClass = &v + return s +} + +// SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value. +func (s *CreateMultipartUploadInput) SetWebsiteRedirectLocation(v string) *CreateMultipartUploadInput { + s.WebsiteRedirectLocation = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateMultipartUploadOutput type CreateMultipartUploadOutput struct { _ struct{} `type:"structure"` @@ -4832,6 +6886,67 @@ func (s CreateMultipartUploadOutput) GoString() string { return s.String() } +// SetAbortDate sets the AbortDate field's value. +func (s *CreateMultipartUploadOutput) SetAbortDate(v time.Time) *CreateMultipartUploadOutput { + s.AbortDate = &v + return s +} + +// SetAbortRuleId sets the AbortRuleId field's value. +func (s *CreateMultipartUploadOutput) SetAbortRuleId(v string) *CreateMultipartUploadOutput { + s.AbortRuleId = &v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *CreateMultipartUploadOutput) SetBucket(v string) *CreateMultipartUploadOutput { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *CreateMultipartUploadOutput) SetKey(v string) *CreateMultipartUploadOutput { + s.Key = &v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *CreateMultipartUploadOutput) SetRequestCharged(v string) *CreateMultipartUploadOutput { + s.RequestCharged = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *CreateMultipartUploadOutput) SetSSECustomerAlgorithm(v string) *CreateMultipartUploadOutput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *CreateMultipartUploadOutput) SetSSECustomerKeyMD5(v string) *CreateMultipartUploadOutput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *CreateMultipartUploadOutput) SetSSEKMSKeyId(v string) *CreateMultipartUploadOutput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *CreateMultipartUploadOutput) SetServerSideEncryption(v string) *CreateMultipartUploadOutput { + s.ServerSideEncryption = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *CreateMultipartUploadOutput) SetUploadId(v string) *CreateMultipartUploadOutput { + s.UploadId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Delete type Delete struct { _ struct{} `type:"structure"` @@ -4876,6 +6991,87 @@ func (s *Delete) Validate() error { return nil } +// SetObjects sets the Objects field's value. +func (s *Delete) SetObjects(v []*ObjectIdentifier) *Delete { + s.Objects = v + return s +} + +// SetQuiet sets the Quiet field's value. +func (s *Delete) SetQuiet(v bool) *Delete { + s.Quiet = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketAnalyticsConfigurationRequest +type DeleteBucketAnalyticsConfigurationInput struct { + _ struct{} `type:"structure"` + + // The name of the bucket from which an analytics configuration is deleted. + // + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // The identifier used to represent an analytics configuration. + // + // Id is a required field + Id *string `location:"querystring" locationName:"id" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteBucketAnalyticsConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBucketAnalyticsConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteBucketAnalyticsConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteBucketAnalyticsConfigurationInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *DeleteBucketAnalyticsConfigurationInput) SetBucket(v string) *DeleteBucketAnalyticsConfigurationInput { + s.Bucket = &v + return s +} + +// SetId sets the Id field's value. +func (s *DeleteBucketAnalyticsConfigurationInput) SetId(v string) *DeleteBucketAnalyticsConfigurationInput { + s.Id = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketAnalyticsConfigurationOutput +type DeleteBucketAnalyticsConfigurationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteBucketAnalyticsConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBucketAnalyticsConfigurationOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketCorsRequest type DeleteBucketCorsInput struct { _ struct{} `type:"structure"` @@ -4906,6 +7102,13 @@ func (s *DeleteBucketCorsInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *DeleteBucketCorsInput) SetBucket(v string) *DeleteBucketCorsInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketCorsOutput type DeleteBucketCorsOutput struct { _ struct{} `type:"structure"` } @@ -4920,6 +7123,7 @@ func (s DeleteBucketCorsOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketRequest type DeleteBucketInput struct { _ struct{} `type:"structure"` @@ -4950,29 +7154,46 @@ func (s *DeleteBucketInput) Validate() error { return nil } -type DeleteBucketLifecycleInput struct { +// SetBucket sets the Bucket field's value. +func (s *DeleteBucketInput) SetBucket(v string) *DeleteBucketInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketInventoryConfigurationRequest +type DeleteBucketInventoryConfigurationInput struct { _ struct{} `type:"structure"` + // The name of the bucket containing the inventory configuration to delete. + // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // The ID used to identify the inventory configuration. + // + // Id is a required field + Id *string `location:"querystring" locationName:"id" type:"string" required:"true"` } // String returns the string representation -func (s DeleteBucketLifecycleInput) String() string { +func (s DeleteBucketInventoryConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteBucketLifecycleInput) GoString() string { +func (s DeleteBucketInventoryConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteBucketLifecycleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteBucketLifecycleInput"} +func (s *DeleteBucketInventoryConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteBucketInventoryConfigurationInput"} if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } if invalidParams.Len() > 0 { return invalidParams @@ -4980,35 +7201,35 @@ func (s *DeleteBucketLifecycleInput) Validate() error { return nil } -type DeleteBucketLifecycleOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteBucketLifecycleOutput) String() string { - return awsutil.Prettify(s) +// SetBucket sets the Bucket field's value. +func (s *DeleteBucketInventoryConfigurationInput) SetBucket(v string) *DeleteBucketInventoryConfigurationInput { + s.Bucket = &v + return s } -// GoString returns the string representation -func (s DeleteBucketLifecycleOutput) GoString() string { - return s.String() +// SetId sets the Id field's value. +func (s *DeleteBucketInventoryConfigurationInput) SetId(v string) *DeleteBucketInventoryConfigurationInput { + s.Id = &v + return s } -type DeleteBucketOutput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketInventoryConfigurationOutput +type DeleteBucketInventoryConfigurationOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s DeleteBucketOutput) String() string { +func (s DeleteBucketInventoryConfigurationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteBucketOutput) GoString() string { +func (s DeleteBucketInventoryConfigurationOutput) GoString() string { return s.String() } -type DeleteBucketPolicyInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketLifecycleRequest +type DeleteBucketLifecycleInput struct { _ struct{} `type:"structure"` // Bucket is a required field @@ -5016,7 +7237,142 @@ type DeleteBucketPolicyInput struct { } // String returns the string representation -func (s DeleteBucketPolicyInput) String() string { +func (s DeleteBucketLifecycleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBucketLifecycleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteBucketLifecycleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteBucketLifecycleInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *DeleteBucketLifecycleInput) SetBucket(v string) *DeleteBucketLifecycleInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketLifecycleOutput +type DeleteBucketLifecycleOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteBucketLifecycleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBucketLifecycleOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketMetricsConfigurationRequest +type DeleteBucketMetricsConfigurationInput struct { + _ struct{} `type:"structure"` + + // The name of the bucket containing the metrics configuration to delete. + // + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // The ID used to identify the metrics configuration. + // + // Id is a required field + Id *string `location:"querystring" locationName:"id" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteBucketMetricsConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBucketMetricsConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteBucketMetricsConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteBucketMetricsConfigurationInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *DeleteBucketMetricsConfigurationInput) SetBucket(v string) *DeleteBucketMetricsConfigurationInput { + s.Bucket = &v + return s +} + +// SetId sets the Id field's value. +func (s *DeleteBucketMetricsConfigurationInput) SetId(v string) *DeleteBucketMetricsConfigurationInput { + s.Id = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketMetricsConfigurationOutput +type DeleteBucketMetricsConfigurationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteBucketMetricsConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBucketMetricsConfigurationOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketOutput +type DeleteBucketOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteBucketOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBucketOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketPolicyRequest +type DeleteBucketPolicyInput struct { + _ struct{} `type:"structure"` + + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteBucketPolicyInput) String() string { return awsutil.Prettify(s) } @@ -5038,6 +7394,13 @@ func (s *DeleteBucketPolicyInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *DeleteBucketPolicyInput) SetBucket(v string) *DeleteBucketPolicyInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketPolicyOutput type DeleteBucketPolicyOutput struct { _ struct{} `type:"structure"` } @@ -5052,6 +7415,7 @@ func (s DeleteBucketPolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketReplicationRequest type DeleteBucketReplicationInput struct { _ struct{} `type:"structure"` @@ -5082,6 +7446,13 @@ func (s *DeleteBucketReplicationInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *DeleteBucketReplicationInput) SetBucket(v string) *DeleteBucketReplicationInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketReplicationOutput type DeleteBucketReplicationOutput struct { _ struct{} `type:"structure"` } @@ -5096,6 +7467,7 @@ func (s DeleteBucketReplicationOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketTaggingRequest type DeleteBucketTaggingInput struct { _ struct{} `type:"structure"` @@ -5126,6 +7498,13 @@ func (s *DeleteBucketTaggingInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *DeleteBucketTaggingInput) SetBucket(v string) *DeleteBucketTaggingInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketTaggingOutput type DeleteBucketTaggingOutput struct { _ struct{} `type:"structure"` } @@ -5140,6 +7519,7 @@ func (s DeleteBucketTaggingOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketWebsiteRequest type DeleteBucketWebsiteInput struct { _ struct{} `type:"structure"` @@ -5170,6 +7550,13 @@ func (s *DeleteBucketWebsiteInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *DeleteBucketWebsiteInput) SetBucket(v string) *DeleteBucketWebsiteInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketWebsiteOutput type DeleteBucketWebsiteOutput struct { _ struct{} `type:"structure"` } @@ -5184,6 +7571,7 @@ func (s DeleteBucketWebsiteOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteMarkerEntry type DeleteMarkerEntry struct { _ struct{} `type:"structure"` @@ -5213,6 +7601,37 @@ func (s DeleteMarkerEntry) GoString() string { return s.String() } +// SetIsLatest sets the IsLatest field's value. +func (s *DeleteMarkerEntry) SetIsLatest(v bool) *DeleteMarkerEntry { + s.IsLatest = &v + return s +} + +// SetKey sets the Key field's value. +func (s *DeleteMarkerEntry) SetKey(v string) *DeleteMarkerEntry { + s.Key = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *DeleteMarkerEntry) SetLastModified(v time.Time) *DeleteMarkerEntry { + s.LastModified = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *DeleteMarkerEntry) SetOwner(v *Owner) *DeleteMarkerEntry { + s.Owner = v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *DeleteMarkerEntry) SetVersionId(v string) *DeleteMarkerEntry { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjectRequest type DeleteObjectInput struct { _ struct{} `type:"structure"` @@ -5265,6 +7684,37 @@ func (s *DeleteObjectInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *DeleteObjectInput) SetBucket(v string) *DeleteObjectInput { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *DeleteObjectInput) SetKey(v string) *DeleteObjectInput { + s.Key = &v + return s +} + +// SetMFA sets the MFA field's value. +func (s *DeleteObjectInput) SetMFA(v string) *DeleteObjectInput { + s.MFA = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *DeleteObjectInput) SetRequestPayer(v string) *DeleteObjectInput { + s.RequestPayer = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *DeleteObjectInput) SetVersionId(v string) *DeleteObjectInput { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjectOutput type DeleteObjectOutput struct { _ struct{} `type:"structure"` @@ -5291,6 +7741,110 @@ func (s DeleteObjectOutput) GoString() string { return s.String() } +// SetDeleteMarker sets the DeleteMarker field's value. +func (s *DeleteObjectOutput) SetDeleteMarker(v bool) *DeleteObjectOutput { + s.DeleteMarker = &v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *DeleteObjectOutput) SetRequestCharged(v string) *DeleteObjectOutput { + s.RequestCharged = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *DeleteObjectOutput) SetVersionId(v string) *DeleteObjectOutput { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjectTaggingRequest +type DeleteObjectTaggingInput struct { + _ struct{} `type:"structure"` + + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // Key is a required field + Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` + + // The versionId of the object that the tag-set will be removed from. + VersionId *string `location:"querystring" locationName:"versionId" type:"string"` +} + +// String returns the string representation +func (s DeleteObjectTaggingInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteObjectTaggingInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteObjectTaggingInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteObjectTaggingInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *DeleteObjectTaggingInput) SetBucket(v string) *DeleteObjectTaggingInput { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *DeleteObjectTaggingInput) SetKey(v string) *DeleteObjectTaggingInput { + s.Key = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *DeleteObjectTaggingInput) SetVersionId(v string) *DeleteObjectTaggingInput { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjectTaggingOutput +type DeleteObjectTaggingOutput struct { + _ struct{} `type:"structure"` + + // The versionId of the object the tag-set was removed from. + VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"` +} + +// String returns the string representation +func (s DeleteObjectTaggingOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteObjectTaggingOutput) GoString() string { + return s.String() +} + +// SetVersionId sets the VersionId field's value. +func (s *DeleteObjectTaggingOutput) SetVersionId(v string) *DeleteObjectTaggingOutput { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjectsRequest type DeleteObjectsInput struct { _ struct{} `type:"structure" payload:"Delete"` @@ -5342,6 +7896,31 @@ func (s *DeleteObjectsInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *DeleteObjectsInput) SetBucket(v string) *DeleteObjectsInput { + s.Bucket = &v + return s +} + +// SetDelete sets the Delete field's value. +func (s *DeleteObjectsInput) SetDelete(v *Delete) *DeleteObjectsInput { + s.Delete = v + return s +} + +// SetMFA sets the MFA field's value. +func (s *DeleteObjectsInput) SetMFA(v string) *DeleteObjectsInput { + s.MFA = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *DeleteObjectsInput) SetRequestPayer(v string) *DeleteObjectsInput { + s.RequestPayer = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjectsOutput type DeleteObjectsOutput struct { _ struct{} `type:"structure"` @@ -5364,6 +7943,25 @@ func (s DeleteObjectsOutput) GoString() string { return s.String() } +// SetDeleted sets the Deleted field's value. +func (s *DeleteObjectsOutput) SetDeleted(v []*DeletedObject) *DeleteObjectsOutput { + s.Deleted = v + return s +} + +// SetErrors sets the Errors field's value. +func (s *DeleteObjectsOutput) SetErrors(v []*Error) *DeleteObjectsOutput { + s.Errors = v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *DeleteObjectsOutput) SetRequestCharged(v string) *DeleteObjectsOutput { + s.RequestCharged = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeletedObject type DeletedObject struct { _ struct{} `type:"structure"` @@ -5386,6 +7984,31 @@ func (s DeletedObject) GoString() string { return s.String() } +// SetDeleteMarker sets the DeleteMarker field's value. +func (s *DeletedObject) SetDeleteMarker(v bool) *DeletedObject { + s.DeleteMarker = &v + return s +} + +// SetDeleteMarkerVersionId sets the DeleteMarkerVersionId field's value. +func (s *DeletedObject) SetDeleteMarkerVersionId(v string) *DeletedObject { + s.DeleteMarkerVersionId = &v + return s +} + +// SetKey sets the Key field's value. +func (s *DeletedObject) SetKey(v string) *DeletedObject { + s.Key = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *DeletedObject) SetVersionId(v string) *DeletedObject { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Destination type Destination struct { _ struct{} `type:"structure"` @@ -5422,6 +8045,19 @@ func (s *Destination) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *Destination) SetBucket(v string) *Destination { + s.Bucket = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *Destination) SetStorageClass(v string) *Destination { + s.StorageClass = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Error type Error struct { _ struct{} `type:"structure"` @@ -5444,6 +8080,31 @@ func (s Error) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *Error) SetCode(v string) *Error { + s.Code = &v + return s +} + +// SetKey sets the Key field's value. +func (s *Error) SetKey(v string) *Error { + s.Key = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *Error) SetMessage(v string) *Error { + s.Message = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *Error) SetVersionId(v string) *Error { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ErrorDocument type ErrorDocument struct { _ struct{} `type:"structure"` @@ -5479,7 +8140,14 @@ func (s *ErrorDocument) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *ErrorDocument) SetKey(v string) *ErrorDocument { + s.Key = &v + return s +} + // Container for key value pair that defines the criteria for the filter rule. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/FilterRule type FilterRule struct { _ struct{} `type:"structure"` @@ -5487,7 +8155,6 @@ type FilterRule struct { // the filtering rule applies. Maximum prefix length can be up to 1,024 characters. // Overlapping prefixes and suffixes are not supported. For more information, // go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) - // in the Amazon Simple Storage Service Developer Guide. Name *string `type:"string" enum:"FilterRuleName"` Value *string `type:"string"` @@ -5503,6 +8170,19 @@ func (s FilterRule) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *FilterRule) SetName(v string) *FilterRule { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *FilterRule) SetValue(v string) *FilterRule { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAccelerateConfigurationRequest type GetBucketAccelerateConfigurationInput struct { _ struct{} `type:"structure"` @@ -5535,6 +8215,13 @@ func (s *GetBucketAccelerateConfigurationInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketAccelerateConfigurationInput) SetBucket(v string) *GetBucketAccelerateConfigurationInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAccelerateConfigurationOutput type GetBucketAccelerateConfigurationOutput struct { _ struct{} `type:"structure"` @@ -5552,6 +8239,13 @@ func (s GetBucketAccelerateConfigurationOutput) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *GetBucketAccelerateConfigurationOutput) SetStatus(v string) *GetBucketAccelerateConfigurationOutput { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAclRequest type GetBucketAclInput struct { _ struct{} `type:"structure"` @@ -5582,6 +8276,13 @@ func (s *GetBucketAclInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketAclInput) SetBucket(v string) *GetBucketAclInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAclOutput type GetBucketAclOutput struct { _ struct{} `type:"structure"` @@ -5601,29 +8302,52 @@ func (s GetBucketAclOutput) GoString() string { return s.String() } -type GetBucketCorsInput struct { +// SetGrants sets the Grants field's value. +func (s *GetBucketAclOutput) SetGrants(v []*Grant) *GetBucketAclOutput { + s.Grants = v + return s +} + +// SetOwner sets the Owner field's value. +func (s *GetBucketAclOutput) SetOwner(v *Owner) *GetBucketAclOutput { + s.Owner = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAnalyticsConfigurationRequest +type GetBucketAnalyticsConfigurationInput struct { _ struct{} `type:"structure"` + // The name of the bucket from which an analytics configuration is retrieved. + // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // The identifier used to represent an analytics configuration. + // + // Id is a required field + Id *string `location:"querystring" locationName:"id" type:"string" required:"true"` } // String returns the string representation -func (s GetBucketCorsInput) String() string { +func (s GetBucketAnalyticsConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetBucketCorsInput) GoString() string { +func (s GetBucketAnalyticsConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetBucketCorsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBucketCorsInput"} +func (s *GetBucketAnalyticsConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetBucketAnalyticsConfigurationInput"} if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } if invalidParams.Len() > 0 { return invalidParams @@ -5631,8 +8355,82 @@ func (s *GetBucketCorsInput) Validate() error { return nil } -type GetBucketCorsOutput struct { - _ struct{} `type:"structure"` +// SetBucket sets the Bucket field's value. +func (s *GetBucketAnalyticsConfigurationInput) SetBucket(v string) *GetBucketAnalyticsConfigurationInput { + s.Bucket = &v + return s +} + +// SetId sets the Id field's value. +func (s *GetBucketAnalyticsConfigurationInput) SetId(v string) *GetBucketAnalyticsConfigurationInput { + s.Id = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAnalyticsConfigurationOutput +type GetBucketAnalyticsConfigurationOutput struct { + _ struct{} `type:"structure" payload:"AnalyticsConfiguration"` + + // The configuration and any analyses for the analytics filter. + AnalyticsConfiguration *AnalyticsConfiguration `type:"structure"` +} + +// String returns the string representation +func (s GetBucketAnalyticsConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBucketAnalyticsConfigurationOutput) GoString() string { + return s.String() +} + +// SetAnalyticsConfiguration sets the AnalyticsConfiguration field's value. +func (s *GetBucketAnalyticsConfigurationOutput) SetAnalyticsConfiguration(v *AnalyticsConfiguration) *GetBucketAnalyticsConfigurationOutput { + s.AnalyticsConfiguration = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketCorsRequest +type GetBucketCorsInput struct { + _ struct{} `type:"structure"` + + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetBucketCorsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBucketCorsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetBucketCorsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetBucketCorsInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *GetBucketCorsInput) SetBucket(v string) *GetBucketCorsInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketCorsOutput +type GetBucketCorsOutput struct { + _ struct{} `type:"structure"` CORSRules []*CORSRule `locationName:"CORSRule" type:"list" flattened:"true"` } @@ -5647,6 +8445,90 @@ func (s GetBucketCorsOutput) GoString() string { return s.String() } +// SetCORSRules sets the CORSRules field's value. +func (s *GetBucketCorsOutput) SetCORSRules(v []*CORSRule) *GetBucketCorsOutput { + s.CORSRules = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketInventoryConfigurationRequest +type GetBucketInventoryConfigurationInput struct { + _ struct{} `type:"structure"` + + // The name of the bucket containing the inventory configuration to retrieve. + // + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // The ID used to identify the inventory configuration. + // + // Id is a required field + Id *string `location:"querystring" locationName:"id" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetBucketInventoryConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBucketInventoryConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetBucketInventoryConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetBucketInventoryConfigurationInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *GetBucketInventoryConfigurationInput) SetBucket(v string) *GetBucketInventoryConfigurationInput { + s.Bucket = &v + return s +} + +// SetId sets the Id field's value. +func (s *GetBucketInventoryConfigurationInput) SetId(v string) *GetBucketInventoryConfigurationInput { + s.Id = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketInventoryConfigurationOutput +type GetBucketInventoryConfigurationOutput struct { + _ struct{} `type:"structure" payload:"InventoryConfiguration"` + + // Specifies the inventory configuration. + InventoryConfiguration *InventoryConfiguration `type:"structure"` +} + +// String returns the string representation +func (s GetBucketInventoryConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBucketInventoryConfigurationOutput) GoString() string { + return s.String() +} + +// SetInventoryConfiguration sets the InventoryConfiguration field's value. +func (s *GetBucketInventoryConfigurationOutput) SetInventoryConfiguration(v *InventoryConfiguration) *GetBucketInventoryConfigurationOutput { + s.InventoryConfiguration = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycleConfigurationRequest type GetBucketLifecycleConfigurationInput struct { _ struct{} `type:"structure"` @@ -5677,6 +8559,13 @@ func (s *GetBucketLifecycleConfigurationInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketLifecycleConfigurationInput) SetBucket(v string) *GetBucketLifecycleConfigurationInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycleConfigurationOutput type GetBucketLifecycleConfigurationOutput struct { _ struct{} `type:"structure"` @@ -5693,6 +8582,13 @@ func (s GetBucketLifecycleConfigurationOutput) GoString() string { return s.String() } +// SetRules sets the Rules field's value. +func (s *GetBucketLifecycleConfigurationOutput) SetRules(v []*LifecycleRule) *GetBucketLifecycleConfigurationOutput { + s.Rules = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycleRequest type GetBucketLifecycleInput struct { _ struct{} `type:"structure"` @@ -5723,6 +8619,13 @@ func (s *GetBucketLifecycleInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketLifecycleInput) SetBucket(v string) *GetBucketLifecycleInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycleOutput type GetBucketLifecycleOutput struct { _ struct{} `type:"structure"` @@ -5739,6 +8642,13 @@ func (s GetBucketLifecycleOutput) GoString() string { return s.String() } +// SetRules sets the Rules field's value. +func (s *GetBucketLifecycleOutput) SetRules(v []*Rule) *GetBucketLifecycleOutput { + s.Rules = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLocationRequest type GetBucketLocationInput struct { _ struct{} `type:"structure"` @@ -5769,6 +8679,13 @@ func (s *GetBucketLocationInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketLocationInput) SetBucket(v string) *GetBucketLocationInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLocationOutput type GetBucketLocationOutput struct { _ struct{} `type:"structure"` @@ -5785,6 +8702,13 @@ func (s GetBucketLocationOutput) GoString() string { return s.String() } +// SetLocationConstraint sets the LocationConstraint field's value. +func (s *GetBucketLocationOutput) SetLocationConstraint(v string) *GetBucketLocationOutput { + s.LocationConstraint = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLoggingRequest type GetBucketLoggingInput struct { _ struct{} `type:"structure"` @@ -5815,6 +8739,13 @@ func (s *GetBucketLoggingInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketLoggingInput) SetBucket(v string) *GetBucketLoggingInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLoggingOutput type GetBucketLoggingOutput struct { _ struct{} `type:"structure"` @@ -5831,6 +8762,90 @@ func (s GetBucketLoggingOutput) GoString() string { return s.String() } +// SetLoggingEnabled sets the LoggingEnabled field's value. +func (s *GetBucketLoggingOutput) SetLoggingEnabled(v *LoggingEnabled) *GetBucketLoggingOutput { + s.LoggingEnabled = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketMetricsConfigurationRequest +type GetBucketMetricsConfigurationInput struct { + _ struct{} `type:"structure"` + + // The name of the bucket containing the metrics configuration to retrieve. + // + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // The ID used to identify the metrics configuration. + // + // Id is a required field + Id *string `location:"querystring" locationName:"id" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetBucketMetricsConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBucketMetricsConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetBucketMetricsConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetBucketMetricsConfigurationInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *GetBucketMetricsConfigurationInput) SetBucket(v string) *GetBucketMetricsConfigurationInput { + s.Bucket = &v + return s +} + +// SetId sets the Id field's value. +func (s *GetBucketMetricsConfigurationInput) SetId(v string) *GetBucketMetricsConfigurationInput { + s.Id = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketMetricsConfigurationOutput +type GetBucketMetricsConfigurationOutput struct { + _ struct{} `type:"structure" payload:"MetricsConfiguration"` + + // Specifies the metrics configuration. + MetricsConfiguration *MetricsConfiguration `type:"structure"` +} + +// String returns the string representation +func (s GetBucketMetricsConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBucketMetricsConfigurationOutput) GoString() string { + return s.String() +} + +// SetMetricsConfiguration sets the MetricsConfiguration field's value. +func (s *GetBucketMetricsConfigurationOutput) SetMetricsConfiguration(v *MetricsConfiguration) *GetBucketMetricsConfigurationOutput { + s.MetricsConfiguration = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketNotificationConfigurationRequest type GetBucketNotificationConfigurationRequest struct { _ struct{} `type:"structure"` @@ -5863,6 +8878,13 @@ func (s *GetBucketNotificationConfigurationRequest) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketNotificationConfigurationRequest) SetBucket(v string) *GetBucketNotificationConfigurationRequest { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketPolicyRequest type GetBucketPolicyInput struct { _ struct{} `type:"structure"` @@ -5893,6 +8915,13 @@ func (s *GetBucketPolicyInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketPolicyInput) SetBucket(v string) *GetBucketPolicyInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketPolicyOutput type GetBucketPolicyOutput struct { _ struct{} `type:"structure" payload:"Policy"` @@ -5910,6 +8939,13 @@ func (s GetBucketPolicyOutput) GoString() string { return s.String() } +// SetPolicy sets the Policy field's value. +func (s *GetBucketPolicyOutput) SetPolicy(v string) *GetBucketPolicyOutput { + s.Policy = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketReplicationRequest type GetBucketReplicationInput struct { _ struct{} `type:"structure"` @@ -5940,6 +8976,13 @@ func (s *GetBucketReplicationInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketReplicationInput) SetBucket(v string) *GetBucketReplicationInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketReplicationOutput type GetBucketReplicationOutput struct { _ struct{} `type:"structure" payload:"ReplicationConfiguration"` @@ -5958,6 +9001,13 @@ func (s GetBucketReplicationOutput) GoString() string { return s.String() } +// SetReplicationConfiguration sets the ReplicationConfiguration field's value. +func (s *GetBucketReplicationOutput) SetReplicationConfiguration(v *ReplicationConfiguration) *GetBucketReplicationOutput { + s.ReplicationConfiguration = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketRequestPaymentRequest type GetBucketRequestPaymentInput struct { _ struct{} `type:"structure"` @@ -5988,6 +9038,13 @@ func (s *GetBucketRequestPaymentInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketRequestPaymentInput) SetBucket(v string) *GetBucketRequestPaymentInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketRequestPaymentOutput type GetBucketRequestPaymentOutput struct { _ struct{} `type:"structure"` @@ -6005,6 +9062,13 @@ func (s GetBucketRequestPaymentOutput) GoString() string { return s.String() } +// SetPayer sets the Payer field's value. +func (s *GetBucketRequestPaymentOutput) SetPayer(v string) *GetBucketRequestPaymentOutput { + s.Payer = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketTaggingRequest type GetBucketTaggingInput struct { _ struct{} `type:"structure"` @@ -6035,6 +9099,13 @@ func (s *GetBucketTaggingInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketTaggingInput) SetBucket(v string) *GetBucketTaggingInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketTaggingOutput type GetBucketTaggingOutput struct { _ struct{} `type:"structure"` @@ -6052,6 +9123,13 @@ func (s GetBucketTaggingOutput) GoString() string { return s.String() } +// SetTagSet sets the TagSet field's value. +func (s *GetBucketTaggingOutput) SetTagSet(v []*Tag) *GetBucketTaggingOutput { + s.TagSet = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketVersioningRequest type GetBucketVersioningInput struct { _ struct{} `type:"structure"` @@ -6082,6 +9160,13 @@ func (s *GetBucketVersioningInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketVersioningInput) SetBucket(v string) *GetBucketVersioningInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketVersioningOutput type GetBucketVersioningOutput struct { _ struct{} `type:"structure"` @@ -6104,6 +9189,19 @@ func (s GetBucketVersioningOutput) GoString() string { return s.String() } +// SetMFADelete sets the MFADelete field's value. +func (s *GetBucketVersioningOutput) SetMFADelete(v string) *GetBucketVersioningOutput { + s.MFADelete = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetBucketVersioningOutput) SetStatus(v string) *GetBucketVersioningOutput { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketWebsiteRequest type GetBucketWebsiteInput struct { _ struct{} `type:"structure"` @@ -6134,6 +9232,13 @@ func (s *GetBucketWebsiteInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetBucketWebsiteInput) SetBucket(v string) *GetBucketWebsiteInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketWebsiteOutput type GetBucketWebsiteOutput struct { _ struct{} `type:"structure"` @@ -6156,6 +9261,31 @@ func (s GetBucketWebsiteOutput) GoString() string { return s.String() } +// SetErrorDocument sets the ErrorDocument field's value. +func (s *GetBucketWebsiteOutput) SetErrorDocument(v *ErrorDocument) *GetBucketWebsiteOutput { + s.ErrorDocument = v + return s +} + +// SetIndexDocument sets the IndexDocument field's value. +func (s *GetBucketWebsiteOutput) SetIndexDocument(v *IndexDocument) *GetBucketWebsiteOutput { + s.IndexDocument = v + return s +} + +// SetRedirectAllRequestsTo sets the RedirectAllRequestsTo field's value. +func (s *GetBucketWebsiteOutput) SetRedirectAllRequestsTo(v *RedirectAllRequestsTo) *GetBucketWebsiteOutput { + s.RedirectAllRequestsTo = v + return s +} + +// SetRoutingRules sets the RoutingRules field's value. +func (s *GetBucketWebsiteOutput) SetRoutingRules(v []*RoutingRule) *GetBucketWebsiteOutput { + s.RoutingRules = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectAclRequest type GetObjectAclInput struct { _ struct{} `type:"structure"` @@ -6204,6 +9334,31 @@ func (s *GetObjectAclInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetObjectAclInput) SetBucket(v string) *GetObjectAclInput { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *GetObjectAclInput) SetKey(v string) *GetObjectAclInput { + s.Key = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *GetObjectAclInput) SetRequestPayer(v string) *GetObjectAclInput { + s.RequestPayer = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *GetObjectAclInput) SetVersionId(v string) *GetObjectAclInput { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectAclOutput type GetObjectAclOutput struct { _ struct{} `type:"structure"` @@ -6227,6 +9382,25 @@ func (s GetObjectAclOutput) GoString() string { return s.String() } +// SetGrants sets the Grants field's value. +func (s *GetObjectAclOutput) SetGrants(v []*Grant) *GetObjectAclOutput { + s.Grants = v + return s +} + +// SetOwner sets the Owner field's value. +func (s *GetObjectAclOutput) SetOwner(v *Owner) *GetObjectAclOutput { + s.Owner = v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *GetObjectAclOutput) SetRequestCharged(v string) *GetObjectAclOutput { + s.RequestCharged = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectRequest type GetObjectInput struct { _ struct{} `type:"structure"` @@ -6333,6 +9507,121 @@ func (s *GetObjectInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetObjectInput) SetBucket(v string) *GetObjectInput { + s.Bucket = &v + return s +} + +// SetIfMatch sets the IfMatch field's value. +func (s *GetObjectInput) SetIfMatch(v string) *GetObjectInput { + s.IfMatch = &v + return s +} + +// SetIfModifiedSince sets the IfModifiedSince field's value. +func (s *GetObjectInput) SetIfModifiedSince(v time.Time) *GetObjectInput { + s.IfModifiedSince = &v + return s +} + +// SetIfNoneMatch sets the IfNoneMatch field's value. +func (s *GetObjectInput) SetIfNoneMatch(v string) *GetObjectInput { + s.IfNoneMatch = &v + return s +} + +// SetIfUnmodifiedSince sets the IfUnmodifiedSince field's value. +func (s *GetObjectInput) SetIfUnmodifiedSince(v time.Time) *GetObjectInput { + s.IfUnmodifiedSince = &v + return s +} + +// SetKey sets the Key field's value. +func (s *GetObjectInput) SetKey(v string) *GetObjectInput { + s.Key = &v + return s +} + +// SetPartNumber sets the PartNumber field's value. +func (s *GetObjectInput) SetPartNumber(v int64) *GetObjectInput { + s.PartNumber = &v + return s +} + +// SetRange sets the Range field's value. +func (s *GetObjectInput) SetRange(v string) *GetObjectInput { + s.Range = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *GetObjectInput) SetRequestPayer(v string) *GetObjectInput { + s.RequestPayer = &v + return s +} + +// SetResponseCacheControl sets the ResponseCacheControl field's value. +func (s *GetObjectInput) SetResponseCacheControl(v string) *GetObjectInput { + s.ResponseCacheControl = &v + return s +} + +// SetResponseContentDisposition sets the ResponseContentDisposition field's value. +func (s *GetObjectInput) SetResponseContentDisposition(v string) *GetObjectInput { + s.ResponseContentDisposition = &v + return s +} + +// SetResponseContentEncoding sets the ResponseContentEncoding field's value. +func (s *GetObjectInput) SetResponseContentEncoding(v string) *GetObjectInput { + s.ResponseContentEncoding = &v + return s +} + +// SetResponseContentLanguage sets the ResponseContentLanguage field's value. +func (s *GetObjectInput) SetResponseContentLanguage(v string) *GetObjectInput { + s.ResponseContentLanguage = &v + return s +} + +// SetResponseContentType sets the ResponseContentType field's value. +func (s *GetObjectInput) SetResponseContentType(v string) *GetObjectInput { + s.ResponseContentType = &v + return s +} + +// SetResponseExpires sets the ResponseExpires field's value. +func (s *GetObjectInput) SetResponseExpires(v time.Time) *GetObjectInput { + s.ResponseExpires = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *GetObjectInput) SetSSECustomerAlgorithm(v string) *GetObjectInput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKey sets the SSECustomerKey field's value. +func (s *GetObjectInput) SetSSECustomerKey(v string) *GetObjectInput { + s.SSECustomerKey = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *GetObjectInput) SetSSECustomerKeyMD5(v string) *GetObjectInput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *GetObjectInput) SetVersionId(v string) *GetObjectInput { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectOutput type GetObjectOutput struct { _ struct{} `type:"structure" payload:"Body"` @@ -6426,6 +9715,9 @@ type GetObjectOutput struct { StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"` + // The number of tags, if any, on the object. + TagCount *int64 `location:"header" locationName:"x-amz-tagging-count" type:"integer"` + // Version of the object. VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"` @@ -6445,14 +9737,275 @@ func (s GetObjectOutput) GoString() string { return s.String() } -type GetObjectTorrentInput struct { - _ struct{} `type:"structure"` +// SetAcceptRanges sets the AcceptRanges field's value. +func (s *GetObjectOutput) SetAcceptRanges(v string) *GetObjectOutput { + s.AcceptRanges = &v + return s +} - // Bucket is a required field - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` +// SetBody sets the Body field's value. +func (s *GetObjectOutput) SetBody(v io.ReadCloser) *GetObjectOutput { + s.Body = v + return s +} - // Key is a required field - Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` +// SetCacheControl sets the CacheControl field's value. +func (s *GetObjectOutput) SetCacheControl(v string) *GetObjectOutput { + s.CacheControl = &v + return s +} + +// SetContentDisposition sets the ContentDisposition field's value. +func (s *GetObjectOutput) SetContentDisposition(v string) *GetObjectOutput { + s.ContentDisposition = &v + return s +} + +// SetContentEncoding sets the ContentEncoding field's value. +func (s *GetObjectOutput) SetContentEncoding(v string) *GetObjectOutput { + s.ContentEncoding = &v + return s +} + +// SetContentLanguage sets the ContentLanguage field's value. +func (s *GetObjectOutput) SetContentLanguage(v string) *GetObjectOutput { + s.ContentLanguage = &v + return s +} + +// SetContentLength sets the ContentLength field's value. +func (s *GetObjectOutput) SetContentLength(v int64) *GetObjectOutput { + s.ContentLength = &v + return s +} + +// SetContentRange sets the ContentRange field's value. +func (s *GetObjectOutput) SetContentRange(v string) *GetObjectOutput { + s.ContentRange = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *GetObjectOutput) SetContentType(v string) *GetObjectOutput { + s.ContentType = &v + return s +} + +// SetDeleteMarker sets the DeleteMarker field's value. +func (s *GetObjectOutput) SetDeleteMarker(v bool) *GetObjectOutput { + s.DeleteMarker = &v + return s +} + +// SetETag sets the ETag field's value. +func (s *GetObjectOutput) SetETag(v string) *GetObjectOutput { + s.ETag = &v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *GetObjectOutput) SetExpiration(v string) *GetObjectOutput { + s.Expiration = &v + return s +} + +// SetExpires sets the Expires field's value. +func (s *GetObjectOutput) SetExpires(v string) *GetObjectOutput { + s.Expires = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *GetObjectOutput) SetLastModified(v time.Time) *GetObjectOutput { + s.LastModified = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *GetObjectOutput) SetMetadata(v map[string]*string) *GetObjectOutput { + s.Metadata = v + return s +} + +// SetMissingMeta sets the MissingMeta field's value. +func (s *GetObjectOutput) SetMissingMeta(v int64) *GetObjectOutput { + s.MissingMeta = &v + return s +} + +// SetPartsCount sets the PartsCount field's value. +func (s *GetObjectOutput) SetPartsCount(v int64) *GetObjectOutput { + s.PartsCount = &v + return s +} + +// SetReplicationStatus sets the ReplicationStatus field's value. +func (s *GetObjectOutput) SetReplicationStatus(v string) *GetObjectOutput { + s.ReplicationStatus = &v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *GetObjectOutput) SetRequestCharged(v string) *GetObjectOutput { + s.RequestCharged = &v + return s +} + +// SetRestore sets the Restore field's value. +func (s *GetObjectOutput) SetRestore(v string) *GetObjectOutput { + s.Restore = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *GetObjectOutput) SetSSECustomerAlgorithm(v string) *GetObjectOutput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *GetObjectOutput) SetSSECustomerKeyMD5(v string) *GetObjectOutput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *GetObjectOutput) SetSSEKMSKeyId(v string) *GetObjectOutput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *GetObjectOutput) SetServerSideEncryption(v string) *GetObjectOutput { + s.ServerSideEncryption = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *GetObjectOutput) SetStorageClass(v string) *GetObjectOutput { + s.StorageClass = &v + return s +} + +// SetTagCount sets the TagCount field's value. +func (s *GetObjectOutput) SetTagCount(v int64) *GetObjectOutput { + s.TagCount = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *GetObjectOutput) SetVersionId(v string) *GetObjectOutput { + s.VersionId = &v + return s +} + +// SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value. +func (s *GetObjectOutput) SetWebsiteRedirectLocation(v string) *GetObjectOutput { + s.WebsiteRedirectLocation = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTaggingRequest +type GetObjectTaggingInput struct { + _ struct{} `type:"structure"` + + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // Key is a required field + Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` + + VersionId *string `location:"querystring" locationName:"versionId" type:"string"` +} + +// String returns the string representation +func (s GetObjectTaggingInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetObjectTaggingInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetObjectTaggingInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetObjectTaggingInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *GetObjectTaggingInput) SetBucket(v string) *GetObjectTaggingInput { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *GetObjectTaggingInput) SetKey(v string) *GetObjectTaggingInput { + s.Key = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *GetObjectTaggingInput) SetVersionId(v string) *GetObjectTaggingInput { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTaggingOutput +type GetObjectTaggingOutput struct { + _ struct{} `type:"structure"` + + // TagSet is a required field + TagSet []*Tag `locationNameList:"Tag" type:"list" required:"true"` + + VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"` +} + +// String returns the string representation +func (s GetObjectTaggingOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetObjectTaggingOutput) GoString() string { + return s.String() +} + +// SetTagSet sets the TagSet field's value. +func (s *GetObjectTaggingOutput) SetTagSet(v []*Tag) *GetObjectTaggingOutput { + s.TagSet = v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *GetObjectTaggingOutput) SetVersionId(v string) *GetObjectTaggingOutput { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTorrentRequest +type GetObjectTorrentInput struct { + _ struct{} `type:"structure"` + + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // Key is a required field + Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` // Confirms that the requester knows that she or he will be charged for the // request. Bucket owners need not specify this parameter in their requests. @@ -6490,6 +10043,25 @@ func (s *GetObjectTorrentInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *GetObjectTorrentInput) SetBucket(v string) *GetObjectTorrentInput { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *GetObjectTorrentInput) SetKey(v string) *GetObjectTorrentInput { + s.Key = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *GetObjectTorrentInput) SetRequestPayer(v string) *GetObjectTorrentInput { + s.RequestPayer = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTorrentOutput type GetObjectTorrentOutput struct { _ struct{} `type:"structure" payload:"Body"` @@ -6510,6 +10082,58 @@ func (s GetObjectTorrentOutput) GoString() string { return s.String() } +// SetBody sets the Body field's value. +func (s *GetObjectTorrentOutput) SetBody(v io.ReadCloser) *GetObjectTorrentOutput { + s.Body = v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *GetObjectTorrentOutput) SetRequestCharged(v string) *GetObjectTorrentOutput { + s.RequestCharged = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GlacierJobParameters +type GlacierJobParameters struct { + _ struct{} `type:"structure"` + + // Glacier retrieval tier at which the restore will be processed. + // + // Tier is a required field + Tier *string `type:"string" required:"true" enum:"Tier"` +} + +// String returns the string representation +func (s GlacierJobParameters) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GlacierJobParameters) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GlacierJobParameters) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GlacierJobParameters"} + if s.Tier == nil { + invalidParams.Add(request.NewErrParamRequired("Tier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTier sets the Tier field's value. +func (s *GlacierJobParameters) SetTier(v string) *GlacierJobParameters { + s.Tier = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Grant type Grant struct { _ struct{} `type:"structure"` @@ -6544,6 +10168,19 @@ func (s *Grant) Validate() error { return nil } +// SetGrantee sets the Grantee field's value. +func (s *Grant) SetGrantee(v *Grantee) *Grant { + s.Grantee = v + return s +} + +// SetPermission sets the Permission field's value. +func (s *Grant) SetPermission(v string) *Grant { + s.Permission = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Grantee type Grantee struct { _ struct{} `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"` @@ -6588,6 +10225,37 @@ func (s *Grantee) Validate() error { return nil } +// SetDisplayName sets the DisplayName field's value. +func (s *Grantee) SetDisplayName(v string) *Grantee { + s.DisplayName = &v + return s +} + +// SetEmailAddress sets the EmailAddress field's value. +func (s *Grantee) SetEmailAddress(v string) *Grantee { + s.EmailAddress = &v + return s +} + +// SetID sets the ID field's value. +func (s *Grantee) SetID(v string) *Grantee { + s.ID = &v + return s +} + +// SetType sets the Type field's value. +func (s *Grantee) SetType(v string) *Grantee { + s.Type = &v + return s +} + +// SetURI sets the URI field's value. +func (s *Grantee) SetURI(v string) *Grantee { + s.URI = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadBucketRequest type HeadBucketInput struct { _ struct{} `type:"structure"` @@ -6618,6 +10286,13 @@ func (s *HeadBucketInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *HeadBucketInput) SetBucket(v string) *HeadBucketInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadBucketOutput type HeadBucketOutput struct { _ struct{} `type:"structure"` } @@ -6632,6 +10307,7 @@ func (s HeadBucketOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObjectRequest type HeadObjectInput struct { _ struct{} `type:"structure"` @@ -6721,6 +10397,85 @@ func (s *HeadObjectInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *HeadObjectInput) SetBucket(v string) *HeadObjectInput { + s.Bucket = &v + return s +} + +// SetIfMatch sets the IfMatch field's value. +func (s *HeadObjectInput) SetIfMatch(v string) *HeadObjectInput { + s.IfMatch = &v + return s +} + +// SetIfModifiedSince sets the IfModifiedSince field's value. +func (s *HeadObjectInput) SetIfModifiedSince(v time.Time) *HeadObjectInput { + s.IfModifiedSince = &v + return s +} + +// SetIfNoneMatch sets the IfNoneMatch field's value. +func (s *HeadObjectInput) SetIfNoneMatch(v string) *HeadObjectInput { + s.IfNoneMatch = &v + return s +} + +// SetIfUnmodifiedSince sets the IfUnmodifiedSince field's value. +func (s *HeadObjectInput) SetIfUnmodifiedSince(v time.Time) *HeadObjectInput { + s.IfUnmodifiedSince = &v + return s +} + +// SetKey sets the Key field's value. +func (s *HeadObjectInput) SetKey(v string) *HeadObjectInput { + s.Key = &v + return s +} + +// SetPartNumber sets the PartNumber field's value. +func (s *HeadObjectInput) SetPartNumber(v int64) *HeadObjectInput { + s.PartNumber = &v + return s +} + +// SetRange sets the Range field's value. +func (s *HeadObjectInput) SetRange(v string) *HeadObjectInput { + s.Range = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *HeadObjectInput) SetRequestPayer(v string) *HeadObjectInput { + s.RequestPayer = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *HeadObjectInput) SetSSECustomerAlgorithm(v string) *HeadObjectInput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKey sets the SSECustomerKey field's value. +func (s *HeadObjectInput) SetSSECustomerKey(v string) *HeadObjectInput { + s.SSECustomerKey = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *HeadObjectInput) SetSSECustomerKeyMD5(v string) *HeadObjectInput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *HeadObjectInput) SetVersionId(v string) *HeadObjectInput { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObjectOutput type HeadObjectOutput struct { _ struct{} `type:"structure"` @@ -6827,6 +10582,157 @@ func (s HeadObjectOutput) GoString() string { return s.String() } +// SetAcceptRanges sets the AcceptRanges field's value. +func (s *HeadObjectOutput) SetAcceptRanges(v string) *HeadObjectOutput { + s.AcceptRanges = &v + return s +} + +// SetCacheControl sets the CacheControl field's value. +func (s *HeadObjectOutput) SetCacheControl(v string) *HeadObjectOutput { + s.CacheControl = &v + return s +} + +// SetContentDisposition sets the ContentDisposition field's value. +func (s *HeadObjectOutput) SetContentDisposition(v string) *HeadObjectOutput { + s.ContentDisposition = &v + return s +} + +// SetContentEncoding sets the ContentEncoding field's value. +func (s *HeadObjectOutput) SetContentEncoding(v string) *HeadObjectOutput { + s.ContentEncoding = &v + return s +} + +// SetContentLanguage sets the ContentLanguage field's value. +func (s *HeadObjectOutput) SetContentLanguage(v string) *HeadObjectOutput { + s.ContentLanguage = &v + return s +} + +// SetContentLength sets the ContentLength field's value. +func (s *HeadObjectOutput) SetContentLength(v int64) *HeadObjectOutput { + s.ContentLength = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *HeadObjectOutput) SetContentType(v string) *HeadObjectOutput { + s.ContentType = &v + return s +} + +// SetDeleteMarker sets the DeleteMarker field's value. +func (s *HeadObjectOutput) SetDeleteMarker(v bool) *HeadObjectOutput { + s.DeleteMarker = &v + return s +} + +// SetETag sets the ETag field's value. +func (s *HeadObjectOutput) SetETag(v string) *HeadObjectOutput { + s.ETag = &v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *HeadObjectOutput) SetExpiration(v string) *HeadObjectOutput { + s.Expiration = &v + return s +} + +// SetExpires sets the Expires field's value. +func (s *HeadObjectOutput) SetExpires(v string) *HeadObjectOutput { + s.Expires = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *HeadObjectOutput) SetLastModified(v time.Time) *HeadObjectOutput { + s.LastModified = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *HeadObjectOutput) SetMetadata(v map[string]*string) *HeadObjectOutput { + s.Metadata = v + return s +} + +// SetMissingMeta sets the MissingMeta field's value. +func (s *HeadObjectOutput) SetMissingMeta(v int64) *HeadObjectOutput { + s.MissingMeta = &v + return s +} + +// SetPartsCount sets the PartsCount field's value. +func (s *HeadObjectOutput) SetPartsCount(v int64) *HeadObjectOutput { + s.PartsCount = &v + return s +} + +// SetReplicationStatus sets the ReplicationStatus field's value. +func (s *HeadObjectOutput) SetReplicationStatus(v string) *HeadObjectOutput { + s.ReplicationStatus = &v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *HeadObjectOutput) SetRequestCharged(v string) *HeadObjectOutput { + s.RequestCharged = &v + return s +} + +// SetRestore sets the Restore field's value. +func (s *HeadObjectOutput) SetRestore(v string) *HeadObjectOutput { + s.Restore = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *HeadObjectOutput) SetSSECustomerAlgorithm(v string) *HeadObjectOutput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *HeadObjectOutput) SetSSECustomerKeyMD5(v string) *HeadObjectOutput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *HeadObjectOutput) SetSSEKMSKeyId(v string) *HeadObjectOutput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *HeadObjectOutput) SetServerSideEncryption(v string) *HeadObjectOutput { + s.ServerSideEncryption = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *HeadObjectOutput) SetStorageClass(v string) *HeadObjectOutput { + s.StorageClass = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *HeadObjectOutput) SetVersionId(v string) *HeadObjectOutput { + s.VersionId = &v + return s +} + +// SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value. +func (s *HeadObjectOutput) SetWebsiteRedirectLocation(v string) *HeadObjectOutput { + s.WebsiteRedirectLocation = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/IndexDocument type IndexDocument struct { _ struct{} `type:"structure"` @@ -6862,6 +10768,13 @@ func (s *IndexDocument) Validate() error { return nil } +// SetSuffix sets the Suffix field's value. +func (s *IndexDocument) SetSuffix(v string) *IndexDocument { + s.Suffix = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Initiator type Initiator struct { _ struct{} `type:"structure"` @@ -6883,8 +10796,345 @@ func (s Initiator) GoString() string { return s.String() } -// Container for object key name prefix and suffix filtering rules. -type KeyFilter struct { +// SetDisplayName sets the DisplayName field's value. +func (s *Initiator) SetDisplayName(v string) *Initiator { + s.DisplayName = &v + return s +} + +// SetID sets the ID field's value. +func (s *Initiator) SetID(v string) *Initiator { + s.ID = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/InventoryConfiguration +type InventoryConfiguration struct { + _ struct{} `type:"structure"` + + // Contains information about where to publish the inventory results. + // + // Destination is a required field + Destination *InventoryDestination `type:"structure" required:"true"` + + // Specifies an inventory filter. The inventory only includes objects that meet + // the filter's criteria. + Filter *InventoryFilter `type:"structure"` + + // The ID used to identify the inventory configuration. + // + // Id is a required field + Id *string `type:"string" required:"true"` + + // Specifies which object version(s) to included in the inventory results. + // + // IncludedObjectVersions is a required field + IncludedObjectVersions *string `type:"string" required:"true" enum:"InventoryIncludedObjectVersions"` + + // Specifies whether the inventory is enabled or disabled. + // + // IsEnabled is a required field + IsEnabled *bool `type:"boolean" required:"true"` + + // Contains the optional fields that are included in the inventory results. + OptionalFields []*string `locationNameList:"Field" type:"list"` + + // Specifies the schedule for generating inventory results. + // + // Schedule is a required field + Schedule *InventorySchedule `type:"structure" required:"true"` +} + +// String returns the string representation +func (s InventoryConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InventoryConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InventoryConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InventoryConfiguration"} + if s.Destination == nil { + invalidParams.Add(request.NewErrParamRequired("Destination")) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.IncludedObjectVersions == nil { + invalidParams.Add(request.NewErrParamRequired("IncludedObjectVersions")) + } + if s.IsEnabled == nil { + invalidParams.Add(request.NewErrParamRequired("IsEnabled")) + } + if s.Schedule == nil { + invalidParams.Add(request.NewErrParamRequired("Schedule")) + } + if s.Destination != nil { + if err := s.Destination.Validate(); err != nil { + invalidParams.AddNested("Destination", err.(request.ErrInvalidParams)) + } + } + if s.Filter != nil { + if err := s.Filter.Validate(); err != nil { + invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) + } + } + if s.Schedule != nil { + if err := s.Schedule.Validate(); err != nil { + invalidParams.AddNested("Schedule", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDestination sets the Destination field's value. +func (s *InventoryConfiguration) SetDestination(v *InventoryDestination) *InventoryConfiguration { + s.Destination = v + return s +} + +// SetFilter sets the Filter field's value. +func (s *InventoryConfiguration) SetFilter(v *InventoryFilter) *InventoryConfiguration { + s.Filter = v + return s +} + +// SetId sets the Id field's value. +func (s *InventoryConfiguration) SetId(v string) *InventoryConfiguration { + s.Id = &v + return s +} + +// SetIncludedObjectVersions sets the IncludedObjectVersions field's value. +func (s *InventoryConfiguration) SetIncludedObjectVersions(v string) *InventoryConfiguration { + s.IncludedObjectVersions = &v + return s +} + +// SetIsEnabled sets the IsEnabled field's value. +func (s *InventoryConfiguration) SetIsEnabled(v bool) *InventoryConfiguration { + s.IsEnabled = &v + return s +} + +// SetOptionalFields sets the OptionalFields field's value. +func (s *InventoryConfiguration) SetOptionalFields(v []*string) *InventoryConfiguration { + s.OptionalFields = v + return s +} + +// SetSchedule sets the Schedule field's value. +func (s *InventoryConfiguration) SetSchedule(v *InventorySchedule) *InventoryConfiguration { + s.Schedule = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/InventoryDestination +type InventoryDestination struct { + _ struct{} `type:"structure"` + + // Contains the bucket name, file format, bucket owner (optional), and prefix + // (optional) where inventory results are published. + // + // S3BucketDestination is a required field + S3BucketDestination *InventoryS3BucketDestination `type:"structure" required:"true"` +} + +// String returns the string representation +func (s InventoryDestination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InventoryDestination) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InventoryDestination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InventoryDestination"} + if s.S3BucketDestination == nil { + invalidParams.Add(request.NewErrParamRequired("S3BucketDestination")) + } + if s.S3BucketDestination != nil { + if err := s.S3BucketDestination.Validate(); err != nil { + invalidParams.AddNested("S3BucketDestination", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3BucketDestination sets the S3BucketDestination field's value. +func (s *InventoryDestination) SetS3BucketDestination(v *InventoryS3BucketDestination) *InventoryDestination { + s.S3BucketDestination = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/InventoryFilter +type InventoryFilter struct { + _ struct{} `type:"structure"` + + // The prefix that an object must have to be included in the inventory results. + // + // Prefix is a required field + Prefix *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s InventoryFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InventoryFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InventoryFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InventoryFilter"} + if s.Prefix == nil { + invalidParams.Add(request.NewErrParamRequired("Prefix")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPrefix sets the Prefix field's value. +func (s *InventoryFilter) SetPrefix(v string) *InventoryFilter { + s.Prefix = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/InventoryS3BucketDestination +type InventoryS3BucketDestination struct { + _ struct{} `type:"structure"` + + // The ID of the account that owns the destination bucket. + AccountId *string `type:"string"` + + // The Amazon resource name (ARN) of the bucket where inventory results will + // be published. + // + // Bucket is a required field + Bucket *string `type:"string" required:"true"` + + // Specifies the output format of the inventory results. + // + // Format is a required field + Format *string `type:"string" required:"true" enum:"InventoryFormat"` + + // The prefix that is prepended to all inventory results. + Prefix *string `type:"string"` +} + +// String returns the string representation +func (s InventoryS3BucketDestination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InventoryS3BucketDestination) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InventoryS3BucketDestination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InventoryS3BucketDestination"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Format == nil { + invalidParams.Add(request.NewErrParamRequired("Format")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *InventoryS3BucketDestination) SetAccountId(v string) *InventoryS3BucketDestination { + s.AccountId = &v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *InventoryS3BucketDestination) SetBucket(v string) *InventoryS3BucketDestination { + s.Bucket = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *InventoryS3BucketDestination) SetFormat(v string) *InventoryS3BucketDestination { + s.Format = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *InventoryS3BucketDestination) SetPrefix(v string) *InventoryS3BucketDestination { + s.Prefix = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/InventorySchedule +type InventorySchedule struct { + _ struct{} `type:"structure"` + + // Specifies how frequently inventory results are produced. + // + // Frequency is a required field + Frequency *string `type:"string" required:"true" enum:"InventoryFrequency"` +} + +// String returns the string representation +func (s InventorySchedule) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InventorySchedule) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InventorySchedule) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InventorySchedule"} + if s.Frequency == nil { + invalidParams.Add(request.NewErrParamRequired("Frequency")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFrequency sets the Frequency field's value. +func (s *InventorySchedule) SetFrequency(v string) *InventorySchedule { + s.Frequency = &v + return s +} + +// Container for object key name prefix and suffix filtering rules. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/S3KeyFilter +type KeyFilter struct { _ struct{} `type:"structure"` // A list of containers for key value pair that defines the criteria for the @@ -6893,56 +11143,460 @@ type KeyFilter struct { } // String returns the string representation -func (s KeyFilter) String() string { +func (s KeyFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KeyFilter) GoString() string { + return s.String() +} + +// SetFilterRules sets the FilterRules field's value. +func (s *KeyFilter) SetFilterRules(v []*FilterRule) *KeyFilter { + s.FilterRules = v + return s +} + +// Container for specifying the AWS Lambda notification configuration. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LambdaFunctionConfiguration +type LambdaFunctionConfiguration struct { + _ struct{} `type:"structure"` + + // Events is a required field + Events []*string `locationName:"Event" type:"list" flattened:"true" required:"true"` + + // Container for object key name filtering rules. For information about key + // name filtering, go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) + Filter *NotificationConfigurationFilter `type:"structure"` + + // Optional unique identifier for configurations in a notification configuration. + // If you don't provide one, Amazon S3 will assign an ID. + Id *string `type:"string"` + + // Lambda cloud function ARN that Amazon S3 can invoke when it detects events + // of the specified type. + // + // LambdaFunctionArn is a required field + LambdaFunctionArn *string `locationName:"CloudFunction" type:"string" required:"true"` +} + +// String returns the string representation +func (s LambdaFunctionConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LambdaFunctionConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LambdaFunctionConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LambdaFunctionConfiguration"} + if s.Events == nil { + invalidParams.Add(request.NewErrParamRequired("Events")) + } + if s.LambdaFunctionArn == nil { + invalidParams.Add(request.NewErrParamRequired("LambdaFunctionArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEvents sets the Events field's value. +func (s *LambdaFunctionConfiguration) SetEvents(v []*string) *LambdaFunctionConfiguration { + s.Events = v + return s +} + +// SetFilter sets the Filter field's value. +func (s *LambdaFunctionConfiguration) SetFilter(v *NotificationConfigurationFilter) *LambdaFunctionConfiguration { + s.Filter = v + return s +} + +// SetId sets the Id field's value. +func (s *LambdaFunctionConfiguration) SetId(v string) *LambdaFunctionConfiguration { + s.Id = &v + return s +} + +// SetLambdaFunctionArn sets the LambdaFunctionArn field's value. +func (s *LambdaFunctionConfiguration) SetLambdaFunctionArn(v string) *LambdaFunctionConfiguration { + s.LambdaFunctionArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LifecycleConfiguration +type LifecycleConfiguration struct { + _ struct{} `type:"structure"` + + // Rules is a required field + Rules []*Rule `locationName:"Rule" type:"list" flattened:"true" required:"true"` +} + +// String returns the string representation +func (s LifecycleConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LifecycleConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LifecycleConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LifecycleConfiguration"} + if s.Rules == nil { + invalidParams.Add(request.NewErrParamRequired("Rules")) + } + if s.Rules != nil { + for i, v := range s.Rules { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRules sets the Rules field's value. +func (s *LifecycleConfiguration) SetRules(v []*Rule) *LifecycleConfiguration { + s.Rules = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LifecycleExpiration +type LifecycleExpiration struct { + _ struct{} `type:"structure"` + + // Indicates at what date the object is to be moved or deleted. Should be in + // GMT ISO 8601 Format. + Date *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // Indicates the lifetime, in days, of the objects that are subject to the rule. + // The value must be a non-zero positive integer. + Days *int64 `type:"integer"` + + // Indicates whether Amazon S3 will remove a delete marker with no noncurrent + // versions. If set to true, the delete marker will be expired; if set to false + // the policy takes no action. This cannot be specified with Days or Date in + // a Lifecycle Expiration Policy. + ExpiredObjectDeleteMarker *bool `type:"boolean"` +} + +// String returns the string representation +func (s LifecycleExpiration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LifecycleExpiration) GoString() string { + return s.String() +} + +// SetDate sets the Date field's value. +func (s *LifecycleExpiration) SetDate(v time.Time) *LifecycleExpiration { + s.Date = &v + return s +} + +// SetDays sets the Days field's value. +func (s *LifecycleExpiration) SetDays(v int64) *LifecycleExpiration { + s.Days = &v + return s +} + +// SetExpiredObjectDeleteMarker sets the ExpiredObjectDeleteMarker field's value. +func (s *LifecycleExpiration) SetExpiredObjectDeleteMarker(v bool) *LifecycleExpiration { + s.ExpiredObjectDeleteMarker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LifecycleRule +type LifecycleRule struct { + _ struct{} `type:"structure"` + + // Specifies the days since the initiation of an Incomplete Multipart Upload + // that Lifecycle will wait before permanently removing all parts of the upload. + AbortIncompleteMultipartUpload *AbortIncompleteMultipartUpload `type:"structure"` + + Expiration *LifecycleExpiration `type:"structure"` + + // The Filter is used to identify objects that a Lifecycle Rule applies to. + // A Filter must have exactly one of Prefix, Tag, or And specified. + Filter *LifecycleRuleFilter `type:"structure"` + + // Unique identifier for the rule. The value cannot be longer than 255 characters. + ID *string `type:"string"` + + // Specifies when noncurrent object versions expire. Upon expiration, Amazon + // S3 permanently deletes the noncurrent object versions. You set this lifecycle + // configuration action on a bucket that has versioning enabled (or suspended) + // to request that Amazon S3 delete noncurrent object versions at a specific + // period in the object's lifetime. + NoncurrentVersionExpiration *NoncurrentVersionExpiration `type:"structure"` + + NoncurrentVersionTransitions []*NoncurrentVersionTransition `locationName:"NoncurrentVersionTransition" type:"list" flattened:"true"` + + // Prefix identifying one or more objects to which the rule applies. This is + // deprecated; use Filter instead. + Prefix *string `deprecated:"true" type:"string"` + + // If 'Enabled', the rule is currently being applied. If 'Disabled', the rule + // is not currently being applied. + // + // Status is a required field + Status *string `type:"string" required:"true" enum:"ExpirationStatus"` + + Transitions []*Transition `locationName:"Transition" type:"list" flattened:"true"` +} + +// String returns the string representation +func (s LifecycleRule) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LifecycleRule) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LifecycleRule) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LifecycleRule"} + if s.Status == nil { + invalidParams.Add(request.NewErrParamRequired("Status")) + } + if s.Filter != nil { + if err := s.Filter.Validate(); err != nil { + invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAbortIncompleteMultipartUpload sets the AbortIncompleteMultipartUpload field's value. +func (s *LifecycleRule) SetAbortIncompleteMultipartUpload(v *AbortIncompleteMultipartUpload) *LifecycleRule { + s.AbortIncompleteMultipartUpload = v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *LifecycleRule) SetExpiration(v *LifecycleExpiration) *LifecycleRule { + s.Expiration = v + return s +} + +// SetFilter sets the Filter field's value. +func (s *LifecycleRule) SetFilter(v *LifecycleRuleFilter) *LifecycleRule { + s.Filter = v + return s +} + +// SetID sets the ID field's value. +func (s *LifecycleRule) SetID(v string) *LifecycleRule { + s.ID = &v + return s +} + +// SetNoncurrentVersionExpiration sets the NoncurrentVersionExpiration field's value. +func (s *LifecycleRule) SetNoncurrentVersionExpiration(v *NoncurrentVersionExpiration) *LifecycleRule { + s.NoncurrentVersionExpiration = v + return s +} + +// SetNoncurrentVersionTransitions sets the NoncurrentVersionTransitions field's value. +func (s *LifecycleRule) SetNoncurrentVersionTransitions(v []*NoncurrentVersionTransition) *LifecycleRule { + s.NoncurrentVersionTransitions = v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *LifecycleRule) SetPrefix(v string) *LifecycleRule { + s.Prefix = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *LifecycleRule) SetStatus(v string) *LifecycleRule { + s.Status = &v + return s +} + +// SetTransitions sets the Transitions field's value. +func (s *LifecycleRule) SetTransitions(v []*Transition) *LifecycleRule { + s.Transitions = v + return s +} + +// This is used in a Lifecycle Rule Filter to apply a logical AND to two or +// more predicates. The Lifecycle Rule will apply to any object matching all +// of the predicates configured inside the And operator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LifecycleRuleAndOperator +type LifecycleRuleAndOperator struct { + _ struct{} `type:"structure"` + + Prefix *string `type:"string"` + + // All of these tags must exist in the object's tag set in order for the rule + // to apply. + Tags []*Tag `locationName:"Tag" locationNameList:"Tag" type:"list" flattened:"true"` +} + +// String returns the string representation +func (s LifecycleRuleAndOperator) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LifecycleRuleAndOperator) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LifecycleRuleAndOperator) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LifecycleRuleAndOperator"} + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPrefix sets the Prefix field's value. +func (s *LifecycleRuleAndOperator) SetPrefix(v string) *LifecycleRuleAndOperator { + s.Prefix = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *LifecycleRuleAndOperator) SetTags(v []*Tag) *LifecycleRuleAndOperator { + s.Tags = v + return s +} + +// The Filter is used to identify objects that a Lifecycle Rule applies to. +// A Filter must have exactly one of Prefix, Tag, or And specified. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LifecycleRuleFilter +type LifecycleRuleFilter struct { + _ struct{} `type:"structure"` + + // This is used in a Lifecycle Rule Filter to apply a logical AND to two or + // more predicates. The Lifecycle Rule will apply to any object matching all + // of the predicates configured inside the And operator. + And *LifecycleRuleAndOperator `type:"structure"` + + // Prefix identifying one or more objects to which the rule applies. + Prefix *string `type:"string"` + + // This tag must exist in the object's tag set in order for the rule to apply. + Tag *Tag `type:"structure"` +} + +// String returns the string representation +func (s LifecycleRuleFilter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s KeyFilter) GoString() string { +func (s LifecycleRuleFilter) GoString() string { return s.String() } -// Container for specifying the AWS Lambda notification configuration. -type LambdaFunctionConfiguration struct { - _ struct{} `type:"structure"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *LifecycleRuleFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LifecycleRuleFilter"} + if s.And != nil { + if err := s.And.Validate(); err != nil { + invalidParams.AddNested("And", err.(request.ErrInvalidParams)) + } + } + if s.Tag != nil { + if err := s.Tag.Validate(); err != nil { + invalidParams.AddNested("Tag", err.(request.ErrInvalidParams)) + } + } - // Events is a required field - Events []*string `locationName:"Event" type:"list" flattened:"true" required:"true"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // Container for object key name filtering rules. For information about key - // name filtering, go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) - // in the Amazon Simple Storage Service Developer Guide. - Filter *NotificationConfigurationFilter `type:"structure"` +// SetAnd sets the And field's value. +func (s *LifecycleRuleFilter) SetAnd(v *LifecycleRuleAndOperator) *LifecycleRuleFilter { + s.And = v + return s +} - // Optional unique identifier for configurations in a notification configuration. - // If you don't provide one, Amazon S3 will assign an ID. - Id *string `type:"string"` +// SetPrefix sets the Prefix field's value. +func (s *LifecycleRuleFilter) SetPrefix(v string) *LifecycleRuleFilter { + s.Prefix = &v + return s +} - // Lambda cloud function ARN that Amazon S3 can invoke when it detects events - // of the specified type. +// SetTag sets the Tag field's value. +func (s *LifecycleRuleFilter) SetTag(v *Tag) *LifecycleRuleFilter { + s.Tag = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketAnalyticsConfigurationsRequest +type ListBucketAnalyticsConfigurationsInput struct { + _ struct{} `type:"structure"` + + // The name of the bucket from which analytics configurations are retrieved. // - // LambdaFunctionArn is a required field - LambdaFunctionArn *string `locationName:"CloudFunction" type:"string" required:"true"` + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // The ContinuationToken that represents a placeholder from where this request + // should begin. + ContinuationToken *string `location:"querystring" locationName:"continuation-token" type:"string"` } // String returns the string representation -func (s LambdaFunctionConfiguration) String() string { +func (s ListBucketAnalyticsConfigurationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s LambdaFunctionConfiguration) GoString() string { +func (s ListBucketAnalyticsConfigurationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *LambdaFunctionConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LambdaFunctionConfiguration"} - if s.Events == nil { - invalidParams.Add(request.NewErrParamRequired("Events")) - } - if s.LambdaFunctionArn == nil { - invalidParams.Add(request.NewErrParamRequired("LambdaFunctionArn")) +func (s *ListBucketAnalyticsConfigurationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListBucketAnalyticsConfigurationsInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) } if invalidParams.Len() > 0 { @@ -6951,38 +11605,104 @@ func (s *LambdaFunctionConfiguration) Validate() error { return nil } -type LifecycleConfiguration struct { +// SetBucket sets the Bucket field's value. +func (s *ListBucketAnalyticsConfigurationsInput) SetBucket(v string) *ListBucketAnalyticsConfigurationsInput { + s.Bucket = &v + return s +} + +// SetContinuationToken sets the ContinuationToken field's value. +func (s *ListBucketAnalyticsConfigurationsInput) SetContinuationToken(v string) *ListBucketAnalyticsConfigurationsInput { + s.ContinuationToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketAnalyticsConfigurationsOutput +type ListBucketAnalyticsConfigurationsOutput struct { _ struct{} `type:"structure"` - // Rules is a required field - Rules []*Rule `locationName:"Rule" type:"list" flattened:"true" required:"true"` + // The list of analytics configurations for a bucket. + AnalyticsConfigurationList []*AnalyticsConfiguration `locationName:"AnalyticsConfiguration" type:"list" flattened:"true"` + + // The ContinuationToken that represents where this request began. + ContinuationToken *string `type:"string"` + + // Indicates whether the returned list of analytics configurations is complete. + // A value of true indicates that the list is not complete and the NextContinuationToken + // will be provided for a subsequent request. + IsTruncated *bool `type:"boolean"` + + // NextContinuationToken is sent when isTruncated is true, which indicates that + // there are more analytics configurations to list. The next request must include + // this NextContinuationToken. The token is obfuscated and is not a usable value. + NextContinuationToken *string `type:"string"` } // String returns the string representation -func (s LifecycleConfiguration) String() string { +func (s ListBucketAnalyticsConfigurationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s LifecycleConfiguration) GoString() string { +func (s ListBucketAnalyticsConfigurationsOutput) GoString() string { + return s.String() +} + +// SetAnalyticsConfigurationList sets the AnalyticsConfigurationList field's value. +func (s *ListBucketAnalyticsConfigurationsOutput) SetAnalyticsConfigurationList(v []*AnalyticsConfiguration) *ListBucketAnalyticsConfigurationsOutput { + s.AnalyticsConfigurationList = v + return s +} + +// SetContinuationToken sets the ContinuationToken field's value. +func (s *ListBucketAnalyticsConfigurationsOutput) SetContinuationToken(v string) *ListBucketAnalyticsConfigurationsOutput { + s.ContinuationToken = &v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListBucketAnalyticsConfigurationsOutput) SetIsTruncated(v bool) *ListBucketAnalyticsConfigurationsOutput { + s.IsTruncated = &v + return s +} + +// SetNextContinuationToken sets the NextContinuationToken field's value. +func (s *ListBucketAnalyticsConfigurationsOutput) SetNextContinuationToken(v string) *ListBucketAnalyticsConfigurationsOutput { + s.NextContinuationToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketInventoryConfigurationsRequest +type ListBucketInventoryConfigurationsInput struct { + _ struct{} `type:"structure"` + + // The name of the bucket containing the inventory configurations to retrieve. + // + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // The marker used to continue an inventory configuration listing that has been + // truncated. Use the NextContinuationToken from a previously truncated list + // response to continue the listing. The continuation token is an opaque value + // that Amazon S3 understands. + ContinuationToken *string `location:"querystring" locationName:"continuation-token" type:"string"` +} + +// String returns the string representation +func (s ListBucketInventoryConfigurationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListBucketInventoryConfigurationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *LifecycleConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LifecycleConfiguration"} - if s.Rules == nil { - invalidParams.Add(request.NewErrParamRequired("Rules")) - } - if s.Rules != nil { - for i, v := range s.Rules { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams)) - } - } +func (s *ListBucketInventoryConfigurationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListBucketInventoryConfigurationsInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) } if invalidParams.Len() > 0 { @@ -6991,87 +11711,104 @@ func (s *LifecycleConfiguration) Validate() error { return nil } -type LifecycleExpiration struct { +// SetBucket sets the Bucket field's value. +func (s *ListBucketInventoryConfigurationsInput) SetBucket(v string) *ListBucketInventoryConfigurationsInput { + s.Bucket = &v + return s +} + +// SetContinuationToken sets the ContinuationToken field's value. +func (s *ListBucketInventoryConfigurationsInput) SetContinuationToken(v string) *ListBucketInventoryConfigurationsInput { + s.ContinuationToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketInventoryConfigurationsOutput +type ListBucketInventoryConfigurationsOutput struct { _ struct{} `type:"structure"` - // Indicates at what date the object is to be moved or deleted. Should be in - // GMT ISO 8601 Format. - Date *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // If sent in the request, the marker that is used as a starting point for this + // inventory configuration list response. + ContinuationToken *string `type:"string"` - // Indicates the lifetime, in days, of the objects that are subject to the rule. - // The value must be a non-zero positive integer. - Days *int64 `type:"integer"` + // The list of inventory configurations for a bucket. + InventoryConfigurationList []*InventoryConfiguration `locationName:"InventoryConfiguration" type:"list" flattened:"true"` - // Indicates whether Amazon S3 will remove a delete marker with no noncurrent - // versions. If set to true, the delete marker will be expired; if set to false - // the policy takes no action. This cannot be specified with Days or Date in - // a Lifecycle Expiration Policy. - ExpiredObjectDeleteMarker *bool `type:"boolean"` + // Indicates whether the returned list of inventory configurations is truncated + // in this response. A value of true indicates that the list is truncated. + IsTruncated *bool `type:"boolean"` + + // The marker used to continue this inventory configuration listing. Use the + // NextContinuationToken from this response to continue the listing in a subsequent + // request. The continuation token is an opaque value that Amazon S3 understands. + NextContinuationToken *string `type:"string"` } // String returns the string representation -func (s LifecycleExpiration) String() string { +func (s ListBucketInventoryConfigurationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s LifecycleExpiration) GoString() string { +func (s ListBucketInventoryConfigurationsOutput) GoString() string { return s.String() } -type LifecycleRule struct { - _ struct{} `type:"structure"` - - // Specifies the days since the initiation of an Incomplete Multipart Upload - // that Lifecycle will wait before permanently removing all parts of the upload. - AbortIncompleteMultipartUpload *AbortIncompleteMultipartUpload `type:"structure"` - - Expiration *LifecycleExpiration `type:"structure"` +// SetContinuationToken sets the ContinuationToken field's value. +func (s *ListBucketInventoryConfigurationsOutput) SetContinuationToken(v string) *ListBucketInventoryConfigurationsOutput { + s.ContinuationToken = &v + return s +} - // Unique identifier for the rule. The value cannot be longer than 255 characters. - ID *string `type:"string"` +// SetInventoryConfigurationList sets the InventoryConfigurationList field's value. +func (s *ListBucketInventoryConfigurationsOutput) SetInventoryConfigurationList(v []*InventoryConfiguration) *ListBucketInventoryConfigurationsOutput { + s.InventoryConfigurationList = v + return s +} - // Specifies when noncurrent object versions expire. Upon expiration, Amazon - // S3 permanently deletes the noncurrent object versions. You set this lifecycle - // configuration action on a bucket that has versioning enabled (or suspended) - // to request that Amazon S3 delete noncurrent object versions at a specific - // period in the object's lifetime. - NoncurrentVersionExpiration *NoncurrentVersionExpiration `type:"structure"` +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListBucketInventoryConfigurationsOutput) SetIsTruncated(v bool) *ListBucketInventoryConfigurationsOutput { + s.IsTruncated = &v + return s +} - NoncurrentVersionTransitions []*NoncurrentVersionTransition `locationName:"NoncurrentVersionTransition" type:"list" flattened:"true"` +// SetNextContinuationToken sets the NextContinuationToken field's value. +func (s *ListBucketInventoryConfigurationsOutput) SetNextContinuationToken(v string) *ListBucketInventoryConfigurationsOutput { + s.NextContinuationToken = &v + return s +} - // Prefix identifying one or more objects to which the rule applies. - // - // Prefix is a required field - Prefix *string `type:"string" required:"true"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketMetricsConfigurationsRequest +type ListBucketMetricsConfigurationsInput struct { + _ struct{} `type:"structure"` - // If 'Enabled', the rule is currently being applied. If 'Disabled', the rule - // is not currently being applied. + // The name of the bucket containing the metrics configurations to retrieve. // - // Status is a required field - Status *string `type:"string" required:"true" enum:"ExpirationStatus"` + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` - Transitions []*Transition `locationName:"Transition" type:"list" flattened:"true"` + // The marker that is used to continue a metrics configuration listing that + // has been truncated. Use the NextContinuationToken from a previously truncated + // list response to continue the listing. The continuation token is an opaque + // value that Amazon S3 understands. + ContinuationToken *string `location:"querystring" locationName:"continuation-token" type:"string"` } // String returns the string representation -func (s LifecycleRule) String() string { +func (s ListBucketMetricsConfigurationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s LifecycleRule) GoString() string { +func (s ListBucketMetricsConfigurationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *LifecycleRule) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LifecycleRule"} - if s.Prefix == nil { - invalidParams.Add(request.NewErrParamRequired("Prefix")) - } - if s.Status == nil { - invalidParams.Add(request.NewErrParamRequired("Status")) +func (s *ListBucketMetricsConfigurationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListBucketMetricsConfigurationsInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) } if invalidParams.Len() > 0 { @@ -7080,6 +11817,76 @@ func (s *LifecycleRule) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *ListBucketMetricsConfigurationsInput) SetBucket(v string) *ListBucketMetricsConfigurationsInput { + s.Bucket = &v + return s +} + +// SetContinuationToken sets the ContinuationToken field's value. +func (s *ListBucketMetricsConfigurationsInput) SetContinuationToken(v string) *ListBucketMetricsConfigurationsInput { + s.ContinuationToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketMetricsConfigurationsOutput +type ListBucketMetricsConfigurationsOutput struct { + _ struct{} `type:"structure"` + + // The marker that is used as a starting point for this metrics configuration + // list response. This value is present if it was sent in the request. + ContinuationToken *string `type:"string"` + + // Indicates whether the returned list of metrics configurations is complete. + // A value of true indicates that the list is not complete and the NextContinuationToken + // will be provided for a subsequent request. + IsTruncated *bool `type:"boolean"` + + // The list of metrics configurations for a bucket. + MetricsConfigurationList []*MetricsConfiguration `locationName:"MetricsConfiguration" type:"list" flattened:"true"` + + // The marker used to continue a metrics configuration listing that has been + // truncated. Use the NextContinuationToken from a previously truncated list + // response to continue the listing. The continuation token is an opaque value + // that Amazon S3 understands. + NextContinuationToken *string `type:"string"` +} + +// String returns the string representation +func (s ListBucketMetricsConfigurationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListBucketMetricsConfigurationsOutput) GoString() string { + return s.String() +} + +// SetContinuationToken sets the ContinuationToken field's value. +func (s *ListBucketMetricsConfigurationsOutput) SetContinuationToken(v string) *ListBucketMetricsConfigurationsOutput { + s.ContinuationToken = &v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListBucketMetricsConfigurationsOutput) SetIsTruncated(v bool) *ListBucketMetricsConfigurationsOutput { + s.IsTruncated = &v + return s +} + +// SetMetricsConfigurationList sets the MetricsConfigurationList field's value. +func (s *ListBucketMetricsConfigurationsOutput) SetMetricsConfigurationList(v []*MetricsConfiguration) *ListBucketMetricsConfigurationsOutput { + s.MetricsConfigurationList = v + return s +} + +// SetNextContinuationToken sets the NextContinuationToken field's value. +func (s *ListBucketMetricsConfigurationsOutput) SetNextContinuationToken(v string) *ListBucketMetricsConfigurationsOutput { + s.NextContinuationToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketsInput type ListBucketsInput struct { _ struct{} `type:"structure"` } @@ -7094,6 +11901,7 @@ func (s ListBucketsInput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketsOutput type ListBucketsOutput struct { _ struct{} `type:"structure"` @@ -7112,6 +11920,19 @@ func (s ListBucketsOutput) GoString() string { return s.String() } +// SetBuckets sets the Buckets field's value. +func (s *ListBucketsOutput) SetBuckets(v []*Bucket) *ListBucketsOutput { + s.Buckets = v + return s +} + +// SetOwner sets the Owner field's value. +func (s *ListBucketsOutput) SetOwner(v *Owner) *ListBucketsOutput { + s.Owner = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListMultipartUploadsRequest type ListMultipartUploadsInput struct { _ struct{} `type:"structure"` @@ -7171,6 +11992,49 @@ func (s *ListMultipartUploadsInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *ListMultipartUploadsInput) SetBucket(v string) *ListMultipartUploadsInput { + s.Bucket = &v + return s +} + +// SetDelimiter sets the Delimiter field's value. +func (s *ListMultipartUploadsInput) SetDelimiter(v string) *ListMultipartUploadsInput { + s.Delimiter = &v + return s +} + +// SetEncodingType sets the EncodingType field's value. +func (s *ListMultipartUploadsInput) SetEncodingType(v string) *ListMultipartUploadsInput { + s.EncodingType = &v + return s +} + +// SetKeyMarker sets the KeyMarker field's value. +func (s *ListMultipartUploadsInput) SetKeyMarker(v string) *ListMultipartUploadsInput { + s.KeyMarker = &v + return s +} + +// SetMaxUploads sets the MaxUploads field's value. +func (s *ListMultipartUploadsInput) SetMaxUploads(v int64) *ListMultipartUploadsInput { + s.MaxUploads = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ListMultipartUploadsInput) SetPrefix(v string) *ListMultipartUploadsInput { + s.Prefix = &v + return s +} + +// SetUploadIdMarker sets the UploadIdMarker field's value. +func (s *ListMultipartUploadsInput) SetUploadIdMarker(v string) *ListMultipartUploadsInput { + s.UploadIdMarker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListMultipartUploadsOutput type ListMultipartUploadsOutput struct { _ struct{} `type:"structure"` @@ -7225,6 +12089,79 @@ func (s ListMultipartUploadsOutput) GoString() string { return s.String() } +// SetBucket sets the Bucket field's value. +func (s *ListMultipartUploadsOutput) SetBucket(v string) *ListMultipartUploadsOutput { + s.Bucket = &v + return s +} + +// SetCommonPrefixes sets the CommonPrefixes field's value. +func (s *ListMultipartUploadsOutput) SetCommonPrefixes(v []*CommonPrefix) *ListMultipartUploadsOutput { + s.CommonPrefixes = v + return s +} + +// SetDelimiter sets the Delimiter field's value. +func (s *ListMultipartUploadsOutput) SetDelimiter(v string) *ListMultipartUploadsOutput { + s.Delimiter = &v + return s +} + +// SetEncodingType sets the EncodingType field's value. +func (s *ListMultipartUploadsOutput) SetEncodingType(v string) *ListMultipartUploadsOutput { + s.EncodingType = &v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListMultipartUploadsOutput) SetIsTruncated(v bool) *ListMultipartUploadsOutput { + s.IsTruncated = &v + return s +} + +// SetKeyMarker sets the KeyMarker field's value. +func (s *ListMultipartUploadsOutput) SetKeyMarker(v string) *ListMultipartUploadsOutput { + s.KeyMarker = &v + return s +} + +// SetMaxUploads sets the MaxUploads field's value. +func (s *ListMultipartUploadsOutput) SetMaxUploads(v int64) *ListMultipartUploadsOutput { + s.MaxUploads = &v + return s +} + +// SetNextKeyMarker sets the NextKeyMarker field's value. +func (s *ListMultipartUploadsOutput) SetNextKeyMarker(v string) *ListMultipartUploadsOutput { + s.NextKeyMarker = &v + return s +} + +// SetNextUploadIdMarker sets the NextUploadIdMarker field's value. +func (s *ListMultipartUploadsOutput) SetNextUploadIdMarker(v string) *ListMultipartUploadsOutput { + s.NextUploadIdMarker = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ListMultipartUploadsOutput) SetPrefix(v string) *ListMultipartUploadsOutput { + s.Prefix = &v + return s +} + +// SetUploadIdMarker sets the UploadIdMarker field's value. +func (s *ListMultipartUploadsOutput) SetUploadIdMarker(v string) *ListMultipartUploadsOutput { + s.UploadIdMarker = &v + return s +} + +// SetUploads sets the Uploads field's value. +func (s *ListMultipartUploadsOutput) SetUploads(v []*MultipartUpload) *ListMultipartUploadsOutput { + s.Uploads = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectVersionsRequest type ListObjectVersionsInput struct { _ struct{} `type:"structure"` @@ -7279,6 +12216,49 @@ func (s *ListObjectVersionsInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *ListObjectVersionsInput) SetBucket(v string) *ListObjectVersionsInput { + s.Bucket = &v + return s +} + +// SetDelimiter sets the Delimiter field's value. +func (s *ListObjectVersionsInput) SetDelimiter(v string) *ListObjectVersionsInput { + s.Delimiter = &v + return s +} + +// SetEncodingType sets the EncodingType field's value. +func (s *ListObjectVersionsInput) SetEncodingType(v string) *ListObjectVersionsInput { + s.EncodingType = &v + return s +} + +// SetKeyMarker sets the KeyMarker field's value. +func (s *ListObjectVersionsInput) SetKeyMarker(v string) *ListObjectVersionsInput { + s.KeyMarker = &v + return s +} + +// SetMaxKeys sets the MaxKeys field's value. +func (s *ListObjectVersionsInput) SetMaxKeys(v int64) *ListObjectVersionsInput { + s.MaxKeys = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ListObjectVersionsInput) SetPrefix(v string) *ListObjectVersionsInput { + s.Prefix = &v + return s +} + +// SetVersionIdMarker sets the VersionIdMarker field's value. +func (s *ListObjectVersionsInput) SetVersionIdMarker(v string) *ListObjectVersionsInput { + s.VersionIdMarker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectVersionsOutput type ListObjectVersionsOutput struct { _ struct{} `type:"structure"` @@ -7328,6 +12308,85 @@ func (s ListObjectVersionsOutput) GoString() string { return s.String() } +// SetCommonPrefixes sets the CommonPrefixes field's value. +func (s *ListObjectVersionsOutput) SetCommonPrefixes(v []*CommonPrefix) *ListObjectVersionsOutput { + s.CommonPrefixes = v + return s +} + +// SetDeleteMarkers sets the DeleteMarkers field's value. +func (s *ListObjectVersionsOutput) SetDeleteMarkers(v []*DeleteMarkerEntry) *ListObjectVersionsOutput { + s.DeleteMarkers = v + return s +} + +// SetDelimiter sets the Delimiter field's value. +func (s *ListObjectVersionsOutput) SetDelimiter(v string) *ListObjectVersionsOutput { + s.Delimiter = &v + return s +} + +// SetEncodingType sets the EncodingType field's value. +func (s *ListObjectVersionsOutput) SetEncodingType(v string) *ListObjectVersionsOutput { + s.EncodingType = &v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListObjectVersionsOutput) SetIsTruncated(v bool) *ListObjectVersionsOutput { + s.IsTruncated = &v + return s +} + +// SetKeyMarker sets the KeyMarker field's value. +func (s *ListObjectVersionsOutput) SetKeyMarker(v string) *ListObjectVersionsOutput { + s.KeyMarker = &v + return s +} + +// SetMaxKeys sets the MaxKeys field's value. +func (s *ListObjectVersionsOutput) SetMaxKeys(v int64) *ListObjectVersionsOutput { + s.MaxKeys = &v + return s +} + +// SetName sets the Name field's value. +func (s *ListObjectVersionsOutput) SetName(v string) *ListObjectVersionsOutput { + s.Name = &v + return s +} + +// SetNextKeyMarker sets the NextKeyMarker field's value. +func (s *ListObjectVersionsOutput) SetNextKeyMarker(v string) *ListObjectVersionsOutput { + s.NextKeyMarker = &v + return s +} + +// SetNextVersionIdMarker sets the NextVersionIdMarker field's value. +func (s *ListObjectVersionsOutput) SetNextVersionIdMarker(v string) *ListObjectVersionsOutput { + s.NextVersionIdMarker = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ListObjectVersionsOutput) SetPrefix(v string) *ListObjectVersionsOutput { + s.Prefix = &v + return s +} + +// SetVersionIdMarker sets the VersionIdMarker field's value. +func (s *ListObjectVersionsOutput) SetVersionIdMarker(v string) *ListObjectVersionsOutput { + s.VersionIdMarker = &v + return s +} + +// SetVersions sets the Versions field's value. +func (s *ListObjectVersionsOutput) SetVersions(v []*ObjectVersion) *ListObjectVersionsOutput { + s.Versions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectsRequest type ListObjectsInput struct { _ struct{} `type:"structure"` @@ -7384,6 +12443,49 @@ func (s *ListObjectsInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *ListObjectsInput) SetBucket(v string) *ListObjectsInput { + s.Bucket = &v + return s +} + +// SetDelimiter sets the Delimiter field's value. +func (s *ListObjectsInput) SetDelimiter(v string) *ListObjectsInput { + s.Delimiter = &v + return s +} + +// SetEncodingType sets the EncodingType field's value. +func (s *ListObjectsInput) SetEncodingType(v string) *ListObjectsInput { + s.EncodingType = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListObjectsInput) SetMarker(v string) *ListObjectsInput { + s.Marker = &v + return s +} + +// SetMaxKeys sets the MaxKeys field's value. +func (s *ListObjectsInput) SetMaxKeys(v int64) *ListObjectsInput { + s.MaxKeys = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ListObjectsInput) SetPrefix(v string) *ListObjectsInput { + s.Prefix = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *ListObjectsInput) SetRequestPayer(v string) *ListObjectsInput { + s.RequestPayer = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectsOutput type ListObjectsOutput struct { _ struct{} `type:"structure"` @@ -7428,6 +12530,67 @@ func (s ListObjectsOutput) GoString() string { return s.String() } +// SetCommonPrefixes sets the CommonPrefixes field's value. +func (s *ListObjectsOutput) SetCommonPrefixes(v []*CommonPrefix) *ListObjectsOutput { + s.CommonPrefixes = v + return s +} + +// SetContents sets the Contents field's value. +func (s *ListObjectsOutput) SetContents(v []*Object) *ListObjectsOutput { + s.Contents = v + return s +} + +// SetDelimiter sets the Delimiter field's value. +func (s *ListObjectsOutput) SetDelimiter(v string) *ListObjectsOutput { + s.Delimiter = &v + return s +} + +// SetEncodingType sets the EncodingType field's value. +func (s *ListObjectsOutput) SetEncodingType(v string) *ListObjectsOutput { + s.EncodingType = &v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListObjectsOutput) SetIsTruncated(v bool) *ListObjectsOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListObjectsOutput) SetMarker(v string) *ListObjectsOutput { + s.Marker = &v + return s +} + +// SetMaxKeys sets the MaxKeys field's value. +func (s *ListObjectsOutput) SetMaxKeys(v int64) *ListObjectsOutput { + s.MaxKeys = &v + return s +} + +// SetName sets the Name field's value. +func (s *ListObjectsOutput) SetName(v string) *ListObjectsOutput { + s.Name = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListObjectsOutput) SetNextMarker(v string) *ListObjectsOutput { + s.NextMarker = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ListObjectsOutput) SetPrefix(v string) *ListObjectsOutput { + s.Prefix = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectsV2Request type ListObjectsV2Input struct { _ struct{} `type:"structure"` @@ -7492,6 +12655,61 @@ func (s *ListObjectsV2Input) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *ListObjectsV2Input) SetBucket(v string) *ListObjectsV2Input { + s.Bucket = &v + return s +} + +// SetContinuationToken sets the ContinuationToken field's value. +func (s *ListObjectsV2Input) SetContinuationToken(v string) *ListObjectsV2Input { + s.ContinuationToken = &v + return s +} + +// SetDelimiter sets the Delimiter field's value. +func (s *ListObjectsV2Input) SetDelimiter(v string) *ListObjectsV2Input { + s.Delimiter = &v + return s +} + +// SetEncodingType sets the EncodingType field's value. +func (s *ListObjectsV2Input) SetEncodingType(v string) *ListObjectsV2Input { + s.EncodingType = &v + return s +} + +// SetFetchOwner sets the FetchOwner field's value. +func (s *ListObjectsV2Input) SetFetchOwner(v bool) *ListObjectsV2Input { + s.FetchOwner = &v + return s +} + +// SetMaxKeys sets the MaxKeys field's value. +func (s *ListObjectsV2Input) SetMaxKeys(v int64) *ListObjectsV2Input { + s.MaxKeys = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ListObjectsV2Input) SetPrefix(v string) *ListObjectsV2Input { + s.Prefix = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *ListObjectsV2Input) SetRequestPayer(v string) *ListObjectsV2Input { + s.RequestPayer = &v + return s +} + +// SetStartAfter sets the StartAfter field's value. +func (s *ListObjectsV2Input) SetStartAfter(v string) *ListObjectsV2Input { + s.StartAfter = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectsV2Output type ListObjectsV2Output struct { _ struct{} `type:"structure"` @@ -7553,6 +12771,79 @@ func (s ListObjectsV2Output) GoString() string { return s.String() } +// SetCommonPrefixes sets the CommonPrefixes field's value. +func (s *ListObjectsV2Output) SetCommonPrefixes(v []*CommonPrefix) *ListObjectsV2Output { + s.CommonPrefixes = v + return s +} + +// SetContents sets the Contents field's value. +func (s *ListObjectsV2Output) SetContents(v []*Object) *ListObjectsV2Output { + s.Contents = v + return s +} + +// SetContinuationToken sets the ContinuationToken field's value. +func (s *ListObjectsV2Output) SetContinuationToken(v string) *ListObjectsV2Output { + s.ContinuationToken = &v + return s +} + +// SetDelimiter sets the Delimiter field's value. +func (s *ListObjectsV2Output) SetDelimiter(v string) *ListObjectsV2Output { + s.Delimiter = &v + return s +} + +// SetEncodingType sets the EncodingType field's value. +func (s *ListObjectsV2Output) SetEncodingType(v string) *ListObjectsV2Output { + s.EncodingType = &v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListObjectsV2Output) SetIsTruncated(v bool) *ListObjectsV2Output { + s.IsTruncated = &v + return s +} + +// SetKeyCount sets the KeyCount field's value. +func (s *ListObjectsV2Output) SetKeyCount(v int64) *ListObjectsV2Output { + s.KeyCount = &v + return s +} + +// SetMaxKeys sets the MaxKeys field's value. +func (s *ListObjectsV2Output) SetMaxKeys(v int64) *ListObjectsV2Output { + s.MaxKeys = &v + return s +} + +// SetName sets the Name field's value. +func (s *ListObjectsV2Output) SetName(v string) *ListObjectsV2Output { + s.Name = &v + return s +} + +// SetNextContinuationToken sets the NextContinuationToken field's value. +func (s *ListObjectsV2Output) SetNextContinuationToken(v string) *ListObjectsV2Output { + s.NextContinuationToken = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ListObjectsV2Output) SetPrefix(v string) *ListObjectsV2Output { + s.Prefix = &v + return s +} + +// SetStartAfter sets the StartAfter field's value. +func (s *ListObjectsV2Output) SetStartAfter(v string) *ListObjectsV2Output { + s.StartAfter = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListPartsRequest type ListPartsInput struct { _ struct{} `type:"structure"` @@ -7613,6 +12904,43 @@ func (s *ListPartsInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *ListPartsInput) SetBucket(v string) *ListPartsInput { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *ListPartsInput) SetKey(v string) *ListPartsInput { + s.Key = &v + return s +} + +// SetMaxParts sets the MaxParts field's value. +func (s *ListPartsInput) SetMaxParts(v int64) *ListPartsInput { + s.MaxParts = &v + return s +} + +// SetPartNumberMarker sets the PartNumberMarker field's value. +func (s *ListPartsInput) SetPartNumberMarker(v int64) *ListPartsInput { + s.PartNumberMarker = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *ListPartsInput) SetRequestPayer(v string) *ListPartsInput { + s.RequestPayer = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *ListPartsInput) SetUploadId(v string) *ListPartsInput { + s.UploadId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListPartsOutput type ListPartsOutput struct { _ struct{} `type:"structure"` @@ -7671,6 +12999,91 @@ func (s ListPartsOutput) GoString() string { return s.String() } +// SetAbortDate sets the AbortDate field's value. +func (s *ListPartsOutput) SetAbortDate(v time.Time) *ListPartsOutput { + s.AbortDate = &v + return s +} + +// SetAbortRuleId sets the AbortRuleId field's value. +func (s *ListPartsOutput) SetAbortRuleId(v string) *ListPartsOutput { + s.AbortRuleId = &v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *ListPartsOutput) SetBucket(v string) *ListPartsOutput { + s.Bucket = &v + return s +} + +// SetInitiator sets the Initiator field's value. +func (s *ListPartsOutput) SetInitiator(v *Initiator) *ListPartsOutput { + s.Initiator = v + return s +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListPartsOutput) SetIsTruncated(v bool) *ListPartsOutput { + s.IsTruncated = &v + return s +} + +// SetKey sets the Key field's value. +func (s *ListPartsOutput) SetKey(v string) *ListPartsOutput { + s.Key = &v + return s +} + +// SetMaxParts sets the MaxParts field's value. +func (s *ListPartsOutput) SetMaxParts(v int64) *ListPartsOutput { + s.MaxParts = &v + return s +} + +// SetNextPartNumberMarker sets the NextPartNumberMarker field's value. +func (s *ListPartsOutput) SetNextPartNumberMarker(v int64) *ListPartsOutput { + s.NextPartNumberMarker = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *ListPartsOutput) SetOwner(v *Owner) *ListPartsOutput { + s.Owner = v + return s +} + +// SetPartNumberMarker sets the PartNumberMarker field's value. +func (s *ListPartsOutput) SetPartNumberMarker(v int64) *ListPartsOutput { + s.PartNumberMarker = &v + return s +} + +// SetParts sets the Parts field's value. +func (s *ListPartsOutput) SetParts(v []*Part) *ListPartsOutput { + s.Parts = v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *ListPartsOutput) SetRequestCharged(v string) *ListPartsOutput { + s.RequestCharged = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *ListPartsOutput) SetStorageClass(v string) *ListPartsOutput { + s.StorageClass = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *ListPartsOutput) SetUploadId(v string) *ListPartsOutput { + s.UploadId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LoggingEnabled type LoggingEnabled struct { _ struct{} `type:"structure"` @@ -7719,6 +13132,197 @@ func (s *LoggingEnabled) Validate() error { return nil } +// SetTargetBucket sets the TargetBucket field's value. +func (s *LoggingEnabled) SetTargetBucket(v string) *LoggingEnabled { + s.TargetBucket = &v + return s +} + +// SetTargetGrants sets the TargetGrants field's value. +func (s *LoggingEnabled) SetTargetGrants(v []*TargetGrant) *LoggingEnabled { + s.TargetGrants = v + return s +} + +// SetTargetPrefix sets the TargetPrefix field's value. +func (s *LoggingEnabled) SetTargetPrefix(v string) *LoggingEnabled { + s.TargetPrefix = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/MetricsAndOperator +type MetricsAndOperator struct { + _ struct{} `type:"structure"` + + // The prefix used when evaluating an AND predicate. + Prefix *string `type:"string"` + + // The list of tags used when evaluating an AND predicate. + Tags []*Tag `locationName:"Tag" locationNameList:"Tag" type:"list" flattened:"true"` +} + +// String returns the string representation +func (s MetricsAndOperator) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MetricsAndOperator) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MetricsAndOperator) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MetricsAndOperator"} + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPrefix sets the Prefix field's value. +func (s *MetricsAndOperator) SetPrefix(v string) *MetricsAndOperator { + s.Prefix = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *MetricsAndOperator) SetTags(v []*Tag) *MetricsAndOperator { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/MetricsConfiguration +type MetricsConfiguration struct { + _ struct{} `type:"structure"` + + // Specifies a metrics configuration filter. The metrics configuration will + // only include objects that meet the filter's criteria. A filter must be a + // prefix, a tag, or a conjunction (MetricsAndOperator). + Filter *MetricsFilter `type:"structure"` + + // The ID used to identify the metrics configuration. + // + // Id is a required field + Id *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s MetricsConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MetricsConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MetricsConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MetricsConfiguration"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Filter != nil { + if err := s.Filter.Validate(); err != nil { + invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilter sets the Filter field's value. +func (s *MetricsConfiguration) SetFilter(v *MetricsFilter) *MetricsConfiguration { + s.Filter = v + return s +} + +// SetId sets the Id field's value. +func (s *MetricsConfiguration) SetId(v string) *MetricsConfiguration { + s.Id = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/MetricsFilter +type MetricsFilter struct { + _ struct{} `type:"structure"` + + // A conjunction (logical AND) of predicates, which is used in evaluating a + // metrics filter. The operator must have at least two predicates, and an object + // must match all of the predicates in order for the filter to apply. + And *MetricsAndOperator `type:"structure"` + + // The prefix used when evaluating a metrics filter. + Prefix *string `type:"string"` + + // The tag used when evaluating a metrics filter. + Tag *Tag `type:"structure"` +} + +// String returns the string representation +func (s MetricsFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MetricsFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MetricsFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MetricsFilter"} + if s.And != nil { + if err := s.And.Validate(); err != nil { + invalidParams.AddNested("And", err.(request.ErrInvalidParams)) + } + } + if s.Tag != nil { + if err := s.Tag.Validate(); err != nil { + invalidParams.AddNested("Tag", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAnd sets the And field's value. +func (s *MetricsFilter) SetAnd(v *MetricsAndOperator) *MetricsFilter { + s.And = v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *MetricsFilter) SetPrefix(v string) *MetricsFilter { + s.Prefix = &v + return s +} + +// SetTag sets the Tag field's value. +func (s *MetricsFilter) SetTag(v *Tag) *MetricsFilter { + s.Tag = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/MultipartUpload type MultipartUpload struct { _ struct{} `type:"structure"` @@ -7750,19 +13354,55 @@ func (s MultipartUpload) GoString() string { return s.String() } +// SetInitiated sets the Initiated field's value. +func (s *MultipartUpload) SetInitiated(v time.Time) *MultipartUpload { + s.Initiated = &v + return s +} + +// SetInitiator sets the Initiator field's value. +func (s *MultipartUpload) SetInitiator(v *Initiator) *MultipartUpload { + s.Initiator = v + return s +} + +// SetKey sets the Key field's value. +func (s *MultipartUpload) SetKey(v string) *MultipartUpload { + s.Key = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *MultipartUpload) SetOwner(v *Owner) *MultipartUpload { + s.Owner = v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *MultipartUpload) SetStorageClass(v string) *MultipartUpload { + s.StorageClass = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *MultipartUpload) SetUploadId(v string) *MultipartUpload { + s.UploadId = &v + return s +} + // Specifies when noncurrent object versions expire. Upon expiration, Amazon // S3 permanently deletes the noncurrent object versions. You set this lifecycle // configuration action on a bucket that has versioning enabled (or suspended) // to request that Amazon S3 delete noncurrent object versions at a specific // period in the object's lifetime. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/NoncurrentVersionExpiration type NoncurrentVersionExpiration struct { _ struct{} `type:"structure"` // Specifies the number of days an object is noncurrent before Amazon S3 can // perform the associated action. For information about the noncurrent days // calculations, see How Amazon S3 Calculates When an Object Became Noncurrent - // (http://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) in - // the Amazon Simple Storage Service Developer Guide. + // (http://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) NoncurrentDays *int64 `type:"integer"` } @@ -7776,19 +13416,25 @@ func (s NoncurrentVersionExpiration) GoString() string { return s.String() } +// SetNoncurrentDays sets the NoncurrentDays field's value. +func (s *NoncurrentVersionExpiration) SetNoncurrentDays(v int64) *NoncurrentVersionExpiration { + s.NoncurrentDays = &v + return s +} + // Container for the transition rule that describes when noncurrent objects // transition to the STANDARD_IA or GLACIER storage class. If your bucket is // versioning-enabled (or versioning is suspended), you can set this action // to request that Amazon S3 transition noncurrent object versions to the STANDARD_IA // or GLACIER storage class at a specific period in the object's lifetime. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/NoncurrentVersionTransition type NoncurrentVersionTransition struct { _ struct{} `type:"structure"` // Specifies the number of days an object is noncurrent before Amazon S3 can // perform the associated action. For information about the noncurrent days // calculations, see How Amazon S3 Calculates When an Object Became Noncurrent - // (http://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) in - // the Amazon Simple Storage Service Developer Guide. + // (http://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) NoncurrentDays *int64 `type:"integer"` // The class of storage used to store the object. @@ -7805,8 +13451,21 @@ func (s NoncurrentVersionTransition) GoString() string { return s.String() } +// SetNoncurrentDays sets the NoncurrentDays field's value. +func (s *NoncurrentVersionTransition) SetNoncurrentDays(v int64) *NoncurrentVersionTransition { + s.NoncurrentDays = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *NoncurrentVersionTransition) SetStorageClass(v string) *NoncurrentVersionTransition { + s.StorageClass = &v + return s +} + // Container for specifying the notification configuration of the bucket. If // this element is empty, notifications are turned off on the bucket. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/NotificationConfiguration type NotificationConfiguration struct { _ struct{} `type:"structure"` @@ -7867,6 +13526,25 @@ func (s *NotificationConfiguration) Validate() error { return nil } +// SetLambdaFunctionConfigurations sets the LambdaFunctionConfigurations field's value. +func (s *NotificationConfiguration) SetLambdaFunctionConfigurations(v []*LambdaFunctionConfiguration) *NotificationConfiguration { + s.LambdaFunctionConfigurations = v + return s +} + +// SetQueueConfigurations sets the QueueConfigurations field's value. +func (s *NotificationConfiguration) SetQueueConfigurations(v []*QueueConfiguration) *NotificationConfiguration { + s.QueueConfigurations = v + return s +} + +// SetTopicConfigurations sets the TopicConfigurations field's value. +func (s *NotificationConfiguration) SetTopicConfigurations(v []*TopicConfiguration) *NotificationConfiguration { + s.TopicConfigurations = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/NotificationConfigurationDeprecated type NotificationConfigurationDeprecated struct { _ struct{} `type:"structure"` @@ -7887,9 +13565,27 @@ func (s NotificationConfigurationDeprecated) GoString() string { return s.String() } +// SetCloudFunctionConfiguration sets the CloudFunctionConfiguration field's value. +func (s *NotificationConfigurationDeprecated) SetCloudFunctionConfiguration(v *CloudFunctionConfiguration) *NotificationConfigurationDeprecated { + s.CloudFunctionConfiguration = v + return s +} + +// SetQueueConfiguration sets the QueueConfiguration field's value. +func (s *NotificationConfigurationDeprecated) SetQueueConfiguration(v *QueueConfigurationDeprecated) *NotificationConfigurationDeprecated { + s.QueueConfiguration = v + return s +} + +// SetTopicConfiguration sets the TopicConfiguration field's value. +func (s *NotificationConfigurationDeprecated) SetTopicConfiguration(v *TopicConfigurationDeprecated) *NotificationConfigurationDeprecated { + s.TopicConfiguration = v + return s +} + // Container for object key name filtering rules. For information about key // name filtering, go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) -// in the Amazon Simple Storage Service Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/NotificationConfigurationFilter type NotificationConfigurationFilter struct { _ struct{} `type:"structure"` @@ -7907,6 +13603,13 @@ func (s NotificationConfigurationFilter) GoString() string { return s.String() } +// SetKey sets the Key field's value. +func (s *NotificationConfigurationFilter) SetKey(v *KeyFilter) *NotificationConfigurationFilter { + s.Key = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Object type Object struct { _ struct{} `type:"structure"` @@ -7934,6 +13637,43 @@ func (s Object) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *Object) SetETag(v string) *Object { + s.ETag = &v + return s +} + +// SetKey sets the Key field's value. +func (s *Object) SetKey(v string) *Object { + s.Key = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *Object) SetLastModified(v time.Time) *Object { + s.LastModified = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *Object) SetOwner(v *Owner) *Object { + s.Owner = v + return s +} + +// SetSize sets the Size field's value. +func (s *Object) SetSize(v int64) *Object { + s.Size = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *Object) SetStorageClass(v string) *Object { + s.StorageClass = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ObjectIdentifier type ObjectIdentifier struct { _ struct{} `type:"structure"` @@ -7972,6 +13712,19 @@ func (s *ObjectIdentifier) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *ObjectIdentifier) SetKey(v string) *ObjectIdentifier { + s.Key = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *ObjectIdentifier) SetVersionId(v string) *ObjectIdentifier { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ObjectVersion type ObjectVersion struct { _ struct{} `type:"structure"` @@ -8009,6 +13762,55 @@ func (s ObjectVersion) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *ObjectVersion) SetETag(v string) *ObjectVersion { + s.ETag = &v + return s +} + +// SetIsLatest sets the IsLatest field's value. +func (s *ObjectVersion) SetIsLatest(v bool) *ObjectVersion { + s.IsLatest = &v + return s +} + +// SetKey sets the Key field's value. +func (s *ObjectVersion) SetKey(v string) *ObjectVersion { + s.Key = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *ObjectVersion) SetLastModified(v time.Time) *ObjectVersion { + s.LastModified = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *ObjectVersion) SetOwner(v *Owner) *ObjectVersion { + s.Owner = v + return s +} + +// SetSize sets the Size field's value. +func (s *ObjectVersion) SetSize(v int64) *ObjectVersion { + s.Size = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *ObjectVersion) SetStorageClass(v string) *ObjectVersion { + s.StorageClass = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *ObjectVersion) SetVersionId(v string) *ObjectVersion { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Owner type Owner struct { _ struct{} `type:"structure"` @@ -8027,6 +13829,19 @@ func (s Owner) GoString() string { return s.String() } +// SetDisplayName sets the DisplayName field's value. +func (s *Owner) SetDisplayName(v string) *Owner { + s.DisplayName = &v + return s +} + +// SetID sets the ID field's value. +func (s *Owner) SetID(v string) *Owner { + s.ID = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Part type Part struct { _ struct{} `type:"structure"` @@ -8054,6 +13869,31 @@ func (s Part) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *Part) SetETag(v string) *Part { + s.ETag = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *Part) SetLastModified(v time.Time) *Part { + s.LastModified = &v + return s +} + +// SetPartNumber sets the PartNumber field's value. +func (s *Part) SetPartNumber(v int64) *Part { + s.PartNumber = &v + return s +} + +// SetSize sets the Size field's value. +func (s *Part) SetSize(v int64) *Part { + s.Size = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAccelerateConfigurationRequest type PutBucketAccelerateConfigurationInput struct { _ struct{} `type:"structure" payload:"AccelerateConfiguration"` @@ -8094,6 +13934,19 @@ func (s *PutBucketAccelerateConfigurationInput) Validate() error { return nil } +// SetAccelerateConfiguration sets the AccelerateConfiguration field's value. +func (s *PutBucketAccelerateConfigurationInput) SetAccelerateConfiguration(v *AccelerateConfiguration) *PutBucketAccelerateConfigurationInput { + s.AccelerateConfiguration = v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *PutBucketAccelerateConfigurationInput) SetBucket(v string) *PutBucketAccelerateConfigurationInput { + s.Bucket = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAccelerateConfigurationOutput type PutBucketAccelerateConfigurationOutput struct { _ struct{} `type:"structure"` } @@ -8108,6 +13961,7 @@ func (s PutBucketAccelerateConfigurationOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAclRequest type PutBucketAclInput struct { _ struct{} `type:"structure" payload:"AccessControlPolicy"` @@ -8164,6 +14018,55 @@ func (s *PutBucketAclInput) Validate() error { return nil } +// SetACL sets the ACL field's value. +func (s *PutBucketAclInput) SetACL(v string) *PutBucketAclInput { + s.ACL = &v + return s +} + +// SetAccessControlPolicy sets the AccessControlPolicy field's value. +func (s *PutBucketAclInput) SetAccessControlPolicy(v *AccessControlPolicy) *PutBucketAclInput { + s.AccessControlPolicy = v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *PutBucketAclInput) SetBucket(v string) *PutBucketAclInput { + s.Bucket = &v + return s +} + +// SetGrantFullControl sets the GrantFullControl field's value. +func (s *PutBucketAclInput) SetGrantFullControl(v string) *PutBucketAclInput { + s.GrantFullControl = &v + return s +} + +// SetGrantRead sets the GrantRead field's value. +func (s *PutBucketAclInput) SetGrantRead(v string) *PutBucketAclInput { + s.GrantRead = &v + return s +} + +// SetGrantReadACP sets the GrantReadACP field's value. +func (s *PutBucketAclInput) SetGrantReadACP(v string) *PutBucketAclInput { + s.GrantReadACP = &v + return s +} + +// SetGrantWrite sets the GrantWrite field's value. +func (s *PutBucketAclInput) SetGrantWrite(v string) *PutBucketAclInput { + s.GrantWrite = &v + return s +} + +// SetGrantWriteACP sets the GrantWriteACP field's value. +func (s *PutBucketAclInput) SetGrantWriteACP(v string) *PutBucketAclInput { + s.GrantWriteACP = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAclOutput type PutBucketAclOutput struct { _ struct{} `type:"structure"` } @@ -8178,6 +14081,94 @@ func (s PutBucketAclOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAnalyticsConfigurationRequest +type PutBucketAnalyticsConfigurationInput struct { + _ struct{} `type:"structure" payload:"AnalyticsConfiguration"` + + // The configuration and any analyses for the analytics filter. + // + // AnalyticsConfiguration is a required field + AnalyticsConfiguration *AnalyticsConfiguration `locationName:"AnalyticsConfiguration" type:"structure" required:"true"` + + // The name of the bucket to which an analytics configuration is stored. + // + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // The identifier used to represent an analytics configuration. + // + // Id is a required field + Id *string `location:"querystring" locationName:"id" type:"string" required:"true"` +} + +// String returns the string representation +func (s PutBucketAnalyticsConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutBucketAnalyticsConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutBucketAnalyticsConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutBucketAnalyticsConfigurationInput"} + if s.AnalyticsConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("AnalyticsConfiguration")) + } + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.AnalyticsConfiguration != nil { + if err := s.AnalyticsConfiguration.Validate(); err != nil { + invalidParams.AddNested("AnalyticsConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAnalyticsConfiguration sets the AnalyticsConfiguration field's value. +func (s *PutBucketAnalyticsConfigurationInput) SetAnalyticsConfiguration(v *AnalyticsConfiguration) *PutBucketAnalyticsConfigurationInput { + s.AnalyticsConfiguration = v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *PutBucketAnalyticsConfigurationInput) SetBucket(v string) *PutBucketAnalyticsConfigurationInput { + s.Bucket = &v + return s +} + +// SetId sets the Id field's value. +func (s *PutBucketAnalyticsConfigurationInput) SetId(v string) *PutBucketAnalyticsConfigurationInput { + s.Id = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAnalyticsConfigurationOutput +type PutBucketAnalyticsConfigurationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutBucketAnalyticsConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutBucketAnalyticsConfigurationOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketCorsRequest type PutBucketCorsInput struct { _ struct{} `type:"structure" payload:"CORSConfiguration"` @@ -8219,6 +14210,19 @@ func (s *PutBucketCorsInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketCorsInput) SetBucket(v string) *PutBucketCorsInput { + s.Bucket = &v + return s +} + +// SetCORSConfiguration sets the CORSConfiguration field's value. +func (s *PutBucketCorsInput) SetCORSConfiguration(v *CORSConfiguration) *PutBucketCorsInput { + s.CORSConfiguration = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketCorsOutput type PutBucketCorsOutput struct { _ struct{} `type:"structure"` } @@ -8233,6 +14237,94 @@ func (s PutBucketCorsOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketInventoryConfigurationRequest +type PutBucketInventoryConfigurationInput struct { + _ struct{} `type:"structure" payload:"InventoryConfiguration"` + + // The name of the bucket where the inventory configuration will be stored. + // + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // The ID used to identify the inventory configuration. + // + // Id is a required field + Id *string `location:"querystring" locationName:"id" type:"string" required:"true"` + + // Specifies the inventory configuration. + // + // InventoryConfiguration is a required field + InventoryConfiguration *InventoryConfiguration `locationName:"InventoryConfiguration" type:"structure" required:"true"` +} + +// String returns the string representation +func (s PutBucketInventoryConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutBucketInventoryConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutBucketInventoryConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutBucketInventoryConfigurationInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.InventoryConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("InventoryConfiguration")) + } + if s.InventoryConfiguration != nil { + if err := s.InventoryConfiguration.Validate(); err != nil { + invalidParams.AddNested("InventoryConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *PutBucketInventoryConfigurationInput) SetBucket(v string) *PutBucketInventoryConfigurationInput { + s.Bucket = &v + return s +} + +// SetId sets the Id field's value. +func (s *PutBucketInventoryConfigurationInput) SetId(v string) *PutBucketInventoryConfigurationInput { + s.Id = &v + return s +} + +// SetInventoryConfiguration sets the InventoryConfiguration field's value. +func (s *PutBucketInventoryConfigurationInput) SetInventoryConfiguration(v *InventoryConfiguration) *PutBucketInventoryConfigurationInput { + s.InventoryConfiguration = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketInventoryConfigurationOutput +type PutBucketInventoryConfigurationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutBucketInventoryConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutBucketInventoryConfigurationOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycleConfigurationRequest type PutBucketLifecycleConfigurationInput struct { _ struct{} `type:"structure" payload:"LifecycleConfiguration"` @@ -8270,6 +14362,19 @@ func (s *PutBucketLifecycleConfigurationInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketLifecycleConfigurationInput) SetBucket(v string) *PutBucketLifecycleConfigurationInput { + s.Bucket = &v + return s +} + +// SetLifecycleConfiguration sets the LifecycleConfiguration field's value. +func (s *PutBucketLifecycleConfigurationInput) SetLifecycleConfiguration(v *BucketLifecycleConfiguration) *PutBucketLifecycleConfigurationInput { + s.LifecycleConfiguration = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycleConfigurationOutput type PutBucketLifecycleConfigurationOutput struct { _ struct{} `type:"structure"` } @@ -8284,6 +14389,7 @@ func (s PutBucketLifecycleConfigurationOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycleRequest type PutBucketLifecycleInput struct { _ struct{} `type:"structure" payload:"LifecycleConfiguration"` @@ -8321,6 +14427,19 @@ func (s *PutBucketLifecycleInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketLifecycleInput) SetBucket(v string) *PutBucketLifecycleInput { + s.Bucket = &v + return s +} + +// SetLifecycleConfiguration sets the LifecycleConfiguration field's value. +func (s *PutBucketLifecycleInput) SetLifecycleConfiguration(v *LifecycleConfiguration) *PutBucketLifecycleInput { + s.LifecycleConfiguration = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycleOutput type PutBucketLifecycleOutput struct { _ struct{} `type:"structure"` } @@ -8335,6 +14454,7 @@ func (s PutBucketLifecycleOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLoggingRequest type PutBucketLoggingInput struct { _ struct{} `type:"structure" payload:"BucketLoggingStatus"` @@ -8370,26 +14490,127 @@ func (s *PutBucketLoggingInput) Validate() error { } } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *PutBucketLoggingInput) SetBucket(v string) *PutBucketLoggingInput { + s.Bucket = &v + return s +} + +// SetBucketLoggingStatus sets the BucketLoggingStatus field's value. +func (s *PutBucketLoggingInput) SetBucketLoggingStatus(v *BucketLoggingStatus) *PutBucketLoggingInput { + s.BucketLoggingStatus = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLoggingOutput +type PutBucketLoggingOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutBucketLoggingOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutBucketLoggingOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketMetricsConfigurationRequest +type PutBucketMetricsConfigurationInput struct { + _ struct{} `type:"structure" payload:"MetricsConfiguration"` + + // The name of the bucket for which the metrics configuration is set. + // + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // The ID used to identify the metrics configuration. + // + // Id is a required field + Id *string `location:"querystring" locationName:"id" type:"string" required:"true"` + + // Specifies the metrics configuration. + // + // MetricsConfiguration is a required field + MetricsConfiguration *MetricsConfiguration `locationName:"MetricsConfiguration" type:"structure" required:"true"` +} + +// String returns the string representation +func (s PutBucketMetricsConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutBucketMetricsConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutBucketMetricsConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutBucketMetricsConfigurationInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.MetricsConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("MetricsConfiguration")) + } + if s.MetricsConfiguration != nil { + if err := s.MetricsConfiguration.Validate(); err != nil { + invalidParams.AddNested("MetricsConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *PutBucketMetricsConfigurationInput) SetBucket(v string) *PutBucketMetricsConfigurationInput { + s.Bucket = &v + return s +} + +// SetId sets the Id field's value. +func (s *PutBucketMetricsConfigurationInput) SetId(v string) *PutBucketMetricsConfigurationInput { + s.Id = &v + return s +} + +// SetMetricsConfiguration sets the MetricsConfiguration field's value. +func (s *PutBucketMetricsConfigurationInput) SetMetricsConfiguration(v *MetricsConfiguration) *PutBucketMetricsConfigurationInput { + s.MetricsConfiguration = v + return s } -type PutBucketLoggingOutput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketMetricsConfigurationOutput +type PutBucketMetricsConfigurationOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s PutBucketLoggingOutput) String() string { +func (s PutBucketMetricsConfigurationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutBucketLoggingOutput) GoString() string { +func (s PutBucketMetricsConfigurationOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketNotificationConfigurationRequest type PutBucketNotificationConfigurationInput struct { _ struct{} `type:"structure" payload:"NotificationConfiguration"` @@ -8434,6 +14655,19 @@ func (s *PutBucketNotificationConfigurationInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketNotificationConfigurationInput) SetBucket(v string) *PutBucketNotificationConfigurationInput { + s.Bucket = &v + return s +} + +// SetNotificationConfiguration sets the NotificationConfiguration field's value. +func (s *PutBucketNotificationConfigurationInput) SetNotificationConfiguration(v *NotificationConfiguration) *PutBucketNotificationConfigurationInput { + s.NotificationConfiguration = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketNotificationConfigurationOutput type PutBucketNotificationConfigurationOutput struct { _ struct{} `type:"structure"` } @@ -8448,6 +14682,7 @@ func (s PutBucketNotificationConfigurationOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketNotificationRequest type PutBucketNotificationInput struct { _ struct{} `type:"structure" payload:"NotificationConfiguration"` @@ -8484,6 +14719,19 @@ func (s *PutBucketNotificationInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketNotificationInput) SetBucket(v string) *PutBucketNotificationInput { + s.Bucket = &v + return s +} + +// SetNotificationConfiguration sets the NotificationConfiguration field's value. +func (s *PutBucketNotificationInput) SetNotificationConfiguration(v *NotificationConfigurationDeprecated) *PutBucketNotificationInput { + s.NotificationConfiguration = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketNotificationOutput type PutBucketNotificationOutput struct { _ struct{} `type:"structure"` } @@ -8498,6 +14746,7 @@ func (s PutBucketNotificationOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketPolicyRequest type PutBucketPolicyInput struct { _ struct{} `type:"structure" payload:"Policy"` @@ -8536,6 +14785,19 @@ func (s *PutBucketPolicyInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketPolicyInput) SetBucket(v string) *PutBucketPolicyInput { + s.Bucket = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *PutBucketPolicyInput) SetPolicy(v string) *PutBucketPolicyInput { + s.Policy = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketPolicyOutput type PutBucketPolicyOutput struct { _ struct{} `type:"structure"` } @@ -8550,6 +14812,7 @@ func (s PutBucketPolicyOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketReplicationRequest type PutBucketReplicationInput struct { _ struct{} `type:"structure" payload:"ReplicationConfiguration"` @@ -8594,6 +14857,19 @@ func (s *PutBucketReplicationInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketReplicationInput) SetBucket(v string) *PutBucketReplicationInput { + s.Bucket = &v + return s +} + +// SetReplicationConfiguration sets the ReplicationConfiguration field's value. +func (s *PutBucketReplicationInput) SetReplicationConfiguration(v *ReplicationConfiguration) *PutBucketReplicationInput { + s.ReplicationConfiguration = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketReplicationOutput type PutBucketReplicationOutput struct { _ struct{} `type:"structure"` } @@ -8608,6 +14884,7 @@ func (s PutBucketReplicationOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketRequestPaymentRequest type PutBucketRequestPaymentInput struct { _ struct{} `type:"structure" payload:"RequestPaymentConfiguration"` @@ -8649,6 +14926,19 @@ func (s *PutBucketRequestPaymentInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketRequestPaymentInput) SetBucket(v string) *PutBucketRequestPaymentInput { + s.Bucket = &v + return s +} + +// SetRequestPaymentConfiguration sets the RequestPaymentConfiguration field's value. +func (s *PutBucketRequestPaymentInput) SetRequestPaymentConfiguration(v *RequestPaymentConfiguration) *PutBucketRequestPaymentInput { + s.RequestPaymentConfiguration = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketRequestPaymentOutput type PutBucketRequestPaymentOutput struct { _ struct{} `type:"structure"` } @@ -8663,6 +14953,7 @@ func (s PutBucketRequestPaymentOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketTaggingRequest type PutBucketTaggingInput struct { _ struct{} `type:"structure" payload:"Tagging"` @@ -8704,6 +14995,19 @@ func (s *PutBucketTaggingInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketTaggingInput) SetBucket(v string) *PutBucketTaggingInput { + s.Bucket = &v + return s +} + +// SetTagging sets the Tagging field's value. +func (s *PutBucketTaggingInput) SetTagging(v *Tagging) *PutBucketTaggingInput { + s.Tagging = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketTaggingOutput type PutBucketTaggingOutput struct { _ struct{} `type:"structure"` } @@ -8718,6 +15022,7 @@ func (s PutBucketTaggingOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketVersioningRequest type PutBucketVersioningInput struct { _ struct{} `type:"structure" payload:"VersioningConfiguration"` @@ -8758,6 +15063,25 @@ func (s *PutBucketVersioningInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketVersioningInput) SetBucket(v string) *PutBucketVersioningInput { + s.Bucket = &v + return s +} + +// SetMFA sets the MFA field's value. +func (s *PutBucketVersioningInput) SetMFA(v string) *PutBucketVersioningInput { + s.MFA = &v + return s +} + +// SetVersioningConfiguration sets the VersioningConfiguration field's value. +func (s *PutBucketVersioningInput) SetVersioningConfiguration(v *VersioningConfiguration) *PutBucketVersioningInput { + s.VersioningConfiguration = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketVersioningOutput type PutBucketVersioningOutput struct { _ struct{} `type:"structure"` } @@ -8772,6 +15096,7 @@ func (s PutBucketVersioningOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketWebsiteRequest type PutBucketWebsiteInput struct { _ struct{} `type:"structure" payload:"WebsiteConfiguration"` @@ -8813,6 +15138,19 @@ func (s *PutBucketWebsiteInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *PutBucketWebsiteInput) SetBucket(v string) *PutBucketWebsiteInput { + s.Bucket = &v + return s +} + +// SetWebsiteConfiguration sets the WebsiteConfiguration field's value. +func (s *PutBucketWebsiteInput) SetWebsiteConfiguration(v *WebsiteConfiguration) *PutBucketWebsiteInput { + s.WebsiteConfiguration = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketWebsiteOutput type PutBucketWebsiteOutput struct { _ struct{} `type:"structure"` } @@ -8827,6 +15165,7 @@ func (s PutBucketWebsiteOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectAclRequest type PutObjectAclInput struct { _ struct{} `type:"structure" payload:"AccessControlPolicy"` @@ -8901,6 +15240,73 @@ func (s *PutObjectAclInput) Validate() error { return nil } +// SetACL sets the ACL field's value. +func (s *PutObjectAclInput) SetACL(v string) *PutObjectAclInput { + s.ACL = &v + return s +} + +// SetAccessControlPolicy sets the AccessControlPolicy field's value. +func (s *PutObjectAclInput) SetAccessControlPolicy(v *AccessControlPolicy) *PutObjectAclInput { + s.AccessControlPolicy = v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *PutObjectAclInput) SetBucket(v string) *PutObjectAclInput { + s.Bucket = &v + return s +} + +// SetGrantFullControl sets the GrantFullControl field's value. +func (s *PutObjectAclInput) SetGrantFullControl(v string) *PutObjectAclInput { + s.GrantFullControl = &v + return s +} + +// SetGrantRead sets the GrantRead field's value. +func (s *PutObjectAclInput) SetGrantRead(v string) *PutObjectAclInput { + s.GrantRead = &v + return s +} + +// SetGrantReadACP sets the GrantReadACP field's value. +func (s *PutObjectAclInput) SetGrantReadACP(v string) *PutObjectAclInput { + s.GrantReadACP = &v + return s +} + +// SetGrantWrite sets the GrantWrite field's value. +func (s *PutObjectAclInput) SetGrantWrite(v string) *PutObjectAclInput { + s.GrantWrite = &v + return s +} + +// SetGrantWriteACP sets the GrantWriteACP field's value. +func (s *PutObjectAclInput) SetGrantWriteACP(v string) *PutObjectAclInput { + s.GrantWriteACP = &v + return s +} + +// SetKey sets the Key field's value. +func (s *PutObjectAclInput) SetKey(v string) *PutObjectAclInput { + s.Key = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *PutObjectAclInput) SetRequestPayer(v string) *PutObjectAclInput { + s.RequestPayer = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *PutObjectAclInput) SetVersionId(v string) *PutObjectAclInput { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectAclOutput type PutObjectAclOutput struct { _ struct{} `type:"structure"` @@ -8919,6 +15325,13 @@ func (s PutObjectAclOutput) GoString() string { return s.String() } +// SetRequestCharged sets the RequestCharged field's value. +func (s *PutObjectAclOutput) SetRequestCharged(v string) *PutObjectAclOutput { + s.RequestCharged = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectRequest type PutObjectInput struct { _ struct{} `type:"structure" payload:"Body"` @@ -9011,6 +15424,9 @@ type PutObjectInput struct { // The type of storage to use for the object. Defaults to 'STANDARD'. StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"` + // The tag-set for the object. The tag-set must be encoded as URL Query parameters + Tagging *string `location:"header" locationName:"x-amz-tagging" type:"string"` + // If the bucket is configured as a website, redirects requests for this object // to another object in the same bucket or to an external URL. Amazon S3 stores // the value of this header in the object metadata. @@ -9046,6 +15462,157 @@ func (s *PutObjectInput) Validate() error { return nil } +// SetACL sets the ACL field's value. +func (s *PutObjectInput) SetACL(v string) *PutObjectInput { + s.ACL = &v + return s +} + +// SetBody sets the Body field's value. +func (s *PutObjectInput) SetBody(v io.ReadSeeker) *PutObjectInput { + s.Body = v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *PutObjectInput) SetBucket(v string) *PutObjectInput { + s.Bucket = &v + return s +} + +// SetCacheControl sets the CacheControl field's value. +func (s *PutObjectInput) SetCacheControl(v string) *PutObjectInput { + s.CacheControl = &v + return s +} + +// SetContentDisposition sets the ContentDisposition field's value. +func (s *PutObjectInput) SetContentDisposition(v string) *PutObjectInput { + s.ContentDisposition = &v + return s +} + +// SetContentEncoding sets the ContentEncoding field's value. +func (s *PutObjectInput) SetContentEncoding(v string) *PutObjectInput { + s.ContentEncoding = &v + return s +} + +// SetContentLanguage sets the ContentLanguage field's value. +func (s *PutObjectInput) SetContentLanguage(v string) *PutObjectInput { + s.ContentLanguage = &v + return s +} + +// SetContentLength sets the ContentLength field's value. +func (s *PutObjectInput) SetContentLength(v int64) *PutObjectInput { + s.ContentLength = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *PutObjectInput) SetContentType(v string) *PutObjectInput { + s.ContentType = &v + return s +} + +// SetExpires sets the Expires field's value. +func (s *PutObjectInput) SetExpires(v time.Time) *PutObjectInput { + s.Expires = &v + return s +} + +// SetGrantFullControl sets the GrantFullControl field's value. +func (s *PutObjectInput) SetGrantFullControl(v string) *PutObjectInput { + s.GrantFullControl = &v + return s +} + +// SetGrantRead sets the GrantRead field's value. +func (s *PutObjectInput) SetGrantRead(v string) *PutObjectInput { + s.GrantRead = &v + return s +} + +// SetGrantReadACP sets the GrantReadACP field's value. +func (s *PutObjectInput) SetGrantReadACP(v string) *PutObjectInput { + s.GrantReadACP = &v + return s +} + +// SetGrantWriteACP sets the GrantWriteACP field's value. +func (s *PutObjectInput) SetGrantWriteACP(v string) *PutObjectInput { + s.GrantWriteACP = &v + return s +} + +// SetKey sets the Key field's value. +func (s *PutObjectInput) SetKey(v string) *PutObjectInput { + s.Key = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *PutObjectInput) SetMetadata(v map[string]*string) *PutObjectInput { + s.Metadata = v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *PutObjectInput) SetRequestPayer(v string) *PutObjectInput { + s.RequestPayer = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *PutObjectInput) SetSSECustomerAlgorithm(v string) *PutObjectInput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKey sets the SSECustomerKey field's value. +func (s *PutObjectInput) SetSSECustomerKey(v string) *PutObjectInput { + s.SSECustomerKey = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *PutObjectInput) SetSSECustomerKeyMD5(v string) *PutObjectInput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *PutObjectInput) SetSSEKMSKeyId(v string) *PutObjectInput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *PutObjectInput) SetServerSideEncryption(v string) *PutObjectInput { + s.ServerSideEncryption = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *PutObjectInput) SetStorageClass(v string) *PutObjectInput { + s.StorageClass = &v + return s +} + +// SetTagging sets the Tagging field's value. +func (s *PutObjectInput) SetTagging(v string) *PutObjectInput { + s.Tagging = &v + return s +} + +// SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value. +func (s *PutObjectInput) SetWebsiteRedirectLocation(v string) *PutObjectInput { + s.WebsiteRedirectLocation = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectOutput type PutObjectOutput struct { _ struct{} `type:"structure"` @@ -9092,8 +15659,157 @@ func (s PutObjectOutput) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *PutObjectOutput) SetETag(v string) *PutObjectOutput { + s.ETag = &v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *PutObjectOutput) SetExpiration(v string) *PutObjectOutput { + s.Expiration = &v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *PutObjectOutput) SetRequestCharged(v string) *PutObjectOutput { + s.RequestCharged = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *PutObjectOutput) SetSSECustomerAlgorithm(v string) *PutObjectOutput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *PutObjectOutput) SetSSECustomerKeyMD5(v string) *PutObjectOutput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *PutObjectOutput) SetSSEKMSKeyId(v string) *PutObjectOutput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *PutObjectOutput) SetServerSideEncryption(v string) *PutObjectOutput { + s.ServerSideEncryption = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *PutObjectOutput) SetVersionId(v string) *PutObjectOutput { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectTaggingRequest +type PutObjectTaggingInput struct { + _ struct{} `type:"structure" payload:"Tagging"` + + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // Key is a required field + Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` + + // Tagging is a required field + Tagging *Tagging `locationName:"Tagging" type:"structure" required:"true"` + + VersionId *string `location:"querystring" locationName:"versionId" type:"string"` +} + +// String returns the string representation +func (s PutObjectTaggingInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutObjectTaggingInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutObjectTaggingInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutObjectTaggingInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + if s.Tagging == nil { + invalidParams.Add(request.NewErrParamRequired("Tagging")) + } + if s.Tagging != nil { + if err := s.Tagging.Validate(); err != nil { + invalidParams.AddNested("Tagging", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *PutObjectTaggingInput) SetBucket(v string) *PutObjectTaggingInput { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *PutObjectTaggingInput) SetKey(v string) *PutObjectTaggingInput { + s.Key = &v + return s +} + +// SetTagging sets the Tagging field's value. +func (s *PutObjectTaggingInput) SetTagging(v *Tagging) *PutObjectTaggingInput { + s.Tagging = v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *PutObjectTaggingInput) SetVersionId(v string) *PutObjectTaggingInput { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectTaggingOutput +type PutObjectTaggingOutput struct { + _ struct{} `type:"structure"` + + VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"` +} + +// String returns the string representation +func (s PutObjectTaggingOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutObjectTaggingOutput) GoString() string { + return s.String() +} + +// SetVersionId sets the VersionId field's value. +func (s *PutObjectTaggingOutput) SetVersionId(v string) *PutObjectTaggingOutput { + s.VersionId = &v + return s +} + // Container for specifying an configuration when you want Amazon S3 to publish // events to an Amazon Simple Queue Service (Amazon SQS) queue. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/QueueConfiguration type QueueConfiguration struct { _ struct{} `type:"structure"` @@ -9102,7 +15818,6 @@ type QueueConfiguration struct { // Container for object key name filtering rules. For information about key // name filtering, go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) - // in the Amazon Simple Storage Service Developer Guide. Filter *NotificationConfigurationFilter `type:"structure"` // Optional unique identifier for configurations in a notification configuration. @@ -9142,6 +15857,31 @@ func (s *QueueConfiguration) Validate() error { return nil } +// SetEvents sets the Events field's value. +func (s *QueueConfiguration) SetEvents(v []*string) *QueueConfiguration { + s.Events = v + return s +} + +// SetFilter sets the Filter field's value. +func (s *QueueConfiguration) SetFilter(v *NotificationConfigurationFilter) *QueueConfiguration { + s.Filter = v + return s +} + +// SetId sets the Id field's value. +func (s *QueueConfiguration) SetId(v string) *QueueConfiguration { + s.Id = &v + return s +} + +// SetQueueArn sets the QueueArn field's value. +func (s *QueueConfiguration) SetQueueArn(v string) *QueueConfiguration { + s.QueueArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/QueueConfigurationDeprecated type QueueConfigurationDeprecated struct { _ struct{} `type:"structure"` @@ -9167,6 +15907,31 @@ func (s QueueConfigurationDeprecated) GoString() string { return s.String() } +// SetEvent sets the Event field's value. +func (s *QueueConfigurationDeprecated) SetEvent(v string) *QueueConfigurationDeprecated { + s.Event = &v + return s +} + +// SetEvents sets the Events field's value. +func (s *QueueConfigurationDeprecated) SetEvents(v []*string) *QueueConfigurationDeprecated { + s.Events = v + return s +} + +// SetId sets the Id field's value. +func (s *QueueConfigurationDeprecated) SetId(v string) *QueueConfigurationDeprecated { + s.Id = &v + return s +} + +// SetQueue sets the Queue field's value. +func (s *QueueConfigurationDeprecated) SetQueue(v string) *QueueConfigurationDeprecated { + s.Queue = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Redirect type Redirect struct { _ struct{} `type:"structure"` @@ -9205,6 +15970,37 @@ func (s Redirect) GoString() string { return s.String() } +// SetHostName sets the HostName field's value. +func (s *Redirect) SetHostName(v string) *Redirect { + s.HostName = &v + return s +} + +// SetHttpRedirectCode sets the HttpRedirectCode field's value. +func (s *Redirect) SetHttpRedirectCode(v string) *Redirect { + s.HttpRedirectCode = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *Redirect) SetProtocol(v string) *Redirect { + s.Protocol = &v + return s +} + +// SetReplaceKeyPrefixWith sets the ReplaceKeyPrefixWith field's value. +func (s *Redirect) SetReplaceKeyPrefixWith(v string) *Redirect { + s.ReplaceKeyPrefixWith = &v + return s +} + +// SetReplaceKeyWith sets the ReplaceKeyWith field's value. +func (s *Redirect) SetReplaceKeyWith(v string) *Redirect { + s.ReplaceKeyWith = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RedirectAllRequestsTo type RedirectAllRequestsTo struct { _ struct{} `type:"structure"` @@ -9241,8 +16037,21 @@ func (s *RedirectAllRequestsTo) Validate() error { return nil } +// SetHostName sets the HostName field's value. +func (s *RedirectAllRequestsTo) SetHostName(v string) *RedirectAllRequestsTo { + s.HostName = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *RedirectAllRequestsTo) SetProtocol(v string) *RedirectAllRequestsTo { + s.Protocol = &v + return s +} + // Container for replication rules. You can add as many as 1,000 rules. Total // replication configuration size can be up to 2 MB. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ReplicationConfiguration type ReplicationConfiguration struct { _ struct{} `type:"structure"` @@ -9295,6 +16104,19 @@ func (s *ReplicationConfiguration) Validate() error { return nil } +// SetRole sets the Role field's value. +func (s *ReplicationConfiguration) SetRole(v string) *ReplicationConfiguration { + s.Role = &v + return s +} + +// SetRules sets the Rules field's value. +func (s *ReplicationConfiguration) SetRules(v []*ReplicationRule) *ReplicationConfiguration { + s.Rules = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ReplicationRule type ReplicationRule struct { _ struct{} `type:"structure"` @@ -9351,6 +16173,31 @@ func (s *ReplicationRule) Validate() error { return nil } +// SetDestination sets the Destination field's value. +func (s *ReplicationRule) SetDestination(v *Destination) *ReplicationRule { + s.Destination = v + return s +} + +// SetID sets the ID field's value. +func (s *ReplicationRule) SetID(v string) *ReplicationRule { + s.ID = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ReplicationRule) SetPrefix(v string) *ReplicationRule { + s.Prefix = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ReplicationRule) SetStatus(v string) *ReplicationRule { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RequestPaymentConfiguration type RequestPaymentConfiguration struct { _ struct{} `type:"structure"` @@ -9383,6 +16230,13 @@ func (s *RequestPaymentConfiguration) Validate() error { return nil } +// SetPayer sets the Payer field's value. +func (s *RequestPaymentConfiguration) SetPayer(v string) *RequestPaymentConfiguration { + s.Payer = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RestoreObjectRequest type RestoreObjectInput struct { _ struct{} `type:"structure" payload:"RestoreRequest"` @@ -9431,12 +16285,43 @@ func (s *RestoreObjectInput) Validate() error { } } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *RestoreObjectInput) SetBucket(v string) *RestoreObjectInput { + s.Bucket = &v + return s +} + +// SetKey sets the Key field's value. +func (s *RestoreObjectInput) SetKey(v string) *RestoreObjectInput { + s.Key = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *RestoreObjectInput) SetRequestPayer(v string) *RestoreObjectInput { + s.RequestPayer = &v + return s +} + +// SetRestoreRequest sets the RestoreRequest field's value. +func (s *RestoreObjectInput) SetRestoreRequest(v *RestoreRequest) *RestoreObjectInput { + s.RestoreRequest = v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *RestoreObjectInput) SetVersionId(v string) *RestoreObjectInput { + s.VersionId = &v + return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RestoreObjectOutput type RestoreObjectOutput struct { _ struct{} `type:"structure"` @@ -9455,6 +16340,13 @@ func (s RestoreObjectOutput) GoString() string { return s.String() } +// SetRequestCharged sets the RequestCharged field's value. +func (s *RestoreObjectOutput) SetRequestCharged(v string) *RestoreObjectOutput { + s.RequestCharged = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RestoreRequest type RestoreRequest struct { _ struct{} `type:"structure"` @@ -9462,6 +16354,9 @@ type RestoreRequest struct { // // Days is a required field Days *int64 `type:"integer" required:"true"` + + // Glacier related prameters pertaining to this job. + GlacierJobParameters *GlacierJobParameters `type:"structure"` } // String returns the string representation @@ -9480,6 +16375,11 @@ func (s *RestoreRequest) Validate() error { if s.Days == nil { invalidParams.Add(request.NewErrParamRequired("Days")) } + if s.GlacierJobParameters != nil { + if err := s.GlacierJobParameters.Validate(); err != nil { + invalidParams.AddNested("GlacierJobParameters", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -9487,6 +16387,19 @@ func (s *RestoreRequest) Validate() error { return nil } +// SetDays sets the Days field's value. +func (s *RestoreRequest) SetDays(v int64) *RestoreRequest { + s.Days = &v + return s +} + +// SetGlacierJobParameters sets the GlacierJobParameters field's value. +func (s *RestoreRequest) SetGlacierJobParameters(v *GlacierJobParameters) *RestoreRequest { + s.GlacierJobParameters = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RoutingRule type RoutingRule struct { _ struct{} `type:"structure"` @@ -9527,6 +16440,19 @@ func (s *RoutingRule) Validate() error { return nil } +// SetCondition sets the Condition field's value. +func (s *RoutingRule) SetCondition(v *Condition) *RoutingRule { + s.Condition = v + return s +} + +// SetRedirect sets the Redirect field's value. +func (s *RoutingRule) SetRedirect(v *Redirect) *RoutingRule { + s.Redirect = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Rule type Rule struct { _ struct{} `type:"structure"` @@ -9593,6 +16519,153 @@ func (s *Rule) Validate() error { return nil } +// SetAbortIncompleteMultipartUpload sets the AbortIncompleteMultipartUpload field's value. +func (s *Rule) SetAbortIncompleteMultipartUpload(v *AbortIncompleteMultipartUpload) *Rule { + s.AbortIncompleteMultipartUpload = v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *Rule) SetExpiration(v *LifecycleExpiration) *Rule { + s.Expiration = v + return s +} + +// SetID sets the ID field's value. +func (s *Rule) SetID(v string) *Rule { + s.ID = &v + return s +} + +// SetNoncurrentVersionExpiration sets the NoncurrentVersionExpiration field's value. +func (s *Rule) SetNoncurrentVersionExpiration(v *NoncurrentVersionExpiration) *Rule { + s.NoncurrentVersionExpiration = v + return s +} + +// SetNoncurrentVersionTransition sets the NoncurrentVersionTransition field's value. +func (s *Rule) SetNoncurrentVersionTransition(v *NoncurrentVersionTransition) *Rule { + s.NoncurrentVersionTransition = v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *Rule) SetPrefix(v string) *Rule { + s.Prefix = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Rule) SetStatus(v string) *Rule { + s.Status = &v + return s +} + +// SetTransition sets the Transition field's value. +func (s *Rule) SetTransition(v *Transition) *Rule { + s.Transition = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/StorageClassAnalysis +type StorageClassAnalysis struct { + _ struct{} `type:"structure"` + + // A container used to describe how data related to the storage class analysis + // should be exported. + DataExport *StorageClassAnalysisDataExport `type:"structure"` +} + +// String returns the string representation +func (s StorageClassAnalysis) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StorageClassAnalysis) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StorageClassAnalysis) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StorageClassAnalysis"} + if s.DataExport != nil { + if err := s.DataExport.Validate(); err != nil { + invalidParams.AddNested("DataExport", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDataExport sets the DataExport field's value. +func (s *StorageClassAnalysis) SetDataExport(v *StorageClassAnalysisDataExport) *StorageClassAnalysis { + s.DataExport = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/StorageClassAnalysisDataExport +type StorageClassAnalysisDataExport struct { + _ struct{} `type:"structure"` + + // The place to store the data for an analysis. + // + // Destination is a required field + Destination *AnalyticsExportDestination `type:"structure" required:"true"` + + // The version of the output schema to use when exporting data. Must be V_1. + // + // OutputSchemaVersion is a required field + OutputSchemaVersion *string `type:"string" required:"true" enum:"StorageClassAnalysisSchemaVersion"` +} + +// String returns the string representation +func (s StorageClassAnalysisDataExport) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StorageClassAnalysisDataExport) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StorageClassAnalysisDataExport) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StorageClassAnalysisDataExport"} + if s.Destination == nil { + invalidParams.Add(request.NewErrParamRequired("Destination")) + } + if s.OutputSchemaVersion == nil { + invalidParams.Add(request.NewErrParamRequired("OutputSchemaVersion")) + } + if s.Destination != nil { + if err := s.Destination.Validate(); err != nil { + invalidParams.AddNested("Destination", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDestination sets the Destination field's value. +func (s *StorageClassAnalysisDataExport) SetDestination(v *AnalyticsExportDestination) *StorageClassAnalysisDataExport { + s.Destination = v + return s +} + +// SetOutputSchemaVersion sets the OutputSchemaVersion field's value. +func (s *StorageClassAnalysisDataExport) SetOutputSchemaVersion(v string) *StorageClassAnalysisDataExport { + s.OutputSchemaVersion = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Tag type Tag struct { _ struct{} `type:"structure"` @@ -9636,6 +16709,19 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Tagging type Tagging struct { _ struct{} `type:"structure"` @@ -9676,6 +16762,13 @@ func (s *Tagging) Validate() error { return nil } +// SetTagSet sets the TagSet field's value. +func (s *Tagging) SetTagSet(v []*Tag) *Tagging { + s.TagSet = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/TargetGrant type TargetGrant struct { _ struct{} `type:"structure"` @@ -9710,8 +16803,21 @@ func (s *TargetGrant) Validate() error { return nil } +// SetGrantee sets the Grantee field's value. +func (s *TargetGrant) SetGrantee(v *Grantee) *TargetGrant { + s.Grantee = v + return s +} + +// SetPermission sets the Permission field's value. +func (s *TargetGrant) SetPermission(v string) *TargetGrant { + s.Permission = &v + return s +} + // Container for specifying the configuration when you want Amazon S3 to publish // events to an Amazon Simple Notification Service (Amazon SNS) topic. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/TopicConfiguration type TopicConfiguration struct { _ struct{} `type:"structure"` @@ -9720,7 +16826,6 @@ type TopicConfiguration struct { // Container for object key name filtering rules. For information about key // name filtering, go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) - // in the Amazon Simple Storage Service Developer Guide. Filter *NotificationConfigurationFilter `type:"structure"` // Optional unique identifier for configurations in a notification configuration. @@ -9760,6 +16865,31 @@ func (s *TopicConfiguration) Validate() error { return nil } +// SetEvents sets the Events field's value. +func (s *TopicConfiguration) SetEvents(v []*string) *TopicConfiguration { + s.Events = v + return s +} + +// SetFilter sets the Filter field's value. +func (s *TopicConfiguration) SetFilter(v *NotificationConfigurationFilter) *TopicConfiguration { + s.Filter = v + return s +} + +// SetId sets the Id field's value. +func (s *TopicConfiguration) SetId(v string) *TopicConfiguration { + s.Id = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *TopicConfiguration) SetTopicArn(v string) *TopicConfiguration { + s.TopicArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/TopicConfigurationDeprecated type TopicConfigurationDeprecated struct { _ struct{} `type:"structure"` @@ -9787,6 +16917,31 @@ func (s TopicConfigurationDeprecated) GoString() string { return s.String() } +// SetEvent sets the Event field's value. +func (s *TopicConfigurationDeprecated) SetEvent(v string) *TopicConfigurationDeprecated { + s.Event = &v + return s +} + +// SetEvents sets the Events field's value. +func (s *TopicConfigurationDeprecated) SetEvents(v []*string) *TopicConfigurationDeprecated { + s.Events = v + return s +} + +// SetId sets the Id field's value. +func (s *TopicConfigurationDeprecated) SetId(v string) *TopicConfigurationDeprecated { + s.Id = &v + return s +} + +// SetTopic sets the Topic field's value. +func (s *TopicConfigurationDeprecated) SetTopic(v string) *TopicConfigurationDeprecated { + s.Topic = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Transition type Transition struct { _ struct{} `type:"structure"` @@ -9812,6 +16967,25 @@ func (s Transition) GoString() string { return s.String() } +// SetDate sets the Date field's value. +func (s *Transition) SetDate(v time.Time) *Transition { + s.Date = &v + return s +} + +// SetDays sets the Days field's value. +func (s *Transition) SetDays(v int64) *Transition { + s.Days = &v + return s +} + +// SetStorageClass sets the StorageClass field's value. +func (s *Transition) SetStorageClass(v string) *Transition { + s.StorageClass = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPartCopyRequest type UploadPartCopyInput struct { _ struct{} `type:"structure"` @@ -9932,6 +17106,109 @@ func (s *UploadPartCopyInput) Validate() error { return nil } +// SetBucket sets the Bucket field's value. +func (s *UploadPartCopyInput) SetBucket(v string) *UploadPartCopyInput { + s.Bucket = &v + return s +} + +// SetCopySource sets the CopySource field's value. +func (s *UploadPartCopyInput) SetCopySource(v string) *UploadPartCopyInput { + s.CopySource = &v + return s +} + +// SetCopySourceIfMatch sets the CopySourceIfMatch field's value. +func (s *UploadPartCopyInput) SetCopySourceIfMatch(v string) *UploadPartCopyInput { + s.CopySourceIfMatch = &v + return s +} + +// SetCopySourceIfModifiedSince sets the CopySourceIfModifiedSince field's value. +func (s *UploadPartCopyInput) SetCopySourceIfModifiedSince(v time.Time) *UploadPartCopyInput { + s.CopySourceIfModifiedSince = &v + return s +} + +// SetCopySourceIfNoneMatch sets the CopySourceIfNoneMatch field's value. +func (s *UploadPartCopyInput) SetCopySourceIfNoneMatch(v string) *UploadPartCopyInput { + s.CopySourceIfNoneMatch = &v + return s +} + +// SetCopySourceIfUnmodifiedSince sets the CopySourceIfUnmodifiedSince field's value. +func (s *UploadPartCopyInput) SetCopySourceIfUnmodifiedSince(v time.Time) *UploadPartCopyInput { + s.CopySourceIfUnmodifiedSince = &v + return s +} + +// SetCopySourceRange sets the CopySourceRange field's value. +func (s *UploadPartCopyInput) SetCopySourceRange(v string) *UploadPartCopyInput { + s.CopySourceRange = &v + return s +} + +// SetCopySourceSSECustomerAlgorithm sets the CopySourceSSECustomerAlgorithm field's value. +func (s *UploadPartCopyInput) SetCopySourceSSECustomerAlgorithm(v string) *UploadPartCopyInput { + s.CopySourceSSECustomerAlgorithm = &v + return s +} + +// SetCopySourceSSECustomerKey sets the CopySourceSSECustomerKey field's value. +func (s *UploadPartCopyInput) SetCopySourceSSECustomerKey(v string) *UploadPartCopyInput { + s.CopySourceSSECustomerKey = &v + return s +} + +// SetCopySourceSSECustomerKeyMD5 sets the CopySourceSSECustomerKeyMD5 field's value. +func (s *UploadPartCopyInput) SetCopySourceSSECustomerKeyMD5(v string) *UploadPartCopyInput { + s.CopySourceSSECustomerKeyMD5 = &v + return s +} + +// SetKey sets the Key field's value. +func (s *UploadPartCopyInput) SetKey(v string) *UploadPartCopyInput { + s.Key = &v + return s +} + +// SetPartNumber sets the PartNumber field's value. +func (s *UploadPartCopyInput) SetPartNumber(v int64) *UploadPartCopyInput { + s.PartNumber = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *UploadPartCopyInput) SetRequestPayer(v string) *UploadPartCopyInput { + s.RequestPayer = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *UploadPartCopyInput) SetSSECustomerAlgorithm(v string) *UploadPartCopyInput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKey sets the SSECustomerKey field's value. +func (s *UploadPartCopyInput) SetSSECustomerKey(v string) *UploadPartCopyInput { + s.SSECustomerKey = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *UploadPartCopyInput) SetSSECustomerKeyMD5(v string) *UploadPartCopyInput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *UploadPartCopyInput) SetUploadId(v string) *UploadPartCopyInput { + s.UploadId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPartCopyOutput type UploadPartCopyOutput struct { _ struct{} `type:"structure" payload:"CopyPartResult"` @@ -9974,6 +17251,49 @@ func (s UploadPartCopyOutput) GoString() string { return s.String() } +// SetCopyPartResult sets the CopyPartResult field's value. +func (s *UploadPartCopyOutput) SetCopyPartResult(v *CopyPartResult) *UploadPartCopyOutput { + s.CopyPartResult = v + return s +} + +// SetCopySourceVersionId sets the CopySourceVersionId field's value. +func (s *UploadPartCopyOutput) SetCopySourceVersionId(v string) *UploadPartCopyOutput { + s.CopySourceVersionId = &v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *UploadPartCopyOutput) SetRequestCharged(v string) *UploadPartCopyOutput { + s.RequestCharged = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *UploadPartCopyOutput) SetSSECustomerAlgorithm(v string) *UploadPartCopyOutput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *UploadPartCopyOutput) SetSSECustomerKeyMD5(v string) *UploadPartCopyOutput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *UploadPartCopyOutput) SetSSEKMSKeyId(v string) *UploadPartCopyOutput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *UploadPartCopyOutput) SetServerSideEncryption(v string) *UploadPartCopyOutput { + s.ServerSideEncryption = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPartRequest type UploadPartInput struct { _ struct{} `type:"structure" payload:"Body"` @@ -10063,6 +17383,67 @@ func (s *UploadPartInput) Validate() error { return nil } +// SetBody sets the Body field's value. +func (s *UploadPartInput) SetBody(v io.ReadSeeker) *UploadPartInput { + s.Body = v + return s +} + +// SetBucket sets the Bucket field's value. +func (s *UploadPartInput) SetBucket(v string) *UploadPartInput { + s.Bucket = &v + return s +} + +// SetContentLength sets the ContentLength field's value. +func (s *UploadPartInput) SetContentLength(v int64) *UploadPartInput { + s.ContentLength = &v + return s +} + +// SetKey sets the Key field's value. +func (s *UploadPartInput) SetKey(v string) *UploadPartInput { + s.Key = &v + return s +} + +// SetPartNumber sets the PartNumber field's value. +func (s *UploadPartInput) SetPartNumber(v int64) *UploadPartInput { + s.PartNumber = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *UploadPartInput) SetRequestPayer(v string) *UploadPartInput { + s.RequestPayer = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *UploadPartInput) SetSSECustomerAlgorithm(v string) *UploadPartInput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKey sets the SSECustomerKey field's value. +func (s *UploadPartInput) SetSSECustomerKey(v string) *UploadPartInput { + s.SSECustomerKey = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *UploadPartInput) SetSSECustomerKeyMD5(v string) *UploadPartInput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetUploadId sets the UploadId field's value. +func (s *UploadPartInput) SetUploadId(v string) *UploadPartInput { + s.UploadId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPartOutput type UploadPartOutput struct { _ struct{} `type:"structure"` @@ -10102,6 +17483,43 @@ func (s UploadPartOutput) GoString() string { return s.String() } +// SetETag sets the ETag field's value. +func (s *UploadPartOutput) SetETag(v string) *UploadPartOutput { + s.ETag = &v + return s +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *UploadPartOutput) SetRequestCharged(v string) *UploadPartOutput { + s.RequestCharged = &v + return s +} + +// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. +func (s *UploadPartOutput) SetSSECustomerAlgorithm(v string) *UploadPartOutput { + s.SSECustomerAlgorithm = &v + return s +} + +// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. +func (s *UploadPartOutput) SetSSECustomerKeyMD5(v string) *UploadPartOutput { + s.SSECustomerKeyMD5 = &v + return s +} + +// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. +func (s *UploadPartOutput) SetSSEKMSKeyId(v string) *UploadPartOutput { + s.SSEKMSKeyId = &v + return s +} + +// SetServerSideEncryption sets the ServerSideEncryption field's value. +func (s *UploadPartOutput) SetServerSideEncryption(v string) *UploadPartOutput { + s.ServerSideEncryption = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/VersioningConfiguration type VersioningConfiguration struct { _ struct{} `type:"structure"` @@ -10124,6 +17542,19 @@ func (s VersioningConfiguration) GoString() string { return s.String() } +// SetMFADelete sets the MFADelete field's value. +func (s *VersioningConfiguration) SetMFADelete(v string) *VersioningConfiguration { + s.MFADelete = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *VersioningConfiguration) SetStatus(v string) *VersioningConfiguration { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/WebsiteConfiguration type WebsiteConfiguration struct { _ struct{} `type:"structure"` @@ -10181,6 +17612,35 @@ func (s *WebsiteConfiguration) Validate() error { return nil } +// SetErrorDocument sets the ErrorDocument field's value. +func (s *WebsiteConfiguration) SetErrorDocument(v *ErrorDocument) *WebsiteConfiguration { + s.ErrorDocument = v + return s +} + +// SetIndexDocument sets the IndexDocument field's value. +func (s *WebsiteConfiguration) SetIndexDocument(v *IndexDocument) *WebsiteConfiguration { + s.IndexDocument = v + return s +} + +// SetRedirectAllRequestsTo sets the RedirectAllRequestsTo field's value. +func (s *WebsiteConfiguration) SetRedirectAllRequestsTo(v *RedirectAllRequestsTo) *WebsiteConfiguration { + s.RedirectAllRequestsTo = v + return s +} + +// SetRoutingRules sets the RoutingRules field's value. +func (s *WebsiteConfiguration) SetRoutingRules(v []*RoutingRule) *WebsiteConfiguration { + s.RoutingRules = v + return s +} + +const ( + // AnalyticsS3ExportFileFormatCsv is a AnalyticsS3ExportFileFormat enum value + AnalyticsS3ExportFileFormatCsv = "CSV" +) + const ( // BucketAccelerateStatusEnabled is a BucketAccelerateStatus enum value BucketAccelerateStatusEnabled = "Enabled" @@ -10314,6 +17774,47 @@ const ( FilterRuleNameSuffix = "suffix" ) +const ( + // InventoryFormatCsv is a InventoryFormat enum value + InventoryFormatCsv = "CSV" +) + +const ( + // InventoryFrequencyDaily is a InventoryFrequency enum value + InventoryFrequencyDaily = "Daily" + + // InventoryFrequencyWeekly is a InventoryFrequency enum value + InventoryFrequencyWeekly = "Weekly" +) + +const ( + // InventoryIncludedObjectVersionsAll is a InventoryIncludedObjectVersions enum value + InventoryIncludedObjectVersionsAll = "All" + + // InventoryIncludedObjectVersionsCurrent is a InventoryIncludedObjectVersions enum value + InventoryIncludedObjectVersionsCurrent = "Current" +) + +const ( + // InventoryOptionalFieldSize is a InventoryOptionalField enum value + InventoryOptionalFieldSize = "Size" + + // InventoryOptionalFieldLastModifiedDate is a InventoryOptionalField enum value + InventoryOptionalFieldLastModifiedDate = "LastModifiedDate" + + // InventoryOptionalFieldStorageClass is a InventoryOptionalField enum value + InventoryOptionalFieldStorageClass = "StorageClass" + + // InventoryOptionalFieldEtag is a InventoryOptionalField enum value + InventoryOptionalFieldEtag = "ETag" + + // InventoryOptionalFieldIsMultipartUploaded is a InventoryOptionalField enum value + InventoryOptionalFieldIsMultipartUploaded = "IsMultipartUploaded" + + // InventoryOptionalFieldReplicationStatus is a InventoryOptionalField enum value + InventoryOptionalFieldReplicationStatus = "ReplicationStatus" +) + const ( // MFADeleteEnabled is a MFADelete enum value MFADeleteEnabled = "Enabled" @@ -10467,6 +17968,30 @@ const ( StorageClassStandardIa = "STANDARD_IA" ) +const ( + // StorageClassAnalysisSchemaVersionV1 is a StorageClassAnalysisSchemaVersion enum value + StorageClassAnalysisSchemaVersionV1 = "V_1" +) + +const ( + // TaggingDirectiveCopy is a TaggingDirective enum value + TaggingDirectiveCopy = "COPY" + + // TaggingDirectiveReplace is a TaggingDirective enum value + TaggingDirectiveReplace = "REPLACE" +) + +const ( + // TierStandard is a Tier enum value + TierStandard = "Standard" + + // TierBulk is a Tier enum value + TierBulk = "Bulk" + + // TierExpedited is a Tier enum value + TierExpedited = "Expedited" +) + const ( // TransitionStorageClassGlacier is a TransitionStorageClass enum value TransitionStorageClassGlacier = "GLACIER" diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/customizations_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/customizations_test.go index 20a62d7ac..85dfe788b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/customizations_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/customizations_test.go @@ -4,6 +4,9 @@ import ( "crypto/md5" "encoding/base64" "io/ioutil" + "net/http" + "net/http/httptest" + "strings" "testing" "github.com/aws/aws-sdk-go/aws" @@ -103,3 +106,53 @@ func TestMD5InPutBucketLifecycleConfiguration(t *testing.T) { }) assertMD5(t, req) } + +const ( + metaKeyPrefix = `X-Amz-Meta-` + utf8KeySuffix = `My-Info` + utf8Value = "hello-世界\u0444" +) + +func TestPutObjectMetadataWithUnicode(t *testing.T) { + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + assert.Equal(t, utf8Value, r.Header.Get(metaKeyPrefix+utf8KeySuffix)) + })) + svc := s3.New(unit.Session, &aws.Config{ + Endpoint: aws.String(server.URL), + DisableSSL: aws.Bool(true), + }) + + _, err := svc.PutObject(&s3.PutObjectInput{ + Bucket: aws.String("my_bucket"), + Key: aws.String("my_key"), + Body: strings.NewReader(""), + Metadata: func() map[string]*string { + v := map[string]*string{} + v[utf8KeySuffix] = aws.String(utf8Value) + return v + }(), + }) + + assert.NoError(t, err) +} + +func TestGetObjectMetadataWithUnicode(t *testing.T) { + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + w.Header().Set(metaKeyPrefix+utf8KeySuffix, utf8Value) + })) + svc := s3.New(unit.Session, &aws.Config{ + Endpoint: aws.String(server.URL), + DisableSSL: aws.Bool(true), + }) + + resp, err := svc.GetObject(&s3.GetObjectInput{ + Bucket: aws.String("my_bucket"), + Key: aws.String("my_key"), + }) + + assert.NoError(t, err) + resp.Body.Close() + + assert.Equal(t, utf8Value, *resp.Metadata[utf8KeySuffix]) + +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/errors.go b/vendor/github.com/aws/aws-sdk-go/service/s3/errors.go new file mode 100644 index 000000000..13ebbdad9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/errors.go @@ -0,0 +1,48 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package s3 + +const ( + + // ErrCodeBucketAlreadyExists for service response error code + // "BucketAlreadyExists". + // + // The requested bucket name is not available. The bucket namespace is shared + // by all users of the system. Please select a different name and try again. + ErrCodeBucketAlreadyExists = "BucketAlreadyExists" + + // ErrCodeBucketAlreadyOwnedByYou for service response error code + // "BucketAlreadyOwnedByYou". + ErrCodeBucketAlreadyOwnedByYou = "BucketAlreadyOwnedByYou" + + // ErrCodeNoSuchBucket for service response error code + // "NoSuchBucket". + // + // The specified bucket does not exist. + ErrCodeNoSuchBucket = "NoSuchBucket" + + // ErrCodeNoSuchKey for service response error code + // "NoSuchKey". + // + // The specified key does not exist. + ErrCodeNoSuchKey = "NoSuchKey" + + // ErrCodeNoSuchUpload for service response error code + // "NoSuchUpload". + // + // The specified multipart upload does not exist. + ErrCodeNoSuchUpload = "NoSuchUpload" + + // ErrCodeObjectAlreadyInActiveTierError for service response error code + // "ObjectAlreadyInActiveTierError". + // + // This operation is not allowed against this storage tier + ErrCodeObjectAlreadyInActiveTierError = "ObjectAlreadyInActiveTierError" + + // ErrCodeObjectNotInActiveTierError for service response error code + // "ObjectNotInActiveTierError". + // + // The source object of the COPY operation is not in the active tier and is + // only stored in Amazon Glacier. + ErrCodeObjectNotInActiveTierError = "ObjectNotInActiveTierError" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/examples_test.go index dcbac373d..7cb8e5235 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleS3_AbortMultipartUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -44,11 +40,7 @@ func ExampleS3_AbortMultipartUpload() { } func ExampleS3_CompleteMultipartUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -81,11 +73,7 @@ func ExampleS3_CompleteMultipartUpload() { } func ExampleS3_CopyObject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -123,6 +111,8 @@ func ExampleS3_CopyObject() { SSEKMSKeyId: aws.String("SSEKMSKeyId"), ServerSideEncryption: aws.String("ServerSideEncryption"), StorageClass: aws.String("StorageClass"), + Tagging: aws.String("TaggingHeader"), + TaggingDirective: aws.String("TaggingDirective"), WebsiteRedirectLocation: aws.String("WebsiteRedirectLocation"), } resp, err := svc.CopyObject(params) @@ -139,11 +129,7 @@ func ExampleS3_CopyObject() { } func ExampleS3_CreateBucket() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -173,11 +159,7 @@ func ExampleS3_CreateBucket() { } func ExampleS3_CreateMultipartUpload() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -222,11 +204,7 @@ func ExampleS3_CreateMultipartUpload() { } func ExampleS3_DeleteBucket() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -246,13 +224,31 @@ func ExampleS3_DeleteBucket() { fmt.Println(resp) } -func ExampleS3_DeleteBucketCors() { - sess, err := session.NewSession() +func ExampleS3_DeleteBucketAnalyticsConfiguration() { + sess := session.Must(session.NewSession()) + + svc := s3.New(sess) + + params := &s3.DeleteBucketAnalyticsConfigurationInput{ + Bucket: aws.String("BucketName"), // Required + Id: aws.String("AnalyticsId"), // Required + } + resp, err := svc.DeleteBucketAnalyticsConfiguration(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleS3_DeleteBucketCors() { + sess := session.Must(session.NewSession()) + svc := s3.New(sess) params := &s3.DeleteBucketCorsInput{ @@ -271,13 +267,31 @@ func ExampleS3_DeleteBucketCors() { fmt.Println(resp) } -func ExampleS3_DeleteBucketLifecycle() { - sess, err := session.NewSession() +func ExampleS3_DeleteBucketInventoryConfiguration() { + sess := session.Must(session.NewSession()) + + svc := s3.New(sess) + + params := &s3.DeleteBucketInventoryConfigurationInput{ + Bucket: aws.String("BucketName"), // Required + Id: aws.String("InventoryId"), // Required + } + resp, err := svc.DeleteBucketInventoryConfiguration(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleS3_DeleteBucketLifecycle() { + sess := session.Must(session.NewSession()) + svc := s3.New(sess) params := &s3.DeleteBucketLifecycleInput{ @@ -296,13 +310,31 @@ func ExampleS3_DeleteBucketLifecycle() { fmt.Println(resp) } -func ExampleS3_DeleteBucketPolicy() { - sess, err := session.NewSession() +func ExampleS3_DeleteBucketMetricsConfiguration() { + sess := session.Must(session.NewSession()) + + svc := s3.New(sess) + + params := &s3.DeleteBucketMetricsConfigurationInput{ + Bucket: aws.String("BucketName"), // Required + Id: aws.String("MetricsId"), // Required + } + resp, err := svc.DeleteBucketMetricsConfiguration(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleS3_DeleteBucketPolicy() { + sess := session.Must(session.NewSession()) + svc := s3.New(sess) params := &s3.DeleteBucketPolicyInput{ @@ -322,11 +354,7 @@ func ExampleS3_DeleteBucketPolicy() { } func ExampleS3_DeleteBucketReplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -347,11 +375,7 @@ func ExampleS3_DeleteBucketReplication() { } func ExampleS3_DeleteBucketTagging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -372,11 +396,7 @@ func ExampleS3_DeleteBucketTagging() { } func ExampleS3_DeleteBucketWebsite() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -397,11 +417,7 @@ func ExampleS3_DeleteBucketWebsite() { } func ExampleS3_DeleteObject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -425,13 +441,32 @@ func ExampleS3_DeleteObject() { fmt.Println(resp) } -func ExampleS3_DeleteObjects() { - sess, err := session.NewSession() +func ExampleS3_DeleteObjectTagging() { + sess := session.Must(session.NewSession()) + + svc := s3.New(sess) + + params := &s3.DeleteObjectTaggingInput{ + Bucket: aws.String("BucketName"), // Required + Key: aws.String("ObjectKey"), // Required + VersionId: aws.String("ObjectVersionId"), + } + resp, err := svc.DeleteObjectTagging(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleS3_DeleteObjects() { + sess := session.Must(session.NewSession()) + svc := s3.New(sess) params := &s3.DeleteObjectsInput{ @@ -463,11 +498,7 @@ func ExampleS3_DeleteObjects() { } func ExampleS3_GetBucketAccelerateConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -488,11 +519,7 @@ func ExampleS3_GetBucketAccelerateConfiguration() { } func ExampleS3_GetBucketAcl() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -512,13 +539,31 @@ func ExampleS3_GetBucketAcl() { fmt.Println(resp) } -func ExampleS3_GetBucketCors() { - sess, err := session.NewSession() +func ExampleS3_GetBucketAnalyticsConfiguration() { + sess := session.Must(session.NewSession()) + + svc := s3.New(sess) + + params := &s3.GetBucketAnalyticsConfigurationInput{ + Bucket: aws.String("BucketName"), // Required + Id: aws.String("AnalyticsId"), // Required + } + resp, err := svc.GetBucketAnalyticsConfiguration(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleS3_GetBucketCors() { + sess := session.Must(session.NewSession()) + svc := s3.New(sess) params := &s3.GetBucketCorsInput{ @@ -537,13 +582,31 @@ func ExampleS3_GetBucketCors() { fmt.Println(resp) } -func ExampleS3_GetBucketLifecycle() { - sess, err := session.NewSession() +func ExampleS3_GetBucketInventoryConfiguration() { + sess := session.Must(session.NewSession()) + + svc := s3.New(sess) + + params := &s3.GetBucketInventoryConfigurationInput{ + Bucket: aws.String("BucketName"), // Required + Id: aws.String("InventoryId"), // Required + } + resp, err := svc.GetBucketInventoryConfiguration(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleS3_GetBucketLifecycle() { + sess := session.Must(session.NewSession()) + svc := s3.New(sess) params := &s3.GetBucketLifecycleInput{ @@ -563,11 +626,7 @@ func ExampleS3_GetBucketLifecycle() { } func ExampleS3_GetBucketLifecycleConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -588,11 +647,7 @@ func ExampleS3_GetBucketLifecycleConfiguration() { } func ExampleS3_GetBucketLocation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -613,11 +668,7 @@ func ExampleS3_GetBucketLocation() { } func ExampleS3_GetBucketLogging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -637,13 +688,31 @@ func ExampleS3_GetBucketLogging() { fmt.Println(resp) } -func ExampleS3_GetBucketNotification() { - sess, err := session.NewSession() +func ExampleS3_GetBucketMetricsConfiguration() { + sess := session.Must(session.NewSession()) + + svc := s3.New(sess) + + params := &s3.GetBucketMetricsConfigurationInput{ + Bucket: aws.String("BucketName"), // Required + Id: aws.String("MetricsId"), // Required + } + resp, err := svc.GetBucketMetricsConfiguration(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleS3_GetBucketNotification() { + sess := session.Must(session.NewSession()) + svc := s3.New(sess) params := &s3.GetBucketNotificationConfigurationRequest{ @@ -663,11 +732,7 @@ func ExampleS3_GetBucketNotification() { } func ExampleS3_GetBucketNotificationConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -688,11 +753,7 @@ func ExampleS3_GetBucketNotificationConfiguration() { } func ExampleS3_GetBucketPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -713,11 +774,7 @@ func ExampleS3_GetBucketPolicy() { } func ExampleS3_GetBucketReplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -738,11 +795,7 @@ func ExampleS3_GetBucketReplication() { } func ExampleS3_GetBucketRequestPayment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -763,11 +816,7 @@ func ExampleS3_GetBucketRequestPayment() { } func ExampleS3_GetBucketTagging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -788,11 +837,7 @@ func ExampleS3_GetBucketTagging() { } func ExampleS3_GetBucketVersioning() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -813,11 +858,7 @@ func ExampleS3_GetBucketVersioning() { } func ExampleS3_GetBucketWebsite() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -838,11 +879,7 @@ func ExampleS3_GetBucketWebsite() { } func ExampleS3_GetObject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -881,11 +918,7 @@ func ExampleS3_GetObject() { } func ExampleS3_GetObjectAcl() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -908,13 +941,32 @@ func ExampleS3_GetObjectAcl() { fmt.Println(resp) } -func ExampleS3_GetObjectTorrent() { - sess, err := session.NewSession() +func ExampleS3_GetObjectTagging() { + sess := session.Must(session.NewSession()) + + svc := s3.New(sess) + + params := &s3.GetObjectTaggingInput{ + Bucket: aws.String("BucketName"), // Required + Key: aws.String("ObjectKey"), // Required + VersionId: aws.String("ObjectVersionId"), + } + resp, err := svc.GetObjectTagging(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleS3_GetObjectTorrent() { + sess := session.Must(session.NewSession()) + svc := s3.New(sess) params := &s3.GetObjectTorrentInput{ @@ -936,11 +988,7 @@ func ExampleS3_GetObjectTorrent() { } func ExampleS3_HeadBucket() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -961,11 +1009,7 @@ func ExampleS3_HeadBucket() { } func ExampleS3_HeadObject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -997,17 +1041,60 @@ func ExampleS3_HeadObject() { fmt.Println(resp) } -func ExampleS3_ListBuckets() { - sess, err := session.NewSession() +func ExampleS3_ListBucketAnalyticsConfigurations() { + sess := session.Must(session.NewSession()) + + svc := s3.New(sess) + + params := &s3.ListBucketAnalyticsConfigurationsInput{ + Bucket: aws.String("BucketName"), // Required + ContinuationToken: aws.String("Token"), + } + resp, err := svc.ListBucketAnalyticsConfigurations(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleS3_ListBucketInventoryConfigurations() { + sess := session.Must(session.NewSession()) + + svc := s3.New(sess) + + params := &s3.ListBucketInventoryConfigurationsInput{ + Bucket: aws.String("BucketName"), // Required + ContinuationToken: aws.String("Token"), + } + resp, err := svc.ListBucketInventoryConfigurations(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleS3_ListBucketMetricsConfigurations() { + sess := session.Must(session.NewSession()) + svc := s3.New(sess) - var params *s3.ListBucketsInput - resp, err := svc.ListBuckets(params) + params := &s3.ListBucketMetricsConfigurationsInput{ + Bucket: aws.String("BucketName"), // Required + ContinuationToken: aws.String("Token"), + } + resp, err := svc.ListBucketMetricsConfigurations(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -1020,13 +1107,28 @@ func ExampleS3_ListBuckets() { fmt.Println(resp) } -func ExampleS3_ListMultipartUploads() { - sess, err := session.NewSession() +func ExampleS3_ListBuckets() { + sess := session.Must(session.NewSession()) + + svc := s3.New(sess) + + var params *s3.ListBucketsInput + resp, err := svc.ListBuckets(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleS3_ListMultipartUploads() { + sess := session.Must(session.NewSession()) + svc := s3.New(sess) params := &s3.ListMultipartUploadsInput{ @@ -1052,11 +1154,7 @@ func ExampleS3_ListMultipartUploads() { } func ExampleS3_ListObjectVersions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1083,11 +1181,7 @@ func ExampleS3_ListObjectVersions() { } func ExampleS3_ListObjects() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1114,11 +1208,7 @@ func ExampleS3_ListObjects() { } func ExampleS3_ListObjectsV2() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1147,11 +1237,7 @@ func ExampleS3_ListObjectsV2() { } func ExampleS3_ListParts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1177,11 +1263,7 @@ func ExampleS3_ListParts() { } func ExampleS3_PutBucketAccelerateConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1205,11 +1287,7 @@ func ExampleS3_PutBucketAccelerateConfiguration() { } func ExampleS3_PutBucketAcl() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1254,13 +1332,64 @@ func ExampleS3_PutBucketAcl() { fmt.Println(resp) } -func ExampleS3_PutBucketCors() { - sess, err := session.NewSession() +func ExampleS3_PutBucketAnalyticsConfiguration() { + sess := session.Must(session.NewSession()) + + svc := s3.New(sess) + + params := &s3.PutBucketAnalyticsConfigurationInput{ + AnalyticsConfiguration: &s3.AnalyticsConfiguration{ // Required + Id: aws.String("AnalyticsId"), // Required + StorageClassAnalysis: &s3.StorageClassAnalysis{ // Required + DataExport: &s3.StorageClassAnalysisDataExport{ + Destination: &s3.AnalyticsExportDestination{ // Required + S3BucketDestination: &s3.AnalyticsS3BucketDestination{ // Required + Bucket: aws.String("BucketName"), // Required + Format: aws.String("AnalyticsS3ExportFileFormat"), // Required + BucketAccountId: aws.String("AccountId"), + Prefix: aws.String("Prefix"), + }, + }, + OutputSchemaVersion: aws.String("StorageClassAnalysisSchemaVersion"), // Required + }, + }, + Filter: &s3.AnalyticsFilter{ + And: &s3.AnalyticsAndOperator{ + Prefix: aws.String("Prefix"), + Tags: []*s3.Tag{ + { // Required + Key: aws.String("ObjectKey"), // Required + Value: aws.String("Value"), // Required + }, + // More values... + }, + }, + Prefix: aws.String("Prefix"), + Tag: &s3.Tag{ + Key: aws.String("ObjectKey"), // Required + Value: aws.String("Value"), // Required + }, + }, + }, + Bucket: aws.String("BucketName"), // Required + Id: aws.String("AnalyticsId"), // Required + } + resp, err := svc.PutBucketAnalyticsConfiguration(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleS3_PutBucketCors() { + sess := session.Must(session.NewSession()) + svc := s3.New(sess) params := &s3.PutBucketCorsInput{ @@ -1303,13 +1432,54 @@ func ExampleS3_PutBucketCors() { fmt.Println(resp) } -func ExampleS3_PutBucketLifecycle() { - sess, err := session.NewSession() +func ExampleS3_PutBucketInventoryConfiguration() { + sess := session.Must(session.NewSession()) + + svc := s3.New(sess) + + params := &s3.PutBucketInventoryConfigurationInput{ + Bucket: aws.String("BucketName"), // Required + Id: aws.String("InventoryId"), // Required + InventoryConfiguration: &s3.InventoryConfiguration{ // Required + Destination: &s3.InventoryDestination{ // Required + S3BucketDestination: &s3.InventoryS3BucketDestination{ // Required + Bucket: aws.String("BucketName"), // Required + Format: aws.String("InventoryFormat"), // Required + AccountId: aws.String("AccountId"), + Prefix: aws.String("Prefix"), + }, + }, + Id: aws.String("InventoryId"), // Required + IncludedObjectVersions: aws.String("InventoryIncludedObjectVersions"), // Required + IsEnabled: aws.Bool(true), // Required + Schedule: &s3.InventorySchedule{ // Required + Frequency: aws.String("InventoryFrequency"), // Required + }, + Filter: &s3.InventoryFilter{ + Prefix: aws.String("Prefix"), // Required + }, + OptionalFields: []*string{ + aws.String("InventoryOptionalField"), // Required + // More values... + }, + }, + } + resp, err := svc.PutBucketInventoryConfiguration(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleS3_PutBucketLifecycle() { + sess := session.Must(session.NewSession()) + svc := s3.New(sess) params := &s3.PutBucketLifecycleInput{ @@ -1359,11 +1529,7 @@ func ExampleS3_PutBucketLifecycle() { } func ExampleS3_PutBucketLifecycleConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1372,7 +1538,6 @@ func ExampleS3_PutBucketLifecycleConfiguration() { LifecycleConfiguration: &s3.BucketLifecycleConfiguration{ Rules: []*s3.LifecycleRule{ // Required { // Required - Prefix: aws.String("Prefix"), // Required Status: aws.String("ExpirationStatus"), // Required AbortIncompleteMultipartUpload: &s3.AbortIncompleteMultipartUpload{ DaysAfterInitiation: aws.Int64(1), @@ -1382,6 +1547,23 @@ func ExampleS3_PutBucketLifecycleConfiguration() { Days: aws.Int64(1), ExpiredObjectDeleteMarker: aws.Bool(true), }, + Filter: &s3.LifecycleRuleFilter{ + And: &s3.LifecycleRuleAndOperator{ + Prefix: aws.String("Prefix"), + Tags: []*s3.Tag{ + { // Required + Key: aws.String("ObjectKey"), // Required + Value: aws.String("Value"), // Required + }, + // More values... + }, + }, + Prefix: aws.String("Prefix"), + Tag: &s3.Tag{ + Key: aws.String("ObjectKey"), // Required + Value: aws.String("Value"), // Required + }, + }, ID: aws.String("ID"), NoncurrentVersionExpiration: &s3.NoncurrentVersionExpiration{ NoncurrentDays: aws.Int64(1), @@ -1393,6 +1575,7 @@ func ExampleS3_PutBucketLifecycleConfiguration() { }, // More values... }, + Prefix: aws.String("Prefix"), Transitions: []*s3.Transition{ { // Required Date: aws.Time(time.Now()), @@ -1420,11 +1603,7 @@ func ExampleS3_PutBucketLifecycleConfiguration() { } func ExampleS3_PutBucketLogging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1463,13 +1642,51 @@ func ExampleS3_PutBucketLogging() { fmt.Println(resp) } -func ExampleS3_PutBucketNotification() { - sess, err := session.NewSession() +func ExampleS3_PutBucketMetricsConfiguration() { + sess := session.Must(session.NewSession()) + + svc := s3.New(sess) + + params := &s3.PutBucketMetricsConfigurationInput{ + Bucket: aws.String("BucketName"), // Required + Id: aws.String("MetricsId"), // Required + MetricsConfiguration: &s3.MetricsConfiguration{ // Required + Id: aws.String("MetricsId"), // Required + Filter: &s3.MetricsFilter{ + And: &s3.MetricsAndOperator{ + Prefix: aws.String("Prefix"), + Tags: []*s3.Tag{ + { // Required + Key: aws.String("ObjectKey"), // Required + Value: aws.String("Value"), // Required + }, + // More values... + }, + }, + Prefix: aws.String("Prefix"), + Tag: &s3.Tag{ + Key: aws.String("ObjectKey"), // Required + Value: aws.String("Value"), // Required + }, + }, + }, + } + resp, err := svc.PutBucketMetricsConfiguration(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleS3_PutBucketNotification() { + sess := session.Must(session.NewSession()) + svc := s3.New(sess) params := &s3.PutBucketNotificationInput{ @@ -1519,11 +1736,7 @@ func ExampleS3_PutBucketNotification() { } func ExampleS3_PutBucketNotificationConfiguration() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1612,11 +1825,7 @@ func ExampleS3_PutBucketNotificationConfiguration() { } func ExampleS3_PutBucketPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1638,11 +1847,7 @@ func ExampleS3_PutBucketPolicy() { } func ExampleS3_PutBucketReplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1678,11 +1883,7 @@ func ExampleS3_PutBucketReplication() { } func ExampleS3_PutBucketRequestPayment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1706,11 +1907,7 @@ func ExampleS3_PutBucketRequestPayment() { } func ExampleS3_PutBucketTagging() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1740,11 +1937,7 @@ func ExampleS3_PutBucketTagging() { } func ExampleS3_PutBucketVersioning() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1770,11 +1963,7 @@ func ExampleS3_PutBucketVersioning() { } func ExampleS3_PutBucketWebsite() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1823,11 +2012,7 @@ func ExampleS3_PutBucketWebsite() { } func ExampleS3_PutObject() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1858,6 +2043,7 @@ func ExampleS3_PutObject() { SSEKMSKeyId: aws.String("SSEKMSKeyId"), ServerSideEncryption: aws.String("ServerSideEncryption"), StorageClass: aws.String("StorageClass"), + Tagging: aws.String("TaggingHeader"), WebsiteRedirectLocation: aws.String("WebsiteRedirectLocation"), } resp, err := svc.PutObject(params) @@ -1874,11 +2060,7 @@ func ExampleS3_PutObject() { } func ExampleS3_PutObjectAcl() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1926,13 +2108,41 @@ func ExampleS3_PutObjectAcl() { fmt.Println(resp) } -func ExampleS3_RestoreObject() { - sess, err := session.NewSession() +func ExampleS3_PutObjectTagging() { + sess := session.Must(session.NewSession()) + + svc := s3.New(sess) + + params := &s3.PutObjectTaggingInput{ + Bucket: aws.String("BucketName"), // Required + Key: aws.String("ObjectKey"), // Required + Tagging: &s3.Tagging{ // Required + TagSet: []*s3.Tag{ // Required + { // Required + Key: aws.String("ObjectKey"), // Required + Value: aws.String("Value"), // Required + }, + // More values... + }, + }, + VersionId: aws.String("ObjectVersionId"), + } + resp, err := svc.PutObjectTagging(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleS3_RestoreObject() { + sess := session.Must(session.NewSession()) + svc := s3.New(sess) params := &s3.RestoreObjectInput{ @@ -1941,6 +2151,9 @@ func ExampleS3_RestoreObject() { RequestPayer: aws.String("RequestPayer"), RestoreRequest: &s3.RestoreRequest{ Days: aws.Int64(1), // Required + GlacierJobParameters: &s3.GlacierJobParameters{ + Tier: aws.String("Tier"), // Required + }, }, VersionId: aws.String("ObjectVersionId"), } @@ -1958,11 +2171,7 @@ func ExampleS3_RestoreObject() { } func ExampleS3_UploadPart() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) @@ -1992,11 +2201,7 @@ func ExampleS3_UploadPart() { } func ExampleS3_UploadPartCopy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := s3.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go b/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go index f05d1eae9..ec3ffe448 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go @@ -1,7 +1,6 @@ package s3 import ( - "bytes" "fmt" "net/url" "regexp" @@ -83,29 +82,31 @@ func updateEndpointForAccelerate(r *request.Request) { if !hostCompatibleBucketName(r.HTTPRequest.URL, bucket) { r.Error = awserr.New("InvalidParameterException", - fmt.Sprintf("bucket name %s is not compatibile with S3 Accelerate", bucket), + fmt.Sprintf("bucket name %s is not compatible with S3 Accelerate", bucket), nil) return } - // Change endpoint from s3(-[a-z0-1-])?.amazonaws.com to s3-accelerate.amazonaws.com - r.HTTPRequest.URL.Host = replaceHostRegion(r.HTTPRequest.URL.Host, "accelerate") - - if aws.BoolValue(r.Config.UseDualStack) { - host := []byte(r.HTTPRequest.URL.Host) + parts := strings.Split(r.HTTPRequest.URL.Host, ".") + if len(parts) < 3 { + r.Error = awserr.New("InvalidParameterExecption", + fmt.Sprintf("unable to update endpoint host for S3 accelerate, hostname invalid, %s", + r.HTTPRequest.URL.Host), nil) + return + } - // Strip region from hostname - if idx := bytes.Index(host, accelElem); idx >= 0 { - start := idx + len(accelElem) - if end := bytes.IndexByte(host[start:], '.'); end >= 0 { - end += start + 1 - copy(host[start:], host[end:]) - host = host[:len(host)-(end-start)] - r.HTTPRequest.URL.Host = string(host) - } + if parts[0] == "s3" || strings.HasPrefix(parts[0], "s3-") { + parts[0] = "s3-accelerate" + } + for i := 1; i+1 < len(parts); i++ { + if parts[i] == aws.StringValue(r.Config.Region) { + parts = append(parts[:i], parts[i+1:]...) + break } } + r.HTTPRequest.URL.Host = strings.Join(parts, ".") + moveBucketToHost(r.HTTPRequest.URL, bucket) } @@ -159,28 +160,3 @@ func moveBucketToHost(u *url.URL, bucket string) { u.Path = "/" } } - -const s3HostPrefix = "s3" - -// replaceHostRegion replaces the S3 region string in the host with the -// value provided. If v is empty the host prefix returned will be s3. -func replaceHostRegion(host, v string) string { - if !strings.HasPrefix(host, s3HostPrefix) { - return host - } - - suffix := host[len(s3HostPrefix):] - for i := len(s3HostPrefix); i < len(host); i++ { - if host[i] == '.' { - // Trim until '.' leave the it in place. - suffix = host[i:] - break - } - } - - if len(v) == 0 { - return fmt.Sprintf("s3%s", suffix) - } - - return fmt.Sprintf("s3-%s%s", v, suffix) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket_test.go index 385ce3c92..f7492ce1c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket_test.go @@ -21,34 +21,34 @@ type s3BucketTest struct { var ( sslTests = []s3BucketTest{ - {"abc", "https://abc.s3-mock-region.amazonaws.com/", ""}, - {"a$b$c", "https://s3-mock-region.amazonaws.com/a%24b%24c", ""}, - {"a.b.c", "https://s3-mock-region.amazonaws.com/a.b.c", ""}, - {"a..bc", "https://s3-mock-region.amazonaws.com/a..bc", ""}, + {"abc", "https://abc.s3.mock-region.amazonaws.com/", ""}, + {"a$b$c", "https://s3.mock-region.amazonaws.com/a%24b%24c", ""}, + {"a.b.c", "https://s3.mock-region.amazonaws.com/a.b.c", ""}, + {"a..bc", "https://s3.mock-region.amazonaws.com/a..bc", ""}, } nosslTests = []s3BucketTest{ - {"a.b.c", "http://a.b.c.s3-mock-region.amazonaws.com/", ""}, - {"a..bc", "http://s3-mock-region.amazonaws.com/a..bc", ""}, + {"a.b.c", "http://a.b.c.s3.mock-region.amazonaws.com/", ""}, + {"a..bc", "http://s3.mock-region.amazonaws.com/a..bc", ""}, } forcepathTests = []s3BucketTest{ - {"abc", "https://s3-mock-region.amazonaws.com/abc", ""}, - {"a$b$c", "https://s3-mock-region.amazonaws.com/a%24b%24c", ""}, - {"a.b.c", "https://s3-mock-region.amazonaws.com/a.b.c", ""}, - {"a..bc", "https://s3-mock-region.amazonaws.com/a..bc", ""}, + {"abc", "https://s3.mock-region.amazonaws.com/abc", ""}, + {"a$b$c", "https://s3.mock-region.amazonaws.com/a%24b%24c", ""}, + {"a.b.c", "https://s3.mock-region.amazonaws.com/a.b.c", ""}, + {"a..bc", "https://s3.mock-region.amazonaws.com/a..bc", ""}, } accelerateTests = []s3BucketTest{ {"abc", "https://abc.s3-accelerate.amazonaws.com/", ""}, - {"a.b.c", "https://s3-mock-region.amazonaws.com/%7BBucket%7D", "InvalidParameterException"}, - {"a$b$c", "https://s3-mock-region.amazonaws.com/%7BBucket%7D", "InvalidParameterException"}, + {"a.b.c", "https://s3.mock-region.amazonaws.com/%7BBucket%7D", "InvalidParameterException"}, + {"a$b$c", "https://s3.mock-region.amazonaws.com/%7BBucket%7D", "InvalidParameterException"}, } accelerateNoSSLTests = []s3BucketTest{ {"abc", "http://abc.s3-accelerate.amazonaws.com/", ""}, {"a.b.c", "http://a.b.c.s3-accelerate.amazonaws.com/", ""}, - {"a$b$c", "http://s3-mock-region.amazonaws.com/%7BBucket%7D", "InvalidParameterException"}, + {"a$b$c", "http://s3.mock-region.amazonaws.com/%7BBucket%7D", "InvalidParameterException"}, } accelerateDualstack = []s3BucketTest{ diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/cipher_util_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/cipher_util_test.go index 1d1a0cbec..386e69cee 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/cipher_util_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/cipher_util_test.go @@ -86,7 +86,7 @@ func TestCEKFactory(t *testing.T) { sess := unit.Session.Copy(&aws.Config{ MaxRetries: aws.Int(0), - Endpoint: aws.String(ts.URL[7:]), + Endpoint: aws.String(ts.URL), DisableSSL: aws.Bool(true), S3ForcePathStyle: aws.Bool(true), Region: aws.String("us-west-2"), @@ -133,7 +133,7 @@ func TestCEKFactoryNoCEK(t *testing.T) { sess := unit.Session.Copy(&aws.Config{ MaxRetries: aws.Int(0), - Endpoint: aws.String(ts.URL[7:]), + Endpoint: aws.String(ts.URL), DisableSSL: aws.Bool(true), S3ForcePathStyle: aws.Bool(true), Region: aws.String("us-west-2"), @@ -180,7 +180,7 @@ func TestCEKFactoryCustomEntry(t *testing.T) { sess := unit.Session.Copy(&aws.Config{ MaxRetries: aws.Int(0), - Endpoint: aws.String(ts.URL[7:]), + Endpoint: aws.String(ts.URL), DisableSSL: aws.Bool(true), S3ForcePathStyle: aws.Bool(true), Region: aws.String("us-west-2"), diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/decryption_client.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/decryption_client.go index 8e0296912..1f432dd02 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/decryption_client.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/decryption_client.go @@ -33,13 +33,10 @@ type DecryptionClient struct { // NewDecryptionClient instantiates a new S3 crypto client // // Example: -// cmkID := "some key id to kms" // sess := session.New() -// handler, err = s3crypto.NewKMSEncryptHandler(sess, cmkID, s3crypto.MaterialDescription{}) -// if err != nil { -// return err -// } -// svc := s3crypto.New(sess, s3crypto.AESGCMContentCipherBuilder(handler)) +// svc := s3crypto.NewDecryptionClient(sess, func(svc *s3crypto.DecryptionClient{ +// // Custom client options here +// })) func NewDecryptionClient(prov client.ConfigProvider, options ...func(*DecryptionClient)) *DecryptionClient { s3client := s3.New(prov) client := &DecryptionClient{ @@ -67,7 +64,8 @@ func NewDecryptionClient(prov client.ConfigProvider, options ...func(*Decryption // decryption will be done. The SDK only supports V2 reads of KMS and GCM. // // Example: -// svc := s3crypto.New(session.New(),s3crypto.AESGCMContentCipherBuilder(handler)) +// sess := session.New() +// svc := s3crypto.NewDecryptionClient(sess) // req, out := svc.GetObjectRequest(&s3.GetObjectInput { // Key: aws.String("testKey"), // Bucket: aws.String("testBucket"), diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/decryption_client_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/decryption_client_test.go index f8e9cd908..09b79101f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/decryption_client_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/decryption_client_test.go @@ -29,7 +29,7 @@ func TestGetObject(t *testing.T) { sess := unit.Session.Copy(&aws.Config{ MaxRetries: aws.Int(0), - Endpoint: aws.String(ts.URL[7:]), + Endpoint: aws.String(ts.URL), DisableSSL: aws.Bool(true), S3ForcePathStyle: aws.Bool(true), Region: aws.String("us-west-2"), diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/kms_key_handler.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/kms_key_handler.go index a786b793d..c9ae0d1d0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/kms_key_handler.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/kms_key_handler.go @@ -39,7 +39,7 @@ func NewKMSKeyGenerator(kmsClient kmsiface.KMSAPI, cmkID string) CipherDataGener // sess := session.New(&aws.Config{}) // cmkID := "arn to key" // matdesc := s3crypto.MaterialDescription{} -// handler, err := s3crypto.NewKMSEncryptHandler(kms.New(sess), cmkID, matdesc) +// handler, err := s3crypto.NewKMSKeyGeneratorWithMatDesc(kms.New(sess), cmkID, matdesc) func NewKMSKeyGeneratorWithMatDesc(kmsClient kmsiface.KMSAPI, cmkID string, matdesc MaterialDescription) CipherDataGenerator { if matdesc == nil { matdesc = MaterialDescription{} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/kms_key_handler_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/kms_key_handler_test.go index 26c5235cb..e69ee9762 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/kms_key_handler_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/kms_key_handler_test.go @@ -43,7 +43,7 @@ func TestKMSGenerateCipherData(t *testing.T) { sess := unit.Session.Copy(&aws.Config{ MaxRetries: aws.Int(0), - Endpoint: aws.String(ts.URL[7:]), + Endpoint: aws.String(ts.URL), DisableSSL: aws.Bool(true), S3ForcePathStyle: aws.Bool(true), Region: aws.String("us-west-2"), @@ -72,7 +72,7 @@ func TestKMSDecrypt(t *testing.T) { sess := unit.Session.Copy(&aws.Config{ MaxRetries: aws.Int(0), - Endpoint: aws.String(ts.URL[7:]), + Endpoint: aws.String(ts.URL), DisableSSL: aws.Bool(true), S3ForcePathStyle: aws.Bool(true), Region: aws.String("us-west-2"), @@ -94,7 +94,7 @@ func TestKMSDecryptBadJSON(t *testing.T) { sess := unit.Session.Copy(&aws.Config{ MaxRetries: aws.Int(0), - Endpoint: aws.String(ts.URL[7:]), + Endpoint: aws.String(ts.URL), DisableSSL: aws.Bool(true), S3ForcePathStyle: aws.Bool(true), Region: aws.String("us-west-2"), diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface.go index dd13513d3..c2f840e3a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockS3Client{} // @@ -83,14 +83,26 @@ type S3API interface { DeleteBucket(*s3.DeleteBucketInput) (*s3.DeleteBucketOutput, error) + DeleteBucketAnalyticsConfigurationRequest(*s3.DeleteBucketAnalyticsConfigurationInput) (*request.Request, *s3.DeleteBucketAnalyticsConfigurationOutput) + + DeleteBucketAnalyticsConfiguration(*s3.DeleteBucketAnalyticsConfigurationInput) (*s3.DeleteBucketAnalyticsConfigurationOutput, error) + DeleteBucketCorsRequest(*s3.DeleteBucketCorsInput) (*request.Request, *s3.DeleteBucketCorsOutput) DeleteBucketCors(*s3.DeleteBucketCorsInput) (*s3.DeleteBucketCorsOutput, error) + DeleteBucketInventoryConfigurationRequest(*s3.DeleteBucketInventoryConfigurationInput) (*request.Request, *s3.DeleteBucketInventoryConfigurationOutput) + + DeleteBucketInventoryConfiguration(*s3.DeleteBucketInventoryConfigurationInput) (*s3.DeleteBucketInventoryConfigurationOutput, error) + DeleteBucketLifecycleRequest(*s3.DeleteBucketLifecycleInput) (*request.Request, *s3.DeleteBucketLifecycleOutput) DeleteBucketLifecycle(*s3.DeleteBucketLifecycleInput) (*s3.DeleteBucketLifecycleOutput, error) + DeleteBucketMetricsConfigurationRequest(*s3.DeleteBucketMetricsConfigurationInput) (*request.Request, *s3.DeleteBucketMetricsConfigurationOutput) + + DeleteBucketMetricsConfiguration(*s3.DeleteBucketMetricsConfigurationInput) (*s3.DeleteBucketMetricsConfigurationOutput, error) + DeleteBucketPolicyRequest(*s3.DeleteBucketPolicyInput) (*request.Request, *s3.DeleteBucketPolicyOutput) DeleteBucketPolicy(*s3.DeleteBucketPolicyInput) (*s3.DeleteBucketPolicyOutput, error) @@ -111,6 +123,10 @@ type S3API interface { DeleteObject(*s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error) + DeleteObjectTaggingRequest(*s3.DeleteObjectTaggingInput) (*request.Request, *s3.DeleteObjectTaggingOutput) + + DeleteObjectTagging(*s3.DeleteObjectTaggingInput) (*s3.DeleteObjectTaggingOutput, error) + DeleteObjectsRequest(*s3.DeleteObjectsInput) (*request.Request, *s3.DeleteObjectsOutput) DeleteObjects(*s3.DeleteObjectsInput) (*s3.DeleteObjectsOutput, error) @@ -123,10 +139,18 @@ type S3API interface { GetBucketAcl(*s3.GetBucketAclInput) (*s3.GetBucketAclOutput, error) + GetBucketAnalyticsConfigurationRequest(*s3.GetBucketAnalyticsConfigurationInput) (*request.Request, *s3.GetBucketAnalyticsConfigurationOutput) + + GetBucketAnalyticsConfiguration(*s3.GetBucketAnalyticsConfigurationInput) (*s3.GetBucketAnalyticsConfigurationOutput, error) + GetBucketCorsRequest(*s3.GetBucketCorsInput) (*request.Request, *s3.GetBucketCorsOutput) GetBucketCors(*s3.GetBucketCorsInput) (*s3.GetBucketCorsOutput, error) + GetBucketInventoryConfigurationRequest(*s3.GetBucketInventoryConfigurationInput) (*request.Request, *s3.GetBucketInventoryConfigurationOutput) + + GetBucketInventoryConfiguration(*s3.GetBucketInventoryConfigurationInput) (*s3.GetBucketInventoryConfigurationOutput, error) + GetBucketLifecycleRequest(*s3.GetBucketLifecycleInput) (*request.Request, *s3.GetBucketLifecycleOutput) GetBucketLifecycle(*s3.GetBucketLifecycleInput) (*s3.GetBucketLifecycleOutput, error) @@ -143,6 +167,10 @@ type S3API interface { GetBucketLogging(*s3.GetBucketLoggingInput) (*s3.GetBucketLoggingOutput, error) + GetBucketMetricsConfigurationRequest(*s3.GetBucketMetricsConfigurationInput) (*request.Request, *s3.GetBucketMetricsConfigurationOutput) + + GetBucketMetricsConfiguration(*s3.GetBucketMetricsConfigurationInput) (*s3.GetBucketMetricsConfigurationOutput, error) + GetBucketNotificationRequest(*s3.GetBucketNotificationConfigurationRequest) (*request.Request, *s3.NotificationConfigurationDeprecated) GetBucketNotification(*s3.GetBucketNotificationConfigurationRequest) (*s3.NotificationConfigurationDeprecated, error) @@ -183,6 +211,10 @@ type S3API interface { GetObjectAcl(*s3.GetObjectAclInput) (*s3.GetObjectAclOutput, error) + GetObjectTaggingRequest(*s3.GetObjectTaggingInput) (*request.Request, *s3.GetObjectTaggingOutput) + + GetObjectTagging(*s3.GetObjectTaggingInput) (*s3.GetObjectTaggingOutput, error) + GetObjectTorrentRequest(*s3.GetObjectTorrentInput) (*request.Request, *s3.GetObjectTorrentOutput) GetObjectTorrent(*s3.GetObjectTorrentInput) (*s3.GetObjectTorrentOutput, error) @@ -195,6 +227,18 @@ type S3API interface { HeadObject(*s3.HeadObjectInput) (*s3.HeadObjectOutput, error) + ListBucketAnalyticsConfigurationsRequest(*s3.ListBucketAnalyticsConfigurationsInput) (*request.Request, *s3.ListBucketAnalyticsConfigurationsOutput) + + ListBucketAnalyticsConfigurations(*s3.ListBucketAnalyticsConfigurationsInput) (*s3.ListBucketAnalyticsConfigurationsOutput, error) + + ListBucketInventoryConfigurationsRequest(*s3.ListBucketInventoryConfigurationsInput) (*request.Request, *s3.ListBucketInventoryConfigurationsOutput) + + ListBucketInventoryConfigurations(*s3.ListBucketInventoryConfigurationsInput) (*s3.ListBucketInventoryConfigurationsOutput, error) + + ListBucketMetricsConfigurationsRequest(*s3.ListBucketMetricsConfigurationsInput) (*request.Request, *s3.ListBucketMetricsConfigurationsOutput) + + ListBucketMetricsConfigurations(*s3.ListBucketMetricsConfigurationsInput) (*s3.ListBucketMetricsConfigurationsOutput, error) + ListBucketsRequest(*s3.ListBucketsInput) (*request.Request, *s3.ListBucketsOutput) ListBuckets(*s3.ListBucketsInput) (*s3.ListBucketsOutput, error) @@ -237,10 +281,18 @@ type S3API interface { PutBucketAcl(*s3.PutBucketAclInput) (*s3.PutBucketAclOutput, error) + PutBucketAnalyticsConfigurationRequest(*s3.PutBucketAnalyticsConfigurationInput) (*request.Request, *s3.PutBucketAnalyticsConfigurationOutput) + + PutBucketAnalyticsConfiguration(*s3.PutBucketAnalyticsConfigurationInput) (*s3.PutBucketAnalyticsConfigurationOutput, error) + PutBucketCorsRequest(*s3.PutBucketCorsInput) (*request.Request, *s3.PutBucketCorsOutput) PutBucketCors(*s3.PutBucketCorsInput) (*s3.PutBucketCorsOutput, error) + PutBucketInventoryConfigurationRequest(*s3.PutBucketInventoryConfigurationInput) (*request.Request, *s3.PutBucketInventoryConfigurationOutput) + + PutBucketInventoryConfiguration(*s3.PutBucketInventoryConfigurationInput) (*s3.PutBucketInventoryConfigurationOutput, error) + PutBucketLifecycleRequest(*s3.PutBucketLifecycleInput) (*request.Request, *s3.PutBucketLifecycleOutput) PutBucketLifecycle(*s3.PutBucketLifecycleInput) (*s3.PutBucketLifecycleOutput, error) @@ -253,6 +305,10 @@ type S3API interface { PutBucketLogging(*s3.PutBucketLoggingInput) (*s3.PutBucketLoggingOutput, error) + PutBucketMetricsConfigurationRequest(*s3.PutBucketMetricsConfigurationInput) (*request.Request, *s3.PutBucketMetricsConfigurationOutput) + + PutBucketMetricsConfiguration(*s3.PutBucketMetricsConfigurationInput) (*s3.PutBucketMetricsConfigurationOutput, error) + PutBucketNotificationRequest(*s3.PutBucketNotificationInput) (*request.Request, *s3.PutBucketNotificationOutput) PutBucketNotification(*s3.PutBucketNotificationInput) (*s3.PutBucketNotificationOutput, error) @@ -293,6 +349,10 @@ type S3API interface { PutObjectAcl(*s3.PutObjectAclInput) (*s3.PutObjectAclOutput, error) + PutObjectTaggingRequest(*s3.PutObjectTaggingInput) (*request.Request, *s3.PutObjectTaggingOutput) + + PutObjectTagging(*s3.PutObjectTaggingInput) (*s3.PutObjectTaggingOutput, error) + RestoreObjectRequest(*s3.RestoreObjectInput) (*request.Request, *s3.RestoreObjectOutput) RestoreObject(*s3.RestoreObjectInput) (*s3.RestoreObjectOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go index dfdee1881..0841077ab 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go @@ -50,7 +50,7 @@ type Downloader struct { // // Example: // // The session the S3 Downloader will use -// sess, err := session.NewSession() +// sess := session.Must(session.NewSession()) // // // Create a downloader with the session and default options // downloader := s3manager.NewDownloader(sess) @@ -79,7 +79,7 @@ func NewDownloader(c client.ConfigProvider, options ...func(*Downloader)) *Downl // // Example: // // The session the S3 Downloader will use -// sess, err := session.NewSession() +// sess := session.Must(session.NewSession()) // // // The S3 client the S3 Downloader will use // s3Svc := s3.new(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go index 6a17e9630..a27722634 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go @@ -175,6 +175,9 @@ type UploadInput struct { // The type of storage to use for the object. Defaults to 'STANDARD'. StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string"` + // The tag-set for the object. The tag-set must be encoded as URL Query parameters + Tagging *string `location:"header" locationName:"x-amz-tagging" type:"string"` + // If the bucket is configured as a website, redirects requests for this object // to another object in the same bucket or to an external URL. Amazon S3 stores // the value of this header in the object metadata. @@ -238,7 +241,7 @@ type Uploader struct { // // Example: // // The session the S3 Uploader will use -// sess, err := session.NewSession() +// sess := session.Must(session.NewSession()) // // // Create an uploader with the session and default options // uploader := s3manager.NewUploader(sess) @@ -269,7 +272,7 @@ func NewUploader(c client.ConfigProvider, options ...func(*Uploader)) *Uploader // // Example: // // The session the S3 Uploader will use -// sess, err := session.NewSession() +// sess := session.Must(session.NewSession()) // // // S3 service client the Upload manager will use. // s3Svc := s3.New(sess) @@ -605,11 +608,13 @@ func (u *multiuploader) readChunk(ch chan chunk) { // part information. func (u *multiuploader) send(c chunk) error { req, resp := u.ctx.S3.UploadPartRequest(&s3.UploadPartInput{ - Bucket: u.in.Bucket, - Key: u.in.Key, - Body: c.buf, - UploadId: &u.uploadID, - PartNumber: &c.num, + Bucket: u.in.Bucket, + Key: u.in.Key, + Body: c.buf, + UploadId: &u.uploadID, + SSECustomerAlgorithm: u.in.SSECustomerAlgorithm, + SSECustomerKey: u.in.SSECustomerKey, + PartNumber: &c.num, }) req.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("S3Manager")) if err := req.Send(); err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload_test.go index 6b46e31c1..8000862d0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload_test.go @@ -670,3 +670,59 @@ func TestReaderAt(t *testing.T) { assert.NoError(t, err) assert.Equal(t, contentLen, "12") } + +func TestSSE(t *testing.T) { + svc := s3.New(unit.Session) + svc.Handlers.Unmarshal.Clear() + svc.Handlers.UnmarshalMeta.Clear() + svc.Handlers.UnmarshalError.Clear() + svc.Handlers.ValidateResponse.Clear() + svc.Handlers.Send.Clear() + partNum := 0 + mutex := &sync.Mutex{} + + svc.Handlers.Send.PushBack(func(r *request.Request) { + mutex.Lock() + defer mutex.Unlock() + r.HTTPResponse = &http.Response{ + StatusCode: 200, + Body: ioutil.NopCloser(bytes.NewReader([]byte{})), + } + switch data := r.Data.(type) { + case *s3.CreateMultipartUploadOutput: + data.UploadId = aws.String("UPLOAD-ID") + case *s3.UploadPartOutput: + input := r.Params.(*s3.UploadPartInput) + if input.SSECustomerAlgorithm == nil { + t.Fatal("SSECustomerAlgoritm should not be nil") + } + if input.SSECustomerKey == nil { + t.Fatal("SSECustomerKey should not be nil") + } + partNum++ + data.ETag = aws.String(fmt.Sprintf("ETAG%d", partNum)) + case *s3.CompleteMultipartUploadOutput: + data.Location = aws.String("https://location") + data.VersionId = aws.String("VERSION-ID") + case *s3.PutObjectOutput: + data.VersionId = aws.String("VERSION-ID") + } + + }) + + mgr := s3manager.NewUploaderWithClient(svc, func(u *s3manager.Uploader) { + u.Concurrency = 5 + }) + + _, err := mgr.Upload(&s3manager.UploadInput{ + Bucket: aws.String("Bucket"), + Key: aws.String("Key"), + SSECustomerAlgorithm: aws.String("AES256"), + SSECustomerKey: aws.String("foo"), + Body: bytes.NewBuffer(make([]byte, 1024*1024*10)), + }) + + if err != nil { + t.Fatal("Expected no error, but received" + err.Error()) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/service.go b/vendor/github.com/aws/aws-sdk-go/service/s3/service.go index 5833952a2..5e6f2299e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/service.go @@ -12,8 +12,9 @@ import ( ) // S3 is a client for Amazon S3. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01 type S3 struct { *client.Client } @@ -24,8 +25,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "s3" +// Service information constants +const ( + ServiceName = "s3" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the S3 client with a session. // If additional configuration is needed for the client instance use the optional @@ -38,17 +42,18 @@ const ServiceName = "s3" // // Create a S3 client with additional configuration // svc := s3.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *S3 { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *S3 { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *S3 { svc := &S3{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2006-03-01", diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go b/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go index ce65fcdaf..5a78fd337 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go @@ -5,7 +5,6 @@ import ( "io/ioutil" "net/http" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" ) @@ -17,8 +16,8 @@ func copyMultipartStatusOKUnmarhsalError(r *request.Request) { return } body := bytes.NewReader(b) - r.HTTPResponse.Body = aws.ReadSeekCloser(body) - defer r.HTTPResponse.Body.(aws.ReaderSeekerCloser).Seek(0, 0) + r.HTTPResponse.Body = ioutil.NopCloser(body) + defer body.Seek(0, 0) if body.Len() == 0 { // If there is no body don't attempt to parse the body. diff --git a/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/api.go b/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/api.go index c1c010270..206de5210 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/api.go @@ -11,856 +11,7535 @@ import ( "github.com/aws/aws-sdk-go/aws/request" ) -const opDescribeProduct = "DescribeProduct" +const opAcceptPortfolioShare = "AcceptPortfolioShare" -// DescribeProductRequest generates a "aws/request.Request" representing the -// client's request for the DescribeProduct operation. The "output" return +// AcceptPortfolioShareRequest generates a "aws/request.Request" representing the +// client's request for the AcceptPortfolioShare operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeProduct for usage and error information. +// See AcceptPortfolioShare for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeProduct method directly +// you just want the service response, call the AcceptPortfolioShare method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeProductRequest method. -// req, resp := client.DescribeProductRequest(params) +// // Example sending a request using the AcceptPortfolioShareRequest method. +// req, resp := client.AcceptPortfolioShareRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *ServiceCatalog) DescribeProductRequest(input *DescribeProductInput) (req *request.Request, output *DescribeProductOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/AcceptPortfolioShare +func (c *ServiceCatalog) AcceptPortfolioShareRequest(input *AcceptPortfolioShareInput) (req *request.Request, output *AcceptPortfolioShareOutput) { op := &request.Operation{ - Name: opDescribeProduct, + Name: opAcceptPortfolioShare, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeProductInput{} + input = &AcceptPortfolioShareInput{} } + output = &AcceptPortfolioShareOutput{} req = c.newRequest(op, input, output) - output = &DescribeProductOutput{} - req.Data = output return } -// DescribeProduct API operation for AWS Service Catalog. +// AcceptPortfolioShare API operation for AWS Service Catalog. // -// Retrieves information about a specified product. -// -// This operation is functionally identical to DescribeProductView except that -// it takes as input ProductId instead of ProductViewId. +// Accepts an offer to share a portfolio. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog's -// API operation DescribeProduct for usage and error information. +// API operation AcceptPortfolioShare for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. // -// * InvalidParametersException -// One or more parameters provided to the operation are invalid. +// * ErrCodeLimitExceededException "LimitExceededException" +// The current limits of the service would have been exceeded by this operation. +// Reduce the resource use or increase the service limits and retry the operation. // -func (c *ServiceCatalog) DescribeProduct(input *DescribeProductInput) (*DescribeProductOutput, error) { - req, out := c.DescribeProductRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/AcceptPortfolioShare +func (c *ServiceCatalog) AcceptPortfolioShare(input *AcceptPortfolioShareInput) (*AcceptPortfolioShareOutput, error) { + req, out := c.AcceptPortfolioShareRequest(input) err := req.Send() return out, err } -const opDescribeProductView = "DescribeProductView" +const opAssociatePrincipalWithPortfolio = "AssociatePrincipalWithPortfolio" -// DescribeProductViewRequest generates a "aws/request.Request" representing the -// client's request for the DescribeProductView operation. The "output" return +// AssociatePrincipalWithPortfolioRequest generates a "aws/request.Request" representing the +// client's request for the AssociatePrincipalWithPortfolio operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeProductView for usage and error information. +// See AssociatePrincipalWithPortfolio for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeProductView method directly +// you just want the service response, call the AssociatePrincipalWithPortfolio method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeProductViewRequest method. -// req, resp := client.DescribeProductViewRequest(params) +// // Example sending a request using the AssociatePrincipalWithPortfolioRequest method. +// req, resp := client.AssociatePrincipalWithPortfolioRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *ServiceCatalog) DescribeProductViewRequest(input *DescribeProductViewInput) (req *request.Request, output *DescribeProductViewOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/AssociatePrincipalWithPortfolio +func (c *ServiceCatalog) AssociatePrincipalWithPortfolioRequest(input *AssociatePrincipalWithPortfolioInput) (req *request.Request, output *AssociatePrincipalWithPortfolioOutput) { op := &request.Operation{ - Name: opDescribeProductView, + Name: opAssociatePrincipalWithPortfolio, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeProductViewInput{} + input = &AssociatePrincipalWithPortfolioInput{} } + output = &AssociatePrincipalWithPortfolioOutput{} req = c.newRequest(op, input, output) - output = &DescribeProductViewOutput{} - req.Data = output return } -// DescribeProductView API operation for AWS Service Catalog. -// -// Retrieves information about a specified product. +// AssociatePrincipalWithPortfolio API operation for AWS Service Catalog. // -// This operation is functionally identical to DescribeProduct except that -// it takes as input ProductViewId instead of ProductId. +// Associates the specified principal ARN with the specified portfolio. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog's -// API operation DescribeProductView for usage and error information. +// API operation AssociatePrincipalWithPortfolio for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. // -// * InvalidParametersException -// One or more parameters provided to the operation are invalid. +// * ErrCodeLimitExceededException "LimitExceededException" +// The current limits of the service would have been exceeded by this operation. +// Reduce the resource use or increase the service limits and retry the operation. // -func (c *ServiceCatalog) DescribeProductView(input *DescribeProductViewInput) (*DescribeProductViewOutput, error) { - req, out := c.DescribeProductViewRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/AssociatePrincipalWithPortfolio +func (c *ServiceCatalog) AssociatePrincipalWithPortfolio(input *AssociatePrincipalWithPortfolioInput) (*AssociatePrincipalWithPortfolioOutput, error) { + req, out := c.AssociatePrincipalWithPortfolioRequest(input) err := req.Send() return out, err } -const opDescribeProvisioningParameters = "DescribeProvisioningParameters" +const opAssociateProductWithPortfolio = "AssociateProductWithPortfolio" -// DescribeProvisioningParametersRequest generates a "aws/request.Request" representing the -// client's request for the DescribeProvisioningParameters operation. The "output" return +// AssociateProductWithPortfolioRequest generates a "aws/request.Request" representing the +// client's request for the AssociateProductWithPortfolio operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeProvisioningParameters for usage and error information. +// See AssociateProductWithPortfolio for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeProvisioningParameters method directly +// you just want the service response, call the AssociateProductWithPortfolio method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeProvisioningParametersRequest method. -// req, resp := client.DescribeProvisioningParametersRequest(params) +// // Example sending a request using the AssociateProductWithPortfolioRequest method. +// req, resp := client.AssociateProductWithPortfolioRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *ServiceCatalog) DescribeProvisioningParametersRequest(input *DescribeProvisioningParametersInput) (req *request.Request, output *DescribeProvisioningParametersOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/AssociateProductWithPortfolio +func (c *ServiceCatalog) AssociateProductWithPortfolioRequest(input *AssociateProductWithPortfolioInput) (req *request.Request, output *AssociateProductWithPortfolioOutput) { op := &request.Operation{ - Name: opDescribeProvisioningParameters, + Name: opAssociateProductWithPortfolio, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeProvisioningParametersInput{} + input = &AssociateProductWithPortfolioInput{} } + output = &AssociateProductWithPortfolioOutput{} req = c.newRequest(op, input, output) - output = &DescribeProvisioningParametersOutput{} - req.Data = output return } -// DescribeProvisioningParameters API operation for AWS Service Catalog. +// AssociateProductWithPortfolio API operation for AWS Service Catalog. // -// Provides information about parameters required to provision a specified product -// in a specified manner. Use this operation to obtain the list of ProvisioningArtifactParameters -// parameters available to call the ProvisionProduct operation for the specified -// product. +// Associates a product with a portfolio. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog's -// API operation DescribeProvisioningParameters for usage and error information. +// API operation AssociateProductWithPortfolio for usage and error information. // // Returned Error Codes: -// * InvalidParametersException +// * ErrCodeInvalidParametersException "InvalidParametersException" // One or more parameters provided to the operation are invalid. // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. // -func (c *ServiceCatalog) DescribeProvisioningParameters(input *DescribeProvisioningParametersInput) (*DescribeProvisioningParametersOutput, error) { - req, out := c.DescribeProvisioningParametersRequest(input) +// * ErrCodeLimitExceededException "LimitExceededException" +// The current limits of the service would have been exceeded by this operation. +// Reduce the resource use or increase the service limits and retry the operation. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/AssociateProductWithPortfolio +func (c *ServiceCatalog) AssociateProductWithPortfolio(input *AssociateProductWithPortfolioInput) (*AssociateProductWithPortfolioOutput, error) { + req, out := c.AssociateProductWithPortfolioRequest(input) err := req.Send() return out, err } -const opDescribeRecord = "DescribeRecord" +const opCreateConstraint = "CreateConstraint" -// DescribeRecordRequest generates a "aws/request.Request" representing the -// client's request for the DescribeRecord operation. The "output" return +// CreateConstraintRequest generates a "aws/request.Request" representing the +// client's request for the CreateConstraint operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeRecord for usage and error information. +// See CreateConstraint for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeRecord method directly +// you just want the service response, call the CreateConstraint method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeRecordRequest method. -// req, resp := client.DescribeRecordRequest(params) +// // Example sending a request using the CreateConstraintRequest method. +// req, resp := client.CreateConstraintRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *ServiceCatalog) DescribeRecordRequest(input *DescribeRecordInput) (req *request.Request, output *DescribeRecordOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreateConstraint +func (c *ServiceCatalog) CreateConstraintRequest(input *CreateConstraintInput) (req *request.Request, output *CreateConstraintOutput) { op := &request.Operation{ - Name: opDescribeRecord, + Name: opCreateConstraint, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeRecordInput{} + input = &CreateConstraintInput{} } + output = &CreateConstraintOutput{} req = c.newRequest(op, input, output) - output = &DescribeRecordOutput{} - req.Data = output return } -// DescribeRecord API operation for AWS Service Catalog. +// CreateConstraint API operation for AWS Service Catalog. // -// Retrieves a paginated list of the full details of a specific request. Use -// this operation after calling a request operation (ProvisionProduct, TerminateProvisionedProduct, -// or UpdateProvisionedProduct). +// Creates a new constraint. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog's -// API operation DescribeRecord for usage and error information. +// API operation CreateConstraint for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. // -func (c *ServiceCatalog) DescribeRecord(input *DescribeRecordInput) (*DescribeRecordOutput, error) { - req, out := c.DescribeRecordRequest(input) +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The current limits of the service would have been exceeded by this operation. +// Reduce the resource use or increase the service limits and retry the operation. +// +// * ErrCodeDuplicateResourceException "DuplicateResourceException" +// The specified resource is a duplicate. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreateConstraint +func (c *ServiceCatalog) CreateConstraint(input *CreateConstraintInput) (*CreateConstraintOutput, error) { + req, out := c.CreateConstraintRequest(input) err := req.Send() return out, err } -const opListLaunchPaths = "ListLaunchPaths" +const opCreatePortfolio = "CreatePortfolio" -// ListLaunchPathsRequest generates a "aws/request.Request" representing the -// client's request for the ListLaunchPaths operation. The "output" return +// CreatePortfolioRequest generates a "aws/request.Request" representing the +// client's request for the CreatePortfolio operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ListLaunchPaths for usage and error information. +// See CreatePortfolio for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ListLaunchPaths method directly +// you just want the service response, call the CreatePortfolio method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ListLaunchPathsRequest method. -// req, resp := client.ListLaunchPathsRequest(params) +// // Example sending a request using the CreatePortfolioRequest method. +// req, resp := client.CreatePortfolioRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *ServiceCatalog) ListLaunchPathsRequest(input *ListLaunchPathsInput) (req *request.Request, output *ListLaunchPathsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreatePortfolio +func (c *ServiceCatalog) CreatePortfolioRequest(input *CreatePortfolioInput) (req *request.Request, output *CreatePortfolioOutput) { op := &request.Operation{ - Name: opListLaunchPaths, + Name: opCreatePortfolio, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ListLaunchPathsInput{} + input = &CreatePortfolioInput{} } + output = &CreatePortfolioOutput{} req = c.newRequest(op, input, output) - output = &ListLaunchPathsOutput{} - req.Data = output return } -// ListLaunchPaths API operation for AWS Service Catalog. +// CreatePortfolio API operation for AWS Service Catalog. // -// Returns a paginated list of all paths to a specified product. A path is how -// the user has access to a specified product, and is necessary when provisioning -// a product. A path also determines the constraints put on the product. +// Creates a new portfolio. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog's -// API operation ListLaunchPaths for usage and error information. +// API operation CreatePortfolio for usage and error information. // // Returned Error Codes: -// * InvalidParametersException +// * ErrCodeInvalidParametersException "InvalidParametersException" // One or more parameters provided to the operation are invalid. // -// * ResourceNotFoundException -// The specified resource was not found. +// * ErrCodeLimitExceededException "LimitExceededException" +// The current limits of the service would have been exceeded by this operation. +// Reduce the resource use or increase the service limits and retry the operation. // -func (c *ServiceCatalog) ListLaunchPaths(input *ListLaunchPathsInput) (*ListLaunchPathsOutput, error) { - req, out := c.ListLaunchPathsRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreatePortfolio +func (c *ServiceCatalog) CreatePortfolio(input *CreatePortfolioInput) (*CreatePortfolioOutput, error) { + req, out := c.CreatePortfolioRequest(input) err := req.Send() return out, err } -const opListRecordHistory = "ListRecordHistory" +const opCreatePortfolioShare = "CreatePortfolioShare" -// ListRecordHistoryRequest generates a "aws/request.Request" representing the -// client's request for the ListRecordHistory operation. The "output" return +// CreatePortfolioShareRequest generates a "aws/request.Request" representing the +// client's request for the CreatePortfolioShare operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ListRecordHistory for usage and error information. +// See CreatePortfolioShare for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ListRecordHistory method directly +// you just want the service response, call the CreatePortfolioShare method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ListRecordHistoryRequest method. -// req, resp := client.ListRecordHistoryRequest(params) +// // Example sending a request using the CreatePortfolioShareRequest method. +// req, resp := client.CreatePortfolioShareRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *ServiceCatalog) ListRecordHistoryRequest(input *ListRecordHistoryInput) (req *request.Request, output *ListRecordHistoryOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreatePortfolioShare +func (c *ServiceCatalog) CreatePortfolioShareRequest(input *CreatePortfolioShareInput) (req *request.Request, output *CreatePortfolioShareOutput) { op := &request.Operation{ - Name: opListRecordHistory, + Name: opCreatePortfolioShare, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ListRecordHistoryInput{} + input = &CreatePortfolioShareInput{} } + output = &CreatePortfolioShareOutput{} req = c.newRequest(op, input, output) - output = &ListRecordHistoryOutput{} - req.Data = output return } -// ListRecordHistory API operation for AWS Service Catalog. +// CreatePortfolioShare API operation for AWS Service Catalog. // -// Returns a paginated list of all performed requests, in the form of RecordDetails -// objects that are filtered as specified. +// Creates a new portfolio share. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog's -// API operation ListRecordHistory for usage and error information. +// API operation CreatePortfolioShare for usage and error information. // // Returned Error Codes: -// * InvalidParametersException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The current limits of the service would have been exceeded by this operation. +// Reduce the resource use or increase the service limits and retry the operation. +// +// * ErrCodeInvalidParametersException "InvalidParametersException" // One or more parameters provided to the operation are invalid. // -func (c *ServiceCatalog) ListRecordHistory(input *ListRecordHistoryInput) (*ListRecordHistoryOutput, error) { - req, out := c.ListRecordHistoryRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreatePortfolioShare +func (c *ServiceCatalog) CreatePortfolioShare(input *CreatePortfolioShareInput) (*CreatePortfolioShareOutput, error) { + req, out := c.CreatePortfolioShareRequest(input) err := req.Send() return out, err } -const opProvisionProduct = "ProvisionProduct" +const opCreateProduct = "CreateProduct" -// ProvisionProductRequest generates a "aws/request.Request" representing the -// client's request for the ProvisionProduct operation. The "output" return +// CreateProductRequest generates a "aws/request.Request" representing the +// client's request for the CreateProduct operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ProvisionProduct for usage and error information. +// See CreateProduct for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ProvisionProduct method directly +// you just want the service response, call the CreateProduct method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ProvisionProductRequest method. -// req, resp := client.ProvisionProductRequest(params) +// // Example sending a request using the CreateProductRequest method. +// req, resp := client.CreateProductRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *ServiceCatalog) ProvisionProductRequest(input *ProvisionProductInput) (req *request.Request, output *ProvisionProductOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreateProduct +func (c *ServiceCatalog) CreateProductRequest(input *CreateProductInput) (req *request.Request, output *CreateProductOutput) { op := &request.Operation{ - Name: opProvisionProduct, + Name: opCreateProduct, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ProvisionProductInput{} + input = &CreateProductInput{} } + output = &CreateProductOutput{} req = c.newRequest(op, input, output) - output = &ProvisionProductOutput{} - req.Data = output return } -// ProvisionProduct API operation for AWS Service Catalog. +// CreateProduct API operation for AWS Service Catalog. // -// Requests a Provision of a specified product. A ProvisionedProduct is a resourced -// instance for a product. For example, provisioning a CloudFormation-template-backed -// product results in launching a CloudFormation stack and all the underlying -// resources that come with it. -// -// You can check the status of this request using the DescribeRecord operation. +// Creates a new product. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog's -// API operation ProvisionProduct for usage and error information. +// API operation CreateProduct for usage and error information. // // Returned Error Codes: -// * InvalidParametersException +// * ErrCodeInvalidParametersException "InvalidParametersException" // One or more parameters provided to the operation are invalid. // -// * ResourceNotFoundException -// The specified resource was not found. -// -// * DuplicateResourceException -// The specified resource is a duplicate. +// * ErrCodeLimitExceededException "LimitExceededException" +// The current limits of the service would have been exceeded by this operation. +// Reduce the resource use or increase the service limits and retry the operation. // -func (c *ServiceCatalog) ProvisionProduct(input *ProvisionProductInput) (*ProvisionProductOutput, error) { - req, out := c.ProvisionProductRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreateProduct +func (c *ServiceCatalog) CreateProduct(input *CreateProductInput) (*CreateProductOutput, error) { + req, out := c.CreateProductRequest(input) err := req.Send() return out, err } -const opScanProvisionedProducts = "ScanProvisionedProducts" +const opCreateProvisioningArtifact = "CreateProvisioningArtifact" -// ScanProvisionedProductsRequest generates a "aws/request.Request" representing the -// client's request for the ScanProvisionedProducts operation. The "output" return +// CreateProvisioningArtifactRequest generates a "aws/request.Request" representing the +// client's request for the CreateProvisioningArtifact operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ScanProvisionedProducts for usage and error information. +// See CreateProvisioningArtifact for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ScanProvisionedProducts method directly +// you just want the service response, call the CreateProvisioningArtifact method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ScanProvisionedProductsRequest method. -// req, resp := client.ScanProvisionedProductsRequest(params) +// // Example sending a request using the CreateProvisioningArtifactRequest method. +// req, resp := client.CreateProvisioningArtifactRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *ServiceCatalog) ScanProvisionedProductsRequest(input *ScanProvisionedProductsInput) (req *request.Request, output *ScanProvisionedProductsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreateProvisioningArtifact +func (c *ServiceCatalog) CreateProvisioningArtifactRequest(input *CreateProvisioningArtifactInput) (req *request.Request, output *CreateProvisioningArtifactOutput) { op := &request.Operation{ - Name: opScanProvisionedProducts, + Name: opCreateProvisioningArtifact, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ScanProvisionedProductsInput{} + input = &CreateProvisioningArtifactInput{} } + output = &CreateProvisioningArtifactOutput{} req = c.newRequest(op, input, output) - output = &ScanProvisionedProductsOutput{} - req.Data = output return } -// ScanProvisionedProducts API operation for AWS Service Catalog. +// CreateProvisioningArtifact API operation for AWS Service Catalog. // -// Returns a paginated list of all the ProvisionedProduct objects that are currently -// available (not terminated). +// Create a new provisioning artifact for the specified product. This operation +// will not work with a product that has been shared with you. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog's -// API operation ScanProvisionedProducts for usage and error information. +// API operation CreateProvisioningArtifact for usage and error information. // // Returned Error Codes: -// * InvalidParametersException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeInvalidParametersException "InvalidParametersException" // One or more parameters provided to the operation are invalid. // -func (c *ServiceCatalog) ScanProvisionedProducts(input *ScanProvisionedProductsInput) (*ScanProvisionedProductsOutput, error) { - req, out := c.ScanProvisionedProductsRequest(input) +// * ErrCodeLimitExceededException "LimitExceededException" +// The current limits of the service would have been exceeded by this operation. +// Reduce the resource use or increase the service limits and retry the operation. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreateProvisioningArtifact +func (c *ServiceCatalog) CreateProvisioningArtifact(input *CreateProvisioningArtifactInput) (*CreateProvisioningArtifactOutput, error) { + req, out := c.CreateProvisioningArtifactRequest(input) err := req.Send() return out, err } -const opSearchProducts = "SearchProducts" +const opDeleteConstraint = "DeleteConstraint" -// SearchProductsRequest generates a "aws/request.Request" representing the -// client's request for the SearchProducts operation. The "output" return +// DeleteConstraintRequest generates a "aws/request.Request" representing the +// client's request for the DeleteConstraint operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See SearchProducts for usage and error information. +// See DeleteConstraint for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the SearchProducts method directly +// you just want the service response, call the DeleteConstraint method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the SearchProductsRequest method. -// req, resp := client.SearchProductsRequest(params) +// // Example sending a request using the DeleteConstraintRequest method. +// req, resp := client.DeleteConstraintRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *ServiceCatalog) SearchProductsRequest(input *SearchProductsInput) (req *request.Request, output *SearchProductsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeleteConstraint +func (c *ServiceCatalog) DeleteConstraintRequest(input *DeleteConstraintInput) (req *request.Request, output *DeleteConstraintOutput) { op := &request.Operation{ - Name: opSearchProducts, + Name: opDeleteConstraint, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &SearchProductsInput{} + input = &DeleteConstraintInput{} } + output = &DeleteConstraintOutput{} req = c.newRequest(op, input, output) - output = &SearchProductsOutput{} - req.Data = output return } -// SearchProducts API operation for AWS Service Catalog. +// DeleteConstraint API operation for AWS Service Catalog. // -// Returns a paginated list all of the Products objects to which the caller -// has access. -// -// The output of this operation can be used as input for other operations, -// such as DescribeProductView. +// Deletes the specified constraint. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog's -// API operation SearchProducts for usage and error information. +// API operation DeleteConstraint for usage and error information. // // Returned Error Codes: -// * InvalidParametersException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeInvalidParametersException "InvalidParametersException" // One or more parameters provided to the operation are invalid. // -func (c *ServiceCatalog) SearchProducts(input *SearchProductsInput) (*SearchProductsOutput, error) { - req, out := c.SearchProductsRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeleteConstraint +func (c *ServiceCatalog) DeleteConstraint(input *DeleteConstraintInput) (*DeleteConstraintOutput, error) { + req, out := c.DeleteConstraintRequest(input) err := req.Send() return out, err } -const opTerminateProvisionedProduct = "TerminateProvisionedProduct" +const opDeletePortfolio = "DeletePortfolio" -// TerminateProvisionedProductRequest generates a "aws/request.Request" representing the -// client's request for the TerminateProvisionedProduct operation. The "output" return +// DeletePortfolioRequest generates a "aws/request.Request" representing the +// client's request for the DeletePortfolio operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See TerminateProvisionedProduct for usage and error information. +// See DeletePortfolio for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the TerminateProvisionedProduct method directly +// you just want the service response, call the DeletePortfolio method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the TerminateProvisionedProductRequest method. -// req, resp := client.TerminateProvisionedProductRequest(params) +// // Example sending a request using the DeletePortfolioRequest method. +// req, resp := client.DeletePortfolioRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *ServiceCatalog) TerminateProvisionedProductRequest(input *TerminateProvisionedProductInput) (req *request.Request, output *TerminateProvisionedProductOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeletePortfolio +func (c *ServiceCatalog) DeletePortfolioRequest(input *DeletePortfolioInput) (req *request.Request, output *DeletePortfolioOutput) { op := &request.Operation{ - Name: opTerminateProvisionedProduct, + Name: opDeletePortfolio, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &TerminateProvisionedProductInput{} + input = &DeletePortfolioInput{} } + output = &DeletePortfolioOutput{} req = c.newRequest(op, input, output) - output = &TerminateProvisionedProductOutput{} - req.Data = output return } -// TerminateProvisionedProduct API operation for AWS Service Catalog. +// DeletePortfolio API operation for AWS Service Catalog. // -// Requests termination of an existing ProvisionedProduct object. If there are -// Tags associated with the object, they are terminated when the ProvisionedProduct -// object is terminated. -// -// This operation does not delete any records associated with the ProvisionedProduct -// object. -// -// You can check the status of this request using the DescribeRecord operation. +// Deletes the specified portfolio. This operation will not work with a portfolio +// that has been shared with you or if it has products, users, constraints, +// or shared accounts associated with it. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog's -// API operation TerminateProvisionedProduct for usage and error information. +// API operation DeletePortfolio for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. // -func (c *ServiceCatalog) TerminateProvisionedProduct(input *TerminateProvisionedProductInput) (*TerminateProvisionedProductOutput, error) { - req, out := c.TerminateProvisionedProductRequest(input) +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The operation was requested against a resource that is currently in use. +// Free the resource from use and retry the operation. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeletePortfolio +func (c *ServiceCatalog) DeletePortfolio(input *DeletePortfolioInput) (*DeletePortfolioOutput, error) { + req, out := c.DeletePortfolioRequest(input) err := req.Send() return out, err } -const opUpdateProvisionedProduct = "UpdateProvisionedProduct" +const opDeletePortfolioShare = "DeletePortfolioShare" -// UpdateProvisionedProductRequest generates a "aws/request.Request" representing the -// client's request for the UpdateProvisionedProduct operation. The "output" return +// DeletePortfolioShareRequest generates a "aws/request.Request" representing the +// client's request for the DeletePortfolioShare operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See UpdateProvisionedProduct for usage and error information. +// See DeletePortfolioShare for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the UpdateProvisionedProduct method directly +// you just want the service response, call the DeletePortfolioShare method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the UpdateProvisionedProductRequest method. -// req, resp := client.UpdateProvisionedProductRequest(params) +// // Example sending a request using the DeletePortfolioShareRequest method. +// req, resp := client.DeletePortfolioShareRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *ServiceCatalog) UpdateProvisionedProductRequest(input *UpdateProvisionedProductInput) (req *request.Request, output *UpdateProvisionedProductOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeletePortfolioShare +func (c *ServiceCatalog) DeletePortfolioShareRequest(input *DeletePortfolioShareInput) (req *request.Request, output *DeletePortfolioShareOutput) { op := &request.Operation{ - Name: opUpdateProvisionedProduct, + Name: opDeletePortfolioShare, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateProvisionedProductInput{} + input = &DeletePortfolioShareInput{} } + output = &DeletePortfolioShareOutput{} req = c.newRequest(op, input, output) - output = &UpdateProvisionedProductOutput{} - req.Data = output return } -// UpdateProvisionedProduct API operation for AWS Service Catalog. -// -// Requests updates to the configuration of an existing ProvisionedProduct object. -// If there are tags associated with the object, they cannot be updated or added -// with this operation. Depending on the specific updates requested, this operation -// may update with no interruption, with some interruption, or replace the ProvisionedProduct -// object entirely. +// DeletePortfolioShare API operation for AWS Service Catalog. // -// You can check the status of this request using the DescribeRecord operation. +// Deletes the specified portfolio share. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog's -// API operation UpdateProvisionedProduct for usage and error information. +// API operation DeletePortfolioShare for usage and error information. // // Returned Error Codes: -// * InvalidParametersException -// One or more parameters provided to the operation are invalid. -// -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. // -func (c *ServiceCatalog) UpdateProvisionedProduct(input *UpdateProvisionedProductInput) (*UpdateProvisionedProductOutput, error) { - req, out := c.UpdateProvisionedProductRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeletePortfolioShare +func (c *ServiceCatalog) DeletePortfolioShare(input *DeletePortfolioShareInput) (*DeletePortfolioShareOutput, error) { + req, out := c.DeletePortfolioShareRequest(input) err := req.Send() return out, err } -// The access level to limit results. -type AccessLevelFilter struct { - _ struct{} `type:"structure"` - - // Specifies the access level. - // - // Account allows results at the account level. - // - // Role allows results based on the federated role of the specified user. - // - // User allows results limited to the specified user. - Key *string `type:"string" enum:"AccessLevelFilterKey"` - - // Specifies the user to which the access level applies. A value of Self is - // currently supported. - Value *string `type:"string"` -} +const opDeleteProduct = "DeleteProduct" -// String returns the string representation -func (s AccessLevelFilter) String() string { - return awsutil.Prettify(s) -} +// DeleteProductRequest generates a "aws/request.Request" representing the +// client's request for the DeleteProduct operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteProduct for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteProduct method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteProductRequest method. +// req, resp := client.DeleteProductRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeleteProduct +func (c *ServiceCatalog) DeleteProductRequest(input *DeleteProductInput) (req *request.Request, output *DeleteProductOutput) { + op := &request.Operation{ + Name: opDeleteProduct, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteProductInput{} + } + + output = &DeleteProductOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteProduct API operation for AWS Service Catalog. +// +// Deletes the specified product. This operation will not work with a product +// that has been shared with you or is associated with a portfolio. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation DeleteProduct for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The operation was requested against a resource that is currently in use. +// Free the resource from use and retry the operation. +// +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeleteProduct +func (c *ServiceCatalog) DeleteProduct(input *DeleteProductInput) (*DeleteProductOutput, error) { + req, out := c.DeleteProductRequest(input) + err := req.Send() + return out, err +} + +const opDeleteProvisioningArtifact = "DeleteProvisioningArtifact" + +// DeleteProvisioningArtifactRequest generates a "aws/request.Request" representing the +// client's request for the DeleteProvisioningArtifact operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteProvisioningArtifact for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteProvisioningArtifact method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteProvisioningArtifactRequest method. +// req, resp := client.DeleteProvisioningArtifactRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeleteProvisioningArtifact +func (c *ServiceCatalog) DeleteProvisioningArtifactRequest(input *DeleteProvisioningArtifactInput) (req *request.Request, output *DeleteProvisioningArtifactOutput) { + op := &request.Operation{ + Name: opDeleteProvisioningArtifact, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteProvisioningArtifactInput{} + } + + output = &DeleteProvisioningArtifactOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteProvisioningArtifact API operation for AWS Service Catalog. +// +// Deletes the specified provisioning artifact. This operation will not work +// on a provisioning artifact associated with a product that has been shared +// with you, or on the last provisioning artifact associated with a product +// (a product must have at least one provisioning artifact). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation DeleteProvisioningArtifact for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The operation was requested against a resource that is currently in use. +// Free the resource from use and retry the operation. +// +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeleteProvisioningArtifact +func (c *ServiceCatalog) DeleteProvisioningArtifact(input *DeleteProvisioningArtifactInput) (*DeleteProvisioningArtifactOutput, error) { + req, out := c.DeleteProvisioningArtifactRequest(input) + err := req.Send() + return out, err +} + +const opDescribeConstraint = "DescribeConstraint" + +// DescribeConstraintRequest generates a "aws/request.Request" representing the +// client's request for the DescribeConstraint operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeConstraint for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeConstraint method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeConstraintRequest method. +// req, resp := client.DescribeConstraintRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeConstraint +func (c *ServiceCatalog) DescribeConstraintRequest(input *DescribeConstraintInput) (req *request.Request, output *DescribeConstraintOutput) { + op := &request.Operation{ + Name: opDescribeConstraint, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeConstraintInput{} + } + + output = &DescribeConstraintOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeConstraint API operation for AWS Service Catalog. +// +// Retrieves detailed information for a specified constraint. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation DescribeConstraint for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeConstraint +func (c *ServiceCatalog) DescribeConstraint(input *DescribeConstraintInput) (*DescribeConstraintOutput, error) { + req, out := c.DescribeConstraintRequest(input) + err := req.Send() + return out, err +} + +const opDescribePortfolio = "DescribePortfolio" + +// DescribePortfolioRequest generates a "aws/request.Request" representing the +// client's request for the DescribePortfolio operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribePortfolio for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribePortfolio method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribePortfolioRequest method. +// req, resp := client.DescribePortfolioRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribePortfolio +func (c *ServiceCatalog) DescribePortfolioRequest(input *DescribePortfolioInput) (req *request.Request, output *DescribePortfolioOutput) { + op := &request.Operation{ + Name: opDescribePortfolio, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribePortfolioInput{} + } + + output = &DescribePortfolioOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribePortfolio API operation for AWS Service Catalog. +// +// Retrieves detailed information and any tags associated with the specified +// portfolio. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation DescribePortfolio for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribePortfolio +func (c *ServiceCatalog) DescribePortfolio(input *DescribePortfolioInput) (*DescribePortfolioOutput, error) { + req, out := c.DescribePortfolioRequest(input) + err := req.Send() + return out, err +} + +const opDescribeProduct = "DescribeProduct" + +// DescribeProductRequest generates a "aws/request.Request" representing the +// client's request for the DescribeProduct operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeProduct for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeProduct method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeProductRequest method. +// req, resp := client.DescribeProductRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProduct +func (c *ServiceCatalog) DescribeProductRequest(input *DescribeProductInput) (req *request.Request, output *DescribeProductOutput) { + op := &request.Operation{ + Name: opDescribeProduct, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeProductInput{} + } + + output = &DescribeProductOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeProduct API operation for AWS Service Catalog. +// +// Retrieves information about a specified product. +// +// This operation is functionally identical to DescribeProductView except that +// it takes as input ProductId instead of ProductViewId. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation DescribeProduct for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProduct +func (c *ServiceCatalog) DescribeProduct(input *DescribeProductInput) (*DescribeProductOutput, error) { + req, out := c.DescribeProductRequest(input) + err := req.Send() + return out, err +} + +const opDescribeProductAsAdmin = "DescribeProductAsAdmin" + +// DescribeProductAsAdminRequest generates a "aws/request.Request" representing the +// client's request for the DescribeProductAsAdmin operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeProductAsAdmin for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeProductAsAdmin method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeProductAsAdminRequest method. +// req, resp := client.DescribeProductAsAdminRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProductAsAdmin +func (c *ServiceCatalog) DescribeProductAsAdminRequest(input *DescribeProductAsAdminInput) (req *request.Request, output *DescribeProductAsAdminOutput) { + op := &request.Operation{ + Name: opDescribeProductAsAdmin, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeProductAsAdminInput{} + } + + output = &DescribeProductAsAdminOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeProductAsAdmin API operation for AWS Service Catalog. +// +// Retrieves information about a specified product, run with administrator access. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation DescribeProductAsAdmin for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProductAsAdmin +func (c *ServiceCatalog) DescribeProductAsAdmin(input *DescribeProductAsAdminInput) (*DescribeProductAsAdminOutput, error) { + req, out := c.DescribeProductAsAdminRequest(input) + err := req.Send() + return out, err +} + +const opDescribeProductView = "DescribeProductView" + +// DescribeProductViewRequest generates a "aws/request.Request" representing the +// client's request for the DescribeProductView operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeProductView for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeProductView method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeProductViewRequest method. +// req, resp := client.DescribeProductViewRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProductView +func (c *ServiceCatalog) DescribeProductViewRequest(input *DescribeProductViewInput) (req *request.Request, output *DescribeProductViewOutput) { + op := &request.Operation{ + Name: opDescribeProductView, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeProductViewInput{} + } + + output = &DescribeProductViewOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeProductView API operation for AWS Service Catalog. +// +// Retrieves information about a specified product. +// +// This operation is functionally identical to DescribeProduct except that it +// takes as input ProductViewId instead of ProductId. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation DescribeProductView for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProductView +func (c *ServiceCatalog) DescribeProductView(input *DescribeProductViewInput) (*DescribeProductViewOutput, error) { + req, out := c.DescribeProductViewRequest(input) + err := req.Send() + return out, err +} + +const opDescribeProvisioningArtifact = "DescribeProvisioningArtifact" + +// DescribeProvisioningArtifactRequest generates a "aws/request.Request" representing the +// client's request for the DescribeProvisioningArtifact operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeProvisioningArtifact for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeProvisioningArtifact method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeProvisioningArtifactRequest method. +// req, resp := client.DescribeProvisioningArtifactRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProvisioningArtifact +func (c *ServiceCatalog) DescribeProvisioningArtifactRequest(input *DescribeProvisioningArtifactInput) (req *request.Request, output *DescribeProvisioningArtifactOutput) { + op := &request.Operation{ + Name: opDescribeProvisioningArtifact, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeProvisioningArtifactInput{} + } + + output = &DescribeProvisioningArtifactOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeProvisioningArtifact API operation for AWS Service Catalog. +// +// Retrieves detailed information about the specified provisioning artifact. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation DescribeProvisioningArtifact for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProvisioningArtifact +func (c *ServiceCatalog) DescribeProvisioningArtifact(input *DescribeProvisioningArtifactInput) (*DescribeProvisioningArtifactOutput, error) { + req, out := c.DescribeProvisioningArtifactRequest(input) + err := req.Send() + return out, err +} + +const opDescribeProvisioningParameters = "DescribeProvisioningParameters" + +// DescribeProvisioningParametersRequest generates a "aws/request.Request" representing the +// client's request for the DescribeProvisioningParameters operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeProvisioningParameters for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeProvisioningParameters method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeProvisioningParametersRequest method. +// req, resp := client.DescribeProvisioningParametersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProvisioningParameters +func (c *ServiceCatalog) DescribeProvisioningParametersRequest(input *DescribeProvisioningParametersInput) (req *request.Request, output *DescribeProvisioningParametersOutput) { + op := &request.Operation{ + Name: opDescribeProvisioningParameters, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeProvisioningParametersInput{} + } + + output = &DescribeProvisioningParametersOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeProvisioningParameters API operation for AWS Service Catalog. +// +// Provides information about parameters required to provision a specified product +// in a specified manner. Use this operation to obtain the list of ProvisioningArtifactParameters +// parameters available to call the ProvisionProduct operation for the specified +// product. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation DescribeProvisioningParameters for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProvisioningParameters +func (c *ServiceCatalog) DescribeProvisioningParameters(input *DescribeProvisioningParametersInput) (*DescribeProvisioningParametersOutput, error) { + req, out := c.DescribeProvisioningParametersRequest(input) + err := req.Send() + return out, err +} + +const opDescribeRecord = "DescribeRecord" + +// DescribeRecordRequest generates a "aws/request.Request" representing the +// client's request for the DescribeRecord operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeRecord for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeRecord method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeRecordRequest method. +// req, resp := client.DescribeRecordRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeRecord +func (c *ServiceCatalog) DescribeRecordRequest(input *DescribeRecordInput) (req *request.Request, output *DescribeRecordOutput) { + op := &request.Operation{ + Name: opDescribeRecord, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeRecordInput{} + } + + output = &DescribeRecordOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeRecord API operation for AWS Service Catalog. +// +// Retrieves a paginated list of the full details of a specific request. Use +// this operation after calling a request operation (ProvisionProduct, TerminateProvisionedProduct, +// or UpdateProvisionedProduct). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation DescribeRecord for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeRecord +func (c *ServiceCatalog) DescribeRecord(input *DescribeRecordInput) (*DescribeRecordOutput, error) { + req, out := c.DescribeRecordRequest(input) + err := req.Send() + return out, err +} + +const opDisassociatePrincipalFromPortfolio = "DisassociatePrincipalFromPortfolio" + +// DisassociatePrincipalFromPortfolioRequest generates a "aws/request.Request" representing the +// client's request for the DisassociatePrincipalFromPortfolio operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DisassociatePrincipalFromPortfolio for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DisassociatePrincipalFromPortfolio method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DisassociatePrincipalFromPortfolioRequest method. +// req, resp := client.DisassociatePrincipalFromPortfolioRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DisassociatePrincipalFromPortfolio +func (c *ServiceCatalog) DisassociatePrincipalFromPortfolioRequest(input *DisassociatePrincipalFromPortfolioInput) (req *request.Request, output *DisassociatePrincipalFromPortfolioOutput) { + op := &request.Operation{ + Name: opDisassociatePrincipalFromPortfolio, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisassociatePrincipalFromPortfolioInput{} + } + + output = &DisassociatePrincipalFromPortfolioOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociatePrincipalFromPortfolio API operation for AWS Service Catalog. +// +// Disassociates a previously associated principal ARN from a specified portfolio. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation DisassociatePrincipalFromPortfolio for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DisassociatePrincipalFromPortfolio +func (c *ServiceCatalog) DisassociatePrincipalFromPortfolio(input *DisassociatePrincipalFromPortfolioInput) (*DisassociatePrincipalFromPortfolioOutput, error) { + req, out := c.DisassociatePrincipalFromPortfolioRequest(input) + err := req.Send() + return out, err +} + +const opDisassociateProductFromPortfolio = "DisassociateProductFromPortfolio" + +// DisassociateProductFromPortfolioRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateProductFromPortfolio operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DisassociateProductFromPortfolio for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DisassociateProductFromPortfolio method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DisassociateProductFromPortfolioRequest method. +// req, resp := client.DisassociateProductFromPortfolioRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DisassociateProductFromPortfolio +func (c *ServiceCatalog) DisassociateProductFromPortfolioRequest(input *DisassociateProductFromPortfolioInput) (req *request.Request, output *DisassociateProductFromPortfolioOutput) { + op := &request.Operation{ + Name: opDisassociateProductFromPortfolio, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisassociateProductFromPortfolioInput{} + } + + output = &DisassociateProductFromPortfolioOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateProductFromPortfolio API operation for AWS Service Catalog. +// +// Disassociates the specified product from the specified portfolio. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation DisassociateProductFromPortfolio for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DisassociateProductFromPortfolio +func (c *ServiceCatalog) DisassociateProductFromPortfolio(input *DisassociateProductFromPortfolioInput) (*DisassociateProductFromPortfolioOutput, error) { + req, out := c.DisassociateProductFromPortfolioRequest(input) + err := req.Send() + return out, err +} + +const opListAcceptedPortfolioShares = "ListAcceptedPortfolioShares" + +// ListAcceptedPortfolioSharesRequest generates a "aws/request.Request" representing the +// client's request for the ListAcceptedPortfolioShares operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListAcceptedPortfolioShares for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListAcceptedPortfolioShares method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListAcceptedPortfolioSharesRequest method. +// req, resp := client.ListAcceptedPortfolioSharesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListAcceptedPortfolioShares +func (c *ServiceCatalog) ListAcceptedPortfolioSharesRequest(input *ListAcceptedPortfolioSharesInput) (req *request.Request, output *ListAcceptedPortfolioSharesOutput) { + op := &request.Operation{ + Name: opListAcceptedPortfolioShares, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListAcceptedPortfolioSharesInput{} + } + + output = &ListAcceptedPortfolioSharesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAcceptedPortfolioShares API operation for AWS Service Catalog. +// +// Lists details of all portfolios for which sharing was accepted by this account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation ListAcceptedPortfolioShares for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListAcceptedPortfolioShares +func (c *ServiceCatalog) ListAcceptedPortfolioShares(input *ListAcceptedPortfolioSharesInput) (*ListAcceptedPortfolioSharesOutput, error) { + req, out := c.ListAcceptedPortfolioSharesRequest(input) + err := req.Send() + return out, err +} + +const opListConstraintsForPortfolio = "ListConstraintsForPortfolio" + +// ListConstraintsForPortfolioRequest generates a "aws/request.Request" representing the +// client's request for the ListConstraintsForPortfolio operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListConstraintsForPortfolio for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListConstraintsForPortfolio method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListConstraintsForPortfolioRequest method. +// req, resp := client.ListConstraintsForPortfolioRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListConstraintsForPortfolio +func (c *ServiceCatalog) ListConstraintsForPortfolioRequest(input *ListConstraintsForPortfolioInput) (req *request.Request, output *ListConstraintsForPortfolioOutput) { + op := &request.Operation{ + Name: opListConstraintsForPortfolio, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListConstraintsForPortfolioInput{} + } + + output = &ListConstraintsForPortfolioOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListConstraintsForPortfolio API operation for AWS Service Catalog. +// +// Retrieves detailed constraint information for the specified portfolio and +// product. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation ListConstraintsForPortfolio for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListConstraintsForPortfolio +func (c *ServiceCatalog) ListConstraintsForPortfolio(input *ListConstraintsForPortfolioInput) (*ListConstraintsForPortfolioOutput, error) { + req, out := c.ListConstraintsForPortfolioRequest(input) + err := req.Send() + return out, err +} + +const opListLaunchPaths = "ListLaunchPaths" + +// ListLaunchPathsRequest generates a "aws/request.Request" representing the +// client's request for the ListLaunchPaths operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListLaunchPaths for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListLaunchPaths method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListLaunchPathsRequest method. +// req, resp := client.ListLaunchPathsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListLaunchPaths +func (c *ServiceCatalog) ListLaunchPathsRequest(input *ListLaunchPathsInput) (req *request.Request, output *ListLaunchPathsOutput) { + op := &request.Operation{ + Name: opListLaunchPaths, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListLaunchPathsInput{} + } + + output = &ListLaunchPathsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListLaunchPaths API operation for AWS Service Catalog. +// +// Returns a paginated list of all paths to a specified product. A path is how +// the user has access to a specified product, and is necessary when provisioning +// a product. A path also determines the constraints put on the product. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation ListLaunchPaths for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListLaunchPaths +func (c *ServiceCatalog) ListLaunchPaths(input *ListLaunchPathsInput) (*ListLaunchPathsOutput, error) { + req, out := c.ListLaunchPathsRequest(input) + err := req.Send() + return out, err +} + +const opListPortfolioAccess = "ListPortfolioAccess" + +// ListPortfolioAccessRequest generates a "aws/request.Request" representing the +// client's request for the ListPortfolioAccess operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListPortfolioAccess for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListPortfolioAccess method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListPortfolioAccessRequest method. +// req, resp := client.ListPortfolioAccessRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPortfolioAccess +func (c *ServiceCatalog) ListPortfolioAccessRequest(input *ListPortfolioAccessInput) (req *request.Request, output *ListPortfolioAccessOutput) { + op := &request.Operation{ + Name: opListPortfolioAccess, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListPortfolioAccessInput{} + } + + output = &ListPortfolioAccessOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListPortfolioAccess API operation for AWS Service Catalog. +// +// Lists the account IDs that have been authorized sharing of the specified +// portfolio. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation ListPortfolioAccess for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPortfolioAccess +func (c *ServiceCatalog) ListPortfolioAccess(input *ListPortfolioAccessInput) (*ListPortfolioAccessOutput, error) { + req, out := c.ListPortfolioAccessRequest(input) + err := req.Send() + return out, err +} + +const opListPortfolios = "ListPortfolios" + +// ListPortfoliosRequest generates a "aws/request.Request" representing the +// client's request for the ListPortfolios operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListPortfolios for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListPortfolios method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListPortfoliosRequest method. +// req, resp := client.ListPortfoliosRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPortfolios +func (c *ServiceCatalog) ListPortfoliosRequest(input *ListPortfoliosInput) (req *request.Request, output *ListPortfoliosOutput) { + op := &request.Operation{ + Name: opListPortfolios, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListPortfoliosInput{} + } + + output = &ListPortfoliosOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListPortfolios API operation for AWS Service Catalog. +// +// Lists all portfolios in the catalog. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation ListPortfolios for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPortfolios +func (c *ServiceCatalog) ListPortfolios(input *ListPortfoliosInput) (*ListPortfoliosOutput, error) { + req, out := c.ListPortfoliosRequest(input) + err := req.Send() + return out, err +} + +const opListPortfoliosForProduct = "ListPortfoliosForProduct" + +// ListPortfoliosForProductRequest generates a "aws/request.Request" representing the +// client's request for the ListPortfoliosForProduct operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListPortfoliosForProduct for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListPortfoliosForProduct method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListPortfoliosForProductRequest method. +// req, resp := client.ListPortfoliosForProductRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPortfoliosForProduct +func (c *ServiceCatalog) ListPortfoliosForProductRequest(input *ListPortfoliosForProductInput) (req *request.Request, output *ListPortfoliosForProductOutput) { + op := &request.Operation{ + Name: opListPortfoliosForProduct, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListPortfoliosForProductInput{} + } + + output = &ListPortfoliosForProductOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListPortfoliosForProduct API operation for AWS Service Catalog. +// +// Lists all portfolios that the specified product is associated with. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation ListPortfoliosForProduct for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPortfoliosForProduct +func (c *ServiceCatalog) ListPortfoliosForProduct(input *ListPortfoliosForProductInput) (*ListPortfoliosForProductOutput, error) { + req, out := c.ListPortfoliosForProductRequest(input) + err := req.Send() + return out, err +} + +const opListPrincipalsForPortfolio = "ListPrincipalsForPortfolio" + +// ListPrincipalsForPortfolioRequest generates a "aws/request.Request" representing the +// client's request for the ListPrincipalsForPortfolio operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListPrincipalsForPortfolio for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListPrincipalsForPortfolio method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListPrincipalsForPortfolioRequest method. +// req, resp := client.ListPrincipalsForPortfolioRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPrincipalsForPortfolio +func (c *ServiceCatalog) ListPrincipalsForPortfolioRequest(input *ListPrincipalsForPortfolioInput) (req *request.Request, output *ListPrincipalsForPortfolioOutput) { + op := &request.Operation{ + Name: opListPrincipalsForPortfolio, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListPrincipalsForPortfolioInput{} + } + + output = &ListPrincipalsForPortfolioOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListPrincipalsForPortfolio API operation for AWS Service Catalog. +// +// Lists all principal ARNs associated with the specified portfolio. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation ListPrincipalsForPortfolio for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPrincipalsForPortfolio +func (c *ServiceCatalog) ListPrincipalsForPortfolio(input *ListPrincipalsForPortfolioInput) (*ListPrincipalsForPortfolioOutput, error) { + req, out := c.ListPrincipalsForPortfolioRequest(input) + err := req.Send() + return out, err +} + +const opListProvisioningArtifacts = "ListProvisioningArtifacts" + +// ListProvisioningArtifactsRequest generates a "aws/request.Request" representing the +// client's request for the ListProvisioningArtifacts operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListProvisioningArtifacts for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListProvisioningArtifacts method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListProvisioningArtifactsRequest method. +// req, resp := client.ListProvisioningArtifactsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListProvisioningArtifacts +func (c *ServiceCatalog) ListProvisioningArtifactsRequest(input *ListProvisioningArtifactsInput) (req *request.Request, output *ListProvisioningArtifactsOutput) { + op := &request.Operation{ + Name: opListProvisioningArtifacts, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListProvisioningArtifactsInput{} + } + + output = &ListProvisioningArtifactsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListProvisioningArtifacts API operation for AWS Service Catalog. +// +// Lists all provisioning artifacts associated with the specified product. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation ListProvisioningArtifacts for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListProvisioningArtifacts +func (c *ServiceCatalog) ListProvisioningArtifacts(input *ListProvisioningArtifactsInput) (*ListProvisioningArtifactsOutput, error) { + req, out := c.ListProvisioningArtifactsRequest(input) + err := req.Send() + return out, err +} + +const opListRecordHistory = "ListRecordHistory" + +// ListRecordHistoryRequest generates a "aws/request.Request" representing the +// client's request for the ListRecordHistory operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListRecordHistory for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListRecordHistory method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListRecordHistoryRequest method. +// req, resp := client.ListRecordHistoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListRecordHistory +func (c *ServiceCatalog) ListRecordHistoryRequest(input *ListRecordHistoryInput) (req *request.Request, output *ListRecordHistoryOutput) { + op := &request.Operation{ + Name: opListRecordHistory, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListRecordHistoryInput{} + } + + output = &ListRecordHistoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListRecordHistory API operation for AWS Service Catalog. +// +// Returns a paginated list of all performed requests, in the form of RecordDetails +// objects that are filtered as specified. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation ListRecordHistory for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListRecordHistory +func (c *ServiceCatalog) ListRecordHistory(input *ListRecordHistoryInput) (*ListRecordHistoryOutput, error) { + req, out := c.ListRecordHistoryRequest(input) + err := req.Send() + return out, err +} + +const opProvisionProduct = "ProvisionProduct" + +// ProvisionProductRequest generates a "aws/request.Request" representing the +// client's request for the ProvisionProduct operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ProvisionProduct for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ProvisionProduct method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ProvisionProductRequest method. +// req, resp := client.ProvisionProductRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ProvisionProduct +func (c *ServiceCatalog) ProvisionProductRequest(input *ProvisionProductInput) (req *request.Request, output *ProvisionProductOutput) { + op := &request.Operation{ + Name: opProvisionProduct, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ProvisionProductInput{} + } + + output = &ProvisionProductOutput{} + req = c.newRequest(op, input, output) + return +} + +// ProvisionProduct API operation for AWS Service Catalog. +// +// Requests a Provision of a specified product. A ProvisionedProduct is a resourced +// instance for a product. For example, provisioning a CloudFormation-template-backed +// product results in launching a CloudFormation stack and all the underlying +// resources that come with it. +// +// You can check the status of this request using the DescribeRecord operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation ProvisionProduct for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeDuplicateResourceException "DuplicateResourceException" +// The specified resource is a duplicate. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ProvisionProduct +func (c *ServiceCatalog) ProvisionProduct(input *ProvisionProductInput) (*ProvisionProductOutput, error) { + req, out := c.ProvisionProductRequest(input) + err := req.Send() + return out, err +} + +const opRejectPortfolioShare = "RejectPortfolioShare" + +// RejectPortfolioShareRequest generates a "aws/request.Request" representing the +// client's request for the RejectPortfolioShare operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See RejectPortfolioShare for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the RejectPortfolioShare method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the RejectPortfolioShareRequest method. +// req, resp := client.RejectPortfolioShareRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/RejectPortfolioShare +func (c *ServiceCatalog) RejectPortfolioShareRequest(input *RejectPortfolioShareInput) (req *request.Request, output *RejectPortfolioShareOutput) { + op := &request.Operation{ + Name: opRejectPortfolioShare, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RejectPortfolioShareInput{} + } + + output = &RejectPortfolioShareOutput{} + req = c.newRequest(op, input, output) + return +} + +// RejectPortfolioShare API operation for AWS Service Catalog. +// +// Rejects an offer to share a portfolio. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation RejectPortfolioShare for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/RejectPortfolioShare +func (c *ServiceCatalog) RejectPortfolioShare(input *RejectPortfolioShareInput) (*RejectPortfolioShareOutput, error) { + req, out := c.RejectPortfolioShareRequest(input) + err := req.Send() + return out, err +} + +const opScanProvisionedProducts = "ScanProvisionedProducts" + +// ScanProvisionedProductsRequest generates a "aws/request.Request" representing the +// client's request for the ScanProvisionedProducts operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ScanProvisionedProducts for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ScanProvisionedProducts method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ScanProvisionedProductsRequest method. +// req, resp := client.ScanProvisionedProductsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ScanProvisionedProducts +func (c *ServiceCatalog) ScanProvisionedProductsRequest(input *ScanProvisionedProductsInput) (req *request.Request, output *ScanProvisionedProductsOutput) { + op := &request.Operation{ + Name: opScanProvisionedProducts, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ScanProvisionedProductsInput{} + } + + output = &ScanProvisionedProductsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ScanProvisionedProducts API operation for AWS Service Catalog. +// +// Returns a paginated list of all the ProvisionedProduct objects that are currently +// available (not terminated). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation ScanProvisionedProducts for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ScanProvisionedProducts +func (c *ServiceCatalog) ScanProvisionedProducts(input *ScanProvisionedProductsInput) (*ScanProvisionedProductsOutput, error) { + req, out := c.ScanProvisionedProductsRequest(input) + err := req.Send() + return out, err +} + +const opSearchProducts = "SearchProducts" + +// SearchProductsRequest generates a "aws/request.Request" representing the +// client's request for the SearchProducts operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See SearchProducts for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the SearchProducts method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the SearchProductsRequest method. +// req, resp := client.SearchProductsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/SearchProducts +func (c *ServiceCatalog) SearchProductsRequest(input *SearchProductsInput) (req *request.Request, output *SearchProductsOutput) { + op := &request.Operation{ + Name: opSearchProducts, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &SearchProductsInput{} + } + + output = &SearchProductsOutput{} + req = c.newRequest(op, input, output) + return +} + +// SearchProducts API operation for AWS Service Catalog. +// +// Returns a paginated list all of the Products objects to which the caller +// has access. +// +// The output of this operation can be used as input for other operations, such +// as DescribeProductView. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation SearchProducts for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/SearchProducts +func (c *ServiceCatalog) SearchProducts(input *SearchProductsInput) (*SearchProductsOutput, error) { + req, out := c.SearchProductsRequest(input) + err := req.Send() + return out, err +} + +const opSearchProductsAsAdmin = "SearchProductsAsAdmin" + +// SearchProductsAsAdminRequest generates a "aws/request.Request" representing the +// client's request for the SearchProductsAsAdmin operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See SearchProductsAsAdmin for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the SearchProductsAsAdmin method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the SearchProductsAsAdminRequest method. +// req, resp := client.SearchProductsAsAdminRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/SearchProductsAsAdmin +func (c *ServiceCatalog) SearchProductsAsAdminRequest(input *SearchProductsAsAdminInput) (req *request.Request, output *SearchProductsAsAdminOutput) { + op := &request.Operation{ + Name: opSearchProductsAsAdmin, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &SearchProductsAsAdminInput{} + } + + output = &SearchProductsAsAdminOutput{} + req = c.newRequest(op, input, output) + return +} + +// SearchProductsAsAdmin API operation for AWS Service Catalog. +// +// Retrieves summary and status information about all products created within +// the caller's account. If a portfolio ID is provided, this operation retrieves +// information for only those products that are associated with the specified +// portfolio. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation SearchProductsAsAdmin for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/SearchProductsAsAdmin +func (c *ServiceCatalog) SearchProductsAsAdmin(input *SearchProductsAsAdminInput) (*SearchProductsAsAdminOutput, error) { + req, out := c.SearchProductsAsAdminRequest(input) + err := req.Send() + return out, err +} + +const opTerminateProvisionedProduct = "TerminateProvisionedProduct" + +// TerminateProvisionedProductRequest generates a "aws/request.Request" representing the +// client's request for the TerminateProvisionedProduct operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See TerminateProvisionedProduct for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the TerminateProvisionedProduct method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the TerminateProvisionedProductRequest method. +// req, resp := client.TerminateProvisionedProductRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/TerminateProvisionedProduct +func (c *ServiceCatalog) TerminateProvisionedProductRequest(input *TerminateProvisionedProductInput) (req *request.Request, output *TerminateProvisionedProductOutput) { + op := &request.Operation{ + Name: opTerminateProvisionedProduct, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &TerminateProvisionedProductInput{} + } + + output = &TerminateProvisionedProductOutput{} + req = c.newRequest(op, input, output) + return +} + +// TerminateProvisionedProduct API operation for AWS Service Catalog. +// +// Requests termination of an existing ProvisionedProduct object. If there are +// Tags associated with the object, they are terminated when the ProvisionedProduct +// object is terminated. +// +// This operation does not delete any records associated with the ProvisionedProduct +// object. +// +// You can check the status of this request using the DescribeRecord operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation TerminateProvisionedProduct for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/TerminateProvisionedProduct +func (c *ServiceCatalog) TerminateProvisionedProduct(input *TerminateProvisionedProductInput) (*TerminateProvisionedProductOutput, error) { + req, out := c.TerminateProvisionedProductRequest(input) + err := req.Send() + return out, err +} + +const opUpdateConstraint = "UpdateConstraint" + +// UpdateConstraintRequest generates a "aws/request.Request" representing the +// client's request for the UpdateConstraint operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateConstraint for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateConstraint method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateConstraintRequest method. +// req, resp := client.UpdateConstraintRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateConstraint +func (c *ServiceCatalog) UpdateConstraintRequest(input *UpdateConstraintInput) (req *request.Request, output *UpdateConstraintOutput) { + op := &request.Operation{ + Name: opUpdateConstraint, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateConstraintInput{} + } + + output = &UpdateConstraintOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateConstraint API operation for AWS Service Catalog. +// +// Updates an existing constraint. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation UpdateConstraint for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateConstraint +func (c *ServiceCatalog) UpdateConstraint(input *UpdateConstraintInput) (*UpdateConstraintOutput, error) { + req, out := c.UpdateConstraintRequest(input) + err := req.Send() + return out, err +} + +const opUpdatePortfolio = "UpdatePortfolio" + +// UpdatePortfolioRequest generates a "aws/request.Request" representing the +// client's request for the UpdatePortfolio operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdatePortfolio for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdatePortfolio method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdatePortfolioRequest method. +// req, resp := client.UpdatePortfolioRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdatePortfolio +func (c *ServiceCatalog) UpdatePortfolioRequest(input *UpdatePortfolioInput) (req *request.Request, output *UpdatePortfolioOutput) { + op := &request.Operation{ + Name: opUpdatePortfolio, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdatePortfolioInput{} + } + + output = &UpdatePortfolioOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdatePortfolio API operation for AWS Service Catalog. +// +// Updates the specified portfolio's details. This operation will not work with +// a product that has been shared with you. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation UpdatePortfolio for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The current limits of the service would have been exceeded by this operation. +// Reduce the resource use or increase the service limits and retry the operation. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdatePortfolio +func (c *ServiceCatalog) UpdatePortfolio(input *UpdatePortfolioInput) (*UpdatePortfolioOutput, error) { + req, out := c.UpdatePortfolioRequest(input) + err := req.Send() + return out, err +} + +const opUpdateProduct = "UpdateProduct" + +// UpdateProductRequest generates a "aws/request.Request" representing the +// client's request for the UpdateProduct operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateProduct for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateProduct method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateProductRequest method. +// req, resp := client.UpdateProductRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateProduct +func (c *ServiceCatalog) UpdateProductRequest(input *UpdateProductInput) (req *request.Request, output *UpdateProductOutput) { + op := &request.Operation{ + Name: opUpdateProduct, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateProductInput{} + } + + output = &UpdateProductOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateProduct API operation for AWS Service Catalog. +// +// Updates an existing product. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation UpdateProduct for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateProduct +func (c *ServiceCatalog) UpdateProduct(input *UpdateProductInput) (*UpdateProductOutput, error) { + req, out := c.UpdateProductRequest(input) + err := req.Send() + return out, err +} + +const opUpdateProvisionedProduct = "UpdateProvisionedProduct" + +// UpdateProvisionedProductRequest generates a "aws/request.Request" representing the +// client's request for the UpdateProvisionedProduct operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateProvisionedProduct for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateProvisionedProduct method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateProvisionedProductRequest method. +// req, resp := client.UpdateProvisionedProductRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateProvisionedProduct +func (c *ServiceCatalog) UpdateProvisionedProductRequest(input *UpdateProvisionedProductInput) (req *request.Request, output *UpdateProvisionedProductOutput) { + op := &request.Operation{ + Name: opUpdateProvisionedProduct, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateProvisionedProductInput{} + } + + output = &UpdateProvisionedProductOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateProvisionedProduct API operation for AWS Service Catalog. +// +// Requests updates to the configuration of an existing ProvisionedProduct object. +// If there are tags associated with the object, they cannot be updated or added +// with this operation. Depending on the specific updates requested, this operation +// may update with no interruption, with some interruption, or replace the ProvisionedProduct +// object entirely. +// +// You can check the status of this request using the DescribeRecord operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation UpdateProvisionedProduct for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateProvisionedProduct +func (c *ServiceCatalog) UpdateProvisionedProduct(input *UpdateProvisionedProductInput) (*UpdateProvisionedProductOutput, error) { + req, out := c.UpdateProvisionedProductRequest(input) + err := req.Send() + return out, err +} + +const opUpdateProvisioningArtifact = "UpdateProvisioningArtifact" + +// UpdateProvisioningArtifactRequest generates a "aws/request.Request" representing the +// client's request for the UpdateProvisioningArtifact operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateProvisioningArtifact for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateProvisioningArtifact method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateProvisioningArtifactRequest method. +// req, resp := client.UpdateProvisioningArtifactRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateProvisioningArtifact +func (c *ServiceCatalog) UpdateProvisioningArtifactRequest(input *UpdateProvisioningArtifactInput) (req *request.Request, output *UpdateProvisioningArtifactOutput) { + op := &request.Operation{ + Name: opUpdateProvisioningArtifact, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateProvisioningArtifactInput{} + } + + output = &UpdateProvisioningArtifactOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateProvisioningArtifact API operation for AWS Service Catalog. +// +// Updates an existing provisioning artifact's information. This operation will +// not work on a provisioning artifact associated with a product that has been +// shared with you. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation UpdateProvisioningArtifact for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateProvisioningArtifact +func (c *ServiceCatalog) UpdateProvisioningArtifact(input *UpdateProvisioningArtifactInput) (*UpdateProvisioningArtifactOutput, error) { + req, out := c.UpdateProvisioningArtifactRequest(input) + err := req.Send() + return out, err +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/AcceptPortfolioShareInput +type AcceptPortfolioShareInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The portfolio identifier. + // + // PortfolioId is a required field + PortfolioId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AcceptPortfolioShareInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AcceptPortfolioShareInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AcceptPortfolioShareInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AcceptPortfolioShareInput"} + if s.PortfolioId == nil { + invalidParams.Add(request.NewErrParamRequired("PortfolioId")) + } + if s.PortfolioId != nil && len(*s.PortfolioId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PortfolioId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *AcceptPortfolioShareInput) SetAcceptLanguage(v string) *AcceptPortfolioShareInput { + s.AcceptLanguage = &v + return s +} + +// SetPortfolioId sets the PortfolioId field's value. +func (s *AcceptPortfolioShareInput) SetPortfolioId(v string) *AcceptPortfolioShareInput { + s.PortfolioId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/AcceptPortfolioShareOutput +type AcceptPortfolioShareOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AcceptPortfolioShareOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AcceptPortfolioShareOutput) GoString() string { + return s.String() +} + +// The access level to limit results. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/AccessLevelFilter +type AccessLevelFilter struct { + _ struct{} `type:"structure"` + + // Specifies the access level. + // + // Account allows results at the account level. + // + // Role allows results based on the federated role of the specified user. + // + // User allows results limited to the specified user. + Key *string `type:"string" enum:"AccessLevelFilterKey"` + + // Specifies the user to which the access level applies. A value of Self is + // currently supported. + Value *string `type:"string"` +} + +// String returns the string representation +func (s AccessLevelFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessLevelFilter) GoString() string { + return s.String() +} + +// SetKey sets the Key field's value. +func (s *AccessLevelFilter) SetKey(v string) *AccessLevelFilter { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *AccessLevelFilter) SetValue(v string) *AccessLevelFilter { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/AssociatePrincipalWithPortfolioInput +type AssociatePrincipalWithPortfolioInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The portfolio identifier. + // + // PortfolioId is a required field + PortfolioId *string `min:"1" type:"string" required:"true"` + + // The ARN representing the principal (IAM user, role, or group). + // + // PrincipalARN is a required field + PrincipalARN *string `min:"1" type:"string" required:"true"` + + // The principal type. Must be IAM + // + // PrincipalType is a required field + PrincipalType *string `type:"string" required:"true" enum:"PrincipalType"` +} + +// String returns the string representation +func (s AssociatePrincipalWithPortfolioInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociatePrincipalWithPortfolioInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociatePrincipalWithPortfolioInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociatePrincipalWithPortfolioInput"} + if s.PortfolioId == nil { + invalidParams.Add(request.NewErrParamRequired("PortfolioId")) + } + if s.PortfolioId != nil && len(*s.PortfolioId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PortfolioId", 1)) + } + if s.PrincipalARN == nil { + invalidParams.Add(request.NewErrParamRequired("PrincipalARN")) + } + if s.PrincipalARN != nil && len(*s.PrincipalARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PrincipalARN", 1)) + } + if s.PrincipalType == nil { + invalidParams.Add(request.NewErrParamRequired("PrincipalType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *AssociatePrincipalWithPortfolioInput) SetAcceptLanguage(v string) *AssociatePrincipalWithPortfolioInput { + s.AcceptLanguage = &v + return s +} + +// SetPortfolioId sets the PortfolioId field's value. +func (s *AssociatePrincipalWithPortfolioInput) SetPortfolioId(v string) *AssociatePrincipalWithPortfolioInput { + s.PortfolioId = &v + return s +} + +// SetPrincipalARN sets the PrincipalARN field's value. +func (s *AssociatePrincipalWithPortfolioInput) SetPrincipalARN(v string) *AssociatePrincipalWithPortfolioInput { + s.PrincipalARN = &v + return s +} + +// SetPrincipalType sets the PrincipalType field's value. +func (s *AssociatePrincipalWithPortfolioInput) SetPrincipalType(v string) *AssociatePrincipalWithPortfolioInput { + s.PrincipalType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/AssociatePrincipalWithPortfolioOutput +type AssociatePrincipalWithPortfolioOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociatePrincipalWithPortfolioOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociatePrincipalWithPortfolioOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/AssociateProductWithPortfolioInput +type AssociateProductWithPortfolioInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The portfolio identifier. + // + // PortfolioId is a required field + PortfolioId *string `min:"1" type:"string" required:"true"` + + // The product identifier. + // + // ProductId is a required field + ProductId *string `min:"1" type:"string" required:"true"` + + // The identifier of the source portfolio to use with this association. + SourcePortfolioId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s AssociateProductWithPortfolioInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateProductWithPortfolioInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateProductWithPortfolioInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateProductWithPortfolioInput"} + if s.PortfolioId == nil { + invalidParams.Add(request.NewErrParamRequired("PortfolioId")) + } + if s.PortfolioId != nil && len(*s.PortfolioId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PortfolioId", 1)) + } + if s.ProductId == nil { + invalidParams.Add(request.NewErrParamRequired("ProductId")) + } + if s.ProductId != nil && len(*s.ProductId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProductId", 1)) + } + if s.SourcePortfolioId != nil && len(*s.SourcePortfolioId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SourcePortfolioId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *AssociateProductWithPortfolioInput) SetAcceptLanguage(v string) *AssociateProductWithPortfolioInput { + s.AcceptLanguage = &v + return s +} + +// SetPortfolioId sets the PortfolioId field's value. +func (s *AssociateProductWithPortfolioInput) SetPortfolioId(v string) *AssociateProductWithPortfolioInput { + s.PortfolioId = &v + return s +} + +// SetProductId sets the ProductId field's value. +func (s *AssociateProductWithPortfolioInput) SetProductId(v string) *AssociateProductWithPortfolioInput { + s.ProductId = &v + return s +} + +// SetSourcePortfolioId sets the SourcePortfolioId field's value. +func (s *AssociateProductWithPortfolioInput) SetSourcePortfolioId(v string) *AssociateProductWithPortfolioInput { + s.SourcePortfolioId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/AssociateProductWithPortfolioOutput +type AssociateProductWithPortfolioOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateProductWithPortfolioOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateProductWithPortfolioOutput) GoString() string { + return s.String() +} + +// Detailed constraint information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ConstraintDetail +type ConstraintDetail struct { + _ struct{} `type:"structure"` + + // The identifier of the constraint. + ConstraintId *string `min:"1" type:"string"` + + // The text description of the constraint. + Description *string `type:"string"` + + // The owner of the constraint. + Owner *string `type:"string"` + + // The type of the constraint. + Type *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ConstraintDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConstraintDetail) GoString() string { + return s.String() +} + +// SetConstraintId sets the ConstraintId field's value. +func (s *ConstraintDetail) SetConstraintId(v string) *ConstraintDetail { + s.ConstraintId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ConstraintDetail) SetDescription(v string) *ConstraintDetail { + s.Description = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *ConstraintDetail) SetOwner(v string) *ConstraintDetail { + s.Owner = &v + return s +} + +// SetType sets the Type field's value. +func (s *ConstraintDetail) SetType(v string) *ConstraintDetail { + s.Type = &v + return s +} + +// An administrator-specified constraint to apply when provisioning a product. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ConstraintSummary +type ConstraintSummary struct { + _ struct{} `type:"structure"` + + // The text description of the constraint. + Description *string `type:"string"` + + // The type of the constraint. + Type *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ConstraintSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConstraintSummary) GoString() string { + return s.String() +} + +// SetDescription sets the Description field's value. +func (s *ConstraintSummary) SetDescription(v string) *ConstraintSummary { + s.Description = &v + return s +} + +// SetType sets the Type field's value. +func (s *ConstraintSummary) SetType(v string) *ConstraintSummary { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreateConstraintInput +type CreateConstraintInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The text description of the constraint. + Description *string `type:"string"` + + // A token to disambiguate duplicate requests. You can create multiple resources + // using the same input in multiple requests, provided that you also specify + // a different idempotency token for each request. + // + // IdempotencyToken is a required field + IdempotencyToken *string `min:"1" type:"string" required:"true" idempotencyToken:"true"` + + // The constraint parameters. + // + // Parameters is a required field + Parameters *string `type:"string" required:"true"` + + // The portfolio identifier. + // + // PortfolioId is a required field + PortfolioId *string `min:"1" type:"string" required:"true"` + + // The product identifier. + // + // ProductId is a required field + ProductId *string `min:"1" type:"string" required:"true"` + + // The type of the constraint. + // + // Type is a required field + Type *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateConstraintInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateConstraintInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateConstraintInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateConstraintInput"} + if s.IdempotencyToken == nil { + invalidParams.Add(request.NewErrParamRequired("IdempotencyToken")) + } + if s.IdempotencyToken != nil && len(*s.IdempotencyToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdempotencyToken", 1)) + } + if s.Parameters == nil { + invalidParams.Add(request.NewErrParamRequired("Parameters")) + } + if s.PortfolioId == nil { + invalidParams.Add(request.NewErrParamRequired("PortfolioId")) + } + if s.PortfolioId != nil && len(*s.PortfolioId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PortfolioId", 1)) + } + if s.ProductId == nil { + invalidParams.Add(request.NewErrParamRequired("ProductId")) + } + if s.ProductId != nil && len(*s.ProductId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProductId", 1)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.Type != nil && len(*s.Type) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Type", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *CreateConstraintInput) SetAcceptLanguage(v string) *CreateConstraintInput { + s.AcceptLanguage = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateConstraintInput) SetDescription(v string) *CreateConstraintInput { + s.Description = &v + return s +} + +// SetIdempotencyToken sets the IdempotencyToken field's value. +func (s *CreateConstraintInput) SetIdempotencyToken(v string) *CreateConstraintInput { + s.IdempotencyToken = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *CreateConstraintInput) SetParameters(v string) *CreateConstraintInput { + s.Parameters = &v + return s +} + +// SetPortfolioId sets the PortfolioId field's value. +func (s *CreateConstraintInput) SetPortfolioId(v string) *CreateConstraintInput { + s.PortfolioId = &v + return s +} + +// SetProductId sets the ProductId field's value. +func (s *CreateConstraintInput) SetProductId(v string) *CreateConstraintInput { + s.ProductId = &v + return s +} + +// SetType sets the Type field's value. +func (s *CreateConstraintInput) SetType(v string) *CreateConstraintInput { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreateConstraintOutput +type CreateConstraintOutput struct { + _ struct{} `type:"structure"` + + // The resulting detailed constraint information. + ConstraintDetail *ConstraintDetail `type:"structure"` + + // The resulting constraint parameters. + ConstraintParameters *string `type:"string"` + + // The status of the current request. + Status *string `type:"string" enum:"Status"` +} + +// String returns the string representation +func (s CreateConstraintOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateConstraintOutput) GoString() string { + return s.String() +} + +// SetConstraintDetail sets the ConstraintDetail field's value. +func (s *CreateConstraintOutput) SetConstraintDetail(v *ConstraintDetail) *CreateConstraintOutput { + s.ConstraintDetail = v + return s +} + +// SetConstraintParameters sets the ConstraintParameters field's value. +func (s *CreateConstraintOutput) SetConstraintParameters(v string) *CreateConstraintOutput { + s.ConstraintParameters = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CreateConstraintOutput) SetStatus(v string) *CreateConstraintOutput { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreatePortfolioInput +type CreatePortfolioInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The text description of the portfolio. + Description *string `type:"string"` + + // The name to use for display purposes. + // + // DisplayName is a required field + DisplayName *string `min:"1" type:"string" required:"true"` + + // A token to disambiguate duplicate requests. You can create multiple resources + // using the same input in multiple requests, provided that you also specify + // a different idempotency token for each request. + // + // IdempotencyToken is a required field + IdempotencyToken *string `min:"1" type:"string" required:"true" idempotencyToken:"true"` + + // The name of the portfolio provider. + // + // ProviderName is a required field + ProviderName *string `min:"1" type:"string" required:"true"` + + // Tags to associate with the new portfolio. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s CreatePortfolioInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePortfolioInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreatePortfolioInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreatePortfolioInput"} + if s.DisplayName == nil { + invalidParams.Add(request.NewErrParamRequired("DisplayName")) + } + if s.DisplayName != nil && len(*s.DisplayName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1)) + } + if s.IdempotencyToken == nil { + invalidParams.Add(request.NewErrParamRequired("IdempotencyToken")) + } + if s.IdempotencyToken != nil && len(*s.IdempotencyToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdempotencyToken", 1)) + } + if s.ProviderName == nil { + invalidParams.Add(request.NewErrParamRequired("ProviderName")) + } + if s.ProviderName != nil && len(*s.ProviderName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProviderName", 1)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *CreatePortfolioInput) SetAcceptLanguage(v string) *CreatePortfolioInput { + s.AcceptLanguage = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreatePortfolioInput) SetDescription(v string) *CreatePortfolioInput { + s.Description = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *CreatePortfolioInput) SetDisplayName(v string) *CreatePortfolioInput { + s.DisplayName = &v + return s +} + +// SetIdempotencyToken sets the IdempotencyToken field's value. +func (s *CreatePortfolioInput) SetIdempotencyToken(v string) *CreatePortfolioInput { + s.IdempotencyToken = &v + return s +} + +// SetProviderName sets the ProviderName field's value. +func (s *CreatePortfolioInput) SetProviderName(v string) *CreatePortfolioInput { + s.ProviderName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreatePortfolioInput) SetTags(v []*Tag) *CreatePortfolioInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreatePortfolioOutput +type CreatePortfolioOutput struct { + _ struct{} `type:"structure"` + + // The resulting detailed portfolio information. + PortfolioDetail *PortfolioDetail `type:"structure"` + + // Tags successfully associated with the new portfolio. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s CreatePortfolioOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePortfolioOutput) GoString() string { + return s.String() +} + +// SetPortfolioDetail sets the PortfolioDetail field's value. +func (s *CreatePortfolioOutput) SetPortfolioDetail(v *PortfolioDetail) *CreatePortfolioOutput { + s.PortfolioDetail = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreatePortfolioOutput) SetTags(v []*Tag) *CreatePortfolioOutput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreatePortfolioShareInput +type CreatePortfolioShareInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The account ID with which to share the portfolio. + // + // AccountId is a required field + AccountId *string `type:"string" required:"true"` + + // The portfolio identifier. + // + // PortfolioId is a required field + PortfolioId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreatePortfolioShareInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePortfolioShareInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreatePortfolioShareInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreatePortfolioShareInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.PortfolioId == nil { + invalidParams.Add(request.NewErrParamRequired("PortfolioId")) + } + if s.PortfolioId != nil && len(*s.PortfolioId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PortfolioId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *CreatePortfolioShareInput) SetAcceptLanguage(v string) *CreatePortfolioShareInput { + s.AcceptLanguage = &v + return s +} + +// SetAccountId sets the AccountId field's value. +func (s *CreatePortfolioShareInput) SetAccountId(v string) *CreatePortfolioShareInput { + s.AccountId = &v + return s +} + +// SetPortfolioId sets the PortfolioId field's value. +func (s *CreatePortfolioShareInput) SetPortfolioId(v string) *CreatePortfolioShareInput { + s.PortfolioId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreatePortfolioShareOutput +type CreatePortfolioShareOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreatePortfolioShareOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePortfolioShareOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreateProductInput +type CreateProductInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The text description of the product. + Description *string `type:"string"` + + // The distributor of the product. + Distributor *string `type:"string"` + + // A token to disambiguate duplicate requests. You can create multiple resources + // using the same input in multiple requests, provided that you also specify + // a different idempotency token for each request. + // + // IdempotencyToken is a required field + IdempotencyToken *string `min:"1" type:"string" required:"true" idempotencyToken:"true"` + + // The name of the product. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The owner of the product. + // + // Owner is a required field + Owner *string `type:"string" required:"true"` + + // The type of the product to create. + // + // ProductType is a required field + ProductType *string `type:"string" required:"true" enum:"ProductType"` + + // Parameters for the provisioning artifact. + // + // ProvisioningArtifactParameters is a required field + ProvisioningArtifactParameters *ProvisioningArtifactProperties `type:"structure" required:"true"` + + // Support information about the product. + SupportDescription *string `type:"string"` + + // Contact email for product support. + SupportEmail *string `type:"string"` + + // Contact URL for product support. + SupportUrl *string `type:"string"` + + // Tags to associate with the new product. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s CreateProductInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateProductInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateProductInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateProductInput"} + if s.IdempotencyToken == nil { + invalidParams.Add(request.NewErrParamRequired("IdempotencyToken")) + } + if s.IdempotencyToken != nil && len(*s.IdempotencyToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdempotencyToken", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Owner == nil { + invalidParams.Add(request.NewErrParamRequired("Owner")) + } + if s.ProductType == nil { + invalidParams.Add(request.NewErrParamRequired("ProductType")) + } + if s.ProvisioningArtifactParameters == nil { + invalidParams.Add(request.NewErrParamRequired("ProvisioningArtifactParameters")) + } + if s.ProvisioningArtifactParameters != nil { + if err := s.ProvisioningArtifactParameters.Validate(); err != nil { + invalidParams.AddNested("ProvisioningArtifactParameters", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *CreateProductInput) SetAcceptLanguage(v string) *CreateProductInput { + s.AcceptLanguage = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateProductInput) SetDescription(v string) *CreateProductInput { + s.Description = &v + return s +} + +// SetDistributor sets the Distributor field's value. +func (s *CreateProductInput) SetDistributor(v string) *CreateProductInput { + s.Distributor = &v + return s +} + +// SetIdempotencyToken sets the IdempotencyToken field's value. +func (s *CreateProductInput) SetIdempotencyToken(v string) *CreateProductInput { + s.IdempotencyToken = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateProductInput) SetName(v string) *CreateProductInput { + s.Name = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *CreateProductInput) SetOwner(v string) *CreateProductInput { + s.Owner = &v + return s +} + +// SetProductType sets the ProductType field's value. +func (s *CreateProductInput) SetProductType(v string) *CreateProductInput { + s.ProductType = &v + return s +} + +// SetProvisioningArtifactParameters sets the ProvisioningArtifactParameters field's value. +func (s *CreateProductInput) SetProvisioningArtifactParameters(v *ProvisioningArtifactProperties) *CreateProductInput { + s.ProvisioningArtifactParameters = v + return s +} + +// SetSupportDescription sets the SupportDescription field's value. +func (s *CreateProductInput) SetSupportDescription(v string) *CreateProductInput { + s.SupportDescription = &v + return s +} + +// SetSupportEmail sets the SupportEmail field's value. +func (s *CreateProductInput) SetSupportEmail(v string) *CreateProductInput { + s.SupportEmail = &v + return s +} + +// SetSupportUrl sets the SupportUrl field's value. +func (s *CreateProductInput) SetSupportUrl(v string) *CreateProductInput { + s.SupportUrl = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateProductInput) SetTags(v []*Tag) *CreateProductInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreateProductOutput +type CreateProductOutput struct { + _ struct{} `type:"structure"` + + // The resulting detailed product view information. + ProductViewDetail *ProductViewDetail `type:"structure"` + + // The resulting detailed provisioning artifact information. + ProvisioningArtifactDetail *ProvisioningArtifactDetail `type:"structure"` + + // Tags successfully associated with the new product. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s CreateProductOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateProductOutput) GoString() string { + return s.String() +} + +// SetProductViewDetail sets the ProductViewDetail field's value. +func (s *CreateProductOutput) SetProductViewDetail(v *ProductViewDetail) *CreateProductOutput { + s.ProductViewDetail = v + return s +} + +// SetProvisioningArtifactDetail sets the ProvisioningArtifactDetail field's value. +func (s *CreateProductOutput) SetProvisioningArtifactDetail(v *ProvisioningArtifactDetail) *CreateProductOutput { + s.ProvisioningArtifactDetail = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateProductOutput) SetTags(v []*Tag) *CreateProductOutput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreateProvisioningArtifactInput +type CreateProvisioningArtifactInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // A token to disambiguate duplicate requests. You can create multiple resources + // using the same input in multiple requests, provided that you also specify + // a different idempotency token for each request. + // + // IdempotencyToken is a required field + IdempotencyToken *string `min:"1" type:"string" required:"true" idempotencyToken:"true"` + + // The parameters to use when creating the new provisioning artifact. + // + // Parameters is a required field + Parameters *ProvisioningArtifactProperties `type:"structure" required:"true"` + + // The product identifier. + // + // ProductId is a required field + ProductId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateProvisioningArtifactInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateProvisioningArtifactInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateProvisioningArtifactInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateProvisioningArtifactInput"} + if s.IdempotencyToken == nil { + invalidParams.Add(request.NewErrParamRequired("IdempotencyToken")) + } + if s.IdempotencyToken != nil && len(*s.IdempotencyToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdempotencyToken", 1)) + } + if s.Parameters == nil { + invalidParams.Add(request.NewErrParamRequired("Parameters")) + } + if s.ProductId == nil { + invalidParams.Add(request.NewErrParamRequired("ProductId")) + } + if s.ProductId != nil && len(*s.ProductId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProductId", 1)) + } + if s.Parameters != nil { + if err := s.Parameters.Validate(); err != nil { + invalidParams.AddNested("Parameters", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *CreateProvisioningArtifactInput) SetAcceptLanguage(v string) *CreateProvisioningArtifactInput { + s.AcceptLanguage = &v + return s +} + +// SetIdempotencyToken sets the IdempotencyToken field's value. +func (s *CreateProvisioningArtifactInput) SetIdempotencyToken(v string) *CreateProvisioningArtifactInput { + s.IdempotencyToken = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *CreateProvisioningArtifactInput) SetParameters(v *ProvisioningArtifactProperties) *CreateProvisioningArtifactInput { + s.Parameters = v + return s +} + +// SetProductId sets the ProductId field's value. +func (s *CreateProvisioningArtifactInput) SetProductId(v string) *CreateProvisioningArtifactInput { + s.ProductId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreateProvisioningArtifactOutput +type CreateProvisioningArtifactOutput struct { + _ struct{} `type:"structure"` + + // Additional information about the provisioning artifact create request. + Info map[string]*string `min:"1" type:"map"` + + // The resulting detailed provisioning artifact information. + ProvisioningArtifactDetail *ProvisioningArtifactDetail `type:"structure"` + + // The status of the current request. + Status *string `type:"string" enum:"Status"` +} + +// String returns the string representation +func (s CreateProvisioningArtifactOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateProvisioningArtifactOutput) GoString() string { + return s.String() +} + +// SetInfo sets the Info field's value. +func (s *CreateProvisioningArtifactOutput) SetInfo(v map[string]*string) *CreateProvisioningArtifactOutput { + s.Info = v + return s +} + +// SetProvisioningArtifactDetail sets the ProvisioningArtifactDetail field's value. +func (s *CreateProvisioningArtifactOutput) SetProvisioningArtifactDetail(v *ProvisioningArtifactDetail) *CreateProvisioningArtifactOutput { + s.ProvisioningArtifactDetail = v + return s +} + +// SetStatus sets the Status field's value. +func (s *CreateProvisioningArtifactOutput) SetStatus(v string) *CreateProvisioningArtifactOutput { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeleteConstraintInput +type DeleteConstraintInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The identifier of the constraint to delete. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteConstraintInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteConstraintInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteConstraintInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteConstraintInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *DeleteConstraintInput) SetAcceptLanguage(v string) *DeleteConstraintInput { + s.AcceptLanguage = &v + return s +} + +// SetId sets the Id field's value. +func (s *DeleteConstraintInput) SetId(v string) *DeleteConstraintInput { + s.Id = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeleteConstraintOutput +type DeleteConstraintOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteConstraintOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteConstraintOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeletePortfolioInput +type DeletePortfolioInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The identifier of the portfolio for the delete request. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeletePortfolioInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeletePortfolioInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeletePortfolioInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeletePortfolioInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *DeletePortfolioInput) SetAcceptLanguage(v string) *DeletePortfolioInput { + s.AcceptLanguage = &v + return s +} + +// SetId sets the Id field's value. +func (s *DeletePortfolioInput) SetId(v string) *DeletePortfolioInput { + s.Id = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeletePortfolioOutput +type DeletePortfolioOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeletePortfolioOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeletePortfolioOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeletePortfolioShareInput +type DeletePortfolioShareInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The account ID associated with the share to delete. + // + // AccountId is a required field + AccountId *string `type:"string" required:"true"` + + // The portfolio identifier. + // + // PortfolioId is a required field + PortfolioId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeletePortfolioShareInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeletePortfolioShareInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeletePortfolioShareInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeletePortfolioShareInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.PortfolioId == nil { + invalidParams.Add(request.NewErrParamRequired("PortfolioId")) + } + if s.PortfolioId != nil && len(*s.PortfolioId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PortfolioId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *DeletePortfolioShareInput) SetAcceptLanguage(v string) *DeletePortfolioShareInput { + s.AcceptLanguage = &v + return s +} + +// SetAccountId sets the AccountId field's value. +func (s *DeletePortfolioShareInput) SetAccountId(v string) *DeletePortfolioShareInput { + s.AccountId = &v + return s +} + +// SetPortfolioId sets the PortfolioId field's value. +func (s *DeletePortfolioShareInput) SetPortfolioId(v string) *DeletePortfolioShareInput { + s.PortfolioId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeletePortfolioShareOutput +type DeletePortfolioShareOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeletePortfolioShareOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeletePortfolioShareOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeleteProductInput +type DeleteProductInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The identifier of the product for the delete request. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteProductInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteProductInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteProductInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteProductInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *DeleteProductInput) SetAcceptLanguage(v string) *DeleteProductInput { + s.AcceptLanguage = &v + return s +} + +// SetId sets the Id field's value. +func (s *DeleteProductInput) SetId(v string) *DeleteProductInput { + s.Id = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeleteProductOutput +type DeleteProductOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteProductOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteProductOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeleteProvisioningArtifactInput +type DeleteProvisioningArtifactInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The product identifier. + // + // ProductId is a required field + ProductId *string `min:"1" type:"string" required:"true"` + + // The identifier of the provisioning artifact for the delete request. + // + // ProvisioningArtifactId is a required field + ProvisioningArtifactId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteProvisioningArtifactInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteProvisioningArtifactInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteProvisioningArtifactInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteProvisioningArtifactInput"} + if s.ProductId == nil { + invalidParams.Add(request.NewErrParamRequired("ProductId")) + } + if s.ProductId != nil && len(*s.ProductId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProductId", 1)) + } + if s.ProvisioningArtifactId == nil { + invalidParams.Add(request.NewErrParamRequired("ProvisioningArtifactId")) + } + if s.ProvisioningArtifactId != nil && len(*s.ProvisioningArtifactId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProvisioningArtifactId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *DeleteProvisioningArtifactInput) SetAcceptLanguage(v string) *DeleteProvisioningArtifactInput { + s.AcceptLanguage = &v + return s +} + +// SetProductId sets the ProductId field's value. +func (s *DeleteProvisioningArtifactInput) SetProductId(v string) *DeleteProvisioningArtifactInput { + s.ProductId = &v + return s +} + +// SetProvisioningArtifactId sets the ProvisioningArtifactId field's value. +func (s *DeleteProvisioningArtifactInput) SetProvisioningArtifactId(v string) *DeleteProvisioningArtifactInput { + s.ProvisioningArtifactId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeleteProvisioningArtifactOutput +type DeleteProvisioningArtifactOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteProvisioningArtifactOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteProvisioningArtifactOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeConstraintInput +type DescribeConstraintInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The identifier of the constraint. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeConstraintInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeConstraintInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeConstraintInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeConstraintInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *DescribeConstraintInput) SetAcceptLanguage(v string) *DescribeConstraintInput { + s.AcceptLanguage = &v + return s +} + +// SetId sets the Id field's value. +func (s *DescribeConstraintInput) SetId(v string) *DescribeConstraintInput { + s.Id = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeConstraintOutput +type DescribeConstraintOutput struct { + _ struct{} `type:"structure"` + + // Detailed constraint information. + ConstraintDetail *ConstraintDetail `type:"structure"` + + // The current parameters associated with the specified constraint. + ConstraintParameters *string `type:"string"` + + // The status of the current request. + Status *string `type:"string" enum:"Status"` +} + +// String returns the string representation +func (s DescribeConstraintOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeConstraintOutput) GoString() string { + return s.String() +} + +// SetConstraintDetail sets the ConstraintDetail field's value. +func (s *DescribeConstraintOutput) SetConstraintDetail(v *ConstraintDetail) *DescribeConstraintOutput { + s.ConstraintDetail = v + return s +} + +// SetConstraintParameters sets the ConstraintParameters field's value. +func (s *DescribeConstraintOutput) SetConstraintParameters(v string) *DescribeConstraintOutput { + s.ConstraintParameters = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeConstraintOutput) SetStatus(v string) *DescribeConstraintOutput { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribePortfolioInput +type DescribePortfolioInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The identifier of the portfolio for which to retrieve information. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribePortfolioInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePortfolioInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribePortfolioInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribePortfolioInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *DescribePortfolioInput) SetAcceptLanguage(v string) *DescribePortfolioInput { + s.AcceptLanguage = &v + return s +} + +// SetId sets the Id field's value. +func (s *DescribePortfolioInput) SetId(v string) *DescribePortfolioInput { + s.Id = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribePortfolioOutput +type DescribePortfolioOutput struct { + _ struct{} `type:"structure"` + + // Detailed portfolio information. + PortfolioDetail *PortfolioDetail `type:"structure"` + + // Tags associated with the portfolio. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s DescribePortfolioOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePortfolioOutput) GoString() string { + return s.String() +} + +// SetPortfolioDetail sets the PortfolioDetail field's value. +func (s *DescribePortfolioOutput) SetPortfolioDetail(v *PortfolioDetail) *DescribePortfolioOutput { + s.PortfolioDetail = v + return s +} + +// SetTags sets the Tags field's value. +func (s *DescribePortfolioOutput) SetTags(v []*Tag) *DescribePortfolioOutput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProductAsAdminInput +type DescribeProductAsAdminInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The identifier of the product for which to retrieve information. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeProductAsAdminInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeProductAsAdminInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeProductAsAdminInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeProductAsAdminInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *DescribeProductAsAdminInput) SetAcceptLanguage(v string) *DescribeProductAsAdminInput { + s.AcceptLanguage = &v + return s +} + +// SetId sets the Id field's value. +func (s *DescribeProductAsAdminInput) SetId(v string) *DescribeProductAsAdminInput { + s.Id = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProductAsAdminOutput +type DescribeProductAsAdminOutput struct { + _ struct{} `type:"structure"` + + // Detailed product view information. + ProductViewDetail *ProductViewDetail `type:"structure"` + + // Tags associated with the product. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s DescribeProductAsAdminOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeProductAsAdminOutput) GoString() string { + return s.String() +} + +// SetProductViewDetail sets the ProductViewDetail field's value. +func (s *DescribeProductAsAdminOutput) SetProductViewDetail(v *ProductViewDetail) *DescribeProductAsAdminOutput { + s.ProductViewDetail = v + return s +} + +// SetTags sets the Tags field's value. +func (s *DescribeProductAsAdminOutput) SetTags(v []*Tag) *DescribeProductAsAdminOutput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProductInput +type DescribeProductInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The ProductId of the product to describe. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeProductInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeProductInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeProductInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeProductInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *DescribeProductInput) SetAcceptLanguage(v string) *DescribeProductInput { + s.AcceptLanguage = &v + return s +} + +// SetId sets the Id field's value. +func (s *DescribeProductInput) SetId(v string) *DescribeProductInput { + s.Id = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProductOutput +type DescribeProductOutput struct { + _ struct{} `type:"structure"` + + // The summary metadata about the specified product. + ProductViewSummary *ProductViewSummary `type:"structure"` + + // A list of provisioning artifact objects for the specified product. The ProvisioningArtifacts + // parameter represent the ways the specified product can be provisioned. + ProvisioningArtifacts []*ProvisioningArtifact `type:"list"` +} + +// String returns the string representation +func (s DescribeProductOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeProductOutput) GoString() string { + return s.String() +} + +// SetProductViewSummary sets the ProductViewSummary field's value. +func (s *DescribeProductOutput) SetProductViewSummary(v *ProductViewSummary) *DescribeProductOutput { + s.ProductViewSummary = v + return s +} + +// SetProvisioningArtifacts sets the ProvisioningArtifacts field's value. +func (s *DescribeProductOutput) SetProvisioningArtifacts(v []*ProvisioningArtifact) *DescribeProductOutput { + s.ProvisioningArtifacts = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProductViewInput +type DescribeProductViewInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The ProductViewId of the product to describe. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeProductViewInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeProductViewInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeProductViewInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeProductViewInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *DescribeProductViewInput) SetAcceptLanguage(v string) *DescribeProductViewInput { + s.AcceptLanguage = &v + return s +} + +// SetId sets the Id field's value. +func (s *DescribeProductViewInput) SetId(v string) *DescribeProductViewInput { + s.Id = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProductViewOutput +type DescribeProductViewOutput struct { + _ struct{} `type:"structure"` + + // The summary metadata about the specified product. + ProductViewSummary *ProductViewSummary `type:"structure"` + + // A list of provisioning artifact objects for the specified product. The ProvisioningArtifacts + // represent the ways in which the specified product can be provisioned. + ProvisioningArtifacts []*ProvisioningArtifact `type:"list"` +} + +// String returns the string representation +func (s DescribeProductViewOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeProductViewOutput) GoString() string { + return s.String() +} + +// SetProductViewSummary sets the ProductViewSummary field's value. +func (s *DescribeProductViewOutput) SetProductViewSummary(v *ProductViewSummary) *DescribeProductViewOutput { + s.ProductViewSummary = v + return s +} + +// SetProvisioningArtifacts sets the ProvisioningArtifacts field's value. +func (s *DescribeProductViewOutput) SetProvisioningArtifacts(v []*ProvisioningArtifact) *DescribeProductViewOutput { + s.ProvisioningArtifacts = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProvisioningArtifactInput +type DescribeProvisioningArtifactInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The product identifier. + // + // ProductId is a required field + ProductId *string `min:"1" type:"string" required:"true"` + + // The identifier of the provisioning artifact. + // + // ProvisioningArtifactId is a required field + ProvisioningArtifactId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeProvisioningArtifactInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeProvisioningArtifactInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeProvisioningArtifactInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeProvisioningArtifactInput"} + if s.ProductId == nil { + invalidParams.Add(request.NewErrParamRequired("ProductId")) + } + if s.ProductId != nil && len(*s.ProductId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProductId", 1)) + } + if s.ProvisioningArtifactId == nil { + invalidParams.Add(request.NewErrParamRequired("ProvisioningArtifactId")) + } + if s.ProvisioningArtifactId != nil && len(*s.ProvisioningArtifactId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProvisioningArtifactId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *DescribeProvisioningArtifactInput) SetAcceptLanguage(v string) *DescribeProvisioningArtifactInput { + s.AcceptLanguage = &v + return s +} + +// SetProductId sets the ProductId field's value. +func (s *DescribeProvisioningArtifactInput) SetProductId(v string) *DescribeProvisioningArtifactInput { + s.ProductId = &v + return s +} + +// SetProvisioningArtifactId sets the ProvisioningArtifactId field's value. +func (s *DescribeProvisioningArtifactInput) SetProvisioningArtifactId(v string) *DescribeProvisioningArtifactInput { + s.ProvisioningArtifactId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProvisioningArtifactOutput +type DescribeProvisioningArtifactOutput struct { + _ struct{} `type:"structure"` + + // Additional information about the provisioning artifact. + Info map[string]*string `min:"1" type:"map"` + + // Detailed provisioning artifact information. + ProvisioningArtifactDetail *ProvisioningArtifactDetail `type:"structure"` + + // The status of the current request. + Status *string `type:"string" enum:"Status"` +} + +// String returns the string representation +func (s DescribeProvisioningArtifactOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeProvisioningArtifactOutput) GoString() string { + return s.String() +} + +// SetInfo sets the Info field's value. +func (s *DescribeProvisioningArtifactOutput) SetInfo(v map[string]*string) *DescribeProvisioningArtifactOutput { + s.Info = v + return s +} + +// SetProvisioningArtifactDetail sets the ProvisioningArtifactDetail field's value. +func (s *DescribeProvisioningArtifactOutput) SetProvisioningArtifactDetail(v *ProvisioningArtifactDetail) *DescribeProvisioningArtifactOutput { + s.ProvisioningArtifactDetail = v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeProvisioningArtifactOutput) SetStatus(v string) *DescribeProvisioningArtifactOutput { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProvisioningParametersInput +type DescribeProvisioningParametersInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The identifier of the path for this product's provisioning. This value is + // optional if the product has a default path, and is required if there is more + // than one path for the specified product. + PathId *string `min:"1" type:"string"` + + // The product identifier. + // + // ProductId is a required field + ProductId *string `min:"1" type:"string" required:"true"` + + // The provisioning artifact identifier for this product. + // + // ProvisioningArtifactId is a required field + ProvisioningArtifactId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeProvisioningParametersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeProvisioningParametersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeProvisioningParametersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeProvisioningParametersInput"} + if s.PathId != nil && len(*s.PathId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PathId", 1)) + } + if s.ProductId == nil { + invalidParams.Add(request.NewErrParamRequired("ProductId")) + } + if s.ProductId != nil && len(*s.ProductId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProductId", 1)) + } + if s.ProvisioningArtifactId == nil { + invalidParams.Add(request.NewErrParamRequired("ProvisioningArtifactId")) + } + if s.ProvisioningArtifactId != nil && len(*s.ProvisioningArtifactId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProvisioningArtifactId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *DescribeProvisioningParametersInput) SetAcceptLanguage(v string) *DescribeProvisioningParametersInput { + s.AcceptLanguage = &v + return s +} + +// SetPathId sets the PathId field's value. +func (s *DescribeProvisioningParametersInput) SetPathId(v string) *DescribeProvisioningParametersInput { + s.PathId = &v + return s +} + +// SetProductId sets the ProductId field's value. +func (s *DescribeProvisioningParametersInput) SetProductId(v string) *DescribeProvisioningParametersInput { + s.ProductId = &v + return s +} + +// SetProvisioningArtifactId sets the ProvisioningArtifactId field's value. +func (s *DescribeProvisioningParametersInput) SetProvisioningArtifactId(v string) *DescribeProvisioningParametersInput { + s.ProvisioningArtifactId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProvisioningParametersOutput +type DescribeProvisioningParametersOutput struct { + _ struct{} `type:"structure"` + + // The list of constraint summaries that apply to provisioning this product. + ConstraintSummaries []*ConstraintSummary `type:"list"` + + // The list of parameters used to successfully provision the product. Each parameter + // includes a list of allowable values and additional metadata about each parameter. + ProvisioningArtifactParameters []*ProvisioningArtifactParameter `type:"list"` + + // Any additional metadata specifically related to the provisioning of the product. + // For example, see the Version field of the CloudFormation template. + UsageInstructions []*UsageInstruction `type:"list"` +} + +// String returns the string representation +func (s DescribeProvisioningParametersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeProvisioningParametersOutput) GoString() string { + return s.String() +} + +// SetConstraintSummaries sets the ConstraintSummaries field's value. +func (s *DescribeProvisioningParametersOutput) SetConstraintSummaries(v []*ConstraintSummary) *DescribeProvisioningParametersOutput { + s.ConstraintSummaries = v + return s +} + +// SetProvisioningArtifactParameters sets the ProvisioningArtifactParameters field's value. +func (s *DescribeProvisioningParametersOutput) SetProvisioningArtifactParameters(v []*ProvisioningArtifactParameter) *DescribeProvisioningParametersOutput { + s.ProvisioningArtifactParameters = v + return s +} + +// SetUsageInstructions sets the UsageInstructions field's value. +func (s *DescribeProvisioningParametersOutput) SetUsageInstructions(v []*UsageInstruction) *DescribeProvisioningParametersOutput { + s.UsageInstructions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeRecordInput +type DescribeRecordInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The record identifier of the ProvisionedProduct object for which to retrieve + // output information. This is the RecordDetail.RecordId obtained from the request + // operation's response. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` + + // The maximum number of items to return in the results. If more results exist + // than fit in the specified PageSize, the value of NextPageToken in the response + // is non-null. + PageSize *int64 `type:"integer"` + + // The page token of the first page retrieved. If null, this retrieves the first + // page of size PageSize. + PageToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeRecordInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeRecordInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeRecordInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeRecordInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *DescribeRecordInput) SetAcceptLanguage(v string) *DescribeRecordInput { + s.AcceptLanguage = &v + return s +} + +// SetId sets the Id field's value. +func (s *DescribeRecordInput) SetId(v string) *DescribeRecordInput { + s.Id = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *DescribeRecordInput) SetPageSize(v int64) *DescribeRecordInput { + s.PageSize = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *DescribeRecordInput) SetPageToken(v string) *DescribeRecordInput { + s.PageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeRecordOutput +type DescribeRecordOutput struct { + _ struct{} `type:"structure"` + + // The page token to use to retrieve the next page of results for this operation. + // If there are no more pages, this value is null. + NextPageToken *string `type:"string"` + + // Detailed record information for the specified product. + RecordDetail *RecordDetail `type:"structure"` + + // A list of outputs for the specified Product object created as the result + // of a request. For example, a CloudFormation-backed product that creates an + // S3 bucket would have an output for the S3 bucket URL. + RecordOutputs []*RecordOutput `type:"list"` +} + +// String returns the string representation +func (s DescribeRecordOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeRecordOutput) GoString() string { + return s.String() +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *DescribeRecordOutput) SetNextPageToken(v string) *DescribeRecordOutput { + s.NextPageToken = &v + return s +} + +// SetRecordDetail sets the RecordDetail field's value. +func (s *DescribeRecordOutput) SetRecordDetail(v *RecordDetail) *DescribeRecordOutput { + s.RecordDetail = v + return s +} + +// SetRecordOutputs sets the RecordOutputs field's value. +func (s *DescribeRecordOutput) SetRecordOutputs(v []*RecordOutput) *DescribeRecordOutput { + s.RecordOutputs = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DisassociatePrincipalFromPortfolioInput +type DisassociatePrincipalFromPortfolioInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The portfolio identifier. + // + // PortfolioId is a required field + PortfolioId *string `min:"1" type:"string" required:"true"` + + // The ARN representing the principal (IAM user, role, or group). + // + // PrincipalARN is a required field + PrincipalARN *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociatePrincipalFromPortfolioInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociatePrincipalFromPortfolioInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociatePrincipalFromPortfolioInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociatePrincipalFromPortfolioInput"} + if s.PortfolioId == nil { + invalidParams.Add(request.NewErrParamRequired("PortfolioId")) + } + if s.PortfolioId != nil && len(*s.PortfolioId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PortfolioId", 1)) + } + if s.PrincipalARN == nil { + invalidParams.Add(request.NewErrParamRequired("PrincipalARN")) + } + if s.PrincipalARN != nil && len(*s.PrincipalARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PrincipalARN", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *DisassociatePrincipalFromPortfolioInput) SetAcceptLanguage(v string) *DisassociatePrincipalFromPortfolioInput { + s.AcceptLanguage = &v + return s +} + +// SetPortfolioId sets the PortfolioId field's value. +func (s *DisassociatePrincipalFromPortfolioInput) SetPortfolioId(v string) *DisassociatePrincipalFromPortfolioInput { + s.PortfolioId = &v + return s +} + +// SetPrincipalARN sets the PrincipalARN field's value. +func (s *DisassociatePrincipalFromPortfolioInput) SetPrincipalARN(v string) *DisassociatePrincipalFromPortfolioInput { + s.PrincipalARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DisassociatePrincipalFromPortfolioOutput +type DisassociatePrincipalFromPortfolioOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisassociatePrincipalFromPortfolioOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociatePrincipalFromPortfolioOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DisassociateProductFromPortfolioInput +type DisassociateProductFromPortfolioInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The portfolio identifier. + // + // PortfolioId is a required field + PortfolioId *string `min:"1" type:"string" required:"true"` + + // The product identifier. + // + // ProductId is a required field + ProductId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateProductFromPortfolioInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateProductFromPortfolioInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateProductFromPortfolioInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateProductFromPortfolioInput"} + if s.PortfolioId == nil { + invalidParams.Add(request.NewErrParamRequired("PortfolioId")) + } + if s.PortfolioId != nil && len(*s.PortfolioId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PortfolioId", 1)) + } + if s.ProductId == nil { + invalidParams.Add(request.NewErrParamRequired("ProductId")) + } + if s.ProductId != nil && len(*s.ProductId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProductId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *DisassociateProductFromPortfolioInput) SetAcceptLanguage(v string) *DisassociateProductFromPortfolioInput { + s.AcceptLanguage = &v + return s +} + +// SetPortfolioId sets the PortfolioId field's value. +func (s *DisassociateProductFromPortfolioInput) SetPortfolioId(v string) *DisassociateProductFromPortfolioInput { + s.PortfolioId = &v + return s +} + +// SetProductId sets the ProductId field's value. +func (s *DisassociateProductFromPortfolioInput) SetProductId(v string) *DisassociateProductFromPortfolioInput { + s.ProductId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DisassociateProductFromPortfolioOutput +type DisassociateProductFromPortfolioOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisassociateProductFromPortfolioOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateProductFromPortfolioOutput) GoString() string { + return s.String() +} + +// Summary information about a path for a user to have access to a specified +// product. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/LaunchPathSummary +type LaunchPathSummary struct { + _ struct{} `type:"structure"` + + // List of constraints on the portfolio-product relationship. + ConstraintSummaries []*ConstraintSummary `type:"list"` + + // The unique identifier of the product path. + Id *string `min:"1" type:"string"` + + // Corresponds to the name of the portfolio to which the user was assigned. + Name *string `type:"string"` + + // List of tags used by this launch path. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s LaunchPathSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchPathSummary) GoString() string { + return s.String() +} + +// SetConstraintSummaries sets the ConstraintSummaries field's value. +func (s *LaunchPathSummary) SetConstraintSummaries(v []*ConstraintSummary) *LaunchPathSummary { + s.ConstraintSummaries = v + return s +} + +// SetId sets the Id field's value. +func (s *LaunchPathSummary) SetId(v string) *LaunchPathSummary { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *LaunchPathSummary) SetName(v string) *LaunchPathSummary { + s.Name = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *LaunchPathSummary) SetTags(v []*Tag) *LaunchPathSummary { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListAcceptedPortfolioSharesInput +type ListAcceptedPortfolioSharesInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The maximum number of items to return in the results. If more results exist + // than fit in the specified PageSize, the value of NextPageToken in the response + // is non-null. + PageSize *int64 `type:"integer"` + + // The page token of the first page retrieved. If null, this retrieves the first + // page of size PageSize. + PageToken *string `type:"string"` +} + +// String returns the string representation +func (s ListAcceptedPortfolioSharesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAcceptedPortfolioSharesInput) GoString() string { + return s.String() +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *ListAcceptedPortfolioSharesInput) SetAcceptLanguage(v string) *ListAcceptedPortfolioSharesInput { + s.AcceptLanguage = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *ListAcceptedPortfolioSharesInput) SetPageSize(v int64) *ListAcceptedPortfolioSharesInput { + s.PageSize = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *ListAcceptedPortfolioSharesInput) SetPageToken(v string) *ListAcceptedPortfolioSharesInput { + s.PageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListAcceptedPortfolioSharesOutput +type ListAcceptedPortfolioSharesOutput struct { + _ struct{} `type:"structure"` + + // The page token to use to retrieve the next page of results for this operation. + // If there are no more pages, this value is null. + NextPageToken *string `type:"string"` + + // List of detailed portfolio information objects. + PortfolioDetails []*PortfolioDetail `type:"list"` +} + +// String returns the string representation +func (s ListAcceptedPortfolioSharesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAcceptedPortfolioSharesOutput) GoString() string { + return s.String() +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListAcceptedPortfolioSharesOutput) SetNextPageToken(v string) *ListAcceptedPortfolioSharesOutput { + s.NextPageToken = &v + return s +} + +// SetPortfolioDetails sets the PortfolioDetails field's value. +func (s *ListAcceptedPortfolioSharesOutput) SetPortfolioDetails(v []*PortfolioDetail) *ListAcceptedPortfolioSharesOutput { + s.PortfolioDetails = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListConstraintsForPortfolioInput +type ListConstraintsForPortfolioInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The maximum number of items to return in the results. If more results exist + // than fit in the specified PageSize, the value of NextPageToken in the response + // is non-null. + PageSize *int64 `type:"integer"` + + // The page token of the first page retrieved. If null, this retrieves the first + // page of size PageSize. + PageToken *string `type:"string"` + + // The portfolio identifier. + // + // PortfolioId is a required field + PortfolioId *string `min:"1" type:"string" required:"true"` + + // The product identifier. + ProductId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListConstraintsForPortfolioInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListConstraintsForPortfolioInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListConstraintsForPortfolioInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListConstraintsForPortfolioInput"} + if s.PortfolioId == nil { + invalidParams.Add(request.NewErrParamRequired("PortfolioId")) + } + if s.PortfolioId != nil && len(*s.PortfolioId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PortfolioId", 1)) + } + if s.ProductId != nil && len(*s.ProductId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProductId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *ListConstraintsForPortfolioInput) SetAcceptLanguage(v string) *ListConstraintsForPortfolioInput { + s.AcceptLanguage = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *ListConstraintsForPortfolioInput) SetPageSize(v int64) *ListConstraintsForPortfolioInput { + s.PageSize = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *ListConstraintsForPortfolioInput) SetPageToken(v string) *ListConstraintsForPortfolioInput { + s.PageToken = &v + return s +} + +// SetPortfolioId sets the PortfolioId field's value. +func (s *ListConstraintsForPortfolioInput) SetPortfolioId(v string) *ListConstraintsForPortfolioInput { + s.PortfolioId = &v + return s +} + +// SetProductId sets the ProductId field's value. +func (s *ListConstraintsForPortfolioInput) SetProductId(v string) *ListConstraintsForPortfolioInput { + s.ProductId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListConstraintsForPortfolioOutput +type ListConstraintsForPortfolioOutput struct { + _ struct{} `type:"structure"` + + // List of detailed constraint information objects. + ConstraintDetails []*ConstraintDetail `type:"list"` + + // The page token to use to retrieve the next page of results for this operation. + // If there are no more pages, this value is null. + NextPageToken *string `type:"string"` +} + +// String returns the string representation +func (s ListConstraintsForPortfolioOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListConstraintsForPortfolioOutput) GoString() string { + return s.String() +} + +// SetConstraintDetails sets the ConstraintDetails field's value. +func (s *ListConstraintsForPortfolioOutput) SetConstraintDetails(v []*ConstraintDetail) *ListConstraintsForPortfolioOutput { + s.ConstraintDetails = v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListConstraintsForPortfolioOutput) SetNextPageToken(v string) *ListConstraintsForPortfolioOutput { + s.NextPageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListLaunchPathsInput +type ListLaunchPathsInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The maximum number of items to return in the results. If more results exist + // than fit in the specified PageSize, the value of NextPageToken in the response + // is non-null. + PageSize *int64 `type:"integer"` + + // The page token of the first page retrieved. If null, this retrieves the first + // page of size PageSize. + PageToken *string `type:"string"` + + // The product identifier.. Identifies the product for which to retrieve LaunchPathSummaries + // information. + // + // ProductId is a required field + ProductId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListLaunchPathsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLaunchPathsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListLaunchPathsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListLaunchPathsInput"} + if s.ProductId == nil { + invalidParams.Add(request.NewErrParamRequired("ProductId")) + } + if s.ProductId != nil && len(*s.ProductId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProductId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *ListLaunchPathsInput) SetAcceptLanguage(v string) *ListLaunchPathsInput { + s.AcceptLanguage = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *ListLaunchPathsInput) SetPageSize(v int64) *ListLaunchPathsInput { + s.PageSize = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *ListLaunchPathsInput) SetPageToken(v string) *ListLaunchPathsInput { + s.PageToken = &v + return s +} + +// SetProductId sets the ProductId field's value. +func (s *ListLaunchPathsInput) SetProductId(v string) *ListLaunchPathsInput { + s.ProductId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListLaunchPathsOutput +type ListLaunchPathsOutput struct { + _ struct{} `type:"structure"` + + // List of launch path information summaries for the specified PageToken. + LaunchPathSummaries []*LaunchPathSummary `type:"list"` + + // The page token to use to retrieve the next page of results for this operation. + // If there are no more pages, this value is null. + NextPageToken *string `type:"string"` +} + +// String returns the string representation +func (s ListLaunchPathsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLaunchPathsOutput) GoString() string { + return s.String() +} + +// SetLaunchPathSummaries sets the LaunchPathSummaries field's value. +func (s *ListLaunchPathsOutput) SetLaunchPathSummaries(v []*LaunchPathSummary) *ListLaunchPathsOutput { + s.LaunchPathSummaries = v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListLaunchPathsOutput) SetNextPageToken(v string) *ListLaunchPathsOutput { + s.NextPageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPortfolioAccessInput +type ListPortfolioAccessInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The portfolio identifier. + // + // PortfolioId is a required field + PortfolioId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListPortfolioAccessInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPortfolioAccessInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListPortfolioAccessInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPortfolioAccessInput"} + if s.PortfolioId == nil { + invalidParams.Add(request.NewErrParamRequired("PortfolioId")) + } + if s.PortfolioId != nil && len(*s.PortfolioId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PortfolioId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *ListPortfolioAccessInput) SetAcceptLanguage(v string) *ListPortfolioAccessInput { + s.AcceptLanguage = &v + return s +} + +// SetPortfolioId sets the PortfolioId field's value. +func (s *ListPortfolioAccessInput) SetPortfolioId(v string) *ListPortfolioAccessInput { + s.PortfolioId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPortfolioAccessOutput +type ListPortfolioAccessOutput struct { + _ struct{} `type:"structure"` + + // List of account IDs associated with access to the portfolio. + AccountIds []*string `type:"list"` + + // The page token to use to retrieve the next page of results for this operation. + // If there are no more pages, this value is null. + NextPageToken *string `type:"string"` +} + +// String returns the string representation +func (s ListPortfolioAccessOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPortfolioAccessOutput) GoString() string { + return s.String() +} + +// SetAccountIds sets the AccountIds field's value. +func (s *ListPortfolioAccessOutput) SetAccountIds(v []*string) *ListPortfolioAccessOutput { + s.AccountIds = v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListPortfolioAccessOutput) SetNextPageToken(v string) *ListPortfolioAccessOutput { + s.NextPageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPortfoliosForProductInput +type ListPortfoliosForProductInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The maximum number of items to return in the results. If more results exist + // than fit in the specified PageSize, the value of NextPageToken in the response + // is non-null. + PageSize *int64 `type:"integer"` + + // The page token of the first page retrieved. If null, this retrieves the first + // page of size PageSize. + PageToken *string `type:"string"` + + // The product identifier. + // + // ProductId is a required field + ProductId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListPortfoliosForProductInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPortfoliosForProductInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListPortfoliosForProductInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPortfoliosForProductInput"} + if s.ProductId == nil { + invalidParams.Add(request.NewErrParamRequired("ProductId")) + } + if s.ProductId != nil && len(*s.ProductId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProductId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *ListPortfoliosForProductInput) SetAcceptLanguage(v string) *ListPortfoliosForProductInput { + s.AcceptLanguage = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *ListPortfoliosForProductInput) SetPageSize(v int64) *ListPortfoliosForProductInput { + s.PageSize = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *ListPortfoliosForProductInput) SetPageToken(v string) *ListPortfoliosForProductInput { + s.PageToken = &v + return s +} + +// SetProductId sets the ProductId field's value. +func (s *ListPortfoliosForProductInput) SetProductId(v string) *ListPortfoliosForProductInput { + s.ProductId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPortfoliosForProductOutput +type ListPortfoliosForProductOutput struct { + _ struct{} `type:"structure"` + + // The page token to use to retrieve the next page of results for this operation. + // If there are no more pages, this value is null. + NextPageToken *string `type:"string"` + + // List of detailed portfolio information objects. + PortfolioDetails []*PortfolioDetail `type:"list"` +} + +// String returns the string representation +func (s ListPortfoliosForProductOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPortfoliosForProductOutput) GoString() string { + return s.String() +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListPortfoliosForProductOutput) SetNextPageToken(v string) *ListPortfoliosForProductOutput { + s.NextPageToken = &v + return s +} + +// SetPortfolioDetails sets the PortfolioDetails field's value. +func (s *ListPortfoliosForProductOutput) SetPortfolioDetails(v []*PortfolioDetail) *ListPortfoliosForProductOutput { + s.PortfolioDetails = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPortfoliosInput +type ListPortfoliosInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The maximum number of items to return in the results. If more results exist + // than fit in the specified PageSize, the value of NextPageToken in the response + // is non-null. + PageSize *int64 `type:"integer"` + + // The page token of the first page retrieved. If null, this retrieves the first + // page of size PageSize. + PageToken *string `type:"string"` +} + +// String returns the string representation +func (s ListPortfoliosInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPortfoliosInput) GoString() string { + return s.String() +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *ListPortfoliosInput) SetAcceptLanguage(v string) *ListPortfoliosInput { + s.AcceptLanguage = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *ListPortfoliosInput) SetPageSize(v int64) *ListPortfoliosInput { + s.PageSize = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *ListPortfoliosInput) SetPageToken(v string) *ListPortfoliosInput { + s.PageToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPortfoliosOutput +type ListPortfoliosOutput struct { + _ struct{} `type:"structure"` + + // The page token to use to retrieve the next page of results for this operation. + // If there are no more pages, this value is null. + NextPageToken *string `type:"string"` + + // List of detailed portfolio information objects. + PortfolioDetails []*PortfolioDetail `type:"list"` +} + +// String returns the string representation +func (s ListPortfoliosOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPortfoliosOutput) GoString() string { + return s.String() +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListPortfoliosOutput) SetNextPageToken(v string) *ListPortfoliosOutput { + s.NextPageToken = &v + return s +} + +// SetPortfolioDetails sets the PortfolioDetails field's value. +func (s *ListPortfoliosOutput) SetPortfolioDetails(v []*PortfolioDetail) *ListPortfoliosOutput { + s.PortfolioDetails = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPrincipalsForPortfolioInput +type ListPrincipalsForPortfolioInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The maximum number of items to return in the results. If more results exist + // than fit in the specified PageSize, the value of NextPageToken in the response + // is non-null. + PageSize *int64 `type:"integer"` + + // The page token of the first page retrieved. If null, this retrieves the first + // page of size PageSize. + PageToken *string `type:"string"` + + // The portfolio identifier. + // + // PortfolioId is a required field + PortfolioId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListPrincipalsForPortfolioInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPrincipalsForPortfolioInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListPrincipalsForPortfolioInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPrincipalsForPortfolioInput"} + if s.PortfolioId == nil { + invalidParams.Add(request.NewErrParamRequired("PortfolioId")) + } + if s.PortfolioId != nil && len(*s.PortfolioId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PortfolioId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *ListPrincipalsForPortfolioInput) SetAcceptLanguage(v string) *ListPrincipalsForPortfolioInput { + s.AcceptLanguage = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *ListPrincipalsForPortfolioInput) SetPageSize(v int64) *ListPrincipalsForPortfolioInput { + s.PageSize = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *ListPrincipalsForPortfolioInput) SetPageToken(v string) *ListPrincipalsForPortfolioInput { + s.PageToken = &v + return s +} + +// SetPortfolioId sets the PortfolioId field's value. +func (s *ListPrincipalsForPortfolioInput) SetPortfolioId(v string) *ListPrincipalsForPortfolioInput { + s.PortfolioId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPrincipalsForPortfolioOutput +type ListPrincipalsForPortfolioOutput struct { + _ struct{} `type:"structure"` + + // The page token to use to retrieve the next page of results for this operation. + // If there are no more pages, this value is null. + NextPageToken *string `type:"string"` + + // The IAM principals (users or roles) associated with the portfolio. + Principals []*Principal `type:"list"` +} + +// String returns the string representation +func (s ListPrincipalsForPortfolioOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPrincipalsForPortfolioOutput) GoString() string { + return s.String() +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListPrincipalsForPortfolioOutput) SetNextPageToken(v string) *ListPrincipalsForPortfolioOutput { + s.NextPageToken = &v + return s +} + +// SetPrincipals sets the Principals field's value. +func (s *ListPrincipalsForPortfolioOutput) SetPrincipals(v []*Principal) *ListPrincipalsForPortfolioOutput { + s.Principals = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListProvisioningArtifactsInput +type ListProvisioningArtifactsInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The product identifier. + // + // ProductId is a required field + ProductId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListProvisioningArtifactsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListProvisioningArtifactsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListProvisioningArtifactsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListProvisioningArtifactsInput"} + if s.ProductId == nil { + invalidParams.Add(request.NewErrParamRequired("ProductId")) + } + if s.ProductId != nil && len(*s.ProductId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProductId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *ListProvisioningArtifactsInput) SetAcceptLanguage(v string) *ListProvisioningArtifactsInput { + s.AcceptLanguage = &v + return s +} + +// SetProductId sets the ProductId field's value. +func (s *ListProvisioningArtifactsInput) SetProductId(v string) *ListProvisioningArtifactsInput { + s.ProductId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListProvisioningArtifactsOutput +type ListProvisioningArtifactsOutput struct { + _ struct{} `type:"structure"` + + // The page token to use to retrieve the next page of results for this operation. + // If there are no more pages, this value is null. + NextPageToken *string `type:"string"` + + // List of detailed provisioning artifact information objects. + ProvisioningArtifactDetails []*ProvisioningArtifactDetail `type:"list"` +} + +// String returns the string representation +func (s ListProvisioningArtifactsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListProvisioningArtifactsOutput) GoString() string { + return s.String() +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListProvisioningArtifactsOutput) SetNextPageToken(v string) *ListProvisioningArtifactsOutput { + s.NextPageToken = &v + return s +} + +// SetProvisioningArtifactDetails sets the ProvisioningArtifactDetails field's value. +func (s *ListProvisioningArtifactsOutput) SetProvisioningArtifactDetails(v []*ProvisioningArtifactDetail) *ListProvisioningArtifactsOutput { + s.ProvisioningArtifactDetails = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListRecordHistoryInput +type ListRecordHistoryInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The access level for obtaining results. If left unspecified, User level access + // is used. + AccessLevelFilter *AccessLevelFilter `type:"structure"` + + // The maximum number of items to return in the results. If more results exist + // than fit in the specified PageSize, the value of NextPageToken in the response + // is non-null. + PageSize *int64 `type:"integer"` + + // The page token of the first page retrieved. If null, this retrieves the first + // page of size PageSize. + PageToken *string `type:"string"` + + // The filter to limit search results. + SearchFilter *ListRecordHistorySearchFilter `type:"structure"` +} + +// String returns the string representation +func (s ListRecordHistoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListRecordHistoryInput) GoString() string { + return s.String() +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *ListRecordHistoryInput) SetAcceptLanguage(v string) *ListRecordHistoryInput { + s.AcceptLanguage = &v + return s +} + +// SetAccessLevelFilter sets the AccessLevelFilter field's value. +func (s *ListRecordHistoryInput) SetAccessLevelFilter(v *AccessLevelFilter) *ListRecordHistoryInput { + s.AccessLevelFilter = v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *ListRecordHistoryInput) SetPageSize(v int64) *ListRecordHistoryInput { + s.PageSize = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *ListRecordHistoryInput) SetPageToken(v string) *ListRecordHistoryInput { + s.PageToken = &v + return s +} + +// SetSearchFilter sets the SearchFilter field's value. +func (s *ListRecordHistoryInput) SetSearchFilter(v *ListRecordHistorySearchFilter) *ListRecordHistoryInput { + s.SearchFilter = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListRecordHistoryOutput +type ListRecordHistoryOutput struct { + _ struct{} `type:"structure"` + + // The page token to use to retrieve the next page of results for this operation. + // If there are no more pages, this value is null. + NextPageToken *string `type:"string"` + + // A list of record detail objects, listed in reverse chronological order. + RecordDetails []*RecordDetail `type:"list"` +} + +// String returns the string representation +func (s ListRecordHistoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListRecordHistoryOutput) GoString() string { + return s.String() +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListRecordHistoryOutput) SetNextPageToken(v string) *ListRecordHistoryOutput { + s.NextPageToken = &v + return s +} + +// SetRecordDetails sets the RecordDetails field's value. +func (s *ListRecordHistoryOutput) SetRecordDetails(v []*RecordDetail) *ListRecordHistoryOutput { + s.RecordDetails = v + return s +} + +// The search filter to limit results when listing request history records. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListRecordHistorySearchFilter +type ListRecordHistorySearchFilter struct { + _ struct{} `type:"structure"` + + // The filter key. + Key *string `type:"string"` + + // The filter value for Key. + Value *string `type:"string"` +} + +// String returns the string representation +func (s ListRecordHistorySearchFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListRecordHistorySearchFilter) GoString() string { + return s.String() +} + +// SetKey sets the Key field's value. +func (s *ListRecordHistorySearchFilter) SetKey(v string) *ListRecordHistorySearchFilter { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ListRecordHistorySearchFilter) SetValue(v string) *ListRecordHistorySearchFilter { + s.Value = &v + return s +} + +// The constraints that the administrator has put on the parameter. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ParameterConstraints +type ParameterConstraints struct { + _ struct{} `type:"structure"` + + // The values that the administrator has allowed for the parameter. + AllowedValues []*string `type:"list"` +} + +// String returns the string representation +func (s ParameterConstraints) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ParameterConstraints) GoString() string { + return s.String() +} + +// SetAllowedValues sets the AllowedValues field's value. +func (s *ParameterConstraints) SetAllowedValues(v []*string) *ParameterConstraints { + s.AllowedValues = v + return s +} + +// Detailed portfolio information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/PortfolioDetail +type PortfolioDetail struct { + _ struct{} `type:"structure"` + + // The ARN assigned to the portfolio. + ARN *string `min:"1" type:"string"` + + // The UTC timestamp of the creation time. + CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The text description of the portfolio. + Description *string `type:"string"` + + // The name to use for display purposes. + DisplayName *string `min:"1" type:"string"` + + // The identifier for the portfolio. + Id *string `min:"1" type:"string"` + + // The name of the portfolio provider. + ProviderName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s PortfolioDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PortfolioDetail) GoString() string { + return s.String() +} + +// SetARN sets the ARN field's value. +func (s *PortfolioDetail) SetARN(v string) *PortfolioDetail { + s.ARN = &v + return s +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *PortfolioDetail) SetCreatedTime(v time.Time) *PortfolioDetail { + s.CreatedTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *PortfolioDetail) SetDescription(v string) *PortfolioDetail { + s.Description = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *PortfolioDetail) SetDisplayName(v string) *PortfolioDetail { + s.DisplayName = &v + return s +} + +// SetId sets the Id field's value. +func (s *PortfolioDetail) SetId(v string) *PortfolioDetail { + s.Id = &v + return s +} + +// SetProviderName sets the ProviderName field's value. +func (s *PortfolioDetail) SetProviderName(v string) *PortfolioDetail { + s.ProviderName = &v + return s +} + +// A principal's ARN and type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/Principal +type Principal struct { + _ struct{} `type:"structure"` + + // The ARN representing the principal (IAM user, role, or group). + PrincipalARN *string `min:"1" type:"string"` + + // The principal type. Must be IAM + PrincipalType *string `type:"string" enum:"PrincipalType"` +} + +// String returns the string representation +func (s Principal) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Principal) GoString() string { + return s.String() +} + +// SetPrincipalARN sets the PrincipalARN field's value. +func (s *Principal) SetPrincipalARN(v string) *Principal { + s.PrincipalARN = &v + return s +} + +// SetPrincipalType sets the PrincipalType field's value. +func (s *Principal) SetPrincipalType(v string) *Principal { + s.PrincipalType = &v + return s +} + +// A single product view aggregation value/count pair, containing metadata about +// each product to which the calling user has access. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ProductViewAggregationValue +type ProductViewAggregationValue struct { + _ struct{} `type:"structure"` + + // An approximate count of the products that match the value. + ApproximateCount *int64 `type:"integer"` + + // The value of the product view aggregation. + Value *string `type:"string"` +} + +// String returns the string representation +func (s ProductViewAggregationValue) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProductViewAggregationValue) GoString() string { + return s.String() +} + +// SetApproximateCount sets the ApproximateCount field's value. +func (s *ProductViewAggregationValue) SetApproximateCount(v int64) *ProductViewAggregationValue { + s.ApproximateCount = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ProductViewAggregationValue) SetValue(v string) *ProductViewAggregationValue { + s.Value = &v + return s +} + +// Detailed product view information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ProductViewDetail +type ProductViewDetail struct { + _ struct{} `type:"structure"` + + // The UTC timestamp of the creation time. + CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The ARN associated with the product. + ProductARN *string `min:"1" type:"string"` + + // The summary metadata about the specified product view. + ProductViewSummary *ProductViewSummary `type:"structure"` + + // Current status of the product. + Status *string `type:"string" enum:"Status"` +} + +// String returns the string representation +func (s ProductViewDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProductViewDetail) GoString() string { + return s.String() +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *ProductViewDetail) SetCreatedTime(v time.Time) *ProductViewDetail { + s.CreatedTime = &v + return s +} + +// SetProductARN sets the ProductARN field's value. +func (s *ProductViewDetail) SetProductARN(v string) *ProductViewDetail { + s.ProductARN = &v + return s +} + +// SetProductViewSummary sets the ProductViewSummary field's value. +func (s *ProductViewDetail) SetProductViewSummary(v *ProductViewSummary) *ProductViewDetail { + s.ProductViewSummary = v + return s +} + +// SetStatus sets the Status field's value. +func (s *ProductViewDetail) SetStatus(v string) *ProductViewDetail { + s.Status = &v + return s +} + +// The summary metadata about the specified product. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ProductViewSummary +type ProductViewSummary struct { + _ struct{} `type:"structure"` + + // The distributor of the product. Contact the product administrator for the + // significance of this value. + Distributor *string `type:"string"` + + // A value of false indicates that the product does not have a default path, + // while a value of true indicates that it does. If it's false, call ListLaunchPaths + // to disambiguate between paths. If true, ListLaunchPaths is not required, + // and the output of the ProductViewSummary operation can be used directly with + // DescribeProvisioningParameters. + HasDefaultPath *bool `type:"boolean"` + + // The product view identifier. + Id *string `min:"1" type:"string"` + + // The name of the product. + Name *string `type:"string"` + + // The owner of the product. Contact the product administrator for the significance + // of this value. + Owner *string `type:"string"` + + // The product identifier. + ProductId *string `min:"1" type:"string"` + + // Short description of the product. + ShortDescription *string `type:"string"` + + // The description of the support for this Product. + SupportDescription *string `type:"string"` + + // The email contact information to obtain support for this Product. + SupportEmail *string `type:"string"` + + // The URL information to obtain support for this Product. + SupportUrl *string `type:"string"` + + // The product type. Contact the product administrator for the significance + // of this value. + Type *string `type:"string" enum:"ProductType"` +} + +// String returns the string representation +func (s ProductViewSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProductViewSummary) GoString() string { + return s.String() +} + +// SetDistributor sets the Distributor field's value. +func (s *ProductViewSummary) SetDistributor(v string) *ProductViewSummary { + s.Distributor = &v + return s +} + +// SetHasDefaultPath sets the HasDefaultPath field's value. +func (s *ProductViewSummary) SetHasDefaultPath(v bool) *ProductViewSummary { + s.HasDefaultPath = &v + return s +} + +// SetId sets the Id field's value. +func (s *ProductViewSummary) SetId(v string) *ProductViewSummary { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *ProductViewSummary) SetName(v string) *ProductViewSummary { + s.Name = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *ProductViewSummary) SetOwner(v string) *ProductViewSummary { + s.Owner = &v + return s +} + +// SetProductId sets the ProductId field's value. +func (s *ProductViewSummary) SetProductId(v string) *ProductViewSummary { + s.ProductId = &v + return s +} + +// SetShortDescription sets the ShortDescription field's value. +func (s *ProductViewSummary) SetShortDescription(v string) *ProductViewSummary { + s.ShortDescription = &v + return s +} + +// SetSupportDescription sets the SupportDescription field's value. +func (s *ProductViewSummary) SetSupportDescription(v string) *ProductViewSummary { + s.SupportDescription = &v + return s +} + +// SetSupportEmail sets the SupportEmail field's value. +func (s *ProductViewSummary) SetSupportEmail(v string) *ProductViewSummary { + s.SupportEmail = &v + return s +} + +// SetSupportUrl sets the SupportUrl field's value. +func (s *ProductViewSummary) SetSupportUrl(v string) *ProductViewSummary { + s.SupportUrl = &v + return s +} + +// SetType sets the Type field's value. +func (s *ProductViewSummary) SetType(v string) *ProductViewSummary { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ProvisionProductInput +type ProvisionProductInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // Passed to CloudFormation. The SNS topic ARNs to which to publish stack-related + // events. + NotificationArns []*string `type:"list"` + + // The identifier of the path for this product's provisioning. This value is + // optional if the product has a default path, and is required if there is more + // than one path for the specified product. + PathId *string `min:"1" type:"string"` + + // The product identifier. + // + // ProductId is a required field + ProductId *string `min:"1" type:"string" required:"true"` + + // An idempotency token that uniquely identifies the provisioning request. + // + // ProvisionToken is a required field + ProvisionToken *string `min:"1" type:"string" required:"true" idempotencyToken:"true"` + + // A user-friendly name to identify the ProvisionedProduct object. This value + // must be unique for the AWS account and cannot be updated after the product + // is provisioned. + // + // ProvisionedProductName is a required field + ProvisionedProductName *string `type:"string" required:"true"` + + // The provisioning artifact identifier for this product. + // + // ProvisioningArtifactId is a required field + ProvisioningArtifactId *string `min:"1" type:"string" required:"true"` + + // Parameters specified by the administrator that are required for provisioning + // the product. + ProvisioningParameters []*ProvisioningParameter `type:"list"` + + // A list of tags to use as provisioning options. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s ProvisionProductInput) String() string { + return awsutil.Prettify(s) +} // GoString returns the string representation -func (s AccessLevelFilter) GoString() string { +func (s ProvisionProductInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ProvisionProductInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ProvisionProductInput"} + if s.PathId != nil && len(*s.PathId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PathId", 1)) + } + if s.ProductId == nil { + invalidParams.Add(request.NewErrParamRequired("ProductId")) + } + if s.ProductId != nil && len(*s.ProductId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProductId", 1)) + } + if s.ProvisionToken == nil { + invalidParams.Add(request.NewErrParamRequired("ProvisionToken")) + } + if s.ProvisionToken != nil && len(*s.ProvisionToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProvisionToken", 1)) + } + if s.ProvisionedProductName == nil { + invalidParams.Add(request.NewErrParamRequired("ProvisionedProductName")) + } + if s.ProvisioningArtifactId == nil { + invalidParams.Add(request.NewErrParamRequired("ProvisioningArtifactId")) + } + if s.ProvisioningArtifactId != nil && len(*s.ProvisioningArtifactId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProvisioningArtifactId", 1)) + } + if s.ProvisioningParameters != nil { + for i, v := range s.ProvisioningParameters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ProvisioningParameters", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *ProvisionProductInput) SetAcceptLanguage(v string) *ProvisionProductInput { + s.AcceptLanguage = &v + return s +} + +// SetNotificationArns sets the NotificationArns field's value. +func (s *ProvisionProductInput) SetNotificationArns(v []*string) *ProvisionProductInput { + s.NotificationArns = v + return s +} + +// SetPathId sets the PathId field's value. +func (s *ProvisionProductInput) SetPathId(v string) *ProvisionProductInput { + s.PathId = &v + return s +} + +// SetProductId sets the ProductId field's value. +func (s *ProvisionProductInput) SetProductId(v string) *ProvisionProductInput { + s.ProductId = &v + return s +} + +// SetProvisionToken sets the ProvisionToken field's value. +func (s *ProvisionProductInput) SetProvisionToken(v string) *ProvisionProductInput { + s.ProvisionToken = &v + return s +} + +// SetProvisionedProductName sets the ProvisionedProductName field's value. +func (s *ProvisionProductInput) SetProvisionedProductName(v string) *ProvisionProductInput { + s.ProvisionedProductName = &v + return s +} + +// SetProvisioningArtifactId sets the ProvisioningArtifactId field's value. +func (s *ProvisionProductInput) SetProvisioningArtifactId(v string) *ProvisionProductInput { + s.ProvisioningArtifactId = &v + return s +} + +// SetProvisioningParameters sets the ProvisioningParameters field's value. +func (s *ProvisionProductInput) SetProvisioningParameters(v []*ProvisioningParameter) *ProvisionProductInput { + s.ProvisioningParameters = v + return s +} + +// SetTags sets the Tags field's value. +func (s *ProvisionProductInput) SetTags(v []*Tag) *ProvisionProductInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ProvisionProductOutput +type ProvisionProductOutput struct { + _ struct{} `type:"structure"` + + // The detailed result of the ProvisionProduct request, containing the inputs + // made to that request, the current state of the request, a pointer to the + // ProvisionedProduct object of the request, and a list of any errors that the + // request encountered. + RecordDetail *RecordDetail `type:"structure"` +} + +// String returns the string representation +func (s ProvisionProductOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProvisionProductOutput) GoString() string { + return s.String() +} + +// SetRecordDetail sets the RecordDetail field's value. +func (s *ProvisionProductOutput) SetRecordDetail(v *RecordDetail) *ProvisionProductOutput { + s.RecordDetail = v + return s +} + +// Detailed information about a ProvisionedProduct object. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ProvisionedProductDetail +type ProvisionedProductDetail struct { + _ struct{} `type:"structure"` + + // The ARN associated with the ProvisionedProduct object. + Arn *string `min:"1" type:"string"` + + // The UTC timestamp of the creation time. + CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The identifier of the ProvisionedProduct object. + Id *string `type:"string"` + + // A token to disambiguate duplicate requests. You can create multiple resources + // using the same input in multiple requests, provided that you also specify + // a different idempotency token for each request. + IdempotencyToken *string `min:"1" type:"string"` + + // The record identifier of the last request performed on this ProvisionedProduct + // object. + LastRecordId *string `type:"string"` + + // The user-friendly name of the ProvisionedProduct object. + Name *string `min:"1" type:"string"` + + // The current status of the ProvisionedProduct. + Status *string `type:"string" enum:"RecordStatus"` + + // The current status message of the ProvisionedProduct. + StatusMessage *string `type:"string"` + + // The type of the ProvisionedProduct object. + Type *string `type:"string"` +} + +// String returns the string representation +func (s ProvisionedProductDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProvisionedProductDetail) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *ProvisionedProductDetail) SetArn(v string) *ProvisionedProductDetail { + s.Arn = &v + return s +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *ProvisionedProductDetail) SetCreatedTime(v time.Time) *ProvisionedProductDetail { + s.CreatedTime = &v + return s +} + +// SetId sets the Id field's value. +func (s *ProvisionedProductDetail) SetId(v string) *ProvisionedProductDetail { + s.Id = &v + return s +} + +// SetIdempotencyToken sets the IdempotencyToken field's value. +func (s *ProvisionedProductDetail) SetIdempotencyToken(v string) *ProvisionedProductDetail { + s.IdempotencyToken = &v + return s +} + +// SetLastRecordId sets the LastRecordId field's value. +func (s *ProvisionedProductDetail) SetLastRecordId(v string) *ProvisionedProductDetail { + s.LastRecordId = &v + return s +} + +// SetName sets the Name field's value. +func (s *ProvisionedProductDetail) SetName(v string) *ProvisionedProductDetail { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ProvisionedProductDetail) SetStatus(v string) *ProvisionedProductDetail { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ProvisionedProductDetail) SetStatusMessage(v string) *ProvisionedProductDetail { + s.StatusMessage = &v + return s +} + +// SetType sets the Type field's value. +func (s *ProvisionedProductDetail) SetType(v string) *ProvisionedProductDetail { + s.Type = &v + return s +} + +// Contains information indicating the ways in which a product can be provisioned. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ProvisioningArtifact +type ProvisioningArtifact struct { + _ struct{} `type:"structure"` + + // The UTC timestamp of the creation time. + CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The text description of the artifact. + Description *string `type:"string"` + + // The identifier for the artifact. + Id *string `min:"1" type:"string"` + + // The name of the artifact. + Name *string `type:"string"` +} + +// String returns the string representation +func (s ProvisioningArtifact) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProvisioningArtifact) GoString() string { + return s.String() +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *ProvisioningArtifact) SetCreatedTime(v time.Time) *ProvisioningArtifact { + s.CreatedTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ProvisioningArtifact) SetDescription(v string) *ProvisioningArtifact { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *ProvisioningArtifact) SetId(v string) *ProvisioningArtifact { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *ProvisioningArtifact) SetName(v string) *ProvisioningArtifact { + s.Name = &v + return s +} + +// Detailed provisioning artifact information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ProvisioningArtifactDetail +type ProvisioningArtifactDetail struct { + _ struct{} `type:"structure"` + + // The UTC timestamp of the creation time. + CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The text description of the provisioning artifact. + Description *string `type:"string"` + + // The identifier of the provisioning artifact. + Id *string `min:"1" type:"string"` + + // The name assigned to the provisioning artifact. + Name *string `type:"string"` + + // The type of the provisioning artifact. + Type *string `type:"string" enum:"ProvisioningArtifactType"` +} + +// String returns the string representation +func (s ProvisioningArtifactDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProvisioningArtifactDetail) GoString() string { return s.String() } -// An administrator-specified constraint to apply when provisioning a product. -type ConstraintSummary struct { - _ struct{} `type:"structure"` +// SetCreatedTime sets the CreatedTime field's value. +func (s *ProvisioningArtifactDetail) SetCreatedTime(v time.Time) *ProvisioningArtifactDetail { + s.CreatedTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ProvisioningArtifactDetail) SetDescription(v string) *ProvisioningArtifactDetail { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *ProvisioningArtifactDetail) SetId(v string) *ProvisioningArtifactDetail { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *ProvisioningArtifactDetail) SetName(v string) *ProvisioningArtifactDetail { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *ProvisioningArtifactDetail) SetType(v string) *ProvisioningArtifactDetail { + s.Type = &v + return s +} + +// A parameter used to successfully provision the product. This value includes +// a list of allowable values and additional metadata. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ProvisioningArtifactParameter +type ProvisioningArtifactParameter struct { + _ struct{} `type:"structure"` + + // The default value for this parameter. + DefaultValue *string `type:"string"` + + // The text description of the parameter. + Description *string `type:"string"` + + // If this value is true, the value for this parameter is obfuscated from view + // when the parameter is retrieved. This parameter is used to hide sensitive + // information. + IsNoEcho *bool `type:"boolean"` + + // The list of constraints that the administrator has put on the parameter. + ParameterConstraints *ParameterConstraints `type:"structure"` - // The text description of the constraint. - Description *string `type:"string"` + // The parameter key. + ParameterKey *string `min:"1" type:"string"` - // The type of the constraint. - Type *string `type:"string"` + // The parameter type. + ParameterType *string `type:"string"` } // String returns the string representation -func (s ConstraintSummary) String() string { +func (s ProvisioningArtifactParameter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ConstraintSummary) GoString() string { +func (s ProvisioningArtifactParameter) GoString() string { return s.String() } -type DescribeProductInput struct { +// SetDefaultValue sets the DefaultValue field's value. +func (s *ProvisioningArtifactParameter) SetDefaultValue(v string) *ProvisioningArtifactParameter { + s.DefaultValue = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ProvisioningArtifactParameter) SetDescription(v string) *ProvisioningArtifactParameter { + s.Description = &v + return s +} + +// SetIsNoEcho sets the IsNoEcho field's value. +func (s *ProvisioningArtifactParameter) SetIsNoEcho(v bool) *ProvisioningArtifactParameter { + s.IsNoEcho = &v + return s +} + +// SetParameterConstraints sets the ParameterConstraints field's value. +func (s *ProvisioningArtifactParameter) SetParameterConstraints(v *ParameterConstraints) *ProvisioningArtifactParameter { + s.ParameterConstraints = v + return s +} + +// SetParameterKey sets the ParameterKey field's value. +func (s *ProvisioningArtifactParameter) SetParameterKey(v string) *ProvisioningArtifactParameter { + s.ParameterKey = &v + return s +} + +// SetParameterType sets the ParameterType field's value. +func (s *ProvisioningArtifactParameter) SetParameterType(v string) *ProvisioningArtifactParameter { + s.ParameterType = &v + return s +} + +// Provisioning artifact properties. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ProvisioningArtifactProperties +type ProvisioningArtifactProperties struct { _ struct{} `type:"structure"` - // The language code to use for this operation. Supported language codes are - // as follows: - // - // "en" (English) - // - // "jp" (Japanese) - // - // "zh" (Chinese) - // - // If no code is specified, "en" is used as the default. - AcceptLanguage *string `type:"string"` + // The text description of the provisioning artifact properties. + Description *string `type:"string"` - // The ProductId of the product to describe. + // Additional information about the provisioning artifact properties. // - // Id is a required field - Id *string `min:"1" type:"string" required:"true"` + // Info is a required field + Info map[string]*string `min:"1" type:"map" required:"true"` + + // The name assigned to the provisioning artifact properties. + Name *string `type:"string"` + + // The type of the provisioning artifact properties. + Type *string `type:"string" enum:"ProvisioningArtifactType"` } // String returns the string representation -func (s DescribeProductInput) String() string { +func (s ProvisioningArtifactProperties) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeProductInput) GoString() string { +func (s ProvisioningArtifactProperties) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeProductInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeProductInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) +func (s *ProvisioningArtifactProperties) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ProvisioningArtifactProperties"} + if s.Info == nil { + invalidParams.Add(request.NewErrParamRequired("Info")) } - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + if s.Info != nil && len(s.Info) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Info", 1)) } if invalidParams.Len() > 0 { @@ -869,66 +7548,58 @@ func (s *DescribeProductInput) Validate() error { return nil } -type DescribeProductOutput struct { - _ struct{} `type:"structure"` - - // The summary metadata about the specified product. - ProductViewSummary *ProductViewSummary `type:"structure"` +// SetDescription sets the Description field's value. +func (s *ProvisioningArtifactProperties) SetDescription(v string) *ProvisioningArtifactProperties { + s.Description = &v + return s +} - // A list of provisioning artifact objects for the specified product. The ProvisioningArtifacts - // parameter represent the ways the specified product can be provisioned. - ProvisioningArtifacts []*ProvisioningArtifact `type:"list"` +// SetInfo sets the Info field's value. +func (s *ProvisioningArtifactProperties) SetInfo(v map[string]*string) *ProvisioningArtifactProperties { + s.Info = v + return s } -// String returns the string representation -func (s DescribeProductOutput) String() string { - return awsutil.Prettify(s) +// SetName sets the Name field's value. +func (s *ProvisioningArtifactProperties) SetName(v string) *ProvisioningArtifactProperties { + s.Name = &v + return s } -// GoString returns the string representation -func (s DescribeProductOutput) GoString() string { - return s.String() +// SetType sets the Type field's value. +func (s *ProvisioningArtifactProperties) SetType(v string) *ProvisioningArtifactProperties { + s.Type = &v + return s } -type DescribeProductViewInput struct { +// The arameter key/value pairs used to provision a product. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ProvisioningParameter +type ProvisioningParameter struct { _ struct{} `type:"structure"` - // The language code to use for this operation. Supported language codes are - // as follows: - // - // "en" (English) - // - // "jp" (Japanese) - // - // "zh" (Chinese) - // - // If no code is specified, "en" is used as the default. - AcceptLanguage *string `type:"string"` + // The ProvisioningArtifactParameter.ParameterKey parameter from DescribeProvisioningParameters. + Key *string `min:"1" type:"string"` - // The ProductViewId of the product to describe. - // - // Id is a required field - Id *string `min:"1" type:"string" required:"true"` + // The value to use for provisioning. Any constraints on this value can be found + // in ProvisioningArtifactParameter for Key. + Value *string `type:"string"` } // String returns the string representation -func (s DescribeProductViewInput) String() string { +func (s ProvisioningParameter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeProductViewInput) GoString() string { +func (s ProvisioningParameter) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeProductViewInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeProductViewInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) +func (s *ProvisioningParameter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ProvisioningParameter"} + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } if invalidParams.Len() > 0 { @@ -937,231 +7608,266 @@ func (s *DescribeProductViewInput) Validate() error { return nil } -type DescribeProductViewOutput struct { - _ struct{} `type:"structure"` - - // The summary metadata about the specified product. - ProductViewSummary *ProductViewSummary `type:"structure"` - - // A list of provisioning artifact objects for the specified product. The ProvisioningArtifacts - // represent the ways in which the specified product can be provisioned. - ProvisioningArtifacts []*ProvisioningArtifact `type:"list"` -} - -// String returns the string representation -func (s DescribeProductViewOutput) String() string { - return awsutil.Prettify(s) +// SetKey sets the Key field's value. +func (s *ProvisioningParameter) SetKey(v string) *ProvisioningParameter { + s.Key = &v + return s } -// GoString returns the string representation -func (s DescribeProductViewOutput) GoString() string { - return s.String() +// SetValue sets the Value field's value. +func (s *ProvisioningParameter) SetValue(v string) *ProvisioningParameter { + s.Value = &v + return s } -type DescribeProvisioningParametersInput struct { +// The full details of a specific ProvisionedProduct object. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/RecordDetail +type RecordDetail struct { _ struct{} `type:"structure"` - // The language code to use for this operation. Supported language codes are - // as follows: - // - // "en" (English) - // - // "jp" (Japanese) - // - // "zh" (Chinese) - // - // If no code is specified, "en" is used as the default. - AcceptLanguage *string `type:"string"` + // The UTC timestamp of the creation time. + CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` - // The identifier of the path for this product's provisioning. This value is - // optional if the product has a default path, and is required if there is more - // than one path for the specified product. + // The identifier of the path for this product's provisioning. PathId *string `min:"1" type:"string"` - // The identifier of the product. - // - // ProductId is a required field - ProductId *string `min:"1" type:"string" required:"true"` + // The product identifier. + ProductId *string `min:"1" type:"string"` + + // The identifier of the ProvisionedProduct object. + ProvisionedProductId *string `min:"1" type:"string"` + + // The user-friendly name of the ProvisionedProduct object. + ProvisionedProductName *string `type:"string"` + + // The type of the ProvisionedProduct object. + ProvisionedProductType *string `type:"string"` // The provisioning artifact identifier for this product. - // - // ProvisioningArtifactId is a required field - ProvisioningArtifactId *string `min:"1" type:"string" required:"true"` + ProvisioningArtifactId *string `min:"1" type:"string"` + + // A list of errors that occurred while processing the request. + RecordErrors []*RecordError `type:"list"` + + // The identifier of the ProvisionedProduct object record. + RecordId *string `min:"1" type:"string"` + + // List of tags associated with this record. + RecordTags []*RecordTag `type:"list"` + + // The record type for this record. + RecordType *string `type:"string"` + + // The status of the ProvisionedProduct object. + Status *string `type:"string" enum:"RecordStatus"` + + // The time when the record for the ProvisionedProduct object was last updated. + UpdatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` } // String returns the string representation -func (s DescribeProvisioningParametersInput) String() string { +func (s RecordDetail) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeProvisioningParametersInput) GoString() string { +func (s RecordDetail) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeProvisioningParametersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeProvisioningParametersInput"} - if s.PathId != nil && len(*s.PathId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PathId", 1)) - } - if s.ProductId == nil { - invalidParams.Add(request.NewErrParamRequired("ProductId")) - } - if s.ProductId != nil && len(*s.ProductId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProductId", 1)) - } - if s.ProvisioningArtifactId == nil { - invalidParams.Add(request.NewErrParamRequired("ProvisioningArtifactId")) - } - if s.ProvisioningArtifactId != nil && len(*s.ProvisioningArtifactId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProvisioningArtifactId", 1)) - } +// SetCreatedTime sets the CreatedTime field's value. +func (s *RecordDetail) SetCreatedTime(v time.Time) *RecordDetail { + s.CreatedTime = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetPathId sets the PathId field's value. +func (s *RecordDetail) SetPathId(v string) *RecordDetail { + s.PathId = &v + return s } -type DescribeProvisioningParametersOutput struct { - _ struct{} `type:"structure"` +// SetProductId sets the ProductId field's value. +func (s *RecordDetail) SetProductId(v string) *RecordDetail { + s.ProductId = &v + return s +} - // The list of constraint summaries that apply to provisioning this product. - ConstraintSummaries []*ConstraintSummary `type:"list"` +// SetProvisionedProductId sets the ProvisionedProductId field's value. +func (s *RecordDetail) SetProvisionedProductId(v string) *RecordDetail { + s.ProvisionedProductId = &v + return s +} - // The list of parameters used to successfully provision the product. Each parameter - // includes a list of allowable values and additional metadata about each parameter. - ProvisioningArtifactParameters []*ProvisioningArtifactParameter `type:"list"` +// SetProvisionedProductName sets the ProvisionedProductName field's value. +func (s *RecordDetail) SetProvisionedProductName(v string) *RecordDetail { + s.ProvisionedProductName = &v + return s +} - // Any additional metadata specifically related to the provisioning of the product. - // For example, see the Version field of the CloudFormation template. - UsageInstructions []*UsageInstruction `type:"list"` +// SetProvisionedProductType sets the ProvisionedProductType field's value. +func (s *RecordDetail) SetProvisionedProductType(v string) *RecordDetail { + s.ProvisionedProductType = &v + return s } -// String returns the string representation -func (s DescribeProvisioningParametersOutput) String() string { - return awsutil.Prettify(s) +// SetProvisioningArtifactId sets the ProvisioningArtifactId field's value. +func (s *RecordDetail) SetProvisioningArtifactId(v string) *RecordDetail { + s.ProvisioningArtifactId = &v + return s } -// GoString returns the string representation -func (s DescribeProvisioningParametersOutput) GoString() string { - return s.String() +// SetRecordErrors sets the RecordErrors field's value. +func (s *RecordDetail) SetRecordErrors(v []*RecordError) *RecordDetail { + s.RecordErrors = v + return s } -type DescribeRecordInput struct { - _ struct{} `type:"structure"` +// SetRecordId sets the RecordId field's value. +func (s *RecordDetail) SetRecordId(v string) *RecordDetail { + s.RecordId = &v + return s +} - // The language code to use for this operation. Supported language codes are - // as follows: - // - // "en" (English) - // - // "jp" (Japanese) - // - // "zh" (Chinese) - // - // If no code is specified, "en" is used as the default. - AcceptLanguage *string `type:"string"` +// SetRecordTags sets the RecordTags field's value. +func (s *RecordDetail) SetRecordTags(v []*RecordTag) *RecordDetail { + s.RecordTags = v + return s +} - // The record identifier of the ProvisionedProduct object for which to retrieve - // output information. This is the RecordDetail.RecordId obtained from the request - // operation's response. - // - // Id is a required field - Id *string `min:"1" type:"string" required:"true"` +// SetRecordType sets the RecordType field's value. +func (s *RecordDetail) SetRecordType(v string) *RecordDetail { + s.RecordType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *RecordDetail) SetStatus(v string) *RecordDetail { + s.Status = &v + return s +} + +// SetUpdatedTime sets the UpdatedTime field's value. +func (s *RecordDetail) SetUpdatedTime(v time.Time) *RecordDetail { + s.UpdatedTime = &v + return s +} + +// The error code and description resulting from an operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/RecordError +type RecordError struct { + _ struct{} `type:"structure"` - // The maximum number of items to return in the results. If more results exist - // than fit in the specified PageSize, the value of NextPageToken in the response - // is non-null. - PageSize *int64 `type:"integer"` + // The numeric value of the error. + Code *string `type:"string"` - // The page token of the first page retrieved. If null, this retrieves the first - // page of size PageSize. - PageToken *string `type:"string"` + // The text description of the error. + Description *string `type:"string"` } // String returns the string representation -func (s DescribeRecordInput) String() string { +func (s RecordError) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeRecordInput) GoString() string { +func (s RecordError) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeRecordInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeRecordInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) - } +// SetCode sets the Code field's value. +func (s *RecordError) SetCode(v string) *RecordError { + s.Code = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetDescription sets the Description field's value. +func (s *RecordError) SetDescription(v string) *RecordError { + s.Description = &v + return s } -type DescribeRecordOutput struct { +// An output for the specified Product object created as the result of a request. +// For example, a CloudFormation-backed product that creates an S3 bucket would +// have an output for the S3 bucket URL. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/RecordOutput +type RecordOutput struct { _ struct{} `type:"structure"` - // The page token to use to retrieve the next page of results for this operation. - // If there are no more pages, this value is null. - NextPageToken *string `type:"string"` + // The text description of the output. + Description *string `type:"string"` - // Detailed record information for the specified product. - RecordDetail *RecordDetail `type:"structure"` + // The output key. + OutputKey *string `type:"string"` - // A list of outputs for the specified Product object created as the result - // of a request. For example, a CloudFormation-backed product that creates an - // S3 bucket would have an output for the S3 bucket URL. - RecordOutputs []*RecordOutput `type:"list"` + // The output value. + OutputValue *string `type:"string"` } // String returns the string representation -func (s DescribeRecordOutput) String() string { +func (s RecordOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeRecordOutput) GoString() string { +func (s RecordOutput) GoString() string { return s.String() } -// Summary information about a path for a user to have access to a specified -// product. -type LaunchPathSummary struct { - _ struct{} `type:"structure"` +// SetDescription sets the Description field's value. +func (s *RecordOutput) SetDescription(v string) *RecordOutput { + s.Description = &v + return s +} - // List of constraints on the portfolio-product relationship. - ConstraintSummaries []*ConstraintSummary `type:"list"` +// SetOutputKey sets the OutputKey field's value. +func (s *RecordOutput) SetOutputKey(v string) *RecordOutput { + s.OutputKey = &v + return s +} - // The unique identifier of the product path. - Id *string `min:"1" type:"string"` +// SetOutputValue sets the OutputValue field's value. +func (s *RecordOutput) SetOutputValue(v string) *RecordOutput { + s.OutputValue = &v + return s +} - // Corresponds to the name of the portfolio to which the user was assigned. - Name *string `type:"string"` +// A tag associated with the record, stored as a key-value pair. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/RecordTag +type RecordTag struct { + _ struct{} `type:"structure"` - // List of tags used by this launch path. - Tags []*Tag `type:"list"` + // The key for this tag. + Key *string `min:"1" type:"string"` + + // The value for this tag. + Value *string `min:"1" type:"string"` } // String returns the string representation -func (s LaunchPathSummary) String() string { +func (s RecordTag) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s LaunchPathSummary) GoString() string { +func (s RecordTag) GoString() string { return s.String() } -type ListLaunchPathsInput struct { +// SetKey sets the Key field's value. +func (s *RecordTag) SetKey(v string) *RecordTag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *RecordTag) SetValue(v string) *RecordTag { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/RejectPortfolioShareInput +type RejectPortfolioShareInput struct { _ struct{} `type:"structure"` // The language code to use for this operation. Supported language codes are @@ -1176,39 +7882,30 @@ type ListLaunchPathsInput struct { // If no code is specified, "en" is used as the default. AcceptLanguage *string `type:"string"` - // The maximum number of items to return in the results. If more results exist - // than fit in the specified PageSize, the value of NextPageToken in the response - // is non-null. - PageSize *int64 `type:"integer"` - - // The page token of the first page retrieved. If null, this retrieves the first - // page of size PageSize. - PageToken *string `type:"string"` - - // Identifies the product for which to retrieve LaunchPathSummaries information. + // The portfolio identifier. // - // ProductId is a required field - ProductId *string `min:"1" type:"string" required:"true"` + // PortfolioId is a required field + PortfolioId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ListLaunchPathsInput) String() string { +func (s RejectPortfolioShareInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListLaunchPathsInput) GoString() string { +func (s RejectPortfolioShareInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListLaunchPathsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListLaunchPathsInput"} - if s.ProductId == nil { - invalidParams.Add(request.NewErrParamRequired("ProductId")) +func (s *RejectPortfolioShareInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RejectPortfolioShareInput"} + if s.PortfolioId == nil { + invalidParams.Add(request.NewErrParamRequired("PortfolioId")) } - if s.ProductId != nil && len(*s.ProductId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProductId", 1)) + if s.PortfolioId != nil && len(*s.PortfolioId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PortfolioId", 1)) } if invalidParams.Len() > 0 { @@ -1217,28 +7914,35 @@ func (s *ListLaunchPathsInput) Validate() error { return nil } -type ListLaunchPathsOutput struct { - _ struct{} `type:"structure"` +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *RejectPortfolioShareInput) SetAcceptLanguage(v string) *RejectPortfolioShareInput { + s.AcceptLanguage = &v + return s +} - // List of launch path information summaries for the specified PageToken. - LaunchPathSummaries []*LaunchPathSummary `type:"list"` +// SetPortfolioId sets the PortfolioId field's value. +func (s *RejectPortfolioShareInput) SetPortfolioId(v string) *RejectPortfolioShareInput { + s.PortfolioId = &v + return s +} - // The page token to use to retrieve the next page of results for this operation. - // If there are no more pages, this value is null. - NextPageToken *string `type:"string"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/RejectPortfolioShareOutput +type RejectPortfolioShareOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation -func (s ListLaunchPathsOutput) String() string { +func (s RejectPortfolioShareOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListLaunchPathsOutput) GoString() string { +func (s RejectPortfolioShareOutput) GoString() string { return s.String() } -type ListRecordHistoryInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ScanProvisionedProductsInput +type ScanProvisionedProductsInput struct { _ struct{} `type:"structure"` // The language code to use for this operation. Supported language codes are @@ -1265,159 +7969,78 @@ type ListRecordHistoryInput struct { // The page token of the first page retrieved. If null, this retrieves the first // page of size PageSize. PageToken *string `type:"string"` - - // The filter to limit search results. - SearchFilter *ListRecordHistorySearchFilter `type:"structure"` -} - -// String returns the string representation -func (s ListRecordHistoryInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListRecordHistoryInput) GoString() string { - return s.String() -} - -type ListRecordHistoryOutput struct { - _ struct{} `type:"structure"` - - // The page token to use to retrieve the next page of results for this operation. - // If there are no more pages, this value is null. - NextPageToken *string `type:"string"` - - // A list of record detail objects, listed in reverse chronological order. - RecordDetails []*RecordDetail `type:"list"` } // String returns the string representation -func (s ListRecordHistoryOutput) String() string { +func (s ScanProvisionedProductsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListRecordHistoryOutput) GoString() string { +func (s ScanProvisionedProductsInput) GoString() string { return s.String() } -// The search filter to limit results when listing request history records. -type ListRecordHistorySearchFilter struct { - _ struct{} `type:"structure"` - - // The filter key. - Key *string `type:"string"` - - // The filter value for Key. - Value *string `type:"string"` -} - -// String returns the string representation -func (s ListRecordHistorySearchFilter) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListRecordHistorySearchFilter) GoString() string { - return s.String() +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *ScanProvisionedProductsInput) SetAcceptLanguage(v string) *ScanProvisionedProductsInput { + s.AcceptLanguage = &v + return s } -// The constraints that the administrator has put on the parameter. -type ParameterConstraints struct { - _ struct{} `type:"structure"` - - // The values that the administrator has allowed for the parameter. - AllowedValues []*string `type:"list"` +// SetAccessLevelFilter sets the AccessLevelFilter field's value. +func (s *ScanProvisionedProductsInput) SetAccessLevelFilter(v *AccessLevelFilter) *ScanProvisionedProductsInput { + s.AccessLevelFilter = v + return s } -// String returns the string representation -func (s ParameterConstraints) String() string { - return awsutil.Prettify(s) +// SetPageSize sets the PageSize field's value. +func (s *ScanProvisionedProductsInput) SetPageSize(v int64) *ScanProvisionedProductsInput { + s.PageSize = &v + return s } -// GoString returns the string representation -func (s ParameterConstraints) GoString() string { - return s.String() +// SetPageToken sets the PageToken field's value. +func (s *ScanProvisionedProductsInput) SetPageToken(v string) *ScanProvisionedProductsInput { + s.PageToken = &v + return s } -// A single product view aggregation value/count pair, containing metadata about -// each product to which the calling user has access. -type ProductViewAggregationValue struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ScanProvisionedProductsOutput +type ScanProvisionedProductsOutput struct { _ struct{} `type:"structure"` - // An approximate count of the products that match the value. - ApproximateCount *int64 `type:"integer"` + // The page token to use to retrieve the next page of results for this operation. + // If there are no more pages, this value is null. + NextPageToken *string `type:"string"` - // The value of the product view aggregation. - Value *string `type:"string"` + // A list of ProvisionedProduct detail objects. + ProvisionedProducts []*ProvisionedProductDetail `type:"list"` } // String returns the string representation -func (s ProductViewAggregationValue) String() string { +func (s ScanProvisionedProductsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ProductViewAggregationValue) GoString() string { +func (s ScanProvisionedProductsOutput) GoString() string { return s.String() } -// The summary metadata about the specified product. -type ProductViewSummary struct { - _ struct{} `type:"structure"` - - // The distributor of the product. Contact the product administrator for the - // significance of this value. - Distributor *string `type:"string"` - - // A value of false indicates that the product does not have a default path, - // while a value of true indicates that it does. If it's false, call ListLaunchPaths - // to disambiguate between paths. If true, ListLaunchPaths is not required, - // and the output of the ProductViewSummary operation can be used directly with - // DescribeProvisioningParameters. - HasDefaultPath *bool `type:"boolean"` - - // The product view identifier. - Id *string `min:"1" type:"string"` - - // The name of the product. - Name *string `type:"string"` - - // The owner of the product. Contact the product administrator for the significance - // of this value. - Owner *string `type:"string"` - - // The product identifier. - ProductId *string `min:"1" type:"string"` - - // Short description of the product. - ShortDescription *string `type:"string"` - - // The description of the support for this Product. - SupportDescription *string `type:"string"` - - // The email contact information to obtain support for this Product. - SupportEmail *string `type:"string"` - - // The URL information to obtain support for this Product. - SupportUrl *string `type:"string"` - - // The product type. Contact the product administrator for the significance - // of this value. - Type *string `type:"string"` -} - -// String returns the string representation -func (s ProductViewSummary) String() string { - return awsutil.Prettify(s) +// SetNextPageToken sets the NextPageToken field's value. +func (s *ScanProvisionedProductsOutput) SetNextPageToken(v string) *ScanProvisionedProductsOutput { + s.NextPageToken = &v + return s } -// GoString returns the string representation -func (s ProductViewSummary) GoString() string { - return s.String() +// SetProvisionedProducts sets the ProvisionedProducts field's value. +func (s *ScanProvisionedProductsOutput) SetProvisionedProducts(v []*ProvisionedProductDetail) *ScanProvisionedProductsOutput { + s.ProvisionedProducts = v + return s } -type ProvisionProductInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/SearchProductsAsAdminInput +type SearchProductsAsAdminInput struct { _ struct{} `type:"structure"` // The language code to use for this operation. Supported language codes are @@ -1432,91 +8055,48 @@ type ProvisionProductInput struct { // If no code is specified, "en" is used as the default. AcceptLanguage *string `type:"string"` - // Passed to CloudFormation. The SNS topic ARNs to which to publish stack-related - // events. - NotificationArns []*string `type:"list"` - - // The identifier of the path for this product's provisioning. This value is - // optional if the product has a default path, and is required if there is more - // than one path for the specified product. - PathId *string `min:"1" type:"string"` + // The list of filters with which to limit search results. If no search filters + // are specified, the output is all the products to which the administrator + // has access. + Filters map[string][]*string `type:"map"` - // The identifier of the product. - // - // ProductId is a required field - ProductId *string `min:"1" type:"string" required:"true"` + // The maximum number of items to return in the results. If more results exist + // than fit in the specified PageSize, the value of NextPageToken in the response + // is non-null. + PageSize *int64 `type:"integer"` - // An idempotency token that uniquely identifies the provisioning request. - // - // ProvisionToken is a required field - ProvisionToken *string `min:"1" type:"string" required:"true" idempotencyToken:"true"` + // The page token of the first page retrieved. If null, this retrieves the first + // page of size PageSize. + PageToken *string `type:"string"` - // A user-friendly name to identify the ProvisionedProduct object. This value - // must be unique for the AWS account and cannot be updated after the product - // is provisioned. - // - // ProvisionedProductName is a required field - ProvisionedProductName *string `type:"string" required:"true"` + // The portfolio identifier. + PortfolioId *string `min:"1" type:"string"` - // The provisioning artifact identifier for this product. - // - // ProvisioningArtifactId is a required field - ProvisioningArtifactId *string `min:"1" type:"string" required:"true"` + // Access level of the source of the product. + ProductSource *string `type:"string" enum:"ProductSource"` - // Parameters specified by the administrator that are required for provisioning - // the product. - ProvisioningParameters []*ProvisioningParameter `type:"list"` + // The sort field specifier. If no value is specified, results are not sorted. + SortBy *string `type:"string" enum:"ProductViewSortBy"` - // A list of tags to use as provisioning options. - Tags []*Tag `type:"list"` + // The sort order specifier. If no value is specified, results are not sorted. + SortOrder *string `type:"string" enum:"SortOrder"` } // String returns the string representation -func (s ProvisionProductInput) String() string { +func (s SearchProductsAsAdminInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ProvisionProductInput) GoString() string { +func (s SearchProductsAsAdminInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ProvisionProductInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ProvisionProductInput"} - if s.PathId != nil && len(*s.PathId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PathId", 1)) - } - if s.ProductId == nil { - invalidParams.Add(request.NewErrParamRequired("ProductId")) - } - if s.ProductId != nil && len(*s.ProductId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProductId", 1)) - } - if s.ProvisionToken == nil { - invalidParams.Add(request.NewErrParamRequired("ProvisionToken")) - } - if s.ProvisionToken != nil && len(*s.ProvisionToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProvisionToken", 1)) - } - if s.ProvisionedProductName == nil { - invalidParams.Add(request.NewErrParamRequired("ProvisionedProductName")) - } - if s.ProvisioningArtifactId == nil { - invalidParams.Add(request.NewErrParamRequired("ProvisioningArtifactId")) - } - if s.ProvisioningArtifactId != nil && len(*s.ProvisioningArtifactId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProvisioningArtifactId", 1)) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } +func (s *SearchProductsAsAdminInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SearchProductsAsAdminInput"} + if s.PortfolioId != nil && len(*s.PortfolioId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PortfolioId", 1)) } if invalidParams.Len() > 0 { @@ -1525,277 +8105,403 @@ func (s *ProvisionProductInput) Validate() error { return nil } -type ProvisionProductOutput struct { - _ struct{} `type:"structure"` - - // The detailed result of the ProvisionProduct request, containing the inputs - // made to that request, the current state of the request, a pointer to the - // ProvisionedProduct object of the request, and a list of any errors that the - // request encountered. - RecordDetail *RecordDetail `type:"structure"` +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *SearchProductsAsAdminInput) SetAcceptLanguage(v string) *SearchProductsAsAdminInput { + s.AcceptLanguage = &v + return s } -// String returns the string representation -func (s ProvisionProductOutput) String() string { - return awsutil.Prettify(s) +// SetFilters sets the Filters field's value. +func (s *SearchProductsAsAdminInput) SetFilters(v map[string][]*string) *SearchProductsAsAdminInput { + s.Filters = v + return s } -// GoString returns the string representation -func (s ProvisionProductOutput) GoString() string { - return s.String() +// SetPageSize sets the PageSize field's value. +func (s *SearchProductsAsAdminInput) SetPageSize(v int64) *SearchProductsAsAdminInput { + s.PageSize = &v + return s } -// Detailed information about a ProvisionedProduct object. -type ProvisionedProductDetail struct { - _ struct{} `type:"structure"` - - // The ARN associated with the ProvisionedProduct object. - Arn *string `min:"1" type:"string"` - - // The time the ProvisionedProduct was created. - CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` +// SetPageToken sets the PageToken field's value. +func (s *SearchProductsAsAdminInput) SetPageToken(v string) *SearchProductsAsAdminInput { + s.PageToken = &v + return s +} - // The identifier of the ProvisionedProduct object. - Id *string `type:"string"` +// SetPortfolioId sets the PortfolioId field's value. +func (s *SearchProductsAsAdminInput) SetPortfolioId(v string) *SearchProductsAsAdminInput { + s.PortfolioId = &v + return s +} - // An idempotency token that uniquely identifies this ProvisionedProduct. - IdempotencyToken *string `min:"1" type:"string"` +// SetProductSource sets the ProductSource field's value. +func (s *SearchProductsAsAdminInput) SetProductSource(v string) *SearchProductsAsAdminInput { + s.ProductSource = &v + return s +} - // The record identifier of the last request performed on this ProvisionedProduct - // object. - LastRecordId *string `type:"string"` +// SetSortBy sets the SortBy field's value. +func (s *SearchProductsAsAdminInput) SetSortBy(v string) *SearchProductsAsAdminInput { + s.SortBy = &v + return s +} - // The user-friendly name of the ProvisionedProduct object. - Name *string `min:"1" type:"string"` +// SetSortOrder sets the SortOrder field's value. +func (s *SearchProductsAsAdminInput) SetSortOrder(v string) *SearchProductsAsAdminInput { + s.SortOrder = &v + return s +} - // The current status of the ProvisionedProduct. - Status *string `type:"string" enum:"RecordStatus"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/SearchProductsAsAdminOutput +type SearchProductsAsAdminOutput struct { + _ struct{} `type:"structure"` - // The current status message of the ProvisionedProduct. - StatusMessage *string `type:"string"` + // The page token to use to retrieve the next page of results for this operation. + // If there are no more pages, this value is null. + NextPageToken *string `type:"string"` - // The type of the ProvisionedProduct object. - Type *string `type:"string"` + // List of detailed product view information objects. + ProductViewDetails []*ProductViewDetail `type:"list"` } // String returns the string representation -func (s ProvisionedProductDetail) String() string { +func (s SearchProductsAsAdminOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ProvisionedProductDetail) GoString() string { +func (s SearchProductsAsAdminOutput) GoString() string { return s.String() } -// Contains information indicating the ways in which a product can be provisioned. -type ProvisioningArtifact struct { +// SetNextPageToken sets the NextPageToken field's value. +func (s *SearchProductsAsAdminOutput) SetNextPageToken(v string) *SearchProductsAsAdminOutput { + s.NextPageToken = &v + return s +} + +// SetProductViewDetails sets the ProductViewDetails field's value. +func (s *SearchProductsAsAdminOutput) SetProductViewDetails(v []*ProductViewDetail) *SearchProductsAsAdminOutput { + s.ProductViewDetails = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/SearchProductsInput +type SearchProductsInput struct { _ struct{} `type:"structure"` - // The time that the artifact was created by the Administrator. - CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` - // The text description of the artifact. - Description *string `type:"string"` + // The list of filters with which to limit search results. If no search filters + // are specified, the output is all the products to which the calling user has + // access. + Filters map[string][]*string `type:"map"` - // The identifier for the artifact. - Id *string `min:"1" type:"string"` + // The maximum number of items to return in the results. If more results exist + // than fit in the specified PageSize, the value of NextPageToken in the response + // is non-null. + PageSize *int64 `type:"integer"` - // The name of the artifact. - Name *string `type:"string"` + // The page token of the first page retrieved. If null, this retrieves the first + // page of size PageSize. + PageToken *string `type:"string"` + + // The sort field specifier. If no value is specified, results are not sorted. + SortBy *string `type:"string" enum:"ProductViewSortBy"` + + // The sort order specifier. If no value is specified, results are not sorted. + SortOrder *string `type:"string" enum:"SortOrder"` } // String returns the string representation -func (s ProvisioningArtifact) String() string { +func (s SearchProductsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ProvisioningArtifact) GoString() string { +func (s SearchProductsInput) GoString() string { return s.String() } -// A parameter used to successfully provision the product. This value includes -// a list of allowable values and additional metadata. -type ProvisioningArtifactParameter struct { - _ struct{} `type:"structure"` - - // The default value for this parameter. - DefaultValue *string `type:"string"` - - // The text description of the parameter. - Description *string `type:"string"` - - // If this value is true, the value for this parameter is obfuscated from view - // when the parameter is retrieved. This parameter is used to hide sensitive - // information. - IsNoEcho *bool `type:"boolean"` +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *SearchProductsInput) SetAcceptLanguage(v string) *SearchProductsInput { + s.AcceptLanguage = &v + return s +} - // The list of constraints that the administrator has put on the parameter. - ParameterConstraints *ParameterConstraints `type:"structure"` +// SetFilters sets the Filters field's value. +func (s *SearchProductsInput) SetFilters(v map[string][]*string) *SearchProductsInput { + s.Filters = v + return s +} - // The parameter key. - ParameterKey *string `type:"string"` +// SetPageSize sets the PageSize field's value. +func (s *SearchProductsInput) SetPageSize(v int64) *SearchProductsInput { + s.PageSize = &v + return s +} - // The parameter type. - ParameterType *string `type:"string"` +// SetPageToken sets the PageToken field's value. +func (s *SearchProductsInput) SetPageToken(v string) *SearchProductsInput { + s.PageToken = &v + return s } -// String returns the string representation -func (s ProvisioningArtifactParameter) String() string { - return awsutil.Prettify(s) +// SetSortBy sets the SortBy field's value. +func (s *SearchProductsInput) SetSortBy(v string) *SearchProductsInput { + s.SortBy = &v + return s } -// GoString returns the string representation -func (s ProvisioningArtifactParameter) GoString() string { - return s.String() +// SetSortOrder sets the SortOrder field's value. +func (s *SearchProductsInput) SetSortOrder(v string) *SearchProductsInput { + s.SortOrder = &v + return s } -// The arameter key/value pairs used to provision a product. -type ProvisioningParameter struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/SearchProductsOutput +type SearchProductsOutput struct { _ struct{} `type:"structure"` - // The ProvisioningArtifactParameter.ParameterKey parameter from DescribeProvisioningParameters. - Key *string `type:"string"` + // The page token to use to retrieve the next page of results for this operation. + // If there are no more pages, this value is null. + NextPageToken *string `type:"string"` - // The value to use for provisioning. Any constraints on this value can be found - // in ProvisioningArtifactParameter for Key. - Value *string `type:"string"` + // A list of the product view aggregation value objects. + ProductViewAggregations map[string][]*ProductViewAggregationValue `type:"map"` + + // A list of the product view summary objects. + ProductViewSummaries []*ProductViewSummary `type:"list"` } // String returns the string representation -func (s ProvisioningParameter) String() string { +func (s SearchProductsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ProvisioningParameter) GoString() string { +func (s SearchProductsOutput) GoString() string { return s.String() } -// The full details of a specific ProvisionedProduct object. -type RecordDetail struct { - _ struct{} `type:"structure"` - - // The time when the record for the ProvisionedProduct object was created. - CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The identifier of the path for this product's provisioning. - PathId *string `min:"1" type:"string"` - - // The identifier of the product. - ProductId *string `min:"1" type:"string"` - - // The identifier of the ProvisionedProduct object. - ProvisionedProductId *string `min:"1" type:"string"` - - // The user-friendly name of the ProvisionedProduct object. - ProvisionedProductName *string `type:"string"` - - // The type of the ProvisionedProduct object. - ProvisionedProductType *string `type:"string"` - - // The provisioning artifact identifier for this product. - ProvisioningArtifactId *string `min:"1" type:"string"` - - // A list of errors that occurred while processing the request. - RecordErrors []*RecordError `type:"list"` +// SetNextPageToken sets the NextPageToken field's value. +func (s *SearchProductsOutput) SetNextPageToken(v string) *SearchProductsOutput { + s.NextPageToken = &v + return s +} - // The identifier of the ProvisionedProduct object record. - RecordId *string `min:"1" type:"string"` +// SetProductViewAggregations sets the ProductViewAggregations field's value. +func (s *SearchProductsOutput) SetProductViewAggregations(v map[string][]*ProductViewAggregationValue) *SearchProductsOutput { + s.ProductViewAggregations = v + return s +} - // List of tags associated with this record. - RecordTags []*RecordTag `type:"list"` +// SetProductViewSummaries sets the ProductViewSummaries field's value. +func (s *SearchProductsOutput) SetProductViewSummaries(v []*ProductViewSummary) *SearchProductsOutput { + s.ProductViewSummaries = v + return s +} - // The record type for this record. - RecordType *string `type:"string"` +// Key/value pairs to associate with this provisioning. These tags are entirely +// discretionary and are propagated to the resources created in the provisioning. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/Tag +type Tag struct { + _ struct{} `type:"structure"` - // The status of the ProvisionedProduct object. - Status *string `type:"string" enum:"RecordStatus"` + // The ProvisioningArtifactParameter.TagKey parameter from DescribeProvisioningParameters. + // + // Key is a required field + Key *string `min:"1" type:"string" required:"true"` - // The time when the record for the ProvisionedProduct object was last updated. - UpdatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` + // The esired value for this key. + // + // Value is a required field + Value *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s RecordDetail) String() string { +func (s Tag) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RecordDetail) GoString() string { +func (s Tag) GoString() string { return s.String() } -// The error code and description resulting from an operation. -type RecordError struct { +// Validate inspects the fields of the type to determine if they are valid. +func (s *Tag) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Tag"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + if s.Value != nil && len(*s.Value) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Value", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/TerminateProvisionedProductInput +type TerminateProvisionedProductInput struct { _ struct{} `type:"structure"` - // The numeric value of the error. - Code *string `type:"string"` + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` - // The text description of the error. - Description *string `type:"string"` + // If set to true, AWS Service Catalog stops managing the specified ProvisionedProduct + // object even if it cannot delete the underlying resources. + IgnoreErrors *bool `type:"boolean"` + + // The identifier of the ProvisionedProduct object to terminate. You must specify + // either ProvisionedProductName or ProvisionedProductId, but not both. + ProvisionedProductId *string `min:"1" type:"string"` + + // The name of the ProvisionedProduct object to terminate. You must specify + // either ProvisionedProductName or ProvisionedProductId, but not both. + ProvisionedProductName *string `min:"1" type:"string"` + + // An idempotency token that uniquely identifies the termination request. This + // token is only valid during the termination process. After the ProvisionedProduct + // object is terminated, further requests to terminate the same ProvisionedProduct + // object always return ResourceNotFound regardless of the value of TerminateToken. + // + // TerminateToken is a required field + TerminateToken *string `min:"1" type:"string" required:"true" idempotencyToken:"true"` } // String returns the string representation -func (s RecordError) String() string { +func (s TerminateProvisionedProductInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RecordError) GoString() string { +func (s TerminateProvisionedProductInput) GoString() string { return s.String() } -// An output for the specified Product object created as the result of a request. -// For example, a CloudFormation-backed product that creates an S3 bucket would -// have an output for the S3 bucket URL. -type RecordOutput struct { - _ struct{} `type:"structure"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *TerminateProvisionedProductInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TerminateProvisionedProductInput"} + if s.ProvisionedProductId != nil && len(*s.ProvisionedProductId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProvisionedProductId", 1)) + } + if s.ProvisionedProductName != nil && len(*s.ProvisionedProductName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProvisionedProductName", 1)) + } + if s.TerminateToken == nil { + invalidParams.Add(request.NewErrParamRequired("TerminateToken")) + } + if s.TerminateToken != nil && len(*s.TerminateToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TerminateToken", 1)) + } - // The text description of the output. - Description *string `type:"string"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The output key. - OutputKey *string `type:"string"` +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *TerminateProvisionedProductInput) SetAcceptLanguage(v string) *TerminateProvisionedProductInput { + s.AcceptLanguage = &v + return s +} - // The output value. - OutputValue *string `type:"string"` +// SetIgnoreErrors sets the IgnoreErrors field's value. +func (s *TerminateProvisionedProductInput) SetIgnoreErrors(v bool) *TerminateProvisionedProductInput { + s.IgnoreErrors = &v + return s } -// String returns the string representation -func (s RecordOutput) String() string { - return awsutil.Prettify(s) +// SetProvisionedProductId sets the ProvisionedProductId field's value. +func (s *TerminateProvisionedProductInput) SetProvisionedProductId(v string) *TerminateProvisionedProductInput { + s.ProvisionedProductId = &v + return s } -// GoString returns the string representation -func (s RecordOutput) GoString() string { - return s.String() +// SetProvisionedProductName sets the ProvisionedProductName field's value. +func (s *TerminateProvisionedProductInput) SetProvisionedProductName(v string) *TerminateProvisionedProductInput { + s.ProvisionedProductName = &v + return s } -// A tag associated with the record, stored as a key-value pair. -type RecordTag struct { - _ struct{} `type:"structure"` +// SetTerminateToken sets the TerminateToken field's value. +func (s *TerminateProvisionedProductInput) SetTerminateToken(v string) *TerminateProvisionedProductInput { + s.TerminateToken = &v + return s +} - // The key for this tag. - Key *string `min:"1" type:"string"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/TerminateProvisionedProductOutput +type TerminateProvisionedProductOutput struct { + _ struct{} `type:"structure"` - // The value for this tag. - Value *string `min:"1" type:"string"` + // The detailed result of the TerminateProvisionedProduct request, containing + // the inputs made to that request, the current state of the request, a pointer + // to the ProvisionedProduct object that the request is modifying, and a list + // of any errors that the request encountered. + RecordDetail *RecordDetail `type:"structure"` } // String returns the string representation -func (s RecordTag) String() string { +func (s TerminateProvisionedProductOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RecordTag) GoString() string { +func (s TerminateProvisionedProductOutput) GoString() string { return s.String() } -type ScanProvisionedProductsInput struct { +// SetRecordDetail sets the RecordDetail field's value. +func (s *TerminateProvisionedProductOutput) SetRecordDetail(v *RecordDetail) *TerminateProvisionedProductOutput { + s.RecordDetail = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateConstraintInput +type UpdateConstraintInput struct { _ struct{} `type:"structure"` // The language code to use for this operation. Supported language codes are @@ -1810,52 +8516,103 @@ type ScanProvisionedProductsInput struct { // If no code is specified, "en" is used as the default. AcceptLanguage *string `type:"string"` - // The access level for obtaining results. If left unspecified, User level access - // is used. - AccessLevelFilter *AccessLevelFilter `type:"structure"` - - // The maximum number of items to return in the results. If more results exist - // than fit in the specified PageSize, the value of NextPageToken in the response - // is non-null. - PageSize *int64 `type:"integer"` + // The updated text description of the constraint. + Description *string `type:"string"` - // The page token of the first page retrieved. If null, this retrieves the first - // page of size PageSize. - PageToken *string `type:"string"` + // The identifier of the constraint to update. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ScanProvisionedProductsInput) String() string { +func (s UpdateConstraintInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ScanProvisionedProductsInput) GoString() string { +func (s UpdateConstraintInput) GoString() string { return s.String() } -type ScanProvisionedProductsOutput struct { +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateConstraintInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateConstraintInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *UpdateConstraintInput) SetAcceptLanguage(v string) *UpdateConstraintInput { + s.AcceptLanguage = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateConstraintInput) SetDescription(v string) *UpdateConstraintInput { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateConstraintInput) SetId(v string) *UpdateConstraintInput { + s.Id = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateConstraintOutput +type UpdateConstraintOutput struct { _ struct{} `type:"structure"` - // The page token to use to retrieve the next page of results for this operation. - // If there are no more pages, this value is null. - NextPageToken *string `type:"string"` + // The resulting detailed constraint information. + ConstraintDetail *ConstraintDetail `type:"structure"` - // A list of ProvisionedProduct detail objects. - ProvisionedProducts []*ProvisionedProductDetail `type:"list"` + // The resulting updated constraint parameters. + ConstraintParameters *string `type:"string"` + + // The status of the current request. + Status *string `type:"string" enum:"Status"` } // String returns the string representation -func (s ScanProvisionedProductsOutput) String() string { +func (s UpdateConstraintOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ScanProvisionedProductsOutput) GoString() string { +func (s UpdateConstraintOutput) GoString() string { return s.String() } -type SearchProductsInput struct { +// SetConstraintDetail sets the ConstraintDetail field's value. +func (s *UpdateConstraintOutput) SetConstraintDetail(v *ConstraintDetail) *UpdateConstraintOutput { + s.ConstraintDetail = v + return s +} + +// SetConstraintParameters sets the ConstraintParameters field's value. +func (s *UpdateConstraintOutput) SetConstraintParameters(v string) *UpdateConstraintOutput { + s.ConstraintParameters = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *UpdateConstraintOutput) SetStatus(v string) *UpdateConstraintOutput { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdatePortfolioInput +type UpdatePortfolioInput struct { _ struct{} `type:"structure"` // The language code to use for this operation. Supported language codes are @@ -1870,100 +8627,146 @@ type SearchProductsInput struct { // If no code is specified, "en" is used as the default. AcceptLanguage *string `type:"string"` - // The list of filters with which to limit search results. If no search filters - // are specified, the output is all the products to which the calling user has - // access. - Filters map[string][]*string `type:"map"` + // Tags to add to the existing list of tags associated with the portfolio. + AddTags []*Tag `type:"list"` - // The maximum number of items to return in the results. If more results exist - // than fit in the specified PageSize, the value of NextPageToken in the response - // is non-null. - PageSize *int64 `type:"integer"` + // The updated text description of the portfolio. + Description *string `type:"string"` - // The page token of the first page retrieved. If null, this retrieves the first - // page of size PageSize. - PageToken *string `type:"string"` + // The name to use for display purposes. + DisplayName *string `min:"1" type:"string"` - // The sort field specifier. If no value is specified, results are not sorted. - SortBy *string `type:"string" enum:"ProductViewSortBy"` + // The identifier of the portfolio for the update request. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` - // The sort order specifier. If no value is specified, results are not sorted. - SortOrder *string `type:"string" enum:"SortOrder"` + // The updated name of the portfolio provider. + ProviderName *string `min:"1" type:"string"` + + // Tags to remove from the existing list of tags associated with the portfolio. + RemoveTags []*string `type:"list"` } // String returns the string representation -func (s SearchProductsInput) String() string { +func (s UpdatePortfolioInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SearchProductsInput) GoString() string { +func (s UpdatePortfolioInput) GoString() string { return s.String() } -type SearchProductsOutput struct { - _ struct{} `type:"structure"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdatePortfolioInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdatePortfolioInput"} + if s.DisplayName != nil && len(*s.DisplayName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1)) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + if s.ProviderName != nil && len(*s.ProviderName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProviderName", 1)) + } + if s.AddTags != nil { + for i, v := range s.AddTags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AddTags", i), err.(request.ErrInvalidParams)) + } + } + } - // The page token to use to retrieve the next page of results for this operation. - // If there are no more pages, this value is null. - NextPageToken *string `type:"string"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // A list of the product view aggregation value objects. - ProductViewAggregations map[string][]*ProductViewAggregationValue `type:"map"` +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *UpdatePortfolioInput) SetAcceptLanguage(v string) *UpdatePortfolioInput { + s.AcceptLanguage = &v + return s +} - // A list of the product view summary objects. - ProductViewSummaries []*ProductViewSummary `type:"list"` +// SetAddTags sets the AddTags field's value. +func (s *UpdatePortfolioInput) SetAddTags(v []*Tag) *UpdatePortfolioInput { + s.AddTags = v + return s } -// String returns the string representation -func (s SearchProductsOutput) String() string { - return awsutil.Prettify(s) +// SetDescription sets the Description field's value. +func (s *UpdatePortfolioInput) SetDescription(v string) *UpdatePortfolioInput { + s.Description = &v + return s } -// GoString returns the string representation -func (s SearchProductsOutput) GoString() string { - return s.String() +// SetDisplayName sets the DisplayName field's value. +func (s *UpdatePortfolioInput) SetDisplayName(v string) *UpdatePortfolioInput { + s.DisplayName = &v + return s } -// Key/value pairs to associate with this provisioning. These tags are entirely -// discretionary and are propagated to the resources created in the provisioning. -type Tag struct { +// SetId sets the Id field's value. +func (s *UpdatePortfolioInput) SetId(v string) *UpdatePortfolioInput { + s.Id = &v + return s +} + +// SetProviderName sets the ProviderName field's value. +func (s *UpdatePortfolioInput) SetProviderName(v string) *UpdatePortfolioInput { + s.ProviderName = &v + return s +} + +// SetRemoveTags sets the RemoveTags field's value. +func (s *UpdatePortfolioInput) SetRemoveTags(v []*string) *UpdatePortfolioInput { + s.RemoveTags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdatePortfolioOutput +type UpdatePortfolioOutput struct { _ struct{} `type:"structure"` - // The ProvisioningArtifactParameter.TagKey parameter from DescribeProvisioningParameters. - Key *string `min:"1" type:"string"` + // The resulting detailed portfolio information. + PortfolioDetail *PortfolioDetail `type:"structure"` - // The esired value for this key. - Value *string `min:"1" type:"string"` + // Tags associated with the portfolio. + Tags []*Tag `type:"list"` } // String returns the string representation -func (s Tag) String() string { +func (s UpdatePortfolioOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Tag) GoString() string { +func (s UpdatePortfolioOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Tag) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Tag"} - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - if s.Value != nil && len(*s.Value) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Value", 1)) - } +// SetPortfolioDetail sets the PortfolioDetail field's value. +func (s *UpdatePortfolioOutput) SetPortfolioDetail(v *PortfolioDetail) *UpdatePortfolioOutput { + s.PortfolioDetail = v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetTags sets the Tags field's value. +func (s *UpdatePortfolioOutput) SetTags(v []*Tag) *UpdatePortfolioOutput { + s.Tags = v + return s } -type TerminateProvisionedProductInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateProductInput +type UpdateProductInput struct { _ struct{} `type:"structure"` // The language code to use for this operation. Supported language codes are @@ -1978,51 +8781,67 @@ type TerminateProvisionedProductInput struct { // If no code is specified, "en" is used as the default. AcceptLanguage *string `type:"string"` - // If set to true, AWS Service Catalog stops managing the specified ProvisionedProduct - // object even if it cannot delete the underlying resources. - IgnoreErrors *bool `type:"boolean"` + // Tags to add to the existing list of tags associated with the product. + AddTags []*Tag `type:"list"` - // The identifier of the ProvisionedProduct object to terminate. You must specify - // either ProvisionedProductName or ProvisionedProductId, but not both. - ProvisionedProductId *string `min:"1" type:"string"` + // The updated text description of the product. + Description *string `type:"string"` - // The name of the ProvisionedProduct object to terminate. You must specify - // either ProvisionedProductName or ProvisionedProductId, but not both. - ProvisionedProductName *string `min:"1" type:"string"` + // The updated distributor of the product. + Distributor *string `type:"string"` - // An idempotency token that uniquely identifies the termination request. This - // token is only valid during the termination process. After the ProvisionedProduct - // object is terminated, further requests to terminate the same ProvisionedProduct - // object always return ResourceNotFound regardless of the value of TerminateToken. + // The identifier of the product for the update request. // - // TerminateToken is a required field - TerminateToken *string `min:"1" type:"string" required:"true" idempotencyToken:"true"` + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` + + // The updated product name. + Name *string `type:"string"` + + // The updated owner of the product. + Owner *string `type:"string"` + + // Tags to remove from the existing list of tags associated with the product. + RemoveTags []*string `type:"list"` + + // The updated support description for the product. + SupportDescription *string `type:"string"` + + // The updated support email for the product. + SupportEmail *string `type:"string"` + + // The updated support URL for the product. + SupportUrl *string `type:"string"` } // String returns the string representation -func (s TerminateProvisionedProductInput) String() string { +func (s UpdateProductInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s TerminateProvisionedProductInput) GoString() string { +func (s UpdateProductInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *TerminateProvisionedProductInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TerminateProvisionedProductInput"} - if s.ProvisionedProductId != nil && len(*s.ProvisionedProductId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProvisionedProductId", 1)) - } - if s.ProvisionedProductName != nil && len(*s.ProvisionedProductName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProvisionedProductName", 1)) +func (s *UpdateProductInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateProductInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) } - if s.TerminateToken == nil { - invalidParams.Add(request.NewErrParamRequired("TerminateToken")) + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) } - if s.TerminateToken != nil && len(*s.TerminateToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TerminateToken", 1)) + if s.AddTags != nil { + for i, v := range s.AddTags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AddTags", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -2031,26 +8850,106 @@ func (s *TerminateProvisionedProductInput) Validate() error { return nil } -type TerminateProvisionedProductOutput struct { +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *UpdateProductInput) SetAcceptLanguage(v string) *UpdateProductInput { + s.AcceptLanguage = &v + return s +} + +// SetAddTags sets the AddTags field's value. +func (s *UpdateProductInput) SetAddTags(v []*Tag) *UpdateProductInput { + s.AddTags = v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateProductInput) SetDescription(v string) *UpdateProductInput { + s.Description = &v + return s +} + +// SetDistributor sets the Distributor field's value. +func (s *UpdateProductInput) SetDistributor(v string) *UpdateProductInput { + s.Distributor = &v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateProductInput) SetId(v string) *UpdateProductInput { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateProductInput) SetName(v string) *UpdateProductInput { + s.Name = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *UpdateProductInput) SetOwner(v string) *UpdateProductInput { + s.Owner = &v + return s +} + +// SetRemoveTags sets the RemoveTags field's value. +func (s *UpdateProductInput) SetRemoveTags(v []*string) *UpdateProductInput { + s.RemoveTags = v + return s +} + +// SetSupportDescription sets the SupportDescription field's value. +func (s *UpdateProductInput) SetSupportDescription(v string) *UpdateProductInput { + s.SupportDescription = &v + return s +} + +// SetSupportEmail sets the SupportEmail field's value. +func (s *UpdateProductInput) SetSupportEmail(v string) *UpdateProductInput { + s.SupportEmail = &v + return s +} + +// SetSupportUrl sets the SupportUrl field's value. +func (s *UpdateProductInput) SetSupportUrl(v string) *UpdateProductInput { + s.SupportUrl = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateProductOutput +type UpdateProductOutput struct { _ struct{} `type:"structure"` - // The detailed result of the TerminateProvisionedProduct request, containing - // the inputs made to that request, the current state of the request, a pointer - // to the ProvisionedProduct object that the request is modifying, and a list - // of any errors that the request encountered. - RecordDetail *RecordDetail `type:"structure"` + // The resulting detailed product view information. + ProductViewDetail *ProductViewDetail `type:"structure"` + + // Tags associated with the product. + Tags []*Tag `type:"list"` } // String returns the string representation -func (s TerminateProvisionedProductOutput) String() string { +func (s UpdateProductOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s TerminateProvisionedProductOutput) GoString() string { +func (s UpdateProductOutput) GoString() string { return s.String() } +// SetProductViewDetail sets the ProductViewDetail field's value. +func (s *UpdateProductOutput) SetProductViewDetail(v *ProductViewDetail) *UpdateProductOutput { + s.ProductViewDetail = v + return s +} + +// SetTags sets the Tags field's value. +func (s *UpdateProductOutput) SetTags(v []*Tag) *UpdateProductOutput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateProvisionedProductInput type UpdateProvisionedProductInput struct { _ struct{} `type:"structure"` @@ -2129,6 +9028,16 @@ func (s *UpdateProvisionedProductInput) Validate() error { if s.UpdateToken != nil && len(*s.UpdateToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("UpdateToken", 1)) } + if s.ProvisioningParameters != nil { + for i, v := range s.ProvisioningParameters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ProvisioningParameters", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -2136,6 +9045,55 @@ func (s *UpdateProvisionedProductInput) Validate() error { return nil } +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *UpdateProvisionedProductInput) SetAcceptLanguage(v string) *UpdateProvisionedProductInput { + s.AcceptLanguage = &v + return s +} + +// SetPathId sets the PathId field's value. +func (s *UpdateProvisionedProductInput) SetPathId(v string) *UpdateProvisionedProductInput { + s.PathId = &v + return s +} + +// SetProductId sets the ProductId field's value. +func (s *UpdateProvisionedProductInput) SetProductId(v string) *UpdateProvisionedProductInput { + s.ProductId = &v + return s +} + +// SetProvisionedProductId sets the ProvisionedProductId field's value. +func (s *UpdateProvisionedProductInput) SetProvisionedProductId(v string) *UpdateProvisionedProductInput { + s.ProvisionedProductId = &v + return s +} + +// SetProvisionedProductName sets the ProvisionedProductName field's value. +func (s *UpdateProvisionedProductInput) SetProvisionedProductName(v string) *UpdateProvisionedProductInput { + s.ProvisionedProductName = &v + return s +} + +// SetProvisioningArtifactId sets the ProvisioningArtifactId field's value. +func (s *UpdateProvisionedProductInput) SetProvisioningArtifactId(v string) *UpdateProvisionedProductInput { + s.ProvisioningArtifactId = &v + return s +} + +// SetProvisioningParameters sets the ProvisioningParameters field's value. +func (s *UpdateProvisionedProductInput) SetProvisioningParameters(v []*UpdateProvisioningParameter) *UpdateProvisionedProductInput { + s.ProvisioningParameters = v + return s +} + +// SetUpdateToken sets the UpdateToken field's value. +func (s *UpdateProvisionedProductInput) SetUpdateToken(v string) *UpdateProvisionedProductInput { + s.UpdateToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateProvisionedProductOutput type UpdateProvisionedProductOutput struct { _ struct{} `type:"structure"` @@ -2156,14 +9114,158 @@ func (s UpdateProvisionedProductOutput) GoString() string { return s.String() } +// SetRecordDetail sets the RecordDetail field's value. +func (s *UpdateProvisionedProductOutput) SetRecordDetail(v *RecordDetail) *UpdateProvisionedProductOutput { + s.RecordDetail = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateProvisioningArtifactInput +type UpdateProvisioningArtifactInput struct { + _ struct{} `type:"structure"` + + // The language code to use for this operation. Supported language codes are + // as follows: + // + // "en" (English) + // + // "jp" (Japanese) + // + // "zh" (Chinese) + // + // If no code is specified, "en" is used as the default. + AcceptLanguage *string `type:"string"` + + // The updated text description of the provisioning artifact. + Description *string `type:"string"` + + // The updated name of the provisioning artifact. + Name *string `type:"string"` + + // The product identifier. + // + // ProductId is a required field + ProductId *string `min:"1" type:"string" required:"true"` + + // The identifier of the provisioning artifact for the update request. + // + // ProvisioningArtifactId is a required field + ProvisioningArtifactId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateProvisioningArtifactInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateProvisioningArtifactInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateProvisioningArtifactInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateProvisioningArtifactInput"} + if s.ProductId == nil { + invalidParams.Add(request.NewErrParamRequired("ProductId")) + } + if s.ProductId != nil && len(*s.ProductId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProductId", 1)) + } + if s.ProvisioningArtifactId == nil { + invalidParams.Add(request.NewErrParamRequired("ProvisioningArtifactId")) + } + if s.ProvisioningArtifactId != nil && len(*s.ProvisioningArtifactId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProvisioningArtifactId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *UpdateProvisioningArtifactInput) SetAcceptLanguage(v string) *UpdateProvisioningArtifactInput { + s.AcceptLanguage = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateProvisioningArtifactInput) SetDescription(v string) *UpdateProvisioningArtifactInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateProvisioningArtifactInput) SetName(v string) *UpdateProvisioningArtifactInput { + s.Name = &v + return s +} + +// SetProductId sets the ProductId field's value. +func (s *UpdateProvisioningArtifactInput) SetProductId(v string) *UpdateProvisioningArtifactInput { + s.ProductId = &v + return s +} + +// SetProvisioningArtifactId sets the ProvisioningArtifactId field's value. +func (s *UpdateProvisioningArtifactInput) SetProvisioningArtifactId(v string) *UpdateProvisioningArtifactInput { + s.ProvisioningArtifactId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateProvisioningArtifactOutput +type UpdateProvisioningArtifactOutput struct { + _ struct{} `type:"structure"` + + // Additional information about the provisioning artifact update request. + Info map[string]*string `min:"1" type:"map"` + + // The resulting detailed provisioning artifact information. + ProvisioningArtifactDetail *ProvisioningArtifactDetail `type:"structure"` + + // The status of the current request. + Status *string `type:"string" enum:"Status"` +} + +// String returns the string representation +func (s UpdateProvisioningArtifactOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateProvisioningArtifactOutput) GoString() string { + return s.String() +} + +// SetInfo sets the Info field's value. +func (s *UpdateProvisioningArtifactOutput) SetInfo(v map[string]*string) *UpdateProvisioningArtifactOutput { + s.Info = v + return s +} + +// SetProvisioningArtifactDetail sets the ProvisioningArtifactDetail field's value. +func (s *UpdateProvisioningArtifactOutput) SetProvisioningArtifactDetail(v *ProvisioningArtifactDetail) *UpdateProvisioningArtifactOutput { + s.ProvisioningArtifactDetail = v + return s +} + +// SetStatus sets the Status field's value. +func (s *UpdateProvisioningArtifactOutput) SetStatus(v string) *UpdateProvisioningArtifactOutput { + s.Status = &v + return s +} + // The parameter key/value pair used to update a ProvisionedProduct object. // If UsePreviousValue is set to true, Value is ignored and the value for Key // is kept as previously set (current value). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateProvisioningParameter type UpdateProvisioningParameter struct { _ struct{} `type:"structure"` // The ProvisioningArtifactParameter.ParameterKey parameter from DescribeProvisioningParameters. - Key *string `type:"string"` + Key *string `min:"1" type:"string"` // If true, uses the currently set value for Key, ignoring UpdateProvisioningParameter.Value. UsePreviousValue *bool `type:"boolean"` @@ -2184,7 +9286,39 @@ func (s UpdateProvisioningParameter) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateProvisioningParameter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateProvisioningParameter"} + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *UpdateProvisioningParameter) SetKey(v string) *UpdateProvisioningParameter { + s.Key = &v + return s +} + +// SetUsePreviousValue sets the UsePreviousValue field's value. +func (s *UpdateProvisioningParameter) SetUsePreviousValue(v bool) *UpdateProvisioningParameter { + s.UsePreviousValue = &v + return s +} + +// SetValue sets the Value field's value. +func (s *UpdateProvisioningParameter) SetValue(v string) *UpdateProvisioningParameter { + s.Value = &v + return s +} + // Additional information provided by the administrator. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UsageInstruction type UsageInstruction struct { _ struct{} `type:"structure"` @@ -2205,6 +9339,18 @@ func (s UsageInstruction) GoString() string { return s.String() } +// SetType sets the Type field's value. +func (s *UsageInstruction) SetType(v string) *UsageInstruction { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *UsageInstruction) SetValue(v string) *UsageInstruction { + s.Value = &v + return s +} + const ( // AccessLevelFilterKeyAccount is a AccessLevelFilterKey enum value AccessLevelFilterKeyAccount = "Account" @@ -2216,6 +9362,21 @@ const ( AccessLevelFilterKeyUser = "User" ) +const ( + // PrincipalTypeIam is a PrincipalType enum value + PrincipalTypeIam = "IAM" +) + +const ( + // ProductSourceAccount is a ProductSource enum value + ProductSourceAccount = "ACCOUNT" +) + +const ( + // ProductTypeCloudFormationTemplate is a ProductType enum value + ProductTypeCloudFormationTemplate = "CLOUD_FORMATION_TEMPLATE" +) + const ( // ProductViewFilterByFullTextSearch is a ProductViewFilterBy enum value ProductViewFilterByFullTextSearch = "FullTextSearch" @@ -2238,6 +9399,11 @@ const ( ProductViewSortByCreationDate = "CreationDate" ) +const ( + // ProvisioningArtifactTypeCloudFormationTemplate is a ProvisioningArtifactType enum value + ProvisioningArtifactTypeCloudFormationTemplate = "CLOUD_FORMATION_TEMPLATE" +) + const ( // RecordStatusInProgress is a RecordStatus enum value RecordStatusInProgress = "IN_PROGRESS" @@ -2256,3 +9422,14 @@ const ( // SortOrderDescending is a SortOrder enum value SortOrderDescending = "DESCENDING" ) + +const ( + // StatusAvailable is a Status enum value + StatusAvailable = "AVAILABLE" + + // StatusCreating is a Status enum value + StatusCreating = "CREATING" + + // StatusFailed is a Status enum value + StatusFailed = "FAILED" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/errors.go b/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/errors.go new file mode 100644 index 000000000..140e78b1d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/errors.go @@ -0,0 +1,38 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package servicecatalog + +const ( + + // ErrCodeDuplicateResourceException for service response error code + // "DuplicateResourceException". + // + // The specified resource is a duplicate. + ErrCodeDuplicateResourceException = "DuplicateResourceException" + + // ErrCodeInvalidParametersException for service response error code + // "InvalidParametersException". + // + // One or more parameters provided to the operation are invalid. + ErrCodeInvalidParametersException = "InvalidParametersException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // The current limits of the service would have been exceeded by this operation. + // Reduce the resource use or increase the service limits and retry the operation. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeResourceInUseException for service response error code + // "ResourceInUseException". + // + // The operation was requested against a resource that is currently in use. + // Free the resource from use and retry the operation. + ErrCodeResourceInUseException = "ResourceInUseException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The specified resource was not found. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/examples_test.go index 7cca09b59..0383bf455 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/examples_test.go @@ -15,20 +15,540 @@ import ( var _ time.Duration var _ bytes.Buffer +func ExampleServiceCatalog_AcceptPortfolioShare() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.AcceptPortfolioShareInput{ + PortfolioId: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + } + resp, err := svc.AcceptPortfolioShare(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_AssociatePrincipalWithPortfolio() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.AssociatePrincipalWithPortfolioInput{ + PortfolioId: aws.String("Id"), // Required + PrincipalARN: aws.String("PrincipalARN"), // Required + PrincipalType: aws.String("PrincipalType"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + } + resp, err := svc.AssociatePrincipalWithPortfolio(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_AssociateProductWithPortfolio() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.AssociateProductWithPortfolioInput{ + PortfolioId: aws.String("Id"), // Required + ProductId: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + SourcePortfolioId: aws.String("Id"), + } + resp, err := svc.AssociateProductWithPortfolio(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_CreateConstraint() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.CreateConstraintInput{ + IdempotencyToken: aws.String("IdempotencyToken"), // Required + Parameters: aws.String("ConstraintParameters"), // Required + PortfolioId: aws.String("Id"), // Required + ProductId: aws.String("Id"), // Required + Type: aws.String("ConstraintType"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + Description: aws.String("ConstraintDescription"), + } + resp, err := svc.CreateConstraint(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_CreatePortfolio() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.CreatePortfolioInput{ + DisplayName: aws.String("PortfolioDisplayName"), // Required + IdempotencyToken: aws.String("IdempotencyToken"), // Required + ProviderName: aws.String("ProviderName"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + Description: aws.String("PortfolioDescription"), + Tags: []*servicecatalog.Tag{ + { // Required + Key: aws.String("TagKey"), // Required + Value: aws.String("TagValue"), // Required + }, + // More values... + }, + } + resp, err := svc.CreatePortfolio(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_CreatePortfolioShare() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.CreatePortfolioShareInput{ + AccountId: aws.String("AccountId"), // Required + PortfolioId: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + } + resp, err := svc.CreatePortfolioShare(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_CreateProduct() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.CreateProductInput{ + IdempotencyToken: aws.String("IdempotencyToken"), // Required + Name: aws.String("ProductViewName"), // Required + Owner: aws.String("ProductViewOwner"), // Required + ProductType: aws.String("ProductType"), // Required + ProvisioningArtifactParameters: &servicecatalog.ProvisioningArtifactProperties{ // Required + Info: map[string]*string{ // Required + "Key": aws.String("ProvisioningArtifactInfoValue"), // Required + // More values... + }, + Description: aws.String("ProvisioningArtifactDescription"), + Name: aws.String("ProvisioningArtifactName"), + Type: aws.String("ProvisioningArtifactType"), + }, + AcceptLanguage: aws.String("AcceptLanguage"), + Description: aws.String("ProductViewShortDescription"), + Distributor: aws.String("ProductViewOwner"), + SupportDescription: aws.String("SupportDescription"), + SupportEmail: aws.String("SupportEmail"), + SupportUrl: aws.String("SupportUrl"), + Tags: []*servicecatalog.Tag{ + { // Required + Key: aws.String("TagKey"), // Required + Value: aws.String("TagValue"), // Required + }, + // More values... + }, + } + resp, err := svc.CreateProduct(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_CreateProvisioningArtifact() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.CreateProvisioningArtifactInput{ + IdempotencyToken: aws.String("IdempotencyToken"), // Required + Parameters: &servicecatalog.ProvisioningArtifactProperties{ // Required + Info: map[string]*string{ // Required + "Key": aws.String("ProvisioningArtifactInfoValue"), // Required + // More values... + }, + Description: aws.String("ProvisioningArtifactDescription"), + Name: aws.String("ProvisioningArtifactName"), + Type: aws.String("ProvisioningArtifactType"), + }, + ProductId: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + } + resp, err := svc.CreateProvisioningArtifact(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_DeleteConstraint() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.DeleteConstraintInput{ + Id: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + } + resp, err := svc.DeleteConstraint(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_DeletePortfolio() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.DeletePortfolioInput{ + Id: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + } + resp, err := svc.DeletePortfolio(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_DeletePortfolioShare() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.DeletePortfolioShareInput{ + AccountId: aws.String("AccountId"), // Required + PortfolioId: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + } + resp, err := svc.DeletePortfolioShare(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_DeleteProduct() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.DeleteProductInput{ + Id: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + } + resp, err := svc.DeleteProduct(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_DeleteProvisioningArtifact() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.DeleteProvisioningArtifactInput{ + ProductId: aws.String("Id"), // Required + ProvisioningArtifactId: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + } + resp, err := svc.DeleteProvisioningArtifact(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_DescribeConstraint() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.DescribeConstraintInput{ + Id: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + } + resp, err := svc.DescribeConstraint(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_DescribePortfolio() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.DescribePortfolioInput{ + Id: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + } + resp, err := svc.DescribePortfolio(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + func ExampleServiceCatalog_DescribeProduct() { - sess, err := session.NewSession() + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.DescribeProductInput{ + Id: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + } + resp, err := svc.DescribeProduct(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_DescribeProductAsAdmin() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.DescribeProductAsAdminInput{ + Id: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + } + resp, err := svc.DescribeProductAsAdmin(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_DescribeProductView() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.DescribeProductViewInput{ + Id: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + } + resp, err := svc.DescribeProductView(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_DescribeProvisioningArtifact() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.DescribeProvisioningArtifactInput{ + ProductId: aws.String("Id"), // Required + ProvisioningArtifactId: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + } + resp, err := svc.DescribeProvisioningArtifact(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_DescribeProvisioningParameters() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.DescribeProvisioningParametersInput{ + ProductId: aws.String("Id"), // Required + ProvisioningArtifactId: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + PathId: aws.String("Id"), + } + resp, err := svc.DescribeProvisioningParameters(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_DescribeRecord() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.DescribeRecordInput{ + Id: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + PageSize: aws.Int64(1), + PageToken: aws.String("PageToken"), + } + resp, err := svc.DescribeRecord(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_DisassociatePrincipalFromPortfolio() { + sess := session.Must(session.NewSession()) + svc := servicecatalog.New(sess) - params := &servicecatalog.DescribeProductInput{ - Id: aws.String("Id"), // Required + params := &servicecatalog.DisassociatePrincipalFromPortfolioInput{ + PortfolioId: aws.String("Id"), // Required + PrincipalARN: aws.String("PrincipalARN"), // Required AcceptLanguage: aws.String("AcceptLanguage"), } - resp, err := svc.DescribeProduct(params) + resp, err := svc.DisassociatePrincipalFromPortfolio(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -41,20 +561,40 @@ func ExampleServiceCatalog_DescribeProduct() { fmt.Println(resp) } -func ExampleServiceCatalog_DescribeProductView() { - sess, err := session.NewSession() +func ExampleServiceCatalog_DisassociateProductFromPortfolio() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.DisassociateProductFromPortfolioInput{ + PortfolioId: aws.String("Id"), // Required + ProductId: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + } + resp, err := svc.DisassociateProductFromPortfolio(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_ListAcceptedPortfolioShares() { + sess := session.Must(session.NewSession()) + svc := servicecatalog.New(sess) - params := &servicecatalog.DescribeProductViewInput{ - Id: aws.String("Id"), // Required + params := &servicecatalog.ListAcceptedPortfolioSharesInput{ AcceptLanguage: aws.String("AcceptLanguage"), + PageSize: aws.Int64(1), + PageToken: aws.String("PageToken"), } - resp, err := svc.DescribeProductView(params) + resp, err := svc.ListAcceptedPortfolioShares(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -67,22 +607,43 @@ func ExampleServiceCatalog_DescribeProductView() { fmt.Println(resp) } -func ExampleServiceCatalog_DescribeProvisioningParameters() { - sess, err := session.NewSession() +func ExampleServiceCatalog_ListConstraintsForPortfolio() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.ListConstraintsForPortfolioInput{ + PortfolioId: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + PageSize: aws.Int64(1), + PageToken: aws.String("PageToken"), + ProductId: aws.String("Id"), + } + resp, err := svc.ListConstraintsForPortfolio(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_ListLaunchPaths() { + sess := session.Must(session.NewSession()) + svc := servicecatalog.New(sess) - params := &servicecatalog.DescribeProvisioningParametersInput{ - ProductId: aws.String("Id"), // Required - ProvisioningArtifactId: aws.String("Id"), // Required - AcceptLanguage: aws.String("AcceptLanguage"), - PathId: aws.String("Id"), + params := &servicecatalog.ListLaunchPathsInput{ + ProductId: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + PageSize: aws.Int64(1), + PageToken: aws.String("PageToken"), } - resp, err := svc.DescribeProvisioningParameters(params) + resp, err := svc.ListLaunchPaths(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -95,22 +656,39 @@ func ExampleServiceCatalog_DescribeProvisioningParameters() { fmt.Println(resp) } -func ExampleServiceCatalog_DescribeRecord() { - sess, err := session.NewSession() +func ExampleServiceCatalog_ListPortfolioAccess() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.ListPortfolioAccessInput{ + PortfolioId: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + } + resp, err := svc.ListPortfolioAccess(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_ListPortfolios() { + sess := session.Must(session.NewSession()) + svc := servicecatalog.New(sess) - params := &servicecatalog.DescribeRecordInput{ - Id: aws.String("Id"), // Required + params := &servicecatalog.ListPortfoliosInput{ AcceptLanguage: aws.String("AcceptLanguage"), PageSize: aws.Int64(1), PageToken: aws.String("PageToken"), } - resp, err := svc.DescribeRecord(params) + resp, err := svc.ListPortfolios(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -123,22 +701,42 @@ func ExampleServiceCatalog_DescribeRecord() { fmt.Println(resp) } -func ExampleServiceCatalog_ListLaunchPaths() { - sess, err := session.NewSession() +func ExampleServiceCatalog_ListPortfoliosForProduct() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.ListPortfoliosForProductInput{ + ProductId: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + PageSize: aws.Int64(1), + PageToken: aws.String("PageToken"), + } + resp, err := svc.ListPortfoliosForProduct(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_ListPrincipalsForPortfolio() { + sess := session.Must(session.NewSession()) + svc := servicecatalog.New(sess) - params := &servicecatalog.ListLaunchPathsInput{ - ProductId: aws.String("Id"), // Required + params := &servicecatalog.ListPrincipalsForPortfolioInput{ + PortfolioId: aws.String("Id"), // Required AcceptLanguage: aws.String("AcceptLanguage"), PageSize: aws.Int64(1), PageToken: aws.String("PageToken"), } - resp, err := svc.ListLaunchPaths(params) + resp, err := svc.ListPrincipalsForPortfolio(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -151,13 +749,31 @@ func ExampleServiceCatalog_ListLaunchPaths() { fmt.Println(resp) } -func ExampleServiceCatalog_ListRecordHistory() { - sess, err := session.NewSession() +func ExampleServiceCatalog_ListProvisioningArtifacts() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.ListProvisioningArtifactsInput{ + ProductId: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + } + resp, err := svc.ListProvisioningArtifacts(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_ListRecordHistory() { + sess := session.Must(session.NewSession()) + svc := servicecatalog.New(sess) params := &servicecatalog.ListRecordHistoryInput{ @@ -187,11 +803,7 @@ func ExampleServiceCatalog_ListRecordHistory() { } func ExampleServiceCatalog_ProvisionProduct() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -215,8 +827,8 @@ func ExampleServiceCatalog_ProvisionProduct() { }, Tags: []*servicecatalog.Tag{ { // Required - Key: aws.String("TagKey"), - Value: aws.String("TagValue"), + Key: aws.String("TagKey"), // Required + Value: aws.String("TagValue"), // Required }, // More values... }, @@ -234,13 +846,31 @@ func ExampleServiceCatalog_ProvisionProduct() { fmt.Println(resp) } -func ExampleServiceCatalog_ScanProvisionedProducts() { - sess, err := session.NewSession() +func ExampleServiceCatalog_RejectPortfolioShare() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.RejectPortfolioShareInput{ + PortfolioId: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + } + resp, err := svc.RejectPortfolioShare(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_ScanProvisionedProducts() { + sess := session.Must(session.NewSession()) + svc := servicecatalog.New(sess) params := &servicecatalog.ScanProvisionedProductsInput{ @@ -266,11 +896,7 @@ func ExampleServiceCatalog_ScanProvisionedProducts() { } func ExampleServiceCatalog_SearchProducts() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := servicecatalog.New(sess) @@ -301,13 +927,43 @@ func ExampleServiceCatalog_SearchProducts() { fmt.Println(resp) } -func ExampleServiceCatalog_TerminateProvisionedProduct() { - sess, err := session.NewSession() +func ExampleServiceCatalog_SearchProductsAsAdmin() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.SearchProductsAsAdminInput{ + AcceptLanguage: aws.String("AcceptLanguage"), + Filters: map[string][]*string{ + "Key": { // Required + aws.String("ProductViewFilterValue"), // Required + // More values... + }, + // More values... + }, + PageSize: aws.Int64(1), + PageToken: aws.String("PageToken"), + PortfolioId: aws.String("Id"), + ProductSource: aws.String("ProductSource"), + SortBy: aws.String("ProductViewSortBy"), + SortOrder: aws.String("SortOrder"), + } + resp, err := svc.SearchProductsAsAdmin(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_TerminateProvisionedProduct() { + sess := session.Must(session.NewSession()) + svc := servicecatalog.New(sess) params := &servicecatalog.TerminateProvisionedProductInput{ @@ -330,13 +986,108 @@ func ExampleServiceCatalog_TerminateProvisionedProduct() { fmt.Println(resp) } -func ExampleServiceCatalog_UpdateProvisionedProduct() { - sess, err := session.NewSession() +func ExampleServiceCatalog_UpdateConstraint() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.UpdateConstraintInput{ + Id: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + Description: aws.String("ConstraintDescription"), + } + resp, err := svc.UpdateConstraint(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_UpdatePortfolio() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.UpdatePortfolioInput{ + Id: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + AddTags: []*servicecatalog.Tag{ + { // Required + Key: aws.String("TagKey"), // Required + Value: aws.String("TagValue"), // Required + }, + // More values... + }, + Description: aws.String("PortfolioDescription"), + DisplayName: aws.String("PortfolioDisplayName"), + ProviderName: aws.String("ProviderName"), + RemoveTags: []*string{ + aws.String("TagKey"), // Required + // More values... + }, + } + resp, err := svc.UpdatePortfolio(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_UpdateProduct() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.UpdateProductInput{ + Id: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + AddTags: []*servicecatalog.Tag{ + { // Required + Key: aws.String("TagKey"), // Required + Value: aws.String("TagValue"), // Required + }, + // More values... + }, + Description: aws.String("ProductViewShortDescription"), + Distributor: aws.String("ProductViewOwner"), + Name: aws.String("ProductViewName"), + Owner: aws.String("ProductViewOwner"), + RemoveTags: []*string{ + aws.String("TagKey"), // Required + // More values... + }, + SupportDescription: aws.String("SupportDescription"), + SupportEmail: aws.String("SupportEmail"), + SupportUrl: aws.String("SupportUrl"), + } + resp, err := svc.UpdateProduct(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleServiceCatalog_UpdateProvisionedProduct() { + sess := session.Must(session.NewSession()) + svc := servicecatalog.New(sess) params := &servicecatalog.UpdateProvisionedProductInput{ @@ -368,3 +1119,28 @@ func ExampleServiceCatalog_UpdateProvisionedProduct() { // Pretty-print the response data. fmt.Println(resp) } + +func ExampleServiceCatalog_UpdateProvisioningArtifact() { + sess := session.Must(session.NewSession()) + + svc := servicecatalog.New(sess) + + params := &servicecatalog.UpdateProvisioningArtifactInput{ + ProductId: aws.String("Id"), // Required + ProvisioningArtifactId: aws.String("Id"), // Required + AcceptLanguage: aws.String("AcceptLanguage"), + Description: aws.String("ProvisioningArtifactDescription"), + Name: aws.String("ProvisioningArtifactName"), + } + resp, err := svc.UpdateProvisioningArtifact(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/service.go b/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/service.go index cfa77b214..32cddc726 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/service.go @@ -13,19 +13,20 @@ import ( // Overview // -// AWS Service Catalog (https://aws.amazon.com/servicecatalog/) allows organizations +// AWS Service Catalog (https://aws.amazon.com/servicecatalog/) allows organizations // to create and manage catalogs of IT services that are approved for use on // AWS. This documentation provides reference material for the AWS Service Catalog // end user API. To get the most out of this documentation, you need to be familiar // with the terminology discussed in AWS Service Catalog Concepts (http://docs.aws.amazon.com/servicecatalog/latest/userguide/what-is_concepts.html). // -// Additional Resources +// Additional Resources // -// AWS Service Catalog Administrator Guide (http://docs.aws.amazon.com/servicecatalog/latest/adminguide/introduction.html) +// * AWS Service Catalog Administrator Guide (http://docs.aws.amazon.com/servicecatalog/latest/adminguide/introduction.html) // -// AWS Service Catalog User Guide (http://docs.aws.amazon.com/servicecatalog/latest/userguide/introduction.html) -//The service client's operations are safe to be used concurrently. +// * AWS Service Catalog User Guide (http://docs.aws.amazon.com/servicecatalog/latest/userguide/introduction.html) +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10 type ServiceCatalog struct { *client.Client } @@ -36,8 +37,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "servicecatalog" +// Service information constants +const ( + ServiceName = "servicecatalog" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the ServiceCatalog client with a session. // If additional configuration is needed for the client instance use the optional @@ -50,17 +54,18 @@ const ServiceName = "servicecatalog" // // Create a ServiceCatalog client with additional configuration // svc := servicecatalog.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ServiceCatalog { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ServiceCatalog { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *ServiceCatalog { svc := &ServiceCatalog{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-12-10", diff --git a/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/servicecatalogiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/servicecatalogiface/interface.go index 73bc1435e..abb31041f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/servicecatalogiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/servicecatalogiface/interface.go @@ -25,7 +25,7 @@ import ( // // myFunc uses an SDK service client to make a request to // // AWS Service Catalog. // func myFunc(svc servicecatalogiface.ServiceCatalogAPI) bool { -// // Make svc.DescribeProduct request +// // Make svc.AcceptPortfolioShare request // } // // func main() { @@ -41,11 +41,11 @@ import ( // type mockServiceCatalogClient struct { // servicecatalogiface.ServiceCatalogAPI // } -// func (m *mockServiceCatalogClient) DescribeProduct(input *servicecatalog.DescribeProductInput) (*servicecatalog.DescribeProductOutput, error) { +// func (m *mockServiceCatalogClient) AcceptPortfolioShare(input *servicecatalog.AcceptPortfolioShareInput) (*servicecatalog.AcceptPortfolioShareOutput, error) { // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockServiceCatalogClient{} // @@ -59,14 +59,82 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type ServiceCatalogAPI interface { + AcceptPortfolioShareRequest(*servicecatalog.AcceptPortfolioShareInput) (*request.Request, *servicecatalog.AcceptPortfolioShareOutput) + + AcceptPortfolioShare(*servicecatalog.AcceptPortfolioShareInput) (*servicecatalog.AcceptPortfolioShareOutput, error) + + AssociatePrincipalWithPortfolioRequest(*servicecatalog.AssociatePrincipalWithPortfolioInput) (*request.Request, *servicecatalog.AssociatePrincipalWithPortfolioOutput) + + AssociatePrincipalWithPortfolio(*servicecatalog.AssociatePrincipalWithPortfolioInput) (*servicecatalog.AssociatePrincipalWithPortfolioOutput, error) + + AssociateProductWithPortfolioRequest(*servicecatalog.AssociateProductWithPortfolioInput) (*request.Request, *servicecatalog.AssociateProductWithPortfolioOutput) + + AssociateProductWithPortfolio(*servicecatalog.AssociateProductWithPortfolioInput) (*servicecatalog.AssociateProductWithPortfolioOutput, error) + + CreateConstraintRequest(*servicecatalog.CreateConstraintInput) (*request.Request, *servicecatalog.CreateConstraintOutput) + + CreateConstraint(*servicecatalog.CreateConstraintInput) (*servicecatalog.CreateConstraintOutput, error) + + CreatePortfolioRequest(*servicecatalog.CreatePortfolioInput) (*request.Request, *servicecatalog.CreatePortfolioOutput) + + CreatePortfolio(*servicecatalog.CreatePortfolioInput) (*servicecatalog.CreatePortfolioOutput, error) + + CreatePortfolioShareRequest(*servicecatalog.CreatePortfolioShareInput) (*request.Request, *servicecatalog.CreatePortfolioShareOutput) + + CreatePortfolioShare(*servicecatalog.CreatePortfolioShareInput) (*servicecatalog.CreatePortfolioShareOutput, error) + + CreateProductRequest(*servicecatalog.CreateProductInput) (*request.Request, *servicecatalog.CreateProductOutput) + + CreateProduct(*servicecatalog.CreateProductInput) (*servicecatalog.CreateProductOutput, error) + + CreateProvisioningArtifactRequest(*servicecatalog.CreateProvisioningArtifactInput) (*request.Request, *servicecatalog.CreateProvisioningArtifactOutput) + + CreateProvisioningArtifact(*servicecatalog.CreateProvisioningArtifactInput) (*servicecatalog.CreateProvisioningArtifactOutput, error) + + DeleteConstraintRequest(*servicecatalog.DeleteConstraintInput) (*request.Request, *servicecatalog.DeleteConstraintOutput) + + DeleteConstraint(*servicecatalog.DeleteConstraintInput) (*servicecatalog.DeleteConstraintOutput, error) + + DeletePortfolioRequest(*servicecatalog.DeletePortfolioInput) (*request.Request, *servicecatalog.DeletePortfolioOutput) + + DeletePortfolio(*servicecatalog.DeletePortfolioInput) (*servicecatalog.DeletePortfolioOutput, error) + + DeletePortfolioShareRequest(*servicecatalog.DeletePortfolioShareInput) (*request.Request, *servicecatalog.DeletePortfolioShareOutput) + + DeletePortfolioShare(*servicecatalog.DeletePortfolioShareInput) (*servicecatalog.DeletePortfolioShareOutput, error) + + DeleteProductRequest(*servicecatalog.DeleteProductInput) (*request.Request, *servicecatalog.DeleteProductOutput) + + DeleteProduct(*servicecatalog.DeleteProductInput) (*servicecatalog.DeleteProductOutput, error) + + DeleteProvisioningArtifactRequest(*servicecatalog.DeleteProvisioningArtifactInput) (*request.Request, *servicecatalog.DeleteProvisioningArtifactOutput) + + DeleteProvisioningArtifact(*servicecatalog.DeleteProvisioningArtifactInput) (*servicecatalog.DeleteProvisioningArtifactOutput, error) + + DescribeConstraintRequest(*servicecatalog.DescribeConstraintInput) (*request.Request, *servicecatalog.DescribeConstraintOutput) + + DescribeConstraint(*servicecatalog.DescribeConstraintInput) (*servicecatalog.DescribeConstraintOutput, error) + + DescribePortfolioRequest(*servicecatalog.DescribePortfolioInput) (*request.Request, *servicecatalog.DescribePortfolioOutput) + + DescribePortfolio(*servicecatalog.DescribePortfolioInput) (*servicecatalog.DescribePortfolioOutput, error) + DescribeProductRequest(*servicecatalog.DescribeProductInput) (*request.Request, *servicecatalog.DescribeProductOutput) DescribeProduct(*servicecatalog.DescribeProductInput) (*servicecatalog.DescribeProductOutput, error) + DescribeProductAsAdminRequest(*servicecatalog.DescribeProductAsAdminInput) (*request.Request, *servicecatalog.DescribeProductAsAdminOutput) + + DescribeProductAsAdmin(*servicecatalog.DescribeProductAsAdminInput) (*servicecatalog.DescribeProductAsAdminOutput, error) + DescribeProductViewRequest(*servicecatalog.DescribeProductViewInput) (*request.Request, *servicecatalog.DescribeProductViewOutput) DescribeProductView(*servicecatalog.DescribeProductViewInput) (*servicecatalog.DescribeProductViewOutput, error) + DescribeProvisioningArtifactRequest(*servicecatalog.DescribeProvisioningArtifactInput) (*request.Request, *servicecatalog.DescribeProvisioningArtifactOutput) + + DescribeProvisioningArtifact(*servicecatalog.DescribeProvisioningArtifactInput) (*servicecatalog.DescribeProvisioningArtifactOutput, error) + DescribeProvisioningParametersRequest(*servicecatalog.DescribeProvisioningParametersInput) (*request.Request, *servicecatalog.DescribeProvisioningParametersOutput) DescribeProvisioningParameters(*servicecatalog.DescribeProvisioningParametersInput) (*servicecatalog.DescribeProvisioningParametersOutput, error) @@ -75,10 +143,46 @@ type ServiceCatalogAPI interface { DescribeRecord(*servicecatalog.DescribeRecordInput) (*servicecatalog.DescribeRecordOutput, error) + DisassociatePrincipalFromPortfolioRequest(*servicecatalog.DisassociatePrincipalFromPortfolioInput) (*request.Request, *servicecatalog.DisassociatePrincipalFromPortfolioOutput) + + DisassociatePrincipalFromPortfolio(*servicecatalog.DisassociatePrincipalFromPortfolioInput) (*servicecatalog.DisassociatePrincipalFromPortfolioOutput, error) + + DisassociateProductFromPortfolioRequest(*servicecatalog.DisassociateProductFromPortfolioInput) (*request.Request, *servicecatalog.DisassociateProductFromPortfolioOutput) + + DisassociateProductFromPortfolio(*servicecatalog.DisassociateProductFromPortfolioInput) (*servicecatalog.DisassociateProductFromPortfolioOutput, error) + + ListAcceptedPortfolioSharesRequest(*servicecatalog.ListAcceptedPortfolioSharesInput) (*request.Request, *servicecatalog.ListAcceptedPortfolioSharesOutput) + + ListAcceptedPortfolioShares(*servicecatalog.ListAcceptedPortfolioSharesInput) (*servicecatalog.ListAcceptedPortfolioSharesOutput, error) + + ListConstraintsForPortfolioRequest(*servicecatalog.ListConstraintsForPortfolioInput) (*request.Request, *servicecatalog.ListConstraintsForPortfolioOutput) + + ListConstraintsForPortfolio(*servicecatalog.ListConstraintsForPortfolioInput) (*servicecatalog.ListConstraintsForPortfolioOutput, error) + ListLaunchPathsRequest(*servicecatalog.ListLaunchPathsInput) (*request.Request, *servicecatalog.ListLaunchPathsOutput) ListLaunchPaths(*servicecatalog.ListLaunchPathsInput) (*servicecatalog.ListLaunchPathsOutput, error) + ListPortfolioAccessRequest(*servicecatalog.ListPortfolioAccessInput) (*request.Request, *servicecatalog.ListPortfolioAccessOutput) + + ListPortfolioAccess(*servicecatalog.ListPortfolioAccessInput) (*servicecatalog.ListPortfolioAccessOutput, error) + + ListPortfoliosRequest(*servicecatalog.ListPortfoliosInput) (*request.Request, *servicecatalog.ListPortfoliosOutput) + + ListPortfolios(*servicecatalog.ListPortfoliosInput) (*servicecatalog.ListPortfoliosOutput, error) + + ListPortfoliosForProductRequest(*servicecatalog.ListPortfoliosForProductInput) (*request.Request, *servicecatalog.ListPortfoliosForProductOutput) + + ListPortfoliosForProduct(*servicecatalog.ListPortfoliosForProductInput) (*servicecatalog.ListPortfoliosForProductOutput, error) + + ListPrincipalsForPortfolioRequest(*servicecatalog.ListPrincipalsForPortfolioInput) (*request.Request, *servicecatalog.ListPrincipalsForPortfolioOutput) + + ListPrincipalsForPortfolio(*servicecatalog.ListPrincipalsForPortfolioInput) (*servicecatalog.ListPrincipalsForPortfolioOutput, error) + + ListProvisioningArtifactsRequest(*servicecatalog.ListProvisioningArtifactsInput) (*request.Request, *servicecatalog.ListProvisioningArtifactsOutput) + + ListProvisioningArtifacts(*servicecatalog.ListProvisioningArtifactsInput) (*servicecatalog.ListProvisioningArtifactsOutput, error) + ListRecordHistoryRequest(*servicecatalog.ListRecordHistoryInput) (*request.Request, *servicecatalog.ListRecordHistoryOutput) ListRecordHistory(*servicecatalog.ListRecordHistoryInput) (*servicecatalog.ListRecordHistoryOutput, error) @@ -87,6 +191,10 @@ type ServiceCatalogAPI interface { ProvisionProduct(*servicecatalog.ProvisionProductInput) (*servicecatalog.ProvisionProductOutput, error) + RejectPortfolioShareRequest(*servicecatalog.RejectPortfolioShareInput) (*request.Request, *servicecatalog.RejectPortfolioShareOutput) + + RejectPortfolioShare(*servicecatalog.RejectPortfolioShareInput) (*servicecatalog.RejectPortfolioShareOutput, error) + ScanProvisionedProductsRequest(*servicecatalog.ScanProvisionedProductsInput) (*request.Request, *servicecatalog.ScanProvisionedProductsOutput) ScanProvisionedProducts(*servicecatalog.ScanProvisionedProductsInput) (*servicecatalog.ScanProvisionedProductsOutput, error) @@ -95,13 +203,33 @@ type ServiceCatalogAPI interface { SearchProducts(*servicecatalog.SearchProductsInput) (*servicecatalog.SearchProductsOutput, error) + SearchProductsAsAdminRequest(*servicecatalog.SearchProductsAsAdminInput) (*request.Request, *servicecatalog.SearchProductsAsAdminOutput) + + SearchProductsAsAdmin(*servicecatalog.SearchProductsAsAdminInput) (*servicecatalog.SearchProductsAsAdminOutput, error) + TerminateProvisionedProductRequest(*servicecatalog.TerminateProvisionedProductInput) (*request.Request, *servicecatalog.TerminateProvisionedProductOutput) TerminateProvisionedProduct(*servicecatalog.TerminateProvisionedProductInput) (*servicecatalog.TerminateProvisionedProductOutput, error) + UpdateConstraintRequest(*servicecatalog.UpdateConstraintInput) (*request.Request, *servicecatalog.UpdateConstraintOutput) + + UpdateConstraint(*servicecatalog.UpdateConstraintInput) (*servicecatalog.UpdateConstraintOutput, error) + + UpdatePortfolioRequest(*servicecatalog.UpdatePortfolioInput) (*request.Request, *servicecatalog.UpdatePortfolioOutput) + + UpdatePortfolio(*servicecatalog.UpdatePortfolioInput) (*servicecatalog.UpdatePortfolioOutput, error) + + UpdateProductRequest(*servicecatalog.UpdateProductInput) (*request.Request, *servicecatalog.UpdateProductOutput) + + UpdateProduct(*servicecatalog.UpdateProductInput) (*servicecatalog.UpdateProductOutput, error) + UpdateProvisionedProductRequest(*servicecatalog.UpdateProvisionedProductInput) (*request.Request, *servicecatalog.UpdateProvisionedProductOutput) UpdateProvisionedProduct(*servicecatalog.UpdateProvisionedProductInput) (*servicecatalog.UpdateProvisionedProductOutput, error) + + UpdateProvisioningArtifactRequest(*servicecatalog.UpdateProvisioningArtifactInput) (*request.Request, *servicecatalog.UpdateProvisioningArtifactOutput) + + UpdateProvisioningArtifact(*servicecatalog.UpdateProvisioningArtifactInput) (*servicecatalog.UpdateProvisioningArtifactOutput, error) } var _ ServiceCatalogAPI = (*servicecatalog.ServiceCatalog)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ses/api.go b/vendor/github.com/aws/aws-sdk-go/service/ses/api.go index 679af7f7e..79253784a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ses/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ses/api.go @@ -39,6 +39,7 @@ const opCloneReceiptRuleSet = "CloneReceiptRuleSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CloneReceiptRuleSet func (c *SES) CloneReceiptRuleSetRequest(input *CloneReceiptRuleSetInput) (req *request.Request, output *CloneReceiptRuleSetOutput) { op := &request.Operation{ Name: opCloneReceiptRuleSet, @@ -50,9 +51,8 @@ func (c *SES) CloneReceiptRuleSetRequest(input *CloneReceiptRuleSetInput) (req * input = &CloneReceiptRuleSetInput{} } - req = c.newRequest(op, input, output) output = &CloneReceiptRuleSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -75,22 +75,193 @@ func (c *SES) CloneReceiptRuleSetRequest(input *CloneReceiptRuleSetInput) (req * // API operation CloneReceiptRuleSet for usage and error information. // // Returned Error Codes: -// * RuleSetDoesNotExist +// * ErrCodeRuleSetDoesNotExistException "RuleSetDoesNotExist" // Indicates that the provided receipt rule set does not exist. // -// * AlreadyExists -// Indicates that a resource could not be created due to a naming conflict. +// * ErrCodeAlreadyExistsException "AlreadyExists" +// Indicates that a resource could not be created because of a naming conflict. // -// * LimitExceeded -// Indicates that a resource could not be created due to service limits. For -// a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). +// * ErrCodeLimitExceededException "LimitExceeded" +// Indicates that a resource could not be created because of service limits. +// For a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CloneReceiptRuleSet func (c *SES) CloneReceiptRuleSet(input *CloneReceiptRuleSetInput) (*CloneReceiptRuleSetOutput, error) { req, out := c.CloneReceiptRuleSetRequest(input) err := req.Send() return out, err } +const opCreateConfigurationSet = "CreateConfigurationSet" + +// CreateConfigurationSetRequest generates a "aws/request.Request" representing the +// client's request for the CreateConfigurationSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateConfigurationSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateConfigurationSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateConfigurationSetRequest method. +// req, resp := client.CreateConfigurationSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateConfigurationSet +func (c *SES) CreateConfigurationSetRequest(input *CreateConfigurationSetInput) (req *request.Request, output *CreateConfigurationSetOutput) { + op := &request.Operation{ + Name: opCreateConfigurationSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateConfigurationSetInput{} + } + + output = &CreateConfigurationSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateConfigurationSet API operation for Amazon Simple Email Service. +// +// Creates a configuration set. +// +// Configuration sets enable you to publish email sending events. For information +// about using configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// +// This action is throttled at one request per second. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation CreateConfigurationSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeConfigurationSetAlreadyExistsException "ConfigurationSetAlreadyExists" +// Indicates that the configuration set could not be created because of a naming +// conflict. +// +// * ErrCodeInvalidConfigurationSetException "InvalidConfigurationSet" +// Indicates that the configuration set is invalid. See the error message for +// details. +// +// * ErrCodeLimitExceededException "LimitExceeded" +// Indicates that a resource could not be created because of service limits. +// For a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateConfigurationSet +func (c *SES) CreateConfigurationSet(input *CreateConfigurationSetInput) (*CreateConfigurationSetOutput, error) { + req, out := c.CreateConfigurationSetRequest(input) + err := req.Send() + return out, err +} + +const opCreateConfigurationSetEventDestination = "CreateConfigurationSetEventDestination" + +// CreateConfigurationSetEventDestinationRequest generates a "aws/request.Request" representing the +// client's request for the CreateConfigurationSetEventDestination operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateConfigurationSetEventDestination for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateConfigurationSetEventDestination method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateConfigurationSetEventDestinationRequest method. +// req, resp := client.CreateConfigurationSetEventDestinationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateConfigurationSetEventDestination +func (c *SES) CreateConfigurationSetEventDestinationRequest(input *CreateConfigurationSetEventDestinationInput) (req *request.Request, output *CreateConfigurationSetEventDestinationOutput) { + op := &request.Operation{ + Name: opCreateConfigurationSetEventDestination, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateConfigurationSetEventDestinationInput{} + } + + output = &CreateConfigurationSetEventDestinationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateConfigurationSetEventDestination API operation for Amazon Simple Email Service. +// +// Creates a configuration set event destination. +// +// When you create or update an event destination, you must provide one, and +// only one, destination. The destination can be either Amazon CloudWatch or +// Amazon Kinesis Firehose. +// +// An event destination is the AWS service to which Amazon SES publishes the +// email sending events associated with a configuration set. For information +// about using configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// +// This action is throttled at one request per second. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation CreateConfigurationSetEventDestination for usage and error information. +// +// Returned Error Codes: +// * ErrCodeConfigurationSetDoesNotExistException "ConfigurationSetDoesNotExist" +// Indicates that the configuration set does not exist. +// +// * ErrCodeEventDestinationAlreadyExistsException "EventDestinationAlreadyExists" +// Indicates that the event destination could not be created because of a naming +// conflict. +// +// * ErrCodeInvalidCloudWatchDestinationException "InvalidCloudWatchDestination" +// Indicates that the Amazon CloudWatch destination is invalid. See the error +// message for details. +// +// * ErrCodeInvalidFirehoseDestinationException "InvalidFirehoseDestination" +// Indicates that the Amazon Kinesis Firehose destination is invalid. See the +// error message for details. +// +// * ErrCodeLimitExceededException "LimitExceeded" +// Indicates that a resource could not be created because of service limits. +// For a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateConfigurationSetEventDestination +func (c *SES) CreateConfigurationSetEventDestination(input *CreateConfigurationSetEventDestinationInput) (*CreateConfigurationSetEventDestinationOutput, error) { + req, out := c.CreateConfigurationSetEventDestinationRequest(input) + err := req.Send() + return out, err +} + const opCreateReceiptFilter = "CreateReceiptFilter" // CreateReceiptFilterRequest generates a "aws/request.Request" representing the @@ -117,6 +288,7 @@ const opCreateReceiptFilter = "CreateReceiptFilter" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateReceiptFilter func (c *SES) CreateReceiptFilterRequest(input *CreateReceiptFilterInput) (req *request.Request, output *CreateReceiptFilterOutput) { op := &request.Operation{ Name: opCreateReceiptFilter, @@ -128,9 +300,8 @@ func (c *SES) CreateReceiptFilterRequest(input *CreateReceiptFilterInput) (req * input = &CreateReceiptFilterInput{} } - req = c.newRequest(op, input, output) output = &CreateReceiptFilterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -138,8 +309,8 @@ func (c *SES) CreateReceiptFilterRequest(input *CreateReceiptFilterInput) (req * // // Creates a new IP address filter. // -// For information about setting up IP address filters, see the Amazon SES -// Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html). +// For information about setting up IP address filters, see the Amazon SES Developer +// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html). // // This action is throttled at one request per second. // @@ -151,13 +322,14 @@ func (c *SES) CreateReceiptFilterRequest(input *CreateReceiptFilterInput) (req * // API operation CreateReceiptFilter for usage and error information. // // Returned Error Codes: -// * LimitExceeded -// Indicates that a resource could not be created due to service limits. For -// a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). +// * ErrCodeLimitExceededException "LimitExceeded" +// Indicates that a resource could not be created because of service limits. +// For a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). // -// * AlreadyExists -// Indicates that a resource could not be created due to a naming conflict. +// * ErrCodeAlreadyExistsException "AlreadyExists" +// Indicates that a resource could not be created because of a naming conflict. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateReceiptFilter func (c *SES) CreateReceiptFilter(input *CreateReceiptFilterInput) (*CreateReceiptFilterOutput, error) { req, out := c.CreateReceiptFilterRequest(input) err := req.Send() @@ -190,6 +362,7 @@ const opCreateReceiptRule = "CreateReceiptRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateReceiptRule func (c *SES) CreateReceiptRuleRequest(input *CreateReceiptRuleInput) (req *request.Request, output *CreateReceiptRuleOutput) { op := &request.Operation{ Name: opCreateReceiptRule, @@ -201,9 +374,8 @@ func (c *SES) CreateReceiptRuleRequest(input *CreateReceiptRuleInput) (req *requ input = &CreateReceiptRuleInput{} } - req = c.newRequest(op, input, output) output = &CreateReceiptRuleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -224,36 +396,37 @@ func (c *SES) CreateReceiptRuleRequest(input *CreateReceiptRuleInput) (req *requ // API operation CreateReceiptRule for usage and error information. // // Returned Error Codes: -// * InvalidSnsTopic +// * ErrCodeInvalidSnsTopicException "InvalidSnsTopic" // Indicates that the provided Amazon SNS topic is invalid, or that Amazon SES // could not publish to the topic, possibly due to permissions issues. For information // about giving permissions, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). // -// * InvalidS3Configuration +// * ErrCodeInvalidS3ConfigurationException "InvalidS3Configuration" // Indicates that the provided Amazon S3 bucket or AWS KMS encryption key is // invalid, or that Amazon SES could not publish to the bucket, possibly due // to permissions issues. For information about giving permissions, see the // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). // -// * InvalidLambdaFunction +// * ErrCodeInvalidLambdaFunctionException "InvalidLambdaFunction" // Indicates that the provided AWS Lambda function is invalid, or that Amazon // SES could not execute the provided function, possibly due to permissions // issues. For information about giving permissions, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). // -// * AlreadyExists -// Indicates that a resource could not be created due to a naming conflict. +// * ErrCodeAlreadyExistsException "AlreadyExists" +// Indicates that a resource could not be created because of a naming conflict. // -// * RuleDoesNotExist +// * ErrCodeRuleDoesNotExistException "RuleDoesNotExist" // Indicates that the provided receipt rule does not exist. // -// * RuleSetDoesNotExist +// * ErrCodeRuleSetDoesNotExistException "RuleSetDoesNotExist" // Indicates that the provided receipt rule set does not exist. // -// * LimitExceeded -// Indicates that a resource could not be created due to service limits. For -// a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). +// * ErrCodeLimitExceededException "LimitExceeded" +// Indicates that a resource could not be created because of service limits. +// For a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateReceiptRule func (c *SES) CreateReceiptRule(input *CreateReceiptRuleInput) (*CreateReceiptRuleOutput, error) { req, out := c.CreateReceiptRuleRequest(input) err := req.Send() @@ -286,6 +459,7 @@ const opCreateReceiptRuleSet = "CreateReceiptRuleSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateReceiptRuleSet func (c *SES) CreateReceiptRuleSetRequest(input *CreateReceiptRuleSetInput) (req *request.Request, output *CreateReceiptRuleSetOutput) { op := &request.Operation{ Name: opCreateReceiptRuleSet, @@ -297,9 +471,8 @@ func (c *SES) CreateReceiptRuleSetRequest(input *CreateReceiptRuleSetInput) (req input = &CreateReceiptRuleSetInput{} } - req = c.newRequest(op, input, output) output = &CreateReceiptRuleSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -320,19 +493,164 @@ func (c *SES) CreateReceiptRuleSetRequest(input *CreateReceiptRuleSetInput) (req // API operation CreateReceiptRuleSet for usage and error information. // // Returned Error Codes: -// * AlreadyExists -// Indicates that a resource could not be created due to a naming conflict. +// * ErrCodeAlreadyExistsException "AlreadyExists" +// Indicates that a resource could not be created because of a naming conflict. // -// * LimitExceeded -// Indicates that a resource could not be created due to service limits. For -// a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). +// * ErrCodeLimitExceededException "LimitExceeded" +// Indicates that a resource could not be created because of service limits. +// For a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateReceiptRuleSet func (c *SES) CreateReceiptRuleSet(input *CreateReceiptRuleSetInput) (*CreateReceiptRuleSetOutput, error) { req, out := c.CreateReceiptRuleSetRequest(input) err := req.Send() return out, err } +const opDeleteConfigurationSet = "DeleteConfigurationSet" + +// DeleteConfigurationSetRequest generates a "aws/request.Request" representing the +// client's request for the DeleteConfigurationSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteConfigurationSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteConfigurationSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteConfigurationSetRequest method. +// req, resp := client.DeleteConfigurationSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteConfigurationSet +func (c *SES) DeleteConfigurationSetRequest(input *DeleteConfigurationSetInput) (req *request.Request, output *DeleteConfigurationSetOutput) { + op := &request.Operation{ + Name: opDeleteConfigurationSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteConfigurationSetInput{} + } + + output = &DeleteConfigurationSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteConfigurationSet API operation for Amazon Simple Email Service. +// +// Deletes a configuration set. +// +// Configuration sets enable you to publish email sending events. For information +// about using configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// +// This action is throttled at one request per second. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation DeleteConfigurationSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeConfigurationSetDoesNotExistException "ConfigurationSetDoesNotExist" +// Indicates that the configuration set does not exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteConfigurationSet +func (c *SES) DeleteConfigurationSet(input *DeleteConfigurationSetInput) (*DeleteConfigurationSetOutput, error) { + req, out := c.DeleteConfigurationSetRequest(input) + err := req.Send() + return out, err +} + +const opDeleteConfigurationSetEventDestination = "DeleteConfigurationSetEventDestination" + +// DeleteConfigurationSetEventDestinationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteConfigurationSetEventDestination operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteConfigurationSetEventDestination for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteConfigurationSetEventDestination method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteConfigurationSetEventDestinationRequest method. +// req, resp := client.DeleteConfigurationSetEventDestinationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteConfigurationSetEventDestination +func (c *SES) DeleteConfigurationSetEventDestinationRequest(input *DeleteConfigurationSetEventDestinationInput) (req *request.Request, output *DeleteConfigurationSetEventDestinationOutput) { + op := &request.Operation{ + Name: opDeleteConfigurationSetEventDestination, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteConfigurationSetEventDestinationInput{} + } + + output = &DeleteConfigurationSetEventDestinationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteConfigurationSetEventDestination API operation for Amazon Simple Email Service. +// +// Deletes a configuration set event destination. +// +// Configuration set event destinations are associated with configuration sets, +// which enable you to publish email sending events. For information about using +// configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// +// This action is throttled at one request per second. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation DeleteConfigurationSetEventDestination for usage and error information. +// +// Returned Error Codes: +// * ErrCodeConfigurationSetDoesNotExistException "ConfigurationSetDoesNotExist" +// Indicates that the configuration set does not exist. +// +// * ErrCodeEventDestinationDoesNotExistException "EventDestinationDoesNotExist" +// Indicates that the event destination does not exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteConfigurationSetEventDestination +func (c *SES) DeleteConfigurationSetEventDestination(input *DeleteConfigurationSetEventDestinationInput) (*DeleteConfigurationSetEventDestinationOutput, error) { + req, out := c.DeleteConfigurationSetEventDestinationRequest(input) + err := req.Send() + return out, err +} + const opDeleteIdentity = "DeleteIdentity" // DeleteIdentityRequest generates a "aws/request.Request" representing the @@ -359,6 +677,7 @@ const opDeleteIdentity = "DeleteIdentity" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteIdentity func (c *SES) DeleteIdentityRequest(input *DeleteIdentityInput) (req *request.Request, output *DeleteIdentityOutput) { op := &request.Operation{ Name: opDeleteIdentity, @@ -370,9 +689,8 @@ func (c *SES) DeleteIdentityRequest(input *DeleteIdentityInput) (req *request.Re input = &DeleteIdentityInput{} } - req = c.newRequest(op, input, output) output = &DeleteIdentityOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -389,6 +707,7 @@ func (c *SES) DeleteIdentityRequest(input *DeleteIdentityInput) (req *request.Re // // See the AWS API reference guide for Amazon Simple Email Service's // API operation DeleteIdentity for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteIdentity func (c *SES) DeleteIdentity(input *DeleteIdentityInput) (*DeleteIdentityOutput, error) { req, out := c.DeleteIdentityRequest(input) err := req.Send() @@ -421,6 +740,7 @@ const opDeleteIdentityPolicy = "DeleteIdentityPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteIdentityPolicy func (c *SES) DeleteIdentityPolicyRequest(input *DeleteIdentityPolicyInput) (req *request.Request, output *DeleteIdentityPolicyOutput) { op := &request.Operation{ Name: opDeleteIdentityPolicy, @@ -432,9 +752,8 @@ func (c *SES) DeleteIdentityPolicyRequest(input *DeleteIdentityPolicyInput) (req input = &DeleteIdentityPolicyInput{} } - req = c.newRequest(op, input, output) output = &DeleteIdentityPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -444,10 +763,10 @@ func (c *SES) DeleteIdentityPolicyRequest(input *DeleteIdentityPolicyInput) (req // (an email address or a domain). This API returns successfully even if a policy // with the specified name does not exist. // -// This API is for the identity owner only. If you have not verified the identity, +// This API is for the identity owner only. If you have not verified the identity, // this API will return an error. // -// Sending authorization is a feature that enables an identity owner to authorize +// Sending authorization is a feature that enables an identity owner to authorize // other senders to use its identities. For information about using sending // authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). // @@ -459,6 +778,7 @@ func (c *SES) DeleteIdentityPolicyRequest(input *DeleteIdentityPolicyInput) (req // // See the AWS API reference guide for Amazon Simple Email Service's // API operation DeleteIdentityPolicy for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteIdentityPolicy func (c *SES) DeleteIdentityPolicy(input *DeleteIdentityPolicyInput) (*DeleteIdentityPolicyOutput, error) { req, out := c.DeleteIdentityPolicyRequest(input) err := req.Send() @@ -491,6 +811,7 @@ const opDeleteReceiptFilter = "DeleteReceiptFilter" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteReceiptFilter func (c *SES) DeleteReceiptFilterRequest(input *DeleteReceiptFilterInput) (req *request.Request, output *DeleteReceiptFilterOutput) { op := &request.Operation{ Name: opDeleteReceiptFilter, @@ -502,9 +823,8 @@ func (c *SES) DeleteReceiptFilterRequest(input *DeleteReceiptFilterInput) (req * input = &DeleteReceiptFilterInput{} } - req = c.newRequest(op, input, output) output = &DeleteReceiptFilterOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -523,6 +843,7 @@ func (c *SES) DeleteReceiptFilterRequest(input *DeleteReceiptFilterInput) (req * // // See the AWS API reference guide for Amazon Simple Email Service's // API operation DeleteReceiptFilter for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteReceiptFilter func (c *SES) DeleteReceiptFilter(input *DeleteReceiptFilterInput) (*DeleteReceiptFilterOutput, error) { req, out := c.DeleteReceiptFilterRequest(input) err := req.Send() @@ -555,6 +876,7 @@ const opDeleteReceiptRule = "DeleteReceiptRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteReceiptRule func (c *SES) DeleteReceiptRuleRequest(input *DeleteReceiptRuleInput) (req *request.Request, output *DeleteReceiptRuleOutput) { op := &request.Operation{ Name: opDeleteReceiptRule, @@ -566,9 +888,8 @@ func (c *SES) DeleteReceiptRuleRequest(input *DeleteReceiptRuleInput) (req *requ input = &DeleteReceiptRuleInput{} } - req = c.newRequest(op, input, output) output = &DeleteReceiptRuleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -589,9 +910,10 @@ func (c *SES) DeleteReceiptRuleRequest(input *DeleteReceiptRuleInput) (req *requ // API operation DeleteReceiptRule for usage and error information. // // Returned Error Codes: -// * RuleSetDoesNotExist +// * ErrCodeRuleSetDoesNotExistException "RuleSetDoesNotExist" // Indicates that the provided receipt rule set does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteReceiptRule func (c *SES) DeleteReceiptRule(input *DeleteReceiptRuleInput) (*DeleteReceiptRuleOutput, error) { req, out := c.DeleteReceiptRuleRequest(input) err := req.Send() @@ -624,6 +946,7 @@ const opDeleteReceiptRuleSet = "DeleteReceiptRuleSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteReceiptRuleSet func (c *SES) DeleteReceiptRuleSetRequest(input *DeleteReceiptRuleSetInput) (req *request.Request, output *DeleteReceiptRuleSetOutput) { op := &request.Operation{ Name: opDeleteReceiptRuleSet, @@ -635,9 +958,8 @@ func (c *SES) DeleteReceiptRuleSetRequest(input *DeleteReceiptRuleSetInput) (req input = &DeleteReceiptRuleSetInput{} } - req = c.newRequest(op, input, output) output = &DeleteReceiptRuleSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -645,9 +967,9 @@ func (c *SES) DeleteReceiptRuleSetRequest(input *DeleteReceiptRuleSetInput) (req // // Deletes the specified receipt rule set and all of the receipt rules it contains. // -// The currently active rule set cannot be deleted. +// The currently active rule set cannot be deleted. // -// For information about managing receipt rule sets, see the Amazon SES Developer +// For information about managing receipt rule sets, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html). // // This action is throttled at one request per second. @@ -660,9 +982,10 @@ func (c *SES) DeleteReceiptRuleSetRequest(input *DeleteReceiptRuleSetInput) (req // API operation DeleteReceiptRuleSet for usage and error information. // // Returned Error Codes: -// * CannotDelete +// * ErrCodeCannotDeleteException "CannotDelete" // Indicates that the delete operation could not be completed. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteReceiptRuleSet func (c *SES) DeleteReceiptRuleSet(input *DeleteReceiptRuleSetInput) (*DeleteReceiptRuleSetOutput, error) { req, out := c.DeleteReceiptRuleSetRequest(input) err := req.Send() @@ -695,6 +1018,7 @@ const opDeleteVerifiedEmailAddress = "DeleteVerifiedEmailAddress" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteVerifiedEmailAddress func (c *SES) DeleteVerifiedEmailAddressRequest(input *DeleteVerifiedEmailAddressInput) (req *request.Request, output *DeleteVerifiedEmailAddressOutput) { op := &request.Operation{ Name: opDeleteVerifiedEmailAddress, @@ -706,11 +1030,10 @@ func (c *SES) DeleteVerifiedEmailAddressRequest(input *DeleteVerifiedEmailAddres input = &DeleteVerifiedEmailAddressInput{} } + output = &DeleteVerifiedEmailAddressOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteVerifiedEmailAddressOutput{} - req.Data = output return } @@ -718,10 +1041,10 @@ func (c *SES) DeleteVerifiedEmailAddressRequest(input *DeleteVerifiedEmailAddres // // Deletes the specified email address from the list of verified addresses. // -// The DeleteVerifiedEmailAddress action is deprecated as of the May 15, 2012 +// The DeleteVerifiedEmailAddress action is deprecated as of the May 15, 2012 // release of Domain Verification. The DeleteIdentity action is now preferred. // -// This action is throttled at one request per second. +// This action is throttled at one request per second. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -729,6 +1052,7 @@ func (c *SES) DeleteVerifiedEmailAddressRequest(input *DeleteVerifiedEmailAddres // // See the AWS API reference guide for Amazon Simple Email Service's // API operation DeleteVerifiedEmailAddress for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteVerifiedEmailAddress func (c *SES) DeleteVerifiedEmailAddress(input *DeleteVerifiedEmailAddressInput) (*DeleteVerifiedEmailAddressOutput, error) { req, out := c.DeleteVerifiedEmailAddressRequest(input) err := req.Send() @@ -761,6 +1085,7 @@ const opDescribeActiveReceiptRuleSet = "DescribeActiveReceiptRuleSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DescribeActiveReceiptRuleSet func (c *SES) DescribeActiveReceiptRuleSetRequest(input *DescribeActiveReceiptRuleSetInput) (req *request.Request, output *DescribeActiveReceiptRuleSetOutput) { op := &request.Operation{ Name: opDescribeActiveReceiptRuleSet, @@ -772,9 +1097,8 @@ func (c *SES) DescribeActiveReceiptRuleSetRequest(input *DescribeActiveReceiptRu input = &DescribeActiveReceiptRuleSetInput{} } - req = c.newRequest(op, input, output) output = &DescribeActiveReceiptRuleSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -794,61 +1118,62 @@ func (c *SES) DescribeActiveReceiptRuleSetRequest(input *DescribeActiveReceiptRu // // See the AWS API reference guide for Amazon Simple Email Service's // API operation DescribeActiveReceiptRuleSet for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DescribeActiveReceiptRuleSet func (c *SES) DescribeActiveReceiptRuleSet(input *DescribeActiveReceiptRuleSetInput) (*DescribeActiveReceiptRuleSetOutput, error) { req, out := c.DescribeActiveReceiptRuleSetRequest(input) err := req.Send() return out, err } -const opDescribeReceiptRule = "DescribeReceiptRule" +const opDescribeConfigurationSet = "DescribeConfigurationSet" -// DescribeReceiptRuleRequest generates a "aws/request.Request" representing the -// client's request for the DescribeReceiptRule operation. The "output" return +// DescribeConfigurationSetRequest generates a "aws/request.Request" representing the +// client's request for the DescribeConfigurationSet operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeReceiptRule for usage and error information. +// See DescribeConfigurationSet for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeReceiptRule method directly +// you just want the service response, call the DescribeConfigurationSet method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeReceiptRuleRequest method. -// req, resp := client.DescribeReceiptRuleRequest(params) +// // Example sending a request using the DescribeConfigurationSetRequest method. +// req, resp := client.DescribeConfigurationSetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *SES) DescribeReceiptRuleRequest(input *DescribeReceiptRuleInput) (req *request.Request, output *DescribeReceiptRuleOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DescribeConfigurationSet +func (c *SES) DescribeConfigurationSetRequest(input *DescribeConfigurationSetInput) (req *request.Request, output *DescribeConfigurationSetOutput) { op := &request.Operation{ - Name: opDescribeReceiptRule, + Name: opDescribeConfigurationSet, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeReceiptRuleInput{} + input = &DescribeConfigurationSetInput{} } + output = &DescribeConfigurationSetOutput{} req = c.newRequest(op, input, output) - output = &DescribeReceiptRuleOutput{} - req.Data = output return } -// DescribeReceiptRule API operation for Amazon Simple Email Service. +// DescribeConfigurationSet API operation for Amazon Simple Email Service. // -// Returns the details of the specified receipt rule. +// Returns the details of the specified configuration set. // -// For information about setting up receipt rules, see the Amazon SES Developer -// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rules.html). +// Configuration sets enable you to publish email sending events. For information +// about using configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). // // This action is throttled at one request per second. // @@ -857,40 +1182,111 @@ func (c *SES) DescribeReceiptRuleRequest(input *DescribeReceiptRuleInput) (req * // the error. // // See the AWS API reference guide for Amazon Simple Email Service's -// API operation DescribeReceiptRule for usage and error information. +// API operation DescribeConfigurationSet for usage and error information. // // Returned Error Codes: -// * RuleDoesNotExist -// Indicates that the provided receipt rule does not exist. -// -// * RuleSetDoesNotExist -// Indicates that the provided receipt rule set does not exist. +// * ErrCodeConfigurationSetDoesNotExistException "ConfigurationSetDoesNotExist" +// Indicates that the configuration set does not exist. // -func (c *SES) DescribeReceiptRule(input *DescribeReceiptRuleInput) (*DescribeReceiptRuleOutput, error) { - req, out := c.DescribeReceiptRuleRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DescribeConfigurationSet +func (c *SES) DescribeConfigurationSet(input *DescribeConfigurationSetInput) (*DescribeConfigurationSetOutput, error) { + req, out := c.DescribeConfigurationSetRequest(input) err := req.Send() return out, err } -const opDescribeReceiptRuleSet = "DescribeReceiptRuleSet" +const opDescribeReceiptRule = "DescribeReceiptRule" -// DescribeReceiptRuleSetRequest generates a "aws/request.Request" representing the -// client's request for the DescribeReceiptRuleSet operation. The "output" return +// DescribeReceiptRuleRequest generates a "aws/request.Request" representing the +// client's request for the DescribeReceiptRule operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeReceiptRuleSet for usage and error information. +// See DescribeReceiptRule for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeReceiptRuleSet method directly +// you just want the service response, call the DescribeReceiptRule method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeReceiptRuleSetRequest method. +// // Example sending a request using the DescribeReceiptRuleRequest method. +// req, resp := client.DescribeReceiptRuleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DescribeReceiptRule +func (c *SES) DescribeReceiptRuleRequest(input *DescribeReceiptRuleInput) (req *request.Request, output *DescribeReceiptRuleOutput) { + op := &request.Operation{ + Name: opDescribeReceiptRule, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeReceiptRuleInput{} + } + + output = &DescribeReceiptRuleOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeReceiptRule API operation for Amazon Simple Email Service. +// +// Returns the details of the specified receipt rule. +// +// For information about setting up receipt rules, see the Amazon SES Developer +// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rules.html). +// +// This action is throttled at one request per second. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation DescribeReceiptRule for usage and error information. +// +// Returned Error Codes: +// * ErrCodeRuleDoesNotExistException "RuleDoesNotExist" +// Indicates that the provided receipt rule does not exist. +// +// * ErrCodeRuleSetDoesNotExistException "RuleSetDoesNotExist" +// Indicates that the provided receipt rule set does not exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DescribeReceiptRule +func (c *SES) DescribeReceiptRule(input *DescribeReceiptRuleInput) (*DescribeReceiptRuleOutput, error) { + req, out := c.DescribeReceiptRuleRequest(input) + err := req.Send() + return out, err +} + +const opDescribeReceiptRuleSet = "DescribeReceiptRuleSet" + +// DescribeReceiptRuleSetRequest generates a "aws/request.Request" representing the +// client's request for the DescribeReceiptRuleSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeReceiptRuleSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeReceiptRuleSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeReceiptRuleSetRequest method. // req, resp := client.DescribeReceiptRuleSetRequest(params) // // err := req.Send() @@ -898,6 +1294,7 @@ const opDescribeReceiptRuleSet = "DescribeReceiptRuleSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DescribeReceiptRuleSet func (c *SES) DescribeReceiptRuleSetRequest(input *DescribeReceiptRuleSetInput) (req *request.Request, output *DescribeReceiptRuleSetOutput) { op := &request.Operation{ Name: opDescribeReceiptRuleSet, @@ -909,9 +1306,8 @@ func (c *SES) DescribeReceiptRuleSetRequest(input *DescribeReceiptRuleSetInput) input = &DescribeReceiptRuleSetInput{} } - req = c.newRequest(op, input, output) output = &DescribeReceiptRuleSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -932,9 +1328,10 @@ func (c *SES) DescribeReceiptRuleSetRequest(input *DescribeReceiptRuleSetInput) // API operation DescribeReceiptRuleSet for usage and error information. // // Returned Error Codes: -// * RuleSetDoesNotExist +// * ErrCodeRuleSetDoesNotExistException "RuleSetDoesNotExist" // Indicates that the provided receipt rule set does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DescribeReceiptRuleSet func (c *SES) DescribeReceiptRuleSet(input *DescribeReceiptRuleSetInput) (*DescribeReceiptRuleSetOutput, error) { req, out := c.DescribeReceiptRuleSetRequest(input) err := req.Send() @@ -967,6 +1364,7 @@ const opGetIdentityDkimAttributes = "GetIdentityDkimAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetIdentityDkimAttributes func (c *SES) GetIdentityDkimAttributesRequest(input *GetIdentityDkimAttributesInput) (req *request.Request, output *GetIdentityDkimAttributesOutput) { op := &request.Operation{ Name: opGetIdentityDkimAttributes, @@ -978,9 +1376,8 @@ func (c *SES) GetIdentityDkimAttributesRequest(input *GetIdentityDkimAttributesI input = &GetIdentityDkimAttributesInput{} } - req = c.newRequest(op, input, output) output = &GetIdentityDkimAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -994,16 +1391,16 @@ func (c *SES) GetIdentityDkimAttributesRequest(input *GetIdentityDkimAttributesI // This action takes a list of identities as input and returns the following // information for each: // -// Whether Easy DKIM signing is enabled or disabled. +// * Whether Easy DKIM signing is enabled or disabled. // -// A set of DKIM tokens that represent the identity. If the identity is an -// email address, the tokens represent the domain of that address. +// * A set of DKIM tokens that represent the identity. If the identity is +// an email address, the tokens represent the domain of that address. // -// Whether Amazon SES has successfully verified the DKIM tokens published -// in the domain's DNS. This information is only returned for domain name identities, -// not for email addresses. +// * Whether Amazon SES has successfully verified the DKIM tokens published +// in the domain's DNS. This information is only returned for domain name +// identities, not for email addresses. // -// This action is throttled at one request per second and can only get DKIM +// This action is throttled at one request per second and can only get DKIM // attributes for up to 100 identities at a time. // // For more information about creating DNS records using DKIM tokens, go to @@ -1015,6 +1412,7 @@ func (c *SES) GetIdentityDkimAttributesRequest(input *GetIdentityDkimAttributesI // // See the AWS API reference guide for Amazon Simple Email Service's // API operation GetIdentityDkimAttributes for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetIdentityDkimAttributes func (c *SES) GetIdentityDkimAttributes(input *GetIdentityDkimAttributesInput) (*GetIdentityDkimAttributesOutput, error) { req, out := c.GetIdentityDkimAttributesRequest(input) err := req.Send() @@ -1047,6 +1445,7 @@ const opGetIdentityMailFromDomainAttributes = "GetIdentityMailFromDomainAttribut // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetIdentityMailFromDomainAttributes func (c *SES) GetIdentityMailFromDomainAttributesRequest(input *GetIdentityMailFromDomainAttributesInput) (req *request.Request, output *GetIdentityMailFromDomainAttributesOutput) { op := &request.Operation{ Name: opGetIdentityMailFromDomainAttributes, @@ -1058,9 +1457,8 @@ func (c *SES) GetIdentityMailFromDomainAttributesRequest(input *GetIdentityMailF input = &GetIdentityMailFromDomainAttributesInput{} } - req = c.newRequest(op, input, output) output = &GetIdentityMailFromDomainAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1078,6 +1476,7 @@ func (c *SES) GetIdentityMailFromDomainAttributesRequest(input *GetIdentityMailF // // See the AWS API reference guide for Amazon Simple Email Service's // API operation GetIdentityMailFromDomainAttributes for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetIdentityMailFromDomainAttributes func (c *SES) GetIdentityMailFromDomainAttributes(input *GetIdentityMailFromDomainAttributesInput) (*GetIdentityMailFromDomainAttributesOutput, error) { req, out := c.GetIdentityMailFromDomainAttributesRequest(input) err := req.Send() @@ -1110,6 +1509,7 @@ const opGetIdentityNotificationAttributes = "GetIdentityNotificationAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetIdentityNotificationAttributes func (c *SES) GetIdentityNotificationAttributesRequest(input *GetIdentityNotificationAttributesInput) (req *request.Request, output *GetIdentityNotificationAttributesOutput) { op := &request.Operation{ Name: opGetIdentityNotificationAttributes, @@ -1121,9 +1521,8 @@ func (c *SES) GetIdentityNotificationAttributesRequest(input *GetIdentityNotific input = &GetIdentityNotificationAttributesInput{} } - req = c.newRequest(op, input, output) output = &GetIdentityNotificationAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1135,8 +1534,8 @@ func (c *SES) GetIdentityNotificationAttributesRequest(input *GetIdentityNotific // This action is throttled at one request per second and can only get notification // attributes for up to 100 identities at a time. // -// For more information about using notifications with Amazon SES, see the -// Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html). +// For more information about using notifications with Amazon SES, see the Amazon +// SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1144,6 +1543,7 @@ func (c *SES) GetIdentityNotificationAttributesRequest(input *GetIdentityNotific // // See the AWS API reference guide for Amazon Simple Email Service's // API operation GetIdentityNotificationAttributes for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetIdentityNotificationAttributes func (c *SES) GetIdentityNotificationAttributes(input *GetIdentityNotificationAttributesInput) (*GetIdentityNotificationAttributesOutput, error) { req, out := c.GetIdentityNotificationAttributesRequest(input) err := req.Send() @@ -1176,6 +1576,7 @@ const opGetIdentityPolicies = "GetIdentityPolicies" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetIdentityPolicies func (c *SES) GetIdentityPoliciesRequest(input *GetIdentityPoliciesInput) (req *request.Request, output *GetIdentityPoliciesOutput) { op := &request.Operation{ Name: opGetIdentityPolicies, @@ -1187,9 +1588,8 @@ func (c *SES) GetIdentityPoliciesRequest(input *GetIdentityPoliciesInput) (req * input = &GetIdentityPoliciesInput{} } - req = c.newRequest(op, input, output) output = &GetIdentityPoliciesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1200,10 +1600,10 @@ func (c *SES) GetIdentityPoliciesRequest(input *GetIdentityPoliciesInput) (req * // names to policy contents. You can retrieve a maximum of 20 policies at a // time. // -// This API is for the identity owner only. If you have not verified the identity, +// This API is for the identity owner only. If you have not verified the identity, // this API will return an error. // -// Sending authorization is a feature that enables an identity owner to authorize +// Sending authorization is a feature that enables an identity owner to authorize // other senders to use its identities. For information about using sending // authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). // @@ -1215,6 +1615,7 @@ func (c *SES) GetIdentityPoliciesRequest(input *GetIdentityPoliciesInput) (req * // // See the AWS API reference guide for Amazon Simple Email Service's // API operation GetIdentityPolicies for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetIdentityPolicies func (c *SES) GetIdentityPolicies(input *GetIdentityPoliciesInput) (*GetIdentityPoliciesOutput, error) { req, out := c.GetIdentityPoliciesRequest(input) err := req.Send() @@ -1247,6 +1648,7 @@ const opGetIdentityVerificationAttributes = "GetIdentityVerificationAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetIdentityVerificationAttributes func (c *SES) GetIdentityVerificationAttributesRequest(input *GetIdentityVerificationAttributesInput) (req *request.Request, output *GetIdentityVerificationAttributesOutput) { op := &request.Operation{ Name: opGetIdentityVerificationAttributes, @@ -1258,9 +1660,8 @@ func (c *SES) GetIdentityVerificationAttributesRequest(input *GetIdentityVerific input = &GetIdentityVerificationAttributesInput{} } - req = c.newRequest(op, input, output) output = &GetIdentityVerificationAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1279,6 +1680,7 @@ func (c *SES) GetIdentityVerificationAttributesRequest(input *GetIdentityVerific // // See the AWS API reference guide for Amazon Simple Email Service's // API operation GetIdentityVerificationAttributes for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetIdentityVerificationAttributes func (c *SES) GetIdentityVerificationAttributes(input *GetIdentityVerificationAttributesInput) (*GetIdentityVerificationAttributesOutput, error) { req, out := c.GetIdentityVerificationAttributesRequest(input) err := req.Send() @@ -1311,6 +1713,7 @@ const opGetSendQuota = "GetSendQuota" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetSendQuota func (c *SES) GetSendQuotaRequest(input *GetSendQuotaInput) (req *request.Request, output *GetSendQuotaOutput) { op := &request.Operation{ Name: opGetSendQuota, @@ -1322,9 +1725,8 @@ func (c *SES) GetSendQuotaRequest(input *GetSendQuotaInput) (req *request.Reques input = &GetSendQuotaInput{} } - req = c.newRequest(op, input, output) output = &GetSendQuotaOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1340,6 +1742,7 @@ func (c *SES) GetSendQuotaRequest(input *GetSendQuotaInput) (req *request.Reques // // See the AWS API reference guide for Amazon Simple Email Service's // API operation GetSendQuota for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetSendQuota func (c *SES) GetSendQuota(input *GetSendQuotaInput) (*GetSendQuotaOutput, error) { req, out := c.GetSendQuotaRequest(input) err := req.Send() @@ -1372,6 +1775,7 @@ const opGetSendStatistics = "GetSendStatistics" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetSendStatistics func (c *SES) GetSendStatisticsRequest(input *GetSendStatisticsInput) (req *request.Request, output *GetSendStatisticsOutput) { op := &request.Operation{ Name: opGetSendStatistics, @@ -1383,9 +1787,8 @@ func (c *SES) GetSendStatisticsRequest(input *GetSendStatisticsInput) (req *requ input = &GetSendStatisticsInput{} } - req = c.newRequest(op, input, output) output = &GetSendStatisticsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1404,12 +1807,79 @@ func (c *SES) GetSendStatisticsRequest(input *GetSendStatisticsInput) (req *requ // // See the AWS API reference guide for Amazon Simple Email Service's // API operation GetSendStatistics for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetSendStatistics func (c *SES) GetSendStatistics(input *GetSendStatisticsInput) (*GetSendStatisticsOutput, error) { req, out := c.GetSendStatisticsRequest(input) err := req.Send() return out, err } +const opListConfigurationSets = "ListConfigurationSets" + +// ListConfigurationSetsRequest generates a "aws/request.Request" representing the +// client's request for the ListConfigurationSets operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListConfigurationSets for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListConfigurationSets method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListConfigurationSetsRequest method. +// req, resp := client.ListConfigurationSetsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListConfigurationSets +func (c *SES) ListConfigurationSetsRequest(input *ListConfigurationSetsInput) (req *request.Request, output *ListConfigurationSetsOutput) { + op := &request.Operation{ + Name: opListConfigurationSets, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListConfigurationSetsInput{} + } + + output = &ListConfigurationSetsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListConfigurationSets API operation for Amazon Simple Email Service. +// +// Lists the configuration sets associated with your AWS account. +// +// Configuration sets enable you to publish email sending events. For information +// about using configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// +// This action is throttled at one request per second and can return up to 50 +// configuration sets at a time. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation ListConfigurationSets for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListConfigurationSets +func (c *SES) ListConfigurationSets(input *ListConfigurationSetsInput) (*ListConfigurationSetsOutput, error) { + req, out := c.ListConfigurationSetsRequest(input) + err := req.Send() + return out, err +} + const opListIdentities = "ListIdentities" // ListIdentitiesRequest generates a "aws/request.Request" representing the @@ -1436,6 +1906,7 @@ const opListIdentities = "ListIdentities" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListIdentities func (c *SES) ListIdentitiesRequest(input *ListIdentitiesInput) (req *request.Request, output *ListIdentitiesOutput) { op := &request.Operation{ Name: opListIdentities, @@ -1453,9 +1924,8 @@ func (c *SES) ListIdentitiesRequest(input *ListIdentitiesInput) (req *request.Re input = &ListIdentitiesInput{} } - req = c.newRequest(op, input, output) output = &ListIdentitiesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1472,6 +1942,7 @@ func (c *SES) ListIdentitiesRequest(input *ListIdentitiesInput) (req *request.Re // // See the AWS API reference guide for Amazon Simple Email Service's // API operation ListIdentities for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListIdentities func (c *SES) ListIdentities(input *ListIdentitiesInput) (*ListIdentitiesOutput, error) { req, out := c.ListIdentitiesRequest(input) err := req.Send() @@ -1529,6 +2000,7 @@ const opListIdentityPolicies = "ListIdentityPolicies" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListIdentityPolicies func (c *SES) ListIdentityPoliciesRequest(input *ListIdentityPoliciesInput) (req *request.Request, output *ListIdentityPoliciesOutput) { op := &request.Operation{ Name: opListIdentityPolicies, @@ -1540,9 +2012,8 @@ func (c *SES) ListIdentityPoliciesRequest(input *ListIdentityPoliciesInput) (req input = &ListIdentityPoliciesInput{} } - req = c.newRequest(op, input, output) output = &ListIdentityPoliciesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1552,10 +2023,10 @@ func (c *SES) ListIdentityPoliciesRequest(input *ListIdentityPoliciesInput) (req // given identity (an email address or a domain). This API returns only a list. // If you want the actual policy content, you can use GetIdentityPolicies. // -// This API is for the identity owner only. If you have not verified the identity, +// This API is for the identity owner only. If you have not verified the identity, // this API will return an error. // -// Sending authorization is a feature that enables an identity owner to authorize +// Sending authorization is a feature that enables an identity owner to authorize // other senders to use its identities. For information about using sending // authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). // @@ -1567,6 +2038,7 @@ func (c *SES) ListIdentityPoliciesRequest(input *ListIdentityPoliciesInput) (req // // See the AWS API reference guide for Amazon Simple Email Service's // API operation ListIdentityPolicies for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListIdentityPolicies func (c *SES) ListIdentityPolicies(input *ListIdentityPoliciesInput) (*ListIdentityPoliciesOutput, error) { req, out := c.ListIdentityPoliciesRequest(input) err := req.Send() @@ -1599,6 +2071,7 @@ const opListReceiptFilters = "ListReceiptFilters" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListReceiptFilters func (c *SES) ListReceiptFiltersRequest(input *ListReceiptFiltersInput) (req *request.Request, output *ListReceiptFiltersOutput) { op := &request.Operation{ Name: opListReceiptFilters, @@ -1610,9 +2083,8 @@ func (c *SES) ListReceiptFiltersRequest(input *ListReceiptFiltersInput) (req *re input = &ListReceiptFiltersInput{} } - req = c.newRequest(op, input, output) output = &ListReceiptFiltersOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1631,6 +2103,7 @@ func (c *SES) ListReceiptFiltersRequest(input *ListReceiptFiltersInput) (req *re // // See the AWS API reference guide for Amazon Simple Email Service's // API operation ListReceiptFilters for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListReceiptFilters func (c *SES) ListReceiptFilters(input *ListReceiptFiltersInput) (*ListReceiptFiltersOutput, error) { req, out := c.ListReceiptFiltersRequest(input) err := req.Send() @@ -1663,6 +2136,7 @@ const opListReceiptRuleSets = "ListReceiptRuleSets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListReceiptRuleSets func (c *SES) ListReceiptRuleSetsRequest(input *ListReceiptRuleSetsInput) (req *request.Request, output *ListReceiptRuleSetsOutput) { op := &request.Operation{ Name: opListReceiptRuleSets, @@ -1674,9 +2148,8 @@ func (c *SES) ListReceiptRuleSetsRequest(input *ListReceiptRuleSetsInput) (req * input = &ListReceiptRuleSetsInput{} } - req = c.newRequest(op, input, output) output = &ListReceiptRuleSetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1698,6 +2171,7 @@ func (c *SES) ListReceiptRuleSetsRequest(input *ListReceiptRuleSetsInput) (req * // // See the AWS API reference guide for Amazon Simple Email Service's // API operation ListReceiptRuleSets for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListReceiptRuleSets func (c *SES) ListReceiptRuleSets(input *ListReceiptRuleSetsInput) (*ListReceiptRuleSetsOutput, error) { req, out := c.ListReceiptRuleSetsRequest(input) err := req.Send() @@ -1730,6 +2204,7 @@ const opListVerifiedEmailAddresses = "ListVerifiedEmailAddresses" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListVerifiedEmailAddresses func (c *SES) ListVerifiedEmailAddressesRequest(input *ListVerifiedEmailAddressesInput) (req *request.Request, output *ListVerifiedEmailAddressesOutput) { op := &request.Operation{ Name: opListVerifiedEmailAddresses, @@ -1741,9 +2216,8 @@ func (c *SES) ListVerifiedEmailAddressesRequest(input *ListVerifiedEmailAddresse input = &ListVerifiedEmailAddressesInput{} } - req = c.newRequest(op, input, output) output = &ListVerifiedEmailAddressesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1751,10 +2225,10 @@ func (c *SES) ListVerifiedEmailAddressesRequest(input *ListVerifiedEmailAddresse // // Returns a list containing all of the email addresses that have been verified. // -// The ListVerifiedEmailAddresses action is deprecated as of the May 15, 2012 +// The ListVerifiedEmailAddresses action is deprecated as of the May 15, 2012 // release of Domain Verification. The ListIdentities action is now preferred. // -// This action is throttled at one request per second. +// This action is throttled at one request per second. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1762,6 +2236,7 @@ func (c *SES) ListVerifiedEmailAddressesRequest(input *ListVerifiedEmailAddresse // // See the AWS API reference guide for Amazon Simple Email Service's // API operation ListVerifiedEmailAddresses for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListVerifiedEmailAddresses func (c *SES) ListVerifiedEmailAddresses(input *ListVerifiedEmailAddressesInput) (*ListVerifiedEmailAddressesOutput, error) { req, out := c.ListVerifiedEmailAddressesRequest(input) err := req.Send() @@ -1794,6 +2269,7 @@ const opPutIdentityPolicy = "PutIdentityPolicy" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/PutIdentityPolicy func (c *SES) PutIdentityPolicyRequest(input *PutIdentityPolicyInput) (req *request.Request, output *PutIdentityPolicyOutput) { op := &request.Operation{ Name: opPutIdentityPolicy, @@ -1805,9 +2281,8 @@ func (c *SES) PutIdentityPolicyRequest(input *PutIdentityPolicyInput) (req *requ input = &PutIdentityPolicyInput{} } - req = c.newRequest(op, input, output) output = &PutIdentityPolicyOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1816,10 +2291,10 @@ func (c *SES) PutIdentityPolicyRequest(input *PutIdentityPolicyInput) (req *requ // Adds or updates a sending authorization policy for the specified identity // (an email address or a domain). // -// This API is for the identity owner only. If you have not verified the identity, +// This API is for the identity owner only. If you have not verified the identity, // this API will return an error. // -// Sending authorization is a feature that enables an identity owner to authorize +// Sending authorization is a feature that enables an identity owner to authorize // other senders to use its identities. For information about using sending // authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). // @@ -1833,10 +2308,11 @@ func (c *SES) PutIdentityPolicyRequest(input *PutIdentityPolicyInput) (req *requ // API operation PutIdentityPolicy for usage and error information. // // Returned Error Codes: -// * InvalidPolicy +// * ErrCodeInvalidPolicyException "InvalidPolicy" // Indicates that the provided policy is invalid. Check the error stack for // more information about what caused the error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/PutIdentityPolicy func (c *SES) PutIdentityPolicy(input *PutIdentityPolicyInput) (*PutIdentityPolicyOutput, error) { req, out := c.PutIdentityPolicyRequest(input) err := req.Send() @@ -1869,6 +2345,7 @@ const opReorderReceiptRuleSet = "ReorderReceiptRuleSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ReorderReceiptRuleSet func (c *SES) ReorderReceiptRuleSetRequest(input *ReorderReceiptRuleSetInput) (req *request.Request, output *ReorderReceiptRuleSetOutput) { op := &request.Operation{ Name: opReorderReceiptRuleSet, @@ -1880,9 +2357,8 @@ func (c *SES) ReorderReceiptRuleSetRequest(input *ReorderReceiptRuleSetInput) (r input = &ReorderReceiptRuleSetInput{} } - req = c.newRequest(op, input, output) output = &ReorderReceiptRuleSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1890,11 +2366,11 @@ func (c *SES) ReorderReceiptRuleSetRequest(input *ReorderReceiptRuleSetInput) (r // // Reorders the receipt rules within a receipt rule set. // -// All of the rules in the rule set must be represented in this request. That +// All of the rules in the rule set must be represented in this request. That // is, this API will return an error if the reorder request doesn't explicitly // position all of the rules. // -// For information about managing receipt rule sets, see the Amazon SES Developer +// For information about managing receipt rule sets, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html). // // This action is throttled at one request per second. @@ -1907,12 +2383,13 @@ func (c *SES) ReorderReceiptRuleSetRequest(input *ReorderReceiptRuleSetInput) (r // API operation ReorderReceiptRuleSet for usage and error information. // // Returned Error Codes: -// * RuleSetDoesNotExist +// * ErrCodeRuleSetDoesNotExistException "RuleSetDoesNotExist" // Indicates that the provided receipt rule set does not exist. // -// * RuleDoesNotExist +// * ErrCodeRuleDoesNotExistException "RuleDoesNotExist" // Indicates that the provided receipt rule does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ReorderReceiptRuleSet func (c *SES) ReorderReceiptRuleSet(input *ReorderReceiptRuleSetInput) (*ReorderReceiptRuleSetOutput, error) { req, out := c.ReorderReceiptRuleSetRequest(input) err := req.Send() @@ -1945,6 +2422,7 @@ const opSendBounce = "SendBounce" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SendBounce func (c *SES) SendBounceRequest(input *SendBounceInput) (req *request.Request, output *SendBounceOutput) { op := &request.Operation{ Name: opSendBounce, @@ -1956,9 +2434,8 @@ func (c *SES) SendBounceRequest(input *SendBounceInput) (req *request.Request, o input = &SendBounceInput{} } - req = c.newRequest(op, input, output) output = &SendBounceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1968,10 +2445,10 @@ func (c *SES) SendBounceRequest(input *SendBounceInput) (req *request.Request, o // through Amazon SES. You can only use this API on an email up to 24 hours // after you receive it. // -// You cannot use this API to send generic bounces for mail that was not received +// You cannot use this API to send generic bounces for mail that was not received // by Amazon SES. // -// For information about receiving email through Amazon SES, see the Amazon +// For information about receiving email through Amazon SES, see the Amazon // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html). // // This action is throttled at one request per second. @@ -1984,10 +2461,11 @@ func (c *SES) SendBounceRequest(input *SendBounceInput) (req *request.Request, o // API operation SendBounce for usage and error information. // // Returned Error Codes: -// * MessageRejected +// * ErrCodeMessageRejected "MessageRejected" // Indicates that the action failed, and the message could not be sent. Check // the error stack for more information about what caused the error. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SendBounce func (c *SES) SendBounce(input *SendBounceInput) (*SendBounceOutput, error) { req, out := c.SendBounceRequest(input) err := req.Send() @@ -2020,6 +2498,7 @@ const opSendEmail = "SendEmail" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SendEmail func (c *SES) SendEmailRequest(input *SendEmailInput) (req *request.Request, output *SendEmailOutput) { op := &request.Operation{ Name: opSendEmail, @@ -2031,9 +2510,8 @@ func (c *SES) SendEmailRequest(input *SendEmailInput) (req *request.Request, out input = &SendEmailInput{} } - req = c.newRequest(op, input, output) output = &SendEmailOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2044,25 +2522,26 @@ func (c *SES) SendEmailRequest(input *SendEmailInput) (req *request.Request, out // // There are several important points to know about SendEmail: // -// You can only send email from verified email addresses and domains; otherwise, -// you will get an "Email address not verified" error. If your account is still -// in the Amazon SES sandbox, you must also verify every recipient email address -// except for the recipients provided by the Amazon SES mailbox simulator. For -// more information, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html). +// * You can only send email from verified email addresses and domains; otherwise, +// you will get an "Email address not verified" error. If your account is +// still in the Amazon SES sandbox, you must also verify every recipient +// email address except for the recipients provided by the Amazon SES mailbox +// simulator. For more information, go to the Amazon SES Developer Guide +// (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html). // -// The total size of the message cannot exceed 10 MB. This includes any attachments -// that are part of the message. +// * The total size of the message cannot exceed 10 MB. This includes any +// attachments that are part of the message. // -// Amazon SES has a limit on the total number of recipients per message. -// The combined number of To:, CC: and BCC: email addresses cannot exceed 50. -// If you need to send an email message to a larger audience, you can divide -// your recipient list into groups of 50 or fewer, and then call Amazon SES -// repeatedly to send the message to each group. +// * Amazon SES has a limit on the total number of recipients per message. +// The combined number of To:, CC: and BCC: email addresses cannot exceed +// 50. If you need to send an email message to a larger audience, you can +// divide your recipient list into groups of 50 or fewer, and then call Amazon +// SES repeatedly to send the message to each group. // -// For every message that you send, the total number of recipients (To:, -// CC: and BCC:) is counted against your sending quota - the maximum number -// of emails you can send in a 24-hour period. For information about your sending -// quota, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/manage-sending-limits.html). +// * For every message that you send, the total number of recipients (To:, +// CC: and BCC:) is counted against your sending quota - the maximum number +// of emails you can send in a 24-hour period. For information about your +// sending quota, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/manage-sending-limits.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2072,16 +2551,20 @@ func (c *SES) SendEmailRequest(input *SendEmailInput) (req *request.Request, out // API operation SendEmail for usage and error information. // // Returned Error Codes: -// * MessageRejected +// * ErrCodeMessageRejected "MessageRejected" // Indicates that the action failed, and the message could not be sent. Check // the error stack for more information about what caused the error. // -// * MailFromDomainNotVerifiedException +// * ErrCodeMailFromDomainNotVerifiedException "MailFromDomainNotVerifiedException" // Indicates that the message could not be sent because Amazon SES could not // read the MX record required to use the specified MAIL FROM domain. For information // about editing the custom MAIL FROM domain settings for an identity, see the // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from-edit.html). // +// * ErrCodeConfigurationSetDoesNotExistException "ConfigurationSetDoesNotExist" +// Indicates that the configuration set does not exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SendEmail func (c *SES) SendEmail(input *SendEmailInput) (*SendEmailOutput, error) { req, out := c.SendEmailRequest(input) err := req.Send() @@ -2114,6 +2597,7 @@ const opSendRawEmail = "SendRawEmail" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SendRawEmail func (c *SES) SendRawEmailRequest(input *SendRawEmailInput) (req *request.Request, output *SendRawEmailOutput) { op := &request.Operation{ Name: opSendRawEmail, @@ -2125,9 +2609,8 @@ func (c *SES) SendRawEmailRequest(input *SendRawEmailInput) (req *request.Reques input = &SendRawEmailInput{} } - req = c.newRequest(op, input, output) output = &SendRawEmailOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2140,55 +2623,56 @@ func (c *SES) SendRawEmailRequest(input *SendRawEmailInput) (req *request.Reques // // There are several important points to know about SendRawEmail: // -// You can only send email from verified email addresses and domains; otherwise, -// you will get an "Email address not verified" error. If your account is still -// in the Amazon SES sandbox, you must also verify every recipient email address -// except for the recipients provided by the Amazon SES mailbox simulator. For -// more information, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html). +// * You can only send email from verified email addresses and domains; otherwise, +// you will get an "Email address not verified" error. If your account is +// still in the Amazon SES sandbox, you must also verify every recipient +// email address except for the recipients provided by the Amazon SES mailbox +// simulator. For more information, go to the Amazon SES Developer Guide +// (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html). // -// The total size of the message cannot exceed 10 MB. This includes any attachments -// that are part of the message. +// * The total size of the message cannot exceed 10 MB. This includes any +// attachments that are part of the message. // -// Amazon SES has a limit on the total number of recipients per message. -// The combined number of To:, CC: and BCC: email addresses cannot exceed 50. -// If you need to send an email message to a larger audience, you can divide -// your recipient list into groups of 50 or fewer, and then call Amazon SES -// repeatedly to send the message to each group. +// * Amazon SES has a limit on the total number of recipients per message. +// The combined number of To:, CC: and BCC: email addresses cannot exceed +// 50. If you need to send an email message to a larger audience, you can +// divide your recipient list into groups of 50 or fewer, and then call Amazon +// SES repeatedly to send the message to each group. // -// The To:, CC:, and BCC: headers in the raw message can contain a group -// list. Note that each recipient in a group list counts towards the 50-recipient -// limit. +// * The To:, CC:, and BCC: headers in the raw message can contain a group +// list. Note that each recipient in a group list counts towards the 50-recipient +// limit. // -// Amazon SES overrides any Message-ID and Date headers you provide. +// * Amazon SES overrides any Message-ID and Date headers you provide. // -// For every message that you send, the total number of recipients (To:, -// CC: and BCC:) is counted against your sending quota - the maximum number -// of emails you can send in a 24-hour period. For information about your sending -// quota, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/manage-sending-limits.html). +// * For every message that you send, the total number of recipients (To:, +// CC: and BCC:) is counted against your sending quota - the maximum number +// of emails you can send in a 24-hour period. For information about your +// sending quota, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/manage-sending-limits.html). // -// If you are using sending authorization to send on behalf of another user, -// SendRawEmail enables you to specify the cross-account identity for the email's -// "Source," "From," and "Return-Path" parameters in one of two ways: you can -// pass optional parameters SourceArn, FromArn, and/or ReturnPathArn to the -// API, or you can include the following X-headers in the header of your raw -// email: +// * If you are using sending authorization to send on behalf of another +// user, SendRawEmail enables you to specify the cross-account identity for +// the email's "Source," "From," and "Return-Path" parameters in one of two +// ways: you can pass optional parameters SourceArn, FromArn, and/or ReturnPathArn +// to the API, or you can include the following X-headers in the header of +// your raw email: // -// X-SES-SOURCE-ARN +// X-SES-SOURCE-ARN // -// X-SES-FROM-ARN +// X-SES-FROM-ARN // -// X-SES-RETURN-PATH-ARN +// X-SES-RETURN-PATH-ARN // -// Do not include these X-headers in the DKIM signature, because they are -// removed by Amazon SES before sending the email. +// Do not include these X-headers in the DKIM signature, because they are removed +// by Amazon SES before sending the email. // -// For the most common sending authorization use case, we recommend that you -// specify the SourceIdentityArn and do not specify either the FromIdentityArn -// or ReturnPathIdentityArn. (The same note applies to the corresponding X-headers.) -// If you only specify the SourceIdentityArn, Amazon SES will simply set the -// "From" address and the "Return Path" address to the identity specified in -// SourceIdentityArn. For more information about sending authorization, see -// the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). +// For the most common sending authorization use case, we recommend that you +// specify the SourceIdentityArn and do not specify either the FromIdentityArn +// or ReturnPathIdentityArn. (The same note applies to the corresponding +// X-headers.) If you only specify the SourceIdentityArn, Amazon SES will +// simply set the "From" address and the "Return Path" address to the identity +// specified in SourceIdentityArn. For more information about sending authorization, +// see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2198,16 +2682,20 @@ func (c *SES) SendRawEmailRequest(input *SendRawEmailInput) (req *request.Reques // API operation SendRawEmail for usage and error information. // // Returned Error Codes: -// * MessageRejected +// * ErrCodeMessageRejected "MessageRejected" // Indicates that the action failed, and the message could not be sent. Check // the error stack for more information about what caused the error. // -// * MailFromDomainNotVerifiedException +// * ErrCodeMailFromDomainNotVerifiedException "MailFromDomainNotVerifiedException" // Indicates that the message could not be sent because Amazon SES could not // read the MX record required to use the specified MAIL FROM domain. For information // about editing the custom MAIL FROM domain settings for an identity, see the // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from-edit.html). // +// * ErrCodeConfigurationSetDoesNotExistException "ConfigurationSetDoesNotExist" +// Indicates that the configuration set does not exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SendRawEmail func (c *SES) SendRawEmail(input *SendRawEmailInput) (*SendRawEmailOutput, error) { req, out := c.SendRawEmailRequest(input) err := req.Send() @@ -2240,6 +2728,7 @@ const opSetActiveReceiptRuleSet = "SetActiveReceiptRuleSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetActiveReceiptRuleSet func (c *SES) SetActiveReceiptRuleSetRequest(input *SetActiveReceiptRuleSetInput) (req *request.Request, output *SetActiveReceiptRuleSetOutput) { op := &request.Operation{ Name: opSetActiveReceiptRuleSet, @@ -2251,9 +2740,8 @@ func (c *SES) SetActiveReceiptRuleSetRequest(input *SetActiveReceiptRuleSetInput input = &SetActiveReceiptRuleSetInput{} } - req = c.newRequest(op, input, output) output = &SetActiveReceiptRuleSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2261,10 +2749,10 @@ func (c *SES) SetActiveReceiptRuleSetRequest(input *SetActiveReceiptRuleSetInput // // Sets the specified receipt rule set as the active receipt rule set. // -// To disable your email-receiving through Amazon SES completely, you can -// call this API with RuleSetName set to null. +// To disable your email-receiving through Amazon SES completely, you can call +// this API with RuleSetName set to null. // -// For information about managing receipt rule sets, see the Amazon SES Developer +// For information about managing receipt rule sets, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html). // // This action is throttled at one request per second. @@ -2277,9 +2765,10 @@ func (c *SES) SetActiveReceiptRuleSetRequest(input *SetActiveReceiptRuleSetInput // API operation SetActiveReceiptRuleSet for usage and error information. // // Returned Error Codes: -// * RuleSetDoesNotExist +// * ErrCodeRuleSetDoesNotExistException "RuleSetDoesNotExist" // Indicates that the provided receipt rule set does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetActiveReceiptRuleSet func (c *SES) SetActiveReceiptRuleSet(input *SetActiveReceiptRuleSetInput) (*SetActiveReceiptRuleSetOutput, error) { req, out := c.SetActiveReceiptRuleSetRequest(input) err := req.Send() @@ -2312,6 +2801,7 @@ const opSetIdentityDkimEnabled = "SetIdentityDkimEnabled" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityDkimEnabled func (c *SES) SetIdentityDkimEnabledRequest(input *SetIdentityDkimEnabledInput) (req *request.Request, output *SetIdentityDkimEnabledOutput) { op := &request.Operation{ Name: opSetIdentityDkimEnabled, @@ -2323,9 +2813,8 @@ func (c *SES) SetIdentityDkimEnabledRequest(input *SetIdentityDkimEnabledInput) input = &SetIdentityDkimEnabledInput{} } - req = c.newRequest(op, input, output) output = &SetIdentityDkimEnabledOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2333,16 +2822,16 @@ func (c *SES) SetIdentityDkimEnabledRequest(input *SetIdentityDkimEnabledInput) // // Enables or disables Easy DKIM signing of email sent from an identity: // -// If Easy DKIM signing is enabled for a domain name identity (e.g., example.com), -// then Amazon SES will DKIM-sign all email sent by addresses under that domain -// name (e.g., user@example.com). +// * If Easy DKIM signing is enabled for a domain name identity (e.g., example.com), +// then Amazon SES will DKIM-sign all email sent by addresses under that +// domain name (e.g., user@example.com). // -// If Easy DKIM signing is enabled for an email address, then Amazon SES -// will DKIM-sign all email sent by that email address. +// * If Easy DKIM signing is enabled for an email address, then Amazon SES +// will DKIM-sign all email sent by that email address. // -// For email addresses (e.g., user@example.com), you can only enable Easy -// DKIM signing if the corresponding domain (e.g., example.com) has been set -// up for Easy DKIM using the AWS Console or the VerifyDomainDkim action. +// For email addresses (e.g., user@example.com), you can only enable Easy DKIM +// signing if the corresponding domain (e.g., example.com) has been set up for +// Easy DKIM using the AWS Console or the VerifyDomainDkim action. // // This action is throttled at one request per second. // @@ -2355,6 +2844,7 @@ func (c *SES) SetIdentityDkimEnabledRequest(input *SetIdentityDkimEnabledInput) // // See the AWS API reference guide for Amazon Simple Email Service's // API operation SetIdentityDkimEnabled for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityDkimEnabled func (c *SES) SetIdentityDkimEnabled(input *SetIdentityDkimEnabledInput) (*SetIdentityDkimEnabledOutput, error) { req, out := c.SetIdentityDkimEnabledRequest(input) err := req.Send() @@ -2387,6 +2877,7 @@ const opSetIdentityFeedbackForwardingEnabled = "SetIdentityFeedbackForwardingEna // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityFeedbackForwardingEnabled func (c *SES) SetIdentityFeedbackForwardingEnabledRequest(input *SetIdentityFeedbackForwardingEnabledInput) (req *request.Request, output *SetIdentityFeedbackForwardingEnabledOutput) { op := &request.Operation{ Name: opSetIdentityFeedbackForwardingEnabled, @@ -2398,9 +2889,8 @@ func (c *SES) SetIdentityFeedbackForwardingEnabledRequest(input *SetIdentityFeed input = &SetIdentityFeedbackForwardingEnabledInput{} } - req = c.newRequest(op, input, output) output = &SetIdentityFeedbackForwardingEnabledOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2411,13 +2901,13 @@ func (c *SES) SetIdentityFeedbackForwardingEnabledRequest(input *SetIdentityFeed // forwarding can only be disabled when Amazon Simple Notification Service (Amazon // SNS) topics are specified for both bounces and complaints. // -// Feedback forwarding does not apply to delivery notifications. Delivery -// notifications are only available through Amazon SNS. +// Feedback forwarding does not apply to delivery notifications. Delivery notifications +// are only available through Amazon SNS. // -// This action is throttled at one request per second. +// This action is throttled at one request per second. // -// For more information about using notifications with Amazon SES, see the -// Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html). +// For more information about using notifications with Amazon SES, see the Amazon +// SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2425,6 +2915,7 @@ func (c *SES) SetIdentityFeedbackForwardingEnabledRequest(input *SetIdentityFeed // // See the AWS API reference guide for Amazon Simple Email Service's // API operation SetIdentityFeedbackForwardingEnabled for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityFeedbackForwardingEnabled func (c *SES) SetIdentityFeedbackForwardingEnabled(input *SetIdentityFeedbackForwardingEnabledInput) (*SetIdentityFeedbackForwardingEnabledOutput, error) { req, out := c.SetIdentityFeedbackForwardingEnabledRequest(input) err := req.Send() @@ -2457,6 +2948,7 @@ const opSetIdentityHeadersInNotificationsEnabled = "SetIdentityHeadersInNotifica // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityHeadersInNotificationsEnabled func (c *SES) SetIdentityHeadersInNotificationsEnabledRequest(input *SetIdentityHeadersInNotificationsEnabledInput) (req *request.Request, output *SetIdentityHeadersInNotificationsEnabledOutput) { op := &request.Operation{ Name: opSetIdentityHeadersInNotificationsEnabled, @@ -2468,9 +2960,8 @@ func (c *SES) SetIdentityHeadersInNotificationsEnabledRequest(input *SetIdentity input = &SetIdentityHeadersInNotificationsEnabledInput{} } - req = c.newRequest(op, input, output) output = &SetIdentityHeadersInNotificationsEnabledOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2482,8 +2973,8 @@ func (c *SES) SetIdentityHeadersInNotificationsEnabledRequest(input *SetIdentity // // This action is throttled at one request per second. // -// For more information about using notifications with Amazon SES, see the -// Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html). +// For more information about using notifications with Amazon SES, see the Amazon +// SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2491,6 +2982,7 @@ func (c *SES) SetIdentityHeadersInNotificationsEnabledRequest(input *SetIdentity // // See the AWS API reference guide for Amazon Simple Email Service's // API operation SetIdentityHeadersInNotificationsEnabled for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityHeadersInNotificationsEnabled func (c *SES) SetIdentityHeadersInNotificationsEnabled(input *SetIdentityHeadersInNotificationsEnabledInput) (*SetIdentityHeadersInNotificationsEnabledOutput, error) { req, out := c.SetIdentityHeadersInNotificationsEnabledRequest(input) err := req.Send() @@ -2523,6 +3015,7 @@ const opSetIdentityMailFromDomain = "SetIdentityMailFromDomain" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityMailFromDomain func (c *SES) SetIdentityMailFromDomainRequest(input *SetIdentityMailFromDomainInput) (req *request.Request, output *SetIdentityMailFromDomainOutput) { op := &request.Operation{ Name: opSetIdentityMailFromDomain, @@ -2534,9 +3027,8 @@ func (c *SES) SetIdentityMailFromDomainRequest(input *SetIdentityMailFromDomainI input = &SetIdentityMailFromDomainInput{} } - req = c.newRequest(op, input, output) output = &SetIdentityMailFromDomainOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2545,12 +3037,12 @@ func (c *SES) SetIdentityMailFromDomainRequest(input *SetIdentityMailFromDomainI // Enables or disables the custom MAIL FROM domain setup for a verified identity // (an email address or a domain). // -// To send emails using the specified MAIL FROM domain, you must add an MX -// record to your MAIL FROM domain's DNS settings. If you want your emails to -// pass Sender Policy Framework (SPF) checks, you must also add or update an -// SPF record. For more information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from-set.html). +// To send emails using the specified MAIL FROM domain, you must add an MX record +// to your MAIL FROM domain's DNS settings. If you want your emails to pass +// Sender Policy Framework (SPF) checks, you must also add or update an SPF +// record. For more information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from-set.html). // -// This action is throttled at one request per second. +// This action is throttled at one request per second. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2558,6 +3050,7 @@ func (c *SES) SetIdentityMailFromDomainRequest(input *SetIdentityMailFromDomainI // // See the AWS API reference guide for Amazon Simple Email Service's // API operation SetIdentityMailFromDomain for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityMailFromDomain func (c *SES) SetIdentityMailFromDomain(input *SetIdentityMailFromDomainInput) (*SetIdentityMailFromDomainOutput, error) { req, out := c.SetIdentityMailFromDomainRequest(input) err := req.Send() @@ -2590,6 +3083,7 @@ const opSetIdentityNotificationTopic = "SetIdentityNotificationTopic" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityNotificationTopic func (c *SES) SetIdentityNotificationTopicRequest(input *SetIdentityNotificationTopicInput) (req *request.Request, output *SetIdentityNotificationTopicOutput) { op := &request.Operation{ Name: opSetIdentityNotificationTopic, @@ -2601,9 +3095,8 @@ func (c *SES) SetIdentityNotificationTopicRequest(input *SetIdentityNotification input = &SetIdentityNotificationTopicInput{} } - req = c.newRequest(op, input, output) output = &SetIdentityNotificationTopicOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2614,10 +3107,10 @@ func (c *SES) SetIdentityNotificationTopicRequest(input *SetIdentityNotification // bounce, complaint, and/or delivery notifications for emails sent with that // identity as the Source. // -// Unless feedback forwarding is enabled, you must specify Amazon SNS topics +// Unless feedback forwarding is enabled, you must specify Amazon SNS topics // for bounce and complaint notifications. For more information, see SetIdentityFeedbackForwardingEnabled. // -// This action is throttled at one request per second. +// This action is throttled at one request per second. // // For more information about feedback notification, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html). @@ -2628,6 +3121,7 @@ func (c *SES) SetIdentityNotificationTopicRequest(input *SetIdentityNotification // // See the AWS API reference guide for Amazon Simple Email Service's // API operation SetIdentityNotificationTopic for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityNotificationTopic func (c *SES) SetIdentityNotificationTopic(input *SetIdentityNotificationTopicInput) (*SetIdentityNotificationTopicOutput, error) { req, out := c.SetIdentityNotificationTopicRequest(input) err := req.Send() @@ -2660,6 +3154,7 @@ const opSetReceiptRulePosition = "SetReceiptRulePosition" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetReceiptRulePosition func (c *SES) SetReceiptRulePositionRequest(input *SetReceiptRulePositionInput) (req *request.Request, output *SetReceiptRulePositionOutput) { op := &request.Operation{ Name: opSetReceiptRulePosition, @@ -2671,9 +3166,8 @@ func (c *SES) SetReceiptRulePositionRequest(input *SetReceiptRulePositionInput) input = &SetReceiptRulePositionInput{} } - req = c.newRequest(op, input, output) output = &SetReceiptRulePositionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2694,18 +3188,106 @@ func (c *SES) SetReceiptRulePositionRequest(input *SetReceiptRulePositionInput) // API operation SetReceiptRulePosition for usage and error information. // // Returned Error Codes: -// * RuleSetDoesNotExist +// * ErrCodeRuleSetDoesNotExistException "RuleSetDoesNotExist" // Indicates that the provided receipt rule set does not exist. // -// * RuleDoesNotExist +// * ErrCodeRuleDoesNotExistException "RuleDoesNotExist" // Indicates that the provided receipt rule does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetReceiptRulePosition func (c *SES) SetReceiptRulePosition(input *SetReceiptRulePositionInput) (*SetReceiptRulePositionOutput, error) { req, out := c.SetReceiptRulePositionRequest(input) err := req.Send() return out, err } +const opUpdateConfigurationSetEventDestination = "UpdateConfigurationSetEventDestination" + +// UpdateConfigurationSetEventDestinationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateConfigurationSetEventDestination operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateConfigurationSetEventDestination for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateConfigurationSetEventDestination method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateConfigurationSetEventDestinationRequest method. +// req, resp := client.UpdateConfigurationSetEventDestinationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/UpdateConfigurationSetEventDestination +func (c *SES) UpdateConfigurationSetEventDestinationRequest(input *UpdateConfigurationSetEventDestinationInput) (req *request.Request, output *UpdateConfigurationSetEventDestinationOutput) { + op := &request.Operation{ + Name: opUpdateConfigurationSetEventDestination, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateConfigurationSetEventDestinationInput{} + } + + output = &UpdateConfigurationSetEventDestinationOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateConfigurationSetEventDestination API operation for Amazon Simple Email Service. +// +// Updates the event destination of a configuration set. +// +// When you create or update an event destination, you must provide one, and +// only one, destination. The destination can be either Amazon CloudWatch or +// Amazon Kinesis Firehose. +// +// Event destinations are associated with configuration sets, which enable you +// to publish email sending events to Amazon CloudWatch or Amazon Kinesis Firehose. +// For information about using configuration sets, see the Amazon SES Developer +// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// +// This action is throttled at one request per second. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation UpdateConfigurationSetEventDestination for usage and error information. +// +// Returned Error Codes: +// * ErrCodeConfigurationSetDoesNotExistException "ConfigurationSetDoesNotExist" +// Indicates that the configuration set does not exist. +// +// * ErrCodeEventDestinationDoesNotExistException "EventDestinationDoesNotExist" +// Indicates that the event destination does not exist. +// +// * ErrCodeInvalidCloudWatchDestinationException "InvalidCloudWatchDestination" +// Indicates that the Amazon CloudWatch destination is invalid. See the error +// message for details. +// +// * ErrCodeInvalidFirehoseDestinationException "InvalidFirehoseDestination" +// Indicates that the Amazon Kinesis Firehose destination is invalid. See the +// error message for details. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/UpdateConfigurationSetEventDestination +func (c *SES) UpdateConfigurationSetEventDestination(input *UpdateConfigurationSetEventDestinationInput) (*UpdateConfigurationSetEventDestinationOutput, error) { + req, out := c.UpdateConfigurationSetEventDestinationRequest(input) + err := req.Send() + return out, err +} + const opUpdateReceiptRule = "UpdateReceiptRule" // UpdateReceiptRuleRequest generates a "aws/request.Request" representing the @@ -2732,6 +3314,7 @@ const opUpdateReceiptRule = "UpdateReceiptRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/UpdateReceiptRule func (c *SES) UpdateReceiptRuleRequest(input *UpdateReceiptRuleInput) (req *request.Request, output *UpdateReceiptRuleOutput) { op := &request.Operation{ Name: opUpdateReceiptRule, @@ -2743,9 +3326,8 @@ func (c *SES) UpdateReceiptRuleRequest(input *UpdateReceiptRuleInput) (req *requ input = &UpdateReceiptRuleInput{} } - req = c.newRequest(op, input, output) output = &UpdateReceiptRuleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2766,33 +3348,34 @@ func (c *SES) UpdateReceiptRuleRequest(input *UpdateReceiptRuleInput) (req *requ // API operation UpdateReceiptRule for usage and error information. // // Returned Error Codes: -// * InvalidSnsTopic +// * ErrCodeInvalidSnsTopicException "InvalidSnsTopic" // Indicates that the provided Amazon SNS topic is invalid, or that Amazon SES // could not publish to the topic, possibly due to permissions issues. For information // about giving permissions, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). // -// * InvalidS3Configuration +// * ErrCodeInvalidS3ConfigurationException "InvalidS3Configuration" // Indicates that the provided Amazon S3 bucket or AWS KMS encryption key is // invalid, or that Amazon SES could not publish to the bucket, possibly due // to permissions issues. For information about giving permissions, see the // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). // -// * InvalidLambdaFunction +// * ErrCodeInvalidLambdaFunctionException "InvalidLambdaFunction" // Indicates that the provided AWS Lambda function is invalid, or that Amazon // SES could not execute the provided function, possibly due to permissions // issues. For information about giving permissions, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). // -// * RuleSetDoesNotExist +// * ErrCodeRuleSetDoesNotExistException "RuleSetDoesNotExist" // Indicates that the provided receipt rule set does not exist. // -// * RuleDoesNotExist +// * ErrCodeRuleDoesNotExistException "RuleDoesNotExist" // Indicates that the provided receipt rule does not exist. // -// * LimitExceeded -// Indicates that a resource could not be created due to service limits. For -// a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). +// * ErrCodeLimitExceededException "LimitExceeded" +// Indicates that a resource could not be created because of service limits. +// For a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/UpdateReceiptRule func (c *SES) UpdateReceiptRule(input *UpdateReceiptRuleInput) (*UpdateReceiptRuleOutput, error) { req, out := c.UpdateReceiptRuleRequest(input) err := req.Send() @@ -2825,6 +3408,7 @@ const opVerifyDomainDkim = "VerifyDomainDkim" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/VerifyDomainDkim func (c *SES) VerifyDomainDkimRequest(input *VerifyDomainDkimInput) (req *request.Request, output *VerifyDomainDkimOutput) { op := &request.Operation{ Name: opVerifyDomainDkim, @@ -2836,9 +3420,8 @@ func (c *SES) VerifyDomainDkimRequest(input *VerifyDomainDkimInput) (req *reques input = &VerifyDomainDkimInput{} } - req = c.newRequest(op, input, output) output = &VerifyDomainDkimOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2866,6 +3449,7 @@ func (c *SES) VerifyDomainDkimRequest(input *VerifyDomainDkimInput) (req *reques // // See the AWS API reference guide for Amazon Simple Email Service's // API operation VerifyDomainDkim for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/VerifyDomainDkim func (c *SES) VerifyDomainDkim(input *VerifyDomainDkimInput) (*VerifyDomainDkimOutput, error) { req, out := c.VerifyDomainDkimRequest(input) err := req.Send() @@ -2898,6 +3482,7 @@ const opVerifyDomainIdentity = "VerifyDomainIdentity" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/VerifyDomainIdentity func (c *SES) VerifyDomainIdentityRequest(input *VerifyDomainIdentityInput) (req *request.Request, output *VerifyDomainIdentityOutput) { op := &request.Operation{ Name: opVerifyDomainIdentity, @@ -2909,9 +3494,8 @@ func (c *SES) VerifyDomainIdentityRequest(input *VerifyDomainIdentityInput) (req input = &VerifyDomainIdentityInput{} } - req = c.newRequest(op, input, output) output = &VerifyDomainIdentityOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2927,6 +3511,7 @@ func (c *SES) VerifyDomainIdentityRequest(input *VerifyDomainIdentityInput) (req // // See the AWS API reference guide for Amazon Simple Email Service's // API operation VerifyDomainIdentity for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/VerifyDomainIdentity func (c *SES) VerifyDomainIdentity(input *VerifyDomainIdentityInput) (*VerifyDomainIdentityOutput, error) { req, out := c.VerifyDomainIdentityRequest(input) err := req.Send() @@ -2959,6 +3544,7 @@ const opVerifyEmailAddress = "VerifyEmailAddress" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/VerifyEmailAddress func (c *SES) VerifyEmailAddressRequest(input *VerifyEmailAddressInput) (req *request.Request, output *VerifyEmailAddressOutput) { op := &request.Operation{ Name: opVerifyEmailAddress, @@ -2970,11 +3556,10 @@ func (c *SES) VerifyEmailAddressRequest(input *VerifyEmailAddressInput) (req *re input = &VerifyEmailAddressInput{} } + output = &VerifyEmailAddressOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &VerifyEmailAddressOutput{} - req.Data = output return } @@ -2983,10 +3568,10 @@ func (c *SES) VerifyEmailAddressRequest(input *VerifyEmailAddressInput) (req *re // Verifies an email address. This action causes a confirmation email message // to be sent to the specified address. // -// The VerifyEmailAddress action is deprecated as of the May 15, 2012 release +// The VerifyEmailAddress action is deprecated as of the May 15, 2012 release // of Domain Verification. The VerifyEmailIdentity action is now preferred. // -// This action is throttled at one request per second. +// This action is throttled at one request per second. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2994,6 +3579,7 @@ func (c *SES) VerifyEmailAddressRequest(input *VerifyEmailAddressInput) (req *re // // See the AWS API reference guide for Amazon Simple Email Service's // API operation VerifyEmailAddress for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/VerifyEmailAddress func (c *SES) VerifyEmailAddress(input *VerifyEmailAddressInput) (*VerifyEmailAddressOutput, error) { req, out := c.VerifyEmailAddressRequest(input) err := req.Send() @@ -3026,6 +3612,7 @@ const opVerifyEmailIdentity = "VerifyEmailIdentity" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/VerifyEmailIdentity func (c *SES) VerifyEmailIdentityRequest(input *VerifyEmailIdentityInput) (req *request.Request, output *VerifyEmailIdentityOutput) { op := &request.Operation{ Name: opVerifyEmailIdentity, @@ -3037,9 +3624,8 @@ func (c *SES) VerifyEmailIdentityRequest(input *VerifyEmailIdentityInput) (req * input = &VerifyEmailIdentityInput{} } - req = c.newRequest(op, input, output) output = &VerifyEmailIdentityOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3056,6 +3642,7 @@ func (c *SES) VerifyEmailIdentityRequest(input *VerifyEmailIdentityInput) (req * // // See the AWS API reference guide for Amazon Simple Email Service's // API operation VerifyEmailIdentity for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/VerifyEmailIdentity func (c *SES) VerifyEmailIdentity(input *VerifyEmailIdentityInput) (*VerifyEmailIdentityOutput, error) { req, out := c.VerifyEmailIdentityRequest(input) err := req.Send() @@ -3067,6 +3654,7 @@ func (c *SES) VerifyEmailIdentity(input *VerifyEmailIdentityInput) (*VerifyEmail // // For information about adding a header using a receipt rule, see the Amazon // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-add-header.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/AddHeaderAction type AddHeaderAction struct { _ struct{} `type:"structure"` @@ -3109,9 +3697,22 @@ func (s *AddHeaderAction) Validate() error { return nil } +// SetHeaderName sets the HeaderName field's value. +func (s *AddHeaderAction) SetHeaderName(v string) *AddHeaderAction { + s.HeaderName = &v + return s +} + +// SetHeaderValue sets the HeaderValue field's value. +func (s *AddHeaderAction) SetHeaderValue(v string) *AddHeaderAction { + s.HeaderValue = &v + return s +} + // Represents the body of the message. You can specify text, HTML, or both. // If you use both, then the message should display correctly in the widest // variety of email clients. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/Body type Body struct { _ struct{} `type:"structure"` @@ -3155,12 +3756,25 @@ func (s *Body) Validate() error { return nil } +// SetHtml sets the Html field's value. +func (s *Body) SetHtml(v *Content) *Body { + s.Html = v + return s +} + +// SetText sets the Text field's value. +func (s *Body) SetText(v *Content) *Body { + s.Text = v + return s +} + // When included in a receipt rule, this action rejects the received email by // returning a bounce response to the sender and, optionally, publishes a notification // to Amazon Simple Notification Service (Amazon SNS). // // For information about sending a bounce message in response to a received // email, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-bounce.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/BounceAction type BounceAction struct { _ struct{} `type:"structure"` @@ -3219,11 +3833,42 @@ func (s *BounceAction) Validate() error { return nil } +// SetMessage sets the Message field's value. +func (s *BounceAction) SetMessage(v string) *BounceAction { + s.Message = &v + return s +} + +// SetSender sets the Sender field's value. +func (s *BounceAction) SetSender(v string) *BounceAction { + s.Sender = &v + return s +} + +// SetSmtpReplyCode sets the SmtpReplyCode field's value. +func (s *BounceAction) SetSmtpReplyCode(v string) *BounceAction { + s.SmtpReplyCode = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *BounceAction) SetStatusCode(v string) *BounceAction { + s.StatusCode = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *BounceAction) SetTopicArn(v string) *BounceAction { + s.TopicArn = &v + return s +} + // Recipient-related information to include in the Delivery Status Notification // (DSN) when an email that Amazon SES receives on your behalf bounces. // // For information about receiving email through Amazon SES, see the Amazon // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/BouncedRecipientInfo type BouncedRecipientInfo struct { _ struct{} `type:"structure"` @@ -3275,9 +3920,34 @@ func (s *BouncedRecipientInfo) Validate() error { return nil } -// Represents a request to create a receipt rule set by cloning an existing +// SetBounceType sets the BounceType field's value. +func (s *BouncedRecipientInfo) SetBounceType(v string) *BouncedRecipientInfo { + s.BounceType = &v + return s +} + +// SetRecipient sets the Recipient field's value. +func (s *BouncedRecipientInfo) SetRecipient(v string) *BouncedRecipientInfo { + s.Recipient = &v + return s +} + +// SetRecipientArn sets the RecipientArn field's value. +func (s *BouncedRecipientInfo) SetRecipientArn(v string) *BouncedRecipientInfo { + s.RecipientArn = &v + return s +} + +// SetRecipientDsnFields sets the RecipientDsnFields field's value. +func (s *BouncedRecipientInfo) SetRecipientDsnFields(v *RecipientDsnFields) *BouncedRecipientInfo { + s.RecipientDsnFields = v + return s +} + +// Represents a request to create a receipt rule set by cloning an existing // one. You use receipt rule sets to receive email with Amazon SES. For more // information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CloneReceiptRuleSetRequest type CloneReceiptRuleSetInput struct { _ struct{} `type:"structure"` @@ -3288,12 +3958,12 @@ type CloneReceiptRuleSetInput struct { // The name of the rule set to create. The name must: // - // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores - // (_), or dashes (-). + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores + // (_), or dashes (-). // - // Start and end with a letter or number. + // * Start and end with a letter or number. // - // Contain less than 64 characters. + // * Contain less than 64 characters. // // RuleSetName is a required field RuleSetName *string `type:"string" required:"true"` @@ -3325,7 +3995,20 @@ func (s *CloneReceiptRuleSetInput) Validate() error { return nil } +// SetOriginalRuleSetName sets the OriginalRuleSetName field's value. +func (s *CloneReceiptRuleSetInput) SetOriginalRuleSetName(v string) *CloneReceiptRuleSetInput { + s.OriginalRuleSetName = &v + return s +} + +// SetRuleSetName sets the RuleSetName field's value. +func (s *CloneReceiptRuleSetInput) SetRuleSetName(v string) *CloneReceiptRuleSetInput { + s.RuleSetName = &v + return s +} + // An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CloneReceiptRuleSetResponse type CloneReceiptRuleSetOutput struct { _ struct{} `type:"structure"` } @@ -3340,11 +4023,205 @@ func (s CloneReceiptRuleSetOutput) GoString() string { return s.String() } +// Contains information associated with an Amazon CloudWatch event destination +// to which email sending events are published. +// +// Event destinations, such as Amazon CloudWatch, are associated with configuration +// sets, which enable you to publish email sending events. For information about +// using configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CloudWatchDestination +type CloudWatchDestination struct { + _ struct{} `type:"structure"` + + // A list of dimensions upon which to categorize your emails when you publish + // email sending events to Amazon CloudWatch. + // + // DimensionConfigurations is a required field + DimensionConfigurations []*CloudWatchDimensionConfiguration `type:"list" required:"true"` +} + +// String returns the string representation +func (s CloudWatchDestination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudWatchDestination) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CloudWatchDestination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CloudWatchDestination"} + if s.DimensionConfigurations == nil { + invalidParams.Add(request.NewErrParamRequired("DimensionConfigurations")) + } + if s.DimensionConfigurations != nil { + for i, v := range s.DimensionConfigurations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DimensionConfigurations", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDimensionConfigurations sets the DimensionConfigurations field's value. +func (s *CloudWatchDestination) SetDimensionConfigurations(v []*CloudWatchDimensionConfiguration) *CloudWatchDestination { + s.DimensionConfigurations = v + return s +} + +// Contains the dimension configuration to use when you publish email sending +// events to Amazon CloudWatch. +// +// For information about publishing email sending events to Amazon CloudWatch, +// see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CloudWatchDimensionConfiguration +type CloudWatchDimensionConfiguration struct { + _ struct{} `type:"structure"` + + // The default value of the dimension that is published to Amazon CloudWatch + // if you do not provide the value of the dimension when you send an email. + // The default value must: + // + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), + // or dashes (-). + // + // * Contain less than 256 characters. + // + // DefaultDimensionValue is a required field + DefaultDimensionValue *string `type:"string" required:"true"` + + // The name of an Amazon CloudWatch dimension associated with an email sending + // metric. The name must: + // + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), + // or dashes (-). + // + // * Contain less than 256 characters. + // + // DimensionName is a required field + DimensionName *string `type:"string" required:"true"` + + // The place where Amazon SES finds the value of a dimension to publish to Amazon + // CloudWatch. If you want Amazon SES to use the message tags that you specify + // using an X-SES-MESSAGE-TAGS header or a parameter to the SendEmail/SendRawEmail + // API, choose messageTag. If you want Amazon SES to use your own email headers, + // choose emailHeader. + // + // DimensionValueSource is a required field + DimensionValueSource *string `type:"string" required:"true" enum:"DimensionValueSource"` +} + +// String returns the string representation +func (s CloudWatchDimensionConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudWatchDimensionConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CloudWatchDimensionConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CloudWatchDimensionConfiguration"} + if s.DefaultDimensionValue == nil { + invalidParams.Add(request.NewErrParamRequired("DefaultDimensionValue")) + } + if s.DimensionName == nil { + invalidParams.Add(request.NewErrParamRequired("DimensionName")) + } + if s.DimensionValueSource == nil { + invalidParams.Add(request.NewErrParamRequired("DimensionValueSource")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDefaultDimensionValue sets the DefaultDimensionValue field's value. +func (s *CloudWatchDimensionConfiguration) SetDefaultDimensionValue(v string) *CloudWatchDimensionConfiguration { + s.DefaultDimensionValue = &v + return s +} + +// SetDimensionName sets the DimensionName field's value. +func (s *CloudWatchDimensionConfiguration) SetDimensionName(v string) *CloudWatchDimensionConfiguration { + s.DimensionName = &v + return s +} + +// SetDimensionValueSource sets the DimensionValueSource field's value. +func (s *CloudWatchDimensionConfiguration) SetDimensionValueSource(v string) *CloudWatchDimensionConfiguration { + s.DimensionValueSource = &v + return s +} + +// The name of the configuration set. +// +// Configuration sets enable you to publish email sending events. For information +// about using configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ConfigurationSet +type ConfigurationSet struct { + _ struct{} `type:"structure"` + + // The name of the configuration set. The name must: + // + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), + // or dashes (-). + // + // * Contain less than 64 characters. + // + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ConfigurationSet) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConfigurationSet) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ConfigurationSet) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConfigurationSet"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *ConfigurationSet) SetName(v string) *ConfigurationSet { + s.Name = &v + return s +} + // Represents textual data, plus an optional character set specification. // -// By default, the text must be 7-bit ASCII, due to the constraints of the -// SMTP protocol. If the text must contain any other characters, then you must -// also specify a character set. Examples include UTF-8, ISO-8859-1, and Shift_JIS. +// By default, the text must be 7-bit ASCII, due to the constraints of the SMTP +// protocol. If the text must contain any other characters, then you must also +// specify a character set. Examples include UTF-8, ISO-8859-1, and Shift_JIS. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/Content type Content struct { _ struct{} `type:"structure"` @@ -3380,9 +4257,165 @@ func (s *Content) Validate() error { return nil } +// SetCharset sets the Charset field's value. +func (s *Content) SetCharset(v string) *Content { + s.Charset = &v + return s +} + +// SetData sets the Data field's value. +func (s *Content) SetData(v string) *Content { + s.Data = &v + return s +} + +// Represents a request to create a configuration set event destination. A configuration +// set event destination, which can be either Amazon CloudWatch or Amazon Kinesis +// Firehose, describes an AWS service in which Amazon SES publishes the email +// sending events associated with a configuration set. For information about +// using configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateConfigurationSetEventDestinationRequest +type CreateConfigurationSetEventDestinationInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set to which to apply the event destination. + // + // ConfigurationSetName is a required field + ConfigurationSetName *string `type:"string" required:"true"` + + // An object that describes the AWS service to which Amazon SES will publish + // the email sending events associated with the specified configuration set. + // + // EventDestination is a required field + EventDestination *EventDestination `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateConfigurationSetEventDestinationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateConfigurationSetEventDestinationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateConfigurationSetEventDestinationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateConfigurationSetEventDestinationInput"} + if s.ConfigurationSetName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) + } + if s.EventDestination == nil { + invalidParams.Add(request.NewErrParamRequired("EventDestination")) + } + if s.EventDestination != nil { + if err := s.EventDestination.Validate(); err != nil { + invalidParams.AddNested("EventDestination", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *CreateConfigurationSetEventDestinationInput) SetConfigurationSetName(v string) *CreateConfigurationSetEventDestinationInput { + s.ConfigurationSetName = &v + return s +} + +// SetEventDestination sets the EventDestination field's value. +func (s *CreateConfigurationSetEventDestinationInput) SetEventDestination(v *EventDestination) *CreateConfigurationSetEventDestinationInput { + s.EventDestination = v + return s +} + +// An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateConfigurationSetEventDestinationResponse +type CreateConfigurationSetEventDestinationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateConfigurationSetEventDestinationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateConfigurationSetEventDestinationOutput) GoString() string { + return s.String() +} + +// Represents a request to create a configuration set. Configuration sets enable +// you to publish email sending events. For information about using configuration +// sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateConfigurationSetRequest +type CreateConfigurationSetInput struct { + _ struct{} `type:"structure"` + + // A data structure that contains the name of the configuration set. + // + // ConfigurationSet is a required field + ConfigurationSet *ConfigurationSet `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateConfigurationSetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateConfigurationSetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateConfigurationSetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateConfigurationSetInput"} + if s.ConfigurationSet == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationSet")) + } + if s.ConfigurationSet != nil { + if err := s.ConfigurationSet.Validate(); err != nil { + invalidParams.AddNested("ConfigurationSet", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSet sets the ConfigurationSet field's value. +func (s *CreateConfigurationSetInput) SetConfigurationSet(v *ConfigurationSet) *CreateConfigurationSetInput { + s.ConfigurationSet = v + return s +} + +// An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateConfigurationSetResponse +type CreateConfigurationSetOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateConfigurationSetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateConfigurationSetOutput) GoString() string { + return s.String() +} + // Represents a request to create a new IP address filter. You use IP address // filters when you receive email with Amazon SES. For more information, see // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateReceiptFilterRequest type CreateReceiptFilterInput struct { _ struct{} `type:"structure"` @@ -3421,7 +4454,14 @@ func (s *CreateReceiptFilterInput) Validate() error { return nil } +// SetFilter sets the Filter field's value. +func (s *CreateReceiptFilterInput) SetFilter(v *ReceiptFilter) *CreateReceiptFilterInput { + s.Filter = v + return s +} + // An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateReceiptFilterResponse type CreateReceiptFilterOutput struct { _ struct{} `type:"structure"` } @@ -3439,6 +4479,7 @@ func (s CreateReceiptFilterOutput) GoString() string { // Represents a request to create a receipt rule. You use receipt rules to receive // email with Amazon SES. For more information, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateReceiptRuleRequest type CreateReceiptRuleInput struct { _ struct{} `type:"structure"` @@ -3490,7 +4531,26 @@ func (s *CreateReceiptRuleInput) Validate() error { return nil } +// SetAfter sets the After field's value. +func (s *CreateReceiptRuleInput) SetAfter(v string) *CreateReceiptRuleInput { + s.After = &v + return s +} + +// SetRule sets the Rule field's value. +func (s *CreateReceiptRuleInput) SetRule(v *ReceiptRule) *CreateReceiptRuleInput { + s.Rule = v + return s +} + +// SetRuleSetName sets the RuleSetName field's value. +func (s *CreateReceiptRuleInput) SetRuleSetName(v string) *CreateReceiptRuleInput { + s.RuleSetName = &v + return s +} + // An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateReceiptRuleResponse type CreateReceiptRuleOutput struct { _ struct{} `type:"structure"` } @@ -3508,17 +4568,18 @@ func (s CreateReceiptRuleOutput) GoString() string { // Represents a request to create an empty receipt rule set. You use receipt // rule sets to receive email with Amazon SES. For more information, see the // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateReceiptRuleSetRequest type CreateReceiptRuleSetInput struct { _ struct{} `type:"structure"` // The name of the rule set to create. The name must: // - // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores - // (_), or dashes (-). + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores + // (_), or dashes (-). // - // Start and end with a letter or number. + // * Start and end with a letter or number. // - // Contain less than 64 characters. + // * Contain less than 64 characters. // // RuleSetName is a required field RuleSetName *string `type:"string" required:"true"` @@ -3547,7 +4608,14 @@ func (s *CreateReceiptRuleSetInput) Validate() error { return nil } +// SetRuleSetName sets the RuleSetName field's value. +func (s *CreateReceiptRuleSetInput) SetRuleSetName(v string) *CreateReceiptRuleSetInput { + s.RuleSetName = &v + return s +} + // An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateReceiptRuleSetResponse type CreateReceiptRuleSetOutput struct { _ struct{} `type:"structure"` } @@ -3562,8 +4630,140 @@ func (s CreateReceiptRuleSetOutput) GoString() string { return s.String() } +// Represents a request to delete a configuration set event destination. Configuration +// set event destinations are associated with configuration sets, which enable +// you to publish email sending events. For information about using configuration +// sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteConfigurationSetEventDestinationRequest +type DeleteConfigurationSetEventDestinationInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set from which to delete the event destination. + // + // ConfigurationSetName is a required field + ConfigurationSetName *string `type:"string" required:"true"` + + // The name of the event destination to delete. + // + // EventDestinationName is a required field + EventDestinationName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteConfigurationSetEventDestinationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteConfigurationSetEventDestinationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteConfigurationSetEventDestinationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteConfigurationSetEventDestinationInput"} + if s.ConfigurationSetName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) + } + if s.EventDestinationName == nil { + invalidParams.Add(request.NewErrParamRequired("EventDestinationName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *DeleteConfigurationSetEventDestinationInput) SetConfigurationSetName(v string) *DeleteConfigurationSetEventDestinationInput { + s.ConfigurationSetName = &v + return s +} + +// SetEventDestinationName sets the EventDestinationName field's value. +func (s *DeleteConfigurationSetEventDestinationInput) SetEventDestinationName(v string) *DeleteConfigurationSetEventDestinationInput { + s.EventDestinationName = &v + return s +} + +// An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteConfigurationSetEventDestinationResponse +type DeleteConfigurationSetEventDestinationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteConfigurationSetEventDestinationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteConfigurationSetEventDestinationOutput) GoString() string { + return s.String() +} + +// Represents a request to delete a configuration set. Configuration sets enable +// you to publish email sending events. For information about using configuration +// sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteConfigurationSetRequest +type DeleteConfigurationSetInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set to delete. + // + // ConfigurationSetName is a required field + ConfigurationSetName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteConfigurationSetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteConfigurationSetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteConfigurationSetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteConfigurationSetInput"} + if s.ConfigurationSetName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *DeleteConfigurationSetInput) SetConfigurationSetName(v string) *DeleteConfigurationSetInput { + s.ConfigurationSetName = &v + return s +} + +// An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteConfigurationSetResponse +type DeleteConfigurationSetOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteConfigurationSetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteConfigurationSetOutput) GoString() string { + return s.String() +} + // Represents a request to delete one of your Amazon SES identities (an email // address or domain). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteIdentityRequest type DeleteIdentityInput struct { _ struct{} `type:"structure"` @@ -3596,7 +4796,14 @@ func (s *DeleteIdentityInput) Validate() error { return nil } +// SetIdentity sets the Identity field's value. +func (s *DeleteIdentityInput) SetIdentity(v string) *DeleteIdentityInput { + s.Identity = &v + return s +} + // An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteIdentityResponse type DeleteIdentityOutput struct { _ struct{} `type:"structure"` } @@ -3615,6 +4822,7 @@ func (s DeleteIdentityOutput) GoString() string { // Sending authorization is an Amazon SES feature that enables you to authorize // other senders to use your identities. For information, see the Amazon SES // Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteIdentityPolicyRequest type DeleteIdentityPolicyInput struct { _ struct{} `type:"structure"` @@ -3662,7 +4870,20 @@ func (s *DeleteIdentityPolicyInput) Validate() error { return nil } +// SetIdentity sets the Identity field's value. +func (s *DeleteIdentityPolicyInput) SetIdentity(v string) *DeleteIdentityPolicyInput { + s.Identity = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *DeleteIdentityPolicyInput) SetPolicyName(v string) *DeleteIdentityPolicyInput { + s.PolicyName = &v + return s +} + // An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteIdentityPolicyResponse type DeleteIdentityPolicyOutput struct { _ struct{} `type:"structure"` } @@ -3680,6 +4901,7 @@ func (s DeleteIdentityPolicyOutput) GoString() string { // Represents a request to delete an IP address filter. You use IP address filters // when you receive email with Amazon SES. For more information, see the Amazon // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteReceiptFilterRequest type DeleteReceiptFilterInput struct { _ struct{} `type:"structure"` @@ -3712,7 +4934,14 @@ func (s *DeleteReceiptFilterInput) Validate() error { return nil } +// SetFilterName sets the FilterName field's value. +func (s *DeleteReceiptFilterInput) SetFilterName(v string) *DeleteReceiptFilterInput { + s.FilterName = &v + return s +} + // An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteReceiptFilterResponse type DeleteReceiptFilterOutput struct { _ struct{} `type:"structure"` } @@ -3730,6 +4959,7 @@ func (s DeleteReceiptFilterOutput) GoString() string { // Represents a request to delete a receipt rule. You use receipt rules to receive // email with Amazon SES. For more information, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteReceiptRuleRequest type DeleteReceiptRuleInput struct { _ struct{} `type:"structure"` @@ -3770,7 +5000,20 @@ func (s *DeleteReceiptRuleInput) Validate() error { return nil } +// SetRuleName sets the RuleName field's value. +func (s *DeleteReceiptRuleInput) SetRuleName(v string) *DeleteReceiptRuleInput { + s.RuleName = &v + return s +} + +// SetRuleSetName sets the RuleSetName field's value. +func (s *DeleteReceiptRuleInput) SetRuleSetName(v string) *DeleteReceiptRuleInput { + s.RuleSetName = &v + return s +} + // An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteReceiptRuleResponse type DeleteReceiptRuleOutput struct { _ struct{} `type:"structure"` } @@ -3788,6 +5031,7 @@ func (s DeleteReceiptRuleOutput) GoString() string { // Represents a request to delete a receipt rule set and all of the receipt // rules it contains. You use receipt rule sets to receive email with Amazon // SES. For more information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteReceiptRuleSetRequest type DeleteReceiptRuleSetInput struct { _ struct{} `type:"structure"` @@ -3820,7 +5064,14 @@ func (s *DeleteReceiptRuleSetInput) Validate() error { return nil } +// SetRuleSetName sets the RuleSetName field's value. +func (s *DeleteReceiptRuleSetInput) SetRuleSetName(v string) *DeleteReceiptRuleSetInput { + s.RuleSetName = &v + return s +} + // An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteReceiptRuleSetResponse type DeleteReceiptRuleSetOutput struct { _ struct{} `type:"structure"` } @@ -3837,6 +5088,7 @@ func (s DeleteReceiptRuleSetOutput) GoString() string { // Represents a request to delete an email address from the list of email addresses // you have attempted to verify under your AWS account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteVerifiedEmailAddressRequest type DeleteVerifiedEmailAddressInput struct { _ struct{} `type:"structure"` @@ -3869,6 +5121,13 @@ func (s *DeleteVerifiedEmailAddressInput) Validate() error { return nil } +// SetEmailAddress sets the EmailAddress field's value. +func (s *DeleteVerifiedEmailAddressInput) SetEmailAddress(v string) *DeleteVerifiedEmailAddressInput { + s.EmailAddress = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteVerifiedEmailAddressOutput type DeleteVerifiedEmailAddressOutput struct { _ struct{} `type:"structure"` } @@ -3887,6 +5146,7 @@ func (s DeleteVerifiedEmailAddressOutput) GoString() string { // rule set that is currently active. You use receipt rule sets to receive email // with Amazon SES. For more information, see the Amazon SES Developer Guide // (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DescribeActiveReceiptRuleSetRequest type DescribeActiveReceiptRuleSetInput struct { _ struct{} `type:"structure"` } @@ -3903,6 +5163,7 @@ func (s DescribeActiveReceiptRuleSetInput) GoString() string { // Represents the metadata and receipt rules for the receipt rule set that is // currently active. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DescribeActiveReceiptRuleSetResponse type DescribeActiveReceiptRuleSetOutput struct { _ struct{} `type:"structure"` @@ -3924,9 +5185,110 @@ func (s DescribeActiveReceiptRuleSetOutput) GoString() string { return s.String() } +// SetMetadata sets the Metadata field's value. +func (s *DescribeActiveReceiptRuleSetOutput) SetMetadata(v *ReceiptRuleSetMetadata) *DescribeActiveReceiptRuleSetOutput { + s.Metadata = v + return s +} + +// SetRules sets the Rules field's value. +func (s *DescribeActiveReceiptRuleSetOutput) SetRules(v []*ReceiptRule) *DescribeActiveReceiptRuleSetOutput { + s.Rules = v + return s +} + +// Represents a request to return the details of a configuration set. Configuration +// sets enable you to publish email sending events. For information about using +// configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DescribeConfigurationSetRequest +type DescribeConfigurationSetInput struct { + _ struct{} `type:"structure"` + + // A list of configuration set attributes to return. + ConfigurationSetAttributeNames []*string `type:"list"` + + // The name of the configuration set to describe. + // + // ConfigurationSetName is a required field + ConfigurationSetName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeConfigurationSetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeConfigurationSetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeConfigurationSetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationSetInput"} + if s.ConfigurationSetName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSetAttributeNames sets the ConfigurationSetAttributeNames field's value. +func (s *DescribeConfigurationSetInput) SetConfigurationSetAttributeNames(v []*string) *DescribeConfigurationSetInput { + s.ConfigurationSetAttributeNames = v + return s +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *DescribeConfigurationSetInput) SetConfigurationSetName(v string) *DescribeConfigurationSetInput { + s.ConfigurationSetName = &v + return s +} + +// Represents the details of a configuration set. Configuration sets enable +// you to publish email sending events. For information about using configuration +// sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DescribeConfigurationSetResponse +type DescribeConfigurationSetOutput struct { + _ struct{} `type:"structure"` + + // The configuration set object associated with the specified configuration + // set. + ConfigurationSet *ConfigurationSet `type:"structure"` + + // A list of event destinations associated with the configuration set. + EventDestinations []*EventDestination `type:"list"` +} + +// String returns the string representation +func (s DescribeConfigurationSetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeConfigurationSetOutput) GoString() string { + return s.String() +} + +// SetConfigurationSet sets the ConfigurationSet field's value. +func (s *DescribeConfigurationSetOutput) SetConfigurationSet(v *ConfigurationSet) *DescribeConfigurationSetOutput { + s.ConfigurationSet = v + return s +} + +// SetEventDestinations sets the EventDestinations field's value. +func (s *DescribeConfigurationSetOutput) SetEventDestinations(v []*EventDestination) *DescribeConfigurationSetOutput { + s.EventDestinations = v + return s +} + // Represents a request to return the details of a receipt rule. You use receipt // rules to receive email with Amazon SES. For more information, see the Amazon // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DescribeReceiptRuleRequest type DescribeReceiptRuleInput struct { _ struct{} `type:"structure"` @@ -3967,7 +5329,20 @@ func (s *DescribeReceiptRuleInput) Validate() error { return nil } +// SetRuleName sets the RuleName field's value. +func (s *DescribeReceiptRuleInput) SetRuleName(v string) *DescribeReceiptRuleInput { + s.RuleName = &v + return s +} + +// SetRuleSetName sets the RuleSetName field's value. +func (s *DescribeReceiptRuleInput) SetRuleSetName(v string) *DescribeReceiptRuleInput { + s.RuleSetName = &v + return s +} + // Represents the details of a receipt rule. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DescribeReceiptRuleResponse type DescribeReceiptRuleOutput struct { _ struct{} `type:"structure"` @@ -3987,9 +5362,16 @@ func (s DescribeReceiptRuleOutput) GoString() string { return s.String() } +// SetRule sets the Rule field's value. +func (s *DescribeReceiptRuleOutput) SetRule(v *ReceiptRule) *DescribeReceiptRuleOutput { + s.Rule = v + return s +} + // Represents a request to return the details of a receipt rule set. You use // receipt rule sets to receive email with Amazon SES. For more information, // see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DescribeReceiptRuleSetRequest type DescribeReceiptRuleSetInput struct { _ struct{} `type:"structure"` @@ -4022,7 +5404,14 @@ func (s *DescribeReceiptRuleSetInput) Validate() error { return nil } +// SetRuleSetName sets the RuleSetName field's value. +func (s *DescribeReceiptRuleSetInput) SetRuleSetName(v string) *DescribeReceiptRuleSetInput { + s.RuleSetName = &v + return s +} + // Represents the details of the specified receipt rule set. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DescribeReceiptRuleSetResponse type DescribeReceiptRuleSetOutput struct { _ struct{} `type:"structure"` @@ -4044,34 +5433,176 @@ func (s DescribeReceiptRuleSetOutput) GoString() string { return s.String() } +// SetMetadata sets the Metadata field's value. +func (s *DescribeReceiptRuleSetOutput) SetMetadata(v *ReceiptRuleSetMetadata) *DescribeReceiptRuleSetOutput { + s.Metadata = v + return s +} + +// SetRules sets the Rules field's value. +func (s *DescribeReceiptRuleSetOutput) SetRules(v []*ReceiptRule) *DescribeReceiptRuleSetOutput { + s.Rules = v + return s +} + // Represents the destination of the message, consisting of To:, CC:, and BCC: // fields. // -// By default, the string must be 7-bit ASCII. If the text must contain any +// By default, the string must be 7-bit ASCII. If the text must contain any // other characters, then you must use MIME encoded-word syntax (RFC 2047) instead // of a literal string. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=. // For more information, see RFC 2047 (http://tools.ietf.org/html/rfc2047). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/Destination type Destination struct { _ struct{} `type:"structure"` - // The BCC: field(s) of the message. - BccAddresses []*string `type:"list"` + // The BCC: field(s) of the message. + BccAddresses []*string `type:"list"` + + // The CC: field(s) of the message. + CcAddresses []*string `type:"list"` + + // The To: field(s) of the message. + ToAddresses []*string `type:"list"` +} + +// String returns the string representation +func (s Destination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Destination) GoString() string { + return s.String() +} + +// SetBccAddresses sets the BccAddresses field's value. +func (s *Destination) SetBccAddresses(v []*string) *Destination { + s.BccAddresses = v + return s +} + +// SetCcAddresses sets the CcAddresses field's value. +func (s *Destination) SetCcAddresses(v []*string) *Destination { + s.CcAddresses = v + return s +} + +// SetToAddresses sets the ToAddresses field's value. +func (s *Destination) SetToAddresses(v []*string) *Destination { + s.ToAddresses = v + return s +} + +// Contains information about the event destination to which the specified email +// sending events are published. +// +// When you create or update an event destination, you must provide one, and +// only one, destination. The destination can be either Amazon CloudWatch or +// Amazon Kinesis Firehose. +// +// Event destinations are associated with configuration sets, which enable you +// to publish email sending events to Amazon CloudWatch or Amazon Kinesis Firehose. +// For information about using configuration sets, see the Amazon SES Developer +// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/EventDestination +type EventDestination struct { + _ struct{} `type:"structure"` + + // An object that contains the names, default values, and sources of the dimensions + // associated with an Amazon CloudWatch event destination. + CloudWatchDestination *CloudWatchDestination `type:"structure"` + + // Sets whether Amazon SES publishes events to this destination when you send + // an email with the associated configuration set. Set to true to enable publishing + // to this destination; set to false to prevent publishing to this destination. + // The default value is false. + Enabled *bool `type:"boolean"` + + // An object that contains the delivery stream ARN and the IAM role ARN associated + // with an Amazon Kinesis Firehose event destination. + KinesisFirehoseDestination *KinesisFirehoseDestination `type:"structure"` + + // The type of email sending events to publish to the event destination. + // + // MatchingEventTypes is a required field + MatchingEventTypes []*string `type:"list" required:"true"` + + // The name of the event destination. The name must: + // + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), + // or dashes (-). + // + // * Contain less than 64 characters. + // + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s EventDestination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EventDestination) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EventDestination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EventDestination"} + if s.MatchingEventTypes == nil { + invalidParams.Add(request.NewErrParamRequired("MatchingEventTypes")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.CloudWatchDestination != nil { + if err := s.CloudWatchDestination.Validate(); err != nil { + invalidParams.AddNested("CloudWatchDestination", err.(request.ErrInvalidParams)) + } + } + if s.KinesisFirehoseDestination != nil { + if err := s.KinesisFirehoseDestination.Validate(); err != nil { + invalidParams.AddNested("KinesisFirehoseDestination", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The CC: field(s) of the message. - CcAddresses []*string `type:"list"` +// SetCloudWatchDestination sets the CloudWatchDestination field's value. +func (s *EventDestination) SetCloudWatchDestination(v *CloudWatchDestination) *EventDestination { + s.CloudWatchDestination = v + return s +} - // The To: field(s) of the message. - ToAddresses []*string `type:"list"` +// SetEnabled sets the Enabled field's value. +func (s *EventDestination) SetEnabled(v bool) *EventDestination { + s.Enabled = &v + return s } -// String returns the string representation -func (s Destination) String() string { - return awsutil.Prettify(s) +// SetKinesisFirehoseDestination sets the KinesisFirehoseDestination field's value. +func (s *EventDestination) SetKinesisFirehoseDestination(v *KinesisFirehoseDestination) *EventDestination { + s.KinesisFirehoseDestination = v + return s } -// GoString returns the string representation -func (s Destination) GoString() string { - return s.String() +// SetMatchingEventTypes sets the MatchingEventTypes field's value. +func (s *EventDestination) SetMatchingEventTypes(v []*string) *EventDestination { + s.MatchingEventTypes = v + return s +} + +// SetName sets the Name field's value. +func (s *EventDestination) SetName(v string) *EventDestination { + s.Name = &v + return s } // Additional X-headers to include in the Delivery Status Notification (DSN) @@ -4079,6 +5610,7 @@ func (s Destination) GoString() string { // // For information about receiving email through Amazon SES, see the Amazon // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ExtensionField type ExtensionField struct { _ struct{} `type:"structure"` @@ -4121,11 +5653,24 @@ func (s *ExtensionField) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *ExtensionField) SetName(v string) *ExtensionField { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ExtensionField) SetValue(v string) *ExtensionField { + s.Value = &v + return s +} + // Represents a request for the status of Amazon SES Easy DKIM signing for an // identity. For domain identities, this request also returns the DKIM tokens // that are required for Easy DKIM signing, and whether Amazon SES successfully // verified that these tokens were published. For more information about Easy // DKIM, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetIdentityDkimAttributesRequest type GetIdentityDkimAttributesInput struct { _ struct{} `type:"structure"` @@ -4159,10 +5704,17 @@ func (s *GetIdentityDkimAttributesInput) Validate() error { return nil } +// SetIdentities sets the Identities field's value. +func (s *GetIdentityDkimAttributesInput) SetIdentities(v []*string) *GetIdentityDkimAttributesInput { + s.Identities = v + return s +} + // Represents the status of Amazon SES Easy DKIM signing for an identity. For // domain identities, this response also contains the DKIM tokens that are required // for Easy DKIM signing, and whether Amazon SES successfully verified that // these tokens were published. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetIdentityDkimAttributesResponse type GetIdentityDkimAttributesOutput struct { _ struct{} `type:"structure"` @@ -4182,9 +5734,16 @@ func (s GetIdentityDkimAttributesOutput) GoString() string { return s.String() } +// SetDkimAttributes sets the DkimAttributes field's value. +func (s *GetIdentityDkimAttributesOutput) SetDkimAttributes(v map[string]*IdentityDkimAttributes) *GetIdentityDkimAttributesOutput { + s.DkimAttributes = v + return s +} + // Represents a request to return the Amazon SES custom MAIL FROM attributes // for a list of identities. For information about using a custom MAIL FROM // domain, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetIdentityMailFromDomainAttributesRequest type GetIdentityMailFromDomainAttributesInput struct { _ struct{} `type:"structure"` @@ -4217,7 +5776,14 @@ func (s *GetIdentityMailFromDomainAttributesInput) Validate() error { return nil } +// SetIdentities sets the Identities field's value. +func (s *GetIdentityMailFromDomainAttributesInput) SetIdentities(v []*string) *GetIdentityMailFromDomainAttributesInput { + s.Identities = v + return s +} + // Represents the custom MAIL FROM attributes for a list of identities. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetIdentityMailFromDomainAttributesResponse type GetIdentityMailFromDomainAttributesOutput struct { _ struct{} `type:"structure"` @@ -4237,9 +5803,16 @@ func (s GetIdentityMailFromDomainAttributesOutput) GoString() string { return s.String() } +// SetMailFromDomainAttributes sets the MailFromDomainAttributes field's value. +func (s *GetIdentityMailFromDomainAttributesOutput) SetMailFromDomainAttributes(v map[string]*IdentityMailFromDomainAttributes) *GetIdentityMailFromDomainAttributesOutput { + s.MailFromDomainAttributes = v + return s +} + // Represents a request to return the notification attributes for a list of // identities you verified with Amazon SES. For information about Amazon SES // notifications, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetIdentityNotificationAttributesRequest type GetIdentityNotificationAttributesInput struct { _ struct{} `type:"structure"` @@ -4274,7 +5847,14 @@ func (s *GetIdentityNotificationAttributesInput) Validate() error { return nil } +// SetIdentities sets the Identities field's value. +func (s *GetIdentityNotificationAttributesInput) SetIdentities(v []*string) *GetIdentityNotificationAttributesInput { + s.Identities = v + return s +} + // Represents the notification attributes for a list of identities. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetIdentityNotificationAttributesResponse type GetIdentityNotificationAttributesOutput struct { _ struct{} `type:"structure"` @@ -4294,10 +5874,17 @@ func (s GetIdentityNotificationAttributesOutput) GoString() string { return s.String() } +// SetNotificationAttributes sets the NotificationAttributes field's value. +func (s *GetIdentityNotificationAttributesOutput) SetNotificationAttributes(v map[string]*IdentityNotificationAttributes) *GetIdentityNotificationAttributesOutput { + s.NotificationAttributes = v + return s +} + // Represents a request to return the requested sending authorization policies // for an identity. Sending authorization is an Amazon SES feature that enables // you to authorize other senders to use your identities. For information, see // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetIdentityPoliciesRequest type GetIdentityPoliciesInput struct { _ struct{} `type:"structure"` @@ -4344,7 +5931,20 @@ func (s *GetIdentityPoliciesInput) Validate() error { return nil } +// SetIdentity sets the Identity field's value. +func (s *GetIdentityPoliciesInput) SetIdentity(v string) *GetIdentityPoliciesInput { + s.Identity = &v + return s +} + +// SetPolicyNames sets the PolicyNames field's value. +func (s *GetIdentityPoliciesInput) SetPolicyNames(v []*string) *GetIdentityPoliciesInput { + s.PolicyNames = v + return s +} + // Represents the requested sending authorization policies. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetIdentityPoliciesResponse type GetIdentityPoliciesOutput struct { _ struct{} `type:"structure"` @@ -4364,10 +5964,17 @@ func (s GetIdentityPoliciesOutput) GoString() string { return s.String() } +// SetPolicies sets the Policies field's value. +func (s *GetIdentityPoliciesOutput) SetPolicies(v map[string]*string) *GetIdentityPoliciesOutput { + s.Policies = v + return s +} + // Represents a request to return the Amazon SES verification status of a list // of identities. For domain identities, this request also returns the verification // token. For information about verifying identities with Amazon SES, see the // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetIdentityVerificationAttributesRequest type GetIdentityVerificationAttributesInput struct { _ struct{} `type:"structure"` @@ -4400,8 +6007,15 @@ func (s *GetIdentityVerificationAttributesInput) Validate() error { return nil } +// SetIdentities sets the Identities field's value. +func (s *GetIdentityVerificationAttributesInput) SetIdentities(v []*string) *GetIdentityVerificationAttributesInput { + s.Identities = v + return s +} + // The Amazon SES verification status of a list of identities. For domain identities, // this response also contains the verification token. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetIdentityVerificationAttributesResponse type GetIdentityVerificationAttributesOutput struct { _ struct{} `type:"structure"` @@ -4421,6 +6035,13 @@ func (s GetIdentityVerificationAttributesOutput) GoString() string { return s.String() } +// SetVerificationAttributes sets the VerificationAttributes field's value. +func (s *GetIdentityVerificationAttributesOutput) SetVerificationAttributes(v map[string]*IdentityVerificationAttributes) *GetIdentityVerificationAttributesOutput { + s.VerificationAttributes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetSendQuotaInput type GetSendQuotaInput struct { _ struct{} `type:"structure"` } @@ -4437,6 +6058,7 @@ func (s GetSendQuotaInput) GoString() string { // Represents your Amazon SES daily sending quota, maximum send rate, and the // number of emails you have sent in the last 24 hours. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetSendQuotaResponse type GetSendQuotaOutput struct { _ struct{} `type:"structure"` @@ -4447,8 +6069,8 @@ type GetSendQuotaOutput struct { // The maximum number of emails that Amazon SES can accept from the user's account // per second. // - // The rate at which Amazon SES accepts the user's messages might be less - // than the maximum send rate. + // The rate at which Amazon SES accepts the user's messages might be less than + // the maximum send rate. MaxSendRate *float64 `type:"double"` // The number of emails sent during the previous 24 hours. @@ -4465,6 +6087,25 @@ func (s GetSendQuotaOutput) GoString() string { return s.String() } +// SetMax24HourSend sets the Max24HourSend field's value. +func (s *GetSendQuotaOutput) SetMax24HourSend(v float64) *GetSendQuotaOutput { + s.Max24HourSend = &v + return s +} + +// SetMaxSendRate sets the MaxSendRate field's value. +func (s *GetSendQuotaOutput) SetMaxSendRate(v float64) *GetSendQuotaOutput { + s.MaxSendRate = &v + return s +} + +// SetSentLast24Hours sets the SentLast24Hours field's value. +func (s *GetSendQuotaOutput) SetSentLast24Hours(v float64) *GetSendQuotaOutput { + s.SentLast24Hours = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetSendStatisticsInput type GetSendStatisticsInput struct { _ struct{} `type:"structure"` } @@ -4481,6 +6122,7 @@ func (s GetSendStatisticsInput) GoString() string { // Represents a list of data points. This list contains aggregated data from // the previous two weeks of your sending activity with Amazon SES. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/GetSendStatisticsResponse type GetSendStatisticsOutput struct { _ struct{} `type:"structure"` @@ -4498,11 +6140,19 @@ func (s GetSendStatisticsOutput) GoString() string { return s.String() } +// SetSendDataPoints sets the SendDataPoints field's value. +func (s *GetSendStatisticsOutput) SetSendDataPoints(v []*SendDataPoint) *GetSendStatisticsOutput { + s.SendDataPoints = v + return s +} + // Represents the DKIM attributes of a verified email address or a domain. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/IdentityDkimAttributes type IdentityDkimAttributes struct { _ struct{} `type:"structure"` // True if DKIM signing is enabled for email sent from the identity; false otherwise. + // The default value is true. // // DkimEnabled is a required field DkimEnabled *bool `type:"boolean" required:"true"` @@ -4537,8 +6187,27 @@ func (s IdentityDkimAttributes) GoString() string { return s.String() } +// SetDkimEnabled sets the DkimEnabled field's value. +func (s *IdentityDkimAttributes) SetDkimEnabled(v bool) *IdentityDkimAttributes { + s.DkimEnabled = &v + return s +} + +// SetDkimTokens sets the DkimTokens field's value. +func (s *IdentityDkimAttributes) SetDkimTokens(v []*string) *IdentityDkimAttributes { + s.DkimTokens = v + return s +} + +// SetDkimVerificationStatus sets the DkimVerificationStatus field's value. +func (s *IdentityDkimAttributes) SetDkimVerificationStatus(v string) *IdentityDkimAttributes { + s.DkimVerificationStatus = &v + return s +} + // Represents the custom MAIL FROM domain attributes of a verified identity // (email address or domain). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/IdentityMailFromDomainAttributes type IdentityMailFromDomainAttributes struct { _ struct{} `type:"structure"` @@ -4580,10 +6249,29 @@ func (s IdentityMailFromDomainAttributes) GoString() string { return s.String() } +// SetBehaviorOnMXFailure sets the BehaviorOnMXFailure field's value. +func (s *IdentityMailFromDomainAttributes) SetBehaviorOnMXFailure(v string) *IdentityMailFromDomainAttributes { + s.BehaviorOnMXFailure = &v + return s +} + +// SetMailFromDomain sets the MailFromDomain field's value. +func (s *IdentityMailFromDomainAttributes) SetMailFromDomain(v string) *IdentityMailFromDomainAttributes { + s.MailFromDomain = &v + return s +} + +// SetMailFromDomainStatus sets the MailFromDomainStatus field's value. +func (s *IdentityMailFromDomainAttributes) SetMailFromDomainStatus(v string) *IdentityMailFromDomainAttributes { + s.MailFromDomainStatus = &v + return s +} + // Represents the notification attributes of an identity, including whether // an identity has Amazon Simple Notification Service (Amazon SNS) topics set // for bounce, complaint, and/or delivery notifications, and whether feedback // forwarding is enabled for bounce and complaint notifications. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/IdentityNotificationAttributes type IdentityNotificationAttributes struct { _ struct{} `type:"structure"` @@ -4642,7 +6330,50 @@ func (s IdentityNotificationAttributes) GoString() string { return s.String() } +// SetBounceTopic sets the BounceTopic field's value. +func (s *IdentityNotificationAttributes) SetBounceTopic(v string) *IdentityNotificationAttributes { + s.BounceTopic = &v + return s +} + +// SetComplaintTopic sets the ComplaintTopic field's value. +func (s *IdentityNotificationAttributes) SetComplaintTopic(v string) *IdentityNotificationAttributes { + s.ComplaintTopic = &v + return s +} + +// SetDeliveryTopic sets the DeliveryTopic field's value. +func (s *IdentityNotificationAttributes) SetDeliveryTopic(v string) *IdentityNotificationAttributes { + s.DeliveryTopic = &v + return s +} + +// SetForwardingEnabled sets the ForwardingEnabled field's value. +func (s *IdentityNotificationAttributes) SetForwardingEnabled(v bool) *IdentityNotificationAttributes { + s.ForwardingEnabled = &v + return s +} + +// SetHeadersInBounceNotificationsEnabled sets the HeadersInBounceNotificationsEnabled field's value. +func (s *IdentityNotificationAttributes) SetHeadersInBounceNotificationsEnabled(v bool) *IdentityNotificationAttributes { + s.HeadersInBounceNotificationsEnabled = &v + return s +} + +// SetHeadersInComplaintNotificationsEnabled sets the HeadersInComplaintNotificationsEnabled field's value. +func (s *IdentityNotificationAttributes) SetHeadersInComplaintNotificationsEnabled(v bool) *IdentityNotificationAttributes { + s.HeadersInComplaintNotificationsEnabled = &v + return s +} + +// SetHeadersInDeliveryNotificationsEnabled sets the HeadersInDeliveryNotificationsEnabled field's value. +func (s *IdentityNotificationAttributes) SetHeadersInDeliveryNotificationsEnabled(v bool) *IdentityNotificationAttributes { + s.HeadersInDeliveryNotificationsEnabled = &v + return s +} + // Represents the verification attributes of a single identity. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/IdentityVerificationAttributes type IdentityVerificationAttributes struct { _ struct{} `type:"structure"` @@ -4666,6 +6397,80 @@ func (s IdentityVerificationAttributes) GoString() string { return s.String() } +// SetVerificationStatus sets the VerificationStatus field's value. +func (s *IdentityVerificationAttributes) SetVerificationStatus(v string) *IdentityVerificationAttributes { + s.VerificationStatus = &v + return s +} + +// SetVerificationToken sets the VerificationToken field's value. +func (s *IdentityVerificationAttributes) SetVerificationToken(v string) *IdentityVerificationAttributes { + s.VerificationToken = &v + return s +} + +// Contains the delivery stream ARN and the IAM role ARN associated with an +// Amazon Kinesis Firehose event destination. +// +// Event destinations, such as Amazon Kinesis Firehose, are associated with +// configuration sets, which enable you to publish email sending events. For +// information about using configuration sets, see the Amazon SES Developer +// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/KinesisFirehoseDestination +type KinesisFirehoseDestination struct { + _ struct{} `type:"structure"` + + // The ARN of the Amazon Kinesis Firehose stream to which to publish email sending + // events. + // + // DeliveryStreamARN is a required field + DeliveryStreamARN *string `type:"string" required:"true"` + + // The ARN of the IAM role under which Amazon SES publishes email sending events + // to the Amazon Kinesis Firehose stream. + // + // IAMRoleARN is a required field + IAMRoleARN *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s KinesisFirehoseDestination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KinesisFirehoseDestination) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *KinesisFirehoseDestination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KinesisFirehoseDestination"} + if s.DeliveryStreamARN == nil { + invalidParams.Add(request.NewErrParamRequired("DeliveryStreamARN")) + } + if s.IAMRoleARN == nil { + invalidParams.Add(request.NewErrParamRequired("IAMRoleARN")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeliveryStreamARN sets the DeliveryStreamARN field's value. +func (s *KinesisFirehoseDestination) SetDeliveryStreamARN(v string) *KinesisFirehoseDestination { + s.DeliveryStreamARN = &v + return s +} + +// SetIAMRoleARN sets the IAMRoleARN field's value. +func (s *KinesisFirehoseDestination) SetIAMRoleARN(v string) *KinesisFirehoseDestination { + s.IAMRoleARN = &v + return s +} + // When included in a receipt rule, this action calls an AWS Lambda function // and, optionally, publishes a notification to Amazon Simple Notification Service // (Amazon SNS). @@ -4677,6 +6482,7 @@ func (s IdentityVerificationAttributes) GoString() string { // // For information about using AWS Lambda actions in receipt rules, see the // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-lambda.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/LambdaAction type LambdaAction struct { _ struct{} `type:"structure"` @@ -4694,10 +6500,10 @@ type LambdaAction struct { // The default value is Event. For information about AWS Lambda invocation types, // see the AWS Lambda Developer Guide (http://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html). // - // There is a 30-second timeout on RequestResponse invocations. You should - // use Event invocation in most cases. Use RequestResponse only when you want - // to make a mail flow decision, such as whether to stop the receipt rule or - // the receipt rule set. + // There is a 30-second timeout on RequestResponse invocations. You should use + // Event invocation in most cases. Use RequestResponse only when you want to + // make a mail flow decision, such as whether to stop the receipt rule or the + // receipt rule set. InvocationType *string `type:"string" enum:"InvocationType"` // The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the @@ -4730,9 +6536,103 @@ func (s *LambdaAction) Validate() error { return nil } +// SetFunctionArn sets the FunctionArn field's value. +func (s *LambdaAction) SetFunctionArn(v string) *LambdaAction { + s.FunctionArn = &v + return s +} + +// SetInvocationType sets the InvocationType field's value. +func (s *LambdaAction) SetInvocationType(v string) *LambdaAction { + s.InvocationType = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *LambdaAction) SetTopicArn(v string) *LambdaAction { + s.TopicArn = &v + return s +} + +// Represents a request to list the configuration sets associated with your +// AWS account. Configuration sets enable you to publish email sending events. +// For information about using configuration sets, see the Amazon SES Developer +// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListConfigurationSetsRequest +type ListConfigurationSetsInput struct { + _ struct{} `type:"structure"` + + // The number of configuration sets to return. + MaxItems *int64 `type:"integer"` + + // A token returned from a previous call to ListConfigurationSets to indicate + // the position of the configuration set in the configuration set list. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListConfigurationSetsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListConfigurationSetsInput) GoString() string { + return s.String() +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListConfigurationSetsInput) SetMaxItems(v int64) *ListConfigurationSetsInput { + s.MaxItems = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListConfigurationSetsInput) SetNextToken(v string) *ListConfigurationSetsInput { + s.NextToken = &v + return s +} + +// A list of configuration sets associated with your AWS account. Configuration +// sets enable you to publish email sending events. For information about using +// configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListConfigurationSetsResponse +type ListConfigurationSetsOutput struct { + _ struct{} `type:"structure"` + + // A list of configuration sets. + ConfigurationSets []*ConfigurationSet `type:"list"` + + // A token indicating that there are additional configuration sets available + // to be listed. Pass this token to successive calls of ListConfigurationSets. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListConfigurationSetsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListConfigurationSetsOutput) GoString() string { + return s.String() +} + +// SetConfigurationSets sets the ConfigurationSets field's value. +func (s *ListConfigurationSetsOutput) SetConfigurationSets(v []*ConfigurationSet) *ListConfigurationSetsOutput { + s.ConfigurationSets = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListConfigurationSetsOutput) SetNextToken(v string) *ListConfigurationSetsOutput { + s.NextToken = &v + return s +} + // Represents a request to return a list of all identities (email addresses // and domains) that you have attempted to verify under your AWS account, regardless // of verification status. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListIdentitiesRequest type ListIdentitiesInput struct { _ struct{} `type:"structure"` @@ -4757,8 +6657,27 @@ func (s ListIdentitiesInput) GoString() string { return s.String() } +// SetIdentityType sets the IdentityType field's value. +func (s *ListIdentitiesInput) SetIdentityType(v string) *ListIdentitiesInput { + s.IdentityType = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListIdentitiesInput) SetMaxItems(v int64) *ListIdentitiesInput { + s.MaxItems = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListIdentitiesInput) SetNextToken(v string) *ListIdentitiesInput { + s.NextToken = &v + return s +} + // A list of all identities that you have attempted to verify under your AWS // account, regardless of verification status. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListIdentitiesResponse type ListIdentitiesOutput struct { _ struct{} `type:"structure"` @@ -4781,10 +6700,23 @@ func (s ListIdentitiesOutput) GoString() string { return s.String() } +// SetIdentities sets the Identities field's value. +func (s *ListIdentitiesOutput) SetIdentities(v []*string) *ListIdentitiesOutput { + s.Identities = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListIdentitiesOutput) SetNextToken(v string) *ListIdentitiesOutput { + s.NextToken = &v + return s +} + // Represents a request to return a list of sending authorization policies that // are attached to an identity. Sending authorization is an Amazon SES feature // that enables you to authorize other senders to use your identities. For information, // see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListIdentityPoliciesRequest type ListIdentityPoliciesInput struct { _ struct{} `type:"structure"` @@ -4821,7 +6753,14 @@ func (s *ListIdentityPoliciesInput) Validate() error { return nil } +// SetIdentity sets the Identity field's value. +func (s *ListIdentityPoliciesInput) SetIdentity(v string) *ListIdentityPoliciesInput { + s.Identity = &v + return s +} + // A list of names of sending authorization policies that apply to an identity. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListIdentityPoliciesResponse type ListIdentityPoliciesOutput struct { _ struct{} `type:"structure"` @@ -4841,9 +6780,16 @@ func (s ListIdentityPoliciesOutput) GoString() string { return s.String() } -// : Represents a request to list the IP address filters that exist under your +// SetPolicyNames sets the PolicyNames field's value. +func (s *ListIdentityPoliciesOutput) SetPolicyNames(v []*string) *ListIdentityPoliciesOutput { + s.PolicyNames = v + return s +} + +// Represents a request to list the IP address filters that exist under your // AWS account. You use IP address filters when you receive email with Amazon // SES. For more information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListReceiptFiltersRequest type ListReceiptFiltersInput struct { _ struct{} `type:"structure"` } @@ -4859,6 +6805,7 @@ func (s ListReceiptFiltersInput) GoString() string { } // A list of IP address filters that exist under your AWS account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListReceiptFiltersResponse type ListReceiptFiltersOutput struct { _ struct{} `type:"structure"` @@ -4877,9 +6824,16 @@ func (s ListReceiptFiltersOutput) GoString() string { return s.String() } +// SetFilters sets the Filters field's value. +func (s *ListReceiptFiltersOutput) SetFilters(v []*ReceiptFilter) *ListReceiptFiltersOutput { + s.Filters = v + return s +} + // Represents a request to list the receipt rule sets that exist under your // AWS account. You use receipt rule sets to receive email with Amazon SES. // For more information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListReceiptRuleSetsRequest type ListReceiptRuleSetsInput struct { _ struct{} `type:"structure"` @@ -4898,7 +6852,14 @@ func (s ListReceiptRuleSetsInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListReceiptRuleSetsInput) SetNextToken(v string) *ListReceiptRuleSetsInput { + s.NextToken = &v + return s +} + // A list of receipt rule sets that exist under your AWS account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListReceiptRuleSetsResponse type ListReceiptRuleSetsOutput struct { _ struct{} `type:"structure"` @@ -4922,6 +6883,19 @@ func (s ListReceiptRuleSetsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListReceiptRuleSetsOutput) SetNextToken(v string) *ListReceiptRuleSetsOutput { + s.NextToken = &v + return s +} + +// SetRuleSets sets the RuleSets field's value. +func (s *ListReceiptRuleSetsOutput) SetRuleSets(v []*ReceiptRuleSetMetadata) *ListReceiptRuleSetsOutput { + s.RuleSets = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListVerifiedEmailAddressesInput type ListVerifiedEmailAddressesInput struct { _ struct{} `type:"structure"` } @@ -4938,6 +6912,7 @@ func (s ListVerifiedEmailAddressesInput) GoString() string { // A list of email addresses that you have verified with Amazon SES under your // AWS account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListVerifiedEmailAddressesResponse type ListVerifiedEmailAddressesOutput struct { _ struct{} `type:"structure"` @@ -4955,7 +6930,14 @@ func (s ListVerifiedEmailAddressesOutput) GoString() string { return s.String() } +// SetVerifiedEmailAddresses sets the VerifiedEmailAddresses field's value. +func (s *ListVerifiedEmailAddressesOutput) SetVerifiedEmailAddresses(v []*string) *ListVerifiedEmailAddressesOutput { + s.VerifiedEmailAddresses = v + return s +} + // Represents the message to be sent, composed of a subject and a body. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/Message type Message struct { _ struct{} `type:"structure"` @@ -5007,11 +6989,24 @@ func (s *Message) Validate() error { return nil } +// SetBody sets the Body field's value. +func (s *Message) SetBody(v *Body) *Message { + s.Body = v + return s +} + +// SetSubject sets the Subject field's value. +func (s *Message) SetSubject(v *Content) *Message { + s.Subject = v + return s +} + // Message-related information to include in the Delivery Status Notification // (DSN) when an email that Amazon SES receives on your behalf bounces. // // For information about receiving email through Amazon SES, see the Amazon // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/MessageDsn type MessageDsn struct { _ struct{} `type:"structure"` @@ -5063,10 +7058,98 @@ func (s *MessageDsn) Validate() error { return nil } +// SetArrivalDate sets the ArrivalDate field's value. +func (s *MessageDsn) SetArrivalDate(v time.Time) *MessageDsn { + s.ArrivalDate = &v + return s +} + +// SetExtensionFields sets the ExtensionFields field's value. +func (s *MessageDsn) SetExtensionFields(v []*ExtensionField) *MessageDsn { + s.ExtensionFields = v + return s +} + +// SetReportingMta sets the ReportingMta field's value. +func (s *MessageDsn) SetReportingMta(v string) *MessageDsn { + s.ReportingMta = &v + return s +} + +// Contains the name and value of a tag that you can provide to SendEmail or +// SendRawEmail to apply to an email. +// +// Message tags, which you use with configuration sets, enable you to publish +// email sending events. For information about using configuration sets, see +// the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/MessageTag +type MessageTag struct { + _ struct{} `type:"structure"` + + // The name of the tag. The name must: + // + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), + // or dashes (-). + // + // * Contain less than 256 characters. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The value of the tag. The value must: + // + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), + // or dashes (-). + // + // * Contain less than 256 characters. + // + // Value is a required field + Value *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s MessageTag) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MessageTag) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MessageTag) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MessageTag"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *MessageTag) SetName(v string) *MessageTag { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *MessageTag) SetValue(v string) *MessageTag { + s.Value = &v + return s +} + // Represents a request to add or update a sending authorization policy for // an identity. Sending authorization is an Amazon SES feature that enables // you to authorize other senders to use your identities. For information, see // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/PutIdentityPolicyRequest type PutIdentityPolicyInput struct { _ struct{} `type:"structure"` @@ -5081,8 +7164,8 @@ type PutIdentityPolicyInput struct { // The text of the policy in JSON format. The policy cannot exceed 4 KB. // - // For information about the syntax of sending authorization policies, see - // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-policies.html). + // For information about the syntax of sending authorization policies, see the + // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-policies.html). // // Policy is a required field Policy *string `min:"1" type:"string" required:"true"` @@ -5131,7 +7214,26 @@ func (s *PutIdentityPolicyInput) Validate() error { return nil } +// SetIdentity sets the Identity field's value. +func (s *PutIdentityPolicyInput) SetIdentity(v string) *PutIdentityPolicyInput { + s.Identity = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *PutIdentityPolicyInput) SetPolicy(v string) *PutIdentityPolicyInput { + s.Policy = &v + return s +} + +// SetPolicyName sets the PolicyName field's value. +func (s *PutIdentityPolicyInput) SetPolicyName(v string) *PutIdentityPolicyInput { + s.PolicyName = &v + return s +} + // An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/PutIdentityPolicyResponse type PutIdentityPolicyOutput struct { _ struct{} `type:"structure"` } @@ -5147,6 +7249,7 @@ func (s PutIdentityPolicyOutput) GoString() string { } // Represents the raw data of the message. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/RawMessage type RawMessage struct { _ struct{} `type:"structure"` @@ -5160,10 +7263,10 @@ type RawMessage struct { // X-headers in the raw message to specify the "Source," "From," and "Return-Path" // addresses. For more information, see the documentation for SendRawEmail. // - // Do not include these X-headers in the DKIM signature, because they are - // removed by Amazon SES before sending the email. + // Do not include these X-headers in the DKIM signature, because they are removed + // by Amazon SES before sending the email. // - // For more information, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-raw.html). + // For more information, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-raw.html). // // Data is automatically base64 encoded/decoded by the SDK. // @@ -5194,12 +7297,19 @@ func (s *RawMessage) Validate() error { return nil } +// SetData sets the Data field's value. +func (s *RawMessage) SetData(v []byte) *RawMessage { + s.Data = v + return s +} + // An action that Amazon SES can take when it receives an email on behalf of // one or more email addresses or domains that you own. An instance of this // data type can represent only one action. // // For information about setting up receipt rules, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rules.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ReceiptAction type ReceiptAction struct { _ struct{} `type:"structure"` @@ -5280,17 +7390,60 @@ func (s *ReceiptAction) Validate() error { } } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAddHeaderAction sets the AddHeaderAction field's value. +func (s *ReceiptAction) SetAddHeaderAction(v *AddHeaderAction) *ReceiptAction { + s.AddHeaderAction = v + return s +} + +// SetBounceAction sets the BounceAction field's value. +func (s *ReceiptAction) SetBounceAction(v *BounceAction) *ReceiptAction { + s.BounceAction = v + return s +} + +// SetLambdaAction sets the LambdaAction field's value. +func (s *ReceiptAction) SetLambdaAction(v *LambdaAction) *ReceiptAction { + s.LambdaAction = v + return s +} + +// SetS3Action sets the S3Action field's value. +func (s *ReceiptAction) SetS3Action(v *S3Action) *ReceiptAction { + s.S3Action = v + return s +} + +// SetSNSAction sets the SNSAction field's value. +func (s *ReceiptAction) SetSNSAction(v *SNSAction) *ReceiptAction { + s.SNSAction = v + return s +} + +// SetStopAction sets the StopAction field's value. +func (s *ReceiptAction) SetStopAction(v *StopAction) *ReceiptAction { + s.StopAction = v + return s +} + +// SetWorkmailAction sets the WorkmailAction field's value. +func (s *ReceiptAction) SetWorkmailAction(v *WorkmailAction) *ReceiptAction { + s.WorkmailAction = v + return s } // A receipt IP address filter enables you to specify whether to accept or reject // mail originating from an IP address or range of IP addresses. // -// For information about setting up IP address filters, see the Amazon SES -// Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html). +// For information about setting up IP address filters, see the Amazon SES Developer +// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ReceiptFilter type ReceiptFilter struct { _ struct{} `type:"structure"` @@ -5302,12 +7455,12 @@ type ReceiptFilter struct { // The name of the IP address filter. The name must: // - // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores - // (_), or dashes (-). + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores + // (_), or dashes (-). // - // Start and end with a letter or number. + // * Start and end with a letter or number. // - // Contain less than 64 characters. + // * Contain less than 64 characters. // // Name is a required field Name *string `type:"string" required:"true"` @@ -5344,11 +7497,24 @@ func (s *ReceiptFilter) Validate() error { return nil } +// SetIpFilter sets the IpFilter field's value. +func (s *ReceiptFilter) SetIpFilter(v *ReceiptIpFilter) *ReceiptFilter { + s.IpFilter = v + return s +} + +// SetName sets the Name field's value. +func (s *ReceiptFilter) SetName(v string) *ReceiptFilter { + s.Name = &v + return s +} + // A receipt IP address filter enables you to specify whether to accept or reject // mail originating from an IP address or range of IP addresses. // -// For information about setting up IP address filters, see the Amazon SES -// Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html). +// For information about setting up IP address filters, see the Amazon SES Developer +// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ReceiptIpFilter type ReceiptIpFilter struct { _ struct{} `type:"structure"` @@ -5392,6 +7558,18 @@ func (s *ReceiptIpFilter) Validate() error { return nil } +// SetCidr sets the Cidr field's value. +func (s *ReceiptIpFilter) SetCidr(v string) *ReceiptIpFilter { + s.Cidr = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *ReceiptIpFilter) SetPolicy(v string) *ReceiptIpFilter { + s.Policy = &v + return s +} + // Receipt rules enable you to specify which actions Amazon SES should take // when it receives mail on behalf of one or more email addresses or domains // that you own. @@ -5403,6 +7581,7 @@ func (s *ReceiptIpFilter) Validate() error { // // For information about setting up receipt rules, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rules.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ReceiptRule type ReceiptRule struct { _ struct{} `type:"structure"` @@ -5415,12 +7594,12 @@ type ReceiptRule struct { // The name of the receipt rule. The name must: // - // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores - // (_), or dashes (-). + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores + // (_), or dashes (-). // - // Start and end with a letter or number. + // * Start and end with a letter or number. // - // Contain less than 64 characters. + // * Contain less than 64 characters. // // Name is a required field Name *string `type:"string" required:"true"` @@ -5474,6 +7653,42 @@ func (s *ReceiptRule) Validate() error { return nil } +// SetActions sets the Actions field's value. +func (s *ReceiptRule) SetActions(v []*ReceiptAction) *ReceiptRule { + s.Actions = v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *ReceiptRule) SetEnabled(v bool) *ReceiptRule { + s.Enabled = &v + return s +} + +// SetName sets the Name field's value. +func (s *ReceiptRule) SetName(v string) *ReceiptRule { + s.Name = &v + return s +} + +// SetRecipients sets the Recipients field's value. +func (s *ReceiptRule) SetRecipients(v []*string) *ReceiptRule { + s.Recipients = v + return s +} + +// SetScanEnabled sets the ScanEnabled field's value. +func (s *ReceiptRule) SetScanEnabled(v bool) *ReceiptRule { + s.ScanEnabled = &v + return s +} + +// SetTlsPolicy sets the TlsPolicy field's value. +func (s *ReceiptRule) SetTlsPolicy(v string) *ReceiptRule { + s.TlsPolicy = &v + return s +} + // Information about a receipt rule set. // // A receipt rule set is a collection of rules that specify what Amazon SES @@ -5481,6 +7696,7 @@ func (s *ReceiptRule) Validate() error { // // For information about setting up receipt rule sets, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rule-set.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ReceiptRuleSetMetadata type ReceiptRuleSetMetadata struct { _ struct{} `type:"structure"` @@ -5489,12 +7705,12 @@ type ReceiptRuleSetMetadata struct { // The name of the receipt rule set. The name must: // - // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores - // (_), or dashes (-). + // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores + // (_), or dashes (-). // - // Start and end with a letter or number. + // * Start and end with a letter or number. // - // Contain less than 64 characters. + // * Contain less than 64 characters. Name *string `type:"string"` } @@ -5508,11 +7724,24 @@ func (s ReceiptRuleSetMetadata) GoString() string { return s.String() } +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *ReceiptRuleSetMetadata) SetCreatedTimestamp(v time.Time) *ReceiptRuleSetMetadata { + s.CreatedTimestamp = &v + return s +} + +// SetName sets the Name field's value. +func (s *ReceiptRuleSetMetadata) SetName(v string) *ReceiptRuleSetMetadata { + s.Name = &v + return s +} + // Recipient-related information to include in the Delivery Status Notification // (DSN) when an email that Amazon SES receives on your behalf bounces. // // For information about receiving email through Amazon SES, see the Amazon // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/RecipientDsnFields type RecipientDsnFields struct { _ struct{} `type:"structure"` @@ -5537,7 +7766,7 @@ type RecipientDsnFields struct { // Either FinalRecipient or the recipient in BouncedRecipientInfo must be a // recipient of the original bounced message. // - // Do not prepend the FinalRecipient email address with rfc 822;, as described + // Do not prepend the FinalRecipient email address with rfc 822;, as described // in RFC 3798 (https://tools.ietf.org/html/rfc3798). FinalRecipient *string `type:"string"` @@ -5594,9 +7823,52 @@ func (s *RecipientDsnFields) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *RecipientDsnFields) SetAction(v string) *RecipientDsnFields { + s.Action = &v + return s +} + +// SetDiagnosticCode sets the DiagnosticCode field's value. +func (s *RecipientDsnFields) SetDiagnosticCode(v string) *RecipientDsnFields { + s.DiagnosticCode = &v + return s +} + +// SetExtensionFields sets the ExtensionFields field's value. +func (s *RecipientDsnFields) SetExtensionFields(v []*ExtensionField) *RecipientDsnFields { + s.ExtensionFields = v + return s +} + +// SetFinalRecipient sets the FinalRecipient field's value. +func (s *RecipientDsnFields) SetFinalRecipient(v string) *RecipientDsnFields { + s.FinalRecipient = &v + return s +} + +// SetLastAttemptDate sets the LastAttemptDate field's value. +func (s *RecipientDsnFields) SetLastAttemptDate(v time.Time) *RecipientDsnFields { + s.LastAttemptDate = &v + return s +} + +// SetRemoteMta sets the RemoteMta field's value. +func (s *RecipientDsnFields) SetRemoteMta(v string) *RecipientDsnFields { + s.RemoteMta = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *RecipientDsnFields) SetStatus(v string) *RecipientDsnFields { + s.Status = &v + return s +} + // Represents a request to reorder the receipt rules within a receipt rule set. // You use receipt rule sets to receive email with Amazon SES. For more information, // see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ReorderReceiptRuleSetRequest type ReorderReceiptRuleSetInput struct { _ struct{} `type:"structure"` @@ -5638,7 +7910,20 @@ func (s *ReorderReceiptRuleSetInput) Validate() error { return nil } +// SetRuleNames sets the RuleNames field's value. +func (s *ReorderReceiptRuleSetInput) SetRuleNames(v []*string) *ReorderReceiptRuleSetInput { + s.RuleNames = v + return s +} + +// SetRuleSetName sets the RuleSetName field's value. +func (s *ReorderReceiptRuleSetInput) SetRuleSetName(v string) *ReorderReceiptRuleSetInput { + s.RuleSetName = &v + return s +} + // An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ReorderReceiptRuleSetResponse type ReorderReceiptRuleSetOutput struct { _ struct{} `type:"structure"` } @@ -5662,11 +7947,12 @@ func (s ReorderReceiptRuleSetOutput) GoString() string { // account, Amazon SES must have permission to access those resources. For information // about giving permissions, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). // -// When you save your emails to an Amazon S3 bucket, the maximum email size +// When you save your emails to an Amazon S3 bucket, the maximum email size // (including headers) is 30 MB. Emails larger than that will bounce. // -// For information about specifying Amazon S3 actions in receipt rules, see +// For information about specifying Amazon S3 actions in receipt rules, see // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-s3.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/S3Action type S3Action struct { _ struct{} `type:"structure"` @@ -5679,23 +7965,23 @@ type S3Action struct { // before saving them to the Amazon S3 bucket. You can use the default master // key or a custom master key you created in AWS KMS as follows: // - // To use the default master key, provide an ARN in the form of arn:aws:kms:REGION:ACCOUNT-ID-WITHOUT-HYPHENS:alias/aws/ses. - // For example, if your AWS account ID is 123456789012 and you want to use the - // default master key in the US West (Oregon) region, the ARN of the default - // master key would be arn:aws:kms:us-west-2:123456789012:alias/aws/ses. If - // you use the default master key, you don't need to perform any extra steps - // to give Amazon SES permission to use the key. + // * To use the default master key, provide an ARN in the form of arn:aws:kms:REGION:ACCOUNT-ID-WITHOUT-HYPHENS:alias/aws/ses. + // For example, if your AWS account ID is 123456789012 and you want to use + // the default master key in the US West (Oregon) region, the ARN of the + // default master key would be arn:aws:kms:us-west-2:123456789012:alias/aws/ses. + // If you use the default master key, you don't need to perform any extra + // steps to give Amazon SES permission to use the key. // - // To use a custom master key you created in AWS KMS, provide the ARN of - // the master key and ensure that you add a statement to your key's policy to - // give Amazon SES permission to use it. For more information about giving permissions, - // see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). + // * To use a custom master key you created in AWS KMS, provide the ARN of + // the master key and ensure that you add a statement to your key's policy + // to give Amazon SES permission to use it. For more information about giving + // permissions, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). // - // For more information about key policies, see the AWS KMS Developer Guide + // For more information about key policies, see the AWS KMS Developer Guide // (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html). If // you do not specify a master key, Amazon SES will not encrypt your emails. // - // Your mail is encrypted by Amazon SES using the Amazon S3 encryption client + // Your mail is encrypted by Amazon SES using the Amazon S3 encryption client // before the mail is submitted to Amazon S3 for storage. It is not encrypted // using Amazon S3 server-side encryption. This means that you must use the // Amazon S3 encryption client to decrypt the email after retrieving it from @@ -5741,6 +8027,30 @@ func (s *S3Action) Validate() error { return nil } +// SetBucketName sets the BucketName field's value. +func (s *S3Action) SetBucketName(v string) *S3Action { + s.BucketName = &v + return s +} + +// SetKmsKeyArn sets the KmsKeyArn field's value. +func (s *S3Action) SetKmsKeyArn(v string) *S3Action { + s.KmsKeyArn = &v + return s +} + +// SetObjectKeyPrefix sets the ObjectKeyPrefix field's value. +func (s *S3Action) SetObjectKeyPrefix(v string) *S3Action { + s.ObjectKeyPrefix = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *S3Action) SetTopicArn(v string) *S3Action { + s.TopicArn = &v + return s +} + // When included in a receipt rule, this action publishes a notification to // Amazon Simple Notification Service (Amazon SNS). This action includes a complete // copy of the email content in the Amazon SNS notifications. Amazon SNS notifications @@ -5753,12 +8063,13 @@ func (s *S3Action) Validate() error { // to access it. For information about giving permissions, see the Amazon SES // Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). // -// You can only publish emails that are 150 KB or less (including the header) +// You can only publish emails that are 150 KB or less (including the header) // to Amazon SNS. Larger emails will bounce. If you anticipate emails larger // than 150 KB, use the S3 action instead. // -// For information about using a receipt rule to publish an Amazon SNS notification, +// For information about using a receipt rule to publish an Amazon SNS notification, // see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-sns.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SNSAction type SNSAction struct { _ struct{} `type:"structure"` @@ -5800,8 +8111,21 @@ func (s *SNSAction) Validate() error { return nil } +// SetEncoding sets the Encoding field's value. +func (s *SNSAction) SetEncoding(v string) *SNSAction { + s.Encoding = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *SNSAction) SetTopicArn(v string) *SNSAction { + s.TopicArn = &v + return s +} + // Represents a request to send a bounce message to the sender of an email you // received through Amazon SES. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SendBounceRequest type SendBounceInput struct { _ struct{} `type:"structure"` @@ -5883,7 +8207,44 @@ func (s *SendBounceInput) Validate() error { return nil } +// SetBounceSender sets the BounceSender field's value. +func (s *SendBounceInput) SetBounceSender(v string) *SendBounceInput { + s.BounceSender = &v + return s +} + +// SetBounceSenderArn sets the BounceSenderArn field's value. +func (s *SendBounceInput) SetBounceSenderArn(v string) *SendBounceInput { + s.BounceSenderArn = &v + return s +} + +// SetBouncedRecipientInfoList sets the BouncedRecipientInfoList field's value. +func (s *SendBounceInput) SetBouncedRecipientInfoList(v []*BouncedRecipientInfo) *SendBounceInput { + s.BouncedRecipientInfoList = v + return s +} + +// SetExplanation sets the Explanation field's value. +func (s *SendBounceInput) SetExplanation(v string) *SendBounceInput { + s.Explanation = &v + return s +} + +// SetMessageDsn sets the MessageDsn field's value. +func (s *SendBounceInput) SetMessageDsn(v *MessageDsn) *SendBounceInput { + s.MessageDsn = v + return s +} + +// SetOriginalMessageId sets the OriginalMessageId field's value. +func (s *SendBounceInput) SetOriginalMessageId(v string) *SendBounceInput { + s.OriginalMessageId = &v + return s +} + // Represents a unique message ID. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SendBounceResponse type SendBounceOutput struct { _ struct{} `type:"structure"` @@ -5901,8 +8262,15 @@ func (s SendBounceOutput) GoString() string { return s.String() } +// SetMessageId sets the MessageId field's value. +func (s *SendBounceOutput) SetMessageId(v string) *SendBounceOutput { + s.MessageId = &v + return s +} + // Represents sending statistics data. Each SendDataPoint contains statistics // for a 15-minute period of sending activity. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SendDataPoint type SendDataPoint struct { _ struct{} `type:"structure"` @@ -5912,7 +8280,7 @@ type SendDataPoint struct { // Number of unwanted emails that were rejected by recipients. Complaints *int64 `type:"long"` - // Number of emails that have been enqueued for sending. + // Number of emails that have been sent. DeliveryAttempts *int64 `type:"long"` // Number of emails rejected by Amazon SES. @@ -5932,11 +8300,45 @@ func (s SendDataPoint) GoString() string { return s.String() } +// SetBounces sets the Bounces field's value. +func (s *SendDataPoint) SetBounces(v int64) *SendDataPoint { + s.Bounces = &v + return s +} + +// SetComplaints sets the Complaints field's value. +func (s *SendDataPoint) SetComplaints(v int64) *SendDataPoint { + s.Complaints = &v + return s +} + +// SetDeliveryAttempts sets the DeliveryAttempts field's value. +func (s *SendDataPoint) SetDeliveryAttempts(v int64) *SendDataPoint { + s.DeliveryAttempts = &v + return s +} + +// SetRejects sets the Rejects field's value. +func (s *SendDataPoint) SetRejects(v int64) *SendDataPoint { + s.Rejects = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *SendDataPoint) SetTimestamp(v time.Time) *SendDataPoint { + s.Timestamp = &v + return s +} + // Represents a request to send a single formatted email using Amazon SES. For // more information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-formatted.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SendEmailRequest type SendEmailInput struct { _ struct{} `type:"structure"` + // The name of the configuration set to use when you send an email using SendEmail. + ConfigurationSetName *string `type:"string"` + // The destination for this email, composed of To:, CC:, and BCC: fields. // // Destination is a required field @@ -5978,12 +8380,12 @@ type SendEmailInput struct { // with Amazon SES. For information about verifying identities, see the Amazon // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html). // - // If you are sending on behalf of another user and have been permitted to - // do so by a sending authorization policy, then you must also specify the SourceArn + // If you are sending on behalf of another user and have been permitted to do + // so by a sending authorization policy, then you must also specify the SourceArn // parameter. For more information about sending authorization, see the Amazon // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). // - // In all cases, the email address must be 7-bit ASCII. If the text must contain + // In all cases, the email address must be 7-bit ASCII. If the text must contain // any other characters, then you must use MIME encoded-word syntax (RFC 2047) // instead of a literal string. MIME encoded-word syntax uses the following // form: =?charset?encoding?encoded-text?=. For more information, see RFC 2047 @@ -6004,6 +8406,11 @@ type SendEmailInput struct { // For more information about sending authorization, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). SourceArn *string `type:"string"` + + // A list of tags, in the form of name/value pairs, to apply to an email that + // you send using SendEmail. Tags correspond to characteristics of the email + // that you define, so that you can publish email sending events. + Tags []*MessageTag `type:"list"` } // String returns the string representation @@ -6033,6 +8440,16 @@ func (s *SendEmailInput) Validate() error { invalidParams.AddNested("Message", err.(request.ErrInvalidParams)) } } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -6040,7 +8457,62 @@ func (s *SendEmailInput) Validate() error { return nil } +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *SendEmailInput) SetConfigurationSetName(v string) *SendEmailInput { + s.ConfigurationSetName = &v + return s +} + +// SetDestination sets the Destination field's value. +func (s *SendEmailInput) SetDestination(v *Destination) *SendEmailInput { + s.Destination = v + return s +} + +// SetMessage sets the Message field's value. +func (s *SendEmailInput) SetMessage(v *Message) *SendEmailInput { + s.Message = v + return s +} + +// SetReplyToAddresses sets the ReplyToAddresses field's value. +func (s *SendEmailInput) SetReplyToAddresses(v []*string) *SendEmailInput { + s.ReplyToAddresses = v + return s +} + +// SetReturnPath sets the ReturnPath field's value. +func (s *SendEmailInput) SetReturnPath(v string) *SendEmailInput { + s.ReturnPath = &v + return s +} + +// SetReturnPathArn sets the ReturnPathArn field's value. +func (s *SendEmailInput) SetReturnPathArn(v string) *SendEmailInput { + s.ReturnPathArn = &v + return s +} + +// SetSource sets the Source field's value. +func (s *SendEmailInput) SetSource(v string) *SendEmailInput { + s.Source = &v + return s +} + +// SetSourceArn sets the SourceArn field's value. +func (s *SendEmailInput) SetSourceArn(v string) *SendEmailInput { + s.SourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *SendEmailInput) SetTags(v []*MessageTag) *SendEmailInput { + s.Tags = v + return s +} + // Represents a unique message ID. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SendEmailResponse type SendEmailOutput struct { _ struct{} `type:"structure"` @@ -6060,11 +8532,21 @@ func (s SendEmailOutput) GoString() string { return s.String() } +// SetMessageId sets the MessageId field's value. +func (s *SendEmailOutput) SetMessageId(v string) *SendEmailOutput { + s.MessageId = &v + return s +} + // Represents a request to send a single raw email using Amazon SES. For more // information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-raw.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SendRawEmailRequest type SendRawEmailInput struct { _ struct{} `type:"structure"` + // The name of the configuration set to use when you send an email using SendRawEmail. + ConfigurationSetName *string `type:"string"` + // A list of destinations for the message, consisting of To:, CC:, and BCC: // addresses. Destinations []*string `type:"list"` @@ -6077,22 +8559,22 @@ type SendRawEmailInput struct { // in the raw message of the email. If you use both the FromArn parameter and // the corresponding X-header, Amazon SES uses the value of the FromArn parameter. // - // For information about when to use this parameter, see the description of + // For information about when to use this parameter, see the description of // SendRawEmail in this guide, or see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-delegate-sender-tasks-email.html). FromArn *string `type:"string"` // The raw text of the message. The client is responsible for ensuring the following: // - // Message must contain a header and a body, separated by a blank line. + // * Message must contain a header and a body, separated by a blank line. // - // All required header fields must be present. + // * All required header fields must be present. // - // Each part of a multipart MIME message must be formatted properly. + // * Each part of a multipart MIME message must be formatted properly. // - // MIME content types must be among those supported by Amazon SES. For more - // information, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mime-types.html). + // * MIME content types must be among those supported by Amazon SES. For + // more information, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mime-types.html). // - // Must be base64-encoded. + // * Must be base64-encoded. // // RawMessage is a required field RawMessage *RawMessage `type:"structure" required:"true"` @@ -6111,7 +8593,7 @@ type SendRawEmailInput struct { // and the corresponding X-header, Amazon SES uses the value of the ReturnPathArn // parameter. // - // For information about when to use this parameter, see the description of + // For information about when to use this parameter, see the description of // SendRawEmail in this guide, or see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-delegate-sender-tasks-email.html). ReturnPathArn *string `type:"string"` @@ -6119,12 +8601,12 @@ type SendRawEmailInput struct { // you must specify a "From" address in the raw text of the message. (You can // also specify both.) // - // By default, the string must be 7-bit ASCII. If the text must contain any + // By default, the string must be 7-bit ASCII. If the text must contain any // other characters, then you must use MIME encoded-word syntax (RFC 2047) instead // of a literal string. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=. // For more information, see RFC 2047 (http://tools.ietf.org/html/rfc2047). // - // If you specify the Source parameter and have feedback forwarding enabled, + // If you specify the Source parameter and have feedback forwarding enabled, // then bounces and complaints will be sent to this email address. This takes // precedence over any Return-Path header that you might include in the raw // text of the message. @@ -6144,9 +8626,14 @@ type SendRawEmailInput struct { // and the corresponding X-header, Amazon SES uses the value of the SourceArn // parameter. // - // For information about when to use this parameter, see the description of + // For information about when to use this parameter, see the description of // SendRawEmail in this guide, or see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-delegate-sender-tasks-email.html). SourceArn *string `type:"string"` + + // A list of tags, in the form of name/value pairs, to apply to an email that + // you send using SendRawEmail. Tags correspond to characteristics of the email + // that you define, so that you can publish email sending events. + Tags []*MessageTag `type:"list"` } // String returns the string representation @@ -6170,6 +8657,16 @@ func (s *SendRawEmailInput) Validate() error { invalidParams.AddNested("RawMessage", err.(request.ErrInvalidParams)) } } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -6177,7 +8674,56 @@ func (s *SendRawEmailInput) Validate() error { return nil } +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *SendRawEmailInput) SetConfigurationSetName(v string) *SendRawEmailInput { + s.ConfigurationSetName = &v + return s +} + +// SetDestinations sets the Destinations field's value. +func (s *SendRawEmailInput) SetDestinations(v []*string) *SendRawEmailInput { + s.Destinations = v + return s +} + +// SetFromArn sets the FromArn field's value. +func (s *SendRawEmailInput) SetFromArn(v string) *SendRawEmailInput { + s.FromArn = &v + return s +} + +// SetRawMessage sets the RawMessage field's value. +func (s *SendRawEmailInput) SetRawMessage(v *RawMessage) *SendRawEmailInput { + s.RawMessage = v + return s +} + +// SetReturnPathArn sets the ReturnPathArn field's value. +func (s *SendRawEmailInput) SetReturnPathArn(v string) *SendRawEmailInput { + s.ReturnPathArn = &v + return s +} + +// SetSource sets the Source field's value. +func (s *SendRawEmailInput) SetSource(v string) *SendRawEmailInput { + s.Source = &v + return s +} + +// SetSourceArn sets the SourceArn field's value. +func (s *SendRawEmailInput) SetSourceArn(v string) *SendRawEmailInput { + s.SourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *SendRawEmailInput) SetTags(v []*MessageTag) *SendRawEmailInput { + s.Tags = v + return s +} + // Represents a unique message ID. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SendRawEmailResponse type SendRawEmailOutput struct { _ struct{} `type:"structure"` @@ -6197,9 +8743,16 @@ func (s SendRawEmailOutput) GoString() string { return s.String() } +// SetMessageId sets the MessageId field's value. +func (s *SendRawEmailOutput) SetMessageId(v string) *SendRawEmailOutput { + s.MessageId = &v + return s +} + // Represents a request to set a receipt rule set as the active receipt rule // set. You use receipt rule sets to receive email with Amazon SES. For more // information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetActiveReceiptRuleSetRequest type SetActiveReceiptRuleSetInput struct { _ struct{} `type:"structure"` @@ -6218,7 +8771,14 @@ func (s SetActiveReceiptRuleSetInput) GoString() string { return s.String() } +// SetRuleSetName sets the RuleSetName field's value. +func (s *SetActiveReceiptRuleSetInput) SetRuleSetName(v string) *SetActiveReceiptRuleSetInput { + s.RuleSetName = &v + return s +} + // An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetActiveReceiptRuleSetResponse type SetActiveReceiptRuleSetOutput struct { _ struct{} `type:"structure"` } @@ -6236,6 +8796,7 @@ func (s SetActiveReceiptRuleSetOutput) GoString() string { // Represents a request to enable or disable Amazon SES Easy DKIM signing for // an identity. For more information about setting up Easy DKIM, see the Amazon // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityDkimEnabledRequest type SetIdentityDkimEnabledInput struct { _ struct{} `type:"structure"` @@ -6277,7 +8838,20 @@ func (s *SetIdentityDkimEnabledInput) Validate() error { return nil } +// SetDkimEnabled sets the DkimEnabled field's value. +func (s *SetIdentityDkimEnabledInput) SetDkimEnabled(v bool) *SetIdentityDkimEnabledInput { + s.DkimEnabled = &v + return s +} + +// SetIdentity sets the Identity field's value. +func (s *SetIdentityDkimEnabledInput) SetIdentity(v string) *SetIdentityDkimEnabledInput { + s.Identity = &v + return s +} + // An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityDkimEnabledResponse type SetIdentityDkimEnabledOutput struct { _ struct{} `type:"structure"` } @@ -6295,6 +8869,7 @@ func (s SetIdentityDkimEnabledOutput) GoString() string { // Represents a request to enable or disable whether Amazon SES forwards you // bounce and complaint notifications through email. For information about email // feedback forwarding, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications-via-email.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityFeedbackForwardingEnabledRequest type SetIdentityFeedbackForwardingEnabledInput struct { _ struct{} `type:"structure"` @@ -6341,7 +8916,20 @@ func (s *SetIdentityFeedbackForwardingEnabledInput) Validate() error { return nil } +// SetForwardingEnabled sets the ForwardingEnabled field's value. +func (s *SetIdentityFeedbackForwardingEnabledInput) SetForwardingEnabled(v bool) *SetIdentityFeedbackForwardingEnabledInput { + s.ForwardingEnabled = &v + return s +} + +// SetIdentity sets the Identity field's value. +func (s *SetIdentityFeedbackForwardingEnabledInput) SetIdentity(v string) *SetIdentityFeedbackForwardingEnabledInput { + s.Identity = &v + return s +} + // An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityFeedbackForwardingEnabledResponse type SetIdentityFeedbackForwardingEnabledOutput struct { _ struct{} `type:"structure"` } @@ -6359,6 +8947,7 @@ func (s SetIdentityFeedbackForwardingEnabledOutput) GoString() string { // Represents a request to set whether Amazon SES includes the original email // headers in the Amazon SNS notifications of a specified type. For information // about notifications, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications-via-sns.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityHeadersInNotificationsEnabledRequest type SetIdentityHeadersInNotificationsEnabledInput struct { _ struct{} `type:"structure"` @@ -6414,7 +9003,26 @@ func (s *SetIdentityHeadersInNotificationsEnabledInput) Validate() error { return nil } +// SetEnabled sets the Enabled field's value. +func (s *SetIdentityHeadersInNotificationsEnabledInput) SetEnabled(v bool) *SetIdentityHeadersInNotificationsEnabledInput { + s.Enabled = &v + return s +} + +// SetIdentity sets the Identity field's value. +func (s *SetIdentityHeadersInNotificationsEnabledInput) SetIdentity(v string) *SetIdentityHeadersInNotificationsEnabledInput { + s.Identity = &v + return s +} + +// SetNotificationType sets the NotificationType field's value. +func (s *SetIdentityHeadersInNotificationsEnabledInput) SetNotificationType(v string) *SetIdentityHeadersInNotificationsEnabledInput { + s.NotificationType = &v + return s +} + // An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityHeadersInNotificationsEnabledResponse type SetIdentityHeadersInNotificationsEnabledOutput struct { _ struct{} `type:"structure"` } @@ -6432,6 +9040,7 @@ func (s SetIdentityHeadersInNotificationsEnabledOutput) GoString() string { // Represents a request to enable or disable the Amazon SES custom MAIL FROM // domain setup for a verified identity. For information about using a custom // MAIL FROM domain, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityMailFromDomainRequest type SetIdentityMailFromDomainInput struct { _ struct{} `type:"structure"` @@ -6484,7 +9093,26 @@ func (s *SetIdentityMailFromDomainInput) Validate() error { return nil } +// SetBehaviorOnMXFailure sets the BehaviorOnMXFailure field's value. +func (s *SetIdentityMailFromDomainInput) SetBehaviorOnMXFailure(v string) *SetIdentityMailFromDomainInput { + s.BehaviorOnMXFailure = &v + return s +} + +// SetIdentity sets the Identity field's value. +func (s *SetIdentityMailFromDomainInput) SetIdentity(v string) *SetIdentityMailFromDomainInput { + s.Identity = &v + return s +} + +// SetMailFromDomain sets the MailFromDomain field's value. +func (s *SetIdentityMailFromDomainInput) SetMailFromDomain(v string) *SetIdentityMailFromDomainInput { + s.MailFromDomain = &v + return s +} + // An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityMailFromDomainResponse type SetIdentityMailFromDomainOutput struct { _ struct{} `type:"structure"` } @@ -6503,6 +9131,7 @@ func (s SetIdentityMailFromDomainOutput) GoString() string { // will publish bounce, complaint, or delivery notifications for emails sent // with that identity as the Source. For information about Amazon SES notifications, // see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications-via-sns.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityNotificationTopicRequest type SetIdentityNotificationTopicInput struct { _ struct{} `type:"structure"` @@ -6551,7 +9180,26 @@ func (s *SetIdentityNotificationTopicInput) Validate() error { return nil } +// SetIdentity sets the Identity field's value. +func (s *SetIdentityNotificationTopicInput) SetIdentity(v string) *SetIdentityNotificationTopicInput { + s.Identity = &v + return s +} + +// SetNotificationType sets the NotificationType field's value. +func (s *SetIdentityNotificationTopicInput) SetNotificationType(v string) *SetIdentityNotificationTopicInput { + s.NotificationType = &v + return s +} + +// SetSnsTopic sets the SnsTopic field's value. +func (s *SetIdentityNotificationTopicInput) SetSnsTopic(v string) *SetIdentityNotificationTopicInput { + s.SnsTopic = &v + return s +} + // An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityNotificationTopicResponse type SetIdentityNotificationTopicOutput struct { _ struct{} `type:"structure"` } @@ -6569,6 +9217,7 @@ func (s SetIdentityNotificationTopicOutput) GoString() string { // Represents a request to set the position of a receipt rule in a receipt rule // set. You use receipt rule sets to receive email with Amazon SES. For more // information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetReceiptRulePositionRequest type SetReceiptRulePositionInput struct { _ struct{} `type:"structure"` @@ -6612,7 +9261,26 @@ func (s *SetReceiptRulePositionInput) Validate() error { return nil } +// SetAfter sets the After field's value. +func (s *SetReceiptRulePositionInput) SetAfter(v string) *SetReceiptRulePositionInput { + s.After = &v + return s +} + +// SetRuleName sets the RuleName field's value. +func (s *SetReceiptRulePositionInput) SetRuleName(v string) *SetReceiptRulePositionInput { + s.RuleName = &v + return s +} + +// SetRuleSetName sets the RuleSetName field's value. +func (s *SetReceiptRulePositionInput) SetRuleSetName(v string) *SetReceiptRulePositionInput { + s.RuleSetName = &v + return s +} + // An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetReceiptRulePositionResponse type SetReceiptRulePositionOutput struct { _ struct{} `type:"structure"` } @@ -6633,6 +9301,7 @@ func (s SetReceiptRulePositionOutput) GoString() string { // // For information about setting a stop action in a receipt rule, see the Amazon // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-stop.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/StopAction type StopAction struct { _ struct{} `type:"structure"` @@ -6671,9 +9340,100 @@ func (s *StopAction) Validate() error { return nil } +// SetScope sets the Scope field's value. +func (s *StopAction) SetScope(v string) *StopAction { + s.Scope = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *StopAction) SetTopicArn(v string) *StopAction { + s.TopicArn = &v + return s +} + +// Represents a request to update the event destination of a configuration set. +// Configuration sets enable you to publish email sending events. For information +// about using configuration sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/UpdateConfigurationSetEventDestinationRequest +type UpdateConfigurationSetEventDestinationInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set that you want to update. + // + // ConfigurationSetName is a required field + ConfigurationSetName *string `type:"string" required:"true"` + + // The event destination object that you want to apply to the specified configuration + // set. + // + // EventDestination is a required field + EventDestination *EventDestination `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateConfigurationSetEventDestinationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateConfigurationSetEventDestinationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateConfigurationSetEventDestinationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateConfigurationSetEventDestinationInput"} + if s.ConfigurationSetName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) + } + if s.EventDestination == nil { + invalidParams.Add(request.NewErrParamRequired("EventDestination")) + } + if s.EventDestination != nil { + if err := s.EventDestination.Validate(); err != nil { + invalidParams.AddNested("EventDestination", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *UpdateConfigurationSetEventDestinationInput) SetConfigurationSetName(v string) *UpdateConfigurationSetEventDestinationInput { + s.ConfigurationSetName = &v + return s +} + +// SetEventDestination sets the EventDestination field's value. +func (s *UpdateConfigurationSetEventDestinationInput) SetEventDestination(v *EventDestination) *UpdateConfigurationSetEventDestinationInput { + s.EventDestination = v + return s +} + +// An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/UpdateConfigurationSetEventDestinationResponse +type UpdateConfigurationSetEventDestinationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateConfigurationSetEventDestinationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateConfigurationSetEventDestinationOutput) GoString() string { + return s.String() +} + // Represents a request to update a receipt rule. You use receipt rules to receive // email with Amazon SES. For more information, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/UpdateReceiptRuleRequest type UpdateReceiptRuleInput struct { _ struct{} `type:"structure"` @@ -6719,7 +9479,20 @@ func (s *UpdateReceiptRuleInput) Validate() error { return nil } +// SetRule sets the Rule field's value. +func (s *UpdateReceiptRuleInput) SetRule(v *ReceiptRule) *UpdateReceiptRuleInput { + s.Rule = v + return s +} + +// SetRuleSetName sets the RuleSetName field's value. +func (s *UpdateReceiptRuleInput) SetRuleSetName(v string) *UpdateReceiptRuleInput { + s.RuleSetName = &v + return s +} + // An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/UpdateReceiptRuleResponse type UpdateReceiptRuleOutput struct { _ struct{} `type:"structure"` } @@ -6737,6 +9510,7 @@ func (s UpdateReceiptRuleOutput) GoString() string { // Represents a request to generate the CNAME records needed to set up Easy // DKIM with Amazon SES. For more information about setting up Easy DKIM, see // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/VerifyDomainDkimRequest type VerifyDomainDkimInput struct { _ struct{} `type:"structure"` @@ -6769,8 +9543,15 @@ func (s *VerifyDomainDkimInput) Validate() error { return nil } +// SetDomain sets the Domain field's value. +func (s *VerifyDomainDkimInput) SetDomain(v string) *VerifyDomainDkimInput { + s.Domain = &v + return s +} + // Returns CNAME records that you must publish to the DNS server of your domain // to set up Easy DKIM with Amazon SES. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/VerifyDomainDkimResponse type VerifyDomainDkimOutput struct { _ struct{} `type:"structure"` @@ -6800,10 +9581,17 @@ func (s VerifyDomainDkimOutput) GoString() string { return s.String() } +// SetDkimTokens sets the DkimTokens field's value. +func (s *VerifyDomainDkimOutput) SetDkimTokens(v []*string) *VerifyDomainDkimOutput { + s.DkimTokens = v + return s +} + // Represents a request to begin Amazon SES domain verification and to generate // the TXT records that you must publish to the DNS server of your domain to // complete the verification. For information about domain verification, see // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-domains.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/VerifyDomainIdentityRequest type VerifyDomainIdentityInput struct { _ struct{} `type:"structure"` @@ -6836,8 +9624,15 @@ func (s *VerifyDomainIdentityInput) Validate() error { return nil } +// SetDomain sets the Domain field's value. +func (s *VerifyDomainIdentityInput) SetDomain(v string) *VerifyDomainIdentityInput { + s.Domain = &v + return s +} + // Returns a TXT record that you must publish to the DNS server of your domain // to complete domain verification with Amazon SES. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/VerifyDomainIdentityResponse type VerifyDomainIdentityOutput struct { _ struct{} `type:"structure"` @@ -6858,9 +9653,16 @@ func (s VerifyDomainIdentityOutput) GoString() string { return s.String() } +// SetVerificationToken sets the VerificationToken field's value. +func (s *VerifyDomainIdentityOutput) SetVerificationToken(v string) *VerifyDomainIdentityOutput { + s.VerificationToken = &v + return s +} + // Represents a request to begin email address verification with Amazon SES. // For information about email address verification, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-email-addresses.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/VerifyEmailAddressRequest type VerifyEmailAddressInput struct { _ struct{} `type:"structure"` @@ -6893,6 +9695,13 @@ func (s *VerifyEmailAddressInput) Validate() error { return nil } +// SetEmailAddress sets the EmailAddress field's value. +func (s *VerifyEmailAddressInput) SetEmailAddress(v string) *VerifyEmailAddressInput { + s.EmailAddress = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/VerifyEmailAddressOutput type VerifyEmailAddressOutput struct { _ struct{} `type:"structure"` } @@ -6910,6 +9719,7 @@ func (s VerifyEmailAddressOutput) GoString() string { // Represents a request to begin email address verification with Amazon SES. // For information about email address verification, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-email-addresses.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/VerifyEmailIdentityRequest type VerifyEmailIdentityInput struct { _ struct{} `type:"structure"` @@ -6942,7 +9752,14 @@ func (s *VerifyEmailIdentityInput) Validate() error { return nil } +// SetEmailAddress sets the EmailAddress field's value. +func (s *VerifyEmailIdentityInput) SetEmailAddress(v string) *VerifyEmailIdentityInput { + s.EmailAddress = &v + return s +} + // An empty element returned on a successful request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/VerifyEmailIdentityResponse type VerifyEmailIdentityOutput struct { _ struct{} `type:"structure"` } @@ -6964,6 +9781,7 @@ func (s VerifyEmailIdentityOutput) GoString() string { // // For information using a receipt rule to call Amazon WorkMail, see the Amazon // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-workmail.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/WorkmailAction type WorkmailAction struct { _ struct{} `type:"structure"` @@ -7005,6 +9823,18 @@ func (s *WorkmailAction) Validate() error { return nil } +// SetOrganizationArn sets the OrganizationArn field's value. +func (s *WorkmailAction) SetOrganizationArn(v string) *WorkmailAction { + s.OrganizationArn = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *WorkmailAction) SetTopicArn(v string) *WorkmailAction { + s.TopicArn = &v + return s +} + const ( // BehaviorOnMXFailureUseDefaultValue is a BehaviorOnMXFailure enum value BehaviorOnMXFailureUseDefaultValue = "UseDefaultValue" @@ -7033,6 +9863,11 @@ const ( BounceTypeTemporaryFailure = "TemporaryFailure" ) +const ( + // ConfigurationSetAttributeEventDestinations is a ConfigurationSetAttribute enum value + ConfigurationSetAttributeEventDestinations = "eventDestinations" +) + const ( // CustomMailFromStatusPending is a CustomMailFromStatus enum value CustomMailFromStatusPending = "Pending" @@ -7047,6 +9882,14 @@ const ( CustomMailFromStatusTemporaryFailure = "TemporaryFailure" ) +const ( + // DimensionValueSourceMessageTag is a DimensionValueSource enum value + DimensionValueSourceMessageTag = "messageTag" + + // DimensionValueSourceEmailHeader is a DimensionValueSource enum value + DimensionValueSourceEmailHeader = "emailHeader" +) + const ( // DsnActionFailed is a DsnAction enum value DsnActionFailed = "failed" @@ -7064,6 +9907,23 @@ const ( DsnActionExpanded = "expanded" ) +const ( + // EventTypeSend is a EventType enum value + EventTypeSend = "send" + + // EventTypeReject is a EventType enum value + EventTypeReject = "reject" + + // EventTypeBounce is a EventType enum value + EventTypeBounce = "bounce" + + // EventTypeComplaint is a EventType enum value + EventTypeComplaint = "complaint" + + // EventTypeDelivery is a EventType enum value + EventTypeDelivery = "delivery" +) + const ( // IdentityTypeEmailAddress is a IdentityType enum value IdentityTypeEmailAddress = "EmailAddress" diff --git a/vendor/github.com/aws/aws-sdk-go/service/ses/errors.go b/vendor/github.com/aws/aws-sdk-go/service/ses/errors.go new file mode 100644 index 000000000..704f87e6a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/ses/errors.go @@ -0,0 +1,133 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package ses + +const ( + + // ErrCodeAlreadyExistsException for service response error code + // "AlreadyExists". + // + // Indicates that a resource could not be created because of a naming conflict. + ErrCodeAlreadyExistsException = "AlreadyExists" + + // ErrCodeCannotDeleteException for service response error code + // "CannotDelete". + // + // Indicates that the delete operation could not be completed. + ErrCodeCannotDeleteException = "CannotDelete" + + // ErrCodeConfigurationSetAlreadyExistsException for service response error code + // "ConfigurationSetAlreadyExists". + // + // Indicates that the configuration set could not be created because of a naming + // conflict. + ErrCodeConfigurationSetAlreadyExistsException = "ConfigurationSetAlreadyExists" + + // ErrCodeConfigurationSetDoesNotExistException for service response error code + // "ConfigurationSetDoesNotExist". + // + // Indicates that the configuration set does not exist. + ErrCodeConfigurationSetDoesNotExistException = "ConfigurationSetDoesNotExist" + + // ErrCodeEventDestinationAlreadyExistsException for service response error code + // "EventDestinationAlreadyExists". + // + // Indicates that the event destination could not be created because of a naming + // conflict. + ErrCodeEventDestinationAlreadyExistsException = "EventDestinationAlreadyExists" + + // ErrCodeEventDestinationDoesNotExistException for service response error code + // "EventDestinationDoesNotExist". + // + // Indicates that the event destination does not exist. + ErrCodeEventDestinationDoesNotExistException = "EventDestinationDoesNotExist" + + // ErrCodeInvalidCloudWatchDestinationException for service response error code + // "InvalidCloudWatchDestination". + // + // Indicates that the Amazon CloudWatch destination is invalid. See the error + // message for details. + ErrCodeInvalidCloudWatchDestinationException = "InvalidCloudWatchDestination" + + // ErrCodeInvalidConfigurationSetException for service response error code + // "InvalidConfigurationSet". + // + // Indicates that the configuration set is invalid. See the error message for + // details. + ErrCodeInvalidConfigurationSetException = "InvalidConfigurationSet" + + // ErrCodeInvalidFirehoseDestinationException for service response error code + // "InvalidFirehoseDestination". + // + // Indicates that the Amazon Kinesis Firehose destination is invalid. See the + // error message for details. + ErrCodeInvalidFirehoseDestinationException = "InvalidFirehoseDestination" + + // ErrCodeInvalidLambdaFunctionException for service response error code + // "InvalidLambdaFunction". + // + // Indicates that the provided AWS Lambda function is invalid, or that Amazon + // SES could not execute the provided function, possibly due to permissions + // issues. For information about giving permissions, see the Amazon SES Developer + // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). + ErrCodeInvalidLambdaFunctionException = "InvalidLambdaFunction" + + // ErrCodeInvalidPolicyException for service response error code + // "InvalidPolicy". + // + // Indicates that the provided policy is invalid. Check the error stack for + // more information about what caused the error. + ErrCodeInvalidPolicyException = "InvalidPolicy" + + // ErrCodeInvalidS3ConfigurationException for service response error code + // "InvalidS3Configuration". + // + // Indicates that the provided Amazon S3 bucket or AWS KMS encryption key is + // invalid, or that Amazon SES could not publish to the bucket, possibly due + // to permissions issues. For information about giving permissions, see the + // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). + ErrCodeInvalidS3ConfigurationException = "InvalidS3Configuration" + + // ErrCodeInvalidSnsTopicException for service response error code + // "InvalidSnsTopic". + // + // Indicates that the provided Amazon SNS topic is invalid, or that Amazon SES + // could not publish to the topic, possibly due to permissions issues. For information + // about giving permissions, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). + ErrCodeInvalidSnsTopicException = "InvalidSnsTopic" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceeded". + // + // Indicates that a resource could not be created because of service limits. + // For a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). + ErrCodeLimitExceededException = "LimitExceeded" + + // ErrCodeMailFromDomainNotVerifiedException for service response error code + // "MailFromDomainNotVerifiedException". + // + // Indicates that the message could not be sent because Amazon SES could not + // read the MX record required to use the specified MAIL FROM domain. For information + // about editing the custom MAIL FROM domain settings for an identity, see the + // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from-edit.html). + ErrCodeMailFromDomainNotVerifiedException = "MailFromDomainNotVerifiedException" + + // ErrCodeMessageRejected for service response error code + // "MessageRejected". + // + // Indicates that the action failed, and the message could not be sent. Check + // the error stack for more information about what caused the error. + ErrCodeMessageRejected = "MessageRejected" + + // ErrCodeRuleDoesNotExistException for service response error code + // "RuleDoesNotExist". + // + // Indicates that the provided receipt rule does not exist. + ErrCodeRuleDoesNotExistException = "RuleDoesNotExist" + + // ErrCodeRuleSetDoesNotExistException for service response error code + // "RuleSetDoesNotExist". + // + // Indicates that the provided receipt rule set does not exist. + ErrCodeRuleSetDoesNotExistException = "RuleSetDoesNotExist" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ses/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/ses/examples_test.go index 309c725ad..e2c6ddf03 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ses/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ses/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSES_CloneReceiptRuleSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -41,13 +37,75 @@ func ExampleSES_CloneReceiptRuleSet() { fmt.Println(resp) } -func ExampleSES_CreateReceiptFilter() { - sess, err := session.NewSession() +func ExampleSES_CreateConfigurationSet() { + sess := session.Must(session.NewSession()) + + svc := ses.New(sess) + + params := &ses.CreateConfigurationSetInput{ + ConfigurationSet: &ses.ConfigurationSet{ // Required + Name: aws.String("ConfigurationSetName"), // Required + }, + } + resp, err := svc.CreateConfigurationSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSES_CreateConfigurationSetEventDestination() { + sess := session.Must(session.NewSession()) + + svc := ses.New(sess) + + params := &ses.CreateConfigurationSetEventDestinationInput{ + ConfigurationSetName: aws.String("ConfigurationSetName"), // Required + EventDestination: &ses.EventDestination{ // Required + MatchingEventTypes: []*string{ // Required + aws.String("EventType"), // Required + // More values... + }, + Name: aws.String("EventDestinationName"), // Required + CloudWatchDestination: &ses.CloudWatchDestination{ + DimensionConfigurations: []*ses.CloudWatchDimensionConfiguration{ // Required + { // Required + DefaultDimensionValue: aws.String("DefaultDimensionValue"), // Required + DimensionName: aws.String("DimensionName"), // Required + DimensionValueSource: aws.String("DimensionValueSource"), // Required + }, + // More values... + }, + }, + Enabled: aws.Bool(true), + KinesisFirehoseDestination: &ses.KinesisFirehoseDestination{ + DeliveryStreamARN: aws.String("AmazonResourceName"), // Required + IAMRoleARN: aws.String("AmazonResourceName"), // Required + }, + }, + } + resp, err := svc.CreateConfigurationSetEventDestination(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSES_CreateReceiptFilter() { + sess := session.Must(session.NewSession()) + svc := ses.New(sess) params := &ses.CreateReceiptFilterInput{ @@ -73,11 +131,7 @@ func ExampleSES_CreateReceiptFilter() { } func ExampleSES_CreateReceiptRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -148,11 +202,7 @@ func ExampleSES_CreateReceiptRule() { } func ExampleSES_CreateReceiptRuleSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -172,13 +222,52 @@ func ExampleSES_CreateReceiptRuleSet() { fmt.Println(resp) } -func ExampleSES_DeleteIdentity() { - sess, err := session.NewSession() +func ExampleSES_DeleteConfigurationSet() { + sess := session.Must(session.NewSession()) + + svc := ses.New(sess) + + params := &ses.DeleteConfigurationSetInput{ + ConfigurationSetName: aws.String("ConfigurationSetName"), // Required + } + resp, err := svc.DeleteConfigurationSet(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSES_DeleteConfigurationSetEventDestination() { + sess := session.Must(session.NewSession()) + + svc := ses.New(sess) + + params := &ses.DeleteConfigurationSetEventDestinationInput{ + ConfigurationSetName: aws.String("ConfigurationSetName"), // Required + EventDestinationName: aws.String("EventDestinationName"), // Required + } + resp, err := svc.DeleteConfigurationSetEventDestination(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSES_DeleteIdentity() { + sess := session.Must(session.NewSession()) + svc := ses.New(sess) params := &ses.DeleteIdentityInput{ @@ -198,11 +287,7 @@ func ExampleSES_DeleteIdentity() { } func ExampleSES_DeleteIdentityPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -224,11 +309,7 @@ func ExampleSES_DeleteIdentityPolicy() { } func ExampleSES_DeleteReceiptFilter() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -249,11 +330,7 @@ func ExampleSES_DeleteReceiptFilter() { } func ExampleSES_DeleteReceiptRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -275,11 +352,7 @@ func ExampleSES_DeleteReceiptRule() { } func ExampleSES_DeleteReceiptRuleSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -300,11 +373,7 @@ func ExampleSES_DeleteReceiptRuleSet() { } func ExampleSES_DeleteVerifiedEmailAddress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -325,11 +394,7 @@ func ExampleSES_DeleteVerifiedEmailAddress() { } func ExampleSES_DescribeActiveReceiptRuleSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -347,13 +412,34 @@ func ExampleSES_DescribeActiveReceiptRuleSet() { fmt.Println(resp) } -func ExampleSES_DescribeReceiptRule() { - sess, err := session.NewSession() +func ExampleSES_DescribeConfigurationSet() { + sess := session.Must(session.NewSession()) + + svc := ses.New(sess) + + params := &ses.DescribeConfigurationSetInput{ + ConfigurationSetName: aws.String("ConfigurationSetName"), // Required + ConfigurationSetAttributeNames: []*string{ + aws.String("ConfigurationSetAttribute"), // Required + // More values... + }, + } + resp, err := svc.DescribeConfigurationSet(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSES_DescribeReceiptRule() { + sess := session.Must(session.NewSession()) + svc := ses.New(sess) params := &ses.DescribeReceiptRuleInput{ @@ -374,11 +460,7 @@ func ExampleSES_DescribeReceiptRule() { } func ExampleSES_DescribeReceiptRuleSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -399,11 +481,7 @@ func ExampleSES_DescribeReceiptRuleSet() { } func ExampleSES_GetIdentityDkimAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -427,11 +505,7 @@ func ExampleSES_GetIdentityDkimAttributes() { } func ExampleSES_GetIdentityMailFromDomainAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -455,11 +529,7 @@ func ExampleSES_GetIdentityMailFromDomainAttributes() { } func ExampleSES_GetIdentityNotificationAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -483,11 +553,7 @@ func ExampleSES_GetIdentityNotificationAttributes() { } func ExampleSES_GetIdentityPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -512,11 +578,7 @@ func ExampleSES_GetIdentityPolicies() { } func ExampleSES_GetIdentityVerificationAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -540,11 +602,7 @@ func ExampleSES_GetIdentityVerificationAttributes() { } func ExampleSES_GetSendQuota() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -563,11 +621,7 @@ func ExampleSES_GetSendQuota() { } func ExampleSES_GetSendStatistics() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -585,13 +639,31 @@ func ExampleSES_GetSendStatistics() { fmt.Println(resp) } -func ExampleSES_ListIdentities() { - sess, err := session.NewSession() +func ExampleSES_ListConfigurationSets() { + sess := session.Must(session.NewSession()) + + svc := ses.New(sess) + + params := &ses.ListConfigurationSetsInput{ + MaxItems: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListConfigurationSets(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSES_ListIdentities() { + sess := session.Must(session.NewSession()) + svc := ses.New(sess) params := &ses.ListIdentitiesInput{ @@ -613,11 +685,7 @@ func ExampleSES_ListIdentities() { } func ExampleSES_ListIdentityPolicies() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -638,11 +706,7 @@ func ExampleSES_ListIdentityPolicies() { } func ExampleSES_ListReceiptFilters() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -661,11 +725,7 @@ func ExampleSES_ListReceiptFilters() { } func ExampleSES_ListReceiptRuleSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -686,11 +746,7 @@ func ExampleSES_ListReceiptRuleSets() { } func ExampleSES_ListVerifiedEmailAddresses() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -709,11 +765,7 @@ func ExampleSES_ListVerifiedEmailAddresses() { } func ExampleSES_PutIdentityPolicy() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -736,11 +788,7 @@ func ExampleSES_PutIdentityPolicy() { } func ExampleSES_ReorderReceiptRuleSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -765,11 +813,7 @@ func ExampleSES_ReorderReceiptRuleSet() { } func ExampleSES_SendBounce() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -827,11 +871,7 @@ func ExampleSES_SendBounce() { } func ExampleSES_SendEmail() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -866,7 +906,8 @@ func ExampleSES_SendEmail() { Charset: aws.String("Charset"), }, }, - Source: aws.String("Address"), // Required + Source: aws.String("Address"), // Required + ConfigurationSetName: aws.String("ConfigurationSetName"), ReplyToAddresses: []*string{ aws.String("Address"), // Required // More values... @@ -874,6 +915,13 @@ func ExampleSES_SendEmail() { ReturnPath: aws.String("Address"), ReturnPathArn: aws.String("AmazonResourceName"), SourceArn: aws.String("AmazonResourceName"), + Tags: []*ses.MessageTag{ + { // Required + Name: aws.String("MessageTagName"), // Required + Value: aws.String("MessageTagValue"), // Required + }, + // More values... + }, } resp, err := svc.SendEmail(params) @@ -889,11 +937,7 @@ func ExampleSES_SendEmail() { } func ExampleSES_SendRawEmail() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -901,6 +945,7 @@ func ExampleSES_SendRawEmail() { RawMessage: &ses.RawMessage{ // Required Data: []byte("PAYLOAD"), // Required }, + ConfigurationSetName: aws.String("ConfigurationSetName"), Destinations: []*string{ aws.String("Address"), // Required // More values... @@ -909,6 +954,13 @@ func ExampleSES_SendRawEmail() { ReturnPathArn: aws.String("AmazonResourceName"), Source: aws.String("Address"), SourceArn: aws.String("AmazonResourceName"), + Tags: []*ses.MessageTag{ + { // Required + Name: aws.String("MessageTagName"), // Required + Value: aws.String("MessageTagValue"), // Required + }, + // More values... + }, } resp, err := svc.SendRawEmail(params) @@ -924,11 +976,7 @@ func ExampleSES_SendRawEmail() { } func ExampleSES_SetActiveReceiptRuleSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -949,11 +997,7 @@ func ExampleSES_SetActiveReceiptRuleSet() { } func ExampleSES_SetIdentityDkimEnabled() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -975,11 +1019,7 @@ func ExampleSES_SetIdentityDkimEnabled() { } func ExampleSES_SetIdentityFeedbackForwardingEnabled() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1001,11 +1041,7 @@ func ExampleSES_SetIdentityFeedbackForwardingEnabled() { } func ExampleSES_SetIdentityHeadersInNotificationsEnabled() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1028,11 +1064,7 @@ func ExampleSES_SetIdentityHeadersInNotificationsEnabled() { } func ExampleSES_SetIdentityMailFromDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1055,11 +1087,7 @@ func ExampleSES_SetIdentityMailFromDomain() { } func ExampleSES_SetIdentityNotificationTopic() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1082,11 +1110,7 @@ func ExampleSES_SetIdentityNotificationTopic() { } func ExampleSES_SetReceiptRulePosition() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1108,13 +1132,52 @@ func ExampleSES_SetReceiptRulePosition() { fmt.Println(resp) } -func ExampleSES_UpdateReceiptRule() { - sess, err := session.NewSession() +func ExampleSES_UpdateConfigurationSetEventDestination() { + sess := session.Must(session.NewSession()) + + svc := ses.New(sess) + + params := &ses.UpdateConfigurationSetEventDestinationInput{ + ConfigurationSetName: aws.String("ConfigurationSetName"), // Required + EventDestination: &ses.EventDestination{ // Required + MatchingEventTypes: []*string{ // Required + aws.String("EventType"), // Required + // More values... + }, + Name: aws.String("EventDestinationName"), // Required + CloudWatchDestination: &ses.CloudWatchDestination{ + DimensionConfigurations: []*ses.CloudWatchDimensionConfiguration{ // Required + { // Required + DefaultDimensionValue: aws.String("DefaultDimensionValue"), // Required + DimensionName: aws.String("DimensionName"), // Required + DimensionValueSource: aws.String("DimensionValueSource"), // Required + }, + // More values... + }, + }, + Enabled: aws.Bool(true), + KinesisFirehoseDestination: &ses.KinesisFirehoseDestination{ + DeliveryStreamARN: aws.String("AmazonResourceName"), // Required + IAMRoleARN: aws.String("AmazonResourceName"), // Required + }, + }, + } + resp, err := svc.UpdateConfigurationSetEventDestination(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSES_UpdateReceiptRule() { + sess := session.Must(session.NewSession()) + svc := ses.New(sess) params := &ses.UpdateReceiptRuleInput{ @@ -1183,11 +1246,7 @@ func ExampleSES_UpdateReceiptRule() { } func ExampleSES_VerifyDomainDkim() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1208,11 +1267,7 @@ func ExampleSES_VerifyDomainDkim() { } func ExampleSES_VerifyDomainIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1233,11 +1288,7 @@ func ExampleSES_VerifyDomainIdentity() { } func ExampleSES_VerifyEmailAddress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) @@ -1258,11 +1309,7 @@ func ExampleSES_VerifyEmailAddress() { } func ExampleSES_VerifyEmailIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ses.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ses/service.go b/vendor/github.com/aws/aws-sdk-go/service/ses/service.go index 2952ac131..187c1d6af 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ses/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ses/service.go @@ -15,11 +15,12 @@ import ( // documentation is intended to be used in conjunction with the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/Welcome.html). // -// For a list of Amazon SES endpoints to use in service requests, see Regions +// For a list of Amazon SES endpoints to use in service requests, see Regions // and Amazon SES (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/regions.html) // in the Amazon SES Developer Guide. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01 type SES struct { *client.Client } @@ -30,8 +31,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "email" +// Service information constants +const ( + ServiceName = "email" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the SES client with a session. // If additional configuration is needed for the client instance use the optional @@ -44,18 +48,21 @@ const ServiceName = "email" // // Create a SES client with additional configuration // svc := ses.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *SES { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *SES { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *SES { + if len(signingName) == 0 { + signingName = "ses" + } svc := &SES{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, - SigningName: "ses", + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2010-12-01", diff --git a/vendor/github.com/aws/aws-sdk-go/service/ses/sesiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/ses/sesiface/interface.go index 21c0decb4..65c865cd5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ses/sesiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ses/sesiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockSESClient{} // @@ -63,6 +63,14 @@ type SESAPI interface { CloneReceiptRuleSet(*ses.CloneReceiptRuleSetInput) (*ses.CloneReceiptRuleSetOutput, error) + CreateConfigurationSetRequest(*ses.CreateConfigurationSetInput) (*request.Request, *ses.CreateConfigurationSetOutput) + + CreateConfigurationSet(*ses.CreateConfigurationSetInput) (*ses.CreateConfigurationSetOutput, error) + + CreateConfigurationSetEventDestinationRequest(*ses.CreateConfigurationSetEventDestinationInput) (*request.Request, *ses.CreateConfigurationSetEventDestinationOutput) + + CreateConfigurationSetEventDestination(*ses.CreateConfigurationSetEventDestinationInput) (*ses.CreateConfigurationSetEventDestinationOutput, error) + CreateReceiptFilterRequest(*ses.CreateReceiptFilterInput) (*request.Request, *ses.CreateReceiptFilterOutput) CreateReceiptFilter(*ses.CreateReceiptFilterInput) (*ses.CreateReceiptFilterOutput, error) @@ -75,6 +83,14 @@ type SESAPI interface { CreateReceiptRuleSet(*ses.CreateReceiptRuleSetInput) (*ses.CreateReceiptRuleSetOutput, error) + DeleteConfigurationSetRequest(*ses.DeleteConfigurationSetInput) (*request.Request, *ses.DeleteConfigurationSetOutput) + + DeleteConfigurationSet(*ses.DeleteConfigurationSetInput) (*ses.DeleteConfigurationSetOutput, error) + + DeleteConfigurationSetEventDestinationRequest(*ses.DeleteConfigurationSetEventDestinationInput) (*request.Request, *ses.DeleteConfigurationSetEventDestinationOutput) + + DeleteConfigurationSetEventDestination(*ses.DeleteConfigurationSetEventDestinationInput) (*ses.DeleteConfigurationSetEventDestinationOutput, error) + DeleteIdentityRequest(*ses.DeleteIdentityInput) (*request.Request, *ses.DeleteIdentityOutput) DeleteIdentity(*ses.DeleteIdentityInput) (*ses.DeleteIdentityOutput, error) @@ -103,6 +119,10 @@ type SESAPI interface { DescribeActiveReceiptRuleSet(*ses.DescribeActiveReceiptRuleSetInput) (*ses.DescribeActiveReceiptRuleSetOutput, error) + DescribeConfigurationSetRequest(*ses.DescribeConfigurationSetInput) (*request.Request, *ses.DescribeConfigurationSetOutput) + + DescribeConfigurationSet(*ses.DescribeConfigurationSetInput) (*ses.DescribeConfigurationSetOutput, error) + DescribeReceiptRuleRequest(*ses.DescribeReceiptRuleInput) (*request.Request, *ses.DescribeReceiptRuleOutput) DescribeReceiptRule(*ses.DescribeReceiptRuleInput) (*ses.DescribeReceiptRuleOutput, error) @@ -139,6 +159,10 @@ type SESAPI interface { GetSendStatistics(*ses.GetSendStatisticsInput) (*ses.GetSendStatisticsOutput, error) + ListConfigurationSetsRequest(*ses.ListConfigurationSetsInput) (*request.Request, *ses.ListConfigurationSetsOutput) + + ListConfigurationSets(*ses.ListConfigurationSetsInput) (*ses.ListConfigurationSetsOutput, error) + ListIdentitiesRequest(*ses.ListIdentitiesInput) (*request.Request, *ses.ListIdentitiesOutput) ListIdentities(*ses.ListIdentitiesInput) (*ses.ListIdentitiesOutput, error) @@ -209,6 +233,10 @@ type SESAPI interface { SetReceiptRulePosition(*ses.SetReceiptRulePositionInput) (*ses.SetReceiptRulePositionOutput, error) + UpdateConfigurationSetEventDestinationRequest(*ses.UpdateConfigurationSetEventDestinationInput) (*request.Request, *ses.UpdateConfigurationSetEventDestinationOutput) + + UpdateConfigurationSetEventDestination(*ses.UpdateConfigurationSetEventDestinationInput) (*ses.UpdateConfigurationSetEventDestinationOutput, error) + UpdateReceiptRuleRequest(*ses.UpdateReceiptRuleInput) (*request.Request, *ses.UpdateReceiptRuleOutput) UpdateReceiptRule(*ses.UpdateReceiptRuleInput) (*ses.UpdateReceiptRuleOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sfn/api.go b/vendor/github.com/aws/aws-sdk-go/service/sfn/api.go new file mode 100644 index 000000000..c6b207e1c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sfn/api.go @@ -0,0 +1,4070 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package sfn provides a client for AWS Step Functions. +package sfn + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opCreateActivity = "CreateActivity" + +// CreateActivityRequest generates a "aws/request.Request" representing the +// client's request for the CreateActivity operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateActivity for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateActivity method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateActivityRequest method. +// req, resp := client.CreateActivityRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CreateActivity +func (c *SFN) CreateActivityRequest(input *CreateActivityInput) (req *request.Request, output *CreateActivityOutput) { + op := &request.Operation{ + Name: opCreateActivity, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateActivityInput{} + } + + output = &CreateActivityOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateActivity API operation for AWS Step Functions. +// +// Creates an activity. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Step Functions's +// API operation CreateActivity for usage and error information. +// +// Returned Error Codes: +// * ErrCodeActivityLimitExceeded "ActivityLimitExceeded" +// The maximum number of activities has been reached. Existing activities must +// be deleted before a new activity can be created. +// +// * ErrCodeInvalidName "InvalidName" +// The provided name is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CreateActivity +func (c *SFN) CreateActivity(input *CreateActivityInput) (*CreateActivityOutput, error) { + req, out := c.CreateActivityRequest(input) + err := req.Send() + return out, err +} + +const opCreateStateMachine = "CreateStateMachine" + +// CreateStateMachineRequest generates a "aws/request.Request" representing the +// client's request for the CreateStateMachine operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateStateMachine for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateStateMachine method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateStateMachineRequest method. +// req, resp := client.CreateStateMachineRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CreateStateMachine +func (c *SFN) CreateStateMachineRequest(input *CreateStateMachineInput) (req *request.Request, output *CreateStateMachineOutput) { + op := &request.Operation{ + Name: opCreateStateMachine, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateStateMachineInput{} + } + + output = &CreateStateMachineOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateStateMachine API operation for AWS Step Functions. +// +// Creates a state machine. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Step Functions's +// API operation CreateStateMachine for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidArn "InvalidArn" +// The provided Amazon Resource Name (ARN) is invalid. +// +// * ErrCodeInvalidDefinition "InvalidDefinition" +// The provided Amazon States Language definition is invalid. +// +// * ErrCodeInvalidName "InvalidName" +// The provided name is invalid. +// +// * ErrCodeStateMachineAlreadyExists "StateMachineAlreadyExists" +// A state machine with the same name but a different definition or role ARN +// already exists. +// +// * ErrCodeStateMachineDeleting "StateMachineDeleting" +// The specified state machine is being deleted. +// +// * ErrCodeStateMachineLimitExceeded "StateMachineLimitExceeded" +// The maximum number of state machines has been reached. Existing state machines +// must be deleted before a new state machine can be created. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CreateStateMachine +func (c *SFN) CreateStateMachine(input *CreateStateMachineInput) (*CreateStateMachineOutput, error) { + req, out := c.CreateStateMachineRequest(input) + err := req.Send() + return out, err +} + +const opDeleteActivity = "DeleteActivity" + +// DeleteActivityRequest generates a "aws/request.Request" representing the +// client's request for the DeleteActivity operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteActivity for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteActivity method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteActivityRequest method. +// req, resp := client.DeleteActivityRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteActivity +func (c *SFN) DeleteActivityRequest(input *DeleteActivityInput) (req *request.Request, output *DeleteActivityOutput) { + op := &request.Operation{ + Name: opDeleteActivity, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteActivityInput{} + } + + output = &DeleteActivityOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteActivity API operation for AWS Step Functions. +// +// Deletes an activity. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Step Functions's +// API operation DeleteActivity for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidArn "InvalidArn" +// The provided Amazon Resource Name (ARN) is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteActivity +func (c *SFN) DeleteActivity(input *DeleteActivityInput) (*DeleteActivityOutput, error) { + req, out := c.DeleteActivityRequest(input) + err := req.Send() + return out, err +} + +const opDeleteStateMachine = "DeleteStateMachine" + +// DeleteStateMachineRequest generates a "aws/request.Request" representing the +// client's request for the DeleteStateMachine operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteStateMachine for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteStateMachine method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteStateMachineRequest method. +// req, resp := client.DeleteStateMachineRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteStateMachine +func (c *SFN) DeleteStateMachineRequest(input *DeleteStateMachineInput) (req *request.Request, output *DeleteStateMachineOutput) { + op := &request.Operation{ + Name: opDeleteStateMachine, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteStateMachineInput{} + } + + output = &DeleteStateMachineOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteStateMachine API operation for AWS Step Functions. +// +// Deletes a state machine. This is an asynchronous operation-- it sets the +// state machine's status to "DELETING" and begins the delete process. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Step Functions's +// API operation DeleteStateMachine for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidArn "InvalidArn" +// The provided Amazon Resource Name (ARN) is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteStateMachine +func (c *SFN) DeleteStateMachine(input *DeleteStateMachineInput) (*DeleteStateMachineOutput, error) { + req, out := c.DeleteStateMachineRequest(input) + err := req.Send() + return out, err +} + +const opDescribeActivity = "DescribeActivity" + +// DescribeActivityRequest generates a "aws/request.Request" representing the +// client's request for the DescribeActivity operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeActivity for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeActivity method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeActivityRequest method. +// req, resp := client.DescribeActivityRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeActivity +func (c *SFN) DescribeActivityRequest(input *DescribeActivityInput) (req *request.Request, output *DescribeActivityOutput) { + op := &request.Operation{ + Name: opDescribeActivity, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeActivityInput{} + } + + output = &DescribeActivityOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeActivity API operation for AWS Step Functions. +// +// Describes an activity. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Step Functions's +// API operation DescribeActivity for usage and error information. +// +// Returned Error Codes: +// * ErrCodeActivityDoesNotExist "ActivityDoesNotExist" +// The specified activity does not exist. +// +// * ErrCodeInvalidArn "InvalidArn" +// The provided Amazon Resource Name (ARN) is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeActivity +func (c *SFN) DescribeActivity(input *DescribeActivityInput) (*DescribeActivityOutput, error) { + req, out := c.DescribeActivityRequest(input) + err := req.Send() + return out, err +} + +const opDescribeExecution = "DescribeExecution" + +// DescribeExecutionRequest generates a "aws/request.Request" representing the +// client's request for the DescribeExecution operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeExecution for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeExecution method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeExecutionRequest method. +// req, resp := client.DescribeExecutionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeExecution +func (c *SFN) DescribeExecutionRequest(input *DescribeExecutionInput) (req *request.Request, output *DescribeExecutionOutput) { + op := &request.Operation{ + Name: opDescribeExecution, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeExecutionInput{} + } + + output = &DescribeExecutionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeExecution API operation for AWS Step Functions. +// +// Describes an execution. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Step Functions's +// API operation DescribeExecution for usage and error information. +// +// Returned Error Codes: +// * ErrCodeExecutionDoesNotExist "ExecutionDoesNotExist" +// The specified execution does not exist. +// +// * ErrCodeInvalidArn "InvalidArn" +// The provided Amazon Resource Name (ARN) is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeExecution +func (c *SFN) DescribeExecution(input *DescribeExecutionInput) (*DescribeExecutionOutput, error) { + req, out := c.DescribeExecutionRequest(input) + err := req.Send() + return out, err +} + +const opDescribeStateMachine = "DescribeStateMachine" + +// DescribeStateMachineRequest generates a "aws/request.Request" representing the +// client's request for the DescribeStateMachine operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeStateMachine for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeStateMachine method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeStateMachineRequest method. +// req, resp := client.DescribeStateMachineRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeStateMachine +func (c *SFN) DescribeStateMachineRequest(input *DescribeStateMachineInput) (req *request.Request, output *DescribeStateMachineOutput) { + op := &request.Operation{ + Name: opDescribeStateMachine, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeStateMachineInput{} + } + + output = &DescribeStateMachineOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeStateMachine API operation for AWS Step Functions. +// +// Describes a state machine. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Step Functions's +// API operation DescribeStateMachine for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidArn "InvalidArn" +// The provided Amazon Resource Name (ARN) is invalid. +// +// * ErrCodeStateMachineDoesNotExist "StateMachineDoesNotExist" +// The specified state machine does not exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeStateMachine +func (c *SFN) DescribeStateMachine(input *DescribeStateMachineInput) (*DescribeStateMachineOutput, error) { + req, out := c.DescribeStateMachineRequest(input) + err := req.Send() + return out, err +} + +const opGetActivityTask = "GetActivityTask" + +// GetActivityTaskRequest generates a "aws/request.Request" representing the +// client's request for the GetActivityTask operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetActivityTask for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetActivityTask method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetActivityTaskRequest method. +// req, resp := client.GetActivityTaskRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetActivityTask +func (c *SFN) GetActivityTaskRequest(input *GetActivityTaskInput) (req *request.Request, output *GetActivityTaskOutput) { + op := &request.Operation{ + Name: opGetActivityTask, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetActivityTaskInput{} + } + + output = &GetActivityTaskOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetActivityTask API operation for AWS Step Functions. +// +// Used by workers to retrieve a task (with the specified activity ARN) scheduled +// for execution by a running state machine. This initiates a long poll, where +// the service holds the HTTP connection open and responds as soon as a task +// becomes available (i.e. an execution of a task of this type is needed.) The +// maximum time the service holds on to the request before responding is 60 +// seconds. If no task is available within 60 seconds, the poll will return +// an empty result, that is, the taskToken returned is an empty string. +// +// Workers should set their client side socket timeout to at least 65 seconds +// (5 seconds higher than the maximum time the service may hold the poll request). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Step Functions's +// API operation GetActivityTask for usage and error information. +// +// Returned Error Codes: +// * ErrCodeActivityDoesNotExist "ActivityDoesNotExist" +// The specified activity does not exist. +// +// * ErrCodeActivityWorkerLimitExceeded "ActivityWorkerLimitExceeded" +// The maximum number of workers concurrently polling for activity tasks has +// been reached. +// +// * ErrCodeInvalidArn "InvalidArn" +// The provided Amazon Resource Name (ARN) is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetActivityTask +func (c *SFN) GetActivityTask(input *GetActivityTaskInput) (*GetActivityTaskOutput, error) { + req, out := c.GetActivityTaskRequest(input) + err := req.Send() + return out, err +} + +const opGetExecutionHistory = "GetExecutionHistory" + +// GetExecutionHistoryRequest generates a "aws/request.Request" representing the +// client's request for the GetExecutionHistory operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetExecutionHistory for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetExecutionHistory method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetExecutionHistoryRequest method. +// req, resp := client.GetExecutionHistoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetExecutionHistory +func (c *SFN) GetExecutionHistoryRequest(input *GetExecutionHistoryInput) (req *request.Request, output *GetExecutionHistoryOutput) { + op := &request.Operation{ + Name: opGetExecutionHistory, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &GetExecutionHistoryInput{} + } + + output = &GetExecutionHistoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetExecutionHistory API operation for AWS Step Functions. +// +// Returns the history of the specified execution as a list of events. By default, +// the results are returned in ascending order of the timeStamp of the events. +// Use the reverseOrder parameter to get the latest events first. The results +// may be split into multiple pages. To retrieve subsequent pages, make the +// call again using the nextToken returned by the previous call. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Step Functions's +// API operation GetExecutionHistory for usage and error information. +// +// Returned Error Codes: +// * ErrCodeExecutionDoesNotExist "ExecutionDoesNotExist" +// The specified execution does not exist. +// +// * ErrCodeInvalidArn "InvalidArn" +// The provided Amazon Resource Name (ARN) is invalid. +// +// * ErrCodeInvalidToken "InvalidToken" +// The provided token is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetExecutionHistory +func (c *SFN) GetExecutionHistory(input *GetExecutionHistoryInput) (*GetExecutionHistoryOutput, error) { + req, out := c.GetExecutionHistoryRequest(input) + err := req.Send() + return out, err +} + +// GetExecutionHistoryPages iterates over the pages of a GetExecutionHistory operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetExecutionHistory method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a GetExecutionHistory operation. +// pageNum := 0 +// err := client.GetExecutionHistoryPages(params, +// func(page *GetExecutionHistoryOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SFN) GetExecutionHistoryPages(input *GetExecutionHistoryInput, fn func(p *GetExecutionHistoryOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.GetExecutionHistoryRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*GetExecutionHistoryOutput), lastPage) + }) +} + +const opListActivities = "ListActivities" + +// ListActivitiesRequest generates a "aws/request.Request" representing the +// client's request for the ListActivities operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListActivities for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListActivities method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListActivitiesRequest method. +// req, resp := client.ListActivitiesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListActivities +func (c *SFN) ListActivitiesRequest(input *ListActivitiesInput) (req *request.Request, output *ListActivitiesOutput) { + op := &request.Operation{ + Name: opListActivities, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListActivitiesInput{} + } + + output = &ListActivitiesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListActivities API operation for AWS Step Functions. +// +// Lists the existing activities. The results may be split into multiple pages. +// To retrieve subsequent pages, make the call again using the nextToken returned +// by the previous call. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Step Functions's +// API operation ListActivities for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidToken "InvalidToken" +// The provided token is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListActivities +func (c *SFN) ListActivities(input *ListActivitiesInput) (*ListActivitiesOutput, error) { + req, out := c.ListActivitiesRequest(input) + err := req.Send() + return out, err +} + +// ListActivitiesPages iterates over the pages of a ListActivities operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListActivities method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListActivities operation. +// pageNum := 0 +// err := client.ListActivitiesPages(params, +// func(page *ListActivitiesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SFN) ListActivitiesPages(input *ListActivitiesInput, fn func(p *ListActivitiesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListActivitiesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListActivitiesOutput), lastPage) + }) +} + +const opListExecutions = "ListExecutions" + +// ListExecutionsRequest generates a "aws/request.Request" representing the +// client's request for the ListExecutions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListExecutions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListExecutions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListExecutionsRequest method. +// req, resp := client.ListExecutionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListExecutions +func (c *SFN) ListExecutionsRequest(input *ListExecutionsInput) (req *request.Request, output *ListExecutionsOutput) { + op := &request.Operation{ + Name: opListExecutions, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListExecutionsInput{} + } + + output = &ListExecutionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListExecutions API operation for AWS Step Functions. +// +// Lists the executions of a state machine that meet the filtering criteria. +// The results may be split into multiple pages. To retrieve subsequent pages, +// make the call again using the nextToken returned by the previous call. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Step Functions's +// API operation ListExecutions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidArn "InvalidArn" +// The provided Amazon Resource Name (ARN) is invalid. +// +// * ErrCodeInvalidToken "InvalidToken" +// The provided token is invalid. +// +// * ErrCodeStateMachineDoesNotExist "StateMachineDoesNotExist" +// The specified state machine does not exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListExecutions +func (c *SFN) ListExecutions(input *ListExecutionsInput) (*ListExecutionsOutput, error) { + req, out := c.ListExecutionsRequest(input) + err := req.Send() + return out, err +} + +// ListExecutionsPages iterates over the pages of a ListExecutions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListExecutions method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListExecutions operation. +// pageNum := 0 +// err := client.ListExecutionsPages(params, +// func(page *ListExecutionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SFN) ListExecutionsPages(input *ListExecutionsInput, fn func(p *ListExecutionsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListExecutionsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListExecutionsOutput), lastPage) + }) +} + +const opListStateMachines = "ListStateMachines" + +// ListStateMachinesRequest generates a "aws/request.Request" representing the +// client's request for the ListStateMachines operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListStateMachines for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListStateMachines method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListStateMachinesRequest method. +// req, resp := client.ListStateMachinesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListStateMachines +func (c *SFN) ListStateMachinesRequest(input *ListStateMachinesInput) (req *request.Request, output *ListStateMachinesOutput) { + op := &request.Operation{ + Name: opListStateMachines, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListStateMachinesInput{} + } + + output = &ListStateMachinesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListStateMachines API operation for AWS Step Functions. +// +// Lists the existing state machines. The results may be split into multiple +// pages. To retrieve subsequent pages, make the call again using the nextToken +// returned by the previous call. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Step Functions's +// API operation ListStateMachines for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidToken "InvalidToken" +// The provided token is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListStateMachines +func (c *SFN) ListStateMachines(input *ListStateMachinesInput) (*ListStateMachinesOutput, error) { + req, out := c.ListStateMachinesRequest(input) + err := req.Send() + return out, err +} + +// ListStateMachinesPages iterates over the pages of a ListStateMachines operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListStateMachines method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListStateMachines operation. +// pageNum := 0 +// err := client.ListStateMachinesPages(params, +// func(page *ListStateMachinesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SFN) ListStateMachinesPages(input *ListStateMachinesInput, fn func(p *ListStateMachinesOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListStateMachinesRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListStateMachinesOutput), lastPage) + }) +} + +const opSendTaskFailure = "SendTaskFailure" + +// SendTaskFailureRequest generates a "aws/request.Request" representing the +// client's request for the SendTaskFailure operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See SendTaskFailure for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the SendTaskFailure method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the SendTaskFailureRequest method. +// req, resp := client.SendTaskFailureRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskFailure +func (c *SFN) SendTaskFailureRequest(input *SendTaskFailureInput) (req *request.Request, output *SendTaskFailureOutput) { + op := &request.Operation{ + Name: opSendTaskFailure, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &SendTaskFailureInput{} + } + + output = &SendTaskFailureOutput{} + req = c.newRequest(op, input, output) + return +} + +// SendTaskFailure API operation for AWS Step Functions. +// +// Used by workers to report that the task identified by the taskToken failed. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Step Functions's +// API operation SendTaskFailure for usage and error information. +// +// Returned Error Codes: +// * ErrCodeTaskDoesNotExist "TaskDoesNotExist" +// +// * ErrCodeInvalidToken "InvalidToken" +// The provided token is invalid. +// +// * ErrCodeTaskTimedOut "TaskTimedOut" +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskFailure +func (c *SFN) SendTaskFailure(input *SendTaskFailureInput) (*SendTaskFailureOutput, error) { + req, out := c.SendTaskFailureRequest(input) + err := req.Send() + return out, err +} + +const opSendTaskHeartbeat = "SendTaskHeartbeat" + +// SendTaskHeartbeatRequest generates a "aws/request.Request" representing the +// client's request for the SendTaskHeartbeat operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See SendTaskHeartbeat for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the SendTaskHeartbeat method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the SendTaskHeartbeatRequest method. +// req, resp := client.SendTaskHeartbeatRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskHeartbeat +func (c *SFN) SendTaskHeartbeatRequest(input *SendTaskHeartbeatInput) (req *request.Request, output *SendTaskHeartbeatOutput) { + op := &request.Operation{ + Name: opSendTaskHeartbeat, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &SendTaskHeartbeatInput{} + } + + output = &SendTaskHeartbeatOutput{} + req = c.newRequest(op, input, output) + return +} + +// SendTaskHeartbeat API operation for AWS Step Functions. +// +// Used by workers to report to the service that the task represented by the +// specified taskToken is still making progress. This action resets the Heartbeat +// clock. The Heartbeat threshold is specified in the state machine's Amazon +// States Language definition. This action does not in itself create an event +// in the execution history. However, if the task times out, the execution history +// will contain an ActivityTimedOut event. +// +// The Timeout of a task, defined in the state machine's Amazon States Language +// definition, is its maximum allowed duration, regardless of the number of +// SendTaskHeartbeat requests received. +// +// This operation is only useful for long-lived tasks to report the liveliness +// of the task. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Step Functions's +// API operation SendTaskHeartbeat for usage and error information. +// +// Returned Error Codes: +// * ErrCodeTaskDoesNotExist "TaskDoesNotExist" +// +// * ErrCodeInvalidToken "InvalidToken" +// The provided token is invalid. +// +// * ErrCodeTaskTimedOut "TaskTimedOut" +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskHeartbeat +func (c *SFN) SendTaskHeartbeat(input *SendTaskHeartbeatInput) (*SendTaskHeartbeatOutput, error) { + req, out := c.SendTaskHeartbeatRequest(input) + err := req.Send() + return out, err +} + +const opSendTaskSuccess = "SendTaskSuccess" + +// SendTaskSuccessRequest generates a "aws/request.Request" representing the +// client's request for the SendTaskSuccess operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See SendTaskSuccess for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the SendTaskSuccess method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the SendTaskSuccessRequest method. +// req, resp := client.SendTaskSuccessRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskSuccess +func (c *SFN) SendTaskSuccessRequest(input *SendTaskSuccessInput) (req *request.Request, output *SendTaskSuccessOutput) { + op := &request.Operation{ + Name: opSendTaskSuccess, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &SendTaskSuccessInput{} + } + + output = &SendTaskSuccessOutput{} + req = c.newRequest(op, input, output) + return +} + +// SendTaskSuccess API operation for AWS Step Functions. +// +// Used by workers to report that the task identified by the taskToken completed +// successfully. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Step Functions's +// API operation SendTaskSuccess for usage and error information. +// +// Returned Error Codes: +// * ErrCodeTaskDoesNotExist "TaskDoesNotExist" +// +// * ErrCodeInvalidOutput "InvalidOutput" +// The provided JSON output data is invalid. +// +// * ErrCodeInvalidToken "InvalidToken" +// The provided token is invalid. +// +// * ErrCodeTaskTimedOut "TaskTimedOut" +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskSuccess +func (c *SFN) SendTaskSuccess(input *SendTaskSuccessInput) (*SendTaskSuccessOutput, error) { + req, out := c.SendTaskSuccessRequest(input) + err := req.Send() + return out, err +} + +const opStartExecution = "StartExecution" + +// StartExecutionRequest generates a "aws/request.Request" representing the +// client's request for the StartExecution operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See StartExecution for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the StartExecution method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the StartExecutionRequest method. +// req, resp := client.StartExecutionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StartExecution +func (c *SFN) StartExecutionRequest(input *StartExecutionInput) (req *request.Request, output *StartExecutionOutput) { + op := &request.Operation{ + Name: opStartExecution, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartExecutionInput{} + } + + output = &StartExecutionOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartExecution API operation for AWS Step Functions. +// +// Starts a state machine execution. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Step Functions's +// API operation StartExecution for usage and error information. +// +// Returned Error Codes: +// * ErrCodeExecutionLimitExceeded "ExecutionLimitExceeded" +// The maximum number of running executions has been reached. Running executions +// must end or be stopped before a new execution can be started. +// +// * ErrCodeExecutionAlreadyExists "ExecutionAlreadyExists" +// An execution with the same name already exists. +// +// * ErrCodeInvalidArn "InvalidArn" +// The provided Amazon Resource Name (ARN) is invalid. +// +// * ErrCodeInvalidExecutionInput "InvalidExecutionInput" +// The provided JSON input data is invalid. +// +// * ErrCodeInvalidName "InvalidName" +// The provided name is invalid. +// +// * ErrCodeStateMachineDoesNotExist "StateMachineDoesNotExist" +// The specified state machine does not exist. +// +// * ErrCodeStateMachineDeleting "StateMachineDeleting" +// The specified state machine is being deleted. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StartExecution +func (c *SFN) StartExecution(input *StartExecutionInput) (*StartExecutionOutput, error) { + req, out := c.StartExecutionRequest(input) + err := req.Send() + return out, err +} + +const opStopExecution = "StopExecution" + +// StopExecutionRequest generates a "aws/request.Request" representing the +// client's request for the StopExecution operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See StopExecution for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the StopExecution method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the StopExecutionRequest method. +// req, resp := client.StopExecutionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StopExecution +func (c *SFN) StopExecutionRequest(input *StopExecutionInput) (req *request.Request, output *StopExecutionOutput) { + op := &request.Operation{ + Name: opStopExecution, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopExecutionInput{} + } + + output = &StopExecutionOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopExecution API operation for AWS Step Functions. +// +// Stops an execution. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Step Functions's +// API operation StopExecution for usage and error information. +// +// Returned Error Codes: +// * ErrCodeExecutionDoesNotExist "ExecutionDoesNotExist" +// The specified execution does not exist. +// +// * ErrCodeInvalidArn "InvalidArn" +// The provided Amazon Resource Name (ARN) is invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StopExecution +func (c *SFN) StopExecution(input *StopExecutionInput) (*StopExecutionOutput, error) { + req, out := c.StopExecutionRequest(input) + err := req.Send() + return out, err +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ActivityFailedEventDetails +type ActivityFailedEventDetails struct { + _ struct{} `type:"structure"` + + // A more detailed explanation of the cause of the failure. + Cause *string `locationName:"cause" type:"string"` + + // The error code of the failure. + Error *string `locationName:"error" type:"string"` +} + +// String returns the string representation +func (s ActivityFailedEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ActivityFailedEventDetails) GoString() string { + return s.String() +} + +// SetCause sets the Cause field's value. +func (s *ActivityFailedEventDetails) SetCause(v string) *ActivityFailedEventDetails { + s.Cause = &v + return s +} + +// SetError sets the Error field's value. +func (s *ActivityFailedEventDetails) SetError(v string) *ActivityFailedEventDetails { + s.Error = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ActivityListItem +type ActivityListItem struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) that identifies the activity. + // + // ActivityArn is a required field + ActivityArn *string `locationName:"activityArn" min:"1" type:"string" required:"true"` + + // The date the activity was created. + // + // CreationDate is a required field + CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix" required:"true"` + + // The name of the activity. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ActivityListItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ActivityListItem) GoString() string { + return s.String() +} + +// SetActivityArn sets the ActivityArn field's value. +func (s *ActivityListItem) SetActivityArn(v string) *ActivityListItem { + s.ActivityArn = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *ActivityListItem) SetCreationDate(v time.Time) *ActivityListItem { + s.CreationDate = &v + return s +} + +// SetName sets the Name field's value. +func (s *ActivityListItem) SetName(v string) *ActivityListItem { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ActivityScheduleFailedEventDetails +type ActivityScheduleFailedEventDetails struct { + _ struct{} `type:"structure"` + + // A more detailed explanation of the cause of the failure. + Cause *string `locationName:"cause" type:"string"` + + // The error code of the failure. + Error *string `locationName:"error" type:"string"` +} + +// String returns the string representation +func (s ActivityScheduleFailedEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ActivityScheduleFailedEventDetails) GoString() string { + return s.String() +} + +// SetCause sets the Cause field's value. +func (s *ActivityScheduleFailedEventDetails) SetCause(v string) *ActivityScheduleFailedEventDetails { + s.Cause = &v + return s +} + +// SetError sets the Error field's value. +func (s *ActivityScheduleFailedEventDetails) SetError(v string) *ActivityScheduleFailedEventDetails { + s.Error = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ActivityScheduledEventDetails +type ActivityScheduledEventDetails struct { + _ struct{} `type:"structure"` + + // The maximum allowed duration between two heartbeats for the activity task. + HeartbeatInSeconds *int64 `locationName:"heartbeatInSeconds" type:"long"` + + // The JSON data input to the activity task. + Input *string `locationName:"input" type:"string"` + + // The Amazon Resource Name (ARN) of the scheduled activity. + // + // Resource is a required field + Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` + + // The maximum allowed duration of the activity task. + TimeoutInSeconds *int64 `locationName:"timeoutInSeconds" type:"long"` +} + +// String returns the string representation +func (s ActivityScheduledEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ActivityScheduledEventDetails) GoString() string { + return s.String() +} + +// SetHeartbeatInSeconds sets the HeartbeatInSeconds field's value. +func (s *ActivityScheduledEventDetails) SetHeartbeatInSeconds(v int64) *ActivityScheduledEventDetails { + s.HeartbeatInSeconds = &v + return s +} + +// SetInput sets the Input field's value. +func (s *ActivityScheduledEventDetails) SetInput(v string) *ActivityScheduledEventDetails { + s.Input = &v + return s +} + +// SetResource sets the Resource field's value. +func (s *ActivityScheduledEventDetails) SetResource(v string) *ActivityScheduledEventDetails { + s.Resource = &v + return s +} + +// SetTimeoutInSeconds sets the TimeoutInSeconds field's value. +func (s *ActivityScheduledEventDetails) SetTimeoutInSeconds(v int64) *ActivityScheduledEventDetails { + s.TimeoutInSeconds = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ActivityStartedEventDetails +type ActivityStartedEventDetails struct { + _ struct{} `type:"structure"` + + // The name of the worker that the task was assigned to. These names are provided + // by the workers when calling GetActivityTask. + WorkerName *string `locationName:"workerName" type:"string"` +} + +// String returns the string representation +func (s ActivityStartedEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ActivityStartedEventDetails) GoString() string { + return s.String() +} + +// SetWorkerName sets the WorkerName field's value. +func (s *ActivityStartedEventDetails) SetWorkerName(v string) *ActivityStartedEventDetails { + s.WorkerName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ActivitySucceededEventDetails +type ActivitySucceededEventDetails struct { + _ struct{} `type:"structure"` + + // The JSON data output by the activity task. + Output *string `locationName:"output" type:"string"` +} + +// String returns the string representation +func (s ActivitySucceededEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ActivitySucceededEventDetails) GoString() string { + return s.String() +} + +// SetOutput sets the Output field's value. +func (s *ActivitySucceededEventDetails) SetOutput(v string) *ActivitySucceededEventDetails { + s.Output = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ActivityTimedOutEventDetails +type ActivityTimedOutEventDetails struct { + _ struct{} `type:"structure"` + + // A more detailed explanation of the cause of the timeout. + Cause *string `locationName:"cause" type:"string"` + + // The error code of the failure. + Error *string `locationName:"error" type:"string"` +} + +// String returns the string representation +func (s ActivityTimedOutEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ActivityTimedOutEventDetails) GoString() string { + return s.String() +} + +// SetCause sets the Cause field's value. +func (s *ActivityTimedOutEventDetails) SetCause(v string) *ActivityTimedOutEventDetails { + s.Cause = &v + return s +} + +// SetError sets the Error field's value. +func (s *ActivityTimedOutEventDetails) SetError(v string) *ActivityTimedOutEventDetails { + s.Error = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CreateActivityInput +type CreateActivityInput struct { + _ struct{} `type:"structure"` + + // The name of the activity to create. This name must be unique for your AWS + // account and region. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateActivityInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateActivityInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateActivityInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateActivityInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *CreateActivityInput) SetName(v string) *CreateActivityInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CreateActivityOutput +type CreateActivityOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) that identifies the created activity. + // + // ActivityArn is a required field + ActivityArn *string `locationName:"activityArn" min:"1" type:"string" required:"true"` + + // The date the activity was created. + // + // CreationDate is a required field + CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix" required:"true"` +} + +// String returns the string representation +func (s CreateActivityOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateActivityOutput) GoString() string { + return s.String() +} + +// SetActivityArn sets the ActivityArn field's value. +func (s *CreateActivityOutput) SetActivityArn(v string) *CreateActivityOutput { + s.ActivityArn = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *CreateActivityOutput) SetCreationDate(v time.Time) *CreateActivityOutput { + s.CreationDate = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CreateStateMachineInput +type CreateStateMachineInput struct { + _ struct{} `type:"structure"` + + // The Amazon States Language definition of the state machine. + // + // Definition is a required field + Definition *string `locationName:"definition" min:"1" type:"string" required:"true"` + + // The name of the state machine. This name must be unique for your AWS account + // and region. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the IAM role to use for this state machine. + // + // RoleArn is a required field + RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateStateMachineInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateStateMachineInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateStateMachineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateStateMachineInput"} + if s.Definition == nil { + invalidParams.Add(request.NewErrParamRequired("Definition")) + } + if s.Definition != nil && len(*s.Definition) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Definition", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.RoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("RoleArn")) + } + if s.RoleArn != nil && len(*s.RoleArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDefinition sets the Definition field's value. +func (s *CreateStateMachineInput) SetDefinition(v string) *CreateStateMachineInput { + s.Definition = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateStateMachineInput) SetName(v string) *CreateStateMachineInput { + s.Name = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *CreateStateMachineInput) SetRoleArn(v string) *CreateStateMachineInput { + s.RoleArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CreateStateMachineOutput +type CreateStateMachineOutput struct { + _ struct{} `type:"structure"` + + // The date the state machine was created. + // + // CreationDate is a required field + CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix" required:"true"` + + // The Amazon Resource Name (ARN) that identifies the created state machine. + // + // StateMachineArn is a required field + StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateStateMachineOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateStateMachineOutput) GoString() string { + return s.String() +} + +// SetCreationDate sets the CreationDate field's value. +func (s *CreateStateMachineOutput) SetCreationDate(v time.Time) *CreateStateMachineOutput { + s.CreationDate = &v + return s +} + +// SetStateMachineArn sets the StateMachineArn field's value. +func (s *CreateStateMachineOutput) SetStateMachineArn(v string) *CreateStateMachineOutput { + s.StateMachineArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteActivityInput +type DeleteActivityInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the activity to delete. + // + // ActivityArn is a required field + ActivityArn *string `locationName:"activityArn" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteActivityInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteActivityInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteActivityInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteActivityInput"} + if s.ActivityArn == nil { + invalidParams.Add(request.NewErrParamRequired("ActivityArn")) + } + if s.ActivityArn != nil && len(*s.ActivityArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ActivityArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetActivityArn sets the ActivityArn field's value. +func (s *DeleteActivityInput) SetActivityArn(v string) *DeleteActivityInput { + s.ActivityArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteActivityOutput +type DeleteActivityOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteActivityOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteActivityOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteStateMachineInput +type DeleteStateMachineInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the state machine to delete. + // + // StateMachineArn is a required field + StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteStateMachineInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteStateMachineInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteStateMachineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteStateMachineInput"} + if s.StateMachineArn == nil { + invalidParams.Add(request.NewErrParamRequired("StateMachineArn")) + } + if s.StateMachineArn != nil && len(*s.StateMachineArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StateMachineArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetStateMachineArn sets the StateMachineArn field's value. +func (s *DeleteStateMachineInput) SetStateMachineArn(v string) *DeleteStateMachineInput { + s.StateMachineArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteStateMachineOutput +type DeleteStateMachineOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteStateMachineOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteStateMachineOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeActivityInput +type DescribeActivityInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the activity to describe. + // + // ActivityArn is a required field + ActivityArn *string `locationName:"activityArn" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeActivityInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeActivityInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeActivityInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeActivityInput"} + if s.ActivityArn == nil { + invalidParams.Add(request.NewErrParamRequired("ActivityArn")) + } + if s.ActivityArn != nil && len(*s.ActivityArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ActivityArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetActivityArn sets the ActivityArn field's value. +func (s *DescribeActivityInput) SetActivityArn(v string) *DescribeActivityInput { + s.ActivityArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeActivityOutput +type DescribeActivityOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) that identifies the activity. + // + // ActivityArn is a required field + ActivityArn *string `locationName:"activityArn" min:"1" type:"string" required:"true"` + + // The date the activity was created. + // + // CreationDate is a required field + CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix" required:"true"` + + // The name of the activity. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeActivityOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeActivityOutput) GoString() string { + return s.String() +} + +// SetActivityArn sets the ActivityArn field's value. +func (s *DescribeActivityOutput) SetActivityArn(v string) *DescribeActivityOutput { + s.ActivityArn = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *DescribeActivityOutput) SetCreationDate(v time.Time) *DescribeActivityOutput { + s.CreationDate = &v + return s +} + +// SetName sets the Name field's value. +func (s *DescribeActivityOutput) SetName(v string) *DescribeActivityOutput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeExecutionInput +type DescribeExecutionInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the execution to describe. + // + // ExecutionArn is a required field + ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeExecutionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeExecutionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeExecutionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeExecutionInput"} + if s.ExecutionArn == nil { + invalidParams.Add(request.NewErrParamRequired("ExecutionArn")) + } + if s.ExecutionArn != nil && len(*s.ExecutionArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ExecutionArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetExecutionArn sets the ExecutionArn field's value. +func (s *DescribeExecutionInput) SetExecutionArn(v string) *DescribeExecutionInput { + s.ExecutionArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeExecutionOutput +type DescribeExecutionOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) that identifies the execution. + // + // ExecutionArn is a required field + ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` + + // The JSON input data of the execution. + // + // Input is a required field + Input *string `locationName:"input" type:"string" required:"true"` + + // The name of the execution. + Name *string `locationName:"name" min:"1" type:"string"` + + // The JSON output data of the execution. + Output *string `locationName:"output" type:"string"` + + // The date the execution was started. + // + // StartDate is a required field + StartDate *time.Time `locationName:"startDate" type:"timestamp" timestampFormat:"unix" required:"true"` + + // The Amazon Resource Name (ARN) of the executed stated machine. + // + // StateMachineArn is a required field + StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` + + // The current status of the execution. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"ExecutionStatus"` + + // If the execution has already ended, the date the execution stopped. + StopDate *time.Time `locationName:"stopDate" type:"timestamp" timestampFormat:"unix"` +} + +// String returns the string representation +func (s DescribeExecutionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeExecutionOutput) GoString() string { + return s.String() +} + +// SetExecutionArn sets the ExecutionArn field's value. +func (s *DescribeExecutionOutput) SetExecutionArn(v string) *DescribeExecutionOutput { + s.ExecutionArn = &v + return s +} + +// SetInput sets the Input field's value. +func (s *DescribeExecutionOutput) SetInput(v string) *DescribeExecutionOutput { + s.Input = &v + return s +} + +// SetName sets the Name field's value. +func (s *DescribeExecutionOutput) SetName(v string) *DescribeExecutionOutput { + s.Name = &v + return s +} + +// SetOutput sets the Output field's value. +func (s *DescribeExecutionOutput) SetOutput(v string) *DescribeExecutionOutput { + s.Output = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *DescribeExecutionOutput) SetStartDate(v time.Time) *DescribeExecutionOutput { + s.StartDate = &v + return s +} + +// SetStateMachineArn sets the StateMachineArn field's value. +func (s *DescribeExecutionOutput) SetStateMachineArn(v string) *DescribeExecutionOutput { + s.StateMachineArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeExecutionOutput) SetStatus(v string) *DescribeExecutionOutput { + s.Status = &v + return s +} + +// SetStopDate sets the StopDate field's value. +func (s *DescribeExecutionOutput) SetStopDate(v time.Time) *DescribeExecutionOutput { + s.StopDate = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeStateMachineInput +type DescribeStateMachineInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the state machine to describe. + // + // StateMachineArn is a required field + StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeStateMachineInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeStateMachineInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeStateMachineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeStateMachineInput"} + if s.StateMachineArn == nil { + invalidParams.Add(request.NewErrParamRequired("StateMachineArn")) + } + if s.StateMachineArn != nil && len(*s.StateMachineArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StateMachineArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetStateMachineArn sets the StateMachineArn field's value. +func (s *DescribeStateMachineInput) SetStateMachineArn(v string) *DescribeStateMachineInput { + s.StateMachineArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeStateMachineOutput +type DescribeStateMachineOutput struct { + _ struct{} `type:"structure"` + + // The date the state machine was created. + // + // CreationDate is a required field + CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix" required:"true"` + + // The Amazon States Language definition of the state machine. + // + // Definition is a required field + Definition *string `locationName:"definition" min:"1" type:"string" required:"true"` + + // The name of the state machine. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the IAM role used for executing this state + // machine. + // + // RoleArn is a required field + RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) that identifies the state machine. + // + // StateMachineArn is a required field + StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` + + // The current status of the state machine. + Status *string `locationName:"status" type:"string" enum:"StateMachineStatus"` +} + +// String returns the string representation +func (s DescribeStateMachineOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeStateMachineOutput) GoString() string { + return s.String() +} + +// SetCreationDate sets the CreationDate field's value. +func (s *DescribeStateMachineOutput) SetCreationDate(v time.Time) *DescribeStateMachineOutput { + s.CreationDate = &v + return s +} + +// SetDefinition sets the Definition field's value. +func (s *DescribeStateMachineOutput) SetDefinition(v string) *DescribeStateMachineOutput { + s.Definition = &v + return s +} + +// SetName sets the Name field's value. +func (s *DescribeStateMachineOutput) SetName(v string) *DescribeStateMachineOutput { + s.Name = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *DescribeStateMachineOutput) SetRoleArn(v string) *DescribeStateMachineOutput { + s.RoleArn = &v + return s +} + +// SetStateMachineArn sets the StateMachineArn field's value. +func (s *DescribeStateMachineOutput) SetStateMachineArn(v string) *DescribeStateMachineOutput { + s.StateMachineArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeStateMachineOutput) SetStatus(v string) *DescribeStateMachineOutput { + s.Status = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ExecutionAbortedEventDetails +type ExecutionAbortedEventDetails struct { + _ struct{} `type:"structure"` + + // A more detailed explanation of the cause of the failure. + Cause *string `locationName:"cause" type:"string"` + + // The error code of the failure. + Error *string `locationName:"error" type:"string"` +} + +// String returns the string representation +func (s ExecutionAbortedEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExecutionAbortedEventDetails) GoString() string { + return s.String() +} + +// SetCause sets the Cause field's value. +func (s *ExecutionAbortedEventDetails) SetCause(v string) *ExecutionAbortedEventDetails { + s.Cause = &v + return s +} + +// SetError sets the Error field's value. +func (s *ExecutionAbortedEventDetails) SetError(v string) *ExecutionAbortedEventDetails { + s.Error = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ExecutionFailedEventDetails +type ExecutionFailedEventDetails struct { + _ struct{} `type:"structure"` + + // A more detailed explanation of the cause of the failure. + Cause *string `locationName:"cause" type:"string"` + + // The error code of the failure. + Error *string `locationName:"error" type:"string"` +} + +// String returns the string representation +func (s ExecutionFailedEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExecutionFailedEventDetails) GoString() string { + return s.String() +} + +// SetCause sets the Cause field's value. +func (s *ExecutionFailedEventDetails) SetCause(v string) *ExecutionFailedEventDetails { + s.Cause = &v + return s +} + +// SetError sets the Error field's value. +func (s *ExecutionFailedEventDetails) SetError(v string) *ExecutionFailedEventDetails { + s.Error = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ExecutionListItem +type ExecutionListItem struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) that identifies the execution. + // + // ExecutionArn is a required field + ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` + + // The name of the execution. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The date the execution started. + // + // StartDate is a required field + StartDate *time.Time `locationName:"startDate" type:"timestamp" timestampFormat:"unix" required:"true"` + + // The Amazon Resource Name (ARN) of the executed state machine. + // + // StateMachineArn is a required field + StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` + + // The current status of the execution. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"ExecutionStatus"` + + // If the execution already ended, the date the execution stopped. + StopDate *time.Time `locationName:"stopDate" type:"timestamp" timestampFormat:"unix"` +} + +// String returns the string representation +func (s ExecutionListItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExecutionListItem) GoString() string { + return s.String() +} + +// SetExecutionArn sets the ExecutionArn field's value. +func (s *ExecutionListItem) SetExecutionArn(v string) *ExecutionListItem { + s.ExecutionArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *ExecutionListItem) SetName(v string) *ExecutionListItem { + s.Name = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *ExecutionListItem) SetStartDate(v time.Time) *ExecutionListItem { + s.StartDate = &v + return s +} + +// SetStateMachineArn sets the StateMachineArn field's value. +func (s *ExecutionListItem) SetStateMachineArn(v string) *ExecutionListItem { + s.StateMachineArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ExecutionListItem) SetStatus(v string) *ExecutionListItem { + s.Status = &v + return s +} + +// SetStopDate sets the StopDate field's value. +func (s *ExecutionListItem) SetStopDate(v time.Time) *ExecutionListItem { + s.StopDate = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ExecutionStartedEventDetails +type ExecutionStartedEventDetails struct { + _ struct{} `type:"structure"` + + // The JSON data input to the execution. + Input *string `locationName:"input" type:"string"` + + // The Amazon Resource Name (ARN) of the IAM role used for executing AWS Lambda + // tasks. + RoleArn *string `locationName:"roleArn" min:"1" type:"string"` +} + +// String returns the string representation +func (s ExecutionStartedEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExecutionStartedEventDetails) GoString() string { + return s.String() +} + +// SetInput sets the Input field's value. +func (s *ExecutionStartedEventDetails) SetInput(v string) *ExecutionStartedEventDetails { + s.Input = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *ExecutionStartedEventDetails) SetRoleArn(v string) *ExecutionStartedEventDetails { + s.RoleArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ExecutionSucceededEventDetails +type ExecutionSucceededEventDetails struct { + _ struct{} `type:"structure"` + + // The JSON data output by the execution. + Output *string `locationName:"output" type:"string"` +} + +// String returns the string representation +func (s ExecutionSucceededEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExecutionSucceededEventDetails) GoString() string { + return s.String() +} + +// SetOutput sets the Output field's value. +func (s *ExecutionSucceededEventDetails) SetOutput(v string) *ExecutionSucceededEventDetails { + s.Output = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ExecutionTimedOutEventDetails +type ExecutionTimedOutEventDetails struct { + _ struct{} `type:"structure"` + + // A more detailed explanation of the cause of the timeout. + Cause *string `locationName:"cause" type:"string"` + + // The error code of the failure. + Error *string `locationName:"error" type:"string"` +} + +// String returns the string representation +func (s ExecutionTimedOutEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExecutionTimedOutEventDetails) GoString() string { + return s.String() +} + +// SetCause sets the Cause field's value. +func (s *ExecutionTimedOutEventDetails) SetCause(v string) *ExecutionTimedOutEventDetails { + s.Cause = &v + return s +} + +// SetError sets the Error field's value. +func (s *ExecutionTimedOutEventDetails) SetError(v string) *ExecutionTimedOutEventDetails { + s.Error = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetActivityTaskInput +type GetActivityTaskInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the activity to retrieve tasks from. + // + // ActivityArn is a required field + ActivityArn *string `locationName:"activityArn" min:"1" type:"string" required:"true"` + + // An arbitrary name may be provided in order to identify the worker that the + // task is assigned to. This name will be used when it is logged in the execution + // history. + WorkerName *string `locationName:"workerName" min:"1" type:"string"` +} + +// String returns the string representation +func (s GetActivityTaskInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetActivityTaskInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetActivityTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetActivityTaskInput"} + if s.ActivityArn == nil { + invalidParams.Add(request.NewErrParamRequired("ActivityArn")) + } + if s.ActivityArn != nil && len(*s.ActivityArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ActivityArn", 1)) + } + if s.WorkerName != nil && len(*s.WorkerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetActivityArn sets the ActivityArn field's value. +func (s *GetActivityTaskInput) SetActivityArn(v string) *GetActivityTaskInput { + s.ActivityArn = &v + return s +} + +// SetWorkerName sets the WorkerName field's value. +func (s *GetActivityTaskInput) SetWorkerName(v string) *GetActivityTaskInput { + s.WorkerName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetActivityTaskOutput +type GetActivityTaskOutput struct { + _ struct{} `type:"structure"` + + // The JSON input data for the task. + Input *string `locationName:"input" type:"string"` + + // A token that identifies the scheduled task. This token must be copied and + // included in subsequent calls to SendTaskHeartbeat, SendTaskSuccess or SendTaskFailure + // in order to report the progress or completion of the task. + TaskToken *string `locationName:"taskToken" min:"1" type:"string"` +} + +// String returns the string representation +func (s GetActivityTaskOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetActivityTaskOutput) GoString() string { + return s.String() +} + +// SetInput sets the Input field's value. +func (s *GetActivityTaskOutput) SetInput(v string) *GetActivityTaskOutput { + s.Input = &v + return s +} + +// SetTaskToken sets the TaskToken field's value. +func (s *GetActivityTaskOutput) SetTaskToken(v string) *GetActivityTaskOutput { + s.TaskToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetExecutionHistoryInput +type GetExecutionHistoryInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the execution. + // + // ExecutionArn is a required field + ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` + + // The maximum number of results that will be returned per call. nextToken can + // be used to obtain further pages of results. The default is 100 and the maximum + // allowed page size is 1000. + // + // This is an upper limit only; the actual number of results returned per call + // may be fewer than the specified maximum. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // If a nextToken was returned by a previous call, there are more results available. + // To retrieve the next page of results, make the call again using the returned + // token in nextToken. Keep all other arguments unchanged. + // + // The configured maxResults determines how many results can be returned in + // a single call. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` + + // Lists events in descending order of their timeStamp. + ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"` +} + +// String returns the string representation +func (s GetExecutionHistoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetExecutionHistoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetExecutionHistoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetExecutionHistoryInput"} + if s.ExecutionArn == nil { + invalidParams.Add(request.NewErrParamRequired("ExecutionArn")) + } + if s.ExecutionArn != nil && len(*s.ExecutionArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ExecutionArn", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetExecutionArn sets the ExecutionArn field's value. +func (s *GetExecutionHistoryInput) SetExecutionArn(v string) *GetExecutionHistoryInput { + s.ExecutionArn = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetExecutionHistoryInput) SetMaxResults(v int64) *GetExecutionHistoryInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetExecutionHistoryInput) SetNextToken(v string) *GetExecutionHistoryInput { + s.NextToken = &v + return s +} + +// SetReverseOrder sets the ReverseOrder field's value. +func (s *GetExecutionHistoryInput) SetReverseOrder(v bool) *GetExecutionHistoryInput { + s.ReverseOrder = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetExecutionHistoryOutput +type GetExecutionHistoryOutput struct { + _ struct{} `type:"structure"` + + // The list of events that occurred in the execution. + // + // Events is a required field + Events []*HistoryEvent `locationName:"events" type:"list" required:"true"` + + // If a nextToken is returned, there are more results available. To retrieve + // the next page of results, make the call again using the returned token in + // nextToken. Keep all other arguments unchanged. + // + // The configured maxResults determines how many results can be returned in + // a single call. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` +} + +// String returns the string representation +func (s GetExecutionHistoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetExecutionHistoryOutput) GoString() string { + return s.String() +} + +// SetEvents sets the Events field's value. +func (s *GetExecutionHistoryOutput) SetEvents(v []*HistoryEvent) *GetExecutionHistoryOutput { + s.Events = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetExecutionHistoryOutput) SetNextToken(v string) *GetExecutionHistoryOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/HistoryEvent +type HistoryEvent struct { + _ struct{} `type:"structure"` + + ActivityFailedEventDetails *ActivityFailedEventDetails `locationName:"activityFailedEventDetails" type:"structure"` + + ActivityScheduleFailedEventDetails *ActivityScheduleFailedEventDetails `locationName:"activityScheduleFailedEventDetails" type:"structure"` + + ActivityScheduledEventDetails *ActivityScheduledEventDetails `locationName:"activityScheduledEventDetails" type:"structure"` + + ActivityStartedEventDetails *ActivityStartedEventDetails `locationName:"activityStartedEventDetails" type:"structure"` + + ActivitySucceededEventDetails *ActivitySucceededEventDetails `locationName:"activitySucceededEventDetails" type:"structure"` + + ActivityTimedOutEventDetails *ActivityTimedOutEventDetails `locationName:"activityTimedOutEventDetails" type:"structure"` + + ExecutionAbortedEventDetails *ExecutionAbortedEventDetails `locationName:"executionAbortedEventDetails" type:"structure"` + + ExecutionFailedEventDetails *ExecutionFailedEventDetails `locationName:"executionFailedEventDetails" type:"structure"` + + ExecutionStartedEventDetails *ExecutionStartedEventDetails `locationName:"executionStartedEventDetails" type:"structure"` + + ExecutionSucceededEventDetails *ExecutionSucceededEventDetails `locationName:"executionSucceededEventDetails" type:"structure"` + + ExecutionTimedOutEventDetails *ExecutionTimedOutEventDetails `locationName:"executionTimedOutEventDetails" type:"structure"` + + // The id of the event. Events are numbered sequentially, starting at one. + // + // Id is a required field + Id *int64 `locationName:"id" type:"long" required:"true"` + + LambdaFunctionFailedEventDetails *LambdaFunctionFailedEventDetails `locationName:"lambdaFunctionFailedEventDetails" type:"structure"` + + LambdaFunctionScheduleFailedEventDetails *LambdaFunctionScheduleFailedEventDetails `locationName:"lambdaFunctionScheduleFailedEventDetails" type:"structure"` + + LambdaFunctionScheduledEventDetails *LambdaFunctionScheduledEventDetails `locationName:"lambdaFunctionScheduledEventDetails" type:"structure"` + + LambdaFunctionStartFailedEventDetails *LambdaFunctionStartFailedEventDetails `locationName:"lambdaFunctionStartFailedEventDetails" type:"structure"` + + LambdaFunctionSucceededEventDetails *LambdaFunctionSucceededEventDetails `locationName:"lambdaFunctionSucceededEventDetails" type:"structure"` + + LambdaFunctionTimedOutEventDetails *LambdaFunctionTimedOutEventDetails `locationName:"lambdaFunctionTimedOutEventDetails" type:"structure"` + + // The id of the previous event. + PreviousEventId *int64 `locationName:"previousEventId" type:"long"` + + StateEnteredEventDetails *StateEnteredEventDetails `locationName:"stateEnteredEventDetails" type:"structure"` + + StateExitedEventDetails *StateExitedEventDetails `locationName:"stateExitedEventDetails" type:"structure"` + + // The date the event occured. + // + // Timestamp is a required field + Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"unix" required:"true"` + + // The type of the event. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"HistoryEventType"` +} + +// String returns the string representation +func (s HistoryEvent) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HistoryEvent) GoString() string { + return s.String() +} + +// SetActivityFailedEventDetails sets the ActivityFailedEventDetails field's value. +func (s *HistoryEvent) SetActivityFailedEventDetails(v *ActivityFailedEventDetails) *HistoryEvent { + s.ActivityFailedEventDetails = v + return s +} + +// SetActivityScheduleFailedEventDetails sets the ActivityScheduleFailedEventDetails field's value. +func (s *HistoryEvent) SetActivityScheduleFailedEventDetails(v *ActivityScheduleFailedEventDetails) *HistoryEvent { + s.ActivityScheduleFailedEventDetails = v + return s +} + +// SetActivityScheduledEventDetails sets the ActivityScheduledEventDetails field's value. +func (s *HistoryEvent) SetActivityScheduledEventDetails(v *ActivityScheduledEventDetails) *HistoryEvent { + s.ActivityScheduledEventDetails = v + return s +} + +// SetActivityStartedEventDetails sets the ActivityStartedEventDetails field's value. +func (s *HistoryEvent) SetActivityStartedEventDetails(v *ActivityStartedEventDetails) *HistoryEvent { + s.ActivityStartedEventDetails = v + return s +} + +// SetActivitySucceededEventDetails sets the ActivitySucceededEventDetails field's value. +func (s *HistoryEvent) SetActivitySucceededEventDetails(v *ActivitySucceededEventDetails) *HistoryEvent { + s.ActivitySucceededEventDetails = v + return s +} + +// SetActivityTimedOutEventDetails sets the ActivityTimedOutEventDetails field's value. +func (s *HistoryEvent) SetActivityTimedOutEventDetails(v *ActivityTimedOutEventDetails) *HistoryEvent { + s.ActivityTimedOutEventDetails = v + return s +} + +// SetExecutionAbortedEventDetails sets the ExecutionAbortedEventDetails field's value. +func (s *HistoryEvent) SetExecutionAbortedEventDetails(v *ExecutionAbortedEventDetails) *HistoryEvent { + s.ExecutionAbortedEventDetails = v + return s +} + +// SetExecutionFailedEventDetails sets the ExecutionFailedEventDetails field's value. +func (s *HistoryEvent) SetExecutionFailedEventDetails(v *ExecutionFailedEventDetails) *HistoryEvent { + s.ExecutionFailedEventDetails = v + return s +} + +// SetExecutionStartedEventDetails sets the ExecutionStartedEventDetails field's value. +func (s *HistoryEvent) SetExecutionStartedEventDetails(v *ExecutionStartedEventDetails) *HistoryEvent { + s.ExecutionStartedEventDetails = v + return s +} + +// SetExecutionSucceededEventDetails sets the ExecutionSucceededEventDetails field's value. +func (s *HistoryEvent) SetExecutionSucceededEventDetails(v *ExecutionSucceededEventDetails) *HistoryEvent { + s.ExecutionSucceededEventDetails = v + return s +} + +// SetExecutionTimedOutEventDetails sets the ExecutionTimedOutEventDetails field's value. +func (s *HistoryEvent) SetExecutionTimedOutEventDetails(v *ExecutionTimedOutEventDetails) *HistoryEvent { + s.ExecutionTimedOutEventDetails = v + return s +} + +// SetId sets the Id field's value. +func (s *HistoryEvent) SetId(v int64) *HistoryEvent { + s.Id = &v + return s +} + +// SetLambdaFunctionFailedEventDetails sets the LambdaFunctionFailedEventDetails field's value. +func (s *HistoryEvent) SetLambdaFunctionFailedEventDetails(v *LambdaFunctionFailedEventDetails) *HistoryEvent { + s.LambdaFunctionFailedEventDetails = v + return s +} + +// SetLambdaFunctionScheduleFailedEventDetails sets the LambdaFunctionScheduleFailedEventDetails field's value. +func (s *HistoryEvent) SetLambdaFunctionScheduleFailedEventDetails(v *LambdaFunctionScheduleFailedEventDetails) *HistoryEvent { + s.LambdaFunctionScheduleFailedEventDetails = v + return s +} + +// SetLambdaFunctionScheduledEventDetails sets the LambdaFunctionScheduledEventDetails field's value. +func (s *HistoryEvent) SetLambdaFunctionScheduledEventDetails(v *LambdaFunctionScheduledEventDetails) *HistoryEvent { + s.LambdaFunctionScheduledEventDetails = v + return s +} + +// SetLambdaFunctionStartFailedEventDetails sets the LambdaFunctionStartFailedEventDetails field's value. +func (s *HistoryEvent) SetLambdaFunctionStartFailedEventDetails(v *LambdaFunctionStartFailedEventDetails) *HistoryEvent { + s.LambdaFunctionStartFailedEventDetails = v + return s +} + +// SetLambdaFunctionSucceededEventDetails sets the LambdaFunctionSucceededEventDetails field's value. +func (s *HistoryEvent) SetLambdaFunctionSucceededEventDetails(v *LambdaFunctionSucceededEventDetails) *HistoryEvent { + s.LambdaFunctionSucceededEventDetails = v + return s +} + +// SetLambdaFunctionTimedOutEventDetails sets the LambdaFunctionTimedOutEventDetails field's value. +func (s *HistoryEvent) SetLambdaFunctionTimedOutEventDetails(v *LambdaFunctionTimedOutEventDetails) *HistoryEvent { + s.LambdaFunctionTimedOutEventDetails = v + return s +} + +// SetPreviousEventId sets the PreviousEventId field's value. +func (s *HistoryEvent) SetPreviousEventId(v int64) *HistoryEvent { + s.PreviousEventId = &v + return s +} + +// SetStateEnteredEventDetails sets the StateEnteredEventDetails field's value. +func (s *HistoryEvent) SetStateEnteredEventDetails(v *StateEnteredEventDetails) *HistoryEvent { + s.StateEnteredEventDetails = v + return s +} + +// SetStateExitedEventDetails sets the StateExitedEventDetails field's value. +func (s *HistoryEvent) SetStateExitedEventDetails(v *StateExitedEventDetails) *HistoryEvent { + s.StateExitedEventDetails = v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *HistoryEvent) SetTimestamp(v time.Time) *HistoryEvent { + s.Timestamp = &v + return s +} + +// SetType sets the Type field's value. +func (s *HistoryEvent) SetType(v string) *HistoryEvent { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/LambdaFunctionFailedEventDetails +type LambdaFunctionFailedEventDetails struct { + _ struct{} `type:"structure"` + + // A more detailed explanation of the cause of the failure. + Cause *string `locationName:"cause" type:"string"` + + // The error code of the failure. + Error *string `locationName:"error" type:"string"` +} + +// String returns the string representation +func (s LambdaFunctionFailedEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LambdaFunctionFailedEventDetails) GoString() string { + return s.String() +} + +// SetCause sets the Cause field's value. +func (s *LambdaFunctionFailedEventDetails) SetCause(v string) *LambdaFunctionFailedEventDetails { + s.Cause = &v + return s +} + +// SetError sets the Error field's value. +func (s *LambdaFunctionFailedEventDetails) SetError(v string) *LambdaFunctionFailedEventDetails { + s.Error = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/LambdaFunctionScheduleFailedEventDetails +type LambdaFunctionScheduleFailedEventDetails struct { + _ struct{} `type:"structure"` + + // A more detailed explanation of the cause of the failure. + Cause *string `locationName:"cause" type:"string"` + + // The error code of the failure. + Error *string `locationName:"error" type:"string"` +} + +// String returns the string representation +func (s LambdaFunctionScheduleFailedEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LambdaFunctionScheduleFailedEventDetails) GoString() string { + return s.String() +} + +// SetCause sets the Cause field's value. +func (s *LambdaFunctionScheduleFailedEventDetails) SetCause(v string) *LambdaFunctionScheduleFailedEventDetails { + s.Cause = &v + return s +} + +// SetError sets the Error field's value. +func (s *LambdaFunctionScheduleFailedEventDetails) SetError(v string) *LambdaFunctionScheduleFailedEventDetails { + s.Error = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/LambdaFunctionScheduledEventDetails +type LambdaFunctionScheduledEventDetails struct { + _ struct{} `type:"structure"` + + // The JSON data input to the lambda function. + Input *string `locationName:"input" type:"string"` + + // The Amazon Resource Name (ARN) of the scheduled lambda function. + // + // Resource is a required field + Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` + + // The maximum allowed duration of the lambda function. + TimeoutInSeconds *int64 `locationName:"timeoutInSeconds" type:"long"` +} + +// String returns the string representation +func (s LambdaFunctionScheduledEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LambdaFunctionScheduledEventDetails) GoString() string { + return s.String() +} + +// SetInput sets the Input field's value. +func (s *LambdaFunctionScheduledEventDetails) SetInput(v string) *LambdaFunctionScheduledEventDetails { + s.Input = &v + return s +} + +// SetResource sets the Resource field's value. +func (s *LambdaFunctionScheduledEventDetails) SetResource(v string) *LambdaFunctionScheduledEventDetails { + s.Resource = &v + return s +} + +// SetTimeoutInSeconds sets the TimeoutInSeconds field's value. +func (s *LambdaFunctionScheduledEventDetails) SetTimeoutInSeconds(v int64) *LambdaFunctionScheduledEventDetails { + s.TimeoutInSeconds = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/LambdaFunctionStartFailedEventDetails +type LambdaFunctionStartFailedEventDetails struct { + _ struct{} `type:"structure"` + + // A more detailed explanation of the cause of the failure. + Cause *string `locationName:"cause" type:"string"` + + // The error code of the failure. + Error *string `locationName:"error" type:"string"` +} + +// String returns the string representation +func (s LambdaFunctionStartFailedEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LambdaFunctionStartFailedEventDetails) GoString() string { + return s.String() +} + +// SetCause sets the Cause field's value. +func (s *LambdaFunctionStartFailedEventDetails) SetCause(v string) *LambdaFunctionStartFailedEventDetails { + s.Cause = &v + return s +} + +// SetError sets the Error field's value. +func (s *LambdaFunctionStartFailedEventDetails) SetError(v string) *LambdaFunctionStartFailedEventDetails { + s.Error = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/LambdaFunctionSucceededEventDetails +type LambdaFunctionSucceededEventDetails struct { + _ struct{} `type:"structure"` + + // The JSON data output by the lambda function. + Output *string `locationName:"output" type:"string"` +} + +// String returns the string representation +func (s LambdaFunctionSucceededEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LambdaFunctionSucceededEventDetails) GoString() string { + return s.String() +} + +// SetOutput sets the Output field's value. +func (s *LambdaFunctionSucceededEventDetails) SetOutput(v string) *LambdaFunctionSucceededEventDetails { + s.Output = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/LambdaFunctionTimedOutEventDetails +type LambdaFunctionTimedOutEventDetails struct { + _ struct{} `type:"structure"` + + // A more detailed explanation of the cause of the timeout. + Cause *string `locationName:"cause" type:"string"` + + // The error code of the failure. + Error *string `locationName:"error" type:"string"` +} + +// String returns the string representation +func (s LambdaFunctionTimedOutEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LambdaFunctionTimedOutEventDetails) GoString() string { + return s.String() +} + +// SetCause sets the Cause field's value. +func (s *LambdaFunctionTimedOutEventDetails) SetCause(v string) *LambdaFunctionTimedOutEventDetails { + s.Cause = &v + return s +} + +// SetError sets the Error field's value. +func (s *LambdaFunctionTimedOutEventDetails) SetError(v string) *LambdaFunctionTimedOutEventDetails { + s.Error = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListActivitiesInput +type ListActivitiesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results that will be returned per call. nextToken can + // be used to obtain further pages of results. The default is 100 and the maximum + // allowed page size is 1000. + // + // This is an upper limit only; the actual number of results returned per call + // may be fewer than the specified maximum. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // If a nextToken was returned by a previous call, there are more results available. + // To retrieve the next page of results, make the call again using the returned + // token in nextToken. Keep all other arguments unchanged. + // + // The configured maxResults determines how many results can be returned in + // a single call. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` +} + +// String returns the string representation +func (s ListActivitiesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListActivitiesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListActivitiesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListActivitiesInput"} + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListActivitiesInput) SetMaxResults(v int64) *ListActivitiesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListActivitiesInput) SetNextToken(v string) *ListActivitiesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListActivitiesOutput +type ListActivitiesOutput struct { + _ struct{} `type:"structure"` + + // The list of activities. + // + // Activities is a required field + Activities []*ActivityListItem `locationName:"activities" type:"list" required:"true"` + + // If a nextToken is returned, there are more results available. To retrieve + // the next page of results, make the call again using the returned token in + // nextToken. Keep all other arguments unchanged. + // + // The configured maxResults determines how many results can be returned in + // a single call. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` +} + +// String returns the string representation +func (s ListActivitiesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListActivitiesOutput) GoString() string { + return s.String() +} + +// SetActivities sets the Activities field's value. +func (s *ListActivitiesOutput) SetActivities(v []*ActivityListItem) *ListActivitiesOutput { + s.Activities = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListActivitiesOutput) SetNextToken(v string) *ListActivitiesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListExecutionsInput +type ListExecutionsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results that will be returned per call. nextToken can + // be used to obtain further pages of results. The default is 100 and the maximum + // allowed page size is 1000. + // + // This is an upper limit only; the actual number of results returned per call + // may be fewer than the specified maximum. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // If a nextToken was returned by a previous call, there are more results available. + // To retrieve the next page of results, make the call again using the returned + // token in nextToken. Keep all other arguments unchanged. + // + // The configured maxResults determines how many results can be returned in + // a single call. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` + + // The Amazon Resource Name (ARN) of the state machine whose executions will + // be listed. + // + // StateMachineArn is a required field + StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` + + // If specified, only list the executions whose current execution status matches + // the given filter. + StatusFilter *string `locationName:"statusFilter" type:"string" enum:"ExecutionStatus"` +} + +// String returns the string representation +func (s ListExecutionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListExecutionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListExecutionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListExecutionsInput"} + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.StateMachineArn == nil { + invalidParams.Add(request.NewErrParamRequired("StateMachineArn")) + } + if s.StateMachineArn != nil && len(*s.StateMachineArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StateMachineArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListExecutionsInput) SetMaxResults(v int64) *ListExecutionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListExecutionsInput) SetNextToken(v string) *ListExecutionsInput { + s.NextToken = &v + return s +} + +// SetStateMachineArn sets the StateMachineArn field's value. +func (s *ListExecutionsInput) SetStateMachineArn(v string) *ListExecutionsInput { + s.StateMachineArn = &v + return s +} + +// SetStatusFilter sets the StatusFilter field's value. +func (s *ListExecutionsInput) SetStatusFilter(v string) *ListExecutionsInput { + s.StatusFilter = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListExecutionsOutput +type ListExecutionsOutput struct { + _ struct{} `type:"structure"` + + // The list of matching executions. + // + // Executions is a required field + Executions []*ExecutionListItem `locationName:"executions" type:"list" required:"true"` + + // If a nextToken is returned, there are more results available. To retrieve + // the next page of results, make the call again using the returned token in + // nextToken. Keep all other arguments unchanged. + // + // The configured maxResults determines how many results can be returned in + // a single call. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` +} + +// String returns the string representation +func (s ListExecutionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListExecutionsOutput) GoString() string { + return s.String() +} + +// SetExecutions sets the Executions field's value. +func (s *ListExecutionsOutput) SetExecutions(v []*ExecutionListItem) *ListExecutionsOutput { + s.Executions = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListExecutionsOutput) SetNextToken(v string) *ListExecutionsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListStateMachinesInput +type ListStateMachinesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results that will be returned per call. nextToken can + // be used to obtain further pages of results. The default is 100 and the maximum + // allowed page size is 1000. + // + // This is an upper limit only; the actual number of results returned per call + // may be fewer than the specified maximum. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // If a nextToken was returned by a previous call, there are more results available. + // To retrieve the next page of results, make the call again using the returned + // token in nextToken. Keep all other arguments unchanged. + // + // The configured maxResults determines how many results can be returned in + // a single call. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` +} + +// String returns the string representation +func (s ListStateMachinesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListStateMachinesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListStateMachinesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListStateMachinesInput"} + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListStateMachinesInput) SetMaxResults(v int64) *ListStateMachinesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListStateMachinesInput) SetNextToken(v string) *ListStateMachinesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListStateMachinesOutput +type ListStateMachinesOutput struct { + _ struct{} `type:"structure"` + + // If a nextToken is returned, there are more results available. To retrieve + // the next page of results, make the call again using the returned token in + // nextToken. Keep all other arguments unchanged. + // + // The configured maxResults determines how many results can be returned in + // a single call. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` + + // StateMachines is a required field + StateMachines []*StateMachineListItem `locationName:"stateMachines" type:"list" required:"true"` +} + +// String returns the string representation +func (s ListStateMachinesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListStateMachinesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListStateMachinesOutput) SetNextToken(v string) *ListStateMachinesOutput { + s.NextToken = &v + return s +} + +// SetStateMachines sets the StateMachines field's value. +func (s *ListStateMachinesOutput) SetStateMachines(v []*StateMachineListItem) *ListStateMachinesOutput { + s.StateMachines = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskFailureInput +type SendTaskFailureInput struct { + _ struct{} `type:"structure"` + + // A more detailed explanation of the cause of the failure. + Cause *string `locationName:"cause" type:"string"` + + // An arbitrary error code that identifies the cause of the failure. + Error *string `locationName:"error" type:"string"` + + // The token that represents this task. Task tokens are generated by the service + // when the tasks are assigned to a worker (see GetActivityTask::taskToken). + // + // TaskToken is a required field + TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s SendTaskFailureInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SendTaskFailureInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SendTaskFailureInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SendTaskFailureInput"} + if s.TaskToken == nil { + invalidParams.Add(request.NewErrParamRequired("TaskToken")) + } + if s.TaskToken != nil && len(*s.TaskToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TaskToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCause sets the Cause field's value. +func (s *SendTaskFailureInput) SetCause(v string) *SendTaskFailureInput { + s.Cause = &v + return s +} + +// SetError sets the Error field's value. +func (s *SendTaskFailureInput) SetError(v string) *SendTaskFailureInput { + s.Error = &v + return s +} + +// SetTaskToken sets the TaskToken field's value. +func (s *SendTaskFailureInput) SetTaskToken(v string) *SendTaskFailureInput { + s.TaskToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskFailureOutput +type SendTaskFailureOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s SendTaskFailureOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SendTaskFailureOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskHeartbeatInput +type SendTaskHeartbeatInput struct { + _ struct{} `type:"structure"` + + // The token that represents this task. Task tokens are generated by the service + // when the tasks are assigned to a worker (see GetActivityTask::taskToken). + // + // TaskToken is a required field + TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s SendTaskHeartbeatInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SendTaskHeartbeatInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SendTaskHeartbeatInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SendTaskHeartbeatInput"} + if s.TaskToken == nil { + invalidParams.Add(request.NewErrParamRequired("TaskToken")) + } + if s.TaskToken != nil && len(*s.TaskToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TaskToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTaskToken sets the TaskToken field's value. +func (s *SendTaskHeartbeatInput) SetTaskToken(v string) *SendTaskHeartbeatInput { + s.TaskToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskHeartbeatOutput +type SendTaskHeartbeatOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s SendTaskHeartbeatOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SendTaskHeartbeatOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskSuccessInput +type SendTaskSuccessInput struct { + _ struct{} `type:"structure"` + + // The JSON output of the task. + // + // Output is a required field + Output *string `locationName:"output" type:"string" required:"true"` + + // The token that represents this task. Task tokens are generated by the service + // when the tasks are assigned to a worker (see GetActivityTask::taskToken). + // + // TaskToken is a required field + TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s SendTaskSuccessInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SendTaskSuccessInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SendTaskSuccessInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SendTaskSuccessInput"} + if s.Output == nil { + invalidParams.Add(request.NewErrParamRequired("Output")) + } + if s.TaskToken == nil { + invalidParams.Add(request.NewErrParamRequired("TaskToken")) + } + if s.TaskToken != nil && len(*s.TaskToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TaskToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetOutput sets the Output field's value. +func (s *SendTaskSuccessInput) SetOutput(v string) *SendTaskSuccessInput { + s.Output = &v + return s +} + +// SetTaskToken sets the TaskToken field's value. +func (s *SendTaskSuccessInput) SetTaskToken(v string) *SendTaskSuccessInput { + s.TaskToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskSuccessOutput +type SendTaskSuccessOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s SendTaskSuccessOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SendTaskSuccessOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StartExecutionInput +type StartExecutionInput struct { + _ struct{} `type:"structure"` + + // The JSON input data for the execution. + Input *string `locationName:"input" type:"string"` + + // The name of the execution. This name must be unique for your AWS account + // and region. + Name *string `locationName:"name" min:"1" type:"string"` + + // The Amazon Resource Name (ARN) of the state machine to execute. + // + // StateMachineArn is a required field + StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s StartExecutionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartExecutionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartExecutionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartExecutionInput"} + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.StateMachineArn == nil { + invalidParams.Add(request.NewErrParamRequired("StateMachineArn")) + } + if s.StateMachineArn != nil && len(*s.StateMachineArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StateMachineArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInput sets the Input field's value. +func (s *StartExecutionInput) SetInput(v string) *StartExecutionInput { + s.Input = &v + return s +} + +// SetName sets the Name field's value. +func (s *StartExecutionInput) SetName(v string) *StartExecutionInput { + s.Name = &v + return s +} + +// SetStateMachineArn sets the StateMachineArn field's value. +func (s *StartExecutionInput) SetStateMachineArn(v string) *StartExecutionInput { + s.StateMachineArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StartExecutionOutput +type StartExecutionOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) that identifies the execution. + // + // ExecutionArn is a required field + ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` + + // The date the execution was started. + // + // StartDate is a required field + StartDate *time.Time `locationName:"startDate" type:"timestamp" timestampFormat:"unix" required:"true"` +} + +// String returns the string representation +func (s StartExecutionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartExecutionOutput) GoString() string { + return s.String() +} + +// SetExecutionArn sets the ExecutionArn field's value. +func (s *StartExecutionOutput) SetExecutionArn(v string) *StartExecutionOutput { + s.ExecutionArn = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *StartExecutionOutput) SetStartDate(v time.Time) *StartExecutionOutput { + s.StartDate = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StateEnteredEventDetails +type StateEnteredEventDetails struct { + _ struct{} `type:"structure"` + + // The JSON input data to the state. + Input *string `locationName:"input" type:"string"` + + // The name of the state. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s StateEnteredEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StateEnteredEventDetails) GoString() string { + return s.String() +} + +// SetInput sets the Input field's value. +func (s *StateEnteredEventDetails) SetInput(v string) *StateEnteredEventDetails { + s.Input = &v + return s +} + +// SetName sets the Name field's value. +func (s *StateEnteredEventDetails) SetName(v string) *StateEnteredEventDetails { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StateExitedEventDetails +type StateExitedEventDetails struct { + _ struct{} `type:"structure"` + + // The name of the state. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The JSON output data of the state. + Output *string `locationName:"output" type:"string"` +} + +// String returns the string representation +func (s StateExitedEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StateExitedEventDetails) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *StateExitedEventDetails) SetName(v string) *StateExitedEventDetails { + s.Name = &v + return s +} + +// SetOutput sets the Output field's value. +func (s *StateExitedEventDetails) SetOutput(v string) *StateExitedEventDetails { + s.Output = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StateMachineListItem +type StateMachineListItem struct { + _ struct{} `type:"structure"` + + // The date the state machine was created. + // + // CreationDate is a required field + CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix" required:"true"` + + // The name of the state machine. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) that identifies the state machine. + // + // StateMachineArn is a required field + StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s StateMachineListItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StateMachineListItem) GoString() string { + return s.String() +} + +// SetCreationDate sets the CreationDate field's value. +func (s *StateMachineListItem) SetCreationDate(v time.Time) *StateMachineListItem { + s.CreationDate = &v + return s +} + +// SetName sets the Name field's value. +func (s *StateMachineListItem) SetName(v string) *StateMachineListItem { + s.Name = &v + return s +} + +// SetStateMachineArn sets the StateMachineArn field's value. +func (s *StateMachineListItem) SetStateMachineArn(v string) *StateMachineListItem { + s.StateMachineArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StopExecutionInput +type StopExecutionInput struct { + _ struct{} `type:"structure"` + + // A more detailed explanation of the cause of the termination. + Cause *string `locationName:"cause" type:"string"` + + // An arbitrary error code that identifies the cause of the termination. + Error *string `locationName:"error" type:"string"` + + // The Amazon Resource Name (ARN) of the execution to stop. + // + // ExecutionArn is a required field + ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s StopExecutionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopExecutionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopExecutionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopExecutionInput"} + if s.ExecutionArn == nil { + invalidParams.Add(request.NewErrParamRequired("ExecutionArn")) + } + if s.ExecutionArn != nil && len(*s.ExecutionArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ExecutionArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCause sets the Cause field's value. +func (s *StopExecutionInput) SetCause(v string) *StopExecutionInput { + s.Cause = &v + return s +} + +// SetError sets the Error field's value. +func (s *StopExecutionInput) SetError(v string) *StopExecutionInput { + s.Error = &v + return s +} + +// SetExecutionArn sets the ExecutionArn field's value. +func (s *StopExecutionInput) SetExecutionArn(v string) *StopExecutionInput { + s.ExecutionArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StopExecutionOutput +type StopExecutionOutput struct { + _ struct{} `type:"structure"` + + // The date the execution was stopped. + // + // StopDate is a required field + StopDate *time.Time `locationName:"stopDate" type:"timestamp" timestampFormat:"unix" required:"true"` +} + +// String returns the string representation +func (s StopExecutionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopExecutionOutput) GoString() string { + return s.String() +} + +// SetStopDate sets the StopDate field's value. +func (s *StopExecutionOutput) SetStopDate(v time.Time) *StopExecutionOutput { + s.StopDate = &v + return s +} + +const ( + // ExecutionStatusRunning is a ExecutionStatus enum value + ExecutionStatusRunning = "RUNNING" + + // ExecutionStatusSucceeded is a ExecutionStatus enum value + ExecutionStatusSucceeded = "SUCCEEDED" + + // ExecutionStatusFailed is a ExecutionStatus enum value + ExecutionStatusFailed = "FAILED" + + // ExecutionStatusTimedOut is a ExecutionStatus enum value + ExecutionStatusTimedOut = "TIMED_OUT" + + // ExecutionStatusAborted is a ExecutionStatus enum value + ExecutionStatusAborted = "ABORTED" +) + +const ( + // HistoryEventTypeActivityFailed is a HistoryEventType enum value + HistoryEventTypeActivityFailed = "ActivityFailed" + + // HistoryEventTypeActivityScheduleFailed is a HistoryEventType enum value + HistoryEventTypeActivityScheduleFailed = "ActivityScheduleFailed" + + // HistoryEventTypeActivityScheduled is a HistoryEventType enum value + HistoryEventTypeActivityScheduled = "ActivityScheduled" + + // HistoryEventTypeActivityStarted is a HistoryEventType enum value + HistoryEventTypeActivityStarted = "ActivityStarted" + + // HistoryEventTypeActivitySucceeded is a HistoryEventType enum value + HistoryEventTypeActivitySucceeded = "ActivitySucceeded" + + // HistoryEventTypeActivityTimedOut is a HistoryEventType enum value + HistoryEventTypeActivityTimedOut = "ActivityTimedOut" + + // HistoryEventTypeChoiceStateEntered is a HistoryEventType enum value + HistoryEventTypeChoiceStateEntered = "ChoiceStateEntered" + + // HistoryEventTypeChoiceStateExited is a HistoryEventType enum value + HistoryEventTypeChoiceStateExited = "ChoiceStateExited" + + // HistoryEventTypeExecutionFailed is a HistoryEventType enum value + HistoryEventTypeExecutionFailed = "ExecutionFailed" + + // HistoryEventTypeExecutionStarted is a HistoryEventType enum value + HistoryEventTypeExecutionStarted = "ExecutionStarted" + + // HistoryEventTypeExecutionSucceeded is a HistoryEventType enum value + HistoryEventTypeExecutionSucceeded = "ExecutionSucceeded" + + // HistoryEventTypeExecutionAborted is a HistoryEventType enum value + HistoryEventTypeExecutionAborted = "ExecutionAborted" + + // HistoryEventTypeExecutionTimedOut is a HistoryEventType enum value + HistoryEventTypeExecutionTimedOut = "ExecutionTimedOut" + + // HistoryEventTypeFailStateEntered is a HistoryEventType enum value + HistoryEventTypeFailStateEntered = "FailStateEntered" + + // HistoryEventTypeLambdaFunctionFailed is a HistoryEventType enum value + HistoryEventTypeLambdaFunctionFailed = "LambdaFunctionFailed" + + // HistoryEventTypeLambdaFunctionScheduleFailed is a HistoryEventType enum value + HistoryEventTypeLambdaFunctionScheduleFailed = "LambdaFunctionScheduleFailed" + + // HistoryEventTypeLambdaFunctionScheduled is a HistoryEventType enum value + HistoryEventTypeLambdaFunctionScheduled = "LambdaFunctionScheduled" + + // HistoryEventTypeLambdaFunctionStartFailed is a HistoryEventType enum value + HistoryEventTypeLambdaFunctionStartFailed = "LambdaFunctionStartFailed" + + // HistoryEventTypeLambdaFunctionStarted is a HistoryEventType enum value + HistoryEventTypeLambdaFunctionStarted = "LambdaFunctionStarted" + + // HistoryEventTypeLambdaFunctionSucceeded is a HistoryEventType enum value + HistoryEventTypeLambdaFunctionSucceeded = "LambdaFunctionSucceeded" + + // HistoryEventTypeLambdaFunctionTimedOut is a HistoryEventType enum value + HistoryEventTypeLambdaFunctionTimedOut = "LambdaFunctionTimedOut" + + // HistoryEventTypeSucceedStateEntered is a HistoryEventType enum value + HistoryEventTypeSucceedStateEntered = "SucceedStateEntered" + + // HistoryEventTypeSucceedStateExited is a HistoryEventType enum value + HistoryEventTypeSucceedStateExited = "SucceedStateExited" + + // HistoryEventTypeTaskStateEntered is a HistoryEventType enum value + HistoryEventTypeTaskStateEntered = "TaskStateEntered" + + // HistoryEventTypeTaskStateExited is a HistoryEventType enum value + HistoryEventTypeTaskStateExited = "TaskStateExited" + + // HistoryEventTypePassStateEntered is a HistoryEventType enum value + HistoryEventTypePassStateEntered = "PassStateEntered" + + // HistoryEventTypePassStateExited is a HistoryEventType enum value + HistoryEventTypePassStateExited = "PassStateExited" + + // HistoryEventTypeParallelStateEntered is a HistoryEventType enum value + HistoryEventTypeParallelStateEntered = "ParallelStateEntered" + + // HistoryEventTypeParallelStateExited is a HistoryEventType enum value + HistoryEventTypeParallelStateExited = "ParallelStateExited" + + // HistoryEventTypeWaitStateEntered is a HistoryEventType enum value + HistoryEventTypeWaitStateEntered = "WaitStateEntered" + + // HistoryEventTypeWaitStateExited is a HistoryEventType enum value + HistoryEventTypeWaitStateExited = "WaitStateExited" +) + +const ( + // StateMachineStatusActive is a StateMachineStatus enum value + StateMachineStatusActive = "ACTIVE" + + // StateMachineStatusDeleting is a StateMachineStatus enum value + StateMachineStatusDeleting = "DELETING" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sfn/errors.go b/vendor/github.com/aws/aws-sdk-go/service/sfn/errors.go new file mode 100644 index 000000000..2a438eb66 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sfn/errors.go @@ -0,0 +1,115 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package sfn + +const ( + + // ErrCodeActivityDoesNotExist for service response error code + // "ActivityDoesNotExist". + // + // The specified activity does not exist. + ErrCodeActivityDoesNotExist = "ActivityDoesNotExist" + + // ErrCodeActivityLimitExceeded for service response error code + // "ActivityLimitExceeded". + // + // The maximum number of activities has been reached. Existing activities must + // be deleted before a new activity can be created. + ErrCodeActivityLimitExceeded = "ActivityLimitExceeded" + + // ErrCodeActivityWorkerLimitExceeded for service response error code + // "ActivityWorkerLimitExceeded". + // + // The maximum number of workers concurrently polling for activity tasks has + // been reached. + ErrCodeActivityWorkerLimitExceeded = "ActivityWorkerLimitExceeded" + + // ErrCodeExecutionAlreadyExists for service response error code + // "ExecutionAlreadyExists". + // + // An execution with the same name already exists. + ErrCodeExecutionAlreadyExists = "ExecutionAlreadyExists" + + // ErrCodeExecutionDoesNotExist for service response error code + // "ExecutionDoesNotExist". + // + // The specified execution does not exist. + ErrCodeExecutionDoesNotExist = "ExecutionDoesNotExist" + + // ErrCodeExecutionLimitExceeded for service response error code + // "ExecutionLimitExceeded". + // + // The maximum number of running executions has been reached. Running executions + // must end or be stopped before a new execution can be started. + ErrCodeExecutionLimitExceeded = "ExecutionLimitExceeded" + + // ErrCodeInvalidArn for service response error code + // "InvalidArn". + // + // The provided Amazon Resource Name (ARN) is invalid. + ErrCodeInvalidArn = "InvalidArn" + + // ErrCodeInvalidDefinition for service response error code + // "InvalidDefinition". + // + // The provided Amazon States Language definition is invalid. + ErrCodeInvalidDefinition = "InvalidDefinition" + + // ErrCodeInvalidExecutionInput for service response error code + // "InvalidExecutionInput". + // + // The provided JSON input data is invalid. + ErrCodeInvalidExecutionInput = "InvalidExecutionInput" + + // ErrCodeInvalidName for service response error code + // "InvalidName". + // + // The provided name is invalid. + ErrCodeInvalidName = "InvalidName" + + // ErrCodeInvalidOutput for service response error code + // "InvalidOutput". + // + // The provided JSON output data is invalid. + ErrCodeInvalidOutput = "InvalidOutput" + + // ErrCodeInvalidToken for service response error code + // "InvalidToken". + // + // The provided token is invalid. + ErrCodeInvalidToken = "InvalidToken" + + // ErrCodeStateMachineAlreadyExists for service response error code + // "StateMachineAlreadyExists". + // + // A state machine with the same name but a different definition or role ARN + // already exists. + ErrCodeStateMachineAlreadyExists = "StateMachineAlreadyExists" + + // ErrCodeStateMachineDeleting for service response error code + // "StateMachineDeleting". + // + // The specified state machine is being deleted. + ErrCodeStateMachineDeleting = "StateMachineDeleting" + + // ErrCodeStateMachineDoesNotExist for service response error code + // "StateMachineDoesNotExist". + // + // The specified state machine does not exist. + ErrCodeStateMachineDoesNotExist = "StateMachineDoesNotExist" + + // ErrCodeStateMachineLimitExceeded for service response error code + // "StateMachineLimitExceeded". + // + // The maximum number of state machines has been reached. Existing state machines + // must be deleted before a new state machine can be created. + ErrCodeStateMachineLimitExceeded = "StateMachineLimitExceeded" + + // ErrCodeTaskDoesNotExist for service response error code + // "TaskDoesNotExist". + ErrCodeTaskDoesNotExist = "TaskDoesNotExist" + + // ErrCodeTaskTimedOut for service response error code + // "TaskTimedOut". + ErrCodeTaskTimedOut = "TaskTimedOut" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sfn/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/sfn/examples_test.go new file mode 100644 index 000000000..ce7850aa5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sfn/examples_test.go @@ -0,0 +1,391 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package sfn_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/sfn" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExampleSFN_CreateActivity() { + sess := session.Must(session.NewSession()) + + svc := sfn.New(sess) + + params := &sfn.CreateActivityInput{ + Name: aws.String("Name"), // Required + } + resp, err := svc.CreateActivity(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSFN_CreateStateMachine() { + sess := session.Must(session.NewSession()) + + svc := sfn.New(sess) + + params := &sfn.CreateStateMachineInput{ + Definition: aws.String("Definition"), // Required + Name: aws.String("Name"), // Required + RoleArn: aws.String("Arn"), // Required + } + resp, err := svc.CreateStateMachine(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSFN_DeleteActivity() { + sess := session.Must(session.NewSession()) + + svc := sfn.New(sess) + + params := &sfn.DeleteActivityInput{ + ActivityArn: aws.String("Arn"), // Required + } + resp, err := svc.DeleteActivity(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSFN_DeleteStateMachine() { + sess := session.Must(session.NewSession()) + + svc := sfn.New(sess) + + params := &sfn.DeleteStateMachineInput{ + StateMachineArn: aws.String("Arn"), // Required + } + resp, err := svc.DeleteStateMachine(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSFN_DescribeActivity() { + sess := session.Must(session.NewSession()) + + svc := sfn.New(sess) + + params := &sfn.DescribeActivityInput{ + ActivityArn: aws.String("Arn"), // Required + } + resp, err := svc.DescribeActivity(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSFN_DescribeExecution() { + sess := session.Must(session.NewSession()) + + svc := sfn.New(sess) + + params := &sfn.DescribeExecutionInput{ + ExecutionArn: aws.String("Arn"), // Required + } + resp, err := svc.DescribeExecution(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSFN_DescribeStateMachine() { + sess := session.Must(session.NewSession()) + + svc := sfn.New(sess) + + params := &sfn.DescribeStateMachineInput{ + StateMachineArn: aws.String("Arn"), // Required + } + resp, err := svc.DescribeStateMachine(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSFN_GetActivityTask() { + sess := session.Must(session.NewSession()) + + svc := sfn.New(sess) + + params := &sfn.GetActivityTaskInput{ + ActivityArn: aws.String("Arn"), // Required + WorkerName: aws.String("Name"), + } + resp, err := svc.GetActivityTask(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSFN_GetExecutionHistory() { + sess := session.Must(session.NewSession()) + + svc := sfn.New(sess) + + params := &sfn.GetExecutionHistoryInput{ + ExecutionArn: aws.String("Arn"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("PageToken"), + ReverseOrder: aws.Bool(true), + } + resp, err := svc.GetExecutionHistory(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSFN_ListActivities() { + sess := session.Must(session.NewSession()) + + svc := sfn.New(sess) + + params := &sfn.ListActivitiesInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("PageToken"), + } + resp, err := svc.ListActivities(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSFN_ListExecutions() { + sess := session.Must(session.NewSession()) + + svc := sfn.New(sess) + + params := &sfn.ListExecutionsInput{ + StateMachineArn: aws.String("Arn"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("PageToken"), + StatusFilter: aws.String("ExecutionStatus"), + } + resp, err := svc.ListExecutions(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSFN_ListStateMachines() { + sess := session.Must(session.NewSession()) + + svc := sfn.New(sess) + + params := &sfn.ListStateMachinesInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("PageToken"), + } + resp, err := svc.ListStateMachines(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSFN_SendTaskFailure() { + sess := session.Must(session.NewSession()) + + svc := sfn.New(sess) + + params := &sfn.SendTaskFailureInput{ + TaskToken: aws.String("TaskToken"), // Required + Cause: aws.String("Cause"), + Error: aws.String("Error"), + } + resp, err := svc.SendTaskFailure(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSFN_SendTaskHeartbeat() { + sess := session.Must(session.NewSession()) + + svc := sfn.New(sess) + + params := &sfn.SendTaskHeartbeatInput{ + TaskToken: aws.String("TaskToken"), // Required + } + resp, err := svc.SendTaskHeartbeat(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSFN_SendTaskSuccess() { + sess := session.Must(session.NewSession()) + + svc := sfn.New(sess) + + params := &sfn.SendTaskSuccessInput{ + Output: aws.String("Data"), // Required + TaskToken: aws.String("TaskToken"), // Required + } + resp, err := svc.SendTaskSuccess(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSFN_StartExecution() { + sess := session.Must(session.NewSession()) + + svc := sfn.New(sess) + + params := &sfn.StartExecutionInput{ + StateMachineArn: aws.String("Arn"), // Required + Input: aws.String("Data"), + Name: aws.String("Name"), + } + resp, err := svc.StartExecution(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSFN_StopExecution() { + sess := session.Must(session.NewSession()) + + svc := sfn.New(sess) + + params := &sfn.StopExecutionInput{ + ExecutionArn: aws.String("Arn"), // Required + Cause: aws.String("Cause"), + Error: aws.String("Error"), + } + resp, err := svc.StopExecution(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/sfn/service.go b/vendor/github.com/aws/aws-sdk-go/service/sfn/service.go new file mode 100644 index 000000000..77bf817e7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sfn/service.go @@ -0,0 +1,108 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package sfn + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" +) + +// AWS Step Functions is a web service that enables you to coordinate the components +// of distributed applications and microservices using visual workflows. You +// build applications from individual components that each perform a discrete +// function, or task, allowing you to scale and change applications quickly. +// Step Functions provides a graphical console to visualize the components of +// your application as a series of steps. It automatically triggers and tracks +// each step, and retries when there are errors, so your application executes +// in order and as expected, every time. Step Functions logs the state of each +// step, so when things do go wrong, you can diagnose and debug problems quickly. +// +// Step Functions manages the operations and underlying infrastructure for you +// to ensure your application is available at any scale. You can run tasks on +// the AWS cloud, on your own servers, or an any system that has access to AWS. +// Step Functions can be accessed and used with the Step Functions console, +// the AWS SDKs (included with your Beta release invitation email), or an HTTP +// API (the subject of this document). +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23 +type SFN struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "states" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the SFN client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a SFN client from just a session. +// svc := sfn.New(mySession) +// +// // Create a SFN client with additional configuration +// svc := sfn.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *SFN { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *SFN { + svc := &SFN{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2016-11-23", + JSONVersion: "1.0", + TargetPrefix: "AWSStepFunctions", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a SFN operation and runs any +// custom request initialization. +func (c *SFN) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/sfn/sfniface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/sfn/sfniface/interface.go new file mode 100644 index 000000000..0d0684ec9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sfn/sfniface/interface.go @@ -0,0 +1,139 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package sfniface provides an interface to enable mocking the AWS Step Functions service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package sfniface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/sfn" +) + +// SFNAPI provides an interface to enable mocking the +// sfn.SFN service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS Step Functions. +// func myFunc(svc sfniface.SFNAPI) bool { +// // Make svc.CreateActivity request +// } +// +// func main() { +// sess := session.New() +// svc := sfn.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockSFNClient struct { +// sfniface.SFNAPI +// } +// func (m *mockSFNClient) CreateActivity(input *sfn.CreateActivityInput) (*sfn.CreateActivityOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockSFNClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type SFNAPI interface { + CreateActivityRequest(*sfn.CreateActivityInput) (*request.Request, *sfn.CreateActivityOutput) + + CreateActivity(*sfn.CreateActivityInput) (*sfn.CreateActivityOutput, error) + + CreateStateMachineRequest(*sfn.CreateStateMachineInput) (*request.Request, *sfn.CreateStateMachineOutput) + + CreateStateMachine(*sfn.CreateStateMachineInput) (*sfn.CreateStateMachineOutput, error) + + DeleteActivityRequest(*sfn.DeleteActivityInput) (*request.Request, *sfn.DeleteActivityOutput) + + DeleteActivity(*sfn.DeleteActivityInput) (*sfn.DeleteActivityOutput, error) + + DeleteStateMachineRequest(*sfn.DeleteStateMachineInput) (*request.Request, *sfn.DeleteStateMachineOutput) + + DeleteStateMachine(*sfn.DeleteStateMachineInput) (*sfn.DeleteStateMachineOutput, error) + + DescribeActivityRequest(*sfn.DescribeActivityInput) (*request.Request, *sfn.DescribeActivityOutput) + + DescribeActivity(*sfn.DescribeActivityInput) (*sfn.DescribeActivityOutput, error) + + DescribeExecutionRequest(*sfn.DescribeExecutionInput) (*request.Request, *sfn.DescribeExecutionOutput) + + DescribeExecution(*sfn.DescribeExecutionInput) (*sfn.DescribeExecutionOutput, error) + + DescribeStateMachineRequest(*sfn.DescribeStateMachineInput) (*request.Request, *sfn.DescribeStateMachineOutput) + + DescribeStateMachine(*sfn.DescribeStateMachineInput) (*sfn.DescribeStateMachineOutput, error) + + GetActivityTaskRequest(*sfn.GetActivityTaskInput) (*request.Request, *sfn.GetActivityTaskOutput) + + GetActivityTask(*sfn.GetActivityTaskInput) (*sfn.GetActivityTaskOutput, error) + + GetExecutionHistoryRequest(*sfn.GetExecutionHistoryInput) (*request.Request, *sfn.GetExecutionHistoryOutput) + + GetExecutionHistory(*sfn.GetExecutionHistoryInput) (*sfn.GetExecutionHistoryOutput, error) + + GetExecutionHistoryPages(*sfn.GetExecutionHistoryInput, func(*sfn.GetExecutionHistoryOutput, bool) bool) error + + ListActivitiesRequest(*sfn.ListActivitiesInput) (*request.Request, *sfn.ListActivitiesOutput) + + ListActivities(*sfn.ListActivitiesInput) (*sfn.ListActivitiesOutput, error) + + ListActivitiesPages(*sfn.ListActivitiesInput, func(*sfn.ListActivitiesOutput, bool) bool) error + + ListExecutionsRequest(*sfn.ListExecutionsInput) (*request.Request, *sfn.ListExecutionsOutput) + + ListExecutions(*sfn.ListExecutionsInput) (*sfn.ListExecutionsOutput, error) + + ListExecutionsPages(*sfn.ListExecutionsInput, func(*sfn.ListExecutionsOutput, bool) bool) error + + ListStateMachinesRequest(*sfn.ListStateMachinesInput) (*request.Request, *sfn.ListStateMachinesOutput) + + ListStateMachines(*sfn.ListStateMachinesInput) (*sfn.ListStateMachinesOutput, error) + + ListStateMachinesPages(*sfn.ListStateMachinesInput, func(*sfn.ListStateMachinesOutput, bool) bool) error + + SendTaskFailureRequest(*sfn.SendTaskFailureInput) (*request.Request, *sfn.SendTaskFailureOutput) + + SendTaskFailure(*sfn.SendTaskFailureInput) (*sfn.SendTaskFailureOutput, error) + + SendTaskHeartbeatRequest(*sfn.SendTaskHeartbeatInput) (*request.Request, *sfn.SendTaskHeartbeatOutput) + + SendTaskHeartbeat(*sfn.SendTaskHeartbeatInput) (*sfn.SendTaskHeartbeatOutput, error) + + SendTaskSuccessRequest(*sfn.SendTaskSuccessInput) (*request.Request, *sfn.SendTaskSuccessOutput) + + SendTaskSuccess(*sfn.SendTaskSuccessInput) (*sfn.SendTaskSuccessOutput, error) + + StartExecutionRequest(*sfn.StartExecutionInput) (*request.Request, *sfn.StartExecutionOutput) + + StartExecution(*sfn.StartExecutionInput) (*sfn.StartExecutionOutput, error) + + StopExecutionRequest(*sfn.StopExecutionInput) (*request.Request, *sfn.StopExecutionOutput) + + StopExecution(*sfn.StopExecutionInput) (*sfn.StopExecutionOutput, error) +} + +var _ SFNAPI = (*sfn.SFN)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/shield/api.go b/vendor/github.com/aws/aws-sdk-go/service/shield/api.go new file mode 100644 index 000000000..97ccfd935 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/shield/api.go @@ -0,0 +1,1703 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package shield provides a client for AWS Shield. +package shield + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opCreateProtection = "CreateProtection" + +// CreateProtectionRequest generates a "aws/request.Request" representing the +// client's request for the CreateProtection operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateProtection for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateProtection method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateProtectionRequest method. +// req, resp := client.CreateProtectionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/CreateProtection +func (c *Shield) CreateProtectionRequest(input *CreateProtectionInput) (req *request.Request, output *CreateProtectionOutput) { + op := &request.Operation{ + Name: opCreateProtection, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateProtectionInput{} + } + + output = &CreateProtectionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateProtection API operation for AWS Shield. +// +// Enables AWS Shield Advanced for a specific AWS resource. The resource can +// be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, +// or an Amazon Route 53 hosted zone. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Shield's +// API operation CreateProtection for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// Exception that indicates that a problem occurred with the service infrastructure. +// You can retry the request. +// +// * ErrCodeInvalidResourceException "InvalidResourceException" +// Exception that indicates that the resource is invalid. You might not have +// access to the resource, or the resource might not exist. +// +// * ErrCodeInvalidOperationException "InvalidOperationException" +// Exception that indicates that the operation would not cause any change to +// occur. +// +// * ErrCodeLimitsExceededException "LimitsExceededException" +// Exception that indicates that the operation would exceed a limit. +// +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// Exception indicating the specified resource already exists. +// +// * ErrCodeOptimisticLockException "OptimisticLockException" +// Exception that indicates that the protection state has been modified by another +// client. You can retry the request. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Exception indicating the specified resource does not exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/CreateProtection +func (c *Shield) CreateProtection(input *CreateProtectionInput) (*CreateProtectionOutput, error) { + req, out := c.CreateProtectionRequest(input) + err := req.Send() + return out, err +} + +const opCreateSubscription = "CreateSubscription" + +// CreateSubscriptionRequest generates a "aws/request.Request" representing the +// client's request for the CreateSubscription operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateSubscription for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateSubscription method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateSubscriptionRequest method. +// req, resp := client.CreateSubscriptionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/CreateSubscription +func (c *Shield) CreateSubscriptionRequest(input *CreateSubscriptionInput) (req *request.Request, output *CreateSubscriptionOutput) { + op := &request.Operation{ + Name: opCreateSubscription, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateSubscriptionInput{} + } + + output = &CreateSubscriptionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateSubscription API operation for AWS Shield. +// +// Activates AWS Shield Advanced for an account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Shield's +// API operation CreateSubscription for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// Exception that indicates that a problem occurred with the service infrastructure. +// You can retry the request. +// +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// Exception indicating the specified resource already exists. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/CreateSubscription +func (c *Shield) CreateSubscription(input *CreateSubscriptionInput) (*CreateSubscriptionOutput, error) { + req, out := c.CreateSubscriptionRequest(input) + err := req.Send() + return out, err +} + +const opDeleteProtection = "DeleteProtection" + +// DeleteProtectionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteProtection operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteProtection for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteProtection method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteProtectionRequest method. +// req, resp := client.DeleteProtectionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DeleteProtection +func (c *Shield) DeleteProtectionRequest(input *DeleteProtectionInput) (req *request.Request, output *DeleteProtectionOutput) { + op := &request.Operation{ + Name: opDeleteProtection, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteProtectionInput{} + } + + output = &DeleteProtectionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteProtection API operation for AWS Shield. +// +// Deletes an AWS Shield Advanced Protection. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Shield's +// API operation DeleteProtection for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// Exception that indicates that a problem occurred with the service infrastructure. +// You can retry the request. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Exception indicating the specified resource does not exist. +// +// * ErrCodeOptimisticLockException "OptimisticLockException" +// Exception that indicates that the protection state has been modified by another +// client. You can retry the request. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DeleteProtection +func (c *Shield) DeleteProtection(input *DeleteProtectionInput) (*DeleteProtectionOutput, error) { + req, out := c.DeleteProtectionRequest(input) + err := req.Send() + return out, err +} + +const opDeleteSubscription = "DeleteSubscription" + +// DeleteSubscriptionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSubscription operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteSubscription for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteSubscription method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteSubscriptionRequest method. +// req, resp := client.DeleteSubscriptionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DeleteSubscription +func (c *Shield) DeleteSubscriptionRequest(input *DeleteSubscriptionInput) (req *request.Request, output *DeleteSubscriptionOutput) { + op := &request.Operation{ + Name: opDeleteSubscription, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteSubscriptionInput{} + } + + output = &DeleteSubscriptionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteSubscription API operation for AWS Shield. +// +// Removes AWS Shield Advanced from an account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Shield's +// API operation DeleteSubscription for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// Exception that indicates that a problem occurred with the service infrastructure. +// You can retry the request. +// +// * ErrCodeLockedSubscriptionException "LockedSubscriptionException" +// Exception that indicates that the subscription has been modified by another +// client. You can retry the request. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Exception indicating the specified resource does not exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DeleteSubscription +func (c *Shield) DeleteSubscription(input *DeleteSubscriptionInput) (*DeleteSubscriptionOutput, error) { + req, out := c.DeleteSubscriptionRequest(input) + err := req.Send() + return out, err +} + +const opDescribeAttack = "DescribeAttack" + +// DescribeAttackRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAttack operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeAttack for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeAttack method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeAttackRequest method. +// req, resp := client.DescribeAttackRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeAttack +func (c *Shield) DescribeAttackRequest(input *DescribeAttackInput) (req *request.Request, output *DescribeAttackOutput) { + op := &request.Operation{ + Name: opDescribeAttack, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeAttackInput{} + } + + output = &DescribeAttackOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeAttack API operation for AWS Shield. +// +// Describes the details of a DDoS attack. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Shield's +// API operation DescribeAttack for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// Exception that indicates that a problem occurred with the service infrastructure. +// You can retry the request. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// Exception that indicates that the parameters passed to the API are invalid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeAttack +func (c *Shield) DescribeAttack(input *DescribeAttackInput) (*DescribeAttackOutput, error) { + req, out := c.DescribeAttackRequest(input) + err := req.Send() + return out, err +} + +const opDescribeProtection = "DescribeProtection" + +// DescribeProtectionRequest generates a "aws/request.Request" representing the +// client's request for the DescribeProtection operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeProtection for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeProtection method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeProtectionRequest method. +// req, resp := client.DescribeProtectionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeProtection +func (c *Shield) DescribeProtectionRequest(input *DescribeProtectionInput) (req *request.Request, output *DescribeProtectionOutput) { + op := &request.Operation{ + Name: opDescribeProtection, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeProtectionInput{} + } + + output = &DescribeProtectionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeProtection API operation for AWS Shield. +// +// Lists the details of a Protection object. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Shield's +// API operation DescribeProtection for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// Exception that indicates that a problem occurred with the service infrastructure. +// You can retry the request. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Exception indicating the specified resource does not exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeProtection +func (c *Shield) DescribeProtection(input *DescribeProtectionInput) (*DescribeProtectionOutput, error) { + req, out := c.DescribeProtectionRequest(input) + err := req.Send() + return out, err +} + +const opDescribeSubscription = "DescribeSubscription" + +// DescribeSubscriptionRequest generates a "aws/request.Request" representing the +// client's request for the DescribeSubscription operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeSubscription for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeSubscription method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeSubscriptionRequest method. +// req, resp := client.DescribeSubscriptionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeSubscription +func (c *Shield) DescribeSubscriptionRequest(input *DescribeSubscriptionInput) (req *request.Request, output *DescribeSubscriptionOutput) { + op := &request.Operation{ + Name: opDescribeSubscription, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeSubscriptionInput{} + } + + output = &DescribeSubscriptionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeSubscription API operation for AWS Shield. +// +// Provides details about the AWS Shield Advanced subscription for an account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Shield's +// API operation DescribeSubscription for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// Exception that indicates that a problem occurred with the service infrastructure. +// You can retry the request. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Exception indicating the specified resource does not exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeSubscription +func (c *Shield) DescribeSubscription(input *DescribeSubscriptionInput) (*DescribeSubscriptionOutput, error) { + req, out := c.DescribeSubscriptionRequest(input) + err := req.Send() + return out, err +} + +const opListAttacks = "ListAttacks" + +// ListAttacksRequest generates a "aws/request.Request" representing the +// client's request for the ListAttacks operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListAttacks for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListAttacks method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListAttacksRequest method. +// req, resp := client.ListAttacksRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/ListAttacks +func (c *Shield) ListAttacksRequest(input *ListAttacksInput) (req *request.Request, output *ListAttacksOutput) { + op := &request.Operation{ + Name: opListAttacks, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListAttacksInput{} + } + + output = &ListAttacksOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAttacks API operation for AWS Shield. +// +// Returns all ongoing DDoS attacks or all DDoS attacks during a specified time +// period. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Shield's +// API operation ListAttacks for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// Exception that indicates that a problem occurred with the service infrastructure. +// You can retry the request. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// Exception that indicates that the parameters passed to the API are invalid. +// +// * ErrCodeInvalidOperationException "InvalidOperationException" +// Exception that indicates that the operation would not cause any change to +// occur. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/ListAttacks +func (c *Shield) ListAttacks(input *ListAttacksInput) (*ListAttacksOutput, error) { + req, out := c.ListAttacksRequest(input) + err := req.Send() + return out, err +} + +const opListProtections = "ListProtections" + +// ListProtectionsRequest generates a "aws/request.Request" representing the +// client's request for the ListProtections operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListProtections for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListProtections method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListProtectionsRequest method. +// req, resp := client.ListProtectionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/ListProtections +func (c *Shield) ListProtectionsRequest(input *ListProtectionsInput) (req *request.Request, output *ListProtectionsOutput) { + op := &request.Operation{ + Name: opListProtections, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListProtectionsInput{} + } + + output = &ListProtectionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListProtections API operation for AWS Shield. +// +// Lists all Protection objects for the account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Shield's +// API operation ListProtections for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// Exception that indicates that a problem occurred with the service infrastructure. +// You can retry the request. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Exception indicating the specified resource does not exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/ListProtections +func (c *Shield) ListProtections(input *ListProtectionsInput) (*ListProtectionsOutput, error) { + req, out := c.ListProtectionsRequest(input) + err := req.Send() + return out, err +} + +// The details of a DDoS attack. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/AttackDetail +type AttackDetail struct { + _ struct{} `type:"structure"` + + // List of counters that describe the attack for the specified time period. + AttackCounters []*SummarizedCounter `type:"list"` + + // The unique identifier (ID) of the attack. + AttackId *string `min:"1" type:"string"` + + // The time the attack ended, in the format 2016-12-16T13:50Z. + EndTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // List of mitigation actions taken for the attack. + Mitigations []*Mitigation `type:"list"` + + // The ARN (Amazon Resource Name) of the resource that was attacked. + ResourceArn *string `min:"1" type:"string"` + + // The time the attack started, in the format 2016-12-16T13:50Z. + StartTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // If applicable, additional detail about the resource being attacked, for example, + // IP address or URL. + SubResources []*SubResourceSummary `type:"list"` +} + +// String returns the string representation +func (s AttackDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttackDetail) GoString() string { + return s.String() +} + +// SetAttackCounters sets the AttackCounters field's value. +func (s *AttackDetail) SetAttackCounters(v []*SummarizedCounter) *AttackDetail { + s.AttackCounters = v + return s +} + +// SetAttackId sets the AttackId field's value. +func (s *AttackDetail) SetAttackId(v string) *AttackDetail { + s.AttackId = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *AttackDetail) SetEndTime(v time.Time) *AttackDetail { + s.EndTime = &v + return s +} + +// SetMitigations sets the Mitigations field's value. +func (s *AttackDetail) SetMitigations(v []*Mitigation) *AttackDetail { + s.Mitigations = v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *AttackDetail) SetResourceArn(v string) *AttackDetail { + s.ResourceArn = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *AttackDetail) SetStartTime(v time.Time) *AttackDetail { + s.StartTime = &v + return s +} + +// SetSubResources sets the SubResources field's value. +func (s *AttackDetail) SetSubResources(v []*SubResourceSummary) *AttackDetail { + s.SubResources = v + return s +} + +// Summarizes all DDoS attacks for a specified time period. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/AttackSummary +type AttackSummary struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) of the attack. + AttackId *string `type:"string"` + + // The list of attacks for a specified time period. + AttackVectors []*AttackVectorDescription `type:"list"` + + // The end time of the attack, in the format 2016-12-16T13:50Z. + EndTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The ARN (Amazon Resource Name) of the resource that was attacked. + ResourceArn *string `type:"string"` + + // The start time of the attack, in the format 2016-12-16T13:50Z. + StartTime *time.Time `type:"timestamp" timestampFormat:"unix"` +} + +// String returns the string representation +func (s AttackSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttackSummary) GoString() string { + return s.String() +} + +// SetAttackId sets the AttackId field's value. +func (s *AttackSummary) SetAttackId(v string) *AttackSummary { + s.AttackId = &v + return s +} + +// SetAttackVectors sets the AttackVectors field's value. +func (s *AttackSummary) SetAttackVectors(v []*AttackVectorDescription) *AttackSummary { + s.AttackVectors = v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *AttackSummary) SetEndTime(v time.Time) *AttackSummary { + s.EndTime = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *AttackSummary) SetResourceArn(v string) *AttackSummary { + s.ResourceArn = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *AttackSummary) SetStartTime(v time.Time) *AttackSummary { + s.StartTime = &v + return s +} + +// Describes the attack. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/AttackVectorDescription +type AttackVectorDescription struct { + _ struct{} `type:"structure"` + + // The attack type, for example, SNMP reflection or SYN flood. + // + // VectorType is a required field + VectorType *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s AttackVectorDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttackVectorDescription) GoString() string { + return s.String() +} + +// SetVectorType sets the VectorType field's value. +func (s *AttackVectorDescription) SetVectorType(v string) *AttackVectorDescription { + s.VectorType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/CreateProtectionRequest +type CreateProtectionInput struct { + _ struct{} `type:"structure"` + + // Friendly name for the Protection you are creating. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The ARN (Amazon Resource Name) of the resource to be protected. + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateProtectionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateProtectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateProtectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateProtectionInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *CreateProtectionInput) SetName(v string) *CreateProtectionInput { + s.Name = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *CreateProtectionInput) SetResourceArn(v string) *CreateProtectionInput { + s.ResourceArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/CreateProtectionResponse +type CreateProtectionOutput struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) for the Protection object that is created. + ProtectionId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s CreateProtectionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateProtectionOutput) GoString() string { + return s.String() +} + +// SetProtectionId sets the ProtectionId field's value. +func (s *CreateProtectionOutput) SetProtectionId(v string) *CreateProtectionOutput { + s.ProtectionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/CreateSubscriptionRequest +type CreateSubscriptionInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateSubscriptionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSubscriptionInput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/CreateSubscriptionResponse +type CreateSubscriptionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateSubscriptionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSubscriptionOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DeleteProtectionRequest +type DeleteProtectionInput struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) for the Protection object to be deleted. + // + // ProtectionId is a required field + ProtectionId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteProtectionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteProtectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteProtectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteProtectionInput"} + if s.ProtectionId == nil { + invalidParams.Add(request.NewErrParamRequired("ProtectionId")) + } + if s.ProtectionId != nil && len(*s.ProtectionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProtectionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetProtectionId sets the ProtectionId field's value. +func (s *DeleteProtectionInput) SetProtectionId(v string) *DeleteProtectionInput { + s.ProtectionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DeleteProtectionResponse +type DeleteProtectionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteProtectionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteProtectionOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DeleteSubscriptionRequest +type DeleteSubscriptionInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteSubscriptionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteSubscriptionInput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DeleteSubscriptionResponse +type DeleteSubscriptionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteSubscriptionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteSubscriptionOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeAttackRequest +type DescribeAttackInput struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) for the attack that to be described. + // + // AttackId is a required field + AttackId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeAttackInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAttackInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeAttackInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeAttackInput"} + if s.AttackId == nil { + invalidParams.Add(request.NewErrParamRequired("AttackId")) + } + if s.AttackId != nil && len(*s.AttackId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttackId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttackId sets the AttackId field's value. +func (s *DescribeAttackInput) SetAttackId(v string) *DescribeAttackInput { + s.AttackId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeAttackResponse +type DescribeAttackOutput struct { + _ struct{} `type:"structure"` + + // The attack that is described. + Attack *AttackDetail `type:"structure"` +} + +// String returns the string representation +func (s DescribeAttackOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAttackOutput) GoString() string { + return s.String() +} + +// SetAttack sets the Attack field's value. +func (s *DescribeAttackOutput) SetAttack(v *AttackDetail) *DescribeAttackOutput { + s.Attack = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeProtectionRequest +type DescribeProtectionInput struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) for the Protection object that is described. + // + // ProtectionId is a required field + ProtectionId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeProtectionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeProtectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeProtectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeProtectionInput"} + if s.ProtectionId == nil { + invalidParams.Add(request.NewErrParamRequired("ProtectionId")) + } + if s.ProtectionId != nil && len(*s.ProtectionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProtectionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetProtectionId sets the ProtectionId field's value. +func (s *DescribeProtectionInput) SetProtectionId(v string) *DescribeProtectionInput { + s.ProtectionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeProtectionResponse +type DescribeProtectionOutput struct { + _ struct{} `type:"structure"` + + // The Protection object that is described. + Protection *Protection `type:"structure"` +} + +// String returns the string representation +func (s DescribeProtectionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeProtectionOutput) GoString() string { + return s.String() +} + +// SetProtection sets the Protection field's value. +func (s *DescribeProtectionOutput) SetProtection(v *Protection) *DescribeProtectionOutput { + s.Protection = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeSubscriptionRequest +type DescribeSubscriptionInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DescribeSubscriptionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeSubscriptionInput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeSubscriptionResponse +type DescribeSubscriptionOutput struct { + _ struct{} `type:"structure"` + + // The AWS Shield Advanced subscription details for an account. + Subscription *Subscription `type:"structure"` +} + +// String returns the string representation +func (s DescribeSubscriptionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeSubscriptionOutput) GoString() string { + return s.String() +} + +// SetSubscription sets the Subscription field's value. +func (s *DescribeSubscriptionOutput) SetSubscription(v *Subscription) *DescribeSubscriptionOutput { + s.Subscription = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/ListAttacksRequest +type ListAttacksInput struct { + _ struct{} `type:"structure"` + + // The end of the time period for the attacks. + EndTime *TimeRange `type:"structure"` + + // The maximum number of AttackSummary objects to be returned. If this is left + // blank, the first 20 results will be returned. + MaxResults *int64 `type:"integer"` + + // The ListAttacksRequest.NextMarker value from a previous call to ListAttacksRequest. + // Pass null if this is the first call. + NextToken *string `min:"1" type:"string"` + + // The ARN (Amazon Resource Name) of the resource that was attacked. If this + // is left blank, all applicable resources for this account will be included. + ResourceArns []*string `type:"list"` + + // The time period for the attacks. + StartTime *TimeRange `type:"structure"` +} + +// String returns the string representation +func (s ListAttacksInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAttacksInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAttacksInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAttacksInput"} + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndTime sets the EndTime field's value. +func (s *ListAttacksInput) SetEndTime(v *TimeRange) *ListAttacksInput { + s.EndTime = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAttacksInput) SetMaxResults(v int64) *ListAttacksInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAttacksInput) SetNextToken(v string) *ListAttacksInput { + s.NextToken = &v + return s +} + +// SetResourceArns sets the ResourceArns field's value. +func (s *ListAttacksInput) SetResourceArns(v []*string) *ListAttacksInput { + s.ResourceArns = v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *ListAttacksInput) SetStartTime(v *TimeRange) *ListAttacksInput { + s.StartTime = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/ListAttacksResponse +type ListAttacksOutput struct { + _ struct{} `type:"structure"` + + // The attack information for the specified time range. + AttackSummaries []*AttackSummary `type:"list"` + + // The token returned by a previous call to indicate that there is more data + // available. If not null, more results are available. Pass this value for the + // NextMarker parameter in a subsequent call to ListAttacks to retrieve the + // next set of items. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListAttacksOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAttacksOutput) GoString() string { + return s.String() +} + +// SetAttackSummaries sets the AttackSummaries field's value. +func (s *ListAttacksOutput) SetAttackSummaries(v []*AttackSummary) *ListAttacksOutput { + s.AttackSummaries = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAttacksOutput) SetNextToken(v string) *ListAttacksOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/ListProtectionsRequest +type ListProtectionsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of Protection objects to be returned. If this is left + // blank the first 20 results will be returned. + MaxResults *int64 `type:"integer"` + + // The ListProtectionsRequest.NextToken value from a previous call to ListProtections. + // Pass null if this is the first call. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListProtectionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListProtectionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListProtectionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListProtectionsInput"} + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListProtectionsInput) SetMaxResults(v int64) *ListProtectionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListProtectionsInput) SetNextToken(v string) *ListProtectionsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/ListProtectionsResponse +type ListProtectionsOutput struct { + _ struct{} `type:"structure"` + + // If you specify a value for MaxResults and you have more Protections than + // the value of MaxResults, AWS Shield Advanced returns a NextToken value in + // the response that allows you to list another group of Protections. For the + // second and subsequent ListProtections requests, specify the value of NextToken + // from the previous response to get information about another batch of Protections. + NextToken *string `min:"1" type:"string"` + + // The array of enabled Protection objects. + Protections []*Protection `type:"list"` +} + +// String returns the string representation +func (s ListProtectionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListProtectionsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListProtectionsOutput) SetNextToken(v string) *ListProtectionsOutput { + s.NextToken = &v + return s +} + +// SetProtections sets the Protections field's value. +func (s *ListProtectionsOutput) SetProtections(v []*Protection) *ListProtectionsOutput { + s.Protections = v + return s +} + +// The mitigation applied to a DDoS attack. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/Mitigation +type Mitigation struct { + _ struct{} `type:"structure"` + + // The name of the mitigation taken for this attack. + MitigationName *string `type:"string"` +} + +// String returns the string representation +func (s Mitigation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Mitigation) GoString() string { + return s.String() +} + +// SetMitigationName sets the MitigationName field's value. +func (s *Mitigation) SetMitigationName(v string) *Mitigation { + s.MitigationName = &v + return s +} + +// An object that represents a resource that is under DDoS protection. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/Protection +type Protection struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) of the protection. + Id *string `min:"1" type:"string"` + + // The friendly name of the protection. For example, My CloudFront distributions. + Name *string `min:"1" type:"string"` + + // The ARN (Amazon Resource Name) of the AWS resource that is protected. + ResourceArn *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s Protection) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Protection) GoString() string { + return s.String() +} + +// SetId sets the Id field's value. +func (s *Protection) SetId(v string) *Protection { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *Protection) SetName(v string) *Protection { + s.Name = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *Protection) SetResourceArn(v string) *Protection { + s.ResourceArn = &v + return s +} + +// The attack information for the specified SubResource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/SubResourceSummary +type SubResourceSummary struct { + _ struct{} `type:"structure"` + + // The list of attack types and associated counters. + AttackVectors []*SummarizedAttackVector `type:"list"` + + // The counters that describe the details of the attack. + Counters []*SummarizedCounter `type:"list"` + + // The unique identifier (ID) of the SubResource. + Id *string `type:"string"` + + // The SubResource type. + Type *string `type:"string" enum:"SubResourceType"` +} + +// String returns the string representation +func (s SubResourceSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SubResourceSummary) GoString() string { + return s.String() +} + +// SetAttackVectors sets the AttackVectors field's value. +func (s *SubResourceSummary) SetAttackVectors(v []*SummarizedAttackVector) *SubResourceSummary { + s.AttackVectors = v + return s +} + +// SetCounters sets the Counters field's value. +func (s *SubResourceSummary) SetCounters(v []*SummarizedCounter) *SubResourceSummary { + s.Counters = v + return s +} + +// SetId sets the Id field's value. +func (s *SubResourceSummary) SetId(v string) *SubResourceSummary { + s.Id = &v + return s +} + +// SetType sets the Type field's value. +func (s *SubResourceSummary) SetType(v string) *SubResourceSummary { + s.Type = &v + return s +} + +// Information about the AWS Shield Advanced subscription for an account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/Subscription +type Subscription struct { + _ struct{} `type:"structure"` + + // The start time of the subscription, in the format "2016-12-16T13:50Z". + StartTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The length, in seconds, of the AWS Shield Advanced subscription for the account. + TimeCommitmentInSeconds *int64 `type:"long"` +} + +// String returns the string representation +func (s Subscription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Subscription) GoString() string { + return s.String() +} + +// SetStartTime sets the StartTime field's value. +func (s *Subscription) SetStartTime(v time.Time) *Subscription { + s.StartTime = &v + return s +} + +// SetTimeCommitmentInSeconds sets the TimeCommitmentInSeconds field's value. +func (s *Subscription) SetTimeCommitmentInSeconds(v int64) *Subscription { + s.TimeCommitmentInSeconds = &v + return s +} + +// A summary of information about the attack. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/SummarizedAttackVector +type SummarizedAttackVector struct { + _ struct{} `type:"structure"` + + // The list of counters that describe the details of the attack. + VectorCounters []*SummarizedCounter `type:"list"` + + // The attack type, for example, SNMP reflection or SYN flood. + // + // VectorType is a required field + VectorType *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s SummarizedAttackVector) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SummarizedAttackVector) GoString() string { + return s.String() +} + +// SetVectorCounters sets the VectorCounters field's value. +func (s *SummarizedAttackVector) SetVectorCounters(v []*SummarizedCounter) *SummarizedAttackVector { + s.VectorCounters = v + return s +} + +// SetVectorType sets the VectorType field's value. +func (s *SummarizedAttackVector) SetVectorType(v string) *SummarizedAttackVector { + s.VectorType = &v + return s +} + +// The counter that describes a DDoS attack. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/SummarizedCounter +type SummarizedCounter struct { + _ struct{} `type:"structure"` + + // The average value of the counter for a specified time period. + Average *float64 `type:"double"` + + // The maximum value of the counter for a specified time period. + Max *float64 `type:"double"` + + // The number of counters for a specified time period. + N *int64 `type:"integer"` + + // The counter name. + Name *string `type:"string"` + + // The total of counter values for a specified time period. + Sum *float64 `type:"double"` + + // The unit of the counters. + Unit *string `type:"string"` +} + +// String returns the string representation +func (s SummarizedCounter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SummarizedCounter) GoString() string { + return s.String() +} + +// SetAverage sets the Average field's value. +func (s *SummarizedCounter) SetAverage(v float64) *SummarizedCounter { + s.Average = &v + return s +} + +// SetMax sets the Max field's value. +func (s *SummarizedCounter) SetMax(v float64) *SummarizedCounter { + s.Max = &v + return s +} + +// SetN sets the N field's value. +func (s *SummarizedCounter) SetN(v int64) *SummarizedCounter { + s.N = &v + return s +} + +// SetName sets the Name field's value. +func (s *SummarizedCounter) SetName(v string) *SummarizedCounter { + s.Name = &v + return s +} + +// SetSum sets the Sum field's value. +func (s *SummarizedCounter) SetSum(v float64) *SummarizedCounter { + s.Sum = &v + return s +} + +// SetUnit sets the Unit field's value. +func (s *SummarizedCounter) SetUnit(v string) *SummarizedCounter { + s.Unit = &v + return s +} + +// The time range. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/TimeRange +type TimeRange struct { + _ struct{} `type:"structure"` + + // The start time, in the format 2016-12-16T13:50Z. + FromInclusive *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The end time, in the format 2016-12-16T15:50Z. + ToExclusive *time.Time `type:"timestamp" timestampFormat:"unix"` +} + +// String returns the string representation +func (s TimeRange) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TimeRange) GoString() string { + return s.String() +} + +// SetFromInclusive sets the FromInclusive field's value. +func (s *TimeRange) SetFromInclusive(v time.Time) *TimeRange { + s.FromInclusive = &v + return s +} + +// SetToExclusive sets the ToExclusive field's value. +func (s *TimeRange) SetToExclusive(v time.Time) *TimeRange { + s.ToExclusive = &v + return s +} + +const ( + // SubResourceTypeIp is a SubResourceType enum value + SubResourceTypeIp = "IP" + + // SubResourceTypeUrl is a SubResourceType enum value + SubResourceTypeUrl = "URL" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/shield/errors.go b/vendor/github.com/aws/aws-sdk-go/service/shield/errors.go new file mode 100644 index 000000000..329200b2c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/shield/errors.go @@ -0,0 +1,65 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package shield + +const ( + + // ErrCodeInternalErrorException for service response error code + // "InternalErrorException". + // + // Exception that indicates that a problem occurred with the service infrastructure. + // You can retry the request. + ErrCodeInternalErrorException = "InternalErrorException" + + // ErrCodeInvalidOperationException for service response error code + // "InvalidOperationException". + // + // Exception that indicates that the operation would not cause any change to + // occur. + ErrCodeInvalidOperationException = "InvalidOperationException" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameterException". + // + // Exception that indicates that the parameters passed to the API are invalid. + ErrCodeInvalidParameterException = "InvalidParameterException" + + // ErrCodeInvalidResourceException for service response error code + // "InvalidResourceException". + // + // Exception that indicates that the resource is invalid. You might not have + // access to the resource, or the resource might not exist. + ErrCodeInvalidResourceException = "InvalidResourceException" + + // ErrCodeLimitsExceededException for service response error code + // "LimitsExceededException". + // + // Exception that indicates that the operation would exceed a limit. + ErrCodeLimitsExceededException = "LimitsExceededException" + + // ErrCodeLockedSubscriptionException for service response error code + // "LockedSubscriptionException". + // + // Exception that indicates that the subscription has been modified by another + // client. You can retry the request. + ErrCodeLockedSubscriptionException = "LockedSubscriptionException" + + // ErrCodeOptimisticLockException for service response error code + // "OptimisticLockException". + // + // Exception that indicates that the protection state has been modified by another + // client. You can retry the request. + ErrCodeOptimisticLockException = "OptimisticLockException" + + // ErrCodeResourceAlreadyExistsException for service response error code + // "ResourceAlreadyExistsException". + // + // Exception indicating the specified resource already exists. + ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // Exception indicating the specified resource does not exist. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/shield/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/shield/examples_test.go new file mode 100644 index 000000000..a95aba766 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/shield/examples_test.go @@ -0,0 +1,214 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package shield_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/shield" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExampleShield_CreateProtection() { + sess := session.Must(session.NewSession()) + + svc := shield.New(sess) + + params := &shield.CreateProtectionInput{ + Name: aws.String("ProtectionName"), // Required + ResourceArn: aws.String("ResourceArn"), // Required + } + resp, err := svc.CreateProtection(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleShield_CreateSubscription() { + sess := session.Must(session.NewSession()) + + svc := shield.New(sess) + + var params *shield.CreateSubscriptionInput + resp, err := svc.CreateSubscription(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleShield_DeleteProtection() { + sess := session.Must(session.NewSession()) + + svc := shield.New(sess) + + params := &shield.DeleteProtectionInput{ + ProtectionId: aws.String("ProtectionId"), // Required + } + resp, err := svc.DeleteProtection(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleShield_DeleteSubscription() { + sess := session.Must(session.NewSession()) + + svc := shield.New(sess) + + var params *shield.DeleteSubscriptionInput + resp, err := svc.DeleteSubscription(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleShield_DescribeAttack() { + sess := session.Must(session.NewSession()) + + svc := shield.New(sess) + + params := &shield.DescribeAttackInput{ + AttackId: aws.String("AttackId"), // Required + } + resp, err := svc.DescribeAttack(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleShield_DescribeProtection() { + sess := session.Must(session.NewSession()) + + svc := shield.New(sess) + + params := &shield.DescribeProtectionInput{ + ProtectionId: aws.String("ProtectionId"), // Required + } + resp, err := svc.DescribeProtection(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleShield_DescribeSubscription() { + sess := session.Must(session.NewSession()) + + svc := shield.New(sess) + + var params *shield.DescribeSubscriptionInput + resp, err := svc.DescribeSubscription(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleShield_ListAttacks() { + sess := session.Must(session.NewSession()) + + svc := shield.New(sess) + + params := &shield.ListAttacksInput{ + EndTime: &shield.TimeRange{ + FromInclusive: aws.Time(time.Now()), + ToExclusive: aws.Time(time.Now()), + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("Token"), + ResourceArns: []*string{ + aws.String("ResourceArn"), // Required + // More values... + }, + StartTime: &shield.TimeRange{ + FromInclusive: aws.Time(time.Now()), + ToExclusive: aws.Time(time.Now()), + }, + } + resp, err := svc.ListAttacks(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleShield_ListProtections() { + sess := session.Must(session.NewSession()) + + svc := shield.New(sess) + + params := &shield.ListProtectionsInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("Token"), + } + resp, err := svc.ListProtections(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/shield/service.go b/vendor/github.com/aws/aws-sdk-go/service/shield/service.go new file mode 100644 index 000000000..4cbe023e2 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/shield/service.go @@ -0,0 +1,97 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package shield + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" +) + +// This is the AWS Shield Advanced API Reference. This guide is for developers +// who need detailed information about the AWS Shield Advanced API actions, +// data types, and errors. For detailed information about AWS WAF and AWS Shield +// Advanced features and an overview of how to use the AWS WAF and AWS Shield +// Advanced APIs, see the AWS WAF and AWS Shield Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02 +type Shield struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "shield" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the Shield client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a Shield client from just a session. +// svc := shield.New(mySession) +// +// // Create a Shield client with additional configuration +// svc := shield.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *Shield { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Shield { + svc := &Shield{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2016-06-02", + JSONVersion: "1.1", + TargetPrefix: "AWSShield_20160616", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a Shield operation and runs any +// custom request initialization. +func (c *Shield) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/shield/shieldiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/shield/shieldiface/interface.go new file mode 100644 index 000000000..53a6c4740 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/shield/shieldiface/interface.go @@ -0,0 +1,99 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package shieldiface provides an interface to enable mocking the AWS Shield service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package shieldiface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/shield" +) + +// ShieldAPI provides an interface to enable mocking the +// shield.Shield service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS Shield. +// func myFunc(svc shieldiface.ShieldAPI) bool { +// // Make svc.CreateProtection request +// } +// +// func main() { +// sess := session.New() +// svc := shield.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockShieldClient struct { +// shieldiface.ShieldAPI +// } +// func (m *mockShieldClient) CreateProtection(input *shield.CreateProtectionInput) (*shield.CreateProtectionOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockShieldClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type ShieldAPI interface { + CreateProtectionRequest(*shield.CreateProtectionInput) (*request.Request, *shield.CreateProtectionOutput) + + CreateProtection(*shield.CreateProtectionInput) (*shield.CreateProtectionOutput, error) + + CreateSubscriptionRequest(*shield.CreateSubscriptionInput) (*request.Request, *shield.CreateSubscriptionOutput) + + CreateSubscription(*shield.CreateSubscriptionInput) (*shield.CreateSubscriptionOutput, error) + + DeleteProtectionRequest(*shield.DeleteProtectionInput) (*request.Request, *shield.DeleteProtectionOutput) + + DeleteProtection(*shield.DeleteProtectionInput) (*shield.DeleteProtectionOutput, error) + + DeleteSubscriptionRequest(*shield.DeleteSubscriptionInput) (*request.Request, *shield.DeleteSubscriptionOutput) + + DeleteSubscription(*shield.DeleteSubscriptionInput) (*shield.DeleteSubscriptionOutput, error) + + DescribeAttackRequest(*shield.DescribeAttackInput) (*request.Request, *shield.DescribeAttackOutput) + + DescribeAttack(*shield.DescribeAttackInput) (*shield.DescribeAttackOutput, error) + + DescribeProtectionRequest(*shield.DescribeProtectionInput) (*request.Request, *shield.DescribeProtectionOutput) + + DescribeProtection(*shield.DescribeProtectionInput) (*shield.DescribeProtectionOutput, error) + + DescribeSubscriptionRequest(*shield.DescribeSubscriptionInput) (*request.Request, *shield.DescribeSubscriptionOutput) + + DescribeSubscription(*shield.DescribeSubscriptionInput) (*shield.DescribeSubscriptionOutput, error) + + ListAttacksRequest(*shield.ListAttacksInput) (*request.Request, *shield.ListAttacksOutput) + + ListAttacks(*shield.ListAttacksInput) (*shield.ListAttacksOutput, error) + + ListProtectionsRequest(*shield.ListProtectionsInput) (*request.Request, *shield.ListProtectionsOutput) + + ListProtections(*shield.ListProtectionsInput) (*shield.ListProtectionsOutput, error) +} + +var _ ShieldAPI = (*shield.Shield)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/simpledb/api.go b/vendor/github.com/aws/aws-sdk-go/service/simpledb/api.go index 59524fe6f..9308ec37c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/simpledb/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/simpledb/api.go @@ -38,6 +38,7 @@ const opBatchDeleteAttributes = "BatchDeleteAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//BatchDeleteAttributes func (c *SimpleDB) BatchDeleteAttributesRequest(input *BatchDeleteAttributesInput) (req *request.Request, output *BatchDeleteAttributesOutput) { op := &request.Operation{ Name: opBatchDeleteAttributes, @@ -49,11 +50,10 @@ func (c *SimpleDB) BatchDeleteAttributesRequest(input *BatchDeleteAttributesInpu input = &BatchDeleteAttributesInput{} } + output = &BatchDeleteAttributesOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &BatchDeleteAttributesOutput{} - req.Data = output return } @@ -63,16 +63,16 @@ func (c *SimpleDB) BatchDeleteAttributesRequest(input *BatchDeleteAttributesInpu // round trips and latencies. This enables Amazon SimpleDB to optimize requests, // which generally yields better throughput. // -// If you specify BatchDeleteAttributes without attributes or values, all -// the attributes for the item are deleted. +// If you specify BatchDeleteAttributes without attributes or values, all the +// attributes for the item are deleted. // // BatchDeleteAttributes is an idempotent operation; running it multiple times // on the same item or attribute doesn't result in an error. // -// The BatchDeleteAttributes operation succeeds or fails in its entirety. -// There are no partial deletes. You can execute multiple BatchDeleteAttributes -// operations and other operations in parallel. However, large numbers of concurrent -// BatchDeleteAttributes calls can result in Service Unavailable (503) responses. +// The BatchDeleteAttributes operation succeeds or fails in its entirety. There +// are no partial deletes. You can execute multiple BatchDeleteAttributes operations +// and other operations in parallel. However, large numbers of concurrent BatchDeleteAttributes +// calls can result in Service Unavailable (503) responses. // // This operation is vulnerable to exceeding the maximum URL size when making // a REST request using the HTTP GET method. @@ -80,8 +80,9 @@ func (c *SimpleDB) BatchDeleteAttributesRequest(input *BatchDeleteAttributesInpu // This operation does not support conditions using Expected.X.Name, Expected.X.Value, // or Expected.X.Exists. // -// The following limitations are enforced for this operation: 1 MB request -// size 25 item limit per BatchDeleteAttributes operation +// The following limitations are enforced for this operation: 1 MB request size +// +// 25 item limit per BatchDeleteAttributes operation // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -89,6 +90,7 @@ func (c *SimpleDB) BatchDeleteAttributesRequest(input *BatchDeleteAttributesInpu // // See the AWS API reference guide for Amazon SimpleDB's // API operation BatchDeleteAttributes for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI//BatchDeleteAttributes func (c *SimpleDB) BatchDeleteAttributes(input *BatchDeleteAttributesInput) (*BatchDeleteAttributesOutput, error) { req, out := c.BatchDeleteAttributesRequest(input) err := req.Send() @@ -121,6 +123,7 @@ const opBatchPutAttributes = "BatchPutAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//BatchPutAttributes func (c *SimpleDB) BatchPutAttributesRequest(input *BatchPutAttributesInput) (req *request.Request, output *BatchPutAttributesOutput) { op := &request.Operation{ Name: opBatchPutAttributes, @@ -132,11 +135,10 @@ func (c *SimpleDB) BatchPutAttributesRequest(input *BatchPutAttributesInput) (re input = &BatchPutAttributesInput{} } + output = &BatchPutAttributesOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &BatchPutAttributesOutput{} - req.Data = output return } @@ -148,7 +150,7 @@ func (c *SimpleDB) BatchPutAttributesRequest(input *BatchPutAttributesInput) (re // latencies, enabling Amazon SimpleDB to optimize requests and generally produce // better throughput. // -// The client may specify the item name with the Item.X.ItemName parameter. +// The client may specify the item name with the Item.X.ItemName parameter. // The client may specify new attributes using a combination of the Item.X.Attribute.Y.Name // and Item.X.Attribute.Y.Value parameters. The client may specify the first // attribute for the first item using the parameters Item.0.Attribute.0.Name @@ -156,13 +158,13 @@ func (c *SimpleDB) BatchPutAttributesRequest(input *BatchPutAttributesInput) (re // item by the parameters Item.0.Attribute.1.Name and Item.0.Attribute.1.Value, // and so on. // -// Attributes are uniquely identified within an item by their name/value combination. +// Attributes are uniquely identified within an item by their name/value combination. // For example, a single item can have the attributes { "first_name", "first_value" // } and { "first_name", "second_value" }. However, it cannot have two attribute // instances where both the Item.X.Attribute.Y.Name and Item.X.Attribute.Y.Value // are the same. // -// Optionally, the requester can supply the Replace parameter for each individual +// Optionally, the requester can supply the Replace parameter for each individual // value. Setting this value to true will cause the new attribute values to // replace the existing attribute values. For example, if an item I has the // attributes { 'a', '1' }, { 'b', '2'} and { 'b', '3' } and the requester does @@ -170,19 +172,21 @@ func (c *SimpleDB) BatchPutAttributesRequest(input *BatchPutAttributesInput) (re // true, the final attributes of the item will be { 'a', '1' } and { 'b', '4' // }, replacing the previous values of the 'b' attribute with the new value. // -// You cannot specify an empty string as an item or as an attribute name. -// The BatchPutAttributes operation succeeds or fails in its entirety. There -// are no partial puts. This operation is vulnerable to exceeding the maximum -// URL size when making a REST request using the HTTP GET method. This operation -// does not support conditions using Expected.X.Name, Expected.X.Value, or Expected.X.Exists. -// You can execute multiple BatchPutAttributes operations and other operations +// You cannot specify an empty string as an item or as an attribute name. The +// BatchPutAttributes operation succeeds or fails in its entirety. There are +// no partial puts. This operation is vulnerable to exceeding the maximum URL size when making +// a REST request using the HTTP GET method. This operation does not support +// conditions using Expected.X.Name, Expected.X.Value, or Expected.X.Exists. +// You can execute multiple BatchPutAttributes operations and other operations // in parallel. However, large numbers of concurrent BatchPutAttributes calls // can result in Service Unavailable (503) responses. // -// The following limitations are enforced for this operation: 256 attribute -// name-value pairs per item 1 MB request size 1 billion attributes per domain -// 10 GB of total user data storage per domain 25 item limit per BatchPutAttributes -// operation +// The following limitations are enforced for this operation: 256 attribute +// name-value pairs per item +// 1 MB request size +// 1 billion attributes per domain +// 10 GB of total user data storage per domain +// 25 item limit per BatchPutAttributes operation // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -192,33 +196,34 @@ func (c *SimpleDB) BatchPutAttributesRequest(input *BatchPutAttributesInput) (re // API operation BatchPutAttributes for usage and error information. // // Returned Error Codes: -// * DuplicateItemName +// * ErrCodeDuplicateItemName "DuplicateItemName" // The item name was specified more than once. // -// * InvalidParameterValue +// * ErrCodeInvalidParameterValue "InvalidParameterValue" // The value for a parameter is invalid. // -// * MissingParameter +// * ErrCodeMissingParameter "MissingParameter" // The request must contain the specified missing parameter. // -// * NoSuchDomain +// * ErrCodeNoSuchDomain "NoSuchDomain" // The specified domain does not exist. // -// * NumberItemAttributesExceeded +// * ErrCodeNumberItemAttributesExceeded "NumberItemAttributesExceeded" // Too many attributes in this item. // -// * NumberDomainAttributesExceeded +// * ErrCodeNumberDomainAttributesExceeded "NumberDomainAttributesExceeded" // Too many attributes in this domain. // -// * NumberDomainBytesExceeded +// * ErrCodeNumberDomainBytesExceeded "NumberDomainBytesExceeded" // Too many bytes in this domain. // -// * NumberSubmittedItemsExceeded +// * ErrCodeNumberSubmittedItemsExceeded "NumberSubmittedItemsExceeded" // Too many items exist in a single call. // -// * NumberSubmittedAttributesExceeded +// * ErrCodeNumberSubmittedAttributesExceeded "NumberSubmittedAttributesExceeded" // Too many attributes exist in a single call. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//BatchPutAttributes func (c *SimpleDB) BatchPutAttributes(input *BatchPutAttributesInput) (*BatchPutAttributesOutput, error) { req, out := c.BatchPutAttributesRequest(input) err := req.Send() @@ -251,6 +256,7 @@ const opCreateDomain = "CreateDomain" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//CreateDomain func (c *SimpleDB) CreateDomainRequest(input *CreateDomainInput) (req *request.Request, output *CreateDomainOutput) { op := &request.Operation{ Name: opCreateDomain, @@ -262,11 +268,10 @@ func (c *SimpleDB) CreateDomainRequest(input *CreateDomainInput) (req *request.R input = &CreateDomainInput{} } + output = &CreateDomainOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CreateDomainOutput{} - req.Data = output return } @@ -276,11 +281,10 @@ func (c *SimpleDB) CreateDomainRequest(input *CreateDomainInput) (req *request.R // unique among the domains associated with the Access Key ID provided in the // request. The CreateDomain operation may take 10 or more seconds to complete. // -// CreateDomain is an idempotent operation; running it multiple times using -// the same domain name will not result in an error response. The client can -// create up to 100 domains per account. +// CreateDomain is an idempotent operation; running it multiple times using +// the same domain name will not result in an error response. The client can create up to 100 domains per account. // -// If the client requires additional domains, go to http://aws.amazon.com/contact-us/simpledb-limit-request/ +// If the client requires additional domains, go to http://aws.amazon.com/contact-us/simpledb-limit-request/ // (http://aws.amazon.com/contact-us/simpledb-limit-request/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -291,15 +295,16 @@ func (c *SimpleDB) CreateDomainRequest(input *CreateDomainInput) (req *request.R // API operation CreateDomain for usage and error information. // // Returned Error Codes: -// * InvalidParameterValue +// * ErrCodeInvalidParameterValue "InvalidParameterValue" // The value for a parameter is invalid. // -// * MissingParameter +// * ErrCodeMissingParameter "MissingParameter" // The request must contain the specified missing parameter. // -// * NumberDomainsExceeded +// * ErrCodeNumberDomainsExceeded "NumberDomainsExceeded" // Too many domains exist per this account. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//CreateDomain func (c *SimpleDB) CreateDomain(input *CreateDomainInput) (*CreateDomainOutput, error) { req, out := c.CreateDomainRequest(input) err := req.Send() @@ -332,6 +337,7 @@ const opDeleteAttributes = "DeleteAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteAttributes func (c *SimpleDB) DeleteAttributesRequest(input *DeleteAttributesInput) (req *request.Request, output *DeleteAttributesOutput) { op := &request.Operation{ Name: opDeleteAttributes, @@ -343,11 +349,10 @@ func (c *SimpleDB) DeleteAttributesRequest(input *DeleteAttributesInput) (req *r input = &DeleteAttributesInput{} } + output = &DeleteAttributesOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAttributesOutput{} - req.Data = output return } @@ -356,13 +361,12 @@ func (c *SimpleDB) DeleteAttributesRequest(input *DeleteAttributesInput) (req *r // Deletes one or more attributes associated with an item. If all attributes // of the item are deleted, the item is deleted. // -// If DeleteAttributes is called without being passed any attributes or values -// specified, all the attributes for the item are deleted. DeleteAttributes -// is an idempotent operation; running it multiple times on the same item or -// attribute does not result in an error response. +// If DeleteAttributes is called without being passed any attributes or values +// specified, all the attributes for the item are deleted. DeleteAttributes is an idempotent operation; running it multiple times on +// the same item or attribute does not result in an error response. // -// Because Amazon SimpleDB makes multiple copies of item data and uses an -// eventual consistency update model, performing a GetAttributes or Select operation +// Because Amazon SimpleDB makes multiple copies of item data and uses an eventual +// consistency update model, performing a GetAttributes or Select operation // (read) immediately after a DeleteAttributes or PutAttributes operation (write) // might not return updated item data. // @@ -374,18 +378,19 @@ func (c *SimpleDB) DeleteAttributesRequest(input *DeleteAttributesInput) (req *r // API operation DeleteAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameterValue +// * ErrCodeInvalidParameterValue "InvalidParameterValue" // The value for a parameter is invalid. // -// * MissingParameter +// * ErrCodeMissingParameter "MissingParameter" // The request must contain the specified missing parameter. // -// * NoSuchDomain +// * ErrCodeNoSuchDomain "NoSuchDomain" // The specified domain does not exist. // -// * AttributeDoesNotExist +// * ErrCodeAttributeDoesNotExist "AttributeDoesNotExist" // The specified attribute does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteAttributes func (c *SimpleDB) DeleteAttributes(input *DeleteAttributesInput) (*DeleteAttributesOutput, error) { req, out := c.DeleteAttributesRequest(input) err := req.Send() @@ -418,6 +423,7 @@ const opDeleteDomain = "DeleteDomain" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteDomain func (c *SimpleDB) DeleteDomainRequest(input *DeleteDomainInput) (req *request.Request, output *DeleteDomainOutput) { op := &request.Operation{ Name: opDeleteDomain, @@ -429,11 +435,10 @@ func (c *SimpleDB) DeleteDomainRequest(input *DeleteDomainInput) (req *request.R input = &DeleteDomainInput{} } + output = &DeleteDomainOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteDomainOutput{} - req.Data = output return } @@ -443,7 +448,7 @@ func (c *SimpleDB) DeleteDomainRequest(input *DeleteDomainInput) (req *request.R // in the domain are deleted as well. The DeleteDomain operation might take // 10 or more seconds to complete. // -// Running DeleteDomain on a domain that does not exist or running the function +// Running DeleteDomain on a domain that does not exist or running the function // multiple times using the same domain name will not result in an error response. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -454,9 +459,10 @@ func (c *SimpleDB) DeleteDomainRequest(input *DeleteDomainInput) (req *request.R // API operation DeleteDomain for usage and error information. // // Returned Error Codes: -// * MissingParameter +// * ErrCodeMissingParameter "MissingParameter" // The request must contain the specified missing parameter. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteDomain func (c *SimpleDB) DeleteDomain(input *DeleteDomainInput) (*DeleteDomainOutput, error) { req, out := c.DeleteDomainRequest(input) err := req.Send() @@ -489,6 +495,7 @@ const opDomainMetadata = "DomainMetadata" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DomainMetadata func (c *SimpleDB) DomainMetadataRequest(input *DomainMetadataInput) (req *request.Request, output *DomainMetadataOutput) { op := &request.Operation{ Name: opDomainMetadata, @@ -500,9 +507,8 @@ func (c *SimpleDB) DomainMetadataRequest(input *DomainMetadataInput) (req *reque input = &DomainMetadataInput{} } - req = c.newRequest(op, input, output) output = &DomainMetadataOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -520,12 +526,13 @@ func (c *SimpleDB) DomainMetadataRequest(input *DomainMetadataInput) (req *reque // API operation DomainMetadata for usage and error information. // // Returned Error Codes: -// * MissingParameter +// * ErrCodeMissingParameter "MissingParameter" // The request must contain the specified missing parameter. // -// * NoSuchDomain +// * ErrCodeNoSuchDomain "NoSuchDomain" // The specified domain does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DomainMetadata func (c *SimpleDB) DomainMetadata(input *DomainMetadataInput) (*DomainMetadataOutput, error) { req, out := c.DomainMetadataRequest(input) err := req.Send() @@ -558,6 +565,7 @@ const opGetAttributes = "GetAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetAttributes func (c *SimpleDB) GetAttributesRequest(input *GetAttributesInput) (req *request.Request, output *GetAttributesOutput) { op := &request.Operation{ Name: opGetAttributes, @@ -569,9 +577,8 @@ func (c *SimpleDB) GetAttributesRequest(input *GetAttributesInput) (req *request input = &GetAttributesInput{} } - req = c.newRequest(op, input, output) output = &GetAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -581,11 +588,11 @@ func (c *SimpleDB) GetAttributesRequest(input *GetAttributesInput) (req *request // the attributes returned can be limited to one or more attributes by specifying // an attribute name parameter. // -// If the item does not exist on the replica that was accessed for this operation, +// If the item does not exist on the replica that was accessed for this operation, // an empty set is returned. The system does not return an error as it cannot // guarantee the item does not exist on other replicas. // -// If GetAttributes is called without being passed any attribute names, all +// If GetAttributes is called without being passed any attribute names, all // the attributes for the item are returned. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -596,15 +603,16 @@ func (c *SimpleDB) GetAttributesRequest(input *GetAttributesInput) (req *request // API operation GetAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameterValue +// * ErrCodeInvalidParameterValue "InvalidParameterValue" // The value for a parameter is invalid. // -// * MissingParameter +// * ErrCodeMissingParameter "MissingParameter" // The request must contain the specified missing parameter. // -// * NoSuchDomain +// * ErrCodeNoSuchDomain "NoSuchDomain" // The specified domain does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetAttributes func (c *SimpleDB) GetAttributes(input *GetAttributesInput) (*GetAttributesOutput, error) { req, out := c.GetAttributesRequest(input) err := req.Send() @@ -637,6 +645,7 @@ const opListDomains = "ListDomains" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//ListDomains func (c *SimpleDB) ListDomainsRequest(input *ListDomainsInput) (req *request.Request, output *ListDomainsOutput) { op := &request.Operation{ Name: opListDomains, @@ -654,9 +663,8 @@ func (c *SimpleDB) ListDomainsRequest(input *ListDomainsInput) (req *request.Req input = &ListDomainsInput{} } - req = c.newRequest(op, input, output) output = &ListDomainsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -677,12 +685,13 @@ func (c *SimpleDB) ListDomainsRequest(input *ListDomainsInput) (req *request.Req // API operation ListDomains for usage and error information. // // Returned Error Codes: -// * InvalidParameterValue +// * ErrCodeInvalidParameterValue "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The specified NextToken is not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//ListDomains func (c *SimpleDB) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error) { req, out := c.ListDomainsRequest(input) err := req.Send() @@ -740,6 +749,7 @@ const opPutAttributes = "PutAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//PutAttributes func (c *SimpleDB) PutAttributesRequest(input *PutAttributesInput) (req *request.Request, output *PutAttributesOutput) { op := &request.Operation{ Name: opPutAttributes, @@ -751,11 +761,10 @@ func (c *SimpleDB) PutAttributesRequest(input *PutAttributesInput) (req *request input = &PutAttributesInput{} } + output = &PutAttributesOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutAttributesOutput{} - req.Data = output return } @@ -767,12 +776,12 @@ func (c *SimpleDB) PutAttributesRequest(input *PutAttributesInput) (req *request // by the parameters Attribute.0.Name and Attribute.0.Value, the second attribute // by the parameters Attribute.1.Name and Attribute.1.Value, and so on. // -// Attributes are uniquely identified in an item by their name/value combination. +// Attributes are uniquely identified in an item by their name/value combination. // For example, a single item can have the attributes { "first_name", "first_value" // } and { "first_name", second_value" }. However, it cannot have two attribute // instances where both the Attribute.X.Name and Attribute.X.Value are the same. // -// Optionally, the requestor can supply the Replace parameter for each individual +// Optionally, the requestor can supply the Replace parameter for each individual // attribute. Setting this value to true causes the new attribute value to replace // the existing attribute value(s). For example, if an item has the attributes // { 'a', '1' }, { 'b', '2'} and { 'b', '3' } and the requestor calls PutAttributes @@ -780,18 +789,18 @@ func (c *SimpleDB) PutAttributesRequest(input *PutAttributesInput) (req *request // the final attributes of the item are changed to { 'a', '1' } and { 'b', '4' // }, which replaces the previous values of the 'b' attribute with the new value. // -// Using PutAttributes to replace attribute values that do not exist will -// not result in an error response. You cannot specify an empty string as -// an attribute name. +// Using PutAttributes to replace attribute values that do not exist will not +// result in an error response. You cannot specify an empty string as an attribute name. // -// Because Amazon SimpleDB makes multiple copies of client data and uses an +// Because Amazon SimpleDB makes multiple copies of client data and uses an // eventual consistency update model, an immediate GetAttributes or Select operation // (read) immediately after a PutAttributes or DeleteAttributes operation (write) // might not return the updated data. // -// The following limitations are enforced for this operation: 256 total attribute -// name-value pairs per item One billion attributes per domain 10 GB of total -// user data storage per domain +// The following limitations are enforced for this operation: 256 total attribute +// name-value pairs per item +// One billion attributes per domain +// 10 GB of total user data storage per domain // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -801,27 +810,28 @@ func (c *SimpleDB) PutAttributesRequest(input *PutAttributesInput) (req *request // API operation PutAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameterValue +// * ErrCodeInvalidParameterValue "InvalidParameterValue" // The value for a parameter is invalid. // -// * MissingParameter +// * ErrCodeMissingParameter "MissingParameter" // The request must contain the specified missing parameter. // -// * NoSuchDomain +// * ErrCodeNoSuchDomain "NoSuchDomain" // The specified domain does not exist. // -// * NumberDomainAttributesExceeded +// * ErrCodeNumberDomainAttributesExceeded "NumberDomainAttributesExceeded" // Too many attributes in this domain. // -// * NumberDomainBytesExceeded +// * ErrCodeNumberDomainBytesExceeded "NumberDomainBytesExceeded" // Too many bytes in this domain. // -// * NumberItemAttributesExceeded +// * ErrCodeNumberItemAttributesExceeded "NumberItemAttributesExceeded" // Too many attributes in this item. // -// * AttributeDoesNotExist +// * ErrCodeAttributeDoesNotExist "AttributeDoesNotExist" // The specified attribute does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//PutAttributes func (c *SimpleDB) PutAttributes(input *PutAttributesInput) (*PutAttributesOutput, error) { req, out := c.PutAttributesRequest(input) err := req.Send() @@ -854,6 +864,7 @@ const opSelect = "Select" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//Select func (c *SimpleDB) SelectRequest(input *SelectInput) (req *request.Request, output *SelectOutput) { op := &request.Operation{ Name: opSelect, @@ -871,9 +882,8 @@ func (c *SimpleDB) SelectRequest(input *SelectInput) (req *request.Request, outp input = &SelectInput{} } - req = c.newRequest(op, input, output) output = &SelectOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -882,13 +892,13 @@ func (c *SimpleDB) SelectRequest(input *SelectInput) (req *request.Request, outp // The Select operation returns a set of attributes for ItemNames that match // the select expression. Select is similar to the standard SQL SELECT statement. // -// The total size of the response cannot exceed 1 MB in total size. Amazon -// SimpleDB automatically adjusts the number of items returned per page to enforce -// this limit. For example, if the client asks to retrieve 2500 items, but each -// individual item is 10 kB in size, the system returns 100 items and an appropriate -// NextToken so the client can access the next page of results. +// The total size of the response cannot exceed 1 MB in total size. Amazon SimpleDB +// automatically adjusts the number of items returned per page to enforce this +// limit. For example, if the client asks to retrieve 2500 items, but each individual +// item is 10 kB in size, the system returns 100 items and an appropriate NextToken +// so the client can access the next page of results. // -// For information on how to construct select expressions, see Using Select +// For information on how to construct select expressions, see Using Select // to Create Amazon SimpleDB Queries in the Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -899,34 +909,35 @@ func (c *SimpleDB) SelectRequest(input *SelectInput) (req *request.Request, outp // API operation Select for usage and error information. // // Returned Error Codes: -// * InvalidParameterValue +// * ErrCodeInvalidParameterValue "InvalidParameterValue" // The value for a parameter is invalid. // -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The specified NextToken is not valid. // -// * InvalidNumberPredicates +// * ErrCodeInvalidNumberPredicates "InvalidNumberPredicates" // Too many predicates exist in the query expression. // -// * InvalidNumberValueTests +// * ErrCodeInvalidNumberValueTests "InvalidNumberValueTests" // Too many predicates exist in the query expression. // -// * InvalidQueryExpression +// * ErrCodeInvalidQueryExpression "InvalidQueryExpression" // The specified query expression syntax is not valid. // -// * MissingParameter +// * ErrCodeMissingParameter "MissingParameter" // The request must contain the specified missing parameter. // -// * NoSuchDomain +// * ErrCodeNoSuchDomain "NoSuchDomain" // The specified domain does not exist. // -// * RequestTimeout +// * ErrCodeRequestTimeout "RequestTimeout" // A timeout occurred when attempting to query the specified domain with specified // query expression. // -// * TooManyRequestedAttributes +// * ErrCodeTooManyRequestedAttributes "TooManyRequestedAttributes" // Too many attributes requested. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI//Select func (c *SimpleDB) Select(input *SelectInput) (*SelectOutput, error) { req, out := c.SelectRequest(input) err := req.Send() @@ -958,6 +969,7 @@ func (c *SimpleDB) SelectPages(input *SelectInput, fn func(p *SelectOutput, last }) } +// Please also see https://docs.aws.amazon.com/goto/WebAPI//Attribute type Attribute struct { _ struct{} `type:"structure"` @@ -986,6 +998,31 @@ func (s Attribute) GoString() string { return s.String() } +// SetAlternateNameEncoding sets the AlternateNameEncoding field's value. +func (s *Attribute) SetAlternateNameEncoding(v string) *Attribute { + s.AlternateNameEncoding = &v + return s +} + +// SetAlternateValueEncoding sets the AlternateValueEncoding field's value. +func (s *Attribute) SetAlternateValueEncoding(v string) *Attribute { + s.AlternateValueEncoding = &v + return s +} + +// SetName sets the Name field's value. +func (s *Attribute) SetName(v string) *Attribute { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Attribute) SetValue(v string) *Attribute { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//BatchDeleteAttributesRequest type BatchDeleteAttributesInput struct { _ struct{} `type:"structure"` @@ -1036,6 +1073,19 @@ func (s *BatchDeleteAttributesInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *BatchDeleteAttributesInput) SetDomainName(v string) *BatchDeleteAttributesInput { + s.DomainName = &v + return s +} + +// SetItems sets the Items field's value. +func (s *BatchDeleteAttributesInput) SetItems(v []*DeletableItem) *BatchDeleteAttributesInput { + s.Items = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//BatchDeleteAttributesOutput type BatchDeleteAttributesOutput struct { _ struct{} `type:"structure"` } @@ -1050,6 +1100,7 @@ func (s BatchDeleteAttributesOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI//BatchPutAttributesRequest type BatchPutAttributesInput struct { _ struct{} `type:"structure"` @@ -1100,6 +1151,19 @@ func (s *BatchPutAttributesInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *BatchPutAttributesInput) SetDomainName(v string) *BatchPutAttributesInput { + s.DomainName = &v + return s +} + +// SetItems sets the Items field's value. +func (s *BatchPutAttributesInput) SetItems(v []*ReplaceableItem) *BatchPutAttributesInput { + s.Items = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//BatchPutAttributesOutput type BatchPutAttributesOutput struct { _ struct{} `type:"structure"` } @@ -1114,6 +1178,7 @@ func (s BatchPutAttributesOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI//CreateDomainRequest type CreateDomainInput struct { _ struct{} `type:"structure"` @@ -1147,6 +1212,13 @@ func (s *CreateDomainInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *CreateDomainInput) SetDomainName(v string) *CreateDomainInput { + s.DomainName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//CreateDomainOutput type CreateDomainOutput struct { _ struct{} `type:"structure"` } @@ -1161,6 +1233,7 @@ func (s CreateDomainOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeletableAttribute type DeletableAttribute struct { _ struct{} `type:"structure"` @@ -1196,6 +1269,19 @@ func (s *DeletableAttribute) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *DeletableAttribute) SetName(v string) *DeletableAttribute { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *DeletableAttribute) SetValue(v string) *DeletableAttribute { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeletableItem type DeletableItem struct { _ struct{} `type:"structure"` @@ -1238,6 +1324,19 @@ func (s *DeletableItem) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *DeletableItem) SetAttributes(v []*DeletableAttribute) *DeletableItem { + s.Attributes = v + return s +} + +// SetName sets the Name field's value. +func (s *DeletableItem) SetName(v string) *DeletableItem { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteAttributesRequest type DeleteAttributesInput struct { _ struct{} `type:"structure"` @@ -1298,6 +1397,31 @@ func (s *DeleteAttributesInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *DeleteAttributesInput) SetAttributes(v []*DeletableAttribute) *DeleteAttributesInput { + s.Attributes = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DeleteAttributesInput) SetDomainName(v string) *DeleteAttributesInput { + s.DomainName = &v + return s +} + +// SetExpected sets the Expected field's value. +func (s *DeleteAttributesInput) SetExpected(v *UpdateCondition) *DeleteAttributesInput { + s.Expected = v + return s +} + +// SetItemName sets the ItemName field's value. +func (s *DeleteAttributesInput) SetItemName(v string) *DeleteAttributesInput { + s.ItemName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteAttributesOutput type DeleteAttributesOutput struct { _ struct{} `type:"structure"` } @@ -1312,6 +1436,7 @@ func (s DeleteAttributesOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteDomainRequest type DeleteDomainInput struct { _ struct{} `type:"structure"` @@ -1344,6 +1469,13 @@ func (s *DeleteDomainInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DeleteDomainInput) SetDomainName(v string) *DeleteDomainInput { + s.DomainName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DeleteDomainOutput type DeleteDomainOutput struct { _ struct{} `type:"structure"` } @@ -1358,6 +1490,7 @@ func (s DeleteDomainOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DomainMetadataRequest type DomainMetadataInput struct { _ struct{} `type:"structure"` @@ -1390,6 +1523,13 @@ func (s *DomainMetadataInput) Validate() error { return nil } +// SetDomainName sets the DomainName field's value. +func (s *DomainMetadataInput) SetDomainName(v string) *DomainMetadataInput { + s.DomainName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//DomainMetadataResult type DomainMetadataOutput struct { _ struct{} `type:"structure"` @@ -1425,6 +1565,49 @@ func (s DomainMetadataOutput) GoString() string { return s.String() } +// SetAttributeNameCount sets the AttributeNameCount field's value. +func (s *DomainMetadataOutput) SetAttributeNameCount(v int64) *DomainMetadataOutput { + s.AttributeNameCount = &v + return s +} + +// SetAttributeNamesSizeBytes sets the AttributeNamesSizeBytes field's value. +func (s *DomainMetadataOutput) SetAttributeNamesSizeBytes(v int64) *DomainMetadataOutput { + s.AttributeNamesSizeBytes = &v + return s +} + +// SetAttributeValueCount sets the AttributeValueCount field's value. +func (s *DomainMetadataOutput) SetAttributeValueCount(v int64) *DomainMetadataOutput { + s.AttributeValueCount = &v + return s +} + +// SetAttributeValuesSizeBytes sets the AttributeValuesSizeBytes field's value. +func (s *DomainMetadataOutput) SetAttributeValuesSizeBytes(v int64) *DomainMetadataOutput { + s.AttributeValuesSizeBytes = &v + return s +} + +// SetItemCount sets the ItemCount field's value. +func (s *DomainMetadataOutput) SetItemCount(v int64) *DomainMetadataOutput { + s.ItemCount = &v + return s +} + +// SetItemNamesSizeBytes sets the ItemNamesSizeBytes field's value. +func (s *DomainMetadataOutput) SetItemNamesSizeBytes(v int64) *DomainMetadataOutput { + s.ItemNamesSizeBytes = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *DomainMetadataOutput) SetTimestamp(v int64) *DomainMetadataOutput { + s.Timestamp = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetAttributesRequest type GetAttributesInput struct { _ struct{} `type:"structure"` @@ -1432,9 +1615,7 @@ type GetAttributesInput struct { AttributeNames []*string `locationNameList:"AttributeName" type:"list" flattened:"true"` // Determines whether or not strong consistency should be enforced when data - // is read from SimpleDB. If true, any data previously written to SimpleDB will - // be returned. Otherwise, results will be consistent eventually, and the client - // may not see data that was written immediately before your read. + // is read from SimpleDB. If true ConsistentRead *bool `type:"boolean"` // The name of the domain in which to perform the operation. @@ -1474,6 +1655,31 @@ func (s *GetAttributesInput) Validate() error { return nil } +// SetAttributeNames sets the AttributeNames field's value. +func (s *GetAttributesInput) SetAttributeNames(v []*string) *GetAttributesInput { + s.AttributeNames = v + return s +} + +// SetConsistentRead sets the ConsistentRead field's value. +func (s *GetAttributesInput) SetConsistentRead(v bool) *GetAttributesInput { + s.ConsistentRead = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *GetAttributesInput) SetDomainName(v string) *GetAttributesInput { + s.DomainName = &v + return s +} + +// SetItemName sets the ItemName field's value. +func (s *GetAttributesInput) SetItemName(v string) *GetAttributesInput { + s.ItemName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//GetAttributesResult type GetAttributesOutput struct { _ struct{} `type:"structure"` @@ -1491,6 +1697,13 @@ func (s GetAttributesOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *GetAttributesOutput) SetAttributes(v []*Attribute) *GetAttributesOutput { + s.Attributes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//Item type Item struct { _ struct{} `type:"structure"` @@ -1517,6 +1730,25 @@ func (s Item) GoString() string { return s.String() } +// SetAlternateNameEncoding sets the AlternateNameEncoding field's value. +func (s *Item) SetAlternateNameEncoding(v string) *Item { + s.AlternateNameEncoding = &v + return s +} + +// SetAttributes sets the Attributes field's value. +func (s *Item) SetAttributes(v []*Attribute) *Item { + s.Attributes = v + return s +} + +// SetName sets the Name field's value. +func (s *Item) SetName(v string) *Item { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//ListDomainsRequest type ListDomainsInput struct { _ struct{} `type:"structure"` @@ -1539,6 +1771,19 @@ func (s ListDomainsInput) GoString() string { return s.String() } +// SetMaxNumberOfDomains sets the MaxNumberOfDomains field's value. +func (s *ListDomainsInput) SetMaxNumberOfDomains(v int64) *ListDomainsInput { + s.MaxNumberOfDomains = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDomainsInput) SetNextToken(v string) *ListDomainsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//ListDomainsResult type ListDomainsOutput struct { _ struct{} `type:"structure"` @@ -1546,7 +1791,7 @@ type ListDomainsOutput struct { DomainNames []*string `locationNameList:"DomainName" type:"list" flattened:"true"` // An opaque token indicating that there are more domains than the specified - // MaxNumberOfDomains still available. + // MaxNumberOfDomains NextToken *string `type:"string"` } @@ -1560,6 +1805,19 @@ func (s ListDomainsOutput) GoString() string { return s.String() } +// SetDomainNames sets the DomainNames field's value. +func (s *ListDomainsOutput) SetDomainNames(v []*string) *ListDomainsOutput { + s.DomainNames = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDomainsOutput) SetNextToken(v string) *ListDomainsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//PutAttributesRequest type PutAttributesInput struct { _ struct{} `type:"structure"` @@ -1623,6 +1881,31 @@ func (s *PutAttributesInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *PutAttributesInput) SetAttributes(v []*ReplaceableAttribute) *PutAttributesInput { + s.Attributes = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *PutAttributesInput) SetDomainName(v string) *PutAttributesInput { + s.DomainName = &v + return s +} + +// SetExpected sets the Expected field's value. +func (s *PutAttributesInput) SetExpected(v *UpdateCondition) *PutAttributesInput { + s.Expected = v + return s +} + +// SetItemName sets the ItemName field's value. +func (s *PutAttributesInput) SetItemName(v string) *PutAttributesInput { + s.ItemName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//PutAttributesOutput type PutAttributesOutput struct { _ struct{} `type:"structure"` } @@ -1637,6 +1920,7 @@ func (s PutAttributesOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI//ReplaceableAttribute type ReplaceableAttribute struct { _ struct{} `type:"structure"` @@ -1646,7 +1930,7 @@ type ReplaceableAttribute struct { Name *string `type:"string" required:"true"` // A flag specifying whether or not to replace the attribute/value pair or to - // add a new attribute/value pair. The default setting is false. + // add a new attribute/value pair. The default setting is false Replace *bool `type:"boolean"` // The value of the replaceable attribute. @@ -1681,6 +1965,25 @@ func (s *ReplaceableAttribute) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *ReplaceableAttribute) SetName(v string) *ReplaceableAttribute { + s.Name = &v + return s +} + +// SetReplace sets the Replace field's value. +func (s *ReplaceableAttribute) SetReplace(v bool) *ReplaceableAttribute { + s.Replace = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ReplaceableAttribute) SetValue(v string) *ReplaceableAttribute { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//ReplaceableItem type ReplaceableItem struct { _ struct{} `type:"structure"` @@ -1731,16 +2034,27 @@ func (s *ReplaceableItem) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *ReplaceableItem) SetAttributes(v []*ReplaceableAttribute) *ReplaceableItem { + s.Attributes = v + return s +} + +// SetName sets the Name field's value. +func (s *ReplaceableItem) SetName(v string) *ReplaceableItem { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//SelectRequest type SelectInput struct { _ struct{} `type:"structure"` // Determines whether or not strong consistency should be enforced when data - // is read from SimpleDB. If true, any data previously written to SimpleDB will - // be returned. Otherwise, results will be consistent eventually, and the client - // may not see data that was written immediately before your read. + // is read from SimpleDB. If true ConsistentRead *bool `type:"boolean"` - // A string informing Amazon SimpleDB where to start the next list of ItemNames. + // A string informing Amazon SimpleDB where to start the next list of ItemNames NextToken *string `type:"string"` // The expression used to query the domain. @@ -1772,14 +2086,32 @@ func (s *SelectInput) Validate() error { return nil } +// SetConsistentRead sets the ConsistentRead field's value. +func (s *SelectInput) SetConsistentRead(v bool) *SelectInput { + s.ConsistentRead = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *SelectInput) SetNextToken(v string) *SelectInput { + s.NextToken = &v + return s +} + +// SetSelectExpression sets the SelectExpression field's value. +func (s *SelectInput) SetSelectExpression(v string) *SelectInput { + s.SelectExpression = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI//SelectResult type SelectOutput struct { _ struct{} `type:"structure"` // A list of items that match the select expression. Items []*Item `locationNameList:"Item" type:"list" flattened:"true"` - // An opaque token indicating that more items than MaxNumberOfItems were matched, - // the response size exceeded 1 megabyte, or the execution time exceeded 5 seconds. + // An opaque token indicating that more items than MaxNumberOfItems NextToken *string `type:"string"` } @@ -1793,10 +2125,23 @@ func (s SelectOutput) GoString() string { return s.String() } +// SetItems sets the Items field's value. +func (s *SelectOutput) SetItems(v []*Item) *SelectOutput { + s.Items = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *SelectOutput) SetNextToken(v string) *SelectOutput { + s.NextToken = &v + return s +} + // Specifies the conditions under which data should be updated. If an update // condition is specified for a request, the data will only be updated if the // condition is satisfied. For example, if an attribute with a specific name // and value exists, or if a specific attribute doesn't exist. +// Please also see https://docs.aws.amazon.com/goto/WebAPI//UpdateCondition type UpdateCondition struct { _ struct{} `type:"structure"` @@ -1824,3 +2169,21 @@ func (s UpdateCondition) String() string { func (s UpdateCondition) GoString() string { return s.String() } + +// SetExists sets the Exists field's value. +func (s *UpdateCondition) SetExists(v bool) *UpdateCondition { + s.Exists = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateCondition) SetName(v string) *UpdateCondition { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *UpdateCondition) SetValue(v string) *UpdateCondition { + s.Value = &v + return s +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/simpledb/errors.go b/vendor/github.com/aws/aws-sdk-go/service/simpledb/errors.go new file mode 100644 index 000000000..f12143a0d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/simpledb/errors.go @@ -0,0 +1,109 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package simpledb + +const ( + + // ErrCodeAttributeDoesNotExist for service response error code + // "AttributeDoesNotExist". + // + // The specified attribute does not exist. + ErrCodeAttributeDoesNotExist = "AttributeDoesNotExist" + + // ErrCodeDuplicateItemName for service response error code + // "DuplicateItemName". + // + // The item name was specified more than once. + ErrCodeDuplicateItemName = "DuplicateItemName" + + // ErrCodeInvalidNextToken for service response error code + // "InvalidNextToken". + // + // The specified NextToken is not valid. + ErrCodeInvalidNextToken = "InvalidNextToken" + + // ErrCodeInvalidNumberPredicates for service response error code + // "InvalidNumberPredicates". + // + // Too many predicates exist in the query expression. + ErrCodeInvalidNumberPredicates = "InvalidNumberPredicates" + + // ErrCodeInvalidNumberValueTests for service response error code + // "InvalidNumberValueTests". + // + // Too many predicates exist in the query expression. + ErrCodeInvalidNumberValueTests = "InvalidNumberValueTests" + + // ErrCodeInvalidParameterValue for service response error code + // "InvalidParameterValue". + // + // The value for a parameter is invalid. + ErrCodeInvalidParameterValue = "InvalidParameterValue" + + // ErrCodeInvalidQueryExpression for service response error code + // "InvalidQueryExpression". + // + // The specified query expression syntax is not valid. + ErrCodeInvalidQueryExpression = "InvalidQueryExpression" + + // ErrCodeMissingParameter for service response error code + // "MissingParameter". + // + // The request must contain the specified missing parameter. + ErrCodeMissingParameter = "MissingParameter" + + // ErrCodeNoSuchDomain for service response error code + // "NoSuchDomain". + // + // The specified domain does not exist. + ErrCodeNoSuchDomain = "NoSuchDomain" + + // ErrCodeNumberDomainAttributesExceeded for service response error code + // "NumberDomainAttributesExceeded". + // + // Too many attributes in this domain. + ErrCodeNumberDomainAttributesExceeded = "NumberDomainAttributesExceeded" + + // ErrCodeNumberDomainBytesExceeded for service response error code + // "NumberDomainBytesExceeded". + // + // Too many bytes in this domain. + ErrCodeNumberDomainBytesExceeded = "NumberDomainBytesExceeded" + + // ErrCodeNumberDomainsExceeded for service response error code + // "NumberDomainsExceeded". + // + // Too many domains exist per this account. + ErrCodeNumberDomainsExceeded = "NumberDomainsExceeded" + + // ErrCodeNumberItemAttributesExceeded for service response error code + // "NumberItemAttributesExceeded". + // + // Too many attributes in this item. + ErrCodeNumberItemAttributesExceeded = "NumberItemAttributesExceeded" + + // ErrCodeNumberSubmittedAttributesExceeded for service response error code + // "NumberSubmittedAttributesExceeded". + // + // Too many attributes exist in a single call. + ErrCodeNumberSubmittedAttributesExceeded = "NumberSubmittedAttributesExceeded" + + // ErrCodeNumberSubmittedItemsExceeded for service response error code + // "NumberSubmittedItemsExceeded". + // + // Too many items exist in a single call. + ErrCodeNumberSubmittedItemsExceeded = "NumberSubmittedItemsExceeded" + + // ErrCodeRequestTimeout for service response error code + // "RequestTimeout". + // + // A timeout occurred when attempting to query the specified domain with specified + // query expression. + ErrCodeRequestTimeout = "RequestTimeout" + + // ErrCodeTooManyRequestedAttributes for service response error code + // "TooManyRequestedAttributes". + // + // Too many attributes requested. + ErrCodeTooManyRequestedAttributes = "TooManyRequestedAttributes" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/simpledb/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/simpledb/examples_test.go index 567026d6d..c707cd781 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/simpledb/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/simpledb/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSimpleDB_BatchDeleteAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := simpledb.New(sess) @@ -54,11 +50,7 @@ func ExampleSimpleDB_BatchDeleteAttributes() { } func ExampleSimpleDB_BatchPutAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := simpledb.New(sess) @@ -93,11 +85,7 @@ func ExampleSimpleDB_BatchPutAttributes() { } func ExampleSimpleDB_CreateDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := simpledb.New(sess) @@ -118,11 +106,7 @@ func ExampleSimpleDB_CreateDomain() { } func ExampleSimpleDB_DeleteAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := simpledb.New(sess) @@ -156,11 +140,7 @@ func ExampleSimpleDB_DeleteAttributes() { } func ExampleSimpleDB_DeleteDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := simpledb.New(sess) @@ -181,11 +161,7 @@ func ExampleSimpleDB_DeleteDomain() { } func ExampleSimpleDB_DomainMetadata() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := simpledb.New(sess) @@ -206,11 +182,7 @@ func ExampleSimpleDB_DomainMetadata() { } func ExampleSimpleDB_GetAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := simpledb.New(sess) @@ -237,11 +209,7 @@ func ExampleSimpleDB_GetAttributes() { } func ExampleSimpleDB_ListDomains() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := simpledb.New(sess) @@ -263,11 +231,7 @@ func ExampleSimpleDB_ListDomains() { } func ExampleSimpleDB_PutAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := simpledb.New(sess) @@ -302,11 +266,7 @@ func ExampleSimpleDB_PutAttributes() { } func ExampleSimpleDB_Select() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := simpledb.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/simpledb/service.go b/vendor/github.com/aws/aws-sdk-go/service/simpledb/service.go index 196047620..dd5bf1da3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/simpledb/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/simpledb/service.go @@ -25,10 +25,11 @@ import ( // functionality within Amazon's proven computing environment, are able to scale // instantly, and pay only for what they use. // -// Visit http://aws.amazon.com/simpledb/ (http://aws.amazon.com/simpledb/) -// for more information. -//The service client's operations are safe to be used concurrently. +// Visit http://aws.amazon.com/simpledb/ (http://aws.amazon.com/simpledb/) for +// more information. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ type SimpleDB struct { *client.Client } @@ -39,8 +40,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "sdb" +// Service information constants +const ( + ServiceName = "sdb" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the SimpleDB client with a session. // If additional configuration is needed for the client instance use the optional @@ -53,17 +57,18 @@ const ServiceName = "sdb" // // Create a SimpleDB client with additional configuration // svc := simpledb.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *SimpleDB { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *SimpleDB { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *SimpleDB { svc := &SimpleDB{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2009-04-15", diff --git a/vendor/github.com/aws/aws-sdk-go/service/simpledb/simpledbiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/simpledb/simpledbiface/interface.go index 0dd037e99..0dba36c7c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/simpledb/simpledbiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/simpledb/simpledbiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockSimpleDBClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/sms/api.go b/vendor/github.com/aws/aws-sdk-go/service/sms/api.go new file mode 100644 index 000000000..4cac115f3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sms/api.go @@ -0,0 +1,2402 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package sms provides a client for AWS Server Migration Service. +package sms + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opCreateReplicationJob = "CreateReplicationJob" + +// CreateReplicationJobRequest generates a "aws/request.Request" representing the +// client's request for the CreateReplicationJob operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateReplicationJob for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateReplicationJob method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateReplicationJobRequest method. +// req, resp := client.CreateReplicationJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateReplicationJob +func (c *SMS) CreateReplicationJobRequest(input *CreateReplicationJobInput) (req *request.Request, output *CreateReplicationJobOutput) { + op := &request.Operation{ + Name: opCreateReplicationJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateReplicationJobInput{} + } + + output = &CreateReplicationJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateReplicationJob API operation for AWS Server Migration Service. +// +// The CreateReplicationJob API is used to create a ReplicationJob to replicate +// a server on AWS. Call this API to first create a ReplicationJob, which will +// then schedule periodic ReplicationRuns to replicate your server to AWS. Each +// ReplicationRun will result in the creation of an AWS AMI. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Server Migration Service's +// API operation CreateReplicationJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in the request is not valid, is unsupported, or cannot +// be used. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// The request is missing a required parameter. Ensure that you have supplied +// all the required parameters for the request. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// This user does not have permissions to perform this operation. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// The specified operation is not allowed. This error can occur for a number +// of reasons; for example, you might be trying to start a Replication Run before +// seed Replication Run. +// +// * ErrCodeServerCannotBeReplicatedException "ServerCannotBeReplicatedException" +// The provided server cannot be replicated. +// +// * ErrCodeReplicationJobAlreadyExistsException "ReplicationJobAlreadyExistsException" +// An active Replication Job already exists for the specified server. +// +// * ErrCodeNoConnectorsAvailableException "NoConnectorsAvailableException" +// No connectors are available to handle this request. Please associate connector(s) +// and verify any existing connectors are healthy and can respond to requests. +// +// * ErrCodeInternalError "InternalError" +// An internal error has occured. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateReplicationJob +func (c *SMS) CreateReplicationJob(input *CreateReplicationJobInput) (*CreateReplicationJobOutput, error) { + req, out := c.CreateReplicationJobRequest(input) + err := req.Send() + return out, err +} + +const opDeleteReplicationJob = "DeleteReplicationJob" + +// DeleteReplicationJobRequest generates a "aws/request.Request" representing the +// client's request for the DeleteReplicationJob operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteReplicationJob for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteReplicationJob method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteReplicationJobRequest method. +// req, resp := client.DeleteReplicationJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteReplicationJob +func (c *SMS) DeleteReplicationJobRequest(input *DeleteReplicationJobInput) (req *request.Request, output *DeleteReplicationJobOutput) { + op := &request.Operation{ + Name: opDeleteReplicationJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteReplicationJobInput{} + } + + output = &DeleteReplicationJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteReplicationJob API operation for AWS Server Migration Service. +// +// The DeleteReplicationJob API is used to delete a ReplicationJob, resulting +// in no further ReplicationRuns. This will delete the contents of the S3 bucket +// used to store SMS artifacts, but will not delete any AMIs created by the +// SMS service. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Server Migration Service's +// API operation DeleteReplicationJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in the request is not valid, is unsupported, or cannot +// be used. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// The request is missing a required parameter. Ensure that you have supplied +// all the required parameters for the request. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// This user does not have permissions to perform this operation. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// The specified operation is not allowed. This error can occur for a number +// of reasons; for example, you might be trying to start a Replication Run before +// seed Replication Run. +// +// * ErrCodeReplicationJobNotFoundException "ReplicationJobNotFoundException" +// The specified Replication Job cannot be found. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteReplicationJob +func (c *SMS) DeleteReplicationJob(input *DeleteReplicationJobInput) (*DeleteReplicationJobOutput, error) { + req, out := c.DeleteReplicationJobRequest(input) + err := req.Send() + return out, err +} + +const opDeleteServerCatalog = "DeleteServerCatalog" + +// DeleteServerCatalogRequest generates a "aws/request.Request" representing the +// client's request for the DeleteServerCatalog operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteServerCatalog for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteServerCatalog method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteServerCatalogRequest method. +// req, resp := client.DeleteServerCatalogRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteServerCatalog +func (c *SMS) DeleteServerCatalogRequest(input *DeleteServerCatalogInput) (req *request.Request, output *DeleteServerCatalogOutput) { + op := &request.Operation{ + Name: opDeleteServerCatalog, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteServerCatalogInput{} + } + + output = &DeleteServerCatalogOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteServerCatalog API operation for AWS Server Migration Service. +// +// The DeleteServerCatalog API clears all servers from your server catalog. +// This means that these servers will no longer be accessible to the Server +// Migration Service. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Server Migration Service's +// API operation DeleteServerCatalog for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// This user does not have permissions to perform this operation. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// The specified operation is not allowed. This error can occur for a number +// of reasons; for example, you might be trying to start a Replication Run before +// seed Replication Run. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in the request is not valid, is unsupported, or cannot +// be used. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// The request is missing a required parameter. Ensure that you have supplied +// all the required parameters for the request. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteServerCatalog +func (c *SMS) DeleteServerCatalog(input *DeleteServerCatalogInput) (*DeleteServerCatalogOutput, error) { + req, out := c.DeleteServerCatalogRequest(input) + err := req.Send() + return out, err +} + +const opDisassociateConnector = "DisassociateConnector" + +// DisassociateConnectorRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateConnector operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DisassociateConnector for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DisassociateConnector method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DisassociateConnectorRequest method. +// req, resp := client.DisassociateConnectorRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DisassociateConnector +func (c *SMS) DisassociateConnectorRequest(input *DisassociateConnectorInput) (req *request.Request, output *DisassociateConnectorOutput) { + op := &request.Operation{ + Name: opDisassociateConnector, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisassociateConnectorInput{} + } + + output = &DisassociateConnectorOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateConnector API operation for AWS Server Migration Service. +// +// The DisassociateConnector API will disassociate a connector from the Server +// Migration Service, rendering it unavailable to support replication jobs. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Server Migration Service's +// API operation DisassociateConnector for usage and error information. +// +// Returned Error Codes: +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// The request is missing a required parameter. Ensure that you have supplied +// all the required parameters for the request. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// This user does not have permissions to perform this operation. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// The specified operation is not allowed. This error can occur for a number +// of reasons; for example, you might be trying to start a Replication Run before +// seed Replication Run. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in the request is not valid, is unsupported, or cannot +// be used. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DisassociateConnector +func (c *SMS) DisassociateConnector(input *DisassociateConnectorInput) (*DisassociateConnectorOutput, error) { + req, out := c.DisassociateConnectorRequest(input) + err := req.Send() + return out, err +} + +const opGetConnectors = "GetConnectors" + +// GetConnectorsRequest generates a "aws/request.Request" representing the +// client's request for the GetConnectors operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetConnectors for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetConnectors method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetConnectorsRequest method. +// req, resp := client.GetConnectorsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetConnectors +func (c *SMS) GetConnectorsRequest(input *GetConnectorsInput) (req *request.Request, output *GetConnectorsOutput) { + op := &request.Operation{ + Name: opGetConnectors, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &GetConnectorsInput{} + } + + output = &GetConnectorsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetConnectors API operation for AWS Server Migration Service. +// +// The GetConnectors API returns a list of connectors that are registered with +// the Server Migration Service. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Server Migration Service's +// API operation GetConnectors for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// This user does not have permissions to perform this operation. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetConnectors +func (c *SMS) GetConnectors(input *GetConnectorsInput) (*GetConnectorsOutput, error) { + req, out := c.GetConnectorsRequest(input) + err := req.Send() + return out, err +} + +// GetConnectorsPages iterates over the pages of a GetConnectors operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetConnectors method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a GetConnectors operation. +// pageNum := 0 +// err := client.GetConnectorsPages(params, +// func(page *GetConnectorsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SMS) GetConnectorsPages(input *GetConnectorsInput, fn func(p *GetConnectorsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.GetConnectorsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*GetConnectorsOutput), lastPage) + }) +} + +const opGetReplicationJobs = "GetReplicationJobs" + +// GetReplicationJobsRequest generates a "aws/request.Request" representing the +// client's request for the GetReplicationJobs operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetReplicationJobs for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetReplicationJobs method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetReplicationJobsRequest method. +// req, resp := client.GetReplicationJobsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationJobs +func (c *SMS) GetReplicationJobsRequest(input *GetReplicationJobsInput) (req *request.Request, output *GetReplicationJobsOutput) { + op := &request.Operation{ + Name: opGetReplicationJobs, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &GetReplicationJobsInput{} + } + + output = &GetReplicationJobsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetReplicationJobs API operation for AWS Server Migration Service. +// +// The GetReplicationJobs API will return all of your ReplicationJobs and their +// details. This API returns a paginated list, that may be consecutively called +// with nextToken to retrieve all ReplicationJobs. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Server Migration Service's +// API operation GetReplicationJobs for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in the request is not valid, is unsupported, or cannot +// be used. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// The request is missing a required parameter. Ensure that you have supplied +// all the required parameters for the request. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// This user does not have permissions to perform this operation. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationJobs +func (c *SMS) GetReplicationJobs(input *GetReplicationJobsInput) (*GetReplicationJobsOutput, error) { + req, out := c.GetReplicationJobsRequest(input) + err := req.Send() + return out, err +} + +// GetReplicationJobsPages iterates over the pages of a GetReplicationJobs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetReplicationJobs method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a GetReplicationJobs operation. +// pageNum := 0 +// err := client.GetReplicationJobsPages(params, +// func(page *GetReplicationJobsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SMS) GetReplicationJobsPages(input *GetReplicationJobsInput, fn func(p *GetReplicationJobsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.GetReplicationJobsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*GetReplicationJobsOutput), lastPage) + }) +} + +const opGetReplicationRuns = "GetReplicationRuns" + +// GetReplicationRunsRequest generates a "aws/request.Request" representing the +// client's request for the GetReplicationRuns operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetReplicationRuns for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetReplicationRuns method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetReplicationRunsRequest method. +// req, resp := client.GetReplicationRunsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationRuns +func (c *SMS) GetReplicationRunsRequest(input *GetReplicationRunsInput) (req *request.Request, output *GetReplicationRunsOutput) { + op := &request.Operation{ + Name: opGetReplicationRuns, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &GetReplicationRunsInput{} + } + + output = &GetReplicationRunsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetReplicationRuns API operation for AWS Server Migration Service. +// +// The GetReplicationRuns API will return all ReplicationRuns for a given ReplicationJob. +// This API returns a paginated list, that may be consecutively called with +// nextToken to retrieve all ReplicationRuns for a ReplicationJob. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Server Migration Service's +// API operation GetReplicationRuns for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in the request is not valid, is unsupported, or cannot +// be used. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// The request is missing a required parameter. Ensure that you have supplied +// all the required parameters for the request. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// This user does not have permissions to perform this operation. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationRuns +func (c *SMS) GetReplicationRuns(input *GetReplicationRunsInput) (*GetReplicationRunsOutput, error) { + req, out := c.GetReplicationRunsRequest(input) + err := req.Send() + return out, err +} + +// GetReplicationRunsPages iterates over the pages of a GetReplicationRuns operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetReplicationRuns method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a GetReplicationRuns operation. +// pageNum := 0 +// err := client.GetReplicationRunsPages(params, +// func(page *GetReplicationRunsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SMS) GetReplicationRunsPages(input *GetReplicationRunsInput, fn func(p *GetReplicationRunsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.GetReplicationRunsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*GetReplicationRunsOutput), lastPage) + }) +} + +const opGetServers = "GetServers" + +// GetServersRequest generates a "aws/request.Request" representing the +// client's request for the GetServers operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetServers for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetServers method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetServersRequest method. +// req, resp := client.GetServersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetServers +func (c *SMS) GetServersRequest(input *GetServersInput) (req *request.Request, output *GetServersOutput) { + op := &request.Operation{ + Name: opGetServers, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &GetServersInput{} + } + + output = &GetServersOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetServers API operation for AWS Server Migration Service. +// +// The GetServers API returns a list of all servers in your server catalog. +// For this call to succeed, you must previously have called ImportServerCatalog. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Server Migration Service's +// API operation GetServers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// This user does not have permissions to perform this operation. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetServers +func (c *SMS) GetServers(input *GetServersInput) (*GetServersOutput, error) { + req, out := c.GetServersRequest(input) + err := req.Send() + return out, err +} + +// GetServersPages iterates over the pages of a GetServers operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetServers method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a GetServers operation. +// pageNum := 0 +// err := client.GetServersPages(params, +// func(page *GetServersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SMS) GetServersPages(input *GetServersInput, fn func(p *GetServersOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.GetServersRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*GetServersOutput), lastPage) + }) +} + +const opImportServerCatalog = "ImportServerCatalog" + +// ImportServerCatalogRequest generates a "aws/request.Request" representing the +// client's request for the ImportServerCatalog operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ImportServerCatalog for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ImportServerCatalog method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ImportServerCatalogRequest method. +// req, resp := client.ImportServerCatalogRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ImportServerCatalog +func (c *SMS) ImportServerCatalogRequest(input *ImportServerCatalogInput) (req *request.Request, output *ImportServerCatalogOutput) { + op := &request.Operation{ + Name: opImportServerCatalog, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ImportServerCatalogInput{} + } + + output = &ImportServerCatalogOutput{} + req = c.newRequest(op, input, output) + return +} + +// ImportServerCatalog API operation for AWS Server Migration Service. +// +// The ImportServerCatalog API is used to gather the complete list of on-premises +// servers on your premises. This API call requires connectors to be installed +// and monitoring all servers you would like imported. This API call returns +// immediately, but may take some time to retrieve all of the servers. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Server Migration Service's +// API operation ImportServerCatalog for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// This user does not have permissions to perform this operation. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// The specified operation is not allowed. This error can occur for a number +// of reasons; for example, you might be trying to start a Replication Run before +// seed Replication Run. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in the request is not valid, is unsupported, or cannot +// be used. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// The request is missing a required parameter. Ensure that you have supplied +// all the required parameters for the request. +// +// * ErrCodeNoConnectorsAvailableException "NoConnectorsAvailableException" +// No connectors are available to handle this request. Please associate connector(s) +// and verify any existing connectors are healthy and can respond to requests. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ImportServerCatalog +func (c *SMS) ImportServerCatalog(input *ImportServerCatalogInput) (*ImportServerCatalogOutput, error) { + req, out := c.ImportServerCatalogRequest(input) + err := req.Send() + return out, err +} + +const opStartOnDemandReplicationRun = "StartOnDemandReplicationRun" + +// StartOnDemandReplicationRunRequest generates a "aws/request.Request" representing the +// client's request for the StartOnDemandReplicationRun operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See StartOnDemandReplicationRun for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the StartOnDemandReplicationRun method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the StartOnDemandReplicationRunRequest method. +// req, resp := client.StartOnDemandReplicationRunRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartOnDemandReplicationRun +func (c *SMS) StartOnDemandReplicationRunRequest(input *StartOnDemandReplicationRunInput) (req *request.Request, output *StartOnDemandReplicationRunOutput) { + op := &request.Operation{ + Name: opStartOnDemandReplicationRun, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartOnDemandReplicationRunInput{} + } + + output = &StartOnDemandReplicationRunOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartOnDemandReplicationRun API operation for AWS Server Migration Service. +// +// The StartOnDemandReplicationRun API is used to start a ReplicationRun on +// demand (in addition to those that are scheduled based on your frequency). +// This ReplicationRun will start immediately. StartOnDemandReplicationRun is +// subject to limits on how many on demand ReplicationRuns you may call per +// 24-hour period. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Server Migration Service's +// API operation StartOnDemandReplicationRun for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in the request is not valid, is unsupported, or cannot +// be used. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// The request is missing a required parameter. Ensure that you have supplied +// all the required parameters for the request. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// This user does not have permissions to perform this operation. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// The specified operation is not allowed. This error can occur for a number +// of reasons; for example, you might be trying to start a Replication Run before +// seed Replication Run. +// +// * ErrCodeReplicationRunLimitExceededException "ReplicationRunLimitExceededException" +// This user has exceeded the maximum allowed Replication Run limit. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartOnDemandReplicationRun +func (c *SMS) StartOnDemandReplicationRun(input *StartOnDemandReplicationRunInput) (*StartOnDemandReplicationRunOutput, error) { + req, out := c.StartOnDemandReplicationRunRequest(input) + err := req.Send() + return out, err +} + +const opUpdateReplicationJob = "UpdateReplicationJob" + +// UpdateReplicationJobRequest generates a "aws/request.Request" representing the +// client's request for the UpdateReplicationJob operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateReplicationJob for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateReplicationJob method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateReplicationJobRequest method. +// req, resp := client.UpdateReplicationJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateReplicationJob +func (c *SMS) UpdateReplicationJobRequest(input *UpdateReplicationJobInput) (req *request.Request, output *UpdateReplicationJobOutput) { + op := &request.Operation{ + Name: opUpdateReplicationJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateReplicationJobInput{} + } + + output = &UpdateReplicationJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateReplicationJob API operation for AWS Server Migration Service. +// +// The UpdateReplicationJob API is used to change the settings of your existing +// ReplicationJob created using CreateReplicationJob. Calling this API will +// affect the next scheduled ReplicationRun. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Server Migration Service's +// API operation UpdateReplicationJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in the request is not valid, is unsupported, or cannot +// be used. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// The request is missing a required parameter. Ensure that you have supplied +// all the required parameters for the request. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// The specified operation is not allowed. This error can occur for a number +// of reasons; for example, you might be trying to start a Replication Run before +// seed Replication Run. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// This user does not have permissions to perform this operation. +// +// * ErrCodeServerCannotBeReplicatedException "ServerCannotBeReplicatedException" +// The provided server cannot be replicated. +// +// * ErrCodeReplicationJobNotFoundException "ReplicationJobNotFoundException" +// The specified Replication Job cannot be found. +// +// * ErrCodeInternalError "InternalError" +// An internal error has occured. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateReplicationJob +func (c *SMS) UpdateReplicationJob(input *UpdateReplicationJobInput) (*UpdateReplicationJobOutput, error) { + req, out := c.UpdateReplicationJobRequest(input) + err := req.Send() + return out, err +} + +// Object representing a Connector +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/Connector +type Connector struct { + _ struct{} `type:"structure"` + + // Timestamp of an operation + AssociatedOn *time.Time `locationName:"associatedOn" type:"timestamp" timestampFormat:"unix"` + + // List of Connector Capabilities + CapabilityList []*string `locationName:"capabilityList" locationNameList:"item" type:"list"` + + // Unique Identifier for Connector + ConnectorId *string `locationName:"connectorId" type:"string"` + + // Internet Protocol (IP) Address + IpAddress *string `locationName:"ipAddress" type:"string"` + + // Hardware (MAC) address + MacAddress *string `locationName:"macAddress" type:"string"` + + // Status of on-premise Connector + Status *string `locationName:"status" type:"string" enum:"ConnectorStatus"` + + // Connector version string + Version *string `locationName:"version" type:"string"` + + // Unique Identifier for VM Manager + VmManagerId *string `locationName:"vmManagerId" type:"string"` + + // VM Manager Name + VmManagerName *string `locationName:"vmManagerName" type:"string"` + + // VM Management Product + VmManagerType *string `locationName:"vmManagerType" type:"string" enum:"VmManagerType"` +} + +// String returns the string representation +func (s Connector) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Connector) GoString() string { + return s.String() +} + +// SetAssociatedOn sets the AssociatedOn field's value. +func (s *Connector) SetAssociatedOn(v time.Time) *Connector { + s.AssociatedOn = &v + return s +} + +// SetCapabilityList sets the CapabilityList field's value. +func (s *Connector) SetCapabilityList(v []*string) *Connector { + s.CapabilityList = v + return s +} + +// SetConnectorId sets the ConnectorId field's value. +func (s *Connector) SetConnectorId(v string) *Connector { + s.ConnectorId = &v + return s +} + +// SetIpAddress sets the IpAddress field's value. +func (s *Connector) SetIpAddress(v string) *Connector { + s.IpAddress = &v + return s +} + +// SetMacAddress sets the MacAddress field's value. +func (s *Connector) SetMacAddress(v string) *Connector { + s.MacAddress = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Connector) SetStatus(v string) *Connector { + s.Status = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *Connector) SetVersion(v string) *Connector { + s.Version = &v + return s +} + +// SetVmManagerId sets the VmManagerId field's value. +func (s *Connector) SetVmManagerId(v string) *Connector { + s.VmManagerId = &v + return s +} + +// SetVmManagerName sets the VmManagerName field's value. +func (s *Connector) SetVmManagerName(v string) *Connector { + s.VmManagerName = &v + return s +} + +// SetVmManagerType sets the VmManagerType field's value. +func (s *Connector) SetVmManagerType(v string) *Connector { + s.VmManagerType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateReplicationJobRequest +type CreateReplicationJobInput struct { + _ struct{} `type:"structure"` + + // The description for a Replication Job/Run. + Description *string `locationName:"description" type:"string"` + + // Interval between Replication Runs. This value is specified in hours, and + // represents the time between consecutive Replication Runs. + // + // Frequency is a required field + Frequency *int64 `locationName:"frequency" type:"integer" required:"true"` + + // The license type to be used for the Amazon Machine Image (AMI) created after + // a successful ReplicationRun. + LicenseType *string `locationName:"licenseType" type:"string" enum:"LicenseType"` + + // Name of service role in customer's account to be used by SMS service. + RoleName *string `locationName:"roleName" type:"string"` + + // Timestamp of an operation + // + // SeedReplicationTime is a required field + SeedReplicationTime *time.Time `locationName:"seedReplicationTime" type:"timestamp" timestampFormat:"unix" required:"true"` + + // Unique Identifier for a server + // + // ServerId is a required field + ServerId *string `locationName:"serverId" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateReplicationJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateReplicationJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateReplicationJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateReplicationJobInput"} + if s.Frequency == nil { + invalidParams.Add(request.NewErrParamRequired("Frequency")) + } + if s.SeedReplicationTime == nil { + invalidParams.Add(request.NewErrParamRequired("SeedReplicationTime")) + } + if s.ServerId == nil { + invalidParams.Add(request.NewErrParamRequired("ServerId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *CreateReplicationJobInput) SetDescription(v string) *CreateReplicationJobInput { + s.Description = &v + return s +} + +// SetFrequency sets the Frequency field's value. +func (s *CreateReplicationJobInput) SetFrequency(v int64) *CreateReplicationJobInput { + s.Frequency = &v + return s +} + +// SetLicenseType sets the LicenseType field's value. +func (s *CreateReplicationJobInput) SetLicenseType(v string) *CreateReplicationJobInput { + s.LicenseType = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *CreateReplicationJobInput) SetRoleName(v string) *CreateReplicationJobInput { + s.RoleName = &v + return s +} + +// SetSeedReplicationTime sets the SeedReplicationTime field's value. +func (s *CreateReplicationJobInput) SetSeedReplicationTime(v time.Time) *CreateReplicationJobInput { + s.SeedReplicationTime = &v + return s +} + +// SetServerId sets the ServerId field's value. +func (s *CreateReplicationJobInput) SetServerId(v string) *CreateReplicationJobInput { + s.ServerId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateReplicationJobResponse +type CreateReplicationJobOutput struct { + _ struct{} `type:"structure"` + + // The unique identifier for a Replication Job. + ReplicationJobId *string `locationName:"replicationJobId" type:"string"` +} + +// String returns the string representation +func (s CreateReplicationJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateReplicationJobOutput) GoString() string { + return s.String() +} + +// SetReplicationJobId sets the ReplicationJobId field's value. +func (s *CreateReplicationJobOutput) SetReplicationJobId(v string) *CreateReplicationJobOutput { + s.ReplicationJobId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteReplicationJobRequest +type DeleteReplicationJobInput struct { + _ struct{} `type:"structure"` + + // The unique identifier for a Replication Job. + // + // ReplicationJobId is a required field + ReplicationJobId *string `locationName:"replicationJobId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteReplicationJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteReplicationJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteReplicationJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationJobInput"} + if s.ReplicationJobId == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationJobId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetReplicationJobId sets the ReplicationJobId field's value. +func (s *DeleteReplicationJobInput) SetReplicationJobId(v string) *DeleteReplicationJobInput { + s.ReplicationJobId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteReplicationJobResponse +type DeleteReplicationJobOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteReplicationJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteReplicationJobOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteServerCatalogRequest +type DeleteServerCatalogInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteServerCatalogInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteServerCatalogInput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteServerCatalogResponse +type DeleteServerCatalogOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteServerCatalogOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteServerCatalogOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DisassociateConnectorRequest +type DisassociateConnectorInput struct { + _ struct{} `type:"structure"` + + // Unique Identifier for Connector + // + // ConnectorId is a required field + ConnectorId *string `locationName:"connectorId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateConnectorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateConnectorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateConnectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateConnectorInput"} + if s.ConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectorId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConnectorId sets the ConnectorId field's value. +func (s *DisassociateConnectorInput) SetConnectorId(v string) *DisassociateConnectorInput { + s.ConnectorId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DisassociateConnectorResponse +type DisassociateConnectorOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisassociateConnectorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateConnectorOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetConnectorsRequest +type GetConnectorsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return in one API call. If left empty, this + // will default to 50. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // Pagination token to pass as input to API call + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s GetConnectorsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetConnectorsInput) GoString() string { + return s.String() +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetConnectorsInput) SetMaxResults(v int64) *GetConnectorsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetConnectorsInput) SetNextToken(v string) *GetConnectorsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetConnectorsResponse +type GetConnectorsOutput struct { + _ struct{} `type:"structure"` + + // List of connectors + ConnectorList []*Connector `locationName:"connectorList" locationNameList:"item" type:"list"` + + // Pagination token to pass as input to API call + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s GetConnectorsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetConnectorsOutput) GoString() string { + return s.String() +} + +// SetConnectorList sets the ConnectorList field's value. +func (s *GetConnectorsOutput) SetConnectorList(v []*Connector) *GetConnectorsOutput { + s.ConnectorList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetConnectorsOutput) SetNextToken(v string) *GetConnectorsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationJobsRequest +type GetReplicationJobsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return in one API call. If left empty, this + // will default to 50. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // Pagination token to pass as input to API call + NextToken *string `locationName:"nextToken" type:"string"` + + // The unique identifier for a Replication Job. + ReplicationJobId *string `locationName:"replicationJobId" type:"string"` +} + +// String returns the string representation +func (s GetReplicationJobsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetReplicationJobsInput) GoString() string { + return s.String() +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetReplicationJobsInput) SetMaxResults(v int64) *GetReplicationJobsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetReplicationJobsInput) SetNextToken(v string) *GetReplicationJobsInput { + s.NextToken = &v + return s +} + +// SetReplicationJobId sets the ReplicationJobId field's value. +func (s *GetReplicationJobsInput) SetReplicationJobId(v string) *GetReplicationJobsInput { + s.ReplicationJobId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationJobsResponse +type GetReplicationJobsOutput struct { + _ struct{} `type:"structure"` + + // Pagination token to pass as input to API call + NextToken *string `locationName:"nextToken" type:"string"` + + // List of Replication Jobs + ReplicationJobList []*ReplicationJob `locationName:"replicationJobList" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s GetReplicationJobsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetReplicationJobsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *GetReplicationJobsOutput) SetNextToken(v string) *GetReplicationJobsOutput { + s.NextToken = &v + return s +} + +// SetReplicationJobList sets the ReplicationJobList field's value. +func (s *GetReplicationJobsOutput) SetReplicationJobList(v []*ReplicationJob) *GetReplicationJobsOutput { + s.ReplicationJobList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationRunsRequest +type GetReplicationRunsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return in one API call. If left empty, this + // will default to 50. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // Pagination token to pass as input to API call + NextToken *string `locationName:"nextToken" type:"string"` + + // The unique identifier for a Replication Job. + // + // ReplicationJobId is a required field + ReplicationJobId *string `locationName:"replicationJobId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetReplicationRunsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetReplicationRunsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetReplicationRunsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetReplicationRunsInput"} + if s.ReplicationJobId == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationJobId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetReplicationRunsInput) SetMaxResults(v int64) *GetReplicationRunsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetReplicationRunsInput) SetNextToken(v string) *GetReplicationRunsInput { + s.NextToken = &v + return s +} + +// SetReplicationJobId sets the ReplicationJobId field's value. +func (s *GetReplicationRunsInput) SetReplicationJobId(v string) *GetReplicationRunsInput { + s.ReplicationJobId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationRunsResponse +type GetReplicationRunsOutput struct { + _ struct{} `type:"structure"` + + // Pagination token to pass as input to API call + NextToken *string `locationName:"nextToken" type:"string"` + + // Object representing a Replication Job + ReplicationJob *ReplicationJob `locationName:"replicationJob" type:"structure"` + + // List of Replication Runs + ReplicationRunList []*ReplicationRun `locationName:"replicationRunList" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s GetReplicationRunsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetReplicationRunsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *GetReplicationRunsOutput) SetNextToken(v string) *GetReplicationRunsOutput { + s.NextToken = &v + return s +} + +// SetReplicationJob sets the ReplicationJob field's value. +func (s *GetReplicationRunsOutput) SetReplicationJob(v *ReplicationJob) *GetReplicationRunsOutput { + s.ReplicationJob = v + return s +} + +// SetReplicationRunList sets the ReplicationRunList field's value. +func (s *GetReplicationRunsOutput) SetReplicationRunList(v []*ReplicationRun) *GetReplicationRunsOutput { + s.ReplicationRunList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetServersRequest +type GetServersInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return in one API call. If left empty, this + // will default to 50. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // Pagination token to pass as input to API call + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s GetServersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetServersInput) GoString() string { + return s.String() +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetServersInput) SetMaxResults(v int64) *GetServersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetServersInput) SetNextToken(v string) *GetServersInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetServersResponse +type GetServersOutput struct { + _ struct{} `type:"structure"` + + // Timestamp of an operation + LastModifiedOn *time.Time `locationName:"lastModifiedOn" type:"timestamp" timestampFormat:"unix"` + + // Pagination token to pass as input to API call + NextToken *string `locationName:"nextToken" type:"string"` + + // Status of Server catalog + ServerCatalogStatus *string `locationName:"serverCatalogStatus" type:"string" enum:"ServerCatalogStatus"` + + // List of servers from catalog + ServerList []*Server `locationName:"serverList" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s GetServersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetServersOutput) GoString() string { + return s.String() +} + +// SetLastModifiedOn sets the LastModifiedOn field's value. +func (s *GetServersOutput) SetLastModifiedOn(v time.Time) *GetServersOutput { + s.LastModifiedOn = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetServersOutput) SetNextToken(v string) *GetServersOutput { + s.NextToken = &v + return s +} + +// SetServerCatalogStatus sets the ServerCatalogStatus field's value. +func (s *GetServersOutput) SetServerCatalogStatus(v string) *GetServersOutput { + s.ServerCatalogStatus = &v + return s +} + +// SetServerList sets the ServerList field's value. +func (s *GetServersOutput) SetServerList(v []*Server) *GetServersOutput { + s.ServerList = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ImportServerCatalogRequest +type ImportServerCatalogInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s ImportServerCatalogInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportServerCatalogInput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ImportServerCatalogResponse +type ImportServerCatalogOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s ImportServerCatalogOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportServerCatalogOutput) GoString() string { + return s.String() +} + +// Object representing a Replication Job +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ReplicationJob +type ReplicationJob struct { + _ struct{} `type:"structure"` + + // The description for a Replication Job/Run. + Description *string `locationName:"description" type:"string"` + + // Interval between Replication Runs. This value is specified in hours, and + // represents the time between consecutive Replication Runs. + Frequency *int64 `locationName:"frequency" type:"integer"` + + // The AMI id for the image resulting from a Replication Run. + LatestAmiId *string `locationName:"latestAmiId" type:"string"` + + // The license type to be used for the Amazon Machine Image (AMI) created after + // a successful ReplicationRun. + LicenseType *string `locationName:"licenseType" type:"string" enum:"LicenseType"` + + // Timestamp of an operation + NextReplicationRunStartTime *time.Time `locationName:"nextReplicationRunStartTime" type:"timestamp" timestampFormat:"unix"` + + // The unique identifier for a Replication Job. + ReplicationJobId *string `locationName:"replicationJobId" type:"string"` + + // List of Replication Runs + ReplicationRunList []*ReplicationRun `locationName:"replicationRunList" locationNameList:"item" type:"list"` + + // Name of service role in customer's account to be used by SMS service. + RoleName *string `locationName:"roleName" type:"string"` + + // Timestamp of an operation + SeedReplicationTime *time.Time `locationName:"seedReplicationTime" type:"timestamp" timestampFormat:"unix"` + + // Unique Identifier for a server + ServerId *string `locationName:"serverId" type:"string"` + + // Type of server. + ServerType *string `locationName:"serverType" type:"string" enum:"ServerType"` + + // Current state of Replication Job + State *string `locationName:"state" type:"string" enum:"ReplicationJobState"` + + // String describing current status of Replication Job + StatusMessage *string `locationName:"statusMessage" type:"string"` + + // Object representing a VM server + VmServer *VmServer `locationName:"vmServer" type:"structure"` +} + +// String returns the string representation +func (s ReplicationJob) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplicationJob) GoString() string { + return s.String() +} + +// SetDescription sets the Description field's value. +func (s *ReplicationJob) SetDescription(v string) *ReplicationJob { + s.Description = &v + return s +} + +// SetFrequency sets the Frequency field's value. +func (s *ReplicationJob) SetFrequency(v int64) *ReplicationJob { + s.Frequency = &v + return s +} + +// SetLatestAmiId sets the LatestAmiId field's value. +func (s *ReplicationJob) SetLatestAmiId(v string) *ReplicationJob { + s.LatestAmiId = &v + return s +} + +// SetLicenseType sets the LicenseType field's value. +func (s *ReplicationJob) SetLicenseType(v string) *ReplicationJob { + s.LicenseType = &v + return s +} + +// SetNextReplicationRunStartTime sets the NextReplicationRunStartTime field's value. +func (s *ReplicationJob) SetNextReplicationRunStartTime(v time.Time) *ReplicationJob { + s.NextReplicationRunStartTime = &v + return s +} + +// SetReplicationJobId sets the ReplicationJobId field's value. +func (s *ReplicationJob) SetReplicationJobId(v string) *ReplicationJob { + s.ReplicationJobId = &v + return s +} + +// SetReplicationRunList sets the ReplicationRunList field's value. +func (s *ReplicationJob) SetReplicationRunList(v []*ReplicationRun) *ReplicationJob { + s.ReplicationRunList = v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *ReplicationJob) SetRoleName(v string) *ReplicationJob { + s.RoleName = &v + return s +} + +// SetSeedReplicationTime sets the SeedReplicationTime field's value. +func (s *ReplicationJob) SetSeedReplicationTime(v time.Time) *ReplicationJob { + s.SeedReplicationTime = &v + return s +} + +// SetServerId sets the ServerId field's value. +func (s *ReplicationJob) SetServerId(v string) *ReplicationJob { + s.ServerId = &v + return s +} + +// SetServerType sets the ServerType field's value. +func (s *ReplicationJob) SetServerType(v string) *ReplicationJob { + s.ServerType = &v + return s +} + +// SetState sets the State field's value. +func (s *ReplicationJob) SetState(v string) *ReplicationJob { + s.State = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ReplicationJob) SetStatusMessage(v string) *ReplicationJob { + s.StatusMessage = &v + return s +} + +// SetVmServer sets the VmServer field's value. +func (s *ReplicationJob) SetVmServer(v *VmServer) *ReplicationJob { + s.VmServer = v + return s +} + +// Object representing a Replication Run +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ReplicationRun +type ReplicationRun struct { + _ struct{} `type:"structure"` + + // The AMI id for the image resulting from a Replication Run. + AmiId *string `locationName:"amiId" type:"string"` + + // Timestamp of an operation + CompletedTime *time.Time `locationName:"completedTime" type:"timestamp" timestampFormat:"unix"` + + // The description for a Replication Job/Run. + Description *string `locationName:"description" type:"string"` + + // The unique identifier for a Replication Run. + ReplicationRunId *string `locationName:"replicationRunId" type:"string"` + + // Timestamp of an operation + ScheduledStartTime *time.Time `locationName:"scheduledStartTime" type:"timestamp" timestampFormat:"unix"` + + // Current state of Replication Run + State *string `locationName:"state" type:"string" enum:"ReplicationRunState"` + + // String describing current status of Replication Run + StatusMessage *string `locationName:"statusMessage" type:"string"` + + // Type of Replication Run + Type *string `locationName:"type" type:"string" enum:"ReplicationRunType"` +} + +// String returns the string representation +func (s ReplicationRun) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplicationRun) GoString() string { + return s.String() +} + +// SetAmiId sets the AmiId field's value. +func (s *ReplicationRun) SetAmiId(v string) *ReplicationRun { + s.AmiId = &v + return s +} + +// SetCompletedTime sets the CompletedTime field's value. +func (s *ReplicationRun) SetCompletedTime(v time.Time) *ReplicationRun { + s.CompletedTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ReplicationRun) SetDescription(v string) *ReplicationRun { + s.Description = &v + return s +} + +// SetReplicationRunId sets the ReplicationRunId field's value. +func (s *ReplicationRun) SetReplicationRunId(v string) *ReplicationRun { + s.ReplicationRunId = &v + return s +} + +// SetScheduledStartTime sets the ScheduledStartTime field's value. +func (s *ReplicationRun) SetScheduledStartTime(v time.Time) *ReplicationRun { + s.ScheduledStartTime = &v + return s +} + +// SetState sets the State field's value. +func (s *ReplicationRun) SetState(v string) *ReplicationRun { + s.State = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ReplicationRun) SetStatusMessage(v string) *ReplicationRun { + s.StatusMessage = &v + return s +} + +// SetType sets the Type field's value. +func (s *ReplicationRun) SetType(v string) *ReplicationRun { + s.Type = &v + return s +} + +// Object representing a server +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/Server +type Server struct { + _ struct{} `type:"structure"` + + // The unique identifier for a Replication Job. + ReplicationJobId *string `locationName:"replicationJobId" type:"string"` + + // An indicator of the Replication Job being deleted or failed. + ReplicationJobTerminated *bool `locationName:"replicationJobTerminated" type:"boolean"` + + // Unique Identifier for a server + ServerId *string `locationName:"serverId" type:"string"` + + // Type of server. + ServerType *string `locationName:"serverType" type:"string" enum:"ServerType"` + + // Object representing a VM server + VmServer *VmServer `locationName:"vmServer" type:"structure"` +} + +// String returns the string representation +func (s Server) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Server) GoString() string { + return s.String() +} + +// SetReplicationJobId sets the ReplicationJobId field's value. +func (s *Server) SetReplicationJobId(v string) *Server { + s.ReplicationJobId = &v + return s +} + +// SetReplicationJobTerminated sets the ReplicationJobTerminated field's value. +func (s *Server) SetReplicationJobTerminated(v bool) *Server { + s.ReplicationJobTerminated = &v + return s +} + +// SetServerId sets the ServerId field's value. +func (s *Server) SetServerId(v string) *Server { + s.ServerId = &v + return s +} + +// SetServerType sets the ServerType field's value. +func (s *Server) SetServerType(v string) *Server { + s.ServerType = &v + return s +} + +// SetVmServer sets the VmServer field's value. +func (s *Server) SetVmServer(v *VmServer) *Server { + s.VmServer = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartOnDemandReplicationRunRequest +type StartOnDemandReplicationRunInput struct { + _ struct{} `type:"structure"` + + // The description for a Replication Job/Run. + Description *string `locationName:"description" type:"string"` + + // The unique identifier for a Replication Job. + // + // ReplicationJobId is a required field + ReplicationJobId *string `locationName:"replicationJobId" type:"string" required:"true"` +} + +// String returns the string representation +func (s StartOnDemandReplicationRunInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartOnDemandReplicationRunInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartOnDemandReplicationRunInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartOnDemandReplicationRunInput"} + if s.ReplicationJobId == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationJobId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *StartOnDemandReplicationRunInput) SetDescription(v string) *StartOnDemandReplicationRunInput { + s.Description = &v + return s +} + +// SetReplicationJobId sets the ReplicationJobId field's value. +func (s *StartOnDemandReplicationRunInput) SetReplicationJobId(v string) *StartOnDemandReplicationRunInput { + s.ReplicationJobId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartOnDemandReplicationRunResponse +type StartOnDemandReplicationRunOutput struct { + _ struct{} `type:"structure"` + + // The unique identifier for a Replication Run. + ReplicationRunId *string `locationName:"replicationRunId" type:"string"` +} + +// String returns the string representation +func (s StartOnDemandReplicationRunOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartOnDemandReplicationRunOutput) GoString() string { + return s.String() +} + +// SetReplicationRunId sets the ReplicationRunId field's value. +func (s *StartOnDemandReplicationRunOutput) SetReplicationRunId(v string) *StartOnDemandReplicationRunOutput { + s.ReplicationRunId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateReplicationJobRequest +type UpdateReplicationJobInput struct { + _ struct{} `type:"structure"` + + // The description for a Replication Job/Run. + Description *string `locationName:"description" type:"string"` + + // Interval between Replication Runs. This value is specified in hours, and + // represents the time between consecutive Replication Runs. + Frequency *int64 `locationName:"frequency" type:"integer"` + + // The license type to be used for the Amazon Machine Image (AMI) created after + // a successful ReplicationRun. + LicenseType *string `locationName:"licenseType" type:"string" enum:"LicenseType"` + + // Timestamp of an operation + NextReplicationRunStartTime *time.Time `locationName:"nextReplicationRunStartTime" type:"timestamp" timestampFormat:"unix"` + + // The unique identifier for a Replication Job. + // + // ReplicationJobId is a required field + ReplicationJobId *string `locationName:"replicationJobId" type:"string" required:"true"` + + // Name of service role in customer's account to be used by SMS service. + RoleName *string `locationName:"roleName" type:"string"` +} + +// String returns the string representation +func (s UpdateReplicationJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateReplicationJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateReplicationJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateReplicationJobInput"} + if s.ReplicationJobId == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationJobId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *UpdateReplicationJobInput) SetDescription(v string) *UpdateReplicationJobInput { + s.Description = &v + return s +} + +// SetFrequency sets the Frequency field's value. +func (s *UpdateReplicationJobInput) SetFrequency(v int64) *UpdateReplicationJobInput { + s.Frequency = &v + return s +} + +// SetLicenseType sets the LicenseType field's value. +func (s *UpdateReplicationJobInput) SetLicenseType(v string) *UpdateReplicationJobInput { + s.LicenseType = &v + return s +} + +// SetNextReplicationRunStartTime sets the NextReplicationRunStartTime field's value. +func (s *UpdateReplicationJobInput) SetNextReplicationRunStartTime(v time.Time) *UpdateReplicationJobInput { + s.NextReplicationRunStartTime = &v + return s +} + +// SetReplicationJobId sets the ReplicationJobId field's value. +func (s *UpdateReplicationJobInput) SetReplicationJobId(v string) *UpdateReplicationJobInput { + s.ReplicationJobId = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *UpdateReplicationJobInput) SetRoleName(v string) *UpdateReplicationJobInput { + s.RoleName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateReplicationJobResponse +type UpdateReplicationJobOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateReplicationJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateReplicationJobOutput) GoString() string { + return s.String() +} + +// Object representing a VM server +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/VmServer +type VmServer struct { + _ struct{} `type:"structure"` + + // VM Manager Name + VmManagerName *string `locationName:"vmManagerName" type:"string"` + + // VM Management Product + VmManagerType *string `locationName:"vmManagerType" type:"string" enum:"VmManagerType"` + + // Name of Virtual Machine + VmName *string `locationName:"vmName" type:"string"` + + // Path to VM + VmPath *string `locationName:"vmPath" type:"string"` + + // Object representing a server's location + VmServerAddress *VmServerAddress `locationName:"vmServerAddress" type:"structure"` +} + +// String returns the string representation +func (s VmServer) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VmServer) GoString() string { + return s.String() +} + +// SetVmManagerName sets the VmManagerName field's value. +func (s *VmServer) SetVmManagerName(v string) *VmServer { + s.VmManagerName = &v + return s +} + +// SetVmManagerType sets the VmManagerType field's value. +func (s *VmServer) SetVmManagerType(v string) *VmServer { + s.VmManagerType = &v + return s +} + +// SetVmName sets the VmName field's value. +func (s *VmServer) SetVmName(v string) *VmServer { + s.VmName = &v + return s +} + +// SetVmPath sets the VmPath field's value. +func (s *VmServer) SetVmPath(v string) *VmServer { + s.VmPath = &v + return s +} + +// SetVmServerAddress sets the VmServerAddress field's value. +func (s *VmServer) SetVmServerAddress(v *VmServerAddress) *VmServer { + s.VmServerAddress = v + return s +} + +// Object representing a server's location +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/VmServerAddress +type VmServerAddress struct { + _ struct{} `type:"structure"` + + // Unique Identifier for a VM + VmId *string `locationName:"vmId" type:"string"` + + // Unique Identifier for VM Manager + VmManagerId *string `locationName:"vmManagerId" type:"string"` +} + +// String returns the string representation +func (s VmServerAddress) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VmServerAddress) GoString() string { + return s.String() +} + +// SetVmId sets the VmId field's value. +func (s *VmServerAddress) SetVmId(v string) *VmServerAddress { + s.VmId = &v + return s +} + +// SetVmManagerId sets the VmManagerId field's value. +func (s *VmServerAddress) SetVmManagerId(v string) *VmServerAddress { + s.VmManagerId = &v + return s +} + +// Capabilities for a Connector +const ( + // ConnectorCapabilityVsphere is a ConnectorCapability enum value + ConnectorCapabilityVsphere = "VSPHERE" +) + +// Status of on-premise Connector +const ( + // ConnectorStatusHealthy is a ConnectorStatus enum value + ConnectorStatusHealthy = "HEALTHY" + + // ConnectorStatusUnhealthy is a ConnectorStatus enum value + ConnectorStatusUnhealthy = "UNHEALTHY" +) + +// The license type to be used for the Amazon Machine Image (AMI) created after +// a successful ReplicationRun. +const ( + // LicenseTypeAws is a LicenseType enum value + LicenseTypeAws = "AWS" + + // LicenseTypeByol is a LicenseType enum value + LicenseTypeByol = "BYOL" +) + +// Current state of Replication Job +const ( + // ReplicationJobStatePending is a ReplicationJobState enum value + ReplicationJobStatePending = "PENDING" + + // ReplicationJobStateActive is a ReplicationJobState enum value + ReplicationJobStateActive = "ACTIVE" + + // ReplicationJobStateFailed is a ReplicationJobState enum value + ReplicationJobStateFailed = "FAILED" + + // ReplicationJobStateDeleting is a ReplicationJobState enum value + ReplicationJobStateDeleting = "DELETING" + + // ReplicationJobStateDeleted is a ReplicationJobState enum value + ReplicationJobStateDeleted = "DELETED" +) + +// Current state of Replication Run +const ( + // ReplicationRunStatePending is a ReplicationRunState enum value + ReplicationRunStatePending = "PENDING" + + // ReplicationRunStateMissed is a ReplicationRunState enum value + ReplicationRunStateMissed = "MISSED" + + // ReplicationRunStateActive is a ReplicationRunState enum value + ReplicationRunStateActive = "ACTIVE" + + // ReplicationRunStateFailed is a ReplicationRunState enum value + ReplicationRunStateFailed = "FAILED" + + // ReplicationRunStateCompleted is a ReplicationRunState enum value + ReplicationRunStateCompleted = "COMPLETED" + + // ReplicationRunStateDeleting is a ReplicationRunState enum value + ReplicationRunStateDeleting = "DELETING" + + // ReplicationRunStateDeleted is a ReplicationRunState enum value + ReplicationRunStateDeleted = "DELETED" +) + +// Type of Replication Run +const ( + // ReplicationRunTypeOnDemand is a ReplicationRunType enum value + ReplicationRunTypeOnDemand = "ON_DEMAND" + + // ReplicationRunTypeAutomatic is a ReplicationRunType enum value + ReplicationRunTypeAutomatic = "AUTOMATIC" +) + +// Status of Server catalog +const ( + // ServerCatalogStatusNotImported is a ServerCatalogStatus enum value + ServerCatalogStatusNotImported = "NOT_IMPORTED" + + // ServerCatalogStatusImporting is a ServerCatalogStatus enum value + ServerCatalogStatusImporting = "IMPORTING" + + // ServerCatalogStatusAvailable is a ServerCatalogStatus enum value + ServerCatalogStatusAvailable = "AVAILABLE" + + // ServerCatalogStatusDeleted is a ServerCatalogStatus enum value + ServerCatalogStatusDeleted = "DELETED" + + // ServerCatalogStatusExpired is a ServerCatalogStatus enum value + ServerCatalogStatusExpired = "EXPIRED" +) + +// Type of server. +const ( + // ServerTypeVirtualMachine is a ServerType enum value + ServerTypeVirtualMachine = "VIRTUAL_MACHINE" +) + +// VM Management Product +const ( + // VmManagerTypeVsphere is a VmManagerType enum value + VmManagerTypeVsphere = "VSPHERE" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sms/errors.go b/vendor/github.com/aws/aws-sdk-go/service/sms/errors.go new file mode 100644 index 000000000..bde5e51c9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sms/errors.go @@ -0,0 +1,71 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package sms + +const ( + + // ErrCodeInternalError for service response error code + // "InternalError". + // + // An internal error has occured. + ErrCodeInternalError = "InternalError" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameterException". + // + // A parameter specified in the request is not valid, is unsupported, or cannot + // be used. + ErrCodeInvalidParameterException = "InvalidParameterException" + + // ErrCodeMissingRequiredParameterException for service response error code + // "MissingRequiredParameterException". + // + // The request is missing a required parameter. Ensure that you have supplied + // all the required parameters for the request. + ErrCodeMissingRequiredParameterException = "MissingRequiredParameterException" + + // ErrCodeNoConnectorsAvailableException for service response error code + // "NoConnectorsAvailableException". + // + // No connectors are available to handle this request. Please associate connector(s) + // and verify any existing connectors are healthy and can respond to requests. + ErrCodeNoConnectorsAvailableException = "NoConnectorsAvailableException" + + // ErrCodeOperationNotPermittedException for service response error code + // "OperationNotPermittedException". + // + // The specified operation is not allowed. This error can occur for a number + // of reasons; for example, you might be trying to start a Replication Run before + // seed Replication Run. + ErrCodeOperationNotPermittedException = "OperationNotPermittedException" + + // ErrCodeReplicationJobAlreadyExistsException for service response error code + // "ReplicationJobAlreadyExistsException". + // + // An active Replication Job already exists for the specified server. + ErrCodeReplicationJobAlreadyExistsException = "ReplicationJobAlreadyExistsException" + + // ErrCodeReplicationJobNotFoundException for service response error code + // "ReplicationJobNotFoundException". + // + // The specified Replication Job cannot be found. + ErrCodeReplicationJobNotFoundException = "ReplicationJobNotFoundException" + + // ErrCodeReplicationRunLimitExceededException for service response error code + // "ReplicationRunLimitExceededException". + // + // This user has exceeded the maximum allowed Replication Run limit. + ErrCodeReplicationRunLimitExceededException = "ReplicationRunLimitExceededException" + + // ErrCodeServerCannotBeReplicatedException for service response error code + // "ServerCannotBeReplicatedException". + // + // The provided server cannot be replicated. + ErrCodeServerCannotBeReplicatedException = "ServerCannotBeReplicatedException" + + // ErrCodeUnauthorizedOperationException for service response error code + // "UnauthorizedOperationException". + // + // This user does not have permissions to perform this operation. + ErrCodeUnauthorizedOperationException = "UnauthorizedOperationException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sms/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/sms/examples_test.go new file mode 100644 index 000000000..d11ba52ef --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sms/examples_test.go @@ -0,0 +1,260 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package sms_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/sms" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExampleSMS_CreateReplicationJob() { + sess := session.Must(session.NewSession()) + + svc := sms.New(sess) + + params := &sms.CreateReplicationJobInput{ + Frequency: aws.Int64(1), // Required + SeedReplicationTime: aws.Time(time.Now()), // Required + ServerId: aws.String("ServerId"), // Required + Description: aws.String("Description"), + LicenseType: aws.String("LicenseType"), + RoleName: aws.String("RoleName"), + } + resp, err := svc.CreateReplicationJob(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSMS_DeleteReplicationJob() { + sess := session.Must(session.NewSession()) + + svc := sms.New(sess) + + params := &sms.DeleteReplicationJobInput{ + ReplicationJobId: aws.String("ReplicationJobId"), // Required + } + resp, err := svc.DeleteReplicationJob(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSMS_DeleteServerCatalog() { + sess := session.Must(session.NewSession()) + + svc := sms.New(sess) + + var params *sms.DeleteServerCatalogInput + resp, err := svc.DeleteServerCatalog(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSMS_DisassociateConnector() { + sess := session.Must(session.NewSession()) + + svc := sms.New(sess) + + params := &sms.DisassociateConnectorInput{ + ConnectorId: aws.String("ConnectorId"), // Required + } + resp, err := svc.DisassociateConnector(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSMS_GetConnectors() { + sess := session.Must(session.NewSession()) + + svc := sms.New(sess) + + params := &sms.GetConnectorsInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.GetConnectors(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSMS_GetReplicationJobs() { + sess := session.Must(session.NewSession()) + + svc := sms.New(sess) + + params := &sms.GetReplicationJobsInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + ReplicationJobId: aws.String("ReplicationJobId"), + } + resp, err := svc.GetReplicationJobs(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSMS_GetReplicationRuns() { + sess := session.Must(session.NewSession()) + + svc := sms.New(sess) + + params := &sms.GetReplicationRunsInput{ + ReplicationJobId: aws.String("ReplicationJobId"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.GetReplicationRuns(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSMS_GetServers() { + sess := session.Must(session.NewSession()) + + svc := sms.New(sess) + + params := &sms.GetServersInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.GetServers(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSMS_ImportServerCatalog() { + sess := session.Must(session.NewSession()) + + svc := sms.New(sess) + + var params *sms.ImportServerCatalogInput + resp, err := svc.ImportServerCatalog(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSMS_StartOnDemandReplicationRun() { + sess := session.Must(session.NewSession()) + + svc := sms.New(sess) + + params := &sms.StartOnDemandReplicationRunInput{ + ReplicationJobId: aws.String("ReplicationJobId"), // Required + Description: aws.String("Description"), + } + resp, err := svc.StartOnDemandReplicationRun(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSMS_UpdateReplicationJob() { + sess := session.Must(session.NewSession()) + + svc := sms.New(sess) + + params := &sms.UpdateReplicationJobInput{ + ReplicationJobId: aws.String("ReplicationJobId"), // Required + Description: aws.String("Description"), + Frequency: aws.Int64(1), + LicenseType: aws.String("LicenseType"), + NextReplicationRunStartTime: aws.Time(time.Now()), + RoleName: aws.String("RoleName"), + } + resp, err := svc.UpdateReplicationJob(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/sms/service.go b/vendor/github.com/aws/aws-sdk-go/service/sms/service.go new file mode 100644 index 000000000..c065af403 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sms/service.go @@ -0,0 +1,94 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package sms + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" +) + +// Amazon Server Migration Service automates the process of migrating servers +// to EC2. +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24 +type SMS struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "sms" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the SMS client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a SMS client from just a session. +// svc := sms.New(mySession) +// +// // Create a SMS client with additional configuration +// svc := sms.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *SMS { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *SMS { + svc := &SMS{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2016-10-24", + JSONVersion: "1.1", + TargetPrefix: "AWSServerMigrationService_V2016_10_24", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a SMS operation and runs any +// custom request initialization. +func (c *SMS) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/sms/smsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/sms/smsiface/interface.go new file mode 100644 index 000000000..355d8af15 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sms/smsiface/interface.go @@ -0,0 +1,115 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package smsiface provides an interface to enable mocking the AWS Server Migration Service service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package smsiface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/sms" +) + +// SMSAPI provides an interface to enable mocking the +// sms.SMS service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS Server Migration Service. +// func myFunc(svc smsiface.SMSAPI) bool { +// // Make svc.CreateReplicationJob request +// } +// +// func main() { +// sess := session.New() +// svc := sms.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockSMSClient struct { +// smsiface.SMSAPI +// } +// func (m *mockSMSClient) CreateReplicationJob(input *sms.CreateReplicationJobInput) (*sms.CreateReplicationJobOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockSMSClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type SMSAPI interface { + CreateReplicationJobRequest(*sms.CreateReplicationJobInput) (*request.Request, *sms.CreateReplicationJobOutput) + + CreateReplicationJob(*sms.CreateReplicationJobInput) (*sms.CreateReplicationJobOutput, error) + + DeleteReplicationJobRequest(*sms.DeleteReplicationJobInput) (*request.Request, *sms.DeleteReplicationJobOutput) + + DeleteReplicationJob(*sms.DeleteReplicationJobInput) (*sms.DeleteReplicationJobOutput, error) + + DeleteServerCatalogRequest(*sms.DeleteServerCatalogInput) (*request.Request, *sms.DeleteServerCatalogOutput) + + DeleteServerCatalog(*sms.DeleteServerCatalogInput) (*sms.DeleteServerCatalogOutput, error) + + DisassociateConnectorRequest(*sms.DisassociateConnectorInput) (*request.Request, *sms.DisassociateConnectorOutput) + + DisassociateConnector(*sms.DisassociateConnectorInput) (*sms.DisassociateConnectorOutput, error) + + GetConnectorsRequest(*sms.GetConnectorsInput) (*request.Request, *sms.GetConnectorsOutput) + + GetConnectors(*sms.GetConnectorsInput) (*sms.GetConnectorsOutput, error) + + GetConnectorsPages(*sms.GetConnectorsInput, func(*sms.GetConnectorsOutput, bool) bool) error + + GetReplicationJobsRequest(*sms.GetReplicationJobsInput) (*request.Request, *sms.GetReplicationJobsOutput) + + GetReplicationJobs(*sms.GetReplicationJobsInput) (*sms.GetReplicationJobsOutput, error) + + GetReplicationJobsPages(*sms.GetReplicationJobsInput, func(*sms.GetReplicationJobsOutput, bool) bool) error + + GetReplicationRunsRequest(*sms.GetReplicationRunsInput) (*request.Request, *sms.GetReplicationRunsOutput) + + GetReplicationRuns(*sms.GetReplicationRunsInput) (*sms.GetReplicationRunsOutput, error) + + GetReplicationRunsPages(*sms.GetReplicationRunsInput, func(*sms.GetReplicationRunsOutput, bool) bool) error + + GetServersRequest(*sms.GetServersInput) (*request.Request, *sms.GetServersOutput) + + GetServers(*sms.GetServersInput) (*sms.GetServersOutput, error) + + GetServersPages(*sms.GetServersInput, func(*sms.GetServersOutput, bool) bool) error + + ImportServerCatalogRequest(*sms.ImportServerCatalogInput) (*request.Request, *sms.ImportServerCatalogOutput) + + ImportServerCatalog(*sms.ImportServerCatalogInput) (*sms.ImportServerCatalogOutput, error) + + StartOnDemandReplicationRunRequest(*sms.StartOnDemandReplicationRunInput) (*request.Request, *sms.StartOnDemandReplicationRunOutput) + + StartOnDemandReplicationRun(*sms.StartOnDemandReplicationRunInput) (*sms.StartOnDemandReplicationRunOutput, error) + + UpdateReplicationJobRequest(*sms.UpdateReplicationJobInput) (*request.Request, *sms.UpdateReplicationJobOutput) + + UpdateReplicationJob(*sms.UpdateReplicationJobInput) (*sms.UpdateReplicationJobOutput, error) +} + +var _ SMSAPI = (*sms.SMS)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/snowball/api.go b/vendor/github.com/aws/aws-sdk-go/service/snowball/api.go index 06a1dd1d9..3e40b7446 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/snowball/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/snowball/api.go @@ -11,6 +11,82 @@ import ( "github.com/aws/aws-sdk-go/aws/request" ) +const opCancelCluster = "CancelCluster" + +// CancelClusterRequest generates a "aws/request.Request" representing the +// client's request for the CancelCluster operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CancelCluster for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CancelCluster method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CancelClusterRequest method. +// req, resp := client.CancelClusterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/CancelCluster +func (c *Snowball) CancelClusterRequest(input *CancelClusterInput) (req *request.Request, output *CancelClusterOutput) { + op := &request.Operation{ + Name: opCancelCluster, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CancelClusterInput{} + } + + output = &CancelClusterOutput{} + req = c.newRequest(op, input, output) + return +} + +// CancelCluster API operation for Amazon Import/Export Snowball. +// +// Cancels a cluster job. You can only cancel a cluster job while it's in the +// AwaitingQuorum status. You'll have at least an hour after creating a cluster +// job to cancel it. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation CancelCluster for usage and error information. +// +// Returned Error Codes: +// * ErrCodeKMSRequestFailedException "KMSRequestFailedException" +// The provided AWS Key Management Service key lacks the permissions to perform +// the specified CreateJob or UpdateJob action. +// +// * ErrCodeInvalidJobStateException "InvalidJobStateException" +// The action can't be performed because the job's current state doesn't allow +// that action to be performed. +// +// * ErrCodeInvalidResourceException "InvalidResourceException" +// The specified resource can't be found. Check the information you provided +// in your last request, and try again. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/CancelCluster +func (c *Snowball) CancelCluster(input *CancelClusterInput) (*CancelClusterOutput, error) { + req, out := c.CancelClusterRequest(input) + err := req.Send() + return out, err +} + const opCancelJob = "CancelJob" // CancelJobRequest generates a "aws/request.Request" representing the @@ -37,6 +113,7 @@ const opCancelJob = "CancelJob" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/CancelJob func (c *Snowball) CancelJobRequest(input *CancelJobInput) (req *request.Request, output *CancelJobOutput) { op := &request.Operation{ Name: opCancelJob, @@ -48,18 +125,17 @@ func (c *Snowball) CancelJobRequest(input *CancelJobInput) (req *request.Request input = &CancelJobInput{} } - req = c.newRequest(op, input, output) output = &CancelJobOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // CancelJob API operation for Amazon Import/Export Snowball. // -// Cancels the specified job. Note that you can only cancel a job before its -// JobState value changes to PreparingAppliance. Requesting the ListJobs or -// DescribeJob action will return a job's JobState as part of the response element -// data returned. +// Cancels the specified job. You can only cancel a job before its JobState +// value changes to PreparingAppliance. Requesting the ListJobs or DescribeJob +// action will return a job's JobState as part of the response element data +// returned. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -69,18 +145,19 @@ func (c *Snowball) CancelJobRequest(input *CancelJobInput) (req *request.Request // API operation CancelJob for usage and error information. // // Returned Error Codes: -// * InvalidResourceException +// * ErrCodeInvalidResourceException "InvalidResourceException" // The specified resource can't be found. Check the information you provided // in your last request, and try again. // -// * InvalidJobStateException +// * ErrCodeInvalidJobStateException "InvalidJobStateException" // The action can't be performed because the job's current state doesn't allow // that action to be performed. // -// * KMSRequestFailedException +// * ErrCodeKMSRequestFailedException "KMSRequestFailedException" // The provided AWS Key Management Service key lacks the permissions to perform // the specified CreateJob or UpdateJob action. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/CancelJob func (c *Snowball) CancelJob(input *CancelJobInput) (*CancelJobOutput, error) { req, out := c.CancelJobRequest(input) err := req.Send() @@ -113,6 +190,7 @@ const opCreateAddress = "CreateAddress" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/CreateAddress func (c *Snowball) CreateAddressRequest(input *CreateAddressInput) (req *request.Request, output *CreateAddressOutput) { op := &request.Operation{ Name: opCreateAddress, @@ -124,9 +202,8 @@ func (c *Snowball) CreateAddressRequest(input *CreateAddressInput) (req *request input = &CreateAddressInput{} } - req = c.newRequest(op, input, output) output = &CreateAddressOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -146,21 +223,99 @@ func (c *Snowball) CreateAddressRequest(input *CreateAddressInput) (req *request // API operation CreateAddress for usage and error information. // // Returned Error Codes: -// * InvalidAddressException +// * ErrCodeInvalidAddressException "InvalidAddressException" // The address provided was invalid. Check the address with your region's carrier, // and try again. // -// * UnsupportedAddressException +// * ErrCodeUnsupportedAddressException "UnsupportedAddressException" // The address is either outside the serviceable area for your region, or an // error occurred. Check the address with your region's carrier and try again. // If the issue persists, contact AWS Support. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/CreateAddress func (c *Snowball) CreateAddress(input *CreateAddressInput) (*CreateAddressOutput, error) { req, out := c.CreateAddressRequest(input) err := req.Send() return out, err } +const opCreateCluster = "CreateCluster" + +// CreateClusterRequest generates a "aws/request.Request" representing the +// client's request for the CreateCluster operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateCluster for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateCluster method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateClusterRequest method. +// req, resp := client.CreateClusterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/CreateCluster +func (c *Snowball) CreateClusterRequest(input *CreateClusterInput) (req *request.Request, output *CreateClusterOutput) { + op := &request.Operation{ + Name: opCreateCluster, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateClusterInput{} + } + + output = &CreateClusterOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateCluster API operation for Amazon Import/Export Snowball. +// +// Creates an empty cluster. Each cluster supports five nodes. You use the CreateJob +// action separately to create the jobs for each of these nodes. The cluster +// does not ship until these five node jobs have been created. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation CreateCluster for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidResourceException "InvalidResourceException" +// The specified resource can't be found. Check the information you provided +// in your last request, and try again. +// +// * ErrCodeKMSRequestFailedException "KMSRequestFailedException" +// The provided AWS Key Management Service key lacks the permissions to perform +// the specified CreateJob or UpdateJob action. +// +// * ErrCodeInvalidInputCombinationException "InvalidInputCombinationException" +// Job or cluster creation failed. One ore more inputs were invalid. Confirm +// that the CreateClusterRequest$SnowballType value supports your CreateJobRequest$JobType, +// and try again. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/CreateCluster +func (c *Snowball) CreateCluster(input *CreateClusterInput) (*CreateClusterOutput, error) { + req, out := c.CreateClusterRequest(input) + err := req.Send() + return out, err +} + const opCreateJob = "CreateJob" // CreateJobRequest generates a "aws/request.Request" representing the @@ -187,6 +342,7 @@ const opCreateJob = "CreateJob" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/CreateJob func (c *Snowball) CreateJobRequest(input *CreateJobInput) (req *request.Request, output *CreateJobOutput) { op := &request.Operation{ Name: opCreateJob, @@ -198,18 +354,18 @@ func (c *Snowball) CreateJobRequest(input *CreateJobInput) (req *request.Request input = &CreateJobInput{} } - req = c.newRequest(op, input, output) output = &CreateJobOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // CreateJob API operation for Amazon Import/Export Snowball. // // Creates a job to import or export data between Amazon S3 and your on-premises -// data center. Note that your AWS account must have the right trust policies -// and permissions in place to create a job for Snowball. For more information, -// see api-reference-policies. +// data center. Your AWS account must have the right trust policies and permissions +// in place to create a job for Snowball. If you're creating a job for a node +// in a cluster, you only need to provide the clusterId value; the other job +// attributes are inherited from the cluster. . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -219,14 +375,26 @@ func (c *Snowball) CreateJobRequest(input *CreateJobInput) (req *request.Request // API operation CreateJob for usage and error information. // // Returned Error Codes: -// * InvalidResourceException +// * ErrCodeInvalidResourceException "InvalidResourceException" // The specified resource can't be found. Check the information you provided // in your last request, and try again. // -// * KMSRequestFailedException +// * ErrCodeKMSRequestFailedException "KMSRequestFailedException" // The provided AWS Key Management Service key lacks the permissions to perform // the specified CreateJob or UpdateJob action. // +// * ErrCodeInvalidInputCombinationException "InvalidInputCombinationException" +// Job or cluster creation failed. One ore more inputs were invalid. Confirm +// that the CreateClusterRequest$SnowballType value supports your CreateJobRequest$JobType, +// and try again. +// +// * ErrCodeClusterLimitExceededException "ClusterLimitExceededException" +// Job creation failed. Currently, clusters support five nodes. If you have +// less than five nodes for your cluster and you have more nodes to create for +// this cluster, try again and create jobs until your cluster has exactly five +// notes. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/CreateJob func (c *Snowball) CreateJob(input *CreateJobInput) (*CreateJobOutput, error) { req, out := c.CreateJobRequest(input) err := req.Send() @@ -259,6 +427,7 @@ const opDescribeAddress = "DescribeAddress" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/DescribeAddress func (c *Snowball) DescribeAddressRequest(input *DescribeAddressInput) (req *request.Request, output *DescribeAddressOutput) { op := &request.Operation{ Name: opDescribeAddress, @@ -270,9 +439,8 @@ func (c *Snowball) DescribeAddressRequest(input *DescribeAddressInput) (req *req input = &DescribeAddressInput{} } - req = c.newRequest(op, input, output) output = &DescribeAddressOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -289,10 +457,11 @@ func (c *Snowball) DescribeAddressRequest(input *DescribeAddressInput) (req *req // API operation DescribeAddress for usage and error information. // // Returned Error Codes: -// * InvalidResourceException +// * ErrCodeInvalidResourceException "InvalidResourceException" // The specified resource can't be found. Check the information you provided // in your last request, and try again. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/DescribeAddress func (c *Snowball) DescribeAddress(input *DescribeAddressInput) (*DescribeAddressOutput, error) { req, out := c.DescribeAddressRequest(input) err := req.Send() @@ -325,6 +494,7 @@ const opDescribeAddresses = "DescribeAddresses" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/DescribeAddresses func (c *Snowball) DescribeAddressesRequest(input *DescribeAddressesInput) (req *request.Request, output *DescribeAddressesOutput) { op := &request.Operation{ Name: opDescribeAddresses, @@ -342,9 +512,8 @@ func (c *Snowball) DescribeAddressesRequest(input *DescribeAddressesInput) (req input = &DescribeAddressesInput{} } - req = c.newRequest(op, input, output) output = &DescribeAddressesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -362,10 +531,11 @@ func (c *Snowball) DescribeAddressesRequest(input *DescribeAddressesInput) (req // API operation DescribeAddresses for usage and error information. // // Returned Error Codes: -// * InvalidResourceException +// * ErrCodeInvalidResourceException "InvalidResourceException" // The specified resource can't be found. Check the information you provided // in your last request, and try again. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/DescribeAddresses func (c *Snowball) DescribeAddresses(input *DescribeAddressesInput) (*DescribeAddressesOutput, error) { req, out := c.DescribeAddressesRequest(input) err := req.Send() @@ -397,6 +567,73 @@ func (c *Snowball) DescribeAddressesPages(input *DescribeAddressesInput, fn func }) } +const opDescribeCluster = "DescribeCluster" + +// DescribeClusterRequest generates a "aws/request.Request" representing the +// client's request for the DescribeCluster operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeCluster for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeCluster method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeClusterRequest method. +// req, resp := client.DescribeClusterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/DescribeCluster +func (c *Snowball) DescribeClusterRequest(input *DescribeClusterInput) (req *request.Request, output *DescribeClusterOutput) { + op := &request.Operation{ + Name: opDescribeCluster, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeClusterInput{} + } + + output = &DescribeClusterOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeCluster API operation for Amazon Import/Export Snowball. +// +// Returns information about a specific cluster including shipping information, +// cluster status, and other important metadata. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation DescribeCluster for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidResourceException "InvalidResourceException" +// The specified resource can't be found. Check the information you provided +// in your last request, and try again. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/DescribeCluster +func (c *Snowball) DescribeCluster(input *DescribeClusterInput) (*DescribeClusterOutput, error) { + req, out := c.DescribeClusterRequest(input) + err := req.Send() + return out, err +} + const opDescribeJob = "DescribeJob" // DescribeJobRequest generates a "aws/request.Request" representing the @@ -423,6 +660,7 @@ const opDescribeJob = "DescribeJob" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/DescribeJob func (c *Snowball) DescribeJobRequest(input *DescribeJobInput) (req *request.Request, output *DescribeJobOutput) { op := &request.Operation{ Name: opDescribeJob, @@ -434,16 +672,15 @@ func (c *Snowball) DescribeJobRequest(input *DescribeJobInput) (req *request.Req input = &DescribeJobInput{} } - req = c.newRequest(op, input, output) output = &DescribeJobOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DescribeJob API operation for Amazon Import/Export Snowball. // // Returns information about a specific job including shipping information, -// job status, and other important metadata. +// job status, and other important metadata. . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -453,10 +690,11 @@ func (c *Snowball) DescribeJobRequest(input *DescribeJobInput) (req *request.Req // API operation DescribeJob for usage and error information. // // Returned Error Codes: -// * InvalidResourceException +// * ErrCodeInvalidResourceException "InvalidResourceException" // The specified resource can't be found. Check the information you provided // in your last request, and try again. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/DescribeJob func (c *Snowball) DescribeJob(input *DescribeJobInput) (*DescribeJobOutput, error) { req, out := c.DescribeJobRequest(input) err := req.Send() @@ -489,6 +727,7 @@ const opGetJobManifest = "GetJobManifest" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/GetJobManifest func (c *Snowball) GetJobManifestRequest(input *GetJobManifestInput) (req *request.Request, output *GetJobManifestOutput) { op := &request.Operation{ Name: opGetJobManifest, @@ -500,9 +739,8 @@ func (c *Snowball) GetJobManifestRequest(input *GetJobManifestInput) (req *reque input = &GetJobManifestInput{} } - req = c.newRequest(op, input, output) output = &GetJobManifestOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -524,8 +762,8 @@ func (c *Snowball) GetJobManifestRequest(input *GetJobManifestInput) (req *reque // separately helps prevent unauthorized parties from gaining access to the // Snowball associated with that job. // -// Note that the credentials of a given job, including its manifest file and -// unlock code, expire 90 days after the job is created. +// The credentials of a given job, including its manifest file and unlock code, +// expire 90 days after the job is created. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -535,14 +773,15 @@ func (c *Snowball) GetJobManifestRequest(input *GetJobManifestInput) (req *reque // API operation GetJobManifest for usage and error information. // // Returned Error Codes: -// * InvalidResourceException +// * ErrCodeInvalidResourceException "InvalidResourceException" // The specified resource can't be found. Check the information you provided // in your last request, and try again. // -// * InvalidJobStateException +// * ErrCodeInvalidJobStateException "InvalidJobStateException" // The action can't be performed because the job's current state doesn't allow // that action to be performed. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/GetJobManifest func (c *Snowball) GetJobManifest(input *GetJobManifestInput) (*GetJobManifestOutput, error) { req, out := c.GetJobManifestRequest(input) err := req.Send() @@ -575,6 +814,7 @@ const opGetJobUnlockCode = "GetJobUnlockCode" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/GetJobUnlockCode func (c *Snowball) GetJobUnlockCodeRequest(input *GetJobUnlockCodeInput) (req *request.Request, output *GetJobUnlockCodeOutput) { op := &request.Operation{ Name: opGetJobUnlockCode, @@ -586,9 +826,8 @@ func (c *Snowball) GetJobUnlockCodeRequest(input *GetJobUnlockCodeInput) (req *r input = &GetJobUnlockCodeInput{} } - req = c.newRequest(op, input, output) output = &GetJobUnlockCodeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -616,14 +855,15 @@ func (c *Snowball) GetJobUnlockCodeRequest(input *GetJobUnlockCodeInput) (req *r // API operation GetJobUnlockCode for usage and error information. // // Returned Error Codes: -// * InvalidResourceException +// * ErrCodeInvalidResourceException "InvalidResourceException" // The specified resource can't be found. Check the information you provided // in your last request, and try again. // -// * InvalidJobStateException +// * ErrCodeInvalidJobStateException "InvalidJobStateException" // The action can't be performed because the job's current state doesn't allow // that action to be performed. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/GetJobUnlockCode func (c *Snowball) GetJobUnlockCode(input *GetJobUnlockCodeInput) (*GetJobUnlockCodeOutput, error) { req, out := c.GetJobUnlockCodeRequest(input) err := req.Send() @@ -656,6 +896,7 @@ const opGetSnowballUsage = "GetSnowballUsage" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/GetSnowballUsage func (c *Snowball) GetSnowballUsageRequest(input *GetSnowballUsageInput) (req *request.Request, output *GetSnowballUsageOutput) { op := &request.Operation{ Name: opGetSnowballUsage, @@ -667,9 +908,8 @@ func (c *Snowball) GetSnowballUsageRequest(input *GetSnowballUsageInput) (req *r input = &GetSnowballUsageInput{} } - req = c.newRequest(op, input, output) output = &GetSnowballUsageOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -678,9 +918,8 @@ func (c *Snowball) GetSnowballUsageRequest(input *GetSnowballUsageInput) (req *r // Returns information about the Snowball service limit for your account, and // also the number of Snowballs your account has in use. // -// Note that the default service limit for the number of Snowballs that you -// can have at one time is 1. If you want to increase your service limit, contact -// AWS Support. +// The default service limit for the number of Snowballs that you can have at +// one time is 1. If you want to increase your service limit, contact AWS Support. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -688,175 +927,401 @@ func (c *Snowball) GetSnowballUsageRequest(input *GetSnowballUsageInput) (req *r // // See the AWS API reference guide for Amazon Import/Export Snowball's // API operation GetSnowballUsage for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/GetSnowballUsage func (c *Snowball) GetSnowballUsage(input *GetSnowballUsageInput) (*GetSnowballUsageOutput, error) { req, out := c.GetSnowballUsageRequest(input) err := req.Send() return out, err } -const opListJobs = "ListJobs" +const opListClusterJobs = "ListClusterJobs" -// ListJobsRequest generates a "aws/request.Request" representing the -// client's request for the ListJobs operation. The "output" return +// ListClusterJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListClusterJobs operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ListJobs for usage and error information. +// See ListClusterJobs for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ListJobs method directly +// you just want the service response, call the ListClusterJobs method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ListJobsRequest method. -// req, resp := client.ListJobsRequest(params) +// // Example sending a request using the ListClusterJobsRequest method. +// req, resp := client.ListClusterJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *Snowball) ListJobsRequest(input *ListJobsInput) (req *request.Request, output *ListJobsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/ListClusterJobs +func (c *Snowball) ListClusterJobsRequest(input *ListClusterJobsInput) (req *request.Request, output *ListClusterJobsOutput) { op := &request.Operation{ - Name: opListJobs, + Name: opListClusterJobs, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListJobsInput{} + input = &ListClusterJobsInput{} } + output = &ListClusterJobsOutput{} req = c.newRequest(op, input, output) - output = &ListJobsOutput{} - req.Data = output return } -// ListJobs API operation for Amazon Import/Export Snowball. +// ListClusterJobs API operation for Amazon Import/Export Snowball. // // Returns an array of JobListEntry objects of the specified length. Each JobListEntry -// object contains a job's state, a job's ID, and a value that indicates whether -// the job is a job part, in the case of export jobs. Calling this API action -// in one of the US regions will return jobs from the list of all jobs associated -// with this account in all US regions. +// object is for a job in the specified cluster and contains a job's state, +// a job's ID, and other information. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Import/Export Snowball's -// API operation ListJobs for usage and error information. -func (c *Snowball) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) { - req, out := c.ListJobsRequest(input) - err := req.Send() - return out, err -} - -// ListJobsPages iterates over the pages of a ListJobs operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListJobs method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. +// API operation ListClusterJobs for usage and error information. // -// // Example iterating over at most 3 pages of a ListJobs operation. -// pageNum := 0 -// err := client.ListJobsPages(params, -// func(page *ListJobsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) +// Returned Error Codes: +// * ErrCodeInvalidResourceException "InvalidResourceException" +// The specified resource can't be found. Check the information you provided +// in your last request, and try again. // -func (c *Snowball) ListJobsPages(input *ListJobsInput, fn func(p *ListJobsOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.ListJobsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*ListJobsOutput), lastPage) - }) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/ListClusterJobs +func (c *Snowball) ListClusterJobs(input *ListClusterJobsInput) (*ListClusterJobsOutput, error) { + req, out := c.ListClusterJobsRequest(input) + err := req.Send() + return out, err } -const opUpdateJob = "UpdateJob" +const opListClusters = "ListClusters" -// UpdateJobRequest generates a "aws/request.Request" representing the -// client's request for the UpdateJob operation. The "output" return +// ListClustersRequest generates a "aws/request.Request" representing the +// client's request for the ListClusters operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See UpdateJob for usage and error information. +// See ListClusters for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the UpdateJob method directly +// you just want the service response, call the ListClusters method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the UpdateJobRequest method. -// req, resp := client.UpdateJobRequest(params) +// // Example sending a request using the ListClustersRequest method. +// req, resp := client.ListClustersRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *Snowball) UpdateJobRequest(input *UpdateJobInput) (req *request.Request, output *UpdateJobOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/ListClusters +func (c *Snowball) ListClustersRequest(input *ListClustersInput) (req *request.Request, output *ListClustersOutput) { op := &request.Operation{ - Name: opUpdateJob, + Name: opListClusters, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateJobInput{} + input = &ListClustersInput{} } + output = &ListClustersOutput{} req = c.newRequest(op, input, output) - output = &UpdateJobOutput{} - req.Data = output return } -// UpdateJob API operation for Amazon Import/Export Snowball. +// ListClusters API operation for Amazon Import/Export Snowball. // -// While a job's JobState value is New, you can update some of the information -// associated with a job. Once the job changes to a different job state, usually -// within 60 minutes of the job being created, this action is no longer available. +// Returns an array of ClusterListEntry objects of the specified length. Each +// ClusterListEntry object contains a cluster's state, a cluster's ID, and other +// important status information. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Import/Export Snowball's -// API operation UpdateJob for usage and error information. +// API operation ListClusters for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/ListClusters +func (c *Snowball) ListClusters(input *ListClustersInput) (*ListClustersOutput, error) { + req, out := c.ListClustersRequest(input) + err := req.Send() + return out, err +} + +const opListJobs = "ListJobs" + +// ListJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListJobs operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. // -// Returned Error Codes: -// * InvalidResourceException -// The specified resource can't be found. Check the information you provided +// See ListJobs for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListJobs method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListJobsRequest method. +// req, resp := client.ListJobsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/ListJobs +func (c *Snowball) ListJobsRequest(input *ListJobsInput) (req *request.Request, output *ListJobsOutput) { + op := &request.Operation{ + Name: opListJobs, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListJobsInput{} + } + + output = &ListJobsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListJobs API operation for Amazon Import/Export Snowball. +// +// Returns an array of JobListEntry objects of the specified length. Each JobListEntry +// object contains a job's state, a job's ID, and a value that indicates whether +// the job is a job part, in the case of export jobs. Calling this API action +// in one of the US regions will return jobs from the list of all jobs associated +// with this account in all US regions. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation ListJobs for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/ListJobs +func (c *Snowball) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) { + req, out := c.ListJobsRequest(input) + err := req.Send() + return out, err +} + +// ListJobsPages iterates over the pages of a ListJobs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListJobs method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListJobs operation. +// pageNum := 0 +// err := client.ListJobsPages(params, +// func(page *ListJobsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Snowball) ListJobsPages(input *ListJobsInput, fn func(p *ListJobsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListJobsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListJobsOutput), lastPage) + }) +} + +const opUpdateCluster = "UpdateCluster" + +// UpdateClusterRequest generates a "aws/request.Request" representing the +// client's request for the UpdateCluster operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateCluster for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateCluster method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateClusterRequest method. +// req, resp := client.UpdateClusterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/UpdateCluster +func (c *Snowball) UpdateClusterRequest(input *UpdateClusterInput) (req *request.Request, output *UpdateClusterOutput) { + op := &request.Operation{ + Name: opUpdateCluster, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateClusterInput{} + } + + output = &UpdateClusterOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateCluster API operation for Amazon Import/Export Snowball. +// +// While a cluster's ClusterState value is in the AwaitingQuorum state, you +// can update some of the information associated with a cluster. Once the cluster +// changes to a different job state, usually 60 minutes after the cluster being +// created, this action is no longer available. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation UpdateCluster for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidResourceException "InvalidResourceException" +// The specified resource can't be found. Check the information you provided +// in your last request, and try again. +// +// * ErrCodeInvalidJobStateException "InvalidJobStateException" +// The action can't be performed because the job's current state doesn't allow +// that action to be performed. +// +// * ErrCodeKMSRequestFailedException "KMSRequestFailedException" +// The provided AWS Key Management Service key lacks the permissions to perform +// the specified CreateJob or UpdateJob action. +// +// * ErrCodeInvalidInputCombinationException "InvalidInputCombinationException" +// Job or cluster creation failed. One ore more inputs were invalid. Confirm +// that the CreateClusterRequest$SnowballType value supports your CreateJobRequest$JobType, +// and try again. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/UpdateCluster +func (c *Snowball) UpdateCluster(input *UpdateClusterInput) (*UpdateClusterOutput, error) { + req, out := c.UpdateClusterRequest(input) + err := req.Send() + return out, err +} + +const opUpdateJob = "UpdateJob" + +// UpdateJobRequest generates a "aws/request.Request" representing the +// client's request for the UpdateJob operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateJob for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateJob method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateJobRequest method. +// req, resp := client.UpdateJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/UpdateJob +func (c *Snowball) UpdateJobRequest(input *UpdateJobInput) (req *request.Request, output *UpdateJobOutput) { + op := &request.Operation{ + Name: opUpdateJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateJobInput{} + } + + output = &UpdateJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateJob API operation for Amazon Import/Export Snowball. +// +// While a job's JobState value is New, you can update some of the information +// associated with a job. Once the job changes to a different job state, usually +// within 60 minutes of the job being created, this action is no longer available. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation UpdateJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidResourceException "InvalidResourceException" +// The specified resource can't be found. Check the information you provided // in your last request, and try again. // -// * InvalidJobStateException +// * ErrCodeInvalidJobStateException "InvalidJobStateException" // The action can't be performed because the job's current state doesn't allow // that action to be performed. // -// * KMSRequestFailedException +// * ErrCodeKMSRequestFailedException "KMSRequestFailedException" // The provided AWS Key Management Service key lacks the permissions to perform // the specified CreateJob or UpdateJob action. // +// * ErrCodeInvalidInputCombinationException "InvalidInputCombinationException" +// Job or cluster creation failed. One ore more inputs were invalid. Confirm +// that the CreateClusterRequest$SnowballType value supports your CreateJobRequest$JobType, +// and try again. +// +// * ErrCodeClusterLimitExceededException "ClusterLimitExceededException" +// Job creation failed. Currently, clusters support five nodes. If you have +// less than five nodes for your cluster and you have more nodes to create for +// this cluster, try again and create jobs until your cluster has exactly five +// notes. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/UpdateJob func (c *Snowball) UpdateJob(input *UpdateJobInput) (*UpdateJobOutput, error) { req, out := c.UpdateJobRequest(input) err := req.Send() @@ -868,6 +1333,7 @@ func (c *Snowball) UpdateJob(input *UpdateJobInput) (*UpdateJobOutput, error) { // address you provide must be located within the serviceable area of your region. // Although no individual elements of the Address are required, if the address // is invalid or unsupported, then an exception is thrown. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/Address type Address struct { _ struct{} `type:"structure"` @@ -883,7 +1349,7 @@ type Address struct { // The country in an address that a Snowball is to be delivered to. Country *string `min:"1" type:"string"` - // A landmark listed in an address that a Snowball is to be delivered to. + // The landmark identifying the address that the appliance will be shipped to. Landmark *string `min:"1" type:"string"` // The name of a person to receive a Snowball at an address. @@ -896,8 +1362,7 @@ type Address struct { // The postal code in an address that a Snowball is to be delivered to. PostalCode *string `min:"1" type:"string"` - // The prefecture or district in an address that a Snowball is to be delivered - // to. + // The prefecture or district that the appliance will be shipped to. PrefectureOrDistrict *string `min:"1" type:"string"` // The state or province in an address that a Snowball is to be delivered to. @@ -972,10 +1437,147 @@ func (s *Address) Validate() error { return nil } +// SetAddressId sets the AddressId field's value. +func (s *Address) SetAddressId(v string) *Address { + s.AddressId = &v + return s +} + +// SetCity sets the City field's value. +func (s *Address) SetCity(v string) *Address { + s.City = &v + return s +} + +// SetCompany sets the Company field's value. +func (s *Address) SetCompany(v string) *Address { + s.Company = &v + return s +} + +// SetCountry sets the Country field's value. +func (s *Address) SetCountry(v string) *Address { + s.Country = &v + return s +} + +// SetLandmark sets the Landmark field's value. +func (s *Address) SetLandmark(v string) *Address { + s.Landmark = &v + return s +} + +// SetName sets the Name field's value. +func (s *Address) SetName(v string) *Address { + s.Name = &v + return s +} + +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *Address) SetPhoneNumber(v string) *Address { + s.PhoneNumber = &v + return s +} + +// SetPostalCode sets the PostalCode field's value. +func (s *Address) SetPostalCode(v string) *Address { + s.PostalCode = &v + return s +} + +// SetPrefectureOrDistrict sets the PrefectureOrDistrict field's value. +func (s *Address) SetPrefectureOrDistrict(v string) *Address { + s.PrefectureOrDistrict = &v + return s +} + +// SetStateOrProvince sets the StateOrProvince field's value. +func (s *Address) SetStateOrProvince(v string) *Address { + s.StateOrProvince = &v + return s +} + +// SetStreet1 sets the Street1 field's value. +func (s *Address) SetStreet1(v string) *Address { + s.Street1 = &v + return s +} + +// SetStreet2 sets the Street2 field's value. +func (s *Address) SetStreet2(v string) *Address { + s.Street2 = &v + return s +} + +// SetStreet3 sets the Street3 field's value. +func (s *Address) SetStreet3(v string) *Address { + s.Street3 = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/CancelClusterRequest +type CancelClusterInput struct { + _ struct{} `type:"structure"` + + // The 39-character ID for the cluster that you want to cancel, for example + // CID123e4567-e89b-12d3-a456-426655440000. + // + // ClusterId is a required field + ClusterId *string `min:"39" type:"string" required:"true"` +} + +// String returns the string representation +func (s CancelClusterInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelClusterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelClusterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelClusterInput"} + if s.ClusterId == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterId")) + } + if s.ClusterId != nil && len(*s.ClusterId) < 39 { + invalidParams.Add(request.NewErrParamMinLen("ClusterId", 39)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClusterId sets the ClusterId field's value. +func (s *CancelClusterInput) SetClusterId(v string) *CancelClusterInput { + s.ClusterId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/CancelClusterResult +type CancelClusterOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CancelClusterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelClusterOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/CancelJobRequest type CancelJobInput struct { _ struct{} `type:"structure"` - // The 39 character job ID for the job that you want to cancel, for example + // The 39-character job ID for the job that you want to cancel, for example // JID123e4567-e89b-12d3-a456-426655440000. // // JobId is a required field @@ -1008,6 +1610,13 @@ func (s *CancelJobInput) Validate() error { return nil } +// SetJobId sets the JobId field's value. +func (s *CancelJobInput) SetJobId(v string) *CancelJobInput { + s.JobId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/CancelJobResult type CancelJobOutput struct { _ struct{} `type:"structure"` } @@ -1022,6 +1631,208 @@ func (s CancelJobOutput) GoString() string { return s.String() } +// Contains a cluster's state, a cluster's ID, and other important information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/ClusterListEntry +type ClusterListEntry struct { + _ struct{} `type:"structure"` + + // The 39-character ID for the cluster that you want to list, for example CID123e4567-e89b-12d3-a456-426655440000. + ClusterId *string `min:"1" type:"string"` + + // The current state of this cluster. For information about the state of a specific + // node, see JobListEntry$JobState. + ClusterState *string `type:"string" enum:"ClusterState"` + + // The creation date for this cluster. + CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // Defines an optional description of the cluster, for example Environmental + // Data Cluster-01. + Description *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ClusterListEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClusterListEntry) GoString() string { + return s.String() +} + +// SetClusterId sets the ClusterId field's value. +func (s *ClusterListEntry) SetClusterId(v string) *ClusterListEntry { + s.ClusterId = &v + return s +} + +// SetClusterState sets the ClusterState field's value. +func (s *ClusterListEntry) SetClusterState(v string) *ClusterListEntry { + s.ClusterState = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *ClusterListEntry) SetCreationDate(v time.Time) *ClusterListEntry { + s.CreationDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ClusterListEntry) SetDescription(v string) *ClusterListEntry { + s.Description = &v + return s +} + +// Contains metadata about a specific cluster. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/ClusterMetadata +type ClusterMetadata struct { + _ struct{} `type:"structure"` + + // The automatically generated ID for a specific address. + AddressId *string `min:"40" type:"string"` + + // The automatically generated ID for a cluster. + ClusterId *string `min:"1" type:"string"` + + // The current status of the cluster. + ClusterState *string `type:"string" enum:"ClusterState"` + + // The creation date for this cluster. + CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The optional description of the cluster. + Description *string `min:"1" type:"string"` + + // The type of job for this cluster. Currently, the only job type supported + // for clusters is LOCAL_USE. + JobType *string `type:"string" enum:"JobType"` + + // The KmsKeyARN Amazon Resource Name (ARN) associated with this cluster. This + // ARN was created using the CreateKey (http://docs.aws.amazon.com/kms/latest/APIReference/API_CreateKey.html) + // API action in AWS Key Management Service (AWS KMS). + KmsKeyARN *string `type:"string"` + + // The Amazon Simple Notification Service (Amazon SNS) notification settings + // for this cluster. + Notification *Notification `type:"structure"` + + // The arrays of JobResource objects that can include updated S3Resource objects + // or LambdaResource objects. + Resources *JobResource `type:"structure"` + + // The role ARN associated with this cluster. This ARN was created using the + // CreateRole (http://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html) + // API action in AWS Identity and Access Management (IAM). + RoleARN *string `type:"string"` + + // The shipping speed for each node in this cluster. This speed doesn't dictate + // how soon you'll get each Snowball Edge appliance, rather it represents how + // quickly each appliance moves to its destination while in transit. Regional + // shipping speeds are as follows: + // + // * In Australia, you have access to express shipping. Typically, appliances + // shipped express are delivered in about a day. + // + // * In the European Union (EU), you have access to express shipping. Typically, + // Snowball Edges shipped express are delivered in about a day. In addition, + // most countries in the EU have access to standard shipping, which typically + // takes less than a week, one way. + // + // * In India, Snowball Edges are delivered in one to seven days. + // + // * In the US, you have access to one-day shipping and two-day shipping. + ShippingOption *string `type:"string" enum:"ShippingOption"` + + // The type of AWS Snowball appliance to use for this cluster. Currently, the + // only supported appliance type for cluster jobs is EDGE. + SnowballType *string `type:"string" enum:"Type"` +} + +// String returns the string representation +func (s ClusterMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClusterMetadata) GoString() string { + return s.String() +} + +// SetAddressId sets the AddressId field's value. +func (s *ClusterMetadata) SetAddressId(v string) *ClusterMetadata { + s.AddressId = &v + return s +} + +// SetClusterId sets the ClusterId field's value. +func (s *ClusterMetadata) SetClusterId(v string) *ClusterMetadata { + s.ClusterId = &v + return s +} + +// SetClusterState sets the ClusterState field's value. +func (s *ClusterMetadata) SetClusterState(v string) *ClusterMetadata { + s.ClusterState = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *ClusterMetadata) SetCreationDate(v time.Time) *ClusterMetadata { + s.CreationDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ClusterMetadata) SetDescription(v string) *ClusterMetadata { + s.Description = &v + return s +} + +// SetJobType sets the JobType field's value. +func (s *ClusterMetadata) SetJobType(v string) *ClusterMetadata { + s.JobType = &v + return s +} + +// SetKmsKeyARN sets the KmsKeyARN field's value. +func (s *ClusterMetadata) SetKmsKeyARN(v string) *ClusterMetadata { + s.KmsKeyARN = &v + return s +} + +// SetNotification sets the Notification field's value. +func (s *ClusterMetadata) SetNotification(v *Notification) *ClusterMetadata { + s.Notification = v + return s +} + +// SetResources sets the Resources field's value. +func (s *ClusterMetadata) SetResources(v *JobResource) *ClusterMetadata { + s.Resources = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *ClusterMetadata) SetRoleARN(v string) *ClusterMetadata { + s.RoleARN = &v + return s +} + +// SetShippingOption sets the ShippingOption field's value. +func (s *ClusterMetadata) SetShippingOption(v string) *ClusterMetadata { + s.ShippingOption = &v + return s +} + +// SetSnowballType sets the SnowballType field's value. +func (s *ClusterMetadata) SetSnowballType(v string) *ClusterMetadata { + s.SnowballType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/CreateAddressRequest type CreateAddressInput struct { _ struct{} `type:"structure"` @@ -1059,6 +1870,13 @@ func (s *CreateAddressInput) Validate() error { return nil } +// SetAddress sets the Address field's value. +func (s *CreateAddressInput) SetAddress(v *Address) *CreateAddressInput { + s.Address = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/CreateAddressResult type CreateAddressOutput struct { _ struct{} `type:"structure"` @@ -1078,23 +1896,221 @@ func (s CreateAddressOutput) GoString() string { return s.String() } -type CreateJobInput struct { +// SetAddressId sets the AddressId field's value. +func (s *CreateAddressOutput) SetAddressId(v string) *CreateAddressOutput { + s.AddressId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/CreateClusterRequest +type CreateClusterInput struct { _ struct{} `type:"structure"` - // The ID for the address that you want the Snowball shipped to. + // The ID for the address that you want the cluster shipped to.> // // AddressId is a required field AddressId *string `min:"40" type:"string" required:"true"` - // Defines an optional description of this specific job, for example Important - // Photos 2016-08-11. + // An optional description of this specific cluster, for example Environmental + // Data Cluster-01. Description *string `min:"1" type:"string"` - // Defines the type of job that you're creating. + // The type of job for this cluster. Currently, the only job type supported + // for clusters is LOCAL_USE. // // JobType is a required field JobType *string `type:"string" required:"true" enum:"JobType"` + // The KmsKeyARN value that you want to associate with this cluster. KmsKeyARN + // values are created by using the CreateKey (http://docs.aws.amazon.com/kms/latest/APIReference/API_CreateKey.html) + // API action in AWS Key Management Service (AWS KMS). + KmsKeyARN *string `type:"string"` + + // The Amazon Simple Notification Service (Amazon SNS) notification settings + // for this cluster. + Notification *Notification `type:"structure"` + + // The resources associated with the cluster job. These resources include Amazon + // S3 buckets and optional AWS Lambda functions written in the Python language. + // + // Resources is a required field + Resources *JobResource `type:"structure" required:"true"` + + // The RoleARN that you want to associate with this cluster. RoleArn values + // are created by using the CreateRole (http://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html) + // API action in AWS Identity and Access Management (IAM). + // + // RoleARN is a required field + RoleARN *string `type:"string" required:"true"` + + // The shipping speed for each node in this cluster. This speed doesn't dictate + // how soon you'll get each Snowball Edge appliance, rather it represents how + // quickly each appliance moves to its destination while in transit. Regional + // shipping speeds are as follows: + // + // * In Australia, you have access to express shipping. Typically, appliances + // shipped express are delivered in about a day. + // + // * In the European Union (EU), you have access to express shipping. Typically, + // Snowball Edges shipped express are delivered in about a day. In addition, + // most countries in the EU have access to standard shipping, which typically + // takes less than a week, one way. + // + // * In India, Snowball Edges are delivered in one to seven days. + // + // * In the US, you have access to one-day shipping and two-day shipping. + // + // ShippingOption is a required field + ShippingOption *string `type:"string" required:"true" enum:"ShippingOption"` + + // The type of AWS Snowball appliance to use for this cluster. Currently, the + // only supported appliance type for cluster jobs is EDGE. + SnowballType *string `type:"string" enum:"Type"` +} + +// String returns the string representation +func (s CreateClusterInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateClusterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateClusterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateClusterInput"} + if s.AddressId == nil { + invalidParams.Add(request.NewErrParamRequired("AddressId")) + } + if s.AddressId != nil && len(*s.AddressId) < 40 { + invalidParams.Add(request.NewErrParamMinLen("AddressId", 40)) + } + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + } + if s.JobType == nil { + invalidParams.Add(request.NewErrParamRequired("JobType")) + } + if s.Resources == nil { + invalidParams.Add(request.NewErrParamRequired("Resources")) + } + if s.RoleARN == nil { + invalidParams.Add(request.NewErrParamRequired("RoleARN")) + } + if s.ShippingOption == nil { + invalidParams.Add(request.NewErrParamRequired("ShippingOption")) + } + if s.Resources != nil { + if err := s.Resources.Validate(); err != nil { + invalidParams.AddNested("Resources", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAddressId sets the AddressId field's value. +func (s *CreateClusterInput) SetAddressId(v string) *CreateClusterInput { + s.AddressId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateClusterInput) SetDescription(v string) *CreateClusterInput { + s.Description = &v + return s +} + +// SetJobType sets the JobType field's value. +func (s *CreateClusterInput) SetJobType(v string) *CreateClusterInput { + s.JobType = &v + return s +} + +// SetKmsKeyARN sets the KmsKeyARN field's value. +func (s *CreateClusterInput) SetKmsKeyARN(v string) *CreateClusterInput { + s.KmsKeyARN = &v + return s +} + +// SetNotification sets the Notification field's value. +func (s *CreateClusterInput) SetNotification(v *Notification) *CreateClusterInput { + s.Notification = v + return s +} + +// SetResources sets the Resources field's value. +func (s *CreateClusterInput) SetResources(v *JobResource) *CreateClusterInput { + s.Resources = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *CreateClusterInput) SetRoleARN(v string) *CreateClusterInput { + s.RoleARN = &v + return s +} + +// SetShippingOption sets the ShippingOption field's value. +func (s *CreateClusterInput) SetShippingOption(v string) *CreateClusterInput { + s.ShippingOption = &v + return s +} + +// SetSnowballType sets the SnowballType field's value. +func (s *CreateClusterInput) SetSnowballType(v string) *CreateClusterInput { + s.SnowballType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/CreateClusterResult +type CreateClusterOutput struct { + _ struct{} `type:"structure"` + + // The automatically generated ID for a cluster. + ClusterId *string `min:"39" type:"string"` +} + +// String returns the string representation +func (s CreateClusterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateClusterOutput) GoString() string { + return s.String() +} + +// SetClusterId sets the ClusterId field's value. +func (s *CreateClusterOutput) SetClusterId(v string) *CreateClusterOutput { + s.ClusterId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/CreateJobRequest +type CreateJobInput struct { + _ struct{} `type:"structure"` + + // The ID for the address that you want the Snowball shipped to. + AddressId *string `min:"40" type:"string"` + + // The ID of a cluster. If you're creating a job for a node in a cluster, you + // need to provide only this clusterId value. The other job attributes are inherited + // from the cluster. + ClusterId *string `min:"39" type:"string"` + + // Defines an optional description of this specific job, for example Important + // Photos 2016-08-11. + Description *string `min:"1" type:"string"` + + // Defines the type of job that you're creating. + JobType *string `type:"string" enum:"JobType"` + // The KmsKeyARN that you want to associate with this job. KmsKeyARNs are created // using the CreateKey (http://docs.aws.amazon.com/kms/latest/APIReference/API_CreateKey.html) // AWS Key Management Service (KMS) API action. @@ -1114,41 +2130,38 @@ type CreateJobInput struct { // If you choose to export a range, you define the length of the range by providing // either an inclusive BeginMarker value, an inclusive EndMarker value, or both. // Ranges are UTF-8 binary sorted. - // - // Resources is a required field - Resources *JobResource `type:"structure" required:"true"` + Resources *JobResource `type:"structure"` // The RoleARN that you want to associate with this job. RoleArns are created // using the CreateRole (http://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html) // AWS Identity and Access Management (IAM) API action. - // - // RoleARN is a required field - RoleARN *string `type:"string" required:"true"` + RoleARN *string `type:"string"` - // The shipping speed for this job. Note that this speed does not dictate how - // soon you'll get the Snowball, rather it represents how quickly the Snowball - // moves to its destination while in transit. Regional shipping speeds are as - // follows: - // - // In Australia, you have access to express shipping. Typically, Snowballs - // shipped express are delivered in about a day. + // The shipping speed for this job. This speed doesn't dictate how soon you'll + // get the Snowball, rather it represents how quickly the Snowball moves to + // its destination while in transit. Regional shipping speeds are as follows: // - // In the European Union (EU), you have access to express shipping. Typically, - // Snowballs shipped express are delivered in about a day. In addition, most - // countries in the EU have access to standard shipping, which typically takes - // less than a week, one way. + // * In Australia, you have access to express shipping. Typically, Snowballs + // shipped express are delivered in about a day. // - // In India, Snowballs are delivered in one to seven days. + // * In the European Union (EU), you have access to express shipping. Typically, + // Snowballs shipped express are delivered in about a day. In addition, most + // countries in the EU have access to standard shipping, which typically + // takes less than a week, one way. // - // In the US, you have access to one-day shipping and two-day shipping. + // * In India, Snowballs are delivered in one to seven days. // - // ShippingOption is a required field - ShippingOption *string `type:"string" required:"true" enum:"ShippingOption"` + // * In the US, you have access to one-day shipping and two-day shipping. + ShippingOption *string `type:"string" enum:"ShippingOption"` // If your job is being created in one of the US regions, you have the option // of specifying what size Snowball you'd like for this job. In all other regions, // Snowballs come with 80 TB in storage capacity. SnowballCapacityPreference *string `type:"string" enum:"Capacity"` + + // The type of AWS Snowball appliance to use for this job. Currently, the only + // supported appliance type for cluster jobs is EDGE. + SnowballType *string `type:"string" enum:"Type"` } // String returns the string representation @@ -1164,27 +2177,15 @@ func (s CreateJobInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *CreateJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateJobInput"} - if s.AddressId == nil { - invalidParams.Add(request.NewErrParamRequired("AddressId")) - } if s.AddressId != nil && len(*s.AddressId) < 40 { invalidParams.Add(request.NewErrParamMinLen("AddressId", 40)) } + if s.ClusterId != nil && len(*s.ClusterId) < 39 { + invalidParams.Add(request.NewErrParamMinLen("ClusterId", 39)) + } if s.Description != nil && len(*s.Description) < 1 { invalidParams.Add(request.NewErrParamMinLen("Description", 1)) } - if s.JobType == nil { - invalidParams.Add(request.NewErrParamRequired("JobType")) - } - if s.Resources == nil { - invalidParams.Add(request.NewErrParamRequired("Resources")) - } - if s.RoleARN == nil { - invalidParams.Add(request.NewErrParamRequired("RoleARN")) - } - if s.ShippingOption == nil { - invalidParams.Add(request.NewErrParamRequired("ShippingOption")) - } if s.Resources != nil { if err := s.Resources.Validate(); err != nil { invalidParams.AddNested("Resources", err.(request.ErrInvalidParams)) @@ -1197,6 +2198,73 @@ func (s *CreateJobInput) Validate() error { return nil } +// SetAddressId sets the AddressId field's value. +func (s *CreateJobInput) SetAddressId(v string) *CreateJobInput { + s.AddressId = &v + return s +} + +// SetClusterId sets the ClusterId field's value. +func (s *CreateJobInput) SetClusterId(v string) *CreateJobInput { + s.ClusterId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateJobInput) SetDescription(v string) *CreateJobInput { + s.Description = &v + return s +} + +// SetJobType sets the JobType field's value. +func (s *CreateJobInput) SetJobType(v string) *CreateJobInput { + s.JobType = &v + return s +} + +// SetKmsKeyARN sets the KmsKeyARN field's value. +func (s *CreateJobInput) SetKmsKeyARN(v string) *CreateJobInput { + s.KmsKeyARN = &v + return s +} + +// SetNotification sets the Notification field's value. +func (s *CreateJobInput) SetNotification(v *Notification) *CreateJobInput { + s.Notification = v + return s +} + +// SetResources sets the Resources field's value. +func (s *CreateJobInput) SetResources(v *JobResource) *CreateJobInput { + s.Resources = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *CreateJobInput) SetRoleARN(v string) *CreateJobInput { + s.RoleARN = &v + return s +} + +// SetShippingOption sets the ShippingOption field's value. +func (s *CreateJobInput) SetShippingOption(v string) *CreateJobInput { + s.ShippingOption = &v + return s +} + +// SetSnowballCapacityPreference sets the SnowballCapacityPreference field's value. +func (s *CreateJobInput) SetSnowballCapacityPreference(v string) *CreateJobInput { + s.SnowballCapacityPreference = &v + return s +} + +// SetSnowballType sets the SnowballType field's value. +func (s *CreateJobInput) SetSnowballType(v string) *CreateJobInput { + s.SnowballType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/CreateJobResult type CreateJobOutput struct { _ struct{} `type:"structure"` @@ -1214,9 +2282,16 @@ func (s CreateJobOutput) GoString() string { return s.String() } +// SetJobId sets the JobId field's value. +func (s *CreateJobOutput) SetJobId(v string) *CreateJobOutput { + s.JobId = &v + return s +} + // Defines the real-time status of a Snowball's data transfer while the appliance -// is at AWS. Note that this data is only available while a job has a JobState -// value of InProgress, for both import and export jobs. +// is at AWS. This data is only available while a job has a JobState value of +// InProgress, for both import and export jobs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/DataTransfer type DataTransfer struct { _ struct{} `type:"structure"` @@ -1247,6 +2322,31 @@ func (s DataTransfer) GoString() string { return s.String() } +// SetBytesTransferred sets the BytesTransferred field's value. +func (s *DataTransfer) SetBytesTransferred(v int64) *DataTransfer { + s.BytesTransferred = &v + return s +} + +// SetObjectsTransferred sets the ObjectsTransferred field's value. +func (s *DataTransfer) SetObjectsTransferred(v int64) *DataTransfer { + s.ObjectsTransferred = &v + return s +} + +// SetTotalBytes sets the TotalBytes field's value. +func (s *DataTransfer) SetTotalBytes(v int64) *DataTransfer { + s.TotalBytes = &v + return s +} + +// SetTotalObjects sets the TotalObjects field's value. +func (s *DataTransfer) SetTotalObjects(v int64) *DataTransfer { + s.TotalObjects = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/DescribeAddressRequest type DescribeAddressInput struct { _ struct{} `type:"structure"` @@ -1282,6 +2382,13 @@ func (s *DescribeAddressInput) Validate() error { return nil } +// SetAddressId sets the AddressId field's value. +func (s *DescribeAddressInput) SetAddressId(v string) *DescribeAddressInput { + s.AddressId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/DescribeAddressResult type DescribeAddressOutput struct { _ struct{} `type:"structure"` @@ -1300,6 +2407,13 @@ func (s DescribeAddressOutput) GoString() string { return s.String() } +// SetAddress sets the Address field's value. +func (s *DescribeAddressOutput) SetAddress(v *Address) *DescribeAddressOutput { + s.Address = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/DescribeAddressesRequest type DescribeAddressesInput struct { _ struct{} `type:"structure"` @@ -1335,6 +2449,19 @@ func (s *DescribeAddressesInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeAddressesInput) SetMaxResults(v int64) *DescribeAddressesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAddressesInput) SetNextToken(v string) *DescribeAddressesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/DescribeAddressesResult type DescribeAddressesOutput struct { _ struct{} `type:"structure"` @@ -1357,6 +2484,86 @@ func (s DescribeAddressesOutput) GoString() string { return s.String() } +// SetAddresses sets the Addresses field's value. +func (s *DescribeAddressesOutput) SetAddresses(v []*Address) *DescribeAddressesOutput { + s.Addresses = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAddressesOutput) SetNextToken(v string) *DescribeAddressesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/DescribeClusterRequest +type DescribeClusterInput struct { + _ struct{} `type:"structure"` + + // The automatically generated ID for a cluster. + // + // ClusterId is a required field + ClusterId *string `min:"39" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeClusterInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeClusterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeClusterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeClusterInput"} + if s.ClusterId == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterId")) + } + if s.ClusterId != nil && len(*s.ClusterId) < 39 { + invalidParams.Add(request.NewErrParamMinLen("ClusterId", 39)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClusterId sets the ClusterId field's value. +func (s *DescribeClusterInput) SetClusterId(v string) *DescribeClusterInput { + s.ClusterId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/DescribeClusterResult +type DescribeClusterOutput struct { + _ struct{} `type:"structure"` + + // Information about a specific cluster, including shipping information, cluster + // status, and other important metadata. + ClusterMetadata *ClusterMetadata `type:"structure"` +} + +// String returns the string representation +func (s DescribeClusterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeClusterOutput) GoString() string { + return s.String() +} + +// SetClusterMetadata sets the ClusterMetadata field's value. +func (s *DescribeClusterOutput) SetClusterMetadata(v *ClusterMetadata) *DescribeClusterOutput { + s.ClusterMetadata = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/DescribeJobRequest type DescribeJobInput struct { _ struct{} `type:"structure"` @@ -1392,6 +2599,13 @@ func (s *DescribeJobInput) Validate() error { return nil } +// SetJobId sets the JobId field's value. +func (s *DescribeJobInput) SetJobId(v string) *DescribeJobInput { + s.JobId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/DescribeJobResult type DescribeJobOutput struct { _ struct{} `type:"structure"` @@ -1399,21 +2613,60 @@ type DescribeJobOutput struct { // and other important metadata. JobMetadata *JobMetadata `type:"structure"` - // Information about a specific job part (in the case of an export job), including - // shipping information, job status, and other important metadata. - SubJobMetadata []*JobMetadata `type:"list"` + // Information about a specific job part (in the case of an export job), including + // shipping information, job status, and other important metadata. + SubJobMetadata []*JobMetadata `type:"list"` +} + +// String returns the string representation +func (s DescribeJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeJobOutput) GoString() string { + return s.String() +} + +// SetJobMetadata sets the JobMetadata field's value. +func (s *DescribeJobOutput) SetJobMetadata(v *JobMetadata) *DescribeJobOutput { + s.JobMetadata = v + return s +} + +// SetSubJobMetadata sets the SubJobMetadata field's value. +func (s *DescribeJobOutput) SetSubJobMetadata(v []*JobMetadata) *DescribeJobOutput { + s.SubJobMetadata = v + return s +} + +// The container for the EventTriggerDefinition$EventResourceARN. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/EventTriggerDefinition +type EventTriggerDefinition struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for any local Amazon S3 resource that is an + // AWS Lambda function's event trigger associated with this job. + EventResourceARN *string `type:"string"` } // String returns the string representation -func (s DescribeJobOutput) String() string { +func (s EventTriggerDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeJobOutput) GoString() string { +func (s EventTriggerDefinition) GoString() string { return s.String() } +// SetEventResourceARN sets the EventResourceARN field's value. +func (s *EventTriggerDefinition) SetEventResourceARN(v string) *EventTriggerDefinition { + s.EventResourceARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/GetJobManifestRequest type GetJobManifestInput struct { _ struct{} `type:"structure"` @@ -1450,6 +2703,13 @@ func (s *GetJobManifestInput) Validate() error { return nil } +// SetJobId sets the JobId field's value. +func (s *GetJobManifestInput) SetJobId(v string) *GetJobManifestInput { + s.JobId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/GetJobManifestResult type GetJobManifestOutput struct { _ struct{} `type:"structure"` @@ -1468,6 +2728,13 @@ func (s GetJobManifestOutput) GoString() string { return s.String() } +// SetManifestURI sets the ManifestURI field's value. +func (s *GetJobManifestOutput) SetManifestURI(v string) *GetJobManifestOutput { + s.ManifestURI = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/GetJobUnlockCodeRequest type GetJobUnlockCodeInput struct { _ struct{} `type:"structure"` @@ -1504,6 +2771,13 @@ func (s *GetJobUnlockCodeInput) Validate() error { return nil } +// SetJobId sets the JobId field's value. +func (s *GetJobUnlockCodeInput) SetJobId(v string) *GetJobUnlockCodeInput { + s.JobId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/GetJobUnlockCodeResult type GetJobUnlockCodeOutput struct { _ struct{} `type:"structure"` @@ -1522,6 +2796,13 @@ func (s GetJobUnlockCodeOutput) GoString() string { return s.String() } +// SetUnlockCode sets the UnlockCode field's value. +func (s *GetJobUnlockCodeOutput) SetUnlockCode(v string) *GetJobUnlockCodeOutput { + s.UnlockCode = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/GetSnowballUsageRequest type GetSnowballUsageInput struct { _ struct{} `type:"structure"` } @@ -1536,6 +2817,7 @@ func (s GetSnowballUsageInput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/GetSnowballUsageResult type GetSnowballUsageOutput struct { _ struct{} `type:"structure"` @@ -1557,11 +2839,31 @@ func (s GetSnowballUsageOutput) GoString() string { return s.String() } +// SetSnowballLimit sets the SnowballLimit field's value. +func (s *GetSnowballUsageOutput) SetSnowballLimit(v int64) *GetSnowballUsageOutput { + s.SnowballLimit = &v + return s +} + +// SetSnowballsInUse sets the SnowballsInUse field's value. +func (s *GetSnowballUsageOutput) SetSnowballsInUse(v int64) *GetSnowballUsageOutput { + s.SnowballsInUse = &v + return s +} + // Each JobListEntry object contains a job's state, a job's ID, and a value // that indicates whether the job is a job part, in the case of an export job. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/JobListEntry type JobListEntry struct { _ struct{} `type:"structure"` + // The creation date for this job. + CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The optional description of this specific job, for example Important Photos + // 2016-08-11. + Description *string `min:"1" type:"string"` + // A value that indicates that this job is a master job. A master job represents // a successful request to create an export job. Master jobs aren't associated // with any Snowballs. Instead, each master job will have at least one job part, @@ -1575,6 +2877,12 @@ type JobListEntry struct { // The current state of this job. JobState *string `type:"string" enum:"JobState"` + + // The type of job. + JobType *string `type:"string" enum:"JobType"` + + // The type of appliance used with this job. + SnowballType *string `type:"string" enum:"Type"` } // String returns the string representation @@ -1587,6 +2895,48 @@ func (s JobListEntry) GoString() string { return s.String() } +// SetCreationDate sets the CreationDate field's value. +func (s *JobListEntry) SetCreationDate(v time.Time) *JobListEntry { + s.CreationDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *JobListEntry) SetDescription(v string) *JobListEntry { + s.Description = &v + return s +} + +// SetIsMaster sets the IsMaster field's value. +func (s *JobListEntry) SetIsMaster(v bool) *JobListEntry { + s.IsMaster = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *JobListEntry) SetJobId(v string) *JobListEntry { + s.JobId = &v + return s +} + +// SetJobState sets the JobState field's value. +func (s *JobListEntry) SetJobState(v string) *JobListEntry { + s.JobState = &v + return s +} + +// SetJobType sets the JobType field's value. +func (s *JobListEntry) SetJobType(v string) *JobListEntry { + s.JobType = &v + return s +} + +// SetSnowballType sets the SnowballType field's value. +func (s *JobListEntry) SetSnowballType(v string) *JobListEntry { + s.SnowballType = &v + return s +} + // Contains job logs. Whenever Snowball is used to import data into or export // data out of Amazon S3, you'll have the option of downloading a PDF job report. // Job logs are returned as a part of the response syntax of the DescribeJob @@ -1595,9 +2945,9 @@ func (s JobListEntry) GoString() string { // logs after 60 minutes have passed, you'll have to make another call to the // DescribeJob action. // -// For import jobs, the PDF job report becomes available at the end of the -// import process. For export jobs, your job report typically becomes available -// while the Snowball for your job part is being delivered to you. +// For import jobs, the PDF job report becomes available at the end of the import +// process. For export jobs, your job report typically becomes available while +// the Snowball for your job part is being delivered to you. // // The job report provides you insight into the state of your Amazon S3 data // transfer. The report includes details about your job or job part for your @@ -1607,6 +2957,7 @@ func (s JobListEntry) GoString() string { // look at the two associated logs: a success log and a failure log. The logs // are saved in comma-separated value (CSV) format, and the name of each log // includes the ID of the job or job part that the log describes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/JobLogs type JobLogs struct { _ struct{} `type:"structure"` @@ -1630,21 +2981,43 @@ func (s JobLogs) GoString() string { return s.String() } +// SetJobCompletionReportURI sets the JobCompletionReportURI field's value. +func (s *JobLogs) SetJobCompletionReportURI(v string) *JobLogs { + s.JobCompletionReportURI = &v + return s +} + +// SetJobFailureLogURI sets the JobFailureLogURI field's value. +func (s *JobLogs) SetJobFailureLogURI(v string) *JobLogs { + s.JobFailureLogURI = &v + return s +} + +// SetJobSuccessLogURI sets the JobSuccessLogURI field's value. +func (s *JobLogs) SetJobSuccessLogURI(v string) *JobLogs { + s.JobSuccessLogURI = &v + return s +} + // Contains information about a specific job including shipping information, // job status, and other important metadata. This information is returned as // a part of the response syntax of the DescribeJob action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/JobMetadata type JobMetadata struct { _ struct{} `type:"structure"` // The ID for the address that you want the Snowball shipped to. AddressId *string `min:"40" type:"string"` + // The 39-character ID for the cluster, for example CID123e4567-e89b-12d3-a456-426655440000. + ClusterId *string `min:"1" type:"string"` + // The creation date for this job. CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` // A value that defines the real-time status of a Snowball's data transfer while - // the appliance is at AWS. Note that this data is only available while a job - // has a JobState value of InProgress, for both import and export jobs. + // the appliance is at AWS. This data is only available while a job has a JobState + // value of InProgress, for both import and export jobs. DataTransferProgress *DataTransfer `type:"structure"` // The description of the job, provided at job creation. @@ -1653,89 +3026,432 @@ type JobMetadata struct { // The automatically generated ID for a job, for example JID123e4567-e89b-12d3-a456-426655440000. JobId *string `min:"1" type:"string"` - // Links to Amazon S3 presigned URLs for the job report and logs. For import - // jobs, the PDF job report becomes available at the end of the import process. - // For export jobs, your job report typically becomes available while the Snowball - // for your job part is being delivered to you. - JobLogInfo *JobLogs `type:"structure"` + // Links to Amazon S3 presigned URLs for the job report and logs. For import + // jobs, the PDF job report becomes available at the end of the import process. + // For export jobs, your job report typically becomes available while the Snowball + // for your job part is being delivered to you. + JobLogInfo *JobLogs `type:"structure"` + + // The current status of the jobs. + JobState *string `type:"string" enum:"JobState"` + + // The type of job. + JobType *string `type:"string" enum:"JobType"` + + // The Amazon Resource Name (ARN) for the AWS Key Management Service (AWS KMS) + // key associated with this job. This ARN was created using the CreateKey API + // action in AWS KMS. + KmsKeyARN *string `type:"string"` + + // The Amazon Simple Notification Service (Amazon SNS) notification settings + // associated with a specific job. The Notification object is returned as a + // part of the response syntax of the DescribeJob action in the JobMetadata + // data type. + Notification *Notification `type:"structure"` + + // An array of S3Resource objects. Each S3Resource object represents an Amazon + // S3 bucket that your transferred data will be exported from or imported into. + Resources *JobResource `type:"structure"` + + // The role ARN associated with this job. This ARN was created using the CreateRole + // API action in AWS Identity and Access Management (IAM). + RoleARN *string `type:"string"` + + // A job's shipping information, including inbound and outbound tracking numbers + // and shipping speed options. + ShippingDetails *ShippingDetails `type:"structure"` + + // The Snowball capacity preference for this job, specified at job creation. + // In US regions, you can choose between 50 TB and 80 TB Snowballs. All other + // regions use 80 TB capacity Snowballs. + SnowballCapacityPreference *string `type:"string" enum:"Capacity"` + + // The type of appliance used with this job. + SnowballType *string `type:"string" enum:"Type"` +} + +// String returns the string representation +func (s JobMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s JobMetadata) GoString() string { + return s.String() +} + +// SetAddressId sets the AddressId field's value. +func (s *JobMetadata) SetAddressId(v string) *JobMetadata { + s.AddressId = &v + return s +} + +// SetClusterId sets the ClusterId field's value. +func (s *JobMetadata) SetClusterId(v string) *JobMetadata { + s.ClusterId = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *JobMetadata) SetCreationDate(v time.Time) *JobMetadata { + s.CreationDate = &v + return s +} + +// SetDataTransferProgress sets the DataTransferProgress field's value. +func (s *JobMetadata) SetDataTransferProgress(v *DataTransfer) *JobMetadata { + s.DataTransferProgress = v + return s +} + +// SetDescription sets the Description field's value. +func (s *JobMetadata) SetDescription(v string) *JobMetadata { + s.Description = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *JobMetadata) SetJobId(v string) *JobMetadata { + s.JobId = &v + return s +} + +// SetJobLogInfo sets the JobLogInfo field's value. +func (s *JobMetadata) SetJobLogInfo(v *JobLogs) *JobMetadata { + s.JobLogInfo = v + return s +} + +// SetJobState sets the JobState field's value. +func (s *JobMetadata) SetJobState(v string) *JobMetadata { + s.JobState = &v + return s +} + +// SetJobType sets the JobType field's value. +func (s *JobMetadata) SetJobType(v string) *JobMetadata { + s.JobType = &v + return s +} + +// SetKmsKeyARN sets the KmsKeyARN field's value. +func (s *JobMetadata) SetKmsKeyARN(v string) *JobMetadata { + s.KmsKeyARN = &v + return s +} + +// SetNotification sets the Notification field's value. +func (s *JobMetadata) SetNotification(v *Notification) *JobMetadata { + s.Notification = v + return s +} + +// SetResources sets the Resources field's value. +func (s *JobMetadata) SetResources(v *JobResource) *JobMetadata { + s.Resources = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *JobMetadata) SetRoleARN(v string) *JobMetadata { + s.RoleARN = &v + return s +} + +// SetShippingDetails sets the ShippingDetails field's value. +func (s *JobMetadata) SetShippingDetails(v *ShippingDetails) *JobMetadata { + s.ShippingDetails = v + return s +} + +// SetSnowballCapacityPreference sets the SnowballCapacityPreference field's value. +func (s *JobMetadata) SetSnowballCapacityPreference(v string) *JobMetadata { + s.SnowballCapacityPreference = &v + return s +} + +// SetSnowballType sets the SnowballType field's value. +func (s *JobMetadata) SetSnowballType(v string) *JobMetadata { + s.SnowballType = &v + return s +} + +// Contains an array of S3Resource objects. Each S3Resource object represents +// an Amazon S3 bucket that your transferred data will be exported from or imported +// into. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/JobResource +type JobResource struct { + _ struct{} `type:"structure"` + + // The Python-language Lambda functions for this job. + LambdaResources []*LambdaResource `type:"list"` + + // An array of S3Resource objects. + S3Resources []*S3Resource `type:"list"` +} + +// String returns the string representation +func (s JobResource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s JobResource) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *JobResource) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "JobResource"} + if s.S3Resources != nil { + for i, v := range s.S3Resources { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "S3Resources", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLambdaResources sets the LambdaResources field's value. +func (s *JobResource) SetLambdaResources(v []*LambdaResource) *JobResource { + s.LambdaResources = v + return s +} + +// SetS3Resources sets the S3Resources field's value. +func (s *JobResource) SetS3Resources(v []*S3Resource) *JobResource { + s.S3Resources = v + return s +} + +// Contains a key range. For export jobs, a S3Resource object can have an optional +// KeyRange value. The length of the range is defined at job creation, and has +// either an inclusive BeginMarker, an inclusive EndMarker, or both. Ranges +// are UTF-8 binary sorted. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/KeyRange +type KeyRange struct { + _ struct{} `type:"structure"` + + // The key that starts an optional key range for an export job. Ranges are inclusive + // and UTF-8 binary sorted. + BeginMarker *string `min:"1" type:"string"` + + // The key that ends an optional key range for an export job. Ranges are inclusive + // and UTF-8 binary sorted. + EndMarker *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s KeyRange) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KeyRange) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *KeyRange) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KeyRange"} + if s.BeginMarker != nil && len(*s.BeginMarker) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BeginMarker", 1)) + } + if s.EndMarker != nil && len(*s.EndMarker) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EndMarker", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBeginMarker sets the BeginMarker field's value. +func (s *KeyRange) SetBeginMarker(v string) *KeyRange { + s.BeginMarker = &v + return s +} + +// SetEndMarker sets the EndMarker field's value. +func (s *KeyRange) SetEndMarker(v string) *KeyRange { + s.EndMarker = &v + return s +} + +// Identifies +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/LambdaResource +type LambdaResource struct { + _ struct{} `type:"structure"` + + // The array of ARNs for S3Resource objects to trigger the LambdaResource objects + // associated with this job. + EventTriggers []*EventTriggerDefinition `type:"list"` + + // An Amazon Resource Name (ARN) that represents an AWS Lambda function to be + // triggered by PUT object actions on the associated local Amazon S3 resource. + LambdaArn *string `type:"string"` +} + +// String returns the string representation +func (s LambdaResource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LambdaResource) GoString() string { + return s.String() +} + +// SetEventTriggers sets the EventTriggers field's value. +func (s *LambdaResource) SetEventTriggers(v []*EventTriggerDefinition) *LambdaResource { + s.EventTriggers = v + return s +} + +// SetLambdaArn sets the LambdaArn field's value. +func (s *LambdaResource) SetLambdaArn(v string) *LambdaResource { + s.LambdaArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/ListClusterJobsRequest +type ListClusterJobsInput struct { + _ struct{} `type:"structure"` + + // The 39-character ID for the cluster that you want to list, for example CID123e4567-e89b-12d3-a456-426655440000. + // + // ClusterId is a required field + ClusterId *string `min:"39" type:"string" required:"true"` + + // The number of JobListEntry objects to return. + MaxResults *int64 `type:"integer"` + + // HTTP requests are stateless. To identify what object comes "next" in the + // list of JobListEntry objects, you have the option of specifying NextToken + // as the starting point for your returned list. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListClusterJobsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListClusterJobsInput) GoString() string { + return s.String() +} - // The current state of the jobs. - JobState *string `type:"string" enum:"JobState"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListClusterJobsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListClusterJobsInput"} + if s.ClusterId == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterId")) + } + if s.ClusterId != nil && len(*s.ClusterId) < 39 { + invalidParams.Add(request.NewErrParamMinLen("ClusterId", 39)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } - // The type of job. - JobType *string `type:"string" enum:"JobType"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The Amazon Resource Name (ARN) for the AWS Key Management Service (AWS KMS) - // key associated with this job. This ARN was created using the CreateKey API - // action in AWS KMS. - KmsKeyARN *string `type:"string"` +// SetClusterId sets the ClusterId field's value. +func (s *ListClusterJobsInput) SetClusterId(v string) *ListClusterJobsInput { + s.ClusterId = &v + return s +} - // The Amazon Simple Notification Service (Amazon SNS) notification settings - // associated with a specific job. The Notification object is returned as a - // part of the response syntax of the DescribeJob action in the JobMetadata - // data type. - Notification *Notification `type:"structure"` +// SetMaxResults sets the MaxResults field's value. +func (s *ListClusterJobsInput) SetMaxResults(v int64) *ListClusterJobsInput { + s.MaxResults = &v + return s +} - // An array of S3Resource objects. Each S3Resource object represents an Amazon - // S3 bucket that your transferred data will be exported from or imported into. - Resources *JobResource `type:"structure"` +// SetNextToken sets the NextToken field's value. +func (s *ListClusterJobsInput) SetNextToken(v string) *ListClusterJobsInput { + s.NextToken = &v + return s +} - // The role ARN associated with this job. This ARN was created using the CreateRole - // API action in AWS Identity and Access Management (IAM). - RoleARN *string `type:"string"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/ListClusterJobsResult +type ListClusterJobsOutput struct { + _ struct{} `type:"structure"` - // A job's shipping information, including inbound and outbound tracking numbers - // and shipping speed options. - ShippingDetails *ShippingDetails `type:"structure"` + // Each JobListEntry object contains a job's state, a job's ID, and a value + // that indicates whether the job is a job part, in the case of export jobs. + JobListEntries []*JobListEntry `type:"list"` - // The Snowball capacity preference for this job, specified at job creation. - // In US regions, you can choose between 50 TB and 80 TB Snowballs. All other - // regions use 80 TB capacity Snowballs. - SnowballCapacityPreference *string `type:"string" enum:"Capacity"` + // HTTP requests are stateless. If you use the automatically generated NextToken + // value in your next ListClusterJobsResult call, your list of returned jobs + // will start from this point in the array. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s JobMetadata) String() string { +func (s ListClusterJobsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s JobMetadata) GoString() string { +func (s ListClusterJobsOutput) GoString() string { return s.String() } -// Contains an array of S3Resource objects. Each S3Resource object represents -// an Amazon S3 bucket that your transferred data will be exported from or imported -// into. -type JobResource struct { +// SetJobListEntries sets the JobListEntries field's value. +func (s *ListClusterJobsOutput) SetJobListEntries(v []*JobListEntry) *ListClusterJobsOutput { + s.JobListEntries = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListClusterJobsOutput) SetNextToken(v string) *ListClusterJobsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/ListClustersRequest +type ListClustersInput struct { _ struct{} `type:"structure"` - // An array of S3Resource objects. - S3Resources []*S3Resource `type:"list"` + // The number of ClusterListEntry objects to return. + MaxResults *int64 `type:"integer"` + + // HTTP requests are stateless. To identify what object comes "next" in the + // list of ClusterListEntry objects, you have the option of specifying NextToken + // as the starting point for your returned list. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s JobResource) String() string { +func (s ListClustersInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s JobResource) GoString() string { +func (s ListClustersInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *JobResource) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "JobResource"} - if s.S3Resources != nil { - for i, v := range s.S3Resources { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "S3Resources", i), err.(request.ErrInvalidParams)) - } - } +func (s *ListClustersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListClustersInput"} + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { @@ -1744,48 +3460,55 @@ func (s *JobResource) Validate() error { return nil } -// Contains a key range. For export jobs, a S3Resource object can have an optional -// KeyRange value. The length of the range is defined at job creation, and has -// either an inclusive BeginMarker, an inclusive EndMarker, or both. Ranges -// are UTF-8 binary sorted. -type KeyRange struct { +// SetMaxResults sets the MaxResults field's value. +func (s *ListClustersInput) SetMaxResults(v int64) *ListClustersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListClustersInput) SetNextToken(v string) *ListClustersInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/ListClustersResult +type ListClustersOutput struct { _ struct{} `type:"structure"` - // The key that starts an optional key range for an export job. Ranges are inclusive - // and UTF-8 binary sorted. - BeginMarker *string `min:"1" type:"string"` + // Each ClusterListEntry object contains a cluster's state, a cluster's ID, + // and other important status information. + ClusterListEntries []*ClusterListEntry `type:"list"` - // The key that ends an optional key range for an export job. Ranges are inclusive - // and UTF-8 binary sorted. - EndMarker *string `min:"1" type:"string"` + // HTTP requests are stateless. If you use the automatically generated NextToken + // value in your next ClusterListEntry call, your list of returned clusters + // will start from this point in the array. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s KeyRange) String() string { +func (s ListClustersOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s KeyRange) GoString() string { +func (s ListClustersOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *KeyRange) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "KeyRange"} - if s.BeginMarker != nil && len(*s.BeginMarker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BeginMarker", 1)) - } - if s.EndMarker != nil && len(*s.EndMarker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EndMarker", 1)) - } +// SetClusterListEntries sets the ClusterListEntries field's value. +func (s *ListClustersOutput) SetClusterListEntries(v []*ClusterListEntry) *ListClustersOutput { + s.ClusterListEntries = v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetNextToken sets the NextToken field's value. +func (s *ListClustersOutput) SetNextToken(v string) *ListClustersOutput { + s.NextToken = &v + return s } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/ListJobsRequest type ListJobsInput struct { _ struct{} `type:"structure"` @@ -1821,6 +3544,19 @@ func (s *ListJobsInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *ListJobsInput) SetMaxResults(v int64) *ListJobsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListJobsInput) SetNextToken(v string) *ListJobsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/ListJobsResult type ListJobsOutput struct { _ struct{} `type:"structure"` @@ -1844,15 +3580,28 @@ func (s ListJobsOutput) GoString() string { return s.String() } +// SetJobListEntries sets the JobListEntries field's value. +func (s *ListJobsOutput) SetJobListEntries(v []*JobListEntry) *ListJobsOutput { + s.JobListEntries = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListJobsOutput) SetNextToken(v string) *ListJobsOutput { + s.NextToken = &v + return s +} + // The Amazon Simple Notification Service (Amazon SNS) notification settings // associated with a specific job. The Notification object is returned as a // part of the response syntax of the DescribeJob action in the JobMetadata // data type. // -// When the notification settings are defined during job creation, you can -// choose to notify based on a specific set of job states using the JobStatesToNotify +// When the notification settings are defined during job creation, you can choose +// to notify based on a specific set of job states using the JobStatesToNotify // array of strings, or you can specify that you want to have Amazon SNS notifications // sent out for all job states with NotifyAll set to true. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/Notification type Notification struct { _ struct{} `type:"structure"` @@ -1866,8 +3615,8 @@ type Notification struct { // Amazon Resource Names (ARNs) for topics by using the CreateTopic (http://docs.aws.amazon.com/sns/latest/api/API_CreateTopic.html) // Amazon SNS API action. // - // Note that you can subscribe email addresses to an Amazon SNS topic through - // the AWS Management Console, or by using the Subscribe (http://docs.aws.amazon.com/sns/latest/api/API_Subscribe.html) + // You can subscribe email addresses to an Amazon SNS topic through the AWS + // Management Console, or by using the Subscribe (http://docs.aws.amazon.com/sns/latest/api/API_Subscribe.html) // AWS Simple Notification Service (SNS) API action. SnsTopicARN *string `type:"string"` } @@ -1882,11 +3631,30 @@ func (s Notification) GoString() string { return s.String() } +// SetJobStatesToNotify sets the JobStatesToNotify field's value. +func (s *Notification) SetJobStatesToNotify(v []*string) *Notification { + s.JobStatesToNotify = v + return s +} + +// SetNotifyAll sets the NotifyAll field's value. +func (s *Notification) SetNotifyAll(v bool) *Notification { + s.NotifyAll = &v + return s +} + +// SetSnsTopicARN sets the SnsTopicARN field's value. +func (s *Notification) SetSnsTopicARN(v string) *Notification { + s.SnsTopicARN = &v + return s +} + // Each S3Resource object represents an Amazon S3 bucket that your transferred // data will be exported from or imported into. For export jobs, this object // can have an optional KeyRange value. The length of the range is defined at // job creation, and has either an inclusive BeginMarker, an inclusive EndMarker, // or both. Ranges are UTF-8 binary sorted. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/S3Resource type S3Resource struct { _ struct{} `type:"structure"` @@ -1925,7 +3693,20 @@ func (s *S3Resource) Validate() error { return nil } +// SetBucketArn sets the BucketArn field's value. +func (s *S3Resource) SetBucketArn(v string) *S3Resource { + s.BucketArn = &v + return s +} + +// SetKeyRange sets the KeyRange field's value. +func (s *S3Resource) SetKeyRange(v *KeyRange) *S3Resource { + s.KeyRange = v + return s +} + // The Status and TrackingNumber information for an inbound or outbound shipment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/Shipment type Shipment struct { _ struct{} `type:"structure"` @@ -1951,8 +3732,21 @@ func (s Shipment) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *Shipment) SetStatus(v string) *Shipment { + s.Status = &v + return s +} + +// SetTrackingNumber sets the TrackingNumber field's value. +func (s *Shipment) SetTrackingNumber(v string) *Shipment { + s.TrackingNumber = &v + return s +} + // A job's shipping information, including inbound and outbound tracking numbers // and shipping speed options. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/ShippingDetails type ShippingDetails struct { _ struct{} `type:"structure"` @@ -1964,23 +3758,23 @@ type ShippingDetails struct { // for a particular job. OutboundShipment *Shipment `type:"structure"` - // The shipping speed for a particular job. Note that this speed does not dictate - // how soon you'll get the Snowball from the job's creation date. This speed - // represents how quickly it moves to its destination while in transit. Regional - // shipping speeds are as follows: + // The shipping speed for a particular job. This speed doesn't dictate how soon + // you'll get the Snowball from the job's creation date. This speed represents + // how quickly it moves to its destination while in transit. Regional shipping + // speeds are as follows: // - // In Australia, you have access to express shipping. Typically, Snowballs - // shipped express are delivered in about a day. + // * In Australia, you have access to express shipping. Typically, Snowballs + // shipped express are delivered in about a day. // - // In the European Union (EU), you have access to express shipping. Typically, - // Snowballs shipped express are delivered in about a day. In addition, most - // countries in the EU have access to standard shipping, which typically takes - // less than a week, one way. + // * In the European Union (EU), you have access to express shipping. Typically, + // Snowballs shipped express are delivered in about a day. In addition, most + // countries in the EU have access to standard shipping, which typically + // takes less than a week, one way. // - // In India, Snowballs are delivered in one to seven days. + // * In India, Snowballs are delivered in one to seven days. // - // In the United States of America (US), you have access to one-day shipping - // and two-day shipping. + // * In the United States of America (US), you have access to one-day shipping + // and two-day shipping. ShippingOption *string `type:"string" enum:"ShippingOption"` } @@ -1994,6 +3788,150 @@ func (s ShippingDetails) GoString() string { return s.String() } +// SetInboundShipment sets the InboundShipment field's value. +func (s *ShippingDetails) SetInboundShipment(v *Shipment) *ShippingDetails { + s.InboundShipment = v + return s +} + +// SetOutboundShipment sets the OutboundShipment field's value. +func (s *ShippingDetails) SetOutboundShipment(v *Shipment) *ShippingDetails { + s.OutboundShipment = v + return s +} + +// SetShippingOption sets the ShippingOption field's value. +func (s *ShippingDetails) SetShippingOption(v string) *ShippingDetails { + s.ShippingOption = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/UpdateClusterRequest +type UpdateClusterInput struct { + _ struct{} `type:"structure"` + + // The ID of the updated Address object. + AddressId *string `min:"40" type:"string"` + + // The cluster ID of the cluster that you want to update, for example CID123e4567-e89b-12d3-a456-426655440000. + // + // ClusterId is a required field + ClusterId *string `min:"39" type:"string" required:"true"` + + // The updated description of this cluster. + Description *string `min:"1" type:"string"` + + // The new or updated Notification object. + Notification *Notification `type:"structure"` + + // The updated arrays of JobResource objects that can include updated S3Resource + // objects or LambdaResource objects. + Resources *JobResource `type:"structure"` + + // The new role Amazon Resource Name (ARN) that you want to associate with this + // cluster. To create a role ARN, use the CreateRole (http://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html) + // API action in AWS Identity and Access Management (IAM). + RoleARN *string `type:"string"` + + // The updated shipping option value of this cluster's ShippingDetails object. + ShippingOption *string `type:"string" enum:"ShippingOption"` +} + +// String returns the string representation +func (s UpdateClusterInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateClusterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateClusterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateClusterInput"} + if s.AddressId != nil && len(*s.AddressId) < 40 { + invalidParams.Add(request.NewErrParamMinLen("AddressId", 40)) + } + if s.ClusterId == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterId")) + } + if s.ClusterId != nil && len(*s.ClusterId) < 39 { + invalidParams.Add(request.NewErrParamMinLen("ClusterId", 39)) + } + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + } + if s.Resources != nil { + if err := s.Resources.Validate(); err != nil { + invalidParams.AddNested("Resources", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAddressId sets the AddressId field's value. +func (s *UpdateClusterInput) SetAddressId(v string) *UpdateClusterInput { + s.AddressId = &v + return s +} + +// SetClusterId sets the ClusterId field's value. +func (s *UpdateClusterInput) SetClusterId(v string) *UpdateClusterInput { + s.ClusterId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateClusterInput) SetDescription(v string) *UpdateClusterInput { + s.Description = &v + return s +} + +// SetNotification sets the Notification field's value. +func (s *UpdateClusterInput) SetNotification(v *Notification) *UpdateClusterInput { + s.Notification = v + return s +} + +// SetResources sets the Resources field's value. +func (s *UpdateClusterInput) SetResources(v *JobResource) *UpdateClusterInput { + s.Resources = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *UpdateClusterInput) SetRoleARN(v string) *UpdateClusterInput { + s.RoleARN = &v + return s +} + +// SetShippingOption sets the ShippingOption field's value. +func (s *UpdateClusterInput) SetShippingOption(v string) *UpdateClusterInput { + s.ShippingOption = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/UpdateClusterResult +type UpdateClusterOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateClusterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateClusterOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/UpdateJobRequest type UpdateJobInput struct { _ struct{} `type:"structure"` @@ -2024,7 +3962,7 @@ type UpdateJobInput struct { ShippingOption *string `type:"string" enum:"ShippingOption"` // The updated SnowballCapacityPreference of this job's JobMetadata object. - // Note that the 50 TB Snowballs are only available in the US regions. + // The 50 TB Snowballs are only available in the US regions. SnowballCapacityPreference *string `type:"string" enum:"Capacity"` } @@ -2065,6 +4003,55 @@ func (s *UpdateJobInput) Validate() error { return nil } +// SetAddressId sets the AddressId field's value. +func (s *UpdateJobInput) SetAddressId(v string) *UpdateJobInput { + s.AddressId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateJobInput) SetDescription(v string) *UpdateJobInput { + s.Description = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *UpdateJobInput) SetJobId(v string) *UpdateJobInput { + s.JobId = &v + return s +} + +// SetNotification sets the Notification field's value. +func (s *UpdateJobInput) SetNotification(v *Notification) *UpdateJobInput { + s.Notification = v + return s +} + +// SetResources sets the Resources field's value. +func (s *UpdateJobInput) SetResources(v *JobResource) *UpdateJobInput { + s.Resources = v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *UpdateJobInput) SetRoleARN(v string) *UpdateJobInput { + s.RoleARN = &v + return s +} + +// SetShippingOption sets the ShippingOption field's value. +func (s *UpdateJobInput) SetShippingOption(v string) *UpdateJobInput { + s.ShippingOption = &v + return s +} + +// SetSnowballCapacityPreference sets the SnowballCapacityPreference field's value. +func (s *UpdateJobInput) SetSnowballCapacityPreference(v string) *UpdateJobInput { + s.SnowballCapacityPreference = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/UpdateJobResult type UpdateJobOutput struct { _ struct{} `type:"structure"` } @@ -2086,10 +4073,30 @@ const ( // CapacityT80 is a Capacity enum value CapacityT80 = "T80" + // CapacityT100 is a Capacity enum value + CapacityT100 = "T100" + // CapacityNoPreference is a Capacity enum value CapacityNoPreference = "NoPreference" ) +const ( + // ClusterStateAwaitingQuorum is a ClusterState enum value + ClusterStateAwaitingQuorum = "AwaitingQuorum" + + // ClusterStatePending is a ClusterState enum value + ClusterStatePending = "Pending" + + // ClusterStateInUse is a ClusterState enum value + ClusterStateInUse = "InUse" + + // ClusterStateComplete is a ClusterState enum value + ClusterStateComplete = "Complete" + + // ClusterStateCancelled is a ClusterState enum value + ClusterStateCancelled = "Cancelled" +) + const ( // JobStateNew is a JobState enum value JobStateNew = "New" @@ -2134,6 +4141,9 @@ const ( // JobTypeExport is a JobType enum value JobTypeExport = "EXPORT" + + // JobTypeLocalUse is a JobType enum value + JobTypeLocalUse = "LOCAL_USE" ) const ( @@ -2149,3 +4159,11 @@ const ( // ShippingOptionStandard is a ShippingOption enum value ShippingOptionStandard = "STANDARD" ) + +const ( + // TypeStandard is a Type enum value + TypeStandard = "STANDARD" + + // TypeEdge is a Type enum value + TypeEdge = "EDGE" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/snowball/errors.go b/vendor/github.com/aws/aws-sdk-go/service/snowball/errors.go new file mode 100644 index 000000000..a26b8316a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/snowball/errors.go @@ -0,0 +1,59 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package snowball + +const ( + + // ErrCodeClusterLimitExceededException for service response error code + // "ClusterLimitExceededException". + // + // Job creation failed. Currently, clusters support five nodes. If you have + // less than five nodes for your cluster and you have more nodes to create for + // this cluster, try again and create jobs until your cluster has exactly five + // notes. + ErrCodeClusterLimitExceededException = "ClusterLimitExceededException" + + // ErrCodeInvalidAddressException for service response error code + // "InvalidAddressException". + // + // The address provided was invalid. Check the address with your region's carrier, + // and try again. + ErrCodeInvalidAddressException = "InvalidAddressException" + + // ErrCodeInvalidInputCombinationException for service response error code + // "InvalidInputCombinationException". + // + // Job or cluster creation failed. One ore more inputs were invalid. Confirm + // that the CreateClusterRequest$SnowballType value supports your CreateJobRequest$JobType, + // and try again. + ErrCodeInvalidInputCombinationException = "InvalidInputCombinationException" + + // ErrCodeInvalidJobStateException for service response error code + // "InvalidJobStateException". + // + // The action can't be performed because the job's current state doesn't allow + // that action to be performed. + ErrCodeInvalidJobStateException = "InvalidJobStateException" + + // ErrCodeInvalidResourceException for service response error code + // "InvalidResourceException". + // + // The specified resource can't be found. Check the information you provided + // in your last request, and try again. + ErrCodeInvalidResourceException = "InvalidResourceException" + + // ErrCodeKMSRequestFailedException for service response error code + // "KMSRequestFailedException". + // + // The provided AWS Key Management Service key lacks the permissions to perform + // the specified CreateJob or UpdateJob action. + ErrCodeKMSRequestFailedException = "KMSRequestFailedException" + + // ErrCodeUnsupportedAddressException for service response error code + // "UnsupportedAddressException". + // + // The address is either outside the serviceable area for your region, or an + // error occurred. Check the address with your region's carrier and try again. + // If the issue persists, contact AWS Support. + ErrCodeUnsupportedAddressException = "UnsupportedAddressException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/snowball/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/snowball/examples_test.go index cf423ebd2..146ad066b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/snowball/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/snowball/examples_test.go @@ -15,13 +15,30 @@ import ( var _ time.Duration var _ bytes.Buffer -func ExampleSnowball_CancelJob() { - sess, err := session.NewSession() +func ExampleSnowball_CancelCluster() { + sess := session.Must(session.NewSession()) + + svc := snowball.New(sess) + + params := &snowball.CancelClusterInput{ + ClusterId: aws.String("ClusterId"), // Required + } + resp, err := svc.CancelCluster(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSnowball_CancelJob() { + sess := session.Must(session.NewSession()) + svc := snowball.New(sess) params := &snowball.CancelJobInput{ @@ -41,11 +58,7 @@ func ExampleSnowball_CancelJob() { } func ExampleSnowball_CreateAddress() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) @@ -79,19 +92,27 @@ func ExampleSnowball_CreateAddress() { fmt.Println(resp) } -func ExampleSnowball_CreateJob() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } +func ExampleSnowball_CreateCluster() { + sess := session.Must(session.NewSession()) svc := snowball.New(sess) - params := &snowball.CreateJobInput{ + params := &snowball.CreateClusterInput{ AddressId: aws.String("AddressId"), // Required JobType: aws.String("JobType"), // Required Resources: &snowball.JobResource{ // Required + LambdaResources: []*snowball.LambdaResource{ + { // Required + EventTriggers: []*snowball.EventTriggerDefinition{ + { // Required + EventResourceARN: aws.String("ResourceARN"), + }, + // More values... + }, + LambdaArn: aws.String("ResourceARN"), + }, + // More values... + }, S3Resources: []*snowball.S3Resource{ { // Required BucketArn: aws.String("ResourceARN"), @@ -115,9 +136,9 @@ func ExampleSnowball_CreateJob() { NotifyAll: aws.Bool(true), SnsTopicARN: aws.String("SnsTopicARN"), }, - SnowballCapacityPreference: aws.String("Capacity"), + SnowballType: aws.String("Type"), } - resp, err := svc.CreateJob(params) + resp, err := svc.CreateCluster(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -130,13 +151,70 @@ func ExampleSnowball_CreateJob() { fmt.Println(resp) } -func ExampleSnowball_DescribeAddress() { - sess, err := session.NewSession() +func ExampleSnowball_CreateJob() { + sess := session.Must(session.NewSession()) + + svc := snowball.New(sess) + + params := &snowball.CreateJobInput{ + AddressId: aws.String("AddressId"), + ClusterId: aws.String("ClusterId"), + Description: aws.String("String"), + JobType: aws.String("JobType"), + KmsKeyARN: aws.String("KmsKeyARN"), + Notification: &snowball.Notification{ + JobStatesToNotify: []*string{ + aws.String("JobState"), // Required + // More values... + }, + NotifyAll: aws.Bool(true), + SnsTopicARN: aws.String("SnsTopicARN"), + }, + Resources: &snowball.JobResource{ + LambdaResources: []*snowball.LambdaResource{ + { // Required + EventTriggers: []*snowball.EventTriggerDefinition{ + { // Required + EventResourceARN: aws.String("ResourceARN"), + }, + // More values... + }, + LambdaArn: aws.String("ResourceARN"), + }, + // More values... + }, + S3Resources: []*snowball.S3Resource{ + { // Required + BucketArn: aws.String("ResourceARN"), + KeyRange: &snowball.KeyRange{ + BeginMarker: aws.String("String"), + EndMarker: aws.String("String"), + }, + }, + // More values... + }, + }, + RoleARN: aws.String("RoleARN"), + ShippingOption: aws.String("ShippingOption"), + SnowballCapacityPreference: aws.String("Capacity"), + SnowballType: aws.String("Type"), + } + resp, err := svc.CreateJob(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSnowball_DescribeAddress() { + sess := session.Must(session.NewSession()) + svc := snowball.New(sess) params := &snowball.DescribeAddressInput{ @@ -156,11 +234,7 @@ func ExampleSnowball_DescribeAddress() { } func ExampleSnowball_DescribeAddresses() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) @@ -181,13 +255,30 @@ func ExampleSnowball_DescribeAddresses() { fmt.Println(resp) } -func ExampleSnowball_DescribeJob() { - sess, err := session.NewSession() +func ExampleSnowball_DescribeCluster() { + sess := session.Must(session.NewSession()) + + svc := snowball.New(sess) + + params := &snowball.DescribeClusterInput{ + ClusterId: aws.String("ClusterId"), // Required + } + resp, err := svc.DescribeCluster(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSnowball_DescribeJob() { + sess := session.Must(session.NewSession()) + svc := snowball.New(sess) params := &snowball.DescribeJobInput{ @@ -207,11 +298,7 @@ func ExampleSnowball_DescribeJob() { } func ExampleSnowball_GetJobManifest() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) @@ -232,11 +319,7 @@ func ExampleSnowball_GetJobManifest() { } func ExampleSnowball_GetJobUnlockCode() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := snowball.New(sess) @@ -257,16 +340,35 @@ func ExampleSnowball_GetJobUnlockCode() { } func ExampleSnowball_GetSnowballUsage() { - sess, err := session.NewSession() + sess := session.Must(session.NewSession()) + + svc := snowball.New(sess) + + var params *snowball.GetSnowballUsageInput + resp, err := svc.GetSnowballUsage(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSnowball_ListClusterJobs() { + sess := session.Must(session.NewSession()) + svc := snowball.New(sess) - var params *snowball.GetSnowballUsageInput - resp, err := svc.GetSnowballUsage(params) + params := &snowball.ListClusterJobsInput{ + ClusterId: aws.String("ClusterId"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("String"), + } + resp, err := svc.ListClusterJobs(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -279,13 +381,31 @@ func ExampleSnowball_GetSnowballUsage() { fmt.Println(resp) } -func ExampleSnowball_ListJobs() { - sess, err := session.NewSession() +func ExampleSnowball_ListClusters() { + sess := session.Must(session.NewSession()) + + svc := snowball.New(sess) + + params := &snowball.ListClustersInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("String"), + } + resp, err := svc.ListClusters(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSnowball_ListJobs() { + sess := session.Must(session.NewSession()) + svc := snowball.New(sess) params := &snowball.ListJobsInput{ @@ -305,13 +425,66 @@ func ExampleSnowball_ListJobs() { fmt.Println(resp) } -func ExampleSnowball_UpdateJob() { - sess, err := session.NewSession() +func ExampleSnowball_UpdateCluster() { + sess := session.Must(session.NewSession()) + + svc := snowball.New(sess) + + params := &snowball.UpdateClusterInput{ + ClusterId: aws.String("ClusterId"), // Required + AddressId: aws.String("AddressId"), + Description: aws.String("String"), + Notification: &snowball.Notification{ + JobStatesToNotify: []*string{ + aws.String("JobState"), // Required + // More values... + }, + NotifyAll: aws.Bool(true), + SnsTopicARN: aws.String("SnsTopicARN"), + }, + Resources: &snowball.JobResource{ + LambdaResources: []*snowball.LambdaResource{ + { // Required + EventTriggers: []*snowball.EventTriggerDefinition{ + { // Required + EventResourceARN: aws.String("ResourceARN"), + }, + // More values... + }, + LambdaArn: aws.String("ResourceARN"), + }, + // More values... + }, + S3Resources: []*snowball.S3Resource{ + { // Required + BucketArn: aws.String("ResourceARN"), + KeyRange: &snowball.KeyRange{ + BeginMarker: aws.String("String"), + EndMarker: aws.String("String"), + }, + }, + // More values... + }, + }, + RoleARN: aws.String("RoleARN"), + ShippingOption: aws.String("ShippingOption"), + } + resp, err := svc.UpdateCluster(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSnowball_UpdateJob() { + sess := session.Must(session.NewSession()) + svc := snowball.New(sess) params := &snowball.UpdateJobInput{ @@ -327,6 +500,18 @@ func ExampleSnowball_UpdateJob() { SnsTopicARN: aws.String("SnsTopicARN"), }, Resources: &snowball.JobResource{ + LambdaResources: []*snowball.LambdaResource{ + { // Required + EventTriggers: []*snowball.EventTriggerDefinition{ + { // Required + EventResourceARN: aws.String("ResourceARN"), + }, + // More values... + }, + LambdaArn: aws.String("ResourceARN"), + }, + // More values... + }, S3Resources: []*snowball.S3Resource{ { // Required BucketArn: aws.String("ResourceARN"), diff --git a/vendor/github.com/aws/aws-sdk-go/service/snowball/service.go b/vendor/github.com/aws/aws-sdk-go/service/snowball/service.go index 6fead1c9b..1b07c739b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/snowball/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/snowball/service.go @@ -11,16 +11,17 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) -// AWS Import/Export Snowball is a petabyte-scale data transport solution that -// uses secure appliances to transfer large amounts of data between your on-premises -// data centers and Amazon Simple Storage Service (Amazon S3). The Snowball -// commands described here provide access to the same functionality that is -// available in the AWS Snowball Management Console, which enables you to create -// and manage jobs for Snowball. To transfer data locally with a Snowball appliance, -// you'll need to use the Snowball client or the Amazon S3 API adapter for Snowball. +// AWS Snowball is a petabyte-scale data transport solution that uses secure +// appliances to transfer large amounts of data between your on-premises data +// centers and Amazon Simple Storage Service (Amazon S3). The Snowball commands +// described here provide access to the same functionality that is available +// in the AWS Snowball Management Console, which enables you to create and manage +// jobs for Snowball. To transfer data locally with a Snowball appliance, you'll +// need to use the Snowball client or the Amazon S3 API adapter for Snowball. // For more information, see the User Guide (http://docs.aws.amazon.com/AWSImportExport/latest/ug/api-reference.html). -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30 type Snowball struct { *client.Client } @@ -31,8 +32,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "snowball" +// Service information constants +const ( + ServiceName = "snowball" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the Snowball client with a session. // If additional configuration is needed for the client instance use the optional @@ -45,17 +49,18 @@ const ServiceName = "snowball" // // Create a Snowball client with additional configuration // svc := snowball.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Snowball { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *Snowball { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Snowball { svc := &Snowball{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2016-06-30", diff --git a/vendor/github.com/aws/aws-sdk-go/service/snowball/snowballiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/snowball/snowballiface/interface.go index 18f14a8c9..5d81c0498 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/snowball/snowballiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/snowball/snowballiface/interface.go @@ -25,7 +25,7 @@ import ( // // myFunc uses an SDK service client to make a request to // // Amazon Import/Export Snowball. // func myFunc(svc snowballiface.SnowballAPI) bool { -// // Make svc.CancelJob request +// // Make svc.CancelCluster request // } // // func main() { @@ -41,11 +41,11 @@ import ( // type mockSnowballClient struct { // snowballiface.SnowballAPI // } -// func (m *mockSnowballClient) CancelJob(input *snowball.CancelJobInput) (*snowball.CancelJobOutput, error) { +// func (m *mockSnowballClient) CancelCluster(input *snowball.CancelClusterInput) (*snowball.CancelClusterOutput, error) { // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockSnowballClient{} // @@ -59,6 +59,10 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type SnowballAPI interface { + CancelClusterRequest(*snowball.CancelClusterInput) (*request.Request, *snowball.CancelClusterOutput) + + CancelCluster(*snowball.CancelClusterInput) (*snowball.CancelClusterOutput, error) + CancelJobRequest(*snowball.CancelJobInput) (*request.Request, *snowball.CancelJobOutput) CancelJob(*snowball.CancelJobInput) (*snowball.CancelJobOutput, error) @@ -67,6 +71,10 @@ type SnowballAPI interface { CreateAddress(*snowball.CreateAddressInput) (*snowball.CreateAddressOutput, error) + CreateClusterRequest(*snowball.CreateClusterInput) (*request.Request, *snowball.CreateClusterOutput) + + CreateCluster(*snowball.CreateClusterInput) (*snowball.CreateClusterOutput, error) + CreateJobRequest(*snowball.CreateJobInput) (*request.Request, *snowball.CreateJobOutput) CreateJob(*snowball.CreateJobInput) (*snowball.CreateJobOutput, error) @@ -81,6 +89,10 @@ type SnowballAPI interface { DescribeAddressesPages(*snowball.DescribeAddressesInput, func(*snowball.DescribeAddressesOutput, bool) bool) error + DescribeClusterRequest(*snowball.DescribeClusterInput) (*request.Request, *snowball.DescribeClusterOutput) + + DescribeCluster(*snowball.DescribeClusterInput) (*snowball.DescribeClusterOutput, error) + DescribeJobRequest(*snowball.DescribeJobInput) (*request.Request, *snowball.DescribeJobOutput) DescribeJob(*snowball.DescribeJobInput) (*snowball.DescribeJobOutput, error) @@ -97,12 +109,24 @@ type SnowballAPI interface { GetSnowballUsage(*snowball.GetSnowballUsageInput) (*snowball.GetSnowballUsageOutput, error) + ListClusterJobsRequest(*snowball.ListClusterJobsInput) (*request.Request, *snowball.ListClusterJobsOutput) + + ListClusterJobs(*snowball.ListClusterJobsInput) (*snowball.ListClusterJobsOutput, error) + + ListClustersRequest(*snowball.ListClustersInput) (*request.Request, *snowball.ListClustersOutput) + + ListClusters(*snowball.ListClustersInput) (*snowball.ListClustersOutput, error) + ListJobsRequest(*snowball.ListJobsInput) (*request.Request, *snowball.ListJobsOutput) ListJobs(*snowball.ListJobsInput) (*snowball.ListJobsOutput, error) ListJobsPages(*snowball.ListJobsInput, func(*snowball.ListJobsOutput, bool) bool) error + UpdateClusterRequest(*snowball.UpdateClusterInput) (*request.Request, *snowball.UpdateClusterOutput) + + UpdateCluster(*snowball.UpdateClusterInput) (*snowball.UpdateClusterOutput, error) + UpdateJobRequest(*snowball.UpdateJobInput) (*request.Request, *snowball.UpdateJobOutput) UpdateJob(*snowball.UpdateJobInput) (*snowball.UpdateJobOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sns/api.go b/vendor/github.com/aws/aws-sdk-go/service/sns/api.go index 8b2592f1b..ee7f647e9 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sns/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sns/api.go @@ -38,6 +38,7 @@ const opAddPermission = "AddPermission" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/AddPermission func (c *SNS) AddPermissionRequest(input *AddPermissionInput) (req *request.Request, output *AddPermissionOutput) { op := &request.Operation{ Name: opAddPermission, @@ -49,11 +50,10 @@ func (c *SNS) AddPermissionRequest(input *AddPermissionInput) (req *request.Requ input = &AddPermissionInput{} } + output = &AddPermissionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AddPermissionOutput{} - req.Data = output return } @@ -70,18 +70,19 @@ func (c *SNS) AddPermissionRequest(input *AddPermissionInput) (req *request.Requ // API operation AddPermission for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/AddPermission func (c *SNS) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, error) { req, out := c.AddPermissionRequest(input) err := req.Send() @@ -114,6 +115,7 @@ const opCheckIfPhoneNumberIsOptedOut = "CheckIfPhoneNumberIsOptedOut" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CheckIfPhoneNumberIsOptedOut func (c *SNS) CheckIfPhoneNumberIsOptedOutRequest(input *CheckIfPhoneNumberIsOptedOutInput) (req *request.Request, output *CheckIfPhoneNumberIsOptedOutOutput) { op := &request.Operation{ Name: opCheckIfPhoneNumberIsOptedOut, @@ -125,9 +127,8 @@ func (c *SNS) CheckIfPhoneNumberIsOptedOutRequest(input *CheckIfPhoneNumberIsOpt input = &CheckIfPhoneNumberIsOptedOutInput{} } - req = c.newRequest(op, input, output) output = &CheckIfPhoneNumberIsOptedOutOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -148,19 +149,20 @@ func (c *SNS) CheckIfPhoneNumberIsOptedOutRequest(input *CheckIfPhoneNumberIsOpt // API operation CheckIfPhoneNumberIsOptedOut for usage and error information. // // Returned Error Codes: -// * Throttled +// * ErrCodeThrottledException "Throttled" // Indicates that the rate at which requests have been submitted for this action // exceeds the limit for your account. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CheckIfPhoneNumberIsOptedOut func (c *SNS) CheckIfPhoneNumberIsOptedOut(input *CheckIfPhoneNumberIsOptedOutInput) (*CheckIfPhoneNumberIsOptedOutOutput, error) { req, out := c.CheckIfPhoneNumberIsOptedOutRequest(input) err := req.Send() @@ -193,6 +195,7 @@ const opConfirmSubscription = "ConfirmSubscription" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ConfirmSubscription func (c *SNS) ConfirmSubscriptionRequest(input *ConfirmSubscriptionInput) (req *request.Request, output *ConfirmSubscriptionOutput) { op := &request.Operation{ Name: opConfirmSubscription, @@ -204,9 +207,8 @@ func (c *SNS) ConfirmSubscriptionRequest(input *ConfirmSubscriptionInput) (req * input = &ConfirmSubscriptionInput{} } - req = c.newRequest(op, input, output) output = &ConfirmSubscriptionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -226,21 +228,22 @@ func (c *SNS) ConfirmSubscriptionRequest(input *ConfirmSubscriptionInput) (req * // API operation ConfirmSubscription for usage and error information. // // Returned Error Codes: -// * SubscriptionLimitExceeded +// * ErrCodeSubscriptionLimitExceededException "SubscriptionLimitExceeded" // Indicates that the customer already owns the maximum allowed number of subscriptions. // -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ConfirmSubscription func (c *SNS) ConfirmSubscription(input *ConfirmSubscriptionInput) (*ConfirmSubscriptionOutput, error) { req, out := c.ConfirmSubscriptionRequest(input) err := req.Send() @@ -273,6 +276,7 @@ const opCreatePlatformApplication = "CreatePlatformApplication" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CreatePlatformApplication func (c *SNS) CreatePlatformApplicationRequest(input *CreatePlatformApplicationInput) (req *request.Request, output *CreatePlatformApplicationOutput) { op := &request.Operation{ Name: opCreatePlatformApplication, @@ -284,9 +288,8 @@ func (c *SNS) CreatePlatformApplicationRequest(input *CreatePlatformApplicationI input = &CreatePlatformApplicationInput{} } - req = c.newRequest(op, input, output) output = &CreatePlatformApplicationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -327,15 +330,16 @@ func (c *SNS) CreatePlatformApplicationRequest(input *CreatePlatformApplicationI // API operation CreatePlatformApplication for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CreatePlatformApplication func (c *SNS) CreatePlatformApplication(input *CreatePlatformApplicationInput) (*CreatePlatformApplicationOutput, error) { req, out := c.CreatePlatformApplicationRequest(input) err := req.Send() @@ -368,6 +372,7 @@ const opCreatePlatformEndpoint = "CreatePlatformEndpoint" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CreatePlatformEndpoint func (c *SNS) CreatePlatformEndpointRequest(input *CreatePlatformEndpointInput) (req *request.Request, output *CreatePlatformEndpointOutput) { op := &request.Operation{ Name: opCreatePlatformEndpoint, @@ -379,9 +384,8 @@ func (c *SNS) CreatePlatformEndpointRequest(input *CreatePlatformEndpointInput) input = &CreatePlatformEndpointInput{} } - req = c.newRequest(op, input, output) output = &CreatePlatformEndpointOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -410,18 +414,19 @@ func (c *SNS) CreatePlatformEndpointRequest(input *CreatePlatformEndpointInput) // API operation CreatePlatformEndpoint for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CreatePlatformEndpoint func (c *SNS) CreatePlatformEndpoint(input *CreatePlatformEndpointInput) (*CreatePlatformEndpointOutput, error) { req, out := c.CreatePlatformEndpointRequest(input) err := req.Send() @@ -454,6 +459,7 @@ const opCreateTopic = "CreateTopic" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CreateTopic func (c *SNS) CreateTopicRequest(input *CreateTopicInput) (req *request.Request, output *CreateTopicOutput) { op := &request.Operation{ Name: opCreateTopic, @@ -465,9 +471,8 @@ func (c *SNS) CreateTopicRequest(input *CreateTopicInput) (req *request.Request, input = &CreateTopicInput{} } - req = c.newRequest(op, input, output) output = &CreateTopicOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -487,18 +492,19 @@ func (c *SNS) CreateTopicRequest(input *CreateTopicInput) (req *request.Request, // API operation CreateTopic for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * TopicLimitExceeded +// * ErrCodeTopicLimitExceededException "TopicLimitExceeded" // Indicates that the customer already owns the maximum allowed number of topics. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CreateTopic func (c *SNS) CreateTopic(input *CreateTopicInput) (*CreateTopicOutput, error) { req, out := c.CreateTopicRequest(input) err := req.Send() @@ -531,6 +537,7 @@ const opDeleteEndpoint = "DeleteEndpoint" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/DeleteEndpoint func (c *SNS) DeleteEndpointRequest(input *DeleteEndpointInput) (req *request.Request, output *DeleteEndpointOutput) { op := &request.Operation{ Name: opDeleteEndpoint, @@ -542,11 +549,10 @@ func (c *SNS) DeleteEndpointRequest(input *DeleteEndpointInput) (req *request.Re input = &DeleteEndpointInput{} } + output = &DeleteEndpointOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteEndpointOutput{} - req.Data = output return } @@ -567,15 +573,16 @@ func (c *SNS) DeleteEndpointRequest(input *DeleteEndpointInput) (req *request.Re // API operation DeleteEndpoint for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/DeleteEndpoint func (c *SNS) DeleteEndpoint(input *DeleteEndpointInput) (*DeleteEndpointOutput, error) { req, out := c.DeleteEndpointRequest(input) err := req.Send() @@ -608,6 +615,7 @@ const opDeletePlatformApplication = "DeletePlatformApplication" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/DeletePlatformApplication func (c *SNS) DeletePlatformApplicationRequest(input *DeletePlatformApplicationInput) (req *request.Request, output *DeletePlatformApplicationOutput) { op := &request.Operation{ Name: opDeletePlatformApplication, @@ -619,11 +627,10 @@ func (c *SNS) DeletePlatformApplicationRequest(input *DeletePlatformApplicationI input = &DeletePlatformApplicationInput{} } + output = &DeletePlatformApplicationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeletePlatformApplicationOutput{} - req.Data = output return } @@ -641,15 +648,16 @@ func (c *SNS) DeletePlatformApplicationRequest(input *DeletePlatformApplicationI // API operation DeletePlatformApplication for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/DeletePlatformApplication func (c *SNS) DeletePlatformApplication(input *DeletePlatformApplicationInput) (*DeletePlatformApplicationOutput, error) { req, out := c.DeletePlatformApplicationRequest(input) err := req.Send() @@ -682,6 +690,7 @@ const opDeleteTopic = "DeleteTopic" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/DeleteTopic func (c *SNS) DeleteTopicRequest(input *DeleteTopicInput) (req *request.Request, output *DeleteTopicOutput) { op := &request.Operation{ Name: opDeleteTopic, @@ -693,11 +702,10 @@ func (c *SNS) DeleteTopicRequest(input *DeleteTopicInput) (req *request.Request, input = &DeleteTopicInput{} } + output = &DeleteTopicOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteTopicOutput{} - req.Data = output return } @@ -716,18 +724,19 @@ func (c *SNS) DeleteTopicRequest(input *DeleteTopicInput) (req *request.Request, // API operation DeleteTopic for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/DeleteTopic func (c *SNS) DeleteTopic(input *DeleteTopicInput) (*DeleteTopicOutput, error) { req, out := c.DeleteTopicRequest(input) err := req.Send() @@ -760,6 +769,7 @@ const opGetEndpointAttributes = "GetEndpointAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetEndpointAttributes func (c *SNS) GetEndpointAttributesRequest(input *GetEndpointAttributesInput) (req *request.Request, output *GetEndpointAttributesOutput) { op := &request.Operation{ Name: opGetEndpointAttributes, @@ -771,9 +781,8 @@ func (c *SNS) GetEndpointAttributesRequest(input *GetEndpointAttributesInput) (r input = &GetEndpointAttributesInput{} } - req = c.newRequest(op, input, output) output = &GetEndpointAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -791,18 +800,19 @@ func (c *SNS) GetEndpointAttributesRequest(input *GetEndpointAttributesInput) (r // API operation GetEndpointAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetEndpointAttributes func (c *SNS) GetEndpointAttributes(input *GetEndpointAttributesInput) (*GetEndpointAttributesOutput, error) { req, out := c.GetEndpointAttributesRequest(input) err := req.Send() @@ -835,6 +845,7 @@ const opGetPlatformApplicationAttributes = "GetPlatformApplicationAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetPlatformApplicationAttributes func (c *SNS) GetPlatformApplicationAttributesRequest(input *GetPlatformApplicationAttributesInput) (req *request.Request, output *GetPlatformApplicationAttributesOutput) { op := &request.Operation{ Name: opGetPlatformApplicationAttributes, @@ -846,9 +857,8 @@ func (c *SNS) GetPlatformApplicationAttributesRequest(input *GetPlatformApplicat input = &GetPlatformApplicationAttributesInput{} } - req = c.newRequest(op, input, output) output = &GetPlatformApplicationAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -866,18 +876,19 @@ func (c *SNS) GetPlatformApplicationAttributesRequest(input *GetPlatformApplicat // API operation GetPlatformApplicationAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetPlatformApplicationAttributes func (c *SNS) GetPlatformApplicationAttributes(input *GetPlatformApplicationAttributesInput) (*GetPlatformApplicationAttributesOutput, error) { req, out := c.GetPlatformApplicationAttributesRequest(input) err := req.Send() @@ -910,6 +921,7 @@ const opGetSMSAttributes = "GetSMSAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetSMSAttributes func (c *SNS) GetSMSAttributesRequest(input *GetSMSAttributesInput) (req *request.Request, output *GetSMSAttributesOutput) { op := &request.Operation{ Name: opGetSMSAttributes, @@ -921,9 +933,8 @@ func (c *SNS) GetSMSAttributesRequest(input *GetSMSAttributesInput) (req *reques input = &GetSMSAttributesInput{} } - req = c.newRequest(op, input, output) output = &GetSMSAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -941,19 +952,20 @@ func (c *SNS) GetSMSAttributesRequest(input *GetSMSAttributesInput) (req *reques // API operation GetSMSAttributes for usage and error information. // // Returned Error Codes: -// * Throttled +// * ErrCodeThrottledException "Throttled" // Indicates that the rate at which requests have been submitted for this action // exceeds the limit for your account. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetSMSAttributes func (c *SNS) GetSMSAttributes(input *GetSMSAttributesInput) (*GetSMSAttributesOutput, error) { req, out := c.GetSMSAttributesRequest(input) err := req.Send() @@ -986,6 +998,7 @@ const opGetSubscriptionAttributes = "GetSubscriptionAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetSubscriptionAttributes func (c *SNS) GetSubscriptionAttributesRequest(input *GetSubscriptionAttributesInput) (req *request.Request, output *GetSubscriptionAttributesOutput) { op := &request.Operation{ Name: opGetSubscriptionAttributes, @@ -997,9 +1010,8 @@ func (c *SNS) GetSubscriptionAttributesRequest(input *GetSubscriptionAttributesI input = &GetSubscriptionAttributesInput{} } - req = c.newRequest(op, input, output) output = &GetSubscriptionAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1015,18 +1027,19 @@ func (c *SNS) GetSubscriptionAttributesRequest(input *GetSubscriptionAttributesI // API operation GetSubscriptionAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetSubscriptionAttributes func (c *SNS) GetSubscriptionAttributes(input *GetSubscriptionAttributesInput) (*GetSubscriptionAttributesOutput, error) { req, out := c.GetSubscriptionAttributesRequest(input) err := req.Send() @@ -1059,6 +1072,7 @@ const opGetTopicAttributes = "GetTopicAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetTopicAttributes func (c *SNS) GetTopicAttributesRequest(input *GetTopicAttributesInput) (req *request.Request, output *GetTopicAttributesOutput) { op := &request.Operation{ Name: opGetTopicAttributes, @@ -1070,9 +1084,8 @@ func (c *SNS) GetTopicAttributesRequest(input *GetTopicAttributesInput) (req *re input = &GetTopicAttributesInput{} } - req = c.newRequest(op, input, output) output = &GetTopicAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1089,18 +1102,19 @@ func (c *SNS) GetTopicAttributesRequest(input *GetTopicAttributesInput) (req *re // API operation GetTopicAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetTopicAttributes func (c *SNS) GetTopicAttributes(input *GetTopicAttributesInput) (*GetTopicAttributesOutput, error) { req, out := c.GetTopicAttributesRequest(input) err := req.Send() @@ -1133,6 +1147,7 @@ const opListEndpointsByPlatformApplication = "ListEndpointsByPlatformApplication // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListEndpointsByPlatformApplication func (c *SNS) ListEndpointsByPlatformApplicationRequest(input *ListEndpointsByPlatformApplicationInput) (req *request.Request, output *ListEndpointsByPlatformApplicationOutput) { op := &request.Operation{ Name: opListEndpointsByPlatformApplication, @@ -1150,9 +1165,8 @@ func (c *SNS) ListEndpointsByPlatformApplicationRequest(input *ListEndpointsByPl input = &ListEndpointsByPlatformApplicationInput{} } - req = c.newRequest(op, input, output) output = &ListEndpointsByPlatformApplicationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1175,18 +1189,19 @@ func (c *SNS) ListEndpointsByPlatformApplicationRequest(input *ListEndpointsByPl // API operation ListEndpointsByPlatformApplication for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListEndpointsByPlatformApplication func (c *SNS) ListEndpointsByPlatformApplication(input *ListEndpointsByPlatformApplicationInput) (*ListEndpointsByPlatformApplicationOutput, error) { req, out := c.ListEndpointsByPlatformApplicationRequest(input) err := req.Send() @@ -1244,6 +1259,7 @@ const opListPhoneNumbersOptedOut = "ListPhoneNumbersOptedOut" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListPhoneNumbersOptedOut func (c *SNS) ListPhoneNumbersOptedOutRequest(input *ListPhoneNumbersOptedOutInput) (req *request.Request, output *ListPhoneNumbersOptedOutOutput) { op := &request.Operation{ Name: opListPhoneNumbersOptedOut, @@ -1255,9 +1271,8 @@ func (c *SNS) ListPhoneNumbersOptedOutRequest(input *ListPhoneNumbersOptedOutInp input = &ListPhoneNumbersOptedOutInput{} } - req = c.newRequest(op, input, output) output = &ListPhoneNumbersOptedOutOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1281,19 +1296,20 @@ func (c *SNS) ListPhoneNumbersOptedOutRequest(input *ListPhoneNumbersOptedOutInp // API operation ListPhoneNumbersOptedOut for usage and error information. // // Returned Error Codes: -// * Throttled +// * ErrCodeThrottledException "Throttled" // Indicates that the rate at which requests have been submitted for this action // exceeds the limit for your account. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListPhoneNumbersOptedOut func (c *SNS) ListPhoneNumbersOptedOut(input *ListPhoneNumbersOptedOutInput) (*ListPhoneNumbersOptedOutOutput, error) { req, out := c.ListPhoneNumbersOptedOutRequest(input) err := req.Send() @@ -1326,6 +1342,7 @@ const opListPlatformApplications = "ListPlatformApplications" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListPlatformApplications func (c *SNS) ListPlatformApplicationsRequest(input *ListPlatformApplicationsInput) (req *request.Request, output *ListPlatformApplicationsOutput) { op := &request.Operation{ Name: opListPlatformApplications, @@ -1343,9 +1360,8 @@ func (c *SNS) ListPlatformApplicationsRequest(input *ListPlatformApplicationsInp input = &ListPlatformApplicationsInput{} } - req = c.newRequest(op, input, output) output = &ListPlatformApplicationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1368,15 +1384,16 @@ func (c *SNS) ListPlatformApplicationsRequest(input *ListPlatformApplicationsInp // API operation ListPlatformApplications for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListPlatformApplications func (c *SNS) ListPlatformApplications(input *ListPlatformApplicationsInput) (*ListPlatformApplicationsOutput, error) { req, out := c.ListPlatformApplicationsRequest(input) err := req.Send() @@ -1434,6 +1451,7 @@ const opListSubscriptions = "ListSubscriptions" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListSubscriptions func (c *SNS) ListSubscriptionsRequest(input *ListSubscriptionsInput) (req *request.Request, output *ListSubscriptionsOutput) { op := &request.Operation{ Name: opListSubscriptions, @@ -1451,9 +1469,8 @@ func (c *SNS) ListSubscriptionsRequest(input *ListSubscriptionsInput) (req *requ input = &ListSubscriptionsInput{} } - req = c.newRequest(op, input, output) output = &ListSubscriptionsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1472,15 +1489,16 @@ func (c *SNS) ListSubscriptionsRequest(input *ListSubscriptionsInput) (req *requ // API operation ListSubscriptions for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListSubscriptions func (c *SNS) ListSubscriptions(input *ListSubscriptionsInput) (*ListSubscriptionsOutput, error) { req, out := c.ListSubscriptionsRequest(input) err := req.Send() @@ -1538,6 +1556,7 @@ const opListSubscriptionsByTopic = "ListSubscriptionsByTopic" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListSubscriptionsByTopic func (c *SNS) ListSubscriptionsByTopicRequest(input *ListSubscriptionsByTopicInput) (req *request.Request, output *ListSubscriptionsByTopicOutput) { op := &request.Operation{ Name: opListSubscriptionsByTopic, @@ -1555,9 +1574,8 @@ func (c *SNS) ListSubscriptionsByTopicRequest(input *ListSubscriptionsByTopicInp input = &ListSubscriptionsByTopicInput{} } - req = c.newRequest(op, input, output) output = &ListSubscriptionsByTopicOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1576,18 +1594,19 @@ func (c *SNS) ListSubscriptionsByTopicRequest(input *ListSubscriptionsByTopicInp // API operation ListSubscriptionsByTopic for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListSubscriptionsByTopic func (c *SNS) ListSubscriptionsByTopic(input *ListSubscriptionsByTopicInput) (*ListSubscriptionsByTopicOutput, error) { req, out := c.ListSubscriptionsByTopicRequest(input) err := req.Send() @@ -1645,6 +1664,7 @@ const opListTopics = "ListTopics" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListTopics func (c *SNS) ListTopicsRequest(input *ListTopicsInput) (req *request.Request, output *ListTopicsOutput) { op := &request.Operation{ Name: opListTopics, @@ -1662,9 +1682,8 @@ func (c *SNS) ListTopicsRequest(input *ListTopicsInput) (req *request.Request, o input = &ListTopicsInput{} } - req = c.newRequest(op, input, output) output = &ListTopicsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1682,15 +1701,16 @@ func (c *SNS) ListTopicsRequest(input *ListTopicsInput) (req *request.Request, o // API operation ListTopics for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListTopics func (c *SNS) ListTopics(input *ListTopicsInput) (*ListTopicsOutput, error) { req, out := c.ListTopicsRequest(input) err := req.Send() @@ -1748,6 +1768,7 @@ const opOptInPhoneNumber = "OptInPhoneNumber" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/OptInPhoneNumber func (c *SNS) OptInPhoneNumberRequest(input *OptInPhoneNumberInput) (req *request.Request, output *OptInPhoneNumberOutput) { op := &request.Operation{ Name: opOptInPhoneNumber, @@ -1759,9 +1780,8 @@ func (c *SNS) OptInPhoneNumberRequest(input *OptInPhoneNumberInput) (req *reques input = &OptInPhoneNumberInput{} } - req = c.newRequest(op, input, output) output = &OptInPhoneNumberOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1780,19 +1800,20 @@ func (c *SNS) OptInPhoneNumberRequest(input *OptInPhoneNumberInput) (req *reques // API operation OptInPhoneNumber for usage and error information. // // Returned Error Codes: -// * Throttled +// * ErrCodeThrottledException "Throttled" // Indicates that the rate at which requests have been submitted for this action // exceeds the limit for your account. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/OptInPhoneNumber func (c *SNS) OptInPhoneNumber(input *OptInPhoneNumberInput) (*OptInPhoneNumberOutput, error) { req, out := c.OptInPhoneNumberRequest(input) err := req.Send() @@ -1825,6 +1846,7 @@ const opPublish = "Publish" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/Publish func (c *SNS) PublishRequest(input *PublishInput) (req *request.Request, output *PublishOutput) { op := &request.Operation{ Name: opPublish, @@ -1836,9 +1858,8 @@ func (c *SNS) PublishRequest(input *PublishInput) (req *request.Request, output input = &PublishInput{} } - req = c.newRequest(op, input, output) output = &PublishOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1865,27 +1886,28 @@ func (c *SNS) PublishRequest(input *PublishInput) (req *request.Request, output // API operation Publish for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * ParameterValueInvalid +// * ErrCodeInvalidParameterValueException "ParameterValueInvalid" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // -// * EndpointDisabled +// * ErrCodeEndpointDisabledException "EndpointDisabled" // Exception error indicating endpoint disabled. // -// * PlatformApplicationDisabled +// * ErrCodePlatformApplicationDisabledException "PlatformApplicationDisabled" // Exception error indicating platform application disabled. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/Publish func (c *SNS) Publish(input *PublishInput) (*PublishOutput, error) { req, out := c.PublishRequest(input) err := req.Send() @@ -1918,6 +1940,7 @@ const opRemovePermission = "RemovePermission" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/RemovePermission func (c *SNS) RemovePermissionRequest(input *RemovePermissionInput) (req *request.Request, output *RemovePermissionOutput) { op := &request.Operation{ Name: opRemovePermission, @@ -1929,11 +1952,10 @@ func (c *SNS) RemovePermissionRequest(input *RemovePermissionInput) (req *reques input = &RemovePermissionInput{} } + output = &RemovePermissionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RemovePermissionOutput{} - req.Data = output return } @@ -1949,18 +1971,19 @@ func (c *SNS) RemovePermissionRequest(input *RemovePermissionInput) (req *reques // API operation RemovePermission for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/RemovePermission func (c *SNS) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error) { req, out := c.RemovePermissionRequest(input) err := req.Send() @@ -1993,6 +2016,7 @@ const opSetEndpointAttributes = "SetEndpointAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetEndpointAttributes func (c *SNS) SetEndpointAttributesRequest(input *SetEndpointAttributesInput) (req *request.Request, output *SetEndpointAttributesOutput) { op := &request.Operation{ Name: opSetEndpointAttributes, @@ -2004,11 +2028,10 @@ func (c *SNS) SetEndpointAttributesRequest(input *SetEndpointAttributesInput) (r input = &SetEndpointAttributesInput{} } + output = &SetEndpointAttributesOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetEndpointAttributesOutput{} - req.Data = output return } @@ -2026,18 +2049,19 @@ func (c *SNS) SetEndpointAttributesRequest(input *SetEndpointAttributesInput) (r // API operation SetEndpointAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetEndpointAttributes func (c *SNS) SetEndpointAttributes(input *SetEndpointAttributesInput) (*SetEndpointAttributesOutput, error) { req, out := c.SetEndpointAttributesRequest(input) err := req.Send() @@ -2070,6 +2094,7 @@ const opSetPlatformApplicationAttributes = "SetPlatformApplicationAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetPlatformApplicationAttributes func (c *SNS) SetPlatformApplicationAttributesRequest(input *SetPlatformApplicationAttributesInput) (req *request.Request, output *SetPlatformApplicationAttributesOutput) { op := &request.Operation{ Name: opSetPlatformApplicationAttributes, @@ -2081,11 +2106,10 @@ func (c *SNS) SetPlatformApplicationAttributesRequest(input *SetPlatformApplicat input = &SetPlatformApplicationAttributesInput{} } + output = &SetPlatformApplicationAttributesOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetPlatformApplicationAttributesOutput{} - req.Data = output return } @@ -2105,18 +2129,19 @@ func (c *SNS) SetPlatformApplicationAttributesRequest(input *SetPlatformApplicat // API operation SetPlatformApplicationAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetPlatformApplicationAttributes func (c *SNS) SetPlatformApplicationAttributes(input *SetPlatformApplicationAttributesInput) (*SetPlatformApplicationAttributesOutput, error) { req, out := c.SetPlatformApplicationAttributesRequest(input) err := req.Send() @@ -2149,6 +2174,7 @@ const opSetSMSAttributes = "SetSMSAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetSMSAttributes func (c *SNS) SetSMSAttributesRequest(input *SetSMSAttributesInput) (req *request.Request, output *SetSMSAttributesOutput) { op := &request.Operation{ Name: opSetSMSAttributes, @@ -2160,9 +2186,8 @@ func (c *SNS) SetSMSAttributesRequest(input *SetSMSAttributesInput) (req *reques input = &SetSMSAttributesInput{} } - req = c.newRequest(op, input, output) output = &SetSMSAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2184,19 +2209,20 @@ func (c *SNS) SetSMSAttributesRequest(input *SetSMSAttributesInput) (req *reques // API operation SetSMSAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * Throttled +// * ErrCodeThrottledException "Throttled" // Indicates that the rate at which requests have been submitted for this action // exceeds the limit for your account. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetSMSAttributes func (c *SNS) SetSMSAttributes(input *SetSMSAttributesInput) (*SetSMSAttributesOutput, error) { req, out := c.SetSMSAttributesRequest(input) err := req.Send() @@ -2229,6 +2255,7 @@ const opSetSubscriptionAttributes = "SetSubscriptionAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetSubscriptionAttributes func (c *SNS) SetSubscriptionAttributesRequest(input *SetSubscriptionAttributesInput) (req *request.Request, output *SetSubscriptionAttributesOutput) { op := &request.Operation{ Name: opSetSubscriptionAttributes, @@ -2240,11 +2267,10 @@ func (c *SNS) SetSubscriptionAttributesRequest(input *SetSubscriptionAttributesI input = &SetSubscriptionAttributesInput{} } + output = &SetSubscriptionAttributesOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetSubscriptionAttributesOutput{} - req.Data = output return } @@ -2260,18 +2286,19 @@ func (c *SNS) SetSubscriptionAttributesRequest(input *SetSubscriptionAttributesI // API operation SetSubscriptionAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetSubscriptionAttributes func (c *SNS) SetSubscriptionAttributes(input *SetSubscriptionAttributesInput) (*SetSubscriptionAttributesOutput, error) { req, out := c.SetSubscriptionAttributesRequest(input) err := req.Send() @@ -2304,6 +2331,7 @@ const opSetTopicAttributes = "SetTopicAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetTopicAttributes func (c *SNS) SetTopicAttributesRequest(input *SetTopicAttributesInput) (req *request.Request, output *SetTopicAttributesOutput) { op := &request.Operation{ Name: opSetTopicAttributes, @@ -2315,11 +2343,10 @@ func (c *SNS) SetTopicAttributesRequest(input *SetTopicAttributesInput) (req *re input = &SetTopicAttributesInput{} } + output = &SetTopicAttributesOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetTopicAttributesOutput{} - req.Data = output return } @@ -2335,18 +2362,19 @@ func (c *SNS) SetTopicAttributesRequest(input *SetTopicAttributesInput) (req *re // API operation SetTopicAttributes for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetTopicAttributes func (c *SNS) SetTopicAttributes(input *SetTopicAttributesInput) (*SetTopicAttributesOutput, error) { req, out := c.SetTopicAttributesRequest(input) err := req.Send() @@ -2379,6 +2407,7 @@ const opSubscribe = "Subscribe" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/Subscribe func (c *SNS) SubscribeRequest(input *SubscribeInput) (req *request.Request, output *SubscribeOutput) { op := &request.Operation{ Name: opSubscribe, @@ -2390,9 +2419,8 @@ func (c *SNS) SubscribeRequest(input *SubscribeInput) (req *request.Request, out input = &SubscribeInput{} } - req = c.newRequest(op, input, output) output = &SubscribeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2411,21 +2439,22 @@ func (c *SNS) SubscribeRequest(input *SubscribeInput) (req *request.Request, out // API operation Subscribe for usage and error information. // // Returned Error Codes: -// * SubscriptionLimitExceeded +// * ErrCodeSubscriptionLimitExceededException "SubscriptionLimitExceeded" // Indicates that the customer already owns the maximum allowed number of subscriptions. // -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/Subscribe func (c *SNS) Subscribe(input *SubscribeInput) (*SubscribeOutput, error) { req, out := c.SubscribeRequest(input) err := req.Send() @@ -2458,6 +2487,7 @@ const opUnsubscribe = "Unsubscribe" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/Unsubscribe func (c *SNS) UnsubscribeRequest(input *UnsubscribeInput) (req *request.Request, output *UnsubscribeOutput) { op := &request.Operation{ Name: opUnsubscribe, @@ -2469,11 +2499,10 @@ func (c *SNS) UnsubscribeRequest(input *UnsubscribeInput) (req *request.Request, input = &UnsubscribeInput{} } + output = &UnsubscribeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UnsubscribeOutput{} - req.Data = output return } @@ -2494,24 +2523,26 @@ func (c *SNS) UnsubscribeRequest(input *UnsubscribeInput) (req *request.Request, // API operation Unsubscribe for usage and error information. // // Returned Error Codes: -// * InvalidParameter +// * ErrCodeInvalidParameterException "InvalidParameter" // Indicates that a request parameter does not comply with the associated constraints. // -// * InternalError +// * ErrCodeInternalErrorException "InternalError" // Indicates an internal service error. // -// * AuthorizationError +// * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // -// * NotFound +// * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/Unsubscribe func (c *SNS) Unsubscribe(input *UnsubscribeInput) (*UnsubscribeOutput, error) { req, out := c.UnsubscribeRequest(input) err := req.Send() return out, err } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/AddPermissionInput type AddPermissionInput struct { _ struct{} `type:"structure"` @@ -2572,6 +2603,31 @@ func (s *AddPermissionInput) Validate() error { return nil } +// SetAWSAccountId sets the AWSAccountId field's value. +func (s *AddPermissionInput) SetAWSAccountId(v []*string) *AddPermissionInput { + s.AWSAccountId = v + return s +} + +// SetActionName sets the ActionName field's value. +func (s *AddPermissionInput) SetActionName(v []*string) *AddPermissionInput { + s.ActionName = v + return s +} + +// SetLabel sets the Label field's value. +func (s *AddPermissionInput) SetLabel(v string) *AddPermissionInput { + s.Label = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *AddPermissionInput) SetTopicArn(v string) *AddPermissionInput { + s.TopicArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/AddPermissionOutput type AddPermissionOutput struct { _ struct{} `type:"structure"` } @@ -2587,6 +2643,7 @@ func (s AddPermissionOutput) GoString() string { } // The input for the CheckIfPhoneNumberIsOptedOut action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CheckIfPhoneNumberIsOptedOutInput type CheckIfPhoneNumberIsOptedOutInput struct { _ struct{} `type:"structure"` @@ -2619,17 +2676,24 @@ func (s *CheckIfPhoneNumberIsOptedOutInput) Validate() error { return nil } +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *CheckIfPhoneNumberIsOptedOutInput) SetPhoneNumber(v string) *CheckIfPhoneNumberIsOptedOutInput { + s.PhoneNumber = &v + return s +} + // The response from the CheckIfPhoneNumberIsOptedOut action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CheckIfPhoneNumberIsOptedOutResponse type CheckIfPhoneNumberIsOptedOutOutput struct { _ struct{} `type:"structure"` // Indicates whether the phone number is opted out: // - // true – The phone number is opted out, meaning you cannot publish SMS - // messages to it. + // * true – The phone number is opted out, meaning you cannot publish SMS + // messages to it. // - // false – The phone number is opted in, meaning you can publish SMS messages - // to it. + // * false – The phone number is opted in, meaning you can publish SMS messages + // to it. IsOptedOut *bool `locationName:"isOptedOut" type:"boolean"` } @@ -2643,7 +2707,14 @@ func (s CheckIfPhoneNumberIsOptedOutOutput) GoString() string { return s.String() } +// SetIsOptedOut sets the IsOptedOut field's value. +func (s *CheckIfPhoneNumberIsOptedOutOutput) SetIsOptedOut(v bool) *CheckIfPhoneNumberIsOptedOutOutput { + s.IsOptedOut = &v + return s +} + // Input for ConfirmSubscription action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ConfirmSubscriptionInput type ConfirmSubscriptionInput struct { _ struct{} `type:"structure"` @@ -2690,7 +2761,26 @@ func (s *ConfirmSubscriptionInput) Validate() error { return nil } +// SetAuthenticateOnUnsubscribe sets the AuthenticateOnUnsubscribe field's value. +func (s *ConfirmSubscriptionInput) SetAuthenticateOnUnsubscribe(v string) *ConfirmSubscriptionInput { + s.AuthenticateOnUnsubscribe = &v + return s +} + +// SetToken sets the Token field's value. +func (s *ConfirmSubscriptionInput) SetToken(v string) *ConfirmSubscriptionInput { + s.Token = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *ConfirmSubscriptionInput) SetTopicArn(v string) *ConfirmSubscriptionInput { + s.TopicArn = &v + return s +} + // Response for ConfirmSubscriptions action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ConfirmSubscriptionResponse type ConfirmSubscriptionOutput struct { _ struct{} `type:"structure"` @@ -2708,7 +2798,14 @@ func (s ConfirmSubscriptionOutput) GoString() string { return s.String() } +// SetSubscriptionArn sets the SubscriptionArn field's value. +func (s *ConfirmSubscriptionOutput) SetSubscriptionArn(v string) *ConfirmSubscriptionOutput { + s.SubscriptionArn = &v + return s +} + // Input for CreatePlatformApplication action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CreatePlatformApplicationInput type CreatePlatformApplicationInput struct { _ struct{} `type:"structure"` @@ -2760,7 +2857,26 @@ func (s *CreatePlatformApplicationInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *CreatePlatformApplicationInput) SetAttributes(v map[string]*string) *CreatePlatformApplicationInput { + s.Attributes = v + return s +} + +// SetName sets the Name field's value. +func (s *CreatePlatformApplicationInput) SetName(v string) *CreatePlatformApplicationInput { + s.Name = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *CreatePlatformApplicationInput) SetPlatform(v string) *CreatePlatformApplicationInput { + s.Platform = &v + return s +} + // Response from CreatePlatformApplication action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CreatePlatformApplicationResponse type CreatePlatformApplicationOutput struct { _ struct{} `type:"structure"` @@ -2778,7 +2894,14 @@ func (s CreatePlatformApplicationOutput) GoString() string { return s.String() } +// SetPlatformApplicationArn sets the PlatformApplicationArn field's value. +func (s *CreatePlatformApplicationOutput) SetPlatformApplicationArn(v string) *CreatePlatformApplicationOutput { + s.PlatformApplicationArn = &v + return s +} + // Input for CreatePlatformEndpoint action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CreatePlatformEndpointInput type CreatePlatformEndpointInput struct { _ struct{} `type:"structure"` @@ -2831,7 +2954,32 @@ func (s *CreatePlatformEndpointInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *CreatePlatformEndpointInput) SetAttributes(v map[string]*string) *CreatePlatformEndpointInput { + s.Attributes = v + return s +} + +// SetCustomUserData sets the CustomUserData field's value. +func (s *CreatePlatformEndpointInput) SetCustomUserData(v string) *CreatePlatformEndpointInput { + s.CustomUserData = &v + return s +} + +// SetPlatformApplicationArn sets the PlatformApplicationArn field's value. +func (s *CreatePlatformEndpointInput) SetPlatformApplicationArn(v string) *CreatePlatformEndpointInput { + s.PlatformApplicationArn = &v + return s +} + +// SetToken sets the Token field's value. +func (s *CreatePlatformEndpointInput) SetToken(v string) *CreatePlatformEndpointInput { + s.Token = &v + return s +} + // Response from CreateEndpoint action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CreateEndpointResponse type CreatePlatformEndpointOutput struct { _ struct{} `type:"structure"` @@ -2849,7 +2997,14 @@ func (s CreatePlatformEndpointOutput) GoString() string { return s.String() } +// SetEndpointArn sets the EndpointArn field's value. +func (s *CreatePlatformEndpointOutput) SetEndpointArn(v string) *CreatePlatformEndpointOutput { + s.EndpointArn = &v + return s +} + // Input for CreateTopic action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CreateTopicInput type CreateTopicInput struct { _ struct{} `type:"structure"` @@ -2886,7 +3041,14 @@ func (s *CreateTopicInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *CreateTopicInput) SetName(v string) *CreateTopicInput { + s.Name = &v + return s +} + // Response from CreateTopic action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CreateTopicResponse type CreateTopicOutput struct { _ struct{} `type:"structure"` @@ -2904,7 +3066,14 @@ func (s CreateTopicOutput) GoString() string { return s.String() } +// SetTopicArn sets the TopicArn field's value. +func (s *CreateTopicOutput) SetTopicArn(v string) *CreateTopicOutput { + s.TopicArn = &v + return s +} + // Input for DeleteEndpoint action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/DeleteEndpointInput type DeleteEndpointInput struct { _ struct{} `type:"structure"` @@ -2937,6 +3106,13 @@ func (s *DeleteEndpointInput) Validate() error { return nil } +// SetEndpointArn sets the EndpointArn field's value. +func (s *DeleteEndpointInput) SetEndpointArn(v string) *DeleteEndpointInput { + s.EndpointArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/DeleteEndpointOutput type DeleteEndpointOutput struct { _ struct{} `type:"structure"` } @@ -2952,6 +3128,7 @@ func (s DeleteEndpointOutput) GoString() string { } // Input for DeletePlatformApplication action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/DeletePlatformApplicationInput type DeletePlatformApplicationInput struct { _ struct{} `type:"structure"` @@ -2984,6 +3161,13 @@ func (s *DeletePlatformApplicationInput) Validate() error { return nil } +// SetPlatformApplicationArn sets the PlatformApplicationArn field's value. +func (s *DeletePlatformApplicationInput) SetPlatformApplicationArn(v string) *DeletePlatformApplicationInput { + s.PlatformApplicationArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/DeletePlatformApplicationOutput type DeletePlatformApplicationOutput struct { _ struct{} `type:"structure"` } @@ -2998,6 +3182,7 @@ func (s DeletePlatformApplicationOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/DeleteTopicInput type DeleteTopicInput struct { _ struct{} `type:"structure"` @@ -3030,6 +3215,13 @@ func (s *DeleteTopicInput) Validate() error { return nil } +// SetTopicArn sets the TopicArn field's value. +func (s *DeleteTopicInput) SetTopicArn(v string) *DeleteTopicInput { + s.TopicArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/DeleteTopicOutput type DeleteTopicOutput struct { _ struct{} `type:"structure"` } @@ -3045,6 +3237,7 @@ func (s DeleteTopicOutput) GoString() string { } // Endpoint for mobile app and device. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/Endpoint type Endpoint struct { _ struct{} `type:"structure"` @@ -3065,7 +3258,20 @@ func (s Endpoint) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *Endpoint) SetAttributes(v map[string]*string) *Endpoint { + s.Attributes = v + return s +} + +// SetEndpointArn sets the EndpointArn field's value. +func (s *Endpoint) SetEndpointArn(v string) *Endpoint { + s.EndpointArn = &v + return s +} + // Input for GetEndpointAttributes action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetEndpointAttributesInput type GetEndpointAttributesInput struct { _ struct{} `type:"structure"` @@ -3098,24 +3304,31 @@ func (s *GetEndpointAttributesInput) Validate() error { return nil } +// SetEndpointArn sets the EndpointArn field's value. +func (s *GetEndpointAttributesInput) SetEndpointArn(v string) *GetEndpointAttributesInput { + s.EndpointArn = &v + return s +} + // Response from GetEndpointAttributes of the EndpointArn. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetEndpointAttributesResponse type GetEndpointAttributesOutput struct { _ struct{} `type:"structure"` // Attributes include the following: // - // CustomUserData -- arbitrary user data to associate with the endpoint. - // Amazon SNS does not use this data. The data must be in UTF-8 format and less - // than 2KB. + // * CustomUserData -- arbitrary user data to associate with the endpoint. + // Amazon SNS does not use this data. The data must be in UTF-8 format and + // less than 2KB. // - // Enabled -- flag that enables/disables delivery to the endpoint. Amazon - // SNS will set this to false when a notification service indicates to Amazon - // SNS that the endpoint is invalid. Users can set it back to true, typically - // after updating Token. + // * Enabled -- flag that enables/disables delivery to the endpoint. Amazon + // SNS will set this to false when a notification service indicates to Amazon + // SNS that the endpoint is invalid. Users can set it back to true, typically + // after updating Token. // - // Token -- device token, also referred to as a registration id, for an - // app and mobile device. This is returned from the notification service when - // an app and mobile device are registered with the notification service. + // * Token -- device token, also referred to as a registration id, for an + // app and mobile device. This is returned from the notification service + // when an app and mobile device are registered with the notification service. Attributes map[string]*string `type:"map"` } @@ -3129,7 +3342,14 @@ func (s GetEndpointAttributesOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *GetEndpointAttributesOutput) SetAttributes(v map[string]*string) *GetEndpointAttributesOutput { + s.Attributes = v + return s +} + // Input for GetPlatformApplicationAttributes action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetPlatformApplicationAttributesInput type GetPlatformApplicationAttributesInput struct { _ struct{} `type:"structure"` @@ -3162,24 +3382,31 @@ func (s *GetPlatformApplicationAttributesInput) Validate() error { return nil } +// SetPlatformApplicationArn sets the PlatformApplicationArn field's value. +func (s *GetPlatformApplicationAttributesInput) SetPlatformApplicationArn(v string) *GetPlatformApplicationAttributesInput { + s.PlatformApplicationArn = &v + return s +} + // Response for GetPlatformApplicationAttributes action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetPlatformApplicationAttributesResponse type GetPlatformApplicationAttributesOutput struct { _ struct{} `type:"structure"` // Attributes include the following: // - // EventEndpointCreated -- Topic ARN to which EndpointCreated event notifications - // should be sent. + // * EventEndpointCreated -- Topic ARN to which EndpointCreated event notifications + // should be sent. // - // EventEndpointDeleted -- Topic ARN to which EndpointDeleted event notifications - // should be sent. + // * EventEndpointDeleted -- Topic ARN to which EndpointDeleted event notifications + // should be sent. // - // EventEndpointUpdated -- Topic ARN to which EndpointUpdate event notifications - // should be sent. + // * EventEndpointUpdated -- Topic ARN to which EndpointUpdate event notifications + // should be sent. // - // EventDeliveryFailure -- Topic ARN to which DeliveryFailure event notifications - // should be sent upon Direct Publish delivery failure (permanent) to one of - // the application's endpoints. + // * EventDeliveryFailure -- Topic ARN to which DeliveryFailure event notifications + // should be sent upon Direct Publish delivery failure (permanent) to one + // of the application's endpoints. Attributes map[string]*string `type:"map"` } @@ -3193,7 +3420,14 @@ func (s GetPlatformApplicationAttributesOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *GetPlatformApplicationAttributesOutput) SetAttributes(v map[string]*string) *GetPlatformApplicationAttributesOutput { + s.Attributes = v + return s +} + // The input for the GetSMSAttributes request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetSMSAttributesInput type GetSMSAttributesInput struct { _ struct{} `type:"structure"` @@ -3216,7 +3450,14 @@ func (s GetSMSAttributesInput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *GetSMSAttributesInput) SetAttributes(v []*string) *GetSMSAttributesInput { + s.Attributes = v + return s +} + // The response from the GetSMSAttributes request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetSMSAttributesResponse type GetSMSAttributesOutput struct { _ struct{} `type:"structure"` @@ -3234,7 +3475,14 @@ func (s GetSMSAttributesOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *GetSMSAttributesOutput) SetAttributes(v map[string]*string) *GetSMSAttributesOutput { + s.Attributes = v + return s +} + // Input for GetSubscriptionAttributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetSubscriptionAttributesInput type GetSubscriptionAttributesInput struct { _ struct{} `type:"structure"` @@ -3267,28 +3515,35 @@ func (s *GetSubscriptionAttributesInput) Validate() error { return nil } +// SetSubscriptionArn sets the SubscriptionArn field's value. +func (s *GetSubscriptionAttributesInput) SetSubscriptionArn(v string) *GetSubscriptionAttributesInput { + s.SubscriptionArn = &v + return s +} + // Response for GetSubscriptionAttributes action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetSubscriptionAttributesResponse type GetSubscriptionAttributesOutput struct { _ struct{} `type:"structure"` // A map of the subscription's attributes. Attributes in this map include the // following: // - // SubscriptionArn -- the subscription's ARN + // * SubscriptionArn -- the subscription's ARN // - // TopicArn -- the topic ARN that the subscription is associated with + // * TopicArn -- the topic ARN that the subscription is associated with // - // Owner -- the AWS account ID of the subscription's owner + // * Owner -- the AWS account ID of the subscription's owner // - // ConfirmationWasAuthenticated -- true if the subscription confirmation - // request was authenticated + // * ConfirmationWasAuthenticated -- true if the subscription confirmation + // request was authenticated // - // DeliveryPolicy -- the JSON serialization of the subscription's delivery - // policy + // * DeliveryPolicy -- the JSON serialization of the subscription's delivery + // policy // - // EffectiveDeliveryPolicy -- the JSON serialization of the effective delivery - // policy that takes into account the topic delivery policy and account system - // defaults + // * EffectiveDeliveryPolicy -- the JSON serialization of the effective delivery + // policy that takes into account the topic delivery policy and account system + // defaults Attributes map[string]*string `type:"map"` } @@ -3302,7 +3557,14 @@ func (s GetSubscriptionAttributesOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *GetSubscriptionAttributesOutput) SetAttributes(v map[string]*string) *GetSubscriptionAttributesOutput { + s.Attributes = v + return s +} + // Input for GetTopicAttributes action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetTopicAttributesInput type GetTopicAttributesInput struct { _ struct{} `type:"structure"` @@ -3335,33 +3597,41 @@ func (s *GetTopicAttributesInput) Validate() error { return nil } +// SetTopicArn sets the TopicArn field's value. +func (s *GetTopicAttributesInput) SetTopicArn(v string) *GetTopicAttributesInput { + s.TopicArn = &v + return s +} + // Response for GetTopicAttributes action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetTopicAttributesResponse type GetTopicAttributesOutput struct { _ struct{} `type:"structure"` // A map of the topic's attributes. Attributes in this map include the following: // - // TopicArn -- the topic's ARN + // * TopicArn -- the topic's ARN // - // Owner -- the AWS account ID of the topic's owner + // * Owner -- the AWS account ID of the topic's owner // - // Policy -- the JSON serialization of the topic's access control policy + // * Policy -- the JSON serialization of the topic's access control policy // - // DisplayName -- the human-readable name used in the "From" field for notifications - // to email and email-json endpoints + // * DisplayName -- the human-readable name used in the "From" field for + // notifications to email and email-json endpoints // - // SubscriptionsPending -- the number of subscriptions pending confirmation - // on this topic + // * SubscriptionsPending -- the number of subscriptions pending confirmation + // on this topic // - // SubscriptionsConfirmed -- the number of confirmed subscriptions on this - // topic + // * SubscriptionsConfirmed -- the number of confirmed subscriptions on this + // topic // - // SubscriptionsDeleted -- the number of deleted subscriptions on this topic + // * SubscriptionsDeleted -- the number of deleted subscriptions on this + // topic // - // DeliveryPolicy -- the JSON serialization of the topic's delivery policy + // * DeliveryPolicy -- the JSON serialization of the topic's delivery policy // - // EffectiveDeliveryPolicy -- the JSON serialization of the effective delivery - // policy that takes into account system defaults + // * EffectiveDeliveryPolicy -- the JSON serialization of the effective delivery + // policy that takes into account system defaults Attributes map[string]*string `type:"map"` } @@ -3375,7 +3645,14 @@ func (s GetTopicAttributesOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *GetTopicAttributesOutput) SetAttributes(v map[string]*string) *GetTopicAttributesOutput { + s.Attributes = v + return s +} + // Input for ListEndpointsByPlatformApplication action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListEndpointsByPlatformApplicationInput type ListEndpointsByPlatformApplicationInput struct { _ struct{} `type:"structure"` @@ -3413,7 +3690,20 @@ func (s *ListEndpointsByPlatformApplicationInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *ListEndpointsByPlatformApplicationInput) SetNextToken(v string) *ListEndpointsByPlatformApplicationInput { + s.NextToken = &v + return s +} + +// SetPlatformApplicationArn sets the PlatformApplicationArn field's value. +func (s *ListEndpointsByPlatformApplicationInput) SetPlatformApplicationArn(v string) *ListEndpointsByPlatformApplicationInput { + s.PlatformApplicationArn = &v + return s +} + // Response for ListEndpointsByPlatformApplication action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListEndpointsByPlatformApplicationResponse type ListEndpointsByPlatformApplicationOutput struct { _ struct{} `type:"structure"` @@ -3435,7 +3725,20 @@ func (s ListEndpointsByPlatformApplicationOutput) GoString() string { return s.String() } +// SetEndpoints sets the Endpoints field's value. +func (s *ListEndpointsByPlatformApplicationOutput) SetEndpoints(v []*Endpoint) *ListEndpointsByPlatformApplicationOutput { + s.Endpoints = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListEndpointsByPlatformApplicationOutput) SetNextToken(v string) *ListEndpointsByPlatformApplicationOutput { + s.NextToken = &v + return s +} + // The input for the ListPhoneNumbersOptedOut action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListPhoneNumbersOptedOutInput type ListPhoneNumbersOptedOutInput struct { _ struct{} `type:"structure"` @@ -3455,7 +3758,14 @@ func (s ListPhoneNumbersOptedOutInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListPhoneNumbersOptedOutInput) SetNextToken(v string) *ListPhoneNumbersOptedOutInput { + s.NextToken = &v + return s +} + // The response from the ListPhoneNumbersOptedOut action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListPhoneNumbersOptedOutResponse type ListPhoneNumbersOptedOutOutput struct { _ struct{} `type:"structure"` @@ -3478,7 +3788,20 @@ func (s ListPhoneNumbersOptedOutOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListPhoneNumbersOptedOutOutput) SetNextToken(v string) *ListPhoneNumbersOptedOutOutput { + s.NextToken = &v + return s +} + +// SetPhoneNumbers sets the PhoneNumbers field's value. +func (s *ListPhoneNumbersOptedOutOutput) SetPhoneNumbers(v []*string) *ListPhoneNumbersOptedOutOutput { + s.PhoneNumbers = v + return s +} + // Input for ListPlatformApplications action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListPlatformApplicationsInput type ListPlatformApplicationsInput struct { _ struct{} `type:"structure"` @@ -3497,7 +3820,14 @@ func (s ListPlatformApplicationsInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListPlatformApplicationsInput) SetNextToken(v string) *ListPlatformApplicationsInput { + s.NextToken = &v + return s +} + // Response for ListPlatformApplications action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListPlatformApplicationsResponse type ListPlatformApplicationsOutput struct { _ struct{} `type:"structure"` @@ -3519,7 +3849,20 @@ func (s ListPlatformApplicationsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListPlatformApplicationsOutput) SetNextToken(v string) *ListPlatformApplicationsOutput { + s.NextToken = &v + return s +} + +// SetPlatformApplications sets the PlatformApplications field's value. +func (s *ListPlatformApplicationsOutput) SetPlatformApplications(v []*PlatformApplication) *ListPlatformApplicationsOutput { + s.PlatformApplications = v + return s +} + // Input for ListSubscriptionsByTopic action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListSubscriptionsByTopicInput type ListSubscriptionsByTopicInput struct { _ struct{} `type:"structure"` @@ -3555,7 +3898,20 @@ func (s *ListSubscriptionsByTopicInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *ListSubscriptionsByTopicInput) SetNextToken(v string) *ListSubscriptionsByTopicInput { + s.NextToken = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *ListSubscriptionsByTopicInput) SetTopicArn(v string) *ListSubscriptionsByTopicInput { + s.TopicArn = &v + return s +} + // Response for ListSubscriptionsByTopic action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListSubscriptionsByTopicResponse type ListSubscriptionsByTopicOutput struct { _ struct{} `type:"structure"` @@ -3577,7 +3933,20 @@ func (s ListSubscriptionsByTopicOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListSubscriptionsByTopicOutput) SetNextToken(v string) *ListSubscriptionsByTopicOutput { + s.NextToken = &v + return s +} + +// SetSubscriptions sets the Subscriptions field's value. +func (s *ListSubscriptionsByTopicOutput) SetSubscriptions(v []*Subscription) *ListSubscriptionsByTopicOutput { + s.Subscriptions = v + return s +} + // Input for ListSubscriptions action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListSubscriptionsInput type ListSubscriptionsInput struct { _ struct{} `type:"structure"` @@ -3595,7 +3964,14 @@ func (s ListSubscriptionsInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListSubscriptionsInput) SetNextToken(v string) *ListSubscriptionsInput { + s.NextToken = &v + return s +} + // Response for ListSubscriptions action +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListSubscriptionsResponse type ListSubscriptionsOutput struct { _ struct{} `type:"structure"` @@ -3617,6 +3993,19 @@ func (s ListSubscriptionsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListSubscriptionsOutput) SetNextToken(v string) *ListSubscriptionsOutput { + s.NextToken = &v + return s +} + +// SetSubscriptions sets the Subscriptions field's value. +func (s *ListSubscriptionsOutput) SetSubscriptions(v []*Subscription) *ListSubscriptionsOutput { + s.Subscriptions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListTopicsInput type ListTopicsInput struct { _ struct{} `type:"structure"` @@ -3634,7 +4023,14 @@ func (s ListTopicsInput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListTopicsInput) SetNextToken(v string) *ListTopicsInput { + s.NextToken = &v + return s +} + // Response for ListTopics action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListTopicsResponse type ListTopicsOutput struct { _ struct{} `type:"structure"` @@ -3656,6 +4052,18 @@ func (s ListTopicsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *ListTopicsOutput) SetNextToken(v string) *ListTopicsOutput { + s.NextToken = &v + return s +} + +// SetTopics sets the Topics field's value. +func (s *ListTopicsOutput) SetTopics(v []*Topic) *ListTopicsOutput { + s.Topics = v + return s +} + // The user-specified message attribute value. For string data types, the value // attribute has the same restrictions on the content as the message body. For // more information, see Publish (http://docs.aws.amazon.com/sns/latest/api/API_Publish.html). @@ -3665,6 +4073,7 @@ func (s ListTopicsOutput) GoString() string { // name, type, and value, are included in the message size restriction, which // is currently 256 KB (262,144 bytes). For more information, see Using Amazon // SNS Message Attributes (http://docs.aws.amazon.com/sns/latest/dg/SNSMessageAttributes.html). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/MessageAttributeValue type MessageAttributeValue struct { _ struct{} `type:"structure"` @@ -3708,7 +4117,26 @@ func (s *MessageAttributeValue) Validate() error { return nil } +// SetBinaryValue sets the BinaryValue field's value. +func (s *MessageAttributeValue) SetBinaryValue(v []byte) *MessageAttributeValue { + s.BinaryValue = v + return s +} + +// SetDataType sets the DataType field's value. +func (s *MessageAttributeValue) SetDataType(v string) *MessageAttributeValue { + s.DataType = &v + return s +} + +// SetStringValue sets the StringValue field's value. +func (s *MessageAttributeValue) SetStringValue(v string) *MessageAttributeValue { + s.StringValue = &v + return s +} + // Input for the OptInPhoneNumber action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/OptInPhoneNumberInput type OptInPhoneNumberInput struct { _ struct{} `type:"structure"` @@ -3741,7 +4169,14 @@ func (s *OptInPhoneNumberInput) Validate() error { return nil } +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *OptInPhoneNumberInput) SetPhoneNumber(v string) *OptInPhoneNumberInput { + s.PhoneNumber = &v + return s +} + // The response for the OptInPhoneNumber action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/OptInPhoneNumberResponse type OptInPhoneNumberOutput struct { _ struct{} `type:"structure"` } @@ -3757,6 +4192,7 @@ func (s OptInPhoneNumberOutput) GoString() string { } // Platform application object. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/PlatformApplication type PlatformApplication struct { _ struct{} `type:"structure"` @@ -3777,7 +4213,20 @@ func (s PlatformApplication) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *PlatformApplication) SetAttributes(v map[string]*string) *PlatformApplication { + s.Attributes = v + return s +} + +// SetPlatformApplicationArn sets the PlatformApplicationArn field's value. +func (s *PlatformApplication) SetPlatformApplicationArn(v string) *PlatformApplication { + s.PlatformApplicationArn = &v + return s +} + // Input for Publish action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/PublishInput type PublishInput struct { _ struct{} `type:"structure"` @@ -3786,37 +4235,37 @@ type PublishInput struct { // If you want to send the same message to all transport protocols, include // the text of the message as a String value. // - // If you want to send different messages for each transport protocol, set - // the value of the MessageStructure parameter to json and use a JSON object - // for the Message parameter. + // If you want to send different messages for each transport protocol, set the + // value of the MessageStructure parameter to json and use a JSON object for + // the Message parameter. // // Constraints: Messages must be UTF-8 encoded strings at most 256 KB in size // (262144 bytes, not 262144 characters). // // JSON-specific constraints: // - // Keys in the JSON object that correspond to supported transport protocols - // must have simple JSON string values. + // * Keys in the JSON object that correspond to supported transport protocols + // must have simple JSON string values. // - // The values will be parsed (unescaped) before they are used in outgoing - // messages. + // * The values will be parsed (unescaped) before they are used in outgoing + // messages. // - // Outbound notifications are JSON encoded (meaning that the characters will - // be reescaped for sending). + // * Outbound notifications are JSON encoded (meaning that the characters + // will be reescaped for sending). // - // Values have a minimum length of 0 (the empty string, "", is allowed). + // * Values have a minimum length of 0 (the empty string, "", is allowed). // - // Values have a maximum length bounded by the overall message size (so, - // including multiple protocols may limit message sizes). + // * Values have a maximum length bounded by the overall message size (so, + // including multiple protocols may limit message sizes). // - // Non-string values will cause the key to be ignored. + // * Non-string values will cause the key to be ignored. // - // Keys that do not correspond to supported transport protocols are ignored. + // * Keys that do not correspond to supported transport protocols are ignored. // - // Duplicate keys are not allowed. + // * Duplicate keys are not allowed. // - // Failure to parse or validate any key or value in the message will cause - // the Publish call to return an error (no partial delivery). + // * Failure to parse or validate any key or value in the message will cause + // the Publish call to return an error (no partial delivery). // // Message is a required field Message *string `type:"string" required:"true"` @@ -3829,13 +4278,13 @@ type PublishInput struct { // message to your SMS subscribers and a longer message to your email subscribers. // If you set MessageStructure to json, the value of the Message parameter must: // - // be a syntactically valid JSON object; and + // * be a syntactically valid JSON object; and // - // contain at least a top-level JSON key of "default" with a value that is - // a string. + // * contain at least a top-level JSON key of "default" with a value that + // is a string. // - // You can define other top-level keys that define the message you want to - // send to a specific transport protocol (e.g., "http"). + // You can define other top-level keys that define the message you want to send + // to a specific transport protocol (e.g., "http"). // // For information about sending different messages for each protocol using // the AWS Management Console, go to Create Different Messages for Each Protocol @@ -3906,7 +4355,50 @@ func (s *PublishInput) Validate() error { return nil } +// SetMessage sets the Message field's value. +func (s *PublishInput) SetMessage(v string) *PublishInput { + s.Message = &v + return s +} + +// SetMessageAttributes sets the MessageAttributes field's value. +func (s *PublishInput) SetMessageAttributes(v map[string]*MessageAttributeValue) *PublishInput { + s.MessageAttributes = v + return s +} + +// SetMessageStructure sets the MessageStructure field's value. +func (s *PublishInput) SetMessageStructure(v string) *PublishInput { + s.MessageStructure = &v + return s +} + +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *PublishInput) SetPhoneNumber(v string) *PublishInput { + s.PhoneNumber = &v + return s +} + +// SetSubject sets the Subject field's value. +func (s *PublishInput) SetSubject(v string) *PublishInput { + s.Subject = &v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *PublishInput) SetTargetArn(v string) *PublishInput { + s.TargetArn = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *PublishInput) SetTopicArn(v string) *PublishInput { + s.TopicArn = &v + return s +} + // Response for Publish action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/PublishResponse type PublishOutput struct { _ struct{} `type:"structure"` @@ -3926,7 +4418,14 @@ func (s PublishOutput) GoString() string { return s.String() } +// SetMessageId sets the MessageId field's value. +func (s *PublishOutput) SetMessageId(v string) *PublishOutput { + s.MessageId = &v + return s +} + // Input for RemovePermission action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/RemovePermissionInput type RemovePermissionInput struct { _ struct{} `type:"structure"` @@ -3967,6 +4466,19 @@ func (s *RemovePermissionInput) Validate() error { return nil } +// SetLabel sets the Label field's value. +func (s *RemovePermissionInput) SetLabel(v string) *RemovePermissionInput { + s.Label = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *RemovePermissionInput) SetTopicArn(v string) *RemovePermissionInput { + s.TopicArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/RemovePermissionOutput type RemovePermissionOutput struct { _ struct{} `type:"structure"` } @@ -3982,23 +4494,24 @@ func (s RemovePermissionOutput) GoString() string { } // Input for SetEndpointAttributes action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetEndpointAttributesInput type SetEndpointAttributesInput struct { _ struct{} `type:"structure"` // A map of the endpoint attributes. Attributes in this map include the following: // - // CustomUserData -- arbitrary user data to associate with the endpoint. - // Amazon SNS does not use this data. The data must be in UTF-8 format and less - // than 2KB. + // * CustomUserData -- arbitrary user data to associate with the endpoint. + // Amazon SNS does not use this data. The data must be in UTF-8 format and + // less than 2KB. // - // Enabled -- flag that enables/disables delivery to the endpoint. Amazon - // SNS will set this to false when a notification service indicates to Amazon - // SNS that the endpoint is invalid. Users can set it back to true, typically - // after updating Token. + // * Enabled -- flag that enables/disables delivery to the endpoint. Amazon + // SNS will set this to false when a notification service indicates to Amazon + // SNS that the endpoint is invalid. Users can set it back to true, typically + // after updating Token. // - // Token -- device token, also referred to as a registration id, for an - // app and mobile device. This is returned from the notification service when - // an app and mobile device are registered with the notification service. + // * Token -- device token, also referred to as a registration id, for an + // app and mobile device. This is returned from the notification service + // when an app and mobile device are registered with the notification service. // // Attributes is a required field Attributes map[string]*string `type:"map" required:"true"` @@ -4035,6 +4548,19 @@ func (s *SetEndpointAttributesInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *SetEndpointAttributesInput) SetAttributes(v map[string]*string) *SetEndpointAttributesInput { + s.Attributes = v + return s +} + +// SetEndpointArn sets the EndpointArn field's value. +func (s *SetEndpointAttributesInput) SetEndpointArn(v string) *SetEndpointAttributesInput { + s.EndpointArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetEndpointAttributesOutput type SetEndpointAttributesOutput struct { _ struct{} `type:"structure"` } @@ -4050,41 +4576,44 @@ func (s SetEndpointAttributesOutput) GoString() string { } // Input for SetPlatformApplicationAttributes action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetPlatformApplicationAttributesInput type SetPlatformApplicationAttributesInput struct { _ struct{} `type:"structure"` // A map of the platform application attributes. Attributes in this map include // the following: // - // PlatformCredential -- The credential received from the notification service. - // For APNS/APNS_SANDBOX, PlatformCredential is private key. For GCM, PlatformCredential - // is "API key". For ADM, PlatformCredential is "client secret". + // * PlatformCredential -- The credential received from the notification + // service. For APNS/APNS_SANDBOX, PlatformCredential is private key. For + // GCM, PlatformCredential is "API key". For ADM, PlatformCredential is "client + // secret". // - // PlatformPrincipal -- The principal received from the notification service. - // For APNS/APNS_SANDBOX, PlatformPrincipal is SSL certificate. For GCM, PlatformPrincipal - // is not applicable. For ADM, PlatformPrincipal is "client id". + // * PlatformPrincipal -- The principal received from the notification service. + // For APNS/APNS_SANDBOX, PlatformPrincipal is SSL certificate. For GCM, + // PlatformPrincipal is not applicable. For ADM, PlatformPrincipal is "client + // id". // - // EventEndpointCreated -- Topic ARN to which EndpointCreated event notifications - // should be sent. + // * EventEndpointCreated -- Topic ARN to which EndpointCreated event notifications + // should be sent. // - // EventEndpointDeleted -- Topic ARN to which EndpointDeleted event notifications - // should be sent. + // * EventEndpointDeleted -- Topic ARN to which EndpointDeleted event notifications + // should be sent. // - // EventEndpointUpdated -- Topic ARN to which EndpointUpdate event notifications - // should be sent. + // * EventEndpointUpdated -- Topic ARN to which EndpointUpdate event notifications + // should be sent. // - // EventDeliveryFailure -- Topic ARN to which DeliveryFailure event notifications - // should be sent upon Direct Publish delivery failure (permanent) to one of - // the application's endpoints. + // * EventDeliveryFailure -- Topic ARN to which DeliveryFailure event notifications + // should be sent upon Direct Publish delivery failure (permanent) to one + // of the application's endpoints. // - // SuccessFeedbackRoleArn -- IAM role ARN used to give Amazon SNS write - // access to use CloudWatch Logs on your behalf. + // * SuccessFeedbackRoleArn -- IAM role ARN used to give Amazon SNS write + // access to use CloudWatch Logs on your behalf. // - // FailureFeedbackRoleArn -- IAM role ARN used to give Amazon SNS write - // access to use CloudWatch Logs on your behalf. + // * FailureFeedbackRoleArn -- IAM role ARN used to give Amazon SNS write + // access to use CloudWatch Logs on your behalf. // - // SuccessFeedbackSampleRate -- Sample rate percentage (0-100) of successfully - // delivered messages. + // * SuccessFeedbackSampleRate -- Sample rate percentage (0-100) of successfully + // delivered messages. // // Attributes is a required field Attributes map[string]*string `type:"map" required:"true"` @@ -4121,6 +4650,19 @@ func (s *SetPlatformApplicationAttributesInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *SetPlatformApplicationAttributesInput) SetAttributes(v map[string]*string) *SetPlatformApplicationAttributesInput { + s.Attributes = v + return s +} + +// SetPlatformApplicationArn sets the PlatformApplicationArn field's value. +func (s *SetPlatformApplicationAttributesInput) SetPlatformApplicationArn(v string) *SetPlatformApplicationAttributesInput { + s.PlatformApplicationArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetPlatformApplicationAttributesOutput type SetPlatformApplicationAttributesOutput struct { _ struct{} `type:"structure"` } @@ -4136,75 +4678,76 @@ func (s SetPlatformApplicationAttributesOutput) GoString() string { } // The input for the SetSMSAttributes action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetSMSAttributesInput type SetSMSAttributesInput struct { _ struct{} `type:"structure"` // The default settings for sending SMS messages from your account. You can // set values for the following attribute names: // - // MonthlySpendLimit – The maximum amount in USD that you are willing to spend + // MonthlySpendLimit – The maximum amount in USD that you are willing to spend // each month to send SMS messages. When Amazon SNS determines that sending // an SMS message would incur a cost that exceeds this limit, it stops sending // SMS messages within minutes. // - // Amazon SNS stops sending SMS messages within minutes of the limit being - // crossed. During that interval, if you continue to send SMS messages, you - // will incur costs that exceed your limit. + // Amazon SNS stops sending SMS messages within minutes of the limit being crossed. + // During that interval, if you continue to send SMS messages, you will incur + // costs that exceed your limit. // - // By default, the spend limit is set to the maximum allowed by Amazon SNS. + // By default, the spend limit is set to the maximum allowed by Amazon SNS. // If you want to exceed the maximum, contact AWS Support (https://aws.amazon.com/premiumsupport/) // or your AWS sales representative for a service limit increase. // - // DeliveryStatusIAMRole – The ARN of the IAM role that allows Amazon SNS - // to write logs about SMS deliveries in CloudWatch Logs. For each SMS message + // DeliveryStatusIAMRole – The ARN of the IAM role that allows Amazon SNS to + // write logs about SMS deliveries in CloudWatch Logs. For each SMS message // that you send, Amazon SNS writes a log that includes the message price, the // success or failure status, the reason for failure (if the message failed), // the message dwell time, and other information. // - // DeliveryStatusSuccessSamplingRate – The percentage of successful SMS deliveries + // DeliveryStatusSuccessSamplingRate – The percentage of successful SMS deliveries // for which Amazon SNS will write logs in CloudWatch Logs. The value can be // an integer from 0 - 100. For example, to write logs only for failed deliveries, // set this value to 0. To write logs for 10% of your successful deliveries, // set it to 10. // - // DefaultSenderID – A string, such as your business brand, that is displayed + // DefaultSenderID – A string, such as your business brand, that is displayed // as the sender on the receiving device. Support for sender IDs varies by country. // The sender ID can be 1 - 11 alphanumeric characters, and it must contain // at least one letter. // - // DefaultSMSType – The type of SMS message that you will send by default. - // You can assign the following values: + // DefaultSMSType – The type of SMS message that you will send by default. You + // can assign the following values: // - // Promotional – (Default) Noncritical messages, such as marketing messages. - // Amazon SNS optimizes the message delivery to incur the lowest cost. + // * Promotional – (Default) Noncritical messages, such as marketing messages. + // Amazon SNS optimizes the message delivery to incur the lowest cost. // - // Transactional – Critical messages that support customer transactions, - // such as one-time passcodes for multi-factor authentication. Amazon SNS optimizes - // the message delivery to achieve the highest reliability. + // * Transactional – Critical messages that support customer transactions, + // such as one-time passcodes for multi-factor authentication. Amazon SNS + // optimizes the message delivery to achieve the highest reliability. // - // UsageReportS3Bucket – The name of the Amazon S3 bucket to receive daily - // SMS usage reports from Amazon SNS. Each day, Amazon SNS will deliver a usage + // UsageReportS3Bucket – The name of the Amazon S3 bucket to receive daily SMS + // usage reports from Amazon SNS. Each day, Amazon SNS will deliver a usage // report as a CSV file to the bucket. The report includes the following information // for each SMS message that was successfully delivered by your account: // - // Time that the message was published (in UTC) + // * Time that the message was published (in UTC) // - // Message ID + // * Message ID // - // Destination phone number + // * Destination phone number // - // Message type + // * Message type // - // Delivery status + // * Delivery status // - // Message price (in USD) + // * Message price (in USD) // - // Part number (a message is split into multiple parts if it is too long - // for a single message) + // * Part number (a message is split into multiple parts if it is too long + // for a single message) // - // Total number of parts + // * Total number of parts // - // To receive the report, the bucket must have a policy that allows the Amazon + // To receive the report, the bucket must have a policy that allows the Amazon // SNS service principle to perform the s3:PutObject and s3:GetBucketLocation // actions. // @@ -4239,7 +4782,14 @@ func (s *SetSMSAttributesInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *SetSMSAttributesInput) SetAttributes(v map[string]*string) *SetSMSAttributesInput { + s.Attributes = v + return s +} + // The response for the SetSMSAttributes action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetSMSAttributesResponse type SetSMSAttributesOutput struct { _ struct{} `type:"structure"` } @@ -4255,6 +4805,7 @@ func (s SetSMSAttributesOutput) GoString() string { } // Input for SetSubscriptionAttributes action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetSubscriptionAttributesInput type SetSubscriptionAttributesInput struct { _ struct{} `type:"structure"` @@ -4301,6 +4852,25 @@ func (s *SetSubscriptionAttributesInput) Validate() error { return nil } +// SetAttributeName sets the AttributeName field's value. +func (s *SetSubscriptionAttributesInput) SetAttributeName(v string) *SetSubscriptionAttributesInput { + s.AttributeName = &v + return s +} + +// SetAttributeValue sets the AttributeValue field's value. +func (s *SetSubscriptionAttributesInput) SetAttributeValue(v string) *SetSubscriptionAttributesInput { + s.AttributeValue = &v + return s +} + +// SetSubscriptionArn sets the SubscriptionArn field's value. +func (s *SetSubscriptionAttributesInput) SetSubscriptionArn(v string) *SetSubscriptionAttributesInput { + s.SubscriptionArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetSubscriptionAttributesOutput type SetSubscriptionAttributesOutput struct { _ struct{} `type:"structure"` } @@ -4316,6 +4886,7 @@ func (s SetSubscriptionAttributesOutput) GoString() string { } // Input for SetTopicAttributes action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetTopicAttributesInput type SetTopicAttributesInput struct { _ struct{} `type:"structure"` @@ -4362,6 +4933,25 @@ func (s *SetTopicAttributesInput) Validate() error { return nil } +// SetAttributeName sets the AttributeName field's value. +func (s *SetTopicAttributesInput) SetAttributeName(v string) *SetTopicAttributesInput { + s.AttributeName = &v + return s +} + +// SetAttributeValue sets the AttributeValue field's value. +func (s *SetTopicAttributesInput) SetAttributeValue(v string) *SetTopicAttributesInput { + s.AttributeValue = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *SetTopicAttributesInput) SetTopicArn(v string) *SetTopicAttributesInput { + s.TopicArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SetTopicAttributesOutput type SetTopicAttributesOutput struct { _ struct{} `type:"structure"` } @@ -4377,48 +4967,49 @@ func (s SetTopicAttributesOutput) GoString() string { } // Input for Subscribe action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SubscribeInput type SubscribeInput struct { _ struct{} `type:"structure"` // The endpoint that you want to receive notifications. Endpoints vary by protocol: // - // For the http protocol, the endpoint is an URL beginning with "http://" + // * For the http protocol, the endpoint is an URL beginning with "http://" // - // For the https protocol, the endpoint is a URL beginning with "https://" + // * For the https protocol, the endpoint is a URL beginning with "https://" // - // For the email protocol, the endpoint is an email address + // * For the email protocol, the endpoint is an email address // - // For the email-json protocol, the endpoint is an email address + // * For the email-json protocol, the endpoint is an email address // - // For the sms protocol, the endpoint is a phone number of an SMS-enabled - // device + // * For the sms protocol, the endpoint is a phone number of an SMS-enabled + // device // - // For the sqs protocol, the endpoint is the ARN of an Amazon SQS queue + // * For the sqs protocol, the endpoint is the ARN of an Amazon SQS queue // - // For the application protocol, the endpoint is the EndpointArn of a mobile - // app and device. + // * For the application protocol, the endpoint is the EndpointArn of a mobile + // app and device. // - // For the lambda protocol, the endpoint is the ARN of an AWS Lambda function. + // * For the lambda protocol, the endpoint is the ARN of an AWS Lambda function. Endpoint *string `type:"string"` // The protocol you want to use. Supported protocols include: // - // http -- delivery of JSON-encoded message via HTTP POST + // * http -- delivery of JSON-encoded message via HTTP POST // - // https -- delivery of JSON-encoded message via HTTPS POST + // * https -- delivery of JSON-encoded message via HTTPS POST // - // email -- delivery of message via SMTP + // * email -- delivery of message via SMTP // - // email-json -- delivery of JSON-encoded message via SMTP + // * email-json -- delivery of JSON-encoded message via SMTP // - // sms -- delivery of message via SMS + // * sms -- delivery of message via SMS // - // sqs -- delivery of JSON-encoded message to an Amazon SQS queue + // * sqs -- delivery of JSON-encoded message to an Amazon SQS queue // - // application -- delivery of JSON-encoded message to an EndpointArn for - // a mobile app and device. + // * application -- delivery of JSON-encoded message to an EndpointArn for + // a mobile app and device. // - // lambda -- delivery of JSON-encoded message to an AWS Lambda function. + // * lambda -- delivery of JSON-encoded message to an AWS Lambda function. // // Protocol is a required field Protocol *string `type:"string" required:"true"` @@ -4455,7 +5046,26 @@ func (s *SubscribeInput) Validate() error { return nil } +// SetEndpoint sets the Endpoint field's value. +func (s *SubscribeInput) SetEndpoint(v string) *SubscribeInput { + s.Endpoint = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *SubscribeInput) SetProtocol(v string) *SubscribeInput { + s.Protocol = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *SubscribeInput) SetTopicArn(v string) *SubscribeInput { + s.TopicArn = &v + return s +} + // Response for Subscribe action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/SubscribeResponse type SubscribeOutput struct { _ struct{} `type:"structure"` @@ -4474,7 +5084,14 @@ func (s SubscribeOutput) GoString() string { return s.String() } +// SetSubscriptionArn sets the SubscriptionArn field's value. +func (s *SubscribeOutput) SetSubscriptionArn(v string) *SubscribeOutput { + s.SubscriptionArn = &v + return s +} + // A wrapper type for the attributes of an Amazon SNS subscription. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/Subscription type Subscription struct { _ struct{} `type:"structure"` @@ -4504,8 +5121,39 @@ func (s Subscription) GoString() string { return s.String() } +// SetEndpoint sets the Endpoint field's value. +func (s *Subscription) SetEndpoint(v string) *Subscription { + s.Endpoint = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *Subscription) SetOwner(v string) *Subscription { + s.Owner = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *Subscription) SetProtocol(v string) *Subscription { + s.Protocol = &v + return s +} + +// SetSubscriptionArn sets the SubscriptionArn field's value. +func (s *Subscription) SetSubscriptionArn(v string) *Subscription { + s.SubscriptionArn = &v + return s +} + +// SetTopicArn sets the TopicArn field's value. +func (s *Subscription) SetTopicArn(v string) *Subscription { + s.TopicArn = &v + return s +} + // A wrapper type for the topic's Amazon Resource Name (ARN). To retrieve a // topic's attributes, use GetTopicAttributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/Topic type Topic struct { _ struct{} `type:"structure"` @@ -4523,7 +5171,14 @@ func (s Topic) GoString() string { return s.String() } +// SetTopicArn sets the TopicArn field's value. +func (s *Topic) SetTopicArn(v string) *Topic { + s.TopicArn = &v + return s +} + // Input for Unsubscribe action. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/UnsubscribeInput type UnsubscribeInput struct { _ struct{} `type:"structure"` @@ -4556,6 +5211,13 @@ func (s *UnsubscribeInput) Validate() error { return nil } +// SetSubscriptionArn sets the SubscriptionArn field's value. +func (s *UnsubscribeInput) SetSubscriptionArn(v string) *UnsubscribeInput { + s.SubscriptionArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/UnsubscribeOutput type UnsubscribeOutput struct { _ struct{} `type:"structure"` } diff --git a/vendor/github.com/aws/aws-sdk-go/service/sns/errors.go b/vendor/github.com/aws/aws-sdk-go/service/sns/errors.go new file mode 100644 index 000000000..c6e3dbe20 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sns/errors.go @@ -0,0 +1,67 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package sns + +const ( + + // ErrCodeAuthorizationErrorException for service response error code + // "AuthorizationError". + // + // Indicates that the user has been denied access to the requested resource. + ErrCodeAuthorizationErrorException = "AuthorizationError" + + // ErrCodeEndpointDisabledException for service response error code + // "EndpointDisabled". + // + // Exception error indicating endpoint disabled. + ErrCodeEndpointDisabledException = "EndpointDisabled" + + // ErrCodeInternalErrorException for service response error code + // "InternalError". + // + // Indicates an internal service error. + ErrCodeInternalErrorException = "InternalError" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameter". + // + // Indicates that a request parameter does not comply with the associated constraints. + ErrCodeInvalidParameterException = "InvalidParameter" + + // ErrCodeInvalidParameterValueException for service response error code + // "ParameterValueInvalid". + // + // Indicates that a request parameter does not comply with the associated constraints. + ErrCodeInvalidParameterValueException = "ParameterValueInvalid" + + // ErrCodeNotFoundException for service response error code + // "NotFound". + // + // Indicates that the requested resource does not exist. + ErrCodeNotFoundException = "NotFound" + + // ErrCodePlatformApplicationDisabledException for service response error code + // "PlatformApplicationDisabled". + // + // Exception error indicating platform application disabled. + ErrCodePlatformApplicationDisabledException = "PlatformApplicationDisabled" + + // ErrCodeSubscriptionLimitExceededException for service response error code + // "SubscriptionLimitExceeded". + // + // Indicates that the customer already owns the maximum allowed number of subscriptions. + ErrCodeSubscriptionLimitExceededException = "SubscriptionLimitExceeded" + + // ErrCodeThrottledException for service response error code + // "Throttled". + // + // Indicates that the rate at which requests have been submitted for this action + // exceeds the limit for your account. + ErrCodeThrottledException = "Throttled" + + // ErrCodeTopicLimitExceededException for service response error code + // "TopicLimitExceeded". + // + // Indicates that the customer already owns the maximum allowed number of topics. + ErrCodeTopicLimitExceededException = "TopicLimitExceeded" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sns/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/sns/examples_test.go index 4fe35b39d..46256985e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sns/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sns/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSNS_AddPermission() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -50,11 +46,7 @@ func ExampleSNS_AddPermission() { } func ExampleSNS_CheckIfPhoneNumberIsOptedOut() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -75,11 +67,7 @@ func ExampleSNS_CheckIfPhoneNumberIsOptedOut() { } func ExampleSNS_ConfirmSubscription() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -102,11 +90,7 @@ func ExampleSNS_ConfirmSubscription() { } func ExampleSNS_CreatePlatformApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -132,11 +116,7 @@ func ExampleSNS_CreatePlatformApplication() { } func ExampleSNS_CreatePlatformEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -163,11 +143,7 @@ func ExampleSNS_CreatePlatformEndpoint() { } func ExampleSNS_CreateTopic() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -188,11 +164,7 @@ func ExampleSNS_CreateTopic() { } func ExampleSNS_DeleteEndpoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -213,11 +185,7 @@ func ExampleSNS_DeleteEndpoint() { } func ExampleSNS_DeletePlatformApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -238,11 +206,7 @@ func ExampleSNS_DeletePlatformApplication() { } func ExampleSNS_DeleteTopic() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -263,11 +227,7 @@ func ExampleSNS_DeleteTopic() { } func ExampleSNS_GetEndpointAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -288,11 +248,7 @@ func ExampleSNS_GetEndpointAttributes() { } func ExampleSNS_GetPlatformApplicationAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -313,11 +269,7 @@ func ExampleSNS_GetPlatformApplicationAttributes() { } func ExampleSNS_GetSMSAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -341,11 +293,7 @@ func ExampleSNS_GetSMSAttributes() { } func ExampleSNS_GetSubscriptionAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -366,11 +314,7 @@ func ExampleSNS_GetSubscriptionAttributes() { } func ExampleSNS_GetTopicAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -391,11 +335,7 @@ func ExampleSNS_GetTopicAttributes() { } func ExampleSNS_ListEndpointsByPlatformApplication() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -417,11 +357,7 @@ func ExampleSNS_ListEndpointsByPlatformApplication() { } func ExampleSNS_ListPhoneNumbersOptedOut() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -442,11 +378,7 @@ func ExampleSNS_ListPhoneNumbersOptedOut() { } func ExampleSNS_ListPlatformApplications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -467,11 +399,7 @@ func ExampleSNS_ListPlatformApplications() { } func ExampleSNS_ListSubscriptions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -492,11 +420,7 @@ func ExampleSNS_ListSubscriptions() { } func ExampleSNS_ListSubscriptionsByTopic() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -518,11 +442,7 @@ func ExampleSNS_ListSubscriptionsByTopic() { } func ExampleSNS_ListTopics() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -543,11 +463,7 @@ func ExampleSNS_ListTopics() { } func ExampleSNS_OptInPhoneNumber() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -568,11 +484,7 @@ func ExampleSNS_OptInPhoneNumber() { } func ExampleSNS_Publish() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -606,11 +518,7 @@ func ExampleSNS_Publish() { } func ExampleSNS_RemovePermission() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -632,11 +540,7 @@ func ExampleSNS_RemovePermission() { } func ExampleSNS_SetEndpointAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -661,11 +565,7 @@ func ExampleSNS_SetEndpointAttributes() { } func ExampleSNS_SetPlatformApplicationAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -690,11 +590,7 @@ func ExampleSNS_SetPlatformApplicationAttributes() { } func ExampleSNS_SetSMSAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -718,11 +614,7 @@ func ExampleSNS_SetSMSAttributes() { } func ExampleSNS_SetSubscriptionAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -745,11 +637,7 @@ func ExampleSNS_SetSubscriptionAttributes() { } func ExampleSNS_SetTopicAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -772,11 +660,7 @@ func ExampleSNS_SetTopicAttributes() { } func ExampleSNS_Subscribe() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) @@ -799,11 +683,7 @@ func ExampleSNS_Subscribe() { } func ExampleSNS_Unsubscribe() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sns.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sns/service.go b/vendor/github.com/aws/aws-sdk-go/service/sns/service.go index 75ecb0ac5..6bb73fa7c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sns/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sns/service.go @@ -24,8 +24,9 @@ import ( // care of tasks such as: cryptographically signing your service requests, retrying // requests, and handling error responses. For a list of available SDKs, go // to Tools for Amazon Web Services (http://aws.amazon.com/tools/). -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31 type SNS struct { *client.Client } @@ -36,8 +37,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "sns" +// Service information constants +const ( + ServiceName = "sns" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the SNS client with a session. // If additional configuration is needed for the client instance use the optional @@ -50,17 +54,18 @@ const ServiceName = "sns" // // Create a SNS client with additional configuration // svc := sns.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *SNS { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *SNS { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *SNS { svc := &SNS{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2010-03-31", diff --git a/vendor/github.com/aws/aws-sdk-go/service/sns/snsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/sns/snsiface/interface.go index 4e816d6a4..4dd9a5e1c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sns/snsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sns/snsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockSNSClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/api.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/api.go index 78acaf7d9..207ef6d49 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/api.go @@ -38,6 +38,7 @@ const opAddPermission = "AddPermission" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/AddPermission func (c *SQS) AddPermissionRequest(input *AddPermissionInput) (req *request.Request, output *AddPermissionOutput) { op := &request.Operation{ Name: opAddPermission, @@ -49,33 +50,36 @@ func (c *SQS) AddPermissionRequest(input *AddPermissionInput) (req *request.Requ input = &AddPermissionInput{} } + output = &AddPermissionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AddPermissionOutput{} - req.Data = output return } // AddPermission API operation for Amazon Simple Queue Service. // // Adds a permission to a queue for a specific principal (http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P). -// This allows for sharing access to the queue. +// This allows sharing access to the queue. // // When you create a queue, you have full control access rights for the queue. -// Only you (as owner of the queue) can grant or deny permissions to the queue. +// Only you, the owner of the queue, can grant or deny permissions to the queue. // For more information about these permissions, see Shared Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html) // in the Amazon SQS Developer Guide. // -// AddPermission writes an Amazon SQS-generated policy. If you want to write +// AddPermission writes an Amazon-SQS-generated policy. If you want to write // your own policy, use SetQueueAttributes to upload your policy. For more information // about writing your own policy, see Using The Access Policy Language (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AccessPolicyLanguage.html) // in the Amazon SQS Developer Guide. // -// Some API actions take lists of parameters. These lists are specified using -// the param.n notation. Values of n are integers starting from 1. For example, +// Some actions take lists of parameters. These lists are specified using the +// param.n notation. Values of n are integers starting from 1. For example, // a parameter list with two elements looks like this: // +// &Attribute.1=this +// +// &Attribute.2=that +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -84,12 +88,13 @@ func (c *SQS) AddPermissionRequest(input *AddPermissionInput) (req *request.Requ // API operation AddPermission for usage and error information. // // Returned Error Codes: -// * OverLimit +// * ErrCodeOverLimit "OverLimit" // The action that you requested would violate a limit. For example, ReceiveMessage -// returns this error if the maximum number of messages inflight has already -// been reached. AddPermission returns this error if the maximum number of permissions -// for the queue has already been reached. +// returns this error if the maximum number of inflight messages is reached. +// AddPermission returns this error if the maximum number of permissions for +// the queue is reached. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/AddPermission func (c *SQS) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, error) { req, out := c.AddPermissionRequest(input) err := req.Send() @@ -122,6 +127,7 @@ const opChangeMessageVisibility = "ChangeMessageVisibility" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ChangeMessageVisibility func (c *SQS) ChangeMessageVisibilityRequest(input *ChangeMessageVisibilityInput) (req *request.Request, output *ChangeMessageVisibilityOutput) { op := &request.Operation{ Name: opChangeMessageVisibility, @@ -133,49 +139,52 @@ func (c *SQS) ChangeMessageVisibilityRequest(input *ChangeMessageVisibilityInput input = &ChangeMessageVisibilityInput{} } + output = &ChangeMessageVisibilityOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ChangeMessageVisibilityOutput{} - req.Data = output return } // ChangeMessageVisibility API operation for Amazon Simple Queue Service. // // Changes the visibility timeout of a specified message in a queue to a new -// value. The maximum allowed timeout value you can set the value to is 12 hours. -// This means you can't extend the timeout of a message in an existing queue -// to more than a total visibility timeout of 12 hours. (For more information -// visibility timeout, see Visibility Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html) -// in the Amazon SQS Developer Guide.) -// -// For example, let's say you have a message and its default message visibility -// timeout is 5 minutes. After 3 minutes, you call ChangeMessageVisiblity with -// a timeout of 10 minutes. At that time, the timeout for the message would -// be extended by 10 minutes beyond the time of the ChangeMessageVisibility -// call. This results in a total visibility timeout of 13 minutes. You can continue -// to call ChangeMessageVisibility to extend the visibility timeout to a maximum -// of 12 hours. If you try to extend beyond 12 hours, the request will be rejected. -// -// There is a 120,000 limit for the number of inflight messages per queue. -// Messages are inflight after they have been received from the queue by a consuming -// component, but have not yet been deleted from the queue. If you reach the -// 120,000 limit, you will receive an OverLimit error message from Amazon SQS. -// To help avoid reaching the limit, you should delete the messages from the -// queue after they have been processed. You can also increase the number of -// queues you use to process the messages. -// -// If you attempt to set the VisibilityTimeout to an amount more than the maximum -// time left, Amazon SQS returns an error. It will not automatically recalculate -// and increase the timeout to the maximum time remaining. +// value. The maximum allowed timeout value is 12 hours. Thus, you can't extend +// the timeout of a message in an existing queue to more than a total visibility +// timeout of 12 hours. For more information, see Visibility Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) +// in the Amazon SQS Developer Guide. +// +// For example, you have a message and with the default visibility timeout of +// 5 minutes. After 3 minutes, you call ChangeMessageVisiblity with a timeout +// of 10 minutes. At that time, the timeout for the message is extended by 10 +// minutes beyond the time of the ChangeMessageVisibility action. This results +// in a total visibility timeout of 13 minutes. You can continue to call the +// ChangeMessageVisibility to extend the visibility timeout to a maximum of +// 12 hours. If you try to extend the visibility timeout beyond 12 hours, your +// request is rejected. +// +// A message is considered to be in flight after it's received from a queue +// by a consumer, but not yet deleted from the queue. +// +// For standard queues, there can be a maximum of 120,000 inflight messages +// per queue. If you reach this limit, Amazon SQS returns the OverLimit error +// message. To avoid reaching the limit, you should delete messages from the +// queue after they're processed. You can also increase the number of queues +// you use to process your messages. +// +// For FIFO queues, there can be a maximum of 20,000 inflight messages per queue. +// If you reach this limit, Amazon SQS returns no error messages. +// +// If you attempt to set the VisibilityTimeout to a value greater than the maximum +// time left, Amazon SQS returns an error. Amazon SQS doesn't automatically +// recalculate and increase the timeout to the maximum remaining time. // // Unlike with a queue, when you change the visibility timeout for a specific -// message, that timeout value is applied immediately but is not saved in memory +// message the timeout value is applied immediately but isn't saved in memory // for that message. If you don't delete a message after it is received, the -// visibility timeout for the message the next time it is received reverts to -// the original timeout value, not the value you set with the ChangeMessageVisibility -// action. +// visibility timeout for the message reverts to the original timeout value +// (not to the value you set using the ChangeMessageVisibility action) the next +// time the message is received. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -185,12 +194,13 @@ func (c *SQS) ChangeMessageVisibilityRequest(input *ChangeMessageVisibilityInput // API operation ChangeMessageVisibility for usage and error information. // // Returned Error Codes: -// * AWS.SimpleQueueService.MessageNotInflight -// The message referred to is not in flight. +// * ErrCodeMessageNotInflight "AWS.SimpleQueueService.MessageNotInflight" +// The message referred to isn't in flight. // -// * ReceiptHandleIsInvalid -// The receipt handle provided is not valid. +// * ErrCodeReceiptHandleIsInvalid "ReceiptHandleIsInvalid" +// The receipt handle provided isn't valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ChangeMessageVisibility func (c *SQS) ChangeMessageVisibility(input *ChangeMessageVisibilityInput) (*ChangeMessageVisibilityOutput, error) { req, out := c.ChangeMessageVisibilityRequest(input) err := req.Send() @@ -223,6 +233,7 @@ const opChangeMessageVisibilityBatch = "ChangeMessageVisibilityBatch" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ChangeMessageVisibilityBatch func (c *SQS) ChangeMessageVisibilityBatchRequest(input *ChangeMessageVisibilityBatchInput) (req *request.Request, output *ChangeMessageVisibilityBatchOutput) { op := &request.Operation{ Name: opChangeMessageVisibilityBatch, @@ -234,9 +245,8 @@ func (c *SQS) ChangeMessageVisibilityBatchRequest(input *ChangeMessageVisibility input = &ChangeMessageVisibilityBatchInput{} } - req = c.newRequest(op, input, output) output = &ChangeMessageVisibilityBatchOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -247,14 +257,18 @@ func (c *SQS) ChangeMessageVisibilityBatchRequest(input *ChangeMessageVisibility // individually in the response. You can send up to 10 ChangeMessageVisibility // requests with each ChangeMessageVisibilityBatch action. // -// Because the batch request can result in a combination of successful and -// unsuccessful actions, you should check for batch errors even when the call -// returns an HTTP status code of 200. +// Because the batch request can result in a combination of successful and unsuccessful +// actions, you should check for batch errors even when the call returns an +// HTTP status code of 200. // -// Some API actions take lists of parameters. These lists are specified using -// the param.n notation. Values of n are integers starting from 1. For example, +// Some actions take lists of parameters. These lists are specified using the +// param.n notation. Values of n are integers starting from 1. For example, // a parameter list with two elements looks like this: // +// &Attribute.1=this +// +// &Attribute.2=that +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -263,18 +277,19 @@ func (c *SQS) ChangeMessageVisibilityBatchRequest(input *ChangeMessageVisibility // API operation ChangeMessageVisibilityBatch for usage and error information. // // Returned Error Codes: -// * AWS.SimpleQueueService.TooManyEntriesInBatchRequest -// Batch request contains more number of entries than permissible. +// * ErrCodeTooManyEntriesInBatchRequest "AWS.SimpleQueueService.TooManyEntriesInBatchRequest" +// The batch request contains more entries than permissible. // -// * AWS.SimpleQueueService.EmptyBatchRequest -// Batch request does not contain an entry. +// * ErrCodeEmptyBatchRequest "AWS.SimpleQueueService.EmptyBatchRequest" +// The batch request doesn't contain any entries. // -// * AWS.SimpleQueueService.BatchEntryIdsNotDistinct -// Two or more batch entries have the same Id in the request. +// * ErrCodeBatchEntryIdsNotDistinct "AWS.SimpleQueueService.BatchEntryIdsNotDistinct" +// Two or more batch entries in the request have the same Id. // -// * AWS.SimpleQueueService.InvalidBatchEntryId -// The Id of a batch entry in a batch request does not abide by the specification. +// * ErrCodeInvalidBatchEntryId "AWS.SimpleQueueService.InvalidBatchEntryId" +// The Id of a batch entry in a batch request doesn't abide by the specification. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ChangeMessageVisibilityBatch func (c *SQS) ChangeMessageVisibilityBatch(input *ChangeMessageVisibilityBatchInput) (*ChangeMessageVisibilityBatchOutput, error) { req, out := c.ChangeMessageVisibilityBatchRequest(input) err := req.Send() @@ -307,6 +322,7 @@ const opCreateQueue = "CreateQueue" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/CreateQueue func (c *SQS) CreateQueueRequest(input *CreateQueueInput) (req *request.Request, output *CreateQueueOutput) { op := &request.Operation{ Name: opCreateQueue, @@ -318,38 +334,55 @@ func (c *SQS) CreateQueueRequest(input *CreateQueueInput) (req *request.Request, input = &CreateQueueInput{} } - req = c.newRequest(op, input, output) output = &CreateQueueOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // CreateQueue API operation for Amazon Simple Queue Service. // -// Creates a new queue, or returns the URL of an existing one. When you request -// CreateQueue, you provide a name for the queue. To successfully create a new -// queue, you must provide a name that is unique within the scope of your own -// queues. +// Creates a new standard or FIFO queue or returns the URL of an existing queue. +// You can pass one or more attributes in the request. Keep the following caveats +// in mind: // -// If you delete a queue, you must wait at least 60 seconds before creating -// a queue with the same name. +// * If you don't specify the FifoQueue attribute, Amazon SQS creates a standard +// queue. +// +// You can't change the queue type after you create it and you can't convert +// an existing standard queue into a FIFO queue. You must either create a +// new FIFO queue for your application or delete your existing standard queue +// and recreate it as a FIFO queue. For more information, see Moving From +// a Standard Queue to a FIFO Queue (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-moving) +// in the Amazon SQS Developer Guide. +// +// * If you don't provide a value for an attribute, the queue is created +// with the default value for the attribute. // -// You may pass one or more attributes in the request. If you do not provide -// a value for any attribute, the queue will have the default value for that -// attribute. +// * If you delete a queue, you must wait at least 60 seconds before creating +// a queue with the same name. // -// Use GetQueueUrl to get a queue's URL. GetQueueUrl requires only the QueueName -// parameter. +// To successfully create a new queue, you must provide a queue name that adheres +// to the limits related to queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/limits-queues.html) +// and is unique within the scope of your queues. // -// If you provide the name of an existing queue, along with the exact names -// and values of all the queue's attributes, CreateQueue returns the queue URL -// for the existing queue. If the queue name, attribute names, or attribute -// values do not match an existing queue, CreateQueue returns an error. +// To get the queue URL, use the GetQueueUrl action. GetQueueUrl requires only +// the QueueName parameter. be aware of existing queue names: // -// Some API actions take lists of parameters. These lists are specified using -// the param.n notation. Values of n are integers starting from 1. For example, +// * If you provide the name of an existing queue along with the exact names +// and values of all the queue's attributes, CreateQueue returns the queue +// URL for the existing queue. +// +// * If the queue name, attribute names, or attribute values don't match +// an existing queue, CreateQueue returns an error. +// +// Some actions take lists of parameters. These lists are specified using the +// param.n notation. Values of n are integers starting from 1. For example, // a parameter list with two elements looks like this: // +// &Attribute.1=this +// +// &Attribute.2=that +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -358,15 +391,16 @@ func (c *SQS) CreateQueueRequest(input *CreateQueueInput) (req *request.Request, // API operation CreateQueue for usage and error information. // // Returned Error Codes: -// * AWS.SimpleQueueService.QueueDeletedRecently +// * ErrCodeQueueDeletedRecently "AWS.SimpleQueueService.QueueDeletedRecently" // You must wait 60 seconds after deleting a queue before you can create another -// with the same name. +// one with the same name. // -// * QueueAlreadyExists +// * ErrCodeQueueNameExists "QueueAlreadyExists" // A queue already exists with this name. Amazon SQS returns this error only // if the request includes attributes whose values differ from those of the // existing queue. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/CreateQueue func (c *SQS) CreateQueue(input *CreateQueueInput) (*CreateQueueOutput, error) { req, out := c.CreateQueueRequest(input) err := req.Send() @@ -399,6 +433,7 @@ const opDeleteMessage = "DeleteMessage" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/DeleteMessage func (c *SQS) DeleteMessageRequest(input *DeleteMessageInput) (req *request.Request, output *DeleteMessageOutput) { op := &request.Operation{ Name: opDeleteMessage, @@ -410,36 +445,35 @@ func (c *SQS) DeleteMessageRequest(input *DeleteMessageInput) (req *request.Requ input = &DeleteMessageInput{} } + output = &DeleteMessageOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteMessageOutput{} - req.Data = output return } // DeleteMessage API operation for Amazon Simple Queue Service. // // Deletes the specified message from the specified queue. You specify the message -// by using the message's receipt handle and not the message ID you received -// when you sent the message. Even if the message is locked by another reader -// due to the visibility timeout setting, it is still deleted from the queue. -// If you leave a message in the queue for longer than the queue's configured -// retention period, Amazon SQS automatically deletes it. -// -// The receipt handle is associated with a specific instance of receiving -// the message. If you receive a message more than once, the receipt handle -// you get each time you receive the message is different. When you request -// DeleteMessage, if you don't provide the most recently received receipt handle -// for the message, the request will still succeed, but the message might not -// be deleted. -// -// It is possible you will receive a message even after you have deleted +// by using the message's receipt handle and not the MessageId you receive when +// you send the message. Even if the message is locked by another reader due +// to the visibility timeout setting, it is still deleted from the queue. If +// you leave a message in the queue for longer than the queue's configured retention +// period, Amazon SQS automatically deletes the message. +// +// The receipt handle is associated with a specific instance of receiving the +// message. If you receive a message more than once, the receipt handle you +// get each time you receive the message is different. If you don't provide +// the most recently received receipt handle for the message when you use the +// DeleteMessage action, the request succeeds, but the message might not be +// deleted. +// +// For standard queues, it is possible to receive a message even after you deleting // it. This might happen on rare occasions if one of the servers storing a copy -// of the message is unavailable when you request to delete the message. The -// copy remains on the server and might be returned to you again on a subsequent -// receive request. You should create your system to be idempotent so that receiving -// a particular message more than once is not a problem. +// of the message is unavailable when you send the request to delete the message. +// The copy remains on the server and might be returned to you on a subsequent +// receive request. You should ensure that your application is idempotent, so +// that receiving a message more than once does not cause issues. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -449,12 +483,13 @@ func (c *SQS) DeleteMessageRequest(input *DeleteMessageInput) (req *request.Requ // API operation DeleteMessage for usage and error information. // // Returned Error Codes: -// * InvalidIdFormat -// The receipt handle is not valid for the current version. +// * ErrCodeInvalidIdFormat "InvalidIdFormat" +// The receipt handle isn't valid for the current version. // -// * ReceiptHandleIsInvalid -// The receipt handle provided is not valid. +// * ErrCodeReceiptHandleIsInvalid "ReceiptHandleIsInvalid" +// The receipt handle provided isn't valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/DeleteMessage func (c *SQS) DeleteMessage(input *DeleteMessageInput) (*DeleteMessageOutput, error) { req, out := c.DeleteMessageRequest(input) err := req.Send() @@ -487,6 +522,7 @@ const opDeleteMessageBatch = "DeleteMessageBatch" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/DeleteMessageBatch func (c *SQS) DeleteMessageBatchRequest(input *DeleteMessageBatchInput) (req *request.Request, output *DeleteMessageBatchOutput) { op := &request.Operation{ Name: opDeleteMessageBatch, @@ -498,26 +534,29 @@ func (c *SQS) DeleteMessageBatchRequest(input *DeleteMessageBatchInput) (req *re input = &DeleteMessageBatchInput{} } - req = c.newRequest(op, input, output) output = &DeleteMessageBatchOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // DeleteMessageBatch API operation for Amazon Simple Queue Service. // // Deletes up to ten messages from the specified queue. This is a batch version -// of DeleteMessage. The result of the delete action on each message is reported -// individually in the response. +// of DeleteMessage. The result of the action on each message is reported individually +// in the response. // -// Because the batch request can result in a combination of successful and -// unsuccessful actions, you should check for batch errors even when the call -// returns an HTTP status code of 200. +// Because the batch request can result in a combination of successful and unsuccessful +// actions, you should check for batch errors even when the call returns an +// HTTP status code of 200. // -// Some API actions take lists of parameters. These lists are specified using -// the param.n notation. Values of n are integers starting from 1. For example, +// Some actions take lists of parameters. These lists are specified using the +// param.n notation. Values of n are integers starting from 1. For example, // a parameter list with two elements looks like this: // +// &Attribute.1=this +// +// &Attribute.2=that +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -526,18 +565,19 @@ func (c *SQS) DeleteMessageBatchRequest(input *DeleteMessageBatchInput) (req *re // API operation DeleteMessageBatch for usage and error information. // // Returned Error Codes: -// * AWS.SimpleQueueService.TooManyEntriesInBatchRequest -// Batch request contains more number of entries than permissible. +// * ErrCodeTooManyEntriesInBatchRequest "AWS.SimpleQueueService.TooManyEntriesInBatchRequest" +// The batch request contains more entries than permissible. // -// * AWS.SimpleQueueService.EmptyBatchRequest -// Batch request does not contain an entry. +// * ErrCodeEmptyBatchRequest "AWS.SimpleQueueService.EmptyBatchRequest" +// The batch request doesn't contain any entries. // -// * AWS.SimpleQueueService.BatchEntryIdsNotDistinct -// Two or more batch entries have the same Id in the request. +// * ErrCodeBatchEntryIdsNotDistinct "AWS.SimpleQueueService.BatchEntryIdsNotDistinct" +// Two or more batch entries in the request have the same Id. // -// * AWS.SimpleQueueService.InvalidBatchEntryId -// The Id of a batch entry in a batch request does not abide by the specification. +// * ErrCodeInvalidBatchEntryId "AWS.SimpleQueueService.InvalidBatchEntryId" +// The Id of a batch entry in a batch request doesn't abide by the specification. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/DeleteMessageBatch func (c *SQS) DeleteMessageBatch(input *DeleteMessageBatchInput) (*DeleteMessageBatchOutput, error) { req, out := c.DeleteMessageBatchRequest(input) err := req.Send() @@ -570,6 +610,7 @@ const opDeleteQueue = "DeleteQueue" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/DeleteQueue func (c *SQS) DeleteQueueRequest(input *DeleteQueueInput) (req *request.Request, output *DeleteQueueOutput) { op := &request.Operation{ Name: opDeleteQueue, @@ -581,33 +622,28 @@ func (c *SQS) DeleteQueueRequest(input *DeleteQueueInput) (req *request.Request, input = &DeleteQueueInput{} } + output = &DeleteQueueOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteQueueOutput{} - req.Data = output return } // DeleteQueue API operation for Amazon Simple Queue Service. // -// Deletes the queue specified by the queue URL, regardless of whether the queue -// is empty. If the specified queue does not exist, Amazon SQS returns a successful -// response. +// Deletes the queue specified by the QueueUrl, even if the queue is empty. +// If the specified queue doesn't exist, Amazon SQS returns a successful response. // -// Use DeleteQueue with care; once you delete your queue, any messages in -// the queue are no longer available. +// Be careful with the DeleteQueue action: When you delete a queue, any messages +// in the queue are no longer available. // -// When you delete a queue, the deletion process takes up to 60 seconds. -// Requests you send involving that queue during the 60 seconds might succeed. -// For example, a SendMessage request might succeed, but after the 60 seconds, -// the queue and that message you sent no longer exist. Also, when you delete -// a queue, you must wait at least 60 seconds before creating a queue with the -// same name. +// When you delete a queue, the deletion process takes up to 60 seconds. Requests +// you send involving that queue during the 60 seconds might succeed. For example, +// a SendMessage request might succeed, but after 60 seconds the queue and the +// message you sent no longer exist. // -// We reserve the right to delete queues that have had no activity for more -// than 30 days. For more information, see How Amazon SQS Queues Work (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSConcepts.html) -// in the Amazon SQS Developer Guide. +// When you delete a queue, you must wait at least 60 seconds before creating +// a queue with the same name. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -615,6 +651,7 @@ func (c *SQS) DeleteQueueRequest(input *DeleteQueueInput) (req *request.Request, // // See the AWS API reference guide for Amazon Simple Queue Service's // API operation DeleteQueue for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/DeleteQueue func (c *SQS) DeleteQueue(input *DeleteQueueInput) (*DeleteQueueOutput, error) { req, out := c.DeleteQueueRequest(input) err := req.Send() @@ -647,6 +684,7 @@ const opGetQueueAttributes = "GetQueueAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/GetQueueAttributes func (c *SQS) GetQueueAttributesRequest(input *GetQueueAttributesInput) (req *request.Request, output *GetQueueAttributesOutput) { op := &request.Operation{ Name: opGetQueueAttributes, @@ -658,9 +696,8 @@ func (c *SQS) GetQueueAttributesRequest(input *GetQueueAttributesInput) (req *re input = &GetQueueAttributesInput{} } - req = c.newRequest(op, input, output) output = &GetQueueAttributesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -668,10 +705,14 @@ func (c *SQS) GetQueueAttributesRequest(input *GetQueueAttributesInput) (req *re // // Gets attributes for the specified queue. // -// Some API actions take lists of parameters. These lists are specified using -// the param.n notation. Values of n are integers starting from 1. For example, +// Some actions take lists of parameters. These lists are specified using the +// param.n notation. Values of n are integers starting from 1. For example, // a parameter list with two elements looks like this: // +// &Attribute.1=this +// +// &Attribute.2=that +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -680,9 +721,10 @@ func (c *SQS) GetQueueAttributesRequest(input *GetQueueAttributesInput) (req *re // API operation GetQueueAttributes for usage and error information. // // Returned Error Codes: -// * InvalidAttributeName -// The attribute referred to does not exist. +// * ErrCodeInvalidAttributeName "InvalidAttributeName" +// The attribute referred to doesn't exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/GetQueueAttributes func (c *SQS) GetQueueAttributes(input *GetQueueAttributesInput) (*GetQueueAttributesOutput, error) { req, out := c.GetQueueAttributesRequest(input) err := req.Send() @@ -715,6 +757,7 @@ const opGetQueueUrl = "GetQueueUrl" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/GetQueueUrl func (c *SQS) GetQueueUrlRequest(input *GetQueueUrlInput) (req *request.Request, output *GetQueueUrlOutput) { op := &request.Operation{ Name: opGetQueueUrl, @@ -726,9 +769,8 @@ func (c *SQS) GetQueueUrlRequest(input *GetQueueUrlInput) (req *request.Request, input = &GetQueueUrlInput{} } - req = c.newRequest(op, input, output) output = &GetQueueUrlOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -737,10 +779,10 @@ func (c *SQS) GetQueueUrlRequest(input *GetQueueUrlInput) (req *request.Request, // Returns the URL of an existing queue. This action provides a simple way to // retrieve the URL of an Amazon SQS queue. // -// To access a queue that belongs to another AWS account, use the QueueOwnerAWSAccountId +// To access a queue that belongs to another AWS account, use the QueueOwnerAWSAccountId // parameter to specify the account ID of the queue's owner. The queue's owner // must grant you permission to access the queue. For more information about -// shared queue access, see AddPermission or go to Shared Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html) +// shared queue access, see AddPermission or see Shared Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html) // in the Amazon SQS Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -751,9 +793,10 @@ func (c *SQS) GetQueueUrlRequest(input *GetQueueUrlInput) (req *request.Request, // API operation GetQueueUrl for usage and error information. // // Returned Error Codes: -// * AWS.SimpleQueueService.NonExistentQueue -// The queue referred to does not exist. +// * ErrCodeQueueDoesNotExist "AWS.SimpleQueueService.NonExistentQueue" +// The queue referred to doesn't exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/GetQueueUrl func (c *SQS) GetQueueUrl(input *GetQueueUrlInput) (*GetQueueUrlOutput, error) { req, out := c.GetQueueUrlRequest(input) err := req.Send() @@ -786,6 +829,7 @@ const opListDeadLetterSourceQueues = "ListDeadLetterSourceQueues" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ListDeadLetterSourceQueues func (c *SQS) ListDeadLetterSourceQueuesRequest(input *ListDeadLetterSourceQueuesInput) (req *request.Request, output *ListDeadLetterSourceQueuesOutput) { op := &request.Operation{ Name: opListDeadLetterSourceQueues, @@ -797,9 +841,8 @@ func (c *SQS) ListDeadLetterSourceQueuesRequest(input *ListDeadLetterSourceQueue input = &ListDeadLetterSourceQueuesInput{} } - req = c.newRequest(op, input, output) output = &ListDeadLetterSourceQueuesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -809,7 +852,8 @@ func (c *SQS) ListDeadLetterSourceQueuesRequest(input *ListDeadLetterSourceQueue // configured with a dead letter queue. // // For more information about using dead letter queues, see Using Amazon SQS -// Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html). +// Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) +// in the Amazon SQS Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -819,9 +863,10 @@ func (c *SQS) ListDeadLetterSourceQueuesRequest(input *ListDeadLetterSourceQueue // API operation ListDeadLetterSourceQueues for usage and error information. // // Returned Error Codes: -// * AWS.SimpleQueueService.NonExistentQueue -// The queue referred to does not exist. +// * ErrCodeQueueDoesNotExist "AWS.SimpleQueueService.NonExistentQueue" +// The queue referred to doesn't exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ListDeadLetterSourceQueues func (c *SQS) ListDeadLetterSourceQueues(input *ListDeadLetterSourceQueuesInput) (*ListDeadLetterSourceQueuesOutput, error) { req, out := c.ListDeadLetterSourceQueuesRequest(input) err := req.Send() @@ -854,6 +899,7 @@ const opListQueues = "ListQueues" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ListQueues func (c *SQS) ListQueuesRequest(input *ListQueuesInput) (req *request.Request, output *ListQueuesOutput) { op := &request.Operation{ Name: opListQueues, @@ -865,17 +911,16 @@ func (c *SQS) ListQueuesRequest(input *ListQueuesInput) (req *request.Request, o input = &ListQueuesInput{} } - req = c.newRequest(op, input, output) output = &ListQueuesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // ListQueues API operation for Amazon Simple Queue Service. // // Returns a list of your queues. The maximum number of queues that can be returned -// is 1000. If you specify a value for the optional QueueNamePrefix parameter, -// only queues with a name beginning with the specified value are returned. +// is 1,000. If you specify a value for the optional QueueNamePrefix parameter, +// only queues with a name that begins with the specified value are returned. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -883,6 +928,7 @@ func (c *SQS) ListQueuesRequest(input *ListQueuesInput) (req *request.Request, o // // See the AWS API reference guide for Amazon Simple Queue Service's // API operation ListQueues for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ListQueues func (c *SQS) ListQueues(input *ListQueuesInput) (*ListQueuesOutput, error) { req, out := c.ListQueuesRequest(input) err := req.Send() @@ -915,6 +961,7 @@ const opPurgeQueue = "PurgeQueue" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/PurgeQueue func (c *SQS) PurgeQueueRequest(input *PurgeQueueInput) (req *request.Request, output *PurgeQueueOutput) { op := &request.Operation{ Name: opPurgeQueue, @@ -926,26 +973,25 @@ func (c *SQS) PurgeQueueRequest(input *PurgeQueueInput) (req *request.Request, o input = &PurgeQueueInput{} } + output = &PurgeQueueOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PurgeQueueOutput{} - req.Data = output return } // PurgeQueue API operation for Amazon Simple Queue Service. // -// Deletes the messages in a queue specified by the queue URL. +// Deletes the messages in a queue specified by the QueueURL parameter. // -// When you use the PurgeQueue API, the deleted messages in the queue cannot -// be retrieved. +// When you use the PurgeQueue action, you can't retrieve a message deleted +// from a queue. // // When you purge a queue, the message deletion process takes up to 60 seconds. -// All messages sent to the queue before calling PurgeQueue will be deleted; -// messages sent to the queue while it is being purged may be deleted. While -// the queue is being purged, messages sent to the queue before PurgeQueue was -// called may be received, but will be deleted within the next minute. +// All messages sent to the queue before calling the PurgeQueue action are deleted. +// Messages sent to the queue while it is being purged might be deleted. While +// the queue is being purged, messages sent to the queue before PurgeQueue is +// called might be received, but are deleted within the next minute. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -955,14 +1001,15 @@ func (c *SQS) PurgeQueueRequest(input *PurgeQueueInput) (req *request.Request, o // API operation PurgeQueue for usage and error information. // // Returned Error Codes: -// * AWS.SimpleQueueService.NonExistentQueue -// The queue referred to does not exist. +// * ErrCodeQueueDoesNotExist "AWS.SimpleQueueService.NonExistentQueue" +// The queue referred to doesn't exist. // -// * AWS.SimpleQueueService.PurgeQueueInProgress +// * ErrCodePurgeQueueInProgress "AWS.SimpleQueueService.PurgeQueueInProgress" // Indicates that the specified queue previously received a PurgeQueue request -// within the last 60 seconds, the time it can take to delete the messages in -// the queue. +// within the last 60 seconds (the time it can take to delete the messages in +// the queue). // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/PurgeQueue func (c *SQS) PurgeQueue(input *PurgeQueueInput) (*PurgeQueueOutput, error) { req, out := c.PurgeQueueRequest(input) err := req.Send() @@ -995,6 +1042,7 @@ const opReceiveMessage = "ReceiveMessage" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ReceiveMessage func (c *SQS) ReceiveMessageRequest(input *ReceiveMessageInput) (req *request.Request, output *ReceiveMessageOutput) { op := &request.Operation{ Name: opReceiveMessage, @@ -1006,56 +1054,60 @@ func (c *SQS) ReceiveMessageRequest(input *ReceiveMessageInput) (req *request.Re input = &ReceiveMessageInput{} } - req = c.newRequest(op, input, output) output = &ReceiveMessageOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // ReceiveMessage API operation for Amazon Simple Queue Service. // -// Retrieves one or more messages, with a maximum limit of 10 messages, from -// the specified queue. Long poll support is enabled by using the WaitTimeSeconds -// parameter. For more information, see Amazon SQS Long Poll (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html) +// Retrieves one or more messages (up to 10), from the specified queue. Using +// the WaitTimeSeconds parameter enables long-poll support. For more information, +// see Amazon SQS Long Polling (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html) // in the Amazon SQS Developer Guide. // -// Short poll is the default behavior where a weighted random set of machines -// is sampled on a ReceiveMessage call. This means only the messages on the -// sampled machines are returned. If the number of messages in the queue is -// small (less than 1000), it is likely you will get fewer messages than you -// requested per ReceiveMessage call. If the number of messages in the queue -// is extremely small, you might not receive any messages in a particular ReceiveMessage -// response; in which case you should repeat the request. +// Short poll is the default behavior where a weighted random set of machines +// is sampled on a ReceiveMessage call. Thus, only the messages on the sampled +// machines are returned. If the number of messages in the queue is small (fewer +// than 1,000), you most likely get fewer messages than you requested per ReceiveMessage +// call. If the number of messages in the queue is extremely small, you might +// not receive any messages in a particular ReceiveMessage response. If this +// happens, repeat the request. // -// For each message returned, the response includes the following: +// For each message returned, the response includes the following: // -// Message body +// * The message body. // -// MD5 digest of the message body. For information about MD5, go to http://www.faqs.org/rfcs/rfc1321.html -// (http://www.faqs.org/rfcs/rfc1321.html). +// * An MD5 digest of the message body. For information on MD5, see RFC1321 +// (https://www.ietf.org/rfc/rfc1321.txt). // -// Message ID you received when you sent the message to the queue. +// * The MessageId you received when you sent the message to the queue. // -// Receipt handle. +// * The receipt handle. // -// Message attributes. +// * The message attributes. // -// MD5 digest of the message attributes. +// * An MD5 digest of the message attributes. // -// The receipt handle is the identifier you must provide when deleting the -// message. For more information, see Queue and Message Identifiers (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ImportantIdentifiers.html) +// The receipt handle is the identifier you must provide when deleting the message. +// For more information, see Queue and Message Identifiers (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-message-identifiers.html) // in the Amazon SQS Developer Guide. // -// You can provide the VisibilityTimeout parameter in your request, which -// will be applied to the messages that Amazon SQS returns in the response. -// If you do not include the parameter, the overall visibility timeout for the -// queue is used for the returned messages. For more information, see Visibility -// Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html) +// You can provide the VisibilityTimeout parameter in your request. The parameter +// is applied to the messages that Amazon SQS returns in the response. If you +// don't include the parameter, the overall visibility timeout for the queue +// is used for the returned messages. For more information, see Visibility Timeout +// (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) // in the Amazon SQS Developer Guide. // -// Going forward, new attributes might be added. If you are writing code -// that calls this action, we recommend that you structure your code so that -// it can handle new attributes gracefully. +// A message that isn't deleted or a message whose visibility isn't extended +// before the visibility timeout expires counts as a failed receive. Depending +// on the configuration of the queue, the message might be sent to the dead +// letter queue. +// +// In the future, new attributes might be added. If you write code that calls +// this action, we recommend that you structure your code so that it can handle +// new attributes gracefully. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1065,12 +1117,13 @@ func (c *SQS) ReceiveMessageRequest(input *ReceiveMessageInput) (req *request.Re // API operation ReceiveMessage for usage and error information. // // Returned Error Codes: -// * OverLimit +// * ErrCodeOverLimit "OverLimit" // The action that you requested would violate a limit. For example, ReceiveMessage -// returns this error if the maximum number of messages inflight has already -// been reached. AddPermission returns this error if the maximum number of permissions -// for the queue has already been reached. +// returns this error if the maximum number of inflight messages is reached. +// AddPermission returns this error if the maximum number of permissions for +// the queue is reached. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ReceiveMessage func (c *SQS) ReceiveMessage(input *ReceiveMessageInput) (*ReceiveMessageOutput, error) { req, out := c.ReceiveMessageRequest(input) err := req.Send() @@ -1103,6 +1156,7 @@ const opRemovePermission = "RemovePermission" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/RemovePermission func (c *SQS) RemovePermissionRequest(input *RemovePermissionInput) (req *request.Request, output *RemovePermissionOutput) { op := &request.Operation{ Name: opRemovePermission, @@ -1114,11 +1168,10 @@ func (c *SQS) RemovePermissionRequest(input *RemovePermissionInput) (req *reques input = &RemovePermissionInput{} } + output = &RemovePermissionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RemovePermissionOutput{} - req.Data = output return } @@ -1133,6 +1186,7 @@ func (c *SQS) RemovePermissionRequest(input *RemovePermissionInput) (req *reques // // See the AWS API reference guide for Amazon Simple Queue Service's // API operation RemovePermission for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/RemovePermission func (c *SQS) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error) { req, out := c.RemovePermissionRequest(input) err := req.Send() @@ -1165,6 +1219,7 @@ const opSendMessage = "SendMessage" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SendMessage func (c *SQS) SendMessageRequest(input *SendMessageInput) (req *request.Request, output *SendMessageOutput) { op := &request.Operation{ Name: opSendMessage, @@ -1176,26 +1231,33 @@ func (c *SQS) SendMessageRequest(input *SendMessageInput) (req *request.Request, input = &SendMessageInput{} } - req = c.newRequest(op, input, output) output = &SendMessageOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // SendMessage API operation for Amazon Simple Queue Service. // -// Delivers a message to the specified queue. With Amazon SQS, you now have -// the ability to send large payload messages that are up to 256KB (262,144 -// bytes) in size. To send large payloads, you must use an AWS SDK that supports -// SigV4 signing. To verify whether SigV4 is supported for an AWS SDK, check -// the SDK release notes. +// Delivers a message to the specified queue. // -// The following list shows the characters (in Unicode) allowed in your message, -// according to the W3C XML specification. For more information, go to http://www.w3.org/TR/REC-xml/#charsets -// (http://www.w3.org/TR/REC-xml/#charsets) If you send any characters not included -// in the list, your request will be rejected. +// The following list shows the characters (in Unicode) that are allowed in +// your message, according to the W3C XML specification: +// +// #x9 +// +// #xA +// +// #xD +// +// #x20 to #xD7FF +// +// #xE000 to #xFFFD +// +// #x10000 to #x10FFFF // -// #x9 | #xA | #xD | [#x20 to #xD7FF] | [#xE000 to #xFFFD] | [#x10000 to #x10FFFF] +// For more information, see RFC1321 (https://www.ietf.org/rfc/rfc1321.txt). +// If you send any characters that aren't included in this list, your request +// is rejected. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1205,12 +1267,13 @@ func (c *SQS) SendMessageRequest(input *SendMessageInput) (req *request.Request, // API operation SendMessage for usage and error information. // // Returned Error Codes: -// * InvalidMessageContents +// * ErrCodeInvalidMessageContents "InvalidMessageContents" // The message contains characters outside the allowed set. // -// * AWS.SimpleQueueService.UnsupportedOperation +// * ErrCodeUnsupportedOperation "AWS.SimpleQueueService.UnsupportedOperation" // Error code 400. Unsupported operation. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SendMessage func (c *SQS) SendMessage(input *SendMessageInput) (*SendMessageOutput, error) { req, out := c.SendMessageRequest(input) err := req.Send() @@ -1243,6 +1306,7 @@ const opSendMessageBatch = "SendMessageBatch" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SendMessageBatch func (c *SQS) SendMessageBatchRequest(input *SendMessageBatchInput) (req *request.Request, output *SendMessageBatchOutput) { op := &request.Operation{ Name: opSendMessageBatch, @@ -1254,41 +1318,56 @@ func (c *SQS) SendMessageBatchRequest(input *SendMessageBatchInput) (req *reques input = &SendMessageBatchInput{} } - req = c.newRequest(op, input, output) output = &SendMessageBatchOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } // SendMessageBatch API operation for Amazon Simple Queue Service. // // Delivers up to ten messages to the specified queue. This is a batch version -// of SendMessage. The result of the send action on each message is reported -// individually in the response. The maximum allowed individual message size -// is 256 KB (262,144 bytes). +// of SendMessage. For a FIFO queue, multiple messages within a single batch +// are enqueued in the order they are sent. // -// The maximum total payload size (i.e., the sum of all a batch's individual -// message lengths) is also 256 KB (262,144 bytes). +// The result of sending each message is reported individually in the response. +// Because the batch request can result in a combination of successful and unsuccessful +// actions, you should check for batch errors even when the call returns an +// HTTP status code of 200. // -// If the DelaySeconds parameter is not specified for an entry, the default -// for the queue is used. +// The maximum allowed individual message size and the maximum total payload +// size (the sum of the individual lengths of all of the batched messages) are +// both 256 KB (262,144 bytes). // // The following list shows the characters (in Unicode) that are allowed in -// your message, according to the W3C XML specification. For more information, -// go to http://www.faqs.org/rfcs/rfc1321.html (http://www.faqs.org/rfcs/rfc1321.html). -// If you send any characters that are not included in the list, your request -// will be rejected. +// your message, according to the W3C XML specification: +// +// #x9 +// +// #xA +// +// #xD +// +// #x20 to #xD7FF +// +// #xE000 to #xFFFD // -// #x9 | #xA | #xD | [#x20 to #xD7FF] | [#xE000 to #xFFFD] | [#x10000 to #x10FFFF] +// #x10000 to #x10FFFF // -// Because the batch request can result in a combination of successful and -// unsuccessful actions, you should check for batch errors even when the call -// returns an HTTP status code of 200. +// For more information, see RFC1321 (https://www.ietf.org/rfc/rfc1321.txt). +// If you send any characters that aren't included in this list, your request +// is rejected. // -// Some API actions take lists of parameters. These lists are specified using -// the param.n notation. Values of n are integers starting from 1. For example, +// If you don't specify the DelaySeconds parameter for an entry, Amazon SQS +// uses the default value for the queue. +// +// Some actions take lists of parameters. These lists are specified using the +// param.n notation. Values of n are integers starting from 1. For example, // a parameter list with two elements looks like this: // +// &Attribute.1=this +// +// &Attribute.2=that +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1297,24 +1376,25 @@ func (c *SQS) SendMessageBatchRequest(input *SendMessageBatchInput) (req *reques // API operation SendMessageBatch for usage and error information. // // Returned Error Codes: -// * AWS.SimpleQueueService.TooManyEntriesInBatchRequest -// Batch request contains more number of entries than permissible. +// * ErrCodeTooManyEntriesInBatchRequest "AWS.SimpleQueueService.TooManyEntriesInBatchRequest" +// The batch request contains more entries than permissible. // -// * AWS.SimpleQueueService.EmptyBatchRequest -// Batch request does not contain an entry. +// * ErrCodeEmptyBatchRequest "AWS.SimpleQueueService.EmptyBatchRequest" +// The batch request doesn't contain any entries. // -// * AWS.SimpleQueueService.BatchEntryIdsNotDistinct -// Two or more batch entries have the same Id in the request. +// * ErrCodeBatchEntryIdsNotDistinct "AWS.SimpleQueueService.BatchEntryIdsNotDistinct" +// Two or more batch entries in the request have the same Id. // -// * AWS.SimpleQueueService.BatchRequestTooLong +// * ErrCodeBatchRequestTooLong "AWS.SimpleQueueService.BatchRequestTooLong" // The length of all the messages put together is more than the limit. // -// * AWS.SimpleQueueService.InvalidBatchEntryId -// The Id of a batch entry in a batch request does not abide by the specification. +// * ErrCodeInvalidBatchEntryId "AWS.SimpleQueueService.InvalidBatchEntryId" +// The Id of a batch entry in a batch request doesn't abide by the specification. // -// * AWS.SimpleQueueService.UnsupportedOperation +// * ErrCodeUnsupportedOperation "AWS.SimpleQueueService.UnsupportedOperation" // Error code 400. Unsupported operation. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SendMessageBatch func (c *SQS) SendMessageBatch(input *SendMessageBatchInput) (*SendMessageBatchOutput, error) { req, out := c.SendMessageBatchRequest(input) err := req.Send() @@ -1347,6 +1427,7 @@ const opSetQueueAttributes = "SetQueueAttributes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SetQueueAttributes func (c *SQS) SetQueueAttributesRequest(input *SetQueueAttributesInput) (req *request.Request, output *SetQueueAttributesOutput) { op := &request.Operation{ Name: opSetQueueAttributes, @@ -1358,11 +1439,10 @@ func (c *SQS) SetQueueAttributesRequest(input *SetQueueAttributesInput) (req *re input = &SetQueueAttributesInput{} } + output = &SetQueueAttributesOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetQueueAttributesOutput{} - req.Data = output return } @@ -1370,12 +1450,12 @@ func (c *SQS) SetQueueAttributesRequest(input *SetQueueAttributesInput) (req *re // // Sets the value of one or more queue attributes. When you change a queue's // attributes, the change can take up to 60 seconds for most of the attributes -// to propagate throughout the SQS system. Changes made to the MessageRetentionPeriod +// to propagate throughout the Amazon SQS system. Changes made to the MessageRetentionPeriod // attribute can take up to 15 minutes. // -// Going forward, new attributes might be added. If you are writing code that -// calls this action, we recommend that you structure your code so that it can -// handle new attributes gracefully. +// In the future, new attributes might be added. If you write code that calls +// this action, we recommend that you structure your code so that it can handle +// new attributes gracefully. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1385,48 +1465,64 @@ func (c *SQS) SetQueueAttributesRequest(input *SetQueueAttributesInput) (req *re // API operation SetQueueAttributes for usage and error information. // // Returned Error Codes: -// * InvalidAttributeName -// The attribute referred to does not exist. +// * ErrCodeInvalidAttributeName "InvalidAttributeName" +// The attribute referred to doesn't exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SetQueueAttributes func (c *SQS) SetQueueAttributes(input *SetQueueAttributesInput) (*SetQueueAttributesOutput, error) { req, out := c.SetQueueAttributesRequest(input) err := req.Send() return out, err } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/AddPermissionRequest type AddPermissionInput struct { _ struct{} `type:"structure"` // The AWS account number of the principal (http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P) - // who will be given permission. The principal must have an AWS account, but - // does not need to be signed up for Amazon SQS. For information about locating - // the AWS account identification, see Your AWS Identifiers (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AWSCredentials.html) + // who is given permission. The principal must have an AWS account, but does + // not need to be signed up for Amazon SQS. For information about locating the + // AWS account identification, see Your AWS Identifiers (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AWSCredentials.html) // in the Amazon SQS Developer Guide. // // AWSAccountIds is a required field AWSAccountIds []*string `locationNameList:"AWSAccountId" type:"list" flattened:"true" required:"true"` // The action the client wants to allow for the specified principal. The following - // are valid values: * | SendMessage | ReceiveMessage | DeleteMessage | ChangeMessageVisibility - // | GetQueueAttributes | GetQueueUrl. For more information about these actions, - // see Understanding Permissions (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html#PermissionTypes) + // values are valid: + // + // * * + // + // * ChangeMessageVisibility + // + // * DeleteMessage + // + // * GetQueueAttributes + // + // * GetQueueUrl + // + // * ReceiveMessage + // + // * SendMessage + // + // For more information about these actions, see Understanding Permissions (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html#PermissionTypes) // in the Amazon SQS Developer Guide. // - // Specifying SendMessage, DeleteMessage, or ChangeMessageVisibility for the - // ActionName.n also grants permissions for the corresponding batch versions - // of those actions: SendMessageBatch, DeleteMessageBatch, and ChangeMessageVisibilityBatch. + // Specifying SendMessage, DeleteMessage, or ChangeMessageVisibility for ActionName.n + // also grants permissions for the corresponding batch versions of those actions: + // SendMessageBatch, DeleteMessageBatch, and ChangeMessageVisibilityBatch. // // Actions is a required field Actions []*string `locationNameList:"ActionName" type:"list" flattened:"true" required:"true"` - // The unique identification of the permission you're setting (e.g., AliceSendMessage). - // Constraints: Maximum 80 characters; alphanumeric characters, hyphens (-), - // and underscores (_) are allowed. + // The unique identification of the permission you're setting (for example, + // AliceSendMessage). Maximum 80 characters. Allowed characters include alphanumeric + // characters, hyphens (-), and underscores (_). // // Label is a required field Label *string `type:"string" required:"true"` - // The URL of the Amazon SQS queue to take action on. + // The URL of the Amazon SQS queue to which permissions are added. // // Queue URLs are case-sensitive. // @@ -1466,6 +1562,31 @@ func (s *AddPermissionInput) Validate() error { return nil } +// SetAWSAccountIds sets the AWSAccountIds field's value. +func (s *AddPermissionInput) SetAWSAccountIds(v []*string) *AddPermissionInput { + s.AWSAccountIds = v + return s +} + +// SetActions sets the Actions field's value. +func (s *AddPermissionInput) SetActions(v []*string) *AddPermissionInput { + s.Actions = v + return s +} + +// SetLabel sets the Label field's value. +func (s *AddPermissionInput) SetLabel(v string) *AddPermissionInput { + s.Label = &v + return s +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *AddPermissionInput) SetQueueUrl(v string) *AddPermissionInput { + s.QueueUrl = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/AddPermissionOutput type AddPermissionOutput struct { _ struct{} `type:"structure"` } @@ -1482,6 +1603,7 @@ func (s AddPermissionOutput) GoString() string { // This is used in the responses of batch API to give a detailed description // of the result of an action on each entry in the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/BatchResultErrorEntry type BatchResultErrorEntry struct { _ struct{} `type:"structure"` @@ -1490,7 +1612,7 @@ type BatchResultErrorEntry struct { // Code is a required field Code *string `type:"string" required:"true"` - // The id of an entry in a batch request. + // The Id of an entry in a batch request. // // Id is a required field Id *string `type:"string" required:"true"` @@ -1498,7 +1620,7 @@ type BatchResultErrorEntry struct { // A message explaining why the action failed on this entry. Message *string `type:"string"` - // Whether the error happened due to the sender's fault. + // Specifies whether the error happened due to the sender's fault. // // SenderFault is a required field SenderFault *bool `type:"boolean" required:"true"` @@ -1514,6 +1636,31 @@ func (s BatchResultErrorEntry) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *BatchResultErrorEntry) SetCode(v string) *BatchResultErrorEntry { + s.Code = &v + return s +} + +// SetId sets the Id field's value. +func (s *BatchResultErrorEntry) SetId(v string) *BatchResultErrorEntry { + s.Id = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *BatchResultErrorEntry) SetMessage(v string) *BatchResultErrorEntry { + s.Message = &v + return s +} + +// SetSenderFault sets the SenderFault field's value. +func (s *BatchResultErrorEntry) SetSenderFault(v bool) *BatchResultErrorEntry { + s.SenderFault = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ChangeMessageVisibilityBatchRequest type ChangeMessageVisibilityBatchInput struct { _ struct{} `type:"structure"` @@ -1523,7 +1670,7 @@ type ChangeMessageVisibilityBatchInput struct { // Entries is a required field Entries []*ChangeMessageVisibilityBatchRequestEntry `locationNameList:"ChangeMessageVisibilityBatchRequestEntry" type:"list" flattened:"true" required:"true"` - // The URL of the Amazon SQS queue to take action on. + // The URL of the Amazon SQS queue whose messages' visibility is changed. // // Queue URLs are case-sensitive. // @@ -1567,9 +1714,22 @@ func (s *ChangeMessageVisibilityBatchInput) Validate() error { return nil } +// SetEntries sets the Entries field's value. +func (s *ChangeMessageVisibilityBatchInput) SetEntries(v []*ChangeMessageVisibilityBatchRequestEntry) *ChangeMessageVisibilityBatchInput { + s.Entries = v + return s +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *ChangeMessageVisibilityBatchInput) SetQueueUrl(v string) *ChangeMessageVisibilityBatchInput { + s.QueueUrl = &v + return s +} + // For each message in the batch, the response contains a ChangeMessageVisibilityBatchResultEntry // tag if the message succeeds or a BatchResultErrorEntry tag if the message // fails. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ChangeMessageVisibilityBatchResult type ChangeMessageVisibilityBatchOutput struct { _ struct{} `type:"structure"` @@ -1594,22 +1754,37 @@ func (s ChangeMessageVisibilityBatchOutput) GoString() string { return s.String() } +// SetFailed sets the Failed field's value. +func (s *ChangeMessageVisibilityBatchOutput) SetFailed(v []*BatchResultErrorEntry) *ChangeMessageVisibilityBatchOutput { + s.Failed = v + return s +} + +// SetSuccessful sets the Successful field's value. +func (s *ChangeMessageVisibilityBatchOutput) SetSuccessful(v []*ChangeMessageVisibilityBatchResultEntry) *ChangeMessageVisibilityBatchOutput { + s.Successful = v + return s +} + // Encloses a receipt handle and an entry id for each message in ChangeMessageVisibilityBatch. // -// All of the following parameters are list parameters that must be prefixed -// with ChangeMessageVisibilityBatchRequestEntry.n, where n is an integer value -// starting with 1. For example, a parameter list for this action might look -// like this: +// All of the following list parameters must be prefixed with ChangeMessageVisibilityBatchRequestEntry.n, +// where n is an integer value starting with 1. For example, a parameter list +// for this action might look like this: // +// &ChangeMessageVisibilityBatchRequestEntry.1.Id=change_visibility_msg_2 // +// &ChangeMessageVisibilityBatchRequestEntry.1.ReceiptHandle=Your_Receipt_Handle // -// Your_Receipt_Handle]]> +// &ChangeMessageVisibilityBatchRequestEntry.1.VisibilityTimeout=45 +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ChangeMessageVisibilityBatchRequestEntry type ChangeMessageVisibilityBatchRequestEntry struct { _ struct{} `type:"structure"` - // An identifier for this particular receipt handle. This is used to communicate - // the result. Note that the Ids of a batch request need to be unique within - // the request. + // An identifier for this particular receipt handle used to communicate the + // result. + // + // The Ids of a batch request need to be unique within a request // // Id is a required field Id *string `type:"string" required:"true"` @@ -1649,7 +1824,26 @@ func (s *ChangeMessageVisibilityBatchRequestEntry) Validate() error { return nil } -// Encloses the id of an entry in ChangeMessageVisibilityBatch. +// SetId sets the Id field's value. +func (s *ChangeMessageVisibilityBatchRequestEntry) SetId(v string) *ChangeMessageVisibilityBatchRequestEntry { + s.Id = &v + return s +} + +// SetReceiptHandle sets the ReceiptHandle field's value. +func (s *ChangeMessageVisibilityBatchRequestEntry) SetReceiptHandle(v string) *ChangeMessageVisibilityBatchRequestEntry { + s.ReceiptHandle = &v + return s +} + +// SetVisibilityTimeout sets the VisibilityTimeout field's value. +func (s *ChangeMessageVisibilityBatchRequestEntry) SetVisibilityTimeout(v int64) *ChangeMessageVisibilityBatchRequestEntry { + s.VisibilityTimeout = &v + return s +} + +// Encloses the Id of an entry in ChangeMessageVisibilityBatch. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ChangeMessageVisibilityBatchResultEntry type ChangeMessageVisibilityBatchResultEntry struct { _ struct{} `type:"structure"` @@ -1669,24 +1863,31 @@ func (s ChangeMessageVisibilityBatchResultEntry) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *ChangeMessageVisibilityBatchResultEntry) SetId(v string) *ChangeMessageVisibilityBatchResultEntry { + s.Id = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ChangeMessageVisibilityRequest type ChangeMessageVisibilityInput struct { _ struct{} `type:"structure"` - // The URL of the Amazon SQS queue to take action on. + // The URL of the Amazon SQS queue whose message's visibility is changed. // // Queue URLs are case-sensitive. // // QueueUrl is a required field QueueUrl *string `type:"string" required:"true"` - // The receipt handle associated with the message whose visibility timeout should - // be changed. This parameter is returned by the ReceiveMessage action. + // The receipt handle associated with the message whose visibility timeout is + // changed. This parameter is returned by the ReceiveMessage action. // // ReceiptHandle is a required field ReceiptHandle *string `type:"string" required:"true"` - // The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message's - // visibility timeout. + // The new value for the message's visibility timeout (in seconds). Values values: + // 0 to 43200. Maximum: 12 hours. // // VisibilityTimeout is a required field VisibilityTimeout *int64 `type:"integer" required:"true"` @@ -1721,6 +1922,25 @@ func (s *ChangeMessageVisibilityInput) Validate() error { return nil } +// SetQueueUrl sets the QueueUrl field's value. +func (s *ChangeMessageVisibilityInput) SetQueueUrl(v string) *ChangeMessageVisibilityInput { + s.QueueUrl = &v + return s +} + +// SetReceiptHandle sets the ReceiptHandle field's value. +func (s *ChangeMessageVisibilityInput) SetReceiptHandle(v string) *ChangeMessageVisibilityInput { + s.ReceiptHandle = &v + return s +} + +// SetVisibilityTimeout sets the VisibilityTimeout field's value. +func (s *ChangeMessageVisibilityInput) SetVisibilityTimeout(v int64) *ChangeMessageVisibilityInput { + s.VisibilityTimeout = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ChangeMessageVisibilityOutput type ChangeMessageVisibilityOutput struct { _ struct{} `type:"structure"` } @@ -1735,50 +1955,112 @@ func (s ChangeMessageVisibilityOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/CreateQueueRequest type CreateQueueInput struct { _ struct{} `type:"structure"` // A map of attributes with their corresponding values. // // The following lists the names, descriptions, and values of the special request - // parameters the CreateQueue action uses: + // parameters that the CreateQueue action uses: // - // DelaySeconds - The time in seconds that the delivery of all messages in - // the queue will be delayed. An integer from 0 to 900 (15 minutes). The default - // for this attribute is 0 (zero). + // * DelaySeconds - The number of seconds for which the delivery of all messages + // in the queue is delayed. Valid values: An integer from 0 to 900 seconds + // (15 minutes). The default is 0 (zero). // - // MaximumMessageSize - The limit of how many bytes a message can contain before - // Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes - // (256 KiB). The default for this attribute is 262144 (256 KiB). + // * MaximumMessageSize - The limit of how many bytes a message can contain + // before Amazon SQS rejects it. Valid values: An integer from 1,024 bytes + // (1 KiB) to 262,144 bytes (256 KiB). The default is 262,144 (256 KiB). // - // MessageRetentionPeriod - The number of seconds Amazon SQS retains a message. - // Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The - // default for this attribute is 345600 (4 days). // - // Policy - The queue's policy. A valid AWS policy. For more information about - // policy structure, see Overview of AWS IAM Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html) - // in the Amazon IAM User Guide. + // * MessageRetentionPeriod - The number of seconds for which Amazon SQS + // retains a message. Valid values: An integer from 60 seconds (1 minute) + // to 1,209,600 seconds (14 days). The default is 345,600 (4 days). // - // ReceiveMessageWaitTimeSeconds - The time for which a ReceiveMessage call - // will wait for a message to arrive. An integer from 0 to 20 (seconds). The - // default for this attribute is 0. + // * Policy - The queue's policy. A valid AWS policy. For more information + // about policy structure, see Overview of AWS IAM Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html) + // in the Amazon IAM User Guide. // - // RedrivePolicy - The parameters for dead letter queue functionality of the - // source queue. For more information about RedrivePolicy and dead letter queues, - // see Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html) - // in the Amazon SQS Developer Guide. + // * ReceiveMessageWaitTimeSeconds - The number of seconds for which a ReceiveMessage + // action waits for a message to arrive. Valid values: An integer from 0 + // to 20 (seconds). The default is 0 (zero). // - // VisibilityTimeout - The visibility timeout for the queue. An integer from - // 0 to 43200 (12 hours). The default for this attribute is 30. For more information - // about visibility timeout, see Visibility Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html) - // in the Amazon SQS Developer Guide. + // * RedrivePolicy - The parameters for the dead letter queue functionality + // of the source queue. For more information about the redrive policy and + // dead letter queues, see Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) + // in the Amazon SQS Developer Guide. + // + // The dead letter queue of a FIFO queue must also be a FIFO queue. Similarly, + // the dead letter queue of a standard queue must also be a standard queue. + // + // * VisibilityTimeout - The visibility timeout for the queue. Valid values: + // An integer from 0 to 43,200 (12 hours). The default is 30. For more information + // about the visibility timeout, see Visibility Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) + // in the Amazon SQS Developer Guide. + // + // The following attributes apply only to FIFO (first-in-first-out) queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html): + // + // * FifoQueue - Designates a queue as FIFO. You can provide this attribute + // only during queue creation. You can't change it for an existing queue. + // When you set this attribute, you must provide a MessageGroupId explicitly. + // + // For more information, see FIFO Queue Logic (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-understanding-logic) + // in the Amazon SQS Developer Guide. + // + // * ContentBasedDeduplication - Enables content-based deduplication. For + // more information, see Exactly-Once Processing (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing) + // in the Amazon SQS Developer Guide. + // + // Every message must have a unique MessageDeduplicationId, + // + // You may provide a MessageDeduplicationId explicitly. + // + // If you aren't able to provide a MessageDeduplicationId and you enable ContentBasedDeduplication + // for your queue, Amazon SQS uses a SHA-256 hash to generate the MessageDeduplicationId + // using the body of the message (but not the attributes of the message). + // + // + // If you don't provide a MessageDeduplicationId and the queue doesn't have + // ContentBasedDeduplication set, the action fails with an error. + // + // If the queue has ContentBasedDeduplication set, your MessageDeduplicationId + // overrides the generated one. + // + // When ContentBasedDeduplication is in effect, messages with identical content + // sent within the deduplication interval are treated as duplicates and only + // one copy of the message is delivered. + // + // You can also use ContentBasedDeduplication for messages with identical content + // to be treated as duplicates. // - // Any other valid special request parameters that are specified (such as - // ApproximateNumberOfMessages, ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible, - // CreatedTimestamp, LastModifiedTimestamp, and QueueArn) will be ignored. + // If you send one message with ContentBasedDeduplication enabled and then another + // message with a MessageDeduplicationId that is the same as the one generated + // for the first MessageDeduplicationId, the two messages are treated as + // duplicates and only one copy of the message is delivered. + // + // Any other valid special request parameters (such as the following) are ignored: + // + // * ApproximateNumberOfMessages + // + // * ApproximateNumberOfMessagesDelayed + // + // * ApproximateNumberOfMessagesNotVisible + // + // * CreatedTimestamp + // + // * LastModifiedTimestamp + // + // * QueueArn Attributes map[string]*string `locationName:"Attribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` - // The name for the queue to be created. + // The name of the new queue. The following limits apply to this name: + // + // * A queue name can have up to 80 characters. + // + // * Valid values: alphanumeric characters, hyphens (-), and underscores + // (_). + // + // * A FIFO queue name must end with the .fifo suffix. // // Queue names are case-sensitive. // @@ -1809,11 +2091,24 @@ func (s *CreateQueueInput) Validate() error { return nil } -// Returns the QueueUrl element of the created queue. +// SetAttributes sets the Attributes field's value. +func (s *CreateQueueInput) SetAttributes(v map[string]*string) *CreateQueueInput { + s.Attributes = v + return s +} + +// SetQueueName sets the QueueName field's value. +func (s *CreateQueueInput) SetQueueName(v string) *CreateQueueInput { + s.QueueName = &v + return s +} + +// Returns the QueueUrl attribute of the created queue. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/CreateQueueResult type CreateQueueOutput struct { _ struct{} `type:"structure"` - // The URL for the created Amazon SQS queue. + // The URL of the created Amazon SQS queue. QueueUrl *string `type:"string"` } @@ -1827,6 +2122,13 @@ func (s CreateQueueOutput) GoString() string { return s.String() } +// SetQueueUrl sets the QueueUrl field's value. +func (s *CreateQueueOutput) SetQueueUrl(v string) *CreateQueueOutput { + s.QueueUrl = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/DeleteMessageBatchRequest type DeleteMessageBatchInput struct { _ struct{} `type:"structure"` @@ -1835,7 +2137,7 @@ type DeleteMessageBatchInput struct { // Entries is a required field Entries []*DeleteMessageBatchRequestEntry `locationNameList:"DeleteMessageBatchRequestEntry" type:"list" flattened:"true" required:"true"` - // The URL of the Amazon SQS queue to take action on. + // The URL of the Amazon SQS queue from which messages are deleted. // // Queue URLs are case-sensitive. // @@ -1879,9 +2181,22 @@ func (s *DeleteMessageBatchInput) Validate() error { return nil } +// SetEntries sets the Entries field's value. +func (s *DeleteMessageBatchInput) SetEntries(v []*DeleteMessageBatchRequestEntry) *DeleteMessageBatchInput { + s.Entries = v + return s +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *DeleteMessageBatchInput) SetQueueUrl(v string) *DeleteMessageBatchInput { + s.QueueUrl = &v + return s +} + // For each message in the batch, the response contains a DeleteMessageBatchResultEntry // tag if the message is deleted or a BatchResultErrorEntry tag if the message -// cannot be deleted. +// can't be deleted. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/DeleteMessageBatchResult type DeleteMessageBatchOutput struct { _ struct{} `type:"structure"` @@ -1906,13 +2221,27 @@ func (s DeleteMessageBatchOutput) GoString() string { return s.String() } +// SetFailed sets the Failed field's value. +func (s *DeleteMessageBatchOutput) SetFailed(v []*BatchResultErrorEntry) *DeleteMessageBatchOutput { + s.Failed = v + return s +} + +// SetSuccessful sets the Successful field's value. +func (s *DeleteMessageBatchOutput) SetSuccessful(v []*DeleteMessageBatchResultEntry) *DeleteMessageBatchOutput { + s.Successful = v + return s +} + // Encloses a receipt handle and an identifier for it. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/DeleteMessageBatchRequestEntry type DeleteMessageBatchRequestEntry struct { _ struct{} `type:"structure"` // An identifier for this particular receipt handle. This is used to communicate - // the result. Note that the Ids of a batch request need to be unique within - // the request. + // the result. + // + // The Ids of a batch request need to be unique within a request // // Id is a required field Id *string `type:"string" required:"true"` @@ -1949,7 +2278,20 @@ func (s *DeleteMessageBatchRequestEntry) Validate() error { return nil } -// Encloses the id an entry in DeleteMessageBatch. +// SetId sets the Id field's value. +func (s *DeleteMessageBatchRequestEntry) SetId(v string) *DeleteMessageBatchRequestEntry { + s.Id = &v + return s +} + +// SetReceiptHandle sets the ReceiptHandle field's value. +func (s *DeleteMessageBatchRequestEntry) SetReceiptHandle(v string) *DeleteMessageBatchRequestEntry { + s.ReceiptHandle = &v + return s +} + +// Encloses the Id of an entry in DeleteMessageBatch. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/DeleteMessageBatchResultEntry type DeleteMessageBatchResultEntry struct { _ struct{} `type:"structure"` @@ -1969,10 +2311,17 @@ func (s DeleteMessageBatchResultEntry) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *DeleteMessageBatchResultEntry) SetId(v string) *DeleteMessageBatchResultEntry { + s.Id = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/DeleteMessageRequest type DeleteMessageInput struct { _ struct{} `type:"structure"` - // The URL of the Amazon SQS queue to take action on. + // The URL of the Amazon SQS queue from which messages are deleted. // // Queue URLs are case-sensitive. // @@ -2011,6 +2360,19 @@ func (s *DeleteMessageInput) Validate() error { return nil } +// SetQueueUrl sets the QueueUrl field's value. +func (s *DeleteMessageInput) SetQueueUrl(v string) *DeleteMessageInput { + s.QueueUrl = &v + return s +} + +// SetReceiptHandle sets the ReceiptHandle field's value. +func (s *DeleteMessageInput) SetReceiptHandle(v string) *DeleteMessageInput { + s.ReceiptHandle = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/DeleteMessageOutput type DeleteMessageOutput struct { _ struct{} `type:"structure"` } @@ -2025,10 +2387,11 @@ func (s DeleteMessageOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/DeleteQueueRequest type DeleteQueueInput struct { _ struct{} `type:"structure"` - // The URL of the Amazon SQS queue to take action on. + // The URL of the Amazon SQS queue to delete. // // Queue URLs are case-sensitive. // @@ -2059,6 +2422,13 @@ func (s *DeleteQueueInput) Validate() error { return nil } +// SetQueueUrl sets the QueueUrl field's value. +func (s *DeleteQueueInput) SetQueueUrl(v string) *DeleteQueueInput { + s.QueueUrl = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/DeleteQueueOutput type DeleteQueueOutput struct { _ struct{} `type:"structure"` } @@ -2073,63 +2443,77 @@ func (s DeleteQueueOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/GetQueueAttributesRequest type GetQueueAttributesInput struct { _ struct{} `type:"structure"` - // A list of attributes to retrieve information for. The following attributes - // are supported: + // A list of attributes for which to retrieve information. // - // All - returns all values. + // In the future, new attributes might be added. If you write code that calls + // this action, we recommend that you structure your code so that it can handle + // new attributes gracefully. // - // ApproximateNumberOfMessages - returns the approximate number of visible - // messages in a queue. For more information, see Resources Required to Process - // Messages (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ApproximateNumber.html) - // in the Amazon SQS Developer Guide. + // The following attributes are supported: // - // ApproximateNumberOfMessagesNotVisible - returns the approximate number of - // messages that are not timed-out and not deleted. For more information, see - // Resources Required to Process Messages (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ApproximateNumber.html) - // in the Amazon SQS Developer Guide. + // * All - Returns all values. // - // VisibilityTimeout - returns the visibility timeout for the queue. For more - // information about visibility timeout, see Visibility Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html) - // in the Amazon SQS Developer Guide. + // * ApproximateNumberOfMessages - Returns the approximate number of visible + // messages in a queue. For more information, see Resources Required to Process + // Messages (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-resources-required-process-messages.html) + // in the Amazon SQS Developer Guide. // - // CreatedTimestamp - returns the time when the queue was created (epoch time - // in seconds). + // * ApproximateNumberOfMessagesDelayed - Returns the approximate number + // of messages that are waiting to be added to the queue. // - // LastModifiedTimestamp - returns the time when the queue was last changed - // (epoch time in seconds). + // * ApproximateNumberOfMessagesNotVisible - Returns the approximate number + // of messages that have not timed-out and aren't deleted. For more information, + // see Resources Required to Process Messages (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-resources-required-process-messages.html) + // in the Amazon SQS Developer Guide. // - // Policy - returns the queue's policy. + // * CreatedTimestamp - Returns the time when the queue was created in seconds + // (epoch time (http://en.wikipedia.org/wiki/Unix_time)). // - // MaximumMessageSize - returns the limit of how many bytes a message can contain - // before Amazon SQS rejects it. + // * DelaySeconds - Returns the default delay on the queue in seconds. // - // MessageRetentionPeriod - returns the number of seconds Amazon SQS retains - // a message. + // * LastModifiedTimestamp - Returns the time when the queue was last changed + // in seconds (epoch time (http://en.wikipedia.org/wiki/Unix_time)). // - // QueueArn - returns the queue's Amazon resource name (ARN). + // * MaximumMessageSize - Returns the limit of how many bytes a message can + // contain before Amazon SQS rejects it. // - // ApproximateNumberOfMessagesDelayed - returns the approximate number of messages - // that are pending to be added to the queue. + // * MessageRetentionPeriod - Returns the number of seconds for which Amazon + // SQS retains a message. // - // DelaySeconds - returns the default delay on the queue in seconds. + // * Policy - Returns the policy of the queue. // - // ReceiveMessageWaitTimeSeconds - returns the time for which a ReceiveMessage - // call will wait for a message to arrive. + // * QueueArn - Returns the Amazon resource name (ARN) of the queue. // - // RedrivePolicy - returns the parameters for dead letter queue functionality - // of the source queue. For more information about RedrivePolicy and dead letter - // queues, see Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html) - // in the Amazon SQS Developer Guide. + // * ReceiveMessageWaitTimeSeconds - Returns the number of seconds for which + // the ReceiveMessage action waits for a message to arrive. // - // Going forward, new attributes might be added. If you are writing code that - // calls this action, we recommend that you structure your code so that it can - // handle new attributes gracefully. + // * RedrivePolicy - Returns the parameters for dead letter queue functionality + // of the source queue. For more information about the redrive policy and + // dead letter queues, see Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) + // in the Amazon SQS Developer Guide. + // + // * VisibilityTimeout - Returns the visibility timeout for the queue. For + // more information about the visibility timeout, see Visibility Timeout + // (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) + // in the Amazon SQS Developer Guide. + // + // The following attributes apply only to FIFO (first-in-first-out) queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html): + // + // * FifoQueue - Returns whether the queue is FIFO. For more information, + // see FIFO Queue Logic (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-understanding-logic) + // in the Amazon SQS Developer Guide. + // + // * ContentBasedDeduplication - Returns whether content-based deduplication + // is enabled for the queue. For more information, see Exactly-Once Processing + // (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing) + // in the Amazon SQS Developer Guide. AttributeNames []*string `locationNameList:"AttributeName" type:"list" flattened:"true"` - // The URL of the Amazon SQS queue to take action on. + // The URL of the Amazon SQS queue whose attribute information is retrieved. // // Queue URLs are case-sensitive. // @@ -2160,11 +2544,24 @@ func (s *GetQueueAttributesInput) Validate() error { return nil } +// SetAttributeNames sets the AttributeNames field's value. +func (s *GetQueueAttributesInput) SetAttributeNames(v []*string) *GetQueueAttributesInput { + s.AttributeNames = v + return s +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *GetQueueAttributesInput) SetQueueUrl(v string) *GetQueueAttributesInput { + s.QueueUrl = &v + return s +} + // A list of returned queue attributes. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/GetQueueAttributesResult type GetQueueAttributesOutput struct { _ struct{} `type:"structure"` - // A map of attributes to the respective values. + // A map of attributes to their respective values. Attributes map[string]*string `locationName:"Attribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` } @@ -2178,11 +2575,18 @@ func (s GetQueueAttributesOutput) GoString() string { return s.String() } +// SetAttributes sets the Attributes field's value. +func (s *GetQueueAttributesOutput) SetAttributes(v map[string]*string) *GetQueueAttributesOutput { + s.Attributes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/GetQueueUrlRequest type GetQueueUrlInput struct { _ struct{} `type:"structure"` - // The name of the queue whose URL must be fetched. Maximum 80 characters; alphanumeric - // characters, hyphens (-), and underscores (_) are allowed. + // The name of the queue whose URL must be fetched. Maximum 80 characters. Valid + // values: alphanumeric characters, hyphens (-), and underscores (_). // // Queue names are case-sensitive. // @@ -2216,12 +2620,25 @@ func (s *GetQueueUrlInput) Validate() error { return nil } +// SetQueueName sets the QueueName field's value. +func (s *GetQueueUrlInput) SetQueueName(v string) *GetQueueUrlInput { + s.QueueName = &v + return s +} + +// SetQueueOwnerAWSAccountId sets the QueueOwnerAWSAccountId field's value. +func (s *GetQueueUrlInput) SetQueueOwnerAWSAccountId(v string) *GetQueueUrlInput { + s.QueueOwnerAWSAccountId = &v + return s +} + // For more information, see Responses (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/UnderstandingResponses.html) // in the Amazon SQS Developer Guide. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/GetQueueUrlResult type GetQueueUrlOutput struct { _ struct{} `type:"structure"` - // The URL for the queue. + // The URL of the queue. QueueUrl *string `type:"string"` } @@ -2235,10 +2652,17 @@ func (s GetQueueUrlOutput) GoString() string { return s.String() } +// SetQueueUrl sets the QueueUrl field's value. +func (s *GetQueueUrlOutput) SetQueueUrl(v string) *GetQueueUrlOutput { + s.QueueUrl = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ListDeadLetterSourceQueuesRequest type ListDeadLetterSourceQueuesInput struct { _ struct{} `type:"structure"` - // The queue URL of a dead letter queue. + // The URL of a dead letter queue. // // Queue URLs are case-sensitive. // @@ -2269,7 +2693,14 @@ func (s *ListDeadLetterSourceQueuesInput) Validate() error { return nil } +// SetQueueUrl sets the QueueUrl field's value. +func (s *ListDeadLetterSourceQueuesInput) SetQueueUrl(v string) *ListDeadLetterSourceQueuesInput { + s.QueueUrl = &v + return s +} + // A list of your dead letter source queues. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ListDeadLetterSourceQueuesResult type ListDeadLetterSourceQueuesOutput struct { _ struct{} `type:"structure"` @@ -2290,6 +2721,13 @@ func (s ListDeadLetterSourceQueuesOutput) GoString() string { return s.String() } +// SetQueueUrls sets the QueueUrls field's value. +func (s *ListDeadLetterSourceQueuesOutput) SetQueueUrls(v []*string) *ListDeadLetterSourceQueuesOutput { + s.QueueUrls = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ListQueuesRequest type ListQueuesInput struct { _ struct{} `type:"structure"` @@ -2310,11 +2748,18 @@ func (s ListQueuesInput) GoString() string { return s.String() } +// SetQueueNamePrefix sets the QueueNamePrefix field's value. +func (s *ListQueuesInput) SetQueueNamePrefix(v string) *ListQueuesInput { + s.QueueNamePrefix = &v + return s +} + // A list of your queues. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ListQueuesResult type ListQueuesOutput struct { _ struct{} `type:"structure"` - // A list of queue URLs, up to 1000 entries. + // A list of queue URLs, up to 1,000 entries. QueueUrls []*string `locationNameList:"QueueUrl" type:"list" flattened:"true"` } @@ -2328,7 +2773,14 @@ func (s ListQueuesOutput) GoString() string { return s.String() } +// SetQueueUrls sets the QueueUrls field's value. +func (s *ListQueuesOutput) SetQueueUrls(v []*string) *ListQueuesOutput { + s.QueueUrls = v + return s +} + // An Amazon SQS message. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/Message type Message struct { _ struct{} `type:"structure"` @@ -2344,17 +2796,18 @@ type Message struct { // An MD5 digest of the non-URL-encoded message body string. MD5OfBody *string `type:"string"` - // An MD5 digest of the non-URL-encoded message attribute string. This can be - // used to verify that Amazon SQS received the message correctly. Amazon SQS - // first URL decodes the message before creating the MD5 digest. For information - // about MD5, go to http://www.faqs.org/rfcs/rfc1321.html (http://www.faqs.org/rfcs/rfc1321.html). + // An MD5 digest of the non-URL-encoded message attribute string. You can use + // this attribute to verify that Amazon SQS received the message correctly. + // Amazon SQS URL-decodes the message before creating the MD5 digest. For information + // on MD5, see RFC1321 (https://www.ietf.org/rfc/rfc1321.txt). MD5OfMessageAttributes *string `type:"string"` // Each message attribute consists of a Name, Type, and Value. For more information, - // see Message Attribute Items (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributesNTV). + // see Message Attribute Items and Validation (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html#message-attributes-items-validation) + // in the Amazon SQS Developer Guide. MessageAttributes map[string]*MessageAttributeValue `locationName:"MessageAttribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` - // A unique identifier for the message. Message IDs are considered unique across + // A unique identifier for the message. A MessageIdis considered unique across // all AWS accounts for an extended period of time. MessageId *string `type:"string"` @@ -2374,22 +2827,64 @@ func (s Message) GoString() string { return s.String() } -// The user-specified message attribute value. For string data types, the value +// SetAttributes sets the Attributes field's value. +func (s *Message) SetAttributes(v map[string]*string) *Message { + s.Attributes = v + return s +} + +// SetBody sets the Body field's value. +func (s *Message) SetBody(v string) *Message { + s.Body = &v + return s +} + +// SetMD5OfBody sets the MD5OfBody field's value. +func (s *Message) SetMD5OfBody(v string) *Message { + s.MD5OfBody = &v + return s +} + +// SetMD5OfMessageAttributes sets the MD5OfMessageAttributes field's value. +func (s *Message) SetMD5OfMessageAttributes(v string) *Message { + s.MD5OfMessageAttributes = &v + return s +} + +// SetMessageAttributes sets the MessageAttributes field's value. +func (s *Message) SetMessageAttributes(v map[string]*MessageAttributeValue) *Message { + s.MessageAttributes = v + return s +} + +// SetMessageId sets the MessageId field's value. +func (s *Message) SetMessageId(v string) *Message { + s.MessageId = &v + return s +} + +// SetReceiptHandle sets the ReceiptHandle field's value. +func (s *Message) SetReceiptHandle(v string) *Message { + s.ReceiptHandle = &v + return s +} + +// The user-specified message attribute value. For string data types, the Value // attribute has the same restrictions on the content as the message body. For -// more information, see SendMessage (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SendMessage.html). +// more information, see SendMessage. // -// Name, type, and value must not be empty or null. In addition, the message -// body should not be empty or null. All parts of the message attribute, including -// name, type, and value, are included in the message size restriction, which -// is currently 256 KB (262,144 bytes). +// Name, type, value and the message body must not be empty or null. All parts +// of the message attribute, including Name, Type, and Value, are part of the +// message size restriction (256 KB or 262,144 bytes). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/MessageAttributeValue type MessageAttributeValue struct { _ struct{} `type:"structure"` // Not implemented. Reserved for future use. BinaryListValues [][]byte `locationName:"BinaryListValue" locationNameList:"BinaryListValue" type:"list" flattened:"true"` - // Binary type attributes can store any binary data, for example, compressed - // data, encrypted data, or images. + // Binary type attributes can store any binary data, such as compressed data, + // encrypted data, or images. // // BinaryValue is automatically base64 encoded/decoded by the SDK. BinaryValue []byte `type:"blob"` @@ -2398,7 +2893,8 @@ type MessageAttributeValue struct { // Binary. For the Number data type, you must use StringValue. // // You can also append custom labels. For more information, see Message Attribute - // Data Types (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributes.DataTypes). + // Data Types and Validation (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html#message-attributes-data-types-validation) + // in the Amazon SQS Developer Guide. // // DataType is a required field DataType *string `type:"string" required:"true"` @@ -2406,8 +2902,8 @@ type MessageAttributeValue struct { // Not implemented. Reserved for future use. StringListValues []*string `locationName:"StringListValue" locationNameList:"StringListValue" type:"list" flattened:"true"` - // Strings are Unicode with UTF8 binary encoding. For a list of code values, - // see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). + // Strings are Unicode with UTF-8 binary encoding. For a list of code values, + // see ASCII Printable Characters (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). StringValue *string `type:"string"` } @@ -2434,11 +2930,41 @@ func (s *MessageAttributeValue) Validate() error { return nil } +// SetBinaryListValues sets the BinaryListValues field's value. +func (s *MessageAttributeValue) SetBinaryListValues(v [][]byte) *MessageAttributeValue { + s.BinaryListValues = v + return s +} + +// SetBinaryValue sets the BinaryValue field's value. +func (s *MessageAttributeValue) SetBinaryValue(v []byte) *MessageAttributeValue { + s.BinaryValue = v + return s +} + +// SetDataType sets the DataType field's value. +func (s *MessageAttributeValue) SetDataType(v string) *MessageAttributeValue { + s.DataType = &v + return s +} + +// SetStringListValues sets the StringListValues field's value. +func (s *MessageAttributeValue) SetStringListValues(v []*string) *MessageAttributeValue { + s.StringListValues = v + return s +} + +// SetStringValue sets the StringValue field's value. +func (s *MessageAttributeValue) SetStringValue(v string) *MessageAttributeValue { + s.StringValue = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/PurgeQueueRequest type PurgeQueueInput struct { _ struct{} `type:"structure"` - // The queue URL of the queue to delete the messages from when using the PurgeQueue - // API. + // The URL of the queue from which the PurgeQueue action deletes messages. // // Queue URLs are case-sensitive. // @@ -2469,6 +2995,13 @@ func (s *PurgeQueueInput) Validate() error { return nil } +// SetQueueUrl sets the QueueUrl field's value. +func (s *PurgeQueueInput) SetQueueUrl(v string) *PurgeQueueInput { + s.QueueUrl = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/PurgeQueueOutput type PurgeQueueOutput struct { _ struct{} `type:"structure"` } @@ -2483,68 +3016,168 @@ func (s PurgeQueueOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ReceiveMessageRequest type ReceiveMessageInput struct { _ struct{} `type:"structure"` // A list of attributes that need to be returned along with each message. These // attributes include: // - // All - returns all values. + // * All - Returns all values. + // + // * ApproximateFirstReceiveTimestamp - Returns the time the message was + // first received from the queue (epoch time (http://en.wikipedia.org/wiki/Unix_time) + // in milliseconds). + // + // * ApproximateReceiveCount - Returns the number of times a message has + // been received from the queue but not deleted. + // + // * SenderId + // + // For an IAM user, returns the IAM user ID, for example ABCDEFGHI1JKLMNOPQ23R. + // + // For an IAM role, returns the IAM role ID, for example ABCDE1F2GH3I4JK5LMNOP:i-a123b456. + // + // * SentTimestamp - Returns the time the message was sent to the queue (epoch + // time (http://en.wikipedia.org/wiki/Unix_time) in milliseconds). + // + // * MessageDeduplicationId - Returns the value provided by the sender that + // calls the SendMessage action. + // + // * MessageGroupId - Returns the value provided by the sender that calls + // the SendMessage action. Messages with the same MessageGroupId are returned + // in sequence. + // + // * SequenceNumber - Returns the value provided by Amazon SQS. + // + // Any other valid special request parameters (such as the following) are ignored: + // + // * ApproximateNumberOfMessages + // + // * ApproximateNumberOfMessagesDelayed + // + // * ApproximateNumberOfMessagesNotVisible + // + // * CreatedTimestamp + // + // * ContentBasedDeduplication + // + // * DelaySeconds + // + // * FifoQueue // - // ApproximateFirstReceiveTimestamp - returns the time when the message was - // first received from the queue (epoch time in milliseconds). + // * LastModifiedTimestamp // - // ApproximateReceiveCount - returns the number of times a message has been - // received from the queue but not deleted. + // * MaximumMessageSize // - // SenderId - returns the AWS account number (or the IP address, if anonymous - // access is allowed) of the sender. + // * MessageRetentionPeriod // - // SentTimestamp - returns the time when the message was sent to the queue - // (epoch time in milliseconds). + // * Policy // - // Any other valid special request parameters that are specified (such as - // ApproximateNumberOfMessages, ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible, - // CreatedTimestamp, DelaySeconds, LastModifiedTimestamp, MaximumMessageSize, - // MessageRetentionPeriod, Policy, QueueArn, ReceiveMessageWaitTimeSeconds, - // RedrivePolicy, and VisibilityTimeout) will be ignored. + // * QueueArn, + // + // * ReceiveMessageWaitTimeSeconds + // + // * RedrivePolicy + // + // * VisibilityTimeout AttributeNames []*string `locationNameList:"AttributeName" type:"list" flattened:"true"` // The maximum number of messages to return. Amazon SQS never returns more messages - // than this value but may return fewer. Values can be from 1 to 10. Default - // is 1. - // - // All of the messages are not necessarily returned. + // than this value (however, fewer messages might be returned). Valid values + // are 1 to 10. Default is 1. MaxNumberOfMessages *int64 `type:"integer"` - // The name of the message attribute, where N is the index. The message attribute - // name can contain the following characters: A-Z, a-z, 0-9, underscore (_), - // hyphen (-), and period (.). The name must not start or end with a period, - // and it should not have successive periods. The name is case sensitive and - // must be unique among all attribute names for the message. The name can be - // up to 256 characters long. The name cannot start with "AWS." or "Amazon." - // (or any variations in casing), because these prefixes are reserved for use - // by Amazon Web Services. + // The name of the message attribute, where N is the index. + // + // * The name can contain alphanumeric characters and the underscore (_), + // hyphen (-), and period (.). + // + // * The name is case-sensitive and must be unique among all attribute names + // for the message. + // + // * The name must not start with AWS-reserved prefixes such as AWS. or Amazon. + // (or any casing variants). + // + // * The name must not start or end with a period (.), and it should not + // have periods in succession (..). + // + // * The name can be up to 256 characters long. // // When using ReceiveMessage, you can send a list of attribute names to receive, - // or you can return all of the attributes by specifying "All" or ".*" in your - // request. You can also use "bar.*" to return all message attributes starting - // with the "bar" prefix. + // or you can return all of the attributes by specifying All or .* in your request. + // You can also use all message attributes starting with a prefix, for example + // bar.*. MessageAttributeNames []*string `locationNameList:"MessageAttributeName" type:"list" flattened:"true"` - // The URL of the Amazon SQS queue to take action on. + // The URL of the Amazon SQS queue from which messages are received. // // Queue URLs are case-sensitive. // // QueueUrl is a required field QueueUrl *string `type:"string" required:"true"` + // This parameter applies only to FIFO (first-in-first-out) queues. + // + // The token used for deduplication of ReceiveMessage calls. If a networking + // issue occurs after a ReceiveMessage action, and instead of a response you + // receive a generic error, you can retry the same action with an identical + // ReceiveRequestAttemptId to retrieve the same set of messages, even if their + // visibility timeout has not yet expired. + // + // * You can use ReceiveRequestAttemptId only for 5 minutes after a ReceiveMessage + // action. + // + // * When you set FifoQueue, a caller of the ReceiveMessage action can provide + // a ReceiveRequestAttemptId explicitly. + // + // * If a caller of the ReceiveMessage action doesn't provide a ReceiveRequestAttemptId, + // Amazon SQS generates a ReceiveRequestAttemptId. + // + // * You can retry the ReceiveMessage action with the same ReceiveRequestAttemptId + // if none of the messages have been modified (deleted or had their visibility + // changes). + // + // * During a visibility timeout, subsequent calls with the same ReceiveRequestAttemptId + // return the same messages and receipt handles. If a retry occurs within + // the deduplication interval, it resets the visibility timeout. For more + // information, see Visibility Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) + // in the Amazon Simple Queue Service Developer Guide. + // + // If a caller of the ReceiveMessage action is still processing messages when + // the visibility timeout expires and messages become visible, another worker + // reading from the same queue can receive the same messages and therefore + // process duplicates. Also, if a reader whose message processing time is + // longer than the visibility timeout tries to delete the processed messages, + // the action fails with an error. + // + // To mitigate this effect, ensure that your application observes a safe threshold + // before the visibility timeout expires and extend the visibility timeout + // as necessary. + // + // * While messages with a particular MessageGroupId are invisible, no more + // messages belonging to the same MessageGroupId are returned until the visibility + // timeout expires. You can still receive messages with another MessageGroupId + // as long as it is also visible. + // + // * If a caller of ReceiveMessage can't track the ReceiveRequestAttemptId, + // no retries work until the original visibility timeout expires. As a result, + // delays might occur but the messages in the queue remain in a strict order. + // + // The length of ReceiveRequestAttemptId is 128 characters. ReceiveRequestAttemptId + // can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~). + // + // For best practices of using ReceiveRequestAttemptId, see Using the ReceiveRequestAttemptId + // Request Parameter (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html#using-receiverequestattemptid-request-parameter) + // in the Amazon Simple Queue Service Developer Guide. + ReceiveRequestAttemptId *string `type:"string"` + // The duration (in seconds) that the received messages are hidden from subsequent // retrieve requests after being retrieved by a ReceiveMessage request. VisibilityTimeout *int64 `type:"integer"` - // The duration (in seconds) for which the call will wait for a message to arrive - // in the queue before returning. If a message is available, the call will return + // The duration (in seconds) for which the call waits for a message to arrive + // in the queue before returning. If a message is available, the call returns // sooner than WaitTimeSeconds. WaitTimeSeconds *int64 `type:"integer"` } @@ -2572,7 +3205,50 @@ func (s *ReceiveMessageInput) Validate() error { return nil } +// SetAttributeNames sets the AttributeNames field's value. +func (s *ReceiveMessageInput) SetAttributeNames(v []*string) *ReceiveMessageInput { + s.AttributeNames = v + return s +} + +// SetMaxNumberOfMessages sets the MaxNumberOfMessages field's value. +func (s *ReceiveMessageInput) SetMaxNumberOfMessages(v int64) *ReceiveMessageInput { + s.MaxNumberOfMessages = &v + return s +} + +// SetMessageAttributeNames sets the MessageAttributeNames field's value. +func (s *ReceiveMessageInput) SetMessageAttributeNames(v []*string) *ReceiveMessageInput { + s.MessageAttributeNames = v + return s +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *ReceiveMessageInput) SetQueueUrl(v string) *ReceiveMessageInput { + s.QueueUrl = &v + return s +} + +// SetReceiveRequestAttemptId sets the ReceiveRequestAttemptId field's value. +func (s *ReceiveMessageInput) SetReceiveRequestAttemptId(v string) *ReceiveMessageInput { + s.ReceiveRequestAttemptId = &v + return s +} + +// SetVisibilityTimeout sets the VisibilityTimeout field's value. +func (s *ReceiveMessageInput) SetVisibilityTimeout(v int64) *ReceiveMessageInput { + s.VisibilityTimeout = &v + return s +} + +// SetWaitTimeSeconds sets the WaitTimeSeconds field's value. +func (s *ReceiveMessageInput) SetWaitTimeSeconds(v int64) *ReceiveMessageInput { + s.WaitTimeSeconds = &v + return s +} + // A list of received messages. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ReceiveMessageResult type ReceiveMessageOutput struct { _ struct{} `type:"structure"` @@ -2590,16 +3266,23 @@ func (s ReceiveMessageOutput) GoString() string { return s.String() } +// SetMessages sets the Messages field's value. +func (s *ReceiveMessageOutput) SetMessages(v []*Message) *ReceiveMessageOutput { + s.Messages = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/RemovePermissionRequest type RemovePermissionInput struct { _ struct{} `type:"structure"` - // The identification of the permission to remove. This is the label added with + // The identification of the permission to remove. This is the label added using // the AddPermission action. // // Label is a required field Label *string `type:"string" required:"true"` - // The URL of the Amazon SQS queue to take action on. + // The URL of the Amazon SQS queue from which permissions are removed. // // Queue URLs are case-sensitive. // @@ -2633,6 +3316,19 @@ func (s *RemovePermissionInput) Validate() error { return nil } +// SetLabel sets the Label field's value. +func (s *RemovePermissionInput) SetLabel(v string) *RemovePermissionInput { + s.Label = &v + return s +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *RemovePermissionInput) SetQueueUrl(v string) *RemovePermissionInput { + s.QueueUrl = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/RemovePermissionOutput type RemovePermissionOutput struct { _ struct{} `type:"structure"` } @@ -2647,6 +3343,7 @@ func (s RemovePermissionOutput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SendMessageBatchRequest type SendMessageBatchInput struct { _ struct{} `type:"structure"` @@ -2655,7 +3352,7 @@ type SendMessageBatchInput struct { // Entries is a required field Entries []*SendMessageBatchRequestEntry `locationNameList:"SendMessageBatchRequestEntry" type:"list" flattened:"true" required:"true"` - // The URL of the Amazon SQS queue to take action on. + // The URL of the Amazon SQS queue to which batched messages are sent. // // Queue URLs are case-sensitive. // @@ -2699,14 +3396,27 @@ func (s *SendMessageBatchInput) Validate() error { return nil } +// SetEntries sets the Entries field's value. +func (s *SendMessageBatchInput) SetEntries(v []*SendMessageBatchRequestEntry) *SendMessageBatchInput { + s.Entries = v + return s +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *SendMessageBatchInput) SetQueueUrl(v string) *SendMessageBatchInput { + s.QueueUrl = &v + return s +} + // For each message in the batch, the response contains a SendMessageBatchResultEntry // tag if the message succeeds or a BatchResultErrorEntry tag if the message // fails. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SendMessageBatchResult type SendMessageBatchOutput struct { _ struct{} `type:"structure"` - // A list of BatchResultErrorEntry items with the error detail about each message - // that could not be enqueued. + // A list of BatchResultErrorEntry items with error details about each message + // that can't be enqueued. // // Failed is a required field Failed []*BatchResultErrorEntry `locationNameList:"BatchResultErrorEntry" type:"list" flattened:"true" required:"true"` @@ -2727,28 +3437,124 @@ func (s SendMessageBatchOutput) GoString() string { return s.String() } -// Contains the details of a single Amazon SQS message along with a Id. +// SetFailed sets the Failed field's value. +func (s *SendMessageBatchOutput) SetFailed(v []*BatchResultErrorEntry) *SendMessageBatchOutput { + s.Failed = v + return s +} + +// SetSuccessful sets the Successful field's value. +func (s *SendMessageBatchOutput) SetSuccessful(v []*SendMessageBatchResultEntry) *SendMessageBatchOutput { + s.Successful = v + return s +} + +// Contains the details of a single Amazon SQS message along with an Id. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SendMessageBatchRequestEntry type SendMessageBatchRequestEntry struct { _ struct{} `type:"structure"` - // The number of seconds for which the message has to be delayed. + // The number of seconds for which a specific message is delayed. Valid values: + // 0 to 900. Maximum: 15 minutes. Messages with a positive DelaySeconds value + // become available for processing after the delay period is finished. If you + // don't specify a value, the default value for the queue is applied. + // + // When you set FifoQueue, you can't set DelaySeconds per message. You can set + // this parameter only on a queue level. DelaySeconds *int64 `type:"integer"` - // An identifier for the message in this batch. This is used to communicate - // the result. Note that the Ids of a batch request need to be unique within - // the request. + // An identifier for a message in this batch used to communicate the result. + // + // The Ids of a batch request need to be unique within a request // // Id is a required field Id *string `type:"string" required:"true"` // Each message attribute consists of a Name, Type, and Value. For more information, - // see Message Attribute Items (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributesNTV). + // see Message Attribute Items and Validation (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html#message-attributes-items-validation) + // in the Amazon SQS Developer Guide. MessageAttributes map[string]*MessageAttributeValue `locationName:"MessageAttribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` - // Body of the message. + // The body of the message. // // MessageBody is a required field MessageBody *string `type:"string" required:"true"` + + // This parameter applies only to FIFO (first-in-first-out) queues. + // + // The token used for deduplication of messages within a 5-minute minimum deduplication + // interval. If a message with a particular MessageDeduplicationId is sent successfully, + // subsequent messages with the same MessageDeduplicationId are accepted successfully + // but aren't delivered. For more information, see Exactly-Once Processing + // (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing) + // in the Amazon SQS Developer Guide. + // + // * Every message must have a unique MessageDeduplicationId, + // + // You may provide a MessageDeduplicationId explicitly. + // + // If you aren't able to provide a MessageDeduplicationId and you enable ContentBasedDeduplication + // for your queue, Amazon SQS uses a SHA-256 hash to generate the MessageDeduplicationId + // using the body of the message (but not the attributes of the message). + // + // + // If you don't provide a MessageDeduplicationId and the queue doesn't have + // ContentBasedDeduplication set, the action fails with an error. + // + // If the queue has ContentBasedDeduplication set, your MessageDeduplicationId + // overrides the generated one. + // + // * When ContentBasedDeduplication is in effect, messages with identical + // content sent within the deduplication interval are treated as duplicates + // and only one copy of the message is delivered. + // + // * You can also use ContentBasedDeduplication for messages with identical + // content to be treated as duplicates. + // + // * If you send one message with ContentBasedDeduplication enabled and then + // another message with a MessageDeduplicationId that is the same as the + // one generated for the first MessageDeduplicationId, the two messages are + // treated as duplicates and only one copy of the message is delivered. + // + // The MessageDeduplicationId is available to the recipient of the message (this + // can be useful for troubleshooting delivery issues). + // + // If a message is sent successfully but the acknowledgement is lost and the + // message is resent with the same MessageDeduplicationId after the deduplication + // interval, Amazon SQS can't detect duplicate messages. + // + // The length of MessageDeduplicationId is 128 characters. MessageDeduplicationId + // can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~). + // + // For best practices of using MessageDeduplicationId, see Using the MessageDeduplicationId + // Property (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html#using-messagededuplicationid-property) + // in the Amazon Simple Queue Service Developer Guide. + MessageDeduplicationId *string `type:"string"` + + // This parameter applies only to FIFO (first-in-first-out) queues. + // + // The tag that specifies that a message belongs to a specific message group. + // Messages that belong to the same message group are processed in a FIFO manner + // (however, messages in different message groups might be processed out of + // order). To interleave multiple ordered streams within a single queue, use + // MessageGroupId values (for example, session data for multiple users). In + // this scenario, multiple readers can process the queue, but the session data + // of each user is processed in a FIFO fashion. + // + // * You must associate a non-empty MessageGroupId with a message. If you + // don't provide a MessageGroupId, the action fails. + // + // * ReceiveMessage might return messages with multiple MessageGroupId values. + // For each MessageGroupId, the messages are sorted by time sent. The caller + // can't specify a MessageGroupId. + // + // The length of MessageGroupId is 128 characters. Valid values are alphanumeric + // characters and punctuation (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~). + // + // For best practices of using MessageGroupId, see Using the MessageGroupId + // Property (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html#using-messagegroupid-property) + // in the Amazon Simple Queue Service Developer Guide. + MessageGroupId *string `type:"string"` } // String returns the string representation @@ -2787,7 +3593,44 @@ func (s *SendMessageBatchRequestEntry) Validate() error { return nil } -// Encloses a message ID for successfully enqueued message of a SendMessageBatch. +// SetDelaySeconds sets the DelaySeconds field's value. +func (s *SendMessageBatchRequestEntry) SetDelaySeconds(v int64) *SendMessageBatchRequestEntry { + s.DelaySeconds = &v + return s +} + +// SetId sets the Id field's value. +func (s *SendMessageBatchRequestEntry) SetId(v string) *SendMessageBatchRequestEntry { + s.Id = &v + return s +} + +// SetMessageAttributes sets the MessageAttributes field's value. +func (s *SendMessageBatchRequestEntry) SetMessageAttributes(v map[string]*MessageAttributeValue) *SendMessageBatchRequestEntry { + s.MessageAttributes = v + return s +} + +// SetMessageBody sets the MessageBody field's value. +func (s *SendMessageBatchRequestEntry) SetMessageBody(v string) *SendMessageBatchRequestEntry { + s.MessageBody = &v + return s +} + +// SetMessageDeduplicationId sets the MessageDeduplicationId field's value. +func (s *SendMessageBatchRequestEntry) SetMessageDeduplicationId(v string) *SendMessageBatchRequestEntry { + s.MessageDeduplicationId = &v + return s +} + +// SetMessageGroupId sets the MessageGroupId field's value. +func (s *SendMessageBatchRequestEntry) SetMessageGroupId(v string) *SendMessageBatchRequestEntry { + s.MessageGroupId = &v + return s +} + +// Encloses a MessageId for a successfully-enqueued message in a SendMessageBatch. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SendMessageBatchResultEntry type SendMessageBatchResultEntry struct { _ struct{} `type:"structure"` @@ -2796,16 +3639,16 @@ type SendMessageBatchResultEntry struct { // Id is a required field Id *string `type:"string" required:"true"` - // An MD5 digest of the non-URL-encoded message attribute string. This can be - // used to verify that Amazon SQS received the message batch correctly. Amazon - // SQS first URL decodes the message before creating the MD5 digest. For information - // about MD5, go to http://www.faqs.org/rfcs/rfc1321.html (http://www.faqs.org/rfcs/rfc1321.html). + // An MD5 digest of the non-URL-encoded message attribute string. You can use + // this attribute to verify that Amazon SQS received the message correctly. + // Amazon SQS URL-decodes the message before creating the MD5 digest. For information + // on MD5, see RFC1321 (https://www.ietf.org/rfc/rfc1321.txt). MD5OfMessageAttributes *string `type:"string"` - // An MD5 digest of the non-URL-encoded message body string. This can be used - // to verify that Amazon SQS received the message correctly. Amazon SQS first - // URL decodes the message before creating the MD5 digest. For information about - // MD5, go to http://www.faqs.org/rfcs/rfc1321.html (http://www.faqs.org/rfcs/rfc1321.html). + // An MD5 digest of the non-URL-encoded message attribute string. You can use + // this attribute to verify that Amazon SQS received the message correctly. + // Amazon SQS URL-decodes the message before creating the MD5 digest. For information + // on MD5, see RFC1321 (https://www.ietf.org/rfc/rfc1321.txt). // // MD5OfMessageBody is a required field MD5OfMessageBody *string `type:"string" required:"true"` @@ -2814,6 +3657,14 @@ type SendMessageBatchResultEntry struct { // // MessageId is a required field MessageId *string `type:"string" required:"true"` + + // This parameter applies only to FIFO (first-in-first-out) queues. + // + // A large, non-consecutive number that Amazon SQS assigns to each message. + // + // The length of SequenceNumber is 128 bits. As SequenceNumber continues to + // increase for a particular MessageGroupId. + SequenceNumber *string `type:"string"` } // String returns the string representation @@ -2826,26 +3677,155 @@ func (s SendMessageBatchResultEntry) GoString() string { return s.String() } +// SetId sets the Id field's value. +func (s *SendMessageBatchResultEntry) SetId(v string) *SendMessageBatchResultEntry { + s.Id = &v + return s +} + +// SetMD5OfMessageAttributes sets the MD5OfMessageAttributes field's value. +func (s *SendMessageBatchResultEntry) SetMD5OfMessageAttributes(v string) *SendMessageBatchResultEntry { + s.MD5OfMessageAttributes = &v + return s +} + +// SetMD5OfMessageBody sets the MD5OfMessageBody field's value. +func (s *SendMessageBatchResultEntry) SetMD5OfMessageBody(v string) *SendMessageBatchResultEntry { + s.MD5OfMessageBody = &v + return s +} + +// SetMessageId sets the MessageId field's value. +func (s *SendMessageBatchResultEntry) SetMessageId(v string) *SendMessageBatchResultEntry { + s.MessageId = &v + return s +} + +// SetSequenceNumber sets the SequenceNumber field's value. +func (s *SendMessageBatchResultEntry) SetSequenceNumber(v string) *SendMessageBatchResultEntry { + s.SequenceNumber = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SendMessageRequest type SendMessageInput struct { _ struct{} `type:"structure"` - // The number of seconds (0 to 900 - 15 minutes) to delay a specific message. - // Messages with a positive DelaySeconds value become available for processing - // after the delay time is finished. If you don't specify a value, the default - // value for the queue applies. + // The number of seconds to delay a specific message. Valid values: 0 to 900. + // Maximum: 15 minutes. Messages with a positive DelaySeconds value become available + // for processing after the delay period is finished. If you don't specify a + // value, the default value for the queue applies. + // + // When you set FifoQueue, you can't set DelaySeconds per message. You can set + // this parameter only on a queue level. DelaySeconds *int64 `type:"integer"` // Each message attribute consists of a Name, Type, and Value. For more information, - // see Message Attribute Items (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributesNTV). + // see Message Attribute Items and Validation (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html#message-attributes-items-validation) + // in the Amazon SQS Developer Guide. MessageAttributes map[string]*MessageAttributeValue `locationName:"MessageAttribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` - // The message to send. String maximum 256 KB in size. For a list of allowed - // characters, see the preceding important note. + // The message to send. The maximum string size is 256 KB. + // + // The following list shows the characters (in Unicode) that are allowed in + // your message, according to the W3C XML specification: + // + // #x9 + // + // #xA + // + // #xD + // + // #x20 to #xD7FF + // + // #xE000 to #xFFFD + // + // #x10000 to #x10FFFF + // + // For more information, see RFC1321 (https://www.ietf.org/rfc/rfc1321.txt). + // If you send any characters that aren't included in this list, your request + // is rejected. // // MessageBody is a required field MessageBody *string `type:"string" required:"true"` - // The URL of the Amazon SQS queue to take action on. + // This parameter applies only to FIFO (first-in-first-out) queues. + // + // The token used for deduplication of sent messages. If a message with a particular + // MessageDeduplicationId is sent successfully, any messages sent with the same + // MessageDeduplicationId are accepted successfully but aren't delivered during + // the 5-minute deduplication interval. For more information, see Exactly-Once + // Processing (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing) + // in the Amazon SQS Developer Guide. + // + // * Every message must have a unique MessageDeduplicationId, + // + // You may provide a MessageDeduplicationId explicitly. + // + // If you aren't able to provide a MessageDeduplicationId and you enable ContentBasedDeduplication + // for your queue, Amazon SQS uses a SHA-256 hash to generate the MessageDeduplicationId + // using the body of the message (but not the attributes of the message). + // + // + // If you don't provide a MessageDeduplicationId and the queue doesn't have + // ContentBasedDeduplication set, the action fails with an error. + // + // If the queue has ContentBasedDeduplication set, your MessageDeduplicationId + // overrides the generated one. + // + // * When ContentBasedDeduplication is in effect, messages with identical + // content sent within the deduplication interval are treated as duplicates + // and only one copy of the message is delivered. + // + // * You can also use ContentBasedDeduplication for messages with identical + // content to be treated as duplicates. + // + // * If you send one message with ContentBasedDeduplication enabled and then + // another message with a MessageDeduplicationId that is the same as the + // one generated for the first MessageDeduplicationId, the two messages are + // treated as duplicates and only one copy of the message is delivered. + // + // The MessageDeduplicationId is available to the recipient of the message (this + // can be useful for troubleshooting delivery issues). + // + // If a message is sent successfully but the acknowledgement is lost and the + // message is resent with the same MessageDeduplicationId after the deduplication + // interval, Amazon SQS can't detect duplicate messages. + // + // The length of MessageDeduplicationId is 128 characters. MessageDeduplicationId + // can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~). + // + // For best practices of using MessageDeduplicationId, see Using the MessageDeduplicationId + // Property (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html#using-messagededuplicationid-property) + // in the Amazon Simple Queue Service Developer Guide. + MessageDeduplicationId *string `type:"string"` + + // This parameter applies only to FIFO (first-in-first-out) queues. + // + // The tag that specifies that a message belongs to a specific message group. + // Messages that belong to the same message group are processed in a FIFO manner + // (however, messages in different message groups might be processed out of + // order). To interleave multiple ordered streams within a single queue, use + // MessageGroupId values (for example, session data for multiple users). In + // this scenario, multiple readers can process the queue, but the session data + // of each user is processed in a FIFO fashion. + // + // * You must associate a non-empty MessageGroupId with a message. If you + // don't provide a MessageGroupId, the action fails. + // + // * ReceiveMessage might return messages with multiple MessageGroupId values. + // For each MessageGroupId, the messages are sorted by time sent. The caller + // can't specify a MessageGroupId. + // + // The length of MessageGroupId is 128 characters. Valid values are alphanumeric + // characters and punctuation (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~). + // + // For best practices of using MessageGroupId, see Using the MessageGroupId + // Property (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html#using-messagegroupid-property) + // in the Amazon Simple Queue Service Developer Guide. + MessageGroupId *string `type:"string"` + + // The URL of the Amazon SQS queue to which a message is sent. // // Queue URLs are case-sensitive. // @@ -2889,26 +3869,71 @@ func (s *SendMessageInput) Validate() error { return nil } +// SetDelaySeconds sets the DelaySeconds field's value. +func (s *SendMessageInput) SetDelaySeconds(v int64) *SendMessageInput { + s.DelaySeconds = &v + return s +} + +// SetMessageAttributes sets the MessageAttributes field's value. +func (s *SendMessageInput) SetMessageAttributes(v map[string]*MessageAttributeValue) *SendMessageInput { + s.MessageAttributes = v + return s +} + +// SetMessageBody sets the MessageBody field's value. +func (s *SendMessageInput) SetMessageBody(v string) *SendMessageInput { + s.MessageBody = &v + return s +} + +// SetMessageDeduplicationId sets the MessageDeduplicationId field's value. +func (s *SendMessageInput) SetMessageDeduplicationId(v string) *SendMessageInput { + s.MessageDeduplicationId = &v + return s +} + +// SetMessageGroupId sets the MessageGroupId field's value. +func (s *SendMessageInput) SetMessageGroupId(v string) *SendMessageInput { + s.MessageGroupId = &v + return s +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *SendMessageInput) SetQueueUrl(v string) *SendMessageInput { + s.QueueUrl = &v + return s +} + // The MD5OfMessageBody and MessageId elements. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SendMessageResult type SendMessageOutput struct { _ struct{} `type:"structure"` - // An MD5 digest of the non-URL-encoded message attribute string. This can be - // used to verify that Amazon SQS received the message correctly. Amazon SQS - // first URL decodes the message before creating the MD5 digest. For information - // about MD5, go to http://www.faqs.org/rfcs/rfc1321.html (http://www.faqs.org/rfcs/rfc1321.html). + // An MD5 digest of the non-URL-encoded message attribute string. You can use + // this attribute to verify that Amazon SQS received the message correctly. + // Amazon SQS URL-decodes the message before creating the MD5 digest. For information + // on MD5, see RFC1321 (https://www.ietf.org/rfc/rfc1321.txt). MD5OfMessageAttributes *string `type:"string"` - // An MD5 digest of the non-URL-encoded message body string. This can be used - // to verify that Amazon SQS received the message correctly. Amazon SQS first - // URL decodes the message before creating the MD5 digest. For information about - // MD5, go to http://www.faqs.org/rfcs/rfc1321.html (http://www.faqs.org/rfcs/rfc1321.html). + // An MD5 digest of the non-URL-encoded message attribute string. You can use + // this attribute to verify that Amazon SQS received the message correctly. + // Amazon SQS URL-decodes the message before creating the MD5 digest. For information + // on MD5, see RFC1321 (https://www.ietf.org/rfc/rfc1321.txt). MD5OfMessageBody *string `type:"string"` - // An element containing the message ID of the message sent to the queue. For - // more information, see Queue and Message Identifiers (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ImportantIdentifiers.html) + // An attribute containing the MessageId of the message sent to the queue. For + // more information, see Queue and Message Identifiers (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-message-identifiers.html) // in the Amazon SQS Developer Guide. MessageId *string `type:"string"` + + // This parameter applies only to FIFO (first-in-first-out) queues. + // + // A large, non-consecutive number that Amazon SQS assigns to each message. + // + // The length of SequenceNumber is 128 bits. SequenceNumber continues to increase + // for a particular MessageGroupId. + SequenceNumber *string `type:"string"` } // String returns the string representation @@ -2921,51 +3946,126 @@ func (s SendMessageOutput) GoString() string { return s.String() } +// SetMD5OfMessageAttributes sets the MD5OfMessageAttributes field's value. +func (s *SendMessageOutput) SetMD5OfMessageAttributes(v string) *SendMessageOutput { + s.MD5OfMessageAttributes = &v + return s +} + +// SetMD5OfMessageBody sets the MD5OfMessageBody field's value. +func (s *SendMessageOutput) SetMD5OfMessageBody(v string) *SendMessageOutput { + s.MD5OfMessageBody = &v + return s +} + +// SetMessageId sets the MessageId field's value. +func (s *SendMessageOutput) SetMessageId(v string) *SendMessageOutput { + s.MessageId = &v + return s +} + +// SetSequenceNumber sets the SequenceNumber field's value. +func (s *SendMessageOutput) SetSequenceNumber(v string) *SendMessageOutput { + s.SequenceNumber = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SetQueueAttributesRequest type SetQueueAttributesInput struct { _ struct{} `type:"structure"` // A map of attributes to set. // // The following lists the names, descriptions, and values of the special request - // parameters the SetQueueAttributes action uses: + // parameters that the SetQueueAttributes action uses: + // + // * DelaySeconds - The number of seconds for which the delivery of all messages + // in the queue is delayed. Valid values: An integer from 0 to 900 (15 minutes). + // The default is 0 (zero). + // + // * MaximumMessageSize - The limit of how many bytes a message can contain + // before Amazon SQS rejects it. Valid values: An integer from 1,024 bytes + // (1 KiB) up to 262,144 bytes (256 KiB). The default is 262,144 (256 KiB). + // + // + // * MessageRetentionPeriod - The number of seconds for which Amazon SQS + // retains a message. Valid values: An integer representing seconds, from + // 60 (1 minute) to 1,209,600 (14 days). The default is 345,600 (4 days). + // + // + // * Policy - The queue's policy. A valid AWS policy. For more information + // about policy structure, see Overview of AWS IAM Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html) + // in the Amazon IAM User Guide. + // + // * ReceiveMessageWaitTimeSeconds - The number of seconds for which a ReceiveMessage + // action waits for a message to arrive. Valid values: an integer from 0 + // to 20 (seconds). The default is 0. + // + // * RedrivePolicy - The parameters for the dead letter queue functionality + // of the source queue. For more information about the redrive policy and + // dead letter queues, see Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) + // in the Amazon SQS Developer Guide. + // + // The dead letter queue of a FIFO queue must also be a FIFO queue. Similarly, + // the dead letter queue of a standard queue must also be a standard queue. // - // DelaySeconds - The time in seconds that the delivery of all messages in - // the queue will be delayed. An integer from 0 to 900 (15 minutes). The default - // for this attribute is 0 (zero). + // * VisibilityTimeout - The visibility timeout for the queue. Valid values: + // an integer from 0 to 43,200 (12 hours). The default is 30. For more information + // about the visibility timeout, see Visibility Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) + // in the Amazon SQS Developer Guide. // - // MaximumMessageSize - The limit of how many bytes a message can contain before - // Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes - // (256 KiB). The default for this attribute is 262144 (256 KiB). + // The following attribute applies only to FIFO (first-in-first-out) queues + // (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html): // - // MessageRetentionPeriod - The number of seconds Amazon SQS retains a message. - // Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The - // default for this attribute is 345600 (4 days). + // * ContentBasedDeduplication - Enables content-based deduplication. For + // more information, see Exactly-Once Processing (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing) + // in the Amazon SQS Developer Guide. // - // Policy - The queue's policy. A valid AWS policy. For more information about - // policy structure, see Overview of AWS IAM Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html) - // in the Amazon IAM User Guide. + // Every message must have a unique MessageDeduplicationId, // - // ReceiveMessageWaitTimeSeconds - The time for which a ReceiveMessage call - // will wait for a message to arrive. An integer from 0 to 20 (seconds). The - // default for this attribute is 0. + // You may provide a MessageDeduplicationId explicitly. // - // VisibilityTimeout - The visibility timeout for the queue. An integer from - // 0 to 43200 (12 hours). The default for this attribute is 30. For more information - // about visibility timeout, see Visibility Timeout in the Amazon SQS Developer - // Guide. + // If you aren't able to provide a MessageDeduplicationId and you enable ContentBasedDeduplication + // for your queue, Amazon SQS uses a SHA-256 hash to generate the MessageDeduplicationId + // using the body of the message (but not the attributes of the message). // - // RedrivePolicy - The parameters for dead letter queue functionality of the - // source queue. For more information about RedrivePolicy and dead letter queues, - // see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide. // - // Any other valid special request parameters that are specified (such as - // ApproximateNumberOfMessages, ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible, - // CreatedTimestamp, LastModifiedTimestamp, and QueueArn) will be ignored. + // If you don't provide a MessageDeduplicationId and the queue doesn't have + // ContentBasedDeduplication set, the action fails with an error. + // + // If the queue has ContentBasedDeduplication set, your MessageDeduplicationId + // overrides the generated one. + // + // When ContentBasedDeduplication is in effect, messages with identical content + // sent within the deduplication interval are treated as duplicates and only + // one copy of the message is delivered. + // + // You can also use ContentBasedDeduplication for messages with identical content + // to be treated as duplicates. + // + // If you send one message with ContentBasedDeduplication enabled and then another + // message with a MessageDeduplicationId that is the same as the one generated + // for the first MessageDeduplicationId, the two messages are treated as + // duplicates and only one copy of the message is delivered. + // + // Any other valid special request parameters (such as the following) are ignored: + // + // * ApproximateNumberOfMessages + // + // * ApproximateNumberOfMessagesDelayed + // + // * ApproximateNumberOfMessagesNotVisible + // + // * CreatedTimestamp + // + // * LastModifiedTimestamp + // + // * QueueArn // // Attributes is a required field Attributes map[string]*string `locationName:"Attribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true" required:"true"` - // The URL of the Amazon SQS queue to take action on. + // The URL of the Amazon SQS queue whose attributes are set. // // Queue URLs are case-sensitive. // @@ -2999,6 +4099,19 @@ func (s *SetQueueAttributesInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *SetQueueAttributesInput) SetAttributes(v map[string]*string) *SetQueueAttributesInput { + s.Attributes = v + return s +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *SetQueueAttributesInput) SetQueueUrl(v string) *SetQueueAttributesInput { + s.QueueUrl = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SetQueueAttributesOutput type SetQueueAttributesOutput struct { _ struct{} `type:"structure"` } @@ -3014,6 +4127,32 @@ func (s SetQueueAttributesOutput) GoString() string { } const ( + // MessageSystemAttributeNameSenderId is a MessageSystemAttributeName enum value + MessageSystemAttributeNameSenderId = "SenderId" + + // MessageSystemAttributeNameSentTimestamp is a MessageSystemAttributeName enum value + MessageSystemAttributeNameSentTimestamp = "SentTimestamp" + + // MessageSystemAttributeNameApproximateReceiveCount is a MessageSystemAttributeName enum value + MessageSystemAttributeNameApproximateReceiveCount = "ApproximateReceiveCount" + + // MessageSystemAttributeNameApproximateFirstReceiveTimestamp is a MessageSystemAttributeName enum value + MessageSystemAttributeNameApproximateFirstReceiveTimestamp = "ApproximateFirstReceiveTimestamp" + + // MessageSystemAttributeNameSequenceNumber is a MessageSystemAttributeName enum value + MessageSystemAttributeNameSequenceNumber = "SequenceNumber" + + // MessageSystemAttributeNameMessageDeduplicationId is a MessageSystemAttributeName enum value + MessageSystemAttributeNameMessageDeduplicationId = "MessageDeduplicationId" + + // MessageSystemAttributeNameMessageGroupId is a MessageSystemAttributeName enum value + MessageSystemAttributeNameMessageGroupId = "MessageGroupId" +) + +const ( + // QueueAttributeNameAll is a QueueAttributeName enum value + QueueAttributeNameAll = "All" + // QueueAttributeNamePolicy is a QueueAttributeName enum value QueueAttributeNamePolicy = "Policy" @@ -3052,4 +4191,10 @@ const ( // QueueAttributeNameRedrivePolicy is a QueueAttributeName enum value QueueAttributeNameRedrivePolicy = "RedrivePolicy" + + // QueueAttributeNameFifoQueue is a QueueAttributeName enum value + QueueAttributeNameFifoQueue = "FifoQueue" + + // QueueAttributeNameContentBasedDeduplication is a QueueAttributeName enum value + QueueAttributeNameContentBasedDeduplication = "ContentBasedDeduplication" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/errors.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/errors.go new file mode 100644 index 000000000..d4f394e0e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/errors.go @@ -0,0 +1,110 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package sqs + +const ( + + // ErrCodeBatchEntryIdsNotDistinct for service response error code + // "AWS.SimpleQueueService.BatchEntryIdsNotDistinct". + // + // Two or more batch entries in the request have the same Id. + ErrCodeBatchEntryIdsNotDistinct = "AWS.SimpleQueueService.BatchEntryIdsNotDistinct" + + // ErrCodeBatchRequestTooLong for service response error code + // "AWS.SimpleQueueService.BatchRequestTooLong". + // + // The length of all the messages put together is more than the limit. + ErrCodeBatchRequestTooLong = "AWS.SimpleQueueService.BatchRequestTooLong" + + // ErrCodeEmptyBatchRequest for service response error code + // "AWS.SimpleQueueService.EmptyBatchRequest". + // + // The batch request doesn't contain any entries. + ErrCodeEmptyBatchRequest = "AWS.SimpleQueueService.EmptyBatchRequest" + + // ErrCodeInvalidAttributeName for service response error code + // "InvalidAttributeName". + // + // The attribute referred to doesn't exist. + ErrCodeInvalidAttributeName = "InvalidAttributeName" + + // ErrCodeInvalidBatchEntryId for service response error code + // "AWS.SimpleQueueService.InvalidBatchEntryId". + // + // The Id of a batch entry in a batch request doesn't abide by the specification. + ErrCodeInvalidBatchEntryId = "AWS.SimpleQueueService.InvalidBatchEntryId" + + // ErrCodeInvalidIdFormat for service response error code + // "InvalidIdFormat". + // + // The receipt handle isn't valid for the current version. + ErrCodeInvalidIdFormat = "InvalidIdFormat" + + // ErrCodeInvalidMessageContents for service response error code + // "InvalidMessageContents". + // + // The message contains characters outside the allowed set. + ErrCodeInvalidMessageContents = "InvalidMessageContents" + + // ErrCodeMessageNotInflight for service response error code + // "AWS.SimpleQueueService.MessageNotInflight". + // + // The message referred to isn't in flight. + ErrCodeMessageNotInflight = "AWS.SimpleQueueService.MessageNotInflight" + + // ErrCodeOverLimit for service response error code + // "OverLimit". + // + // The action that you requested would violate a limit. For example, ReceiveMessage + // returns this error if the maximum number of inflight messages is reached. + // AddPermission returns this error if the maximum number of permissions for + // the queue is reached. + ErrCodeOverLimit = "OverLimit" + + // ErrCodePurgeQueueInProgress for service response error code + // "AWS.SimpleQueueService.PurgeQueueInProgress". + // + // Indicates that the specified queue previously received a PurgeQueue request + // within the last 60 seconds (the time it can take to delete the messages in + // the queue). + ErrCodePurgeQueueInProgress = "AWS.SimpleQueueService.PurgeQueueInProgress" + + // ErrCodeQueueDeletedRecently for service response error code + // "AWS.SimpleQueueService.QueueDeletedRecently". + // + // You must wait 60 seconds after deleting a queue before you can create another + // one with the same name. + ErrCodeQueueDeletedRecently = "AWS.SimpleQueueService.QueueDeletedRecently" + + // ErrCodeQueueDoesNotExist for service response error code + // "AWS.SimpleQueueService.NonExistentQueue". + // + // The queue referred to doesn't exist. + ErrCodeQueueDoesNotExist = "AWS.SimpleQueueService.NonExistentQueue" + + // ErrCodeQueueNameExists for service response error code + // "QueueAlreadyExists". + // + // A queue already exists with this name. Amazon SQS returns this error only + // if the request includes attributes whose values differ from those of the + // existing queue. + ErrCodeQueueNameExists = "QueueAlreadyExists" + + // ErrCodeReceiptHandleIsInvalid for service response error code + // "ReceiptHandleIsInvalid". + // + // The receipt handle provided isn't valid. + ErrCodeReceiptHandleIsInvalid = "ReceiptHandleIsInvalid" + + // ErrCodeTooManyEntriesInBatchRequest for service response error code + // "AWS.SimpleQueueService.TooManyEntriesInBatchRequest". + // + // The batch request contains more entries than permissible. + ErrCodeTooManyEntriesInBatchRequest = "AWS.SimpleQueueService.TooManyEntriesInBatchRequest" + + // ErrCodeUnsupportedOperation for service response error code + // "AWS.SimpleQueueService.UnsupportedOperation". + // + // Error code 400. Unsupported operation. + ErrCodeUnsupportedOperation = "AWS.SimpleQueueService.UnsupportedOperation" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/examples_test.go index b39289e2a..341c37787 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSQS_AddPermission() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -50,11 +46,7 @@ func ExampleSQS_AddPermission() { } func ExampleSQS_ChangeMessageVisibility() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -77,11 +69,7 @@ func ExampleSQS_ChangeMessageVisibility() { } func ExampleSQS_ChangeMessageVisibilityBatch() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -110,11 +98,7 @@ func ExampleSQS_ChangeMessageVisibilityBatch() { } func ExampleSQS_CreateQueue() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -139,11 +123,7 @@ func ExampleSQS_CreateQueue() { } func ExampleSQS_DeleteMessage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -165,11 +145,7 @@ func ExampleSQS_DeleteMessage() { } func ExampleSQS_DeleteMessageBatch() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -197,11 +173,7 @@ func ExampleSQS_DeleteMessageBatch() { } func ExampleSQS_DeleteQueue() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -222,11 +194,7 @@ func ExampleSQS_DeleteQueue() { } func ExampleSQS_GetQueueAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -251,11 +219,7 @@ func ExampleSQS_GetQueueAttributes() { } func ExampleSQS_GetQueueUrl() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -277,11 +241,7 @@ func ExampleSQS_GetQueueUrl() { } func ExampleSQS_ListDeadLetterSourceQueues() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -302,11 +262,7 @@ func ExampleSQS_ListDeadLetterSourceQueues() { } func ExampleSQS_ListQueues() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -327,11 +283,7 @@ func ExampleSQS_ListQueues() { } func ExampleSQS_PurgeQueue() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -352,11 +304,7 @@ func ExampleSQS_PurgeQueue() { } func ExampleSQS_ReceiveMessage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -371,8 +319,9 @@ func ExampleSQS_ReceiveMessage() { aws.String("MessageAttributeName"), // Required // More values... }, - VisibilityTimeout: aws.Int64(1), - WaitTimeSeconds: aws.Int64(1), + ReceiveRequestAttemptId: aws.String("String"), + VisibilityTimeout: aws.Int64(1), + WaitTimeSeconds: aws.Int64(1), } resp, err := svc.ReceiveMessage(params) @@ -388,11 +337,7 @@ func ExampleSQS_ReceiveMessage() { } func ExampleSQS_RemovePermission() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -414,11 +359,7 @@ func ExampleSQS_RemovePermission() { } func ExampleSQS_SendMessage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -442,6 +383,8 @@ func ExampleSQS_SendMessage() { }, // More values... }, + MessageDeduplicationId: aws.String("String"), + MessageGroupId: aws.String("String"), } resp, err := svc.SendMessage(params) @@ -457,11 +400,7 @@ func ExampleSQS_SendMessage() { } func ExampleSQS_SendMessageBatch() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) @@ -487,6 +426,8 @@ func ExampleSQS_SendMessageBatch() { }, // More values... }, + MessageDeduplicationId: aws.String("String"), + MessageGroupId: aws.String("String"), }, // More values... }, @@ -506,11 +447,7 @@ func ExampleSQS_SendMessageBatch() { } func ExampleSQS_SetQueueAttributes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sqs.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/service.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/service.go index aaf456caa..7df1fbc7e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/service.go @@ -11,42 +11,45 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/query" ) -// Welcome to the Amazon Simple Queue Service API Reference. This section describes -// who should read this guide, how the guide is organized, and other resources -// related to the Amazon Simple Queue Service (Amazon SQS). +// Welcome to the Amazon Simple Queue Service API Reference. // -// Amazon SQS offers reliable and scalable hosted queues for storing messages -// as they travel between computers. By using Amazon SQS, you can move data -// between distributed components of your applications that perform different -// tasks without losing messages or requiring each component to be always available. +// Amazon Simple Queue Service (Amazon SQS) is a reliable, highly-scalable hosted +// queue for storing messages as they travel between applications or microservices. +// Amazon SQS moves data between distributed application components and helps +// you decouple these components. // -// Helpful Links: +// Standard queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/standard-queues.html) +// are available in all regions. FIFO queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html) +// are available in US West (Oregon) and US East (Ohio). // -// Current WSDL (2012-11-05) (http://queue.amazonaws.com/doc/2012-11-05/QueueService.wsdl) +// You can use AWS SDKs (http://aws.amazon.com/tools/#sdk) to access Amazon +// SQS using your favorite programming language. The SDKs perform tasks such +// as the following automatically: // -// Making API Requests (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/MakingRequestsArticle.html) +// * Cryptographically sign your service requests // -// Amazon SQS product page (http://aws.amazon.com/sqs/) +// * Retry requests // -// Using Amazon SQS Message Attributes (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html) +// * Handle error responses // -// Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html) +// Additional Information // -// Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region) +// * Amazon SQS Product Page (http://aws.amazon.com/sqs/) +// +// * Amazon SQS Developer Guide // -// We also provide SDKs that enable you to access Amazon SQS from your preferred -// programming language. The SDKs contain functionality that automatically takes -// care of tasks such as: +// Making API Requests (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/MakingRequestsArticle.html) // -// Cryptographically signing your service requests +// Using Amazon SQS Message Attributes (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html) // -// Retrying requests +// Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) // -// Handling error responses +// * Amazon Web Services General Reference // -// For a list of available SDKs, go to Tools for Amazon Web Services (http://aws.amazon.com/tools/). -//The service client's operations are safe to be used concurrently. +// Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region) +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05 type SQS struct { *client.Client } @@ -57,8 +60,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "sqs" +// Service information constants +const ( + ServiceName = "sqs" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the SQS client with a session. // If additional configuration is needed for the client instance use the optional @@ -71,17 +77,18 @@ const ServiceName = "sqs" // // Create a SQS client with additional configuration // svc := sqs.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *SQS { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *SQS { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *SQS { svc := &SQS{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2012-11-05", diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/sqsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/sqsiface/interface.go index 622a48c77..7f8175903 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/sqsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/sqsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockSQSClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssm/api.go b/vendor/github.com/aws/aws-sdk-go/service/ssm/api.go index 040b5d613..56bbee8ee 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ssm/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ssm/api.go @@ -1,6 +1,6 @@ // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. -// Package ssm provides a client for Amazon Simple Systems Management Service. +// Package ssm provides a client for Amazon Simple Systems Manager (SSM). package ssm import ( @@ -37,6 +37,7 @@ const opAddTagsToResource = "AddTagsToResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AddTagsToResource func (c *SSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) { op := &request.Operation{ Name: opAddTagsToResource, @@ -48,13 +49,12 @@ func (c *SSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *requ input = &AddTagsToResourceInput{} } - req = c.newRequest(op, input, output) output = &AddTagsToResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } -// AddTagsToResource API operation for Amazon Simple Systems Management Service. +// AddTagsToResource API operation for Amazon Simple Systems Manager (SSM). // // Adds or overwrites one or more tags for the specified resource. Tags are // metadata that you assign to your managed instances. Tags enable you to categorize @@ -66,7 +66,7 @@ func (c *SSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *requ // and Value=Production, Pre-Production, or Test. Each resource can have a maximum // of 10 tags. // -// We recommend that you devise a set of tag keys that meets your needs for +// We recommend that you devise a set of tag keys that meets your needs for // each resource type. Using a consistent set of tag keys makes it easier for // you to manage your resources. You can search and filter the resources based // on the tags you add. Tags don't have any semantic meaning to Amazon EC2 and @@ -79,21 +79,26 @@ func (c *SSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *requ // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation AddTagsToResource for usage and error information. // // Returned Error Codes: -// * InvalidResourceType +// * ErrCodeInvalidResourceType "InvalidResourceType" // The resource type is not valid. If you are attempting to tag an instance, // the instance must be a registered, managed instance. // -// * InvalidResourceId +// * ErrCodeInvalidResourceId "InvalidResourceId" // The resource ID is not valid. Verify that you entered the correct ID and // try again. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // +// * ErrCodeTooManyTagsError "TooManyTagsError" +// The Targets parameter includes too many tags. Remove one or more tags and +// try the command again. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AddTagsToResource func (c *SSM) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -126,6 +131,7 @@ const opCancelCommand = "CancelCommand" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CancelCommand func (c *SSM) CancelCommandRequest(input *CancelCommandInput) (req *request.Request, output *CancelCommandOutput) { op := &request.Operation{ Name: opCancelCommand, @@ -137,13 +143,12 @@ func (c *SSM) CancelCommandRequest(input *CancelCommandInput) (req *request.Requ input = &CancelCommandInput{} } - req = c.newRequest(op, input, output) output = &CancelCommandOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } -// CancelCommand API operation for Amazon Simple Systems Management Service. +// CancelCommand API operation for Amazon Simple Systems Manager (SSM). // // Attempts to cancel the command specified by the Command ID. There is no guarantee // that the command will be terminated and the underlying process stopped. @@ -152,23 +157,34 @@ func (c *SSM) CancelCommandRequest(input *CancelCommandInput) (req *request.Requ // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation CancelCommand for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // -// * InvalidCommandId - +// * ErrCodeInvalidCommandId "InvalidCommandId" +// +// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// The following problems can cause this exception: +// +// You do not have permission to access the instance. +// +// The SSM agent is not running. On managed instances and Linux instances, verify +// that the SSM agent is running. On EC2 Windows instances, verify that the +// EC2Config service is running. +// +// The SSM agent or EC2Config service is not registered to the SSM endpoint. +// Try reinstalling the SSM agent or EC2Config service. // -// * InvalidInstanceId // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * DuplicateInstanceId +// * ErrCodeDuplicateInstanceId "DuplicateInstanceId" // You cannot specify an instance ID in more than one association. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CancelCommand func (c *SSM) CancelCommand(input *CancelCommandInput) (*CancelCommandOutput, error) { req, out := c.CancelCommandRequest(input) err := req.Send() @@ -201,6 +217,7 @@ const opCreateActivation = "CreateActivation" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateActivation func (c *SSM) CreateActivationRequest(input *CreateActivationInput) (req *request.Request, output *CreateActivationOutput) { op := &request.Operation{ Name: opCreateActivation, @@ -212,13 +229,12 @@ func (c *SSM) CreateActivationRequest(input *CreateActivationInput) (req *reques input = &CreateActivationInput{} } - req = c.newRequest(op, input, output) output = &CreateActivationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } -// CreateActivation API operation for Amazon Simple Systems Management Service. +// CreateActivation API operation for Amazon Simple Systems Manager (SSM). // // Registers your on-premises server or virtual machine with Amazon EC2 so that // you can manage these resources using Run Command. An on-premises server or @@ -232,13 +248,14 @@ func (c *SSM) CreateActivationRequest(input *CreateActivationInput) (req *reques // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation CreateActivation for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateActivation func (c *SSM) CreateActivation(input *CreateActivationInput) (*CreateActivationOutput, error) { req, out := c.CreateActivationRequest(input) err := req.Send() @@ -271,6 +288,7 @@ const opCreateAssociation = "CreateAssociation" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateAssociation func (c *SSM) CreateAssociationRequest(input *CreateAssociationInput) (req *request.Request, output *CreateAssociationOutput) { op := &request.Operation{ Name: opCreateAssociation, @@ -282,19 +300,18 @@ func (c *SSM) CreateAssociationRequest(input *CreateAssociationInput) (req *requ input = &CreateAssociationInput{} } - req = c.newRequest(op, input, output) output = &CreateAssociationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } -// CreateAssociation API operation for Amazon Simple Systems Management Service. +// CreateAssociation API operation for Amazon Simple Systems Manager (SSM). // -// Associates the specified SSM document with the specified instance. +// Associates the specified SSM document with the specified instances or targets. // -// When you associate an SSM document with an instance, the configuration agent -// on the instance (SSM agent for Linux and EC2Config service for Windows) processes -// the document and configures the instance as specified. +// When you associate an SSM document with one or more instances using instance +// IDs or tags, the SSM agent running on the instance processes the document +// and configures the instance as specified. // // If you associate a document with an instance that already has an associated // document, the system throws the AssociationAlreadyExists exception. @@ -303,34 +320,59 @@ func (c *SSM) CreateAssociationRequest(input *CreateAssociationInput) (req *requ // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation CreateAssociation for usage and error information. // // Returned Error Codes: -// * AssociationAlreadyExists +// * ErrCodeAssociationAlreadyExists "AssociationAlreadyExists" // The specified association already exists. // -// * AssociationLimitExceeded +// * ErrCodeAssociationLimitExceeded "AssociationLimitExceeded" // You can have at most 2,000 active associations. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // -// * InvalidDocument +// * ErrCodeInvalidDocument "InvalidDocument" // The specified document does not exist. // -// * InvalidInstanceId +// * ErrCodeInvalidDocumentVersion "InvalidDocumentVersion" +// The document version is not valid or does not exist. +// +// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// The following problems can cause this exception: +// +// You do not have permission to access the instance. +// +// The SSM agent is not running. On managed instances and Linux instances, verify +// that the SSM agent is running. On EC2 Windows instances, verify that the +// EC2Config service is running. +// +// The SSM agent or EC2Config service is not registered to the SSM endpoint. +// Try reinstalling the SSM agent or EC2Config service. +// // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * UnsupportedPlatformType +// * ErrCodeUnsupportedPlatformType "UnsupportedPlatformType" // The document does not support the platform type of the given instance ID(s). // For example, you sent an SSM document for a Windows instance to a Linux instance. // -// * InvalidParameters +// * ErrCodeInvalidOutputLocation "InvalidOutputLocation" +// The output location is not valid or does not exist. +// +// * ErrCodeInvalidParameters "InvalidParameters" // You must specify values for all required parameters in the SSM document. // You can only supply values to parameters defined in the SSM document. // +// * ErrCodeInvalidTarget "InvalidTarget" +// The target is not valid or does not exist. It might not be configured for +// EC2 Systems Manager or you might not have permission to perform the operation. +// +// * ErrCodeInvalidSchedule "InvalidSchedule" +// The schedule is invalid. Verify your cron or rate expression and try again. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateAssociation func (c *SSM) CreateAssociation(input *CreateAssociationInput) (*CreateAssociationOutput, error) { req, out := c.CreateAssociationRequest(input) err := req.Send() @@ -363,6 +405,7 @@ const opCreateAssociationBatch = "CreateAssociationBatch" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateAssociationBatch func (c *SSM) CreateAssociationBatchRequest(input *CreateAssociationBatchInput) (req *request.Request, output *CreateAssociationBatchOutput) { op := &request.Operation{ Name: opCreateAssociationBatch, @@ -374,19 +417,18 @@ func (c *SSM) CreateAssociationBatchRequest(input *CreateAssociationBatchInput) input = &CreateAssociationBatchInput{} } - req = c.newRequest(op, input, output) output = &CreateAssociationBatchOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } -// CreateAssociationBatch API operation for Amazon Simple Systems Management Service. +// CreateAssociationBatch API operation for Amazon Simple Systems Manager (SSM). // -// Associates the specified SSM document with the specified instances. +// Associates the specified SSM document with the specified instances or targets. // -// When you associate an SSM document with an instance, the configuration agent -// on the instance (SSM agent for Linux and EC2Config service for Windows) processes -// the document and configures the instance as specified. +// When you associate an SSM document with one or more instances using instance +// IDs or tags, the SSM agent running on the instance processes the document +// and configures the instance as specified. // // If you associate a document with an instance that already has an associated // document, the system throws the AssociationAlreadyExists exception. @@ -395,34 +437,59 @@ func (c *SSM) CreateAssociationBatchRequest(input *CreateAssociationBatchInput) // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation CreateAssociationBatch for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // -// * InvalidDocument +// * ErrCodeInvalidDocument "InvalidDocument" // The specified document does not exist. // -// * InvalidInstanceId +// * ErrCodeInvalidDocumentVersion "InvalidDocumentVersion" +// The document version is not valid or does not exist. +// +// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// The following problems can cause this exception: +// +// You do not have permission to access the instance. +// +// The SSM agent is not running. On managed instances and Linux instances, verify +// that the SSM agent is running. On EC2 Windows instances, verify that the +// EC2Config service is running. +// +// The SSM agent or EC2Config service is not registered to the SSM endpoint. +// Try reinstalling the SSM agent or EC2Config service. +// // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * InvalidParameters +// * ErrCodeInvalidParameters "InvalidParameters" // You must specify values for all required parameters in the SSM document. // You can only supply values to parameters defined in the SSM document. // -// * DuplicateInstanceId +// * ErrCodeDuplicateInstanceId "DuplicateInstanceId" // You cannot specify an instance ID in more than one association. // -// * AssociationLimitExceeded +// * ErrCodeAssociationLimitExceeded "AssociationLimitExceeded" // You can have at most 2,000 active associations. // -// * UnsupportedPlatformType +// * ErrCodeUnsupportedPlatformType "UnsupportedPlatformType" // The document does not support the platform type of the given instance ID(s). // For example, you sent an SSM document for a Windows instance to a Linux instance. // +// * ErrCodeInvalidOutputLocation "InvalidOutputLocation" +// The output location is not valid or does not exist. +// +// * ErrCodeInvalidTarget "InvalidTarget" +// The target is not valid or does not exist. It might not be configured for +// EC2 Systems Manager or you might not have permission to perform the operation. +// +// * ErrCodeInvalidSchedule "InvalidSchedule" +// The schedule is invalid. Verify your cron or rate expression and try again. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateAssociationBatch func (c *SSM) CreateAssociationBatch(input *CreateAssociationBatchInput) (*CreateAssociationBatchOutput, error) { req, out := c.CreateAssociationBatchRequest(input) err := req.Send() @@ -455,6 +522,7 @@ const opCreateDocument = "CreateDocument" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateDocument func (c *SSM) CreateDocumentRequest(input *CreateDocumentInput) (req *request.Request, output *CreateDocumentOutput) { op := &request.Operation{ Name: opCreateDocument, @@ -466,13 +534,12 @@ func (c *SSM) CreateDocumentRequest(input *CreateDocumentInput) (req *request.Re input = &CreateDocumentInput{} } - req = c.newRequest(op, input, output) output = &CreateDocumentOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } -// CreateDocument API operation for Amazon Simple Systems Management Service. +// CreateDocument API operation for Amazon Simple Systems Manager (SSM). // // Creates an SSM document. // @@ -483,31 +550,181 @@ func (c *SSM) CreateDocumentRequest(input *CreateDocumentInput) (req *request.Re // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation CreateDocument for usage and error information. // // Returned Error Codes: -// * DocumentAlreadyExists +// * ErrCodeDocumentAlreadyExists "DocumentAlreadyExists" // The specified SSM document already exists. // -// * MaxDocumentSizeExceeded +// * ErrCodeMaxDocumentSizeExceeded "MaxDocumentSizeExceeded" // The size limit of an SSM document is 64 KB. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // -// * InvalidDocumentContent +// * ErrCodeInvalidDocumentContent "InvalidDocumentContent" // The content for the SSM document is not valid. // -// * DocumentLimitExceeded +// * ErrCodeDocumentLimitExceeded "DocumentLimitExceeded" // You can have at most 200 active SSM documents. // +// * ErrCodeInvalidDocumentSchemaVersion "InvalidDocumentSchemaVersion" +// The version of the document schema is not supported. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateDocument func (c *SSM) CreateDocument(input *CreateDocumentInput) (*CreateDocumentOutput, error) { req, out := c.CreateDocumentRequest(input) err := req.Send() return out, err } +const opCreateMaintenanceWindow = "CreateMaintenanceWindow" + +// CreateMaintenanceWindowRequest generates a "aws/request.Request" representing the +// client's request for the CreateMaintenanceWindow operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateMaintenanceWindow for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateMaintenanceWindow method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateMaintenanceWindowRequest method. +// req, resp := client.CreateMaintenanceWindowRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateMaintenanceWindow +func (c *SSM) CreateMaintenanceWindowRequest(input *CreateMaintenanceWindowInput) (req *request.Request, output *CreateMaintenanceWindowOutput) { + op := &request.Operation{ + Name: opCreateMaintenanceWindow, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateMaintenanceWindowInput{} + } + + output = &CreateMaintenanceWindowOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateMaintenanceWindow API operation for Amazon Simple Systems Manager (SSM). +// +// Creates a new Maintenance Window. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation CreateMaintenanceWindow for usage and error information. +// +// Returned Error Codes: +// * ErrCodeIdempotentParameterMismatch "IdempotentParameterMismatch" +// Error returned when an idempotent operation is retried and the parameters +// don’t match the original call to the API with the same idempotency token. +// +// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// Error returned when the caller has exceeded the default resource limits (e.g. +// too many Maintenance Windows have been created). +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateMaintenanceWindow +func (c *SSM) CreateMaintenanceWindow(input *CreateMaintenanceWindowInput) (*CreateMaintenanceWindowOutput, error) { + req, out := c.CreateMaintenanceWindowRequest(input) + err := req.Send() + return out, err +} + +const opCreatePatchBaseline = "CreatePatchBaseline" + +// CreatePatchBaselineRequest generates a "aws/request.Request" representing the +// client's request for the CreatePatchBaseline operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreatePatchBaseline for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreatePatchBaseline method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreatePatchBaselineRequest method. +// req, resp := client.CreatePatchBaselineRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreatePatchBaseline +func (c *SSM) CreatePatchBaselineRequest(input *CreatePatchBaselineInput) (req *request.Request, output *CreatePatchBaselineOutput) { + op := &request.Operation{ + Name: opCreatePatchBaseline, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreatePatchBaselineInput{} + } + + output = &CreatePatchBaselineOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreatePatchBaseline API operation for Amazon Simple Systems Manager (SSM). +// +// Creates a patch baseline. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation CreatePatchBaseline for usage and error information. +// +// Returned Error Codes: +// * ErrCodeIdempotentParameterMismatch "IdempotentParameterMismatch" +// Error returned when an idempotent operation is retried and the parameters +// don’t match the original call to the API with the same idempotency token. +// +// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// Error returned when the caller has exceeded the default resource limits (e.g. +// too many Maintenance Windows have been created). +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreatePatchBaseline +func (c *SSM) CreatePatchBaseline(input *CreatePatchBaselineInput) (*CreatePatchBaselineOutput, error) { + req, out := c.CreatePatchBaselineRequest(input) + err := req.Send() + return out, err +} + const opDeleteActivation = "DeleteActivation" // DeleteActivationRequest generates a "aws/request.Request" representing the @@ -534,6 +751,7 @@ const opDeleteActivation = "DeleteActivation" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteActivation func (c *SSM) DeleteActivationRequest(input *DeleteActivationInput) (req *request.Request, output *DeleteActivationOutput) { op := &request.Operation{ Name: opDeleteActivation, @@ -545,13 +763,12 @@ func (c *SSM) DeleteActivationRequest(input *DeleteActivationInput) (req *reques input = &DeleteActivationInput{} } - req = c.newRequest(op, input, output) output = &DeleteActivationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } -// DeleteActivation API operation for Amazon Simple Systems Management Service. +// DeleteActivation API operation for Amazon Simple Systems Manager (SSM). // // Deletes an activation. You are not required to delete an activation. If you // delete an activation, you can no longer use it to register additional managed @@ -562,21 +779,22 @@ func (c *SSM) DeleteActivationRequest(input *DeleteActivationInput) (req *reques // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DeleteActivation for usage and error information. // // Returned Error Codes: -// * InvalidActivationId +// * ErrCodeInvalidActivationId "InvalidActivationId" // The activation ID is not valid. Verify the you entered the correct ActivationId // or ActivationCode and try again. // -// * InvalidActivation +// * ErrCodeInvalidActivation "InvalidActivation" // The activation is not valid. The activation might have been deleted, or the // ActivationId and the ActivationCode do not match. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteActivation func (c *SSM) DeleteActivation(input *DeleteActivationInput) (*DeleteActivationOutput, error) { req, out := c.DeleteActivationRequest(input) err := req.Send() @@ -609,6 +827,7 @@ const opDeleteAssociation = "DeleteAssociation" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteAssociation func (c *SSM) DeleteAssociationRequest(input *DeleteAssociationInput) (req *request.Request, output *DeleteAssociationOutput) { op := &request.Operation{ Name: opDeleteAssociation, @@ -620,13 +839,12 @@ func (c *SSM) DeleteAssociationRequest(input *DeleteAssociationInput) (req *requ input = &DeleteAssociationInput{} } - req = c.newRequest(op, input, output) output = &DeleteAssociationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } -// DeleteAssociation API operation for Amazon Simple Systems Management Service. +// DeleteAssociation API operation for Amazon Simple Systems Manager (SSM). // // Disassociates the specified SSM document from the specified instance. // @@ -639,27 +857,39 @@ func (c *SSM) DeleteAssociationRequest(input *DeleteAssociationInput) (req *requ // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DeleteAssociation for usage and error information. // // Returned Error Codes: -// * AssociationDoesNotExist +// * ErrCodeAssociationDoesNotExist "AssociationDoesNotExist" // The specified association does not exist. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // -// * InvalidDocument +// * ErrCodeInvalidDocument "InvalidDocument" // The specified document does not exist. // -// * InvalidInstanceId +// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// The following problems can cause this exception: +// +// You do not have permission to access the instance. +// +// The SSM agent is not running. On managed instances and Linux instances, verify +// that the SSM agent is running. On EC2 Windows instances, verify that the +// EC2Config service is running. +// +// The SSM agent or EC2Config service is not registered to the SSM endpoint. +// Try reinstalling the SSM agent or EC2Config service. +// // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * TooManyUpdates +// * ErrCodeTooManyUpdates "TooManyUpdates" // There are concurrent updates for a resource that supports one update at a // time. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteAssociation func (c *SSM) DeleteAssociation(input *DeleteAssociationInput) (*DeleteAssociationOutput, error) { req, out := c.DeleteAssociationRequest(input) err := req.Send() @@ -692,6 +922,7 @@ const opDeleteDocument = "DeleteDocument" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteDocument func (c *SSM) DeleteDocumentRequest(input *DeleteDocumentInput) (req *request.Request, output *DeleteDocumentOutput) { op := &request.Operation{ Name: opDeleteDocument, @@ -703,13 +934,12 @@ func (c *SSM) DeleteDocumentRequest(input *DeleteDocumentInput) (req *request.Re input = &DeleteDocumentInput{} } - req = c.newRequest(op, input, output) output = &DeleteDocumentOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } -// DeleteDocument API operation for Amazon Simple Systems Management Service. +// DeleteDocument API operation for Amazon Simple Systems Manager (SSM). // // Deletes the SSM document and all instance associations to the document. // @@ -720,627 +950,552 @@ func (c *SSM) DeleteDocumentRequest(input *DeleteDocumentInput) (req *request.Re // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DeleteDocument for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // -// * InvalidDocument +// * ErrCodeInvalidDocument "InvalidDocument" // The specified document does not exist. // -// * InvalidDocumentOperation +// * ErrCodeInvalidDocumentOperation "InvalidDocumentOperation" // You attempted to delete a document while it is still shared. You must stop // sharing the document before you can delete it. // -// * AssociatedInstances +// * ErrCodeAssociatedInstances "AssociatedInstances" // You must disassociate an SSM document from all instances before you can delete // it. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteDocument func (c *SSM) DeleteDocument(input *DeleteDocumentInput) (*DeleteDocumentOutput, error) { req, out := c.DeleteDocumentRequest(input) err := req.Send() return out, err } -const opDeregisterManagedInstance = "DeregisterManagedInstance" +const opDeleteMaintenanceWindow = "DeleteMaintenanceWindow" -// DeregisterManagedInstanceRequest generates a "aws/request.Request" representing the -// client's request for the DeregisterManagedInstance operation. The "output" return +// DeleteMaintenanceWindowRequest generates a "aws/request.Request" representing the +// client's request for the DeleteMaintenanceWindow operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DeregisterManagedInstance for usage and error information. +// See DeleteMaintenanceWindow for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DeregisterManagedInstance method directly +// you just want the service response, call the DeleteMaintenanceWindow method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DeregisterManagedInstanceRequest method. -// req, resp := client.DeregisterManagedInstanceRequest(params) +// // Example sending a request using the DeleteMaintenanceWindowRequest method. +// req, resp := client.DeleteMaintenanceWindowRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *SSM) DeregisterManagedInstanceRequest(input *DeregisterManagedInstanceInput) (req *request.Request, output *DeregisterManagedInstanceOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteMaintenanceWindow +func (c *SSM) DeleteMaintenanceWindowRequest(input *DeleteMaintenanceWindowInput) (req *request.Request, output *DeleteMaintenanceWindowOutput) { op := &request.Operation{ - Name: opDeregisterManagedInstance, + Name: opDeleteMaintenanceWindow, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeregisterManagedInstanceInput{} + input = &DeleteMaintenanceWindowInput{} } + output = &DeleteMaintenanceWindowOutput{} req = c.newRequest(op, input, output) - output = &DeregisterManagedInstanceOutput{} - req.Data = output return } -// DeregisterManagedInstance API operation for Amazon Simple Systems Management Service. +// DeleteMaintenanceWindow API operation for Amazon Simple Systems Manager (SSM). // -// Removes the server or virtual machine from the list of registered servers. -// You can reregister the instance again at any time. If you don’t plan to use -// Run Command on the server, we suggest uninstalling the SSM agent first. +// Deletes a Maintenance Window. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's -// API operation DeregisterManagedInstance for usage and error information. +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DeleteMaintenanceWindow for usage and error information. // // Returned Error Codes: -// * InvalidInstanceId -// The instance is not in valid state. Valid states are: Running, Pending, Stopped, -// Stopping. Invalid states are: Shutting-down and Terminated. -// -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // -func (c *SSM) DeregisterManagedInstance(input *DeregisterManagedInstanceInput) (*DeregisterManagedInstanceOutput, error) { - req, out := c.DeregisterManagedInstanceRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteMaintenanceWindow +func (c *SSM) DeleteMaintenanceWindow(input *DeleteMaintenanceWindowInput) (*DeleteMaintenanceWindowOutput, error) { + req, out := c.DeleteMaintenanceWindowRequest(input) err := req.Send() return out, err } -const opDescribeActivations = "DescribeActivations" +const opDeleteParameter = "DeleteParameter" -// DescribeActivationsRequest generates a "aws/request.Request" representing the -// client's request for the DescribeActivations operation. The "output" return +// DeleteParameterRequest generates a "aws/request.Request" representing the +// client's request for the DeleteParameter operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeActivations for usage and error information. +// See DeleteParameter for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeActivations method directly +// you just want the service response, call the DeleteParameter method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeActivationsRequest method. -// req, resp := client.DescribeActivationsRequest(params) +// // Example sending a request using the DeleteParameterRequest method. +// req, resp := client.DeleteParameterRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *SSM) DescribeActivationsRequest(input *DescribeActivationsInput) (req *request.Request, output *DescribeActivationsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteParameter +func (c *SSM) DeleteParameterRequest(input *DeleteParameterInput) (req *request.Request, output *DeleteParameterOutput) { op := &request.Operation{ - Name: opDescribeActivations, + Name: opDeleteParameter, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &DescribeActivationsInput{} + input = &DeleteParameterInput{} } + output = &DeleteParameterOutput{} req = c.newRequest(op, input, output) - output = &DescribeActivationsOutput{} - req.Data = output return } -// DescribeActivations API operation for Amazon Simple Systems Management Service. +// DeleteParameter API operation for Amazon Simple Systems Manager (SSM). // -// Details about the activation, including: the date and time the activation -// was created, the expiration date, the IAM role assigned to the instances -// in the activation, and the number of instances activated by this registration. +// Delete a parameter from the system. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's -// API operation DescribeActivations for usage and error information. +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DeleteParameter for usage and error information. // // Returned Error Codes: -// * InvalidFilter -// The filter name is not valid. Verify the you entered the correct name and -// try again. -// -// * InvalidNextToken -// The specified token is not valid. -// -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // -func (c *SSM) DescribeActivations(input *DescribeActivationsInput) (*DescribeActivationsOutput, error) { - req, out := c.DescribeActivationsRequest(input) +// * ErrCodeParameterNotFound "ParameterNotFound" +// The parameter could not be found. Verify the name and try again. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteParameter +func (c *SSM) DeleteParameter(input *DeleteParameterInput) (*DeleteParameterOutput, error) { + req, out := c.DeleteParameterRequest(input) err := req.Send() return out, err } -// DescribeActivationsPages iterates over the pages of a DescribeActivations operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See DescribeActivations method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a DescribeActivations operation. -// pageNum := 0 -// err := client.DescribeActivationsPages(params, -// func(page *DescribeActivationsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *SSM) DescribeActivationsPages(input *DescribeActivationsInput, fn func(p *DescribeActivationsOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.DescribeActivationsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*DescribeActivationsOutput), lastPage) - }) -} - -const opDescribeAssociation = "DescribeAssociation" +const opDeletePatchBaseline = "DeletePatchBaseline" -// DescribeAssociationRequest generates a "aws/request.Request" representing the -// client's request for the DescribeAssociation operation. The "output" return +// DeletePatchBaselineRequest generates a "aws/request.Request" representing the +// client's request for the DeletePatchBaseline operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeAssociation for usage and error information. +// See DeletePatchBaseline for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeAssociation method directly +// you just want the service response, call the DeletePatchBaseline method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeAssociationRequest method. -// req, resp := client.DescribeAssociationRequest(params) +// // Example sending a request using the DeletePatchBaselineRequest method. +// req, resp := client.DeletePatchBaselineRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *SSM) DescribeAssociationRequest(input *DescribeAssociationInput) (req *request.Request, output *DescribeAssociationOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeletePatchBaseline +func (c *SSM) DeletePatchBaselineRequest(input *DeletePatchBaselineInput) (req *request.Request, output *DeletePatchBaselineOutput) { op := &request.Operation{ - Name: opDescribeAssociation, + Name: opDeletePatchBaseline, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeAssociationInput{} + input = &DeletePatchBaselineInput{} } + output = &DeletePatchBaselineOutput{} req = c.newRequest(op, input, output) - output = &DescribeAssociationOutput{} - req.Data = output return } -// DescribeAssociation API operation for Amazon Simple Systems Management Service. +// DeletePatchBaseline API operation for Amazon Simple Systems Manager (SSM). // -// Describes the associations for the specified SSM document or instance. +// Deletes a patch baseline. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's -// API operation DescribeAssociation for usage and error information. +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DeletePatchBaseline for usage and error information. // // Returned Error Codes: -// * AssociationDoesNotExist -// The specified association does not exist. +// * ErrCodeResourceInUseException "ResourceInUseException" +// Error returned if an attempt is made to delete a patch baseline that is registered +// for a patch group. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // -// * InvalidDocument -// The specified document does not exist. -// -// * InvalidInstanceId -// The instance is not in valid state. Valid states are: Running, Pending, Stopped, -// Stopping. Invalid states are: Shutting-down and Terminated. -// -func (c *SSM) DescribeAssociation(input *DescribeAssociationInput) (*DescribeAssociationOutput, error) { - req, out := c.DescribeAssociationRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeletePatchBaseline +func (c *SSM) DeletePatchBaseline(input *DeletePatchBaselineInput) (*DeletePatchBaselineOutput, error) { + req, out := c.DeletePatchBaselineRequest(input) err := req.Send() return out, err } -const opDescribeDocument = "DescribeDocument" +const opDeregisterManagedInstance = "DeregisterManagedInstance" -// DescribeDocumentRequest generates a "aws/request.Request" representing the -// client's request for the DescribeDocument operation. The "output" return +// DeregisterManagedInstanceRequest generates a "aws/request.Request" representing the +// client's request for the DeregisterManagedInstance operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeDocument for usage and error information. +// See DeregisterManagedInstance for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeDocument method directly +// you just want the service response, call the DeregisterManagedInstance method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeDocumentRequest method. -// req, resp := client.DescribeDocumentRequest(params) +// // Example sending a request using the DeregisterManagedInstanceRequest method. +// req, resp := client.DeregisterManagedInstanceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *SSM) DescribeDocumentRequest(input *DescribeDocumentInput) (req *request.Request, output *DescribeDocumentOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeregisterManagedInstance +func (c *SSM) DeregisterManagedInstanceRequest(input *DeregisterManagedInstanceInput) (req *request.Request, output *DeregisterManagedInstanceOutput) { op := &request.Operation{ - Name: opDescribeDocument, + Name: opDeregisterManagedInstance, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeDocumentInput{} + input = &DeregisterManagedInstanceInput{} } + output = &DeregisterManagedInstanceOutput{} req = c.newRequest(op, input, output) - output = &DescribeDocumentOutput{} - req.Data = output return } -// DescribeDocument API operation for Amazon Simple Systems Management Service. +// DeregisterManagedInstance API operation for Amazon Simple Systems Manager (SSM). // -// Describes the specified SSM document. +// Removes the server or virtual machine from the list of registered servers. +// You can reregister the instance again at any time. If you don’t plan to use +// Run Command on the server, we suggest uninstalling the SSM agent first. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's -// API operation DescribeDocument for usage and error information. +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DeregisterManagedInstance for usage and error information. // // Returned Error Codes: -// * InternalServerError -// An error occurred on the server side. +// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// The following problems can cause this exception: // -// * InvalidDocument -// The specified document does not exist. +// You do not have permission to access the instance. // -func (c *SSM) DescribeDocument(input *DescribeDocumentInput) (*DescribeDocumentOutput, error) { - req, out := c.DescribeDocumentRequest(input) +// The SSM agent is not running. On managed instances and Linux instances, verify +// that the SSM agent is running. On EC2 Windows instances, verify that the +// EC2Config service is running. +// +// The SSM agent or EC2Config service is not registered to the SSM endpoint. +// Try reinstalling the SSM agent or EC2Config service. +// +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeregisterManagedInstance +func (c *SSM) DeregisterManagedInstance(input *DeregisterManagedInstanceInput) (*DeregisterManagedInstanceOutput, error) { + req, out := c.DeregisterManagedInstanceRequest(input) err := req.Send() return out, err } -const opDescribeDocumentPermission = "DescribeDocumentPermission" +const opDeregisterPatchBaselineForPatchGroup = "DeregisterPatchBaselineForPatchGroup" -// DescribeDocumentPermissionRequest generates a "aws/request.Request" representing the -// client's request for the DescribeDocumentPermission operation. The "output" return +// DeregisterPatchBaselineForPatchGroupRequest generates a "aws/request.Request" representing the +// client's request for the DeregisterPatchBaselineForPatchGroup operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeDocumentPermission for usage and error information. +// See DeregisterPatchBaselineForPatchGroup for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeDocumentPermission method directly +// you just want the service response, call the DeregisterPatchBaselineForPatchGroup method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeDocumentPermissionRequest method. -// req, resp := client.DescribeDocumentPermissionRequest(params) +// // Example sending a request using the DeregisterPatchBaselineForPatchGroupRequest method. +// req, resp := client.DeregisterPatchBaselineForPatchGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *SSM) DescribeDocumentPermissionRequest(input *DescribeDocumentPermissionInput) (req *request.Request, output *DescribeDocumentPermissionOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeregisterPatchBaselineForPatchGroup +func (c *SSM) DeregisterPatchBaselineForPatchGroupRequest(input *DeregisterPatchBaselineForPatchGroupInput) (req *request.Request, output *DeregisterPatchBaselineForPatchGroupOutput) { op := &request.Operation{ - Name: opDescribeDocumentPermission, + Name: opDeregisterPatchBaselineForPatchGroup, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeDocumentPermissionInput{} + input = &DeregisterPatchBaselineForPatchGroupInput{} } + output = &DeregisterPatchBaselineForPatchGroupOutput{} req = c.newRequest(op, input, output) - output = &DescribeDocumentPermissionOutput{} - req.Data = output return } -// DescribeDocumentPermission API operation for Amazon Simple Systems Management Service. +// DeregisterPatchBaselineForPatchGroup API operation for Amazon Simple Systems Manager (SSM). // -// Describes the permissions for an SSM document. If you created the document, -// you are the owner. If a document is shared, it can either be shared privately -// (by specifying a user’s AWS account ID) or publicly (All). +// Removes a patch group from a patch baseline. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's -// API operation DescribeDocumentPermission for usage and error information. +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DeregisterPatchBaselineForPatchGroup for usage and error information. // // Returned Error Codes: -// * InternalServerError -// An error occurred on the server side. -// -// * InvalidDocument -// The specified document does not exist. +// * ErrCodeInvalidResourceId "InvalidResourceId" +// The resource ID is not valid. Verify that you entered the correct ID and +// try again. // -// * InvalidPermissionType -// The permission type is not supported. Share is the only supported permission -// type. +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. // -func (c *SSM) DescribeDocumentPermission(input *DescribeDocumentPermissionInput) (*DescribeDocumentPermissionOutput, error) { - req, out := c.DescribeDocumentPermissionRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeregisterPatchBaselineForPatchGroup +func (c *SSM) DeregisterPatchBaselineForPatchGroup(input *DeregisterPatchBaselineForPatchGroupInput) (*DeregisterPatchBaselineForPatchGroupOutput, error) { + req, out := c.DeregisterPatchBaselineForPatchGroupRequest(input) err := req.Send() return out, err } -const opDescribeInstanceInformation = "DescribeInstanceInformation" +const opDeregisterTargetFromMaintenanceWindow = "DeregisterTargetFromMaintenanceWindow" -// DescribeInstanceInformationRequest generates a "aws/request.Request" representing the -// client's request for the DescribeInstanceInformation operation. The "output" return +// DeregisterTargetFromMaintenanceWindowRequest generates a "aws/request.Request" representing the +// client's request for the DeregisterTargetFromMaintenanceWindow operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See DescribeInstanceInformation for usage and error information. +// See DeregisterTargetFromMaintenanceWindow for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the DescribeInstanceInformation method directly +// you just want the service response, call the DeregisterTargetFromMaintenanceWindow method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the DescribeInstanceInformationRequest method. -// req, resp := client.DescribeInstanceInformationRequest(params) +// // Example sending a request using the DeregisterTargetFromMaintenanceWindowRequest method. +// req, resp := client.DeregisterTargetFromMaintenanceWindowRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *SSM) DescribeInstanceInformationRequest(input *DescribeInstanceInformationInput) (req *request.Request, output *DescribeInstanceInformationOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeregisterTargetFromMaintenanceWindow +func (c *SSM) DeregisterTargetFromMaintenanceWindowRequest(input *DeregisterTargetFromMaintenanceWindowInput) (req *request.Request, output *DeregisterTargetFromMaintenanceWindowOutput) { op := &request.Operation{ - Name: opDescribeInstanceInformation, + Name: opDeregisterTargetFromMaintenanceWindow, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &DescribeInstanceInformationInput{} + input = &DeregisterTargetFromMaintenanceWindowInput{} } + output = &DeregisterTargetFromMaintenanceWindowOutput{} req = c.newRequest(op, input, output) - output = &DescribeInstanceInformationOutput{} - req.Data = output return } -// DescribeInstanceInformation API operation for Amazon Simple Systems Management Service. +// DeregisterTargetFromMaintenanceWindow API operation for Amazon Simple Systems Manager (SSM). // -// Describes one or more of your instances. You can use this to get information -// about instances like the operating system platform, the SSM agent version -// (Linux), status etc. If you specify one or more instance IDs, it returns -// information for those instances. If you do not specify instance IDs, it returns -// information for all your instances. If you specify an instance ID that is -// not valid or an instance that you do not own, you receive an error. +// Removes a target from a Maintenance Window. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's -// API operation DescribeInstanceInformation for usage and error information. +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DeregisterTargetFromMaintenanceWindow for usage and error information. // // Returned Error Codes: -// * InternalServerError -// An error occurred on the server side. -// -// * InvalidInstanceId -// The instance is not in valid state. Valid states are: Running, Pending, Stopped, -// Stopping. Invalid states are: Shutting-down and Terminated. +// * ErrCodeDoesNotExistException "DoesNotExistException" +// Error returned when the ID specified for a resource (e.g. a Maintenance Window) +// doesn’t exist. // -// * InvalidNextToken -// The specified token is not valid. -// -// * InvalidInstanceInformationFilterValue -// The specified filter value is not valid. -// -// * InvalidFilterKey -// The specified key is not valid. +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. // -func (c *SSM) DescribeInstanceInformation(input *DescribeInstanceInformationInput) (*DescribeInstanceInformationOutput, error) { - req, out := c.DescribeInstanceInformationRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeregisterTargetFromMaintenanceWindow +func (c *SSM) DeregisterTargetFromMaintenanceWindow(input *DeregisterTargetFromMaintenanceWindowInput) (*DeregisterTargetFromMaintenanceWindowOutput, error) { + req, out := c.DeregisterTargetFromMaintenanceWindowRequest(input) err := req.Send() return out, err } -// DescribeInstanceInformationPages iterates over the pages of a DescribeInstanceInformation operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See DescribeInstanceInformation method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a DescribeInstanceInformation operation. -// pageNum := 0 -// err := client.DescribeInstanceInformationPages(params, -// func(page *DescribeInstanceInformationOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *SSM) DescribeInstanceInformationPages(input *DescribeInstanceInformationInput, fn func(p *DescribeInstanceInformationOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.DescribeInstanceInformationRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*DescribeInstanceInformationOutput), lastPage) - }) -} - -const opGetDocument = "GetDocument" +const opDeregisterTaskFromMaintenanceWindow = "DeregisterTaskFromMaintenanceWindow" -// GetDocumentRequest generates a "aws/request.Request" representing the -// client's request for the GetDocument operation. The "output" return +// DeregisterTaskFromMaintenanceWindowRequest generates a "aws/request.Request" representing the +// client's request for the DeregisterTaskFromMaintenanceWindow operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See GetDocument for usage and error information. +// See DeregisterTaskFromMaintenanceWindow for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the GetDocument method directly +// you just want the service response, call the DeregisterTaskFromMaintenanceWindow method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the GetDocumentRequest method. -// req, resp := client.GetDocumentRequest(params) +// // Example sending a request using the DeregisterTaskFromMaintenanceWindowRequest method. +// req, resp := client.DeregisterTaskFromMaintenanceWindowRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *SSM) GetDocumentRequest(input *GetDocumentInput) (req *request.Request, output *GetDocumentOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeregisterTaskFromMaintenanceWindow +func (c *SSM) DeregisterTaskFromMaintenanceWindowRequest(input *DeregisterTaskFromMaintenanceWindowInput) (req *request.Request, output *DeregisterTaskFromMaintenanceWindowOutput) { op := &request.Operation{ - Name: opGetDocument, + Name: opDeregisterTaskFromMaintenanceWindow, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetDocumentInput{} + input = &DeregisterTaskFromMaintenanceWindowInput{} } + output = &DeregisterTaskFromMaintenanceWindowOutput{} req = c.newRequest(op, input, output) - output = &GetDocumentOutput{} - req.Data = output return } -// GetDocument API operation for Amazon Simple Systems Management Service. +// DeregisterTaskFromMaintenanceWindow API operation for Amazon Simple Systems Manager (SSM). // -// Gets the contents of the specified SSM document. +// Removes a task from a Maintenance Window. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's -// API operation GetDocument for usage and error information. +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DeregisterTaskFromMaintenanceWindow for usage and error information. // // Returned Error Codes: -// * InternalServerError -// An error occurred on the server side. +// * ErrCodeDoesNotExistException "DoesNotExistException" +// Error returned when the ID specified for a resource (e.g. a Maintenance Window) +// doesn’t exist. // -// * InvalidDocument -// The specified document does not exist. +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. // -func (c *SSM) GetDocument(input *GetDocumentInput) (*GetDocumentOutput, error) { - req, out := c.GetDocumentRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeregisterTaskFromMaintenanceWindow +func (c *SSM) DeregisterTaskFromMaintenanceWindow(input *DeregisterTaskFromMaintenanceWindowInput) (*DeregisterTaskFromMaintenanceWindowOutput, error) { + req, out := c.DeregisterTaskFromMaintenanceWindowRequest(input) err := req.Send() return out, err } -const opListAssociations = "ListAssociations" +const opDescribeActivations = "DescribeActivations" -// ListAssociationsRequest generates a "aws/request.Request" representing the -// client's request for the ListAssociations operation. The "output" return +// DescribeActivationsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeActivations operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ListAssociations for usage and error information. +// See DescribeActivations for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ListAssociations method directly +// you just want the service response, call the DescribeActivations method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ListAssociationsRequest method. -// req, resp := client.ListAssociationsRequest(params) +// // Example sending a request using the DescribeActivationsRequest method. +// req, resp := client.DescribeActivationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *SSM) ListAssociationsRequest(input *ListAssociationsInput) (req *request.Request, output *ListAssociationsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeActivations +func (c *SSM) DescribeActivationsRequest(input *DescribeActivationsInput) (req *request.Request, output *DescribeActivationsOutput) { op := &request.Operation{ - Name: opListAssociations, + Name: opDescribeActivations, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -1352,958 +1507,15335 @@ func (c *SSM) ListAssociationsRequest(input *ListAssociationsInput) (req *reques } if input == nil { - input = &ListAssociationsInput{} + input = &DescribeActivationsInput{} } + output = &DescribeActivationsOutput{} req = c.newRequest(op, input, output) - output = &ListAssociationsOutput{} - req.Data = output return } -// ListAssociations API operation for Amazon Simple Systems Management Service. +// DescribeActivations API operation for Amazon Simple Systems Manager (SSM). // -// Lists the associations for the specified SSM document or instance. +// Details about the activation, including: the date and time the activation +// was created, the expiration date, the IAM role assigned to the instances +// in the activation, and the number of instances activated by this registration. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's -// API operation ListAssociations for usage and error information. +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribeActivations for usage and error information. // // Returned Error Codes: -// * InternalServerError -// An error occurred on the server side. +// * ErrCodeInvalidFilter "InvalidFilter" +// The filter name is not valid. Verify the you entered the correct name and +// try again. // -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The specified token is not valid. // -func (c *SSM) ListAssociations(input *ListAssociationsInput) (*ListAssociationsOutput, error) { - req, out := c.ListAssociationsRequest(input) +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeActivations +func (c *SSM) DescribeActivations(input *DescribeActivationsInput) (*DescribeActivationsOutput, error) { + req, out := c.DescribeActivationsRequest(input) err := req.Send() return out, err } -// ListAssociationsPages iterates over the pages of a ListAssociations operation, +// DescribeActivationsPages iterates over the pages of a DescribeActivations operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListAssociations method for more information on how to use this operation. +// See DescribeActivations method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // -// // Example iterating over at most 3 pages of a ListAssociations operation. +// // Example iterating over at most 3 pages of a DescribeActivations operation. // pageNum := 0 -// err := client.ListAssociationsPages(params, -// func(page *ListAssociationsOutput, lastPage bool) bool { +// err := client.DescribeActivationsPages(params, +// func(page *DescribeActivationsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *SSM) ListAssociationsPages(input *ListAssociationsInput, fn func(p *ListAssociationsOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.ListAssociationsRequest(input) +func (c *SSM) DescribeActivationsPages(input *DescribeActivationsInput, fn func(p *DescribeActivationsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.DescribeActivationsRequest(input) page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*ListAssociationsOutput), lastPage) + return fn(p.(*DescribeActivationsOutput), lastPage) }) } -const opListCommandInvocations = "ListCommandInvocations" +const opDescribeAssociation = "DescribeAssociation" -// ListCommandInvocationsRequest generates a "aws/request.Request" representing the -// client's request for the ListCommandInvocations operation. The "output" return +// DescribeAssociationRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAssociation operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ListCommandInvocations for usage and error information. +// See DescribeAssociation for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ListCommandInvocations method directly +// you just want the service response, call the DescribeAssociation method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ListCommandInvocationsRequest method. -// req, resp := client.ListCommandInvocationsRequest(params) +// // Example sending a request using the DescribeAssociationRequest method. +// req, resp := client.DescribeAssociationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *SSM) ListCommandInvocationsRequest(input *ListCommandInvocationsInput) (req *request.Request, output *ListCommandInvocationsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeAssociation +func (c *SSM) DescribeAssociationRequest(input *DescribeAssociationInput) (req *request.Request, output *DescribeAssociationOutput) { op := &request.Operation{ - Name: opListCommandInvocations, + Name: opDescribeAssociation, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListCommandInvocationsInput{} + input = &DescribeAssociationInput{} } + output = &DescribeAssociationOutput{} req = c.newRequest(op, input, output) - output = &ListCommandInvocationsOutput{} - req.Data = output return } -// ListCommandInvocations API operation for Amazon Simple Systems Management Service. +// DescribeAssociation API operation for Amazon Simple Systems Manager (SSM). // -// An invocation is copy of a command sent to a specific instance. A command -// can apply to one or more instances. A command invocation applies to one instance. -// For example, if a user executes SendCommand against three instances, then -// a command invocation is created for each requested instance ID. ListCommandInvocations -// provide status about command execution. +// Describes the associations for the specified SSM document or instance. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's -// API operation ListCommandInvocations for usage and error information. +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribeAssociation for usage and error information. // // Returned Error Codes: -// * InternalServerError -// An error occurred on the server side. -// -// * InvalidCommandId - +// * ErrCodeAssociationDoesNotExist "AssociationDoesNotExist" +// The specified association does not exist. // -// * InvalidInstanceId -// The instance is not in valid state. Valid states are: Running, Pending, Stopped, -// Stopping. Invalid states are: Shutting-down and Terminated. +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. // -// * InvalidFilterKey -// The specified key is not valid. +// * ErrCodeInvalidDocument "InvalidDocument" +// The specified document does not exist. // -// * InvalidNextToken -// The specified token is not valid. +// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// The following problems can cause this exception: // -func (c *SSM) ListCommandInvocations(input *ListCommandInvocationsInput) (*ListCommandInvocationsOutput, error) { - req, out := c.ListCommandInvocationsRequest(input) - err := req.Send() - return out, err -} - -// ListCommandInvocationsPages iterates over the pages of a ListCommandInvocations operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. +// You do not have permission to access the instance. // -// See ListCommandInvocations method for more information on how to use this operation. +// The SSM agent is not running. On managed instances and Linux instances, verify +// that the SSM agent is running. On EC2 Windows instances, verify that the +// EC2Config service is running. // -// Note: This operation can generate multiple requests to a service. +// The SSM agent or EC2Config service is not registered to the SSM endpoint. +// Try reinstalling the SSM agent or EC2Config service. // -// // Example iterating over at most 3 pages of a ListCommandInvocations operation. -// pageNum := 0 -// err := client.ListCommandInvocationsPages(params, -// func(page *ListCommandInvocationsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. // -func (c *SSM) ListCommandInvocationsPages(input *ListCommandInvocationsInput, fn func(p *ListCommandInvocationsOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.ListCommandInvocationsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*ListCommandInvocationsOutput), lastPage) - }) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeAssociation +func (c *SSM) DescribeAssociation(input *DescribeAssociationInput) (*DescribeAssociationOutput, error) { + req, out := c.DescribeAssociationRequest(input) + err := req.Send() + return out, err } -const opListCommands = "ListCommands" +const opDescribeAutomationExecutions = "DescribeAutomationExecutions" -// ListCommandsRequest generates a "aws/request.Request" representing the -// client's request for the ListCommands operation. The "output" return +// DescribeAutomationExecutionsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAutomationExecutions operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ListCommands for usage and error information. +// See DescribeAutomationExecutions for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ListCommands method directly +// you just want the service response, call the DescribeAutomationExecutions method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ListCommandsRequest method. -// req, resp := client.ListCommandsRequest(params) +// // Example sending a request using the DescribeAutomationExecutionsRequest method. +// req, resp := client.DescribeAutomationExecutionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *SSM) ListCommandsRequest(input *ListCommandsInput) (req *request.Request, output *ListCommandsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeAutomationExecutions +func (c *SSM) DescribeAutomationExecutionsRequest(input *DescribeAutomationExecutionsInput) (req *request.Request, output *DescribeAutomationExecutionsOutput) { op := &request.Operation{ - Name: opListCommands, + Name: opDescribeAutomationExecutions, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListCommandsInput{} + input = &DescribeAutomationExecutionsInput{} } + output = &DescribeAutomationExecutionsOutput{} req = c.newRequest(op, input, output) - output = &ListCommandsOutput{} - req.Data = output return } -// ListCommands API operation for Amazon Simple Systems Management Service. +// DescribeAutomationExecutions API operation for Amazon Simple Systems Manager (SSM). // -// Lists the commands requested by users of the AWS account. +// Provides details about all active and terminated Automation executions. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's -// API operation ListCommands for usage and error information. +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribeAutomationExecutions for usage and error information. // // Returned Error Codes: -// * InternalServerError -// An error occurred on the server side. -// -// * InvalidCommandId - -// -// * InvalidInstanceId -// The instance is not in valid state. Valid states are: Running, Pending, Stopped, -// Stopping. Invalid states are: Shutting-down and Terminated. -// -// * InvalidFilterKey -// The specified key is not valid. -// -// * InvalidNextToken +// * ErrCodeInvalidNextToken "InvalidNextToken" // The specified token is not valid. // -func (c *SSM) ListCommands(input *ListCommandsInput) (*ListCommandsOutput, error) { - req, out := c.ListCommandsRequest(input) +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeAutomationExecutions +func (c *SSM) DescribeAutomationExecutions(input *DescribeAutomationExecutionsInput) (*DescribeAutomationExecutionsOutput, error) { + req, out := c.DescribeAutomationExecutionsRequest(input) err := req.Send() return out, err } -// ListCommandsPages iterates over the pages of a ListCommands operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListCommands method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListCommands operation. -// pageNum := 0 -// err := client.ListCommandsPages(params, -// func(page *ListCommandsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *SSM) ListCommandsPages(input *ListCommandsInput, fn func(p *ListCommandsOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.ListCommandsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*ListCommandsOutput), lastPage) - }) -} - -const opListDocuments = "ListDocuments" +const opDescribeAvailablePatches = "DescribeAvailablePatches" -// ListDocumentsRequest generates a "aws/request.Request" representing the -// client's request for the ListDocuments operation. The "output" return +// DescribeAvailablePatchesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAvailablePatches operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ListDocuments for usage and error information. +// See DescribeAvailablePatches for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ListDocuments method directly +// you just want the service response, call the DescribeAvailablePatches method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ListDocumentsRequest method. -// req, resp := client.ListDocumentsRequest(params) +// // Example sending a request using the DescribeAvailablePatchesRequest method. +// req, resp := client.DescribeAvailablePatchesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *SSM) ListDocumentsRequest(input *ListDocumentsInput) (req *request.Request, output *ListDocumentsOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeAvailablePatches +func (c *SSM) DescribeAvailablePatchesRequest(input *DescribeAvailablePatchesInput) (req *request.Request, output *DescribeAvailablePatchesOutput) { op := &request.Operation{ - Name: opListDocuments, + Name: opDescribeAvailablePatches, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListDocumentsInput{} + input = &DescribeAvailablePatchesInput{} } + output = &DescribeAvailablePatchesOutput{} req = c.newRequest(op, input, output) - output = &ListDocumentsOutput{} - req.Data = output return } -// ListDocuments API operation for Amazon Simple Systems Management Service. +// DescribeAvailablePatches API operation for Amazon Simple Systems Manager (SSM). // -// Describes one or more of your SSM documents. +// Lists all patches that could possibly be included in a patch baseline. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's -// API operation ListDocuments for usage and error information. +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribeAvailablePatches for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // -// * InvalidNextToken -// The specified token is not valid. -// -// * InvalidFilterKey -// The specified key is not valid. -// -func (c *SSM) ListDocuments(input *ListDocumentsInput) (*ListDocumentsOutput, error) { - req, out := c.ListDocumentsRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeAvailablePatches +func (c *SSM) DescribeAvailablePatches(input *DescribeAvailablePatchesInput) (*DescribeAvailablePatchesOutput, error) { + req, out := c.DescribeAvailablePatchesRequest(input) err := req.Send() return out, err } -// ListDocumentsPages iterates over the pages of a ListDocuments operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListDocuments method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListDocuments operation. -// pageNum := 0 -// err := client.ListDocumentsPages(params, -// func(page *ListDocumentsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *SSM) ListDocumentsPages(input *ListDocumentsInput, fn func(p *ListDocumentsOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.ListDocumentsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*ListDocumentsOutput), lastPage) - }) -} - -const opListTagsForResource = "ListTagsForResource" +const opDescribeDocument = "DescribeDocument" -// ListTagsForResourceRequest generates a "aws/request.Request" representing the -// client's request for the ListTagsForResource operation. The "output" return +// DescribeDocumentRequest generates a "aws/request.Request" representing the +// client's request for the DescribeDocument operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ListTagsForResource for usage and error information. +// See DescribeDocument for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ListTagsForResource method directly +// you just want the service response, call the DescribeDocument method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ListTagsForResourceRequest method. -// req, resp := client.ListTagsForResourceRequest(params) +// // Example sending a request using the DescribeDocumentRequest method. +// req, resp := client.DescribeDocumentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *SSM) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeDocument +func (c *SSM) DescribeDocumentRequest(input *DescribeDocumentInput) (req *request.Request, output *DescribeDocumentOutput) { op := &request.Operation{ - Name: opListTagsForResource, + Name: opDescribeDocument, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ListTagsForResourceInput{} + input = &DescribeDocumentInput{} } + output = &DescribeDocumentOutput{} req = c.newRequest(op, input, output) - output = &ListTagsForResourceOutput{} - req.Data = output return } -// ListTagsForResource API operation for Amazon Simple Systems Management Service. +// DescribeDocument API operation for Amazon Simple Systems Manager (SSM). // -// Returns a list of the tags assigned to the specified resource. +// Describes the specified SSM document. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's -// API operation ListTagsForResource for usage and error information. +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribeDocument for usage and error information. // // Returned Error Codes: -// * InvalidResourceType -// The resource type is not valid. If you are attempting to tag an instance, -// the instance must be a registered, managed instance. +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. // -// * InvalidResourceId -// The resource ID is not valid. Verify that you entered the correct ID and -// try again. +// * ErrCodeInvalidDocument "InvalidDocument" +// The specified document does not exist. // -// * InternalServerError -// An error occurred on the server side. +// * ErrCodeInvalidDocumentVersion "InvalidDocumentVersion" +// The document version is not valid or does not exist. // -func (c *SSM) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeDocument +func (c *SSM) DescribeDocument(input *DescribeDocumentInput) (*DescribeDocumentOutput, error) { + req, out := c.DescribeDocumentRequest(input) err := req.Send() return out, err } -const opModifyDocumentPermission = "ModifyDocumentPermission" +const opDescribeDocumentPermission = "DescribeDocumentPermission" -// ModifyDocumentPermissionRequest generates a "aws/request.Request" representing the -// client's request for the ModifyDocumentPermission operation. The "output" return +// DescribeDocumentPermissionRequest generates a "aws/request.Request" representing the +// client's request for the DescribeDocumentPermission operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ModifyDocumentPermission for usage and error information. +// See DescribeDocumentPermission for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ModifyDocumentPermission method directly +// you just want the service response, call the DescribeDocumentPermission method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ModifyDocumentPermissionRequest method. -// req, resp := client.ModifyDocumentPermissionRequest(params) +// // Example sending a request using the DescribeDocumentPermissionRequest method. +// req, resp := client.DescribeDocumentPermissionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *SSM) ModifyDocumentPermissionRequest(input *ModifyDocumentPermissionInput) (req *request.Request, output *ModifyDocumentPermissionOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeDocumentPermission +func (c *SSM) DescribeDocumentPermissionRequest(input *DescribeDocumentPermissionInput) (req *request.Request, output *DescribeDocumentPermissionOutput) { op := &request.Operation{ - Name: opModifyDocumentPermission, + Name: opDescribeDocumentPermission, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ModifyDocumentPermissionInput{} + input = &DescribeDocumentPermissionInput{} } + output = &DescribeDocumentPermissionOutput{} req = c.newRequest(op, input, output) - output = &ModifyDocumentPermissionOutput{} - req.Data = output return } -// ModifyDocumentPermission API operation for Amazon Simple Systems Management Service. +// DescribeDocumentPermission API operation for Amazon Simple Systems Manager (SSM). // -// Share a document publicly or privately. If you share a document privately, -// you must specify the AWS user account IDs for those people who can use the -// document. If you share a document publicly, you must specify All as the account -// ID. +// Describes the permissions for an SSM document. If you created the document, +// you are the owner. If a document is shared, it can either be shared privately +// (by specifying a user’s AWS account ID) or publicly (All). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's -// API operation ModifyDocumentPermission for usage and error information. +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribeDocumentPermission for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // -// * InvalidDocument +// * ErrCodeInvalidDocument "InvalidDocument" // The specified document does not exist. // -// * InvalidPermissionType +// * ErrCodeInvalidPermissionType "InvalidPermissionType" // The permission type is not supported. Share is the only supported permission // type. // -// * DocumentPermissionLimit -// The document cannot be shared with more AWS user accounts. You can share -// a document with a maximum of 20 accounts. You can publicly share up to five -// documents. If you need to increase this limit, contact AWS Support. -// -// * DocumentLimitExceeded -// You can have at most 200 active SSM documents. -// -func (c *SSM) ModifyDocumentPermission(input *ModifyDocumentPermissionInput) (*ModifyDocumentPermissionOutput, error) { - req, out := c.ModifyDocumentPermissionRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeDocumentPermission +func (c *SSM) DescribeDocumentPermission(input *DescribeDocumentPermissionInput) (*DescribeDocumentPermissionOutput, error) { + req, out := c.DescribeDocumentPermissionRequest(input) err := req.Send() return out, err } -const opRemoveTagsFromResource = "RemoveTagsFromResource" +const opDescribeEffectiveInstanceAssociations = "DescribeEffectiveInstanceAssociations" -// RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the -// client's request for the RemoveTagsFromResource operation. The "output" return +// DescribeEffectiveInstanceAssociationsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeEffectiveInstanceAssociations operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See RemoveTagsFromResource for usage and error information. +// See DescribeEffectiveInstanceAssociations for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the RemoveTagsFromResource method directly +// you just want the service response, call the DescribeEffectiveInstanceAssociations method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the RemoveTagsFromResourceRequest method. -// req, resp := client.RemoveTagsFromResourceRequest(params) +// // Example sending a request using the DescribeEffectiveInstanceAssociationsRequest method. +// req, resp := client.DescribeEffectiveInstanceAssociationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *SSM) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeEffectiveInstanceAssociations +func (c *SSM) DescribeEffectiveInstanceAssociationsRequest(input *DescribeEffectiveInstanceAssociationsInput) (req *request.Request, output *DescribeEffectiveInstanceAssociationsOutput) { op := &request.Operation{ - Name: opRemoveTagsFromResource, + Name: opDescribeEffectiveInstanceAssociations, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &RemoveTagsFromResourceInput{} + input = &DescribeEffectiveInstanceAssociationsInput{} } + output = &DescribeEffectiveInstanceAssociationsOutput{} req = c.newRequest(op, input, output) - output = &RemoveTagsFromResourceOutput{} - req.Data = output return } -// RemoveTagsFromResource API operation for Amazon Simple Systems Management Service. +// DescribeEffectiveInstanceAssociations API operation for Amazon Simple Systems Manager (SSM). // -// Removes all tags from the specified resource. +// All associations for the instance(s). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's -// API operation RemoveTagsFromResource for usage and error information. +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribeEffectiveInstanceAssociations for usage and error information. // // Returned Error Codes: -// * InvalidResourceType -// The resource type is not valid. If you are attempting to tag an instance, -// the instance must be a registered, managed instance. +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. // -// * InvalidResourceId -// The resource ID is not valid. Verify that you entered the correct ID and -// try again. +// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// The following problems can cause this exception: // -// * InternalServerError -// An error occurred on the server side. +// You do not have permission to access the instance. // -func (c *SSM) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { - req, out := c.RemoveTagsFromResourceRequest(input) +// The SSM agent is not running. On managed instances and Linux instances, verify +// that the SSM agent is running. On EC2 Windows instances, verify that the +// EC2Config service is running. +// +// The SSM agent or EC2Config service is not registered to the SSM endpoint. +// Try reinstalling the SSM agent or EC2Config service. +// +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * ErrCodeInvalidNextToken "InvalidNextToken" +// The specified token is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeEffectiveInstanceAssociations +func (c *SSM) DescribeEffectiveInstanceAssociations(input *DescribeEffectiveInstanceAssociationsInput) (*DescribeEffectiveInstanceAssociationsOutput, error) { + req, out := c.DescribeEffectiveInstanceAssociationsRequest(input) err := req.Send() return out, err } -const opSendCommand = "SendCommand" +const opDescribeEffectivePatchesForPatchBaseline = "DescribeEffectivePatchesForPatchBaseline" -// SendCommandRequest generates a "aws/request.Request" representing the -// client's request for the SendCommand operation. The "output" return +// DescribeEffectivePatchesForPatchBaselineRequest generates a "aws/request.Request" representing the +// client's request for the DescribeEffectivePatchesForPatchBaseline operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See SendCommand for usage and error information. +// See DescribeEffectivePatchesForPatchBaseline for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the SendCommand method directly +// you just want the service response, call the DescribeEffectivePatchesForPatchBaseline method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the SendCommandRequest method. -// req, resp := client.SendCommandRequest(params) +// // Example sending a request using the DescribeEffectivePatchesForPatchBaselineRequest method. +// req, resp := client.DescribeEffectivePatchesForPatchBaselineRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *SSM) SendCommandRequest(input *SendCommandInput) (req *request.Request, output *SendCommandOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeEffectivePatchesForPatchBaseline +func (c *SSM) DescribeEffectivePatchesForPatchBaselineRequest(input *DescribeEffectivePatchesForPatchBaselineInput) (req *request.Request, output *DescribeEffectivePatchesForPatchBaselineOutput) { op := &request.Operation{ - Name: opSendCommand, + Name: opDescribeEffectivePatchesForPatchBaseline, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &SendCommandInput{} + input = &DescribeEffectivePatchesForPatchBaselineInput{} } + output = &DescribeEffectivePatchesForPatchBaselineOutput{} req = c.newRequest(op, input, output) - output = &SendCommandOutput{} - req.Data = output return } -// SendCommand API operation for Amazon Simple Systems Management Service. +// DescribeEffectivePatchesForPatchBaseline API operation for Amazon Simple Systems Manager (SSM). // -// Executes commands on one or more remote instances. +// Retrieves the current effective patches (the patch and the approval state) +// for the specified patch baseline. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's -// API operation SendCommand for usage and error information. +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribeEffectivePatchesForPatchBaseline for usage and error information. // // Returned Error Codes: -// * DuplicateInstanceId -// You cannot specify an instance ID in more than one association. -// -// * InternalServerError -// An error occurred on the server side. -// -// * InvalidInstanceId -// The instance is not in valid state. Valid states are: Running, Pending, Stopped, -// Stopping. Invalid states are: Shutting-down and Terminated. -// -// * InvalidDocument -// The specified document does not exist. -// -// * InvalidOutputFolder -// The S3 bucket does not exist. -// -// * InvalidParameters -// You must specify values for all required parameters in the SSM document. -// You can only supply values to parameters defined in the SSM document. -// -// * UnsupportedPlatformType -// The document does not support the platform type of the given instance ID(s). -// For example, you sent an SSM document for a Windows instance to a Linux instance. -// -// * MaxDocumentSizeExceeded -// The size limit of an SSM document is 64 KB. +// * ErrCodeInvalidResourceId "InvalidResourceId" +// The resource ID is not valid. Verify that you entered the correct ID and +// try again. // -// * InvalidRole -// The role name can't contain invalid characters. Also verify that you specified -// an IAM role for notifications that includes the required trust policy. For -// information about configuring the IAM role for SSM notifications, see Configuring -// SNS Notifications SSM (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/rc-sns.html) -// in the Amazon Elastic Compute Cloud User Guide . +// * ErrCodeDoesNotExistException "DoesNotExistException" +// Error returned when the ID specified for a resource (e.g. a Maintenance Window) +// doesn’t exist. // -// * InvalidNotificationConfig -// One or more configuration items is not valid. Verify that a valid Amazon -// Resource Name (ARN) was provided for an Amazon SNS topic. +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. // -func (c *SSM) SendCommand(input *SendCommandInput) (*SendCommandOutput, error) { - req, out := c.SendCommandRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeEffectivePatchesForPatchBaseline +func (c *SSM) DescribeEffectivePatchesForPatchBaseline(input *DescribeEffectivePatchesForPatchBaselineInput) (*DescribeEffectivePatchesForPatchBaselineOutput, error) { + req, out := c.DescribeEffectivePatchesForPatchBaselineRequest(input) err := req.Send() return out, err } -const opUpdateAssociationStatus = "UpdateAssociationStatus" +const opDescribeInstanceAssociationsStatus = "DescribeInstanceAssociationsStatus" -// UpdateAssociationStatusRequest generates a "aws/request.Request" representing the -// client's request for the UpdateAssociationStatus operation. The "output" return +// DescribeInstanceAssociationsStatusRequest generates a "aws/request.Request" representing the +// client's request for the DescribeInstanceAssociationsStatus operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See UpdateAssociationStatus for usage and error information. +// See DescribeInstanceAssociationsStatus for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the UpdateAssociationStatus method directly +// you just want the service response, call the DescribeInstanceAssociationsStatus method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the UpdateAssociationStatusRequest method. -// req, resp := client.UpdateAssociationStatusRequest(params) +// // Example sending a request using the DescribeInstanceAssociationsStatusRequest method. +// req, resp := client.DescribeInstanceAssociationsStatusRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *SSM) UpdateAssociationStatusRequest(input *UpdateAssociationStatusInput) (req *request.Request, output *UpdateAssociationStatusOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstanceAssociationsStatus +func (c *SSM) DescribeInstanceAssociationsStatusRequest(input *DescribeInstanceAssociationsStatusInput) (req *request.Request, output *DescribeInstanceAssociationsStatusOutput) { op := &request.Operation{ - Name: opUpdateAssociationStatus, + Name: opDescribeInstanceAssociationsStatus, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateAssociationStatusInput{} + input = &DescribeInstanceAssociationsStatusInput{} } + output = &DescribeInstanceAssociationsStatusOutput{} req = c.newRequest(op, input, output) - output = &UpdateAssociationStatusOutput{} - req.Data = output return } -// UpdateAssociationStatus API operation for Amazon Simple Systems Management Service. +// DescribeInstanceAssociationsStatus API operation for Amazon Simple Systems Manager (SSM). // -// Updates the status of the SSM document associated with the specified instance. +// The status of the associations for the instance(s). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's -// API operation UpdateAssociationStatus for usage and error information. +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribeInstanceAssociationsStatus for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // -// * InvalidInstanceId +// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// The following problems can cause this exception: +// +// You do not have permission to access the instance. +// +// The SSM agent is not running. On managed instances and Linux instances, verify +// that the SSM agent is running. On EC2 Windows instances, verify that the +// EC2Config service is running. +// +// The SSM agent or EC2Config service is not registered to the SSM endpoint. +// Try reinstalling the SSM agent or EC2Config service. +// // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * InvalidDocument -// The specified document does not exist. +// * ErrCodeInvalidNextToken "InvalidNextToken" +// The specified token is not valid. // -// * AssociationDoesNotExist -// The specified association does not exist. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstanceAssociationsStatus +func (c *SSM) DescribeInstanceAssociationsStatus(input *DescribeInstanceAssociationsStatusInput) (*DescribeInstanceAssociationsStatusOutput, error) { + req, out := c.DescribeInstanceAssociationsStatusRequest(input) + err := req.Send() + return out, err +} + +const opDescribeInstanceInformation = "DescribeInstanceInformation" + +// DescribeInstanceInformationRequest generates a "aws/request.Request" representing the +// client's request for the DescribeInstanceInformation operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. // -// * StatusUnchanged -// The updated status is the same as the current status. +// See DescribeInstanceInformation for usage and error information. // -// * TooManyUpdates -// There are concurrent updates for a resource that supports one update at a -// time. +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeInstanceInformation method directly +// instead. // -func (c *SSM) UpdateAssociationStatus(input *UpdateAssociationStatusInput) (*UpdateAssociationStatusOutput, error) { - req, out := c.UpdateAssociationStatusRequest(input) +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeInstanceInformationRequest method. +// req, resp := client.DescribeInstanceInformationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstanceInformation +func (c *SSM) DescribeInstanceInformationRequest(input *DescribeInstanceInformationInput) (req *request.Request, output *DescribeInstanceInformationOutput) { + op := &request.Operation{ + Name: opDescribeInstanceInformation, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeInstanceInformationInput{} + } + + output = &DescribeInstanceInformationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeInstanceInformation API operation for Amazon Simple Systems Manager (SSM). +// +// Describes one or more of your instances. You can use this to get information +// about instances like the operating system platform, the SSM agent version +// (Linux), status etc. If you specify one or more instance IDs, it returns +// information for those instances. If you do not specify instance IDs, it returns +// information for all your instances. If you specify an instance ID that is +// not valid or an instance that you do not own, you receive an error. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribeInstanceInformation for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// The following problems can cause this exception: +// +// You do not have permission to access the instance. +// +// The SSM agent is not running. On managed instances and Linux instances, verify +// that the SSM agent is running. On EC2 Windows instances, verify that the +// EC2Config service is running. +// +// The SSM agent or EC2Config service is not registered to the SSM endpoint. +// Try reinstalling the SSM agent or EC2Config service. +// +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * ErrCodeInvalidNextToken "InvalidNextToken" +// The specified token is not valid. +// +// * ErrCodeInvalidInstanceInformationFilterValue "InvalidInstanceInformationFilterValue" +// The specified filter value is not valid. +// +// * ErrCodeInvalidFilterKey "InvalidFilterKey" +// The specified key is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstanceInformation +func (c *SSM) DescribeInstanceInformation(input *DescribeInstanceInformationInput) (*DescribeInstanceInformationOutput, error) { + req, out := c.DescribeInstanceInformationRequest(input) err := req.Send() return out, err } -const opUpdateManagedInstanceRole = "UpdateManagedInstanceRole" +// DescribeInstanceInformationPages iterates over the pages of a DescribeInstanceInformation operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeInstanceInformation method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a DescribeInstanceInformation operation. +// pageNum := 0 +// err := client.DescribeInstanceInformationPages(params, +// func(page *DescribeInstanceInformationOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SSM) DescribeInstanceInformationPages(input *DescribeInstanceInformationInput, fn func(p *DescribeInstanceInformationOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.DescribeInstanceInformationRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*DescribeInstanceInformationOutput), lastPage) + }) +} -// UpdateManagedInstanceRoleRequest generates a "aws/request.Request" representing the -// client's request for the UpdateManagedInstanceRole operation. The "output" return +const opDescribeInstancePatchStates = "DescribeInstancePatchStates" + +// DescribeInstancePatchStatesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeInstancePatchStates operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See UpdateManagedInstanceRole for usage and error information. +// See DescribeInstancePatchStates for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the UpdateManagedInstanceRole method directly +// you just want the service response, call the DescribeInstancePatchStates method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the UpdateManagedInstanceRoleRequest method. -// req, resp := client.UpdateManagedInstanceRoleRequest(params) +// // Example sending a request using the DescribeInstancePatchStatesRequest method. +// req, resp := client.DescribeInstancePatchStatesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *SSM) UpdateManagedInstanceRoleRequest(input *UpdateManagedInstanceRoleInput) (req *request.Request, output *UpdateManagedInstanceRoleOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstancePatchStates +func (c *SSM) DescribeInstancePatchStatesRequest(input *DescribeInstancePatchStatesInput) (req *request.Request, output *DescribeInstancePatchStatesOutput) { op := &request.Operation{ - Name: opUpdateManagedInstanceRole, + Name: opDescribeInstancePatchStates, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateManagedInstanceRoleInput{} + input = &DescribeInstancePatchStatesInput{} } + output = &DescribeInstancePatchStatesOutput{} req = c.newRequest(op, input, output) - output = &UpdateManagedInstanceRoleOutput{} - req.Data = output return } -// UpdateManagedInstanceRole API operation for Amazon Simple Systems Management Service. +// DescribeInstancePatchStates API operation for Amazon Simple Systems Manager (SSM). // -// Assigns or changes an Amazon Identity and Access Management (IAM) role to -// the managed instance. +// Retrieves the high-level patch state of one or more instances. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // -// See the AWS API reference guide for Amazon Simple Systems Management Service's -// API operation UpdateManagedInstanceRole for usage and error information. +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribeInstancePatchStates for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidNextToken "InvalidNextToken" +// The specified token is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstancePatchStates +func (c *SSM) DescribeInstancePatchStates(input *DescribeInstancePatchStatesInput) (*DescribeInstancePatchStatesOutput, error) { + req, out := c.DescribeInstancePatchStatesRequest(input) + err := req.Send() + return out, err +} + +const opDescribeInstancePatchStatesForPatchGroup = "DescribeInstancePatchStatesForPatchGroup" + +// DescribeInstancePatchStatesForPatchGroupRequest generates a "aws/request.Request" representing the +// client's request for the DescribeInstancePatchStatesForPatchGroup operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeInstancePatchStatesForPatchGroup for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeInstancePatchStatesForPatchGroup method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeInstancePatchStatesForPatchGroupRequest method. +// req, resp := client.DescribeInstancePatchStatesForPatchGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstancePatchStatesForPatchGroup +func (c *SSM) DescribeInstancePatchStatesForPatchGroupRequest(input *DescribeInstancePatchStatesForPatchGroupInput) (req *request.Request, output *DescribeInstancePatchStatesForPatchGroupOutput) { + op := &request.Operation{ + Name: opDescribeInstancePatchStatesForPatchGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeInstancePatchStatesForPatchGroupInput{} + } + + output = &DescribeInstancePatchStatesForPatchGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeInstancePatchStatesForPatchGroup API operation for Amazon Simple Systems Manager (SSM). +// +// Retrieves the high-level patch state for the instances in the specified patch +// group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribeInstancePatchStatesForPatchGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidFilter "InvalidFilter" +// The filter name is not valid. Verify the you entered the correct name and +// try again. +// +// * ErrCodeInvalidNextToken "InvalidNextToken" +// The specified token is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstancePatchStatesForPatchGroup +func (c *SSM) DescribeInstancePatchStatesForPatchGroup(input *DescribeInstancePatchStatesForPatchGroupInput) (*DescribeInstancePatchStatesForPatchGroupOutput, error) { + req, out := c.DescribeInstancePatchStatesForPatchGroupRequest(input) + err := req.Send() + return out, err +} + +const opDescribeInstancePatches = "DescribeInstancePatches" + +// DescribeInstancePatchesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeInstancePatches operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeInstancePatches for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeInstancePatches method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeInstancePatchesRequest method. +// req, resp := client.DescribeInstancePatchesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstancePatches +func (c *SSM) DescribeInstancePatchesRequest(input *DescribeInstancePatchesInput) (req *request.Request, output *DescribeInstancePatchesOutput) { + op := &request.Operation{ + Name: opDescribeInstancePatches, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeInstancePatchesInput{} + } + + output = &DescribeInstancePatchesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeInstancePatches API operation for Amazon Simple Systems Manager (SSM). +// +// Retrieves information about the patches on the specified instance and their +// state relative to the patch baseline being used for the instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribeInstancePatches for usage and error information. // // Returned Error Codes: -// * InvalidInstanceId +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// The following problems can cause this exception: +// +// You do not have permission to access the instance. +// +// The SSM agent is not running. On managed instances and Linux instances, verify +// that the SSM agent is running. On EC2 Windows instances, verify that the +// EC2Config service is running. +// +// The SSM agent or EC2Config service is not registered to the SSM endpoint. +// Try reinstalling the SSM agent or EC2Config service. +// // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * InternalServerError -// An error occurred on the server side. +// * ErrCodeInvalidFilter "InvalidFilter" +// The filter name is not valid. Verify the you entered the correct name and +// try again. // -func (c *SSM) UpdateManagedInstanceRole(input *UpdateManagedInstanceRoleInput) (*UpdateManagedInstanceRoleOutput, error) { - req, out := c.UpdateManagedInstanceRoleRequest(input) +// * ErrCodeInvalidNextToken "InvalidNextToken" +// The specified token is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstancePatches +func (c *SSM) DescribeInstancePatches(input *DescribeInstancePatchesInput) (*DescribeInstancePatchesOutput, error) { + req, out := c.DescribeInstancePatchesRequest(input) err := req.Send() return out, err } -// An activation registers one or more on-premises servers or virtual machines -// (VMs) with AWS so that you can configure those servers or VMs using Run Command. -// A server or VM that has been registered with AWS is called a managed instance. -type Activation struct { - _ struct{} `type:"structure"` +const opDescribeMaintenanceWindowExecutionTaskInvocations = "DescribeMaintenanceWindowExecutionTaskInvocations" - // The ID created by SSM when you submitted the activation. - ActivationId *string `type:"string"` +// DescribeMaintenanceWindowExecutionTaskInvocationsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeMaintenanceWindowExecutionTaskInvocations operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeMaintenanceWindowExecutionTaskInvocations for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeMaintenanceWindowExecutionTaskInvocations method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeMaintenanceWindowExecutionTaskInvocationsRequest method. +// req, resp := client.DescribeMaintenanceWindowExecutionTaskInvocationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowExecutionTaskInvocations +func (c *SSM) DescribeMaintenanceWindowExecutionTaskInvocationsRequest(input *DescribeMaintenanceWindowExecutionTaskInvocationsInput) (req *request.Request, output *DescribeMaintenanceWindowExecutionTaskInvocationsOutput) { + op := &request.Operation{ + Name: opDescribeMaintenanceWindowExecutionTaskInvocations, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeMaintenanceWindowExecutionTaskInvocationsInput{} + } + + output = &DescribeMaintenanceWindowExecutionTaskInvocationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeMaintenanceWindowExecutionTaskInvocations API operation for Amazon Simple Systems Manager (SSM). +// +// Retrieves the individual task executions (one per target) for a particular +// task executed as part of a Maintenance Window execution. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribeMaintenanceWindowExecutionTaskInvocations for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDoesNotExistException "DoesNotExistException" +// Error returned when the ID specified for a resource (e.g. a Maintenance Window) +// doesn’t exist. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowExecutionTaskInvocations +func (c *SSM) DescribeMaintenanceWindowExecutionTaskInvocations(input *DescribeMaintenanceWindowExecutionTaskInvocationsInput) (*DescribeMaintenanceWindowExecutionTaskInvocationsOutput, error) { + req, out := c.DescribeMaintenanceWindowExecutionTaskInvocationsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeMaintenanceWindowExecutionTasks = "DescribeMaintenanceWindowExecutionTasks" + +// DescribeMaintenanceWindowExecutionTasksRequest generates a "aws/request.Request" representing the +// client's request for the DescribeMaintenanceWindowExecutionTasks operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeMaintenanceWindowExecutionTasks for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeMaintenanceWindowExecutionTasks method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeMaintenanceWindowExecutionTasksRequest method. +// req, resp := client.DescribeMaintenanceWindowExecutionTasksRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowExecutionTasks +func (c *SSM) DescribeMaintenanceWindowExecutionTasksRequest(input *DescribeMaintenanceWindowExecutionTasksInput) (req *request.Request, output *DescribeMaintenanceWindowExecutionTasksOutput) { + op := &request.Operation{ + Name: opDescribeMaintenanceWindowExecutionTasks, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeMaintenanceWindowExecutionTasksInput{} + } + + output = &DescribeMaintenanceWindowExecutionTasksOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeMaintenanceWindowExecutionTasks API operation for Amazon Simple Systems Manager (SSM). +// +// For a given Maintenance Window execution, lists the tasks that were executed. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribeMaintenanceWindowExecutionTasks for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDoesNotExistException "DoesNotExistException" +// Error returned when the ID specified for a resource (e.g. a Maintenance Window) +// doesn’t exist. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowExecutionTasks +func (c *SSM) DescribeMaintenanceWindowExecutionTasks(input *DescribeMaintenanceWindowExecutionTasksInput) (*DescribeMaintenanceWindowExecutionTasksOutput, error) { + req, out := c.DescribeMaintenanceWindowExecutionTasksRequest(input) + err := req.Send() + return out, err +} + +const opDescribeMaintenanceWindowExecutions = "DescribeMaintenanceWindowExecutions" + +// DescribeMaintenanceWindowExecutionsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeMaintenanceWindowExecutions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeMaintenanceWindowExecutions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeMaintenanceWindowExecutions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeMaintenanceWindowExecutionsRequest method. +// req, resp := client.DescribeMaintenanceWindowExecutionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowExecutions +func (c *SSM) DescribeMaintenanceWindowExecutionsRequest(input *DescribeMaintenanceWindowExecutionsInput) (req *request.Request, output *DescribeMaintenanceWindowExecutionsOutput) { + op := &request.Operation{ + Name: opDescribeMaintenanceWindowExecutions, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeMaintenanceWindowExecutionsInput{} + } + + output = &DescribeMaintenanceWindowExecutionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeMaintenanceWindowExecutions API operation for Amazon Simple Systems Manager (SSM). +// +// Lists the executions of a Maintenance Window (meaning, information about +// when the Maintenance Window was scheduled to be active and information about +// tasks registered and run with the Maintenance Window). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribeMaintenanceWindowExecutions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowExecutions +func (c *SSM) DescribeMaintenanceWindowExecutions(input *DescribeMaintenanceWindowExecutionsInput) (*DescribeMaintenanceWindowExecutionsOutput, error) { + req, out := c.DescribeMaintenanceWindowExecutionsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeMaintenanceWindowTargets = "DescribeMaintenanceWindowTargets" + +// DescribeMaintenanceWindowTargetsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeMaintenanceWindowTargets operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeMaintenanceWindowTargets for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeMaintenanceWindowTargets method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeMaintenanceWindowTargetsRequest method. +// req, resp := client.DescribeMaintenanceWindowTargetsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowTargets +func (c *SSM) DescribeMaintenanceWindowTargetsRequest(input *DescribeMaintenanceWindowTargetsInput) (req *request.Request, output *DescribeMaintenanceWindowTargetsOutput) { + op := &request.Operation{ + Name: opDescribeMaintenanceWindowTargets, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeMaintenanceWindowTargetsInput{} + } + + output = &DescribeMaintenanceWindowTargetsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeMaintenanceWindowTargets API operation for Amazon Simple Systems Manager (SSM). +// +// Lists the targets registered with the Maintenance Window. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribeMaintenanceWindowTargets for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDoesNotExistException "DoesNotExistException" +// Error returned when the ID specified for a resource (e.g. a Maintenance Window) +// doesn’t exist. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowTargets +func (c *SSM) DescribeMaintenanceWindowTargets(input *DescribeMaintenanceWindowTargetsInput) (*DescribeMaintenanceWindowTargetsOutput, error) { + req, out := c.DescribeMaintenanceWindowTargetsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeMaintenanceWindowTasks = "DescribeMaintenanceWindowTasks" + +// DescribeMaintenanceWindowTasksRequest generates a "aws/request.Request" representing the +// client's request for the DescribeMaintenanceWindowTasks operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeMaintenanceWindowTasks for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeMaintenanceWindowTasks method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeMaintenanceWindowTasksRequest method. +// req, resp := client.DescribeMaintenanceWindowTasksRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowTasks +func (c *SSM) DescribeMaintenanceWindowTasksRequest(input *DescribeMaintenanceWindowTasksInput) (req *request.Request, output *DescribeMaintenanceWindowTasksOutput) { + op := &request.Operation{ + Name: opDescribeMaintenanceWindowTasks, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeMaintenanceWindowTasksInput{} + } + + output = &DescribeMaintenanceWindowTasksOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeMaintenanceWindowTasks API operation for Amazon Simple Systems Manager (SSM). +// +// Lists the tasks in a Maintenance Window. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribeMaintenanceWindowTasks for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDoesNotExistException "DoesNotExistException" +// Error returned when the ID specified for a resource (e.g. a Maintenance Window) +// doesn’t exist. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowTasks +func (c *SSM) DescribeMaintenanceWindowTasks(input *DescribeMaintenanceWindowTasksInput) (*DescribeMaintenanceWindowTasksOutput, error) { + req, out := c.DescribeMaintenanceWindowTasksRequest(input) + err := req.Send() + return out, err +} + +const opDescribeMaintenanceWindows = "DescribeMaintenanceWindows" + +// DescribeMaintenanceWindowsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeMaintenanceWindows operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeMaintenanceWindows for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeMaintenanceWindows method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeMaintenanceWindowsRequest method. +// req, resp := client.DescribeMaintenanceWindowsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindows +func (c *SSM) DescribeMaintenanceWindowsRequest(input *DescribeMaintenanceWindowsInput) (req *request.Request, output *DescribeMaintenanceWindowsOutput) { + op := &request.Operation{ + Name: opDescribeMaintenanceWindows, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeMaintenanceWindowsInput{} + } + + output = &DescribeMaintenanceWindowsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeMaintenanceWindows API operation for Amazon Simple Systems Manager (SSM). +// +// Retrieves the Maintenance Windows in an AWS account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribeMaintenanceWindows for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindows +func (c *SSM) DescribeMaintenanceWindows(input *DescribeMaintenanceWindowsInput) (*DescribeMaintenanceWindowsOutput, error) { + req, out := c.DescribeMaintenanceWindowsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeParameters = "DescribeParameters" + +// DescribeParametersRequest generates a "aws/request.Request" representing the +// client's request for the DescribeParameters operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeParameters for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeParameters method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeParametersRequest method. +// req, resp := client.DescribeParametersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeParameters +func (c *SSM) DescribeParametersRequest(input *DescribeParametersInput) (req *request.Request, output *DescribeParametersOutput) { + op := &request.Operation{ + Name: opDescribeParameters, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeParametersInput{} + } + + output = &DescribeParametersOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeParameters API operation for Amazon Simple Systems Manager (SSM). +// +// Get information about a parameter. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribeParameters for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidFilterValue "InvalidFilterValue" +// The filter value is not valid. Verify the value and try again. +// +// * ErrCodeInvalidNextToken "InvalidNextToken" +// The specified token is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeParameters +func (c *SSM) DescribeParameters(input *DescribeParametersInput) (*DescribeParametersOutput, error) { + req, out := c.DescribeParametersRequest(input) + err := req.Send() + return out, err +} + +const opDescribePatchBaselines = "DescribePatchBaselines" + +// DescribePatchBaselinesRequest generates a "aws/request.Request" representing the +// client's request for the DescribePatchBaselines operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribePatchBaselines for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribePatchBaselines method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribePatchBaselinesRequest method. +// req, resp := client.DescribePatchBaselinesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribePatchBaselines +func (c *SSM) DescribePatchBaselinesRequest(input *DescribePatchBaselinesInput) (req *request.Request, output *DescribePatchBaselinesOutput) { + op := &request.Operation{ + Name: opDescribePatchBaselines, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribePatchBaselinesInput{} + } + + output = &DescribePatchBaselinesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribePatchBaselines API operation for Amazon Simple Systems Manager (SSM). +// +// Lists the patch baselines in your AWS account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribePatchBaselines for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribePatchBaselines +func (c *SSM) DescribePatchBaselines(input *DescribePatchBaselinesInput) (*DescribePatchBaselinesOutput, error) { + req, out := c.DescribePatchBaselinesRequest(input) + err := req.Send() + return out, err +} + +const opDescribePatchGroupState = "DescribePatchGroupState" + +// DescribePatchGroupStateRequest generates a "aws/request.Request" representing the +// client's request for the DescribePatchGroupState operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribePatchGroupState for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribePatchGroupState method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribePatchGroupStateRequest method. +// req, resp := client.DescribePatchGroupStateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribePatchGroupState +func (c *SSM) DescribePatchGroupStateRequest(input *DescribePatchGroupStateInput) (req *request.Request, output *DescribePatchGroupStateOutput) { + op := &request.Operation{ + Name: opDescribePatchGroupState, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribePatchGroupStateInput{} + } + + output = &DescribePatchGroupStateOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribePatchGroupState API operation for Amazon Simple Systems Manager (SSM). +// +// Returns high-level aggregated patch compliance state for a patch group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribePatchGroupState for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidNextToken "InvalidNextToken" +// The specified token is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribePatchGroupState +func (c *SSM) DescribePatchGroupState(input *DescribePatchGroupStateInput) (*DescribePatchGroupStateOutput, error) { + req, out := c.DescribePatchGroupStateRequest(input) + err := req.Send() + return out, err +} + +const opDescribePatchGroups = "DescribePatchGroups" + +// DescribePatchGroupsRequest generates a "aws/request.Request" representing the +// client's request for the DescribePatchGroups operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribePatchGroups for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribePatchGroups method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribePatchGroupsRequest method. +// req, resp := client.DescribePatchGroupsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribePatchGroups +func (c *SSM) DescribePatchGroupsRequest(input *DescribePatchGroupsInput) (req *request.Request, output *DescribePatchGroupsOutput) { + op := &request.Operation{ + Name: opDescribePatchGroups, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribePatchGroupsInput{} + } + + output = &DescribePatchGroupsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribePatchGroups API operation for Amazon Simple Systems Manager (SSM). +// +// Lists all patch groups that have been registered with patch baselines. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation DescribePatchGroups for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribePatchGroups +func (c *SSM) DescribePatchGroups(input *DescribePatchGroupsInput) (*DescribePatchGroupsOutput, error) { + req, out := c.DescribePatchGroupsRequest(input) + err := req.Send() + return out, err +} + +const opGetAutomationExecution = "GetAutomationExecution" + +// GetAutomationExecutionRequest generates a "aws/request.Request" representing the +// client's request for the GetAutomationExecution operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetAutomationExecution for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetAutomationExecution method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetAutomationExecutionRequest method. +// req, resp := client.GetAutomationExecutionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetAutomationExecution +func (c *SSM) GetAutomationExecutionRequest(input *GetAutomationExecutionInput) (req *request.Request, output *GetAutomationExecutionOutput) { + op := &request.Operation{ + Name: opGetAutomationExecution, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetAutomationExecutionInput{} + } + + output = &GetAutomationExecutionOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetAutomationExecution API operation for Amazon Simple Systems Manager (SSM). +// +// Get detailed information about a particular Automation execution. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation GetAutomationExecution for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAutomationExecutionNotFoundException "AutomationExecutionNotFoundException" +// There is no automation execution information for the requested automation +// execution ID. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetAutomationExecution +func (c *SSM) GetAutomationExecution(input *GetAutomationExecutionInput) (*GetAutomationExecutionOutput, error) { + req, out := c.GetAutomationExecutionRequest(input) + err := req.Send() + return out, err +} + +const opGetCommandInvocation = "GetCommandInvocation" + +// GetCommandInvocationRequest generates a "aws/request.Request" representing the +// client's request for the GetCommandInvocation operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetCommandInvocation for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetCommandInvocation method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetCommandInvocationRequest method. +// req, resp := client.GetCommandInvocationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetCommandInvocation +func (c *SSM) GetCommandInvocationRequest(input *GetCommandInvocationInput) (req *request.Request, output *GetCommandInvocationOutput) { + op := &request.Operation{ + Name: opGetCommandInvocation, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetCommandInvocationInput{} + } + + output = &GetCommandInvocationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetCommandInvocation API operation for Amazon Simple Systems Manager (SSM). +// +// Returns detailed information about command execution for an invocation or +// plugin. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation GetCommandInvocation for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidCommandId "InvalidCommandId" +// +// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// The following problems can cause this exception: +// +// You do not have permission to access the instance. +// +// The SSM agent is not running. On managed instances and Linux instances, verify +// that the SSM agent is running. On EC2 Windows instances, verify that the +// EC2Config service is running. +// +// The SSM agent or EC2Config service is not registered to the SSM endpoint. +// Try reinstalling the SSM agent or EC2Config service. +// +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * ErrCodeInvalidPluginName "InvalidPluginName" +// The plugin name is not valid. +// +// * ErrCodeInvocationDoesNotExist "InvocationDoesNotExist" +// The command ID and instance ID you specified did not match any invocations. +// Verify the command ID adn the instance ID and try again. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetCommandInvocation +func (c *SSM) GetCommandInvocation(input *GetCommandInvocationInput) (*GetCommandInvocationOutput, error) { + req, out := c.GetCommandInvocationRequest(input) + err := req.Send() + return out, err +} + +const opGetDefaultPatchBaseline = "GetDefaultPatchBaseline" + +// GetDefaultPatchBaselineRequest generates a "aws/request.Request" representing the +// client's request for the GetDefaultPatchBaseline operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetDefaultPatchBaseline for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetDefaultPatchBaseline method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetDefaultPatchBaselineRequest method. +// req, resp := client.GetDefaultPatchBaselineRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetDefaultPatchBaseline +func (c *SSM) GetDefaultPatchBaselineRequest(input *GetDefaultPatchBaselineInput) (req *request.Request, output *GetDefaultPatchBaselineOutput) { + op := &request.Operation{ + Name: opGetDefaultPatchBaseline, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetDefaultPatchBaselineInput{} + } + + output = &GetDefaultPatchBaselineOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDefaultPatchBaseline API operation for Amazon Simple Systems Manager (SSM). +// +// Retrieves the default patch baseline. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation GetDefaultPatchBaseline for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetDefaultPatchBaseline +func (c *SSM) GetDefaultPatchBaseline(input *GetDefaultPatchBaselineInput) (*GetDefaultPatchBaselineOutput, error) { + req, out := c.GetDefaultPatchBaselineRequest(input) + err := req.Send() + return out, err +} + +const opGetDeployablePatchSnapshotForInstance = "GetDeployablePatchSnapshotForInstance" + +// GetDeployablePatchSnapshotForInstanceRequest generates a "aws/request.Request" representing the +// client's request for the GetDeployablePatchSnapshotForInstance operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetDeployablePatchSnapshotForInstance for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetDeployablePatchSnapshotForInstance method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetDeployablePatchSnapshotForInstanceRequest method. +// req, resp := client.GetDeployablePatchSnapshotForInstanceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetDeployablePatchSnapshotForInstance +func (c *SSM) GetDeployablePatchSnapshotForInstanceRequest(input *GetDeployablePatchSnapshotForInstanceInput) (req *request.Request, output *GetDeployablePatchSnapshotForInstanceOutput) { + op := &request.Operation{ + Name: opGetDeployablePatchSnapshotForInstance, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetDeployablePatchSnapshotForInstanceInput{} + } + + output = &GetDeployablePatchSnapshotForInstanceOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDeployablePatchSnapshotForInstance API operation for Amazon Simple Systems Manager (SSM). +// +// Retrieves the current snapshot for the patch baseline the instance uses. +// This API is primarily used by the AWS-ApplyPatchBaseline Systems Manager +// document. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation GetDeployablePatchSnapshotForInstance for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetDeployablePatchSnapshotForInstance +func (c *SSM) GetDeployablePatchSnapshotForInstance(input *GetDeployablePatchSnapshotForInstanceInput) (*GetDeployablePatchSnapshotForInstanceOutput, error) { + req, out := c.GetDeployablePatchSnapshotForInstanceRequest(input) + err := req.Send() + return out, err +} + +const opGetDocument = "GetDocument" + +// GetDocumentRequest generates a "aws/request.Request" representing the +// client's request for the GetDocument operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetDocument for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetDocument method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetDocumentRequest method. +// req, resp := client.GetDocumentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetDocument +func (c *SSM) GetDocumentRequest(input *GetDocumentInput) (req *request.Request, output *GetDocumentOutput) { + op := &request.Operation{ + Name: opGetDocument, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetDocumentInput{} + } + + output = &GetDocumentOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDocument API operation for Amazon Simple Systems Manager (SSM). +// +// Gets the contents of the specified SSM document. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation GetDocument for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidDocument "InvalidDocument" +// The specified document does not exist. +// +// * ErrCodeInvalidDocumentVersion "InvalidDocumentVersion" +// The document version is not valid or does not exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetDocument +func (c *SSM) GetDocument(input *GetDocumentInput) (*GetDocumentOutput, error) { + req, out := c.GetDocumentRequest(input) + err := req.Send() + return out, err +} + +const opGetInventory = "GetInventory" + +// GetInventoryRequest generates a "aws/request.Request" representing the +// client's request for the GetInventory operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetInventory for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetInventory method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetInventoryRequest method. +// req, resp := client.GetInventoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetInventory +func (c *SSM) GetInventoryRequest(input *GetInventoryInput) (req *request.Request, output *GetInventoryOutput) { + op := &request.Operation{ + Name: opGetInventory, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetInventoryInput{} + } + + output = &GetInventoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetInventory API operation for Amazon Simple Systems Manager (SSM). +// +// Query inventory information. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation GetInventory for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidFilter "InvalidFilter" +// The filter name is not valid. Verify the you entered the correct name and +// try again. +// +// * ErrCodeInvalidNextToken "InvalidNextToken" +// The specified token is not valid. +// +// * ErrCodeInvalidTypeNameException "InvalidTypeNameException" +// The parameter type name is not valid. +// +// * ErrCodeInvalidResultAttributeException "InvalidResultAttributeException" +// The specified inventory item result attribute is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetInventory +func (c *SSM) GetInventory(input *GetInventoryInput) (*GetInventoryOutput, error) { + req, out := c.GetInventoryRequest(input) + err := req.Send() + return out, err +} + +const opGetInventorySchema = "GetInventorySchema" + +// GetInventorySchemaRequest generates a "aws/request.Request" representing the +// client's request for the GetInventorySchema operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetInventorySchema for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetInventorySchema method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetInventorySchemaRequest method. +// req, resp := client.GetInventorySchemaRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetInventorySchema +func (c *SSM) GetInventorySchemaRequest(input *GetInventorySchemaInput) (req *request.Request, output *GetInventorySchemaOutput) { + op := &request.Operation{ + Name: opGetInventorySchema, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetInventorySchemaInput{} + } + + output = &GetInventorySchemaOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetInventorySchema API operation for Amazon Simple Systems Manager (SSM). +// +// Return a list of inventory type names for the account, or return a list of +// attribute names for a specific Inventory item type. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation GetInventorySchema for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidTypeNameException "InvalidTypeNameException" +// The parameter type name is not valid. +// +// * ErrCodeInvalidNextToken "InvalidNextToken" +// The specified token is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetInventorySchema +func (c *SSM) GetInventorySchema(input *GetInventorySchemaInput) (*GetInventorySchemaOutput, error) { + req, out := c.GetInventorySchemaRequest(input) + err := req.Send() + return out, err +} + +const opGetMaintenanceWindow = "GetMaintenanceWindow" + +// GetMaintenanceWindowRequest generates a "aws/request.Request" representing the +// client's request for the GetMaintenanceWindow operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetMaintenanceWindow for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetMaintenanceWindow method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetMaintenanceWindowRequest method. +// req, resp := client.GetMaintenanceWindowRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetMaintenanceWindow +func (c *SSM) GetMaintenanceWindowRequest(input *GetMaintenanceWindowInput) (req *request.Request, output *GetMaintenanceWindowOutput) { + op := &request.Operation{ + Name: opGetMaintenanceWindow, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetMaintenanceWindowInput{} + } + + output = &GetMaintenanceWindowOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetMaintenanceWindow API operation for Amazon Simple Systems Manager (SSM). +// +// Retrieves a Maintenance Window. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation GetMaintenanceWindow for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDoesNotExistException "DoesNotExistException" +// Error returned when the ID specified for a resource (e.g. a Maintenance Window) +// doesn’t exist. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetMaintenanceWindow +func (c *SSM) GetMaintenanceWindow(input *GetMaintenanceWindowInput) (*GetMaintenanceWindowOutput, error) { + req, out := c.GetMaintenanceWindowRequest(input) + err := req.Send() + return out, err +} + +const opGetMaintenanceWindowExecution = "GetMaintenanceWindowExecution" + +// GetMaintenanceWindowExecutionRequest generates a "aws/request.Request" representing the +// client's request for the GetMaintenanceWindowExecution operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetMaintenanceWindowExecution for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetMaintenanceWindowExecution method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetMaintenanceWindowExecutionRequest method. +// req, resp := client.GetMaintenanceWindowExecutionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetMaintenanceWindowExecution +func (c *SSM) GetMaintenanceWindowExecutionRequest(input *GetMaintenanceWindowExecutionInput) (req *request.Request, output *GetMaintenanceWindowExecutionOutput) { + op := &request.Operation{ + Name: opGetMaintenanceWindowExecution, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetMaintenanceWindowExecutionInput{} + } + + output = &GetMaintenanceWindowExecutionOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetMaintenanceWindowExecution API operation for Amazon Simple Systems Manager (SSM). +// +// Retrieves details about a specific task executed as part of a Maintenance +// Window execution. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation GetMaintenanceWindowExecution for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDoesNotExistException "DoesNotExistException" +// Error returned when the ID specified for a resource (e.g. a Maintenance Window) +// doesn’t exist. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetMaintenanceWindowExecution +func (c *SSM) GetMaintenanceWindowExecution(input *GetMaintenanceWindowExecutionInput) (*GetMaintenanceWindowExecutionOutput, error) { + req, out := c.GetMaintenanceWindowExecutionRequest(input) + err := req.Send() + return out, err +} + +const opGetMaintenanceWindowExecutionTask = "GetMaintenanceWindowExecutionTask" + +// GetMaintenanceWindowExecutionTaskRequest generates a "aws/request.Request" representing the +// client's request for the GetMaintenanceWindowExecutionTask operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetMaintenanceWindowExecutionTask for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetMaintenanceWindowExecutionTask method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetMaintenanceWindowExecutionTaskRequest method. +// req, resp := client.GetMaintenanceWindowExecutionTaskRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetMaintenanceWindowExecutionTask +func (c *SSM) GetMaintenanceWindowExecutionTaskRequest(input *GetMaintenanceWindowExecutionTaskInput) (req *request.Request, output *GetMaintenanceWindowExecutionTaskOutput) { + op := &request.Operation{ + Name: opGetMaintenanceWindowExecutionTask, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetMaintenanceWindowExecutionTaskInput{} + } + + output = &GetMaintenanceWindowExecutionTaskOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetMaintenanceWindowExecutionTask API operation for Amazon Simple Systems Manager (SSM). +// +// Retrieves the details about a specific task executed as part of a Maintenance +// Window execution. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation GetMaintenanceWindowExecutionTask for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDoesNotExistException "DoesNotExistException" +// Error returned when the ID specified for a resource (e.g. a Maintenance Window) +// doesn’t exist. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetMaintenanceWindowExecutionTask +func (c *SSM) GetMaintenanceWindowExecutionTask(input *GetMaintenanceWindowExecutionTaskInput) (*GetMaintenanceWindowExecutionTaskOutput, error) { + req, out := c.GetMaintenanceWindowExecutionTaskRequest(input) + err := req.Send() + return out, err +} + +const opGetParameterHistory = "GetParameterHistory" + +// GetParameterHistoryRequest generates a "aws/request.Request" representing the +// client's request for the GetParameterHistory operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetParameterHistory for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetParameterHistory method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetParameterHistoryRequest method. +// req, resp := client.GetParameterHistoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetParameterHistory +func (c *SSM) GetParameterHistoryRequest(input *GetParameterHistoryInput) (req *request.Request, output *GetParameterHistoryOutput) { + op := &request.Operation{ + Name: opGetParameterHistory, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetParameterHistoryInput{} + } + + output = &GetParameterHistoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetParameterHistory API operation for Amazon Simple Systems Manager (SSM). +// +// Query a list of all parameters used by the AWS account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation GetParameterHistory for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeParameterNotFound "ParameterNotFound" +// The parameter could not be found. Verify the name and try again. +// +// * ErrCodeInvalidNextToken "InvalidNextToken" +// The specified token is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetParameterHistory +func (c *SSM) GetParameterHistory(input *GetParameterHistoryInput) (*GetParameterHistoryOutput, error) { + req, out := c.GetParameterHistoryRequest(input) + err := req.Send() + return out, err +} + +const opGetParameters = "GetParameters" + +// GetParametersRequest generates a "aws/request.Request" representing the +// client's request for the GetParameters operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetParameters for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetParameters method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetParametersRequest method. +// req, resp := client.GetParametersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetParameters +func (c *SSM) GetParametersRequest(input *GetParametersInput) (req *request.Request, output *GetParametersOutput) { + op := &request.Operation{ + Name: opGetParameters, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetParametersInput{} + } + + output = &GetParametersOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetParameters API operation for Amazon Simple Systems Manager (SSM). +// +// Get a list of parameters used by the AWS account.> +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation GetParameters for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetParameters +func (c *SSM) GetParameters(input *GetParametersInput) (*GetParametersOutput, error) { + req, out := c.GetParametersRequest(input) + err := req.Send() + return out, err +} + +const opGetPatchBaseline = "GetPatchBaseline" + +// GetPatchBaselineRequest generates a "aws/request.Request" representing the +// client's request for the GetPatchBaseline operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetPatchBaseline for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetPatchBaseline method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetPatchBaselineRequest method. +// req, resp := client.GetPatchBaselineRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetPatchBaseline +func (c *SSM) GetPatchBaselineRequest(input *GetPatchBaselineInput) (req *request.Request, output *GetPatchBaselineOutput) { + op := &request.Operation{ + Name: opGetPatchBaseline, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetPatchBaselineInput{} + } + + output = &GetPatchBaselineOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetPatchBaseline API operation for Amazon Simple Systems Manager (SSM). +// +// Retrieves information about a patch baseline. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation GetPatchBaseline for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDoesNotExistException "DoesNotExistException" +// Error returned when the ID specified for a resource (e.g. a Maintenance Window) +// doesn’t exist. +// +// * ErrCodeInvalidResourceId "InvalidResourceId" +// The resource ID is not valid. Verify that you entered the correct ID and +// try again. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetPatchBaseline +func (c *SSM) GetPatchBaseline(input *GetPatchBaselineInput) (*GetPatchBaselineOutput, error) { + req, out := c.GetPatchBaselineRequest(input) + err := req.Send() + return out, err +} + +const opGetPatchBaselineForPatchGroup = "GetPatchBaselineForPatchGroup" + +// GetPatchBaselineForPatchGroupRequest generates a "aws/request.Request" representing the +// client's request for the GetPatchBaselineForPatchGroup operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetPatchBaselineForPatchGroup for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetPatchBaselineForPatchGroup method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetPatchBaselineForPatchGroupRequest method. +// req, resp := client.GetPatchBaselineForPatchGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetPatchBaselineForPatchGroup +func (c *SSM) GetPatchBaselineForPatchGroupRequest(input *GetPatchBaselineForPatchGroupInput) (req *request.Request, output *GetPatchBaselineForPatchGroupOutput) { + op := &request.Operation{ + Name: opGetPatchBaselineForPatchGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetPatchBaselineForPatchGroupInput{} + } + + output = &GetPatchBaselineForPatchGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetPatchBaselineForPatchGroup API operation for Amazon Simple Systems Manager (SSM). +// +// Retrieves the patch baseline that should be used for the specified patch +// group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation GetPatchBaselineForPatchGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetPatchBaselineForPatchGroup +func (c *SSM) GetPatchBaselineForPatchGroup(input *GetPatchBaselineForPatchGroupInput) (*GetPatchBaselineForPatchGroupOutput, error) { + req, out := c.GetPatchBaselineForPatchGroupRequest(input) + err := req.Send() + return out, err +} + +const opListAssociations = "ListAssociations" + +// ListAssociationsRequest generates a "aws/request.Request" representing the +// client's request for the ListAssociations operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListAssociations for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListAssociations method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListAssociationsRequest method. +// req, resp := client.ListAssociationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListAssociations +func (c *SSM) ListAssociationsRequest(input *ListAssociationsInput) (req *request.Request, output *ListAssociationsOutput) { + op := &request.Operation{ + Name: opListAssociations, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListAssociationsInput{} + } + + output = &ListAssociationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAssociations API operation for Amazon Simple Systems Manager (SSM). +// +// Lists the associations for the specified SSM document or instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation ListAssociations for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidNextToken "InvalidNextToken" +// The specified token is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListAssociations +func (c *SSM) ListAssociations(input *ListAssociationsInput) (*ListAssociationsOutput, error) { + req, out := c.ListAssociationsRequest(input) + err := req.Send() + return out, err +} + +// ListAssociationsPages iterates over the pages of a ListAssociations operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListAssociations method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListAssociations operation. +// pageNum := 0 +// err := client.ListAssociationsPages(params, +// func(page *ListAssociationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SSM) ListAssociationsPages(input *ListAssociationsInput, fn func(p *ListAssociationsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListAssociationsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListAssociationsOutput), lastPage) + }) +} + +const opListCommandInvocations = "ListCommandInvocations" + +// ListCommandInvocationsRequest generates a "aws/request.Request" representing the +// client's request for the ListCommandInvocations operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListCommandInvocations for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListCommandInvocations method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListCommandInvocationsRequest method. +// req, resp := client.ListCommandInvocationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListCommandInvocations +func (c *SSM) ListCommandInvocationsRequest(input *ListCommandInvocationsInput) (req *request.Request, output *ListCommandInvocationsOutput) { + op := &request.Operation{ + Name: opListCommandInvocations, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListCommandInvocationsInput{} + } + + output = &ListCommandInvocationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListCommandInvocations API operation for Amazon Simple Systems Manager (SSM). +// +// An invocation is copy of a command sent to a specific instance. A command +// can apply to one or more instances. A command invocation applies to one instance. +// For example, if a user executes SendCommand against three instances, then +// a command invocation is created for each requested instance ID. ListCommandInvocations +// provide status about command execution. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation ListCommandInvocations for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidCommandId "InvalidCommandId" +// +// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// The following problems can cause this exception: +// +// You do not have permission to access the instance. +// +// The SSM agent is not running. On managed instances and Linux instances, verify +// that the SSM agent is running. On EC2 Windows instances, verify that the +// EC2Config service is running. +// +// The SSM agent or EC2Config service is not registered to the SSM endpoint. +// Try reinstalling the SSM agent or EC2Config service. +// +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * ErrCodeInvalidFilterKey "InvalidFilterKey" +// The specified key is not valid. +// +// * ErrCodeInvalidNextToken "InvalidNextToken" +// The specified token is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListCommandInvocations +func (c *SSM) ListCommandInvocations(input *ListCommandInvocationsInput) (*ListCommandInvocationsOutput, error) { + req, out := c.ListCommandInvocationsRequest(input) + err := req.Send() + return out, err +} + +// ListCommandInvocationsPages iterates over the pages of a ListCommandInvocations operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListCommandInvocations method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListCommandInvocations operation. +// pageNum := 0 +// err := client.ListCommandInvocationsPages(params, +// func(page *ListCommandInvocationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SSM) ListCommandInvocationsPages(input *ListCommandInvocationsInput, fn func(p *ListCommandInvocationsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListCommandInvocationsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListCommandInvocationsOutput), lastPage) + }) +} + +const opListCommands = "ListCommands" + +// ListCommandsRequest generates a "aws/request.Request" representing the +// client's request for the ListCommands operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListCommands for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListCommands method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListCommandsRequest method. +// req, resp := client.ListCommandsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListCommands +func (c *SSM) ListCommandsRequest(input *ListCommandsInput) (req *request.Request, output *ListCommandsOutput) { + op := &request.Operation{ + Name: opListCommands, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListCommandsInput{} + } + + output = &ListCommandsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListCommands API operation for Amazon Simple Systems Manager (SSM). +// +// Lists the commands requested by users of the AWS account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation ListCommands for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidCommandId "InvalidCommandId" +// +// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// The following problems can cause this exception: +// +// You do not have permission to access the instance. +// +// The SSM agent is not running. On managed instances and Linux instances, verify +// that the SSM agent is running. On EC2 Windows instances, verify that the +// EC2Config service is running. +// +// The SSM agent or EC2Config service is not registered to the SSM endpoint. +// Try reinstalling the SSM agent or EC2Config service. +// +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * ErrCodeInvalidFilterKey "InvalidFilterKey" +// The specified key is not valid. +// +// * ErrCodeInvalidNextToken "InvalidNextToken" +// The specified token is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListCommands +func (c *SSM) ListCommands(input *ListCommandsInput) (*ListCommandsOutput, error) { + req, out := c.ListCommandsRequest(input) + err := req.Send() + return out, err +} + +// ListCommandsPages iterates over the pages of a ListCommands operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListCommands method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListCommands operation. +// pageNum := 0 +// err := client.ListCommandsPages(params, +// func(page *ListCommandsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SSM) ListCommandsPages(input *ListCommandsInput, fn func(p *ListCommandsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListCommandsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListCommandsOutput), lastPage) + }) +} + +const opListDocumentVersions = "ListDocumentVersions" + +// ListDocumentVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListDocumentVersions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListDocumentVersions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListDocumentVersions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListDocumentVersionsRequest method. +// req, resp := client.ListDocumentVersionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListDocumentVersions +func (c *SSM) ListDocumentVersionsRequest(input *ListDocumentVersionsInput) (req *request.Request, output *ListDocumentVersionsOutput) { + op := &request.Operation{ + Name: opListDocumentVersions, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListDocumentVersionsInput{} + } + + output = &ListDocumentVersionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListDocumentVersions API operation for Amazon Simple Systems Manager (SSM). +// +// List all versions for a document. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation ListDocumentVersions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidNextToken "InvalidNextToken" +// The specified token is not valid. +// +// * ErrCodeInvalidDocument "InvalidDocument" +// The specified document does not exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListDocumentVersions +func (c *SSM) ListDocumentVersions(input *ListDocumentVersionsInput) (*ListDocumentVersionsOutput, error) { + req, out := c.ListDocumentVersionsRequest(input) + err := req.Send() + return out, err +} + +const opListDocuments = "ListDocuments" + +// ListDocumentsRequest generates a "aws/request.Request" representing the +// client's request for the ListDocuments operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListDocuments for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListDocuments method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListDocumentsRequest method. +// req, resp := client.ListDocumentsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListDocuments +func (c *SSM) ListDocumentsRequest(input *ListDocumentsInput) (req *request.Request, output *ListDocumentsOutput) { + op := &request.Operation{ + Name: opListDocuments, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListDocumentsInput{} + } + + output = &ListDocumentsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListDocuments API operation for Amazon Simple Systems Manager (SSM). +// +// Describes one or more of your SSM documents. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation ListDocuments for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidNextToken "InvalidNextToken" +// The specified token is not valid. +// +// * ErrCodeInvalidFilterKey "InvalidFilterKey" +// The specified key is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListDocuments +func (c *SSM) ListDocuments(input *ListDocumentsInput) (*ListDocumentsOutput, error) { + req, out := c.ListDocumentsRequest(input) + err := req.Send() + return out, err +} + +// ListDocumentsPages iterates over the pages of a ListDocuments operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListDocuments method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListDocuments operation. +// pageNum := 0 +// err := client.ListDocumentsPages(params, +// func(page *ListDocumentsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SSM) ListDocumentsPages(input *ListDocumentsInput, fn func(p *ListDocumentsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.ListDocumentsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*ListDocumentsOutput), lastPage) + }) +} + +const opListInventoryEntries = "ListInventoryEntries" + +// ListInventoryEntriesRequest generates a "aws/request.Request" representing the +// client's request for the ListInventoryEntries operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListInventoryEntries for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListInventoryEntries method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListInventoryEntriesRequest method. +// req, resp := client.ListInventoryEntriesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListInventoryEntries +func (c *SSM) ListInventoryEntriesRequest(input *ListInventoryEntriesInput) (req *request.Request, output *ListInventoryEntriesOutput) { + op := &request.Operation{ + Name: opListInventoryEntries, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListInventoryEntriesInput{} + } + + output = &ListInventoryEntriesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListInventoryEntries API operation for Amazon Simple Systems Manager (SSM). +// +// A list of inventory items returned by the request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation ListInventoryEntries for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// The following problems can cause this exception: +// +// You do not have permission to access the instance. +// +// The SSM agent is not running. On managed instances and Linux instances, verify +// that the SSM agent is running. On EC2 Windows instances, verify that the +// EC2Config service is running. +// +// The SSM agent or EC2Config service is not registered to the SSM endpoint. +// Try reinstalling the SSM agent or EC2Config service. +// +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * ErrCodeInvalidTypeNameException "InvalidTypeNameException" +// The parameter type name is not valid. +// +// * ErrCodeInvalidFilter "InvalidFilter" +// The filter name is not valid. Verify the you entered the correct name and +// try again. +// +// * ErrCodeInvalidNextToken "InvalidNextToken" +// The specified token is not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListInventoryEntries +func (c *SSM) ListInventoryEntries(input *ListInventoryEntriesInput) (*ListInventoryEntriesOutput, error) { + req, out := c.ListInventoryEntriesRequest(input) + err := req.Send() + return out, err +} + +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListTagsForResource for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListTagsForResource method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListTagsForResourceRequest method. +// req, resp := client.ListTagsForResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListTagsForResource +func (c *SSM) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { + op := &request.Operation{ + Name: opListTagsForResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListTagsForResourceInput{} + } + + output = &ListTagsForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagsForResource API operation for Amazon Simple Systems Manager (SSM). +// +// Returns a list of the tags assigned to the specified resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidResourceType "InvalidResourceType" +// The resource type is not valid. If you are attempting to tag an instance, +// the instance must be a registered, managed instance. +// +// * ErrCodeInvalidResourceId "InvalidResourceId" +// The resource ID is not valid. Verify that you entered the correct ID and +// try again. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListTagsForResource +func (c *SSM) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + err := req.Send() + return out, err +} + +const opModifyDocumentPermission = "ModifyDocumentPermission" + +// ModifyDocumentPermissionRequest generates a "aws/request.Request" representing the +// client's request for the ModifyDocumentPermission operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ModifyDocumentPermission for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ModifyDocumentPermission method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ModifyDocumentPermissionRequest method. +// req, resp := client.ModifyDocumentPermissionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ModifyDocumentPermission +func (c *SSM) ModifyDocumentPermissionRequest(input *ModifyDocumentPermissionInput) (req *request.Request, output *ModifyDocumentPermissionOutput) { + op := &request.Operation{ + Name: opModifyDocumentPermission, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyDocumentPermissionInput{} + } + + output = &ModifyDocumentPermissionOutput{} + req = c.newRequest(op, input, output) + return +} + +// ModifyDocumentPermission API operation for Amazon Simple Systems Manager (SSM). +// +// Share a document publicly or privately. If you share a document privately, +// you must specify the AWS user account IDs for those people who can use the +// document. If you share a document publicly, you must specify All as the account +// ID. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation ModifyDocumentPermission for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidDocument "InvalidDocument" +// The specified document does not exist. +// +// * ErrCodeInvalidPermissionType "InvalidPermissionType" +// The permission type is not supported. Share is the only supported permission +// type. +// +// * ErrCodeDocumentPermissionLimit "DocumentPermissionLimit" +// The document cannot be shared with more AWS user accounts. You can share +// a document with a maximum of 20 accounts. You can publicly share up to five +// documents. If you need to increase this limit, contact AWS Support. +// +// * ErrCodeDocumentLimitExceeded "DocumentLimitExceeded" +// You can have at most 200 active SSM documents. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ModifyDocumentPermission +func (c *SSM) ModifyDocumentPermission(input *ModifyDocumentPermissionInput) (*ModifyDocumentPermissionOutput, error) { + req, out := c.ModifyDocumentPermissionRequest(input) + err := req.Send() + return out, err +} + +const opPutInventory = "PutInventory" + +// PutInventoryRequest generates a "aws/request.Request" representing the +// client's request for the PutInventory operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See PutInventory for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the PutInventory method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the PutInventoryRequest method. +// req, resp := client.PutInventoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/PutInventory +func (c *SSM) PutInventoryRequest(input *PutInventoryInput) (req *request.Request, output *PutInventoryOutput) { + op := &request.Operation{ + Name: opPutInventory, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PutInventoryInput{} + } + + output = &PutInventoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutInventory API operation for Amazon Simple Systems Manager (SSM). +// +// Bulk update custom inventory items on one more instance. The request adds +// an inventory item, if it doesn't already exist, or updates an inventory item, +// if it does exist. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation PutInventory for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// The following problems can cause this exception: +// +// You do not have permission to access the instance. +// +// The SSM agent is not running. On managed instances and Linux instances, verify +// that the SSM agent is running. On EC2 Windows instances, verify that the +// EC2Config service is running. +// +// The SSM agent or EC2Config service is not registered to the SSM endpoint. +// Try reinstalling the SSM agent or EC2Config service. +// +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * ErrCodeInvalidTypeNameException "InvalidTypeNameException" +// The parameter type name is not valid. +// +// * ErrCodeInvalidItemContentException "InvalidItemContentException" +// One or more content items is not valid. +// +// * ErrCodeTotalSizeLimitExceededException "TotalSizeLimitExceededException" +// The size of inventory data has exceeded the total size limit for the resource. +// +// * ErrCodeItemSizeLimitExceededException "ItemSizeLimitExceededException" +// The inventory item size has exceeded the size limit. +// +// * ErrCodeItemContentMismatchException "ItemContentMismatchException" +// The inventory item has invalid content. +// +// * ErrCodeCustomSchemaCountLimitExceededException "CustomSchemaCountLimitExceededException" +// You have exceeded the limit for custom schemas. Delete one or more custom +// schemas and try again. +// +// * ErrCodeUnsupportedInventorySchemaVersionException "UnsupportedInventorySchemaVersionException" +// Inventory item type schema version has to match supported versions in the +// service. Check output of GetInventorySchema to see the available schema version +// for each type. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/PutInventory +func (c *SSM) PutInventory(input *PutInventoryInput) (*PutInventoryOutput, error) { + req, out := c.PutInventoryRequest(input) + err := req.Send() + return out, err +} + +const opPutParameter = "PutParameter" + +// PutParameterRequest generates a "aws/request.Request" representing the +// client's request for the PutParameter operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See PutParameter for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the PutParameter method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the PutParameterRequest method. +// req, resp := client.PutParameterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/PutParameter +func (c *SSM) PutParameterRequest(input *PutParameterInput) (req *request.Request, output *PutParameterOutput) { + op := &request.Operation{ + Name: opPutParameter, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PutParameterInput{} + } + + output = &PutParameterOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutParameter API operation for Amazon Simple Systems Manager (SSM). +// +// Add one or more paramaters to the system. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation PutParameter for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidKeyId "InvalidKeyId" +// The query key ID is not valid. +// +// * ErrCodeParameterLimitExceeded "ParameterLimitExceeded" +// You have exceeded the number of parameters for this AWS account. Delete one +// or more parameters and try again. +// +// * ErrCodeTooManyUpdates "TooManyUpdates" +// There are concurrent updates for a resource that supports one update at a +// time. +// +// * ErrCodeParameterAlreadyExists "ParameterAlreadyExists" +// The parameter already exists. You can't create duplicate parameters. +// +// * ErrCodeUnsupportedParameterType "UnsupportedParameterType" +// The parameter type is not supported. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/PutParameter +func (c *SSM) PutParameter(input *PutParameterInput) (*PutParameterOutput, error) { + req, out := c.PutParameterRequest(input) + err := req.Send() + return out, err +} + +const opRegisterDefaultPatchBaseline = "RegisterDefaultPatchBaseline" + +// RegisterDefaultPatchBaselineRequest generates a "aws/request.Request" representing the +// client's request for the RegisterDefaultPatchBaseline operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See RegisterDefaultPatchBaseline for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the RegisterDefaultPatchBaseline method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the RegisterDefaultPatchBaselineRequest method. +// req, resp := client.RegisterDefaultPatchBaselineRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RegisterDefaultPatchBaseline +func (c *SSM) RegisterDefaultPatchBaselineRequest(input *RegisterDefaultPatchBaselineInput) (req *request.Request, output *RegisterDefaultPatchBaselineOutput) { + op := &request.Operation{ + Name: opRegisterDefaultPatchBaseline, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RegisterDefaultPatchBaselineInput{} + } + + output = &RegisterDefaultPatchBaselineOutput{} + req = c.newRequest(op, input, output) + return +} + +// RegisterDefaultPatchBaseline API operation for Amazon Simple Systems Manager (SSM). +// +// Defines the default patch baseline. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation RegisterDefaultPatchBaseline for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidResourceId "InvalidResourceId" +// The resource ID is not valid. Verify that you entered the correct ID and +// try again. +// +// * ErrCodeDoesNotExistException "DoesNotExistException" +// Error returned when the ID specified for a resource (e.g. a Maintenance Window) +// doesn’t exist. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RegisterDefaultPatchBaseline +func (c *SSM) RegisterDefaultPatchBaseline(input *RegisterDefaultPatchBaselineInput) (*RegisterDefaultPatchBaselineOutput, error) { + req, out := c.RegisterDefaultPatchBaselineRequest(input) + err := req.Send() + return out, err +} + +const opRegisterPatchBaselineForPatchGroup = "RegisterPatchBaselineForPatchGroup" + +// RegisterPatchBaselineForPatchGroupRequest generates a "aws/request.Request" representing the +// client's request for the RegisterPatchBaselineForPatchGroup operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See RegisterPatchBaselineForPatchGroup for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the RegisterPatchBaselineForPatchGroup method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the RegisterPatchBaselineForPatchGroupRequest method. +// req, resp := client.RegisterPatchBaselineForPatchGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RegisterPatchBaselineForPatchGroup +func (c *SSM) RegisterPatchBaselineForPatchGroupRequest(input *RegisterPatchBaselineForPatchGroupInput) (req *request.Request, output *RegisterPatchBaselineForPatchGroupOutput) { + op := &request.Operation{ + Name: opRegisterPatchBaselineForPatchGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RegisterPatchBaselineForPatchGroupInput{} + } + + output = &RegisterPatchBaselineForPatchGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// RegisterPatchBaselineForPatchGroup API operation for Amazon Simple Systems Manager (SSM). +// +// Registers a patch baseline for a patch group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation RegisterPatchBaselineForPatchGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Error returned if an attempt is made to register a patch group with a patch +// baseline that is already registered with a different patch baseline. +// +// * ErrCodeDoesNotExistException "DoesNotExistException" +// Error returned when the ID specified for a resource (e.g. a Maintenance Window) +// doesn’t exist. +// +// * ErrCodeInvalidResourceId "InvalidResourceId" +// The resource ID is not valid. Verify that you entered the correct ID and +// try again. +// +// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// Error returned when the caller has exceeded the default resource limits (e.g. +// too many Maintenance Windows have been created). +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RegisterPatchBaselineForPatchGroup +func (c *SSM) RegisterPatchBaselineForPatchGroup(input *RegisterPatchBaselineForPatchGroupInput) (*RegisterPatchBaselineForPatchGroupOutput, error) { + req, out := c.RegisterPatchBaselineForPatchGroupRequest(input) + err := req.Send() + return out, err +} + +const opRegisterTargetWithMaintenanceWindow = "RegisterTargetWithMaintenanceWindow" + +// RegisterTargetWithMaintenanceWindowRequest generates a "aws/request.Request" representing the +// client's request for the RegisterTargetWithMaintenanceWindow operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See RegisterTargetWithMaintenanceWindow for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the RegisterTargetWithMaintenanceWindow method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the RegisterTargetWithMaintenanceWindowRequest method. +// req, resp := client.RegisterTargetWithMaintenanceWindowRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RegisterTargetWithMaintenanceWindow +func (c *SSM) RegisterTargetWithMaintenanceWindowRequest(input *RegisterTargetWithMaintenanceWindowInput) (req *request.Request, output *RegisterTargetWithMaintenanceWindowOutput) { + op := &request.Operation{ + Name: opRegisterTargetWithMaintenanceWindow, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RegisterTargetWithMaintenanceWindowInput{} + } + + output = &RegisterTargetWithMaintenanceWindowOutput{} + req = c.newRequest(op, input, output) + return +} + +// RegisterTargetWithMaintenanceWindow API operation for Amazon Simple Systems Manager (SSM). +// +// Registers a target with a Maintenance Window. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation RegisterTargetWithMaintenanceWindow for usage and error information. +// +// Returned Error Codes: +// * ErrCodeIdempotentParameterMismatch "IdempotentParameterMismatch" +// Error returned when an idempotent operation is retried and the parameters +// don’t match the original call to the API with the same idempotency token. +// +// * ErrCodeDoesNotExistException "DoesNotExistException" +// Error returned when the ID specified for a resource (e.g. a Maintenance Window) +// doesn’t exist. +// +// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// Error returned when the caller has exceeded the default resource limits (e.g. +// too many Maintenance Windows have been created). +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RegisterTargetWithMaintenanceWindow +func (c *SSM) RegisterTargetWithMaintenanceWindow(input *RegisterTargetWithMaintenanceWindowInput) (*RegisterTargetWithMaintenanceWindowOutput, error) { + req, out := c.RegisterTargetWithMaintenanceWindowRequest(input) + err := req.Send() + return out, err +} + +const opRegisterTaskWithMaintenanceWindow = "RegisterTaskWithMaintenanceWindow" + +// RegisterTaskWithMaintenanceWindowRequest generates a "aws/request.Request" representing the +// client's request for the RegisterTaskWithMaintenanceWindow operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See RegisterTaskWithMaintenanceWindow for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the RegisterTaskWithMaintenanceWindow method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the RegisterTaskWithMaintenanceWindowRequest method. +// req, resp := client.RegisterTaskWithMaintenanceWindowRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RegisterTaskWithMaintenanceWindow +func (c *SSM) RegisterTaskWithMaintenanceWindowRequest(input *RegisterTaskWithMaintenanceWindowInput) (req *request.Request, output *RegisterTaskWithMaintenanceWindowOutput) { + op := &request.Operation{ + Name: opRegisterTaskWithMaintenanceWindow, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RegisterTaskWithMaintenanceWindowInput{} + } + + output = &RegisterTaskWithMaintenanceWindowOutput{} + req = c.newRequest(op, input, output) + return +} + +// RegisterTaskWithMaintenanceWindow API operation for Amazon Simple Systems Manager (SSM). +// +// Adds a new task to a Maintenance Window. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation RegisterTaskWithMaintenanceWindow for usage and error information. +// +// Returned Error Codes: +// * ErrCodeIdempotentParameterMismatch "IdempotentParameterMismatch" +// Error returned when an idempotent operation is retried and the parameters +// don’t match the original call to the API with the same idempotency token. +// +// * ErrCodeDoesNotExistException "DoesNotExistException" +// Error returned when the ID specified for a resource (e.g. a Maintenance Window) +// doesn’t exist. +// +// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// Error returned when the caller has exceeded the default resource limits (e.g. +// too many Maintenance Windows have been created). +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RegisterTaskWithMaintenanceWindow +func (c *SSM) RegisterTaskWithMaintenanceWindow(input *RegisterTaskWithMaintenanceWindowInput) (*RegisterTaskWithMaintenanceWindowOutput, error) { + req, out := c.RegisterTaskWithMaintenanceWindowRequest(input) + err := req.Send() + return out, err +} + +const opRemoveTagsFromResource = "RemoveTagsFromResource" + +// RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the +// client's request for the RemoveTagsFromResource operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See RemoveTagsFromResource for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the RemoveTagsFromResource method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the RemoveTagsFromResourceRequest method. +// req, resp := client.RemoveTagsFromResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RemoveTagsFromResource +func (c *SSM) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) { + op := &request.Operation{ + Name: opRemoveTagsFromResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RemoveTagsFromResourceInput{} + } + + output = &RemoveTagsFromResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// RemoveTagsFromResource API operation for Amazon Simple Systems Manager (SSM). +// +// Removes all tags from the specified resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation RemoveTagsFromResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidResourceType "InvalidResourceType" +// The resource type is not valid. If you are attempting to tag an instance, +// the instance must be a registered, managed instance. +// +// * ErrCodeInvalidResourceId "InvalidResourceId" +// The resource ID is not valid. Verify that you entered the correct ID and +// try again. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RemoveTagsFromResource +func (c *SSM) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { + req, out := c.RemoveTagsFromResourceRequest(input) + err := req.Send() + return out, err +} + +const opSendCommand = "SendCommand" + +// SendCommandRequest generates a "aws/request.Request" representing the +// client's request for the SendCommand operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See SendCommand for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the SendCommand method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the SendCommandRequest method. +// req, resp := client.SendCommandRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/SendCommand +func (c *SSM) SendCommandRequest(input *SendCommandInput) (req *request.Request, output *SendCommandOutput) { + op := &request.Operation{ + Name: opSendCommand, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &SendCommandInput{} + } + + output = &SendCommandOutput{} + req = c.newRequest(op, input, output) + return +} + +// SendCommand API operation for Amazon Simple Systems Manager (SSM). +// +// Executes commands on one or more remote instances. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation SendCommand for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDuplicateInstanceId "DuplicateInstanceId" +// You cannot specify an instance ID in more than one association. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// The following problems can cause this exception: +// +// You do not have permission to access the instance. +// +// The SSM agent is not running. On managed instances and Linux instances, verify +// that the SSM agent is running. On EC2 Windows instances, verify that the +// EC2Config service is running. +// +// The SSM agent or EC2Config service is not registered to the SSM endpoint. +// Try reinstalling the SSM agent or EC2Config service. +// +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * ErrCodeInvalidDocument "InvalidDocument" +// The specified document does not exist. +// +// * ErrCodeInvalidOutputFolder "InvalidOutputFolder" +// The S3 bucket does not exist. +// +// * ErrCodeInvalidParameters "InvalidParameters" +// You must specify values for all required parameters in the SSM document. +// You can only supply values to parameters defined in the SSM document. +// +// * ErrCodeUnsupportedPlatformType "UnsupportedPlatformType" +// The document does not support the platform type of the given instance ID(s). +// For example, you sent an SSM document for a Windows instance to a Linux instance. +// +// * ErrCodeMaxDocumentSizeExceeded "MaxDocumentSizeExceeded" +// The size limit of an SSM document is 64 KB. +// +// * ErrCodeInvalidRole "InvalidRole" +// The role name can't contain invalid characters. Also verify that you specified +// an IAM role for notifications that includes the required trust policy. For +// information about configuring the IAM role for Run Command notifications, +// see Getting Amazon SNS Notifications When a Command Changes Status (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/rc-sns.html) +// in the Amazon Elastic Compute Cloud User Guide . +// +// * ErrCodeInvalidNotificationConfig "InvalidNotificationConfig" +// One or more configuration items is not valid. Verify that a valid Amazon +// Resource Name (ARN) was provided for an Amazon SNS topic. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/SendCommand +func (c *SSM) SendCommand(input *SendCommandInput) (*SendCommandOutput, error) { + req, out := c.SendCommandRequest(input) + err := req.Send() + return out, err +} + +const opStartAutomationExecution = "StartAutomationExecution" + +// StartAutomationExecutionRequest generates a "aws/request.Request" representing the +// client's request for the StartAutomationExecution operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See StartAutomationExecution for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the StartAutomationExecution method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the StartAutomationExecutionRequest method. +// req, resp := client.StartAutomationExecutionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/StartAutomationExecution +func (c *SSM) StartAutomationExecutionRequest(input *StartAutomationExecutionInput) (req *request.Request, output *StartAutomationExecutionOutput) { + op := &request.Operation{ + Name: opStartAutomationExecution, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartAutomationExecutionInput{} + } + + output = &StartAutomationExecutionOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartAutomationExecution API operation for Amazon Simple Systems Manager (SSM). +// +// Initiates execution of an Automation document. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation StartAutomationExecution for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAutomationDefinitionNotFoundException "AutomationDefinitionNotFoundException" +// An Automation document with the specified name could not be found. +// +// * ErrCodeInvalidAutomationExecutionParametersException "InvalidAutomationExecutionParametersException" +// The supplied parameters for invoking the specified Automation document are +// incorrect. For example, they may not match the set of parameters permitted +// for the specified Automation document. +// +// * ErrCodeAutomationExecutionLimitExceededException "AutomationExecutionLimitExceededException" +// The number of simultaneously running Automation executions exceeded the allowable +// limit. +// +// * ErrCodeAutomationDefinitionVersionNotFoundException "AutomationDefinitionVersionNotFoundException" +// An Automation document with the specified name and version could not be found. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/StartAutomationExecution +func (c *SSM) StartAutomationExecution(input *StartAutomationExecutionInput) (*StartAutomationExecutionOutput, error) { + req, out := c.StartAutomationExecutionRequest(input) + err := req.Send() + return out, err +} + +const opStopAutomationExecution = "StopAutomationExecution" + +// StopAutomationExecutionRequest generates a "aws/request.Request" representing the +// client's request for the StopAutomationExecution operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See StopAutomationExecution for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the StopAutomationExecution method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the StopAutomationExecutionRequest method. +// req, resp := client.StopAutomationExecutionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/StopAutomationExecution +func (c *SSM) StopAutomationExecutionRequest(input *StopAutomationExecutionInput) (req *request.Request, output *StopAutomationExecutionOutput) { + op := &request.Operation{ + Name: opStopAutomationExecution, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopAutomationExecutionInput{} + } + + output = &StopAutomationExecutionOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopAutomationExecution API operation for Amazon Simple Systems Manager (SSM). +// +// Stop an Automation that is currently executing. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation StopAutomationExecution for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAutomationExecutionNotFoundException "AutomationExecutionNotFoundException" +// There is no automation execution information for the requested automation +// execution ID. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/StopAutomationExecution +func (c *SSM) StopAutomationExecution(input *StopAutomationExecutionInput) (*StopAutomationExecutionOutput, error) { + req, out := c.StopAutomationExecutionRequest(input) + err := req.Send() + return out, err +} + +const opUpdateAssociation = "UpdateAssociation" + +// UpdateAssociationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAssociation operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateAssociation for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateAssociation method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateAssociationRequest method. +// req, resp := client.UpdateAssociationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateAssociation +func (c *SSM) UpdateAssociationRequest(input *UpdateAssociationInput) (req *request.Request, output *UpdateAssociationOutput) { + op := &request.Operation{ + Name: opUpdateAssociation, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateAssociationInput{} + } + + output = &UpdateAssociationOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateAssociation API operation for Amazon Simple Systems Manager (SSM). +// +// Updates an association. You can only update the document version, schedule, +// parameters, and Amazon S3 output of an association. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation UpdateAssociation for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidSchedule "InvalidSchedule" +// The schedule is invalid. Verify your cron or rate expression and try again. +// +// * ErrCodeInvalidParameters "InvalidParameters" +// You must specify values for all required parameters in the SSM document. +// You can only supply values to parameters defined in the SSM document. +// +// * ErrCodeInvalidOutputLocation "InvalidOutputLocation" +// The output location is not valid or does not exist. +// +// * ErrCodeInvalidDocumentVersion "InvalidDocumentVersion" +// The document version is not valid or does not exist. +// +// * ErrCodeAssociationDoesNotExist "AssociationDoesNotExist" +// The specified association does not exist. +// +// * ErrCodeInvalidUpdate "InvalidUpdate" +// The update is not valid. +// +// * ErrCodeTooManyUpdates "TooManyUpdates" +// There are concurrent updates for a resource that supports one update at a +// time. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateAssociation +func (c *SSM) UpdateAssociation(input *UpdateAssociationInput) (*UpdateAssociationOutput, error) { + req, out := c.UpdateAssociationRequest(input) + err := req.Send() + return out, err +} + +const opUpdateAssociationStatus = "UpdateAssociationStatus" + +// UpdateAssociationStatusRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAssociationStatus operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateAssociationStatus for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateAssociationStatus method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateAssociationStatusRequest method. +// req, resp := client.UpdateAssociationStatusRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateAssociationStatus +func (c *SSM) UpdateAssociationStatusRequest(input *UpdateAssociationStatusInput) (req *request.Request, output *UpdateAssociationStatusOutput) { + op := &request.Operation{ + Name: opUpdateAssociationStatus, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateAssociationStatusInput{} + } + + output = &UpdateAssociationStatusOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateAssociationStatus API operation for Amazon Simple Systems Manager (SSM). +// +// Updates the status of the SSM document associated with the specified instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation UpdateAssociationStatus for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// The following problems can cause this exception: +// +// You do not have permission to access the instance. +// +// The SSM agent is not running. On managed instances and Linux instances, verify +// that the SSM agent is running. On EC2 Windows instances, verify that the +// EC2Config service is running. +// +// The SSM agent or EC2Config service is not registered to the SSM endpoint. +// Try reinstalling the SSM agent or EC2Config service. +// +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * ErrCodeInvalidDocument "InvalidDocument" +// The specified document does not exist. +// +// * ErrCodeAssociationDoesNotExist "AssociationDoesNotExist" +// The specified association does not exist. +// +// * ErrCodeStatusUnchanged "StatusUnchanged" +// The updated status is the same as the current status. +// +// * ErrCodeTooManyUpdates "TooManyUpdates" +// There are concurrent updates for a resource that supports one update at a +// time. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateAssociationStatus +func (c *SSM) UpdateAssociationStatus(input *UpdateAssociationStatusInput) (*UpdateAssociationStatusOutput, error) { + req, out := c.UpdateAssociationStatusRequest(input) + err := req.Send() + return out, err +} + +const opUpdateDocument = "UpdateDocument" + +// UpdateDocumentRequest generates a "aws/request.Request" representing the +// client's request for the UpdateDocument operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateDocument for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateDocument method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateDocumentRequest method. +// req, resp := client.UpdateDocumentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateDocument +func (c *SSM) UpdateDocumentRequest(input *UpdateDocumentInput) (req *request.Request, output *UpdateDocumentOutput) { + op := &request.Operation{ + Name: opUpdateDocument, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateDocumentInput{} + } + + output = &UpdateDocumentOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateDocument API operation for Amazon Simple Systems Manager (SSM). +// +// The document you want to update. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation UpdateDocument for usage and error information. +// +// Returned Error Codes: +// * ErrCodeMaxDocumentSizeExceeded "MaxDocumentSizeExceeded" +// The size limit of an SSM document is 64 KB. +// +// * ErrCodeDocumentVersionLimitExceeded "DocumentVersionLimitExceeded" +// The document has too many versions. Delete one or more document versions +// and try again. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeDuplicateDocumentContent "DuplicateDocumentContent" +// The content of the association document matches another document. Change +// the content of the document and try again. +// +// * ErrCodeInvalidDocumentContent "InvalidDocumentContent" +// The content for the SSM document is not valid. +// +// * ErrCodeInvalidDocumentVersion "InvalidDocumentVersion" +// The document version is not valid or does not exist. +// +// * ErrCodeInvalidDocumentSchemaVersion "InvalidDocumentSchemaVersion" +// The version of the document schema is not supported. +// +// * ErrCodeInvalidDocument "InvalidDocument" +// The specified document does not exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateDocument +func (c *SSM) UpdateDocument(input *UpdateDocumentInput) (*UpdateDocumentOutput, error) { + req, out := c.UpdateDocumentRequest(input) + err := req.Send() + return out, err +} + +const opUpdateDocumentDefaultVersion = "UpdateDocumentDefaultVersion" + +// UpdateDocumentDefaultVersionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateDocumentDefaultVersion operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateDocumentDefaultVersion for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateDocumentDefaultVersion method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateDocumentDefaultVersionRequest method. +// req, resp := client.UpdateDocumentDefaultVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateDocumentDefaultVersion +func (c *SSM) UpdateDocumentDefaultVersionRequest(input *UpdateDocumentDefaultVersionInput) (req *request.Request, output *UpdateDocumentDefaultVersionOutput) { + op := &request.Operation{ + Name: opUpdateDocumentDefaultVersion, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateDocumentDefaultVersionInput{} + } + + output = &UpdateDocumentDefaultVersionOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateDocumentDefaultVersion API operation for Amazon Simple Systems Manager (SSM). +// +// Set the default version of a document. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation UpdateDocumentDefaultVersion for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeInvalidDocument "InvalidDocument" +// The specified document does not exist. +// +// * ErrCodeInvalidDocumentVersion "InvalidDocumentVersion" +// The document version is not valid or does not exist. +// +// * ErrCodeInvalidDocumentSchemaVersion "InvalidDocumentSchemaVersion" +// The version of the document schema is not supported. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateDocumentDefaultVersion +func (c *SSM) UpdateDocumentDefaultVersion(input *UpdateDocumentDefaultVersionInput) (*UpdateDocumentDefaultVersionOutput, error) { + req, out := c.UpdateDocumentDefaultVersionRequest(input) + err := req.Send() + return out, err +} + +const opUpdateMaintenanceWindow = "UpdateMaintenanceWindow" + +// UpdateMaintenanceWindowRequest generates a "aws/request.Request" representing the +// client's request for the UpdateMaintenanceWindow operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateMaintenanceWindow for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateMaintenanceWindow method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateMaintenanceWindowRequest method. +// req, resp := client.UpdateMaintenanceWindowRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateMaintenanceWindow +func (c *SSM) UpdateMaintenanceWindowRequest(input *UpdateMaintenanceWindowInput) (req *request.Request, output *UpdateMaintenanceWindowOutput) { + op := &request.Operation{ + Name: opUpdateMaintenanceWindow, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateMaintenanceWindowInput{} + } + + output = &UpdateMaintenanceWindowOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateMaintenanceWindow API operation for Amazon Simple Systems Manager (SSM). +// +// Updates an existing Maintenance Window. Only specified parameters are modified. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation UpdateMaintenanceWindow for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDoesNotExistException "DoesNotExistException" +// Error returned when the ID specified for a resource (e.g. a Maintenance Window) +// doesn’t exist. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateMaintenanceWindow +func (c *SSM) UpdateMaintenanceWindow(input *UpdateMaintenanceWindowInput) (*UpdateMaintenanceWindowOutput, error) { + req, out := c.UpdateMaintenanceWindowRequest(input) + err := req.Send() + return out, err +} + +const opUpdateManagedInstanceRole = "UpdateManagedInstanceRole" + +// UpdateManagedInstanceRoleRequest generates a "aws/request.Request" representing the +// client's request for the UpdateManagedInstanceRole operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateManagedInstanceRole for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateManagedInstanceRole method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateManagedInstanceRoleRequest method. +// req, resp := client.UpdateManagedInstanceRoleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateManagedInstanceRole +func (c *SSM) UpdateManagedInstanceRoleRequest(input *UpdateManagedInstanceRoleInput) (req *request.Request, output *UpdateManagedInstanceRoleOutput) { + op := &request.Operation{ + Name: opUpdateManagedInstanceRole, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateManagedInstanceRoleInput{} + } + + output = &UpdateManagedInstanceRoleOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateManagedInstanceRole API operation for Amazon Simple Systems Manager (SSM). +// +// Assigns or changes an Amazon Identity and Access Management (IAM) role to +// the managed instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation UpdateManagedInstanceRole for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// The following problems can cause this exception: +// +// You do not have permission to access the instance. +// +// The SSM agent is not running. On managed instances and Linux instances, verify +// that the SSM agent is running. On EC2 Windows instances, verify that the +// EC2Config service is running. +// +// The SSM agent or EC2Config service is not registered to the SSM endpoint. +// Try reinstalling the SSM agent or EC2Config service. +// +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateManagedInstanceRole +func (c *SSM) UpdateManagedInstanceRole(input *UpdateManagedInstanceRoleInput) (*UpdateManagedInstanceRoleOutput, error) { + req, out := c.UpdateManagedInstanceRoleRequest(input) + err := req.Send() + return out, err +} + +const opUpdatePatchBaseline = "UpdatePatchBaseline" + +// UpdatePatchBaselineRequest generates a "aws/request.Request" representing the +// client's request for the UpdatePatchBaseline operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdatePatchBaseline for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdatePatchBaseline method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdatePatchBaselineRequest method. +// req, resp := client.UpdatePatchBaselineRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdatePatchBaseline +func (c *SSM) UpdatePatchBaselineRequest(input *UpdatePatchBaselineInput) (req *request.Request, output *UpdatePatchBaselineOutput) { + op := &request.Operation{ + Name: opUpdatePatchBaseline, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdatePatchBaselineInput{} + } + + output = &UpdatePatchBaselineOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdatePatchBaseline API operation for Amazon Simple Systems Manager (SSM). +// +// Modifies an existing patch baseline. Fields not specified in the request +// are left unchanged. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s +// API operation UpdatePatchBaseline for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDoesNotExistException "DoesNotExistException" +// Error returned when the ID specified for a resource (e.g. a Maintenance Window) +// doesn’t exist. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdatePatchBaseline +func (c *SSM) UpdatePatchBaseline(input *UpdatePatchBaselineInput) (*UpdatePatchBaselineOutput, error) { + req, out := c.UpdatePatchBaselineRequest(input) + err := req.Send() + return out, err +} + +// An activation registers one or more on-premises servers or virtual machines +// (VMs) with AWS so that you can configure those servers or VMs using Run Command. +// A server or VM that has been registered with AWS is called a managed instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/Activation +type Activation struct { + _ struct{} `type:"structure"` + + // The ID created by Systems Manager when you submitted the activation. + ActivationId *string `type:"string"` + + // The date the activation was created. + CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // A name for the managed instance when it is created. + DefaultInstanceName *string `type:"string"` + + // A user defined description of the activation. + Description *string `type:"string"` + + // The date when this activation can no longer be used to register managed instances. + ExpirationDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // Whether or not the activation is expired. + Expired *bool `type:"boolean"` + + // The Amazon Identity and Access Management (IAM) role to assign to the managed + // instance. + IamRole *string `type:"string"` + + // The maximum number of managed instances that can be registered using this + // activation. + RegistrationLimit *int64 `min:"1" type:"integer"` + + // The number of managed instances already registered with this activation. + RegistrationsCount *int64 `min:"1" type:"integer"` +} + +// String returns the string representation +func (s Activation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Activation) GoString() string { + return s.String() +} + +// SetActivationId sets the ActivationId field's value. +func (s *Activation) SetActivationId(v string) *Activation { + s.ActivationId = &v + return s +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *Activation) SetCreatedDate(v time.Time) *Activation { + s.CreatedDate = &v + return s +} + +// SetDefaultInstanceName sets the DefaultInstanceName field's value. +func (s *Activation) SetDefaultInstanceName(v string) *Activation { + s.DefaultInstanceName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Activation) SetDescription(v string) *Activation { + s.Description = &v + return s +} + +// SetExpirationDate sets the ExpirationDate field's value. +func (s *Activation) SetExpirationDate(v time.Time) *Activation { + s.ExpirationDate = &v + return s +} + +// SetExpired sets the Expired field's value. +func (s *Activation) SetExpired(v bool) *Activation { + s.Expired = &v + return s +} + +// SetIamRole sets the IamRole field's value. +func (s *Activation) SetIamRole(v string) *Activation { + s.IamRole = &v + return s +} + +// SetRegistrationLimit sets the RegistrationLimit field's value. +func (s *Activation) SetRegistrationLimit(v int64) *Activation { + s.RegistrationLimit = &v + return s +} + +// SetRegistrationsCount sets the RegistrationsCount field's value. +func (s *Activation) SetRegistrationsCount(v int64) *Activation { + s.RegistrationsCount = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AddTagsToResourceRequest +type AddTagsToResourceInput struct { + _ struct{} `type:"structure"` + + // The resource ID you want to tag. + // + // ResourceId is a required field + ResourceId *string `type:"string" required:"true"` + + // Specifies the type of resource you are tagging. + // + // ResourceType is a required field + ResourceType *string `type:"string" required:"true" enum:"ResourceTypeForTagging"` + + // One or more tags. The value parameter is required, but if you don't want + // the tag to have a value, specify the parameter with no value, and we set + // the value to an empty string. + // + // Tags is a required field + Tags []*Tag `type:"list" required:"true"` +} + +// String returns the string representation +func (s AddTagsToResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddTagsToResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AddTagsToResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"} + if s.ResourceId == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceId")) + } + if s.ResourceType == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceType")) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceId sets the ResourceId field's value. +func (s *AddTagsToResourceInput) SetResourceId(v string) *AddTagsToResourceInput { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *AddTagsToResourceInput) SetResourceType(v string) *AddTagsToResourceInput { + s.ResourceType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsToResourceInput) SetTags(v []*Tag) *AddTagsToResourceInput { + s.Tags = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AddTagsToResourceResult +type AddTagsToResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AddTagsToResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddTagsToResourceOutput) GoString() string { + return s.String() +} + +// Describes an association of an SSM document and an instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/Association +type Association struct { + _ struct{} `type:"structure"` + + // The ID created by the system when you create an association. An association + // is a binding between a document and a set of targets with a schedule. + AssociationId *string `type:"string"` + + // The version of the document used in the association. + DocumentVersion *string `type:"string"` + + // The ID of the instance. + InstanceId *string `type:"string"` + + // The date on which the association was last run. + LastExecutionDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The name of the SSM document. + Name *string `type:"string"` + + // Information about the association. + Overview *AssociationOverview `type:"structure"` + + // A cron expression that specifies a schedule when the association runs. + ScheduleExpression *string `min:"1" type:"string"` + + // The instances targeted by the request to create an association. + Targets []*Target `type:"list"` +} + +// String returns the string representation +func (s Association) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Association) GoString() string { + return s.String() +} + +// SetAssociationId sets the AssociationId field's value. +func (s *Association) SetAssociationId(v string) *Association { + s.AssociationId = &v + return s +} + +// SetDocumentVersion sets the DocumentVersion field's value. +func (s *Association) SetDocumentVersion(v string) *Association { + s.DocumentVersion = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *Association) SetInstanceId(v string) *Association { + s.InstanceId = &v + return s +} + +// SetLastExecutionDate sets the LastExecutionDate field's value. +func (s *Association) SetLastExecutionDate(v time.Time) *Association { + s.LastExecutionDate = &v + return s +} + +// SetName sets the Name field's value. +func (s *Association) SetName(v string) *Association { + s.Name = &v + return s +} + +// SetOverview sets the Overview field's value. +func (s *Association) SetOverview(v *AssociationOverview) *Association { + s.Overview = v + return s +} + +// SetScheduleExpression sets the ScheduleExpression field's value. +func (s *Association) SetScheduleExpression(v string) *Association { + s.ScheduleExpression = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *Association) SetTargets(v []*Target) *Association { + s.Targets = v + return s +} + +// Describes the parameters for a document. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AssociationDescription +type AssociationDescription struct { + _ struct{} `type:"structure"` + + // The association ID. + AssociationId *string `type:"string"` + + // The date when the association was made. + Date *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The document version. + DocumentVersion *string `type:"string"` + + // The ID of the instance. + InstanceId *string `type:"string"` + + // The date on which the association was last run. + LastExecutionDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The last date on which the association was successfully run. + LastSuccessfulExecutionDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The date when the association was last updated. + LastUpdateAssociationDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The name of the SSM document. + Name *string `type:"string"` + + // An Amazon S3 bucket where you want to store the output details of the request. + OutputLocation *InstanceAssociationOutputLocation `type:"structure"` + + // Information about the association. + Overview *AssociationOverview `type:"structure"` + + // A description of the parameters for a document. + Parameters map[string][]*string `type:"map"` + + // A cron expression that specifies a schedule when the association runs. + ScheduleExpression *string `min:"1" type:"string"` + + // The association status. + Status *AssociationStatus `type:"structure"` + + // The instances targeted by the request. + Targets []*Target `type:"list"` +} + +// String returns the string representation +func (s AssociationDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociationDescription) GoString() string { + return s.String() +} + +// SetAssociationId sets the AssociationId field's value. +func (s *AssociationDescription) SetAssociationId(v string) *AssociationDescription { + s.AssociationId = &v + return s +} + +// SetDate sets the Date field's value. +func (s *AssociationDescription) SetDate(v time.Time) *AssociationDescription { + s.Date = &v + return s +} + +// SetDocumentVersion sets the DocumentVersion field's value. +func (s *AssociationDescription) SetDocumentVersion(v string) *AssociationDescription { + s.DocumentVersion = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AssociationDescription) SetInstanceId(v string) *AssociationDescription { + s.InstanceId = &v + return s +} + +// SetLastExecutionDate sets the LastExecutionDate field's value. +func (s *AssociationDescription) SetLastExecutionDate(v time.Time) *AssociationDescription { + s.LastExecutionDate = &v + return s +} + +// SetLastSuccessfulExecutionDate sets the LastSuccessfulExecutionDate field's value. +func (s *AssociationDescription) SetLastSuccessfulExecutionDate(v time.Time) *AssociationDescription { + s.LastSuccessfulExecutionDate = &v + return s +} + +// SetLastUpdateAssociationDate sets the LastUpdateAssociationDate field's value. +func (s *AssociationDescription) SetLastUpdateAssociationDate(v time.Time) *AssociationDescription { + s.LastUpdateAssociationDate = &v + return s +} + +// SetName sets the Name field's value. +func (s *AssociationDescription) SetName(v string) *AssociationDescription { + s.Name = &v + return s +} + +// SetOutputLocation sets the OutputLocation field's value. +func (s *AssociationDescription) SetOutputLocation(v *InstanceAssociationOutputLocation) *AssociationDescription { + s.OutputLocation = v + return s +} + +// SetOverview sets the Overview field's value. +func (s *AssociationDescription) SetOverview(v *AssociationOverview) *AssociationDescription { + s.Overview = v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *AssociationDescription) SetParameters(v map[string][]*string) *AssociationDescription { + s.Parameters = v + return s +} + +// SetScheduleExpression sets the ScheduleExpression field's value. +func (s *AssociationDescription) SetScheduleExpression(v string) *AssociationDescription { + s.ScheduleExpression = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *AssociationDescription) SetStatus(v *AssociationStatus) *AssociationDescription { + s.Status = v + return s +} + +// SetTargets sets the Targets field's value. +func (s *AssociationDescription) SetTargets(v []*Target) *AssociationDescription { + s.Targets = v + return s +} + +// Describes a filter. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AssociationFilter +type AssociationFilter struct { + _ struct{} `type:"structure"` + + // The name of the filter. + // + // Key is a required field + Key *string `locationName:"key" type:"string" required:"true" enum:"AssociationFilterKey"` + + // The filter value. + // + // Value is a required field + Value *string `locationName:"value" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociationFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociationFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociationFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociationFilter"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + if s.Value != nil && len(*s.Value) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Value", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *AssociationFilter) SetKey(v string) *AssociationFilter { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *AssociationFilter) SetValue(v string) *AssociationFilter { + s.Value = &v + return s +} + +// Information about the association. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AssociationOverview +type AssociationOverview struct { + _ struct{} `type:"structure"` + + // Returns the number of targets for the association status. For example, if + // you created an association with two instances, and one of them was successful, + // this would return the count of instances by status. + AssociationStatusAggregatedCount map[string]*int64 `type:"map"` + + // A detailed status of the association. + DetailedStatus *string `type:"string"` + + // The status of the association. Status can be: Pending, Success, or Failed. + Status *string `type:"string"` +} + +// String returns the string representation +func (s AssociationOverview) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociationOverview) GoString() string { + return s.String() +} + +// SetAssociationStatusAggregatedCount sets the AssociationStatusAggregatedCount field's value. +func (s *AssociationOverview) SetAssociationStatusAggregatedCount(v map[string]*int64) *AssociationOverview { + s.AssociationStatusAggregatedCount = v + return s +} + +// SetDetailedStatus sets the DetailedStatus field's value. +func (s *AssociationOverview) SetDetailedStatus(v string) *AssociationOverview { + s.DetailedStatus = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *AssociationOverview) SetStatus(v string) *AssociationOverview { + s.Status = &v + return s +} + +// Describes an association status. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AssociationStatus +type AssociationStatus struct { + _ struct{} `type:"structure"` + + // A user-defined string. + AdditionalInfo *string `type:"string"` + + // The date when the status changed. + // + // Date is a required field + Date *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` + + // The reason for the status. + // + // Message is a required field + Message *string `min:"1" type:"string" required:"true"` + + // The status. + // + // Name is a required field + Name *string `type:"string" required:"true" enum:"AssociationStatusName"` +} + +// String returns the string representation +func (s AssociationStatus) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociationStatus) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociationStatus) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociationStatus"} + if s.Date == nil { + invalidParams.Add(request.NewErrParamRequired("Date")) + } + if s.Message == nil { + invalidParams.Add(request.NewErrParamRequired("Message")) + } + if s.Message != nil && len(*s.Message) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Message", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAdditionalInfo sets the AdditionalInfo field's value. +func (s *AssociationStatus) SetAdditionalInfo(v string) *AssociationStatus { + s.AdditionalInfo = &v + return s +} + +// SetDate sets the Date field's value. +func (s *AssociationStatus) SetDate(v time.Time) *AssociationStatus { + s.Date = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *AssociationStatus) SetMessage(v string) *AssociationStatus { + s.Message = &v + return s +} + +// SetName sets the Name field's value. +func (s *AssociationStatus) SetName(v string) *AssociationStatus { + s.Name = &v + return s +} + +// Detailed information about the current state of an individual Automation +// execution. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AutomationExecution +type AutomationExecution struct { + _ struct{} `type:"structure"` + + // The execution ID. + AutomationExecutionId *string `min:"36" type:"string"` + + // The execution status of the Automation. + AutomationExecutionStatus *string `type:"string" enum:"AutomationExecutionStatus"` + + // The name of the Automation document used during the execution. + DocumentName *string `type:"string"` + + // The version of the document to use during execution. + DocumentVersion *string `type:"string"` + + // The time the execution finished. + ExecutionEndTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The time the execution started. + ExecutionStartTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // A message describing why an execution has failed, if the status is set to + // Failed. + FailureMessage *string `type:"string"` + + // The list of execution outputs as defined in the automation document. + Outputs map[string][]*string `min:"1" type:"map"` + + // The key-value map of execution parameters, which were supplied when calling + // StartAutomationExecution. + Parameters map[string][]*string `min:"1" type:"map"` + + // A list of details about the current state of all steps that comprise an execution. + // An Automation document contains a list of steps that are executed in order. + StepExecutions []*StepExecution `type:"list"` +} + +// String returns the string representation +func (s AutomationExecution) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutomationExecution) GoString() string { + return s.String() +} + +// SetAutomationExecutionId sets the AutomationExecutionId field's value. +func (s *AutomationExecution) SetAutomationExecutionId(v string) *AutomationExecution { + s.AutomationExecutionId = &v + return s +} + +// SetAutomationExecutionStatus sets the AutomationExecutionStatus field's value. +func (s *AutomationExecution) SetAutomationExecutionStatus(v string) *AutomationExecution { + s.AutomationExecutionStatus = &v + return s +} + +// SetDocumentName sets the DocumentName field's value. +func (s *AutomationExecution) SetDocumentName(v string) *AutomationExecution { + s.DocumentName = &v + return s +} + +// SetDocumentVersion sets the DocumentVersion field's value. +func (s *AutomationExecution) SetDocumentVersion(v string) *AutomationExecution { + s.DocumentVersion = &v + return s +} + +// SetExecutionEndTime sets the ExecutionEndTime field's value. +func (s *AutomationExecution) SetExecutionEndTime(v time.Time) *AutomationExecution { + s.ExecutionEndTime = &v + return s +} + +// SetExecutionStartTime sets the ExecutionStartTime field's value. +func (s *AutomationExecution) SetExecutionStartTime(v time.Time) *AutomationExecution { + s.ExecutionStartTime = &v + return s +} + +// SetFailureMessage sets the FailureMessage field's value. +func (s *AutomationExecution) SetFailureMessage(v string) *AutomationExecution { + s.FailureMessage = &v + return s +} + +// SetOutputs sets the Outputs field's value. +func (s *AutomationExecution) SetOutputs(v map[string][]*string) *AutomationExecution { + s.Outputs = v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *AutomationExecution) SetParameters(v map[string][]*string) *AutomationExecution { + s.Parameters = v + return s +} + +// SetStepExecutions sets the StepExecutions field's value. +func (s *AutomationExecution) SetStepExecutions(v []*StepExecution) *AutomationExecution { + s.StepExecutions = v + return s +} + +// A filter used to match specific automation executions. This is used to limit +// the scope of Automation execution information returned. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AutomationExecutionFilter +type AutomationExecutionFilter struct { + _ struct{} `type:"structure"` + + // The aspect of the Automation execution information that should be limited. + // + // Key is a required field + Key *string `type:"string" required:"true" enum:"AutomationExecutionFilterKey"` + + // The values used to limit the execution information associated with the filter's + // key. + // + // Values is a required field + Values []*string `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s AutomationExecutionFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutomationExecutionFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AutomationExecutionFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AutomationExecutionFilter"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Values == nil { + invalidParams.Add(request.NewErrParamRequired("Values")) + } + if s.Values != nil && len(s.Values) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Values", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *AutomationExecutionFilter) SetKey(v string) *AutomationExecutionFilter { + s.Key = &v + return s +} + +// SetValues sets the Values field's value. +func (s *AutomationExecutionFilter) SetValues(v []*string) *AutomationExecutionFilter { + s.Values = v + return s +} + +// Details about a specific Automation execution. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AutomationExecutionMetadata +type AutomationExecutionMetadata struct { + _ struct{} `type:"structure"` + + // The execution ID. + AutomationExecutionId *string `min:"36" type:"string"` + + // The status of the execution. Valid values include: Running, Succeeded, Failed, + // Timed out, or Cancelled. + AutomationExecutionStatus *string `type:"string" enum:"AutomationExecutionStatus"` + + // The name of the Automation document used during execution. + DocumentName *string `type:"string"` + + // The document version used during the execution. + DocumentVersion *string `type:"string"` + + // The IAM role ARN of the user who executed the Automation. + ExecutedBy *string `type:"string"` + + // The time the execution finished. This is not populated if the execution is + // still in progress. + ExecutionEndTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The time the execution started.> + ExecutionStartTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // An Amazon S3 bucket where execution information is stored. + LogFile *string `type:"string"` + + // The list of execution outputs as defined in the Automation document. + Outputs map[string][]*string `min:"1" type:"map"` +} + +// String returns the string representation +func (s AutomationExecutionMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutomationExecutionMetadata) GoString() string { + return s.String() +} + +// SetAutomationExecutionId sets the AutomationExecutionId field's value. +func (s *AutomationExecutionMetadata) SetAutomationExecutionId(v string) *AutomationExecutionMetadata { + s.AutomationExecutionId = &v + return s +} + +// SetAutomationExecutionStatus sets the AutomationExecutionStatus field's value. +func (s *AutomationExecutionMetadata) SetAutomationExecutionStatus(v string) *AutomationExecutionMetadata { + s.AutomationExecutionStatus = &v + return s +} + +// SetDocumentName sets the DocumentName field's value. +func (s *AutomationExecutionMetadata) SetDocumentName(v string) *AutomationExecutionMetadata { + s.DocumentName = &v + return s +} + +// SetDocumentVersion sets the DocumentVersion field's value. +func (s *AutomationExecutionMetadata) SetDocumentVersion(v string) *AutomationExecutionMetadata { + s.DocumentVersion = &v + return s +} + +// SetExecutedBy sets the ExecutedBy field's value. +func (s *AutomationExecutionMetadata) SetExecutedBy(v string) *AutomationExecutionMetadata { + s.ExecutedBy = &v + return s +} + +// SetExecutionEndTime sets the ExecutionEndTime field's value. +func (s *AutomationExecutionMetadata) SetExecutionEndTime(v time.Time) *AutomationExecutionMetadata { + s.ExecutionEndTime = &v + return s +} + +// SetExecutionStartTime sets the ExecutionStartTime field's value. +func (s *AutomationExecutionMetadata) SetExecutionStartTime(v time.Time) *AutomationExecutionMetadata { + s.ExecutionStartTime = &v + return s +} + +// SetLogFile sets the LogFile field's value. +func (s *AutomationExecutionMetadata) SetLogFile(v string) *AutomationExecutionMetadata { + s.LogFile = &v + return s +} + +// SetOutputs sets the Outputs field's value. +func (s *AutomationExecutionMetadata) SetOutputs(v map[string][]*string) *AutomationExecutionMetadata { + s.Outputs = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CancelCommandRequest +type CancelCommandInput struct { + _ struct{} `type:"structure"` + + // The ID of the command you want to cancel. + // + // CommandId is a required field + CommandId *string `min:"36" type:"string" required:"true"` + + // (Optional) A list of instance IDs on which you want to cancel the command. + // If not provided, the command is canceled on every instance on which it was + // requested. + InstanceIds []*string `type:"list"` +} + +// String returns the string representation +func (s CancelCommandInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelCommandInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelCommandInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelCommandInput"} + if s.CommandId == nil { + invalidParams.Add(request.NewErrParamRequired("CommandId")) + } + if s.CommandId != nil && len(*s.CommandId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("CommandId", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCommandId sets the CommandId field's value. +func (s *CancelCommandInput) SetCommandId(v string) *CancelCommandInput { + s.CommandId = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *CancelCommandInput) SetInstanceIds(v []*string) *CancelCommandInput { + s.InstanceIds = v + return s +} + +// Whether or not the command was successfully canceled. There is no guarantee +// that a request can be canceled. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CancelCommandResult +type CancelCommandOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CancelCommandOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelCommandOutput) GoString() string { + return s.String() +} + +// Describes a command request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/Command +type Command struct { + _ struct{} `type:"structure"` + + // A unique identifier for this command. + CommandId *string `min:"36" type:"string"` + + // User-specified information about the command, such as a brief description + // of what the command should do. + Comment *string `type:"string"` + + // The number of targets for which the command invocation reached a terminal + // state. Terminal states include the following: Success, Failed, Execution + // Timed Out, Delivery Timed Out, Canceled, Terminated, or Undeliverable. + CompletedCount *int64 `type:"integer"` + + // The name of the SSM document requested for execution. + DocumentName *string `type:"string"` + + // The number of targets for which the status is Failed or Execution Timed Out. + ErrorCount *int64 `type:"integer"` + + // If this time is reached and the command has not already started executing, + // it will not execute. Calculated based on the ExpiresAfter user input provided + // as part of the SendCommand API. + ExpiresAfter *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The instance IDs against which this command was requested. + InstanceIds []*string `type:"list"` + + // The maximum number of instances that are allowed to execute the command at + // the same time. You can specify a number of instances, such as 10, or a percentage + // of instances, such as 10%. The default value is 50. For more information + // about how to use MaxConcurrency, see Executing a Command Using Amazon EC2 + // Run Command (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/run-command.html) + // (Linux) or Executing a Command Using Amazon EC2 Run Command (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/run-command.html) + // (Windows). + MaxConcurrency *string `min:"1" type:"string"` + + // The maximum number of errors allowed before the system stops sending the + // command to additional targets. You can specify a number of errors, such as + // 10, or a percentage or errors, such as 10%. The default value is 50. For + // more information about how to use MaxErrors, see Executing a Command Using + // Amazon EC2 Run Command (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/run-command.html) + // (Linux) or Executing a Command Using Amazon EC2 Run Command (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/run-command.html) + // (Windows). + MaxErrors *string `min:"1" type:"string"` + + // Configurations for sending notifications about command status changes. + NotificationConfig *NotificationConfig `type:"structure"` + + // The S3 bucket where the responses to the command executions should be stored. + // This was requested when issuing the command. + OutputS3BucketName *string `min:"3" type:"string"` + + // The S3 directory path inside the bucket where the responses to the command + // executions should be stored. This was requested when issuing the command. + OutputS3KeyPrefix *string `type:"string"` + + // The region where the Amazon Simple Storage Service (Amazon S3) output bucket + // is located. The default value is the region where Run Command is being called. + OutputS3Region *string `min:"3" type:"string"` + + // The parameter values to be inserted in the SSM document when executing the + // command. + Parameters map[string][]*string `type:"map"` + + // The date and time the command was requested. + RequestedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The IAM service role that Run Command uses to act on your behalf when sending + // notifications about command status changes. + ServiceRole *string `type:"string"` + + // The status of the command. + Status *string `type:"string" enum:"CommandStatus"` + + // A detailed status of the command execution. StatusDetails includes more information + // than Status because it includes states resulting from error and concurrency + // control parameters. StatusDetails can show different results than Status. + // For more information about these statuses, see Monitor Commands (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitor-commands.html) + // (Linux) or Monitor Commands (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/monitor-commands.html) + // (Windows). StatusDetails can be one of the following values: + // + // * Pending – The command has not been sent to any instances. + // + // * In Progress – The command has been sent to at least one instance but + // has not reached a final state on all instances. + // + // * Success – The command successfully executed on all invocations. This + // is a terminal state. + // + // * Delivery Timed Out – The value of MaxErrors or more command invocations + // shows a status of Delivery Timed Out. This is a terminal state. + // + // * Execution Timed Out – The value of MaxErrors or more command invocations + // shows a status of Execution Timed Out. This is a terminal state. + // + // * Failed – The value of MaxErrors or more command invocations shows a + // status of Failed. This is a terminal state. + // + // * Incomplete – The command was attempted on all instances and one or more + // invocations does not have a value of Success but not enough invocations + // failed for the status to be Failed. This is a terminal state. + // + // * Canceled – The command was terminated before it was completed. This + // is a terminal state. + // + // * Rate Exceeded – The number of instances targeted by the command exceeded + // the account limit for pending invocations. The system has canceled the + // command before executing it on any instance. This is a terminal state. + StatusDetails *string `type:"string"` + + // The number of targets for the command. + TargetCount *int64 `type:"integer"` + + // An array of search criteria that targets instances using a Key;Value combination + // that you specify. Targets is required if you don't provide one or more instance + // IDs in the call. + Targets []*Target `type:"list"` +} + +// String returns the string representation +func (s Command) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Command) GoString() string { + return s.String() +} + +// SetCommandId sets the CommandId field's value. +func (s *Command) SetCommandId(v string) *Command { + s.CommandId = &v + return s +} + +// SetComment sets the Comment field's value. +func (s *Command) SetComment(v string) *Command { + s.Comment = &v + return s +} + +// SetCompletedCount sets the CompletedCount field's value. +func (s *Command) SetCompletedCount(v int64) *Command { + s.CompletedCount = &v + return s +} + +// SetDocumentName sets the DocumentName field's value. +func (s *Command) SetDocumentName(v string) *Command { + s.DocumentName = &v + return s +} + +// SetErrorCount sets the ErrorCount field's value. +func (s *Command) SetErrorCount(v int64) *Command { + s.ErrorCount = &v + return s +} + +// SetExpiresAfter sets the ExpiresAfter field's value. +func (s *Command) SetExpiresAfter(v time.Time) *Command { + s.ExpiresAfter = &v + return s +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *Command) SetInstanceIds(v []*string) *Command { + s.InstanceIds = v + return s +} + +// SetMaxConcurrency sets the MaxConcurrency field's value. +func (s *Command) SetMaxConcurrency(v string) *Command { + s.MaxConcurrency = &v + return s +} + +// SetMaxErrors sets the MaxErrors field's value. +func (s *Command) SetMaxErrors(v string) *Command { + s.MaxErrors = &v + return s +} + +// SetNotificationConfig sets the NotificationConfig field's value. +func (s *Command) SetNotificationConfig(v *NotificationConfig) *Command { + s.NotificationConfig = v + return s +} + +// SetOutputS3BucketName sets the OutputS3BucketName field's value. +func (s *Command) SetOutputS3BucketName(v string) *Command { + s.OutputS3BucketName = &v + return s +} + +// SetOutputS3KeyPrefix sets the OutputS3KeyPrefix field's value. +func (s *Command) SetOutputS3KeyPrefix(v string) *Command { + s.OutputS3KeyPrefix = &v + return s +} + +// SetOutputS3Region sets the OutputS3Region field's value. +func (s *Command) SetOutputS3Region(v string) *Command { + s.OutputS3Region = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *Command) SetParameters(v map[string][]*string) *Command { + s.Parameters = v + return s +} + +// SetRequestedDateTime sets the RequestedDateTime field's value. +func (s *Command) SetRequestedDateTime(v time.Time) *Command { + s.RequestedDateTime = &v + return s +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *Command) SetServiceRole(v string) *Command { + s.ServiceRole = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Command) SetStatus(v string) *Command { + s.Status = &v + return s +} + +// SetStatusDetails sets the StatusDetails field's value. +func (s *Command) SetStatusDetails(v string) *Command { + s.StatusDetails = &v + return s +} + +// SetTargetCount sets the TargetCount field's value. +func (s *Command) SetTargetCount(v int64) *Command { + s.TargetCount = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *Command) SetTargets(v []*Target) *Command { + s.Targets = v + return s +} + +// Describes a command filter. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CommandFilter +type CommandFilter struct { + _ struct{} `type:"structure"` + + // The name of the filter. For example, requested date and time. + // + // Key is a required field + Key *string `locationName:"key" type:"string" required:"true" enum:"CommandFilterKey"` + + // The filter value. For example: June 30, 2015. + // + // Value is a required field + Value *string `locationName:"value" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CommandFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CommandFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CommandFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CommandFilter"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + if s.Value != nil && len(*s.Value) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Value", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *CommandFilter) SetKey(v string) *CommandFilter { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *CommandFilter) SetValue(v string) *CommandFilter { + s.Value = &v + return s +} + +// An invocation is copy of a command sent to a specific instance. A command +// can apply to one or more instances. A command invocation applies to one instance. +// For example, if a user executes SendCommand against three instances, then +// a command invocation is created for each requested instance ID. A command +// invocation returns status and detail information about a command you executed. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CommandInvocation +type CommandInvocation struct { + _ struct{} `type:"structure"` + + // The command against which this invocation was requested. + CommandId *string `min:"36" type:"string"` + + CommandPlugins []*CommandPlugin `type:"list"` + + // User-specified information about the command, such as a brief description + // of what the command should do. + Comment *string `type:"string"` + + // The document name that was requested for execution. + DocumentName *string `type:"string"` + + // The instance ID in which this invocation was requested. + InstanceId *string `type:"string"` + + // The name of the invocation target. For Amazon EC2 instances this is the value + // for the aws:Name tag. For on-premises instances, this is the name of the + // instance. + InstanceName *string `type:"string"` + + // Configurations for sending notifications about command status changes on + // a per instance basis. + NotificationConfig *NotificationConfig `type:"structure"` + + // The time and date the request was sent to this instance. + RequestedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The IAM service role that Run Command uses to act on your behalf when sending + // notifications about command status changes on a per instance basis. + ServiceRole *string `type:"string"` + + // The URL to the plugin’s StdErr file in Amazon S3, if the Amazon S3 bucket + // was defined for the parent command. For an invocation, StandardErrorUrl is + // populated if there is just one plugin defined for the command, and the Amazon + // S3 bucket was defined for the command. + StandardErrorUrl *string `type:"string"` + + // The URL to the plugin’s StdOut file in Amazon S3, if the Amazon S3 bucket + // was defined for the parent command. For an invocation, StandardOutputUrl + // is populated if there is just one plugin defined for the command, and the + // Amazon S3 bucket was defined for the command. + StandardOutputUrl *string `type:"string"` + + // Whether or not the invocation succeeded, failed, or is pending. + Status *string `type:"string" enum:"CommandInvocationStatus"` + + // A detailed status of the command execution for each invocation (each instance + // targeted by the command). StatusDetails includes more information than Status + // because it includes states resulting from error and concurrency control parameters. + // StatusDetails can show different results than Status. For more information + // about these statuses, see Monitor Commands (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitor-commands.html) + // (Linux) or Monitor Commands (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/monitor-commands.html) + // (Windows). StatusDetails can be one of the following values: + // + // * Pending – The command has not been sent to the instance. + // + // * In Progress – The command has been sent to the instance but has not + // reached a terminal state. + // + // * Success – The execution of the command or plugin was successfully completed. + // This is a terminal state. + // + // * Delivery Timed Out – The command was not delivered to the instance before + // the delivery timeout expired. Delivery timeouts do not count against the + // parent command’s MaxErrors limit, but they do contribute to whether the + // parent command status is Success or Incomplete. This is a terminal state. + // + // * Execution Timed Out – Command execution started on the instance, but + // the execution was not complete before the execution timeout expired. Execution + // timeouts count against the MaxErrors limit of the parent command. This + // is a terminal state. + // + // * Failed – The command was not successful on the instance. For a plugin, + // this indicates that the result code was not zero. For a command invocation, + // this indicates that the result code for one or more plugins was not zero. + // Invocation failures count against the MaxErrors limit of the parent command. + // This is a terminal state. + // + // * Canceled – The command was terminated before it was completed. This + // is a terminal state. + // + // * Undeliverable – The command can't be delivered to the instance. The + // instance might not exist or might not be responding. Undeliverable invocations + // don't count against the parent command’s MaxErrors limit and don't contribute + // to whether the parent command status is Success or Incomplete. This is + // a terminal state. + // + // * Terminated – The parent command exceeded its MaxErrors limit and subsequent + // command invocations were canceled by the system. This is a terminal state. + StatusDetails *string `type:"string"` + + // Gets the trace output sent by the agent. + TraceOutput *string `type:"string"` +} + +// String returns the string representation +func (s CommandInvocation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CommandInvocation) GoString() string { + return s.String() +} + +// SetCommandId sets the CommandId field's value. +func (s *CommandInvocation) SetCommandId(v string) *CommandInvocation { + s.CommandId = &v + return s +} + +// SetCommandPlugins sets the CommandPlugins field's value. +func (s *CommandInvocation) SetCommandPlugins(v []*CommandPlugin) *CommandInvocation { + s.CommandPlugins = v + return s +} + +// SetComment sets the Comment field's value. +func (s *CommandInvocation) SetComment(v string) *CommandInvocation { + s.Comment = &v + return s +} + +// SetDocumentName sets the DocumentName field's value. +func (s *CommandInvocation) SetDocumentName(v string) *CommandInvocation { + s.DocumentName = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CommandInvocation) SetInstanceId(v string) *CommandInvocation { + s.InstanceId = &v + return s +} + +// SetInstanceName sets the InstanceName field's value. +func (s *CommandInvocation) SetInstanceName(v string) *CommandInvocation { + s.InstanceName = &v + return s +} + +// SetNotificationConfig sets the NotificationConfig field's value. +func (s *CommandInvocation) SetNotificationConfig(v *NotificationConfig) *CommandInvocation { + s.NotificationConfig = v + return s +} + +// SetRequestedDateTime sets the RequestedDateTime field's value. +func (s *CommandInvocation) SetRequestedDateTime(v time.Time) *CommandInvocation { + s.RequestedDateTime = &v + return s +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *CommandInvocation) SetServiceRole(v string) *CommandInvocation { + s.ServiceRole = &v + return s +} + +// SetStandardErrorUrl sets the StandardErrorUrl field's value. +func (s *CommandInvocation) SetStandardErrorUrl(v string) *CommandInvocation { + s.StandardErrorUrl = &v + return s +} + +// SetStandardOutputUrl sets the StandardOutputUrl field's value. +func (s *CommandInvocation) SetStandardOutputUrl(v string) *CommandInvocation { + s.StandardOutputUrl = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CommandInvocation) SetStatus(v string) *CommandInvocation { + s.Status = &v + return s +} + +// SetStatusDetails sets the StatusDetails field's value. +func (s *CommandInvocation) SetStatusDetails(v string) *CommandInvocation { + s.StatusDetails = &v + return s +} + +// SetTraceOutput sets the TraceOutput field's value. +func (s *CommandInvocation) SetTraceOutput(v string) *CommandInvocation { + s.TraceOutput = &v + return s +} + +// Describes plugin details. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CommandPlugin +type CommandPlugin struct { + _ struct{} `type:"structure"` + + // The name of the plugin. Must be one of the following: aws:updateAgent, aws:domainjoin, + // aws:applications, aws:runPowerShellScript, aws:psmodule, aws:cloudWatch, + // aws:runShellScript, or aws:updateSSMAgent. + Name *string `min:"4" type:"string"` + + // Output of the plugin execution. + Output *string `type:"string"` + + // The S3 bucket where the responses to the command executions should be stored. + // This was requested when issuing the command. For example, in the following + // response: + // + // test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript + // + // test_folder is the name of the Amazon S3 bucket; + // + // ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix; + // + // i-1234567876543 is the instance ID; + // + // awsrunShellScript is the name of the plugin. + OutputS3BucketName *string `min:"3" type:"string"` + + // The S3 directory path inside the bucket where the responses to the command + // executions should be stored. This was requested when issuing the command. + // For example, in the following response: + // + // test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript + // + // test_folder is the name of the Amazon S3 bucket; + // + // ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix; + // + // i-1234567876543 is the instance ID; + // + // awsrunShellScript is the name of the plugin. + OutputS3KeyPrefix *string `type:"string"` + + // The name of the region where the output is stored in Amazon S3. + OutputS3Region *string `min:"3" type:"string"` + + // A numeric response code generated after executing the plugin. + ResponseCode *int64 `type:"integer"` + + // The time the plugin stopped executing. Could stop prematurely if, for example, + // a cancel command was sent. + ResponseFinishDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The time the plugin started executing. + ResponseStartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The URL for the complete text written by the plugin to stderr. If execution + // is not yet complete, then this string is empty. + StandardErrorUrl *string `type:"string"` + + // The URL for the complete text written by the plugin to stdout in Amazon S3. + // If the Amazon S3 bucket for the command was not specified, then this string + // is empty. + StandardOutputUrl *string `type:"string"` + + // The status of this plugin. You can execute a document with multiple plugins. + Status *string `type:"string" enum:"CommandPluginStatus"` + + // A detailed status of the plugin execution. StatusDetails includes more information + // than Status because it includes states resulting from error and concurrency + // control parameters. StatusDetails can show different results than Status. + // For more information about these statuses, see Monitor Commands (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitor-commands.html) + // (Linux) or Monitor Commands (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/monitor-commands.html) + // (Windows). StatusDetails can be one of the following values: + // + // * Pending – The command has not been sent to the instance. + // + // * In Progress – The command has been sent to the instance but has not + // reached a terminal state. + // + // * Success – The execution of the command or plugin was successfully completed. + // This is a terminal state. + // + // * Delivery Timed Out – The command was not delivered to the instance before + // the delivery timeout expired. Delivery timeouts do not count against the + // parent command’s MaxErrors limit, but they do contribute to whether the + // parent command status is Success or Incomplete. This is a terminal state. + // + // * Execution Timed Out – Command execution started on the instance, but + // the execution was not complete before the execution timeout expired. Execution + // timeouts count against the MaxErrors limit of the parent command. This + // is a terminal state. + // + // * Failed – The command was not successful on the instance. For a plugin, + // this indicates that the result code was not zero. For a command invocation, + // this indicates that the result code for one or more plugins was not zero. + // Invocation failures count against the MaxErrors limit of the parent command. + // This is a terminal state. + // + // * Canceled – The command was terminated before it was completed. This + // is a terminal state. + // + // * Undeliverable – The command can't be delivered to the instance. The + // instance might not exist, or it might not be responding. Undeliverable + // invocations don't count against the parent command’s MaxErrors limit, + // and they don't contribute to whether the parent command status is Success + // or Incomplete. This is a terminal state. + // + // * Terminated – The parent command exceeded its MaxErrors limit and subsequent + // command invocations were canceled by the system. This is a terminal state. + StatusDetails *string `type:"string"` +} + +// String returns the string representation +func (s CommandPlugin) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CommandPlugin) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *CommandPlugin) SetName(v string) *CommandPlugin { + s.Name = &v + return s +} + +// SetOutput sets the Output field's value. +func (s *CommandPlugin) SetOutput(v string) *CommandPlugin { + s.Output = &v + return s +} + +// SetOutputS3BucketName sets the OutputS3BucketName field's value. +func (s *CommandPlugin) SetOutputS3BucketName(v string) *CommandPlugin { + s.OutputS3BucketName = &v + return s +} + +// SetOutputS3KeyPrefix sets the OutputS3KeyPrefix field's value. +func (s *CommandPlugin) SetOutputS3KeyPrefix(v string) *CommandPlugin { + s.OutputS3KeyPrefix = &v + return s +} + +// SetOutputS3Region sets the OutputS3Region field's value. +func (s *CommandPlugin) SetOutputS3Region(v string) *CommandPlugin { + s.OutputS3Region = &v + return s +} + +// SetResponseCode sets the ResponseCode field's value. +func (s *CommandPlugin) SetResponseCode(v int64) *CommandPlugin { + s.ResponseCode = &v + return s +} + +// SetResponseFinishDateTime sets the ResponseFinishDateTime field's value. +func (s *CommandPlugin) SetResponseFinishDateTime(v time.Time) *CommandPlugin { + s.ResponseFinishDateTime = &v + return s +} + +// SetResponseStartDateTime sets the ResponseStartDateTime field's value. +func (s *CommandPlugin) SetResponseStartDateTime(v time.Time) *CommandPlugin { + s.ResponseStartDateTime = &v + return s +} + +// SetStandardErrorUrl sets the StandardErrorUrl field's value. +func (s *CommandPlugin) SetStandardErrorUrl(v string) *CommandPlugin { + s.StandardErrorUrl = &v + return s +} + +// SetStandardOutputUrl sets the StandardOutputUrl field's value. +func (s *CommandPlugin) SetStandardOutputUrl(v string) *CommandPlugin { + s.StandardOutputUrl = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CommandPlugin) SetStatus(v string) *CommandPlugin { + s.Status = &v + return s +} + +// SetStatusDetails sets the StatusDetails field's value. +func (s *CommandPlugin) SetStatusDetails(v string) *CommandPlugin { + s.StatusDetails = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateActivationRequest +type CreateActivationInput struct { + _ struct{} `type:"structure"` + + // The name of the registered, managed instance as it will appear in the Amazon + // EC2 console or when you use the AWS command line tools to list EC2 resources. + DefaultInstanceName *string `type:"string"` + + // A user-defined description of the resource that you want to register with + // Amazon EC2. + Description *string `type:"string"` + + // The date by which this activation request should expire. The default value + // is 24 hours. + ExpirationDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The Amazon Identity and Access Management (IAM) role that you want to assign + // to the managed instance. + // + // IamRole is a required field + IamRole *string `type:"string" required:"true"` + + // Specify the maximum number of managed instances you want to register. The + // default value is 1 instance. + RegistrationLimit *int64 `min:"1" type:"integer"` +} + +// String returns the string representation +func (s CreateActivationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateActivationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateActivationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateActivationInput"} + if s.IamRole == nil { + invalidParams.Add(request.NewErrParamRequired("IamRole")) + } + if s.RegistrationLimit != nil && *s.RegistrationLimit < 1 { + invalidParams.Add(request.NewErrParamMinValue("RegistrationLimit", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDefaultInstanceName sets the DefaultInstanceName field's value. +func (s *CreateActivationInput) SetDefaultInstanceName(v string) *CreateActivationInput { + s.DefaultInstanceName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateActivationInput) SetDescription(v string) *CreateActivationInput { + s.Description = &v + return s +} + +// SetExpirationDate sets the ExpirationDate field's value. +func (s *CreateActivationInput) SetExpirationDate(v time.Time) *CreateActivationInput { + s.ExpirationDate = &v + return s +} + +// SetIamRole sets the IamRole field's value. +func (s *CreateActivationInput) SetIamRole(v string) *CreateActivationInput { + s.IamRole = &v + return s +} + +// SetRegistrationLimit sets the RegistrationLimit field's value. +func (s *CreateActivationInput) SetRegistrationLimit(v int64) *CreateActivationInput { + s.RegistrationLimit = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateActivationResult +type CreateActivationOutput struct { + _ struct{} `type:"structure"` + + // The code the system generates when it processes the activation. The activation + // code functions like a password to validate the activation ID. + ActivationCode *string `min:"20" type:"string"` + + // The ID number generated by the system when it processed the activation. The + // activation ID functions like a user name. + ActivationId *string `type:"string"` +} + +// String returns the string representation +func (s CreateActivationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateActivationOutput) GoString() string { + return s.String() +} + +// SetActivationCode sets the ActivationCode field's value. +func (s *CreateActivationOutput) SetActivationCode(v string) *CreateActivationOutput { + s.ActivationCode = &v + return s +} + +// SetActivationId sets the ActivationId field's value. +func (s *CreateActivationOutput) SetActivationId(v string) *CreateActivationOutput { + s.ActivationId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateAssociationBatchRequest +type CreateAssociationBatchInput struct { + _ struct{} `type:"structure"` + + // One or more associations. + // + // Entries is a required field + Entries []*CreateAssociationBatchRequestEntry `locationNameList:"entries" min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s CreateAssociationBatchInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAssociationBatchInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAssociationBatchInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAssociationBatchInput"} + if s.Entries == nil { + invalidParams.Add(request.NewErrParamRequired("Entries")) + } + if s.Entries != nil && len(s.Entries) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Entries", 1)) + } + if s.Entries != nil { + for i, v := range s.Entries { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entries", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEntries sets the Entries field's value. +func (s *CreateAssociationBatchInput) SetEntries(v []*CreateAssociationBatchRequestEntry) *CreateAssociationBatchInput { + s.Entries = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateAssociationBatchResult +type CreateAssociationBatchOutput struct { + _ struct{} `type:"structure"` + + // Information about the associations that failed. + Failed []*FailedCreateAssociation `locationNameList:"FailedCreateAssociationEntry" type:"list"` + + // Information about the associations that succeeded. + Successful []*AssociationDescription `locationNameList:"AssociationDescription" type:"list"` +} + +// String returns the string representation +func (s CreateAssociationBatchOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAssociationBatchOutput) GoString() string { + return s.String() +} + +// SetFailed sets the Failed field's value. +func (s *CreateAssociationBatchOutput) SetFailed(v []*FailedCreateAssociation) *CreateAssociationBatchOutput { + s.Failed = v + return s +} + +// SetSuccessful sets the Successful field's value. +func (s *CreateAssociationBatchOutput) SetSuccessful(v []*AssociationDescription) *CreateAssociationBatchOutput { + s.Successful = v + return s +} + +// Describes the association of an SSM document and an instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateAssociationBatchRequestEntry +type CreateAssociationBatchRequestEntry struct { + _ struct{} `type:"structure"` + + // The document version. + DocumentVersion *string `type:"string"` + + // The ID of the instance. + InstanceId *string `type:"string"` + + // The name of the configuration document. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // An Amazon S3 bucket where you want to store the results of this request. + OutputLocation *InstanceAssociationOutputLocation `type:"structure"` + + // A description of the parameters for a document. + Parameters map[string][]*string `type:"map"` + + // A cron expression that specifies a schedule when the association runs. + ScheduleExpression *string `min:"1" type:"string"` + + // The instances targeted by the request. + Targets []*Target `type:"list"` +} + +// String returns the string representation +func (s CreateAssociationBatchRequestEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAssociationBatchRequestEntry) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAssociationBatchRequestEntry) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAssociationBatchRequestEntry"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.ScheduleExpression != nil && len(*s.ScheduleExpression) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ScheduleExpression", 1)) + } + if s.OutputLocation != nil { + if err := s.OutputLocation.Validate(); err != nil { + invalidParams.AddNested("OutputLocation", err.(request.ErrInvalidParams)) + } + } + if s.Targets != nil { + for i, v := range s.Targets { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Targets", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocumentVersion sets the DocumentVersion field's value. +func (s *CreateAssociationBatchRequestEntry) SetDocumentVersion(v string) *CreateAssociationBatchRequestEntry { + s.DocumentVersion = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CreateAssociationBatchRequestEntry) SetInstanceId(v string) *CreateAssociationBatchRequestEntry { + s.InstanceId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateAssociationBatchRequestEntry) SetName(v string) *CreateAssociationBatchRequestEntry { + s.Name = &v + return s +} + +// SetOutputLocation sets the OutputLocation field's value. +func (s *CreateAssociationBatchRequestEntry) SetOutputLocation(v *InstanceAssociationOutputLocation) *CreateAssociationBatchRequestEntry { + s.OutputLocation = v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *CreateAssociationBatchRequestEntry) SetParameters(v map[string][]*string) *CreateAssociationBatchRequestEntry { + s.Parameters = v + return s +} + +// SetScheduleExpression sets the ScheduleExpression field's value. +func (s *CreateAssociationBatchRequestEntry) SetScheduleExpression(v string) *CreateAssociationBatchRequestEntry { + s.ScheduleExpression = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *CreateAssociationBatchRequestEntry) SetTargets(v []*Target) *CreateAssociationBatchRequestEntry { + s.Targets = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateAssociationRequest +type CreateAssociationInput struct { + _ struct{} `type:"structure"` + + // The document version you want to associate with the target(s). Can be a specific + // version or the default version. + DocumentVersion *string `type:"string"` + + // The instance ID. + InstanceId *string `type:"string"` + + // The name of the SSM document. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // An Amazon S3 bucket where you want to store the output details of the request. + // For example: + // + // "{ \"S3Location\": { \"OutputS3Region\": \"\", \"OutputS3BucketName\": + // \"bucket name\", \"OutputS3KeyPrefix\": \"folder name\" } }" + OutputLocation *InstanceAssociationOutputLocation `type:"structure"` + + // The parameters for the documents runtime configuration. + Parameters map[string][]*string `type:"map"` + + // A cron expression when the association will be applied to the target(s). + // Supported expressions are every half, 1, 2, 4, 8 or 12 hour(s); every specified + // day and time of the week. For example: cron(0 0/30 * 1/1 * ? *) to run every + // thirty minutes; cron(0 0 0/4 1/1 * ? *) to run every four hours; and cron(0 + // 0 10 ? * SUN *) to run every Sunday at 10 a.m. + ScheduleExpression *string `min:"1" type:"string"` + + // The targets (either instances or tags) for the association. Instances are + // specified using Key=instanceids,Values=,. Tags + // are specified using Key=,Values=. + Targets []*Target `type:"list"` +} + +// String returns the string representation +func (s CreateAssociationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAssociationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAssociationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAssociationInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.ScheduleExpression != nil && len(*s.ScheduleExpression) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ScheduleExpression", 1)) + } + if s.OutputLocation != nil { + if err := s.OutputLocation.Validate(); err != nil { + invalidParams.AddNested("OutputLocation", err.(request.ErrInvalidParams)) + } + } + if s.Targets != nil { + for i, v := range s.Targets { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Targets", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocumentVersion sets the DocumentVersion field's value. +func (s *CreateAssociationInput) SetDocumentVersion(v string) *CreateAssociationInput { + s.DocumentVersion = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CreateAssociationInput) SetInstanceId(v string) *CreateAssociationInput { + s.InstanceId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateAssociationInput) SetName(v string) *CreateAssociationInput { + s.Name = &v + return s +} + +// SetOutputLocation sets the OutputLocation field's value. +func (s *CreateAssociationInput) SetOutputLocation(v *InstanceAssociationOutputLocation) *CreateAssociationInput { + s.OutputLocation = v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *CreateAssociationInput) SetParameters(v map[string][]*string) *CreateAssociationInput { + s.Parameters = v + return s +} + +// SetScheduleExpression sets the ScheduleExpression field's value. +func (s *CreateAssociationInput) SetScheduleExpression(v string) *CreateAssociationInput { + s.ScheduleExpression = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *CreateAssociationInput) SetTargets(v []*Target) *CreateAssociationInput { + s.Targets = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateAssociationResult +type CreateAssociationOutput struct { + _ struct{} `type:"structure"` + + // Information about the association. + AssociationDescription *AssociationDescription `type:"structure"` +} + +// String returns the string representation +func (s CreateAssociationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAssociationOutput) GoString() string { + return s.String() +} + +// SetAssociationDescription sets the AssociationDescription field's value. +func (s *CreateAssociationOutput) SetAssociationDescription(v *AssociationDescription) *CreateAssociationOutput { + s.AssociationDescription = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateDocumentRequest +type CreateDocumentInput struct { + _ struct{} `type:"structure"` + + // A valid JSON string. + // + // Content is a required field + Content *string `min:"1" type:"string" required:"true"` + + // The type of document to create. Valid document types include: Policy, Automation, + // and Command. + DocumentType *string `type:"string" enum:"DocumentType"` + + // A name for the SSM document. + // + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateDocumentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDocumentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDocumentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDocumentInput"} + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) + } + if s.Content != nil && len(*s.Content) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Content", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContent sets the Content field's value. +func (s *CreateDocumentInput) SetContent(v string) *CreateDocumentInput { + s.Content = &v + return s +} + +// SetDocumentType sets the DocumentType field's value. +func (s *CreateDocumentInput) SetDocumentType(v string) *CreateDocumentInput { + s.DocumentType = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateDocumentInput) SetName(v string) *CreateDocumentInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateDocumentResult +type CreateDocumentOutput struct { + _ struct{} `type:"structure"` + + // Information about the SSM document. + DocumentDescription *DocumentDescription `type:"structure"` +} + +// String returns the string representation +func (s CreateDocumentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDocumentOutput) GoString() string { + return s.String() +} + +// SetDocumentDescription sets the DocumentDescription field's value. +func (s *CreateDocumentOutput) SetDocumentDescription(v *DocumentDescription) *CreateDocumentOutput { + s.DocumentDescription = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateMaintenanceWindowRequest +type CreateMaintenanceWindowInput struct { + _ struct{} `type:"structure"` + + // Whether targets must be registered with the Maintenance Window before tasks + // can be defined for those targets. + // + // AllowUnassociatedTargets is a required field + AllowUnassociatedTargets *bool `type:"boolean" required:"true"` + + // User-provided idempotency token. + ClientToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The number of hours before the end of the Maintenance Window that Systems + // Manager stops scheduling new tasks for execution. + // + // Cutoff is a required field + Cutoff *int64 `type:"integer" required:"true"` + + // The duration of the Maintenance Window in hours. + // + // Duration is a required field + Duration *int64 `min:"1" type:"integer" required:"true"` + + // The name of the Maintenance Window. + // + // Name is a required field + Name *string `min:"3" type:"string" required:"true"` + + // The schedule of the Maintenance Window in the form of a cron or rate expression. + // + // Schedule is a required field + Schedule *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateMaintenanceWindowInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateMaintenanceWindowInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateMaintenanceWindowInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateMaintenanceWindowInput"} + if s.AllowUnassociatedTargets == nil { + invalidParams.Add(request.NewErrParamRequired("AllowUnassociatedTargets")) + } + if s.ClientToken != nil && len(*s.ClientToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) + } + if s.Cutoff == nil { + invalidParams.Add(request.NewErrParamRequired("Cutoff")) + } + if s.Duration == nil { + invalidParams.Add(request.NewErrParamRequired("Duration")) + } + if s.Duration != nil && *s.Duration < 1 { + invalidParams.Add(request.NewErrParamMinValue("Duration", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 3 { + invalidParams.Add(request.NewErrParamMinLen("Name", 3)) + } + if s.Schedule == nil { + invalidParams.Add(request.NewErrParamRequired("Schedule")) + } + if s.Schedule != nil && len(*s.Schedule) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Schedule", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAllowUnassociatedTargets sets the AllowUnassociatedTargets field's value. +func (s *CreateMaintenanceWindowInput) SetAllowUnassociatedTargets(v bool) *CreateMaintenanceWindowInput { + s.AllowUnassociatedTargets = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateMaintenanceWindowInput) SetClientToken(v string) *CreateMaintenanceWindowInput { + s.ClientToken = &v + return s +} + +// SetCutoff sets the Cutoff field's value. +func (s *CreateMaintenanceWindowInput) SetCutoff(v int64) *CreateMaintenanceWindowInput { + s.Cutoff = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *CreateMaintenanceWindowInput) SetDuration(v int64) *CreateMaintenanceWindowInput { + s.Duration = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateMaintenanceWindowInput) SetName(v string) *CreateMaintenanceWindowInput { + s.Name = &v + return s +} + +// SetSchedule sets the Schedule field's value. +func (s *CreateMaintenanceWindowInput) SetSchedule(v string) *CreateMaintenanceWindowInput { + s.Schedule = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateMaintenanceWindowResult +type CreateMaintenanceWindowOutput struct { + _ struct{} `type:"structure"` + + // The ID of the created Maintenance Window. + WindowId *string `min:"20" type:"string"` +} + +// String returns the string representation +func (s CreateMaintenanceWindowOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateMaintenanceWindowOutput) GoString() string { + return s.String() +} + +// SetWindowId sets the WindowId field's value. +func (s *CreateMaintenanceWindowOutput) SetWindowId(v string) *CreateMaintenanceWindowOutput { + s.WindowId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreatePatchBaselineRequest +type CreatePatchBaselineInput struct { + _ struct{} `type:"structure"` + + // A set of rules used to include patches in the baseline. + ApprovalRules *PatchRuleGroup `type:"structure"` + + // A list of explicitly approved patches for the baseline. + ApprovedPatches []*string `type:"list"` + + // Caller-provided idempotency token. + ClientToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // A description of the patch baseline. + Description *string `min:"1" type:"string"` + + // A set of global filters used to exclude patches from the baseline. + GlobalFilters *PatchFilterGroup `type:"structure"` + + // The name of the patch baseline. + // + // Name is a required field + Name *string `min:"3" type:"string" required:"true"` + + // A list of explicitly rejected patches for the baseline. + RejectedPatches []*string `type:"list"` +} + +// String returns the string representation +func (s CreatePatchBaselineInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePatchBaselineInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreatePatchBaselineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreatePatchBaselineInput"} + if s.ClientToken != nil && len(*s.ClientToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) + } + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 3 { + invalidParams.Add(request.NewErrParamMinLen("Name", 3)) + } + if s.ApprovalRules != nil { + if err := s.ApprovalRules.Validate(); err != nil { + invalidParams.AddNested("ApprovalRules", err.(request.ErrInvalidParams)) + } + } + if s.GlobalFilters != nil { + if err := s.GlobalFilters.Validate(); err != nil { + invalidParams.AddNested("GlobalFilters", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApprovalRules sets the ApprovalRules field's value. +func (s *CreatePatchBaselineInput) SetApprovalRules(v *PatchRuleGroup) *CreatePatchBaselineInput { + s.ApprovalRules = v + return s +} + +// SetApprovedPatches sets the ApprovedPatches field's value. +func (s *CreatePatchBaselineInput) SetApprovedPatches(v []*string) *CreatePatchBaselineInput { + s.ApprovedPatches = v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreatePatchBaselineInput) SetClientToken(v string) *CreatePatchBaselineInput { + s.ClientToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreatePatchBaselineInput) SetDescription(v string) *CreatePatchBaselineInput { + s.Description = &v + return s +} + +// SetGlobalFilters sets the GlobalFilters field's value. +func (s *CreatePatchBaselineInput) SetGlobalFilters(v *PatchFilterGroup) *CreatePatchBaselineInput { + s.GlobalFilters = v + return s +} + +// SetName sets the Name field's value. +func (s *CreatePatchBaselineInput) SetName(v string) *CreatePatchBaselineInput { + s.Name = &v + return s +} + +// SetRejectedPatches sets the RejectedPatches field's value. +func (s *CreatePatchBaselineInput) SetRejectedPatches(v []*string) *CreatePatchBaselineInput { + s.RejectedPatches = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreatePatchBaselineResult +type CreatePatchBaselineOutput struct { + _ struct{} `type:"structure"` + + // The ID of the created patch baseline. + BaselineId *string `min:"20" type:"string"` +} + +// String returns the string representation +func (s CreatePatchBaselineOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePatchBaselineOutput) GoString() string { + return s.String() +} + +// SetBaselineId sets the BaselineId field's value. +func (s *CreatePatchBaselineOutput) SetBaselineId(v string) *CreatePatchBaselineOutput { + s.BaselineId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteActivationRequest +type DeleteActivationInput struct { + _ struct{} `type:"structure"` + + // The ID of the activation that you want to delete. + // + // ActivationId is a required field + ActivationId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteActivationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteActivationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteActivationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteActivationInput"} + if s.ActivationId == nil { + invalidParams.Add(request.NewErrParamRequired("ActivationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetActivationId sets the ActivationId field's value. +func (s *DeleteActivationInput) SetActivationId(v string) *DeleteActivationInput { + s.ActivationId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteActivationResult +type DeleteActivationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteActivationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteActivationOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteAssociationRequest +type DeleteAssociationInput struct { + _ struct{} `type:"structure"` + + // The association ID that you want to delete. + AssociationId *string `type:"string"` + + // The ID of the instance. + InstanceId *string `type:"string"` + + // The name of the SSM document. + Name *string `type:"string"` +} + +// String returns the string representation +func (s DeleteAssociationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAssociationInput) GoString() string { + return s.String() +} + +// SetAssociationId sets the AssociationId field's value. +func (s *DeleteAssociationInput) SetAssociationId(v string) *DeleteAssociationInput { + s.AssociationId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DeleteAssociationInput) SetInstanceId(v string) *DeleteAssociationInput { + s.InstanceId = &v + return s +} + +// SetName sets the Name field's value. +func (s *DeleteAssociationInput) SetName(v string) *DeleteAssociationInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteAssociationResult +type DeleteAssociationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteAssociationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAssociationOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteDocumentRequest +type DeleteDocumentInput struct { + _ struct{} `type:"structure"` + + // The name of the SSM document. + // + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteDocumentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDocumentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDocumentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDocumentInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *DeleteDocumentInput) SetName(v string) *DeleteDocumentInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteDocumentResult +type DeleteDocumentOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteDocumentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDocumentOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteMaintenanceWindowRequest +type DeleteMaintenanceWindowInput struct { + _ struct{} `type:"structure"` + + // The ID of the Maintenance Window to delete. + // + // WindowId is a required field + WindowId *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteMaintenanceWindowInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteMaintenanceWindowInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteMaintenanceWindowInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteMaintenanceWindowInput"} + if s.WindowId == nil { + invalidParams.Add(request.NewErrParamRequired("WindowId")) + } + if s.WindowId != nil && len(*s.WindowId) < 20 { + invalidParams.Add(request.NewErrParamMinLen("WindowId", 20)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetWindowId sets the WindowId field's value. +func (s *DeleteMaintenanceWindowInput) SetWindowId(v string) *DeleteMaintenanceWindowInput { + s.WindowId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteMaintenanceWindowResult +type DeleteMaintenanceWindowOutput struct { + _ struct{} `type:"structure"` + + // The ID of the deleted Maintenance Window. + WindowId *string `min:"20" type:"string"` +} + +// String returns the string representation +func (s DeleteMaintenanceWindowOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteMaintenanceWindowOutput) GoString() string { + return s.String() +} + +// SetWindowId sets the WindowId field's value. +func (s *DeleteMaintenanceWindowOutput) SetWindowId(v string) *DeleteMaintenanceWindowOutput { + s.WindowId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteParameterRequest +type DeleteParameterInput struct { + _ struct{} `type:"structure"` + + // The name of the parameter to delete. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteParameterInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteParameterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteParameterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteParameterInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *DeleteParameterInput) SetName(v string) *DeleteParameterInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteParameterResult +type DeleteParameterOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteParameterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteParameterOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeletePatchBaselineRequest +type DeletePatchBaselineInput struct { + _ struct{} `type:"structure"` + + // The ID of the patch baseline to delete. + // + // BaselineId is a required field + BaselineId *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeletePatchBaselineInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeletePatchBaselineInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeletePatchBaselineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeletePatchBaselineInput"} + if s.BaselineId == nil { + invalidParams.Add(request.NewErrParamRequired("BaselineId")) + } + if s.BaselineId != nil && len(*s.BaselineId) < 20 { + invalidParams.Add(request.NewErrParamMinLen("BaselineId", 20)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBaselineId sets the BaselineId field's value. +func (s *DeletePatchBaselineInput) SetBaselineId(v string) *DeletePatchBaselineInput { + s.BaselineId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeletePatchBaselineResult +type DeletePatchBaselineOutput struct { + _ struct{} `type:"structure"` + + // The ID of the deleted patch baseline. + BaselineId *string `min:"20" type:"string"` +} + +// String returns the string representation +func (s DeletePatchBaselineOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeletePatchBaselineOutput) GoString() string { + return s.String() +} + +// SetBaselineId sets the BaselineId field's value. +func (s *DeletePatchBaselineOutput) SetBaselineId(v string) *DeletePatchBaselineOutput { + s.BaselineId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeregisterManagedInstanceRequest +type DeregisterManagedInstanceInput struct { + _ struct{} `type:"structure"` + + // The ID assigned to the managed instance when you registered it using the + // activation process. + // + // InstanceId is a required field + InstanceId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeregisterManagedInstanceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeregisterManagedInstanceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeregisterManagedInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeregisterManagedInstanceInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DeregisterManagedInstanceInput) SetInstanceId(v string) *DeregisterManagedInstanceInput { + s.InstanceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeregisterManagedInstanceResult +type DeregisterManagedInstanceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeregisterManagedInstanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeregisterManagedInstanceOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeregisterPatchBaselineForPatchGroupRequest +type DeregisterPatchBaselineForPatchGroupInput struct { + _ struct{} `type:"structure"` + + // The ID of the patch baseline to deregister the patch group from. + // + // BaselineId is a required field + BaselineId *string `min:"20" type:"string" required:"true"` + + // The name of the patch group that should be deregistered from the patch baseline. + // + // PatchGroup is a required field + PatchGroup *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeregisterPatchBaselineForPatchGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeregisterPatchBaselineForPatchGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeregisterPatchBaselineForPatchGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeregisterPatchBaselineForPatchGroupInput"} + if s.BaselineId == nil { + invalidParams.Add(request.NewErrParamRequired("BaselineId")) + } + if s.BaselineId != nil && len(*s.BaselineId) < 20 { + invalidParams.Add(request.NewErrParamMinLen("BaselineId", 20)) + } + if s.PatchGroup == nil { + invalidParams.Add(request.NewErrParamRequired("PatchGroup")) + } + if s.PatchGroup != nil && len(*s.PatchGroup) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PatchGroup", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBaselineId sets the BaselineId field's value. +func (s *DeregisterPatchBaselineForPatchGroupInput) SetBaselineId(v string) *DeregisterPatchBaselineForPatchGroupInput { + s.BaselineId = &v + return s +} + +// SetPatchGroup sets the PatchGroup field's value. +func (s *DeregisterPatchBaselineForPatchGroupInput) SetPatchGroup(v string) *DeregisterPatchBaselineForPatchGroupInput { + s.PatchGroup = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeregisterPatchBaselineForPatchGroupResult +type DeregisterPatchBaselineForPatchGroupOutput struct { + _ struct{} `type:"structure"` + + // The ID of the patch baseline the patch group was deregistered from. + BaselineId *string `min:"20" type:"string"` + + // The name of the patch group deregistered from the patch baseline. + PatchGroup *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DeregisterPatchBaselineForPatchGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeregisterPatchBaselineForPatchGroupOutput) GoString() string { + return s.String() +} + +// SetBaselineId sets the BaselineId field's value. +func (s *DeregisterPatchBaselineForPatchGroupOutput) SetBaselineId(v string) *DeregisterPatchBaselineForPatchGroupOutput { + s.BaselineId = &v + return s +} + +// SetPatchGroup sets the PatchGroup field's value. +func (s *DeregisterPatchBaselineForPatchGroupOutput) SetPatchGroup(v string) *DeregisterPatchBaselineForPatchGroupOutput { + s.PatchGroup = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeregisterTargetFromMaintenanceWindowRequest +type DeregisterTargetFromMaintenanceWindowInput struct { + _ struct{} `type:"structure"` + + // The ID of the Maintenance Window the target should be removed from. + // + // WindowId is a required field + WindowId *string `min:"20" type:"string" required:"true"` + + // The ID of the target definition to remove. + // + // WindowTargetId is a required field + WindowTargetId *string `min:"36" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeregisterTargetFromMaintenanceWindowInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeregisterTargetFromMaintenanceWindowInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeregisterTargetFromMaintenanceWindowInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeregisterTargetFromMaintenanceWindowInput"} + if s.WindowId == nil { + invalidParams.Add(request.NewErrParamRequired("WindowId")) + } + if s.WindowId != nil && len(*s.WindowId) < 20 { + invalidParams.Add(request.NewErrParamMinLen("WindowId", 20)) + } + if s.WindowTargetId == nil { + invalidParams.Add(request.NewErrParamRequired("WindowTargetId")) + } + if s.WindowTargetId != nil && len(*s.WindowTargetId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("WindowTargetId", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetWindowId sets the WindowId field's value. +func (s *DeregisterTargetFromMaintenanceWindowInput) SetWindowId(v string) *DeregisterTargetFromMaintenanceWindowInput { + s.WindowId = &v + return s +} + +// SetWindowTargetId sets the WindowTargetId field's value. +func (s *DeregisterTargetFromMaintenanceWindowInput) SetWindowTargetId(v string) *DeregisterTargetFromMaintenanceWindowInput { + s.WindowTargetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeregisterTargetFromMaintenanceWindowResult +type DeregisterTargetFromMaintenanceWindowOutput struct { + _ struct{} `type:"structure"` + + // The ID of the Maintenance Window the target was removed from. + WindowId *string `min:"20" type:"string"` + + // The ID of the removed target definition. + WindowTargetId *string `min:"36" type:"string"` +} + +// String returns the string representation +func (s DeregisterTargetFromMaintenanceWindowOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeregisterTargetFromMaintenanceWindowOutput) GoString() string { + return s.String() +} + +// SetWindowId sets the WindowId field's value. +func (s *DeregisterTargetFromMaintenanceWindowOutput) SetWindowId(v string) *DeregisterTargetFromMaintenanceWindowOutput { + s.WindowId = &v + return s +} + +// SetWindowTargetId sets the WindowTargetId field's value. +func (s *DeregisterTargetFromMaintenanceWindowOutput) SetWindowTargetId(v string) *DeregisterTargetFromMaintenanceWindowOutput { + s.WindowTargetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeregisterTaskFromMaintenanceWindowRequest +type DeregisterTaskFromMaintenanceWindowInput struct { + _ struct{} `type:"structure"` + + // The ID of the Maintenance Window the task should be removed from. + // + // WindowId is a required field + WindowId *string `min:"20" type:"string" required:"true"` + + // The ID of the task to remove from the Maintenance Window. + // + // WindowTaskId is a required field + WindowTaskId *string `min:"36" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeregisterTaskFromMaintenanceWindowInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeregisterTaskFromMaintenanceWindowInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeregisterTaskFromMaintenanceWindowInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeregisterTaskFromMaintenanceWindowInput"} + if s.WindowId == nil { + invalidParams.Add(request.NewErrParamRequired("WindowId")) + } + if s.WindowId != nil && len(*s.WindowId) < 20 { + invalidParams.Add(request.NewErrParamMinLen("WindowId", 20)) + } + if s.WindowTaskId == nil { + invalidParams.Add(request.NewErrParamRequired("WindowTaskId")) + } + if s.WindowTaskId != nil && len(*s.WindowTaskId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("WindowTaskId", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetWindowId sets the WindowId field's value. +func (s *DeregisterTaskFromMaintenanceWindowInput) SetWindowId(v string) *DeregisterTaskFromMaintenanceWindowInput { + s.WindowId = &v + return s +} + +// SetWindowTaskId sets the WindowTaskId field's value. +func (s *DeregisterTaskFromMaintenanceWindowInput) SetWindowTaskId(v string) *DeregisterTaskFromMaintenanceWindowInput { + s.WindowTaskId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeregisterTaskFromMaintenanceWindowResult +type DeregisterTaskFromMaintenanceWindowOutput struct { + _ struct{} `type:"structure"` + + // The ID of the Maintenance Window the task was removed from. + WindowId *string `min:"20" type:"string"` + + // The ID of the task removed from the Maintenance Window. + WindowTaskId *string `min:"36" type:"string"` +} + +// String returns the string representation +func (s DeregisterTaskFromMaintenanceWindowOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeregisterTaskFromMaintenanceWindowOutput) GoString() string { + return s.String() +} + +// SetWindowId sets the WindowId field's value. +func (s *DeregisterTaskFromMaintenanceWindowOutput) SetWindowId(v string) *DeregisterTaskFromMaintenanceWindowOutput { + s.WindowId = &v + return s +} + +// SetWindowTaskId sets the WindowTaskId field's value. +func (s *DeregisterTaskFromMaintenanceWindowOutput) SetWindowTaskId(v string) *DeregisterTaskFromMaintenanceWindowOutput { + s.WindowTaskId = &v + return s +} + +// Filter for the DescribeActivation API. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeActivationsFilter +type DescribeActivationsFilter struct { + _ struct{} `type:"structure"` + + // The name of the filter. + FilterKey *string `type:"string" enum:"DescribeActivationsFilterKeys"` + + // The filter values. + FilterValues []*string `type:"list"` +} + +// String returns the string representation +func (s DescribeActivationsFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeActivationsFilter) GoString() string { + return s.String() +} + +// SetFilterKey sets the FilterKey field's value. +func (s *DescribeActivationsFilter) SetFilterKey(v string) *DescribeActivationsFilter { + s.FilterKey = &v + return s +} + +// SetFilterValues sets the FilterValues field's value. +func (s *DescribeActivationsFilter) SetFilterValues(v []*string) *DescribeActivationsFilter { + s.FilterValues = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeActivationsRequest +type DescribeActivationsInput struct { + _ struct{} `type:"structure"` + + // A filter to view information about your activations. + Filters []*DescribeActivationsFilter `type:"list"` + + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `min:"1" type:"integer"` + + // A token to start the list. Use this token to get the next set of results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeActivationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeActivationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeActivationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeActivationsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *DescribeActivationsInput) SetFilters(v []*DescribeActivationsFilter) *DescribeActivationsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeActivationsInput) SetMaxResults(v int64) *DescribeActivationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeActivationsInput) SetNextToken(v string) *DescribeActivationsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeActivationsResult +type DescribeActivationsOutput struct { + _ struct{} `type:"structure"` + + // A list of activations for your AWS account. + ActivationList []*Activation `type:"list"` + + // The token for the next set of items to return. Use this token to get the + // next set of results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeActivationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeActivationsOutput) GoString() string { + return s.String() +} + +// SetActivationList sets the ActivationList field's value. +func (s *DescribeActivationsOutput) SetActivationList(v []*Activation) *DescribeActivationsOutput { + s.ActivationList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeActivationsOutput) SetNextToken(v string) *DescribeActivationsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeAssociationRequest +type DescribeAssociationInput struct { + _ struct{} `type:"structure"` + + // The association ID for which you want information. + AssociationId *string `type:"string"` + + // The instance ID. + InstanceId *string `type:"string"` + + // The name of the SSM document. + Name *string `type:"string"` +} + +// String returns the string representation +func (s DescribeAssociationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAssociationInput) GoString() string { + return s.String() +} + +// SetAssociationId sets the AssociationId field's value. +func (s *DescribeAssociationInput) SetAssociationId(v string) *DescribeAssociationInput { + s.AssociationId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeAssociationInput) SetInstanceId(v string) *DescribeAssociationInput { + s.InstanceId = &v + return s +} + +// SetName sets the Name field's value. +func (s *DescribeAssociationInput) SetName(v string) *DescribeAssociationInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeAssociationResult +type DescribeAssociationOutput struct { + _ struct{} `type:"structure"` + + // Information about the association. + AssociationDescription *AssociationDescription `type:"structure"` +} + +// String returns the string representation +func (s DescribeAssociationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAssociationOutput) GoString() string { + return s.String() +} + +// SetAssociationDescription sets the AssociationDescription field's value. +func (s *DescribeAssociationOutput) SetAssociationDescription(v *AssociationDescription) *DescribeAssociationOutput { + s.AssociationDescription = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeAutomationExecutionsRequest +type DescribeAutomationExecutionsInput struct { + _ struct{} `type:"structure"` + + // Filters used to limit the scope of executions that are requested. + Filters []*AutomationExecutionFilter `min:"1" type:"list"` + + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeAutomationExecutionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAutomationExecutionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeAutomationExecutionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeAutomationExecutionsInput"} + if s.Filters != nil && len(s.Filters) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *DescribeAutomationExecutionsInput) SetFilters(v []*AutomationExecutionFilter) *DescribeAutomationExecutionsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeAutomationExecutionsInput) SetMaxResults(v int64) *DescribeAutomationExecutionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAutomationExecutionsInput) SetNextToken(v string) *DescribeAutomationExecutionsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeAutomationExecutionsResult +type DescribeAutomationExecutionsOutput struct { + _ struct{} `type:"structure"` + + // The list of details about each automation execution which has occurred which + // matches the filter specification, if any. + AutomationExecutionMetadataList []*AutomationExecutionMetadata `type:"list"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeAutomationExecutionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAutomationExecutionsOutput) GoString() string { + return s.String() +} + +// SetAutomationExecutionMetadataList sets the AutomationExecutionMetadataList field's value. +func (s *DescribeAutomationExecutionsOutput) SetAutomationExecutionMetadataList(v []*AutomationExecutionMetadata) *DescribeAutomationExecutionsOutput { + s.AutomationExecutionMetadataList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAutomationExecutionsOutput) SetNextToken(v string) *DescribeAutomationExecutionsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeAvailablePatchesRequest +type DescribeAvailablePatchesInput struct { + _ struct{} `type:"structure"` + + // Filters used to scope down the returned patches. + Filters []*PatchOrchestratorFilter `type:"list"` + + // The maximum number of patches to return (per page). + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeAvailablePatchesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAvailablePatchesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeAvailablePatchesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeAvailablePatchesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *DescribeAvailablePatchesInput) SetFilters(v []*PatchOrchestratorFilter) *DescribeAvailablePatchesInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeAvailablePatchesInput) SetMaxResults(v int64) *DescribeAvailablePatchesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAvailablePatchesInput) SetNextToken(v string) *DescribeAvailablePatchesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeAvailablePatchesResult +type DescribeAvailablePatchesOutput struct { + _ struct{} `type:"structure"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` + + // An array of patches. Each entry in the array is a patch structure. + Patches []*Patch `type:"list"` +} + +// String returns the string representation +func (s DescribeAvailablePatchesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAvailablePatchesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAvailablePatchesOutput) SetNextToken(v string) *DescribeAvailablePatchesOutput { + s.NextToken = &v + return s +} + +// SetPatches sets the Patches field's value. +func (s *DescribeAvailablePatchesOutput) SetPatches(v []*Patch) *DescribeAvailablePatchesOutput { + s.Patches = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeDocumentRequest +type DescribeDocumentInput struct { + _ struct{} `type:"structure"` + + // The document version for which you want information. Can be a specific version + // or the default version. + DocumentVersion *string `type:"string"` + + // The name of the SSM document. + // + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeDocumentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDocumentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeDocumentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeDocumentInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocumentVersion sets the DocumentVersion field's value. +func (s *DescribeDocumentInput) SetDocumentVersion(v string) *DescribeDocumentInput { + s.DocumentVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *DescribeDocumentInput) SetName(v string) *DescribeDocumentInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeDocumentResult +type DescribeDocumentOutput struct { + _ struct{} `type:"structure"` + + // Information about the SSM document. + Document *DocumentDescription `type:"structure"` +} + +// String returns the string representation +func (s DescribeDocumentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDocumentOutput) GoString() string { + return s.String() +} + +// SetDocument sets the Document field's value. +func (s *DescribeDocumentOutput) SetDocument(v *DocumentDescription) *DescribeDocumentOutput { + s.Document = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeDocumentPermissionRequest +type DescribeDocumentPermissionInput struct { + _ struct{} `type:"structure"` + + // The name of the document for which you are the owner. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The permission type for the document. The permission type can be Share. + // + // PermissionType is a required field + PermissionType *string `type:"string" required:"true" enum:"DocumentPermissionType"` +} + +// String returns the string representation +func (s DescribeDocumentPermissionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDocumentPermissionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeDocumentPermissionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeDocumentPermissionInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.PermissionType == nil { + invalidParams.Add(request.NewErrParamRequired("PermissionType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *DescribeDocumentPermissionInput) SetName(v string) *DescribeDocumentPermissionInput { + s.Name = &v + return s +} + +// SetPermissionType sets the PermissionType field's value. +func (s *DescribeDocumentPermissionInput) SetPermissionType(v string) *DescribeDocumentPermissionInput { + s.PermissionType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeDocumentPermissionResponse +type DescribeDocumentPermissionOutput struct { + _ struct{} `type:"structure"` + + // The account IDs that have permission to use this document. The ID can be + // either an AWS account or All. + AccountIds []*string `locationNameList:"AccountId" type:"list"` +} + +// String returns the string representation +func (s DescribeDocumentPermissionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDocumentPermissionOutput) GoString() string { + return s.String() +} + +// SetAccountIds sets the AccountIds field's value. +func (s *DescribeDocumentPermissionOutput) SetAccountIds(v []*string) *DescribeDocumentPermissionOutput { + s.AccountIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeEffectiveInstanceAssociationsRequest +type DescribeEffectiveInstanceAssociationsInput struct { + _ struct{} `type:"structure"` + + // The instance ID for which you want to view all associations. + // + // InstanceId is a required field + InstanceId *string `type:"string" required:"true"` + + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeEffectiveInstanceAssociationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEffectiveInstanceAssociationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeEffectiveInstanceAssociationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeEffectiveInstanceAssociationsInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeEffectiveInstanceAssociationsInput) SetInstanceId(v string) *DescribeEffectiveInstanceAssociationsInput { + s.InstanceId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeEffectiveInstanceAssociationsInput) SetMaxResults(v int64) *DescribeEffectiveInstanceAssociationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEffectiveInstanceAssociationsInput) SetNextToken(v string) *DescribeEffectiveInstanceAssociationsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeEffectiveInstanceAssociationsResult +type DescribeEffectiveInstanceAssociationsOutput struct { + _ struct{} `type:"structure"` + + // The associations for the requested instance. + Associations []*InstanceAssociation `type:"list"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeEffectiveInstanceAssociationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEffectiveInstanceAssociationsOutput) GoString() string { + return s.String() +} + +// SetAssociations sets the Associations field's value. +func (s *DescribeEffectiveInstanceAssociationsOutput) SetAssociations(v []*InstanceAssociation) *DescribeEffectiveInstanceAssociationsOutput { + s.Associations = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEffectiveInstanceAssociationsOutput) SetNextToken(v string) *DescribeEffectiveInstanceAssociationsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeEffectivePatchesForPatchBaselineRequest +type DescribeEffectivePatchesForPatchBaselineInput struct { + _ struct{} `type:"structure"` + + // The ID of the patch baseline to retrieve the effective patches for. + // + // BaselineId is a required field + BaselineId *string `min:"20" type:"string" required:"true"` + + // The maximum number of patches to return (per page). + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeEffectivePatchesForPatchBaselineInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEffectivePatchesForPatchBaselineInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeEffectivePatchesForPatchBaselineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeEffectivePatchesForPatchBaselineInput"} + if s.BaselineId == nil { + invalidParams.Add(request.NewErrParamRequired("BaselineId")) + } + if s.BaselineId != nil && len(*s.BaselineId) < 20 { + invalidParams.Add(request.NewErrParamMinLen("BaselineId", 20)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBaselineId sets the BaselineId field's value. +func (s *DescribeEffectivePatchesForPatchBaselineInput) SetBaselineId(v string) *DescribeEffectivePatchesForPatchBaselineInput { + s.BaselineId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeEffectivePatchesForPatchBaselineInput) SetMaxResults(v int64) *DescribeEffectivePatchesForPatchBaselineInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEffectivePatchesForPatchBaselineInput) SetNextToken(v string) *DescribeEffectivePatchesForPatchBaselineInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeEffectivePatchesForPatchBaselineResult +type DescribeEffectivePatchesForPatchBaselineOutput struct { + _ struct{} `type:"structure"` + + // An array of patches and patch status. + EffectivePatches []*EffectivePatch `type:"list"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeEffectivePatchesForPatchBaselineOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEffectivePatchesForPatchBaselineOutput) GoString() string { + return s.String() +} + +// SetEffectivePatches sets the EffectivePatches field's value. +func (s *DescribeEffectivePatchesForPatchBaselineOutput) SetEffectivePatches(v []*EffectivePatch) *DescribeEffectivePatchesForPatchBaselineOutput { + s.EffectivePatches = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeEffectivePatchesForPatchBaselineOutput) SetNextToken(v string) *DescribeEffectivePatchesForPatchBaselineOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstanceAssociationsStatusRequest +type DescribeInstanceAssociationsStatusInput struct { + _ struct{} `type:"structure"` + + // The instance IDs for which you want association status information. + // + // InstanceId is a required field + InstanceId *string `type:"string" required:"true"` + + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeInstanceAssociationsStatusInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeInstanceAssociationsStatusInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeInstanceAssociationsStatusInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceAssociationsStatusInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeInstanceAssociationsStatusInput) SetInstanceId(v string) *DescribeInstanceAssociationsStatusInput { + s.InstanceId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeInstanceAssociationsStatusInput) SetMaxResults(v int64) *DescribeInstanceAssociationsStatusInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstanceAssociationsStatusInput) SetNextToken(v string) *DescribeInstanceAssociationsStatusInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstanceAssociationsStatusResult +type DescribeInstanceAssociationsStatusOutput struct { + _ struct{} `type:"structure"` + + // Status information about the association. + InstanceAssociationStatusInfos []*InstanceAssociationStatusInfo `type:"list"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeInstanceAssociationsStatusOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeInstanceAssociationsStatusOutput) GoString() string { + return s.String() +} + +// SetInstanceAssociationStatusInfos sets the InstanceAssociationStatusInfos field's value. +func (s *DescribeInstanceAssociationsStatusOutput) SetInstanceAssociationStatusInfos(v []*InstanceAssociationStatusInfo) *DescribeInstanceAssociationsStatusOutput { + s.InstanceAssociationStatusInfos = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstanceAssociationsStatusOutput) SetNextToken(v string) *DescribeInstanceAssociationsStatusOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstanceInformationRequest +type DescribeInstanceInformationInput struct { + _ struct{} `type:"structure"` + + // One or more filters. Use a filter to return a more specific list of instances. + Filters []*InstanceInformationStringFilter `locationNameList:"InstanceInformationStringFilter" type:"list"` + + // One or more filters. Use a filter to return a more specific list of instances. + InstanceInformationFilterList []*InstanceInformationFilter `locationNameList:"InstanceInformationFilter" type:"list"` + + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `min:"5" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeInstanceInformationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeInstanceInformationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeInstanceInformationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceInformationInput"} + if s.MaxResults != nil && *s.MaxResults < 5 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + if s.InstanceInformationFilterList != nil { + for i, v := range s.InstanceInformationFilterList { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InstanceInformationFilterList", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *DescribeInstanceInformationInput) SetFilters(v []*InstanceInformationStringFilter) *DescribeInstanceInformationInput { + s.Filters = v + return s +} + +// SetInstanceInformationFilterList sets the InstanceInformationFilterList field's value. +func (s *DescribeInstanceInformationInput) SetInstanceInformationFilterList(v []*InstanceInformationFilter) *DescribeInstanceInformationInput { + s.InstanceInformationFilterList = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeInstanceInformationInput) SetMaxResults(v int64) *DescribeInstanceInformationInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstanceInformationInput) SetNextToken(v string) *DescribeInstanceInformationInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstanceInformationResult +type DescribeInstanceInformationOutput struct { + _ struct{} `type:"structure"` + + // The instance information list. + InstanceInformationList []*InstanceInformation `locationNameList:"InstanceInformation" type:"list"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeInstanceInformationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeInstanceInformationOutput) GoString() string { + return s.String() +} + +// SetInstanceInformationList sets the InstanceInformationList field's value. +func (s *DescribeInstanceInformationOutput) SetInstanceInformationList(v []*InstanceInformation) *DescribeInstanceInformationOutput { + s.InstanceInformationList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstanceInformationOutput) SetNextToken(v string) *DescribeInstanceInformationOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstancePatchStatesForPatchGroupRequest +type DescribeInstancePatchStatesForPatchGroupInput struct { + _ struct{} `type:"structure"` + + // Each entry in the array is a structure containing: + // + // Key (string 1 ≤ length ≤ 200) + // + // Values (array containing a single string) + // + // Type (string “Equal”, “NotEqual”, “LessThan”, “GreaterThan”) + Filters []*InstancePatchStateFilter `type:"list"` + + // The maximum number of patches to return (per page). + MaxResults *int64 `min:"10" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` + + // The name of the patch group for which the patch state information should + // be retrieved. + // + // PatchGroup is a required field + PatchGroup *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeInstancePatchStatesForPatchGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeInstancePatchStatesForPatchGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeInstancePatchStatesForPatchGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeInstancePatchStatesForPatchGroupInput"} + if s.MaxResults != nil && *s.MaxResults < 10 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10)) + } + if s.PatchGroup == nil { + invalidParams.Add(request.NewErrParamRequired("PatchGroup")) + } + if s.PatchGroup != nil && len(*s.PatchGroup) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PatchGroup", 1)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *DescribeInstancePatchStatesForPatchGroupInput) SetFilters(v []*InstancePatchStateFilter) *DescribeInstancePatchStatesForPatchGroupInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeInstancePatchStatesForPatchGroupInput) SetMaxResults(v int64) *DescribeInstancePatchStatesForPatchGroupInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstancePatchStatesForPatchGroupInput) SetNextToken(v string) *DescribeInstancePatchStatesForPatchGroupInput { + s.NextToken = &v + return s +} + +// SetPatchGroup sets the PatchGroup field's value. +func (s *DescribeInstancePatchStatesForPatchGroupInput) SetPatchGroup(v string) *DescribeInstancePatchStatesForPatchGroupInput { + s.PatchGroup = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstancePatchStatesForPatchGroupResult +type DescribeInstancePatchStatesForPatchGroupOutput struct { + _ struct{} `type:"structure"` + + // The high-level patch state for the requested instances. + InstancePatchStates []*InstancePatchState `min:"1" type:"list"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeInstancePatchStatesForPatchGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeInstancePatchStatesForPatchGroupOutput) GoString() string { + return s.String() +} + +// SetInstancePatchStates sets the InstancePatchStates field's value. +func (s *DescribeInstancePatchStatesForPatchGroupOutput) SetInstancePatchStates(v []*InstancePatchState) *DescribeInstancePatchStatesForPatchGroupOutput { + s.InstancePatchStates = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstancePatchStatesForPatchGroupOutput) SetNextToken(v string) *DescribeInstancePatchStatesForPatchGroupOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstancePatchStatesRequest +type DescribeInstancePatchStatesInput struct { + _ struct{} `type:"structure"` + + // The ID of the instance whose patch state information should be retrieved. + // + // InstanceIds is a required field + InstanceIds []*string `type:"list" required:"true"` + + // The maximum number of instances to return (per page). + MaxResults *int64 `min:"10" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeInstancePatchStatesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeInstancePatchStatesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeInstancePatchStatesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeInstancePatchStatesInput"} + if s.InstanceIds == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceIds")) + } + if s.MaxResults != nil && *s.MaxResults < 10 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *DescribeInstancePatchStatesInput) SetInstanceIds(v []*string) *DescribeInstancePatchStatesInput { + s.InstanceIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeInstancePatchStatesInput) SetMaxResults(v int64) *DescribeInstancePatchStatesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstancePatchStatesInput) SetNextToken(v string) *DescribeInstancePatchStatesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstancePatchStatesResult +type DescribeInstancePatchStatesOutput struct { + _ struct{} `type:"structure"` + + // The high-level patch state for the requested instances. + InstancePatchStates []*InstancePatchState `type:"list"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeInstancePatchStatesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeInstancePatchStatesOutput) GoString() string { + return s.String() +} + +// SetInstancePatchStates sets the InstancePatchStates field's value. +func (s *DescribeInstancePatchStatesOutput) SetInstancePatchStates(v []*InstancePatchState) *DescribeInstancePatchStatesOutput { + s.InstancePatchStates = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstancePatchStatesOutput) SetNextToken(v string) *DescribeInstancePatchStatesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstancePatchesRequest +type DescribeInstancePatchesInput struct { + _ struct{} `type:"structure"` + + // Each entry in the array is a structure containing: + // + // Key (string, 1 ≤ length ≤ 128) + // + // Values (array of strings 1 ≤ length ≤ 256) + Filters []*PatchOrchestratorFilter `type:"list"` + + // The ID of the instance whose patch state information should be retrieved. + // + // InstanceId is a required field + InstanceId *string `type:"string" required:"true"` + + // The maximum number of patches to return (per page). + MaxResults *int64 `min:"10" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeInstancePatchesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeInstancePatchesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeInstancePatchesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeInstancePatchesInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.MaxResults != nil && *s.MaxResults < 10 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *DescribeInstancePatchesInput) SetFilters(v []*PatchOrchestratorFilter) *DescribeInstancePatchesInput { + s.Filters = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeInstancePatchesInput) SetInstanceId(v string) *DescribeInstancePatchesInput { + s.InstanceId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeInstancePatchesInput) SetMaxResults(v int64) *DescribeInstancePatchesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstancePatchesInput) SetNextToken(v string) *DescribeInstancePatchesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstancePatchesResult +type DescribeInstancePatchesOutput struct { + _ struct{} `type:"structure"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` + + // Each entry in the array is a structure containing: + // + // Title (string) + // + // KBId (string) + // + // Classification (string) + // + // Severity (string) + // + // State (string – “INSTALLED”, “INSTALLED_OTHER”, “MISSING”, “NOT_APPLICABLE”, + // “FAILED”) + // + // InstalledTime (DateTime) + // + // InstalledBy (string) + Patches []*PatchComplianceData `type:"list"` +} + +// String returns the string representation +func (s DescribeInstancePatchesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeInstancePatchesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeInstancePatchesOutput) SetNextToken(v string) *DescribeInstancePatchesOutput { + s.NextToken = &v + return s +} + +// SetPatches sets the Patches field's value. +func (s *DescribeInstancePatchesOutput) SetPatches(v []*PatchComplianceData) *DescribeInstancePatchesOutput { + s.Patches = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowExecutionTaskInvocationsRequest +type DescribeMaintenanceWindowExecutionTaskInvocationsInput struct { + _ struct{} `type:"structure"` + + // Optional filters used to scope down the returned task invocations. The supported + // filter key is STATUS with the corresponding values PENDING, IN_PROGRESS, + // SUCCESS, FAILED, TIMED_OUT, CANCELLING, and CANCELLED. + Filters []*MaintenanceWindowFilter `type:"list"` + + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `min:"10" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` + + // The ID of the specific task in the Maintenance Window task that should be + // retrieved. + // + // TaskId is a required field + TaskId *string `min:"36" type:"string" required:"true"` + + // The ID of the Maintenance Window execution the task is part of. + // + // WindowExecutionId is a required field + WindowExecutionId *string `min:"36" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeMaintenanceWindowExecutionTaskInvocationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMaintenanceWindowExecutionTaskInvocationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeMaintenanceWindowExecutionTaskInvocationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeMaintenanceWindowExecutionTaskInvocationsInput"} + if s.MaxResults != nil && *s.MaxResults < 10 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10)) + } + if s.TaskId == nil { + invalidParams.Add(request.NewErrParamRequired("TaskId")) + } + if s.TaskId != nil && len(*s.TaskId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("TaskId", 36)) + } + if s.WindowExecutionId == nil { + invalidParams.Add(request.NewErrParamRequired("WindowExecutionId")) + } + if s.WindowExecutionId != nil && len(*s.WindowExecutionId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("WindowExecutionId", 36)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *DescribeMaintenanceWindowExecutionTaskInvocationsInput) SetFilters(v []*MaintenanceWindowFilter) *DescribeMaintenanceWindowExecutionTaskInvocationsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeMaintenanceWindowExecutionTaskInvocationsInput) SetMaxResults(v int64) *DescribeMaintenanceWindowExecutionTaskInvocationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMaintenanceWindowExecutionTaskInvocationsInput) SetNextToken(v string) *DescribeMaintenanceWindowExecutionTaskInvocationsInput { + s.NextToken = &v + return s +} + +// SetTaskId sets the TaskId field's value. +func (s *DescribeMaintenanceWindowExecutionTaskInvocationsInput) SetTaskId(v string) *DescribeMaintenanceWindowExecutionTaskInvocationsInput { + s.TaskId = &v + return s +} + +// SetWindowExecutionId sets the WindowExecutionId field's value. +func (s *DescribeMaintenanceWindowExecutionTaskInvocationsInput) SetWindowExecutionId(v string) *DescribeMaintenanceWindowExecutionTaskInvocationsInput { + s.WindowExecutionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowExecutionTaskInvocationsResult +type DescribeMaintenanceWindowExecutionTaskInvocationsOutput struct { + _ struct{} `type:"structure"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` + + // Information about the task invocation results per invocation. + WindowExecutionTaskInvocationIdentities []*MaintenanceWindowExecutionTaskInvocationIdentity `type:"list"` +} + +// String returns the string representation +func (s DescribeMaintenanceWindowExecutionTaskInvocationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMaintenanceWindowExecutionTaskInvocationsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMaintenanceWindowExecutionTaskInvocationsOutput) SetNextToken(v string) *DescribeMaintenanceWindowExecutionTaskInvocationsOutput { + s.NextToken = &v + return s +} + +// SetWindowExecutionTaskInvocationIdentities sets the WindowExecutionTaskInvocationIdentities field's value. +func (s *DescribeMaintenanceWindowExecutionTaskInvocationsOutput) SetWindowExecutionTaskInvocationIdentities(v []*MaintenanceWindowExecutionTaskInvocationIdentity) *DescribeMaintenanceWindowExecutionTaskInvocationsOutput { + s.WindowExecutionTaskInvocationIdentities = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowExecutionTasksRequest +type DescribeMaintenanceWindowExecutionTasksInput struct { + _ struct{} `type:"structure"` + + // Optional filters used to scope down the returned tasks. The supported filter + // key is STATUS with the corresponding values PENDING, IN_PROGRESS, SUCCESS, + // FAILED, TIMED_OUT, CANCELLING, and CANCELLED. + Filters []*MaintenanceWindowFilter `type:"list"` + + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `min:"10" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` + + // The ID of the Maintenance Window execution whose task executions should be + // retrieved. + // + // WindowExecutionId is a required field + WindowExecutionId *string `min:"36" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeMaintenanceWindowExecutionTasksInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMaintenanceWindowExecutionTasksInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeMaintenanceWindowExecutionTasksInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeMaintenanceWindowExecutionTasksInput"} + if s.MaxResults != nil && *s.MaxResults < 10 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10)) + } + if s.WindowExecutionId == nil { + invalidParams.Add(request.NewErrParamRequired("WindowExecutionId")) + } + if s.WindowExecutionId != nil && len(*s.WindowExecutionId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("WindowExecutionId", 36)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *DescribeMaintenanceWindowExecutionTasksInput) SetFilters(v []*MaintenanceWindowFilter) *DescribeMaintenanceWindowExecutionTasksInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeMaintenanceWindowExecutionTasksInput) SetMaxResults(v int64) *DescribeMaintenanceWindowExecutionTasksInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMaintenanceWindowExecutionTasksInput) SetNextToken(v string) *DescribeMaintenanceWindowExecutionTasksInput { + s.NextToken = &v + return s +} + +// SetWindowExecutionId sets the WindowExecutionId field's value. +func (s *DescribeMaintenanceWindowExecutionTasksInput) SetWindowExecutionId(v string) *DescribeMaintenanceWindowExecutionTasksInput { + s.WindowExecutionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowExecutionTasksResult +type DescribeMaintenanceWindowExecutionTasksOutput struct { + _ struct{} `type:"structure"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` + + // Information about the task executions. + WindowExecutionTaskIdentities []*MaintenanceWindowExecutionTaskIdentity `type:"list"` +} + +// String returns the string representation +func (s DescribeMaintenanceWindowExecutionTasksOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMaintenanceWindowExecutionTasksOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMaintenanceWindowExecutionTasksOutput) SetNextToken(v string) *DescribeMaintenanceWindowExecutionTasksOutput { + s.NextToken = &v + return s +} + +// SetWindowExecutionTaskIdentities sets the WindowExecutionTaskIdentities field's value. +func (s *DescribeMaintenanceWindowExecutionTasksOutput) SetWindowExecutionTaskIdentities(v []*MaintenanceWindowExecutionTaskIdentity) *DescribeMaintenanceWindowExecutionTasksOutput { + s.WindowExecutionTaskIdentities = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowExecutionsRequest +type DescribeMaintenanceWindowExecutionsInput struct { + _ struct{} `type:"structure"` + + // Each entry in the array is a structure containing: + // + // Key (string, 1 ≤ length ≤ 128) + // + // Values (array of strings 1 ≤ length ≤ 256) + // + // The supported Keys are ExecutedBefore and ExecutedAfter with the value being + // a date/time string such as 2016-11-04T05:00:00Z. + Filters []*MaintenanceWindowFilter `type:"list"` + + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `min:"10" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` + + // The ID of the Maintenance Window whose executions should be retrieved. + // + // WindowId is a required field + WindowId *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeMaintenanceWindowExecutionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMaintenanceWindowExecutionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeMaintenanceWindowExecutionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeMaintenanceWindowExecutionsInput"} + if s.MaxResults != nil && *s.MaxResults < 10 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10)) + } + if s.WindowId == nil { + invalidParams.Add(request.NewErrParamRequired("WindowId")) + } + if s.WindowId != nil && len(*s.WindowId) < 20 { + invalidParams.Add(request.NewErrParamMinLen("WindowId", 20)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *DescribeMaintenanceWindowExecutionsInput) SetFilters(v []*MaintenanceWindowFilter) *DescribeMaintenanceWindowExecutionsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeMaintenanceWindowExecutionsInput) SetMaxResults(v int64) *DescribeMaintenanceWindowExecutionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMaintenanceWindowExecutionsInput) SetNextToken(v string) *DescribeMaintenanceWindowExecutionsInput { + s.NextToken = &v + return s +} + +// SetWindowId sets the WindowId field's value. +func (s *DescribeMaintenanceWindowExecutionsInput) SetWindowId(v string) *DescribeMaintenanceWindowExecutionsInput { + s.WindowId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowExecutionsResult +type DescribeMaintenanceWindowExecutionsOutput struct { + _ struct{} `type:"structure"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` + + // Information about the Maintenance Windows execution. + WindowExecutions []*MaintenanceWindowExecution `type:"list"` +} + +// String returns the string representation +func (s DescribeMaintenanceWindowExecutionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMaintenanceWindowExecutionsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMaintenanceWindowExecutionsOutput) SetNextToken(v string) *DescribeMaintenanceWindowExecutionsOutput { + s.NextToken = &v + return s +} + +// SetWindowExecutions sets the WindowExecutions field's value. +func (s *DescribeMaintenanceWindowExecutionsOutput) SetWindowExecutions(v []*MaintenanceWindowExecution) *DescribeMaintenanceWindowExecutionsOutput { + s.WindowExecutions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowTargetsRequest +type DescribeMaintenanceWindowTargetsInput struct { + _ struct{} `type:"structure"` + + // Optional filters that can be used to narrow down the scope of the returned + // window targets. The supported filter keys are Type, WindowTargetId and OwnerInformation. + Filters []*MaintenanceWindowFilter `type:"list"` + + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `min:"10" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` + + // The ID of the Maintenance Window whose targets should be retrieved. + // + // WindowId is a required field + WindowId *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeMaintenanceWindowTargetsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMaintenanceWindowTargetsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeMaintenanceWindowTargetsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeMaintenanceWindowTargetsInput"} + if s.MaxResults != nil && *s.MaxResults < 10 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10)) + } + if s.WindowId == nil { + invalidParams.Add(request.NewErrParamRequired("WindowId")) + } + if s.WindowId != nil && len(*s.WindowId) < 20 { + invalidParams.Add(request.NewErrParamMinLen("WindowId", 20)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *DescribeMaintenanceWindowTargetsInput) SetFilters(v []*MaintenanceWindowFilter) *DescribeMaintenanceWindowTargetsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeMaintenanceWindowTargetsInput) SetMaxResults(v int64) *DescribeMaintenanceWindowTargetsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMaintenanceWindowTargetsInput) SetNextToken(v string) *DescribeMaintenanceWindowTargetsInput { + s.NextToken = &v + return s +} + +// SetWindowId sets the WindowId field's value. +func (s *DescribeMaintenanceWindowTargetsInput) SetWindowId(v string) *DescribeMaintenanceWindowTargetsInput { + s.WindowId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowTargetsResult +type DescribeMaintenanceWindowTargetsOutput struct { + _ struct{} `type:"structure"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` + + // Information about the targets in the Maintenance Window. + Targets []*MaintenanceWindowTarget `type:"list"` +} + +// String returns the string representation +func (s DescribeMaintenanceWindowTargetsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMaintenanceWindowTargetsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMaintenanceWindowTargetsOutput) SetNextToken(v string) *DescribeMaintenanceWindowTargetsOutput { + s.NextToken = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *DescribeMaintenanceWindowTargetsOutput) SetTargets(v []*MaintenanceWindowTarget) *DescribeMaintenanceWindowTargetsOutput { + s.Targets = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowTasksRequest +type DescribeMaintenanceWindowTasksInput struct { + _ struct{} `type:"structure"` + + // Optional filters used to narrow down the scope of the returned tasks. The + // supported filter keys are WindowTaskId, TaskArn, Priority, and TaskType. + Filters []*MaintenanceWindowFilter `type:"list"` + + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `min:"10" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` + + // The ID of the Maintenance Window whose tasks should be retrieved. + // + // WindowId is a required field + WindowId *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeMaintenanceWindowTasksInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMaintenanceWindowTasksInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeMaintenanceWindowTasksInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeMaintenanceWindowTasksInput"} + if s.MaxResults != nil && *s.MaxResults < 10 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10)) + } + if s.WindowId == nil { + invalidParams.Add(request.NewErrParamRequired("WindowId")) + } + if s.WindowId != nil && len(*s.WindowId) < 20 { + invalidParams.Add(request.NewErrParamMinLen("WindowId", 20)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *DescribeMaintenanceWindowTasksInput) SetFilters(v []*MaintenanceWindowFilter) *DescribeMaintenanceWindowTasksInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeMaintenanceWindowTasksInput) SetMaxResults(v int64) *DescribeMaintenanceWindowTasksInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMaintenanceWindowTasksInput) SetNextToken(v string) *DescribeMaintenanceWindowTasksInput { + s.NextToken = &v + return s +} + +// SetWindowId sets the WindowId field's value. +func (s *DescribeMaintenanceWindowTasksInput) SetWindowId(v string) *DescribeMaintenanceWindowTasksInput { + s.WindowId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowTasksResult +type DescribeMaintenanceWindowTasksOutput struct { + _ struct{} `type:"structure"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` + + // Information about the tasks in the Maintenance Window. + Tasks []*MaintenanceWindowTask `type:"list"` +} + +// String returns the string representation +func (s DescribeMaintenanceWindowTasksOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMaintenanceWindowTasksOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMaintenanceWindowTasksOutput) SetNextToken(v string) *DescribeMaintenanceWindowTasksOutput { + s.NextToken = &v + return s +} + +// SetTasks sets the Tasks field's value. +func (s *DescribeMaintenanceWindowTasksOutput) SetTasks(v []*MaintenanceWindowTask) *DescribeMaintenanceWindowTasksOutput { + s.Tasks = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowsRequest +type DescribeMaintenanceWindowsInput struct { + _ struct{} `type:"structure"` + + // Optional filters used to narrow down the scope of the returned Maintenance + // Windows. Supported filter keys are Name and Enabled. + Filters []*MaintenanceWindowFilter `type:"list"` + + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `min:"10" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeMaintenanceWindowsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMaintenanceWindowsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeMaintenanceWindowsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeMaintenanceWindowsInput"} + if s.MaxResults != nil && *s.MaxResults < 10 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *DescribeMaintenanceWindowsInput) SetFilters(v []*MaintenanceWindowFilter) *DescribeMaintenanceWindowsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeMaintenanceWindowsInput) SetMaxResults(v int64) *DescribeMaintenanceWindowsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMaintenanceWindowsInput) SetNextToken(v string) *DescribeMaintenanceWindowsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowsResult +type DescribeMaintenanceWindowsOutput struct { + _ struct{} `type:"structure"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` + + // Information about the Maintenance Windows. + WindowIdentities []*MaintenanceWindowIdentity `type:"list"` +} + +// String returns the string representation +func (s DescribeMaintenanceWindowsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMaintenanceWindowsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMaintenanceWindowsOutput) SetNextToken(v string) *DescribeMaintenanceWindowsOutput { + s.NextToken = &v + return s +} + +// SetWindowIdentities sets the WindowIdentities field's value. +func (s *DescribeMaintenanceWindowsOutput) SetWindowIdentities(v []*MaintenanceWindowIdentity) *DescribeMaintenanceWindowsOutput { + s.WindowIdentities = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeParametersRequest +type DescribeParametersInput struct { + _ struct{} `type:"structure"` + + // One or more filters. Use a filter to return a more specific list of results. + Filters []*ParametersFilter `type:"list"` + + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeParametersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeParametersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeParametersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeParametersInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *DescribeParametersInput) SetFilters(v []*ParametersFilter) *DescribeParametersInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeParametersInput) SetMaxResults(v int64) *DescribeParametersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeParametersInput) SetNextToken(v string) *DescribeParametersInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeParametersResult +type DescribeParametersOutput struct { + _ struct{} `type:"structure"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` + + // Parameters returned by the request. + Parameters []*ParameterMetadata `type:"list"` +} + +// String returns the string representation +func (s DescribeParametersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeParametersOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeParametersOutput) SetNextToken(v string) *DescribeParametersOutput { + s.NextToken = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *DescribeParametersOutput) SetParameters(v []*ParameterMetadata) *DescribeParametersOutput { + s.Parameters = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribePatchBaselinesRequest +type DescribePatchBaselinesInput struct { + _ struct{} `type:"structure"` + + // Each element in the array is a structure containing: + // + // Key: (string, “NAME_PREFIX” or “OWNER”) + // + // Value: (array of strings, exactly 1 entry, 1 ≤ length ≤ 255) + Filters []*PatchOrchestratorFilter `type:"list"` + + // The maximum number of patch baselines to return (per page). + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribePatchBaselinesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePatchBaselinesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribePatchBaselinesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribePatchBaselinesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *DescribePatchBaselinesInput) SetFilters(v []*PatchOrchestratorFilter) *DescribePatchBaselinesInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribePatchBaselinesInput) SetMaxResults(v int64) *DescribePatchBaselinesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribePatchBaselinesInput) SetNextToken(v string) *DescribePatchBaselinesInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribePatchBaselinesResult +type DescribePatchBaselinesOutput struct { + _ struct{} `type:"structure"` + + // An array of PatchBaselineIdentity elements. + BaselineIdentities []*PatchBaselineIdentity `type:"list"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribePatchBaselinesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePatchBaselinesOutput) GoString() string { + return s.String() +} + +// SetBaselineIdentities sets the BaselineIdentities field's value. +func (s *DescribePatchBaselinesOutput) SetBaselineIdentities(v []*PatchBaselineIdentity) *DescribePatchBaselinesOutput { + s.BaselineIdentities = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribePatchBaselinesOutput) SetNextToken(v string) *DescribePatchBaselinesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribePatchGroupStateRequest +type DescribePatchGroupStateInput struct { + _ struct{} `type:"structure"` + + // The name of the patch group whose patch snapshot should be retrieved. + // + // PatchGroup is a required field + PatchGroup *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribePatchGroupStateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePatchGroupStateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribePatchGroupStateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribePatchGroupStateInput"} + if s.PatchGroup == nil { + invalidParams.Add(request.NewErrParamRequired("PatchGroup")) + } + if s.PatchGroup != nil && len(*s.PatchGroup) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PatchGroup", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPatchGroup sets the PatchGroup field's value. +func (s *DescribePatchGroupStateInput) SetPatchGroup(v string) *DescribePatchGroupStateInput { + s.PatchGroup = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribePatchGroupStateResult +type DescribePatchGroupStateOutput struct { + _ struct{} `type:"structure"` + + // The number of instances in the patch group. + Instances *int64 `type:"integer"` + + // The number of instances with patches from the patch baseline that failed + // to install. + InstancesWithFailedPatches *int64 `type:"integer"` + + // The number of instances with patches installed that aren’t defined in the + // patch baseline. + InstancesWithInstalledOtherPatches *int64 `type:"integer"` + + // The number of instances with installed patches. + InstancesWithInstalledPatches *int64 `type:"integer"` + + // The number of instances with missing patches from the patch baseline. + InstancesWithMissingPatches *int64 `type:"integer"` + + // The number of instances with patches that aren’t applicable. + InstancesWithNotApplicablePatches *int64 `type:"integer"` +} + +// String returns the string representation +func (s DescribePatchGroupStateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePatchGroupStateOutput) GoString() string { + return s.String() +} + +// SetInstances sets the Instances field's value. +func (s *DescribePatchGroupStateOutput) SetInstances(v int64) *DescribePatchGroupStateOutput { + s.Instances = &v + return s +} + +// SetInstancesWithFailedPatches sets the InstancesWithFailedPatches field's value. +func (s *DescribePatchGroupStateOutput) SetInstancesWithFailedPatches(v int64) *DescribePatchGroupStateOutput { + s.InstancesWithFailedPatches = &v + return s +} + +// SetInstancesWithInstalledOtherPatches sets the InstancesWithInstalledOtherPatches field's value. +func (s *DescribePatchGroupStateOutput) SetInstancesWithInstalledOtherPatches(v int64) *DescribePatchGroupStateOutput { + s.InstancesWithInstalledOtherPatches = &v + return s +} + +// SetInstancesWithInstalledPatches sets the InstancesWithInstalledPatches field's value. +func (s *DescribePatchGroupStateOutput) SetInstancesWithInstalledPatches(v int64) *DescribePatchGroupStateOutput { + s.InstancesWithInstalledPatches = &v + return s +} + +// SetInstancesWithMissingPatches sets the InstancesWithMissingPatches field's value. +func (s *DescribePatchGroupStateOutput) SetInstancesWithMissingPatches(v int64) *DescribePatchGroupStateOutput { + s.InstancesWithMissingPatches = &v + return s +} + +// SetInstancesWithNotApplicablePatches sets the InstancesWithNotApplicablePatches field's value. +func (s *DescribePatchGroupStateOutput) SetInstancesWithNotApplicablePatches(v int64) *DescribePatchGroupStateOutput { + s.InstancesWithNotApplicablePatches = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribePatchGroupsRequest +type DescribePatchGroupsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of patch groups to return (per page). + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribePatchGroupsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePatchGroupsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribePatchGroupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribePatchGroupsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribePatchGroupsInput) SetMaxResults(v int64) *DescribePatchGroupsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribePatchGroupsInput) SetNextToken(v string) *DescribePatchGroupsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribePatchGroupsResult +type DescribePatchGroupsOutput struct { + _ struct{} `type:"structure"` + + // Each entry in the array contains: + // + // PatchGroup: string (1 ≤ length ≤ 256, Regex: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$) + // + // PatchBaselineIdentity: A PatchBaselineIdentity element. + Mappings []*PatchGroupPatchBaselineMapping `type:"list"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribePatchGroupsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePatchGroupsOutput) GoString() string { + return s.String() +} + +// SetMappings sets the Mappings field's value. +func (s *DescribePatchGroupsOutput) SetMappings(v []*PatchGroupPatchBaselineMapping) *DescribePatchGroupsOutput { + s.Mappings = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribePatchGroupsOutput) SetNextToken(v string) *DescribePatchGroupsOutput { + s.NextToken = &v + return s +} + +// A default version of a document. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DocumentDefaultVersionDescription +type DocumentDefaultVersionDescription struct { + _ struct{} `type:"structure"` + + // The default version of the document. + DefaultVersion *string `type:"string"` + + // The name of the document. + Name *string `type:"string"` +} + +// String returns the string representation +func (s DocumentDefaultVersionDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DocumentDefaultVersionDescription) GoString() string { + return s.String() +} + +// SetDefaultVersion sets the DefaultVersion field's value. +func (s *DocumentDefaultVersionDescription) SetDefaultVersion(v string) *DocumentDefaultVersionDescription { + s.DefaultVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *DocumentDefaultVersionDescription) SetName(v string) *DocumentDefaultVersionDescription { + s.Name = &v + return s +} + +// Describes an SSM document. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DocumentDescription +type DocumentDescription struct { + _ struct{} `type:"structure"` + + // The date when the SSM document was created. + CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The default version. + DefaultVersion *string `type:"string"` + + // A description of the document. + Description *string `type:"string"` + + // The type of document. + DocumentType *string `type:"string" enum:"DocumentType"` + + // The document version. + DocumentVersion *string `type:"string"` + + // The Sha256 or Sha1 hash created by the system when the document was created. + // + // Sha1 hashes have been deprecated. + Hash *string `type:"string"` + + // Sha256 or Sha1. + // + // Sha1 hashes have been deprecated. + HashType *string `type:"string" enum:"DocumentHashType"` + + // The latest version of the document. + LatestVersion *string `type:"string"` + + // The name of the SSM document. + Name *string `type:"string"` + + // The AWS user account of the person who created the document. + Owner *string `type:"string"` + + // A description of the parameters for a document. + Parameters []*DocumentParameter `locationNameList:"DocumentParameter" type:"list"` + + // The list of OS platforms compatible with this SSM document. + PlatformTypes []*string `locationNameList:"PlatformType" type:"list"` + + // The schema version. + SchemaVersion *string `type:"string"` + + // The SHA1 hash of the document, which you can use for verification purposes. + Sha1 *string `type:"string"` + + // The status of the SSM document. + Status *string `type:"string" enum:"DocumentStatus"` +} + +// String returns the string representation +func (s DocumentDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DocumentDescription) GoString() string { + return s.String() +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *DocumentDescription) SetCreatedDate(v time.Time) *DocumentDescription { + s.CreatedDate = &v + return s +} + +// SetDefaultVersion sets the DefaultVersion field's value. +func (s *DocumentDescription) SetDefaultVersion(v string) *DocumentDescription { + s.DefaultVersion = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DocumentDescription) SetDescription(v string) *DocumentDescription { + s.Description = &v + return s +} + +// SetDocumentType sets the DocumentType field's value. +func (s *DocumentDescription) SetDocumentType(v string) *DocumentDescription { + s.DocumentType = &v + return s +} + +// SetDocumentVersion sets the DocumentVersion field's value. +func (s *DocumentDescription) SetDocumentVersion(v string) *DocumentDescription { + s.DocumentVersion = &v + return s +} + +// SetHash sets the Hash field's value. +func (s *DocumentDescription) SetHash(v string) *DocumentDescription { + s.Hash = &v + return s +} + +// SetHashType sets the HashType field's value. +func (s *DocumentDescription) SetHashType(v string) *DocumentDescription { + s.HashType = &v + return s +} + +// SetLatestVersion sets the LatestVersion field's value. +func (s *DocumentDescription) SetLatestVersion(v string) *DocumentDescription { + s.LatestVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *DocumentDescription) SetName(v string) *DocumentDescription { + s.Name = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *DocumentDescription) SetOwner(v string) *DocumentDescription { + s.Owner = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *DocumentDescription) SetParameters(v []*DocumentParameter) *DocumentDescription { + s.Parameters = v + return s +} + +// SetPlatformTypes sets the PlatformTypes field's value. +func (s *DocumentDescription) SetPlatformTypes(v []*string) *DocumentDescription { + s.PlatformTypes = v + return s +} + +// SetSchemaVersion sets the SchemaVersion field's value. +func (s *DocumentDescription) SetSchemaVersion(v string) *DocumentDescription { + s.SchemaVersion = &v + return s +} + +// SetSha1 sets the Sha1 field's value. +func (s *DocumentDescription) SetSha1(v string) *DocumentDescription { + s.Sha1 = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DocumentDescription) SetStatus(v string) *DocumentDescription { + s.Status = &v + return s +} + +// Describes a filter. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DocumentFilter +type DocumentFilter struct { + _ struct{} `type:"structure"` + + // The name of the filter. + // + // Key is a required field + Key *string `locationName:"key" type:"string" required:"true" enum:"DocumentFilterKey"` + + // The value of the filter. + // + // Value is a required field + Value *string `locationName:"value" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DocumentFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DocumentFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DocumentFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DocumentFilter"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + if s.Value != nil && len(*s.Value) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Value", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *DocumentFilter) SetKey(v string) *DocumentFilter { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *DocumentFilter) SetValue(v string) *DocumentFilter { + s.Value = &v + return s +} + +// Describes the name of an SSM document. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DocumentIdentifier +type DocumentIdentifier struct { + _ struct{} `type:"structure"` + + // The document type. + DocumentType *string `type:"string" enum:"DocumentType"` + + // The document version. + DocumentVersion *string `type:"string"` + + // The name of the SSM document. + Name *string `type:"string"` + + // The AWS user account of the person who created the document. + Owner *string `type:"string"` + + // The operating system platform. + PlatformTypes []*string `locationNameList:"PlatformType" type:"list"` + + // The schema version. + SchemaVersion *string `type:"string"` +} + +// String returns the string representation +func (s DocumentIdentifier) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DocumentIdentifier) GoString() string { + return s.String() +} + +// SetDocumentType sets the DocumentType field's value. +func (s *DocumentIdentifier) SetDocumentType(v string) *DocumentIdentifier { + s.DocumentType = &v + return s +} + +// SetDocumentVersion sets the DocumentVersion field's value. +func (s *DocumentIdentifier) SetDocumentVersion(v string) *DocumentIdentifier { + s.DocumentVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *DocumentIdentifier) SetName(v string) *DocumentIdentifier { + s.Name = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *DocumentIdentifier) SetOwner(v string) *DocumentIdentifier { + s.Owner = &v + return s +} + +// SetPlatformTypes sets the PlatformTypes field's value. +func (s *DocumentIdentifier) SetPlatformTypes(v []*string) *DocumentIdentifier { + s.PlatformTypes = v + return s +} + +// SetSchemaVersion sets the SchemaVersion field's value. +func (s *DocumentIdentifier) SetSchemaVersion(v string) *DocumentIdentifier { + s.SchemaVersion = &v + return s +} + +// Parameters specified in the SSM document that execute on the server when +// the command is run. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DocumentParameter +type DocumentParameter struct { + _ struct{} `type:"structure"` + + // If specified, the default values for the parameters. Parameters without a + // default value are required. Parameters with a default value are optional. + DefaultValue *string `type:"string"` + + // A description of what the parameter does, how to use it, the default value, + // and whether or not the parameter is optional. + Description *string `type:"string"` + + // The name of the parameter. + Name *string `type:"string"` + + // The type of parameter. The type can be either “String” or “StringList”. + Type *string `type:"string" enum:"DocumentParameterType"` +} + +// String returns the string representation +func (s DocumentParameter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DocumentParameter) GoString() string { + return s.String() +} + +// SetDefaultValue sets the DefaultValue field's value. +func (s *DocumentParameter) SetDefaultValue(v string) *DocumentParameter { + s.DefaultValue = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DocumentParameter) SetDescription(v string) *DocumentParameter { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *DocumentParameter) SetName(v string) *DocumentParameter { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *DocumentParameter) SetType(v string) *DocumentParameter { + s.Type = &v + return s +} + +// Version information about the document. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DocumentVersionInfo +type DocumentVersionInfo struct { + _ struct{} `type:"structure"` + + // The date the document was created. + CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The document version. + DocumentVersion *string `type:"string"` + + // An identifier for the default version of the document. + IsDefaultVersion *bool `type:"boolean"` + + // The document name. + Name *string `type:"string"` +} + +// String returns the string representation +func (s DocumentVersionInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DocumentVersionInfo) GoString() string { + return s.String() +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *DocumentVersionInfo) SetCreatedDate(v time.Time) *DocumentVersionInfo { + s.CreatedDate = &v + return s +} + +// SetDocumentVersion sets the DocumentVersion field's value. +func (s *DocumentVersionInfo) SetDocumentVersion(v string) *DocumentVersionInfo { + s.DocumentVersion = &v + return s +} + +// SetIsDefaultVersion sets the IsDefaultVersion field's value. +func (s *DocumentVersionInfo) SetIsDefaultVersion(v bool) *DocumentVersionInfo { + s.IsDefaultVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *DocumentVersionInfo) SetName(v string) *DocumentVersionInfo { + s.Name = &v + return s +} + +// The EffectivePatch structure defines metadata about a patch along with the +// approval state of the patch in a particular patch baseline. The approval +// state includes information about whether the patch is currently approved, +// due to be approved by a rule, explicitly approved, or explicitly rejected +// and the date the patch was or will be approved. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/EffectivePatch +type EffectivePatch struct { + _ struct{} `type:"structure"` + + // Provides metadata for a patch, including information such as the KB ID, severity, + // classification and a URL for where more information can be obtained about + // the patch. + Patch *Patch `type:"structure"` + + // The status of the patch in a patch baseline. This includes information about + // whether the patch is currently approved, due to be approved by a rule, explicitly + // approved, or explicitly rejected and the date the patch was or will be approved. + PatchStatus *PatchStatus `type:"structure"` +} + +// String returns the string representation +func (s EffectivePatch) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EffectivePatch) GoString() string { + return s.String() +} + +// SetPatch sets the Patch field's value. +func (s *EffectivePatch) SetPatch(v *Patch) *EffectivePatch { + s.Patch = v + return s +} + +// SetPatchStatus sets the PatchStatus field's value. +func (s *EffectivePatch) SetPatchStatus(v *PatchStatus) *EffectivePatch { + s.PatchStatus = v + return s +} + +// Describes a failed association. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/FailedCreateAssociation +type FailedCreateAssociation struct { + _ struct{} `type:"structure"` + + // The association. + Entry *CreateAssociationBatchRequestEntry `type:"structure"` + + // The source of the failure. + Fault *string `type:"string" enum:"Fault"` + + // A description of the failure. + Message *string `type:"string"` +} + +// String returns the string representation +func (s FailedCreateAssociation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FailedCreateAssociation) GoString() string { + return s.String() +} + +// SetEntry sets the Entry field's value. +func (s *FailedCreateAssociation) SetEntry(v *CreateAssociationBatchRequestEntry) *FailedCreateAssociation { + s.Entry = v + return s +} + +// SetFault sets the Fault field's value. +func (s *FailedCreateAssociation) SetFault(v string) *FailedCreateAssociation { + s.Fault = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *FailedCreateAssociation) SetMessage(v string) *FailedCreateAssociation { + s.Message = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetAutomationExecutionRequest +type GetAutomationExecutionInput struct { + _ struct{} `type:"structure"` + + // The unique identifier for an existing automation execution to examine. The + // execution ID is returned by StartAutomationExecution when the execution of + // an Automation document is initiated. + // + // AutomationExecutionId is a required field + AutomationExecutionId *string `min:"36" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetAutomationExecutionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAutomationExecutionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetAutomationExecutionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAutomationExecutionInput"} + if s.AutomationExecutionId == nil { + invalidParams.Add(request.NewErrParamRequired("AutomationExecutionId")) + } + if s.AutomationExecutionId != nil && len(*s.AutomationExecutionId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("AutomationExecutionId", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAutomationExecutionId sets the AutomationExecutionId field's value. +func (s *GetAutomationExecutionInput) SetAutomationExecutionId(v string) *GetAutomationExecutionInput { + s.AutomationExecutionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetAutomationExecutionResult +type GetAutomationExecutionOutput struct { + _ struct{} `type:"structure"` + + // Detailed information about the current state of an automation execution. + AutomationExecution *AutomationExecution `type:"structure"` +} + +// String returns the string representation +func (s GetAutomationExecutionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAutomationExecutionOutput) GoString() string { + return s.String() +} + +// SetAutomationExecution sets the AutomationExecution field's value. +func (s *GetAutomationExecutionOutput) SetAutomationExecution(v *AutomationExecution) *GetAutomationExecutionOutput { + s.AutomationExecution = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetCommandInvocationRequest +type GetCommandInvocationInput struct { + _ struct{} `type:"structure"` + + // (Required) The parent command ID of the invocation plugin. + // + // CommandId is a required field + CommandId *string `min:"36" type:"string" required:"true"` + + // (Required) The ID of the managed instance targeted by the command. A managed + // instance can be an Amazon EC2 instance or an instance in your hybrid environment + // that is configured for Systems Manager. + // + // InstanceId is a required field + InstanceId *string `type:"string" required:"true"` + + // (Optional) The name of the plugin for which you want detailed results. If + // the SSM document contains only one plugin, the name can be omitted and the + // details will be returned. + PluginName *string `min:"4" type:"string"` +} + +// String returns the string representation +func (s GetCommandInvocationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCommandInvocationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetCommandInvocationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCommandInvocationInput"} + if s.CommandId == nil { + invalidParams.Add(request.NewErrParamRequired("CommandId")) + } + if s.CommandId != nil && len(*s.CommandId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("CommandId", 36)) + } + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.PluginName != nil && len(*s.PluginName) < 4 { + invalidParams.Add(request.NewErrParamMinLen("PluginName", 4)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCommandId sets the CommandId field's value. +func (s *GetCommandInvocationInput) SetCommandId(v string) *GetCommandInvocationInput { + s.CommandId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *GetCommandInvocationInput) SetInstanceId(v string) *GetCommandInvocationInput { + s.InstanceId = &v + return s +} + +// SetPluginName sets the PluginName field's value. +func (s *GetCommandInvocationInput) SetPluginName(v string) *GetCommandInvocationInput { + s.PluginName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetCommandInvocationResult +type GetCommandInvocationOutput struct { + _ struct{} `type:"structure"` + + // The parent command ID of the invocation plugin. + CommandId *string `min:"36" type:"string"` + + // The comment text for the command. + Comment *string `type:"string"` + + // The name of the SSM document that was executed. For example, AWS-RunShellScript + // is an SSM document. + DocumentName *string `type:"string"` + + // Duration since ExecutionStartDateTime. + ExecutionElapsedTime *string `type:"string"` + + // The date and time the plugin was finished executing. Date and time are written + // in ISO 8601 format. For example, August 28, 2016 is represented as 2016-08-28. + // If the plugin has not started to execute, the string is empty. + ExecutionEndDateTime *string `type:"string"` + + // The date and time the plugin started executing. Date and time are written + // in ISO 8601 format. For example, August 28, 2016 is represented as 2016-08-28. + // If the plugin has not started to execute, the string is empty. + ExecutionStartDateTime *string `type:"string"` + + // The ID of the managed instance targeted by the command. A managed instance + // can be an Amazon EC2 instance or an instance in your hybrid environment that + // is configured for Systems Manager. + InstanceId *string `type:"string"` + + // The name of the plugin for which you want detailed results. For example, + // aws:RunShellScript is a plugin. + PluginName *string `min:"4" type:"string"` + + // The error level response code for the plugin script. If the response code + // is -1, then the command has not started executing on the instance, or it + // was not received by the instance. + ResponseCode *int64 `type:"integer"` + + // The first 8,000 characters written by the plugin to stderr. If the command + // has not finished executing, then this string is empty. + StandardErrorContent *string `type:"string"` + + // The URL for the complete text written by the plugin to stderr. If the command + // has not finished executing, then this string is empty. + StandardErrorUrl *string `type:"string"` + + // The first 24,000 characters written by the plugin to stdout. If the command + // has not finished executing, if ExecutionStatus is neither Succeeded nor Failed, + // then this string is empty. + StandardOutputContent *string `type:"string"` + + // The URL for the complete text written by the plugin to stdout in Amazon S3. + // If an Amazon S3 bucket was not specified, then this string is empty. + StandardOutputUrl *string `type:"string"` + + // The status of the parent command for this invocation. This status can be + // different than StatusDetails. + Status *string `type:"string" enum:"CommandInvocationStatus"` + + // A detailed status of the command execution for an invocation. StatusDetails + // includes more information than Status because it includes states resulting + // from error and concurrency control parameters. StatusDetails can show different + // results than Status. For more information about these statuses, see Monitor + // Commands (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitor-commands.html) + // (Linux) or Monitor Commands (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/monitor-commands.html) + // (Windows). StatusDetails can be one of the following values: + // + // * Pending – The command has not been sent to the instance. + // + // * In Progress – The command has been sent to the instance but has not + // reached a terminal state. + // + // * Delayed – The system attempted to send the command to the target, but + // the target was not available. The instance might not be available because + // of network issues, the instance was stopped, etc. The system will try + // to deliver the command again. + // + // * Success – The command or plugin was executed successfully. This is a + // terminal state. + // + // * Delivery Timed Out – The command was not delivered to the instance before + // the delivery timeout expired. Delivery timeouts do not count against the + // parent command’s MaxErrors limit, but they do contribute to whether the + // parent command status is Success or Incomplete. This is a terminal state. + // + // * Execution Timed Out – The command started to execute on the instance, + // but the execution was not complete before the timeout expired. Execution + // timeouts count against the MaxErrors limit of the parent command. This + // is a terminal state. + // + // * Failed – The command wasn't executed successfully on the instance. For + // a plugin, this indicates that the result code was not zero. For a command + // invocation, this indicates that the result code for one or more plugins + // was not zero. Invocation failures count against the MaxErrors limit of + // the parent command. This is a terminal state. + // + // * Canceled – The command was terminated before it was completed. This + // is a terminal state. + // + // * Undeliverable – The command can't be delivered to the instance. The + // instance might not exist or might not be responding. Undeliverable invocations + // don't count against the parent command’s MaxErrors limit and don't contribute + // to whether the parent command status is Success or Incomplete. This is + // a terminal state. + // + // * Terminated – The parent command exceeded its MaxErrors limit and subsequent + // command invocations were canceled by the system. This is a terminal state. + StatusDetails *string `type:"string"` +} + +// String returns the string representation +func (s GetCommandInvocationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCommandInvocationOutput) GoString() string { + return s.String() +} + +// SetCommandId sets the CommandId field's value. +func (s *GetCommandInvocationOutput) SetCommandId(v string) *GetCommandInvocationOutput { + s.CommandId = &v + return s +} + +// SetComment sets the Comment field's value. +func (s *GetCommandInvocationOutput) SetComment(v string) *GetCommandInvocationOutput { + s.Comment = &v + return s +} + +// SetDocumentName sets the DocumentName field's value. +func (s *GetCommandInvocationOutput) SetDocumentName(v string) *GetCommandInvocationOutput { + s.DocumentName = &v + return s +} + +// SetExecutionElapsedTime sets the ExecutionElapsedTime field's value. +func (s *GetCommandInvocationOutput) SetExecutionElapsedTime(v string) *GetCommandInvocationOutput { + s.ExecutionElapsedTime = &v + return s +} + +// SetExecutionEndDateTime sets the ExecutionEndDateTime field's value. +func (s *GetCommandInvocationOutput) SetExecutionEndDateTime(v string) *GetCommandInvocationOutput { + s.ExecutionEndDateTime = &v + return s +} + +// SetExecutionStartDateTime sets the ExecutionStartDateTime field's value. +func (s *GetCommandInvocationOutput) SetExecutionStartDateTime(v string) *GetCommandInvocationOutput { + s.ExecutionStartDateTime = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *GetCommandInvocationOutput) SetInstanceId(v string) *GetCommandInvocationOutput { + s.InstanceId = &v + return s +} + +// SetPluginName sets the PluginName field's value. +func (s *GetCommandInvocationOutput) SetPluginName(v string) *GetCommandInvocationOutput { + s.PluginName = &v + return s +} + +// SetResponseCode sets the ResponseCode field's value. +func (s *GetCommandInvocationOutput) SetResponseCode(v int64) *GetCommandInvocationOutput { + s.ResponseCode = &v + return s +} + +// SetStandardErrorContent sets the StandardErrorContent field's value. +func (s *GetCommandInvocationOutput) SetStandardErrorContent(v string) *GetCommandInvocationOutput { + s.StandardErrorContent = &v + return s +} + +// SetStandardErrorUrl sets the StandardErrorUrl field's value. +func (s *GetCommandInvocationOutput) SetStandardErrorUrl(v string) *GetCommandInvocationOutput { + s.StandardErrorUrl = &v + return s +} + +// SetStandardOutputContent sets the StandardOutputContent field's value. +func (s *GetCommandInvocationOutput) SetStandardOutputContent(v string) *GetCommandInvocationOutput { + s.StandardOutputContent = &v + return s +} + +// SetStandardOutputUrl sets the StandardOutputUrl field's value. +func (s *GetCommandInvocationOutput) SetStandardOutputUrl(v string) *GetCommandInvocationOutput { + s.StandardOutputUrl = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetCommandInvocationOutput) SetStatus(v string) *GetCommandInvocationOutput { + s.Status = &v + return s +} + +// SetStatusDetails sets the StatusDetails field's value. +func (s *GetCommandInvocationOutput) SetStatusDetails(v string) *GetCommandInvocationOutput { + s.StatusDetails = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetDefaultPatchBaselineRequest +type GetDefaultPatchBaselineInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s GetDefaultPatchBaselineInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDefaultPatchBaselineInput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetDefaultPatchBaselineResult +type GetDefaultPatchBaselineOutput struct { + _ struct{} `type:"structure"` + + // The ID of the default patch baseline. + BaselineId *string `min:"20" type:"string"` +} + +// String returns the string representation +func (s GetDefaultPatchBaselineOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDefaultPatchBaselineOutput) GoString() string { + return s.String() +} + +// SetBaselineId sets the BaselineId field's value. +func (s *GetDefaultPatchBaselineOutput) SetBaselineId(v string) *GetDefaultPatchBaselineOutput { + s.BaselineId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetDeployablePatchSnapshotForInstanceRequest +type GetDeployablePatchSnapshotForInstanceInput struct { + _ struct{} `type:"structure"` + + // The ID of the instance for which the appropriate patch snapshot should be + // retrieved. + // + // InstanceId is a required field + InstanceId *string `type:"string" required:"true"` + + // The user-defined snapshot ID. + // + // SnapshotId is a required field + SnapshotId *string `min:"36" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetDeployablePatchSnapshotForInstanceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDeployablePatchSnapshotForInstanceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDeployablePatchSnapshotForInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDeployablePatchSnapshotForInstanceInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.SnapshotId == nil { + invalidParams.Add(request.NewErrParamRequired("SnapshotId")) + } + if s.SnapshotId != nil && len(*s.SnapshotId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("SnapshotId", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *GetDeployablePatchSnapshotForInstanceInput) SetInstanceId(v string) *GetDeployablePatchSnapshotForInstanceInput { + s.InstanceId = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *GetDeployablePatchSnapshotForInstanceInput) SetSnapshotId(v string) *GetDeployablePatchSnapshotForInstanceInput { + s.SnapshotId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetDeployablePatchSnapshotForInstanceResult +type GetDeployablePatchSnapshotForInstanceOutput struct { + _ struct{} `type:"structure"` + + // The ID of the instance. + InstanceId *string `type:"string"` + + // A pre-signed Amazon S3 URL that can be used to download the patch snapshot. + SnapshotDownloadUrl *string `type:"string"` + + // The user-defined snapshot ID. + SnapshotId *string `min:"36" type:"string"` +} + +// String returns the string representation +func (s GetDeployablePatchSnapshotForInstanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDeployablePatchSnapshotForInstanceOutput) GoString() string { + return s.String() +} + +// SetInstanceId sets the InstanceId field's value. +func (s *GetDeployablePatchSnapshotForInstanceOutput) SetInstanceId(v string) *GetDeployablePatchSnapshotForInstanceOutput { + s.InstanceId = &v + return s +} + +// SetSnapshotDownloadUrl sets the SnapshotDownloadUrl field's value. +func (s *GetDeployablePatchSnapshotForInstanceOutput) SetSnapshotDownloadUrl(v string) *GetDeployablePatchSnapshotForInstanceOutput { + s.SnapshotDownloadUrl = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *GetDeployablePatchSnapshotForInstanceOutput) SetSnapshotId(v string) *GetDeployablePatchSnapshotForInstanceOutput { + s.SnapshotId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetDocumentRequest +type GetDocumentInput struct { + _ struct{} `type:"structure"` + + // The document version for which you want information. + DocumentVersion *string `type:"string"` + + // The name of the SSM document. + // + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s GetDocumentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDocumentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDocumentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDocumentInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocumentVersion sets the DocumentVersion field's value. +func (s *GetDocumentInput) SetDocumentVersion(v string) *GetDocumentInput { + s.DocumentVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetDocumentInput) SetName(v string) *GetDocumentInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetDocumentResult +type GetDocumentOutput struct { + _ struct{} `type:"structure"` + + // The contents of the SSM document. + Content *string `min:"1" type:"string"` + + // The document type. + DocumentType *string `type:"string" enum:"DocumentType"` + + // The document version. + DocumentVersion *string `type:"string"` + + // The name of the SSM document. + Name *string `type:"string"` +} + +// String returns the string representation +func (s GetDocumentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDocumentOutput) GoString() string { + return s.String() +} + +// SetContent sets the Content field's value. +func (s *GetDocumentOutput) SetContent(v string) *GetDocumentOutput { + s.Content = &v + return s +} + +// SetDocumentType sets the DocumentType field's value. +func (s *GetDocumentOutput) SetDocumentType(v string) *GetDocumentOutput { + s.DocumentType = &v + return s +} + +// SetDocumentVersion sets the DocumentVersion field's value. +func (s *GetDocumentOutput) SetDocumentVersion(v string) *GetDocumentOutput { + s.DocumentVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetDocumentOutput) SetName(v string) *GetDocumentOutput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetInventoryRequest +type GetInventoryInput struct { + _ struct{} `type:"structure"` + + // One or more filters. Use a filter to return a more specific list of results. + Filters []*InventoryFilter `locationNameList:"InventoryFilter" min:"1" type:"list"` + + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` + + // The list of inventory item types to return. + ResultAttributes []*ResultAttribute `locationNameList:"ResultAttribute" min:"1" type:"list"` +} + +// String returns the string representation +func (s GetInventoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInventoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetInventoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetInventoryInput"} + if s.Filters != nil && len(s.Filters) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ResultAttributes != nil && len(s.ResultAttributes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResultAttributes", 1)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + if s.ResultAttributes != nil { + for i, v := range s.ResultAttributes { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ResultAttributes", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *GetInventoryInput) SetFilters(v []*InventoryFilter) *GetInventoryInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetInventoryInput) SetMaxResults(v int64) *GetInventoryInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetInventoryInput) SetNextToken(v string) *GetInventoryInput { + s.NextToken = &v + return s +} + +// SetResultAttributes sets the ResultAttributes field's value. +func (s *GetInventoryInput) SetResultAttributes(v []*ResultAttribute) *GetInventoryInput { + s.ResultAttributes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetInventoryResult +type GetInventoryOutput struct { + _ struct{} `type:"structure"` + + // Collection of inventory entities such as a collection of instance inventory. + Entities []*InventoryResultEntity `locationNameList:"Entity" type:"list"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s GetInventoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInventoryOutput) GoString() string { + return s.String() +} + +// SetEntities sets the Entities field's value. +func (s *GetInventoryOutput) SetEntities(v []*InventoryResultEntity) *GetInventoryOutput { + s.Entities = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetInventoryOutput) SetNextToken(v string) *GetInventoryOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetInventorySchemaRequest +type GetInventorySchemaInput struct { + _ struct{} `type:"structure"` + + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `min:"50" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` + + // The type of inventory item to return. + TypeName *string `type:"string"` +} + +// String returns the string representation +func (s GetInventorySchemaInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInventorySchemaInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetInventorySchemaInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetInventorySchemaInput"} + if s.MaxResults != nil && *s.MaxResults < 50 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 50)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetInventorySchemaInput) SetMaxResults(v int64) *GetInventorySchemaInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetInventorySchemaInput) SetNextToken(v string) *GetInventorySchemaInput { + s.NextToken = &v + return s +} + +// SetTypeName sets the TypeName field's value. +func (s *GetInventorySchemaInput) SetTypeName(v string) *GetInventorySchemaInput { + s.TypeName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetInventorySchemaResult +type GetInventorySchemaOutput struct { + _ struct{} `type:"structure"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` + + // Inventory schemas returned by the request. + Schemas []*InventoryItemSchema `type:"list"` +} + +// String returns the string representation +func (s GetInventorySchemaOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInventorySchemaOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *GetInventorySchemaOutput) SetNextToken(v string) *GetInventorySchemaOutput { + s.NextToken = &v + return s +} + +// SetSchemas sets the Schemas field's value. +func (s *GetInventorySchemaOutput) SetSchemas(v []*InventoryItemSchema) *GetInventorySchemaOutput { + s.Schemas = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetMaintenanceWindowExecutionRequest +type GetMaintenanceWindowExecutionInput struct { + _ struct{} `type:"structure"` + + // The ID of the Maintenance Window execution that includes the task. + // + // WindowExecutionId is a required field + WindowExecutionId *string `min:"36" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetMaintenanceWindowExecutionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMaintenanceWindowExecutionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetMaintenanceWindowExecutionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMaintenanceWindowExecutionInput"} + if s.WindowExecutionId == nil { + invalidParams.Add(request.NewErrParamRequired("WindowExecutionId")) + } + if s.WindowExecutionId != nil && len(*s.WindowExecutionId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("WindowExecutionId", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetWindowExecutionId sets the WindowExecutionId field's value. +func (s *GetMaintenanceWindowExecutionInput) SetWindowExecutionId(v string) *GetMaintenanceWindowExecutionInput { + s.WindowExecutionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetMaintenanceWindowExecutionResult +type GetMaintenanceWindowExecutionOutput struct { + _ struct{} `type:"structure"` + + // The time the Maintenance Window finished executing. + EndTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The time the Maintenance Window started executing. + StartTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The status of the Maintenance Window execution. + Status *string `type:"string" enum:"MaintenanceWindowExecutionStatus"` + + // The details explaining the Status. Only available for certain status values. + StatusDetails *string `type:"string"` + + // The ID of the task executions from the Maintenance Window execution. + TaskIds []*string `type:"list"` + + // The ID of the Maintenance Window execution. + WindowExecutionId *string `min:"36" type:"string"` +} + +// String returns the string representation +func (s GetMaintenanceWindowExecutionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMaintenanceWindowExecutionOutput) GoString() string { + return s.String() +} + +// SetEndTime sets the EndTime field's value. +func (s *GetMaintenanceWindowExecutionOutput) SetEndTime(v time.Time) *GetMaintenanceWindowExecutionOutput { + s.EndTime = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *GetMaintenanceWindowExecutionOutput) SetStartTime(v time.Time) *GetMaintenanceWindowExecutionOutput { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetMaintenanceWindowExecutionOutput) SetStatus(v string) *GetMaintenanceWindowExecutionOutput { + s.Status = &v + return s +} + +// SetStatusDetails sets the StatusDetails field's value. +func (s *GetMaintenanceWindowExecutionOutput) SetStatusDetails(v string) *GetMaintenanceWindowExecutionOutput { + s.StatusDetails = &v + return s +} + +// SetTaskIds sets the TaskIds field's value. +func (s *GetMaintenanceWindowExecutionOutput) SetTaskIds(v []*string) *GetMaintenanceWindowExecutionOutput { + s.TaskIds = v + return s +} + +// SetWindowExecutionId sets the WindowExecutionId field's value. +func (s *GetMaintenanceWindowExecutionOutput) SetWindowExecutionId(v string) *GetMaintenanceWindowExecutionOutput { + s.WindowExecutionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetMaintenanceWindowExecutionTaskRequest +type GetMaintenanceWindowExecutionTaskInput struct { + _ struct{} `type:"structure"` + + // The ID of the specific task execution in the Maintenance Window task that + // should be retrieved. + // + // TaskId is a required field + TaskId *string `min:"36" type:"string" required:"true"` + + // The ID of the Maintenance Window execution that includes the task. + // + // WindowExecutionId is a required field + WindowExecutionId *string `min:"36" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetMaintenanceWindowExecutionTaskInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMaintenanceWindowExecutionTaskInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetMaintenanceWindowExecutionTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMaintenanceWindowExecutionTaskInput"} + if s.TaskId == nil { + invalidParams.Add(request.NewErrParamRequired("TaskId")) + } + if s.TaskId != nil && len(*s.TaskId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("TaskId", 36)) + } + if s.WindowExecutionId == nil { + invalidParams.Add(request.NewErrParamRequired("WindowExecutionId")) + } + if s.WindowExecutionId != nil && len(*s.WindowExecutionId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("WindowExecutionId", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTaskId sets the TaskId field's value. +func (s *GetMaintenanceWindowExecutionTaskInput) SetTaskId(v string) *GetMaintenanceWindowExecutionTaskInput { + s.TaskId = &v + return s +} + +// SetWindowExecutionId sets the WindowExecutionId field's value. +func (s *GetMaintenanceWindowExecutionTaskInput) SetWindowExecutionId(v string) *GetMaintenanceWindowExecutionTaskInput { + s.WindowExecutionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetMaintenanceWindowExecutionTaskResult +type GetMaintenanceWindowExecutionTaskOutput struct { + _ struct{} `type:"structure"` + + // The time the task execution completed. + EndTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The defined maximum number of task executions that could be run in parallel. + MaxConcurrency *string `min:"1" type:"string"` + + // The defined maximum number of task execution errors allowed before scheduling + // of the task execution would have been stopped. + MaxErrors *string `min:"1" type:"string"` + + // The priority of the task. + Priority *int64 `type:"integer"` + + // The role that was assumed when executing the task. + ServiceRole *string `type:"string"` + + // The time the task execution started. + StartTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The status of the task. + Status *string `type:"string" enum:"MaintenanceWindowExecutionStatus"` + + // The details explaining the Status. Only available for certain status values. + StatusDetails *string `type:"string"` + + // The ARN of the executed task. + TaskArn *string `min:"1" type:"string"` + + // The ID of the specific task execution in the Maintenance Window task that + // was retrieved. + TaskExecutionId *string `min:"36" type:"string"` + + // The parameters passed to the task when it was executed. The map has the following + // format: + // + // Key: string, 1 ≤ length ≤ 255 + // + // Value: an array of strings where each string 1 ≤ length ≤ 255 + TaskParameters []map[string]*MaintenanceWindowTaskParameterValueExpression `type:"list"` + + // The type of task executed. + Type *string `type:"string" enum:"MaintenanceWindowTaskType"` + + // The ID of the Maintenance Window execution that includes the task. + WindowExecutionId *string `min:"36" type:"string"` +} + +// String returns the string representation +func (s GetMaintenanceWindowExecutionTaskOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMaintenanceWindowExecutionTaskOutput) GoString() string { + return s.String() +} + +// SetEndTime sets the EndTime field's value. +func (s *GetMaintenanceWindowExecutionTaskOutput) SetEndTime(v time.Time) *GetMaintenanceWindowExecutionTaskOutput { + s.EndTime = &v + return s +} + +// SetMaxConcurrency sets the MaxConcurrency field's value. +func (s *GetMaintenanceWindowExecutionTaskOutput) SetMaxConcurrency(v string) *GetMaintenanceWindowExecutionTaskOutput { + s.MaxConcurrency = &v + return s +} + +// SetMaxErrors sets the MaxErrors field's value. +func (s *GetMaintenanceWindowExecutionTaskOutput) SetMaxErrors(v string) *GetMaintenanceWindowExecutionTaskOutput { + s.MaxErrors = &v + return s +} + +// SetPriority sets the Priority field's value. +func (s *GetMaintenanceWindowExecutionTaskOutput) SetPriority(v int64) *GetMaintenanceWindowExecutionTaskOutput { + s.Priority = &v + return s +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *GetMaintenanceWindowExecutionTaskOutput) SetServiceRole(v string) *GetMaintenanceWindowExecutionTaskOutput { + s.ServiceRole = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *GetMaintenanceWindowExecutionTaskOutput) SetStartTime(v time.Time) *GetMaintenanceWindowExecutionTaskOutput { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetMaintenanceWindowExecutionTaskOutput) SetStatus(v string) *GetMaintenanceWindowExecutionTaskOutput { + s.Status = &v + return s +} + +// SetStatusDetails sets the StatusDetails field's value. +func (s *GetMaintenanceWindowExecutionTaskOutput) SetStatusDetails(v string) *GetMaintenanceWindowExecutionTaskOutput { + s.StatusDetails = &v + return s +} + +// SetTaskArn sets the TaskArn field's value. +func (s *GetMaintenanceWindowExecutionTaskOutput) SetTaskArn(v string) *GetMaintenanceWindowExecutionTaskOutput { + s.TaskArn = &v + return s +} + +// SetTaskExecutionId sets the TaskExecutionId field's value. +func (s *GetMaintenanceWindowExecutionTaskOutput) SetTaskExecutionId(v string) *GetMaintenanceWindowExecutionTaskOutput { + s.TaskExecutionId = &v + return s +} + +// SetTaskParameters sets the TaskParameters field's value. +func (s *GetMaintenanceWindowExecutionTaskOutput) SetTaskParameters(v []map[string]*MaintenanceWindowTaskParameterValueExpression) *GetMaintenanceWindowExecutionTaskOutput { + s.TaskParameters = v + return s +} + +// SetType sets the Type field's value. +func (s *GetMaintenanceWindowExecutionTaskOutput) SetType(v string) *GetMaintenanceWindowExecutionTaskOutput { + s.Type = &v + return s +} + +// SetWindowExecutionId sets the WindowExecutionId field's value. +func (s *GetMaintenanceWindowExecutionTaskOutput) SetWindowExecutionId(v string) *GetMaintenanceWindowExecutionTaskOutput { + s.WindowExecutionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetMaintenanceWindowRequest +type GetMaintenanceWindowInput struct { + _ struct{} `type:"structure"` + + // The ID of the desired Maintenance Window. + // + // WindowId is a required field + WindowId *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetMaintenanceWindowInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMaintenanceWindowInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetMaintenanceWindowInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMaintenanceWindowInput"} + if s.WindowId == nil { + invalidParams.Add(request.NewErrParamRequired("WindowId")) + } + if s.WindowId != nil && len(*s.WindowId) < 20 { + invalidParams.Add(request.NewErrParamMinLen("WindowId", 20)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetWindowId sets the WindowId field's value. +func (s *GetMaintenanceWindowInput) SetWindowId(v string) *GetMaintenanceWindowInput { + s.WindowId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetMaintenanceWindowResult +type GetMaintenanceWindowOutput struct { + _ struct{} `type:"structure"` + + // Whether targets must be registered with the Maintenance Window before tasks + // can be defined for those targets. + AllowUnassociatedTargets *bool `type:"boolean"` + + // The date the Maintenance Window was created. + CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The number of hours before the end of the Maintenance Window that Systems + // Manager stops scheduling new tasks for execution. + Cutoff *int64 `type:"integer"` + + // The duration of the Maintenance Window in hours. + Duration *int64 `min:"1" type:"integer"` + + // Whether the Maintenance Windows is enabled. + Enabled *bool `type:"boolean"` + + // The date the Maintenance Window was last modified. + ModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The name of the Maintenance Window. + Name *string `min:"3" type:"string"` + + // The schedule of the Maintenance Window in the form of a cron or rate expression. + Schedule *string `min:"1" type:"string"` + + // The ID of the created Maintenance Window. + WindowId *string `min:"20" type:"string"` +} + +// String returns the string representation +func (s GetMaintenanceWindowOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMaintenanceWindowOutput) GoString() string { + return s.String() +} + +// SetAllowUnassociatedTargets sets the AllowUnassociatedTargets field's value. +func (s *GetMaintenanceWindowOutput) SetAllowUnassociatedTargets(v bool) *GetMaintenanceWindowOutput { + s.AllowUnassociatedTargets = &v + return s +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *GetMaintenanceWindowOutput) SetCreatedDate(v time.Time) *GetMaintenanceWindowOutput { + s.CreatedDate = &v + return s +} + +// SetCutoff sets the Cutoff field's value. +func (s *GetMaintenanceWindowOutput) SetCutoff(v int64) *GetMaintenanceWindowOutput { + s.Cutoff = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *GetMaintenanceWindowOutput) SetDuration(v int64) *GetMaintenanceWindowOutput { + s.Duration = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *GetMaintenanceWindowOutput) SetEnabled(v bool) *GetMaintenanceWindowOutput { + s.Enabled = &v + return s +} + +// SetModifiedDate sets the ModifiedDate field's value. +func (s *GetMaintenanceWindowOutput) SetModifiedDate(v time.Time) *GetMaintenanceWindowOutput { + s.ModifiedDate = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetMaintenanceWindowOutput) SetName(v string) *GetMaintenanceWindowOutput { + s.Name = &v + return s +} + +// SetSchedule sets the Schedule field's value. +func (s *GetMaintenanceWindowOutput) SetSchedule(v string) *GetMaintenanceWindowOutput { + s.Schedule = &v + return s +} + +// SetWindowId sets the WindowId field's value. +func (s *GetMaintenanceWindowOutput) SetWindowId(v string) *GetMaintenanceWindowOutput { + s.WindowId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetParameterHistoryRequest +type GetParameterHistoryInput struct { + _ struct{} `type:"structure"` + + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `min:"1" type:"integer"` + + // The name of a parameter you want to query. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` + + // Return decrypted values for secure string parameters. This flag is ignored + // for String and StringList parameter types. + WithDecryption *bool `type:"boolean"` +} + +// String returns the string representation +func (s GetParameterHistoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetParameterHistoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetParameterHistoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetParameterHistoryInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetParameterHistoryInput) SetMaxResults(v int64) *GetParameterHistoryInput { + s.MaxResults = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetParameterHistoryInput) SetName(v string) *GetParameterHistoryInput { + s.Name = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetParameterHistoryInput) SetNextToken(v string) *GetParameterHistoryInput { + s.NextToken = &v + return s +} + +// SetWithDecryption sets the WithDecryption field's value. +func (s *GetParameterHistoryInput) SetWithDecryption(v bool) *GetParameterHistoryInput { + s.WithDecryption = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetParameterHistoryResult +type GetParameterHistoryOutput struct { + _ struct{} `type:"structure"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` + + // A list of parameters returned by the request. + Parameters []*ParameterHistory `type:"list"` +} + +// String returns the string representation +func (s GetParameterHistoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetParameterHistoryOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *GetParameterHistoryOutput) SetNextToken(v string) *GetParameterHistoryOutput { + s.NextToken = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *GetParameterHistoryOutput) SetParameters(v []*ParameterHistory) *GetParameterHistoryOutput { + s.Parameters = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetParametersRequest +type GetParametersInput struct { + _ struct{} `type:"structure"` + + // Names of the parameters for which you want to query information. + // + // Names is a required field + Names []*string `min:"1" type:"list" required:"true"` + + // Return decrypted secure string value. Return decrypted values for secure + // string parameters. This flag is ignored for String and StringList parameter + // types. + WithDecryption *bool `type:"boolean"` +} + +// String returns the string representation +func (s GetParametersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetParametersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetParametersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetParametersInput"} + if s.Names == nil { + invalidParams.Add(request.NewErrParamRequired("Names")) + } + if s.Names != nil && len(s.Names) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Names", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNames sets the Names field's value. +func (s *GetParametersInput) SetNames(v []*string) *GetParametersInput { + s.Names = v + return s +} + +// SetWithDecryption sets the WithDecryption field's value. +func (s *GetParametersInput) SetWithDecryption(v bool) *GetParametersInput { + s.WithDecryption = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetParametersResult +type GetParametersOutput struct { + _ struct{} `type:"structure"` + + // A list of parameters that are not formatted correctly or do not run when + // executed. + InvalidParameters []*string `min:"1" type:"list"` + + // A list of parameters used by the AWS account. + Parameters []*Parameter `type:"list"` +} + +// String returns the string representation +func (s GetParametersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetParametersOutput) GoString() string { + return s.String() +} + +// SetInvalidParameters sets the InvalidParameters field's value. +func (s *GetParametersOutput) SetInvalidParameters(v []*string) *GetParametersOutput { + s.InvalidParameters = v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *GetParametersOutput) SetParameters(v []*Parameter) *GetParametersOutput { + s.Parameters = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetPatchBaselineForPatchGroupRequest +type GetPatchBaselineForPatchGroupInput struct { + _ struct{} `type:"structure"` + + // The name of the patch group whose patch baseline should be retrieved. + // + // PatchGroup is a required field + PatchGroup *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetPatchBaselineForPatchGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetPatchBaselineForPatchGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetPatchBaselineForPatchGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetPatchBaselineForPatchGroupInput"} + if s.PatchGroup == nil { + invalidParams.Add(request.NewErrParamRequired("PatchGroup")) + } + if s.PatchGroup != nil && len(*s.PatchGroup) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PatchGroup", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPatchGroup sets the PatchGroup field's value. +func (s *GetPatchBaselineForPatchGroupInput) SetPatchGroup(v string) *GetPatchBaselineForPatchGroupInput { + s.PatchGroup = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetPatchBaselineForPatchGroupResult +type GetPatchBaselineForPatchGroupOutput struct { + _ struct{} `type:"structure"` + + // The ID of the patch baseline that should be used for the patch group. + BaselineId *string `min:"20" type:"string"` + + // The name of the patch group. + PatchGroup *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s GetPatchBaselineForPatchGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetPatchBaselineForPatchGroupOutput) GoString() string { + return s.String() +} + +// SetBaselineId sets the BaselineId field's value. +func (s *GetPatchBaselineForPatchGroupOutput) SetBaselineId(v string) *GetPatchBaselineForPatchGroupOutput { + s.BaselineId = &v + return s +} + +// SetPatchGroup sets the PatchGroup field's value. +func (s *GetPatchBaselineForPatchGroupOutput) SetPatchGroup(v string) *GetPatchBaselineForPatchGroupOutput { + s.PatchGroup = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetPatchBaselineRequest +type GetPatchBaselineInput struct { + _ struct{} `type:"structure"` + + // The ID of the patch baseline to retrieve. + // + // BaselineId is a required field + BaselineId *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetPatchBaselineInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetPatchBaselineInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetPatchBaselineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetPatchBaselineInput"} + if s.BaselineId == nil { + invalidParams.Add(request.NewErrParamRequired("BaselineId")) + } + if s.BaselineId != nil && len(*s.BaselineId) < 20 { + invalidParams.Add(request.NewErrParamMinLen("BaselineId", 20)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBaselineId sets the BaselineId field's value. +func (s *GetPatchBaselineInput) SetBaselineId(v string) *GetPatchBaselineInput { + s.BaselineId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetPatchBaselineResult +type GetPatchBaselineOutput struct { + _ struct{} `type:"structure"` + + // A set of rules used to include patches in the baseline. + ApprovalRules *PatchRuleGroup `type:"structure"` + + // A list of explicitly approved patches for the baseline. + ApprovedPatches []*string `type:"list"` + + // The ID of the retrieved patch baseline. + BaselineId *string `min:"20" type:"string"` + + // The date the patch baseline was created. + CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // A description of the patch baseline. + Description *string `min:"1" type:"string"` + + // A set of global filters used to exclude patches from the baseline. + GlobalFilters *PatchFilterGroup `type:"structure"` + + // The date the patch baseline was last modified. + ModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The name of the patch baseline. + Name *string `min:"3" type:"string"` + + // Patch groups included in the patch baseline. + PatchGroups []*string `type:"list"` + + // A list of explicitly rejected patches for the baseline. + RejectedPatches []*string `type:"list"` +} + +// String returns the string representation +func (s GetPatchBaselineOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetPatchBaselineOutput) GoString() string { + return s.String() +} + +// SetApprovalRules sets the ApprovalRules field's value. +func (s *GetPatchBaselineOutput) SetApprovalRules(v *PatchRuleGroup) *GetPatchBaselineOutput { + s.ApprovalRules = v + return s +} + +// SetApprovedPatches sets the ApprovedPatches field's value. +func (s *GetPatchBaselineOutput) SetApprovedPatches(v []*string) *GetPatchBaselineOutput { + s.ApprovedPatches = v + return s +} + +// SetBaselineId sets the BaselineId field's value. +func (s *GetPatchBaselineOutput) SetBaselineId(v string) *GetPatchBaselineOutput { + s.BaselineId = &v + return s +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *GetPatchBaselineOutput) SetCreatedDate(v time.Time) *GetPatchBaselineOutput { + s.CreatedDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *GetPatchBaselineOutput) SetDescription(v string) *GetPatchBaselineOutput { + s.Description = &v + return s +} + +// SetGlobalFilters sets the GlobalFilters field's value. +func (s *GetPatchBaselineOutput) SetGlobalFilters(v *PatchFilterGroup) *GetPatchBaselineOutput { + s.GlobalFilters = v + return s +} + +// SetModifiedDate sets the ModifiedDate field's value. +func (s *GetPatchBaselineOutput) SetModifiedDate(v time.Time) *GetPatchBaselineOutput { + s.ModifiedDate = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetPatchBaselineOutput) SetName(v string) *GetPatchBaselineOutput { + s.Name = &v + return s +} + +// SetPatchGroups sets the PatchGroups field's value. +func (s *GetPatchBaselineOutput) SetPatchGroups(v []*string) *GetPatchBaselineOutput { + s.PatchGroups = v + return s +} + +// SetRejectedPatches sets the RejectedPatches field's value. +func (s *GetPatchBaselineOutput) SetRejectedPatches(v []*string) *GetPatchBaselineOutput { + s.RejectedPatches = v + return s +} + +// Status information about the aggregated associations. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InstanceAggregatedAssociationOverview +type InstanceAggregatedAssociationOverview struct { + _ struct{} `type:"structure"` + + // Detailed status information about the aggregated associations. + DetailedStatus *string `type:"string"` + + // The number of associations for the instance(s). + InstanceAssociationStatusAggregatedCount map[string]*int64 `type:"map"` +} + +// String returns the string representation +func (s InstanceAggregatedAssociationOverview) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceAggregatedAssociationOverview) GoString() string { + return s.String() +} + +// SetDetailedStatus sets the DetailedStatus field's value. +func (s *InstanceAggregatedAssociationOverview) SetDetailedStatus(v string) *InstanceAggregatedAssociationOverview { + s.DetailedStatus = &v + return s +} + +// SetInstanceAssociationStatusAggregatedCount sets the InstanceAssociationStatusAggregatedCount field's value. +func (s *InstanceAggregatedAssociationOverview) SetInstanceAssociationStatusAggregatedCount(v map[string]*int64) *InstanceAggregatedAssociationOverview { + s.InstanceAssociationStatusAggregatedCount = v + return s +} + +// One or more association documents on the instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InstanceAssociation +type InstanceAssociation struct { + _ struct{} `type:"structure"` + + // The association ID. + AssociationId *string `type:"string"` + + // The content of the association document for the instance(s). + Content *string `min:"1" type:"string"` + + // The instance ID. + InstanceId *string `type:"string"` +} + +// String returns the string representation +func (s InstanceAssociation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceAssociation) GoString() string { + return s.String() +} + +// SetAssociationId sets the AssociationId field's value. +func (s *InstanceAssociation) SetAssociationId(v string) *InstanceAssociation { + s.AssociationId = &v + return s +} + +// SetContent sets the Content field's value. +func (s *InstanceAssociation) SetContent(v string) *InstanceAssociation { + s.Content = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *InstanceAssociation) SetInstanceId(v string) *InstanceAssociation { + s.InstanceId = &v + return s +} + +// An Amazon S3 bucket where you want to store the results of this request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InstanceAssociationOutputLocation +type InstanceAssociationOutputLocation struct { + _ struct{} `type:"structure"` + + // An Amazon S3 bucket where you want to store the results of this request. + S3Location *S3OutputLocation `type:"structure"` +} + +// String returns the string representation +func (s InstanceAssociationOutputLocation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceAssociationOutputLocation) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InstanceAssociationOutputLocation) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InstanceAssociationOutputLocation"} + if s.S3Location != nil { + if err := s.S3Location.Validate(); err != nil { + invalidParams.AddNested("S3Location", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3Location sets the S3Location field's value. +func (s *InstanceAssociationOutputLocation) SetS3Location(v *S3OutputLocation) *InstanceAssociationOutputLocation { + s.S3Location = v + return s +} + +// The URL of Amazon S3 bucket where you want to store the results of this request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InstanceAssociationOutputUrl +type InstanceAssociationOutputUrl struct { + _ struct{} `type:"structure"` + + // The URL of Amazon S3 bucket where you want to store the results of this request. + S3OutputUrl *S3OutputUrl `type:"structure"` +} + +// String returns the string representation +func (s InstanceAssociationOutputUrl) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceAssociationOutputUrl) GoString() string { + return s.String() +} + +// SetS3OutputUrl sets the S3OutputUrl field's value. +func (s *InstanceAssociationOutputUrl) SetS3OutputUrl(v *S3OutputUrl) *InstanceAssociationOutputUrl { + s.S3OutputUrl = v + return s +} + +// Status information about the instance association. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InstanceAssociationStatusInfo +type InstanceAssociationStatusInfo struct { + _ struct{} `type:"structure"` + + // The association ID. + AssociationId *string `type:"string"` + + // Detailed status information about the instance association. + DetailedStatus *string `type:"string"` + + // The association document verions. + DocumentVersion *string `type:"string"` + + // An error code returned by the request to create the association. + ErrorCode *string `type:"string"` + + // The date the instance association executed. + ExecutionDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // Summary information about association execution. + ExecutionSummary *string `min:"1" type:"string"` + + // The instance ID where the association was created. + InstanceId *string `type:"string"` + + // The name of the association. + Name *string `type:"string"` + + // A URL for an Amazon S3 bucket where you want to store the results of this + // request. + OutputUrl *InstanceAssociationOutputUrl `type:"structure"` + + // Status information about the instance association. + Status *string `type:"string"` +} + +// String returns the string representation +func (s InstanceAssociationStatusInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceAssociationStatusInfo) GoString() string { + return s.String() +} + +// SetAssociationId sets the AssociationId field's value. +func (s *InstanceAssociationStatusInfo) SetAssociationId(v string) *InstanceAssociationStatusInfo { + s.AssociationId = &v + return s +} + +// SetDetailedStatus sets the DetailedStatus field's value. +func (s *InstanceAssociationStatusInfo) SetDetailedStatus(v string) *InstanceAssociationStatusInfo { + s.DetailedStatus = &v + return s +} + +// SetDocumentVersion sets the DocumentVersion field's value. +func (s *InstanceAssociationStatusInfo) SetDocumentVersion(v string) *InstanceAssociationStatusInfo { + s.DocumentVersion = &v + return s +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *InstanceAssociationStatusInfo) SetErrorCode(v string) *InstanceAssociationStatusInfo { + s.ErrorCode = &v + return s +} + +// SetExecutionDate sets the ExecutionDate field's value. +func (s *InstanceAssociationStatusInfo) SetExecutionDate(v time.Time) *InstanceAssociationStatusInfo { + s.ExecutionDate = &v + return s +} + +// SetExecutionSummary sets the ExecutionSummary field's value. +func (s *InstanceAssociationStatusInfo) SetExecutionSummary(v string) *InstanceAssociationStatusInfo { + s.ExecutionSummary = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *InstanceAssociationStatusInfo) SetInstanceId(v string) *InstanceAssociationStatusInfo { + s.InstanceId = &v + return s +} + +// SetName sets the Name field's value. +func (s *InstanceAssociationStatusInfo) SetName(v string) *InstanceAssociationStatusInfo { + s.Name = &v + return s +} + +// SetOutputUrl sets the OutputUrl field's value. +func (s *InstanceAssociationStatusInfo) SetOutputUrl(v *InstanceAssociationOutputUrl) *InstanceAssociationStatusInfo { + s.OutputUrl = v + return s +} + +// SetStatus sets the Status field's value. +func (s *InstanceAssociationStatusInfo) SetStatus(v string) *InstanceAssociationStatusInfo { + s.Status = &v + return s +} + +// Describes a filter for a specific list of instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InstanceInformation +type InstanceInformation struct { + _ struct{} `type:"structure"` + + // The activation ID created by Systems Manager when the server or VM was registered. + ActivationId *string `type:"string"` + + // The version of the SSM agent running on your Linux instance. + AgentVersion *string `type:"string"` + + // Information about the association. + AssociationOverview *InstanceAggregatedAssociationOverview `type:"structure"` + + // The status of the association. + AssociationStatus *string `type:"string"` + + // The fully qualified host name of the managed instance. + ComputerName *string `min:"1" type:"string"` + + // The IP address of the managed instance. + IPAddress *string `min:"1" type:"string"` + + // The Amazon Identity and Access Management (IAM) role assigned to EC2 instances + // or managed instances. + IamRole *string `type:"string"` + + // The instance ID. + InstanceId *string `type:"string"` + + // Indicates whether latest version of the SSM agent is running on your instance. + IsLatestVersion *bool `type:"boolean"` + + // The date the association was last executed. + LastAssociationExecutionDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The date and time when agent last pinged Systems Manager service. + LastPingDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The last date the association was successfully run. + LastSuccessfulAssociationExecutionDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The name of the managed instance. + Name *string `type:"string"` + + // Connection status of the SSM agent. + PingStatus *string `type:"string" enum:"PingStatus"` + + // The name of the operating system platform running on your instance. + PlatformName *string `type:"string"` + + // The operating system platform type. + PlatformType *string `type:"string" enum:"PlatformType"` + + // The version of the OS platform running on your instance. + PlatformVersion *string `type:"string"` + + // The date the server or VM was registered with AWS as a managed instance. + RegistrationDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The type of instance. Instances are either EC2 instances or managed instances. + ResourceType *string `type:"string" enum:"ResourceType"` +} + +// String returns the string representation +func (s InstanceInformation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceInformation) GoString() string { + return s.String() +} + +// SetActivationId sets the ActivationId field's value. +func (s *InstanceInformation) SetActivationId(v string) *InstanceInformation { + s.ActivationId = &v + return s +} + +// SetAgentVersion sets the AgentVersion field's value. +func (s *InstanceInformation) SetAgentVersion(v string) *InstanceInformation { + s.AgentVersion = &v + return s +} + +// SetAssociationOverview sets the AssociationOverview field's value. +func (s *InstanceInformation) SetAssociationOverview(v *InstanceAggregatedAssociationOverview) *InstanceInformation { + s.AssociationOverview = v + return s +} + +// SetAssociationStatus sets the AssociationStatus field's value. +func (s *InstanceInformation) SetAssociationStatus(v string) *InstanceInformation { + s.AssociationStatus = &v + return s +} + +// SetComputerName sets the ComputerName field's value. +func (s *InstanceInformation) SetComputerName(v string) *InstanceInformation { + s.ComputerName = &v + return s +} + +// SetIPAddress sets the IPAddress field's value. +func (s *InstanceInformation) SetIPAddress(v string) *InstanceInformation { + s.IPAddress = &v + return s +} + +// SetIamRole sets the IamRole field's value. +func (s *InstanceInformation) SetIamRole(v string) *InstanceInformation { + s.IamRole = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *InstanceInformation) SetInstanceId(v string) *InstanceInformation { + s.InstanceId = &v + return s +} + +// SetIsLatestVersion sets the IsLatestVersion field's value. +func (s *InstanceInformation) SetIsLatestVersion(v bool) *InstanceInformation { + s.IsLatestVersion = &v + return s +} + +// SetLastAssociationExecutionDate sets the LastAssociationExecutionDate field's value. +func (s *InstanceInformation) SetLastAssociationExecutionDate(v time.Time) *InstanceInformation { + s.LastAssociationExecutionDate = &v + return s +} + +// SetLastPingDateTime sets the LastPingDateTime field's value. +func (s *InstanceInformation) SetLastPingDateTime(v time.Time) *InstanceInformation { + s.LastPingDateTime = &v + return s +} + +// SetLastSuccessfulAssociationExecutionDate sets the LastSuccessfulAssociationExecutionDate field's value. +func (s *InstanceInformation) SetLastSuccessfulAssociationExecutionDate(v time.Time) *InstanceInformation { + s.LastSuccessfulAssociationExecutionDate = &v + return s +} + +// SetName sets the Name field's value. +func (s *InstanceInformation) SetName(v string) *InstanceInformation { + s.Name = &v + return s +} + +// SetPingStatus sets the PingStatus field's value. +func (s *InstanceInformation) SetPingStatus(v string) *InstanceInformation { + s.PingStatus = &v + return s +} + +// SetPlatformName sets the PlatformName field's value. +func (s *InstanceInformation) SetPlatformName(v string) *InstanceInformation { + s.PlatformName = &v + return s +} + +// SetPlatformType sets the PlatformType field's value. +func (s *InstanceInformation) SetPlatformType(v string) *InstanceInformation { + s.PlatformType = &v + return s +} + +// SetPlatformVersion sets the PlatformVersion field's value. +func (s *InstanceInformation) SetPlatformVersion(v string) *InstanceInformation { + s.PlatformVersion = &v + return s +} + +// SetRegistrationDate sets the RegistrationDate field's value. +func (s *InstanceInformation) SetRegistrationDate(v time.Time) *InstanceInformation { + s.RegistrationDate = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *InstanceInformation) SetResourceType(v string) *InstanceInformation { + s.ResourceType = &v + return s +} + +// Describes a filter for a specific list of instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InstanceInformationFilter +type InstanceInformationFilter struct { + _ struct{} `type:"structure"` + + // The name of the filter. + // + // Key is a required field + Key *string `locationName:"key" type:"string" required:"true" enum:"InstanceInformationFilterKey"` + + // The filter values. + // + // ValueSet is a required field + ValueSet []*string `locationName:"valueSet" locationNameList:"InstanceInformationFilterValue" min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s InstanceInformationFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceInformationFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InstanceInformationFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InstanceInformationFilter"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.ValueSet == nil { + invalidParams.Add(request.NewErrParamRequired("ValueSet")) + } + if s.ValueSet != nil && len(s.ValueSet) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ValueSet", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *InstanceInformationFilter) SetKey(v string) *InstanceInformationFilter { + s.Key = &v + return s +} + +// SetValueSet sets the ValueSet field's value. +func (s *InstanceInformationFilter) SetValueSet(v []*string) *InstanceInformationFilter { + s.ValueSet = v + return s +} + +// The filters to describe or get information about your managed instances. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InstanceInformationStringFilter +type InstanceInformationStringFilter struct { + _ struct{} `type:"structure"` + + // The filter key name to describe your instances. For example: + // + // "InstanceIds"|"AgentVersion"|"PingStatus"|"PlatformTypes"|"ActivationIds"|"IamRole"|"ResourceType"|”AssociationStatus”|”Tag + // Key” + // + // Key is a required field + Key *string `min:"1" type:"string" required:"true"` + + // The filter values. + // + // Values is a required field + Values []*string `locationNameList:"InstanceInformationFilterValue" min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s InstanceInformationStringFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceInformationStringFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InstanceInformationStringFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InstanceInformationStringFilter"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + if s.Values == nil { + invalidParams.Add(request.NewErrParamRequired("Values")) + } + if s.Values != nil && len(s.Values) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Values", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *InstanceInformationStringFilter) SetKey(v string) *InstanceInformationStringFilter { + s.Key = &v + return s +} + +// SetValues sets the Values field's value. +func (s *InstanceInformationStringFilter) SetValues(v []*string) *InstanceInformationStringFilter { + s.Values = v + return s +} + +// Defines the high-level patch compliance state for a managed instance, providing +// information about the number of installed, missing, not applicable, and failed +// patches along with metadata about the operation when this information was +// gathered for the instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InstancePatchState +type InstancePatchState struct { + _ struct{} `type:"structure"` + + // The ID of the patch baseline used to patch the instance. + // + // BaselineId is a required field + BaselineId *string `min:"20" type:"string" required:"true"` + + // The number of patches from the patch baseline that were attempted to be installed + // during the last patching operation, but failed to install. + FailedCount *int64 `type:"integer"` + + // The number of patches from the patch baseline that are installed on the instance. + InstalledCount *int64 `type:"integer"` + + // The number of patches not specified in the patch baseline that are installed + // on the instance. + InstalledOtherCount *int64 `type:"integer"` + + // The ID of the managed instance the high-level patch compliance information + // was collected for. + // + // InstanceId is a required field + InstanceId *string `type:"string" required:"true"` + + // The number of patches from the patch baseline that are applicable for the + // instance but aren’t currently installed. + MissingCount *int64 `type:"integer"` + + // The number of patches from the patch baseline that aren’t applicable for + // the instance and hence aren’t installed on the instance. + NotApplicableCount *int64 `type:"integer"` + + // The type of patching operation that was performed: SCAN (assess patch compliance + // state) or INSTALL (install missing patches). + // + // Operation is a required field + Operation *string `type:"string" required:"true" enum:"PatchOperationType"` + + // The time the most recent patching operation completed on the instance. + // + // OperationEndTime is a required field + OperationEndTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` + + // The time the most recent patching operation was started on the instance. + // + // OperationStartTime is a required field + OperationStartTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` + + // Placeholder information, this field will always be empty in the current release + // of the service. + OwnerInformation *string `min:"1" type:"string"` + + // The name of the patch group the managed instance belongs to. + // + // PatchGroup is a required field + PatchGroup *string `min:"1" type:"string" required:"true"` + + // The ID of the patch baseline snapshot used during the patching operation + // when this compliance data was collected. + SnapshotId *string `min:"36" type:"string"` +} + +// String returns the string representation +func (s InstancePatchState) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstancePatchState) GoString() string { + return s.String() +} + +// SetBaselineId sets the BaselineId field's value. +func (s *InstancePatchState) SetBaselineId(v string) *InstancePatchState { + s.BaselineId = &v + return s +} + +// SetFailedCount sets the FailedCount field's value. +func (s *InstancePatchState) SetFailedCount(v int64) *InstancePatchState { + s.FailedCount = &v + return s +} + +// SetInstalledCount sets the InstalledCount field's value. +func (s *InstancePatchState) SetInstalledCount(v int64) *InstancePatchState { + s.InstalledCount = &v + return s +} + +// SetInstalledOtherCount sets the InstalledOtherCount field's value. +func (s *InstancePatchState) SetInstalledOtherCount(v int64) *InstancePatchState { + s.InstalledOtherCount = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *InstancePatchState) SetInstanceId(v string) *InstancePatchState { + s.InstanceId = &v + return s +} + +// SetMissingCount sets the MissingCount field's value. +func (s *InstancePatchState) SetMissingCount(v int64) *InstancePatchState { + s.MissingCount = &v + return s +} + +// SetNotApplicableCount sets the NotApplicableCount field's value. +func (s *InstancePatchState) SetNotApplicableCount(v int64) *InstancePatchState { + s.NotApplicableCount = &v + return s +} + +// SetOperation sets the Operation field's value. +func (s *InstancePatchState) SetOperation(v string) *InstancePatchState { + s.Operation = &v + return s +} + +// SetOperationEndTime sets the OperationEndTime field's value. +func (s *InstancePatchState) SetOperationEndTime(v time.Time) *InstancePatchState { + s.OperationEndTime = &v + return s +} + +// SetOperationStartTime sets the OperationStartTime field's value. +func (s *InstancePatchState) SetOperationStartTime(v time.Time) *InstancePatchState { + s.OperationStartTime = &v + return s +} + +// SetOwnerInformation sets the OwnerInformation field's value. +func (s *InstancePatchState) SetOwnerInformation(v string) *InstancePatchState { + s.OwnerInformation = &v + return s +} + +// SetPatchGroup sets the PatchGroup field's value. +func (s *InstancePatchState) SetPatchGroup(v string) *InstancePatchState { + s.PatchGroup = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *InstancePatchState) SetSnapshotId(v string) *InstancePatchState { + s.SnapshotId = &v + return s +} + +// Defines a filter used in DescribeInstancePatchStatesForPatchGroup used to +// scope down the information returned by the API. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InstancePatchStateFilter +type InstancePatchStateFilter struct { + _ struct{} `type:"structure"` + + // The key for the filter. Supported values are FailedCount, InstalledCount, + // InstalledOtherCount, MissingCount and NotApplicableCount. + // + // Key is a required field + Key *string `min:"1" type:"string" required:"true"` + + // The type of comparison that should be performed for the value: Equal, NotEqual, + // LessThan or GreaterThan. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"InstancePatchStateOperatorType"` + + // The value for the filter, must be an integer greater than or equal to 0. + // + // Values is a required field + Values []*string `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s InstancePatchStateFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstancePatchStateFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InstancePatchStateFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InstancePatchStateFilter"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.Values == nil { + invalidParams.Add(request.NewErrParamRequired("Values")) + } + if s.Values != nil && len(s.Values) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Values", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *InstancePatchStateFilter) SetKey(v string) *InstancePatchStateFilter { + s.Key = &v + return s +} + +// SetType sets the Type field's value. +func (s *InstancePatchStateFilter) SetType(v string) *InstancePatchStateFilter { + s.Type = &v + return s +} + +// SetValues sets the Values field's value. +func (s *InstancePatchStateFilter) SetValues(v []*string) *InstancePatchStateFilter { + s.Values = v + return s +} + +// One or more filters. Use a filter to return a more specific list of results. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InventoryFilter +type InventoryFilter struct { + _ struct{} `type:"structure"` + + // The name of the filter key. + // + // Key is a required field + Key *string `min:"1" type:"string" required:"true"` + + // The type of filter. Valid values include the following: "Equal"|"NotEqual"|"BeginWith"|"LessThan"|"GreaterThan" + Type *string `type:"string" enum:"InventoryQueryOperatorType"` + + // Inventory filter values. Example: inventory filter where instance IDs are + // specified as values Key=AWS:InstanceInformation.InstanceId,Values= i-a12b3c4d5e6g, + // i-1a2b3c4d5e6,Type=Equal + // + // Values is a required field + Values []*string `locationNameList:"FilterValue" min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s InventoryFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InventoryFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InventoryFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InventoryFilter"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + if s.Values == nil { + invalidParams.Add(request.NewErrParamRequired("Values")) + } + if s.Values != nil && len(s.Values) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Values", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *InventoryFilter) SetKey(v string) *InventoryFilter { + s.Key = &v + return s +} + +// SetType sets the Type field's value. +func (s *InventoryFilter) SetType(v string) *InventoryFilter { + s.Type = &v + return s +} + +// SetValues sets the Values field's value. +func (s *InventoryFilter) SetValues(v []*string) *InventoryFilter { + s.Values = v + return s +} + +// Information collected from managed instances based on your inventory policy +// document +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InventoryItem +type InventoryItem struct { + _ struct{} `type:"structure"` + + // The time the inventory information was collected. + // + // CaptureTime is a required field + CaptureTime *string `type:"string" required:"true"` + + // The inventory data of the inventory type. + Content []map[string]*string `type:"list"` + + // MD5 hash of the inventory item type contents. The content hash is used to + // determine whether to update inventory information. The PutInventory API does + // not update the inventory item type contents if the MD5 hash has not changed + // since last update. + ContentHash *string `type:"string"` + + // The schema version for the inventory item. + // + // SchemaVersion is a required field + SchemaVersion *string `type:"string" required:"true"` + + // The name of the inventory type. Default inventory item type names start with + // AWS. Custom inventory type names will start with Custom. Default inventory + // item types include the following: AWS:AWSComponent, AWS:Application, AWS:InstanceInformation, + // AWS:Network, and AWS:WindowsUpdate. + // + // TypeName is a required field + TypeName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s InventoryItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InventoryItem) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InventoryItem) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InventoryItem"} + if s.CaptureTime == nil { + invalidParams.Add(request.NewErrParamRequired("CaptureTime")) + } + if s.SchemaVersion == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaVersion")) + } + if s.TypeName == nil { + invalidParams.Add(request.NewErrParamRequired("TypeName")) + } + if s.TypeName != nil && len(*s.TypeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCaptureTime sets the CaptureTime field's value. +func (s *InventoryItem) SetCaptureTime(v string) *InventoryItem { + s.CaptureTime = &v + return s +} + +// SetContent sets the Content field's value. +func (s *InventoryItem) SetContent(v []map[string]*string) *InventoryItem { + s.Content = v + return s +} + +// SetContentHash sets the ContentHash field's value. +func (s *InventoryItem) SetContentHash(v string) *InventoryItem { + s.ContentHash = &v + return s +} + +// SetSchemaVersion sets the SchemaVersion field's value. +func (s *InventoryItem) SetSchemaVersion(v string) *InventoryItem { + s.SchemaVersion = &v + return s +} + +// SetTypeName sets the TypeName field's value. +func (s *InventoryItem) SetTypeName(v string) *InventoryItem { + s.TypeName = &v + return s +} + +// Attributes are the entries within the inventory item content. It contains +// name and value. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InventoryItemAttribute +type InventoryItemAttribute struct { + _ struct{} `type:"structure"` + + // The data type of the inventory item attribute. + // + // DataType is a required field + DataType *string `type:"string" required:"true" enum:"InventoryAttributeDataType"` + + // Name of the inventory item attribute. + // + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s InventoryItemAttribute) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InventoryItemAttribute) GoString() string { + return s.String() +} + +// SetDataType sets the DataType field's value. +func (s *InventoryItemAttribute) SetDataType(v string) *InventoryItemAttribute { + s.DataType = &v + return s +} + +// SetName sets the Name field's value. +func (s *InventoryItemAttribute) SetName(v string) *InventoryItemAttribute { + s.Name = &v + return s +} + +// The inventory item schema definition. Users can use this to compose inventory +// query filters. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InventoryItemSchema +type InventoryItemSchema struct { + _ struct{} `type:"structure"` + + // The schema attributes for inventory. This contains data type and attribute + // name. + // + // Attributes is a required field + Attributes []*InventoryItemAttribute `locationNameList:"Attribute" min:"1" type:"list" required:"true"` + + // The name of the inventory type. Default inventory item type names start with + // AWS. Custom inventory type names will start with Custom. Default inventory + // item types include the following: AWS:AWSComponent, AWS:Application, AWS:InstanceInformation, + // AWS:Network, and AWS:WindowsUpdate. + // + // TypeName is a required field + TypeName *string `min:"1" type:"string" required:"true"` + + // The schema version for the inventory item. + Version *string `type:"string"` +} + +// String returns the string representation +func (s InventoryItemSchema) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InventoryItemSchema) GoString() string { + return s.String() +} + +// SetAttributes sets the Attributes field's value. +func (s *InventoryItemSchema) SetAttributes(v []*InventoryItemAttribute) *InventoryItemSchema { + s.Attributes = v + return s +} + +// SetTypeName sets the TypeName field's value. +func (s *InventoryItemSchema) SetTypeName(v string) *InventoryItemSchema { + s.TypeName = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *InventoryItemSchema) SetVersion(v string) *InventoryItemSchema { + s.Version = &v + return s +} + +// Inventory query results. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InventoryResultEntity +type InventoryResultEntity struct { + _ struct{} `type:"structure"` + + // The data section in the inventory result entity json. + Data map[string]*InventoryResultItem `type:"map"` + + // ID of the inventory result entity. For example, for managed instance inventory + // the result will be the managed instance ID. For EC2 instance inventory, the + // result will be the instance ID. + Id *string `type:"string"` +} + +// String returns the string representation +func (s InventoryResultEntity) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InventoryResultEntity) GoString() string { + return s.String() +} + +// SetData sets the Data field's value. +func (s *InventoryResultEntity) SetData(v map[string]*InventoryResultItem) *InventoryResultEntity { + s.Data = v + return s +} + +// SetId sets the Id field's value. +func (s *InventoryResultEntity) SetId(v string) *InventoryResultEntity { + s.Id = &v + return s +} + +// The inventory result item. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InventoryResultItem +type InventoryResultItem struct { + _ struct{} `type:"structure"` + + // The time inventory item data was captured. + CaptureTime *string `type:"string"` + + // Contains all the inventory data of the item type. Results include attribute + // names and values. + // + // Content is a required field + Content []map[string]*string `type:"list" required:"true"` + + // MD5 hash of the inventory item type contents. The content hash is used to + // determine whether to update inventory information. The PutInventory API does + // not update the inventory item type contents if the MD5 hash has not changed + // since last update. + ContentHash *string `type:"string"` + + // The schema version for the inventory result item/ + // + // SchemaVersion is a required field + SchemaVersion *string `type:"string" required:"true"` + + // The name of the inventory result item type. + // + // TypeName is a required field + TypeName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s InventoryResultItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InventoryResultItem) GoString() string { + return s.String() +} + +// SetCaptureTime sets the CaptureTime field's value. +func (s *InventoryResultItem) SetCaptureTime(v string) *InventoryResultItem { + s.CaptureTime = &v + return s +} + +// SetContent sets the Content field's value. +func (s *InventoryResultItem) SetContent(v []map[string]*string) *InventoryResultItem { + s.Content = v + return s +} + +// SetContentHash sets the ContentHash field's value. +func (s *InventoryResultItem) SetContentHash(v string) *InventoryResultItem { + s.ContentHash = &v + return s +} + +// SetSchemaVersion sets the SchemaVersion field's value. +func (s *InventoryResultItem) SetSchemaVersion(v string) *InventoryResultItem { + s.SchemaVersion = &v + return s +} + +// SetTypeName sets the TypeName field's value. +func (s *InventoryResultItem) SetTypeName(v string) *InventoryResultItem { + s.TypeName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListAssociationsRequest +type ListAssociationsInput struct { + _ struct{} `type:"structure"` + + // One or more filters. Use a filter to return a more specific list of results. + AssociationFilterList []*AssociationFilter `locationNameList:"AssociationFilter" min:"1" type:"list"` + + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListAssociationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAssociationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAssociationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAssociationsInput"} + if s.AssociationFilterList != nil && len(s.AssociationFilterList) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AssociationFilterList", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.AssociationFilterList != nil { + for i, v := range s.AssociationFilterList { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AssociationFilterList", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssociationFilterList sets the AssociationFilterList field's value. +func (s *ListAssociationsInput) SetAssociationFilterList(v []*AssociationFilter) *ListAssociationsInput { + s.AssociationFilterList = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAssociationsInput) SetMaxResults(v int64) *ListAssociationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssociationsInput) SetNextToken(v string) *ListAssociationsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListAssociationsResult +type ListAssociationsOutput struct { + _ struct{} `type:"structure"` + + // The associations. + Associations []*Association `locationNameList:"Association" type:"list"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListAssociationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAssociationsOutput) GoString() string { + return s.String() +} + +// SetAssociations sets the Associations field's value. +func (s *ListAssociationsOutput) SetAssociations(v []*Association) *ListAssociationsOutput { + s.Associations = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssociationsOutput) SetNextToken(v string) *ListAssociationsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListCommandInvocationsRequest +type ListCommandInvocationsInput struct { + _ struct{} `type:"structure"` + + // (Optional) The invocations for a specific command ID. + CommandId *string `min:"36" type:"string"` + + // (Optional) If set this returns the response of the command executions and + // any command output. By default this is set to False. + Details *bool `type:"boolean"` + + // (Optional) One or more filters. Use a filter to return a more specific list + // of results. + Filters []*CommandFilter `min:"1" type:"list"` + + // (Optional) The command execution details for a specific instance ID. + InstanceId *string `type:"string"` + + // (Optional) The maximum number of items to return for this call. The call + // also returns a token that you can specify in a subsequent call to get the + // next set of results. + MaxResults *int64 `min:"1" type:"integer"` + + // (Optional) The token for the next set of items to return. (You received this + // token from a previous call.) + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListCommandInvocationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListCommandInvocationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListCommandInvocationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListCommandInvocationsInput"} + if s.CommandId != nil && len(*s.CommandId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("CommandId", 36)) + } + if s.Filters != nil && len(s.Filters) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCommandId sets the CommandId field's value. +func (s *ListCommandInvocationsInput) SetCommandId(v string) *ListCommandInvocationsInput { + s.CommandId = &v + return s +} + +// SetDetails sets the Details field's value. +func (s *ListCommandInvocationsInput) SetDetails(v bool) *ListCommandInvocationsInput { + s.Details = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *ListCommandInvocationsInput) SetFilters(v []*CommandFilter) *ListCommandInvocationsInput { + s.Filters = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ListCommandInvocationsInput) SetInstanceId(v string) *ListCommandInvocationsInput { + s.InstanceId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListCommandInvocationsInput) SetMaxResults(v int64) *ListCommandInvocationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCommandInvocationsInput) SetNextToken(v string) *ListCommandInvocationsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListCommandInvocationsResult +type ListCommandInvocationsOutput struct { + _ struct{} `type:"structure"` + + // (Optional) A list of all invocations. + CommandInvocations []*CommandInvocation `type:"list"` + + // (Optional) The token for the next set of items to return. (You received this + // token from a previous call.) + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListCommandInvocationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListCommandInvocationsOutput) GoString() string { + return s.String() +} + +// SetCommandInvocations sets the CommandInvocations field's value. +func (s *ListCommandInvocationsOutput) SetCommandInvocations(v []*CommandInvocation) *ListCommandInvocationsOutput { + s.CommandInvocations = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCommandInvocationsOutput) SetNextToken(v string) *ListCommandInvocationsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListCommandsRequest +type ListCommandsInput struct { + _ struct{} `type:"structure"` + + // (Optional) If provided, lists only the specified command. + CommandId *string `min:"36" type:"string"` + + // (Optional) One or more filters. Use a filter to return a more specific list + // of results. + Filters []*CommandFilter `min:"1" type:"list"` + + // (Optional) Lists commands issued against this instance ID. + InstanceId *string `type:"string"` + + // (Optional) The maximum number of items to return for this call. The call + // also returns a token that you can specify in a subsequent call to get the + // next set of results. + MaxResults *int64 `min:"1" type:"integer"` + + // (Optional) The token for the next set of items to return. (You received this + // token from a previous call.) + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListCommandsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListCommandsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListCommandsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListCommandsInput"} + if s.CommandId != nil && len(*s.CommandId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("CommandId", 36)) + } + if s.Filters != nil && len(s.Filters) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCommandId sets the CommandId field's value. +func (s *ListCommandsInput) SetCommandId(v string) *ListCommandsInput { + s.CommandId = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *ListCommandsInput) SetFilters(v []*CommandFilter) *ListCommandsInput { + s.Filters = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ListCommandsInput) SetInstanceId(v string) *ListCommandsInput { + s.InstanceId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListCommandsInput) SetMaxResults(v int64) *ListCommandsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCommandsInput) SetNextToken(v string) *ListCommandsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListCommandsResult +type ListCommandsOutput struct { + _ struct{} `type:"structure"` + + // (Optional) The list of commands requested by the user. + Commands []*Command `type:"list"` + + // (Optional) The token for the next set of items to return. (You received this + // token from a previous call.) + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListCommandsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListCommandsOutput) GoString() string { + return s.String() +} + +// SetCommands sets the Commands field's value. +func (s *ListCommandsOutput) SetCommands(v []*Command) *ListCommandsOutput { + s.Commands = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCommandsOutput) SetNextToken(v string) *ListCommandsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListDocumentVersionsRequest +type ListDocumentVersionsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `min:"1" type:"integer"` + + // The name of the document about which you want version information. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListDocumentVersionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDocumentVersionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDocumentVersionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDocumentVersionsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListDocumentVersionsInput) SetMaxResults(v int64) *ListDocumentVersionsInput { + s.MaxResults = &v + return s +} + +// SetName sets the Name field's value. +func (s *ListDocumentVersionsInput) SetName(v string) *ListDocumentVersionsInput { + s.Name = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDocumentVersionsInput) SetNextToken(v string) *ListDocumentVersionsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListDocumentVersionsResult +type ListDocumentVersionsOutput struct { + _ struct{} `type:"structure"` + + // The document versions. + DocumentVersions []*DocumentVersionInfo `min:"1" type:"list"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListDocumentVersionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDocumentVersionsOutput) GoString() string { + return s.String() +} + +// SetDocumentVersions sets the DocumentVersions field's value. +func (s *ListDocumentVersionsOutput) SetDocumentVersions(v []*DocumentVersionInfo) *ListDocumentVersionsOutput { + s.DocumentVersions = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDocumentVersionsOutput) SetNextToken(v string) *ListDocumentVersionsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListDocumentsRequest +type ListDocumentsInput struct { + _ struct{} `type:"structure"` + + // One or more filters. Use a filter to return a more specific list of results. + DocumentFilterList []*DocumentFilter `locationNameList:"DocumentFilter" min:"1" type:"list"` + + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListDocumentsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDocumentsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDocumentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDocumentsInput"} + if s.DocumentFilterList != nil && len(s.DocumentFilterList) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentFilterList", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.DocumentFilterList != nil { + for i, v := range s.DocumentFilterList { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DocumentFilterList", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocumentFilterList sets the DocumentFilterList field's value. +func (s *ListDocumentsInput) SetDocumentFilterList(v []*DocumentFilter) *ListDocumentsInput { + s.DocumentFilterList = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListDocumentsInput) SetMaxResults(v int64) *ListDocumentsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDocumentsInput) SetNextToken(v string) *ListDocumentsInput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListDocumentsResult +type ListDocumentsOutput struct { + _ struct{} `type:"structure"` + + // The names of the SSM documents. + DocumentIdentifiers []*DocumentIdentifier `locationNameList:"DocumentIdentifier" type:"list"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListDocumentsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDocumentsOutput) GoString() string { + return s.String() +} + +// SetDocumentIdentifiers sets the DocumentIdentifiers field's value. +func (s *ListDocumentsOutput) SetDocumentIdentifiers(v []*DocumentIdentifier) *ListDocumentsOutput { + s.DocumentIdentifiers = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDocumentsOutput) SetNextToken(v string) *ListDocumentsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListInventoryEntriesRequest +type ListInventoryEntriesInput struct { + _ struct{} `type:"structure"` + + // One or more filters. Use a filter to return a more specific list of results. + Filters []*InventoryFilter `locationNameList:"InventoryFilter" min:"1" type:"list"` + + // The instance ID for which you want inventory information. + // + // InstanceId is a required field + InstanceId *string `type:"string" required:"true"` + + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` + + // The type of inventory item for which you want information. + // + // TypeName is a required field + TypeName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListInventoryEntriesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListInventoryEntriesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListInventoryEntriesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListInventoryEntriesInput"} + if s.Filters != nil && len(s.Filters) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) + } + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.TypeName == nil { + invalidParams.Add(request.NewErrParamRequired("TypeName")) + } + if s.TypeName != nil && len(*s.TypeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *ListInventoryEntriesInput) SetFilters(v []*InventoryFilter) *ListInventoryEntriesInput { + s.Filters = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ListInventoryEntriesInput) SetInstanceId(v string) *ListInventoryEntriesInput { + s.InstanceId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListInventoryEntriesInput) SetMaxResults(v int64) *ListInventoryEntriesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListInventoryEntriesInput) SetNextToken(v string) *ListInventoryEntriesInput { + s.NextToken = &v + return s +} + +// SetTypeName sets the TypeName field's value. +func (s *ListInventoryEntriesInput) SetTypeName(v string) *ListInventoryEntriesInput { + s.TypeName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListInventoryEntriesResult +type ListInventoryEntriesOutput struct { + _ struct{} `type:"structure"` + + // The time that inventory information was collected for the instance(s). + CaptureTime *string `type:"string"` + + // A list of inventory items on the instance(s). + Entries []map[string]*string `type:"list"` + + // The instance ID targeted by the request to query inventory information. + InstanceId *string `type:"string"` + + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` + + // The inventory schema version used by the instance(s). + SchemaVersion *string `type:"string"` + + // The type of inventory item returned by the request. + TypeName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListInventoryEntriesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListInventoryEntriesOutput) GoString() string { + return s.String() +} + +// SetCaptureTime sets the CaptureTime field's value. +func (s *ListInventoryEntriesOutput) SetCaptureTime(v string) *ListInventoryEntriesOutput { + s.CaptureTime = &v + return s +} + +// SetEntries sets the Entries field's value. +func (s *ListInventoryEntriesOutput) SetEntries(v []map[string]*string) *ListInventoryEntriesOutput { + s.Entries = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ListInventoryEntriesOutput) SetInstanceId(v string) *ListInventoryEntriesOutput { + s.InstanceId = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListInventoryEntriesOutput) SetNextToken(v string) *ListInventoryEntriesOutput { + s.NextToken = &v + return s +} + +// SetSchemaVersion sets the SchemaVersion field's value. +func (s *ListInventoryEntriesOutput) SetSchemaVersion(v string) *ListInventoryEntriesOutput { + s.SchemaVersion = &v + return s +} + +// SetTypeName sets the TypeName field's value. +func (s *ListInventoryEntriesOutput) SetTypeName(v string) *ListInventoryEntriesOutput { + s.TypeName = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListTagsForResourceRequest +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` + + // The resource ID for which you want to see a list of tags. + // + // ResourceId is a required field + ResourceId *string `type:"string" required:"true"` + + // Returns a list of tags for a specific resource type. + // + // ResourceType is a required field + ResourceType *string `type:"string" required:"true" enum:"ResourceTypeForTagging"` +} + +// String returns the string representation +func (s ListTagsForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsForResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceId == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceId")) + } + if s.ResourceType == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceId sets the ResourceId field's value. +func (s *ListTagsForResourceInput) SetResourceId(v string) *ListTagsForResourceInput { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ListTagsForResourceInput) SetResourceType(v string) *ListTagsForResourceInput { + s.ResourceType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListTagsForResourceResult +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // A list of tags. + TagList []*Tag `type:"list"` +} + +// String returns the string representation +func (s ListTagsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsForResourceOutput) GoString() string { + return s.String() +} + +// SetTagList sets the TagList field's value. +func (s *ListTagsForResourceOutput) SetTagList(v []*Tag) *ListTagsForResourceOutput { + s.TagList = v + return s +} + +// Information about an Amazon S3 bucket to write instance-level logs to. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/LoggingInfo +type LoggingInfo struct { + _ struct{} `type:"structure"` + + // The name of an Amazon S3 bucket where execution logs are stored . + // + // S3BucketName is a required field + S3BucketName *string `min:"3" type:"string" required:"true"` + + // (Optional) The Amazon S3 bucket subfolder. + S3KeyPrefix *string `type:"string"` + + // The region where the Amazon S3 bucket is located. + // + // S3Region is a required field + S3Region *string `min:"3" type:"string" required:"true"` +} + +// String returns the string representation +func (s LoggingInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LoggingInfo) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LoggingInfo) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LoggingInfo"} + if s.S3BucketName == nil { + invalidParams.Add(request.NewErrParamRequired("S3BucketName")) + } + if s.S3BucketName != nil && len(*s.S3BucketName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("S3BucketName", 3)) + } + if s.S3Region == nil { + invalidParams.Add(request.NewErrParamRequired("S3Region")) + } + if s.S3Region != nil && len(*s.S3Region) < 3 { + invalidParams.Add(request.NewErrParamMinLen("S3Region", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3BucketName sets the S3BucketName field's value. +func (s *LoggingInfo) SetS3BucketName(v string) *LoggingInfo { + s.S3BucketName = &v + return s +} + +// SetS3KeyPrefix sets the S3KeyPrefix field's value. +func (s *LoggingInfo) SetS3KeyPrefix(v string) *LoggingInfo { + s.S3KeyPrefix = &v + return s +} + +// SetS3Region sets the S3Region field's value. +func (s *LoggingInfo) SetS3Region(v string) *LoggingInfo { + s.S3Region = &v + return s +} + +// Describes the information about an execution of a Maintenance Window. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/MaintenanceWindowExecution +type MaintenanceWindowExecution struct { + _ struct{} `type:"structure"` + + // The time the execution finished. + EndTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The time the execution started. + StartTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The status of the execution. + Status *string `type:"string" enum:"MaintenanceWindowExecutionStatus"` + + // The details explaining the Status. Only available for certain status values. + StatusDetails *string `type:"string"` + + // The ID of the Maintenance Window execution. + WindowExecutionId *string `min:"36" type:"string"` + + // The ID of the Maintenance Window. + WindowId *string `min:"20" type:"string"` +} + +// String returns the string representation +func (s MaintenanceWindowExecution) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaintenanceWindowExecution) GoString() string { + return s.String() +} + +// SetEndTime sets the EndTime field's value. +func (s *MaintenanceWindowExecution) SetEndTime(v time.Time) *MaintenanceWindowExecution { + s.EndTime = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *MaintenanceWindowExecution) SetStartTime(v time.Time) *MaintenanceWindowExecution { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *MaintenanceWindowExecution) SetStatus(v string) *MaintenanceWindowExecution { + s.Status = &v + return s +} + +// SetStatusDetails sets the StatusDetails field's value. +func (s *MaintenanceWindowExecution) SetStatusDetails(v string) *MaintenanceWindowExecution { + s.StatusDetails = &v + return s +} + +// SetWindowExecutionId sets the WindowExecutionId field's value. +func (s *MaintenanceWindowExecution) SetWindowExecutionId(v string) *MaintenanceWindowExecution { + s.WindowExecutionId = &v + return s +} + +// SetWindowId sets the WindowId field's value. +func (s *MaintenanceWindowExecution) SetWindowId(v string) *MaintenanceWindowExecution { + s.WindowId = &v + return s +} + +// Information about a task execution performed as part of a Maintenance Window +// execution. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/MaintenanceWindowExecutionTaskIdentity +type MaintenanceWindowExecutionTaskIdentity struct { + _ struct{} `type:"structure"` + + // The time the task execution finished. + EndTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The time the task execution started. + StartTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The status of the task execution. + Status *string `type:"string" enum:"MaintenanceWindowExecutionStatus"` + + // The details explaining the status of the task execution. Only available for + // certain status values. + StatusDetails *string `type:"string"` + + // The ARN of the executed task. + TaskArn *string `min:"1" type:"string"` + + // The ID of the specific task execution in the Maintenance Window execution. + TaskExecutionId *string `min:"36" type:"string"` + + // The type of executed task. + TaskType *string `type:"string" enum:"MaintenanceWindowTaskType"` + + // The ID of the Maintenance Window execution that ran the task. + WindowExecutionId *string `min:"36" type:"string"` +} + +// String returns the string representation +func (s MaintenanceWindowExecutionTaskIdentity) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaintenanceWindowExecutionTaskIdentity) GoString() string { + return s.String() +} + +// SetEndTime sets the EndTime field's value. +func (s *MaintenanceWindowExecutionTaskIdentity) SetEndTime(v time.Time) *MaintenanceWindowExecutionTaskIdentity { + s.EndTime = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *MaintenanceWindowExecutionTaskIdentity) SetStartTime(v time.Time) *MaintenanceWindowExecutionTaskIdentity { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *MaintenanceWindowExecutionTaskIdentity) SetStatus(v string) *MaintenanceWindowExecutionTaskIdentity { + s.Status = &v + return s +} + +// SetStatusDetails sets the StatusDetails field's value. +func (s *MaintenanceWindowExecutionTaskIdentity) SetStatusDetails(v string) *MaintenanceWindowExecutionTaskIdentity { + s.StatusDetails = &v + return s +} + +// SetTaskArn sets the TaskArn field's value. +func (s *MaintenanceWindowExecutionTaskIdentity) SetTaskArn(v string) *MaintenanceWindowExecutionTaskIdentity { + s.TaskArn = &v + return s +} + +// SetTaskExecutionId sets the TaskExecutionId field's value. +func (s *MaintenanceWindowExecutionTaskIdentity) SetTaskExecutionId(v string) *MaintenanceWindowExecutionTaskIdentity { + s.TaskExecutionId = &v + return s +} + +// SetTaskType sets the TaskType field's value. +func (s *MaintenanceWindowExecutionTaskIdentity) SetTaskType(v string) *MaintenanceWindowExecutionTaskIdentity { + s.TaskType = &v + return s +} + +// SetWindowExecutionId sets the WindowExecutionId field's value. +func (s *MaintenanceWindowExecutionTaskIdentity) SetWindowExecutionId(v string) *MaintenanceWindowExecutionTaskIdentity { + s.WindowExecutionId = &v + return s +} + +// Describes the information about a task invocation for a particular target +// as part of a task execution performed as part of a Maintenance Window execution. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/MaintenanceWindowExecutionTaskInvocationIdentity +type MaintenanceWindowExecutionTaskInvocationIdentity struct { + _ struct{} `type:"structure"` + + // The time the invocation finished. + EndTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The ID of the action performed in the service that actually handled the task + // invocation. If the task type is RUN_COMMAND, this value is the command ID. + ExecutionId *string `type:"string"` + + // The ID of the task invocation. + InvocationId *string `min:"36" type:"string"` + + // User-provided value that was specified when the target was registered with + // the Maintenance Window. This was also included in any CloudWatch events raised + // during the task invocation. + OwnerInformation *string `min:"1" type:"string"` + + // The parameters that were provided for the invocation when it was executed. + Parameters *string `type:"string"` + + // The time the invocation started. + StartTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The status of the task invocation. + Status *string `type:"string" enum:"MaintenanceWindowExecutionStatus"` + + // The details explaining the status of the task invocation. Only available + // for certain Status values. + StatusDetails *string `type:"string"` + + // The ID of the specific task execution in the Maintenance Window execution. + TaskExecutionId *string `min:"36" type:"string"` + + // The ID of the Maintenance Window execution that ran the task. + WindowExecutionId *string `min:"36" type:"string"` + + // The ID of the target definition in this Maintenance Window the invocation + // was performed for. + WindowTargetId *string `type:"string"` +} + +// String returns the string representation +func (s MaintenanceWindowExecutionTaskInvocationIdentity) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaintenanceWindowExecutionTaskInvocationIdentity) GoString() string { + return s.String() +} + +// SetEndTime sets the EndTime field's value. +func (s *MaintenanceWindowExecutionTaskInvocationIdentity) SetEndTime(v time.Time) *MaintenanceWindowExecutionTaskInvocationIdentity { + s.EndTime = &v + return s +} + +// SetExecutionId sets the ExecutionId field's value. +func (s *MaintenanceWindowExecutionTaskInvocationIdentity) SetExecutionId(v string) *MaintenanceWindowExecutionTaskInvocationIdentity { + s.ExecutionId = &v + return s +} + +// SetInvocationId sets the InvocationId field's value. +func (s *MaintenanceWindowExecutionTaskInvocationIdentity) SetInvocationId(v string) *MaintenanceWindowExecutionTaskInvocationIdentity { + s.InvocationId = &v + return s +} + +// SetOwnerInformation sets the OwnerInformation field's value. +func (s *MaintenanceWindowExecutionTaskInvocationIdentity) SetOwnerInformation(v string) *MaintenanceWindowExecutionTaskInvocationIdentity { + s.OwnerInformation = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *MaintenanceWindowExecutionTaskInvocationIdentity) SetParameters(v string) *MaintenanceWindowExecutionTaskInvocationIdentity { + s.Parameters = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *MaintenanceWindowExecutionTaskInvocationIdentity) SetStartTime(v time.Time) *MaintenanceWindowExecutionTaskInvocationIdentity { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *MaintenanceWindowExecutionTaskInvocationIdentity) SetStatus(v string) *MaintenanceWindowExecutionTaskInvocationIdentity { + s.Status = &v + return s +} + +// SetStatusDetails sets the StatusDetails field's value. +func (s *MaintenanceWindowExecutionTaskInvocationIdentity) SetStatusDetails(v string) *MaintenanceWindowExecutionTaskInvocationIdentity { + s.StatusDetails = &v + return s +} + +// SetTaskExecutionId sets the TaskExecutionId field's value. +func (s *MaintenanceWindowExecutionTaskInvocationIdentity) SetTaskExecutionId(v string) *MaintenanceWindowExecutionTaskInvocationIdentity { + s.TaskExecutionId = &v + return s +} + +// SetWindowExecutionId sets the WindowExecutionId field's value. +func (s *MaintenanceWindowExecutionTaskInvocationIdentity) SetWindowExecutionId(v string) *MaintenanceWindowExecutionTaskInvocationIdentity { + s.WindowExecutionId = &v + return s +} + +// SetWindowTargetId sets the WindowTargetId field's value. +func (s *MaintenanceWindowExecutionTaskInvocationIdentity) SetWindowTargetId(v string) *MaintenanceWindowExecutionTaskInvocationIdentity { + s.WindowTargetId = &v + return s +} + +// Filter used in the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/MaintenanceWindowFilter +type MaintenanceWindowFilter struct { + _ struct{} `type:"structure"` + + // The name of the filter. + Key *string `min:"1" type:"string"` + + // The filter values. + Values []*string `type:"list"` +} + +// String returns the string representation +func (s MaintenanceWindowFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaintenanceWindowFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MaintenanceWindowFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MaintenanceWindowFilter"} + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *MaintenanceWindowFilter) SetKey(v string) *MaintenanceWindowFilter { + s.Key = &v + return s +} + +// SetValues sets the Values field's value. +func (s *MaintenanceWindowFilter) SetValues(v []*string) *MaintenanceWindowFilter { + s.Values = v + return s +} + +// Information about the Maintenance Window. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/MaintenanceWindowIdentity +type MaintenanceWindowIdentity struct { + _ struct{} `type:"structure"` + + // The number of hours before the end of the Maintenance Window that Systems + // Manager stops scheduling new tasks for execution. + Cutoff *int64 `type:"integer"` + + // The duration of the Maintenance Window in hours. + Duration *int64 `min:"1" type:"integer"` + + // Whether the Maintenance Window is enabled. + Enabled *bool `type:"boolean"` + + // The name of the Maintenance Window. + Name *string `min:"3" type:"string"` + + // The ID of the Maintenance Window. + WindowId *string `min:"20" type:"string"` +} + +// String returns the string representation +func (s MaintenanceWindowIdentity) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaintenanceWindowIdentity) GoString() string { + return s.String() +} + +// SetCutoff sets the Cutoff field's value. +func (s *MaintenanceWindowIdentity) SetCutoff(v int64) *MaintenanceWindowIdentity { + s.Cutoff = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *MaintenanceWindowIdentity) SetDuration(v int64) *MaintenanceWindowIdentity { + s.Duration = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *MaintenanceWindowIdentity) SetEnabled(v bool) *MaintenanceWindowIdentity { + s.Enabled = &v + return s +} + +// SetName sets the Name field's value. +func (s *MaintenanceWindowIdentity) SetName(v string) *MaintenanceWindowIdentity { + s.Name = &v + return s +} + +// SetWindowId sets the WindowId field's value. +func (s *MaintenanceWindowIdentity) SetWindowId(v string) *MaintenanceWindowIdentity { + s.WindowId = &v + return s +} + +// The target registered with the Maintenance Window. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/MaintenanceWindowTarget +type MaintenanceWindowTarget struct { + _ struct{} `type:"structure"` + + // User-provided value that will be included in any CloudWatch events raised + // while running tasks for these targets in this Maintenance Window. + OwnerInformation *string `min:"1" type:"string"` + + // The type of target. + ResourceType *string `type:"string" enum:"MaintenanceWindowResourceType"` + + // The targets (either instances or tags). Instances are specified using Key=instanceids,Values=,. + // Tags are specified using Key=,Values=. + Targets []*Target `type:"list"` + + // The Maintenance Window ID where the target is registered. + WindowId *string `min:"20" type:"string"` + + // The ID of the target. + WindowTargetId *string `min:"36" type:"string"` +} + +// String returns the string representation +func (s MaintenanceWindowTarget) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaintenanceWindowTarget) GoString() string { + return s.String() +} + +// SetOwnerInformation sets the OwnerInformation field's value. +func (s *MaintenanceWindowTarget) SetOwnerInformation(v string) *MaintenanceWindowTarget { + s.OwnerInformation = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *MaintenanceWindowTarget) SetResourceType(v string) *MaintenanceWindowTarget { + s.ResourceType = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *MaintenanceWindowTarget) SetTargets(v []*Target) *MaintenanceWindowTarget { + s.Targets = v + return s +} + +// SetWindowId sets the WindowId field's value. +func (s *MaintenanceWindowTarget) SetWindowId(v string) *MaintenanceWindowTarget { + s.WindowId = &v + return s +} + +// SetWindowTargetId sets the WindowTargetId field's value. +func (s *MaintenanceWindowTarget) SetWindowTargetId(v string) *MaintenanceWindowTarget { + s.WindowTargetId = &v + return s +} + +// Information about a task defined for a Maintenance Window. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/MaintenanceWindowTask +type MaintenanceWindowTask struct { + _ struct{} `type:"structure"` + + // Information about an Amazon S3 bucket to write task-level logs to. + LoggingInfo *LoggingInfo `type:"structure"` + + // The maximum number of targets this task can be run for in parallel. + MaxConcurrency *string `min:"1" type:"string"` + + // The maximum number of errors allowed before this task stops being scheduled. + MaxErrors *string `min:"1" type:"string"` + + // The priority of the task in the Maintenance Window, the lower the number + // the higher the priority. Tasks in a Maintenance Window are scheduled in priority + // order with tasks that have the same priority scheduled in parallel. + Priority *int64 `type:"integer"` + + // The role that should be assumed when executing the task + ServiceRoleArn *string `type:"string"` + + // The targets (either instances or tags). Instances are specified using Key=instanceids,Values=,. + // Tags are specified using Key=,Values=. + Targets []*Target `type:"list"` + + // The ARN of the task to execute. + TaskArn *string `min:"1" type:"string"` + + // The parameters that should be passed to the task when it is executed. + TaskParameters map[string]*MaintenanceWindowTaskParameterValueExpression `type:"map"` + + // The type of task. + Type *string `type:"string" enum:"MaintenanceWindowTaskType"` + + // The Maintenance Window ID where the task is registered. + WindowId *string `min:"20" type:"string"` + + // The task ID. + WindowTaskId *string `min:"36" type:"string"` +} + +// String returns the string representation +func (s MaintenanceWindowTask) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaintenanceWindowTask) GoString() string { + return s.String() +} + +// SetLoggingInfo sets the LoggingInfo field's value. +func (s *MaintenanceWindowTask) SetLoggingInfo(v *LoggingInfo) *MaintenanceWindowTask { + s.LoggingInfo = v + return s +} + +// SetMaxConcurrency sets the MaxConcurrency field's value. +func (s *MaintenanceWindowTask) SetMaxConcurrency(v string) *MaintenanceWindowTask { + s.MaxConcurrency = &v + return s +} + +// SetMaxErrors sets the MaxErrors field's value. +func (s *MaintenanceWindowTask) SetMaxErrors(v string) *MaintenanceWindowTask { + s.MaxErrors = &v + return s +} + +// SetPriority sets the Priority field's value. +func (s *MaintenanceWindowTask) SetPriority(v int64) *MaintenanceWindowTask { + s.Priority = &v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *MaintenanceWindowTask) SetServiceRoleArn(v string) *MaintenanceWindowTask { + s.ServiceRoleArn = &v + return s +} - // The date the activation was created. - CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"` +// SetTargets sets the Targets field's value. +func (s *MaintenanceWindowTask) SetTargets(v []*Target) *MaintenanceWindowTask { + s.Targets = v + return s +} - // A name for the managed instance when it is created. - DefaultInstanceName *string `type:"string"` +// SetTaskArn sets the TaskArn field's value. +func (s *MaintenanceWindowTask) SetTaskArn(v string) *MaintenanceWindowTask { + s.TaskArn = &v + return s +} - // A user defined description of the activation. - Description *string `type:"string"` +// SetTaskParameters sets the TaskParameters field's value. +func (s *MaintenanceWindowTask) SetTaskParameters(v map[string]*MaintenanceWindowTaskParameterValueExpression) *MaintenanceWindowTask { + s.TaskParameters = v + return s +} - // The date when this activation can no longer be used to register managed instances. - ExpirationDate *time.Time `type:"timestamp" timestampFormat:"unix"` +// SetType sets the Type field's value. +func (s *MaintenanceWindowTask) SetType(v string) *MaintenanceWindowTask { + s.Type = &v + return s +} - // Whether or not the activation is expired. - Expired *bool `type:"boolean"` +// SetWindowId sets the WindowId field's value. +func (s *MaintenanceWindowTask) SetWindowId(v string) *MaintenanceWindowTask { + s.WindowId = &v + return s +} - // The Amazon Identity and Access Management (IAM) role to assign to the managed - // instance. - IamRole *string `type:"string"` +// SetWindowTaskId sets the WindowTaskId field's value. +func (s *MaintenanceWindowTask) SetWindowTaskId(v string) *MaintenanceWindowTask { + s.WindowTaskId = &v + return s +} - // The maximum number of managed instances that can be registered using this - // activation. - RegistrationLimit *int64 `min:"1" type:"integer"` +// Defines the values for a task parameter. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/MaintenanceWindowTaskParameterValueExpression +type MaintenanceWindowTaskParameterValueExpression struct { + _ struct{} `type:"structure"` - // The number of managed instances already registered with this activation. - RegistrationsCount *int64 `min:"1" type:"integer"` + // This field contains an array of 0 or more strings, each 1 to 255 characters + // in length. + Values []*string `type:"list"` } // String returns the string representation -func (s Activation) String() string { +func (s MaintenanceWindowTaskParameterValueExpression) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Activation) GoString() string { +func (s MaintenanceWindowTaskParameterValueExpression) GoString() string { return s.String() } -type AddTagsToResourceInput struct { +// SetValues sets the Values field's value. +func (s *MaintenanceWindowTaskParameterValueExpression) SetValues(v []*string) *MaintenanceWindowTaskParameterValueExpression { + s.Values = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ModifyDocumentPermissionRequest +type ModifyDocumentPermissionInput struct { _ struct{} `type:"structure"` - // The resource ID you want to tag. - // - // ResourceId is a required field - ResourceId *string `type:"string" required:"true"` + // The AWS user accounts that should have access to the document. The account + // IDs can either be a group of account IDs or All. + AccountIdsToAdd []*string `locationNameList:"AccountId" type:"list"` - // Specifies the type of resource you are tagging. + // The AWS user accounts that should no longer have access to the document. + // The AWS user account can either be a group of account IDs or All. This action + // has a higher priority than AccountIdsToAdd. If you specify an account ID + // to add and the same ID to remove, the system removes access to the document. + AccountIdsToRemove []*string `locationNameList:"AccountId" type:"list"` + + // The name of the document that you want to share. // - // ResourceType is a required field - ResourceType *string `type:"string" required:"true" enum:"ResourceTypeForTagging"` + // Name is a required field + Name *string `type:"string" required:"true"` - // One or more tags. The value parameter is required, but if you don't want - // the tag to have a value, specify the parameter with no value, and we set - // the value to an empty string. + // The permission type for the document. The permission type can be Share. // - // Tags is a required field - Tags []*Tag `type:"list" required:"true"` + // PermissionType is a required field + PermissionType *string `type:"string" required:"true" enum:"DocumentPermissionType"` } // String returns the string representation -func (s AddTagsToResourceInput) String() string { +func (s ModifyDocumentPermissionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AddTagsToResourceInput) GoString() string { +func (s ModifyDocumentPermissionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AddTagsToResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"} - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.ResourceType == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceType")) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) +func (s *ModifyDocumentPermissionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyDocumentPermissionInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } + if s.PermissionType == nil { + invalidParams.Add(request.NewErrParamRequired("PermissionType")) } if invalidParams.Len() > 0 { @@ -2312,320 +16844,321 @@ func (s *AddTagsToResourceInput) Validate() error { return nil } -type AddTagsToResourceOutput struct { - _ struct{} `type:"structure"` +// SetAccountIdsToAdd sets the AccountIdsToAdd field's value. +func (s *ModifyDocumentPermissionInput) SetAccountIdsToAdd(v []*string) *ModifyDocumentPermissionInput { + s.AccountIdsToAdd = v + return s } -// String returns the string representation -func (s AddTagsToResourceOutput) String() string { - return awsutil.Prettify(s) +// SetAccountIdsToRemove sets the AccountIdsToRemove field's value. +func (s *ModifyDocumentPermissionInput) SetAccountIdsToRemove(v []*string) *ModifyDocumentPermissionInput { + s.AccountIdsToRemove = v + return s } -// GoString returns the string representation -func (s AddTagsToResourceOutput) GoString() string { - return s.String() +// SetName sets the Name field's value. +func (s *ModifyDocumentPermissionInput) SetName(v string) *ModifyDocumentPermissionInput { + s.Name = &v + return s } -// Describes an association of an SSM document and an instance. -type Association struct { - _ struct{} `type:"structure"` - - // The ID of the instance. - InstanceId *string `type:"string"` +// SetPermissionType sets the PermissionType field's value. +func (s *ModifyDocumentPermissionInput) SetPermissionType(v string) *ModifyDocumentPermissionInput { + s.PermissionType = &v + return s +} - // The name of the SSM document. - Name *string `type:"string"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ModifyDocumentPermissionResponse +type ModifyDocumentPermissionOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation -func (s Association) String() string { +func (s ModifyDocumentPermissionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Association) GoString() string { +func (s ModifyDocumentPermissionOutput) GoString() string { return s.String() } -// Describes the parameters for a document. -type AssociationDescription struct { +// Configurations for sending notifications. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/NotificationConfig +type NotificationConfig struct { _ struct{} `type:"structure"` - // The date when the association was made. - Date *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The ID of the instance. - InstanceId *string `type:"string"` - - // The name of the SSM document. - Name *string `type:"string"` + // An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic. + // Run Command pushes notifications about command status changes to this topic. + NotificationArn *string `type:"string"` - // A description of the parameters for a document. - Parameters map[string][]*string `type:"map"` + // The different events for which you can receive notifications. These events + // include the following: All (events), InProgress, Success, TimedOut, Cancelled, + // Failed. To learn more about these events, see Monitoring Commands (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitor-commands.html) + // in the Amazon Elastic Compute Cloud User Guide . + NotificationEvents []*string `type:"list"` - // The association status. - Status *AssociationStatus `type:"structure"` + // Command: Receive notification when the status of a command changes. Invocation: + // For commands sent to multiple instances, receive notification on a per-instance + // basis when the status of a command changes. + NotificationType *string `type:"string" enum:"NotificationType"` } // String returns the string representation -func (s AssociationDescription) String() string { +func (s NotificationConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociationDescription) GoString() string { +func (s NotificationConfig) GoString() string { return s.String() } -// Describes a filter. -type AssociationFilter struct { - _ struct{} `type:"structure"` - - // The name of the filter. - // - // Key is a required field - Key *string `locationName:"key" type:"string" required:"true" enum:"AssociationFilterKey"` - - // The filter value. - // - // Value is a required field - Value *string `locationName:"value" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s AssociationFilter) String() string { - return awsutil.Prettify(s) +// SetNotificationArn sets the NotificationArn field's value. +func (s *NotificationConfig) SetNotificationArn(v string) *NotificationConfig { + s.NotificationArn = &v + return s } -// GoString returns the string representation -func (s AssociationFilter) GoString() string { - return s.String() +// SetNotificationEvents sets the NotificationEvents field's value. +func (s *NotificationConfig) SetNotificationEvents(v []*string) *NotificationConfig { + s.NotificationEvents = v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssociationFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociationFilter"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - if s.Value != nil && len(*s.Value) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Value", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetNotificationType sets the NotificationType field's value. +func (s *NotificationConfig) SetNotificationType(v string) *NotificationConfig { + s.NotificationType = &v + return s } -// Describes an association status. -type AssociationStatus struct { +// An Amazon EC2 Systems Manager parameter in Parameter Store. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/Parameter +type Parameter struct { _ struct{} `type:"structure"` - // A user-defined string. - AdditionalInfo *string `type:"string"` - - // The date when the status changed. - // - // Date is a required field - Date *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` + // The name of the parameter. + Name *string `min:"1" type:"string"` - // The reason for the status. - // - // Message is a required field - Message *string `type:"string" required:"true"` + // The type of parameter. Valid values include the following: String, String + // list, Secure string. + Type *string `type:"string" enum:"ParameterType"` - // The status. - // - // Name is a required field - Name *string `type:"string" required:"true" enum:"AssociationStatusName"` + // The parameter value. + Value *string `min:"1" type:"string"` } // String returns the string representation -func (s AssociationStatus) String() string { +func (s Parameter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociationStatus) GoString() string { +func (s Parameter) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssociationStatus) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociationStatus"} - if s.Date == nil { - invalidParams.Add(request.NewErrParamRequired("Date")) - } - if s.Message == nil { - invalidParams.Add(request.NewErrParamRequired("Message")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } +// SetName sets the Name field's value. +func (s *Parameter) SetName(v string) *Parameter { + s.Name = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetType sets the Type field's value. +func (s *Parameter) SetType(v string) *Parameter { + s.Type = &v + return s } -type CancelCommandInput struct { +// SetValue sets the Value field's value. +func (s *Parameter) SetValue(v string) *Parameter { + s.Value = &v + return s +} + +// Information about parameter usage. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ParameterHistory +type ParameterHistory struct { _ struct{} `type:"structure"` - // The ID of the command you want to cancel. - // - // CommandId is a required field - CommandId *string `min:"36" type:"string" required:"true"` + // Information about the parameter. + Description *string `min:"1" type:"string"` - // (Optional) A list of instance IDs on which you want to cancel the command. - // If not provided, the command is canceled on every instance on which it was - // requested. - InstanceIds []*string `min:"1" type:"list"` + // The ID of the query key used for this parameter. + KeyId *string `min:"1" type:"string"` + + // Date the parameter was last changed or updated. + LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // Amazon Resource Name (ARN) of the AWS user who last changed the parameter. + LastModifiedUser *string `type:"string"` + + // The name of the parameter. + Name *string `min:"1" type:"string"` + + // The type of parameter used. + Type *string `type:"string" enum:"ParameterType"` + + // The parameter value. + Value *string `min:"1" type:"string"` } // String returns the string representation -func (s CancelCommandInput) String() string { +func (s ParameterHistory) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CancelCommandInput) GoString() string { +func (s ParameterHistory) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CancelCommandInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelCommandInput"} - if s.CommandId == nil { - invalidParams.Add(request.NewErrParamRequired("CommandId")) - } - if s.CommandId != nil && len(*s.CommandId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("CommandId", 36)) - } - if s.InstanceIds != nil && len(s.InstanceIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceIds", 1)) - } +// SetDescription sets the Description field's value. +func (s *ParameterHistory) SetDescription(v string) *ParameterHistory { + s.Description = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetKeyId sets the KeyId field's value. +func (s *ParameterHistory) SetKeyId(v string) *ParameterHistory { + s.KeyId = &v + return s } -// Whether or not the command was successfully canceled. There is no guarantee -// that a request can be canceled. -type CancelCommandOutput struct { - _ struct{} `type:"structure"` +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *ParameterHistory) SetLastModifiedDate(v time.Time) *ParameterHistory { + s.LastModifiedDate = &v + return s +} + +// SetLastModifiedUser sets the LastModifiedUser field's value. +func (s *ParameterHistory) SetLastModifiedUser(v string) *ParameterHistory { + s.LastModifiedUser = &v + return s +} + +// SetName sets the Name field's value. +func (s *ParameterHistory) SetName(v string) *ParameterHistory { + s.Name = &v + return s } -// String returns the string representation -func (s CancelCommandOutput) String() string { - return awsutil.Prettify(s) +// SetType sets the Type field's value. +func (s *ParameterHistory) SetType(v string) *ParameterHistory { + s.Type = &v + return s } -// GoString returns the string representation -func (s CancelCommandOutput) GoString() string { - return s.String() +// SetValue sets the Value field's value. +func (s *ParameterHistory) SetValue(v string) *ParameterHistory { + s.Value = &v + return s } -// Describes a command request. -type Command struct { +// Metada includes information like the ARN of the last user and the date/time +// the parameter was last used. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ParameterMetadata +type ParameterMetadata struct { _ struct{} `type:"structure"` - // A unique identifier for this command. - CommandId *string `min:"36" type:"string"` + // Description of the parameter actions. + Description *string `min:"1" type:"string"` - // User-specified information about the command, such as a brief description - // of what the command should do. - Comment *string `type:"string"` + // The ID of the query key used for this parameter. + KeyId *string `min:"1" type:"string"` - // The name of the SSM document requested for execution. - DocumentName *string `type:"string"` + // Date the parameter was last changed or updated. + LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` - // If this time is reached and the command has not already started executing, - // it will not execute. Calculated based on the ExpiresAfter user input provided - // as part of the SendCommand API. - ExpiresAfter *time.Time `type:"timestamp" timestampFormat:"unix"` + // Amazon Resource Name (ARN) of the AWS user who last changed the parameter. + LastModifiedUser *string `type:"string"` - // The instance IDs against which this command was requested. - InstanceIds []*string `min:"1" type:"list"` + // The parameter name. + Name *string `min:"1" type:"string"` - // Configurations for sending notifications about command status changes. - NotificationConfig *NotificationConfig `type:"structure"` + // The type of parameter. Valid parameter types include the following: String, + // String list, Secure string. + Type *string `type:"string" enum:"ParameterType"` +} - // The S3 bucket where the responses to the command executions should be stored. - // This was requested when issuing the command. - OutputS3BucketName *string `min:"3" type:"string"` +// String returns the string representation +func (s ParameterMetadata) String() string { + return awsutil.Prettify(s) +} - // The S3 directory path inside the bucket where the responses to the command - // executions should be stored. This was requested when issuing the command. - OutputS3KeyPrefix *string `type:"string"` +// GoString returns the string representation +func (s ParameterMetadata) GoString() string { + return s.String() +} - // The parameter values to be inserted in the SSM document when executing the - // command. - Parameters map[string][]*string `type:"map"` +// SetDescription sets the Description field's value. +func (s *ParameterMetadata) SetDescription(v string) *ParameterMetadata { + s.Description = &v + return s +} - // The date and time the command was requested. - RequestedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` +// SetKeyId sets the KeyId field's value. +func (s *ParameterMetadata) SetKeyId(v string) *ParameterMetadata { + s.KeyId = &v + return s +} - // The IAM service role that SSM uses to act on your behalf when sending notifications - // about command status changes. - ServiceRole *string `type:"string"` +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *ParameterMetadata) SetLastModifiedDate(v time.Time) *ParameterMetadata { + s.LastModifiedDate = &v + return s +} - // The status of the command. - Status *string `type:"string" enum:"CommandStatus"` +// SetLastModifiedUser sets the LastModifiedUser field's value. +func (s *ParameterMetadata) SetLastModifiedUser(v string) *ParameterMetadata { + s.LastModifiedUser = &v + return s } -// String returns the string representation -func (s Command) String() string { - return awsutil.Prettify(s) +// SetName sets the Name field's value. +func (s *ParameterMetadata) SetName(v string) *ParameterMetadata { + s.Name = &v + return s } -// GoString returns the string representation -func (s Command) GoString() string { - return s.String() +// SetType sets the Type field's value. +func (s *ParameterMetadata) SetType(v string) *ParameterMetadata { + s.Type = &v + return s } -// Describes a command filter. -type CommandFilter struct { +// One or more filters. Use a filter to return a more specific list of results. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ParametersFilter +type ParametersFilter struct { _ struct{} `type:"structure"` - // The name of the filter. For example, requested date and time. - // - // Key is a required field - Key *string `locationName:"key" type:"string" required:"true" enum:"CommandFilterKey"` + // The name of the filter. + Key *string `type:"string" enum:"ParametersFilterKey"` - // The filter value. For example: June 30, 2015. + // The filter values. // - // Value is a required field - Value *string `locationName:"value" min:"1" type:"string" required:"true"` + // Values is a required field + Values []*string `min:"1" type:"list" required:"true"` } // String returns the string representation -func (s CommandFilter) String() string { +func (s ParametersFilter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CommandFilter) GoString() string { +func (s ParametersFilter) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CommandFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CommandFilter"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) +func (s *ParametersFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ParametersFilter"} + if s.Values == nil { + invalidParams.Add(request.NewErrParamRequired("Values")) } - if s.Value != nil && len(*s.Value) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Value", 1)) + if s.Values != nil && len(s.Values) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Values", 1)) } if invalidParams.Len() > 0 { @@ -2634,286 +17167,325 @@ func (s *CommandFilter) Validate() error { return nil } -// An invocation is copy of a command sent to a specific instance. A command -// can apply to one or more instances. A command invocation applies to one instance. -// For example, if a user executes SendCommand against three instances, then -// a command invocation is created for each requested instance ID. A command -// invocation returns status and detail information about a command you executed. -type CommandInvocation struct { +// SetKey sets the Key field's value. +func (s *ParametersFilter) SetKey(v string) *ParametersFilter { + s.Key = &v + return s +} + +// SetValues sets the Values field's value. +func (s *ParametersFilter) SetValues(v []*string) *ParametersFilter { + s.Values = v + return s +} + +// Represents metadata about a patch. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/Patch +type Patch struct { _ struct{} `type:"structure"` - // The command against which this invocation was requested. - CommandId *string `min:"36" type:"string"` + // The classification of the patch (for example, SecurityUpdates, Updates, CriticalUpdates). + Classification *string `type:"string"` - CommandPlugins []*CommandPlugin `type:"list"` + // The URL where more information can be obtained about the patch. + ContentUrl *string `type:"string"` - // User-specified information about the command, such as a brief description - // of what the command should do. - Comment *string `type:"string"` + // The description of the patch. + Description *string `type:"string"` - // The document name that was requested for execution. - DocumentName *string `type:"string"` + // The ID of the patch (this is different than the Microsoft Knowledge Base + // ID). + Id *string `type:"string"` - // The instance ID in which this invocation was requested. - InstanceId *string `type:"string"` + // The Microsoft Knowledge Base ID of the patch. + KbNumber *string `type:"string"` - // Configurations for sending notifications about command status changes on - // a per instance basis. - NotificationConfig *NotificationConfig `type:"structure"` + // The language of the patch if it’s language-specific. + Language *string `type:"string"` - // The time and date the request was sent to this instance. - RequestedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + // The ID of the MSRC bulletin the patch is related to. + MsrcNumber *string `type:"string"` - // The IAM service role that SSM uses to act on your behalf when sending notifications - // about command status changes on a per instance basis. - ServiceRole *string `type:"string"` + // The severity of the patch (for example Critical, Important, Moderate). + MsrcSeverity *string `type:"string"` - // Whether or not the invocation succeeded, failed, or is pending. - Status *string `type:"string" enum:"CommandInvocationStatus"` + // The specific product the patch is applicable for (for example, WindowsServer2016). + Product *string `type:"string"` - // Gets the trace output sent by the agent. - TraceOutput *string `type:"string"` + // The product family the patch is applicable for (for example, Windows). + ProductFamily *string `type:"string"` + + // The date the patch was released. + ReleaseDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The title of the patch. + Title *string `type:"string"` + + // The name of the vendor providing the patch. + Vendor *string `type:"string"` } // String returns the string representation -func (s CommandInvocation) String() string { +func (s Patch) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CommandInvocation) GoString() string { +func (s Patch) GoString() string { return s.String() } -// Describes plugin details. -type CommandPlugin struct { - _ struct{} `type:"structure"` +// SetClassification sets the Classification field's value. +func (s *Patch) SetClassification(v string) *Patch { + s.Classification = &v + return s +} - // The name of the plugin. Must be one of the following: aws:updateAgent, aws:domainjoin, - // aws:applications, aws:runPowerShellScript, aws:psmodule, aws:cloudWatch, - // aws:runShellScript, or aws:updateSSMAgent. - Name *string `min:"4" type:"string"` +// SetContentUrl sets the ContentUrl field's value. +func (s *Patch) SetContentUrl(v string) *Patch { + s.ContentUrl = &v + return s +} - // Output of the plugin execution. - Output *string `type:"string"` +// SetDescription sets the Description field's value. +func (s *Patch) SetDescription(v string) *Patch { + s.Description = &v + return s +} - // The S3 bucket where the responses to the command executions should be stored. - // This was requested when issuing the command. - OutputS3BucketName *string `min:"3" type:"string"` +// SetId sets the Id field's value. +func (s *Patch) SetId(v string) *Patch { + s.Id = &v + return s +} - // The S3 directory path inside the bucket where the responses to the command - // executions should be stored. This was requested when issuing the command. - OutputS3KeyPrefix *string `type:"string"` +// SetKbNumber sets the KbNumber field's value. +func (s *Patch) SetKbNumber(v string) *Patch { + s.KbNumber = &v + return s +} - // A numeric response code generated after executing the plugin. - ResponseCode *int64 `type:"integer"` +// SetLanguage sets the Language field's value. +func (s *Patch) SetLanguage(v string) *Patch { + s.Language = &v + return s +} - // The time the plugin stopped executing. Could stop prematurely if, for example, - // a cancel command was sent. - ResponseFinishDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` +// SetMsrcNumber sets the MsrcNumber field's value. +func (s *Patch) SetMsrcNumber(v string) *Patch { + s.MsrcNumber = &v + return s +} - // The time the plugin started executing. - ResponseStartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` +// SetMsrcSeverity sets the MsrcSeverity field's value. +func (s *Patch) SetMsrcSeverity(v string) *Patch { + s.MsrcSeverity = &v + return s +} - // The status of this plugin. You can execute a document with multiple plugins. - Status *string `type:"string" enum:"CommandPluginStatus"` +// SetProduct sets the Product field's value. +func (s *Patch) SetProduct(v string) *Patch { + s.Product = &v + return s } -// String returns the string representation -func (s CommandPlugin) String() string { - return awsutil.Prettify(s) +// SetProductFamily sets the ProductFamily field's value. +func (s *Patch) SetProductFamily(v string) *Patch { + s.ProductFamily = &v + return s } -// GoString returns the string representation -func (s CommandPlugin) GoString() string { - return s.String() +// SetReleaseDate sets the ReleaseDate field's value. +func (s *Patch) SetReleaseDate(v time.Time) *Patch { + s.ReleaseDate = &v + return s } -type CreateActivationInput struct { - _ struct{} `type:"structure"` +// SetTitle sets the Title field's value. +func (s *Patch) SetTitle(v string) *Patch { + s.Title = &v + return s +} - // The name of the registered, managed instance as it will appear in the Amazon - // EC2 console or when you use the AWS command line tools to list EC2 resources. - DefaultInstanceName *string `type:"string"` +// SetVendor sets the Vendor field's value. +func (s *Patch) SetVendor(v string) *Patch { + s.Vendor = &v + return s +} - // A user-defined description of the resource that you want to register with - // Amazon EC2. - Description *string `type:"string"` +// Defines the basic information about a patch baseline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/PatchBaselineIdentity +type PatchBaselineIdentity struct { + _ struct{} `type:"structure"` - // The date by which this activation request should expire. The default value - // is 24 hours. - ExpirationDate *time.Time `type:"timestamp" timestampFormat:"unix"` + // The description of the patch baseline. + BaselineDescription *string `min:"1" type:"string"` - // The Amazon Identity and Access Management (IAM) role that you want to assign - // to the managed instance. - // - // IamRole is a required field - IamRole *string `type:"string" required:"true"` + // The ID of the patch baseline. + BaselineId *string `min:"20" type:"string"` - // Specify the maximum number of managed instances you want to register. The - // default value is 1 instance. - RegistrationLimit *int64 `min:"1" type:"integer"` + // The name of the patch baseline. + BaselineName *string `min:"3" type:"string"` + + // Whether this is the default baseline. + DefaultBaseline *bool `type:"boolean"` } // String returns the string representation -func (s CreateActivationInput) String() string { +func (s PatchBaselineIdentity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateActivationInput) GoString() string { +func (s PatchBaselineIdentity) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateActivationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateActivationInput"} - if s.IamRole == nil { - invalidParams.Add(request.NewErrParamRequired("IamRole")) - } - if s.RegistrationLimit != nil && *s.RegistrationLimit < 1 { - invalidParams.Add(request.NewErrParamMinValue("RegistrationLimit", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetBaselineDescription sets the BaselineDescription field's value. +func (s *PatchBaselineIdentity) SetBaselineDescription(v string) *PatchBaselineIdentity { + s.BaselineDescription = &v + return s } -type CreateActivationOutput struct { - _ struct{} `type:"structure"` - - // The code the system generates when it processes the activation. The activation - // code functions like a password to validate the activation ID. - ActivationCode *string `min:"20" type:"string"` - - // The ID number generated by the system when it processed the activation. The - // activation ID functions like a user name. - ActivationId *string `type:"string"` +// SetBaselineId sets the BaselineId field's value. +func (s *PatchBaselineIdentity) SetBaselineId(v string) *PatchBaselineIdentity { + s.BaselineId = &v + return s } -// String returns the string representation -func (s CreateActivationOutput) String() string { - return awsutil.Prettify(s) +// SetBaselineName sets the BaselineName field's value. +func (s *PatchBaselineIdentity) SetBaselineName(v string) *PatchBaselineIdentity { + s.BaselineName = &v + return s } -// GoString returns the string representation -func (s CreateActivationOutput) GoString() string { - return s.String() +// SetDefaultBaseline sets the DefaultBaseline field's value. +func (s *PatchBaselineIdentity) SetDefaultBaseline(v bool) *PatchBaselineIdentity { + s.DefaultBaseline = &v + return s } -type CreateAssociationBatchInput struct { +// Information about the state of a patch on a particular instance as it relates +// to the patch baseline used to patch the instance. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/PatchComplianceData +type PatchComplianceData struct { _ struct{} `type:"structure"` - // One or more associations. + // The classification of the patch (for example, SecurityUpdates, Updates, CriticalUpdates). // - // Entries is a required field - Entries []*CreateAssociationBatchRequestEntry `locationNameList:"entries" type:"list" required:"true"` -} - -// String returns the string representation -func (s CreateAssociationBatchInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateAssociationBatchInput) GoString() string { - return s.String() -} + // Classification is a required field + Classification *string `type:"string" required:"true"` -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAssociationBatchInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAssociationBatchInput"} - if s.Entries == nil { - invalidParams.Add(request.NewErrParamRequired("Entries")) - } + // The date/time the patch was installed on the instance. + // + // InstalledTime is a required field + InstalledTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} + // The Microsoft Knowledge Base ID of the patch. + // + // KBId is a required field + KBId *string `type:"string" required:"true"` -type CreateAssociationBatchOutput struct { - _ struct{} `type:"structure"` + // The severity of the patch (for example, Critical, Important, Moderate). + // + // Severity is a required field + Severity *string `type:"string" required:"true"` - // Information about the associations that failed. - Failed []*FailedCreateAssociation `locationNameList:"FailedCreateAssociationEntry" type:"list"` + // The state of the patch on the instance (INSTALLED, INSTALLED_OTHER, MISSING, + // NOT_APPLICABLE or FAILED). + // + // State is a required field + State *string `type:"string" required:"true" enum:"PatchComplianceDataState"` - // Information about the associations that succeeded. - Successful []*AssociationDescription `locationNameList:"AssociationDescription" type:"list"` + // The title of the patch. + // + // Title is a required field + Title *string `type:"string" required:"true"` } // String returns the string representation -func (s CreateAssociationBatchOutput) String() string { +func (s PatchComplianceData) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateAssociationBatchOutput) GoString() string { +func (s PatchComplianceData) GoString() string { return s.String() } -// Describes the association of an SSM document and an instance. -type CreateAssociationBatchRequestEntry struct { - _ struct{} `type:"structure"` - - // The ID of the instance. - InstanceId *string `type:"string"` +// SetClassification sets the Classification field's value. +func (s *PatchComplianceData) SetClassification(v string) *PatchComplianceData { + s.Classification = &v + return s +} - // The name of the configuration document. - Name *string `type:"string"` +// SetInstalledTime sets the InstalledTime field's value. +func (s *PatchComplianceData) SetInstalledTime(v time.Time) *PatchComplianceData { + s.InstalledTime = &v + return s +} - // A description of the parameters for a document. - Parameters map[string][]*string `type:"map"` +// SetKBId sets the KBId field's value. +func (s *PatchComplianceData) SetKBId(v string) *PatchComplianceData { + s.KBId = &v + return s } -// String returns the string representation -func (s CreateAssociationBatchRequestEntry) String() string { - return awsutil.Prettify(s) +// SetSeverity sets the Severity field's value. +func (s *PatchComplianceData) SetSeverity(v string) *PatchComplianceData { + s.Severity = &v + return s } -// GoString returns the string representation -func (s CreateAssociationBatchRequestEntry) GoString() string { - return s.String() +// SetState sets the State field's value. +func (s *PatchComplianceData) SetState(v string) *PatchComplianceData { + s.State = &v + return s } -type CreateAssociationInput struct { +// SetTitle sets the Title field's value. +func (s *PatchComplianceData) SetTitle(v string) *PatchComplianceData { + s.Title = &v + return s +} + +// Defines a patch filter. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/PatchFilter +type PatchFilter struct { _ struct{} `type:"structure"` - // The instance ID. + // The key for the filter (PRODUCT, CLASSIFICATION, MSRC_SEVERITY, PATCH_ID) // - // InstanceId is a required field - InstanceId *string `type:"string" required:"true"` + // Key is a required field + Key *string `type:"string" required:"true" enum:"PatchFilterKey"` - // The name of the SSM document. + // The value for the filter key. // - // Name is a required field - Name *string `type:"string" required:"true"` - - // The parameters for the documents runtime configuration. - Parameters map[string][]*string `type:"map"` + // Values is a required field + Values []*string `min:"1" type:"list" required:"true"` } // String returns the string representation -func (s CreateAssociationInput) String() string { +func (s PatchFilter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateAssociationInput) GoString() string { +func (s PatchFilter) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAssociationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAssociationInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) +func (s *PatchFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PatchFilter"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) + if s.Values == nil { + invalidParams.Add(request.NewErrParamRequired("Values")) + } + if s.Values != nil && len(s.Values) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Values", 1)) } if invalidParams.Len() > 0 { @@ -2922,58 +17494,54 @@ func (s *CreateAssociationInput) Validate() error { return nil } -type CreateAssociationOutput struct { - _ struct{} `type:"structure"` - - // Information about the association. - AssociationDescription *AssociationDescription `type:"structure"` -} - -// String returns the string representation -func (s CreateAssociationOutput) String() string { - return awsutil.Prettify(s) +// SetKey sets the Key field's value. +func (s *PatchFilter) SetKey(v string) *PatchFilter { + s.Key = &v + return s } -// GoString returns the string representation -func (s CreateAssociationOutput) GoString() string { - return s.String() +// SetValues sets the Values field's value. +func (s *PatchFilter) SetValues(v []*string) *PatchFilter { + s.Values = v + return s } -type CreateDocumentInput struct { +// A set of patch filters, typically used for approval rules. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/PatchFilterGroup +type PatchFilterGroup struct { _ struct{} `type:"structure"` - // A valid JSON string. - // - // Content is a required field - Content *string `min:"1" type:"string" required:"true"` - - // A name for the SSM document. + // The set of patch filters that make up the group. // - // Name is a required field - Name *string `type:"string" required:"true"` + // PatchFilters is a required field + PatchFilters []*PatchFilter `type:"list" required:"true"` } // String returns the string representation -func (s CreateDocumentInput) String() string { +func (s PatchFilterGroup) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateDocumentInput) GoString() string { +func (s PatchFilterGroup) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDocumentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDocumentInput"} - if s.Content == nil { - invalidParams.Add(request.NewErrParamRequired("Content")) - } - if s.Content != nil && len(*s.Content) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Content", 1)) +func (s *PatchFilterGroup) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PatchFilterGroup"} + if s.PatchFilters == nil { + invalidParams.Add(request.NewErrParamRequired("PatchFilters")) } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) + if s.PatchFilters != nil { + for i, v := range s.PatchFilters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PatchFilters", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -2982,47 +17550,74 @@ func (s *CreateDocumentInput) Validate() error { return nil } -type CreateDocumentOutput struct { +// SetPatchFilters sets the PatchFilters field's value. +func (s *PatchFilterGroup) SetPatchFilters(v []*PatchFilter) *PatchFilterGroup { + s.PatchFilters = v + return s +} + +// The mapping between a patch group and the patch baseline the patch group +// is registered with. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/PatchGroupPatchBaselineMapping +type PatchGroupPatchBaselineMapping struct { _ struct{} `type:"structure"` - // Information about the SSM document. - DocumentDescription *DocumentDescription `type:"structure"` + // The patch baseline the patch group is registered with. + BaselineIdentity *PatchBaselineIdentity `type:"structure"` + + // The name of the patch group registered with the patch baseline. + PatchGroup *string `min:"1" type:"string"` } // String returns the string representation -func (s CreateDocumentOutput) String() string { +func (s PatchGroupPatchBaselineMapping) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateDocumentOutput) GoString() string { +func (s PatchGroupPatchBaselineMapping) GoString() string { return s.String() } -type DeleteActivationInput struct { +// SetBaselineIdentity sets the BaselineIdentity field's value. +func (s *PatchGroupPatchBaselineMapping) SetBaselineIdentity(v *PatchBaselineIdentity) *PatchGroupPatchBaselineMapping { + s.BaselineIdentity = v + return s +} + +// SetPatchGroup sets the PatchGroup field's value. +func (s *PatchGroupPatchBaselineMapping) SetPatchGroup(v string) *PatchGroupPatchBaselineMapping { + s.PatchGroup = &v + return s +} + +// Defines a filter used in Patch Manager APIs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/PatchOrchestratorFilter +type PatchOrchestratorFilter struct { _ struct{} `type:"structure"` - // The ID of the activation that you want to delete. - // - // ActivationId is a required field - ActivationId *string `type:"string" required:"true"` + // The key for the filter. + Key *string `min:"1" type:"string"` + + // The value for the filter. + Values []*string `type:"list"` } // String returns the string representation -func (s DeleteActivationInput) String() string { +func (s PatchOrchestratorFilter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteActivationInput) GoString() string { +func (s PatchOrchestratorFilter) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteActivationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteActivationInput"} - if s.ActivationId == nil { - invalidParams.Add(request.NewErrParamRequired("ActivationId")) +func (s *PatchOrchestratorFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PatchOrchestratorFilter"} + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } if invalidParams.Len() > 0 { @@ -3031,52 +17626,58 @@ func (s *DeleteActivationInput) Validate() error { return nil } -type DeleteActivationOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteActivationOutput) String() string { - return awsutil.Prettify(s) +// SetKey sets the Key field's value. +func (s *PatchOrchestratorFilter) SetKey(v string) *PatchOrchestratorFilter { + s.Key = &v + return s } -// GoString returns the string representation -func (s DeleteActivationOutput) GoString() string { - return s.String() +// SetValues sets the Values field's value. +func (s *PatchOrchestratorFilter) SetValues(v []*string) *PatchOrchestratorFilter { + s.Values = v + return s } -type DeleteAssociationInput struct { +// Defines an approval rule for a patch baseline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/PatchRule +type PatchRule struct { _ struct{} `type:"structure"` - // The ID of the instance. + // The number of days after the release date of each patch matched by the rule + // the patch is marked as approved in the patch baseline. // - // InstanceId is a required field - InstanceId *string `type:"string" required:"true"` + // ApproveAfterDays is a required field + ApproveAfterDays *int64 `type:"integer" required:"true"` - // The name of the SSM document. + // The patch filter group that defines the criteria for the rule. // - // Name is a required field - Name *string `type:"string" required:"true"` + // PatchFilterGroup is a required field + PatchFilterGroup *PatchFilterGroup `type:"structure" required:"true"` } // String returns the string representation -func (s DeleteAssociationInput) String() string { +func (s PatchRule) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteAssociationInput) GoString() string { +func (s PatchRule) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteAssociationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAssociationInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) +func (s *PatchRule) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PatchRule"} + if s.ApproveAfterDays == nil { + invalidParams.Add(request.NewErrParamRequired("ApproveAfterDays")) } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) + if s.PatchFilterGroup == nil { + invalidParams.Add(request.NewErrParamRequired("PatchFilterGroup")) + } + if s.PatchFilterGroup != nil { + if err := s.PatchFilterGroup.Validate(); err != nil { + invalidParams.AddNested("PatchFilterGroup", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -3085,44 +17686,54 @@ func (s *DeleteAssociationInput) Validate() error { return nil } -type DeleteAssociationOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteAssociationOutput) String() string { - return awsutil.Prettify(s) +// SetApproveAfterDays sets the ApproveAfterDays field's value. +func (s *PatchRule) SetApproveAfterDays(v int64) *PatchRule { + s.ApproveAfterDays = &v + return s } -// GoString returns the string representation -func (s DeleteAssociationOutput) GoString() string { - return s.String() +// SetPatchFilterGroup sets the PatchFilterGroup field's value. +func (s *PatchRule) SetPatchFilterGroup(v *PatchFilterGroup) *PatchRule { + s.PatchFilterGroup = v + return s } -type DeleteDocumentInput struct { +// A set of rules defining the approval rules for a patch baseline. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/PatchRuleGroup +type PatchRuleGroup struct { _ struct{} `type:"structure"` - // The name of the SSM document. + // The rules that make up the rule group. // - // Name is a required field - Name *string `type:"string" required:"true"` + // PatchRules is a required field + PatchRules []*PatchRule `type:"list" required:"true"` } // String returns the string representation -func (s DeleteDocumentInput) String() string { +func (s PatchRuleGroup) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteDocumentInput) GoString() string { +func (s PatchRuleGroup) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDocumentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDocumentInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) +func (s *PatchRuleGroup) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PatchRuleGroup"} + if s.PatchRules == nil { + invalidParams.Add(request.NewErrParamRequired("PatchRules")) + } + if s.PatchRules != nil { + for i, v := range s.PatchRules { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PatchRules", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -3131,46 +17742,94 @@ func (s *DeleteDocumentInput) Validate() error { return nil } -type DeleteDocumentOutput struct { +// SetPatchRules sets the PatchRules field's value. +func (s *PatchRuleGroup) SetPatchRules(v []*PatchRule) *PatchRuleGroup { + s.PatchRules = v + return s +} + +// Information about the approval status of a patch. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/PatchStatus +type PatchStatus struct { _ struct{} `type:"structure"` + + // The date the patch was approved (or will be approved if the status is PENDING_APPROVAL). + ApprovalDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The approval status of a patch (APPROVED, PENDING_APPROVAL, EXPLICIT_APPROVED, + // EXPLICIT_REJECTED). + DeploymentStatus *string `type:"string" enum:"PatchDeploymentStatus"` } // String returns the string representation -func (s DeleteDocumentOutput) String() string { +func (s PatchStatus) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteDocumentOutput) GoString() string { +func (s PatchStatus) GoString() string { return s.String() } -type DeregisterManagedInstanceInput struct { +// SetApprovalDate sets the ApprovalDate field's value. +func (s *PatchStatus) SetApprovalDate(v time.Time) *PatchStatus { + s.ApprovalDate = &v + return s +} + +// SetDeploymentStatus sets the DeploymentStatus field's value. +func (s *PatchStatus) SetDeploymentStatus(v string) *PatchStatus { + s.DeploymentStatus = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/PutInventoryRequest +type PutInventoryInput struct { _ struct{} `type:"structure"` - // The ID assigned to the managed instance when you registered it using the - // activation process. + // One or more instance IDs where you want to add or update inventory items. // // InstanceId is a required field InstanceId *string `type:"string" required:"true"` + + // The inventory items that you want to add or update on instances. + // + // Items is a required field + Items []*InventoryItem `locationNameList:"Item" min:"1" type:"list" required:"true"` } // String returns the string representation -func (s DeregisterManagedInstanceInput) String() string { +func (s PutInventoryInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeregisterManagedInstanceInput) GoString() string { +func (s PutInventoryInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeregisterManagedInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeregisterManagedInstanceInput"} +func (s *PutInventoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutInventoryInput"} if s.InstanceId == nil { invalidParams.Add(request.NewErrParamRequired("InstanceId")) } + if s.Items == nil { + invalidParams.Add(request.NewErrParamRequired("Items")) + } + if s.Items != nil && len(s.Items) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Items", 1)) + } + if s.Items != nil { + for i, v := range s.Items { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Items", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -3178,71 +17837,95 @@ func (s *DeregisterManagedInstanceInput) Validate() error { return nil } -type DeregisterManagedInstanceOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeregisterManagedInstanceOutput) String() string { - return awsutil.Prettify(s) +// SetInstanceId sets the InstanceId field's value. +func (s *PutInventoryInput) SetInstanceId(v string) *PutInventoryInput { + s.InstanceId = &v + return s } -// GoString returns the string representation -func (s DeregisterManagedInstanceOutput) GoString() string { - return s.String() +// SetItems sets the Items field's value. +func (s *PutInventoryInput) SetItems(v []*InventoryItem) *PutInventoryInput { + s.Items = v + return s } -// Filter for the DescribeActivation API. -type DescribeActivationsFilter struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/PutInventoryResult +type PutInventoryOutput struct { _ struct{} `type:"structure"` - - // The name of the filter. - FilterKey *string `type:"string" enum:"DescribeActivationsFilterKeys"` - - // The filter values. - FilterValues []*string `type:"list"` } // String returns the string representation -func (s DescribeActivationsFilter) String() string { +func (s PutInventoryOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeActivationsFilter) GoString() string { +func (s PutInventoryOutput) GoString() string { return s.String() } -type DescribeActivationsInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/PutParameterRequest +type PutParameterInput struct { _ struct{} `type:"structure"` - // A filter to view information about your activations. - Filters []*DescribeActivationsFilter `type:"list"` + // Information about the parameter that you want to add to the system + Description *string `min:"1" type:"string"` - // The maximum number of items to return for this call. The call also returns - // a token that you can specify in a subsequent call to get the next set of - // results. - MaxResults *int64 `min:"1" type:"integer"` + // The parameter key ID that you want to add to the system. + KeyId *string `min:"1" type:"string"` - // A token to start the list. Use this token to get the next set of results. - NextToken *string `type:"string"` + // The name of the parameter that you want to add to the system. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // Overwrite an existing parameter. + Overwrite *bool `type:"boolean"` + + // The type of parameter that you want to add to the system. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"ParameterType"` + + // The parameter value that you want to add to the system. + // + // Value is a required field + Value *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DescribeActivationsInput) String() string { +func (s PutParameterInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeActivationsInput) GoString() string { +func (s PutParameterInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeActivationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeActivationsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *PutParameterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutParameterInput"} + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + } + if s.KeyId != nil && len(*s.KeyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + if s.Value != nil && len(*s.Value) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Value", 1)) } if invalidParams.Len() > 0 { @@ -3251,59 +17934,85 @@ func (s *DescribeActivationsInput) Validate() error { return nil } -type DescribeActivationsOutput struct { - _ struct{} `type:"structure"` +// SetDescription sets the Description field's value. +func (s *PutParameterInput) SetDescription(v string) *PutParameterInput { + s.Description = &v + return s +} - // A list of activations for your AWS account. - ActivationList []*Activation `type:"list"` +// SetKeyId sets the KeyId field's value. +func (s *PutParameterInput) SetKeyId(v string) *PutParameterInput { + s.KeyId = &v + return s +} - // The token for the next set of items to return. Use this token to get the - // next set of results. - NextToken *string `type:"string"` +// SetName sets the Name field's value. +func (s *PutParameterInput) SetName(v string) *PutParameterInput { + s.Name = &v + return s +} + +// SetOverwrite sets the Overwrite field's value. +func (s *PutParameterInput) SetOverwrite(v bool) *PutParameterInput { + s.Overwrite = &v + return s +} + +// SetType sets the Type field's value. +func (s *PutParameterInput) SetType(v string) *PutParameterInput { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *PutParameterInput) SetValue(v string) *PutParameterInput { + s.Value = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/PutParameterResult +type PutParameterOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation -func (s DescribeActivationsOutput) String() string { +func (s PutParameterOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeActivationsOutput) GoString() string { +func (s PutParameterOutput) GoString() string { return s.String() } -type DescribeAssociationInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RegisterDefaultPatchBaselineRequest +type RegisterDefaultPatchBaselineInput struct { _ struct{} `type:"structure"` - // The instance ID. - // - // InstanceId is a required field - InstanceId *string `type:"string" required:"true"` - - // The name of the SSM document. + // The ID of the patch baseline that should be the default patch baseline. // - // Name is a required field - Name *string `type:"string" required:"true"` + // BaselineId is a required field + BaselineId *string `min:"20" type:"string" required:"true"` } // String returns the string representation -func (s DescribeAssociationInput) String() string { +func (s RegisterDefaultPatchBaselineInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeAssociationInput) GoString() string { +func (s RegisterDefaultPatchBaselineInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeAssociationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeAssociationInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) +func (s *RegisterDefaultPatchBaselineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RegisterDefaultPatchBaselineInput"} + if s.BaselineId == nil { + invalidParams.Add(request.NewErrParamRequired("BaselineId")) } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) + if s.BaselineId != nil && len(*s.BaselineId) < 20 { + invalidParams.Add(request.NewErrParamMinLen("BaselineId", 20)) } if invalidParams.Len() > 0 { @@ -3312,47 +18021,75 @@ func (s *DescribeAssociationInput) Validate() error { return nil } -type DescribeAssociationOutput struct { +// SetBaselineId sets the BaselineId field's value. +func (s *RegisterDefaultPatchBaselineInput) SetBaselineId(v string) *RegisterDefaultPatchBaselineInput { + s.BaselineId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RegisterDefaultPatchBaselineResult +type RegisterDefaultPatchBaselineOutput struct { _ struct{} `type:"structure"` - // Information about the association. - AssociationDescription *AssociationDescription `type:"structure"` + // The ID of the default patch baseline. + BaselineId *string `min:"20" type:"string"` } // String returns the string representation -func (s DescribeAssociationOutput) String() string { +func (s RegisterDefaultPatchBaselineOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeAssociationOutput) GoString() string { +func (s RegisterDefaultPatchBaselineOutput) GoString() string { return s.String() } -type DescribeDocumentInput struct { +// SetBaselineId sets the BaselineId field's value. +func (s *RegisterDefaultPatchBaselineOutput) SetBaselineId(v string) *RegisterDefaultPatchBaselineOutput { + s.BaselineId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RegisterPatchBaselineForPatchGroupRequest +type RegisterPatchBaselineForPatchGroupInput struct { _ struct{} `type:"structure"` - // The name of the SSM document. + // The ID of the patch baseline to register the patch group with. // - // Name is a required field - Name *string `type:"string" required:"true"` + // BaselineId is a required field + BaselineId *string `min:"20" type:"string" required:"true"` + + // The name of the patch group that should be registered with the patch baseline. + // + // PatchGroup is a required field + PatchGroup *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DescribeDocumentInput) String() string { +func (s RegisterPatchBaselineForPatchGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeDocumentInput) GoString() string { +func (s RegisterPatchBaselineForPatchGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDocumentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDocumentInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) +func (s *RegisterPatchBaselineForPatchGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RegisterPatchBaselineForPatchGroupInput"} + if s.BaselineId == nil { + invalidParams.Add(request.NewErrParamRequired("BaselineId")) + } + if s.BaselineId != nil && len(*s.BaselineId) < 20 { + invalidParams.Add(request.NewErrParamMinLen("BaselineId", 20)) + } + if s.PatchGroup == nil { + invalidParams.Add(request.NewErrParamRequired("PatchGroup")) + } + if s.PatchGroup != nil && len(*s.PatchGroup) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PatchGroup", 1)) } if invalidParams.Len() > 0 { @@ -3361,55 +18098,119 @@ func (s *DescribeDocumentInput) Validate() error { return nil } -type DescribeDocumentOutput struct { +// SetBaselineId sets the BaselineId field's value. +func (s *RegisterPatchBaselineForPatchGroupInput) SetBaselineId(v string) *RegisterPatchBaselineForPatchGroupInput { + s.BaselineId = &v + return s +} + +// SetPatchGroup sets the PatchGroup field's value. +func (s *RegisterPatchBaselineForPatchGroupInput) SetPatchGroup(v string) *RegisterPatchBaselineForPatchGroupInput { + s.PatchGroup = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RegisterPatchBaselineForPatchGroupResult +type RegisterPatchBaselineForPatchGroupOutput struct { _ struct{} `type:"structure"` - // Information about the SSM document. - Document *DocumentDescription `type:"structure"` + // The ID of the patch baseline the patch group was registered with. + BaselineId *string `min:"20" type:"string"` + + // The name of the patch group registered with the patch baseline. + PatchGroup *string `min:"1" type:"string"` } // String returns the string representation -func (s DescribeDocumentOutput) String() string { +func (s RegisterPatchBaselineForPatchGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeDocumentOutput) GoString() string { +func (s RegisterPatchBaselineForPatchGroupOutput) GoString() string { return s.String() } -type DescribeDocumentPermissionInput struct { +// SetBaselineId sets the BaselineId field's value. +func (s *RegisterPatchBaselineForPatchGroupOutput) SetBaselineId(v string) *RegisterPatchBaselineForPatchGroupOutput { + s.BaselineId = &v + return s +} + +// SetPatchGroup sets the PatchGroup field's value. +func (s *RegisterPatchBaselineForPatchGroupOutput) SetPatchGroup(v string) *RegisterPatchBaselineForPatchGroupOutput { + s.PatchGroup = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RegisterTargetWithMaintenanceWindowRequest +type RegisterTargetWithMaintenanceWindowInput struct { _ struct{} `type:"structure"` - // The name of the document for which you are the owner. + // User-provided idempotency token. + ClientToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // User-provided value that will be included in any CloudWatch events raised + // while running tasks for these targets in this Maintenance Window. + OwnerInformation *string `min:"1" type:"string"` + + // The type of target being registered with the Maintenance Window. // - // Name is a required field - Name *string `type:"string" required:"true"` + // ResourceType is a required field + ResourceType *string `type:"string" required:"true" enum:"MaintenanceWindowResourceType"` - // The permission type for the document. The permission type can be Share. + // The targets (either instances or tags). Instances are specified using Key=instanceids,Values=,. + // Tags are specified using Key=,Values=. // - // PermissionType is a required field - PermissionType *string `type:"string" required:"true" enum:"DocumentPermissionType"` + // Targets is a required field + Targets []*Target `type:"list" required:"true"` + + // The ID of the Maintenance Window the target should be registered with. + // + // WindowId is a required field + WindowId *string `min:"20" type:"string" required:"true"` } // String returns the string representation -func (s DescribeDocumentPermissionInput) String() string { +func (s RegisterTargetWithMaintenanceWindowInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeDocumentPermissionInput) GoString() string { +func (s RegisterTargetWithMaintenanceWindowInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDocumentPermissionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDocumentPermissionInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) +func (s *RegisterTargetWithMaintenanceWindowInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RegisterTargetWithMaintenanceWindowInput"} + if s.ClientToken != nil && len(*s.ClientToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) } - if s.PermissionType == nil { - invalidParams.Add(request.NewErrParamRequired("PermissionType")) + if s.OwnerInformation != nil && len(*s.OwnerInformation) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OwnerInformation", 1)) + } + if s.ResourceType == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceType")) + } + if s.Targets == nil { + invalidParams.Add(request.NewErrParamRequired("Targets")) + } + if s.WindowId == nil { + invalidParams.Add(request.NewErrParamRequired("WindowId")) + } + if s.WindowId != nil && len(*s.WindowId) < 20 { + invalidParams.Add(request.NewErrParamMinLen("WindowId", 20)) + } + if s.Targets != nil { + for i, v := range s.Targets { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Targets", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -3418,66 +18219,177 @@ func (s *DescribeDocumentPermissionInput) Validate() error { return nil } -type DescribeDocumentPermissionOutput struct { +// SetClientToken sets the ClientToken field's value. +func (s *RegisterTargetWithMaintenanceWindowInput) SetClientToken(v string) *RegisterTargetWithMaintenanceWindowInput { + s.ClientToken = &v + return s +} + +// SetOwnerInformation sets the OwnerInformation field's value. +func (s *RegisterTargetWithMaintenanceWindowInput) SetOwnerInformation(v string) *RegisterTargetWithMaintenanceWindowInput { + s.OwnerInformation = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *RegisterTargetWithMaintenanceWindowInput) SetResourceType(v string) *RegisterTargetWithMaintenanceWindowInput { + s.ResourceType = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *RegisterTargetWithMaintenanceWindowInput) SetTargets(v []*Target) *RegisterTargetWithMaintenanceWindowInput { + s.Targets = v + return s +} + +// SetWindowId sets the WindowId field's value. +func (s *RegisterTargetWithMaintenanceWindowInput) SetWindowId(v string) *RegisterTargetWithMaintenanceWindowInput { + s.WindowId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RegisterTargetWithMaintenanceWindowResult +type RegisterTargetWithMaintenanceWindowOutput struct { _ struct{} `type:"structure"` - // The account IDs that have permission to use this document. The ID can be - // either an AWS account or All. - AccountIds []*string `locationNameList:"AccountId" type:"list"` + // The ID of the target definition in this Maintenance Window. + WindowTargetId *string `min:"36" type:"string"` } // String returns the string representation -func (s DescribeDocumentPermissionOutput) String() string { +func (s RegisterTargetWithMaintenanceWindowOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeDocumentPermissionOutput) GoString() string { +func (s RegisterTargetWithMaintenanceWindowOutput) GoString() string { return s.String() } -type DescribeInstanceInformationInput struct { +// SetWindowTargetId sets the WindowTargetId field's value. +func (s *RegisterTargetWithMaintenanceWindowOutput) SetWindowTargetId(v string) *RegisterTargetWithMaintenanceWindowOutput { + s.WindowTargetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RegisterTaskWithMaintenanceWindowRequest +type RegisterTaskWithMaintenanceWindowInput struct { _ struct{} `type:"structure"` - // One or more filters. Use a filter to return a more specific list of instances. - InstanceInformationFilterList []*InstanceInformationFilter `locationNameList:"InstanceInformationFilter" min:"1" type:"list"` + // User-provided idempotency token. + ClientToken *string `min:"1" type:"string" idempotencyToken:"true"` - // The maximum number of items to return for this call. The call also returns - // a token that you can specify in a subsequent call to get the next set of - // results. - MaxResults *int64 `min:"5" type:"integer"` + // A structure containing information about an Amazon S3 bucket to write instance-level + // logs to. + LoggingInfo *LoggingInfo `type:"structure"` - // The token for the next set of items to return. (You received this token from - // a previous call.) - NextToken *string `type:"string"` + // The maximum number of targets this task can be run for in parallel. + // + // MaxConcurrency is a required field + MaxConcurrency *string `min:"1" type:"string" required:"true"` + + // The maximum number of errors allowed before this task stops being scheduled. + // + // MaxErrors is a required field + MaxErrors *string `min:"1" type:"string" required:"true"` + + // The priority of the task in the Maintenance Window, the lower the number + // the higher the priority. Tasks in a Maintenance Window are scheduled in priority + // order with tasks that have the same priority scheduled in parallel. + Priority *int64 `type:"integer"` + + // The role that should be assumed when executing the task. + // + // ServiceRoleArn is a required field + ServiceRoleArn *string `type:"string" required:"true"` + + // The targets (either instances or tags). Instances are specified using Key=instanceids,Values=,. + // Tags are specified using Key=,Values=. + // + // Targets is a required field + Targets []*Target `type:"list" required:"true"` + + // The ARN of the task to execute + // + // TaskArn is a required field + TaskArn *string `min:"1" type:"string" required:"true"` + + // The parameters that should be passed to the task when it is executed. + TaskParameters map[string]*MaintenanceWindowTaskParameterValueExpression `type:"map"` + + // The type of task being registered. + // + // TaskType is a required field + TaskType *string `type:"string" required:"true" enum:"MaintenanceWindowTaskType"` + + // The id of the Maintenance Window the task should be added to. + // + // WindowId is a required field + WindowId *string `min:"20" type:"string" required:"true"` } // String returns the string representation -func (s DescribeInstanceInformationInput) String() string { +func (s RegisterTaskWithMaintenanceWindowInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeInstanceInformationInput) GoString() string { +func (s RegisterTaskWithMaintenanceWindowInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeInstanceInformationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceInformationInput"} - if s.InstanceInformationFilterList != nil && len(s.InstanceInformationFilterList) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceInformationFilterList", 1)) +func (s *RegisterTaskWithMaintenanceWindowInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RegisterTaskWithMaintenanceWindowInput"} + if s.ClientToken != nil && len(*s.ClientToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) } - if s.MaxResults != nil && *s.MaxResults < 5 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) + if s.MaxConcurrency == nil { + invalidParams.Add(request.NewErrParamRequired("MaxConcurrency")) } - if s.InstanceInformationFilterList != nil { - for i, v := range s.InstanceInformationFilterList { + if s.MaxConcurrency != nil && len(*s.MaxConcurrency) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MaxConcurrency", 1)) + } + if s.MaxErrors == nil { + invalidParams.Add(request.NewErrParamRequired("MaxErrors")) + } + if s.MaxErrors != nil && len(*s.MaxErrors) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MaxErrors", 1)) + } + if s.ServiceRoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceRoleArn")) + } + if s.Targets == nil { + invalidParams.Add(request.NewErrParamRequired("Targets")) + } + if s.TaskArn == nil { + invalidParams.Add(request.NewErrParamRequired("TaskArn")) + } + if s.TaskArn != nil && len(*s.TaskArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TaskArn", 1)) + } + if s.TaskType == nil { + invalidParams.Add(request.NewErrParamRequired("TaskType")) + } + if s.WindowId == nil { + invalidParams.Add(request.NewErrParamRequired("WindowId")) + } + if s.WindowId != nil && len(*s.WindowId) < 20 { + invalidParams.Add(request.NewErrParamMinLen("WindowId", 20)) + } + if s.LoggingInfo != nil { + if err := s.LoggingInfo.Validate(); err != nil { + invalidParams.AddNested("LoggingInfo", err.(request.ErrInvalidParams)) + } + } + if s.Targets != nil { + for i, v := range s.Targets { if v == nil { continue } if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InstanceInformationFilterList", i), err.(request.ErrInvalidParams)) + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Targets", i), err.(request.ErrInvalidParams)) } } } @@ -3488,112 +18400,208 @@ func (s *DescribeInstanceInformationInput) Validate() error { return nil } -type DescribeInstanceInformationOutput struct { - _ struct{} `type:"structure"` +// SetClientToken sets the ClientToken field's value. +func (s *RegisterTaskWithMaintenanceWindowInput) SetClientToken(v string) *RegisterTaskWithMaintenanceWindowInput { + s.ClientToken = &v + return s +} - // The instance information list. - InstanceInformationList []*InstanceInformation `locationNameList:"InstanceInformation" type:"list"` +// SetLoggingInfo sets the LoggingInfo field's value. +func (s *RegisterTaskWithMaintenanceWindowInput) SetLoggingInfo(v *LoggingInfo) *RegisterTaskWithMaintenanceWindowInput { + s.LoggingInfo = v + return s +} - // The token to use when requesting the next set of items. If there are no additional - // items to return, the string is empty. - NextToken *string `type:"string"` +// SetMaxConcurrency sets the MaxConcurrency field's value. +func (s *RegisterTaskWithMaintenanceWindowInput) SetMaxConcurrency(v string) *RegisterTaskWithMaintenanceWindowInput { + s.MaxConcurrency = &v + return s +} + +// SetMaxErrors sets the MaxErrors field's value. +func (s *RegisterTaskWithMaintenanceWindowInput) SetMaxErrors(v string) *RegisterTaskWithMaintenanceWindowInput { + s.MaxErrors = &v + return s +} + +// SetPriority sets the Priority field's value. +func (s *RegisterTaskWithMaintenanceWindowInput) SetPriority(v int64) *RegisterTaskWithMaintenanceWindowInput { + s.Priority = &v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *RegisterTaskWithMaintenanceWindowInput) SetServiceRoleArn(v string) *RegisterTaskWithMaintenanceWindowInput { + s.ServiceRoleArn = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *RegisterTaskWithMaintenanceWindowInput) SetTargets(v []*Target) *RegisterTaskWithMaintenanceWindowInput { + s.Targets = v + return s +} + +// SetTaskArn sets the TaskArn field's value. +func (s *RegisterTaskWithMaintenanceWindowInput) SetTaskArn(v string) *RegisterTaskWithMaintenanceWindowInput { + s.TaskArn = &v + return s +} + +// SetTaskParameters sets the TaskParameters field's value. +func (s *RegisterTaskWithMaintenanceWindowInput) SetTaskParameters(v map[string]*MaintenanceWindowTaskParameterValueExpression) *RegisterTaskWithMaintenanceWindowInput { + s.TaskParameters = v + return s +} + +// SetTaskType sets the TaskType field's value. +func (s *RegisterTaskWithMaintenanceWindowInput) SetTaskType(v string) *RegisterTaskWithMaintenanceWindowInput { + s.TaskType = &v + return s +} + +// SetWindowId sets the WindowId field's value. +func (s *RegisterTaskWithMaintenanceWindowInput) SetWindowId(v string) *RegisterTaskWithMaintenanceWindowInput { + s.WindowId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RegisterTaskWithMaintenanceWindowResult +type RegisterTaskWithMaintenanceWindowOutput struct { + _ struct{} `type:"structure"` + + // The id of the task in the Maintenance Window. + WindowTaskId *string `min:"36" type:"string"` } // String returns the string representation -func (s DescribeInstanceInformationOutput) String() string { +func (s RegisterTaskWithMaintenanceWindowOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeInstanceInformationOutput) GoString() string { +func (s RegisterTaskWithMaintenanceWindowOutput) GoString() string { return s.String() } -// Describes an SSM document. -type DocumentDescription struct { - _ struct{} `type:"structure"` +// SetWindowTaskId sets the WindowTaskId field's value. +func (s *RegisterTaskWithMaintenanceWindowOutput) SetWindowTaskId(v string) *RegisterTaskWithMaintenanceWindowOutput { + s.WindowTaskId = &v + return s +} - // The date when the SSM document was created. - CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RemoveTagsFromResourceRequest +type RemoveTagsFromResourceInput struct { + _ struct{} `type:"structure"` - // A description of the document. - Description *string `type:"string"` + // The resource ID for which you want to remove tags. + // + // ResourceId is a required field + ResourceId *string `type:"string" required:"true"` - // The Sha256 or Sha1 hash created by the system when the document was created. + // The type of resource of which you want to remove a tag. // - // Sha1 hashes have been deprecated. - Hash *string `type:"string"` + // ResourceType is a required field + ResourceType *string `type:"string" required:"true" enum:"ResourceTypeForTagging"` - // Sha256 or Sha1. + // Tag keys that you want to remove from the specified resource. // - // Sha1 hashes have been deprecated. - HashType *string `type:"string" enum:"DocumentHashType"` + // TagKeys is a required field + TagKeys []*string `type:"list" required:"true"` +} - // The name of the SSM document. - Name *string `type:"string"` +// String returns the string representation +func (s RemoveTagsFromResourceInput) String() string { + return awsutil.Prettify(s) +} - // The AWS user account of the person who created the document. - Owner *string `type:"string"` +// GoString returns the string representation +func (s RemoveTagsFromResourceInput) GoString() string { + return s.String() +} - // A description of the parameters for a document. - Parameters []*DocumentParameter `locationNameList:"DocumentParameter" type:"list"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *RemoveTagsFromResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromResourceInput"} + if s.ResourceId == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceId")) + } + if s.ResourceType == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceType")) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } - // The list of OS platforms compatible with this SSM document. - PlatformTypes []*string `locationNameList:"PlatformType" type:"list"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The SHA1 hash of the document, which you can use for verification purposes. - Sha1 *string `type:"string"` +// SetResourceId sets the ResourceId field's value. +func (s *RemoveTagsFromResourceInput) SetResourceId(v string) *RemoveTagsFromResourceInput { + s.ResourceId = &v + return s +} - // The status of the SSM document. - Status *string `type:"string" enum:"DocumentStatus"` +// SetResourceType sets the ResourceType field's value. +func (s *RemoveTagsFromResourceInput) SetResourceType(v string) *RemoveTagsFromResourceInput { + s.ResourceType = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsFromResourceInput) SetTagKeys(v []*string) *RemoveTagsFromResourceInput { + s.TagKeys = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RemoveTagsFromResourceResult +type RemoveTagsFromResourceOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation -func (s DocumentDescription) String() string { +func (s RemoveTagsFromResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DocumentDescription) GoString() string { +func (s RemoveTagsFromResourceOutput) GoString() string { return s.String() -} - -// Describes a filter. -type DocumentFilter struct { - _ struct{} `type:"structure"` - - // The name of the filter. - // - // Key is a required field - Key *string `locationName:"key" type:"string" required:"true" enum:"DocumentFilterKey"` +} - // The value of the filter. +// The inventory item result attribute. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ResultAttribute +type ResultAttribute struct { + _ struct{} `type:"structure"` + + // Name of the inventory item type. Valid value: “AWS:InstanceInformation”. + // Default Value: “AWS:InstanceInformation”. // - // Value is a required field - Value *string `locationName:"value" min:"1" type:"string" required:"true"` + // TypeName is a required field + TypeName *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DocumentFilter) String() string { +func (s ResultAttribute) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DocumentFilter) GoString() string { +func (s ResultAttribute) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DocumentFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DocumentFilter"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) +func (s *ResultAttribute) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ResultAttribute"} + if s.TypeName == nil { + invalidParams.Add(request.NewErrParamRequired("TypeName")) } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - if s.Value != nil && len(*s.Value) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Value", 1)) + if s.TypeName != nil && len(*s.TypeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) } if invalidParams.Len() > 0 { @@ -3602,108 +18610,220 @@ func (s *DocumentFilter) Validate() error { return nil } -// Describes the name of an SSM document. -type DocumentIdentifier struct { +// SetTypeName sets the TypeName field's value. +func (s *ResultAttribute) SetTypeName(v string) *ResultAttribute { + s.TypeName = &v + return s +} + +// An Amazon S3 bucket where you want to store the results of this request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/S3OutputLocation +type S3OutputLocation struct { _ struct{} `type:"structure"` - // The name of the SSM document. - Name *string `type:"string"` + // The name of the Amazon S3 bucket. + OutputS3BucketName *string `min:"3" type:"string"` - // The AWS user account of the person who created the document. - Owner *string `type:"string"` + // The Amazon S3 bucket subfolder. + OutputS3KeyPrefix *string `type:"string"` - // The operating system platform. - PlatformTypes []*string `locationNameList:"PlatformType" type:"list"` + // The Amazon S3 region where the association information is stored. + OutputS3Region *string `min:"3" type:"string"` } // String returns the string representation -func (s DocumentIdentifier) String() string { +func (s S3OutputLocation) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DocumentIdentifier) GoString() string { +func (s S3OutputLocation) GoString() string { return s.String() } -// Parameters specified in the SSM document that execute on the server when -// the command is run. -type DocumentParameter struct { - _ struct{} `type:"structure"` - - // If specified, the default values for the parameters. Parameters without a - // default value are required. Parameters with a default value are optional. - DefaultValue *string `type:"string"` - - // A description of what the parameter does, how to use it, the default value, - // and whether or not the parameter is optional. - Description *string `type:"string"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3OutputLocation) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3OutputLocation"} + if s.OutputS3BucketName != nil && len(*s.OutputS3BucketName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("OutputS3BucketName", 3)) + } + if s.OutputS3Region != nil && len(*s.OutputS3Region) < 3 { + invalidParams.Add(request.NewErrParamMinLen("OutputS3Region", 3)) + } - // The name of the parameter. - Name *string `type:"string"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The type of parameter. The type can be either “String” or “StringList”. - Type *string `type:"string" enum:"DocumentParameterType"` +// SetOutputS3BucketName sets the OutputS3BucketName field's value. +func (s *S3OutputLocation) SetOutputS3BucketName(v string) *S3OutputLocation { + s.OutputS3BucketName = &v + return s } -// String returns the string representation -func (s DocumentParameter) String() string { - return awsutil.Prettify(s) +// SetOutputS3KeyPrefix sets the OutputS3KeyPrefix field's value. +func (s *S3OutputLocation) SetOutputS3KeyPrefix(v string) *S3OutputLocation { + s.OutputS3KeyPrefix = &v + return s } -// GoString returns the string representation -func (s DocumentParameter) GoString() string { - return s.String() +// SetOutputS3Region sets the OutputS3Region field's value. +func (s *S3OutputLocation) SetOutputS3Region(v string) *S3OutputLocation { + s.OutputS3Region = &v + return s } -// Describes a failed association. -type FailedCreateAssociation struct { +// A URL for the Amazon S3 bucket where you want to store the results of this +// request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/S3OutputUrl +type S3OutputUrl struct { _ struct{} `type:"structure"` - // The association. - Entry *CreateAssociationBatchRequestEntry `type:"structure"` - - // The source of the failure. - Fault *string `type:"string" enum:"Fault"` - - // A description of the failure. - Message *string `type:"string"` + // A URL for an Amazon S3 bucket where you want to store the results of this + // request. + OutputUrl *string `type:"string"` } // String returns the string representation -func (s FailedCreateAssociation) String() string { +func (s S3OutputUrl) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s FailedCreateAssociation) GoString() string { +func (s S3OutputUrl) GoString() string { return s.String() } -type GetDocumentInput struct { +// SetOutputUrl sets the OutputUrl field's value. +func (s *S3OutputUrl) SetOutputUrl(v string) *S3OutputUrl { + s.OutputUrl = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/SendCommandRequest +type SendCommandInput struct { _ struct{} `type:"structure"` - // The name of the SSM document. + // User-specified information about the command, such as a brief description + // of what the command should do. + Comment *string `type:"string"` + + // The Sha256 or Sha1 hash created by the system when the document was created. // - // Name is a required field - Name *string `type:"string" required:"true"` + // Sha1 hashes have been deprecated. + DocumentHash *string `type:"string"` + + // Sha256 or Sha1. + // + // Sha1 hashes have been deprecated. + DocumentHashType *string `type:"string" enum:"DocumentHashType"` + + // Required. The name of the SSM document to execute. This can be an SSM public + // document or a custom document. + // + // DocumentName is a required field + DocumentName *string `type:"string" required:"true"` + + // Required. The instance IDs where the command should execute. You can specify + // a maximum of 50 IDs. + InstanceIds []*string `type:"list"` + + // (Optional) The maximum number of instances that are allowed to execute the + // command at the same time. You can specify a number such as “10” or a percentage + // such as “10%”. The default value is 50. For more information about how to + // use MaxConcurrency, see Executing a Command Using Amazon EC2 Run Command + // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/run-command.html) (Linux) + // or Executing a Command Using Amazon EC2 Run Command (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/run-command.html) + // (Windows). + MaxConcurrency *string `min:"1" type:"string"` + + // The maximum number of errors allowed without the command failing. When the + // command fails one more time beyond the value of MaxErrors, the systems stops + // sending the command to additional targets. You can specify a number like + // “10” or a percentage like “10%”. The default value is 50. For more information + // about how to use MaxErrors, see Executing a Command Using Amazon EC2 Run + // Command (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/run-command.html) + // (Linux) or Executing a Command Using Amazon EC2 Run Command (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/run-command.html) + // (Windows). + MaxErrors *string `min:"1" type:"string"` + + // Configurations for sending notifications. + NotificationConfig *NotificationConfig `type:"structure"` + + // The name of the S3 bucket where command execution responses should be stored. + OutputS3BucketName *string `min:"3" type:"string"` + + // The directory structure within the S3 bucket where the responses should be + // stored. + OutputS3KeyPrefix *string `type:"string"` + + // (Optional) The region where the Amazon Simple Storage Service (Amazon S3) + // output bucket is located. The default value is the region where Run Command + // is being called. + OutputS3Region *string `min:"3" type:"string"` + + // The required and optional parameters specified in the SSM document being + // executed. + Parameters map[string][]*string `type:"map"` + + // The IAM role that Systems Manager uses to send notifications. + ServiceRoleArn *string `type:"string"` + + // (Optional) An array of search criteria that targets instances using a Key;Value + // combination that you specify. Targets is required if you don't provide one + // or more instance IDs in the call. For more information about how to use Targets, + // see Executing a Command Using Amazon EC2 Run Command (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/run-command.html) + // (Linux) or Executing a Command Using Amazon EC2 Run Command (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/run-command.html) + // (Windows). + Targets []*Target `type:"list"` + + // If this time is reached and the command has not already started executing, + // it will not execute. + TimeoutSeconds *int64 `min:"30" type:"integer"` } // String returns the string representation -func (s GetDocumentInput) String() string { +func (s SendCommandInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDocumentInput) GoString() string { +func (s SendCommandInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetDocumentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDocumentInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) +func (s *SendCommandInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SendCommandInput"} + if s.DocumentName == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentName")) + } + if s.MaxConcurrency != nil && len(*s.MaxConcurrency) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MaxConcurrency", 1)) + } + if s.MaxErrors != nil && len(*s.MaxErrors) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MaxErrors", 1)) + } + if s.OutputS3BucketName != nil && len(*s.OutputS3BucketName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("OutputS3BucketName", 3)) + } + if s.OutputS3Region != nil && len(*s.OutputS3Region) < 3 { + invalidParams.Add(request.NewErrParamMinLen("OutputS3Region", 3)) + } + if s.TimeoutSeconds != nil && *s.TimeoutSeconds < 30 { + invalidParams.Add(request.NewErrParamMinValue("TimeoutSeconds", 30)) + } + if s.Targets != nil { + for i, v := range s.Targets { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Targets", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -3712,123 +18832,156 @@ func (s *GetDocumentInput) Validate() error { return nil } -type GetDocumentOutput struct { - _ struct{} `type:"structure"` - - // The contents of the SSM document. - Content *string `min:"1" type:"string"` - - // The name of the SSM document. - Name *string `type:"string"` +// SetComment sets the Comment field's value. +func (s *SendCommandInput) SetComment(v string) *SendCommandInput { + s.Comment = &v + return s } -// String returns the string representation -func (s GetDocumentOutput) String() string { - return awsutil.Prettify(s) +// SetDocumentHash sets the DocumentHash field's value. +func (s *SendCommandInput) SetDocumentHash(v string) *SendCommandInput { + s.DocumentHash = &v + return s } -// GoString returns the string representation -func (s GetDocumentOutput) GoString() string { - return s.String() +// SetDocumentHashType sets the DocumentHashType field's value. +func (s *SendCommandInput) SetDocumentHashType(v string) *SendCommandInput { + s.DocumentHashType = &v + return s } -// Describes a filter for a specific list of instances. -type InstanceInformation struct { - _ struct{} `type:"structure"` - - // The activation ID created by SSM when the server or VM was registered. - ActivationId *string `type:"string"` - - // The version of the SSM agent running on your Linux instance. - AgentVersion *string `type:"string"` +// SetDocumentName sets the DocumentName field's value. +func (s *SendCommandInput) SetDocumentName(v string) *SendCommandInput { + s.DocumentName = &v + return s +} - // The fully qualified host name of the managed instance. - ComputerName *string `min:"1" type:"string"` +// SetInstanceIds sets the InstanceIds field's value. +func (s *SendCommandInput) SetInstanceIds(v []*string) *SendCommandInput { + s.InstanceIds = v + return s +} - // The IP address of the managed instance. - IPAddress *string `min:"1" type:"string"` +// SetMaxConcurrency sets the MaxConcurrency field's value. +func (s *SendCommandInput) SetMaxConcurrency(v string) *SendCommandInput { + s.MaxConcurrency = &v + return s +} - // The Amazon Identity and Access Management (IAM) role assigned to EC2 instances - // or managed instances. - IamRole *string `type:"string"` +// SetMaxErrors sets the MaxErrors field's value. +func (s *SendCommandInput) SetMaxErrors(v string) *SendCommandInput { + s.MaxErrors = &v + return s +} - // The instance ID. - InstanceId *string `type:"string"` +// SetNotificationConfig sets the NotificationConfig field's value. +func (s *SendCommandInput) SetNotificationConfig(v *NotificationConfig) *SendCommandInput { + s.NotificationConfig = v + return s +} - // Indicates whether latest version of the SSM agent is running on your instance. - IsLatestVersion *bool `type:"boolean"` +// SetOutputS3BucketName sets the OutputS3BucketName field's value. +func (s *SendCommandInput) SetOutputS3BucketName(v string) *SendCommandInput { + s.OutputS3BucketName = &v + return s +} - // The date and time when agent last pinged SSM service. - LastPingDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` +// SetOutputS3KeyPrefix sets the OutputS3KeyPrefix field's value. +func (s *SendCommandInput) SetOutputS3KeyPrefix(v string) *SendCommandInput { + s.OutputS3KeyPrefix = &v + return s +} - // The name of the managed instance. - Name *string `type:"string"` +// SetOutputS3Region sets the OutputS3Region field's value. +func (s *SendCommandInput) SetOutputS3Region(v string) *SendCommandInput { + s.OutputS3Region = &v + return s +} - // Connection status of the SSM agent. - PingStatus *string `type:"string" enum:"PingStatus"` +// SetParameters sets the Parameters field's value. +func (s *SendCommandInput) SetParameters(v map[string][]*string) *SendCommandInput { + s.Parameters = v + return s +} - // The name of the operating system platform running on your instance. - PlatformName *string `type:"string"` +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *SendCommandInput) SetServiceRoleArn(v string) *SendCommandInput { + s.ServiceRoleArn = &v + return s +} - // The operating system platform type. - PlatformType *string `type:"string" enum:"PlatformType"` +// SetTargets sets the Targets field's value. +func (s *SendCommandInput) SetTargets(v []*Target) *SendCommandInput { + s.Targets = v + return s +} - // The version of the OS platform running on your instance. - PlatformVersion *string `type:"string"` +// SetTimeoutSeconds sets the TimeoutSeconds field's value. +func (s *SendCommandInput) SetTimeoutSeconds(v int64) *SendCommandInput { + s.TimeoutSeconds = &v + return s +} - // The date the server or VM was registered with AWS as a managed instance. - RegistrationDate *time.Time `type:"timestamp" timestampFormat:"unix"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/SendCommandResult +type SendCommandOutput struct { + _ struct{} `type:"structure"` - // The type of instance. Instances are either EC2 instances or managed instances. - ResourceType *string `type:"string" enum:"ResourceType"` + // The request as it was received by Systems Manager. Also provides the command + // ID which can be used future references to this request. + Command *Command `type:"structure"` } // String returns the string representation -func (s InstanceInformation) String() string { +func (s SendCommandOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InstanceInformation) GoString() string { +func (s SendCommandOutput) GoString() string { return s.String() } -// Describes a filter for a specific list of instances. -type InstanceInformationFilter struct { +// SetCommand sets the Command field's value. +func (s *SendCommandOutput) SetCommand(v *Command) *SendCommandOutput { + s.Command = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/StartAutomationExecutionRequest +type StartAutomationExecutionInput struct { _ struct{} `type:"structure"` - // The name of the filter. + // The name of the Automation document to use for this execution. // - // Key is a required field - Key *string `locationName:"key" type:"string" required:"true" enum:"InstanceInformationFilterKey"` + // DocumentName is a required field + DocumentName *string `type:"string" required:"true"` - // The filter values. - // - // ValueSet is a required field - ValueSet []*string `locationName:"valueSet" locationNameList:"InstanceInformationFilterValue" min:"1" type:"list" required:"true"` + // The version of the Automation document to use for this execution. + DocumentVersion *string `type:"string"` + + // A key-value map of execution parameters, which match the declared parameters + // in the Automation document. + Parameters map[string][]*string `min:"1" type:"map"` } // String returns the string representation -func (s InstanceInformationFilter) String() string { +func (s StartAutomationExecutionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InstanceInformationFilter) GoString() string { +func (s StartAutomationExecutionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *InstanceInformationFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InstanceInformationFilter"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.ValueSet == nil { - invalidParams.Add(request.NewErrParamRequired("ValueSet")) +func (s *StartAutomationExecutionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartAutomationExecutionInput"} + if s.DocumentName == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentName")) } - if s.ValueSet != nil && len(s.ValueSet) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ValueSet", 1)) + if s.Parameters != nil && len(s.Parameters) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Parameters", 1)) } if invalidParams.Len() > 0 { @@ -3837,142 +18990,186 @@ func (s *InstanceInformationFilter) Validate() error { return nil } -type ListAssociationsInput struct { - _ struct{} `type:"structure"` +// SetDocumentName sets the DocumentName field's value. +func (s *StartAutomationExecutionInput) SetDocumentName(v string) *StartAutomationExecutionInput { + s.DocumentName = &v + return s +} - // One or more filters. Use a filter to return a more specific list of results. - // - // AssociationFilterList is a required field - AssociationFilterList []*AssociationFilter `locationNameList:"AssociationFilter" min:"1" type:"list" required:"true"` +// SetDocumentVersion sets the DocumentVersion field's value. +func (s *StartAutomationExecutionInput) SetDocumentVersion(v string) *StartAutomationExecutionInput { + s.DocumentVersion = &v + return s +} - // The maximum number of items to return for this call. The call also returns - // a token that you can specify in a subsequent call to get the next set of - // results. - MaxResults *int64 `min:"1" type:"integer"` +// SetParameters sets the Parameters field's value. +func (s *StartAutomationExecutionInput) SetParameters(v map[string][]*string) *StartAutomationExecutionInput { + s.Parameters = v + return s +} - // The token for the next set of items to return. (You received this token from - // a previous call.) - NextToken *string `type:"string"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/StartAutomationExecutionResult +type StartAutomationExecutionOutput struct { + _ struct{} `type:"structure"` + + // The unique ID of a newly scheduled automation execution. + AutomationExecutionId *string `min:"36" type:"string"` } // String returns the string representation -func (s ListAssociationsInput) String() string { +func (s StartAutomationExecutionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListAssociationsInput) GoString() string { +func (s StartAutomationExecutionOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListAssociationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAssociationsInput"} - if s.AssociationFilterList == nil { - invalidParams.Add(request.NewErrParamRequired("AssociationFilterList")) - } - if s.AssociationFilterList != nil && len(s.AssociationFilterList) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssociationFilterList", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.AssociationFilterList != nil { - for i, v := range s.AssociationFilterList { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AssociationFilterList", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetAutomationExecutionId sets the AutomationExecutionId field's value. +func (s *StartAutomationExecutionOutput) SetAutomationExecutionId(v string) *StartAutomationExecutionOutput { + s.AutomationExecutionId = &v + return s } -type ListAssociationsOutput struct { +// Detailed information about an the execution state of an Automation step. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/StepExecution +type StepExecution struct { _ struct{} `type:"structure"` - // The associations. - Associations []*Association `locationNameList:"Association" type:"list"` + // The action this step performs. The action determines the behavior of the + // step. + Action *string `type:"string"` - // The token to use when requesting the next set of items. If there are no additional - // items to return, the string is empty. - NextToken *string `type:"string"` + // If a step has finished execution, this contains the time the execution ended. + // If the step has not yet concluded, this field is not populated. + ExecutionEndTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // If a step has begun execution, this contains the time the step started. If + // the step is in Pending status, this field is not populated. + ExecutionStartTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // If a step failed, this message explains why the execution failed. + FailureMessage *string `type:"string"` + + // Fully-resolved values passed into the step before execution. + Inputs map[string]*string `type:"map"` + + // Returned values from the execution of the step. + Outputs map[string][]*string `min:"1" type:"map"` + + // A message associated with the response code for an execution. + Response *string `type:"string"` + + // The response code returned by the execution of the step. + ResponseCode *string `type:"string"` + + // The name of this execution step. + StepName *string `type:"string"` + + // The execution status for this step. Valid values include: Pending, InProgress, + // Success, Cancelled, Failed, and TimedOut. + StepStatus *string `type:"string" enum:"AutomationExecutionStatus"` } // String returns the string representation -func (s ListAssociationsOutput) String() string { +func (s StepExecution) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListAssociationsOutput) GoString() string { +func (s StepExecution) GoString() string { return s.String() } -type ListCommandInvocationsInput struct { - _ struct{} `type:"structure"` +// SetAction sets the Action field's value. +func (s *StepExecution) SetAction(v string) *StepExecution { + s.Action = &v + return s +} - // (Optional) The invocations for a specific command ID. - CommandId *string `min:"36" type:"string"` +// SetExecutionEndTime sets the ExecutionEndTime field's value. +func (s *StepExecution) SetExecutionEndTime(v time.Time) *StepExecution { + s.ExecutionEndTime = &v + return s +} - // (Optional) If set this returns the response of the command executions and - // any command output. By default this is set to False. - Details *bool `type:"boolean"` +// SetExecutionStartTime sets the ExecutionStartTime field's value. +func (s *StepExecution) SetExecutionStartTime(v time.Time) *StepExecution { + s.ExecutionStartTime = &v + return s +} - // (Optional) One or more filters. Use a filter to return a more specific list - // of results. - Filters []*CommandFilter `min:"1" type:"list"` +// SetFailureMessage sets the FailureMessage field's value. +func (s *StepExecution) SetFailureMessage(v string) *StepExecution { + s.FailureMessage = &v + return s +} - // (Optional) The command execution details for a specific instance ID. - InstanceId *string `type:"string"` +// SetInputs sets the Inputs field's value. +func (s *StepExecution) SetInputs(v map[string]*string) *StepExecution { + s.Inputs = v + return s +} - // (Optional) The maximum number of items to return for this call. The call - // also returns a token that you can specify in a subsequent call to get the - // next set of results. - MaxResults *int64 `min:"1" type:"integer"` +// SetOutputs sets the Outputs field's value. +func (s *StepExecution) SetOutputs(v map[string][]*string) *StepExecution { + s.Outputs = v + return s +} - // (Optional) The token for the next set of items to return. (You received this - // token from a previous call.) - NextToken *string `type:"string"` +// SetResponse sets the Response field's value. +func (s *StepExecution) SetResponse(v string) *StepExecution { + s.Response = &v + return s +} + +// SetResponseCode sets the ResponseCode field's value. +func (s *StepExecution) SetResponseCode(v string) *StepExecution { + s.ResponseCode = &v + return s +} + +// SetStepName sets the StepName field's value. +func (s *StepExecution) SetStepName(v string) *StepExecution { + s.StepName = &v + return s +} + +// SetStepStatus sets the StepStatus field's value. +func (s *StepExecution) SetStepStatus(v string) *StepExecution { + s.StepStatus = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/StopAutomationExecutionRequest +type StopAutomationExecutionInput struct { + _ struct{} `type:"structure"` + + // The execution ID of the Automation to stop. + // + // AutomationExecutionId is a required field + AutomationExecutionId *string `min:"36" type:"string" required:"true"` } // String returns the string representation -func (s ListCommandInvocationsInput) String() string { +func (s StopAutomationExecutionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListCommandInvocationsInput) GoString() string { +func (s StopAutomationExecutionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListCommandInvocationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListCommandInvocationsInput"} - if s.CommandId != nil && len(*s.CommandId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("CommandId", 36)) - } - if s.Filters != nil && len(s.Filters) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *StopAutomationExecutionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopAutomationExecutionInput"} + if s.AutomationExecutionId == nil { + invalidParams.Add(request.NewErrParamRequired("AutomationExecutionId")) } - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } + if s.AutomationExecutionId != nil && len(*s.AutomationExecutionId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("AutomationExecutionId", 36)) } if invalidParams.Len() > 0 { @@ -3981,81 +19178,69 @@ func (s *ListCommandInvocationsInput) Validate() error { return nil } -type ListCommandInvocationsOutput struct { - _ struct{} `type:"structure"` - - // (Optional) A list of all invocations. - CommandInvocations []*CommandInvocation `type:"list"` +// SetAutomationExecutionId sets the AutomationExecutionId field's value. +func (s *StopAutomationExecutionInput) SetAutomationExecutionId(v string) *StopAutomationExecutionInput { + s.AutomationExecutionId = &v + return s +} - // (Optional) The token for the next set of items to return. (You received this - // token from a previous call.) - NextToken *string `type:"string"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/StopAutomationExecutionResult +type StopAutomationExecutionOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation -func (s ListCommandInvocationsOutput) String() string { +func (s StopAutomationExecutionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListCommandInvocationsOutput) GoString() string { +func (s StopAutomationExecutionOutput) GoString() string { return s.String() } -type ListCommandsInput struct { +// Metadata that you assign to your managed instances. Tags enable you to categorize +// your managed instances in different ways, for example, by purpose, owner, +// or environment. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/Tag +type Tag struct { _ struct{} `type:"structure"` - // (Optional) If provided, lists only the specified command. - CommandId *string `min:"36" type:"string"` - - // (Optional) One or more filters. Use a filter to return a more specific list - // of results. - Filters []*CommandFilter `min:"1" type:"list"` - - // (Optional) Lists commands issued against this instance ID. - InstanceId *string `type:"string"` - - // (Optional) The maximum number of items to return for this call. The call - // also returns a token that you can specify in a subsequent call to get the - // next set of results. - MaxResults *int64 `min:"1" type:"integer"` + // The name of the tag. + // + // Key is a required field + Key *string `min:"1" type:"string" required:"true"` - // (Optional) The token for the next set of items to return. (You received this - // token from a previous call.) - NextToken *string `type:"string"` + // The value of the tag. + // + // Value is a required field + Value *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ListCommandsInput) String() string { +func (s Tag) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListCommandsInput) GoString() string { +func (s Tag) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListCommandsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListCommandsInput"} - if s.CommandId != nil && len(*s.CommandId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("CommandId", 36)) +func (s *Tag) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Tag"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) } - if s.Filters != nil && len(s.Filters) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) } - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } + if s.Value != nil && len(*s.Value) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Value", 1)) } if invalidParams.Len() > 0 { @@ -4064,70 +19249,131 @@ func (s *ListCommandsInput) Validate() error { return nil } -type ListCommandsOutput struct { - _ struct{} `type:"structure"` +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} - // (Optional) The list of commands requested by the user. - Commands []*Command `type:"list"` +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} - // (Optional) The token for the next set of items to return. (You received this - // token from a previous call.) - NextToken *string `type:"string"` +// An array of search criteria that targets instances using a Key;Value combination +// that you specify. Targets is required if you don't provide one or more instance +// IDs in the call. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/Target +type Target struct { + _ struct{} `type:"structure"` + + // User-defined criteria for sending commands that target instances that meet + // the criteria. Key can be tag: or name:. For example, tag:ServerRole or name:0123456789012345. For more information + // about how to send commands that target instances using Key;Value parameters, + // see Executing a Command Using Amazon EC2 Run Command (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/run-command.html) + // (Linux) or Executing a Command Using Amazon EC2 Run Command (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/run-command.html) + // (Windows). + Key *string `min:"1" type:"string"` + + // User-defined criteria that maps to Key. For example, if you specified tag:ServerRole, + // you could specify value:WebServer to execute a command on instances that + // include Amazon EC2 tags of ServerRole;WebServer. For more information about + // how to send commands that target instances using Key;Value parameters, see + // Executing a Command Using Amazon EC2 Run Command (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/run-command.html) + // (Linux) or Executing a Command Using Amazon EC2 Run Command (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/run-command.html) + // (Windows). + Values []*string `type:"list"` } // String returns the string representation -func (s ListCommandsOutput) String() string { +func (s Target) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListCommandsOutput) GoString() string { +func (s Target) GoString() string { return s.String() } -type ListDocumentsInput struct { +// Validate inspects the fields of the type to determine if they are valid. +func (s *Target) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Target"} + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *Target) SetKey(v string) *Target { + s.Key = &v + return s +} + +// SetValues sets the Values field's value. +func (s *Target) SetValues(v []*string) *Target { + s.Values = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateAssociationRequest +type UpdateAssociationInput struct { _ struct{} `type:"structure"` - // One or more filters. Use a filter to return a more specific list of results. - DocumentFilterList []*DocumentFilter `locationNameList:"DocumentFilter" min:"1" type:"list"` + // The ID of the association you want to update. + // + // AssociationId is a required field + AssociationId *string `type:"string" required:"true"` - // The maximum number of items to return for this call. The call also returns - // a token that you can specify in a subsequent call to get the next set of - // results. - MaxResults *int64 `min:"1" type:"integer"` + // The document version you want update for the association. + DocumentVersion *string `type:"string"` - // The token for the next set of items to return. (You received this token from - // a previous call.) - NextToken *string `type:"string"` + // An Amazon S3 bucket where you want to store the results of this request. + // + // "{ \"S3Location\": { \"OutputS3Region\": \"\", \"OutputS3BucketName\": + // \"bucket name\", \"OutputS3KeyPrefix\": \"folder name\" } }" + OutputLocation *InstanceAssociationOutputLocation `type:"structure"` + + // The parameters you want to update for the association. If you create a parameter + // using Parameter Store, you can reference the parameter using {{ssm:parameter-name}} + Parameters map[string][]*string `type:"map"` + + // The cron expression used to schedule the association that you want to update. + // Supported expressions are every half, 1, 2, 4, 8 or 12 hour(s); every specified + // day and time of the week. For example: cron(0 0/30 * 1/1 * ? *) to run every + // thirty minutes; cron(0 0 0/4 1/1 * ? *) to run every four hours; and cron(0 + // 0 10 ? * SUN *) to run every Sunday at 10 a.m. + ScheduleExpression *string `min:"1" type:"string"` } // String returns the string representation -func (s ListDocumentsInput) String() string { +func (s UpdateAssociationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListDocumentsInput) GoString() string { +func (s UpdateAssociationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListDocumentsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListDocumentsInput"} - if s.DocumentFilterList != nil && len(s.DocumentFilterList) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DocumentFilterList", 1)) +func (s *UpdateAssociationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateAssociationInput"} + if s.AssociationId == nil { + invalidParams.Add(request.NewErrParamRequired("AssociationId")) } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + if s.ScheduleExpression != nil && len(*s.ScheduleExpression) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ScheduleExpression", 1)) } - if s.DocumentFilterList != nil { - for i, v := range s.DocumentFilterList { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DocumentFilterList", i), err.(request.ErrInvalidParams)) - } + if s.OutputLocation != nil { + if err := s.OutputLocation.Validate(); err != nil { + invalidParams.AddNested("OutputLocation", err.(request.ErrInvalidParams)) } } @@ -4137,59 +19383,106 @@ func (s *ListDocumentsInput) Validate() error { return nil } -type ListDocumentsOutput struct { - _ struct{} `type:"structure"` +// SetAssociationId sets the AssociationId field's value. +func (s *UpdateAssociationInput) SetAssociationId(v string) *UpdateAssociationInput { + s.AssociationId = &v + return s +} - // The names of the SSM documents. - DocumentIdentifiers []*DocumentIdentifier `locationNameList:"DocumentIdentifier" type:"list"` +// SetDocumentVersion sets the DocumentVersion field's value. +func (s *UpdateAssociationInput) SetDocumentVersion(v string) *UpdateAssociationInput { + s.DocumentVersion = &v + return s +} - // The token to use when requesting the next set of items. If there are no additional - // items to return, the string is empty. - NextToken *string `type:"string"` +// SetOutputLocation sets the OutputLocation field's value. +func (s *UpdateAssociationInput) SetOutputLocation(v *InstanceAssociationOutputLocation) *UpdateAssociationInput { + s.OutputLocation = v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *UpdateAssociationInput) SetParameters(v map[string][]*string) *UpdateAssociationInput { + s.Parameters = v + return s +} + +// SetScheduleExpression sets the ScheduleExpression field's value. +func (s *UpdateAssociationInput) SetScheduleExpression(v string) *UpdateAssociationInput { + s.ScheduleExpression = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateAssociationResult +type UpdateAssociationOutput struct { + _ struct{} `type:"structure"` + + // The description of the association that was updated. + AssociationDescription *AssociationDescription `type:"structure"` } // String returns the string representation -func (s ListDocumentsOutput) String() string { +func (s UpdateAssociationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListDocumentsOutput) GoString() string { +func (s UpdateAssociationOutput) GoString() string { return s.String() } -type ListTagsForResourceInput struct { +// SetAssociationDescription sets the AssociationDescription field's value. +func (s *UpdateAssociationOutput) SetAssociationDescription(v *AssociationDescription) *UpdateAssociationOutput { + s.AssociationDescription = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateAssociationStatusRequest +type UpdateAssociationStatusInput struct { _ struct{} `type:"structure"` - // The resource ID for which you want to see a list of tags. + // The association status. // - // ResourceId is a required field - ResourceId *string `type:"string" required:"true"` + // AssociationStatus is a required field + AssociationStatus *AssociationStatus `type:"structure" required:"true"` - // Returns a list of tags for a specific resource type. + // The ID of the instance. // - // ResourceType is a required field - ResourceType *string `type:"string" required:"true" enum:"ResourceTypeForTagging"` + // InstanceId is a required field + InstanceId *string `type:"string" required:"true"` + + // The name of the SSM document. + // + // Name is a required field + Name *string `type:"string" required:"true"` } // String returns the string representation -func (s ListTagsForResourceInput) String() string { +func (s UpdateAssociationStatusInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTagsForResourceInput) GoString() string { +func (s UpdateAssociationStatusInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsForResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) +func (s *UpdateAssociationStatusInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateAssociationStatusInput"} + if s.AssociationStatus == nil { + invalidParams.Add(request.NewErrParamRequired("AssociationStatus")) } - if s.ResourceType == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceType")) + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.AssociationStatus != nil { + if err := s.AssociationStatus.Validate(); err != nil { + invalidParams.AddNested("AssociationStatus", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -4198,66 +19491,82 @@ func (s *ListTagsForResourceInput) Validate() error { return nil } -type ListTagsForResourceOutput struct { +// SetAssociationStatus sets the AssociationStatus field's value. +func (s *UpdateAssociationStatusInput) SetAssociationStatus(v *AssociationStatus) *UpdateAssociationStatusInput { + s.AssociationStatus = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *UpdateAssociationStatusInput) SetInstanceId(v string) *UpdateAssociationStatusInput { + s.InstanceId = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateAssociationStatusInput) SetName(v string) *UpdateAssociationStatusInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateAssociationStatusResult +type UpdateAssociationStatusOutput struct { _ struct{} `type:"structure"` - // A list of tags. - TagList []*Tag `type:"list"` + // Information about the association. + AssociationDescription *AssociationDescription `type:"structure"` } // String returns the string representation -func (s ListTagsForResourceOutput) String() string { +func (s UpdateAssociationStatusOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTagsForResourceOutput) GoString() string { +func (s UpdateAssociationStatusOutput) GoString() string { return s.String() } -type ModifyDocumentPermissionInput struct { - _ struct{} `type:"structure"` +// SetAssociationDescription sets the AssociationDescription field's value. +func (s *UpdateAssociationStatusOutput) SetAssociationDescription(v *AssociationDescription) *UpdateAssociationStatusOutput { + s.AssociationDescription = v + return s +} - // The AWS user accounts that should have access to the document. The account - // IDs can either be a group of account IDs or All. - AccountIdsToAdd []*string `locationNameList:"AccountId" type:"list"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateDocumentDefaultVersionRequest +type UpdateDocumentDefaultVersionInput struct { + _ struct{} `type:"structure"` - // The AWS user accounts that should no longer have access to the document. - // The AWS user account can either be a group of account IDs or All. This action - // has a higher priority than AccountIdsToAdd. If you specify an account ID - // to add and the same ID to remove, the system removes access to the document. - AccountIdsToRemove []*string `locationNameList:"AccountId" type:"list"` + // The version of a custom document that you want to set as the default version. + // + // DocumentVersion is a required field + DocumentVersion *string `type:"string" required:"true"` - // The name of the document that you want to share. + // The name of a custom document that you want to set as the default version. // // Name is a required field Name *string `type:"string" required:"true"` - - // The permission type for the document. The permission type can be Share. - // - // PermissionType is a required field - PermissionType *string `type:"string" required:"true" enum:"DocumentPermissionType"` } // String returns the string representation -func (s ModifyDocumentPermissionInput) String() string { +func (s UpdateDocumentDefaultVersionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ModifyDocumentPermissionInput) GoString() string { +func (s UpdateDocumentDefaultVersionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyDocumentPermissionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyDocumentPermissionInput"} +func (s *UpdateDocumentDefaultVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateDocumentDefaultVersionInput"} + if s.DocumentVersion == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentVersion")) + } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } - if s.PermissionType == nil { - invalidParams.Add(request.NewErrParamRequired("PermissionType")) - } if invalidParams.Len() > 0 { return invalidParams @@ -4265,90 +19574,82 @@ func (s *ModifyDocumentPermissionInput) Validate() error { return nil } -type ModifyDocumentPermissionOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s ModifyDocumentPermissionOutput) String() string { - return awsutil.Prettify(s) +// SetDocumentVersion sets the DocumentVersion field's value. +func (s *UpdateDocumentDefaultVersionInput) SetDocumentVersion(v string) *UpdateDocumentDefaultVersionInput { + s.DocumentVersion = &v + return s } -// GoString returns the string representation -func (s ModifyDocumentPermissionOutput) GoString() string { - return s.String() +// SetName sets the Name field's value. +func (s *UpdateDocumentDefaultVersionInput) SetName(v string) *UpdateDocumentDefaultVersionInput { + s.Name = &v + return s } -// Configurations for sending notifications. -type NotificationConfig struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateDocumentDefaultVersionResult +type UpdateDocumentDefaultVersionOutput struct { _ struct{} `type:"structure"` - // An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic. - // SSM pushes notifications about command status changes to this topic. - NotificationArn *string `type:"string"` - - // The different events for which you can receive notifications. These events - // include the following: All (events), InProgress, Success, TimedOut, Cancelled, - // Failed. To learn more about these events, see Monitoring Commands (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitor-commands.html) - // in the Amazon Elastic Compute Cloud User Guide . - NotificationEvents []*string `type:"list"` - - // Command: Receive notification when the status of a command changes. Invocation: - // For commands sent to multiple instances, receive notification on a per-instance - // basis when the status of a command changes. - NotificationType *string `type:"string" enum:"NotificationType"` + // The description of a custom document that you want to set as the default + // version. + Description *DocumentDefaultVersionDescription `type:"structure"` } // String returns the string representation -func (s NotificationConfig) String() string { +func (s UpdateDocumentDefaultVersionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s NotificationConfig) GoString() string { +func (s UpdateDocumentDefaultVersionOutput) GoString() string { return s.String() } -type RemoveTagsFromResourceInput struct { +// SetDescription sets the Description field's value. +func (s *UpdateDocumentDefaultVersionOutput) SetDescription(v *DocumentDefaultVersionDescription) *UpdateDocumentDefaultVersionOutput { + s.Description = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateDocumentRequest +type UpdateDocumentInput struct { _ struct{} `type:"structure"` - // The resource ID for which you want to remove tags. + // The content in a document that you want to update. // - // ResourceId is a required field - ResourceId *string `type:"string" required:"true"` + // Content is a required field + Content *string `min:"1" type:"string" required:"true"` - // The type of resource of which you want to remove a tag. - // - // ResourceType is a required field - ResourceType *string `type:"string" required:"true" enum:"ResourceTypeForTagging"` + // The version of the document that you want to update. + DocumentVersion *string `type:"string"` - // Tag keys that you want to remove from the specified resource. + // The name of the document that you want to update. // - // TagKeys is a required field - TagKeys []*string `type:"list" required:"true"` + // Name is a required field + Name *string `type:"string" required:"true"` } // String returns the string representation -func (s RemoveTagsFromResourceInput) String() string { +func (s UpdateDocumentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RemoveTagsFromResourceInput) GoString() string { +func (s UpdateDocumentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveTagsFromResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromResourceInput"} - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) +func (s *UpdateDocumentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateDocumentInput"} + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) } - if s.ResourceType == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceType")) + if s.Content != nil && len(*s.Content) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Content", 1)) } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) } if invalidParams.Len() > 0 { @@ -4357,98 +19658,105 @@ func (s *RemoveTagsFromResourceInput) Validate() error { return nil } -type RemoveTagsFromResourceOutput struct { +// SetContent sets the Content field's value. +func (s *UpdateDocumentInput) SetContent(v string) *UpdateDocumentInput { + s.Content = &v + return s +} + +// SetDocumentVersion sets the DocumentVersion field's value. +func (s *UpdateDocumentInput) SetDocumentVersion(v string) *UpdateDocumentInput { + s.DocumentVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateDocumentInput) SetName(v string) *UpdateDocumentInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateDocumentResult +type UpdateDocumentOutput struct { _ struct{} `type:"structure"` + + // A description of the document that was updated. + DocumentDescription *DocumentDescription `type:"structure"` } // String returns the string representation -func (s RemoveTagsFromResourceOutput) String() string { +func (s UpdateDocumentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RemoveTagsFromResourceOutput) GoString() string { +func (s UpdateDocumentOutput) GoString() string { return s.String() } -type SendCommandInput struct { - _ struct{} `type:"structure"` - - // User-specified information about the command, such as a brief description - // of what the command should do. - Comment *string `type:"string"` - - // The Sha256 or Sha1 hash created by the system when the document was created. - // - // Sha1 hashes have been deprecated. - DocumentHash *string `type:"string"` - - // Sha256 or Sha1. - // - // Sha1 hashes have been deprecated. - DocumentHashType *string `type:"string" enum:"DocumentHashType"` +// SetDocumentDescription sets the DocumentDescription field's value. +func (s *UpdateDocumentOutput) SetDocumentDescription(v *DocumentDescription) *UpdateDocumentOutput { + s.DocumentDescription = v + return s +} - // Required. The name of the SSM document to execute. This can be an SSM public - // document or a custom document. - // - // DocumentName is a required field - DocumentName *string `type:"string" required:"true"` +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateMaintenanceWindowRequest +type UpdateMaintenanceWindowInput struct { + _ struct{} `type:"structure"` - // Required. The instance IDs where the command should execute. You can specify - // a maximum of 50 IDs. - // - // InstanceIds is a required field - InstanceIds []*string `min:"1" type:"list" required:"true"` + // Whether targets must be registered with the Maintenance Window before tasks + // can be defined for those targets. + AllowUnassociatedTargets *bool `type:"boolean"` - // Configurations for sending notifications. - NotificationConfig *NotificationConfig `type:"structure"` + // The number of hours before the end of the Maintenance Window that Systems + // Manager stops scheduling new tasks for execution. + Cutoff *int64 `type:"integer"` - // The name of the S3 bucket where command execution responses should be stored. - OutputS3BucketName *string `min:"3" type:"string"` + // The duration of the Maintenance Window in hours. + Duration *int64 `min:"1" type:"integer"` - // The directory structure within the S3 bucket where the responses should be - // stored. - OutputS3KeyPrefix *string `type:"string"` + // Whether the Maintenance Window is enabled. + Enabled *bool `type:"boolean"` - // The required and optional parameters specified in the SSM document being - // executed. - Parameters map[string][]*string `type:"map"` + // The name of the Maintenance Window. + Name *string `min:"3" type:"string"` - // The IAM role that SSM uses to send notifications. - ServiceRoleArn *string `type:"string"` + // The schedule of the Maintenance Window in the form of a cron or rate expression. + Schedule *string `min:"1" type:"string"` - // If this time is reached and the command has not already started executing, - // it will not execute. - TimeoutSeconds *int64 `min:"30" type:"integer"` + // The ID of the Maintenance Window to update. + // + // WindowId is a required field + WindowId *string `min:"20" type:"string" required:"true"` } // String returns the string representation -func (s SendCommandInput) String() string { +func (s UpdateMaintenanceWindowInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SendCommandInput) GoString() string { +func (s UpdateMaintenanceWindowInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *SendCommandInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SendCommandInput"} - if s.DocumentName == nil { - invalidParams.Add(request.NewErrParamRequired("DocumentName")) +func (s *UpdateMaintenanceWindowInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateMaintenanceWindowInput"} + if s.Duration != nil && *s.Duration < 1 { + invalidParams.Add(request.NewErrParamMinValue("Duration", 1)) } - if s.InstanceIds == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceIds")) + if s.Name != nil && len(*s.Name) < 3 { + invalidParams.Add(request.NewErrParamMinLen("Name", 3)) } - if s.InstanceIds != nil && len(s.InstanceIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceIds", 1)) + if s.Schedule != nil && len(*s.Schedule) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Schedule", 1)) } - if s.OutputS3BucketName != nil && len(*s.OutputS3BucketName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("OutputS3BucketName", 3)) + if s.WindowId == nil { + invalidParams.Add(request.NewErrParamRequired("WindowId")) } - if s.TimeoutSeconds != nil && *s.TimeoutSeconds < 30 { - invalidParams.Add(request.NewErrParamMinValue("TimeoutSeconds", 30)) + if s.WindowId != nil && len(*s.WindowId) < 20 { + invalidParams.Add(request.NewErrParamMinLen("WindowId", 20)) } if invalidParams.Len() > 0 { @@ -4457,119 +19765,162 @@ func (s *SendCommandInput) Validate() error { return nil } -type SendCommandOutput struct { - _ struct{} `type:"structure"` +// SetAllowUnassociatedTargets sets the AllowUnassociatedTargets field's value. +func (s *UpdateMaintenanceWindowInput) SetAllowUnassociatedTargets(v bool) *UpdateMaintenanceWindowInput { + s.AllowUnassociatedTargets = &v + return s +} - // The request as it was received by SSM. Also provides the command ID which - // can be used future references to this request. - Command *Command `type:"structure"` +// SetCutoff sets the Cutoff field's value. +func (s *UpdateMaintenanceWindowInput) SetCutoff(v int64) *UpdateMaintenanceWindowInput { + s.Cutoff = &v + return s } -// String returns the string representation -func (s SendCommandOutput) String() string { - return awsutil.Prettify(s) +// SetDuration sets the Duration field's value. +func (s *UpdateMaintenanceWindowInput) SetDuration(v int64) *UpdateMaintenanceWindowInput { + s.Duration = &v + return s } -// GoString returns the string representation -func (s SendCommandOutput) GoString() string { - return s.String() +// SetEnabled sets the Enabled field's value. +func (s *UpdateMaintenanceWindowInput) SetEnabled(v bool) *UpdateMaintenanceWindowInput { + s.Enabled = &v + return s } -// Metadata that you assign to your managed instances. Tags enable you to categorize -// your managed instances in different ways, for example, by purpose, owner, -// or environment. -type Tag struct { +// SetName sets the Name field's value. +func (s *UpdateMaintenanceWindowInput) SetName(v string) *UpdateMaintenanceWindowInput { + s.Name = &v + return s +} + +// SetSchedule sets the Schedule field's value. +func (s *UpdateMaintenanceWindowInput) SetSchedule(v string) *UpdateMaintenanceWindowInput { + s.Schedule = &v + return s +} + +// SetWindowId sets the WindowId field's value. +func (s *UpdateMaintenanceWindowInput) SetWindowId(v string) *UpdateMaintenanceWindowInput { + s.WindowId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateMaintenanceWindowResult +type UpdateMaintenanceWindowOutput struct { _ struct{} `type:"structure"` - // The name of the tag. - // - // Key is a required field - Key *string `min:"1" type:"string" required:"true"` + // Whether targets must be registered with the Maintenance Window before tasks + // can be defined for those targets. + AllowUnassociatedTargets *bool `type:"boolean"` - // The value of the tag. - // - // Value is a required field - Value *string `min:"1" type:"string" required:"true"` + // The number of hours before the end of the Maintenance Window that Systems + // Manager stops scheduling new tasks for execution. + Cutoff *int64 `type:"integer"` + + // The duration of the Maintenance Window in hours. + Duration *int64 `min:"1" type:"integer"` + + // Whether the Maintenance Window is enabled. + Enabled *bool `type:"boolean"` + + // The name of the Maintenance Window. + Name *string `min:"3" type:"string"` + + // The schedule of the Maintenance Window in the form of a cron or rate expression. + Schedule *string `min:"1" type:"string"` + + // The ID of the created Maintenance Window. + WindowId *string `min:"20" type:"string"` } // String returns the string representation -func (s Tag) String() string { +func (s UpdateMaintenanceWindowOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Tag) GoString() string { +func (s UpdateMaintenanceWindowOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Tag) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Tag"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - if s.Value != nil && len(*s.Value) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Value", 1)) - } +// SetAllowUnassociatedTargets sets the AllowUnassociatedTargets field's value. +func (s *UpdateMaintenanceWindowOutput) SetAllowUnassociatedTargets(v bool) *UpdateMaintenanceWindowOutput { + s.AllowUnassociatedTargets = &v + return s +} + +// SetCutoff sets the Cutoff field's value. +func (s *UpdateMaintenanceWindowOutput) SetCutoff(v int64) *UpdateMaintenanceWindowOutput { + s.Cutoff = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *UpdateMaintenanceWindowOutput) SetDuration(v int64) *UpdateMaintenanceWindowOutput { + s.Duration = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *UpdateMaintenanceWindowOutput) SetEnabled(v bool) *UpdateMaintenanceWindowOutput { + s.Enabled = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateMaintenanceWindowOutput) SetName(v string) *UpdateMaintenanceWindowOutput { + s.Name = &v + return s +} + +// SetSchedule sets the Schedule field's value. +func (s *UpdateMaintenanceWindowOutput) SetSchedule(v string) *UpdateMaintenanceWindowOutput { + s.Schedule = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetWindowId sets the WindowId field's value. +func (s *UpdateMaintenanceWindowOutput) SetWindowId(v string) *UpdateMaintenanceWindowOutput { + s.WindowId = &v + return s } -type UpdateAssociationStatusInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateManagedInstanceRoleRequest +type UpdateManagedInstanceRoleInput struct { _ struct{} `type:"structure"` - // The association status. + // The IAM role you want to assign or change. // - // AssociationStatus is a required field - AssociationStatus *AssociationStatus `type:"structure" required:"true"` + // IamRole is a required field + IamRole *string `type:"string" required:"true"` - // The ID of the instance. + // The ID of the managed instance where you want to update the role. // // InstanceId is a required field InstanceId *string `type:"string" required:"true"` - - // The name of the SSM document. - // - // Name is a required field - Name *string `type:"string" required:"true"` } // String returns the string representation -func (s UpdateAssociationStatusInput) String() string { +func (s UpdateManagedInstanceRoleInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UpdateAssociationStatusInput) GoString() string { +func (s UpdateManagedInstanceRoleInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateAssociationStatusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateAssociationStatusInput"} - if s.AssociationStatus == nil { - invalidParams.Add(request.NewErrParamRequired("AssociationStatus")) +func (s *UpdateManagedInstanceRoleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateManagedInstanceRoleInput"} + if s.IamRole == nil { + invalidParams.Add(request.NewErrParamRequired("IamRole")) } if s.InstanceId == nil { invalidParams.Add(request.NewErrParamRequired("InstanceId")) } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.AssociationStatus != nil { - if err := s.AssociationStatus.Validate(); err != nil { - invalidParams.AddNested("AssociationStatus", err.(request.ErrInvalidParams)) - } - } if invalidParams.Len() > 0 { return invalidParams @@ -4577,55 +19928,95 @@ func (s *UpdateAssociationStatusInput) Validate() error { return nil } -type UpdateAssociationStatusOutput struct { - _ struct{} `type:"structure"` +// SetIamRole sets the IamRole field's value. +func (s *UpdateManagedInstanceRoleInput) SetIamRole(v string) *UpdateManagedInstanceRoleInput { + s.IamRole = &v + return s +} - // Information about the association. - AssociationDescription *AssociationDescription `type:"structure"` +// SetInstanceId sets the InstanceId field's value. +func (s *UpdateManagedInstanceRoleInput) SetInstanceId(v string) *UpdateManagedInstanceRoleInput { + s.InstanceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateManagedInstanceRoleResult +type UpdateManagedInstanceRoleOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation -func (s UpdateAssociationStatusOutput) String() string { +func (s UpdateManagedInstanceRoleOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UpdateAssociationStatusOutput) GoString() string { +func (s UpdateManagedInstanceRoleOutput) GoString() string { return s.String() } -type UpdateManagedInstanceRoleInput struct { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdatePatchBaselineRequest +type UpdatePatchBaselineInput struct { _ struct{} `type:"structure"` - // The IAM role you want to assign or change. - // - // IamRole is a required field - IamRole *string `type:"string" required:"true"` + // A set of rules used to include patches in the baseline. + ApprovalRules *PatchRuleGroup `type:"structure"` - // The ID of the managed instance where you want to update the role. + // A list of explicitly approved patches for the baseline. + ApprovedPatches []*string `type:"list"` + + // The ID of the patch baseline to update. // - // InstanceId is a required field - InstanceId *string `type:"string" required:"true"` + // BaselineId is a required field + BaselineId *string `min:"20" type:"string" required:"true"` + + // A description of the patch baseline. + Description *string `min:"1" type:"string"` + + // A set of global filters used to exclude patches from the baseline. + GlobalFilters *PatchFilterGroup `type:"structure"` + + // The name of the patch baseline. + Name *string `min:"3" type:"string"` + + // A list of explicitly rejected patches for the baseline. + RejectedPatches []*string `type:"list"` } // String returns the string representation -func (s UpdateManagedInstanceRoleInput) String() string { +func (s UpdatePatchBaselineInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UpdateManagedInstanceRoleInput) GoString() string { +func (s UpdatePatchBaselineInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateManagedInstanceRoleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateManagedInstanceRoleInput"} - if s.IamRole == nil { - invalidParams.Add(request.NewErrParamRequired("IamRole")) +func (s *UpdatePatchBaselineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdatePatchBaselineInput"} + if s.BaselineId == nil { + invalidParams.Add(request.NewErrParamRequired("BaselineId")) } - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) + if s.BaselineId != nil && len(*s.BaselineId) < 20 { + invalidParams.Add(request.NewErrParamMinLen("BaselineId", 20)) + } + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + } + if s.Name != nil && len(*s.Name) < 3 { + invalidParams.Add(request.NewErrParamMinLen("Name", 3)) + } + if s.ApprovalRules != nil { + if err := s.ApprovalRules.Validate(); err != nil { + invalidParams.AddNested("ApprovalRules", err.(request.ErrInvalidParams)) + } + } + if s.GlobalFilters != nil { + if err := s.GlobalFilters.Validate(); err != nil { + invalidParams.AddNested("GlobalFilters", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -4634,26 +20025,162 @@ func (s *UpdateManagedInstanceRoleInput) Validate() error { return nil } -type UpdateManagedInstanceRoleOutput struct { +// SetApprovalRules sets the ApprovalRules field's value. +func (s *UpdatePatchBaselineInput) SetApprovalRules(v *PatchRuleGroup) *UpdatePatchBaselineInput { + s.ApprovalRules = v + return s +} + +// SetApprovedPatches sets the ApprovedPatches field's value. +func (s *UpdatePatchBaselineInput) SetApprovedPatches(v []*string) *UpdatePatchBaselineInput { + s.ApprovedPatches = v + return s +} + +// SetBaselineId sets the BaselineId field's value. +func (s *UpdatePatchBaselineInput) SetBaselineId(v string) *UpdatePatchBaselineInput { + s.BaselineId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdatePatchBaselineInput) SetDescription(v string) *UpdatePatchBaselineInput { + s.Description = &v + return s +} + +// SetGlobalFilters sets the GlobalFilters field's value. +func (s *UpdatePatchBaselineInput) SetGlobalFilters(v *PatchFilterGroup) *UpdatePatchBaselineInput { + s.GlobalFilters = v + return s +} + +// SetName sets the Name field's value. +func (s *UpdatePatchBaselineInput) SetName(v string) *UpdatePatchBaselineInput { + s.Name = &v + return s +} + +// SetRejectedPatches sets the RejectedPatches field's value. +func (s *UpdatePatchBaselineInput) SetRejectedPatches(v []*string) *UpdatePatchBaselineInput { + s.RejectedPatches = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdatePatchBaselineResult +type UpdatePatchBaselineOutput struct { _ struct{} `type:"structure"` + + // A set of rules used to include patches in the baseline. + ApprovalRules *PatchRuleGroup `type:"structure"` + + // A list of explicitly approved patches for the baseline. + ApprovedPatches []*string `type:"list"` + + // The ID of the deleted patch baseline. + BaselineId *string `min:"20" type:"string"` + + // The date when the patch baseline was created. + CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // A description of the Patch Baseline. + Description *string `min:"1" type:"string"` + + // A set of global filters used to exclude patches from the baseline. + GlobalFilters *PatchFilterGroup `type:"structure"` + + // The date when the patch baseline was last modified. + ModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The name of the patch baseline. + Name *string `min:"3" type:"string"` + + // A list of explicitly rejected patches for the baseline. + RejectedPatches []*string `type:"list"` } // String returns the string representation -func (s UpdateManagedInstanceRoleOutput) String() string { +func (s UpdatePatchBaselineOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UpdateManagedInstanceRoleOutput) GoString() string { +func (s UpdatePatchBaselineOutput) GoString() string { return s.String() } +// SetApprovalRules sets the ApprovalRules field's value. +func (s *UpdatePatchBaselineOutput) SetApprovalRules(v *PatchRuleGroup) *UpdatePatchBaselineOutput { + s.ApprovalRules = v + return s +} + +// SetApprovedPatches sets the ApprovedPatches field's value. +func (s *UpdatePatchBaselineOutput) SetApprovedPatches(v []*string) *UpdatePatchBaselineOutput { + s.ApprovedPatches = v + return s +} + +// SetBaselineId sets the BaselineId field's value. +func (s *UpdatePatchBaselineOutput) SetBaselineId(v string) *UpdatePatchBaselineOutput { + s.BaselineId = &v + return s +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *UpdatePatchBaselineOutput) SetCreatedDate(v time.Time) *UpdatePatchBaselineOutput { + s.CreatedDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdatePatchBaselineOutput) SetDescription(v string) *UpdatePatchBaselineOutput { + s.Description = &v + return s +} + +// SetGlobalFilters sets the GlobalFilters field's value. +func (s *UpdatePatchBaselineOutput) SetGlobalFilters(v *PatchFilterGroup) *UpdatePatchBaselineOutput { + s.GlobalFilters = v + return s +} + +// SetModifiedDate sets the ModifiedDate field's value. +func (s *UpdatePatchBaselineOutput) SetModifiedDate(v time.Time) *UpdatePatchBaselineOutput { + s.ModifiedDate = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdatePatchBaselineOutput) SetName(v string) *UpdatePatchBaselineOutput { + s.Name = &v + return s +} + +// SetRejectedPatches sets the RejectedPatches field's value. +func (s *UpdatePatchBaselineOutput) SetRejectedPatches(v []*string) *UpdatePatchBaselineOutput { + s.RejectedPatches = v + return s +} + const ( // AssociationFilterKeyInstanceId is a AssociationFilterKey enum value AssociationFilterKeyInstanceId = "InstanceId" // AssociationFilterKeyName is a AssociationFilterKey enum value AssociationFilterKeyName = "Name" + + // AssociationFilterKeyAssociationId is a AssociationFilterKey enum value + AssociationFilterKeyAssociationId = "AssociationId" + + // AssociationFilterKeyAssociationStatusName is a AssociationFilterKey enum value + AssociationFilterKeyAssociationStatusName = "AssociationStatusName" + + // AssociationFilterKeyLastExecutedBefore is a AssociationFilterKey enum value + AssociationFilterKeyLastExecutedBefore = "LastExecutedBefore" + + // AssociationFilterKeyLastExecutedAfter is a AssociationFilterKey enum value + AssociationFilterKeyLastExecutedAfter = "LastExecutedAfter" ) const ( @@ -4667,6 +20194,34 @@ const ( AssociationStatusNameFailed = "Failed" ) +const ( + // AutomationExecutionFilterKeyDocumentNamePrefix is a AutomationExecutionFilterKey enum value + AutomationExecutionFilterKeyDocumentNamePrefix = "DocumentNamePrefix" + + // AutomationExecutionFilterKeyExecutionStatus is a AutomationExecutionFilterKey enum value + AutomationExecutionFilterKeyExecutionStatus = "ExecutionStatus" +) + +const ( + // AutomationExecutionStatusPending is a AutomationExecutionStatus enum value + AutomationExecutionStatusPending = "Pending" + + // AutomationExecutionStatusInProgress is a AutomationExecutionStatus enum value + AutomationExecutionStatusInProgress = "InProgress" + + // AutomationExecutionStatusSuccess is a AutomationExecutionStatus enum value + AutomationExecutionStatusSuccess = "Success" + + // AutomationExecutionStatusTimedOut is a AutomationExecutionStatus enum value + AutomationExecutionStatusTimedOut = "TimedOut" + + // AutomationExecutionStatusCancelled is a AutomationExecutionStatus enum value + AutomationExecutionStatusCancelled = "Cancelled" + + // AutomationExecutionStatusFailed is a AutomationExecutionStatus enum value + AutomationExecutionStatusFailed = "Failed" +) + const ( // CommandFilterKeyInvokedAfter is a CommandFilterKey enum value CommandFilterKeyInvokedAfter = "InvokedAfter" @@ -4685,20 +20240,23 @@ const ( // CommandInvocationStatusInProgress is a CommandInvocationStatus enum value CommandInvocationStatusInProgress = "InProgress" - // CommandInvocationStatusCancelling is a CommandInvocationStatus enum value - CommandInvocationStatusCancelling = "Cancelling" + // CommandInvocationStatusDelayed is a CommandInvocationStatus enum value + CommandInvocationStatusDelayed = "Delayed" // CommandInvocationStatusSuccess is a CommandInvocationStatus enum value CommandInvocationStatusSuccess = "Success" - // CommandInvocationStatusTimedOut is a CommandInvocationStatus enum value - CommandInvocationStatusTimedOut = "TimedOut" - // CommandInvocationStatusCancelled is a CommandInvocationStatus enum value CommandInvocationStatusCancelled = "Cancelled" + // CommandInvocationStatusTimedOut is a CommandInvocationStatus enum value + CommandInvocationStatusTimedOut = "TimedOut" + // CommandInvocationStatusFailed is a CommandInvocationStatus enum value CommandInvocationStatusFailed = "Failed" + + // CommandInvocationStatusCancelling is a CommandInvocationStatus enum value + CommandInvocationStatusCancelling = "Cancelling" ) const ( @@ -4728,20 +20286,20 @@ const ( // CommandStatusInProgress is a CommandStatus enum value CommandStatusInProgress = "InProgress" - // CommandStatusCancelling is a CommandStatus enum value - CommandStatusCancelling = "Cancelling" - // CommandStatusSuccess is a CommandStatus enum value CommandStatusSuccess = "Success" - // CommandStatusTimedOut is a CommandStatus enum value - CommandStatusTimedOut = "TimedOut" - // CommandStatusCancelled is a CommandStatus enum value CommandStatusCancelled = "Cancelled" // CommandStatusFailed is a CommandStatus enum value CommandStatusFailed = "Failed" + + // CommandStatusTimedOut is a CommandStatus enum value + CommandStatusTimedOut = "TimedOut" + + // CommandStatusCancelling is a CommandStatus enum value + CommandStatusCancelling = "Cancelling" ) const ( @@ -4764,6 +20322,9 @@ const ( // DocumentFilterKeyPlatformTypes is a DocumentFilterKey enum value DocumentFilterKeyPlatformTypes = "PlatformTypes" + + // DocumentFilterKeyDocumentType is a DocumentFilterKey enum value + DocumentFilterKeyDocumentType = "DocumentType" ) const ( @@ -4794,10 +20355,24 @@ const ( // DocumentStatusActive is a DocumentStatus enum value DocumentStatusActive = "Active" + // DocumentStatusUpdating is a DocumentStatus enum value + DocumentStatusUpdating = "Updating" + // DocumentStatusDeleting is a DocumentStatus enum value DocumentStatusDeleting = "Deleting" ) +const ( + // DocumentTypeCommand is a DocumentType enum value + DocumentTypeCommand = "Command" + + // DocumentTypePolicy is a DocumentType enum value + DocumentTypePolicy = "Policy" + + // DocumentTypeAutomation is a DocumentType enum value + DocumentTypeAutomation = "Automation" +) + const ( // FaultClient is a Fault enum value FaultClient = "Client" @@ -4830,6 +20405,84 @@ const ( // InstanceInformationFilterKeyResourceType is a InstanceInformationFilterKey enum value InstanceInformationFilterKeyResourceType = "ResourceType" + + // InstanceInformationFilterKeyAssociationStatus is a InstanceInformationFilterKey enum value + InstanceInformationFilterKeyAssociationStatus = "AssociationStatus" +) + +const ( + // InstancePatchStateOperatorTypeEqual is a InstancePatchStateOperatorType enum value + InstancePatchStateOperatorTypeEqual = "Equal" + + // InstancePatchStateOperatorTypeNotEqual is a InstancePatchStateOperatorType enum value + InstancePatchStateOperatorTypeNotEqual = "NotEqual" + + // InstancePatchStateOperatorTypeLessThan is a InstancePatchStateOperatorType enum value + InstancePatchStateOperatorTypeLessThan = "LessThan" + + // InstancePatchStateOperatorTypeGreaterThan is a InstancePatchStateOperatorType enum value + InstancePatchStateOperatorTypeGreaterThan = "GreaterThan" +) + +const ( + // InventoryAttributeDataTypeString is a InventoryAttributeDataType enum value + InventoryAttributeDataTypeString = "string" + + // InventoryAttributeDataTypeNumber is a InventoryAttributeDataType enum value + InventoryAttributeDataTypeNumber = "number" +) + +const ( + // InventoryQueryOperatorTypeEqual is a InventoryQueryOperatorType enum value + InventoryQueryOperatorTypeEqual = "Equal" + + // InventoryQueryOperatorTypeNotEqual is a InventoryQueryOperatorType enum value + InventoryQueryOperatorTypeNotEqual = "NotEqual" + + // InventoryQueryOperatorTypeBeginWith is a InventoryQueryOperatorType enum value + InventoryQueryOperatorTypeBeginWith = "BeginWith" + + // InventoryQueryOperatorTypeLessThan is a InventoryQueryOperatorType enum value + InventoryQueryOperatorTypeLessThan = "LessThan" + + // InventoryQueryOperatorTypeGreaterThan is a InventoryQueryOperatorType enum value + InventoryQueryOperatorTypeGreaterThan = "GreaterThan" +) + +const ( + // MaintenanceWindowExecutionStatusPending is a MaintenanceWindowExecutionStatus enum value + MaintenanceWindowExecutionStatusPending = "PENDING" + + // MaintenanceWindowExecutionStatusInProgress is a MaintenanceWindowExecutionStatus enum value + MaintenanceWindowExecutionStatusInProgress = "IN_PROGRESS" + + // MaintenanceWindowExecutionStatusSuccess is a MaintenanceWindowExecutionStatus enum value + MaintenanceWindowExecutionStatusSuccess = "SUCCESS" + + // MaintenanceWindowExecutionStatusFailed is a MaintenanceWindowExecutionStatus enum value + MaintenanceWindowExecutionStatusFailed = "FAILED" + + // MaintenanceWindowExecutionStatusTimedOut is a MaintenanceWindowExecutionStatus enum value + MaintenanceWindowExecutionStatusTimedOut = "TIMED_OUT" + + // MaintenanceWindowExecutionStatusCancelling is a MaintenanceWindowExecutionStatus enum value + MaintenanceWindowExecutionStatusCancelling = "CANCELLING" + + // MaintenanceWindowExecutionStatusCancelled is a MaintenanceWindowExecutionStatus enum value + MaintenanceWindowExecutionStatusCancelled = "CANCELLED" + + // MaintenanceWindowExecutionStatusSkippedOverlapping is a MaintenanceWindowExecutionStatus enum value + MaintenanceWindowExecutionStatusSkippedOverlapping = "SKIPPED_OVERLAPPING" +) + +const ( + // MaintenanceWindowResourceTypeInstance is a MaintenanceWindowResourceType enum value + MaintenanceWindowResourceTypeInstance = "INSTANCE" +) + +const ( + // MaintenanceWindowTaskTypeRunCommand is a MaintenanceWindowTaskType enum value + MaintenanceWindowTaskTypeRunCommand = "RUN_COMMAND" ) const ( @@ -4860,6 +20513,81 @@ const ( NotificationTypeInvocation = "Invocation" ) +const ( + // ParameterTypeString is a ParameterType enum value + ParameterTypeString = "String" + + // ParameterTypeStringList is a ParameterType enum value + ParameterTypeStringList = "StringList" + + // ParameterTypeSecureString is a ParameterType enum value + ParameterTypeSecureString = "SecureString" +) + +const ( + // ParametersFilterKeyName is a ParametersFilterKey enum value + ParametersFilterKeyName = "Name" + + // ParametersFilterKeyType is a ParametersFilterKey enum value + ParametersFilterKeyType = "Type" + + // ParametersFilterKeyKeyId is a ParametersFilterKey enum value + ParametersFilterKeyKeyId = "KeyId" +) + +const ( + // PatchComplianceDataStateInstalled is a PatchComplianceDataState enum value + PatchComplianceDataStateInstalled = "INSTALLED" + + // PatchComplianceDataStateInstalledOther is a PatchComplianceDataState enum value + PatchComplianceDataStateInstalledOther = "INSTALLED_OTHER" + + // PatchComplianceDataStateMissing is a PatchComplianceDataState enum value + PatchComplianceDataStateMissing = "MISSING" + + // PatchComplianceDataStateNotApplicable is a PatchComplianceDataState enum value + PatchComplianceDataStateNotApplicable = "NOT_APPLICABLE" + + // PatchComplianceDataStateFailed is a PatchComplianceDataState enum value + PatchComplianceDataStateFailed = "FAILED" +) + +const ( + // PatchDeploymentStatusApproved is a PatchDeploymentStatus enum value + PatchDeploymentStatusApproved = "APPROVED" + + // PatchDeploymentStatusPendingApproval is a PatchDeploymentStatus enum value + PatchDeploymentStatusPendingApproval = "PENDING_APPROVAL" + + // PatchDeploymentStatusExplicitApproved is a PatchDeploymentStatus enum value + PatchDeploymentStatusExplicitApproved = "EXPLICIT_APPROVED" + + // PatchDeploymentStatusExplicitRejected is a PatchDeploymentStatus enum value + PatchDeploymentStatusExplicitRejected = "EXPLICIT_REJECTED" +) + +const ( + // PatchFilterKeyProduct is a PatchFilterKey enum value + PatchFilterKeyProduct = "PRODUCT" + + // PatchFilterKeyClassification is a PatchFilterKey enum value + PatchFilterKeyClassification = "CLASSIFICATION" + + // PatchFilterKeyMsrcSeverity is a PatchFilterKey enum value + PatchFilterKeyMsrcSeverity = "MSRC_SEVERITY" + + // PatchFilterKeyPatchId is a PatchFilterKey enum value + PatchFilterKeyPatchId = "PATCH_ID" +) + +const ( + // PatchOperationTypeScan is a PatchOperationType enum value + PatchOperationTypeScan = "Scan" + + // PatchOperationTypeInstall is a PatchOperationType enum value + PatchOperationTypeInstall = "Install" +) + const ( // PingStatusOnline is a PingStatus enum value PingStatusOnline = "Online" @@ -4893,4 +20621,10 @@ const ( const ( // ResourceTypeForTaggingManagedInstance is a ResourceTypeForTagging enum value ResourceTypeForTaggingManagedInstance = "ManagedInstance" + + // ResourceTypeForTaggingMaintenanceWindow is a ResourceTypeForTagging enum value + ResourceTypeForTaggingMaintenanceWindow = "MaintenanceWindow" + + // ResourceTypeForTaggingParameter is a ResourceTypeForTagging enum value + ResourceTypeForTaggingParameter = "Parameter" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssm/errors.go b/vendor/github.com/aws/aws-sdk-go/service/ssm/errors.go new file mode 100644 index 000000000..bea03cfa9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/ssm/errors.go @@ -0,0 +1,448 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package ssm + +const ( + + // ErrCodeAlreadyExistsException for service response error code + // "AlreadyExistsException". + // + // Error returned if an attempt is made to register a patch group with a patch + // baseline that is already registered with a different patch baseline. + ErrCodeAlreadyExistsException = "AlreadyExistsException" + + // ErrCodeAssociatedInstances for service response error code + // "AssociatedInstances". + // + // You must disassociate an SSM document from all instances before you can delete + // it. + ErrCodeAssociatedInstances = "AssociatedInstances" + + // ErrCodeAssociationAlreadyExists for service response error code + // "AssociationAlreadyExists". + // + // The specified association already exists. + ErrCodeAssociationAlreadyExists = "AssociationAlreadyExists" + + // ErrCodeAssociationDoesNotExist for service response error code + // "AssociationDoesNotExist". + // + // The specified association does not exist. + ErrCodeAssociationDoesNotExist = "AssociationDoesNotExist" + + // ErrCodeAssociationLimitExceeded for service response error code + // "AssociationLimitExceeded". + // + // You can have at most 2,000 active associations. + ErrCodeAssociationLimitExceeded = "AssociationLimitExceeded" + + // ErrCodeAutomationDefinitionNotFoundException for service response error code + // "AutomationDefinitionNotFoundException". + // + // An Automation document with the specified name could not be found. + ErrCodeAutomationDefinitionNotFoundException = "AutomationDefinitionNotFoundException" + + // ErrCodeAutomationDefinitionVersionNotFoundException for service response error code + // "AutomationDefinitionVersionNotFoundException". + // + // An Automation document with the specified name and version could not be found. + ErrCodeAutomationDefinitionVersionNotFoundException = "AutomationDefinitionVersionNotFoundException" + + // ErrCodeAutomationExecutionLimitExceededException for service response error code + // "AutomationExecutionLimitExceededException". + // + // The number of simultaneously running Automation executions exceeded the allowable + // limit. + ErrCodeAutomationExecutionLimitExceededException = "AutomationExecutionLimitExceededException" + + // ErrCodeAutomationExecutionNotFoundException for service response error code + // "AutomationExecutionNotFoundException". + // + // There is no automation execution information for the requested automation + // execution ID. + ErrCodeAutomationExecutionNotFoundException = "AutomationExecutionNotFoundException" + + // ErrCodeCustomSchemaCountLimitExceededException for service response error code + // "CustomSchemaCountLimitExceededException". + // + // You have exceeded the limit for custom schemas. Delete one or more custom + // schemas and try again. + ErrCodeCustomSchemaCountLimitExceededException = "CustomSchemaCountLimitExceededException" + + // ErrCodeDocumentAlreadyExists for service response error code + // "DocumentAlreadyExists". + // + // The specified SSM document already exists. + ErrCodeDocumentAlreadyExists = "DocumentAlreadyExists" + + // ErrCodeDocumentLimitExceeded for service response error code + // "DocumentLimitExceeded". + // + // You can have at most 200 active SSM documents. + ErrCodeDocumentLimitExceeded = "DocumentLimitExceeded" + + // ErrCodeDocumentPermissionLimit for service response error code + // "DocumentPermissionLimit". + // + // The document cannot be shared with more AWS user accounts. You can share + // a document with a maximum of 20 accounts. You can publicly share up to five + // documents. If you need to increase this limit, contact AWS Support. + ErrCodeDocumentPermissionLimit = "DocumentPermissionLimit" + + // ErrCodeDocumentVersionLimitExceeded for service response error code + // "DocumentVersionLimitExceeded". + // + // The document has too many versions. Delete one or more document versions + // and try again. + ErrCodeDocumentVersionLimitExceeded = "DocumentVersionLimitExceeded" + + // ErrCodeDoesNotExistException for service response error code + // "DoesNotExistException". + // + // Error returned when the ID specified for a resource (e.g. a Maintenance Window) + // doesn’t exist. + ErrCodeDoesNotExistException = "DoesNotExistException" + + // ErrCodeDuplicateDocumentContent for service response error code + // "DuplicateDocumentContent". + // + // The content of the association document matches another document. Change + // the content of the document and try again. + ErrCodeDuplicateDocumentContent = "DuplicateDocumentContent" + + // ErrCodeDuplicateInstanceId for service response error code + // "DuplicateInstanceId". + // + // You cannot specify an instance ID in more than one association. + ErrCodeDuplicateInstanceId = "DuplicateInstanceId" + + // ErrCodeIdempotentParameterMismatch for service response error code + // "IdempotentParameterMismatch". + // + // Error returned when an idempotent operation is retried and the parameters + // don’t match the original call to the API with the same idempotency token. + ErrCodeIdempotentParameterMismatch = "IdempotentParameterMismatch" + + // ErrCodeInternalServerError for service response error code + // "InternalServerError". + // + // An error occurred on the server side. + ErrCodeInternalServerError = "InternalServerError" + + // ErrCodeInvalidActivation for service response error code + // "InvalidActivation". + // + // The activation is not valid. The activation might have been deleted, or the + // ActivationId and the ActivationCode do not match. + ErrCodeInvalidActivation = "InvalidActivation" + + // ErrCodeInvalidActivationId for service response error code + // "InvalidActivationId". + // + // The activation ID is not valid. Verify the you entered the correct ActivationId + // or ActivationCode and try again. + ErrCodeInvalidActivationId = "InvalidActivationId" + + // ErrCodeInvalidAutomationExecutionParametersException for service response error code + // "InvalidAutomationExecutionParametersException". + // + // The supplied parameters for invoking the specified Automation document are + // incorrect. For example, they may not match the set of parameters permitted + // for the specified Automation document. + ErrCodeInvalidAutomationExecutionParametersException = "InvalidAutomationExecutionParametersException" + + // ErrCodeInvalidCommandId for service response error code + // "InvalidCommandId". + ErrCodeInvalidCommandId = "InvalidCommandId" + + // ErrCodeInvalidDocument for service response error code + // "InvalidDocument". + // + // The specified document does not exist. + ErrCodeInvalidDocument = "InvalidDocument" + + // ErrCodeInvalidDocumentContent for service response error code + // "InvalidDocumentContent". + // + // The content for the SSM document is not valid. + ErrCodeInvalidDocumentContent = "InvalidDocumentContent" + + // ErrCodeInvalidDocumentOperation for service response error code + // "InvalidDocumentOperation". + // + // You attempted to delete a document while it is still shared. You must stop + // sharing the document before you can delete it. + ErrCodeInvalidDocumentOperation = "InvalidDocumentOperation" + + // ErrCodeInvalidDocumentSchemaVersion for service response error code + // "InvalidDocumentSchemaVersion". + // + // The version of the document schema is not supported. + ErrCodeInvalidDocumentSchemaVersion = "InvalidDocumentSchemaVersion" + + // ErrCodeInvalidDocumentVersion for service response error code + // "InvalidDocumentVersion". + // + // The document version is not valid or does not exist. + ErrCodeInvalidDocumentVersion = "InvalidDocumentVersion" + + // ErrCodeInvalidFilter for service response error code + // "InvalidFilter". + // + // The filter name is not valid. Verify the you entered the correct name and + // try again. + ErrCodeInvalidFilter = "InvalidFilter" + + // ErrCodeInvalidFilterKey for service response error code + // "InvalidFilterKey". + // + // The specified key is not valid. + ErrCodeInvalidFilterKey = "InvalidFilterKey" + + // ErrCodeInvalidFilterValue for service response error code + // "InvalidFilterValue". + // + // The filter value is not valid. Verify the value and try again. + ErrCodeInvalidFilterValue = "InvalidFilterValue" + + // ErrCodeInvalidInstanceId for service response error code + // "InvalidInstanceId". + // + // The following problems can cause this exception: + // + // You do not have permission to access the instance. + // + // The SSM agent is not running. On managed instances and Linux instances, verify + // that the SSM agent is running. On EC2 Windows instances, verify that the + // EC2Config service is running. + // + // The SSM agent or EC2Config service is not registered to the SSM endpoint. + // Try reinstalling the SSM agent or EC2Config service. + // + // The instance is not in valid state. Valid states are: Running, Pending, Stopped, + // Stopping. Invalid states are: Shutting-down and Terminated. + ErrCodeInvalidInstanceId = "InvalidInstanceId" + + // ErrCodeInvalidInstanceInformationFilterValue for service response error code + // "InvalidInstanceInformationFilterValue". + // + // The specified filter value is not valid. + ErrCodeInvalidInstanceInformationFilterValue = "InvalidInstanceInformationFilterValue" + + // ErrCodeInvalidItemContentException for service response error code + // "InvalidItemContentException". + // + // One or more content items is not valid. + ErrCodeInvalidItemContentException = "InvalidItemContentException" + + // ErrCodeInvalidKeyId for service response error code + // "InvalidKeyId". + // + // The query key ID is not valid. + ErrCodeInvalidKeyId = "InvalidKeyId" + + // ErrCodeInvalidNextToken for service response error code + // "InvalidNextToken". + // + // The specified token is not valid. + ErrCodeInvalidNextToken = "InvalidNextToken" + + // ErrCodeInvalidNotificationConfig for service response error code + // "InvalidNotificationConfig". + // + // One or more configuration items is not valid. Verify that a valid Amazon + // Resource Name (ARN) was provided for an Amazon SNS topic. + ErrCodeInvalidNotificationConfig = "InvalidNotificationConfig" + + // ErrCodeInvalidOutputFolder for service response error code + // "InvalidOutputFolder". + // + // The S3 bucket does not exist. + ErrCodeInvalidOutputFolder = "InvalidOutputFolder" + + // ErrCodeInvalidOutputLocation for service response error code + // "InvalidOutputLocation". + // + // The output location is not valid or does not exist. + ErrCodeInvalidOutputLocation = "InvalidOutputLocation" + + // ErrCodeInvalidParameters for service response error code + // "InvalidParameters". + // + // You must specify values for all required parameters in the SSM document. + // You can only supply values to parameters defined in the SSM document. + ErrCodeInvalidParameters = "InvalidParameters" + + // ErrCodeInvalidPermissionType for service response error code + // "InvalidPermissionType". + // + // The permission type is not supported. Share is the only supported permission + // type. + ErrCodeInvalidPermissionType = "InvalidPermissionType" + + // ErrCodeInvalidPluginName for service response error code + // "InvalidPluginName". + // + // The plugin name is not valid. + ErrCodeInvalidPluginName = "InvalidPluginName" + + // ErrCodeInvalidResourceId for service response error code + // "InvalidResourceId". + // + // The resource ID is not valid. Verify that you entered the correct ID and + // try again. + ErrCodeInvalidResourceId = "InvalidResourceId" + + // ErrCodeInvalidResourceType for service response error code + // "InvalidResourceType". + // + // The resource type is not valid. If you are attempting to tag an instance, + // the instance must be a registered, managed instance. + ErrCodeInvalidResourceType = "InvalidResourceType" + + // ErrCodeInvalidResultAttributeException for service response error code + // "InvalidResultAttributeException". + // + // The specified inventory item result attribute is not valid. + ErrCodeInvalidResultAttributeException = "InvalidResultAttributeException" + + // ErrCodeInvalidRole for service response error code + // "InvalidRole". + // + // The role name can't contain invalid characters. Also verify that you specified + // an IAM role for notifications that includes the required trust policy. For + // information about configuring the IAM role for Run Command notifications, + // see Getting Amazon SNS Notifications When a Command Changes Status (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/rc-sns.html) + // in the Amazon Elastic Compute Cloud User Guide . + ErrCodeInvalidRole = "InvalidRole" + + // ErrCodeInvalidSchedule for service response error code + // "InvalidSchedule". + // + // The schedule is invalid. Verify your cron or rate expression and try again. + ErrCodeInvalidSchedule = "InvalidSchedule" + + // ErrCodeInvalidTarget for service response error code + // "InvalidTarget". + // + // The target is not valid or does not exist. It might not be configured for + // EC2 Systems Manager or you might not have permission to perform the operation. + ErrCodeInvalidTarget = "InvalidTarget" + + // ErrCodeInvalidTypeNameException for service response error code + // "InvalidTypeNameException". + // + // The parameter type name is not valid. + ErrCodeInvalidTypeNameException = "InvalidTypeNameException" + + // ErrCodeInvalidUpdate for service response error code + // "InvalidUpdate". + // + // The update is not valid. + ErrCodeInvalidUpdate = "InvalidUpdate" + + // ErrCodeInvocationDoesNotExist for service response error code + // "InvocationDoesNotExist". + // + // The command ID and instance ID you specified did not match any invocations. + // Verify the command ID adn the instance ID and try again. + ErrCodeInvocationDoesNotExist = "InvocationDoesNotExist" + + // ErrCodeItemContentMismatchException for service response error code + // "ItemContentMismatchException". + // + // The inventory item has invalid content. + ErrCodeItemContentMismatchException = "ItemContentMismatchException" + + // ErrCodeItemSizeLimitExceededException for service response error code + // "ItemSizeLimitExceededException". + // + // The inventory item size has exceeded the size limit. + ErrCodeItemSizeLimitExceededException = "ItemSizeLimitExceededException" + + // ErrCodeMaxDocumentSizeExceeded for service response error code + // "MaxDocumentSizeExceeded". + // + // The size limit of an SSM document is 64 KB. + ErrCodeMaxDocumentSizeExceeded = "MaxDocumentSizeExceeded" + + // ErrCodeParameterAlreadyExists for service response error code + // "ParameterAlreadyExists". + // + // The parameter already exists. You can't create duplicate parameters. + ErrCodeParameterAlreadyExists = "ParameterAlreadyExists" + + // ErrCodeParameterLimitExceeded for service response error code + // "ParameterLimitExceeded". + // + // You have exceeded the number of parameters for this AWS account. Delete one + // or more parameters and try again. + ErrCodeParameterLimitExceeded = "ParameterLimitExceeded" + + // ErrCodeParameterNotFound for service response error code + // "ParameterNotFound". + // + // The parameter could not be found. Verify the name and try again. + ErrCodeParameterNotFound = "ParameterNotFound" + + // ErrCodeResourceInUseException for service response error code + // "ResourceInUseException". + // + // Error returned if an attempt is made to delete a patch baseline that is registered + // for a patch group. + ErrCodeResourceInUseException = "ResourceInUseException" + + // ErrCodeResourceLimitExceededException for service response error code + // "ResourceLimitExceededException". + // + // Error returned when the caller has exceeded the default resource limits (e.g. + // too many Maintenance Windows have been created). + ErrCodeResourceLimitExceededException = "ResourceLimitExceededException" + + // ErrCodeStatusUnchanged for service response error code + // "StatusUnchanged". + // + // The updated status is the same as the current status. + ErrCodeStatusUnchanged = "StatusUnchanged" + + // ErrCodeTooManyTagsError for service response error code + // "TooManyTagsError". + // + // The Targets parameter includes too many tags. Remove one or more tags and + // try the command again. + ErrCodeTooManyTagsError = "TooManyTagsError" + + // ErrCodeTooManyUpdates for service response error code + // "TooManyUpdates". + // + // There are concurrent updates for a resource that supports one update at a + // time. + ErrCodeTooManyUpdates = "TooManyUpdates" + + // ErrCodeTotalSizeLimitExceededException for service response error code + // "TotalSizeLimitExceededException". + // + // The size of inventory data has exceeded the total size limit for the resource. + ErrCodeTotalSizeLimitExceededException = "TotalSizeLimitExceededException" + + // ErrCodeUnsupportedInventorySchemaVersionException for service response error code + // "UnsupportedInventorySchemaVersionException". + // + // Inventory item type schema version has to match supported versions in the + // service. Check output of GetInventorySchema to see the available schema version + // for each type. + ErrCodeUnsupportedInventorySchemaVersionException = "UnsupportedInventorySchemaVersionException" + + // ErrCodeUnsupportedParameterType for service response error code + // "UnsupportedParameterType". + // + // The parameter type is not supported. + ErrCodeUnsupportedParameterType = "UnsupportedParameterType" + + // ErrCodeUnsupportedPlatformType for service response error code + // "UnsupportedPlatformType". + // + // The document does not support the platform type of the given instance ID(s). + // For example, you sent an SSM document for a Windows instance to a Linux instance. + ErrCodeUnsupportedPlatformType = "UnsupportedPlatformType" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssm/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/ssm/examples_test.go index fc0cc6569..9ba11b169 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ssm/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ssm/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSSM_AddTagsToResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -49,11 +45,7 @@ func ExampleSSM_AddTagsToResource() { } func ExampleSSM_CancelCommand() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -78,11 +70,7 @@ func ExampleSSM_CancelCommand() { } func ExampleSSM_CreateActivation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -107,17 +95,21 @@ func ExampleSSM_CreateActivation() { } func ExampleSSM_CreateAssociation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) params := &ssm.CreateAssociationInput{ - InstanceId: aws.String("InstanceId"), // Required - Name: aws.String("DocumentName"), // Required + Name: aws.String("DocumentName"), // Required + DocumentVersion: aws.String("DocumentVersion"), + InstanceId: aws.String("InstanceId"), + OutputLocation: &ssm.InstanceAssociationOutputLocation{ + S3Location: &ssm.S3OutputLocation{ + OutputS3BucketName: aws.String("S3BucketName"), + OutputS3KeyPrefix: aws.String("S3KeyPrefix"), + OutputS3Region: aws.String("S3Region"), + }, + }, Parameters: map[string][]*string{ "Key": { // Required aws.String("ParameterValue"), // Required @@ -125,6 +117,17 @@ func ExampleSSM_CreateAssociation() { }, // More values... }, + ScheduleExpression: aws.String("ScheduleExpression"), + Targets: []*ssm.Target{ + { // Required + Key: aws.String("TargetKey"), + Values: []*string{ + aws.String("TargetValue"), // Required + // More values... + }, + }, + // More values... + }, } resp, err := svc.CreateAssociation(params) @@ -140,19 +143,23 @@ func ExampleSSM_CreateAssociation() { } func ExampleSSM_CreateAssociationBatch() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) params := &ssm.CreateAssociationBatchInput{ Entries: []*ssm.CreateAssociationBatchRequestEntry{ // Required { // Required - InstanceId: aws.String("InstanceId"), - Name: aws.String("DocumentName"), + Name: aws.String("DocumentName"), // Required + DocumentVersion: aws.String("DocumentVersion"), + InstanceId: aws.String("InstanceId"), + OutputLocation: &ssm.InstanceAssociationOutputLocation{ + S3Location: &ssm.S3OutputLocation{ + OutputS3BucketName: aws.String("S3BucketName"), + OutputS3KeyPrefix: aws.String("S3KeyPrefix"), + OutputS3Region: aws.String("S3Region"), + }, + }, Parameters: map[string][]*string{ "Key": { // Required aws.String("ParameterValue"), // Required @@ -160,6 +167,17 @@ func ExampleSSM_CreateAssociationBatch() { }, // More values... }, + ScheduleExpression: aws.String("ScheduleExpression"), + Targets: []*ssm.Target{ + { // Required + Key: aws.String("TargetKey"), + Values: []*string{ + aws.String("TargetValue"), // Required + // More values... + }, + }, + // More values... + }, }, // More values... }, @@ -178,19 +196,42 @@ func ExampleSSM_CreateAssociationBatch() { } func ExampleSSM_CreateDocument() { - sess, err := session.NewSession() + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.CreateDocumentInput{ + Content: aws.String("DocumentContent"), // Required + Name: aws.String("DocumentName"), // Required + DocumentType: aws.String("DocumentType"), + } + resp, err := svc.CreateDocument(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_CreateMaintenanceWindow() { + sess := session.Must(session.NewSession()) + svc := ssm.New(sess) - params := &ssm.CreateDocumentInput{ - Content: aws.String("DocumentContent"), // Required - Name: aws.String("DocumentName"), // Required + params := &ssm.CreateMaintenanceWindowInput{ + AllowUnassociatedTargets: aws.Bool(true), // Required + Cutoff: aws.Int64(1), // Required + Duration: aws.Int64(1), // Required + Name: aws.String("MaintenanceWindowName"), // Required + Schedule: aws.String("MaintenanceWindowSchedule"), // Required + ClientToken: aws.String("ClientToken"), } - resp, err := svc.CreateDocument(params) + resp, err := svc.CreateMaintenanceWindow(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -203,13 +244,72 @@ func ExampleSSM_CreateDocument() { fmt.Println(resp) } -func ExampleSSM_DeleteActivation() { - sess, err := session.NewSession() +func ExampleSSM_CreatePatchBaseline() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.CreatePatchBaselineInput{ + Name: aws.String("BaselineName"), // Required + ApprovalRules: &ssm.PatchRuleGroup{ + PatchRules: []*ssm.PatchRule{ // Required + { // Required + ApproveAfterDays: aws.Int64(1), // Required + PatchFilterGroup: &ssm.PatchFilterGroup{ // Required + PatchFilters: []*ssm.PatchFilter{ // Required + { // Required + Key: aws.String("PatchFilterKey"), // Required + Values: []*string{ // Required + aws.String("PatchFilterValue"), // Required + // More values... + }, + }, + // More values... + }, + }, + }, + // More values... + }, + }, + ApprovedPatches: []*string{ + aws.String("PatchId"), // Required + // More values... + }, + ClientToken: aws.String("ClientToken"), + Description: aws.String("BaselineDescription"), + GlobalFilters: &ssm.PatchFilterGroup{ + PatchFilters: []*ssm.PatchFilter{ // Required + { // Required + Key: aws.String("PatchFilterKey"), // Required + Values: []*string{ // Required + aws.String("PatchFilterValue"), // Required + // More values... + }, + }, + // More values... + }, + }, + RejectedPatches: []*string{ + aws.String("PatchId"), // Required + // More values... + }, + } + resp, err := svc.CreatePatchBaseline(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_DeleteActivation() { + sess := session.Must(session.NewSession()) + svc := ssm.New(sess) params := &ssm.DeleteActivationInput{ @@ -229,17 +329,14 @@ func ExampleSSM_DeleteActivation() { } func ExampleSSM_DeleteAssociation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) params := &ssm.DeleteAssociationInput{ - InstanceId: aws.String("InstanceId"), // Required - Name: aws.String("DocumentName"), // Required + AssociationId: aws.String("AssociationId"), + InstanceId: aws.String("InstanceId"), + Name: aws.String("DocumentName"), } resp, err := svc.DeleteAssociation(params) @@ -255,11 +352,7 @@ func ExampleSSM_DeleteAssociation() { } func ExampleSSM_DeleteDocument() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) @@ -279,19 +372,15 @@ func ExampleSSM_DeleteDocument() { fmt.Println(resp) } -func ExampleSSM_DeregisterManagedInstance() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } +func ExampleSSM_DeleteMaintenanceWindow() { + sess := session.Must(session.NewSession()) svc := ssm.New(sess) - params := &ssm.DeregisterManagedInstanceInput{ - InstanceId: aws.String("ManagedInstanceId"), // Required + params := &ssm.DeleteMaintenanceWindowInput{ + WindowId: aws.String("MaintenanceWindowId"), // Required } - resp, err := svc.DeregisterManagedInstance(params) + resp, err := svc.DeleteMaintenanceWindow(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -304,30 +393,15 @@ func ExampleSSM_DeregisterManagedInstance() { fmt.Println(resp) } -func ExampleSSM_DescribeActivations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } +func ExampleSSM_DeleteParameter() { + sess := session.Must(session.NewSession()) svc := ssm.New(sess) - params := &ssm.DescribeActivationsInput{ - Filters: []*ssm.DescribeActivationsFilter{ - { // Required - FilterKey: aws.String("DescribeActivationsFilterKeys"), - FilterValues: []*string{ - aws.String("String"), // Required - // More values... - }, - }, - // More values... - }, - MaxResults: aws.Int64(1), - NextToken: aws.String("NextToken"), + params := &ssm.DeleteParameterInput{ + Name: aws.String("PSParameterName"), // Required } - resp, err := svc.DescribeActivations(params) + resp, err := svc.DeleteParameter(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -340,20 +414,15 @@ func ExampleSSM_DescribeActivations() { fmt.Println(resp) } -func ExampleSSM_DescribeAssociation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } +func ExampleSSM_DeletePatchBaseline() { + sess := session.Must(session.NewSession()) svc := ssm.New(sess) - params := &ssm.DescribeAssociationInput{ - InstanceId: aws.String("InstanceId"), // Required - Name: aws.String("DocumentName"), // Required + params := &ssm.DeletePatchBaselineInput{ + BaselineId: aws.String("BaselineId"), // Required } - resp, err := svc.DescribeAssociation(params) + resp, err := svc.DeletePatchBaseline(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -366,19 +435,15 @@ func ExampleSSM_DescribeAssociation() { fmt.Println(resp) } -func ExampleSSM_DescribeDocument() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } +func ExampleSSM_DeregisterManagedInstance() { + sess := session.Must(session.NewSession()) svc := ssm.New(sess) - params := &ssm.DescribeDocumentInput{ - Name: aws.String("DocumentARN"), // Required + params := &ssm.DeregisterManagedInstanceInput{ + InstanceId: aws.String("ManagedInstanceId"), // Required } - resp, err := svc.DescribeDocument(params) + resp, err := svc.DeregisterManagedInstance(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -391,20 +456,16 @@ func ExampleSSM_DescribeDocument() { fmt.Println(resp) } -func ExampleSSM_DescribeDocumentPermission() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } +func ExampleSSM_DeregisterPatchBaselineForPatchGroup() { + sess := session.Must(session.NewSession()) svc := ssm.New(sess) - params := &ssm.DescribeDocumentPermissionInput{ - Name: aws.String("DocumentName"), // Required - PermissionType: aws.String("DocumentPermissionType"), // Required + params := &ssm.DeregisterPatchBaselineForPatchGroupInput{ + BaselineId: aws.String("BaselineId"), // Required + PatchGroup: aws.String("PatchGroup"), // Required } - resp, err := svc.DescribeDocumentPermission(params) + resp, err := svc.DeregisterPatchBaselineForPatchGroup(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -417,30 +478,16 @@ func ExampleSSM_DescribeDocumentPermission() { fmt.Println(resp) } -func ExampleSSM_DescribeInstanceInformation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } +func ExampleSSM_DeregisterTargetFromMaintenanceWindow() { + sess := session.Must(session.NewSession()) svc := ssm.New(sess) - params := &ssm.DescribeInstanceInformationInput{ - InstanceInformationFilterList: []*ssm.InstanceInformationFilter{ - { // Required - Key: aws.String("InstanceInformationFilterKey"), // Required - ValueSet: []*string{ // Required - aws.String("InstanceInformationFilterValue"), // Required - // More values... - }, - }, - // More values... - }, - MaxResults: aws.Int64(1), - NextToken: aws.String("NextToken"), + params := &ssm.DeregisterTargetFromMaintenanceWindowInput{ + WindowId: aws.String("MaintenanceWindowId"), // Required + WindowTargetId: aws.String("MaintenanceWindowTargetId"), // Required } - resp, err := svc.DescribeInstanceInformation(params) + resp, err := svc.DeregisterTargetFromMaintenanceWindow(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -453,19 +500,16 @@ func ExampleSSM_DescribeInstanceInformation() { fmt.Println(resp) } -func ExampleSSM_GetDocument() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } +func ExampleSSM_DeregisterTaskFromMaintenanceWindow() { + sess := session.Must(session.NewSession()) svc := ssm.New(sess) - params := &ssm.GetDocumentInput{ - Name: aws.String("DocumentARN"), // Required + params := &ssm.DeregisterTaskFromMaintenanceWindowInput{ + WindowId: aws.String("MaintenanceWindowId"), // Required + WindowTaskId: aws.String("MaintenanceWindowTaskId"), // Required } - resp, err := svc.GetDocument(params) + resp, err := svc.DeregisterTaskFromMaintenanceWindow(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -478,27 +522,26 @@ func ExampleSSM_GetDocument() { fmt.Println(resp) } -func ExampleSSM_ListAssociations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } +func ExampleSSM_DescribeActivations() { + sess := session.Must(session.NewSession()) svc := ssm.New(sess) - params := &ssm.ListAssociationsInput{ - AssociationFilterList: []*ssm.AssociationFilter{ // Required + params := &ssm.DescribeActivationsInput{ + Filters: []*ssm.DescribeActivationsFilter{ { // Required - Key: aws.String("AssociationFilterKey"), // Required - Value: aws.String("AssociationFilterValue"), // Required + FilterKey: aws.String("DescribeActivationsFilterKeys"), + FilterValues: []*string{ + aws.String("String"), // Required + // More values... + }, }, // More values... }, MaxResults: aws.Int64(1), NextToken: aws.String("NextToken"), } - resp, err := svc.ListAssociations(params) + resp, err := svc.DescribeActivations(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -511,30 +554,17 @@ func ExampleSSM_ListAssociations() { fmt.Println(resp) } -func ExampleSSM_ListCommandInvocations() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } +func ExampleSSM_DescribeAssociation() { + sess := session.Must(session.NewSession()) svc := ssm.New(sess) - params := &ssm.ListCommandInvocationsInput{ - CommandId: aws.String("CommandId"), - Details: aws.Bool(true), - Filters: []*ssm.CommandFilter{ - { // Required - Key: aws.String("CommandFilterKey"), // Required - Value: aws.String("CommandFilterValue"), // Required - }, - // More values... - }, - InstanceId: aws.String("InstanceId"), - MaxResults: aws.Int64(1), - NextToken: aws.String("NextToken"), + params := &ssm.DescribeAssociationInput{ + AssociationId: aws.String("AssociationId"), + InstanceId: aws.String("InstanceId"), + Name: aws.String("DocumentName"), } - resp, err := svc.ListCommandInvocations(params) + resp, err := svc.DescribeAssociation(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -547,29 +577,26 @@ func ExampleSSM_ListCommandInvocations() { fmt.Println(resp) } -func ExampleSSM_ListCommands() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } +func ExampleSSM_DescribeAutomationExecutions() { + sess := session.Must(session.NewSession()) svc := ssm.New(sess) - params := &ssm.ListCommandsInput{ - CommandId: aws.String("CommandId"), - Filters: []*ssm.CommandFilter{ + params := &ssm.DescribeAutomationExecutionsInput{ + Filters: []*ssm.AutomationExecutionFilter{ { // Required - Key: aws.String("CommandFilterKey"), // Required - Value: aws.String("CommandFilterValue"), // Required + Key: aws.String("AutomationExecutionFilterKey"), // Required + Values: []*string{ // Required + aws.String("AutomationExecutionFilterValue"), // Required + // More values... + }, }, // More values... }, - InstanceId: aws.String("InstanceId"), MaxResults: aws.Int64(1), NextToken: aws.String("NextToken"), } - resp, err := svc.ListCommands(params) + resp, err := svc.DescribeAutomationExecutions(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -582,27 +609,26 @@ func ExampleSSM_ListCommands() { fmt.Println(resp) } -func ExampleSSM_ListDocuments() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } +func ExampleSSM_DescribeAvailablePatches() { + sess := session.Must(session.NewSession()) svc := ssm.New(sess) - params := &ssm.ListDocumentsInput{ - DocumentFilterList: []*ssm.DocumentFilter{ + params := &ssm.DescribeAvailablePatchesInput{ + Filters: []*ssm.PatchOrchestratorFilter{ { // Required - Key: aws.String("DocumentFilterKey"), // Required - Value: aws.String("DocumentFilterValue"), // Required + Key: aws.String("PatchOrchestratorFilterKey"), + Values: []*string{ + aws.String("PatchOrchestratorFilterValue"), // Required + // More values... + }, }, // More values... }, MaxResults: aws.Int64(1), NextToken: aws.String("NextToken"), } - resp, err := svc.ListDocuments(params) + resp, err := svc.DescribeAvailablePatches(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -615,20 +641,16 @@ func ExampleSSM_ListDocuments() { fmt.Println(resp) } -func ExampleSSM_ListTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } +func ExampleSSM_DescribeDocument() { + sess := session.Must(session.NewSession()) svc := ssm.New(sess) - params := &ssm.ListTagsForResourceInput{ - ResourceId: aws.String("ResourceId"), // Required - ResourceType: aws.String("ResourceTypeForTagging"), // Required + params := &ssm.DescribeDocumentInput{ + Name: aws.String("DocumentARN"), // Required + DocumentVersion: aws.String("DocumentVersion"), } - resp, err := svc.ListTagsForResource(params) + resp, err := svc.DescribeDocument(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -641,28 +663,16 @@ func ExampleSSM_ListTagsForResource() { fmt.Println(resp) } -func ExampleSSM_ModifyDocumentPermission() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } +func ExampleSSM_DescribeDocumentPermission() { + sess := session.Must(session.NewSession()) svc := ssm.New(sess) - params := &ssm.ModifyDocumentPermissionInput{ + params := &ssm.DescribeDocumentPermissionInput{ Name: aws.String("DocumentName"), // Required PermissionType: aws.String("DocumentPermissionType"), // Required - AccountIdsToAdd: []*string{ - aws.String("AccountId"), // Required - // More values... - }, - AccountIdsToRemove: []*string{ - aws.String("AccountId"), // Required - // More values... - }, } - resp, err := svc.ModifyDocumentPermission(params) + resp, err := svc.DescribeDocumentPermission(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and @@ -675,17 +685,1269 @@ func ExampleSSM_ModifyDocumentPermission() { fmt.Println(resp) } -func ExampleSSM_RemoveTagsFromResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } +func ExampleSSM_DescribeEffectiveInstanceAssociations() { + sess := session.Must(session.NewSession()) svc := ssm.New(sess) - params := &ssm.RemoveTagsFromResourceInput{ - ResourceId: aws.String("ResourceId"), // Required + params := &ssm.DescribeEffectiveInstanceAssociationsInput{ + InstanceId: aws.String("InstanceId"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.DescribeEffectiveInstanceAssociations(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_DescribeEffectivePatchesForPatchBaseline() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.DescribeEffectivePatchesForPatchBaselineInput{ + BaselineId: aws.String("BaselineId"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.DescribeEffectivePatchesForPatchBaseline(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_DescribeInstanceAssociationsStatus() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.DescribeInstanceAssociationsStatusInput{ + InstanceId: aws.String("InstanceId"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.DescribeInstanceAssociationsStatus(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_DescribeInstanceInformation() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.DescribeInstanceInformationInput{ + Filters: []*ssm.InstanceInformationStringFilter{ + { // Required + Key: aws.String("InstanceInformationStringFilterKey"), // Required + Values: []*string{ // Required + aws.String("InstanceInformationFilterValue"), // Required + // More values... + }, + }, + // More values... + }, + InstanceInformationFilterList: []*ssm.InstanceInformationFilter{ + { // Required + Key: aws.String("InstanceInformationFilterKey"), // Required + ValueSet: []*string{ // Required + aws.String("InstanceInformationFilterValue"), // Required + // More values... + }, + }, + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.DescribeInstanceInformation(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_DescribeInstancePatchStates() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.DescribeInstancePatchStatesInput{ + InstanceIds: []*string{ // Required + aws.String("InstanceId"), // Required + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.DescribeInstancePatchStates(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_DescribeInstancePatchStatesForPatchGroup() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.DescribeInstancePatchStatesForPatchGroupInput{ + PatchGroup: aws.String("PatchGroup"), // Required + Filters: []*ssm.InstancePatchStateFilter{ + { // Required + Key: aws.String("InstancePatchStateFilterKey"), // Required + Type: aws.String("InstancePatchStateOperatorType"), // Required + Values: []*string{ // Required + aws.String("InstancePatchStateFilterValue"), // Required + // More values... + }, + }, + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.DescribeInstancePatchStatesForPatchGroup(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_DescribeInstancePatches() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.DescribeInstancePatchesInput{ + InstanceId: aws.String("InstanceId"), // Required + Filters: []*ssm.PatchOrchestratorFilter{ + { // Required + Key: aws.String("PatchOrchestratorFilterKey"), + Values: []*string{ + aws.String("PatchOrchestratorFilterValue"), // Required + // More values... + }, + }, + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.DescribeInstancePatches(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_DescribeMaintenanceWindowExecutionTaskInvocations() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.DescribeMaintenanceWindowExecutionTaskInvocationsInput{ + TaskId: aws.String("MaintenanceWindowExecutionTaskId"), // Required + WindowExecutionId: aws.String("MaintenanceWindowExecutionId"), // Required + Filters: []*ssm.MaintenanceWindowFilter{ + { // Required + Key: aws.String("MaintenanceWindowFilterKey"), + Values: []*string{ + aws.String("MaintenanceWindowFilterValue"), // Required + // More values... + }, + }, + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.DescribeMaintenanceWindowExecutionTaskInvocations(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_DescribeMaintenanceWindowExecutionTasks() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.DescribeMaintenanceWindowExecutionTasksInput{ + WindowExecutionId: aws.String("MaintenanceWindowExecutionId"), // Required + Filters: []*ssm.MaintenanceWindowFilter{ + { // Required + Key: aws.String("MaintenanceWindowFilterKey"), + Values: []*string{ + aws.String("MaintenanceWindowFilterValue"), // Required + // More values... + }, + }, + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.DescribeMaintenanceWindowExecutionTasks(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_DescribeMaintenanceWindowExecutions() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.DescribeMaintenanceWindowExecutionsInput{ + WindowId: aws.String("MaintenanceWindowId"), // Required + Filters: []*ssm.MaintenanceWindowFilter{ + { // Required + Key: aws.String("MaintenanceWindowFilterKey"), + Values: []*string{ + aws.String("MaintenanceWindowFilterValue"), // Required + // More values... + }, + }, + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.DescribeMaintenanceWindowExecutions(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_DescribeMaintenanceWindowTargets() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.DescribeMaintenanceWindowTargetsInput{ + WindowId: aws.String("MaintenanceWindowId"), // Required + Filters: []*ssm.MaintenanceWindowFilter{ + { // Required + Key: aws.String("MaintenanceWindowFilterKey"), + Values: []*string{ + aws.String("MaintenanceWindowFilterValue"), // Required + // More values... + }, + }, + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.DescribeMaintenanceWindowTargets(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_DescribeMaintenanceWindowTasks() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.DescribeMaintenanceWindowTasksInput{ + WindowId: aws.String("MaintenanceWindowId"), // Required + Filters: []*ssm.MaintenanceWindowFilter{ + { // Required + Key: aws.String("MaintenanceWindowFilterKey"), + Values: []*string{ + aws.String("MaintenanceWindowFilterValue"), // Required + // More values... + }, + }, + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.DescribeMaintenanceWindowTasks(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_DescribeMaintenanceWindows() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.DescribeMaintenanceWindowsInput{ + Filters: []*ssm.MaintenanceWindowFilter{ + { // Required + Key: aws.String("MaintenanceWindowFilterKey"), + Values: []*string{ + aws.String("MaintenanceWindowFilterValue"), // Required + // More values... + }, + }, + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.DescribeMaintenanceWindows(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_DescribeParameters() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.DescribeParametersInput{ + Filters: []*ssm.ParametersFilter{ + { // Required + Values: []*string{ // Required + aws.String("ParametersFilterValue"), // Required + // More values... + }, + Key: aws.String("ParametersFilterKey"), + }, + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.DescribeParameters(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_DescribePatchBaselines() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.DescribePatchBaselinesInput{ + Filters: []*ssm.PatchOrchestratorFilter{ + { // Required + Key: aws.String("PatchOrchestratorFilterKey"), + Values: []*string{ + aws.String("PatchOrchestratorFilterValue"), // Required + // More values... + }, + }, + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.DescribePatchBaselines(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_DescribePatchGroupState() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.DescribePatchGroupStateInput{ + PatchGroup: aws.String("PatchGroup"), // Required + } + resp, err := svc.DescribePatchGroupState(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_DescribePatchGroups() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.DescribePatchGroupsInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.DescribePatchGroups(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_GetAutomationExecution() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.GetAutomationExecutionInput{ + AutomationExecutionId: aws.String("AutomationExecutionId"), // Required + } + resp, err := svc.GetAutomationExecution(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_GetCommandInvocation() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.GetCommandInvocationInput{ + CommandId: aws.String("CommandId"), // Required + InstanceId: aws.String("InstanceId"), // Required + PluginName: aws.String("CommandPluginName"), + } + resp, err := svc.GetCommandInvocation(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_GetDefaultPatchBaseline() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + var params *ssm.GetDefaultPatchBaselineInput + resp, err := svc.GetDefaultPatchBaseline(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_GetDeployablePatchSnapshotForInstance() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.GetDeployablePatchSnapshotForInstanceInput{ + InstanceId: aws.String("InstanceId"), // Required + SnapshotId: aws.String("SnapshotId"), // Required + } + resp, err := svc.GetDeployablePatchSnapshotForInstance(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_GetDocument() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.GetDocumentInput{ + Name: aws.String("DocumentARN"), // Required + DocumentVersion: aws.String("DocumentVersion"), + } + resp, err := svc.GetDocument(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_GetInventory() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.GetInventoryInput{ + Filters: []*ssm.InventoryFilter{ + { // Required + Key: aws.String("InventoryFilterKey"), // Required + Values: []*string{ // Required + aws.String("InventoryFilterValue"), // Required + // More values... + }, + Type: aws.String("InventoryQueryOperatorType"), + }, + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + ResultAttributes: []*ssm.ResultAttribute{ + { // Required + TypeName: aws.String("InventoryItemTypeName"), // Required + }, + // More values... + }, + } + resp, err := svc.GetInventory(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_GetInventorySchema() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.GetInventorySchemaInput{ + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + TypeName: aws.String("InventoryItemTypeNameFilter"), + } + resp, err := svc.GetInventorySchema(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_GetMaintenanceWindow() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.GetMaintenanceWindowInput{ + WindowId: aws.String("MaintenanceWindowId"), // Required + } + resp, err := svc.GetMaintenanceWindow(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_GetMaintenanceWindowExecution() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.GetMaintenanceWindowExecutionInput{ + WindowExecutionId: aws.String("MaintenanceWindowExecutionId"), // Required + } + resp, err := svc.GetMaintenanceWindowExecution(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_GetMaintenanceWindowExecutionTask() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.GetMaintenanceWindowExecutionTaskInput{ + TaskId: aws.String("MaintenanceWindowExecutionTaskId"), // Required + WindowExecutionId: aws.String("MaintenanceWindowExecutionId"), // Required + } + resp, err := svc.GetMaintenanceWindowExecutionTask(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_GetParameterHistory() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.GetParameterHistoryInput{ + Name: aws.String("PSParameterName"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + WithDecryption: aws.Bool(true), + } + resp, err := svc.GetParameterHistory(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_GetParameters() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.GetParametersInput{ + Names: []*string{ // Required + aws.String("PSParameterName"), // Required + // More values... + }, + WithDecryption: aws.Bool(true), + } + resp, err := svc.GetParameters(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_GetPatchBaseline() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.GetPatchBaselineInput{ + BaselineId: aws.String("BaselineId"), // Required + } + resp, err := svc.GetPatchBaseline(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_GetPatchBaselineForPatchGroup() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.GetPatchBaselineForPatchGroupInput{ + PatchGroup: aws.String("PatchGroup"), // Required + } + resp, err := svc.GetPatchBaselineForPatchGroup(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_ListAssociations() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.ListAssociationsInput{ + AssociationFilterList: []*ssm.AssociationFilter{ + { // Required + Key: aws.String("AssociationFilterKey"), // Required + Value: aws.String("AssociationFilterValue"), // Required + }, + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListAssociations(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_ListCommandInvocations() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.ListCommandInvocationsInput{ + CommandId: aws.String("CommandId"), + Details: aws.Bool(true), + Filters: []*ssm.CommandFilter{ + { // Required + Key: aws.String("CommandFilterKey"), // Required + Value: aws.String("CommandFilterValue"), // Required + }, + // More values... + }, + InstanceId: aws.String("InstanceId"), + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListCommandInvocations(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_ListCommands() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.ListCommandsInput{ + CommandId: aws.String("CommandId"), + Filters: []*ssm.CommandFilter{ + { // Required + Key: aws.String("CommandFilterKey"), // Required + Value: aws.String("CommandFilterValue"), // Required + }, + // More values... + }, + InstanceId: aws.String("InstanceId"), + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListCommands(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_ListDocumentVersions() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.ListDocumentVersionsInput{ + Name: aws.String("DocumentName"), // Required + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListDocumentVersions(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_ListDocuments() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.ListDocumentsInput{ + DocumentFilterList: []*ssm.DocumentFilter{ + { // Required + Key: aws.String("DocumentFilterKey"), // Required + Value: aws.String("DocumentFilterValue"), // Required + }, + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListDocuments(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_ListInventoryEntries() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.ListInventoryEntriesInput{ + InstanceId: aws.String("InstanceId"), // Required + TypeName: aws.String("InventoryItemTypeName"), // Required + Filters: []*ssm.InventoryFilter{ + { // Required + Key: aws.String("InventoryFilterKey"), // Required + Values: []*string{ // Required + aws.String("InventoryFilterValue"), // Required + // More values... + }, + Type: aws.String("InventoryQueryOperatorType"), + }, + // More values... + }, + MaxResults: aws.Int64(1), + NextToken: aws.String("NextToken"), + } + resp, err := svc.ListInventoryEntries(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_ListTagsForResource() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.ListTagsForResourceInput{ + ResourceId: aws.String("ResourceId"), // Required + ResourceType: aws.String("ResourceTypeForTagging"), // Required + } + resp, err := svc.ListTagsForResource(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_ModifyDocumentPermission() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.ModifyDocumentPermissionInput{ + Name: aws.String("DocumentName"), // Required + PermissionType: aws.String("DocumentPermissionType"), // Required + AccountIdsToAdd: []*string{ + aws.String("AccountId"), // Required + // More values... + }, + AccountIdsToRemove: []*string{ + aws.String("AccountId"), // Required + // More values... + }, + } + resp, err := svc.ModifyDocumentPermission(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_PutInventory() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.PutInventoryInput{ + InstanceId: aws.String("InstanceId"), // Required + Items: []*ssm.InventoryItem{ // Required + { // Required + CaptureTime: aws.String("InventoryItemCaptureTime"), // Required + SchemaVersion: aws.String("InventoryItemSchemaVersion"), // Required + TypeName: aws.String("InventoryItemTypeName"), // Required + Content: []map[string]*string{ + { // Required + "Key": aws.String("AttributeValue"), // Required + // More values... + }, + // More values... + }, + ContentHash: aws.String("InventoryItemContentHash"), + }, + // More values... + }, + } + resp, err := svc.PutInventory(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_PutParameter() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.PutParameterInput{ + Name: aws.String("PSParameterName"), // Required + Type: aws.String("ParameterType"), // Required + Value: aws.String("PSParameterValue"), // Required + Description: aws.String("ParameterDescription"), + KeyId: aws.String("ParameterKeyId"), + Overwrite: aws.Bool(true), + } + resp, err := svc.PutParameter(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_RegisterDefaultPatchBaseline() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.RegisterDefaultPatchBaselineInput{ + BaselineId: aws.String("BaselineId"), // Required + } + resp, err := svc.RegisterDefaultPatchBaseline(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_RegisterPatchBaselineForPatchGroup() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.RegisterPatchBaselineForPatchGroupInput{ + BaselineId: aws.String("BaselineId"), // Required + PatchGroup: aws.String("PatchGroup"), // Required + } + resp, err := svc.RegisterPatchBaselineForPatchGroup(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_RegisterTargetWithMaintenanceWindow() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.RegisterTargetWithMaintenanceWindowInput{ + ResourceType: aws.String("MaintenanceWindowResourceType"), // Required + Targets: []*ssm.Target{ // Required + { // Required + Key: aws.String("TargetKey"), + Values: []*string{ + aws.String("TargetValue"), // Required + // More values... + }, + }, + // More values... + }, + WindowId: aws.String("MaintenanceWindowId"), // Required + ClientToken: aws.String("ClientToken"), + OwnerInformation: aws.String("OwnerInformation"), + } + resp, err := svc.RegisterTargetWithMaintenanceWindow(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_RegisterTaskWithMaintenanceWindow() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.RegisterTaskWithMaintenanceWindowInput{ + MaxConcurrency: aws.String("VelocityConstraint"), // Required + MaxErrors: aws.String("VelocityConstraint"), // Required + ServiceRoleArn: aws.String("ServiceRole"), // Required + Targets: []*ssm.Target{ // Required + { // Required + Key: aws.String("TargetKey"), + Values: []*string{ + aws.String("TargetValue"), // Required + // More values... + }, + }, + // More values... + }, + TaskArn: aws.String("MaintenanceWindowTaskArn"), // Required + TaskType: aws.String("MaintenanceWindowTaskType"), // Required + WindowId: aws.String("MaintenanceWindowId"), // Required + ClientToken: aws.String("ClientToken"), + LoggingInfo: &ssm.LoggingInfo{ + S3BucketName: aws.String("S3BucketName"), // Required + S3Region: aws.String("S3Region"), // Required + S3KeyPrefix: aws.String("S3KeyPrefix"), + }, + Priority: aws.Int64(1), + TaskParameters: map[string]*ssm.MaintenanceWindowTaskParameterValueExpression{ + "Key": { // Required + Values: []*string{ + aws.String("MaintenanceWindowTaskParameterValue"), // Required + // More values... + }, + }, + // More values... + }, + } + resp, err := svc.RegisterTaskWithMaintenanceWindow(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_RemoveTagsFromResource() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.RemoveTagsFromResourceInput{ + ResourceId: aws.String("ResourceId"), // Required ResourceType: aws.String("ResourceTypeForTagging"), // Required TagKeys: []*string{ // Required aws.String("TagKey"), // Required @@ -706,23 +1968,21 @@ func ExampleSSM_RemoveTagsFromResource() { } func ExampleSSM_SendCommand() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := ssm.New(sess) params := &ssm.SendCommandInput{ - DocumentName: aws.String("DocumentARN"), // Required - InstanceIds: []*string{ // Required - aws.String("InstanceId"), // Required - // More values... - }, + DocumentName: aws.String("DocumentARN"), // Required Comment: aws.String("Comment"), DocumentHash: aws.String("DocumentHash"), DocumentHashType: aws.String("DocumentHashType"), + InstanceIds: []*string{ + aws.String("InstanceId"), // Required + // More values... + }, + MaxConcurrency: aws.String("VelocityConstraint"), + MaxErrors: aws.String("VelocityConstraint"), NotificationConfig: &ssm.NotificationConfig{ NotificationArn: aws.String("NotificationArn"), NotificationEvents: []*string{ @@ -733,6 +1993,7 @@ func ExampleSSM_SendCommand() { }, OutputS3BucketName: aws.String("S3BucketName"), OutputS3KeyPrefix: aws.String("S3KeyPrefix"), + OutputS3Region: aws.String("S3Region"), Parameters: map[string][]*string{ "Key": { // Required aws.String("ParameterValue"), // Required @@ -741,6 +2002,16 @@ func ExampleSSM_SendCommand() { // More values... }, ServiceRoleArn: aws.String("ServiceRole"), + Targets: []*ssm.Target{ + { // Required + Key: aws.String("TargetKey"), + Values: []*string{ + aws.String("TargetValue"), // Required + // More values... + }, + }, + // More values... + }, TimeoutSeconds: aws.Int64(1), } resp, err := svc.SendCommand(params) @@ -756,13 +2027,96 @@ func ExampleSSM_SendCommand() { fmt.Println(resp) } -func ExampleSSM_UpdateAssociationStatus() { - sess, err := session.NewSession() +func ExampleSSM_StartAutomationExecution() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.StartAutomationExecutionInput{ + DocumentName: aws.String("DocumentARN"), // Required + DocumentVersion: aws.String("DocumentVersion"), + Parameters: map[string][]*string{ + "Key": { // Required + aws.String("AutomationParameterValue"), // Required + // More values... + }, + // More values... + }, + } + resp, err := svc.StartAutomationExecution(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_StopAutomationExecution() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.StopAutomationExecutionInput{ + AutomationExecutionId: aws.String("AutomationExecutionId"), // Required + } + resp, err := svc.StopAutomationExecution(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_UpdateAssociation() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.UpdateAssociationInput{ + AssociationId: aws.String("AssociationId"), // Required + DocumentVersion: aws.String("DocumentVersion"), + OutputLocation: &ssm.InstanceAssociationOutputLocation{ + S3Location: &ssm.S3OutputLocation{ + OutputS3BucketName: aws.String("S3BucketName"), + OutputS3KeyPrefix: aws.String("S3KeyPrefix"), + OutputS3Region: aws.String("S3Region"), + }, + }, + Parameters: map[string][]*string{ + "Key": { // Required + aws.String("ParameterValue"), // Required + // More values... + }, + // More values... + }, + ScheduleExpression: aws.String("ScheduleExpression"), + } + resp, err := svc.UpdateAssociation(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_UpdateAssociationStatus() { + sess := session.Must(session.NewSession()) + svc := ssm.New(sess) params := &ssm.UpdateAssociationStatusInput{ @@ -788,13 +2142,81 @@ func ExampleSSM_UpdateAssociationStatus() { fmt.Println(resp) } -func ExampleSSM_UpdateManagedInstanceRole() { - sess, err := session.NewSession() +func ExampleSSM_UpdateDocument() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.UpdateDocumentInput{ + Content: aws.String("DocumentContent"), // Required + Name: aws.String("DocumentName"), // Required + DocumentVersion: aws.String("DocumentVersion"), + } + resp, err := svc.UpdateDocument(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_UpdateDocumentDefaultVersion() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.UpdateDocumentDefaultVersionInput{ + DocumentVersion: aws.String("DocumentVersionNumber"), // Required + Name: aws.String("DocumentName"), // Required + } + resp, err := svc.UpdateDocumentDefaultVersion(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_UpdateMaintenanceWindow() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.UpdateMaintenanceWindowInput{ + WindowId: aws.String("MaintenanceWindowId"), // Required + AllowUnassociatedTargets: aws.Bool(true), + Cutoff: aws.Int64(1), + Duration: aws.Int64(1), + Enabled: aws.Bool(true), + Name: aws.String("MaintenanceWindowName"), + Schedule: aws.String("MaintenanceWindowSchedule"), + } + resp, err := svc.UpdateMaintenanceWindow(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleSSM_UpdateManagedInstanceRole() { + sess := session.Must(session.NewSession()) + svc := ssm.New(sess) params := &ssm.UpdateManagedInstanceRoleInput{ @@ -813,3 +2235,66 @@ func ExampleSSM_UpdateManagedInstanceRole() { // Pretty-print the response data. fmt.Println(resp) } + +func ExampleSSM_UpdatePatchBaseline() { + sess := session.Must(session.NewSession()) + + svc := ssm.New(sess) + + params := &ssm.UpdatePatchBaselineInput{ + BaselineId: aws.String("BaselineId"), // Required + ApprovalRules: &ssm.PatchRuleGroup{ + PatchRules: []*ssm.PatchRule{ // Required + { // Required + ApproveAfterDays: aws.Int64(1), // Required + PatchFilterGroup: &ssm.PatchFilterGroup{ // Required + PatchFilters: []*ssm.PatchFilter{ // Required + { // Required + Key: aws.String("PatchFilterKey"), // Required + Values: []*string{ // Required + aws.String("PatchFilterValue"), // Required + // More values... + }, + }, + // More values... + }, + }, + }, + // More values... + }, + }, + ApprovedPatches: []*string{ + aws.String("PatchId"), // Required + // More values... + }, + Description: aws.String("BaselineDescription"), + GlobalFilters: &ssm.PatchFilterGroup{ + PatchFilters: []*ssm.PatchFilter{ // Required + { // Required + Key: aws.String("PatchFilterKey"), // Required + Values: []*string{ // Required + aws.String("PatchFilterValue"), // Required + // More values... + }, + }, + // More values... + }, + }, + Name: aws.String("BaselineName"), + RejectedPatches: []*string{ + aws.String("PatchId"), // Required + // More values... + }, + } + resp, err := svc.UpdatePatchBaseline(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssm/service.go b/vendor/github.com/aws/aws-sdk-go/service/ssm/service.go index a4f94b511..9e9026883 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ssm/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ssm/service.go @@ -11,125 +11,24 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) -// Amazon EC2 Simple Systems Manager (SSM) enables you to remotely manage the -// configuration of your Amazon EC2 instances, virtual machines (VMs), or servers -// in your on-premises environment or in an environment provided by other cloud -// providers using scripts, commands, or the Amazon EC2 console. SSM includes -// an on-demand solution called Amazon EC2 Run Command and a lightweight instance -// configuration solution called SSM Config. -// -// This references is intended to be used with the EC2 Run Command User Guide -// for Linux (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/execute-remote-commands.html) -// or Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/execute-remote-commands.html). -// -// You must register your on-premises servers and VMs through an activation -// process before you can configure them using Run Command. Registered servers -// and VMs are called managed instances. For more information, see Setting Up -// Run Command On Managed Instances (On-Premises Servers and VMs) on Linux (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/managed-instances.html) -// or Setting Up Run Command On Managed Instances (On-Premises Servers and VMs) -// on Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/managed-instances.html). -// -// Run Command -// -// Run Command provides an on-demand experience for executing commands. You -// can use pre-defined SSM documents to perform the actions listed later in -// this section, or you can create your own documents. With these documents, -// you can remotely configure your instances by sending commands using the Commands -// page in the Amazon EC2 console (http://console.aws.amazon.com/ec2/), AWS -// Tools for Windows PowerShell (http://docs.aws.amazon.com/powershell/latest/reference/items/Amazon_Simple_Systems_Management_cmdlets.html), -// the AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/ssm/index.html), -// or AWS SDKs. -// -// Run Command reports the status of the command execution for each instance -// targeted by a command. You can also audit the command execution to understand -// who executed commands, when, and what changes were made. By switching between -// different SSM documents, you can quickly configure your instances with different -// types of commands. To get started with Run Command, verify that your environment -// meets the prerequisites for remotely running commands on EC2 instances (Linux -// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/remote-commands-prereq.html) -// or Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/remote-commands-prereq.html)). -// -// SSM Config -// -// SSM Config is a lightweight instance configuration solution. SSM Config -// is currently only available for Windows instances. With SSM Config, you can -// specify a setup configuration for your instances. SSM Config is similar to -// EC2 User Data, which is another way of running one-time scripts or applying -// settings during instance launch. SSM Config is an extension of this capability. -// Using SSM documents, you can specify which actions the system should perform -// on your instances, including which applications to install, which AWS Directory -// Service directory to join, which Microsoft PowerShell modules to install, -// etc. If an instance is missing one or more of these configurations, the system -// makes those changes. By default, the system checks every five minutes to -// see if there is a new configuration to apply as defined in a new SSM document. -// If so, the system updates the instances accordingly. In this way, you can -// remotely maintain a consistent configuration baseline on your instances. -// SSM Config is available using the AWS CLI or the AWS Tools for Windows PowerShell. -// For more information, see Managing Windows Instance Configuration (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-configuration-manage.html). -// -// SSM Config and Run Command include the following pre-defined documents. -// -// Linux -// -// AWS-RunShellScript to run shell scripts -// -// AWS-UpdateSSMAgent to update the Amazon SSM agent -// -// Windows -// -// AWS-JoinDirectoryServiceDomain to join an AWS Directory -// -// AWS-RunPowerShellScript to run PowerShell commands or scripts -// -// AWS-UpdateEC2Config to update the EC2Config service -// -// AWS-ConfigureWindowsUpdate to configure Windows Update settings -// -// AWS-InstallApplication to install, repair, or uninstall software using -// an MSI package -// -// AWS-InstallPowerShellModule to install PowerShell modules -// -// AWS-ConfigureCloudWatch to configure Amazon CloudWatch Logs to monitor -// applications and systems -// -// AWS-ListWindowsInventory to collect information about an EC2 instance -// running in Windows. -// -// AWS-FindWindowsUpdates to scan an instance and determines which updates -// are missing. -// -// AWS-InstallMissingWindowsUpdates to install missing updates on your EC2 -// instance. -// -// AWS-InstallSpecificWindowsUpdates to install one or more specific updates. -// -// The commands or scripts specified in SSM documents run with administrative -// privilege on your instances because the Amazon SSM agent runs as root on -// Linux and the EC2Config service runs in the Local System account on Windows. -// If a user has permission to execute any of the pre-defined SSM documents -// (any document that begins with AWS-*) then that user also has administrator -// access to the instance. Delegate access to Run Command and SSM Config judiciously. -// This becomes extremely important if you create your own SSM documents. Amazon -// Web Services does not provide guidance about how to create secure SSM documents. -// You create SSM documents and delegate access to Run Command at your own risk. -// As a security best practice, we recommend that you assign access to "AWS-*" -// documents, especially the AWS-RunShellScript document on Linux and the AWS-RunPowerShellScript -// document on Windows, to trusted administrators only. You can create SSM documents -// for specific tasks and delegate access to non-administrators. -// -// For information about creating and sharing SSM documents, see the following -// topics in the SSM User Guide: -// -// Creating SSM Documents (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-ssm-doc.html) -// and Sharing SSM Documents (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ssm-sharing.html) -// (Linux) -// -// Creating SSM Documents (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/create-ssm-doc.html) -// and Sharing SSM Documents (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ssm-sharing.html) -// (Windows) -//The service client's operations are safe to be used concurrently. +// Amazon EC2 Systems Manager is a collection of capabilities that helps you +// automate management tasks such as collecting system inventory, applying operating +// system (OS) patches, automating the creation of Amazon Machine Images (AMIs), +// and configuring operating systems (OSs) and applications at scale. Systems +// Manager works with managed instances: Amazon EC2 instances and servers or +// virtual machines (VMs) in your on-premises environment that are configured +// for Systems Manager. +// +// This references is intended to be used with the EC2 Systems Manager User +// Guide (Linux (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/systems-manager.html)) +// (Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/systems-manager.html)). +// +// To get started, verify prerequisites and configure managed instances (Linux +// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/systems-manager-prereqs.html)) +// (Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/systems-manager-prereqs.html)). +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06 type SSM struct { *client.Client } @@ -140,8 +39,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "ssm" +// Service information constants +const ( + ServiceName = "ssm" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the SSM client with a session. // If additional configuration is needed for the client instance use the optional @@ -154,17 +56,18 @@ const ServiceName = "ssm" // // Create a SSM client with additional configuration // svc := ssm.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *SSM { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *SSM { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *SSM { svc := &SSM{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2014-11-06", diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssm/ssmiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/ssm/ssmiface/interface.go index a1b7284cb..882e340b3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ssm/ssmiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ssm/ssmiface/interface.go @@ -1,6 +1,6 @@ // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. -// Package ssmiface provides an interface to enable mocking the Amazon Simple Systems Management Service service client +// Package ssmiface provides an interface to enable mocking the Amazon Simple Systems Manager (SSM) service client // for testing your code. // // It is important to note that this interface will have breaking changes @@ -23,7 +23,7 @@ import ( // to inject custom request handlers into the the SDK's request pipeline. // // // myFunc uses an SDK service client to make a request to -// // Amazon Simple Systems Management Service. +// // Amazon Simple Systems Manager (SSM). // func myFunc(svc ssmiface.SSMAPI) bool { // // Make svc.AddTagsToResource request // } @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockSSMClient{} // @@ -83,6 +83,14 @@ type SSMAPI interface { CreateDocument(*ssm.CreateDocumentInput) (*ssm.CreateDocumentOutput, error) + CreateMaintenanceWindowRequest(*ssm.CreateMaintenanceWindowInput) (*request.Request, *ssm.CreateMaintenanceWindowOutput) + + CreateMaintenanceWindow(*ssm.CreateMaintenanceWindowInput) (*ssm.CreateMaintenanceWindowOutput, error) + + CreatePatchBaselineRequest(*ssm.CreatePatchBaselineInput) (*request.Request, *ssm.CreatePatchBaselineOutput) + + CreatePatchBaseline(*ssm.CreatePatchBaselineInput) (*ssm.CreatePatchBaselineOutput, error) + DeleteActivationRequest(*ssm.DeleteActivationInput) (*request.Request, *ssm.DeleteActivationOutput) DeleteActivation(*ssm.DeleteActivationInput) (*ssm.DeleteActivationOutput, error) @@ -95,10 +103,34 @@ type SSMAPI interface { DeleteDocument(*ssm.DeleteDocumentInput) (*ssm.DeleteDocumentOutput, error) + DeleteMaintenanceWindowRequest(*ssm.DeleteMaintenanceWindowInput) (*request.Request, *ssm.DeleteMaintenanceWindowOutput) + + DeleteMaintenanceWindow(*ssm.DeleteMaintenanceWindowInput) (*ssm.DeleteMaintenanceWindowOutput, error) + + DeleteParameterRequest(*ssm.DeleteParameterInput) (*request.Request, *ssm.DeleteParameterOutput) + + DeleteParameter(*ssm.DeleteParameterInput) (*ssm.DeleteParameterOutput, error) + + DeletePatchBaselineRequest(*ssm.DeletePatchBaselineInput) (*request.Request, *ssm.DeletePatchBaselineOutput) + + DeletePatchBaseline(*ssm.DeletePatchBaselineInput) (*ssm.DeletePatchBaselineOutput, error) + DeregisterManagedInstanceRequest(*ssm.DeregisterManagedInstanceInput) (*request.Request, *ssm.DeregisterManagedInstanceOutput) DeregisterManagedInstance(*ssm.DeregisterManagedInstanceInput) (*ssm.DeregisterManagedInstanceOutput, error) + DeregisterPatchBaselineForPatchGroupRequest(*ssm.DeregisterPatchBaselineForPatchGroupInput) (*request.Request, *ssm.DeregisterPatchBaselineForPatchGroupOutput) + + DeregisterPatchBaselineForPatchGroup(*ssm.DeregisterPatchBaselineForPatchGroupInput) (*ssm.DeregisterPatchBaselineForPatchGroupOutput, error) + + DeregisterTargetFromMaintenanceWindowRequest(*ssm.DeregisterTargetFromMaintenanceWindowInput) (*request.Request, *ssm.DeregisterTargetFromMaintenanceWindowOutput) + + DeregisterTargetFromMaintenanceWindow(*ssm.DeregisterTargetFromMaintenanceWindowInput) (*ssm.DeregisterTargetFromMaintenanceWindowOutput, error) + + DeregisterTaskFromMaintenanceWindowRequest(*ssm.DeregisterTaskFromMaintenanceWindowInput) (*request.Request, *ssm.DeregisterTaskFromMaintenanceWindowOutput) + + DeregisterTaskFromMaintenanceWindow(*ssm.DeregisterTaskFromMaintenanceWindowInput) (*ssm.DeregisterTaskFromMaintenanceWindowOutput, error) + DescribeActivationsRequest(*ssm.DescribeActivationsInput) (*request.Request, *ssm.DescribeActivationsOutput) DescribeActivations(*ssm.DescribeActivationsInput) (*ssm.DescribeActivationsOutput, error) @@ -109,6 +141,14 @@ type SSMAPI interface { DescribeAssociation(*ssm.DescribeAssociationInput) (*ssm.DescribeAssociationOutput, error) + DescribeAutomationExecutionsRequest(*ssm.DescribeAutomationExecutionsInput) (*request.Request, *ssm.DescribeAutomationExecutionsOutput) + + DescribeAutomationExecutions(*ssm.DescribeAutomationExecutionsInput) (*ssm.DescribeAutomationExecutionsOutput, error) + + DescribeAvailablePatchesRequest(*ssm.DescribeAvailablePatchesInput) (*request.Request, *ssm.DescribeAvailablePatchesOutput) + + DescribeAvailablePatches(*ssm.DescribeAvailablePatchesInput) (*ssm.DescribeAvailablePatchesOutput, error) + DescribeDocumentRequest(*ssm.DescribeDocumentInput) (*request.Request, *ssm.DescribeDocumentOutput) DescribeDocument(*ssm.DescribeDocumentInput) (*ssm.DescribeDocumentOutput, error) @@ -117,16 +157,132 @@ type SSMAPI interface { DescribeDocumentPermission(*ssm.DescribeDocumentPermissionInput) (*ssm.DescribeDocumentPermissionOutput, error) + DescribeEffectiveInstanceAssociationsRequest(*ssm.DescribeEffectiveInstanceAssociationsInput) (*request.Request, *ssm.DescribeEffectiveInstanceAssociationsOutput) + + DescribeEffectiveInstanceAssociations(*ssm.DescribeEffectiveInstanceAssociationsInput) (*ssm.DescribeEffectiveInstanceAssociationsOutput, error) + + DescribeEffectivePatchesForPatchBaselineRequest(*ssm.DescribeEffectivePatchesForPatchBaselineInput) (*request.Request, *ssm.DescribeEffectivePatchesForPatchBaselineOutput) + + DescribeEffectivePatchesForPatchBaseline(*ssm.DescribeEffectivePatchesForPatchBaselineInput) (*ssm.DescribeEffectivePatchesForPatchBaselineOutput, error) + + DescribeInstanceAssociationsStatusRequest(*ssm.DescribeInstanceAssociationsStatusInput) (*request.Request, *ssm.DescribeInstanceAssociationsStatusOutput) + + DescribeInstanceAssociationsStatus(*ssm.DescribeInstanceAssociationsStatusInput) (*ssm.DescribeInstanceAssociationsStatusOutput, error) + DescribeInstanceInformationRequest(*ssm.DescribeInstanceInformationInput) (*request.Request, *ssm.DescribeInstanceInformationOutput) DescribeInstanceInformation(*ssm.DescribeInstanceInformationInput) (*ssm.DescribeInstanceInformationOutput, error) DescribeInstanceInformationPages(*ssm.DescribeInstanceInformationInput, func(*ssm.DescribeInstanceInformationOutput, bool) bool) error + DescribeInstancePatchStatesRequest(*ssm.DescribeInstancePatchStatesInput) (*request.Request, *ssm.DescribeInstancePatchStatesOutput) + + DescribeInstancePatchStates(*ssm.DescribeInstancePatchStatesInput) (*ssm.DescribeInstancePatchStatesOutput, error) + + DescribeInstancePatchStatesForPatchGroupRequest(*ssm.DescribeInstancePatchStatesForPatchGroupInput) (*request.Request, *ssm.DescribeInstancePatchStatesForPatchGroupOutput) + + DescribeInstancePatchStatesForPatchGroup(*ssm.DescribeInstancePatchStatesForPatchGroupInput) (*ssm.DescribeInstancePatchStatesForPatchGroupOutput, error) + + DescribeInstancePatchesRequest(*ssm.DescribeInstancePatchesInput) (*request.Request, *ssm.DescribeInstancePatchesOutput) + + DescribeInstancePatches(*ssm.DescribeInstancePatchesInput) (*ssm.DescribeInstancePatchesOutput, error) + + DescribeMaintenanceWindowExecutionTaskInvocationsRequest(*ssm.DescribeMaintenanceWindowExecutionTaskInvocationsInput) (*request.Request, *ssm.DescribeMaintenanceWindowExecutionTaskInvocationsOutput) + + DescribeMaintenanceWindowExecutionTaskInvocations(*ssm.DescribeMaintenanceWindowExecutionTaskInvocationsInput) (*ssm.DescribeMaintenanceWindowExecutionTaskInvocationsOutput, error) + + DescribeMaintenanceWindowExecutionTasksRequest(*ssm.DescribeMaintenanceWindowExecutionTasksInput) (*request.Request, *ssm.DescribeMaintenanceWindowExecutionTasksOutput) + + DescribeMaintenanceWindowExecutionTasks(*ssm.DescribeMaintenanceWindowExecutionTasksInput) (*ssm.DescribeMaintenanceWindowExecutionTasksOutput, error) + + DescribeMaintenanceWindowExecutionsRequest(*ssm.DescribeMaintenanceWindowExecutionsInput) (*request.Request, *ssm.DescribeMaintenanceWindowExecutionsOutput) + + DescribeMaintenanceWindowExecutions(*ssm.DescribeMaintenanceWindowExecutionsInput) (*ssm.DescribeMaintenanceWindowExecutionsOutput, error) + + DescribeMaintenanceWindowTargetsRequest(*ssm.DescribeMaintenanceWindowTargetsInput) (*request.Request, *ssm.DescribeMaintenanceWindowTargetsOutput) + + DescribeMaintenanceWindowTargets(*ssm.DescribeMaintenanceWindowTargetsInput) (*ssm.DescribeMaintenanceWindowTargetsOutput, error) + + DescribeMaintenanceWindowTasksRequest(*ssm.DescribeMaintenanceWindowTasksInput) (*request.Request, *ssm.DescribeMaintenanceWindowTasksOutput) + + DescribeMaintenanceWindowTasks(*ssm.DescribeMaintenanceWindowTasksInput) (*ssm.DescribeMaintenanceWindowTasksOutput, error) + + DescribeMaintenanceWindowsRequest(*ssm.DescribeMaintenanceWindowsInput) (*request.Request, *ssm.DescribeMaintenanceWindowsOutput) + + DescribeMaintenanceWindows(*ssm.DescribeMaintenanceWindowsInput) (*ssm.DescribeMaintenanceWindowsOutput, error) + + DescribeParametersRequest(*ssm.DescribeParametersInput) (*request.Request, *ssm.DescribeParametersOutput) + + DescribeParameters(*ssm.DescribeParametersInput) (*ssm.DescribeParametersOutput, error) + + DescribePatchBaselinesRequest(*ssm.DescribePatchBaselinesInput) (*request.Request, *ssm.DescribePatchBaselinesOutput) + + DescribePatchBaselines(*ssm.DescribePatchBaselinesInput) (*ssm.DescribePatchBaselinesOutput, error) + + DescribePatchGroupStateRequest(*ssm.DescribePatchGroupStateInput) (*request.Request, *ssm.DescribePatchGroupStateOutput) + + DescribePatchGroupState(*ssm.DescribePatchGroupStateInput) (*ssm.DescribePatchGroupStateOutput, error) + + DescribePatchGroupsRequest(*ssm.DescribePatchGroupsInput) (*request.Request, *ssm.DescribePatchGroupsOutput) + + DescribePatchGroups(*ssm.DescribePatchGroupsInput) (*ssm.DescribePatchGroupsOutput, error) + + GetAutomationExecutionRequest(*ssm.GetAutomationExecutionInput) (*request.Request, *ssm.GetAutomationExecutionOutput) + + GetAutomationExecution(*ssm.GetAutomationExecutionInput) (*ssm.GetAutomationExecutionOutput, error) + + GetCommandInvocationRequest(*ssm.GetCommandInvocationInput) (*request.Request, *ssm.GetCommandInvocationOutput) + + GetCommandInvocation(*ssm.GetCommandInvocationInput) (*ssm.GetCommandInvocationOutput, error) + + GetDefaultPatchBaselineRequest(*ssm.GetDefaultPatchBaselineInput) (*request.Request, *ssm.GetDefaultPatchBaselineOutput) + + GetDefaultPatchBaseline(*ssm.GetDefaultPatchBaselineInput) (*ssm.GetDefaultPatchBaselineOutput, error) + + GetDeployablePatchSnapshotForInstanceRequest(*ssm.GetDeployablePatchSnapshotForInstanceInput) (*request.Request, *ssm.GetDeployablePatchSnapshotForInstanceOutput) + + GetDeployablePatchSnapshotForInstance(*ssm.GetDeployablePatchSnapshotForInstanceInput) (*ssm.GetDeployablePatchSnapshotForInstanceOutput, error) + GetDocumentRequest(*ssm.GetDocumentInput) (*request.Request, *ssm.GetDocumentOutput) GetDocument(*ssm.GetDocumentInput) (*ssm.GetDocumentOutput, error) + GetInventoryRequest(*ssm.GetInventoryInput) (*request.Request, *ssm.GetInventoryOutput) + + GetInventory(*ssm.GetInventoryInput) (*ssm.GetInventoryOutput, error) + + GetInventorySchemaRequest(*ssm.GetInventorySchemaInput) (*request.Request, *ssm.GetInventorySchemaOutput) + + GetInventorySchema(*ssm.GetInventorySchemaInput) (*ssm.GetInventorySchemaOutput, error) + + GetMaintenanceWindowRequest(*ssm.GetMaintenanceWindowInput) (*request.Request, *ssm.GetMaintenanceWindowOutput) + + GetMaintenanceWindow(*ssm.GetMaintenanceWindowInput) (*ssm.GetMaintenanceWindowOutput, error) + + GetMaintenanceWindowExecutionRequest(*ssm.GetMaintenanceWindowExecutionInput) (*request.Request, *ssm.GetMaintenanceWindowExecutionOutput) + + GetMaintenanceWindowExecution(*ssm.GetMaintenanceWindowExecutionInput) (*ssm.GetMaintenanceWindowExecutionOutput, error) + + GetMaintenanceWindowExecutionTaskRequest(*ssm.GetMaintenanceWindowExecutionTaskInput) (*request.Request, *ssm.GetMaintenanceWindowExecutionTaskOutput) + + GetMaintenanceWindowExecutionTask(*ssm.GetMaintenanceWindowExecutionTaskInput) (*ssm.GetMaintenanceWindowExecutionTaskOutput, error) + + GetParameterHistoryRequest(*ssm.GetParameterHistoryInput) (*request.Request, *ssm.GetParameterHistoryOutput) + + GetParameterHistory(*ssm.GetParameterHistoryInput) (*ssm.GetParameterHistoryOutput, error) + + GetParametersRequest(*ssm.GetParametersInput) (*request.Request, *ssm.GetParametersOutput) + + GetParameters(*ssm.GetParametersInput) (*ssm.GetParametersOutput, error) + + GetPatchBaselineRequest(*ssm.GetPatchBaselineInput) (*request.Request, *ssm.GetPatchBaselineOutput) + + GetPatchBaseline(*ssm.GetPatchBaselineInput) (*ssm.GetPatchBaselineOutput, error) + + GetPatchBaselineForPatchGroupRequest(*ssm.GetPatchBaselineForPatchGroupInput) (*request.Request, *ssm.GetPatchBaselineForPatchGroupOutput) + + GetPatchBaselineForPatchGroup(*ssm.GetPatchBaselineForPatchGroupInput) (*ssm.GetPatchBaselineForPatchGroupOutput, error) + ListAssociationsRequest(*ssm.ListAssociationsInput) (*request.Request, *ssm.ListAssociationsOutput) ListAssociations(*ssm.ListAssociationsInput) (*ssm.ListAssociationsOutput, error) @@ -145,12 +301,20 @@ type SSMAPI interface { ListCommandsPages(*ssm.ListCommandsInput, func(*ssm.ListCommandsOutput, bool) bool) error + ListDocumentVersionsRequest(*ssm.ListDocumentVersionsInput) (*request.Request, *ssm.ListDocumentVersionsOutput) + + ListDocumentVersions(*ssm.ListDocumentVersionsInput) (*ssm.ListDocumentVersionsOutput, error) + ListDocumentsRequest(*ssm.ListDocumentsInput) (*request.Request, *ssm.ListDocumentsOutput) ListDocuments(*ssm.ListDocumentsInput) (*ssm.ListDocumentsOutput, error) ListDocumentsPages(*ssm.ListDocumentsInput, func(*ssm.ListDocumentsOutput, bool) bool) error + ListInventoryEntriesRequest(*ssm.ListInventoryEntriesInput) (*request.Request, *ssm.ListInventoryEntriesOutput) + + ListInventoryEntries(*ssm.ListInventoryEntriesInput) (*ssm.ListInventoryEntriesOutput, error) + ListTagsForResourceRequest(*ssm.ListTagsForResourceInput) (*request.Request, *ssm.ListTagsForResourceOutput) ListTagsForResource(*ssm.ListTagsForResourceInput) (*ssm.ListTagsForResourceOutput, error) @@ -159,6 +323,30 @@ type SSMAPI interface { ModifyDocumentPermission(*ssm.ModifyDocumentPermissionInput) (*ssm.ModifyDocumentPermissionOutput, error) + PutInventoryRequest(*ssm.PutInventoryInput) (*request.Request, *ssm.PutInventoryOutput) + + PutInventory(*ssm.PutInventoryInput) (*ssm.PutInventoryOutput, error) + + PutParameterRequest(*ssm.PutParameterInput) (*request.Request, *ssm.PutParameterOutput) + + PutParameter(*ssm.PutParameterInput) (*ssm.PutParameterOutput, error) + + RegisterDefaultPatchBaselineRequest(*ssm.RegisterDefaultPatchBaselineInput) (*request.Request, *ssm.RegisterDefaultPatchBaselineOutput) + + RegisterDefaultPatchBaseline(*ssm.RegisterDefaultPatchBaselineInput) (*ssm.RegisterDefaultPatchBaselineOutput, error) + + RegisterPatchBaselineForPatchGroupRequest(*ssm.RegisterPatchBaselineForPatchGroupInput) (*request.Request, *ssm.RegisterPatchBaselineForPatchGroupOutput) + + RegisterPatchBaselineForPatchGroup(*ssm.RegisterPatchBaselineForPatchGroupInput) (*ssm.RegisterPatchBaselineForPatchGroupOutput, error) + + RegisterTargetWithMaintenanceWindowRequest(*ssm.RegisterTargetWithMaintenanceWindowInput) (*request.Request, *ssm.RegisterTargetWithMaintenanceWindowOutput) + + RegisterTargetWithMaintenanceWindow(*ssm.RegisterTargetWithMaintenanceWindowInput) (*ssm.RegisterTargetWithMaintenanceWindowOutput, error) + + RegisterTaskWithMaintenanceWindowRequest(*ssm.RegisterTaskWithMaintenanceWindowInput) (*request.Request, *ssm.RegisterTaskWithMaintenanceWindowOutput) + + RegisterTaskWithMaintenanceWindow(*ssm.RegisterTaskWithMaintenanceWindowInput) (*ssm.RegisterTaskWithMaintenanceWindowOutput, error) + RemoveTagsFromResourceRequest(*ssm.RemoveTagsFromResourceInput) (*request.Request, *ssm.RemoveTagsFromResourceOutput) RemoveTagsFromResource(*ssm.RemoveTagsFromResourceInput) (*ssm.RemoveTagsFromResourceOutput, error) @@ -167,13 +355,41 @@ type SSMAPI interface { SendCommand(*ssm.SendCommandInput) (*ssm.SendCommandOutput, error) + StartAutomationExecutionRequest(*ssm.StartAutomationExecutionInput) (*request.Request, *ssm.StartAutomationExecutionOutput) + + StartAutomationExecution(*ssm.StartAutomationExecutionInput) (*ssm.StartAutomationExecutionOutput, error) + + StopAutomationExecutionRequest(*ssm.StopAutomationExecutionInput) (*request.Request, *ssm.StopAutomationExecutionOutput) + + StopAutomationExecution(*ssm.StopAutomationExecutionInput) (*ssm.StopAutomationExecutionOutput, error) + + UpdateAssociationRequest(*ssm.UpdateAssociationInput) (*request.Request, *ssm.UpdateAssociationOutput) + + UpdateAssociation(*ssm.UpdateAssociationInput) (*ssm.UpdateAssociationOutput, error) + UpdateAssociationStatusRequest(*ssm.UpdateAssociationStatusInput) (*request.Request, *ssm.UpdateAssociationStatusOutput) UpdateAssociationStatus(*ssm.UpdateAssociationStatusInput) (*ssm.UpdateAssociationStatusOutput, error) + UpdateDocumentRequest(*ssm.UpdateDocumentInput) (*request.Request, *ssm.UpdateDocumentOutput) + + UpdateDocument(*ssm.UpdateDocumentInput) (*ssm.UpdateDocumentOutput, error) + + UpdateDocumentDefaultVersionRequest(*ssm.UpdateDocumentDefaultVersionInput) (*request.Request, *ssm.UpdateDocumentDefaultVersionOutput) + + UpdateDocumentDefaultVersion(*ssm.UpdateDocumentDefaultVersionInput) (*ssm.UpdateDocumentDefaultVersionOutput, error) + + UpdateMaintenanceWindowRequest(*ssm.UpdateMaintenanceWindowInput) (*request.Request, *ssm.UpdateMaintenanceWindowOutput) + + UpdateMaintenanceWindow(*ssm.UpdateMaintenanceWindowInput) (*ssm.UpdateMaintenanceWindowOutput, error) + UpdateManagedInstanceRoleRequest(*ssm.UpdateManagedInstanceRoleInput) (*request.Request, *ssm.UpdateManagedInstanceRoleOutput) UpdateManagedInstanceRole(*ssm.UpdateManagedInstanceRoleInput) (*ssm.UpdateManagedInstanceRoleOutput, error) + + UpdatePatchBaselineRequest(*ssm.UpdatePatchBaselineInput) (*request.Request, *ssm.UpdatePatchBaselineOutput) + + UpdatePatchBaseline(*ssm.UpdatePatchBaselineInput) (*ssm.UpdatePatchBaselineOutput, error) } var _ SSMAPI = (*ssm.SSM)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/api.go b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/api.go index 478be2396..273ac7ffe 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/api.go @@ -37,6 +37,7 @@ const opActivateGateway = "ActivateGateway" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ActivateGateway func (c *StorageGateway) ActivateGatewayRequest(input *ActivateGatewayInput) (req *request.Request, output *ActivateGatewayOutput) { op := &request.Operation{ Name: opActivateGateway, @@ -48,9 +49,8 @@ func (c *StorageGateway) ActivateGatewayRequest(input *ActivateGatewayInput) (re input = &ActivateGatewayInput{} } - req = c.newRequest(op, input, output) output = &ActivateGatewayOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -74,14 +74,15 @@ func (c *StorageGateway) ActivateGatewayRequest(input *ActivateGatewayInput) (re // API operation ActivateGateway for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ActivateGateway func (c *StorageGateway) ActivateGateway(input *ActivateGatewayInput) (*ActivateGatewayOutput, error) { req, out := c.ActivateGatewayRequest(input) err := req.Send() @@ -114,6 +115,7 @@ const opAddCache = "AddCache" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddCache func (c *StorageGateway) AddCacheRequest(input *AddCacheInput) (req *request.Request, output *AddCacheOutput) { op := &request.Operation{ Name: opAddCache, @@ -125,9 +127,8 @@ func (c *StorageGateway) AddCacheRequest(input *AddCacheInput) (req *request.Req input = &AddCacheInput{} } - req = c.newRequest(op, input, output) output = &AddCacheOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -149,14 +150,15 @@ func (c *StorageGateway) AddCacheRequest(input *AddCacheInput) (req *request.Req // API operation AddCache for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddCache func (c *StorageGateway) AddCache(input *AddCacheInput) (*AddCacheOutput, error) { req, out := c.AddCacheRequest(input) err := req.Send() @@ -189,6 +191,7 @@ const opAddTagsToResource = "AddTagsToResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddTagsToResource func (c *StorageGateway) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) { op := &request.Operation{ Name: opAddTagsToResource, @@ -200,9 +203,8 @@ func (c *StorageGateway) AddTagsToResourceRequest(input *AddTagsToResourceInput) input = &AddTagsToResourceInput{} } - req = c.newRequest(op, input, output) output = &AddTagsToResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -214,13 +216,13 @@ func (c *StorageGateway) AddTagsToResourceRequest(input *AddTagsToResourceInput) // tag consists of a key and a value, which you define. You can add tags to // the following AWS Storage Gateway resources: // -// Storage gateways of all types +// * Storage gateways of all types // -// Storage Volumes +// * Storage Volumes // -// Virtual Tapes +// * Virtual Tapes // -// You can create a maximum of 10 tags for each resource. Virtual tapes and +// You can create a maximum of 10 tags for each resource. Virtual tapes and // storage volumes that are recovered to a new gateway maintain their tags. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -231,14 +233,15 @@ func (c *StorageGateway) AddTagsToResourceRequest(input *AddTagsToResourceInput) // API operation AddTagsToResource for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddTagsToResource func (c *StorageGateway) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -271,6 +274,7 @@ const opAddUploadBuffer = "AddUploadBuffer" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddUploadBuffer func (c *StorageGateway) AddUploadBufferRequest(input *AddUploadBufferInput) (req *request.Request, output *AddUploadBufferOutput) { op := &request.Operation{ Name: opAddUploadBuffer, @@ -282,9 +286,8 @@ func (c *StorageGateway) AddUploadBufferRequest(input *AddUploadBufferInput) (re input = &AddUploadBufferInput{} } - req = c.newRequest(op, input, output) output = &AddUploadBufferOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -306,14 +309,15 @@ func (c *StorageGateway) AddUploadBufferRequest(input *AddUploadBufferInput) (re // API operation AddUploadBuffer for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddUploadBuffer func (c *StorageGateway) AddUploadBuffer(input *AddUploadBufferInput) (*AddUploadBufferOutput, error) { req, out := c.AddUploadBufferRequest(input) err := req.Send() @@ -346,6 +350,7 @@ const opAddWorkingStorage = "AddWorkingStorage" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddWorkingStorage func (c *StorageGateway) AddWorkingStorageRequest(input *AddWorkingStorageInput) (req *request.Request, output *AddWorkingStorageOutput) { op := &request.Operation{ Name: opAddWorkingStorage, @@ -357,9 +362,8 @@ func (c *StorageGateway) AddWorkingStorageRequest(input *AddWorkingStorageInput) input = &AddWorkingStorageInput{} } - req = c.newRequest(op, input, output) output = &AddWorkingStorageOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -370,10 +374,10 @@ func (c *StorageGateway) AddWorkingStorageRequest(input *AddWorkingStorageInput) // This operation is deprecated in cached-volumes API version 20120630. Use // AddUploadBuffer instead. // -// Working storage is also referred to as upload buffer. You can also use -// the AddUploadBuffer operation to add upload buffer to a stored-volume gateway. +// Working storage is also referred to as upload buffer. You can also use the +// AddUploadBuffer operation to add upload buffer to a stored-volume gateway. // -// In the request, you specify the gateway Amazon Resource Name (ARN) to which +// In the request, you specify the gateway Amazon Resource Name (ARN) to which // you want to add working storage, and one or more disk IDs that you want to // configure as working storage. // @@ -385,14 +389,15 @@ func (c *StorageGateway) AddWorkingStorageRequest(input *AddWorkingStorageInput) // API operation AddWorkingStorage for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddWorkingStorage func (c *StorageGateway) AddWorkingStorage(input *AddWorkingStorageInput) (*AddWorkingStorageOutput, error) { req, out := c.AddWorkingStorageRequest(input) err := req.Send() @@ -425,6 +430,7 @@ const opCancelArchival = "CancelArchival" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CancelArchival func (c *StorageGateway) CancelArchivalRequest(input *CancelArchivalInput) (req *request.Request, output *CancelArchivalOutput) { op := &request.Operation{ Name: opCancelArchival, @@ -436,9 +442,8 @@ func (c *StorageGateway) CancelArchivalRequest(input *CancelArchivalInput) (req input = &CancelArchivalInput{} } - req = c.newRequest(op, input, output) output = &CancelArchivalOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -455,14 +460,15 @@ func (c *StorageGateway) CancelArchivalRequest(input *CancelArchivalInput) (req // API operation CancelArchival for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CancelArchival func (c *StorageGateway) CancelArchival(input *CancelArchivalInput) (*CancelArchivalOutput, error) { req, out := c.CancelArchivalRequest(input) err := req.Send() @@ -495,6 +501,7 @@ const opCancelRetrieval = "CancelRetrieval" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CancelRetrieval func (c *StorageGateway) CancelRetrievalRequest(input *CancelRetrievalInput) (req *request.Request, output *CancelRetrievalOutput) { op := &request.Operation{ Name: opCancelRetrieval, @@ -506,9 +513,8 @@ func (c *StorageGateway) CancelRetrievalRequest(input *CancelRetrievalInput) (re input = &CancelRetrievalInput{} } - req = c.newRequest(op, input, output) output = &CancelRetrievalOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -526,14 +532,15 @@ func (c *StorageGateway) CancelRetrievalRequest(input *CancelRetrievalInput) (re // API operation CancelRetrieval for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CancelRetrieval func (c *StorageGateway) CancelRetrieval(input *CancelRetrievalInput) (*CancelRetrievalOutput, error) { req, out := c.CancelRetrievalRequest(input) err := req.Send() @@ -566,6 +573,7 @@ const opCreateCachediSCSIVolume = "CreateCachediSCSIVolume" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateCachediSCSIVolume func (c *StorageGateway) CreateCachediSCSIVolumeRequest(input *CreateCachediSCSIVolumeInput) (req *request.Request, output *CreateCachediSCSIVolumeOutput) { op := &request.Operation{ Name: opCreateCachediSCSIVolume, @@ -577,9 +585,8 @@ func (c *StorageGateway) CreateCachediSCSIVolumeRequest(input *CreateCachediSCSI input = &CreateCachediSCSIVolumeInput{} } - req = c.newRequest(op, input, output) output = &CreateCachediSCSIVolumeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -591,12 +598,17 @@ func (c *StorageGateway) CreateCachediSCSIVolumeRequest(input *CreateCachediSCSI // Cache storage must be allocated to the gateway before you can create a cached // volume. Use the AddCache operation to add cache storage to a gateway. // -// In the request, you must specify the gateway, size of the volume in bytes, +// In the request, you must specify the gateway, size of the volume in bytes, // the iSCSI target name, an IP address on which to expose the target, and a // unique client token. In response, AWS Storage Gateway creates the volume -// and returns information about it such as the volume Amazon Resource Name -// (ARN), its size, and the iSCSI target ARN that initiators can use to connect -// to the volume target. +// and returns information about it. This information includes the volume Amazon +// Resource Name (ARN), its size, and the iSCSI target ARN that initiators can +// use to connect to the volume target. +// +// Optionally, you can provide the ARN for an existing volume as the SourceVolumeARN +// for this cached volume, which creates an exact copy of the existing volume’s +// latest recovery point. The VolumeSizeInBytes value must be equal to or larger +// than the size of the copied volume, in bytes. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -606,20 +618,93 @@ func (c *StorageGateway) CreateCachediSCSIVolumeRequest(input *CreateCachediSCSI // API operation CreateCachediSCSIVolume for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateCachediSCSIVolume func (c *StorageGateway) CreateCachediSCSIVolume(input *CreateCachediSCSIVolumeInput) (*CreateCachediSCSIVolumeOutput, error) { req, out := c.CreateCachediSCSIVolumeRequest(input) err := req.Send() return out, err } +const opCreateNFSFileShare = "CreateNFSFileShare" + +// CreateNFSFileShareRequest generates a "aws/request.Request" representing the +// client's request for the CreateNFSFileShare operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateNFSFileShare for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateNFSFileShare method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateNFSFileShareRequest method. +// req, resp := client.CreateNFSFileShareRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateNFSFileShare +func (c *StorageGateway) CreateNFSFileShareRequest(input *CreateNFSFileShareInput) (req *request.Request, output *CreateNFSFileShareOutput) { + op := &request.Operation{ + Name: opCreateNFSFileShare, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateNFSFileShareInput{} + } + + output = &CreateNFSFileShareOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateNFSFileShare API operation for AWS Storage Gateway. +// +// Creates a file share on an existing file gateway. In Storage Gateway, a file +// share is a file system mount point backed by Amazon S3 cloud storage. Storage +// Gateway exposes file shares using a Network File System (NFS) interface. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation CreateNFSFileShare for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * ErrCodeInternalServerError "InternalServerError" +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateNFSFileShare +func (c *StorageGateway) CreateNFSFileShare(input *CreateNFSFileShareInput) (*CreateNFSFileShareOutput, error) { + req, out := c.CreateNFSFileShareRequest(input) + err := req.Send() + return out, err +} + const opCreateSnapshot = "CreateSnapshot" // CreateSnapshotRequest generates a "aws/request.Request" representing the @@ -646,6 +731,7 @@ const opCreateSnapshot = "CreateSnapshot" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateSnapshot func (c *StorageGateway) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Request, output *CreateSnapshotOutput) { op := &request.Operation{ Name: opCreateSnapshot, @@ -657,9 +743,8 @@ func (c *StorageGateway) CreateSnapshotRequest(input *CreateSnapshotInput) (req input = &CreateSnapshotInput{} } - req = c.newRequest(op, input, output) output = &CreateSnapshotOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -683,12 +768,11 @@ func (c *StorageGateway) CreateSnapshotRequest(input *CreateSnapshotInput) (req // ID to check the snapshot progress or later use it when you want to create // a volume from a snapshot. // -// To list or delete a snapshot, you must use the Amazon EC2 API. For more -// information, see DescribeSnapshots or DeleteSnapshot in the EC2 API reference -// (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Operations.html). +// To list or delete a snapshot, you must use the Amazon EC2 API. For more information, +// see DescribeSnapshots or DeleteSnapshot in the EC2 API reference (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Operations.html). // -// Volume and snapshot IDs are changing to a longer length ID format. For -// more information, see the important note on the Welcome (http://docs.aws.amazon.com/storagegateway/latest/APIReference/Welcome.html) +// Volume and snapshot IDs are changing to a longer length ID format. For more +// information, see the important note on the Welcome (http://docs.aws.amazon.com/storagegateway/latest/APIReference/Welcome.html) // page. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -699,14 +783,19 @@ func (c *StorageGateway) CreateSnapshotRequest(input *CreateSnapshotInput) (req // API operation CreateSnapshot for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// * ErrCodeServiceUnavailableError "ServiceUnavailableError" +// An internal server error has occurred because the service is unavailable. +// For more information, see the error and message fields. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateSnapshot func (c *StorageGateway) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error) { req, out := c.CreateSnapshotRequest(input) err := req.Send() @@ -739,6 +828,7 @@ const opCreateSnapshotFromVolumeRecoveryPoint = "CreateSnapshotFromVolumeRecover // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateSnapshotFromVolumeRecoveryPoint func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPointRequest(input *CreateSnapshotFromVolumeRecoveryPointInput) (req *request.Request, output *CreateSnapshotFromVolumeRecoveryPointOutput) { op := &request.Operation{ Name: opCreateSnapshotFromVolumeRecoveryPoint, @@ -750,9 +840,8 @@ func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPointRequest(input *Cre input = &CreateSnapshotFromVolumeRecoveryPointInput{} } - req = c.newRequest(op, input, output) output = &CreateSnapshotFromVolumeRecoveryPointOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -773,8 +862,8 @@ func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPointRequest(input *Cre // can use this snapshot ID to check the snapshot progress or later use it when // you want to create a volume from a snapshot. // -// To list or delete a snapshot, you must use the Amazon EC2 API. For more -// information, in Amazon Elastic Compute Cloud API Reference. +// To list or delete a snapshot, you must use the Amazon EC2 API. For more information, +// in Amazon Elastic Compute Cloud API Reference. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -784,14 +873,19 @@ func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPointRequest(input *Cre // API operation CreateSnapshotFromVolumeRecoveryPoint for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// * ErrCodeServiceUnavailableError "ServiceUnavailableError" +// An internal server error has occurred because the service is unavailable. +// For more information, see the error and message fields. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateSnapshotFromVolumeRecoveryPoint func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPoint(input *CreateSnapshotFromVolumeRecoveryPointInput) (*CreateSnapshotFromVolumeRecoveryPointOutput, error) { req, out := c.CreateSnapshotFromVolumeRecoveryPointRequest(input) err := req.Send() @@ -824,6 +918,7 @@ const opCreateStorediSCSIVolume = "CreateStorediSCSIVolume" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateStorediSCSIVolume func (c *StorageGateway) CreateStorediSCSIVolumeRequest(input *CreateStorediSCSIVolumeInput) (req *request.Request, output *CreateStorediSCSIVolumeOutput) { op := &request.Operation{ Name: opCreateStorediSCSIVolume, @@ -835,9 +930,8 @@ func (c *StorageGateway) CreateStorediSCSIVolumeRequest(input *CreateStorediSCSI input = &CreateStorediSCSIVolumeInput{} } - req = c.newRequest(op, input, output) output = &CreateStorediSCSIVolumeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -851,9 +945,9 @@ func (c *StorageGateway) CreateStorediSCSIVolumeRequest(input *CreateStorediSCSI // snapshot, or create an empty volume. If you choose to create an empty gateway // volume, then any existing data on the disk is erased. // -// In the request you must specify the gateway and the disk information on -// which you are creating the volume. In response, AWS Storage Gateway creates -// the volume and returns volume information such as the volume Amazon Resource +// In the request you must specify the gateway and the disk information on which +// you are creating the volume. In response, AWS Storage Gateway creates the +// volume and returns volume information such as the volume Amazon Resource // Name (ARN), its size, and the iSCSI target ARN that initiators can use to // connect to the volume target. // @@ -865,14 +959,15 @@ func (c *StorageGateway) CreateStorediSCSIVolumeRequest(input *CreateStorediSCSI // API operation CreateStorediSCSIVolume for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateStorediSCSIVolume func (c *StorageGateway) CreateStorediSCSIVolume(input *CreateStorediSCSIVolumeInput) (*CreateStorediSCSIVolumeOutput, error) { req, out := c.CreateStorediSCSIVolumeRequest(input) err := req.Send() @@ -905,6 +1000,7 @@ const opCreateTapeWithBarcode = "CreateTapeWithBarcode" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateTapeWithBarcode func (c *StorageGateway) CreateTapeWithBarcodeRequest(input *CreateTapeWithBarcodeInput) (req *request.Request, output *CreateTapeWithBarcodeOutput) { op := &request.Operation{ Name: opCreateTapeWithBarcode, @@ -916,9 +1012,8 @@ func (c *StorageGateway) CreateTapeWithBarcodeRequest(input *CreateTapeWithBarco input = &CreateTapeWithBarcodeInput{} } - req = c.newRequest(op, input, output) output = &CreateTapeWithBarcodeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -938,14 +1033,15 @@ func (c *StorageGateway) CreateTapeWithBarcodeRequest(input *CreateTapeWithBarco // API operation CreateTapeWithBarcode for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateTapeWithBarcode func (c *StorageGateway) CreateTapeWithBarcode(input *CreateTapeWithBarcodeInput) (*CreateTapeWithBarcodeOutput, error) { req, out := c.CreateTapeWithBarcodeRequest(input) err := req.Send() @@ -978,6 +1074,7 @@ const opCreateTapes = "CreateTapes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateTapes func (c *StorageGateway) CreateTapesRequest(input *CreateTapesInput) (req *request.Request, output *CreateTapesOutput) { op := &request.Operation{ Name: opCreateTapes, @@ -989,9 +1086,8 @@ func (c *StorageGateway) CreateTapesRequest(input *CreateTapesInput) (req *reque input = &CreateTapesInput{} } - req = c.newRequest(op, input, output) output = &CreateTapesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1011,14 +1107,15 @@ func (c *StorageGateway) CreateTapesRequest(input *CreateTapesInput) (req *reque // API operation CreateTapes for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateTapes func (c *StorageGateway) CreateTapes(input *CreateTapesInput) (*CreateTapesOutput, error) { req, out := c.CreateTapesRequest(input) err := req.Send() @@ -1051,6 +1148,7 @@ const opDeleteBandwidthRateLimit = "DeleteBandwidthRateLimit" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteBandwidthRateLimit func (c *StorageGateway) DeleteBandwidthRateLimitRequest(input *DeleteBandwidthRateLimitInput) (req *request.Request, output *DeleteBandwidthRateLimitOutput) { op := &request.Operation{ Name: opDeleteBandwidthRateLimit, @@ -1062,9 +1160,8 @@ func (c *StorageGateway) DeleteBandwidthRateLimitRequest(input *DeleteBandwidthR input = &DeleteBandwidthRateLimitInput{} } - req = c.newRequest(op, input, output) output = &DeleteBandwidthRateLimitOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1084,14 +1181,15 @@ func (c *StorageGateway) DeleteBandwidthRateLimitRequest(input *DeleteBandwidthR // API operation DeleteBandwidthRateLimit for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteBandwidthRateLimit func (c *StorageGateway) DeleteBandwidthRateLimit(input *DeleteBandwidthRateLimitInput) (*DeleteBandwidthRateLimitOutput, error) { req, out := c.DeleteBandwidthRateLimitRequest(input) err := req.Send() @@ -1124,6 +1222,7 @@ const opDeleteChapCredentials = "DeleteChapCredentials" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteChapCredentials func (c *StorageGateway) DeleteChapCredentialsRequest(input *DeleteChapCredentialsInput) (req *request.Request, output *DeleteChapCredentialsOutput) { op := &request.Operation{ Name: opDeleteChapCredentials, @@ -1135,9 +1234,8 @@ func (c *StorageGateway) DeleteChapCredentialsRequest(input *DeleteChapCredentia input = &DeleteChapCredentialsInput{} } - req = c.newRequest(op, input, output) output = &DeleteChapCredentialsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1154,20 +1252,91 @@ func (c *StorageGateway) DeleteChapCredentialsRequest(input *DeleteChapCredentia // API operation DeleteChapCredentials for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteChapCredentials func (c *StorageGateway) DeleteChapCredentials(input *DeleteChapCredentialsInput) (*DeleteChapCredentialsOutput, error) { req, out := c.DeleteChapCredentialsRequest(input) err := req.Send() return out, err } +const opDeleteFileShare = "DeleteFileShare" + +// DeleteFileShareRequest generates a "aws/request.Request" representing the +// client's request for the DeleteFileShare operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteFileShare for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteFileShare method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteFileShareRequest method. +// req, resp := client.DeleteFileShareRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteFileShare +func (c *StorageGateway) DeleteFileShareRequest(input *DeleteFileShareInput) (req *request.Request, output *DeleteFileShareOutput) { + op := &request.Operation{ + Name: opDeleteFileShare, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteFileShareInput{} + } + + output = &DeleteFileShareOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteFileShare API operation for AWS Storage Gateway. +// +// Deletes a file share from a file gateway. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DeleteFileShare for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * ErrCodeInternalServerError "InternalServerError" +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteFileShare +func (c *StorageGateway) DeleteFileShare(input *DeleteFileShareInput) (*DeleteFileShareOutput, error) { + req, out := c.DeleteFileShareRequest(input) + err := req.Send() + return out, err +} + const opDeleteGateway = "DeleteGateway" // DeleteGatewayRequest generates a "aws/request.Request" representing the @@ -1194,6 +1363,7 @@ const opDeleteGateway = "DeleteGateway" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteGateway func (c *StorageGateway) DeleteGatewayRequest(input *DeleteGatewayInput) (req *request.Request, output *DeleteGatewayOutput) { op := &request.Operation{ Name: opDeleteGateway, @@ -1205,9 +1375,8 @@ func (c *StorageGateway) DeleteGatewayRequest(input *DeleteGatewayInput) (req *r input = &DeleteGatewayInput{} } - req = c.newRequest(op, input, output) output = &DeleteGatewayOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1223,7 +1392,7 @@ func (c *StorageGateway) DeleteGatewayRequest(input *DeleteGatewayInput) (req *r // pending snapshots will not complete. After you delete a gateway, your next // step is to remove it from your environment. // -// You no longer pay software charges after the gateway is deleted; however, +// You no longer pay software charges after the gateway is deleted; however, // your existing Amazon EBS snapshots persist and you will continue to be billed // for these snapshots. You can choose to remove all remaining Amazon EBS snapshots // by canceling your Amazon EC2 subscription.  If you prefer not to cancel your @@ -1238,14 +1407,15 @@ func (c *StorageGateway) DeleteGatewayRequest(input *DeleteGatewayInput) (req *r // API operation DeleteGateway for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteGateway func (c *StorageGateway) DeleteGateway(input *DeleteGatewayInput) (*DeleteGatewayOutput, error) { req, out := c.DeleteGatewayRequest(input) err := req.Send() @@ -1278,6 +1448,7 @@ const opDeleteSnapshotSchedule = "DeleteSnapshotSchedule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteSnapshotSchedule func (c *StorageGateway) DeleteSnapshotScheduleRequest(input *DeleteSnapshotScheduleInput) (req *request.Request, output *DeleteSnapshotScheduleOutput) { op := &request.Operation{ Name: opDeleteSnapshotSchedule, @@ -1289,9 +1460,8 @@ func (c *StorageGateway) DeleteSnapshotScheduleRequest(input *DeleteSnapshotSche input = &DeleteSnapshotScheduleInput{} } - req = c.newRequest(op, input, output) output = &DeleteSnapshotScheduleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1299,13 +1469,13 @@ func (c *StorageGateway) DeleteSnapshotScheduleRequest(input *DeleteSnapshotSche // // Deletes a snapshot of a volume. // -// You can take snapshots of your gateway volumes on a scheduled or ad hoc -// basis. This API action enables you to delete a snapshot schedule for a volume. -// For more information, see Working with Snapshots (http://docs.aws.amazon.com/storagegateway/latest/userguide/WorkingWithSnapshots.html). +// You can take snapshots of your gateway volumes on a scheduled or ad hoc basis. +// This API action enables you to delete a snapshot schedule for a volume. For +// more information, see Working with Snapshots (http://docs.aws.amazon.com/storagegateway/latest/userguide/WorkingWithSnapshots.html). // In the DeleteSnapshotSchedule request, you identify the volume by providing // its Amazon Resource Name (ARN). // -// To list or delete a snapshot, you must use the Amazon EC2 API. in Amazon +// To list or delete a snapshot, you must use the Amazon EC2 API. in Amazon // Elastic Compute Cloud API Reference. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1316,14 +1486,15 @@ func (c *StorageGateway) DeleteSnapshotScheduleRequest(input *DeleteSnapshotSche // API operation DeleteSnapshotSchedule for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteSnapshotSchedule func (c *StorageGateway) DeleteSnapshotSchedule(input *DeleteSnapshotScheduleInput) (*DeleteSnapshotScheduleOutput, error) { req, out := c.DeleteSnapshotScheduleRequest(input) err := req.Send() @@ -1356,6 +1527,7 @@ const opDeleteTape = "DeleteTape" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteTape func (c *StorageGateway) DeleteTapeRequest(input *DeleteTapeInput) (req *request.Request, output *DeleteTapeOutput) { op := &request.Operation{ Name: opDeleteTape, @@ -1367,9 +1539,8 @@ func (c *StorageGateway) DeleteTapeRequest(input *DeleteTapeInput) (req *request input = &DeleteTapeInput{} } - req = c.newRequest(op, input, output) output = &DeleteTapeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1385,14 +1556,15 @@ func (c *StorageGateway) DeleteTapeRequest(input *DeleteTapeInput) (req *request // API operation DeleteTape for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteTape func (c *StorageGateway) DeleteTape(input *DeleteTapeInput) (*DeleteTapeOutput, error) { req, out := c.DeleteTapeRequest(input) err := req.Send() @@ -1425,6 +1597,7 @@ const opDeleteTapeArchive = "DeleteTapeArchive" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteTapeArchive func (c *StorageGateway) DeleteTapeArchiveRequest(input *DeleteTapeArchiveInput) (req *request.Request, output *DeleteTapeArchiveOutput) { op := &request.Operation{ Name: opDeleteTapeArchive, @@ -1436,9 +1609,8 @@ func (c *StorageGateway) DeleteTapeArchiveRequest(input *DeleteTapeArchiveInput) input = &DeleteTapeArchiveInput{} } - req = c.newRequest(op, input, output) output = &DeleteTapeArchiveOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1454,14 +1626,15 @@ func (c *StorageGateway) DeleteTapeArchiveRequest(input *DeleteTapeArchiveInput) // API operation DeleteTapeArchive for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteTapeArchive func (c *StorageGateway) DeleteTapeArchive(input *DeleteTapeArchiveInput) (*DeleteTapeArchiveOutput, error) { req, out := c.DeleteTapeArchiveRequest(input) err := req.Send() @@ -1494,6 +1667,7 @@ const opDeleteVolume = "DeleteVolume" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteVolume func (c *StorageGateway) DeleteVolumeRequest(input *DeleteVolumeInput) (req *request.Request, output *DeleteVolumeOutput) { op := &request.Operation{ Name: opDeleteVolume, @@ -1505,9 +1679,8 @@ func (c *StorageGateway) DeleteVolumeRequest(input *DeleteVolumeInput) (req *req input = &DeleteVolumeInput{} } - req = c.newRequest(op, input, output) output = &DeleteVolumeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1536,14 +1709,15 @@ func (c *StorageGateway) DeleteVolumeRequest(input *DeleteVolumeInput) (req *req // API operation DeleteVolume for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteVolume func (c *StorageGateway) DeleteVolume(input *DeleteVolumeInput) (*DeleteVolumeOutput, error) { req, out := c.DeleteVolumeRequest(input) err := req.Send() @@ -1576,6 +1750,7 @@ const opDescribeBandwidthRateLimit = "DescribeBandwidthRateLimit" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeBandwidthRateLimit func (c *StorageGateway) DescribeBandwidthRateLimitRequest(input *DescribeBandwidthRateLimitInput) (req *request.Request, output *DescribeBandwidthRateLimitOutput) { op := &request.Operation{ Name: opDescribeBandwidthRateLimit, @@ -1587,9 +1762,8 @@ func (c *StorageGateway) DescribeBandwidthRateLimitRequest(input *DescribeBandwi input = &DescribeBandwidthRateLimitInput{} } - req = c.newRequest(op, input, output) output = &DescribeBandwidthRateLimitOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1611,14 +1785,15 @@ func (c *StorageGateway) DescribeBandwidthRateLimitRequest(input *DescribeBandwi // API operation DescribeBandwidthRateLimit for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeBandwidthRateLimit func (c *StorageGateway) DescribeBandwidthRateLimit(input *DescribeBandwidthRateLimitInput) (*DescribeBandwidthRateLimitOutput, error) { req, out := c.DescribeBandwidthRateLimitRequest(input) err := req.Send() @@ -1651,6 +1826,7 @@ const opDescribeCache = "DescribeCache" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeCache func (c *StorageGateway) DescribeCacheRequest(input *DescribeCacheInput) (req *request.Request, output *DescribeCacheOutput) { op := &request.Operation{ Name: opDescribeCache, @@ -1662,9 +1838,8 @@ func (c *StorageGateway) DescribeCacheRequest(input *DescribeCacheInput) (req *r input = &DescribeCacheInput{} } - req = c.newRequest(op, input, output) output = &DescribeCacheOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1684,14 +1859,15 @@ func (c *StorageGateway) DescribeCacheRequest(input *DescribeCacheInput) (req *r // API operation DescribeCache for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeCache func (c *StorageGateway) DescribeCache(input *DescribeCacheInput) (*DescribeCacheOutput, error) { req, out := c.DescribeCacheRequest(input) err := req.Send() @@ -1724,6 +1900,7 @@ const opDescribeCachediSCSIVolumes = "DescribeCachediSCSIVolumes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeCachediSCSIVolumes func (c *StorageGateway) DescribeCachediSCSIVolumesRequest(input *DescribeCachediSCSIVolumesInput) (req *request.Request, output *DescribeCachediSCSIVolumesOutput) { op := &request.Operation{ Name: opDescribeCachediSCSIVolumes, @@ -1735,9 +1912,8 @@ func (c *StorageGateway) DescribeCachediSCSIVolumesRequest(input *DescribeCached input = &DescribeCachediSCSIVolumesInput{} } - req = c.newRequest(op, input, output) output = &DescribeCachediSCSIVolumesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1746,9 +1922,9 @@ func (c *StorageGateway) DescribeCachediSCSIVolumesRequest(input *DescribeCached // Returns a description of the gateway volumes specified in the request. This // operation is supported only for the gateway-cached volume architecture. // -// The list of gateway volumes in the request must be from one gateway. In -// the response Amazon Storage Gateway returns volume information sorted by -// volume Amazon Resource Name (ARN). +// The list of gateway volumes in the request must be from one gateway. In the +// response Amazon Storage Gateway returns volume information sorted by volume +// Amazon Resource Name (ARN). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1758,14 +1934,15 @@ func (c *StorageGateway) DescribeCachediSCSIVolumesRequest(input *DescribeCached // API operation DescribeCachediSCSIVolumes for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeCachediSCSIVolumes func (c *StorageGateway) DescribeCachediSCSIVolumes(input *DescribeCachediSCSIVolumesInput) (*DescribeCachediSCSIVolumesOutput, error) { req, out := c.DescribeCachediSCSIVolumesRequest(input) err := req.Send() @@ -1798,6 +1975,7 @@ const opDescribeChapCredentials = "DescribeChapCredentials" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeChapCredentials func (c *StorageGateway) DescribeChapCredentialsRequest(input *DescribeChapCredentialsInput) (req *request.Request, output *DescribeChapCredentialsOutput) { op := &request.Operation{ Name: opDescribeChapCredentials, @@ -1809,9 +1987,8 @@ func (c *StorageGateway) DescribeChapCredentialsRequest(input *DescribeChapCrede input = &DescribeChapCredentialsInput{} } - req = c.newRequest(op, input, output) output = &DescribeChapCredentialsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1828,14 +2005,15 @@ func (c *StorageGateway) DescribeChapCredentialsRequest(input *DescribeChapCrede // API operation DescribeChapCredentials for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeChapCredentials func (c *StorageGateway) DescribeChapCredentials(input *DescribeChapCredentialsInput) (*DescribeChapCredentialsOutput, error) { req, out := c.DescribeChapCredentialsRequest(input) err := req.Send() @@ -1868,6 +2046,7 @@ const opDescribeGatewayInformation = "DescribeGatewayInformation" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeGatewayInformation func (c *StorageGateway) DescribeGatewayInformationRequest(input *DescribeGatewayInformationInput) (req *request.Request, output *DescribeGatewayInformationOutput) { op := &request.Operation{ Name: opDescribeGatewayInformation, @@ -1879,9 +2058,8 @@ func (c *StorageGateway) DescribeGatewayInformationRequest(input *DescribeGatewa input = &DescribeGatewayInformationInput{} } - req = c.newRequest(op, input, output) output = &DescribeGatewayInformationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1900,14 +2078,15 @@ func (c *StorageGateway) DescribeGatewayInformationRequest(input *DescribeGatewa // API operation DescribeGatewayInformation for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeGatewayInformation func (c *StorageGateway) DescribeGatewayInformation(input *DescribeGatewayInformationInput) (*DescribeGatewayInformationOutput, error) { req, out := c.DescribeGatewayInformationRequest(input) err := req.Send() @@ -1940,6 +2119,7 @@ const opDescribeMaintenanceStartTime = "DescribeMaintenanceStartTime" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeMaintenanceStartTime func (c *StorageGateway) DescribeMaintenanceStartTimeRequest(input *DescribeMaintenanceStartTimeInput) (req *request.Request, output *DescribeMaintenanceStartTimeOutput) { op := &request.Operation{ Name: opDescribeMaintenanceStartTime, @@ -1951,9 +2131,8 @@ func (c *StorageGateway) DescribeMaintenanceStartTimeRequest(input *DescribeMain input = &DescribeMaintenanceStartTimeInput{} } - req = c.newRequest(op, input, output) output = &DescribeMaintenanceStartTimeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1970,20 +2149,91 @@ func (c *StorageGateway) DescribeMaintenanceStartTimeRequest(input *DescribeMain // API operation DescribeMaintenanceStartTime for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeMaintenanceStartTime func (c *StorageGateway) DescribeMaintenanceStartTime(input *DescribeMaintenanceStartTimeInput) (*DescribeMaintenanceStartTimeOutput, error) { req, out := c.DescribeMaintenanceStartTimeRequest(input) err := req.Send() return out, err } +const opDescribeNFSFileShares = "DescribeNFSFileShares" + +// DescribeNFSFileSharesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeNFSFileShares operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeNFSFileShares for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeNFSFileShares method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeNFSFileSharesRequest method. +// req, resp := client.DescribeNFSFileSharesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeNFSFileShares +func (c *StorageGateway) DescribeNFSFileSharesRequest(input *DescribeNFSFileSharesInput) (req *request.Request, output *DescribeNFSFileSharesOutput) { + op := &request.Operation{ + Name: opDescribeNFSFileShares, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeNFSFileSharesInput{} + } + + output = &DescribeNFSFileSharesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeNFSFileShares API operation for AWS Storage Gateway. +// +// Gets a description for one or more file shares from a file gateway. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DescribeNFSFileShares for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * ErrCodeInternalServerError "InternalServerError" +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeNFSFileShares +func (c *StorageGateway) DescribeNFSFileShares(input *DescribeNFSFileSharesInput) (*DescribeNFSFileSharesOutput, error) { + req, out := c.DescribeNFSFileSharesRequest(input) + err := req.Send() + return out, err +} + const opDescribeSnapshotSchedule = "DescribeSnapshotSchedule" // DescribeSnapshotScheduleRequest generates a "aws/request.Request" representing the @@ -2010,6 +2260,7 @@ const opDescribeSnapshotSchedule = "DescribeSnapshotSchedule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeSnapshotSchedule func (c *StorageGateway) DescribeSnapshotScheduleRequest(input *DescribeSnapshotScheduleInput) (req *request.Request, output *DescribeSnapshotScheduleOutput) { op := &request.Operation{ Name: opDescribeSnapshotSchedule, @@ -2021,9 +2272,8 @@ func (c *StorageGateway) DescribeSnapshotScheduleRequest(input *DescribeSnapshot input = &DescribeSnapshotScheduleInput{} } - req = c.newRequest(op, input, output) output = &DescribeSnapshotScheduleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2041,14 +2291,15 @@ func (c *StorageGateway) DescribeSnapshotScheduleRequest(input *DescribeSnapshot // API operation DescribeSnapshotSchedule for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeSnapshotSchedule func (c *StorageGateway) DescribeSnapshotSchedule(input *DescribeSnapshotScheduleInput) (*DescribeSnapshotScheduleOutput, error) { req, out := c.DescribeSnapshotScheduleRequest(input) err := req.Send() @@ -2081,6 +2332,7 @@ const opDescribeStorediSCSIVolumes = "DescribeStorediSCSIVolumes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeStorediSCSIVolumes func (c *StorageGateway) DescribeStorediSCSIVolumesRequest(input *DescribeStorediSCSIVolumesInput) (req *request.Request, output *DescribeStorediSCSIVolumesOutput) { op := &request.Operation{ Name: opDescribeStorediSCSIVolumes, @@ -2092,9 +2344,8 @@ func (c *StorageGateway) DescribeStorediSCSIVolumesRequest(input *DescribeStored input = &DescribeStorediSCSIVolumesInput{} } - req = c.newRequest(op, input, output) output = &DescribeStorediSCSIVolumesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2113,14 +2364,15 @@ func (c *StorageGateway) DescribeStorediSCSIVolumesRequest(input *DescribeStored // API operation DescribeStorediSCSIVolumes for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeStorediSCSIVolumes func (c *StorageGateway) DescribeStorediSCSIVolumes(input *DescribeStorediSCSIVolumesInput) (*DescribeStorediSCSIVolumesOutput, error) { req, out := c.DescribeStorediSCSIVolumesRequest(input) err := req.Send() @@ -2153,6 +2405,7 @@ const opDescribeTapeArchives = "DescribeTapeArchives" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeTapeArchives func (c *StorageGateway) DescribeTapeArchivesRequest(input *DescribeTapeArchivesInput) (req *request.Request, output *DescribeTapeArchivesOutput) { op := &request.Operation{ Name: opDescribeTapeArchives, @@ -2170,9 +2423,8 @@ func (c *StorageGateway) DescribeTapeArchivesRequest(input *DescribeTapeArchives input = &DescribeTapeArchivesInput{} } - req = c.newRequest(op, input, output) output = &DescribeTapeArchivesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2192,14 +2444,15 @@ func (c *StorageGateway) DescribeTapeArchivesRequest(input *DescribeTapeArchives // API operation DescribeTapeArchives for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeTapeArchives func (c *StorageGateway) DescribeTapeArchives(input *DescribeTapeArchivesInput) (*DescribeTapeArchivesOutput, error) { req, out := c.DescribeTapeArchivesRequest(input) err := req.Send() @@ -2257,6 +2510,7 @@ const opDescribeTapeRecoveryPoints = "DescribeTapeRecoveryPoints" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeTapeRecoveryPoints func (c *StorageGateway) DescribeTapeRecoveryPointsRequest(input *DescribeTapeRecoveryPointsInput) (req *request.Request, output *DescribeTapeRecoveryPointsOutput) { op := &request.Operation{ Name: opDescribeTapeRecoveryPoints, @@ -2274,9 +2528,8 @@ func (c *StorageGateway) DescribeTapeRecoveryPointsRequest(input *DescribeTapeRe input = &DescribeTapeRecoveryPointsInput{} } - req = c.newRequest(op, input, output) output = &DescribeTapeRecoveryPointsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2285,8 +2538,8 @@ func (c *StorageGateway) DescribeTapeRecoveryPointsRequest(input *DescribeTapeRe // Returns a list of virtual tape recovery points that are available for the // specified gateway-VTL. // -// A recovery point is a point-in-time view of a virtual tape at which all -// the data on the virtual tape is consistent. If your gateway crashes, virtual +// A recovery point is a point-in-time view of a virtual tape at which all the +// data on the virtual tape is consistent. If your gateway crashes, virtual // tapes that have recovery points can be recovered to a new gateway. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2297,14 +2550,15 @@ func (c *StorageGateway) DescribeTapeRecoveryPointsRequest(input *DescribeTapeRe // API operation DescribeTapeRecoveryPoints for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeTapeRecoveryPoints func (c *StorageGateway) DescribeTapeRecoveryPoints(input *DescribeTapeRecoveryPointsInput) (*DescribeTapeRecoveryPointsOutput, error) { req, out := c.DescribeTapeRecoveryPointsRequest(input) err := req.Send() @@ -2362,6 +2616,7 @@ const opDescribeTapes = "DescribeTapes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeTapes func (c *StorageGateway) DescribeTapesRequest(input *DescribeTapesInput) (req *request.Request, output *DescribeTapesOutput) { op := &request.Operation{ Name: opDescribeTapes, @@ -2379,9 +2634,8 @@ func (c *StorageGateway) DescribeTapesRequest(input *DescribeTapesInput) (req *r input = &DescribeTapesInput{} } - req = c.newRequest(op, input, output) output = &DescribeTapesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2399,14 +2653,15 @@ func (c *StorageGateway) DescribeTapesRequest(input *DescribeTapesInput) (req *r // API operation DescribeTapes for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeTapes func (c *StorageGateway) DescribeTapes(input *DescribeTapesInput) (*DescribeTapesOutput, error) { req, out := c.DescribeTapesRequest(input) err := req.Send() @@ -2464,6 +2719,7 @@ const opDescribeUploadBuffer = "DescribeUploadBuffer" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeUploadBuffer func (c *StorageGateway) DescribeUploadBufferRequest(input *DescribeUploadBufferInput) (req *request.Request, output *DescribeUploadBufferOutput) { op := &request.Operation{ Name: opDescribeUploadBuffer, @@ -2475,9 +2731,8 @@ func (c *StorageGateway) DescribeUploadBufferRequest(input *DescribeUploadBuffer input = &DescribeUploadBufferInput{} } - req = c.newRequest(op, input, output) output = &DescribeUploadBufferOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2497,14 +2752,15 @@ func (c *StorageGateway) DescribeUploadBufferRequest(input *DescribeUploadBuffer // API operation DescribeUploadBuffer for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeUploadBuffer func (c *StorageGateway) DescribeUploadBuffer(input *DescribeUploadBufferInput) (*DescribeUploadBufferOutput, error) { req, out := c.DescribeUploadBufferRequest(input) err := req.Send() @@ -2537,6 +2793,7 @@ const opDescribeVTLDevices = "DescribeVTLDevices" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeVTLDevices func (c *StorageGateway) DescribeVTLDevicesRequest(input *DescribeVTLDevicesInput) (req *request.Request, output *DescribeVTLDevicesOutput) { op := &request.Operation{ Name: opDescribeVTLDevices, @@ -2554,9 +2811,8 @@ func (c *StorageGateway) DescribeVTLDevicesRequest(input *DescribeVTLDevicesInpu input = &DescribeVTLDevicesInput{} } - req = c.newRequest(op, input, output) output = &DescribeVTLDevicesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2575,14 +2831,15 @@ func (c *StorageGateway) DescribeVTLDevicesRequest(input *DescribeVTLDevicesInpu // API operation DescribeVTLDevices for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeVTLDevices func (c *StorageGateway) DescribeVTLDevices(input *DescribeVTLDevicesInput) (*DescribeVTLDevicesOutput, error) { req, out := c.DescribeVTLDevicesRequest(input) err := req.Send() @@ -2640,6 +2897,7 @@ const opDescribeWorkingStorage = "DescribeWorkingStorage" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeWorkingStorage func (c *StorageGateway) DescribeWorkingStorageRequest(input *DescribeWorkingStorageInput) (req *request.Request, output *DescribeWorkingStorageOutput) { op := &request.Operation{ Name: opDescribeWorkingStorage, @@ -2651,9 +2909,8 @@ func (c *StorageGateway) DescribeWorkingStorageRequest(input *DescribeWorkingSto input = &DescribeWorkingStorageInput{} } - req = c.newRequest(op, input, output) output = &DescribeWorkingStorageOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2664,12 +2921,11 @@ func (c *StorageGateway) DescribeWorkingStorageRequest(input *DescribeWorkingSto // is deprecated in cached-volumes API version (20120630). Use DescribeUploadBuffer // instead. // -// Working storage is also referred to as upload buffer. You can also use -// the DescribeUploadBuffer operation to add upload buffer to a stored-volume -// gateway. +// Working storage is also referred to as upload buffer. You can also use the +// DescribeUploadBuffer operation to add upload buffer to a stored-volume gateway. // -// The response includes disk IDs that are configured as working storage, -// and it includes the amount of working storage allocated and used. +// The response includes disk IDs that are configured as working storage, and +// it includes the amount of working storage allocated and used. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2679,14 +2935,15 @@ func (c *StorageGateway) DescribeWorkingStorageRequest(input *DescribeWorkingSto // API operation DescribeWorkingStorage for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeWorkingStorage func (c *StorageGateway) DescribeWorkingStorage(input *DescribeWorkingStorageInput) (*DescribeWorkingStorageOutput, error) { req, out := c.DescribeWorkingStorageRequest(input) err := req.Send() @@ -2719,6 +2976,7 @@ const opDisableGateway = "DisableGateway" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DisableGateway func (c *StorageGateway) DisableGatewayRequest(input *DisableGatewayInput) (req *request.Request, output *DisableGatewayOutput) { op := &request.Operation{ Name: opDisableGateway, @@ -2730,9 +2988,8 @@ func (c *StorageGateway) DisableGatewayRequest(input *DisableGatewayInput) (req input = &DisableGatewayInput{} } - req = c.newRequest(op, input, output) output = &DisableGatewayOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2754,107 +3011,180 @@ func (c *StorageGateway) DisableGatewayRequest(input *DisableGatewayInput) (req // API operation DisableGateway for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DisableGateway func (c *StorageGateway) DisableGateway(input *DisableGatewayInput) (*DisableGatewayOutput, error) { req, out := c.DisableGatewayRequest(input) err := req.Send() return out, err } -const opListGateways = "ListGateways" +const opListFileShares = "ListFileShares" -// ListGatewaysRequest generates a "aws/request.Request" representing the -// client's request for the ListGateways operation. The "output" return +// ListFileSharesRequest generates a "aws/request.Request" representing the +// client's request for the ListFileShares operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // -// See ListGateways for usage and error information. +// See ListFileShares for usage and error information. // // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If -// you just want the service response, call the ListGateways method directly +// you just want the service response, call the ListFileShares method directly // instead. // // Note: You must call the "Send" method on the returned request object in order // to execute the request. // -// // Example sending a request using the ListGatewaysRequest method. -// req, resp := client.ListGatewaysRequest(params) +// // Example sending a request using the ListFileSharesRequest method. +// req, resp := client.ListFileSharesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -func (c *StorageGateway) ListGatewaysRequest(input *ListGatewaysInput) (req *request.Request, output *ListGatewaysOutput) { +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListFileShares +func (c *StorageGateway) ListFileSharesRequest(input *ListFileSharesInput) (req *request.Request, output *ListFileSharesOutput) { op := &request.Operation{ - Name: opListGateways, + Name: opListFileShares, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"Marker"}, - OutputTokens: []string{"Marker"}, - LimitToken: "Limit", - TruncationToken: "", - }, } if input == nil { - input = &ListGatewaysInput{} + input = &ListFileSharesInput{} } + output = &ListFileSharesOutput{} req = c.newRequest(op, input, output) - output = &ListGatewaysOutput{} - req.Data = output return } -// ListGateways API operation for AWS Storage Gateway. -// -// Lists gateways owned by an AWS account in a region specified in the request. -// The returned list is ordered by gateway Amazon Resource Name (ARN). -// -// By default, the operation returns a maximum of 100 gateways. This operation -// supports pagination that allows you to optionally reduce the number of gateways -// returned in a response. +// ListFileShares API operation for AWS Storage Gateway. // -// If you have more gateways than are returned in a response (that is, the -// response returns only a truncated list of your gateways), the response contains -// a marker that you can specify in your next request to fetch the next page -// of gateways. +// Gets a list of the file shares for a specific file gateway, or the list of +// file shares that belong to the calling user account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Storage Gateway's -// API operation ListGateways for usage and error information. +// API operation ListFileShares for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // -func (c *StorageGateway) ListGateways(input *ListGatewaysInput) (*ListGatewaysOutput, error) { - req, out := c.ListGatewaysRequest(input) +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListFileShares +func (c *StorageGateway) ListFileShares(input *ListFileSharesInput) (*ListFileSharesOutput, error) { + req, out := c.ListFileSharesRequest(input) err := req.Send() return out, err } -// ListGatewaysPages iterates over the pages of a ListGateways operation, -// calling the "fn" function with the response data for each page. To stop +const opListGateways = "ListGateways" + +// ListGatewaysRequest generates a "aws/request.Request" representing the +// client's request for the ListGateways operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListGateways for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListGateways method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListGatewaysRequest method. +// req, resp := client.ListGatewaysRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListGateways +func (c *StorageGateway) ListGatewaysRequest(input *ListGatewaysInput) (req *request.Request, output *ListGatewaysOutput) { + op := &request.Operation{ + Name: opListGateways, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"Marker"}, + LimitToken: "Limit", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListGatewaysInput{} + } + + output = &ListGatewaysOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListGateways API operation for AWS Storage Gateway. +// +// Lists gateways owned by an AWS account in a region specified in the request. +// The returned list is ordered by gateway Amazon Resource Name (ARN). +// +// By default, the operation returns a maximum of 100 gateways. This operation +// supports pagination that allows you to optionally reduce the number of gateways +// returned in a response. +// +// If you have more gateways than are returned in a response (that is, the response +// returns only a truncated list of your gateways), the response contains a +// marker that you can specify in your next request to fetch the next page of +// gateways. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation ListGateways for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * ErrCodeInternalServerError "InternalServerError" +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListGateways +func (c *StorageGateway) ListGateways(input *ListGatewaysInput) (*ListGatewaysOutput, error) { + req, out := c.ListGatewaysRequest(input) + err := req.Send() + return out, err +} + +// ListGatewaysPages iterates over the pages of a ListGateways operation, +// calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListGateways method for more information on how to use this operation. @@ -2904,6 +3234,7 @@ const opListLocalDisks = "ListLocalDisks" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListLocalDisks func (c *StorageGateway) ListLocalDisksRequest(input *ListLocalDisksInput) (req *request.Request, output *ListLocalDisksOutput) { op := &request.Operation{ Name: opListLocalDisks, @@ -2915,9 +3246,8 @@ func (c *StorageGateway) ListLocalDisksRequest(input *ListLocalDisksInput) (req input = &ListLocalDisksInput{} } - req = c.newRequest(op, input, output) output = &ListLocalDisksOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2942,14 +3272,15 @@ func (c *StorageGateway) ListLocalDisksRequest(input *ListLocalDisksInput) (req // API operation ListLocalDisks for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListLocalDisks func (c *StorageGateway) ListLocalDisks(input *ListLocalDisksInput) (*ListLocalDisksOutput, error) { req, out := c.ListLocalDisksRequest(input) err := req.Send() @@ -2982,6 +3313,7 @@ const opListTagsForResource = "ListTagsForResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListTagsForResource func (c *StorageGateway) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ Name: opListTagsForResource, @@ -2993,9 +3325,8 @@ func (c *StorageGateway) ListTagsForResourceRequest(input *ListTagsForResourceIn input = &ListTagsForResourceInput{} } - req = c.newRequest(op, input, output) output = &ListTagsForResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3011,14 +3342,15 @@ func (c *StorageGateway) ListTagsForResourceRequest(input *ListTagsForResourceIn // API operation ListTagsForResource for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListTagsForResource func (c *StorageGateway) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -3051,6 +3383,7 @@ const opListTapes = "ListTapes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListTapes func (c *StorageGateway) ListTapesRequest(input *ListTapesInput) (req *request.Request, output *ListTapesOutput) { op := &request.Operation{ Name: opListTapes, @@ -3062,9 +3395,8 @@ func (c *StorageGateway) ListTapesRequest(input *ListTapesInput) (req *request.R input = &ListTapesInput{} } - req = c.newRequest(op, input, output) output = &ListTapesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3075,12 +3407,11 @@ func (c *StorageGateway) ListTapesRequest(input *ListTapesInput) (req *request.R // Amazon Resource Names (ARNs). If you don't specify a tape ARN, the operation // lists all virtual tapes in both your VTL and VTS. // -// This operation supports pagination. By default, the operation returns a -// maximum of up to 100 tapes. You can optionally specify the Limit parameter -// in the body to limit the number of tapes in the response. If the number of -// tapes returned in the response is truncated, the response includes a Marker -// element that you can use in your subsequent request to retrieve the next -// set of tapes. +// This operation supports pagination. By default, the operation returns a maximum +// of up to 100 tapes. You can optionally specify the Limit parameter in the +// body to limit the number of tapes in the response. If the number of tapes +// returned in the response is truncated, the response includes a Marker element +// that you can use in your subsequent request to retrieve the next set of tapes. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3090,14 +3421,15 @@ func (c *StorageGateway) ListTapesRequest(input *ListTapesInput) (req *request.R // API operation ListTapes for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListTapes func (c *StorageGateway) ListTapes(input *ListTapesInput) (*ListTapesOutput, error) { req, out := c.ListTapesRequest(input) err := req.Send() @@ -3130,6 +3462,7 @@ const opListVolumeInitiators = "ListVolumeInitiators" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListVolumeInitiators func (c *StorageGateway) ListVolumeInitiatorsRequest(input *ListVolumeInitiatorsInput) (req *request.Request, output *ListVolumeInitiatorsOutput) { op := &request.Operation{ Name: opListVolumeInitiators, @@ -3141,9 +3474,8 @@ func (c *StorageGateway) ListVolumeInitiatorsRequest(input *ListVolumeInitiators input = &ListVolumeInitiatorsInput{} } - req = c.newRequest(op, input, output) output = &ListVolumeInitiatorsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3160,14 +3492,15 @@ func (c *StorageGateway) ListVolumeInitiatorsRequest(input *ListVolumeInitiators // API operation ListVolumeInitiators for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListVolumeInitiators func (c *StorageGateway) ListVolumeInitiators(input *ListVolumeInitiatorsInput) (*ListVolumeInitiatorsOutput, error) { req, out := c.ListVolumeInitiatorsRequest(input) err := req.Send() @@ -3200,6 +3533,7 @@ const opListVolumeRecoveryPoints = "ListVolumeRecoveryPoints" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListVolumeRecoveryPoints func (c *StorageGateway) ListVolumeRecoveryPointsRequest(input *ListVolumeRecoveryPointsInput) (req *request.Request, output *ListVolumeRecoveryPointsOutput) { op := &request.Operation{ Name: opListVolumeRecoveryPoints, @@ -3211,9 +3545,8 @@ func (c *StorageGateway) ListVolumeRecoveryPointsRequest(input *ListVolumeRecove input = &ListVolumeRecoveryPointsInput{} } - req = c.newRequest(op, input, output) output = &ListVolumeRecoveryPointsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3235,14 +3568,15 @@ func (c *StorageGateway) ListVolumeRecoveryPointsRequest(input *ListVolumeRecove // API operation ListVolumeRecoveryPoints for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListVolumeRecoveryPoints func (c *StorageGateway) ListVolumeRecoveryPoints(input *ListVolumeRecoveryPointsInput) (*ListVolumeRecoveryPointsOutput, error) { req, out := c.ListVolumeRecoveryPointsRequest(input) err := req.Send() @@ -3275,6 +3609,7 @@ const opListVolumes = "ListVolumes" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListVolumes func (c *StorageGateway) ListVolumesRequest(input *ListVolumesInput) (req *request.Request, output *ListVolumesOutput) { op := &request.Operation{ Name: opListVolumes, @@ -3292,9 +3627,8 @@ func (c *StorageGateway) ListVolumesRequest(input *ListVolumesInput) (req *reque input = &ListVolumesInput{} } - req = c.newRequest(op, input, output) output = &ListVolumesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3302,7 +3636,8 @@ func (c *StorageGateway) ListVolumesRequest(input *ListVolumesInput) (req *reque // // Lists the iSCSI stored volumes of a gateway. Results are sorted by volume // ARN. The response includes only the volume ARNs. If you want additional volume -// information, use the DescribeStorediSCSIVolumes API. +// information, use the DescribeStorediSCSIVolumes or the DescribeCachediSCSIVolumes +// API. // // The operation supports pagination. By default, the operation returns a maximum // of up to 100 volumes. You can optionally specify the Limit field in the body @@ -3319,14 +3654,15 @@ func (c *StorageGateway) ListVolumesRequest(input *ListVolumesInput) (req *reque // API operation ListVolumes for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListVolumes func (c *StorageGateway) ListVolumes(input *ListVolumesInput) (*ListVolumesOutput, error) { req, out := c.ListVolumesRequest(input) err := req.Send() @@ -3384,6 +3720,7 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RemoveTagsFromResource func (c *StorageGateway) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) { op := &request.Operation{ Name: opRemoveTagsFromResource, @@ -3395,9 +3732,8 @@ func (c *StorageGateway) RemoveTagsFromResourceRequest(input *RemoveTagsFromReso input = &RemoveTagsFromResourceInput{} } - req = c.newRequest(op, input, output) output = &RemoveTagsFromResourceOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3413,14 +3749,15 @@ func (c *StorageGateway) RemoveTagsFromResourceRequest(input *RemoveTagsFromReso // API operation RemoveTagsFromResource for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RemoveTagsFromResource func (c *StorageGateway) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { req, out := c.RemoveTagsFromResourceRequest(input) err := req.Send() @@ -3453,6 +3790,7 @@ const opResetCache = "ResetCache" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ResetCache func (c *StorageGateway) ResetCacheRequest(input *ResetCacheInput) (req *request.Request, output *ResetCacheOutput) { op := &request.Operation{ Name: opResetCache, @@ -3464,9 +3802,8 @@ func (c *StorageGateway) ResetCacheRequest(input *ResetCacheInput) (req *request input = &ResetCacheInput{} } - req = c.newRequest(op, input, output) output = &ResetCacheOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3479,7 +3816,7 @@ func (c *StorageGateway) ResetCacheRequest(input *ResetCacheInput) (req *request // or removed from the gateway. When a cache is reset, the gateway loses its // cache storage. At this point you can reconfigure the disks as cache disks. // -// If the cache disk you are resetting contains data that has not been uploaded +// If the cache disk you are resetting contains data that has not been uploaded // to Amazon S3 yet, that data can be lost. After you reset cache disks, there // will be no configured cache disks left in the gateway, so you must configure // at least one new cache disk for your gateway to function properly. @@ -3492,14 +3829,15 @@ func (c *StorageGateway) ResetCacheRequest(input *ResetCacheInput) (req *request // API operation ResetCache for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ResetCache func (c *StorageGateway) ResetCache(input *ResetCacheInput) (*ResetCacheOutput, error) { req, out := c.ResetCacheRequest(input) err := req.Send() @@ -3532,6 +3870,7 @@ const opRetrieveTapeArchive = "RetrieveTapeArchive" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RetrieveTapeArchive func (c *StorageGateway) RetrieveTapeArchiveRequest(input *RetrieveTapeArchiveInput) (req *request.Request, output *RetrieveTapeArchiveOutput) { op := &request.Operation{ Name: opRetrieveTapeArchive, @@ -3543,9 +3882,8 @@ func (c *StorageGateway) RetrieveTapeArchiveRequest(input *RetrieveTapeArchiveIn input = &RetrieveTapeArchiveInput{} } - req = c.newRequest(op, input, output) output = &RetrieveTapeArchiveOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3568,14 +3906,15 @@ func (c *StorageGateway) RetrieveTapeArchiveRequest(input *RetrieveTapeArchiveIn // API operation RetrieveTapeArchive for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RetrieveTapeArchive func (c *StorageGateway) RetrieveTapeArchive(input *RetrieveTapeArchiveInput) (*RetrieveTapeArchiveOutput, error) { req, out := c.RetrieveTapeArchiveRequest(input) err := req.Send() @@ -3608,6 +3947,7 @@ const opRetrieveTapeRecoveryPoint = "RetrieveTapeRecoveryPoint" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RetrieveTapeRecoveryPoint func (c *StorageGateway) RetrieveTapeRecoveryPointRequest(input *RetrieveTapeRecoveryPointInput) (req *request.Request, output *RetrieveTapeRecoveryPointOutput) { op := &request.Operation{ Name: opRetrieveTapeRecoveryPoint, @@ -3619,9 +3959,8 @@ func (c *StorageGateway) RetrieveTapeRecoveryPointRequest(input *RetrieveTapeRec input = &RetrieveTapeRecoveryPointInput{} } - req = c.newRequest(op, input, output) output = &RetrieveTapeRecoveryPointOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3629,9 +3968,9 @@ func (c *StorageGateway) RetrieveTapeRecoveryPointRequest(input *RetrieveTapeRec // // Retrieves the recovery point for the specified virtual tape. // -// A recovery point is a point in time view of a virtual tape at which all -// the data on the tape is consistent. If your gateway crashes, virtual tapes -// that have recovery points can be recovered to a new gateway. +// A recovery point is a point in time view of a virtual tape at which all the +// data on the tape is consistent. If your gateway crashes, virtual tapes that +// have recovery points can be recovered to a new gateway. // // The virtual tape can be retrieved to only one gateway. The retrieved tape // is read-only. The virtual tape can be retrieved to only a gateway-VTL. There @@ -3645,14 +3984,15 @@ func (c *StorageGateway) RetrieveTapeRecoveryPointRequest(input *RetrieveTapeRec // API operation RetrieveTapeRecoveryPoint for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RetrieveTapeRecoveryPoint func (c *StorageGateway) RetrieveTapeRecoveryPoint(input *RetrieveTapeRecoveryPointInput) (*RetrieveTapeRecoveryPointOutput, error) { req, out := c.RetrieveTapeRecoveryPointRequest(input) err := req.Send() @@ -3685,6 +4025,7 @@ const opSetLocalConsolePassword = "SetLocalConsolePassword" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/SetLocalConsolePassword func (c *StorageGateway) SetLocalConsolePasswordRequest(input *SetLocalConsolePasswordInput) (req *request.Request, output *SetLocalConsolePasswordOutput) { op := &request.Operation{ Name: opSetLocalConsolePassword, @@ -3696,9 +4037,8 @@ func (c *StorageGateway) SetLocalConsolePasswordRequest(input *SetLocalConsolePa input = &SetLocalConsolePasswordInput{} } - req = c.newRequest(op, input, output) output = &SetLocalConsolePasswordOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3717,14 +4057,15 @@ func (c *StorageGateway) SetLocalConsolePasswordRequest(input *SetLocalConsolePa // API operation SetLocalConsolePassword for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/SetLocalConsolePassword func (c *StorageGateway) SetLocalConsolePassword(input *SetLocalConsolePasswordInput) (*SetLocalConsolePasswordOutput, error) { req, out := c.SetLocalConsolePasswordRequest(input) err := req.Send() @@ -3757,6 +4098,7 @@ const opShutdownGateway = "ShutdownGateway" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ShutdownGateway func (c *StorageGateway) ShutdownGatewayRequest(input *ShutdownGatewayInput) (req *request.Request, output *ShutdownGatewayOutput) { op := &request.Operation{ Name: opShutdownGateway, @@ -3768,9 +4110,8 @@ func (c *StorageGateway) ShutdownGatewayRequest(input *ShutdownGatewayInput) (re input = &ShutdownGatewayInput{} } - req = c.newRequest(op, input, output) output = &ShutdownGatewayOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3785,7 +4126,7 @@ func (c *StorageGateway) ShutdownGatewayRequest(input *ShutdownGatewayInput) (re // If you want to shut down the VM, it is recommended that you first shut down // the gateway component in the VM to avoid unpredictable conditions. // -// After the gateway is shutdown, you cannot call any other API except StartGateway, +// After the gateway is shutdown, you cannot call any other API except StartGateway, // DescribeGatewayInformation, and ListGateways. For more information, see ActivateGateway. // Your applications cannot read from or write to the gateway's storage volumes, // and there are no snapshots taken. @@ -3795,9 +4136,8 @@ func (c *StorageGateway) ShutdownGatewayRequest(input *ShutdownGatewayInput) (re // You can call the DescribeGatewayInformation API to check the status. For // more information, see ActivateGateway. // -// If do not intend to use the gateway again, you must delete the gateway -// (using DeleteGateway) to no longer pay software charges associated with the -// gateway. +// If do not intend to use the gateway again, you must delete the gateway (using +// DeleteGateway) to no longer pay software charges associated with the gateway. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3807,14 +4147,15 @@ func (c *StorageGateway) ShutdownGatewayRequest(input *ShutdownGatewayInput) (re // API operation ShutdownGateway for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ShutdownGateway func (c *StorageGateway) ShutdownGateway(input *ShutdownGatewayInput) (*ShutdownGatewayOutput, error) { req, out := c.ShutdownGatewayRequest(input) err := req.Send() @@ -3847,6 +4188,7 @@ const opStartGateway = "StartGateway" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/StartGateway func (c *StorageGateway) StartGatewayRequest(input *StartGatewayInput) (req *request.Request, output *StartGatewayOutput) { op := &request.Operation{ Name: opStartGateway, @@ -3858,9 +4200,8 @@ func (c *StorageGateway) StartGatewayRequest(input *StartGatewayInput) (req *req input = &StartGatewayInput{} } - req = c.newRequest(op, input, output) output = &StartGatewayOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3876,7 +4217,7 @@ func (c *StorageGateway) StartGatewayRequest(input *StartGatewayInput) (req *req // call DescribeGatewayInformation and check the status before making any additional // API calls. For more information, see ActivateGateway. // -// To specify which gateway to start, use the Amazon Resource Name (ARN) of +// To specify which gateway to start, use the Amazon Resource Name (ARN) of // the gateway in your request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3887,14 +4228,15 @@ func (c *StorageGateway) StartGatewayRequest(input *StartGatewayInput) (req *req // API operation StartGateway for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/StartGateway func (c *StorageGateway) StartGateway(input *StartGatewayInput) (*StartGatewayOutput, error) { req, out := c.StartGatewayRequest(input) err := req.Send() @@ -3927,6 +4269,7 @@ const opUpdateBandwidthRateLimit = "UpdateBandwidthRateLimit" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateBandwidthRateLimit func (c *StorageGateway) UpdateBandwidthRateLimitRequest(input *UpdateBandwidthRateLimitInput) (req *request.Request, output *UpdateBandwidthRateLimitOutput) { op := &request.Operation{ Name: opUpdateBandwidthRateLimit, @@ -3938,9 +4281,8 @@ func (c *StorageGateway) UpdateBandwidthRateLimitRequest(input *UpdateBandwidthR input = &UpdateBandwidthRateLimitInput{} } - req = c.newRequest(op, input, output) output = &UpdateBandwidthRateLimitOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3950,9 +4292,9 @@ func (c *StorageGateway) UpdateBandwidthRateLimitRequest(input *UpdateBandwidthR // and download bandwidth rate limit or specify only one of the two. If you // don't set a bandwidth rate limit, the existing rate limit remains. // -// By default, a gateway's bandwidth rate limits are not set. If you don't -// set any limit, the gateway does not have any limitations on its bandwidth -// usage and could potentially use the maximum available bandwidth. +// By default, a gateway's bandwidth rate limits are not set. If you don't set +// any limit, the gateway does not have any limitations on its bandwidth usage +// and could potentially use the maximum available bandwidth. // // To specify which gateway to update, use the Amazon Resource Name (ARN) of // the gateway in your request. @@ -3965,14 +4307,15 @@ func (c *StorageGateway) UpdateBandwidthRateLimitRequest(input *UpdateBandwidthR // API operation UpdateBandwidthRateLimit for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateBandwidthRateLimit func (c *StorageGateway) UpdateBandwidthRateLimit(input *UpdateBandwidthRateLimitInput) (*UpdateBandwidthRateLimitOutput, error) { req, out := c.UpdateBandwidthRateLimitRequest(input) err := req.Send() @@ -4005,6 +4348,7 @@ const opUpdateChapCredentials = "UpdateChapCredentials" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateChapCredentials func (c *StorageGateway) UpdateChapCredentialsRequest(input *UpdateChapCredentialsInput) (req *request.Request, output *UpdateChapCredentialsOutput) { op := &request.Operation{ Name: opUpdateChapCredentials, @@ -4016,9 +4360,8 @@ func (c *StorageGateway) UpdateChapCredentialsRequest(input *UpdateChapCredentia input = &UpdateChapCredentialsInput{} } - req = c.newRequest(op, input, output) output = &UpdateChapCredentialsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4028,7 +4371,7 @@ func (c *StorageGateway) UpdateChapCredentialsRequest(input *UpdateChapCredentia // for a specified iSCSI target. By default, a gateway does not have CHAP enabled; // however, for added security, you might use it. // -// When you update CHAP credentials, all existing connections on the target +// When you update CHAP credentials, all existing connections on the target // are closed and initiators must reconnect with the new credentials. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -4039,14 +4382,15 @@ func (c *StorageGateway) UpdateChapCredentialsRequest(input *UpdateChapCredentia // API operation UpdateChapCredentials for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateChapCredentials func (c *StorageGateway) UpdateChapCredentials(input *UpdateChapCredentialsInput) (*UpdateChapCredentialsOutput, error) { req, out := c.UpdateChapCredentialsRequest(input) err := req.Send() @@ -4079,6 +4423,7 @@ const opUpdateGatewayInformation = "UpdateGatewayInformation" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateGatewayInformation func (c *StorageGateway) UpdateGatewayInformationRequest(input *UpdateGatewayInformationInput) (req *request.Request, output *UpdateGatewayInformationOutput) { op := &request.Operation{ Name: opUpdateGatewayInformation, @@ -4090,9 +4435,8 @@ func (c *StorageGateway) UpdateGatewayInformationRequest(input *UpdateGatewayInf input = &UpdateGatewayInformationInput{} } - req = c.newRequest(op, input, output) output = &UpdateGatewayInformationOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4114,14 +4458,15 @@ func (c *StorageGateway) UpdateGatewayInformationRequest(input *UpdateGatewayInf // API operation UpdateGatewayInformation for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateGatewayInformation func (c *StorageGateway) UpdateGatewayInformation(input *UpdateGatewayInformationInput) (*UpdateGatewayInformationOutput, error) { req, out := c.UpdateGatewayInformationRequest(input) err := req.Send() @@ -4154,6 +4499,7 @@ const opUpdateGatewaySoftwareNow = "UpdateGatewaySoftwareNow" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateGatewaySoftwareNow func (c *StorageGateway) UpdateGatewaySoftwareNowRequest(input *UpdateGatewaySoftwareNowInput) (req *request.Request, output *UpdateGatewaySoftwareNowOutput) { op := &request.Operation{ Name: opUpdateGatewaySoftwareNow, @@ -4165,9 +4511,8 @@ func (c *StorageGateway) UpdateGatewaySoftwareNowRequest(input *UpdateGatewaySof input = &UpdateGatewaySoftwareNowInput{} } - req = c.newRequest(op, input, output) output = &UpdateGatewaySoftwareNowOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4181,7 +4526,7 @@ func (c *StorageGateway) UpdateGatewaySoftwareNowRequest(input *UpdateGatewaySof // DescribeGatewayInformation to verify the gateway is in the STATE_RUNNING // state. // -// A software update forces a system restart of your gateway. You can minimize +// A software update forces a system restart of your gateway. You can minimize // the chance of any disruption to your applications by increasing your iSCSI // Initiators' timeouts. For more information about increasing iSCSI Initiator // timeouts for Windows and Linux, see Customizing Your Windows iSCSI Settings @@ -4197,14 +4542,15 @@ func (c *StorageGateway) UpdateGatewaySoftwareNowRequest(input *UpdateGatewaySof // API operation UpdateGatewaySoftwareNow for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateGatewaySoftwareNow func (c *StorageGateway) UpdateGatewaySoftwareNow(input *UpdateGatewaySoftwareNowInput) (*UpdateGatewaySoftwareNowOutput, error) { req, out := c.UpdateGatewaySoftwareNowRequest(input) err := req.Send() @@ -4237,6 +4583,7 @@ const opUpdateMaintenanceStartTime = "UpdateMaintenanceStartTime" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateMaintenanceStartTime func (c *StorageGateway) UpdateMaintenanceStartTimeRequest(input *UpdateMaintenanceStartTimeInput) (req *request.Request, output *UpdateMaintenanceStartTimeOutput) { op := &request.Operation{ Name: opUpdateMaintenanceStartTime, @@ -4248,9 +4595,8 @@ func (c *StorageGateway) UpdateMaintenanceStartTimeRequest(input *UpdateMaintena input = &UpdateMaintenanceStartTimeInput{} } - req = c.newRequest(op, input, output) output = &UpdateMaintenanceStartTimeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4268,20 +4614,94 @@ func (c *StorageGateway) UpdateMaintenanceStartTimeRequest(input *UpdateMaintena // API operation UpdateMaintenanceStartTime for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateMaintenanceStartTime func (c *StorageGateway) UpdateMaintenanceStartTime(input *UpdateMaintenanceStartTimeInput) (*UpdateMaintenanceStartTimeOutput, error) { req, out := c.UpdateMaintenanceStartTimeRequest(input) err := req.Send() return out, err } +const opUpdateNFSFileShare = "UpdateNFSFileShare" + +// UpdateNFSFileShareRequest generates a "aws/request.Request" representing the +// client's request for the UpdateNFSFileShare operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateNFSFileShare for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateNFSFileShare method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateNFSFileShareRequest method. +// req, resp := client.UpdateNFSFileShareRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateNFSFileShare +func (c *StorageGateway) UpdateNFSFileShareRequest(input *UpdateNFSFileShareInput) (req *request.Request, output *UpdateNFSFileShareOutput) { + op := &request.Operation{ + Name: opUpdateNFSFileShare, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateNFSFileShareInput{} + } + + output = &UpdateNFSFileShareOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateNFSFileShare API operation for AWS Storage Gateway. +// +// Updates a file share. +// +// To leave a file share field unchanged, set the corresponding input field +// to null. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation UpdateNFSFileShare for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * ErrCodeInternalServerError "InternalServerError" +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateNFSFileShare +func (c *StorageGateway) UpdateNFSFileShare(input *UpdateNFSFileShareInput) (*UpdateNFSFileShareOutput, error) { + req, out := c.UpdateNFSFileShareRequest(input) + err := req.Send() + return out, err +} + const opUpdateSnapshotSchedule = "UpdateSnapshotSchedule" // UpdateSnapshotScheduleRequest generates a "aws/request.Request" representing the @@ -4308,6 +4728,7 @@ const opUpdateSnapshotSchedule = "UpdateSnapshotSchedule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateSnapshotSchedule func (c *StorageGateway) UpdateSnapshotScheduleRequest(input *UpdateSnapshotScheduleInput) (req *request.Request, output *UpdateSnapshotScheduleOutput) { op := &request.Operation{ Name: opUpdateSnapshotSchedule, @@ -4319,9 +4740,8 @@ func (c *StorageGateway) UpdateSnapshotScheduleRequest(input *UpdateSnapshotSche input = &UpdateSnapshotScheduleInput{} } - req = c.newRequest(op, input, output) output = &UpdateSnapshotScheduleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4345,14 +4765,15 @@ func (c *StorageGateway) UpdateSnapshotScheduleRequest(input *UpdateSnapshotSche // API operation UpdateSnapshotSchedule for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateSnapshotSchedule func (c *StorageGateway) UpdateSnapshotSchedule(input *UpdateSnapshotScheduleInput) (*UpdateSnapshotScheduleOutput, error) { req, out := c.UpdateSnapshotScheduleRequest(input) err := req.Send() @@ -4385,6 +4806,7 @@ const opUpdateVTLDeviceType = "UpdateVTLDeviceType" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateVTLDeviceType func (c *StorageGateway) UpdateVTLDeviceTypeRequest(input *UpdateVTLDeviceTypeInput) (req *request.Request, output *UpdateVTLDeviceTypeOutput) { op := &request.Operation{ Name: opUpdateVTLDeviceType, @@ -4396,9 +4818,8 @@ func (c *StorageGateway) UpdateVTLDeviceTypeRequest(input *UpdateVTLDeviceTypeIn input = &UpdateVTLDeviceTypeInput{} } - req = c.newRequest(op, input, output) output = &UpdateVTLDeviceTypeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4417,14 +4838,15 @@ func (c *StorageGateway) UpdateVTLDeviceTypeRequest(input *UpdateVTLDeviceTypeIn // API operation UpdateVTLDeviceType for usage and error information. // // Returned Error Codes: -// * InvalidGatewayRequestException +// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error has occurred during the request. For more information, // see the error and message fields. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateVTLDeviceType func (c *StorageGateway) UpdateVTLDeviceType(input *UpdateVTLDeviceTypeInput) (*UpdateVTLDeviceTypeOutput, error) { req, out := c.UpdateVTLDeviceTypeRequest(input) err := req.Send() @@ -4433,19 +4855,20 @@ func (c *StorageGateway) UpdateVTLDeviceType(input *UpdateVTLDeviceTypeInput) (* // A JSON object containing one or more of the following fields: // -// ActivateGatewayInput$ActivationKey +// * ActivateGatewayInput$ActivationKey // -// ActivateGatewayInput$GatewayName +// * ActivateGatewayInput$GatewayName // -// ActivateGatewayInput$GatewayRegion +// * ActivateGatewayInput$GatewayRegion // -// ActivateGatewayInput$GatewayTimezone +// * ActivateGatewayInput$GatewayTimezone // -// ActivateGatewayInput$GatewayType +// * ActivateGatewayInput$GatewayType // -// ActivateGatewayInput$TapeDriveType +// * ActivateGatewayInput$TapeDriveType // -// ActivateGatewayInput$MediumChangerType +// * ActivateGatewayInput$MediumChangerType +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ActivateGatewayInput type ActivateGatewayInput struct { _ struct{} `type:"structure"` @@ -4471,7 +4894,7 @@ type ActivateGatewayInput struct { // and endpoints for AWS Storage Gateway, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#sg_region) // in the Amazon Web Services Glossary. // - // Valid Values: "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", + // Valid Values: "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", // "ap-northeast-1", "ap-northeast-2", "ap-southeast-1", "ap-southeast-2", "sa-east-1" // // GatewayRegion is a required field @@ -4492,13 +4915,13 @@ type ActivateGatewayInput struct { // The value that indicates the type of medium changer to use for gateway-VTL. // This field is optional. // - // Valid Values: "STK-L700", "AWS-Gateway-VTL" + // Valid Values: "STK-L700", "AWS-Gateway-VTL" MediumChangerType *string `min:"2" type:"string"` // The value that indicates the type of tape drive to use for gateway-VTL. This // field is optional. // - // Valid Values: "IBM-ULT3580-TD5" + // Valid Values: "IBM-ULT3580-TD5" TapeDriveType *string `min:"2" type:"string"` } @@ -4555,6 +4978,48 @@ func (s *ActivateGatewayInput) Validate() error { return nil } +// SetActivationKey sets the ActivationKey field's value. +func (s *ActivateGatewayInput) SetActivationKey(v string) *ActivateGatewayInput { + s.ActivationKey = &v + return s +} + +// SetGatewayName sets the GatewayName field's value. +func (s *ActivateGatewayInput) SetGatewayName(v string) *ActivateGatewayInput { + s.GatewayName = &v + return s +} + +// SetGatewayRegion sets the GatewayRegion field's value. +func (s *ActivateGatewayInput) SetGatewayRegion(v string) *ActivateGatewayInput { + s.GatewayRegion = &v + return s +} + +// SetGatewayTimezone sets the GatewayTimezone field's value. +func (s *ActivateGatewayInput) SetGatewayTimezone(v string) *ActivateGatewayInput { + s.GatewayTimezone = &v + return s +} + +// SetGatewayType sets the GatewayType field's value. +func (s *ActivateGatewayInput) SetGatewayType(v string) *ActivateGatewayInput { + s.GatewayType = &v + return s +} + +// SetMediumChangerType sets the MediumChangerType field's value. +func (s *ActivateGatewayInput) SetMediumChangerType(v string) *ActivateGatewayInput { + s.MediumChangerType = &v + return s +} + +// SetTapeDriveType sets the TapeDriveType field's value. +func (s *ActivateGatewayInput) SetTapeDriveType(v string) *ActivateGatewayInput { + s.TapeDriveType = &v + return s +} + // AWS Storage Gateway returns the Amazon Resource Name (ARN) of the activated // gateway. It is a string made of information such as your account, gateway // name, and region. This ARN is used to reference the gateway in other API @@ -4563,6 +5028,7 @@ func (s *ActivateGatewayInput) Validate() error { // For gateways activated prior to September 02, 2015 the gateway ARN contains // the gateway name rather than the gateway id. Changing the name of the gateway // has no effect on the gateway ARN. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ActivateGatewayOutput type ActivateGatewayOutput struct { _ struct{} `type:"structure"` @@ -4581,6 +5047,13 @@ func (s ActivateGatewayOutput) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *ActivateGatewayOutput) SetGatewayARN(v string) *ActivateGatewayOutput { + s.GatewayARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddCacheInput type AddCacheInput struct { _ struct{} `type:"structure"` @@ -4623,6 +5096,19 @@ func (s *AddCacheInput) Validate() error { return nil } +// SetDiskIds sets the DiskIds field's value. +func (s *AddCacheInput) SetDiskIds(v []*string) *AddCacheInput { + s.DiskIds = v + return s +} + +// SetGatewayARN sets the GatewayARN field's value. +func (s *AddCacheInput) SetGatewayARN(v string) *AddCacheInput { + s.GatewayARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddCacheOutput type AddCacheOutput struct { _ struct{} `type:"structure"` @@ -4641,7 +5127,14 @@ func (s AddCacheOutput) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *AddCacheOutput) SetGatewayARN(v string) *AddCacheOutput { + s.GatewayARN = &v + return s +} + // AddTagsToResourceInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddTagsToResourceInput type AddTagsToResourceInput struct { _ struct{} `type:"structure"` @@ -4653,7 +5146,7 @@ type AddTagsToResourceInput struct { // The key-value pair that represents the tag you want to add to the resource. // The value can be an empty string. // - // Valid characters for key and value are letters, spaces, and numbers representable + // Valid characters for key and value are letters, spaces, and numbers representable // in UTF-8 format, and the following special characters: + - = . _ : / @. // // Tags is a required field @@ -4699,7 +5192,20 @@ func (s *AddTagsToResourceInput) Validate() error { return nil } +// SetResourceARN sets the ResourceARN field's value. +func (s *AddTagsToResourceInput) SetResourceARN(v string) *AddTagsToResourceInput { + s.ResourceARN = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsToResourceInput) SetTags(v []*Tag) *AddTagsToResourceInput { + s.Tags = v + return s +} + // AddTagsToResourceOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddTagsToResourceOutput type AddTagsToResourceOutput struct { _ struct{} `type:"structure"` @@ -4717,6 +5223,13 @@ func (s AddTagsToResourceOutput) GoString() string { return s.String() } +// SetResourceARN sets the ResourceARN field's value. +func (s *AddTagsToResourceOutput) SetResourceARN(v string) *AddTagsToResourceOutput { + s.ResourceARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddUploadBufferInput type AddUploadBufferInput struct { _ struct{} `type:"structure"` @@ -4759,6 +5272,19 @@ func (s *AddUploadBufferInput) Validate() error { return nil } +// SetDiskIds sets the DiskIds field's value. +func (s *AddUploadBufferInput) SetDiskIds(v []*string) *AddUploadBufferInput { + s.DiskIds = v + return s +} + +// SetGatewayARN sets the GatewayARN field's value. +func (s *AddUploadBufferInput) SetGatewayARN(v string) *AddUploadBufferInput { + s.GatewayARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddUploadBufferOutput type AddUploadBufferOutput struct { _ struct{} `type:"structure"` @@ -4777,9 +5303,16 @@ func (s AddUploadBufferOutput) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *AddUploadBufferOutput) SetGatewayARN(v string) *AddUploadBufferOutput { + s.GatewayARN = &v + return s +} + // A JSON object containing one or more of the following fields: // -// AddWorkingStorageInput$DiskIds +// * AddWorkingStorageInput$DiskIds +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddWorkingStorageInput type AddWorkingStorageInput struct { _ struct{} `type:"structure"` @@ -4826,8 +5359,21 @@ func (s *AddWorkingStorageInput) Validate() error { return nil } +// SetDiskIds sets the DiskIds field's value. +func (s *AddWorkingStorageInput) SetDiskIds(v []*string) *AddWorkingStorageInput { + s.DiskIds = v + return s +} + +// SetGatewayARN sets the GatewayARN field's value. +func (s *AddWorkingStorageInput) SetGatewayARN(v string) *AddWorkingStorageInput { + s.GatewayARN = &v + return s +} + // A JSON object containing the of the gateway for which working storage was // configured. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddWorkingStorageOutput type AddWorkingStorageOutput struct { _ struct{} `type:"structure"` @@ -4846,24 +5392,45 @@ func (s AddWorkingStorageOutput) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *AddWorkingStorageOutput) SetGatewayARN(v string) *AddWorkingStorageOutput { + s.GatewayARN = &v + return s +} + +// Describes an iSCSI cached volume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CachediSCSIVolume type CachediSCSIVolume struct { _ struct{} `type:"structure"` + CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // If the cached volume was created from a snapshot, this field contains the + // snapshot ID used, e.g. snap-78e22663. Otherwise, this field is not included. SourceSnapshotId *string `type:"string"` + // The Amazon Resource Name (ARN) of the storage volume. VolumeARN *string `min:"50" type:"string"` + // The unique identifier of the volume, e.g. vol-AE4B946D. VolumeId *string `min:"12" type:"string"` + // Represents the percentage complete if the volume is restoring or bootstrapping + // that represents the percent of data transferred. This field does not appear + // in the response if the cached volume is not restoring or bootstrapping. VolumeProgress *float64 `type:"double"` + // The size of the volume in bytes. VolumeSizeInBytes *int64 `type:"long"` + // One of the VolumeStatus values that indicates the state of the storage volume. VolumeStatus *string `min:"3" type:"string"` + // One of the VolumeType enumeration values that describes the type of the volume. VolumeType *string `min:"3" type:"string"` - // Lists iSCSI information about a volume. + // An VolumeiSCSIAttributes object that represents a collection of iSCSI attributes + // for one stored volume. VolumeiSCSIAttributes *VolumeiSCSIAttributes `type:"structure"` } @@ -4877,7 +5444,62 @@ func (s CachediSCSIVolume) GoString() string { return s.String() } +// SetCreatedDate sets the CreatedDate field's value. +func (s *CachediSCSIVolume) SetCreatedDate(v time.Time) *CachediSCSIVolume { + s.CreatedDate = &v + return s +} + +// SetSourceSnapshotId sets the SourceSnapshotId field's value. +func (s *CachediSCSIVolume) SetSourceSnapshotId(v string) *CachediSCSIVolume { + s.SourceSnapshotId = &v + return s +} + +// SetVolumeARN sets the VolumeARN field's value. +func (s *CachediSCSIVolume) SetVolumeARN(v string) *CachediSCSIVolume { + s.VolumeARN = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *CachediSCSIVolume) SetVolumeId(v string) *CachediSCSIVolume { + s.VolumeId = &v + return s +} + +// SetVolumeProgress sets the VolumeProgress field's value. +func (s *CachediSCSIVolume) SetVolumeProgress(v float64) *CachediSCSIVolume { + s.VolumeProgress = &v + return s +} + +// SetVolumeSizeInBytes sets the VolumeSizeInBytes field's value. +func (s *CachediSCSIVolume) SetVolumeSizeInBytes(v int64) *CachediSCSIVolume { + s.VolumeSizeInBytes = &v + return s +} + +// SetVolumeStatus sets the VolumeStatus field's value. +func (s *CachediSCSIVolume) SetVolumeStatus(v string) *CachediSCSIVolume { + s.VolumeStatus = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *CachediSCSIVolume) SetVolumeType(v string) *CachediSCSIVolume { + s.VolumeType = &v + return s +} + +// SetVolumeiSCSIAttributes sets the VolumeiSCSIAttributes field's value. +func (s *CachediSCSIVolume) SetVolumeiSCSIAttributes(v *VolumeiSCSIAttributes) *CachediSCSIVolume { + s.VolumeiSCSIAttributes = v + return s +} + // CancelArchivalInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CancelArchivalInput type CancelArchivalInput struct { _ struct{} `type:"structure"` @@ -4926,7 +5548,20 @@ func (s *CancelArchivalInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *CancelArchivalInput) SetGatewayARN(v string) *CancelArchivalInput { + s.GatewayARN = &v + return s +} + +// SetTapeARN sets the TapeARN field's value. +func (s *CancelArchivalInput) SetTapeARN(v string) *CancelArchivalInput { + s.TapeARN = &v + return s +} + // CancelArchivalOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CancelArchivalOutput type CancelArchivalOutput struct { _ struct{} `type:"structure"` @@ -4945,7 +5580,14 @@ func (s CancelArchivalOutput) GoString() string { return s.String() } +// SetTapeARN sets the TapeARN field's value. +func (s *CancelArchivalOutput) SetTapeARN(v string) *CancelArchivalOutput { + s.TapeARN = &v + return s +} + // CancelRetrievalInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CancelRetrievalInput type CancelRetrievalInput struct { _ struct{} `type:"structure"` @@ -4994,7 +5636,20 @@ func (s *CancelRetrievalInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *CancelRetrievalInput) SetGatewayARN(v string) *CancelRetrievalInput { + s.GatewayARN = &v + return s +} + +// SetTapeARN sets the TapeARN field's value. +func (s *CancelRetrievalInput) SetTapeARN(v string) *CancelRetrievalInput { + s.TapeARN = &v + return s +} + // CancelRetrievalOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CancelRetrievalOutput type CancelRetrievalOutput struct { _ struct{} `type:"structure"` @@ -5013,8 +5668,15 @@ func (s CancelRetrievalOutput) GoString() string { return s.String() } +// SetTapeARN sets the TapeARN field's value. +func (s *CancelRetrievalOutput) SetTapeARN(v string) *CancelRetrievalOutput { + s.TapeARN = &v + return s +} + // Describes Challenge-Handshake Authentication Protocol (CHAP) information // that supports authentication between your gateway and iSCSI initiators. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ChapInfo type ChapInfo struct { _ struct{} `type:"structure"` @@ -5031,7 +5693,7 @@ type ChapInfo struct { // The Amazon Resource Name (ARN) of the volume. // - // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens + // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens // (-). TargetARN *string `min:"50" type:"string"` } @@ -5046,6 +5708,31 @@ func (s ChapInfo) GoString() string { return s.String() } +// SetInitiatorName sets the InitiatorName field's value. +func (s *ChapInfo) SetInitiatorName(v string) *ChapInfo { + s.InitiatorName = &v + return s +} + +// SetSecretToAuthenticateInitiator sets the SecretToAuthenticateInitiator field's value. +func (s *ChapInfo) SetSecretToAuthenticateInitiator(v string) *ChapInfo { + s.SecretToAuthenticateInitiator = &v + return s +} + +// SetSecretToAuthenticateTarget sets the SecretToAuthenticateTarget field's value. +func (s *ChapInfo) SetSecretToAuthenticateTarget(v string) *ChapInfo { + s.SecretToAuthenticateTarget = &v + return s +} + +// SetTargetARN sets the TargetARN field's value. +func (s *ChapInfo) SetTargetARN(v string) *ChapInfo { + s.TargetARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateCachediSCSIVolumeInput type CreateCachediSCSIVolumeInput struct { _ struct{} `type:"structure"` @@ -5063,6 +5750,12 @@ type CreateCachediSCSIVolumeInput struct { SnapshotId *string `type:"string"` + // The ARN for an existing volume. Specifying this ARN makes the new volume + // into an exact copy of the specified existing volume's latest recovery point. + // The VolumeSizeInBytes value for this new volume must be equal to or larger + // than the size of the existing volume, in bytes. + SourceVolumeARN *string `min:"50" type:"string"` + // TargetName is a required field TargetName *string `min:"1" type:"string" required:"true"` @@ -5098,6 +5791,9 @@ func (s *CreateCachediSCSIVolumeInput) Validate() error { if s.NetworkInterfaceId == nil { invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId")) } + if s.SourceVolumeARN != nil && len(*s.SourceVolumeARN) < 50 { + invalidParams.Add(request.NewErrParamMinLen("SourceVolumeARN", 50)) + } if s.TargetName == nil { invalidParams.Add(request.NewErrParamRequired("TargetName")) } @@ -5114,8 +5810,51 @@ func (s *CreateCachediSCSIVolumeInput) Validate() error { return nil } -type CreateCachediSCSIVolumeOutput struct { - _ struct{} `type:"structure"` +// SetClientToken sets the ClientToken field's value. +func (s *CreateCachediSCSIVolumeInput) SetClientToken(v string) *CreateCachediSCSIVolumeInput { + s.ClientToken = &v + return s +} + +// SetGatewayARN sets the GatewayARN field's value. +func (s *CreateCachediSCSIVolumeInput) SetGatewayARN(v string) *CreateCachediSCSIVolumeInput { + s.GatewayARN = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *CreateCachediSCSIVolumeInput) SetNetworkInterfaceId(v string) *CreateCachediSCSIVolumeInput { + s.NetworkInterfaceId = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *CreateCachediSCSIVolumeInput) SetSnapshotId(v string) *CreateCachediSCSIVolumeInput { + s.SnapshotId = &v + return s +} + +// SetSourceVolumeARN sets the SourceVolumeARN field's value. +func (s *CreateCachediSCSIVolumeInput) SetSourceVolumeARN(v string) *CreateCachediSCSIVolumeInput { + s.SourceVolumeARN = &v + return s +} + +// SetTargetName sets the TargetName field's value. +func (s *CreateCachediSCSIVolumeInput) SetTargetName(v string) *CreateCachediSCSIVolumeInput { + s.TargetName = &v + return s +} + +// SetVolumeSizeInBytes sets the VolumeSizeInBytes field's value. +func (s *CreateCachediSCSIVolumeInput) SetVolumeSizeInBytes(v int64) *CreateCachediSCSIVolumeInput { + s.VolumeSizeInBytes = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateCachediSCSIVolumeOutput +type CreateCachediSCSIVolumeOutput struct { + _ struct{} `type:"structure"` TargetARN *string `min:"50" type:"string"` @@ -5132,6 +5871,205 @@ func (s CreateCachediSCSIVolumeOutput) GoString() string { return s.String() } +// SetTargetARN sets the TargetARN field's value. +func (s *CreateCachediSCSIVolumeOutput) SetTargetARN(v string) *CreateCachediSCSIVolumeOutput { + s.TargetARN = &v + return s +} + +// SetVolumeARN sets the VolumeARN field's value. +func (s *CreateCachediSCSIVolumeOutput) SetVolumeARN(v string) *CreateCachediSCSIVolumeOutput { + s.VolumeARN = &v + return s +} + +// CreateNFSFileShareInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateNFSFileShareInput +type CreateNFSFileShareInput struct { + _ struct{} `type:"structure"` + + // The list of clients that are allowed to access the file gateway. The list + // must contain either valid IP addresses or valid CIDR blocks. + ClientList []*string `min:"1" type:"list"` + + // A unique string value that you supply that is used by file gateway to ensure + // idempotent file share creation. + // + // ClientToken is a required field + ClientToken *string `min:"5" type:"string" required:"true"` + + // The default storage class for objects put into an Amazon S3 bucket by file + // gateway. Possible values are S3_STANDARD or S3_STANDARD_IA. If this field + // is not populated, the default value S3_STANDARD is used. Optional. + DefaultStorageClass *string `min:"5" type:"string"` + + // The Amazon Resource Name (ARN) of the file gateway on which you want to create + // a file share. + // + // GatewayARN is a required field + GatewayARN *string `min:"50" type:"string" required:"true"` + + // True to use Amazon S3 server side encryption with your own AWS KMS key, or + // false to use a key managed by Amazon S3. Optional. + KMSEncrypted *bool `type:"boolean"` + + // The KMS key used for Amazon S3 server side encryption. This value can only + // be set when KmsEncrypted is true. Optional. + KMSKey *string `min:"20" type:"string"` + + // The ARN of the backend storage used for storing file data. + // + // LocationARN is a required field + LocationARN *string `min:"16" type:"string" required:"true"` + + // File share default values. Optional. + NFSFileShareDefaults *NFSFileShareDefaults `type:"structure"` + + // The ARN of the AWS Identity and Access Management (IAM) role that a file + // gateway assumes when it accesses the underlying storage. + // + // Role is a required field + Role *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateNFSFileShareInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateNFSFileShareInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateNFSFileShareInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateNFSFileShareInput"} + if s.ClientList != nil && len(s.ClientList) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientList", 1)) + } + if s.ClientToken == nil { + invalidParams.Add(request.NewErrParamRequired("ClientToken")) + } + if s.ClientToken != nil && len(*s.ClientToken) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 5)) + } + if s.DefaultStorageClass != nil && len(*s.DefaultStorageClass) < 5 { + invalidParams.Add(request.NewErrParamMinLen("DefaultStorageClass", 5)) + } + if s.GatewayARN == nil { + invalidParams.Add(request.NewErrParamRequired("GatewayARN")) + } + if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { + invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) + } + if s.KMSKey != nil && len(*s.KMSKey) < 20 { + invalidParams.Add(request.NewErrParamMinLen("KMSKey", 20)) + } + if s.LocationARN == nil { + invalidParams.Add(request.NewErrParamRequired("LocationARN")) + } + if s.LocationARN != nil && len(*s.LocationARN) < 16 { + invalidParams.Add(request.NewErrParamMinLen("LocationARN", 16)) + } + if s.Role == nil { + invalidParams.Add(request.NewErrParamRequired("Role")) + } + if s.Role != nil && len(*s.Role) < 20 { + invalidParams.Add(request.NewErrParamMinLen("Role", 20)) + } + if s.NFSFileShareDefaults != nil { + if err := s.NFSFileShareDefaults.Validate(); err != nil { + invalidParams.AddNested("NFSFileShareDefaults", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientList sets the ClientList field's value. +func (s *CreateNFSFileShareInput) SetClientList(v []*string) *CreateNFSFileShareInput { + s.ClientList = v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateNFSFileShareInput) SetClientToken(v string) *CreateNFSFileShareInput { + s.ClientToken = &v + return s +} + +// SetDefaultStorageClass sets the DefaultStorageClass field's value. +func (s *CreateNFSFileShareInput) SetDefaultStorageClass(v string) *CreateNFSFileShareInput { + s.DefaultStorageClass = &v + return s +} + +// SetGatewayARN sets the GatewayARN field's value. +func (s *CreateNFSFileShareInput) SetGatewayARN(v string) *CreateNFSFileShareInput { + s.GatewayARN = &v + return s +} + +// SetKMSEncrypted sets the KMSEncrypted field's value. +func (s *CreateNFSFileShareInput) SetKMSEncrypted(v bool) *CreateNFSFileShareInput { + s.KMSEncrypted = &v + return s +} + +// SetKMSKey sets the KMSKey field's value. +func (s *CreateNFSFileShareInput) SetKMSKey(v string) *CreateNFSFileShareInput { + s.KMSKey = &v + return s +} + +// SetLocationARN sets the LocationARN field's value. +func (s *CreateNFSFileShareInput) SetLocationARN(v string) *CreateNFSFileShareInput { + s.LocationARN = &v + return s +} + +// SetNFSFileShareDefaults sets the NFSFileShareDefaults field's value. +func (s *CreateNFSFileShareInput) SetNFSFileShareDefaults(v *NFSFileShareDefaults) *CreateNFSFileShareInput { + s.NFSFileShareDefaults = v + return s +} + +// SetRole sets the Role field's value. +func (s *CreateNFSFileShareInput) SetRole(v string) *CreateNFSFileShareInput { + s.Role = &v + return s +} + +// CreateNFSFileShareOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateNFSFileShareOutput +type CreateNFSFileShareOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the newly created file share. + FileShareARN *string `min:"50" type:"string"` +} + +// String returns the string representation +func (s CreateNFSFileShareOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateNFSFileShareOutput) GoString() string { + return s.String() +} + +// SetFileShareARN sets the FileShareARN field's value. +func (s *CreateNFSFileShareOutput) SetFileShareARN(v string) *CreateNFSFileShareOutput { + s.FileShareARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateSnapshotFromVolumeRecoveryPointInput type CreateSnapshotFromVolumeRecoveryPointInput struct { _ struct{} `type:"structure"` @@ -5174,6 +6112,19 @@ func (s *CreateSnapshotFromVolumeRecoveryPointInput) Validate() error { return nil } +// SetSnapshotDescription sets the SnapshotDescription field's value. +func (s *CreateSnapshotFromVolumeRecoveryPointInput) SetSnapshotDescription(v string) *CreateSnapshotFromVolumeRecoveryPointInput { + s.SnapshotDescription = &v + return s +} + +// SetVolumeARN sets the VolumeARN field's value. +func (s *CreateSnapshotFromVolumeRecoveryPointInput) SetVolumeARN(v string) *CreateSnapshotFromVolumeRecoveryPointInput { + s.VolumeARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateSnapshotFromVolumeRecoveryPointOutput type CreateSnapshotFromVolumeRecoveryPointOutput struct { _ struct{} `type:"structure"` @@ -5194,11 +6145,30 @@ func (s CreateSnapshotFromVolumeRecoveryPointOutput) GoString() string { return s.String() } +// SetSnapshotId sets the SnapshotId field's value. +func (s *CreateSnapshotFromVolumeRecoveryPointOutput) SetSnapshotId(v string) *CreateSnapshotFromVolumeRecoveryPointOutput { + s.SnapshotId = &v + return s +} + +// SetVolumeARN sets the VolumeARN field's value. +func (s *CreateSnapshotFromVolumeRecoveryPointOutput) SetVolumeARN(v string) *CreateSnapshotFromVolumeRecoveryPointOutput { + s.VolumeARN = &v + return s +} + +// SetVolumeRecoveryPointTime sets the VolumeRecoveryPointTime field's value. +func (s *CreateSnapshotFromVolumeRecoveryPointOutput) SetVolumeRecoveryPointTime(v string) *CreateSnapshotFromVolumeRecoveryPointOutput { + s.VolumeRecoveryPointTime = &v + return s +} + // A JSON object containing one or more of the following fields: // -// CreateSnapshotInput$SnapshotDescription +// * CreateSnapshotInput$SnapshotDescription // -// CreateSnapshotInput$VolumeARN +// * CreateSnapshotInput$VolumeARN +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateSnapshotInput type CreateSnapshotInput struct { _ struct{} `type:"structure"` @@ -5248,7 +6218,20 @@ func (s *CreateSnapshotInput) Validate() error { return nil } +// SetSnapshotDescription sets the SnapshotDescription field's value. +func (s *CreateSnapshotInput) SetSnapshotDescription(v string) *CreateSnapshotInput { + s.SnapshotDescription = &v + return s +} + +// SetVolumeARN sets the VolumeARN field's value. +func (s *CreateSnapshotInput) SetVolumeARN(v string) *CreateSnapshotInput { + s.VolumeARN = &v + return s +} + // A JSON object containing the following fields: +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateSnapshotOutput type CreateSnapshotOutput struct { _ struct{} `type:"structure"` @@ -5271,17 +6254,30 @@ func (s CreateSnapshotOutput) GoString() string { return s.String() } +// SetSnapshotId sets the SnapshotId field's value. +func (s *CreateSnapshotOutput) SetSnapshotId(v string) *CreateSnapshotOutput { + s.SnapshotId = &v + return s +} + +// SetVolumeARN sets the VolumeARN field's value. +func (s *CreateSnapshotOutput) SetVolumeARN(v string) *CreateSnapshotOutput { + s.VolumeARN = &v + return s +} + // A JSON object containing one or more of the following fields: // -// CreateStorediSCSIVolumeInput$DiskId +// * CreateStorediSCSIVolumeInput$DiskId // -// CreateStorediSCSIVolumeInput$NetworkInterfaceId +// * CreateStorediSCSIVolumeInput$NetworkInterfaceId // -// CreateStorediSCSIVolumeInput$PreserveExistingData +// * CreateStorediSCSIVolumeInput$PreserveExistingData // -// CreateStorediSCSIVolumeInput$SnapshotId +// * CreateStorediSCSIVolumeInput$SnapshotId // -// CreateStorediSCSIVolumeInput$TargetName +// * CreateStorediSCSIVolumeInput$TargetName +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateStorediSCSIVolumeInput type CreateStorediSCSIVolumeInput struct { _ struct{} `type:"structure"` @@ -5302,7 +6298,7 @@ type CreateStorediSCSIVolumeInput struct { // Only IPv4 addresses are accepted. Use DescribeGatewayInformation to get a // list of the network interfaces available on a gateway. // - // Valid Values: A valid IP address. + // Valid Values: A valid IP address. // // NetworkInterfaceId is a required field NetworkInterfaceId *string `type:"string" required:"true"` @@ -5310,7 +6306,7 @@ type CreateStorediSCSIVolumeInput struct { // Specify this field as true if you want to preserve the data on the local // disk. Otherwise, specifying this field as false creates an empty volume. // - // Valid Values: true, false + // Valid Values: true, false // // PreserveExistingData is a required field PreserveExistingData *bool `type:"boolean" required:"true"` @@ -5375,7 +6371,44 @@ func (s *CreateStorediSCSIVolumeInput) Validate() error { return nil } +// SetDiskId sets the DiskId field's value. +func (s *CreateStorediSCSIVolumeInput) SetDiskId(v string) *CreateStorediSCSIVolumeInput { + s.DiskId = &v + return s +} + +// SetGatewayARN sets the GatewayARN field's value. +func (s *CreateStorediSCSIVolumeInput) SetGatewayARN(v string) *CreateStorediSCSIVolumeInput { + s.GatewayARN = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *CreateStorediSCSIVolumeInput) SetNetworkInterfaceId(v string) *CreateStorediSCSIVolumeInput { + s.NetworkInterfaceId = &v + return s +} + +// SetPreserveExistingData sets the PreserveExistingData field's value. +func (s *CreateStorediSCSIVolumeInput) SetPreserveExistingData(v bool) *CreateStorediSCSIVolumeInput { + s.PreserveExistingData = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *CreateStorediSCSIVolumeInput) SetSnapshotId(v string) *CreateStorediSCSIVolumeInput { + s.SnapshotId = &v + return s +} + +// SetTargetName sets the TargetName field's value. +func (s *CreateStorediSCSIVolumeInput) SetTargetName(v string) *CreateStorediSCSIVolumeInput { + s.TargetName = &v + return s +} + // A JSON object containing the following fields: +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateStorediSCSIVolumeOutput type CreateStorediSCSIVolumeOutput struct { _ struct{} `type:"structure"` @@ -5400,7 +6433,26 @@ func (s CreateStorediSCSIVolumeOutput) GoString() string { return s.String() } +// SetTargetARN sets the TargetARN field's value. +func (s *CreateStorediSCSIVolumeOutput) SetTargetARN(v string) *CreateStorediSCSIVolumeOutput { + s.TargetARN = &v + return s +} + +// SetVolumeARN sets the VolumeARN field's value. +func (s *CreateStorediSCSIVolumeOutput) SetVolumeARN(v string) *CreateStorediSCSIVolumeOutput { + s.VolumeARN = &v + return s +} + +// SetVolumeSizeInBytes sets the VolumeSizeInBytes field's value. +func (s *CreateStorediSCSIVolumeOutput) SetVolumeSizeInBytes(v int64) *CreateStorediSCSIVolumeOutput { + s.VolumeSizeInBytes = &v + return s +} + // CreateTapeWithBarcodeInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateTapeWithBarcodeInput type CreateTapeWithBarcodeInput struct { _ struct{} `type:"structure"` @@ -5459,7 +6511,26 @@ func (s *CreateTapeWithBarcodeInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *CreateTapeWithBarcodeInput) SetGatewayARN(v string) *CreateTapeWithBarcodeInput { + s.GatewayARN = &v + return s +} + +// SetTapeBarcode sets the TapeBarcode field's value. +func (s *CreateTapeWithBarcodeInput) SetTapeBarcode(v string) *CreateTapeWithBarcodeInput { + s.TapeBarcode = &v + return s +} + +// SetTapeSizeInBytes sets the TapeSizeInBytes field's value. +func (s *CreateTapeWithBarcodeInput) SetTapeSizeInBytes(v int64) *CreateTapeWithBarcodeInput { + s.TapeSizeInBytes = &v + return s +} + // CreateTapeOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateTapeWithBarcodeOutput type CreateTapeWithBarcodeOutput struct { _ struct{} `type:"structure"` @@ -5478,7 +6549,14 @@ func (s CreateTapeWithBarcodeOutput) GoString() string { return s.String() } +// SetTapeARN sets the TapeARN field's value. +func (s *CreateTapeWithBarcodeOutput) SetTapeARN(v string) *CreateTapeWithBarcodeOutput { + s.TapeARN = &v + return s +} + // CreateTapesInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateTapesInput type CreateTapesInput struct { _ struct{} `type:"structure"` @@ -5566,7 +6644,38 @@ func (s *CreateTapesInput) Validate() error { return nil } +// SetClientToken sets the ClientToken field's value. +func (s *CreateTapesInput) SetClientToken(v string) *CreateTapesInput { + s.ClientToken = &v + return s +} + +// SetGatewayARN sets the GatewayARN field's value. +func (s *CreateTapesInput) SetGatewayARN(v string) *CreateTapesInput { + s.GatewayARN = &v + return s +} + +// SetNumTapesToCreate sets the NumTapesToCreate field's value. +func (s *CreateTapesInput) SetNumTapesToCreate(v int64) *CreateTapesInput { + s.NumTapesToCreate = &v + return s +} + +// SetTapeBarcodePrefix sets the TapeBarcodePrefix field's value. +func (s *CreateTapesInput) SetTapeBarcodePrefix(v string) *CreateTapesInput { + s.TapeBarcodePrefix = &v + return s +} + +// SetTapeSizeInBytes sets the TapeSizeInBytes field's value. +func (s *CreateTapesInput) SetTapeSizeInBytes(v int64) *CreateTapesInput { + s.TapeSizeInBytes = &v + return s +} + // CreateTapeOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateTapesOutput type CreateTapesOutput struct { _ struct{} `type:"structure"` @@ -5585,9 +6694,24 @@ func (s CreateTapesOutput) GoString() string { return s.String() } +// SetTapeARNs sets the TapeARNs field's value. +func (s *CreateTapesOutput) SetTapeARNs(v []*string) *CreateTapesOutput { + s.TapeARNs = v + return s +} + +// A JSON object containing the following fields: +// +// * DeleteBandwidthRateLimitInput$BandwidthType +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteBandwidthRateLimitInput type DeleteBandwidthRateLimitInput struct { _ struct{} `type:"structure"` + // One of the BandwidthType values that indicates the gateway bandwidth rate + // limit to delete. + // + // Valid Values: Upload, Download, All. + // // BandwidthType is a required field BandwidthType *string `min:"3" type:"string" required:"true"` @@ -5630,8 +6754,21 @@ func (s *DeleteBandwidthRateLimitInput) Validate() error { return nil } +// SetBandwidthType sets the BandwidthType field's value. +func (s *DeleteBandwidthRateLimitInput) SetBandwidthType(v string) *DeleteBandwidthRateLimitInput { + s.BandwidthType = &v + return s +} + +// SetGatewayARN sets the GatewayARN field's value. +func (s *DeleteBandwidthRateLimitInput) SetGatewayARN(v string) *DeleteBandwidthRateLimitInput { + s.GatewayARN = &v + return s +} + // A JSON object containing the of the gateway whose bandwidth rate information // was deleted. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteBandwidthRateLimitOutput type DeleteBandwidthRateLimitOutput struct { _ struct{} `type:"structure"` @@ -5650,11 +6787,18 @@ func (s DeleteBandwidthRateLimitOutput) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *DeleteBandwidthRateLimitOutput) SetGatewayARN(v string) *DeleteBandwidthRateLimitOutput { + s.GatewayARN = &v + return s +} + // A JSON object containing one or more of the following fields: // -// DeleteChapCredentialsInput$InitiatorName +// * DeleteChapCredentialsInput$InitiatorName // -// DeleteChapCredentialsInput$TargetARN +// * DeleteChapCredentialsInput$TargetARN +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteChapCredentialsInput type DeleteChapCredentialsInput struct { _ struct{} `type:"structure"` @@ -5702,7 +6846,20 @@ func (s *DeleteChapCredentialsInput) Validate() error { return nil } +// SetInitiatorName sets the InitiatorName field's value. +func (s *DeleteChapCredentialsInput) SetInitiatorName(v string) *DeleteChapCredentialsInput { + s.InitiatorName = &v + return s +} + +// SetTargetARN sets the TargetARN field's value. +func (s *DeleteChapCredentialsInput) SetTargetARN(v string) *DeleteChapCredentialsInput { + s.TargetARN = &v + return s +} + // A JSON object containing the following fields: +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteChapCredentialsOutput type DeleteChapCredentialsOutput struct { _ struct{} `type:"structure"` @@ -5723,7 +6880,88 @@ func (s DeleteChapCredentialsOutput) GoString() string { return s.String() } +// SetInitiatorName sets the InitiatorName field's value. +func (s *DeleteChapCredentialsOutput) SetInitiatorName(v string) *DeleteChapCredentialsOutput { + s.InitiatorName = &v + return s +} + +// SetTargetARN sets the TargetARN field's value. +func (s *DeleteChapCredentialsOutput) SetTargetARN(v string) *DeleteChapCredentialsOutput { + s.TargetARN = &v + return s +} + +// DeleteFileShareInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteFileShareInput +type DeleteFileShareInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the file share to be deleted. + // + // FileShareARN is a required field + FileShareARN *string `min:"50" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteFileShareInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFileShareInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteFileShareInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFileShareInput"} + if s.FileShareARN == nil { + invalidParams.Add(request.NewErrParamRequired("FileShareARN")) + } + if s.FileShareARN != nil && len(*s.FileShareARN) < 50 { + invalidParams.Add(request.NewErrParamMinLen("FileShareARN", 50)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFileShareARN sets the FileShareARN field's value. +func (s *DeleteFileShareInput) SetFileShareARN(v string) *DeleteFileShareInput { + s.FileShareARN = &v + return s +} + +// DeleteFileShareOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteFileShareOutput +type DeleteFileShareOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the deleted file share. + FileShareARN *string `min:"50" type:"string"` +} + +// String returns the string representation +func (s DeleteFileShareOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFileShareOutput) GoString() string { + return s.String() +} + +// SetFileShareARN sets the FileShareARN field's value. +func (s *DeleteFileShareOutput) SetFileShareARN(v string) *DeleteFileShareOutput { + s.FileShareARN = &v + return s +} + // A JSON object containing the id of the gateway to delete. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteGatewayInput type DeleteGatewayInput struct { _ struct{} `type:"structure"` @@ -5760,7 +6998,14 @@ func (s *DeleteGatewayInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *DeleteGatewayInput) SetGatewayARN(v string) *DeleteGatewayInput { + s.GatewayARN = &v + return s +} + // A JSON object containing the id of the deleted gateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteGatewayOutput type DeleteGatewayOutput struct { _ struct{} `type:"structure"` @@ -5779,6 +7024,13 @@ func (s DeleteGatewayOutput) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *DeleteGatewayOutput) SetGatewayARN(v string) *DeleteGatewayOutput { + s.GatewayARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteSnapshotScheduleInput type DeleteSnapshotScheduleInput struct { _ struct{} `type:"structure"` @@ -5812,6 +7064,13 @@ func (s *DeleteSnapshotScheduleInput) Validate() error { return nil } +// SetVolumeARN sets the VolumeARN field's value. +func (s *DeleteSnapshotScheduleInput) SetVolumeARN(v string) *DeleteSnapshotScheduleInput { + s.VolumeARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteSnapshotScheduleOutput type DeleteSnapshotScheduleOutput struct { _ struct{} `type:"structure"` @@ -5828,7 +7087,14 @@ func (s DeleteSnapshotScheduleOutput) GoString() string { return s.String() } +// SetVolumeARN sets the VolumeARN field's value. +func (s *DeleteSnapshotScheduleOutput) SetVolumeARN(v string) *DeleteSnapshotScheduleOutput { + s.VolumeARN = &v + return s +} + // DeleteTapeArchiveInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteTapeArchiveInput type DeleteTapeArchiveInput struct { _ struct{} `type:"structure"` @@ -5865,7 +7131,14 @@ func (s *DeleteTapeArchiveInput) Validate() error { return nil } +// SetTapeARN sets the TapeARN field's value. +func (s *DeleteTapeArchiveInput) SetTapeARN(v string) *DeleteTapeArchiveInput { + s.TapeARN = &v + return s +} + // DeleteTapeArchiveOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteTapeArchiveOutput type DeleteTapeArchiveOutput struct { _ struct{} `type:"structure"` @@ -5884,7 +7157,14 @@ func (s DeleteTapeArchiveOutput) GoString() string { return s.String() } +// SetTapeARN sets the TapeARN field's value. +func (s *DeleteTapeArchiveOutput) SetTapeARN(v string) *DeleteTapeArchiveOutput { + s.TapeARN = &v + return s +} + // DeleteTapeInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteTapeInput type DeleteTapeInput struct { _ struct{} `type:"structure"` @@ -5933,7 +7213,20 @@ func (s *DeleteTapeInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *DeleteTapeInput) SetGatewayARN(v string) *DeleteTapeInput { + s.GatewayARN = &v + return s +} + +// SetTapeARN sets the TapeARN field's value. +func (s *DeleteTapeInput) SetTapeARN(v string) *DeleteTapeInput { + s.TapeARN = &v + return s +} + // DeleteTapeOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteTapeOutput type DeleteTapeOutput struct { _ struct{} `type:"structure"` @@ -5951,7 +7244,14 @@ func (s DeleteTapeOutput) GoString() string { return s.String() } +// SetTapeARN sets the TapeARN field's value. +func (s *DeleteTapeOutput) SetTapeARN(v string) *DeleteTapeOutput { + s.TapeARN = &v + return s +} + // A JSON object containing the DeleteVolumeInput$VolumeARN to delete. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteVolumeInput type DeleteVolumeInput struct { _ struct{} `type:"structure"` @@ -5988,7 +7288,14 @@ func (s *DeleteVolumeInput) Validate() error { return nil } +// SetVolumeARN sets the VolumeARN field's value. +func (s *DeleteVolumeInput) SetVolumeARN(v string) *DeleteVolumeInput { + s.VolumeARN = &v + return s +} + // A JSON object containing the of the storage volume that was deleted +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteVolumeOutput type DeleteVolumeOutput struct { _ struct{} `type:"structure"` @@ -6007,7 +7314,14 @@ func (s DeleteVolumeOutput) GoString() string { return s.String() } +// SetVolumeARN sets the VolumeARN field's value. +func (s *DeleteVolumeOutput) SetVolumeARN(v string) *DeleteVolumeOutput { + s.VolumeARN = &v + return s +} + // A JSON object containing the of the gateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeBandwidthRateLimitInput type DescribeBandwidthRateLimitInput struct { _ struct{} `type:"structure"` @@ -6044,7 +7358,14 @@ func (s *DescribeBandwidthRateLimitInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *DescribeBandwidthRateLimitInput) SetGatewayARN(v string) *DescribeBandwidthRateLimitInput { + s.GatewayARN = &v + return s +} + // A JSON object containing the following fields: +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeBandwidthRateLimitOutput type DescribeBandwidthRateLimitOutput struct { _ struct{} `type:"structure"` @@ -6071,6 +7392,25 @@ func (s DescribeBandwidthRateLimitOutput) GoString() string { return s.String() } +// SetAverageDownloadRateLimitInBitsPerSec sets the AverageDownloadRateLimitInBitsPerSec field's value. +func (s *DescribeBandwidthRateLimitOutput) SetAverageDownloadRateLimitInBitsPerSec(v int64) *DescribeBandwidthRateLimitOutput { + s.AverageDownloadRateLimitInBitsPerSec = &v + return s +} + +// SetAverageUploadRateLimitInBitsPerSec sets the AverageUploadRateLimitInBitsPerSec field's value. +func (s *DescribeBandwidthRateLimitOutput) SetAverageUploadRateLimitInBitsPerSec(v int64) *DescribeBandwidthRateLimitOutput { + s.AverageUploadRateLimitInBitsPerSec = &v + return s +} + +// SetGatewayARN sets the GatewayARN field's value. +func (s *DescribeBandwidthRateLimitOutput) SetGatewayARN(v string) *DescribeBandwidthRateLimitOutput { + s.GatewayARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeCacheInput type DescribeCacheInput struct { _ struct{} `type:"structure"` @@ -6107,6 +7447,13 @@ func (s *DescribeCacheInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *DescribeCacheInput) SetGatewayARN(v string) *DescribeCacheInput { + s.GatewayARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeCacheOutput type DescribeCacheOutput struct { _ struct{} `type:"structure"` @@ -6137,8 +7484,51 @@ func (s DescribeCacheOutput) GoString() string { return s.String() } -type DescribeCachediSCSIVolumesInput struct { - _ struct{} `type:"structure"` +// SetCacheAllocatedInBytes sets the CacheAllocatedInBytes field's value. +func (s *DescribeCacheOutput) SetCacheAllocatedInBytes(v int64) *DescribeCacheOutput { + s.CacheAllocatedInBytes = &v + return s +} + +// SetCacheDirtyPercentage sets the CacheDirtyPercentage field's value. +func (s *DescribeCacheOutput) SetCacheDirtyPercentage(v float64) *DescribeCacheOutput { + s.CacheDirtyPercentage = &v + return s +} + +// SetCacheHitPercentage sets the CacheHitPercentage field's value. +func (s *DescribeCacheOutput) SetCacheHitPercentage(v float64) *DescribeCacheOutput { + s.CacheHitPercentage = &v + return s +} + +// SetCacheMissPercentage sets the CacheMissPercentage field's value. +func (s *DescribeCacheOutput) SetCacheMissPercentage(v float64) *DescribeCacheOutput { + s.CacheMissPercentage = &v + return s +} + +// SetCacheUsedPercentage sets the CacheUsedPercentage field's value. +func (s *DescribeCacheOutput) SetCacheUsedPercentage(v float64) *DescribeCacheOutput { + s.CacheUsedPercentage = &v + return s +} + +// SetDiskIds sets the DiskIds field's value. +func (s *DescribeCacheOutput) SetDiskIds(v []*string) *DescribeCacheOutput { + s.DiskIds = v + return s +} + +// SetGatewayARN sets the GatewayARN field's value. +func (s *DescribeCacheOutput) SetGatewayARN(v string) *DescribeCacheOutput { + s.GatewayARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeCachediSCSIVolumesInput +type DescribeCachediSCSIVolumesInput struct { + _ struct{} `type:"structure"` // VolumeARNs is a required field VolumeARNs []*string `type:"list" required:"true"` @@ -6167,7 +7557,14 @@ func (s *DescribeCachediSCSIVolumesInput) Validate() error { return nil } +// SetVolumeARNs sets the VolumeARNs field's value. +func (s *DescribeCachediSCSIVolumesInput) SetVolumeARNs(v []*string) *DescribeCachediSCSIVolumesInput { + s.VolumeARNs = v + return s +} + // A JSON object containing the following fields: +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeCachediSCSIVolumesOutput type DescribeCachediSCSIVolumesOutput struct { _ struct{} `type:"structure"` @@ -6186,8 +7583,15 @@ func (s DescribeCachediSCSIVolumesOutput) GoString() string { return s.String() } +// SetCachediSCSIVolumes sets the CachediSCSIVolumes field's value. +func (s *DescribeCachediSCSIVolumesOutput) SetCachediSCSIVolumes(v []*CachediSCSIVolume) *DescribeCachediSCSIVolumesOutput { + s.CachediSCSIVolumes = v + return s +} + // A JSON object containing the Amazon Resource Name (ARN) of the iSCSI volume // target. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeChapCredentialsInput type DescribeChapCredentialsInput struct { _ struct{} `type:"structure"` @@ -6224,7 +7628,14 @@ func (s *DescribeChapCredentialsInput) Validate() error { return nil } +// SetTargetARN sets the TargetARN field's value. +func (s *DescribeChapCredentialsInput) SetTargetARN(v string) *DescribeChapCredentialsInput { + s.TargetARN = &v + return s +} + // A JSON object containing a . +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeChapCredentialsOutput type DescribeChapCredentialsOutput struct { _ struct{} `type:"structure"` @@ -6233,16 +7644,16 @@ type DescribeChapCredentialsOutput struct { // pair. If no CHAP credentials are set, an empty array is returned. CHAP credential // information is provided in a JSON object with the following fields: // - // InitiatorName: The iSCSI initiator that connects to the target. + // * InitiatorName: The iSCSI initiator that connects to the target. // - // SecretToAuthenticateInitiator: The secret key that the initiator (for - // example, the Windows client) must provide to participate in mutual CHAP with - // the target. + // * SecretToAuthenticateInitiator: The secret key that the initiator (for + // example, the Windows client) must provide to participate in mutual CHAP + // with the target. // - // SecretToAuthenticateTarget: The secret key that the target must provide - // to participate in mutual CHAP with the initiator (e.g. Windows client). + // * SecretToAuthenticateTarget: The secret key that the target must provide + // to participate in mutual CHAP with the initiator (e.g. Windows client). // - // TargetARN: The Amazon Resource Name (ARN) of the storage volume. + // * TargetARN: The Amazon Resource Name (ARN) of the storage volume. ChapCredentials []*ChapInfo `type:"list"` } @@ -6256,7 +7667,14 @@ func (s DescribeChapCredentialsOutput) GoString() string { return s.String() } +// SetChapCredentials sets the ChapCredentials field's value. +func (s *DescribeChapCredentialsOutput) SetChapCredentials(v []*ChapInfo) *DescribeChapCredentialsOutput { + s.ChapCredentials = v + return s +} + // A JSON object containing the id of the gateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeGatewayInformationInput type DescribeGatewayInformationInput struct { _ struct{} `type:"structure"` @@ -6293,7 +7711,14 @@ func (s *DescribeGatewayInformationInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *DescribeGatewayInformationInput) SetGatewayARN(v string) *DescribeGatewayInformationInput { + s.GatewayARN = &v + return s +} + // A JSON object containing the following fields: +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeGatewayInformationOutput type DescribeGatewayInformationOutput struct { _ struct{} `type:"structure"` @@ -6343,7 +7768,62 @@ func (s DescribeGatewayInformationOutput) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *DescribeGatewayInformationOutput) SetGatewayARN(v string) *DescribeGatewayInformationOutput { + s.GatewayARN = &v + return s +} + +// SetGatewayId sets the GatewayId field's value. +func (s *DescribeGatewayInformationOutput) SetGatewayId(v string) *DescribeGatewayInformationOutput { + s.GatewayId = &v + return s +} + +// SetGatewayName sets the GatewayName field's value. +func (s *DescribeGatewayInformationOutput) SetGatewayName(v string) *DescribeGatewayInformationOutput { + s.GatewayName = &v + return s +} + +// SetGatewayNetworkInterfaces sets the GatewayNetworkInterfaces field's value. +func (s *DescribeGatewayInformationOutput) SetGatewayNetworkInterfaces(v []*NetworkInterface) *DescribeGatewayInformationOutput { + s.GatewayNetworkInterfaces = v + return s +} + +// SetGatewayState sets the GatewayState field's value. +func (s *DescribeGatewayInformationOutput) SetGatewayState(v string) *DescribeGatewayInformationOutput { + s.GatewayState = &v + return s +} + +// SetGatewayTimezone sets the GatewayTimezone field's value. +func (s *DescribeGatewayInformationOutput) SetGatewayTimezone(v string) *DescribeGatewayInformationOutput { + s.GatewayTimezone = &v + return s +} + +// SetGatewayType sets the GatewayType field's value. +func (s *DescribeGatewayInformationOutput) SetGatewayType(v string) *DescribeGatewayInformationOutput { + s.GatewayType = &v + return s +} + +// SetLastSoftwareUpdate sets the LastSoftwareUpdate field's value. +func (s *DescribeGatewayInformationOutput) SetLastSoftwareUpdate(v string) *DescribeGatewayInformationOutput { + s.LastSoftwareUpdate = &v + return s +} + +// SetNextUpdateAvailabilityDate sets the NextUpdateAvailabilityDate field's value. +func (s *DescribeGatewayInformationOutput) SetNextUpdateAvailabilityDate(v string) *DescribeGatewayInformationOutput { + s.NextUpdateAvailabilityDate = &v + return s +} + // A JSON object containing the of the gateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeMaintenanceStartTimeInput type DescribeMaintenanceStartTimeInput struct { _ struct{} `type:"structure"` @@ -6380,17 +7860,42 @@ func (s *DescribeMaintenanceStartTimeInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *DescribeMaintenanceStartTimeInput) SetGatewayARN(v string) *DescribeMaintenanceStartTimeInput { + s.GatewayARN = &v + return s +} + +// A JSON object containing the following fields: +// +// * DescribeMaintenanceStartTimeOutput$DayOfWeek +// +// * DescribeMaintenanceStartTimeOutput$HourOfDay +// +// * DescribeMaintenanceStartTimeOutput$MinuteOfHour +// +// * DescribeMaintenanceStartTimeOutput$Timezone +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeMaintenanceStartTimeOutput type DescribeMaintenanceStartTimeOutput struct { _ struct{} `type:"structure"` + // An ordinal number between 0 and 6 that represents the day of the week, where + // 0 represents Sunday and 6 represents Saturday. The day of week is in the + // time zone of the gateway. DayOfWeek *int64 `type:"integer"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `min:"50" type:"string"` + // The hour component of the maintenance start time represented as hh, where + // hh is the hour (0 to 23). The hour of the day is in the time zone of the + // gateway. HourOfDay *int64 `type:"integer"` + // The minute component of the maintenance start time represented as mm, where + // mm is the minute (0 to 59). The minute of the hour is in the time zone of + // the gateway. MinuteOfHour *int64 `type:"integer"` Timezone *string `min:"3" type:"string"` @@ -6406,8 +7911,108 @@ func (s DescribeMaintenanceStartTimeOutput) GoString() string { return s.String() } +// SetDayOfWeek sets the DayOfWeek field's value. +func (s *DescribeMaintenanceStartTimeOutput) SetDayOfWeek(v int64) *DescribeMaintenanceStartTimeOutput { + s.DayOfWeek = &v + return s +} + +// SetGatewayARN sets the GatewayARN field's value. +func (s *DescribeMaintenanceStartTimeOutput) SetGatewayARN(v string) *DescribeMaintenanceStartTimeOutput { + s.GatewayARN = &v + return s +} + +// SetHourOfDay sets the HourOfDay field's value. +func (s *DescribeMaintenanceStartTimeOutput) SetHourOfDay(v int64) *DescribeMaintenanceStartTimeOutput { + s.HourOfDay = &v + return s +} + +// SetMinuteOfHour sets the MinuteOfHour field's value. +func (s *DescribeMaintenanceStartTimeOutput) SetMinuteOfHour(v int64) *DescribeMaintenanceStartTimeOutput { + s.MinuteOfHour = &v + return s +} + +// SetTimezone sets the Timezone field's value. +func (s *DescribeMaintenanceStartTimeOutput) SetTimezone(v string) *DescribeMaintenanceStartTimeOutput { + s.Timezone = &v + return s +} + +// DescribeNFSFileSharesInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeNFSFileSharesInput +type DescribeNFSFileSharesInput struct { + _ struct{} `type:"structure"` + + // An array containing the Amazon Resource Name (ARN) of each file share to + // be described. + // + // FileShareARNList is a required field + FileShareARNList []*string `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s DescribeNFSFileSharesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeNFSFileSharesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeNFSFileSharesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeNFSFileSharesInput"} + if s.FileShareARNList == nil { + invalidParams.Add(request.NewErrParamRequired("FileShareARNList")) + } + if s.FileShareARNList != nil && len(s.FileShareARNList) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FileShareARNList", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFileShareARNList sets the FileShareARNList field's value. +func (s *DescribeNFSFileSharesInput) SetFileShareARNList(v []*string) *DescribeNFSFileSharesInput { + s.FileShareARNList = v + return s +} + +// DescribeNFSFileSharesOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeNFSFileSharesOutput +type DescribeNFSFileSharesOutput struct { + _ struct{} `type:"structure"` + + // An array containing a description for each requested file share. + NFSFileShareInfoList []*NFSFileShareInfo `type:"list"` +} + +// String returns the string representation +func (s DescribeNFSFileSharesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeNFSFileSharesOutput) GoString() string { + return s.String() +} + +// SetNFSFileShareInfoList sets the NFSFileShareInfoList field's value. +func (s *DescribeNFSFileSharesOutput) SetNFSFileShareInfoList(v []*NFSFileShareInfo) *DescribeNFSFileSharesOutput { + s.NFSFileShareInfoList = v + return s +} + // A JSON object containing the DescribeSnapshotScheduleInput$VolumeARN of the // volume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeSnapshotScheduleInput type DescribeSnapshotScheduleInput struct { _ struct{} `type:"structure"` @@ -6444,6 +8049,13 @@ func (s *DescribeSnapshotScheduleInput) Validate() error { return nil } +// SetVolumeARN sets the VolumeARN field's value. +func (s *DescribeSnapshotScheduleInput) SetVolumeARN(v string) *DescribeSnapshotScheduleInput { + s.VolumeARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeSnapshotScheduleOutput type DescribeSnapshotScheduleOutput struct { _ struct{} `type:"structure"` @@ -6468,7 +8080,38 @@ func (s DescribeSnapshotScheduleOutput) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *DescribeSnapshotScheduleOutput) SetDescription(v string) *DescribeSnapshotScheduleOutput { + s.Description = &v + return s +} + +// SetRecurrenceInHours sets the RecurrenceInHours field's value. +func (s *DescribeSnapshotScheduleOutput) SetRecurrenceInHours(v int64) *DescribeSnapshotScheduleOutput { + s.RecurrenceInHours = &v + return s +} + +// SetStartAt sets the StartAt field's value. +func (s *DescribeSnapshotScheduleOutput) SetStartAt(v int64) *DescribeSnapshotScheduleOutput { + s.StartAt = &v + return s +} + +// SetTimezone sets the Timezone field's value. +func (s *DescribeSnapshotScheduleOutput) SetTimezone(v string) *DescribeSnapshotScheduleOutput { + s.Timezone = &v + return s +} + +// SetVolumeARN sets the VolumeARN field's value. +func (s *DescribeSnapshotScheduleOutput) SetVolumeARN(v string) *DescribeSnapshotScheduleOutput { + s.VolumeARN = &v + return s +} + // A JSON object containing a list of DescribeStorediSCSIVolumesInput$VolumeARNs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeStorediSCSIVolumesInput type DescribeStorediSCSIVolumesInput struct { _ struct{} `type:"structure"` @@ -6503,6 +8146,13 @@ func (s *DescribeStorediSCSIVolumesInput) Validate() error { return nil } +// SetVolumeARNs sets the VolumeARNs field's value. +func (s *DescribeStorediSCSIVolumesInput) SetVolumeARNs(v []*string) *DescribeStorediSCSIVolumesInput { + s.VolumeARNs = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeStorediSCSIVolumesOutput type DescribeStorediSCSIVolumesOutput struct { _ struct{} `type:"structure"` @@ -6519,7 +8169,14 @@ func (s DescribeStorediSCSIVolumesOutput) GoString() string { return s.String() } +// SetStorediSCSIVolumes sets the StorediSCSIVolumes field's value. +func (s *DescribeStorediSCSIVolumesOutput) SetStorediSCSIVolumes(v []*StorediSCSIVolume) *DescribeStorediSCSIVolumesOutput { + s.StorediSCSIVolumes = v + return s +} + // DescribeTapeArchivesInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeTapeArchivesInput type DescribeTapeArchivesInput struct { _ struct{} `type:"structure"` @@ -6562,7 +8219,26 @@ func (s *DescribeTapeArchivesInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *DescribeTapeArchivesInput) SetLimit(v int64) *DescribeTapeArchivesInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeTapeArchivesInput) SetMarker(v string) *DescribeTapeArchivesInput { + s.Marker = &v + return s +} + +// SetTapeARNs sets the TapeARNs field's value. +func (s *DescribeTapeArchivesInput) SetTapeARNs(v []*string) *DescribeTapeArchivesInput { + s.TapeARNs = v + return s +} + // DescribeTapeArchivesOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeTapeArchivesOutput type DescribeTapeArchivesOutput struct { _ struct{} `type:"structure"` @@ -6590,7 +8266,20 @@ func (s DescribeTapeArchivesOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeTapeArchivesOutput) SetMarker(v string) *DescribeTapeArchivesOutput { + s.Marker = &v + return s +} + +// SetTapeArchives sets the TapeArchives field's value. +func (s *DescribeTapeArchivesOutput) SetTapeArchives(v []*TapeArchive) *DescribeTapeArchivesOutput { + s.TapeArchives = v + return s +} + // DescribeTapeRecoveryPointsInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeTapeRecoveryPointsInput type DescribeTapeRecoveryPointsInput struct { _ struct{} `type:"structure"` @@ -6641,7 +8330,26 @@ func (s *DescribeTapeRecoveryPointsInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *DescribeTapeRecoveryPointsInput) SetGatewayARN(v string) *DescribeTapeRecoveryPointsInput { + s.GatewayARN = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeTapeRecoveryPointsInput) SetLimit(v int64) *DescribeTapeRecoveryPointsInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeTapeRecoveryPointsInput) SetMarker(v string) *DescribeTapeRecoveryPointsInput { + s.Marker = &v + return s +} + // DescribeTapeRecoveryPointsOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeTapeRecoveryPointsOutput type DescribeTapeRecoveryPointsOutput struct { _ struct{} `type:"structure"` @@ -6671,7 +8379,26 @@ func (s DescribeTapeRecoveryPointsOutput) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *DescribeTapeRecoveryPointsOutput) SetGatewayARN(v string) *DescribeTapeRecoveryPointsOutput { + s.GatewayARN = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeTapeRecoveryPointsOutput) SetMarker(v string) *DescribeTapeRecoveryPointsOutput { + s.Marker = &v + return s +} + +// SetTapeRecoveryPointInfos sets the TapeRecoveryPointInfos field's value. +func (s *DescribeTapeRecoveryPointsOutput) SetTapeRecoveryPointInfos(v []*TapeRecoveryPointInfo) *DescribeTapeRecoveryPointsOutput { + s.TapeRecoveryPointInfos = v + return s +} + // DescribeTapesInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeTapesInput type DescribeTapesInput struct { _ struct{} `type:"structure"` @@ -6732,15 +8459,40 @@ func (s *DescribeTapesInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *DescribeTapesInput) SetGatewayARN(v string) *DescribeTapesInput { + s.GatewayARN = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeTapesInput) SetLimit(v int64) *DescribeTapesInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeTapesInput) SetMarker(v string) *DescribeTapesInput { + s.Marker = &v + return s +} + +// SetTapeARNs sets the TapeARNs field's value. +func (s *DescribeTapesInput) SetTapeARNs(v []*string) *DescribeTapesInput { + s.TapeARNs = v + return s +} + // DescribeTapesOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeTapesOutput type DescribeTapesOutput struct { _ struct{} `type:"structure"` // An opaque string which can be used as part of a subsequent DescribeTapes // call to retrieve the next page of results. // - // If a response does not contain a marker, then there are no more results - // to be retrieved. + // If a response does not contain a marker, then there are no more results to + // be retrieved. Marker *string `min:"1" type:"string"` // An array of virtual tape descriptions. @@ -6757,6 +8509,19 @@ func (s DescribeTapesOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *DescribeTapesOutput) SetMarker(v string) *DescribeTapesOutput { + s.Marker = &v + return s +} + +// SetTapes sets the Tapes field's value. +func (s *DescribeTapesOutput) SetTapes(v []*Tape) *DescribeTapesOutput { + s.Tapes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeUploadBufferInput type DescribeUploadBufferInput struct { _ struct{} `type:"structure"` @@ -6793,6 +8558,13 @@ func (s *DescribeUploadBufferInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *DescribeUploadBufferInput) SetGatewayARN(v string) *DescribeUploadBufferInput { + s.GatewayARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeUploadBufferOutput type DescribeUploadBufferOutput struct { _ struct{} `type:"structure"` @@ -6817,7 +8589,32 @@ func (s DescribeUploadBufferOutput) GoString() string { return s.String() } +// SetDiskIds sets the DiskIds field's value. +func (s *DescribeUploadBufferOutput) SetDiskIds(v []*string) *DescribeUploadBufferOutput { + s.DiskIds = v + return s +} + +// SetGatewayARN sets the GatewayARN field's value. +func (s *DescribeUploadBufferOutput) SetGatewayARN(v string) *DescribeUploadBufferOutput { + s.GatewayARN = &v + return s +} + +// SetUploadBufferAllocatedInBytes sets the UploadBufferAllocatedInBytes field's value. +func (s *DescribeUploadBufferOutput) SetUploadBufferAllocatedInBytes(v int64) *DescribeUploadBufferOutput { + s.UploadBufferAllocatedInBytes = &v + return s +} + +// SetUploadBufferUsedInBytes sets the UploadBufferUsedInBytes field's value. +func (s *DescribeUploadBufferOutput) SetUploadBufferUsedInBytes(v int64) *DescribeUploadBufferOutput { + s.UploadBufferUsedInBytes = &v + return s +} + // DescribeVTLDevicesInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeVTLDevicesInput type DescribeVTLDevicesInput struct { _ struct{} `type:"structure"` @@ -6876,7 +8673,32 @@ func (s *DescribeVTLDevicesInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *DescribeVTLDevicesInput) SetGatewayARN(v string) *DescribeVTLDevicesInput { + s.GatewayARN = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeVTLDevicesInput) SetLimit(v int64) *DescribeVTLDevicesInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeVTLDevicesInput) SetMarker(v string) *DescribeVTLDevicesInput { + s.Marker = &v + return s +} + +// SetVTLDeviceARNs sets the VTLDeviceARNs field's value. +func (s *DescribeVTLDevicesInput) SetVTLDeviceARNs(v []*string) *DescribeVTLDevicesInput { + s.VTLDeviceARNs = v + return s +} + // DescribeVTLDevicesOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeVTLDevicesOutput type DescribeVTLDevicesOutput struct { _ struct{} `type:"structure"` @@ -6905,7 +8727,26 @@ func (s DescribeVTLDevicesOutput) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *DescribeVTLDevicesOutput) SetGatewayARN(v string) *DescribeVTLDevicesOutput { + s.GatewayARN = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeVTLDevicesOutput) SetMarker(v string) *DescribeVTLDevicesOutput { + s.Marker = &v + return s +} + +// SetVTLDevices sets the VTLDevices field's value. +func (s *DescribeVTLDevicesOutput) SetVTLDevices(v []*VTLDevice) *DescribeVTLDevicesOutput { + s.VTLDevices = v + return s +} + // A JSON object containing the of the gateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeWorkingStorageInput type DescribeWorkingStorageInput struct { _ struct{} `type:"structure"` @@ -6942,7 +8783,14 @@ func (s *DescribeWorkingStorageInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *DescribeWorkingStorageInput) SetGatewayARN(v string) *DescribeWorkingStorageInput { + s.GatewayARN = &v + return s +} + // A JSON object containing the following fields: +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeWorkingStorageOutput type DescribeWorkingStorageOutput struct { _ struct{} `type:"structure"` @@ -6975,7 +8823,32 @@ func (s DescribeWorkingStorageOutput) GoString() string { return s.String() } +// SetDiskIds sets the DiskIds field's value. +func (s *DescribeWorkingStorageOutput) SetDiskIds(v []*string) *DescribeWorkingStorageOutput { + s.DiskIds = v + return s +} + +// SetGatewayARN sets the GatewayARN field's value. +func (s *DescribeWorkingStorageOutput) SetGatewayARN(v string) *DescribeWorkingStorageOutput { + s.GatewayARN = &v + return s +} + +// SetWorkingStorageAllocatedInBytes sets the WorkingStorageAllocatedInBytes field's value. +func (s *DescribeWorkingStorageOutput) SetWorkingStorageAllocatedInBytes(v int64) *DescribeWorkingStorageOutput { + s.WorkingStorageAllocatedInBytes = &v + return s +} + +// SetWorkingStorageUsedInBytes sets the WorkingStorageUsedInBytes field's value. +func (s *DescribeWorkingStorageOutput) SetWorkingStorageUsedInBytes(v int64) *DescribeWorkingStorageOutput { + s.WorkingStorageUsedInBytes = &v + return s +} + // Lists iSCSI information about a VTL device. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeviceiSCSIAttributes type DeviceiSCSIAttributes struct { _ struct{} `type:"structure"` @@ -7003,7 +8876,32 @@ func (s DeviceiSCSIAttributes) GoString() string { return s.String() } +// SetChapEnabled sets the ChapEnabled field's value. +func (s *DeviceiSCSIAttributes) SetChapEnabled(v bool) *DeviceiSCSIAttributes { + s.ChapEnabled = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *DeviceiSCSIAttributes) SetNetworkInterfaceId(v string) *DeviceiSCSIAttributes { + s.NetworkInterfaceId = &v + return s +} + +// SetNetworkInterfacePort sets the NetworkInterfacePort field's value. +func (s *DeviceiSCSIAttributes) SetNetworkInterfacePort(v int64) *DeviceiSCSIAttributes { + s.NetworkInterfacePort = &v + return s +} + +// SetTargetARN sets the TargetARN field's value. +func (s *DeviceiSCSIAttributes) SetTargetARN(v string) *DeviceiSCSIAttributes { + s.TargetARN = &v + return s +} + // DisableGatewayInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DisableGatewayInput type DisableGatewayInput struct { _ struct{} `type:"structure"` @@ -7040,7 +8938,14 @@ func (s *DisableGatewayInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *DisableGatewayInput) SetGatewayARN(v string) *DisableGatewayInput { + s.GatewayARN = &v + return s +} + // DisableGatewayOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DisableGatewayOutput type DisableGatewayOutput struct { _ struct{} `type:"structure"` @@ -7058,6 +8963,13 @@ func (s DisableGatewayOutput) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *DisableGatewayOutput) SetGatewayARN(v string) *DisableGatewayOutput { + s.GatewayARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/Disk type Disk struct { _ struct{} `type:"structure"` @@ -7086,9 +8998,52 @@ func (s Disk) GoString() string { return s.String() } +// SetDiskAllocationResource sets the DiskAllocationResource field's value. +func (s *Disk) SetDiskAllocationResource(v string) *Disk { + s.DiskAllocationResource = &v + return s +} + +// SetDiskAllocationType sets the DiskAllocationType field's value. +func (s *Disk) SetDiskAllocationType(v string) *Disk { + s.DiskAllocationType = &v + return s +} + +// SetDiskId sets the DiskId field's value. +func (s *Disk) SetDiskId(v string) *Disk { + s.DiskId = &v + return s +} + +// SetDiskNode sets the DiskNode field's value. +func (s *Disk) SetDiskNode(v string) *Disk { + s.DiskNode = &v + return s +} + +// SetDiskPath sets the DiskPath field's value. +func (s *Disk) SetDiskPath(v string) *Disk { + s.DiskPath = &v + return s +} + +// SetDiskSizeInBytes sets the DiskSizeInBytes field's value. +func (s *Disk) SetDiskSizeInBytes(v int64) *Disk { + s.DiskSizeInBytes = &v + return s +} + +// SetDiskStatus sets the DiskStatus field's value. +func (s *Disk) SetDiskStatus(v string) *Disk { + s.DiskStatus = &v + return s +} + // Provides additional information about an error that was returned by the service // as an or. See the errorCode and errorDetails members for more information // about the error. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/StorageGatewayError type Error struct { _ struct{} `type:"structure"` @@ -7109,7 +9064,74 @@ func (s Error) GoString() string { return s.String() } +// SetErrorCode sets the ErrorCode field's value. +func (s *Error) SetErrorCode(v string) *Error { + s.ErrorCode = &v + return s +} + +// SetErrorDetails sets the ErrorDetails field's value. +func (s *Error) SetErrorDetails(v map[string]*string) *Error { + s.ErrorDetails = v + return s +} + +// Describes a file share. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/FileShareInfo +type FileShareInfo struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the file share. + FileShareARN *string `min:"50" type:"string"` + + // The ID of the file share. + FileShareId *string `min:"12" type:"string"` + + // The status of the file share. Possible values are CREATING, UPDATING, AVAILABLE + // and DELETING. + FileShareStatus *string `min:"3" type:"string"` + + // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation + // to return a list of gateways for your account and region. + GatewayARN *string `min:"50" type:"string"` +} + +// String returns the string representation +func (s FileShareInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FileShareInfo) GoString() string { + return s.String() +} + +// SetFileShareARN sets the FileShareARN field's value. +func (s *FileShareInfo) SetFileShareARN(v string) *FileShareInfo { + s.FileShareARN = &v + return s +} + +// SetFileShareId sets the FileShareId field's value. +func (s *FileShareInfo) SetFileShareId(v string) *FileShareInfo { + s.FileShareId = &v + return s +} + +// SetFileShareStatus sets the FileShareStatus field's value. +func (s *FileShareInfo) SetFileShareStatus(v string) *FileShareInfo { + s.FileShareStatus = &v + return s +} + +// SetGatewayARN sets the GatewayARN field's value. +func (s *FileShareInfo) SetGatewayARN(v string) *FileShareInfo { + s.GatewayARN = &v + return s +} + // Describes a gateway object. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/GatewayInfo type GatewayInfo struct { _ struct{} `type:"structure"` @@ -7144,11 +9166,154 @@ func (s GatewayInfo) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *GatewayInfo) SetGatewayARN(v string) *GatewayInfo { + s.GatewayARN = &v + return s +} + +// SetGatewayId sets the GatewayId field's value. +func (s *GatewayInfo) SetGatewayId(v string) *GatewayInfo { + s.GatewayId = &v + return s +} + +// SetGatewayName sets the GatewayName field's value. +func (s *GatewayInfo) SetGatewayName(v string) *GatewayInfo { + s.GatewayName = &v + return s +} + +// SetGatewayOperationalState sets the GatewayOperationalState field's value. +func (s *GatewayInfo) SetGatewayOperationalState(v string) *GatewayInfo { + s.GatewayOperationalState = &v + return s +} + +// SetGatewayType sets the GatewayType field's value. +func (s *GatewayInfo) SetGatewayType(v string) *GatewayInfo { + s.GatewayType = &v + return s +} + +// ListFileShareInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListFileSharesInput +type ListFileSharesInput struct { + _ struct{} `type:"structure"` + + // The Amazon resource Name (ARN) of the gateway whose file shares you want + // to list. If this field is not present, all file shares under your account + // are listed. + GatewayARN *string `min:"50" type:"string"` + + // The maximum number of file shares to return in the response. The value must + // be an integer with a value greater than zero. Optional. + Limit *int64 `min:"1" type:"integer"` + + // Opaque pagination token returned from a previous ListFileShares operation. + // If present, Marker specifies where to continue the list from after a previous + // call to ListFileShares. Optional. + Marker *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListFileSharesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListFileSharesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListFileSharesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListFileSharesInput"} + if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { + invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) + } + if s.Limit != nil && *s.Limit < 1 { + invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) + } + if s.Marker != nil && len(*s.Marker) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGatewayARN sets the GatewayARN field's value. +func (s *ListFileSharesInput) SetGatewayARN(v string) *ListFileSharesInput { + s.GatewayARN = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListFileSharesInput) SetLimit(v int64) *ListFileSharesInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListFileSharesInput) SetMarker(v string) *ListFileSharesInput { + s.Marker = &v + return s +} + +// ListFileShareOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListFileSharesOutput +type ListFileSharesOutput struct { + _ struct{} `type:"structure"` + + // An array of information about the file gateway's file shares. + FileShareInfoList []*FileShareInfo `type:"list"` + + // If the request includes Marker, the response returns that value in this field. + Marker *string `min:"1" type:"string"` + + // If a value is present, there are more file shares to return. In a subsequent + // request, use NextMarker as the value for Marker to retrieve the next set + // of file shares. + NextMarker *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListFileSharesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListFileSharesOutput) GoString() string { + return s.String() +} + +// SetFileShareInfoList sets the FileShareInfoList field's value. +func (s *ListFileSharesOutput) SetFileShareInfoList(v []*FileShareInfo) *ListFileSharesOutput { + s.FileShareInfoList = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListFileSharesOutput) SetMarker(v string) *ListFileSharesOutput { + s.Marker = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListFileSharesOutput) SetNextMarker(v string) *ListFileSharesOutput { + s.NextMarker = &v + return s +} + // A JSON object containing zero or more of the following fields: // -// ListGatewaysInput$Limit +// * ListGatewaysInput$Limit // -// ListGatewaysInput$Marker +// * ListGatewaysInput$Marker +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListGatewaysInput type ListGatewaysInput struct { _ struct{} `type:"structure"` @@ -7187,6 +9352,19 @@ func (s *ListGatewaysInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListGatewaysInput) SetLimit(v int64) *ListGatewaysInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListGatewaysInput) SetMarker(v string) *ListGatewaysInput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListGatewaysOutput type ListGatewaysOutput struct { _ struct{} `type:"structure"` @@ -7205,7 +9383,20 @@ func (s ListGatewaysOutput) GoString() string { return s.String() } +// SetGateways sets the Gateways field's value. +func (s *ListGatewaysOutput) SetGateways(v []*GatewayInfo) *ListGatewaysOutput { + s.Gateways = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListGatewaysOutput) SetMarker(v string) *ListGatewaysOutput { + s.Marker = &v + return s +} + // A JSON object containing the of the gateway. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListLocalDisksInput type ListLocalDisksInput struct { _ struct{} `type:"structure"` @@ -7242,6 +9433,13 @@ func (s *ListLocalDisksInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *ListLocalDisksInput) SetGatewayARN(v string) *ListLocalDisksInput { + s.GatewayARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListLocalDisksOutput type ListLocalDisksOutput struct { _ struct{} `type:"structure"` @@ -7262,7 +9460,20 @@ func (s ListLocalDisksOutput) GoString() string { return s.String() } +// SetDisks sets the Disks field's value. +func (s *ListLocalDisksOutput) SetDisks(v []*Disk) *ListLocalDisksOutput { + s.Disks = v + return s +} + +// SetGatewayARN sets the GatewayARN field's value. +func (s *ListLocalDisksOutput) SetGatewayARN(v string) *ListLocalDisksOutput { + s.GatewayARN = &v + return s +} + // ListTagsForResourceInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListTagsForResourceInput type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -7313,7 +9524,26 @@ func (s *ListTagsForResourceInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListTagsForResourceInput) SetLimit(v int64) *ListTagsForResourceInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListTagsForResourceInput) SetMarker(v string) *ListTagsForResourceInput { + s.Marker = &v + return s +} + +// SetResourceARN sets the ResourceARN field's value. +func (s *ListTagsForResourceInput) SetResourceARN(v string) *ListTagsForResourceInput { + s.ResourceARN = &v + return s +} + // ListTagsForResourceOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListTagsForResourceOutput type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` @@ -7339,13 +9569,32 @@ func (s ListTagsForResourceOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListTagsForResourceOutput) SetMarker(v string) *ListTagsForResourceOutput { + s.Marker = &v + return s +} + +// SetResourceARN sets the ResourceARN field's value. +func (s *ListTagsForResourceOutput) SetResourceARN(v string) *ListTagsForResourceOutput { + s.ResourceARN = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { + s.Tags = v + return s +} + // A JSON object that contains one or more of the following fields: // -// ListTapesInput$Limit +// * ListTapesInput$Limit // -// ListTapesInput$Marker +// * ListTapesInput$Marker // -// ListTapesInput$TapeARNs +// * ListTapesInput$TapeARNs +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListTapesInput type ListTapesInput struct { _ struct{} `type:"structure"` @@ -7388,11 +9637,30 @@ func (s *ListTapesInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListTapesInput) SetLimit(v int64) *ListTapesInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListTapesInput) SetMarker(v string) *ListTapesInput { + s.Marker = &v + return s +} + +// SetTapeARNs sets the TapeARNs field's value. +func (s *ListTapesInput) SetTapeARNs(v []*string) *ListTapesInput { + s.TapeARNs = v + return s +} + // A JSON object containing the following fields: // -// ListTapesOutput$Marker +// * ListTapesOutput$Marker // -// ListTapesOutput$VolumeInfos +// * ListTapesOutput$VolumeInfos +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListTapesOutput type ListTapesOutput struct { _ struct{} `type:"structure"` @@ -7418,7 +9686,20 @@ func (s ListTapesOutput) GoString() string { return s.String() } +// SetMarker sets the Marker field's value. +func (s *ListTapesOutput) SetMarker(v string) *ListTapesOutput { + s.Marker = &v + return s +} + +// SetTapeInfos sets the TapeInfos field's value. +func (s *ListTapesOutput) SetTapeInfos(v []*TapeInfo) *ListTapesOutput { + s.TapeInfos = v + return s +} + // ListVolumeInitiatorsInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListVolumeInitiatorsInput type ListVolumeInitiatorsInput struct { _ struct{} `type:"structure"` @@ -7455,7 +9736,14 @@ func (s *ListVolumeInitiatorsInput) Validate() error { return nil } +// SetVolumeARN sets the VolumeARN field's value. +func (s *ListVolumeInitiatorsInput) SetVolumeARN(v string) *ListVolumeInitiatorsInput { + s.VolumeARN = &v + return s +} + // ListVolumeInitiatorsOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListVolumeInitiatorsOutput type ListVolumeInitiatorsOutput struct { _ struct{} `type:"structure"` @@ -7474,6 +9762,13 @@ func (s ListVolumeInitiatorsOutput) GoString() string { return s.String() } +// SetInitiators sets the Initiators field's value. +func (s *ListVolumeInitiatorsOutput) SetInitiators(v []*string) *ListVolumeInitiatorsOutput { + s.Initiators = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListVolumeRecoveryPointsInput type ListVolumeRecoveryPointsInput struct { _ struct{} `type:"structure"` @@ -7510,6 +9805,13 @@ func (s *ListVolumeRecoveryPointsInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *ListVolumeRecoveryPointsInput) SetGatewayARN(v string) *ListVolumeRecoveryPointsInput { + s.GatewayARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListVolumeRecoveryPointsOutput type ListVolumeRecoveryPointsOutput struct { _ struct{} `type:"structure"` @@ -7530,11 +9832,24 @@ func (s ListVolumeRecoveryPointsOutput) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *ListVolumeRecoveryPointsOutput) SetGatewayARN(v string) *ListVolumeRecoveryPointsOutput { + s.GatewayARN = &v + return s +} + +// SetVolumeRecoveryPointInfos sets the VolumeRecoveryPointInfos field's value. +func (s *ListVolumeRecoveryPointsOutput) SetVolumeRecoveryPointInfos(v []*VolumeRecoveryPointInfo) *ListVolumeRecoveryPointsOutput { + s.VolumeRecoveryPointInfos = v + return s +} + // A JSON object that contains one or more of the following fields: // -// ListVolumesInput$Limit +// * ListVolumesInput$Limit // -// ListVolumesInput$Marker +// * ListVolumesInput$Marker +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListVolumesInput type ListVolumesInput struct { _ struct{} `type:"structure"` @@ -7581,6 +9896,25 @@ func (s *ListVolumesInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *ListVolumesInput) SetGatewayARN(v string) *ListVolumesInput { + s.GatewayARN = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListVolumesInput) SetLimit(v int64) *ListVolumesInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListVolumesInput) SetMarker(v string) *ListVolumesInput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListVolumesOutput type ListVolumesOutput struct { _ struct{} `type:"structure"` @@ -7603,7 +9937,237 @@ func (s ListVolumesOutput) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *ListVolumesOutput) SetGatewayARN(v string) *ListVolumesOutput { + s.GatewayARN = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListVolumesOutput) SetMarker(v string) *ListVolumesOutput { + s.Marker = &v + return s +} + +// SetVolumeInfos sets the VolumeInfos field's value. +func (s *ListVolumesOutput) SetVolumeInfos(v []*VolumeInfo) *ListVolumesOutput { + s.VolumeInfos = v + return s +} + +// Describes file share default values. Files and folders stored as Amazon S3 +// objects in S3 buckets don't, by default, have Unix file permissions assigned +// to them. Upon discovery in an S3 bucket by Storage Gateway, the S3 objects +// that represent files and folders are assigned these default Unix permissions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/NFSFileShareDefaults +type NFSFileShareDefaults struct { + _ struct{} `type:"structure"` + + // The Unix directory mode in the form "nnnn". For example, "0666" represents + // the default access mode for all directories inside the file share. The default + // value is 0777. + DirectoryMode *string `min:"1" type:"string"` + + // The Unix file mode in the form "nnnn". For example, "0666" represents the + // default file mode inside the file share. The default value is 0666. + FileMode *string `min:"1" type:"string"` + + // The default group ID for the file share (unless the files have another group + // ID specified). The default value is nfsnobody. + GroupId *int64 `type:"long"` + + // The default owner ID for files in the file share (unless the files have another + // owner ID specified). The default value is nfsnobody. + OwnerId *int64 `type:"long"` +} + +// String returns the string representation +func (s NFSFileShareDefaults) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NFSFileShareDefaults) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *NFSFileShareDefaults) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NFSFileShareDefaults"} + if s.DirectoryMode != nil && len(*s.DirectoryMode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DirectoryMode", 1)) + } + if s.FileMode != nil && len(*s.FileMode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FileMode", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryMode sets the DirectoryMode field's value. +func (s *NFSFileShareDefaults) SetDirectoryMode(v string) *NFSFileShareDefaults { + s.DirectoryMode = &v + return s +} + +// SetFileMode sets the FileMode field's value. +func (s *NFSFileShareDefaults) SetFileMode(v string) *NFSFileShareDefaults { + s.FileMode = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *NFSFileShareDefaults) SetGroupId(v int64) *NFSFileShareDefaults { + s.GroupId = &v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *NFSFileShareDefaults) SetOwnerId(v int64) *NFSFileShareDefaults { + s.OwnerId = &v + return s +} + +// The Unix file permissions and ownership information assigned, by default, +// to native S3 objects when Storage Gateway discovers them in S3 buckets. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/NFSFileShareInfo +type NFSFileShareInfo struct { + _ struct{} `type:"structure"` + + // The list of clients that are allowed to access the file gateway. The list + // must contain either valid IP addresses or valid CIDR blocks. + ClientList []*string `min:"1" type:"list"` + + // The default storage class for objects put into an Amazon S3 bucket by file + // gateway. Possible values are S3_STANDARD or S3_STANDARD_IA. If this field + // is not populated, the default value S3_STANDARD is used. Optional. + DefaultStorageClass *string `min:"5" type:"string"` + + // The Amazon Resource Name (ARN) of the file share. + FileShareARN *string `min:"50" type:"string"` + + // The ID of the file share. + FileShareId *string `min:"12" type:"string"` + + // The status of the file share. Possible values are CREATING, UPDATING, AVAILABLE + // and DELETING. + FileShareStatus *string `min:"3" type:"string"` + + // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation + // to return a list of gateways for your account and region. + GatewayARN *string `min:"50" type:"string"` + + // True to use Amazon S3 server side encryption with your own KMS key, or false + // to use a key managed by Amazon S3. Optional. + KMSEncrypted *bool `type:"boolean"` + + // The ARN of the KMS key used for Amazon S3 server side encryption. + KMSKey *string `min:"20" type:"string"` + + // The ARN of the backend storage used for storing file data. + LocationARN *string `min:"16" type:"string"` + + // Describes file share default values. Files and folders stored as Amazon S3 + // objects in S3 buckets don't, by default, have Unix file permissions assigned + // to them. Upon discovery in an S3 bucket by Storage Gateway, the S3 objects + // that represent files and folders are assigned these default Unix permissions. + NFSFileShareDefaults *NFSFileShareDefaults `type:"structure"` + + // The file share path used by the NFS client to identify the mount point. + Path *string `type:"string"` + + // The ARN of the IAM role that file gateway assumes when it accesses the underlying + // storage. + Role *string `min:"20" type:"string"` +} + +// String returns the string representation +func (s NFSFileShareInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NFSFileShareInfo) GoString() string { + return s.String() +} + +// SetClientList sets the ClientList field's value. +func (s *NFSFileShareInfo) SetClientList(v []*string) *NFSFileShareInfo { + s.ClientList = v + return s +} + +// SetDefaultStorageClass sets the DefaultStorageClass field's value. +func (s *NFSFileShareInfo) SetDefaultStorageClass(v string) *NFSFileShareInfo { + s.DefaultStorageClass = &v + return s +} + +// SetFileShareARN sets the FileShareARN field's value. +func (s *NFSFileShareInfo) SetFileShareARN(v string) *NFSFileShareInfo { + s.FileShareARN = &v + return s +} + +// SetFileShareId sets the FileShareId field's value. +func (s *NFSFileShareInfo) SetFileShareId(v string) *NFSFileShareInfo { + s.FileShareId = &v + return s +} + +// SetFileShareStatus sets the FileShareStatus field's value. +func (s *NFSFileShareInfo) SetFileShareStatus(v string) *NFSFileShareInfo { + s.FileShareStatus = &v + return s +} + +// SetGatewayARN sets the GatewayARN field's value. +func (s *NFSFileShareInfo) SetGatewayARN(v string) *NFSFileShareInfo { + s.GatewayARN = &v + return s +} + +// SetKMSEncrypted sets the KMSEncrypted field's value. +func (s *NFSFileShareInfo) SetKMSEncrypted(v bool) *NFSFileShareInfo { + s.KMSEncrypted = &v + return s +} + +// SetKMSKey sets the KMSKey field's value. +func (s *NFSFileShareInfo) SetKMSKey(v string) *NFSFileShareInfo { + s.KMSKey = &v + return s +} + +// SetLocationARN sets the LocationARN field's value. +func (s *NFSFileShareInfo) SetLocationARN(v string) *NFSFileShareInfo { + s.LocationARN = &v + return s +} + +// SetNFSFileShareDefaults sets the NFSFileShareDefaults field's value. +func (s *NFSFileShareInfo) SetNFSFileShareDefaults(v *NFSFileShareDefaults) *NFSFileShareInfo { + s.NFSFileShareDefaults = v + return s +} + +// SetPath sets the Path field's value. +func (s *NFSFileShareInfo) SetPath(v string) *NFSFileShareInfo { + s.Path = &v + return s +} + +// SetRole sets the Role field's value. +func (s *NFSFileShareInfo) SetRole(v string) *NFSFileShareInfo { + s.Role = &v + return s +} + // Describes a gateway's network interface. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/NetworkInterface type NetworkInterface struct { _ struct{} `type:"structure"` @@ -7630,7 +10194,26 @@ func (s NetworkInterface) GoString() string { return s.String() } +// SetIpv4Address sets the Ipv4Address field's value. +func (s *NetworkInterface) SetIpv4Address(v string) *NetworkInterface { + s.Ipv4Address = &v + return s +} + +// SetIpv6Address sets the Ipv6Address field's value. +func (s *NetworkInterface) SetIpv6Address(v string) *NetworkInterface { + s.Ipv6Address = &v + return s +} + +// SetMacAddress sets the MacAddress field's value. +func (s *NetworkInterface) SetMacAddress(v string) *NetworkInterface { + s.MacAddress = &v + return s +} + // RemoveTagsFromResourceInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RemoveTagsFromResourceInput type RemoveTagsFromResourceInput struct { _ struct{} `type:"structure"` @@ -7676,7 +10259,20 @@ func (s *RemoveTagsFromResourceInput) Validate() error { return nil } +// SetResourceARN sets the ResourceARN field's value. +func (s *RemoveTagsFromResourceInput) SetResourceARN(v string) *RemoveTagsFromResourceInput { + s.ResourceARN = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *RemoveTagsFromResourceInput) SetTagKeys(v []*string) *RemoveTagsFromResourceInput { + s.TagKeys = v + return s +} + // RemoveTagsFromResourceOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RemoveTagsFromResourceOutput type RemoveTagsFromResourceOutput struct { _ struct{} `type:"structure"` @@ -7695,6 +10291,13 @@ func (s RemoveTagsFromResourceOutput) GoString() string { return s.String() } +// SetResourceARN sets the ResourceARN field's value. +func (s *RemoveTagsFromResourceOutput) SetResourceARN(v string) *RemoveTagsFromResourceOutput { + s.ResourceARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ResetCacheInput type ResetCacheInput struct { _ struct{} `type:"structure"` @@ -7731,6 +10334,13 @@ func (s *ResetCacheInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *ResetCacheInput) SetGatewayARN(v string) *ResetCacheInput { + s.GatewayARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ResetCacheOutput type ResetCacheOutput struct { _ struct{} `type:"structure"` @@ -7749,7 +10359,14 @@ func (s ResetCacheOutput) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *ResetCacheOutput) SetGatewayARN(v string) *ResetCacheOutput { + s.GatewayARN = &v + return s +} + // RetrieveTapeArchiveInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RetrieveTapeArchiveInput type RetrieveTapeArchiveInput struct { _ struct{} `type:"structure"` @@ -7757,8 +10374,8 @@ type RetrieveTapeArchiveInput struct { // tape to. Use the ListGateways operation to return a list of gateways for // your account and region. // - // You retrieve archived virtual tapes to only one gateway and the gateway - // must be a gateway-VTL. + // You retrieve archived virtual tapes to only one gateway and the gateway must + // be a gateway-VTL. // // GatewayARN is a required field GatewayARN *string `min:"50" type:"string" required:"true"` @@ -7802,7 +10419,20 @@ func (s *RetrieveTapeArchiveInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *RetrieveTapeArchiveInput) SetGatewayARN(v string) *RetrieveTapeArchiveInput { + s.GatewayARN = &v + return s +} + +// SetTapeARN sets the TapeARN field's value. +func (s *RetrieveTapeArchiveInput) SetTapeARN(v string) *RetrieveTapeArchiveInput { + s.TapeARN = &v + return s +} + // RetrieveTapeArchiveOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RetrieveTapeArchiveOutput type RetrieveTapeArchiveOutput struct { _ struct{} `type:"structure"` @@ -7820,7 +10450,14 @@ func (s RetrieveTapeArchiveOutput) GoString() string { return s.String() } +// SetTapeARN sets the TapeARN field's value. +func (s *RetrieveTapeArchiveOutput) SetTapeARN(v string) *RetrieveTapeArchiveOutput { + s.TapeARN = &v + return s +} + // RetrieveTapeRecoveryPointInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RetrieveTapeRecoveryPointInput type RetrieveTapeRecoveryPointInput struct { _ struct{} `type:"structure"` @@ -7869,7 +10506,20 @@ func (s *RetrieveTapeRecoveryPointInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *RetrieveTapeRecoveryPointInput) SetGatewayARN(v string) *RetrieveTapeRecoveryPointInput { + s.GatewayARN = &v + return s +} + +// SetTapeARN sets the TapeARN field's value. +func (s *RetrieveTapeRecoveryPointInput) SetTapeARN(v string) *RetrieveTapeRecoveryPointInput { + s.TapeARN = &v + return s +} + // RetrieveTapeRecoveryPointOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RetrieveTapeRecoveryPointOutput type RetrieveTapeRecoveryPointOutput struct { _ struct{} `type:"structure"` @@ -7888,7 +10538,14 @@ func (s RetrieveTapeRecoveryPointOutput) GoString() string { return s.String() } +// SetTapeARN sets the TapeARN field's value. +func (s *RetrieveTapeRecoveryPointOutput) SetTapeARN(v string) *RetrieveTapeRecoveryPointOutput { + s.TapeARN = &v + return s +} + // SetLocalConsolePasswordInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/SetLocalConsolePasswordInput type SetLocalConsolePasswordInput struct { _ struct{} `type:"structure"` @@ -7936,6 +10593,19 @@ func (s *SetLocalConsolePasswordInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *SetLocalConsolePasswordInput) SetGatewayARN(v string) *SetLocalConsolePasswordInput { + s.GatewayARN = &v + return s +} + +// SetLocalConsolePassword sets the LocalConsolePassword field's value. +func (s *SetLocalConsolePasswordInput) SetLocalConsolePassword(v string) *SetLocalConsolePasswordInput { + s.LocalConsolePassword = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/SetLocalConsolePasswordOutput type SetLocalConsolePasswordOutput struct { _ struct{} `type:"structure"` @@ -7954,7 +10624,14 @@ func (s SetLocalConsolePasswordOutput) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *SetLocalConsolePasswordOutput) SetGatewayARN(v string) *SetLocalConsolePasswordOutput { + s.GatewayARN = &v + return s +} + // A JSON object containing the of the gateway to shut down. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ShutdownGatewayInput type ShutdownGatewayInput struct { _ struct{} `type:"structure"` @@ -7991,7 +10668,14 @@ func (s *ShutdownGatewayInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *ShutdownGatewayInput) SetGatewayARN(v string) *ShutdownGatewayInput { + s.GatewayARN = &v + return s +} + // A JSON object containing the of the gateway that was shut down. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ShutdownGatewayOutput type ShutdownGatewayOutput struct { _ struct{} `type:"structure"` @@ -8010,7 +10694,14 @@ func (s ShutdownGatewayOutput) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *ShutdownGatewayOutput) SetGatewayARN(v string) *ShutdownGatewayOutput { + s.GatewayARN = &v + return s +} + // A JSON object containing the of the gateway to start. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/StartGatewayInput type StartGatewayInput struct { _ struct{} `type:"structure"` @@ -8047,7 +10738,14 @@ func (s *StartGatewayInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *StartGatewayInput) SetGatewayARN(v string) *StartGatewayInput { + s.GatewayARN = &v + return s +} + // A JSON object containing the of the gateway that was restarted. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/StartGatewayOutput type StartGatewayOutput struct { _ struct{} `type:"structure"` @@ -8066,28 +10764,55 @@ func (s StartGatewayOutput) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *StartGatewayOutput) SetGatewayARN(v string) *StartGatewayOutput { + s.GatewayARN = &v + return s +} + +// Describes an iSCSI stored volume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/StorediSCSIVolume type StorediSCSIVolume struct { _ struct{} `type:"structure"` + CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + // Indicates if when the stored volume was created, existing data on the underlying + // local disk was preserved. + // + // Valid Values: true, false PreservedExistingData *bool `type:"boolean"` + // If the stored volume was created from a snapshot, this field contains the + // snapshot ID used, e.g. snap-78e22663. Otherwise, this field is not included. SourceSnapshotId *string `type:"string"` + // The Amazon Resource Name (ARN) of the storage volume. VolumeARN *string `min:"50" type:"string"` + // The ID of the local disk that was specified in the CreateStorediSCSIVolume + // operation. VolumeDiskId *string `min:"1" type:"string"` + // The unique identifier of the volume, e.g. vol-AE4B946D. VolumeId *string `min:"12" type:"string"` + // Represents the percentage complete if the volume is restoring or bootstrapping + // that represents the percent of data transferred. This field does not appear + // in the response if the stored volume is not restoring or bootstrapping. VolumeProgress *float64 `type:"double"` + // The size of the volume in bytes. VolumeSizeInBytes *int64 `type:"long"` + // One of the VolumeStatus values that indicates the state of the storage volume. VolumeStatus *string `min:"3" type:"string"` + // One of the VolumeType enumeration values describing the type of the volume. VolumeType *string `min:"3" type:"string"` - // Lists iSCSI information about a volume. + // An VolumeiSCSIAttributes object that represents a collection of iSCSI attributes + // for one stored volume. VolumeiSCSIAttributes *VolumeiSCSIAttributes `type:"structure"` } @@ -8101,6 +10826,73 @@ func (s StorediSCSIVolume) GoString() string { return s.String() } +// SetCreatedDate sets the CreatedDate field's value. +func (s *StorediSCSIVolume) SetCreatedDate(v time.Time) *StorediSCSIVolume { + s.CreatedDate = &v + return s +} + +// SetPreservedExistingData sets the PreservedExistingData field's value. +func (s *StorediSCSIVolume) SetPreservedExistingData(v bool) *StorediSCSIVolume { + s.PreservedExistingData = &v + return s +} + +// SetSourceSnapshotId sets the SourceSnapshotId field's value. +func (s *StorediSCSIVolume) SetSourceSnapshotId(v string) *StorediSCSIVolume { + s.SourceSnapshotId = &v + return s +} + +// SetVolumeARN sets the VolumeARN field's value. +func (s *StorediSCSIVolume) SetVolumeARN(v string) *StorediSCSIVolume { + s.VolumeARN = &v + return s +} + +// SetVolumeDiskId sets the VolumeDiskId field's value. +func (s *StorediSCSIVolume) SetVolumeDiskId(v string) *StorediSCSIVolume { + s.VolumeDiskId = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *StorediSCSIVolume) SetVolumeId(v string) *StorediSCSIVolume { + s.VolumeId = &v + return s +} + +// SetVolumeProgress sets the VolumeProgress field's value. +func (s *StorediSCSIVolume) SetVolumeProgress(v float64) *StorediSCSIVolume { + s.VolumeProgress = &v + return s +} + +// SetVolumeSizeInBytes sets the VolumeSizeInBytes field's value. +func (s *StorediSCSIVolume) SetVolumeSizeInBytes(v int64) *StorediSCSIVolume { + s.VolumeSizeInBytes = &v + return s +} + +// SetVolumeStatus sets the VolumeStatus field's value. +func (s *StorediSCSIVolume) SetVolumeStatus(v string) *StorediSCSIVolume { + s.VolumeStatus = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *StorediSCSIVolume) SetVolumeType(v string) *StorediSCSIVolume { + s.VolumeType = &v + return s +} + +// SetVolumeiSCSIAttributes sets the VolumeiSCSIAttributes field's value. +func (s *StorediSCSIVolume) SetVolumeiSCSIAttributes(v *VolumeiSCSIAttributes) *StorediSCSIVolume { + s.VolumeiSCSIAttributes = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/Tag type Tag struct { _ struct{} `type:"structure"` @@ -8140,7 +10932,20 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Describes a virtual tape object. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/Tape type Tape struct { _ struct{} `type:"structure"` @@ -8156,6 +10961,8 @@ type Tape struct { // The barcode that identifies a specific virtual tape. TapeBarcode *string `min:"7" type:"string"` + TapeCreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + // The size, in bytes, of the virtual tape. TapeSizeInBytes *int64 `type:"long"` @@ -8177,7 +10984,50 @@ func (s Tape) GoString() string { return s.String() } +// SetProgress sets the Progress field's value. +func (s *Tape) SetProgress(v float64) *Tape { + s.Progress = &v + return s +} + +// SetTapeARN sets the TapeARN field's value. +func (s *Tape) SetTapeARN(v string) *Tape { + s.TapeARN = &v + return s +} + +// SetTapeBarcode sets the TapeBarcode field's value. +func (s *Tape) SetTapeBarcode(v string) *Tape { + s.TapeBarcode = &v + return s +} + +// SetTapeCreatedDate sets the TapeCreatedDate field's value. +func (s *Tape) SetTapeCreatedDate(v time.Time) *Tape { + s.TapeCreatedDate = &v + return s +} + +// SetTapeSizeInBytes sets the TapeSizeInBytes field's value. +func (s *Tape) SetTapeSizeInBytes(v int64) *Tape { + s.TapeSizeInBytes = &v + return s +} + +// SetTapeStatus sets the TapeStatus field's value. +func (s *Tape) SetTapeStatus(v string) *Tape { + s.TapeStatus = &v + return s +} + +// SetVTLDevice sets the VTLDevice field's value. +func (s *Tape) SetVTLDevice(v string) *Tape { + s.VTLDevice = &v + return s +} + // Represents a virtual tape that is archived in the virtual tape shelf (VTS). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/TapeArchive type TapeArchive struct { _ struct{} `type:"structure"` @@ -8199,6 +11049,8 @@ type TapeArchive struct { // The barcode that identifies the archived virtual tape. TapeBarcode *string `min:"7" type:"string"` + TapeCreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + // The size, in bytes, of the archived virtual tape. TapeSizeInBytes *int64 `type:"long"` @@ -8216,7 +11068,50 @@ func (s TapeArchive) GoString() string { return s.String() } +// SetCompletionTime sets the CompletionTime field's value. +func (s *TapeArchive) SetCompletionTime(v time.Time) *TapeArchive { + s.CompletionTime = &v + return s +} + +// SetRetrievedTo sets the RetrievedTo field's value. +func (s *TapeArchive) SetRetrievedTo(v string) *TapeArchive { + s.RetrievedTo = &v + return s +} + +// SetTapeARN sets the TapeARN field's value. +func (s *TapeArchive) SetTapeARN(v string) *TapeArchive { + s.TapeARN = &v + return s +} + +// SetTapeBarcode sets the TapeBarcode field's value. +func (s *TapeArchive) SetTapeBarcode(v string) *TapeArchive { + s.TapeBarcode = &v + return s +} + +// SetTapeCreatedDate sets the TapeCreatedDate field's value. +func (s *TapeArchive) SetTapeCreatedDate(v time.Time) *TapeArchive { + s.TapeCreatedDate = &v + return s +} + +// SetTapeSizeInBytes sets the TapeSizeInBytes field's value. +func (s *TapeArchive) SetTapeSizeInBytes(v int64) *TapeArchive { + s.TapeSizeInBytes = &v + return s +} + +// SetTapeStatus sets the TapeStatus field's value. +func (s *TapeArchive) SetTapeStatus(v string) *TapeArchive { + s.TapeStatus = &v + return s +} + // Describes a virtual tape. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/TapeInfo type TapeInfo struct { _ struct{} `type:"structure"` @@ -8247,7 +11142,38 @@ func (s TapeInfo) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *TapeInfo) SetGatewayARN(v string) *TapeInfo { + s.GatewayARN = &v + return s +} + +// SetTapeARN sets the TapeARN field's value. +func (s *TapeInfo) SetTapeARN(v string) *TapeInfo { + s.TapeARN = &v + return s +} + +// SetTapeBarcode sets the TapeBarcode field's value. +func (s *TapeInfo) SetTapeBarcode(v string) *TapeInfo { + s.TapeBarcode = &v + return s +} + +// SetTapeSizeInBytes sets the TapeSizeInBytes field's value. +func (s *TapeInfo) SetTapeSizeInBytes(v int64) *TapeInfo { + s.TapeSizeInBytes = &v + return s +} + +// SetTapeStatus sets the TapeStatus field's value. +func (s *TapeInfo) SetTapeStatus(v string) *TapeInfo { + s.TapeStatus = &v + return s +} + // Describes a recovery point. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/TapeRecoveryPointInfo type TapeRecoveryPointInfo struct { _ struct{} `type:"structure"` @@ -8277,11 +11203,36 @@ func (s TapeRecoveryPointInfo) GoString() string { return s.String() } +// SetTapeARN sets the TapeARN field's value. +func (s *TapeRecoveryPointInfo) SetTapeARN(v string) *TapeRecoveryPointInfo { + s.TapeARN = &v + return s +} + +// SetTapeRecoveryPointTime sets the TapeRecoveryPointTime field's value. +func (s *TapeRecoveryPointInfo) SetTapeRecoveryPointTime(v time.Time) *TapeRecoveryPointInfo { + s.TapeRecoveryPointTime = &v + return s +} + +// SetTapeSizeInBytes sets the TapeSizeInBytes field's value. +func (s *TapeRecoveryPointInfo) SetTapeSizeInBytes(v int64) *TapeRecoveryPointInfo { + s.TapeSizeInBytes = &v + return s +} + +// SetTapeStatus sets the TapeStatus field's value. +func (s *TapeRecoveryPointInfo) SetTapeStatus(v string) *TapeRecoveryPointInfo { + s.TapeStatus = &v + return s +} + // A JSON object containing one or more of the following fields: // -// UpdateBandwidthRateLimitInput$AverageDownloadRateLimitInBitsPerSec +// * UpdateBandwidthRateLimitInput$AverageDownloadRateLimitInBitsPerSec // -// UpdateBandwidthRateLimitInput$AverageUploadRateLimitInBitsPerSec +// * UpdateBandwidthRateLimitInput$AverageUploadRateLimitInBitsPerSec +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateBandwidthRateLimitInput type UpdateBandwidthRateLimitInput struct { _ struct{} `type:"structure"` @@ -8330,8 +11281,27 @@ func (s *UpdateBandwidthRateLimitInput) Validate() error { return nil } +// SetAverageDownloadRateLimitInBitsPerSec sets the AverageDownloadRateLimitInBitsPerSec field's value. +func (s *UpdateBandwidthRateLimitInput) SetAverageDownloadRateLimitInBitsPerSec(v int64) *UpdateBandwidthRateLimitInput { + s.AverageDownloadRateLimitInBitsPerSec = &v + return s +} + +// SetAverageUploadRateLimitInBitsPerSec sets the AverageUploadRateLimitInBitsPerSec field's value. +func (s *UpdateBandwidthRateLimitInput) SetAverageUploadRateLimitInBitsPerSec(v int64) *UpdateBandwidthRateLimitInput { + s.AverageUploadRateLimitInBitsPerSec = &v + return s +} + +// SetGatewayARN sets the GatewayARN field's value. +func (s *UpdateBandwidthRateLimitInput) SetGatewayARN(v string) *UpdateBandwidthRateLimitInput { + s.GatewayARN = &v + return s +} + // A JSON object containing the of the gateway whose throttle information was // updated. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateBandwidthRateLimitOutput type UpdateBandwidthRateLimitOutput struct { _ struct{} `type:"structure"` @@ -8350,15 +11320,22 @@ func (s UpdateBandwidthRateLimitOutput) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *UpdateBandwidthRateLimitOutput) SetGatewayARN(v string) *UpdateBandwidthRateLimitOutput { + s.GatewayARN = &v + return s +} + // A JSON object containing one or more of the following fields: // -// UpdateChapCredentialsInput$InitiatorName +// * UpdateChapCredentialsInput$InitiatorName // -// UpdateChapCredentialsInput$SecretToAuthenticateInitiator +// * UpdateChapCredentialsInput$SecretToAuthenticateInitiator // -// UpdateChapCredentialsInput$SecretToAuthenticateTarget +// * UpdateChapCredentialsInput$SecretToAuthenticateTarget // -// UpdateChapCredentialsInput$TargetARN +// * UpdateChapCredentialsInput$TargetARN +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateChapCredentialsInput type UpdateChapCredentialsInput struct { _ struct{} `type:"structure"` @@ -8431,7 +11408,32 @@ func (s *UpdateChapCredentialsInput) Validate() error { return nil } +// SetInitiatorName sets the InitiatorName field's value. +func (s *UpdateChapCredentialsInput) SetInitiatorName(v string) *UpdateChapCredentialsInput { + s.InitiatorName = &v + return s +} + +// SetSecretToAuthenticateInitiator sets the SecretToAuthenticateInitiator field's value. +func (s *UpdateChapCredentialsInput) SetSecretToAuthenticateInitiator(v string) *UpdateChapCredentialsInput { + s.SecretToAuthenticateInitiator = &v + return s +} + +// SetSecretToAuthenticateTarget sets the SecretToAuthenticateTarget field's value. +func (s *UpdateChapCredentialsInput) SetSecretToAuthenticateTarget(v string) *UpdateChapCredentialsInput { + s.SecretToAuthenticateTarget = &v + return s +} + +// SetTargetARN sets the TargetARN field's value. +func (s *UpdateChapCredentialsInput) SetTargetARN(v string) *UpdateChapCredentialsInput { + s.TargetARN = &v + return s +} + // A JSON object containing the following fields: +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateChapCredentialsOutput type UpdateChapCredentialsOutput struct { _ struct{} `type:"structure"` @@ -8454,6 +11456,19 @@ func (s UpdateChapCredentialsOutput) GoString() string { return s.String() } +// SetInitiatorName sets the InitiatorName field's value. +func (s *UpdateChapCredentialsOutput) SetInitiatorName(v string) *UpdateChapCredentialsOutput { + s.InitiatorName = &v + return s +} + +// SetTargetARN sets the TargetARN field's value. +func (s *UpdateChapCredentialsOutput) SetTargetARN(v string) *UpdateChapCredentialsOutput { + s.TargetARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateGatewayInformationInput type UpdateGatewayInformationInput struct { _ struct{} `type:"structure"` @@ -8501,7 +11516,26 @@ func (s *UpdateGatewayInformationInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *UpdateGatewayInformationInput) SetGatewayARN(v string) *UpdateGatewayInformationInput { + s.GatewayARN = &v + return s +} + +// SetGatewayName sets the GatewayName field's value. +func (s *UpdateGatewayInformationInput) SetGatewayName(v string) *UpdateGatewayInformationInput { + s.GatewayName = &v + return s +} + +// SetGatewayTimezone sets the GatewayTimezone field's value. +func (s *UpdateGatewayInformationInput) SetGatewayTimezone(v string) *UpdateGatewayInformationInput { + s.GatewayTimezone = &v + return s +} + // A JSON object containing the ARN of the gateway that was updated. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateGatewayInformationOutput type UpdateGatewayInformationOutput struct { _ struct{} `type:"structure"` @@ -8522,7 +11556,20 @@ func (s UpdateGatewayInformationOutput) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *UpdateGatewayInformationOutput) SetGatewayARN(v string) *UpdateGatewayInformationOutput { + s.GatewayARN = &v + return s +} + +// SetGatewayName sets the GatewayName field's value. +func (s *UpdateGatewayInformationOutput) SetGatewayName(v string) *UpdateGatewayInformationOutput { + s.GatewayName = &v + return s +} + // A JSON object containing the of the gateway to update. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateGatewaySoftwareNowInput type UpdateGatewaySoftwareNowInput struct { _ struct{} `type:"structure"` @@ -8559,7 +11606,14 @@ func (s *UpdateGatewaySoftwareNowInput) Validate() error { return nil } +// SetGatewayARN sets the GatewayARN field's value. +func (s *UpdateGatewaySoftwareNowInput) SetGatewayARN(v string) *UpdateGatewaySoftwareNowInput { + s.GatewayARN = &v + return s +} + // A JSON object containing the of the gateway that was updated. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateGatewaySoftwareNowOutput type UpdateGatewaySoftwareNowOutput struct { _ struct{} `type:"structure"` @@ -8578,17 +11632,25 @@ func (s UpdateGatewaySoftwareNowOutput) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *UpdateGatewaySoftwareNowOutput) SetGatewayARN(v string) *UpdateGatewaySoftwareNowOutput { + s.GatewayARN = &v + return s +} + // A JSON object containing the following fields: // -// UpdateMaintenanceStartTimeInput$DayOfWeek +// * UpdateMaintenanceStartTimeInput$DayOfWeek // -// UpdateMaintenanceStartTimeInput$HourOfDay +// * UpdateMaintenanceStartTimeInput$HourOfDay // -// UpdateMaintenanceStartTimeInput$MinuteOfHour +// * UpdateMaintenanceStartTimeInput$MinuteOfHour +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateMaintenanceStartTimeInput type UpdateMaintenanceStartTimeInput struct { _ struct{} `type:"structure"` - // The maintenance start time day of the week. + // The maintenance start time day of the week represented as an ordinal number + // from 0 to 6, where 0 represents Sunday and 6 Saturday. // // DayOfWeek is a required field DayOfWeek *int64 `type:"integer" required:"true"` @@ -8649,8 +11711,33 @@ func (s *UpdateMaintenanceStartTimeInput) Validate() error { return nil } +// SetDayOfWeek sets the DayOfWeek field's value. +func (s *UpdateMaintenanceStartTimeInput) SetDayOfWeek(v int64) *UpdateMaintenanceStartTimeInput { + s.DayOfWeek = &v + return s +} + +// SetGatewayARN sets the GatewayARN field's value. +func (s *UpdateMaintenanceStartTimeInput) SetGatewayARN(v string) *UpdateMaintenanceStartTimeInput { + s.GatewayARN = &v + return s +} + +// SetHourOfDay sets the HourOfDay field's value. +func (s *UpdateMaintenanceStartTimeInput) SetHourOfDay(v int64) *UpdateMaintenanceStartTimeInput { + s.HourOfDay = &v + return s +} + +// SetMinuteOfHour sets the MinuteOfHour field's value. +func (s *UpdateMaintenanceStartTimeInput) SetMinuteOfHour(v int64) *UpdateMaintenanceStartTimeInput { + s.MinuteOfHour = &v + return s +} + // A JSON object containing the of the gateway whose maintenance start time // is updated. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateMaintenanceStartTimeOutput type UpdateMaintenanceStartTimeOutput struct { _ struct{} `type:"structure"` @@ -8669,15 +11756,154 @@ func (s UpdateMaintenanceStartTimeOutput) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *UpdateMaintenanceStartTimeOutput) SetGatewayARN(v string) *UpdateMaintenanceStartTimeOutput { + s.GatewayARN = &v + return s +} + +// UpdateNFSFileShareInput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateNFSFileShareInput +type UpdateNFSFileShareInput struct { + _ struct{} `type:"structure"` + + // The list of clients that are allowed to access the file gateway. The list + // must contain either valid IP addresses or valid CIDR blocks. + ClientList []*string `min:"1" type:"list"` + + // The default storage class for objects put into an Amazon S3 bucket by a file + // gateway. Possible values are S3_STANDARD or S3_STANDARD_IA. If this field + // is not populated, the default value S3_STANDARD is used. Optional. + DefaultStorageClass *string `min:"5" type:"string"` + + // The Amazon Resource Name (ARN) of the file share to be updated. + // + // FileShareARN is a required field + FileShareARN *string `min:"50" type:"string" required:"true"` + + // True to use Amazon S3 server side encryption with your own AWS KMS key, or + // false to use a key managed by Amazon S3. Optional. + KMSEncrypted *bool `type:"boolean"` + + // The KMS key used for Amazon S3 server side encryption. This value can only + // be set when KmsEncrypted is true. Optional. + KMSKey *string `min:"20" type:"string"` + + // The default values for the file share. Optional. + NFSFileShareDefaults *NFSFileShareDefaults `type:"structure"` +} + +// String returns the string representation +func (s UpdateNFSFileShareInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateNFSFileShareInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateNFSFileShareInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateNFSFileShareInput"} + if s.ClientList != nil && len(s.ClientList) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientList", 1)) + } + if s.DefaultStorageClass != nil && len(*s.DefaultStorageClass) < 5 { + invalidParams.Add(request.NewErrParamMinLen("DefaultStorageClass", 5)) + } + if s.FileShareARN == nil { + invalidParams.Add(request.NewErrParamRequired("FileShareARN")) + } + if s.FileShareARN != nil && len(*s.FileShareARN) < 50 { + invalidParams.Add(request.NewErrParamMinLen("FileShareARN", 50)) + } + if s.KMSKey != nil && len(*s.KMSKey) < 20 { + invalidParams.Add(request.NewErrParamMinLen("KMSKey", 20)) + } + if s.NFSFileShareDefaults != nil { + if err := s.NFSFileShareDefaults.Validate(); err != nil { + invalidParams.AddNested("NFSFileShareDefaults", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientList sets the ClientList field's value. +func (s *UpdateNFSFileShareInput) SetClientList(v []*string) *UpdateNFSFileShareInput { + s.ClientList = v + return s +} + +// SetDefaultStorageClass sets the DefaultStorageClass field's value. +func (s *UpdateNFSFileShareInput) SetDefaultStorageClass(v string) *UpdateNFSFileShareInput { + s.DefaultStorageClass = &v + return s +} + +// SetFileShareARN sets the FileShareARN field's value. +func (s *UpdateNFSFileShareInput) SetFileShareARN(v string) *UpdateNFSFileShareInput { + s.FileShareARN = &v + return s +} + +// SetKMSEncrypted sets the KMSEncrypted field's value. +func (s *UpdateNFSFileShareInput) SetKMSEncrypted(v bool) *UpdateNFSFileShareInput { + s.KMSEncrypted = &v + return s +} + +// SetKMSKey sets the KMSKey field's value. +func (s *UpdateNFSFileShareInput) SetKMSKey(v string) *UpdateNFSFileShareInput { + s.KMSKey = &v + return s +} + +// SetNFSFileShareDefaults sets the NFSFileShareDefaults field's value. +func (s *UpdateNFSFileShareInput) SetNFSFileShareDefaults(v *NFSFileShareDefaults) *UpdateNFSFileShareInput { + s.NFSFileShareDefaults = v + return s +} + +// UpdateNFSFileShareOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateNFSFileShareOutput +type UpdateNFSFileShareOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the updated file share. + FileShareARN *string `min:"50" type:"string"` +} + +// String returns the string representation +func (s UpdateNFSFileShareOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateNFSFileShareOutput) GoString() string { + return s.String() +} + +// SetFileShareARN sets the FileShareARN field's value. +func (s *UpdateNFSFileShareOutput) SetFileShareARN(v string) *UpdateNFSFileShareOutput { + s.FileShareARN = &v + return s +} + // A JSON object containing one or more of the following fields: // -// UpdateSnapshotScheduleInput$Description +// * UpdateSnapshotScheduleInput$Description // -// UpdateSnapshotScheduleInput$RecurrenceInHours +// * UpdateSnapshotScheduleInput$RecurrenceInHours // -// UpdateSnapshotScheduleInput$StartAt +// * UpdateSnapshotScheduleInput$StartAt // -// UpdateSnapshotScheduleInput$VolumeARN +// * UpdateSnapshotScheduleInput$VolumeARN +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateSnapshotScheduleInput type UpdateSnapshotScheduleInput struct { _ struct{} `type:"structure"` @@ -8741,7 +11967,32 @@ func (s *UpdateSnapshotScheduleInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *UpdateSnapshotScheduleInput) SetDescription(v string) *UpdateSnapshotScheduleInput { + s.Description = &v + return s +} + +// SetRecurrenceInHours sets the RecurrenceInHours field's value. +func (s *UpdateSnapshotScheduleInput) SetRecurrenceInHours(v int64) *UpdateSnapshotScheduleInput { + s.RecurrenceInHours = &v + return s +} + +// SetStartAt sets the StartAt field's value. +func (s *UpdateSnapshotScheduleInput) SetStartAt(v int64) *UpdateSnapshotScheduleInput { + s.StartAt = &v + return s +} + +// SetVolumeARN sets the VolumeARN field's value. +func (s *UpdateSnapshotScheduleInput) SetVolumeARN(v string) *UpdateSnapshotScheduleInput { + s.VolumeARN = &v + return s +} + // A JSON object containing the of the updated storage volume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateSnapshotScheduleOutput type UpdateSnapshotScheduleOutput struct { _ struct{} `type:"structure"` @@ -8758,12 +12009,19 @@ func (s UpdateSnapshotScheduleOutput) GoString() string { return s.String() } +// SetVolumeARN sets the VolumeARN field's value. +func (s *UpdateSnapshotScheduleOutput) SetVolumeARN(v string) *UpdateSnapshotScheduleOutput { + s.VolumeARN = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateVTLDeviceTypeInput type UpdateVTLDeviceTypeInput struct { _ struct{} `type:"structure"` // The type of medium changer you want to select. // - // Valid Values: "STK-L700", "AWS-Gateway-VTL" + // Valid Values: "STK-L700", "AWS-Gateway-VTL" // // DeviceType is a required field DeviceType *string `min:"2" type:"string" required:"true"` @@ -8806,7 +12064,20 @@ func (s *UpdateVTLDeviceTypeInput) Validate() error { return nil } +// SetDeviceType sets the DeviceType field's value. +func (s *UpdateVTLDeviceTypeInput) SetDeviceType(v string) *UpdateVTLDeviceTypeInput { + s.DeviceType = &v + return s +} + +// SetVTLDeviceARN sets the VTLDeviceARN field's value. +func (s *UpdateVTLDeviceTypeInput) SetVTLDeviceARN(v string) *UpdateVTLDeviceTypeInput { + s.VTLDeviceARN = &v + return s +} + // UpdateVTLDeviceTypeOutput +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateVTLDeviceTypeOutput type UpdateVTLDeviceTypeOutput struct { _ struct{} `type:"structure"` @@ -8824,7 +12095,14 @@ func (s UpdateVTLDeviceTypeOutput) GoString() string { return s.String() } +// SetVTLDeviceARN sets the VTLDeviceARN field's value. +func (s *UpdateVTLDeviceTypeOutput) SetVTLDeviceARN(v string) *UpdateVTLDeviceTypeOutput { + s.VTLDeviceARN = &v + return s +} + // Represents a device object associated with a gateway-VTL. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/VTLDevice type VTLDevice struct { _ struct{} `type:"structure"` @@ -8852,7 +12130,38 @@ func (s VTLDevice) GoString() string { return s.String() } +// SetDeviceiSCSIAttributes sets the DeviceiSCSIAttributes field's value. +func (s *VTLDevice) SetDeviceiSCSIAttributes(v *DeviceiSCSIAttributes) *VTLDevice { + s.DeviceiSCSIAttributes = v + return s +} + +// SetVTLDeviceARN sets the VTLDeviceARN field's value. +func (s *VTLDevice) SetVTLDeviceARN(v string) *VTLDevice { + s.VTLDeviceARN = &v + return s +} + +// SetVTLDeviceProductIdentifier sets the VTLDeviceProductIdentifier field's value. +func (s *VTLDevice) SetVTLDeviceProductIdentifier(v string) *VTLDevice { + s.VTLDeviceProductIdentifier = &v + return s +} + +// SetVTLDeviceType sets the VTLDeviceType field's value. +func (s *VTLDevice) SetVTLDeviceType(v string) *VTLDevice { + s.VTLDeviceType = &v + return s +} + +// SetVTLDeviceVendor sets the VTLDeviceVendor field's value. +func (s *VTLDevice) SetVTLDeviceVendor(v string) *VTLDevice { + s.VTLDeviceVendor = &v + return s +} + // Describes a storage volume object. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/VolumeInfo type VolumeInfo struct { _ struct{} `type:"structure"` @@ -8864,27 +12173,27 @@ type VolumeInfo struct { // becomes part of the gateway Amazon Resource Name (ARN), which you use as // input for other operations. // - // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens + // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens // (-). GatewayId *string `min:"12" type:"string"` // The Amazon Resource Name (ARN) for the storage volume. For example, the following // is a valid ARN: // - // arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB + // arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB // - // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens + // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens // (-). VolumeARN *string `min:"50" type:"string"` // The unique identifier assigned to the volume. This ID becomes part of the // volume Amazon Resource Name (ARN), which you use as input for other operations. // - // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens + // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens // (-). VolumeId *string `min:"12" type:"string"` - // The size, in bytes, of the volume. + // The size of the volume in bytes. // // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens // (-). @@ -8903,6 +12212,43 @@ func (s VolumeInfo) GoString() string { return s.String() } +// SetGatewayARN sets the GatewayARN field's value. +func (s *VolumeInfo) SetGatewayARN(v string) *VolumeInfo { + s.GatewayARN = &v + return s +} + +// SetGatewayId sets the GatewayId field's value. +func (s *VolumeInfo) SetGatewayId(v string) *VolumeInfo { + s.GatewayId = &v + return s +} + +// SetVolumeARN sets the VolumeARN field's value. +func (s *VolumeInfo) SetVolumeARN(v string) *VolumeInfo { + s.VolumeARN = &v + return s +} + +// SetVolumeId sets the VolumeId field's value. +func (s *VolumeInfo) SetVolumeId(v string) *VolumeInfo { + s.VolumeId = &v + return s +} + +// SetVolumeSizeInBytes sets the VolumeSizeInBytes field's value. +func (s *VolumeInfo) SetVolumeSizeInBytes(v int64) *VolumeInfo { + s.VolumeSizeInBytes = &v + return s +} + +// SetVolumeType sets the VolumeType field's value. +func (s *VolumeInfo) SetVolumeType(v string) *VolumeInfo { + s.VolumeType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/VolumeRecoveryPointInfo type VolumeRecoveryPointInfo struct { _ struct{} `type:"structure"` @@ -8925,7 +12271,32 @@ func (s VolumeRecoveryPointInfo) GoString() string { return s.String() } +// SetVolumeARN sets the VolumeARN field's value. +func (s *VolumeRecoveryPointInfo) SetVolumeARN(v string) *VolumeRecoveryPointInfo { + s.VolumeARN = &v + return s +} + +// SetVolumeRecoveryPointTime sets the VolumeRecoveryPointTime field's value. +func (s *VolumeRecoveryPointInfo) SetVolumeRecoveryPointTime(v string) *VolumeRecoveryPointInfo { + s.VolumeRecoveryPointTime = &v + return s +} + +// SetVolumeSizeInBytes sets the VolumeSizeInBytes field's value. +func (s *VolumeRecoveryPointInfo) SetVolumeSizeInBytes(v int64) *VolumeRecoveryPointInfo { + s.VolumeSizeInBytes = &v + return s +} + +// SetVolumeUsageInBytes sets the VolumeUsageInBytes field's value. +func (s *VolumeRecoveryPointInfo) SetVolumeUsageInBytes(v int64) *VolumeRecoveryPointInfo { + s.VolumeUsageInBytes = &v + return s +} + // Lists iSCSI information about a volume. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/VolumeiSCSIAttributes type VolumeiSCSIAttributes struct { _ struct{} `type:"structure"` @@ -8955,6 +12326,36 @@ func (s VolumeiSCSIAttributes) GoString() string { return s.String() } +// SetChapEnabled sets the ChapEnabled field's value. +func (s *VolumeiSCSIAttributes) SetChapEnabled(v bool) *VolumeiSCSIAttributes { + s.ChapEnabled = &v + return s +} + +// SetLunNumber sets the LunNumber field's value. +func (s *VolumeiSCSIAttributes) SetLunNumber(v int64) *VolumeiSCSIAttributes { + s.LunNumber = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *VolumeiSCSIAttributes) SetNetworkInterfaceId(v string) *VolumeiSCSIAttributes { + s.NetworkInterfaceId = &v + return s +} + +// SetNetworkInterfacePort sets the NetworkInterfacePort field's value. +func (s *VolumeiSCSIAttributes) SetNetworkInterfacePort(v int64) *VolumeiSCSIAttributes { + s.NetworkInterfacePort = &v + return s +} + +// SetTargetARN sets the TargetARN field's value. +func (s *VolumeiSCSIAttributes) SetTargetARN(v string) *VolumeiSCSIAttributes { + s.TargetARN = &v + return s +} + const ( // ErrorCodeActivationKeyExpired is a ErrorCode enum value ErrorCodeActivationKeyExpired = "ActivationKeyExpired" diff --git a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/errors.go b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/errors.go new file mode 100644 index 000000000..c7a4a559e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/errors.go @@ -0,0 +1,27 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package storagegateway + +const ( + + // ErrCodeInternalServerError for service response error code + // "InternalServerError". + // + // An internal server error has occurred during the request. For more information, + // see the error and message fields. + ErrCodeInternalServerError = "InternalServerError" + + // ErrCodeInvalidGatewayRequestException for service response error code + // "InvalidGatewayRequestException". + // + // An exception occurred because an invalid gateway request was issued to the + // service. For more information, see the error and message fields. + ErrCodeInvalidGatewayRequestException = "InvalidGatewayRequestException" + + // ErrCodeServiceUnavailableError for service response error code + // "ServiceUnavailableError". + // + // An internal server error has occurred because the service is unavailable. + // For more information, see the error and message fields. + ErrCodeServiceUnavailableError = "ServiceUnavailableError" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/examples_test.go index 813e49e61..4646acd41 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleStorageGateway_ActivateGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -47,11 +43,7 @@ func ExampleStorageGateway_ActivateGateway() { } func ExampleStorageGateway_AddCache() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -76,11 +68,7 @@ func ExampleStorageGateway_AddCache() { } func ExampleStorageGateway_AddTagsToResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -108,11 +96,7 @@ func ExampleStorageGateway_AddTagsToResource() { } func ExampleStorageGateway_AddUploadBuffer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -137,11 +121,7 @@ func ExampleStorageGateway_AddUploadBuffer() { } func ExampleStorageGateway_AddWorkingStorage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -166,11 +146,7 @@ func ExampleStorageGateway_AddWorkingStorage() { } func ExampleStorageGateway_CancelArchival() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -192,11 +168,7 @@ func ExampleStorageGateway_CancelArchival() { } func ExampleStorageGateway_CancelRetrieval() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -218,11 +190,7 @@ func ExampleStorageGateway_CancelRetrieval() { } func ExampleStorageGateway_CreateCachediSCSIVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -233,6 +201,7 @@ func ExampleStorageGateway_CreateCachediSCSIVolume() { TargetName: aws.String("TargetName"), // Required VolumeSizeInBytes: aws.Int64(1), // Required SnapshotId: aws.String("SnapshotId"), + SourceVolumeARN: aws.String("VolumeARN"), } resp, err := svc.CreateCachediSCSIVolume(params) @@ -247,13 +216,46 @@ func ExampleStorageGateway_CreateCachediSCSIVolume() { fmt.Println(resp) } -func ExampleStorageGateway_CreateSnapshot() { - sess, err := session.NewSession() +func ExampleStorageGateway_CreateNFSFileShare() { + sess := session.Must(session.NewSession()) + + svc := storagegateway.New(sess) + + params := &storagegateway.CreateNFSFileShareInput{ + ClientToken: aws.String("ClientToken"), // Required + GatewayARN: aws.String("GatewayARN"), // Required + LocationARN: aws.String("LocationARN"), // Required + Role: aws.String("Role"), // Required + ClientList: []*string{ + aws.String("IPV4AddressCIDR"), // Required + // More values... + }, + DefaultStorageClass: aws.String("StorageClass"), + KMSEncrypted: aws.Bool(true), + KMSKey: aws.String("KMSKey"), + NFSFileShareDefaults: &storagegateway.NFSFileShareDefaults{ + DirectoryMode: aws.String("PermissionMode"), + FileMode: aws.String("PermissionMode"), + GroupId: aws.Int64(1), + OwnerId: aws.Int64(1), + }, + } + resp, err := svc.CreateNFSFileShare(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleStorageGateway_CreateSnapshot() { + sess := session.Must(session.NewSession()) + svc := storagegateway.New(sess) params := &storagegateway.CreateSnapshotInput{ @@ -274,11 +276,7 @@ func ExampleStorageGateway_CreateSnapshot() { } func ExampleStorageGateway_CreateSnapshotFromVolumeRecoveryPoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -300,11 +298,7 @@ func ExampleStorageGateway_CreateSnapshotFromVolumeRecoveryPoint() { } func ExampleStorageGateway_CreateStorediSCSIVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -330,11 +324,7 @@ func ExampleStorageGateway_CreateStorediSCSIVolume() { } func ExampleStorageGateway_CreateTapeWithBarcode() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -357,11 +347,7 @@ func ExampleStorageGateway_CreateTapeWithBarcode() { } func ExampleStorageGateway_CreateTapes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -386,11 +372,7 @@ func ExampleStorageGateway_CreateTapes() { } func ExampleStorageGateway_DeleteBandwidthRateLimit() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -412,11 +394,7 @@ func ExampleStorageGateway_DeleteBandwidthRateLimit() { } func ExampleStorageGateway_DeleteChapCredentials() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -437,13 +415,30 @@ func ExampleStorageGateway_DeleteChapCredentials() { fmt.Println(resp) } -func ExampleStorageGateway_DeleteGateway() { - sess, err := session.NewSession() +func ExampleStorageGateway_DeleteFileShare() { + sess := session.Must(session.NewSession()) + + svc := storagegateway.New(sess) + + params := &storagegateway.DeleteFileShareInput{ + FileShareARN: aws.String("FileShareARN"), // Required + } + resp, err := svc.DeleteFileShare(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleStorageGateway_DeleteGateway() { + sess := session.Must(session.NewSession()) + svc := storagegateway.New(sess) params := &storagegateway.DeleteGatewayInput{ @@ -463,11 +458,7 @@ func ExampleStorageGateway_DeleteGateway() { } func ExampleStorageGateway_DeleteSnapshotSchedule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -488,11 +479,7 @@ func ExampleStorageGateway_DeleteSnapshotSchedule() { } func ExampleStorageGateway_DeleteTape() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -514,11 +501,7 @@ func ExampleStorageGateway_DeleteTape() { } func ExampleStorageGateway_DeleteTapeArchive() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -539,11 +522,7 @@ func ExampleStorageGateway_DeleteTapeArchive() { } func ExampleStorageGateway_DeleteVolume() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -564,11 +543,7 @@ func ExampleStorageGateway_DeleteVolume() { } func ExampleStorageGateway_DescribeBandwidthRateLimit() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -589,11 +564,7 @@ func ExampleStorageGateway_DescribeBandwidthRateLimit() { } func ExampleStorageGateway_DescribeCache() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -614,11 +585,7 @@ func ExampleStorageGateway_DescribeCache() { } func ExampleStorageGateway_DescribeCachediSCSIVolumes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -642,11 +609,7 @@ func ExampleStorageGateway_DescribeCachediSCSIVolumes() { } func ExampleStorageGateway_DescribeChapCredentials() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -667,11 +630,7 @@ func ExampleStorageGateway_DescribeChapCredentials() { } func ExampleStorageGateway_DescribeGatewayInformation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -692,11 +651,7 @@ func ExampleStorageGateway_DescribeGatewayInformation() { } func ExampleStorageGateway_DescribeMaintenanceStartTime() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -716,13 +671,33 @@ func ExampleStorageGateway_DescribeMaintenanceStartTime() { fmt.Println(resp) } -func ExampleStorageGateway_DescribeSnapshotSchedule() { - sess, err := session.NewSession() +func ExampleStorageGateway_DescribeNFSFileShares() { + sess := session.Must(session.NewSession()) + + svc := storagegateway.New(sess) + + params := &storagegateway.DescribeNFSFileSharesInput{ + FileShareARNList: []*string{ // Required + aws.String("FileShareARN"), // Required + // More values... + }, + } + resp, err := svc.DescribeNFSFileShares(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleStorageGateway_DescribeSnapshotSchedule() { + sess := session.Must(session.NewSession()) + svc := storagegateway.New(sess) params := &storagegateway.DescribeSnapshotScheduleInput{ @@ -742,11 +717,7 @@ func ExampleStorageGateway_DescribeSnapshotSchedule() { } func ExampleStorageGateway_DescribeStorediSCSIVolumes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -770,11 +741,7 @@ func ExampleStorageGateway_DescribeStorediSCSIVolumes() { } func ExampleStorageGateway_DescribeTapeArchives() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -800,11 +767,7 @@ func ExampleStorageGateway_DescribeTapeArchives() { } func ExampleStorageGateway_DescribeTapeRecoveryPoints() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -827,11 +790,7 @@ func ExampleStorageGateway_DescribeTapeRecoveryPoints() { } func ExampleStorageGateway_DescribeTapes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -858,11 +817,7 @@ func ExampleStorageGateway_DescribeTapes() { } func ExampleStorageGateway_DescribeUploadBuffer() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -883,11 +838,7 @@ func ExampleStorageGateway_DescribeUploadBuffer() { } func ExampleStorageGateway_DescribeVTLDevices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -914,11 +865,7 @@ func ExampleStorageGateway_DescribeVTLDevices() { } func ExampleStorageGateway_DescribeWorkingStorage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -939,11 +886,7 @@ func ExampleStorageGateway_DescribeWorkingStorage() { } func ExampleStorageGateway_DisableGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -963,13 +906,32 @@ func ExampleStorageGateway_DisableGateway() { fmt.Println(resp) } -func ExampleStorageGateway_ListGateways() { - sess, err := session.NewSession() +func ExampleStorageGateway_ListFileShares() { + sess := session.Must(session.NewSession()) + + svc := storagegateway.New(sess) + + params := &storagegateway.ListFileSharesInput{ + GatewayARN: aws.String("GatewayARN"), + Limit: aws.Int64(1), + Marker: aws.String("Marker"), + } + resp, err := svc.ListFileShares(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleStorageGateway_ListGateways() { + sess := session.Must(session.NewSession()) + svc := storagegateway.New(sess) params := &storagegateway.ListGatewaysInput{ @@ -990,11 +952,7 @@ func ExampleStorageGateway_ListGateways() { } func ExampleStorageGateway_ListLocalDisks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1015,11 +973,7 @@ func ExampleStorageGateway_ListLocalDisks() { } func ExampleStorageGateway_ListTagsForResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1042,11 +996,7 @@ func ExampleStorageGateway_ListTagsForResource() { } func ExampleStorageGateway_ListTapes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1072,11 +1022,7 @@ func ExampleStorageGateway_ListTapes() { } func ExampleStorageGateway_ListVolumeInitiators() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1097,11 +1043,7 @@ func ExampleStorageGateway_ListVolumeInitiators() { } func ExampleStorageGateway_ListVolumeRecoveryPoints() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1122,11 +1064,7 @@ func ExampleStorageGateway_ListVolumeRecoveryPoints() { } func ExampleStorageGateway_ListVolumes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1149,11 +1087,7 @@ func ExampleStorageGateway_ListVolumes() { } func ExampleStorageGateway_RemoveTagsFromResource() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1178,11 +1112,7 @@ func ExampleStorageGateway_RemoveTagsFromResource() { } func ExampleStorageGateway_ResetCache() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1203,11 +1133,7 @@ func ExampleStorageGateway_ResetCache() { } func ExampleStorageGateway_RetrieveTapeArchive() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1229,11 +1155,7 @@ func ExampleStorageGateway_RetrieveTapeArchive() { } func ExampleStorageGateway_RetrieveTapeRecoveryPoint() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1255,11 +1177,7 @@ func ExampleStorageGateway_RetrieveTapeRecoveryPoint() { } func ExampleStorageGateway_SetLocalConsolePassword() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1281,11 +1199,7 @@ func ExampleStorageGateway_SetLocalConsolePassword() { } func ExampleStorageGateway_ShutdownGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1306,11 +1220,7 @@ func ExampleStorageGateway_ShutdownGateway() { } func ExampleStorageGateway_StartGateway() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1331,11 +1241,7 @@ func ExampleStorageGateway_StartGateway() { } func ExampleStorageGateway_UpdateBandwidthRateLimit() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1358,11 +1264,7 @@ func ExampleStorageGateway_UpdateBandwidthRateLimit() { } func ExampleStorageGateway_UpdateChapCredentials() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1386,11 +1288,7 @@ func ExampleStorageGateway_UpdateChapCredentials() { } func ExampleStorageGateway_UpdateGatewayInformation() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1413,11 +1311,7 @@ func ExampleStorageGateway_UpdateGatewayInformation() { } func ExampleStorageGateway_UpdateGatewaySoftwareNow() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1438,11 +1332,7 @@ func ExampleStorageGateway_UpdateGatewaySoftwareNow() { } func ExampleStorageGateway_UpdateMaintenanceStartTime() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) @@ -1465,13 +1355,43 @@ func ExampleStorageGateway_UpdateMaintenanceStartTime() { fmt.Println(resp) } -func ExampleStorageGateway_UpdateSnapshotSchedule() { - sess, err := session.NewSession() +func ExampleStorageGateway_UpdateNFSFileShare() { + sess := session.Must(session.NewSession()) + + svc := storagegateway.New(sess) + + params := &storagegateway.UpdateNFSFileShareInput{ + FileShareARN: aws.String("FileShareARN"), // Required + ClientList: []*string{ + aws.String("IPV4AddressCIDR"), // Required + // More values... + }, + DefaultStorageClass: aws.String("StorageClass"), + KMSEncrypted: aws.Bool(true), + KMSKey: aws.String("KMSKey"), + NFSFileShareDefaults: &storagegateway.NFSFileShareDefaults{ + DirectoryMode: aws.String("PermissionMode"), + FileMode: aws.String("PermissionMode"), + GroupId: aws.Int64(1), + OwnerId: aws.Int64(1), + }, + } + resp, err := svc.UpdateNFSFileShare(params) + if err != nil { - fmt.Println("failed to create session,", err) + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) return } + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleStorageGateway_UpdateSnapshotSchedule() { + sess := session.Must(session.NewSession()) + svc := storagegateway.New(sess) params := &storagegateway.UpdateSnapshotScheduleInput{ @@ -1494,11 +1414,7 @@ func ExampleStorageGateway_UpdateSnapshotSchedule() { } func ExampleStorageGateway_UpdateVTLDeviceType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := storagegateway.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/service.go b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/service.go index aefbd4945..c7c48677b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/service.go @@ -20,51 +20,52 @@ import ( // Use the following links to get started using the AWS Storage Gateway Service // API Reference: // -// AWS Storage Gateway Required Request Headers (http://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayHTTPRequestsHeaders.html): -// Describes the required headers that you must send with every POST request -// to AWS Storage Gateway. +// * AWS Storage Gateway Required Request Headers (http://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPI.html#AWSStorageGatewayHTTPRequestsHeaders): +// Describes the required headers that you must send with every POST request +// to AWS Storage Gateway. // -// Signing Requests (http://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewaySigningRequests.html): -// AWS Storage Gateway requires that you authenticate every request you send; -// this topic describes how sign such a request. +// * Signing Requests (http://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPI.html#AWSStorageGatewaySigningRequests): +// AWS Storage Gateway requires that you authenticate every request you send; +// this topic describes how sign such a request. // -// Error Responses (http://docs.aws.amazon.com/storagegateway/latest/userguide/APIErrorResponses.html): -// Provides reference information about AWS Storage Gateway errors. +// * Error Responses (http://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPI.html#APIErrorResponses): +// Provides reference information about AWS Storage Gateway errors. // -// Operations in AWS Storage Gateway (http://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPIOperations.html): -// Contains detailed descriptions of all AWS Storage Gateway operations, their -// request parameters, response elements, possible errors, and examples of requests -// and responses. +// * Operations in AWS Storage Gateway (http://docs.aws.amazon.com/storagegateway/latest/APIReference/API_Operations.html): +// Contains detailed descriptions of all AWS Storage Gateway operations, +// their request parameters, response elements, possible errors, and examples +// of requests and responses. // -// AWS Storage Gateway Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/index.html?rande.html): -// Provides a list of each of the s and endpoints available for use with AWS -// Storage Gateway. +// * AWS Storage Gateway Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/index.html?rande.html): +// Provides a list of each of the s and endpoints available for use with +// AWS Storage Gateway. // -// AWS Storage Gateway resource IDs are in uppercase. When you use these -// resource IDs with the Amazon EC2 API, EC2 expects resource IDs in lowercase. -// You must change your resource ID to lowercase to use it with the EC2 API. -// For example, in Storage Gateway the ID for a volume might be vol-1122AABB. -// When you use this ID with the EC2 API, you must change it to vol-1122aabb. -// Otherwise, the EC2 API might not behave as expected. +// AWS Storage Gateway resource IDs are in uppercase. When you use these resource +// IDs with the Amazon EC2 API, EC2 expects resource IDs in lowercase. You must +// change your resource ID to lowercase to use it with the EC2 API. For example, +// in Storage Gateway the ID for a volume might be vol-1122AABB. When you use +// this ID with the EC2 API, you must change it to vol-1122aabb. Otherwise, +// the EC2 API might not behave as expected. // -// IDs for Storage Gateway volumes and Amazon EBS snapshots created from -// gateway volumes are changing to a longer format. Starting in December 2016, -// all new volumes and snapshots will be created with a 17-character string. -// Starting in April 2016, you will be able to use these longer IDs so you can -// test your systems with the new format. For more information, see Longer EC2 -// and EBS Resource IDs (https://aws.amazon.com/ec2/faqs/#longer-ids). +// IDs for Storage Gateway volumes and Amazon EBS snapshots created from gateway +// volumes are changing to a longer format. Starting in December 2016, all new +// volumes and snapshots will be created with a 17-character string. Starting +// in April 2016, you will be able to use these longer IDs so you can test your +// systems with the new format. For more information, see Longer EC2 and EBS +// Resource IDs (https://aws.amazon.com/ec2/faqs/#longer-ids). // // For example, a volume ARN with the longer volume ID format will look like // this: // -// arn:aws:storagegateway:us-west-2:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABBCCDDEEFFG. +// arn:aws:storagegateway:us-west-2:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABBCCDDEEFFG. // // A snapshot ID with the longer ID format will look like this: snap-78e226633445566ee. // // For more information, see Announcement: Heads-up – Longer AWS Storage Gateway // volume and snapshot IDs coming in 2016 (https://forums.aws.amazon.com/ann.jspa?annID=3557). -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30 type StorageGateway struct { *client.Client } @@ -75,8 +76,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "storagegateway" +// Service information constants +const ( + ServiceName = "storagegateway" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the StorageGateway client with a session. // If additional configuration is needed for the client instance use the optional @@ -89,17 +93,18 @@ const ServiceName = "storagegateway" // // Create a StorageGateway client with additional configuration // svc := storagegateway.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *StorageGateway { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *StorageGateway { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *StorageGateway { svc := &StorageGateway{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2013-06-30", diff --git a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/storagegatewayiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/storagegatewayiface/interface.go index 4b8a9aad9..3983a2f25 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/storagegatewayiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/storagegatewayiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockStorageGatewayClient{} // @@ -91,6 +91,10 @@ type StorageGatewayAPI interface { CreateCachediSCSIVolume(*storagegateway.CreateCachediSCSIVolumeInput) (*storagegateway.CreateCachediSCSIVolumeOutput, error) + CreateNFSFileShareRequest(*storagegateway.CreateNFSFileShareInput) (*request.Request, *storagegateway.CreateNFSFileShareOutput) + + CreateNFSFileShare(*storagegateway.CreateNFSFileShareInput) (*storagegateway.CreateNFSFileShareOutput, error) + CreateSnapshotRequest(*storagegateway.CreateSnapshotInput) (*request.Request, *storagegateway.CreateSnapshotOutput) CreateSnapshot(*storagegateway.CreateSnapshotInput) (*storagegateway.CreateSnapshotOutput, error) @@ -119,6 +123,10 @@ type StorageGatewayAPI interface { DeleteChapCredentials(*storagegateway.DeleteChapCredentialsInput) (*storagegateway.DeleteChapCredentialsOutput, error) + DeleteFileShareRequest(*storagegateway.DeleteFileShareInput) (*request.Request, *storagegateway.DeleteFileShareOutput) + + DeleteFileShare(*storagegateway.DeleteFileShareInput) (*storagegateway.DeleteFileShareOutput, error) + DeleteGatewayRequest(*storagegateway.DeleteGatewayInput) (*request.Request, *storagegateway.DeleteGatewayOutput) DeleteGateway(*storagegateway.DeleteGatewayInput) (*storagegateway.DeleteGatewayOutput, error) @@ -163,6 +171,10 @@ type StorageGatewayAPI interface { DescribeMaintenanceStartTime(*storagegateway.DescribeMaintenanceStartTimeInput) (*storagegateway.DescribeMaintenanceStartTimeOutput, error) + DescribeNFSFileSharesRequest(*storagegateway.DescribeNFSFileSharesInput) (*request.Request, *storagegateway.DescribeNFSFileSharesOutput) + + DescribeNFSFileShares(*storagegateway.DescribeNFSFileSharesInput) (*storagegateway.DescribeNFSFileSharesOutput, error) + DescribeSnapshotScheduleRequest(*storagegateway.DescribeSnapshotScheduleInput) (*request.Request, *storagegateway.DescribeSnapshotScheduleOutput) DescribeSnapshotSchedule(*storagegateway.DescribeSnapshotScheduleInput) (*storagegateway.DescribeSnapshotScheduleOutput, error) @@ -207,6 +219,10 @@ type StorageGatewayAPI interface { DisableGateway(*storagegateway.DisableGatewayInput) (*storagegateway.DisableGatewayOutput, error) + ListFileSharesRequest(*storagegateway.ListFileSharesInput) (*request.Request, *storagegateway.ListFileSharesOutput) + + ListFileShares(*storagegateway.ListFileSharesInput) (*storagegateway.ListFileSharesOutput, error) + ListGatewaysRequest(*storagegateway.ListGatewaysInput) (*request.Request, *storagegateway.ListGatewaysOutput) ListGateways(*storagegateway.ListGatewaysInput) (*storagegateway.ListGatewaysOutput, error) @@ -287,6 +303,10 @@ type StorageGatewayAPI interface { UpdateMaintenanceStartTime(*storagegateway.UpdateMaintenanceStartTimeInput) (*storagegateway.UpdateMaintenanceStartTimeOutput, error) + UpdateNFSFileShareRequest(*storagegateway.UpdateNFSFileShareInput) (*request.Request, *storagegateway.UpdateNFSFileShareOutput) + + UpdateNFSFileShare(*storagegateway.UpdateNFSFileShareInput) (*storagegateway.UpdateNFSFileShareOutput, error) + UpdateSnapshotScheduleRequest(*storagegateway.UpdateSnapshotScheduleInput) (*request.Request, *storagegateway.UpdateSnapshotScheduleOutput) UpdateSnapshotSchedule(*storagegateway.UpdateSnapshotScheduleInput) (*storagegateway.UpdateSnapshotScheduleOutput, error) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/api.go b/vendor/github.com/aws/aws-sdk-go/service/sts/api.go index 17c7365e6..ad42b4c97 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sts/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sts/api.go @@ -36,6 +36,7 @@ const opAssumeRole = "AssumeRole" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRole func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, output *AssumeRoleOutput) { op := &request.Operation{ Name: opAssumeRole, @@ -47,9 +48,8 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o input = &AssumeRoleInput{} } - req = c.newRequest(op, input, output) output = &AssumeRoleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -64,7 +64,7 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o // and Comparing the AWS STS APIs (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison) // in the IAM User Guide. // -// Important: You cannot call AssumeRole by using AWS root account credentials; +// Important: You cannot call AssumeRole by using AWS root account credentials; // access is denied. You must use credentials for an IAM user or an IAM role // to call AssumeRole. // @@ -93,18 +93,18 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o // when calling AssumeRole, which can be from 900 seconds (15 minutes) to a // maximum of 3600 seconds (1 hour). The default is 1 hour. // -// The temporary security credentials created by AssumeRole can be used to -// make API calls to any AWS service with the following exception: you cannot -// call the STS service's GetFederationToken or GetSessionToken APIs. +// The temporary security credentials created by AssumeRole can be used to make +// API calls to any AWS service with the following exception: you cannot call +// the STS service's GetFederationToken or GetSessionToken APIs. // -// Optionally, you can pass an IAM access policy to this operation. If you -// choose not to pass a policy, the temporary security credentials that are -// returned by the operation have the permissions that are defined in the access -// policy of the role that is being assumed. If you pass a policy to this operation, +// Optionally, you can pass an IAM access policy to this operation. If you choose +// not to pass a policy, the temporary security credentials that are returned +// by the operation have the permissions that are defined in the access policy +// of the role that is being assumed. If you pass a policy to this operation, // the temporary security credentials that are returned by the operation have // the permissions that are allowed by both the access policy of the role that -// is being assumed, and the policy that you pass. This gives you a way to -// further restrict the permissions for the resulting temporary security credentials. +// is being assumed, and the policy that you pass. This gives you a way to further +// restrict the permissions for the resulting temporary security credentials. // You cannot use the passed policy to grant permissions that are in excess // of those allowed by the access policy of the role that is being assumed. // For more information, see Permissions for AssumeRole, AssumeRoleWithSAML, @@ -124,7 +124,7 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o // a policy to the user (identical to the previous different account user), // or you can add the user as a principal directly in the role's trust policy // -// Using MFA with AssumeRole +// Using MFA with AssumeRole // // You can optionally include multi-factor authentication (MFA) information // when you call AssumeRole. This is useful for cross-account scenarios in which @@ -135,7 +135,7 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o // denied. The condition in a trust policy that tests for MFA authentication // might look like the following example. // -// "Condition": {"Bool": {"aws:MultiFactorAuthPresent": true}} +// "Condition": {"Bool": {"aws:MultiFactorAuthPresent": true}} // // For more information, see Configuring MFA-Protected API Access (http://docs.aws.amazon.com/IAM/latest/UserGuide/MFAProtectedAPI.html) // in the IAM User Guide guide. @@ -153,22 +153,23 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o // API operation AssumeRole for usage and error information. // // Returned Error Codes: -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * PackedPolicyTooLarge +// * ErrCodePackedPolicyTooLargeException "PackedPolicyTooLarge" // The request was rejected because the policy document was too large. The error // message describes how big the policy document is, in packed form, as a percentage // of what the API allows. // -// * RegionDisabledException +// * ErrCodeRegionDisabledException "RegionDisabledException" // STS is not activated in the requested region for the account that is being // asked to generate credentials. The account administrator must use the IAM // console to activate STS in that region. For more information, see Activating // and Deactivating AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) // in the IAM User Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRole func (c *STS) AssumeRole(input *AssumeRoleInput) (*AssumeRoleOutput, error) { req, out := c.AssumeRoleRequest(input) err := req.Send() @@ -201,6 +202,7 @@ const opAssumeRoleWithSAML = "AssumeRoleWithSAML" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithSAML func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *request.Request, output *AssumeRoleWithSAMLOutput) { op := &request.Operation{ Name: opAssumeRoleWithSAML, @@ -212,9 +214,8 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re input = &AssumeRoleWithSAMLInput{} } - req = c.newRequest(op, input, output) output = &AssumeRoleWithSAMLOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -239,17 +240,17 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re // can be from 900 seconds (15 minutes) to a maximum of 3600 seconds (1 hour). // The default is 1 hour. // -// The temporary security credentials created by AssumeRoleWithSAML can be -// used to make API calls to any AWS service with the following exception: you -// cannot call the STS service's GetFederationToken or GetSessionToken APIs. +// The temporary security credentials created by AssumeRoleWithSAML can be used +// to make API calls to any AWS service with the following exception: you cannot +// call the STS service's GetFederationToken or GetSessionToken APIs. // -// Optionally, you can pass an IAM access policy to this operation. If you -// choose not to pass a policy, the temporary security credentials that are -// returned by the operation have the permissions that are defined in the access -// policy of the role that is being assumed. If you pass a policy to this operation, +// Optionally, you can pass an IAM access policy to this operation. If you choose +// not to pass a policy, the temporary security credentials that are returned +// by the operation have the permissions that are defined in the access policy +// of the role that is being assumed. If you pass a policy to this operation, // the temporary security credentials that are returned by the operation have // the permissions that are allowed by the intersection of both the access policy -// of the role that is being assumed, and the policy that you pass. This means +// of the role that is being assumed, and the policy that you pass. This means // that both policies must grant the permission for the action to be allowed. // This gives you a way to further restrict the permissions for the resulting // temporary security credentials. You cannot use the passed policy to grant @@ -258,8 +259,8 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re // AssumeRoleWithSAML, and AssumeRoleWithWebIdentity (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_assumerole.html) // in the IAM User Guide. // -// Before your application can call AssumeRoleWithSAML, you must configure -// your SAML identity provider (IdP) to issue the claims required by AWS. Additionally, +// Before your application can call AssumeRoleWithSAML, you must configure your +// SAML identity provider (IdP) to issue the claims required by AWS. Additionally, // you must use AWS Identity and Access Management (IAM) to create a SAML provider // entity in your AWS account that represents your identity provider, and create // an IAM role that specifies this SAML provider in its trust policy. @@ -268,25 +269,25 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re // The identity of the caller is validated by using keys in the metadata document // that is uploaded for the SAML provider entity for your identity provider. // -// Calling AssumeRoleWithSAML can result in an entry in your AWS CloudTrail +// Calling AssumeRoleWithSAML can result in an entry in your AWS CloudTrail // logs. The entry includes the value in the NameID element of the SAML assertion. // We recommend that you use a NameIDType that is not associated with any personally // identifiable information (PII). For example, you could instead use the Persistent // Identifier (urn:oasis:names:tc:SAML:2.0:nameid-format:persistent). // -// For more information, see the following resources: +// For more information, see the following resources: // -// About SAML 2.0-based Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html) -// in the IAM User Guide. +// * About SAML 2.0-based Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html) +// in the IAM User Guide. // -// Creating SAML Identity Providers (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml.html) -// in the IAM User Guide. +// * Creating SAML Identity Providers (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml.html) +// in the IAM User Guide. // -// Configuring a Relying Party and Claims (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml_relying-party.html) -// in the IAM User Guide. +// * Configuring a Relying Party and Claims (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml_relying-party.html) +// in the IAM User Guide. // -// Creating a Role for SAML 2.0 Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-idp_saml.html) -// in the IAM User Guide. +// * Creating a Role for SAML 2.0 Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-idp_saml.html) +// in the IAM User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -296,37 +297,38 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re // API operation AssumeRoleWithSAML for usage and error information. // // Returned Error Codes: -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * PackedPolicyTooLarge +// * ErrCodePackedPolicyTooLargeException "PackedPolicyTooLarge" // The request was rejected because the policy document was too large. The error // message describes how big the policy document is, in packed form, as a percentage // of what the API allows. // -// * IDPRejectedClaim +// * ErrCodeIDPRejectedClaimException "IDPRejectedClaim" // The identity provider (IdP) reported that authentication failed. This might // be because the claim is invalid. // // If this error is returned for the AssumeRoleWithWebIdentity operation, it // can also mean that the claim has expired or has been explicitly revoked. // -// * InvalidIdentityToken +// * ErrCodeInvalidIdentityTokenException "InvalidIdentityToken" // The web identity token that was passed could not be validated by AWS. Get // a new identity token from the identity provider and then retry the request. // -// * ExpiredTokenException +// * ErrCodeExpiredTokenException "ExpiredTokenException" // The web identity token that was passed is expired or is not valid. Get a // new identity token from the identity provider and then retry the request. // -// * RegionDisabledException +// * ErrCodeRegionDisabledException "RegionDisabledException" // STS is not activated in the requested region for the account that is being // asked to generate credentials. The account administrator must use the IAM // console to activate STS in that region. For more information, see Activating // and Deactivating AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) // in the IAM User Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithSAML func (c *STS) AssumeRoleWithSAML(input *AssumeRoleWithSAMLInput) (*AssumeRoleWithSAMLOutput, error) { req, out := c.AssumeRoleWithSAMLRequest(input) err := req.Send() @@ -359,6 +361,7 @@ const opAssumeRoleWithWebIdentity = "AssumeRoleWithWebIdentity" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithWebIdentity func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityInput) (req *request.Request, output *AssumeRoleWithWebIdentityOutput) { op := &request.Operation{ Name: opAssumeRoleWithWebIdentity, @@ -370,9 +373,8 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI input = &AssumeRoleWithWebIdentityInput{} } - req = c.newRequest(op, input, output) output = &AssumeRoleWithWebIdentityOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -383,8 +385,8 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI // Cognito, Login with Amazon, Facebook, Google, or any OpenID Connect-compatible // identity provider. // -// For mobile applications, we recommend that you use Amazon Cognito. You -// can use Amazon Cognito with the AWS SDK for iOS (http://aws.amazon.com/sdkforios/) +// For mobile applications, we recommend that you use Amazon Cognito. You can +// use Amazon Cognito with the AWS SDK for iOS (http://aws.amazon.com/sdkforios/) // and the AWS SDK for Android (http://aws.amazon.com/sdkforandroid/) to uniquely // identify a user and supply the user with a consistent identity throughout // the lifetime of an application. @@ -394,7 +396,7 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI // (http://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-auth.html#d0e664) // in the AWS SDK for iOS Developer Guide. // -// Calling AssumeRoleWithWebIdentity does not require the use of AWS security +// Calling AssumeRoleWithWebIdentity does not require the use of AWS security // credentials. Therefore, you can distribute an application (for example, on // mobile devices) that requests temporary security credentials without including // long-term AWS credentials in the application, and without deploying server-based @@ -413,18 +415,18 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI // AssumeRoleWithWebIdentity, which can be from 900 seconds (15 minutes) to // a maximum of 3600 seconds (1 hour). The default is 1 hour. // -// The temporary security credentials created by AssumeRoleWithWebIdentity -// can be used to make API calls to any AWS service with the following exception: +// The temporary security credentials created by AssumeRoleWithWebIdentity can +// be used to make API calls to any AWS service with the following exception: // you cannot call the STS service's GetFederationToken or GetSessionToken APIs. // -// Optionally, you can pass an IAM access policy to this operation. If you -// choose not to pass a policy, the temporary security credentials that are -// returned by the operation have the permissions that are defined in the access -// policy of the role that is being assumed. If you pass a policy to this operation, +// Optionally, you can pass an IAM access policy to this operation. If you choose +// not to pass a policy, the temporary security credentials that are returned +// by the operation have the permissions that are defined in the access policy +// of the role that is being assumed. If you pass a policy to this operation, // the temporary security credentials that are returned by the operation have // the permissions that are allowed by both the access policy of the role that -// is being assumed, and the policy that you pass. This gives you a way to -// further restrict the permissions for the resulting temporary security credentials. +// is being assumed, and the policy that you pass. This gives you a way to further +// restrict the permissions for the resulting temporary security credentials. // You cannot use the passed policy to grant permissions that are in excess // of those allowed by the access policy of the role that is being assumed. // For more information, see Permissions for AssumeRole, AssumeRoleWithSAML, @@ -437,32 +439,36 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI // the identity provider that is associated with the identity token. In other // words, the identity provider must be specified in the role's trust policy. // -// Calling AssumeRoleWithWebIdentity can result in an entry in your AWS CloudTrail +// Calling AssumeRoleWithWebIdentity can result in an entry in your AWS CloudTrail // logs. The entry includes the Subject (http://openid.net/specs/openid-connect-core-1_0.html#Claims) // of the provided Web Identity Token. We recommend that you avoid using any // personally identifiable information (PII) in this field. For example, you // could instead use a GUID or a pairwise identifier, as suggested in the OIDC // specification (http://openid.net/specs/openid-connect-core-1_0.html#SubjectIDTypes). // -// For more information about how to use web identity federation and the AssumeRoleWithWebIdentity +// For more information about how to use web identity federation and the AssumeRoleWithWebIdentity // API, see the following resources: // -// Using Web Identity Federation APIs for Mobile Apps (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc_manual) -// and Federation Through a Web-based Identity Provider (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_assumerolewithwebidentity). +// * Using Web Identity Federation APIs for Mobile Apps (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc_manual.html) +// and Federation Through a Web-based Identity Provider (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_assumerolewithwebidentity). +// // -// Web Identity Federation Playground (https://web-identity-federation-playground.s3.amazonaws.com/index.html). -// This interactive website lets you walk through the process of authenticating -// via Login with Amazon, Facebook, or Google, getting temporary security credentials, -// and then using those credentials to make a request to AWS. +// * Web Identity Federation Playground (https://web-identity-federation-playground.s3.amazonaws.com/index.html). +// This interactive website lets you walk through the process of authenticating +// via Login with Amazon, Facebook, or Google, getting temporary security +// credentials, and then using those credentials to make a request to AWS. // -// AWS SDK for iOS (http://aws.amazon.com/sdkforios/) and AWS SDK for Android -// (http://aws.amazon.com/sdkforandroid/). These toolkits contain sample apps -// that show how to invoke the identity providers, and then how to use the information -// from these providers to get and use temporary security credentials. // -// Web Identity Federation with Mobile Applications (http://aws.amazon.com/articles/4617974389850313). -// This article discusses web identity federation and shows an example of how -// to use web identity federation to get access to content in Amazon S3. +// * AWS SDK for iOS (http://aws.amazon.com/sdkforios/) and AWS SDK for Android +// (http://aws.amazon.com/sdkforandroid/). These toolkits contain sample +// apps that show how to invoke the identity providers, and then how to use +// the information from these providers to get and use temporary security +// credentials. +// +// * Web Identity Federation with Mobile Applications (http://aws.amazon.com/articles/4617974389850313). +// This article discusses web identity federation and shows an example of +// how to use web identity federation to get access to content in Amazon +// S3. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -472,44 +478,45 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI // API operation AssumeRoleWithWebIdentity for usage and error information. // // Returned Error Codes: -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * PackedPolicyTooLarge +// * ErrCodePackedPolicyTooLargeException "PackedPolicyTooLarge" // The request was rejected because the policy document was too large. The error // message describes how big the policy document is, in packed form, as a percentage // of what the API allows. // -// * IDPRejectedClaim +// * ErrCodeIDPRejectedClaimException "IDPRejectedClaim" // The identity provider (IdP) reported that authentication failed. This might // be because the claim is invalid. // // If this error is returned for the AssumeRoleWithWebIdentity operation, it // can also mean that the claim has expired or has been explicitly revoked. // -// * IDPCommunicationError +// * ErrCodeIDPCommunicationErrorException "IDPCommunicationError" // The request could not be fulfilled because the non-AWS identity provider // (IDP) that was asked to verify the incoming identity token could not be reached. // This is often a transient error caused by network conditions. Retry the request // a limited number of times so that you don't exceed the request rate. If the // error persists, the non-AWS identity provider might be down or not responding. // -// * InvalidIdentityToken +// * ErrCodeInvalidIdentityTokenException "InvalidIdentityToken" // The web identity token that was passed could not be validated by AWS. Get // a new identity token from the identity provider and then retry the request. // -// * ExpiredTokenException +// * ErrCodeExpiredTokenException "ExpiredTokenException" // The web identity token that was passed is expired or is not valid. Get a // new identity token from the identity provider and then retry the request. // -// * RegionDisabledException +// * ErrCodeRegionDisabledException "RegionDisabledException" // STS is not activated in the requested region for the account that is being // asked to generate credentials. The account administrator must use the IAM // console to activate STS in that region. For more information, see Activating // and Deactivating AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) // in the IAM User Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithWebIdentity func (c *STS) AssumeRoleWithWebIdentity(input *AssumeRoleWithWebIdentityInput) (*AssumeRoleWithWebIdentityOutput, error) { req, out := c.AssumeRoleWithWebIdentityRequest(input) err := req.Send() @@ -542,6 +549,7 @@ const opDecodeAuthorizationMessage = "DecodeAuthorizationMessage" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/DecodeAuthorizationMessage func (c *STS) DecodeAuthorizationMessageRequest(input *DecodeAuthorizationMessageInput) (req *request.Request, output *DecodeAuthorizationMessageOutput) { op := &request.Operation{ Name: opDecodeAuthorizationMessage, @@ -553,9 +561,8 @@ func (c *STS) DecodeAuthorizationMessageRequest(input *DecodeAuthorizationMessag input = &DecodeAuthorizationMessageInput{} } - req = c.newRequest(op, input, output) output = &DecodeAuthorizationMessageOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -569,30 +576,30 @@ func (c *STS) DecodeAuthorizationMessageRequest(input *DecodeAuthorizationMessag // (an HTTP 403 response). Some AWS actions additionally return an encoded message // that can provide details about this authorization failure. // -// Only certain AWS actions return an encoded authorization message. The documentation +// Only certain AWS actions return an encoded authorization message. The documentation // for an individual action indicates whether that action returns an encoded // message in addition to returning an HTTP code. // -// The message is encoded because the details of the authorization status -// can constitute privileged information that the user who requested the action +// The message is encoded because the details of the authorization status can +// constitute privileged information that the user who requested the action // should not see. To decode an authorization status message, a user must be // granted permissions via an IAM policy to request the DecodeAuthorizationMessage // (sts:DecodeAuthorizationMessage) action. // // The decoded message includes the following type of information: // -// Whether the request was denied due to an explicit deny or due to the absence -// of an explicit allow. For more information, see Determining Whether a Request -// is Allowed or Denied (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html#policy-eval-denyallow) -// in the IAM User Guide. +// * Whether the request was denied due to an explicit deny or due to the +// absence of an explicit allow. For more information, see Determining Whether +// a Request is Allowed or Denied (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html#policy-eval-denyallow) +// in the IAM User Guide. // -// The principal who made the request. +// * The principal who made the request. // -// The requested action. +// * The requested action. // -// The requested resource. +// * The requested resource. // -// The values of condition keys in the context of the user's request. +// * The values of condition keys in the context of the user's request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -602,11 +609,12 @@ func (c *STS) DecodeAuthorizationMessageRequest(input *DecodeAuthorizationMessag // API operation DecodeAuthorizationMessage for usage and error information. // // Returned Error Codes: -// * InvalidAuthorizationMessageException +// * ErrCodeInvalidAuthorizationMessageException "InvalidAuthorizationMessageException" // The error returned if the message passed to DecodeAuthorizationMessage was // invalid. This can happen if the token contains invalid characters, such as // linebreaks. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/DecodeAuthorizationMessage func (c *STS) DecodeAuthorizationMessage(input *DecodeAuthorizationMessageInput) (*DecodeAuthorizationMessageOutput, error) { req, out := c.DecodeAuthorizationMessageRequest(input) err := req.Send() @@ -639,6 +647,7 @@ const opGetCallerIdentity = "GetCallerIdentity" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetCallerIdentity func (c *STS) GetCallerIdentityRequest(input *GetCallerIdentityInput) (req *request.Request, output *GetCallerIdentityOutput) { op := &request.Operation{ Name: opGetCallerIdentity, @@ -650,9 +659,8 @@ func (c *STS) GetCallerIdentityRequest(input *GetCallerIdentityInput) (req *requ input = &GetCallerIdentityInput{} } - req = c.newRequest(op, input, output) output = &GetCallerIdentityOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -667,6 +675,7 @@ func (c *STS) GetCallerIdentityRequest(input *GetCallerIdentityInput) (req *requ // // See the AWS API reference guide for AWS Security Token Service's // API operation GetCallerIdentity for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetCallerIdentity func (c *STS) GetCallerIdentity(input *GetCallerIdentityInput) (*GetCallerIdentityOutput, error) { req, out := c.GetCallerIdentityRequest(input) err := req.Send() @@ -699,6 +708,7 @@ const opGetFederationToken = "GetFederationToken" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetFederationToken func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *request.Request, output *GetFederationTokenOutput) { op := &request.Operation{ Name: opGetFederationToken, @@ -710,9 +720,8 @@ func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *re input = &GetFederationTokenInput{} } - req = c.newRequest(op, input, output) output = &GetFederationTokenOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -730,20 +739,20 @@ func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *re // and Comparing the AWS STS APIs (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison) // in the IAM User Guide. // -// If you are creating a mobile-based or browser-based app that can authenticate +// If you are creating a mobile-based or browser-based app that can authenticate // users using a web identity provider like Login with Amazon, Facebook, Google, // or an OpenID Connect-compatible identity provider, we recommend that you // use Amazon Cognito (http://aws.amazon.com/cognito/) or AssumeRoleWithWebIdentity. // For more information, see Federation Through a Web-based Identity Provider // (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_assumerolewithwebidentity). // -// The GetFederationToken action must be called by using the long-term AWS -// security credentials of an IAM user. You can also call GetFederationToken -// using the security credentials of an AWS root account, but we do not recommended -// it. Instead, we recommend that you create an IAM user for the purpose of -// the proxy application and then attach a policy to the IAM user that limits -// federated users to only the actions and resources that they need access to. -// For more information, see IAM Best Practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html) +// The GetFederationToken action must be called by using the long-term AWS security +// credentials of an IAM user. You can also call GetFederationToken using the +// security credentials of an AWS root account, but we do not recommended it. +// Instead, we recommend that you create an IAM user for the purpose of the +// proxy application and then attach a policy to the IAM user that limits federated +// users to only the actions and resources that they need access to. For more +// information, see IAM Best Practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html) // in the IAM User Guide. // // The temporary security credentials that are obtained by using the long-term @@ -752,30 +761,30 @@ func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *re // is 43200 seconds (12 hours). Temporary credentials that are obtained by using // AWS root account credentials have a maximum duration of 3600 seconds (1 hour). // -// The temporary security credentials created by GetFederationToken can be -// used to make API calls to any AWS service with the following exceptions: +// The temporary security credentials created by GetFederationToken can be used +// to make API calls to any AWS service with the following exceptions: // -// You cannot use these credentials to call any IAM APIs. +// * You cannot use these credentials to call any IAM APIs. // -// You cannot call any STS APIs. +// * You cannot call any STS APIs except GetCallerIdentity. // -// Permissions +// Permissions // // The permissions for the temporary security credentials returned by GetFederationToken // are determined by a combination of the following: // -// The policy or policies that are attached to the IAM user whose credentials -// are used to call GetFederationToken. +// * The policy or policies that are attached to the IAM user whose credentials +// are used to call GetFederationToken. // -// The policy that is passed as a parameter in the call. +// * The policy that is passed as a parameter in the call. // -// The passed policy is attached to the temporary security credentials that +// The passed policy is attached to the temporary security credentials that // result from the GetFederationToken API call--that is, to the federated user. // When the federated user makes an AWS request, AWS evaluates the policy attached // to the federated user in combination with the policy or policies attached // to the IAM user whose credentials were used to call GetFederationToken. AWS -// allows the federated user's request only when both the federated user and -// the IAM user are explicitly allowed to perform the requested action. The +// allows the federated user's request only when both the federated user and +// the IAM user are explicitly allowed to perform the requested action. The // passed policy cannot grant more permissions than those that are defined in // the IAM user policy. // @@ -805,22 +814,23 @@ func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *re // API operation GetFederationToken for usage and error information. // // Returned Error Codes: -// * MalformedPolicyDocument +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" // The request was rejected because the policy document was malformed. The error // message describes the specific error. // -// * PackedPolicyTooLarge +// * ErrCodePackedPolicyTooLargeException "PackedPolicyTooLarge" // The request was rejected because the policy document was too large. The error // message describes how big the policy document is, in packed form, as a percentage // of what the API allows. // -// * RegionDisabledException +// * ErrCodeRegionDisabledException "RegionDisabledException" // STS is not activated in the requested region for the account that is being // asked to generate credentials. The account administrator must use the IAM // console to activate STS in that region. For more information, see Activating // and Deactivating AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) // in the IAM User Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetFederationToken func (c *STS) GetFederationToken(input *GetFederationTokenInput) (*GetFederationTokenOutput, error) { req, out := c.GetFederationTokenRequest(input) err := req.Send() @@ -853,6 +863,7 @@ const opGetSessionToken = "GetSessionToken" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetSessionToken func (c *STS) GetSessionTokenRequest(input *GetSessionTokenInput) (req *request.Request, output *GetSessionTokenOutput) { op := &request.Operation{ Name: opGetSessionToken, @@ -864,9 +875,8 @@ func (c *STS) GetSessionTokenRequest(input *GetSessionTokenInput) (req *request. input = &GetSessionTokenInput{} } - req = c.newRequest(op, input, output) output = &GetSessionTokenOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -897,17 +907,17 @@ func (c *STS) GetSessionTokenRequest(input *GetSessionTokenInput) (req *request. // The temporary security credentials created by GetSessionToken can be used // to make API calls to any AWS service with the following exceptions: // -// You cannot call any IAM APIs unless MFA authentication information is -// included in the request. +// * You cannot call any IAM APIs unless MFA authentication information is +// included in the request. // -// You cannot call any STS API except AssumeRole. +// * You cannot call any STS API exceptAssumeRole or GetCallerIdentity. // -// We recommend that you do not call GetSessionToken with root account credentials. +// We recommend that you do not call GetSessionToken with root account credentials. // Instead, follow our best practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#create-iam-users) // by creating one or more IAM users, giving them the necessary permissions, // and using IAM users for everyday interaction with AWS. // -// The permissions associated with the temporary security credentials returned +// The permissions associated with the temporary security credentials returned // by GetSessionToken are based on the permissions associated with account or // IAM user whose credentials are used to call the action. If GetSessionToken // is called using root account credentials, the temporary credentials have @@ -927,19 +937,21 @@ func (c *STS) GetSessionTokenRequest(input *GetSessionTokenInput) (req *request. // API operation GetSessionToken for usage and error information. // // Returned Error Codes: -// * RegionDisabledException +// * ErrCodeRegionDisabledException "RegionDisabledException" // STS is not activated in the requested region for the account that is being // asked to generate credentials. The account administrator must use the IAM // console to activate STS in that region. For more information, see Activating // and Deactivating AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) // in the IAM User Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetSessionToken func (c *STS) GetSessionToken(input *GetSessionTokenInput) (*GetSessionTokenOutput, error) { req, out := c.GetSessionTokenRequest(input) err := req.Send() return out, err } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleRequest type AssumeRoleInput struct { _ struct{} `type:"structure"` @@ -947,9 +959,9 @@ type AssumeRoleInput struct { // seconds (15 minutes) to 3600 seconds (1 hour). By default, the value is set // to 3600 seconds. // - // This is separate from the duration of a console session that you might - // request using the returned credentials. The request to the federation endpoint - // for a console sign-in token takes a SessionDuration parameter that specifies + // This is separate from the duration of a console session that you might request + // using the returned credentials. The request to the federation endpoint for + // a console sign-in token takes a SessionDuration parameter that specifies // the maximum length of the console session, separately from the DurationSeconds // parameter on this API. For more information, see Creating a URL that Enables // Federated Users to Access the AWS Management Console (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html) @@ -966,10 +978,9 @@ type AssumeRoleInput struct { // External ID When Granting Access to Your AWS Resources to a Third Party (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html) // in the IAM User Guide. // - // The format for this parameter, as described by its regex pattern, is a string - // of characters consisting of upper- and lower-case alphanumeric characters - // with no spaces. You can also include underscores or any of the following - // characters: =,.@:\/- + // The regex used to validated this parameter is a string of characters consisting + // of upper- and lower-case alphanumeric characters with no spaces. You can + // also include underscores or any of the following characters: =,.@:\/- ExternalId *string `min:"2" type:"string"` // An IAM policy in JSON format. @@ -991,7 +1002,7 @@ type AssumeRoleInput struct { // list (\u0020-\u00FF). It can also include the tab (\u0009), linefeed (\u000A), // and carriage return (\u000D) characters. // - // The policy plain text must be 2048 bytes or shorter. However, an internal + // The policy plain text must be 2048 bytes or shorter. However, an internal // conversion compresses it into a packed binary format with a separate limit. // The PackedPolicySize response element indicates by percentage how close to // the upper size limit the policy is, with 100% equaling the maximum allowed @@ -1013,10 +1024,9 @@ type AssumeRoleInput struct { // requests using the temporary security credentials will expose the role session // name to the external account in their CloudTrail logs. // - // The format for this parameter, as described by its regex pattern, is a string - // of characters consisting of upper- and lower-case alphanumeric characters - // with no spaces. You can also include underscores or any of the following - // characters: =,.@- + // The regex used to validate this parameter is a string of characters consisting + // of upper- and lower-case alphanumeric characters with no spaces. You can + // also include underscores or any of the following characters: =,.@- // // RoleSessionName is a required field RoleSessionName *string `min:"2" type:"string" required:"true"` @@ -1027,10 +1037,9 @@ type AssumeRoleInput struct { // The value is either the serial number for a hardware device (such as GAHT12345678) // or an Amazon Resource Name (ARN) for a virtual device (such as arn:aws:iam::123456789012:mfa/user). // - // The format for this parameter, as described by its regex pattern, is a string - // of characters consisting of upper- and lower-case alphanumeric characters - // with no spaces. You can also include underscores or any of the following - // characters: =,.@- + // The regex used to validate this parameter is a string of characters consisting + // of upper- and lower-case alphanumeric characters with no spaces. You can + // also include underscores or any of the following characters: =,.@- SerialNumber *string `min:"9" type:"string"` // The value provided by the MFA device, if the trust policy of the role being @@ -1090,8 +1099,51 @@ func (s *AssumeRoleInput) Validate() error { return nil } +// SetDurationSeconds sets the DurationSeconds field's value. +func (s *AssumeRoleInput) SetDurationSeconds(v int64) *AssumeRoleInput { + s.DurationSeconds = &v + return s +} + +// SetExternalId sets the ExternalId field's value. +func (s *AssumeRoleInput) SetExternalId(v string) *AssumeRoleInput { + s.ExternalId = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *AssumeRoleInput) SetPolicy(v string) *AssumeRoleInput { + s.Policy = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *AssumeRoleInput) SetRoleArn(v string) *AssumeRoleInput { + s.RoleArn = &v + return s +} + +// SetRoleSessionName sets the RoleSessionName field's value. +func (s *AssumeRoleInput) SetRoleSessionName(v string) *AssumeRoleInput { + s.RoleSessionName = &v + return s +} + +// SetSerialNumber sets the SerialNumber field's value. +func (s *AssumeRoleInput) SetSerialNumber(v string) *AssumeRoleInput { + s.SerialNumber = &v + return s +} + +// SetTokenCode sets the TokenCode field's value. +func (s *AssumeRoleInput) SetTokenCode(v string) *AssumeRoleInput { + s.TokenCode = &v + return s +} + // Contains the response to a successful AssumeRole request, including temporary // AWS credentials that can be used to make AWS requests. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleResponse type AssumeRoleOutput struct { _ struct{} `type:"structure"` @@ -1105,10 +1157,10 @@ type AssumeRoleOutput struct { // The temporary security credentials, which include an access key ID, a secret // access key, and a security (or session) token. // - // Note: The size of the security token that STS APIs return is not fixed. - // We strongly recommend that you make no assumptions about the maximum size. - // As of this writing, the typical size is less than 4096 bytes, but that can - // vary. Also, future updates to AWS might require larger sizes. + // Note: The size of the security token that STS APIs return is not fixed. We + // strongly recommend that you make no assumptions about the maximum size. As + // of this writing, the typical size is less than 4096 bytes, but that can vary. + // Also, future updates to AWS might require larger sizes. Credentials *Credentials `type:"structure"` // A percentage value that indicates the size of the policy in packed form. @@ -1127,6 +1179,25 @@ func (s AssumeRoleOutput) GoString() string { return s.String() } +// SetAssumedRoleUser sets the AssumedRoleUser field's value. +func (s *AssumeRoleOutput) SetAssumedRoleUser(v *AssumedRoleUser) *AssumeRoleOutput { + s.AssumedRoleUser = v + return s +} + +// SetCredentials sets the Credentials field's value. +func (s *AssumeRoleOutput) SetCredentials(v *Credentials) *AssumeRoleOutput { + s.Credentials = v + return s +} + +// SetPackedPolicySize sets the PackedPolicySize field's value. +func (s *AssumeRoleOutput) SetPackedPolicySize(v int64) *AssumeRoleOutput { + s.PackedPolicySize = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithSAMLRequest type AssumeRoleWithSAMLInput struct { _ struct{} `type:"structure"` @@ -1136,9 +1207,9 @@ type AssumeRoleWithSAMLInput struct { // response's SessionNotOnOrAfter value. The actual expiration time is whichever // value is shorter. // - // This is separate from the duration of a console session that you might - // request using the returned credentials. The request to the federation endpoint - // for a console sign-in token takes a SessionDuration parameter that specifies + // This is separate from the duration of a console session that you might request + // using the returned credentials. The request to the federation endpoint for + // a console sign-in token takes a SessionDuration parameter that specifies // the maximum length of the console session, separately from the DurationSeconds // parameter on this API. For more information, see Enabling SAML 2.0 Federated // Users to Access the AWS Management Console (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-saml.html) @@ -1150,8 +1221,8 @@ type AssumeRoleWithSAMLInput struct { // The policy parameter is optional. If you pass a policy, the temporary security // credentials that are returned by the operation have the permissions that // are allowed by both the access policy of the role that is being assumed, - // and the policy that you pass. This gives you a way to further restrict - // the permissions for the resulting temporary security credentials. You cannot + // and the policy that you pass. This gives you a way to further restrict the + // permissions for the resulting temporary security credentials. You cannot // use the passed policy to grant permissions that are in excess of those allowed // by the access policy of the role that is being assumed. For more information, // Permissions for AssumeRole, AssumeRoleWithSAML, and AssumeRoleWithWebIdentity @@ -1164,7 +1235,7 @@ type AssumeRoleWithSAMLInput struct { // list (\u0020-\u00FF). It can also include the tab (\u0009), linefeed (\u000A), // and carriage return (\u000D) characters. // - // The policy plain text must be 2048 bytes or shorter. However, an internal + // The policy plain text must be 2048 bytes or shorter. However, an internal // conversion compresses it into a packed binary format with a separate limit. // The PackedPolicySize response element indicates by percentage how close to // the upper size limit the policy is, with 100% equaling the maximum allowed @@ -1184,8 +1255,7 @@ type AssumeRoleWithSAMLInput struct { // The base-64 encoded SAML authentication response provided by the IdP. // - // For more information, see Configuring a Relying Party and Adding Claims - // (http://docs.aws.amazon.com/IAM/latest/UserGuide/create-role-saml-IdP-tasks.html) + // For more information, see Configuring a Relying Party and Adding Claims (http://docs.aws.amazon.com/IAM/latest/UserGuide/create-role-saml-IdP-tasks.html) // in the Using IAM guide. // // SAMLAssertion is a required field @@ -1236,8 +1306,39 @@ func (s *AssumeRoleWithSAMLInput) Validate() error { return nil } +// SetDurationSeconds sets the DurationSeconds field's value. +func (s *AssumeRoleWithSAMLInput) SetDurationSeconds(v int64) *AssumeRoleWithSAMLInput { + s.DurationSeconds = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *AssumeRoleWithSAMLInput) SetPolicy(v string) *AssumeRoleWithSAMLInput { + s.Policy = &v + return s +} + +// SetPrincipalArn sets the PrincipalArn field's value. +func (s *AssumeRoleWithSAMLInput) SetPrincipalArn(v string) *AssumeRoleWithSAMLInput { + s.PrincipalArn = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *AssumeRoleWithSAMLInput) SetRoleArn(v string) *AssumeRoleWithSAMLInput { + s.RoleArn = &v + return s +} + +// SetSAMLAssertion sets the SAMLAssertion field's value. +func (s *AssumeRoleWithSAMLInput) SetSAMLAssertion(v string) *AssumeRoleWithSAMLInput { + s.SAMLAssertion = &v + return s +} + // Contains the response to a successful AssumeRoleWithSAML request, including // temporary AWS credentials that can be used to make AWS requests. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithSAMLResponse type AssumeRoleWithSAMLOutput struct { _ struct{} `type:"structure"` @@ -1252,10 +1353,10 @@ type AssumeRoleWithSAMLOutput struct { // The temporary security credentials, which include an access key ID, a secret // access key, and a security (or session) token. // - // Note: The size of the security token that STS APIs return is not fixed. - // We strongly recommend that you make no assumptions about the maximum size. - // As of this writing, the typical size is less than 4096 bytes, but that can - // vary. Also, future updates to AWS might require larger sizes. + // Note: The size of the security token that STS APIs return is not fixed. We + // strongly recommend that you make no assumptions about the maximum size. As + // of this writing, the typical size is less than 4096 bytes, but that can vary. + // Also, future updates to AWS might require larger sizes. Credentials *Credentials `type:"structure"` // The value of the Issuer element of the SAML assertion. @@ -1268,7 +1369,7 @@ type AssumeRoleWithSAMLOutput struct { // // The following pseudocode shows how the hash value is calculated: // - // BASE64 ( SHA1 ( "https://example.com/saml" + "123456789012" + "/MySAMLIdP" + // BASE64 ( SHA1 ( "https://example.com/saml" + "123456789012" + "/MySAMLIdP" // ) ) NameQualifier *string `type:"string"` @@ -1284,7 +1385,7 @@ type AssumeRoleWithSAMLOutput struct { // element of the SAML assertion. Typical examples of the format are transient // or persistent. // - // If the format includes the prefix urn:oasis:names:tc:SAML:2.0:nameid-format, + // If the format includes the prefix urn:oasis:names:tc:SAML:2.0:nameid-format, // that prefix is removed. For example, urn:oasis:names:tc:SAML:2.0:nameid-format:transient // is returned as transient. If the format includes any other prefix, the format // is returned with no modifications. @@ -1301,6 +1402,55 @@ func (s AssumeRoleWithSAMLOutput) GoString() string { return s.String() } +// SetAssumedRoleUser sets the AssumedRoleUser field's value. +func (s *AssumeRoleWithSAMLOutput) SetAssumedRoleUser(v *AssumedRoleUser) *AssumeRoleWithSAMLOutput { + s.AssumedRoleUser = v + return s +} + +// SetAudience sets the Audience field's value. +func (s *AssumeRoleWithSAMLOutput) SetAudience(v string) *AssumeRoleWithSAMLOutput { + s.Audience = &v + return s +} + +// SetCredentials sets the Credentials field's value. +func (s *AssumeRoleWithSAMLOutput) SetCredentials(v *Credentials) *AssumeRoleWithSAMLOutput { + s.Credentials = v + return s +} + +// SetIssuer sets the Issuer field's value. +func (s *AssumeRoleWithSAMLOutput) SetIssuer(v string) *AssumeRoleWithSAMLOutput { + s.Issuer = &v + return s +} + +// SetNameQualifier sets the NameQualifier field's value. +func (s *AssumeRoleWithSAMLOutput) SetNameQualifier(v string) *AssumeRoleWithSAMLOutput { + s.NameQualifier = &v + return s +} + +// SetPackedPolicySize sets the PackedPolicySize field's value. +func (s *AssumeRoleWithSAMLOutput) SetPackedPolicySize(v int64) *AssumeRoleWithSAMLOutput { + s.PackedPolicySize = &v + return s +} + +// SetSubject sets the Subject field's value. +func (s *AssumeRoleWithSAMLOutput) SetSubject(v string) *AssumeRoleWithSAMLOutput { + s.Subject = &v + return s +} + +// SetSubjectType sets the SubjectType field's value. +func (s *AssumeRoleWithSAMLOutput) SetSubjectType(v string) *AssumeRoleWithSAMLOutput { + s.SubjectType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithWebIdentityRequest type AssumeRoleWithWebIdentityInput struct { _ struct{} `type:"structure"` @@ -1308,9 +1458,9 @@ type AssumeRoleWithWebIdentityInput struct { // seconds (15 minutes) to 3600 seconds (1 hour). By default, the value is set // to 3600 seconds. // - // This is separate from the duration of a console session that you might - // request using the returned credentials. The request to the federation endpoint - // for a console sign-in token takes a SessionDuration parameter that specifies + // This is separate from the duration of a console session that you might request + // using the returned credentials. The request to the federation endpoint for + // a console sign-in token takes a SessionDuration parameter that specifies // the maximum length of the console session, separately from the DurationSeconds // parameter on this API. For more information, see Creating a URL that Enables // Federated Users to Access the AWS Management Console (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html) @@ -1322,8 +1472,8 @@ type AssumeRoleWithWebIdentityInput struct { // The policy parameter is optional. If you pass a policy, the temporary security // credentials that are returned by the operation have the permissions that // are allowed by both the access policy of the role that is being assumed, - // and the policy that you pass. This gives you a way to further restrict - // the permissions for the resulting temporary security credentials. You cannot + // and the policy that you pass. This gives you a way to further restrict the + // permissions for the resulting temporary security credentials. You cannot // use the passed policy to grant permissions that are in excess of those allowed // by the access policy of the role that is being assumed. For more information, // see Permissions for AssumeRoleWithWebIdentity (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_assumerole.html) @@ -1335,7 +1485,7 @@ type AssumeRoleWithWebIdentityInput struct { // list (\u0020-\u00FF). It can also include the tab (\u0009), linefeed (\u000A), // and carriage return (\u000D) characters. // - // The policy plain text must be 2048 bytes or shorter. However, an internal + // The policy plain text must be 2048 bytes or shorter. However, an internal // conversion compresses it into a packed binary format with a separate limit. // The PackedPolicySize response element indicates by percentage how close to // the upper size limit the policy is, with 100% equaling the maximum allowed @@ -1362,10 +1512,9 @@ type AssumeRoleWithWebIdentityInput struct { // are associated with that user. This session name is included as part of the // ARN and assumed role ID in the AssumedRoleUser response element. // - // The format for this parameter, as described by its regex pattern, is a string - // of characters consisting of upper- and lower-case alphanumeric characters - // with no spaces. You can also include underscores or any of the following - // characters: =,.@- + // The regex used to validate this parameter is a string of characters consisting + // of upper- and lower-case alphanumeric characters with no spaces. You can + // also include underscores or any of the following characters: =,.@- // // RoleSessionName is a required field RoleSessionName *string `min:"2" type:"string" required:"true"` @@ -1426,8 +1575,45 @@ func (s *AssumeRoleWithWebIdentityInput) Validate() error { return nil } +// SetDurationSeconds sets the DurationSeconds field's value. +func (s *AssumeRoleWithWebIdentityInput) SetDurationSeconds(v int64) *AssumeRoleWithWebIdentityInput { + s.DurationSeconds = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *AssumeRoleWithWebIdentityInput) SetPolicy(v string) *AssumeRoleWithWebIdentityInput { + s.Policy = &v + return s +} + +// SetProviderId sets the ProviderId field's value. +func (s *AssumeRoleWithWebIdentityInput) SetProviderId(v string) *AssumeRoleWithWebIdentityInput { + s.ProviderId = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *AssumeRoleWithWebIdentityInput) SetRoleArn(v string) *AssumeRoleWithWebIdentityInput { + s.RoleArn = &v + return s +} + +// SetRoleSessionName sets the RoleSessionName field's value. +func (s *AssumeRoleWithWebIdentityInput) SetRoleSessionName(v string) *AssumeRoleWithWebIdentityInput { + s.RoleSessionName = &v + return s +} + +// SetWebIdentityToken sets the WebIdentityToken field's value. +func (s *AssumeRoleWithWebIdentityInput) SetWebIdentityToken(v string) *AssumeRoleWithWebIdentityInput { + s.WebIdentityToken = &v + return s +} + // Contains the response to a successful AssumeRoleWithWebIdentity request, // including temporary AWS credentials that can be used to make AWS requests. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithWebIdentityResponse type AssumeRoleWithWebIdentityOutput struct { _ struct{} `type:"structure"` @@ -1446,10 +1632,10 @@ type AssumeRoleWithWebIdentityOutput struct { // The temporary security credentials, which include an access key ID, a secret // access key, and a security token. // - // Note: The size of the security token that STS APIs return is not fixed. - // We strongly recommend that you make no assumptions about the maximum size. - // As of this writing, the typical size is less than 4096 bytes, but that can - // vary. Also, future updates to AWS might require larger sizes. + // Note: The size of the security token that STS APIs return is not fixed. We + // strongly recommend that you make no assumptions about the maximum size. As + // of this writing, the typical size is less than 4096 bytes, but that can vary. + // Also, future updates to AWS might require larger sizes. Credentials *Credentials `type:"structure"` // A percentage value that indicates the size of the policy in packed form. @@ -1482,8 +1668,45 @@ func (s AssumeRoleWithWebIdentityOutput) GoString() string { return s.String() } +// SetAssumedRoleUser sets the AssumedRoleUser field's value. +func (s *AssumeRoleWithWebIdentityOutput) SetAssumedRoleUser(v *AssumedRoleUser) *AssumeRoleWithWebIdentityOutput { + s.AssumedRoleUser = v + return s +} + +// SetAudience sets the Audience field's value. +func (s *AssumeRoleWithWebIdentityOutput) SetAudience(v string) *AssumeRoleWithWebIdentityOutput { + s.Audience = &v + return s +} + +// SetCredentials sets the Credentials field's value. +func (s *AssumeRoleWithWebIdentityOutput) SetCredentials(v *Credentials) *AssumeRoleWithWebIdentityOutput { + s.Credentials = v + return s +} + +// SetPackedPolicySize sets the PackedPolicySize field's value. +func (s *AssumeRoleWithWebIdentityOutput) SetPackedPolicySize(v int64) *AssumeRoleWithWebIdentityOutput { + s.PackedPolicySize = &v + return s +} + +// SetProvider sets the Provider field's value. +func (s *AssumeRoleWithWebIdentityOutput) SetProvider(v string) *AssumeRoleWithWebIdentityOutput { + s.Provider = &v + return s +} + +// SetSubjectFromWebIdentityToken sets the SubjectFromWebIdentityToken field's value. +func (s *AssumeRoleWithWebIdentityOutput) SetSubjectFromWebIdentityToken(v string) *AssumeRoleWithWebIdentityOutput { + s.SubjectFromWebIdentityToken = &v + return s +} + // The identifiers for the temporary security credentials that the operation // returns. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumedRoleUser type AssumedRoleUser struct { _ struct{} `type:"structure"` @@ -1513,7 +1736,20 @@ func (s AssumedRoleUser) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *AssumedRoleUser) SetArn(v string) *AssumedRoleUser { + s.Arn = &v + return s +} + +// SetAssumedRoleId sets the AssumedRoleId field's value. +func (s *AssumedRoleUser) SetAssumedRoleId(v string) *AssumedRoleUser { + s.AssumedRoleId = &v + return s +} + // AWS credentials for API authentication. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/Credentials type Credentials struct { _ struct{} `type:"structure"` @@ -1548,6 +1784,31 @@ func (s Credentials) GoString() string { return s.String() } +// SetAccessKeyId sets the AccessKeyId field's value. +func (s *Credentials) SetAccessKeyId(v string) *Credentials { + s.AccessKeyId = &v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *Credentials) SetExpiration(v time.Time) *Credentials { + s.Expiration = &v + return s +} + +// SetSecretAccessKey sets the SecretAccessKey field's value. +func (s *Credentials) SetSecretAccessKey(v string) *Credentials { + s.SecretAccessKey = &v + return s +} + +// SetSessionToken sets the SessionToken field's value. +func (s *Credentials) SetSessionToken(v string) *Credentials { + s.SessionToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/DecodeAuthorizationMessageRequest type DecodeAuthorizationMessageInput struct { _ struct{} `type:"structure"` @@ -1583,9 +1844,16 @@ func (s *DecodeAuthorizationMessageInput) Validate() error { return nil } +// SetEncodedMessage sets the EncodedMessage field's value. +func (s *DecodeAuthorizationMessageInput) SetEncodedMessage(v string) *DecodeAuthorizationMessageInput { + s.EncodedMessage = &v + return s +} + // A document that contains additional information about the authorization status // of a request from an encoded message that is returned in response to an AWS // request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/DecodeAuthorizationMessageResponse type DecodeAuthorizationMessageOutput struct { _ struct{} `type:"structure"` @@ -1603,7 +1871,14 @@ func (s DecodeAuthorizationMessageOutput) GoString() string { return s.String() } +// SetDecodedMessage sets the DecodedMessage field's value. +func (s *DecodeAuthorizationMessageOutput) SetDecodedMessage(v string) *DecodeAuthorizationMessageOutput { + s.DecodedMessage = &v + return s +} + // Identifiers for the federated user that is associated with the credentials. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/FederatedUser type FederatedUser struct { _ struct{} `type:"structure"` @@ -1632,6 +1907,19 @@ func (s FederatedUser) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *FederatedUser) SetArn(v string) *FederatedUser { + s.Arn = &v + return s +} + +// SetFederatedUserId sets the FederatedUserId field's value. +func (s *FederatedUser) SetFederatedUserId(v string) *FederatedUser { + s.FederatedUserId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetCallerIdentityRequest type GetCallerIdentityInput struct { _ struct{} `type:"structure"` } @@ -1648,6 +1936,7 @@ func (s GetCallerIdentityInput) GoString() string { // Contains the response to a successful GetCallerIdentity request, including // information about the entity making the request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetCallerIdentityResponse type GetCallerIdentityOutput struct { _ struct{} `type:"structure"` @@ -1675,6 +1964,25 @@ func (s GetCallerIdentityOutput) GoString() string { return s.String() } +// SetAccount sets the Account field's value. +func (s *GetCallerIdentityOutput) SetAccount(v string) *GetCallerIdentityOutput { + s.Account = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *GetCallerIdentityOutput) SetArn(v string) *GetCallerIdentityOutput { + s.Arn = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *GetCallerIdentityOutput) SetUserId(v string) *GetCallerIdentityOutput { + s.UserId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetFederationTokenRequest type GetFederationTokenInput struct { _ struct{} `type:"structure"` @@ -1692,10 +2000,9 @@ type GetFederationTokenInput struct { // the federated user name in a resource-based policy, such as in an Amazon // S3 bucket policy. // - // The format for this parameter, as described by its regex pattern, is a string - // of characters consisting of upper- and lower-case alphanumeric characters - // with no spaces. You can also include underscores or any of the following - // characters: =,.@- + // The regex used to validate this parameter is a string of characters consisting + // of upper- and lower-case alphanumeric characters with no spaces. You can + // also include underscores or any of the following characters: =,.@- // // Name is a required field Name *string `min:"2" type:"string" required:"true"` @@ -1721,13 +2028,13 @@ type GetFederationTokenInput struct { // list (\u0020-\u00FF). It can also include the tab (\u0009), linefeed (\u000A), // and carriage return (\u000D) characters. // - // The policy plain text must be 2048 bytes or shorter. However, an internal + // The policy plain text must be 2048 bytes or shorter. However, an internal // conversion compresses it into a packed binary format with a separate limit. // The PackedPolicySize response element indicates by percentage how close to // the upper size limit the policy is, with 100% equaling the maximum allowed // size. // - // For more information about how permissions work, see Permissions for GetFederationToken + // For more information about how permissions work, see Permissions for GetFederationToken // (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_getfederationtoken.html). Policy *string `min:"1" type:"string"` } @@ -1764,18 +2071,37 @@ func (s *GetFederationTokenInput) Validate() error { return nil } +// SetDurationSeconds sets the DurationSeconds field's value. +func (s *GetFederationTokenInput) SetDurationSeconds(v int64) *GetFederationTokenInput { + s.DurationSeconds = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetFederationTokenInput) SetName(v string) *GetFederationTokenInput { + s.Name = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *GetFederationTokenInput) SetPolicy(v string) *GetFederationTokenInput { + s.Policy = &v + return s +} + // Contains the response to a successful GetFederationToken request, including // temporary AWS credentials that can be used to make AWS requests. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetFederationTokenResponse type GetFederationTokenOutput struct { _ struct{} `type:"structure"` // The temporary security credentials, which include an access key ID, a secret // access key, and a security (or session) token. // - // Note: The size of the security token that STS APIs return is not fixed. - // We strongly recommend that you make no assumptions about the maximum size. - // As of this writing, the typical size is less than 4096 bytes, but that can - // vary. Also, future updates to AWS might require larger sizes. + // Note: The size of the security token that STS APIs return is not fixed. We + // strongly recommend that you make no assumptions about the maximum size. As + // of this writing, the typical size is less than 4096 bytes, but that can vary. + // Also, future updates to AWS might require larger sizes. Credentials *Credentials `type:"structure"` // Identifiers for the federated user associated with the credentials (such @@ -1800,6 +2126,25 @@ func (s GetFederationTokenOutput) GoString() string { return s.String() } +// SetCredentials sets the Credentials field's value. +func (s *GetFederationTokenOutput) SetCredentials(v *Credentials) *GetFederationTokenOutput { + s.Credentials = v + return s +} + +// SetFederatedUser sets the FederatedUser field's value. +func (s *GetFederationTokenOutput) SetFederatedUser(v *FederatedUser) *GetFederationTokenOutput { + s.FederatedUser = v + return s +} + +// SetPackedPolicySize sets the PackedPolicySize field's value. +func (s *GetFederationTokenOutput) SetPackedPolicySize(v int64) *GetFederationTokenOutput { + s.PackedPolicySize = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetSessionTokenRequest type GetSessionTokenInput struct { _ struct{} `type:"structure"` @@ -1819,10 +2164,9 @@ type GetSessionTokenInput struct { // You can find the device for an IAM user by going to the AWS Management Console // and viewing the user's security credentials. // - // The format for this parameter, as described by its regex pattern, is a string - // of characters consisting of upper- and lower-case alphanumeric characters - // with no spaces. You can also include underscores or any of the following - // characters: =,.@- + // The regex used to validate this parameter is a string of characters consisting + // of upper- and lower-case alphanumeric characters with no spaces. You can + // also include underscores or any of the following characters: =,.@- SerialNumber *string `min:"9" type:"string"` // The value provided by the MFA device, if MFA is required. If any policy requires @@ -1865,18 +2209,37 @@ func (s *GetSessionTokenInput) Validate() error { return nil } +// SetDurationSeconds sets the DurationSeconds field's value. +func (s *GetSessionTokenInput) SetDurationSeconds(v int64) *GetSessionTokenInput { + s.DurationSeconds = &v + return s +} + +// SetSerialNumber sets the SerialNumber field's value. +func (s *GetSessionTokenInput) SetSerialNumber(v string) *GetSessionTokenInput { + s.SerialNumber = &v + return s +} + +// SetTokenCode sets the TokenCode field's value. +func (s *GetSessionTokenInput) SetTokenCode(v string) *GetSessionTokenInput { + s.TokenCode = &v + return s +} + // Contains the response to a successful GetSessionToken request, including // temporary AWS credentials that can be used to make AWS requests. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetSessionTokenResponse type GetSessionTokenOutput struct { _ struct{} `type:"structure"` // The temporary security credentials, which include an access key ID, a secret // access key, and a security (or session) token. // - // Note: The size of the security token that STS APIs return is not fixed. - // We strongly recommend that you make no assumptions about the maximum size. - // As of this writing, the typical size is less than 4096 bytes, but that can - // vary. Also, future updates to AWS might require larger sizes. + // Note: The size of the security token that STS APIs return is not fixed. We + // strongly recommend that you make no assumptions about the maximum size. As + // of this writing, the typical size is less than 4096 bytes, but that can vary. + // Also, future updates to AWS might require larger sizes. Credentials *Credentials `type:"structure"` } @@ -1889,3 +2252,9 @@ func (s GetSessionTokenOutput) String() string { func (s GetSessionTokenOutput) GoString() string { return s.String() } + +// SetCredentials sets the Credentials field's value. +func (s *GetSessionTokenOutput) SetCredentials(v *Credentials) *GetSessionTokenOutput { + s.Credentials = v + return s +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/errors.go b/vendor/github.com/aws/aws-sdk-go/service/sts/errors.go new file mode 100644 index 000000000..dbcd66759 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sts/errors.go @@ -0,0 +1,73 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package sts + +const ( + + // ErrCodeExpiredTokenException for service response error code + // "ExpiredTokenException". + // + // The web identity token that was passed is expired or is not valid. Get a + // new identity token from the identity provider and then retry the request. + ErrCodeExpiredTokenException = "ExpiredTokenException" + + // ErrCodeIDPCommunicationErrorException for service response error code + // "IDPCommunicationError". + // + // The request could not be fulfilled because the non-AWS identity provider + // (IDP) that was asked to verify the incoming identity token could not be reached. + // This is often a transient error caused by network conditions. Retry the request + // a limited number of times so that you don't exceed the request rate. If the + // error persists, the non-AWS identity provider might be down or not responding. + ErrCodeIDPCommunicationErrorException = "IDPCommunicationError" + + // ErrCodeIDPRejectedClaimException for service response error code + // "IDPRejectedClaim". + // + // The identity provider (IdP) reported that authentication failed. This might + // be because the claim is invalid. + // + // If this error is returned for the AssumeRoleWithWebIdentity operation, it + // can also mean that the claim has expired or has been explicitly revoked. + ErrCodeIDPRejectedClaimException = "IDPRejectedClaim" + + // ErrCodeInvalidAuthorizationMessageException for service response error code + // "InvalidAuthorizationMessageException". + // + // The error returned if the message passed to DecodeAuthorizationMessage was + // invalid. This can happen if the token contains invalid characters, such as + // linebreaks. + ErrCodeInvalidAuthorizationMessageException = "InvalidAuthorizationMessageException" + + // ErrCodeInvalidIdentityTokenException for service response error code + // "InvalidIdentityToken". + // + // The web identity token that was passed could not be validated by AWS. Get + // a new identity token from the identity provider and then retry the request. + ErrCodeInvalidIdentityTokenException = "InvalidIdentityToken" + + // ErrCodeMalformedPolicyDocumentException for service response error code + // "MalformedPolicyDocument". + // + // The request was rejected because the policy document was malformed. The error + // message describes the specific error. + ErrCodeMalformedPolicyDocumentException = "MalformedPolicyDocument" + + // ErrCodePackedPolicyTooLargeException for service response error code + // "PackedPolicyTooLarge". + // + // The request was rejected because the policy document was too large. The error + // message describes how big the policy document is, in packed form, as a percentage + // of what the API allows. + ErrCodePackedPolicyTooLargeException = "PackedPolicyTooLarge" + + // ErrCodeRegionDisabledException for service response error code + // "RegionDisabledException". + // + // STS is not activated in the requested region for the account that is being + // asked to generate credentials. The account administrator must use the IAM + // console to activate STS in that region. For more information, see Activating + // and Deactivating AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) + // in the IAM User Guide. + ErrCodeRegionDisabledException = "RegionDisabledException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/sts/examples_test.go index 2724ed4d4..61fa3f144 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sts/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sts/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSTS_AssumeRole() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sts.New(sess) @@ -47,11 +43,7 @@ func ExampleSTS_AssumeRole() { } func ExampleSTS_AssumeRoleWithSAML() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sts.New(sess) @@ -76,11 +68,7 @@ func ExampleSTS_AssumeRoleWithSAML() { } func ExampleSTS_AssumeRoleWithWebIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sts.New(sess) @@ -106,11 +94,7 @@ func ExampleSTS_AssumeRoleWithWebIdentity() { } func ExampleSTS_DecodeAuthorizationMessage() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sts.New(sess) @@ -131,11 +115,7 @@ func ExampleSTS_DecodeAuthorizationMessage() { } func ExampleSTS_GetCallerIdentity() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sts.New(sess) @@ -154,11 +134,7 @@ func ExampleSTS_GetCallerIdentity() { } func ExampleSTS_GetFederationToken() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sts.New(sess) @@ -181,11 +157,7 @@ func ExampleSTS_GetFederationToken() { } func ExampleSTS_GetSessionToken() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := sts.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/service.go b/vendor/github.com/aws/aws-sdk-go/service/sts/service.go index c938e6ca1..9c4bfb838 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sts/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sts/service.go @@ -17,7 +17,7 @@ import ( // This guide provides descriptions of the STS API. For more detailed information // about using this service, go to Temporary Security Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html). // -// As an alternative to using the API, you can use one of the AWS SDKs, which +// As an alternative to using the API, you can use one of the AWS SDKs, which // consist of libraries and sample code for various programming languages and // platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient // way to create programmatic access to STS. For example, the SDKs take care @@ -25,7 +25,7 @@ import ( // automatically. For information about the AWS SDKs, including how to download // and install them, see the Tools for Amazon Web Services page (http://aws.amazon.com/tools/). // -// For information about setting up signatures and authorization through the +// For information about setting up signatures and authorization through the // API, go to Signing AWS API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) // in the AWS General Reference. For general information about the Query API, // go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) @@ -37,7 +37,7 @@ import ( // AWS product, you can find the product's technical documentation at http://aws.amazon.com/documentation/ // (http://aws.amazon.com/documentation/). // -// Endpoints +// Endpoints // // The AWS Security Token Service (STS) has a default endpoint of https://sts.amazonaws.com // that maps to the US East (N. Virginia) region. Additional regions are available @@ -48,7 +48,7 @@ import ( // For information about STS endpoints, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#sts_region) // in the AWS General Reference. // -// Recording API requests +// Recording API requests // // STS supports AWS CloudTrail, which is a service that records AWS calls for // your AWS account and delivers log files to an Amazon S3 bucket. By using @@ -56,8 +56,9 @@ import ( // successfully made to STS, who made the request, when it was made, and so // on. To learn more about CloudTrail, including how to turn it on and find // your log files, see the AWS CloudTrail User Guide (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/what_is_cloud_trail_top_level.html). -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15 type STS struct { *client.Client } @@ -68,8 +69,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "sts" +// Service information constants +const ( + ServiceName = "sts" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the STS client with a session. // If additional configuration is needed for the client instance use the optional @@ -82,17 +86,18 @@ const ServiceName = "sts" // // Create a STS client with additional configuration // svc := sts.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *STS { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *STS { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *STS { svc := &STS{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2011-06-15", diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/stsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/sts/stsiface/interface.go index 00cd7bb6a..75692e487 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sts/stsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sts/stsiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockSTSClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/support/api.go b/vendor/github.com/aws/aws-sdk-go/service/support/api.go index ff80233b4..7785cd5eb 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/support/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/support/api.go @@ -34,6 +34,7 @@ const opAddAttachmentsToSet = "AddAttachmentsToSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSet func (c *Support) AddAttachmentsToSetRequest(input *AddAttachmentsToSetInput) (req *request.Request, output *AddAttachmentsToSetOutput) { op := &request.Operation{ Name: opAddAttachmentsToSet, @@ -45,9 +46,8 @@ func (c *Support) AddAttachmentsToSetRequest(input *AddAttachmentsToSetInput) (r input = &AddAttachmentsToSetInput{} } - req = c.newRequest(op, input, output) output = &AddAttachmentsToSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -72,24 +72,25 @@ func (c *Support) AddAttachmentsToSetRequest(input *AddAttachmentsToSetInput) (r // API operation AddAttachmentsToSet for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error occurred. // -// * AttachmentSetIdNotFound +// * ErrCodeAttachmentSetIdNotFound "AttachmentSetIdNotFound" // An attachment set with the specified ID could not be found. // -// * AttachmentSetExpired +// * ErrCodeAttachmentSetExpired "AttachmentSetExpired" // The expiration time of the attachment set has passed. The set expires 1 hour // after it is created. // -// * AttachmentSetSizeLimitExceeded +// * ErrCodeAttachmentSetSizeLimitExceeded "AttachmentSetSizeLimitExceeded" // A limit for the size of an attachment set has been exceeded. The limits are // 3 attachments and 5 MB per attachment. // -// * AttachmentLimitExceeded +// * ErrCodeAttachmentLimitExceeded "AttachmentLimitExceeded" // The limit for the number of attachment sets created in a short period of // time has been exceeded. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSet func (c *Support) AddAttachmentsToSet(input *AddAttachmentsToSetInput) (*AddAttachmentsToSetOutput, error) { req, out := c.AddAttachmentsToSetRequest(input) err := req.Send() @@ -122,6 +123,7 @@ const opAddCommunicationToCase = "AddCommunicationToCase" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCase func (c *Support) AddCommunicationToCaseRequest(input *AddCommunicationToCaseInput) (req *request.Request, output *AddCommunicationToCaseOutput) { op := &request.Operation{ Name: opAddCommunicationToCase, @@ -133,9 +135,8 @@ func (c *Support) AddCommunicationToCaseRequest(input *AddCommunicationToCaseInp input = &AddCommunicationToCaseInput{} } - req = c.newRequest(op, input, output) output = &AddCommunicationToCaseOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -158,19 +159,20 @@ func (c *Support) AddCommunicationToCaseRequest(input *AddCommunicationToCaseInp // API operation AddCommunicationToCase for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error occurred. // -// * CaseIdNotFound +// * ErrCodeCaseIdNotFound "CaseIdNotFound" // The requested caseId could not be located. // -// * AttachmentSetIdNotFound +// * ErrCodeAttachmentSetIdNotFound "AttachmentSetIdNotFound" // An attachment set with the specified ID could not be found. // -// * AttachmentSetExpired +// * ErrCodeAttachmentSetExpired "AttachmentSetExpired" // The expiration time of the attachment set has passed. The set expires 1 hour // after it is created. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCase func (c *Support) AddCommunicationToCase(input *AddCommunicationToCaseInput) (*AddCommunicationToCaseOutput, error) { req, out := c.AddCommunicationToCaseRequest(input) err := req.Send() @@ -203,6 +205,7 @@ const opCreateCase = "CreateCase" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCase func (c *Support) CreateCaseRequest(input *CreateCaseInput) (req *request.Request, output *CreateCaseOutput) { op := &request.Operation{ Name: opCreateCase, @@ -214,9 +217,8 @@ func (c *Support) CreateCaseRequest(input *CreateCaseInput) (req *request.Reques input = &CreateCaseInput{} } - req = c.newRequest(op, input, output) output = &CreateCaseOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -226,43 +228,44 @@ func (c *Support) CreateCaseRequest(input *CreateCaseInput) (req *request.Reques // the behavior of the AWS Support Center Create Case (https://console.aws.amazon.com/support/home#/case/create) // page. Its parameters require you to specify the following information: // -// issueType. The type of issue for the case. You can specify either "customer-service" -// or "technical." If you do not indicate a value, the default is "technical." +// * issueType. The type of issue for the case. You can specify either "customer-service" +// or "technical." If you do not indicate a value, the default is "technical." +// // -// serviceCode. The code for an AWS service. You obtain the serviceCode -// by calling DescribeServices. +// * serviceCode. The code for an AWS service. You obtain the serviceCode +// by calling DescribeServices. // -// categoryCode. The category for the service defined for the serviceCode -// value. You also obtain the category code for a service by calling DescribeServices. -// Each AWS service defines its own set of category codes. +// * categoryCode. The category for the service defined for the serviceCode +// value. You also obtain the category code for a service by calling DescribeServices. +// Each AWS service defines its own set of category codes. // -// severityCode. A value that indicates the urgency of the case, which in -// turn determines the response time according to your service level agreement -// with AWS Support. You obtain the SeverityCode by calling DescribeSeverityLevels. +// * severityCode. A value that indicates the urgency of the case, which +// in turn determines the response time according to your service level agreement +// with AWS Support. You obtain the SeverityCode by calling DescribeSeverityLevels. // -// subject. The Subject field on the AWS Support Center Create Case (https://console.aws.amazon.com/support/home#/case/create) -// page. +// * subject. The Subject field on the AWS Support Center Create Case (https://console.aws.amazon.com/support/home#/case/create) +// page. // -// communicationBody. The Description field on the AWS Support Center Create -// Case (https://console.aws.amazon.com/support/home#/case/create) page. +// * communicationBody. The Description field on the AWS Support Center Create +// Case (https://console.aws.amazon.com/support/home#/case/create) page. // -// attachmentSetId. The ID of a set of attachments that has been created -// by using AddAttachmentsToSet. +// * attachmentSetId. The ID of a set of attachments that has been created +// by using AddAttachmentsToSet. // -// language. The human language in which AWS Support handles the case. English -// and Japanese are currently supported. +// * language. The human language in which AWS Support handles the case. +// English and Japanese are currently supported. // -// ccEmailAddresses. The AWS Support Center CC field on the Create Case -// (https://console.aws.amazon.com/support/home#/case/create) page. You can -// list email addresses to be copied on any correspondence about the case. The -// account that opens the case is already identified by passing the AWS Credentials -// in the HTTP POST method or in a method or function call from one of the programming -// languages supported by an AWS SDK (http://aws.amazon.com/tools/). +// * ccEmailAddresses. The AWS Support Center CC field on the Create Case +// (https://console.aws.amazon.com/support/home#/case/create) page. You can +// list email addresses to be copied on any correspondence about the case. +// The account that opens the case is already identified by passing the AWS +// Credentials in the HTTP POST method or in a method or function call from +// one of the programming languages supported by an AWS SDK (http://aws.amazon.com/tools/). // -// To add additional communication or attachments to an existing case, use -// AddCommunicationToCase. // -// A successful CreateCase request returns an AWS Support case number. Case +// To add additional communication or attachments to an existing case, use AddCommunicationToCase. +// +// A successful CreateCase request returns an AWS Support case number. Case // numbers are used by the DescribeCases operation to retrieve existing AWS // Support cases. // @@ -274,19 +277,20 @@ func (c *Support) CreateCaseRequest(input *CreateCaseInput) (req *request.Reques // API operation CreateCase for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error occurred. // -// * CaseCreationLimitExceeded +// * ErrCodeCaseCreationLimitExceeded "CaseCreationLimitExceeded" // The case creation limit for the account has been exceeded. // -// * AttachmentSetIdNotFound +// * ErrCodeAttachmentSetIdNotFound "AttachmentSetIdNotFound" // An attachment set with the specified ID could not be found. // -// * AttachmentSetExpired +// * ErrCodeAttachmentSetExpired "AttachmentSetExpired" // The expiration time of the attachment set has passed. The set expires 1 hour // after it is created. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCase func (c *Support) CreateCase(input *CreateCaseInput) (*CreateCaseOutput, error) { req, out := c.CreateCaseRequest(input) err := req.Send() @@ -319,6 +323,7 @@ const opDescribeAttachment = "DescribeAttachment" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachment func (c *Support) DescribeAttachmentRequest(input *DescribeAttachmentInput) (req *request.Request, output *DescribeAttachmentOutput) { op := &request.Operation{ Name: opDescribeAttachment, @@ -330,9 +335,8 @@ func (c *Support) DescribeAttachmentRequest(input *DescribeAttachmentInput) (req input = &DescribeAttachmentInput{} } - req = c.newRequest(op, input, output) output = &DescribeAttachmentOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -351,16 +355,17 @@ func (c *Support) DescribeAttachmentRequest(input *DescribeAttachmentInput) (req // API operation DescribeAttachment for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error occurred. // -// * DescribeAttachmentLimitExceeded +// * ErrCodeDescribeAttachmentLimitExceeded "DescribeAttachmentLimitExceeded" // The limit for the number of DescribeAttachment requests in a short period // of time has been exceeded. // -// * AttachmentIdNotFound +// * ErrCodeAttachmentIdNotFound "AttachmentIdNotFound" // An attachment with the specified ID could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachment func (c *Support) DescribeAttachment(input *DescribeAttachmentInput) (*DescribeAttachmentOutput, error) { req, out := c.DescribeAttachmentRequest(input) err := req.Send() @@ -393,6 +398,7 @@ const opDescribeCases = "DescribeCases" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCases func (c *Support) DescribeCasesRequest(input *DescribeCasesInput) (req *request.Request, output *DescribeCasesOutput) { op := &request.Operation{ Name: opDescribeCases, @@ -410,9 +416,8 @@ func (c *Support) DescribeCasesRequest(input *DescribeCasesInput) (req *request. input = &DescribeCasesInput{} } - req = c.newRequest(op, input, output) output = &DescribeCasesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -429,10 +434,10 @@ func (c *Support) DescribeCasesRequest(input *DescribeCasesInput) (req *request. // // The response returns the following in JSON format: // -// One or more CaseDetails data types. +// * One or more CaseDetails data types. // -// One or more nextToken values, which specify where to paginate the returned -// records represented by the CaseDetails objects. +// * One or more nextToken values, which specify where to paginate the returned +// records represented by the CaseDetails objects. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -442,12 +447,13 @@ func (c *Support) DescribeCasesRequest(input *DescribeCasesInput) (req *request. // API operation DescribeCases for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error occurred. // -// * CaseIdNotFound +// * ErrCodeCaseIdNotFound "CaseIdNotFound" // The requested caseId could not be located. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCases func (c *Support) DescribeCases(input *DescribeCasesInput) (*DescribeCasesOutput, error) { req, out := c.DescribeCasesRequest(input) err := req.Send() @@ -505,6 +511,7 @@ const opDescribeCommunications = "DescribeCommunications" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunications func (c *Support) DescribeCommunicationsRequest(input *DescribeCommunicationsInput) (req *request.Request, output *DescribeCommunicationsOutput) { op := &request.Operation{ Name: opDescribeCommunications, @@ -522,9 +529,8 @@ func (c *Support) DescribeCommunicationsRequest(input *DescribeCommunicationsInp input = &DescribeCommunicationsInput{} } - req = c.newRequest(op, input, output) output = &DescribeCommunicationsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -549,12 +555,13 @@ func (c *Support) DescribeCommunicationsRequest(input *DescribeCommunicationsInp // API operation DescribeCommunications for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error occurred. // -// * CaseIdNotFound +// * ErrCodeCaseIdNotFound "CaseIdNotFound" // The requested caseId could not be located. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunications func (c *Support) DescribeCommunications(input *DescribeCommunicationsInput) (*DescribeCommunicationsOutput, error) { req, out := c.DescribeCommunicationsRequest(input) err := req.Send() @@ -612,6 +619,7 @@ const opDescribeServices = "DescribeServices" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices func (c *Support) DescribeServicesRequest(input *DescribeServicesInput) (req *request.Request, output *DescribeServicesOutput) { op := &request.Operation{ Name: opDescribeServices, @@ -623,9 +631,8 @@ func (c *Support) DescribeServicesRequest(input *DescribeServicesInput) (req *re input = &DescribeServicesInput{} } - req = c.newRequest(op, input, output) output = &DescribeServicesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -651,9 +658,10 @@ func (c *Support) DescribeServicesRequest(input *DescribeServicesInput) (req *re // API operation DescribeServices for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error occurred. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices func (c *Support) DescribeServices(input *DescribeServicesInput) (*DescribeServicesOutput, error) { req, out := c.DescribeServicesRequest(input) err := req.Send() @@ -686,6 +694,7 @@ const opDescribeSeverityLevels = "DescribeSeverityLevels" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels func (c *Support) DescribeSeverityLevelsRequest(input *DescribeSeverityLevelsInput) (req *request.Request, output *DescribeSeverityLevelsOutput) { op := &request.Operation{ Name: opDescribeSeverityLevels, @@ -697,9 +706,8 @@ func (c *Support) DescribeSeverityLevelsRequest(input *DescribeSeverityLevelsInp input = &DescribeSeverityLevelsInput{} } - req = c.newRequest(op, input, output) output = &DescribeSeverityLevelsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -717,9 +725,10 @@ func (c *Support) DescribeSeverityLevelsRequest(input *DescribeSeverityLevelsInp // API operation DescribeSeverityLevels for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error occurred. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels func (c *Support) DescribeSeverityLevels(input *DescribeSeverityLevelsInput) (*DescribeSeverityLevelsOutput, error) { req, out := c.DescribeSeverityLevelsRequest(input) err := req.Send() @@ -752,6 +761,7 @@ const opDescribeTrustedAdvisorCheckRefreshStatuses = "DescribeTrustedAdvisorChec // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatuses func (c *Support) DescribeTrustedAdvisorCheckRefreshStatusesRequest(input *DescribeTrustedAdvisorCheckRefreshStatusesInput) (req *request.Request, output *DescribeTrustedAdvisorCheckRefreshStatusesOutput) { op := &request.Operation{ Name: opDescribeTrustedAdvisorCheckRefreshStatuses, @@ -763,9 +773,8 @@ func (c *Support) DescribeTrustedAdvisorCheckRefreshStatusesRequest(input *Descr input = &DescribeTrustedAdvisorCheckRefreshStatusesInput{} } - req = c.newRequest(op, input, output) output = &DescribeTrustedAdvisorCheckRefreshStatusesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -774,7 +783,7 @@ func (c *Support) DescribeTrustedAdvisorCheckRefreshStatusesRequest(input *Descr // Returns the refresh status of the Trusted Advisor checks that have the specified // check IDs. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks. // -// Some checks are refreshed automatically, and their refresh statuses cannot +// Some checks are refreshed automatically, and their refresh statuses cannot // be retrieved by using this operation. Use of the DescribeTrustedAdvisorCheckRefreshStatuses // operation for these checks causes an InvalidParameterValue error. // @@ -786,9 +795,10 @@ func (c *Support) DescribeTrustedAdvisorCheckRefreshStatusesRequest(input *Descr // API operation DescribeTrustedAdvisorCheckRefreshStatuses for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error occurred. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatuses func (c *Support) DescribeTrustedAdvisorCheckRefreshStatuses(input *DescribeTrustedAdvisorCheckRefreshStatusesInput) (*DescribeTrustedAdvisorCheckRefreshStatusesOutput, error) { req, out := c.DescribeTrustedAdvisorCheckRefreshStatusesRequest(input) err := req.Send() @@ -821,6 +831,7 @@ const opDescribeTrustedAdvisorCheckResult = "DescribeTrustedAdvisorCheckResult" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResult func (c *Support) DescribeTrustedAdvisorCheckResultRequest(input *DescribeTrustedAdvisorCheckResultInput) (req *request.Request, output *DescribeTrustedAdvisorCheckResultOutput) { op := &request.Operation{ Name: opDescribeTrustedAdvisorCheckResult, @@ -832,9 +843,8 @@ func (c *Support) DescribeTrustedAdvisorCheckResultRequest(input *DescribeTruste input = &DescribeTrustedAdvisorCheckResultInput{} } - req = c.newRequest(op, input, output) output = &DescribeTrustedAdvisorCheckResultOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -846,20 +856,20 @@ func (c *Support) DescribeTrustedAdvisorCheckResultRequest(input *DescribeTruste // The response contains a TrustedAdvisorCheckResult object, which contains // these three objects: // -// TrustedAdvisorCategorySpecificSummary +// * TrustedAdvisorCategorySpecificSummary // -// TrustedAdvisorResourceDetail +// * TrustedAdvisorResourceDetail // -// TrustedAdvisorResourcesSummary +// * TrustedAdvisorResourcesSummary // -// In addition, the response contains these fields: +// In addition, the response contains these fields: // -// status. The alert status of the check: "ok" (green), "warning" (yellow), -// "error" (red), or "not_available". +// * status. The alert status of the check: "ok" (green), "warning" (yellow), +// "error" (red), or "not_available". // -// timestamp. The time of the last refresh of the check. +// * timestamp. The time of the last refresh of the check. // -// checkId. The unique identifier for the check. +// * checkId. The unique identifier for the check. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -869,9 +879,10 @@ func (c *Support) DescribeTrustedAdvisorCheckResultRequest(input *DescribeTruste // API operation DescribeTrustedAdvisorCheckResult for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error occurred. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResult func (c *Support) DescribeTrustedAdvisorCheckResult(input *DescribeTrustedAdvisorCheckResultInput) (*DescribeTrustedAdvisorCheckResultOutput, error) { req, out := c.DescribeTrustedAdvisorCheckResultRequest(input) err := req.Send() @@ -904,6 +915,7 @@ const opDescribeTrustedAdvisorCheckSummaries = "DescribeTrustedAdvisorCheckSumma // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummaries func (c *Support) DescribeTrustedAdvisorCheckSummariesRequest(input *DescribeTrustedAdvisorCheckSummariesInput) (req *request.Request, output *DescribeTrustedAdvisorCheckSummariesOutput) { op := &request.Operation{ Name: opDescribeTrustedAdvisorCheckSummaries, @@ -915,9 +927,8 @@ func (c *Support) DescribeTrustedAdvisorCheckSummariesRequest(input *DescribeTru input = &DescribeTrustedAdvisorCheckSummariesInput{} } - req = c.newRequest(op, input, output) output = &DescribeTrustedAdvisorCheckSummariesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -936,9 +947,10 @@ func (c *Support) DescribeTrustedAdvisorCheckSummariesRequest(input *DescribeTru // API operation DescribeTrustedAdvisorCheckSummaries for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error occurred. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummaries func (c *Support) DescribeTrustedAdvisorCheckSummaries(input *DescribeTrustedAdvisorCheckSummariesInput) (*DescribeTrustedAdvisorCheckSummariesOutput, error) { req, out := c.DescribeTrustedAdvisorCheckSummariesRequest(input) err := req.Send() @@ -971,6 +983,7 @@ const opDescribeTrustedAdvisorChecks = "DescribeTrustedAdvisorChecks" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecks func (c *Support) DescribeTrustedAdvisorChecksRequest(input *DescribeTrustedAdvisorChecksInput) (req *request.Request, output *DescribeTrustedAdvisorChecksOutput) { op := &request.Operation{ Name: opDescribeTrustedAdvisorChecks, @@ -982,9 +995,8 @@ func (c *Support) DescribeTrustedAdvisorChecksRequest(input *DescribeTrustedAdvi input = &DescribeTrustedAdvisorChecksInput{} } - req = c.newRequest(op, input, output) output = &DescribeTrustedAdvisorChecksOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1003,9 +1015,10 @@ func (c *Support) DescribeTrustedAdvisorChecksRequest(input *DescribeTrustedAdvi // API operation DescribeTrustedAdvisorChecks for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error occurred. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecks func (c *Support) DescribeTrustedAdvisorChecks(input *DescribeTrustedAdvisorChecksInput) (*DescribeTrustedAdvisorChecksOutput, error) { req, out := c.DescribeTrustedAdvisorChecksRequest(input) err := req.Send() @@ -1038,6 +1051,7 @@ const opRefreshTrustedAdvisorCheck = "RefreshTrustedAdvisorCheck" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheck func (c *Support) RefreshTrustedAdvisorCheckRequest(input *RefreshTrustedAdvisorCheckInput) (req *request.Request, output *RefreshTrustedAdvisorCheckOutput) { op := &request.Operation{ Name: opRefreshTrustedAdvisorCheck, @@ -1049,9 +1063,8 @@ func (c *Support) RefreshTrustedAdvisorCheckRequest(input *RefreshTrustedAdvisor input = &RefreshTrustedAdvisorCheckInput{} } - req = c.newRequest(op, input, output) output = &RefreshTrustedAdvisorCheckOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1060,20 +1073,20 @@ func (c *Support) RefreshTrustedAdvisorCheckRequest(input *RefreshTrustedAdvisor // Requests a refresh of the Trusted Advisor check that has the specified check // ID. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks. // -// Some checks are refreshed automatically, and they cannot be refreshed by +// Some checks are refreshed automatically, and they cannot be refreshed by // using this operation. Use of the RefreshTrustedAdvisorCheck operation for // these checks causes an InvalidParameterValue error. // -// The response contains a TrustedAdvisorCheckRefreshStatus object, which -// contains these fields: +// The response contains a TrustedAdvisorCheckRefreshStatus object, which contains +// these fields: // -// status. The refresh status of the check: "none", "enqueued", "processing", -// "success", or "abandoned". +// * status. The refresh status of the check: "none", "enqueued", "processing", +// "success", or "abandoned". // -// millisUntilNextRefreshable. The amount of time, in milliseconds, until -// the check is eligible for refresh. +// * millisUntilNextRefreshable. The amount of time, in milliseconds, until +// the check is eligible for refresh. // -// checkId. The unique identifier for the check. +// * checkId. The unique identifier for the check. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1083,9 +1096,10 @@ func (c *Support) RefreshTrustedAdvisorCheckRequest(input *RefreshTrustedAdvisor // API operation RefreshTrustedAdvisorCheck for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error occurred. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheck func (c *Support) RefreshTrustedAdvisorCheck(input *RefreshTrustedAdvisorCheckInput) (*RefreshTrustedAdvisorCheckOutput, error) { req, out := c.RefreshTrustedAdvisorCheckRequest(input) err := req.Send() @@ -1118,6 +1132,7 @@ const opResolveCase = "ResolveCase" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCase func (c *Support) ResolveCaseRequest(input *ResolveCaseInput) (req *request.Request, output *ResolveCaseOutput) { op := &request.Operation{ Name: opResolveCase, @@ -1129,9 +1144,8 @@ func (c *Support) ResolveCaseRequest(input *ResolveCaseInput) (req *request.Requ input = &ResolveCaseInput{} } - req = c.newRequest(op, input, output) output = &ResolveCaseOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1148,18 +1162,20 @@ func (c *Support) ResolveCaseRequest(input *ResolveCaseInput) (req *request.Requ // API operation ResolveCase for usage and error information. // // Returned Error Codes: -// * InternalServerError +// * ErrCodeInternalServerError "InternalServerError" // An internal server error occurred. // -// * CaseIdNotFound +// * ErrCodeCaseIdNotFound "CaseIdNotFound" // The requested caseId could not be located. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCase func (c *Support) ResolveCase(input *ResolveCaseInput) (*ResolveCaseOutput, error) { req, out := c.ResolveCaseRequest(input) err := req.Send() return out, err } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSetRequest type AddAttachmentsToSetInput struct { _ struct{} `type:"structure"` @@ -1199,8 +1215,21 @@ func (s *AddAttachmentsToSetInput) Validate() error { return nil } +// SetAttachmentSetId sets the AttachmentSetId field's value. +func (s *AddAttachmentsToSetInput) SetAttachmentSetId(v string) *AddAttachmentsToSetInput { + s.AttachmentSetId = &v + return s +} + +// SetAttachments sets the Attachments field's value. +func (s *AddAttachmentsToSetInput) SetAttachments(v []*Attachment) *AddAttachmentsToSetInput { + s.Attachments = v + return s +} + // The ID and expiry time of the attachment set returned by the AddAttachmentsToSet // operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSetResponse type AddAttachmentsToSetOutput struct { _ struct{} `type:"structure"` @@ -1224,7 +1253,20 @@ func (s AddAttachmentsToSetOutput) GoString() string { return s.String() } +// SetAttachmentSetId sets the AttachmentSetId field's value. +func (s *AddAttachmentsToSetOutput) SetAttachmentSetId(v string) *AddAttachmentsToSetOutput { + s.AttachmentSetId = &v + return s +} + +// SetExpiryTime sets the ExpiryTime field's value. +func (s *AddAttachmentsToSetOutput) SetExpiryTime(v string) *AddAttachmentsToSetOutput { + s.ExpiryTime = &v + return s +} + // To be written. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCaseRequest type AddCommunicationToCaseInput struct { _ struct{} `type:"structure"` @@ -1272,7 +1314,32 @@ func (s *AddCommunicationToCaseInput) Validate() error { return nil } +// SetAttachmentSetId sets the AttachmentSetId field's value. +func (s *AddCommunicationToCaseInput) SetAttachmentSetId(v string) *AddCommunicationToCaseInput { + s.AttachmentSetId = &v + return s +} + +// SetCaseId sets the CaseId field's value. +func (s *AddCommunicationToCaseInput) SetCaseId(v string) *AddCommunicationToCaseInput { + s.CaseId = &v + return s +} + +// SetCcEmailAddresses sets the CcEmailAddresses field's value. +func (s *AddCommunicationToCaseInput) SetCcEmailAddresses(v []*string) *AddCommunicationToCaseInput { + s.CcEmailAddresses = v + return s +} + +// SetCommunicationBody sets the CommunicationBody field's value. +func (s *AddCommunicationToCaseInput) SetCommunicationBody(v string) *AddCommunicationToCaseInput { + s.CommunicationBody = &v + return s +} + // The result of the AddCommunicationToCase operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCaseResponse type AddCommunicationToCaseOutput struct { _ struct{} `type:"structure"` @@ -1290,8 +1357,15 @@ func (s AddCommunicationToCaseOutput) GoString() string { return s.String() } +// SetResult sets the Result field's value. +func (s *AddCommunicationToCaseOutput) SetResult(v bool) *AddCommunicationToCaseOutput { + s.Result = &v + return s +} + // An attachment to a case communication. The attachment consists of the file // name and the content of the file. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/Attachment type Attachment struct { _ struct{} `type:"structure"` @@ -1314,8 +1388,21 @@ func (s Attachment) GoString() string { return s.String() } +// SetData sets the Data field's value. +func (s *Attachment) SetData(v []byte) *Attachment { + s.Data = v + return s +} + +// SetFileName sets the FileName field's value. +func (s *Attachment) SetFileName(v string) *Attachment { + s.FileName = &v + return s +} + // The file name and ID of an attachment to a case communication. You can use // the ID to retrieve the attachment with the DescribeAttachment operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AttachmentDetails type AttachmentDetails struct { _ struct{} `type:"structure"` @@ -1336,40 +1423,55 @@ func (s AttachmentDetails) GoString() string { return s.String() } +// SetAttachmentId sets the AttachmentId field's value. +func (s *AttachmentDetails) SetAttachmentId(v string) *AttachmentDetails { + s.AttachmentId = &v + return s +} + +// SetFileName sets the FileName field's value. +func (s *AttachmentDetails) SetFileName(v string) *AttachmentDetails { + s.FileName = &v + return s +} + // A JSON-formatted object that contains the metadata for a support case. It // is contained the response from a DescribeCases request. CaseDetails contains // the following fields: // -// caseId. The AWS Support case ID requested or returned in the call. The -// case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47. +// * caseId. The AWS Support case ID requested or returned in the call. The +// case ID is an alphanumeric string formatted as shown in this example: +// case-12345678910-2013-c4c1d2bf33c5cf47. // -// categoryCode. The category of problem for the AWS Support case. Corresponds -// to the CategoryCode values returned by a call to DescribeServices. +// * categoryCode. The category of problem for the AWS Support case. Corresponds +// to the CategoryCode values returned by a call to DescribeServices. // -// displayId. The identifier for the case on pages in the AWS Support Center. +// * displayId. The identifier for the case on pages in the AWS Support Center. // -// language. The ISO 639-1 code for the language in which AWS provides support. -// AWS Support currently supports English ("en") and Japanese ("ja"). Language -// parameters must be passed explicitly for operations that take them. +// * language. The ISO 639-1 code for the language in which AWS provides +// support. AWS Support currently supports English ("en") and Japanese ("ja"). +// Language parameters must be passed explicitly for operations that take +// them. // -// recentCommunications. One or more Communication objects. Fields of these -// objects are attachments, body, caseId, submittedBy, and timeCreated. +// * recentCommunications. One or more Communication objects. Fields of these +// objects are attachments, body, caseId, submittedBy, and timeCreated. // -// nextToken. A resumption point for pagination. +// * nextToken. A resumption point for pagination. // -// serviceCode. The identifier for the AWS service that corresponds to the -// service code defined in the call to DescribeServices. +// * serviceCode. The identifier for the AWS service that corresponds to +// the service code defined in the call to DescribeServices. // -// severityCode. The severity code assigned to the case. Contains one of -// the values returned by the call to DescribeSeverityLevels. +// * severityCode. The severity code assigned to the case. Contains one of +// the values returned by the call to DescribeSeverityLevels. // -// status. The status of the case in the AWS Support Center. +// * status. The status of the case in the AWS Support Center. // -// subject. The subject line of the case. +// * subject. The subject line of the case. // -// submittedBy. The email address of the account that submitted the case. +// * submittedBy. The email address of the account that submitted the case. // -// timeCreated. The time the case was created, in ISO-8601 format. +// * timeCreated. The time the case was created, in ISO-8601 format. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CaseDetails type CaseDetails struct { _ struct{} `type:"structure"` @@ -1426,9 +1528,82 @@ func (s CaseDetails) GoString() string { return s.String() } +// SetCaseId sets the CaseId field's value. +func (s *CaseDetails) SetCaseId(v string) *CaseDetails { + s.CaseId = &v + return s +} + +// SetCategoryCode sets the CategoryCode field's value. +func (s *CaseDetails) SetCategoryCode(v string) *CaseDetails { + s.CategoryCode = &v + return s +} + +// SetCcEmailAddresses sets the CcEmailAddresses field's value. +func (s *CaseDetails) SetCcEmailAddresses(v []*string) *CaseDetails { + s.CcEmailAddresses = v + return s +} + +// SetDisplayId sets the DisplayId field's value. +func (s *CaseDetails) SetDisplayId(v string) *CaseDetails { + s.DisplayId = &v + return s +} + +// SetLanguage sets the Language field's value. +func (s *CaseDetails) SetLanguage(v string) *CaseDetails { + s.Language = &v + return s +} + +// SetRecentCommunications sets the RecentCommunications field's value. +func (s *CaseDetails) SetRecentCommunications(v *RecentCaseCommunications) *CaseDetails { + s.RecentCommunications = v + return s +} + +// SetServiceCode sets the ServiceCode field's value. +func (s *CaseDetails) SetServiceCode(v string) *CaseDetails { + s.ServiceCode = &v + return s +} + +// SetSeverityCode sets the SeverityCode field's value. +func (s *CaseDetails) SetSeverityCode(v string) *CaseDetails { + s.SeverityCode = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CaseDetails) SetStatus(v string) *CaseDetails { + s.Status = &v + return s +} + +// SetSubject sets the Subject field's value. +func (s *CaseDetails) SetSubject(v string) *CaseDetails { + s.Subject = &v + return s +} + +// SetSubmittedBy sets the SubmittedBy field's value. +func (s *CaseDetails) SetSubmittedBy(v string) *CaseDetails { + s.SubmittedBy = &v + return s +} + +// SetTimeCreated sets the TimeCreated field's value. +func (s *CaseDetails) SetTimeCreated(v string) *CaseDetails { + s.TimeCreated = &v + return s +} + // A JSON-formatted name/value pair that represents the category name and category // code of the problem, selected from the DescribeServices response for each // AWS service. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/Category type Category struct { _ struct{} `type:"structure"` @@ -1449,9 +1624,22 @@ func (s Category) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *Category) SetCode(v string) *Category { + s.Code = &v + return s +} + +// SetName sets the Name field's value. +func (s *Category) SetName(v string) *Category { + s.Name = &v + return s +} + // A communication associated with an AWS Support case. The communication consists // of the case ID, the message body, attachment information, the account email // address, and the date and time of the communication. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/Communication type Communication struct { _ struct{} `type:"structure"` @@ -1482,6 +1670,37 @@ func (s Communication) GoString() string { return s.String() } +// SetAttachmentSet sets the AttachmentSet field's value. +func (s *Communication) SetAttachmentSet(v []*AttachmentDetails) *Communication { + s.AttachmentSet = v + return s +} + +// SetBody sets the Body field's value. +func (s *Communication) SetBody(v string) *Communication { + s.Body = &v + return s +} + +// SetCaseId sets the CaseId field's value. +func (s *Communication) SetCaseId(v string) *Communication { + s.CaseId = &v + return s +} + +// SetSubmittedBy sets the SubmittedBy field's value. +func (s *Communication) SetSubmittedBy(v string) *Communication { + s.SubmittedBy = &v + return s +} + +// SetTimeCreated sets the TimeCreated field's value. +func (s *Communication) SetTimeCreated(v string) *Communication { + s.TimeCreated = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCaseRequest type CreateCaseInput struct { _ struct{} `type:"structure"` @@ -1515,9 +1734,9 @@ type CreateCaseInput struct { // The code for the severity level returned by the call to DescribeSeverityLevels. // - // The availability of severity levels depends on each customer's support - // subscription. In other words, your subscription may not necessarily require - // the urgent level of response time. + // The availability of severity levels depends on each customer's support subscription. + // In other words, your subscription may not necessarily require the urgent + // level of response time. SeverityCode *string `locationName:"severityCode" type:"string"` // The title of the AWS Support case. @@ -1555,8 +1774,63 @@ func (s *CreateCaseInput) Validate() error { return nil } +// SetAttachmentSetId sets the AttachmentSetId field's value. +func (s *CreateCaseInput) SetAttachmentSetId(v string) *CreateCaseInput { + s.AttachmentSetId = &v + return s +} + +// SetCategoryCode sets the CategoryCode field's value. +func (s *CreateCaseInput) SetCategoryCode(v string) *CreateCaseInput { + s.CategoryCode = &v + return s +} + +// SetCcEmailAddresses sets the CcEmailAddresses field's value. +func (s *CreateCaseInput) SetCcEmailAddresses(v []*string) *CreateCaseInput { + s.CcEmailAddresses = v + return s +} + +// SetCommunicationBody sets the CommunicationBody field's value. +func (s *CreateCaseInput) SetCommunicationBody(v string) *CreateCaseInput { + s.CommunicationBody = &v + return s +} + +// SetIssueType sets the IssueType field's value. +func (s *CreateCaseInput) SetIssueType(v string) *CreateCaseInput { + s.IssueType = &v + return s +} + +// SetLanguage sets the Language field's value. +func (s *CreateCaseInput) SetLanguage(v string) *CreateCaseInput { + s.Language = &v + return s +} + +// SetServiceCode sets the ServiceCode field's value. +func (s *CreateCaseInput) SetServiceCode(v string) *CreateCaseInput { + s.ServiceCode = &v + return s +} + +// SetSeverityCode sets the SeverityCode field's value. +func (s *CreateCaseInput) SetSeverityCode(v string) *CreateCaseInput { + s.SeverityCode = &v + return s +} + +// SetSubject sets the Subject field's value. +func (s *CreateCaseInput) SetSubject(v string) *CreateCaseInput { + s.Subject = &v + return s +} + // The AWS Support case ID returned by a successful completion of the CreateCase // operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCaseResponse type CreateCaseOutput struct { _ struct{} `type:"structure"` @@ -1575,6 +1849,13 @@ func (s CreateCaseOutput) GoString() string { return s.String() } +// SetCaseId sets the CaseId field's value. +func (s *CreateCaseOutput) SetCaseId(v string) *CreateCaseOutput { + s.CaseId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachmentRequest type DescribeAttachmentInput struct { _ struct{} `type:"structure"` @@ -1608,8 +1889,15 @@ func (s *DescribeAttachmentInput) Validate() error { return nil } +// SetAttachmentId sets the AttachmentId field's value. +func (s *DescribeAttachmentInput) SetAttachmentId(v string) *DescribeAttachmentInput { + s.AttachmentId = &v + return s +} + // The content and file name of the attachment returned by the DescribeAttachment // operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachmentResponse type DescribeAttachmentOutput struct { _ struct{} `type:"structure"` @@ -1627,6 +1915,13 @@ func (s DescribeAttachmentOutput) GoString() string { return s.String() } +// SetAttachment sets the Attachment field's value. +func (s *DescribeAttachmentOutput) SetAttachment(v *Attachment) *DescribeAttachmentOutput { + s.Attachment = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCasesRequest type DescribeCasesInput struct { _ struct{} `type:"structure"` @@ -1688,8 +1983,63 @@ func (s *DescribeCasesInput) Validate() error { return nil } +// SetAfterTime sets the AfterTime field's value. +func (s *DescribeCasesInput) SetAfterTime(v string) *DescribeCasesInput { + s.AfterTime = &v + return s +} + +// SetBeforeTime sets the BeforeTime field's value. +func (s *DescribeCasesInput) SetBeforeTime(v string) *DescribeCasesInput { + s.BeforeTime = &v + return s +} + +// SetCaseIdList sets the CaseIdList field's value. +func (s *DescribeCasesInput) SetCaseIdList(v []*string) *DescribeCasesInput { + s.CaseIdList = v + return s +} + +// SetDisplayId sets the DisplayId field's value. +func (s *DescribeCasesInput) SetDisplayId(v string) *DescribeCasesInput { + s.DisplayId = &v + return s +} + +// SetIncludeCommunications sets the IncludeCommunications field's value. +func (s *DescribeCasesInput) SetIncludeCommunications(v bool) *DescribeCasesInput { + s.IncludeCommunications = &v + return s +} + +// SetIncludeResolvedCases sets the IncludeResolvedCases field's value. +func (s *DescribeCasesInput) SetIncludeResolvedCases(v bool) *DescribeCasesInput { + s.IncludeResolvedCases = &v + return s +} + +// SetLanguage sets the Language field's value. +func (s *DescribeCasesInput) SetLanguage(v string) *DescribeCasesInput { + s.Language = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeCasesInput) SetMaxResults(v int64) *DescribeCasesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeCasesInput) SetNextToken(v string) *DescribeCasesInput { + s.NextToken = &v + return s +} + // Returns an array of CaseDetails objects and a nextToken that defines a point // for pagination in the result set. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCasesResponse type DescribeCasesOutput struct { _ struct{} `type:"structure"` @@ -1710,6 +2060,19 @@ func (s DescribeCasesOutput) GoString() string { return s.String() } +// SetCases sets the Cases field's value. +func (s *DescribeCasesOutput) SetCases(v []*CaseDetails) *DescribeCasesOutput { + s.Cases = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeCasesOutput) SetNextToken(v string) *DescribeCasesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunicationsRequest type DescribeCommunicationsInput struct { _ struct{} `type:"structure"` @@ -1760,7 +2123,38 @@ func (s *DescribeCommunicationsInput) Validate() error { return nil } +// SetAfterTime sets the AfterTime field's value. +func (s *DescribeCommunicationsInput) SetAfterTime(v string) *DescribeCommunicationsInput { + s.AfterTime = &v + return s +} + +// SetBeforeTime sets the BeforeTime field's value. +func (s *DescribeCommunicationsInput) SetBeforeTime(v string) *DescribeCommunicationsInput { + s.BeforeTime = &v + return s +} + +// SetCaseId sets the CaseId field's value. +func (s *DescribeCommunicationsInput) SetCaseId(v string) *DescribeCommunicationsInput { + s.CaseId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeCommunicationsInput) SetMaxResults(v int64) *DescribeCommunicationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeCommunicationsInput) SetNextToken(v string) *DescribeCommunicationsInput { + s.NextToken = &v + return s +} + // The communications returned by the DescribeCommunications operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunicationsResponse type DescribeCommunicationsOutput struct { _ struct{} `type:"structure"` @@ -1781,6 +2175,19 @@ func (s DescribeCommunicationsOutput) GoString() string { return s.String() } +// SetCommunications sets the Communications field's value. +func (s *DescribeCommunicationsOutput) SetCommunications(v []*Communication) *DescribeCommunicationsOutput { + s.Communications = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeCommunicationsOutput) SetNextToken(v string) *DescribeCommunicationsOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServicesRequest type DescribeServicesInput struct { _ struct{} `type:"structure"` @@ -1803,7 +2210,20 @@ func (s DescribeServicesInput) GoString() string { return s.String() } +// SetLanguage sets the Language field's value. +func (s *DescribeServicesInput) SetLanguage(v string) *DescribeServicesInput { + s.Language = &v + return s +} + +// SetServiceCodeList sets the ServiceCodeList field's value. +func (s *DescribeServicesInput) SetServiceCodeList(v []*string) *DescribeServicesInput { + s.ServiceCodeList = v + return s +} + // The list of AWS services returned by the DescribeServices operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServicesResponse type DescribeServicesOutput struct { _ struct{} `type:"structure"` @@ -1821,6 +2241,13 @@ func (s DescribeServicesOutput) GoString() string { return s.String() } +// SetServices sets the Services field's value. +func (s *DescribeServicesOutput) SetServices(v []*Service) *DescribeServicesOutput { + s.Services = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevelsRequest type DescribeSeverityLevelsInput struct { _ struct{} `type:"structure"` @@ -1840,7 +2267,14 @@ func (s DescribeSeverityLevelsInput) GoString() string { return s.String() } +// SetLanguage sets the Language field's value. +func (s *DescribeSeverityLevelsInput) SetLanguage(v string) *DescribeSeverityLevelsInput { + s.Language = &v + return s +} + // The list of severity levels returned by the DescribeSeverityLevels operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevelsResponse type DescribeSeverityLevelsOutput struct { _ struct{} `type:"structure"` @@ -1859,6 +2293,13 @@ func (s DescribeSeverityLevelsOutput) GoString() string { return s.String() } +// SetSeverityLevels sets the SeverityLevels field's value. +func (s *DescribeSeverityLevelsOutput) SetSeverityLevels(v []*SeverityLevel) *DescribeSeverityLevelsOutput { + s.SeverityLevels = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatusesRequest type DescribeTrustedAdvisorCheckRefreshStatusesInput struct { _ struct{} `type:"structure"` @@ -1893,8 +2334,15 @@ func (s *DescribeTrustedAdvisorCheckRefreshStatusesInput) Validate() error { return nil } +// SetCheckIds sets the CheckIds field's value. +func (s *DescribeTrustedAdvisorCheckRefreshStatusesInput) SetCheckIds(v []*string) *DescribeTrustedAdvisorCheckRefreshStatusesInput { + s.CheckIds = v + return s +} + // The statuses of the Trusted Advisor checks returned by the DescribeTrustedAdvisorCheckRefreshStatuses // operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatusesResponse type DescribeTrustedAdvisorCheckRefreshStatusesOutput struct { _ struct{} `type:"structure"` @@ -1914,6 +2362,13 @@ func (s DescribeTrustedAdvisorCheckRefreshStatusesOutput) GoString() string { return s.String() } +// SetStatuses sets the Statuses field's value. +func (s *DescribeTrustedAdvisorCheckRefreshStatusesOutput) SetStatuses(v []*TrustedAdvisorCheckRefreshStatus) *DescribeTrustedAdvisorCheckRefreshStatusesOutput { + s.Statuses = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResultRequest type DescribeTrustedAdvisorCheckResultInput struct { _ struct{} `type:"structure"` @@ -1951,8 +2406,21 @@ func (s *DescribeTrustedAdvisorCheckResultInput) Validate() error { return nil } +// SetCheckId sets the CheckId field's value. +func (s *DescribeTrustedAdvisorCheckResultInput) SetCheckId(v string) *DescribeTrustedAdvisorCheckResultInput { + s.CheckId = &v + return s +} + +// SetLanguage sets the Language field's value. +func (s *DescribeTrustedAdvisorCheckResultInput) SetLanguage(v string) *DescribeTrustedAdvisorCheckResultInput { + s.Language = &v + return s +} + // The result of the Trusted Advisor check returned by the DescribeTrustedAdvisorCheckResult // operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResultResponse type DescribeTrustedAdvisorCheckResultOutput struct { _ struct{} `type:"structure"` @@ -1970,6 +2438,13 @@ func (s DescribeTrustedAdvisorCheckResultOutput) GoString() string { return s.String() } +// SetResult sets the Result field's value. +func (s *DescribeTrustedAdvisorCheckResultOutput) SetResult(v *TrustedAdvisorCheckResult) *DescribeTrustedAdvisorCheckResultOutput { + s.Result = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummariesRequest type DescribeTrustedAdvisorCheckSummariesInput struct { _ struct{} `type:"structure"` @@ -2002,8 +2477,15 @@ func (s *DescribeTrustedAdvisorCheckSummariesInput) Validate() error { return nil } +// SetCheckIds sets the CheckIds field's value. +func (s *DescribeTrustedAdvisorCheckSummariesInput) SetCheckIds(v []*string) *DescribeTrustedAdvisorCheckSummariesInput { + s.CheckIds = v + return s +} + // The summaries of the Trusted Advisor checks returned by the DescribeTrustedAdvisorCheckSummaries // operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummariesResponse type DescribeTrustedAdvisorCheckSummariesOutput struct { _ struct{} `type:"structure"` @@ -2023,6 +2505,13 @@ func (s DescribeTrustedAdvisorCheckSummariesOutput) GoString() string { return s.String() } +// SetSummaries sets the Summaries field's value. +func (s *DescribeTrustedAdvisorCheckSummariesOutput) SetSummaries(v []*TrustedAdvisorCheckSummary) *DescribeTrustedAdvisorCheckSummariesOutput { + s.Summaries = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecksRequest type DescribeTrustedAdvisorChecksInput struct { _ struct{} `type:"structure"` @@ -2057,8 +2546,15 @@ func (s *DescribeTrustedAdvisorChecksInput) Validate() error { return nil } +// SetLanguage sets the Language field's value. +func (s *DescribeTrustedAdvisorChecksInput) SetLanguage(v string) *DescribeTrustedAdvisorChecksInput { + s.Language = &v + return s +} + // Information about the Trusted Advisor checks returned by the DescribeTrustedAdvisorChecks // operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecksResponse type DescribeTrustedAdvisorChecksOutput struct { _ struct{} `type:"structure"` @@ -2078,7 +2574,14 @@ func (s DescribeTrustedAdvisorChecksOutput) GoString() string { return s.String() } +// SetChecks sets the Checks field's value. +func (s *DescribeTrustedAdvisorChecksOutput) SetChecks(v []*TrustedAdvisorCheckDescription) *DescribeTrustedAdvisorChecksOutput { + s.Checks = v + return s +} + // The five most recent communications associated with the case. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RecentCaseCommunications type RecentCaseCommunications struct { _ struct{} `type:"structure"` @@ -2099,6 +2602,19 @@ func (s RecentCaseCommunications) GoString() string { return s.String() } +// SetCommunications sets the Communications field's value. +func (s *RecentCaseCommunications) SetCommunications(v []*Communication) *RecentCaseCommunications { + s.Communications = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *RecentCaseCommunications) SetNextToken(v string) *RecentCaseCommunications { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheckRequest type RefreshTrustedAdvisorCheckInput struct { _ struct{} `type:"structure"` @@ -2133,7 +2649,14 @@ func (s *RefreshTrustedAdvisorCheckInput) Validate() error { return nil } +// SetCheckId sets the CheckId field's value. +func (s *RefreshTrustedAdvisorCheckInput) SetCheckId(v string) *RefreshTrustedAdvisorCheckInput { + s.CheckId = &v + return s +} + // The current refresh status of a Trusted Advisor check. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheckResponse type RefreshTrustedAdvisorCheckOutput struct { _ struct{} `type:"structure"` @@ -2154,6 +2677,13 @@ func (s RefreshTrustedAdvisorCheckOutput) GoString() string { return s.String() } +// SetStatus sets the Status field's value. +func (s *RefreshTrustedAdvisorCheckOutput) SetStatus(v *TrustedAdvisorCheckRefreshStatus) *RefreshTrustedAdvisorCheckOutput { + s.Status = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCaseRequest type ResolveCaseInput struct { _ struct{} `type:"structure"` @@ -2172,7 +2702,14 @@ func (s ResolveCaseInput) GoString() string { return s.String() } +// SetCaseId sets the CaseId field's value. +func (s *ResolveCaseInput) SetCaseId(v string) *ResolveCaseInput { + s.CaseId = &v + return s +} + // The status of the case returned by the ResolveCase operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCaseResponse type ResolveCaseOutput struct { _ struct{} `type:"structure"` @@ -2193,7 +2730,20 @@ func (s ResolveCaseOutput) GoString() string { return s.String() } +// SetFinalCaseStatus sets the FinalCaseStatus field's value. +func (s *ResolveCaseOutput) SetFinalCaseStatus(v string) *ResolveCaseOutput { + s.FinalCaseStatus = &v + return s +} + +// SetInitialCaseStatus sets the InitialCaseStatus field's value. +func (s *ResolveCaseOutput) SetInitialCaseStatus(v string) *ResolveCaseOutput { + s.InitialCaseStatus = &v + return s +} + // Information about an AWS service returned by the DescribeServices operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/Service type Service struct { _ struct{} `type:"structure"` @@ -2221,8 +2771,27 @@ func (s Service) GoString() string { return s.String() } +// SetCategories sets the Categories field's value. +func (s *Service) SetCategories(v []*Category) *Service { + s.Categories = v + return s +} + +// SetCode sets the Code field's value. +func (s *Service) SetCode(v string) *Service { + s.Code = &v + return s +} + +// SetName sets the Name field's value. +func (s *Service) SetName(v string) *Service { + s.Name = &v + return s +} + // A code and name pair that represent a severity level that can be applied // to a support case. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/SeverityLevel type SeverityLevel struct { _ struct{} `type:"structure"` @@ -2244,8 +2813,21 @@ func (s SeverityLevel) GoString() string { return s.String() } +// SetCode sets the Code field's value. +func (s *SeverityLevel) SetCode(v string) *SeverityLevel { + s.Code = &v + return s +} + +// SetName sets the Name field's value. +func (s *SeverityLevel) SetName(v string) *SeverityLevel { + s.Name = &v + return s +} + // The container for summary information that relates to the category of the // Trusted Advisor check. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/TrustedAdvisorCategorySpecificSummary type TrustedAdvisorCategorySpecificSummary struct { _ struct{} `type:"structure"` @@ -2264,7 +2846,14 @@ func (s TrustedAdvisorCategorySpecificSummary) GoString() string { return s.String() } +// SetCostOptimizing sets the CostOptimizing field's value. +func (s *TrustedAdvisorCategorySpecificSummary) SetCostOptimizing(v *TrustedAdvisorCostOptimizingSummary) *TrustedAdvisorCategorySpecificSummary { + s.CostOptimizing = v + return s +} + // The description and metadata for a Trusted Advisor check. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/TrustedAdvisorCheckDescription type TrustedAdvisorCheckDescription struct { _ struct{} `type:"structure"` @@ -2309,7 +2898,38 @@ func (s TrustedAdvisorCheckDescription) GoString() string { return s.String() } +// SetCategory sets the Category field's value. +func (s *TrustedAdvisorCheckDescription) SetCategory(v string) *TrustedAdvisorCheckDescription { + s.Category = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *TrustedAdvisorCheckDescription) SetDescription(v string) *TrustedAdvisorCheckDescription { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *TrustedAdvisorCheckDescription) SetId(v string) *TrustedAdvisorCheckDescription { + s.Id = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *TrustedAdvisorCheckDescription) SetMetadata(v []*string) *TrustedAdvisorCheckDescription { + s.Metadata = v + return s +} + +// SetName sets the Name field's value. +func (s *TrustedAdvisorCheckDescription) SetName(v string) *TrustedAdvisorCheckDescription { + s.Name = &v + return s +} + // The refresh status of a Trusted Advisor check. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/TrustedAdvisorCheckRefreshStatus type TrustedAdvisorCheckRefreshStatus struct { _ struct{} `type:"structure"` @@ -2341,7 +2961,26 @@ func (s TrustedAdvisorCheckRefreshStatus) GoString() string { return s.String() } +// SetCheckId sets the CheckId field's value. +func (s *TrustedAdvisorCheckRefreshStatus) SetCheckId(v string) *TrustedAdvisorCheckRefreshStatus { + s.CheckId = &v + return s +} + +// SetMillisUntilNextRefreshable sets the MillisUntilNextRefreshable field's value. +func (s *TrustedAdvisorCheckRefreshStatus) SetMillisUntilNextRefreshable(v int64) *TrustedAdvisorCheckRefreshStatus { + s.MillisUntilNextRefreshable = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *TrustedAdvisorCheckRefreshStatus) SetStatus(v string) *TrustedAdvisorCheckRefreshStatus { + s.Status = &v + return s +} + // The results of a Trusted Advisor check returned by DescribeTrustedAdvisorCheckResult. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/TrustedAdvisorCheckResult type TrustedAdvisorCheckResult struct { _ struct{} `type:"structure"` @@ -2389,8 +3028,45 @@ func (s TrustedAdvisorCheckResult) GoString() string { return s.String() } +// SetCategorySpecificSummary sets the CategorySpecificSummary field's value. +func (s *TrustedAdvisorCheckResult) SetCategorySpecificSummary(v *TrustedAdvisorCategorySpecificSummary) *TrustedAdvisorCheckResult { + s.CategorySpecificSummary = v + return s +} + +// SetCheckId sets the CheckId field's value. +func (s *TrustedAdvisorCheckResult) SetCheckId(v string) *TrustedAdvisorCheckResult { + s.CheckId = &v + return s +} + +// SetFlaggedResources sets the FlaggedResources field's value. +func (s *TrustedAdvisorCheckResult) SetFlaggedResources(v []*TrustedAdvisorResourceDetail) *TrustedAdvisorCheckResult { + s.FlaggedResources = v + return s +} + +// SetResourcesSummary sets the ResourcesSummary field's value. +func (s *TrustedAdvisorCheckResult) SetResourcesSummary(v *TrustedAdvisorResourcesSummary) *TrustedAdvisorCheckResult { + s.ResourcesSummary = v + return s +} + +// SetStatus sets the Status field's value. +func (s *TrustedAdvisorCheckResult) SetStatus(v string) *TrustedAdvisorCheckResult { + s.Status = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *TrustedAdvisorCheckResult) SetTimestamp(v string) *TrustedAdvisorCheckResult { + s.Timestamp = &v + return s +} + // A summary of a Trusted Advisor check result, including the alert status, // last refresh, and number of resources examined. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/TrustedAdvisorCheckSummary type TrustedAdvisorCheckSummary struct { _ struct{} `type:"structure"` @@ -2436,8 +3112,45 @@ func (s TrustedAdvisorCheckSummary) GoString() string { return s.String() } +// SetCategorySpecificSummary sets the CategorySpecificSummary field's value. +func (s *TrustedAdvisorCheckSummary) SetCategorySpecificSummary(v *TrustedAdvisorCategorySpecificSummary) *TrustedAdvisorCheckSummary { + s.CategorySpecificSummary = v + return s +} + +// SetCheckId sets the CheckId field's value. +func (s *TrustedAdvisorCheckSummary) SetCheckId(v string) *TrustedAdvisorCheckSummary { + s.CheckId = &v + return s +} + +// SetHasFlaggedResources sets the HasFlaggedResources field's value. +func (s *TrustedAdvisorCheckSummary) SetHasFlaggedResources(v bool) *TrustedAdvisorCheckSummary { + s.HasFlaggedResources = &v + return s +} + +// SetResourcesSummary sets the ResourcesSummary field's value. +func (s *TrustedAdvisorCheckSummary) SetResourcesSummary(v *TrustedAdvisorResourcesSummary) *TrustedAdvisorCheckSummary { + s.ResourcesSummary = v + return s +} + +// SetStatus sets the Status field's value. +func (s *TrustedAdvisorCheckSummary) SetStatus(v string) *TrustedAdvisorCheckSummary { + s.Status = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *TrustedAdvisorCheckSummary) SetTimestamp(v string) *TrustedAdvisorCheckSummary { + s.Timestamp = &v + return s +} + // The estimated cost savings that might be realized if the recommended actions // are taken. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/TrustedAdvisorCostOptimizingSummary type TrustedAdvisorCostOptimizingSummary struct { _ struct{} `type:"structure"` @@ -2464,7 +3177,20 @@ func (s TrustedAdvisorCostOptimizingSummary) GoString() string { return s.String() } +// SetEstimatedMonthlySavings sets the EstimatedMonthlySavings field's value. +func (s *TrustedAdvisorCostOptimizingSummary) SetEstimatedMonthlySavings(v float64) *TrustedAdvisorCostOptimizingSummary { + s.EstimatedMonthlySavings = &v + return s +} + +// SetEstimatedPercentMonthlySavings sets the EstimatedPercentMonthlySavings field's value. +func (s *TrustedAdvisorCostOptimizingSummary) SetEstimatedPercentMonthlySavings(v float64) *TrustedAdvisorCostOptimizingSummary { + s.EstimatedPercentMonthlySavings = &v + return s +} + // Contains information about a resource identified by a Trusted Advisor check. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/TrustedAdvisorResourceDetail type TrustedAdvisorResourceDetail struct { _ struct{} `type:"structure"` @@ -2505,8 +3231,39 @@ func (s TrustedAdvisorResourceDetail) GoString() string { return s.String() } +// SetIsSuppressed sets the IsSuppressed field's value. +func (s *TrustedAdvisorResourceDetail) SetIsSuppressed(v bool) *TrustedAdvisorResourceDetail { + s.IsSuppressed = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *TrustedAdvisorResourceDetail) SetMetadata(v []*string) *TrustedAdvisorResourceDetail { + s.Metadata = v + return s +} + +// SetRegion sets the Region field's value. +func (s *TrustedAdvisorResourceDetail) SetRegion(v string) *TrustedAdvisorResourceDetail { + s.Region = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *TrustedAdvisorResourceDetail) SetResourceId(v string) *TrustedAdvisorResourceDetail { + s.ResourceId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *TrustedAdvisorResourceDetail) SetStatus(v string) *TrustedAdvisorResourceDetail { + s.Status = &v + return s +} + // Details about AWS resources that were analyzed in a call to Trusted Advisor // DescribeTrustedAdvisorCheckSummaries. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/TrustedAdvisorResourcesSummary type TrustedAdvisorResourcesSummary struct { _ struct{} `type:"structure"` @@ -2543,3 +3300,27 @@ func (s TrustedAdvisorResourcesSummary) String() string { func (s TrustedAdvisorResourcesSummary) GoString() string { return s.String() } + +// SetResourcesFlagged sets the ResourcesFlagged field's value. +func (s *TrustedAdvisorResourcesSummary) SetResourcesFlagged(v int64) *TrustedAdvisorResourcesSummary { + s.ResourcesFlagged = &v + return s +} + +// SetResourcesIgnored sets the ResourcesIgnored field's value. +func (s *TrustedAdvisorResourcesSummary) SetResourcesIgnored(v int64) *TrustedAdvisorResourcesSummary { + s.ResourcesIgnored = &v + return s +} + +// SetResourcesProcessed sets the ResourcesProcessed field's value. +func (s *TrustedAdvisorResourcesSummary) SetResourcesProcessed(v int64) *TrustedAdvisorResourcesSummary { + s.ResourcesProcessed = &v + return s +} + +// SetResourcesSuppressed sets the ResourcesSuppressed field's value. +func (s *TrustedAdvisorResourcesSummary) SetResourcesSuppressed(v int64) *TrustedAdvisorResourcesSummary { + s.ResourcesSuppressed = &v + return s +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/support/errors.go b/vendor/github.com/aws/aws-sdk-go/service/support/errors.go new file mode 100644 index 000000000..8e9503fa0 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/support/errors.go @@ -0,0 +1,64 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package support + +const ( + + // ErrCodeAttachmentIdNotFound for service response error code + // "AttachmentIdNotFound". + // + // An attachment with the specified ID could not be found. + ErrCodeAttachmentIdNotFound = "AttachmentIdNotFound" + + // ErrCodeAttachmentLimitExceeded for service response error code + // "AttachmentLimitExceeded". + // + // The limit for the number of attachment sets created in a short period of + // time has been exceeded. + ErrCodeAttachmentLimitExceeded = "AttachmentLimitExceeded" + + // ErrCodeAttachmentSetExpired for service response error code + // "AttachmentSetExpired". + // + // The expiration time of the attachment set has passed. The set expires 1 hour + // after it is created. + ErrCodeAttachmentSetExpired = "AttachmentSetExpired" + + // ErrCodeAttachmentSetIdNotFound for service response error code + // "AttachmentSetIdNotFound". + // + // An attachment set with the specified ID could not be found. + ErrCodeAttachmentSetIdNotFound = "AttachmentSetIdNotFound" + + // ErrCodeAttachmentSetSizeLimitExceeded for service response error code + // "AttachmentSetSizeLimitExceeded". + // + // A limit for the size of an attachment set has been exceeded. The limits are + // 3 attachments and 5 MB per attachment. + ErrCodeAttachmentSetSizeLimitExceeded = "AttachmentSetSizeLimitExceeded" + + // ErrCodeCaseCreationLimitExceeded for service response error code + // "CaseCreationLimitExceeded". + // + // The case creation limit for the account has been exceeded. + ErrCodeCaseCreationLimitExceeded = "CaseCreationLimitExceeded" + + // ErrCodeCaseIdNotFound for service response error code + // "CaseIdNotFound". + // + // The requested caseId could not be located. + ErrCodeCaseIdNotFound = "CaseIdNotFound" + + // ErrCodeDescribeAttachmentLimitExceeded for service response error code + // "DescribeAttachmentLimitExceeded". + // + // The limit for the number of DescribeAttachment requests in a short period + // of time has been exceeded. + ErrCodeDescribeAttachmentLimitExceeded = "DescribeAttachmentLimitExceeded" + + // ErrCodeInternalServerError for service response error code + // "InternalServerError". + // + // An internal server error occurred. + ErrCodeInternalServerError = "InternalServerError" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/support/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/support/examples_test.go index 3914e5cb4..f639fb6c5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/support/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/support/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSupport_AddAttachmentsToSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -48,11 +44,7 @@ func ExampleSupport_AddAttachmentsToSet() { } func ExampleSupport_AddCommunicationToCase() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -79,11 +71,7 @@ func ExampleSupport_AddCommunicationToCase() { } func ExampleSupport_CreateCase() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -115,11 +103,7 @@ func ExampleSupport_CreateCase() { } func ExampleSupport_DescribeAttachment() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -140,11 +124,7 @@ func ExampleSupport_DescribeAttachment() { } func ExampleSupport_DescribeCases() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -176,11 +156,7 @@ func ExampleSupport_DescribeCases() { } func ExampleSupport_DescribeCommunications() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -205,11 +181,7 @@ func ExampleSupport_DescribeCommunications() { } func ExampleSupport_DescribeServices() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -234,11 +206,7 @@ func ExampleSupport_DescribeServices() { } func ExampleSupport_DescribeSeverityLevels() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -259,11 +227,7 @@ func ExampleSupport_DescribeSeverityLevels() { } func ExampleSupport_DescribeTrustedAdvisorCheckRefreshStatuses() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -287,11 +251,7 @@ func ExampleSupport_DescribeTrustedAdvisorCheckRefreshStatuses() { } func ExampleSupport_DescribeTrustedAdvisorCheckResult() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -313,11 +273,7 @@ func ExampleSupport_DescribeTrustedAdvisorCheckResult() { } func ExampleSupport_DescribeTrustedAdvisorCheckSummaries() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -341,11 +297,7 @@ func ExampleSupport_DescribeTrustedAdvisorCheckSummaries() { } func ExampleSupport_DescribeTrustedAdvisorChecks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -366,11 +318,7 @@ func ExampleSupport_DescribeTrustedAdvisorChecks() { } func ExampleSupport_RefreshTrustedAdvisorCheck() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) @@ -391,11 +339,7 @@ func ExampleSupport_RefreshTrustedAdvisorCheck() { } func ExampleSupport_ResolveCase() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := support.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/support/service.go b/vendor/github.com/aws/aws-sdk-go/service/support/service.go index 737ffbd7d..52a006bbc 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/support/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/support/service.go @@ -22,47 +22,48 @@ import ( // // The following list describes the AWS Support case management operations: // -// Service names, issue categories, and available severity levels. The DescribeServices -// and DescribeSeverityLevels operations return AWS service names, service codes, -// service categories, and problem severity levels. You use these values when -// you call the CreateCase operation. +// * Service names, issue categories, and available severity levels. The +// DescribeServices and DescribeSeverityLevels operations return AWS service +// names, service codes, service categories, and problem severity levels. +// You use these values when you call the CreateCase operation. // -// Case creation, case details, and case resolution. The CreateCase, DescribeCases, -// DescribeAttachment, and ResolveCase operations create AWS Support cases, -// retrieve information about cases, and resolve cases. +// * Case creation, case details, and case resolution. The CreateCase, DescribeCases, +// DescribeAttachment, and ResolveCase operations create AWS Support cases, +// retrieve information about cases, and resolve cases. // -// Case communication. The DescribeCommunications, AddCommunicationToCase, -// and AddAttachmentsToSet operations retrieve and add communications and attachments -// to AWS Support cases. +// * Case communication. The DescribeCommunications, AddCommunicationToCase, +// and AddAttachmentsToSet operations retrieve and add communications and +// attachments to AWS Support cases. // -// The following list describes the operations available from the AWS Support +// The following list describes the operations available from the AWS Support // service for Trusted Advisor: // -// DescribeTrustedAdvisorChecks returns the list of checks that run against -// your AWS resources. +// * DescribeTrustedAdvisorChecks returns the list of checks that run against +// your AWS resources. // -// Using the checkId for a specific check returned by DescribeTrustedAdvisorChecks, -// you can call DescribeTrustedAdvisorCheckResult to obtain the results for -// the check you specified. +// * Using the checkId for a specific check returned by DescribeTrustedAdvisorChecks, +// you can call DescribeTrustedAdvisorCheckResult to obtain the results for +// the check you specified. // -// DescribeTrustedAdvisorCheckSummaries returns summarized results for one -// or more Trusted Advisor checks. +// * DescribeTrustedAdvisorCheckSummaries returns summarized results for +// one or more Trusted Advisor checks. // -// RefreshTrustedAdvisorCheck requests that Trusted Advisor rerun a specified -// check. +// * RefreshTrustedAdvisorCheck requests that Trusted Advisor rerun a specified +// check. // -// DescribeTrustedAdvisorCheckRefreshStatuses reports the refresh status -// of one or more checks. +// * DescribeTrustedAdvisorCheckRefreshStatuses reports the refresh status +// of one or more checks. // -// For authentication of requests, AWS Support uses Signature Version 4 Signing +// For authentication of requests, AWS Support uses Signature Version 4 Signing // Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). // // See About the AWS Support API (http://docs.aws.amazon.com/awssupport/latest/user/Welcome.html) // in the AWS Support User Guide for information about how to use this service // to create and manage your support cases, and how to call Trusted Advisor // for results of checks on your resources. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15 type Support struct { *client.Client } @@ -73,8 +74,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "support" +// Service information constants +const ( + ServiceName = "support" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the Support client with a session. // If additional configuration is needed for the client instance use the optional @@ -87,17 +91,18 @@ const ServiceName = "support" // // Create a Support client with additional configuration // svc := support.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Support { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *Support { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Support { svc := &Support{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2013-04-15", diff --git a/vendor/github.com/aws/aws-sdk-go/service/support/supportiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/support/supportiface/interface.go index e89d26210..5c98a13f1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/support/supportiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/support/supportiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockSupportClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/swf/api.go b/vendor/github.com/aws/aws-sdk-go/service/swf/api.go index 07eb2913a..6c4eaa38e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/swf/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/swf/api.go @@ -38,7 +38,6 @@ const opCountClosedWorkflowExecutions = "CountClosedWorkflowExecutions" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) CountClosedWorkflowExecutionsRequest(input *CountClosedWorkflowExecutionsInput) (req *request.Request, output *WorkflowExecutionCount) { op := &request.Operation{ Name: opCountClosedWorkflowExecutions, @@ -50,9 +49,8 @@ func (c *SWF) CountClosedWorkflowExecutionsRequest(input *CountClosedWorkflowExe input = &CountClosedWorkflowExecutionsInput{} } - req = c.newRequest(op, input, output) output = &WorkflowExecutionCount{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -62,18 +60,22 @@ func (c *SWF) CountClosedWorkflowExecutionsRequest(input *CountClosedWorkflowExe // that meet the specified filtering criteria. // // This operation is eventually consistent. The results are best effort and -// may not exactly reflect recent updates and changes. Access Control +// may not exactly reflect recent updates and changes.Access Control // // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. Constrain the following parameters by using a Condition element -// with the appropriate keys. tagFilter.tag: String constraint. The key is -// swf:tagFilter.tag. typeFilter.name: String constraint. The key is swf:typeFilter.name. +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * Constrain the following parameters by using a Condition element with +// the appropriate keys. tagFilter.tag: String constraint. The key is swf:tagFilter.tag. +// +// typeFilter.name: String constraint. The key is swf:typeFilter.name. // typeFilter.version: String constraint. The key is swf:typeFilter.version. -// If the caller does not have sufficient permissions to invoke the action, +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -87,12 +89,12 @@ func (c *SWF) CountClosedWorkflowExecutionsRequest(input *CountClosedWorkflowExe // API operation CountClosedWorkflowExecutions for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -127,7 +129,6 @@ const opCountOpenWorkflowExecutions = "CountOpenWorkflowExecutions" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) CountOpenWorkflowExecutionsRequest(input *CountOpenWorkflowExecutionsInput) (req *request.Request, output *WorkflowExecutionCount) { op := &request.Operation{ Name: opCountOpenWorkflowExecutions, @@ -139,9 +140,8 @@ func (c *SWF) CountOpenWorkflowExecutionsRequest(input *CountOpenWorkflowExecuti input = &CountOpenWorkflowExecutionsInput{} } - req = c.newRequest(op, input, output) output = &WorkflowExecutionCount{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -151,18 +151,22 @@ func (c *SWF) CountOpenWorkflowExecutionsRequest(input *CountOpenWorkflowExecuti // meet the specified filtering criteria. // // This operation is eventually consistent. The results are best effort and -// may not exactly reflect recent updates and changes. Access Control +// may not exactly reflect recent updates and changes.Access Control // // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. Constrain the following parameters by using a Condition element -// with the appropriate keys. tagFilter.tag: String constraint. The key is -// swf:tagFilter.tag. typeFilter.name: String constraint. The key is swf:typeFilter.name. +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * Constrain the following parameters by using a Condition element with +// the appropriate keys. tagFilter.tag: String constraint. The key is swf:tagFilter.tag. +// +// typeFilter.name: String constraint. The key is swf:typeFilter.name. // typeFilter.version: String constraint. The key is swf:typeFilter.version. -// If the caller does not have sufficient permissions to invoke the action, +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -176,12 +180,12 @@ func (c *SWF) CountOpenWorkflowExecutionsRequest(input *CountOpenWorkflowExecuti // API operation CountOpenWorkflowExecutions for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -216,7 +220,6 @@ const opCountPendingActivityTasks = "CountPendingActivityTasks" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) CountPendingActivityTasksRequest(input *CountPendingActivityTasksInput) (req *request.Request, output *PendingTaskCount) { op := &request.Operation{ Name: opCountPendingActivityTasks, @@ -228,9 +231,8 @@ func (c *SWF) CountPendingActivityTasksRequest(input *CountPendingActivityTasksI input = &CountPendingActivityTasksInput{} } - req = c.newRequest(op, input, output) output = &PendingTaskCount{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -246,15 +248,18 @@ func (c *SWF) CountPendingActivityTasksRequest(input *CountPendingActivityTasksI // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. Constrain the taskList.name parameter by using a Condition element -// with the swf:taskList.name key to allow the action to access only certain -// task lists. If the caller does not have sufficient permissions to invoke -// the action, or the parameter values fall outside the specified constraints, -// the action fails. The associated event attribute's cause parameter will be -// set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see -// Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * Constrain the taskList.name parameter by using a Condition element with +// the swf:taskList.name key to allow the action to access only certain task +// lists. +// If the caller does not have sufficient permissions to invoke the action, +// or the parameter values fall outside the specified constraints, the action +// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. +// For details and example IAM policies, see Using IAM to Manage Access to Amazon +// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -264,12 +269,12 @@ func (c *SWF) CountPendingActivityTasksRequest(input *CountPendingActivityTasksI // API operation CountPendingActivityTasks for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -304,7 +309,6 @@ const opCountPendingDecisionTasks = "CountPendingDecisionTasks" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) CountPendingDecisionTasksRequest(input *CountPendingDecisionTasksInput) (req *request.Request, output *PendingTaskCount) { op := &request.Operation{ Name: opCountPendingDecisionTasks, @@ -316,9 +320,8 @@ func (c *SWF) CountPendingDecisionTasksRequest(input *CountPendingDecisionTasksI input = &CountPendingDecisionTasksInput{} } - req = c.newRequest(op, input, output) output = &PendingTaskCount{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -334,15 +337,18 @@ func (c *SWF) CountPendingDecisionTasksRequest(input *CountPendingDecisionTasksI // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. Constrain the taskList.name parameter by using a Condition element -// with the swf:taskList.name key to allow the action to access only certain -// task lists. If the caller does not have sufficient permissions to invoke -// the action, or the parameter values fall outside the specified constraints, -// the action fails. The associated event attribute's cause parameter will be -// set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see -// Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * Constrain the taskList.name parameter by using a Condition element with +// the swf:taskList.name key to allow the action to access only certain task +// lists. +// If the caller does not have sufficient permissions to invoke the action, +// or the parameter values fall outside the specified constraints, the action +// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. +// For details and example IAM policies, see Using IAM to Manage Access to Amazon +// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -352,12 +358,12 @@ func (c *SWF) CountPendingDecisionTasksRequest(input *CountPendingDecisionTasksI // API operation CountPendingDecisionTasks for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -392,7 +398,6 @@ const opDeprecateActivityType = "DeprecateActivityType" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) DeprecateActivityTypeRequest(input *DeprecateActivityTypeInput) (req *request.Request, output *DeprecateActivityTypeOutput) { op := &request.Operation{ Name: opDeprecateActivityType, @@ -404,11 +409,10 @@ func (c *SWF) DeprecateActivityTypeRequest(input *DeprecateActivityTypeInput) (r input = &DeprecateActivityTypeInput{} } + output = &DeprecateActivityTypeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeprecateActivityTypeOutput{} - req.Data = output return } @@ -419,21 +423,25 @@ func (c *SWF) DeprecateActivityTypeRequest(input *DeprecateActivityTypeInput) (r // were scheduled before the type was deprecated will continue to run. // // This operation is eventually consistent. The results are best effort and -// may not exactly reflect recent updates and changes. Access Control +// may not exactly reflect recent updates and changes.Access Control // // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. Constrain the following parameters by using a Condition element -// with the appropriate keys. activityType.name: String constraint. The key -// is swf:activityType.name. activityType.version: String constraint. The key -// is swf:activityType.version. If the caller does not have sufficient permissions -// to invoke the action, or the parameter values fall outside the specified -// constraints, the action fails. The associated event attribute's cause parameter -// will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, -// see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * Constrain the following parameters by using a Condition element with +// the appropriate keys. activityType.name: String constraint. The key is +// swf:activityType.name. +// activityType.version: String constraint. The key is swf:activityType.version. +// +// If the caller does not have sufficient permissions to invoke the action, +// or the parameter values fall outside the specified constraints, the action +// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. +// For details and example IAM policies, see Using IAM to Manage Access to Amazon +// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -443,15 +451,15 @@ func (c *SWF) DeprecateActivityTypeRequest(input *DeprecateActivityTypeInput) (r // API operation DeprecateActivityType for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * TypeDeprecatedFault +// * ErrCodeTypeDeprecatedFault "TypeDeprecatedFault" // Returned when the specified activity or workflow type was already deprecated. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -486,7 +494,6 @@ const opDeprecateDomain = "DeprecateDomain" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) DeprecateDomainRequest(input *DeprecateDomainInput) (req *request.Request, output *DeprecateDomainOutput) { op := &request.Operation{ Name: opDeprecateDomain, @@ -498,11 +505,10 @@ func (c *SWF) DeprecateDomainRequest(input *DeprecateDomainInput) (req *request. input = &DeprecateDomainInput{} } + output = &DeprecateDomainOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeprecateDomainOutput{} - req.Data = output return } @@ -516,15 +522,18 @@ func (c *SWF) DeprecateDomainRequest(input *DeprecateDomainInput) (req *request. // to run. // // This operation is eventually consistent. The results are best effort and -// may not exactly reflect recent updates and changes. Access Control +// may not exactly reflect recent updates and changes.Access Control // // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -538,15 +547,15 @@ func (c *SWF) DeprecateDomainRequest(input *DeprecateDomainInput) (req *request. // API operation DeprecateDomain for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * DomainDeprecatedFault +// * ErrCodeDomainDeprecatedFault "DomainDeprecatedFault" // Returned when the specified domain has been deprecated. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -581,7 +590,6 @@ const opDeprecateWorkflowType = "DeprecateWorkflowType" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) DeprecateWorkflowTypeRequest(input *DeprecateWorkflowTypeInput) (req *request.Request, output *DeprecateWorkflowTypeOutput) { op := &request.Operation{ Name: opDeprecateWorkflowType, @@ -593,11 +601,10 @@ func (c *SWF) DeprecateWorkflowTypeRequest(input *DeprecateWorkflowTypeInput) (r input = &DeprecateWorkflowTypeInput{} } + output = &DeprecateWorkflowTypeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeprecateWorkflowTypeOutput{} - req.Data = output return } @@ -609,21 +616,25 @@ func (c *SWF) DeprecateWorkflowTypeRequest(input *DeprecateWorkflowTypeInput) (r // type may still be used when calling visibility actions. // // This operation is eventually consistent. The results are best effort and -// may not exactly reflect recent updates and changes. Access Control +// may not exactly reflect recent updates and changes.Access Control // // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. Constrain the following parameters by using a Condition element -// with the appropriate keys. workflowType.name: String constraint. The key -// is swf:workflowType.name. workflowType.version: String constraint. The key -// is swf:workflowType.version. If the caller does not have sufficient permissions -// to invoke the action, or the parameter values fall outside the specified -// constraints, the action fails. The associated event attribute's cause parameter -// will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, -// see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * Constrain the following parameters by using a Condition element with +// the appropriate keys. workflowType.name: String constraint. The key is +// swf:workflowType.name. +// workflowType.version: String constraint. The key is swf:workflowType.version. +// +// If the caller does not have sufficient permissions to invoke the action, +// or the parameter values fall outside the specified constraints, the action +// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. +// For details and example IAM policies, see Using IAM to Manage Access to Amazon +// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -633,15 +644,15 @@ func (c *SWF) DeprecateWorkflowTypeRequest(input *DeprecateWorkflowTypeInput) (r // API operation DeprecateWorkflowType for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * TypeDeprecatedFault +// * ErrCodeTypeDeprecatedFault "TypeDeprecatedFault" // Returned when the specified activity or workflow type was already deprecated. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -676,7 +687,6 @@ const opDescribeActivityType = "DescribeActivityType" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) DescribeActivityTypeRequest(input *DescribeActivityTypeInput) (req *request.Request, output *DescribeActivityTypeOutput) { op := &request.Operation{ Name: opDescribeActivityType, @@ -688,9 +698,8 @@ func (c *SWF) DescribeActivityTypeRequest(input *DescribeActivityTypeInput) (req input = &DescribeActivityTypeInput{} } - req = c.newRequest(op, input, output) output = &DescribeActivityTypeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -705,16 +714,20 @@ func (c *SWF) DescribeActivityTypeRequest(input *DescribeActivityTypeInput) (req // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. Constrain the following parameters by using a Condition element -// with the appropriate keys. activityType.name: String constraint. The key -// is swf:activityType.name. activityType.version: String constraint. The key -// is swf:activityType.version. If the caller does not have sufficient permissions -// to invoke the action, or the parameter values fall outside the specified -// constraints, the action fails. The associated event attribute's cause parameter -// will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, -// see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * Constrain the following parameters by using a Condition element with +// the appropriate keys. activityType.name: String constraint. The key is +// swf:activityType.name. +// activityType.version: String constraint. The key is swf:activityType.version. +// +// If the caller does not have sufficient permissions to invoke the action, +// or the parameter values fall outside the specified constraints, the action +// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. +// For details and example IAM policies, see Using IAM to Manage Access to Amazon +// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -724,12 +737,12 @@ func (c *SWF) DescribeActivityTypeRequest(input *DescribeActivityTypeInput) (req // API operation DescribeActivityType for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -764,7 +777,6 @@ const opDescribeDomain = "DescribeDomain" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) DescribeDomainRequest(input *DescribeDomainInput) (req *request.Request, output *DescribeDomainOutput) { op := &request.Operation{ Name: opDescribeDomain, @@ -776,9 +788,8 @@ func (c *SWF) DescribeDomainRequest(input *DescribeDomainInput) (req *request.Re input = &DescribeDomainInput{} } - req = c.newRequest(op, input, output) output = &DescribeDomainOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -792,10 +803,13 @@ func (c *SWF) DescribeDomainRequest(input *DescribeDomainInput) (req *request.Re // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -809,12 +823,12 @@ func (c *SWF) DescribeDomainRequest(input *DescribeDomainInput) (req *request.Re // API operation DescribeDomain for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -849,7 +863,6 @@ const opDescribeWorkflowExecution = "DescribeWorkflowExecution" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) DescribeWorkflowExecutionRequest(input *DescribeWorkflowExecutionInput) (req *request.Request, output *DescribeWorkflowExecutionOutput) { op := &request.Operation{ Name: opDescribeWorkflowExecution, @@ -861,9 +874,8 @@ func (c *SWF) DescribeWorkflowExecutionRequest(input *DescribeWorkflowExecutionI input = &DescribeWorkflowExecutionInput{} } - req = c.newRequest(op, input, output) output = &DescribeWorkflowExecutionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -873,15 +885,18 @@ func (c *SWF) DescribeWorkflowExecutionRequest(input *DescribeWorkflowExecutionI // type and some statistics. // // This operation is eventually consistent. The results are best effort and -// may not exactly reflect recent updates and changes. Access Control +// may not exactly reflect recent updates and changes.Access Control // // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -895,12 +910,12 @@ func (c *SWF) DescribeWorkflowExecutionRequest(input *DescribeWorkflowExecutionI // API operation DescribeWorkflowExecution for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -935,7 +950,6 @@ const opDescribeWorkflowType = "DescribeWorkflowType" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) DescribeWorkflowTypeRequest(input *DescribeWorkflowTypeInput) (req *request.Request, output *DescribeWorkflowTypeOutput) { op := &request.Operation{ Name: opDescribeWorkflowType, @@ -947,9 +961,8 @@ func (c *SWF) DescribeWorkflowTypeRequest(input *DescribeWorkflowTypeInput) (req input = &DescribeWorkflowTypeInput{} } - req = c.newRequest(op, input, output) output = &DescribeWorkflowTypeOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -964,16 +977,20 @@ func (c *SWF) DescribeWorkflowTypeRequest(input *DescribeWorkflowTypeInput) (req // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. Constrain the following parameters by using a Condition element -// with the appropriate keys. workflowType.name: String constraint. The key -// is swf:workflowType.name. workflowType.version: String constraint. The key -// is swf:workflowType.version. If the caller does not have sufficient permissions -// to invoke the action, or the parameter values fall outside the specified -// constraints, the action fails. The associated event attribute's cause parameter -// will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, -// see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * Constrain the following parameters by using a Condition element with +// the appropriate keys. workflowType.name: String constraint. The key is +// swf:workflowType.name. +// workflowType.version: String constraint. The key is swf:workflowType.version. +// +// If the caller does not have sufficient permissions to invoke the action, +// or the parameter values fall outside the specified constraints, the action +// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. +// For details and example IAM policies, see Using IAM to Manage Access to Amazon +// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -983,12 +1000,12 @@ func (c *SWF) DescribeWorkflowTypeRequest(input *DescribeWorkflowTypeInput) (req // API operation DescribeWorkflowType for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -1023,7 +1040,6 @@ const opGetWorkflowExecutionHistory = "GetWorkflowExecutionHistory" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) GetWorkflowExecutionHistoryRequest(input *GetWorkflowExecutionHistoryInput) (req *request.Request, output *GetWorkflowExecutionHistoryOutput) { op := &request.Operation{ Name: opGetWorkflowExecutionHistory, @@ -1041,9 +1057,8 @@ func (c *SWF) GetWorkflowExecutionHistoryRequest(input *GetWorkflowExecutionHist input = &GetWorkflowExecutionHistoryInput{} } - req = c.newRequest(op, input, output) output = &GetWorkflowExecutionHistoryOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1054,15 +1069,18 @@ func (c *SWF) GetWorkflowExecutionHistoryRequest(input *GetWorkflowExecutionHist // again using the nextPageToken returned by the initial call. // // This operation is eventually consistent. The results are best effort and -// may not exactly reflect recent updates and changes. Access Control +// may not exactly reflect recent updates and changes.Access Control // // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -1076,12 +1094,12 @@ func (c *SWF) GetWorkflowExecutionHistoryRequest(input *GetWorkflowExecutionHist // API operation GetWorkflowExecutionHistory for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -1141,7 +1159,6 @@ const opListActivityTypes = "ListActivityTypes" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) ListActivityTypesRequest(input *ListActivityTypesInput) (req *request.Request, output *ListActivityTypesOutput) { op := &request.Operation{ Name: opListActivityTypes, @@ -1159,9 +1176,8 @@ func (c *SWF) ListActivityTypesRequest(input *ListActivityTypesInput) (req *requ input = &ListActivityTypesInput{} } - req = c.newRequest(op, input, output) output = &ListActivityTypesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1178,10 +1194,13 @@ func (c *SWF) ListActivityTypesRequest(input *ListActivityTypesInput) (req *requ // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -1195,11 +1214,11 @@ func (c *SWF) ListActivityTypesRequest(input *ListActivityTypesInput) (req *requ // API operation ListActivityTypes for usage and error information. // // Returned Error Codes: -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. @@ -1260,7 +1279,6 @@ const opListClosedWorkflowExecutions = "ListClosedWorkflowExecutions" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) ListClosedWorkflowExecutionsRequest(input *ListClosedWorkflowExecutionsInput) (req *request.Request, output *WorkflowExecutionInfos) { op := &request.Operation{ Name: opListClosedWorkflowExecutions, @@ -1278,9 +1296,8 @@ func (c *SWF) ListClosedWorkflowExecutionsRequest(input *ListClosedWorkflowExecu input = &ListClosedWorkflowExecutionsInput{} } - req = c.newRequest(op, input, output) output = &WorkflowExecutionInfos{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1292,18 +1309,22 @@ func (c *SWF) ListClosedWorkflowExecutionsRequest(input *ListClosedWorkflowExecu // returned by the initial call. // // This operation is eventually consistent. The results are best effort and -// may not exactly reflect recent updates and changes. Access Control +// may not exactly reflect recent updates and changes.Access Control // // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. Constrain the following parameters by using a Condition element -// with the appropriate keys. tagFilter.tag: String constraint. The key is -// swf:tagFilter.tag. typeFilter.name: String constraint. The key is swf:typeFilter.name. +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * Constrain the following parameters by using a Condition element with +// the appropriate keys. tagFilter.tag: String constraint. The key is swf:tagFilter.tag. +// +// typeFilter.name: String constraint. The key is swf:typeFilter.name. // typeFilter.version: String constraint. The key is swf:typeFilter.version. -// If the caller does not have sufficient permissions to invoke the action, +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -1317,12 +1338,12 @@ func (c *SWF) ListClosedWorkflowExecutionsRequest(input *ListClosedWorkflowExecu // API operation ListClosedWorkflowExecutions for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -1382,7 +1403,6 @@ const opListDomains = "ListDomains" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) ListDomainsRequest(input *ListDomainsInput) (req *request.Request, output *ListDomainsOutput) { op := &request.Operation{ Name: opListDomains, @@ -1400,9 +1420,8 @@ func (c *SWF) ListDomainsRequest(input *ListDomainsInput) (req *request.Request, input = &ListDomainsInput{} } - req = c.newRequest(op, input, output) output = &ListDomainsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1412,21 +1431,24 @@ func (c *SWF) ListDomainsRequest(input *ListDomainsInput) (req *request.Request, // split into multiple pages. To retrieve subsequent pages, make the call again // using the nextPageToken returned by the initial call. // -// This operation is eventually consistent. The results are best effort and -// may not exactly reflect recent updates and changes. Access Control +// This operation is eventually consistent. The results are best effort and +// may not exactly reflect recent updates and changes.Access Control // // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. The element must be set to arn:aws:swf::AccountID:domain/*, -// where AccountID is the account ID, with no dashes. Use an Action element -// to allow or deny permission to call this action. You cannot use an IAM policy -// to constrain this action's parameters. If the caller does not have sufficient -// permissions to invoke the action, or the parameter values fall outside the -// specified constraints, the action fails. The associated event attribute's -// cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example -// IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// * Use a Resource element with the domain name to limit the action to only +// specified domains. The element must be set to arn:aws:swf::AccountID:domain/*, +// where AccountID is the account ID, with no dashes. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, +// or the parameter values fall outside the specified constraints, the action +// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. +// For details and example IAM policies, see Using IAM to Manage Access to Amazon +// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1436,7 +1458,7 @@ func (c *SWF) ListDomainsRequest(input *ListDomainsInput) (req *request.Request, // API operation ListDomains for usage and error information. // // Returned Error Codes: -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -1496,7 +1518,6 @@ const opListOpenWorkflowExecutions = "ListOpenWorkflowExecutions" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) ListOpenWorkflowExecutionsRequest(input *ListOpenWorkflowExecutionsInput) (req *request.Request, output *WorkflowExecutionInfos) { op := &request.Operation{ Name: opListOpenWorkflowExecutions, @@ -1514,9 +1535,8 @@ func (c *SWF) ListOpenWorkflowExecutionsRequest(input *ListOpenWorkflowExecution input = &ListOpenWorkflowExecutionsInput{} } - req = c.newRequest(op, input, output) output = &WorkflowExecutionInfos{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1527,19 +1547,23 @@ func (c *SWF) ListOpenWorkflowExecutionsRequest(input *ListOpenWorkflowExecution // retrieve subsequent pages, make the call again using the nextPageToken returned // by the initial call. // -// This operation is eventually consistent. The results are best effort and -// may not exactly reflect recent updates and changes. Access Control +// This operation is eventually consistent. The results are best effort and +// may not exactly reflect recent updates and changes.Access Control // // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. Constrain the following parameters by using a Condition element -// with the appropriate keys. tagFilter.tag: String constraint. The key is -// swf:tagFilter.tag. typeFilter.name: String constraint. The key is swf:typeFilter.name. +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * Constrain the following parameters by using a Condition element with +// the appropriate keys. tagFilter.tag: String constraint. The key is swf:tagFilter.tag. +// +// typeFilter.name: String constraint. The key is swf:typeFilter.name. // typeFilter.version: String constraint. The key is swf:typeFilter.version. -// If the caller does not have sufficient permissions to invoke the action, +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -1553,12 +1577,12 @@ func (c *SWF) ListOpenWorkflowExecutionsRequest(input *ListOpenWorkflowExecution // API operation ListOpenWorkflowExecutions for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -1618,7 +1642,6 @@ const opListWorkflowTypes = "ListWorkflowTypes" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) ListWorkflowTypesRequest(input *ListWorkflowTypesInput) (req *request.Request, output *ListWorkflowTypesOutput) { op := &request.Operation{ Name: opListWorkflowTypes, @@ -1636,9 +1659,8 @@ func (c *SWF) ListWorkflowTypesRequest(input *ListWorkflowTypesInput) (req *requ input = &ListWorkflowTypesInput{} } - req = c.newRequest(op, input, output) output = &ListWorkflowTypesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1653,10 +1675,13 @@ func (c *SWF) ListWorkflowTypesRequest(input *ListWorkflowTypesInput) (req *requ // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -1670,11 +1695,11 @@ func (c *SWF) ListWorkflowTypesRequest(input *ListWorkflowTypesInput) (req *requ // API operation ListWorkflowTypes for usage and error information. // // Returned Error Codes: -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. @@ -1735,7 +1760,6 @@ const opPollForActivityTask = "PollForActivityTask" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) PollForActivityTaskRequest(input *PollForActivityTaskInput) (req *request.Request, output *PollForActivityTaskOutput) { op := &request.Operation{ Name: opPollForActivityTask, @@ -1747,9 +1771,8 @@ func (c *SWF) PollForActivityTaskRequest(input *PollForActivityTaskInput) (req * input = &PollForActivityTaskInput{} } - req = c.newRequest(op, input, output) output = &PollForActivityTaskOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1765,21 +1788,23 @@ func (c *SWF) PollForActivityTaskRequest(input *PollForActivityTaskInput) (req * // use its type to identify and process it correctly. // // Workers should set their client side socket timeout to at least 70 seconds -// (10 seconds higher than the maximum time service may hold the poll request). -// Access Control +// (10 seconds higher than the maximum time service may hold the poll request).Access Control // // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. Constrain the taskList.name parameter by using a Condition element -// with the swf:taskList.name key to allow the action to access only certain -// task lists. If the caller does not have sufficient permissions to invoke -// the action, or the parameter values fall outside the specified constraints, -// the action fails. The associated event attribute's cause parameter will be -// set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see -// Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * Constrain the taskList.name parameter by using a Condition element with +// the swf:taskList.name key to allow the action to access only certain task +// lists. +// If the caller does not have sufficient permissions to invoke the action, +// or the parameter values fall outside the specified constraints, the action +// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. +// For details and example IAM policies, see Using IAM to Manage Access to Amazon +// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1789,16 +1814,16 @@ func (c *SWF) PollForActivityTaskRequest(input *PollForActivityTaskInput) (req * // API operation PollForActivityTask for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // -// * LimitExceededFault +// * ErrCodeLimitExceededFault "LimitExceededFault" // Returned by any operation if a system imposed limitation has been reached. // To address this fault you should either clean up unused resources or increase // the limit by contacting AWS. @@ -1834,7 +1859,6 @@ const opPollForDecisionTask = "PollForDecisionTask" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) PollForDecisionTaskRequest(input *PollForDecisionTaskInput) (req *request.Request, output *PollForDecisionTaskOutput) { op := &request.Operation{ Name: opPollForDecisionTask, @@ -1852,9 +1876,8 @@ func (c *SWF) PollForDecisionTaskRequest(input *PollForDecisionTaskInput) (req * input = &PollForDecisionTaskInput{} } - req = c.newRequest(op, input, output) output = &PollForDecisionTaskOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1873,26 +1896,28 @@ func (c *SWF) PollForDecisionTaskRequest(input *PollForDecisionTaskInput) (req * // a DecisionTask is returned, but that the value of taskToken is an empty string. // // Deciders should set their client-side socket timeout to at least 70 seconds -// (10 seconds higher than the timeout). Because the number of workflow history -// events for a single workflow execution might be very large, the result returned -// might be split up across a number of pages. To retrieve subsequent pages, -// make additional calls to PollForDecisionTask using the nextPageToken returned -// by the initial call. Note that you do not call GetWorkflowExecutionHistory -// with this nextPageToken. Instead, call PollForDecisionTask again. Access -// Control +// (10 seconds higher than the timeout).Because the number of workflow history events for a single workflow execution +// might be very large, the result returned might be split up across a number +// of pages. To retrieve subsequent pages, make additional calls to PollForDecisionTask +// using the nextPageToken returned by the initial call. Note that you do not +// call GetWorkflowExecutionHistory with this nextPageToken. Instead, call PollForDecisionTask +// again.Access Control // // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. Constrain the taskList.name parameter by using a Condition element -// with the swf:taskList.name key to allow the action to access only certain -// task lists. If the caller does not have sufficient permissions to invoke -// the action, or the parameter values fall outside the specified constraints, -// the action fails. The associated event attribute's cause parameter will be -// set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see -// Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * Constrain the taskList.name parameter by using a Condition element with +// the swf:taskList.name key to allow the action to access only certain task +// lists. +// If the caller does not have sufficient permissions to invoke the action, +// or the parameter values fall outside the specified constraints, the action +// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. +// For details and example IAM policies, see Using IAM to Manage Access to Amazon +// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1902,16 +1927,16 @@ func (c *SWF) PollForDecisionTaskRequest(input *PollForDecisionTaskInput) (req * // API operation PollForDecisionTask for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // -// * LimitExceededFault +// * ErrCodeLimitExceededFault "LimitExceededFault" // Returned by any operation if a system imposed limitation has been reached. // To address this fault you should either clean up unused resources or increase // the limit by contacting AWS. @@ -1972,7 +1997,6 @@ const opRecordActivityTaskHeartbeat = "RecordActivityTaskHeartbeat" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) RecordActivityTaskHeartbeatRequest(input *RecordActivityTaskHeartbeatInput) (req *request.Request, output *RecordActivityTaskHeartbeatOutput) { op := &request.Operation{ Name: opRecordActivityTaskHeartbeat, @@ -1984,9 +2008,8 @@ func (c *SWF) RecordActivityTaskHeartbeatRequest(input *RecordActivityTaskHeartb input = &RecordActivityTaskHeartbeatInput{} } - req = c.newRequest(op, input, output) output = &RecordActivityTaskHeartbeatOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2008,22 +2031,23 @@ func (c *SWF) RecordActivityTaskHeartbeatRequest(input *RecordActivityTaskHeartb // contain a ActivityTaskTimedOut event that contains the information from the // last heartbeat generated by the activity worker. // -// The taskStartToCloseTimeout of an activity type is the maximum duration -// of an activity task, regardless of the number of RecordActivityTaskHeartbeat -// requests received. The taskStartToCloseTimeout is also specified in RegisterActivityType. -// This operation is only useful for long-lived activities to report liveliness -// of the task and to determine if a cancellation is being attempted. If the -// cancelRequested flag returns true, a cancellation is being attempted. If -// the worker can cancel the activity, it should respond with RespondActivityTaskCanceled. -// Otherwise, it should ignore the cancellation request. Access Control +// The taskStartToCloseTimeout of an activity type is the maximum duration of +// an activity task, regardless of the number of RecordActivityTaskHeartbeat +// requests received. The taskStartToCloseTimeout is also specified in RegisterActivityType.This operation is only useful for long-lived activities to report liveliness +// of the task and to determine if a cancellation is being attempted. If the cancelRequested flag returns true, a cancellation is being attempted. +// If the worker can cancel the activity, it should respond with RespondActivityTaskCanceled. +// Otherwise, it should ignore the cancellation request.Access Control // // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -2037,12 +2061,12 @@ func (c *SWF) RecordActivityTaskHeartbeatRequest(input *RecordActivityTaskHeartb // API operation RecordActivityTaskHeartbeat for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -2077,7 +2101,6 @@ const opRegisterActivityType = "RegisterActivityType" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) RegisterActivityTypeRequest(input *RegisterActivityTypeInput) (req *request.Request, output *RegisterActivityTypeOutput) { op := &request.Operation{ Name: opRegisterActivityType, @@ -2089,11 +2112,10 @@ func (c *SWF) RegisterActivityTypeRequest(input *RegisterActivityTypeInput) (req input = &RegisterActivityTypeInput{} } + output = &RegisterActivityTypeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RegisterActivityTypeOutput{} - req.Data = output return } @@ -2102,22 +2124,26 @@ func (c *SWF) RegisterActivityTypeRequest(input *RegisterActivityTypeInput) (req // Registers a new activity type along with its configuration settings in the // specified domain. // -// A TypeAlreadyExists fault is returned if the type already exists in the -// domain. You cannot change any configuration settings of the type after its -// registration, and it must be registered as a new version. Access Control +// A TypeAlreadyExists fault is returned if the type already exists in the domain. +// You cannot change any configuration settings of the type after its registration, +// and it must be registered as a new version.Access Control // // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. Constrain the following parameters by using a Condition element -// with the appropriate keys. defaultTaskList.name: String constraint. The -// key is swf:defaultTaskList.name. name: String constraint. The key is swf:name. -// version: String constraint. The key is swf:version. If the caller does -// not have sufficient permissions to invoke the action, or the parameter values -// fall outside the specified constraints, the action fails. The associated -// event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * Constrain the following parameters by using a Condition element with +// the appropriate keys. defaultTaskList.name: String constraint. The key +// is swf:defaultTaskList.name. +// name: String constraint. The key is swf:name. +// version: String constraint. The key is swf:version. +// +// If the caller does not have sufficient permissions to invoke the action, +// or the parameter values fall outside the specified constraints, the action +// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // @@ -2129,23 +2155,23 @@ func (c *SWF) RegisterActivityTypeRequest(input *RegisterActivityTypeInput) (req // API operation RegisterActivityType for usage and error information. // // Returned Error Codes: -// * TypeAlreadyExistsFault +// * ErrCodeTypeAlreadyExistsFault "TypeAlreadyExistsFault" // Returned if the type already exists in the specified domain. You will get // this fault even if the existing type is in deprecated status. You can specify // another version if the intent is to create a new distinct version of the // type. // -// * LimitExceededFault +// * ErrCodeLimitExceededFault "LimitExceededFault" // Returned by any operation if a system imposed limitation has been reached. // To address this fault you should either clean up unused resources or increase // the limit by contacting AWS. // -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -2180,7 +2206,6 @@ const opRegisterDomain = "RegisterDomain" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) RegisterDomainRequest(input *RegisterDomainInput) (req *request.Request, output *RegisterDomainOutput) { op := &request.Operation{ Name: opRegisterDomain, @@ -2192,11 +2217,10 @@ func (c *SWF) RegisterDomainRequest(input *RegisterDomainInput) (req *request.Re input = &RegisterDomainInput{} } + output = &RegisterDomainOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RegisterDomainOutput{} - req.Data = output return } @@ -2209,13 +2233,16 @@ func (c *SWF) RegisterDomainRequest(input *RegisterDomainInput) (req *request.Re // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// You cannot use an IAM policy to control domain access for this action. -// The name of the domain being registered is available as the resource of this -// action. Use an Action element to allow or deny permission to call this action. -// You cannot use an IAM policy to constrain this action's parameters. If the -// caller does not have sufficient permissions to invoke the action, or the -// parameter values fall outside the specified constraints, the action fails. -// The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. +// * You cannot use an IAM policy to control domain access for this action. +// The name of the domain being registered is available as the resource of +// this action. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, +// or the parameter values fall outside the specified constraints, the action +// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // @@ -2227,16 +2254,16 @@ func (c *SWF) RegisterDomainRequest(input *RegisterDomainInput) (req *request.Re // API operation RegisterDomain for usage and error information. // // Returned Error Codes: -// * DomainAlreadyExistsFault +// * ErrCodeDomainAlreadyExistsFault "DomainAlreadyExistsFault" // Returned if the specified domain already exists. You will get this fault // even if the existing domain is in deprecated status. // -// * LimitExceededFault +// * ErrCodeLimitExceededFault "LimitExceededFault" // Returned by any operation if a system imposed limitation has been reached. // To address this fault you should either clean up unused resources or increase // the limit by contacting AWS. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -2271,7 +2298,6 @@ const opRegisterWorkflowType = "RegisterWorkflowType" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) RegisterWorkflowTypeRequest(input *RegisterWorkflowTypeInput) (req *request.Request, output *RegisterWorkflowTypeOutput) { op := &request.Operation{ Name: opRegisterWorkflowType, @@ -2283,11 +2309,10 @@ func (c *SWF) RegisterWorkflowTypeRequest(input *RegisterWorkflowTypeInput) (req input = &RegisterWorkflowTypeInput{} } + output = &RegisterWorkflowTypeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RegisterWorkflowTypeOutput{} - req.Data = output return } @@ -2299,22 +2324,26 @@ func (c *SWF) RegisterWorkflowTypeRequest(input *RegisterWorkflowTypeInput) (req // The retention period for the workflow history is set by the RegisterDomain // action. // -// If the type already exists, then a TypeAlreadyExists fault is returned. -// You cannot change the configuration settings of a workflow type once it is -// registered and it must be registered as a new version. Access Control +// If the type already exists, then a TypeAlreadyExists fault is returned. You +// cannot change the configuration settings of a workflow type once it is registered +// and it must be registered as a new version.Access Control // // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. Constrain the following parameters by using a Condition element -// with the appropriate keys. defaultTaskList.name: String constraint. The -// key is swf:defaultTaskList.name. name: String constraint. The key is swf:name. -// version: String constraint. The key is swf:version. If the caller does -// not have sufficient permissions to invoke the action, or the parameter values -// fall outside the specified constraints, the action fails. The associated -// event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * Constrain the following parameters by using a Condition element with +// the appropriate keys. defaultTaskList.name: String constraint. The key +// is swf:defaultTaskList.name. +// name: String constraint. The key is swf:name. +// version: String constraint. The key is swf:version. +// +// If the caller does not have sufficient permissions to invoke the action, +// or the parameter values fall outside the specified constraints, the action +// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // @@ -2326,23 +2355,23 @@ func (c *SWF) RegisterWorkflowTypeRequest(input *RegisterWorkflowTypeInput) (req // API operation RegisterWorkflowType for usage and error information. // // Returned Error Codes: -// * TypeAlreadyExistsFault +// * ErrCodeTypeAlreadyExistsFault "TypeAlreadyExistsFault" // Returned if the type already exists in the specified domain. You will get // this fault even if the existing type is in deprecated status. You can specify // another version if the intent is to create a new distinct version of the // type. // -// * LimitExceededFault +// * ErrCodeLimitExceededFault "LimitExceededFault" // Returned by any operation if a system imposed limitation has been reached. // To address this fault you should either clean up unused resources or increase // the limit by contacting AWS. // -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -2377,7 +2406,6 @@ const opRequestCancelWorkflowExecution = "RequestCancelWorkflowExecution" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) RequestCancelWorkflowExecutionRequest(input *RequestCancelWorkflowExecutionInput) (req *request.Request, output *RequestCancelWorkflowExecutionOutput) { op := &request.Operation{ Name: opRequestCancelWorkflowExecution, @@ -2389,11 +2417,10 @@ func (c *SWF) RequestCancelWorkflowExecutionRequest(input *RequestCancelWorkflow input = &RequestCancelWorkflowExecutionInput{} } + output = &RequestCancelWorkflowExecutionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RequestCancelWorkflowExecutionOutput{} - req.Data = output return } @@ -2407,17 +2434,19 @@ func (c *SWF) RequestCancelWorkflowExecutionRequest(input *RequestCancelWorkflow // // If the runId is not specified, the WorkflowExecutionCancelRequested event // is recorded in the history of the current open workflow execution with the -// specified workflowId in the domain. Because this action allows the workflow -// to properly clean up and gracefully close, it should be used instead of TerminateWorkflowExecution -// when possible. Access Control +// specified workflowId in the domain.Because this action allows the workflow to properly clean up and gracefully +// close, it should be used instead of TerminateWorkflowExecution when possible.Access Control // // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -2431,12 +2460,12 @@ func (c *SWF) RequestCancelWorkflowExecutionRequest(input *RequestCancelWorkflow // API operation RequestCancelWorkflowExecution for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -2471,7 +2500,6 @@ const opRespondActivityTaskCanceled = "RespondActivityTaskCanceled" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) RespondActivityTaskCanceledRequest(input *RespondActivityTaskCanceledInput) (req *request.Request, output *RespondActivityTaskCanceledOutput) { op := &request.Operation{ Name: opRespondActivityTaskCanceled, @@ -2483,11 +2511,10 @@ func (c *SWF) RespondActivityTaskCanceledRequest(input *RespondActivityTaskCance input = &RespondActivityTaskCanceledInput{} } + output = &RespondActivityTaskCanceledOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RespondActivityTaskCanceledOutput{} - req.Data = output return } @@ -2501,8 +2528,7 @@ func (c *SWF) RespondActivityTaskCanceledRequest(input *RespondActivityTaskCance // to the workflow history. // // Only use this operation if the canceled flag of a RecordActivityTaskHeartbeat -// request returns true and if the activity can be safely undone or abandoned. -// A task is considered open from the time that it is scheduled until it is +// request returns true and if the activity can be safely undone or abandoned.A task is considered open from the time that it is scheduled until it is // closed. Therefore a task is reported as open while a worker is processing // it. A task is closed after it has been specified in a call to RespondActivityTaskCompleted, // RespondActivityTaskCanceled, RespondActivityTaskFailed, or the task has timed @@ -2513,10 +2539,13 @@ func (c *SWF) RespondActivityTaskCanceledRequest(input *RespondActivityTaskCance // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -2530,12 +2559,12 @@ func (c *SWF) RespondActivityTaskCanceledRequest(input *RespondActivityTaskCance // API operation RespondActivityTaskCanceled for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -2570,7 +2599,6 @@ const opRespondActivityTaskCompleted = "RespondActivityTaskCompleted" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) RespondActivityTaskCompletedRequest(input *RespondActivityTaskCompletedInput) (req *request.Request, output *RespondActivityTaskCompletedOutput) { op := &request.Operation{ Name: opRespondActivityTaskCompleted, @@ -2582,11 +2610,10 @@ func (c *SWF) RespondActivityTaskCompletedRequest(input *RespondActivityTaskComp input = &RespondActivityTaskCompletedInput{} } + output = &RespondActivityTaskCompletedOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RespondActivityTaskCompletedOutput{} - req.Data = output return } @@ -2596,24 +2623,27 @@ func (c *SWF) RespondActivityTaskCompletedRequest(input *RespondActivityTaskComp // taskToken completed successfully with a result (if provided). The result // appears in the ActivityTaskCompleted event in the workflow history. // -// If the requested task does not complete successfully, use RespondActivityTaskFailed +// If the requested task does not complete successfully, use RespondActivityTaskFailed // instead. If the worker finds that the task is canceled through the canceled // flag returned by RecordActivityTaskHeartbeat, it should cancel the task, -// clean up and then call RespondActivityTaskCanceled. A task is considered -// open from the time that it is scheduled until it is closed. Therefore a task -// is reported as open while a worker is processing it. A task is closed after -// it has been specified in a call to RespondActivityTaskCompleted, RespondActivityTaskCanceled, -// RespondActivityTaskFailed, or the task has timed out (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types). +// clean up and then call RespondActivityTaskCanceled.A task is considered open from the time that it is scheduled until it is +// closed. Therefore a task is reported as open while a worker is processing +// it. A task is closed after it has been specified in a call to RespondActivityTaskCompleted, +// RespondActivityTaskCanceled, RespondActivityTaskFailed, or the task has timed +// out (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types). // // Access Control // // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -2627,12 +2657,12 @@ func (c *SWF) RespondActivityTaskCompletedRequest(input *RespondActivityTaskComp // API operation RespondActivityTaskCompleted for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -2667,7 +2697,6 @@ const opRespondActivityTaskFailed = "RespondActivityTaskFailed" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) RespondActivityTaskFailedRequest(input *RespondActivityTaskFailedInput) (req *request.Request, output *RespondActivityTaskFailedOutput) { op := &request.Operation{ Name: opRespondActivityTaskFailed, @@ -2679,11 +2708,10 @@ func (c *SWF) RespondActivityTaskFailedRequest(input *RespondActivityTaskFailedI input = &RespondActivityTaskFailedInput{} } + output = &RespondActivityTaskFailedOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RespondActivityTaskFailedOutput{} - req.Data = output return } @@ -2704,10 +2732,13 @@ func (c *SWF) RespondActivityTaskFailedRequest(input *RespondActivityTaskFailedI // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -2721,12 +2752,12 @@ func (c *SWF) RespondActivityTaskFailedRequest(input *RespondActivityTaskFailedI // API operation RespondActivityTaskFailed for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -2761,7 +2792,6 @@ const opRespondDecisionTaskCompleted = "RespondDecisionTaskCompleted" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) RespondDecisionTaskCompletedRequest(input *RespondDecisionTaskCompletedInput) (req *request.Request, output *RespondDecisionTaskCompletedOutput) { op := &request.Operation{ Name: opRespondDecisionTaskCompleted, @@ -2773,11 +2803,10 @@ func (c *SWF) RespondDecisionTaskCompletedRequest(input *RespondDecisionTaskComp input = &RespondDecisionTaskCompletedInput{} } + output = &RespondDecisionTaskCompletedOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RespondDecisionTaskCompletedOutput{} - req.Data = output return } @@ -2792,8 +2821,8 @@ func (c *SWF) RespondDecisionTaskCompletedRequest(input *RespondDecisionTaskComp // // Access Control // -// If an IAM policy grants permission to use RespondDecisionTaskCompleted, -// it can express permissions for the list of decisions in the decisions parameter. +// If an IAM policy grants permission to use RespondDecisionTaskCompleted, it +// can express permissions for the list of decisions in the decisions parameter. // Each of the decisions has one or more parameters, much like a regular API // call. To allow for policies to be as readable as possible, you can express // permissions on decisions as if they were actual API calls, including applying @@ -2808,12 +2837,12 @@ func (c *SWF) RespondDecisionTaskCompletedRequest(input *RespondDecisionTaskComp // API operation RespondDecisionTaskCompleted for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -2848,7 +2877,6 @@ const opSignalWorkflowExecution = "SignalWorkflowExecution" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) SignalWorkflowExecutionRequest(input *SignalWorkflowExecutionInput) (req *request.Request, output *SignalWorkflowExecutionOutput) { op := &request.Operation{ Name: opSignalWorkflowExecution, @@ -2860,11 +2888,10 @@ func (c *SWF) SignalWorkflowExecutionRequest(input *SignalWorkflowExecutionInput input = &SignalWorkflowExecutionInput{} } + output = &SignalWorkflowExecutionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SignalWorkflowExecutionOutput{} - req.Data = output return } @@ -2875,18 +2902,20 @@ func (c *SWF) SignalWorkflowExecutionRequest(input *SignalWorkflowExecutionInput // given domain, workflowId and runId. The event is recorded with the specified // user defined signalName and input (if provided). // -// If a runId is not specified, then the WorkflowExecutionSignaled event is +// If a runId is not specified, then the WorkflowExecutionSignaled event is // recorded in the history of the current open workflow with the matching workflowId -// in the domain. If the specified workflow execution is not open, this method -// fails with UnknownResource. Access Control +// in the domain.If the specified workflow execution is not open, this method fails with UnknownResource.Access Control // // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -2900,12 +2929,12 @@ func (c *SWF) SignalWorkflowExecutionRequest(input *SignalWorkflowExecutionInput // API operation SignalWorkflowExecution for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -2940,7 +2969,6 @@ const opStartWorkflowExecution = "StartWorkflowExecution" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) StartWorkflowExecutionRequest(input *StartWorkflowExecutionInput) (req *request.Request, output *StartWorkflowExecutionOutput) { op := &request.Operation{ Name: opStartWorkflowExecution, @@ -2952,9 +2980,8 @@ func (c *SWF) StartWorkflowExecutionRequest(input *StartWorkflowExecutionInput) input = &StartWorkflowExecutionInput{} } - req = c.newRequest(op, input, output) output = &StartWorkflowExecutionOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2970,20 +2997,26 @@ func (c *SWF) StartWorkflowExecutionRequest(input *StartWorkflowExecutionInput) // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. Constrain the following parameters by using a Condition element -// with the appropriate keys. tagList.member.0: The key is swf:tagList.member.0. -// tagList.member.1: The key is swf:tagList.member.1. tagList.member.2: The -// key is swf:tagList.member.2. tagList.member.3: The key is swf:tagList.member.3. -// tagList.member.4: The key is swf:tagList.member.4. taskList: String constraint. -// The key is swf:taskList.name. workflowType.name: String constraint. The key -// is swf:workflowType.name. workflowType.version: String constraint. The key -// is swf:workflowType.version. If the caller does not have sufficient permissions -// to invoke the action, or the parameter values fall outside the specified -// constraints, the action fails. The associated event attribute's cause parameter -// will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, -// see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * Constrain the following parameters by using a Condition element with +// the appropriate keys. tagList.member.0: The key is swf:tagList.member.0. +// +// tagList.member.1: The key is swf:tagList.member.1. +// tagList.member.2: The key is swf:tagList.member.2. +// tagList.member.3: The key is swf:tagList.member.3. +// tagList.member.4: The key is swf:tagList.member.4. +// taskList: String constraint. The key is swf:taskList.name. +// workflowType.name: String constraint. The key is swf:workflowType.name. +// workflowType.version: String constraint. The key is swf:workflowType.version. +// +// If the caller does not have sufficient permissions to invoke the action, +// or the parameter values fall outside the specified constraints, the action +// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. +// For details and example IAM policies, see Using IAM to Manage Access to Amazon +// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2993,29 +3026,28 @@ func (c *SWF) StartWorkflowExecutionRequest(input *StartWorkflowExecutionInput) // API operation StartWorkflowExecution for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * TypeDeprecatedFault +// * ErrCodeTypeDeprecatedFault "TypeDeprecatedFault" // Returned when the specified activity or workflow type was already deprecated. // -// * WorkflowExecutionAlreadyStartedFault +// * ErrCodeWorkflowExecutionAlreadyStartedFault "WorkflowExecutionAlreadyStartedFault" // Returned by StartWorkflowExecution when an open execution with the same workflowId // is already running in the specified domain. // -// * LimitExceededFault +// * ErrCodeLimitExceededFault "LimitExceededFault" // Returned by any operation if a system imposed limitation has been reached. // To address this fault you should either clean up unused resources or increase // the limit by contacting AWS. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // -// * DefaultUndefinedFault - +// * ErrCodeDefaultUndefinedFault "DefaultUndefinedFault" // func (c *SWF) StartWorkflowExecution(input *StartWorkflowExecutionInput) (*StartWorkflowExecutionOutput, error) { req, out := c.StartWorkflowExecutionRequest(input) @@ -3048,7 +3080,6 @@ const opTerminateWorkflowExecution = "TerminateWorkflowExecution" // if err == nil { // resp is now filled // fmt.Println(resp) // } -// func (c *SWF) TerminateWorkflowExecutionRequest(input *TerminateWorkflowExecutionInput) (req *request.Request, output *TerminateWorkflowExecutionOutput) { op := &request.Operation{ Name: opTerminateWorkflowExecution, @@ -3060,11 +3091,10 @@ func (c *SWF) TerminateWorkflowExecutionRequest(input *TerminateWorkflowExecutio input = &TerminateWorkflowExecutionInput{} } + output = &TerminateWorkflowExecutionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &TerminateWorkflowExecutionOutput{} - req.Data = output return } @@ -3076,20 +3106,22 @@ func (c *SWF) TerminateWorkflowExecutionRequest(input *TerminateWorkflowExecutio // execution, is applied to any open child workflow executions of this workflow // execution. // -// If the identified workflow execution was in progress, it is terminated -// immediately. If a runId is not specified, then the WorkflowExecutionTerminated -// event is recorded in the history of the current open workflow with the matching -// workflowId in the domain. You should consider using RequestCancelWorkflowExecution -// action instead because it allows the workflow to gracefully close while TerminateWorkflowExecution -// does not. Access Control +// If the identified workflow execution was in progress, it is terminated immediately.If a runId is not specified, then the WorkflowExecutionTerminated event is +// recorded in the history of the current open workflow with the matching workflowId +// in the domain.You should consider using RequestCancelWorkflowExecution action instead because +// it allows the workflow to gracefully close while TerminateWorkflowExecution +// does not.Access Control // // You can use IAM policies to control this action's access to Amazon SWF resources // as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -3103,12 +3135,12 @@ func (c *SWF) TerminateWorkflowExecutionRequest(input *TerminateWorkflowExecutio // API operation TerminateWorkflowExecution for usage and error information. // // Returned Error Codes: -// * UnknownResourceFault +// * ErrCodeUnknownResourceFault "UnknownResourceFault" // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * OperationNotPermittedFault +// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" // Returned when the caller does not have sufficient permissions to invoke the // action. // @@ -3146,6 +3178,18 @@ func (s ActivityTaskCancelRequestedEventAttributes) GoString() string { return s.String() } +// SetActivityId sets the ActivityId field's value. +func (s *ActivityTaskCancelRequestedEventAttributes) SetActivityId(v string) *ActivityTaskCancelRequestedEventAttributes { + s.ActivityId = &v + return s +} + +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *ActivityTaskCancelRequestedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *ActivityTaskCancelRequestedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + // Provides details of the ActivityTaskCanceled event. type ActivityTaskCanceledEventAttributes struct { _ struct{} `type:"structure"` @@ -3183,6 +3227,30 @@ func (s ActivityTaskCanceledEventAttributes) GoString() string { return s.String() } +// SetDetails sets the Details field's value. +func (s *ActivityTaskCanceledEventAttributes) SetDetails(v string) *ActivityTaskCanceledEventAttributes { + s.Details = &v + return s +} + +// SetLatestCancelRequestedEventId sets the LatestCancelRequestedEventId field's value. +func (s *ActivityTaskCanceledEventAttributes) SetLatestCancelRequestedEventId(v int64) *ActivityTaskCanceledEventAttributes { + s.LatestCancelRequestedEventId = &v + return s +} + +// SetScheduledEventId sets the ScheduledEventId field's value. +func (s *ActivityTaskCanceledEventAttributes) SetScheduledEventId(v int64) *ActivityTaskCanceledEventAttributes { + s.ScheduledEventId = &v + return s +} + +// SetStartedEventId sets the StartedEventId field's value. +func (s *ActivityTaskCanceledEventAttributes) SetStartedEventId(v int64) *ActivityTaskCanceledEventAttributes { + s.StartedEventId = &v + return s +} + // Provides details of the ActivityTaskCompleted event. type ActivityTaskCompletedEventAttributes struct { _ struct{} `type:"structure"` @@ -3215,6 +3283,24 @@ func (s ActivityTaskCompletedEventAttributes) GoString() string { return s.String() } +// SetResult sets the Result field's value. +func (s *ActivityTaskCompletedEventAttributes) SetResult(v string) *ActivityTaskCompletedEventAttributes { + s.Result = &v + return s +} + +// SetScheduledEventId sets the ScheduledEventId field's value. +func (s *ActivityTaskCompletedEventAttributes) SetScheduledEventId(v int64) *ActivityTaskCompletedEventAttributes { + s.ScheduledEventId = &v + return s +} + +// SetStartedEventId sets the StartedEventId field's value. +func (s *ActivityTaskCompletedEventAttributes) SetStartedEventId(v int64) *ActivityTaskCompletedEventAttributes { + s.StartedEventId = &v + return s +} + // Provides details of the ActivityTaskFailed event. type ActivityTaskFailedEventAttributes struct { _ struct{} `type:"structure"` @@ -3250,6 +3336,30 @@ func (s ActivityTaskFailedEventAttributes) GoString() string { return s.String() } +// SetDetails sets the Details field's value. +func (s *ActivityTaskFailedEventAttributes) SetDetails(v string) *ActivityTaskFailedEventAttributes { + s.Details = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *ActivityTaskFailedEventAttributes) SetReason(v string) *ActivityTaskFailedEventAttributes { + s.Reason = &v + return s +} + +// SetScheduledEventId sets the ScheduledEventId field's value. +func (s *ActivityTaskFailedEventAttributes) SetScheduledEventId(v int64) *ActivityTaskFailedEventAttributes { + s.ScheduledEventId = &v + return s +} + +// SetStartedEventId sets the StartedEventId field's value. +func (s *ActivityTaskFailedEventAttributes) SetStartedEventId(v int64) *ActivityTaskFailedEventAttributes { + s.StartedEventId = &v + return s +} + // Provides details of the ActivityTaskScheduled event. type ActivityTaskScheduledEventAttributes struct { _ struct{} `type:"structure"` @@ -3323,30 +3433,108 @@ func (s ActivityTaskScheduledEventAttributes) GoString() string { return s.String() } -// Provides details of the ActivityTaskStarted event. -type ActivityTaskStartedEventAttributes struct { - _ struct{} `type:"structure"` +// SetActivityId sets the ActivityId field's value. +func (s *ActivityTaskScheduledEventAttributes) SetActivityId(v string) *ActivityTaskScheduledEventAttributes { + s.ActivityId = &v + return s +} - // Identity of the worker that was assigned this task. This aids diagnostics - // when problems arise. The form of this identity is user defined. - Identity *string `locationName:"identity" type:"string"` +// SetActivityType sets the ActivityType field's value. +func (s *ActivityTaskScheduledEventAttributes) SetActivityType(v *ActivityType) *ActivityTaskScheduledEventAttributes { + s.ActivityType = v + return s +} - // The ID of the ActivityTaskScheduled event that was recorded when this activity - // task was scheduled. This information can be useful for diagnosing problems - // by tracing back the chain of events leading up to this event. - // - // ScheduledEventId is a required field - ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"` +// SetControl sets the Control field's value. +func (s *ActivityTaskScheduledEventAttributes) SetControl(v string) *ActivityTaskScheduledEventAttributes { + s.Control = &v + return s } -// String returns the string representation -func (s ActivityTaskStartedEventAttributes) String() string { - return awsutil.Prettify(s) +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *ActivityTaskScheduledEventAttributes) SetDecisionTaskCompletedEventId(v int64) *ActivityTaskScheduledEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s } -// GoString returns the string representation -func (s ActivityTaskStartedEventAttributes) GoString() string { - return s.String() +// SetHeartbeatTimeout sets the HeartbeatTimeout field's value. +func (s *ActivityTaskScheduledEventAttributes) SetHeartbeatTimeout(v string) *ActivityTaskScheduledEventAttributes { + s.HeartbeatTimeout = &v + return s +} + +// SetInput sets the Input field's value. +func (s *ActivityTaskScheduledEventAttributes) SetInput(v string) *ActivityTaskScheduledEventAttributes { + s.Input = &v + return s +} + +// SetScheduleToCloseTimeout sets the ScheduleToCloseTimeout field's value. +func (s *ActivityTaskScheduledEventAttributes) SetScheduleToCloseTimeout(v string) *ActivityTaskScheduledEventAttributes { + s.ScheduleToCloseTimeout = &v + return s +} + +// SetScheduleToStartTimeout sets the ScheduleToStartTimeout field's value. +func (s *ActivityTaskScheduledEventAttributes) SetScheduleToStartTimeout(v string) *ActivityTaskScheduledEventAttributes { + s.ScheduleToStartTimeout = &v + return s +} + +// SetStartToCloseTimeout sets the StartToCloseTimeout field's value. +func (s *ActivityTaskScheduledEventAttributes) SetStartToCloseTimeout(v string) *ActivityTaskScheduledEventAttributes { + s.StartToCloseTimeout = &v + return s +} + +// SetTaskList sets the TaskList field's value. +func (s *ActivityTaskScheduledEventAttributes) SetTaskList(v *TaskList) *ActivityTaskScheduledEventAttributes { + s.TaskList = v + return s +} + +// SetTaskPriority sets the TaskPriority field's value. +func (s *ActivityTaskScheduledEventAttributes) SetTaskPriority(v string) *ActivityTaskScheduledEventAttributes { + s.TaskPriority = &v + return s +} + +// Provides details of the ActivityTaskStarted event. +type ActivityTaskStartedEventAttributes struct { + _ struct{} `type:"structure"` + + // Identity of the worker that was assigned this task. This aids diagnostics + // when problems arise. The form of this identity is user defined. + Identity *string `locationName:"identity" type:"string"` + + // The ID of the ActivityTaskScheduled event that was recorded when this activity + // task was scheduled. This information can be useful for diagnosing problems + // by tracing back the chain of events leading up to this event. + // + // ScheduledEventId is a required field + ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"` +} + +// String returns the string representation +func (s ActivityTaskStartedEventAttributes) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ActivityTaskStartedEventAttributes) GoString() string { + return s.String() +} + +// SetIdentity sets the Identity field's value. +func (s *ActivityTaskStartedEventAttributes) SetIdentity(v string) *ActivityTaskStartedEventAttributes { + s.Identity = &v + return s +} + +// SetScheduledEventId sets the ScheduledEventId field's value. +func (s *ActivityTaskStartedEventAttributes) SetScheduledEventId(v int64) *ActivityTaskStartedEventAttributes { + s.ScheduledEventId = &v + return s } // Provides details of the ActivityTaskTimedOut event. @@ -3387,14 +3575,38 @@ func (s ActivityTaskTimedOutEventAttributes) GoString() string { return s.String() } +// SetDetails sets the Details field's value. +func (s *ActivityTaskTimedOutEventAttributes) SetDetails(v string) *ActivityTaskTimedOutEventAttributes { + s.Details = &v + return s +} + +// SetScheduledEventId sets the ScheduledEventId field's value. +func (s *ActivityTaskTimedOutEventAttributes) SetScheduledEventId(v int64) *ActivityTaskTimedOutEventAttributes { + s.ScheduledEventId = &v + return s +} + +// SetStartedEventId sets the StartedEventId field's value. +func (s *ActivityTaskTimedOutEventAttributes) SetStartedEventId(v int64) *ActivityTaskTimedOutEventAttributes { + s.StartedEventId = &v + return s +} + +// SetTimeoutType sets the TimeoutType field's value. +func (s *ActivityTaskTimedOutEventAttributes) SetTimeoutType(v string) *ActivityTaskTimedOutEventAttributes { + s.TimeoutType = &v + return s +} + // Represents an activity type. type ActivityType struct { _ struct{} `type:"structure"` // The name of this activity. // - // The combination of activity type name and version must be unique within - // a domain. + // The combination of activity type name and version must be unique within a + // domain. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` @@ -3440,6 +3652,18 @@ func (s *ActivityType) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *ActivityType) SetName(v string) *ActivityType { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *ActivityType) SetVersion(v string) *ActivityType { + s.Version = &v + return s +} + // Configuration settings registered with the activity type. type ActivityTypeConfiguration struct { _ struct{} `type:"structure"` @@ -3512,6 +3736,42 @@ func (s ActivityTypeConfiguration) GoString() string { return s.String() } +// SetDefaultTaskHeartbeatTimeout sets the DefaultTaskHeartbeatTimeout field's value. +func (s *ActivityTypeConfiguration) SetDefaultTaskHeartbeatTimeout(v string) *ActivityTypeConfiguration { + s.DefaultTaskHeartbeatTimeout = &v + return s +} + +// SetDefaultTaskList sets the DefaultTaskList field's value. +func (s *ActivityTypeConfiguration) SetDefaultTaskList(v *TaskList) *ActivityTypeConfiguration { + s.DefaultTaskList = v + return s +} + +// SetDefaultTaskPriority sets the DefaultTaskPriority field's value. +func (s *ActivityTypeConfiguration) SetDefaultTaskPriority(v string) *ActivityTypeConfiguration { + s.DefaultTaskPriority = &v + return s +} + +// SetDefaultTaskScheduleToCloseTimeout sets the DefaultTaskScheduleToCloseTimeout field's value. +func (s *ActivityTypeConfiguration) SetDefaultTaskScheduleToCloseTimeout(v string) *ActivityTypeConfiguration { + s.DefaultTaskScheduleToCloseTimeout = &v + return s +} + +// SetDefaultTaskScheduleToStartTimeout sets the DefaultTaskScheduleToStartTimeout field's value. +func (s *ActivityTypeConfiguration) SetDefaultTaskScheduleToStartTimeout(v string) *ActivityTypeConfiguration { + s.DefaultTaskScheduleToStartTimeout = &v + return s +} + +// SetDefaultTaskStartToCloseTimeout sets the DefaultTaskStartToCloseTimeout field's value. +func (s *ActivityTypeConfiguration) SetDefaultTaskStartToCloseTimeout(v string) *ActivityTypeConfiguration { + s.DefaultTaskStartToCloseTimeout = &v + return s +} + // Detailed information about an activity type. type ActivityTypeInfo struct { _ struct{} `type:"structure"` @@ -3548,6 +3808,36 @@ func (s ActivityTypeInfo) GoString() string { return s.String() } +// SetActivityType sets the ActivityType field's value. +func (s *ActivityTypeInfo) SetActivityType(v *ActivityType) *ActivityTypeInfo { + s.ActivityType = v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *ActivityTypeInfo) SetCreationDate(v time.Time) *ActivityTypeInfo { + s.CreationDate = &v + return s +} + +// SetDeprecationDate sets the DeprecationDate field's value. +func (s *ActivityTypeInfo) SetDeprecationDate(v time.Time) *ActivityTypeInfo { + s.DeprecationDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ActivityTypeInfo) SetDescription(v string) *ActivityTypeInfo { + s.Description = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ActivityTypeInfo) SetStatus(v string) *ActivityTypeInfo { + s.Status = &v + return s +} + // Provides details of the CancelTimer decision. // // Access Control @@ -3555,10 +3845,13 @@ func (s ActivityTypeInfo) GoString() string { // You can use IAM policies to control this decision's access to Amazon SWF // resources as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -3598,6 +3891,12 @@ func (s *CancelTimerDecisionAttributes) Validate() error { return nil } +// SetTimerId sets the TimerId field's value. +func (s *CancelTimerDecisionAttributes) SetTimerId(v string) *CancelTimerDecisionAttributes { + s.TimerId = &v + return s +} + // Provides details of the CancelTimerFailed event. type CancelTimerFailedEventAttributes struct { _ struct{} `type:"structure"` @@ -3605,8 +3904,8 @@ type CancelTimerFailedEventAttributes struct { // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // - // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because - // it lacked sufficient permissions. For details and example IAM policies, see + // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it + // lacked sufficient permissions. For details and example IAM policies, see // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Cause is a required field @@ -3636,6 +3935,24 @@ func (s CancelTimerFailedEventAttributes) GoString() string { return s.String() } +// SetCause sets the Cause field's value. +func (s *CancelTimerFailedEventAttributes) SetCause(v string) *CancelTimerFailedEventAttributes { + s.Cause = &v + return s +} + +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *CancelTimerFailedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *CancelTimerFailedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + +// SetTimerId sets the TimerId field's value. +func (s *CancelTimerFailedEventAttributes) SetTimerId(v string) *CancelTimerFailedEventAttributes { + s.TimerId = &v + return s +} + // Provides details of the CancelWorkflowExecution decision. // // Access Control @@ -3643,10 +3960,13 @@ func (s CancelTimerFailedEventAttributes) GoString() string { // You can use IAM policies to control this decision's access to Amazon SWF // resources as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -3668,6 +3988,12 @@ func (s CancelWorkflowExecutionDecisionAttributes) GoString() string { return s.String() } +// SetDetails sets the Details field's value. +func (s *CancelWorkflowExecutionDecisionAttributes) SetDetails(v string) *CancelWorkflowExecutionDecisionAttributes { + s.Details = &v + return s +} + // Provides details of the CancelWorkflowExecutionFailed event. type CancelWorkflowExecutionFailedEventAttributes struct { _ struct{} `type:"structure"` @@ -3675,8 +4001,8 @@ type CancelWorkflowExecutionFailedEventAttributes struct { // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // - // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because - // it lacked sufficient permissions. For details and example IAM policies, see + // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it + // lacked sufficient permissions. For details and example IAM policies, see // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Cause is a required field @@ -3701,6 +4027,18 @@ func (s CancelWorkflowExecutionFailedEventAttributes) GoString() string { return s.String() } +// SetCause sets the Cause field's value. +func (s *CancelWorkflowExecutionFailedEventAttributes) SetCause(v string) *CancelWorkflowExecutionFailedEventAttributes { + s.Cause = &v + return s +} + +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *CancelWorkflowExecutionFailedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *CancelWorkflowExecutionFailedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + // Provide details of the ChildWorkflowExecutionCanceled event. type ChildWorkflowExecutionCanceledEventAttributes struct { _ struct{} `type:"structure"` @@ -3744,6 +4082,36 @@ func (s ChildWorkflowExecutionCanceledEventAttributes) GoString() string { return s.String() } +// SetDetails sets the Details field's value. +func (s *ChildWorkflowExecutionCanceledEventAttributes) SetDetails(v string) *ChildWorkflowExecutionCanceledEventAttributes { + s.Details = &v + return s +} + +// SetInitiatedEventId sets the InitiatedEventId field's value. +func (s *ChildWorkflowExecutionCanceledEventAttributes) SetInitiatedEventId(v int64) *ChildWorkflowExecutionCanceledEventAttributes { + s.InitiatedEventId = &v + return s +} + +// SetStartedEventId sets the StartedEventId field's value. +func (s *ChildWorkflowExecutionCanceledEventAttributes) SetStartedEventId(v int64) *ChildWorkflowExecutionCanceledEventAttributes { + s.StartedEventId = &v + return s +} + +// SetWorkflowExecution sets the WorkflowExecution field's value. +func (s *ChildWorkflowExecutionCanceledEventAttributes) SetWorkflowExecution(v *WorkflowExecution) *ChildWorkflowExecutionCanceledEventAttributes { + s.WorkflowExecution = v + return s +} + +// SetWorkflowType sets the WorkflowType field's value. +func (s *ChildWorkflowExecutionCanceledEventAttributes) SetWorkflowType(v *WorkflowType) *ChildWorkflowExecutionCanceledEventAttributes { + s.WorkflowType = v + return s +} + // Provides details of the ChildWorkflowExecutionCompleted event. type ChildWorkflowExecutionCompletedEventAttributes struct { _ struct{} `type:"structure"` @@ -3787,6 +4155,36 @@ func (s ChildWorkflowExecutionCompletedEventAttributes) GoString() string { return s.String() } +// SetInitiatedEventId sets the InitiatedEventId field's value. +func (s *ChildWorkflowExecutionCompletedEventAttributes) SetInitiatedEventId(v int64) *ChildWorkflowExecutionCompletedEventAttributes { + s.InitiatedEventId = &v + return s +} + +// SetResult sets the Result field's value. +func (s *ChildWorkflowExecutionCompletedEventAttributes) SetResult(v string) *ChildWorkflowExecutionCompletedEventAttributes { + s.Result = &v + return s +} + +// SetStartedEventId sets the StartedEventId field's value. +func (s *ChildWorkflowExecutionCompletedEventAttributes) SetStartedEventId(v int64) *ChildWorkflowExecutionCompletedEventAttributes { + s.StartedEventId = &v + return s +} + +// SetWorkflowExecution sets the WorkflowExecution field's value. +func (s *ChildWorkflowExecutionCompletedEventAttributes) SetWorkflowExecution(v *WorkflowExecution) *ChildWorkflowExecutionCompletedEventAttributes { + s.WorkflowExecution = v + return s +} + +// SetWorkflowType sets the WorkflowType field's value. +func (s *ChildWorkflowExecutionCompletedEventAttributes) SetWorkflowType(v *WorkflowType) *ChildWorkflowExecutionCompletedEventAttributes { + s.WorkflowType = v + return s +} + // Provides details of the ChildWorkflowExecutionFailed event. type ChildWorkflowExecutionFailedEventAttributes struct { _ struct{} `type:"structure"` @@ -3833,6 +4231,42 @@ func (s ChildWorkflowExecutionFailedEventAttributes) GoString() string { return s.String() } +// SetDetails sets the Details field's value. +func (s *ChildWorkflowExecutionFailedEventAttributes) SetDetails(v string) *ChildWorkflowExecutionFailedEventAttributes { + s.Details = &v + return s +} + +// SetInitiatedEventId sets the InitiatedEventId field's value. +func (s *ChildWorkflowExecutionFailedEventAttributes) SetInitiatedEventId(v int64) *ChildWorkflowExecutionFailedEventAttributes { + s.InitiatedEventId = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *ChildWorkflowExecutionFailedEventAttributes) SetReason(v string) *ChildWorkflowExecutionFailedEventAttributes { + s.Reason = &v + return s +} + +// SetStartedEventId sets the StartedEventId field's value. +func (s *ChildWorkflowExecutionFailedEventAttributes) SetStartedEventId(v int64) *ChildWorkflowExecutionFailedEventAttributes { + s.StartedEventId = &v + return s +} + +// SetWorkflowExecution sets the WorkflowExecution field's value. +func (s *ChildWorkflowExecutionFailedEventAttributes) SetWorkflowExecution(v *WorkflowExecution) *ChildWorkflowExecutionFailedEventAttributes { + s.WorkflowExecution = v + return s +} + +// SetWorkflowType sets the WorkflowType field's value. +func (s *ChildWorkflowExecutionFailedEventAttributes) SetWorkflowType(v *WorkflowType) *ChildWorkflowExecutionFailedEventAttributes { + s.WorkflowType = v + return s +} + // Provides details of the ChildWorkflowExecutionStarted event. type ChildWorkflowExecutionStartedEventAttributes struct { _ struct{} `type:"structure"` @@ -3866,6 +4300,24 @@ func (s ChildWorkflowExecutionStartedEventAttributes) GoString() string { return s.String() } +// SetInitiatedEventId sets the InitiatedEventId field's value. +func (s *ChildWorkflowExecutionStartedEventAttributes) SetInitiatedEventId(v int64) *ChildWorkflowExecutionStartedEventAttributes { + s.InitiatedEventId = &v + return s +} + +// SetWorkflowExecution sets the WorkflowExecution field's value. +func (s *ChildWorkflowExecutionStartedEventAttributes) SetWorkflowExecution(v *WorkflowExecution) *ChildWorkflowExecutionStartedEventAttributes { + s.WorkflowExecution = v + return s +} + +// SetWorkflowType sets the WorkflowType field's value. +func (s *ChildWorkflowExecutionStartedEventAttributes) SetWorkflowType(v *WorkflowType) *ChildWorkflowExecutionStartedEventAttributes { + s.WorkflowType = v + return s +} + // Provides details of the ChildWorkflowExecutionTerminated event. type ChildWorkflowExecutionTerminatedEventAttributes struct { _ struct{} `type:"structure"` @@ -3906,6 +4358,30 @@ func (s ChildWorkflowExecutionTerminatedEventAttributes) GoString() string { return s.String() } +// SetInitiatedEventId sets the InitiatedEventId field's value. +func (s *ChildWorkflowExecutionTerminatedEventAttributes) SetInitiatedEventId(v int64) *ChildWorkflowExecutionTerminatedEventAttributes { + s.InitiatedEventId = &v + return s +} + +// SetStartedEventId sets the StartedEventId field's value. +func (s *ChildWorkflowExecutionTerminatedEventAttributes) SetStartedEventId(v int64) *ChildWorkflowExecutionTerminatedEventAttributes { + s.StartedEventId = &v + return s +} + +// SetWorkflowExecution sets the WorkflowExecution field's value. +func (s *ChildWorkflowExecutionTerminatedEventAttributes) SetWorkflowExecution(v *WorkflowExecution) *ChildWorkflowExecutionTerminatedEventAttributes { + s.WorkflowExecution = v + return s +} + +// SetWorkflowType sets the WorkflowType field's value. +func (s *ChildWorkflowExecutionTerminatedEventAttributes) SetWorkflowType(v *WorkflowType) *ChildWorkflowExecutionTerminatedEventAttributes { + s.WorkflowType = v + return s +} + // Provides details of the ChildWorkflowExecutionTimedOut event. type ChildWorkflowExecutionTimedOutEventAttributes struct { _ struct{} `type:"structure"` @@ -3952,6 +4428,36 @@ func (s ChildWorkflowExecutionTimedOutEventAttributes) GoString() string { return s.String() } +// SetInitiatedEventId sets the InitiatedEventId field's value. +func (s *ChildWorkflowExecutionTimedOutEventAttributes) SetInitiatedEventId(v int64) *ChildWorkflowExecutionTimedOutEventAttributes { + s.InitiatedEventId = &v + return s +} + +// SetStartedEventId sets the StartedEventId field's value. +func (s *ChildWorkflowExecutionTimedOutEventAttributes) SetStartedEventId(v int64) *ChildWorkflowExecutionTimedOutEventAttributes { + s.StartedEventId = &v + return s +} + +// SetTimeoutType sets the TimeoutType field's value. +func (s *ChildWorkflowExecutionTimedOutEventAttributes) SetTimeoutType(v string) *ChildWorkflowExecutionTimedOutEventAttributes { + s.TimeoutType = &v + return s +} + +// SetWorkflowExecution sets the WorkflowExecution field's value. +func (s *ChildWorkflowExecutionTimedOutEventAttributes) SetWorkflowExecution(v *WorkflowExecution) *ChildWorkflowExecutionTimedOutEventAttributes { + s.WorkflowExecution = v + return s +} + +// SetWorkflowType sets the WorkflowType field's value. +func (s *ChildWorkflowExecutionTimedOutEventAttributes) SetWorkflowType(v *WorkflowType) *ChildWorkflowExecutionTimedOutEventAttributes { + s.WorkflowType = v + return s +} + // Used to filter the closed workflow executions in visibility APIs by their // close status. type CloseStatusFilter struct { @@ -3987,6 +4493,12 @@ func (s *CloseStatusFilter) Validate() error { return nil } +// SetStatus sets the Status field's value. +func (s *CloseStatusFilter) SetStatus(v string) *CloseStatusFilter { + s.Status = &v + return s +} + // Provides details of the CompleteWorkflowExecution decision. // // Access Control @@ -3994,10 +4506,13 @@ func (s *CloseStatusFilter) Validate() error { // You can use IAM policies to control this decision's access to Amazon SWF // resources as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -4020,6 +4535,12 @@ func (s CompleteWorkflowExecutionDecisionAttributes) GoString() string { return s.String() } +// SetResult sets the Result field's value. +func (s *CompleteWorkflowExecutionDecisionAttributes) SetResult(v string) *CompleteWorkflowExecutionDecisionAttributes { + s.Result = &v + return s +} + // Provides details of the CompleteWorkflowExecutionFailed event. type CompleteWorkflowExecutionFailedEventAttributes struct { _ struct{} `type:"structure"` @@ -4027,8 +4548,8 @@ type CompleteWorkflowExecutionFailedEventAttributes struct { // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // - // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because - // it lacked sufficient permissions. For details and example IAM policies, see + // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it + // lacked sufficient permissions. For details and example IAM policies, see // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Cause is a required field @@ -4053,6 +4574,18 @@ func (s CompleteWorkflowExecutionFailedEventAttributes) GoString() string { return s.String() } +// SetCause sets the Cause field's value. +func (s *CompleteWorkflowExecutionFailedEventAttributes) SetCause(v string) *CompleteWorkflowExecutionFailedEventAttributes { + s.Cause = &v + return s +} + +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *CompleteWorkflowExecutionFailedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *CompleteWorkflowExecutionFailedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + // Provides details of the ContinueAsNewWorkflowExecution decision. // // Access Control @@ -4060,15 +4593,19 @@ func (s CompleteWorkflowExecutionFailedEventAttributes) GoString() string { // You can use IAM policies to control this decision's access to Amazon SWF // resources as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. Constrain the following parameters by using a Condition element -// with the appropriate keys. tag: Optional.. A tag used to identify the workflow -// execution taskList: String constraint. The key is swf:taskList.name. workflowType.version: -// String constraint. The key is swf:workflowType.version. If the caller -// does not have sufficient permissions to invoke the action, or the parameter -// values fall outside the specified constraints, the action fails. The associated -// event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * Constrain the following parameters by using a Condition element with +// the appropriate keys. tag: Optional.. A tag used to identify the workflow +// execution +// taskList: String constraint. The key is swf:taskList.name. +// workflowType.version: String constraint. The key is swf:workflowType.version. +// +// If the caller does not have sufficient permissions to invoke the action, +// or the parameter values fall outside the specified constraints, the action +// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). type ContinueAsNewWorkflowExecutionDecisionAttributes struct { @@ -4081,15 +4618,17 @@ type ContinueAsNewWorkflowExecutionDecisionAttributes struct { // // The supported child policies are: // - // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request - // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested - // event in its history. It is up to the decider to take appropriate actions - // when it receives an execution history with this event. ABANDON: no action - // will be taken. The child executions will continue to run. A child policy - // for this workflow execution must be specified either as a default for the - // workflow type or through this parameter. If neither this parameter is set - // nor a default child policy was specified at registration time then a fault - // will be returned. + // * TERMINATE: the child executions will be terminated. + // * REQUEST_CANCEL: a request to cancel will be attempted for each child + // execution by recording a WorkflowExecutionCancelRequested event in its + // history. It is up to the decider to take appropriate actions when it receives + // an execution history with this event. + // * ABANDON: no action will be taken. The child executions will continue + // to run. + // A child policy for this workflow execution must be specified either as a + // default for the workflow type or through this parameter. If neither this + // parameter is set nor a default child policy was specified at registration + // time then a fault will be returned. ChildPolicy *string `locationName:"childPolicy" type:"string" enum:"ChildPolicy"` // If set, specifies the total duration for this workflow execution. This overrides @@ -4099,10 +4638,10 @@ type ContinueAsNewWorkflowExecutionDecisionAttributes struct { // The duration is specified in seconds; an integer greater than or equal to // 0. The value "NONE" can be used to specify unlimited duration. // - // An execution start-to-close timeout for this workflow execution must be - // specified either as a default for the workflow type or through this field. - // If neither this field is set nor a default execution start-to-close timeout - // was specified at registration time then a fault will be returned. + // An execution start-to-close timeout for this workflow execution must be specified + // either as a default for the workflow type or through this field. If neither + // this field is set nor a default execution start-to-close timeout was specified + // at registration time then a fault will be returned. ExecutionStartToCloseTimeout *string `locationName:"executionStartToCloseTimeout" type:"string"` // The input provided to the new workflow execution. @@ -4110,9 +4649,9 @@ type ContinueAsNewWorkflowExecutionDecisionAttributes struct { // The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions. // - // In order for this workflow execution to invoke AWS Lambda functions, an - // appropriate IAM role must be specified either as a default for the workflow - // type or through this field. + // In order for this workflow execution to invoke AWS Lambda functions, an appropriate + // IAM role must be specified either as a default for the workflow type or through + // this field. LambdaRole *string `locationName:"lambdaRole" min:"1" type:"string"` // The list of tags to associate with the new workflow execution. A maximum @@ -4182,6 +4721,60 @@ func (s *ContinueAsNewWorkflowExecutionDecisionAttributes) Validate() error { return nil } +// SetChildPolicy sets the ChildPolicy field's value. +func (s *ContinueAsNewWorkflowExecutionDecisionAttributes) SetChildPolicy(v string) *ContinueAsNewWorkflowExecutionDecisionAttributes { + s.ChildPolicy = &v + return s +} + +// SetExecutionStartToCloseTimeout sets the ExecutionStartToCloseTimeout field's value. +func (s *ContinueAsNewWorkflowExecutionDecisionAttributes) SetExecutionStartToCloseTimeout(v string) *ContinueAsNewWorkflowExecutionDecisionAttributes { + s.ExecutionStartToCloseTimeout = &v + return s +} + +// SetInput sets the Input field's value. +func (s *ContinueAsNewWorkflowExecutionDecisionAttributes) SetInput(v string) *ContinueAsNewWorkflowExecutionDecisionAttributes { + s.Input = &v + return s +} + +// SetLambdaRole sets the LambdaRole field's value. +func (s *ContinueAsNewWorkflowExecutionDecisionAttributes) SetLambdaRole(v string) *ContinueAsNewWorkflowExecutionDecisionAttributes { + s.LambdaRole = &v + return s +} + +// SetTagList sets the TagList field's value. +func (s *ContinueAsNewWorkflowExecutionDecisionAttributes) SetTagList(v []*string) *ContinueAsNewWorkflowExecutionDecisionAttributes { + s.TagList = v + return s +} + +// SetTaskList sets the TaskList field's value. +func (s *ContinueAsNewWorkflowExecutionDecisionAttributes) SetTaskList(v *TaskList) *ContinueAsNewWorkflowExecutionDecisionAttributes { + s.TaskList = v + return s +} + +// SetTaskPriority sets the TaskPriority field's value. +func (s *ContinueAsNewWorkflowExecutionDecisionAttributes) SetTaskPriority(v string) *ContinueAsNewWorkflowExecutionDecisionAttributes { + s.TaskPriority = &v + return s +} + +// SetTaskStartToCloseTimeout sets the TaskStartToCloseTimeout field's value. +func (s *ContinueAsNewWorkflowExecutionDecisionAttributes) SetTaskStartToCloseTimeout(v string) *ContinueAsNewWorkflowExecutionDecisionAttributes { + s.TaskStartToCloseTimeout = &v + return s +} + +// SetWorkflowTypeVersion sets the WorkflowTypeVersion field's value. +func (s *ContinueAsNewWorkflowExecutionDecisionAttributes) SetWorkflowTypeVersion(v string) *ContinueAsNewWorkflowExecutionDecisionAttributes { + s.WorkflowTypeVersion = &v + return s +} + // Provides details of the ContinueAsNewWorkflowExecutionFailed event. type ContinueAsNewWorkflowExecutionFailedEventAttributes struct { _ struct{} `type:"structure"` @@ -4189,8 +4782,8 @@ type ContinueAsNewWorkflowExecutionFailedEventAttributes struct { // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // - // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because - // it lacked sufficient permissions. For details and example IAM policies, see + // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it + // lacked sufficient permissions. For details and example IAM policies, see // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Cause is a required field @@ -4215,6 +4808,18 @@ func (s ContinueAsNewWorkflowExecutionFailedEventAttributes) GoString() string { return s.String() } +// SetCause sets the Cause field's value. +func (s *ContinueAsNewWorkflowExecutionFailedEventAttributes) SetCause(v string) *ContinueAsNewWorkflowExecutionFailedEventAttributes { + s.Cause = &v + return s +} + +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *ContinueAsNewWorkflowExecutionFailedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *ContinueAsNewWorkflowExecutionFailedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + type CountClosedWorkflowExecutionsInput struct { _ struct{} `type:"structure"` @@ -4321,6 +4926,48 @@ func (s *CountClosedWorkflowExecutionsInput) Validate() error { return nil } +// SetCloseStatusFilter sets the CloseStatusFilter field's value. +func (s *CountClosedWorkflowExecutionsInput) SetCloseStatusFilter(v *CloseStatusFilter) *CountClosedWorkflowExecutionsInput { + s.CloseStatusFilter = v + return s +} + +// SetCloseTimeFilter sets the CloseTimeFilter field's value. +func (s *CountClosedWorkflowExecutionsInput) SetCloseTimeFilter(v *ExecutionTimeFilter) *CountClosedWorkflowExecutionsInput { + s.CloseTimeFilter = v + return s +} + +// SetDomain sets the Domain field's value. +func (s *CountClosedWorkflowExecutionsInput) SetDomain(v string) *CountClosedWorkflowExecutionsInput { + s.Domain = &v + return s +} + +// SetExecutionFilter sets the ExecutionFilter field's value. +func (s *CountClosedWorkflowExecutionsInput) SetExecutionFilter(v *WorkflowExecutionFilter) *CountClosedWorkflowExecutionsInput { + s.ExecutionFilter = v + return s +} + +// SetStartTimeFilter sets the StartTimeFilter field's value. +func (s *CountClosedWorkflowExecutionsInput) SetStartTimeFilter(v *ExecutionTimeFilter) *CountClosedWorkflowExecutionsInput { + s.StartTimeFilter = v + return s +} + +// SetTagFilter sets the TagFilter field's value. +func (s *CountClosedWorkflowExecutionsInput) SetTagFilter(v *TagFilter) *CountClosedWorkflowExecutionsInput { + s.TagFilter = v + return s +} + +// SetTypeFilter sets the TypeFilter field's value. +func (s *CountClosedWorkflowExecutionsInput) SetTypeFilter(v *WorkflowTypeFilter) *CountClosedWorkflowExecutionsInput { + s.TypeFilter = v + return s +} + type CountOpenWorkflowExecutionsInput struct { _ struct{} `type:"structure"` @@ -4405,6 +5052,36 @@ func (s *CountOpenWorkflowExecutionsInput) Validate() error { return nil } +// SetDomain sets the Domain field's value. +func (s *CountOpenWorkflowExecutionsInput) SetDomain(v string) *CountOpenWorkflowExecutionsInput { + s.Domain = &v + return s +} + +// SetExecutionFilter sets the ExecutionFilter field's value. +func (s *CountOpenWorkflowExecutionsInput) SetExecutionFilter(v *WorkflowExecutionFilter) *CountOpenWorkflowExecutionsInput { + s.ExecutionFilter = v + return s +} + +// SetStartTimeFilter sets the StartTimeFilter field's value. +func (s *CountOpenWorkflowExecutionsInput) SetStartTimeFilter(v *ExecutionTimeFilter) *CountOpenWorkflowExecutionsInput { + s.StartTimeFilter = v + return s +} + +// SetTagFilter sets the TagFilter field's value. +func (s *CountOpenWorkflowExecutionsInput) SetTagFilter(v *TagFilter) *CountOpenWorkflowExecutionsInput { + s.TagFilter = v + return s +} + +// SetTypeFilter sets the TypeFilter field's value. +func (s *CountOpenWorkflowExecutionsInput) SetTypeFilter(v *WorkflowTypeFilter) *CountOpenWorkflowExecutionsInput { + s.TypeFilter = v + return s +} + type CountPendingActivityTasksInput struct { _ struct{} `type:"structure"` @@ -4453,6 +5130,18 @@ func (s *CountPendingActivityTasksInput) Validate() error { return nil } +// SetDomain sets the Domain field's value. +func (s *CountPendingActivityTasksInput) SetDomain(v string) *CountPendingActivityTasksInput { + s.Domain = &v + return s +} + +// SetTaskList sets the TaskList field's value. +func (s *CountPendingActivityTasksInput) SetTaskList(v *TaskList) *CountPendingActivityTasksInput { + s.TaskList = v + return s +} + type CountPendingDecisionTasksInput struct { _ struct{} `type:"structure"` @@ -4501,38 +5190,58 @@ func (s *CountPendingDecisionTasksInput) Validate() error { return nil } +// SetDomain sets the Domain field's value. +func (s *CountPendingDecisionTasksInput) SetDomain(v string) *CountPendingDecisionTasksInput { + s.Domain = &v + return s +} + +// SetTaskList sets the TaskList field's value. +func (s *CountPendingDecisionTasksInput) SetTaskList(v *TaskList) *CountPendingDecisionTasksInput { + s.TaskList = v + return s +} + // Specifies a decision made by the decider. A decision can be one of these // types: // -// CancelTimer: cancels a previously started timer and records a TimerCanceled -// event in the history. CancelWorkflowExecution: closes the workflow execution -// and records a WorkflowExecutionCanceled event in the history. CompleteWorkflowExecution: -// closes the workflow execution and records a WorkflowExecutionCompleted event -// in the history . ContinueAsNewWorkflowExecution: closes the workflow execution -// and starts a new workflow execution of the same type using the same workflow -// ID and a unique run ID. A WorkflowExecutionContinuedAsNew event is recorded -// in the history. FailWorkflowExecution: closes the workflow execution and -// records a WorkflowExecutionFailed event in the history. RecordMarker: records -// a MarkerRecorded event in the history. Markers can be used for adding custom -// information in the history for instance to let deciders know that they do -// not need to look at the history beyond the marker event. RequestCancelActivityTask: -// attempts to cancel a previously scheduled activity task. If the activity -// task was scheduled but has not been assigned to a worker, then it will be -// canceled. If the activity task was already assigned to a worker, then the -// worker will be informed that cancellation has been requested in the response -// to RecordActivityTaskHeartbeat. RequestCancelExternalWorkflowExecution: -// requests that a request be made to cancel the specified external workflow -// execution and records a RequestCancelExternalWorkflowExecutionInitiated event -// in the history. ScheduleActivityTask: schedules an activity task. ScheduleLambdaFunction: -// schedules a AWS Lambda function. SignalExternalWorkflowExecution: requests -// a signal to be delivered to the specified external workflow execution and -// records a SignalExternalWorkflowExecutionInitiated event in the history. -// StartChildWorkflowExecution: requests that a child workflow execution be -// started and records a StartChildWorkflowExecutionInitiated event in the history. -// The child workflow execution is a separate workflow execution with its own -// history. StartTimer: starts a timer for this workflow execution and records -// a TimerStarted event in the history. This timer will fire after the specified -// delay and record a TimerFired event. Access Control +// * CancelTimer: cancels a previously started timer and records a TimerCanceled +// event in the history. +// * CancelWorkflowExecution: closes the workflow execution and records a +// WorkflowExecutionCanceled event in the history. +// * CompleteWorkflowExecution: closes the workflow execution and records +// a WorkflowExecutionCompleted event in the history . +// * ContinueAsNewWorkflowExecution: closes the workflow execution and starts +// a new workflow execution of the same type using the same workflow ID and +// a unique run ID. A WorkflowExecutionContinuedAsNew event is recorded in +// the history. +// * FailWorkflowExecution: closes the workflow execution and records a WorkflowExecutionFailed +// event in the history. +// * RecordMarker: records a MarkerRecorded event in the history. Markers +// can be used for adding custom information in the history for instance +// to let deciders know that they do not need to look at the history beyond +// the marker event. +// * RequestCancelActivityTask: attempts to cancel a previously scheduled +// activity task. If the activity task was scheduled but has not been assigned +// to a worker, then it will be canceled. If the activity task was already +// assigned to a worker, then the worker will be informed that cancellation +// has been requested in the response to RecordActivityTaskHeartbeat. +// * RequestCancelExternalWorkflowExecution: requests that a request be made +// to cancel the specified external workflow execution and records a RequestCancelExternalWorkflowExecutionInitiated +// event in the history. +// * ScheduleActivityTask: schedules an activity task. +// * ScheduleLambdaFunction: schedules a AWS Lambda function. +// * SignalExternalWorkflowExecution: requests a signal to be delivered to +// the specified external workflow execution and records a SignalExternalWorkflowExecutionInitiated +// event in the history. +// * StartChildWorkflowExecution: requests that a child workflow execution +// be started and records a StartChildWorkflowExecutionInitiated event in +// the history. The child workflow execution is a separate workflow execution +// with its own history. +// * StartTimer: starts a timer for this workflow execution and records a +// TimerStarted event in the history. This timer will fire after the specified +// delay and record a TimerFired event. +// Access Control // // If you grant permission to use RespondDecisionTaskCompleted, you can use // IAM policies to express permissions for the list of decisions returned by @@ -4545,45 +5254,57 @@ func (s *CountPendingDecisionTasksInput) Validate() error { // // Decisions can fail for several reasons // -// The ordering of decisions should follow a logical flow. Some decisions -// might not make sense in the current context of the workflow execution and -// will therefore fail. A limit on your account was reached. The decision lacks -// sufficient permissions. One of the following events might be added to the -// history to indicate an error. The event attribute's cause parameter indicates -// the cause. If cause is set to OPERATION_NOT_PERMITTED, the decision failed -// because it lacked sufficient permissions. For details and example IAM policies, -// see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). -// -// ScheduleActivityTaskFailed: a ScheduleActivityTask decision failed. This -// could happen if the activity type specified in the decision is not registered, -// is in a deprecated state, or the decision is not properly configured. ScheduleLambdaFunctionFailed: -// a ScheduleLambdaFunctionFailed decision failed. This could happen if the -// AWS Lambda function specified in the decision does not exist, or the AWS -// Lambda service's limits are exceeded. RequestCancelActivityTaskFailed: a -// RequestCancelActivityTask decision failed. This could happen if there is -// no open activity task with the specified activityId. StartTimerFailed: a -// StartTimer decision failed. This could happen if there is another open timer -// with the same timerId. CancelTimerFailed: a CancelTimer decision failed. -// This could happen if there is no open timer with the specified timerId. -// StartChildWorkflowExecutionFailed: a StartChildWorkflowExecution decision -// failed. This could happen if the workflow type specified is not registered, -// is deprecated, or the decision is not properly configured. SignalExternalWorkflowExecutionFailed: -// a SignalExternalWorkflowExecution decision failed. This could happen if the -// workflowID specified in the decision was incorrect. RequestCancelExternalWorkflowExecutionFailed: -// a RequestCancelExternalWorkflowExecution decision failed. This could happen -// if the workflowID specified in the decision was incorrect. CancelWorkflowExecutionFailed: -// a CancelWorkflowExecution decision failed. This could happen if there is -// an unhandled decision task pending in the workflow execution. CompleteWorkflowExecutionFailed: -// a CompleteWorkflowExecution decision failed. This could happen if there is -// an unhandled decision task pending in the workflow execution. ContinueAsNewWorkflowExecutionFailed: -// a ContinueAsNewWorkflowExecution decision failed. This could happen if there -// is an unhandled decision task pending in the workflow execution or the ContinueAsNewWorkflowExecution -// decision was not configured correctly. FailWorkflowExecutionFailed: a FailWorkflowExecution -// decision failed. This could happen if there is an unhandled decision task -// pending in the workflow execution. The preceding error events might occur -// due to an error in the decider logic, which might put the workflow execution -// in an unstable state The cause field in the event structure for the error -// event indicates the cause of the error. +// * The ordering of decisions should follow a logical flow. Some decisions +// might not make sense in the current context of the workflow execution +// and will therefore fail. +// * A limit on your account was reached. +// * The decision lacks sufficient permissions. +// One of the following events might be added to the history to indicate an +// error. The event attribute's cause parameter indicates the cause. If cause +// is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked +// sufficient permissions. For details and example IAM policies, see Using IAM +// to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// * ScheduleActivityTaskFailed: a ScheduleActivityTask decision failed. +// This could happen if the activity type specified in the decision is not +// registered, is in a deprecated state, or the decision is not properly +// configured. +// * ScheduleLambdaFunctionFailed: a ScheduleLambdaFunctionFailed decision +// failed. This could happen if the AWS Lambda function specified in the +// decision does not exist, or the AWS Lambda service's limits are exceeded. +// +// * RequestCancelActivityTaskFailed: a RequestCancelActivityTask decision +// failed. This could happen if there is no open activity task with the specified +// activityId. +// * StartTimerFailed: a StartTimer decision failed. This could happen if +// there is another open timer with the same timerId. +// * CancelTimerFailed: a CancelTimer decision failed. This could happen +// if there is no open timer with the specified timerId. +// * StartChildWorkflowExecutionFailed: a StartChildWorkflowExecution decision +// failed. This could happen if the workflow type specified is not registered, +// is deprecated, or the decision is not properly configured. +// * SignalExternalWorkflowExecutionFailed: a SignalExternalWorkflowExecution +// decision failed. This could happen if the workflowID specified in the +// decision was incorrect. +// * RequestCancelExternalWorkflowExecutionFailed: a RequestCancelExternalWorkflowExecution +// decision failed. This could happen if the workflowID specified in the +// decision was incorrect. +// * CancelWorkflowExecutionFailed: a CancelWorkflowExecution decision failed. +// This could happen if there is an unhandled decision task pending in the +// workflow execution. +// * CompleteWorkflowExecutionFailed: a CompleteWorkflowExecution decision +// failed. This could happen if there is an unhandled decision task pending +// in the workflow execution. +// * ContinueAsNewWorkflowExecutionFailed: a ContinueAsNewWorkflowExecution +// decision failed. This could happen if there is an unhandled decision task +// pending in the workflow execution or the ContinueAsNewWorkflowExecution +// decision was not configured correctly. +// * FailWorkflowExecutionFailed: a FailWorkflowExecution decision failed. +// This could happen if there is an unhandled decision task pending in the +// workflow execution. +// The preceding error events might occur due to an error in the decider logic, +// which might put the workflow execution in an unstable state The cause field +// in the event structure for the error event indicates the cause of the error. // // A workflow execution may be closed by the decider by returning one of the // following decisions when completing a decision task: CompleteWorkflowExecution, @@ -4596,18 +5317,25 @@ func (s *CountPendingDecisionTasksInput) Validate() error { // RespondDecisionTaskCompleted without any decisions. This would result in // another decision task with these new events included in the history. The // decider should handle the new events and may decide to close the workflow -// execution. How to code a decision +// execution.How to code a decision // // You code a decision by first setting the decision type field to one of the // above decision values, and then set the corresponding attributes field shown // below: // -// ScheduleActivityTaskDecisionAttributes ScheduleLambdaFunctionDecisionAttributes -// RequestCancelActivityTaskDecisionAttributes CompleteWorkflowExecutionDecisionAttributes -// FailWorkflowExecutionDecisionAttributes CancelWorkflowExecutionDecisionAttributes -// ContinueAsNewWorkflowExecutionDecisionAttributes RecordMarkerDecisionAttributes -// StartTimerDecisionAttributes CancelTimerDecisionAttributes SignalExternalWorkflowExecutionDecisionAttributes -// RequestCancelExternalWorkflowExecutionDecisionAttributes StartChildWorkflowExecutionDecisionAttributes +// * ScheduleActivityTaskDecisionAttributes +// * ScheduleLambdaFunctionDecisionAttributes +// * RequestCancelActivityTaskDecisionAttributes +// * CompleteWorkflowExecutionDecisionAttributes +// * FailWorkflowExecutionDecisionAttributes +// * CancelWorkflowExecutionDecisionAttributes +// * ContinueAsNewWorkflowExecutionDecisionAttributes +// * RecordMarkerDecisionAttributes +// * StartTimerDecisionAttributes +// * CancelTimerDecisionAttributes +// * SignalExternalWorkflowExecutionDecisionAttributes +// * RequestCancelExternalWorkflowExecutionDecisionAttributes +// * StartChildWorkflowExecutionDecisionAttributes type Decision struct { _ struct{} `type:"structure"` @@ -4659,13 +5387,18 @@ type Decision struct { // You can use IAM policies to control this decision's access to Amazon SWF // resources as follows: // - // Use a Resource element with the domain name to limit the action to only - // specified domains. Use an Action element to allow or deny permission to call - // this action. Constrain the following parameters by using a Condition element - // with the appropriate keys. activityType.name: String constraint. The key - // is swf:activityType.name. activityType.version: String constraint. The key - // is swf:activityType.version. taskList: String constraint. The key is swf:taskList.name. - // If the caller does not have sufficient permissions to invoke the action, + // * Use a Resource element with the domain name to limit the action to only + // specified domains. + // * Use an Action element to allow or deny permission to call this action. + // + // * Constrain the following parameters by using a Condition element with + // the appropriate keys. activityType.name: String constraint. The key is + // swf:activityType.name. + // activityType.version: String constraint. The key is swf:activityType.version. + // + // taskList: String constraint. The key is swf:taskList.name. + // + // If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -4758,6 +5491,90 @@ func (s *Decision) Validate() error { return nil } +// SetCancelTimerDecisionAttributes sets the CancelTimerDecisionAttributes field's value. +func (s *Decision) SetCancelTimerDecisionAttributes(v *CancelTimerDecisionAttributes) *Decision { + s.CancelTimerDecisionAttributes = v + return s +} + +// SetCancelWorkflowExecutionDecisionAttributes sets the CancelWorkflowExecutionDecisionAttributes field's value. +func (s *Decision) SetCancelWorkflowExecutionDecisionAttributes(v *CancelWorkflowExecutionDecisionAttributes) *Decision { + s.CancelWorkflowExecutionDecisionAttributes = v + return s +} + +// SetCompleteWorkflowExecutionDecisionAttributes sets the CompleteWorkflowExecutionDecisionAttributes field's value. +func (s *Decision) SetCompleteWorkflowExecutionDecisionAttributes(v *CompleteWorkflowExecutionDecisionAttributes) *Decision { + s.CompleteWorkflowExecutionDecisionAttributes = v + return s +} + +// SetContinueAsNewWorkflowExecutionDecisionAttributes sets the ContinueAsNewWorkflowExecutionDecisionAttributes field's value. +func (s *Decision) SetContinueAsNewWorkflowExecutionDecisionAttributes(v *ContinueAsNewWorkflowExecutionDecisionAttributes) *Decision { + s.ContinueAsNewWorkflowExecutionDecisionAttributes = v + return s +} + +// SetDecisionType sets the DecisionType field's value. +func (s *Decision) SetDecisionType(v string) *Decision { + s.DecisionType = &v + return s +} + +// SetFailWorkflowExecutionDecisionAttributes sets the FailWorkflowExecutionDecisionAttributes field's value. +func (s *Decision) SetFailWorkflowExecutionDecisionAttributes(v *FailWorkflowExecutionDecisionAttributes) *Decision { + s.FailWorkflowExecutionDecisionAttributes = v + return s +} + +// SetRecordMarkerDecisionAttributes sets the RecordMarkerDecisionAttributes field's value. +func (s *Decision) SetRecordMarkerDecisionAttributes(v *RecordMarkerDecisionAttributes) *Decision { + s.RecordMarkerDecisionAttributes = v + return s +} + +// SetRequestCancelActivityTaskDecisionAttributes sets the RequestCancelActivityTaskDecisionAttributes field's value. +func (s *Decision) SetRequestCancelActivityTaskDecisionAttributes(v *RequestCancelActivityTaskDecisionAttributes) *Decision { + s.RequestCancelActivityTaskDecisionAttributes = v + return s +} + +// SetRequestCancelExternalWorkflowExecutionDecisionAttributes sets the RequestCancelExternalWorkflowExecutionDecisionAttributes field's value. +func (s *Decision) SetRequestCancelExternalWorkflowExecutionDecisionAttributes(v *RequestCancelExternalWorkflowExecutionDecisionAttributes) *Decision { + s.RequestCancelExternalWorkflowExecutionDecisionAttributes = v + return s +} + +// SetScheduleActivityTaskDecisionAttributes sets the ScheduleActivityTaskDecisionAttributes field's value. +func (s *Decision) SetScheduleActivityTaskDecisionAttributes(v *ScheduleActivityTaskDecisionAttributes) *Decision { + s.ScheduleActivityTaskDecisionAttributes = v + return s +} + +// SetScheduleLambdaFunctionDecisionAttributes sets the ScheduleLambdaFunctionDecisionAttributes field's value. +func (s *Decision) SetScheduleLambdaFunctionDecisionAttributes(v *ScheduleLambdaFunctionDecisionAttributes) *Decision { + s.ScheduleLambdaFunctionDecisionAttributes = v + return s +} + +// SetSignalExternalWorkflowExecutionDecisionAttributes sets the SignalExternalWorkflowExecutionDecisionAttributes field's value. +func (s *Decision) SetSignalExternalWorkflowExecutionDecisionAttributes(v *SignalExternalWorkflowExecutionDecisionAttributes) *Decision { + s.SignalExternalWorkflowExecutionDecisionAttributes = v + return s +} + +// SetStartChildWorkflowExecutionDecisionAttributes sets the StartChildWorkflowExecutionDecisionAttributes field's value. +func (s *Decision) SetStartChildWorkflowExecutionDecisionAttributes(v *StartChildWorkflowExecutionDecisionAttributes) *Decision { + s.StartChildWorkflowExecutionDecisionAttributes = v + return s +} + +// SetStartTimerDecisionAttributes sets the StartTimerDecisionAttributes field's value. +func (s *Decision) SetStartTimerDecisionAttributes(v *StartTimerDecisionAttributes) *Decision { + s.StartTimerDecisionAttributes = v + return s +} + // Provides details of the DecisionTaskCompleted event. type DecisionTaskCompletedEventAttributes struct { _ struct{} `type:"structure"` @@ -4790,6 +5607,24 @@ func (s DecisionTaskCompletedEventAttributes) GoString() string { return s.String() } +// SetExecutionContext sets the ExecutionContext field's value. +func (s *DecisionTaskCompletedEventAttributes) SetExecutionContext(v string) *DecisionTaskCompletedEventAttributes { + s.ExecutionContext = &v + return s +} + +// SetScheduledEventId sets the ScheduledEventId field's value. +func (s *DecisionTaskCompletedEventAttributes) SetScheduledEventId(v int64) *DecisionTaskCompletedEventAttributes { + s.ScheduledEventId = &v + return s +} + +// SetStartedEventId sets the StartedEventId field's value. +func (s *DecisionTaskCompletedEventAttributes) SetStartedEventId(v int64) *DecisionTaskCompletedEventAttributes { + s.StartedEventId = &v + return s +} + // Provides details about the DecisionTaskScheduled event. type DecisionTaskScheduledEventAttributes struct { _ struct{} `type:"structure"` @@ -4827,6 +5662,24 @@ func (s DecisionTaskScheduledEventAttributes) GoString() string { return s.String() } +// SetStartToCloseTimeout sets the StartToCloseTimeout field's value. +func (s *DecisionTaskScheduledEventAttributes) SetStartToCloseTimeout(v string) *DecisionTaskScheduledEventAttributes { + s.StartToCloseTimeout = &v + return s +} + +// SetTaskList sets the TaskList field's value. +func (s *DecisionTaskScheduledEventAttributes) SetTaskList(v *TaskList) *DecisionTaskScheduledEventAttributes { + s.TaskList = v + return s +} + +// SetTaskPriority sets the TaskPriority field's value. +func (s *DecisionTaskScheduledEventAttributes) SetTaskPriority(v string) *DecisionTaskScheduledEventAttributes { + s.TaskPriority = &v + return s +} + // Provides details of the DecisionTaskStarted event. type DecisionTaskStartedEventAttributes struct { _ struct{} `type:"structure"` @@ -4853,6 +5706,18 @@ func (s DecisionTaskStartedEventAttributes) GoString() string { return s.String() } +// SetIdentity sets the Identity field's value. +func (s *DecisionTaskStartedEventAttributes) SetIdentity(v string) *DecisionTaskStartedEventAttributes { + s.Identity = &v + return s +} + +// SetScheduledEventId sets the ScheduledEventId field's value. +func (s *DecisionTaskStartedEventAttributes) SetScheduledEventId(v int64) *DecisionTaskStartedEventAttributes { + s.ScheduledEventId = &v + return s +} + // Provides details of the DecisionTaskTimedOut event. type DecisionTaskTimedOutEventAttributes struct { _ struct{} `type:"structure"` @@ -4887,6 +5752,24 @@ func (s DecisionTaskTimedOutEventAttributes) GoString() string { return s.String() } +// SetScheduledEventId sets the ScheduledEventId field's value. +func (s *DecisionTaskTimedOutEventAttributes) SetScheduledEventId(v int64) *DecisionTaskTimedOutEventAttributes { + s.ScheduledEventId = &v + return s +} + +// SetStartedEventId sets the StartedEventId field's value. +func (s *DecisionTaskTimedOutEventAttributes) SetStartedEventId(v int64) *DecisionTaskTimedOutEventAttributes { + s.StartedEventId = &v + return s +} + +// SetTimeoutType sets the TimeoutType field's value. +func (s *DecisionTaskTimedOutEventAttributes) SetTimeoutType(v string) *DecisionTaskTimedOutEventAttributes { + s.TimeoutType = &v + return s +} + type DeprecateActivityTypeInput struct { _ struct{} `type:"structure"` @@ -4935,6 +5818,18 @@ func (s *DeprecateActivityTypeInput) Validate() error { return nil } +// SetActivityType sets the ActivityType field's value. +func (s *DeprecateActivityTypeInput) SetActivityType(v *ActivityType) *DeprecateActivityTypeInput { + s.ActivityType = v + return s +} + +// SetDomain sets the Domain field's value. +func (s *DeprecateActivityTypeInput) SetDomain(v string) *DeprecateActivityTypeInput { + s.Domain = &v + return s +} + type DeprecateActivityTypeOutput struct { _ struct{} `type:"structure"` } @@ -4984,6 +5879,12 @@ func (s *DeprecateDomainInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *DeprecateDomainInput) SetName(v string) *DeprecateDomainInput { + s.Name = &v + return s +} + type DeprecateDomainOutput struct { _ struct{} `type:"structure"` } @@ -5046,6 +5947,18 @@ func (s *DeprecateWorkflowTypeInput) Validate() error { return nil } +// SetDomain sets the Domain field's value. +func (s *DeprecateWorkflowTypeInput) SetDomain(v string) *DeprecateWorkflowTypeInput { + s.Domain = &v + return s +} + +// SetWorkflowType sets the WorkflowType field's value. +func (s *DeprecateWorkflowTypeInput) SetWorkflowType(v *WorkflowType) *DeprecateWorkflowTypeInput { + s.WorkflowType = v + return s +} + type DeprecateWorkflowTypeOutput struct { _ struct{} `type:"structure"` } @@ -5109,6 +6022,18 @@ func (s *DescribeActivityTypeInput) Validate() error { return nil } +// SetActivityType sets the ActivityType field's value. +func (s *DescribeActivityTypeInput) SetActivityType(v *ActivityType) *DescribeActivityTypeInput { + s.ActivityType = v + return s +} + +// SetDomain sets the Domain field's value. +func (s *DescribeActivityTypeInput) SetDomain(v string) *DescribeActivityTypeInput { + s.Domain = &v + return s +} + // Detailed information about an activity type. type DescribeActivityTypeOutput struct { _ struct{} `type:"structure"` @@ -5123,10 +6048,11 @@ type DescribeActivityTypeOutput struct { // The status of activity type (returned in the ActivityTypeInfo structure) // can be one of the following. // - // REGISTERED: The type is registered and available. Workers supporting this - // type should be running. DEPRECATED: The type was deprecated using DeprecateActivityType, - // but is still in use. You should keep workers supporting this type running. - // You cannot create new tasks of this type. + // * REGISTERED: The type is registered and available. Workers supporting + // this type should be running. + // * DEPRECATED: The type was deprecated using DeprecateActivityType, but + // is still in use. You should keep workers supporting this type running. + // You cannot create new tasks of this type. // // TypeInfo is a required field TypeInfo *ActivityTypeInfo `locationName:"typeInfo" type:"structure" required:"true"` @@ -5142,6 +6068,18 @@ func (s DescribeActivityTypeOutput) GoString() string { return s.String() } +// SetConfiguration sets the Configuration field's value. +func (s *DescribeActivityTypeOutput) SetConfiguration(v *ActivityTypeConfiguration) *DescribeActivityTypeOutput { + s.Configuration = v + return s +} + +// SetTypeInfo sets the TypeInfo field's value. +func (s *DescribeActivityTypeOutput) SetTypeInfo(v *ActivityTypeInfo) *DescribeActivityTypeOutput { + s.TypeInfo = v + return s +} + type DescribeDomainInput struct { _ struct{} `type:"structure"` @@ -5177,6 +6115,12 @@ func (s *DescribeDomainInput) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *DescribeDomainInput) SetName(v string) *DescribeDomainInput { + s.Name = &v + return s +} + // Contains details of a domain. type DescribeDomainOutput struct { _ struct{} `type:"structure"` @@ -5202,6 +6146,18 @@ func (s DescribeDomainOutput) GoString() string { return s.String() } +// SetConfiguration sets the Configuration field's value. +func (s *DescribeDomainOutput) SetConfiguration(v *DomainConfiguration) *DescribeDomainOutput { + s.Configuration = v + return s +} + +// SetDomainInfo sets the DomainInfo field's value. +func (s *DescribeDomainOutput) SetDomainInfo(v *DomainInfo) *DescribeDomainOutput { + s.DomainInfo = v + return s +} + type DescribeWorkflowExecutionInput struct { _ struct{} `type:"structure"` @@ -5250,6 +6206,18 @@ func (s *DescribeWorkflowExecutionInput) Validate() error { return nil } +// SetDomain sets the Domain field's value. +func (s *DescribeWorkflowExecutionInput) SetDomain(v string) *DescribeWorkflowExecutionInput { + s.Domain = &v + return s +} + +// SetExecution sets the Execution field's value. +func (s *DescribeWorkflowExecutionInput) SetExecution(v *WorkflowExecution) *DescribeWorkflowExecutionInput { + s.Execution = v + return s +} + // Contains details about a workflow execution. type DescribeWorkflowExecutionOutput struct { _ struct{} `type:"structure"` @@ -5292,6 +6260,36 @@ func (s DescribeWorkflowExecutionOutput) GoString() string { return s.String() } +// SetExecutionConfiguration sets the ExecutionConfiguration field's value. +func (s *DescribeWorkflowExecutionOutput) SetExecutionConfiguration(v *WorkflowExecutionConfiguration) *DescribeWorkflowExecutionOutput { + s.ExecutionConfiguration = v + return s +} + +// SetExecutionInfo sets the ExecutionInfo field's value. +func (s *DescribeWorkflowExecutionOutput) SetExecutionInfo(v *WorkflowExecutionInfo) *DescribeWorkflowExecutionOutput { + s.ExecutionInfo = v + return s +} + +// SetLatestActivityTaskTimestamp sets the LatestActivityTaskTimestamp field's value. +func (s *DescribeWorkflowExecutionOutput) SetLatestActivityTaskTimestamp(v time.Time) *DescribeWorkflowExecutionOutput { + s.LatestActivityTaskTimestamp = &v + return s +} + +// SetLatestExecutionContext sets the LatestExecutionContext field's value. +func (s *DescribeWorkflowExecutionOutput) SetLatestExecutionContext(v string) *DescribeWorkflowExecutionOutput { + s.LatestExecutionContext = &v + return s +} + +// SetOpenCounts sets the OpenCounts field's value. +func (s *DescribeWorkflowExecutionOutput) SetOpenCounts(v *WorkflowExecutionOpenCounts) *DescribeWorkflowExecutionOutput { + s.OpenCounts = v + return s +} + type DescribeWorkflowTypeInput struct { _ struct{} `type:"structure"` @@ -5340,6 +6338,18 @@ func (s *DescribeWorkflowTypeInput) Validate() error { return nil } +// SetDomain sets the Domain field's value. +func (s *DescribeWorkflowTypeInput) SetDomain(v string) *DescribeWorkflowTypeInput { + s.Domain = &v + return s +} + +// SetWorkflowType sets the WorkflowType field's value. +func (s *DescribeWorkflowTypeInput) SetWorkflowType(v *WorkflowType) *DescribeWorkflowTypeInput { + s.WorkflowType = v + return s +} + // Contains details about a workflow type. type DescribeWorkflowTypeOutput struct { _ struct{} `type:"structure"` @@ -5354,10 +6364,11 @@ type DescribeWorkflowTypeOutput struct { // The status of the workflow type (returned in the WorkflowTypeInfo structure) // can be one of the following. // - // REGISTERED: The type is registered and available. Workers supporting this - // type should be running. DEPRECATED: The type was deprecated using DeprecateWorkflowType, - // but is still in use. You should keep workers supporting this type running. - // You cannot create new workflow executions of this type. + // * REGISTERED: The type is registered and available. Workers supporting + // this type should be running. + // * DEPRECATED: The type was deprecated using DeprecateWorkflowType, but + // is still in use. You should keep workers supporting this type running. + // You cannot create new workflow executions of this type. // // TypeInfo is a required field TypeInfo *WorkflowTypeInfo `locationName:"typeInfo" type:"structure" required:"true"` @@ -5373,6 +6384,18 @@ func (s DescribeWorkflowTypeOutput) GoString() string { return s.String() } +// SetConfiguration sets the Configuration field's value. +func (s *DescribeWorkflowTypeOutput) SetConfiguration(v *WorkflowTypeConfiguration) *DescribeWorkflowTypeOutput { + s.Configuration = v + return s +} + +// SetTypeInfo sets the TypeInfo field's value. +func (s *DescribeWorkflowTypeOutput) SetTypeInfo(v *WorkflowTypeInfo) *DescribeWorkflowTypeOutput { + s.TypeInfo = v + return s +} + // Contains the configuration settings of a domain. type DomainConfiguration struct { _ struct{} `type:"structure"` @@ -5393,6 +6416,12 @@ func (s DomainConfiguration) GoString() string { return s.String() } +// SetWorkflowExecutionRetentionPeriodInDays sets the WorkflowExecutionRetentionPeriodInDays field's value. +func (s *DomainConfiguration) SetWorkflowExecutionRetentionPeriodInDays(v string) *DomainConfiguration { + s.WorkflowExecutionRetentionPeriodInDays = &v + return s +} + // Contains general information about a domain. type DomainInfo struct { _ struct{} `type:"structure"` @@ -5407,10 +6436,12 @@ type DomainInfo struct { // The status of the domain: // - // REGISTERED: The domain is properly registered and available. You can use - // this domain for registering types and creating new workflow executions. - // DEPRECATED: The domain was deprecated using DeprecateDomain, but is still - // in use. You should not create new workflow executions in this domain. + // * REGISTERED: The domain is properly registered and available. You can + // use this domain for registering types and creating new workflow executions. + // + // * DEPRECATED: The domain was deprecated using DeprecateDomain, but is + // still in use. You should not create new workflow executions in this domain. + // // // Status is a required field Status *string `locationName:"status" type:"string" required:"true" enum:"RegistrationStatus"` @@ -5426,6 +6457,24 @@ func (s DomainInfo) GoString() string { return s.String() } +// SetDescription sets the Description field's value. +func (s *DomainInfo) SetDescription(v string) *DomainInfo { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *DomainInfo) SetName(v string) *DomainInfo { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DomainInfo) SetStatus(v string) *DomainInfo { + s.Status = &v + return s +} + // Used to filter the workflow executions in visibility APIs by various time-based // rules. Each parameter, if specified, defines a rule that must be satisfied // by each returned query result. The parameter values are in the Unix Time @@ -5466,6 +6515,18 @@ func (s *ExecutionTimeFilter) Validate() error { return nil } +// SetLatestDate sets the LatestDate field's value. +func (s *ExecutionTimeFilter) SetLatestDate(v time.Time) *ExecutionTimeFilter { + s.LatestDate = &v + return s +} + +// SetOldestDate sets the OldestDate field's value. +func (s *ExecutionTimeFilter) SetOldestDate(v time.Time) *ExecutionTimeFilter { + s.OldestDate = &v + return s +} + // Provides details of the ExternalWorkflowExecutionCancelRequested event. type ExternalWorkflowExecutionCancelRequestedEventAttributes struct { _ struct{} `type:"structure"` @@ -5494,6 +6555,18 @@ func (s ExternalWorkflowExecutionCancelRequestedEventAttributes) GoString() stri return s.String() } +// SetInitiatedEventId sets the InitiatedEventId field's value. +func (s *ExternalWorkflowExecutionCancelRequestedEventAttributes) SetInitiatedEventId(v int64) *ExternalWorkflowExecutionCancelRequestedEventAttributes { + s.InitiatedEventId = &v + return s +} + +// SetWorkflowExecution sets the WorkflowExecution field's value. +func (s *ExternalWorkflowExecutionCancelRequestedEventAttributes) SetWorkflowExecution(v *WorkflowExecution) *ExternalWorkflowExecutionCancelRequestedEventAttributes { + s.WorkflowExecution = v + return s +} + // Provides details of the ExternalWorkflowExecutionSignaled event. type ExternalWorkflowExecutionSignaledEventAttributes struct { _ struct{} `type:"structure"` @@ -5522,6 +6595,18 @@ func (s ExternalWorkflowExecutionSignaledEventAttributes) GoString() string { return s.String() } +// SetInitiatedEventId sets the InitiatedEventId field's value. +func (s *ExternalWorkflowExecutionSignaledEventAttributes) SetInitiatedEventId(v int64) *ExternalWorkflowExecutionSignaledEventAttributes { + s.InitiatedEventId = &v + return s +} + +// SetWorkflowExecution sets the WorkflowExecution field's value. +func (s *ExternalWorkflowExecutionSignaledEventAttributes) SetWorkflowExecution(v *WorkflowExecution) *ExternalWorkflowExecutionSignaledEventAttributes { + s.WorkflowExecution = v + return s +} + // Provides details of the FailWorkflowExecution decision. // // Access Control @@ -5529,10 +6614,13 @@ func (s ExternalWorkflowExecutionSignaledEventAttributes) GoString() string { // You can use IAM policies to control this decision's access to Amazon SWF // resources as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -5557,6 +6645,18 @@ func (s FailWorkflowExecutionDecisionAttributes) GoString() string { return s.String() } +// SetDetails sets the Details field's value. +func (s *FailWorkflowExecutionDecisionAttributes) SetDetails(v string) *FailWorkflowExecutionDecisionAttributes { + s.Details = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *FailWorkflowExecutionDecisionAttributes) SetReason(v string) *FailWorkflowExecutionDecisionAttributes { + s.Reason = &v + return s +} + // Provides details of the FailWorkflowExecutionFailed event. type FailWorkflowExecutionFailedEventAttributes struct { _ struct{} `type:"structure"` @@ -5564,8 +6664,8 @@ type FailWorkflowExecutionFailedEventAttributes struct { // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // - // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because - // it lacked sufficient permissions. For details and example IAM policies, see + // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it + // lacked sufficient permissions. For details and example IAM policies, see // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Cause is a required field @@ -5590,6 +6690,18 @@ func (s FailWorkflowExecutionFailedEventAttributes) GoString() string { return s.String() } +// SetCause sets the Cause field's value. +func (s *FailWorkflowExecutionFailedEventAttributes) SetCause(v string) *FailWorkflowExecutionFailedEventAttributes { + s.Cause = &v + return s +} + +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *FailWorkflowExecutionFailedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *FailWorkflowExecutionFailedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + type GetWorkflowExecutionHistoryInput struct { _ struct{} `type:"structure"` @@ -5659,6 +6771,36 @@ func (s *GetWorkflowExecutionHistoryInput) Validate() error { return nil } +// SetDomain sets the Domain field's value. +func (s *GetWorkflowExecutionHistoryInput) SetDomain(v string) *GetWorkflowExecutionHistoryInput { + s.Domain = &v + return s +} + +// SetExecution sets the Execution field's value. +func (s *GetWorkflowExecutionHistoryInput) SetExecution(v *WorkflowExecution) *GetWorkflowExecutionHistoryInput { + s.Execution = v + return s +} + +// SetMaximumPageSize sets the MaximumPageSize field's value. +func (s *GetWorkflowExecutionHistoryInput) SetMaximumPageSize(v int64) *GetWorkflowExecutionHistoryInput { + s.MaximumPageSize = &v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetWorkflowExecutionHistoryInput) SetNextPageToken(v string) *GetWorkflowExecutionHistoryInput { + s.NextPageToken = &v + return s +} + +// SetReverseOrder sets the ReverseOrder field's value. +func (s *GetWorkflowExecutionHistoryInput) SetReverseOrder(v bool) *GetWorkflowExecutionHistoryInput { + s.ReverseOrder = &v + return s +} + // Paginated representation of a workflow history for a workflow execution. // This is the up to date, complete and authoritative record of the events related // to all tasks and events in the life of the workflow execution. @@ -5689,75 +6831,123 @@ func (s GetWorkflowExecutionHistoryOutput) GoString() string { return s.String() } +// SetEvents sets the Events field's value. +func (s *GetWorkflowExecutionHistoryOutput) SetEvents(v []*HistoryEvent) *GetWorkflowExecutionHistoryOutput { + s.Events = v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetWorkflowExecutionHistoryOutput) SetNextPageToken(v string) *GetWorkflowExecutionHistoryOutput { + s.NextPageToken = &v + return s +} + // Event within a workflow execution. A history event can be one of these types: // -// WorkflowExecutionStarted: The workflow execution was started. WorkflowExecutionCompleted: -// The workflow execution was closed due to successful completion. WorkflowExecutionFailed: -// The workflow execution closed due to a failure. WorkflowExecutionTimedOut: -// The workflow execution was closed because a time out was exceeded. WorkflowExecutionCanceled: -// The workflow execution was successfully canceled and closed. WorkflowExecutionTerminated: -// The workflow execution was terminated. WorkflowExecutionContinuedAsNew: -// The workflow execution was closed and a new execution of the same type was -// created with the same workflowId. WorkflowExecutionCancelRequested: A request -// to cancel this workflow execution was made. DecisionTaskScheduled: A decision -// task was scheduled for the workflow execution. DecisionTaskStarted: The -// decision task was dispatched to a decider. DecisionTaskCompleted: The decider -// successfully completed a decision task by calling RespondDecisionTaskCompleted. -// DecisionTaskTimedOut: The decision task timed out. ActivityTaskScheduled: -// An activity task was scheduled for execution. ScheduleActivityTaskFailed: -// Failed to process ScheduleActivityTask decision. This happens when the decision -// is not configured properly, for example the activity type specified is not -// registered. ActivityTaskStarted: The scheduled activity task was dispatched -// to a worker. ActivityTaskCompleted: An activity worker successfully completed -// an activity task by calling RespondActivityTaskCompleted. ActivityTaskFailed: -// An activity worker failed an activity task by calling RespondActivityTaskFailed. -// ActivityTaskTimedOut: The activity task timed out. ActivityTaskCanceled: -// The activity task was successfully canceled. ActivityTaskCancelRequested: -// A RequestCancelActivityTask decision was received by the system. RequestCancelActivityTaskFailed: -// Failed to process RequestCancelActivityTask decision. This happens when the -// decision is not configured properly. WorkflowExecutionSignaled: An external -// signal was received for the workflow execution. MarkerRecorded: A marker -// was recorded in the workflow history as the result of a RecordMarker decision. -// TimerStarted: A timer was started for the workflow execution due to a StartTimer -// decision. StartTimerFailed: Failed to process StartTimer decision. This -// happens when the decision is not configured properly, for example a timer -// already exists with the specified timer ID. TimerFired: A timer, previously -// started for this workflow execution, fired. TimerCanceled: A timer, previously -// started for this workflow execution, was successfully canceled. CancelTimerFailed: -// Failed to process CancelTimer decision. This happens when the decision is -// not configured properly, for example no timer exists with the specified timer -// ID. StartChildWorkflowExecutionInitiated: A request was made to start a -// child workflow execution. StartChildWorkflowExecutionFailed: Failed to process -// StartChildWorkflowExecution decision. This happens when the decision is not -// configured properly, for example the workflow type specified is not registered. -// ChildWorkflowExecutionStarted: A child workflow execution was successfully -// started. ChildWorkflowExecutionCompleted: A child workflow execution, started -// by this workflow execution, completed successfully and was closed. ChildWorkflowExecutionFailed: -// A child workflow execution, started by this workflow execution, failed to -// complete successfully and was closed. ChildWorkflowExecutionTimedOut: A -// child workflow execution, started by this workflow execution, timed out and -// was closed. ChildWorkflowExecutionCanceled: A child workflow execution, -// started by this workflow execution, was canceled and closed. ChildWorkflowExecutionTerminated: -// A child workflow execution, started by this workflow execution, was terminated. -// SignalExternalWorkflowExecutionInitiated: A request to signal an external -// workflow was made. ExternalWorkflowExecutionSignaled: A signal, requested -// by this workflow execution, was successfully delivered to the target external -// workflow execution. SignalExternalWorkflowExecutionFailed: The request to -// signal an external workflow execution failed. RequestCancelExternalWorkflowExecutionInitiated: -// A request was made to request the cancellation of an external workflow execution. -// ExternalWorkflowExecutionCancelRequested: Request to cancel an external -// workflow execution was successfully delivered to the target execution. RequestCancelExternalWorkflowExecutionFailed: -// Request to cancel an external workflow execution failed. LambdaFunctionScheduled: -// An AWS Lambda function was scheduled for execution. LambdaFunctionStarted: -// The scheduled function was invoked in the AWS Lambda service. LambdaFunctionCompleted: -// The AWS Lambda function successfully completed. LambdaFunctionFailed: The -// AWS Lambda function execution failed. LambdaFunctionTimedOut: The AWS Lambda -// function execution timed out. ScheduleLambdaFunctionFailed: Failed to process -// ScheduleLambdaFunction decision. This happens when the workflow execution -// does not have the proper IAM role attached to invoke AWS Lambda functions. -// StartLambdaFunctionFailed: Failed to invoke the scheduled function in the -// AWS Lambda service. This happens when the AWS Lambda service is not available -// in the current region, or received too many requests. +// * WorkflowExecutionStarted: The workflow execution was started. +// * WorkflowExecutionCompleted: The workflow execution was closed due to +// successful completion. +// * WorkflowExecutionFailed: The workflow execution closed due to a failure. +// +// * WorkflowExecutionTimedOut: The workflow execution was closed because +// a time out was exceeded. +// * WorkflowExecutionCanceled: The workflow execution was successfully canceled +// and closed. +// * WorkflowExecutionTerminated: The workflow execution was terminated. +// +// * WorkflowExecutionContinuedAsNew: The workflow execution was closed and +// a new execution of the same type was created with the same workflowId. +// +// * WorkflowExecutionCancelRequested: A request to cancel this workflow +// execution was made. +// * DecisionTaskScheduled: A decision task was scheduled for the workflow +// execution. +// * DecisionTaskStarted: The decision task was dispatched to a decider. +// +// * DecisionTaskCompleted: The decider successfully completed a decision +// task by calling RespondDecisionTaskCompleted. +// * DecisionTaskTimedOut: The decision task timed out. +// * ActivityTaskScheduled: An activity task was scheduled for execution. +// +// * ScheduleActivityTaskFailed: Failed to process ScheduleActivityTask decision. +// This happens when the decision is not configured properly, for example +// the activity type specified is not registered. +// * ActivityTaskStarted: The scheduled activity task was dispatched to a +// worker. +// * ActivityTaskCompleted: An activity worker successfully completed an +// activity task by calling RespondActivityTaskCompleted. +// * ActivityTaskFailed: An activity worker failed an activity task by calling +// RespondActivityTaskFailed. +// * ActivityTaskTimedOut: The activity task timed out. +// * ActivityTaskCanceled: The activity task was successfully canceled. +// * ActivityTaskCancelRequested: A RequestCancelActivityTask decision was +// received by the system. +// * RequestCancelActivityTaskFailed: Failed to process RequestCancelActivityTask +// decision. This happens when the decision is not configured properly. +// * WorkflowExecutionSignaled: An external signal was received for the workflow +// execution. +// * MarkerRecorded: A marker was recorded in the workflow history as the +// result of a RecordMarker decision. +// * TimerStarted: A timer was started for the workflow execution due to +// a StartTimer decision. +// * StartTimerFailed: Failed to process StartTimer decision. This happens +// when the decision is not configured properly, for example a timer already +// exists with the specified timer ID. +// * TimerFired: A timer, previously started for this workflow execution, +// fired. +// * TimerCanceled: A timer, previously started for this workflow execution, +// was successfully canceled. +// * CancelTimerFailed: Failed to process CancelTimer decision. This happens +// when the decision is not configured properly, for example no timer exists +// with the specified timer ID. +// * StartChildWorkflowExecutionInitiated: A request was made to start a +// child workflow execution. +// * StartChildWorkflowExecutionFailed: Failed to process StartChildWorkflowExecution +// decision. This happens when the decision is not configured properly, for +// example the workflow type specified is not registered. +// * ChildWorkflowExecutionStarted: A child workflow execution was successfully +// started. +// * ChildWorkflowExecutionCompleted: A child workflow execution, started +// by this workflow execution, completed successfully and was closed. +// * ChildWorkflowExecutionFailed: A child workflow execution, started by +// this workflow execution, failed to complete successfully and was closed. +// +// * ChildWorkflowExecutionTimedOut: A child workflow execution, started +// by this workflow execution, timed out and was closed. +// * ChildWorkflowExecutionCanceled: A child workflow execution, started +// by this workflow execution, was canceled and closed. +// * ChildWorkflowExecutionTerminated: A child workflow execution, started +// by this workflow execution, was terminated. +// * SignalExternalWorkflowExecutionInitiated: A request to signal an external +// workflow was made. +// * ExternalWorkflowExecutionSignaled: A signal, requested by this workflow +// execution, was successfully delivered to the target external workflow +// execution. +// * SignalExternalWorkflowExecutionFailed: The request to signal an external +// workflow execution failed. +// * RequestCancelExternalWorkflowExecutionInitiated: A request was made +// to request the cancellation of an external workflow execution. +// * ExternalWorkflowExecutionCancelRequested: Request to cancel an external +// workflow execution was successfully delivered to the target execution. +// +// * RequestCancelExternalWorkflowExecutionFailed: Request to cancel an external +// workflow execution failed. +// * LambdaFunctionScheduled: An AWS Lambda function was scheduled for execution. +// +// * LambdaFunctionStarted: The scheduled function was invoked in the AWS +// Lambda service. +// * LambdaFunctionCompleted: The AWS Lambda function successfully completed. +// +// * LambdaFunctionFailed: The AWS Lambda function execution failed. +// * LambdaFunctionTimedOut: The AWS Lambda function execution timed out. +// +// * ScheduleLambdaFunctionFailed: Failed to process ScheduleLambdaFunction +// decision. This happens when the workflow execution does not have the proper +// IAM role attached to invoke AWS Lambda functions. +// * StartLambdaFunctionFailed: Failed to invoke the scheduled function in +// the AWS Lambda service. This happens when the AWS Lambda service is not +// available in the current region, or received too many requests. type HistoryEvent struct { _ struct{} `type:"structure"` @@ -5983,55 +7173,397 @@ type HistoryEvent struct { // other event types. WorkflowExecutionCancelRequestedEventAttributes *WorkflowExecutionCancelRequestedEventAttributes `locationName:"workflowExecutionCancelRequestedEventAttributes" type:"structure"` - // If the event is of type WorkflowExecutionCanceled then this member is set - // and provides detailed information about the event. It is not set for other - // event types. - WorkflowExecutionCanceledEventAttributes *WorkflowExecutionCanceledEventAttributes `locationName:"workflowExecutionCanceledEventAttributes" type:"structure"` + // If the event is of type WorkflowExecutionCanceled then this member is set + // and provides detailed information about the event. It is not set for other + // event types. + WorkflowExecutionCanceledEventAttributes *WorkflowExecutionCanceledEventAttributes `locationName:"workflowExecutionCanceledEventAttributes" type:"structure"` + + // If the event is of type WorkflowExecutionCompleted then this member is set + // and provides detailed information about the event. It is not set for other + // event types. + WorkflowExecutionCompletedEventAttributes *WorkflowExecutionCompletedEventAttributes `locationName:"workflowExecutionCompletedEventAttributes" type:"structure"` + + // If the event is of type WorkflowExecutionContinuedAsNew then this member + // is set and provides detailed information about the event. It is not set for + // other event types. + WorkflowExecutionContinuedAsNewEventAttributes *WorkflowExecutionContinuedAsNewEventAttributes `locationName:"workflowExecutionContinuedAsNewEventAttributes" type:"structure"` + + // If the event is of type WorkflowExecutionFailed then this member is set and + // provides detailed information about the event. It is not set for other event + // types. + WorkflowExecutionFailedEventAttributes *WorkflowExecutionFailedEventAttributes `locationName:"workflowExecutionFailedEventAttributes" type:"structure"` + + // If the event is of type WorkflowExecutionSignaled then this member is set + // and provides detailed information about the event. It is not set for other + // event types. + WorkflowExecutionSignaledEventAttributes *WorkflowExecutionSignaledEventAttributes `locationName:"workflowExecutionSignaledEventAttributes" type:"structure"` + + // If the event is of type WorkflowExecutionStarted then this member is set + // and provides detailed information about the event. It is not set for other + // event types. + WorkflowExecutionStartedEventAttributes *WorkflowExecutionStartedEventAttributes `locationName:"workflowExecutionStartedEventAttributes" type:"structure"` + + // If the event is of type WorkflowExecutionTerminated then this member is set + // and provides detailed information about the event. It is not set for other + // event types. + WorkflowExecutionTerminatedEventAttributes *WorkflowExecutionTerminatedEventAttributes `locationName:"workflowExecutionTerminatedEventAttributes" type:"structure"` + + // If the event is of type WorkflowExecutionTimedOut then this member is set + // and provides detailed information about the event. It is not set for other + // event types. + WorkflowExecutionTimedOutEventAttributes *WorkflowExecutionTimedOutEventAttributes `locationName:"workflowExecutionTimedOutEventAttributes" type:"structure"` +} + +// String returns the string representation +func (s HistoryEvent) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HistoryEvent) GoString() string { + return s.String() +} + +// SetActivityTaskCancelRequestedEventAttributes sets the ActivityTaskCancelRequestedEventAttributes field's value. +func (s *HistoryEvent) SetActivityTaskCancelRequestedEventAttributes(v *ActivityTaskCancelRequestedEventAttributes) *HistoryEvent { + s.ActivityTaskCancelRequestedEventAttributes = v + return s +} + +// SetActivityTaskCanceledEventAttributes sets the ActivityTaskCanceledEventAttributes field's value. +func (s *HistoryEvent) SetActivityTaskCanceledEventAttributes(v *ActivityTaskCanceledEventAttributes) *HistoryEvent { + s.ActivityTaskCanceledEventAttributes = v + return s +} + +// SetActivityTaskCompletedEventAttributes sets the ActivityTaskCompletedEventAttributes field's value. +func (s *HistoryEvent) SetActivityTaskCompletedEventAttributes(v *ActivityTaskCompletedEventAttributes) *HistoryEvent { + s.ActivityTaskCompletedEventAttributes = v + return s +} + +// SetActivityTaskFailedEventAttributes sets the ActivityTaskFailedEventAttributes field's value. +func (s *HistoryEvent) SetActivityTaskFailedEventAttributes(v *ActivityTaskFailedEventAttributes) *HistoryEvent { + s.ActivityTaskFailedEventAttributes = v + return s +} + +// SetActivityTaskScheduledEventAttributes sets the ActivityTaskScheduledEventAttributes field's value. +func (s *HistoryEvent) SetActivityTaskScheduledEventAttributes(v *ActivityTaskScheduledEventAttributes) *HistoryEvent { + s.ActivityTaskScheduledEventAttributes = v + return s +} + +// SetActivityTaskStartedEventAttributes sets the ActivityTaskStartedEventAttributes field's value. +func (s *HistoryEvent) SetActivityTaskStartedEventAttributes(v *ActivityTaskStartedEventAttributes) *HistoryEvent { + s.ActivityTaskStartedEventAttributes = v + return s +} + +// SetActivityTaskTimedOutEventAttributes sets the ActivityTaskTimedOutEventAttributes field's value. +func (s *HistoryEvent) SetActivityTaskTimedOutEventAttributes(v *ActivityTaskTimedOutEventAttributes) *HistoryEvent { + s.ActivityTaskTimedOutEventAttributes = v + return s +} + +// SetCancelTimerFailedEventAttributes sets the CancelTimerFailedEventAttributes field's value. +func (s *HistoryEvent) SetCancelTimerFailedEventAttributes(v *CancelTimerFailedEventAttributes) *HistoryEvent { + s.CancelTimerFailedEventAttributes = v + return s +} + +// SetCancelWorkflowExecutionFailedEventAttributes sets the CancelWorkflowExecutionFailedEventAttributes field's value. +func (s *HistoryEvent) SetCancelWorkflowExecutionFailedEventAttributes(v *CancelWorkflowExecutionFailedEventAttributes) *HistoryEvent { + s.CancelWorkflowExecutionFailedEventAttributes = v + return s +} + +// SetChildWorkflowExecutionCanceledEventAttributes sets the ChildWorkflowExecutionCanceledEventAttributes field's value. +func (s *HistoryEvent) SetChildWorkflowExecutionCanceledEventAttributes(v *ChildWorkflowExecutionCanceledEventAttributes) *HistoryEvent { + s.ChildWorkflowExecutionCanceledEventAttributes = v + return s +} + +// SetChildWorkflowExecutionCompletedEventAttributes sets the ChildWorkflowExecutionCompletedEventAttributes field's value. +func (s *HistoryEvent) SetChildWorkflowExecutionCompletedEventAttributes(v *ChildWorkflowExecutionCompletedEventAttributes) *HistoryEvent { + s.ChildWorkflowExecutionCompletedEventAttributes = v + return s +} + +// SetChildWorkflowExecutionFailedEventAttributes sets the ChildWorkflowExecutionFailedEventAttributes field's value. +func (s *HistoryEvent) SetChildWorkflowExecutionFailedEventAttributes(v *ChildWorkflowExecutionFailedEventAttributes) *HistoryEvent { + s.ChildWorkflowExecutionFailedEventAttributes = v + return s +} + +// SetChildWorkflowExecutionStartedEventAttributes sets the ChildWorkflowExecutionStartedEventAttributes field's value. +func (s *HistoryEvent) SetChildWorkflowExecutionStartedEventAttributes(v *ChildWorkflowExecutionStartedEventAttributes) *HistoryEvent { + s.ChildWorkflowExecutionStartedEventAttributes = v + return s +} + +// SetChildWorkflowExecutionTerminatedEventAttributes sets the ChildWorkflowExecutionTerminatedEventAttributes field's value. +func (s *HistoryEvent) SetChildWorkflowExecutionTerminatedEventAttributes(v *ChildWorkflowExecutionTerminatedEventAttributes) *HistoryEvent { + s.ChildWorkflowExecutionTerminatedEventAttributes = v + return s +} + +// SetChildWorkflowExecutionTimedOutEventAttributes sets the ChildWorkflowExecutionTimedOutEventAttributes field's value. +func (s *HistoryEvent) SetChildWorkflowExecutionTimedOutEventAttributes(v *ChildWorkflowExecutionTimedOutEventAttributes) *HistoryEvent { + s.ChildWorkflowExecutionTimedOutEventAttributes = v + return s +} + +// SetCompleteWorkflowExecutionFailedEventAttributes sets the CompleteWorkflowExecutionFailedEventAttributes field's value. +func (s *HistoryEvent) SetCompleteWorkflowExecutionFailedEventAttributes(v *CompleteWorkflowExecutionFailedEventAttributes) *HistoryEvent { + s.CompleteWorkflowExecutionFailedEventAttributes = v + return s +} + +// SetContinueAsNewWorkflowExecutionFailedEventAttributes sets the ContinueAsNewWorkflowExecutionFailedEventAttributes field's value. +func (s *HistoryEvent) SetContinueAsNewWorkflowExecutionFailedEventAttributes(v *ContinueAsNewWorkflowExecutionFailedEventAttributes) *HistoryEvent { + s.ContinueAsNewWorkflowExecutionFailedEventAttributes = v + return s +} + +// SetDecisionTaskCompletedEventAttributes sets the DecisionTaskCompletedEventAttributes field's value. +func (s *HistoryEvent) SetDecisionTaskCompletedEventAttributes(v *DecisionTaskCompletedEventAttributes) *HistoryEvent { + s.DecisionTaskCompletedEventAttributes = v + return s +} + +// SetDecisionTaskScheduledEventAttributes sets the DecisionTaskScheduledEventAttributes field's value. +func (s *HistoryEvent) SetDecisionTaskScheduledEventAttributes(v *DecisionTaskScheduledEventAttributes) *HistoryEvent { + s.DecisionTaskScheduledEventAttributes = v + return s +} + +// SetDecisionTaskStartedEventAttributes sets the DecisionTaskStartedEventAttributes field's value. +func (s *HistoryEvent) SetDecisionTaskStartedEventAttributes(v *DecisionTaskStartedEventAttributes) *HistoryEvent { + s.DecisionTaskStartedEventAttributes = v + return s +} + +// SetDecisionTaskTimedOutEventAttributes sets the DecisionTaskTimedOutEventAttributes field's value. +func (s *HistoryEvent) SetDecisionTaskTimedOutEventAttributes(v *DecisionTaskTimedOutEventAttributes) *HistoryEvent { + s.DecisionTaskTimedOutEventAttributes = v + return s +} + +// SetEventId sets the EventId field's value. +func (s *HistoryEvent) SetEventId(v int64) *HistoryEvent { + s.EventId = &v + return s +} + +// SetEventTimestamp sets the EventTimestamp field's value. +func (s *HistoryEvent) SetEventTimestamp(v time.Time) *HistoryEvent { + s.EventTimestamp = &v + return s +} + +// SetEventType sets the EventType field's value. +func (s *HistoryEvent) SetEventType(v string) *HistoryEvent { + s.EventType = &v + return s +} + +// SetExternalWorkflowExecutionCancelRequestedEventAttributes sets the ExternalWorkflowExecutionCancelRequestedEventAttributes field's value. +func (s *HistoryEvent) SetExternalWorkflowExecutionCancelRequestedEventAttributes(v *ExternalWorkflowExecutionCancelRequestedEventAttributes) *HistoryEvent { + s.ExternalWorkflowExecutionCancelRequestedEventAttributes = v + return s +} + +// SetExternalWorkflowExecutionSignaledEventAttributes sets the ExternalWorkflowExecutionSignaledEventAttributes field's value. +func (s *HistoryEvent) SetExternalWorkflowExecutionSignaledEventAttributes(v *ExternalWorkflowExecutionSignaledEventAttributes) *HistoryEvent { + s.ExternalWorkflowExecutionSignaledEventAttributes = v + return s +} + +// SetFailWorkflowExecutionFailedEventAttributes sets the FailWorkflowExecutionFailedEventAttributes field's value. +func (s *HistoryEvent) SetFailWorkflowExecutionFailedEventAttributes(v *FailWorkflowExecutionFailedEventAttributes) *HistoryEvent { + s.FailWorkflowExecutionFailedEventAttributes = v + return s +} + +// SetLambdaFunctionCompletedEventAttributes sets the LambdaFunctionCompletedEventAttributes field's value. +func (s *HistoryEvent) SetLambdaFunctionCompletedEventAttributes(v *LambdaFunctionCompletedEventAttributes) *HistoryEvent { + s.LambdaFunctionCompletedEventAttributes = v + return s +} + +// SetLambdaFunctionFailedEventAttributes sets the LambdaFunctionFailedEventAttributes field's value. +func (s *HistoryEvent) SetLambdaFunctionFailedEventAttributes(v *LambdaFunctionFailedEventAttributes) *HistoryEvent { + s.LambdaFunctionFailedEventAttributes = v + return s +} + +// SetLambdaFunctionScheduledEventAttributes sets the LambdaFunctionScheduledEventAttributes field's value. +func (s *HistoryEvent) SetLambdaFunctionScheduledEventAttributes(v *LambdaFunctionScheduledEventAttributes) *HistoryEvent { + s.LambdaFunctionScheduledEventAttributes = v + return s +} + +// SetLambdaFunctionStartedEventAttributes sets the LambdaFunctionStartedEventAttributes field's value. +func (s *HistoryEvent) SetLambdaFunctionStartedEventAttributes(v *LambdaFunctionStartedEventAttributes) *HistoryEvent { + s.LambdaFunctionStartedEventAttributes = v + return s +} + +// SetLambdaFunctionTimedOutEventAttributes sets the LambdaFunctionTimedOutEventAttributes field's value. +func (s *HistoryEvent) SetLambdaFunctionTimedOutEventAttributes(v *LambdaFunctionTimedOutEventAttributes) *HistoryEvent { + s.LambdaFunctionTimedOutEventAttributes = v + return s +} + +// SetMarkerRecordedEventAttributes sets the MarkerRecordedEventAttributes field's value. +func (s *HistoryEvent) SetMarkerRecordedEventAttributes(v *MarkerRecordedEventAttributes) *HistoryEvent { + s.MarkerRecordedEventAttributes = v + return s +} + +// SetRecordMarkerFailedEventAttributes sets the RecordMarkerFailedEventAttributes field's value. +func (s *HistoryEvent) SetRecordMarkerFailedEventAttributes(v *RecordMarkerFailedEventAttributes) *HistoryEvent { + s.RecordMarkerFailedEventAttributes = v + return s +} + +// SetRequestCancelActivityTaskFailedEventAttributes sets the RequestCancelActivityTaskFailedEventAttributes field's value. +func (s *HistoryEvent) SetRequestCancelActivityTaskFailedEventAttributes(v *RequestCancelActivityTaskFailedEventAttributes) *HistoryEvent { + s.RequestCancelActivityTaskFailedEventAttributes = v + return s +} + +// SetRequestCancelExternalWorkflowExecutionFailedEventAttributes sets the RequestCancelExternalWorkflowExecutionFailedEventAttributes field's value. +func (s *HistoryEvent) SetRequestCancelExternalWorkflowExecutionFailedEventAttributes(v *RequestCancelExternalWorkflowExecutionFailedEventAttributes) *HistoryEvent { + s.RequestCancelExternalWorkflowExecutionFailedEventAttributes = v + return s +} + +// SetRequestCancelExternalWorkflowExecutionInitiatedEventAttributes sets the RequestCancelExternalWorkflowExecutionInitiatedEventAttributes field's value. +func (s *HistoryEvent) SetRequestCancelExternalWorkflowExecutionInitiatedEventAttributes(v *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) *HistoryEvent { + s.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes = v + return s +} + +// SetScheduleActivityTaskFailedEventAttributes sets the ScheduleActivityTaskFailedEventAttributes field's value. +func (s *HistoryEvent) SetScheduleActivityTaskFailedEventAttributes(v *ScheduleActivityTaskFailedEventAttributes) *HistoryEvent { + s.ScheduleActivityTaskFailedEventAttributes = v + return s +} + +// SetScheduleLambdaFunctionFailedEventAttributes sets the ScheduleLambdaFunctionFailedEventAttributes field's value. +func (s *HistoryEvent) SetScheduleLambdaFunctionFailedEventAttributes(v *ScheduleLambdaFunctionFailedEventAttributes) *HistoryEvent { + s.ScheduleLambdaFunctionFailedEventAttributes = v + return s +} + +// SetSignalExternalWorkflowExecutionFailedEventAttributes sets the SignalExternalWorkflowExecutionFailedEventAttributes field's value. +func (s *HistoryEvent) SetSignalExternalWorkflowExecutionFailedEventAttributes(v *SignalExternalWorkflowExecutionFailedEventAttributes) *HistoryEvent { + s.SignalExternalWorkflowExecutionFailedEventAttributes = v + return s +} + +// SetSignalExternalWorkflowExecutionInitiatedEventAttributes sets the SignalExternalWorkflowExecutionInitiatedEventAttributes field's value. +func (s *HistoryEvent) SetSignalExternalWorkflowExecutionInitiatedEventAttributes(v *SignalExternalWorkflowExecutionInitiatedEventAttributes) *HistoryEvent { + s.SignalExternalWorkflowExecutionInitiatedEventAttributes = v + return s +} + +// SetStartChildWorkflowExecutionFailedEventAttributes sets the StartChildWorkflowExecutionFailedEventAttributes field's value. +func (s *HistoryEvent) SetStartChildWorkflowExecutionFailedEventAttributes(v *StartChildWorkflowExecutionFailedEventAttributes) *HistoryEvent { + s.StartChildWorkflowExecutionFailedEventAttributes = v + return s +} + +// SetStartChildWorkflowExecutionInitiatedEventAttributes sets the StartChildWorkflowExecutionInitiatedEventAttributes field's value. +func (s *HistoryEvent) SetStartChildWorkflowExecutionInitiatedEventAttributes(v *StartChildWorkflowExecutionInitiatedEventAttributes) *HistoryEvent { + s.StartChildWorkflowExecutionInitiatedEventAttributes = v + return s +} + +// SetStartLambdaFunctionFailedEventAttributes sets the StartLambdaFunctionFailedEventAttributes field's value. +func (s *HistoryEvent) SetStartLambdaFunctionFailedEventAttributes(v *StartLambdaFunctionFailedEventAttributes) *HistoryEvent { + s.StartLambdaFunctionFailedEventAttributes = v + return s +} + +// SetStartTimerFailedEventAttributes sets the StartTimerFailedEventAttributes field's value. +func (s *HistoryEvent) SetStartTimerFailedEventAttributes(v *StartTimerFailedEventAttributes) *HistoryEvent { + s.StartTimerFailedEventAttributes = v + return s +} + +// SetTimerCanceledEventAttributes sets the TimerCanceledEventAttributes field's value. +func (s *HistoryEvent) SetTimerCanceledEventAttributes(v *TimerCanceledEventAttributes) *HistoryEvent { + s.TimerCanceledEventAttributes = v + return s +} + +// SetTimerFiredEventAttributes sets the TimerFiredEventAttributes field's value. +func (s *HistoryEvent) SetTimerFiredEventAttributes(v *TimerFiredEventAttributes) *HistoryEvent { + s.TimerFiredEventAttributes = v + return s +} + +// SetTimerStartedEventAttributes sets the TimerStartedEventAttributes field's value. +func (s *HistoryEvent) SetTimerStartedEventAttributes(v *TimerStartedEventAttributes) *HistoryEvent { + s.TimerStartedEventAttributes = v + return s +} - // If the event is of type WorkflowExecutionCompleted then this member is set - // and provides detailed information about the event. It is not set for other - // event types. - WorkflowExecutionCompletedEventAttributes *WorkflowExecutionCompletedEventAttributes `locationName:"workflowExecutionCompletedEventAttributes" type:"structure"` +// SetWorkflowExecutionCancelRequestedEventAttributes sets the WorkflowExecutionCancelRequestedEventAttributes field's value. +func (s *HistoryEvent) SetWorkflowExecutionCancelRequestedEventAttributes(v *WorkflowExecutionCancelRequestedEventAttributes) *HistoryEvent { + s.WorkflowExecutionCancelRequestedEventAttributes = v + return s +} - // If the event is of type WorkflowExecutionContinuedAsNew then this member - // is set and provides detailed information about the event. It is not set for - // other event types. - WorkflowExecutionContinuedAsNewEventAttributes *WorkflowExecutionContinuedAsNewEventAttributes `locationName:"workflowExecutionContinuedAsNewEventAttributes" type:"structure"` +// SetWorkflowExecutionCanceledEventAttributes sets the WorkflowExecutionCanceledEventAttributes field's value. +func (s *HistoryEvent) SetWorkflowExecutionCanceledEventAttributes(v *WorkflowExecutionCanceledEventAttributes) *HistoryEvent { + s.WorkflowExecutionCanceledEventAttributes = v + return s +} - // If the event is of type WorkflowExecutionFailed then this member is set and - // provides detailed information about the event. It is not set for other event - // types. - WorkflowExecutionFailedEventAttributes *WorkflowExecutionFailedEventAttributes `locationName:"workflowExecutionFailedEventAttributes" type:"structure"` +// SetWorkflowExecutionCompletedEventAttributes sets the WorkflowExecutionCompletedEventAttributes field's value. +func (s *HistoryEvent) SetWorkflowExecutionCompletedEventAttributes(v *WorkflowExecutionCompletedEventAttributes) *HistoryEvent { + s.WorkflowExecutionCompletedEventAttributes = v + return s +} - // If the event is of type WorkflowExecutionSignaled then this member is set - // and provides detailed information about the event. It is not set for other - // event types. - WorkflowExecutionSignaledEventAttributes *WorkflowExecutionSignaledEventAttributes `locationName:"workflowExecutionSignaledEventAttributes" type:"structure"` +// SetWorkflowExecutionContinuedAsNewEventAttributes sets the WorkflowExecutionContinuedAsNewEventAttributes field's value. +func (s *HistoryEvent) SetWorkflowExecutionContinuedAsNewEventAttributes(v *WorkflowExecutionContinuedAsNewEventAttributes) *HistoryEvent { + s.WorkflowExecutionContinuedAsNewEventAttributes = v + return s +} - // If the event is of type WorkflowExecutionStarted then this member is set - // and provides detailed information about the event. It is not set for other - // event types. - WorkflowExecutionStartedEventAttributes *WorkflowExecutionStartedEventAttributes `locationName:"workflowExecutionStartedEventAttributes" type:"structure"` +// SetWorkflowExecutionFailedEventAttributes sets the WorkflowExecutionFailedEventAttributes field's value. +func (s *HistoryEvent) SetWorkflowExecutionFailedEventAttributes(v *WorkflowExecutionFailedEventAttributes) *HistoryEvent { + s.WorkflowExecutionFailedEventAttributes = v + return s +} - // If the event is of type WorkflowExecutionTerminated then this member is set - // and provides detailed information about the event. It is not set for other - // event types. - WorkflowExecutionTerminatedEventAttributes *WorkflowExecutionTerminatedEventAttributes `locationName:"workflowExecutionTerminatedEventAttributes" type:"structure"` +// SetWorkflowExecutionSignaledEventAttributes sets the WorkflowExecutionSignaledEventAttributes field's value. +func (s *HistoryEvent) SetWorkflowExecutionSignaledEventAttributes(v *WorkflowExecutionSignaledEventAttributes) *HistoryEvent { + s.WorkflowExecutionSignaledEventAttributes = v + return s +} - // If the event is of type WorkflowExecutionTimedOut then this member is set - // and provides detailed information about the event. It is not set for other - // event types. - WorkflowExecutionTimedOutEventAttributes *WorkflowExecutionTimedOutEventAttributes `locationName:"workflowExecutionTimedOutEventAttributes" type:"structure"` +// SetWorkflowExecutionStartedEventAttributes sets the WorkflowExecutionStartedEventAttributes field's value. +func (s *HistoryEvent) SetWorkflowExecutionStartedEventAttributes(v *WorkflowExecutionStartedEventAttributes) *HistoryEvent { + s.WorkflowExecutionStartedEventAttributes = v + return s } -// String returns the string representation -func (s HistoryEvent) String() string { - return awsutil.Prettify(s) +// SetWorkflowExecutionTerminatedEventAttributes sets the WorkflowExecutionTerminatedEventAttributes field's value. +func (s *HistoryEvent) SetWorkflowExecutionTerminatedEventAttributes(v *WorkflowExecutionTerminatedEventAttributes) *HistoryEvent { + s.WorkflowExecutionTerminatedEventAttributes = v + return s } -// GoString returns the string representation -func (s HistoryEvent) GoString() string { - return s.String() +// SetWorkflowExecutionTimedOutEventAttributes sets the WorkflowExecutionTimedOutEventAttributes field's value. +func (s *HistoryEvent) SetWorkflowExecutionTimedOutEventAttributes(v *WorkflowExecutionTimedOutEventAttributes) *HistoryEvent { + s.WorkflowExecutionTimedOutEventAttributes = v + return s } // Provides details for the LambdaFunctionCompleted event. @@ -6064,6 +7596,24 @@ func (s LambdaFunctionCompletedEventAttributes) GoString() string { return s.String() } +// SetResult sets the Result field's value. +func (s *LambdaFunctionCompletedEventAttributes) SetResult(v string) *LambdaFunctionCompletedEventAttributes { + s.Result = &v + return s +} + +// SetScheduledEventId sets the ScheduledEventId field's value. +func (s *LambdaFunctionCompletedEventAttributes) SetScheduledEventId(v int64) *LambdaFunctionCompletedEventAttributes { + s.ScheduledEventId = &v + return s +} + +// SetStartedEventId sets the StartedEventId field's value. +func (s *LambdaFunctionCompletedEventAttributes) SetStartedEventId(v int64) *LambdaFunctionCompletedEventAttributes { + s.StartedEventId = &v + return s +} + // Provides details for the LambdaFunctionFailed event. type LambdaFunctionFailedEventAttributes struct { _ struct{} `type:"structure"` @@ -6097,6 +7647,30 @@ func (s LambdaFunctionFailedEventAttributes) GoString() string { return s.String() } +// SetDetails sets the Details field's value. +func (s *LambdaFunctionFailedEventAttributes) SetDetails(v string) *LambdaFunctionFailedEventAttributes { + s.Details = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *LambdaFunctionFailedEventAttributes) SetReason(v string) *LambdaFunctionFailedEventAttributes { + s.Reason = &v + return s +} + +// SetScheduledEventId sets the ScheduledEventId field's value. +func (s *LambdaFunctionFailedEventAttributes) SetScheduledEventId(v int64) *LambdaFunctionFailedEventAttributes { + s.ScheduledEventId = &v + return s +} + +// SetStartedEventId sets the StartedEventId field's value. +func (s *LambdaFunctionFailedEventAttributes) SetStartedEventId(v int64) *LambdaFunctionFailedEventAttributes { + s.StartedEventId = &v + return s +} + // Provides details for the LambdaFunctionScheduled event. type LambdaFunctionScheduledEventAttributes struct { _ struct{} `type:"structure"` @@ -6137,6 +7711,36 @@ func (s LambdaFunctionScheduledEventAttributes) GoString() string { return s.String() } +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *LambdaFunctionScheduledEventAttributes) SetDecisionTaskCompletedEventId(v int64) *LambdaFunctionScheduledEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + +// SetId sets the Id field's value. +func (s *LambdaFunctionScheduledEventAttributes) SetId(v string) *LambdaFunctionScheduledEventAttributes { + s.Id = &v + return s +} + +// SetInput sets the Input field's value. +func (s *LambdaFunctionScheduledEventAttributes) SetInput(v string) *LambdaFunctionScheduledEventAttributes { + s.Input = &v + return s +} + +// SetName sets the Name field's value. +func (s *LambdaFunctionScheduledEventAttributes) SetName(v string) *LambdaFunctionScheduledEventAttributes { + s.Name = &v + return s +} + +// SetStartToCloseTimeout sets the StartToCloseTimeout field's value. +func (s *LambdaFunctionScheduledEventAttributes) SetStartToCloseTimeout(v string) *LambdaFunctionScheduledEventAttributes { + s.StartToCloseTimeout = &v + return s +} + // Provides details for the LambdaFunctionStarted event. type LambdaFunctionStartedEventAttributes struct { _ struct{} `type:"structure"` @@ -6159,6 +7763,12 @@ func (s LambdaFunctionStartedEventAttributes) GoString() string { return s.String() } +// SetScheduledEventId sets the ScheduledEventId field's value. +func (s *LambdaFunctionStartedEventAttributes) SetScheduledEventId(v int64) *LambdaFunctionStartedEventAttributes { + s.ScheduledEventId = &v + return s +} + // Provides details for the LambdaFunctionTimedOut event. type LambdaFunctionTimedOutEventAttributes struct { _ struct{} `type:"structure"` @@ -6189,6 +7799,24 @@ func (s LambdaFunctionTimedOutEventAttributes) GoString() string { return s.String() } +// SetScheduledEventId sets the ScheduledEventId field's value. +func (s *LambdaFunctionTimedOutEventAttributes) SetScheduledEventId(v int64) *LambdaFunctionTimedOutEventAttributes { + s.ScheduledEventId = &v + return s +} + +// SetStartedEventId sets the StartedEventId field's value. +func (s *LambdaFunctionTimedOutEventAttributes) SetStartedEventId(v int64) *LambdaFunctionTimedOutEventAttributes { + s.StartedEventId = &v + return s +} + +// SetTimeoutType sets the TimeoutType field's value. +func (s *LambdaFunctionTimedOutEventAttributes) SetTimeoutType(v string) *LambdaFunctionTimedOutEventAttributes { + s.TimeoutType = &v + return s +} + type ListActivityTypesInput struct { _ struct{} `type:"structure"` @@ -6259,6 +7887,42 @@ func (s *ListActivityTypesInput) Validate() error { return nil } +// SetDomain sets the Domain field's value. +func (s *ListActivityTypesInput) SetDomain(v string) *ListActivityTypesInput { + s.Domain = &v + return s +} + +// SetMaximumPageSize sets the MaximumPageSize field's value. +func (s *ListActivityTypesInput) SetMaximumPageSize(v int64) *ListActivityTypesInput { + s.MaximumPageSize = &v + return s +} + +// SetName sets the Name field's value. +func (s *ListActivityTypesInput) SetName(v string) *ListActivityTypesInput { + s.Name = &v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListActivityTypesInput) SetNextPageToken(v string) *ListActivityTypesInput { + s.NextPageToken = &v + return s +} + +// SetRegistrationStatus sets the RegistrationStatus field's value. +func (s *ListActivityTypesInput) SetRegistrationStatus(v string) *ListActivityTypesInput { + s.RegistrationStatus = &v + return s +} + +// SetReverseOrder sets the ReverseOrder field's value. +func (s *ListActivityTypesInput) SetReverseOrder(v bool) *ListActivityTypesInput { + s.ReverseOrder = &v + return s +} + // Contains a paginated list of activity type information structures. type ListActivityTypesOutput struct { _ struct{} `type:"structure"` @@ -6287,6 +7951,18 @@ func (s ListActivityTypesOutput) GoString() string { return s.String() } +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListActivityTypesOutput) SetNextPageToken(v string) *ListActivityTypesOutput { + s.NextPageToken = &v + return s +} + +// SetTypeInfos sets the TypeInfos field's value. +func (s *ListActivityTypesOutput) SetTypeInfos(v []*ActivityTypeInfo) *ListActivityTypesOutput { + s.TypeInfos = v + return s +} + type ListClosedWorkflowExecutionsInput struct { _ struct{} `type:"structure"` @@ -6418,6 +8094,66 @@ func (s *ListClosedWorkflowExecutionsInput) Validate() error { return nil } +// SetCloseStatusFilter sets the CloseStatusFilter field's value. +func (s *ListClosedWorkflowExecutionsInput) SetCloseStatusFilter(v *CloseStatusFilter) *ListClosedWorkflowExecutionsInput { + s.CloseStatusFilter = v + return s +} + +// SetCloseTimeFilter sets the CloseTimeFilter field's value. +func (s *ListClosedWorkflowExecutionsInput) SetCloseTimeFilter(v *ExecutionTimeFilter) *ListClosedWorkflowExecutionsInput { + s.CloseTimeFilter = v + return s +} + +// SetDomain sets the Domain field's value. +func (s *ListClosedWorkflowExecutionsInput) SetDomain(v string) *ListClosedWorkflowExecutionsInput { + s.Domain = &v + return s +} + +// SetExecutionFilter sets the ExecutionFilter field's value. +func (s *ListClosedWorkflowExecutionsInput) SetExecutionFilter(v *WorkflowExecutionFilter) *ListClosedWorkflowExecutionsInput { + s.ExecutionFilter = v + return s +} + +// SetMaximumPageSize sets the MaximumPageSize field's value. +func (s *ListClosedWorkflowExecutionsInput) SetMaximumPageSize(v int64) *ListClosedWorkflowExecutionsInput { + s.MaximumPageSize = &v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListClosedWorkflowExecutionsInput) SetNextPageToken(v string) *ListClosedWorkflowExecutionsInput { + s.NextPageToken = &v + return s +} + +// SetReverseOrder sets the ReverseOrder field's value. +func (s *ListClosedWorkflowExecutionsInput) SetReverseOrder(v bool) *ListClosedWorkflowExecutionsInput { + s.ReverseOrder = &v + return s +} + +// SetStartTimeFilter sets the StartTimeFilter field's value. +func (s *ListClosedWorkflowExecutionsInput) SetStartTimeFilter(v *ExecutionTimeFilter) *ListClosedWorkflowExecutionsInput { + s.StartTimeFilter = v + return s +} + +// SetTagFilter sets the TagFilter field's value. +func (s *ListClosedWorkflowExecutionsInput) SetTagFilter(v *TagFilter) *ListClosedWorkflowExecutionsInput { + s.TagFilter = v + return s +} + +// SetTypeFilter sets the TypeFilter field's value. +func (s *ListClosedWorkflowExecutionsInput) SetTypeFilter(v *WorkflowTypeFilter) *ListClosedWorkflowExecutionsInput { + s.TypeFilter = v + return s +} + type ListDomainsInput struct { _ struct{} `type:"structure"` @@ -6471,6 +8207,30 @@ func (s *ListDomainsInput) Validate() error { return nil } +// SetMaximumPageSize sets the MaximumPageSize field's value. +func (s *ListDomainsInput) SetMaximumPageSize(v int64) *ListDomainsInput { + s.MaximumPageSize = &v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListDomainsInput) SetNextPageToken(v string) *ListDomainsInput { + s.NextPageToken = &v + return s +} + +// SetRegistrationStatus sets the RegistrationStatus field's value. +func (s *ListDomainsInput) SetRegistrationStatus(v string) *ListDomainsInput { + s.RegistrationStatus = &v + return s +} + +// SetReverseOrder sets the ReverseOrder field's value. +func (s *ListDomainsInput) SetReverseOrder(v bool) *ListDomainsInput { + s.ReverseOrder = &v + return s +} + // Contains a paginated collection of DomainInfo structures. type ListDomainsOutput struct { _ struct{} `type:"structure"` @@ -6499,6 +8259,18 @@ func (s ListDomainsOutput) GoString() string { return s.String() } +// SetDomainInfos sets the DomainInfos field's value. +func (s *ListDomainsOutput) SetDomainInfos(v []*DomainInfo) *ListDomainsOutput { + s.DomainInfos = v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListDomainsOutput) SetNextPageToken(v string) *ListDomainsOutput { + s.NextPageToken = &v + return s +} + type ListOpenWorkflowExecutionsInput struct { _ struct{} `type:"structure"` @@ -6603,6 +8375,54 @@ func (s *ListOpenWorkflowExecutionsInput) Validate() error { return nil } +// SetDomain sets the Domain field's value. +func (s *ListOpenWorkflowExecutionsInput) SetDomain(v string) *ListOpenWorkflowExecutionsInput { + s.Domain = &v + return s +} + +// SetExecutionFilter sets the ExecutionFilter field's value. +func (s *ListOpenWorkflowExecutionsInput) SetExecutionFilter(v *WorkflowExecutionFilter) *ListOpenWorkflowExecutionsInput { + s.ExecutionFilter = v + return s +} + +// SetMaximumPageSize sets the MaximumPageSize field's value. +func (s *ListOpenWorkflowExecutionsInput) SetMaximumPageSize(v int64) *ListOpenWorkflowExecutionsInput { + s.MaximumPageSize = &v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListOpenWorkflowExecutionsInput) SetNextPageToken(v string) *ListOpenWorkflowExecutionsInput { + s.NextPageToken = &v + return s +} + +// SetReverseOrder sets the ReverseOrder field's value. +func (s *ListOpenWorkflowExecutionsInput) SetReverseOrder(v bool) *ListOpenWorkflowExecutionsInput { + s.ReverseOrder = &v + return s +} + +// SetStartTimeFilter sets the StartTimeFilter field's value. +func (s *ListOpenWorkflowExecutionsInput) SetStartTimeFilter(v *ExecutionTimeFilter) *ListOpenWorkflowExecutionsInput { + s.StartTimeFilter = v + return s +} + +// SetTagFilter sets the TagFilter field's value. +func (s *ListOpenWorkflowExecutionsInput) SetTagFilter(v *TagFilter) *ListOpenWorkflowExecutionsInput { + s.TagFilter = v + return s +} + +// SetTypeFilter sets the TypeFilter field's value. +func (s *ListOpenWorkflowExecutionsInput) SetTypeFilter(v *WorkflowTypeFilter) *ListOpenWorkflowExecutionsInput { + s.TypeFilter = v + return s +} + type ListWorkflowTypesInput struct { _ struct{} `type:"structure"` @@ -6674,6 +8494,42 @@ func (s *ListWorkflowTypesInput) Validate() error { return nil } +// SetDomain sets the Domain field's value. +func (s *ListWorkflowTypesInput) SetDomain(v string) *ListWorkflowTypesInput { + s.Domain = &v + return s +} + +// SetMaximumPageSize sets the MaximumPageSize field's value. +func (s *ListWorkflowTypesInput) SetMaximumPageSize(v int64) *ListWorkflowTypesInput { + s.MaximumPageSize = &v + return s +} + +// SetName sets the Name field's value. +func (s *ListWorkflowTypesInput) SetName(v string) *ListWorkflowTypesInput { + s.Name = &v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListWorkflowTypesInput) SetNextPageToken(v string) *ListWorkflowTypesInput { + s.NextPageToken = &v + return s +} + +// SetRegistrationStatus sets the RegistrationStatus field's value. +func (s *ListWorkflowTypesInput) SetRegistrationStatus(v string) *ListWorkflowTypesInput { + s.RegistrationStatus = &v + return s +} + +// SetReverseOrder sets the ReverseOrder field's value. +func (s *ListWorkflowTypesInput) SetReverseOrder(v bool) *ListWorkflowTypesInput { + s.ReverseOrder = &v + return s +} + // Contains a paginated list of information structures about workflow types. type ListWorkflowTypesOutput struct { _ struct{} `type:"structure"` @@ -6702,6 +8558,18 @@ func (s ListWorkflowTypesOutput) GoString() string { return s.String() } +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListWorkflowTypesOutput) SetNextPageToken(v string) *ListWorkflowTypesOutput { + s.NextPageToken = &v + return s +} + +// SetTypeInfos sets the TypeInfos field's value. +func (s *ListWorkflowTypesOutput) SetTypeInfos(v []*WorkflowTypeInfo) *ListWorkflowTypesOutput { + s.TypeInfos = v + return s +} + // Provides details of the MarkerRecorded event. type MarkerRecordedEventAttributes struct { _ struct{} `type:"structure"` @@ -6733,6 +8601,24 @@ func (s MarkerRecordedEventAttributes) GoString() string { return s.String() } +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *MarkerRecordedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *MarkerRecordedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + +// SetDetails sets the Details field's value. +func (s *MarkerRecordedEventAttributes) SetDetails(v string) *MarkerRecordedEventAttributes { + s.Details = &v + return s +} + +// SetMarkerName sets the MarkerName field's value. +func (s *MarkerRecordedEventAttributes) SetMarkerName(v string) *MarkerRecordedEventAttributes { + s.MarkerName = &v + return s +} + // Contains the count of tasks in a task list. type PendingTaskCount struct { _ struct{} `type:"structure"` @@ -6757,6 +8643,18 @@ func (s PendingTaskCount) GoString() string { return s.String() } +// SetCount sets the Count field's value. +func (s *PendingTaskCount) SetCount(v int64) *PendingTaskCount { + s.Count = &v + return s +} + +// SetTruncated sets the Truncated field's value. +func (s *PendingTaskCount) SetTruncated(v bool) *PendingTaskCount { + s.Truncated = &v + return s +} + type PollForActivityTaskInput struct { _ struct{} `type:"structure"` @@ -6772,10 +8670,9 @@ type PollForActivityTaskInput struct { // Specifies the task list to poll for activity tasks. // - // The specified string must not start or end with whitespace. It must not - // contain a : (colon), / (slash), | (vertical bar), or any control characters - // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal - // string quotarnquot. + // The specified string must not start or end with whitespace. It must not contain + // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f + // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. // // TaskList is a required field TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"` @@ -6815,6 +8712,24 @@ func (s *PollForActivityTaskInput) Validate() error { return nil } +// SetDomain sets the Domain field's value. +func (s *PollForActivityTaskInput) SetDomain(v string) *PollForActivityTaskInput { + s.Domain = &v + return s +} + +// SetIdentity sets the Identity field's value. +func (s *PollForActivityTaskInput) SetIdentity(v string) *PollForActivityTaskInput { + s.Identity = &v + return s +} + +// SetTaskList sets the TaskList field's value. +func (s *PollForActivityTaskInput) SetTaskList(v *TaskList) *PollForActivityTaskInput { + s.TaskList = v + return s +} + // Unit of work sent to an activity worker. type PollForActivityTaskOutput struct { _ struct{} `type:"structure"` @@ -6861,6 +8776,42 @@ func (s PollForActivityTaskOutput) GoString() string { return s.String() } +// SetActivityId sets the ActivityId field's value. +func (s *PollForActivityTaskOutput) SetActivityId(v string) *PollForActivityTaskOutput { + s.ActivityId = &v + return s +} + +// SetActivityType sets the ActivityType field's value. +func (s *PollForActivityTaskOutput) SetActivityType(v *ActivityType) *PollForActivityTaskOutput { + s.ActivityType = v + return s +} + +// SetInput sets the Input field's value. +func (s *PollForActivityTaskOutput) SetInput(v string) *PollForActivityTaskOutput { + s.Input = &v + return s +} + +// SetStartedEventId sets the StartedEventId field's value. +func (s *PollForActivityTaskOutput) SetStartedEventId(v int64) *PollForActivityTaskOutput { + s.StartedEventId = &v + return s +} + +// SetTaskToken sets the TaskToken field's value. +func (s *PollForActivityTaskOutput) SetTaskToken(v string) *PollForActivityTaskOutput { + s.TaskToken = &v + return s +} + +// SetWorkflowExecution sets the WorkflowExecution field's value. +func (s *PollForActivityTaskOutput) SetWorkflowExecution(v *WorkflowExecution) *PollForActivityTaskOutput { + s.WorkflowExecution = v + return s +} + type PollForDecisionTaskInput struct { _ struct{} `type:"structure"` @@ -6893,7 +8844,7 @@ type PollForDecisionTaskInput struct { // The nextPageToken returned by this action cannot be used with GetWorkflowExecutionHistory // to get the next page. You must call PollForDecisionTask again (with the nextPageToken) // to retrieve the next page of history records. Calling PollForDecisionTask - // with a nextPageToken will not return a new decision task.. + // with a nextPageToken will not return a new decision task. NextPageToken *string `locationName:"nextPageToken" type:"string"` // When set to true, returns the events in reverse order. By default the results @@ -6902,10 +8853,9 @@ type PollForDecisionTaskInput struct { // Specifies the task list to poll for decision tasks. // - // The specified string must not start or end with whitespace. It must not - // contain a : (colon), / (slash), | (vertical bar), or any control characters - // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal - // string quotarnquot. + // The specified string must not start or end with whitespace. It must not contain + // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f + // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. // // TaskList is a required field TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"` @@ -6945,6 +8895,42 @@ func (s *PollForDecisionTaskInput) Validate() error { return nil } +// SetDomain sets the Domain field's value. +func (s *PollForDecisionTaskInput) SetDomain(v string) *PollForDecisionTaskInput { + s.Domain = &v + return s +} + +// SetIdentity sets the Identity field's value. +func (s *PollForDecisionTaskInput) SetIdentity(v string) *PollForDecisionTaskInput { + s.Identity = &v + return s +} + +// SetMaximumPageSize sets the MaximumPageSize field's value. +func (s *PollForDecisionTaskInput) SetMaximumPageSize(v int64) *PollForDecisionTaskInput { + s.MaximumPageSize = &v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *PollForDecisionTaskInput) SetNextPageToken(v string) *PollForDecisionTaskInput { + s.NextPageToken = &v + return s +} + +// SetReverseOrder sets the ReverseOrder field's value. +func (s *PollForDecisionTaskInput) SetReverseOrder(v bool) *PollForDecisionTaskInput { + s.ReverseOrder = &v + return s +} + +// SetTaskList sets the TaskList field's value. +func (s *PollForDecisionTaskInput) SetTaskList(v *TaskList) *PollForDecisionTaskInput { + s.TaskList = v + return s +} + // A structure that represents a decision task. Decision tasks are sent to deciders // in order for them to make decisions. type PollForDecisionTaskOutput struct { @@ -7003,6 +8989,48 @@ func (s PollForDecisionTaskOutput) GoString() string { return s.String() } +// SetEvents sets the Events field's value. +func (s *PollForDecisionTaskOutput) SetEvents(v []*HistoryEvent) *PollForDecisionTaskOutput { + s.Events = v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *PollForDecisionTaskOutput) SetNextPageToken(v string) *PollForDecisionTaskOutput { + s.NextPageToken = &v + return s +} + +// SetPreviousStartedEventId sets the PreviousStartedEventId field's value. +func (s *PollForDecisionTaskOutput) SetPreviousStartedEventId(v int64) *PollForDecisionTaskOutput { + s.PreviousStartedEventId = &v + return s +} + +// SetStartedEventId sets the StartedEventId field's value. +func (s *PollForDecisionTaskOutput) SetStartedEventId(v int64) *PollForDecisionTaskOutput { + s.StartedEventId = &v + return s +} + +// SetTaskToken sets the TaskToken field's value. +func (s *PollForDecisionTaskOutput) SetTaskToken(v string) *PollForDecisionTaskOutput { + s.TaskToken = &v + return s +} + +// SetWorkflowExecution sets the WorkflowExecution field's value. +func (s *PollForDecisionTaskOutput) SetWorkflowExecution(v *WorkflowExecution) *PollForDecisionTaskOutput { + s.WorkflowExecution = v + return s +} + +// SetWorkflowType sets the WorkflowType field's value. +func (s *PollForDecisionTaskOutput) SetWorkflowType(v *WorkflowType) *PollForDecisionTaskOutput { + s.WorkflowType = v + return s +} + type RecordActivityTaskHeartbeatInput struct { _ struct{} `type:"structure"` @@ -7011,7 +9039,7 @@ type RecordActivityTaskHeartbeatInput struct { // The taskToken of the ActivityTask. // - // taskToken is generated by the service and should be treated as an opaque + // taskToken is generated by the service and should be treated as an opaque // value. If the task is passed to another process, its taskToken must also // be passed. This enables it to provide its progress and respond with results. // @@ -7045,6 +9073,18 @@ func (s *RecordActivityTaskHeartbeatInput) Validate() error { return nil } +// SetDetails sets the Details field's value. +func (s *RecordActivityTaskHeartbeatInput) SetDetails(v string) *RecordActivityTaskHeartbeatInput { + s.Details = &v + return s +} + +// SetTaskToken sets the TaskToken field's value. +func (s *RecordActivityTaskHeartbeatInput) SetTaskToken(v string) *RecordActivityTaskHeartbeatInput { + s.TaskToken = &v + return s +} + // Status information about an activity task. type RecordActivityTaskHeartbeatOutput struct { _ struct{} `type:"structure"` @@ -7065,6 +9105,12 @@ func (s RecordActivityTaskHeartbeatOutput) GoString() string { return s.String() } +// SetCancelRequested sets the CancelRequested field's value. +func (s *RecordActivityTaskHeartbeatOutput) SetCancelRequested(v bool) *RecordActivityTaskHeartbeatOutput { + s.CancelRequested = &v + return s +} + // Provides details of the RecordMarker decision. // // Access Control @@ -7072,10 +9118,13 @@ func (s RecordActivityTaskHeartbeatOutput) GoString() string { // You can use IAM policies to control this decision's access to Amazon SWF // resources as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -7118,6 +9167,18 @@ func (s *RecordMarkerDecisionAttributes) Validate() error { return nil } +// SetDetails sets the Details field's value. +func (s *RecordMarkerDecisionAttributes) SetDetails(v string) *RecordMarkerDecisionAttributes { + s.Details = &v + return s +} + +// SetMarkerName sets the MarkerName field's value. +func (s *RecordMarkerDecisionAttributes) SetMarkerName(v string) *RecordMarkerDecisionAttributes { + s.MarkerName = &v + return s +} + // Provides details of the RecordMarkerFailed event. type RecordMarkerFailedEventAttributes struct { _ struct{} `type:"structure"` @@ -7125,8 +9186,8 @@ type RecordMarkerFailedEventAttributes struct { // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // - // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because - // it lacked sufficient permissions. For details and example IAM policies, see + // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it + // lacked sufficient permissions. For details and example IAM policies, see // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Cause is a required field @@ -7156,6 +9217,24 @@ func (s RecordMarkerFailedEventAttributes) GoString() string { return s.String() } +// SetCause sets the Cause field's value. +func (s *RecordMarkerFailedEventAttributes) SetCause(v string) *RecordMarkerFailedEventAttributes { + s.Cause = &v + return s +} + +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *RecordMarkerFailedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *RecordMarkerFailedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + +// SetMarkerName sets the MarkerName field's value. +func (s *RecordMarkerFailedEventAttributes) SetMarkerName(v string) *RecordMarkerFailedEventAttributes { + s.MarkerName = &v + return s +} + type RegisterActivityTypeInput struct { _ struct{} `type:"structure"` @@ -7221,10 +9300,9 @@ type RegisterActivityTypeInput struct { // The name of the activity type within the domain. // - // The specified string must not start or end with whitespace. It must not - // contain a : (colon), / (slash), | (vertical bar), or any control characters - // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal - // string quotarnquot. + // The specified string must not start or end with whitespace. It must not contain + // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f + // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` @@ -7232,10 +9310,9 @@ type RegisterActivityTypeInput struct { // The version of the activity type. // // The activity type consists of the name and version, the combination of which - // must be unique within the domain. The specified string must not start or - // end with whitespace. It must not contain a : (colon), / (slash), | (vertical - // bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, - // it must not contain the literal string quotarnquot. + // must be unique within the domain.The specified string must not start or end with whitespace. It must not contain + // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f + // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. // // Version is a required field Version *string `locationName:"version" min:"1" type:"string" required:"true"` @@ -7284,6 +9361,66 @@ func (s *RegisterActivityTypeInput) Validate() error { return nil } +// SetDefaultTaskHeartbeatTimeout sets the DefaultTaskHeartbeatTimeout field's value. +func (s *RegisterActivityTypeInput) SetDefaultTaskHeartbeatTimeout(v string) *RegisterActivityTypeInput { + s.DefaultTaskHeartbeatTimeout = &v + return s +} + +// SetDefaultTaskList sets the DefaultTaskList field's value. +func (s *RegisterActivityTypeInput) SetDefaultTaskList(v *TaskList) *RegisterActivityTypeInput { + s.DefaultTaskList = v + return s +} + +// SetDefaultTaskPriority sets the DefaultTaskPriority field's value. +func (s *RegisterActivityTypeInput) SetDefaultTaskPriority(v string) *RegisterActivityTypeInput { + s.DefaultTaskPriority = &v + return s +} + +// SetDefaultTaskScheduleToCloseTimeout sets the DefaultTaskScheduleToCloseTimeout field's value. +func (s *RegisterActivityTypeInput) SetDefaultTaskScheduleToCloseTimeout(v string) *RegisterActivityTypeInput { + s.DefaultTaskScheduleToCloseTimeout = &v + return s +} + +// SetDefaultTaskScheduleToStartTimeout sets the DefaultTaskScheduleToStartTimeout field's value. +func (s *RegisterActivityTypeInput) SetDefaultTaskScheduleToStartTimeout(v string) *RegisterActivityTypeInput { + s.DefaultTaskScheduleToStartTimeout = &v + return s +} + +// SetDefaultTaskStartToCloseTimeout sets the DefaultTaskStartToCloseTimeout field's value. +func (s *RegisterActivityTypeInput) SetDefaultTaskStartToCloseTimeout(v string) *RegisterActivityTypeInput { + s.DefaultTaskStartToCloseTimeout = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *RegisterActivityTypeInput) SetDescription(v string) *RegisterActivityTypeInput { + s.Description = &v + return s +} + +// SetDomain sets the Domain field's value. +func (s *RegisterActivityTypeInput) SetDomain(v string) *RegisterActivityTypeInput { + s.Domain = &v + return s +} + +// SetName sets the Name field's value. +func (s *RegisterActivityTypeInput) SetName(v string) *RegisterActivityTypeInput { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *RegisterActivityTypeInput) SetVersion(v string) *RegisterActivityTypeInput { + s.Version = &v + return s +} + type RegisterActivityTypeOutput struct { _ struct{} `type:"structure"` } @@ -7307,10 +9444,9 @@ type RegisterDomainInput struct { // Name of the domain to register. The name must be unique in the region that // the domain is registered in. // - // The specified string must not start or end with whitespace. It must not - // contain a : (colon), / (slash), | (vertical bar), or any control characters - // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal - // string quotarnquot. + // The specified string must not start or end with whitespace. It must not contain + // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f + // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` @@ -7363,6 +9499,24 @@ func (s *RegisterDomainInput) Validate() error { return nil } +// SetDescription sets the Description field's value. +func (s *RegisterDomainInput) SetDescription(v string) *RegisterDomainInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *RegisterDomainInput) SetName(v string) *RegisterDomainInput { + s.Name = &v + return s +} + +// SetWorkflowExecutionRetentionPeriodInDays sets the WorkflowExecutionRetentionPeriodInDays field's value. +func (s *RegisterDomainInput) SetWorkflowExecutionRetentionPeriodInDays(v string) *RegisterDomainInput { + s.WorkflowExecutionRetentionPeriodInDays = &v + return s +} + type RegisterDomainOutput struct { _ struct{} `type:"structure"` } @@ -7388,11 +9542,13 @@ type RegisterWorkflowTypeInput struct { // // The supported child policies are: // - // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request - // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested - // event in its history. It is up to the decider to take appropriate actions - // when it receives an execution history with this event. ABANDON: no action - // will be taken. The child executions will continue to run. + // * TERMINATE: the child executions will be terminated. + // * REQUEST_CANCEL: a request to cancel will be attempted for each child + // execution by recording a WorkflowExecutionCancelRequested event in its + // history. It is up to the decider to take appropriate actions when it receives + // an execution history with this event. + // * ABANDON: no action will be taken. The child executions will continue + // to run. DefaultChildPolicy *string `locationName:"defaultChildPolicy" type:"string" enum:"ChildPolicy"` // If set, specifies the default maximum duration for executions of this workflow @@ -7409,9 +9565,9 @@ type RegisterWorkflowTypeInput struct { // The ARN of the default IAM role to use when a workflow execution of this // type invokes AWS Lambda functions. // - // This default can be overridden when starting a workflow execution using - // the StartWorkflowExecution action or the StartChildWorkflowExecution and - // ContinueAsNewWorkflowExecution decision. + // This default can be overridden when starting a workflow execution using the + // StartWorkflowExecution action or the StartChildWorkflowExecution and ContinueAsNewWorkflowExecution + // decision. DefaultLambdaRole *string `locationName:"defaultLambdaRole" min:"1" type:"string"` // If set, specifies the default task list to use for scheduling decision tasks @@ -7449,10 +9605,9 @@ type RegisterWorkflowTypeInput struct { // The name of the workflow type. // - // The specified string must not start or end with whitespace. It must not - // contain a : (colon), / (slash), | (vertical bar), or any control characters - // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal - // string quotarnquot. + // The specified string must not start or end with whitespace. It must not contain + // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f + // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` @@ -7461,10 +9616,9 @@ type RegisterWorkflowTypeInput struct { // // The workflow type consists of the name and version, the combination of which // must be unique within the domain. To get a list of all currently registered - // workflow types, use the ListWorkflowTypes action. The specified string must - // not start or end with whitespace. It must not contain a : (colon), / (slash), - // | (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). - // Also, it must not contain the literal string quotarnquot. + // workflow types, use the ListWorkflowTypes action.The specified string must not start or end with whitespace. It must not contain + // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f + // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. // // Version is a required field Version *string `locationName:"version" min:"1" type:"string" required:"true"` @@ -7516,6 +9670,66 @@ func (s *RegisterWorkflowTypeInput) Validate() error { return nil } +// SetDefaultChildPolicy sets the DefaultChildPolicy field's value. +func (s *RegisterWorkflowTypeInput) SetDefaultChildPolicy(v string) *RegisterWorkflowTypeInput { + s.DefaultChildPolicy = &v + return s +} + +// SetDefaultExecutionStartToCloseTimeout sets the DefaultExecutionStartToCloseTimeout field's value. +func (s *RegisterWorkflowTypeInput) SetDefaultExecutionStartToCloseTimeout(v string) *RegisterWorkflowTypeInput { + s.DefaultExecutionStartToCloseTimeout = &v + return s +} + +// SetDefaultLambdaRole sets the DefaultLambdaRole field's value. +func (s *RegisterWorkflowTypeInput) SetDefaultLambdaRole(v string) *RegisterWorkflowTypeInput { + s.DefaultLambdaRole = &v + return s +} + +// SetDefaultTaskList sets the DefaultTaskList field's value. +func (s *RegisterWorkflowTypeInput) SetDefaultTaskList(v *TaskList) *RegisterWorkflowTypeInput { + s.DefaultTaskList = v + return s +} + +// SetDefaultTaskPriority sets the DefaultTaskPriority field's value. +func (s *RegisterWorkflowTypeInput) SetDefaultTaskPriority(v string) *RegisterWorkflowTypeInput { + s.DefaultTaskPriority = &v + return s +} + +// SetDefaultTaskStartToCloseTimeout sets the DefaultTaskStartToCloseTimeout field's value. +func (s *RegisterWorkflowTypeInput) SetDefaultTaskStartToCloseTimeout(v string) *RegisterWorkflowTypeInput { + s.DefaultTaskStartToCloseTimeout = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *RegisterWorkflowTypeInput) SetDescription(v string) *RegisterWorkflowTypeInput { + s.Description = &v + return s +} + +// SetDomain sets the Domain field's value. +func (s *RegisterWorkflowTypeInput) SetDomain(v string) *RegisterWorkflowTypeInput { + s.Domain = &v + return s +} + +// SetName sets the Name field's value. +func (s *RegisterWorkflowTypeInput) SetName(v string) *RegisterWorkflowTypeInput { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *RegisterWorkflowTypeInput) SetVersion(v string) *RegisterWorkflowTypeInput { + s.Version = &v + return s +} + type RegisterWorkflowTypeOutput struct { _ struct{} `type:"structure"` } @@ -7537,10 +9751,13 @@ func (s RegisterWorkflowTypeOutput) GoString() string { // You can use IAM policies to control this decision's access to Amazon SWF // resources as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -7580,6 +9797,12 @@ func (s *RequestCancelActivityTaskDecisionAttributes) Validate() error { return nil } +// SetActivityId sets the ActivityId field's value. +func (s *RequestCancelActivityTaskDecisionAttributes) SetActivityId(v string) *RequestCancelActivityTaskDecisionAttributes { + s.ActivityId = &v + return s +} + // Provides details of the RequestCancelActivityTaskFailed event. type RequestCancelActivityTaskFailedEventAttributes struct { _ struct{} `type:"structure"` @@ -7592,8 +9815,8 @@ type RequestCancelActivityTaskFailedEventAttributes struct { // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // - // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because - // it lacked sufficient permissions. For details and example IAM policies, see + // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it + // lacked sufficient permissions. For details and example IAM policies, see // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Cause is a required field @@ -7618,6 +9841,24 @@ func (s RequestCancelActivityTaskFailedEventAttributes) GoString() string { return s.String() } +// SetActivityId sets the ActivityId field's value. +func (s *RequestCancelActivityTaskFailedEventAttributes) SetActivityId(v string) *RequestCancelActivityTaskFailedEventAttributes { + s.ActivityId = &v + return s +} + +// SetCause sets the Cause field's value. +func (s *RequestCancelActivityTaskFailedEventAttributes) SetCause(v string) *RequestCancelActivityTaskFailedEventAttributes { + s.Cause = &v + return s +} + +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *RequestCancelActivityTaskFailedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *RequestCancelActivityTaskFailedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + // Provides details of the RequestCancelExternalWorkflowExecution decision. // // Access Control @@ -7625,10 +9866,13 @@ func (s RequestCancelActivityTaskFailedEventAttributes) GoString() string { // You can use IAM policies to control this decision's access to Amazon SWF // resources as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -7675,6 +9919,24 @@ func (s *RequestCancelExternalWorkflowExecutionDecisionAttributes) Validate() er return nil } +// SetControl sets the Control field's value. +func (s *RequestCancelExternalWorkflowExecutionDecisionAttributes) SetControl(v string) *RequestCancelExternalWorkflowExecutionDecisionAttributes { + s.Control = &v + return s +} + +// SetRunId sets the RunId field's value. +func (s *RequestCancelExternalWorkflowExecutionDecisionAttributes) SetRunId(v string) *RequestCancelExternalWorkflowExecutionDecisionAttributes { + s.RunId = &v + return s +} + +// SetWorkflowId sets the WorkflowId field's value. +func (s *RequestCancelExternalWorkflowExecutionDecisionAttributes) SetWorkflowId(v string) *RequestCancelExternalWorkflowExecutionDecisionAttributes { + s.WorkflowId = &v + return s +} + // Provides details of the RequestCancelExternalWorkflowExecutionFailed event. type RequestCancelExternalWorkflowExecutionFailedEventAttributes struct { _ struct{} `type:"structure"` @@ -7682,8 +9944,8 @@ type RequestCancelExternalWorkflowExecutionFailedEventAttributes struct { // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // - // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because - // it lacked sufficient permissions. For details and example IAM policies, see + // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it + // lacked sufficient permissions. For details and example IAM policies, see // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Cause is a required field @@ -7727,6 +9989,42 @@ func (s RequestCancelExternalWorkflowExecutionFailedEventAttributes) GoString() return s.String() } +// SetCause sets the Cause field's value. +func (s *RequestCancelExternalWorkflowExecutionFailedEventAttributes) SetCause(v string) *RequestCancelExternalWorkflowExecutionFailedEventAttributes { + s.Cause = &v + return s +} + +// SetControl sets the Control field's value. +func (s *RequestCancelExternalWorkflowExecutionFailedEventAttributes) SetControl(v string) *RequestCancelExternalWorkflowExecutionFailedEventAttributes { + s.Control = &v + return s +} + +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *RequestCancelExternalWorkflowExecutionFailedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *RequestCancelExternalWorkflowExecutionFailedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + +// SetInitiatedEventId sets the InitiatedEventId field's value. +func (s *RequestCancelExternalWorkflowExecutionFailedEventAttributes) SetInitiatedEventId(v int64) *RequestCancelExternalWorkflowExecutionFailedEventAttributes { + s.InitiatedEventId = &v + return s +} + +// SetRunId sets the RunId field's value. +func (s *RequestCancelExternalWorkflowExecutionFailedEventAttributes) SetRunId(v string) *RequestCancelExternalWorkflowExecutionFailedEventAttributes { + s.RunId = &v + return s +} + +// SetWorkflowId sets the WorkflowId field's value. +func (s *RequestCancelExternalWorkflowExecutionFailedEventAttributes) SetWorkflowId(v string) *RequestCancelExternalWorkflowExecutionFailedEventAttributes { + s.WorkflowId = &v + return s +} + // Provides details of the RequestCancelExternalWorkflowExecutionInitiated event. type RequestCancelExternalWorkflowExecutionInitiatedEventAttributes struct { _ struct{} `type:"structure"` @@ -7762,6 +10060,30 @@ func (s RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GoString return s.String() } +// SetControl sets the Control field's value. +func (s *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) SetControl(v string) *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes { + s.Control = &v + return s +} + +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + +// SetRunId sets the RunId field's value. +func (s *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) SetRunId(v string) *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes { + s.RunId = &v + return s +} + +// SetWorkflowId sets the WorkflowId field's value. +func (s *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) SetWorkflowId(v string) *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes { + s.WorkflowId = &v + return s +} + type RequestCancelWorkflowExecutionInput struct { _ struct{} `type:"structure"` @@ -7811,6 +10133,24 @@ func (s *RequestCancelWorkflowExecutionInput) Validate() error { return nil } +// SetDomain sets the Domain field's value. +func (s *RequestCancelWorkflowExecutionInput) SetDomain(v string) *RequestCancelWorkflowExecutionInput { + s.Domain = &v + return s +} + +// SetRunId sets the RunId field's value. +func (s *RequestCancelWorkflowExecutionInput) SetRunId(v string) *RequestCancelWorkflowExecutionInput { + s.RunId = &v + return s +} + +// SetWorkflowId sets the WorkflowId field's value. +func (s *RequestCancelWorkflowExecutionInput) SetWorkflowId(v string) *RequestCancelWorkflowExecutionInput { + s.WorkflowId = &v + return s +} + type RequestCancelWorkflowExecutionOutput struct { _ struct{} `type:"structure"` } @@ -7867,6 +10207,18 @@ func (s *RespondActivityTaskCanceledInput) Validate() error { return nil } +// SetDetails sets the Details field's value. +func (s *RespondActivityTaskCanceledInput) SetDetails(v string) *RespondActivityTaskCanceledInput { + s.Details = &v + return s +} + +// SetTaskToken sets the TaskToken field's value. +func (s *RespondActivityTaskCanceledInput) SetTaskToken(v string) *RespondActivityTaskCanceledInput { + s.TaskToken = &v + return s +} + type RespondActivityTaskCanceledOutput struct { _ struct{} `type:"structure"` } @@ -7890,7 +10242,7 @@ type RespondActivityTaskCompletedInput struct { // The taskToken of the ActivityTask. // - // taskToken is generated by the service and should be treated as an opaque + // taskToken is generated by the service and should be treated as an opaque // value. If the task is passed to another process, its taskToken must also // be passed. This enables it to provide its progress and respond with results. // @@ -7924,6 +10276,18 @@ func (s *RespondActivityTaskCompletedInput) Validate() error { return nil } +// SetResult sets the Result field's value. +func (s *RespondActivityTaskCompletedInput) SetResult(v string) *RespondActivityTaskCompletedInput { + s.Result = &v + return s +} + +// SetTaskToken sets the TaskToken field's value. +func (s *RespondActivityTaskCompletedInput) SetTaskToken(v string) *RespondActivityTaskCompletedInput { + s.TaskToken = &v + return s +} + type RespondActivityTaskCompletedOutput struct { _ struct{} `type:"structure"` } @@ -7949,7 +10313,7 @@ type RespondActivityTaskFailedInput struct { // The taskToken of the ActivityTask. // - // taskToken is generated by the service and should be treated as an opaque + // taskToken is generated by the service and should be treated as an opaque // value. If the task is passed to another process, its taskToken must also // be passed. This enables it to provide its progress and respond with results. // @@ -7983,6 +10347,24 @@ func (s *RespondActivityTaskFailedInput) Validate() error { return nil } +// SetDetails sets the Details field's value. +func (s *RespondActivityTaskFailedInput) SetDetails(v string) *RespondActivityTaskFailedInput { + s.Details = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *RespondActivityTaskFailedInput) SetReason(v string) *RespondActivityTaskFailedInput { + s.Reason = &v + return s +} + +// SetTaskToken sets the TaskToken field's value. +func (s *RespondActivityTaskFailedInput) SetTaskToken(v string) *RespondActivityTaskFailedInput { + s.TaskToken = &v + return s +} + type RespondActivityTaskFailedOutput struct { _ struct{} `type:"structure"` } @@ -8053,6 +10435,24 @@ func (s *RespondDecisionTaskCompletedInput) Validate() error { return nil } +// SetDecisions sets the Decisions field's value. +func (s *RespondDecisionTaskCompletedInput) SetDecisions(v []*Decision) *RespondDecisionTaskCompletedInput { + s.Decisions = v + return s +} + +// SetExecutionContext sets the ExecutionContext field's value. +func (s *RespondDecisionTaskCompletedInput) SetExecutionContext(v string) *RespondDecisionTaskCompletedInput { + s.ExecutionContext = &v + return s +} + +// SetTaskToken sets the TaskToken field's value. +func (s *RespondDecisionTaskCompletedInput) SetTaskToken(v string) *RespondDecisionTaskCompletedInput { + s.TaskToken = &v + return s +} + type RespondDecisionTaskCompletedOutput struct { _ struct{} `type:"structure"` } @@ -8074,13 +10474,18 @@ func (s RespondDecisionTaskCompletedOutput) GoString() string { // You can use IAM policies to control this decision's access to Amazon SWF // resources as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. Constrain the following parameters by using a Condition element -// with the appropriate keys. activityType.name: String constraint. The key -// is swf:activityType.name. activityType.version: String constraint. The key -// is swf:activityType.version. taskList: String constraint. The key is swf:taskList.name. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * Constrain the following parameters by using a Condition element with +// the appropriate keys. activityType.name: String constraint. The key is +// swf:activityType.name. +// activityType.version: String constraint. The key is swf:activityType.version. +// +// taskList: String constraint. The key is swf:taskList.name. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -8090,10 +10495,9 @@ type ScheduleActivityTaskDecisionAttributes struct { // Required. The activityId of the activity task. // - // The specified string must not start or end with whitespace. It must not - // contain a : (colon), / (slash), | (vertical bar), or any control characters - // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal - // string quotarnquot. + // The specified string must not start or end with whitespace. It must not contain + // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f + // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. // // ActivityId is a required field ActivityId *string `locationName:"activityId" min:"1" type:"string" required:"true"` @@ -8165,10 +10569,9 @@ type ScheduleActivityTaskDecisionAttributes struct { // A task list for this activity task must be specified either as a default // for the activity type or through this field. If neither this field is set // nor a default task list was specified at registration time then a fault will - // be returned. The specified string must not start or end with whitespace. - // It must not contain a : (colon), / (slash), | (vertical bar), or any control - // characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the - // literal string quotarnquot. + // be returned.The specified string must not start or end with whitespace. It must not contain + // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f + // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. TaskList *TaskList `locationName:"taskList" type:"structure"` // Optional. If set, specifies the priority with which the activity task is @@ -8222,6 +10625,66 @@ func (s *ScheduleActivityTaskDecisionAttributes) Validate() error { return nil } +// SetActivityId sets the ActivityId field's value. +func (s *ScheduleActivityTaskDecisionAttributes) SetActivityId(v string) *ScheduleActivityTaskDecisionAttributes { + s.ActivityId = &v + return s +} + +// SetActivityType sets the ActivityType field's value. +func (s *ScheduleActivityTaskDecisionAttributes) SetActivityType(v *ActivityType) *ScheduleActivityTaskDecisionAttributes { + s.ActivityType = v + return s +} + +// SetControl sets the Control field's value. +func (s *ScheduleActivityTaskDecisionAttributes) SetControl(v string) *ScheduleActivityTaskDecisionAttributes { + s.Control = &v + return s +} + +// SetHeartbeatTimeout sets the HeartbeatTimeout field's value. +func (s *ScheduleActivityTaskDecisionAttributes) SetHeartbeatTimeout(v string) *ScheduleActivityTaskDecisionAttributes { + s.HeartbeatTimeout = &v + return s +} + +// SetInput sets the Input field's value. +func (s *ScheduleActivityTaskDecisionAttributes) SetInput(v string) *ScheduleActivityTaskDecisionAttributes { + s.Input = &v + return s +} + +// SetScheduleToCloseTimeout sets the ScheduleToCloseTimeout field's value. +func (s *ScheduleActivityTaskDecisionAttributes) SetScheduleToCloseTimeout(v string) *ScheduleActivityTaskDecisionAttributes { + s.ScheduleToCloseTimeout = &v + return s +} + +// SetScheduleToStartTimeout sets the ScheduleToStartTimeout field's value. +func (s *ScheduleActivityTaskDecisionAttributes) SetScheduleToStartTimeout(v string) *ScheduleActivityTaskDecisionAttributes { + s.ScheduleToStartTimeout = &v + return s +} + +// SetStartToCloseTimeout sets the StartToCloseTimeout field's value. +func (s *ScheduleActivityTaskDecisionAttributes) SetStartToCloseTimeout(v string) *ScheduleActivityTaskDecisionAttributes { + s.StartToCloseTimeout = &v + return s +} + +// SetTaskList sets the TaskList field's value. +func (s *ScheduleActivityTaskDecisionAttributes) SetTaskList(v *TaskList) *ScheduleActivityTaskDecisionAttributes { + s.TaskList = v + return s +} + +// SetTaskPriority sets the TaskPriority field's value. +func (s *ScheduleActivityTaskDecisionAttributes) SetTaskPriority(v string) *ScheduleActivityTaskDecisionAttributes { + s.TaskPriority = &v + return s +} + // Provides details of the ScheduleActivityTaskFailed event. type ScheduleActivityTaskFailedEventAttributes struct { _ struct{} `type:"structure"` @@ -8239,8 +10702,8 @@ type ScheduleActivityTaskFailedEventAttributes struct { // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // - // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because - // it lacked sufficient permissions. For details and example IAM policies, see + // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it + // lacked sufficient permissions. For details and example IAM policies, see // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Cause is a required field @@ -8265,6 +10728,30 @@ func (s ScheduleActivityTaskFailedEventAttributes) GoString() string { return s.String() } +// SetActivityId sets the ActivityId field's value. +func (s *ScheduleActivityTaskFailedEventAttributes) SetActivityId(v string) *ScheduleActivityTaskFailedEventAttributes { + s.ActivityId = &v + return s +} + +// SetActivityType sets the ActivityType field's value. +func (s *ScheduleActivityTaskFailedEventAttributes) SetActivityType(v *ActivityType) *ScheduleActivityTaskFailedEventAttributes { + s.ActivityType = v + return s +} + +// SetCause sets the Cause field's value. +func (s *ScheduleActivityTaskFailedEventAttributes) SetCause(v string) *ScheduleActivityTaskFailedEventAttributes { + s.Cause = &v + return s +} + +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *ScheduleActivityTaskFailedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *ScheduleActivityTaskFailedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + // Provides details of the ScheduleLambdaFunction decision. // // Access Control @@ -8272,13 +10759,18 @@ func (s ScheduleActivityTaskFailedEventAttributes) GoString() string { // You can use IAM policies to control this decision's access to Amazon SWF // resources as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. Constrain the following parameters by using a Condition element -// with the appropriate keys. activityType.name: String constraint. The key -// is swf:activityType.name. activityType.version: String constraint. The key -// is swf:activityType.version. taskList: String constraint. The key is swf:taskList.name. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * Constrain the following parameters by using a Condition element with +// the appropriate keys. activityType.name: String constraint. The key is +// swf:activityType.name. +// activityType.version: String constraint. The key is swf:activityType.version. +// +// taskList: String constraint. The key is swf:taskList.name. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -8288,10 +10780,9 @@ type ScheduleLambdaFunctionDecisionAttributes struct { // Required. The SWF id of the AWS Lambda task. // - // The specified string must not start or end with whitespace. It must not - // contain a : (colon), / (slash), | (vertical bar), or any control characters - // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal - // string quotarnquot. + // The specified string must not start or end with whitespace. It must not contain + // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f + // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. // // Id is a required field Id *string `locationName:"id" min:"1" type:"string" required:"true"` @@ -8343,6 +10834,30 @@ func (s *ScheduleLambdaFunctionDecisionAttributes) Validate() error { return nil } +// SetId sets the Id field's value. +func (s *ScheduleLambdaFunctionDecisionAttributes) SetId(v string) *ScheduleLambdaFunctionDecisionAttributes { + s.Id = &v + return s +} + +// SetInput sets the Input field's value. +func (s *ScheduleLambdaFunctionDecisionAttributes) SetInput(v string) *ScheduleLambdaFunctionDecisionAttributes { + s.Input = &v + return s +} + +// SetName sets the Name field's value. +func (s *ScheduleLambdaFunctionDecisionAttributes) SetName(v string) *ScheduleLambdaFunctionDecisionAttributes { + s.Name = &v + return s +} + +// SetStartToCloseTimeout sets the StartToCloseTimeout field's value. +func (s *ScheduleLambdaFunctionDecisionAttributes) SetStartToCloseTimeout(v string) *ScheduleLambdaFunctionDecisionAttributes { + s.StartToCloseTimeout = &v + return s +} + // Provides details for the ScheduleLambdaFunctionFailed event. type ScheduleLambdaFunctionFailedEventAttributes struct { _ struct{} `type:"structure"` @@ -8350,8 +10865,8 @@ type ScheduleLambdaFunctionFailedEventAttributes struct { // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // - // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because - // it lacked sufficient permissions. For details and example IAM policies, see + // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it + // lacked sufficient permissions. For details and example IAM policies, see // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Cause is a required field @@ -8386,6 +10901,30 @@ func (s ScheduleLambdaFunctionFailedEventAttributes) GoString() string { return s.String() } +// SetCause sets the Cause field's value. +func (s *ScheduleLambdaFunctionFailedEventAttributes) SetCause(v string) *ScheduleLambdaFunctionFailedEventAttributes { + s.Cause = &v + return s +} + +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *ScheduleLambdaFunctionFailedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *ScheduleLambdaFunctionFailedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + +// SetId sets the Id field's value. +func (s *ScheduleLambdaFunctionFailedEventAttributes) SetId(v string) *ScheduleLambdaFunctionFailedEventAttributes { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *ScheduleLambdaFunctionFailedEventAttributes) SetName(v string) *ScheduleLambdaFunctionFailedEventAttributes { + s.Name = &v + return s +} + // Provides details of the SignalExternalWorkflowExecution decision. // // Access Control @@ -8393,10 +10932,13 @@ func (s ScheduleLambdaFunctionFailedEventAttributes) GoString() string { // You can use IAM policies to control this decision's access to Amazon SWF // resources as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -8459,6 +11001,36 @@ func (s *SignalExternalWorkflowExecutionDecisionAttributes) Validate() error { return nil } +// SetControl sets the Control field's value. +func (s *SignalExternalWorkflowExecutionDecisionAttributes) SetControl(v string) *SignalExternalWorkflowExecutionDecisionAttributes { + s.Control = &v + return s +} + +// SetInput sets the Input field's value. +func (s *SignalExternalWorkflowExecutionDecisionAttributes) SetInput(v string) *SignalExternalWorkflowExecutionDecisionAttributes { + s.Input = &v + return s +} + +// SetRunId sets the RunId field's value. +func (s *SignalExternalWorkflowExecutionDecisionAttributes) SetRunId(v string) *SignalExternalWorkflowExecutionDecisionAttributes { + s.RunId = &v + return s +} + +// SetSignalName sets the SignalName field's value. +func (s *SignalExternalWorkflowExecutionDecisionAttributes) SetSignalName(v string) *SignalExternalWorkflowExecutionDecisionAttributes { + s.SignalName = &v + return s +} + +// SetWorkflowId sets the WorkflowId field's value. +func (s *SignalExternalWorkflowExecutionDecisionAttributes) SetWorkflowId(v string) *SignalExternalWorkflowExecutionDecisionAttributes { + s.WorkflowId = &v + return s +} + // Provides details of the SignalExternalWorkflowExecutionFailed event. type SignalExternalWorkflowExecutionFailedEventAttributes struct { _ struct{} `type:"structure"` @@ -8466,8 +11038,8 @@ type SignalExternalWorkflowExecutionFailedEventAttributes struct { // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // - // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because - // it lacked sufficient permissions. For details and example IAM policies, see + // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it + // lacked sufficient permissions. For details and example IAM policies, see // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Cause is a required field @@ -8512,6 +11084,42 @@ func (s SignalExternalWorkflowExecutionFailedEventAttributes) GoString() string return s.String() } +// SetCause sets the Cause field's value. +func (s *SignalExternalWorkflowExecutionFailedEventAttributes) SetCause(v string) *SignalExternalWorkflowExecutionFailedEventAttributes { + s.Cause = &v + return s +} + +// SetControl sets the Control field's value. +func (s *SignalExternalWorkflowExecutionFailedEventAttributes) SetControl(v string) *SignalExternalWorkflowExecutionFailedEventAttributes { + s.Control = &v + return s +} + +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *SignalExternalWorkflowExecutionFailedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *SignalExternalWorkflowExecutionFailedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + +// SetInitiatedEventId sets the InitiatedEventId field's value. +func (s *SignalExternalWorkflowExecutionFailedEventAttributes) SetInitiatedEventId(v int64) *SignalExternalWorkflowExecutionFailedEventAttributes { + s.InitiatedEventId = &v + return s +} + +// SetRunId sets the RunId field's value. +func (s *SignalExternalWorkflowExecutionFailedEventAttributes) SetRunId(v string) *SignalExternalWorkflowExecutionFailedEventAttributes { + s.RunId = &v + return s +} + +// SetWorkflowId sets the WorkflowId field's value. +func (s *SignalExternalWorkflowExecutionFailedEventAttributes) SetWorkflowId(v string) *SignalExternalWorkflowExecutionFailedEventAttributes { + s.WorkflowId = &v + return s +} + // Provides details of the SignalExternalWorkflowExecutionInitiated event. type SignalExternalWorkflowExecutionInitiatedEventAttributes struct { _ struct{} `type:"structure"` @@ -8555,6 +11163,42 @@ func (s SignalExternalWorkflowExecutionInitiatedEventAttributes) GoString() stri return s.String() } +// SetControl sets the Control field's value. +func (s *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetControl(v string) *SignalExternalWorkflowExecutionInitiatedEventAttributes { + s.Control = &v + return s +} + +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *SignalExternalWorkflowExecutionInitiatedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + +// SetInput sets the Input field's value. +func (s *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetInput(v string) *SignalExternalWorkflowExecutionInitiatedEventAttributes { + s.Input = &v + return s +} + +// SetRunId sets the RunId field's value. +func (s *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetRunId(v string) *SignalExternalWorkflowExecutionInitiatedEventAttributes { + s.RunId = &v + return s +} + +// SetSignalName sets the SignalName field's value. +func (s *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetSignalName(v string) *SignalExternalWorkflowExecutionInitiatedEventAttributes { + s.SignalName = &v + return s +} + +// SetWorkflowId sets the WorkflowId field's value. +func (s *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetWorkflowId(v string) *SignalExternalWorkflowExecutionInitiatedEventAttributes { + s.WorkflowId = &v + return s +} + type SignalWorkflowExecutionInput struct { _ struct{} `type:"structure"` @@ -8619,6 +11263,36 @@ func (s *SignalWorkflowExecutionInput) Validate() error { return nil } +// SetDomain sets the Domain field's value. +func (s *SignalWorkflowExecutionInput) SetDomain(v string) *SignalWorkflowExecutionInput { + s.Domain = &v + return s +} + +// SetInput sets the Input field's value. +func (s *SignalWorkflowExecutionInput) SetInput(v string) *SignalWorkflowExecutionInput { + s.Input = &v + return s +} + +// SetRunId sets the RunId field's value. +func (s *SignalWorkflowExecutionInput) SetRunId(v string) *SignalWorkflowExecutionInput { + s.RunId = &v + return s +} + +// SetSignalName sets the SignalName field's value. +func (s *SignalWorkflowExecutionInput) SetSignalName(v string) *SignalWorkflowExecutionInput { + s.SignalName = &v + return s +} + +// SetWorkflowId sets the WorkflowId field's value. +func (s *SignalWorkflowExecutionInput) SetWorkflowId(v string) *SignalWorkflowExecutionInput { + s.WorkflowId = &v + return s +} + type SignalWorkflowExecutionOutput struct { _ struct{} `type:"structure"` } @@ -8640,18 +11314,22 @@ func (s SignalWorkflowExecutionOutput) GoString() string { // You can use IAM policies to control this decision's access to Amazon SWF // resources as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. Constrain the following parameters by using a Condition element -// with the appropriate keys. tagList.member.N: The key is "swf:tagList.N" -// where N is the tag number from 0 to 4, inclusive. taskList: String constraint. -// The key is swf:taskList.name. workflowType.name: String constraint. The key -// is swf:workflowType.name. workflowType.version: String constraint. The key -// is swf:workflowType.version. If the caller does not have sufficient permissions -// to invoke the action, or the parameter values fall outside the specified -// constraints, the action fails. The associated event attribute's cause parameter -// will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, -// see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * Constrain the following parameters by using a Condition element with +// the appropriate keys. tagList.member.N: The key is "swf:tagList.N" where +// N is the tag number from 0 to 4, inclusive. +// taskList: String constraint. The key is swf:taskList.name. +// workflowType.name: String constraint. The key is swf:workflowType.name. +// workflowType.version: String constraint. The key is swf:workflowType.version. +// +// If the caller does not have sufficient permissions to invoke the action, +// or the parameter values fall outside the specified constraints, the action +// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. +// For details and example IAM policies, see Using IAM to Manage Access to Amazon +// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). type StartChildWorkflowExecutionDecisionAttributes struct { _ struct{} `type:"structure"` @@ -8662,15 +11340,17 @@ type StartChildWorkflowExecutionDecisionAttributes struct { // // The supported child policies are: // - // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request - // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested - // event in its history. It is up to the decider to take appropriate actions - // when it receives an execution history with this event. ABANDON: no action - // will be taken. The child executions will continue to run. A child policy - // for this workflow execution must be specified either as a default for the - // workflow type or through this parameter. If neither this parameter is set - // nor a default child policy was specified at registration time then a fault - // will be returned. + // * TERMINATE: the child executions will be terminated. + // * REQUEST_CANCEL: a request to cancel will be attempted for each child + // execution by recording a WorkflowExecutionCancelRequested event in its + // history. It is up to the decider to take appropriate actions when it receives + // an execution history with this event. + // * ABANDON: no action will be taken. The child executions will continue + // to run. + // A child policy for this workflow execution must be specified either as a + // default for the workflow type or through this parameter. If neither this + // parameter is set nor a default child policy was specified at registration + // time then a fault will be returned. ChildPolicy *string `locationName:"childPolicy" type:"string" enum:"ChildPolicy"` // Optional. Data attached to the event that can be used by the decider in subsequent @@ -8683,10 +11363,10 @@ type StartChildWorkflowExecutionDecisionAttributes struct { // The duration is specified in seconds; an integer greater than or equal to // 0. The value "NONE" can be used to specify unlimited duration. // - // An execution start-to-close timeout for this workflow execution must be - // specified either as a default for the workflow type or through this parameter. - // If neither this parameter is set nor a default execution start-to-close timeout - // was specified at registration time then a fault will be returned. + // An execution start-to-close timeout for this workflow execution must be specified + // either as a default for the workflow type or through this parameter. If neither + // this parameter is set nor a default execution start-to-close timeout was + // specified at registration time then a fault will be returned. ExecutionStartToCloseTimeout *string `locationName:"executionStartToCloseTimeout" type:"string"` // The input to be provided to the workflow execution. @@ -8694,9 +11374,9 @@ type StartChildWorkflowExecutionDecisionAttributes struct { // The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions. // - // In order for this workflow execution to invoke AWS Lambda functions, an - // appropriate IAM role must be specified either as a default for the workflow - // type or through this field. + // In order for this workflow execution to invoke AWS Lambda functions, an appropriate + // IAM role must be specified either as a default for the workflow type or through + // this field. LambdaRole *string `locationName:"lambdaRole" min:"1" type:"string"` // The list of tags to associate with the child workflow execution. A maximum @@ -8711,10 +11391,9 @@ type StartChildWorkflowExecutionDecisionAttributes struct { // A task list for this workflow execution must be specified either as a default // for the workflow type or through this parameter. If neither this parameter // is set nor a default task list was specified at registration time then a - // fault will be returned. The specified string must not start or end with whitespace. - // It must not contain a : (colon), / (slash), | (vertical bar), or any control - // characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the - // literal string quotarnquot. + // fault will be returned.The specified string must not start or end with whitespace. It must not contain + // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f + // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. TaskList *TaskList `locationName:"taskList" type:"structure"` // Optional. A task priority that, if set, specifies the priority for a decision @@ -8743,10 +11422,9 @@ type StartChildWorkflowExecutionDecisionAttributes struct { // Required. The workflowId of the workflow execution. // - // The specified string must not start or end with whitespace. It must not - // contain a : (colon), / (slash), | (vertical bar), or any control characters - // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal - // string quotarnquot. + // The specified string must not start or end with whitespace. It must not contain + // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f + // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. // // WorkflowId is a required field WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"` @@ -8799,6 +11477,72 @@ func (s *StartChildWorkflowExecutionDecisionAttributes) Validate() error { return nil } +// SetChildPolicy sets the ChildPolicy field's value. +func (s *StartChildWorkflowExecutionDecisionAttributes) SetChildPolicy(v string) *StartChildWorkflowExecutionDecisionAttributes { + s.ChildPolicy = &v + return s +} + +// SetControl sets the Control field's value. +func (s *StartChildWorkflowExecutionDecisionAttributes) SetControl(v string) *StartChildWorkflowExecutionDecisionAttributes { + s.Control = &v + return s +} + +// SetExecutionStartToCloseTimeout sets the ExecutionStartToCloseTimeout field's value. +func (s *StartChildWorkflowExecutionDecisionAttributes) SetExecutionStartToCloseTimeout(v string) *StartChildWorkflowExecutionDecisionAttributes { + s.ExecutionStartToCloseTimeout = &v + return s +} + +// SetInput sets the Input field's value. +func (s *StartChildWorkflowExecutionDecisionAttributes) SetInput(v string) *StartChildWorkflowExecutionDecisionAttributes { + s.Input = &v + return s +} + +// SetLambdaRole sets the LambdaRole field's value. +func (s *StartChildWorkflowExecutionDecisionAttributes) SetLambdaRole(v string) *StartChildWorkflowExecutionDecisionAttributes { + s.LambdaRole = &v + return s +} + +// SetTagList sets the TagList field's value. +func (s *StartChildWorkflowExecutionDecisionAttributes) SetTagList(v []*string) *StartChildWorkflowExecutionDecisionAttributes { + s.TagList = v + return s +} + +// SetTaskList sets the TaskList field's value. +func (s *StartChildWorkflowExecutionDecisionAttributes) SetTaskList(v *TaskList) *StartChildWorkflowExecutionDecisionAttributes { + s.TaskList = v + return s +} + +// SetTaskPriority sets the TaskPriority field's value. +func (s *StartChildWorkflowExecutionDecisionAttributes) SetTaskPriority(v string) *StartChildWorkflowExecutionDecisionAttributes { + s.TaskPriority = &v + return s +} + +// SetTaskStartToCloseTimeout sets the TaskStartToCloseTimeout field's value. +func (s *StartChildWorkflowExecutionDecisionAttributes) SetTaskStartToCloseTimeout(v string) *StartChildWorkflowExecutionDecisionAttributes { + s.TaskStartToCloseTimeout = &v + return s +} + +// SetWorkflowId sets the WorkflowId field's value. +func (s *StartChildWorkflowExecutionDecisionAttributes) SetWorkflowId(v string) *StartChildWorkflowExecutionDecisionAttributes { + s.WorkflowId = &v + return s +} + +// SetWorkflowType sets the WorkflowType field's value. +func (s *StartChildWorkflowExecutionDecisionAttributes) SetWorkflowType(v *WorkflowType) *StartChildWorkflowExecutionDecisionAttributes { + s.WorkflowType = v + return s +} + // Provides details of the StartChildWorkflowExecutionFailed event. type StartChildWorkflowExecutionFailedEventAttributes struct { _ struct{} `type:"structure"` @@ -8806,8 +11550,8 @@ type StartChildWorkflowExecutionFailedEventAttributes struct { // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // - // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because - // it lacked sufficient permissions. For details and example IAM policies, see + // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it + // lacked sufficient permissions. For details and example IAM policies, see // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Cause is a required field @@ -8853,6 +11597,42 @@ func (s StartChildWorkflowExecutionFailedEventAttributes) GoString() string { return s.String() } +// SetCause sets the Cause field's value. +func (s *StartChildWorkflowExecutionFailedEventAttributes) SetCause(v string) *StartChildWorkflowExecutionFailedEventAttributes { + s.Cause = &v + return s +} + +// SetControl sets the Control field's value. +func (s *StartChildWorkflowExecutionFailedEventAttributes) SetControl(v string) *StartChildWorkflowExecutionFailedEventAttributes { + s.Control = &v + return s +} + +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *StartChildWorkflowExecutionFailedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *StartChildWorkflowExecutionFailedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + +// SetInitiatedEventId sets the InitiatedEventId field's value. +func (s *StartChildWorkflowExecutionFailedEventAttributes) SetInitiatedEventId(v int64) *StartChildWorkflowExecutionFailedEventAttributes { + s.InitiatedEventId = &v + return s +} + +// SetWorkflowId sets the WorkflowId field's value. +func (s *StartChildWorkflowExecutionFailedEventAttributes) SetWorkflowId(v string) *StartChildWorkflowExecutionFailedEventAttributes { + s.WorkflowId = &v + return s +} + +// SetWorkflowType sets the WorkflowType field's value. +func (s *StartChildWorkflowExecutionFailedEventAttributes) SetWorkflowType(v *WorkflowType) *StartChildWorkflowExecutionFailedEventAttributes { + s.WorkflowType = v + return s +} + // Provides details of the StartChildWorkflowExecutionInitiated event. type StartChildWorkflowExecutionInitiatedEventAttributes struct { _ struct{} `type:"structure"` @@ -8863,11 +11643,13 @@ type StartChildWorkflowExecutionInitiatedEventAttributes struct { // // The supported child policies are: // - // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request - // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested - // event in its history. It is up to the decider to take appropriate actions - // when it receives an execution history with this event. ABANDON: no action - // will be taken. The child executions will continue to run. + // * TERMINATE: the child executions will be terminated. + // * REQUEST_CANCEL: a request to cancel will be attempted for each child + // execution by recording a WorkflowExecutionCancelRequested event in its + // history. It is up to the decider to take appropriate actions when it receives + // an execution history with this event. + // * ABANDON: no action will be taken. The child executions will continue + // to run. // // ChildPolicy is a required field ChildPolicy *string `locationName:"childPolicy" type:"string" required:"true" enum:"ChildPolicy"` @@ -8934,14 +11716,86 @@ type StartChildWorkflowExecutionInitiatedEventAttributes struct { WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"` } -// String returns the string representation -func (s StartChildWorkflowExecutionInitiatedEventAttributes) String() string { - return awsutil.Prettify(s) +// String returns the string representation +func (s StartChildWorkflowExecutionInitiatedEventAttributes) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartChildWorkflowExecutionInitiatedEventAttributes) GoString() string { + return s.String() +} + +// SetChildPolicy sets the ChildPolicy field's value. +func (s *StartChildWorkflowExecutionInitiatedEventAttributes) SetChildPolicy(v string) *StartChildWorkflowExecutionInitiatedEventAttributes { + s.ChildPolicy = &v + return s +} + +// SetControl sets the Control field's value. +func (s *StartChildWorkflowExecutionInitiatedEventAttributes) SetControl(v string) *StartChildWorkflowExecutionInitiatedEventAttributes { + s.Control = &v + return s +} + +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *StartChildWorkflowExecutionInitiatedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *StartChildWorkflowExecutionInitiatedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + +// SetExecutionStartToCloseTimeout sets the ExecutionStartToCloseTimeout field's value. +func (s *StartChildWorkflowExecutionInitiatedEventAttributes) SetExecutionStartToCloseTimeout(v string) *StartChildWorkflowExecutionInitiatedEventAttributes { + s.ExecutionStartToCloseTimeout = &v + return s +} + +// SetInput sets the Input field's value. +func (s *StartChildWorkflowExecutionInitiatedEventAttributes) SetInput(v string) *StartChildWorkflowExecutionInitiatedEventAttributes { + s.Input = &v + return s +} + +// SetLambdaRole sets the LambdaRole field's value. +func (s *StartChildWorkflowExecutionInitiatedEventAttributes) SetLambdaRole(v string) *StartChildWorkflowExecutionInitiatedEventAttributes { + s.LambdaRole = &v + return s +} + +// SetTagList sets the TagList field's value. +func (s *StartChildWorkflowExecutionInitiatedEventAttributes) SetTagList(v []*string) *StartChildWorkflowExecutionInitiatedEventAttributes { + s.TagList = v + return s +} + +// SetTaskList sets the TaskList field's value. +func (s *StartChildWorkflowExecutionInitiatedEventAttributes) SetTaskList(v *TaskList) *StartChildWorkflowExecutionInitiatedEventAttributes { + s.TaskList = v + return s +} + +// SetTaskPriority sets the TaskPriority field's value. +func (s *StartChildWorkflowExecutionInitiatedEventAttributes) SetTaskPriority(v string) *StartChildWorkflowExecutionInitiatedEventAttributes { + s.TaskPriority = &v + return s +} + +// SetTaskStartToCloseTimeout sets the TaskStartToCloseTimeout field's value. +func (s *StartChildWorkflowExecutionInitiatedEventAttributes) SetTaskStartToCloseTimeout(v string) *StartChildWorkflowExecutionInitiatedEventAttributes { + s.TaskStartToCloseTimeout = &v + return s +} + +// SetWorkflowId sets the WorkflowId field's value. +func (s *StartChildWorkflowExecutionInitiatedEventAttributes) SetWorkflowId(v string) *StartChildWorkflowExecutionInitiatedEventAttributes { + s.WorkflowId = &v + return s } -// GoString returns the string representation -func (s StartChildWorkflowExecutionInitiatedEventAttributes) GoString() string { - return s.String() +// SetWorkflowType sets the WorkflowType field's value. +func (s *StartChildWorkflowExecutionInitiatedEventAttributes) SetWorkflowType(v *WorkflowType) *StartChildWorkflowExecutionInitiatedEventAttributes { + s.WorkflowType = v + return s } // Provides details for the StartLambdaFunctionFailed event. @@ -8951,8 +11805,8 @@ type StartLambdaFunctionFailedEventAttributes struct { // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // - // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because - // it lacked sufficient permissions. For details and example IAM policies, see + // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it + // lacked sufficient permissions. For details and example IAM policies, see // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). Cause *string `locationName:"cause" type:"string" enum:"StartLambdaFunctionFailedCause"` @@ -8975,6 +11829,24 @@ func (s StartLambdaFunctionFailedEventAttributes) GoString() string { return s.String() } +// SetCause sets the Cause field's value. +func (s *StartLambdaFunctionFailedEventAttributes) SetCause(v string) *StartLambdaFunctionFailedEventAttributes { + s.Cause = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *StartLambdaFunctionFailedEventAttributes) SetMessage(v string) *StartLambdaFunctionFailedEventAttributes { + s.Message = &v + return s +} + +// SetScheduledEventId sets the ScheduledEventId field's value. +func (s *StartLambdaFunctionFailedEventAttributes) SetScheduledEventId(v int64) *StartLambdaFunctionFailedEventAttributes { + s.ScheduledEventId = &v + return s +} + // Provides details of the StartTimer decision. // // Access Control @@ -8982,10 +11854,13 @@ func (s StartLambdaFunctionFailedEventAttributes) GoString() string { // You can use IAM policies to control this decision's access to Amazon SWF // resources as follows: // -// Use a Resource element with the domain name to limit the action to only -// specified domains. Use an Action element to allow or deny permission to call -// this action. You cannot use an IAM policy to constrain this action's parameters. -// If the caller does not have sufficient permissions to invoke the action, +// * Use a Resource element with the domain name to limit the action to only +// specified domains. +// * Use an Action element to allow or deny permission to call this action. +// +// * You cannot use an IAM policy to constrain this action's parameters. +// +// If the caller does not have sufficient permissions to invoke the action, // or the parameter values fall outside the specified constraints, the action // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon @@ -9007,10 +11882,9 @@ type StartTimerDecisionAttributes struct { // Required. The unique ID of the timer. // - // The specified string must not start or end with whitespace. It must not - // contain a : (colon), / (slash), | (vertical bar), or any control characters - // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal - // string quotarnquot. + // The specified string must not start or end with whitespace. It must not contain + // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f + // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. // // TimerId is a required field TimerId *string `locationName:"timerId" min:"1" type:"string" required:"true"` @@ -9048,6 +11922,24 @@ func (s *StartTimerDecisionAttributes) Validate() error { return nil } +// SetControl sets the Control field's value. +func (s *StartTimerDecisionAttributes) SetControl(v string) *StartTimerDecisionAttributes { + s.Control = &v + return s +} + +// SetStartToFireTimeout sets the StartToFireTimeout field's value. +func (s *StartTimerDecisionAttributes) SetStartToFireTimeout(v string) *StartTimerDecisionAttributes { + s.StartToFireTimeout = &v + return s +} + +// SetTimerId sets the TimerId field's value. +func (s *StartTimerDecisionAttributes) SetTimerId(v string) *StartTimerDecisionAttributes { + s.TimerId = &v + return s +} + // Provides details of the StartTimerFailed event. type StartTimerFailedEventAttributes struct { _ struct{} `type:"structure"` @@ -9055,8 +11947,8 @@ type StartTimerFailedEventAttributes struct { // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // - // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because - // it lacked sufficient permissions. For details and example IAM policies, see + // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it + // lacked sufficient permissions. For details and example IAM policies, see // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). // // Cause is a required field @@ -9086,6 +11978,24 @@ func (s StartTimerFailedEventAttributes) GoString() string { return s.String() } +// SetCause sets the Cause field's value. +func (s *StartTimerFailedEventAttributes) SetCause(v string) *StartTimerFailedEventAttributes { + s.Cause = &v + return s +} + +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *StartTimerFailedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *StartTimerFailedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + +// SetTimerId sets the TimerId field's value. +func (s *StartTimerFailedEventAttributes) SetTimerId(v string) *StartTimerFailedEventAttributes { + s.TimerId = &v + return s +} + type StartWorkflowExecutionInput struct { _ struct{} `type:"structure"` @@ -9096,15 +12006,17 @@ type StartWorkflowExecutionInput struct { // // The supported child policies are: // - // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request - // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested - // event in its history. It is up to the decider to take appropriate actions - // when it receives an execution history with this event. ABANDON: no action - // will be taken. The child executions will continue to run. A child policy - // for this workflow execution must be specified either as a default for the - // workflow type or through this parameter. If neither this parameter is set - // nor a default child policy was specified at registration time then a fault - // will be returned. + // * TERMINATE: the child executions will be terminated. + // * REQUEST_CANCEL: a request to cancel will be attempted for each child + // execution by recording a WorkflowExecutionCancelRequested event in its + // history. It is up to the decider to take appropriate actions when it receives + // an execution history with this event. + // * ABANDON: no action will be taken. The child executions will continue + // to run. + // A child policy for this workflow execution must be specified either as a + // default for the workflow type or through this parameter. If neither this + // parameter is set nor a default child policy was specified at registration + // time then a fault will be returned. ChildPolicy *string `locationName:"childPolicy" type:"string" enum:"ChildPolicy"` // The name of the domain in which the workflow execution is created. @@ -9121,7 +12033,7 @@ type StartWorkflowExecutionInput struct { // value of "NONE" for this timeout; there is a one-year max limit on the time // that a workflow execution can run. // - // An execution start-to-close timeout must be specified either through this + // An execution start-to-close timeout must be specified either through this // parameter or as a default when the workflow type is registered. If neither // this parameter nor a default execution start-to-close timeout is specified, // a fault is returned. @@ -9134,9 +12046,9 @@ type StartWorkflowExecutionInput struct { // The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions. // - // In order for this workflow execution to invoke AWS Lambda functions, an - // appropriate IAM role must be specified either as a default for the workflow - // type or through this field. + // In order for this workflow execution to invoke AWS Lambda functions, an appropriate + // IAM role must be specified either as a default for the workflow type or through + // this field. LambdaRole *string `locationName:"lambdaRole" min:"1" type:"string"` // The list of tags to associate with the workflow execution. You can specify @@ -9152,10 +12064,9 @@ type StartWorkflowExecutionInput struct { // A task list for this workflow execution must be specified either as a default // for the workflow type or through this parameter. If neither this parameter // is set nor a default task list was specified at registration time then a - // fault will be returned. The specified string must not start or end with whitespace. - // It must not contain a : (colon), / (slash), | (vertical bar), or any control - // characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the - // literal string quotarnquot. + // fault will be returned.The specified string must not start or end with whitespace. It must not contain + // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f + // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. TaskList *TaskList `locationName:"taskList" type:"structure"` // The task priority to use for this workflow execution. This will override @@ -9189,10 +12100,9 @@ type StartWorkflowExecutionInput struct { // of a previous execution. You cannot have two open workflow executions with // the same workflowId at the same time. // - // The specified string must not start or end with whitespace. It must not - // contain a : (colon), / (slash), | (vertical bar), or any control characters - // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal - // string quotarnquot. + // The specified string must not start or end with whitespace. It must not contain + // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f + // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. // // WorkflowId is a required field WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"` @@ -9251,6 +12161,72 @@ func (s *StartWorkflowExecutionInput) Validate() error { return nil } +// SetChildPolicy sets the ChildPolicy field's value. +func (s *StartWorkflowExecutionInput) SetChildPolicy(v string) *StartWorkflowExecutionInput { + s.ChildPolicy = &v + return s +} + +// SetDomain sets the Domain field's value. +func (s *StartWorkflowExecutionInput) SetDomain(v string) *StartWorkflowExecutionInput { + s.Domain = &v + return s +} + +// SetExecutionStartToCloseTimeout sets the ExecutionStartToCloseTimeout field's value. +func (s *StartWorkflowExecutionInput) SetExecutionStartToCloseTimeout(v string) *StartWorkflowExecutionInput { + s.ExecutionStartToCloseTimeout = &v + return s +} + +// SetInput sets the Input field's value. +func (s *StartWorkflowExecutionInput) SetInput(v string) *StartWorkflowExecutionInput { + s.Input = &v + return s +} + +// SetLambdaRole sets the LambdaRole field's value. +func (s *StartWorkflowExecutionInput) SetLambdaRole(v string) *StartWorkflowExecutionInput { + s.LambdaRole = &v + return s +} + +// SetTagList sets the TagList field's value. +func (s *StartWorkflowExecutionInput) SetTagList(v []*string) *StartWorkflowExecutionInput { + s.TagList = v + return s +} + +// SetTaskList sets the TaskList field's value. +func (s *StartWorkflowExecutionInput) SetTaskList(v *TaskList) *StartWorkflowExecutionInput { + s.TaskList = v + return s +} + +// SetTaskPriority sets the TaskPriority field's value. +func (s *StartWorkflowExecutionInput) SetTaskPriority(v string) *StartWorkflowExecutionInput { + s.TaskPriority = &v + return s +} + +// SetTaskStartToCloseTimeout sets the TaskStartToCloseTimeout field's value. +func (s *StartWorkflowExecutionInput) SetTaskStartToCloseTimeout(v string) *StartWorkflowExecutionInput { + s.TaskStartToCloseTimeout = &v + return s +} + +// SetWorkflowId sets the WorkflowId field's value. +func (s *StartWorkflowExecutionInput) SetWorkflowId(v string) *StartWorkflowExecutionInput { + s.WorkflowId = &v + return s +} + +// SetWorkflowType sets the WorkflowType field's value. +func (s *StartWorkflowExecutionInput) SetWorkflowType(v *WorkflowType) *StartWorkflowExecutionInput { + s.WorkflowType = v + return s +} + // Specifies the runId of a workflow execution. type StartWorkflowExecutionOutput struct { _ struct{} `type:"structure"` @@ -9270,6 +12246,12 @@ func (s StartWorkflowExecutionOutput) GoString() string { return s.String() } +// SetRunId sets the RunId field's value. +func (s *StartWorkflowExecutionOutput) SetRunId(v string) *StartWorkflowExecutionOutput { + s.RunId = &v + return s +} + // Used to filter the workflow executions in visibility APIs based on a tag. type TagFilter struct { _ struct{} `type:"structure"` @@ -9307,6 +12289,12 @@ func (s *TagFilter) Validate() error { return nil } +// SetTag sets the Tag field's value. +func (s *TagFilter) SetTag(v string) *TagFilter { + s.Tag = &v + return s +} + // Represents a task list. type TaskList struct { _ struct{} `type:"structure"` @@ -9343,6 +12331,12 @@ func (s *TaskList) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *TaskList) SetName(v string) *TaskList { + s.Name = &v + return s +} + type TerminateWorkflowExecutionInput struct { _ struct{} `type:"structure"` @@ -9353,15 +12347,17 @@ type TerminateWorkflowExecutionInput struct { // // The supported child policies are: // - // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request - // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested - // event in its history. It is up to the decider to take appropriate actions - // when it receives an execution history with this event. ABANDON: no action - // will be taken. The child executions will continue to run. A child policy - // for this workflow execution must be specified either as a default for the - // workflow type or through this parameter. If neither this parameter is set - // nor a default child policy was specified at registration time then a fault - // will be returned. + // * TERMINATE: the child executions will be terminated. + // * REQUEST_CANCEL: a request to cancel will be attempted for each child + // execution by recording a WorkflowExecutionCancelRequested event in its + // history. It is up to the decider to take appropriate actions when it receives + // an execution history with this event. + // * ABANDON: no action will be taken. The child executions will continue + // to run. + // A child policy for this workflow execution must be specified either as a + // default for the workflow type or through this parameter. If neither this + // parameter is set nor a default child policy was specified at registration + // time then a fault will be returned. ChildPolicy *string `locationName:"childPolicy" type:"string" enum:"ChildPolicy"` // Optional. Details for terminating the workflow execution. @@ -9416,6 +12412,42 @@ func (s *TerminateWorkflowExecutionInput) Validate() error { return nil } +// SetChildPolicy sets the ChildPolicy field's value. +func (s *TerminateWorkflowExecutionInput) SetChildPolicy(v string) *TerminateWorkflowExecutionInput { + s.ChildPolicy = &v + return s +} + +// SetDetails sets the Details field's value. +func (s *TerminateWorkflowExecutionInput) SetDetails(v string) *TerminateWorkflowExecutionInput { + s.Details = &v + return s +} + +// SetDomain sets the Domain field's value. +func (s *TerminateWorkflowExecutionInput) SetDomain(v string) *TerminateWorkflowExecutionInput { + s.Domain = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *TerminateWorkflowExecutionInput) SetReason(v string) *TerminateWorkflowExecutionInput { + s.Reason = &v + return s +} + +// SetRunId sets the RunId field's value. +func (s *TerminateWorkflowExecutionInput) SetRunId(v string) *TerminateWorkflowExecutionInput { + s.RunId = &v + return s +} + +// SetWorkflowId sets the WorkflowId field's value. +func (s *TerminateWorkflowExecutionInput) SetWorkflowId(v string) *TerminateWorkflowExecutionInput { + s.WorkflowId = &v + return s +} + type TerminateWorkflowExecutionOutput struct { _ struct{} `type:"structure"` } @@ -9465,6 +12497,24 @@ func (s TimerCanceledEventAttributes) GoString() string { return s.String() } +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *TimerCanceledEventAttributes) SetDecisionTaskCompletedEventId(v int64) *TimerCanceledEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + +// SetStartedEventId sets the StartedEventId field's value. +func (s *TimerCanceledEventAttributes) SetStartedEventId(v int64) *TimerCanceledEventAttributes { + s.StartedEventId = &v + return s +} + +// SetTimerId sets the TimerId field's value. +func (s *TimerCanceledEventAttributes) SetTimerId(v string) *TimerCanceledEventAttributes { + s.TimerId = &v + return s +} + // Provides details of the TimerFired event. type TimerFiredEventAttributes struct { _ struct{} `type:"structure"` @@ -9492,6 +12542,18 @@ func (s TimerFiredEventAttributes) GoString() string { return s.String() } +// SetStartedEventId sets the StartedEventId field's value. +func (s *TimerFiredEventAttributes) SetStartedEventId(v int64) *TimerFiredEventAttributes { + s.StartedEventId = &v + return s +} + +// SetTimerId sets the TimerId field's value. +func (s *TimerFiredEventAttributes) SetTimerId(v string) *TimerFiredEventAttributes { + s.TimerId = &v + return s +} + // Provides details of the TimerStarted event. type TimerStartedEventAttributes struct { _ struct{} `type:"structure"` @@ -9532,6 +12594,30 @@ func (s TimerStartedEventAttributes) GoString() string { return s.String() } +// SetControl sets the Control field's value. +func (s *TimerStartedEventAttributes) SetControl(v string) *TimerStartedEventAttributes { + s.Control = &v + return s +} + +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *TimerStartedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *TimerStartedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + +// SetStartToFireTimeout sets the StartToFireTimeout field's value. +func (s *TimerStartedEventAttributes) SetStartToFireTimeout(v string) *TimerStartedEventAttributes { + s.StartToFireTimeout = &v + return s +} + +// SetTimerId sets the TimerId field's value. +func (s *TimerStartedEventAttributes) SetTimerId(v string) *TimerStartedEventAttributes { + s.TimerId = &v + return s +} + // Represents a workflow execution. type WorkflowExecution struct { _ struct{} `type:"structure"` @@ -9579,6 +12665,18 @@ func (s *WorkflowExecution) Validate() error { return nil } +// SetRunId sets the RunId field's value. +func (s *WorkflowExecution) SetRunId(v string) *WorkflowExecution { + s.RunId = &v + return s +} + +// SetWorkflowId sets the WorkflowId field's value. +func (s *WorkflowExecution) SetWorkflowId(v string) *WorkflowExecution { + s.WorkflowId = &v + return s +} + // Provides details of the WorkflowExecutionCancelRequested event. type WorkflowExecutionCancelRequestedEventAttributes struct { _ struct{} `type:"structure"` @@ -9609,6 +12707,24 @@ func (s WorkflowExecutionCancelRequestedEventAttributes) GoString() string { return s.String() } +// SetCause sets the Cause field's value. +func (s *WorkflowExecutionCancelRequestedEventAttributes) SetCause(v string) *WorkflowExecutionCancelRequestedEventAttributes { + s.Cause = &v + return s +} + +// SetExternalInitiatedEventId sets the ExternalInitiatedEventId field's value. +func (s *WorkflowExecutionCancelRequestedEventAttributes) SetExternalInitiatedEventId(v int64) *WorkflowExecutionCancelRequestedEventAttributes { + s.ExternalInitiatedEventId = &v + return s +} + +// SetExternalWorkflowExecution sets the ExternalWorkflowExecution field's value. +func (s *WorkflowExecutionCancelRequestedEventAttributes) SetExternalWorkflowExecution(v *WorkflowExecution) *WorkflowExecutionCancelRequestedEventAttributes { + s.ExternalWorkflowExecution = v + return s +} + // Provides details of the WorkflowExecutionCanceled event. type WorkflowExecutionCanceledEventAttributes struct { _ struct{} `type:"structure"` @@ -9635,6 +12751,18 @@ func (s WorkflowExecutionCanceledEventAttributes) GoString() string { return s.String() } +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *WorkflowExecutionCanceledEventAttributes) SetDecisionTaskCompletedEventId(v int64) *WorkflowExecutionCanceledEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + +// SetDetails sets the Details field's value. +func (s *WorkflowExecutionCanceledEventAttributes) SetDetails(v string) *WorkflowExecutionCanceledEventAttributes { + s.Details = &v + return s +} + // Provides details of the WorkflowExecutionCompleted event. type WorkflowExecutionCompletedEventAttributes struct { _ struct{} `type:"structure"` @@ -9661,6 +12789,18 @@ func (s WorkflowExecutionCompletedEventAttributes) GoString() string { return s.String() } +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *WorkflowExecutionCompletedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *WorkflowExecutionCompletedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + +// SetResult sets the Result field's value. +func (s *WorkflowExecutionCompletedEventAttributes) SetResult(v string) *WorkflowExecutionCompletedEventAttributes { + s.Result = &v + return s +} + // The configuration settings for a workflow execution including timeout values, // tasklist etc. These configuration settings are determined from the defaults // specified when registering the workflow type and those specified when starting @@ -9674,11 +12814,13 @@ type WorkflowExecutionConfiguration struct { // // The supported child policies are: // - // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request - // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested - // event in its history. It is up to the decider to take appropriate actions - // when it receives an execution history with this event. ABANDON: no action - // will be taken. The child executions will continue to run. + // * TERMINATE: the child executions will be terminated. + // * REQUEST_CANCEL: a request to cancel will be attempted for each child + // execution by recording a WorkflowExecutionCancelRequested event in its + // history. It is up to the decider to take appropriate actions when it receives + // an execution history with this event. + // * ABANDON: no action will be taken. The child executions will continue + // to run. // // ChildPolicy is a required field ChildPolicy *string `locationName:"childPolicy" type:"string" required:"true" enum:"ChildPolicy"` @@ -9727,6 +12869,42 @@ func (s WorkflowExecutionConfiguration) GoString() string { return s.String() } +// SetChildPolicy sets the ChildPolicy field's value. +func (s *WorkflowExecutionConfiguration) SetChildPolicy(v string) *WorkflowExecutionConfiguration { + s.ChildPolicy = &v + return s +} + +// SetExecutionStartToCloseTimeout sets the ExecutionStartToCloseTimeout field's value. +func (s *WorkflowExecutionConfiguration) SetExecutionStartToCloseTimeout(v string) *WorkflowExecutionConfiguration { + s.ExecutionStartToCloseTimeout = &v + return s +} + +// SetLambdaRole sets the LambdaRole field's value. +func (s *WorkflowExecutionConfiguration) SetLambdaRole(v string) *WorkflowExecutionConfiguration { + s.LambdaRole = &v + return s +} + +// SetTaskList sets the TaskList field's value. +func (s *WorkflowExecutionConfiguration) SetTaskList(v *TaskList) *WorkflowExecutionConfiguration { + s.TaskList = v + return s +} + +// SetTaskPriority sets the TaskPriority field's value. +func (s *WorkflowExecutionConfiguration) SetTaskPriority(v string) *WorkflowExecutionConfiguration { + s.TaskPriority = &v + return s +} + +// SetTaskStartToCloseTimeout sets the TaskStartToCloseTimeout field's value. +func (s *WorkflowExecutionConfiguration) SetTaskStartToCloseTimeout(v string) *WorkflowExecutionConfiguration { + s.TaskStartToCloseTimeout = &v + return s +} + // Provides details of the WorkflowExecutionContinuedAsNew event. type WorkflowExecutionContinuedAsNewEventAttributes struct { _ struct{} `type:"structure"` @@ -9737,11 +12915,13 @@ type WorkflowExecutionContinuedAsNewEventAttributes struct { // // The supported child policies are: // - // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request - // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested - // event in its history. It is up to the decider to take appropriate actions - // when it receives an execution history with this event. ABANDON: no action - // will be taken. The child executions will continue to run. + // * TERMINATE: the child executions will be terminated. + // * REQUEST_CANCEL: a request to cancel will be attempted for each child + // execution by recording a WorkflowExecutionCancelRequested event in its + // history. It is up to the decider to take appropriate actions when it receives + // an execution history with this event. + // * ABANDON: no action will be taken. The child executions will continue + // to run. // // ChildPolicy is a required field ChildPolicy *string `locationName:"childPolicy" type:"string" required:"true" enum:"ChildPolicy"` @@ -9804,6 +12984,72 @@ func (s WorkflowExecutionContinuedAsNewEventAttributes) GoString() string { return s.String() } +// SetChildPolicy sets the ChildPolicy field's value. +func (s *WorkflowExecutionContinuedAsNewEventAttributes) SetChildPolicy(v string) *WorkflowExecutionContinuedAsNewEventAttributes { + s.ChildPolicy = &v + return s +} + +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *WorkflowExecutionContinuedAsNewEventAttributes) SetDecisionTaskCompletedEventId(v int64) *WorkflowExecutionContinuedAsNewEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + +// SetExecutionStartToCloseTimeout sets the ExecutionStartToCloseTimeout field's value. +func (s *WorkflowExecutionContinuedAsNewEventAttributes) SetExecutionStartToCloseTimeout(v string) *WorkflowExecutionContinuedAsNewEventAttributes { + s.ExecutionStartToCloseTimeout = &v + return s +} + +// SetInput sets the Input field's value. +func (s *WorkflowExecutionContinuedAsNewEventAttributes) SetInput(v string) *WorkflowExecutionContinuedAsNewEventAttributes { + s.Input = &v + return s +} + +// SetLambdaRole sets the LambdaRole field's value. +func (s *WorkflowExecutionContinuedAsNewEventAttributes) SetLambdaRole(v string) *WorkflowExecutionContinuedAsNewEventAttributes { + s.LambdaRole = &v + return s +} + +// SetNewExecutionRunId sets the NewExecutionRunId field's value. +func (s *WorkflowExecutionContinuedAsNewEventAttributes) SetNewExecutionRunId(v string) *WorkflowExecutionContinuedAsNewEventAttributes { + s.NewExecutionRunId = &v + return s +} + +// SetTagList sets the TagList field's value. +func (s *WorkflowExecutionContinuedAsNewEventAttributes) SetTagList(v []*string) *WorkflowExecutionContinuedAsNewEventAttributes { + s.TagList = v + return s +} + +// SetTaskList sets the TaskList field's value. +func (s *WorkflowExecutionContinuedAsNewEventAttributes) SetTaskList(v *TaskList) *WorkflowExecutionContinuedAsNewEventAttributes { + s.TaskList = v + return s +} + +// SetTaskPriority sets the TaskPriority field's value. +func (s *WorkflowExecutionContinuedAsNewEventAttributes) SetTaskPriority(v string) *WorkflowExecutionContinuedAsNewEventAttributes { + s.TaskPriority = &v + return s +} + +// SetTaskStartToCloseTimeout sets the TaskStartToCloseTimeout field's value. +func (s *WorkflowExecutionContinuedAsNewEventAttributes) SetTaskStartToCloseTimeout(v string) *WorkflowExecutionContinuedAsNewEventAttributes { + s.TaskStartToCloseTimeout = &v + return s +} + +// SetWorkflowType sets the WorkflowType field's value. +func (s *WorkflowExecutionContinuedAsNewEventAttributes) SetWorkflowType(v *WorkflowType) *WorkflowExecutionContinuedAsNewEventAttributes { + s.WorkflowType = v + return s +} + // Contains the count of workflow executions returned from CountOpenWorkflowExecutions // or CountClosedWorkflowExecutions type WorkflowExecutionCount struct { @@ -9829,6 +13075,18 @@ func (s WorkflowExecutionCount) GoString() string { return s.String() } +// SetCount sets the Count field's value. +func (s *WorkflowExecutionCount) SetCount(v int64) *WorkflowExecutionCount { + s.Count = &v + return s +} + +// SetTruncated sets the Truncated field's value. +func (s *WorkflowExecutionCount) SetTruncated(v bool) *WorkflowExecutionCount { + s.Truncated = &v + return s +} + // Provides details of the WorkflowExecutionFailed event. type WorkflowExecutionFailedEventAttributes struct { _ struct{} `type:"structure"` @@ -9858,6 +13116,24 @@ func (s WorkflowExecutionFailedEventAttributes) GoString() string { return s.String() } +// SetDecisionTaskCompletedEventId sets the DecisionTaskCompletedEventId field's value. +func (s *WorkflowExecutionFailedEventAttributes) SetDecisionTaskCompletedEventId(v int64) *WorkflowExecutionFailedEventAttributes { + s.DecisionTaskCompletedEventId = &v + return s +} + +// SetDetails sets the Details field's value. +func (s *WorkflowExecutionFailedEventAttributes) SetDetails(v string) *WorkflowExecutionFailedEventAttributes { + s.Details = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *WorkflowExecutionFailedEventAttributes) SetReason(v string) *WorkflowExecutionFailedEventAttributes { + s.Reason = &v + return s +} + // Used to filter the workflow executions in visibility APIs by their workflowId. type WorkflowExecutionFilter struct { _ struct{} `type:"structure"` @@ -9894,6 +13170,12 @@ func (s *WorkflowExecutionFilter) Validate() error { return nil } +// SetWorkflowId sets the WorkflowId field's value. +func (s *WorkflowExecutionFilter) SetWorkflowId(v string) *WorkflowExecutionFilter { + s.WorkflowId = &v + return s +} + // Contains information about a workflow execution. type WorkflowExecutionInfo struct { _ struct{} `type:"structure"` @@ -9904,13 +13186,16 @@ type WorkflowExecutionInfo struct { // If the execution status is closed then this specifies how the execution was // closed: // - // COMPLETED: the execution was successfully completed. CANCELED: the execution - // was canceled.Cancellation allows the implementation to gracefully clean up - // before the execution is closed. TERMINATED: the execution was force terminated. - // FAILED: the execution failed to complete. TIMED_OUT: the execution did - // not complete in the alloted time and was automatically timed out. CONTINUED_AS_NEW: - // the execution is logically continued. This means the current execution was - // completed and a new execution was started to carry on the workflow. + // * COMPLETED: the execution was successfully completed. + // * CANCELED: the execution was canceled.Cancellation allows the implementation + // to gracefully clean up before the execution is closed. + // * TERMINATED: the execution was force terminated. + // * FAILED: the execution failed to complete. + // * TIMED_OUT: the execution did not complete in the alloted time and was + // automatically timed out. + // * CONTINUED_AS_NEW: the execution is logically continued. This means the + // current execution was completed and a new execution was started to carry + // on the workflow. CloseStatus *string `locationName:"closeStatus" type:"string" enum:"CloseStatus"` // The time when the workflow execution was closed. Set only if the execution @@ -9957,6 +13242,60 @@ func (s WorkflowExecutionInfo) GoString() string { return s.String() } +// SetCancelRequested sets the CancelRequested field's value. +func (s *WorkflowExecutionInfo) SetCancelRequested(v bool) *WorkflowExecutionInfo { + s.CancelRequested = &v + return s +} + +// SetCloseStatus sets the CloseStatus field's value. +func (s *WorkflowExecutionInfo) SetCloseStatus(v string) *WorkflowExecutionInfo { + s.CloseStatus = &v + return s +} + +// SetCloseTimestamp sets the CloseTimestamp field's value. +func (s *WorkflowExecutionInfo) SetCloseTimestamp(v time.Time) *WorkflowExecutionInfo { + s.CloseTimestamp = &v + return s +} + +// SetExecution sets the Execution field's value. +func (s *WorkflowExecutionInfo) SetExecution(v *WorkflowExecution) *WorkflowExecutionInfo { + s.Execution = v + return s +} + +// SetExecutionStatus sets the ExecutionStatus field's value. +func (s *WorkflowExecutionInfo) SetExecutionStatus(v string) *WorkflowExecutionInfo { + s.ExecutionStatus = &v + return s +} + +// SetParent sets the Parent field's value. +func (s *WorkflowExecutionInfo) SetParent(v *WorkflowExecution) *WorkflowExecutionInfo { + s.Parent = v + return s +} + +// SetStartTimestamp sets the StartTimestamp field's value. +func (s *WorkflowExecutionInfo) SetStartTimestamp(v time.Time) *WorkflowExecutionInfo { + s.StartTimestamp = &v + return s +} + +// SetTagList sets the TagList field's value. +func (s *WorkflowExecutionInfo) SetTagList(v []*string) *WorkflowExecutionInfo { + s.TagList = v + return s +} + +// SetWorkflowType sets the WorkflowType field's value. +func (s *WorkflowExecutionInfo) SetWorkflowType(v *WorkflowType) *WorkflowExecutionInfo { + s.WorkflowType = v + return s +} + // Contains a paginated list of information about workflow executions. type WorkflowExecutionInfos struct { _ struct{} `type:"structure"` @@ -9985,6 +13324,18 @@ func (s WorkflowExecutionInfos) GoString() string { return s.String() } +// SetExecutionInfos sets the ExecutionInfos field's value. +func (s *WorkflowExecutionInfos) SetExecutionInfos(v []*WorkflowExecutionInfo) *WorkflowExecutionInfos { + s.ExecutionInfos = v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *WorkflowExecutionInfos) SetNextPageToken(v string) *WorkflowExecutionInfos { + s.NextPageToken = &v + return s +} + // Contains the counts of open tasks, child workflow executions and timers for // a workflow execution. type WorkflowExecutionOpenCounts struct { @@ -10026,6 +13377,36 @@ func (s WorkflowExecutionOpenCounts) GoString() string { return s.String() } +// SetOpenActivityTasks sets the OpenActivityTasks field's value. +func (s *WorkflowExecutionOpenCounts) SetOpenActivityTasks(v int64) *WorkflowExecutionOpenCounts { + s.OpenActivityTasks = &v + return s +} + +// SetOpenChildWorkflowExecutions sets the OpenChildWorkflowExecutions field's value. +func (s *WorkflowExecutionOpenCounts) SetOpenChildWorkflowExecutions(v int64) *WorkflowExecutionOpenCounts { + s.OpenChildWorkflowExecutions = &v + return s +} + +// SetOpenDecisionTasks sets the OpenDecisionTasks field's value. +func (s *WorkflowExecutionOpenCounts) SetOpenDecisionTasks(v int64) *WorkflowExecutionOpenCounts { + s.OpenDecisionTasks = &v + return s +} + +// SetOpenLambdaFunctions sets the OpenLambdaFunctions field's value. +func (s *WorkflowExecutionOpenCounts) SetOpenLambdaFunctions(v int64) *WorkflowExecutionOpenCounts { + s.OpenLambdaFunctions = &v + return s +} + +// SetOpenTimers sets the OpenTimers field's value. +func (s *WorkflowExecutionOpenCounts) SetOpenTimers(v int64) *WorkflowExecutionOpenCounts { + s.OpenTimers = &v + return s +} + // Provides details of the WorkflowExecutionSignaled event. type WorkflowExecutionSignaledEventAttributes struct { _ struct{} `type:"structure"` @@ -10063,6 +13444,30 @@ func (s WorkflowExecutionSignaledEventAttributes) GoString() string { return s.String() } +// SetExternalInitiatedEventId sets the ExternalInitiatedEventId field's value. +func (s *WorkflowExecutionSignaledEventAttributes) SetExternalInitiatedEventId(v int64) *WorkflowExecutionSignaledEventAttributes { + s.ExternalInitiatedEventId = &v + return s +} + +// SetExternalWorkflowExecution sets the ExternalWorkflowExecution field's value. +func (s *WorkflowExecutionSignaledEventAttributes) SetExternalWorkflowExecution(v *WorkflowExecution) *WorkflowExecutionSignaledEventAttributes { + s.ExternalWorkflowExecution = v + return s +} + +// SetInput sets the Input field's value. +func (s *WorkflowExecutionSignaledEventAttributes) SetInput(v string) *WorkflowExecutionSignaledEventAttributes { + s.Input = &v + return s +} + +// SetSignalName sets the SignalName field's value. +func (s *WorkflowExecutionSignaledEventAttributes) SetSignalName(v string) *WorkflowExecutionSignaledEventAttributes { + s.SignalName = &v + return s +} + // Provides details of WorkflowExecutionStarted event. type WorkflowExecutionStartedEventAttributes struct { _ struct{} `type:"structure"` @@ -10073,11 +13478,13 @@ type WorkflowExecutionStartedEventAttributes struct { // // The supported child policies are: // - // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request - // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested - // event in its history. It is up to the decider to take appropriate actions - // when it receives an execution history with this event. ABANDON: no action - // will be taken. The child executions will continue to run. + // * TERMINATE: the child executions will be terminated. + // * REQUEST_CANCEL: a request to cancel will be attempted for each child + // execution by recording a WorkflowExecutionCancelRequested event in its + // history. It is up to the decider to take appropriate actions when it receives + // an execution history with this event. + // * ABANDON: no action will be taken. The child executions will continue + // to run. // // ChildPolicy is a required field ChildPolicy *string `locationName:"childPolicy" type:"string" required:"true" enum:"ChildPolicy"` @@ -10145,6 +13552,78 @@ func (s WorkflowExecutionStartedEventAttributes) GoString() string { return s.String() } +// SetChildPolicy sets the ChildPolicy field's value. +func (s *WorkflowExecutionStartedEventAttributes) SetChildPolicy(v string) *WorkflowExecutionStartedEventAttributes { + s.ChildPolicy = &v + return s +} + +// SetContinuedExecutionRunId sets the ContinuedExecutionRunId field's value. +func (s *WorkflowExecutionStartedEventAttributes) SetContinuedExecutionRunId(v string) *WorkflowExecutionStartedEventAttributes { + s.ContinuedExecutionRunId = &v + return s +} + +// SetExecutionStartToCloseTimeout sets the ExecutionStartToCloseTimeout field's value. +func (s *WorkflowExecutionStartedEventAttributes) SetExecutionStartToCloseTimeout(v string) *WorkflowExecutionStartedEventAttributes { + s.ExecutionStartToCloseTimeout = &v + return s +} + +// SetInput sets the Input field's value. +func (s *WorkflowExecutionStartedEventAttributes) SetInput(v string) *WorkflowExecutionStartedEventAttributes { + s.Input = &v + return s +} + +// SetLambdaRole sets the LambdaRole field's value. +func (s *WorkflowExecutionStartedEventAttributes) SetLambdaRole(v string) *WorkflowExecutionStartedEventAttributes { + s.LambdaRole = &v + return s +} + +// SetParentInitiatedEventId sets the ParentInitiatedEventId field's value. +func (s *WorkflowExecutionStartedEventAttributes) SetParentInitiatedEventId(v int64) *WorkflowExecutionStartedEventAttributes { + s.ParentInitiatedEventId = &v + return s +} + +// SetParentWorkflowExecution sets the ParentWorkflowExecution field's value. +func (s *WorkflowExecutionStartedEventAttributes) SetParentWorkflowExecution(v *WorkflowExecution) *WorkflowExecutionStartedEventAttributes { + s.ParentWorkflowExecution = v + return s +} + +// SetTagList sets the TagList field's value. +func (s *WorkflowExecutionStartedEventAttributes) SetTagList(v []*string) *WorkflowExecutionStartedEventAttributes { + s.TagList = v + return s +} + +// SetTaskList sets the TaskList field's value. +func (s *WorkflowExecutionStartedEventAttributes) SetTaskList(v *TaskList) *WorkflowExecutionStartedEventAttributes { + s.TaskList = v + return s +} + +// SetTaskPriority sets the TaskPriority field's value. +func (s *WorkflowExecutionStartedEventAttributes) SetTaskPriority(v string) *WorkflowExecutionStartedEventAttributes { + s.TaskPriority = &v + return s +} + +// SetTaskStartToCloseTimeout sets the TaskStartToCloseTimeout field's value. +func (s *WorkflowExecutionStartedEventAttributes) SetTaskStartToCloseTimeout(v string) *WorkflowExecutionStartedEventAttributes { + s.TaskStartToCloseTimeout = &v + return s +} + +// SetWorkflowType sets the WorkflowType field's value. +func (s *WorkflowExecutionStartedEventAttributes) SetWorkflowType(v *WorkflowType) *WorkflowExecutionStartedEventAttributes { + s.WorkflowType = v + return s +} + // Provides details of the WorkflowExecutionTerminated event. type WorkflowExecutionTerminatedEventAttributes struct { _ struct{} `type:"structure"` @@ -10158,11 +13637,13 @@ type WorkflowExecutionTerminatedEventAttributes struct { // // The supported child policies are: // - // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request - // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested - // event in its history. It is up to the decider to take appropriate actions - // when it receives an execution history with this event. ABANDON: no action - // will be taken. The child executions will continue to run. + // * TERMINATE: the child executions will be terminated. + // * REQUEST_CANCEL: a request to cancel will be attempted for each child + // execution by recording a WorkflowExecutionCancelRequested event in its + // history. It is up to the decider to take appropriate actions when it receives + // an execution history with this event. + // * ABANDON: no action will be taken. The child executions will continue + // to run. // // ChildPolicy is a required field ChildPolicy *string `locationName:"childPolicy" type:"string" required:"true" enum:"ChildPolicy"` @@ -10184,6 +13665,30 @@ func (s WorkflowExecutionTerminatedEventAttributes) GoString() string { return s.String() } +// SetCause sets the Cause field's value. +func (s *WorkflowExecutionTerminatedEventAttributes) SetCause(v string) *WorkflowExecutionTerminatedEventAttributes { + s.Cause = &v + return s +} + +// SetChildPolicy sets the ChildPolicy field's value. +func (s *WorkflowExecutionTerminatedEventAttributes) SetChildPolicy(v string) *WorkflowExecutionTerminatedEventAttributes { + s.ChildPolicy = &v + return s +} + +// SetDetails sets the Details field's value. +func (s *WorkflowExecutionTerminatedEventAttributes) SetDetails(v string) *WorkflowExecutionTerminatedEventAttributes { + s.Details = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *WorkflowExecutionTerminatedEventAttributes) SetReason(v string) *WorkflowExecutionTerminatedEventAttributes { + s.Reason = &v + return s +} + // Provides details of the WorkflowExecutionTimedOut event. type WorkflowExecutionTimedOutEventAttributes struct { _ struct{} `type:"structure"` @@ -10192,11 +13697,13 @@ type WorkflowExecutionTimedOutEventAttributes struct { // // The supported child policies are: // - // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request - // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested - // event in its history. It is up to the decider to take appropriate actions - // when it receives an execution history with this event. ABANDON: no action - // will be taken. The child executions will continue to run. + // * TERMINATE: the child executions will be terminated. + // * REQUEST_CANCEL: a request to cancel will be attempted for each child + // execution by recording a WorkflowExecutionCancelRequested event in its + // history. It is up to the decider to take appropriate actions when it receives + // an execution history with this event. + // * ABANDON: no action will be taken. The child executions will continue + // to run. // // ChildPolicy is a required field ChildPolicy *string `locationName:"childPolicy" type:"string" required:"true" enum:"ChildPolicy"` @@ -10217,6 +13724,18 @@ func (s WorkflowExecutionTimedOutEventAttributes) GoString() string { return s.String() } +// SetChildPolicy sets the ChildPolicy field's value. +func (s *WorkflowExecutionTimedOutEventAttributes) SetChildPolicy(v string) *WorkflowExecutionTimedOutEventAttributes { + s.ChildPolicy = &v + return s +} + +// SetTimeoutType sets the TimeoutType field's value. +func (s *WorkflowExecutionTimedOutEventAttributes) SetTimeoutType(v string) *WorkflowExecutionTimedOutEventAttributes { + s.TimeoutType = &v + return s +} + // Represents a workflow type. type WorkflowType struct { _ struct{} `type:"structure"` @@ -10270,6 +13789,18 @@ func (s *WorkflowType) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *WorkflowType) SetName(v string) *WorkflowType { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *WorkflowType) SetVersion(v string) *WorkflowType { + s.Version = &v + return s +} + // The configuration settings of a workflow type. type WorkflowTypeConfiguration struct { _ struct{} `type:"structure"` @@ -10282,11 +13813,13 @@ type WorkflowTypeConfiguration struct { // // The supported child policies are: // - // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request - // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested - // event in its history. It is up to the decider to take appropriate actions - // when it receives an execution history with this event. ABANDON: no action - // will be taken. The child executions will continue to run. + // * TERMINATE: the child executions will be terminated. + // * REQUEST_CANCEL: a request to cancel will be attempted for each child + // execution by recording a WorkflowExecutionCancelRequested event in its + // history. It is up to the decider to take appropriate actions when it receives + // an execution history with this event. + // * ABANDON: no action will be taken. The child executions will continue + // to run. DefaultChildPolicy *string `locationName:"defaultChildPolicy" type:"string" enum:"ChildPolicy"` // Optional. The default maximum duration, specified when registering the workflow @@ -10344,6 +13877,42 @@ func (s WorkflowTypeConfiguration) GoString() string { return s.String() } +// SetDefaultChildPolicy sets the DefaultChildPolicy field's value. +func (s *WorkflowTypeConfiguration) SetDefaultChildPolicy(v string) *WorkflowTypeConfiguration { + s.DefaultChildPolicy = &v + return s +} + +// SetDefaultExecutionStartToCloseTimeout sets the DefaultExecutionStartToCloseTimeout field's value. +func (s *WorkflowTypeConfiguration) SetDefaultExecutionStartToCloseTimeout(v string) *WorkflowTypeConfiguration { + s.DefaultExecutionStartToCloseTimeout = &v + return s +} + +// SetDefaultLambdaRole sets the DefaultLambdaRole field's value. +func (s *WorkflowTypeConfiguration) SetDefaultLambdaRole(v string) *WorkflowTypeConfiguration { + s.DefaultLambdaRole = &v + return s +} + +// SetDefaultTaskList sets the DefaultTaskList field's value. +func (s *WorkflowTypeConfiguration) SetDefaultTaskList(v *TaskList) *WorkflowTypeConfiguration { + s.DefaultTaskList = v + return s +} + +// SetDefaultTaskPriority sets the DefaultTaskPriority field's value. +func (s *WorkflowTypeConfiguration) SetDefaultTaskPriority(v string) *WorkflowTypeConfiguration { + s.DefaultTaskPriority = &v + return s +} + +// SetDefaultTaskStartToCloseTimeout sets the DefaultTaskStartToCloseTimeout field's value. +func (s *WorkflowTypeConfiguration) SetDefaultTaskStartToCloseTimeout(v string) *WorkflowTypeConfiguration { + s.DefaultTaskStartToCloseTimeout = &v + return s +} + // Used to filter workflow execution query results by type. Each parameter, // if specified, defines a rule that must be satisfied by each returned result. type WorkflowTypeFilter struct { @@ -10384,6 +13953,18 @@ func (s *WorkflowTypeFilter) Validate() error { return nil } +// SetName sets the Name field's value. +func (s *WorkflowTypeFilter) SetName(v string) *WorkflowTypeFilter { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *WorkflowTypeFilter) SetVersion(v string) *WorkflowTypeFilter { + s.Version = &v + return s +} + // Contains information about a workflow type. type WorkflowTypeInfo struct { _ struct{} `type:"structure"` @@ -10421,6 +14002,36 @@ func (s WorkflowTypeInfo) GoString() string { return s.String() } +// SetCreationDate sets the CreationDate field's value. +func (s *WorkflowTypeInfo) SetCreationDate(v time.Time) *WorkflowTypeInfo { + s.CreationDate = &v + return s +} + +// SetDeprecationDate sets the DeprecationDate field's value. +func (s *WorkflowTypeInfo) SetDeprecationDate(v time.Time) *WorkflowTypeInfo { + s.DeprecationDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *WorkflowTypeInfo) SetDescription(v string) *WorkflowTypeInfo { + s.Description = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *WorkflowTypeInfo) SetStatus(v string) *WorkflowTypeInfo { + s.Status = &v + return s +} + +// SetWorkflowType sets the WorkflowType field's value. +func (s *WorkflowTypeInfo) SetWorkflowType(v *WorkflowType) *WorkflowTypeInfo { + s.WorkflowType = v + return s +} + const ( // ActivityTaskTimeoutTypeStartToClose is a ActivityTaskTimeoutType enum value ActivityTaskTimeoutTypeStartToClose = "START_TO_CLOSE" diff --git a/vendor/github.com/aws/aws-sdk-go/service/swf/errors.go b/vendor/github.com/aws/aws-sdk-go/service/swf/errors.go new file mode 100644 index 000000000..ee5c7268b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/swf/errors.go @@ -0,0 +1,68 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package swf + +const ( + + // ErrCodeDefaultUndefinedFault for service response error code + // "DefaultUndefinedFault". + ErrCodeDefaultUndefinedFault = "DefaultUndefinedFault" + + // ErrCodeDomainAlreadyExistsFault for service response error code + // "DomainAlreadyExistsFault". + // + // Returned if the specified domain already exists. You will get this fault + // even if the existing domain is in deprecated status. + ErrCodeDomainAlreadyExistsFault = "DomainAlreadyExistsFault" + + // ErrCodeDomainDeprecatedFault for service response error code + // "DomainDeprecatedFault". + // + // Returned when the specified domain has been deprecated. + ErrCodeDomainDeprecatedFault = "DomainDeprecatedFault" + + // ErrCodeLimitExceededFault for service response error code + // "LimitExceededFault". + // + // Returned by any operation if a system imposed limitation has been reached. + // To address this fault you should either clean up unused resources or increase + // the limit by contacting AWS. + ErrCodeLimitExceededFault = "LimitExceededFault" + + // ErrCodeOperationNotPermittedFault for service response error code + // "OperationNotPermittedFault". + // + // Returned when the caller does not have sufficient permissions to invoke the + // action. + ErrCodeOperationNotPermittedFault = "OperationNotPermittedFault" + + // ErrCodeTypeAlreadyExistsFault for service response error code + // "TypeAlreadyExistsFault". + // + // Returned if the type already exists in the specified domain. You will get + // this fault even if the existing type is in deprecated status. You can specify + // another version if the intent is to create a new distinct version of the + // type. + ErrCodeTypeAlreadyExistsFault = "TypeAlreadyExistsFault" + + // ErrCodeTypeDeprecatedFault for service response error code + // "TypeDeprecatedFault". + // + // Returned when the specified activity or workflow type was already deprecated. + ErrCodeTypeDeprecatedFault = "TypeDeprecatedFault" + + // ErrCodeUnknownResourceFault for service response error code + // "UnknownResourceFault". + // + // Returned when the named resource cannot be found with in the scope of this + // operation (region or domain). This could happen if the named resource was + // never created or is no longer available for this operation. + ErrCodeUnknownResourceFault = "UnknownResourceFault" + + // ErrCodeWorkflowExecutionAlreadyStartedFault for service response error code + // "WorkflowExecutionAlreadyStartedFault". + // + // Returned by StartWorkflowExecution when an open execution with the same workflowId + // is already running in the specified domain. + ErrCodeWorkflowExecutionAlreadyStartedFault = "WorkflowExecutionAlreadyStartedFault" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/swf/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/swf/examples_test.go index 9491ef7dd..0349efd84 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/swf/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/swf/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSWF_CountClosedWorkflowExecutions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -62,11 +58,7 @@ func ExampleSWF_CountClosedWorkflowExecutions() { } func ExampleSWF_CountOpenWorkflowExecutions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -101,11 +93,7 @@ func ExampleSWF_CountOpenWorkflowExecutions() { } func ExampleSWF_CountPendingActivityTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -129,11 +117,7 @@ func ExampleSWF_CountPendingActivityTasks() { } func ExampleSWF_CountPendingDecisionTasks() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -157,11 +141,7 @@ func ExampleSWF_CountPendingDecisionTasks() { } func ExampleSWF_DeprecateActivityType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -186,11 +166,7 @@ func ExampleSWF_DeprecateActivityType() { } func ExampleSWF_DeprecateDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -211,11 +187,7 @@ func ExampleSWF_DeprecateDomain() { } func ExampleSWF_DeprecateWorkflowType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -240,11 +212,7 @@ func ExampleSWF_DeprecateWorkflowType() { } func ExampleSWF_DescribeActivityType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -269,11 +237,7 @@ func ExampleSWF_DescribeActivityType() { } func ExampleSWF_DescribeDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -294,11 +258,7 @@ func ExampleSWF_DescribeDomain() { } func ExampleSWF_DescribeWorkflowExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -323,11 +283,7 @@ func ExampleSWF_DescribeWorkflowExecution() { } func ExampleSWF_DescribeWorkflowType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -352,11 +308,7 @@ func ExampleSWF_DescribeWorkflowType() { } func ExampleSWF_GetWorkflowExecutionHistory() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -384,11 +336,7 @@ func ExampleSWF_GetWorkflowExecutionHistory() { } func ExampleSWF_ListActivityTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -414,11 +362,7 @@ func ExampleSWF_ListActivityTypes() { } func ExampleSWF_ListClosedWorkflowExecutions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -463,11 +407,7 @@ func ExampleSWF_ListClosedWorkflowExecutions() { } func ExampleSWF_ListDomains() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -491,11 +431,7 @@ func ExampleSWF_ListDomains() { } func ExampleSWF_ListOpenWorkflowExecutions() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -533,11 +469,7 @@ func ExampleSWF_ListOpenWorkflowExecutions() { } func ExampleSWF_ListWorkflowTypes() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -563,11 +495,7 @@ func ExampleSWF_ListWorkflowTypes() { } func ExampleSWF_PollForActivityTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -592,11 +520,7 @@ func ExampleSWF_PollForActivityTask() { } func ExampleSWF_PollForDecisionTask() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -624,11 +548,7 @@ func ExampleSWF_PollForDecisionTask() { } func ExampleSWF_RecordActivityTaskHeartbeat() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -650,11 +570,7 @@ func ExampleSWF_RecordActivityTaskHeartbeat() { } func ExampleSWF_RegisterActivityType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -686,11 +602,7 @@ func ExampleSWF_RegisterActivityType() { } func ExampleSWF_RegisterDomain() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -713,11 +625,7 @@ func ExampleSWF_RegisterDomain() { } func ExampleSWF_RegisterWorkflowType() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -749,11 +657,7 @@ func ExampleSWF_RegisterWorkflowType() { } func ExampleSWF_RequestCancelWorkflowExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -776,11 +680,7 @@ func ExampleSWF_RequestCancelWorkflowExecution() { } func ExampleSWF_RespondActivityTaskCanceled() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -802,11 +702,7 @@ func ExampleSWF_RespondActivityTaskCanceled() { } func ExampleSWF_RespondActivityTaskCompleted() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -828,11 +724,7 @@ func ExampleSWF_RespondActivityTaskCompleted() { } func ExampleSWF_RespondActivityTaskFailed() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -855,11 +747,7 @@ func ExampleSWF_RespondActivityTaskFailed() { } func ExampleSWF_RespondDecisionTaskCompleted() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -984,11 +872,7 @@ func ExampleSWF_RespondDecisionTaskCompleted() { } func ExampleSWF_SignalWorkflowExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -1013,11 +897,7 @@ func ExampleSWF_SignalWorkflowExecution() { } func ExampleSWF_StartWorkflowExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) @@ -1056,11 +936,7 @@ func ExampleSWF_StartWorkflowExecution() { } func ExampleSWF_TerminateWorkflowExecution() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := swf.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/swf/service.go b/vendor/github.com/aws/aws-sdk-go/service/swf/service.go index 9c9dd66da..6c279f435 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/swf/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/swf/service.go @@ -24,7 +24,7 @@ import ( // // This documentation serves as reference only. For a broader overview of the // Amazon SWF programming model, see the Amazon SWF Developer Guide (http://docs.aws.amazon.com/amazonswf/latest/developerguide/). -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. type SWF struct { *client.Client @@ -36,8 +36,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "swf" +// Service information constants +const ( + ServiceName = "swf" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the SWF client with a session. // If additional configuration is needed for the client instance use the optional @@ -50,17 +53,18 @@ const ServiceName = "swf" // // Create a SWF client with additional configuration // svc := swf.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *SWF { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *SWF { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *SWF { svc := &SWF{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2012-01-25", diff --git a/vendor/github.com/aws/aws-sdk-go/service/swf/swfiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/swf/swfiface/interface.go index 9b4aeeb3d..fe1fcb9b2 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/swf/swfiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/swf/swfiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockSWFClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/waf/api.go b/vendor/github.com/aws/aws-sdk-go/service/waf/api.go index 47c081ff6..153e3a71e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/waf/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/waf/api.go @@ -37,6 +37,7 @@ const opCreateByteMatchSet = "CreateByteMatchSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateByteMatchSet func (c *WAF) CreateByteMatchSetRequest(input *CreateByteMatchSetInput) (req *request.Request, output *CreateByteMatchSetOutput) { op := &request.Operation{ Name: opCreateByteMatchSet, @@ -48,9 +49,8 @@ func (c *WAF) CreateByteMatchSetRequest(input *CreateByteMatchSetInput) (req *re input = &CreateByteMatchSetInput{} } - req = c.newRequest(op, input, output) output = &CreateByteMatchSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -64,20 +64,20 @@ func (c *WAF) CreateByteMatchSetRequest(input *CreateByteMatchSetInput) (req *re // // To create and configure a ByteMatchSet, perform the following steps: // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a CreateByteMatchSet request. // -// Submit a CreateByteMatchSet request. +// Submit a CreateByteMatchSet request. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateByteMatchSet request. // -// Submit an UpdateByteMatchSet request to specify the part of the request -// that you want AWS WAF to inspect (for example, the header or the URI) and -// the value that you want AWS WAF to watch for. +// Submit an UpdateByteMatchSet request to specify the part of the request that +// you want AWS WAF to inspect (for example, the header or the URI) and the +// value that you want AWS WAF to watch for. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -87,50 +87,54 @@ func (c *WAF) CreateByteMatchSetRequest(input *CreateByteMatchSetInput) (req *re // API operation CreateByteMatchSet for usage and error information. // // Returned Error Codes: -// * DisallowedNameException +// * ErrCodeDisallowedNameException "DisallowedNameException" // The name specified is invalid. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // -// * StaleDataException +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * LimitsExceededException +// * ErrCodeLimitsExceededException "LimitsExceededException" // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateByteMatchSet func (c *WAF) CreateByteMatchSet(input *CreateByteMatchSetInput) (*CreateByteMatchSetOutput, error) { req, out := c.CreateByteMatchSetRequest(input) err := req.Send() @@ -163,6 +167,7 @@ const opCreateIPSet = "CreateIPSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateIPSet func (c *WAF) CreateIPSetRequest(input *CreateIPSetInput) (req *request.Request, output *CreateIPSetOutput) { op := &request.Operation{ Name: opCreateIPSet, @@ -174,9 +179,8 @@ func (c *WAF) CreateIPSetRequest(input *CreateIPSetInput) (req *request.Request, input = &CreateIPSetInput{} } - req = c.newRequest(op, input, output) output = &CreateIPSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -191,19 +195,19 @@ func (c *WAF) CreateIPSetRequest(input *CreateIPSetInput) (req *request.Request, // // To create and configure an IPSet, perform the following steps: // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a CreateIPSet request. // -// Submit a CreateIPSet request. +// Submit a CreateIPSet request. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateIPSet request. // -// Submit an UpdateIPSet request to specify the IP addresses that you want -// AWS WAF to watch for. +// Submit an UpdateIPSet request to specify the IP addresses that you want AWS +// WAF to watch for. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -213,50 +217,54 @@ func (c *WAF) CreateIPSetRequest(input *CreateIPSetInput) (req *request.Request, // API operation CreateIPSet for usage and error information. // // Returned Error Codes: -// * StaleDataException +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * DisallowedNameException +// * ErrCodeDisallowedNameException "DisallowedNameException" // The name specified is invalid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. +// +// * You specified an invalid value. // -// You specified an invalid value. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. // -// * LimitsExceededException +// * ErrCodeLimitsExceededException "LimitsExceededException" // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateIPSet func (c *WAF) CreateIPSet(input *CreateIPSetInput) (*CreateIPSetOutput, error) { req, out := c.CreateIPSetRequest(input) err := req.Send() @@ -289,6 +297,7 @@ const opCreateRule = "CreateRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateRule func (c *WAF) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, output *CreateRuleOutput) { op := &request.Operation{ Name: opCreateRule, @@ -300,9 +309,8 @@ func (c *WAF) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, o input = &CreateRuleInput{} } - req = c.newRequest(op, input, output) output = &CreateRuleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -314,36 +322,36 @@ func (c *WAF) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, o // to be allowed or blocked. For example, suppose you add the following to a // Rule: // -// An IPSet that matches the IP address 192.0.2.44/32 +// * An IPSet that matches the IP address 192.0.2.44/32 // -// A ByteMatchSet that matches BadBot in the User-Agent header +// * A ByteMatchSet that matches BadBot in the User-Agent header // -// You then add the Rule to a WebACL and specify that you want to blocks -// requests that satisfy the Rule. For a request to be blocked, it must come -// from the IP address 192.0.2.44 and the User-Agent header in the request must -// contain the value BadBot. +// You then add the Rule to a WebACL and specify that you want to blocks requests +// that satisfy the Rule. For a request to be blocked, it must come from the +// IP address 192.0.2.44 and the User-Agent header in the request must contain +// the value BadBot. // // To create and configure a Rule, perform the following steps: // -// Create and update the predicates that you want to include in the Rule. -// For more information, see CreateByteMatchSet, CreateIPSet, and CreateSqlInjectionMatchSet. +// Create and update the predicates that you want to include in the Rule. For +// more information, see CreateByteMatchSet, CreateIPSet, and CreateSqlInjectionMatchSet. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a CreateRule request. // -// Submit a CreateRule request. +// Submit a CreateRule request. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateRule request. // -// Submit an UpdateRule request to specify the predicates that you want to -// include in the Rule. +// Submit an UpdateRule request to specify the predicates that you want to include +// in the Rule. // -// Create and update a WebACL that contains the Rule. For more information, +// Create and update a WebACL that contains the Rule. For more information, // see CreateWebACL. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -353,46 +361,50 @@ func (c *WAF) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, o // API operation CreateRule for usage and error information. // // Returned Error Codes: -// * StaleDataException +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * DisallowedNameException +// * ErrCodeDisallowedNameException "DisallowedNameException" // The name specified is invalid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // -// * LimitsExceededException +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeLimitsExceededException "LimitsExceededException" // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateRule func (c *WAF) CreateRule(input *CreateRuleInput) (*CreateRuleOutput, error) { req, out := c.CreateRuleRequest(input) err := req.Send() @@ -425,6 +437,7 @@ const opCreateSizeConstraintSet = "CreateSizeConstraintSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateSizeConstraintSet func (c *WAF) CreateSizeConstraintSetRequest(input *CreateSizeConstraintSetInput) (req *request.Request, output *CreateSizeConstraintSetOutput) { op := &request.Operation{ Name: opCreateSizeConstraintSet, @@ -436,9 +449,8 @@ func (c *WAF) CreateSizeConstraintSetRequest(input *CreateSizeConstraintSetInput input = &CreateSizeConstraintSetInput{} } - req = c.newRequest(op, input, output) output = &CreateSizeConstraintSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -453,20 +465,20 @@ func (c *WAF) CreateSizeConstraintSetRequest(input *CreateSizeConstraintSetInput // // To create and configure a SizeConstraintSet, perform the following steps: // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a CreateSizeConstraintSet request. // -// Submit a CreateSizeConstraintSet request. +// Submit a CreateSizeConstraintSet request. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateSizeConstraintSet request. // -// Submit an UpdateSizeConstraintSet request to specify the part of the request +// Submit an UpdateSizeConstraintSet request to specify the part of the request // that you want AWS WAF to inspect (for example, the header or the URI) and // the value that you want AWS WAF to watch for. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -476,50 +488,54 @@ func (c *WAF) CreateSizeConstraintSetRequest(input *CreateSizeConstraintSetInput // API operation CreateSizeConstraintSet for usage and error information. // // Returned Error Codes: -// * StaleDataException +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * DisallowedNameException +// * ErrCodeDisallowedNameException "DisallowedNameException" // The name specified is invalid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. +// +// * You specified an invalid value. // -// You specified an invalid value. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. // -// * LimitsExceededException +// * ErrCodeLimitsExceededException "LimitsExceededException" // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateSizeConstraintSet func (c *WAF) CreateSizeConstraintSet(input *CreateSizeConstraintSetInput) (*CreateSizeConstraintSetOutput, error) { req, out := c.CreateSizeConstraintSetRequest(input) err := req.Send() @@ -552,6 +568,7 @@ const opCreateSqlInjectionMatchSet = "CreateSqlInjectionMatchSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateSqlInjectionMatchSet func (c *WAF) CreateSqlInjectionMatchSetRequest(input *CreateSqlInjectionMatchSetInput) (req *request.Request, output *CreateSqlInjectionMatchSetOutput) { op := &request.Operation{ Name: opCreateSqlInjectionMatchSet, @@ -563,9 +580,8 @@ func (c *WAF) CreateSqlInjectionMatchSetRequest(input *CreateSqlInjectionMatchSe input = &CreateSqlInjectionMatchSetInput{} } - req = c.newRequest(op, input, output) output = &CreateSqlInjectionMatchSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -577,19 +593,19 @@ func (c *WAF) CreateSqlInjectionMatchSetRequest(input *CreateSqlInjectionMatchSe // // To create and configure a SqlInjectionMatchSet, perform the following steps: // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a CreateSqlInjectionMatchSet request. // -// Submit a CreateSqlInjectionMatchSet request. +// Submit a CreateSqlInjectionMatchSet request. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateSqlInjectionMatchSet request. // -// Submit an UpdateSqlInjectionMatchSet request to specify the parts of web +// Submit an UpdateSqlInjectionMatchSet request to specify the parts of web // requests in which you want to allow, block, or count malicious SQL code. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -599,50 +615,54 @@ func (c *WAF) CreateSqlInjectionMatchSetRequest(input *CreateSqlInjectionMatchSe // API operation CreateSqlInjectionMatchSet for usage and error information. // // Returned Error Codes: -// * DisallowedNameException +// * ErrCodeDisallowedNameException "DisallowedNameException" // The name specified is invalid. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // -// * StaleDataException +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * LimitsExceededException +// * ErrCodeLimitsExceededException "LimitsExceededException" // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateSqlInjectionMatchSet func (c *WAF) CreateSqlInjectionMatchSet(input *CreateSqlInjectionMatchSetInput) (*CreateSqlInjectionMatchSetOutput, error) { req, out := c.CreateSqlInjectionMatchSetRequest(input) err := req.Send() @@ -675,6 +695,7 @@ const opCreateWebACL = "CreateWebACL" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateWebACL func (c *WAF) CreateWebACLRequest(input *CreateWebACLInput) (req *request.Request, output *CreateWebACLOutput) { op := &request.Operation{ Name: opCreateWebACL, @@ -686,9 +707,8 @@ func (c *WAF) CreateWebACLRequest(input *CreateWebACLInput) (req *request.Reques input = &CreateWebACLInput{} } - req = c.newRequest(op, input, output) output = &CreateWebACLOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -704,27 +724,27 @@ func (c *WAF) CreateWebACLRequest(input *CreateWebACLInput) (req *request.Reques // // To create and configure a WebACL, perform the following steps: // -// Create and update the ByteMatchSet objects and other predicates that you +// Create and update the ByteMatchSet objects and other predicates that you // want to include in Rules. For more information, see CreateByteMatchSet, UpdateByteMatchSet, // CreateIPSet, UpdateIPSet, CreateSqlInjectionMatchSet, and UpdateSqlInjectionMatchSet. // -// Create and update the Rules that you want to include in the WebACL. For -// more information, see CreateRule and UpdateRule. +// Create and update the Rules that you want to include in the WebACL. For more +// information, see CreateRule and UpdateRule. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a CreateWebACL request. // -// Submit a CreateWebACL request. +// Submit a CreateWebACL request. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateWebACL request. // -// Submit an UpdateWebACL request to specify the Rules that you want to include +// Submit an UpdateWebACL request to specify the Rules that you want to include // in the WebACL, to specify the default action, and to associate the WebACL // with a CloudFront distribution. // -// For more information about how to use the AWS WAF API, see the AWS WAF -// Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API, see the AWS WAF Developer +// Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -734,50 +754,54 @@ func (c *WAF) CreateWebACLRequest(input *CreateWebACLInput) (req *request.Reques // API operation CreateWebACL for usage and error information. // // Returned Error Codes: -// * StaleDataException +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * DisallowedNameException +// * ErrCodeDisallowedNameException "DisallowedNameException" // The name specified is invalid. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. +// +// * You specified an invalid value. // -// You specified an invalid value. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. // -// * LimitsExceededException +// * ErrCodeLimitsExceededException "LimitsExceededException" // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateWebACL func (c *WAF) CreateWebACL(input *CreateWebACLInput) (*CreateWebACLOutput, error) { req, out := c.CreateWebACLRequest(input) err := req.Send() @@ -810,6 +834,7 @@ const opCreateXssMatchSet = "CreateXssMatchSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateXssMatchSet func (c *WAF) CreateXssMatchSetRequest(input *CreateXssMatchSetInput) (req *request.Request, output *CreateXssMatchSetOutput) { op := &request.Operation{ Name: opCreateXssMatchSet, @@ -821,9 +846,8 @@ func (c *WAF) CreateXssMatchSetRequest(input *CreateXssMatchSetInput) (req *requ input = &CreateXssMatchSetInput{} } - req = c.newRequest(op, input, output) output = &CreateXssMatchSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -836,19 +860,19 @@ func (c *WAF) CreateXssMatchSetRequest(input *CreateXssMatchSetInput) (req *requ // // To create and configure an XssMatchSet, perform the following steps: // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a CreateXssMatchSet request. // -// Submit a CreateXssMatchSet request. +// Submit a CreateXssMatchSet request. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateXssMatchSet request. // -// Submit an UpdateXssMatchSet request to specify the parts of web requests +// Submit an UpdateXssMatchSet request to specify the parts of web requests // in which you want to allow, block, or count cross-site scripting attacks. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -858,50 +882,54 @@ func (c *WAF) CreateXssMatchSetRequest(input *CreateXssMatchSetInput) (req *requ // API operation CreateXssMatchSet for usage and error information. // // Returned Error Codes: -// * DisallowedNameException +// * ErrCodeDisallowedNameException "DisallowedNameException" // The name specified is invalid. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // -// * StaleDataException +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * LimitsExceededException +// * ErrCodeLimitsExceededException "LimitsExceededException" // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateXssMatchSet func (c *WAF) CreateXssMatchSet(input *CreateXssMatchSetInput) (*CreateXssMatchSetOutput, error) { req, out := c.CreateXssMatchSetRequest(input) err := req.Send() @@ -934,6 +962,7 @@ const opDeleteByteMatchSet = "DeleteByteMatchSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteByteMatchSet func (c *WAF) DeleteByteMatchSetRequest(input *DeleteByteMatchSetInput) (req *request.Request, output *DeleteByteMatchSetOutput) { op := &request.Operation{ Name: opDeleteByteMatchSet, @@ -945,9 +974,8 @@ func (c *WAF) DeleteByteMatchSetRequest(input *DeleteByteMatchSetInput) (req *re input = &DeleteByteMatchSetInput{} } - req = c.newRequest(op, input, output) output = &DeleteByteMatchSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -961,13 +989,13 @@ func (c *WAF) DeleteByteMatchSetRequest(input *DeleteByteMatchSetInput) (req *re // // To permanently delete a ByteMatchSet, perform the following steps: // -// Update the ByteMatchSet to remove filters, if any. For more information, +// Update the ByteMatchSet to remove filters, if any. For more information, // see UpdateByteMatchSet. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a DeleteByteMatchSet request. // -// Submit a DeleteByteMatchSet request. +// Submit a DeleteByteMatchSet request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -977,43 +1005,44 @@ func (c *WAF) DeleteByteMatchSetRequest(input *DeleteByteMatchSetInput) (req *re // API operation DeleteByteMatchSet for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // -// * ReferencedItemException +// * ErrCodeReferencedItemException "ReferencedItemException" // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // -// * StaleDataException +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * NonEmptyEntityException +// * ErrCodeNonEmptyEntityException "NonEmptyEntityException" // The operation failed because you tried to delete an object that isn't empty. // For example: // -// You tried to delete a WebACL that still contains one or more Rule objects. +// * You tried to delete a WebACL that still contains one or more Rule objects. // -// You tried to delete a Rule that still contains one or more ByteMatchSet -// objects or other predicates. +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. // -// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple -// objects. +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. // -// You tried to delete an IPSet that references one or more IP addresses. +// * You tried to delete an IPSet that references one or more IP addresses. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteByteMatchSet func (c *WAF) DeleteByteMatchSet(input *DeleteByteMatchSetInput) (*DeleteByteMatchSetOutput, error) { req, out := c.DeleteByteMatchSetRequest(input) err := req.Send() @@ -1046,6 +1075,7 @@ const opDeleteIPSet = "DeleteIPSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteIPSet func (c *WAF) DeleteIPSetRequest(input *DeleteIPSetInput) (req *request.Request, output *DeleteIPSetOutput) { op := &request.Operation{ Name: opDeleteIPSet, @@ -1057,9 +1087,8 @@ func (c *WAF) DeleteIPSetRequest(input *DeleteIPSetInput) (req *request.Request, input = &DeleteIPSetInput{} } - req = c.newRequest(op, input, output) output = &DeleteIPSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1072,13 +1101,13 @@ func (c *WAF) DeleteIPSetRequest(input *DeleteIPSetInput) (req *request.Request, // // To permanently delete an IPSet from AWS WAF, perform the following steps: // -// Update the IPSet to remove IP address ranges, if any. For more information, +// Update the IPSet to remove IP address ranges, if any. For more information, // see UpdateIPSet. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a DeleteIPSet request. // -// Submit a DeleteIPSet request. +// Submit a DeleteIPSet request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1088,43 +1117,44 @@ func (c *WAF) DeleteIPSetRequest(input *DeleteIPSetInput) (req *request.Request, // API operation DeleteIPSet for usage and error information. // // Returned Error Codes: -// * StaleDataException +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // -// * ReferencedItemException +// * ErrCodeReferencedItemException "ReferencedItemException" // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // -// * NonEmptyEntityException +// * ErrCodeNonEmptyEntityException "NonEmptyEntityException" // The operation failed because you tried to delete an object that isn't empty. // For example: // -// You tried to delete a WebACL that still contains one or more Rule objects. +// * You tried to delete a WebACL that still contains one or more Rule objects. // -// You tried to delete a Rule that still contains one or more ByteMatchSet -// objects or other predicates. +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. // -// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple -// objects. +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. // -// You tried to delete an IPSet that references one or more IP addresses. +// * You tried to delete an IPSet that references one or more IP addresses. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteIPSet func (c *WAF) DeleteIPSet(input *DeleteIPSetInput) (*DeleteIPSetOutput, error) { req, out := c.DeleteIPSetRequest(input) err := req.Send() @@ -1157,6 +1187,7 @@ const opDeleteRule = "DeleteRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteRule func (c *WAF) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, output *DeleteRuleOutput) { op := &request.Operation{ Name: opDeleteRule, @@ -1168,9 +1199,8 @@ func (c *WAF) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, o input = &DeleteRuleInput{} } - req = c.newRequest(op, input, output) output = &DeleteRuleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1184,13 +1214,12 @@ func (c *WAF) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, o // // To permanently delete a Rule from AWS WAF, perform the following steps: // -// Update the Rule to remove predicates, if any. For more information, see -// UpdateRule. +// Update the Rule to remove predicates, if any. For more information, see UpdateRule. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a DeleteRule request. // -// Submit a DeleteRule request. +// Submit a DeleteRule request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1200,43 +1229,44 @@ func (c *WAF) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, o // API operation DeleteRule for usage and error information. // // Returned Error Codes: -// * StaleDataException +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // -// * ReferencedItemException +// * ErrCodeReferencedItemException "ReferencedItemException" // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // -// * NonEmptyEntityException +// * ErrCodeNonEmptyEntityException "NonEmptyEntityException" // The operation failed because you tried to delete an object that isn't empty. // For example: // -// You tried to delete a WebACL that still contains one or more Rule objects. +// * You tried to delete a WebACL that still contains one or more Rule objects. // -// You tried to delete a Rule that still contains one or more ByteMatchSet -// objects or other predicates. +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. // -// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple -// objects. +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. // -// You tried to delete an IPSet that references one or more IP addresses. +// * You tried to delete an IPSet that references one or more IP addresses. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteRule func (c *WAF) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error) { req, out := c.DeleteRuleRequest(input) err := req.Send() @@ -1269,6 +1299,7 @@ const opDeleteSizeConstraintSet = "DeleteSizeConstraintSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteSizeConstraintSet func (c *WAF) DeleteSizeConstraintSetRequest(input *DeleteSizeConstraintSetInput) (req *request.Request, output *DeleteSizeConstraintSetOutput) { op := &request.Operation{ Name: opDeleteSizeConstraintSet, @@ -1280,9 +1311,8 @@ func (c *WAF) DeleteSizeConstraintSetRequest(input *DeleteSizeConstraintSetInput input = &DeleteSizeConstraintSetInput{} } - req = c.newRequest(op, input, output) output = &DeleteSizeConstraintSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1296,13 +1326,13 @@ func (c *WAF) DeleteSizeConstraintSetRequest(input *DeleteSizeConstraintSetInput // // To permanently delete a SizeConstraintSet, perform the following steps: // -// Update the SizeConstraintSet to remove filters, if any. For more information, +// Update the SizeConstraintSet to remove filters, if any. For more information, // see UpdateSizeConstraintSet. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a DeleteSizeConstraintSet request. // -// Submit a DeleteSizeConstraintSet request. +// Submit a DeleteSizeConstraintSet request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1312,43 +1342,44 @@ func (c *WAF) DeleteSizeConstraintSetRequest(input *DeleteSizeConstraintSetInput // API operation DeleteSizeConstraintSet for usage and error information. // // Returned Error Codes: -// * StaleDataException +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // -// * ReferencedItemException +// * ErrCodeReferencedItemException "ReferencedItemException" // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // -// * NonEmptyEntityException +// * ErrCodeNonEmptyEntityException "NonEmptyEntityException" // The operation failed because you tried to delete an object that isn't empty. // For example: // -// You tried to delete a WebACL that still contains one or more Rule objects. +// * You tried to delete a WebACL that still contains one or more Rule objects. // -// You tried to delete a Rule that still contains one or more ByteMatchSet -// objects or other predicates. +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. // -// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple -// objects. +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. // -// You tried to delete an IPSet that references one or more IP addresses. +// * You tried to delete an IPSet that references one or more IP addresses. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteSizeConstraintSet func (c *WAF) DeleteSizeConstraintSet(input *DeleteSizeConstraintSetInput) (*DeleteSizeConstraintSetOutput, error) { req, out := c.DeleteSizeConstraintSetRequest(input) err := req.Send() @@ -1381,6 +1412,7 @@ const opDeleteSqlInjectionMatchSet = "DeleteSqlInjectionMatchSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteSqlInjectionMatchSet func (c *WAF) DeleteSqlInjectionMatchSetRequest(input *DeleteSqlInjectionMatchSetInput) (req *request.Request, output *DeleteSqlInjectionMatchSetOutput) { op := &request.Operation{ Name: opDeleteSqlInjectionMatchSet, @@ -1392,9 +1424,8 @@ func (c *WAF) DeleteSqlInjectionMatchSetRequest(input *DeleteSqlInjectionMatchSe input = &DeleteSqlInjectionMatchSetInput{} } - req = c.newRequest(op, input, output) output = &DeleteSqlInjectionMatchSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1409,13 +1440,13 @@ func (c *WAF) DeleteSqlInjectionMatchSetRequest(input *DeleteSqlInjectionMatchSe // To permanently delete a SqlInjectionMatchSet from AWS WAF, perform the following // steps: // -// Update the SqlInjectionMatchSet to remove filters, if any. For more information, +// Update the SqlInjectionMatchSet to remove filters, if any. For more information, // see UpdateSqlInjectionMatchSet. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a DeleteSqlInjectionMatchSet request. // -// Submit a DeleteSqlInjectionMatchSet request. +// Submit a DeleteSqlInjectionMatchSet request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1425,43 +1456,44 @@ func (c *WAF) DeleteSqlInjectionMatchSetRequest(input *DeleteSqlInjectionMatchSe // API operation DeleteSqlInjectionMatchSet for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // -// * ReferencedItemException +// * ErrCodeReferencedItemException "ReferencedItemException" // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // -// * StaleDataException +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * NonEmptyEntityException +// * ErrCodeNonEmptyEntityException "NonEmptyEntityException" // The operation failed because you tried to delete an object that isn't empty. // For example: // -// You tried to delete a WebACL that still contains one or more Rule objects. +// * You tried to delete a WebACL that still contains one or more Rule objects. // -// You tried to delete a Rule that still contains one or more ByteMatchSet -// objects or other predicates. +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. // -// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple -// objects. +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. // -// You tried to delete an IPSet that references one or more IP addresses. +// * You tried to delete an IPSet that references one or more IP addresses. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteSqlInjectionMatchSet func (c *WAF) DeleteSqlInjectionMatchSet(input *DeleteSqlInjectionMatchSetInput) (*DeleteSqlInjectionMatchSetOutput, error) { req, out := c.DeleteSqlInjectionMatchSetRequest(input) err := req.Send() @@ -1494,6 +1526,7 @@ const opDeleteWebACL = "DeleteWebACL" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteWebACL func (c *WAF) DeleteWebACLRequest(input *DeleteWebACLInput) (req *request.Request, output *DeleteWebACLOutput) { op := &request.Operation{ Name: opDeleteWebACL, @@ -1505,9 +1538,8 @@ func (c *WAF) DeleteWebACLRequest(input *DeleteWebACLInput) (req *request.Reques input = &DeleteWebACLInput{} } - req = c.newRequest(op, input, output) output = &DeleteWebACLOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1518,12 +1550,12 @@ func (c *WAF) DeleteWebACLRequest(input *DeleteWebACLInput) (req *request.Reques // // To delete a WebACL, perform the following steps: // -// Update the WebACL to remove Rules, if any. For more information, see UpdateWebACL. +// Update the WebACL to remove Rules, if any. For more information, see UpdateWebACL. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a DeleteWebACL request. // -// Submit a DeleteWebACL request. +// Submit a DeleteWebACL request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1533,43 +1565,44 @@ func (c *WAF) DeleteWebACLRequest(input *DeleteWebACLInput) (req *request.Reques // API operation DeleteWebACL for usage and error information. // // Returned Error Codes: -// * StaleDataException +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // -// * ReferencedItemException +// * ErrCodeReferencedItemException "ReferencedItemException" // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // -// * NonEmptyEntityException +// * ErrCodeNonEmptyEntityException "NonEmptyEntityException" // The operation failed because you tried to delete an object that isn't empty. // For example: // -// You tried to delete a WebACL that still contains one or more Rule objects. +// * You tried to delete a WebACL that still contains one or more Rule objects. // -// You tried to delete a Rule that still contains one or more ByteMatchSet -// objects or other predicates. +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. // -// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple -// objects. +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. // -// You tried to delete an IPSet that references one or more IP addresses. +// * You tried to delete an IPSet that references one or more IP addresses. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteWebACL func (c *WAF) DeleteWebACL(input *DeleteWebACLInput) (*DeleteWebACLOutput, error) { req, out := c.DeleteWebACLRequest(input) err := req.Send() @@ -1602,6 +1635,7 @@ const opDeleteXssMatchSet = "DeleteXssMatchSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteXssMatchSet func (c *WAF) DeleteXssMatchSetRequest(input *DeleteXssMatchSetInput) (req *request.Request, output *DeleteXssMatchSetOutput) { op := &request.Operation{ Name: opDeleteXssMatchSet, @@ -1613,9 +1647,8 @@ func (c *WAF) DeleteXssMatchSetRequest(input *DeleteXssMatchSetInput) (req *requ input = &DeleteXssMatchSetInput{} } - req = c.newRequest(op, input, output) output = &DeleteXssMatchSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1629,13 +1662,13 @@ func (c *WAF) DeleteXssMatchSetRequest(input *DeleteXssMatchSetInput) (req *requ // To permanently delete an XssMatchSet from AWS WAF, perform the following // steps: // -// Update the XssMatchSet to remove filters, if any. For more information, -// see UpdateXssMatchSet. +// Update the XssMatchSet to remove filters, if any. For more information, see +// UpdateXssMatchSet. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a DeleteXssMatchSet request. // -// Submit a DeleteXssMatchSet request. +// Submit a DeleteXssMatchSet request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1645,43 +1678,44 @@ func (c *WAF) DeleteXssMatchSetRequest(input *DeleteXssMatchSetInput) (req *requ // API operation DeleteXssMatchSet for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // -// * ReferencedItemException +// * ErrCodeReferencedItemException "ReferencedItemException" // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // -// * StaleDataException +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * NonEmptyEntityException +// * ErrCodeNonEmptyEntityException "NonEmptyEntityException" // The operation failed because you tried to delete an object that isn't empty. // For example: // -// You tried to delete a WebACL that still contains one or more Rule objects. +// * You tried to delete a WebACL that still contains one or more Rule objects. // -// You tried to delete a Rule that still contains one or more ByteMatchSet -// objects or other predicates. +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. // -// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple -// objects. +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. // -// You tried to delete an IPSet that references one or more IP addresses. +// * You tried to delete an IPSet that references one or more IP addresses. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteXssMatchSet func (c *WAF) DeleteXssMatchSet(input *DeleteXssMatchSetInput) (*DeleteXssMatchSetOutput, error) { req, out := c.DeleteXssMatchSetRequest(input) err := req.Send() @@ -1714,6 +1748,7 @@ const opGetByteMatchSet = "GetByteMatchSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetByteMatchSet func (c *WAF) GetByteMatchSetRequest(input *GetByteMatchSetInput) (req *request.Request, output *GetByteMatchSetOutput) { op := &request.Operation{ Name: opGetByteMatchSet, @@ -1725,9 +1760,8 @@ func (c *WAF) GetByteMatchSetRequest(input *GetByteMatchSetInput) (req *request. input = &GetByteMatchSetInput{} } - req = c.newRequest(op, input, output) output = &GetByteMatchSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1743,17 +1777,18 @@ func (c *WAF) GetByteMatchSetRequest(input *GetByteMatchSetInput) (req *request. // API operation GetByteMatchSet for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetByteMatchSet func (c *WAF) GetByteMatchSet(input *GetByteMatchSetInput) (*GetByteMatchSetOutput, error) { req, out := c.GetByteMatchSetRequest(input) err := req.Send() @@ -1786,6 +1821,7 @@ const opGetChangeToken = "GetChangeToken" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetChangeToken func (c *WAF) GetChangeTokenRequest(input *GetChangeTokenInput) (req *request.Request, output *GetChangeTokenOutput) { op := &request.Operation{ Name: opGetChangeToken, @@ -1797,9 +1833,8 @@ func (c *WAF) GetChangeTokenRequest(input *GetChangeTokenInput) (req *request.Re input = &GetChangeTokenInput{} } - req = c.newRequest(op, input, output) output = &GetChangeTokenOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1816,10 +1851,10 @@ func (c *WAF) GetChangeTokenRequest(input *GetChangeTokenInput) (req *request.Re // the second GetChangeToken request returns the same value as the first GetChangeToken // request. // -// When you use a change token in a create, update, or delete request, the -// status of the change token changes to PENDING, which indicates that AWS WAF -// is propagating the change to all AWS WAF servers. Use GetChangeTokenStatus -// to determine the status of your change token. +// When you use a change token in a create, update, or delete request, the status +// of the change token changes to PENDING, which indicates that AWS WAF is propagating +// the change to all AWS WAF servers. Use GetChangeTokenStatus to determine +// the status of your change token. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1829,10 +1864,11 @@ func (c *WAF) GetChangeTokenRequest(input *GetChangeTokenInput) (req *request.Re // API operation GetChangeToken for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetChangeToken func (c *WAF) GetChangeToken(input *GetChangeTokenInput) (*GetChangeTokenOutput, error) { req, out := c.GetChangeTokenRequest(input) err := req.Send() @@ -1865,6 +1901,7 @@ const opGetChangeTokenStatus = "GetChangeTokenStatus" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetChangeTokenStatus func (c *WAF) GetChangeTokenStatusRequest(input *GetChangeTokenStatusInput) (req *request.Request, output *GetChangeTokenStatusOutput) { op := &request.Operation{ Name: opGetChangeTokenStatus, @@ -1876,9 +1913,8 @@ func (c *WAF) GetChangeTokenStatusRequest(input *GetChangeTokenStatusInput) (req input = &GetChangeTokenStatusInput{} } - req = c.newRequest(op, input, output) output = &GetChangeTokenStatusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1887,14 +1923,14 @@ func (c *WAF) GetChangeTokenStatusRequest(input *GetChangeTokenStatusInput) (req // Returns the status of a ChangeToken that you got by calling GetChangeToken. // ChangeTokenStatus is one of the following values: // -// PROVISIONED: You requested the change token by calling GetChangeToken, -// but you haven't used it yet in a call to create, update, or delete an AWS -// WAF object. +// * PROVISIONED: You requested the change token by calling GetChangeToken, +// but you haven't used it yet in a call to create, update, or delete an +// AWS WAF object. // -// PENDING: AWS WAF is propagating the create, update, or delete request -// to all AWS WAF servers. +// * PENDING: AWS WAF is propagating the create, update, or delete request +// to all AWS WAF servers. // -// IN_SYNC: Propagation is complete. +// * IN_SYNC: Propagation is complete. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1904,13 +1940,14 @@ func (c *WAF) GetChangeTokenStatusRequest(input *GetChangeTokenStatusInput) (req // API operation GetChangeTokenStatus for usage and error information. // // Returned Error Codes: -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetChangeTokenStatus func (c *WAF) GetChangeTokenStatus(input *GetChangeTokenStatusInput) (*GetChangeTokenStatusOutput, error) { req, out := c.GetChangeTokenStatusRequest(input) err := req.Send() @@ -1943,6 +1980,7 @@ const opGetIPSet = "GetIPSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetIPSet func (c *WAF) GetIPSetRequest(input *GetIPSetInput) (req *request.Request, output *GetIPSetOutput) { op := &request.Operation{ Name: opGetIPSet, @@ -1954,9 +1992,8 @@ func (c *WAF) GetIPSetRequest(input *GetIPSetInput) (req *request.Request, outpu input = &GetIPSetInput{} } - req = c.newRequest(op, input, output) output = &GetIPSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1972,17 +2009,18 @@ func (c *WAF) GetIPSetRequest(input *GetIPSetInput) (req *request.Request, outpu // API operation GetIPSet for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetIPSet func (c *WAF) GetIPSet(input *GetIPSetInput) (*GetIPSetOutput, error) { req, out := c.GetIPSetRequest(input) err := req.Send() @@ -2015,6 +2053,7 @@ const opGetRule = "GetRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetRule func (c *WAF) GetRuleRequest(input *GetRuleInput) (req *request.Request, output *GetRuleOutput) { op := &request.Operation{ Name: opGetRule, @@ -2026,9 +2065,8 @@ func (c *WAF) GetRuleRequest(input *GetRuleInput) (req *request.Request, output input = &GetRuleInput{} } - req = c.newRequest(op, input, output) output = &GetRuleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2045,17 +2083,18 @@ func (c *WAF) GetRuleRequest(input *GetRuleInput) (req *request.Request, output // API operation GetRule for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetRule func (c *WAF) GetRule(input *GetRuleInput) (*GetRuleOutput, error) { req, out := c.GetRuleRequest(input) err := req.Send() @@ -2088,6 +2127,7 @@ const opGetSampledRequests = "GetSampledRequests" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetSampledRequests func (c *WAF) GetSampledRequestsRequest(input *GetSampledRequestsInput) (req *request.Request, output *GetSampledRequestsOutput) { op := &request.Operation{ Name: opGetSampledRequests, @@ -2099,9 +2139,8 @@ func (c *WAF) GetSampledRequestsRequest(input *GetSampledRequestsInput) (req *re input = &GetSampledRequestsInput{} } - req = c.newRequest(op, input, output) output = &GetSampledRequestsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2110,10 +2149,10 @@ func (c *WAF) GetSampledRequestsRequest(input *GetSampledRequestsInput) (req *re // Gets detailed information about a specified number of requests--a sample--that // AWS WAF randomly selects from among the first 5,000 requests that your AWS // resource received during a time range that you choose. You can specify a -// sample size of up to 100 requests, and you can specify any time range in +// sample size of up to 500 requests, and you can specify any time range in // the previous three hours. // -// GetSampledRequests returns a time range, which is usually the time range +// GetSampledRequests returns a time range, which is usually the time range // that you specified. However, if your resource (such as a CloudFront distribution) // received 5,000 requests before the specified time range elapsed, GetSampledRequests // returns an updated time range. This new time range indicates the actual period @@ -2127,13 +2166,14 @@ func (c *WAF) GetSampledRequestsRequest(input *GetSampledRequestsInput) (req *re // API operation GetSampledRequests for usage and error information. // // Returned Error Codes: -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetSampledRequests func (c *WAF) GetSampledRequests(input *GetSampledRequestsInput) (*GetSampledRequestsOutput, error) { req, out := c.GetSampledRequestsRequest(input) err := req.Send() @@ -2166,6 +2206,7 @@ const opGetSizeConstraintSet = "GetSizeConstraintSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetSizeConstraintSet func (c *WAF) GetSizeConstraintSetRequest(input *GetSizeConstraintSetInput) (req *request.Request, output *GetSizeConstraintSetOutput) { op := &request.Operation{ Name: opGetSizeConstraintSet, @@ -2177,9 +2218,8 @@ func (c *WAF) GetSizeConstraintSetRequest(input *GetSizeConstraintSetInput) (req input = &GetSizeConstraintSetInput{} } - req = c.newRequest(op, input, output) output = &GetSizeConstraintSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2195,17 +2235,18 @@ func (c *WAF) GetSizeConstraintSetRequest(input *GetSizeConstraintSetInput) (req // API operation GetSizeConstraintSet for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetSizeConstraintSet func (c *WAF) GetSizeConstraintSet(input *GetSizeConstraintSetInput) (*GetSizeConstraintSetOutput, error) { req, out := c.GetSizeConstraintSetRequest(input) err := req.Send() @@ -2238,6 +2279,7 @@ const opGetSqlInjectionMatchSet = "GetSqlInjectionMatchSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetSqlInjectionMatchSet func (c *WAF) GetSqlInjectionMatchSetRequest(input *GetSqlInjectionMatchSetInput) (req *request.Request, output *GetSqlInjectionMatchSetOutput) { op := &request.Operation{ Name: opGetSqlInjectionMatchSet, @@ -2249,9 +2291,8 @@ func (c *WAF) GetSqlInjectionMatchSetRequest(input *GetSqlInjectionMatchSetInput input = &GetSqlInjectionMatchSetInput{} } - req = c.newRequest(op, input, output) output = &GetSqlInjectionMatchSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2267,17 +2308,18 @@ func (c *WAF) GetSqlInjectionMatchSetRequest(input *GetSqlInjectionMatchSetInput // API operation GetSqlInjectionMatchSet for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetSqlInjectionMatchSet func (c *WAF) GetSqlInjectionMatchSet(input *GetSqlInjectionMatchSetInput) (*GetSqlInjectionMatchSetOutput, error) { req, out := c.GetSqlInjectionMatchSetRequest(input) err := req.Send() @@ -2310,6 +2352,7 @@ const opGetWebACL = "GetWebACL" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetWebACL func (c *WAF) GetWebACLRequest(input *GetWebACLInput) (req *request.Request, output *GetWebACLOutput) { op := &request.Operation{ Name: opGetWebACL, @@ -2321,9 +2364,8 @@ func (c *WAF) GetWebACLRequest(input *GetWebACLInput) (req *request.Request, out input = &GetWebACLInput{} } - req = c.newRequest(op, input, output) output = &GetWebACLOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2339,17 +2381,18 @@ func (c *WAF) GetWebACLRequest(input *GetWebACLInput) (req *request.Request, out // API operation GetWebACL for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetWebACL func (c *WAF) GetWebACL(input *GetWebACLInput) (*GetWebACLOutput, error) { req, out := c.GetWebACLRequest(input) err := req.Send() @@ -2382,6 +2425,7 @@ const opGetXssMatchSet = "GetXssMatchSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetXssMatchSet func (c *WAF) GetXssMatchSetRequest(input *GetXssMatchSetInput) (req *request.Request, output *GetXssMatchSetOutput) { op := &request.Operation{ Name: opGetXssMatchSet, @@ -2393,9 +2437,8 @@ func (c *WAF) GetXssMatchSetRequest(input *GetXssMatchSetInput) (req *request.Re input = &GetXssMatchSetInput{} } - req = c.newRequest(op, input, output) output = &GetXssMatchSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2411,17 +2454,18 @@ func (c *WAF) GetXssMatchSetRequest(input *GetXssMatchSetInput) (req *request.Re // API operation GetXssMatchSet for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetXssMatchSet func (c *WAF) GetXssMatchSet(input *GetXssMatchSetInput) (*GetXssMatchSetOutput, error) { req, out := c.GetXssMatchSetRequest(input) err := req.Send() @@ -2454,6 +2498,7 @@ const opListByteMatchSets = "ListByteMatchSets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListByteMatchSets func (c *WAF) ListByteMatchSetsRequest(input *ListByteMatchSetsInput) (req *request.Request, output *ListByteMatchSetsOutput) { op := &request.Operation{ Name: opListByteMatchSets, @@ -2465,9 +2510,8 @@ func (c *WAF) ListByteMatchSetsRequest(input *ListByteMatchSetsInput) (req *requ input = &ListByteMatchSetsInput{} } - req = c.newRequest(op, input, output) output = &ListByteMatchSetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2483,14 +2527,15 @@ func (c *WAF) ListByteMatchSetsRequest(input *ListByteMatchSetsInput) (req *requ // API operation ListByteMatchSets for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListByteMatchSets func (c *WAF) ListByteMatchSets(input *ListByteMatchSetsInput) (*ListByteMatchSetsOutput, error) { req, out := c.ListByteMatchSetsRequest(input) err := req.Send() @@ -2523,6 +2568,7 @@ const opListIPSets = "ListIPSets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListIPSets func (c *WAF) ListIPSetsRequest(input *ListIPSetsInput) (req *request.Request, output *ListIPSetsOutput) { op := &request.Operation{ Name: opListIPSets, @@ -2534,9 +2580,8 @@ func (c *WAF) ListIPSetsRequest(input *ListIPSetsInput) (req *request.Request, o input = &ListIPSetsInput{} } - req = c.newRequest(op, input, output) output = &ListIPSetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2552,14 +2597,15 @@ func (c *WAF) ListIPSetsRequest(input *ListIPSetsInput) (req *request.Request, o // API operation ListIPSets for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListIPSets func (c *WAF) ListIPSets(input *ListIPSetsInput) (*ListIPSetsOutput, error) { req, out := c.ListIPSetsRequest(input) err := req.Send() @@ -2592,6 +2638,7 @@ const opListRules = "ListRules" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListRules func (c *WAF) ListRulesRequest(input *ListRulesInput) (req *request.Request, output *ListRulesOutput) { op := &request.Operation{ Name: opListRules, @@ -2603,9 +2650,8 @@ func (c *WAF) ListRulesRequest(input *ListRulesInput) (req *request.Request, out input = &ListRulesInput{} } - req = c.newRequest(op, input, output) output = &ListRulesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2621,14 +2667,15 @@ func (c *WAF) ListRulesRequest(input *ListRulesInput) (req *request.Request, out // API operation ListRules for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListRules func (c *WAF) ListRules(input *ListRulesInput) (*ListRulesOutput, error) { req, out := c.ListRulesRequest(input) err := req.Send() @@ -2661,6 +2708,7 @@ const opListSizeConstraintSets = "ListSizeConstraintSets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListSizeConstraintSets func (c *WAF) ListSizeConstraintSetsRequest(input *ListSizeConstraintSetsInput) (req *request.Request, output *ListSizeConstraintSetsOutput) { op := &request.Operation{ Name: opListSizeConstraintSets, @@ -2672,9 +2720,8 @@ func (c *WAF) ListSizeConstraintSetsRequest(input *ListSizeConstraintSetsInput) input = &ListSizeConstraintSetsInput{} } - req = c.newRequest(op, input, output) output = &ListSizeConstraintSetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2690,14 +2737,15 @@ func (c *WAF) ListSizeConstraintSetsRequest(input *ListSizeConstraintSetsInput) // API operation ListSizeConstraintSets for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListSizeConstraintSets func (c *WAF) ListSizeConstraintSets(input *ListSizeConstraintSetsInput) (*ListSizeConstraintSetsOutput, error) { req, out := c.ListSizeConstraintSetsRequest(input) err := req.Send() @@ -2730,6 +2778,7 @@ const opListSqlInjectionMatchSets = "ListSqlInjectionMatchSets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListSqlInjectionMatchSets func (c *WAF) ListSqlInjectionMatchSetsRequest(input *ListSqlInjectionMatchSetsInput) (req *request.Request, output *ListSqlInjectionMatchSetsOutput) { op := &request.Operation{ Name: opListSqlInjectionMatchSets, @@ -2741,9 +2790,8 @@ func (c *WAF) ListSqlInjectionMatchSetsRequest(input *ListSqlInjectionMatchSetsI input = &ListSqlInjectionMatchSetsInput{} } - req = c.newRequest(op, input, output) output = &ListSqlInjectionMatchSetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2759,14 +2807,15 @@ func (c *WAF) ListSqlInjectionMatchSetsRequest(input *ListSqlInjectionMatchSetsI // API operation ListSqlInjectionMatchSets for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListSqlInjectionMatchSets func (c *WAF) ListSqlInjectionMatchSets(input *ListSqlInjectionMatchSetsInput) (*ListSqlInjectionMatchSetsOutput, error) { req, out := c.ListSqlInjectionMatchSetsRequest(input) err := req.Send() @@ -2799,6 +2848,7 @@ const opListWebACLs = "ListWebACLs" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListWebACLs func (c *WAF) ListWebACLsRequest(input *ListWebACLsInput) (req *request.Request, output *ListWebACLsOutput) { op := &request.Operation{ Name: opListWebACLs, @@ -2810,9 +2860,8 @@ func (c *WAF) ListWebACLsRequest(input *ListWebACLsInput) (req *request.Request, input = &ListWebACLsInput{} } - req = c.newRequest(op, input, output) output = &ListWebACLsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2828,14 +2877,15 @@ func (c *WAF) ListWebACLsRequest(input *ListWebACLsInput) (req *request.Request, // API operation ListWebACLs for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListWebACLs func (c *WAF) ListWebACLs(input *ListWebACLsInput) (*ListWebACLsOutput, error) { req, out := c.ListWebACLsRequest(input) err := req.Send() @@ -2868,6 +2918,7 @@ const opListXssMatchSets = "ListXssMatchSets" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListXssMatchSets func (c *WAF) ListXssMatchSetsRequest(input *ListXssMatchSetsInput) (req *request.Request, output *ListXssMatchSetsOutput) { op := &request.Operation{ Name: opListXssMatchSets, @@ -2879,9 +2930,8 @@ func (c *WAF) ListXssMatchSetsRequest(input *ListXssMatchSetsInput) (req *reques input = &ListXssMatchSetsInput{} } - req = c.newRequest(op, input, output) output = &ListXssMatchSetsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2897,14 +2947,15 @@ func (c *WAF) ListXssMatchSetsRequest(input *ListXssMatchSetsInput) (req *reques // API operation ListXssMatchSets for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListXssMatchSets func (c *WAF) ListXssMatchSets(input *ListXssMatchSetsInput) (*ListXssMatchSetsOutput, error) { req, out := c.ListXssMatchSetsRequest(input) err := req.Send() @@ -2937,6 +2988,7 @@ const opUpdateByteMatchSet = "UpdateByteMatchSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateByteMatchSet func (c *WAF) UpdateByteMatchSetRequest(input *UpdateByteMatchSetInput) (req *request.Request, output *UpdateByteMatchSetOutput) { op := &request.Operation{ Name: opUpdateByteMatchSet, @@ -2948,9 +3000,8 @@ func (c *WAF) UpdateByteMatchSetRequest(input *UpdateByteMatchSetInput) (req *re input = &UpdateByteMatchSetInput{} } - req = c.newRequest(op, input, output) output = &UpdateByteMatchSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -2959,40 +3010,40 @@ func (c *WAF) UpdateByteMatchSetRequest(input *UpdateByteMatchSetInput) (req *re // Inserts or deletes ByteMatchTuple objects (filters) in a ByteMatchSet. For // each ByteMatchTuple object, you specify the following values: // -// Whether to insert or delete the object from the array. If you want to -// change a ByteMatchSetUpdate object, you delete the existing object and add -// a new one. +// * Whether to insert or delete the object from the array. If you want to +// change a ByteMatchSetUpdate object, you delete the existing object and +// add a new one. // -// The part of a web request that you want AWS WAF to inspect, such as a -// query string or the value of the User-Agent header. +// * The part of a web request that you want AWS WAF to inspect, such as +// a query string or the value of the User-Agent header. // -// The bytes (typically a string that corresponds with ASCII characters) -// that you want AWS WAF to look for. For more information, including how you -// specify the values for the AWS WAF API and the AWS CLI or SDKs, see TargetString -// in the ByteMatchTuple data type. +// * The bytes (typically a string that corresponds with ASCII characters) +// that you want AWS WAF to look for. For more information, including how +// you specify the values for the AWS WAF API and the AWS CLI or SDKs, see +// TargetString in the ByteMatchTuple data type. // -// Where to look, such as at the beginning or the end of a query string. +// * Where to look, such as at the beginning or the end of a query string. // -// Whether to perform any conversions on the request, such as converting -// it to lowercase, before inspecting it for the specified string. +// * Whether to perform any conversions on the request, such as converting +// it to lowercase, before inspecting it for the specified string. // -// For example, you can add a ByteMatchSetUpdate object that matches web -// requests in which User-Agent headers contain the string BadBot. You can then -// configure AWS WAF to block those requests. +// For example, you can add a ByteMatchSetUpdate object that matches web requests +// in which User-Agent headers contain the string BadBot. You can then configure +// AWS WAF to block those requests. // // To create and configure a ByteMatchSet, perform the following steps: // -// Create a ByteMatchSet. For more information, see CreateByteMatchSet. +// Create a ByteMatchSet. For more information, see CreateByteMatchSet. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateByteMatchSet request. // -// Submit an UpdateByteMatchSet request to specify the part of the request -// that you want AWS WAF to inspect (for example, the header or the URI) and -// the value that you want AWS WAF to watch for. +// Submit an UpdateByteMatchSet request to specify the part of the request that +// you want AWS WAF to inspect (for example, the header or the URI) and the +// value that you want AWS WAF to watch for. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3002,87 +3053,91 @@ func (c *WAF) UpdateByteMatchSetRequest(input *UpdateByteMatchSetInput) (req *re // API operation UpdateByteMatchSet for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * InvalidOperationException +// * ErrCodeInvalidOperationException "InvalidOperationException" // The operation failed because there was nothing to do. For example: // -// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified -// WebACL. +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. // -// You tried to remove an IP address from an IPSet, but the IP address isn't -// in the specified IPSet. +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. // -// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple -// isn't in the specified WebACL. +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. // -// You tried to add a Rule to a WebACL, but the Rule already exists in the -// specified WebACL. +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. // -// You tried to add an IP address to an IPSet, but the IP address already -// exists in the specified IPSet. +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. // -// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple -// already exists in the specified WebACL. +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. +// +// * You specified an invalid value. // -// You specified an invalid value. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. // -// * NonexistentContainerException +// * ErrCodeNonexistentContainerException "NonexistentContainerException" // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // -// You tried to add a Rule to or delete a Rule from a WebACL that doesn't -// exist. +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. // -// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule -// that doesn't exist. +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. // -// You tried to add an IP address to or delete an IP address from an IPSet -// that doesn't exist. +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. // -// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a -// ByteMatchSet that doesn't exist. +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // -// * StaleDataException +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * LimitsExceededException +// * ErrCodeLimitsExceededException "LimitsExceededException" // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateByteMatchSet func (c *WAF) UpdateByteMatchSet(input *UpdateByteMatchSetInput) (*UpdateByteMatchSetOutput, error) { req, out := c.UpdateByteMatchSetRequest(input) err := req.Send() @@ -3115,6 +3170,7 @@ const opUpdateIPSet = "UpdateIPSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateIPSet func (c *WAF) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Request, output *UpdateIPSetOutput) { op := &request.Operation{ Name: opUpdateIPSet, @@ -3126,9 +3182,8 @@ func (c *WAF) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Request, input = &UpdateIPSetInput{} } - req = c.newRequest(op, input, output) output = &UpdateIPSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3137,31 +3192,31 @@ func (c *WAF) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Request, // Inserts or deletes IPSetDescriptor objects in an IPSet. For each IPSetDescriptor // object, you specify the following values: // -// Whether to insert or delete the object from the array. If you want to -// change an IPSetDescriptor object, you delete the existing object and add -// a new one. +// * Whether to insert or delete the object from the array. If you want to +// change an IPSetDescriptor object, you delete the existing object and add +// a new one. // -// The IP address version, IPv4 or IPv6. +// * The IP address version, IPv4 or IPv6. // -// The IP address in CIDR notation, for example, 192.0.2.0/24 (for the range -// of IP addresses from 192.0.2.0 to 192.0.2.255) or 192.0.2.44/32 (for the -// individual IP address 192.0.2.44). +// * The IP address in CIDR notation, for example, 192.0.2.0/24 (for the +// range of IP addresses from 192.0.2.0 to 192.0.2.255) or 192.0.2.44/32 +// (for the individual IP address 192.0.2.44). // -// AWS WAF supports /8, /16, /24, and /32 IP address ranges for IPv4, and -// /24, /32, /48, /56, /64 and /128 for IPv6. For more information about CIDR -// notation, see the Wikipedia entry Classless Inter-Domain Routing (https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). +// AWS WAF supports /8, /16, /24, and /32 IP address ranges for IPv4, and /24, +// /32, /48, /56, /64 and /128 for IPv6. For more information about CIDR notation, +// see the Wikipedia entry Classless Inter-Domain Routing (https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). // // IPv6 addresses can be represented using any of the following formats: // -// 1111:0000:0000:0000:0000:0000:0000:0111/128 +// * 1111:0000:0000:0000:0000:0000:0000:0111/128 // -// 1111:0:0:0:0:0:0:0111/128 +// * 1111:0:0:0:0:0:0:0111/128 // -// 1111::0111/128 +// * 1111::0111/128 // -// 1111::111/128 +// * 1111::111/128 // -// You use an IPSet to specify which web requests you want to allow or block +// You use an IPSet to specify which web requests you want to allow or block // based on the IP addresses that the requests originated from. For example, // if you're receiving a lot of requests from one or a small number of IP addresses // and you want to block the requests, you can create an IPSet that specifies @@ -3169,20 +3224,20 @@ func (c *WAF) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Request, // // To create and configure an IPSet, perform the following steps: // -// Submit a CreateIPSet request. +// Submit a CreateIPSet request. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateIPSet request. // -// Submit an UpdateIPSet request to specify the IP addresses that you want -// AWS WAF to watch for. +// Submit an UpdateIPSet request to specify the IP addresses that you want AWS +// WAF to watch for. // -// When you update an IPSet, you specify the IP addresses that you want to -// add and/or the IP addresses that you want to delete. If you want to change -// an IP address, you delete the existing IP address and add the new one. +// When you update an IPSet, you specify the IP addresses that you want to add +// and/or the IP addresses that you want to delete. If you want to change an +// IP address, you delete the existing IP address and add the new one. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3192,95 +3247,99 @@ func (c *WAF) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Request, // API operation UpdateIPSet for usage and error information. // // Returned Error Codes: -// * StaleDataException +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * InvalidOperationException +// * ErrCodeInvalidOperationException "InvalidOperationException" // The operation failed because there was nothing to do. For example: // -// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified -// WebACL. +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. // -// You tried to remove an IP address from an IPSet, but the IP address isn't -// in the specified IPSet. +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. // -// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple -// isn't in the specified WebACL. +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. // -// You tried to add a Rule to a WebACL, but the Rule already exists in the -// specified WebACL. +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. // -// You tried to add an IP address to an IPSet, but the IP address already -// exists in the specified IPSet. +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. // -// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple -// already exists in the specified WebACL. +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // -// * NonexistentContainerException +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeNonexistentContainerException "NonexistentContainerException" // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // -// You tried to add a Rule to or delete a Rule from a WebACL that doesn't -// exist. +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. // -// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule -// that doesn't exist. +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. // -// You tried to add an IP address to or delete an IP address from an IPSet -// that doesn't exist. +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. // -// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a -// ByteMatchSet that doesn't exist. +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // -// * ReferencedItemException +// * ErrCodeReferencedItemException "ReferencedItemException" // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // -// * LimitsExceededException +// * ErrCodeLimitsExceededException "LimitsExceededException" // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateIPSet func (c *WAF) UpdateIPSet(input *UpdateIPSetInput) (*UpdateIPSetOutput, error) { req, out := c.UpdateIPSetRequest(input) err := req.Send() @@ -3313,6 +3372,7 @@ const opUpdateRule = "UpdateRule" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateRule func (c *WAF) UpdateRuleRequest(input *UpdateRuleInput) (req *request.Request, output *UpdateRuleOutput) { op := &request.Operation{ Name: opUpdateRule, @@ -3324,9 +3384,8 @@ func (c *WAF) UpdateRuleRequest(input *UpdateRuleInput) (req *request.Request, o input = &UpdateRuleInput{} } - req = c.newRequest(op, input, output) output = &UpdateRuleOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3338,33 +3397,33 @@ func (c *WAF) UpdateRuleRequest(input *UpdateRuleInput) (req *request.Request, o // to a Rule, a request must match all of the specifications to be allowed, // blocked, or counted. For example, suppose you add the following to a Rule: // -// A ByteMatchSet that matches the value BadBot in the User-Agent header +// * A ByteMatchSet that matches the value BadBot in the User-Agent header // -// An IPSet that matches the IP address 192.0.2.44 +// * An IPSet that matches the IP address 192.0.2.44 // -// You then add the Rule to a WebACL and specify that you want to block requests +// You then add the Rule to a WebACL and specify that you want to block requests // that satisfy the Rule. For a request to be blocked, the User-Agent header -// in the request must contain the value BadBot and the request must originate +// in the request must contain the value BadBotand the request must originate // from the IP address 192.0.2.44. // // To create and configure a Rule, perform the following steps: // -// Create and update the predicates that you want to include in the Rule. +// Create and update the predicates that you want to include in the Rule. // -// Create the Rule. See CreateRule. +// Create the Rule. See CreateRule. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateRule request. // -// Submit an UpdateRule request to add predicates to the Rule. +// Submit an UpdateRule request to add predicates to the Rule. // -// Create and update a WebACL that contains the Rule. See CreateWebACL. +// Create and update a WebACL that contains the Rule. See CreateWebACL. // -// If you want to replace one ByteMatchSet or IPSet with another, you delete +// If you want to replace one ByteMatchSet or IPSet with another, you delete // the existing one and add the new one. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3374,95 +3433,99 @@ func (c *WAF) UpdateRuleRequest(input *UpdateRuleInput) (req *request.Request, o // API operation UpdateRule for usage and error information. // // Returned Error Codes: -// * StaleDataException +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * InvalidOperationException +// * ErrCodeInvalidOperationException "InvalidOperationException" // The operation failed because there was nothing to do. For example: // -// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified -// WebACL. +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. // -// You tried to remove an IP address from an IPSet, but the IP address isn't -// in the specified IPSet. +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. // -// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple -// isn't in the specified WebACL. +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. // -// You tried to add a Rule to a WebACL, but the Rule already exists in the -// specified WebACL. +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. // -// You tried to add an IP address to an IPSet, but the IP address already -// exists in the specified IPSet. +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. // -// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple -// already exists in the specified WebACL. +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. +// +// * You specified an invalid value. // -// You specified an invalid value. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. // -// * NonexistentContainerException +// * ErrCodeNonexistentContainerException "NonexistentContainerException" // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // -// You tried to add a Rule to or delete a Rule from a WebACL that doesn't -// exist. +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. // -// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule -// that doesn't exist. +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. // -// You tried to add an IP address to or delete an IP address from an IPSet -// that doesn't exist. +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. // -// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a -// ByteMatchSet that doesn't exist. +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // -// * ReferencedItemException +// * ErrCodeReferencedItemException "ReferencedItemException" // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // -// * LimitsExceededException +// * ErrCodeLimitsExceededException "LimitsExceededException" // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateRule func (c *WAF) UpdateRule(input *UpdateRuleInput) (*UpdateRuleOutput, error) { req, out := c.UpdateRuleRequest(input) err := req.Send() @@ -3495,6 +3558,7 @@ const opUpdateSizeConstraintSet = "UpdateSizeConstraintSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateSizeConstraintSet func (c *WAF) UpdateSizeConstraintSetRequest(input *UpdateSizeConstraintSetInput) (req *request.Request, output *UpdateSizeConstraintSetOutput) { op := &request.Operation{ Name: opUpdateSizeConstraintSet, @@ -3506,9 +3570,8 @@ func (c *WAF) UpdateSizeConstraintSetRequest(input *UpdateSizeConstraintSetInput input = &UpdateSizeConstraintSetInput{} } - req = c.newRequest(op, input, output) output = &UpdateSizeConstraintSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3517,42 +3580,42 @@ func (c *WAF) UpdateSizeConstraintSetRequest(input *UpdateSizeConstraintSetInput // Inserts or deletes SizeConstraint objects (filters) in a SizeConstraintSet. // For each SizeConstraint object, you specify the following values: // -// Whether to insert or delete the object from the array. If you want to -// change a SizeConstraintSetUpdate object, you delete the existing object and -// add a new one. +// * Whether to insert or delete the object from the array. If you want to +// change a SizeConstraintSetUpdate object, you delete the existing object +// and add a new one. // -// The part of a web request that you want AWS WAF to evaluate, such as the -// length of a query string or the length of the User-Agent header. +// * The part of a web request that you want AWS WAF to evaluate, such as +// the length of a query string or the length of the User-Agent header. // -// Whether to perform any transformations on the request, such as converting -// it to lowercase, before checking its length. Note that transformations of -// the request body are not supported because the AWS resource forwards only -// the first 8192 bytes of your request to AWS WAF. +// * Whether to perform any transformations on the request, such as converting +// it to lowercase, before checking its length. Note that transformations +// of the request body are not supported because the AWS resource forwards +// only the first 8192 bytes of your request to AWS WAF. // -// A ComparisonOperator used for evaluating the selected part of the request -// against the specified Size, such as equals, greater than, less than, and -// so on. +// * A ComparisonOperator used for evaluating the selected part of the request +// against the specified Size, such as equals, greater than, less than, and +// so on. // -// The length, in bytes, that you want AWS WAF to watch for in selected part -// of the request. The length is computed after applying the transformation. +// * The length, in bytes, that you want AWS WAF to watch for in selected +// part of the request. The length is computed after applying the transformation. // -// For example, you can add a SizeConstraintSetUpdate object that matches -// web requests in which the length of the User-Agent header is greater than -// 100 bytes. You can then configure AWS WAF to block those requests. +// For example, you can add a SizeConstraintSetUpdate object that matches web +// requests in which the length of the User-Agent header is greater than 100 +// bytes. You can then configure AWS WAF to block those requests. // // To create and configure a SizeConstraintSet, perform the following steps: // -// Create a SizeConstraintSet. For more information, see CreateSizeConstraintSet. +// Create a SizeConstraintSet. For more information, see CreateSizeConstraintSet. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateSizeConstraintSet request. // -// Submit an UpdateSizeConstraintSet request to specify the part of the request +// Submit an UpdateSizeConstraintSet request to specify the part of the request // that you want AWS WAF to inspect (for example, the header or the URI) and // the value that you want AWS WAF to watch for. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3562,95 +3625,99 @@ func (c *WAF) UpdateSizeConstraintSetRequest(input *UpdateSizeConstraintSetInput // API operation UpdateSizeConstraintSet for usage and error information. // // Returned Error Codes: -// * StaleDataException +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * InvalidOperationException +// * ErrCodeInvalidOperationException "InvalidOperationException" // The operation failed because there was nothing to do. For example: // -// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified -// WebACL. +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. // -// You tried to remove an IP address from an IPSet, but the IP address isn't -// in the specified IPSet. +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. // -// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple -// isn't in the specified WebACL. +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. // -// You tried to add a Rule to a WebACL, but the Rule already exists in the -// specified WebACL. +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. // -// You tried to add an IP address to an IPSet, but the IP address already -// exists in the specified IPSet. +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. // -// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple -// already exists in the specified WebACL. +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // -// * NonexistentContainerException +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeNonexistentContainerException "NonexistentContainerException" // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // -// You tried to add a Rule to or delete a Rule from a WebACL that doesn't -// exist. +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. // -// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule -// that doesn't exist. +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. // -// You tried to add an IP address to or delete an IP address from an IPSet -// that doesn't exist. +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. // -// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a -// ByteMatchSet that doesn't exist. +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // -// * ReferencedItemException +// * ErrCodeReferencedItemException "ReferencedItemException" // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // -// * LimitsExceededException +// * ErrCodeLimitsExceededException "LimitsExceededException" // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateSizeConstraintSet func (c *WAF) UpdateSizeConstraintSet(input *UpdateSizeConstraintSetInput) (*UpdateSizeConstraintSetOutput, error) { req, out := c.UpdateSizeConstraintSetRequest(input) err := req.Send() @@ -3683,6 +3750,7 @@ const opUpdateSqlInjectionMatchSet = "UpdateSqlInjectionMatchSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateSqlInjectionMatchSet func (c *WAF) UpdateSqlInjectionMatchSetRequest(input *UpdateSqlInjectionMatchSetInput) (req *request.Request, output *UpdateSqlInjectionMatchSetOutput) { op := &request.Operation{ Name: opUpdateSqlInjectionMatchSet, @@ -3694,9 +3762,8 @@ func (c *WAF) UpdateSqlInjectionMatchSetRequest(input *UpdateSqlInjectionMatchSe input = &UpdateSqlInjectionMatchSetInput{} } - req = c.newRequest(op, input, output) output = &UpdateSqlInjectionMatchSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3705,18 +3772,18 @@ func (c *WAF) UpdateSqlInjectionMatchSetRequest(input *UpdateSqlInjectionMatchSe // Inserts or deletes SqlInjectionMatchTuple objects (filters) in a SqlInjectionMatchSet. // For each SqlInjectionMatchTuple object, you specify the following values: // -// Action: Whether to insert the object into or delete the object from the -// array. To change a SqlInjectionMatchTuple, you delete the existing object -// and add a new one. +// * Action: Whether to insert the object into or delete the object from +// the array. To change a SqlInjectionMatchTuple, you delete the existing +// object and add a new one. // -// FieldToMatch: The part of web requests that you want AWS WAF to inspect -// and, if you want AWS WAF to inspect a header, the name of the header. +// * FieldToMatch: The part of web requests that you want AWS WAF to inspect +// and, if you want AWS WAF to inspect a header, the name of the header. // -// TextTransformation: Which text transformation, if any, to perform on -// the web request before inspecting the request for snippets of malicious SQL -// code. +// * TextTransformation: Which text transformation, if any, to perform on +// the web request before inspecting the request for snippets of malicious +// SQL code. // -// You use SqlInjectionMatchSet objects to specify which CloudFront requests +// You use SqlInjectionMatchSet objects to specify which CloudFront requests // you want to allow, block, or count. For example, if you're receiving requests // that contain snippets of SQL code in the query string and you want to block // the requests, you can create a SqlInjectionMatchSet with the applicable settings, @@ -3724,16 +3791,16 @@ func (c *WAF) UpdateSqlInjectionMatchSetRequest(input *UpdateSqlInjectionMatchSe // // To create and configure a SqlInjectionMatchSet, perform the following steps: // -// Submit a CreateSqlInjectionMatchSet request. +// Submit a CreateSqlInjectionMatchSet request. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateIPSet request. // -// Submit an UpdateSqlInjectionMatchSet request to specify the parts of web +// Submit an UpdateSqlInjectionMatchSet request to specify the parts of web // requests that you want AWS WAF to inspect for snippets of SQL code. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3743,87 +3810,91 @@ func (c *WAF) UpdateSqlInjectionMatchSetRequest(input *UpdateSqlInjectionMatchSe // API operation UpdateSqlInjectionMatchSet for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * InvalidOperationException +// * ErrCodeInvalidOperationException "InvalidOperationException" // The operation failed because there was nothing to do. For example: // -// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified -// WebACL. +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. // -// You tried to remove an IP address from an IPSet, but the IP address isn't -// in the specified IPSet. +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. // -// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple -// isn't in the specified WebACL. +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. // -// You tried to add a Rule to a WebACL, but the Rule already exists in the -// specified WebACL. +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. // -// You tried to add an IP address to an IPSet, but the IP address already -// exists in the specified IPSet. +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. // -// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple -// already exists in the specified WebACL. +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. +// +// * You specified an invalid value. // -// You specified an invalid value. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. // -// * NonexistentContainerException +// * ErrCodeNonexistentContainerException "NonexistentContainerException" // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // -// You tried to add a Rule to or delete a Rule from a WebACL that doesn't -// exist. +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. // -// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule -// that doesn't exist. +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. // -// You tried to add an IP address to or delete an IP address from an IPSet -// that doesn't exist. +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. // -// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a -// ByteMatchSet that doesn't exist. +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // -// * StaleDataException +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * LimitsExceededException +// * ErrCodeLimitsExceededException "LimitsExceededException" // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateSqlInjectionMatchSet func (c *WAF) UpdateSqlInjectionMatchSet(input *UpdateSqlInjectionMatchSetInput) (*UpdateSqlInjectionMatchSetOutput, error) { req, out := c.UpdateSqlInjectionMatchSetRequest(input) err := req.Send() @@ -3856,6 +3927,7 @@ const opUpdateWebACL = "UpdateWebACL" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateWebACL func (c *WAF) UpdateWebACLRequest(input *UpdateWebACLInput) (req *request.Request, output *UpdateWebACLOutput) { op := &request.Operation{ Name: opUpdateWebACL, @@ -3867,9 +3939,8 @@ func (c *WAF) UpdateWebACLRequest(input *UpdateWebACLInput) (req *request.Reques input = &UpdateWebACLInput{} } - req = c.newRequest(op, input, output) output = &UpdateWebACLOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -3879,46 +3950,45 @@ func (c *WAF) UpdateWebACLRequest(input *UpdateWebACLInput) (req *request.Reques // web requests that you want to allow, block, or count. When you update a WebACL, // you specify the following values: // -// A default action for the WebACL, either ALLOW or BLOCK. AWS WAF performs -// the default action if a request doesn't match the criteria in any of the -// Rules in a WebACL. +// * A default action for the WebACL, either ALLOW or BLOCK. AWS WAF performs +// the default action if a request doesn't match the criteria in any of the +// Rules in a WebACL. // -// The Rules that you want to add and/or delete. If you want to replace one -// Rule with another, you delete the existing Rule and add the new one. +// * The Rules that you want to add and/or delete. If you want to replace +// one Rule with another, you delete the existing Rule and add the new one. // -// For each Rule, whether you want AWS WAF to allow requests, block requests, -// or count requests that match the conditions in the Rule. +// * For each Rule, whether you want AWS WAF to allow requests, block requests, +// or count requests that match the conditions in the Rule. // -// The order in which you want AWS WAF to evaluate the Rules in a WebACL. -// If you add more than one Rule to a WebACL, AWS WAF evaluates each request -// against the Rules in order based on the value of Priority. (The Rule that -// has the lowest value for Priority is evaluated first.) When a web request -// matches all of the predicates (such as ByteMatchSets and IPSets) in a Rule, -// AWS WAF immediately takes the corresponding action, allow or block, and doesn't -// evaluate the request against the remaining Rules in the WebACL, if any. +// * The order in which you want AWS WAF to evaluate the Rules in a WebACL. +// If you add more than one Rule to a WebACL, AWS WAF evaluates each request +// against the Rules in order based on the value of Priority. (The Rule that +// has the lowest value for Priority is evaluated first.) When a web request +// matches all of the predicates (such as ByteMatchSets and IPSets) in a +// Rule, AWS WAF immediately takes the corresponding action, allow or block, +// and doesn't evaluate the request against the remaining Rules in the WebACL, +// if any. // -// The CloudFront distribution that you want to associate with the WebACL. -// -// To create and configure a WebACL, perform the following steps: +// To create and configure a WebACL, perform the following steps: // -// Create and update the predicates that you want to include in Rules. For -// more information, see CreateByteMatchSet, UpdateByteMatchSet, CreateIPSet, -// UpdateIPSet, CreateSqlInjectionMatchSet, and UpdateSqlInjectionMatchSet. +// Create and update the predicates that you want to include in Rules. For more +// information, see CreateByteMatchSet, UpdateByteMatchSet, CreateIPSet, UpdateIPSet, +// CreateSqlInjectionMatchSet, and UpdateSqlInjectionMatchSet. // -// Create and update the Rules that you want to include in the WebACL. For -// more information, see CreateRule and UpdateRule. +// Create and update the Rules that you want to include in the WebACL. For more +// information, see CreateRule and UpdateRule. // -// Create a WebACL. See CreateWebACL. +// Create a WebACL. See CreateWebACL. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateWebACL request. // -// Submit an UpdateWebACL request to specify the Rules that you want to include +// Submit an UpdateWebACL request to specify the Rules that you want to include // in the WebACL, to specify the default action, and to associate the WebACL // with a CloudFront distribution. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3928,95 +3998,99 @@ func (c *WAF) UpdateWebACLRequest(input *UpdateWebACLInput) (req *request.Reques // API operation UpdateWebACL for usage and error information. // // Returned Error Codes: -// * StaleDataException +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * InvalidOperationException +// * ErrCodeInvalidOperationException "InvalidOperationException" // The operation failed because there was nothing to do. For example: // -// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified -// WebACL. +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. // -// You tried to remove an IP address from an IPSet, but the IP address isn't -// in the specified IPSet. +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. // -// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple -// isn't in the specified WebACL. +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. // -// You tried to add a Rule to a WebACL, but the Rule already exists in the -// specified WebACL. +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. // -// You tried to add an IP address to an IPSet, but the IP address already -// exists in the specified IPSet. +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. // -// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple -// already exists in the specified WebACL. +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. // -// You specified an invalid value. +// * You specified an invalid value. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // -// * NonexistentContainerException +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeNonexistentContainerException "NonexistentContainerException" // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // -// You tried to add a Rule to or delete a Rule from a WebACL that doesn't -// exist. +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. // -// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule -// that doesn't exist. +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. // -// You tried to add an IP address to or delete an IP address from an IPSet -// that doesn't exist. +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. // -// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a -// ByteMatchSet that doesn't exist. +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // -// * ReferencedItemException +// * ErrCodeReferencedItemException "ReferencedItemException" // The operation failed because you tried to delete an object that is still // in use. For example: // -// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. // -// You tried to delete a Rule that is still referenced by a WebACL. +// * You tried to delete a Rule that is still referenced by a WebACL. // -// * LimitsExceededException +// * ErrCodeLimitsExceededException "LimitsExceededException" // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateWebACL func (c *WAF) UpdateWebACL(input *UpdateWebACLInput) (*UpdateWebACLOutput, error) { req, out := c.UpdateWebACLRequest(input) err := req.Send() @@ -4049,6 +4123,7 @@ const opUpdateXssMatchSet = "UpdateXssMatchSet" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateXssMatchSet func (c *WAF) UpdateXssMatchSetRequest(input *UpdateXssMatchSetInput) (req *request.Request, output *UpdateXssMatchSetOutput) { op := &request.Operation{ Name: opUpdateXssMatchSet, @@ -4060,9 +4135,8 @@ func (c *WAF) UpdateXssMatchSetRequest(input *UpdateXssMatchSetInput) (req *requ input = &UpdateXssMatchSetInput{} } - req = c.newRequest(op, input, output) output = &UpdateXssMatchSetOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -4071,17 +4145,18 @@ func (c *WAF) UpdateXssMatchSetRequest(input *UpdateXssMatchSetInput) (req *requ // Inserts or deletes XssMatchTuple objects (filters) in an XssMatchSet. For // each XssMatchTuple object, you specify the following values: // -// Action: Whether to insert the object into or delete the object from the -// array. To change a XssMatchTuple, you delete the existing object and add -// a new one. +// * Action: Whether to insert the object into or delete the object from +// the array. To change a XssMatchTuple, you delete the existing object and +// add a new one. // -// FieldToMatch: The part of web requests that you want AWS WAF to inspect -// and, if you want AWS WAF to inspect a header, the name of the header. +// * FieldToMatch: The part of web requests that you want AWS WAF to inspect +// and, if you want AWS WAF to inspect a header, the name of the header. // -// TextTransformation: Which text transformation, if any, to perform on -// the web request before inspecting the request for cross-site scripting attacks. +// * TextTransformation: Which text transformation, if any, to perform on +// the web request before inspecting the request for cross-site scripting +// attacks. // -// You use XssMatchSet objects to specify which CloudFront requests you want +// You use XssMatchSet objects to specify which CloudFront requests you want // to allow, block, or count. For example, if you're receiving requests that // contain cross-site scripting attacks in the request body and you want to // block the requests, you can create an XssMatchSet with the applicable settings, @@ -4089,16 +4164,16 @@ func (c *WAF) UpdateXssMatchSetRequest(input *UpdateXssMatchSetInput) (req *requ // // To create and configure an XssMatchSet, perform the following steps: // -// Submit a CreateXssMatchSet request. +// Submit a CreateXssMatchSet request. // -// Use GetChangeToken to get the change token that you provide in the ChangeToken +// Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateIPSet request. // -// Submit an UpdateXssMatchSet request to specify the parts of web requests +// Submit an UpdateXssMatchSet request to specify the parts of web requests // that you want AWS WAF to inspect for cross-site scripting attacks. // -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4108,87 +4183,91 @@ func (c *WAF) UpdateXssMatchSetRequest(input *UpdateXssMatchSetInput) (req *requ // API operation UpdateXssMatchSet for usage and error information. // // Returned Error Codes: -// * InternalErrorException +// * ErrCodeInternalErrorException "InternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * InvalidAccountException +// * ErrCodeInvalidAccountException "InvalidAccountException" // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * InvalidOperationException +// * ErrCodeInvalidOperationException "InvalidOperationException" // The operation failed because there was nothing to do. For example: // -// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified -// WebACL. +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. // -// You tried to remove an IP address from an IPSet, but the IP address isn't -// in the specified IPSet. +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. // -// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple -// isn't in the specified WebACL. +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. // -// You tried to add a Rule to a WebACL, but the Rule already exists in the -// specified WebACL. +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. // -// You tried to add an IP address to an IPSet, but the IP address already -// exists in the specified IPSet. +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. // -// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple -// already exists in the specified WebACL. +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. // -// * InvalidParameterException +// * ErrCodeInvalidParameterException "InvalidParameterException" // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // -// You specified an invalid parameter name. +// * You specified an invalid parameter name. +// +// * You specified an invalid value. // -// You specified an invalid value. +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. // -// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using -// an action other than INSERT or DELETE. +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to create a WebACL with a DefaultAction Type other than ALLOW, -// BLOCK, or COUNT. +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. // -// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, -// or COUNT. +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. // -// You tried to update a ByteMatchSet with a FieldToMatch Type other than -// HEADER, QUERY_STRING, or URI. +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. // -// You tried to update a ByteMatchSet with a Field of HEADER but no value -// for Data. +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. // -// * NonexistentContainerException +// * ErrCodeNonexistentContainerException "NonexistentContainerException" // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // -// You tried to add a Rule to or delete a Rule from a WebACL that doesn't -// exist. +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. // -// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule -// that doesn't exist. +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. // -// You tried to add an IP address to or delete an IP address from an IPSet -// that doesn't exist. +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. // -// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a -// ByteMatchSet that doesn't exist. +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. // -// * NonexistentItemException +// * ErrCodeNonexistentItemException "NonexistentItemException" // The operation failed because the referenced object doesn't exist. // -// * StaleDataException +// * ErrCodeStaleDataException "StaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * LimitsExceededException +// * ErrCodeLimitsExceededException "LimitsExceededException" // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateXssMatchSet func (c *WAF) UpdateXssMatchSet(input *UpdateXssMatchSetInput) (*UpdateXssMatchSetOutput, error) { req, out := c.UpdateXssMatchSetRequest(input) err := req.Send() @@ -4200,21 +4279,22 @@ func (c *WAF) UpdateXssMatchSet(input *UpdateXssMatchSetInput) (*UpdateXssMatchS // the action that you want AWS WAF to take when a web request matches the Rule // (ALLOW, BLOCK, or COUNT). // -// To specify whether to insert or delete a Rule, use the Action parameter -// in the WebACLUpdate data type. +// To specify whether to insert or delete a Rule, use the Action parameter in +// the WebACLUpdate data type. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ActivatedRule type ActivatedRule struct { _ struct{} `type:"structure"` // Specifies the action that CloudFront or AWS WAF takes when a web request // matches the conditions in the Rule. Valid values for Action include the following: // - // ALLOW: CloudFront responds with the requested object. + // * ALLOW: CloudFront responds with the requested object. // - // BLOCK: CloudFront responds with an HTTP 403 (Forbidden) status code. + // * BLOCK: CloudFront responds with an HTTP 403 (Forbidden) status code. // - // COUNT: AWS WAF increments a counter of requests that match the conditions - // in the rule and then continues to inspect the web request based on the remaining - // rules in the web ACL. + // * COUNT: AWS WAF increments a counter of requests that match the conditions + // in the rule and then continues to inspect the web request based on the + // remaining rules in the web ACL. // // Action is a required field Action *WafAction `type:"structure" required:"true"` @@ -4232,7 +4312,7 @@ type ActivatedRule struct { // or delete a one from a WebACL (see UpdateWebACL), or delete a Rule from AWS // WAF (see DeleteRule). // - // RuleId is returned by CreateRule and by ListRules. + // RuleId is returned by CreateRule and by ListRules. // // RuleId is a required field RuleId *string `min:"1" type:"string" required:"true"` @@ -4275,6 +4355,24 @@ func (s *ActivatedRule) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *ActivatedRule) SetAction(v *WafAction) *ActivatedRule { + s.Action = v + return s +} + +// SetPriority sets the Priority field's value. +func (s *ActivatedRule) SetPriority(v int64) *ActivatedRule { + s.Priority = &v + return s +} + +// SetRuleId sets the RuleId field's value. +func (s *ActivatedRule) SetRuleId(v string) *ActivatedRule { + s.RuleId = &v + return s +} + // In a GetByteMatchSet request, ByteMatchSet is a complex type that contains // the ByteMatchSetId and Name of a ByteMatchSet, and the values that you specified // when you updated the ByteMatchSet. @@ -4284,6 +4382,7 @@ func (s *ActivatedRule) Validate() error { // want AWS WAF to search for. If a ByteMatchSet contains more than one ByteMatchTuple // object, a request needs to match the settings in only one ByteMatchTuple // to be considered a match. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ByteMatchSet type ByteMatchSet struct { _ struct{} `type:"structure"` @@ -4292,7 +4391,7 @@ type ByteMatchSet struct { // insert a ByteMatchSet into a Rule or delete one from a Rule (see UpdateRule), // and delete a ByteMatchSet from AWS WAF (see DeleteByteMatchSet). // - // ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets. + // ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets. // // ByteMatchSetId is a required field ByteMatchSetId *string `min:"1" type:"string" required:"true"` @@ -4319,8 +4418,27 @@ func (s ByteMatchSet) GoString() string { return s.String() } +// SetByteMatchSetId sets the ByteMatchSetId field's value. +func (s *ByteMatchSet) SetByteMatchSetId(v string) *ByteMatchSet { + s.ByteMatchSetId = &v + return s +} + +// SetByteMatchTuples sets the ByteMatchTuples field's value. +func (s *ByteMatchSet) SetByteMatchTuples(v []*ByteMatchTuple) *ByteMatchSet { + s.ByteMatchTuples = v + return s +} + +// SetName sets the Name field's value. +func (s *ByteMatchSet) SetName(v string) *ByteMatchSet { + s.Name = &v + return s +} + // Returned by ListByteMatchSets. Each ByteMatchSetSummary object includes the // Name and ByteMatchSetId for one ByteMatchSet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ByteMatchSetSummary type ByteMatchSetSummary struct { _ struct{} `type:"structure"` @@ -4328,7 +4446,7 @@ type ByteMatchSetSummary struct { // about a ByteMatchSet, update a ByteMatchSet, remove a ByteMatchSet from a // Rule, and delete a ByteMatchSet from AWS WAF. // - // ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets. + // ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets. // // ByteMatchSetId is a required field ByteMatchSetId *string `min:"1" type:"string" required:"true"` @@ -4350,8 +4468,21 @@ func (s ByteMatchSetSummary) GoString() string { return s.String() } +// SetByteMatchSetId sets the ByteMatchSetId field's value. +func (s *ByteMatchSetSummary) SetByteMatchSetId(v string) *ByteMatchSetSummary { + s.ByteMatchSetId = &v + return s +} + +// SetName sets the Name field's value. +func (s *ByteMatchSetSummary) SetName(v string) *ByteMatchSetSummary { + s.Name = &v + return s +} + // In an UpdateByteMatchSet request, ByteMatchSetUpdate specifies whether to // insert or delete a ByteMatchTuple and includes the settings for the ByteMatchTuple. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ByteMatchSetUpdate type ByteMatchSetUpdate struct { _ struct{} `type:"structure"` @@ -4400,9 +4531,22 @@ func (s *ByteMatchSetUpdate) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *ByteMatchSetUpdate) SetAction(v string) *ByteMatchSetUpdate { + s.Action = &v + return s +} + +// SetByteMatchTuple sets the ByteMatchTuple field's value. +func (s *ByteMatchSetUpdate) SetByteMatchTuple(v *ByteMatchTuple) *ByteMatchSetUpdate { + s.ByteMatchTuple = v + return s +} + // The bytes (typically a string that corresponds with ASCII characters) that // you want AWS WAF to search for in web requests, the location in requests // that you want AWS WAF to search, and other settings. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ByteMatchTuple type ByteMatchTuple struct { _ struct{} `type:"structure"` @@ -4416,44 +4560,44 @@ type ByteMatchTuple struct { // in the query string, if any), specify where you want AWS WAF to search. Valid // values include the following: // - // CONTAINS + // CONTAINS // // The specified part of the web request must include the value of TargetString, // but the location doesn't matter. // - // CONTAINS_WORD + // CONTAINS_WORD // // The specified part of the web request must include the value of TargetString, // and TargetString must contain only alphanumeric characters or underscore // (A-Z, a-z, 0-9, or _). In addition, TargetString must be a word, which means // one of the following: // - // TargetString exactly matches the value of the specified part of the web - // request, such as the value of a header. + // * TargetString exactly matches the value of the specified part of the + // web request, such as the value of a header. // - // TargetString is at the beginning of the specified part of the web request - // and is followed by a character other than an alphanumeric character or underscore - // (_), for example, BadBot;. + // * TargetString is at the beginning of the specified part of the web request + // and is followed by a character other than an alphanumeric character or + // underscore (_), for example, BadBot;. // - // TargetString is at the end of the specified part of the web request and - // is preceded by a character other than an alphanumeric character or underscore - // (_), for example, ;BadBot. + // * TargetString is at the end of the specified part of the web request + // and is preceded by a character other than an alphanumeric character or + // underscore (_), for example, ;BadBot. // - // TargetString is in the middle of the specified part of the web request - // and is preceded and followed by characters other than alphanumeric characters - // or underscore (_), for example, -BadBot;. + // * TargetString is in the middle of the specified part of the web request + // and is preceded and followed by characters other than alphanumeric characters + // or underscore (_), for example, -BadBot;. // - // EXACTLY + // EXACTLY // // The value of the specified part of the web request must exactly match the // value of TargetString. // - // STARTS_WITH + // STARTS_WITH // - // The value of TargetString must appear at the beginning of the specified - // part of the web request. + // The value of TargetString must appear at the beginning of the specified part + // of the web request. // - // ENDS_WITH + // ENDS_WITH // // The value of TargetString must appear at the end of the specified part of // the web request. @@ -4467,31 +4611,32 @@ type ByteMatchTuple struct { // // Valid values depend on the values that you specified for FieldToMatch: // - // HEADER: The value that you want AWS WAF to search for in the request - // header that you specified in FieldToMatch, for example, the value of the - // User-Agent or Referer header. + // * HEADER: The value that you want AWS WAF to search for in the request + // header that you specified in FieldToMatch, for example, the value of the + // User-Agent or Referer header. // - // METHOD: The HTTP method, which indicates the type of operation specified - // in the request. CloudFront supports the following methods: DELETE, GET, HEAD, - // OPTIONS, PATCH, POST, and PUT. + // * METHOD: The HTTP method, which indicates the type of operation specified + // in the request. CloudFront supports the following methods: DELETE, GET, + // HEAD, OPTIONS, PATCH, POST, and PUT. // - // QUERY_STRING: The value that you want AWS WAF to search for in the query - // string, which is the part of a URL that appears after a ? character. + // * QUERY_STRING: The value that you want AWS WAF to search for in the query + // string, which is the part of a URL that appears after a ? character. // - // URI: The value that you want AWS WAF to search for in the part of a URL - // that identifies a resource, for example, /images/daily-ad.jpg. + // * URI: The value that you want AWS WAF to search for in the part of a + // URL that identifies a resource, for example, /images/daily-ad.jpg. // - // BODY: The part of a request that contains any additional data that you - // want to send to your web server as the HTTP request body, such as data from - // a form. The request body immediately follows the request headers. Note that - // only the first 8192 bytes of the request body are forwarded to AWS WAF for - // inspection. To allow or block requests based on the length of the body, you - // can create a size constraint set. For more information, see CreateSizeConstraintSet. + // * BODY: The part of a request that contains any additional data that you + // want to send to your web server as the HTTP request body, such as data + // from a form. The request body immediately follows the request headers. + // Note that only the first 8192 bytes of the request body are forwarded + // to AWS WAF for inspection. To allow or block requests based on the length + // of the body, you can create a size constraint set. For more information, + // see CreateSizeConstraintSet. // - // If TargetString includes alphabetic characters A-Z and a-z, note that - // the value is case sensitive. + // If TargetString includes alphabetic characters A-Z and a-z, note that the + // value is case sensitive. // - // If you're using the AWS WAF API + // If you're using the AWS WAF API // // Specify a base64-encoded version of the value. The maximum length of the // value before you base64-encode it is 50 bytes. @@ -4501,7 +4646,7 @@ type ByteMatchTuple struct { // you base64-encode BadBot using MIME base64 encoding and include the resulting // value, QmFkQm90, in the value of TargetString. // - // If you're using the AWS CLI or one of the AWS SDKs + // If you're using the AWS CLI or one of the AWS SDKs // // The value that you want AWS WAF to search for. The SDK automatically base64 // encodes the value. @@ -4516,69 +4661,69 @@ type ByteMatchTuple struct { // AWS WAF performs the transformation on TargetString before inspecting a request // for a match. // - // CMD_LINE + // CMD_LINE // // When you're concerned that attackers are injecting an operating system commandline // command and using unusual formatting to disguise some or all of the command, // use this option to perform the following transformations: // - // Delete the following characters: \ " ' ^ + // * Delete the following characters: \ " ' ^ // - // Delete spaces before the following characters: / ( + // * Delete spaces before the following characters: / ( // - // Replace the following characters with a space: , ; + // * Replace the following characters with a space: , ; // - // Replace multiple spaces with one space + // * Replace multiple spaces with one space // - // Convert uppercase letters (A-Z) to lowercase (a-z) + // * Convert uppercase letters (A-Z) to lowercase (a-z) // - // COMPRESS_WHITE_SPACE + // COMPRESS_WHITE_SPACE // // Use this option to replace the following characters with a space character // (decimal 32): // - // \f, formfeed, decimal 12 + // * \f, formfeed, decimal 12 // - // \t, tab, decimal 9 + // * \t, tab, decimal 9 // - // \n, newline, decimal 10 + // * \n, newline, decimal 10 // - // \r, carriage return, decimal 13 + // * \r, carriage return, decimal 13 // - // \v, vertical tab, decimal 11 + // * \v, vertical tab, decimal 11 // - // non-breaking space, decimal 160 + // * non-breaking space, decimal 160 // - // COMPRESS_WHITE_SPACE also replaces multiple spaces with one space. + // COMPRESS_WHITE_SPACE also replaces multiple spaces with one space. // - // HTML_ENTITY_DECODE + // HTML_ENTITY_DECODE // // Use this option to replace HTML-encoded characters with unencoded characters. // HTML_ENTITY_DECODE performs the following operations: // - // Replaces (ampersand)quot; with " + // * Replaces (ampersand)quot; with " // - // Replaces (ampersand)nbsp; with a non-breaking space, decimal 160 + // * Replaces (ampersand)nbsp; with a non-breaking space, decimal 160 // - // Replaces (ampersand)lt; with a "less than" symbol + // * Replaces (ampersand)lt; with a "less than" symbol // - // Replaces (ampersand)gt; with > + // * Replaces (ampersand)gt; with > // - // Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, - // with the corresponding characters + // * Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, + // with the corresponding characters // - // Replaces characters that are represented in decimal format, (ampersand)#nnnn;, - // with the corresponding characters + // * Replaces characters that are represented in decimal format, (ampersand)#nnnn;, + // with the corresponding characters // - // LOWERCASE + // LOWERCASE // // Use this option to convert uppercase letters (A-Z) to lowercase (a-z). // - // URL_DECODE + // URL_DECODE // // Use this option to decode a URL-encoded value. // - // NONE + // NONE // // Specify NONE if you don't want to perform any text transformations. // @@ -4623,6 +4768,31 @@ func (s *ByteMatchTuple) Validate() error { return nil } +// SetFieldToMatch sets the FieldToMatch field's value. +func (s *ByteMatchTuple) SetFieldToMatch(v *FieldToMatch) *ByteMatchTuple { + s.FieldToMatch = v + return s +} + +// SetPositionalConstraint sets the PositionalConstraint field's value. +func (s *ByteMatchTuple) SetPositionalConstraint(v string) *ByteMatchTuple { + s.PositionalConstraint = &v + return s +} + +// SetTargetString sets the TargetString field's value. +func (s *ByteMatchTuple) SetTargetString(v []byte) *ByteMatchTuple { + s.TargetString = v + return s +} + +// SetTextTransformation sets the TextTransformation field's value. +func (s *ByteMatchTuple) SetTextTransformation(v string) *ByteMatchTuple { + s.TextTransformation = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateByteMatchSetRequest type CreateByteMatchSetInput struct { _ struct{} `type:"structure"` @@ -4670,6 +4840,19 @@ func (s *CreateByteMatchSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateByteMatchSetInput) SetChangeToken(v string) *CreateByteMatchSetInput { + s.ChangeToken = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateByteMatchSetInput) SetName(v string) *CreateByteMatchSetInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateByteMatchSetResponse type CreateByteMatchSetOutput struct { _ struct{} `type:"structure"` @@ -4692,6 +4875,19 @@ func (s CreateByteMatchSetOutput) GoString() string { return s.String() } +// SetByteMatchSet sets the ByteMatchSet field's value. +func (s *CreateByteMatchSetOutput) SetByteMatchSet(v *ByteMatchSet) *CreateByteMatchSetOutput { + s.ByteMatchSet = v + return s +} + +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateByteMatchSetOutput) SetChangeToken(v string) *CreateByteMatchSetOutput { + s.ChangeToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateIPSetRequest type CreateIPSetInput struct { _ struct{} `type:"structure"` @@ -4739,6 +4935,19 @@ func (s *CreateIPSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateIPSetInput) SetChangeToken(v string) *CreateIPSetInput { + s.ChangeToken = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateIPSetInput) SetName(v string) *CreateIPSetInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateIPSetResponse type CreateIPSetOutput struct { _ struct{} `type:"structure"` @@ -4761,6 +4970,19 @@ func (s CreateIPSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateIPSetOutput) SetChangeToken(v string) *CreateIPSetOutput { + s.ChangeToken = &v + return s +} + +// SetIPSet sets the IPSet field's value. +func (s *CreateIPSetOutput) SetIPSet(v *IPSet) *CreateIPSetOutput { + s.IPSet = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateRuleRequest type CreateRuleInput struct { _ struct{} `type:"structure"` @@ -4819,6 +5041,25 @@ func (s *CreateRuleInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateRuleInput) SetChangeToken(v string) *CreateRuleInput { + s.ChangeToken = &v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *CreateRuleInput) SetMetricName(v string) *CreateRuleInput { + s.MetricName = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateRuleInput) SetName(v string) *CreateRuleInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateRuleResponse type CreateRuleOutput struct { _ struct{} `type:"structure"` @@ -4841,6 +5082,19 @@ func (s CreateRuleOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateRuleOutput) SetChangeToken(v string) *CreateRuleOutput { + s.ChangeToken = &v + return s +} + +// SetRule sets the Rule field's value. +func (s *CreateRuleOutput) SetRule(v *Rule) *CreateRuleOutput { + s.Rule = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateSizeConstraintSetRequest type CreateSizeConstraintSetInput struct { _ struct{} `type:"structure"` @@ -4888,6 +5142,19 @@ func (s *CreateSizeConstraintSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateSizeConstraintSetInput) SetChangeToken(v string) *CreateSizeConstraintSetInput { + s.ChangeToken = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateSizeConstraintSetInput) SetName(v string) *CreateSizeConstraintSetInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateSizeConstraintSetResponse type CreateSizeConstraintSetOutput struct { _ struct{} `type:"structure"` @@ -4910,7 +5177,20 @@ func (s CreateSizeConstraintSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateSizeConstraintSetOutput) SetChangeToken(v string) *CreateSizeConstraintSetOutput { + s.ChangeToken = &v + return s +} + +// SetSizeConstraintSet sets the SizeConstraintSet field's value. +func (s *CreateSizeConstraintSetOutput) SetSizeConstraintSet(v *SizeConstraintSet) *CreateSizeConstraintSetOutput { + s.SizeConstraintSet = v + return s +} + // A request to create a SqlInjectionMatchSet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateSqlInjectionMatchSetRequest type CreateSqlInjectionMatchSetInput struct { _ struct{} `type:"structure"` @@ -4958,7 +5238,20 @@ func (s *CreateSqlInjectionMatchSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateSqlInjectionMatchSetInput) SetChangeToken(v string) *CreateSqlInjectionMatchSetInput { + s.ChangeToken = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateSqlInjectionMatchSetInput) SetName(v string) *CreateSqlInjectionMatchSetInput { + s.Name = &v + return s +} + // The response to a CreateSqlInjectionMatchSet request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateSqlInjectionMatchSetResponse type CreateSqlInjectionMatchSetOutput struct { _ struct{} `type:"structure"` @@ -4981,6 +5274,19 @@ func (s CreateSqlInjectionMatchSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateSqlInjectionMatchSetOutput) SetChangeToken(v string) *CreateSqlInjectionMatchSetOutput { + s.ChangeToken = &v + return s +} + +// SetSqlInjectionMatchSet sets the SqlInjectionMatchSet field's value. +func (s *CreateSqlInjectionMatchSetOutput) SetSqlInjectionMatchSet(v *SqlInjectionMatchSet) *CreateSqlInjectionMatchSetOutput { + s.SqlInjectionMatchSet = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateWebACLRequest type CreateWebACLInput struct { _ struct{} `type:"structure"` @@ -5053,6 +5359,31 @@ func (s *CreateWebACLInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateWebACLInput) SetChangeToken(v string) *CreateWebACLInput { + s.ChangeToken = &v + return s +} + +// SetDefaultAction sets the DefaultAction field's value. +func (s *CreateWebACLInput) SetDefaultAction(v *WafAction) *CreateWebACLInput { + s.DefaultAction = v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *CreateWebACLInput) SetMetricName(v string) *CreateWebACLInput { + s.MetricName = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateWebACLInput) SetName(v string) *CreateWebACLInput { + s.Name = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateWebACLResponse type CreateWebACLOutput struct { _ struct{} `type:"structure"` @@ -5075,7 +5406,20 @@ func (s CreateWebACLOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateWebACLOutput) SetChangeToken(v string) *CreateWebACLOutput { + s.ChangeToken = &v + return s +} + +// SetWebACL sets the WebACL field's value. +func (s *CreateWebACLOutput) SetWebACL(v *WebACL) *CreateWebACLOutput { + s.WebACL = v + return s +} + // A request to create an XssMatchSet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateXssMatchSetRequest type CreateXssMatchSetInput struct { _ struct{} `type:"structure"` @@ -5123,7 +5467,20 @@ func (s *CreateXssMatchSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateXssMatchSetInput) SetChangeToken(v string) *CreateXssMatchSetInput { + s.ChangeToken = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateXssMatchSetInput) SetName(v string) *CreateXssMatchSetInput { + s.Name = &v + return s +} + // The response to a CreateXssMatchSet request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateXssMatchSetResponse type CreateXssMatchSetOutput struct { _ struct{} `type:"structure"` @@ -5146,6 +5503,19 @@ func (s CreateXssMatchSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *CreateXssMatchSetOutput) SetChangeToken(v string) *CreateXssMatchSetOutput { + s.ChangeToken = &v + return s +} + +// SetXssMatchSet sets the XssMatchSet field's value. +func (s *CreateXssMatchSetOutput) SetXssMatchSet(v *XssMatchSet) *CreateXssMatchSetOutput { + s.XssMatchSet = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteByteMatchSetRequest type DeleteByteMatchSetInput struct { _ struct{} `type:"structure"` @@ -5193,6 +5563,19 @@ func (s *DeleteByteMatchSetInput) Validate() error { return nil } +// SetByteMatchSetId sets the ByteMatchSetId field's value. +func (s *DeleteByteMatchSetInput) SetByteMatchSetId(v string) *DeleteByteMatchSetInput { + s.ByteMatchSetId = &v + return s +} + +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteByteMatchSetInput) SetChangeToken(v string) *DeleteByteMatchSetInput { + s.ChangeToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteByteMatchSetResponse type DeleteByteMatchSetOutput struct { _ struct{} `type:"structure"` @@ -5212,6 +5595,13 @@ func (s DeleteByteMatchSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteByteMatchSetOutput) SetChangeToken(v string) *DeleteByteMatchSetOutput { + s.ChangeToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteIPSetRequest type DeleteIPSetInput struct { _ struct{} `type:"structure"` @@ -5259,6 +5649,19 @@ func (s *DeleteIPSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteIPSetInput) SetChangeToken(v string) *DeleteIPSetInput { + s.ChangeToken = &v + return s +} + +// SetIPSetId sets the IPSetId field's value. +func (s *DeleteIPSetInput) SetIPSetId(v string) *DeleteIPSetInput { + s.IPSetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteIPSetResponse type DeleteIPSetOutput struct { _ struct{} `type:"structure"` @@ -5278,6 +5681,13 @@ func (s DeleteIPSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteIPSetOutput) SetChangeToken(v string) *DeleteIPSetOutput { + s.ChangeToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteRuleRequest type DeleteRuleInput struct { _ struct{} `type:"structure"` @@ -5325,6 +5735,19 @@ func (s *DeleteRuleInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteRuleInput) SetChangeToken(v string) *DeleteRuleInput { + s.ChangeToken = &v + return s +} + +// SetRuleId sets the RuleId field's value. +func (s *DeleteRuleInput) SetRuleId(v string) *DeleteRuleInput { + s.RuleId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteRuleResponse type DeleteRuleOutput struct { _ struct{} `type:"structure"` @@ -5344,6 +5767,13 @@ func (s DeleteRuleOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteRuleOutput) SetChangeToken(v string) *DeleteRuleOutput { + s.ChangeToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteSizeConstraintSetRequest type DeleteSizeConstraintSetInput struct { _ struct{} `type:"structure"` @@ -5391,6 +5821,19 @@ func (s *DeleteSizeConstraintSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteSizeConstraintSetInput) SetChangeToken(v string) *DeleteSizeConstraintSetInput { + s.ChangeToken = &v + return s +} + +// SetSizeConstraintSetId sets the SizeConstraintSetId field's value. +func (s *DeleteSizeConstraintSetInput) SetSizeConstraintSetId(v string) *DeleteSizeConstraintSetInput { + s.SizeConstraintSetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteSizeConstraintSetResponse type DeleteSizeConstraintSetOutput struct { _ struct{} `type:"structure"` @@ -5410,7 +5853,14 @@ func (s DeleteSizeConstraintSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteSizeConstraintSetOutput) SetChangeToken(v string) *DeleteSizeConstraintSetOutput { + s.ChangeToken = &v + return s +} + // A request to delete a SqlInjectionMatchSet from AWS WAF. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteSqlInjectionMatchSetRequest type DeleteSqlInjectionMatchSetInput struct { _ struct{} `type:"structure"` @@ -5458,7 +5908,20 @@ func (s *DeleteSqlInjectionMatchSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteSqlInjectionMatchSetInput) SetChangeToken(v string) *DeleteSqlInjectionMatchSetInput { + s.ChangeToken = &v + return s +} + +// SetSqlInjectionMatchSetId sets the SqlInjectionMatchSetId field's value. +func (s *DeleteSqlInjectionMatchSetInput) SetSqlInjectionMatchSetId(v string) *DeleteSqlInjectionMatchSetInput { + s.SqlInjectionMatchSetId = &v + return s +} + // The response to a request to delete a SqlInjectionMatchSet from AWS WAF. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteSqlInjectionMatchSetResponse type DeleteSqlInjectionMatchSetOutput struct { _ struct{} `type:"structure"` @@ -5478,6 +5941,13 @@ func (s DeleteSqlInjectionMatchSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteSqlInjectionMatchSetOutput) SetChangeToken(v string) *DeleteSqlInjectionMatchSetOutput { + s.ChangeToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteWebACLRequest type DeleteWebACLInput struct { _ struct{} `type:"structure"` @@ -5525,6 +5995,19 @@ func (s *DeleteWebACLInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteWebACLInput) SetChangeToken(v string) *DeleteWebACLInput { + s.ChangeToken = &v + return s +} + +// SetWebACLId sets the WebACLId field's value. +func (s *DeleteWebACLInput) SetWebACLId(v string) *DeleteWebACLInput { + s.WebACLId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteWebACLResponse type DeleteWebACLOutput struct { _ struct{} `type:"structure"` @@ -5544,7 +6027,14 @@ func (s DeleteWebACLOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteWebACLOutput) SetChangeToken(v string) *DeleteWebACLOutput { + s.ChangeToken = &v + return s +} + // A request to delete an XssMatchSet from AWS WAF. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteXssMatchSetRequest type DeleteXssMatchSetInput struct { _ struct{} `type:"structure"` @@ -5592,7 +6082,20 @@ func (s *DeleteXssMatchSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteXssMatchSetInput) SetChangeToken(v string) *DeleteXssMatchSetInput { + s.ChangeToken = &v + return s +} + +// SetXssMatchSetId sets the XssMatchSetId field's value. +func (s *DeleteXssMatchSetInput) SetXssMatchSetId(v string) *DeleteXssMatchSetInput { + s.XssMatchSetId = &v + return s +} + // The response to a request to delete an XssMatchSet from AWS WAF. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteXssMatchSetResponse type DeleteXssMatchSetOutput struct { _ struct{} `type:"structure"` @@ -5612,7 +6115,14 @@ func (s DeleteXssMatchSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *DeleteXssMatchSetOutput) SetChangeToken(v string) *DeleteXssMatchSetOutput { + s.ChangeToken = &v + return s +} + // Specifies where in a web request to look for TargetString. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/FieldToMatch type FieldToMatch struct { _ struct{} `type:"structure"` @@ -5626,26 +6136,27 @@ type FieldToMatch struct { // The part of the web request that you want AWS WAF to search for a specified // string. Parts of a request that you can search include the following: // - // HEADER: A specified request header, for example, the value of the User-Agent - // or Referer header. If you choose HEADER for the type, specify the name of - // the header in Data. + // * HEADER: A specified request header, for example, the value of the User-Agent + // or Referer header. If you choose HEADER for the type, specify the name + // of the header in Data. // - // METHOD: The HTTP method, which indicated the type of operation that the - // request is asking the origin to perform. Amazon CloudFront supports the following - // methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT. + // * METHOD: The HTTP method, which indicated the type of operation that + // the request is asking the origin to perform. Amazon CloudFront supports + // the following methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT. // - // QUERY_STRING: A query string, which is the part of a URL that appears - // after a ? character, if any. + // * QUERY_STRING: A query string, which is the part of a URL that appears + // after a ? character, if any. // - // URI: The part of a web request that identifies a resource, for example, - // /images/daily-ad.jpg. + // * URI: The part of a web request that identifies a resource, for example, + // /images/daily-ad.jpg. // - // BODY: The part of a request that contains any additional data that you - // want to send to your web server as the HTTP request body, such as data from - // a form. The request body immediately follows the request headers. Note that - // only the first 8192 bytes of the request body are forwarded to AWS WAF for - // inspection. To allow or block requests based on the length of the body, you - // can create a size constraint set. For more information, see CreateSizeConstraintSet. + // * BODY: The part of a request that contains any additional data that you + // want to send to your web server as the HTTP request body, such as data + // from a form. The request body immediately follows the request headers. + // Note that only the first 8192 bytes of the request body are forwarded + // to AWS WAF for inspection. To allow or block requests based on the length + // of the body, you can create a size constraint set. For more information, + // see CreateSizeConstraintSet. // // Type is a required field Type *string `type:"string" required:"true" enum:"MatchFieldType"` @@ -5674,6 +6185,19 @@ func (s *FieldToMatch) Validate() error { return nil } +// SetData sets the Data field's value. +func (s *FieldToMatch) SetData(v string) *FieldToMatch { + s.Data = &v + return s +} + +// SetType sets the Type field's value. +func (s *FieldToMatch) SetType(v string) *FieldToMatch { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetByteMatchSetRequest type GetByteMatchSetInput struct { _ struct{} `type:"structure"` @@ -5710,18 +6234,26 @@ func (s *GetByteMatchSetInput) Validate() error { return nil } +// SetByteMatchSetId sets the ByteMatchSetId field's value. +func (s *GetByteMatchSetInput) SetByteMatchSetId(v string) *GetByteMatchSetInput { + s.ByteMatchSetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetByteMatchSetResponse type GetByteMatchSetOutput struct { _ struct{} `type:"structure"` // Information about the ByteMatchSet that you specified in the GetByteMatchSet // request. For more information, see the following topics: // - // ByteMatchSet: Contains ByteMatchSetId, ByteMatchTuples, and Name + // * ByteMatchSet: Contains ByteMatchSetId, ByteMatchTuples, and Name // - // ByteMatchTuples: Contains an array of ByteMatchTuple objects. Each ByteMatchTuple - // object contains FieldToMatch, PositionalConstraint, TargetString, and TextTransformation + // * ByteMatchTuples: Contains an array of ByteMatchTuple objects. Each ByteMatchTuple + // object contains FieldToMatch, PositionalConstraint, TargetString, and + // TextTransformation // - // FieldToMatch: Contains Data and Type + // * FieldToMatch: Contains Data and Type ByteMatchSet *ByteMatchSet `type:"structure"` } @@ -5735,6 +6267,13 @@ func (s GetByteMatchSetOutput) GoString() string { return s.String() } +// SetByteMatchSet sets the ByteMatchSet field's value. +func (s *GetByteMatchSetOutput) SetByteMatchSet(v *ByteMatchSet) *GetByteMatchSetOutput { + s.ByteMatchSet = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetChangeTokenRequest type GetChangeTokenInput struct { _ struct{} `type:"structure"` } @@ -5749,6 +6288,7 @@ func (s GetChangeTokenInput) GoString() string { return s.String() } +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetChangeTokenResponse type GetChangeTokenOutput struct { _ struct{} `type:"structure"` @@ -5767,6 +6307,13 @@ func (s GetChangeTokenOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *GetChangeTokenOutput) SetChangeToken(v string) *GetChangeTokenOutput { + s.ChangeToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetChangeTokenStatusRequest type GetChangeTokenStatusInput struct { _ struct{} `type:"structure"` @@ -5803,6 +6350,13 @@ func (s *GetChangeTokenStatusInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *GetChangeTokenStatusInput) SetChangeToken(v string) *GetChangeTokenStatusInput { + s.ChangeToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetChangeTokenStatusResponse type GetChangeTokenStatusOutput struct { _ struct{} `type:"structure"` @@ -5820,6 +6374,13 @@ func (s GetChangeTokenStatusOutput) GoString() string { return s.String() } +// SetChangeTokenStatus sets the ChangeTokenStatus field's value. +func (s *GetChangeTokenStatusOutput) SetChangeTokenStatus(v string) *GetChangeTokenStatusOutput { + s.ChangeTokenStatus = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetIPSetRequest type GetIPSetInput struct { _ struct{} `type:"structure"` @@ -5856,16 +6417,23 @@ func (s *GetIPSetInput) Validate() error { return nil } +// SetIPSetId sets the IPSetId field's value. +func (s *GetIPSetInput) SetIPSetId(v string) *GetIPSetInput { + s.IPSetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetIPSetResponse type GetIPSetOutput struct { _ struct{} `type:"structure"` // Information about the IPSet that you specified in the GetIPSet request. For // more information, see the following topics: // - // IPSet: Contains IPSetDescriptors, IPSetId, and Name + // * IPSet: Contains IPSetDescriptors, IPSetId, and Name // - // IPSetDescriptors: Contains an array of IPSetDescriptor objects. Each - // IPSetDescriptor object contains Type and Value + // * IPSetDescriptors: Contains an array of IPSetDescriptor objects. Each + // IPSetDescriptor object contains Type and Value IPSet *IPSet `type:"structure"` } @@ -5879,6 +6447,13 @@ func (s GetIPSetOutput) GoString() string { return s.String() } +// SetIPSet sets the IPSet field's value. +func (s *GetIPSetOutput) SetIPSet(v *IPSet) *GetIPSetOutput { + s.IPSet = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetRuleRequest type GetRuleInput struct { _ struct{} `type:"structure"` @@ -5915,15 +6490,23 @@ func (s *GetRuleInput) Validate() error { return nil } +// SetRuleId sets the RuleId field's value. +func (s *GetRuleInput) SetRuleId(v string) *GetRuleInput { + s.RuleId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetRuleResponse type GetRuleOutput struct { _ struct{} `type:"structure"` // Information about the Rule that you specified in the GetRule request. For // more information, see the following topics: // - // Rule: Contains MetricName, Name, an array of Predicate objects, and RuleId + // * Rule: Contains MetricName, Name, an array of Predicate objects, and + // RuleId // - // Predicate: Each Predicate object contains DataId, Negated, and Type + // * Predicate: Each Predicate object contains DataId, Negated, and Type Rule *Rule `type:"structure"` } @@ -5937,6 +6520,13 @@ func (s GetRuleOutput) GoString() string { return s.String() } +// SetRule sets the Rule field's value. +func (s *GetRuleOutput) SetRule(v *Rule) *GetRuleOutput { + s.Rule = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetSampledRequestsRequest type GetSampledRequestsInput struct { _ struct{} `type:"structure"` @@ -5950,19 +6540,19 @@ type GetSampledRequestsInput struct { // RuleId is one of two values: // - // The RuleId of the Rule for which you want GetSampledRequests to return - // a sample of requests. + // * The RuleId of the Rule for which you want GetSampledRequests to return + // a sample of requests. // - // Default_Action, which causes GetSampledRequests to return a sample of - // the requests that didn't match any of the rules in the specified WebACL. + // * Default_Action, which causes GetSampledRequests to return a sample of + // the requests that didn't match any of the rules in the specified WebACL. // // RuleId is a required field RuleId *string `min:"1" type:"string" required:"true"` // The start date and time and the end date and time of the range for which // you want GetSampledRequests to return a sample of requests. Specify the date - // and time in Unix time format (in seconds). You can specify any time range - // in the previous three hours. + // and time in the following format: "2016-09-27T14:50Z". You can specify any + // time range in the previous three hours. // // TimeWindow is a required field TimeWindow *TimeWindow `type:"structure" required:"true"` @@ -6020,11 +6610,36 @@ func (s *GetSampledRequestsInput) Validate() error { return nil } -type GetSampledRequestsOutput struct { - _ struct{} `type:"structure"` +// SetMaxItems sets the MaxItems field's value. +func (s *GetSampledRequestsInput) SetMaxItems(v int64) *GetSampledRequestsInput { + s.MaxItems = &v + return s +} - // The total number of requests from which GetSampledRequests got a sample of - // MaxItems requests. If PopulationSize is less than MaxItems, the sample includes +// SetRuleId sets the RuleId field's value. +func (s *GetSampledRequestsInput) SetRuleId(v string) *GetSampledRequestsInput { + s.RuleId = &v + return s +} + +// SetTimeWindow sets the TimeWindow field's value. +func (s *GetSampledRequestsInput) SetTimeWindow(v *TimeWindow) *GetSampledRequestsInput { + s.TimeWindow = v + return s +} + +// SetWebAclId sets the WebAclId field's value. +func (s *GetSampledRequestsInput) SetWebAclId(v string) *GetSampledRequestsInput { + s.WebAclId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetSampledRequestsResponse +type GetSampledRequestsOutput struct { + _ struct{} `type:"structure"` + + // The total number of requests from which GetSampledRequests got a sample of + // MaxItems requests. If PopulationSize is less than MaxItems, the sample includes // every request that your AWS resource received during the specified time range. PopulationSize *int64 `type:"long"` @@ -6049,6 +6664,25 @@ func (s GetSampledRequestsOutput) GoString() string { return s.String() } +// SetPopulationSize sets the PopulationSize field's value. +func (s *GetSampledRequestsOutput) SetPopulationSize(v int64) *GetSampledRequestsOutput { + s.PopulationSize = &v + return s +} + +// SetSampledRequests sets the SampledRequests field's value. +func (s *GetSampledRequestsOutput) SetSampledRequests(v []*SampledHTTPRequest) *GetSampledRequestsOutput { + s.SampledRequests = v + return s +} + +// SetTimeWindow sets the TimeWindow field's value. +func (s *GetSampledRequestsOutput) SetTimeWindow(v *TimeWindow) *GetSampledRequestsOutput { + s.TimeWindow = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetSizeConstraintSetRequest type GetSizeConstraintSetInput struct { _ struct{} `type:"structure"` @@ -6085,20 +6719,27 @@ func (s *GetSizeConstraintSetInput) Validate() error { return nil } +// SetSizeConstraintSetId sets the SizeConstraintSetId field's value. +func (s *GetSizeConstraintSetInput) SetSizeConstraintSetId(v string) *GetSizeConstraintSetInput { + s.SizeConstraintSetId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetSizeConstraintSetResponse type GetSizeConstraintSetOutput struct { _ struct{} `type:"structure"` // Information about the SizeConstraintSet that you specified in the GetSizeConstraintSet // request. For more information, see the following topics: // - // SizeConstraintSet: Contains SizeConstraintSetId, SizeConstraints, and - // Name + // * SizeConstraintSet: Contains SizeConstraintSetId, SizeConstraints, and + // Name // - // SizeConstraints: Contains an array of SizeConstraint objects. Each SizeConstraint - // object contains FieldToMatch, TextTransformation, ComparisonOperator, and - // Size + // * SizeConstraints: Contains an array of SizeConstraint objects. Each SizeConstraint + // object contains FieldToMatch, TextTransformation, ComparisonOperator, + // and Size // - // FieldToMatch: Contains Data and Type + // * FieldToMatch: Contains Data and Type SizeConstraintSet *SizeConstraintSet `type:"structure"` } @@ -6112,7 +6753,14 @@ func (s GetSizeConstraintSetOutput) GoString() string { return s.String() } +// SetSizeConstraintSet sets the SizeConstraintSet field's value. +func (s *GetSizeConstraintSetOutput) SetSizeConstraintSet(v *SizeConstraintSet) *GetSizeConstraintSetOutput { + s.SizeConstraintSet = v + return s +} + // A request to get a SqlInjectionMatchSet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetSqlInjectionMatchSetRequest type GetSqlInjectionMatchSetInput struct { _ struct{} `type:"structure"` @@ -6149,20 +6797,27 @@ func (s *GetSqlInjectionMatchSetInput) Validate() error { return nil } +// SetSqlInjectionMatchSetId sets the SqlInjectionMatchSetId field's value. +func (s *GetSqlInjectionMatchSetInput) SetSqlInjectionMatchSetId(v string) *GetSqlInjectionMatchSetInput { + s.SqlInjectionMatchSetId = &v + return s +} + // The response to a GetSqlInjectionMatchSet request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetSqlInjectionMatchSetResponse type GetSqlInjectionMatchSetOutput struct { _ struct{} `type:"structure"` // Information about the SqlInjectionMatchSet that you specified in the GetSqlInjectionMatchSet // request. For more information, see the following topics: // - // SqlInjectionMatchSet: Contains Name, SqlInjectionMatchSetId, and an array - // of SqlInjectionMatchTuple objects + // * SqlInjectionMatchSet: Contains Name, SqlInjectionMatchSetId, and an + // array of SqlInjectionMatchTuple objects // - // SqlInjectionMatchTuple: Each SqlInjectionMatchTuple object contains FieldToMatch - // and TextTransformation + // * SqlInjectionMatchTuple: Each SqlInjectionMatchTuple object contains + // FieldToMatch and TextTransformation // - // FieldToMatch: Contains Data and Type + // * FieldToMatch: Contains Data and Type SqlInjectionMatchSet *SqlInjectionMatchSet `type:"structure"` } @@ -6176,6 +6831,13 @@ func (s GetSqlInjectionMatchSetOutput) GoString() string { return s.String() } +// SetSqlInjectionMatchSet sets the SqlInjectionMatchSet field's value. +func (s *GetSqlInjectionMatchSetOutput) SetSqlInjectionMatchSet(v *SqlInjectionMatchSet) *GetSqlInjectionMatchSetOutput { + s.SqlInjectionMatchSet = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetWebACLRequest type GetWebACLInput struct { _ struct{} `type:"structure"` @@ -6212,21 +6874,28 @@ func (s *GetWebACLInput) Validate() error { return nil } +// SetWebACLId sets the WebACLId field's value. +func (s *GetWebACLInput) SetWebACLId(v string) *GetWebACLInput { + s.WebACLId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetWebACLResponse type GetWebACLOutput struct { _ struct{} `type:"structure"` // Information about the WebACL that you specified in the GetWebACL request. // For more information, see the following topics: // - // WebACL: Contains DefaultAction, MetricName, Name, an array of Rule objects, - // and WebACLId + // * WebACL: Contains DefaultAction, MetricName, Name, an array of Rule objects, + // and WebACLId // - // DefaultAction (Data type is WafAction): Contains Type + // * DefaultAction (Data type is WafAction): Contains Type // - // Rules: Contains an array of ActivatedRule objects, which contain Action, - // Priority, and RuleId + // * Rules: Contains an array of ActivatedRule objects, which contain Action, + // Priority, and RuleId // - // Action: Contains Type + // * Action: Contains Type WebACL *WebACL `type:"structure"` } @@ -6240,7 +6909,14 @@ func (s GetWebACLOutput) GoString() string { return s.String() } +// SetWebACL sets the WebACL field's value. +func (s *GetWebACLOutput) SetWebACL(v *WebACL) *GetWebACLOutput { + s.WebACL = v + return s +} + // A request to get an XssMatchSet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetXssMatchSetRequest type GetXssMatchSetInput struct { _ struct{} `type:"structure"` @@ -6277,19 +6953,26 @@ func (s *GetXssMatchSetInput) Validate() error { return nil } +// SetXssMatchSetId sets the XssMatchSetId field's value. +func (s *GetXssMatchSetInput) SetXssMatchSetId(v string) *GetXssMatchSetInput { + s.XssMatchSetId = &v + return s +} + // The response to a GetXssMatchSet request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetXssMatchSetResponse type GetXssMatchSetOutput struct { _ struct{} `type:"structure"` // Information about the XssMatchSet that you specified in the GetXssMatchSet // request. For more information, see the following topics: // - // XssMatchSet: Contains Name, XssMatchSetId, and an array of XssMatchTuple - // objects + // * XssMatchSet: Contains Name, XssMatchSetId, and an array of XssMatchTuple + // objects // - // XssMatchTuple: Each XssMatchTuple object contains FieldToMatch and TextTransformation + // * XssMatchTuple: Each XssMatchTuple object contains FieldToMatch and TextTransformation // - // FieldToMatch: Contains Data and Type + // * FieldToMatch: Contains Data and Type XssMatchSet *XssMatchSet `type:"structure"` } @@ -6303,10 +6986,17 @@ func (s GetXssMatchSetOutput) GoString() string { return s.String() } +// SetXssMatchSet sets the XssMatchSet field's value. +func (s *GetXssMatchSetOutput) SetXssMatchSet(v *XssMatchSet) *GetXssMatchSetOutput { + s.XssMatchSet = v + return s +} + // The response from a GetSampledRequests request includes an HTTPHeader complex // type that appears as Headers in the response syntax. HTTPHeader contains // the names and values of all of the headers that appear in one of the web // requests that were returned by GetSampledRequests. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/HTTPHeader type HTTPHeader struct { _ struct{} `type:"structure"` @@ -6327,9 +7017,22 @@ func (s HTTPHeader) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *HTTPHeader) SetName(v string) *HTTPHeader { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *HTTPHeader) SetValue(v string) *HTTPHeader { + s.Value = &v + return s +} + // The response from a GetSampledRequests request includes an HTTPRequest complex // type that appears as Request in the response syntax. HTTPRequest contains // information about one of the web requests that were returned by GetSampledRequests. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/HTTPRequest type HTTPRequest struct { _ struct{} `type:"structure"` @@ -6337,11 +7040,11 @@ type HTTPRequest struct { // with a CloudFront distribution, this is the value of one of the following // fields in CloudFront access logs: // - // c-ip, if the viewer did not use an HTTP proxy or a load balancer to send - // the request + // * c-ip, if the viewer did not use an HTTP proxy or a load balancer to + // send the request // - // x-forwarded-for, if the viewer did use an HTTP proxy or a load balancer - // to send the request + // * x-forwarded-for, if the viewer did use an HTTP proxy or a load balancer + // to send the request ClientIP *string `type:"string"` // The two-letter country code for the country that the request originated from. @@ -6374,6 +7077,42 @@ func (s HTTPRequest) GoString() string { return s.String() } +// SetClientIP sets the ClientIP field's value. +func (s *HTTPRequest) SetClientIP(v string) *HTTPRequest { + s.ClientIP = &v + return s +} + +// SetCountry sets the Country field's value. +func (s *HTTPRequest) SetCountry(v string) *HTTPRequest { + s.Country = &v + return s +} + +// SetHTTPVersion sets the HTTPVersion field's value. +func (s *HTTPRequest) SetHTTPVersion(v string) *HTTPRequest { + s.HTTPVersion = &v + return s +} + +// SetHeaders sets the Headers field's value. +func (s *HTTPRequest) SetHeaders(v []*HTTPHeader) *HTTPRequest { + s.Headers = v + return s +} + +// SetMethod sets the Method field's value. +func (s *HTTPRequest) SetMethod(v string) *HTTPRequest { + s.Method = &v + return s +} + +// SetURI sets the URI field's value. +func (s *HTTPRequest) SetURI(v string) *HTTPRequest { + s.URI = &v + return s +} + // Contains one or more IP addresses or blocks of IP addresses specified in // Classless Inter-Domain Routing (CIDR) notation. AWS WAF supports /8, /16, // /24, and /32 IP address ranges for IPv4, and /24, /32, /48, /56, /64 and @@ -6384,6 +7123,7 @@ func (s HTTPRequest) GoString() string { // you can specify a /128, /64, /56, /48, /32, /24, /16, or /8 CIDR. For more // information about CIDR notation, see the Wikipedia entry Classless Inter-Domain // Routing (https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/IPSet type IPSet struct { _ struct{} `type:"structure"` @@ -6392,11 +7132,11 @@ type IPSet struct { // distribution, this is the value of one of the following fields in CloudFront // access logs: // - // c-ip, if the viewer did not use an HTTP proxy or a load balancer to send - // the request + // * c-ip, if the viewer did not use an HTTP proxy or a load balancer to + // send the request // - // x-forwarded-for, if the viewer did use an HTTP proxy or a load balancer - // to send the request + // * x-forwarded-for, if the viewer did use an HTTP proxy or a load balancer + // to send the request // // IPSetDescriptors is a required field IPSetDescriptors []*IPSetDescriptor `type:"list" required:"true"` @@ -6406,7 +7146,7 @@ type IPSet struct { // Rule or delete one from a Rule (see UpdateRule), and delete an IPSet from // AWS WAF (see DeleteIPSet). // - // IPSetId is returned by CreateIPSet and by ListIPSets. + // IPSetId is returned by CreateIPSet and by ListIPSets. // // IPSetId is a required field IPSetId *string `min:"1" type:"string" required:"true"` @@ -6426,8 +7166,27 @@ func (s IPSet) GoString() string { return s.String() } +// SetIPSetDescriptors sets the IPSetDescriptors field's value. +func (s *IPSet) SetIPSetDescriptors(v []*IPSetDescriptor) *IPSet { + s.IPSetDescriptors = v + return s +} + +// SetIPSetId sets the IPSetId field's value. +func (s *IPSet) SetIPSetId(v string) *IPSet { + s.IPSetId = &v + return s +} + +// SetName sets the Name field's value. +func (s *IPSet) SetName(v string) *IPSet { + s.Name = &v + return s +} + // Specifies the IP address type (IPV4 or IPV6) and the IP address range (in // CIDR format) that web requests originate from. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/IPSetDescriptor type IPSetDescriptor struct { _ struct{} `type:"structure"` @@ -6438,23 +7197,23 @@ type IPSetDescriptor struct { // Specify an IPv4 address by using CIDR notation. For example: // - // To configure AWS WAF to allow, block, or count requests that originated - // from the IP address 192.0.2.44, specify 192.0.2.44/32. + // * To configure AWS WAF to allow, block, or count requests that originated + // from the IP address 192.0.2.44, specify 192.0.2.44/32. // - // To configure AWS WAF to allow, block, or count requests that originated - // from IP addresses from 192.0.2.0 to 192.0.2.255, specify 192.0.2.0/24. + // * To configure AWS WAF to allow, block, or count requests that originated + // from IP addresses from 192.0.2.0 to 192.0.2.255, specify 192.0.2.0/24. // - // For more information about CIDR notation, see the Wikipedia entry Classless + // For more information about CIDR notation, see the Wikipedia entry Classless // Inter-Domain Routing (https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). // // Specify an IPv6 address by using CIDR notation. For example: // - // To configure AWS WAF to allow, block, or count requests that originated - // from the IP address 1111:0000:0000:0000:0000:0000:0000:0111, specify 1111:0000:0000:0000:0000:0000:0000:0111/128. + // * To configure AWS WAF to allow, block, or count requests that originated + // from the IP address 1111:0000:0000:0000:0000:0000:0000:0111, specify 1111:0000:0000:0000:0000:0000:0000:0111/128. // - // To configure AWS WAF to allow, block, or count requests that originated - // from IP addresses 1111:0000:0000:0000:0000:0000:0000:0000 to 1111:0000:0000:0000:ffff:ffff:ffff:ffff, - // specify 1111:0000:0000:0000:0000:0000:0000:0000/64. + // * To configure AWS WAF to allow, block, or count requests that originated + // from IP addresses 1111:0000:0000:0000:0000:0000:0000:0000 to 1111:0000:0000:0000:ffff:ffff:ffff:ffff, + // specify 1111:0000:0000:0000:0000:0000:0000:0000/64. // // Value is a required field Value *string `type:"string" required:"true"` @@ -6486,7 +7245,20 @@ func (s *IPSetDescriptor) Validate() error { return nil } +// SetType sets the Type field's value. +func (s *IPSetDescriptor) SetType(v string) *IPSetDescriptor { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *IPSetDescriptor) SetValue(v string) *IPSetDescriptor { + s.Value = &v + return s +} + // Contains the identifier and the name of the IPSet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/IPSetSummary type IPSetSummary struct { _ struct{} `type:"structure"` @@ -6513,7 +7285,20 @@ func (s IPSetSummary) GoString() string { return s.String() } +// SetIPSetId sets the IPSetId field's value. +func (s *IPSetSummary) SetIPSetId(v string) *IPSetSummary { + s.IPSetId = &v + return s +} + +// SetName sets the Name field's value. +func (s *IPSetSummary) SetName(v string) *IPSetSummary { + s.Name = &v + return s +} + // Specifies the type of update to perform to an IPSet with UpdateIPSet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/IPSetUpdate type IPSetUpdate struct { _ struct{} `type:"structure"` @@ -6560,6 +7345,19 @@ func (s *IPSetUpdate) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *IPSetUpdate) SetAction(v string) *IPSetUpdate { + s.Action = &v + return s +} + +// SetIPSetDescriptor sets the IPSetDescriptor field's value. +func (s *IPSetUpdate) SetIPSetDescriptor(v *IPSetDescriptor) *IPSetUpdate { + s.IPSetDescriptor = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListByteMatchSetsRequest type ListByteMatchSetsInput struct { _ struct{} `type:"structure"` @@ -6600,6 +7398,19 @@ func (s *ListByteMatchSetsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListByteMatchSetsInput) SetLimit(v int64) *ListByteMatchSetsInput { + s.Limit = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListByteMatchSetsInput) SetNextMarker(v string) *ListByteMatchSetsInput { + s.NextMarker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListByteMatchSetsResponse type ListByteMatchSetsOutput struct { _ struct{} `type:"structure"` @@ -6624,6 +7435,19 @@ func (s ListByteMatchSetsOutput) GoString() string { return s.String() } +// SetByteMatchSets sets the ByteMatchSets field's value. +func (s *ListByteMatchSetsOutput) SetByteMatchSets(v []*ByteMatchSetSummary) *ListByteMatchSetsOutput { + s.ByteMatchSets = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListByteMatchSetsOutput) SetNextMarker(v string) *ListByteMatchSetsOutput { + s.NextMarker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListIPSetsRequest type ListIPSetsInput struct { _ struct{} `type:"structure"` @@ -6664,6 +7488,19 @@ func (s *ListIPSetsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListIPSetsInput) SetLimit(v int64) *ListIPSetsInput { + s.Limit = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListIPSetsInput) SetNextMarker(v string) *ListIPSetsInput { + s.NextMarker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListIPSetsResponse type ListIPSetsOutput struct { _ struct{} `type:"structure"` @@ -6687,6 +7524,19 @@ func (s ListIPSetsOutput) GoString() string { return s.String() } +// SetIPSets sets the IPSets field's value. +func (s *ListIPSetsOutput) SetIPSets(v []*IPSetSummary) *ListIPSetsOutput { + s.IPSets = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListIPSetsOutput) SetNextMarker(v string) *ListIPSetsOutput { + s.NextMarker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListRulesRequest type ListRulesInput struct { _ struct{} `type:"structure"` @@ -6726,6 +7576,19 @@ func (s *ListRulesInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListRulesInput) SetLimit(v int64) *ListRulesInput { + s.Limit = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListRulesInput) SetNextMarker(v string) *ListRulesInput { + s.NextMarker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListRulesResponse type ListRulesOutput struct { _ struct{} `type:"structure"` @@ -6749,6 +7612,19 @@ func (s ListRulesOutput) GoString() string { return s.String() } +// SetNextMarker sets the NextMarker field's value. +func (s *ListRulesOutput) SetNextMarker(v string) *ListRulesOutput { + s.NextMarker = &v + return s +} + +// SetRules sets the Rules field's value. +func (s *ListRulesOutput) SetRules(v []*RuleSummary) *ListRulesOutput { + s.Rules = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListSizeConstraintSetsRequest type ListSizeConstraintSetsInput struct { _ struct{} `type:"structure"` @@ -6789,6 +7665,19 @@ func (s *ListSizeConstraintSetsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListSizeConstraintSetsInput) SetLimit(v int64) *ListSizeConstraintSetsInput { + s.Limit = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListSizeConstraintSetsInput) SetNextMarker(v string) *ListSizeConstraintSetsInput { + s.NextMarker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListSizeConstraintSetsResponse type ListSizeConstraintSetsOutput struct { _ struct{} `type:"structure"` @@ -6813,8 +7702,21 @@ func (s ListSizeConstraintSetsOutput) GoString() string { return s.String() } +// SetNextMarker sets the NextMarker field's value. +func (s *ListSizeConstraintSetsOutput) SetNextMarker(v string) *ListSizeConstraintSetsOutput { + s.NextMarker = &v + return s +} + +// SetSizeConstraintSets sets the SizeConstraintSets field's value. +func (s *ListSizeConstraintSetsOutput) SetSizeConstraintSets(v []*SizeConstraintSetSummary) *ListSizeConstraintSetsOutput { + s.SizeConstraintSets = v + return s +} + // A request to list the SqlInjectionMatchSet objects created by the current // AWS account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListSqlInjectionMatchSetsRequest type ListSqlInjectionMatchSetsInput struct { _ struct{} `type:"structure"` @@ -6855,7 +7757,20 @@ func (s *ListSqlInjectionMatchSetsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListSqlInjectionMatchSetsInput) SetLimit(v int64) *ListSqlInjectionMatchSetsInput { + s.Limit = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListSqlInjectionMatchSetsInput) SetNextMarker(v string) *ListSqlInjectionMatchSetsInput { + s.NextMarker = &v + return s +} + // The response to a ListSqlInjectionMatchSets request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListSqlInjectionMatchSetsResponse type ListSqlInjectionMatchSetsOutput struct { _ struct{} `type:"structure"` @@ -6880,6 +7795,19 @@ func (s ListSqlInjectionMatchSetsOutput) GoString() string { return s.String() } +// SetNextMarker sets the NextMarker field's value. +func (s *ListSqlInjectionMatchSetsOutput) SetNextMarker(v string) *ListSqlInjectionMatchSetsOutput { + s.NextMarker = &v + return s +} + +// SetSqlInjectionMatchSets sets the SqlInjectionMatchSets field's value. +func (s *ListSqlInjectionMatchSetsOutput) SetSqlInjectionMatchSets(v []*SqlInjectionMatchSetSummary) *ListSqlInjectionMatchSetsOutput { + s.SqlInjectionMatchSets = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListWebACLsRequest type ListWebACLsInput struct { _ struct{} `type:"structure"` @@ -6921,6 +7849,19 @@ func (s *ListWebACLsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListWebACLsInput) SetLimit(v int64) *ListWebACLsInput { + s.Limit = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListWebACLsInput) SetNextMarker(v string) *ListWebACLsInput { + s.NextMarker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListWebACLsResponse type ListWebACLsOutput struct { _ struct{} `type:"structure"` @@ -6944,7 +7885,20 @@ func (s ListWebACLsOutput) GoString() string { return s.String() } +// SetNextMarker sets the NextMarker field's value. +func (s *ListWebACLsOutput) SetNextMarker(v string) *ListWebACLsOutput { + s.NextMarker = &v + return s +} + +// SetWebACLs sets the WebACLs field's value. +func (s *ListWebACLsOutput) SetWebACLs(v []*WebACLSummary) *ListWebACLsOutput { + s.WebACLs = v + return s +} + // A request to list the XssMatchSet objects created by the current AWS account. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListXssMatchSetsRequest type ListXssMatchSetsInput struct { _ struct{} `type:"structure"` @@ -6985,7 +7939,20 @@ func (s *ListXssMatchSetsInput) Validate() error { return nil } +// SetLimit sets the Limit field's value. +func (s *ListXssMatchSetsInput) SetLimit(v int64) *ListXssMatchSetsInput { + s.Limit = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListXssMatchSetsInput) SetNextMarker(v string) *ListXssMatchSetsInput { + s.NextMarker = &v + return s +} + // The response to a ListXssMatchSets request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListXssMatchSetsResponse type ListXssMatchSetsOutput struct { _ struct{} `type:"structure"` @@ -7010,10 +7977,23 @@ func (s ListXssMatchSetsOutput) GoString() string { return s.String() } +// SetNextMarker sets the NextMarker field's value. +func (s *ListXssMatchSetsOutput) SetNextMarker(v string) *ListXssMatchSetsOutput { + s.NextMarker = &v + return s +} + +// SetXssMatchSets sets the XssMatchSets field's value. +func (s *ListXssMatchSetsOutput) SetXssMatchSets(v []*XssMatchSetSummary) *ListXssMatchSetsOutput { + s.XssMatchSets = v + return s +} + // Specifies the ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, and // SizeConstraintSet objects that you want to add to a Rule and, for each object, // indicates whether you want to negate the settings, for example, requests // that do NOT originate from the IP address 192.0.2.44. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/Predicate type Predicate struct { _ struct{} `type:"structure"` @@ -7033,7 +8013,7 @@ type Predicate struct { // on the negation of the settings in the ByteMatchSet, IPSet, SqlInjectionMatchSet, // XssMatchSet, or SizeConstraintSet. For example, if an IPSet includes the // IP address 192.0.2.44, AWS WAF will allow, block, or count requests based - // on all IP addresses except 192.0.2.44. + // on all IP addresses except192.0.2.44. // // Negated is a required field Negated *bool `type:"boolean" required:"true"` @@ -7076,21 +8056,43 @@ func (s *Predicate) Validate() error { return nil } +// SetDataId sets the DataId field's value. +func (s *Predicate) SetDataId(v string) *Predicate { + s.DataId = &v + return s +} + +// SetNegated sets the Negated field's value. +func (s *Predicate) SetNegated(v bool) *Predicate { + s.Negated = &v + return s +} + +// SetType sets the Type field's value. +func (s *Predicate) SetType(v string) *Predicate { + s.Type = &v + return s +} + // A combination of ByteMatchSet, IPSet, and/or SqlInjectionMatchSet objects // that identify the web requests that you want to allow, block, or count. For // example, you might create a Rule that includes the following predicates: // -// An IPSet that causes AWS WAF to search for web requests that originate -// from the IP address 192.0.2.44 +// * An IPSet that causes AWS WAF to search for web requests that originate +// from the IP address 192.0.2.44 // -// A ByteMatchSet that causes AWS WAF to search for web requests for which -// the value of the User-Agent header is BadBot. +// * A ByteMatchSet that causes AWS WAF to search for web requests for which +// the value of the User-Agent header is BadBot. // -// To match the settings in this Rule, a request must originate from 192.0.2.44 +// To match the settings in this Rule, a request must originate from 192.0.2.44 // AND include a User-Agent header for which the value is BadBot. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/Rule type Rule struct { _ struct{} `type:"structure"` + // A friendly name or description for the metrics for this Rule. The name can + // contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain + // whitespace. You can't change MetricName after you create the Rule. MetricName *string `type:"string"` // The friendly name or description for the Rule. You can't change the name @@ -7108,7 +8110,7 @@ type Rule struct { // a WebACL or delete a one from a WebACL (see UpdateWebACL), or delete a Rule // from AWS WAF (see DeleteRule). // - // RuleId is returned by CreateRule and by ListRules. + // RuleId is returned by CreateRule and by ListRules. // // RuleId is a required field RuleId *string `min:"1" type:"string" required:"true"` @@ -7124,7 +8126,32 @@ func (s Rule) GoString() string { return s.String() } +// SetMetricName sets the MetricName field's value. +func (s *Rule) SetMetricName(v string) *Rule { + s.MetricName = &v + return s +} + +// SetName sets the Name field's value. +func (s *Rule) SetName(v string) *Rule { + s.Name = &v + return s +} + +// SetPredicates sets the Predicates field's value. +func (s *Rule) SetPredicates(v []*Predicate) *Rule { + s.Predicates = v + return s +} + +// SetRuleId sets the RuleId field's value. +func (s *Rule) SetRuleId(v string) *Rule { + s.RuleId = &v + return s +} + // Contains the identifier and the friendly name or description of the Rule. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/RuleSummary type RuleSummary struct { _ struct{} `type:"structure"` @@ -7139,7 +8166,7 @@ type RuleSummary struct { // a WebACL or delete one from a WebACL (see UpdateWebACL), or delete a Rule // from AWS WAF (see DeleteRule). // - // RuleId is returned by CreateRule and by ListRules. + // RuleId is returned by CreateRule and by ListRules. // // RuleId is a required field RuleId *string `min:"1" type:"string" required:"true"` @@ -7155,8 +8182,21 @@ func (s RuleSummary) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *RuleSummary) SetName(v string) *RuleSummary { + s.Name = &v + return s +} + +// SetRuleId sets the RuleId field's value. +func (s *RuleSummary) SetRuleId(v string) *RuleSummary { + s.RuleId = &v + return s +} + // Specifies a Predicate (such as an IPSet) and indicates whether you want to // add it to a Rule or delete it from a Rule. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/RuleUpdate type RuleUpdate struct { _ struct{} `type:"structure"` @@ -7203,10 +8243,23 @@ func (s *RuleUpdate) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *RuleUpdate) SetAction(v string) *RuleUpdate { + s.Action = &v + return s +} + +// SetPredicate sets the Predicate field's value. +func (s *RuleUpdate) SetPredicate(v *Predicate) *RuleUpdate { + s.Predicate = v + return s +} + // The response from a GetSampledRequests request includes a SampledHTTPRequests // complex type that appears as SampledRequests in the response syntax. SampledHTTPRequests // contains one SampledHTTPRequest object for each web request that is returned // by GetSampledRequests. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/SampledHTTPRequest type SampledHTTPRequest struct { _ struct{} `type:"structure"` @@ -7241,42 +8294,67 @@ func (s SampledHTTPRequest) GoString() string { return s.String() } +// SetAction sets the Action field's value. +func (s *SampledHTTPRequest) SetAction(v string) *SampledHTTPRequest { + s.Action = &v + return s +} + +// SetRequest sets the Request field's value. +func (s *SampledHTTPRequest) SetRequest(v *HTTPRequest) *SampledHTTPRequest { + s.Request = v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *SampledHTTPRequest) SetTimestamp(v time.Time) *SampledHTTPRequest { + s.Timestamp = &v + return s +} + +// SetWeight sets the Weight field's value. +func (s *SampledHTTPRequest) SetWeight(v int64) *SampledHTTPRequest { + s.Weight = &v + return s +} + // Specifies a constraint on the size of a part of the web request. AWS WAF // uses the Size, ComparisonOperator, and FieldToMatch to build an expression -// in the form of "Size ComparisonOperator size in bytes of FieldToMatch". If +// in the form of "SizeComparisonOperator size in bytes of FieldToMatch". If // that expression is true, the SizeConstraint is considered to match. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/SizeConstraint type SizeConstraint struct { _ struct{} `type:"structure"` // The type of comparison you want AWS WAF to perform. AWS WAF uses this in // combination with the provided Size and FieldToMatch to build an expression - // in the form of "Size ComparisonOperator size in bytes of FieldToMatch". If + // in the form of "SizeComparisonOperator size in bytes of FieldToMatch". If // that expression is true, the SizeConstraint is considered to match. // - // EQ: Used to test if the Size is equal to the size of the FieldToMatch + // EQ: Used to test if the Size is equal to the size of the FieldToMatch // - // NE: Used to test if the Size is not equal to the size of the FieldToMatch + // NE: Used to test if the Size is not equal to the size of the FieldToMatch // - // LE: Used to test if the Size is less than or equal to the size of the FieldToMatch + // LE: Used to test if the Size is less than or equal to the size of the FieldToMatch // - // LT: Used to test if the Size is strictly less than the size of the FieldToMatch + // LT: Used to test if the Size is strictly less than the size of the FieldToMatch // - // GE: Used to test if the Size is greater than or equal to the size of the + // GE: Used to test if the Size is greater than or equal to the size of the // FieldToMatch // - // GT: Used to test if the Size is strictly greater than the size of the FieldToMatch + // GT: Used to test if the Size is strictly greater than the size of the FieldToMatch // // ComparisonOperator is a required field ComparisonOperator *string `type:"string" required:"true" enum:"ComparisonOperator"` - // Specifies where in a web request to look for TargetString. + // Specifies where in a web request to look for the size constraint. // // FieldToMatch is a required field FieldToMatch *FieldToMatch `type:"structure" required:"true"` // The size in bytes that you want AWS WAF to compare against the size of the // specified FieldToMatch. AWS WAF uses this in combination with ComparisonOperator - // and FieldToMatch to build an expression in the form of "Size ComparisonOperator + // and FieldToMatch to build an expression in the form of "SizeComparisonOperator // size in bytes of FieldToMatch". If that expression is true, the SizeConstraint // is considered to match. // @@ -7297,69 +8375,69 @@ type SizeConstraint struct { // for TextTransformation because CloudFront forwards only the first 8192 bytes // for inspection. // - // NONE + // NONE // // Specify NONE if you don't want to perform any text transformations. // - // CMD_LINE + // CMD_LINE // // When you're concerned that attackers are injecting an operating system command // line command and using unusual formatting to disguise some or all of the // command, use this option to perform the following transformations: // - // Delete the following characters: \ " ' ^ + // * Delete the following characters: \ " ' ^ // - // Delete spaces before the following characters: / ( + // * Delete spaces before the following characters: / ( // - // Replace the following characters with a space: , ; + // * Replace the following characters with a space: , ; // - // Replace multiple spaces with one space + // * Replace multiple spaces with one space // - // Convert uppercase letters (A-Z) to lowercase (a-z) + // * Convert uppercase letters (A-Z) to lowercase (a-z) // - // COMPRESS_WHITE_SPACE + // COMPRESS_WHITE_SPACE // // Use this option to replace the following characters with a space character // (decimal 32): // - // \f, formfeed, decimal 12 + // * \f, formfeed, decimal 12 // - // \t, tab, decimal 9 + // * \t, tab, decimal 9 // - // \n, newline, decimal 10 + // * \n, newline, decimal 10 // - // \r, carriage return, decimal 13 + // * \r, carriage return, decimal 13 // - // \v, vertical tab, decimal 11 + // * \v, vertical tab, decimal 11 // - // non-breaking space, decimal 160 + // * non-breaking space, decimal 160 // - // COMPRESS_WHITE_SPACE also replaces multiple spaces with one space. + // COMPRESS_WHITE_SPACE also replaces multiple spaces with one space. // - // HTML_ENTITY_DECODE + // HTML_ENTITY_DECODE // // Use this option to replace HTML-encoded characters with unencoded characters. // HTML_ENTITY_DECODE performs the following operations: // - // Replaces (ampersand)quot; with " + // * Replaces (ampersand)quot; with " // - // Replaces (ampersand)nbsp; with a non-breaking space, decimal 160 + // * Replaces (ampersand)nbsp; with a non-breaking space, decimal 160 // - // Replaces (ampersand)lt; with a "less than" symbol + // * Replaces (ampersand)lt; with a "less than" symbol // - // Replaces (ampersand)gt; with > + // * Replaces (ampersand)gt; with > // - // Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, - // with the corresponding characters + // * Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, + // with the corresponding characters // - // Replaces characters that are represented in decimal format, (ampersand)#nnnn;, - // with the corresponding characters + // * Replaces characters that are represented in decimal format, (ampersand)#nnnn;, + // with the corresponding characters // - // LOWERCASE + // LOWERCASE // // Use this option to convert uppercase letters (A-Z) to lowercase (a-z). // - // URL_DECODE + // URL_DECODE // // Use this option to decode a URL-encoded value. // @@ -7404,10 +8482,35 @@ func (s *SizeConstraint) Validate() error { return nil } +// SetComparisonOperator sets the ComparisonOperator field's value. +func (s *SizeConstraint) SetComparisonOperator(v string) *SizeConstraint { + s.ComparisonOperator = &v + return s +} + +// SetFieldToMatch sets the FieldToMatch field's value. +func (s *SizeConstraint) SetFieldToMatch(v *FieldToMatch) *SizeConstraint { + s.FieldToMatch = v + return s +} + +// SetSize sets the Size field's value. +func (s *SizeConstraint) SetSize(v int64) *SizeConstraint { + s.Size = &v + return s +} + +// SetTextTransformation sets the TextTransformation field's value. +func (s *SizeConstraint) SetTextTransformation(v string) *SizeConstraint { + s.TextTransformation = &v + return s +} + // A complex type that contains SizeConstraint objects, which specify the parts // of web requests that you want AWS WAF to inspect the size of. If a SizeConstraintSet // contains more than one SizeConstraint object, a request only needs to match // one constraint to be considered a match. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/SizeConstraintSet type SizeConstraintSet struct { _ struct{} `type:"structure"` @@ -7420,7 +8523,7 @@ type SizeConstraintSet struct { // into a Rule or delete one from a Rule (see UpdateRule), and delete a SizeConstraintSet // from AWS WAF (see DeleteSizeConstraintSet). // - // SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets. + // SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets. // // SizeConstraintSetId is a required field SizeConstraintSetId *string `min:"1" type:"string" required:"true"` @@ -7441,7 +8544,26 @@ func (s SizeConstraintSet) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *SizeConstraintSet) SetName(v string) *SizeConstraintSet { + s.Name = &v + return s +} + +// SetSizeConstraintSetId sets the SizeConstraintSetId field's value. +func (s *SizeConstraintSet) SetSizeConstraintSetId(v string) *SizeConstraintSet { + s.SizeConstraintSetId = &v + return s +} + +// SetSizeConstraints sets the SizeConstraints field's value. +func (s *SizeConstraintSet) SetSizeConstraints(v []*SizeConstraint) *SizeConstraintSet { + s.SizeConstraints = v + return s +} + // The Id and Name of a SizeConstraintSet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/SizeConstraintSetSummary type SizeConstraintSetSummary struct { _ struct{} `type:"structure"` @@ -7456,7 +8578,7 @@ type SizeConstraintSetSummary struct { // into a Rule or delete one from a Rule (see UpdateRule), and delete a SizeConstraintSet // from AWS WAF (see DeleteSizeConstraintSet). // - // SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets. + // SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets. // // SizeConstraintSetId is a required field SizeConstraintSetId *string `min:"1" type:"string" required:"true"` @@ -7472,9 +8594,22 @@ func (s SizeConstraintSetSummary) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *SizeConstraintSetSummary) SetName(v string) *SizeConstraintSetSummary { + s.Name = &v + return s +} + +// SetSizeConstraintSetId sets the SizeConstraintSetId field's value. +func (s *SizeConstraintSetSummary) SetSizeConstraintSetId(v string) *SizeConstraintSetSummary { + s.SizeConstraintSetId = &v + return s +} + // Specifies the part of a web request that you want to inspect the size of // and indicates whether you want to add the specification to a SizeConstraintSet // or delete it from a SizeConstraintSet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/SizeConstraintSetUpdate type SizeConstraintSetUpdate struct { _ struct{} `type:"structure"` @@ -7486,7 +8621,7 @@ type SizeConstraintSetUpdate struct { // Specifies a constraint on the size of a part of the web request. AWS WAF // uses the Size, ComparisonOperator, and FieldToMatch to build an expression - // in the form of "Size ComparisonOperator size in bytes of FieldToMatch". If + // in the form of "SizeComparisonOperator size in bytes of FieldToMatch". If // that expression is true, the SizeConstraint is considered to match. // // SizeConstraint is a required field @@ -7524,12 +8659,25 @@ func (s *SizeConstraintSetUpdate) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *SizeConstraintSetUpdate) SetAction(v string) *SizeConstraintSetUpdate { + s.Action = &v + return s +} + +// SetSizeConstraint sets the SizeConstraint field's value. +func (s *SizeConstraintSetUpdate) SetSizeConstraint(v *SizeConstraint) *SizeConstraintSetUpdate { + s.SizeConstraint = v + return s +} + // A complex type that contains SqlInjectionMatchTuple objects, which specify // the parts of web requests that you want AWS WAF to inspect for snippets of // malicious SQL code and, if you want AWS WAF to inspect a header, the name // of the header. If a SqlInjectionMatchSet contains more than one SqlInjectionMatchTuple // object, a request needs to include snippets of SQL code in only one of the // specified parts of the request to be considered a match. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/SqlInjectionMatchSet type SqlInjectionMatchSet struct { _ struct{} `type:"structure"` @@ -7542,8 +8690,7 @@ type SqlInjectionMatchSet struct { // SqlInjectionMatchSet into a Rule or delete one from a Rule (see UpdateRule), // and delete a SqlInjectionMatchSet from AWS WAF (see DeleteSqlInjectionMatchSet). // - // SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by - // ListSqlInjectionMatchSets. + // SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets. // // SqlInjectionMatchSetId is a required field SqlInjectionMatchSetId *string `min:"1" type:"string" required:"true"` @@ -7565,7 +8712,26 @@ func (s SqlInjectionMatchSet) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *SqlInjectionMatchSet) SetName(v string) *SqlInjectionMatchSet { + s.Name = &v + return s +} + +// SetSqlInjectionMatchSetId sets the SqlInjectionMatchSetId field's value. +func (s *SqlInjectionMatchSet) SetSqlInjectionMatchSetId(v string) *SqlInjectionMatchSet { + s.SqlInjectionMatchSetId = &v + return s +} + +// SetSqlInjectionMatchTuples sets the SqlInjectionMatchTuples field's value. +func (s *SqlInjectionMatchSet) SetSqlInjectionMatchTuples(v []*SqlInjectionMatchTuple) *SqlInjectionMatchSet { + s.SqlInjectionMatchTuples = v + return s +} + // The Id and Name of a SqlInjectionMatchSet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/SqlInjectionMatchSetSummary type SqlInjectionMatchSetSummary struct { _ struct{} `type:"structure"` @@ -7580,8 +8746,7 @@ type SqlInjectionMatchSetSummary struct { // SqlInjectionMatchSet into a Rule or delete one from a Rule (see UpdateRule), // and delete a SqlInjectionMatchSet from AWS WAF (see DeleteSqlInjectionMatchSet). // - // SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by - // ListSqlInjectionMatchSets. + // SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets. // // SqlInjectionMatchSetId is a required field SqlInjectionMatchSetId *string `min:"1" type:"string" required:"true"` @@ -7597,9 +8762,22 @@ func (s SqlInjectionMatchSetSummary) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *SqlInjectionMatchSetSummary) SetName(v string) *SqlInjectionMatchSetSummary { + s.Name = &v + return s +} + +// SetSqlInjectionMatchSetId sets the SqlInjectionMatchSetId field's value. +func (s *SqlInjectionMatchSetSummary) SetSqlInjectionMatchSetId(v string) *SqlInjectionMatchSetSummary { + s.SqlInjectionMatchSetId = &v + return s +} + // Specifies the part of a web request that you want to inspect for snippets // of malicious SQL code and indicates whether you want to add the specification // to a SqlInjectionMatchSet or delete it from a SqlInjectionMatchSet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/SqlInjectionMatchSetUpdate type SqlInjectionMatchSetUpdate struct { _ struct{} `type:"structure"` @@ -7648,13 +8826,26 @@ func (s *SqlInjectionMatchSetUpdate) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *SqlInjectionMatchSetUpdate) SetAction(v string) *SqlInjectionMatchSetUpdate { + s.Action = &v + return s +} + +// SetSqlInjectionMatchTuple sets the SqlInjectionMatchTuple field's value. +func (s *SqlInjectionMatchSetUpdate) SetSqlInjectionMatchTuple(v *SqlInjectionMatchTuple) *SqlInjectionMatchSetUpdate { + s.SqlInjectionMatchTuple = v + return s +} + // Specifies the part of a web request that you want AWS WAF to inspect for // snippets of malicious SQL code and, if you want AWS WAF to inspect a header, // the name of the header. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/SqlInjectionMatchTuple type SqlInjectionMatchTuple struct { _ struct{} `type:"structure"` - // Specifies where in a web request to look for TargetString. + // Specifies where in a web request to look for snippets of malicious SQL code. // // FieldToMatch is a required field FieldToMatch *FieldToMatch `type:"structure" required:"true"` @@ -7664,69 +8855,69 @@ type SqlInjectionMatchTuple struct { // AWS WAF performs the transformation on FieldToMatch before inspecting a request // for a match. // - // CMD_LINE + // CMD_LINE // // When you're concerned that attackers are injecting an operating system commandline // command and using unusual formatting to disguise some or all of the command, // use this option to perform the following transformations: // - // Delete the following characters: \ " ' ^ + // * Delete the following characters: \ " ' ^ // - // Delete spaces before the following characters: / ( + // * Delete spaces before the following characters: / ( // - // Replace the following characters with a space: , ; + // * Replace the following characters with a space: , ; // - // Replace multiple spaces with one space + // * Replace multiple spaces with one space // - // Convert uppercase letters (A-Z) to lowercase (a-z) + // * Convert uppercase letters (A-Z) to lowercase (a-z) // - // COMPRESS_WHITE_SPACE + // COMPRESS_WHITE_SPACE // // Use this option to replace the following characters with a space character // (decimal 32): // - // \f, formfeed, decimal 12 + // * \f, formfeed, decimal 12 // - // \t, tab, decimal 9 + // * \t, tab, decimal 9 // - // \n, newline, decimal 10 + // * \n, newline, decimal 10 // - // \r, carriage return, decimal 13 + // * \r, carriage return, decimal 13 // - // \v, vertical tab, decimal 11 + // * \v, vertical tab, decimal 11 // - // non-breaking space, decimal 160 + // * non-breaking space, decimal 160 // - // COMPRESS_WHITE_SPACE also replaces multiple spaces with one space. + // COMPRESS_WHITE_SPACE also replaces multiple spaces with one space. // - // HTML_ENTITY_DECODE + // HTML_ENTITY_DECODE // // Use this option to replace HTML-encoded characters with unencoded characters. // HTML_ENTITY_DECODE performs the following operations: // - // Replaces (ampersand)quot; with " + // * Replaces (ampersand)quot; with " // - // Replaces (ampersand)nbsp; with a non-breaking space, decimal 160 + // * Replaces (ampersand)nbsp; with a non-breaking space, decimal 160 // - // Replaces (ampersand)lt; with a "less than" symbol + // * Replaces (ampersand)lt; with a "less than" symbol // - // Replaces (ampersand)gt; with > + // * Replaces (ampersand)gt; with > // - // Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, - // with the corresponding characters + // * Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, + // with the corresponding characters // - // Replaces characters that are represented in decimal format, (ampersand)#nnnn;, - // with the corresponding characters + // * Replaces characters that are represented in decimal format, (ampersand)#nnnn;, + // with the corresponding characters // - // LOWERCASE + // LOWERCASE // // Use this option to convert uppercase letters (A-Z) to lowercase (a-z). // - // URL_DECODE + // URL_DECODE // // Use this option to decode a URL-encoded value. // - // NONE + // NONE // // Specify NONE if you don't want to perform any text transformations. // @@ -7765,6 +8956,18 @@ func (s *SqlInjectionMatchTuple) Validate() error { return nil } +// SetFieldToMatch sets the FieldToMatch field's value. +func (s *SqlInjectionMatchTuple) SetFieldToMatch(v *FieldToMatch) *SqlInjectionMatchTuple { + s.FieldToMatch = v + return s +} + +// SetTextTransformation sets the TextTransformation field's value. +func (s *SqlInjectionMatchTuple) SetTextTransformation(v string) *SqlInjectionMatchTuple { + s.TextTransformation = &v + return s +} + // In a GetSampledRequests request, the StartTime and EndTime objects specify // the time range for which you want AWS WAF to return a sample of web requests. // @@ -7775,19 +8978,22 @@ func (s *SqlInjectionMatchTuple) Validate() error { // If your resource receives more than 5,000 requests during that period, AWS // WAF stops sampling after the 5,000th request. In that case, EndTime is the // time that AWS WAF received the 5,000th request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/TimeWindow type TimeWindow struct { _ struct{} `type:"structure"` // The end of the time range from which you want GetSampledRequests to return - // a sample of the requests that your AWS resource received. You can specify - // any time range in the previous three hours. + // a sample of the requests that your AWS resource received. Specify the date + // and time in the following format: "2016-09-27T14:50Z". You can specify any + // time range in the previous three hours. // // EndTime is a required field EndTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` // The beginning of the time range from which you want GetSampledRequests to - // return a sample of the requests that your AWS resource received. You can - // specify any time range in the previous three hours. + // return a sample of the requests that your AWS resource received. Specify + // the date and time in the following format: "2016-09-27T14:50Z". You can specify + // any time range in the previous three hours. // // StartTime is a required field StartTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` @@ -7819,6 +9025,19 @@ func (s *TimeWindow) Validate() error { return nil } +// SetEndTime sets the EndTime field's value. +func (s *TimeWindow) SetEndTime(v time.Time) *TimeWindow { + s.EndTime = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *TimeWindow) SetStartTime(v time.Time) *TimeWindow { + s.StartTime = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateByteMatchSetRequest type UpdateByteMatchSetInput struct { _ struct{} `type:"structure"` @@ -7836,12 +9055,12 @@ type UpdateByteMatchSetInput struct { // An array of ByteMatchSetUpdate objects that you want to insert into or delete // from a ByteMatchSet. For more information, see the applicable data types: // - // ByteMatchSetUpdate: Contains Action and ByteMatchTuple + // * ByteMatchSetUpdate: Contains Action and ByteMatchTuple // - // ByteMatchTuple: Contains FieldToMatch, PositionalConstraint, TargetString, - // and TextTransformation + // * ByteMatchTuple: Contains FieldToMatch, PositionalConstraint, TargetString, + // and TextTransformation // - // FieldToMatch: Contains Data and Type + // * FieldToMatch: Contains Data and Type // // Updates is a required field Updates []*ByteMatchSetUpdate `type:"list" required:"true"` @@ -7892,6 +9111,25 @@ func (s *UpdateByteMatchSetInput) Validate() error { return nil } +// SetByteMatchSetId sets the ByteMatchSetId field's value. +func (s *UpdateByteMatchSetInput) SetByteMatchSetId(v string) *UpdateByteMatchSetInput { + s.ByteMatchSetId = &v + return s +} + +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateByteMatchSetInput) SetChangeToken(v string) *UpdateByteMatchSetInput { + s.ChangeToken = &v + return s +} + +// SetUpdates sets the Updates field's value. +func (s *UpdateByteMatchSetInput) SetUpdates(v []*ByteMatchSetUpdate) *UpdateByteMatchSetInput { + s.Updates = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateByteMatchSetResponse type UpdateByteMatchSetOutput struct { _ struct{} `type:"structure"` @@ -7911,6 +9149,13 @@ func (s UpdateByteMatchSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateByteMatchSetOutput) SetChangeToken(v string) *UpdateByteMatchSetOutput { + s.ChangeToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateIPSetRequest type UpdateIPSetInput struct { _ struct{} `type:"structure"` @@ -7928,9 +9173,9 @@ type UpdateIPSetInput struct { // An array of IPSetUpdate objects that you want to insert into or delete from // an IPSet. For more information, see the applicable data types: // - // IPSetUpdate: Contains Action and IPSetDescriptor + // * IPSetUpdate: Contains Action and IPSetDescriptor // - // IPSetDescriptor: Contains Type and Value + // * IPSetDescriptor: Contains Type and Value // // Updates is a required field Updates []*IPSetUpdate `type:"list" required:"true"` @@ -7981,6 +9226,25 @@ func (s *UpdateIPSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateIPSetInput) SetChangeToken(v string) *UpdateIPSetInput { + s.ChangeToken = &v + return s +} + +// SetIPSetId sets the IPSetId field's value. +func (s *UpdateIPSetInput) SetIPSetId(v string) *UpdateIPSetInput { + s.IPSetId = &v + return s +} + +// SetUpdates sets the Updates field's value. +func (s *UpdateIPSetInput) SetUpdates(v []*IPSetUpdate) *UpdateIPSetInput { + s.Updates = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateIPSetResponse type UpdateIPSetOutput struct { _ struct{} `type:"structure"` @@ -8000,6 +9264,13 @@ func (s UpdateIPSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateIPSetOutput) SetChangeToken(v string) *UpdateIPSetOutput { + s.ChangeToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateRuleRequest type UpdateRuleInput struct { _ struct{} `type:"structure"` @@ -8017,11 +9288,11 @@ type UpdateRuleInput struct { // An array of RuleUpdate objects that you want to insert into or delete from // a Rule. For more information, see the applicable data types: // - // RuleUpdate: Contains Action and Predicate + // * RuleUpdate: Contains Action and Predicate // - // Predicate: Contains DataId, Negated, and Type + // * Predicate: Contains DataId, Negated, and Type // - // FieldToMatch: Contains Data and Type + // * FieldToMatch: Contains Data and Type // // Updates is a required field Updates []*RuleUpdate `type:"list" required:"true"` @@ -8072,6 +9343,25 @@ func (s *UpdateRuleInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateRuleInput) SetChangeToken(v string) *UpdateRuleInput { + s.ChangeToken = &v + return s +} + +// SetRuleId sets the RuleId field's value. +func (s *UpdateRuleInput) SetRuleId(v string) *UpdateRuleInput { + s.RuleId = &v + return s +} + +// SetUpdates sets the Updates field's value. +func (s *UpdateRuleInput) SetUpdates(v []*RuleUpdate) *UpdateRuleInput { + s.Updates = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateRuleResponse type UpdateRuleOutput struct { _ struct{} `type:"structure"` @@ -8091,6 +9381,13 @@ func (s UpdateRuleOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateRuleOutput) SetChangeToken(v string) *UpdateRuleOutput { + s.ChangeToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateSizeConstraintSetRequest type UpdateSizeConstraintSetInput struct { _ struct{} `type:"structure"` @@ -8109,12 +9406,12 @@ type UpdateSizeConstraintSetInput struct { // or delete from a SizeConstraintSet. For more information, see the applicable // data types: // - // SizeConstraintSetUpdate: Contains Action and SizeConstraint + // * SizeConstraintSetUpdate: Contains Action and SizeConstraint // - // SizeConstraint: Contains FieldToMatch, TextTransformation, ComparisonOperator, - // and Size + // * SizeConstraint: Contains FieldToMatch, TextTransformation, ComparisonOperator, + // and Size // - // FieldToMatch: Contains Data and Type + // * FieldToMatch: Contains Data and Type // // Updates is a required field Updates []*SizeConstraintSetUpdate `type:"list" required:"true"` @@ -8165,6 +9462,25 @@ func (s *UpdateSizeConstraintSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateSizeConstraintSetInput) SetChangeToken(v string) *UpdateSizeConstraintSetInput { + s.ChangeToken = &v + return s +} + +// SetSizeConstraintSetId sets the SizeConstraintSetId field's value. +func (s *UpdateSizeConstraintSetInput) SetSizeConstraintSetId(v string) *UpdateSizeConstraintSetInput { + s.SizeConstraintSetId = &v + return s +} + +// SetUpdates sets the Updates field's value. +func (s *UpdateSizeConstraintSetInput) SetUpdates(v []*SizeConstraintSetUpdate) *UpdateSizeConstraintSetInput { + s.Updates = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateSizeConstraintSetResponse type UpdateSizeConstraintSetOutput struct { _ struct{} `type:"structure"` @@ -8184,7 +9500,14 @@ func (s UpdateSizeConstraintSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateSizeConstraintSetOutput) SetChangeToken(v string) *UpdateSizeConstraintSetOutput { + s.ChangeToken = &v + return s +} + // A request to update a SqlInjectionMatchSet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateSqlInjectionMatchSetRequest type UpdateSqlInjectionMatchSetInput struct { _ struct{} `type:"structure"` @@ -8203,11 +9526,11 @@ type UpdateSqlInjectionMatchSetInput struct { // or delete from a SqlInjectionMatchSet. For more information, see the applicable // data types: // - // SqlInjectionMatchSetUpdate: Contains Action and SqlInjectionMatchTuple + // * SqlInjectionMatchSetUpdate: Contains Action and SqlInjectionMatchTuple // - // SqlInjectionMatchTuple: Contains FieldToMatch and TextTransformation + // * SqlInjectionMatchTuple: Contains FieldToMatch and TextTransformation // - // FieldToMatch: Contains Data and Type + // * FieldToMatch: Contains Data and Type // // Updates is a required field Updates []*SqlInjectionMatchSetUpdate `type:"list" required:"true"` @@ -8258,7 +9581,26 @@ func (s *UpdateSqlInjectionMatchSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateSqlInjectionMatchSetInput) SetChangeToken(v string) *UpdateSqlInjectionMatchSetInput { + s.ChangeToken = &v + return s +} + +// SetSqlInjectionMatchSetId sets the SqlInjectionMatchSetId field's value. +func (s *UpdateSqlInjectionMatchSetInput) SetSqlInjectionMatchSetId(v string) *UpdateSqlInjectionMatchSetInput { + s.SqlInjectionMatchSetId = &v + return s +} + +// SetUpdates sets the Updates field's value. +func (s *UpdateSqlInjectionMatchSetInput) SetUpdates(v []*SqlInjectionMatchSetUpdate) *UpdateSqlInjectionMatchSetInput { + s.Updates = v + return s +} + // The response to an UpdateSqlInjectionMatchSets request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateSqlInjectionMatchSetResponse type UpdateSqlInjectionMatchSetOutput struct { _ struct{} `type:"structure"` @@ -8278,6 +9620,13 @@ func (s UpdateSqlInjectionMatchSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateSqlInjectionMatchSetOutput) SetChangeToken(v string) *UpdateSqlInjectionMatchSetOutput { + s.ChangeToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateWebACLRequest type UpdateWebACLInput struct { _ struct{} `type:"structure"` @@ -8286,23 +9635,21 @@ type UpdateWebACLInput struct { // ChangeToken is a required field ChangeToken *string `min:"1" type:"string" required:"true"` - // For the action that is associated with a rule in a WebACL, specifies the - // action that you want AWS WAF to perform when a web request matches all of - // the conditions in a rule. For the default action in a WebACL, specifies the - // action that you want AWS WAF to take when a web request doesn't match all - // of the conditions in any of the rules in a WebACL. + // A default action for the web ACL, either ALLOW or BLOCK. AWS WAF performs + // the default action if a request doesn't match the criteria in any of the + // rules in a web ACL. DefaultAction *WafAction `type:"structure"` // An array of updates to make to the WebACL. // - // An array of WebACLUpdate objects that you want to insert into or delete - // from a WebACL. For more information, see the applicable data types: + // An array of WebACLUpdate objects that you want to insert into or delete from + // a WebACL. For more information, see the applicable data types: // - // WebACLUpdate: Contains Action and ActivatedRule + // * WebACLUpdate: Contains Action and ActivatedRule // - // ActivatedRule: Contains Action, Priority, and RuleId + // * ActivatedRule: Contains Action, Priority, and RuleId // - // WafAction: Contains Type + // * WafAction: Contains Type Updates []*WebACLUpdate `type:"list"` // The WebACLId of the WebACL that you want to update. WebACLId is returned @@ -8359,6 +9706,31 @@ func (s *UpdateWebACLInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateWebACLInput) SetChangeToken(v string) *UpdateWebACLInput { + s.ChangeToken = &v + return s +} + +// SetDefaultAction sets the DefaultAction field's value. +func (s *UpdateWebACLInput) SetDefaultAction(v *WafAction) *UpdateWebACLInput { + s.DefaultAction = v + return s +} + +// SetUpdates sets the Updates field's value. +func (s *UpdateWebACLInput) SetUpdates(v []*WebACLUpdate) *UpdateWebACLInput { + s.Updates = v + return s +} + +// SetWebACLId sets the WebACLId field's value. +func (s *UpdateWebACLInput) SetWebACLId(v string) *UpdateWebACLInput { + s.WebACLId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateWebACLResponse type UpdateWebACLOutput struct { _ struct{} `type:"structure"` @@ -8378,7 +9750,14 @@ func (s UpdateWebACLOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateWebACLOutput) SetChangeToken(v string) *UpdateWebACLOutput { + s.ChangeToken = &v + return s +} + // A request to update an XssMatchSet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateXssMatchSetRequest type UpdateXssMatchSetInput struct { _ struct{} `type:"structure"` @@ -8390,11 +9769,11 @@ type UpdateXssMatchSetInput struct { // An array of XssMatchSetUpdate objects that you want to insert into or delete // from a XssMatchSet. For more information, see the applicable data types: // - // XssMatchSetUpdate: Contains Action and XssMatchTuple + // * XssMatchSetUpdate: Contains Action and XssMatchTuple // - // XssMatchTuple: Contains FieldToMatch and TextTransformation + // * XssMatchTuple: Contains FieldToMatch and TextTransformation // - // FieldToMatch: Contains Data and Type + // * FieldToMatch: Contains Data and Type // // Updates is a required field Updates []*XssMatchSetUpdate `type:"list" required:"true"` @@ -8451,7 +9830,26 @@ func (s *UpdateXssMatchSetInput) Validate() error { return nil } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateXssMatchSetInput) SetChangeToken(v string) *UpdateXssMatchSetInput { + s.ChangeToken = &v + return s +} + +// SetUpdates sets the Updates field's value. +func (s *UpdateXssMatchSetInput) SetUpdates(v []*XssMatchSetUpdate) *UpdateXssMatchSetInput { + s.Updates = v + return s +} + +// SetXssMatchSetId sets the XssMatchSetId field's value. +func (s *UpdateXssMatchSetInput) SetXssMatchSetId(v string) *UpdateXssMatchSetInput { + s.XssMatchSetId = &v + return s +} + // The response to an UpdateXssMatchSets request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateXssMatchSetResponse type UpdateXssMatchSetOutput struct { _ struct{} `type:"structure"` @@ -8471,25 +9869,32 @@ func (s UpdateXssMatchSetOutput) GoString() string { return s.String() } +// SetChangeToken sets the ChangeToken field's value. +func (s *UpdateXssMatchSetOutput) SetChangeToken(v string) *UpdateXssMatchSetOutput { + s.ChangeToken = &v + return s +} + // For the action that is associated with a rule in a WebACL, specifies the // action that you want AWS WAF to perform when a web request matches all of // the conditions in a rule. For the default action in a WebACL, specifies the // action that you want AWS WAF to take when a web request doesn't match all // of the conditions in any of the rules in a WebACL. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/WafAction type WafAction struct { _ struct{} `type:"structure"` // Specifies how you want AWS WAF to respond to requests that match the settings // in a Rule. Valid settings include the following: // - // ALLOW: AWS WAF allows requests + // * ALLOW: AWS WAF allows requests // - // BLOCK: AWS WAF blocks requests + // * BLOCK: AWS WAF blocks requests // - // COUNT: AWS WAF increments a counter of the requests that match all of - // the conditions in the rule. AWS WAF then continues to inspect the web request - // based on the remaining rules in the web ACL. You can't specify COUNT for - // the default action for a WebACL. + // * COUNT: AWS WAF increments a counter of the requests that match all of + // the conditions in the rule. AWS WAF then continues to inspect the web + // request based on the remaining rules in the web ACL. You can't specify + // COUNT for the default action for a WebACL. // // Type is a required field Type *string `type:"string" required:"true" enum:"WafActionType"` @@ -8518,6 +9923,12 @@ func (s *WafAction) Validate() error { return nil } +// SetType sets the Type field's value. +func (s *WafAction) SetType(v string) *WafAction { + s.Type = &v + return s +} + // Contains the Rules that identify the requests that you want to allow, block, // or count. In a WebACL, you also specify a default action (ALLOW or BLOCK), // and the action for each Rule that you add to a WebACL, for example, block @@ -8526,6 +9937,7 @@ func (s *WafAction) Validate() error { // the requests that you want AWS WAF to filter. If you add more than one Rule // to a WebACL, a request needs to match only one of the specifications to be // allowed, blocked, or counted. For more information, see UpdateWebACL. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/WebACL type WebACL struct { _ struct{} `type:"structure"` @@ -8535,6 +9947,9 @@ type WebACL struct { // DefaultAction is a required field DefaultAction *WafAction `type:"structure" required:"true"` + // A friendly name or description for the metrics for this WebACL. The name + // can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't + // contain whitespace. You can't change MetricName after you create the WebACL. MetricName *string `type:"string"` // A friendly name or description of the WebACL. You can't change the name of @@ -8551,7 +9966,7 @@ type WebACL struct { // a WebACL (see GetWebACL), update a WebACL (see UpdateWebACL), and delete // a WebACL from AWS WAF (see DeleteWebACL). // - // WebACLId is returned by CreateWebACL and by ListWebACLs. + // WebACLId is returned by CreateWebACL and by ListWebACLs. // // WebACLId is a required field WebACLId *string `min:"1" type:"string" required:"true"` @@ -8567,7 +9982,38 @@ func (s WebACL) GoString() string { return s.String() } +// SetDefaultAction sets the DefaultAction field's value. +func (s *WebACL) SetDefaultAction(v *WafAction) *WebACL { + s.DefaultAction = v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *WebACL) SetMetricName(v string) *WebACL { + s.MetricName = &v + return s +} + +// SetName sets the Name field's value. +func (s *WebACL) SetName(v string) *WebACL { + s.Name = &v + return s +} + +// SetRules sets the Rules field's value. +func (s *WebACL) SetRules(v []*ActivatedRule) *WebACL { + s.Rules = v + return s +} + +// SetWebACLId sets the WebACLId field's value. +func (s *WebACL) SetWebACLId(v string) *WebACL { + s.WebACLId = &v + return s +} + // Contains the identifier and the name or description of the WebACL. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/WebACLSummary type WebACLSummary struct { _ struct{} `type:"structure"` @@ -8581,7 +10027,7 @@ type WebACLSummary struct { // a WebACL (see GetWebACL), update a WebACL (see UpdateWebACL), and delete // a WebACL from AWS WAF (see DeleteWebACL). // - // WebACLId is returned by CreateWebACL and by ListWebACLs. + // WebACLId is returned by CreateWebACL and by ListWebACLs. // // WebACLId is a required field WebACLId *string `min:"1" type:"string" required:"true"` @@ -8597,7 +10043,20 @@ func (s WebACLSummary) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *WebACLSummary) SetName(v string) *WebACLSummary { + s.Name = &v + return s +} + +// SetWebACLId sets the WebACLId field's value. +func (s *WebACLSummary) SetWebACLId(v string) *WebACLSummary { + s.WebACLId = &v + return s +} + // Specifies whether to insert a Rule into or delete a Rule from a WebACL. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/WebACLUpdate type WebACLUpdate struct { _ struct{} `type:"structure"` @@ -8611,9 +10070,6 @@ type WebACLUpdate struct { // the action that you want AWS WAF to take when a web request matches the Rule // (ALLOW, BLOCK, or COUNT). // - // To specify whether to insert or delete a Rule, use the Action parameter - // in the WebACLUpdate data type. - // // ActivatedRule is a required field ActivatedRule *ActivatedRule `type:"structure" required:"true"` } @@ -8649,12 +10105,25 @@ func (s *WebACLUpdate) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *WebACLUpdate) SetAction(v string) *WebACLUpdate { + s.Action = &v + return s +} + +// SetActivatedRule sets the ActivatedRule field's value. +func (s *WebACLUpdate) SetActivatedRule(v *ActivatedRule) *WebACLUpdate { + s.ActivatedRule = v + return s +} + // A complex type that contains XssMatchTuple objects, which specify the parts // of web requests that you want AWS WAF to inspect for cross-site scripting // attacks and, if you want AWS WAF to inspect a header, the name of the header. // If a XssMatchSet contains more than one XssMatchTuple object, a request needs // to include cross-site scripting attacks in only one of the specified parts // of the request to be considered a match. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/XssMatchSet type XssMatchSet struct { _ struct{} `type:"structure"` @@ -8666,7 +10135,7 @@ type XssMatchSet struct { // insert an XssMatchSet into a Rule or delete one from a Rule (see UpdateRule), // and delete an XssMatchSet from AWS WAF (see DeleteXssMatchSet). // - // XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets. + // XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets. // // XssMatchSetId is a required field XssMatchSetId *string `min:"1" type:"string" required:"true"` @@ -8688,7 +10157,26 @@ func (s XssMatchSet) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *XssMatchSet) SetName(v string) *XssMatchSet { + s.Name = &v + return s +} + +// SetXssMatchSetId sets the XssMatchSetId field's value. +func (s *XssMatchSet) SetXssMatchSetId(v string) *XssMatchSet { + s.XssMatchSetId = &v + return s +} + +// SetXssMatchTuples sets the XssMatchTuples field's value. +func (s *XssMatchSet) SetXssMatchTuples(v []*XssMatchTuple) *XssMatchSet { + s.XssMatchTuples = v + return s +} + // The Id and Name of an XssMatchSet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/XssMatchSetSummary type XssMatchSetSummary struct { _ struct{} `type:"structure"` @@ -8702,7 +10190,7 @@ type XssMatchSetSummary struct { // insert an XssMatchSet into a Rule or delete one from a Rule (see UpdateRule), // and delete an XssMatchSet from AWS WAF (see DeleteXssMatchSet). // - // XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets. + // XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets. // // XssMatchSetId is a required field XssMatchSetId *string `min:"1" type:"string" required:"true"` @@ -8718,9 +10206,22 @@ func (s XssMatchSetSummary) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *XssMatchSetSummary) SetName(v string) *XssMatchSetSummary { + s.Name = &v + return s +} + +// SetXssMatchSetId sets the XssMatchSetId field's value. +func (s *XssMatchSetSummary) SetXssMatchSetId(v string) *XssMatchSetSummary { + s.XssMatchSetId = &v + return s +} + // Specifies the part of a web request that you want to inspect for cross-site // scripting attacks and indicates whether you want to add the specification // to an XssMatchSet or delete it from an XssMatchSet. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/XssMatchSetUpdate type XssMatchSetUpdate struct { _ struct{} `type:"structure"` @@ -8769,13 +10270,26 @@ func (s *XssMatchSetUpdate) Validate() error { return nil } +// SetAction sets the Action field's value. +func (s *XssMatchSetUpdate) SetAction(v string) *XssMatchSetUpdate { + s.Action = &v + return s +} + +// SetXssMatchTuple sets the XssMatchTuple field's value. +func (s *XssMatchSetUpdate) SetXssMatchTuple(v *XssMatchTuple) *XssMatchSetUpdate { + s.XssMatchTuple = v + return s +} + // Specifies the part of a web request that you want AWS WAF to inspect for // cross-site scripting attacks and, if you want AWS WAF to inspect a header, // the name of the header. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/XssMatchTuple type XssMatchTuple struct { _ struct{} `type:"structure"` - // Specifies where in a web request to look for TargetString. + // Specifies where in a web request to look for cross-site scripting attacks. // // FieldToMatch is a required field FieldToMatch *FieldToMatch `type:"structure" required:"true"` @@ -8785,69 +10299,69 @@ type XssMatchTuple struct { // AWS WAF performs the transformation on FieldToMatch before inspecting a request // for a match. // - // CMD_LINE + // CMD_LINE // // When you're concerned that attackers are injecting an operating system commandline // command and using unusual formatting to disguise some or all of the command, // use this option to perform the following transformations: // - // Delete the following characters: \ " ' ^ + // * Delete the following characters: \ " ' ^ // - // Delete spaces before the following characters: / ( + // * Delete spaces before the following characters: / ( // - // Replace the following characters with a space: , ; + // * Replace the following characters with a space: , ; // - // Replace multiple spaces with one space + // * Replace multiple spaces with one space // - // Convert uppercase letters (A-Z) to lowercase (a-z) + // * Convert uppercase letters (A-Z) to lowercase (a-z) // - // COMPRESS_WHITE_SPACE + // COMPRESS_WHITE_SPACE // // Use this option to replace the following characters with a space character // (decimal 32): // - // \f, formfeed, decimal 12 + // * \f, formfeed, decimal 12 // - // \t, tab, decimal 9 + // * \t, tab, decimal 9 // - // \n, newline, decimal 10 + // * \n, newline, decimal 10 // - // \r, carriage return, decimal 13 + // * \r, carriage return, decimal 13 // - // \v, vertical tab, decimal 11 + // * \v, vertical tab, decimal 11 // - // non-breaking space, decimal 160 + // * non-breaking space, decimal 160 // - // COMPRESS_WHITE_SPACE also replaces multiple spaces with one space. + // COMPRESS_WHITE_SPACE also replaces multiple spaces with one space. // - // HTML_ENTITY_DECODE + // HTML_ENTITY_DECODE // // Use this option to replace HTML-encoded characters with unencoded characters. // HTML_ENTITY_DECODE performs the following operations: // - // Replaces (ampersand)quot; with " + // * Replaces (ampersand)quot; with " // - // Replaces (ampersand)nbsp; with a non-breaking space, decimal 160 + // * Replaces (ampersand)nbsp; with a non-breaking space, decimal 160 // - // Replaces (ampersand)lt; with a "less than" symbol + // * Replaces (ampersand)lt; with a "less than" symbol // - // Replaces (ampersand)gt; with > + // * Replaces (ampersand)gt; with > // - // Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, - // with the corresponding characters + // * Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, + // with the corresponding characters // - // Replaces characters that are represented in decimal format, (ampersand)#nnnn;, - // with the corresponding characters + // * Replaces characters that are represented in decimal format, (ampersand)#nnnn;, + // with the corresponding characters // - // LOWERCASE + // LOWERCASE // // Use this option to convert uppercase letters (A-Z) to lowercase (a-z). // - // URL_DECODE + // URL_DECODE // // Use this option to decode a URL-encoded value. // - // NONE + // NONE // // Specify NONE if you don't want to perform any text transformations. // @@ -8886,6 +10400,18 @@ func (s *XssMatchTuple) Validate() error { return nil } +// SetFieldToMatch sets the FieldToMatch field's value. +func (s *XssMatchTuple) SetFieldToMatch(v *FieldToMatch) *XssMatchTuple { + s.FieldToMatch = v + return s +} + +// SetTextTransformation sets the TextTransformation field's value. +func (s *XssMatchTuple) SetTextTransformation(v string) *XssMatchTuple { + s.TextTransformation = &v + return s +} + const ( // ChangeActionInsert is a ChangeAction enum value ChangeActionInsert = "INSERT" diff --git a/vendor/github.com/aws/aws-sdk-go/service/waf/errors.go b/vendor/github.com/aws/aws-sdk-go/service/waf/errors.go new file mode 100644 index 000000000..e5671e050 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/waf/errors.go @@ -0,0 +1,148 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package waf + +const ( + + // ErrCodeDisallowedNameException for service response error code + // "DisallowedNameException". + // + // The name specified is invalid. + ErrCodeDisallowedNameException = "DisallowedNameException" + + // ErrCodeInternalErrorException for service response error code + // "InternalErrorException". + // + // The operation failed because of a system problem, even though the request + // was valid. Retry your request. + ErrCodeInternalErrorException = "InternalErrorException" + + // ErrCodeInvalidAccountException for service response error code + // "InvalidAccountException". + // + // The operation failed because you tried to create, update, or delete an object + // by using an invalid account identifier. + ErrCodeInvalidAccountException = "InvalidAccountException" + + // ErrCodeInvalidOperationException for service response error code + // "InvalidOperationException". + // + // The operation failed because there was nothing to do. For example: + // + // * You tried to remove a Rule from a WebACL, but the Rule isn't in the + // specified WebACL. + // + // * You tried to remove an IP address from an IPSet, but the IP address + // isn't in the specified IPSet. + // + // * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple + // isn't in the specified WebACL. + // + // * You tried to add a Rule to a WebACL, but the Rule already exists in + // the specified WebACL. + // + // * You tried to add an IP address to an IPSet, but the IP address already + // exists in the specified IPSet. + // + // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple + // already exists in the specified WebACL. + ErrCodeInvalidOperationException = "InvalidOperationException" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameterException". + // + // The operation failed because AWS WAF didn't recognize a parameter in the + // request. For example: + // + // * You specified an invalid parameter name. + // + // * You specified an invalid value. + // + // * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) + // using an action other than INSERT or DELETE. + // + // * You tried to create a WebACL with a DefaultActionType other than ALLOW, + // BLOCK, or COUNT. + // + // * You tried to update a WebACL with a WafActionType other than ALLOW, + // BLOCK, or COUNT. + // + // * You tried to update a ByteMatchSet with a FieldToMatchType other than + // HEADER, QUERY_STRING, or URI. + // + // * You tried to update a ByteMatchSet with a Field of HEADER but no value + // for Data. + // + // * Your request references an ARN that is malformed, or corresponds to + // a resource with which a web ACL cannot be associated. + ErrCodeInvalidParameterException = "InvalidParameterException" + + // ErrCodeLimitsExceededException for service response error code + // "LimitsExceededException". + // + // The operation exceeds a resource limit, for example, the maximum number of + // WebACL objects that you can create for an AWS account. For more information, + // see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) + // in the AWS WAF Developer Guide. + ErrCodeLimitsExceededException = "LimitsExceededException" + + // ErrCodeNonEmptyEntityException for service response error code + // "NonEmptyEntityException". + // + // The operation failed because you tried to delete an object that isn't empty. + // For example: + // + // * You tried to delete a WebACL that still contains one or more Rule objects. + // + // * You tried to delete a Rule that still contains one or more ByteMatchSet + // objects or other predicates. + // + // * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple + // objects. + // + // * You tried to delete an IPSet that references one or more IP addresses. + ErrCodeNonEmptyEntityException = "NonEmptyEntityException" + + // ErrCodeNonexistentContainerException for service response error code + // "NonexistentContainerException". + // + // The operation failed because you tried to add an object to or delete an object + // from another object that doesn't exist. For example: + // + // * You tried to add a Rule to or delete a Rule from a WebACL that doesn't + // exist. + // + // * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule + // that doesn't exist. + // + // * You tried to add an IP address to or delete an IP address from an IPSet + // that doesn't exist. + // + // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from + // a ByteMatchSet that doesn't exist. + ErrCodeNonexistentContainerException = "NonexistentContainerException" + + // ErrCodeNonexistentItemException for service response error code + // "NonexistentItemException". + // + // The operation failed because the referenced object doesn't exist. + ErrCodeNonexistentItemException = "NonexistentItemException" + + // ErrCodeReferencedItemException for service response error code + // "ReferencedItemException". + // + // The operation failed because you tried to delete an object that is still + // in use. For example: + // + // * You tried to delete a ByteMatchSet that is still referenced by a Rule. + // + // * You tried to delete a Rule that is still referenced by a WebACL. + ErrCodeReferencedItemException = "ReferencedItemException" + + // ErrCodeStaleDataException for service response error code + // "StaleDataException". + // + // The operation failed because you tried to create, update, or delete an object + // by using a change token that has already been used. + ErrCodeStaleDataException = "StaleDataException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/waf/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/waf/examples_test.go index 2fe4b56fa..8b512012d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/waf/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/waf/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleWAF_CreateByteMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -42,11 +38,7 @@ func ExampleWAF_CreateByteMatchSet() { } func ExampleWAF_CreateIPSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -68,11 +60,7 @@ func ExampleWAF_CreateIPSet() { } func ExampleWAF_CreateRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -95,11 +83,7 @@ func ExampleWAF_CreateRule() { } func ExampleWAF_CreateSizeConstraintSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -121,11 +105,7 @@ func ExampleWAF_CreateSizeConstraintSet() { } func ExampleWAF_CreateSqlInjectionMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -147,11 +127,7 @@ func ExampleWAF_CreateSqlInjectionMatchSet() { } func ExampleWAF_CreateWebACL() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -177,11 +153,7 @@ func ExampleWAF_CreateWebACL() { } func ExampleWAF_CreateXssMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -203,11 +175,7 @@ func ExampleWAF_CreateXssMatchSet() { } func ExampleWAF_DeleteByteMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -229,11 +197,7 @@ func ExampleWAF_DeleteByteMatchSet() { } func ExampleWAF_DeleteIPSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -255,11 +219,7 @@ func ExampleWAF_DeleteIPSet() { } func ExampleWAF_DeleteRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -281,11 +241,7 @@ func ExampleWAF_DeleteRule() { } func ExampleWAF_DeleteSizeConstraintSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -307,11 +263,7 @@ func ExampleWAF_DeleteSizeConstraintSet() { } func ExampleWAF_DeleteSqlInjectionMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -333,11 +285,7 @@ func ExampleWAF_DeleteSqlInjectionMatchSet() { } func ExampleWAF_DeleteWebACL() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -359,11 +307,7 @@ func ExampleWAF_DeleteWebACL() { } func ExampleWAF_DeleteXssMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -385,11 +329,7 @@ func ExampleWAF_DeleteXssMatchSet() { } func ExampleWAF_GetByteMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -410,11 +350,7 @@ func ExampleWAF_GetByteMatchSet() { } func ExampleWAF_GetChangeToken() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -433,11 +369,7 @@ func ExampleWAF_GetChangeToken() { } func ExampleWAF_GetChangeTokenStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -458,11 +390,7 @@ func ExampleWAF_GetChangeTokenStatus() { } func ExampleWAF_GetIPSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -483,11 +411,7 @@ func ExampleWAF_GetIPSet() { } func ExampleWAF_GetRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -508,11 +432,7 @@ func ExampleWAF_GetRule() { } func ExampleWAF_GetSampledRequests() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -539,11 +459,7 @@ func ExampleWAF_GetSampledRequests() { } func ExampleWAF_GetSizeConstraintSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -564,11 +480,7 @@ func ExampleWAF_GetSizeConstraintSet() { } func ExampleWAF_GetSqlInjectionMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -589,11 +501,7 @@ func ExampleWAF_GetSqlInjectionMatchSet() { } func ExampleWAF_GetWebACL() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -614,11 +522,7 @@ func ExampleWAF_GetWebACL() { } func ExampleWAF_GetXssMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -639,11 +543,7 @@ func ExampleWAF_GetXssMatchSet() { } func ExampleWAF_ListByteMatchSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -665,11 +565,7 @@ func ExampleWAF_ListByteMatchSets() { } func ExampleWAF_ListIPSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -691,11 +587,7 @@ func ExampleWAF_ListIPSets() { } func ExampleWAF_ListRules() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -717,11 +609,7 @@ func ExampleWAF_ListRules() { } func ExampleWAF_ListSizeConstraintSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -743,11 +631,7 @@ func ExampleWAF_ListSizeConstraintSets() { } func ExampleWAF_ListSqlInjectionMatchSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -769,11 +653,7 @@ func ExampleWAF_ListSqlInjectionMatchSets() { } func ExampleWAF_ListWebACLs() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -795,11 +675,7 @@ func ExampleWAF_ListWebACLs() { } func ExampleWAF_ListXssMatchSets() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -821,11 +697,7 @@ func ExampleWAF_ListXssMatchSets() { } func ExampleWAF_UpdateByteMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -862,11 +734,7 @@ func ExampleWAF_UpdateByteMatchSet() { } func ExampleWAF_UpdateIPSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -898,11 +766,7 @@ func ExampleWAF_UpdateIPSet() { } func ExampleWAF_UpdateRule() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -935,11 +799,7 @@ func ExampleWAF_UpdateRule() { } func ExampleWAF_UpdateSizeConstraintSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -976,11 +836,7 @@ func ExampleWAF_UpdateSizeConstraintSet() { } func ExampleWAF_UpdateSqlInjectionMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -1015,11 +871,7 @@ func ExampleWAF_UpdateSqlInjectionMatchSet() { } func ExampleWAF_UpdateWebACL() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) @@ -1057,11 +909,7 @@ func ExampleWAF_UpdateWebACL() { } func ExampleWAF_UpdateXssMatchSet() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := waf.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/waf/service.go b/vendor/github.com/aws/aws-sdk-go/service/waf/service.go index a4a780f2c..700ef9cfd 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/waf/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/waf/service.go @@ -11,12 +11,16 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) -// This is the AWS WAF API Reference. This guide is for developers who need -// detailed information about the AWS WAF API actions, data types, and errors. -// For detailed information about AWS WAF features and an overview of how to -// use the AWS WAF API, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). -//The service client's operations are safe to be used concurrently. +// This is the AWS WAF API Reference for using AWS WAF with Amazon CloudFront. +// The AWS WAF actions and data types listed in the reference are available +// for protecting Amazon CloudFront distributions. You can use these actions +// and data types via the endpoint waf.amazonaws.com. This guide is for developers +// who need detailed information about the AWS WAF API actions, data types, +// and errors. For detailed information about AWS WAF features and an overview +// of how to use the AWS WAF API, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24 type WAF struct { *client.Client } @@ -27,8 +31,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "waf" +// Service information constants +const ( + ServiceName = "waf" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the WAF client with a session. // If additional configuration is needed for the client instance use the optional @@ -41,17 +48,18 @@ const ServiceName = "waf" // // Create a WAF client with additional configuration // svc := waf.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *WAF { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *WAF { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *WAF { svc := &WAF{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-08-24", diff --git a/vendor/github.com/aws/aws-sdk-go/service/waf/wafiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/waf/wafiface/interface.go index 9bfa19ea3..29e28cfa0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/waf/wafiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/waf/wafiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockWAFClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/wafregional/api.go b/vendor/github.com/aws/aws-sdk-go/service/wafregional/api.go new file mode 100644 index 000000000..b26917de1 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/wafregional/api.go @@ -0,0 +1,5085 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package wafregional provides a client for AWS WAF Regional. +package wafregional + +import ( + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/waf" +) + +const opAssociateWebACL = "AssociateWebACL" + +// AssociateWebACLRequest generates a "aws/request.Request" representing the +// client's request for the AssociateWebACL operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AssociateWebACL for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AssociateWebACL method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AssociateWebACLRequest method. +// req, resp := client.AssociateWebACLRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/AssociateWebACL +func (c *WAFRegional) AssociateWebACLRequest(input *AssociateWebACLInput) (req *request.Request, output *AssociateWebACLOutput) { + op := &request.Operation{ + Name: opAssociateWebACL, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AssociateWebACLInput{} + } + + output = &AssociateWebACLOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssociateWebACL API operation for AWS WAF Regional. +// +// Associates a web ACL with a resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation AssociateWebACL for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// * You specified an invalid parameter name. +// +// * You specified an invalid value. +// +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. +// +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. +// +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// * ErrCodeWAFUnavailableEntityException "WAFUnavailableEntityException" +// The operation failed because the entity referenced is temporarily unavailable. +// Retry your request. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/AssociateWebACL +func (c *WAFRegional) AssociateWebACL(input *AssociateWebACLInput) (*AssociateWebACLOutput, error) { + req, out := c.AssociateWebACLRequest(input) + err := req.Send() + return out, err +} + +const opCreateByteMatchSet = "CreateByteMatchSet" + +// CreateByteMatchSetRequest generates a "aws/request.Request" representing the +// client's request for the CreateByteMatchSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateByteMatchSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateByteMatchSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateByteMatchSetRequest method. +// req, resp := client.CreateByteMatchSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateByteMatchSet +func (c *WAFRegional) CreateByteMatchSetRequest(input *waf.CreateByteMatchSetInput) (req *request.Request, output *waf.CreateByteMatchSetOutput) { + op := &request.Operation{ + Name: opCreateByteMatchSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.CreateByteMatchSetInput{} + } + + output = &waf.CreateByteMatchSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateByteMatchSet API operation for AWS WAF Regional. +// +// Creates a ByteMatchSet. You then use UpdateByteMatchSet to identify the part +// of a web request that you want AWS WAF to inspect, such as the values of +// the User-Agent header or the query string. For example, you can create a +// ByteMatchSet that matches any requests with User-Agent headers that contain +// the string BadBot. You can then configure AWS WAF to reject those requests. +// +// To create and configure a ByteMatchSet, perform the following steps: +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of a CreateByteMatchSet request. +// +// Submit a CreateByteMatchSet request. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of an UpdateByteMatchSet request. +// +// Submit an UpdateByteMatchSet request to specify the part of the request that +// you want AWS WAF to inspect (for example, the header or the URI) and the +// value that you want AWS WAF to watch for. +// +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation CreateByteMatchSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" +// The name specified is invalid. +// +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// * You specified an invalid parameter name. +// +// * You specified an invalid value. +// +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. +// +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. +// +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateByteMatchSet +func (c *WAFRegional) CreateByteMatchSet(input *waf.CreateByteMatchSetInput) (*waf.CreateByteMatchSetOutput, error) { + req, out := c.CreateByteMatchSetRequest(input) + err := req.Send() + return out, err +} + +const opCreateIPSet = "CreateIPSet" + +// CreateIPSetRequest generates a "aws/request.Request" representing the +// client's request for the CreateIPSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateIPSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateIPSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateIPSetRequest method. +// req, resp := client.CreateIPSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateIPSet +func (c *WAFRegional) CreateIPSetRequest(input *waf.CreateIPSetInput) (req *request.Request, output *waf.CreateIPSetOutput) { + op := &request.Operation{ + Name: opCreateIPSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.CreateIPSetInput{} + } + + output = &waf.CreateIPSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateIPSet API operation for AWS WAF Regional. +// +// Creates an IPSet, which you use to specify which web requests you want to +// allow or block based on the IP addresses that the requests originate from. +// For example, if you're receiving a lot of requests from one or more individual +// IP addresses or one or more ranges of IP addresses and you want to block +// the requests, you can create an IPSet that contains those IP addresses and +// then configure AWS WAF to block the requests. +// +// To create and configure an IPSet, perform the following steps: +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of a CreateIPSet request. +// +// Submit a CreateIPSet request. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of an UpdateIPSet request. +// +// Submit an UpdateIPSet request to specify the IP addresses that you want AWS +// WAF to watch for. +// +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation CreateIPSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" +// The name specified is invalid. +// +// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// * You specified an invalid parameter name. +// +// * You specified an invalid value. +// +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. +// +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. +// +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateIPSet +func (c *WAFRegional) CreateIPSet(input *waf.CreateIPSetInput) (*waf.CreateIPSetOutput, error) { + req, out := c.CreateIPSetRequest(input) + err := req.Send() + return out, err +} + +const opCreateRule = "CreateRule" + +// CreateRuleRequest generates a "aws/request.Request" representing the +// client's request for the CreateRule operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateRule for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateRule method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateRuleRequest method. +// req, resp := client.CreateRuleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateRule +func (c *WAFRegional) CreateRuleRequest(input *waf.CreateRuleInput) (req *request.Request, output *waf.CreateRuleOutput) { + op := &request.Operation{ + Name: opCreateRule, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.CreateRuleInput{} + } + + output = &waf.CreateRuleOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateRule API operation for AWS WAF Regional. +// +// Creates a Rule, which contains the IPSet objects, ByteMatchSet objects, and +// other predicates that identify the requests that you want to block. If you +// add more than one predicate to a Rule, a request must match all of the specifications +// to be allowed or blocked. For example, suppose you add the following to a +// Rule: +// +// * An IPSet that matches the IP address 192.0.2.44/32 +// +// * A ByteMatchSet that matches BadBot in the User-Agent header +// +// You then add the Rule to a WebACL and specify that you want to blocks requests +// that satisfy the Rule. For a request to be blocked, it must come from the +// IP address 192.0.2.44 and the User-Agent header in the request must contain +// the value BadBot. +// +// To create and configure a Rule, perform the following steps: +// +// Create and update the predicates that you want to include in the Rule. For +// more information, see CreateByteMatchSet, CreateIPSet, and CreateSqlInjectionMatchSet. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of a CreateRule request. +// +// Submit a CreateRule request. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of an UpdateRule request. +// +// Submit an UpdateRule request to specify the predicates that you want to include +// in the Rule. +// +// Create and update a WebACL that contains the Rule. For more information, +// see CreateWebACL. +// +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation CreateRule for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" +// The name specified is invalid. +// +// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// * You specified an invalid parameter name. +// +// * You specified an invalid value. +// +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. +// +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. +// +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateRule +func (c *WAFRegional) CreateRule(input *waf.CreateRuleInput) (*waf.CreateRuleOutput, error) { + req, out := c.CreateRuleRequest(input) + err := req.Send() + return out, err +} + +const opCreateSizeConstraintSet = "CreateSizeConstraintSet" + +// CreateSizeConstraintSetRequest generates a "aws/request.Request" representing the +// client's request for the CreateSizeConstraintSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateSizeConstraintSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateSizeConstraintSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateSizeConstraintSetRequest method. +// req, resp := client.CreateSizeConstraintSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateSizeConstraintSet +func (c *WAFRegional) CreateSizeConstraintSetRequest(input *waf.CreateSizeConstraintSetInput) (req *request.Request, output *waf.CreateSizeConstraintSetOutput) { + op := &request.Operation{ + Name: opCreateSizeConstraintSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.CreateSizeConstraintSetInput{} + } + + output = &waf.CreateSizeConstraintSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateSizeConstraintSet API operation for AWS WAF Regional. +// +// Creates a SizeConstraintSet. You then use UpdateSizeConstraintSet to identify +// the part of a web request that you want AWS WAF to check for length, such +// as the length of the User-Agent header or the length of the query string. +// For example, you can create a SizeConstraintSet that matches any requests +// that have a query string that is longer than 100 bytes. You can then configure +// AWS WAF to reject those requests. +// +// To create and configure a SizeConstraintSet, perform the following steps: +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of a CreateSizeConstraintSet request. +// +// Submit a CreateSizeConstraintSet request. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of an UpdateSizeConstraintSet request. +// +// Submit an UpdateSizeConstraintSet request to specify the part of the request +// that you want AWS WAF to inspect (for example, the header or the URI) and +// the value that you want AWS WAF to watch for. +// +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation CreateSizeConstraintSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" +// The name specified is invalid. +// +// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// * You specified an invalid parameter name. +// +// * You specified an invalid value. +// +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. +// +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. +// +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateSizeConstraintSet +func (c *WAFRegional) CreateSizeConstraintSet(input *waf.CreateSizeConstraintSetInput) (*waf.CreateSizeConstraintSetOutput, error) { + req, out := c.CreateSizeConstraintSetRequest(input) + err := req.Send() + return out, err +} + +const opCreateSqlInjectionMatchSet = "CreateSqlInjectionMatchSet" + +// CreateSqlInjectionMatchSetRequest generates a "aws/request.Request" representing the +// client's request for the CreateSqlInjectionMatchSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateSqlInjectionMatchSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateSqlInjectionMatchSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateSqlInjectionMatchSetRequest method. +// req, resp := client.CreateSqlInjectionMatchSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateSqlInjectionMatchSet +func (c *WAFRegional) CreateSqlInjectionMatchSetRequest(input *waf.CreateSqlInjectionMatchSetInput) (req *request.Request, output *waf.CreateSqlInjectionMatchSetOutput) { + op := &request.Operation{ + Name: opCreateSqlInjectionMatchSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.CreateSqlInjectionMatchSetInput{} + } + + output = &waf.CreateSqlInjectionMatchSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateSqlInjectionMatchSet API operation for AWS WAF Regional. +// +// Creates a SqlInjectionMatchSet, which you use to allow, block, or count requests +// that contain snippets of SQL code in a specified part of web requests. AWS +// WAF searches for character sequences that are likely to be malicious strings. +// +// To create and configure a SqlInjectionMatchSet, perform the following steps: +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of a CreateSqlInjectionMatchSet request. +// +// Submit a CreateSqlInjectionMatchSet request. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of an UpdateSqlInjectionMatchSet request. +// +// Submit an UpdateSqlInjectionMatchSet request to specify the parts of web +// requests in which you want to allow, block, or count malicious SQL code. +// +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation CreateSqlInjectionMatchSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" +// The name specified is invalid. +// +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// * You specified an invalid parameter name. +// +// * You specified an invalid value. +// +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. +// +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. +// +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateSqlInjectionMatchSet +func (c *WAFRegional) CreateSqlInjectionMatchSet(input *waf.CreateSqlInjectionMatchSetInput) (*waf.CreateSqlInjectionMatchSetOutput, error) { + req, out := c.CreateSqlInjectionMatchSetRequest(input) + err := req.Send() + return out, err +} + +const opCreateWebACL = "CreateWebACL" + +// CreateWebACLRequest generates a "aws/request.Request" representing the +// client's request for the CreateWebACL operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateWebACL for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateWebACL method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateWebACLRequest method. +// req, resp := client.CreateWebACLRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateWebACL +func (c *WAFRegional) CreateWebACLRequest(input *waf.CreateWebACLInput) (req *request.Request, output *waf.CreateWebACLOutput) { + op := &request.Operation{ + Name: opCreateWebACL, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.CreateWebACLInput{} + } + + output = &waf.CreateWebACLOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateWebACL API operation for AWS WAF Regional. +// +// Creates a WebACL, which contains the Rules that identify the CloudFront web +// requests that you want to allow, block, or count. AWS WAF evaluates Rules +// in order based on the value of Priority for each Rule. +// +// You also specify a default action, either ALLOW or BLOCK. If a web request +// doesn't match any of the Rules in a WebACL, AWS WAF responds to the request +// with the default action. +// +// To create and configure a WebACL, perform the following steps: +// +// Create and update the ByteMatchSet objects and other predicates that you +// want to include in Rules. For more information, see CreateByteMatchSet, UpdateByteMatchSet, +// CreateIPSet, UpdateIPSet, CreateSqlInjectionMatchSet, and UpdateSqlInjectionMatchSet. +// +// Create and update the Rules that you want to include in the WebACL. For more +// information, see CreateRule and UpdateRule. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of a CreateWebACL request. +// +// Submit a CreateWebACL request. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of an UpdateWebACL request. +// +// Submit an UpdateWebACL request to specify the Rules that you want to include +// in the WebACL, to specify the default action, and to associate the WebACL +// with a CloudFront distribution. +// +// For more information about how to use the AWS WAF API, see the AWS WAF Developer +// Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation CreateWebACL for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" +// The name specified is invalid. +// +// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// * You specified an invalid parameter name. +// +// * You specified an invalid value. +// +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. +// +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. +// +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateWebACL +func (c *WAFRegional) CreateWebACL(input *waf.CreateWebACLInput) (*waf.CreateWebACLOutput, error) { + req, out := c.CreateWebACLRequest(input) + err := req.Send() + return out, err +} + +const opCreateXssMatchSet = "CreateXssMatchSet" + +// CreateXssMatchSetRequest generates a "aws/request.Request" representing the +// client's request for the CreateXssMatchSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateXssMatchSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateXssMatchSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateXssMatchSetRequest method. +// req, resp := client.CreateXssMatchSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateXssMatchSet +func (c *WAFRegional) CreateXssMatchSetRequest(input *waf.CreateXssMatchSetInput) (req *request.Request, output *waf.CreateXssMatchSetOutput) { + op := &request.Operation{ + Name: opCreateXssMatchSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.CreateXssMatchSetInput{} + } + + output = &waf.CreateXssMatchSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateXssMatchSet API operation for AWS WAF Regional. +// +// Creates an XssMatchSet, which you use to allow, block, or count requests +// that contain cross-site scripting attacks in the specified part of web requests. +// AWS WAF searches for character sequences that are likely to be malicious +// strings. +// +// To create and configure an XssMatchSet, perform the following steps: +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of a CreateXssMatchSet request. +// +// Submit a CreateXssMatchSet request. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of an UpdateXssMatchSet request. +// +// Submit an UpdateXssMatchSet request to specify the parts of web requests +// in which you want to allow, block, or count cross-site scripting attacks. +// +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation CreateXssMatchSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" +// The name specified is invalid. +// +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// * You specified an invalid parameter name. +// +// * You specified an invalid value. +// +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. +// +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. +// +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateXssMatchSet +func (c *WAFRegional) CreateXssMatchSet(input *waf.CreateXssMatchSetInput) (*waf.CreateXssMatchSetOutput, error) { + req, out := c.CreateXssMatchSetRequest(input) + err := req.Send() + return out, err +} + +const opDeleteByteMatchSet = "DeleteByteMatchSet" + +// DeleteByteMatchSetRequest generates a "aws/request.Request" representing the +// client's request for the DeleteByteMatchSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteByteMatchSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteByteMatchSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteByteMatchSetRequest method. +// req, resp := client.DeleteByteMatchSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteByteMatchSet +func (c *WAFRegional) DeleteByteMatchSetRequest(input *waf.DeleteByteMatchSetInput) (req *request.Request, output *waf.DeleteByteMatchSetOutput) { + op := &request.Operation{ + Name: opDeleteByteMatchSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.DeleteByteMatchSetInput{} + } + + output = &waf.DeleteByteMatchSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteByteMatchSet API operation for AWS WAF Regional. +// +// Permanently deletes a ByteMatchSet. You can't delete a ByteMatchSet if it's +// still used in any Rules or if it still includes any ByteMatchTuple objects +// (any filters). +// +// If you just want to remove a ByteMatchSet from a Rule, use UpdateRule. +// +// To permanently delete a ByteMatchSet, perform the following steps: +// +// Update the ByteMatchSet to remove filters, if any. For more information, +// see UpdateByteMatchSet. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of a DeleteByteMatchSet request. +// +// Submit a DeleteByteMatchSet request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation DeleteByteMatchSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// * You tried to delete a Rule that is still referenced by a WebACL. +// +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFNonEmptyEntityException "WAFNonEmptyEntityException" +// The operation failed because you tried to delete an object that isn't empty. +// For example: +// +// * You tried to delete a WebACL that still contains one or more Rule objects. +// +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. +// +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. +// +// * You tried to delete an IPSet that references one or more IP addresses. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteByteMatchSet +func (c *WAFRegional) DeleteByteMatchSet(input *waf.DeleteByteMatchSetInput) (*waf.DeleteByteMatchSetOutput, error) { + req, out := c.DeleteByteMatchSetRequest(input) + err := req.Send() + return out, err +} + +const opDeleteIPSet = "DeleteIPSet" + +// DeleteIPSetRequest generates a "aws/request.Request" representing the +// client's request for the DeleteIPSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteIPSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteIPSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteIPSetRequest method. +// req, resp := client.DeleteIPSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteIPSet +func (c *WAFRegional) DeleteIPSetRequest(input *waf.DeleteIPSetInput) (req *request.Request, output *waf.DeleteIPSetOutput) { + op := &request.Operation{ + Name: opDeleteIPSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.DeleteIPSetInput{} + } + + output = &waf.DeleteIPSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteIPSet API operation for AWS WAF Regional. +// +// Permanently deletes an IPSet. You can't delete an IPSet if it's still used +// in any Rules or if it still includes any IP addresses. +// +// If you just want to remove an IPSet from a Rule, use UpdateRule. +// +// To permanently delete an IPSet from AWS WAF, perform the following steps: +// +// Update the IPSet to remove IP address ranges, if any. For more information, +// see UpdateIPSet. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of a DeleteIPSet request. +// +// Submit a DeleteIPSet request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation DeleteIPSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// * You tried to delete a Rule that is still referenced by a WebACL. +// +// * ErrCodeWAFNonEmptyEntityException "WAFNonEmptyEntityException" +// The operation failed because you tried to delete an object that isn't empty. +// For example: +// +// * You tried to delete a WebACL that still contains one or more Rule objects. +// +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. +// +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. +// +// * You tried to delete an IPSet that references one or more IP addresses. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteIPSet +func (c *WAFRegional) DeleteIPSet(input *waf.DeleteIPSetInput) (*waf.DeleteIPSetOutput, error) { + req, out := c.DeleteIPSetRequest(input) + err := req.Send() + return out, err +} + +const opDeleteRule = "DeleteRule" + +// DeleteRuleRequest generates a "aws/request.Request" representing the +// client's request for the DeleteRule operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteRule for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteRule method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteRuleRequest method. +// req, resp := client.DeleteRuleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteRule +func (c *WAFRegional) DeleteRuleRequest(input *waf.DeleteRuleInput) (req *request.Request, output *waf.DeleteRuleOutput) { + op := &request.Operation{ + Name: opDeleteRule, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.DeleteRuleInput{} + } + + output = &waf.DeleteRuleOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteRule API operation for AWS WAF Regional. +// +// Permanently deletes a Rule. You can't delete a Rule if it's still used in +// any WebACL objects or if it still includes any predicates, such as ByteMatchSet +// objects. +// +// If you just want to remove a Rule from a WebACL, use UpdateWebACL. +// +// To permanently delete a Rule from AWS WAF, perform the following steps: +// +// Update the Rule to remove predicates, if any. For more information, see UpdateRule. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of a DeleteRule request. +// +// Submit a DeleteRule request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation DeleteRule for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// * You tried to delete a Rule that is still referenced by a WebACL. +// +// * ErrCodeWAFNonEmptyEntityException "WAFNonEmptyEntityException" +// The operation failed because you tried to delete an object that isn't empty. +// For example: +// +// * You tried to delete a WebACL that still contains one or more Rule objects. +// +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. +// +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. +// +// * You tried to delete an IPSet that references one or more IP addresses. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteRule +func (c *WAFRegional) DeleteRule(input *waf.DeleteRuleInput) (*waf.DeleteRuleOutput, error) { + req, out := c.DeleteRuleRequest(input) + err := req.Send() + return out, err +} + +const opDeleteSizeConstraintSet = "DeleteSizeConstraintSet" + +// DeleteSizeConstraintSetRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSizeConstraintSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteSizeConstraintSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteSizeConstraintSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteSizeConstraintSetRequest method. +// req, resp := client.DeleteSizeConstraintSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteSizeConstraintSet +func (c *WAFRegional) DeleteSizeConstraintSetRequest(input *waf.DeleteSizeConstraintSetInput) (req *request.Request, output *waf.DeleteSizeConstraintSetOutput) { + op := &request.Operation{ + Name: opDeleteSizeConstraintSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.DeleteSizeConstraintSetInput{} + } + + output = &waf.DeleteSizeConstraintSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteSizeConstraintSet API operation for AWS WAF Regional. +// +// Permanently deletes a SizeConstraintSet. You can't delete a SizeConstraintSet +// if it's still used in any Rules or if it still includes any SizeConstraint +// objects (any filters). +// +// If you just want to remove a SizeConstraintSet from a Rule, use UpdateRule. +// +// To permanently delete a SizeConstraintSet, perform the following steps: +// +// Update the SizeConstraintSet to remove filters, if any. For more information, +// see UpdateSizeConstraintSet. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of a DeleteSizeConstraintSet request. +// +// Submit a DeleteSizeConstraintSet request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation DeleteSizeConstraintSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// * You tried to delete a Rule that is still referenced by a WebACL. +// +// * ErrCodeWAFNonEmptyEntityException "WAFNonEmptyEntityException" +// The operation failed because you tried to delete an object that isn't empty. +// For example: +// +// * You tried to delete a WebACL that still contains one or more Rule objects. +// +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. +// +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. +// +// * You tried to delete an IPSet that references one or more IP addresses. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteSizeConstraintSet +func (c *WAFRegional) DeleteSizeConstraintSet(input *waf.DeleteSizeConstraintSetInput) (*waf.DeleteSizeConstraintSetOutput, error) { + req, out := c.DeleteSizeConstraintSetRequest(input) + err := req.Send() + return out, err +} + +const opDeleteSqlInjectionMatchSet = "DeleteSqlInjectionMatchSet" + +// DeleteSqlInjectionMatchSetRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSqlInjectionMatchSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteSqlInjectionMatchSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteSqlInjectionMatchSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteSqlInjectionMatchSetRequest method. +// req, resp := client.DeleteSqlInjectionMatchSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteSqlInjectionMatchSet +func (c *WAFRegional) DeleteSqlInjectionMatchSetRequest(input *waf.DeleteSqlInjectionMatchSetInput) (req *request.Request, output *waf.DeleteSqlInjectionMatchSetOutput) { + op := &request.Operation{ + Name: opDeleteSqlInjectionMatchSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.DeleteSqlInjectionMatchSetInput{} + } + + output = &waf.DeleteSqlInjectionMatchSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteSqlInjectionMatchSet API operation for AWS WAF Regional. +// +// Permanently deletes a SqlInjectionMatchSet. You can't delete a SqlInjectionMatchSet +// if it's still used in any Rules or if it still contains any SqlInjectionMatchTuple +// objects. +// +// If you just want to remove a SqlInjectionMatchSet from a Rule, use UpdateRule. +// +// To permanently delete a SqlInjectionMatchSet from AWS WAF, perform the following +// steps: +// +// Update the SqlInjectionMatchSet to remove filters, if any. For more information, +// see UpdateSqlInjectionMatchSet. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of a DeleteSqlInjectionMatchSet request. +// +// Submit a DeleteSqlInjectionMatchSet request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation DeleteSqlInjectionMatchSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// * You tried to delete a Rule that is still referenced by a WebACL. +// +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFNonEmptyEntityException "WAFNonEmptyEntityException" +// The operation failed because you tried to delete an object that isn't empty. +// For example: +// +// * You tried to delete a WebACL that still contains one or more Rule objects. +// +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. +// +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. +// +// * You tried to delete an IPSet that references one or more IP addresses. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteSqlInjectionMatchSet +func (c *WAFRegional) DeleteSqlInjectionMatchSet(input *waf.DeleteSqlInjectionMatchSetInput) (*waf.DeleteSqlInjectionMatchSetOutput, error) { + req, out := c.DeleteSqlInjectionMatchSetRequest(input) + err := req.Send() + return out, err +} + +const opDeleteWebACL = "DeleteWebACL" + +// DeleteWebACLRequest generates a "aws/request.Request" representing the +// client's request for the DeleteWebACL operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteWebACL for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteWebACL method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteWebACLRequest method. +// req, resp := client.DeleteWebACLRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteWebACL +func (c *WAFRegional) DeleteWebACLRequest(input *waf.DeleteWebACLInput) (req *request.Request, output *waf.DeleteWebACLOutput) { + op := &request.Operation{ + Name: opDeleteWebACL, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.DeleteWebACLInput{} + } + + output = &waf.DeleteWebACLOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteWebACL API operation for AWS WAF Regional. +// +// Permanently deletes a WebACL. You can't delete a WebACL if it still contains +// any Rules. +// +// To delete a WebACL, perform the following steps: +// +// Update the WebACL to remove Rules, if any. For more information, see UpdateWebACL. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of a DeleteWebACL request. +// +// Submit a DeleteWebACL request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation DeleteWebACL for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// * You tried to delete a Rule that is still referenced by a WebACL. +// +// * ErrCodeWAFNonEmptyEntityException "WAFNonEmptyEntityException" +// The operation failed because you tried to delete an object that isn't empty. +// For example: +// +// * You tried to delete a WebACL that still contains one or more Rule objects. +// +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. +// +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. +// +// * You tried to delete an IPSet that references one or more IP addresses. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteWebACL +func (c *WAFRegional) DeleteWebACL(input *waf.DeleteWebACLInput) (*waf.DeleteWebACLOutput, error) { + req, out := c.DeleteWebACLRequest(input) + err := req.Send() + return out, err +} + +const opDeleteXssMatchSet = "DeleteXssMatchSet" + +// DeleteXssMatchSetRequest generates a "aws/request.Request" representing the +// client's request for the DeleteXssMatchSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteXssMatchSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteXssMatchSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteXssMatchSetRequest method. +// req, resp := client.DeleteXssMatchSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteXssMatchSet +func (c *WAFRegional) DeleteXssMatchSetRequest(input *waf.DeleteXssMatchSetInput) (req *request.Request, output *waf.DeleteXssMatchSetOutput) { + op := &request.Operation{ + Name: opDeleteXssMatchSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.DeleteXssMatchSetInput{} + } + + output = &waf.DeleteXssMatchSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteXssMatchSet API operation for AWS WAF Regional. +// +// Permanently deletes an XssMatchSet. You can't delete an XssMatchSet if it's +// still used in any Rules or if it still contains any XssMatchTuple objects. +// +// If you just want to remove an XssMatchSet from a Rule, use UpdateRule. +// +// To permanently delete an XssMatchSet from AWS WAF, perform the following +// steps: +// +// Update the XssMatchSet to remove filters, if any. For more information, see +// UpdateXssMatchSet. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of a DeleteXssMatchSet request. +// +// Submit a DeleteXssMatchSet request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation DeleteXssMatchSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// * You tried to delete a Rule that is still referenced by a WebACL. +// +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFNonEmptyEntityException "WAFNonEmptyEntityException" +// The operation failed because you tried to delete an object that isn't empty. +// For example: +// +// * You tried to delete a WebACL that still contains one or more Rule objects. +// +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. +// +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. +// +// * You tried to delete an IPSet that references one or more IP addresses. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteXssMatchSet +func (c *WAFRegional) DeleteXssMatchSet(input *waf.DeleteXssMatchSetInput) (*waf.DeleteXssMatchSetOutput, error) { + req, out := c.DeleteXssMatchSetRequest(input) + err := req.Send() + return out, err +} + +const opDisassociateWebACL = "DisassociateWebACL" + +// DisassociateWebACLRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateWebACL operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DisassociateWebACL for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DisassociateWebACL method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DisassociateWebACLRequest method. +// req, resp := client.DisassociateWebACLRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DisassociateWebACL +func (c *WAFRegional) DisassociateWebACLRequest(input *DisassociateWebACLInput) (req *request.Request, output *DisassociateWebACLOutput) { + op := &request.Operation{ + Name: opDisassociateWebACL, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisassociateWebACLInput{} + } + + output = &DisassociateWebACLOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateWebACL API operation for AWS WAF Regional. +// +// Removes a web ACL from the specified resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation DisassociateWebACL for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// * You specified an invalid parameter name. +// +// * You specified an invalid value. +// +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. +// +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. +// +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DisassociateWebACL +func (c *WAFRegional) DisassociateWebACL(input *DisassociateWebACLInput) (*DisassociateWebACLOutput, error) { + req, out := c.DisassociateWebACLRequest(input) + err := req.Send() + return out, err +} + +const opGetByteMatchSet = "GetByteMatchSet" + +// GetByteMatchSetRequest generates a "aws/request.Request" representing the +// client's request for the GetByteMatchSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetByteMatchSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetByteMatchSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetByteMatchSetRequest method. +// req, resp := client.GetByteMatchSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetByteMatchSet +func (c *WAFRegional) GetByteMatchSetRequest(input *waf.GetByteMatchSetInput) (req *request.Request, output *waf.GetByteMatchSetOutput) { + op := &request.Operation{ + Name: opGetByteMatchSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.GetByteMatchSetInput{} + } + + output = &waf.GetByteMatchSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetByteMatchSet API operation for AWS WAF Regional. +// +// Returns the ByteMatchSet specified by ByteMatchSetId. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation GetByteMatchSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetByteMatchSet +func (c *WAFRegional) GetByteMatchSet(input *waf.GetByteMatchSetInput) (*waf.GetByteMatchSetOutput, error) { + req, out := c.GetByteMatchSetRequest(input) + err := req.Send() + return out, err +} + +const opGetChangeToken = "GetChangeToken" + +// GetChangeTokenRequest generates a "aws/request.Request" representing the +// client's request for the GetChangeToken operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetChangeToken for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetChangeToken method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetChangeTokenRequest method. +// req, resp := client.GetChangeTokenRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetChangeToken +func (c *WAFRegional) GetChangeTokenRequest(input *waf.GetChangeTokenInput) (req *request.Request, output *waf.GetChangeTokenOutput) { + op := &request.Operation{ + Name: opGetChangeToken, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.GetChangeTokenInput{} + } + + output = &waf.GetChangeTokenOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetChangeToken API operation for AWS WAF Regional. +// +// When you want to create, update, or delete AWS WAF objects, get a change +// token and include the change token in the create, update, or delete request. +// Change tokens ensure that your application doesn't submit conflicting requests +// to AWS WAF. +// +// Each create, update, or delete request must use a unique change token. If +// your application submits a GetChangeToken request and then submits a second +// GetChangeToken request before submitting a create, update, or delete request, +// the second GetChangeToken request returns the same value as the first GetChangeToken +// request. +// +// When you use a change token in a create, update, or delete request, the status +// of the change token changes to PENDING, which indicates that AWS WAF is propagating +// the change to all AWS WAF servers. Use GetChangeTokenStatus to determine +// the status of your change token. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation GetChangeToken for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetChangeToken +func (c *WAFRegional) GetChangeToken(input *waf.GetChangeTokenInput) (*waf.GetChangeTokenOutput, error) { + req, out := c.GetChangeTokenRequest(input) + err := req.Send() + return out, err +} + +const opGetChangeTokenStatus = "GetChangeTokenStatus" + +// GetChangeTokenStatusRequest generates a "aws/request.Request" representing the +// client's request for the GetChangeTokenStatus operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetChangeTokenStatus for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetChangeTokenStatus method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetChangeTokenStatusRequest method. +// req, resp := client.GetChangeTokenStatusRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetChangeTokenStatus +func (c *WAFRegional) GetChangeTokenStatusRequest(input *waf.GetChangeTokenStatusInput) (req *request.Request, output *waf.GetChangeTokenStatusOutput) { + op := &request.Operation{ + Name: opGetChangeTokenStatus, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.GetChangeTokenStatusInput{} + } + + output = &waf.GetChangeTokenStatusOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetChangeTokenStatus API operation for AWS WAF Regional. +// +// Returns the status of a ChangeToken that you got by calling GetChangeToken. +// ChangeTokenStatus is one of the following values: +// +// * PROVISIONED: You requested the change token by calling GetChangeToken, +// but you haven't used it yet in a call to create, update, or delete an +// AWS WAF object. +// +// * PENDING: AWS WAF is propagating the create, update, or delete request +// to all AWS WAF servers. +// +// * IN_SYNC: Propagation is complete. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation GetChangeTokenStatus for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetChangeTokenStatus +func (c *WAFRegional) GetChangeTokenStatus(input *waf.GetChangeTokenStatusInput) (*waf.GetChangeTokenStatusOutput, error) { + req, out := c.GetChangeTokenStatusRequest(input) + err := req.Send() + return out, err +} + +const opGetIPSet = "GetIPSet" + +// GetIPSetRequest generates a "aws/request.Request" representing the +// client's request for the GetIPSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetIPSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetIPSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetIPSetRequest method. +// req, resp := client.GetIPSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetIPSet +func (c *WAFRegional) GetIPSetRequest(input *waf.GetIPSetInput) (req *request.Request, output *waf.GetIPSetOutput) { + op := &request.Operation{ + Name: opGetIPSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.GetIPSetInput{} + } + + output = &waf.GetIPSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetIPSet API operation for AWS WAF Regional. +// +// Returns the IPSet that is specified by IPSetId. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation GetIPSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetIPSet +func (c *WAFRegional) GetIPSet(input *waf.GetIPSetInput) (*waf.GetIPSetOutput, error) { + req, out := c.GetIPSetRequest(input) + err := req.Send() + return out, err +} + +const opGetRule = "GetRule" + +// GetRuleRequest generates a "aws/request.Request" representing the +// client's request for the GetRule operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetRule for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetRule method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetRuleRequest method. +// req, resp := client.GetRuleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetRule +func (c *WAFRegional) GetRuleRequest(input *waf.GetRuleInput) (req *request.Request, output *waf.GetRuleOutput) { + op := &request.Operation{ + Name: opGetRule, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.GetRuleInput{} + } + + output = &waf.GetRuleOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetRule API operation for AWS WAF Regional. +// +// Returns the Rule that is specified by the RuleId that you included in the +// GetRule request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation GetRule for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetRule +func (c *WAFRegional) GetRule(input *waf.GetRuleInput) (*waf.GetRuleOutput, error) { + req, out := c.GetRuleRequest(input) + err := req.Send() + return out, err +} + +const opGetSampledRequests = "GetSampledRequests" + +// GetSampledRequestsRequest generates a "aws/request.Request" representing the +// client's request for the GetSampledRequests operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetSampledRequests for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetSampledRequests method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetSampledRequestsRequest method. +// req, resp := client.GetSampledRequestsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetSampledRequests +func (c *WAFRegional) GetSampledRequestsRequest(input *waf.GetSampledRequestsInput) (req *request.Request, output *waf.GetSampledRequestsOutput) { + op := &request.Operation{ + Name: opGetSampledRequests, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.GetSampledRequestsInput{} + } + + output = &waf.GetSampledRequestsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetSampledRequests API operation for AWS WAF Regional. +// +// Gets detailed information about a specified number of requests--a sample--that +// AWS WAF randomly selects from among the first 5,000 requests that your AWS +// resource received during a time range that you choose. You can specify a +// sample size of up to 500 requests, and you can specify any time range in +// the previous three hours. +// +// GetSampledRequests returns a time range, which is usually the time range +// that you specified. However, if your resource (such as a CloudFront distribution) +// received 5,000 requests before the specified time range elapsed, GetSampledRequests +// returns an updated time range. This new time range indicates the actual period +// during which AWS WAF selected the requests in the sample. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation GetSampledRequests for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetSampledRequests +func (c *WAFRegional) GetSampledRequests(input *waf.GetSampledRequestsInput) (*waf.GetSampledRequestsOutput, error) { + req, out := c.GetSampledRequestsRequest(input) + err := req.Send() + return out, err +} + +const opGetSizeConstraintSet = "GetSizeConstraintSet" + +// GetSizeConstraintSetRequest generates a "aws/request.Request" representing the +// client's request for the GetSizeConstraintSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetSizeConstraintSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetSizeConstraintSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetSizeConstraintSetRequest method. +// req, resp := client.GetSizeConstraintSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetSizeConstraintSet +func (c *WAFRegional) GetSizeConstraintSetRequest(input *waf.GetSizeConstraintSetInput) (req *request.Request, output *waf.GetSizeConstraintSetOutput) { + op := &request.Operation{ + Name: opGetSizeConstraintSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.GetSizeConstraintSetInput{} + } + + output = &waf.GetSizeConstraintSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetSizeConstraintSet API operation for AWS WAF Regional. +// +// Returns the SizeConstraintSet specified by SizeConstraintSetId. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation GetSizeConstraintSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetSizeConstraintSet +func (c *WAFRegional) GetSizeConstraintSet(input *waf.GetSizeConstraintSetInput) (*waf.GetSizeConstraintSetOutput, error) { + req, out := c.GetSizeConstraintSetRequest(input) + err := req.Send() + return out, err +} + +const opGetSqlInjectionMatchSet = "GetSqlInjectionMatchSet" + +// GetSqlInjectionMatchSetRequest generates a "aws/request.Request" representing the +// client's request for the GetSqlInjectionMatchSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetSqlInjectionMatchSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetSqlInjectionMatchSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetSqlInjectionMatchSetRequest method. +// req, resp := client.GetSqlInjectionMatchSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetSqlInjectionMatchSet +func (c *WAFRegional) GetSqlInjectionMatchSetRequest(input *waf.GetSqlInjectionMatchSetInput) (req *request.Request, output *waf.GetSqlInjectionMatchSetOutput) { + op := &request.Operation{ + Name: opGetSqlInjectionMatchSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.GetSqlInjectionMatchSetInput{} + } + + output = &waf.GetSqlInjectionMatchSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetSqlInjectionMatchSet API operation for AWS WAF Regional. +// +// Returns the SqlInjectionMatchSet that is specified by SqlInjectionMatchSetId. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation GetSqlInjectionMatchSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetSqlInjectionMatchSet +func (c *WAFRegional) GetSqlInjectionMatchSet(input *waf.GetSqlInjectionMatchSetInput) (*waf.GetSqlInjectionMatchSetOutput, error) { + req, out := c.GetSqlInjectionMatchSetRequest(input) + err := req.Send() + return out, err +} + +const opGetWebACL = "GetWebACL" + +// GetWebACLRequest generates a "aws/request.Request" representing the +// client's request for the GetWebACL operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetWebACL for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetWebACL method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetWebACLRequest method. +// req, resp := client.GetWebACLRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetWebACL +func (c *WAFRegional) GetWebACLRequest(input *waf.GetWebACLInput) (req *request.Request, output *waf.GetWebACLOutput) { + op := &request.Operation{ + Name: opGetWebACL, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.GetWebACLInput{} + } + + output = &waf.GetWebACLOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetWebACL API operation for AWS WAF Regional. +// +// Returns the WebACL that is specified by WebACLId. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation GetWebACL for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetWebACL +func (c *WAFRegional) GetWebACL(input *waf.GetWebACLInput) (*waf.GetWebACLOutput, error) { + req, out := c.GetWebACLRequest(input) + err := req.Send() + return out, err +} + +const opGetWebACLForResource = "GetWebACLForResource" + +// GetWebACLForResourceRequest generates a "aws/request.Request" representing the +// client's request for the GetWebACLForResource operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetWebACLForResource for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetWebACLForResource method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetWebACLForResourceRequest method. +// req, resp := client.GetWebACLForResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetWebACLForResource +func (c *WAFRegional) GetWebACLForResourceRequest(input *GetWebACLForResourceInput) (req *request.Request, output *GetWebACLForResourceOutput) { + op := &request.Operation{ + Name: opGetWebACLForResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetWebACLForResourceInput{} + } + + output = &GetWebACLForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetWebACLForResource API operation for AWS WAF Regional. +// +// Returns the web ACL for the specified resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation GetWebACLForResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// * You specified an invalid parameter name. +// +// * You specified an invalid value. +// +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. +// +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. +// +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeWAFUnavailableEntityException "WAFUnavailableEntityException" +// The operation failed because the entity referenced is temporarily unavailable. +// Retry your request. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetWebACLForResource +func (c *WAFRegional) GetWebACLForResource(input *GetWebACLForResourceInput) (*GetWebACLForResourceOutput, error) { + req, out := c.GetWebACLForResourceRequest(input) + err := req.Send() + return out, err +} + +const opGetXssMatchSet = "GetXssMatchSet" + +// GetXssMatchSetRequest generates a "aws/request.Request" representing the +// client's request for the GetXssMatchSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetXssMatchSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetXssMatchSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetXssMatchSetRequest method. +// req, resp := client.GetXssMatchSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetXssMatchSet +func (c *WAFRegional) GetXssMatchSetRequest(input *waf.GetXssMatchSetInput) (req *request.Request, output *waf.GetXssMatchSetOutput) { + op := &request.Operation{ + Name: opGetXssMatchSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.GetXssMatchSetInput{} + } + + output = &waf.GetXssMatchSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetXssMatchSet API operation for AWS WAF Regional. +// +// Returns the XssMatchSet that is specified by XssMatchSetId. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation GetXssMatchSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetXssMatchSet +func (c *WAFRegional) GetXssMatchSet(input *waf.GetXssMatchSetInput) (*waf.GetXssMatchSetOutput, error) { + req, out := c.GetXssMatchSetRequest(input) + err := req.Send() + return out, err +} + +const opListByteMatchSets = "ListByteMatchSets" + +// ListByteMatchSetsRequest generates a "aws/request.Request" representing the +// client's request for the ListByteMatchSets operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListByteMatchSets for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListByteMatchSets method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListByteMatchSetsRequest method. +// req, resp := client.ListByteMatchSetsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListByteMatchSets +func (c *WAFRegional) ListByteMatchSetsRequest(input *waf.ListByteMatchSetsInput) (req *request.Request, output *waf.ListByteMatchSetsOutput) { + op := &request.Operation{ + Name: opListByteMatchSets, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.ListByteMatchSetsInput{} + } + + output = &waf.ListByteMatchSetsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListByteMatchSets API operation for AWS WAF Regional. +// +// Returns an array of ByteMatchSetSummary objects. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation ListByteMatchSets for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListByteMatchSets +func (c *WAFRegional) ListByteMatchSets(input *waf.ListByteMatchSetsInput) (*waf.ListByteMatchSetsOutput, error) { + req, out := c.ListByteMatchSetsRequest(input) + err := req.Send() + return out, err +} + +const opListIPSets = "ListIPSets" + +// ListIPSetsRequest generates a "aws/request.Request" representing the +// client's request for the ListIPSets operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListIPSets for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListIPSets method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListIPSetsRequest method. +// req, resp := client.ListIPSetsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListIPSets +func (c *WAFRegional) ListIPSetsRequest(input *waf.ListIPSetsInput) (req *request.Request, output *waf.ListIPSetsOutput) { + op := &request.Operation{ + Name: opListIPSets, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.ListIPSetsInput{} + } + + output = &waf.ListIPSetsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListIPSets API operation for AWS WAF Regional. +// +// Returns an array of IPSetSummary objects in the response. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation ListIPSets for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListIPSets +func (c *WAFRegional) ListIPSets(input *waf.ListIPSetsInput) (*waf.ListIPSetsOutput, error) { + req, out := c.ListIPSetsRequest(input) + err := req.Send() + return out, err +} + +const opListResourcesForWebACL = "ListResourcesForWebACL" + +// ListResourcesForWebACLRequest generates a "aws/request.Request" representing the +// client's request for the ListResourcesForWebACL operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListResourcesForWebACL for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListResourcesForWebACL method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListResourcesForWebACLRequest method. +// req, resp := client.ListResourcesForWebACLRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListResourcesForWebACL +func (c *WAFRegional) ListResourcesForWebACLRequest(input *ListResourcesForWebACLInput) (req *request.Request, output *ListResourcesForWebACLOutput) { + op := &request.Operation{ + Name: opListResourcesForWebACL, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListResourcesForWebACLInput{} + } + + output = &ListResourcesForWebACLOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListResourcesForWebACL API operation for AWS WAF Regional. +// +// Returns an array of resources associated with the specified web ACL. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation ListResourcesForWebACL for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListResourcesForWebACL +func (c *WAFRegional) ListResourcesForWebACL(input *ListResourcesForWebACLInput) (*ListResourcesForWebACLOutput, error) { + req, out := c.ListResourcesForWebACLRequest(input) + err := req.Send() + return out, err +} + +const opListRules = "ListRules" + +// ListRulesRequest generates a "aws/request.Request" representing the +// client's request for the ListRules operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListRules for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListRules method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListRulesRequest method. +// req, resp := client.ListRulesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListRules +func (c *WAFRegional) ListRulesRequest(input *waf.ListRulesInput) (req *request.Request, output *waf.ListRulesOutput) { + op := &request.Operation{ + Name: opListRules, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.ListRulesInput{} + } + + output = &waf.ListRulesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListRules API operation for AWS WAF Regional. +// +// Returns an array of RuleSummary objects. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation ListRules for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListRules +func (c *WAFRegional) ListRules(input *waf.ListRulesInput) (*waf.ListRulesOutput, error) { + req, out := c.ListRulesRequest(input) + err := req.Send() + return out, err +} + +const opListSizeConstraintSets = "ListSizeConstraintSets" + +// ListSizeConstraintSetsRequest generates a "aws/request.Request" representing the +// client's request for the ListSizeConstraintSets operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListSizeConstraintSets for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListSizeConstraintSets method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListSizeConstraintSetsRequest method. +// req, resp := client.ListSizeConstraintSetsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListSizeConstraintSets +func (c *WAFRegional) ListSizeConstraintSetsRequest(input *waf.ListSizeConstraintSetsInput) (req *request.Request, output *waf.ListSizeConstraintSetsOutput) { + op := &request.Operation{ + Name: opListSizeConstraintSets, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.ListSizeConstraintSetsInput{} + } + + output = &waf.ListSizeConstraintSetsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListSizeConstraintSets API operation for AWS WAF Regional. +// +// Returns an array of SizeConstraintSetSummary objects. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation ListSizeConstraintSets for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListSizeConstraintSets +func (c *WAFRegional) ListSizeConstraintSets(input *waf.ListSizeConstraintSetsInput) (*waf.ListSizeConstraintSetsOutput, error) { + req, out := c.ListSizeConstraintSetsRequest(input) + err := req.Send() + return out, err +} + +const opListSqlInjectionMatchSets = "ListSqlInjectionMatchSets" + +// ListSqlInjectionMatchSetsRequest generates a "aws/request.Request" representing the +// client's request for the ListSqlInjectionMatchSets operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListSqlInjectionMatchSets for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListSqlInjectionMatchSets method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListSqlInjectionMatchSetsRequest method. +// req, resp := client.ListSqlInjectionMatchSetsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListSqlInjectionMatchSets +func (c *WAFRegional) ListSqlInjectionMatchSetsRequest(input *waf.ListSqlInjectionMatchSetsInput) (req *request.Request, output *waf.ListSqlInjectionMatchSetsOutput) { + op := &request.Operation{ + Name: opListSqlInjectionMatchSets, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.ListSqlInjectionMatchSetsInput{} + } + + output = &waf.ListSqlInjectionMatchSetsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListSqlInjectionMatchSets API operation for AWS WAF Regional. +// +// Returns an array of SqlInjectionMatchSet objects. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation ListSqlInjectionMatchSets for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListSqlInjectionMatchSets +func (c *WAFRegional) ListSqlInjectionMatchSets(input *waf.ListSqlInjectionMatchSetsInput) (*waf.ListSqlInjectionMatchSetsOutput, error) { + req, out := c.ListSqlInjectionMatchSetsRequest(input) + err := req.Send() + return out, err +} + +const opListWebACLs = "ListWebACLs" + +// ListWebACLsRequest generates a "aws/request.Request" representing the +// client's request for the ListWebACLs operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListWebACLs for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListWebACLs method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListWebACLsRequest method. +// req, resp := client.ListWebACLsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListWebACLs +func (c *WAFRegional) ListWebACLsRequest(input *waf.ListWebACLsInput) (req *request.Request, output *waf.ListWebACLsOutput) { + op := &request.Operation{ + Name: opListWebACLs, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.ListWebACLsInput{} + } + + output = &waf.ListWebACLsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListWebACLs API operation for AWS WAF Regional. +// +// Returns an array of WebACLSummary objects in the response. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation ListWebACLs for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListWebACLs +func (c *WAFRegional) ListWebACLs(input *waf.ListWebACLsInput) (*waf.ListWebACLsOutput, error) { + req, out := c.ListWebACLsRequest(input) + err := req.Send() + return out, err +} + +const opListXssMatchSets = "ListXssMatchSets" + +// ListXssMatchSetsRequest generates a "aws/request.Request" representing the +// client's request for the ListXssMatchSets operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ListXssMatchSets for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ListXssMatchSets method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ListXssMatchSetsRequest method. +// req, resp := client.ListXssMatchSetsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListXssMatchSets +func (c *WAFRegional) ListXssMatchSetsRequest(input *waf.ListXssMatchSetsInput) (req *request.Request, output *waf.ListXssMatchSetsOutput) { + op := &request.Operation{ + Name: opListXssMatchSets, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.ListXssMatchSetsInput{} + } + + output = &waf.ListXssMatchSetsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListXssMatchSets API operation for AWS WAF Regional. +// +// Returns an array of XssMatchSet objects. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation ListXssMatchSets for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListXssMatchSets +func (c *WAFRegional) ListXssMatchSets(input *waf.ListXssMatchSetsInput) (*waf.ListXssMatchSetsOutput, error) { + req, out := c.ListXssMatchSetsRequest(input) + err := req.Send() + return out, err +} + +const opUpdateByteMatchSet = "UpdateByteMatchSet" + +// UpdateByteMatchSetRequest generates a "aws/request.Request" representing the +// client's request for the UpdateByteMatchSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateByteMatchSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateByteMatchSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateByteMatchSetRequest method. +// req, resp := client.UpdateByteMatchSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/UpdateByteMatchSet +func (c *WAFRegional) UpdateByteMatchSetRequest(input *waf.UpdateByteMatchSetInput) (req *request.Request, output *waf.UpdateByteMatchSetOutput) { + op := &request.Operation{ + Name: opUpdateByteMatchSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.UpdateByteMatchSetInput{} + } + + output = &waf.UpdateByteMatchSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateByteMatchSet API operation for AWS WAF Regional. +// +// Inserts or deletes ByteMatchTuple objects (filters) in a ByteMatchSet. For +// each ByteMatchTuple object, you specify the following values: +// +// * Whether to insert or delete the object from the array. If you want to +// change a ByteMatchSetUpdate object, you delete the existing object and +// add a new one. +// +// * The part of a web request that you want AWS WAF to inspect, such as +// a query string or the value of the User-Agent header. +// +// * The bytes (typically a string that corresponds with ASCII characters) +// that you want AWS WAF to look for. For more information, including how +// you specify the values for the AWS WAF API and the AWS CLI or SDKs, see +// TargetString in the ByteMatchTuple data type. +// +// * Where to look, such as at the beginning or the end of a query string. +// +// * Whether to perform any conversions on the request, such as converting +// it to lowercase, before inspecting it for the specified string. +// +// For example, you can add a ByteMatchSetUpdate object that matches web requests +// in which User-Agent headers contain the string BadBot. You can then configure +// AWS WAF to block those requests. +// +// To create and configure a ByteMatchSet, perform the following steps: +// +// Create a ByteMatchSet. For more information, see CreateByteMatchSet. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of an UpdateByteMatchSet request. +// +// Submit an UpdateByteMatchSet request to specify the part of the request that +// you want AWS WAF to inspect (for example, the header or the URI) and the +// value that you want AWS WAF to watch for. +// +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation UpdateByteMatchSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFInvalidOperationException "WAFInvalidOperationException" +// The operation failed because there was nothing to do. For example: +// +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. +// +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. +// +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. +// +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. +// +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. +// +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. +// +// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// * You specified an invalid parameter name. +// +// * You specified an invalid value. +// +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. +// +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. +// +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeWAFNonexistentContainerException "WAFNonexistentContainerException" +// The operation failed because you tried to add an object to or delete an object +// from another object that doesn't exist. For example: +// +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. +// +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. +// +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. +// +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/UpdateByteMatchSet +func (c *WAFRegional) UpdateByteMatchSet(input *waf.UpdateByteMatchSetInput) (*waf.UpdateByteMatchSetOutput, error) { + req, out := c.UpdateByteMatchSetRequest(input) + err := req.Send() + return out, err +} + +const opUpdateIPSet = "UpdateIPSet" + +// UpdateIPSetRequest generates a "aws/request.Request" representing the +// client's request for the UpdateIPSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateIPSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateIPSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateIPSetRequest method. +// req, resp := client.UpdateIPSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/UpdateIPSet +func (c *WAFRegional) UpdateIPSetRequest(input *waf.UpdateIPSetInput) (req *request.Request, output *waf.UpdateIPSetOutput) { + op := &request.Operation{ + Name: opUpdateIPSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.UpdateIPSetInput{} + } + + output = &waf.UpdateIPSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateIPSet API operation for AWS WAF Regional. +// +// Inserts or deletes IPSetDescriptor objects in an IPSet. For each IPSetDescriptor +// object, you specify the following values: +// +// * Whether to insert or delete the object from the array. If you want to +// change an IPSetDescriptor object, you delete the existing object and add +// a new one. +// +// * The IP address version, IPv4 or IPv6. +// +// * The IP address in CIDR notation, for example, 192.0.2.0/24 (for the +// range of IP addresses from 192.0.2.0 to 192.0.2.255) or 192.0.2.44/32 +// (for the individual IP address 192.0.2.44). +// +// AWS WAF supports /8, /16, /24, and /32 IP address ranges for IPv4, and /24, +// /32, /48, /56, /64 and /128 for IPv6. For more information about CIDR notation, +// see the Wikipedia entry Classless Inter-Domain Routing (https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). +// +// IPv6 addresses can be represented using any of the following formats: +// +// * 1111:0000:0000:0000:0000:0000:0000:0111/128 +// +// * 1111:0:0:0:0:0:0:0111/128 +// +// * 1111::0111/128 +// +// * 1111::111/128 +// +// You use an IPSet to specify which web requests you want to allow or block +// based on the IP addresses that the requests originated from. For example, +// if you're receiving a lot of requests from one or a small number of IP addresses +// and you want to block the requests, you can create an IPSet that specifies +// those IP addresses, and then configure AWS WAF to block the requests. +// +// To create and configure an IPSet, perform the following steps: +// +// Submit a CreateIPSet request. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of an UpdateIPSet request. +// +// Submit an UpdateIPSet request to specify the IP addresses that you want AWS +// WAF to watch for. +// +// When you update an IPSet, you specify the IP addresses that you want to add +// and/or the IP addresses that you want to delete. If you want to change an +// IP address, you delete the existing IP address and add the new one. +// +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation UpdateIPSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFInvalidOperationException "WAFInvalidOperationException" +// The operation failed because there was nothing to do. For example: +// +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. +// +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. +// +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. +// +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. +// +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. +// +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. +// +// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// * You specified an invalid parameter name. +// +// * You specified an invalid value. +// +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. +// +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. +// +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeWAFNonexistentContainerException "WAFNonexistentContainerException" +// The operation failed because you tried to add an object to or delete an object +// from another object that doesn't exist. For example: +// +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. +// +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. +// +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. +// +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// * You tried to delete a Rule that is still referenced by a WebACL. +// +// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/UpdateIPSet +func (c *WAFRegional) UpdateIPSet(input *waf.UpdateIPSetInput) (*waf.UpdateIPSetOutput, error) { + req, out := c.UpdateIPSetRequest(input) + err := req.Send() + return out, err +} + +const opUpdateRule = "UpdateRule" + +// UpdateRuleRequest generates a "aws/request.Request" representing the +// client's request for the UpdateRule operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateRule for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateRule method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateRuleRequest method. +// req, resp := client.UpdateRuleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/UpdateRule +func (c *WAFRegional) UpdateRuleRequest(input *waf.UpdateRuleInput) (req *request.Request, output *waf.UpdateRuleOutput) { + op := &request.Operation{ + Name: opUpdateRule, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.UpdateRuleInput{} + } + + output = &waf.UpdateRuleOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateRule API operation for AWS WAF Regional. +// +// Inserts or deletes Predicate objects in a Rule. Each Predicate object identifies +// a predicate, such as a ByteMatchSet or an IPSet, that specifies the web requests +// that you want to allow, block, or count. If you add more than one predicate +// to a Rule, a request must match all of the specifications to be allowed, +// blocked, or counted. For example, suppose you add the following to a Rule: +// +// * A ByteMatchSet that matches the value BadBot in the User-Agent header +// +// * An IPSet that matches the IP address 192.0.2.44 +// +// You then add the Rule to a WebACL and specify that you want to block requests +// that satisfy the Rule. For a request to be blocked, the User-Agent header +// in the request must contain the value BadBotand the request must originate +// from the IP address 192.0.2.44. +// +// To create and configure a Rule, perform the following steps: +// +// Create and update the predicates that you want to include in the Rule. +// +// Create the Rule. See CreateRule. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of an UpdateRule request. +// +// Submit an UpdateRule request to add predicates to the Rule. +// +// Create and update a WebACL that contains the Rule. See CreateWebACL. +// +// If you want to replace one ByteMatchSet or IPSet with another, you delete +// the existing one and add the new one. +// +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation UpdateRule for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFInvalidOperationException "WAFInvalidOperationException" +// The operation failed because there was nothing to do. For example: +// +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. +// +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. +// +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. +// +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. +// +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. +// +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. +// +// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// * You specified an invalid parameter name. +// +// * You specified an invalid value. +// +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. +// +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. +// +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeWAFNonexistentContainerException "WAFNonexistentContainerException" +// The operation failed because you tried to add an object to or delete an object +// from another object that doesn't exist. For example: +// +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. +// +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. +// +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. +// +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// * You tried to delete a Rule that is still referenced by a WebACL. +// +// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/UpdateRule +func (c *WAFRegional) UpdateRule(input *waf.UpdateRuleInput) (*waf.UpdateRuleOutput, error) { + req, out := c.UpdateRuleRequest(input) + err := req.Send() + return out, err +} + +const opUpdateSizeConstraintSet = "UpdateSizeConstraintSet" + +// UpdateSizeConstraintSetRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSizeConstraintSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateSizeConstraintSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateSizeConstraintSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateSizeConstraintSetRequest method. +// req, resp := client.UpdateSizeConstraintSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/UpdateSizeConstraintSet +func (c *WAFRegional) UpdateSizeConstraintSetRequest(input *waf.UpdateSizeConstraintSetInput) (req *request.Request, output *waf.UpdateSizeConstraintSetOutput) { + op := &request.Operation{ + Name: opUpdateSizeConstraintSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.UpdateSizeConstraintSetInput{} + } + + output = &waf.UpdateSizeConstraintSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSizeConstraintSet API operation for AWS WAF Regional. +// +// Inserts or deletes SizeConstraint objects (filters) in a SizeConstraintSet. +// For each SizeConstraint object, you specify the following values: +// +// * Whether to insert or delete the object from the array. If you want to +// change a SizeConstraintSetUpdate object, you delete the existing object +// and add a new one. +// +// * The part of a web request that you want AWS WAF to evaluate, such as +// the length of a query string or the length of the User-Agent header. +// +// * Whether to perform any transformations on the request, such as converting +// it to lowercase, before checking its length. Note that transformations +// of the request body are not supported because the AWS resource forwards +// only the first 8192 bytes of your request to AWS WAF. +// +// * A ComparisonOperator used for evaluating the selected part of the request +// against the specified Size, such as equals, greater than, less than, and +// so on. +// +// * The length, in bytes, that you want AWS WAF to watch for in selected +// part of the request. The length is computed after applying the transformation. +// +// For example, you can add a SizeConstraintSetUpdate object that matches web +// requests in which the length of the User-Agent header is greater than 100 +// bytes. You can then configure AWS WAF to block those requests. +// +// To create and configure a SizeConstraintSet, perform the following steps: +// +// Create a SizeConstraintSet. For more information, see CreateSizeConstraintSet. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of an UpdateSizeConstraintSet request. +// +// Submit an UpdateSizeConstraintSet request to specify the part of the request +// that you want AWS WAF to inspect (for example, the header or the URI) and +// the value that you want AWS WAF to watch for. +// +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation UpdateSizeConstraintSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFInvalidOperationException "WAFInvalidOperationException" +// The operation failed because there was nothing to do. For example: +// +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. +// +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. +// +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. +// +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. +// +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. +// +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. +// +// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// * You specified an invalid parameter name. +// +// * You specified an invalid value. +// +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. +// +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. +// +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeWAFNonexistentContainerException "WAFNonexistentContainerException" +// The operation failed because you tried to add an object to or delete an object +// from another object that doesn't exist. For example: +// +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. +// +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. +// +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. +// +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// * You tried to delete a Rule that is still referenced by a WebACL. +// +// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/UpdateSizeConstraintSet +func (c *WAFRegional) UpdateSizeConstraintSet(input *waf.UpdateSizeConstraintSetInput) (*waf.UpdateSizeConstraintSetOutput, error) { + req, out := c.UpdateSizeConstraintSetRequest(input) + err := req.Send() + return out, err +} + +const opUpdateSqlInjectionMatchSet = "UpdateSqlInjectionMatchSet" + +// UpdateSqlInjectionMatchSetRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSqlInjectionMatchSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateSqlInjectionMatchSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateSqlInjectionMatchSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateSqlInjectionMatchSetRequest method. +// req, resp := client.UpdateSqlInjectionMatchSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/UpdateSqlInjectionMatchSet +func (c *WAFRegional) UpdateSqlInjectionMatchSetRequest(input *waf.UpdateSqlInjectionMatchSetInput) (req *request.Request, output *waf.UpdateSqlInjectionMatchSetOutput) { + op := &request.Operation{ + Name: opUpdateSqlInjectionMatchSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.UpdateSqlInjectionMatchSetInput{} + } + + output = &waf.UpdateSqlInjectionMatchSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSqlInjectionMatchSet API operation for AWS WAF Regional. +// +// Inserts or deletes SqlInjectionMatchTuple objects (filters) in a SqlInjectionMatchSet. +// For each SqlInjectionMatchTuple object, you specify the following values: +// +// * Action: Whether to insert the object into or delete the object from +// the array. To change a SqlInjectionMatchTuple, you delete the existing +// object and add a new one. +// +// * FieldToMatch: The part of web requests that you want AWS WAF to inspect +// and, if you want AWS WAF to inspect a header, the name of the header. +// +// * TextTransformation: Which text transformation, if any, to perform on +// the web request before inspecting the request for snippets of malicious +// SQL code. +// +// You use SqlInjectionMatchSet objects to specify which CloudFront requests +// you want to allow, block, or count. For example, if you're receiving requests +// that contain snippets of SQL code in the query string and you want to block +// the requests, you can create a SqlInjectionMatchSet with the applicable settings, +// and then configure AWS WAF to block the requests. +// +// To create and configure a SqlInjectionMatchSet, perform the following steps: +// +// Submit a CreateSqlInjectionMatchSet request. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of an UpdateIPSet request. +// +// Submit an UpdateSqlInjectionMatchSet request to specify the parts of web +// requests that you want AWS WAF to inspect for snippets of SQL code. +// +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation UpdateSqlInjectionMatchSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFInvalidOperationException "WAFInvalidOperationException" +// The operation failed because there was nothing to do. For example: +// +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. +// +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. +// +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. +// +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. +// +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. +// +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. +// +// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// * You specified an invalid parameter name. +// +// * You specified an invalid value. +// +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. +// +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. +// +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeWAFNonexistentContainerException "WAFNonexistentContainerException" +// The operation failed because you tried to add an object to or delete an object +// from another object that doesn't exist. For example: +// +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. +// +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. +// +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. +// +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/UpdateSqlInjectionMatchSet +func (c *WAFRegional) UpdateSqlInjectionMatchSet(input *waf.UpdateSqlInjectionMatchSetInput) (*waf.UpdateSqlInjectionMatchSetOutput, error) { + req, out := c.UpdateSqlInjectionMatchSetRequest(input) + err := req.Send() + return out, err +} + +const opUpdateWebACL = "UpdateWebACL" + +// UpdateWebACLRequest generates a "aws/request.Request" representing the +// client's request for the UpdateWebACL operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateWebACL for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateWebACL method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateWebACLRequest method. +// req, resp := client.UpdateWebACLRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/UpdateWebACL +func (c *WAFRegional) UpdateWebACLRequest(input *waf.UpdateWebACLInput) (req *request.Request, output *waf.UpdateWebACLOutput) { + op := &request.Operation{ + Name: opUpdateWebACL, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.UpdateWebACLInput{} + } + + output = &waf.UpdateWebACLOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateWebACL API operation for AWS WAF Regional. +// +// Inserts or deletes ActivatedRule objects in a WebACL. Each Rule identifies +// web requests that you want to allow, block, or count. When you update a WebACL, +// you specify the following values: +// +// * A default action for the WebACL, either ALLOW or BLOCK. AWS WAF performs +// the default action if a request doesn't match the criteria in any of the +// Rules in a WebACL. +// +// * The Rules that you want to add and/or delete. If you want to replace +// one Rule with another, you delete the existing Rule and add the new one. +// +// * For each Rule, whether you want AWS WAF to allow requests, block requests, +// or count requests that match the conditions in the Rule. +// +// * The order in which you want AWS WAF to evaluate the Rules in a WebACL. +// If you add more than one Rule to a WebACL, AWS WAF evaluates each request +// against the Rules in order based on the value of Priority. (The Rule that +// has the lowest value for Priority is evaluated first.) When a web request +// matches all of the predicates (such as ByteMatchSets and IPSets) in a +// Rule, AWS WAF immediately takes the corresponding action, allow or block, +// and doesn't evaluate the request against the remaining Rules in the WebACL, +// if any. +// +// To create and configure a WebACL, perform the following steps: +// +// Create and update the predicates that you want to include in Rules. For more +// information, see CreateByteMatchSet, UpdateByteMatchSet, CreateIPSet, UpdateIPSet, +// CreateSqlInjectionMatchSet, and UpdateSqlInjectionMatchSet. +// +// Create and update the Rules that you want to include in the WebACL. For more +// information, see CreateRule and UpdateRule. +// +// Create a WebACL. See CreateWebACL. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of an UpdateWebACL request. +// +// Submit an UpdateWebACL request to specify the Rules that you want to include +// in the WebACL, to specify the default action, and to associate the WebACL +// with a CloudFront distribution. +// +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation UpdateWebACL for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFInvalidOperationException "WAFInvalidOperationException" +// The operation failed because there was nothing to do. For example: +// +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. +// +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. +// +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. +// +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. +// +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. +// +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. +// +// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// * You specified an invalid parameter name. +// +// * You specified an invalid value. +// +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. +// +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. +// +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeWAFNonexistentContainerException "WAFNonexistentContainerException" +// The operation failed because you tried to add an object to or delete an object +// from another object that doesn't exist. For example: +// +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. +// +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. +// +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. +// +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// * You tried to delete a Rule that is still referenced by a WebACL. +// +// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/UpdateWebACL +func (c *WAFRegional) UpdateWebACL(input *waf.UpdateWebACLInput) (*waf.UpdateWebACLOutput, error) { + req, out := c.UpdateWebACLRequest(input) + err := req.Send() + return out, err +} + +const opUpdateXssMatchSet = "UpdateXssMatchSet" + +// UpdateXssMatchSetRequest generates a "aws/request.Request" representing the +// client's request for the UpdateXssMatchSet operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateXssMatchSet for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateXssMatchSet method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateXssMatchSetRequest method. +// req, resp := client.UpdateXssMatchSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/UpdateXssMatchSet +func (c *WAFRegional) UpdateXssMatchSetRequest(input *waf.UpdateXssMatchSetInput) (req *request.Request, output *waf.UpdateXssMatchSetOutput) { + op := &request.Operation{ + Name: opUpdateXssMatchSet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &waf.UpdateXssMatchSetInput{} + } + + output = &waf.UpdateXssMatchSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateXssMatchSet API operation for AWS WAF Regional. +// +// Inserts or deletes XssMatchTuple objects (filters) in an XssMatchSet. For +// each XssMatchTuple object, you specify the following values: +// +// * Action: Whether to insert the object into or delete the object from +// the array. To change a XssMatchTuple, you delete the existing object and +// add a new one. +// +// * FieldToMatch: The part of web requests that you want AWS WAF to inspect +// and, if you want AWS WAF to inspect a header, the name of the header. +// +// * TextTransformation: Which text transformation, if any, to perform on +// the web request before inspecting the request for cross-site scripting +// attacks. +// +// You use XssMatchSet objects to specify which CloudFront requests you want +// to allow, block, or count. For example, if you're receiving requests that +// contain cross-site scripting attacks in the request body and you want to +// block the requests, you can create an XssMatchSet with the applicable settings, +// and then configure AWS WAF to block the requests. +// +// To create and configure an XssMatchSet, perform the following steps: +// +// Submit a CreateXssMatchSet request. +// +// Use GetChangeToken to get the change token that you provide in the ChangeToken +// parameter of an UpdateIPSet request. +// +// Submit an UpdateXssMatchSet request to specify the parts of web requests +// that you want AWS WAF to inspect for cross-site scripting attacks. +// +// For more information about how to use the AWS WAF API to allow or block HTTP +// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF Regional's +// API operation UpdateXssMatchSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * ErrCodeWAFInvalidOperationException "WAFInvalidOperationException" +// The operation failed because there was nothing to do. For example: +// +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. +// +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. +// +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. +// +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. +// +// * You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. +// +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. +// +// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// * You specified an invalid parameter name. +// +// * You specified an invalid value. +// +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. +// +// * You tried to create a WebACL with a DefaultActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a WebACL with a WafActionType other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a ByteMatchSet with a FieldToMatchType other than +// HEADER, QUERY_STRING, or URI. +// +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +// +// * ErrCodeWAFNonexistentContainerException "WAFNonexistentContainerException" +// The operation failed because you tried to add an object to or delete an object +// from another object that doesn't exist. For example: +// +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. +// +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. +// +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. +// +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. +// +// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// The operation failed because the referenced object doesn't exist. +// +// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/UpdateXssMatchSet +func (c *WAFRegional) UpdateXssMatchSet(input *waf.UpdateXssMatchSetInput) (*waf.UpdateXssMatchSetOutput, error) { + req, out := c.UpdateXssMatchSetRequest(input) + err := req.Send() + return out, err +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/AssociateWebACLRequest +type AssociateWebACLInput struct { + _ struct{} `type:"structure"` + + // The ARN (Amazon Resource Name) of the resource to be protected. + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` + + // A unique identifier (ID) for the web ACL. + // + // WebACLId is a required field + WebACLId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateWebACLInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateWebACLInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateWebACLInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateWebACLInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.WebACLId == nil { + invalidParams.Add(request.NewErrParamRequired("WebACLId")) + } + if s.WebACLId != nil && len(*s.WebACLId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WebACLId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *AssociateWebACLInput) SetResourceArn(v string) *AssociateWebACLInput { + s.ResourceArn = &v + return s +} + +// SetWebACLId sets the WebACLId field's value. +func (s *AssociateWebACLInput) SetWebACLId(v string) *AssociateWebACLInput { + s.WebACLId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/AssociateWebACLResponse +type AssociateWebACLOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateWebACLOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateWebACLOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DisassociateWebACLRequest +type DisassociateWebACLInput struct { + _ struct{} `type:"structure"` + + // The ARN (Amazon Resource Name) of the resource from which the web ACL is + // being removed. + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateWebACLInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateWebACLInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateWebACLInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateWebACLInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *DisassociateWebACLInput) SetResourceArn(v string) *DisassociateWebACLInput { + s.ResourceArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DisassociateWebACLResponse +type DisassociateWebACLOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisassociateWebACLOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateWebACLOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetWebACLForResourceRequest +type GetWebACLForResourceInput struct { + _ struct{} `type:"structure"` + + // The ARN (Amazon Resource Name) of the resource for which to get the web ACL. + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetWebACLForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetWebACLForResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetWebACLForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetWebACLForResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *GetWebACLForResourceInput) SetResourceArn(v string) *GetWebACLForResourceInput { + s.ResourceArn = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetWebACLForResourceResponse +type GetWebACLForResourceOutput struct { + _ struct{} `type:"structure"` + + // Information about the web ACL that you specified in the GetWebACLForResource + // request. If there is no associated resource, a null WebACLSummary is returned. + WebACLSummary *waf.WebACLSummary `type:"structure"` +} + +// String returns the string representation +func (s GetWebACLForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetWebACLForResourceOutput) GoString() string { + return s.String() +} + +// SetWebACLSummary sets the WebACLSummary field's value. +func (s *GetWebACLForResourceOutput) SetWebACLSummary(v *waf.WebACLSummary) *GetWebACLForResourceOutput { + s.WebACLSummary = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListResourcesForWebACLRequest +type ListResourcesForWebACLInput struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) of the web ACL for which to list the associated + // resources. + // + // WebACLId is a required field + WebACLId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListResourcesForWebACLInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListResourcesForWebACLInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListResourcesForWebACLInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListResourcesForWebACLInput"} + if s.WebACLId == nil { + invalidParams.Add(request.NewErrParamRequired("WebACLId")) + } + if s.WebACLId != nil && len(*s.WebACLId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WebACLId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetWebACLId sets the WebACLId field's value. +func (s *ListResourcesForWebACLInput) SetWebACLId(v string) *ListResourcesForWebACLInput { + s.WebACLId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListResourcesForWebACLResponse +type ListResourcesForWebACLOutput struct { + _ struct{} `type:"structure"` + + // An array of ARNs (Amazon Resource Names) of the resources associated with + // the specified web ACL. An array with zero elements is returned if there are + // no resources associated with the web ACL. + ResourceArns []*string `type:"list"` +} + +// String returns the string representation +func (s ListResourcesForWebACLOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListResourcesForWebACLOutput) GoString() string { + return s.String() +} + +// SetResourceArns sets the ResourceArns field's value. +func (s *ListResourcesForWebACLOutput) SetResourceArns(v []*string) *ListResourcesForWebACLOutput { + s.ResourceArns = v + return s +} + +const ( + // ChangeActionInsert is a ChangeAction enum value + ChangeActionInsert = "INSERT" + + // ChangeActionDelete is a ChangeAction enum value + ChangeActionDelete = "DELETE" +) + +const ( + // ChangeTokenStatusProvisioned is a ChangeTokenStatus enum value + ChangeTokenStatusProvisioned = "PROVISIONED" + + // ChangeTokenStatusPending is a ChangeTokenStatus enum value + ChangeTokenStatusPending = "PENDING" + + // ChangeTokenStatusInsync is a ChangeTokenStatus enum value + ChangeTokenStatusInsync = "INSYNC" +) + +const ( + // ComparisonOperatorEq is a ComparisonOperator enum value + ComparisonOperatorEq = "EQ" + + // ComparisonOperatorNe is a ComparisonOperator enum value + ComparisonOperatorNe = "NE" + + // ComparisonOperatorLe is a ComparisonOperator enum value + ComparisonOperatorLe = "LE" + + // ComparisonOperatorLt is a ComparisonOperator enum value + ComparisonOperatorLt = "LT" + + // ComparisonOperatorGe is a ComparisonOperator enum value + ComparisonOperatorGe = "GE" + + // ComparisonOperatorGt is a ComparisonOperator enum value + ComparisonOperatorGt = "GT" +) + +const ( + // IPSetDescriptorTypeIpv4 is a IPSetDescriptorType enum value + IPSetDescriptorTypeIpv4 = "IPV4" + + // IPSetDescriptorTypeIpv6 is a IPSetDescriptorType enum value + IPSetDescriptorTypeIpv6 = "IPV6" +) + +const ( + // MatchFieldTypeUri is a MatchFieldType enum value + MatchFieldTypeUri = "URI" + + // MatchFieldTypeQueryString is a MatchFieldType enum value + MatchFieldTypeQueryString = "QUERY_STRING" + + // MatchFieldTypeHeader is a MatchFieldType enum value + MatchFieldTypeHeader = "HEADER" + + // MatchFieldTypeMethod is a MatchFieldType enum value + MatchFieldTypeMethod = "METHOD" + + // MatchFieldTypeBody is a MatchFieldType enum value + MatchFieldTypeBody = "BODY" +) + +const ( + // ParameterExceptionFieldChangeAction is a ParameterExceptionField enum value + ParameterExceptionFieldChangeAction = "CHANGE_ACTION" + + // ParameterExceptionFieldWafAction is a ParameterExceptionField enum value + ParameterExceptionFieldWafAction = "WAF_ACTION" + + // ParameterExceptionFieldPredicateType is a ParameterExceptionField enum value + ParameterExceptionFieldPredicateType = "PREDICATE_TYPE" + + // ParameterExceptionFieldIpsetType is a ParameterExceptionField enum value + ParameterExceptionFieldIpsetType = "IPSET_TYPE" + + // ParameterExceptionFieldByteMatchFieldType is a ParameterExceptionField enum value + ParameterExceptionFieldByteMatchFieldType = "BYTE_MATCH_FIELD_TYPE" + + // ParameterExceptionFieldSqlInjectionMatchFieldType is a ParameterExceptionField enum value + ParameterExceptionFieldSqlInjectionMatchFieldType = "SQL_INJECTION_MATCH_FIELD_TYPE" + + // ParameterExceptionFieldByteMatchTextTransformation is a ParameterExceptionField enum value + ParameterExceptionFieldByteMatchTextTransformation = "BYTE_MATCH_TEXT_TRANSFORMATION" + + // ParameterExceptionFieldByteMatchPositionalConstraint is a ParameterExceptionField enum value + ParameterExceptionFieldByteMatchPositionalConstraint = "BYTE_MATCH_POSITIONAL_CONSTRAINT" + + // ParameterExceptionFieldSizeConstraintComparisonOperator is a ParameterExceptionField enum value + ParameterExceptionFieldSizeConstraintComparisonOperator = "SIZE_CONSTRAINT_COMPARISON_OPERATOR" +) + +const ( + // ParameterExceptionReasonInvalidOption is a ParameterExceptionReason enum value + ParameterExceptionReasonInvalidOption = "INVALID_OPTION" + + // ParameterExceptionReasonIllegalCombination is a ParameterExceptionReason enum value + ParameterExceptionReasonIllegalCombination = "ILLEGAL_COMBINATION" +) + +const ( + // PositionalConstraintExactly is a PositionalConstraint enum value + PositionalConstraintExactly = "EXACTLY" + + // PositionalConstraintStartsWith is a PositionalConstraint enum value + PositionalConstraintStartsWith = "STARTS_WITH" + + // PositionalConstraintEndsWith is a PositionalConstraint enum value + PositionalConstraintEndsWith = "ENDS_WITH" + + // PositionalConstraintContains is a PositionalConstraint enum value + PositionalConstraintContains = "CONTAINS" + + // PositionalConstraintContainsWord is a PositionalConstraint enum value + PositionalConstraintContainsWord = "CONTAINS_WORD" +) + +const ( + // PredicateTypeIpmatch is a PredicateType enum value + PredicateTypeIpmatch = "IPMatch" + + // PredicateTypeByteMatch is a PredicateType enum value + PredicateTypeByteMatch = "ByteMatch" + + // PredicateTypeSqlInjectionMatch is a PredicateType enum value + PredicateTypeSqlInjectionMatch = "SqlInjectionMatch" + + // PredicateTypeSizeConstraint is a PredicateType enum value + PredicateTypeSizeConstraint = "SizeConstraint" + + // PredicateTypeXssMatch is a PredicateType enum value + PredicateTypeXssMatch = "XssMatch" +) + +const ( + // TextTransformationNone is a TextTransformation enum value + TextTransformationNone = "NONE" + + // TextTransformationCompressWhiteSpace is a TextTransformation enum value + TextTransformationCompressWhiteSpace = "COMPRESS_WHITE_SPACE" + + // TextTransformationHtmlEntityDecode is a TextTransformation enum value + TextTransformationHtmlEntityDecode = "HTML_ENTITY_DECODE" + + // TextTransformationLowercase is a TextTransformation enum value + TextTransformationLowercase = "LOWERCASE" + + // TextTransformationCmdLine is a TextTransformation enum value + TextTransformationCmdLine = "CMD_LINE" + + // TextTransformationUrlDecode is a TextTransformation enum value + TextTransformationUrlDecode = "URL_DECODE" +) + +const ( + // WafActionTypeBlock is a WafActionType enum value + WafActionTypeBlock = "BLOCK" + + // WafActionTypeAllow is a WafActionType enum value + WafActionTypeAllow = "ALLOW" + + // WafActionTypeCount is a WafActionType enum value + WafActionTypeCount = "COUNT" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/wafregional/errors.go b/vendor/github.com/aws/aws-sdk-go/service/wafregional/errors.go new file mode 100644 index 000000000..abb8aac6d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/wafregional/errors.go @@ -0,0 +1,155 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package wafregional + +const ( + + // ErrCodeWAFDisallowedNameException for service response error code + // "WAFDisallowedNameException". + // + // The name specified is invalid. + ErrCodeWAFDisallowedNameException = "WAFDisallowedNameException" + + // ErrCodeWAFInternalErrorException for service response error code + // "WAFInternalErrorException". + // + // The operation failed because of a system problem, even though the request + // was valid. Retry your request. + ErrCodeWAFInternalErrorException = "WAFInternalErrorException" + + // ErrCodeWAFInvalidAccountException for service response error code + // "WAFInvalidAccountException". + // + // The operation failed because you tried to create, update, or delete an object + // by using an invalid account identifier. + ErrCodeWAFInvalidAccountException = "WAFInvalidAccountException" + + // ErrCodeWAFInvalidOperationException for service response error code + // "WAFInvalidOperationException". + // + // The operation failed because there was nothing to do. For example: + // + // * You tried to remove a Rule from a WebACL, but the Rule isn't in the + // specified WebACL. + // + // * You tried to remove an IP address from an IPSet, but the IP address + // isn't in the specified IPSet. + // + // * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple + // isn't in the specified WebACL. + // + // * You tried to add a Rule to a WebACL, but the Rule already exists in + // the specified WebACL. + // + // * You tried to add an IP address to an IPSet, but the IP address already + // exists in the specified IPSet. + // + // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple + // already exists in the specified WebACL. + ErrCodeWAFInvalidOperationException = "WAFInvalidOperationException" + + // ErrCodeWAFInvalidParameterException for service response error code + // "WAFInvalidParameterException". + // + // The operation failed because AWS WAF didn't recognize a parameter in the + // request. For example: + // + // * You specified an invalid parameter name. + // + // * You specified an invalid value. + // + // * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) + // using an action other than INSERT or DELETE. + // + // * You tried to create a WebACL with a DefaultActionType other than ALLOW, + // BLOCK, or COUNT. + // + // * You tried to update a WebACL with a WafActionType other than ALLOW, + // BLOCK, or COUNT. + // + // * You tried to update a ByteMatchSet with a FieldToMatchType other than + // HEADER, QUERY_STRING, or URI. + // + // * You tried to update a ByteMatchSet with a Field of HEADER but no value + // for Data. + // + // * Your request references an ARN that is malformed, or corresponds to + // a resource with which a web ACL cannot be associated. + ErrCodeWAFInvalidParameterException = "WAFInvalidParameterException" + + // ErrCodeWAFLimitsExceededException for service response error code + // "WAFLimitsExceededException". + // + // The operation exceeds a resource limit, for example, the maximum number of + // WebACL objects that you can create for an AWS account. For more information, + // see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) + // in the AWS WAF Developer Guide. + ErrCodeWAFLimitsExceededException = "WAFLimitsExceededException" + + // ErrCodeWAFNonEmptyEntityException for service response error code + // "WAFNonEmptyEntityException". + // + // The operation failed because you tried to delete an object that isn't empty. + // For example: + // + // * You tried to delete a WebACL that still contains one or more Rule objects. + // + // * You tried to delete a Rule that still contains one or more ByteMatchSet + // objects or other predicates. + // + // * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple + // objects. + // + // * You tried to delete an IPSet that references one or more IP addresses. + ErrCodeWAFNonEmptyEntityException = "WAFNonEmptyEntityException" + + // ErrCodeWAFNonexistentContainerException for service response error code + // "WAFNonexistentContainerException". + // + // The operation failed because you tried to add an object to or delete an object + // from another object that doesn't exist. For example: + // + // * You tried to add a Rule to or delete a Rule from a WebACL that doesn't + // exist. + // + // * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule + // that doesn't exist. + // + // * You tried to add an IP address to or delete an IP address from an IPSet + // that doesn't exist. + // + // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from + // a ByteMatchSet that doesn't exist. + ErrCodeWAFNonexistentContainerException = "WAFNonexistentContainerException" + + // ErrCodeWAFNonexistentItemException for service response error code + // "WAFNonexistentItemException". + // + // The operation failed because the referenced object doesn't exist. + ErrCodeWAFNonexistentItemException = "WAFNonexistentItemException" + + // ErrCodeWAFReferencedItemException for service response error code + // "WAFReferencedItemException". + // + // The operation failed because you tried to delete an object that is still + // in use. For example: + // + // * You tried to delete a ByteMatchSet that is still referenced by a Rule. + // + // * You tried to delete a Rule that is still referenced by a WebACL. + ErrCodeWAFReferencedItemException = "WAFReferencedItemException" + + // ErrCodeWAFStaleDataException for service response error code + // "WAFStaleDataException". + // + // The operation failed because you tried to create, update, or delete an object + // by using a change token that has already been used. + ErrCodeWAFStaleDataException = "WAFStaleDataException" + + // ErrCodeWAFUnavailableEntityException for service response error code + // "WAFUnavailableEntityException". + // + // The operation failed because the entity referenced is temporarily unavailable. + // Retry your request. + ErrCodeWAFUnavailableEntityException = "WAFUnavailableEntityException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/wafregional/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/wafregional/examples_test.go new file mode 100644 index 000000000..ae55b0196 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/wafregional/examples_test.go @@ -0,0 +1,1030 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package wafregional_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/waf" + "github.com/aws/aws-sdk-go/service/wafregional" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExampleWAFRegional_AssociateWebACL() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &wafregional.AssociateWebACLInput{ + ResourceArn: aws.String("ResourceArn"), // Required + WebACLId: aws.String("ResourceId"), // Required + } + resp, err := svc.AssociateWebACL(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_CreateByteMatchSet() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.CreateByteMatchSetInput{ + ChangeToken: aws.String("ChangeToken"), // Required + Name: aws.String("ResourceName"), // Required + } + resp, err := svc.CreateByteMatchSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_CreateIPSet() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.CreateIPSetInput{ + ChangeToken: aws.String("ChangeToken"), // Required + Name: aws.String("ResourceName"), // Required + } + resp, err := svc.CreateIPSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_CreateRule() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.CreateRuleInput{ + ChangeToken: aws.String("ChangeToken"), // Required + MetricName: aws.String("MetricName"), // Required + Name: aws.String("ResourceName"), // Required + } + resp, err := svc.CreateRule(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_CreateSizeConstraintSet() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.CreateSizeConstraintSetInput{ + ChangeToken: aws.String("ChangeToken"), // Required + Name: aws.String("ResourceName"), // Required + } + resp, err := svc.CreateSizeConstraintSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_CreateSqlInjectionMatchSet() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.CreateSqlInjectionMatchSetInput{ + ChangeToken: aws.String("ChangeToken"), // Required + Name: aws.String("ResourceName"), // Required + } + resp, err := svc.CreateSqlInjectionMatchSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_CreateWebACL() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.CreateWebACLInput{ + ChangeToken: aws.String("ChangeToken"), // Required + DefaultAction: &waf.WafAction{ // Required + Type: aws.String("WafActionType"), // Required + }, + MetricName: aws.String("MetricName"), // Required + Name: aws.String("ResourceName"), // Required + } + resp, err := svc.CreateWebACL(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_CreateXssMatchSet() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.CreateXssMatchSetInput{ + ChangeToken: aws.String("ChangeToken"), // Required + Name: aws.String("ResourceName"), // Required + } + resp, err := svc.CreateXssMatchSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_DeleteByteMatchSet() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.DeleteByteMatchSetInput{ + ByteMatchSetId: aws.String("ResourceId"), // Required + ChangeToken: aws.String("ChangeToken"), // Required + } + resp, err := svc.DeleteByteMatchSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_DeleteIPSet() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.DeleteIPSetInput{ + ChangeToken: aws.String("ChangeToken"), // Required + IPSetId: aws.String("ResourceId"), // Required + } + resp, err := svc.DeleteIPSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_DeleteRule() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.DeleteRuleInput{ + ChangeToken: aws.String("ChangeToken"), // Required + RuleId: aws.String("ResourceId"), // Required + } + resp, err := svc.DeleteRule(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_DeleteSizeConstraintSet() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.DeleteSizeConstraintSetInput{ + ChangeToken: aws.String("ChangeToken"), // Required + SizeConstraintSetId: aws.String("ResourceId"), // Required + } + resp, err := svc.DeleteSizeConstraintSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_DeleteSqlInjectionMatchSet() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.DeleteSqlInjectionMatchSetInput{ + ChangeToken: aws.String("ChangeToken"), // Required + SqlInjectionMatchSetId: aws.String("ResourceId"), // Required + } + resp, err := svc.DeleteSqlInjectionMatchSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_DeleteWebACL() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.DeleteWebACLInput{ + ChangeToken: aws.String("ChangeToken"), // Required + WebACLId: aws.String("ResourceId"), // Required + } + resp, err := svc.DeleteWebACL(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_DeleteXssMatchSet() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.DeleteXssMatchSetInput{ + ChangeToken: aws.String("ChangeToken"), // Required + XssMatchSetId: aws.String("ResourceId"), // Required + } + resp, err := svc.DeleteXssMatchSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_DisassociateWebACL() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &wafregional.DisassociateWebACLInput{ + ResourceArn: aws.String("ResourceArn"), // Required + } + resp, err := svc.DisassociateWebACL(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_GetByteMatchSet() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.GetByteMatchSetInput{ + ByteMatchSetId: aws.String("ResourceId"), // Required + } + resp, err := svc.GetByteMatchSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_GetChangeToken() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + var params *waf.GetChangeTokenInput + resp, err := svc.GetChangeToken(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_GetChangeTokenStatus() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.GetChangeTokenStatusInput{ + ChangeToken: aws.String("ChangeToken"), // Required + } + resp, err := svc.GetChangeTokenStatus(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_GetIPSet() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.GetIPSetInput{ + IPSetId: aws.String("ResourceId"), // Required + } + resp, err := svc.GetIPSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_GetRule() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.GetRuleInput{ + RuleId: aws.String("ResourceId"), // Required + } + resp, err := svc.GetRule(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_GetSampledRequests() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.GetSampledRequestsInput{ + MaxItems: aws.Int64(1), // Required + RuleId: aws.String("ResourceId"), // Required + TimeWindow: &waf.TimeWindow{ // Required + EndTime: aws.Time(time.Now()), // Required + StartTime: aws.Time(time.Now()), // Required + }, + WebAclId: aws.String("ResourceId"), // Required + } + resp, err := svc.GetSampledRequests(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_GetSizeConstraintSet() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.GetSizeConstraintSetInput{ + SizeConstraintSetId: aws.String("ResourceId"), // Required + } + resp, err := svc.GetSizeConstraintSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_GetSqlInjectionMatchSet() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.GetSqlInjectionMatchSetInput{ + SqlInjectionMatchSetId: aws.String("ResourceId"), // Required + } + resp, err := svc.GetSqlInjectionMatchSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_GetWebACL() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.GetWebACLInput{ + WebACLId: aws.String("ResourceId"), // Required + } + resp, err := svc.GetWebACL(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_GetWebACLForResource() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &wafregional.GetWebACLForResourceInput{ + ResourceArn: aws.String("ResourceArn"), // Required + } + resp, err := svc.GetWebACLForResource(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_GetXssMatchSet() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.GetXssMatchSetInput{ + XssMatchSetId: aws.String("ResourceId"), // Required + } + resp, err := svc.GetXssMatchSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_ListByteMatchSets() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.ListByteMatchSetsInput{ + Limit: aws.Int64(1), + NextMarker: aws.String("NextMarker"), + } + resp, err := svc.ListByteMatchSets(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_ListIPSets() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.ListIPSetsInput{ + Limit: aws.Int64(1), + NextMarker: aws.String("NextMarker"), + } + resp, err := svc.ListIPSets(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_ListResourcesForWebACL() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &wafregional.ListResourcesForWebACLInput{ + WebACLId: aws.String("ResourceId"), // Required + } + resp, err := svc.ListResourcesForWebACL(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_ListRules() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.ListRulesInput{ + Limit: aws.Int64(1), + NextMarker: aws.String("NextMarker"), + } + resp, err := svc.ListRules(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_ListSizeConstraintSets() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.ListSizeConstraintSetsInput{ + Limit: aws.Int64(1), + NextMarker: aws.String("NextMarker"), + } + resp, err := svc.ListSizeConstraintSets(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_ListSqlInjectionMatchSets() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.ListSqlInjectionMatchSetsInput{ + Limit: aws.Int64(1), + NextMarker: aws.String("NextMarker"), + } + resp, err := svc.ListSqlInjectionMatchSets(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_ListWebACLs() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.ListWebACLsInput{ + Limit: aws.Int64(1), + NextMarker: aws.String("NextMarker"), + } + resp, err := svc.ListWebACLs(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_ListXssMatchSets() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.ListXssMatchSetsInput{ + Limit: aws.Int64(1), + NextMarker: aws.String("NextMarker"), + } + resp, err := svc.ListXssMatchSets(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_UpdateByteMatchSet() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.UpdateByteMatchSetInput{ + ByteMatchSetId: aws.String("ResourceId"), // Required + ChangeToken: aws.String("ChangeToken"), // Required + Updates: []*waf.ByteMatchSetUpdate{ // Required + { // Required + Action: aws.String("ChangeAction"), // Required + ByteMatchTuple: &waf.ByteMatchTuple{ // Required + FieldToMatch: &waf.FieldToMatch{ // Required + Type: aws.String("MatchFieldType"), // Required + Data: aws.String("MatchFieldData"), + }, + PositionalConstraint: aws.String("PositionalConstraint"), // Required + TargetString: []byte("PAYLOAD"), // Required + TextTransformation: aws.String("TextTransformation"), // Required + }, + }, + // More values... + }, + } + resp, err := svc.UpdateByteMatchSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_UpdateIPSet() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.UpdateIPSetInput{ + ChangeToken: aws.String("ChangeToken"), // Required + IPSetId: aws.String("ResourceId"), // Required + Updates: []*waf.IPSetUpdate{ // Required + { // Required + Action: aws.String("ChangeAction"), // Required + IPSetDescriptor: &waf.IPSetDescriptor{ // Required + Type: aws.String("IPSetDescriptorType"), // Required + Value: aws.String("IPSetDescriptorValue"), // Required + }, + }, + // More values... + }, + } + resp, err := svc.UpdateIPSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_UpdateRule() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.UpdateRuleInput{ + ChangeToken: aws.String("ChangeToken"), // Required + RuleId: aws.String("ResourceId"), // Required + Updates: []*waf.RuleUpdate{ // Required + { // Required + Action: aws.String("ChangeAction"), // Required + Predicate: &waf.Predicate{ // Required + DataId: aws.String("ResourceId"), // Required + Negated: aws.Bool(true), // Required + Type: aws.String("PredicateType"), // Required + }, + }, + // More values... + }, + } + resp, err := svc.UpdateRule(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_UpdateSizeConstraintSet() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.UpdateSizeConstraintSetInput{ + ChangeToken: aws.String("ChangeToken"), // Required + SizeConstraintSetId: aws.String("ResourceId"), // Required + Updates: []*waf.SizeConstraintSetUpdate{ // Required + { // Required + Action: aws.String("ChangeAction"), // Required + SizeConstraint: &waf.SizeConstraint{ // Required + ComparisonOperator: aws.String("ComparisonOperator"), // Required + FieldToMatch: &waf.FieldToMatch{ // Required + Type: aws.String("MatchFieldType"), // Required + Data: aws.String("MatchFieldData"), + }, + Size: aws.Int64(1), // Required + TextTransformation: aws.String("TextTransformation"), // Required + }, + }, + // More values... + }, + } + resp, err := svc.UpdateSizeConstraintSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_UpdateSqlInjectionMatchSet() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.UpdateSqlInjectionMatchSetInput{ + ChangeToken: aws.String("ChangeToken"), // Required + SqlInjectionMatchSetId: aws.String("ResourceId"), // Required + Updates: []*waf.SqlInjectionMatchSetUpdate{ // Required + { // Required + Action: aws.String("ChangeAction"), // Required + SqlInjectionMatchTuple: &waf.SqlInjectionMatchTuple{ // Required + FieldToMatch: &waf.FieldToMatch{ // Required + Type: aws.String("MatchFieldType"), // Required + Data: aws.String("MatchFieldData"), + }, + TextTransformation: aws.String("TextTransformation"), // Required + }, + }, + // More values... + }, + } + resp, err := svc.UpdateSqlInjectionMatchSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_UpdateWebACL() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.UpdateWebACLInput{ + ChangeToken: aws.String("ChangeToken"), // Required + WebACLId: aws.String("ResourceId"), // Required + DefaultAction: &waf.WafAction{ + Type: aws.String("WafActionType"), // Required + }, + Updates: []*waf.WebACLUpdate{ + { // Required + Action: aws.String("ChangeAction"), // Required + ActivatedRule: &waf.ActivatedRule{ // Required + Action: &waf.WafAction{ // Required + Type: aws.String("WafActionType"), // Required + }, + Priority: aws.Int64(1), // Required + RuleId: aws.String("ResourceId"), // Required + }, + }, + // More values... + }, + } + resp, err := svc.UpdateWebACL(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWAFRegional_UpdateXssMatchSet() { + sess := session.Must(session.NewSession()) + + svc := wafregional.New(sess) + + params := &waf.UpdateXssMatchSetInput{ + ChangeToken: aws.String("ChangeToken"), // Required + Updates: []*waf.XssMatchSetUpdate{ // Required + { // Required + Action: aws.String("ChangeAction"), // Required + XssMatchTuple: &waf.XssMatchTuple{ // Required + FieldToMatch: &waf.FieldToMatch{ // Required + Type: aws.String("MatchFieldType"), // Required + Data: aws.String("MatchFieldData"), + }, + TextTransformation: aws.String("TextTransformation"), // Required + }, + }, + // More values... + }, + XssMatchSetId: aws.String("ResourceId"), // Required + } + resp, err := svc.UpdateXssMatchSet(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/wafregional/service.go b/vendor/github.com/aws/aws-sdk-go/service/wafregional/service.go new file mode 100644 index 000000000..d2093f89b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/wafregional/service.go @@ -0,0 +1,101 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package wafregional + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" +) + +// This is the AWS WAF Regional API Reference for using AWS WAF with Elastic +// Load Balancing (ELB) Application Load Balancers. The AWS WAF actions and +// data types listed in the reference are available for protecting Application +// Load Balancers. You can use these actions and data types by means of the +// endpoints listed in AWS Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#waf_region). +// This guide is for developers who need detailed information about the AWS +// WAF API actions, data types, and errors. For detailed information about AWS +// WAF features and an overview of how to use the AWS WAF API, see the AWS WAF +// Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28 +type WAFRegional struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "waf-regional" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the WAFRegional client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a WAFRegional client from just a session. +// svc := wafregional.New(mySession) +// +// // Create a WAFRegional client with additional configuration +// svc := wafregional.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *WAFRegional { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *WAFRegional { + svc := &WAFRegional{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2016-11-28", + JSONVersion: "1.1", + TargetPrefix: "AWSWAF_Regional_20161128", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a WAFRegional operation and runs any +// custom request initialization. +func (c *WAFRegional) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/wafregional/wafregionaliface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/wafregional/wafregionaliface/interface.go new file mode 100644 index 000000000..714721896 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/wafregional/wafregionaliface/interface.go @@ -0,0 +1,232 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package wafregionaliface provides an interface to enable mocking the AWS WAF Regional service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package wafregionaliface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/waf" + "github.com/aws/aws-sdk-go/service/wafregional" +) + +// WAFRegionalAPI provides an interface to enable mocking the +// wafregional.WAFRegional service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS WAF Regional. +// func myFunc(svc wafregionaliface.WAFRegionalAPI) bool { +// // Make svc.AssociateWebACL request +// } +// +// func main() { +// sess := session.New() +// svc := wafregional.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockWAFRegionalClient struct { +// wafregionaliface.WAFRegionalAPI +// } +// func (m *mockWAFRegionalClient) AssociateWebACL(input *wafregional.AssociateWebACLInput) (*wafregional.AssociateWebACLOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockWAFRegionalClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type WAFRegionalAPI interface { + AssociateWebACLRequest(*wafregional.AssociateWebACLInput) (*request.Request, *wafregional.AssociateWebACLOutput) + + AssociateWebACL(*wafregional.AssociateWebACLInput) (*wafregional.AssociateWebACLOutput, error) + + CreateByteMatchSetRequest(*waf.CreateByteMatchSetInput) (*request.Request, *waf.CreateByteMatchSetOutput) + + CreateByteMatchSet(*waf.CreateByteMatchSetInput) (*waf.CreateByteMatchSetOutput, error) + + CreateIPSetRequest(*waf.CreateIPSetInput) (*request.Request, *waf.CreateIPSetOutput) + + CreateIPSet(*waf.CreateIPSetInput) (*waf.CreateIPSetOutput, error) + + CreateRuleRequest(*waf.CreateRuleInput) (*request.Request, *waf.CreateRuleOutput) + + CreateRule(*waf.CreateRuleInput) (*waf.CreateRuleOutput, error) + + CreateSizeConstraintSetRequest(*waf.CreateSizeConstraintSetInput) (*request.Request, *waf.CreateSizeConstraintSetOutput) + + CreateSizeConstraintSet(*waf.CreateSizeConstraintSetInput) (*waf.CreateSizeConstraintSetOutput, error) + + CreateSqlInjectionMatchSetRequest(*waf.CreateSqlInjectionMatchSetInput) (*request.Request, *waf.CreateSqlInjectionMatchSetOutput) + + CreateSqlInjectionMatchSet(*waf.CreateSqlInjectionMatchSetInput) (*waf.CreateSqlInjectionMatchSetOutput, error) + + CreateWebACLRequest(*waf.CreateWebACLInput) (*request.Request, *waf.CreateWebACLOutput) + + CreateWebACL(*waf.CreateWebACLInput) (*waf.CreateWebACLOutput, error) + + CreateXssMatchSetRequest(*waf.CreateXssMatchSetInput) (*request.Request, *waf.CreateXssMatchSetOutput) + + CreateXssMatchSet(*waf.CreateXssMatchSetInput) (*waf.CreateXssMatchSetOutput, error) + + DeleteByteMatchSetRequest(*waf.DeleteByteMatchSetInput) (*request.Request, *waf.DeleteByteMatchSetOutput) + + DeleteByteMatchSet(*waf.DeleteByteMatchSetInput) (*waf.DeleteByteMatchSetOutput, error) + + DeleteIPSetRequest(*waf.DeleteIPSetInput) (*request.Request, *waf.DeleteIPSetOutput) + + DeleteIPSet(*waf.DeleteIPSetInput) (*waf.DeleteIPSetOutput, error) + + DeleteRuleRequest(*waf.DeleteRuleInput) (*request.Request, *waf.DeleteRuleOutput) + + DeleteRule(*waf.DeleteRuleInput) (*waf.DeleteRuleOutput, error) + + DeleteSizeConstraintSetRequest(*waf.DeleteSizeConstraintSetInput) (*request.Request, *waf.DeleteSizeConstraintSetOutput) + + DeleteSizeConstraintSet(*waf.DeleteSizeConstraintSetInput) (*waf.DeleteSizeConstraintSetOutput, error) + + DeleteSqlInjectionMatchSetRequest(*waf.DeleteSqlInjectionMatchSetInput) (*request.Request, *waf.DeleteSqlInjectionMatchSetOutput) + + DeleteSqlInjectionMatchSet(*waf.DeleteSqlInjectionMatchSetInput) (*waf.DeleteSqlInjectionMatchSetOutput, error) + + DeleteWebACLRequest(*waf.DeleteWebACLInput) (*request.Request, *waf.DeleteWebACLOutput) + + DeleteWebACL(*waf.DeleteWebACLInput) (*waf.DeleteWebACLOutput, error) + + DeleteXssMatchSetRequest(*waf.DeleteXssMatchSetInput) (*request.Request, *waf.DeleteXssMatchSetOutput) + + DeleteXssMatchSet(*waf.DeleteXssMatchSetInput) (*waf.DeleteXssMatchSetOutput, error) + + DisassociateWebACLRequest(*wafregional.DisassociateWebACLInput) (*request.Request, *wafregional.DisassociateWebACLOutput) + + DisassociateWebACL(*wafregional.DisassociateWebACLInput) (*wafregional.DisassociateWebACLOutput, error) + + GetByteMatchSetRequest(*waf.GetByteMatchSetInput) (*request.Request, *waf.GetByteMatchSetOutput) + + GetByteMatchSet(*waf.GetByteMatchSetInput) (*waf.GetByteMatchSetOutput, error) + + GetChangeTokenRequest(*waf.GetChangeTokenInput) (*request.Request, *waf.GetChangeTokenOutput) + + GetChangeToken(*waf.GetChangeTokenInput) (*waf.GetChangeTokenOutput, error) + + GetChangeTokenStatusRequest(*waf.GetChangeTokenStatusInput) (*request.Request, *waf.GetChangeTokenStatusOutput) + + GetChangeTokenStatus(*waf.GetChangeTokenStatusInput) (*waf.GetChangeTokenStatusOutput, error) + + GetIPSetRequest(*waf.GetIPSetInput) (*request.Request, *waf.GetIPSetOutput) + + GetIPSet(*waf.GetIPSetInput) (*waf.GetIPSetOutput, error) + + GetRuleRequest(*waf.GetRuleInput) (*request.Request, *waf.GetRuleOutput) + + GetRule(*waf.GetRuleInput) (*waf.GetRuleOutput, error) + + GetSampledRequestsRequest(*waf.GetSampledRequestsInput) (*request.Request, *waf.GetSampledRequestsOutput) + + GetSampledRequests(*waf.GetSampledRequestsInput) (*waf.GetSampledRequestsOutput, error) + + GetSizeConstraintSetRequest(*waf.GetSizeConstraintSetInput) (*request.Request, *waf.GetSizeConstraintSetOutput) + + GetSizeConstraintSet(*waf.GetSizeConstraintSetInput) (*waf.GetSizeConstraintSetOutput, error) + + GetSqlInjectionMatchSetRequest(*waf.GetSqlInjectionMatchSetInput) (*request.Request, *waf.GetSqlInjectionMatchSetOutput) + + GetSqlInjectionMatchSet(*waf.GetSqlInjectionMatchSetInput) (*waf.GetSqlInjectionMatchSetOutput, error) + + GetWebACLRequest(*waf.GetWebACLInput) (*request.Request, *waf.GetWebACLOutput) + + GetWebACL(*waf.GetWebACLInput) (*waf.GetWebACLOutput, error) + + GetWebACLForResourceRequest(*wafregional.GetWebACLForResourceInput) (*request.Request, *wafregional.GetWebACLForResourceOutput) + + GetWebACLForResource(*wafregional.GetWebACLForResourceInput) (*wafregional.GetWebACLForResourceOutput, error) + + GetXssMatchSetRequest(*waf.GetXssMatchSetInput) (*request.Request, *waf.GetXssMatchSetOutput) + + GetXssMatchSet(*waf.GetXssMatchSetInput) (*waf.GetXssMatchSetOutput, error) + + ListByteMatchSetsRequest(*waf.ListByteMatchSetsInput) (*request.Request, *waf.ListByteMatchSetsOutput) + + ListByteMatchSets(*waf.ListByteMatchSetsInput) (*waf.ListByteMatchSetsOutput, error) + + ListIPSetsRequest(*waf.ListIPSetsInput) (*request.Request, *waf.ListIPSetsOutput) + + ListIPSets(*waf.ListIPSetsInput) (*waf.ListIPSetsOutput, error) + + ListResourcesForWebACLRequest(*wafregional.ListResourcesForWebACLInput) (*request.Request, *wafregional.ListResourcesForWebACLOutput) + + ListResourcesForWebACL(*wafregional.ListResourcesForWebACLInput) (*wafregional.ListResourcesForWebACLOutput, error) + + ListRulesRequest(*waf.ListRulesInput) (*request.Request, *waf.ListRulesOutput) + + ListRules(*waf.ListRulesInput) (*waf.ListRulesOutput, error) + + ListSizeConstraintSetsRequest(*waf.ListSizeConstraintSetsInput) (*request.Request, *waf.ListSizeConstraintSetsOutput) + + ListSizeConstraintSets(*waf.ListSizeConstraintSetsInput) (*waf.ListSizeConstraintSetsOutput, error) + + ListSqlInjectionMatchSetsRequest(*waf.ListSqlInjectionMatchSetsInput) (*request.Request, *waf.ListSqlInjectionMatchSetsOutput) + + ListSqlInjectionMatchSets(*waf.ListSqlInjectionMatchSetsInput) (*waf.ListSqlInjectionMatchSetsOutput, error) + + ListWebACLsRequest(*waf.ListWebACLsInput) (*request.Request, *waf.ListWebACLsOutput) + + ListWebACLs(*waf.ListWebACLsInput) (*waf.ListWebACLsOutput, error) + + ListXssMatchSetsRequest(*waf.ListXssMatchSetsInput) (*request.Request, *waf.ListXssMatchSetsOutput) + + ListXssMatchSets(*waf.ListXssMatchSetsInput) (*waf.ListXssMatchSetsOutput, error) + + UpdateByteMatchSetRequest(*waf.UpdateByteMatchSetInput) (*request.Request, *waf.UpdateByteMatchSetOutput) + + UpdateByteMatchSet(*waf.UpdateByteMatchSetInput) (*waf.UpdateByteMatchSetOutput, error) + + UpdateIPSetRequest(*waf.UpdateIPSetInput) (*request.Request, *waf.UpdateIPSetOutput) + + UpdateIPSet(*waf.UpdateIPSetInput) (*waf.UpdateIPSetOutput, error) + + UpdateRuleRequest(*waf.UpdateRuleInput) (*request.Request, *waf.UpdateRuleOutput) + + UpdateRule(*waf.UpdateRuleInput) (*waf.UpdateRuleOutput, error) + + UpdateSizeConstraintSetRequest(*waf.UpdateSizeConstraintSetInput) (*request.Request, *waf.UpdateSizeConstraintSetOutput) + + UpdateSizeConstraintSet(*waf.UpdateSizeConstraintSetInput) (*waf.UpdateSizeConstraintSetOutput, error) + + UpdateSqlInjectionMatchSetRequest(*waf.UpdateSqlInjectionMatchSetInput) (*request.Request, *waf.UpdateSqlInjectionMatchSetOutput) + + UpdateSqlInjectionMatchSet(*waf.UpdateSqlInjectionMatchSetInput) (*waf.UpdateSqlInjectionMatchSetOutput, error) + + UpdateWebACLRequest(*waf.UpdateWebACLInput) (*request.Request, *waf.UpdateWebACLOutput) + + UpdateWebACL(*waf.UpdateWebACLInput) (*waf.UpdateWebACLOutput, error) + + UpdateXssMatchSetRequest(*waf.UpdateXssMatchSetInput) (*request.Request, *waf.UpdateXssMatchSetOutput) + + UpdateXssMatchSet(*waf.UpdateXssMatchSetInput) (*waf.UpdateXssMatchSetOutput, error) +} + +var _ WAFRegionalAPI = (*wafregional.WAFRegional)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/workdocs/api.go b/vendor/github.com/aws/aws-sdk-go/service/workdocs/api.go new file mode 100644 index 000000000..4fd430080 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/workdocs/api.go @@ -0,0 +1,6298 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package workdocs provides a client for Amazon WorkDocs. +package workdocs + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +const opAbortDocumentVersionUpload = "AbortDocumentVersionUpload" + +// AbortDocumentVersionUploadRequest generates a "aws/request.Request" representing the +// client's request for the AbortDocumentVersionUpload operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AbortDocumentVersionUpload for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AbortDocumentVersionUpload method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AbortDocumentVersionUploadRequest method. +// req, resp := client.AbortDocumentVersionUploadRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/AbortDocumentVersionUpload +func (c *WorkDocs) AbortDocumentVersionUploadRequest(input *AbortDocumentVersionUploadInput) (req *request.Request, output *AbortDocumentVersionUploadOutput) { + op := &request.Operation{ + Name: opAbortDocumentVersionUpload, + HTTPMethod: "DELETE", + HTTPPath: "/api/v1/documents/{DocumentId}/versions/{VersionId}", + } + + if input == nil { + input = &AbortDocumentVersionUploadInput{} + } + + output = &AbortDocumentVersionUploadOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// AbortDocumentVersionUpload API operation for Amazon WorkDocs. +// +// Aborts the upload of the specified document version that was previously initiated +// by InitiateDocumentVersionUpload. The client should make this call only when +// it no longer intends or fails to upload the document version. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation AbortDocumentVersionUpload for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeProhibitedStateException "ProhibitedStateException" +// The specified document version is not in the INITIALIZED state. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/AbortDocumentVersionUpload +func (c *WorkDocs) AbortDocumentVersionUpload(input *AbortDocumentVersionUploadInput) (*AbortDocumentVersionUploadOutput, error) { + req, out := c.AbortDocumentVersionUploadRequest(input) + err := req.Send() + return out, err +} + +const opActivateUser = "ActivateUser" + +// ActivateUserRequest generates a "aws/request.Request" representing the +// client's request for the ActivateUser operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See ActivateUser for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the ActivateUser method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the ActivateUserRequest method. +// req, resp := client.ActivateUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/ActivateUser +func (c *WorkDocs) ActivateUserRequest(input *ActivateUserInput) (req *request.Request, output *ActivateUserOutput) { + op := &request.Operation{ + Name: opActivateUser, + HTTPMethod: "POST", + HTTPPath: "/api/v1/users/{UserId}/activation", + } + + if input == nil { + input = &ActivateUserInput{} + } + + output = &ActivateUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// ActivateUser API operation for Amazon WorkDocs. +// +// Activates the specified user. Only active users can access Amazon WorkDocs. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation ActivateUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/ActivateUser +func (c *WorkDocs) ActivateUser(input *ActivateUserInput) (*ActivateUserOutput, error) { + req, out := c.ActivateUserRequest(input) + err := req.Send() + return out, err +} + +const opAddResourcePermissions = "AddResourcePermissions" + +// AddResourcePermissionsRequest generates a "aws/request.Request" representing the +// client's request for the AddResourcePermissions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See AddResourcePermissions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the AddResourcePermissions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the AddResourcePermissionsRequest method. +// req, resp := client.AddResourcePermissionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/AddResourcePermissions +func (c *WorkDocs) AddResourcePermissionsRequest(input *AddResourcePermissionsInput) (req *request.Request, output *AddResourcePermissionsOutput) { + op := &request.Operation{ + Name: opAddResourcePermissions, + HTTPMethod: "POST", + HTTPPath: "/api/v1/resources/{ResourceId}/permissions", + } + + if input == nil { + input = &AddResourcePermissionsInput{} + } + + output = &AddResourcePermissionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// AddResourcePermissions API operation for Amazon WorkDocs. +// +// Creates a set of permissions for the specified folder or document. The resource +// permissions are overwritten if the principals already have different permissions. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation AddResourcePermissions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/AddResourcePermissions +func (c *WorkDocs) AddResourcePermissions(input *AddResourcePermissionsInput) (*AddResourcePermissionsOutput, error) { + req, out := c.AddResourcePermissionsRequest(input) + err := req.Send() + return out, err +} + +const opCreateFolder = "CreateFolder" + +// CreateFolderRequest generates a "aws/request.Request" representing the +// client's request for the CreateFolder operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateFolder for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateFolder method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateFolderRequest method. +// req, resp := client.CreateFolderRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateFolder +func (c *WorkDocs) CreateFolderRequest(input *CreateFolderInput) (req *request.Request, output *CreateFolderOutput) { + op := &request.Operation{ + Name: opCreateFolder, + HTTPMethod: "POST", + HTTPPath: "/api/v1/folders", + } + + if input == nil { + input = &CreateFolderInput{} + } + + output = &CreateFolderOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateFolder API operation for Amazon WorkDocs. +// +// Creates a folder with the specified name and parent folder. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation CreateFolder for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" +// The resource already exists. +// +// * ErrCodeProhibitedStateException "ProhibitedStateException" +// The specified document version is not in the INITIALIZED state. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// You've exceeded the maximum of 100,000 folders under the parent folder. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateFolder +func (c *WorkDocs) CreateFolder(input *CreateFolderInput) (*CreateFolderOutput, error) { + req, out := c.CreateFolderRequest(input) + err := req.Send() + return out, err +} + +const opCreateNotificationSubscription = "CreateNotificationSubscription" + +// CreateNotificationSubscriptionRequest generates a "aws/request.Request" representing the +// client's request for the CreateNotificationSubscription operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateNotificationSubscription for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateNotificationSubscription method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateNotificationSubscriptionRequest method. +// req, resp := client.CreateNotificationSubscriptionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateNotificationSubscription +func (c *WorkDocs) CreateNotificationSubscriptionRequest(input *CreateNotificationSubscriptionInput) (req *request.Request, output *CreateNotificationSubscriptionOutput) { + op := &request.Operation{ + Name: opCreateNotificationSubscription, + HTTPMethod: "POST", + HTTPPath: "/api/v1/organizations/{OrganizationId}/subscriptions", + } + + if input == nil { + input = &CreateNotificationSubscriptionInput{} + } + + output = &CreateNotificationSubscriptionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateNotificationSubscription API operation for Amazon WorkDocs. +// +// Configure WorkDocs to use Amazon SNS notifications. +// +// The endpoint receives a confirmation message, and must confirm the subscription. +// For more information, see Confirm the Subscription (http://docs.aws.amazon.com/sns/latest/dg/SendMessageToHttp.html#SendMessageToHttp.confirm) +// in the Amazon Simple Notification Service Developer Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation CreateNotificationSubscription for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeTooManySubscriptionsException "TooManySubscriptionsException" +// You've reached the limit on the number of subscriptions for the WorkDocs +// instance. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateNotificationSubscription +func (c *WorkDocs) CreateNotificationSubscription(input *CreateNotificationSubscriptionInput) (*CreateNotificationSubscriptionOutput, error) { + req, out := c.CreateNotificationSubscriptionRequest(input) + err := req.Send() + return out, err +} + +const opCreateUser = "CreateUser" + +// CreateUserRequest generates a "aws/request.Request" representing the +// client's request for the CreateUser operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See CreateUser for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the CreateUser method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the CreateUserRequest method. +// req, resp := client.CreateUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateUser +func (c *WorkDocs) CreateUserRequest(input *CreateUserInput) (req *request.Request, output *CreateUserOutput) { + op := &request.Operation{ + Name: opCreateUser, + HTTPMethod: "POST", + HTTPPath: "/api/v1/users", + } + + if input == nil { + input = &CreateUserInput{} + } + + output = &CreateUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateUser API operation for Amazon WorkDocs. +// +// Creates a user in a Simple AD or Microsoft AD directory. The status of a +// newly created user is "ACTIVE". New users can access Amazon WorkDocs. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation CreateUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" +// The resource already exists. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateUser +func (c *WorkDocs) CreateUser(input *CreateUserInput) (*CreateUserOutput, error) { + req, out := c.CreateUserRequest(input) + err := req.Send() + return out, err +} + +const opDeactivateUser = "DeactivateUser" + +// DeactivateUserRequest generates a "aws/request.Request" representing the +// client's request for the DeactivateUser operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeactivateUser for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeactivateUser method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeactivateUserRequest method. +// req, resp := client.DeactivateUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeactivateUser +func (c *WorkDocs) DeactivateUserRequest(input *DeactivateUserInput) (req *request.Request, output *DeactivateUserOutput) { + op := &request.Operation{ + Name: opDeactivateUser, + HTTPMethod: "DELETE", + HTTPPath: "/api/v1/users/{UserId}/activation", + } + + if input == nil { + input = &DeactivateUserInput{} + } + + output = &DeactivateUserOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeactivateUser API operation for Amazon WorkDocs. +// +// Deactivates the specified user, which revokes the user's access to Amazon +// WorkDocs. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation DeactivateUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeactivateUser +func (c *WorkDocs) DeactivateUser(input *DeactivateUserInput) (*DeactivateUserOutput, error) { + req, out := c.DeactivateUserRequest(input) + err := req.Send() + return out, err +} + +const opDeleteDocument = "DeleteDocument" + +// DeleteDocumentRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDocument operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteDocument for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteDocument method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteDocumentRequest method. +// req, resp := client.DeleteDocumentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteDocument +func (c *WorkDocs) DeleteDocumentRequest(input *DeleteDocumentInput) (req *request.Request, output *DeleteDocumentOutput) { + op := &request.Operation{ + Name: opDeleteDocument, + HTTPMethod: "DELETE", + HTTPPath: "/api/v1/documents/{DocumentId}", + } + + if input == nil { + input = &DeleteDocumentInput{} + } + + output = &DeleteDocumentOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteDocument API operation for Amazon WorkDocs. +// +// Permanently deletes the specified document and its associated metadata. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation DeleteDocument for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeProhibitedStateException "ProhibitedStateException" +// The specified document version is not in the INITIALIZED state. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The resource hierarchy is changing. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteDocument +func (c *WorkDocs) DeleteDocument(input *DeleteDocumentInput) (*DeleteDocumentOutput, error) { + req, out := c.DeleteDocumentRequest(input) + err := req.Send() + return out, err +} + +const opDeleteFolder = "DeleteFolder" + +// DeleteFolderRequest generates a "aws/request.Request" representing the +// client's request for the DeleteFolder operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteFolder for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteFolder method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteFolderRequest method. +// req, resp := client.DeleteFolderRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteFolder +func (c *WorkDocs) DeleteFolderRequest(input *DeleteFolderInput) (req *request.Request, output *DeleteFolderOutput) { + op := &request.Operation{ + Name: opDeleteFolder, + HTTPMethod: "DELETE", + HTTPPath: "/api/v1/folders/{FolderId}", + } + + if input == nil { + input = &DeleteFolderInput{} + } + + output = &DeleteFolderOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteFolder API operation for Amazon WorkDocs. +// +// Permanently deletes the specified folder and its contents. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation DeleteFolder for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeProhibitedStateException "ProhibitedStateException" +// The specified document version is not in the INITIALIZED state. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The resource hierarchy is changing. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteFolder +func (c *WorkDocs) DeleteFolder(input *DeleteFolderInput) (*DeleteFolderOutput, error) { + req, out := c.DeleteFolderRequest(input) + err := req.Send() + return out, err +} + +const opDeleteFolderContents = "DeleteFolderContents" + +// DeleteFolderContentsRequest generates a "aws/request.Request" representing the +// client's request for the DeleteFolderContents operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteFolderContents for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteFolderContents method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteFolderContentsRequest method. +// req, resp := client.DeleteFolderContentsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteFolderContents +func (c *WorkDocs) DeleteFolderContentsRequest(input *DeleteFolderContentsInput) (req *request.Request, output *DeleteFolderContentsOutput) { + op := &request.Operation{ + Name: opDeleteFolderContents, + HTTPMethod: "DELETE", + HTTPPath: "/api/v1/folders/{FolderId}/contents", + } + + if input == nil { + input = &DeleteFolderContentsInput{} + } + + output = &DeleteFolderContentsOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteFolderContents API operation for Amazon WorkDocs. +// +// Deletes the contents of the specified folder. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation DeleteFolderContents for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteFolderContents +func (c *WorkDocs) DeleteFolderContents(input *DeleteFolderContentsInput) (*DeleteFolderContentsOutput, error) { + req, out := c.DeleteFolderContentsRequest(input) + err := req.Send() + return out, err +} + +const opDeleteNotificationSubscription = "DeleteNotificationSubscription" + +// DeleteNotificationSubscriptionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteNotificationSubscription operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteNotificationSubscription for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteNotificationSubscription method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteNotificationSubscriptionRequest method. +// req, resp := client.DeleteNotificationSubscriptionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteNotificationSubscription +func (c *WorkDocs) DeleteNotificationSubscriptionRequest(input *DeleteNotificationSubscriptionInput) (req *request.Request, output *DeleteNotificationSubscriptionOutput) { + op := &request.Operation{ + Name: opDeleteNotificationSubscription, + HTTPMethod: "DELETE", + HTTPPath: "/api/v1/organizations/{OrganizationId}/subscriptions/{SubscriptionId}", + } + + if input == nil { + input = &DeleteNotificationSubscriptionInput{} + } + + output = &DeleteNotificationSubscriptionOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteNotificationSubscription API operation for Amazon WorkDocs. +// +// Deletes the specified subscription from the specified organization. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation DeleteNotificationSubscription for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// * ErrCodeProhibitedStateException "ProhibitedStateException" +// The specified document version is not in the INITIALIZED state. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteNotificationSubscription +func (c *WorkDocs) DeleteNotificationSubscription(input *DeleteNotificationSubscriptionInput) (*DeleteNotificationSubscriptionOutput, error) { + req, out := c.DeleteNotificationSubscriptionRequest(input) + err := req.Send() + return out, err +} + +const opDeleteUser = "DeleteUser" + +// DeleteUserRequest generates a "aws/request.Request" representing the +// client's request for the DeleteUser operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DeleteUser for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DeleteUser method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DeleteUserRequest method. +// req, resp := client.DeleteUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteUser +func (c *WorkDocs) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) { + op := &request.Operation{ + Name: opDeleteUser, + HTTPMethod: "DELETE", + HTTPPath: "/api/v1/users/{UserId}", + } + + if input == nil { + input = &DeleteUserInput{} + } + + output = &DeleteUserOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteUser API operation for Amazon WorkDocs. +// +// Deletes the specified user from a Simple AD or Microsoft AD directory. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation DeleteUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteUser +func (c *WorkDocs) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) { + req, out := c.DeleteUserRequest(input) + err := req.Send() + return out, err +} + +const opDescribeDocumentVersions = "DescribeDocumentVersions" + +// DescribeDocumentVersionsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeDocumentVersions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeDocumentVersions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeDocumentVersions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeDocumentVersionsRequest method. +// req, resp := client.DescribeDocumentVersionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeDocumentVersions +func (c *WorkDocs) DescribeDocumentVersionsRequest(input *DescribeDocumentVersionsInput) (req *request.Request, output *DescribeDocumentVersionsOutput) { + op := &request.Operation{ + Name: opDescribeDocumentVersions, + HTTPMethod: "GET", + HTTPPath: "/api/v1/documents/{DocumentId}/versions", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"Marker"}, + LimitToken: "Limit", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeDocumentVersionsInput{} + } + + output = &DescribeDocumentVersionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeDocumentVersions API operation for Amazon WorkDocs. +// +// Retrieves the document versions for the specified document. +// +// By default, only active versions are returned. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation DescribeDocumentVersions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The pagination marker and/or limit fields are not valid. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// * ErrCodeProhibitedStateException "ProhibitedStateException" +// The specified document version is not in the INITIALIZED state. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeDocumentVersions +func (c *WorkDocs) DescribeDocumentVersions(input *DescribeDocumentVersionsInput) (*DescribeDocumentVersionsOutput, error) { + req, out := c.DescribeDocumentVersionsRequest(input) + err := req.Send() + return out, err +} + +// DescribeDocumentVersionsPages iterates over the pages of a DescribeDocumentVersions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeDocumentVersions method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a DescribeDocumentVersions operation. +// pageNum := 0 +// err := client.DescribeDocumentVersionsPages(params, +// func(page *DescribeDocumentVersionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *WorkDocs) DescribeDocumentVersionsPages(input *DescribeDocumentVersionsInput, fn func(p *DescribeDocumentVersionsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.DescribeDocumentVersionsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*DescribeDocumentVersionsOutput), lastPage) + }) +} + +const opDescribeFolderContents = "DescribeFolderContents" + +// DescribeFolderContentsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeFolderContents operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeFolderContents for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeFolderContents method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeFolderContentsRequest method. +// req, resp := client.DescribeFolderContentsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeFolderContents +func (c *WorkDocs) DescribeFolderContentsRequest(input *DescribeFolderContentsInput) (req *request.Request, output *DescribeFolderContentsOutput) { + op := &request.Operation{ + Name: opDescribeFolderContents, + HTTPMethod: "GET", + HTTPPath: "/api/v1/folders/{FolderId}/contents", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"Marker"}, + LimitToken: "Limit", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeFolderContentsInput{} + } + + output = &DescribeFolderContentsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeFolderContents API operation for Amazon WorkDocs. +// +// Describes the contents of the specified folder, including its documents and +// sub-folders. +// +// By default, Amazon WorkDocs returns the first 100 active document and folder +// metadata items. If there are more results, the response includes a marker +// that you can use to request the next set of results. You can also request +// initialized documents. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation DescribeFolderContents for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The pagination marker and/or limit fields are not valid. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// * ErrCodeProhibitedStateException "ProhibitedStateException" +// The specified document version is not in the INITIALIZED state. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeFolderContents +func (c *WorkDocs) DescribeFolderContents(input *DescribeFolderContentsInput) (*DescribeFolderContentsOutput, error) { + req, out := c.DescribeFolderContentsRequest(input) + err := req.Send() + return out, err +} + +// DescribeFolderContentsPages iterates over the pages of a DescribeFolderContents operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeFolderContents method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a DescribeFolderContents operation. +// pageNum := 0 +// err := client.DescribeFolderContentsPages(params, +// func(page *DescribeFolderContentsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *WorkDocs) DescribeFolderContentsPages(input *DescribeFolderContentsInput, fn func(p *DescribeFolderContentsOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.DescribeFolderContentsRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*DescribeFolderContentsOutput), lastPage) + }) +} + +const opDescribeNotificationSubscriptions = "DescribeNotificationSubscriptions" + +// DescribeNotificationSubscriptionsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeNotificationSubscriptions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeNotificationSubscriptions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeNotificationSubscriptions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeNotificationSubscriptionsRequest method. +// req, resp := client.DescribeNotificationSubscriptionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeNotificationSubscriptions +func (c *WorkDocs) DescribeNotificationSubscriptionsRequest(input *DescribeNotificationSubscriptionsInput) (req *request.Request, output *DescribeNotificationSubscriptionsOutput) { + op := &request.Operation{ + Name: opDescribeNotificationSubscriptions, + HTTPMethod: "GET", + HTTPPath: "/api/v1/organizations/{OrganizationId}/subscriptions", + } + + if input == nil { + input = &DescribeNotificationSubscriptionsInput{} + } + + output = &DescribeNotificationSubscriptionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeNotificationSubscriptions API operation for Amazon WorkDocs. +// +// Lists the specified notification subscriptions. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation DescribeNotificationSubscriptions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeNotificationSubscriptions +func (c *WorkDocs) DescribeNotificationSubscriptions(input *DescribeNotificationSubscriptionsInput) (*DescribeNotificationSubscriptionsOutput, error) { + req, out := c.DescribeNotificationSubscriptionsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeResourcePermissions = "DescribeResourcePermissions" + +// DescribeResourcePermissionsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeResourcePermissions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeResourcePermissions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeResourcePermissions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeResourcePermissionsRequest method. +// req, resp := client.DescribeResourcePermissionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeResourcePermissions +func (c *WorkDocs) DescribeResourcePermissionsRequest(input *DescribeResourcePermissionsInput) (req *request.Request, output *DescribeResourcePermissionsOutput) { + op := &request.Operation{ + Name: opDescribeResourcePermissions, + HTTPMethod: "GET", + HTTPPath: "/api/v1/resources/{ResourceId}/permissions", + } + + if input == nil { + input = &DescribeResourcePermissionsInput{} + } + + output = &DescribeResourcePermissionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeResourcePermissions API operation for Amazon WorkDocs. +// +// Describes the permissions of a specified resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation DescribeResourcePermissions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeResourcePermissions +func (c *WorkDocs) DescribeResourcePermissions(input *DescribeResourcePermissionsInput) (*DescribeResourcePermissionsOutput, error) { + req, out := c.DescribeResourcePermissionsRequest(input) + err := req.Send() + return out, err +} + +const opDescribeUsers = "DescribeUsers" + +// DescribeUsersRequest generates a "aws/request.Request" representing the +// client's request for the DescribeUsers operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See DescribeUsers for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the DescribeUsers method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the DescribeUsersRequest method. +// req, resp := client.DescribeUsersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeUsers +func (c *WorkDocs) DescribeUsersRequest(input *DescribeUsersInput) (req *request.Request, output *DescribeUsersOutput) { + op := &request.Operation{ + Name: opDescribeUsers, + HTTPMethod: "GET", + HTTPPath: "/api/v1/users", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"Marker"}, + LimitToken: "Limit", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeUsersInput{} + } + + output = &DescribeUsersOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeUsers API operation for Amazon WorkDocs. +// +// Describes the specified users. You can describe all users or filter the results +// (for example, by status or organization). +// +// By default, Amazon WorkDocs returns the first 24 active or pending users. +// If there are more results, the response includes a marker that you can use +// to request the next set of results. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation DescribeUsers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The pagination marker and/or limit fields are not valid. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeUsers +func (c *WorkDocs) DescribeUsers(input *DescribeUsersInput) (*DescribeUsersOutput, error) { + req, out := c.DescribeUsersRequest(input) + err := req.Send() + return out, err +} + +// DescribeUsersPages iterates over the pages of a DescribeUsers operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeUsers method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a DescribeUsers operation. +// pageNum := 0 +// err := client.DescribeUsersPages(params, +// func(page *DescribeUsersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *WorkDocs) DescribeUsersPages(input *DescribeUsersInput, fn func(p *DescribeUsersOutput, lastPage bool) (shouldContinue bool)) error { + page, _ := c.DescribeUsersRequest(input) + page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) + return page.EachPage(func(p interface{}, lastPage bool) bool { + return fn(p.(*DescribeUsersOutput), lastPage) + }) +} + +const opGetDocument = "GetDocument" + +// GetDocumentRequest generates a "aws/request.Request" representing the +// client's request for the GetDocument operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetDocument for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetDocument method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetDocumentRequest method. +// req, resp := client.GetDocumentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocument +func (c *WorkDocs) GetDocumentRequest(input *GetDocumentInput) (req *request.Request, output *GetDocumentOutput) { + op := &request.Operation{ + Name: opGetDocument, + HTTPMethod: "GET", + HTTPPath: "/api/v1/documents/{DocumentId}", + } + + if input == nil { + input = &GetDocumentInput{} + } + + output = &GetDocumentOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDocument API operation for Amazon WorkDocs. +// +// Retrieves the specified document object. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation GetDocument for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The pagination marker and/or limit fields are not valid. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocument +func (c *WorkDocs) GetDocument(input *GetDocumentInput) (*GetDocumentOutput, error) { + req, out := c.GetDocumentRequest(input) + err := req.Send() + return out, err +} + +const opGetDocumentPath = "GetDocumentPath" + +// GetDocumentPathRequest generates a "aws/request.Request" representing the +// client's request for the GetDocumentPath operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetDocumentPath for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetDocumentPath method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetDocumentPathRequest method. +// req, resp := client.GetDocumentPathRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentPath +func (c *WorkDocs) GetDocumentPathRequest(input *GetDocumentPathInput) (req *request.Request, output *GetDocumentPathOutput) { + op := &request.Operation{ + Name: opGetDocumentPath, + HTTPMethod: "GET", + HTTPPath: "/api/v1/documents/{DocumentId}/path", + } + + if input == nil { + input = &GetDocumentPathInput{} + } + + output = &GetDocumentPathOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDocumentPath API operation for Amazon WorkDocs. +// +// Retrieves the path information (the hierarchy from the root folder) for the +// requested document. +// +// By default, Amazon WorkDocs returns a maximum of 100 levels upwards from +// the requested document and only includes the IDs of the parent folders in +// the path. You can limit the maximum number of levels. You can also request +// the names of the parent folders. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation GetDocumentPath for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentPath +func (c *WorkDocs) GetDocumentPath(input *GetDocumentPathInput) (*GetDocumentPathOutput, error) { + req, out := c.GetDocumentPathRequest(input) + err := req.Send() + return out, err +} + +const opGetDocumentVersion = "GetDocumentVersion" + +// GetDocumentVersionRequest generates a "aws/request.Request" representing the +// client's request for the GetDocumentVersion operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetDocumentVersion for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetDocumentVersion method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetDocumentVersionRequest method. +// req, resp := client.GetDocumentVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentVersion +func (c *WorkDocs) GetDocumentVersionRequest(input *GetDocumentVersionInput) (req *request.Request, output *GetDocumentVersionOutput) { + op := &request.Operation{ + Name: opGetDocumentVersion, + HTTPMethod: "GET", + HTTPPath: "/api/v1/documents/{DocumentId}/versions/{VersionId}", + } + + if input == nil { + input = &GetDocumentVersionInput{} + } + + output = &GetDocumentVersionOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDocumentVersion API operation for Amazon WorkDocs. +// +// Retrieves version metadata for the specified document. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation GetDocumentVersion for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// * ErrCodeProhibitedStateException "ProhibitedStateException" +// The specified document version is not in the INITIALIZED state. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentVersion +func (c *WorkDocs) GetDocumentVersion(input *GetDocumentVersionInput) (*GetDocumentVersionOutput, error) { + req, out := c.GetDocumentVersionRequest(input) + err := req.Send() + return out, err +} + +const opGetFolder = "GetFolder" + +// GetFolderRequest generates a "aws/request.Request" representing the +// client's request for the GetFolder operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetFolder for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetFolder method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetFolderRequest method. +// req, resp := client.GetFolderRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetFolder +func (c *WorkDocs) GetFolderRequest(input *GetFolderInput) (req *request.Request, output *GetFolderOutput) { + op := &request.Operation{ + Name: opGetFolder, + HTTPMethod: "GET", + HTTPPath: "/api/v1/folders/{FolderId}", + } + + if input == nil { + input = &GetFolderInput{} + } + + output = &GetFolderOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetFolder API operation for Amazon WorkDocs. +// +// Retrieves the metadata of the specified folder. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation GetFolder for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The pagination marker and/or limit fields are not valid. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// * ErrCodeProhibitedStateException "ProhibitedStateException" +// The specified document version is not in the INITIALIZED state. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetFolder +func (c *WorkDocs) GetFolder(input *GetFolderInput) (*GetFolderOutput, error) { + req, out := c.GetFolderRequest(input) + err := req.Send() + return out, err +} + +const opGetFolderPath = "GetFolderPath" + +// GetFolderPathRequest generates a "aws/request.Request" representing the +// client's request for the GetFolderPath operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetFolderPath for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetFolderPath method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetFolderPathRequest method. +// req, resp := client.GetFolderPathRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetFolderPath +func (c *WorkDocs) GetFolderPathRequest(input *GetFolderPathInput) (req *request.Request, output *GetFolderPathOutput) { + op := &request.Operation{ + Name: opGetFolderPath, + HTTPMethod: "GET", + HTTPPath: "/api/v1/folders/{FolderId}/path", + } + + if input == nil { + input = &GetFolderPathInput{} + } + + output = &GetFolderPathOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetFolderPath API operation for Amazon WorkDocs. +// +// Retrieves the path information (the hierarchy from the root folder) for the +// specified folder. +// +// By default, Amazon WorkDocs returns a maximum of 100 levels upwards from +// the requested folder and only includes the IDs of the parent folders in the +// path. You can limit the maximum number of levels. You can also request the +// parent folder names. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation GetFolderPath for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetFolderPath +func (c *WorkDocs) GetFolderPath(input *GetFolderPathInput) (*GetFolderPathOutput, error) { + req, out := c.GetFolderPathRequest(input) + err := req.Send() + return out, err +} + +const opInitiateDocumentVersionUpload = "InitiateDocumentVersionUpload" + +// InitiateDocumentVersionUploadRequest generates a "aws/request.Request" representing the +// client's request for the InitiateDocumentVersionUpload operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See InitiateDocumentVersionUpload for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the InitiateDocumentVersionUpload method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the InitiateDocumentVersionUploadRequest method. +// req, resp := client.InitiateDocumentVersionUploadRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/InitiateDocumentVersionUpload +func (c *WorkDocs) InitiateDocumentVersionUploadRequest(input *InitiateDocumentVersionUploadInput) (req *request.Request, output *InitiateDocumentVersionUploadOutput) { + op := &request.Operation{ + Name: opInitiateDocumentVersionUpload, + HTTPMethod: "POST", + HTTPPath: "/api/v1/documents", + } + + if input == nil { + input = &InitiateDocumentVersionUploadInput{} + } + + output = &InitiateDocumentVersionUploadOutput{} + req = c.newRequest(op, input, output) + return +} + +// InitiateDocumentVersionUpload API operation for Amazon WorkDocs. +// +// Creates a new document object and version object. +// +// The client specifies the parent folder ID and name of the document to upload. +// The ID is optionally specified when creating a new version of an existing +// document. This is the first step to upload a document. Next, upload the document +// to the URL returned from the call, and then call UpdateDocumentVersion. +// +// To cancel the document upload, call AbortDocumentVersionUpload. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation InitiateDocumentVersionUpload for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" +// The resource already exists. +// +// * ErrCodeStorageLimitExceededException "StorageLimitExceededException" +// The storage limit has been exceeded. +// +// * ErrCodeStorageLimitWillExceedException "StorageLimitWillExceedException" +// The storage limit will be exceeded. +// +// * ErrCodeProhibitedStateException "ProhibitedStateException" +// The specified document version is not in the INITIALIZED state. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/InitiateDocumentVersionUpload +func (c *WorkDocs) InitiateDocumentVersionUpload(input *InitiateDocumentVersionUploadInput) (*InitiateDocumentVersionUploadOutput, error) { + req, out := c.InitiateDocumentVersionUploadRequest(input) + err := req.Send() + return out, err +} + +const opRemoveAllResourcePermissions = "RemoveAllResourcePermissions" + +// RemoveAllResourcePermissionsRequest generates a "aws/request.Request" representing the +// client's request for the RemoveAllResourcePermissions operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See RemoveAllResourcePermissions for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the RemoveAllResourcePermissions method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the RemoveAllResourcePermissionsRequest method. +// req, resp := client.RemoveAllResourcePermissionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/RemoveAllResourcePermissions +func (c *WorkDocs) RemoveAllResourcePermissionsRequest(input *RemoveAllResourcePermissionsInput) (req *request.Request, output *RemoveAllResourcePermissionsOutput) { + op := &request.Operation{ + Name: opRemoveAllResourcePermissions, + HTTPMethod: "DELETE", + HTTPPath: "/api/v1/resources/{ResourceId}/permissions", + } + + if input == nil { + input = &RemoveAllResourcePermissionsInput{} + } + + output = &RemoveAllResourcePermissionsOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// RemoveAllResourcePermissions API operation for Amazon WorkDocs. +// +// Removes all the permissions from the specified resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation RemoveAllResourcePermissions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/RemoveAllResourcePermissions +func (c *WorkDocs) RemoveAllResourcePermissions(input *RemoveAllResourcePermissionsInput) (*RemoveAllResourcePermissionsOutput, error) { + req, out := c.RemoveAllResourcePermissionsRequest(input) + err := req.Send() + return out, err +} + +const opRemoveResourcePermission = "RemoveResourcePermission" + +// RemoveResourcePermissionRequest generates a "aws/request.Request" representing the +// client's request for the RemoveResourcePermission operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See RemoveResourcePermission for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the RemoveResourcePermission method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the RemoveResourcePermissionRequest method. +// req, resp := client.RemoveResourcePermissionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/RemoveResourcePermission +func (c *WorkDocs) RemoveResourcePermissionRequest(input *RemoveResourcePermissionInput) (req *request.Request, output *RemoveResourcePermissionOutput) { + op := &request.Operation{ + Name: opRemoveResourcePermission, + HTTPMethod: "DELETE", + HTTPPath: "/api/v1/resources/{ResourceId}/permissions/{PrincipalId}", + } + + if input == nil { + input = &RemoveResourcePermissionInput{} + } + + output = &RemoveResourcePermissionOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// RemoveResourcePermission API operation for Amazon WorkDocs. +// +// Removes the permission for the specified principal from the specified resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation RemoveResourcePermission for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/RemoveResourcePermission +func (c *WorkDocs) RemoveResourcePermission(input *RemoveResourcePermissionInput) (*RemoveResourcePermissionOutput, error) { + req, out := c.RemoveResourcePermissionRequest(input) + err := req.Send() + return out, err +} + +const opUpdateDocument = "UpdateDocument" + +// UpdateDocumentRequest generates a "aws/request.Request" representing the +// client's request for the UpdateDocument operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateDocument for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateDocument method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateDocumentRequest method. +// req, resp := client.UpdateDocumentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocument +func (c *WorkDocs) UpdateDocumentRequest(input *UpdateDocumentInput) (req *request.Request, output *UpdateDocumentOutput) { + op := &request.Operation{ + Name: opUpdateDocument, + HTTPMethod: "PATCH", + HTTPPath: "/api/v1/documents/{DocumentId}", + } + + if input == nil { + input = &UpdateDocumentInput{} + } + + output = &UpdateDocumentOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateDocument API operation for Amazon WorkDocs. +// +// Updates the specified attributes of the specified document. The user must +// have access to both the document and its parent folder, if applicable. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation UpdateDocument for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" +// The resource already exists. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// You've exceeded the maximum of 100,000 folders under the parent folder. +// +// * ErrCodeProhibitedStateException "ProhibitedStateException" +// The specified document version is not in the INITIALIZED state. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The resource hierarchy is changing. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocument +func (c *WorkDocs) UpdateDocument(input *UpdateDocumentInput) (*UpdateDocumentOutput, error) { + req, out := c.UpdateDocumentRequest(input) + err := req.Send() + return out, err +} + +const opUpdateDocumentVersion = "UpdateDocumentVersion" + +// UpdateDocumentVersionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateDocumentVersion operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateDocumentVersion for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateDocumentVersion method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateDocumentVersionRequest method. +// req, resp := client.UpdateDocumentVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocumentVersion +func (c *WorkDocs) UpdateDocumentVersionRequest(input *UpdateDocumentVersionInput) (req *request.Request, output *UpdateDocumentVersionOutput) { + op := &request.Operation{ + Name: opUpdateDocumentVersion, + HTTPMethod: "PATCH", + HTTPPath: "/api/v1/documents/{DocumentId}/versions/{VersionId}", + } + + if input == nil { + input = &UpdateDocumentVersionInput{} + } + + output = &UpdateDocumentVersionOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateDocumentVersion API operation for Amazon WorkDocs. +// +// Changes the status of the document version to ACTIVE. +// +// Amazon WorkDocs also sets its document container to ACTIVE. This is the last +// step in a document upload, after the client uploads the document to an S3-presigned +// URL returned by InitiateDocumentVersionUpload. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation UpdateDocumentVersion for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeProhibitedStateException "ProhibitedStateException" +// The specified document version is not in the INITIALIZED state. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The resource hierarchy is changing. +// +// * ErrCodeInvalidOperationException "InvalidOperationException" +// The operation is invalid. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocumentVersion +func (c *WorkDocs) UpdateDocumentVersion(input *UpdateDocumentVersionInput) (*UpdateDocumentVersionOutput, error) { + req, out := c.UpdateDocumentVersionRequest(input) + err := req.Send() + return out, err +} + +const opUpdateFolder = "UpdateFolder" + +// UpdateFolderRequest generates a "aws/request.Request" representing the +// client's request for the UpdateFolder operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateFolder for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateFolder method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateFolderRequest method. +// req, resp := client.UpdateFolderRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateFolder +func (c *WorkDocs) UpdateFolderRequest(input *UpdateFolderInput) (req *request.Request, output *UpdateFolderOutput) { + op := &request.Operation{ + Name: opUpdateFolder, + HTTPMethod: "PATCH", + HTTPPath: "/api/v1/folders/{FolderId}", + } + + if input == nil { + input = &UpdateFolderInput{} + } + + output = &UpdateFolderOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateFolder API operation for Amazon WorkDocs. +// +// Updates the specified attributes of the specified folder. The user must have +// access to both the folder and its parent folder, if applicable. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation UpdateFolder for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" +// The resource already exists. +// +// * ErrCodeProhibitedStateException "ProhibitedStateException" +// The specified document version is not in the INITIALIZED state. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The resource hierarchy is changing. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// You've exceeded the maximum of 100,000 folders under the parent folder. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateFolder +func (c *WorkDocs) UpdateFolder(input *UpdateFolderInput) (*UpdateFolderOutput, error) { + req, out := c.UpdateFolderRequest(input) + err := req.Send() + return out, err +} + +const opUpdateUser = "UpdateUser" + +// UpdateUserRequest generates a "aws/request.Request" representing the +// client's request for the UpdateUser operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See UpdateUser for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the UpdateUser method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the UpdateUserRequest method. +// req, resp := client.UpdateUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateUser +func (c *WorkDocs) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, output *UpdateUserOutput) { + op := &request.Operation{ + Name: opUpdateUser, + HTTPMethod: "PATCH", + HTTPPath: "/api/v1/users/{UserId}", + } + + if input == nil { + input = &UpdateUserInput{} + } + + output = &UpdateUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateUser API operation for Amazon WorkDocs. +// +// Updates the specified attributes of the specified user, and grants or revokes +// administrative privileges to the Amazon WorkDocs site. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkDocs's +// API operation UpdateUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeIllegalUserStateException "IllegalUserStateException" +// The user is undergoing transfer of ownership. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected active +// directory. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// One or more of the dependencies is unavailable. +// +// * ErrCodeDeactivatingLastSystemUserException "DeactivatingLastSystemUserException" +// The last user in the organization is being deactivated. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateUser +func (c *WorkDocs) UpdateUser(input *UpdateUserInput) (*UpdateUserOutput, error) { + req, out := c.UpdateUserRequest(input) + err := req.Send() + return out, err +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/AbortDocumentVersionUploadRequest +type AbortDocumentVersionUploadInput struct { + _ struct{} `type:"structure"` + + // The ID of the document. + // + // DocumentId is a required field + DocumentId *string `location:"uri" locationName:"DocumentId" min:"1" type:"string" required:"true"` + + // The ID of the version. + // + // VersionId is a required field + VersionId *string `location:"uri" locationName:"VersionId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AbortDocumentVersionUploadInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AbortDocumentVersionUploadInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AbortDocumentVersionUploadInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AbortDocumentVersionUploadInput"} + if s.DocumentId == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentId")) + } + if s.DocumentId != nil && len(*s.DocumentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentId", 1)) + } + if s.VersionId == nil { + invalidParams.Add(request.NewErrParamRequired("VersionId")) + } + if s.VersionId != nil && len(*s.VersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VersionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocumentId sets the DocumentId field's value. +func (s *AbortDocumentVersionUploadInput) SetDocumentId(v string) *AbortDocumentVersionUploadInput { + s.DocumentId = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *AbortDocumentVersionUploadInput) SetVersionId(v string) *AbortDocumentVersionUploadInput { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/AbortDocumentVersionUploadOutput +type AbortDocumentVersionUploadOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AbortDocumentVersionUploadOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AbortDocumentVersionUploadOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/ActivateUserRequest +type ActivateUserInput struct { + _ struct{} `type:"structure"` + + // The ID of the user. + // + // UserId is a required field + UserId *string `location:"uri" locationName:"UserId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ActivateUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ActivateUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ActivateUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ActivateUserInput"} + if s.UserId == nil { + invalidParams.Add(request.NewErrParamRequired("UserId")) + } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUserId sets the UserId field's value. +func (s *ActivateUserInput) SetUserId(v string) *ActivateUserInput { + s.UserId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/ActivateUserResponse +type ActivateUserOutput struct { + _ struct{} `type:"structure"` + + // The user information. + User *User `type:"structure"` +} + +// String returns the string representation +func (s ActivateUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ActivateUserOutput) GoString() string { + return s.String() +} + +// SetUser sets the User field's value. +func (s *ActivateUserOutput) SetUser(v *User) *ActivateUserOutput { + s.User = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/AddResourcePermissionsRequest +type AddResourcePermissionsInput struct { + _ struct{} `type:"structure"` + + // The users, groups, or organization being granted permission. + // + // Principals is a required field + Principals []*SharePrincipal `type:"list" required:"true"` + + // The ID of the resource. + // + // ResourceId is a required field + ResourceId *string `location:"uri" locationName:"ResourceId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AddResourcePermissionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddResourcePermissionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AddResourcePermissionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AddResourcePermissionsInput"} + if s.Principals == nil { + invalidParams.Add(request.NewErrParamRequired("Principals")) + } + if s.ResourceId == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceId")) + } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } + if s.Principals != nil { + for i, v := range s.Principals { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Principals", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPrincipals sets the Principals field's value. +func (s *AddResourcePermissionsInput) SetPrincipals(v []*SharePrincipal) *AddResourcePermissionsInput { + s.Principals = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *AddResourcePermissionsInput) SetResourceId(v string) *AddResourcePermissionsInput { + s.ResourceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/AddResourcePermissionsResponse +type AddResourcePermissionsOutput struct { + _ struct{} `type:"structure"` + + // The share results. + ShareResults []*ShareResult `type:"list"` +} + +// String returns the string representation +func (s AddResourcePermissionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddResourcePermissionsOutput) GoString() string { + return s.String() +} + +// SetShareResults sets the ShareResults field's value. +func (s *AddResourcePermissionsOutput) SetShareResults(v []*ShareResult) *AddResourcePermissionsOutput { + s.ShareResults = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateFolderRequest +type CreateFolderInput struct { + _ struct{} `type:"structure"` + + // The name of the new folder. + Name *string `min:"1" type:"string"` + + // The ID of the parent folder. + // + // ParentFolderId is a required field + ParentFolderId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateFolderInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateFolderInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateFolderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateFolderInput"} + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.ParentFolderId == nil { + invalidParams.Add(request.NewErrParamRequired("ParentFolderId")) + } + if s.ParentFolderId != nil && len(*s.ParentFolderId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ParentFolderId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *CreateFolderInput) SetName(v string) *CreateFolderInput { + s.Name = &v + return s +} + +// SetParentFolderId sets the ParentFolderId field's value. +func (s *CreateFolderInput) SetParentFolderId(v string) *CreateFolderInput { + s.ParentFolderId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateFolderResponse +type CreateFolderOutput struct { + _ struct{} `type:"structure"` + + // The metadata of the folder. + Metadata *FolderMetadata `type:"structure"` +} + +// String returns the string representation +func (s CreateFolderOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateFolderOutput) GoString() string { + return s.String() +} + +// SetMetadata sets the Metadata field's value. +func (s *CreateFolderOutput) SetMetadata(v *FolderMetadata) *CreateFolderOutput { + s.Metadata = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateNotificationSubscriptionRequest +type CreateNotificationSubscriptionInput struct { + _ struct{} `type:"structure"` + + // The endpoint to receive the notifications. If the protocol is HTTPS, the + // endpoint is a URL that begins with "https://". + // + // Endpoint is a required field + Endpoint *string `min:"1" type:"string" required:"true"` + + // The ID of the organization. + // + // OrganizationId is a required field + OrganizationId *string `location:"uri" locationName:"OrganizationId" min:"1" type:"string" required:"true"` + + // The protocol to use. The supported value is https, which delivers JSON-encoded + // messasges using HTTPS POST. + // + // Protocol is a required field + Protocol *string `type:"string" required:"true" enum:"SubscriptionProtocolType"` + + // The notification type. + // + // SubscriptionType is a required field + SubscriptionType *string `type:"string" required:"true" enum:"SubscriptionType"` +} + +// String returns the string representation +func (s CreateNotificationSubscriptionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateNotificationSubscriptionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateNotificationSubscriptionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateNotificationSubscriptionInput"} + if s.Endpoint == nil { + invalidParams.Add(request.NewErrParamRequired("Endpoint")) + } + if s.Endpoint != nil && len(*s.Endpoint) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Endpoint", 1)) + } + if s.OrganizationId == nil { + invalidParams.Add(request.NewErrParamRequired("OrganizationId")) + } + if s.OrganizationId != nil && len(*s.OrganizationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OrganizationId", 1)) + } + if s.Protocol == nil { + invalidParams.Add(request.NewErrParamRequired("Protocol")) + } + if s.SubscriptionType == nil { + invalidParams.Add(request.NewErrParamRequired("SubscriptionType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndpoint sets the Endpoint field's value. +func (s *CreateNotificationSubscriptionInput) SetEndpoint(v string) *CreateNotificationSubscriptionInput { + s.Endpoint = &v + return s +} + +// SetOrganizationId sets the OrganizationId field's value. +func (s *CreateNotificationSubscriptionInput) SetOrganizationId(v string) *CreateNotificationSubscriptionInput { + s.OrganizationId = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *CreateNotificationSubscriptionInput) SetProtocol(v string) *CreateNotificationSubscriptionInput { + s.Protocol = &v + return s +} + +// SetSubscriptionType sets the SubscriptionType field's value. +func (s *CreateNotificationSubscriptionInput) SetSubscriptionType(v string) *CreateNotificationSubscriptionInput { + s.SubscriptionType = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateNotificationSubscriptionResponse +type CreateNotificationSubscriptionOutput struct { + _ struct{} `type:"structure"` + + // The subscription. + Subscription *Subscription `type:"structure"` +} + +// String returns the string representation +func (s CreateNotificationSubscriptionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateNotificationSubscriptionOutput) GoString() string { + return s.String() +} + +// SetSubscription sets the Subscription field's value. +func (s *CreateNotificationSubscriptionOutput) SetSubscription(v *Subscription) *CreateNotificationSubscriptionOutput { + s.Subscription = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateUserRequest +type CreateUserInput struct { + _ struct{} `type:"structure"` + + // The given name of the user. + // + // GivenName is a required field + GivenName *string `min:"1" type:"string" required:"true"` + + // The ID of the organization. + OrganizationId *string `min:"1" type:"string"` + + // The password of the user. + // + // Password is a required field + Password *string `min:"4" type:"string" required:"true"` + + // The amount of storage for the user. + StorageRule *StorageRuleType `type:"structure"` + + // The surname of the user. + // + // Surname is a required field + Surname *string `min:"1" type:"string" required:"true"` + + // The time zone ID of the user. + TimeZoneId *string `min:"1" type:"string"` + + // The login name of the user. + // + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateUserInput"} + if s.GivenName == nil { + invalidParams.Add(request.NewErrParamRequired("GivenName")) + } + if s.GivenName != nil && len(*s.GivenName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GivenName", 1)) + } + if s.OrganizationId != nil && len(*s.OrganizationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OrganizationId", 1)) + } + if s.Password == nil { + invalidParams.Add(request.NewErrParamRequired("Password")) + } + if s.Password != nil && len(*s.Password) < 4 { + invalidParams.Add(request.NewErrParamMinLen("Password", 4)) + } + if s.Surname == nil { + invalidParams.Add(request.NewErrParamRequired("Surname")) + } + if s.Surname != nil && len(*s.Surname) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Surname", 1)) + } + if s.TimeZoneId != nil && len(*s.TimeZoneId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TimeZoneId", 1)) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGivenName sets the GivenName field's value. +func (s *CreateUserInput) SetGivenName(v string) *CreateUserInput { + s.GivenName = &v + return s +} + +// SetOrganizationId sets the OrganizationId field's value. +func (s *CreateUserInput) SetOrganizationId(v string) *CreateUserInput { + s.OrganizationId = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *CreateUserInput) SetPassword(v string) *CreateUserInput { + s.Password = &v + return s +} + +// SetStorageRule sets the StorageRule field's value. +func (s *CreateUserInput) SetStorageRule(v *StorageRuleType) *CreateUserInput { + s.StorageRule = v + return s +} + +// SetSurname sets the Surname field's value. +func (s *CreateUserInput) SetSurname(v string) *CreateUserInput { + s.Surname = &v + return s +} + +// SetTimeZoneId sets the TimeZoneId field's value. +func (s *CreateUserInput) SetTimeZoneId(v string) *CreateUserInput { + s.TimeZoneId = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *CreateUserInput) SetUsername(v string) *CreateUserInput { + s.Username = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateUserResponse +type CreateUserOutput struct { + _ struct{} `type:"structure"` + + // The user information. + User *User `type:"structure"` +} + +// String returns the string representation +func (s CreateUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateUserOutput) GoString() string { + return s.String() +} + +// SetUser sets the User field's value. +func (s *CreateUserOutput) SetUser(v *User) *CreateUserOutput { + s.User = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeactivateUserRequest +type DeactivateUserInput struct { + _ struct{} `type:"structure"` + + // The ID of the user. + // + // UserId is a required field + UserId *string `location:"uri" locationName:"UserId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeactivateUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeactivateUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeactivateUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeactivateUserInput"} + if s.UserId == nil { + invalidParams.Add(request.NewErrParamRequired("UserId")) + } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUserId sets the UserId field's value. +func (s *DeactivateUserInput) SetUserId(v string) *DeactivateUserInput { + s.UserId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeactivateUserOutput +type DeactivateUserOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeactivateUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeactivateUserOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteDocumentRequest +type DeleteDocumentInput struct { + _ struct{} `type:"structure"` + + // The ID of the document. + // + // DocumentId is a required field + DocumentId *string `location:"uri" locationName:"DocumentId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteDocumentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDocumentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDocumentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDocumentInput"} + if s.DocumentId == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentId")) + } + if s.DocumentId != nil && len(*s.DocumentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocumentId sets the DocumentId field's value. +func (s *DeleteDocumentInput) SetDocumentId(v string) *DeleteDocumentInput { + s.DocumentId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteDocumentOutput +type DeleteDocumentOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteDocumentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDocumentOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteFolderContentsRequest +type DeleteFolderContentsInput struct { + _ struct{} `type:"structure"` + + // The ID of the folder. + // + // FolderId is a required field + FolderId *string `location:"uri" locationName:"FolderId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteFolderContentsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFolderContentsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteFolderContentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFolderContentsInput"} + if s.FolderId == nil { + invalidParams.Add(request.NewErrParamRequired("FolderId")) + } + if s.FolderId != nil && len(*s.FolderId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FolderId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFolderId sets the FolderId field's value. +func (s *DeleteFolderContentsInput) SetFolderId(v string) *DeleteFolderContentsInput { + s.FolderId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteFolderContentsOutput +type DeleteFolderContentsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteFolderContentsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFolderContentsOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteFolderRequest +type DeleteFolderInput struct { + _ struct{} `type:"structure"` + + // The ID of the folder. + // + // FolderId is a required field + FolderId *string `location:"uri" locationName:"FolderId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteFolderInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFolderInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteFolderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFolderInput"} + if s.FolderId == nil { + invalidParams.Add(request.NewErrParamRequired("FolderId")) + } + if s.FolderId != nil && len(*s.FolderId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FolderId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFolderId sets the FolderId field's value. +func (s *DeleteFolderInput) SetFolderId(v string) *DeleteFolderInput { + s.FolderId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteFolderOutput +type DeleteFolderOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteFolderOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFolderOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteNotificationSubscriptionRequest +type DeleteNotificationSubscriptionInput struct { + _ struct{} `type:"structure"` + + // The ID of the organization. + // + // OrganizationId is a required field + OrganizationId *string `location:"uri" locationName:"OrganizationId" min:"1" type:"string" required:"true"` + + // The ID of the subscription. + // + // SubscriptionId is a required field + SubscriptionId *string `location:"uri" locationName:"SubscriptionId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteNotificationSubscriptionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteNotificationSubscriptionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteNotificationSubscriptionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteNotificationSubscriptionInput"} + if s.OrganizationId == nil { + invalidParams.Add(request.NewErrParamRequired("OrganizationId")) + } + if s.OrganizationId != nil && len(*s.OrganizationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OrganizationId", 1)) + } + if s.SubscriptionId == nil { + invalidParams.Add(request.NewErrParamRequired("SubscriptionId")) + } + if s.SubscriptionId != nil && len(*s.SubscriptionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SubscriptionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetOrganizationId sets the OrganizationId field's value. +func (s *DeleteNotificationSubscriptionInput) SetOrganizationId(v string) *DeleteNotificationSubscriptionInput { + s.OrganizationId = &v + return s +} + +// SetSubscriptionId sets the SubscriptionId field's value. +func (s *DeleteNotificationSubscriptionInput) SetSubscriptionId(v string) *DeleteNotificationSubscriptionInput { + s.SubscriptionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteNotificationSubscriptionOutput +type DeleteNotificationSubscriptionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteNotificationSubscriptionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteNotificationSubscriptionOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteUserRequest +type DeleteUserInput struct { + _ struct{} `type:"structure"` + + // The ID of the user. + // + // UserId is a required field + UserId *string `location:"uri" locationName:"UserId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteUserInput"} + if s.UserId == nil { + invalidParams.Add(request.NewErrParamRequired("UserId")) + } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUserId sets the UserId field's value. +func (s *DeleteUserInput) SetUserId(v string) *DeleteUserInput { + s.UserId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteUserOutput +type DeleteUserOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteUserOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeDocumentVersionsRequest +type DescribeDocumentVersionsInput struct { + _ struct{} `type:"structure"` + + // The ID of the document. + // + // DocumentId is a required field + DocumentId *string `location:"uri" locationName:"DocumentId" min:"1" type:"string" required:"true"` + + // Specify "SOURCE" to include initialized versions and a URL for the source + // document. + Fields *string `location:"querystring" locationName:"fields" min:"1" type:"string"` + + // A comma-separated list of values. Specify "INITIALIZED" to include incomplete + // versions. + Include *string `location:"querystring" locationName:"include" min:"1" type:"string"` + + // The maximum number of versions to return with this call. + Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"` + + // The marker for the next set of results. (You received this marker from a + // previous call.) + Marker *string `location:"querystring" locationName:"marker" min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeDocumentVersionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDocumentVersionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeDocumentVersionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeDocumentVersionsInput"} + if s.DocumentId == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentId")) + } + if s.DocumentId != nil && len(*s.DocumentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentId", 1)) + } + if s.Fields != nil && len(*s.Fields) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Fields", 1)) + } + if s.Include != nil && len(*s.Include) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Include", 1)) + } + if s.Limit != nil && *s.Limit < 1 { + invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) + } + if s.Marker != nil && len(*s.Marker) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocumentId sets the DocumentId field's value. +func (s *DescribeDocumentVersionsInput) SetDocumentId(v string) *DescribeDocumentVersionsInput { + s.DocumentId = &v + return s +} + +// SetFields sets the Fields field's value. +func (s *DescribeDocumentVersionsInput) SetFields(v string) *DescribeDocumentVersionsInput { + s.Fields = &v + return s +} + +// SetInclude sets the Include field's value. +func (s *DescribeDocumentVersionsInput) SetInclude(v string) *DescribeDocumentVersionsInput { + s.Include = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeDocumentVersionsInput) SetLimit(v int64) *DescribeDocumentVersionsInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDocumentVersionsInput) SetMarker(v string) *DescribeDocumentVersionsInput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeDocumentVersionsResponse +type DescribeDocumentVersionsOutput struct { + _ struct{} `type:"structure"` + + // The document versions. + DocumentVersions []*DocumentVersionMetadata `type:"list"` + + // The marker to use when requesting the next set of results. If there are no + // additional results, the string is empty. + Marker *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeDocumentVersionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDocumentVersionsOutput) GoString() string { + return s.String() +} + +// SetDocumentVersions sets the DocumentVersions field's value. +func (s *DescribeDocumentVersionsOutput) SetDocumentVersions(v []*DocumentVersionMetadata) *DescribeDocumentVersionsOutput { + s.DocumentVersions = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDocumentVersionsOutput) SetMarker(v string) *DescribeDocumentVersionsOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeFolderContentsRequest +type DescribeFolderContentsInput struct { + _ struct{} `type:"structure"` + + // The ID of the folder. + // + // FolderId is a required field + FolderId *string `location:"uri" locationName:"FolderId" min:"1" type:"string" required:"true"` + + // The contents to include. Specify "INITIALIZED" to include initialized documents. + Include *string `location:"querystring" locationName:"include" min:"1" type:"string"` + + // The maximum number of items to return with this call. + Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"` + + // The marker for the next set of results. (You received this marker from a + // previous call.) + Marker *string `location:"querystring" locationName:"marker" min:"1" type:"string"` + + // The order for the contents of the folder. + Order *string `location:"querystring" locationName:"order" type:"string" enum:"OrderType"` + + // The sorting criteria. + Sort *string `location:"querystring" locationName:"sort" type:"string" enum:"ResourceSortType"` + + // The type of items. + Type *string `location:"querystring" locationName:"type" type:"string" enum:"FolderContentType"` +} + +// String returns the string representation +func (s DescribeFolderContentsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeFolderContentsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeFolderContentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeFolderContentsInput"} + if s.FolderId == nil { + invalidParams.Add(request.NewErrParamRequired("FolderId")) + } + if s.FolderId != nil && len(*s.FolderId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FolderId", 1)) + } + if s.Include != nil && len(*s.Include) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Include", 1)) + } + if s.Limit != nil && *s.Limit < 1 { + invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) + } + if s.Marker != nil && len(*s.Marker) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFolderId sets the FolderId field's value. +func (s *DescribeFolderContentsInput) SetFolderId(v string) *DescribeFolderContentsInput { + s.FolderId = &v + return s +} + +// SetInclude sets the Include field's value. +func (s *DescribeFolderContentsInput) SetInclude(v string) *DescribeFolderContentsInput { + s.Include = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeFolderContentsInput) SetLimit(v int64) *DescribeFolderContentsInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeFolderContentsInput) SetMarker(v string) *DescribeFolderContentsInput { + s.Marker = &v + return s +} + +// SetOrder sets the Order field's value. +func (s *DescribeFolderContentsInput) SetOrder(v string) *DescribeFolderContentsInput { + s.Order = &v + return s +} + +// SetSort sets the Sort field's value. +func (s *DescribeFolderContentsInput) SetSort(v string) *DescribeFolderContentsInput { + s.Sort = &v + return s +} + +// SetType sets the Type field's value. +func (s *DescribeFolderContentsInput) SetType(v string) *DescribeFolderContentsInput { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeFolderContentsResponse +type DescribeFolderContentsOutput struct { + _ struct{} `type:"structure"` + + // The documents in the specified folder. + Documents []*DocumentMetadata `type:"list"` + + // The sub-folders in the specified folder. + Folders []*FolderMetadata `type:"list"` + + // The marker to use when requesting the next set of results. If there are no + // additional results, the string is empty. + Marker *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeFolderContentsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeFolderContentsOutput) GoString() string { + return s.String() +} + +// SetDocuments sets the Documents field's value. +func (s *DescribeFolderContentsOutput) SetDocuments(v []*DocumentMetadata) *DescribeFolderContentsOutput { + s.Documents = v + return s +} + +// SetFolders sets the Folders field's value. +func (s *DescribeFolderContentsOutput) SetFolders(v []*FolderMetadata) *DescribeFolderContentsOutput { + s.Folders = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeFolderContentsOutput) SetMarker(v string) *DescribeFolderContentsOutput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeNotificationSubscriptionsRequest +type DescribeNotificationSubscriptionsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of items to return with this call. + Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"` + + // The marker for the next set of results. (You received this marker from a + // previous call.) + Marker *string `location:"querystring" locationName:"marker" min:"1" type:"string"` + + // The ID of the organization. + // + // OrganizationId is a required field + OrganizationId *string `location:"uri" locationName:"OrganizationId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeNotificationSubscriptionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeNotificationSubscriptionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeNotificationSubscriptionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeNotificationSubscriptionsInput"} + if s.Limit != nil && *s.Limit < 1 { + invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) + } + if s.Marker != nil && len(*s.Marker) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) + } + if s.OrganizationId == nil { + invalidParams.Add(request.NewErrParamRequired("OrganizationId")) + } + if s.OrganizationId != nil && len(*s.OrganizationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OrganizationId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLimit sets the Limit field's value. +func (s *DescribeNotificationSubscriptionsInput) SetLimit(v int64) *DescribeNotificationSubscriptionsInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeNotificationSubscriptionsInput) SetMarker(v string) *DescribeNotificationSubscriptionsInput { + s.Marker = &v + return s +} + +// SetOrganizationId sets the OrganizationId field's value. +func (s *DescribeNotificationSubscriptionsInput) SetOrganizationId(v string) *DescribeNotificationSubscriptionsInput { + s.OrganizationId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeNotificationSubscriptionsResponse +type DescribeNotificationSubscriptionsOutput struct { + _ struct{} `type:"structure"` + + // The marker to use when requesting the next set of results. If there are no + // additional results, the string is empty. + Marker *string `min:"1" type:"string"` + + // The subscriptions. + Subscriptions []*Subscription `type:"list"` +} + +// String returns the string representation +func (s DescribeNotificationSubscriptionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeNotificationSubscriptionsOutput) GoString() string { + return s.String() +} + +// SetMarker sets the Marker field's value. +func (s *DescribeNotificationSubscriptionsOutput) SetMarker(v string) *DescribeNotificationSubscriptionsOutput { + s.Marker = &v + return s +} + +// SetSubscriptions sets the Subscriptions field's value. +func (s *DescribeNotificationSubscriptionsOutput) SetSubscriptions(v []*Subscription) *DescribeNotificationSubscriptionsOutput { + s.Subscriptions = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeResourcePermissionsRequest +type DescribeResourcePermissionsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of items to return with this call. + Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"` + + // The marker for the next set of results. (You received this marker from a + // previous call) + Marker *string `location:"querystring" locationName:"marker" min:"1" type:"string"` + + // The ID of the resource. + // + // ResourceId is a required field + ResourceId *string `location:"uri" locationName:"ResourceId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeResourcePermissionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeResourcePermissionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeResourcePermissionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeResourcePermissionsInput"} + if s.Limit != nil && *s.Limit < 1 { + invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) + } + if s.Marker != nil && len(*s.Marker) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) + } + if s.ResourceId == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceId")) + } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLimit sets the Limit field's value. +func (s *DescribeResourcePermissionsInput) SetLimit(v int64) *DescribeResourcePermissionsInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeResourcePermissionsInput) SetMarker(v string) *DescribeResourcePermissionsInput { + s.Marker = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *DescribeResourcePermissionsInput) SetResourceId(v string) *DescribeResourcePermissionsInput { + s.ResourceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeResourcePermissionsResponse +type DescribeResourcePermissionsOutput struct { + _ struct{} `type:"structure"` + + // The marker to use when requesting the next set of results. If there are no + // additional results, the string is empty. + Marker *string `min:"1" type:"string"` + + // The principals. + Principals []*Principal `type:"list"` +} + +// String returns the string representation +func (s DescribeResourcePermissionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeResourcePermissionsOutput) GoString() string { + return s.String() +} + +// SetMarker sets the Marker field's value. +func (s *DescribeResourcePermissionsOutput) SetMarker(v string) *DescribeResourcePermissionsOutput { + s.Marker = &v + return s +} + +// SetPrincipals sets the Principals field's value. +func (s *DescribeResourcePermissionsOutput) SetPrincipals(v []*Principal) *DescribeResourcePermissionsOutput { + s.Principals = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeUsersRequest +type DescribeUsersInput struct { + _ struct{} `type:"structure"` + + // A comma-separated list of values. Specify "STORAGE_METADATA" to include the + // user storage quota and utilization information. + Fields *string `location:"querystring" locationName:"fields" min:"1" type:"string"` + + // The state of the users. Specify "ALL" to include inactive users. + Include *string `location:"querystring" locationName:"include" type:"string" enum:"UserFilterType"` + + // The maximum number of items to return. + Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"` + + // The marker for the next set of results. (You received this marker from a + // previous call.) + Marker *string `location:"querystring" locationName:"marker" min:"1" type:"string"` + + // The order for the results. + Order *string `location:"querystring" locationName:"order" type:"string" enum:"OrderType"` + + // The ID of the organization. + OrganizationId *string `location:"querystring" locationName:"organizationId" min:"1" type:"string"` + + // A query to filter users by user name. + Query *string `location:"querystring" locationName:"query" min:"1" type:"string"` + + // The sorting criteria. + Sort *string `location:"querystring" locationName:"sort" type:"string" enum:"UserSortType"` + + // The IDs of the users. + UserIds *string `location:"querystring" locationName:"userIds" min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeUsersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeUsersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeUsersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeUsersInput"} + if s.Fields != nil && len(*s.Fields) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Fields", 1)) + } + if s.Limit != nil && *s.Limit < 1 { + invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) + } + if s.Marker != nil && len(*s.Marker) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) + } + if s.OrganizationId != nil && len(*s.OrganizationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OrganizationId", 1)) + } + if s.Query != nil && len(*s.Query) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Query", 1)) + } + if s.UserIds != nil && len(*s.UserIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserIds", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFields sets the Fields field's value. +func (s *DescribeUsersInput) SetFields(v string) *DescribeUsersInput { + s.Fields = &v + return s +} + +// SetInclude sets the Include field's value. +func (s *DescribeUsersInput) SetInclude(v string) *DescribeUsersInput { + s.Include = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeUsersInput) SetLimit(v int64) *DescribeUsersInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeUsersInput) SetMarker(v string) *DescribeUsersInput { + s.Marker = &v + return s +} + +// SetOrder sets the Order field's value. +func (s *DescribeUsersInput) SetOrder(v string) *DescribeUsersInput { + s.Order = &v + return s +} + +// SetOrganizationId sets the OrganizationId field's value. +func (s *DescribeUsersInput) SetOrganizationId(v string) *DescribeUsersInput { + s.OrganizationId = &v + return s +} + +// SetQuery sets the Query field's value. +func (s *DescribeUsersInput) SetQuery(v string) *DescribeUsersInput { + s.Query = &v + return s +} + +// SetSort sets the Sort field's value. +func (s *DescribeUsersInput) SetSort(v string) *DescribeUsersInput { + s.Sort = &v + return s +} + +// SetUserIds sets the UserIds field's value. +func (s *DescribeUsersInput) SetUserIds(v string) *DescribeUsersInput { + s.UserIds = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeUsersResponse +type DescribeUsersOutput struct { + _ struct{} `type:"structure"` + + // The marker to use when requesting the next set of results. If there are no + // additional results, the string is empty. + Marker *string `min:"1" type:"string"` + + // The total number of users included in the results. + TotalNumberOfUsers *int64 `type:"long"` + + // The users. + Users []*User `type:"list"` +} + +// String returns the string representation +func (s DescribeUsersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeUsersOutput) GoString() string { + return s.String() +} + +// SetMarker sets the Marker field's value. +func (s *DescribeUsersOutput) SetMarker(v string) *DescribeUsersOutput { + s.Marker = &v + return s +} + +// SetTotalNumberOfUsers sets the TotalNumberOfUsers field's value. +func (s *DescribeUsersOutput) SetTotalNumberOfUsers(v int64) *DescribeUsersOutput { + s.TotalNumberOfUsers = &v + return s +} + +// SetUsers sets the Users field's value. +func (s *DescribeUsersOutput) SetUsers(v []*User) *DescribeUsersOutput { + s.Users = v + return s +} + +// Describes the document. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DocumentMetadata +type DocumentMetadata struct { + _ struct{} `type:"structure"` + + // The time when the document was created. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The ID of the creator. + CreatorId *string `min:"1" type:"string"` + + // The ID of the document. + Id *string `min:"1" type:"string"` + + // The latest version of the document. + LatestVersionMetadata *DocumentVersionMetadata `type:"structure"` + + // The time when the document was updated. + ModifiedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The ID of the parent folder. + ParentFolderId *string `min:"1" type:"string"` + + // The resource state. + ResourceState *string `type:"string" enum:"ResourceStateType"` +} + +// String returns the string representation +func (s DocumentMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DocumentMetadata) GoString() string { + return s.String() +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *DocumentMetadata) SetCreatedTimestamp(v time.Time) *DocumentMetadata { + s.CreatedTimestamp = &v + return s +} + +// SetCreatorId sets the CreatorId field's value. +func (s *DocumentMetadata) SetCreatorId(v string) *DocumentMetadata { + s.CreatorId = &v + return s +} + +// SetId sets the Id field's value. +func (s *DocumentMetadata) SetId(v string) *DocumentMetadata { + s.Id = &v + return s +} + +// SetLatestVersionMetadata sets the LatestVersionMetadata field's value. +func (s *DocumentMetadata) SetLatestVersionMetadata(v *DocumentVersionMetadata) *DocumentMetadata { + s.LatestVersionMetadata = v + return s +} + +// SetModifiedTimestamp sets the ModifiedTimestamp field's value. +func (s *DocumentMetadata) SetModifiedTimestamp(v time.Time) *DocumentMetadata { + s.ModifiedTimestamp = &v + return s +} + +// SetParentFolderId sets the ParentFolderId field's value. +func (s *DocumentMetadata) SetParentFolderId(v string) *DocumentMetadata { + s.ParentFolderId = &v + return s +} + +// SetResourceState sets the ResourceState field's value. +func (s *DocumentMetadata) SetResourceState(v string) *DocumentMetadata { + s.ResourceState = &v + return s +} + +// Describes a version of a document. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DocumentVersionMetadata +type DocumentVersionMetadata struct { + _ struct{} `type:"structure"` + + // The time stamp when the content of the document was originally created. + ContentCreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The time stamp when the content of the document was modified. + ContentModifiedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The content type of the document. + ContentType *string `min:"1" type:"string"` + + // The time stamp when the document was first uploaded. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The ID of the creator. + CreatorId *string `min:"1" type:"string"` + + // The ID of the version. + Id *string `min:"1" type:"string"` + + // The time stamp when the document was last uploaded. + ModifiedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The name of the version. + Name *string `min:"1" type:"string"` + + // The signature of the document. + Signature *string `type:"string"` + + // The size of the document, in bytes. + Size *int64 `type:"long"` + + // The source of the document. + Source map[string]*string `type:"map"` + + // The status of the document. + Status *string `type:"string" enum:"DocumentStatusType"` + + // The thumbnail of the document. + Thumbnail map[string]*string `type:"map"` +} + +// String returns the string representation +func (s DocumentVersionMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DocumentVersionMetadata) GoString() string { + return s.String() +} + +// SetContentCreatedTimestamp sets the ContentCreatedTimestamp field's value. +func (s *DocumentVersionMetadata) SetContentCreatedTimestamp(v time.Time) *DocumentVersionMetadata { + s.ContentCreatedTimestamp = &v + return s +} + +// SetContentModifiedTimestamp sets the ContentModifiedTimestamp field's value. +func (s *DocumentVersionMetadata) SetContentModifiedTimestamp(v time.Time) *DocumentVersionMetadata { + s.ContentModifiedTimestamp = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *DocumentVersionMetadata) SetContentType(v string) *DocumentVersionMetadata { + s.ContentType = &v + return s +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *DocumentVersionMetadata) SetCreatedTimestamp(v time.Time) *DocumentVersionMetadata { + s.CreatedTimestamp = &v + return s +} + +// SetCreatorId sets the CreatorId field's value. +func (s *DocumentVersionMetadata) SetCreatorId(v string) *DocumentVersionMetadata { + s.CreatorId = &v + return s +} + +// SetId sets the Id field's value. +func (s *DocumentVersionMetadata) SetId(v string) *DocumentVersionMetadata { + s.Id = &v + return s +} + +// SetModifiedTimestamp sets the ModifiedTimestamp field's value. +func (s *DocumentVersionMetadata) SetModifiedTimestamp(v time.Time) *DocumentVersionMetadata { + s.ModifiedTimestamp = &v + return s +} + +// SetName sets the Name field's value. +func (s *DocumentVersionMetadata) SetName(v string) *DocumentVersionMetadata { + s.Name = &v + return s +} + +// SetSignature sets the Signature field's value. +func (s *DocumentVersionMetadata) SetSignature(v string) *DocumentVersionMetadata { + s.Signature = &v + return s +} + +// SetSize sets the Size field's value. +func (s *DocumentVersionMetadata) SetSize(v int64) *DocumentVersionMetadata { + s.Size = &v + return s +} + +// SetSource sets the Source field's value. +func (s *DocumentVersionMetadata) SetSource(v map[string]*string) *DocumentVersionMetadata { + s.Source = v + return s +} + +// SetStatus sets the Status field's value. +func (s *DocumentVersionMetadata) SetStatus(v string) *DocumentVersionMetadata { + s.Status = &v + return s +} + +// SetThumbnail sets the Thumbnail field's value. +func (s *DocumentVersionMetadata) SetThumbnail(v map[string]*string) *DocumentVersionMetadata { + s.Thumbnail = v + return s +} + +// Describes a folder. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/FolderMetadata +type FolderMetadata struct { + _ struct{} `type:"structure"` + + // The time when the folder was created. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The ID of the creator. + CreatorId *string `min:"1" type:"string"` + + // The ID of the folder. + Id *string `min:"1" type:"string"` + + // The time when the folder was updated. + ModifiedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The name of the folder. + Name *string `min:"1" type:"string"` + + // The ID of the parent folder. + ParentFolderId *string `min:"1" type:"string"` + + // The resource state of the folder. + ResourceState *string `type:"string" enum:"ResourceStateType"` + + // The unique identifier created from the subfolders and documents of the folder. + Signature *string `type:"string"` +} + +// String returns the string representation +func (s FolderMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FolderMetadata) GoString() string { + return s.String() +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *FolderMetadata) SetCreatedTimestamp(v time.Time) *FolderMetadata { + s.CreatedTimestamp = &v + return s +} + +// SetCreatorId sets the CreatorId field's value. +func (s *FolderMetadata) SetCreatorId(v string) *FolderMetadata { + s.CreatorId = &v + return s +} + +// SetId sets the Id field's value. +func (s *FolderMetadata) SetId(v string) *FolderMetadata { + s.Id = &v + return s +} + +// SetModifiedTimestamp sets the ModifiedTimestamp field's value. +func (s *FolderMetadata) SetModifiedTimestamp(v time.Time) *FolderMetadata { + s.ModifiedTimestamp = &v + return s +} + +// SetName sets the Name field's value. +func (s *FolderMetadata) SetName(v string) *FolderMetadata { + s.Name = &v + return s +} + +// SetParentFolderId sets the ParentFolderId field's value. +func (s *FolderMetadata) SetParentFolderId(v string) *FolderMetadata { + s.ParentFolderId = &v + return s +} + +// SetResourceState sets the ResourceState field's value. +func (s *FolderMetadata) SetResourceState(v string) *FolderMetadata { + s.ResourceState = &v + return s +} + +// SetSignature sets the Signature field's value. +func (s *FolderMetadata) SetSignature(v string) *FolderMetadata { + s.Signature = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentRequest +type GetDocumentInput struct { + _ struct{} `type:"structure"` + + // The ID of the document object. + // + // DocumentId is a required field + DocumentId *string `location:"uri" locationName:"DocumentId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetDocumentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDocumentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDocumentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDocumentInput"} + if s.DocumentId == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentId")) + } + if s.DocumentId != nil && len(*s.DocumentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocumentId sets the DocumentId field's value. +func (s *GetDocumentInput) SetDocumentId(v string) *GetDocumentInput { + s.DocumentId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentResponse +type GetDocumentOutput struct { + _ struct{} `type:"structure"` + + // The document object. + Metadata *DocumentMetadata `type:"structure"` +} + +// String returns the string representation +func (s GetDocumentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDocumentOutput) GoString() string { + return s.String() +} + +// SetMetadata sets the Metadata field's value. +func (s *GetDocumentOutput) SetMetadata(v *DocumentMetadata) *GetDocumentOutput { + s.Metadata = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentPathRequest +type GetDocumentPathInput struct { + _ struct{} `type:"structure"` + + // The ID of the document. + // + // DocumentId is a required field + DocumentId *string `location:"uri" locationName:"DocumentId" min:"1" type:"string" required:"true"` + + // A comma-separated list of values. Specify "NAME" to include the names of + // the parent folders. + Fields *string `location:"querystring" locationName:"fields" min:"1" type:"string"` + + // The maximum number of levels in the hierarchy to return. + Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"` + + // This value is not supported. + Marker *string `location:"querystring" locationName:"marker" min:"1" type:"string"` +} + +// String returns the string representation +func (s GetDocumentPathInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDocumentPathInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDocumentPathInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDocumentPathInput"} + if s.DocumentId == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentId")) + } + if s.DocumentId != nil && len(*s.DocumentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentId", 1)) + } + if s.Fields != nil && len(*s.Fields) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Fields", 1)) + } + if s.Limit != nil && *s.Limit < 1 { + invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) + } + if s.Marker != nil && len(*s.Marker) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocumentId sets the DocumentId field's value. +func (s *GetDocumentPathInput) SetDocumentId(v string) *GetDocumentPathInput { + s.DocumentId = &v + return s +} + +// SetFields sets the Fields field's value. +func (s *GetDocumentPathInput) SetFields(v string) *GetDocumentPathInput { + s.Fields = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *GetDocumentPathInput) SetLimit(v int64) *GetDocumentPathInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *GetDocumentPathInput) SetMarker(v string) *GetDocumentPathInput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentPathResponse +type GetDocumentPathOutput struct { + _ struct{} `type:"structure"` + + // The path information. + Path *ResourcePath `type:"structure"` +} + +// String returns the string representation +func (s GetDocumentPathOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDocumentPathOutput) GoString() string { + return s.String() +} + +// SetPath sets the Path field's value. +func (s *GetDocumentPathOutput) SetPath(v *ResourcePath) *GetDocumentPathOutput { + s.Path = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentVersionRequest +type GetDocumentVersionInput struct { + _ struct{} `type:"structure"` + + // The ID of the document. + // + // DocumentId is a required field + DocumentId *string `location:"uri" locationName:"DocumentId" min:"1" type:"string" required:"true"` + + // A comma-separated list of values. Specify "SOURCE" to include a URL for the + // source document. + Fields *string `location:"querystring" locationName:"fields" min:"1" type:"string"` + + // The version ID of the document. + // + // VersionId is a required field + VersionId *string `location:"uri" locationName:"VersionId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetDocumentVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDocumentVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDocumentVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDocumentVersionInput"} + if s.DocumentId == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentId")) + } + if s.DocumentId != nil && len(*s.DocumentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentId", 1)) + } + if s.Fields != nil && len(*s.Fields) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Fields", 1)) + } + if s.VersionId == nil { + invalidParams.Add(request.NewErrParamRequired("VersionId")) + } + if s.VersionId != nil && len(*s.VersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VersionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocumentId sets the DocumentId field's value. +func (s *GetDocumentVersionInput) SetDocumentId(v string) *GetDocumentVersionInput { + s.DocumentId = &v + return s +} + +// SetFields sets the Fields field's value. +func (s *GetDocumentVersionInput) SetFields(v string) *GetDocumentVersionInput { + s.Fields = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *GetDocumentVersionInput) SetVersionId(v string) *GetDocumentVersionInput { + s.VersionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentVersionResponse +type GetDocumentVersionOutput struct { + _ struct{} `type:"structure"` + + // The version metadata. + Metadata *DocumentVersionMetadata `type:"structure"` +} + +// String returns the string representation +func (s GetDocumentVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDocumentVersionOutput) GoString() string { + return s.String() +} + +// SetMetadata sets the Metadata field's value. +func (s *GetDocumentVersionOutput) SetMetadata(v *DocumentVersionMetadata) *GetDocumentVersionOutput { + s.Metadata = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetFolderRequest +type GetFolderInput struct { + _ struct{} `type:"structure"` + + // The ID of the folder. + // + // FolderId is a required field + FolderId *string `location:"uri" locationName:"FolderId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetFolderInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetFolderInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetFolderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetFolderInput"} + if s.FolderId == nil { + invalidParams.Add(request.NewErrParamRequired("FolderId")) + } + if s.FolderId != nil && len(*s.FolderId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FolderId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFolderId sets the FolderId field's value. +func (s *GetFolderInput) SetFolderId(v string) *GetFolderInput { + s.FolderId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetFolderResponse +type GetFolderOutput struct { + _ struct{} `type:"structure"` + + // The metadata of the folder. + Metadata *FolderMetadata `type:"structure"` +} + +// String returns the string representation +func (s GetFolderOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetFolderOutput) GoString() string { + return s.String() +} + +// SetMetadata sets the Metadata field's value. +func (s *GetFolderOutput) SetMetadata(v *FolderMetadata) *GetFolderOutput { + s.Metadata = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetFolderPathRequest +type GetFolderPathInput struct { + _ struct{} `type:"structure"` + + // A comma-separated list of values. Specify "NAME" to include the names of + // the parent folders. + Fields *string `location:"querystring" locationName:"fields" min:"1" type:"string"` + + // The ID of the folder. + // + // FolderId is a required field + FolderId *string `location:"uri" locationName:"FolderId" min:"1" type:"string" required:"true"` + + // The maximum number of levels in the hierarchy to return. + Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"` + + // This value is not supported. + Marker *string `location:"querystring" locationName:"marker" min:"1" type:"string"` +} + +// String returns the string representation +func (s GetFolderPathInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetFolderPathInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetFolderPathInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetFolderPathInput"} + if s.Fields != nil && len(*s.Fields) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Fields", 1)) + } + if s.FolderId == nil { + invalidParams.Add(request.NewErrParamRequired("FolderId")) + } + if s.FolderId != nil && len(*s.FolderId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FolderId", 1)) + } + if s.Limit != nil && *s.Limit < 1 { + invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) + } + if s.Marker != nil && len(*s.Marker) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFields sets the Fields field's value. +func (s *GetFolderPathInput) SetFields(v string) *GetFolderPathInput { + s.Fields = &v + return s +} + +// SetFolderId sets the FolderId field's value. +func (s *GetFolderPathInput) SetFolderId(v string) *GetFolderPathInput { + s.FolderId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *GetFolderPathInput) SetLimit(v int64) *GetFolderPathInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *GetFolderPathInput) SetMarker(v string) *GetFolderPathInput { + s.Marker = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetFolderPathResponse +type GetFolderPathOutput struct { + _ struct{} `type:"structure"` + + // The path information. + Path *ResourcePath `type:"structure"` +} + +// String returns the string representation +func (s GetFolderPathOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetFolderPathOutput) GoString() string { + return s.String() +} + +// SetPath sets the Path field's value. +func (s *GetFolderPathOutput) SetPath(v *ResourcePath) *GetFolderPathOutput { + s.Path = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/InitiateDocumentVersionUploadRequest +type InitiateDocumentVersionUploadInput struct { + _ struct{} `type:"structure"` + + // The time stamp when the content of the document was originally created. + ContentCreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The time stamp when the content of the document was modified. + ContentModifiedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The content type of the document. + ContentType *string `min:"1" type:"string"` + + // The size of the document, in bytes. + DocumentSizeInBytes *int64 `type:"long"` + + // The ID of the document. + Id *string `min:"1" type:"string"` + + // The name of the document. + Name *string `min:"1" type:"string"` + + // The ID of the parent folder. + // + // ParentFolderId is a required field + ParentFolderId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s InitiateDocumentVersionUploadInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InitiateDocumentVersionUploadInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InitiateDocumentVersionUploadInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InitiateDocumentVersionUploadInput"} + if s.ContentType != nil && len(*s.ContentType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ContentType", 1)) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.ParentFolderId == nil { + invalidParams.Add(request.NewErrParamRequired("ParentFolderId")) + } + if s.ParentFolderId != nil && len(*s.ParentFolderId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ParentFolderId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContentCreatedTimestamp sets the ContentCreatedTimestamp field's value. +func (s *InitiateDocumentVersionUploadInput) SetContentCreatedTimestamp(v time.Time) *InitiateDocumentVersionUploadInput { + s.ContentCreatedTimestamp = &v + return s +} + +// SetContentModifiedTimestamp sets the ContentModifiedTimestamp field's value. +func (s *InitiateDocumentVersionUploadInput) SetContentModifiedTimestamp(v time.Time) *InitiateDocumentVersionUploadInput { + s.ContentModifiedTimestamp = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *InitiateDocumentVersionUploadInput) SetContentType(v string) *InitiateDocumentVersionUploadInput { + s.ContentType = &v + return s +} + +// SetDocumentSizeInBytes sets the DocumentSizeInBytes field's value. +func (s *InitiateDocumentVersionUploadInput) SetDocumentSizeInBytes(v int64) *InitiateDocumentVersionUploadInput { + s.DocumentSizeInBytes = &v + return s +} + +// SetId sets the Id field's value. +func (s *InitiateDocumentVersionUploadInput) SetId(v string) *InitiateDocumentVersionUploadInput { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *InitiateDocumentVersionUploadInput) SetName(v string) *InitiateDocumentVersionUploadInput { + s.Name = &v + return s +} + +// SetParentFolderId sets the ParentFolderId field's value. +func (s *InitiateDocumentVersionUploadInput) SetParentFolderId(v string) *InitiateDocumentVersionUploadInput { + s.ParentFolderId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/InitiateDocumentVersionUploadResponse +type InitiateDocumentVersionUploadOutput struct { + _ struct{} `type:"structure"` + + // The document metadata. + Metadata *DocumentMetadata `type:"structure"` + + // The upload metadata. + UploadMetadata *UploadMetadata `type:"structure"` +} + +// String returns the string representation +func (s InitiateDocumentVersionUploadOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InitiateDocumentVersionUploadOutput) GoString() string { + return s.String() +} + +// SetMetadata sets the Metadata field's value. +func (s *InitiateDocumentVersionUploadOutput) SetMetadata(v *DocumentMetadata) *InitiateDocumentVersionUploadOutput { + s.Metadata = v + return s +} + +// SetUploadMetadata sets the UploadMetadata field's value. +func (s *InitiateDocumentVersionUploadOutput) SetUploadMetadata(v *UploadMetadata) *InitiateDocumentVersionUploadOutput { + s.UploadMetadata = v + return s +} + +// Describes the permissions. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/PermissionInfo +type PermissionInfo struct { + _ struct{} `type:"structure"` + + // The role of the user. + Role *string `type:"string" enum:"RoleType"` + + // The type of permissions. + Type *string `type:"string" enum:"RolePermissionType"` +} + +// String returns the string representation +func (s PermissionInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PermissionInfo) GoString() string { + return s.String() +} + +// SetRole sets the Role field's value. +func (s *PermissionInfo) SetRole(v string) *PermissionInfo { + s.Role = &v + return s +} + +// SetType sets the Type field's value. +func (s *PermissionInfo) SetType(v string) *PermissionInfo { + s.Type = &v + return s +} + +// Describes a resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/Principal +type Principal struct { + _ struct{} `type:"structure"` + + // The ID of the resource. + Id *string `min:"1" type:"string"` + + // The permission information for the resource. + Roles []*PermissionInfo `type:"list"` + + // The type of resource. + Type *string `type:"string" enum:"PrincipalType"` +} + +// String returns the string representation +func (s Principal) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Principal) GoString() string { + return s.String() +} + +// SetId sets the Id field's value. +func (s *Principal) SetId(v string) *Principal { + s.Id = &v + return s +} + +// SetRoles sets the Roles field's value. +func (s *Principal) SetRoles(v []*PermissionInfo) *Principal { + s.Roles = v + return s +} + +// SetType sets the Type field's value. +func (s *Principal) SetType(v string) *Principal { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/RemoveAllResourcePermissionsRequest +type RemoveAllResourcePermissionsInput struct { + _ struct{} `type:"structure"` + + // The ID of the resource. + // + // ResourceId is a required field + ResourceId *string `location:"uri" locationName:"ResourceId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s RemoveAllResourcePermissionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveAllResourcePermissionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RemoveAllResourcePermissionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RemoveAllResourcePermissionsInput"} + if s.ResourceId == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceId")) + } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceId sets the ResourceId field's value. +func (s *RemoveAllResourcePermissionsInput) SetResourceId(v string) *RemoveAllResourcePermissionsInput { + s.ResourceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/RemoveAllResourcePermissionsOutput +type RemoveAllResourcePermissionsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s RemoveAllResourcePermissionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveAllResourcePermissionsOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/RemoveResourcePermissionRequest +type RemoveResourcePermissionInput struct { + _ struct{} `type:"structure"` + + // The principal ID of the resource. + // + // PrincipalId is a required field + PrincipalId *string `location:"uri" locationName:"PrincipalId" min:"1" type:"string" required:"true"` + + // The principal type of the resource. + PrincipalType *string `location:"querystring" locationName:"type" type:"string" enum:"PrincipalType"` + + // The ID of the resource. + // + // ResourceId is a required field + ResourceId *string `location:"uri" locationName:"ResourceId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s RemoveResourcePermissionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveResourcePermissionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RemoveResourcePermissionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RemoveResourcePermissionInput"} + if s.PrincipalId == nil { + invalidParams.Add(request.NewErrParamRequired("PrincipalId")) + } + if s.PrincipalId != nil && len(*s.PrincipalId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PrincipalId", 1)) + } + if s.ResourceId == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceId")) + } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPrincipalId sets the PrincipalId field's value. +func (s *RemoveResourcePermissionInput) SetPrincipalId(v string) *RemoveResourcePermissionInput { + s.PrincipalId = &v + return s +} + +// SetPrincipalType sets the PrincipalType field's value. +func (s *RemoveResourcePermissionInput) SetPrincipalType(v string) *RemoveResourcePermissionInput { + s.PrincipalType = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *RemoveResourcePermissionInput) SetResourceId(v string) *RemoveResourcePermissionInput { + s.ResourceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/RemoveResourcePermissionOutput +type RemoveResourcePermissionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s RemoveResourcePermissionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveResourcePermissionOutput) GoString() string { + return s.String() +} + +// Describes the path information of a resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/ResourcePath +type ResourcePath struct { + _ struct{} `type:"structure"` + + // The components of the resource path. + Components []*ResourcePathComponent `type:"list"` +} + +// String returns the string representation +func (s ResourcePath) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourcePath) GoString() string { + return s.String() +} + +// SetComponents sets the Components field's value. +func (s *ResourcePath) SetComponents(v []*ResourcePathComponent) *ResourcePath { + s.Components = v + return s +} + +// Describes the resource path. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/ResourcePathComponent +type ResourcePathComponent struct { + _ struct{} `type:"structure"` + + // The ID of the resource path. + Id *string `min:"1" type:"string"` + + // The name of the resource path. + Name *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ResourcePathComponent) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourcePathComponent) GoString() string { + return s.String() +} + +// SetId sets the Id field's value. +func (s *ResourcePathComponent) SetId(v string) *ResourcePathComponent { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *ResourcePathComponent) SetName(v string) *ResourcePathComponent { + s.Name = &v + return s +} + +// Describes the recipient type and ID, if available. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/SharePrincipal +type SharePrincipal struct { + _ struct{} `type:"structure"` + + // The ID of the recipient. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` + + // The role of the recipient. + // + // Role is a required field + Role *string `type:"string" required:"true" enum:"RoleType"` + + // The type of the recipient. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"PrincipalType"` +} + +// String returns the string representation +func (s SharePrincipal) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SharePrincipal) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SharePrincipal) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SharePrincipal"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + if s.Role == nil { + invalidParams.Add(request.NewErrParamRequired("Role")) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *SharePrincipal) SetId(v string) *SharePrincipal { + s.Id = &v + return s +} + +// SetRole sets the Role field's value. +func (s *SharePrincipal) SetRole(v string) *SharePrincipal { + s.Role = &v + return s +} + +// SetType sets the Type field's value. +func (s *SharePrincipal) SetType(v string) *SharePrincipal { + s.Type = &v + return s +} + +// Describes the share results of a resource. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/ShareResult +type ShareResult struct { + _ struct{} `type:"structure"` + + // The ID of the principal. + PrincipalId *string `min:"1" type:"string"` + + // The role. + Role *string `type:"string" enum:"RoleType"` + + // The ID of the resource that was shared. + ShareId *string `min:"1" type:"string"` + + // The status. + Status *string `type:"string" enum:"ShareStatusType"` + + // The status message. + StatusMessage *string `type:"string"` +} + +// String returns the string representation +func (s ShareResult) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ShareResult) GoString() string { + return s.String() +} + +// SetPrincipalId sets the PrincipalId field's value. +func (s *ShareResult) SetPrincipalId(v string) *ShareResult { + s.PrincipalId = &v + return s +} + +// SetRole sets the Role field's value. +func (s *ShareResult) SetRole(v string) *ShareResult { + s.Role = &v + return s +} + +// SetShareId sets the ShareId field's value. +func (s *ShareResult) SetShareId(v string) *ShareResult { + s.ShareId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ShareResult) SetStatus(v string) *ShareResult { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ShareResult) SetStatusMessage(v string) *ShareResult { + s.StatusMessage = &v + return s +} + +// Describes the storage for a user. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/StorageRuleType +type StorageRuleType struct { + _ struct{} `type:"structure"` + + // The amount of storage allocated, in bytes. + StorageAllocatedInBytes *int64 `type:"long"` + + // The type of storage. + StorageType *string `type:"string" enum:"StorageType"` +} + +// String returns the string representation +func (s StorageRuleType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StorageRuleType) GoString() string { + return s.String() +} + +// SetStorageAllocatedInBytes sets the StorageAllocatedInBytes field's value. +func (s *StorageRuleType) SetStorageAllocatedInBytes(v int64) *StorageRuleType { + s.StorageAllocatedInBytes = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *StorageRuleType) SetStorageType(v string) *StorageRuleType { + s.StorageType = &v + return s +} + +// Describes a subscription. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/Subscription +type Subscription struct { + _ struct{} `type:"structure"` + + // The endpoint of the subscription. + EndPoint *string `min:"1" type:"string"` + + // The protocol of the subscription. + Protocol *string `type:"string" enum:"SubscriptionProtocolType"` + + // The ID of the subscription. + SubscriptionId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s Subscription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Subscription) GoString() string { + return s.String() +} + +// SetEndPoint sets the EndPoint field's value. +func (s *Subscription) SetEndPoint(v string) *Subscription { + s.EndPoint = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *Subscription) SetProtocol(v string) *Subscription { + s.Protocol = &v + return s +} + +// SetSubscriptionId sets the SubscriptionId field's value. +func (s *Subscription) SetSubscriptionId(v string) *Subscription { + s.SubscriptionId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocumentRequest +type UpdateDocumentInput struct { + _ struct{} `type:"structure"` + + // The ID of the document. + // + // DocumentId is a required field + DocumentId *string `location:"uri" locationName:"DocumentId" min:"1" type:"string" required:"true"` + + // The name of the document. + Name *string `min:"1" type:"string"` + + // The ID of the parent folder. + ParentFolderId *string `min:"1" type:"string"` + + // The resource state of the document. Note that only ACTIVE and RECYCLED are + // supported. + ResourceState *string `type:"string" enum:"ResourceStateType"` +} + +// String returns the string representation +func (s UpdateDocumentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateDocumentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateDocumentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateDocumentInput"} + if s.DocumentId == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentId")) + } + if s.DocumentId != nil && len(*s.DocumentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentId", 1)) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.ParentFolderId != nil && len(*s.ParentFolderId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ParentFolderId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocumentId sets the DocumentId field's value. +func (s *UpdateDocumentInput) SetDocumentId(v string) *UpdateDocumentInput { + s.DocumentId = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateDocumentInput) SetName(v string) *UpdateDocumentInput { + s.Name = &v + return s +} + +// SetParentFolderId sets the ParentFolderId field's value. +func (s *UpdateDocumentInput) SetParentFolderId(v string) *UpdateDocumentInput { + s.ParentFolderId = &v + return s +} + +// SetResourceState sets the ResourceState field's value. +func (s *UpdateDocumentInput) SetResourceState(v string) *UpdateDocumentInput { + s.ResourceState = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocumentOutput +type UpdateDocumentOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateDocumentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateDocumentOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocumentVersionRequest +type UpdateDocumentVersionInput struct { + _ struct{} `type:"structure"` + + // The ID of the document. + // + // DocumentId is a required field + DocumentId *string `location:"uri" locationName:"DocumentId" min:"1" type:"string" required:"true"` + + // The version ID of the document. + // + // VersionId is a required field + VersionId *string `location:"uri" locationName:"VersionId" min:"1" type:"string" required:"true"` + + // The status of the version. + VersionStatus *string `type:"string" enum:"DocumentVersionStatus"` +} + +// String returns the string representation +func (s UpdateDocumentVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateDocumentVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateDocumentVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateDocumentVersionInput"} + if s.DocumentId == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentId")) + } + if s.DocumentId != nil && len(*s.DocumentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentId", 1)) + } + if s.VersionId == nil { + invalidParams.Add(request.NewErrParamRequired("VersionId")) + } + if s.VersionId != nil && len(*s.VersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VersionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocumentId sets the DocumentId field's value. +func (s *UpdateDocumentVersionInput) SetDocumentId(v string) *UpdateDocumentVersionInput { + s.DocumentId = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *UpdateDocumentVersionInput) SetVersionId(v string) *UpdateDocumentVersionInput { + s.VersionId = &v + return s +} + +// SetVersionStatus sets the VersionStatus field's value. +func (s *UpdateDocumentVersionInput) SetVersionStatus(v string) *UpdateDocumentVersionInput { + s.VersionStatus = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocumentVersionOutput +type UpdateDocumentVersionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateDocumentVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateDocumentVersionOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateFolderRequest +type UpdateFolderInput struct { + _ struct{} `type:"structure"` + + // The ID of the folder. + // + // FolderId is a required field + FolderId *string `location:"uri" locationName:"FolderId" min:"1" type:"string" required:"true"` + + // The name of the folder. + Name *string `min:"1" type:"string"` + + // The ID of the parent folder. + ParentFolderId *string `min:"1" type:"string"` + + // The resource state of the folder. Note that only ACTIVE and RECYCLED are + // accepted values from the API. + ResourceState *string `type:"string" enum:"ResourceStateType"` +} + +// String returns the string representation +func (s UpdateFolderInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateFolderInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateFolderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateFolderInput"} + if s.FolderId == nil { + invalidParams.Add(request.NewErrParamRequired("FolderId")) + } + if s.FolderId != nil && len(*s.FolderId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FolderId", 1)) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.ParentFolderId != nil && len(*s.ParentFolderId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ParentFolderId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFolderId sets the FolderId field's value. +func (s *UpdateFolderInput) SetFolderId(v string) *UpdateFolderInput { + s.FolderId = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateFolderInput) SetName(v string) *UpdateFolderInput { + s.Name = &v + return s +} + +// SetParentFolderId sets the ParentFolderId field's value. +func (s *UpdateFolderInput) SetParentFolderId(v string) *UpdateFolderInput { + s.ParentFolderId = &v + return s +} + +// SetResourceState sets the ResourceState field's value. +func (s *UpdateFolderInput) SetResourceState(v string) *UpdateFolderInput { + s.ResourceState = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateFolderOutput +type UpdateFolderOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateFolderOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateFolderOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateUserRequest +type UpdateUserInput struct { + _ struct{} `type:"structure"` + + // The given name of the user. + GivenName *string `min:"1" type:"string"` + + // The locale of the user. + Locale *string `type:"string" enum:"LocaleType"` + + // The amount of storage for the user. + StorageRule *StorageRuleType `type:"structure"` + + // The surname of the user. + Surname *string `min:"1" type:"string"` + + // The time zone ID of the user. + TimeZoneId *string `min:"1" type:"string"` + + // The type of the user. + Type *string `type:"string" enum:"UserType"` + + // The ID of the user. + // + // UserId is a required field + UserId *string `location:"uri" locationName:"UserId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateUserInput"} + if s.GivenName != nil && len(*s.GivenName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GivenName", 1)) + } + if s.Surname != nil && len(*s.Surname) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Surname", 1)) + } + if s.TimeZoneId != nil && len(*s.TimeZoneId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TimeZoneId", 1)) + } + if s.UserId == nil { + invalidParams.Add(request.NewErrParamRequired("UserId")) + } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGivenName sets the GivenName field's value. +func (s *UpdateUserInput) SetGivenName(v string) *UpdateUserInput { + s.GivenName = &v + return s +} + +// SetLocale sets the Locale field's value. +func (s *UpdateUserInput) SetLocale(v string) *UpdateUserInput { + s.Locale = &v + return s +} + +// SetStorageRule sets the StorageRule field's value. +func (s *UpdateUserInput) SetStorageRule(v *StorageRuleType) *UpdateUserInput { + s.StorageRule = v + return s +} + +// SetSurname sets the Surname field's value. +func (s *UpdateUserInput) SetSurname(v string) *UpdateUserInput { + s.Surname = &v + return s +} + +// SetTimeZoneId sets the TimeZoneId field's value. +func (s *UpdateUserInput) SetTimeZoneId(v string) *UpdateUserInput { + s.TimeZoneId = &v + return s +} + +// SetType sets the Type field's value. +func (s *UpdateUserInput) SetType(v string) *UpdateUserInput { + s.Type = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *UpdateUserInput) SetUserId(v string) *UpdateUserInput { + s.UserId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateUserResponse +type UpdateUserOutput struct { + _ struct{} `type:"structure"` + + // The user information. + User *User `type:"structure"` +} + +// String returns the string representation +func (s UpdateUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateUserOutput) GoString() string { + return s.String() +} + +// SetUser sets the User field's value. +func (s *UpdateUserOutput) SetUser(v *User) *UpdateUserOutput { + s.User = v + return s +} + +// Describes the upload. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UploadMetadata +type UploadMetadata struct { + _ struct{} `type:"structure"` + + // The signed headers. + SignedHeaders map[string]*string `type:"map"` + + // The URL of the upload. + UploadUrl *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s UploadMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UploadMetadata) GoString() string { + return s.String() +} + +// SetSignedHeaders sets the SignedHeaders field's value. +func (s *UploadMetadata) SetSignedHeaders(v map[string]*string) *UploadMetadata { + s.SignedHeaders = v + return s +} + +// SetUploadUrl sets the UploadUrl field's value. +func (s *UploadMetadata) SetUploadUrl(v string) *UploadMetadata { + s.UploadUrl = &v + return s +} + +// Describes a user. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/User +type User struct { + _ struct{} `type:"structure"` + + // The time when the user was created. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The email address of the user. + EmailAddress *string `min:"1" type:"string"` + + // The given name of the user. + GivenName *string `min:"1" type:"string"` + + // The ID of the user. + Id *string `min:"1" type:"string"` + + // The locale of the user. + Locale *string `type:"string" enum:"LocaleType"` + + // The time when the user was modified. + ModifiedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The ID of the organization. + OrganizationId *string `min:"1" type:"string"` + + // The ID of the recycle bin folder. + RecycleBinFolderId *string `min:"1" type:"string"` + + // The ID of the root folder. + RootFolderId *string `min:"1" type:"string"` + + // The status of the user. + Status *string `type:"string" enum:"UserStatusType"` + + // The storage for the user. + Storage *UserStorageMetadata `type:"structure"` + + // The surname of the user. + Surname *string `min:"1" type:"string"` + + // The time zone ID of the user. + TimeZoneId *string `min:"1" type:"string"` + + // The type of user. + Type *string `type:"string" enum:"UserType"` + + // The login name of the user. + Username *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s User) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s User) GoString() string { + return s.String() +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *User) SetCreatedTimestamp(v time.Time) *User { + s.CreatedTimestamp = &v + return s +} + +// SetEmailAddress sets the EmailAddress field's value. +func (s *User) SetEmailAddress(v string) *User { + s.EmailAddress = &v + return s +} + +// SetGivenName sets the GivenName field's value. +func (s *User) SetGivenName(v string) *User { + s.GivenName = &v + return s +} + +// SetId sets the Id field's value. +func (s *User) SetId(v string) *User { + s.Id = &v + return s +} + +// SetLocale sets the Locale field's value. +func (s *User) SetLocale(v string) *User { + s.Locale = &v + return s +} + +// SetModifiedTimestamp sets the ModifiedTimestamp field's value. +func (s *User) SetModifiedTimestamp(v time.Time) *User { + s.ModifiedTimestamp = &v + return s +} + +// SetOrganizationId sets the OrganizationId field's value. +func (s *User) SetOrganizationId(v string) *User { + s.OrganizationId = &v + return s +} + +// SetRecycleBinFolderId sets the RecycleBinFolderId field's value. +func (s *User) SetRecycleBinFolderId(v string) *User { + s.RecycleBinFolderId = &v + return s +} + +// SetRootFolderId sets the RootFolderId field's value. +func (s *User) SetRootFolderId(v string) *User { + s.RootFolderId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *User) SetStatus(v string) *User { + s.Status = &v + return s +} + +// SetStorage sets the Storage field's value. +func (s *User) SetStorage(v *UserStorageMetadata) *User { + s.Storage = v + return s +} + +// SetSurname sets the Surname field's value. +func (s *User) SetSurname(v string) *User { + s.Surname = &v + return s +} + +// SetTimeZoneId sets the TimeZoneId field's value. +func (s *User) SetTimeZoneId(v string) *User { + s.TimeZoneId = &v + return s +} + +// SetType sets the Type field's value. +func (s *User) SetType(v string) *User { + s.Type = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *User) SetUsername(v string) *User { + s.Username = &v + return s +} + +// Describes the storage for a user. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UserStorageMetadata +type UserStorageMetadata struct { + _ struct{} `type:"structure"` + + // The storage for a user. + StorageRule *StorageRuleType `type:"structure"` + + // The amount of storage utilized, in bytes. + StorageUtilizedInBytes *int64 `type:"long"` +} + +// String returns the string representation +func (s UserStorageMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UserStorageMetadata) GoString() string { + return s.String() +} + +// SetStorageRule sets the StorageRule field's value. +func (s *UserStorageMetadata) SetStorageRule(v *StorageRuleType) *UserStorageMetadata { + s.StorageRule = v + return s +} + +// SetStorageUtilizedInBytes sets the StorageUtilizedInBytes field's value. +func (s *UserStorageMetadata) SetStorageUtilizedInBytes(v int64) *UserStorageMetadata { + s.StorageUtilizedInBytes = &v + return s +} + +const ( + // DocumentSourceTypeOriginal is a DocumentSourceType enum value + DocumentSourceTypeOriginal = "ORIGINAL" + + // DocumentSourceTypeWithComments is a DocumentSourceType enum value + DocumentSourceTypeWithComments = "WITH_COMMENTS" +) + +const ( + // DocumentStatusTypeInitialized is a DocumentStatusType enum value + DocumentStatusTypeInitialized = "INITIALIZED" + + // DocumentStatusTypeActive is a DocumentStatusType enum value + DocumentStatusTypeActive = "ACTIVE" +) + +const ( + // DocumentThumbnailTypeSmall is a DocumentThumbnailType enum value + DocumentThumbnailTypeSmall = "SMALL" + + // DocumentThumbnailTypeSmallHq is a DocumentThumbnailType enum value + DocumentThumbnailTypeSmallHq = "SMALL_HQ" + + // DocumentThumbnailTypeLarge is a DocumentThumbnailType enum value + DocumentThumbnailTypeLarge = "LARGE" +) + +const ( + // DocumentVersionStatusActive is a DocumentVersionStatus enum value + DocumentVersionStatusActive = "ACTIVE" +) + +const ( + // FolderContentTypeAll is a FolderContentType enum value + FolderContentTypeAll = "ALL" + + // FolderContentTypeDocument is a FolderContentType enum value + FolderContentTypeDocument = "DOCUMENT" + + // FolderContentTypeFolder is a FolderContentType enum value + FolderContentTypeFolder = "FOLDER" +) + +const ( + // LocaleTypeEn is a LocaleType enum value + LocaleTypeEn = "en" + + // LocaleTypeFr is a LocaleType enum value + LocaleTypeFr = "fr" + + // LocaleTypeKo is a LocaleType enum value + LocaleTypeKo = "ko" + + // LocaleTypeDe is a LocaleType enum value + LocaleTypeDe = "de" + + // LocaleTypeEs is a LocaleType enum value + LocaleTypeEs = "es" + + // LocaleTypeJa is a LocaleType enum value + LocaleTypeJa = "ja" + + // LocaleTypeRu is a LocaleType enum value + LocaleTypeRu = "ru" + + // LocaleTypeZhCn is a LocaleType enum value + LocaleTypeZhCn = "zh_CN" + + // LocaleTypeZhTw is a LocaleType enum value + LocaleTypeZhTw = "zh_TW" + + // LocaleTypePtBr is a LocaleType enum value + LocaleTypePtBr = "pt_BR" + + // LocaleTypeDefault is a LocaleType enum value + LocaleTypeDefault = "default" +) + +const ( + // OrderTypeAscending is a OrderType enum value + OrderTypeAscending = "ASCENDING" + + // OrderTypeDescending is a OrderType enum value + OrderTypeDescending = "DESCENDING" +) + +const ( + // PrincipalTypeUser is a PrincipalType enum value + PrincipalTypeUser = "USER" + + // PrincipalTypeGroup is a PrincipalType enum value + PrincipalTypeGroup = "GROUP" + + // PrincipalTypeInvite is a PrincipalType enum value + PrincipalTypeInvite = "INVITE" + + // PrincipalTypeAnonymous is a PrincipalType enum value + PrincipalTypeAnonymous = "ANONYMOUS" + + // PrincipalTypeOrganization is a PrincipalType enum value + PrincipalTypeOrganization = "ORGANIZATION" +) + +const ( + // ResourceSortTypeDate is a ResourceSortType enum value + ResourceSortTypeDate = "DATE" + + // ResourceSortTypeName is a ResourceSortType enum value + ResourceSortTypeName = "NAME" +) + +const ( + // ResourceStateTypeActive is a ResourceStateType enum value + ResourceStateTypeActive = "ACTIVE" + + // ResourceStateTypeRestoring is a ResourceStateType enum value + ResourceStateTypeRestoring = "RESTORING" + + // ResourceStateTypeRecycling is a ResourceStateType enum value + ResourceStateTypeRecycling = "RECYCLING" + + // ResourceStateTypeRecycled is a ResourceStateType enum value + ResourceStateTypeRecycled = "RECYCLED" +) + +const ( + // RolePermissionTypeDirect is a RolePermissionType enum value + RolePermissionTypeDirect = "DIRECT" + + // RolePermissionTypeInherited is a RolePermissionType enum value + RolePermissionTypeInherited = "INHERITED" +) + +const ( + // RoleTypeViewer is a RoleType enum value + RoleTypeViewer = "VIEWER" + + // RoleTypeContributor is a RoleType enum value + RoleTypeContributor = "CONTRIBUTOR" + + // RoleTypeOwner is a RoleType enum value + RoleTypeOwner = "OWNER" + + // RoleTypeCoowner is a RoleType enum value + RoleTypeCoowner = "COOWNER" +) + +const ( + // ShareStatusTypeSuccess is a ShareStatusType enum value + ShareStatusTypeSuccess = "SUCCESS" + + // ShareStatusTypeFailure is a ShareStatusType enum value + ShareStatusTypeFailure = "FAILURE" +) + +const ( + // StorageTypeUnlimited is a StorageType enum value + StorageTypeUnlimited = "UNLIMITED" + + // StorageTypeQuota is a StorageType enum value + StorageTypeQuota = "QUOTA" +) + +const ( + // SubscriptionProtocolTypeHttps is a SubscriptionProtocolType enum value + SubscriptionProtocolTypeHttps = "HTTPS" +) + +const ( + // SubscriptionTypeAll is a SubscriptionType enum value + SubscriptionTypeAll = "ALL" +) + +const ( + // UserFilterTypeAll is a UserFilterType enum value + UserFilterTypeAll = "ALL" + + // UserFilterTypeActivePending is a UserFilterType enum value + UserFilterTypeActivePending = "ACTIVE_PENDING" +) + +const ( + // UserSortTypeUserName is a UserSortType enum value + UserSortTypeUserName = "USER_NAME" + + // UserSortTypeFullName is a UserSortType enum value + UserSortTypeFullName = "FULL_NAME" + + // UserSortTypeStorageLimit is a UserSortType enum value + UserSortTypeStorageLimit = "STORAGE_LIMIT" + + // UserSortTypeUserStatus is a UserSortType enum value + UserSortTypeUserStatus = "USER_STATUS" + + // UserSortTypeStorageUsed is a UserSortType enum value + UserSortTypeStorageUsed = "STORAGE_USED" +) + +const ( + // UserStatusTypeActive is a UserStatusType enum value + UserStatusTypeActive = "ACTIVE" + + // UserStatusTypeInactive is a UserStatusType enum value + UserStatusTypeInactive = "INACTIVE" + + // UserStatusTypePending is a UserStatusType enum value + UserStatusTypePending = "PENDING" +) + +const ( + // UserTypeUser is a UserType enum value + UserTypeUser = "USER" + + // UserTypeAdmin is a UserType enum value + UserTypeAdmin = "ADMIN" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/workdocs/errors.go b/vendor/github.com/aws/aws-sdk-go/service/workdocs/errors.go new file mode 100644 index 000000000..da8c04444 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/workdocs/errors.go @@ -0,0 +1,105 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package workdocs + +const ( + + // ErrCodeConcurrentModificationException for service response error code + // "ConcurrentModificationException". + // + // The resource hierarchy is changing. + ErrCodeConcurrentModificationException = "ConcurrentModificationException" + + // ErrCodeDeactivatingLastSystemUserException for service response error code + // "DeactivatingLastSystemUserException". + // + // The last user in the organization is being deactivated. + ErrCodeDeactivatingLastSystemUserException = "DeactivatingLastSystemUserException" + + // ErrCodeEntityAlreadyExistsException for service response error code + // "EntityAlreadyExistsException". + // + // The resource already exists. + ErrCodeEntityAlreadyExistsException = "EntityAlreadyExistsException" + + // ErrCodeEntityNotExistsException for service response error code + // "EntityNotExistsException". + // + // The resource does not exist. + ErrCodeEntityNotExistsException = "EntityNotExistsException" + + // ErrCodeFailedDependencyException for service response error code + // "FailedDependencyException". + // + // The AWS Directory Service cannot reach an on-premises instance. Or a dependency + // under the control of the organization is failing, such as a connected active + // directory. + ErrCodeFailedDependencyException = "FailedDependencyException" + + // ErrCodeIllegalUserStateException for service response error code + // "IllegalUserStateException". + // + // The user is undergoing transfer of ownership. + ErrCodeIllegalUserStateException = "IllegalUserStateException" + + // ErrCodeInvalidArgumentException for service response error code + // "InvalidArgumentException". + // + // The pagination marker and/or limit fields are not valid. + ErrCodeInvalidArgumentException = "InvalidArgumentException" + + // ErrCodeInvalidOperationException for service response error code + // "InvalidOperationException". + // + // The operation is invalid. + ErrCodeInvalidOperationException = "InvalidOperationException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // You've exceeded the maximum of 100,000 folders under the parent folder. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeProhibitedStateException for service response error code + // "ProhibitedStateException". + // + // The specified document version is not in the INITIALIZED state. + ErrCodeProhibitedStateException = "ProhibitedStateException" + + // ErrCodeServiceUnavailableException for service response error code + // "ServiceUnavailableException". + // + // One or more of the dependencies is unavailable. + ErrCodeServiceUnavailableException = "ServiceUnavailableException" + + // ErrCodeStorageLimitExceededException for service response error code + // "StorageLimitExceededException". + // + // The storage limit has been exceeded. + ErrCodeStorageLimitExceededException = "StorageLimitExceededException" + + // ErrCodeStorageLimitWillExceedException for service response error code + // "StorageLimitWillExceedException". + // + // The storage limit will be exceeded. + ErrCodeStorageLimitWillExceedException = "StorageLimitWillExceedException" + + // ErrCodeTooManySubscriptionsException for service response error code + // "TooManySubscriptionsException". + // + // You've reached the limit on the number of subscriptions for the WorkDocs + // instance. + ErrCodeTooManySubscriptionsException = "TooManySubscriptionsException" + + // ErrCodeUnauthorizedOperationException for service response error code + // "UnauthorizedOperationException". + // + // The operation is not permitted. + ErrCodeUnauthorizedOperationException = "UnauthorizedOperationException" + + // ErrCodeUnauthorizedResourceAccessException for service response error code + // "UnauthorizedResourceAccessException". + // + // The caller does not have access to perform the action on the resource. + ErrCodeUnauthorizedResourceAccessException = "UnauthorizedResourceAccessException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/workdocs/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/workdocs/examples_test.go new file mode 100644 index 000000000..63da75bc1 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/workdocs/examples_test.go @@ -0,0 +1,703 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package workdocs_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/workdocs" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExampleWorkDocs_AbortDocumentVersionUpload() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.AbortDocumentVersionUploadInput{ + DocumentId: aws.String("ResourceIdType"), // Required + VersionId: aws.String("DocumentVersionIdType"), // Required + } + resp, err := svc.AbortDocumentVersionUpload(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_ActivateUser() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.ActivateUserInput{ + UserId: aws.String("IdType"), // Required + } + resp, err := svc.ActivateUser(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_AddResourcePermissions() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.AddResourcePermissionsInput{ + Principals: []*workdocs.SharePrincipal{ // Required + { // Required + Id: aws.String("IdType"), // Required + Role: aws.String("RoleType"), // Required + Type: aws.String("PrincipalType"), // Required + }, + // More values... + }, + ResourceId: aws.String("ResourceIdType"), // Required + } + resp, err := svc.AddResourcePermissions(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_CreateFolder() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.CreateFolderInput{ + ParentFolderId: aws.String("ResourceIdType"), // Required + Name: aws.String("ResourceNameType"), + } + resp, err := svc.CreateFolder(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_CreateNotificationSubscription() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.CreateNotificationSubscriptionInput{ + Endpoint: aws.String("SubscriptionEndPointType"), // Required + OrganizationId: aws.String("IdType"), // Required + Protocol: aws.String("SubscriptionProtocolType"), // Required + SubscriptionType: aws.String("SubscriptionType"), // Required + } + resp, err := svc.CreateNotificationSubscription(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_CreateUser() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.CreateUserInput{ + GivenName: aws.String("UserAttributeValueType"), // Required + Password: aws.String("PasswordType"), // Required + Surname: aws.String("UserAttributeValueType"), // Required + Username: aws.String("UsernameType"), // Required + OrganizationId: aws.String("IdType"), + StorageRule: &workdocs.StorageRuleType{ + StorageAllocatedInBytes: aws.Int64(1), + StorageType: aws.String("StorageType"), + }, + TimeZoneId: aws.String("TimeZoneIdType"), + } + resp, err := svc.CreateUser(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_DeactivateUser() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.DeactivateUserInput{ + UserId: aws.String("IdType"), // Required + } + resp, err := svc.DeactivateUser(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_DeleteDocument() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.DeleteDocumentInput{ + DocumentId: aws.String("ResourceIdType"), // Required + } + resp, err := svc.DeleteDocument(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_DeleteFolder() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.DeleteFolderInput{ + FolderId: aws.String("ResourceIdType"), // Required + } + resp, err := svc.DeleteFolder(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_DeleteFolderContents() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.DeleteFolderContentsInput{ + FolderId: aws.String("ResourceIdType"), // Required + } + resp, err := svc.DeleteFolderContents(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_DeleteNotificationSubscription() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.DeleteNotificationSubscriptionInput{ + OrganizationId: aws.String("IdType"), // Required + SubscriptionId: aws.String("IdType"), // Required + } + resp, err := svc.DeleteNotificationSubscription(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_DeleteUser() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.DeleteUserInput{ + UserId: aws.String("IdType"), // Required + } + resp, err := svc.DeleteUser(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_DescribeDocumentVersions() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.DescribeDocumentVersionsInput{ + DocumentId: aws.String("ResourceIdType"), // Required + Fields: aws.String("FieldNamesType"), + Include: aws.String("FieldNamesType"), + Limit: aws.Int64(1), + Marker: aws.String("PageMarkerType"), + } + resp, err := svc.DescribeDocumentVersions(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_DescribeFolderContents() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.DescribeFolderContentsInput{ + FolderId: aws.String("ResourceIdType"), // Required + Include: aws.String("FieldNamesType"), + Limit: aws.Int64(1), + Marker: aws.String("PageMarkerType"), + Order: aws.String("OrderType"), + Sort: aws.String("ResourceSortType"), + Type: aws.String("FolderContentType"), + } + resp, err := svc.DescribeFolderContents(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_DescribeNotificationSubscriptions() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.DescribeNotificationSubscriptionsInput{ + OrganizationId: aws.String("IdType"), // Required + Limit: aws.Int64(1), + Marker: aws.String("PageMarkerType"), + } + resp, err := svc.DescribeNotificationSubscriptions(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_DescribeResourcePermissions() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.DescribeResourcePermissionsInput{ + ResourceId: aws.String("ResourceIdType"), // Required + Limit: aws.Int64(1), + Marker: aws.String("PageMarkerType"), + } + resp, err := svc.DescribeResourcePermissions(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_DescribeUsers() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.DescribeUsersInput{ + Fields: aws.String("FieldNamesType"), + Include: aws.String("UserFilterType"), + Limit: aws.Int64(1), + Marker: aws.String("PageMarkerType"), + Order: aws.String("OrderType"), + OrganizationId: aws.String("IdType"), + Query: aws.String("SearchQueryType"), + Sort: aws.String("UserSortType"), + UserIds: aws.String("UserIdsType"), + } + resp, err := svc.DescribeUsers(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_GetDocument() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.GetDocumentInput{ + DocumentId: aws.String("ResourceIdType"), // Required + } + resp, err := svc.GetDocument(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_GetDocumentPath() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.GetDocumentPathInput{ + DocumentId: aws.String("IdType"), // Required + Fields: aws.String("FieldNamesType"), + Limit: aws.Int64(1), + Marker: aws.String("PageMarkerType"), + } + resp, err := svc.GetDocumentPath(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_GetDocumentVersion() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.GetDocumentVersionInput{ + DocumentId: aws.String("ResourceIdType"), // Required + VersionId: aws.String("DocumentVersionIdType"), // Required + Fields: aws.String("FieldNamesType"), + } + resp, err := svc.GetDocumentVersion(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_GetFolder() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.GetFolderInput{ + FolderId: aws.String("ResourceIdType"), // Required + } + resp, err := svc.GetFolder(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_GetFolderPath() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.GetFolderPathInput{ + FolderId: aws.String("IdType"), // Required + Fields: aws.String("FieldNamesType"), + Limit: aws.Int64(1), + Marker: aws.String("PageMarkerType"), + } + resp, err := svc.GetFolderPath(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_InitiateDocumentVersionUpload() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.InitiateDocumentVersionUploadInput{ + ParentFolderId: aws.String("ResourceIdType"), // Required + ContentCreatedTimestamp: aws.Time(time.Now()), + ContentModifiedTimestamp: aws.Time(time.Now()), + ContentType: aws.String("DocumentContentType"), + DocumentSizeInBytes: aws.Int64(1), + Id: aws.String("ResourceIdType"), + Name: aws.String("ResourceNameType"), + } + resp, err := svc.InitiateDocumentVersionUpload(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_RemoveAllResourcePermissions() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.RemoveAllResourcePermissionsInput{ + ResourceId: aws.String("ResourceIdType"), // Required + } + resp, err := svc.RemoveAllResourcePermissions(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_RemoveResourcePermission() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.RemoveResourcePermissionInput{ + PrincipalId: aws.String("IdType"), // Required + ResourceId: aws.String("ResourceIdType"), // Required + PrincipalType: aws.String("PrincipalType"), + } + resp, err := svc.RemoveResourcePermission(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_UpdateDocument() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.UpdateDocumentInput{ + DocumentId: aws.String("ResourceIdType"), // Required + Name: aws.String("ResourceNameType"), + ParentFolderId: aws.String("ResourceIdType"), + ResourceState: aws.String("ResourceStateType"), + } + resp, err := svc.UpdateDocument(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_UpdateDocumentVersion() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.UpdateDocumentVersionInput{ + DocumentId: aws.String("ResourceIdType"), // Required + VersionId: aws.String("DocumentVersionIdType"), // Required + VersionStatus: aws.String("DocumentVersionStatus"), + } + resp, err := svc.UpdateDocumentVersion(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_UpdateFolder() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.UpdateFolderInput{ + FolderId: aws.String("ResourceIdType"), // Required + Name: aws.String("ResourceNameType"), + ParentFolderId: aws.String("ResourceIdType"), + ResourceState: aws.String("ResourceStateType"), + } + resp, err := svc.UpdateFolder(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleWorkDocs_UpdateUser() { + sess := session.Must(session.NewSession()) + + svc := workdocs.New(sess) + + params := &workdocs.UpdateUserInput{ + UserId: aws.String("IdType"), // Required + GivenName: aws.String("UserAttributeValueType"), + Locale: aws.String("LocaleType"), + StorageRule: &workdocs.StorageRuleType{ + StorageAllocatedInBytes: aws.Int64(1), + StorageType: aws.String("StorageType"), + }, + Surname: aws.String("UserAttributeValueType"), + TimeZoneId: aws.String("TimeZoneIdType"), + Type: aws.String("UserType"), + } + resp, err := svc.UpdateUser(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/workdocs/service.go b/vendor/github.com/aws/aws-sdk-go/service/workdocs/service.go new file mode 100644 index 000000000..cac910642 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/workdocs/service.go @@ -0,0 +1,122 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package workdocs + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +// The WorkDocs API is designed for the following use cases: +// +// * File Migration: File migration applications are supported for users +// who want to migrate their files from an on-premise or off-premise file +// system or service. Users can insert files into a user directory structure, +// as well as allow for basic metadata changes, such as modifications to +// the permissions of files. +// +// * Security: Support security applications are supported for users who +// have additional security needs, such as anti-virus or data loss prevention. +// The APIs, in conjunction with Amazon CloudTrail, allow these applications +// to detect when changes occur in Amazon WorkDocs, so the application can +// take the necessary actions and replace the target file. The application +// can also choose to email the user if the target file violates the policy. +// +// * eDiscovery/Analytics: General administrative applications are supported, +// such as eDiscovery and analytics. These applications can choose to mimic +// and/or record the actions in an Amazon WorkDocs site, in conjunction with +// Amazon CloudTrails, to replicate data for eDiscovery, backup, or analytical +// applications. +// +// All Amazon WorkDocs APIs are Amazon authenticated, certificate-signed APIs. +// They not only require the use of the AWS SDK, but also allow for the exclusive +// use of IAM users and roles to help facilitate access, trust, and permission +// policies. By creating a role and allowing an IAM user to access the Amazon +// WorkDocs site, the IAM user gains full administrative visibility into the +// entire Amazon WorkDocs site (or as set in the IAM policy). This includes, +// but is not limited to, the ability to modify file permissions and upload +// any file to any user. This allows developers to perform the three use cases +// above, as well as give users the ability to grant access on a selective basis +// using the IAM model. +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01 +type WorkDocs struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "workdocs" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the WorkDocs client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a WorkDocs client from just a session. +// svc := workdocs.New(mySession) +// +// // Create a WorkDocs client with additional configuration +// svc := workdocs.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *WorkDocs { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *WorkDocs { + svc := &WorkDocs{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2016-05-01", + JSONVersion: "1.1", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a WorkDocs operation and runs any +// custom request initialization. +func (c *WorkDocs) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/workdocs/workdocsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/workdocs/workdocsiface/interface.go new file mode 100644 index 000000000..d9a7c8df8 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/workdocs/workdocsiface/interface.go @@ -0,0 +1,185 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package workdocsiface provides an interface to enable mocking the Amazon WorkDocs service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package workdocsiface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/workdocs" +) + +// WorkDocsAPI provides an interface to enable mocking the +// workdocs.WorkDocs service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Amazon WorkDocs. +// func myFunc(svc workdocsiface.WorkDocsAPI) bool { +// // Make svc.AbortDocumentVersionUpload request +// } +// +// func main() { +// sess := session.New() +// svc := workdocs.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockWorkDocsClient struct { +// workdocsiface.WorkDocsAPI +// } +// func (m *mockWorkDocsClient) AbortDocumentVersionUpload(input *workdocs.AbortDocumentVersionUploadInput) (*workdocs.AbortDocumentVersionUploadOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockWorkDocsClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type WorkDocsAPI interface { + AbortDocumentVersionUploadRequest(*workdocs.AbortDocumentVersionUploadInput) (*request.Request, *workdocs.AbortDocumentVersionUploadOutput) + + AbortDocumentVersionUpload(*workdocs.AbortDocumentVersionUploadInput) (*workdocs.AbortDocumentVersionUploadOutput, error) + + ActivateUserRequest(*workdocs.ActivateUserInput) (*request.Request, *workdocs.ActivateUserOutput) + + ActivateUser(*workdocs.ActivateUserInput) (*workdocs.ActivateUserOutput, error) + + AddResourcePermissionsRequest(*workdocs.AddResourcePermissionsInput) (*request.Request, *workdocs.AddResourcePermissionsOutput) + + AddResourcePermissions(*workdocs.AddResourcePermissionsInput) (*workdocs.AddResourcePermissionsOutput, error) + + CreateFolderRequest(*workdocs.CreateFolderInput) (*request.Request, *workdocs.CreateFolderOutput) + + CreateFolder(*workdocs.CreateFolderInput) (*workdocs.CreateFolderOutput, error) + + CreateNotificationSubscriptionRequest(*workdocs.CreateNotificationSubscriptionInput) (*request.Request, *workdocs.CreateNotificationSubscriptionOutput) + + CreateNotificationSubscription(*workdocs.CreateNotificationSubscriptionInput) (*workdocs.CreateNotificationSubscriptionOutput, error) + + CreateUserRequest(*workdocs.CreateUserInput) (*request.Request, *workdocs.CreateUserOutput) + + CreateUser(*workdocs.CreateUserInput) (*workdocs.CreateUserOutput, error) + + DeactivateUserRequest(*workdocs.DeactivateUserInput) (*request.Request, *workdocs.DeactivateUserOutput) + + DeactivateUser(*workdocs.DeactivateUserInput) (*workdocs.DeactivateUserOutput, error) + + DeleteDocumentRequest(*workdocs.DeleteDocumentInput) (*request.Request, *workdocs.DeleteDocumentOutput) + + DeleteDocument(*workdocs.DeleteDocumentInput) (*workdocs.DeleteDocumentOutput, error) + + DeleteFolderRequest(*workdocs.DeleteFolderInput) (*request.Request, *workdocs.DeleteFolderOutput) + + DeleteFolder(*workdocs.DeleteFolderInput) (*workdocs.DeleteFolderOutput, error) + + DeleteFolderContentsRequest(*workdocs.DeleteFolderContentsInput) (*request.Request, *workdocs.DeleteFolderContentsOutput) + + DeleteFolderContents(*workdocs.DeleteFolderContentsInput) (*workdocs.DeleteFolderContentsOutput, error) + + DeleteNotificationSubscriptionRequest(*workdocs.DeleteNotificationSubscriptionInput) (*request.Request, *workdocs.DeleteNotificationSubscriptionOutput) + + DeleteNotificationSubscription(*workdocs.DeleteNotificationSubscriptionInput) (*workdocs.DeleteNotificationSubscriptionOutput, error) + + DeleteUserRequest(*workdocs.DeleteUserInput) (*request.Request, *workdocs.DeleteUserOutput) + + DeleteUser(*workdocs.DeleteUserInput) (*workdocs.DeleteUserOutput, error) + + DescribeDocumentVersionsRequest(*workdocs.DescribeDocumentVersionsInput) (*request.Request, *workdocs.DescribeDocumentVersionsOutput) + + DescribeDocumentVersions(*workdocs.DescribeDocumentVersionsInput) (*workdocs.DescribeDocumentVersionsOutput, error) + + DescribeDocumentVersionsPages(*workdocs.DescribeDocumentVersionsInput, func(*workdocs.DescribeDocumentVersionsOutput, bool) bool) error + + DescribeFolderContentsRequest(*workdocs.DescribeFolderContentsInput) (*request.Request, *workdocs.DescribeFolderContentsOutput) + + DescribeFolderContents(*workdocs.DescribeFolderContentsInput) (*workdocs.DescribeFolderContentsOutput, error) + + DescribeFolderContentsPages(*workdocs.DescribeFolderContentsInput, func(*workdocs.DescribeFolderContentsOutput, bool) bool) error + + DescribeNotificationSubscriptionsRequest(*workdocs.DescribeNotificationSubscriptionsInput) (*request.Request, *workdocs.DescribeNotificationSubscriptionsOutput) + + DescribeNotificationSubscriptions(*workdocs.DescribeNotificationSubscriptionsInput) (*workdocs.DescribeNotificationSubscriptionsOutput, error) + + DescribeResourcePermissionsRequest(*workdocs.DescribeResourcePermissionsInput) (*request.Request, *workdocs.DescribeResourcePermissionsOutput) + + DescribeResourcePermissions(*workdocs.DescribeResourcePermissionsInput) (*workdocs.DescribeResourcePermissionsOutput, error) + + DescribeUsersRequest(*workdocs.DescribeUsersInput) (*request.Request, *workdocs.DescribeUsersOutput) + + DescribeUsers(*workdocs.DescribeUsersInput) (*workdocs.DescribeUsersOutput, error) + + DescribeUsersPages(*workdocs.DescribeUsersInput, func(*workdocs.DescribeUsersOutput, bool) bool) error + + GetDocumentRequest(*workdocs.GetDocumentInput) (*request.Request, *workdocs.GetDocumentOutput) + + GetDocument(*workdocs.GetDocumentInput) (*workdocs.GetDocumentOutput, error) + + GetDocumentPathRequest(*workdocs.GetDocumentPathInput) (*request.Request, *workdocs.GetDocumentPathOutput) + + GetDocumentPath(*workdocs.GetDocumentPathInput) (*workdocs.GetDocumentPathOutput, error) + + GetDocumentVersionRequest(*workdocs.GetDocumentVersionInput) (*request.Request, *workdocs.GetDocumentVersionOutput) + + GetDocumentVersion(*workdocs.GetDocumentVersionInput) (*workdocs.GetDocumentVersionOutput, error) + + GetFolderRequest(*workdocs.GetFolderInput) (*request.Request, *workdocs.GetFolderOutput) + + GetFolder(*workdocs.GetFolderInput) (*workdocs.GetFolderOutput, error) + + GetFolderPathRequest(*workdocs.GetFolderPathInput) (*request.Request, *workdocs.GetFolderPathOutput) + + GetFolderPath(*workdocs.GetFolderPathInput) (*workdocs.GetFolderPathOutput, error) + + InitiateDocumentVersionUploadRequest(*workdocs.InitiateDocumentVersionUploadInput) (*request.Request, *workdocs.InitiateDocumentVersionUploadOutput) + + InitiateDocumentVersionUpload(*workdocs.InitiateDocumentVersionUploadInput) (*workdocs.InitiateDocumentVersionUploadOutput, error) + + RemoveAllResourcePermissionsRequest(*workdocs.RemoveAllResourcePermissionsInput) (*request.Request, *workdocs.RemoveAllResourcePermissionsOutput) + + RemoveAllResourcePermissions(*workdocs.RemoveAllResourcePermissionsInput) (*workdocs.RemoveAllResourcePermissionsOutput, error) + + RemoveResourcePermissionRequest(*workdocs.RemoveResourcePermissionInput) (*request.Request, *workdocs.RemoveResourcePermissionOutput) + + RemoveResourcePermission(*workdocs.RemoveResourcePermissionInput) (*workdocs.RemoveResourcePermissionOutput, error) + + UpdateDocumentRequest(*workdocs.UpdateDocumentInput) (*request.Request, *workdocs.UpdateDocumentOutput) + + UpdateDocument(*workdocs.UpdateDocumentInput) (*workdocs.UpdateDocumentOutput, error) + + UpdateDocumentVersionRequest(*workdocs.UpdateDocumentVersionInput) (*request.Request, *workdocs.UpdateDocumentVersionOutput) + + UpdateDocumentVersion(*workdocs.UpdateDocumentVersionInput) (*workdocs.UpdateDocumentVersionOutput, error) + + UpdateFolderRequest(*workdocs.UpdateFolderInput) (*request.Request, *workdocs.UpdateFolderOutput) + + UpdateFolder(*workdocs.UpdateFolderInput) (*workdocs.UpdateFolderOutput, error) + + UpdateUserRequest(*workdocs.UpdateUserInput) (*request.Request, *workdocs.UpdateUserOutput) + + UpdateUser(*workdocs.UpdateUserInput) (*workdocs.UpdateUserOutput, error) +} + +var _ WorkDocsAPI = (*workdocs.WorkDocs)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/workspaces/api.go b/vendor/github.com/aws/aws-sdk-go/service/workspaces/api.go index 817ec9d3c..a7b94e729 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/workspaces/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/workspaces/api.go @@ -37,6 +37,7 @@ const opCreateTags = "CreateTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateTags func (c *WorkSpaces) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, output *CreateTagsOutput) { op := &request.Operation{ Name: opCreateTags, @@ -48,9 +49,8 @@ func (c *WorkSpaces) CreateTagsRequest(input *CreateTagsInput) (req *request.Req input = &CreateTagsInput{} } - req = c.newRequest(op, input, output) output = &CreateTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -66,15 +66,16 @@ func (c *WorkSpaces) CreateTagsRequest(input *CreateTagsInput) (req *request.Req // API operation CreateTags for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource could not be found. // -// * InvalidParameterValuesException +// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" // One or more parameter values are not valid. // -// * ResourceLimitExceededException +// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" // Your resource limits have been exceeded. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateTags func (c *WorkSpaces) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) { req, out := c.CreateTagsRequest(input) err := req.Send() @@ -107,6 +108,7 @@ const opCreateWorkspaces = "CreateWorkspaces" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateWorkspaces func (c *WorkSpaces) CreateWorkspacesRequest(input *CreateWorkspacesInput) (req *request.Request, output *CreateWorkspacesOutput) { op := &request.Operation{ Name: opCreateWorkspaces, @@ -118,9 +120,8 @@ func (c *WorkSpaces) CreateWorkspacesRequest(input *CreateWorkspacesInput) (req input = &CreateWorkspacesInput{} } - req = c.newRequest(op, input, output) output = &CreateWorkspacesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -128,7 +129,7 @@ func (c *WorkSpaces) CreateWorkspacesRequest(input *CreateWorkspacesInput) (req // // Creates one or more WorkSpaces. // -// This operation is asynchronous and returns before the WorkSpaces are created. +// This operation is asynchronous and returns before the WorkSpaces are created. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -138,12 +139,13 @@ func (c *WorkSpaces) CreateWorkspacesRequest(input *CreateWorkspacesInput) (req // API operation CreateWorkspaces for usage and error information. // // Returned Error Codes: -// * ResourceLimitExceededException +// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" // Your resource limits have been exceeded. // -// * InvalidParameterValuesException +// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" // One or more parameter values are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateWorkspaces func (c *WorkSpaces) CreateWorkspaces(input *CreateWorkspacesInput) (*CreateWorkspacesOutput, error) { req, out := c.CreateWorkspacesRequest(input) err := req.Send() @@ -176,6 +178,7 @@ const opDeleteTags = "DeleteTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DeleteTags func (c *WorkSpaces) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) { op := &request.Operation{ Name: opDeleteTags, @@ -187,9 +190,8 @@ func (c *WorkSpaces) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Req input = &DeleteTagsInput{} } - req = c.newRequest(op, input, output) output = &DeleteTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -205,12 +207,13 @@ func (c *WorkSpaces) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Req // API operation DeleteTags for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource could not be found. // -// * InvalidParameterValuesException +// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" // One or more parameter values are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DeleteTags func (c *WorkSpaces) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) err := req.Send() @@ -243,6 +246,7 @@ const opDescribeTags = "DescribeTags" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeTags func (c *WorkSpaces) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) { op := &request.Operation{ Name: opDescribeTags, @@ -254,9 +258,8 @@ func (c *WorkSpaces) DescribeTagsRequest(input *DescribeTagsInput) (req *request input = &DescribeTagsInput{} } - req = c.newRequest(op, input, output) output = &DescribeTagsOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -272,9 +275,10 @@ func (c *WorkSpaces) DescribeTagsRequest(input *DescribeTagsInput) (req *request // API operation DescribeTags for usage and error information. // // Returned Error Codes: -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource could not be found. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeTags func (c *WorkSpaces) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -307,6 +311,7 @@ const opDescribeWorkspaceBundles = "DescribeWorkspaceBundles" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceBundles func (c *WorkSpaces) DescribeWorkspaceBundlesRequest(input *DescribeWorkspaceBundlesInput) (req *request.Request, output *DescribeWorkspaceBundlesOutput) { op := &request.Operation{ Name: opDescribeWorkspaceBundles, @@ -324,9 +329,8 @@ func (c *WorkSpaces) DescribeWorkspaceBundlesRequest(input *DescribeWorkspaceBun input = &DescribeWorkspaceBundlesInput{} } - req = c.newRequest(op, input, output) output = &DescribeWorkspaceBundlesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -351,9 +355,10 @@ func (c *WorkSpaces) DescribeWorkspaceBundlesRequest(input *DescribeWorkspaceBun // API operation DescribeWorkspaceBundles for usage and error information. // // Returned Error Codes: -// * InvalidParameterValuesException +// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" // One or more parameter values are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceBundles func (c *WorkSpaces) DescribeWorkspaceBundles(input *DescribeWorkspaceBundlesInput) (*DescribeWorkspaceBundlesOutput, error) { req, out := c.DescribeWorkspaceBundlesRequest(input) err := req.Send() @@ -411,6 +416,7 @@ const opDescribeWorkspaceDirectories = "DescribeWorkspaceDirectories" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceDirectories func (c *WorkSpaces) DescribeWorkspaceDirectoriesRequest(input *DescribeWorkspaceDirectoriesInput) (req *request.Request, output *DescribeWorkspaceDirectoriesOutput) { op := &request.Operation{ Name: opDescribeWorkspaceDirectories, @@ -428,9 +434,8 @@ func (c *WorkSpaces) DescribeWorkspaceDirectoriesRequest(input *DescribeWorkspac input = &DescribeWorkspaceDirectoriesInput{} } - req = c.newRequest(op, input, output) output = &DescribeWorkspaceDirectoriesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -453,9 +458,10 @@ func (c *WorkSpaces) DescribeWorkspaceDirectoriesRequest(input *DescribeWorkspac // API operation DescribeWorkspaceDirectories for usage and error information. // // Returned Error Codes: -// * InvalidParameterValuesException +// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" // One or more parameter values are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceDirectories func (c *WorkSpaces) DescribeWorkspaceDirectories(input *DescribeWorkspaceDirectoriesInput) (*DescribeWorkspaceDirectoriesOutput, error) { req, out := c.DescribeWorkspaceDirectoriesRequest(input) err := req.Send() @@ -513,6 +519,7 @@ const opDescribeWorkspaces = "DescribeWorkspaces" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaces func (c *WorkSpaces) DescribeWorkspacesRequest(input *DescribeWorkspacesInput) (req *request.Request, output *DescribeWorkspacesOutput) { op := &request.Operation{ Name: opDescribeWorkspaces, @@ -530,9 +537,8 @@ func (c *WorkSpaces) DescribeWorkspacesRequest(input *DescribeWorkspacesInput) ( input = &DescribeWorkspacesInput{} } - req = c.newRequest(op, input, output) output = &DescribeWorkspacesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -556,12 +562,13 @@ func (c *WorkSpaces) DescribeWorkspacesRequest(input *DescribeWorkspacesInput) ( // API operation DescribeWorkspaces for usage and error information. // // Returned Error Codes: -// * InvalidParameterValuesException +// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" // One or more parameter values are not valid. // -// * ResourceUnavailableException +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" // The specified resource is not available. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaces func (c *WorkSpaces) DescribeWorkspaces(input *DescribeWorkspacesInput) (*DescribeWorkspacesOutput, error) { req, out := c.DescribeWorkspacesRequest(input) err := req.Send() @@ -619,6 +626,7 @@ const opDescribeWorkspacesConnectionStatus = "DescribeWorkspacesConnectionStatus // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspacesConnectionStatus func (c *WorkSpaces) DescribeWorkspacesConnectionStatusRequest(input *DescribeWorkspacesConnectionStatusInput) (req *request.Request, output *DescribeWorkspacesConnectionStatusOutput) { op := &request.Operation{ Name: opDescribeWorkspacesConnectionStatus, @@ -630,9 +638,8 @@ func (c *WorkSpaces) DescribeWorkspacesConnectionStatusRequest(input *DescribeWo input = &DescribeWorkspacesConnectionStatusInput{} } - req = c.newRequest(op, input, output) output = &DescribeWorkspacesConnectionStatusOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -648,9 +655,10 @@ func (c *WorkSpaces) DescribeWorkspacesConnectionStatusRequest(input *DescribeWo // API operation DescribeWorkspacesConnectionStatus for usage and error information. // // Returned Error Codes: -// * InvalidParameterValuesException +// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" // One or more parameter values are not valid. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspacesConnectionStatus func (c *WorkSpaces) DescribeWorkspacesConnectionStatus(input *DescribeWorkspacesConnectionStatusInput) (*DescribeWorkspacesConnectionStatusOutput, error) { req, out := c.DescribeWorkspacesConnectionStatusRequest(input) err := req.Send() @@ -683,6 +691,7 @@ const opModifyWorkspaceProperties = "ModifyWorkspaceProperties" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyWorkspaceProperties func (c *WorkSpaces) ModifyWorkspacePropertiesRequest(input *ModifyWorkspacePropertiesInput) (req *request.Request, output *ModifyWorkspacePropertiesOutput) { op := &request.Operation{ Name: opModifyWorkspaceProperties, @@ -694,9 +703,8 @@ func (c *WorkSpaces) ModifyWorkspacePropertiesRequest(input *ModifyWorkspaceProp input = &ModifyWorkspacePropertiesInput{} } - req = c.newRequest(op, input, output) output = &ModifyWorkspacePropertiesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -713,29 +721,29 @@ func (c *WorkSpaces) ModifyWorkspacePropertiesRequest(input *ModifyWorkspaceProp // API operation ModifyWorkspaceProperties for usage and error information. // // Returned Error Codes: -// * InvalidParameterValuesException +// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" // One or more parameter values are not valid. // -// * InvalidResourceStateException +// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" // The specified WorkSpace has an invalid state for this operation. // -// * OperationInProgressException +// * ErrCodeOperationInProgressException "OperationInProgressException" // The properties of this WorkSpace are currently being modified. Try again // in a moment. // -// * UnsupportedWorkspaceConfigurationException +// * ErrCodeUnsupportedWorkspaceConfigurationException "UnsupportedWorkspaceConfigurationException" // The WorkSpace does not have the supported configuration for this operation. // For more information, see the Amazon WorkSpaces Administration Guide (http://docs.aws.amazon.com/workspaces/latest/adminguide). // -// * ResourceNotFoundException +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource could not be found. // -// * AccessDeniedException - +// * ErrCodeAccessDeniedException "AccessDeniedException" // -// * ResourceUnavailableException +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" // The specified resource is not available. // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyWorkspaceProperties func (c *WorkSpaces) ModifyWorkspaceProperties(input *ModifyWorkspacePropertiesInput) (*ModifyWorkspacePropertiesOutput, error) { req, out := c.ModifyWorkspacePropertiesRequest(input) err := req.Send() @@ -768,6 +776,7 @@ const opRebootWorkspaces = "RebootWorkspaces" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RebootWorkspaces func (c *WorkSpaces) RebootWorkspacesRequest(input *RebootWorkspacesInput) (req *request.Request, output *RebootWorkspacesOutput) { op := &request.Operation{ Name: opRebootWorkspaces, @@ -779,9 +788,8 @@ func (c *WorkSpaces) RebootWorkspacesRequest(input *RebootWorkspacesInput) (req input = &RebootWorkspacesInput{} } - req = c.newRequest(op, input, output) output = &RebootWorkspacesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -792,7 +800,7 @@ func (c *WorkSpaces) RebootWorkspacesRequest(input *RebootWorkspacesInput) (req // To be able to reboot a WorkSpace, the WorkSpace must have a State of AVAILABLE, // IMPAIRED, or INOPERABLE. // -// This operation is asynchronous and returns before the WorkSpaces have rebooted. +// This operation is asynchronous and returns before the WorkSpaces have rebooted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -800,6 +808,7 @@ func (c *WorkSpaces) RebootWorkspacesRequest(input *RebootWorkspacesInput) (req // // See the AWS API reference guide for Amazon WorkSpaces's // API operation RebootWorkspaces for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RebootWorkspaces func (c *WorkSpaces) RebootWorkspaces(input *RebootWorkspacesInput) (*RebootWorkspacesOutput, error) { req, out := c.RebootWorkspacesRequest(input) err := req.Send() @@ -832,6 +841,7 @@ const opRebuildWorkspaces = "RebuildWorkspaces" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RebuildWorkspaces func (c *WorkSpaces) RebuildWorkspacesRequest(input *RebuildWorkspacesInput) (req *request.Request, output *RebuildWorkspacesOutput) { op := &request.Operation{ Name: opRebuildWorkspaces, @@ -843,9 +853,8 @@ func (c *WorkSpaces) RebuildWorkspacesRequest(input *RebuildWorkspacesInput) (re input = &RebuildWorkspacesInput{} } - req = c.newRequest(op, input, output) output = &RebuildWorkspacesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -856,19 +865,19 @@ func (c *WorkSpaces) RebuildWorkspacesRequest(input *RebuildWorkspacesInput) (re // Rebuilding a WorkSpace is a potentially destructive action that can result // in the loss of data. Rebuilding a WorkSpace causes the following to occur: // -// The system is restored to the image of the bundle that the WorkSpace is -// created from. Any applications that have been installed, or system settings -// that have been made since the WorkSpace was created will be lost. +// * The system is restored to the image of the bundle that the WorkSpace +// is created from. Any applications that have been installed, or system +// settings that have been made since the WorkSpace was created will be lost. // -// The data drive (D drive) is re-created from the last automatic snapshot -// taken of the data drive. The current contents of the data drive are overwritten. -// Automatic snapshots of the data drive are taken every 12 hours, so the snapshot -// can be as much as 12 hours old. +// * The data drive (D drive) is re-created from the last automatic snapshot +// taken of the data drive. The current contents of the data drive are overwritten. +// Automatic snapshots of the data drive are taken every 12 hours, so the +// snapshot can be as much as 12 hours old. // -// To be able to rebuild a WorkSpace, the WorkSpace must have a State of -// AVAILABLE or ERROR. +// To be able to rebuild a WorkSpace, the WorkSpace must have a State of AVAILABLE +// or ERROR. // -// This operation is asynchronous and returns before the WorkSpaces have been +// This operation is asynchronous and returns before the WorkSpaces have been // completely rebuilt. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -877,6 +886,7 @@ func (c *WorkSpaces) RebuildWorkspacesRequest(input *RebuildWorkspacesInput) (re // // See the AWS API reference guide for Amazon WorkSpaces's // API operation RebuildWorkspaces for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RebuildWorkspaces func (c *WorkSpaces) RebuildWorkspaces(input *RebuildWorkspacesInput) (*RebuildWorkspacesOutput, error) { req, out := c.RebuildWorkspacesRequest(input) err := req.Send() @@ -909,6 +919,7 @@ const opStartWorkspaces = "StartWorkspaces" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/StartWorkspaces func (c *WorkSpaces) StartWorkspacesRequest(input *StartWorkspacesInput) (req *request.Request, output *StartWorkspacesOutput) { op := &request.Operation{ Name: opStartWorkspaces, @@ -920,9 +931,8 @@ func (c *WorkSpaces) StartWorkspacesRequest(input *StartWorkspacesInput) (req *r input = &StartWorkspacesInput{} } - req = c.newRequest(op, input, output) output = &StartWorkspacesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -937,6 +947,7 @@ func (c *WorkSpaces) StartWorkspacesRequest(input *StartWorkspacesInput) (req *r // // See the AWS API reference guide for Amazon WorkSpaces's // API operation StartWorkspaces for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/StartWorkspaces func (c *WorkSpaces) StartWorkspaces(input *StartWorkspacesInput) (*StartWorkspacesOutput, error) { req, out := c.StartWorkspacesRequest(input) err := req.Send() @@ -969,6 +980,7 @@ const opStopWorkspaces = "StopWorkspaces" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/StopWorkspaces func (c *WorkSpaces) StopWorkspacesRequest(input *StopWorkspacesInput) (req *request.Request, output *StopWorkspacesOutput) { op := &request.Operation{ Name: opStopWorkspaces, @@ -980,9 +992,8 @@ func (c *WorkSpaces) StopWorkspacesRequest(input *StopWorkspacesInput) (req *req input = &StopWorkspacesInput{} } - req = c.newRequest(op, input, output) output = &StopWorkspacesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -998,6 +1009,7 @@ func (c *WorkSpaces) StopWorkspacesRequest(input *StopWorkspacesInput) (req *req // // See the AWS API reference guide for Amazon WorkSpaces's // API operation StopWorkspaces for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/StopWorkspaces func (c *WorkSpaces) StopWorkspaces(input *StopWorkspacesInput) (*StopWorkspacesOutput, error) { req, out := c.StopWorkspacesRequest(input) err := req.Send() @@ -1030,6 +1042,7 @@ const opTerminateWorkspaces = "TerminateWorkspaces" // fmt.Println(resp) // } // +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/TerminateWorkspaces func (c *WorkSpaces) TerminateWorkspacesRequest(input *TerminateWorkspacesInput) (req *request.Request, output *TerminateWorkspacesOutput) { op := &request.Operation{ Name: opTerminateWorkspaces, @@ -1041,9 +1054,8 @@ func (c *WorkSpaces) TerminateWorkspacesRequest(input *TerminateWorkspacesInput) input = &TerminateWorkspacesInput{} } - req = c.newRequest(op, input, output) output = &TerminateWorkspacesOutput{} - req.Data = output + req = c.newRequest(op, input, output) return } @@ -1051,13 +1063,13 @@ func (c *WorkSpaces) TerminateWorkspacesRequest(input *TerminateWorkspacesInput) // // Terminates the specified WorkSpaces. // -// Terminating a WorkSpace is a permanent action and cannot be undone. The -// user's data is not maintained and will be destroyed. If you need to archive -// any user data, contact Amazon Web Services before terminating the WorkSpace. +// Terminating a WorkSpace is a permanent action and cannot be undone. The user's +// data is not maintained and will be destroyed. If you need to archive any +// user data, contact Amazon Web Services before terminating the WorkSpace. // // You can terminate a WorkSpace that is in any state except SUSPENDED. // -// This operation is asynchronous and returns before the WorkSpaces have been +// This operation is asynchronous and returns before the WorkSpaces have been // completely terminated. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1066,6 +1078,7 @@ func (c *WorkSpaces) TerminateWorkspacesRequest(input *TerminateWorkspacesInput) // // See the AWS API reference guide for Amazon WorkSpaces's // API operation TerminateWorkspaces for usage and error information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/TerminateWorkspaces func (c *WorkSpaces) TerminateWorkspaces(input *TerminateWorkspacesInput) (*TerminateWorkspacesOutput, error) { req, out := c.TerminateWorkspacesRequest(input) err := req.Send() @@ -1073,6 +1086,7 @@ func (c *WorkSpaces) TerminateWorkspaces(input *TerminateWorkspacesInput) (*Term } // Contains information about the compute type of a WorkSpace bundle. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ComputeType type ComputeType struct { _ struct{} `type:"structure"` @@ -1090,7 +1104,14 @@ func (s ComputeType) GoString() string { return s.String() } +// SetName sets the Name field's value. +func (s *ComputeType) SetName(v string) *ComputeType { + s.Name = &v + return s +} + // The request of the CreateTags operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateTagsRequest type CreateTagsInput struct { _ struct{} `type:"structure"` @@ -1144,7 +1165,20 @@ func (s *CreateTagsInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *CreateTagsInput) SetResourceId(v string) *CreateTagsInput { + s.ResourceId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateTagsInput) SetTags(v []*Tag) *CreateTagsInput { + s.Tags = v + return s +} + // The result of the CreateTags operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateTagsResult type CreateTagsOutput struct { _ struct{} `type:"structure"` } @@ -1160,6 +1194,7 @@ func (s CreateTagsOutput) GoString() string { } // Contains the inputs for the CreateWorkspaces operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateWorkspacesRequest type CreateWorkspacesInput struct { _ struct{} `type:"structure"` @@ -1205,7 +1240,14 @@ func (s *CreateWorkspacesInput) Validate() error { return nil } +// SetWorkspaces sets the Workspaces field's value. +func (s *CreateWorkspacesInput) SetWorkspaces(v []*WorkspaceRequest) *CreateWorkspacesInput { + s.Workspaces = v + return s +} + // Contains the result of the CreateWorkspaces operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateWorkspacesResult type CreateWorkspacesOutput struct { _ struct{} `type:"structure"` @@ -1230,7 +1272,20 @@ func (s CreateWorkspacesOutput) GoString() string { return s.String() } +// SetFailedRequests sets the FailedRequests field's value. +func (s *CreateWorkspacesOutput) SetFailedRequests(v []*FailedCreateWorkspaceRequest) *CreateWorkspacesOutput { + s.FailedRequests = v + return s +} + +// SetPendingRequests sets the PendingRequests field's value. +func (s *CreateWorkspacesOutput) SetPendingRequests(v []*Workspace) *CreateWorkspacesOutput { + s.PendingRequests = v + return s +} + // Contains default WorkSpace creation information. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DefaultWorkspaceCreationProperties type DefaultWorkspaceCreationProperties struct { _ struct{} `type:"structure"` @@ -1263,7 +1318,38 @@ func (s DefaultWorkspaceCreationProperties) GoString() string { return s.String() } +// SetCustomSecurityGroupId sets the CustomSecurityGroupId field's value. +func (s *DefaultWorkspaceCreationProperties) SetCustomSecurityGroupId(v string) *DefaultWorkspaceCreationProperties { + s.CustomSecurityGroupId = &v + return s +} + +// SetDefaultOu sets the DefaultOu field's value. +func (s *DefaultWorkspaceCreationProperties) SetDefaultOu(v string) *DefaultWorkspaceCreationProperties { + s.DefaultOu = &v + return s +} + +// SetEnableInternetAccess sets the EnableInternetAccess field's value. +func (s *DefaultWorkspaceCreationProperties) SetEnableInternetAccess(v bool) *DefaultWorkspaceCreationProperties { + s.EnableInternetAccess = &v + return s +} + +// SetEnableWorkDocs sets the EnableWorkDocs field's value. +func (s *DefaultWorkspaceCreationProperties) SetEnableWorkDocs(v bool) *DefaultWorkspaceCreationProperties { + s.EnableWorkDocs = &v + return s +} + +// SetUserEnabledAsLocalAdministrator sets the UserEnabledAsLocalAdministrator field's value. +func (s *DefaultWorkspaceCreationProperties) SetUserEnabledAsLocalAdministrator(v bool) *DefaultWorkspaceCreationProperties { + s.UserEnabledAsLocalAdministrator = &v + return s +} + // The request of the DeleteTags operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DeleteTagsRequest type DeleteTagsInput struct { _ struct{} `type:"structure"` @@ -1307,7 +1393,20 @@ func (s *DeleteTagsInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *DeleteTagsInput) SetResourceId(v string) *DeleteTagsInput { + s.ResourceId = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DeleteTagsInput) SetTagKeys(v []*string) *DeleteTagsInput { + s.TagKeys = v + return s +} + // The result of the DeleteTags operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DeleteTagsResult type DeleteTagsOutput struct { _ struct{} `type:"structure"` } @@ -1323,6 +1422,7 @@ func (s DeleteTagsOutput) GoString() string { } // The request of the DescribeTags operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeTagsRequest type DescribeTagsInput struct { _ struct{} `type:"structure"` @@ -1358,7 +1458,14 @@ func (s *DescribeTagsInput) Validate() error { return nil } +// SetResourceId sets the ResourceId field's value. +func (s *DescribeTagsInput) SetResourceId(v string) *DescribeTagsInput { + s.ResourceId = &v + return s +} + // The result of the DescribeTags operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeTagsResult type DescribeTagsOutput struct { _ struct{} `type:"structure"` @@ -1376,7 +1483,14 @@ func (s DescribeTagsOutput) GoString() string { return s.String() } +// SetTagList sets the TagList field's value. +func (s *DescribeTagsOutput) SetTagList(v []*Tag) *DescribeTagsOutput { + s.TagList = v + return s +} + // Contains the inputs for the DescribeWorkspaceBundles operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceBundlesRequest type DescribeWorkspaceBundlesInput struct { _ struct{} `type:"structure"` @@ -1393,9 +1507,9 @@ type DescribeWorkspaceBundlesInput struct { // // This contains one of the following values: // - // null- Retrieves the bundles that belong to the account making the call. + // * null- Retrieves the bundles that belong to the account making the call. // - // AMAZON- Retrieves the bundles that are provided by AWS. + // * AMAZON- Retrieves the bundles that are provided by AWS. Owner *string `type:"string"` } @@ -1425,7 +1539,26 @@ func (s *DescribeWorkspaceBundlesInput) Validate() error { return nil } +// SetBundleIds sets the BundleIds field's value. +func (s *DescribeWorkspaceBundlesInput) SetBundleIds(v []*string) *DescribeWorkspaceBundlesInput { + s.BundleIds = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeWorkspaceBundlesInput) SetNextToken(v string) *DescribeWorkspaceBundlesInput { + s.NextToken = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *DescribeWorkspaceBundlesInput) SetOwner(v string) *DescribeWorkspaceBundlesInput { + s.Owner = &v + return s +} + // Contains the results of the DescribeWorkspaceBundles operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceBundlesResult type DescribeWorkspaceBundlesOutput struct { _ struct{} `type:"structure"` @@ -1449,7 +1582,20 @@ func (s DescribeWorkspaceBundlesOutput) GoString() string { return s.String() } +// SetBundles sets the Bundles field's value. +func (s *DescribeWorkspaceBundlesOutput) SetBundles(v []*WorkspaceBundle) *DescribeWorkspaceBundlesOutput { + s.Bundles = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeWorkspaceBundlesOutput) SetNextToken(v string) *DescribeWorkspaceBundlesOutput { + s.NextToken = &v + return s +} + // Contains the inputs for the DescribeWorkspaceDirectories operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceDirectoriesRequest type DescribeWorkspaceDirectoriesInput struct { _ struct{} `type:"structure"` @@ -1488,7 +1634,20 @@ func (s *DescribeWorkspaceDirectoriesInput) Validate() error { return nil } +// SetDirectoryIds sets the DirectoryIds field's value. +func (s *DescribeWorkspaceDirectoriesInput) SetDirectoryIds(v []*string) *DescribeWorkspaceDirectoriesInput { + s.DirectoryIds = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeWorkspaceDirectoriesInput) SetNextToken(v string) *DescribeWorkspaceDirectoriesInput { + s.NextToken = &v + return s +} + // Contains the results of the DescribeWorkspaceDirectories operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceDirectoriesResult type DescribeWorkspaceDirectoriesOutput struct { _ struct{} `type:"structure"` @@ -1512,6 +1671,19 @@ func (s DescribeWorkspaceDirectoriesOutput) GoString() string { return s.String() } +// SetDirectories sets the Directories field's value. +func (s *DescribeWorkspaceDirectoriesOutput) SetDirectories(v []*WorkspaceDirectory) *DescribeWorkspaceDirectoriesOutput { + s.Directories = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeWorkspaceDirectoriesOutput) SetNextToken(v string) *DescribeWorkspaceDirectoriesOutput { + s.NextToken = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspacesConnectionStatusRequest type DescribeWorkspacesConnectionStatusInput struct { _ struct{} `type:"structure"` @@ -1548,6 +1720,19 @@ func (s *DescribeWorkspacesConnectionStatusInput) Validate() error { return nil } +// SetNextToken sets the NextToken field's value. +func (s *DescribeWorkspacesConnectionStatusInput) SetNextToken(v string) *DescribeWorkspacesConnectionStatusInput { + s.NextToken = &v + return s +} + +// SetWorkspaceIds sets the WorkspaceIds field's value. +func (s *DescribeWorkspacesConnectionStatusInput) SetWorkspaceIds(v []*string) *DescribeWorkspacesConnectionStatusInput { + s.WorkspaceIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspacesConnectionStatusResult type DescribeWorkspacesConnectionStatusOutput struct { _ struct{} `type:"structure"` @@ -1568,7 +1753,20 @@ func (s DescribeWorkspacesConnectionStatusOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeWorkspacesConnectionStatusOutput) SetNextToken(v string) *DescribeWorkspacesConnectionStatusOutput { + s.NextToken = &v + return s +} + +// SetWorkspacesConnectionStatus sets the WorkspacesConnectionStatus field's value. +func (s *DescribeWorkspacesConnectionStatusOutput) SetWorkspacesConnectionStatus(v []*WorkspaceConnectionStatus) *DescribeWorkspacesConnectionStatusOutput { + s.WorkspacesConnectionStatus = v + return s +} + // Contains the inputs for the DescribeWorkspaces operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspacesRequest type DescribeWorkspacesInput struct { _ struct{} `type:"structure"` @@ -1635,7 +1833,44 @@ func (s *DescribeWorkspacesInput) Validate() error { return nil } +// SetBundleId sets the BundleId field's value. +func (s *DescribeWorkspacesInput) SetBundleId(v string) *DescribeWorkspacesInput { + s.BundleId = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *DescribeWorkspacesInput) SetDirectoryId(v string) *DescribeWorkspacesInput { + s.DirectoryId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeWorkspacesInput) SetLimit(v int64) *DescribeWorkspacesInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeWorkspacesInput) SetNextToken(v string) *DescribeWorkspacesInput { + s.NextToken = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DescribeWorkspacesInput) SetUserName(v string) *DescribeWorkspacesInput { + s.UserName = &v + return s +} + +// SetWorkspaceIds sets the WorkspaceIds field's value. +func (s *DescribeWorkspacesInput) SetWorkspaceIds(v []*string) *DescribeWorkspacesInput { + s.WorkspaceIds = v + return s +} + // Contains the results for the DescribeWorkspaces operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspacesResult type DescribeWorkspacesOutput struct { _ struct{} `type:"structure"` @@ -1662,7 +1897,20 @@ func (s DescribeWorkspacesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeWorkspacesOutput) SetNextToken(v string) *DescribeWorkspacesOutput { + s.NextToken = &v + return s +} + +// SetWorkspaces sets the Workspaces field's value. +func (s *DescribeWorkspacesOutput) SetWorkspaces(v []*Workspace) *DescribeWorkspacesOutput { + s.Workspaces = v + return s +} + // Contains information about a WorkSpace that could not be created. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/FailedCreateWorkspaceRequest type FailedCreateWorkspaceRequest struct { _ struct{} `type:"structure"` @@ -1687,9 +1935,28 @@ func (s FailedCreateWorkspaceRequest) GoString() string { return s.String() } +// SetErrorCode sets the ErrorCode field's value. +func (s *FailedCreateWorkspaceRequest) SetErrorCode(v string) *FailedCreateWorkspaceRequest { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *FailedCreateWorkspaceRequest) SetErrorMessage(v string) *FailedCreateWorkspaceRequest { + s.ErrorMessage = &v + return s +} + +// SetWorkspaceRequest sets the WorkspaceRequest field's value. +func (s *FailedCreateWorkspaceRequest) SetWorkspaceRequest(v *WorkspaceRequest) *FailedCreateWorkspaceRequest { + s.WorkspaceRequest = v + return s +} + // Contains information about a WorkSpace that could not be rebooted (RebootWorkspaces), // rebuilt (RebuildWorkspaces), terminated (TerminateWorkspaces), started (StartWorkspaces), // or stopped (StopWorkspaces). +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/FailedWorkspaceChangeRequest type FailedWorkspaceChangeRequest struct { _ struct{} `type:"structure"` @@ -1713,6 +1980,25 @@ func (s FailedWorkspaceChangeRequest) GoString() string { return s.String() } +// SetErrorCode sets the ErrorCode field's value. +func (s *FailedWorkspaceChangeRequest) SetErrorCode(v string) *FailedWorkspaceChangeRequest { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *FailedWorkspaceChangeRequest) SetErrorMessage(v string) *FailedWorkspaceChangeRequest { + s.ErrorMessage = &v + return s +} + +// SetWorkspaceId sets the WorkspaceId field's value. +func (s *FailedWorkspaceChangeRequest) SetWorkspaceId(v string) *FailedWorkspaceChangeRequest { + s.WorkspaceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyWorkspacePropertiesRequest type ModifyWorkspacePropertiesInput struct { _ struct{} `type:"structure"` @@ -1753,6 +2039,19 @@ func (s *ModifyWorkspacePropertiesInput) Validate() error { return nil } +// SetWorkspaceId sets the WorkspaceId field's value. +func (s *ModifyWorkspacePropertiesInput) SetWorkspaceId(v string) *ModifyWorkspacePropertiesInput { + s.WorkspaceId = &v + return s +} + +// SetWorkspaceProperties sets the WorkspaceProperties field's value. +func (s *ModifyWorkspacePropertiesInput) SetWorkspaceProperties(v *WorkspaceProperties) *ModifyWorkspacePropertiesInput { + s.WorkspaceProperties = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyWorkspacePropertiesResult type ModifyWorkspacePropertiesOutput struct { _ struct{} `type:"structure"` } @@ -1769,6 +2068,7 @@ func (s ModifyWorkspacePropertiesOutput) GoString() string { // Contains information used with the RebootWorkspaces operation to reboot a // WorkSpace. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RebootRequest type RebootRequest struct { _ struct{} `type:"structure"` @@ -1801,7 +2101,14 @@ func (s *RebootRequest) Validate() error { return nil } +// SetWorkspaceId sets the WorkspaceId field's value. +func (s *RebootRequest) SetWorkspaceId(v string) *RebootRequest { + s.WorkspaceId = &v + return s +} + // Contains the inputs for the RebootWorkspaces operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RebootWorkspacesRequest type RebootWorkspacesInput struct { _ struct{} `type:"structure"` @@ -1847,7 +2154,14 @@ func (s *RebootWorkspacesInput) Validate() error { return nil } +// SetRebootWorkspaceRequests sets the RebootWorkspaceRequests field's value. +func (s *RebootWorkspacesInput) SetRebootWorkspaceRequests(v []*RebootRequest) *RebootWorkspacesInput { + s.RebootWorkspaceRequests = v + return s +} + // Contains the results of the RebootWorkspaces operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RebootWorkspacesResult type RebootWorkspacesOutput struct { _ struct{} `type:"structure"` @@ -1865,8 +2179,15 @@ func (s RebootWorkspacesOutput) GoString() string { return s.String() } +// SetFailedRequests sets the FailedRequests field's value. +func (s *RebootWorkspacesOutput) SetFailedRequests(v []*FailedWorkspaceChangeRequest) *RebootWorkspacesOutput { + s.FailedRequests = v + return s +} + // Contains information used with the RebuildWorkspaces operation to rebuild // a WorkSpace. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RebuildRequest type RebuildRequest struct { _ struct{} `type:"structure"` @@ -1899,7 +2220,14 @@ func (s *RebuildRequest) Validate() error { return nil } +// SetWorkspaceId sets the WorkspaceId field's value. +func (s *RebuildRequest) SetWorkspaceId(v string) *RebuildRequest { + s.WorkspaceId = &v + return s +} + // Contains the inputs for the RebuildWorkspaces operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RebuildWorkspacesRequest type RebuildWorkspacesInput struct { _ struct{} `type:"structure"` @@ -1945,7 +2273,14 @@ func (s *RebuildWorkspacesInput) Validate() error { return nil } +// SetRebuildWorkspaceRequests sets the RebuildWorkspaceRequests field's value. +func (s *RebuildWorkspacesInput) SetRebuildWorkspaceRequests(v []*RebuildRequest) *RebuildWorkspacesInput { + s.RebuildWorkspaceRequests = v + return s +} + // Contains the results of the RebuildWorkspaces operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RebuildWorkspacesResult type RebuildWorkspacesOutput struct { _ struct{} `type:"structure"` @@ -1963,7 +2298,14 @@ func (s RebuildWorkspacesOutput) GoString() string { return s.String() } +// SetFailedRequests sets the FailedRequests field's value. +func (s *RebuildWorkspacesOutput) SetFailedRequests(v []*FailedWorkspaceChangeRequest) *RebuildWorkspacesOutput { + s.FailedRequests = v + return s +} + // Describes the start request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/StartRequest type StartRequest struct { _ struct{} `type:"structure"` @@ -1981,6 +2323,13 @@ func (s StartRequest) GoString() string { return s.String() } +// SetWorkspaceId sets the WorkspaceId field's value. +func (s *StartRequest) SetWorkspaceId(v string) *StartRequest { + s.WorkspaceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/StartWorkspacesRequest type StartWorkspacesInput struct { _ struct{} `type:"structure"` @@ -2016,6 +2365,13 @@ func (s *StartWorkspacesInput) Validate() error { return nil } +// SetStartWorkspaceRequests sets the StartWorkspaceRequests field's value. +func (s *StartWorkspacesInput) SetStartWorkspaceRequests(v []*StartRequest) *StartWorkspacesInput { + s.StartWorkspaceRequests = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/StartWorkspacesResult type StartWorkspacesOutput struct { _ struct{} `type:"structure"` @@ -2033,7 +2389,14 @@ func (s StartWorkspacesOutput) GoString() string { return s.String() } +// SetFailedRequests sets the FailedRequests field's value. +func (s *StartWorkspacesOutput) SetFailedRequests(v []*FailedWorkspaceChangeRequest) *StartWorkspacesOutput { + s.FailedRequests = v + return s +} + // Describes the stop request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/StopRequest type StopRequest struct { _ struct{} `type:"structure"` @@ -2051,6 +2414,13 @@ func (s StopRequest) GoString() string { return s.String() } +// SetWorkspaceId sets the WorkspaceId field's value. +func (s *StopRequest) SetWorkspaceId(v string) *StopRequest { + s.WorkspaceId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/StopWorkspacesRequest type StopWorkspacesInput struct { _ struct{} `type:"structure"` @@ -2086,6 +2456,13 @@ func (s *StopWorkspacesInput) Validate() error { return nil } +// SetStopWorkspaceRequests sets the StopWorkspaceRequests field's value. +func (s *StopWorkspacesInput) SetStopWorkspaceRequests(v []*StopRequest) *StopWorkspacesInput { + s.StopWorkspaceRequests = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/StopWorkspacesResult type StopWorkspacesOutput struct { _ struct{} `type:"structure"` @@ -2103,7 +2480,14 @@ func (s StopWorkspacesOutput) GoString() string { return s.String() } +// SetFailedRequests sets the FailedRequests field's value. +func (s *StopWorkspacesOutput) SetFailedRequests(v []*FailedWorkspaceChangeRequest) *StopWorkspacesOutput { + s.FailedRequests = v + return s +} + // Describes the tag of the WorkSpace. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/Tag type Tag struct { _ struct{} `type:"structure"` @@ -2142,8 +2526,21 @@ func (s *Tag) Validate() error { return nil } +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + // Contains information used with the TerminateWorkspaces operation to terminate // a WorkSpace. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/TerminateRequest type TerminateRequest struct { _ struct{} `type:"structure"` @@ -2176,7 +2573,14 @@ func (s *TerminateRequest) Validate() error { return nil } +// SetWorkspaceId sets the WorkspaceId field's value. +func (s *TerminateRequest) SetWorkspaceId(v string) *TerminateRequest { + s.WorkspaceId = &v + return s +} + // Contains the inputs for the TerminateWorkspaces operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/TerminateWorkspacesRequest type TerminateWorkspacesInput struct { _ struct{} `type:"structure"` @@ -2222,7 +2626,14 @@ func (s *TerminateWorkspacesInput) Validate() error { return nil } +// SetTerminateWorkspaceRequests sets the TerminateWorkspaceRequests field's value. +func (s *TerminateWorkspacesInput) SetTerminateWorkspaceRequests(v []*TerminateRequest) *TerminateWorkspacesInput { + s.TerminateWorkspaceRequests = v + return s +} + // Contains the results of the TerminateWorkspaces operation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/TerminateWorkspacesResult type TerminateWorkspacesOutput struct { _ struct{} `type:"structure"` @@ -2240,7 +2651,14 @@ func (s TerminateWorkspacesOutput) GoString() string { return s.String() } +// SetFailedRequests sets the FailedRequests field's value. +func (s *TerminateWorkspacesOutput) SetFailedRequests(v []*FailedWorkspaceChangeRequest) *TerminateWorkspacesOutput { + s.FailedRequests = v + return s +} + // Contains information about the user storage for a WorkSpace bundle. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/UserStorage type UserStorage struct { _ struct{} `type:"structure"` @@ -2258,7 +2676,14 @@ func (s UserStorage) GoString() string { return s.String() } +// SetCapacity sets the Capacity field's value. +func (s *UserStorage) SetCapacity(v string) *UserStorage { + s.Capacity = &v + return s +} + // Contains information about a WorkSpace. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/Workspace type Workspace struct { _ struct{} `type:"structure"` @@ -2317,7 +2742,92 @@ func (s Workspace) GoString() string { return s.String() } +// SetBundleId sets the BundleId field's value. +func (s *Workspace) SetBundleId(v string) *Workspace { + s.BundleId = &v + return s +} + +// SetComputerName sets the ComputerName field's value. +func (s *Workspace) SetComputerName(v string) *Workspace { + s.ComputerName = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *Workspace) SetDirectoryId(v string) *Workspace { + s.DirectoryId = &v + return s +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *Workspace) SetErrorCode(v string) *Workspace { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *Workspace) SetErrorMessage(v string) *Workspace { + s.ErrorMessage = &v + return s +} + +// SetIpAddress sets the IpAddress field's value. +func (s *Workspace) SetIpAddress(v string) *Workspace { + s.IpAddress = &v + return s +} + +// SetRootVolumeEncryptionEnabled sets the RootVolumeEncryptionEnabled field's value. +func (s *Workspace) SetRootVolumeEncryptionEnabled(v bool) *Workspace { + s.RootVolumeEncryptionEnabled = &v + return s +} + +// SetState sets the State field's value. +func (s *Workspace) SetState(v string) *Workspace { + s.State = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *Workspace) SetSubnetId(v string) *Workspace { + s.SubnetId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *Workspace) SetUserName(v string) *Workspace { + s.UserName = &v + return s +} + +// SetUserVolumeEncryptionEnabled sets the UserVolumeEncryptionEnabled field's value. +func (s *Workspace) SetUserVolumeEncryptionEnabled(v bool) *Workspace { + s.UserVolumeEncryptionEnabled = &v + return s +} + +// SetVolumeEncryptionKey sets the VolumeEncryptionKey field's value. +func (s *Workspace) SetVolumeEncryptionKey(v string) *Workspace { + s.VolumeEncryptionKey = &v + return s +} + +// SetWorkspaceId sets the WorkspaceId field's value. +func (s *Workspace) SetWorkspaceId(v string) *Workspace { + s.WorkspaceId = &v + return s +} + +// SetWorkspaceProperties sets the WorkspaceProperties field's value. +func (s *Workspace) SetWorkspaceProperties(v *WorkspaceProperties) *Workspace { + s.WorkspaceProperties = v + return s +} + // Contains information about a WorkSpace bundle. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/WorkspaceBundle type WorkspaceBundle struct { _ struct{} `type:"structure"` @@ -2352,7 +2862,44 @@ func (s WorkspaceBundle) GoString() string { return s.String() } +// SetBundleId sets the BundleId field's value. +func (s *WorkspaceBundle) SetBundleId(v string) *WorkspaceBundle { + s.BundleId = &v + return s +} + +// SetComputeType sets the ComputeType field's value. +func (s *WorkspaceBundle) SetComputeType(v *ComputeType) *WorkspaceBundle { + s.ComputeType = v + return s +} + +// SetDescription sets the Description field's value. +func (s *WorkspaceBundle) SetDescription(v string) *WorkspaceBundle { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *WorkspaceBundle) SetName(v string) *WorkspaceBundle { + s.Name = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *WorkspaceBundle) SetOwner(v string) *WorkspaceBundle { + s.Owner = &v + return s +} + +// SetUserStorage sets the UserStorage field's value. +func (s *WorkspaceBundle) SetUserStorage(v *UserStorage) *WorkspaceBundle { + s.UserStorage = v + return s +} + // Describes the connection status of a WorkSpace. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/WorkspaceConnectionStatus type WorkspaceConnectionStatus struct { _ struct{} `type:"structure"` @@ -2380,8 +2927,33 @@ func (s WorkspaceConnectionStatus) GoString() string { return s.String() } +// SetConnectionState sets the ConnectionState field's value. +func (s *WorkspaceConnectionStatus) SetConnectionState(v string) *WorkspaceConnectionStatus { + s.ConnectionState = &v + return s +} + +// SetConnectionStateCheckTimestamp sets the ConnectionStateCheckTimestamp field's value. +func (s *WorkspaceConnectionStatus) SetConnectionStateCheckTimestamp(v time.Time) *WorkspaceConnectionStatus { + s.ConnectionStateCheckTimestamp = &v + return s +} + +// SetLastKnownUserConnectionTimestamp sets the LastKnownUserConnectionTimestamp field's value. +func (s *WorkspaceConnectionStatus) SetLastKnownUserConnectionTimestamp(v time.Time) *WorkspaceConnectionStatus { + s.LastKnownUserConnectionTimestamp = &v + return s +} + +// SetWorkspaceId sets the WorkspaceId field's value. +func (s *WorkspaceConnectionStatus) SetWorkspaceId(v string) *WorkspaceConnectionStatus { + s.WorkspaceId = &v + return s +} + // Contains information about an AWS Directory Service directory for use with // Amazon WorkSpaces. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/WorkspaceDirectory type WorkspaceDirectory struct { _ struct{} `type:"structure"` @@ -2437,7 +3009,80 @@ func (s WorkspaceDirectory) GoString() string { return s.String() } +// SetAlias sets the Alias field's value. +func (s *WorkspaceDirectory) SetAlias(v string) *WorkspaceDirectory { + s.Alias = &v + return s +} + +// SetCustomerUserName sets the CustomerUserName field's value. +func (s *WorkspaceDirectory) SetCustomerUserName(v string) *WorkspaceDirectory { + s.CustomerUserName = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *WorkspaceDirectory) SetDirectoryId(v string) *WorkspaceDirectory { + s.DirectoryId = &v + return s +} + +// SetDirectoryName sets the DirectoryName field's value. +func (s *WorkspaceDirectory) SetDirectoryName(v string) *WorkspaceDirectory { + s.DirectoryName = &v + return s +} + +// SetDirectoryType sets the DirectoryType field's value. +func (s *WorkspaceDirectory) SetDirectoryType(v string) *WorkspaceDirectory { + s.DirectoryType = &v + return s +} + +// SetDnsIpAddresses sets the DnsIpAddresses field's value. +func (s *WorkspaceDirectory) SetDnsIpAddresses(v []*string) *WorkspaceDirectory { + s.DnsIpAddresses = v + return s +} + +// SetIamRoleId sets the IamRoleId field's value. +func (s *WorkspaceDirectory) SetIamRoleId(v string) *WorkspaceDirectory { + s.IamRoleId = &v + return s +} + +// SetRegistrationCode sets the RegistrationCode field's value. +func (s *WorkspaceDirectory) SetRegistrationCode(v string) *WorkspaceDirectory { + s.RegistrationCode = &v + return s +} + +// SetState sets the State field's value. +func (s *WorkspaceDirectory) SetState(v string) *WorkspaceDirectory { + s.State = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *WorkspaceDirectory) SetSubnetIds(v []*string) *WorkspaceDirectory { + s.SubnetIds = v + return s +} + +// SetWorkspaceCreationProperties sets the WorkspaceCreationProperties field's value. +func (s *WorkspaceDirectory) SetWorkspaceCreationProperties(v *DefaultWorkspaceCreationProperties) *WorkspaceDirectory { + s.WorkspaceCreationProperties = v + return s +} + +// SetWorkspaceSecurityGroupId sets the WorkspaceSecurityGroupId field's value. +func (s *WorkspaceDirectory) SetWorkspaceSecurityGroupId(v string) *WorkspaceDirectory { + s.WorkspaceSecurityGroupId = &v + return s +} + // Describes the properties of a WorkSpace. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/WorkspaceProperties type WorkspaceProperties struct { _ struct{} `type:"structure"` @@ -2461,7 +3106,20 @@ func (s WorkspaceProperties) GoString() string { return s.String() } +// SetRunningMode sets the RunningMode field's value. +func (s *WorkspaceProperties) SetRunningMode(v string) *WorkspaceProperties { + s.RunningMode = &v + return s +} + +// SetRunningModeAutoStopTimeoutInMinutes sets the RunningModeAutoStopTimeoutInMinutes field's value. +func (s *WorkspaceProperties) SetRunningModeAutoStopTimeoutInMinutes(v int64) *WorkspaceProperties { + s.RunningModeAutoStopTimeoutInMinutes = &v + return s +} + // Contains information about a WorkSpace creation request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/WorkspaceRequest type WorkspaceRequest struct { _ struct{} `type:"structure"` @@ -2543,6 +3201,54 @@ func (s *WorkspaceRequest) Validate() error { return nil } +// SetBundleId sets the BundleId field's value. +func (s *WorkspaceRequest) SetBundleId(v string) *WorkspaceRequest { + s.BundleId = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *WorkspaceRequest) SetDirectoryId(v string) *WorkspaceRequest { + s.DirectoryId = &v + return s +} + +// SetRootVolumeEncryptionEnabled sets the RootVolumeEncryptionEnabled field's value. +func (s *WorkspaceRequest) SetRootVolumeEncryptionEnabled(v bool) *WorkspaceRequest { + s.RootVolumeEncryptionEnabled = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *WorkspaceRequest) SetTags(v []*Tag) *WorkspaceRequest { + s.Tags = v + return s +} + +// SetUserName sets the UserName field's value. +func (s *WorkspaceRequest) SetUserName(v string) *WorkspaceRequest { + s.UserName = &v + return s +} + +// SetUserVolumeEncryptionEnabled sets the UserVolumeEncryptionEnabled field's value. +func (s *WorkspaceRequest) SetUserVolumeEncryptionEnabled(v bool) *WorkspaceRequest { + s.UserVolumeEncryptionEnabled = &v + return s +} + +// SetVolumeEncryptionKey sets the VolumeEncryptionKey field's value. +func (s *WorkspaceRequest) SetVolumeEncryptionKey(v string) *WorkspaceRequest { + s.VolumeEncryptionKey = &v + return s +} + +// SetWorkspaceProperties sets the WorkspaceProperties field's value. +func (s *WorkspaceRequest) SetWorkspaceProperties(v *WorkspaceProperties) *WorkspaceRequest { + s.WorkspaceProperties = v + return s +} + const ( // ComputeValue is a Compute enum value ComputeValue = "VALUE" diff --git a/vendor/github.com/aws/aws-sdk-go/service/workspaces/errors.go b/vendor/github.com/aws/aws-sdk-go/service/workspaces/errors.go new file mode 100644 index 000000000..dfc13e0e0 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/workspaces/errors.go @@ -0,0 +1,54 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package workspaces + +const ( + + // ErrCodeAccessDeniedException for service response error code + // "AccessDeniedException". + ErrCodeAccessDeniedException = "AccessDeniedException" + + // ErrCodeInvalidParameterValuesException for service response error code + // "InvalidParameterValuesException". + // + // One or more parameter values are not valid. + ErrCodeInvalidParameterValuesException = "InvalidParameterValuesException" + + // ErrCodeInvalidResourceStateException for service response error code + // "InvalidResourceStateException". + // + // The specified WorkSpace has an invalid state for this operation. + ErrCodeInvalidResourceStateException = "InvalidResourceStateException" + + // ErrCodeOperationInProgressException for service response error code + // "OperationInProgressException". + // + // The properties of this WorkSpace are currently being modified. Try again + // in a moment. + ErrCodeOperationInProgressException = "OperationInProgressException" + + // ErrCodeResourceLimitExceededException for service response error code + // "ResourceLimitExceededException". + // + // Your resource limits have been exceeded. + ErrCodeResourceLimitExceededException = "ResourceLimitExceededException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The resource could not be found. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeResourceUnavailableException for service response error code + // "ResourceUnavailableException". + // + // The specified resource is not available. + ErrCodeResourceUnavailableException = "ResourceUnavailableException" + + // ErrCodeUnsupportedWorkspaceConfigurationException for service response error code + // "UnsupportedWorkspaceConfigurationException". + // + // The WorkSpace does not have the supported configuration for this operation. + // For more information, see the Amazon WorkSpaces Administration Guide (http://docs.aws.amazon.com/workspaces/latest/adminguide). + ErrCodeUnsupportedWorkspaceConfigurationException = "UnsupportedWorkspaceConfigurationException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/workspaces/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/workspaces/examples_test.go index 8b0df3e3e..73a0d7a69 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/workspaces/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/workspaces/examples_test.go @@ -16,11 +16,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleWorkSpaces_CreateTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -48,11 +44,7 @@ func ExampleWorkSpaces_CreateTags() { } func ExampleWorkSpaces_CreateWorkspaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -94,11 +86,7 @@ func ExampleWorkSpaces_CreateWorkspaces() { } func ExampleWorkSpaces_DeleteTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -123,11 +111,7 @@ func ExampleWorkSpaces_DeleteTags() { } func ExampleWorkSpaces_DescribeTags() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -148,11 +132,7 @@ func ExampleWorkSpaces_DescribeTags() { } func ExampleWorkSpaces_DescribeWorkspaceBundles() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -178,11 +158,7 @@ func ExampleWorkSpaces_DescribeWorkspaceBundles() { } func ExampleWorkSpaces_DescribeWorkspaceDirectories() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -207,11 +183,7 @@ func ExampleWorkSpaces_DescribeWorkspaceDirectories() { } func ExampleWorkSpaces_DescribeWorkspaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -240,11 +212,7 @@ func ExampleWorkSpaces_DescribeWorkspaces() { } func ExampleWorkSpaces_DescribeWorkspacesConnectionStatus() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -269,11 +237,7 @@ func ExampleWorkSpaces_DescribeWorkspacesConnectionStatus() { } func ExampleWorkSpaces_ModifyWorkspaceProperties() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -298,11 +262,7 @@ func ExampleWorkSpaces_ModifyWorkspaceProperties() { } func ExampleWorkSpaces_RebootWorkspaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -328,11 +288,7 @@ func ExampleWorkSpaces_RebootWorkspaces() { } func ExampleWorkSpaces_RebuildWorkspaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -358,11 +314,7 @@ func ExampleWorkSpaces_RebuildWorkspaces() { } func ExampleWorkSpaces_StartWorkspaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -388,11 +340,7 @@ func ExampleWorkSpaces_StartWorkspaces() { } func ExampleWorkSpaces_StopWorkspaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) @@ -418,11 +366,7 @@ func ExampleWorkSpaces_StopWorkspaces() { } func ExampleWorkSpaces_TerminateWorkspaces() { - sess, err := session.NewSession() - if err != nil { - fmt.Println("failed to create session,", err) - return - } + sess := session.Must(session.NewSession()) svc := workspaces.New(sess) diff --git a/vendor/github.com/aws/aws-sdk-go/service/workspaces/service.go b/vendor/github.com/aws/aws-sdk-go/service/workspaces/service.go index 53c2193ac..e7bd8fb00 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/workspaces/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/workspaces/service.go @@ -13,8 +13,9 @@ import ( // This reference provides detailed information about the Amazon WorkSpaces // operations. -//The service client's operations are safe to be used concurrently. +// The service client's operations are safe to be used concurrently. // It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08 type WorkSpaces struct { *client.Client } @@ -25,8 +26,11 @@ var initClient func(*client.Client) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "workspaces" +// Service information constants +const ( + ServiceName = "workspaces" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) // New creates a new instance of the WorkSpaces client with a session. // If additional configuration is needed for the client instance use the optional @@ -39,17 +43,18 @@ const ServiceName = "workspaces" // // Create a WorkSpaces client with additional configuration // svc := workspaces.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *WorkSpaces { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *WorkSpaces { +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *WorkSpaces { svc := &WorkSpaces{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, + SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, APIVersion: "2015-04-08", diff --git a/vendor/github.com/aws/aws-sdk-go/service/workspaces/workspacesiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/workspaces/workspacesiface/interface.go index 89fa9869c..3f1530e7c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/workspaces/workspacesiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/workspaces/workspacesiface/interface.go @@ -45,7 +45,7 @@ import ( // // mock response/functionality // } // -// TestMyFunc(t *testing.T) { +// func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockWorkSpacesClient{} // diff --git a/vendor/github.com/aws/aws-sdk-go/service/xray/api.go b/vendor/github.com/aws/aws-sdk-go/service/xray/api.go new file mode 100644 index 000000000..8e1b8d45a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/xray/api.go @@ -0,0 +1,2102 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package xray provides a client for AWS X-Ray. +package xray + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opBatchGetTraces = "BatchGetTraces" + +// BatchGetTracesRequest generates a "aws/request.Request" representing the +// client's request for the BatchGetTraces operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See BatchGetTraces for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the BatchGetTraces method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the BatchGetTracesRequest method. +// req, resp := client.BatchGetTracesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/BatchGetTraces +func (c *XRay) BatchGetTracesRequest(input *BatchGetTracesInput) (req *request.Request, output *BatchGetTracesOutput) { + op := &request.Operation{ + Name: opBatchGetTraces, + HTTPMethod: "POST", + HTTPPath: "/Traces", + } + + if input == nil { + input = &BatchGetTracesInput{} + } + + output = &BatchGetTracesOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchGetTraces API operation for AWS X-Ray. +// +// Retrieves a list of traces specified by ID. Each trace is a collection of +// segment documents that originates from a single request. Use GetTraceSummaries +// to get a list of trace IDs. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS X-Ray's +// API operation BatchGetTraces for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is missing required parameters or has invalid parameters. +// +// * ErrCodeThrottledException "ThrottledException" +// The request exceeds the maximum number of requests per second. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/BatchGetTraces +func (c *XRay) BatchGetTraces(input *BatchGetTracesInput) (*BatchGetTracesOutput, error) { + req, out := c.BatchGetTracesRequest(input) + err := req.Send() + return out, err +} + +const opGetServiceGraph = "GetServiceGraph" + +// GetServiceGraphRequest generates a "aws/request.Request" representing the +// client's request for the GetServiceGraph operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetServiceGraph for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetServiceGraph method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetServiceGraphRequest method. +// req, resp := client.GetServiceGraphRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetServiceGraph +func (c *XRay) GetServiceGraphRequest(input *GetServiceGraphInput) (req *request.Request, output *GetServiceGraphOutput) { + op := &request.Operation{ + Name: opGetServiceGraph, + HTTPMethod: "POST", + HTTPPath: "/ServiceGraph", + } + + if input == nil { + input = &GetServiceGraphInput{} + } + + output = &GetServiceGraphOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetServiceGraph API operation for AWS X-Ray. +// +// Retrieves a document that describes services that process incoming requests, +// and downstream services that they call as a result. Root services process +// incoming requests and make calls to downstream services. Root services are +// applications that use the AWS X-Ray SDK. Downstream services can be other +// applications, AWS resources, HTTP web APIs, or SQL databases. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS X-Ray's +// API operation GetServiceGraph for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is missing required parameters or has invalid parameters. +// +// * ErrCodeThrottledException "ThrottledException" +// The request exceeds the maximum number of requests per second. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetServiceGraph +func (c *XRay) GetServiceGraph(input *GetServiceGraphInput) (*GetServiceGraphOutput, error) { + req, out := c.GetServiceGraphRequest(input) + err := req.Send() + return out, err +} + +const opGetTraceGraph = "GetTraceGraph" + +// GetTraceGraphRequest generates a "aws/request.Request" representing the +// client's request for the GetTraceGraph operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetTraceGraph for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetTraceGraph method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetTraceGraphRequest method. +// req, resp := client.GetTraceGraphRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetTraceGraph +func (c *XRay) GetTraceGraphRequest(input *GetTraceGraphInput) (req *request.Request, output *GetTraceGraphOutput) { + op := &request.Operation{ + Name: opGetTraceGraph, + HTTPMethod: "POST", + HTTPPath: "/TraceGraph", + } + + if input == nil { + input = &GetTraceGraphInput{} + } + + output = &GetTraceGraphOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetTraceGraph API operation for AWS X-Ray. +// +// Retrieves a service graph for one or more specific trace IDs. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS X-Ray's +// API operation GetTraceGraph for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is missing required parameters or has invalid parameters. +// +// * ErrCodeThrottledException "ThrottledException" +// The request exceeds the maximum number of requests per second. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetTraceGraph +func (c *XRay) GetTraceGraph(input *GetTraceGraphInput) (*GetTraceGraphOutput, error) { + req, out := c.GetTraceGraphRequest(input) + err := req.Send() + return out, err +} + +const opGetTraceSummaries = "GetTraceSummaries" + +// GetTraceSummariesRequest generates a "aws/request.Request" representing the +// client's request for the GetTraceSummaries operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See GetTraceSummaries for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the GetTraceSummaries method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the GetTraceSummariesRequest method. +// req, resp := client.GetTraceSummariesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetTraceSummaries +func (c *XRay) GetTraceSummariesRequest(input *GetTraceSummariesInput) (req *request.Request, output *GetTraceSummariesOutput) { + op := &request.Operation{ + Name: opGetTraceSummaries, + HTTPMethod: "POST", + HTTPPath: "/TraceSummaries", + } + + if input == nil { + input = &GetTraceSummariesInput{} + } + + output = &GetTraceSummariesOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetTraceSummaries API operation for AWS X-Ray. +// +// Retrieves IDs and metadata for traces available for a specified time frame +// using an optional filter. To get the full traces, pass the trace IDs to BatchGetTraces. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS X-Ray's +// API operation GetTraceSummaries for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is missing required parameters or has invalid parameters. +// +// * ErrCodeThrottledException "ThrottledException" +// The request exceeds the maximum number of requests per second. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetTraceSummaries +func (c *XRay) GetTraceSummaries(input *GetTraceSummariesInput) (*GetTraceSummariesOutput, error) { + req, out := c.GetTraceSummariesRequest(input) + err := req.Send() + return out, err +} + +const opPutTelemetryRecords = "PutTelemetryRecords" + +// PutTelemetryRecordsRequest generates a "aws/request.Request" representing the +// client's request for the PutTelemetryRecords operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See PutTelemetryRecords for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the PutTelemetryRecords method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the PutTelemetryRecordsRequest method. +// req, resp := client.PutTelemetryRecordsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutTelemetryRecords +func (c *XRay) PutTelemetryRecordsRequest(input *PutTelemetryRecordsInput) (req *request.Request, output *PutTelemetryRecordsOutput) { + op := &request.Operation{ + Name: opPutTelemetryRecords, + HTTPMethod: "POST", + HTTPPath: "/TelemetryRecords", + } + + if input == nil { + input = &PutTelemetryRecordsInput{} + } + + output = &PutTelemetryRecordsOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutTelemetryRecords API operation for AWS X-Ray. +// +// Used by the AWS X-Ray daemon to upload telemetry. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS X-Ray's +// API operation PutTelemetryRecords for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is missing required parameters or has invalid parameters. +// +// * ErrCodeThrottledException "ThrottledException" +// The request exceeds the maximum number of requests per second. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutTelemetryRecords +func (c *XRay) PutTelemetryRecords(input *PutTelemetryRecordsInput) (*PutTelemetryRecordsOutput, error) { + req, out := c.PutTelemetryRecordsRequest(input) + err := req.Send() + return out, err +} + +const opPutTraceSegments = "PutTraceSegments" + +// PutTraceSegmentsRequest generates a "aws/request.Request" representing the +// client's request for the PutTraceSegments operation. The "output" return +// value can be used to capture response data after the request's "Send" method +// is called. +// +// See PutTraceSegments for usage and error information. +// +// Creating a request object using this method should be used when you want to inject +// custom logic into the request's lifecycle using a custom handler, or if you want to +// access properties on the request object before or after sending the request. If +// you just want the service response, call the PutTraceSegments method directly +// instead. +// +// Note: You must call the "Send" method on the returned request object in order +// to execute the request. +// +// // Example sending a request using the PutTraceSegmentsRequest method. +// req, resp := client.PutTraceSegmentsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutTraceSegments +func (c *XRay) PutTraceSegmentsRequest(input *PutTraceSegmentsInput) (req *request.Request, output *PutTraceSegmentsOutput) { + op := &request.Operation{ + Name: opPutTraceSegments, + HTTPMethod: "POST", + HTTPPath: "/TraceSegments", + } + + if input == nil { + input = &PutTraceSegmentsInput{} + } + + output = &PutTraceSegmentsOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutTraceSegments API operation for AWS X-Ray. +// +// Uploads segment documents to AWS X-Ray. The X-Ray SDK generates segment documents +// and sends them to the X-Ray daemon, which uploads them in batches. A segment +// document can be a completed segment, an in-progress segment, or an array +// of subsegments. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS X-Ray's +// API operation PutTraceSegments for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is missing required parameters or has invalid parameters. +// +// * ErrCodeThrottledException "ThrottledException" +// The request exceeds the maximum number of requests per second. +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutTraceSegments +func (c *XRay) PutTraceSegments(input *PutTraceSegmentsInput) (*PutTraceSegmentsOutput, error) { + req, out := c.PutTraceSegmentsRequest(input) + err := req.Send() + return out, err +} + +// An alias for an edge. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/Alias +type Alias struct { + _ struct{} `type:"structure"` + + // The canonical name of the alias. + Name *string `type:"string"` + + // A list of names for the alias, including the canonical name. + Names []*string `type:"list"` + + // The type of the alias. + Type *string `type:"string"` +} + +// String returns the string representation +func (s Alias) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Alias) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *Alias) SetName(v string) *Alias { + s.Name = &v + return s +} + +// SetNames sets the Names field's value. +func (s *Alias) SetNames(v []*string) *Alias { + s.Names = v + return s +} + +// SetType sets the Type field's value. +func (s *Alias) SetType(v string) *Alias { + s.Type = &v + return s +} + +// Value of a segment annotation. Has one of three value types: Number, Boolean +// or String. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/AnnotationValue +type AnnotationValue struct { + _ struct{} `type:"structure"` + + // Value for a Boolean annotation. + BooleanValue *bool `type:"boolean"` + + // Value for a Number annotation. + NumberValue *float64 `type:"double"` + + // Value for a String annotation. + StringValue *string `type:"string"` +} + +// String returns the string representation +func (s AnnotationValue) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AnnotationValue) GoString() string { + return s.String() +} + +// SetBooleanValue sets the BooleanValue field's value. +func (s *AnnotationValue) SetBooleanValue(v bool) *AnnotationValue { + s.BooleanValue = &v + return s +} + +// SetNumberValue sets the NumberValue field's value. +func (s *AnnotationValue) SetNumberValue(v float64) *AnnotationValue { + s.NumberValue = &v + return s +} + +// SetStringValue sets the StringValue field's value. +func (s *AnnotationValue) SetStringValue(v string) *AnnotationValue { + s.StringValue = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/BackendConnectionErrors +type BackendConnectionErrors struct { + _ struct{} `type:"structure"` + + ConnectionRefusedCount *int64 `type:"integer"` + + HTTPCode4XXCount *int64 `type:"integer"` + + HTTPCode5XXCount *int64 `type:"integer"` + + OtherCount *int64 `type:"integer"` + + TimeoutCount *int64 `type:"integer"` + + UnknownHostCount *int64 `type:"integer"` +} + +// String returns the string representation +func (s BackendConnectionErrors) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BackendConnectionErrors) GoString() string { + return s.String() +} + +// SetConnectionRefusedCount sets the ConnectionRefusedCount field's value. +func (s *BackendConnectionErrors) SetConnectionRefusedCount(v int64) *BackendConnectionErrors { + s.ConnectionRefusedCount = &v + return s +} + +// SetHTTPCode4XXCount sets the HTTPCode4XXCount field's value. +func (s *BackendConnectionErrors) SetHTTPCode4XXCount(v int64) *BackendConnectionErrors { + s.HTTPCode4XXCount = &v + return s +} + +// SetHTTPCode5XXCount sets the HTTPCode5XXCount field's value. +func (s *BackendConnectionErrors) SetHTTPCode5XXCount(v int64) *BackendConnectionErrors { + s.HTTPCode5XXCount = &v + return s +} + +// SetOtherCount sets the OtherCount field's value. +func (s *BackendConnectionErrors) SetOtherCount(v int64) *BackendConnectionErrors { + s.OtherCount = &v + return s +} + +// SetTimeoutCount sets the TimeoutCount field's value. +func (s *BackendConnectionErrors) SetTimeoutCount(v int64) *BackendConnectionErrors { + s.TimeoutCount = &v + return s +} + +// SetUnknownHostCount sets the UnknownHostCount field's value. +func (s *BackendConnectionErrors) SetUnknownHostCount(v int64) *BackendConnectionErrors { + s.UnknownHostCount = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/BatchGetTracesRequest +type BatchGetTracesInput struct { + _ struct{} `type:"structure"` + + // Pagination token. Not used. + NextToken *string `type:"string"` + + // Specify the trace IDs of requests for which to retrieve segments. + // + // TraceIds is a required field + TraceIds []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchGetTracesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchGetTracesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchGetTracesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetTracesInput"} + if s.TraceIds == nil { + invalidParams.Add(request.NewErrParamRequired("TraceIds")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNextToken sets the NextToken field's value. +func (s *BatchGetTracesInput) SetNextToken(v string) *BatchGetTracesInput { + s.NextToken = &v + return s +} + +// SetTraceIds sets the TraceIds field's value. +func (s *BatchGetTracesInput) SetTraceIds(v []*string) *BatchGetTracesInput { + s.TraceIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/BatchGetTracesResult +type BatchGetTracesOutput struct { + _ struct{} `type:"structure"` + + // Pagination token. Not used. + NextToken *string `type:"string"` + + // Full traces for the specified requests. + Traces []*Trace `type:"list"` + + // Trace IDs of requests that haven't been processed. + UnprocessedTraceIds []*string `type:"list"` +} + +// String returns the string representation +func (s BatchGetTracesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchGetTracesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *BatchGetTracesOutput) SetNextToken(v string) *BatchGetTracesOutput { + s.NextToken = &v + return s +} + +// SetTraces sets the Traces field's value. +func (s *BatchGetTracesOutput) SetTraces(v []*Trace) *BatchGetTracesOutput { + s.Traces = v + return s +} + +// SetUnprocessedTraceIds sets the UnprocessedTraceIds field's value. +func (s *BatchGetTracesOutput) SetUnprocessedTraceIds(v []*string) *BatchGetTracesOutput { + s.UnprocessedTraceIds = v + return s +} + +// Information about a connection between two services. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/Edge +type Edge struct { + _ struct{} `type:"structure"` + + // Aliases for the edge. + Aliases []*Alias `type:"list"` + + // The end time of the last segment on the edge. + EndTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // Identifier of the edge. Unique within a service map. + ReferenceId *int64 `type:"integer"` + + // Histogram describing the prominence of response times on the edge. + ResponseTimeHistogram []*HistogramEntry `type:"list"` + + // The start time of the first segment on the edge. + StartTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // Response statistics for segments on the edge. + SummaryStatistics *EdgeStatistics `type:"structure"` +} + +// String returns the string representation +func (s Edge) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Edge) GoString() string { + return s.String() +} + +// SetAliases sets the Aliases field's value. +func (s *Edge) SetAliases(v []*Alias) *Edge { + s.Aliases = v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *Edge) SetEndTime(v time.Time) *Edge { + s.EndTime = &v + return s +} + +// SetReferenceId sets the ReferenceId field's value. +func (s *Edge) SetReferenceId(v int64) *Edge { + s.ReferenceId = &v + return s +} + +// SetResponseTimeHistogram sets the ResponseTimeHistogram field's value. +func (s *Edge) SetResponseTimeHistogram(v []*HistogramEntry) *Edge { + s.ResponseTimeHistogram = v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *Edge) SetStartTime(v time.Time) *Edge { + s.StartTime = &v + return s +} + +// SetSummaryStatistics sets the SummaryStatistics field's value. +func (s *Edge) SetSummaryStatistics(v *EdgeStatistics) *Edge { + s.SummaryStatistics = v + return s +} + +// Response statistics for an edge. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/EdgeStatistics +type EdgeStatistics struct { + _ struct{} `type:"structure"` + + // Information about requests that failed with a 4xx Client Error status code. + ErrorStatistics *ErrorStatistics `type:"structure"` + + // Information about requests that failed with a 5xx Server Error status code. + FaultStatistics *FaultStatistics `type:"structure"` + + // The number of requests that completed with a 2xx Success status code. + OkCount *int64 `type:"long"` + + // The total number of completed requests. + TotalCount *int64 `type:"long"` + + // The aggregate response time of completed requests. + TotalResponseTime *float64 `type:"double"` +} + +// String returns the string representation +func (s EdgeStatistics) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EdgeStatistics) GoString() string { + return s.String() +} + +// SetErrorStatistics sets the ErrorStatistics field's value. +func (s *EdgeStatistics) SetErrorStatistics(v *ErrorStatistics) *EdgeStatistics { + s.ErrorStatistics = v + return s +} + +// SetFaultStatistics sets the FaultStatistics field's value. +func (s *EdgeStatistics) SetFaultStatistics(v *FaultStatistics) *EdgeStatistics { + s.FaultStatistics = v + return s +} + +// SetOkCount sets the OkCount field's value. +func (s *EdgeStatistics) SetOkCount(v int64) *EdgeStatistics { + s.OkCount = &v + return s +} + +// SetTotalCount sets the TotalCount field's value. +func (s *EdgeStatistics) SetTotalCount(v int64) *EdgeStatistics { + s.TotalCount = &v + return s +} + +// SetTotalResponseTime sets the TotalResponseTime field's value. +func (s *EdgeStatistics) SetTotalResponseTime(v float64) *EdgeStatistics { + s.TotalResponseTime = &v + return s +} + +// Information about requests that failed with a 4xx Client Error status code. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ErrorStatistics +type ErrorStatistics struct { + _ struct{} `type:"structure"` + + // The number of requests that failed with untracked 4xx Client Error status + // codes. + OtherCount *int64 `type:"long"` + + // The number of requests that failed with a 419 throttling status code. + ThrottleCount *int64 `type:"long"` + + // The total number of requests that failed with a 4xx Client Error status code. + TotalCount *int64 `type:"long"` +} + +// String returns the string representation +func (s ErrorStatistics) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ErrorStatistics) GoString() string { + return s.String() +} + +// SetOtherCount sets the OtherCount field's value. +func (s *ErrorStatistics) SetOtherCount(v int64) *ErrorStatistics { + s.OtherCount = &v + return s +} + +// SetThrottleCount sets the ThrottleCount field's value. +func (s *ErrorStatistics) SetThrottleCount(v int64) *ErrorStatistics { + s.ThrottleCount = &v + return s +} + +// SetTotalCount sets the TotalCount field's value. +func (s *ErrorStatistics) SetTotalCount(v int64) *ErrorStatistics { + s.TotalCount = &v + return s +} + +// Information about requests that failed with a 5xx Server Error status code. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/FaultStatistics +type FaultStatistics struct { + _ struct{} `type:"structure"` + + // The number of requests that failed with untracked 5xx Server Error status + // codes. + OtherCount *int64 `type:"long"` + + // The total number of requests that failed with a 5xx Server Error status code. + TotalCount *int64 `type:"long"` +} + +// String returns the string representation +func (s FaultStatistics) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FaultStatistics) GoString() string { + return s.String() +} + +// SetOtherCount sets the OtherCount field's value. +func (s *FaultStatistics) SetOtherCount(v int64) *FaultStatistics { + s.OtherCount = &v + return s +} + +// SetTotalCount sets the TotalCount field's value. +func (s *FaultStatistics) SetTotalCount(v int64) *FaultStatistics { + s.TotalCount = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetServiceGraphRequest +type GetServiceGraphInput struct { + _ struct{} `type:"structure"` + + // The end of the time frame for which to generate a graph. + // + // EndTime is a required field + EndTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` + + // Pagination token. Not used. + NextToken *string `type:"string"` + + // The start of the time frame for which to generate a graph. + // + // StartTime is a required field + StartTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` +} + +// String returns the string representation +func (s GetServiceGraphInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetServiceGraphInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetServiceGraphInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetServiceGraphInput"} + if s.EndTime == nil { + invalidParams.Add(request.NewErrParamRequired("EndTime")) + } + if s.StartTime == nil { + invalidParams.Add(request.NewErrParamRequired("StartTime")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndTime sets the EndTime field's value. +func (s *GetServiceGraphInput) SetEndTime(v time.Time) *GetServiceGraphInput { + s.EndTime = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetServiceGraphInput) SetNextToken(v string) *GetServiceGraphInput { + s.NextToken = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *GetServiceGraphInput) SetStartTime(v time.Time) *GetServiceGraphInput { + s.StartTime = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetServiceGraphResult +type GetServiceGraphOutput struct { + _ struct{} `type:"structure"` + + // The end of the time frame for which the graph was generated. + EndTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // Pagination token. Not used. + NextToken *string `type:"string"` + + // The services that have processed a traced request during the specified time + // frame. + Services []*Service `type:"list"` + + // The start of the time frame for which the graph was generated. + StartTime *time.Time `type:"timestamp" timestampFormat:"unix"` +} + +// String returns the string representation +func (s GetServiceGraphOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetServiceGraphOutput) GoString() string { + return s.String() +} + +// SetEndTime sets the EndTime field's value. +func (s *GetServiceGraphOutput) SetEndTime(v time.Time) *GetServiceGraphOutput { + s.EndTime = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetServiceGraphOutput) SetNextToken(v string) *GetServiceGraphOutput { + s.NextToken = &v + return s +} + +// SetServices sets the Services field's value. +func (s *GetServiceGraphOutput) SetServices(v []*Service) *GetServiceGraphOutput { + s.Services = v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *GetServiceGraphOutput) SetStartTime(v time.Time) *GetServiceGraphOutput { + s.StartTime = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetTraceGraphRequest +type GetTraceGraphInput struct { + _ struct{} `type:"structure"` + + // Pagination token. Not used. + NextToken *string `type:"string"` + + // Trace IDs of requests for which to generate a service graph. + // + // TraceIds is a required field + TraceIds []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s GetTraceGraphInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetTraceGraphInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetTraceGraphInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetTraceGraphInput"} + if s.TraceIds == nil { + invalidParams.Add(request.NewErrParamRequired("TraceIds")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNextToken sets the NextToken field's value. +func (s *GetTraceGraphInput) SetNextToken(v string) *GetTraceGraphInput { + s.NextToken = &v + return s +} + +// SetTraceIds sets the TraceIds field's value. +func (s *GetTraceGraphInput) SetTraceIds(v []*string) *GetTraceGraphInput { + s.TraceIds = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetTraceGraphResult +type GetTraceGraphOutput struct { + _ struct{} `type:"structure"` + + // Pagination token. Not used. + NextToken *string `type:"string"` + + // The services that have processed one of the specified requests. + Services []*Service `type:"list"` +} + +// String returns the string representation +func (s GetTraceGraphOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetTraceGraphOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *GetTraceGraphOutput) SetNextToken(v string) *GetTraceGraphOutput { + s.NextToken = &v + return s +} + +// SetServices sets the Services field's value. +func (s *GetTraceGraphOutput) SetServices(v []*Service) *GetTraceGraphOutput { + s.Services = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetTraceSummariesRequest +type GetTraceSummariesInput struct { + _ struct{} `type:"structure"` + + // The end of the time frame for which to retrieve traces. + // + // EndTime is a required field + EndTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` + + // Specify a filter expression to retrieve trace summaries for services or requests + // that meet certain requirements. + FilterExpression *string `type:"string"` + + // Specify the pagination token returned by a previous request to retrieve the + // next page of results. + NextToken *string `type:"string"` + + // Set to true to get summaries for only a subset of available traces. + Sampling *bool `type:"boolean"` + + // The start of the time frame for which to retrieve traces. + // + // StartTime is a required field + StartTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` +} + +// String returns the string representation +func (s GetTraceSummariesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetTraceSummariesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetTraceSummariesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetTraceSummariesInput"} + if s.EndTime == nil { + invalidParams.Add(request.NewErrParamRequired("EndTime")) + } + if s.StartTime == nil { + invalidParams.Add(request.NewErrParamRequired("StartTime")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndTime sets the EndTime field's value. +func (s *GetTraceSummariesInput) SetEndTime(v time.Time) *GetTraceSummariesInput { + s.EndTime = &v + return s +} + +// SetFilterExpression sets the FilterExpression field's value. +func (s *GetTraceSummariesInput) SetFilterExpression(v string) *GetTraceSummariesInput { + s.FilterExpression = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetTraceSummariesInput) SetNextToken(v string) *GetTraceSummariesInput { + s.NextToken = &v + return s +} + +// SetSampling sets the Sampling field's value. +func (s *GetTraceSummariesInput) SetSampling(v bool) *GetTraceSummariesInput { + s.Sampling = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *GetTraceSummariesInput) SetStartTime(v time.Time) *GetTraceSummariesInput { + s.StartTime = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetTraceSummariesResult +type GetTraceSummariesOutput struct { + _ struct{} `type:"structure"` + + // The start time of this page of results. + ApproximateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // If the requested time frame contained more than one page of results, you + // can use this token to retrieve the next page. The first page contains the + // most most recent results, closest to the end of the time frame. + NextToken *string `type:"string"` + + // Trace IDs and metadata for traces that were found in the specified time frame. + TraceSummaries []*TraceSummary `type:"list"` + + // The number of traces that were processed to get this set of summaries. + TracesProcessedCount *int64 `type:"long"` +} + +// String returns the string representation +func (s GetTraceSummariesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetTraceSummariesOutput) GoString() string { + return s.String() +} + +// SetApproximateTime sets the ApproximateTime field's value. +func (s *GetTraceSummariesOutput) SetApproximateTime(v time.Time) *GetTraceSummariesOutput { + s.ApproximateTime = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetTraceSummariesOutput) SetNextToken(v string) *GetTraceSummariesOutput { + s.NextToken = &v + return s +} + +// SetTraceSummaries sets the TraceSummaries field's value. +func (s *GetTraceSummariesOutput) SetTraceSummaries(v []*TraceSummary) *GetTraceSummariesOutput { + s.TraceSummaries = v + return s +} + +// SetTracesProcessedCount sets the TracesProcessedCount field's value. +func (s *GetTraceSummariesOutput) SetTracesProcessedCount(v int64) *GetTraceSummariesOutput { + s.TracesProcessedCount = &v + return s +} + +// An entry in a histogram for a statistic. A histogram maps the range of observed +// values on the X axis, and the prevalence of each value on the Y axis. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/HistogramEntry +type HistogramEntry struct { + _ struct{} `type:"structure"` + + // The prevalence of the entry. + Count *int64 `type:"integer"` + + // The value of the entry. + Value *float64 `type:"double"` +} + +// String returns the string representation +func (s HistogramEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HistogramEntry) GoString() string { + return s.String() +} + +// SetCount sets the Count field's value. +func (s *HistogramEntry) SetCount(v int64) *HistogramEntry { + s.Count = &v + return s +} + +// SetValue sets the Value field's value. +func (s *HistogramEntry) SetValue(v float64) *HistogramEntry { + s.Value = &v + return s +} + +// Information about an HTTP request. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/Http +type Http struct { + _ struct{} `type:"structure"` + + // The IP address of the requestor. + ClientIp *string `type:"string"` + + // The request method. + HttpMethod *string `type:"string"` + + // The response status. + HttpStatus *int64 `type:"integer"` + + // The request URL. + HttpURL *string `type:"string"` + + // The request's user agent string. + UserAgent *string `type:"string"` +} + +// String returns the string representation +func (s Http) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Http) GoString() string { + return s.String() +} + +// SetClientIp sets the ClientIp field's value. +func (s *Http) SetClientIp(v string) *Http { + s.ClientIp = &v + return s +} + +// SetHttpMethod sets the HttpMethod field's value. +func (s *Http) SetHttpMethod(v string) *Http { + s.HttpMethod = &v + return s +} + +// SetHttpStatus sets the HttpStatus field's value. +func (s *Http) SetHttpStatus(v int64) *Http { + s.HttpStatus = &v + return s +} + +// SetHttpURL sets the HttpURL field's value. +func (s *Http) SetHttpURL(v string) *Http { + s.HttpURL = &v + return s +} + +// SetUserAgent sets the UserAgent field's value. +func (s *Http) SetUserAgent(v string) *Http { + s.UserAgent = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutTelemetryRecordsRequest +type PutTelemetryRecordsInput struct { + _ struct{} `type:"structure"` + + EC2InstanceId *string `type:"string"` + + Hostname *string `type:"string"` + + ResourceARN *string `type:"string"` + + // TelemetryRecords is a required field + TelemetryRecords []*TelemetryRecord `type:"list" required:"true"` +} + +// String returns the string representation +func (s PutTelemetryRecordsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutTelemetryRecordsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutTelemetryRecordsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutTelemetryRecordsInput"} + if s.TelemetryRecords == nil { + invalidParams.Add(request.NewErrParamRequired("TelemetryRecords")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEC2InstanceId sets the EC2InstanceId field's value. +func (s *PutTelemetryRecordsInput) SetEC2InstanceId(v string) *PutTelemetryRecordsInput { + s.EC2InstanceId = &v + return s +} + +// SetHostname sets the Hostname field's value. +func (s *PutTelemetryRecordsInput) SetHostname(v string) *PutTelemetryRecordsInput { + s.Hostname = &v + return s +} + +// SetResourceARN sets the ResourceARN field's value. +func (s *PutTelemetryRecordsInput) SetResourceARN(v string) *PutTelemetryRecordsInput { + s.ResourceARN = &v + return s +} + +// SetTelemetryRecords sets the TelemetryRecords field's value. +func (s *PutTelemetryRecordsInput) SetTelemetryRecords(v []*TelemetryRecord) *PutTelemetryRecordsInput { + s.TelemetryRecords = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutTelemetryRecordsResult +type PutTelemetryRecordsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutTelemetryRecordsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutTelemetryRecordsOutput) GoString() string { + return s.String() +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutTraceSegmentsRequest +type PutTraceSegmentsInput struct { + _ struct{} `type:"structure"` + + // A JSON document defining one or more segments or subsegments. Segments must + // include the following fields. + // + // Required Segment Document Fields + // + // * name - The name of the service that handled the request. + // + // * id - A 64-bit identifier for the segment, unique among segments in the + // same trace, in 16 hexadecimal digits. + // + // * trace_id - A unique identifier that connects all segments and subsegments + // originating from a single client request. + // + // * start_time - Time the segment or subsegment was created, in floating + // point seconds in epoch time, accurate to milliseconds. For example, 1480615200.010 + // or 1.480615200010E9. + // + // * end_time - Time the segment or subsegment was closed. For example, 1480615200.090 + // or 1.480615200090E9. Specify either an end_time or in_progress. + // + // * in_progress - Set to true instead of specifying an end_time to record + // that a segment has been started, but is not complete. Send an in progress + // segment when your application receives a request that will take a long + // time to serve, to trace the fact that the request was received. When the + // response is sent, send the complete segment to overwrite the in-progress + // segment. + // + // A trace_id consists of three numbers separated by hyphens. For example, 1-58406520-a006649127e371903a2de979. + // This includes: + // + // Trace ID Format + // + // * The version number, i.e. 1. + // + // * The time of the original request, in Unix epoch time, in 8 hexadecimal + // digits. For example, 10:00AM December 2nd, 2016 PST in epoch time is 1480615200 + // seconds, or 58406520 in hexadecimal. + // + // * A 96-bit identifier for the trace, globally unique, in 24 hexadecimal + // digits. + // + // TraceSegmentDocuments is a required field + TraceSegmentDocuments []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s PutTraceSegmentsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutTraceSegmentsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutTraceSegmentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutTraceSegmentsInput"} + if s.TraceSegmentDocuments == nil { + invalidParams.Add(request.NewErrParamRequired("TraceSegmentDocuments")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTraceSegmentDocuments sets the TraceSegmentDocuments field's value. +func (s *PutTraceSegmentsInput) SetTraceSegmentDocuments(v []*string) *PutTraceSegmentsInput { + s.TraceSegmentDocuments = v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutTraceSegmentsResult +type PutTraceSegmentsOutput struct { + _ struct{} `type:"structure"` + + // Segments that failed processing. + UnprocessedTraceSegments []*UnprocessedTraceSegment `type:"list"` +} + +// String returns the string representation +func (s PutTraceSegmentsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutTraceSegmentsOutput) GoString() string { + return s.String() +} + +// SetUnprocessedTraceSegments sets the UnprocessedTraceSegments field's value. +func (s *PutTraceSegmentsOutput) SetUnprocessedTraceSegments(v []*UnprocessedTraceSegment) *PutTraceSegmentsOutput { + s.UnprocessedTraceSegments = v + return s +} + +// Information about a segment +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/Segment +type Segment struct { + _ struct{} `type:"structure"` + + // The segment document. + Document *string `min:"1" type:"string"` + + // The segment's ID. + Id *string `min:"16" type:"string"` +} + +// String returns the string representation +func (s Segment) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Segment) GoString() string { + return s.String() +} + +// SetDocument sets the Document field's value. +func (s *Segment) SetDocument(v string) *Segment { + s.Document = &v + return s +} + +// SetId sets the Id field's value. +func (s *Segment) SetId(v string) *Segment { + s.Id = &v + return s +} + +// Information about an application that processed requests, users that made +// requests, or downstream services, resources and applications that an application +// used. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/Service +type Service struct { + _ struct{} `type:"structure"` + + // Identifier of the AWS account in which the service runs. + AccountId *string `type:"string"` + + // Histogram mapping the spread of trace durations + DurationHistogram []*HistogramEntry `type:"list"` + + // Connections to downstream services. + Edges []*Edge `type:"list"` + + // The end time of the last segment that the service generated. + EndTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The canonical name of the service. + Name *string `type:"string"` + + // A list of names for the service, including the canonical name. + Names []*string `type:"list"` + + // Identifier for the service. Unique within the service map. + ReferenceId *int64 `type:"integer"` + + // Indicates that the service was the first service to process a request. + Root *bool `type:"boolean"` + + // The start time of the first segment that the service generated. + StartTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + // The service's state. + State *string `type:"string"` + + // Aggregated statistics for the service. + SummaryStatistics *ServiceStatistics `type:"structure"` + + // The type of service. + // + // * AWS Resource - The type of an AWS resource. For example, AWS::EC2::Instance + // for a application running on Amazon EC2 or AWS::DynamoDB::Table for an + // Amazon DynamoDB table that the application used. + // + // * AWS Service - The type of an AWS service. For example, AWS::DynamoDB + // for downstream calls to Amazon DynamoDB that didn't target a specific + // table. + // + // * client - Represents the clients that sent requests to a root service. + // + // * remote - A downstream service of indeterminate type. + Type *string `type:"string"` +} + +// String returns the string representation +func (s Service) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Service) GoString() string { + return s.String() +} + +// SetAccountId sets the AccountId field's value. +func (s *Service) SetAccountId(v string) *Service { + s.AccountId = &v + return s +} + +// SetDurationHistogram sets the DurationHistogram field's value. +func (s *Service) SetDurationHistogram(v []*HistogramEntry) *Service { + s.DurationHistogram = v + return s +} + +// SetEdges sets the Edges field's value. +func (s *Service) SetEdges(v []*Edge) *Service { + s.Edges = v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *Service) SetEndTime(v time.Time) *Service { + s.EndTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *Service) SetName(v string) *Service { + s.Name = &v + return s +} + +// SetNames sets the Names field's value. +func (s *Service) SetNames(v []*string) *Service { + s.Names = v + return s +} + +// SetReferenceId sets the ReferenceId field's value. +func (s *Service) SetReferenceId(v int64) *Service { + s.ReferenceId = &v + return s +} + +// SetRoot sets the Root field's value. +func (s *Service) SetRoot(v bool) *Service { + s.Root = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *Service) SetStartTime(v time.Time) *Service { + s.StartTime = &v + return s +} + +// SetState sets the State field's value. +func (s *Service) SetState(v string) *Service { + s.State = &v + return s +} + +// SetSummaryStatistics sets the SummaryStatistics field's value. +func (s *Service) SetSummaryStatistics(v *ServiceStatistics) *Service { + s.SummaryStatistics = v + return s +} + +// SetType sets the Type field's value. +func (s *Service) SetType(v string) *Service { + s.Type = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ServiceId +type ServiceId struct { + _ struct{} `type:"structure"` + + AccountId *string `type:"string"` + + Name *string `type:"string"` + + Names []*string `type:"list"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s ServiceId) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceId) GoString() string { + return s.String() +} + +// SetAccountId sets the AccountId field's value. +func (s *ServiceId) SetAccountId(v string) *ServiceId { + s.AccountId = &v + return s +} + +// SetName sets the Name field's value. +func (s *ServiceId) SetName(v string) *ServiceId { + s.Name = &v + return s +} + +// SetNames sets the Names field's value. +func (s *ServiceId) SetNames(v []*string) *ServiceId { + s.Names = v + return s +} + +// SetType sets the Type field's value. +func (s *ServiceId) SetType(v string) *ServiceId { + s.Type = &v + return s +} + +// Response statistics for a service. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ServiceStatistics +type ServiceStatistics struct { + _ struct{} `type:"structure"` + + // Information about requests that failed with a 4xx Client Error status code. + ErrorStatistics *ErrorStatistics `type:"structure"` + + // Information about requests that failed with a 5xx Server Error status code. + FaultStatistics *FaultStatistics `type:"structure"` + + // The number of requests that completed with a 2xx Success status code. + OkCount *int64 `type:"long"` + + // The total number of completed requests. + TotalCount *int64 `type:"long"` + + // The aggregate response time of completed requests. + TotalResponseTime *float64 `type:"double"` +} + +// String returns the string representation +func (s ServiceStatistics) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceStatistics) GoString() string { + return s.String() +} + +// SetErrorStatistics sets the ErrorStatistics field's value. +func (s *ServiceStatistics) SetErrorStatistics(v *ErrorStatistics) *ServiceStatistics { + s.ErrorStatistics = v + return s +} + +// SetFaultStatistics sets the FaultStatistics field's value. +func (s *ServiceStatistics) SetFaultStatistics(v *FaultStatistics) *ServiceStatistics { + s.FaultStatistics = v + return s +} + +// SetOkCount sets the OkCount field's value. +func (s *ServiceStatistics) SetOkCount(v int64) *ServiceStatistics { + s.OkCount = &v + return s +} + +// SetTotalCount sets the TotalCount field's value. +func (s *ServiceStatistics) SetTotalCount(v int64) *ServiceStatistics { + s.TotalCount = &v + return s +} + +// SetTotalResponseTime sets the TotalResponseTime field's value. +func (s *ServiceStatistics) SetTotalResponseTime(v float64) *ServiceStatistics { + s.TotalResponseTime = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/TelemetryRecord +type TelemetryRecord struct { + _ struct{} `type:"structure"` + + BackendConnectionErrors *BackendConnectionErrors `type:"structure"` + + SegmentsReceivedCount *int64 `type:"integer"` + + SegmentsRejectedCount *int64 `type:"integer"` + + SegmentsSentCount *int64 `type:"integer"` + + SegmentsSpilloverCount *int64 `type:"integer"` + + Timestamp *time.Time `type:"timestamp" timestampFormat:"unix"` +} + +// String returns the string representation +func (s TelemetryRecord) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TelemetryRecord) GoString() string { + return s.String() +} + +// SetBackendConnectionErrors sets the BackendConnectionErrors field's value. +func (s *TelemetryRecord) SetBackendConnectionErrors(v *BackendConnectionErrors) *TelemetryRecord { + s.BackendConnectionErrors = v + return s +} + +// SetSegmentsReceivedCount sets the SegmentsReceivedCount field's value. +func (s *TelemetryRecord) SetSegmentsReceivedCount(v int64) *TelemetryRecord { + s.SegmentsReceivedCount = &v + return s +} + +// SetSegmentsRejectedCount sets the SegmentsRejectedCount field's value. +func (s *TelemetryRecord) SetSegmentsRejectedCount(v int64) *TelemetryRecord { + s.SegmentsRejectedCount = &v + return s +} + +// SetSegmentsSentCount sets the SegmentsSentCount field's value. +func (s *TelemetryRecord) SetSegmentsSentCount(v int64) *TelemetryRecord { + s.SegmentsSentCount = &v + return s +} + +// SetSegmentsSpilloverCount sets the SegmentsSpilloverCount field's value. +func (s *TelemetryRecord) SetSegmentsSpilloverCount(v int64) *TelemetryRecord { + s.SegmentsSpilloverCount = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *TelemetryRecord) SetTimestamp(v time.Time) *TelemetryRecord { + s.Timestamp = &v + return s +} + +// A collection of segment documents with matching trace IDs. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/Trace +type Trace struct { + _ struct{} `type:"structure"` + + // The length of time in seconds between the start time of the root segment + // and the end time of the last segment that completed. + Duration *float64 `type:"double"` + + // The unique identifier for the request that generated the trace's segments + // and subsegments. + Id *string `min:"35" type:"string"` + + // Segment documents for the segments and subsegments that comprise the trace. + Segments []*Segment `type:"list"` +} + +// String returns the string representation +func (s Trace) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Trace) GoString() string { + return s.String() +} + +// SetDuration sets the Duration field's value. +func (s *Trace) SetDuration(v float64) *Trace { + s.Duration = &v + return s +} + +// SetId sets the Id field's value. +func (s *Trace) SetId(v string) *Trace { + s.Id = &v + return s +} + +// SetSegments sets the Segments field's value. +func (s *Trace) SetSegments(v []*Segment) *Trace { + s.Segments = v + return s +} + +// Metadata generated from the segment documents in a trace. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/TraceSummary +type TraceSummary struct { + _ struct{} `type:"structure"` + + // Annotations from the trace's segment documents. + Annotations map[string][]*ValueWithServiceIds `type:"map"` + + // The length of time in seconds between the start time of the root segment + // and the end time of the last segment that completed. + Duration *float64 `type:"double"` + + // One or more of the segment documents has a 400 series error. + HasError *bool `type:"boolean"` + + // One or more of the segment documents has a 500 series error. + HasFault *bool `type:"boolean"` + + // One or more of the segment documents has a 429 throttling error. + HasThrottle *bool `type:"boolean"` + + // Information about the HTTP request served by the trace. + Http *Http `type:"structure"` + + // The unique identifier for the request that generated the trace's segments + // and subsegments. + Id *string `min:"35" type:"string"` + + // One or more of the segment documents is in progress. + IsPartial *bool `type:"boolean"` + + // The length of time in seconds between the start and end times of the root + // segment. If the service performs work asynchronously, the response time measures + // the time before the response is sent to the user, while the duration measures + // the amount of time before the last traced activity completes. + ResponseTime *float64 `type:"double"` + + // Service IDs from the trace's segment documents. + ServiceIds []*ServiceId `type:"list"` + + // Users from the trace's segment documents. + Users []*TraceUser `type:"list"` +} + +// String returns the string representation +func (s TraceSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TraceSummary) GoString() string { + return s.String() +} + +// SetAnnotations sets the Annotations field's value. +func (s *TraceSummary) SetAnnotations(v map[string][]*ValueWithServiceIds) *TraceSummary { + s.Annotations = v + return s +} + +// SetDuration sets the Duration field's value. +func (s *TraceSummary) SetDuration(v float64) *TraceSummary { + s.Duration = &v + return s +} + +// SetHasError sets the HasError field's value. +func (s *TraceSummary) SetHasError(v bool) *TraceSummary { + s.HasError = &v + return s +} + +// SetHasFault sets the HasFault field's value. +func (s *TraceSummary) SetHasFault(v bool) *TraceSummary { + s.HasFault = &v + return s +} + +// SetHasThrottle sets the HasThrottle field's value. +func (s *TraceSummary) SetHasThrottle(v bool) *TraceSummary { + s.HasThrottle = &v + return s +} + +// SetHttp sets the Http field's value. +func (s *TraceSummary) SetHttp(v *Http) *TraceSummary { + s.Http = v + return s +} + +// SetId sets the Id field's value. +func (s *TraceSummary) SetId(v string) *TraceSummary { + s.Id = &v + return s +} + +// SetIsPartial sets the IsPartial field's value. +func (s *TraceSummary) SetIsPartial(v bool) *TraceSummary { + s.IsPartial = &v + return s +} + +// SetResponseTime sets the ResponseTime field's value. +func (s *TraceSummary) SetResponseTime(v float64) *TraceSummary { + s.ResponseTime = &v + return s +} + +// SetServiceIds sets the ServiceIds field's value. +func (s *TraceSummary) SetServiceIds(v []*ServiceId) *TraceSummary { + s.ServiceIds = v + return s +} + +// SetUsers sets the Users field's value. +func (s *TraceSummary) SetUsers(v []*TraceUser) *TraceSummary { + s.Users = v + return s +} + +// Information about a user recorded in segment documents. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/TraceUser +type TraceUser struct { + _ struct{} `type:"structure"` + + // Services that the user's request hit. + ServiceIds []*ServiceId `type:"list"` + + // The user's name. + UserName *string `type:"string"` +} + +// String returns the string representation +func (s TraceUser) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TraceUser) GoString() string { + return s.String() +} + +// SetServiceIds sets the ServiceIds field's value. +func (s *TraceUser) SetServiceIds(v []*ServiceId) *TraceUser { + s.ServiceIds = v + return s +} + +// SetUserName sets the UserName field's value. +func (s *TraceUser) SetUserName(v string) *TraceUser { + s.UserName = &v + return s +} + +// Information about a segment that failed processing. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UnprocessedTraceSegment +type UnprocessedTraceSegment struct { + _ struct{} `type:"structure"` + + // The error that caused processing to fail. + ErrorCode *string `type:"string"` + + // The segment's ID. + Id *string `type:"string"` + + // The error message. + Message *string `type:"string"` +} + +// String returns the string representation +func (s UnprocessedTraceSegment) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnprocessedTraceSegment) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *UnprocessedTraceSegment) SetErrorCode(v string) *UnprocessedTraceSegment { + s.ErrorCode = &v + return s +} + +// SetId sets the Id field's value. +func (s *UnprocessedTraceSegment) SetId(v string) *UnprocessedTraceSegment { + s.Id = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *UnprocessedTraceSegment) SetMessage(v string) *UnprocessedTraceSegment { + s.Message = &v + return s +} + +// Information about a segment annotation. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ValueWithServiceIds +type ValueWithServiceIds struct { + _ struct{} `type:"structure"` + + // Values of the annotation. + AnnotationValue *AnnotationValue `type:"structure"` + + // Services to which the annotation applies. + ServiceIds []*ServiceId `type:"list"` +} + +// String returns the string representation +func (s ValueWithServiceIds) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValueWithServiceIds) GoString() string { + return s.String() +} + +// SetAnnotationValue sets the AnnotationValue field's value. +func (s *ValueWithServiceIds) SetAnnotationValue(v *AnnotationValue) *ValueWithServiceIds { + s.AnnotationValue = v + return s +} + +// SetServiceIds sets the ServiceIds field's value. +func (s *ValueWithServiceIds) SetServiceIds(v []*ServiceId) *ValueWithServiceIds { + s.ServiceIds = v + return s +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/xray/errors.go b/vendor/github.com/aws/aws-sdk-go/service/xray/errors.go new file mode 100644 index 000000000..7feb23aa9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/xray/errors.go @@ -0,0 +1,18 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package xray + +const ( + + // ErrCodeInvalidRequestException for service response error code + // "InvalidRequestException". + // + // The request is missing required parameters or has invalid parameters. + ErrCodeInvalidRequestException = "InvalidRequestException" + + // ErrCodeThrottledException for service response error code + // "ThrottledException". + // + // The request exceeds the maximum number of requests per second. + ErrCodeThrottledException = "ThrottledException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/xray/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/xray/examples_test.go new file mode 100644 index 000000000..30003e654 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/xray/examples_test.go @@ -0,0 +1,179 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package xray_test + +import ( + "bytes" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/xray" +) + +var _ time.Duration +var _ bytes.Buffer + +func ExampleXRay_BatchGetTraces() { + sess := session.Must(session.NewSession()) + + svc := xray.New(sess) + + params := &xray.BatchGetTracesInput{ + TraceIds: []*string{ // Required + aws.String("TraceId"), // Required + // More values... + }, + NextToken: aws.String("String"), + } + resp, err := svc.BatchGetTraces(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleXRay_GetServiceGraph() { + sess := session.Must(session.NewSession()) + + svc := xray.New(sess) + + params := &xray.GetServiceGraphInput{ + EndTime: aws.Time(time.Now()), // Required + StartTime: aws.Time(time.Now()), // Required + NextToken: aws.String("String"), + } + resp, err := svc.GetServiceGraph(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleXRay_GetTraceGraph() { + sess := session.Must(session.NewSession()) + + svc := xray.New(sess) + + params := &xray.GetTraceGraphInput{ + TraceIds: []*string{ // Required + aws.String("TraceId"), // Required + // More values... + }, + NextToken: aws.String("String"), + } + resp, err := svc.GetTraceGraph(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleXRay_GetTraceSummaries() { + sess := session.Must(session.NewSession()) + + svc := xray.New(sess) + + params := &xray.GetTraceSummariesInput{ + EndTime: aws.Time(time.Now()), // Required + StartTime: aws.Time(time.Now()), // Required + FilterExpression: aws.String("FilterExpression"), + NextToken: aws.String("String"), + Sampling: aws.Bool(true), + } + resp, err := svc.GetTraceSummaries(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleXRay_PutTelemetryRecords() { + sess := session.Must(session.NewSession()) + + svc := xray.New(sess) + + params := &xray.PutTelemetryRecordsInput{ + TelemetryRecords: []*xray.TelemetryRecord{ // Required + { // Required + BackendConnectionErrors: &xray.BackendConnectionErrors{ + ConnectionRefusedCount: aws.Int64(1), + HTTPCode4XXCount: aws.Int64(1), + HTTPCode5XXCount: aws.Int64(1), + OtherCount: aws.Int64(1), + TimeoutCount: aws.Int64(1), + UnknownHostCount: aws.Int64(1), + }, + SegmentsReceivedCount: aws.Int64(1), + SegmentsRejectedCount: aws.Int64(1), + SegmentsSentCount: aws.Int64(1), + SegmentsSpilloverCount: aws.Int64(1), + Timestamp: aws.Time(time.Now()), + }, + // More values... + }, + EC2InstanceId: aws.String("String"), + Hostname: aws.String("String"), + ResourceARN: aws.String("String"), + } + resp, err := svc.PutTelemetryRecords(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} + +func ExampleXRay_PutTraceSegments() { + sess := session.Must(session.NewSession()) + + svc := xray.New(sess) + + params := &xray.PutTraceSegmentsInput{ + TraceSegmentDocuments: []*string{ // Required + aws.String("TraceSegmentDocument"), // Required + // More values... + }, + } + resp, err := svc.PutTraceSegments(params) + + if err != nil { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + return + } + + // Pretty-print the response data. + fmt.Println(resp) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/xray/service.go b/vendor/github.com/aws/aws-sdk-go/service/xray/service.go new file mode 100644 index 000000000..4ab8c8454 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/xray/service.go @@ -0,0 +1,92 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package xray + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +// AWS X-Ray provides APIs for managing debug traces and retrieving service +// maps and other data created by processing those traces. +// The service client's operations are safe to be used concurrently. +// It is not safe to mutate any of the client's properties though. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12 +type XRay struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "xray" // Service endpoint prefix API calls made to. + EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. +) + +// New creates a new instance of the XRay client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// // Create a XRay client from just a session. +// svc := xray.New(mySession) +// +// // Create a XRay client with additional configuration +// svc := xray.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *XRay { + c := p.ClientConfig(EndpointsID, cfgs...) + return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *XRay { + svc := &XRay{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2016-04-12", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a XRay operation and runs any +// custom request initialization. +func (c *XRay) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/xray/xrayiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/xray/xrayiface/interface.go new file mode 100644 index 000000000..dd22cbb6d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/xray/xrayiface/interface.go @@ -0,0 +1,87 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +// Package xrayiface provides an interface to enable mocking the AWS X-Ray service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package xrayiface + +import ( + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/xray" +) + +// XRayAPI provides an interface to enable mocking the +// xray.XRay service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS X-Ray. +// func myFunc(svc xrayiface.XRayAPI) bool { +// // Make svc.BatchGetTraces request +// } +// +// func main() { +// sess := session.New() +// svc := xray.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockXRayClient struct { +// xrayiface.XRayAPI +// } +// func (m *mockXRayClient) BatchGetTraces(input *xray.BatchGetTracesInput) (*xray.BatchGetTracesOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockXRayClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type XRayAPI interface { + BatchGetTracesRequest(*xray.BatchGetTracesInput) (*request.Request, *xray.BatchGetTracesOutput) + + BatchGetTraces(*xray.BatchGetTracesInput) (*xray.BatchGetTracesOutput, error) + + GetServiceGraphRequest(*xray.GetServiceGraphInput) (*request.Request, *xray.GetServiceGraphOutput) + + GetServiceGraph(*xray.GetServiceGraphInput) (*xray.GetServiceGraphOutput, error) + + GetTraceGraphRequest(*xray.GetTraceGraphInput) (*request.Request, *xray.GetTraceGraphOutput) + + GetTraceGraph(*xray.GetTraceGraphInput) (*xray.GetTraceGraphOutput, error) + + GetTraceSummariesRequest(*xray.GetTraceSummariesInput) (*request.Request, *xray.GetTraceSummariesOutput) + + GetTraceSummaries(*xray.GetTraceSummariesInput) (*xray.GetTraceSummariesOutput, error) + + PutTelemetryRecordsRequest(*xray.PutTelemetryRecordsInput) (*request.Request, *xray.PutTelemetryRecordsOutput) + + PutTelemetryRecords(*xray.PutTelemetryRecordsInput) (*xray.PutTelemetryRecordsOutput, error) + + PutTraceSegmentsRequest(*xray.PutTraceSegmentsInput) (*request.Request, *xray.PutTraceSegmentsOutput) + + PutTraceSegments(*xray.PutTraceSegmentsInput) (*xray.PutTraceSegmentsOutput, error) +} + +var _ XRayAPI = (*xray.XRay)(nil) diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-1 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-1 new file mode 100644 index 000000000..191028156 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-1 @@ -0,0 +1 @@ +foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-10 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-10 new file mode 100644 index 000000000..4d5f9756e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-10 @@ -0,0 +1 @@ +foo.bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-100 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-100 new file mode 100644 index 000000000..bc4f6a3f4 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-100 @@ -0,0 +1 @@ +ends_with(str, 'SStr') \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-101 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-101 new file mode 100644 index 000000000..81bf07a7a --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-101 @@ -0,0 +1 @@ +ends_with(str, 'foo') \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-102 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-102 new file mode 100644 index 000000000..3225de913 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-102 @@ -0,0 +1 @@ +floor(`1.2`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-103 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-103 new file mode 100644 index 000000000..8cac95958 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-103 @@ -0,0 +1 @@ +floor(decimals[0]) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-104 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-104 new file mode 100644 index 000000000..bd76f47e2 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-104 @@ -0,0 +1 @@ +floor(foo) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-105 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-105 new file mode 100644 index 000000000..c719add3d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-105 @@ -0,0 +1 @@ +length('abc') \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-106 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-106 new file mode 100644 index 000000000..ff12f04f1 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-106 @@ -0,0 +1 @@ +length('') \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-107 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-107 new file mode 100644 index 000000000..0eccba1d3 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-107 @@ -0,0 +1 @@ +length(@) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-108 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-108 new file mode 100644 index 000000000..ab14b0fa8 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-108 @@ -0,0 +1 @@ +length(strings[0]) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-109 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-109 new file mode 100644 index 000000000..f1514bb74 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-109 @@ -0,0 +1 @@ +length(str) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-110 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-110 new file mode 100644 index 000000000..09276059a --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-110 @@ -0,0 +1 @@ +length(array) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-112 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-112 new file mode 100644 index 000000000..ab14b0fa8 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-112 @@ -0,0 +1 @@ +length(strings[0]) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-115 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-115 new file mode 100644 index 000000000..bfb41ae98 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-115 @@ -0,0 +1 @@ +max(strings) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-118 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-118 new file mode 100644 index 000000000..915ec172a --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-118 @@ -0,0 +1 @@ +merge(`{}`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-119 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-119 new file mode 100644 index 000000000..5b74e9b59 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-119 @@ -0,0 +1 @@ +merge(`{}`, `{}`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-12 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-12 new file mode 100644 index 000000000..64c5e5885 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-12 @@ -0,0 +1 @@ +two \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-120 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-120 new file mode 100644 index 000000000..f34dcd8fa --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-120 @@ -0,0 +1 @@ +merge(`{"a": 1}`, `{"b": 2}`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-121 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-121 new file mode 100644 index 000000000..e335dc96f --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-121 @@ -0,0 +1 @@ +merge(`{"a": 1}`, `{"a": 2}`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-122 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-122 new file mode 100644 index 000000000..aac28fffe --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-122 @@ -0,0 +1 @@ +merge(`{"a": 1, "b": 2}`, `{"a": 2, "c": 3}`, `{"d": 4}`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-123 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-123 new file mode 100644 index 000000000..1c6fd6719 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-123 @@ -0,0 +1 @@ +min(numbers) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-126 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-126 new file mode 100644 index 000000000..93e68db77 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-126 @@ -0,0 +1 @@ +min(decimals) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-128 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-128 new file mode 100644 index 000000000..554601ea4 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-128 @@ -0,0 +1 @@ +type('abc') \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-129 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-129 new file mode 100644 index 000000000..1ab2d9834 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-129 @@ -0,0 +1 @@ +type(`1.0`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-13 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-13 new file mode 100644 index 000000000..1d19714ff --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-13 @@ -0,0 +1 @@ +three \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-130 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-130 new file mode 100644 index 000000000..3cee2f56f --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-130 @@ -0,0 +1 @@ +type(`2`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-131 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-131 new file mode 100644 index 000000000..4821f9aef --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-131 @@ -0,0 +1 @@ +type(`true`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-132 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-132 new file mode 100644 index 000000000..40b6913a6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-132 @@ -0,0 +1 @@ +type(`false`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-133 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-133 new file mode 100644 index 000000000..c711252be --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-133 @@ -0,0 +1 @@ +type(`null`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-134 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-134 new file mode 100644 index 000000000..ec5d07e95 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-134 @@ -0,0 +1 @@ +type(`[0]`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-135 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-135 new file mode 100644 index 000000000..2080401e1 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-135 @@ -0,0 +1 @@ +type(`{"a": "b"}`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-136 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-136 new file mode 100644 index 000000000..c5ee2ba5c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-136 @@ -0,0 +1 @@ +type(@) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-137 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-137 new file mode 100644 index 000000000..1814ca17b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-137 @@ -0,0 +1 @@ +keys(objects) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-138 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-138 new file mode 100644 index 000000000..e03cdb0d6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-138 @@ -0,0 +1 @@ +values(objects) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-139 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-139 new file mode 100644 index 000000000..7fea8d2ce --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-139 @@ -0,0 +1 @@ +keys(empty_hash) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-14 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-14 new file mode 100644 index 000000000..a17c92f59 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-14 @@ -0,0 +1 @@ +one.two \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-140 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-140 new file mode 100644 index 000000000..4f1d882a4 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-140 @@ -0,0 +1 @@ +join(', ', strings) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-141 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-141 new file mode 100644 index 000000000..4f1d882a4 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-141 @@ -0,0 +1 @@ +join(', ', strings) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-142 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-142 new file mode 100644 index 000000000..19ec1fe09 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-142 @@ -0,0 +1 @@ +join(',', `["a", "b"]`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-143 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-143 new file mode 100644 index 000000000..761c68a6b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-143 @@ -0,0 +1 @@ +join('|', strings) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-144 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-144 new file mode 100644 index 000000000..a0dd68eaa --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-144 @@ -0,0 +1 @@ +join('|', decimals[].to_string(@)) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-145 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-145 new file mode 100644 index 000000000..a4190b2ba --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-145 @@ -0,0 +1 @@ +join('|', empty_list) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-146 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-146 new file mode 100644 index 000000000..f5033c302 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-146 @@ -0,0 +1 @@ +reverse(numbers) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-147 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-147 new file mode 100644 index 000000000..822f054d5 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-147 @@ -0,0 +1 @@ +reverse(array) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-148 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-148 new file mode 100644 index 000000000..a584adcc0 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-148 @@ -0,0 +1 @@ +reverse(`[]`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-149 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-149 new file mode 100644 index 000000000..fb4cc5dc4 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-149 @@ -0,0 +1 @@ +reverse('') \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-15 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-15 new file mode 100644 index 000000000..693f95496 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-15 @@ -0,0 +1 @@ +foo."1" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-150 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-150 new file mode 100644 index 000000000..aa260fabc --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-150 @@ -0,0 +1 @@ +reverse('hello world') \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-151 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-151 new file mode 100644 index 000000000..d8c58826a --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-151 @@ -0,0 +1 @@ +starts_with(str, 'S') \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-152 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-152 new file mode 100644 index 000000000..32e16b7bb --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-152 @@ -0,0 +1 @@ +starts_with(str, 'St') \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-153 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-153 new file mode 100644 index 000000000..5f575ae7f --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-153 @@ -0,0 +1 @@ +starts_with(str, 'Str') \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-155 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-155 new file mode 100644 index 000000000..f31551c62 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-155 @@ -0,0 +1 @@ +sum(numbers) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-156 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-156 new file mode 100644 index 000000000..18b90446c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-156 @@ -0,0 +1 @@ +sum(decimals) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-157 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-157 new file mode 100644 index 000000000..def4d0bc1 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-157 @@ -0,0 +1 @@ +sum(array[].to_number(@)) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-158 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-158 new file mode 100644 index 000000000..48e4a7707 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-158 @@ -0,0 +1 @@ +sum(`[]`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-159 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-159 new file mode 100644 index 000000000..9fb939a0b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-159 @@ -0,0 +1 @@ +to_array('foo') \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-16 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-16 new file mode 100644 index 000000000..86155ed75 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-16 @@ -0,0 +1 @@ +foo."1"[0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-160 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-160 new file mode 100644 index 000000000..74ba7cc67 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-160 @@ -0,0 +1 @@ +to_array(`0`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-161 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-161 new file mode 100644 index 000000000..57f8b983f --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-161 @@ -0,0 +1 @@ +to_array(objects) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-162 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-162 new file mode 100644 index 000000000..d17c7345f --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-162 @@ -0,0 +1 @@ +to_array(`[1, 2, 3]`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-163 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-163 new file mode 100644 index 000000000..15f70f783 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-163 @@ -0,0 +1 @@ +to_array(false) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-164 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-164 new file mode 100644 index 000000000..9b227529b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-164 @@ -0,0 +1 @@ +to_string('foo') \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-165 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-165 new file mode 100644 index 000000000..489a42935 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-165 @@ -0,0 +1 @@ +to_string(`1.2`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-166 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-166 new file mode 100644 index 000000000..d17106a00 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-166 @@ -0,0 +1 @@ +to_string(`[0, 1]`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-167 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-167 new file mode 100644 index 000000000..4f4ae9e68 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-167 @@ -0,0 +1 @@ +to_number('1.0') \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-168 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-168 new file mode 100644 index 000000000..ce932e2e6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-168 @@ -0,0 +1 @@ +to_number('1.1') \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-169 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-169 new file mode 100644 index 000000000..e246fa4db --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-169 @@ -0,0 +1 @@ +to_number('4') \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-17 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-17 new file mode 100644 index 000000000..de0b4c39d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-17 @@ -0,0 +1 @@ +foo."-1" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-170 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-170 new file mode 100644 index 000000000..f8c264747 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-170 @@ -0,0 +1 @@ +to_number('notanumber') \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-171 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-171 new file mode 100644 index 000000000..7d423b1cd --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-171 @@ -0,0 +1 @@ +to_number(`false`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-172 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-172 new file mode 100644 index 000000000..503716b68 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-172 @@ -0,0 +1 @@ +to_number(`null`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-173 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-173 new file mode 100644 index 000000000..7f61dfa15 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-173 @@ -0,0 +1 @@ +to_number(`[0]`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-174 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-174 new file mode 100644 index 000000000..ee72a8c01 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-174 @@ -0,0 +1 @@ +to_number(`{"foo": 0}`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-175 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-175 new file mode 100644 index 000000000..8d8f1f759 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-175 @@ -0,0 +1 @@ +sort(numbers) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-178 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-178 new file mode 100644 index 000000000..8cb54ba47 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-178 @@ -0,0 +1 @@ +sort(empty_list) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-179 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-179 new file mode 100644 index 000000000..cf2c9b1db --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-179 @@ -0,0 +1 @@ +not_null(unknown_key, str) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-18 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-18 new file mode 100644 index 000000000..b516b2c48 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-18 @@ -0,0 +1 @@ +@ \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-180 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-180 new file mode 100644 index 000000000..e047d4866 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-180 @@ -0,0 +1 @@ +not_null(unknown_key, foo.bar, empty_list, str) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-181 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-181 new file mode 100644 index 000000000..c4cc87b9c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-181 @@ -0,0 +1 @@ +not_null(unknown_key, null_key, empty_list, str) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-182 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-182 new file mode 100644 index 000000000..2c7fa0a9c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-182 @@ -0,0 +1 @@ +not_null(all, expressions, are_null) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-183 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-183 new file mode 100644 index 000000000..eb096e61c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-183 @@ -0,0 +1 @@ +numbers[].to_string(@) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-184 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-184 new file mode 100644 index 000000000..4958abaec --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-184 @@ -0,0 +1 @@ +array[].to_number(@) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-185 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-185 new file mode 100644 index 000000000..102708472 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-185 @@ -0,0 +1 @@ +foo[].not_null(f, e, d, c, b, a) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-186 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-186 new file mode 100644 index 000000000..83cb91612 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-186 @@ -0,0 +1 @@ +sort_by(people, &age) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-187 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-187 new file mode 100644 index 000000000..a494d6c4b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-187 @@ -0,0 +1 @@ +sort_by(people, &to_number(age_str)) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-188 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-188 new file mode 100644 index 000000000..2294fc54d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-188 @@ -0,0 +1 @@ +sort_by(people, &age)[].name \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-189 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-189 new file mode 100644 index 000000000..bb8c2b46d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-189 @@ -0,0 +1 @@ +sort_by(people, &age)[].extra \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-19 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-19 new file mode 100644 index 000000000..e3ed49ac6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-19 @@ -0,0 +1 @@ +@.bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-190 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-190 new file mode 100644 index 000000000..3ab029034 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-190 @@ -0,0 +1 @@ +sort_by(`[]`, &age) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-191 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-191 new file mode 100644 index 000000000..97db56f7b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-191 @@ -0,0 +1 @@ +max_by(people, &age) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-192 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-192 new file mode 100644 index 000000000..a7e648de9 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-192 @@ -0,0 +1 @@ +max_by(people, &age_str) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-193 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-193 new file mode 100644 index 000000000..be4348d0c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-193 @@ -0,0 +1 @@ +max_by(people, &to_number(age_str)) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-194 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-194 new file mode 100644 index 000000000..a707283d4 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-194 @@ -0,0 +1 @@ +min_by(people, &age) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-195 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-195 new file mode 100644 index 000000000..2cd6618d8 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-195 @@ -0,0 +1 @@ +min_by(people, &age_str) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-196 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-196 new file mode 100644 index 000000000..833e68373 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-196 @@ -0,0 +1 @@ +min_by(people, &to_number(age_str)) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-198 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-198 new file mode 100644 index 000000000..706dbda89 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-198 @@ -0,0 +1 @@ +__L \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-199 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-199 new file mode 100644 index 000000000..ca593ca93 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-199 @@ -0,0 +1 @@ +"!\r" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-2 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-2 new file mode 100644 index 000000000..4d5f9756e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-2 @@ -0,0 +1 @@ +foo.bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-20 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-20 new file mode 100644 index 000000000..f300ab917 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-20 @@ -0,0 +1 @@ +@.foo[0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-200 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-200 new file mode 100644 index 000000000..9c9384354 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-200 @@ -0,0 +1 @@ +Y_1623 \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-201 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-201 new file mode 100644 index 000000000..c1b0730e0 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-201 @@ -0,0 +1 @@ +x \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-202 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-202 new file mode 100644 index 000000000..1552ec63a --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-202 @@ -0,0 +1 @@ +"\tF\uCebb" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-203 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-203 new file mode 100644 index 000000000..047041273 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-203 @@ -0,0 +1 @@ +" \t" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-204 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-204 new file mode 100644 index 000000000..efd782cc3 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-204 @@ -0,0 +1 @@ +" " \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-205 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-205 new file mode 100644 index 000000000..8494ac270 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-205 @@ -0,0 +1 @@ +v2 \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-206 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-206 new file mode 100644 index 000000000..c61f7f7eb --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-206 @@ -0,0 +1 @@ +"\t" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-207 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-207 new file mode 100644 index 000000000..f6055f189 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-207 @@ -0,0 +1 @@ +_X \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-208 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-208 new file mode 100644 index 000000000..4f58e0e7b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-208 @@ -0,0 +1 @@ +"\t4\ud9da\udd15" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-209 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-209 new file mode 100644 index 000000000..f536bfbf6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-209 @@ -0,0 +1 @@ +v24_W \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-21 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-21 new file mode 100644 index 000000000..ef47ff2c0 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-21 @@ -0,0 +1 @@ +"foo.bar" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-210 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-210 new file mode 100644 index 000000000..69759281c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-210 @@ -0,0 +1 @@ +"H" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-211 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-211 new file mode 100644 index 000000000..c3e8b5927 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-211 @@ -0,0 +1 @@ +"\f" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-212 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-212 new file mode 100644 index 000000000..24ecc222c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-212 @@ -0,0 +1 @@ +"E4" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-213 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-213 new file mode 100644 index 000000000..5693009d2 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-213 @@ -0,0 +1 @@ +"!" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-214 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-214 new file mode 100644 index 000000000..62dd220e7 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-214 @@ -0,0 +1 @@ +tM \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-215 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-215 new file mode 100644 index 000000000..3c1e81f55 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-215 @@ -0,0 +1 @@ +" [" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-216 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-216 new file mode 100644 index 000000000..493daa673 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-216 @@ -0,0 +1 @@ +"R!" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-217 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-217 new file mode 100644 index 000000000..116b50ab3 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-217 @@ -0,0 +1 @@ +_6W \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-218 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-218 new file mode 100644 index 000000000..0073fac45 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-218 @@ -0,0 +1 @@ +"\uaBA1\r" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-219 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-219 new file mode 100644 index 000000000..00d8fa37e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-219 @@ -0,0 +1 @@ +tL7 \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-22 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-22 new file mode 100644 index 000000000..661ebcfa3 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-22 @@ -0,0 +1 @@ +"foo bar" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-220 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-220 new file mode 100644 index 000000000..c14f16e02 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-220 @@ -0,0 +1 @@ +"<" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-257 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-257 new file mode 100644 index 000000000..8a2443e6e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-257 @@ -0,0 +1 @@ +hvu \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-258 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-258 new file mode 100644 index 000000000..c9ddacbb6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-258 @@ -0,0 +1 @@ +"; !" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-259 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-259 new file mode 100644 index 000000000..d0209c6df --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-259 @@ -0,0 +1 @@ +hU \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-26 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-26 new file mode 100644 index 000000000..82649bd24 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-26 @@ -0,0 +1 @@ +"/unix/path" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-260 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-260 new file mode 100644 index 000000000..c07242aa4 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-260 @@ -0,0 +1 @@ +"!I\n\/" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-261 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-261 new file mode 100644 index 000000000..7aae4effc --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-261 @@ -0,0 +1 @@ +"\uEEbF" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-262 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-262 new file mode 100644 index 000000000..c1574f35f --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-262 @@ -0,0 +1 @@ +"U)\t" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-263 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-263 new file mode 100644 index 000000000..5197e3a2b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-263 @@ -0,0 +1 @@ +fa0_9 \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-264 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-264 new file mode 100644 index 000000000..320558b00 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-264 @@ -0,0 +1 @@ +"/" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-265 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-265 new file mode 100644 index 000000000..4a2cb0865 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-265 @@ -0,0 +1 @@ +Gy \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-266 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-266 new file mode 100644 index 000000000..9524c8381 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-266 @@ -0,0 +1 @@ +"\b" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-267 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-267 new file mode 100644 index 000000000..066b8d98b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-267 @@ -0,0 +1 @@ +"<" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-268 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-268 new file mode 100644 index 000000000..c61f7f7eb --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-268 @@ -0,0 +1 @@ +"\t" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-269 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-269 new file mode 100644 index 000000000..a582f62d2 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-269 @@ -0,0 +1 @@ +"\t&\\\r" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-27 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-27 new file mode 100644 index 000000000..a1d50731c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-27 @@ -0,0 +1 @@ +"\"\"\"" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-270 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-270 new file mode 100644 index 000000000..e3c5eedeb --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-270 @@ -0,0 +1 @@ +"#" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-271 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-271 new file mode 100644 index 000000000..e75309a52 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-271 @@ -0,0 +1 @@ +B__ \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-272 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-272 new file mode 100644 index 000000000..027177272 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-272 @@ -0,0 +1 @@ +"\nS \n" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-273 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-273 new file mode 100644 index 000000000..99432276e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-273 @@ -0,0 +1 @@ +Bp \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-274 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-274 new file mode 100644 index 000000000..d4f8a788b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-274 @@ -0,0 +1 @@ +",\t;" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-275 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-275 new file mode 100644 index 000000000..56c384f75 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-275 @@ -0,0 +1 @@ +B_q \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-276 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-276 new file mode 100644 index 000000000..f093d2aa3 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-276 @@ -0,0 +1 @@ +"\/+\t\n\b!Z" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-277 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-277 new file mode 100644 index 000000000..11e1229d9 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-277 @@ -0,0 +1 @@ +"󇟇\\ueFAc" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-278 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-278 new file mode 100644 index 000000000..90dbfcfcd --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-278 @@ -0,0 +1 @@ +":\f" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-279 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-279 new file mode 100644 index 000000000..b06b83025 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-279 @@ -0,0 +1 @@ +"\/" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-28 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-28 new file mode 100644 index 000000000..5f55d73af --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-28 @@ -0,0 +1 @@ +"bar"."baz" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-280 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-280 new file mode 100644 index 000000000..0e4bf7c11 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-280 @@ -0,0 +1 @@ +_BW_6Hg_Gl \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-281 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-281 new file mode 100644 index 000000000..81bb45f80 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-281 @@ -0,0 +1 @@ +"􃰂" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-282 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-282 new file mode 100644 index 000000000..d0b4de146 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-282 @@ -0,0 +1 @@ +zs1DC \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-283 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-283 new file mode 100644 index 000000000..68797580c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-283 @@ -0,0 +1 @@ +__434 \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-284 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-284 new file mode 100644 index 000000000..e61be91c4 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-284 @@ -0,0 +1 @@ +"󵅁" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-285 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-285 new file mode 100644 index 000000000..026cb9cbb --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-285 @@ -0,0 +1 @@ +Z_5 \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-286 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-286 new file mode 100644 index 000000000..ca9587d06 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-286 @@ -0,0 +1 @@ +z_M_ \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-287 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-287 new file mode 100644 index 000000000..67f6d9c42 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-287 @@ -0,0 +1 @@ +YU_2 \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-288 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-288 new file mode 100644 index 000000000..927ab653a --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-288 @@ -0,0 +1 @@ +_0 \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-289 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-289 new file mode 100644 index 000000000..39307ab93 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-289 @@ -0,0 +1 @@ +"\b+" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-29 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-29 new file mode 100644 index 000000000..8b0c5b41b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-29 @@ -0,0 +1 @@ +foo[?name == 'a'] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-290 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-290 new file mode 100644 index 000000000..a3ec2ed7a --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-290 @@ -0,0 +1 @@ +"\"" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-291 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-291 new file mode 100644 index 000000000..26bf7e122 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-291 @@ -0,0 +1 @@ +D7 \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-292 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-292 new file mode 100644 index 000000000..d595c9f43 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-292 @@ -0,0 +1 @@ +_62L \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-293 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-293 new file mode 100644 index 000000000..f68696949 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-293 @@ -0,0 +1 @@ +"\tK\t" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-294 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-294 new file mode 100644 index 000000000..f3a9b7edb --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-294 @@ -0,0 +1 @@ +"\n\\\f" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-295 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-295 new file mode 100644 index 000000000..455f00ffc --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-295 @@ -0,0 +1 @@ +I_ \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-296 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-296 new file mode 100644 index 000000000..ccd5968f9 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-296 @@ -0,0 +1 @@ +W_a0_ \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-297 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-297 new file mode 100644 index 000000000..ee55c16fc --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-297 @@ -0,0 +1 @@ +BQ \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-298 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-298 new file mode 100644 index 000000000..0d1a169a6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-298 @@ -0,0 +1 @@ +"\tX$\uABBb" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-299 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-299 new file mode 100644 index 000000000..0573cfd73 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-299 @@ -0,0 +1 @@ +Z9 \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-3 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-3 new file mode 100644 index 000000000..f0fcbd8ea --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-3 @@ -0,0 +1 @@ +foo.bar.baz \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-30 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-30 new file mode 100644 index 000000000..4f8e6a17a --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-30 @@ -0,0 +1 @@ +*[?[0] == `0`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-300 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-300 new file mode 100644 index 000000000..a0db02beb --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-300 @@ -0,0 +1 @@ +"\b%\"򞄏" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-301 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-301 new file mode 100644 index 000000000..56032f7a2 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-301 @@ -0,0 +1 @@ +_F \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-302 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-302 new file mode 100644 index 000000000..4a8a3cff3 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-302 @@ -0,0 +1 @@ +"!," \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-303 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-303 new file mode 100644 index 000000000..7c1efac00 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-303 @@ -0,0 +1 @@ +"\"!" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-304 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-304 new file mode 100644 index 000000000..a0f489d53 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-304 @@ -0,0 +1 @@ +Hh \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-305 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-305 new file mode 100644 index 000000000..c64e8d5ac --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-305 @@ -0,0 +1 @@ +"&" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-306 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-306 new file mode 100644 index 000000000..0567e992f --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-306 @@ -0,0 +1 @@ +"9\r\\R" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-307 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-307 new file mode 100644 index 000000000..ce8245c5b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-307 @@ -0,0 +1 @@ +M_k \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-308 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-308 new file mode 100644 index 000000000..8f16a5ac0 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-308 @@ -0,0 +1 @@ +"!\b\n󑩒\"\"" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-309 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-309 new file mode 100644 index 000000000..504ff5ae3 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-309 @@ -0,0 +1 @@ +"6" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-31 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-31 new file mode 100644 index 000000000..07fb57234 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-31 @@ -0,0 +1 @@ +foo[?first == last] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-310 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-310 new file mode 100644 index 000000000..533dd8e54 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-310 @@ -0,0 +1 @@ +_7 \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-311 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-311 new file mode 100644 index 000000000..1e4a3a341 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-311 @@ -0,0 +1 @@ +"0" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-312 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-312 new file mode 100644 index 000000000..37961f6ca --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-312 @@ -0,0 +1 @@ +"\\8\\" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-313 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-313 new file mode 100644 index 000000000..23480cff1 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-313 @@ -0,0 +1 @@ +b7eo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-314 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-314 new file mode 100644 index 000000000..e609f81a3 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-314 @@ -0,0 +1 @@ +xIUo9 \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-315 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-315 new file mode 100644 index 000000000..d89a25f0b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-315 @@ -0,0 +1 @@ +"5" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-316 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-316 new file mode 100644 index 000000000..5adcf5e7d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-316 @@ -0,0 +1 @@ +"?" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-317 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-317 new file mode 100644 index 000000000..ace4a897d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-317 @@ -0,0 +1 @@ +sU \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-318 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-318 new file mode 100644 index 000000000..feffb7061 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-318 @@ -0,0 +1 @@ +"VH2&H\\\/" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-319 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-319 new file mode 100644 index 000000000..8223f1e51 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-319 @@ -0,0 +1 @@ +_C \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-32 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-32 new file mode 100644 index 000000000..7e85c4bdf --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-32 @@ -0,0 +1 @@ +foo[?first == last].first \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-320 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-320 new file mode 100644 index 000000000..c9cdc63b0 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-320 @@ -0,0 +1 @@ +_ \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-321 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-321 new file mode 100644 index 000000000..c82f7982e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-321 @@ -0,0 +1 @@ +"<\t" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-322 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-322 new file mode 100644 index 000000000..dae65c515 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-322 @@ -0,0 +1 @@ +"\uD834\uDD1E" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-323 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-323 new file mode 100644 index 000000000..b6b369543 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-323 @@ -0,0 +1 @@ +foo.bar[0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-324 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-324 new file mode 100644 index 000000000..bf06e678c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-324 @@ -0,0 +1 @@ +foo.bar[1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-325 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-325 new file mode 100644 index 000000000..5d48e0205 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-325 @@ -0,0 +1 @@ +foo.bar[2] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-326 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-326 new file mode 100644 index 000000000..de3af7230 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-326 @@ -0,0 +1 @@ +foo.bar[3] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-327 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-327 new file mode 100644 index 000000000..a1c333508 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-327 @@ -0,0 +1 @@ +foo.bar[-1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-328 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-328 new file mode 100644 index 000000000..ad0fef91c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-328 @@ -0,0 +1 @@ +foo.bar[-2] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-329 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-329 new file mode 100644 index 000000000..3e83c6f73 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-329 @@ -0,0 +1 @@ +foo.bar[-3] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-33 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-33 new file mode 100644 index 000000000..72fc0a53e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-33 @@ -0,0 +1 @@ +foo[?age > `25`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-330 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-330 new file mode 100644 index 000000000..433a737d6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-330 @@ -0,0 +1 @@ +foo.bar[-4] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-331 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-331 new file mode 100644 index 000000000..4d5f9756e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-331 @@ -0,0 +1 @@ +foo.bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-332 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-332 new file mode 100644 index 000000000..5e0d9b717 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-332 @@ -0,0 +1 @@ +foo[0].bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-333 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-333 new file mode 100644 index 000000000..3cd7e9460 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-333 @@ -0,0 +1 @@ +foo[1].bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-334 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-334 new file mode 100644 index 000000000..74cb17655 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-334 @@ -0,0 +1 @@ +foo[2].bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-335 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-335 new file mode 100644 index 000000000..3cf2007f7 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-335 @@ -0,0 +1 @@ +foo[3].notbar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-336 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-336 new file mode 100644 index 000000000..9674d8803 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-336 @@ -0,0 +1 @@ +foo[3].bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-337 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-337 new file mode 100644 index 000000000..9b0b2f818 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-337 @@ -0,0 +1 @@ +foo[0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-338 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-338 new file mode 100644 index 000000000..83c639a18 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-338 @@ -0,0 +1 @@ +foo[1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-339 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-339 new file mode 100644 index 000000000..3b76c9f64 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-339 @@ -0,0 +1 @@ +foo[2] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-34 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-34 new file mode 100644 index 000000000..9a2b0184e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-34 @@ -0,0 +1 @@ +foo[?age >= `25`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-340 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-340 new file mode 100644 index 000000000..ff99e045d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-340 @@ -0,0 +1 @@ +foo[3] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-341 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-341 new file mode 100644 index 000000000..040ecb240 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-341 @@ -0,0 +1 @@ +foo[4] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-342 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-342 new file mode 100644 index 000000000..6e7ea636e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-342 @@ -0,0 +1 @@ +[0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-343 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-343 new file mode 100644 index 000000000..bace2a0be --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-343 @@ -0,0 +1 @@ +[1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-344 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-344 new file mode 100644 index 000000000..5d50c80c0 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-344 @@ -0,0 +1 @@ +[2] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-345 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-345 new file mode 100644 index 000000000..99d21a2a0 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-345 @@ -0,0 +1 @@ +[-1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-346 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-346 new file mode 100644 index 000000000..133a9c627 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-346 @@ -0,0 +1 @@ +[-2] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-347 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-347 new file mode 100644 index 000000000..b7f78c5dc --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-347 @@ -0,0 +1 @@ +[-3] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-348 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-348 new file mode 100644 index 000000000..bd9de815f --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-348 @@ -0,0 +1 @@ +reservations[].instances[].foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-349 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-349 new file mode 100644 index 000000000..55e625735 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-349 @@ -0,0 +1 @@ +reservations[].instances[].bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-35 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-35 new file mode 100644 index 000000000..fa83f1da3 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-35 @@ -0,0 +1 @@ +foo[?age > `30`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-350 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-350 new file mode 100644 index 000000000..1661747c0 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-350 @@ -0,0 +1 @@ +reservations[].notinstances[].foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-351 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-351 new file mode 100644 index 000000000..1661747c0 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-351 @@ -0,0 +1 @@ +reservations[].notinstances[].foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-352 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-352 new file mode 100644 index 000000000..3debc70f8 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-352 @@ -0,0 +1 @@ +reservations[].instances[].foo[].bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-353 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-353 new file mode 100644 index 000000000..75af2fda0 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-353 @@ -0,0 +1 @@ +reservations[].instances[].foo[].baz \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-354 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-354 new file mode 100644 index 000000000..4a70cd8a0 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-354 @@ -0,0 +1 @@ +reservations[].instances[].notfoo[].bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-355 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-355 new file mode 100644 index 000000000..987985b00 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-355 @@ -0,0 +1 @@ +reservations[].instances[].notfoo[].notbar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-356 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-356 new file mode 100644 index 000000000..1661747c0 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-356 @@ -0,0 +1 @@ +reservations[].notinstances[].foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-357 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-357 new file mode 100644 index 000000000..634f937e5 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-357 @@ -0,0 +1 @@ +reservations[].instances[].foo[].notbar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-358 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-358 new file mode 100644 index 000000000..09cb7b8bb --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-358 @@ -0,0 +1 @@ +reservations[].instances[].bar[].baz \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-359 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-359 new file mode 100644 index 000000000..f5d9ac5b7 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-359 @@ -0,0 +1 @@ +reservations[].instances[].baz[].baz \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-36 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-36 new file mode 100644 index 000000000..463a2a542 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-36 @@ -0,0 +1 @@ +foo[?age < `25`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-360 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-360 new file mode 100644 index 000000000..d1016d6e7 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-360 @@ -0,0 +1 @@ +reservations[].instances[].qux[].baz \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-361 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-361 new file mode 100644 index 000000000..ef54cf52d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-361 @@ -0,0 +1 @@ +reservations[].instances[].qux[].baz[] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-362 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-362 new file mode 100644 index 000000000..bea506ff2 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-362 @@ -0,0 +1 @@ +foo[] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-363 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-363 new file mode 100644 index 000000000..20dd081e0 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-363 @@ -0,0 +1 @@ +foo[][0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-364 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-364 new file mode 100644 index 000000000..4803734b0 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-364 @@ -0,0 +1 @@ +foo[][1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-365 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-365 new file mode 100644 index 000000000..1be565985 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-365 @@ -0,0 +1 @@ +foo[][0][0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-366 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-366 new file mode 100644 index 000000000..d2cf6da59 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-366 @@ -0,0 +1 @@ +foo[][2][2] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-367 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-367 new file mode 100644 index 000000000..c609ca64b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-367 @@ -0,0 +1 @@ +foo[][0][0][100] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-368 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-368 new file mode 100644 index 000000000..191028156 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-368 @@ -0,0 +1 @@ +foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-369 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-369 new file mode 100644 index 000000000..bea506ff2 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-369 @@ -0,0 +1 @@ +foo[] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-37 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-37 new file mode 100644 index 000000000..10ed5d3f6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-37 @@ -0,0 +1 @@ +foo[?age <= `25`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-370 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-370 new file mode 100644 index 000000000..13f2c4a0b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-370 @@ -0,0 +1 @@ +foo[].bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-371 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-371 new file mode 100644 index 000000000..edf3d9277 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-371 @@ -0,0 +1 @@ +foo[].bar[] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-372 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-372 new file mode 100644 index 000000000..2a3b993af --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-372 @@ -0,0 +1 @@ +foo[].bar[].baz \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-373 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-373 new file mode 100644 index 000000000..d5ca878a1 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-373 @@ -0,0 +1 @@ +string[] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-374 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-374 new file mode 100644 index 000000000..fcd255f5d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-374 @@ -0,0 +1 @@ +hash[] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-375 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-375 new file mode 100644 index 000000000..2d53bd7cd --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-375 @@ -0,0 +1 @@ +number[] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-376 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-376 new file mode 100644 index 000000000..cb10d2497 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-376 @@ -0,0 +1 @@ +nullvalue[] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-377 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-377 new file mode 100644 index 000000000..f6c79ca84 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-377 @@ -0,0 +1 @@ +string[].foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-378 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-378 new file mode 100644 index 000000000..09bf36e8a --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-378 @@ -0,0 +1 @@ +hash[].foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-379 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-379 new file mode 100644 index 000000000..4c3578189 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-379 @@ -0,0 +1 @@ +number[].foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-38 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-38 new file mode 100644 index 000000000..16a4c36ac --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-38 @@ -0,0 +1 @@ +foo[?age < `20`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-380 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-380 new file mode 100644 index 000000000..2dd8ae218 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-380 @@ -0,0 +1 @@ +nullvalue[].foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-381 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-381 new file mode 100644 index 000000000..dfed81603 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-381 @@ -0,0 +1 @@ +nullvalue[].foo[].bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-382 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-382 new file mode 100644 index 000000000..d7628e646 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-382 @@ -0,0 +1 @@ +`"foo"` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-383 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-383 new file mode 100644 index 000000000..49c5269b1 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-383 @@ -0,0 +1 @@ +`"\u03a6"` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-384 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-384 new file mode 100644 index 000000000..d5db721d0 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-384 @@ -0,0 +1 @@ +`"✓"` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-385 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-385 new file mode 100644 index 000000000..a2b6e4ec8 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-385 @@ -0,0 +1 @@ +`[1, 2, 3]` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-386 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-386 new file mode 100644 index 000000000..f5801bdd6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-386 @@ -0,0 +1 @@ +`{"a": "b"}` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-387 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-387 new file mode 100644 index 000000000..f87db59a8 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-387 @@ -0,0 +1 @@ +`true` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-388 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-388 new file mode 100644 index 000000000..3b20d905f --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-388 @@ -0,0 +1 @@ +`false` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-389 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-389 new file mode 100644 index 000000000..70bcd29a7 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-389 @@ -0,0 +1 @@ +`null` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-39 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-39 new file mode 100644 index 000000000..351054d3e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-39 @@ -0,0 +1 @@ +foo[?age == `20`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-390 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-390 new file mode 100644 index 000000000..0918d4155 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-390 @@ -0,0 +1 @@ +`0` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-391 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-391 new file mode 100644 index 000000000..ef70c4c11 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-391 @@ -0,0 +1 @@ +`1` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-392 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-392 new file mode 100644 index 000000000..b39a922f4 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-392 @@ -0,0 +1 @@ +`2` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-393 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-393 new file mode 100644 index 000000000..7e65687db --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-393 @@ -0,0 +1 @@ +`3` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-394 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-394 new file mode 100644 index 000000000..770d1ece7 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-394 @@ -0,0 +1 @@ +`4` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-395 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-395 new file mode 100644 index 000000000..a8b81985c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-395 @@ -0,0 +1 @@ +`5` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-396 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-396 new file mode 100644 index 000000000..7f0861065 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-396 @@ -0,0 +1 @@ +`6` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-397 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-397 new file mode 100644 index 000000000..495114d91 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-397 @@ -0,0 +1 @@ +`7` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-398 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-398 new file mode 100644 index 000000000..94f355c46 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-398 @@ -0,0 +1 @@ +`8` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-399 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-399 new file mode 100644 index 000000000..600d2aa3f --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-399 @@ -0,0 +1 @@ +`9` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-4 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-4 new file mode 100644 index 000000000..314852235 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-4 @@ -0,0 +1 @@ +foo.bar.baz.bad \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-40 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-40 new file mode 100644 index 000000000..99d9258a6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-40 @@ -0,0 +1 @@ +foo[?age != `20`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-400 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-400 new file mode 100644 index 000000000..637015b5f --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-400 @@ -0,0 +1 @@ +`"foo\`bar"` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-401 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-401 new file mode 100644 index 000000000..6fa7557b8 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-401 @@ -0,0 +1 @@ +`"foo\"bar"` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-402 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-402 new file mode 100644 index 000000000..5aabeec34 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-402 @@ -0,0 +1 @@ +`"1\`"` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-403 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-403 new file mode 100644 index 000000000..8302ea198 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-403 @@ -0,0 +1 @@ +`"\\"`.{a:`"b"`} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-404 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-404 new file mode 100644 index 000000000..d88d014a9 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-404 @@ -0,0 +1 @@ +`{"a": "b"}`.a \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-405 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-405 new file mode 100644 index 000000000..47152dddb --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-405 @@ -0,0 +1 @@ +`{"a": {"b": "c"}}`.a.b \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-406 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-406 new file mode 100644 index 000000000..895d42938 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-406 @@ -0,0 +1 @@ +`[0, 1, 2]`[1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-407 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-407 new file mode 100644 index 000000000..42500a368 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-407 @@ -0,0 +1 @@ +` {"foo": true}` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-408 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-408 new file mode 100644 index 000000000..08b944dad --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-408 @@ -0,0 +1 @@ +`{"foo": true} ` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-409 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-409 new file mode 100644 index 000000000..6de163f80 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-409 @@ -0,0 +1 @@ +'foo' \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-41 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-41 new file mode 100644 index 000000000..5bc357d9f --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-41 @@ -0,0 +1 @@ +foo[?top.name == 'a'] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-410 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-410 new file mode 100644 index 000000000..b84bbdb29 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-410 @@ -0,0 +1 @@ +' foo ' \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-411 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-411 new file mode 100644 index 000000000..bf6a07ace --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-411 @@ -0,0 +1 @@ +'0' \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-412 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-412 new file mode 100644 index 000000000..c742f5b0c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-412 @@ -0,0 +1,2 @@ +'newline +' \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-413 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-413 new file mode 100644 index 000000000..04e9b3ade --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-413 @@ -0,0 +1,2 @@ +' +' \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-414 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-414 new file mode 100644 index 000000000..ebdaf120d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-414 @@ -0,0 +1 @@ +'✓' \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-415 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-415 new file mode 100644 index 000000000..d0ba5d7fa --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-415 @@ -0,0 +1 @@ +'𝄞' \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-416 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-416 new file mode 100644 index 000000000..19c2e2ef4 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-416 @@ -0,0 +1 @@ +' [foo] ' \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-417 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-417 new file mode 100644 index 000000000..5faa483b1 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-417 @@ -0,0 +1 @@ +'[foo]' \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-418 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-418 new file mode 100644 index 000000000..e3c05c163 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-418 @@ -0,0 +1 @@ +'\u03a6' \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-419 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-419 new file mode 100644 index 000000000..7c13861ac --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-419 @@ -0,0 +1 @@ +foo.{bar: bar} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-42 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-42 new file mode 100644 index 000000000..d037a0a4d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-42 @@ -0,0 +1 @@ +foo[?top.first == top.last] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-420 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-420 new file mode 100644 index 000000000..f795c2552 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-420 @@ -0,0 +1 @@ +foo.{"bar": bar} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-421 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-421 new file mode 100644 index 000000000..772c45639 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-421 @@ -0,0 +1 @@ +foo.{"foo.bar": bar} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-422 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-422 new file mode 100644 index 000000000..8808e92bf --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-422 @@ -0,0 +1 @@ +foo.{bar: bar, baz: baz} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-423 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-423 new file mode 100644 index 000000000..3f13757a1 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-423 @@ -0,0 +1 @@ +foo.{"bar": bar, "baz": baz} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-424 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-424 new file mode 100644 index 000000000..23cd8903e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-424 @@ -0,0 +1 @@ +{"baz": baz, "qux\"": "qux\""} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-425 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-425 new file mode 100644 index 000000000..fabb6da4f --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-425 @@ -0,0 +1 @@ +foo.{bar:bar,baz:baz} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-426 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-426 new file mode 100644 index 000000000..4c3f615b1 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-426 @@ -0,0 +1 @@ +foo.{bar: bar,qux: qux} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-427 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-427 new file mode 100644 index 000000000..8bc46535a --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-427 @@ -0,0 +1 @@ +foo.{bar: bar, noexist: noexist} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-428 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-428 new file mode 100644 index 000000000..2024b6f11 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-428 @@ -0,0 +1 @@ +foo.{noexist: noexist, alsonoexist: alsonoexist} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-429 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-429 new file mode 100644 index 000000000..b52191d10 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-429 @@ -0,0 +1 @@ +foo.badkey.{nokey: nokey, alsonokey: alsonokey} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-43 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-43 new file mode 100644 index 000000000..8534a5cae --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-43 @@ -0,0 +1 @@ +foo[?top == `{"first": "foo", "last": "bar"}`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-430 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-430 new file mode 100644 index 000000000..5cd310b6d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-430 @@ -0,0 +1 @@ +foo.nested.*.{a: a,b: b} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-431 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-431 new file mode 100644 index 000000000..0b24ef535 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-431 @@ -0,0 +1 @@ +foo.nested.three.{a: a, cinner: c.inner} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-432 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-432 new file mode 100644 index 000000000..473c1c351 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-432 @@ -0,0 +1 @@ +foo.nested.three.{a: a, c: c.inner.bad.key} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-433 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-433 new file mode 100644 index 000000000..44ba735ab --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-433 @@ -0,0 +1 @@ +foo.{a: nested.one.a, b: nested.two.b} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-434 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-434 new file mode 100644 index 000000000..f5f89b12b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-434 @@ -0,0 +1 @@ +{bar: bar, baz: baz} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-435 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-435 new file mode 100644 index 000000000..697764cb3 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-435 @@ -0,0 +1 @@ +{bar: bar} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-436 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-436 new file mode 100644 index 000000000..20447fb10 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-436 @@ -0,0 +1 @@ +{otherkey: bar} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-437 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-437 new file mode 100644 index 000000000..310b9b1dd --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-437 @@ -0,0 +1 @@ +{no: no, exist: exist} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-438 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-438 new file mode 100644 index 000000000..c79b2e240 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-438 @@ -0,0 +1 @@ +foo.[bar] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-439 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-439 new file mode 100644 index 000000000..ab498ef65 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-439 @@ -0,0 +1 @@ +foo.[bar,baz] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-44 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-44 new file mode 100644 index 000000000..71307c409 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-44 @@ -0,0 +1 @@ +foo[?key == `true`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-440 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-440 new file mode 100644 index 000000000..4b8f39a46 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-440 @@ -0,0 +1 @@ +foo.[bar,qux] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-441 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-441 new file mode 100644 index 000000000..b8f9020f8 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-441 @@ -0,0 +1 @@ +foo.[bar,noexist] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-442 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-442 new file mode 100644 index 000000000..b7c7b3f65 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-442 @@ -0,0 +1 @@ +foo.[noexist,alsonoexist] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-443 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-443 new file mode 100644 index 000000000..fabb6da4f --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-443 @@ -0,0 +1 @@ +foo.{bar:bar,baz:baz} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-444 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-444 new file mode 100644 index 000000000..c15c39f82 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-444 @@ -0,0 +1 @@ +foo.[bar,baz[0]] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-445 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-445 new file mode 100644 index 000000000..9cebd8984 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-445 @@ -0,0 +1 @@ +foo.[bar,baz[1]] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-446 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-446 new file mode 100644 index 000000000..c5bbfbf84 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-446 @@ -0,0 +1 @@ +foo.[bar,baz[2]] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-447 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-447 new file mode 100644 index 000000000..d81cb2b90 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-447 @@ -0,0 +1 @@ +foo.[bar,baz[3]] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-448 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-448 new file mode 100644 index 000000000..3a65aa7d6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-448 @@ -0,0 +1 @@ +foo.[bar[0],baz[3]] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-449 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-449 new file mode 100644 index 000000000..8808e92bf --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-449 @@ -0,0 +1 @@ +foo.{bar: bar, baz: baz} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-45 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-45 new file mode 100644 index 000000000..e142b22a2 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-45 @@ -0,0 +1 @@ +foo[?key == `false`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-450 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-450 new file mode 100644 index 000000000..ab498ef65 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-450 @@ -0,0 +1 @@ +foo.[bar,baz] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-451 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-451 new file mode 100644 index 000000000..8e3d22dc5 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-451 @@ -0,0 +1 @@ +foo.{bar: bar.baz[1],includeme: includeme} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-452 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-452 new file mode 100644 index 000000000..398c7f8b0 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-452 @@ -0,0 +1 @@ +foo.{"bar.baz.two": bar.baz[1].two, includeme: includeme} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-453 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-453 new file mode 100644 index 000000000..a17644487 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-453 @@ -0,0 +1 @@ +foo.[includeme, bar.baz[*].common] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-454 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-454 new file mode 100644 index 000000000..da5225ddc --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-454 @@ -0,0 +1 @@ +foo.[includeme, bar.baz[*].none] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-455 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-455 new file mode 100644 index 000000000..a8870b22b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-455 @@ -0,0 +1 @@ +foo.[includeme, bar.baz[].common] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-456 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-456 new file mode 100644 index 000000000..420b1a57c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-456 @@ -0,0 +1 @@ +reservations[*].instances[*].{id: id, name: name} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-457 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-457 new file mode 100644 index 000000000..0761ee16d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-457 @@ -0,0 +1 @@ +reservations[].instances[].{id: id, name: name} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-458 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-458 new file mode 100644 index 000000000..aa1191a48 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-458 @@ -0,0 +1 @@ +reservations[].instances[].[id, name] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-459 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-459 new file mode 100644 index 000000000..191028156 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-459 @@ -0,0 +1 @@ +foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-46 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-46 new file mode 100644 index 000000000..9a24a464e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-46 @@ -0,0 +1 @@ +foo[?key == `0`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-460 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-460 new file mode 100644 index 000000000..bea506ff2 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-460 @@ -0,0 +1 @@ +foo[] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-461 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-461 new file mode 100644 index 000000000..13f2c4a0b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-461 @@ -0,0 +1 @@ +foo[].bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-462 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-462 new file mode 100644 index 000000000..edf3d9277 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-462 @@ -0,0 +1 @@ +foo[].bar[] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-463 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-463 new file mode 100644 index 000000000..d965466e9 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-463 @@ -0,0 +1 @@ +foo[].bar[].[baz, qux] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-464 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-464 new file mode 100644 index 000000000..f1822a174 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-464 @@ -0,0 +1 @@ +foo[].bar[].[baz] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-465 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-465 new file mode 100644 index 000000000..c6f77b80c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-465 @@ -0,0 +1 @@ +foo[].bar[].[baz, qux][] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-466 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-466 new file mode 100644 index 000000000..db56262a4 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-466 @@ -0,0 +1 @@ +foo.[baz[*].bar, qux[0]] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-467 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-467 new file mode 100644 index 000000000..b901067d2 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-467 @@ -0,0 +1 @@ +foo.[baz[*].[bar, boo], qux[0]] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-468 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-468 new file mode 100644 index 000000000..738479fa6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-468 @@ -0,0 +1 @@ +foo.[baz[*].not_there || baz[*].bar, qux[0]] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-469 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-469 new file mode 100644 index 000000000..6926996a7 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-469 @@ -0,0 +1 @@ +[[*],*] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-47 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-47 new file mode 100644 index 000000000..6d33cc72c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-47 @@ -0,0 +1 @@ +foo[?key == `1`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-470 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-470 new file mode 100644 index 000000000..736be0a31 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-470 @@ -0,0 +1 @@ +[[*]] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-471 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-471 new file mode 100644 index 000000000..29e1fb20a --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-471 @@ -0,0 +1 @@ +outer.foo || outer.bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-472 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-472 new file mode 100644 index 000000000..c0070ba78 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-472 @@ -0,0 +1 @@ +outer.foo||outer.bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-473 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-473 new file mode 100644 index 000000000..661b0bec5 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-473 @@ -0,0 +1 @@ +outer.bar || outer.baz \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-474 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-474 new file mode 100644 index 000000000..296d5aeee --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-474 @@ -0,0 +1 @@ +outer.bar||outer.baz \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-475 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-475 new file mode 100644 index 000000000..ca140f8aa --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-475 @@ -0,0 +1 @@ +outer.bad || outer.foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-476 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-476 new file mode 100644 index 000000000..15d309242 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-476 @@ -0,0 +1 @@ +outer.bad||outer.foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-477 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-477 new file mode 100644 index 000000000..56148d957 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-477 @@ -0,0 +1 @@ +outer.foo || outer.bad \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-478 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-478 new file mode 100644 index 000000000..6d3cf6d90 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-478 @@ -0,0 +1 @@ +outer.foo||outer.bad \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-479 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-479 new file mode 100644 index 000000000..100fa8339 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-479 @@ -0,0 +1 @@ +outer.bad || outer.alsobad \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-48 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-48 new file mode 100644 index 000000000..de56fc042 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-48 @@ -0,0 +1 @@ +foo[?key == `[0]`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-480 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-480 new file mode 100644 index 000000000..64490352b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-480 @@ -0,0 +1 @@ +outer.bad||outer.alsobad \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-481 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-481 new file mode 100644 index 000000000..af901bde1 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-481 @@ -0,0 +1 @@ +outer.empty_string || outer.foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-482 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-482 new file mode 100644 index 000000000..36b63e462 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-482 @@ -0,0 +1 @@ +outer.nokey || outer.bool || outer.empty_list || outer.empty_string || outer.foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-483 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-483 new file mode 100644 index 000000000..aba584f99 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-483 @@ -0,0 +1 @@ +foo.*.baz | [0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-484 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-484 new file mode 100644 index 000000000..4234ac019 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-484 @@ -0,0 +1 @@ +foo.*.baz | [1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-485 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-485 new file mode 100644 index 000000000..12330d990 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-485 @@ -0,0 +1 @@ +foo.*.baz | [2] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-486 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-486 new file mode 100644 index 000000000..1b2d93e19 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-486 @@ -0,0 +1 @@ +foo.bar.* | [0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-487 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-487 new file mode 100644 index 000000000..c371fc645 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-487 @@ -0,0 +1 @@ +foo.*.notbaz | [*] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-488 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-488 new file mode 100644 index 000000000..3c835642e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-488 @@ -0,0 +1 @@ +foo | bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-489 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-489 new file mode 100644 index 000000000..decaa0421 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-489 @@ -0,0 +1 @@ +foo | bar | baz \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-49 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-49 new file mode 100644 index 000000000..49d9c63a3 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-49 @@ -0,0 +1 @@ +foo[?key == `{"bar": [0]}`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-490 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-490 new file mode 100644 index 000000000..b91068037 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-490 @@ -0,0 +1 @@ +foo|bar| baz \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-491 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-491 new file mode 100644 index 000000000..11df74d8b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-491 @@ -0,0 +1 @@ +not_there | [0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-492 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-492 new file mode 100644 index 000000000..11df74d8b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-492 @@ -0,0 +1 @@ +not_there | [0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-493 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-493 new file mode 100644 index 000000000..37da9fc0b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-493 @@ -0,0 +1 @@ +[foo.bar, foo.other] | [0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-494 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-494 new file mode 100644 index 000000000..1f4fc943d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-494 @@ -0,0 +1 @@ +{"a": foo.bar, "b": foo.other} | a \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-495 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-495 new file mode 100644 index 000000000..67c7ea9cf --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-495 @@ -0,0 +1 @@ +{"a": foo.bar, "b": foo.other} | b \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-496 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-496 new file mode 100644 index 000000000..d87f9bba4 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-496 @@ -0,0 +1 @@ +{"a": foo.bar, "b": foo.other} | *.baz \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-497 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-497 new file mode 100644 index 000000000..ebf8e2711 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-497 @@ -0,0 +1 @@ +foo.bam || foo.bar | baz \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-498 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-498 new file mode 100644 index 000000000..f32bc6db5 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-498 @@ -0,0 +1 @@ +foo | not_there || bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-499 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-499 new file mode 100644 index 000000000..d04459d90 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-499 @@ -0,0 +1 @@ +foo[*].bar[*] | [0][0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-5 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-5 new file mode 100644 index 000000000..b537264a1 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-5 @@ -0,0 +1 @@ +foo.bar.bad \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-50 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-50 new file mode 100644 index 000000000..c17c1df17 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-50 @@ -0,0 +1 @@ +foo[?key == `null`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-500 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-500 new file mode 100644 index 000000000..3eb869f43 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-500 @@ -0,0 +1 @@ +bar[0:10] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-501 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-501 new file mode 100644 index 000000000..aa5d6be52 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-501 @@ -0,0 +1 @@ +foo[0:10:1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-502 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-502 new file mode 100644 index 000000000..1a4d1682d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-502 @@ -0,0 +1 @@ +foo[0:10] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-503 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-503 new file mode 100644 index 000000000..5925a578b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-503 @@ -0,0 +1 @@ +foo[0:10:] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-504 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-504 new file mode 100644 index 000000000..081e93abd --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-504 @@ -0,0 +1 @@ +foo[0::1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-505 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-505 new file mode 100644 index 000000000..922700149 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-505 @@ -0,0 +1 @@ +foo[0::] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-506 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-506 new file mode 100644 index 000000000..fd2294d66 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-506 @@ -0,0 +1 @@ +foo[0:] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-507 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-507 new file mode 100644 index 000000000..c6b551d5e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-507 @@ -0,0 +1 @@ +foo[:10:1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-508 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-508 new file mode 100644 index 000000000..503f58da6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-508 @@ -0,0 +1 @@ +foo[::1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-509 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-509 new file mode 100644 index 000000000..f78bb770c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-509 @@ -0,0 +1 @@ +foo[:10:] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-51 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-51 new file mode 100644 index 000000000..589a214f4 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-51 @@ -0,0 +1 @@ +foo[?key == `[1]`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-510 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-510 new file mode 100644 index 000000000..eb9d2ba88 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-510 @@ -0,0 +1 @@ +foo[::] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-511 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-511 new file mode 100644 index 000000000..1921a3d98 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-511 @@ -0,0 +1 @@ +foo[:] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-512 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-512 new file mode 100644 index 000000000..a87afcb1b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-512 @@ -0,0 +1 @@ +foo[1:9] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-513 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-513 new file mode 100644 index 000000000..dbf51d8cd --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-513 @@ -0,0 +1 @@ +foo[0:10:2] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-514 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-514 new file mode 100644 index 000000000..f7288763a --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-514 @@ -0,0 +1 @@ +foo[5:] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-515 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-515 new file mode 100644 index 000000000..64395761d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-515 @@ -0,0 +1 @@ +foo[5::2] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-516 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-516 new file mode 100644 index 000000000..706bb14dd --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-516 @@ -0,0 +1 @@ +foo[::2] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-517 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-517 new file mode 100644 index 000000000..8fcfaee95 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-517 @@ -0,0 +1 @@ +foo[::-1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-518 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-518 new file mode 100644 index 000000000..f6a00bf9b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-518 @@ -0,0 +1 @@ +foo[1::2] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-519 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-519 new file mode 100644 index 000000000..ea068ee06 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-519 @@ -0,0 +1 @@ +foo[10:0:-1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-52 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-52 new file mode 100644 index 000000000..214917ac0 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-52 @@ -0,0 +1 @@ +foo[?key == `{"a":2}`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-520 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-520 new file mode 100644 index 000000000..1fe14258e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-520 @@ -0,0 +1 @@ +foo[10:5:-1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-521 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-521 new file mode 100644 index 000000000..4ba0e1302 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-521 @@ -0,0 +1 @@ +foo[8:2:-2] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-522 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-522 new file mode 100644 index 000000000..25db439ff --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-522 @@ -0,0 +1 @@ +foo[0:20] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-523 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-523 new file mode 100644 index 000000000..8a965920a --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-523 @@ -0,0 +1 @@ +foo[10:-20:-1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-524 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-524 new file mode 100644 index 000000000..b1e5ba373 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-524 @@ -0,0 +1 @@ +foo[10:-20] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-525 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-525 new file mode 100644 index 000000000..06253112e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-525 @@ -0,0 +1 @@ +foo[-4:-1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-526 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-526 new file mode 100644 index 000000000..1e14a6a4c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-526 @@ -0,0 +1 @@ +foo[:-5:-1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-527 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-527 new file mode 100644 index 000000000..aef5c2747 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-527 @@ -0,0 +1 @@ +foo[:2].a \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-528 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-528 new file mode 100644 index 000000000..93c95fcf6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-528 @@ -0,0 +1 @@ +foo[:2].b \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-529 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-529 new file mode 100644 index 000000000..7e0733e59 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-529 @@ -0,0 +1 @@ +foo[:2].a.b \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-53 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-53 new file mode 100644 index 000000000..4c002ed80 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-53 @@ -0,0 +1 @@ +foo[?`true` == key] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-530 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-530 new file mode 100644 index 000000000..2438b2576 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-530 @@ -0,0 +1 @@ +bar[::-1].a.b \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-531 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-531 new file mode 100644 index 000000000..549994b6b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-531 @@ -0,0 +1 @@ +bar[:2].a.b \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-532 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-532 new file mode 100644 index 000000000..ab98292b4 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-532 @@ -0,0 +1 @@ +baz[:2].a \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-533 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-533 new file mode 100644 index 000000000..65fca9687 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-533 @@ -0,0 +1 @@ +[:] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-534 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-534 new file mode 100644 index 000000000..18c5daf7b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-534 @@ -0,0 +1 @@ +[:2].a \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-535 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-535 new file mode 100644 index 000000000..1bb84f7d4 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-535 @@ -0,0 +1 @@ +[::-1].a \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-536 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-536 new file mode 100644 index 000000000..7a0416f05 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-536 @@ -0,0 +1 @@ +[:2].b \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-537 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-537 new file mode 100644 index 000000000..4d5f9756e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-537 @@ -0,0 +1 @@ +foo.bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-538 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-538 new file mode 100644 index 000000000..191028156 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-538 @@ -0,0 +1 @@ +foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-539 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-539 new file mode 100644 index 000000000..f59ec20aa --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-539 @@ -0,0 +1 @@ +* \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-54 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-54 new file mode 100644 index 000000000..23d27073e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-54 @@ -0,0 +1 @@ +foo[?`false` == key] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-540 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-540 new file mode 100644 index 000000000..dee569574 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-540 @@ -0,0 +1 @@ +*.* \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-541 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-541 new file mode 100644 index 000000000..1a16f7418 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-541 @@ -0,0 +1 @@ +*.foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-542 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-542 new file mode 100644 index 000000000..7e8066d39 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-542 @@ -0,0 +1 @@ +*[0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-543 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-543 new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-543 @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-544 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-544 new file mode 100644 index 000000000..6e7ea636e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-544 @@ -0,0 +1 @@ +[0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-545 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-545 new file mode 100644 index 000000000..5a5194647 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-545 @@ -0,0 +1 @@ +[*] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-546 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-546 new file mode 100644 index 000000000..416127425 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-546 @@ -0,0 +1 @@ +*.["0"] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-547 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-547 new file mode 100644 index 000000000..cd9fb6ba7 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-547 @@ -0,0 +1 @@ +[*].bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-548 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-548 new file mode 100644 index 000000000..9f3ada480 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-548 @@ -0,0 +1 @@ +[*][0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-549 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-549 new file mode 100644 index 000000000..9b0b2f818 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-549 @@ -0,0 +1 @@ +foo[0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-55 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-55 new file mode 100644 index 000000000..6d840ee56 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-55 @@ -0,0 +1 @@ +foo[?`0` == key] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-550 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-550 new file mode 100644 index 000000000..b23413b92 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-550 @@ -0,0 +1 @@ +foo.[*] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-551 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-551 new file mode 100644 index 000000000..08ab2e1c4 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-551 @@ -0,0 +1 @@ +foo.[abc] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-552 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-552 new file mode 100644 index 000000000..78b05a5c6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-552 @@ -0,0 +1 @@ +foo.[abc, def] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-553 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-553 new file mode 100644 index 000000000..1e7b886e7 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-553 @@ -0,0 +1 @@ +a.{foo: bar} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-554 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-554 new file mode 100644 index 000000000..91b4c9896 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-554 @@ -0,0 +1 @@ +a.{foo: bar, baz: bam} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-555 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-555 new file mode 100644 index 000000000..8301ef981 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-555 @@ -0,0 +1 @@ +{"\\":{" ":*}} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-556 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-556 new file mode 100644 index 000000000..8f75cc913 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-556 @@ -0,0 +1 @@ +foo || bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-557 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-557 new file mode 100644 index 000000000..e5f122c56 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-557 @@ -0,0 +1 @@ +foo.[a || b] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-558 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-558 new file mode 100644 index 000000000..39d191432 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-558 @@ -0,0 +1 @@ +foo[?bar==`"baz"`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-559 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-559 new file mode 100644 index 000000000..d08bbe250 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-559 @@ -0,0 +1 @@ +foo[? bar == `"baz"` ] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-56 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-56 new file mode 100644 index 000000000..addaf204c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-56 @@ -0,0 +1 @@ +foo[?`1` == key] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-560 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-560 new file mode 100644 index 000000000..a77f35581 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-560 @@ -0,0 +1 @@ +foo[?a.b.c==d.e.f] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-561 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-561 new file mode 100644 index 000000000..c9697aa48 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-561 @@ -0,0 +1 @@ +foo[?bar==`[0, 1, 2]`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-562 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-562 new file mode 100644 index 000000000..fd7064a08 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-562 @@ -0,0 +1 @@ +foo[?bar==`["a", "b", "c"]`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-563 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-563 new file mode 100644 index 000000000..61e5e1b8f --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-563 @@ -0,0 +1 @@ +foo[?bar==`["foo\`bar"]`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-564 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-564 new file mode 100644 index 000000000..bc9d8af1d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-564 @@ -0,0 +1 @@ +[?"\\">`"foo"`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-565 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-565 new file mode 100644 index 000000000..2dd54dc39 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-565 @@ -0,0 +1 @@ +[?"\\" > `"foo"`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-566 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-566 new file mode 100644 index 000000000..191028156 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-566 @@ -0,0 +1 @@ +foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-567 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-567 new file mode 100644 index 000000000..7e9668e78 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-567 @@ -0,0 +1 @@ +"foo" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-568 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-568 new file mode 100644 index 000000000..d58ac16bf --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-568 @@ -0,0 +1 @@ +"\\" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-569 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-569 new file mode 100644 index 000000000..33ac9fba6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-569 @@ -0,0 +1 @@ +*||*|*|* \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-57 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-57 new file mode 100644 index 000000000..acf2435c7 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-57 @@ -0,0 +1 @@ +foo[?`[0]` == key] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-570 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-570 new file mode 100644 index 000000000..99e19638c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-570 @@ -0,0 +1 @@ +*[]||[*] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-571 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-571 new file mode 100644 index 000000000..be0845011 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-571 @@ -0,0 +1 @@ +[*.*] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-572 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-572 new file mode 100644 index 000000000..a84b51e1c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-572 @@ -0,0 +1 @@ +foo[]."✓" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-573 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-573 new file mode 100644 index 000000000..c2de55815 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-573 @@ -0,0 +1 @@ +"☯" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-574 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-574 new file mode 100644 index 000000000..dc2dda0bb --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-574 @@ -0,0 +1 @@ +"♪♫•*¨*•.¸¸❤¸¸.•*¨*•♫♪" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-575 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-575 new file mode 100644 index 000000000..a2d3d5f6a --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-575 @@ -0,0 +1 @@ +"☃" \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-576 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-576 new file mode 100644 index 000000000..0971c37ea --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-576 @@ -0,0 +1 @@ +foo.*.baz \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-577 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-577 new file mode 100644 index 000000000..0e39dfd69 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-577 @@ -0,0 +1 @@ +foo.bar.* \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-578 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-578 new file mode 100644 index 000000000..89c1ce22d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-578 @@ -0,0 +1 @@ +foo.*.notbaz \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-579 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-579 new file mode 100644 index 000000000..5199b9f95 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-579 @@ -0,0 +1 @@ +foo.*.notbaz[0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-58 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-58 new file mode 100644 index 000000000..99fe382c6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-58 @@ -0,0 +1 @@ +foo[?`{"bar": [0]}` == key] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-580 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-580 new file mode 100644 index 000000000..5bb6d4ae7 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-580 @@ -0,0 +1 @@ +foo.*.notbaz[-1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-581 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-581 new file mode 100644 index 000000000..edac73189 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-581 @@ -0,0 +1 @@ +foo.* \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-582 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-582 new file mode 100644 index 000000000..458d0a6dd --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-582 @@ -0,0 +1 @@ +foo.*.* \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-583 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-583 new file mode 100644 index 000000000..f757fd534 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-583 @@ -0,0 +1 @@ +foo.*.*.* \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-584 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-584 new file mode 100644 index 000000000..670049d96 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-584 @@ -0,0 +1 @@ +foo.*.*.*.* \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-585 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-585 new file mode 100644 index 000000000..3c88caafe --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-585 @@ -0,0 +1 @@ +*.bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-586 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-586 new file mode 100644 index 000000000..f59ec20aa --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-586 @@ -0,0 +1 @@ +* \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-587 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-587 new file mode 100644 index 000000000..0852fcc78 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-587 @@ -0,0 +1 @@ +*.sub1 \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-588 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-588 new file mode 100644 index 000000000..dee569574 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-588 @@ -0,0 +1 @@ +*.* \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-589 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-589 new file mode 100644 index 000000000..66781bba4 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-589 @@ -0,0 +1 @@ +*.*.foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-59 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-59 new file mode 100644 index 000000000..4aad20ae6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-59 @@ -0,0 +1 @@ +foo[?`null` == key] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-590 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-590 new file mode 100644 index 000000000..0db15d97e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-590 @@ -0,0 +1 @@ +*.sub1.foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-591 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-591 new file mode 100644 index 000000000..b24be9d7d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-591 @@ -0,0 +1 @@ +foo[*].bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-592 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-592 new file mode 100644 index 000000000..e6efe133f --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-592 @@ -0,0 +1 @@ +foo[*].notbar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-593 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-593 new file mode 100644 index 000000000..5a5194647 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-593 @@ -0,0 +1 @@ +[*] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-594 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-594 new file mode 100644 index 000000000..cd9fb6ba7 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-594 @@ -0,0 +1 @@ +[*].bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-595 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-595 new file mode 100644 index 000000000..cbf1a5d59 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-595 @@ -0,0 +1 @@ +[*].notbar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-596 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-596 new file mode 100644 index 000000000..8bd13b7eb --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-596 @@ -0,0 +1 @@ +foo.bar[*].baz \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-597 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-597 new file mode 100644 index 000000000..7239f3e88 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-597 @@ -0,0 +1 @@ +foo.bar[*].baz[0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-598 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-598 new file mode 100644 index 000000000..f5e431d9e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-598 @@ -0,0 +1 @@ +foo.bar[*].baz[1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-599 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-599 new file mode 100644 index 000000000..d0c259539 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-599 @@ -0,0 +1 @@ +foo.bar[*].baz[2] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-6 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-6 new file mode 100644 index 000000000..b9749b748 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-6 @@ -0,0 +1 @@ +foo.bad \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-60 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-60 new file mode 100644 index 000000000..dac67509b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-60 @@ -0,0 +1 @@ +foo[?`[1]` == key] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-600 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-600 new file mode 100644 index 000000000..a6388271e --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-600 @@ -0,0 +1 @@ +foo.bar[*].baz[3] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-601 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-601 new file mode 100644 index 000000000..2a66ffe93 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-601 @@ -0,0 +1 @@ +foo.bar[*] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-602 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-602 new file mode 100644 index 000000000..b6b369543 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-602 @@ -0,0 +1 @@ +foo.bar[0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-603 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-603 new file mode 100644 index 000000000..7e57f9e74 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-603 @@ -0,0 +1 @@ +foo.bar[0][0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-604 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-604 new file mode 100644 index 000000000..c5f8bef0b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-604 @@ -0,0 +1 @@ +foo.bar[0][0][0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-605 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-605 new file mode 100644 index 000000000..3decf0803 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-605 @@ -0,0 +1 @@ +foo.bar[0][0][0][0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-606 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-606 new file mode 100644 index 000000000..655e2959b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-606 @@ -0,0 +1 @@ +foo[0][0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-607 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-607 new file mode 100644 index 000000000..2aa159718 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-607 @@ -0,0 +1 @@ +foo[*].bar[*].kind \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-608 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-608 new file mode 100644 index 000000000..556b380ba --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-608 @@ -0,0 +1 @@ +foo[*].bar[0].kind \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-609 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-609 new file mode 100644 index 000000000..0de3229b8 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-609 @@ -0,0 +1 @@ +foo[*].bar.kind \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-61 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-61 new file mode 100644 index 000000000..130ed3b37 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-61 @@ -0,0 +1 @@ +foo[?`{"a":2}` == key] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-610 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-610 new file mode 100644 index 000000000..3b511f133 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-610 @@ -0,0 +1 @@ +foo[*].bar[0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-611 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-611 new file mode 100644 index 000000000..c8dfa16e6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-611 @@ -0,0 +1 @@ +foo[*].bar[1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-612 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-612 new file mode 100644 index 000000000..69f04ee23 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-612 @@ -0,0 +1 @@ +foo[*].bar[2] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-613 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-613 new file mode 100644 index 000000000..3b511f133 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-613 @@ -0,0 +1 @@ +foo[*].bar[0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-614 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-614 new file mode 100644 index 000000000..03e0c0cb9 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-614 @@ -0,0 +1 @@ +foo[*][0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-615 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-615 new file mode 100644 index 000000000..ac1c89668 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-615 @@ -0,0 +1 @@ +foo[*][1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-616 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-616 new file mode 100644 index 000000000..03e0c0cb9 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-616 @@ -0,0 +1 @@ +foo[*][0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-617 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-617 new file mode 100644 index 000000000..ac1c89668 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-617 @@ -0,0 +1 @@ +foo[*][1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-618 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-618 new file mode 100644 index 000000000..6494cf1c6 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-618 @@ -0,0 +1 @@ +foo[*][0][0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-619 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-619 new file mode 100644 index 000000000..1406be572 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-619 @@ -0,0 +1 @@ +foo[*][1][0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-62 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-62 new file mode 100644 index 000000000..3d15fcc16 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-62 @@ -0,0 +1 @@ +foo[?key != `true`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-620 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-620 new file mode 100644 index 000000000..72b5aa281 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-620 @@ -0,0 +1 @@ +foo[*][0][1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-621 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-621 new file mode 100644 index 000000000..02a26491a --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-621 @@ -0,0 +1 @@ +foo[*][1][1] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-622 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-622 new file mode 100644 index 000000000..cb08037e2 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-622 @@ -0,0 +1 @@ +foo[*][2] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-623 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-623 new file mode 100644 index 000000000..91d695995 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-623 @@ -0,0 +1 @@ +foo[*][2][2] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-624 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-624 new file mode 100644 index 000000000..f40f261ad --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-624 @@ -0,0 +1 @@ +bar[*] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-625 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-625 new file mode 100644 index 000000000..03904b1de --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-625 @@ -0,0 +1 @@ +bar[*].baz[*] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-626 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-626 new file mode 100644 index 000000000..fd7c21c34 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-626 @@ -0,0 +1 @@ +string[*] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-627 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-627 new file mode 100644 index 000000000..d7ca4719a --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-627 @@ -0,0 +1 @@ +hash[*] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-628 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-628 new file mode 100644 index 000000000..b3ddffe3c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-628 @@ -0,0 +1 @@ +number[*] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-629 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-629 new file mode 100644 index 000000000..c03cd39eb --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-629 @@ -0,0 +1 @@ +nullvalue[*] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-63 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-63 new file mode 100644 index 000000000..08731af69 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-63 @@ -0,0 +1 @@ +foo[?key != `false`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-630 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-630 new file mode 100644 index 000000000..b3c40cd53 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-630 @@ -0,0 +1 @@ +string[*].foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-631 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-631 new file mode 100644 index 000000000..c5930d543 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-631 @@ -0,0 +1 @@ +hash[*].foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-632 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-632 new file mode 100644 index 000000000..cc0b1a489 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-632 @@ -0,0 +1 @@ +number[*].foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-633 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-633 new file mode 100644 index 000000000..d677b9658 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-633 @@ -0,0 +1 @@ +nullvalue[*].foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-634 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-634 new file mode 100644 index 000000000..c11666401 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-634 @@ -0,0 +1 @@ +nullvalue[*].foo[*].bar \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-635 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-635 new file mode 100644 index 000000000..e33997710 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-635 @@ -0,0 +1 @@ +string.* \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-636 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-636 new file mode 100644 index 000000000..76f53453a --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-636 @@ -0,0 +1 @@ +hash.* \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-637 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-637 new file mode 100644 index 000000000..dd485072f --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-637 @@ -0,0 +1 @@ +number.* \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-638 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-638 new file mode 100644 index 000000000..16000c003 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-638 @@ -0,0 +1 @@ +array.* \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-639 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-639 new file mode 100644 index 000000000..1d0d03ed3 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-639 @@ -0,0 +1 @@ +nullvalue.* \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-64 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-64 new file mode 100644 index 000000000..b67aebe98 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-64 @@ -0,0 +1 @@ +foo[?key != `0`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-640 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-640 new file mode 100644 index 000000000..7e8066d39 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-640 @@ -0,0 +1 @@ +*[0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-641 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-641 new file mode 100644 index 000000000..41ebe5ba9 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-641 @@ -0,0 +1 @@ +`foo` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-642 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-642 new file mode 100644 index 000000000..fe0397993 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-642 @@ -0,0 +1 @@ +`foo\"quote` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-643 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-643 new file mode 100644 index 000000000..1a27fd80c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-643 @@ -0,0 +1 @@ +`✓` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-644 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-644 new file mode 100644 index 000000000..559a13456 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-644 @@ -0,0 +1 @@ +`foo\"bar` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-645 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-645 new file mode 100644 index 000000000..e31621b43 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-645 @@ -0,0 +1 @@ +`1\`` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-646 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-646 new file mode 100644 index 000000000..6bf7a1036 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-646 @@ -0,0 +1 @@ +`\\`.{a:`b`} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-647 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-647 new file mode 100644 index 000000000..41ebe5ba9 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-647 @@ -0,0 +1 @@ +`foo` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-648 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-648 new file mode 100644 index 000000000..28b9bcbbb --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-648 @@ -0,0 +1 @@ +` foo` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-649 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-649 new file mode 100644 index 000000000..41ebe5ba9 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-649 @@ -0,0 +1 @@ +`foo` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-65 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-65 new file mode 100644 index 000000000..d3ac793bb --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-65 @@ -0,0 +1 @@ +foo[?key != `1`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-650 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-650 new file mode 100644 index 000000000..fe0397993 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-650 @@ -0,0 +1 @@ +`foo\"quote` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-651 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-651 new file mode 100644 index 000000000..1a27fd80c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-651 @@ -0,0 +1 @@ +`✓` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-652 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-652 new file mode 100644 index 000000000..559a13456 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-652 @@ -0,0 +1 @@ +`foo\"bar` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-653 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-653 new file mode 100644 index 000000000..e31621b43 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-653 @@ -0,0 +1 @@ +`1\`` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-654 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-654 new file mode 100644 index 000000000..6bf7a1036 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-654 @@ -0,0 +1 @@ +`\\`.{a:`b`} \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-655 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-655 new file mode 100644 index 000000000..41ebe5ba9 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-655 @@ -0,0 +1 @@ +`foo` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-656 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-656 new file mode 100644 index 000000000..28b9bcbbb --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-656 @@ -0,0 +1 @@ +` foo` \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-66 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-66 new file mode 100644 index 000000000..065295bc1 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-66 @@ -0,0 +1 @@ +foo[?key != `null`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-67 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-67 new file mode 100644 index 000000000..43d164927 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-67 @@ -0,0 +1 @@ +foo[?key != `[1]`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-68 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-68 new file mode 100644 index 000000000..6b884fa86 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-68 @@ -0,0 +1 @@ +foo[?key != `{"a":2}`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-69 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-69 new file mode 100644 index 000000000..d85c779d0 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-69 @@ -0,0 +1 @@ +foo[?`true` != key] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-7 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-7 new file mode 100644 index 000000000..44d6628cd --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-7 @@ -0,0 +1 @@ +bad \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-70 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-70 new file mode 100644 index 000000000..3e6dcf304 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-70 @@ -0,0 +1 @@ +foo[?`false` != key] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-71 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-71 new file mode 100644 index 000000000..bdb820b30 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-71 @@ -0,0 +1 @@ +foo[?`0` != key] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-72 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-72 new file mode 100644 index 000000000..3f3048a00 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-72 @@ -0,0 +1 @@ +foo[?`1` != key] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-73 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-73 new file mode 100644 index 000000000..dacc25724 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-73 @@ -0,0 +1 @@ +foo[?`null` != key] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-74 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-74 new file mode 100644 index 000000000..32ebae880 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-74 @@ -0,0 +1 @@ +foo[?`[1]` != key] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-75 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-75 new file mode 100644 index 000000000..dcd023e0f --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-75 @@ -0,0 +1 @@ +foo[?`{"a":2}` != key] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-76 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-76 new file mode 100644 index 000000000..e08cc13cb --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-76 @@ -0,0 +1 @@ +reservations[].instances[?bar==`1`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-77 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-77 new file mode 100644 index 000000000..1ec43f45f --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-77 @@ -0,0 +1 @@ +reservations[*].instances[?bar==`1`] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-78 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-78 new file mode 100644 index 000000000..303871163 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-78 @@ -0,0 +1 @@ +reservations[].instances[?bar==`1`][] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-79 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-79 new file mode 100644 index 000000000..e3875746b --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-79 @@ -0,0 +1 @@ +foo[?bar==`1`].bar[0] \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-8 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-8 new file mode 100644 index 000000000..da7bc1ccf --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-8 @@ -0,0 +1 @@ +bad.morebad.morebad \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-80 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-80 new file mode 100644 index 000000000..5c3d68356 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-80 @@ -0,0 +1 @@ +foo[?a==`1`].b.c \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-81 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-81 new file mode 100644 index 000000000..6232808f0 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-81 @@ -0,0 +1 @@ +abs(foo) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-82 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-82 new file mode 100644 index 000000000..6232808f0 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-82 @@ -0,0 +1 @@ +abs(foo) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-83 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-83 new file mode 100644 index 000000000..29497f4ff --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-83 @@ -0,0 +1 @@ +abs(array[1]) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-84 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-84 new file mode 100644 index 000000000..29497f4ff --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-84 @@ -0,0 +1 @@ +abs(array[1]) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-85 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-85 new file mode 100644 index 000000000..346696563 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-85 @@ -0,0 +1 @@ +abs(`-24`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-86 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-86 new file mode 100644 index 000000000..346696563 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-86 @@ -0,0 +1 @@ +abs(`-24`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-87 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-87 new file mode 100644 index 000000000..c6268f847 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-87 @@ -0,0 +1 @@ +avg(numbers) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-88 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-88 new file mode 100644 index 000000000..7ce703695 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-88 @@ -0,0 +1 @@ +ceil(`1.2`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-89 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-89 new file mode 100644 index 000000000..0561bc26d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-89 @@ -0,0 +1 @@ +ceil(decimals[0]) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-9 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-9 new file mode 100644 index 000000000..191028156 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-9 @@ -0,0 +1 @@ +foo \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-90 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-90 new file mode 100644 index 000000000..c78c1fc30 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-90 @@ -0,0 +1 @@ +ceil(decimals[1]) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-91 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-91 new file mode 100644 index 000000000..ebcb4bbdb --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-91 @@ -0,0 +1 @@ +ceil(decimals[2]) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-92 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-92 new file mode 100644 index 000000000..6edbf1afe --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-92 @@ -0,0 +1 @@ +contains('abc', 'a') \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-93 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-93 new file mode 100644 index 000000000..d2b2f070d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-93 @@ -0,0 +1 @@ +contains('abc', 'd') \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-94 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-94 new file mode 100644 index 000000000..3535da2ec --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-94 @@ -0,0 +1 @@ +contains(strings, 'a') \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-95 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-95 new file mode 100644 index 000000000..ba839fe60 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-95 @@ -0,0 +1 @@ +contains(decimals, `1.2`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-96 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-96 new file mode 100644 index 000000000..f43581869 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-96 @@ -0,0 +1 @@ +contains(decimals, `false`) \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-97 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-97 new file mode 100644 index 000000000..adb65fc01 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-97 @@ -0,0 +1 @@ +ends_with(str, 'r') \ No newline at end of file diff --git a/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-98 b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-98 new file mode 100644 index 000000000..93d6901be --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/fuzz/corpus/expr-98 @@ -0,0 +1 @@ +ends_with(str, 'tr') \ No newline at end of file